12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import{d as defineComponent,o as openBlock,c as createElementBlock,a as createBaseVNode,at as getDefaultExportFromCjs}from"./index-e497b666.js";import{r as require$$1}from"./vue.runtime.esm-bundler-8d6a0dde.js";const _hoisted_1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},_hoisted_2=createBaseVNode("path",{d:"M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z",fill:"currentColor"},null,-1),_hoisted_3=[_hoisted_2],PrinterIcon=defineComponent({name:"PrinterOutlined",render:function(_,h){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_3)}});var vue3PdfEmbed={exports:{}};(function(module,exports){(function(L,_){module.exports=_(require$$1)})(self,function(__WEBPACK_EXTERNAL_MODULE__103__){return(()=>{var __webpack_modules__={194:(L,_,h)=>{h.r(_),h.d(_,{default:()=>P});var f=h(645),E=h.n(f)()(function(T){return T[1]});E.push([L.id,`.textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}.textLayer span,.textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:rgba(180, 0, 170, 1);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:rgba(0, 100, 0, 1)}.textLayer ::-moz-selection{background:rgba(0, 0, 255, 1)}.textLayer ::selection{background:rgba(0, 0, 255, 1)}.textLayer br::-moz-selection{background:transparent}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}:root{--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>")}.annotationLayer section{position:absolute;text-align:initial}.annotationLayer .linkAnnotation>a,.annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer .buttonWidgetAnnotation.pushButton>canvas{position:relative;top:0;left:0;z-index:-1}.annotationLayer .linkAnnotation>a:hover,.annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:rgba(255, 255, 0, 1);box-shadow:0 2px 10px rgba(255, 255, 0, 1)}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer}.annotationLayer .textWidgetAnnotation input,.annotationLayer .textWidgetAnnotation textarea,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}.annotationLayer .textWidgetAnnotation input[disabled],.annotationLayer .textWidgetAnnotation textarea[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid rgba(0, 0, 0, 1)}.annotationLayer .textWidgetAnnotation input:focus,.annotationLayer .textWidgetAnnotation textarea:focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}.annotationLayer .textWidgetAnnotation input :focus,.annotationLayer .textWidgetAnnotation textarea :focus,.annotationLayer .choiceWidgetAnnotation select :focus,.annotationLayer .buttonWidgetAnnotation.checkBox :focus,.annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:rgba(0, 0, 0, 1);content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}.annotationLayer .popupWrapper{position:absolute;width:20em}.annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:rgba(255, 255, 153, 1);box-shadow:0 2px 5px rgba(136, 136, 136, 1);border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}.annotationLayer .popup>*{font-size:9px}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:5px}.annotationLayer .popupContent{border-top:1px solid rgba(51, 51, 51, 1);margin-top:2px;padding-top:2px}.annotationLayer .richText>*{white-space:pre-wrap}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.vue-pdf-embed>div{position:relative}.vue-pdf-embed canvas{display:block}`,""]);const P=E},645:L=>{L.exports=function(_){var h=[];return h.toString=function(){return this.map(function(f){var E=_(f);return f[2]?"@media ".concat(f[2]," {").concat(E,"}"):E}).join("")},h.i=function(f,E,P){typeof f=="string"&&(f=[[null,f,""]]);var T={};if(P)for(var N=0;N<this.length;N++){var j=this[N][0];j!=null&&(T[j]=!0)}for(var x=0;x<f.length;x++){var M=[].concat(f[x]);P&&T[M[0]]||(E&&(M[2]?M[2]="".concat(E," and ").concat(M[2]):M[2]=E),h.push(M))}},h}},783:function(module,__unused_webpack_exports,__webpack_require__){var factory;factory=function(){return(()=>{var __webpack_modules__=[,(L,_,h)=>{function f(i){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},f(i)}Object.defineProperty(_,"__esModule",{value:!0}),_.addLinkAttributes=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.url,A=o.target,I=o.rel,O=o.enabled,R=O===void 0||O;(0,T.assert)(u&&typeof u=="string",'addLinkAttributes: A valid "url" parameter must provided.');var G=(0,T.removeNullCharacters)(u);R?i.href=i.title=G:(i.href="",i.title="Disabled: ".concat(G),i.onclick=function(){return!1});var Y="";switch(A){case t.NONE:break;case t.SELF:Y="_self";break;case t.BLANK:Y="_blank";break;case t.PARENT:Y="_parent";break;case t.TOP:Y="_top"}i.target=Y,i.rel=typeof I=="string"?I:g},_.deprecated=function(i){console.log("Deprecated API usage: "+i)},_.getFilenameFromUrl=function(i){var o=i.indexOf("#"),u=i.indexOf("?"),A=Math.min(o>0?o:i.length,u>0?u:i.length);return i.substring(i.lastIndexOf("/",A)+1,A)},_.getPdfFilenameFromUrl=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof i!="string")return o;if(s(i))return(0,T.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),o;var u=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,A=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,I=u.exec(i),O=A.exec(I[1])||A.exec(I[2])||A.exec(I[3]);if(O&&(O=O[0]).includes("%"))try{O=A.exec(decodeURIComponent(O))[0]}catch{}return O||o},_.isDataScheme=s,_.isFetchSupported=k,_.isPdfFile=function(i){return typeof i=="string"&&/\.pdf$/i.test(i)},_.isValidFetchUrl=w,_.loadScript=function(i){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return new Promise(function(u,A){var I=document.createElement("script");I.src=i,I.onload=function(O){o&&I.remove(),u(O)},I.onerror=function(){A(new Error("Cannot load script at: ".concat(I.src)))},(document.head||document.documentElement).appendChild(I)})},_.StatTimer=_.RenderingCancelledException=_.PDFDateString=_.PageViewport=_.LinkTarget=_.DOMSVGFactory=_.DOMCMapReaderFactory=_.DOMCanvasFactory=_.DEFAULT_LINK_REL=_.BaseCMapReaderFactory=_.BaseCanvasFactory=void 0;var E,P=(E=h(2))&&E.__esModule?E:{default:E},T=h(4);function N(i,o){var u=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!u){if(Array.isArray(i)||(u=function(Y,W){if(Y){if(typeof Y=="string")return j(Y,W);var z=Object.prototype.toString.call(Y).slice(8,-1);return z==="Object"&&Y.constructor&&(z=Y.constructor.name),z==="Map"||z==="Set"?Array.from(Y):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?j(Y,W):void 0}}(i))||o&&i&&typeof i.length=="number"){u&&(i=u);var A=0,I=function(){};return{s:I,n:function(){return A>=i.length?{done:!0}:{done:!1,value:i[A++]}},e:function(Y){throw Y},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var O,R=!0,G=!1;return{s:function(){u=u.call(i)},n:function(){var Y=u.next();return R=Y.done,Y},e:function(Y){G=!0,O=Y},f:function(){try{R||u.return==null||u.return()}finally{if(G)throw O}}}}function j(i,o){(o==null||o>i.length)&&(o=i.length);for(var u=0,A=new Array(o);u<o;u++)A[u]=i[u];return A}function x(i,o,u,A,I,O,R){try{var G=i[O](R),Y=G.value}catch(W){return void u(W)}G.done?o(Y):Promise.resolve(Y).then(A,I)}function M(i){return function(){var o=this,u=arguments;return new Promise(function(A,I){var O=i.apply(o,u);function R(Y){x(O,A,I,R,G,"next",Y)}function G(Y){x(O,A,I,R,G,"throw",Y)}R(void 0)})}}function D(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),o&&C(i,o)}function C(i,o){return C=Object.setPrototypeOf||function(u,A){return u.__proto__=A,u},C(i,o)}function U(i){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var u,A=H(i);if(o){var I=H(this).constructor;u=Reflect.construct(A,arguments,I)}else u=A.apply(this,arguments);return J(this,u)}}function J(i,o){return!o||f(o)!=="object"&&typeof o!="function"?function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(i):o}function H(i){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},H(i)}function $(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function B(i,o){for(var u=0;u<o.length;u++){var A=o[u];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(i,A.key,A)}}function F(i,o,u){return o&&B(i.prototype,o),u&&B(i,u),i}var g="noopener noreferrer nofollow";_.DEFAULT_LINK_REL=g;var v="http://www.w3.org/2000/svg",d=function(){function i(){$(this,i),this.constructor===i&&(0,T.unreachable)("Cannot initialize BaseCanvasFactory.")}return F(i,[{key:"create",value:function(o,u){(0,T.unreachable)("Abstract method `create` called.")}},{key:"reset",value:function(o,u,A){if(!o.canvas)throw new Error("Canvas is not specified");if(u<=0||A<=0)throw new Error("Invalid canvas size");o.canvas.width=u,o.canvas.height=A}},{key:"destroy",value:function(o){if(!o.canvas)throw new Error("Canvas is not specified");o.canvas.width=0,o.canvas.height=0,o.canvas=null,o.context=null}}]),i}();_.BaseCanvasFactory=d;var y=function(i){D(u,i);var o=U(u);function u(){var A,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=I.ownerDocument,R=O===void 0?globalThis.document:O;return $(this,u),(A=o.call(this))._document=R,A}return F(u,[{key:"create",value:function(A,I){if(A<=0||I<=0)throw new Error("Invalid canvas size");var O=this._document.createElement("canvas"),R=O.getContext("2d");return O.width=A,O.height=I,{canvas:O,context:R}}}]),u}(d);_.DOMCanvasFactory=y;var m=function(){function i(u){var A=u.baseUrl,I=A===void 0?null:A,O=u.isCompressed,R=O!==void 0&&O;$(this,i),this.constructor===i&&(0,T.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=I,this.isCompressed=R}var o;return F(i,[{key:"fetch",value:(o=M(P.default.mark(function u(A){var I,O,R,G=this;return P.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(I=A.name,this.baseUrl){Y.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(I){Y.next=5;break}throw new Error("CMap name must be specified.");case 5:return O=this.baseUrl+I+(this.isCompressed?".bcmap":""),R=this.isCompressed?T.CMapCompressionType.BINARY:T.CMapCompressionType.NONE,Y.abrupt("return",this._fetchData(O,R).catch(function(W){throw new Error("Unable to load ".concat(G.isCompressed?"binary ":"","CMap at: ").concat(O))}));case 8:case"end":return Y.stop()}},u,this)})),function(u){return o.apply(this,arguments)})},{key:"_fetchData",value:function(u,A){(0,T.unreachable)("Abstract method `_fetchData` called.")}}]),i}();_.BaseCMapReaderFactory=m;var c=function(i){D(u,i);var o=U(u);function u(){return $(this,u),o.apply(this,arguments)}return F(u,[{key:"_fetchData",value:function(A,I){var O=this;return k()&&w(A,document.baseURI)?fetch(A).then(function(){var R=M(P.default.mark(function G(Y){var W;return P.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(Y.ok){z.next=2;break}throw new Error(Y.statusText);case 2:if(!O.isCompressed){z.next=10;break}return z.t0=Uint8Array,z.next=6,Y.arrayBuffer();case 6:z.t1=z.sent,W=new z.t0(z.t1),z.next=15;break;case 10:return z.t2=T.stringToBytes,z.next=13,Y.text();case 13:z.t3=z.sent,W=(0,z.t2)(z.t3);case 15:return z.abrupt("return",{cMapData:W,compressionType:I});case 16:case"end":return z.stop()}},G)}));return function(G){return R.apply(this,arguments)}}()):new Promise(function(R,G){var Y=new XMLHttpRequest;Y.open("GET",A,!0),O.isCompressed&&(Y.responseType="arraybuffer"),Y.onreadystatechange=function(){if(Y.readyState===XMLHttpRequest.DONE){var W;if((Y.status===200||Y.status===0)&&(O.isCompressed&&Y.response?W=new Uint8Array(Y.response):!O.isCompressed&&Y.responseText&&(W=(0,T.stringToBytes)(Y.responseText)),W))return void R({cMapData:W,compressionType:I});G(new Error(Y.statusText))}},Y.send(null)})}}]),u}(m);_.DOMCMapReaderFactory=c;var l=function(){function i(){$(this,i)}return F(i,[{key:"create",value:function(o,u){(0,T.assert)(o>0&&u>0,"Invalid SVG dimensions");var A=document.createElementNS(v,"svg:svg");return A.setAttribute("version","1.1"),A.setAttribute("width",o+"px"),A.setAttribute("height",u+"px"),A.setAttribute("preserveAspectRatio","none"),A.setAttribute("viewBox","0 0 "+o+" "+u),A}},{key:"createElement",value:function(o){return(0,T.assert)(typeof o=="string","Invalid SVG element type"),document.createElementNS(v,o)}}]),i}();_.DOMSVGFactory=l;var a=function(){function i(o){var u=o.viewBox,A=o.scale,I=o.rotation,O=o.offsetX,R=O===void 0?0:O,G=o.offsetY,Y=G===void 0?0:G,W=o.dontFlip,z=W!==void 0&&W;$(this,i),this.viewBox=u,this.scale=A,this.rotation=I,this.offsetX=R,this.offsetY=Y;var ee,te,ae,Z,K,V,q,Q,re=(u[2]+u[0])/2,ne=(u[3]+u[1])/2;switch((I%=360)<0&&(I+=360),I){case 180:ee=-1,te=0,ae=0,Z=1;break;case 90:ee=0,te=1,ae=1,Z=0;break;case 270:ee=0,te=-1,ae=-1,Z=0;break;case 0:ee=1,te=0,ae=0,Z=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}z&&(ae=-ae,Z=-Z),ee===0?(K=Math.abs(ne-u[1])*A+R,V=Math.abs(re-u[0])*A+Y,q=Math.abs(u[3]-u[1])*A,Q=Math.abs(u[2]-u[0])*A):(K=Math.abs(re-u[0])*A+R,V=Math.abs(ne-u[1])*A+Y,q=Math.abs(u[2]-u[0])*A,Q=Math.abs(u[3]-u[1])*A),this.transform=[ee*A,te*A,ae*A,Z*A,K-ee*A*re-ae*A*ne,V-te*A*re-Z*A*ne],this.width=q,this.height=Q}return F(i,[{key:"clone",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.scale,A=u===void 0?this.scale:u,I=o.rotation,O=I===void 0?this.rotation:I,R=o.offsetX,G=R===void 0?this.offsetX:R,Y=o.offsetY,W=Y===void 0?this.offsetY:Y,z=o.dontFlip,ee=z!==void 0&&z;return new i({viewBox:this.viewBox.slice(),scale:A,rotation:O,offsetX:G,offsetY:W,dontFlip:ee})}},{key:"convertToViewportPoint",value:function(o,u){return T.Util.applyTransform([o,u],this.transform)}},{key:"convertToViewportRectangle",value:function(o){var u=T.Util.applyTransform([o[0],o[1]],this.transform),A=T.Util.applyTransform([o[2],o[3]],this.transform);return[u[0],u[1],A[0],A[1]]}},{key:"convertToPdfPoint",value:function(o,u){return T.Util.applyInverseTransform([o,u],this.transform)}}]),i}();_.PageViewport=a;var e=function(i){D(u,i);var o=U(u);function u(A,I){var O;return $(this,u),(O=o.call(this,A)).type=I,O}return u}(T.BaseException);_.RenderingCancelledException=e;var t={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function s(i){for(var o=i.length,u=0;u<o&&i[u].trim()==="";)u++;return i.substring(u,u+5).toLowerCase()==="data:"}_.LinkTarget=t;var r,p=function(){function i(){$(this,i),this.started=Object.create(null),this.times=[]}return F(i,[{key:"time",value:function(o){o in this.started&&(0,T.warn)("Timer is already running for ".concat(o)),this.started[o]=Date.now()}},{key:"timeEnd",value:function(o){o in this.started||(0,T.warn)("Timer has not been started for ".concat(o)),this.times.push({name:o,start:this.started[o],end:Date.now()}),delete this.started[o]}},{key:"toString",value:function(){var o,u=[],A=0,I=N(this.times);try{for(I.s();!(o=I.n()).done;){var O=o.value.name;O.length>A&&(A=O.length)}}catch(z){I.e(z)}finally{I.f()}var R,G=N(this.times);try{for(G.s();!(R=G.n()).done;){var Y=R.value,W=Y.end-Y.start;u.push("".concat(Y.name.padEnd(A)," ").concat(W,`ms
- `))}}catch(z){G.e(z)}finally{G.f()}return u.join("")}}]),i}();function k(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype&&typeof ReadableStream<"u"}function w(i,o){try{var u=(o?new URL(i,o):new URL(i)).protocol;return u==="http:"||u==="https:"}catch{return!1}}_.StatTimer=p;var b=function(){function i(){$(this,i)}return F(i,null,[{key:"toDateObject",value:function(o){if(!o||!(0,T.isString)(o))return null;r||(r=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var u=r.exec(o);if(!u)return null;var A=parseInt(u[1],10),I=parseInt(u[2],10);I=I>=1&&I<=12?I-1:0;var O=parseInt(u[3],10);O=O>=1&&O<=31?O:1;var R=parseInt(u[4],10);R=R>=0&&R<=23?R:0;var G=parseInt(u[5],10);G=G>=0&&G<=59?G:0;var Y=parseInt(u[6],10);Y=Y>=0&&Y<=59?Y:0;var W=u[7]||"Z",z=parseInt(u[8],10);z=z>=0&&z<=23?z:0;var ee=parseInt(u[9],10)||0;return ee=ee>=0&&ee<=59?ee:0,W==="-"?(R+=z,G+=ee):W==="+"&&(R-=z,G-=ee),new Date(Date.UTC(A,I,O,R,G,Y))}}]),i}();_.PDFDateString=b},(L,_,h)=>{L.exports=h(3)},(L,_,h)=>{function f(P){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},f(P)}var E=function(P){var T,N=Object.prototype,j=N.hasOwnProperty,x=typeof Symbol=="function"?Symbol:{},M=x.iterator||"@@iterator",D=x.asyncIterator||"@@asyncIterator",C=x.toStringTag||"@@toStringTag";function U(o,u,A){return Object.defineProperty(o,u,{value:A,enumerable:!0,configurable:!0,writable:!0}),o[u]}try{U({},"")}catch{U=function(u,A,I){return u[A]=I}}function J(o,u,A,I){var O=u&&u.prototype instanceof d?u:d,R=Object.create(O.prototype),G=new w(I||[]);return R._invoke=function(Y,W,z){var ee=$;return function(te,ae){if(ee===F)throw new Error("Generator is already running");if(ee===g){if(te==="throw")throw ae;return i()}for(z.method=te,z.arg=ae;;){var Z=z.delegate;if(Z){var K=r(Z,z);if(K){if(K===v)continue;return K}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(ee===$)throw ee=g,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);ee=F;var V=H(Y,W,z);if(V.type==="normal"){if(ee=z.done?g:B,V.arg===v)continue;return{value:V.arg,done:z.done}}V.type==="throw"&&(ee=g,z.method="throw",z.arg=V.arg)}}}(o,A,G),R}function H(o,u,A){try{return{type:"normal",arg:o.call(u,A)}}catch(I){return{type:"throw",arg:I}}}P.wrap=J;var $="suspendedStart",B="suspendedYield",F="executing",g="completed",v={};function d(){}function y(){}function m(){}var c={};c[M]=function(){return this};var l=Object.getPrototypeOf,a=l&&l(l(b([])));a&&a!==N&&j.call(a,M)&&(c=a);var e=m.prototype=d.prototype=Object.create(c);function t(o){["next","throw","return"].forEach(function(u){U(o,u,function(A){return this._invoke(u,A)})})}function s(o,u){function A(O,R,G,Y){var W=H(o[O],o,R);if(W.type!=="throw"){var z=W.arg,ee=z.value;return ee&&f(ee)==="object"&&j.call(ee,"__await")?u.resolve(ee.__await).then(function(te){A("next",te,G,Y)},function(te){A("throw",te,G,Y)}):u.resolve(ee).then(function(te){z.value=te,G(z)},function(te){return A("throw",te,G,Y)})}Y(W.arg)}var I;this._invoke=function(O,R){function G(){return new u(function(Y,W){A(O,R,Y,W)})}return I=I?I.then(G,G):G()}}function r(o,u){var A=o.iterator[u.method];if(A===T){if(u.delegate=null,u.method==="throw"){if(o.iterator.return&&(u.method="return",u.arg=T,r(o,u),u.method==="throw"))return v;u.method="throw",u.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var I=H(A,o.iterator,u.arg);if(I.type==="throw")return u.method="throw",u.arg=I.arg,u.delegate=null,v;var O=I.arg;return O?O.done?(u[o.resultName]=O.value,u.next=o.nextLoc,u.method!=="return"&&(u.method="next",u.arg=T),u.delegate=null,v):O:(u.method="throw",u.arg=new TypeError("iterator result is not an object"),u.delegate=null,v)}function p(o){var u={tryLoc:o[0]};1 in o&&(u.catchLoc=o[1]),2 in o&&(u.finallyLoc=o[2],u.afterLoc=o[3]),this.tryEntries.push(u)}function k(o){var u=o.completion||{};u.type="normal",delete u.arg,o.completion=u}function w(o){this.tryEntries=[{tryLoc:"root"}],o.forEach(p,this),this.reset(!0)}function b(o){if(o){var u=o[M];if(u)return u.call(o);if(typeof o.next=="function")return o;if(!isNaN(o.length)){var A=-1,I=function O(){for(;++A<o.length;)if(j.call(o,A))return O.value=o[A],O.done=!1,O;return O.value=T,O.done=!0,O};return I.next=I}}return{next:i}}function i(){return{value:T,done:!0}}return y.prototype=e.constructor=m,m.constructor=y,y.displayName=U(m,C,"GeneratorFunction"),P.isGeneratorFunction=function(o){var u=typeof o=="function"&&o.constructor;return!!u&&(u===y||(u.displayName||u.name)==="GeneratorFunction")},P.mark=function(o){return Object.setPrototypeOf?Object.setPrototypeOf(o,m):(o.__proto__=m,U(o,C,"GeneratorFunction")),o.prototype=Object.create(e),o},P.awrap=function(o){return{__await:o}},t(s.prototype),s.prototype[D]=function(){return this},P.AsyncIterator=s,P.async=function(o,u,A,I,O){O===void 0&&(O=Promise);var R=new s(J(o,u,A,I),O);return P.isGeneratorFunction(u)?R:R.next().then(function(G){return G.done?G.value:R.next()})},t(e),U(e,C,"Generator"),e[M]=function(){return this},e.toString=function(){return"[object Generator]"},P.keys=function(o){var u=[];for(var A in o)u.push(A);return u.reverse(),function I(){for(;u.length;){var O=u.pop();if(O in o)return I.value=O,I.done=!1,I}return I.done=!0,I}},P.values=b,w.prototype={constructor:w,reset:function(o){if(this.prev=0,this.next=0,this.sent=this._sent=T,this.done=!1,this.delegate=null,this.method="next",this.arg=T,this.tryEntries.forEach(k),!o)for(var u in this)u.charAt(0)==="t"&&j.call(this,u)&&!isNaN(+u.slice(1))&&(this[u]=T)},stop:function(){this.done=!0;var o=this.tryEntries[0].completion;if(o.type==="throw")throw o.arg;return this.rval},dispatchException:function(o){if(this.done)throw o;var u=this;function A(W,z){return R.type="throw",R.arg=o,u.next=W,z&&(u.method="next",u.arg=T),!!z}for(var I=this.tryEntries.length-1;I>=0;--I){var O=this.tryEntries[I],R=O.completion;if(O.tryLoc==="root")return A("end");if(O.tryLoc<=this.prev){var G=j.call(O,"catchLoc"),Y=j.call(O,"finallyLoc");if(G&&Y){if(this.prev<O.catchLoc)return A(O.catchLoc,!0);if(this.prev<O.finallyLoc)return A(O.finallyLoc)}else if(G){if(this.prev<O.catchLoc)return A(O.catchLoc,!0)}else{if(!Y)throw new Error("try statement without catch or finally");if(this.prev<O.finallyLoc)return A(O.finallyLoc)}}}},abrupt:function(o,u){for(var A=this.tryEntries.length-1;A>=0;--A){var I=this.tryEntries[A];if(I.tryLoc<=this.prev&&j.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var O=I;break}}O&&(o==="break"||o==="continue")&&O.tryLoc<=u&&u<=O.finallyLoc&&(O=null);var R=O?O.completion:{};return R.type=o,R.arg=u,O?(this.method="next",this.next=O.finallyLoc,v):this.complete(R)},complete:function(o,u){if(o.type==="throw")throw o.arg;return o.type==="break"||o.type==="continue"?this.next=o.arg:o.type==="return"?(this.rval=this.arg=o.arg,this.method="return",this.next="end"):o.type==="normal"&&u&&(this.next=u),v},finish:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var A=this.tryEntries[u];if(A.finallyLoc===o)return this.complete(A.completion,A.afterLoc),k(A),v}},catch:function(o){for(var u=this.tryEntries.length-1;u>=0;--u){var A=this.tryEntries[u];if(A.tryLoc===o){var I=A.completion;if(I.type==="throw"){var O=I.arg;k(A)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(o,u,A){return this.delegate={iterator:b(o),resultName:u,nextLoc:A},this.method==="next"&&(this.arg=T),v}},P}(f(L=h.nmd(L))==="object"?L.exports:{});try{regeneratorRuntime=E}catch{Function("r","regeneratorRuntime = r")(E)}},(L,_,h)=>{function f(o,u){for(var A=0;A<u.length;A++){var I=u[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(o,I.key,I)}}function E(o,u){if(o){if(typeof o=="string")return P(o,u);var A=Object.prototype.toString.call(o).slice(8,-1);return A==="Object"&&o.constructor&&(A=o.constructor.name),A==="Map"||A==="Set"?Array.from(o):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?P(o,u):void 0}}function P(o,u){(u==null||u>o.length)&&(u=o.length);for(var A=0,I=new Array(u);A<u;A++)I[A]=o[A];return I}function T(o){return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},T(o)}function N(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}function j(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),u&&x(o,u)}function x(o,u){return x=Object.setPrototypeOf||function(A,I){return A.__proto__=I,A},x(o,u)}function M(o){var u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var A,I=C(o);if(u){var O=C(this).constructor;A=Reflect.construct(I,arguments,O)}else A=I.apply(this,arguments);return D(this,A)}}function D(o,u){return!u||T(u)!=="object"&&typeof u!="function"?function(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(o):u}function C(o){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},C(o)}Object.defineProperty(_,"__esModule",{value:!0}),_.arrayByteLength=s,_.arraysToBytes=function(o){var u=o.length;if(u===1&&o[0]instanceof Uint8Array)return o[0];for(var A=0,I=0;I<u;I++)A+=s(o[I]);for(var O=0,R=new Uint8Array(A),G=0;G<u;G++){var Y=o[G];Y instanceof Uint8Array||(Y=typeof Y=="string"?t(Y):new Uint8Array(Y));var W=Y.byteLength;R.set(Y,O),O+=W}return R},_.assert=B,_.bytesToString=function(o){B(o!==null&&T(o)==="object"&&o.length!==void 0,"Invalid argument for bytesToString");var u=o.length,A=8192;if(u<A)return String.fromCharCode.apply(null,o);for(var I=[],O=0;O<u;O+=A){var R=Math.min(O+A,u),G=o.subarray(O,R);I.push(String.fromCharCode.apply(null,G))}return I.join("")},_.createObjectURL=function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",A=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(URL.createObjectURL&&!A)return URL.createObjectURL(new Blob([o],{type:u}));for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",O="data:".concat(u,";base64,"),R=0,G=o.length;R<G;R+=3){var Y=255&o[R],W=255&o[R+1],z=255&o[R+2],ee=Y>>2,te=(3&Y)<<4|W>>4,ae=R+1<G?(15&W)<<2|z>>6:64,Z=R+2<G?63&z:64;O+=I[ee]+I[te]+I[ae]+I[Z]}return O},_.createPromiseCapability=function(){var o=Object.create(null),u=!1;return Object.defineProperty(o,"settled",{get:function(){return u}}),o.promise=new Promise(function(A,I){o.resolve=function(O){u=!0,A(O)},o.reject=function(O){u=!0,I(O)}}),o},_.createValidAbsoluteUrl=function(o,u){if(!o)return null;try{var A=u?new URL(o,u):new URL(o);if(function(I){if(!I)return!1;switch(I.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(A))return A}catch{}return null},_.escapeString=function(o){return o.replace(/([()\\\n\r])/g,function(u){return u===`
- `?"\\n":u==="\r"?"\\r":"\\".concat(u)})},_.getModificationDate=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date,u=[o.getUTCFullYear().toString(),(o.getUTCMonth()+1).toString().padStart(2,"0"),o.getUTCDate().toString().padStart(2,"0"),o.getUTCHours().toString().padStart(2,"0"),o.getUTCMinutes().toString().padStart(2,"0"),o.getUTCSeconds().toString().padStart(2,"0")];return u.join("")},_.getVerbosityLevel=function(){return J},_.info=function(o){J>=U.INFOS&&console.log("Info: ".concat(o))},_.isArrayBuffer=function(o){return T(o)==="object"&&o!==null&&o.byteLength!==void 0},_.isArrayEqual=function(o,u){if(o.length!==u.length)return!1;for(var A=0,I=o.length;A<I;A++)if(o[A]!==u[A])return!1;return!0},_.isAscii=function(o){return/^[\x00-\x7F]*$/.test(o)},_.isBool=function(o){return typeof o=="boolean"},_.isNum=function(o){return typeof o=="number"},_.isSameOrigin=function(o,u){var A;try{if(!(A=new URL(o)).origin||A.origin==="null")return!1}catch{return!1}var I=new URL(u,A);return A.origin===I.origin},_.isString=function(o){return typeof o=="string"},_.objectFromMap=function(o){var u,A,I,O=Object.create(null),R=function(z,ee){var te=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(!te){if(Array.isArray(z)||(te=E(z))||ee&&z&&typeof z.length=="number"){te&&(z=te);var ae=0,Z=function(){};return{s:Z,n:function(){return ae>=z.length?{done:!0}:{done:!1,value:z[ae++]}},e:function(Q){throw Q},f:Z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var K,V=!0,q=!1;return{s:function(){te=te.call(z)},n:function(){var Q=te.next();return V=Q.done,Q},e:function(Q){q=!0,K=Q},f:function(){try{V||te.return==null||te.return()}finally{if(q)throw K}}}}(o);try{for(R.s();!(u=R.n()).done;){var G=(A=u.value,I=2,function(z){if(Array.isArray(z))return z}(A)||function(z,ee){var te=z&&(typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"]);if(te!=null){var ae,Z,K=[],V=!0,q=!1;try{for(te=te.call(z);!(V=(ae=te.next()).done)&&(K.push(ae.value),!ee||K.length!==ee);V=!0);}catch(Q){q=!0,Z=Q}finally{try{V||te.return==null||te.return()}finally{if(q)throw Z}}return K}}(A,I)||E(A,I)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),Y=G[0],W=G[1];O[Y]=W}}catch(z){R.e(z)}finally{R.f()}return O},_.objectSize=function(o){return Object.keys(o).length},_.removeNullCharacters=function(o){return typeof o!="string"?(H("The argument for removeNullCharacters must be a string."),o):o.replace(e,"")},_.setVerbosityLevel=function(o){Number.isInteger(o)&&(J=o)},_.shadow=F,_.string32=function(o){return String.fromCharCode(o>>24&255,o>>16&255,o>>8&255,255&o)},_.stringToBytes=t,_.stringToPDFString=function(o){var u=o.length,A=[];if(o[0]==="þ"&&o[1]==="ÿ")for(var I=2;I<u;I+=2)A.push(String.fromCharCode(o.charCodeAt(I)<<8|o.charCodeAt(I+1)));else if(o[0]==="ÿ"&&o[1]==="þ")for(var O=2;O<u;O+=2)A.push(String.fromCharCode(o.charCodeAt(O+1)<<8|o.charCodeAt(O)));else for(var R=0;R<u;++R){var G=i[o.charCodeAt(R)];A.push(G?String.fromCharCode(G):o.charAt(R))}return A.join("")},_.stringToUTF16BEString=function(o){for(var u=["þÿ"],A=0,I=o.length;A<I;A++){var O=o.charCodeAt(A);u.push(String.fromCharCode(O>>8&255),String.fromCharCode(255&O))}return u.join("")},_.stringToUTF8String=function(o){return decodeURIComponent(escape(o))},_.unreachable=$,_.utf8StringToString=function(o){return unescape(encodeURIComponent(o))},_.warn=H,_.VerbosityLevel=_.Util=_.UNSUPPORTED_FEATURES=_.UnknownErrorException=_.UnexpectedResponseException=_.TextRenderingMode=_.StreamType=_.PermissionFlag=_.PasswordResponses=_.PasswordException=_.PageActionEventType=_.OPS=_.MissingPDFException=_.IsLittleEndianCached=_.IsEvalSupportedCached=_.InvalidPDFException=_.ImageKind=_.IDENTITY_MATRIX=_.FormatError=_.FontType=_.FONT_IDENTITY_MATRIX=_.DocumentActionEventType=_.CMapCompressionType=_.BaseException=_.AnnotationType=_.AnnotationStateModelType=_.AnnotationReviewState=_.AnnotationReplyType=_.AnnotationMarkedState=_.AnnotationFlag=_.AnnotationFieldFlag=_.AnnotationBorderStyleType=_.AnnotationActionEventType=_.AbortException=void 0,h(5),_.IDENTITY_MATRIX=[1,0,0,1,0,0],_.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],_.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},_.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},_.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},_.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},_.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},_.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},_.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},_.AnnotationReplyType={GROUP:"Group",REPLY:"R"},_.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},_.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},_.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},_.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},_.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},_.PageActionEventType={O:"PageOpen",C:"PageClose"},_.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},_.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var U={ERRORS:0,WARNINGS:1,INFOS:5};_.VerbosityLevel=U,_.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},_.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},_.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"},_.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var J=U.WARNINGS;function H(o){J>=U.WARNINGS&&console.log("Warning: ".concat(o))}function $(o){throw new Error(o)}function B(o,u){o||$(u)}function F(o,u,A){return Object.defineProperty(o,u,{value:A,enumerable:!0,configurable:!0,writable:!1}),A}var g=function(){function o(u){this.constructor===o&&$("Cannot initialize BaseException."),this.message=u,this.name=this.constructor.name}return o.prototype=new Error,o.constructor=o,o}();_.BaseException=g;var v=function(o){j(A,o);var u=M(A);function A(I,O){var R;return N(this,A),(R=u.call(this,I)).code=O,R}return A}(g);_.PasswordException=v;var d=function(o){j(A,o);var u=M(A);function A(I,O){var R;return N(this,A),(R=u.call(this,I)).details=O,R}return A}(g);_.UnknownErrorException=d;var y=function(o){j(A,o);var u=M(A);function A(){return N(this,A),u.apply(this,arguments)}return A}(g);_.InvalidPDFException=y;var m=function(o){j(A,o);var u=M(A);function A(){return N(this,A),u.apply(this,arguments)}return A}(g);_.MissingPDFException=m;var c=function(o){j(A,o);var u=M(A);function A(I,O){var R;return N(this,A),(R=u.call(this,I)).status=O,R}return A}(g);_.UnexpectedResponseException=c;var l=function(o){j(A,o);var u=M(A);function A(){return N(this,A),u.apply(this,arguments)}return A}(g);_.FormatError=l;var a=function(o){j(A,o);var u=M(A);function A(){return N(this,A),u.apply(this,arguments)}return A}(g);_.AbortException=a;var e=/\x00/g;function t(o){B(typeof o=="string","Invalid argument for stringToBytes");for(var u=o.length,A=new Uint8Array(u),I=0;I<u;++I)A[I]=255&o.charCodeAt(I);return A}function s(o){return o.length!==void 0?o.length:(B(o.byteLength!==void 0,"arrayByteLength - invalid argument."),o.byteLength)}var r={get value(){return F(this,"value",((o=new Uint8Array(4))[0]=1,new Uint32Array(o.buffer,0,1)[0]===1));var o}};_.IsLittleEndianCached=r;var p={get value(){return F(this,"value",function(){try{return new Function(""),!0}catch{return!1}}())}};_.IsEvalSupportedCached=p;var k,w=(k=Array(256).keys(),function(o){if(Array.isArray(o))return P(o)}(k)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(k)||E(k)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()).map(function(o){return o.toString(16).padStart(2,"0")}),b=function(){function o(){N(this,o)}var u,A,I;return u=o,I=[{key:"makeHexColor",value:function(O,R,G){return"#".concat(w[O]).concat(w[R]).concat(w[G])}},{key:"transform",value:function(O,R){return[O[0]*R[0]+O[2]*R[1],O[1]*R[0]+O[3]*R[1],O[0]*R[2]+O[2]*R[3],O[1]*R[2]+O[3]*R[3],O[0]*R[4]+O[2]*R[5]+O[4],O[1]*R[4]+O[3]*R[5]+O[5]]}},{key:"applyTransform",value:function(O,R){return[O[0]*R[0]+O[1]*R[2]+R[4],O[0]*R[1]+O[1]*R[3]+R[5]]}},{key:"applyInverseTransform",value:function(O,R){var G=R[0]*R[3]-R[1]*R[2];return[(O[0]*R[3]-O[1]*R[2]+R[2]*R[5]-R[4]*R[3])/G,(-O[0]*R[1]+O[1]*R[0]+R[4]*R[1]-R[5]*R[0])/G]}},{key:"getAxialAlignedBoundingBox",value:function(O,R){var G=o.applyTransform(O,R),Y=o.applyTransform(O.slice(2,4),R),W=o.applyTransform([O[0],O[3]],R),z=o.applyTransform([O[2],O[1]],R);return[Math.min(G[0],Y[0],W[0],z[0]),Math.min(G[1],Y[1],W[1],z[1]),Math.max(G[0],Y[0],W[0],z[0]),Math.max(G[1],Y[1],W[1],z[1])]}},{key:"inverseTransform",value:function(O){var R=O[0]*O[3]-O[1]*O[2];return[O[3]/R,-O[1]/R,-O[2]/R,O[0]/R,(O[2]*O[5]-O[4]*O[3])/R,(O[4]*O[1]-O[5]*O[0])/R]}},{key:"apply3dTransform",value:function(O,R){return[O[0]*R[0]+O[1]*R[1]+O[2]*R[2],O[3]*R[0]+O[4]*R[1]+O[5]*R[2],O[6]*R[0]+O[7]*R[1]+O[8]*R[2]]}},{key:"singularValueDecompose2dScale",value:function(O){var R=[O[0],O[2],O[1],O[3]],G=O[0]*R[0]+O[1]*R[2],Y=O[0]*R[1]+O[1]*R[3],W=O[2]*R[0]+O[3]*R[2],z=O[2]*R[1]+O[3]*R[3],ee=(G+z)/2,te=Math.sqrt(Math.pow(G+z,2)-4*(G*z-W*Y))/2,ae=ee+te||1,Z=ee-te||1;return[Math.sqrt(ae),Math.sqrt(Z)]}},{key:"normalizeRect",value:function(O){var R=O.slice(0);return O[0]>O[2]&&(R[0]=O[2],R[2]=O[0]),O[1]>O[3]&&(R[1]=O[3],R[3]=O[1]),R}},{key:"intersect",value:function(O,R){function G(ee,te){return ee-te}var Y=[O[0],O[2],R[0],R[2]].sort(G),W=[O[1],O[3],R[1],R[3]].sort(G),z=[];return O=o.normalizeRect(O),R=o.normalizeRect(R),Y[0]===O[0]&&Y[1]===R[0]||Y[0]===R[0]&&Y[1]===O[0]?(z[0]=Y[1],z[2]=Y[2],W[0]===O[1]&&W[1]===R[1]||W[0]===R[1]&&W[1]===O[1]?(z[1]=W[1],z[3]=W[2],z):null):null}}],(A=null)&&f(u.prototype,A),I&&f(u,I),o}();_.Util=b;var i=[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]},(L,_,h)=>{var f=h(6);typeof globalThis<"u"&&globalThis._pdfjsCompatibilityChecked||(typeof globalThis<"u"&&globalThis.Math===Math||(globalThis=h(7)),globalThis._pdfjsCompatibilityChecked=!0,!globalThis.btoa&&f.isNodeJS&&(globalThis.btoa=function(E){return Buffer.from(E,"binary").toString("base64")}),!globalThis.atob&&f.isNodeJS&&(globalThis.atob=function(E){return Buffer.from(E,"base64").toString("binary")}),Object.fromEntries||h(53),globalThis.Promise.allSettled||(globalThis.Promise=h(84)),function(){var E=!1;if(typeof ReadableStream<"u")try{new ReadableStream({start:function(P){P.close()}}),E=!0}catch{}E||(globalThis.ReadableStream=h(112).ReadableStream)}())},(L,_)=>{function h(E){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},h(E)}Object.defineProperty(_,"__esModule",{value:!0}),_.isNodeJS=void 0;var f=!((typeof process>"u"?"undefined":h(process))!=="object"||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&process.type!=="browser");_.isNodeJS=f},(L,_,h)=>{h(8),L.exports=h(10)},(L,_,h)=>{h(9)({global:!0},{globalThis:h(10)})},(L,_,h)=>{var f=h(10),E=h(11).f,P=h(26),T=h(29),N=h(30),j=h(40),x=h(52);L.exports=function(M,D){var C,U,J,H,$,B=M.target,F=M.global,g=M.stat;if(C=F?f:g?f[B]||N(B,{}):(f[B]||{}).prototype)for(U in D){if(H=D[U],J=M.noTargetGet?($=E(C,U))&&$.value:C[U],!x(F?U:B+(g?".":"#")+U,M.forced)&&J!==void 0){if(typeof H==typeof J)continue;j(H,J)}(M.sham||J&&J.sham)&&P(H,"sham",!0),T(C,U,H,M)}}},L=>{var _=function(h){return h&&h.Math==Math&&h};L.exports=_(typeof globalThis=="object"&&globalThis)||_(typeof window=="object"&&window)||_(typeof self=="object"&&self)||_(typeof __webpack_require__.g=="object"&&__webpack_require__.g)||function(){return this}()||Function("return this")()},(L,_,h)=>{var f=h(12),E=h(14),P=h(15),T=h(16),N=h(20),j=h(22),x=h(24),M=Object.getOwnPropertyDescriptor;_.f=f?M:function(D,C){if(D=T(D),C=N(C,!0),x)try{return M(D,C)}catch{}if(j(D,C))return P(!E.f.call(D,C),D[C])}},(L,_,h)=>{var f=h(13);L.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},L=>{L.exports=function(_){try{return!!_()}catch{return!0}}},(L,_)=>{var h={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,E=f&&!h.call({1:2},1);_.f=E?function(P){var T=f(this,P);return!!T&&T.enumerable}:h},L=>{L.exports=function(_,h){return{enumerable:!(1&_),configurable:!(2&_),writable:!(4&_),value:h}}},(L,_,h)=>{var f=h(17),E=h(19);L.exports=function(P){return f(E(P))}},(L,_,h)=>{var f=h(13),E=h(18),P="".split;L.exports=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(T){return E(T)=="String"?P.call(T,""):Object(T)}:Object},L=>{var _={}.toString;L.exports=function(h){return _.call(h).slice(8,-1)}},L=>{L.exports=function(_){if(_==null)throw TypeError("Can't call method on "+_);return _}},(L,_,h)=>{var f=h(21);L.exports=function(E,P){if(!f(E))return E;var T,N;if(P&&typeof(T=E.toString)=="function"&&!f(N=T.call(E))||typeof(T=E.valueOf)=="function"&&!f(N=T.call(E))||!P&&typeof(T=E.toString)=="function"&&!f(N=T.call(E)))return N;throw TypeError("Can't convert object to primitive value")}},L=>{L.exports=function(_){return typeof _=="object"?_!==null:typeof _=="function"}},(L,_,h)=>{var f=h(23),E={}.hasOwnProperty;L.exports=Object.hasOwn||function(P,T){return E.call(f(P),T)}},(L,_,h)=>{var f=h(19);L.exports=function(E){return Object(f(E))}},(L,_,h)=>{var f=h(12),E=h(13),P=h(25);L.exports=!f&&!E(function(){return Object.defineProperty(P("div"),"a",{get:function(){return 7}}).a!=7})},(L,_,h)=>{var f=h(10),E=h(21),P=f.document,T=E(P)&&E(P.createElement);L.exports=function(N){return T?P.createElement(N):{}}},(L,_,h)=>{var f=h(12),E=h(27),P=h(15);L.exports=f?function(T,N,j){return E.f(T,N,P(1,j))}:function(T,N,j){return T[N]=j,T}},(L,_,h)=>{var f=h(12),E=h(24),P=h(28),T=h(20),N=Object.defineProperty;_.f=f?N:function(j,x,M){if(P(j),x=T(x,!0),P(M),E)try{return N(j,x,M)}catch{}if("get"in M||"set"in M)throw TypeError("Accessors not supported");return"value"in M&&(j[x]=M.value),j}},(L,_,h)=>{var f=h(21);L.exports=function(E){if(!f(E))throw TypeError(String(E)+" is not an object");return E}},(L,_,h)=>{var f=h(10),E=h(26),P=h(22),T=h(30),N=h(31),j=h(33),x=j.get,M=j.enforce,D=String(String).split("String");(L.exports=function(C,U,J,H){var $,B=!!H&&!!H.unsafe,F=!!H&&!!H.enumerable,g=!!H&&!!H.noTargetGet;typeof J=="function"&&(typeof U!="string"||P(J,"name")||E(J,"name",U),($=M(J)).source||($.source=D.join(typeof U=="string"?U:""))),C!==f?(B?!g&&C[U]&&(F=!0):delete C[U],F?C[U]=J:E(C,U,J)):F?C[U]=J:T(U,J)})(Function.prototype,"toString",function(){return typeof this=="function"&&x(this).source||N(this)})},(L,_,h)=>{var f=h(10),E=h(26);L.exports=function(P,T){try{E(f,P,T)}catch{f[P]=T}return T}},(L,_,h)=>{var f=h(32),E=Function.toString;typeof f.inspectSource!="function"&&(f.inspectSource=function(P){return E.call(P)}),L.exports=f.inspectSource},(L,_,h)=>{var f=h(10),E=h(30),P="__core-js_shared__",T=f[P]||E(P,{});L.exports=T},(L,_,h)=>{var f,E,P,T=h(34),N=h(10),j=h(21),x=h(26),M=h(22),D=h(32),C=h(35),U=h(39),J="Object already initialized",H=N.WeakMap;if(T||D.state){var $=D.state||(D.state=new H),B=$.get,F=$.has,g=$.set;f=function(d,y){if(F.call($,d))throw new TypeError(J);return y.facade=d,g.call($,d,y),y},E=function(d){return B.call($,d)||{}},P=function(d){return F.call($,d)}}else{var v=C("state");U[v]=!0,f=function(d,y){if(M(d,v))throw new TypeError(J);return y.facade=d,x(d,v,y),y},E=function(d){return M(d,v)?d[v]:{}},P=function(d){return M(d,v)}}L.exports={set:f,get:E,has:P,enforce:function(d){return P(d)?E(d):f(d,{})},getterFor:function(d){return function(y){var m;if(!j(y)||(m=E(y)).type!==d)throw TypeError("Incompatible receiver, "+d+" required");return m}}}},(L,_,h)=>{var f=h(10),E=h(31),P=f.WeakMap;L.exports=typeof P=="function"&&/native code/.test(E(P))},(L,_,h)=>{var f=h(36),E=h(38),P=f("keys");L.exports=function(T){return P[T]||(P[T]=E(T))}},(L,_,h)=>{var f=h(37),E=h(32);(L.exports=function(P,T){return E[P]||(E[P]=T!==void 0?T:{})})("versions",[]).push({version:"3.13.1",mode:f?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},L=>{L.exports=!1},L=>{var _=0,h=Math.random();L.exports=function(f){return"Symbol("+String(f===void 0?"":f)+")_"+(++_+h).toString(36)}},L=>{L.exports={}},(L,_,h)=>{var f=h(22),E=h(41),P=h(11),T=h(27);L.exports=function(N,j){for(var x=E(j),M=T.f,D=P.f,C=0;C<x.length;C++){var U=x[C];f(N,U)||M(N,U,D(j,U))}}},(L,_,h)=>{var f=h(42),E=h(44),P=h(51),T=h(28);L.exports=f("Reflect","ownKeys")||function(N){var j=E.f(T(N)),x=P.f;return x?j.concat(x(N)):j}},(L,_,h)=>{var f=h(43),E=h(10),P=function(T){return typeof T=="function"?T:void 0};L.exports=function(T,N){return arguments.length<2?P(f[T])||P(E[T]):f[T]&&f[T][N]||E[T]&&E[T][N]}},(L,_,h)=>{var f=h(10);L.exports=f},(L,_,h)=>{var f=h(45),E=h(50).concat("length","prototype");_.f=Object.getOwnPropertyNames||function(P){return f(P,E)}},(L,_,h)=>{var f=h(22),E=h(16),P=h(46).indexOf,T=h(39);L.exports=function(N,j){var x,M=E(N),D=0,C=[];for(x in M)!f(T,x)&&f(M,x)&&C.push(x);for(;j.length>D;)f(M,x=j[D++])&&(~P(C,x)||C.push(x));return C}},(L,_,h)=>{var f=h(16),E=h(47),P=h(49),T=function(N){return function(j,x,M){var D,C=f(j),U=E(C.length),J=P(M,U);if(N&&x!=x){for(;U>J;)if((D=C[J++])!=D)return!0}else for(;U>J;J++)if((N||J in C)&&C[J]===x)return N||J||0;return!N&&-1}};L.exports={includes:T(!0),indexOf:T(!1)}},(L,_,h)=>{var f=h(48),E=Math.min;L.exports=function(P){return P>0?E(f(P),9007199254740991):0}},L=>{var _=Math.ceil,h=Math.floor;L.exports=function(f){return isNaN(f=+f)?0:(f>0?h:_)(f)}},(L,_,h)=>{var f=h(48),E=Math.max,P=Math.min;L.exports=function(T,N){var j=f(T);return j<0?E(j+N,0):P(j,N)}},L=>{L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(L,_)=>{_.f=Object.getOwnPropertySymbols},(L,_,h)=>{var f=h(13),E=/#|\.prototype\./,P=function(M,D){var C=N[T(M)];return C==x||C!=j&&(typeof D=="function"?f(D):!!D)},T=P.normalize=function(M){return String(M).replace(E,".").toLowerCase()},N=P.data={},j=P.NATIVE="N",x=P.POLYFILL="P";L.exports=P},(L,_,h)=>{h(54),h(74);var f=h(43);L.exports=f.Object.fromEntries},(L,_,h)=>{var f=h(16),E=h(55),P=h(65),T=h(33),N=h(66),j="Array Iterator",x=T.set,M=T.getterFor(j);L.exports=N(Array,"Array",function(D,C){x(this,{type:j,target:f(D),index:0,kind:C})},function(){var D=M(this),C=D.target,U=D.kind,J=D.index++;return!C||J>=C.length?(D.target=void 0,{value:void 0,done:!0}):U=="keys"?{value:J,done:!1}:U=="values"?{value:C[J],done:!1}:{value:[J,C[J]],done:!1}},"values"),P.Arguments=P.Array,E("keys"),E("values"),E("entries")},(L,_,h)=>{var f=h(56),E=h(61),P=h(27),T=f("unscopables"),N=Array.prototype;N[T]==null&&P.f(N,T,{configurable:!0,value:E(null)}),L.exports=function(j){N[T][j]=!0}},(L,_,h)=>{var f=h(10),E=h(36),P=h(22),T=h(38),N=h(57),j=h(60),x=E("wks"),M=f.Symbol,D=j?M:M&&M.withoutSetter||T;L.exports=function(C){return P(x,C)&&(N||typeof x[C]=="string")||(N&&P(M,C)?x[C]=M[C]:x[C]=D("Symbol."+C)),x[C]}},(L,_,h)=>{var f=h(58),E=h(13);L.exports=!!Object.getOwnPropertySymbols&&!E(function(){var P=Symbol();return!String(P)||!(Object(P)instanceof Symbol)||!Symbol.sham&&f&&f<41})},(L,_,h)=>{var f,E,P=h(10),T=h(59),N=P.process,j=N&&N.versions,x=j&&j.v8;x?E=(f=x.split("."))[0]<4?1:f[0]+f[1]:T&&(!(f=T.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=T.match(/Chrome\/(\d+)/))&&(E=f[1]),L.exports=E&&+E},(L,_,h)=>{var f=h(42);L.exports=f("navigator","userAgent")||""},(L,_,h)=>{var f=h(57);L.exports=f&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(L,_,h)=>{var f,E=h(28),P=h(62),T=h(50),N=h(39),j=h(64),x=h(25),M=h(35),D=M("IE_PROTO"),C=function(){},U=function(H){return"<script>"+H+"<\/script>"},J=function(){try{f=document.domain&&new ActiveXObject("htmlfile")}catch{}var H,$;J=f?function(F){F.write(U("")),F.close();var g=F.parentWindow.Object;return F=null,g}(f):(($=x("iframe")).style.display="none",j.appendChild($),$.src="javascript:",(H=$.contentWindow.document).open(),H.write(U("document.F=Object")),H.close(),H.F);for(var B=T.length;B--;)delete J.prototype[T[B]];return J()};N[D]=!0,L.exports=Object.create||function(H,$){var B;return H!==null?(C.prototype=E(H),B=new C,C.prototype=null,B[D]=H):B=J(),$===void 0?B:P(B,$)}},(L,_,h)=>{var f=h(12),E=h(27),P=h(28),T=h(63);L.exports=f?Object.defineProperties:function(N,j){P(N);for(var x,M=T(j),D=M.length,C=0;D>C;)E.f(N,x=M[C++],j[x]);return N}},(L,_,h)=>{var f=h(45),E=h(50);L.exports=Object.keys||function(P){return f(P,E)}},(L,_,h)=>{var f=h(42);L.exports=f("document","documentElement")},L=>{L.exports={}},(L,_,h)=>{var f=h(9),E=h(67),P=h(69),T=h(72),N=h(71),j=h(26),x=h(29),M=h(56),D=h(37),C=h(65),U=h(68),J=U.IteratorPrototype,H=U.BUGGY_SAFARI_ITERATORS,$=M("iterator"),B="keys",F="values",g="entries",v=function(){return this};L.exports=function(d,y,m,c,l,a,e){E(m,y,c);var t,s,r,p=function(A){if(A===l&&o)return o;if(!H&&A in b)return b[A];switch(A){case B:case F:case g:return function(){return new m(this,A)}}return function(){return new m(this)}},k=y+" Iterator",w=!1,b=d.prototype,i=b[$]||b["@@iterator"]||l&&b[l],o=!H&&i||p(l),u=y=="Array"&&b.entries||i;if(u&&(t=P(u.call(new d)),J!==Object.prototype&&t.next&&(D||P(t)===J||(T?T(t,J):typeof t[$]!="function"&&j(t,$,v)),N(t,k,!0,!0),D&&(C[k]=v))),l==F&&i&&i.name!==F&&(w=!0,o=function(){return i.call(this)}),D&&!e||b[$]===o||j(b,$,o),C[y]=o,l)if(s={values:p(F),keys:a?o:p(B),entries:p(g)},e)for(r in s)(H||w||!(r in b))&&x(b,r,s[r]);else f({target:y,proto:!0,forced:H||w},s);return s}},(L,_,h)=>{var f=h(68).IteratorPrototype,E=h(61),P=h(15),T=h(71),N=h(65),j=function(){return this};L.exports=function(x,M,D){var C=M+" Iterator";return x.prototype=E(f,{next:P(1,D)}),T(x,C,!1,!0),N[C]=j,x}},(L,_,h)=>{var f,E,P,T=h(13),N=h(69),j=h(26),x=h(22),M=h(56),D=h(37),C=M("iterator"),U=!1;[].keys&&("next"in(P=[].keys())?(E=N(N(P)))!==Object.prototype&&(f=E):U=!0);var J=f==null||T(function(){var H={};return f[C].call(H)!==H});J&&(f={}),D&&!J||x(f,C)||j(f,C,function(){return this}),L.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:U}},(L,_,h)=>{var f=h(22),E=h(23),P=h(35),T=h(70),N=P("IE_PROTO"),j=Object.prototype;L.exports=T?Object.getPrototypeOf:function(x){return x=E(x),f(x,N)?x[N]:typeof x.constructor=="function"&&x instanceof x.constructor?x.constructor.prototype:x instanceof Object?j:null}},(L,_,h)=>{var f=h(13);L.exports=!f(function(){function E(){}return E.prototype.constructor=null,Object.getPrototypeOf(new E)!==E.prototype})},(L,_,h)=>{var f=h(27).f,E=h(22),P=h(56)("toStringTag");L.exports=function(T,N,j){T&&!E(T=j?T:T.prototype,P)&&f(T,P,{configurable:!0,value:N})}},(L,_,h)=>{var f=h(28),E=h(73);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var P,T=!1,N={};try{(P=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(N,[]),T=N instanceof Array}catch{}return function(j,x){return f(j),E(x),T?P.call(j,x):j.__proto__=x,j}}():void 0)},(L,_,h)=>{var f=h(21);L.exports=function(E){if(!f(E)&&E!==null)throw TypeError("Can't set "+String(E)+" as a prototype");return E}},(L,_,h)=>{var f=h(9),E=h(75),P=h(83);f({target:"Object",stat:!0},{fromEntries:function(T){var N={};return E(T,function(j,x){P(N,j,x)},{AS_ENTRIES:!0}),N}})},(L,_,h)=>{var f=h(28),E=h(76),P=h(47),T=h(77),N=h(79),j=h(82),x=function(M,D){this.stopped=M,this.result=D};L.exports=function(M,D,C){var U,J,H,$,B,F,g,v=C&&C.that,d=!(!C||!C.AS_ENTRIES),y=!(!C||!C.IS_ITERATOR),m=!(!C||!C.INTERRUPTED),c=T(D,v,1+d+m),l=function(e){return U&&j(U),new x(!0,e)},a=function(e){return d?(f(e),m?c(e[0],e[1],l):c(e[0],e[1])):m?c(e,l):c(e)};if(y)U=M;else{if(typeof(J=N(M))!="function")throw TypeError("Target is not iterable");if(E(J)){for(H=0,$=P(M.length);$>H;H++)if((B=a(M[H]))&&B instanceof x)return B;return new x(!1)}U=J.call(M)}for(F=U.next;!(g=F.call(U)).done;){try{B=a(g.value)}catch(e){throw j(U),e}if(typeof B=="object"&&B&&B instanceof x)return B}return new x(!1)}},(L,_,h)=>{var f=h(56),E=h(65),P=f("iterator"),T=Array.prototype;L.exports=function(N){return N!==void 0&&(E.Array===N||T[P]===N)}},(L,_,h)=>{var f=h(78);L.exports=function(E,P,T){if(f(E),P===void 0)return E;switch(T){case 0:return function(){return E.call(P)};case 1:return function(N){return E.call(P,N)};case 2:return function(N,j){return E.call(P,N,j)};case 3:return function(N,j,x){return E.call(P,N,j,x)}}return function(){return E.apply(P,arguments)}}},L=>{L.exports=function(_){if(typeof _!="function")throw TypeError(String(_)+" is not a function");return _}},(L,_,h)=>{var f=h(80),E=h(65),P=h(56)("iterator");L.exports=function(T){if(T!=null)return T[P]||T["@@iterator"]||E[f(T)]}},(L,_,h)=>{var f=h(81),E=h(18),P=h(56)("toStringTag"),T=E(function(){return arguments}())=="Arguments";L.exports=f?E:function(N){var j,x,M;return N===void 0?"Undefined":N===null?"Null":typeof(x=function(D,C){try{return D[C]}catch{}}(j=Object(N),P))=="string"?x:T?E(j):(M=E(j))=="Object"&&typeof j.callee=="function"?"Arguments":M}},(L,_,h)=>{var f={};f[h(56)("toStringTag")]="z",L.exports=String(f)==="[object z]"},(L,_,h)=>{var f=h(28);L.exports=function(E){var P=E.return;if(P!==void 0)return f(P.call(E)).value}},(L,_,h)=>{var f=h(20),E=h(27),P=h(15);L.exports=function(T,N,j){var x=f(N);x in T?E.f(T,x,P(0,j)):T[x]=j}},(L,_,h)=>{h(85),h(86),h(88),h(105),h(106),h(107),h(108),h(110);var f=h(43);L.exports=f.Promise},(L,_,h)=>{var f=h(9),E=h(69),P=h(72),T=h(61),N=h(26),j=h(15),x=h(75),M=function(D,C){var U=this;if(!(U instanceof M))return new M(D,C);P&&(U=P(new Error(void 0),E(U))),C!==void 0&&N(U,"message",String(C));var J=[];return x(D,J.push,{that:J}),N(U,"errors",J),U};M.prototype=T(Error.prototype,{constructor:j(5,M),message:j(5,""),name:j(5,"AggregateError")}),f({global:!0},{AggregateError:M})},(L,_,h)=>{var f=h(81),E=h(29),P=h(87);f||E(Object.prototype,"toString",P,{unsafe:!0})},(L,_,h)=>{var f=h(81),E=h(80);L.exports=f?{}.toString:function(){return"[object "+E(this)+"]"}},(L,_,h)=>{var f,E,P,T,N=h(9),j=h(37),x=h(10),M=h(42),D=h(89),C=h(29),U=h(90),J=h(72),H=h(71),$=h(91),B=h(21),F=h(78),g=h(92),v=h(31),d=h(75),y=h(93),m=h(94),c=h(95).set,l=h(98),a=h(100),e=h(102),t=h(101),s=h(103),r=h(33),p=h(52),k=h(56),w=h(104),b=h(97),i=h(58),o=k("species"),u="Promise",A=r.get,I=r.set,O=r.getterFor(u),R=D&&D.prototype,G=D,Y=R,W=x.TypeError,z=x.document,ee=x.process,te=t.f,ae=te,Z=!!(z&&z.createEvent&&x.dispatchEvent),K=typeof PromiseRejectionEvent=="function",V="unhandledrejection",q=!1,Q=p(u,function(){var oe=v(G)!==String(G);if(!oe&&i===66||j&&!Y.finally)return!0;if(i>=51&&/native code/.test(G))return!1;var le=new G(function(be){be(1)}),ve=function(be){be(function(){},function(){})};return(le.constructor={})[o]=ve,!(q=le.then(function(){})instanceof ve)||!oe&&w&&!K}),re=Q||!y(function(oe){G.all(oe).catch(function(){})}),ne=function(oe){var le;return!(!B(oe)||typeof(le=oe.then)!="function")&&le},se=function(oe,le){if(!oe.notified){oe.notified=!0;var ve=oe.reactions;l(function(){for(var be=oe.value,ke=oe.state==1,_e=0;ve.length>_e;){var xe,Ae,Ee,Fe=ve[_e++],Ne=ke?Fe.ok:Fe.fail,Be=Fe.resolve,qe=Fe.reject,Re=Fe.domain;try{Ne?(ke||(oe.rejection===2&&me(oe),oe.rejection=1),Ne===!0?xe=be:(Re&&Re.enter(),xe=Ne(be),Re&&(Re.exit(),Ee=!0)),xe===Fe.promise?qe(W("Promise-chain cycle")):(Ae=ne(xe))?Ae.call(xe,Be,qe):Be(xe)):qe(be)}catch(at){Re&&!Ee&&Re.exit(),qe(at)}}oe.reactions=[],oe.notified=!1,le&&!oe.rejection&&he(oe)})}},ue=function(oe,le,ve){var be,ke;Z?((be=z.createEvent("Event")).promise=le,be.reason=ve,be.initEvent(oe,!1,!0),x.dispatchEvent(be)):be={promise:le,reason:ve},!K&&(ke=x["on"+oe])?ke(be):oe===V&&e("Unhandled promise rejection",ve)},he=function(oe){c.call(x,function(){var le,ve=oe.facade,be=oe.value;if(pe(oe)&&(le=s(function(){b?ee.emit("unhandledRejection",be,ve):ue(V,ve,be)}),oe.rejection=b||pe(oe)?2:1,le.error))throw le.value})},pe=function(oe){return oe.rejection!==1&&!oe.parent},me=function(oe){c.call(x,function(){var le=oe.facade;b?ee.emit("rejectionHandled",le):ue("rejectionhandled",le,oe.value)})},fe=function(oe,le,ve){return function(be){oe(le,be,ve)}},ge=function(oe,le,ve){oe.done||(oe.done=!0,ve&&(oe=ve),oe.value=le,oe.state=2,se(oe,!0))},de=function(oe,le,ve){if(!oe.done){oe.done=!0,ve&&(oe=ve);try{if(oe.facade===le)throw W("Promise can't be resolved itself");var be=ne(le);be?l(function(){var ke={done:!1};try{be.call(le,fe(de,ke,oe),fe(ge,ke,oe))}catch(_e){ge(ke,_e,oe)}}):(oe.value=le,oe.state=1,se(oe,!1))}catch(ke){ge({done:!1},ke,oe)}}};if(Q&&(Y=(G=function(oe){g(this,G,u),F(oe),f.call(this);var le=A(this);try{oe(fe(de,le),fe(ge,le))}catch(ve){ge(le,ve)}}).prototype,(f=function(oe){I(this,{type:u,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=U(Y,{then:function(oe,le){var ve=O(this),be=te(m(this,G));return be.ok=typeof oe!="function"||oe,be.fail=typeof le=="function"&&le,be.domain=b?ee.domain:void 0,ve.parent=!0,ve.reactions.push(be),ve.state!=0&&se(ve,!1),be.promise},catch:function(oe){return this.then(void 0,oe)}}),E=function(){var oe=new f,le=A(oe);this.promise=oe,this.resolve=fe(de,le),this.reject=fe(ge,le)},t.f=te=function(oe){return oe===G||oe===P?new E(oe):ae(oe)},!j&&typeof D=="function"&&R!==Object.prototype)){T=R.then,q||(C(R,"then",function(oe,le){var ve=this;return new G(function(be,ke){T.call(ve,be,ke)}).then(oe,le)},{unsafe:!0}),C(R,"catch",Y.catch,{unsafe:!0}));try{delete R.constructor}catch{}J&&J(R,Y)}N({global:!0,wrap:!0,forced:Q},{Promise:G}),H(G,u,!1,!0),$(u),P=M(u),N({target:u,stat:!0,forced:Q},{reject:function(oe){var le=te(this);return le.reject.call(void 0,oe),le.promise}}),N({target:u,stat:!0,forced:j||Q},{resolve:function(oe){return a(j&&this===P?G:this,oe)}}),N({target:u,stat:!0,forced:re},{all:function(oe){var le=this,ve=te(le),be=ve.resolve,ke=ve.reject,_e=s(function(){var xe=F(le.resolve),Ae=[],Ee=0,Fe=1;d(oe,function(Ne){var Be=Ee++,qe=!1;Ae.push(void 0),Fe++,xe.call(le,Ne).then(function(Re){qe||(qe=!0,Ae[Be]=Re,--Fe||be(Ae))},ke)}),--Fe||be(Ae)});return _e.error&&ke(_e.value),ve.promise},race:function(oe){var le=this,ve=te(le),be=ve.reject,ke=s(function(){var _e=F(le.resolve);d(oe,function(xe){_e.call(le,xe).then(ve.resolve,be)})});return ke.error&&be(ke.value),ve.promise}})},(L,_,h)=>{var f=h(10);L.exports=f.Promise},(L,_,h)=>{var f=h(29);L.exports=function(E,P,T){for(var N in P)f(E,N,P[N],T);return E}},(L,_,h)=>{var f=h(42),E=h(27),P=h(56),T=h(12),N=P("species");L.exports=function(j){var x=f(j),M=E.f;T&&x&&!x[N]&&M(x,N,{configurable:!0,get:function(){return this}})}},L=>{L.exports=function(_,h,f){if(!(_ instanceof h))throw TypeError("Incorrect "+(f?f+" ":"")+"invocation");return _}},(L,_,h)=>{var f=h(56)("iterator"),E=!1;try{var P=0,T={next:function(){return{done:!!P++}},return:function(){E=!0}};T[f]=function(){return this},Array.from(T,function(){throw 2})}catch{}L.exports=function(N,j){if(!j&&!E)return!1;var x=!1;try{var M={};M[f]=function(){return{next:function(){return{done:x=!0}}}},N(M)}catch{}return x}},(L,_,h)=>{var f=h(28),E=h(78),P=h(56)("species");L.exports=function(T,N){var j,x=f(T).constructor;return x===void 0||(j=f(x)[P])==null?N:E(j)}},(L,_,h)=>{var f,E,P,T=h(10),N=h(13),j=h(77),x=h(64),M=h(25),D=h(96),C=h(97),U=T.location,J=T.setImmediate,H=T.clearImmediate,$=T.process,B=T.MessageChannel,F=T.Dispatch,g=0,v={},d="onreadystatechange",y=function(a){if(v.hasOwnProperty(a)){var e=v[a];delete v[a],e()}},m=function(a){return function(){y(a)}},c=function(a){y(a.data)},l=function(a){T.postMessage(a+"",U.protocol+"//"+U.host)};J&&H||(J=function(a){for(var e=[],t=1;arguments.length>t;)e.push(arguments[t++]);return v[++g]=function(){(typeof a=="function"?a:Function(a)).apply(void 0,e)},f(g),g},H=function(a){delete v[a]},C?f=function(a){$.nextTick(m(a))}:F&&F.now?f=function(a){F.now(m(a))}:B&&!D?(P=(E=new B).port2,E.port1.onmessage=c,f=j(P.postMessage,P,1)):T.addEventListener&&typeof postMessage=="function"&&!T.importScripts&&U&&U.protocol!=="file:"&&!N(l)?(f=l,T.addEventListener("message",c,!1)):f=d in M("script")?function(a){x.appendChild(M("script")).onreadystatechange=function(){x.removeChild(this),y(a)}}:function(a){setTimeout(m(a),0)}),L.exports={set:J,clear:H}},(L,_,h)=>{var f=h(59);L.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(f)},(L,_,h)=>{var f=h(18),E=h(10);L.exports=f(E.process)=="process"},(L,_,h)=>{var f,E,P,T,N,j,x,M,D=h(10),C=h(11).f,U=h(95).set,J=h(96),H=h(99),$=h(97),B=D.MutationObserver||D.WebKitMutationObserver,F=D.document,g=D.process,v=D.Promise,d=C(D,"queueMicrotask"),y=d&&d.value;y||(f=function(){var m,c;for($&&(m=g.domain)&&m.exit();E;){c=E.fn,E=E.next;try{c()}catch(l){throw E?T():P=void 0,l}}P=void 0,m&&m.enter()},J||$||H||!B||!F?v&&v.resolve?((x=v.resolve(void 0)).constructor=v,M=x.then,T=function(){M.call(x,f)}):T=$?function(){g.nextTick(f)}:function(){U.call(D,f)}:(N=!0,j=F.createTextNode(""),new B(f).observe(j,{characterData:!0}),T=function(){j.data=N=!N})),L.exports=y||function(m){var c={fn:m,next:void 0};P&&(P.next=c),E||(E=c,T()),P=c}},(L,_,h)=>{var f=h(59);L.exports=/web0s(?!.*chrome)/i.test(f)},(L,_,h)=>{var f=h(28),E=h(21),P=h(101);L.exports=function(T,N){if(f(T),E(N)&&N.constructor===T)return N;var j=P.f(T);return(0,j.resolve)(N),j.promise}},(L,_,h)=>{var f=h(78),E=function(P){var T,N;this.promise=new P(function(j,x){if(T!==void 0||N!==void 0)throw TypeError("Bad Promise constructor");T=j,N=x}),this.resolve=f(T),this.reject=f(N)};L.exports.f=function(P){return new E(P)}},(L,_,h)=>{var f=h(10);L.exports=function(E,P){var T=f.console;T&&T.error&&(arguments.length===1?T.error(E):T.error(E,P))}},L=>{L.exports=function(_){try{return{error:!1,value:_()}}catch(h){return{error:!0,value:h}}}},L=>{L.exports=typeof window=="object"},(L,_,h)=>{var f=h(9),E=h(78),P=h(101),T=h(103),N=h(75);f({target:"Promise",stat:!0},{allSettled:function(j){var x=this,M=P.f(x),D=M.resolve,C=M.reject,U=T(function(){var J=E(x.resolve),H=[],$=0,B=1;N(j,function(F){var g=$++,v=!1;H.push(void 0),B++,J.call(x,F).then(function(d){v||(v=!0,H[g]={status:"fulfilled",value:d},--B||D(H))},function(d){v||(v=!0,H[g]={status:"rejected",reason:d},--B||D(H))})}),--B||D(H)});return U.error&&C(U.value),M.promise}})},(L,_,h)=>{var f=h(9),E=h(78),P=h(42),T=h(101),N=h(103),j=h(75),x="No one promise resolved";f({target:"Promise",stat:!0},{any:function(M){var D=this,C=T.f(D),U=C.resolve,J=C.reject,H=N(function(){var $=E(D.resolve),B=[],F=0,g=1,v=!1;j(M,function(d){var y=F++,m=!1;B.push(void 0),g++,$.call(D,d).then(function(c){m||v||(v=!0,U(c))},function(c){m||v||(m=!0,B[y]=c,--g||J(new(P("AggregateError"))(B,x)))})}),--g||J(new(P("AggregateError"))(B,x))});return H.error&&J(H.value),C.promise}})},(L,_,h)=>{var f=h(9),E=h(37),P=h(89),T=h(13),N=h(42),j=h(94),x=h(100),M=h(29);if(f({target:"Promise",proto:!0,real:!0,forced:!!P&&T(function(){P.prototype.finally.call({then:function(){}},function(){})})},{finally:function(C){var U=j(this,N("Promise")),J=typeof C=="function";return this.then(J?function(H){return x(U,C()).then(function(){return H})}:C,J?function(H){return x(U,C()).then(function(){throw H})}:C)}}),!E&&typeof P=="function"){var D=N("Promise").prototype.finally;P.prototype.finally!==D&&M(P.prototype,"finally",D,{unsafe:!0})}},(L,_,h)=>{var f=h(109).charAt,E=h(33),P=h(66),T="String Iterator",N=E.set,j=E.getterFor(T);P(String,"String",function(x){N(this,{type:T,string:String(x),index:0})},function(){var x,M=j(this),D=M.string,C=M.index;return C>=D.length?{value:void 0,done:!0}:(x=f(D,C),M.index+=x.length,{value:x,done:!1})})},(L,_,h)=>{var f=h(48),E=h(19),P=function(T){return function(N,j){var x,M,D=String(E(N)),C=f(j),U=D.length;return C<0||C>=U?T?"":void 0:(x=D.charCodeAt(C))<55296||x>56319||C+1===U||(M=D.charCodeAt(C+1))<56320||M>57343?T?D.charAt(C):x:T?D.slice(C,C+2):M-56320+(x-55296<<10)+65536}};L.exports={codeAt:P(!1),charAt:P(!0)}},(L,_,h)=>{var f=h(10),E=h(111),P=h(54),T=h(26),N=h(56),j=N("iterator"),x=N("toStringTag"),M=P.values;for(var D in E){var C=f[D],U=C&&C.prototype;if(U){if(U[j]!==M)try{T(U,j,M)}catch{U[j]=M}if(U[x]||T(U,x,D),E[D]){for(var J in P)if(U[J]!==P[J])try{T(U,J,P[J])}catch{U[J]=P[J]}}}}},L=>{L.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(L,_){(function(h){var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(n){return"Symbol("+n+")"};function E(){}function P(){return typeof self<"u"?self:typeof window<"u"?window:__webpack_require__.g!==void 0?__webpack_require__.g:void 0}var T=P();function N(n){return typeof n=="object"&&n!==null||typeof n=="function"}var j=E,x=Promise,M=Promise.prototype.then,D=Promise.resolve.bind(x),C=Promise.reject.bind(x);function U(n){return new x(n)}function J(n){return D(n)}function H(n){return C(n)}function $(n,S,X){return M.call(n,S,X)}function B(n,S,X){$($(n,S,X),void 0,j)}function F(n,S){B(n,S)}function g(n,S){B(n,void 0,S)}function v(n,S,X){return $(n,S,X)}function d(n){$(n,void 0,j)}var y=function(){var n=T&&T.queueMicrotask;if(typeof n=="function")return n;var S=J(void 0);return function(X){return $(S,X)}}();function m(n,S,X){if(typeof n!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(n,S,X)}function c(n,S,X){try{return J(m(n,S,X))}catch(ie){return H(ie)}}var l=16384,a=function(){function n(){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(n.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.push=function(S){var X=this._back,ie=X;X._elements.length===l-1&&(ie={_elements:[],_next:void 0}),X._elements.push(S),ie!==X&&(this._back=ie,X._next=ie),++this._size},n.prototype.shift=function(){var S=this._front,X=S,ie=this._cursor,ce=ie+1,ye=S._elements,we=ye[ie];return ce===l&&(X=S._next,ce=0),--this._size,this._cursor=ce,S!==X&&(this._front=X),ye[ie]=void 0,we},n.prototype.forEach=function(S){for(var X=this._cursor,ie=this._front,ce=ie._elements;!(X===ce.length&&ie._next===void 0||X===ce.length&&(X=0,(ce=(ie=ie._next)._elements).length===0));)S(ce[X]),++X},n.prototype.peek=function(){var S=this._front,X=this._cursor;return S._elements[X]},n}();function e(n,S){n._ownerReadableStream=S,S._reader=n,S._state==="readable"?p(n):S._state==="closed"?w(n):k(n,S._storedError)}function t(n,S){return Ye(n._ownerReadableStream,S)}function s(n){n._ownerReadableStream._state==="readable"?b(n,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):i(n,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),n._ownerReadableStream._reader=void 0,n._ownerReadableStream=void 0}function r(n){return new TypeError("Cannot "+n+" a stream using a released reader")}function p(n){n._closedPromise=U(function(S,X){n._closedPromise_resolve=S,n._closedPromise_reject=X})}function k(n,S){p(n),b(n,S)}function w(n){p(n),o(n)}function b(n,S){n._closedPromise_reject!==void 0&&(d(n._closedPromise),n._closedPromise_reject(S),n._closedPromise_resolve=void 0,n._closedPromise_reject=void 0)}function i(n,S){k(n,S)}function o(n){n._closedPromise_resolve!==void 0&&(n._closedPromise_resolve(void 0),n._closedPromise_resolve=void 0,n._closedPromise_reject=void 0)}var u=f("[[AbortSteps]]"),A=f("[[ErrorSteps]]"),I=f("[[CancelSteps]]"),O=f("[[PullSteps]]"),R=Number.isFinite||function(n){return typeof n=="number"&&isFinite(n)},G=Math.trunc||function(n){return n<0?Math.ceil(n):Math.floor(n)};function Y(n){return typeof n=="object"||typeof n=="function"}function W(n,S){if(n!==void 0&&!Y(n))throw new TypeError(S+" is not an object.")}function z(n,S){if(typeof n!="function")throw new TypeError(S+" is not a function.")}function ee(n){return typeof n=="object"&&n!==null||typeof n=="function"}function te(n,S){if(!ee(n))throw new TypeError(S+" is not an object.")}function ae(n,S,X){if(n===void 0)throw new TypeError("Parameter "+S+" is required in '"+X+"'.")}function Z(n,S,X){if(n===void 0)throw new TypeError(S+" is required in '"+X+"'.")}function K(n){return Number(n)}function V(n){return n===0?0:n}function q(n){return V(G(n))}function Q(n,S){var X=0,ie=Number.MAX_SAFE_INTEGER,ce=Number(n);if(ce=V(ce),!R(ce))throw new TypeError(S+" is not a finite number");if((ce=q(ce))<X||ce>ie)throw new TypeError(S+" is outside the accepted range of "+X+" to "+ie+", inclusive");return R(ce)&&ce!==0?ce:0}function re(n,S){if(!Xe(n))throw new TypeError(S+" is not a ReadableStream.")}function ne(n){return new ge(n)}function se(n,S){n._reader._readRequests.push(S)}function ue(n,S,X){var ie=n._reader._readRequests.shift();X?ie._closeSteps():ie._chunkSteps(S)}function he(n){return n._reader._readRequests.length}function pe(n){var S=n._reader;return S!==void 0&&!!de(S)}var me,fe,ge=function(){function n(S){if(ae(S,1,"ReadableStreamDefaultReader"),re(S,"First parameter"),ze(S))throw new TypeError("This stream has already been locked for exclusive reading by another reader");e(this,S),this._readRequests=new a}return Object.defineProperty(n.prototype,"closed",{get:function(){return de(this)?this._closedPromise:H(le("closed"))},enumerable:!1,configurable:!0}),n.prototype.cancel=function(S){return S===void 0&&(S=void 0),de(this)?this._ownerReadableStream===void 0?H(r("cancel")):t(this,S):H(le("cancel"))},n.prototype.read=function(){if(!de(this))return H(le("read"));if(this._ownerReadableStream===void 0)return H(r("read from"));var S,X,ie=U(function(ce,ye){S=ce,X=ye});return oe(this,{_chunkSteps:function(ce){return S({value:ce,done:!1})},_closeSteps:function(){return S({value:void 0,done:!0})},_errorSteps:function(ce){return X(ce)}}),ie},n.prototype.releaseLock=function(){if(!de(this))throw le("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");s(this)}},n}();function de(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_readRequests")}function oe(n,S){var X=n._ownerReadableStream;X._disturbed=!0,X._state==="closed"?S._closeSteps():X._state==="errored"?S._errorSteps(X._storedError):X._readableStreamController[O](S)}function le(n){return new TypeError("ReadableStreamDefaultReader.prototype."+n+" can only be used on a ReadableStreamDefaultReader")}Object.defineProperties(ge.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(ge.prototype,f.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),typeof f.asyncIterator=="symbol"&&((me={})[f.asyncIterator]=function(){return this},fe=me,Object.defineProperty(fe,f.asyncIterator,{enumerable:!1}));var ve=function(){function n(S,X){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=S,this._preventCancel=X}return n.prototype.next=function(){var S=this,X=function(){return S._nextSteps()};return this._ongoingPromise=this._ongoingPromise?v(this._ongoingPromise,X,X):X(),this._ongoingPromise},n.prototype.return=function(S){var X=this,ie=function(){return X._returnSteps(S)};return this._ongoingPromise?v(this._ongoingPromise,ie,ie):ie()},n.prototype._nextSteps=function(){var S=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var X,ie,ce=this._reader;if(ce._ownerReadableStream===void 0)return H(r("iterate"));var ye=U(function(we,Se){X=we,ie=Se});return oe(ce,{_chunkSteps:function(we){S._ongoingPromise=void 0,y(function(){return X({value:we,done:!1})})},_closeSteps:function(){S._ongoingPromise=void 0,S._isFinished=!0,s(ce),X({value:void 0,done:!0})},_errorSteps:function(we){S._ongoingPromise=void 0,S._isFinished=!0,s(ce),ie(we)}}),ye},n.prototype._returnSteps=function(S){if(this._isFinished)return Promise.resolve({value:S,done:!0});this._isFinished=!0;var X=this._reader;if(X._ownerReadableStream===void 0)return H(r("finish iterating"));if(!this._preventCancel){var ie=t(X,S);return s(X),v(ie,function(){return{value:S,done:!0}})}return s(X),J({value:S,done:!0})},n}(),be={next:function(){return _e(this)?this._asyncIteratorImpl.next():H(xe("next"))},return:function(n){return _e(this)?this._asyncIteratorImpl.return(n):H(xe("return"))}};function ke(n,S){var X=ne(n),ie=new ve(X,S),ce=Object.create(be);return ce._asyncIteratorImpl=ie,ce}function _e(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_asyncIteratorImpl")}function xe(n){return new TypeError("ReadableStreamAsyncIterator."+n+" can only be used on a ReadableSteamAsyncIterator")}fe!==void 0&&Object.setPrototypeOf(be,fe);var Ae=Number.isNaN||function(n){return n!=n};function Ee(n){return!!Fe(n)&&n!==1/0}function Fe(n){return!(typeof n!="number"||Ae(n)||n<0)}function Ne(n){var S=n._queue.shift();return n._queueTotalSize-=S.size,n._queueTotalSize<0&&(n._queueTotalSize=0),S.value}function Be(n,S,X){if(!Ee(X=Number(X)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");n._queue.push({value:S,size:X}),n._queueTotalSize+=X}function qe(n){return n._queue.peek().value}function Re(n){n._queue=new a,n._queueTotalSize=0}function at(n){return n.slice()}function rn(n,S,X,ie,ce){new Uint8Array(n).set(new Uint8Array(X,ie,ce),S)}function Ta(n){return n}function nn(n){return!1}var mt=function(){function n(){throw new TypeError("Illegal constructor")}return Object.defineProperty(n.prototype,"view",{get:function(){if(!Vt(this))throw Kt("view");return this._view},enumerable:!1,configurable:!0}),n.prototype.respond=function(S){if(!Vt(this))throw Kt("respond");if(ae(S,1,"respond"),S=Q(S,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");nn(this._view.buffer),hn(this._associatedReadableByteStreamController,S)},n.prototype.respondWithNewView=function(S){if(!Vt(this))throw Kt("respondWithNewView");if(ae(S,1,"respondWithNewView"),!ArrayBuffer.isView(S))throw new TypeError("You can only respond with array buffer views");if(S.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(S.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");dn(this._associatedReadableByteStreamController,S)},n}();Object.defineProperties(mt.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(mt.prototype,f.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var vt=function(){function n(){throw new TypeError("Illegal constructor")}return Object.defineProperty(n.prototype,"byobRequest",{get:function(){if(!Qe(this))throw ot("byobRequest");if(this._byobRequest===null&&this._pendingPullIntos.length>0){var S=this._pendingPullIntos.peek(),X=new Uint8Array(S.buffer,S.byteOffset+S.bytesFilled,S.byteLength-S.bytesFilled),ie=Object.create(mt.prototype);mn(ie,this,X),this._byobRequest=ie}return this._byobRequest},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"desiredSize",{get:function(){if(!Qe(this))throw ot("desiredSize");return wr(this)},enumerable:!1,configurable:!0}),n.prototype.close=function(){if(!Qe(this))throw ot("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var S=this._controlledReadableByteStream._state;if(S!=="readable")throw new TypeError("The stream (in "+S+" state) is not in the readable state and cannot be closed");ln(this)},n.prototype.enqueue=function(S){if(!Qe(this))throw ot("enqueue");if(ae(S,1,"enqueue"),!ArrayBuffer.isView(S))throw new TypeError("chunk must be an array buffer view");if(S.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(S.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var X=this._controlledReadableByteStream._state;if(X!=="readable")throw new TypeError("The stream (in "+X+" state) is not in the readable state and cannot be enqueued to");fn(this,S)},n.prototype.error=function(S){if(S===void 0&&(S=void 0),!Qe(this))throw ot("error");it(this,S)},n.prototype[I]=function(S){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0),Re(this);var X=this._cancelAlgorithm(S);return bt(this),X},n.prototype[O]=function(S){var X=this._controlledReadableByteStream;if(this._queueTotalSize>0){var ie=this._queue.shift();this._queueTotalSize-=ie.byteLength,vr(this);var ce=new Uint8Array(ie.buffer,ie.byteOffset,ie.byteLength);S._chunkSteps(ce)}else{var ye=this._autoAllocateChunkSize;if(ye!==void 0){var we=void 0;try{we=new ArrayBuffer(ye)}catch(Ce){return void S._errorSteps(Ce)}var Se={buffer:we,byteOffset:0,byteLength:ye,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Se)}se(X,S),Ve(this)}},n}();function Qe(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_controlledReadableByteStream")}function Vt(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_associatedReadableByteStreamController")}function Ve(n){cn(n)&&(n._pulling?n._pullAgain=!0:(n._pulling=!0,B(n._pullAlgorithm(),function(){n._pulling=!1,n._pullAgain&&(n._pullAgain=!1,Ve(n))},function(S){it(n,S)})))}function an(n){$t(n),n._pendingPullIntos=new a}function Gt(n,S){var X=!1;n._state==="closed"&&(X=!0);var ie=pr(S);S.readerType==="default"?ue(n,ie,X):yn(n,ie,X)}function pr(n){var S=n.bytesFilled,X=n.elementSize;return new n.viewConstructor(n.buffer,n.byteOffset,S/X)}function yt(n,S,X,ie){n._queue.push({buffer:S,byteOffset:X,byteLength:ie}),n._queueTotalSize+=ie}function gr(n,S){var X=S.elementSize,ie=S.bytesFilled-S.bytesFilled%X,ce=Math.min(n._queueTotalSize,S.byteLength-S.bytesFilled),ye=S.bytesFilled+ce,we=ye-ye%X,Se=ce,Ce=!1;we>ie&&(Se=we-S.bytesFilled,Ce=!0);for(var Pe=n._queue;Se>0;){var Te=Pe.peek(),Me=Math.min(Se,Te.byteLength),je=S.byteOffset+S.bytesFilled;rn(S.buffer,je,Te.buffer,Te.byteOffset,Me),Te.byteLength===Me?Pe.shift():(Te.byteOffset+=Me,Te.byteLength-=Me),n._queueTotalSize-=Me,mr(n,Me,S),Se-=Me}return Ce}function mr(n,S,X){$t(n),X.bytesFilled+=S}function vr(n){n._queueTotalSize===0&&n._closeRequested?(bt(n),pt(n._controlledReadableByteStream)):Ve(n)}function $t(n){n._byobRequest!==null&&(n._byobRequest._associatedReadableByteStreamController=void 0,n._byobRequest._view=null,n._byobRequest=null)}function yr(n){for(;n._pendingPullIntos.length>0;){if(n._queueTotalSize===0)return;var S=n._pendingPullIntos.peek();gr(n,S)&&(Yt(n),Gt(n._controlledReadableByteStream,S))}}function on(n,S,X){var ie=n._controlledReadableByteStream,ce=1;S.constructor!==DataView&&(ce=S.constructor.BYTES_PER_ELEMENT);var ye=S.constructor,we={buffer:S.buffer,byteOffset:S.byteOffset,byteLength:S.byteLength,bytesFilled:0,elementSize:ce,viewConstructor:ye,readerType:"byob"};if(n._pendingPullIntos.length>0)return n._pendingPullIntos.push(we),void kr(ie,X);if(ie._state!=="closed"){if(n._queueTotalSize>0){if(gr(n,we)){var Se=pr(we);return vr(n),void X._chunkSteps(Se)}if(n._closeRequested){var Ce=new TypeError("Insufficient bytes to fill elements in the given buffer");return it(n,Ce),void X._errorSteps(Ce)}}n._pendingPullIntos.push(we),kr(ie,X),Ve(n)}else{var Pe=new ye(we.buffer,we.byteOffset,0);X._closeSteps(Pe)}}function sn(n,S){S.buffer=S.buffer;var X=n._controlledReadableByteStream;if(Jt(X))for(;Sr(X)>0;)Gt(X,Yt(n))}function un(n,S,X){if(X.bytesFilled+S>X.byteLength)throw new RangeError("bytesWritten out of range");if(mr(n,S,X),!(X.bytesFilled<X.elementSize)){Yt(n);var ie=X.bytesFilled%X.elementSize;if(ie>0){var ce=X.byteOffset+X.bytesFilled,ye=X.buffer.slice(ce-ie,ce);yt(n,ye,0,ye.byteLength)}X.buffer=X.buffer,X.bytesFilled-=ie,Gt(n._controlledReadableByteStream,X),yr(n)}}function br(n,S){var X=n._pendingPullIntos.peek();if(n._controlledReadableByteStream._state==="closed"){if(S!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");sn(n,X)}else un(n,S,X);Ve(n)}function Yt(n){var S=n._pendingPullIntos.shift();return $t(n),S}function cn(n){var S=n._controlledReadableByteStream;return S._state==="readable"&&!n._closeRequested&&!!n._started&&(!!(pe(S)&&he(S)>0)||!!(Jt(S)&&Sr(S)>0)||wr(n)>0)}function bt(n){n._pullAlgorithm=void 0,n._cancelAlgorithm=void 0}function ln(n){var S=n._controlledReadableByteStream;if(!n._closeRequested&&S._state==="readable")if(n._queueTotalSize>0)n._closeRequested=!0;else{if(n._pendingPullIntos.length>0&&n._pendingPullIntos.peek().bytesFilled>0){var X=new TypeError("Insufficient bytes to fill elements in the given buffer");throw it(n,X),X}bt(n),pt(S)}}function fn(n,S){var X=n._controlledReadableByteStream;if(!n._closeRequested&&X._state==="readable"){var ie=S.buffer,ce=S.byteOffset,ye=S.byteLength,we=ie;pe(X)?he(X)===0?yt(n,we,ce,ye):ue(X,new Uint8Array(we,ce,ye),!1):Jt(X)?(yt(n,we,ce,ye),yr(n)):yt(n,we,ce,ye),Ve(n)}}function it(n,S){var X=n._controlledReadableByteStream;X._state==="readable"&&(an(n),Re(n),bt(n),Wr(X,S))}function wr(n){var S=n._controlledReadableByteStream._state;return S==="errored"?null:S==="closed"?0:n._strategyHWM-n._queueTotalSize}function hn(n,S){if(!Ee(S=Number(S)))throw new RangeError("bytesWritten must be a finite");br(n,S)}function dn(n,S){var X=n._pendingPullIntos.peek();if(X.byteOffset+X.bytesFilled!==S.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(X.byteLength!==S.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");X.buffer=S.buffer,br(n,S.byteLength)}function pn(n,S,X,ie,ce,ye,we){S._controlledReadableByteStream=n,S._pullAgain=!1,S._pulling=!1,S._byobRequest=null,S._queue=S._queueTotalSize=void 0,Re(S),S._closeRequested=!1,S._started=!1,S._strategyHWM=ye,S._pullAlgorithm=ie,S._cancelAlgorithm=ce,S._autoAllocateChunkSize=we,S._pendingPullIntos=new a,n._readableStreamController=S,B(J(X()),function(){S._started=!0,Ve(S)},function(Se){it(S,Se)})}function gn(n,S,X){var ie=Object.create(vt.prototype),ce=function(){},ye=function(){return J(void 0)},we=function(){return J(void 0)};S.start!==void 0&&(ce=function(){return S.start(ie)}),S.pull!==void 0&&(ye=function(){return S.pull(ie)}),S.cancel!==void 0&&(we=function(Ce){return S.cancel(Ce)});var Se=S.autoAllocateChunkSize;if(Se===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");pn(n,ie,ce,ye,we,X,Se)}function mn(n,S,X){n._associatedReadableByteStreamController=S,n._view=X}function Kt(n){return new TypeError("ReadableStreamBYOBRequest.prototype."+n+" can only be used on a ReadableStreamBYOBRequest")}function ot(n){return new TypeError("ReadableByteStreamController.prototype."+n+" can only be used on a ReadableByteStreamController")}function vn(n){return new wt(n)}function kr(n,S){n._reader._readIntoRequests.push(S)}function yn(n,S,X){var ie=n._reader._readIntoRequests.shift();X?ie._closeSteps(S):ie._chunkSteps(S)}function Sr(n){return n._reader._readIntoRequests.length}function Jt(n){var S=n._reader;return S!==void 0&&!!st(S)}Object.defineProperties(vt.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(vt.prototype,f.toStringTag,{value:"ReadableByteStreamController",configurable:!0});var wt=function(){function n(S){if(ae(S,1,"ReadableStreamBYOBReader"),re(S,"First parameter"),ze(S))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Qe(S._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");e(this,S),this._readIntoRequests=new a}return Object.defineProperty(n.prototype,"closed",{get:function(){return st(this)?this._closedPromise:H(kt("closed"))},enumerable:!1,configurable:!0}),n.prototype.cancel=function(S){return S===void 0&&(S=void 0),st(this)?this._ownerReadableStream===void 0?H(r("cancel")):t(this,S):H(kt("cancel"))},n.prototype.read=function(S){if(!st(this))return H(kt("read"));if(!ArrayBuffer.isView(S))return H(new TypeError("view must be an array buffer view"));if(S.byteLength===0)return H(new TypeError("view must have non-zero byteLength"));if(S.buffer.byteLength===0)return H(new TypeError("view's buffer must have non-zero byteLength"));if(this._ownerReadableStream===void 0)return H(r("read from"));var X,ie,ce=U(function(ye,we){X=ye,ie=we});return bn(this,S,{_chunkSteps:function(ye){return X({value:ye,done:!1})},_closeSteps:function(ye){return X({value:ye,done:!0})},_errorSteps:function(ye){return ie(ye)}}),ce},n.prototype.releaseLock=function(){if(!st(this))throw kt("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");s(this)}},n}();function st(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_readIntoRequests")}function bn(n,S,X){var ie=n._ownerReadableStream;ie._disturbed=!0,ie._state==="errored"?X._errorSteps(ie._storedError):on(ie._readableStreamController,S,X)}function kt(n){return new TypeError("ReadableStreamBYOBReader.prototype."+n+" can only be used on a ReadableStreamBYOBReader")}function ut(n,S){var X=n.highWaterMark;if(X===void 0)return S;if(Ae(X)||X<0)throw new RangeError("Invalid highWaterMark");return X}function St(n){var S=n.size;return S||function(){return 1}}function _t(n,S){W(n,S);var X=n==null?void 0:n.highWaterMark,ie=n==null?void 0:n.size;return{highWaterMark:X===void 0?void 0:K(X),size:ie===void 0?void 0:wn(ie,S+" has member 'size' that")}}function wn(n,S){return z(n,S),function(X){return K(n(X))}}function kn(n,S){W(n,S);var X=n==null?void 0:n.abort,ie=n==null?void 0:n.close,ce=n==null?void 0:n.start,ye=n==null?void 0:n.type,we=n==null?void 0:n.write;return{abort:X===void 0?void 0:Sn(X,n,S+" has member 'abort' that"),close:ie===void 0?void 0:_n(ie,n,S+" has member 'close' that"),start:ce===void 0?void 0:An(ce,n,S+" has member 'start' that"),write:we===void 0?void 0:xn(we,n,S+" has member 'write' that"),type:ye}}function Sn(n,S,X){return z(n,X),function(ie){return c(n,S,[ie])}}function _n(n,S,X){return z(n,X),function(){return c(n,S,[])}}function An(n,S,X){return z(n,X),function(ie){return m(n,S,[ie])}}function xn(n,S,X){return z(n,X),function(ie,ce){return c(n,S,[ie,ce])}}function _r(n,S){if(!Ze(n))throw new TypeError(S+" is not a WritableStream.")}Object.defineProperties(wt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(wt.prototype,f.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});var At=function(){function n(S,X){S===void 0&&(S={}),X===void 0&&(X={}),S===void 0?S=null:te(S,"First parameter");var ie=_t(X,"Second parameter"),ce=kn(S,"First parameter");if(xr(this),ce.type!==void 0)throw new RangeError("Invalid type is specified");var ye=St(ie);Un(this,ce,ut(ie,1),ye)}return Object.defineProperty(n.prototype,"locked",{get:function(){if(!Ze(this))throw Ft("locked");return et(this)},enumerable:!1,configurable:!0}),n.prototype.abort=function(S){return S===void 0&&(S=void 0),Ze(this)?et(this)?H(new TypeError("Cannot abort a stream that already has a writer")):xt(this,S):H(Ft("abort"))},n.prototype.close=function(){return Ze(this)?et(this)?H(new TypeError("Cannot close a stream that already has a writer")):Ue(this)?H(new TypeError("Cannot close an already-closing stream")):Cr(this):H(Ft("close"))},n.prototype.getWriter=function(){if(!Ze(this))throw Ft("getWriter");return Ar(this)},n}();function Ar(n){return new Ot(n)}function Cn(n,S,X,ie,ce,ye){ce===void 0&&(ce=1),ye===void 0&&(ye=function(){return 1});var we=Object.create(At.prototype);return xr(we),Er(we,Object.create(ct.prototype),n,S,X,ie,ce,ye),we}function xr(n){n._state="writable",n._storedError=void 0,n._writer=void 0,n._writableStreamController=void 0,n._writeRequests=new a,n._inFlightWriteRequest=void 0,n._closeRequest=void 0,n._inFlightCloseRequest=void 0,n._pendingAbortRequest=void 0,n._backpressure=!1}function Ze(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_writableStreamController")}function et(n){return n._writer!==void 0}function xt(n,S){var X=n._state;if(X==="closed"||X==="errored")return J(void 0);if(n._pendingAbortRequest!==void 0)return n._pendingAbortRequest._promise;var ie=!1;X==="erroring"&&(ie=!0,S=void 0);var ce=U(function(ye,we){n._pendingAbortRequest={_promise:void 0,_resolve:ye,_reject:we,_reason:S,_wasAlreadyErroring:ie}});return n._pendingAbortRequest._promise=ce,ie||Zt(n,S),ce}function Cr(n){var S=n._state;if(S==="closed"||S==="errored")return H(new TypeError("The stream (in "+S+" state) is not in the writable state and cannot be closed"));var X=U(function(ce,ye){var we={_resolve:ce,_reject:ye};n._closeRequest=we}),ie=n._writer;return ie!==void 0&&n._backpressure&&S==="writable"&&or(ie),qn(n._writableStreamController),X}function On(n){return U(function(S,X){var ie={_resolve:S,_reject:X};n._writeRequests.push(ie)})}function Qt(n,S){n._state!=="writable"?er(n):Zt(n,S)}function Zt(n,S){var X=n._writableStreamController;n._state="erroring",n._storedError=S;var ie=n._writer;ie!==void 0&&Pr(ie,S),!En(n)&&X._started&&er(n)}function er(n){n._state="errored",n._writableStreamController[A]();var S=n._storedError;if(n._writeRequests.forEach(function(ie){ie._reject(S)}),n._writeRequests=new a,n._pendingAbortRequest!==void 0){var X=n._pendingAbortRequest;if(n._pendingAbortRequest=void 0,X._wasAlreadyErroring)return X._reject(S),void Ct(n);B(n._writableStreamController[u](X._reason),function(){X._resolve(),Ct(n)},function(ie){X._reject(ie),Ct(n)})}else Ct(n)}function Pn(n){n._inFlightWriteRequest._resolve(void 0),n._inFlightWriteRequest=void 0}function Tn(n,S){n._inFlightWriteRequest._reject(S),n._inFlightWriteRequest=void 0,Qt(n,S)}function Fn(n){n._inFlightCloseRequest._resolve(void 0),n._inFlightCloseRequest=void 0,n._state==="erroring"&&(n._storedError=void 0,n._pendingAbortRequest!==void 0&&(n._pendingAbortRequest._resolve(),n._pendingAbortRequest=void 0)),n._state="closed";var S=n._writer;S!==void 0&&Lr(S)}function In(n,S){n._inFlightCloseRequest._reject(S),n._inFlightCloseRequest=void 0,n._pendingAbortRequest!==void 0&&(n._pendingAbortRequest._reject(S),n._pendingAbortRequest=void 0),Qt(n,S)}function Ue(n){return n._closeRequest!==void 0||n._inFlightCloseRequest!==void 0}function En(n){return n._inFlightWriteRequest!==void 0||n._inFlightCloseRequest!==void 0}function Rn(n){n._inFlightCloseRequest=n._closeRequest,n._closeRequest=void 0}function jn(n){n._inFlightWriteRequest=n._writeRequests.shift()}function Ct(n){n._closeRequest!==void 0&&(n._closeRequest._reject(n._storedError),n._closeRequest=void 0);var S=n._writer;S!==void 0&&ar(S,n._storedError)}function tr(n,S){var X=n._writer;X!==void 0&&S!==n._backpressure&&(S?$n(X):or(X)),n._backpressure=S}Object.defineProperties(At.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(At.prototype,f.toStringTag,{value:"WritableStream",configurable:!0});var Ot=function(){function n(S){if(ae(S,1,"WritableStreamDefaultWriter"),_r(S,"First parameter"),et(S))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=S,S._writer=this;var X=S._state;if(X==="writable")!Ue(S)&&S._backpressure?Et(this):Nr(this),It(this);else if(X==="erroring")ir(this,S._storedError),It(this);else if(X==="closed")Nr(this),Vn(this);else{var ie=S._storedError;ir(this,ie),Mr(this,ie)}}return Object.defineProperty(n.prototype,"closed",{get:function(){return Ge(this)?this._closedPromise:H($e("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"desiredSize",{get:function(){if(!Ge(this))throw $e("desiredSize");if(this._ownerWritableStream===void 0)throw lt("desiredSize");return Dn(this)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ready",{get:function(){return Ge(this)?this._readyPromise:H($e("ready"))},enumerable:!1,configurable:!0}),n.prototype.abort=function(S){return S===void 0&&(S=void 0),Ge(this)?this._ownerWritableStream===void 0?H(lt("abort")):Mn(this,S):H($e("abort"))},n.prototype.close=function(){if(!Ge(this))return H($e("close"));var S=this._ownerWritableStream;return S===void 0?H(lt("close")):Ue(S)?H(new TypeError("Cannot close an already-closing stream")):Or(this)},n.prototype.releaseLock=function(){if(!Ge(this))throw $e("releaseLock");this._ownerWritableStream!==void 0&&Tr(this)},n.prototype.write=function(S){return S===void 0&&(S=void 0),Ge(this)?this._ownerWritableStream===void 0?H(lt("write to")):Fr(this,S):H($e("write"))},n}();function Ge(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_ownerWritableStream")}function Mn(n,S){return xt(n._ownerWritableStream,S)}function Or(n){return Cr(n._ownerWritableStream)}function Ln(n){var S=n._ownerWritableStream,X=S._state;return Ue(S)||X==="closed"?J(void 0):X==="errored"?H(S._storedError):Or(n)}function Nn(n,S){n._closedPromiseState==="pending"?ar(n,S):Gn(n,S)}function Pr(n,S){n._readyPromiseState==="pending"?Dr(n,S):Yn(n,S)}function Dn(n){var S=n._ownerWritableStream,X=S._state;return X==="errored"||X==="erroring"?null:X==="closed"?0:Rr(S._writableStreamController)}function Tr(n){var S=n._ownerWritableStream,X=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Pr(n,X),Nn(n,X),S._writer=void 0,n._ownerWritableStream=void 0}function Fr(n,S){var X=n._ownerWritableStream,ie=X._writableStreamController,ce=Hn(ie,S);if(X!==n._ownerWritableStream)return H(lt("write to"));var ye=X._state;if(ye==="errored")return H(X._storedError);if(Ue(X)||ye==="closed")return H(new TypeError("The stream is closing or closed and cannot be written to"));if(ye==="erroring")return H(X._storedError);var we=On(X);return Xn(ie,S,ce),we}Object.defineProperties(Ot.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(Ot.prototype,f.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});var Ir={},ct=function(){function n(){throw new TypeError("Illegal constructor")}return n.prototype.error=function(S){if(S===void 0&&(S=void 0),!Bn(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");this._controlledWritableStream._state==="writable"&&jr(this,S)},n.prototype[u]=function(S){var X=this._abortAlgorithm(S);return Pt(this),X},n.prototype[A]=function(){Re(this)},n}();function Bn(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_controlledWritableStream")}function Er(n,S,X,ie,ce,ye,we,Se){S._controlledWritableStream=n,n._writableStreamController=S,S._queue=void 0,S._queueTotalSize=void 0,Re(S),S._started=!1,S._strategySizeAlgorithm=Se,S._strategyHWM=we,S._writeAlgorithm=ie,S._closeAlgorithm=ce,S._abortAlgorithm=ye;var Ce=nr(S);tr(n,Ce),B(J(X()),function(){S._started=!0,Tt(S)},function(Pe){S._started=!0,Qt(n,Pe)})}function Un(n,S,X,ie){var ce=Object.create(ct.prototype),ye=function(){},we=function(){return J(void 0)},Se=function(){return J(void 0)},Ce=function(){return J(void 0)};S.start!==void 0&&(ye=function(){return S.start(ce)}),S.write!==void 0&&(we=function(Pe){return S.write(Pe,ce)}),S.close!==void 0&&(Se=function(){return S.close()}),S.abort!==void 0&&(Ce=function(Pe){return S.abort(Pe)}),Er(n,ce,ye,we,Se,Ce,X,ie)}function Pt(n){n._writeAlgorithm=void 0,n._closeAlgorithm=void 0,n._abortAlgorithm=void 0,n._strategySizeAlgorithm=void 0}function qn(n){Be(n,Ir,0),Tt(n)}function Hn(n,S){try{return n._strategySizeAlgorithm(S)}catch(X){return rr(n,X),1}}function Rr(n){return n._strategyHWM-n._queueTotalSize}function Xn(n,S,X){try{Be(n,S,X)}catch(ce){return void rr(n,ce)}var ie=n._controlledWritableStream;Ue(ie)||ie._state!=="writable"||tr(ie,nr(n)),Tt(n)}function Tt(n){var S=n._controlledWritableStream;if(n._started&&S._inFlightWriteRequest===void 0)if(S._state!=="erroring"){if(n._queue.length!==0){var X=qe(n);X===Ir?zn(n):Wn(n,X)}}else er(S)}function rr(n,S){n._controlledWritableStream._state==="writable"&&jr(n,S)}function zn(n){var S=n._controlledWritableStream;Rn(S),Ne(n);var X=n._closeAlgorithm();Pt(n),B(X,function(){Fn(S)},function(ie){In(S,ie)})}function Wn(n,S){var X=n._controlledWritableStream;jn(X),B(n._writeAlgorithm(S),function(){Pn(X);var ie=X._state;if(Ne(n),!Ue(X)&&ie==="writable"){var ce=nr(n);tr(X,ce)}Tt(n)},function(ie){X._state==="writable"&&Pt(n),Tn(X,ie)})}function nr(n){return Rr(n)<=0}function jr(n,S){var X=n._controlledWritableStream;Pt(n),Zt(X,S)}function Ft(n){return new TypeError("WritableStream.prototype."+n+" can only be used on a WritableStream")}function $e(n){return new TypeError("WritableStreamDefaultWriter.prototype."+n+" can only be used on a WritableStreamDefaultWriter")}function lt(n){return new TypeError("Cannot "+n+" a stream using a released writer")}function It(n){n._closedPromise=U(function(S,X){n._closedPromise_resolve=S,n._closedPromise_reject=X,n._closedPromiseState="pending"})}function Mr(n,S){It(n),ar(n,S)}function Vn(n){It(n),Lr(n)}function ar(n,S){n._closedPromise_reject!==void 0&&(d(n._closedPromise),n._closedPromise_reject(S),n._closedPromise_resolve=void 0,n._closedPromise_reject=void 0,n._closedPromiseState="rejected")}function Gn(n,S){Mr(n,S)}function Lr(n){n._closedPromise_resolve!==void 0&&(n._closedPromise_resolve(void 0),n._closedPromise_resolve=void 0,n._closedPromise_reject=void 0,n._closedPromiseState="resolved")}function Et(n){n._readyPromise=U(function(S,X){n._readyPromise_resolve=S,n._readyPromise_reject=X}),n._readyPromiseState="pending"}function ir(n,S){Et(n),Dr(n,S)}function Nr(n){Et(n),or(n)}function Dr(n,S){n._readyPromise_reject!==void 0&&(d(n._readyPromise),n._readyPromise_reject(S),n._readyPromise_resolve=void 0,n._readyPromise_reject=void 0,n._readyPromiseState="rejected")}function $n(n){Et(n)}function Yn(n,S){ir(n,S)}function or(n){n._readyPromise_resolve!==void 0&&(n._readyPromise_resolve(void 0),n._readyPromise_resolve=void 0,n._readyPromise_reject=void 0,n._readyPromiseState="fulfilled")}function Kn(n){if(typeof n!="object"||n===null)return!1;try{return typeof n.aborted=="boolean"}catch{return!1}}Object.defineProperties(ct.prototype,{error:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(ct.prototype,f.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});var Br=typeof DOMException<"u"?DOMException:void 0;function Jn(n){if(typeof n!="function"&&typeof n!="object")return!1;try{return new n,!0}catch{return!1}}function Qn(){var n=function(S,X){this.message=S||"",this.name=X||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return n.prototype=Object.create(Error.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,configurable:!0}),n}var Zn=Jn(Br)?Br:Qn();function Ur(n,S,X,ie,ce,ye){var we=ne(n),Se=Ar(S);n._disturbed=!0;var Ce=!1,Pe=J(void 0);return U(function(Te,Me){var je;if(ye!==void 0){if(je=function(){var Oe=new Zn("Aborted","AbortError"),Ie=[];ie||Ie.push(function(){return S._state==="writable"?xt(S,Oe):J(void 0)}),ce||Ie.push(function(){return n._state==="readable"?Ye(n,Oe):J(void 0)}),gt(function(){return Promise.all(Ie.map(function(De){return De()}))},!0,Oe)},ye.aborted)return void je();ye.addEventListener("abort",je)}function hr(){return U(function(Oe,Ie){function De(Wt){Wt?Oe():$(dr(),De,Ie)}De(!1)})}function dr(){return Ce?J(!0):$(Se._readyPromise,function(){return U(function(Oe,Ie){oe(we,{_chunkSteps:function(De){Pe=$(Fr(Se,De),void 0,E),Oe(!1)},_closeSteps:function(){return Oe(!0)},_errorSteps:Ie})})})}if(We(n,we._closedPromise,function(Oe){ie?Xt(!0,Oe):gt(function(){return xt(S,Oe)},!0,Oe)}),We(S,Se._closedPromise,function(Oe){ce?Xt(!0,Oe):gt(function(){return Ye(n,Oe)},!0,Oe)}),Je(n,we._closedPromise,function(){X?Xt():gt(function(){return Ln(Se)})}),Ue(S)||S._state==="closed"){var nt=new TypeError("the destination writable stream closed before all data could be piped to it");ce?Xt(!0,nt):gt(function(){return Ye(n,nt)},!0,nt)}function Le(){var Oe=Pe;return $(Pe,function(){return Oe!==Pe?Le():void 0})}function We(Oe,Ie,De){Oe._state==="errored"?De(Oe._storedError):g(Ie,De)}function Je(Oe,Ie,De){Oe._state==="closed"?De():F(Ie,De)}function gt(Oe,Ie,De){function Wt(){B(Oe(),function(){return zt(Ie,De)},function(Pa){return zt(!0,Pa)})}Ce||(Ce=!0,S._state!=="writable"||Ue(S)?Wt():F(Le(),Wt))}function Xt(Oe,Ie){Ce||(Ce=!0,S._state!=="writable"||Ue(S)?zt(Oe,Ie):F(Le(),function(){return zt(Oe,Ie)}))}function zt(Oe,Ie){Tr(Se),s(we),ye!==void 0&&ye.removeEventListener("abort",je),Oe?Me(Ie):Te(void 0)}d(hr())})}var ft=function(){function n(){throw new TypeError("Illegal constructor")}return Object.defineProperty(n.prototype,"desiredSize",{get:function(){if(!Rt(this))throw Lt("desiredSize");return sr(this)},enumerable:!1,configurable:!0}),n.prototype.close=function(){if(!Rt(this))throw Lt("close");if(!tt(this))throw new TypeError("The stream is not in a state that permits close");dt(this)},n.prototype.enqueue=function(S){if(S===void 0&&(S=void 0),!Rt(this))throw Lt("enqueue");if(!tt(this))throw new TypeError("The stream is not in a state that permits enqueue");return Mt(this,S)},n.prototype.error=function(S){if(S===void 0&&(S=void 0),!Rt(this))throw Lt("error");He(this,S)},n.prototype[I]=function(S){Re(this);var X=this._cancelAlgorithm(S);return jt(this),X},n.prototype[O]=function(S){var X=this._controlledReadableStream;if(this._queue.length>0){var ie=Ne(this);this._closeRequested&&this._queue.length===0?(jt(this),pt(X)):ht(this),S._chunkSteps(ie)}else se(X,S),ht(this)},n}();function Rt(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_controlledReadableStream")}function ht(n){qr(n)&&(n._pulling?n._pullAgain=!0:(n._pulling=!0,B(n._pullAlgorithm(),function(){n._pulling=!1,n._pullAgain&&(n._pullAgain=!1,ht(n))},function(S){He(n,S)})))}function qr(n){var S=n._controlledReadableStream;return!!tt(n)&&!!n._started&&(!!(ze(S)&&he(S)>0)||sr(n)>0)}function jt(n){n._pullAlgorithm=void 0,n._cancelAlgorithm=void 0,n._strategySizeAlgorithm=void 0}function dt(n){if(tt(n)){var S=n._controlledReadableStream;n._closeRequested=!0,n._queue.length===0&&(jt(n),pt(S))}}function Mt(n,S){if(tt(n)){var X=n._controlledReadableStream;if(ze(X)&&he(X)>0)ue(X,S,!1);else{var ie=void 0;try{ie=n._strategySizeAlgorithm(S)}catch(ce){throw He(n,ce),ce}try{Be(n,S,ie)}catch(ce){throw He(n,ce),ce}}ht(n)}}function He(n,S){var X=n._controlledReadableStream;X._state==="readable"&&(Re(n),jt(n),Wr(X,S))}function sr(n){var S=n._controlledReadableStream._state;return S==="errored"?null:S==="closed"?0:n._strategyHWM-n._queueTotalSize}function ea(n){return!qr(n)}function tt(n){var S=n._controlledReadableStream._state;return!n._closeRequested&&S==="readable"}function Hr(n,S,X,ie,ce,ye,we){S._controlledReadableStream=n,S._queue=void 0,S._queueTotalSize=void 0,Re(S),S._started=!1,S._closeRequested=!1,S._pullAgain=!1,S._pulling=!1,S._strategySizeAlgorithm=we,S._strategyHWM=ye,S._pullAlgorithm=ie,S._cancelAlgorithm=ce,n._readableStreamController=S,B(J(X()),function(){S._started=!0,ht(S)},function(Se){He(S,Se)})}function ta(n,S,X,ie){var ce=Object.create(ft.prototype),ye=function(){},we=function(){return J(void 0)},Se=function(){return J(void 0)};S.start!==void 0&&(ye=function(){return S.start(ce)}),S.pull!==void 0&&(we=function(){return S.pull(ce)}),S.cancel!==void 0&&(Se=function(Ce){return S.cancel(Ce)}),Hr(n,ce,ye,we,Se,X,ie)}function Lt(n){return new TypeError("ReadableStreamDefaultController.prototype."+n+" can only be used on a ReadableStreamDefaultController")}function ra(n,S){var X,ie,ce,ye,we,Se=ne(n),Ce=!1,Pe=!1,Te=!1,Me=U(function(Le){we=Le});function je(){return Ce||(Ce=!0,oe(Se,{_chunkSteps:function(Le){y(function(){Ce=!1;var We=Le,Je=Le;Pe||Mt(ce._readableStreamController,We),Te||Mt(ye._readableStreamController,Je)})},_closeSteps:function(){Ce=!1,Pe||dt(ce._readableStreamController),Te||dt(ye._readableStreamController),Pe&&Te||we(void 0)},_errorSteps:function(){Ce=!1}})),J(void 0)}function hr(Le){if(Pe=!0,X=Le,Te){var We=at([X,ie]),Je=Ye(n,We);we(Je)}return Me}function dr(Le){if(Te=!0,ie=Le,Pe){var We=at([X,ie]),Je=Ye(n,We);we(Je)}return Me}function nt(){}return ce=ur(nt,je,hr),ye=ur(nt,je,dr),g(Se._closedPromise,function(Le){He(ce._readableStreamController,Le),He(ye._readableStreamController,Le),Pe&&Te||we(void 0)}),[ce,ye]}function na(n,S){W(n,S);var X=n,ie=X==null?void 0:X.autoAllocateChunkSize,ce=X==null?void 0:X.cancel,ye=X==null?void 0:X.pull,we=X==null?void 0:X.start,Se=X==null?void 0:X.type;return{autoAllocateChunkSize:ie===void 0?void 0:Q(ie,S+" has member 'autoAllocateChunkSize' that"),cancel:ce===void 0?void 0:aa(ce,X,S+" has member 'cancel' that"),pull:ye===void 0?void 0:ia(ye,X,S+" has member 'pull' that"),start:we===void 0?void 0:oa(we,X,S+" has member 'start' that"),type:Se===void 0?void 0:sa(Se,S+" has member 'type' that")}}function aa(n,S,X){return z(n,X),function(ie){return c(n,S,[ie])}}function ia(n,S,X){return z(n,X),function(ie){return c(n,S,[ie])}}function oa(n,S,X){return z(n,X),function(ie){return m(n,S,[ie])}}function sa(n,S){if((n=""+n)!="bytes")throw new TypeError(S+" '"+n+"' is not a valid enumeration value for ReadableStreamType");return n}function ua(n,S){W(n,S);var X=n==null?void 0:n.mode;return{mode:X===void 0?void 0:ca(X,S+" has member 'mode' that")}}function ca(n,S){if((n=""+n)!="byob")throw new TypeError(S+" '"+n+"' is not a valid enumeration value for ReadableStreamReaderMode");return n}function la(n,S){W(n,S);var X=n==null?void 0:n.preventCancel;return{preventCancel:!!X}}function Xr(n,S){W(n,S);var X=n==null?void 0:n.preventAbort,ie=n==null?void 0:n.preventCancel,ce=n==null?void 0:n.preventClose,ye=n==null?void 0:n.signal;return ye!==void 0&&fa(ye,S+" has member 'signal' that"),{preventAbort:!!X,preventCancel:!!ie,preventClose:!!ce,signal:ye}}function fa(n,S){if(!Kn(n))throw new TypeError(S+" is not an AbortSignal.")}function ha(n,S){W(n,S);var X=n==null?void 0:n.readable;Z(X,"readable","ReadableWritablePair"),re(X,S+" has member 'readable' that");var ie=n==null?void 0:n.writable;return Z(ie,"writable","ReadableWritablePair"),_r(ie,S+" has member 'writable' that"),{readable:X,writable:ie}}Object.defineProperties(ft.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(ft.prototype,f.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});var rt=function(){function n(S,X){S===void 0&&(S={}),X===void 0&&(X={}),S===void 0?S=null:te(S,"First parameter");var ie=_t(X,"Second parameter"),ce=na(S,"First parameter");if(zr(this),ce.type==="bytes"){if(ie.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");gn(this,ce,ut(ie,0))}else{var ye=St(ie);ta(this,ce,ut(ie,1),ye)}}return Object.defineProperty(n.prototype,"locked",{get:function(){if(!Xe(this))throw Ke("locked");return ze(this)},enumerable:!1,configurable:!0}),n.prototype.cancel=function(S){return S===void 0&&(S=void 0),Xe(this)?ze(this)?H(new TypeError("Cannot cancel a stream that already has a reader")):Ye(this,S):H(Ke("cancel"))},n.prototype.getReader=function(S){if(S===void 0&&(S=void 0),!Xe(this))throw Ke("getReader");return ua(S,"First parameter").mode===void 0?ne(this):vn(this)},n.prototype.pipeThrough=function(S,X){if(X===void 0&&(X={}),!Xe(this))throw Ke("pipeThrough");ae(S,1,"pipeThrough");var ie=ha(S,"First parameter"),ce=Xr(X,"Second parameter");if(ze(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(et(ie.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return d(Ur(this,ie.writable,ce.preventClose,ce.preventAbort,ce.preventCancel,ce.signal)),ie.readable},n.prototype.pipeTo=function(S,X){if(X===void 0&&(X={}),!Xe(this))return H(Ke("pipeTo"));if(S===void 0)return H("Parameter 1 is required in 'pipeTo'.");if(!Ze(S))return H(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var ie;try{ie=Xr(X,"Second parameter")}catch(ce){return H(ce)}return ze(this)?H(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):et(S)?H(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ur(this,S,ie.preventClose,ie.preventAbort,ie.preventCancel,ie.signal)},n.prototype.tee=function(){if(!Xe(this))throw Ke("tee");return at(ra(this))},n.prototype.values=function(S){if(S===void 0&&(S=void 0),!Xe(this))throw Ke("values");return ke(this,la(S,"First parameter").preventCancel)},n}();function ur(n,S,X,ie,ce){ie===void 0&&(ie=1),ce===void 0&&(ce=function(){return 1});var ye=Object.create(rt.prototype);return zr(ye),Hr(ye,Object.create(ft.prototype),n,S,X,ie,ce),ye}function zr(n){n._state="readable",n._reader=void 0,n._storedError=void 0,n._disturbed=!1}function Xe(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_readableStreamController")}function ze(n){return n._reader!==void 0}function Ye(n,S){return n._disturbed=!0,n._state==="closed"?J(void 0):n._state==="errored"?H(n._storedError):(pt(n),v(n._readableStreamController[I](S),E))}function pt(n){n._state="closed";var S=n._reader;S!==void 0&&(o(S),de(S)&&(S._readRequests.forEach(function(X){X._closeSteps()}),S._readRequests=new a))}function Wr(n,S){n._state="errored",n._storedError=S;var X=n._reader;X!==void 0&&(b(X,S),de(X)?(X._readRequests.forEach(function(ie){ie._errorSteps(S)}),X._readRequests=new a):(X._readIntoRequests.forEach(function(ie){ie._errorSteps(S)}),X._readIntoRequests=new a))}function Ke(n){return new TypeError("ReadableStream.prototype."+n+" can only be used on a ReadableStream")}function Vr(n,S){W(n,S);var X=n==null?void 0:n.highWaterMark;return Z(X,"highWaterMark","QueuingStrategyInit"),{highWaterMark:K(X)}}Object.defineProperties(rt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(rt.prototype,f.toStringTag,{value:"ReadableStream",configurable:!0}),typeof f.asyncIterator=="symbol"&&Object.defineProperty(rt.prototype,f.asyncIterator,{value:rt.prototype.values,writable:!0,configurable:!0});var da=function(n){return n.byteLength},cr=function(){function n(S){ae(S,1,"ByteLengthQueuingStrategy"),S=Vr(S,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=S.highWaterMark}return Object.defineProperty(n.prototype,"highWaterMark",{get:function(){if(!$r(this))throw Gr("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"size",{get:function(){if(!$r(this))throw Gr("size");return da},enumerable:!1,configurable:!0}),n}();function Gr(n){return new TypeError("ByteLengthQueuingStrategy.prototype."+n+" can only be used on a ByteLengthQueuingStrategy")}function $r(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_byteLengthQueuingStrategyHighWaterMark")}Object.defineProperties(cr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(cr.prototype,f.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});var pa=function(){return 1},lr=function(){function n(S){ae(S,1,"CountQueuingStrategy"),S=Vr(S,"First parameter"),this._countQueuingStrategyHighWaterMark=S.highWaterMark}return Object.defineProperty(n.prototype,"highWaterMark",{get:function(){if(!Kr(this))throw Yr("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"size",{get:function(){if(!Kr(this))throw Yr("size");return pa},enumerable:!1,configurable:!0}),n}();function Yr(n){return new TypeError("CountQueuingStrategy.prototype."+n+" can only be used on a CountQueuingStrategy")}function Kr(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_countQueuingStrategyHighWaterMark")}function ga(n,S){W(n,S);var X=n==null?void 0:n.flush,ie=n==null?void 0:n.readableType,ce=n==null?void 0:n.start,ye=n==null?void 0:n.transform,we=n==null?void 0:n.writableType;return{flush:X===void 0?void 0:ma(X,n,S+" has member 'flush' that"),readableType:ie,start:ce===void 0?void 0:va(ce,n,S+" has member 'start' that"),transform:ye===void 0?void 0:ya(ye,n,S+" has member 'transform' that"),writableType:we}}function ma(n,S,X){return z(n,X),function(ie){return c(n,S,[ie])}}function va(n,S,X){return z(n,X),function(ie){return m(n,S,[ie])}}function ya(n,S,X){return z(n,X),function(ie,ce){return c(n,S,[ie,ce])}}Object.defineProperties(lr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(lr.prototype,f.toStringTag,{value:"CountQueuingStrategy",configurable:!0});var fr=function(){function n(S,X,ie){S===void 0&&(S={}),X===void 0&&(X={}),ie===void 0&&(ie={}),S===void 0&&(S=null);var ce=_t(X,"Second parameter"),ye=_t(ie,"Third parameter"),we=ga(S,"First parameter");if(we.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(we.writableType!==void 0)throw new RangeError("Invalid writableType specified");var Se,Ce=ut(ye,0),Pe=St(ye),Te=ut(ce,1),Me=St(ce);ba(this,U(function(je){Se=je}),Te,Me,Ce,Pe),ka(this,we),we.start!==void 0?Se(we.start(this._transformStreamController)):Se(void 0)}return Object.defineProperty(n.prototype,"readable",{get:function(){if(!Jr(this))throw tn("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"writable",{get:function(){if(!Jr(this))throw tn("writable");return this._writable},enumerable:!1,configurable:!0}),n}();function ba(n,S,X,ie,ce,ye){function we(){return S}function Se(je){return Aa(n,je)}function Ce(je){return xa(n,je)}function Pe(){return Ca(n)}function Te(){return Oa(n)}function Me(je){return Dt(n,je),J(void 0)}n._writable=Cn(we,Se,Pe,Ce,X,ie),n._readable=ur(we,Te,Me,ce,ye),n._backpressure=void 0,n._backpressureChangePromise=void 0,n._backpressureChangePromise_resolve=void 0,Bt(n,!0),n._transformStreamController=void 0}function Jr(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_transformStreamController")}function Nt(n,S){He(n._readable._readableStreamController,S),Dt(n,S)}function Dt(n,S){Qr(n._transformStreamController),rr(n._writable._writableStreamController,S),n._backpressure&&Bt(n,!1)}function Bt(n,S){n._backpressureChangePromise!==void 0&&n._backpressureChangePromise_resolve(),n._backpressureChangePromise=U(function(X){n._backpressureChangePromise_resolve=X}),n._backpressure=S}Object.defineProperties(fr.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(fr.prototype,f.toStringTag,{value:"TransformStream",configurable:!0});var Ut=function(){function n(){throw new TypeError("Illegal constructor")}return Object.defineProperty(n.prototype,"desiredSize",{get:function(){if(!qt(this))throw Ht("desiredSize");return sr(this._controlledTransformStream._readable._readableStreamController)},enumerable:!1,configurable:!0}),n.prototype.enqueue=function(S){if(S===void 0&&(S=void 0),!qt(this))throw Ht("enqueue");Zr(this,S)},n.prototype.error=function(S){if(S===void 0&&(S=void 0),!qt(this))throw Ht("error");Sa(this,S)},n.prototype.terminate=function(){if(!qt(this))throw Ht("terminate");_a(this)},n}();function qt(n){return!!N(n)&&!!Object.prototype.hasOwnProperty.call(n,"_controlledTransformStream")}function wa(n,S,X,ie){S._controlledTransformStream=n,n._transformStreamController=S,S._transformAlgorithm=X,S._flushAlgorithm=ie}function ka(n,S){var X=Object.create(Ut.prototype),ie=function(ye){try{return Zr(X,ye),J(void 0)}catch(we){return H(we)}},ce=function(){return J(void 0)};S.transform!==void 0&&(ie=function(ye){return S.transform(ye,X)}),S.flush!==void 0&&(ce=function(){return S.flush(X)}),wa(n,X,ie,ce)}function Qr(n){n._transformAlgorithm=void 0,n._flushAlgorithm=void 0}function Zr(n,S){var X=n._controlledTransformStream,ie=X._readable._readableStreamController;if(!tt(ie))throw new TypeError("Readable side is not in a state that permits enqueue");try{Mt(ie,S)}catch(ce){throw Dt(X,ce),X._readable._storedError}ea(ie)!==X._backpressure&&Bt(X,!0)}function Sa(n,S){Nt(n._controlledTransformStream,S)}function en(n,S){return v(n._transformAlgorithm(S),void 0,function(X){throw Nt(n._controlledTransformStream,X),X})}function _a(n){var S=n._controlledTransformStream;dt(S._readable._readableStreamController),Dt(S,new TypeError("TransformStream terminated"))}function Aa(n,S){var X=n._transformStreamController;return n._backpressure?v(n._backpressureChangePromise,function(){var ie=n._writable;if(ie._state==="erroring")throw ie._storedError;return en(X,S)}):en(X,S)}function xa(n,S){return Nt(n,S),J(void 0)}function Ca(n){var S=n._readable,X=n._transformStreamController,ie=X._flushAlgorithm();return Qr(X),v(ie,function(){if(S._state==="errored")throw S._storedError;dt(S._readableStreamController)},function(ce){throw Nt(n,ce),S._storedError})}function Oa(n){return Bt(n,!1),n._backpressureChangePromise}function Ht(n){return new TypeError("TransformStreamDefaultController.prototype."+n+" can only be used on a TransformStreamDefaultController")}function tn(n){return new TypeError("TransformStream.prototype."+n+" can only be used on a TransformStream")}Object.defineProperties(Ut.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof f.toStringTag=="symbol"&&Object.defineProperty(Ut.prototype,f.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),h.ByteLengthQueuingStrategy=cr,h.CountQueuingStrategy=lr,h.ReadableByteStreamController=vt,h.ReadableStream=rt,h.ReadableStreamBYOBReader=wt,h.ReadableStreamBYOBRequest=mt,h.ReadableStreamDefaultController=ft,h.ReadableStreamDefaultReader=ge,h.TransformStream=fr,h.TransformStreamDefaultController=Ut,h.WritableStream=At,h.WritableStreamDefaultController=ct,h.WritableStreamDefaultWriter=Ot,Object.defineProperty(h,"__esModule",{value:!0})})(_)},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultCMapReaderFactory=exports.DefaultCanvasFactory=exports.build=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(4),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(114),_node_utils=__w_pdfjs_require__(115),_annotation_storage=__w_pdfjs_require__(116),_api_compatibility=__w_pdfjs_require__(117),_canvas=__w_pdfjs_require__(118),_worker_options=__w_pdfjs_require__(120),_is_node=__w_pdfjs_require__(6),_message_handler=__w_pdfjs_require__(121),_metadata=__w_pdfjs_require__(122),_optional_content_config=__w_pdfjs_require__(123),_transport_stream=__w_pdfjs_require__(124);function _interopRequireDefault(L){return L&&L.__esModule?L:{default:L}}function asyncGeneratorStep(L,_,h,f,E,P,T){try{var N=L[P](T),j=N.value}catch(x){return void h(x)}N.done?_(j):Promise.resolve(j).then(f,E)}function _asyncToGenerator(L){return function(){var _=this,h=arguments;return new Promise(function(f,E){var P=L.apply(_,h);function T(j){asyncGeneratorStep(P,f,E,T,N,"next",j)}function N(j){asyncGeneratorStep(P,f,E,T,N,"throw",j)}T(void 0)})}}function _toConsumableArray(L){return _arrayWithoutHoles(L)||_iterableToArray(L)||_unsupportedIterableToArray(L)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray(L){if(typeof Symbol<"u"&&L[Symbol.iterator]!=null||L["@@iterator"]!=null)return Array.from(L)}function _arrayWithoutHoles(L){if(Array.isArray(L))return _arrayLikeToArray(L)}function _createForOfIteratorHelper(L,_){var h=typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(!h){if(Array.isArray(L)||(h=_unsupportedIterableToArray(L))||_&&L&&typeof L.length=="number"){h&&(L=h);var f=0,E=function(){};return{s:E,n:function(){return f>=L.length?{done:!0}:{done:!1,value:L[f++]}},e:function(j){throw j},f:E}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var P,T=!0,N=!1;return{s:function(){h=h.call(L)},n:function(){var j=h.next();return T=j.done,j},e:function(j){N=!0,P=j},f:function(){try{T||h.return==null||h.return()}finally{if(N)throw P}}}}function _classCallCheck(L,_){if(!(L instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties(L,_){for(var h=0;h<_.length;h++){var f=_[h];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(L,f.key,f)}}function _createClass(L,_,h){return _&&_defineProperties(L.prototype,_),h&&_defineProperties(L,h),L}function _slicedToArray(L,_){return _arrayWithHoles(L)||_iterableToArrayLimit(L,_)||_unsupportedIterableToArray(L,_)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(L,_){if(L){if(typeof L=="string")return _arrayLikeToArray(L,_);var h=Object.prototype.toString.call(L).slice(8,-1);return h==="Object"&&L.constructor&&(h=L.constructor.name),h==="Map"||h==="Set"?Array.from(L):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?_arrayLikeToArray(L,_):void 0}}function _arrayLikeToArray(L,_){(_==null||_>L.length)&&(_=L.length);for(var h=0,f=new Array(_);h<_;h++)f[h]=L[h];return f}function _iterableToArrayLimit(L,_){var h=L&&(typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"]);if(h!=null){var f,E,P=[],T=!0,N=!1;try{for(h=h.call(L);!(T=(f=h.next()).done)&&(P.push(f.value),!_||P.length!==_);T=!0);}catch(j){N=!0,E=j}finally{try{T||h.return==null||h.return()}finally{if(N)throw E}}return P}}function _arrayWithHoles(L){if(Array.isArray(L))return L}function _typeof(L){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},_typeof(L)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory,createPDFNetworkStream;function setPDFNetworkStreamFactory(L){createPDFNetworkStream=L}function getDocument(L){var _,h=new PDFDocumentLoadingTask;if(typeof L=="string"||L instanceof URL)_={url:L};else if((0,_util.isArrayBuffer)(L))_={data:L};else if(L instanceof PDFDataRangeTransport)_={range:L};else{if(_typeof(L)!=="object")throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!L.url&&!L.data&&!L.range)throw new Error("Invalid parameter object: need either .data, .range or .url");_=L}var f=Object.create(null),E=null,P=null;for(var T in _){var N=_[T];switch(T){case"url":if(typeof window<"u")try{f[T]=new URL(N,window.location).href;continue}catch(M){(0,_util.warn)('Cannot create valid URL: "'.concat(M,'".'))}else if(typeof N=="string"||N instanceof URL){f[T]=N.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":E=N;continue;case"worker":P=N;continue;case"data":if(_is_node.isNodeJS&&typeof Buffer<"u"&&N instanceof Buffer)f[T]=new Uint8Array(N);else{if(N instanceof Uint8Array)break;if(typeof N=="string")f[T]=(0,_util.stringToBytes)(N);else if(_typeof(N)!=="object"||N===null||isNaN(N.length)){if(!(0,_util.isArrayBuffer)(N))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");f[T]=new Uint8Array(N)}else f[T]=new Uint8Array(N)}continue}f[T]=N}if(f.rangeChunkSize=f.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,f.CMapReaderFactory=f.CMapReaderFactory||DefaultCMapReaderFactory,f.ignoreErrors=f.stopAtErrors!==!0,f.fontExtraProperties=f.fontExtraProperties===!0,f.pdfBug=f.pdfBug===!0,f.enableXfa=f.enableXfa===!0,(typeof f.docBaseUrl!="string"||(0,_display_utils.isDataScheme)(f.docBaseUrl))&&(f.docBaseUrl=null),Number.isInteger(f.maxImageSize)||(f.maxImageSize=-1),typeof f.isEvalSupported!="boolean"&&(f.isEvalSupported=!0),typeof f.disableFontFace!="boolean"&&(f.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),f.ownerDocument===void 0&&(f.ownerDocument=globalThis.document),typeof f.disableRange!="boolean"&&(f.disableRange=!1),typeof f.disableStream!="boolean"&&(f.disableStream=!1),typeof f.disableAutoFetch!="boolean"&&(f.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(f.verbosity),!P){var j={verbosity:f.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};P=j.port?PDFWorker.fromPort(j):new PDFWorker(j),h._worker=P}var x=h.docId;return P.promise.then(function(){if(h.destroyed)throw new Error("Loading aborted");var M=_fetchDocument(P,f,E,x),D=new Promise(function(C){var U;E?U=new _transport_stream.PDFDataTransportStream({length:f.length,initialData:f.initialData,progressiveDone:f.progressiveDone,contentDispositionFilename:f.contentDispositionFilename,disableRange:f.disableRange,disableStream:f.disableStream},E):f.data||(U=createPDFNetworkStream({url:f.url,length:f.length,httpHeaders:f.httpHeaders,withCredentials:f.withCredentials,rangeChunkSize:f.rangeChunkSize,disableRange:f.disableRange,disableStream:f.disableStream})),C(U)});return Promise.all([M,D]).then(function(C){var U=_slicedToArray(C,2),J=U[0],H=U[1];if(h.destroyed)throw new Error("Loading aborted");var $=new _message_handler.MessageHandler(x,J,P.port);$.postMessageTransfers=P.postMessageTransfers;var B=new WorkerTransport($,h,H,f);h._transport=B,$.send("Ready",null)})}).catch(h._capability.reject),h}function _fetchDocument(L,_,h,f){return L.destroyed?Promise.reject(new Error("Worker was destroyed")):(h&&(_.length=h.length,_.initialData=h.initialData,_.progressiveDone=h.progressiveDone,_.contentDispositionFilename=h.contentDispositionFilename),L.messageHandler.sendWithPromise("GetDocRequest",{docId:f,apiVersion:"2.9.359",source:{data:_.data,url:_.url,password:_.password,disableAutoFetch:_.disableAutoFetch,rangeChunkSize:_.rangeChunkSize,length:_.length},maxImageSize:_.maxImageSize,disableFontFace:_.disableFontFace,postMessageTransfers:L.postMessageTransfers,docBaseUrl:_.docBaseUrl,ignoreErrors:_.ignoreErrors,isEvalSupported:_.isEvalSupported,fontExtraProperties:_.fontExtraProperties,enableXfa:_.enableXfa}).then(function(E){if(L.destroyed)throw new Error("Worker was destroyed");return E}))}exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var PDFDocumentLoadingTask=(nextDocumentId=0,function(){function L(){_classCallCheck(this,L),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+nextDocumentId++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(L,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:function(){var _=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){_._transport=null,_._worker&&(_._worker.destroy(),_._worker=null)})}}]),L}()),nextDocumentId,PDFDataRangeTransport=function(){function L(_,h){var f=arguments.length>2&&arguments[2]!==void 0&&arguments[2],E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_classCallCheck(this,L),this.length=_,this.initialData=h,this.progressiveDone=f,this.contentDispositionFilename=E,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(L,[{key:"addRangeListener",value:function(_){this._rangeListeners.push(_)}},{key:"addProgressListener",value:function(_){this._progressListeners.push(_)}},{key:"addProgressiveReadListener",value:function(_){this._progressiveReadListeners.push(_)}},{key:"addProgressiveDoneListener",value:function(_){this._progressiveDoneListeners.push(_)}},{key:"onDataRange",value:function(_,h){var f,E=_createForOfIteratorHelper(this._rangeListeners);try{for(E.s();!(f=E.n()).done;)(0,f.value)(_,h)}catch(P){E.e(P)}finally{E.f()}}},{key:"onDataProgress",value:function(_,h){var f=this;this._readyCapability.promise.then(function(){var E,P=_createForOfIteratorHelper(f._progressListeners);try{for(P.s();!(E=P.n()).done;)(0,E.value)(_,h)}catch(T){P.e(T)}finally{P.f()}})}},{key:"onDataProgressiveRead",value:function(_){var h=this;this._readyCapability.promise.then(function(){var f,E=_createForOfIteratorHelper(h._progressiveReadListeners);try{for(E.s();!(f=E.n()).done;)(0,f.value)(_)}catch(P){E.e(P)}finally{E.f()}})}},{key:"onDataProgressiveDone",value:function(){var _=this;this._readyCapability.promise.then(function(){var h,f=_createForOfIteratorHelper(_._progressiveDoneListeners);try{for(f.s();!(h=f.n()).done;)(0,h.value)()}catch(E){f.e(E)}finally{f.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(_,h){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),L}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function L(_,h){_classCallCheck(this,L),this._pdfInfo=_,this._transport=h}return _createClass(L,[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"isPureXfa",get:function(){return this._pdfInfo.isPureXfa}},{key:"getPage",value:function(_){return this._transport.getPage(_)}},{key:"getPageIndex",value:function(_){return this._transport.getPageIndex(_)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(_){return this._transport.getDestination(_)}},{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:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{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:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{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(){var _=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return this._transport.startCleanup(_||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"saveDocument",value:function(){return arguments.length>0&&(0,_display_utils.deprecated)("saveDocument no longer accepts any options."),this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}]),L}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function L(_,h,f,E){var P=arguments.length>4&&arguments[4]!==void 0&&arguments[4];_classCallCheck(this,L),this._pageIndex=_,this._pageInfo=h,this._ownerDocument=E,this._transport=f,this._stats=P?new _display_utils.StatTimer:null,this._pdfBug=P,this.commonObjs=f.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}return _createClass(L,[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=_.scale,f=_.rotation,E=f===void 0?this.rotate:f,P=_.offsetX,T=P===void 0?0:P,N=_.offsetY,j=N===void 0?0:N,x=_.dontFlip,M=x!==void 0&&x;return new _display_utils.PageViewport({viewBox:this.view,scale:h,rotation:E,offsetX:T,offsetY:j,dontFlip:M})}},{key:"getAnnotations",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=_.intent,f=h===void 0?null:h;return this._annotationsPromise&&this._annotationsIntent===f||(this._annotationsPromise=this._transport.getAnnotations(this._pageIndex,f),this._annotationsIntent=f),this._annotationsPromise}},{key:"getJSActions",value:function(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}},{key:"getXfa",value:function(){return this._xfaPromise||(this._xfaPromise=this._transport.getPageXfa(this._pageIndex))}},{key:"render",value:function(_){var h,f,E=this,P=_.canvasContext,T=_.viewport,N=_.intent,j=N===void 0?"display":N,x=_.renderInteractiveForms,M=x!==void 0&&x,D=_.transform,C=D===void 0?null:D,U=_.imageLayer,J=U===void 0?null:U,H=_.canvasFactory,$=H===void 0?null:H,B=_.background,F=B===void 0?null:B,g=_.includeAnnotationStorage,v=g!==void 0&&g,d=_.optionalContentConfigPromise,y=d===void 0?null:d;((h=arguments[0])===null||h===void 0?void 0:h.annotationStorage)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts an `annotationStorage` option, please use the `includeAnnotationStorage`-boolean instead."),v||(v=!!arguments[0].annotationStorage)),this._stats&&this._stats.time("Overall");var m=j==="print"?"print":"display";this.pendingCleanup=!1,y||(y=this._transport.getOptionalContentConfig());var c=this._intentStates.get(m);c||(c=Object.create(null),this._intentStates.set(m,c)),c.streamReaderCancelTimeout&&(clearTimeout(c.streamReaderCancelTimeout),c.streamReaderCancelTimeout=null);var l=$||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),a=v?this._transport.annotationStorage.serializable:null;c.displayReadyCapability||(c.displayReadyCapability=(0,_util.createPromiseCapability)(),c.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:m,renderInteractiveForms:M===!0,annotationStorage:a}));var e=function(r){c.renderTasks.delete(t),(E.cleanupAfterRender||m==="print")&&(E.pendingCleanup=!0),E._tryCleanup(),r?(t.capability.reject(r),E._abortOperatorList({intentState:c,reason:r})):t.capability.resolve(),E._stats&&(E._stats.timeEnd("Rendering"),E._stats.timeEnd("Overall"))},t=new InternalRenderTask({callback:e,params:{canvasContext:P,viewport:T,transform:C,imageLayer:J,background:F},objs:this.objs,commonObjs:this.commonObjs,operatorList:c.operatorList,pageIndex:this._pageIndex,canvasFactory:l,useRequestAnimationFrame:m!=="print",pdfBug:this._pdfBug});((f=c).renderTasks||(f.renderTasks=new Set)).add(t);var s=t.task;return Promise.all([c.displayReadyCapability.promise,y]).then(function(r){var p=_slicedToArray(r,2),k=p[0],w=p[1];E.pendingCleanup?e():(E._stats&&E._stats.time("Rendering"),t.initializeGraphics({transparency:k,optionalContentConfig:w}),t.operatorListChanged())}).catch(e),s}},{key:"getOperatorList",value:function(){var _,h,f="oplist",E=this._intentStates.get(f);return E||(E=Object.create(null),this._intentStates.set(f,E)),E.opListReadCapability||((_=Object.create(null)).operatorListChanged=function(){E.operatorList.lastChunk&&(E.opListReadCapability.resolve(E.operatorList),E.renderTasks.delete(_))},E.opListReadCapability=(0,_util.createPromiseCapability)(),((h=E).renderTasks||(h.renderTasks=new Set)).add(_),E.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:f})),E.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=_.normalizeWhitespace,f=h!==void 0&&h,E=_.disableCombineTextItems,P=E!==void 0&&E,T=_.includeMarkedContent,N=T!==void 0&&T,j=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:f===!0,combineTextItems:P!==!0,includeMarkedContent:N===!0},{highWaterMark:j,size:function(x){return x.items.length}})}},{key:"getTextContent",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=this.streamTextContent(_);return new Promise(function(f,E){var P=h.getReader(),T={items:[],styles:Object.create(null)};(function N(){P.read().then(function(j){var x,M=j.value;j.done?f(T):(Object.assign(T.styles,M.styles),(x=T.items).push.apply(x,_toConsumableArray(M.items)),N())},E)})()})}},{key:"getStructTree",value:function(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}},{key:"_destroy",value:function(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var _,h=[],f=_createForOfIteratorHelper(this._intentStates);try{for(f.s();!(_=f.n()).done;){var E=_slicedToArray(_.value,2),P=E[0],T=E[1];if(this._abortOperatorList({intentState:T,reason:new Error("Page was destroyed."),force:!0}),P!=="oplist"){var N,j=_createForOfIteratorHelper(T.renderTasks);try{for(j.s();!(N=j.n()).done;){var x=N.value;h.push(x.completed),x.cancel()}}catch(M){j.e(M)}finally{j.f()}}}}catch(M){f.e(M)}finally{f.f()}return this.objs.clear(),this._annotationsPromise=null,this._jsActionsPromise=null,this._xfaPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(h)}},{key:"cleanup",value:function(){var _=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(_)}},{key:"_tryCleanup",value:function(){var _=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!this.pendingCleanup)return!1;var h,f=_createForOfIteratorHelper(this._intentStates.values());try{for(f.s();!(h=f.n()).done;){var E=h.value,P=E.renderTasks,T=E.operatorList;if(P.size>0||!T.lastChunk)return!1}}catch(N){f.e(N)}finally{f.f()}return this._intentStates.clear(),this.objs.clear(),this._annotationsPromise=null,this._jsActionsPromise=null,this._xfaPromise=null,this._structTreePromise=null,_&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(_,h){var f=this._intentStates.get(h);f&&(this._stats&&this._stats.timeEnd("Page Request"),f.displayReadyCapability&&f.displayReadyCapability.resolve(_))}},{key:"_renderPageChunk",value:function(_,h){for(var f=0,E=_.length;f<E;f++)h.operatorList.fnArray.push(_.fnArray[f]),h.operatorList.argsArray.push(_.argsArray[f]);h.operatorList.lastChunk=_.lastChunk;var P,T=_createForOfIteratorHelper(h.renderTasks);try{for(T.s();!(P=T.n()).done;)P.value.operatorListChanged()}catch(N){T.e(N)}finally{T.f()}_.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(_){var h=this;(0,_util.assert)(_.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var f=this._transport.messageHandler.sendWithStream("GetOperatorList",_).getReader(),E=this._intentStates.get(_.intent);E.streamReader=f,function P(){f.read().then(function(T){var N=T.value;T.done?E.streamReader=null:h._transport.destroyed||(h._renderPageChunk(N,E),P())},function(T){if(E.streamReader=null,!h._transport.destroyed){if(E.operatorList){E.operatorList.lastChunk=!0;var N,j=_createForOfIteratorHelper(E.renderTasks);try{for(j.s();!(N=j.n()).done;)N.value.operatorListChanged()}catch(x){j.e(x)}finally{j.f()}h._tryCleanup()}if(E.displayReadyCapability)E.displayReadyCapability.reject(T);else{if(!E.opListReadCapability)throw T;E.opListReadCapability.reject(T)}}})}()}},{key:"_abortOperatorList",value:function(_){var h=this,f=_.intentState,E=_.reason,P=_.force,T=P!==void 0&&P;if((0,_util.assert)(E instanceof Error||_typeof(E)==="object"&&E!==null,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),f.streamReader){if(!T){if(f.renderTasks.size>0)return;if(E instanceof _display_utils.RenderingCancelledException)return void(f.streamReaderCancelTimeout=setTimeout(function(){h._abortOperatorList({intentState:f,reason:E,force:!0}),f.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(f.streamReader.cancel(new _util.AbortException(E==null?void 0:E.message)),f.streamReader=null,!this._transport.destroyed){var N,j=_createForOfIteratorHelper(this._intentStates);try{for(j.s();!(N=j.n()).done;){var x=_slicedToArray(N.value,2),M=x[0];if(x[1]===f){this._intentStates.delete(M);break}}}catch(D){j.e(D)}finally{j.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]),L}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function L(){_classCallCheck(this,L),this._listeners=[],this._deferred=Promise.resolve(void 0)}return _createClass(L,[{key:"postMessage",value:function(_,h){var f=this,E=new WeakMap,P={data:function T(N){if(_typeof(N)!=="object"||N===null)return N;if(E.has(N))return E.get(N);var j,x;if((j=N.buffer)&&(0,_util.isArrayBuffer)(j))return x=h!=null&&h.includes(j)?new N.constructor(j,N.byteOffset,N.byteLength):new N.constructor(N),E.set(N,x),x;if(N instanceof Map){x=new Map,E.set(N,x);var M,D=_createForOfIteratorHelper(N);try{for(D.s();!(M=D.n()).done;){var C=_slicedToArray(M.value,2),U=C[0],J=C[1];x.set(U,T(J))}}catch(y){D.e(y)}finally{D.f()}return x}if(N instanceof Set){x=new Set,E.set(N,x);var H,$=_createForOfIteratorHelper(N);try{for($.s();!(H=$.n()).done;){var B=H.value;x.add(T(B))}}catch(y){$.e(y)}finally{$.f()}return x}if(N instanceof URL)throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(N));for(var F in x=Array.isArray(N)?[]:Object.create(null),E.set(N,x),N){for(var g,v=void 0,d=N;!(v=Object.getOwnPropertyDescriptor(d,F));)d=Object.getPrototypeOf(d);if(v.value!==void 0){if(typeof v.value!="function")x[F]=T(v.value);else if((g=N.hasOwnProperty)!==null&&g!==void 0&&g.call(N,F))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(N[F]))}}return x}(_)};this._deferred.then(function(){var T,N=_createForOfIteratorHelper(f._listeners);try{for(N.s();!(T=N.n()).done;)T.value.call(f,P)}catch(j){N.e(j)}finally{N.f()}})}},{key:"addEventListener",value:function(_,h){this._listeners.push(h)}},{key:"removeEventListener",value:function(_,h){var f=this._listeners.indexOf(h);this._listeners.splice(f,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),L}();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((typeof document>"u"?"undefined":_typeof(document))==="object"&&"currentScript"in document){var _document$currentScri,pdfjsFilePath=(_document$currentScri=document.currentScript)===null||_document$currentScri===void 0?void 0:_document$currentScri.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(fallbackWorkerSrc!==void 0)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var L;try{var _;L=(_=globalThis.pdfjsWorker)===null||_===void 0?void 0:_.WorkerMessageHandler}catch{}return L||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){for(;;)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(L){var _="importScripts('"+L+"');";return URL.createObjectURL(new Blob([_]))}var PDFWorker=function(){function L(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=_.name,f=h===void 0?null:h,E=_.port,P=E===void 0?null:E,T=_.verbosity,N=T===void 0?(0,_util.getVerbosityLevel)():T;if(_classCallCheck(this,L),P&&pdfWorkerPorts.has(P))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=f,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=N,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,P)return pdfWorkerPorts.set(P,this),void this._initializeFromPort(P);this._initialize()}return _createClass(L,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(_){this._port=_,this._messageHandler=new _message_handler.MessageHandler("main","worker",_),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var _=this;if(typeof Worker<"u"&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var h=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,h)||(h=createCDNWrapper(new URL(h,window.location).href));var f=new Worker(h),E=new _message_handler.MessageHandler("main","worker",f),P=function(){f.removeEventListener("error",T),E.destroy(),f.terminate(),_.destroyed?_._readyCapability.reject(new Error("Worker was destroyed")):_._setupFakeWorker()},T=function(){_._webWorker||P()};f.addEventListener("error",T),E.on("test",function(j){f.removeEventListener("error",T),_.destroyed?P():j?(_._messageHandler=E,_._port=f,_._webWorker=f,j.supportTransfers||(_.postMessageTransfers=!1),_._readyCapability.resolve(),E.send("configure",{verbosity:_.verbosity})):(_._setupFakeWorker(),E.destroy(),f.terminate())}),E.on("ready",function(j){if(f.removeEventListener("error",T),_.destroyed)P();else try{N()}catch{_._setupFakeWorker()}});var N=function(){var j=new Uint8Array([_.postMessageTransfers?255:0]);try{E.send("test",j,[j.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),j[0]=0,E.send("test",j)}};return void N()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var _=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(h){if(_.destroyed)_._readyCapability.reject(new Error("Worker was destroyed"));else{var f=new LoopbackPort;_._port=f;var E="fake"+nextFakeWorkerId++,P=new _message_handler.MessageHandler(E+"_worker",E,f);h.setup(P,f);var T=new _message_handler.MessageHandler(E,E+"_worker",f);_._messageHandler=T,_._readyCapability.resolve(),T.send("configure",{verbosity:_.verbosity})}}).catch(function(h){_._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(h.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:"fromPort",value:function(_){if(!_||!_.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(_.port)?pdfWorkerPorts.get(_.port):new L(_)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),L}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function L(h,f,E,P){_classCallCheck(this,L),this.messageHandler=h,this.loadingTask=f,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:f.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:P.ownerDocument}),this._params=P,this.CMapReaderFactory=new P.CMapReaderFactory({baseUrl:P.cMapUrl,isCompressed:P.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=E,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}var _;return _createClass(L,[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"destroy",value:function(){var h=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 f,E=[],P=_createForOfIteratorHelper(this.pageCache);try{for(P.s();!(f=P.n()).done;){var T=f.value;T&&E.push(T._destroy())}}catch(j){P.e(j)}finally{P.f()}this.pageCache.length=0,this.pagePromises.length=0,this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var N=this.messageHandler.sendWithPromise("Terminate",null);return E.push(N),Promise.all(E).then(function(){h.commonObjs.clear(),h.fontLoader.clear(),h._hasJSActionsPromise=null,h._networkStream&&h._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),h.messageHandler&&(h.messageHandler.destroy(),h.messageHandler=null),h.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var h=this,f=this.messageHandler,E=this.loadingTask;f.on("GetReader",function(P,T){(0,_util.assert)(h._networkStream,"GetReader - no `IPDFStream` instance available."),h._fullReader=h._networkStream.getFullReader(),h._fullReader.onProgress=function(N){h._lastProgress={loaded:N.loaded,total:N.total}},T.onPull=function(){h._fullReader.read().then(function(N){var j=N.value;N.done?T.close():((0,_util.assert)((0,_util.isArrayBuffer)(j),"GetReader - expected an ArrayBuffer."),T.enqueue(new Uint8Array(j),1,[j]))}).catch(function(N){T.error(N)})},T.onCancel=function(N){h._fullReader.cancel(N),T.ready.catch(function(j){if(!h.destroyed)throw j})}}),f.on("ReaderHeadersReady",function(P){var T=(0,_util.createPromiseCapability)(),N=h._fullReader;return N.headersReady.then(function(){N.isStreamingSupported&&N.isRangeSupported||(h._lastProgress&&E.onProgress&&E.onProgress(h._lastProgress),N.onProgress=function(j){E.onProgress&&E.onProgress({loaded:j.loaded,total:j.total})}),T.resolve({isStreamingSupported:N.isStreamingSupported,isRangeSupported:N.isRangeSupported,contentLength:N.contentLength})},T.reject),T.promise}),f.on("GetRangeReader",function(P,T){(0,_util.assert)(h._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var N=h._networkStream.getRangeReader(P.begin,P.end);N?(T.onPull=function(){N.read().then(function(j){var x=j.value;j.done?T.close():((0,_util.assert)((0,_util.isArrayBuffer)(x),"GetRangeReader - expected an ArrayBuffer."),T.enqueue(new Uint8Array(x),1,[x]))}).catch(function(j){T.error(j)})},T.onCancel=function(j){N.cancel(j),T.ready.catch(function(x){if(!h.destroyed)throw x})}):T.close()}),f.on("GetDoc",function(P){var T=P.pdfInfo;h._numPages=T.numPages,E._capability.resolve(new PDFDocumentProxy(T,h))}),f.on("DocException",function(P){var T;switch(P.name){case"PasswordException":T=new _util.PasswordException(P.message,P.code);break;case"InvalidPDFException":T=new _util.InvalidPDFException(P.message);break;case"MissingPDFException":T=new _util.MissingPDFException(P.message);break;case"UnexpectedResponseException":T=new _util.UnexpectedResponseException(P.message,P.status);break;case"UnknownErrorException":T=new _util.UnknownErrorException(P.message,P.details)}T instanceof Error||(0,_util.warn)("DocException - expected a valid Error."),E._capability.reject(T)}),f.on("PasswordRequest",function(P){if(h._passwordCapability=(0,_util.createPromiseCapability)(),E.onPassword)try{E.onPassword(function(T){h._passwordCapability.resolve({password:T})},P.code)}catch(T){h._passwordCapability.reject(T)}else h._passwordCapability.reject(new _util.PasswordException(P.message,P.code));return h._passwordCapability.promise}),f.on("DataLoaded",function(P){E.onProgress&&E.onProgress({loaded:P.length,total:P.length}),h.downloadInfoCapability.resolve(P)}),f.on("StartRenderPage",function(P){h.destroyed||h.pageCache[P.pageIndex]._startRenderPage(P.transparency,P.intent)}),f.on("commonobj",function(P){var T;if(!h.destroyed){var N=_slicedToArray(P,3),j=N[0],x=N[1],M=N[2];if(!h.commonObjs.has(j))switch(x){case"Font":var D=h._params;if("error"in M){var C=M.error;(0,_util.warn)("Error during font loading: ".concat(C)),h.commonObjs.resolve(j,C);break}var U=null;D.pdfBug&&(T=globalThis.FontInspector)!==null&&T!==void 0&&T.enabled&&(U={registerFont:function(H,$){globalThis.FontInspector.fontAdded(H,$)}});var J=new _font_loader.FontFaceObject(M,{isEvalSupported:D.isEvalSupported,disableFontFace:D.disableFontFace,ignoreErrors:D.ignoreErrors,onUnsupportedFeature:h._onUnsupportedFeature.bind(h),fontRegistry:U});h.fontLoader.bind(J).catch(function(H){return f.sendWithPromise("FontFallback",{id:j})}).finally(function(){!D.fontExtraProperties&&J.data&&(J.data=null),h.commonObjs.resolve(j,J)});break;case"FontPath":case"Image":h.commonObjs.resolve(j,M);break;default:throw new Error("Got unknown common object type ".concat(x))}}}),f.on("obj",function(P){var T;if(!h.destroyed){var N=_slicedToArray(P,4),j=N[0],x=N[1],M=N[2],D=N[3],C=h.pageCache[x];if(!C.objs.has(j)){if(M!=="Image")throw new Error("Got unknown object type ".concat(M));C.objs.resolve(j,D),(D==null||(T=D.data)===null||T===void 0?void 0:T.length)>8e6&&(C.cleanupAfterRender=!0)}}}),f.on("DocProgress",function(P){h.destroyed||E.onProgress&&E.onProgress({loaded:P.loaded,total:P.total})}),f.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),f.on("FetchBuiltInCMap",function(P,T){if(h.destroyed)T.error(new Error("Worker was destroyed"));else{var N=!1;T.onPull=function(){N?T.close():(N=!0,h.CMapReaderFactory.fetch(P).then(function(j){T.enqueue(j,1,[j.cMapData.buffer])}).catch(function(j){T.error(j)}))}}})}},{key:"_onUnsupportedFeature",value:function(h){var f=h.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(f)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(h){var f=this;if(!Number.isInteger(h)||h<=0||h>this._numPages)return Promise.reject(new Error("Invalid page request"));var E=h-1;if(E in this.pagePromises)return this.pagePromises[E];var P=this.messageHandler.sendWithPromise("GetPage",{pageIndex:E}).then(function(T){if(f.destroyed)throw new Error("Transport destroyed");var N=new PDFPageProxy(E,T,f,f._params.ownerDocument,f._params.pdfBug);return f.pageCache[E]=N,N});return this.pagePromises[E]=P,P}},{key:"getPageIndex",value:function(h){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:h}).catch(function(f){return Promise.reject(new Error(f))})}},{key:"getAnnotations",value:function(h,f){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:h,intent:f})}},{key:"saveDocument",value:function(){var h,f,E=this;return this.messageHandler.sendWithPromise("SaveDocument",{numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:(h=(f=this._fullReader)===null||f===void 0?void 0:f.filename)!==null&&h!==void 0?h:null}).finally(function(){E.annotationStorage.resetModified()})}},{key:"getFieldObjects",value:function(){return this.messageHandler.sendWithPromise("GetFieldObjects",null)}},{key:"hasJSActions",value:function(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(h){return typeof h!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:h})}},{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:"getDocJSActions",value:function(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}},{key:"getPageJSActions",value:function(h){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:h})}},{key:"getPageXfa",value:function(h){return this.messageHandler.sendWithPromise("GetPageXfa",{pageIndex:h})}},{key:"getStructTree",value:function(h){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:h})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(function(h){return new _optional_content_config.OptionalContentConfig(h)})}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var h=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(f){var E,P,T,N;return{info:f[0],metadata:f[1]?new _metadata.Metadata(f[1]):null,contentDispositionFilename:(E=(P=h._fullReader)===null||P===void 0?void 0:P.filename)!==null&&E!==void 0?E:null,contentLength:(T=(N=h._fullReader)===null||N===void 0?void 0:N.contentLength)!==null&&T!==void 0?T:null}})}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:(_=_asyncToGenerator(_regenerator.default.mark(function h(){var f,E,P,T,N=arguments;return _regenerator.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return f=N.length>0&&N[0]!==void 0&&N[0],j.next=3,this.messageHandler.sendWithPromise("Cleanup",null);case 3:if(!this.destroyed){j.next=5;break}return j.abrupt("return");case 5:E=0,P=this.pageCache.length;case 6:if(!(E<P)){j.next=16;break}if(T=this.pageCache[E]){j.next=10;break}return j.abrupt("continue",13);case 10:if(T.cleanup()){j.next=13;break}throw new Error("startCleanup: Page ".concat(E+1," is currently rendering."));case 13:E++,j.next=6;break;case 16:this.commonObjs.clear(),f||this.fontLoader.clear(),this._hasJSActionsPromise=null;case 19:case"end":return j.stop()}},h,this)})),function(){return _.apply(this,arguments)})},{key:"loadingParams",get:function(){var h=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:h.disableAutoFetch,disableFontFace:h.disableFontFace})}}]),L}(),PDFObjects=function(){function L(){_classCallCheck(this,L),this._objs=Object.create(null)}return _createClass(L,[{key:"_ensureObj",value:function(_){return this._objs[_]?this._objs[_]:this._objs[_]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(h)return this._ensureObj(_).capability.promise.then(h),null;var f=this._objs[_];if(!f||!f.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(_,"."));return f.data}},{key:"has",value:function(_){var h=this._objs[_];return(h==null?void 0:h.resolved)||!1}},{key:"resolve",value:function(_,h){var f=this._ensureObj(_);f.resolved=!0,f.data=h,f.capability.resolve(h)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),L}(),RenderTask=function(){function L(_){_classCallCheck(this,L),this._internalRenderTask=_,this.onContinue=null}return _createClass(L,[{key:"promise",get:function(){return this._internalRenderTask.capability.promise}},{key:"cancel",value:function(){this._internalRenderTask.cancel()}}]),L}(),InternalRenderTask=function(){var L=new WeakSet,_=function(){function h(E){var P=E.callback,T=E.params,N=E.objs,j=E.commonObjs,x=E.operatorList,M=E.pageIndex,D=E.canvasFactory,C=E.useRequestAnimationFrame,U=C!==void 0&&C,J=E.pdfBug,H=J!==void 0&&J;_classCallCheck(this,h),this.callback=P,this.params=T,this.objs=N,this.commonObjs=j,this.operatorListIdx=null,this.operatorList=x,this._pageIndex=M,this.canvasFactory=D,this._pdfBug=H,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=U===!0&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=T.canvasContext.canvas}var f;return _createClass(h,[{key:"completed",get:function(){return this.capability.promise.catch(function(){})}},{key:"initializeGraphics",value:function(E){var P,T=E.transparency,N=T!==void 0&&T,j=E.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(L.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.");L.add(this._canvas)}this._pdfBug&&(P=globalThis.StepperManager)!==null&&P!==void 0&&P.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var x=this.params,M=x.canvasContext,D=x.viewport,C=x.transform,U=x.imageLayer,J=x.background;this.gfx=new _canvas.CanvasGraphics(M,this.commonObjs,this.objs,this.canvasFactory,U,j),this.gfx.beginDrawing({transform:C,viewport:D,transparency:N,background:J}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&L.delete(this._canvas),this.callback(E||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._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:(f=_asyncToGenerator(_regenerator.default.mark(function E(){return _regenerator.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(!this.cancelled){P.next=2;break}return P.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&&L.delete(this._canvas),this.callback()));case 4:case"end":return P.stop()}},E,this)})),function(){return f.apply(this,arguments)})}]),h}();return _}(),version="2.9.359";exports.version=version;var build="e667c8cbc";exports.build=build},(L,_,h)=>{function f(v){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},f(v)}Object.defineProperty(_,"__esModule",{value:!0}),_.FontLoader=_.FontFaceObject=void 0;var E,P=(E=h(2))&&E.__esModule?E:{default:E},T=h(4);function N(v,d){return N=Object.setPrototypeOf||function(y,m){return y.__proto__=m,y},N(v,d)}function j(v){var d=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var y,m=M(v);if(d){var c=M(this).constructor;y=Reflect.construct(m,arguments,c)}else y=m.apply(this,arguments);return x(this,y)}}function x(v,d){return!d||f(d)!=="object"&&typeof d!="function"?function(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(v):d}function M(v){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},M(v)}function D(v,d,y,m,c,l,a){try{var e=v[l](a),t=e.value}catch(s){return void y(s)}e.done?d(t):Promise.resolve(t).then(m,c)}function C(v,d){var y=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!y){if(Array.isArray(v)||(y=function(t,s){if(t){if(typeof t=="string")return U(t,s);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(t,s):void 0}}(v))||d&&v&&typeof v.length=="number"){y&&(v=y);var m=0,c=function(){};return{s:c,n:function(){return m>=v.length?{done:!0}:{done:!1,value:v[m++]}},e:function(t){throw t},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,a=!0,e=!1;return{s:function(){y=y.call(v)},n:function(){var t=y.next();return a=t.done,t},e:function(t){e=!0,l=t},f:function(){try{a||y.return==null||y.return()}finally{if(e)throw l}}}}function U(v,d){(d==null||d>v.length)&&(d=v.length);for(var y=0,m=new Array(d);y<d;y++)m[y]=v[y];return m}function J(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")}function H(v,d){for(var y=0;y<d.length;y++){var m=d[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}function $(v,d,y){return d&&H(v.prototype,d),y&&H(v,y),v}var B,F=function(){function v(m){var c=m.docId,l=m.onUnsupportedFeature,a=m.ownerDocument,e=a===void 0?globalThis.document:a;J(this,v),this.constructor===v&&(0,T.unreachable)("Cannot initialize BaseFontLoader."),this.docId=c,this._onUnsupportedFeature=l,this._document=e,this.nativeFontFaces=[],this.styleElement=null}var d,y;return $(v,[{key:"addNativeFontFace",value:function(m){this.nativeFontFaces.push(m),this._document.fonts.add(m)}},{key:"insertRule",value:function(m){var c=this.styleElement;c||((c=this.styleElement=this._document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].appendChild(c));var l=c.sheet;l.insertRule(m,l.cssRules.length)}},{key:"clear",value:function(){var m,c=C(this.nativeFontFaces);try{for(c.s();!(m=c.n()).done;){var l=m.value;this._document.fonts.delete(l)}}catch(a){c.e(a)}finally{c.f()}this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:(d=P.default.mark(function m(c){var l,a,e=this;return P.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!c.attached&&!c.missingFile){t.next=2;break}return t.abrupt("return");case 2:if(c.attached=!0,!this.isFontLoadingAPISupported){t.next=19;break}if(!(l=c.createNativeFontFace())){t.next=18;break}return this.addNativeFontFace(l),t.prev=7,t.next=10,l.loaded;case 10:t.next=18;break;case 12:throw t.prev=12,t.t0=t.catch(7),this._onUnsupportedFeature({featureId:T.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,T.warn)("Failed to load font '".concat(l.family,"': '").concat(t.t0,"'.")),c.disableFontFace=!0,t.t0;case 18:return t.abrupt("return");case 19:if(!(a=c.createFontFaceRule())){t.next=26;break}if(this.insertRule(a),!this.isSyncFontLoadingSupported){t.next=24;break}return t.abrupt("return");case 24:return t.next=26,new Promise(function(s){var r=e._queueLoadingCallback(s);e._prepareFontLoadEvent([a],[c],r)});case 26:case"end":return t.stop()}},m,this,[[7,12]])}),y=function(){var m=this,c=arguments;return new Promise(function(l,a){var e=d.apply(m,c);function t(r){D(e,l,a,t,s,"next",r)}function s(r){D(e,l,a,t,s,"throw",r)}t(void 0)})},function(m){return y.apply(this,arguments)})},{key:"_queueLoadingCallback",value:function(m){(0,T.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"isFontLoadingAPISupported",get:function(){var m;return(0,T.shadow)(this,"isFontLoadingAPISupported",!((m=this._document)===null||m===void 0||!m.fonts))}},{key:"isSyncFontLoadingSupported",get:function(){(0,T.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,T.unreachable)("Abstract method `_loadTestFont`.")}},{key:"_prepareFontLoadEvent",value:function(m,c,l){(0,T.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}]),v}();_.FontLoader=B,_.FontLoader=B=function(v){(function(m,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(c&&c.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),c&&N(m,c)})(y,v);var d=j(y);function y(m){var c;return J(this,y),(c=d.call(this,m)).loadingContext={requests:[],nextRequestId:0},c.loadTestFontId=0,c}return $(y,[{key:"isSyncFontLoadingSupported",get:function(){var m=!1;if(typeof navigator>"u")m=!0;else{var c=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(c==null?void 0:c[1])>=14&&(m=!0)}return(0,T.shadow)(this,"isSyncFontLoadingSupported",m)}},{key:"_queueLoadingCallback",value:function(m){var c=this.loadingContext,l={id:"pdfjs-font-loading-".concat(c.nextRequestId++),done:!1,complete:function(){for((0,T.assert)(!l.done,"completeRequest() cannot be called twice."),l.done=!0;c.requests.length>0&&c.requests[0].done;){var a=c.requests.shift();setTimeout(a.callback,0)}},callback:m};return c.requests.push(l),l}},{key:"_loadTestFont",get:function(){return(0,T.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}},{key:"_prepareFontLoadEvent",value:function(m,c,l){var a,e,t=this;function s(Z,K){return Z.charCodeAt(K)<<24|Z.charCodeAt(K+1)<<16|Z.charCodeAt(K+2)<<8|255&Z.charCodeAt(K+3)}function r(Z,K,V,q){return Z.substring(0,K)+q+Z.substring(K+V)}var p=this._document.createElement("canvas");p.width=1,p.height=1;var k=p.getContext("2d"),w=0,b="lt".concat(Date.now()).concat(this.loadTestFontId++),i=this._loadTestFont,o=1482184792,u=s(i=r(i,976,b.length,b),16);for(a=0,e=b.length-3;a<e;a+=4)u=u-o+s(b,a)|0;a<b.length&&(u=u-o+s(b+"XXX",a)|0),i=r(i,16,4,(0,T.string32)(u));var A="url(data:font/opentype;base64,".concat(btoa(i),");"),I='@font-face {font-family:"'.concat(b,'";src:').concat(A,"}");this.insertRule(I);var O,R=[],G=C(c);try{for(G.s();!(O=G.n()).done;){var Y=O.value;R.push(Y.loadedName)}}catch(Z){G.e(Z)}finally{G.f()}R.push(b);var W=this._document.createElement("div");W.style.visibility="hidden",W.style.width=W.style.height="10px",W.style.position="absolute",W.style.top=W.style.left="0px";for(var z=0,ee=R;z<ee.length;z++){var te=ee[z],ae=this._document.createElement("span");ae.textContent="Hi",ae.style.fontFamily=te,W.appendChild(ae)}this._document.body.appendChild(W),function Z(K,V){if(++w>30)return(0,T.warn)("Load test font never loaded."),void V();k.font="30px "+K,k.fillText(".",0,20),k.getImageData(0,0,1,1).data[3]>0?V():setTimeout(Z.bind(null,K,V))}(b,function(){t._document.body.removeChild(W),l.complete()})}}]),y}(F);var g=function(){function v(d,y){var m=y.isEvalSupported,c=m===void 0||m,l=y.disableFontFace,a=l!==void 0&&l,e=y.ignoreErrors,t=e!==void 0&&e,s=y.onUnsupportedFeature,r=y.fontRegistry,p=r===void 0?null:r;for(var k in J(this,v),this.compiledGlyphs=Object.create(null),d)this[k]=d[k];this.isEvalSupported=c!==!1,this.disableFontFace=a===!0,this.ignoreErrors=t===!0,this._onUnsupportedFeature=s,this.fontRegistry=p}return $(v,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var d;if(this.cssFontInfo){var y={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(y.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),d=new FontFace(this.cssFontInfo.fontFamily,this.data,y)}else d=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),d}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var d,y=(0,T.bytesToString)(this.data),m="url(data:".concat(this.mimetype,";base64,").concat(btoa(y),");");if(this.cssFontInfo){var c="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(c+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),d='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(c,"src:").concat(m,"}")}else d='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(m,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,m),d}},{key:"getPathGenerator",value:function(d,y){if(this.compiledGlyphs[y]!==void 0)return this.compiledGlyphs[y];var m;try{m=d.get(this.loadedName+"_path_"+y)}catch(s){if(!this.ignoreErrors)throw s;return this._onUnsupportedFeature({featureId:T.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,T.warn)('getPathGenerator - ignoring character: "'.concat(s,'".')),this.compiledGlyphs[y]=function(r,p){}}if(this.isEvalSupported&&T.IsEvalSupportedCached.value){var c,l=[],a=C(m);try{for(a.s();!(c=a.n()).done;){var e=c.value,t=e.args!==void 0?e.args.join(","):"";l.push("c.",e.cmd,"(",t,`);
- `)}}catch(s){a.e(s)}finally{a.f()}return this.compiledGlyphs[y]=new Function("c","size",l.join(""))}return this.compiledGlyphs[y]=function(s,r){var p,k=C(m);try{for(k.s();!(p=k.n()).done;){var w=p.value;w.cmd==="scale"&&(w.args=[r,-r]),s[w.cmd].apply(s,w.args)}}catch(b){k.e(b)}finally{k.f()}}}}]),v}();_.FontFaceObject=g},(L,_,h)=>{function f(B){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},f(B)}Object.defineProperty(_,"__esModule",{value:!0}),_.NodeCMapReaderFactory=_.NodeCanvasFactory=void 0;var E=h(1),P=h(6),T=h(4);function N(B,F){for(var g=0;g<F.length;g++){var v=F[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(B,v.key,v)}}function j(B,F,g){return F&&N(B.prototype,F),g&&N(B,g),B}function x(B,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(F&&F.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),F&&M(B,F)}function M(B,F){return M=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},M(B,F)}function D(B){var F=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var g,v=U(B);if(F){var d=U(this).constructor;g=Reflect.construct(v,arguments,d)}else g=v.apply(this,arguments);return C(this,g)}}function C(B,F){return!F||f(F)!=="object"&&typeof F!="function"?function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(B):F}function U(B){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},U(B)}function J(B,F){if(!(B instanceof F))throw new TypeError("Cannot call a class as a function")}var H=function B(){J(this,B),(0,T.unreachable)("Not implemented: NodeCanvasFactory")};_.NodeCanvasFactory=H;var $=function B(){J(this,B),(0,T.unreachable)("Not implemented: NodeCMapReaderFactory")};_.NodeCMapReaderFactory=$,P.isNodeJS&&(_.NodeCanvasFactory=H=function(B){x(g,B);var F=D(g);function g(){return J(this,g),F.apply(this,arguments)}return j(g,[{key:"create",value:function(v,d){if(v<=0||d<=0)throw new Error("Invalid canvas size");var y=__webpack_require__(601).createCanvas(v,d);return{canvas:y,context:y.getContext("2d")}}}]),g}(E.BaseCanvasFactory),_.NodeCMapReaderFactory=$=function(B){x(g,B);var F=D(g);function g(){return J(this,g),F.apply(this,arguments)}return j(g,[{key:"_fetchData",value:function(v,d){return new Promise(function(y,m){__webpack_require__(767).readFile(v,function(c,l){!c&&l?y({cMapData:new Uint8Array(l),compressionType:d}):m(new Error(c))})})}}]),g}(E.BaseCMapReaderFactory))},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.AnnotationStorage=void 0;var f=h(4);function E(j,x){return function(M){if(Array.isArray(M))return M}(j)||function(M,D){var C=M&&(typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"]);if(C!=null){var U,J,H=[],$=!0,B=!1;try{for(C=C.call(M);!($=(U=C.next()).done)&&(H.push(U.value),!D||H.length!==D);$=!0);}catch(F){B=!0,J=F}finally{try{$||C.return==null||C.return()}finally{if(B)throw J}}return H}}(j,x)||function(M,D){if(M){if(typeof M=="string")return P(M,D);var C=Object.prototype.toString.call(M).slice(8,-1);return C==="Object"&&M.constructor&&(C=M.constructor.name),C==="Map"||C==="Set"?Array.from(M):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?P(M,D):void 0}}(j,x)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P(j,x){(x==null||x>j.length)&&(x=j.length);for(var M=0,D=new Array(x);M<x;M++)D[M]=j[M];return D}function T(j,x){for(var M=0;M<x.length;M++){var D=x[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(j,D.key,D)}}var N=function(){function j(){(function(D,C){if(!(D instanceof C))throw new TypeError("Cannot call a class as a function")})(this,j),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}var x,M;return x=j,(M=[{key:"getValue",value:function(D,C){var U=this._storage.get(D);return U!==void 0?U:C}},{key:"setValue",value:function(D,C){var U=this._storage.get(D),J=!1;if(U!==void 0)for(var H=0,$=Object.entries(C);H<$.length;H++){var B=E($[H],2),F=B[0],g=B[1];U[F]!==g&&(J=!0,U[F]=g)}else this._storage.set(D,C),J=!0;J&&this._setModified()}},{key:"getAll",value:function(){return this._storage.size>0?(0,f.objectFromMap)(this._storage):null}},{key:"size",get:function(){return this._storage.size}},{key:"_setModified",value:function(){this._modified||(this._modified=!0,typeof this.onSetModified=="function"&&this.onSetModified())}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,typeof this.onResetModified=="function"&&this.onResetModified())}},{key:"serializable",get:function(){return this._storage.size>0?this._storage:null}}])&&T(x.prototype,M),j}();_.AnnotationStorage=N},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.apiCompatibilityParams=void 0;var f=h(6),E=Object.create(null);f.isNodeJS&&(E.disableFontFace=!0);var P=Object.freeze(E);_.apiCompatibilityParams=P},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.CanvasGraphics=void 0;var f=h(4),E=h(119);function P(g){return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},P(g)}function T(g,v){var d=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!d){if(Array.isArray(g)||(d=D(g))||v&&g&&typeof g.length=="number"){d&&(g=d);var y=0,m=function(){};return{s:m,n:function(){return y>=g.length?{done:!0}:{done:!1,value:g[y++]}},e:function(e){throw e},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,l=!0,a=!1;return{s:function(){d=d.call(g)},n:function(){var e=d.next();return l=e.done,e},e:function(e){a=!0,c=e},f:function(){try{l||d.return==null||d.return()}finally{if(a)throw c}}}}function N(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function j(g,v){for(var d=0;d<v.length;d++){var y=v[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}function x(g,v,d){return v&&j(g.prototype,v),d&&j(g,d),g}function M(g,v){return function(d){if(Array.isArray(d))return d}(g)||function(d,y){var m=d&&(typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"]);if(m!=null){var c,l,a=[],e=!0,t=!1;try{for(m=m.call(d);!(e=(c=m.next()).done)&&(a.push(c.value),!y||a.length!==y);e=!0);}catch(s){t=!0,l=s}finally{try{e||m.return==null||m.return()}finally{if(t)throw l}}return a}}(g,v)||D(g,v)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D(g,v){if(g){if(typeof g=="string")return C(g,v);var d=Object.prototype.toString.call(g).slice(8,-1);return d==="Object"&&g.constructor&&(d=g.constructor.name),d==="Map"||d==="Set"?Array.from(g):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?C(g,v):void 0}}function C(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,y=new Array(v);d<v;d++)y[d]=g[d];return y}var U=4096,J=16;function H(g){if(!g.mozCurrentTransform){g._originalSave=g.save,g._originalRestore=g.restore,g._originalRotate=g.rotate,g._originalScale=g.scale,g._originalTranslate=g.translate,g._originalTransform=g.transform,g._originalSetTransform=g.setTransform,g._originalResetTransform=g.resetTransform,g._transformMatrix=g._transformMatrix||[1,0,0,1,0,0],g._transformStack=[];try{var v=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(g),"lineWidth");g._setLineWidth=v.set,g._getLineWidth=v.get,Object.defineProperty(g,"lineWidth",{set:function(d){this._setLineWidth(1.000001*d)},get:function(){return this._getLineWidth()}})}catch{}Object.defineProperty(g,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(g,"mozCurrentTransformInverse",{get:function(){var d=M(this._transformMatrix,6),y=d[0],m=d[1],c=d[2],l=d[3],a=d[4],e=d[5],t=y*l-m*c,s=m*c-y*l;return[l/t,m/s,c/s,y/t,(l*a-c*e)/s,(m*a-y*e)/t]}}),g.save=function(){var d=this._transformMatrix;this._transformStack.push(d),this._transformMatrix=d.slice(0,6),this._originalSave()},g.restore=function(){var d=this._transformStack.pop();d&&(this._transformMatrix=d,this._originalRestore())},g.translate=function(d,y){var m=this._transformMatrix;m[4]=m[0]*d+m[2]*y+m[4],m[5]=m[1]*d+m[3]*y+m[5],this._originalTranslate(d,y)},g.scale=function(d,y){var m=this._transformMatrix;m[0]=m[0]*d,m[1]=m[1]*d,m[2]=m[2]*y,m[3]=m[3]*y,this._originalScale(d,y)},g.transform=function(d,y,m,c,l,a){var e=this._transformMatrix;this._transformMatrix=[e[0]*d+e[2]*y,e[1]*d+e[3]*y,e[0]*m+e[2]*c,e[1]*m+e[3]*c,e[0]*l+e[2]*a+e[4],e[1]*l+e[3]*a+e[5]],g._originalTransform(d,y,m,c,l,a)},g.setTransform=function(d,y,m,c,l,a){this._transformMatrix=[d,y,m,c,l,a],g._originalSetTransform(d,y,m,c,l,a)},g.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],g._originalResetTransform()},g.rotate=function(d){var y=Math.cos(d),m=Math.sin(d),c=this._transformMatrix;this._transformMatrix=[c[0]*y+c[2]*m,c[1]*y+c[3]*m,c[0]*-m+c[2]*y,c[1]*-m+c[3]*y,c[4],c[5]],this._originalRotate(d)}}}var $=function(){function g(v){N(this,g),this.canvasFactory=v,this.cache=Object.create(null)}return x(g,[{key:"getCanvas",value:function(v,d,y,m){var c;return this.cache[v]!==void 0?(c=this.cache[v],this.canvasFactory.reset(c,d,y),c.context.setTransform(1,0,0,1,0,0)):(c=this.canvasFactory.create(d,y),this.cache[v]=c),m&&H(c.context),c}},{key:"clear",value:function(){for(var v in this.cache){var d=this.cache[v];this.canvasFactory.destroy(d),delete this.cache[v]}}}]),g}(),B=function(){function g(){N(this,g),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=f.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=f.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=f.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null,this.transferMaps=null}return x(g,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(v,d){this.x=v,this.y=d}}]),g}(),F=function(){function g(w,b){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(typeof ImageData<"u"&&b instanceof ImageData)w.putImageData(b,0,0);else{var o,u,A,I,O,R,G,Y,W,z=b.height,ee=b.width,te=z%J,ae=(z-te)/J,Z=te===0?ae:ae+1,K=w.createImageData(ee,J),V=0,q=b.data,Q=K.data;if(i)switch(i.length){case 1:R=i[0],G=i[0],Y=i[0],W=i[0];break;case 4:R=i[0],G=i[1],Y=i[2],W=i[3]}if(b.kind===f.ImageKind.GRAYSCALE_1BPP){var re=q.byteLength,ne=new Uint32Array(Q.buffer,0,Q.byteLength>>2),se=ne.length,ue=ee+7>>3,he=4294967295,pe=f.IsLittleEndianCached.value?4278190080:255;if(W&&W[0]===255&&W[255]===0){var me=[pe,he];he=me[0],pe=me[1]}for(u=0;u<Z;u++){for(I=u<ae?J:te,o=0,A=0;A<I;A++){for(var fe=re-V,ge=0,de=fe>ue?ee:8*fe-7,oe=-8&de,le=0,ve=0;ge<oe;ge+=8)ve=q[V++],ne[o++]=128&ve?he:pe,ne[o++]=64&ve?he:pe,ne[o++]=32&ve?he:pe,ne[o++]=16&ve?he:pe,ne[o++]=8&ve?he:pe,ne[o++]=4&ve?he:pe,ne[o++]=2&ve?he:pe,ne[o++]=1&ve?he:pe;for(;ge<de;ge++)le===0&&(ve=q[V++],le=128),ne[o++]=ve&le?he:pe,le>>=1}for(;o<se;)ne[o++]=0;w.putImageData(K,0,u*J)}}else if(b.kind===f.ImageKind.RGBA_32BPP){var be=!!(R||G||Y);for(A=0,O=ee*J*4,u=0;u<ae;u++){if(Q.set(q.subarray(V,V+O)),V+=O,be)for(var ke=0;ke<O;ke+=4)R&&(Q[ke+0]=R[Q[ke+0]]),G&&(Q[ke+1]=G[Q[ke+1]]),Y&&(Q[ke+2]=Y[Q[ke+2]]);w.putImageData(K,0,A),A+=J}if(u<Z){if(O=ee*te*4,Q.set(q.subarray(V,V+O)),be)for(var _e=0;_e<O;_e+=4)R&&(Q[_e+0]=R[Q[_e+0]]),G&&(Q[_e+1]=G[Q[_e+1]]),Y&&(Q[_e+2]=Y[Q[_e+2]]);w.putImageData(K,0,A)}}else{if(b.kind!==f.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(b.kind));var xe=!!(R||G||Y);for(O=ee*(I=J),u=0;u<Z;u++){for(u>=ae&&(O=ee*(I=te)),o=0,A=O;A--;)Q[o++]=q[V++],Q[o++]=q[V++],Q[o++]=q[V++],Q[o++]=255;if(xe)for(var Ae=0;Ae<o;Ae+=4)R&&(Q[Ae+0]=R[Q[Ae+0]]),G&&(Q[Ae+1]=G[Q[Ae+1]]),Y&&(Q[Ae+2]=Y[Q[Ae+2]]);w.putImageData(K,0,u*J)}}}}function v(w,b){for(var i=b.height,o=b.width,u=i%J,A=(i-u)/J,I=u===0?A:A+1,O=w.createImageData(o,J),R=0,G=b.data,Y=O.data,W=0;W<I;W++){for(var z=W<A?J:u,ee=3,te=0;te<z;te++)for(var ae=void 0,Z=0,K=0;K<o;K++)Z||(ae=G[R++],Z=128),Y[ee]=ae&Z?0:255,ee+=4,Z>>=1;w.putImageData(O,0,W*J)}}function d(w,b){for(var i=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],o=0,u=i.length;o<u;o++){var A=i[o];w[A]!==void 0&&(b[A]=w[A])}w.setLineDash!==void 0&&(b.setLineDash(w.getLineDash()),b.lineDashOffset=w.lineDashOffset)}function y(w){w.strokeStyle="#000000",w.fillStyle="#000000",w.fillRule="nonzero",w.globalAlpha=1,w.lineWidth=1,w.lineCap="butt",w.lineJoin="miter",w.miterLimit=10,w.globalCompositeOperation="source-over",w.font="10px sans-serif",w.setLineDash!==void 0&&(w.setLineDash([]),w.lineDashOffset=0)}function m(w,b,i,o){for(var u=w.length,A=3;A<u;A+=4){var I=w[A];if(I===0)w[A-3]=b,w[A-2]=i,w[A-1]=o;else if(I<255){var O=255-I;w[A-3]=w[A-3]*I+b*O>>8,w[A-2]=w[A-2]*I+i*O>>8,w[A-1]=w[A-1]*I+o*O>>8}}}function c(w,b,i){for(var o=w.length,u=3;u<o;u+=4){var A=i?i[w[u]]:w[u];b[u]=b[u]*A*.00392156862745098|0}}function l(w,b,i){for(var o=w.length,u=3;u<o;u+=4){var A=77*w[u-3]+152*w[u-2]+28*w[u-1];b[u]=i?b[u]*i[A>>8]>>8:b[u]*A>>16}}function a(w,b,i){var o=b.canvas,u=b.context;w.setTransform(b.scaleX,0,0,b.scaleY,b.offsetX,b.offsetY),function(A,I,O,R,G,Y,W){var z,ee=!!Y,te=ee?Y[0]:0,ae=ee?Y[1]:0,Z=ee?Y[2]:0;z=G==="Luminosity"?l:c;for(var K=Math.min(R,Math.ceil(1048576/O)),V=0;V<R;V+=K){var q=Math.min(K,R-V),Q=A.getImageData(0,V,O,q),re=I.getImageData(0,V,O,q);ee&&m(Q.data,te,ae,Z),z(Q.data,re.data,W),A.putImageData(re,0,V)}}(u,i,o.width,o.height,b.subtype,b.backdrop,b.transferMap),w.drawImage(o,0,0)}var e=["butt","round","square"],t=["miter","round","bevel"],s={},r={},p=function(){function w(b,i,o,u,A,I){N(this,w),this.ctx=b,this.current=new B,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=i,this.objs=o,this.canvasFactory=u,this.imageLayer=A,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=I,this.cachedCanvases=new $(this.canvasFactory),b&&H(b),this._cachedGetSinglePixelWidth=null}return x(w,[{key:"beginDrawing",value:function(b){var i=b.transform,o=b.viewport,u=b.transparency,A=u!==void 0&&u,I=b.background,O=I===void 0?null:I,R=this.ctx.canvas.width,G=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=O||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,R,G),this.ctx.restore(),A){var Y=this.cachedCanvases.getCanvas("transparent",R,G,!0);this.compositeCtx=this.ctx,this.transparentCanvas=Y.canvas,this.ctx=Y.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),y(this.ctx),i&&this.ctx.transform.apply(this.ctx,i),this.ctx.transform.apply(this.ctx,o.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this._combinedScaleFactor=Math.hypot(this.baseTransform[0],this.baseTransform[2]),this.imageLayer&&this.imageLayer.beginLayout()}},{key:"executeOperatorList",value:function(b,i,o,u){var A=b.argsArray,I=b.fnArray,O=i||0,R=A.length;if(R===O)return O;for(var G,Y=R-O>10&&typeof o=="function",W=Y?Date.now()+15:0,z=0,ee=this.commonObjs,te=this.objs;;){if(u!==void 0&&O===u.nextBreakPoint)return u.breakIt(O,o),O;if((G=I[O])!==f.OPS.dependency)this[G].apply(this,A[O]);else{var ae,Z=T(A[O]);try{for(Z.s();!(ae=Z.n()).done;){var K=ae.value,V=K.startsWith("g_")?ee:te;if(!V.has(K))return V.get(K,o),O}}catch(q){Z.e(q)}finally{Z.f()}}if(++O===R)return O;if(Y&&++z>10){if(Date.now()>W)return o(),O;z=0}}}},{key:"endDrawing",value:function(){for(;this.stateStack.length||this.current.activeSMask!==null;)this.restore();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.imageLayer&&this.imageLayer.endLayout()}},{key:"setLineWidth",value:function(b){this.current.lineWidth=b,this.ctx.lineWidth=b}},{key:"setLineCap",value:function(b){this.ctx.lineCap=e[b]}},{key:"setLineJoin",value:function(b){this.ctx.lineJoin=t[b]}},{key:"setMiterLimit",value:function(b){this.ctx.miterLimit=b}},{key:"setDash",value:function(b,i){var o=this.ctx;o.setLineDash!==void 0&&(o.setLineDash(b),o.lineDashOffset=i)}},{key:"setRenderingIntent",value:function(b){}},{key:"setFlatness",value:function(b){}},{key:"setGState",value:function(b){for(var i=0,o=b.length;i<o;i++){var u=b[i],A=u[0],I=u[1];switch(A){case"LW":this.setLineWidth(I);break;case"LC":this.setLineCap(I);break;case"LJ":this.setLineJoin(I);break;case"ML":this.setMiterLimit(I);break;case"D":this.setDash(I[0],I[1]);break;case"RI":this.setRenderingIntent(I);break;case"FL":this.setFlatness(I);break;case"Font":this.setFont(I[0],I[1]);break;case"CA":this.current.strokeAlpha=u[1];break;case"ca":this.current.fillAlpha=u[1],this.ctx.globalAlpha=u[1];break;case"BM":this.ctx.globalCompositeOperation=I;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=I?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=I}}}},{key:"beginSMaskGroup",value:function(){var b=this.current.activeSMask,i=b.canvas.width,o=b.canvas.height,u="smaskGroupAt"+this.groupLevel,A=this.cachedCanvases.getCanvas(u,i,o,!0),I=this.ctx,O=I.mozCurrentTransform;this.ctx.save();var R=A.context;R.scale(1/b.scaleX,1/b.scaleY),R.translate(-b.offsetX,-b.offsetY),R.transform.apply(R,O),b.startTransformInverse=R.mozCurrentTransformInverse,d(I,R),this.ctx=R,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(I),this.groupLevel++}},{key:"suspendSMaskGroup",value:function(){var b=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),a(this.ctx,this.current.activeSMask,b),this.ctx.restore(),this.ctx.save(),d(b,this.ctx),this.current.resumeSMaskCtx=b;var i=f.Util.transform(this.current.activeSMask.startTransformInverse,b.mozCurrentTransform);this.ctx.transform.apply(this.ctx,i),b.save(),b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,b.canvas.width,b.canvas.height),b.restore()}},{key:"resumeSMaskGroup",value:function(){var b=this.current.resumeSMaskCtx,i=this.ctx;this.ctx=b,this.groupStack.push(i),this.groupLevel++}},{key:"endSMaskGroup",value:function(){var b=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),a(this.ctx,this.current.activeSMask,b),this.ctx.restore(),d(b,this.ctx);var i=f.Util.transform(this.current.activeSMask.startTransformInverse,b.mozCurrentTransform);this.ctx.transform.apply(this.ctx,i)}},{key:"save",value:function(){this.ctx.save();var b=this.current;this.stateStack.push(b),this.current=b.clone(),this.current.resumeSMaskCtx=null}},{key:"restore",value:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),this.current.activeSMask===null||this.stateStack.length!==0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),this.stateStack.length!==0?(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null):this.current.activeSMask=null}},{key:"transform",value:function(b,i,o,u,A,I){this.ctx.transform(b,i,o,u,A,I),this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(b,i){for(var o=this.ctx,u=this.current,A=u.x,I=u.y,O=0,R=0,G=b.length;O<G;O++)switch(0|b[O]){case f.OPS.rectangle:A=i[R++],I=i[R++];var Y=i[R++],W=i[R++],z=A+Y,ee=I+W;o.moveTo(A,I),Y===0||W===0?o.lineTo(z,ee):(o.lineTo(z,I),o.lineTo(z,ee),o.lineTo(A,ee)),o.closePath();break;case f.OPS.moveTo:A=i[R++],I=i[R++],o.moveTo(A,I);break;case f.OPS.lineTo:A=i[R++],I=i[R++],o.lineTo(A,I);break;case f.OPS.curveTo:A=i[R+4],I=i[R+5],o.bezierCurveTo(i[R],i[R+1],i[R+2],i[R+3],A,I),R+=6;break;case f.OPS.curveTo2:o.bezierCurveTo(A,I,i[R],i[R+1],i[R+2],i[R+3]),A=i[R+2],I=i[R+3],R+=4;break;case f.OPS.curveTo3:A=i[R+2],I=i[R+3],o.bezierCurveTo(i[R],i[R+1],A,I,A,I),R+=4;break;case f.OPS.closePath:o.closePath()}u.setCurrentPoint(A,I)}},{key:"closePath",value:function(){this.ctx.closePath()}},{key:"stroke",value:function(b){b=b===void 0||b;var i=this.ctx,o=this.current.strokeColor;if(i.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(P(o)==="object"&&o!=null&&o.getPattern){var u=this.getSinglePixelWidth();i.save(),i.strokeStyle=o.getPattern(i,this),i.lineWidth=Math.max(u,this.current.lineWidth),i.stroke(),i.restore()}else{var A=this.getSinglePixelWidth();A<0&&-A>=this.current.lineWidth?(i.save(),i.resetTransform(),i.lineWidth=Math.round(this._combinedScaleFactor),i.stroke(),i.restore()):(i.lineWidth=Math.max(A,this.current.lineWidth),i.stroke())}b&&this.consumePath(),i.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(b){b=b===void 0||b;var i=this.ctx,o=this.current.fillColor,u=!1;this.current.patternFill&&(i.save(),i.fillStyle=o.getPattern(i,this),u=!0),this.contentVisible&&(this.pendingEOFill?(i.fill("evenodd"),this.pendingEOFill=!1):i.fill()),u&&i.restore(),b&&this.consumePath()}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=s}},{key:"eoClip",value:function(){this.pendingClip=r}},{key:"beginText",value:function(){this.current.textMatrix=f.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var b=this.pendingTextPaths,i=this.ctx;if(b!==void 0){i.save(),i.beginPath();for(var o=0;o<b.length;o++){var u=b[o];i.setTransform.apply(i,u.transform),i.translate(u.x,u.y),u.addToPath(i,u.fontSize)}i.restore(),i.clip(),i.beginPath(),delete this.pendingTextPaths}else i.beginPath()}},{key:"setCharSpacing",value:function(b){this.current.charSpacing=b}},{key:"setWordSpacing",value:function(b){this.current.wordSpacing=b}},{key:"setHScale",value:function(b){this.current.textHScale=b/100}},{key:"setLeading",value:function(b){this.current.leading=-b}},{key:"setFont",value:function(b,i){var o=this.commonObjs.get(b),u=this.current;if(!o)throw new Error("Can't find font for ".concat(b));if(u.fontMatrix=o.fontMatrix||f.FONT_IDENTITY_MATRIX,u.fontMatrix[0]!==0&&u.fontMatrix[3]!==0||(0,f.warn)("Invalid font matrix for font "+b),i<0?(i=-i,u.fontDirection=-1):u.fontDirection=1,this.current.font=o,this.current.fontSize=i,!o.isType3Font){var A=o.loadedName||"sans-serif",I="normal";o.black?I="900":o.bold&&(I="bold");var O=o.italic?"italic":"normal",R='"'.concat(A,'", ').concat(o.fallbackName),G=i;i<16?G=16:i>100&&(G=100),this.current.fontSizeScale=i/G,this.ctx.font="".concat(O," ").concat(I," ").concat(G,"px ").concat(R)}}},{key:"setTextRenderingMode",value:function(b){this.current.textRenderingMode=b}},{key:"setTextRise",value:function(b){this.current.textRise=b}},{key:"moveText",value:function(b,i){this.current.x=this.current.lineX+=b,this.current.y=this.current.lineY+=i}},{key:"setLeadingMoveText",value:function(b,i){this.setLeading(-i),this.moveText(b,i)}},{key:"setTextMatrix",value:function(b,i,o,u,A,I){this.current.textMatrix=[b,i,o,u,A,I],this.current.textMatrixScale=Math.hypot(b,i),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(b,i,o,u,A){var I,O=this.ctx,R=this.current,G=R.font,Y=R.textRenderingMode,W=R.fontSize/R.fontSizeScale,z=Y&f.TextRenderingMode.FILL_STROKE_MASK,ee=!!(Y&f.TextRenderingMode.ADD_TO_PATH_FLAG),te=R.patternFill&&!G.missingFile;(G.disableFontFace||ee||te)&&(I=G.getPathGenerator(this.commonObjs,b)),G.disableFontFace||te?(O.save(),O.translate(i,o),O.beginPath(),I(O,W),u&&O.setTransform.apply(O,u),z!==f.TextRenderingMode.FILL&&z!==f.TextRenderingMode.FILL_STROKE||O.fill(),z!==f.TextRenderingMode.STROKE&&z!==f.TextRenderingMode.FILL_STROKE||(A&&(O.resetTransform(),O.lineWidth=Math.round(this._combinedScaleFactor)),O.stroke()),O.restore()):(z!==f.TextRenderingMode.FILL&&z!==f.TextRenderingMode.FILL_STROKE||O.fillText(b,i,o),z!==f.TextRenderingMode.STROKE&&z!==f.TextRenderingMode.FILL_STROKE||(A?(O.save(),O.moveTo(i,o),O.resetTransform(),O.lineWidth=Math.round(this._combinedScaleFactor),O.strokeText(b,0,0),O.restore()):O.strokeText(b,i,o))),ee&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:O.mozCurrentTransform,x:i,y:o,fontSize:W,addToPath:I})}},{key:"isFontSubpixelAAEnabled",get:function(){var b=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;b.scale(1.5,1),b.fillText("I",0,10);for(var i=b.getImageData(0,0,10,10).data,o=!1,u=3;u<i.length;u+=4)if(i[u]>0&&i[u]<255){o=!0;break}return(0,f.shadow)(this,"isFontSubpixelAAEnabled",o)}},{key:"showText",value:function(b){var i=this.current,o=i.font;if(o.isType3Font)return this.showType3Text(b);var u=i.fontSize;if(u!==0){var A,I=this.ctx,O=i.fontSizeScale,R=i.charSpacing,G=i.wordSpacing,Y=i.fontDirection,W=i.textHScale*Y,z=b.length,ee=o.vertical,te=ee?1:-1,ae=o.defaultVMetrics,Z=u*i.fontMatrix[0],K=i.textRenderingMode===f.TextRenderingMode.FILL&&!o.disableFontFace&&!i.patternFill;if(I.save(),i.patternFill){I.save();var V=i.fillColor.getPattern(I,this);A=I.mozCurrentTransform,I.restore(),I.fillStyle=V}I.transform.apply(I,i.textMatrix),I.translate(i.x,i.y+i.textRise),Y>0?I.scale(W,-1):I.scale(W,1);var q=i.lineWidth,Q=!1,re=i.textMatrixScale;if(re===0||q===0){var ne=i.textRenderingMode&f.TextRenderingMode.FILL_STROKE_MASK;ne!==f.TextRenderingMode.STROKE&&ne!==f.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,Q=(q=this.getSinglePixelWidth())<0)}else q/=re;O!==1&&(I.scale(O,O),q/=O),I.lineWidth=q;var se,ue=0;for(se=0;se<z;++se){var he=b[se];if((0,f.isNum)(he))ue+=te*he*u/1e3;else{var pe=!1,me=(he.isSpace?G:0)+R,fe=he.fontChar,ge=he.accent,de=void 0,oe=void 0,le=he.width;if(ee){var ve=he.vmetric||ae,be=-(he.vmetric?ve[1]:.5*le)*Z,ke=ve[2]*Z;le=ve?-ve[0]:le,de=be/O,oe=(ue+ke)/O}else de=ue/O,oe=0;if(o.remeasure&&le>0){var _e=1e3*I.measureText(fe).width/u*O;if(le<_e&&this.isFontSubpixelAAEnabled){var xe=le/_e;pe=!0,I.save(),I.scale(xe,1),de/=xe}else le!==_e&&(de+=(le-_e)/2e3*u/O)}if(this.contentVisible&&(he.isInFont||o.missingFile)){if(K&&!ge)I.fillText(fe,de,oe);else if(this.paintChar(fe,de,oe,A,Q),ge){var Ae=de+u*ge.offset.x/O,Ee=oe-u*ge.offset.y/O;this.paintChar(ge.fontChar,Ae,Ee,A,Q)}}ue+=ee?le*Z-me*Y:le*Z+me*Y,pe&&I.restore()}}ee?i.y-=ue:i.x+=ue*W,I.restore()}}},{key:"showType3Text",value:function(b){var i,o,u,A,I=this.ctx,O=this.current,R=O.font,G=O.fontSize,Y=O.fontDirection,W=R.vertical?1:-1,z=O.charSpacing,ee=O.wordSpacing,te=O.textHScale*Y,ae=O.fontMatrix||f.FONT_IDENTITY_MATRIX,Z=b.length;if(O.textRenderingMode!==f.TextRenderingMode.INVISIBLE&&G!==0){for(this._cachedGetSinglePixelWidth=null,I.save(),I.transform.apply(I,O.textMatrix),I.translate(O.x,O.y),I.scale(te,Y),i=0;i<Z;++i)if(o=b[i],(0,f.isNum)(o))A=W*o*G/1e3,this.ctx.translate(A,0),O.x+=A*te;else{var K=(o.isSpace?ee:0)+z,V=R.charProcOperatorList[o.operatorListId];V?(this.contentVisible&&(this.processingType3=o,this.save(),I.scale(G,G),I.transform.apply(I,ae),this.executeOperatorList(V),this.restore()),u=f.Util.applyTransform([o.width,0],ae)[0]*G+K,I.translate(u,0),O.x+=u*te):(0,f.warn)('Type3 character "'.concat(o.operatorListId,'" is not available.'))}I.restore(),this.processingType3=null}}},{key:"setCharWidth",value:function(b,i){}},{key:"setCharWidthAndBounds",value:function(b,i,o,u,A,I){this.ctx.rect(o,u,A-o,I-u),this.clip(),this.endPath()}},{key:"getColorN_Pattern",value:function(b){var i,o=this;if(b[0]==="TilingPattern"){var u=b[1],A=this.baseTransform||this.ctx.mozCurrentTransform.slice(),I={createCanvasGraphics:function(O){return new w(O,o.commonObjs,o.objs,o.canvasFactory)}};i=new E.TilingPattern(b,u,this.ctx,I,A)}else i=(0,E.getShadingPattern)(b);return i}},{key:"setStrokeColorN",value:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)}},{key:"setFillColorN",value:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}},{key:"setStrokeRGBColor",value:function(b,i,o){var u=f.Util.makeHexColor(b,i,o);this.ctx.strokeStyle=u,this.current.strokeColor=u}},{key:"setFillRGBColor",value:function(b,i,o){var u=f.Util.makeHexColor(b,i,o);this.ctx.fillStyle=u,this.current.fillColor=u,this.current.patternFill=!1}},{key:"shadingFill",value:function(b){if(this.contentVisible){var i=this.ctx;this.save();var o=(0,E.getShadingPattern)(b);i.fillStyle=o.getPattern(i,this,!0);var u=i.mozCurrentTransformInverse;if(u){var A=i.canvas,I=A.width,O=A.height,R=f.Util.applyTransform([0,0],u),G=f.Util.applyTransform([0,O],u),Y=f.Util.applyTransform([I,0],u),W=f.Util.applyTransform([I,O],u),z=Math.min(R[0],G[0],Y[0],W[0]),ee=Math.min(R[1],G[1],Y[1],W[1]),te=Math.max(R[0],G[0],Y[0],W[0]),ae=Math.max(R[1],G[1],Y[1],W[1]);this.ctx.fillRect(z,ee,te-z,ae-ee)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()}}},{key:"beginInlineImage",value:function(){(0,f.unreachable)("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){(0,f.unreachable)("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(b,i){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(b)&&b.length===6&&this.transform.apply(this,b),this.baseTransform=this.ctx.mozCurrentTransform,i)){var o=i[2]-i[0],u=i[3]-i[1];this.ctx.rect(i[0],i[1],o,u),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(b){if(this.contentVisible){this.save();var i=this.ctx;b.isolated||(0,f.info)("TODO: Support non-isolated groups."),b.knockout&&(0,f.warn)("Knockout groups not supported.");var o=i.mozCurrentTransform;if(b.matrix&&i.transform.apply(i,b.matrix),!b.bbox)throw new Error("Bounding box is required.");var u=f.Util.getAxialAlignedBoundingBox(b.bbox,i.mozCurrentTransform),A=[0,0,i.canvas.width,i.canvas.height];u=f.Util.intersect(u,A)||[0,0,0,0];var I=Math.floor(u[0]),O=Math.floor(u[1]),R=Math.max(Math.ceil(u[2])-I,1),G=Math.max(Math.ceil(u[3])-O,1),Y=1,W=1;R>U&&(Y=R/U,R=U),G>U&&(W=G/U,G=U);var z="groupAt"+this.groupLevel;b.smask&&(z+="_smask_"+this.smaskCounter++%2);var ee=this.cachedCanvases.getCanvas(z,R,G,!0),te=ee.context;te.scale(1/Y,1/W),te.translate(-I,-O),te.transform.apply(te,o),b.smask?this.smaskStack.push({canvas:ee.canvas,context:te,offsetX:I,offsetY:O,scaleX:Y,scaleY:W,subtype:b.smask.subtype,backdrop:b.smask.backdrop,transferMap:b.smask.transferMap||null,startTransformInverse:null}):(i.setTransform(1,0,0,1,0,0),i.translate(I,O),i.scale(Y,W)),d(i,te),this.ctx=te,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++,this.current.activeSMask=null}}},{key:"endGroup",value:function(b){if(this.contentVisible){this.groupLevel--;var i=this.ctx;this.ctx=this.groupStack.pop(),this.ctx.imageSmoothingEnabled!==void 0?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,b.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(i.canvas,0,0),this.restore()}}},{key:"beginAnnotations",value:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}},{key:"endAnnotations",value:function(){this.restore()}},{key:"beginAnnotation",value:function(b,i,o){if(this.save(),y(this.ctx),this.current=new B,Array.isArray(b)&&b.length===4){var u=b[2]-b[0],A=b[3]-b[1];this.ctx.rect(b[0],b[1],u,A),this.clip(),this.endPath()}this.transform.apply(this,i),this.transform.apply(this,o)}},{key:"endAnnotation",value:function(){this.restore()}},{key:"paintImageMaskXObject",value:function(b){if(this.contentVisible){var i=this.ctx,o=b.width,u=b.height,A=this.current.fillColor,I=this.current.patternFill,O=this.processingType3;if(O&&O.compiled===void 0&&(O.compiled=o<=1e3&&u<=1e3?function(Y){var W,z,ee,te,ae=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),Z=Y.width,K=Y.height,V=Z+1,q=new Uint8Array(V*(K+1)),Q=Z+7&-8,re=Y.data,ne=new Uint8Array(Q*K),se=0;for(W=0,z=re.length;W<z;W++)for(var ue=re[W],he=128;he>0;)ne[se++]=ue&he?0:255,he>>=1;var pe=0;for(ne[se=0]!==0&&(q[0]=1,++pe),ee=1;ee<Z;ee++)ne[se]!==ne[se+1]&&(q[ee]=ne[se]?2:1,++pe),se++;for(ne[se]!==0&&(q[ee]=2,++pe),W=1;W<K;W++){te=W*V,ne[(se=W*Q)-Q]!==ne[se]&&(q[te]=ne[se]?1:8,++pe);var me=(ne[se]?4:0)+(ne[se-Q]?8:0);for(ee=1;ee<Z;ee++)ae[me=(me>>2)+(ne[se+1]?4:0)+(ne[se-Q+1]?8:0)]&&(q[te+ee]=ae[me],++pe),se++;if(ne[se-Q]!==ne[se]&&(q[te+ee]=ne[se]?2:4,++pe),pe>1e3)return null}for(te=W*V,ne[se=Q*(K-1)]!==0&&(q[te]=8,++pe),ee=1;ee<Z;ee++)ne[se]!==ne[se+1]&&(q[te+ee]=ne[se]?4:8,++pe),se++;if(ne[se]!==0&&(q[te+ee]=4,++pe),pe>1e3)return null;var fe=new Int32Array([0,V,-1,0,-V,0,0,0,1]),ge=[];for(W=0;pe&&W<=K;W++){for(var de=W*V,oe=de+Z;de<oe&&!q[de];)de++;if(de!==oe){var le=[de%V,W],ve=de,be=q[de];do{var ke=fe[be];do de+=ke;while(!q[de]);var _e=q[de];_e!==5&&_e!==10?(be=_e,q[de]=0):(be=_e&51*be>>4,q[de]&=be>>2|be<<2),le.push(de%V,de/V|0),q[de]||--pe}while(ve!==de);ge.push(le),--W}}return function(xe){xe.save(),xe.scale(1/Z,-1/K),xe.translate(0,-K),xe.beginPath();for(var Ae=0,Ee=ge.length;Ae<Ee;Ae++){var Fe=ge[Ae];xe.moveTo(Fe[0],Fe[1]);for(var Ne=2,Be=Fe.length;Ne<Be;Ne+=2)xe.lineTo(Fe[Ne],Fe[Ne+1])}xe.fill(),xe.beginPath(),xe.restore()}}({data:b.data,width:o,height:u}):null),O!=null&&O.compiled)O.compiled(i);else{var R=this.cachedCanvases.getCanvas("maskCanvas",o,u),G=R.context;G.save(),v(G,b),G.globalCompositeOperation="source-in",G.fillStyle=I?A.getPattern(G,this):A,G.fillRect(0,0,o,u),G.restore(),this.paintInlineImageXObject(R.canvas)}}}},{key:"paintImageMaskXObjectRepeat",value:function(b,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,A=arguments.length>4?arguments[4]:void 0,I=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var O=b.width,R=b.height,G=this.current.fillColor,Y=this.current.patternFill,W=this.cachedCanvases.getCanvas("maskCanvas",O,R),z=W.context;z.save(),v(z,b),z.globalCompositeOperation="source-in",z.fillStyle=Y?G.getPattern(z,this):G,z.fillRect(0,0,O,R),z.restore();for(var ee=this.ctx,te=0,ae=I.length;te<ae;te+=2)ee.save(),ee.transform(i,o,u,A,I[te],I[te+1]),ee.scale(1,-1),ee.drawImage(W.canvas,0,0,O,R,0,-1,1,1),ee.restore()}}},{key:"paintImageMaskXObjectGroup",value:function(b){if(this.contentVisible)for(var i=this.ctx,o=this.current.fillColor,u=this.current.patternFill,A=0,I=b.length;A<I;A++){var O=b[A],R=O.width,G=O.height,Y=this.cachedCanvases.getCanvas("maskCanvas",R,G),W=Y.context;W.save(),v(W,O),W.globalCompositeOperation="source-in",W.fillStyle=u?o.getPattern(W,this):o,W.fillRect(0,0,R,G),W.restore(),i.save(),i.transform.apply(i,O.transform),i.scale(1,-1),i.drawImage(Y.canvas,0,0,R,G,0,-1,1,1),i.restore()}}},{key:"paintImageXObject",value:function(b){if(this.contentVisible){var i=b.startsWith("g_")?this.commonObjs.get(b):this.objs.get(b);i?this.paintInlineImageXObject(i):(0,f.warn)("Dependent image isn't ready yet")}}},{key:"paintImageXObjectRepeat",value:function(b,i,o,u){if(this.contentVisible){var A=b.startsWith("g_")?this.commonObjs.get(b):this.objs.get(b);if(A){for(var I=A.width,O=A.height,R=[],G=0,Y=u.length;G<Y;G+=2)R.push({transform:[i,0,0,o,u[G],u[G+1]],x:0,y:0,w:I,h:O});this.paintInlineImageXObjectGroup(A,R)}else(0,f.warn)("Dependent image isn't ready yet")}}},{key:"paintInlineImageXObject",value:function(b){if(this.contentVisible){var i=b.width,o=b.height,u=this.ctx;this.save(),u.scale(1/i,-1/o);var A,I,O,R=u.mozCurrentTransformInverse,G=Math.max(Math.hypot(R[0],R[1]),1),Y=Math.max(Math.hypot(R[2],R[3]),1);typeof HTMLElement=="function"&&b instanceof HTMLElement||!b.data?A=b:(g(O=(I=this.cachedCanvases.getCanvas("inlineImage",i,o)).context,b,this.current.transferMaps),A=I.canvas);for(var W=i,z=o,ee="prescale1";G>2&&W>1||Y>2&&z>1;){var te=W,ae=z;G>2&&W>1&&(G/=W/(te=Math.ceil(W/2))),Y>2&&z>1&&(Y/=z/(ae=Math.ceil(z/2))),(O=(I=this.cachedCanvases.getCanvas(ee,te,ae)).context).clearRect(0,0,te,ae),O.drawImage(A,0,0,W,z,0,0,te,ae),A=I.canvas,W=te,z=ae,ee=ee==="prescale1"?"prescale2":"prescale1"}if(u.drawImage(A,0,0,W,z,0,-o,i,o),this.imageLayer){var Z=this.getCanvasPosition(0,-o);this.imageLayer.appendImage({imgData:b,left:Z[0],top:Z[1],width:i/R[0],height:o/R[3]})}this.restore()}}},{key:"paintInlineImageXObjectGroup",value:function(b,i){if(this.contentVisible){var o=this.ctx,u=b.width,A=b.height,I=this.cachedCanvases.getCanvas("inlineImage",u,A);g(I.context,b,this.current.transferMaps);for(var O=0,R=i.length;O<R;O++){var G=i[O];if(o.save(),o.transform.apply(o,G.transform),o.scale(1,-1),o.drawImage(I.canvas,G.x,G.y,G.w,G.h,0,-1,1,1),this.imageLayer){var Y=this.getCanvasPosition(G.x,G.y);this.imageLayer.appendImage({imgData:b,left:Y[0],top:Y[1],width:u,height:A})}o.restore()}}}},{key:"paintSolidColorImageMask",value:function(){this.contentVisible&&this.ctx.fillRect(0,0,1,1)}},{key:"markPoint",value:function(b){}},{key:"markPointProps",value:function(b,i){}},{key:"beginMarkedContent",value:function(b){this.markedContentStack.push({visible:!0})}},{key:"beginMarkedContentProps",value:function(b,i){b==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(i)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}},{key:"endMarkedContent",value:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}},{key:"beginCompat",value:function(){}},{key:"endCompat",value:function(){}},{key:"consumePath",value:function(){var b=this.ctx;this.pendingClip&&(this.pendingClip===r?b.clip("evenodd"):b.clip(),this.pendingClip=null),b.beginPath()}},{key:"getSinglePixelWidth",value:function(){if(this._cachedGetSinglePixelWidth===null){var b=this.ctx.mozCurrentTransform,i=Math.abs(b[0]*b[3]-b[2]*b[1]),o=Math.pow(b[0],2)+Math.pow(b[2],2),u=Math.pow(b[1],2)+Math.pow(b[3],2),A=Math.sqrt(Math.max(o,u))/i;o!==u&&this._combinedScaleFactor*A>1?this._cachedGetSinglePixelWidth=-this._combinedScaleFactor*A:i>Number.EPSILON?this._cachedGetSinglePixelWidth=A:this._cachedGetSinglePixelWidth=1}return this._cachedGetSinglePixelWidth}},{key:"getCanvasPosition",value:function(b,i){var o=this.ctx.mozCurrentTransform;return[o[0]*b+o[2]*i+o[4],o[1]*b+o[3]*i+o[5]]}},{key:"isContentVisible",value:function(){for(var b=this.markedContentStack.length-1;b>=0;b--)if(!this.markedContentStack[b].visible)return!1;return!0}}]),w}();for(var k in f.OPS)p.prototype[f.OPS[k]]=p.prototype[k];return p}();_.CanvasGraphics=F},(L,_,h)=>{function f(e){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(e)}Object.defineProperty(_,"__esModule",{value:!0}),_.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new g(e);case"Mesh":return new y(e);case"Dummy":return new m}throw new Error("Unknown IR type: ".concat(e[0]))},_.TilingPattern=void 0;var E,P=h(4);function T(e,t){var s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!s){if(Array.isArray(e)||(s=function(i,o){if(i){if(typeof i=="string")return N(i,o);var u=Object.prototype.toString.call(i).slice(8,-1);return u==="Object"&&i.constructor&&(u=i.constructor.name),u==="Map"||u==="Set"?Array.from(i):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?N(i,o):void 0}}(e))||t&&e&&typeof e.length=="number"){s&&(e=s);var r=0,p=function(){};return{s:p,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(i){throw i},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k,w=!0,b=!1;return{s:function(){s=s.call(e)},n:function(){var i=s.next();return w=i.done,i},e:function(i){b=!0,k=i},f:function(){try{w||s.return==null||s.return()}finally{if(b)throw k}}}}function N(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}function j(e,t){if(typeof t!="function"&&t!==null)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&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(s,r){return s.__proto__=r,s},x(e,t)}function M(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var s,r=C(e);if(t){var p=C(this).constructor;s=Reflect.construct(r,arguments,p)}else s=r.apply(this,arguments);return D(this,s)}}function D(e,t){return!t||f(t)!=="object"&&typeof t!="function"?function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(e):t}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},C(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t,s){return t&&J(e.prototype,t),s&&J(e,s),e}function $(e){return typeof DOMMatrix<"u"?new DOMMatrix(e):(E||(E=document.createElementNS("http://www.w3.org/2000/svg","svg")),E.createSVGMatrix(e))}function B(e,t){if(t&&typeof Path2D<"u"){var s=t[2]-t[0],r=t[3]-t[1],p=new Path2D;p.rect(t[0],t[1],s,r),e.clip(p)}}var F=function(){function e(){U(this,e),this.constructor===e&&(0,P.unreachable)("Cannot initialize BaseShadingPattern.")}return H(e,[{key:"getPattern",value:function(){(0,P.unreachable)("Abstract method `getPattern` called.")}}]),e}(),g=function(e){j(s,e);var t=M(s);function s(r){var p;return U(this,s),(p=t.call(this))._type=r[1],p._bbox=r[2],p._colorStops=r[3],p._p0=r[4],p._p1=r[5],p._r0=r[6],p._r1=r[7],p._matrix=r[8],p}return H(s,[{key:"getPattern",value:function(r,p,k){var w,b=p.cachedCanvases.getCanvas("pattern",r.canvas.width,r.canvas.height,!0),i=b.context;i.clearRect(0,0,i.canvas.width,i.canvas.height),i.beginPath(),i.rect(0,0,i.canvas.width,i.canvas.height),k?i.setTransform.apply(i,r.mozCurrentTransform):(i.setTransform.apply(i,p.baseTransform),this._matrix&&i.transform.apply(i,this._matrix)),B(i,this._bbox),this._type==="axial"?w=i.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(w=i.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));var o,u=T(this._colorStops);try{for(u.s();!(o=u.n()).done;){var A=o.value;w.addColorStop(A[0],A[1])}}catch(O){u.e(O)}finally{u.f()}i.fillStyle=w,i.fill();var I=r.createPattern(b.canvas,"repeat");return I.setTransform($(r.mozCurrentTransformInverse)),I}}]),s}(F);function v(e,t,s,r,p,k,w,b){var i,o=t.coords,u=t.colors,A=e.data,I=4*e.width;o[s+1]>o[r+1]&&(i=s,s=r,r=i,i=k,k=w,w=i),o[r+1]>o[p+1]&&(i=r,r=p,p=i,i=w,w=b,b=i),o[s+1]>o[r+1]&&(i=s,s=r,r=i,i=k,k=w,w=i);var O=(o[s]+t.offsetX)*t.scaleX,R=(o[s+1]+t.offsetY)*t.scaleY,G=(o[r]+t.offsetX)*t.scaleX,Y=(o[r+1]+t.offsetY)*t.scaleY,W=(o[p]+t.offsetX)*t.scaleX,z=(o[p+1]+t.offsetY)*t.scaleY;if(!(R>=z))for(var ee,te,ae,Z,K,V,q,Q,re=u[k],ne=u[k+1],se=u[k+2],ue=u[w],he=u[w+1],pe=u[w+2],me=u[b],fe=u[b+1],ge=u[b+2],de=Math.round(R),oe=Math.round(z),le=de;le<=oe;le++){if(le<Y){var ve=void 0;ee=O-(O-G)*(ve=le<R?0:R===Y?1:(R-le)/(R-Y)),te=re-(re-ue)*ve,ae=ne-(ne-he)*ve,Z=se-(se-pe)*ve}else{var be=void 0;ee=G-(G-W)*(be=le>z?1:Y===z?0:(Y-le)/(Y-z)),te=ue-(ue-me)*be,ae=he-(he-fe)*be,Z=pe-(pe-ge)*be}var ke=void 0;K=O-(O-W)*(ke=le<R?0:le>z?1:(R-le)/(R-z)),V=re-(re-me)*ke,q=ne-(ne-fe)*ke,Q=se-(se-ge)*ke;for(var _e=Math.round(Math.min(ee,K)),xe=Math.round(Math.max(ee,K)),Ae=I*le+4*_e,Ee=_e;Ee<=xe;Ee++)(ke=(ee-Ee)/(ee-K))<0?ke=0:ke>1&&(ke=1),A[Ae++]=te-(te-V)*ke|0,A[Ae++]=ae-(ae-q)*ke|0,A[Ae++]=Z-(Z-Q)*ke|0,A[Ae++]=255}}function d(e,t,s){var r,p,k=t.coords,w=t.colors;switch(t.type){case"lattice":var b=t.verticesPerRow,i=Math.floor(k.length/b)-1,o=b-1;for(r=0;r<i;r++)for(var u=r*b,A=0;A<o;A++,u++)v(e,s,k[u],k[u+1],k[u+b],w[u],w[u+1],w[u+b]),v(e,s,k[u+b+1],k[u+1],k[u+b],w[u+b+1],w[u+1],w[u+b]);break;case"triangles":for(r=0,p=k.length;r<p;r+=3)v(e,s,k[r],k[r+1],k[r+2],w[r],w[r+1],w[r+2]);break;default:throw new Error("illegal figure")}}var y=function(e){j(s,e);var t=M(s);function s(r){var p;return U(this,s),(p=t.call(this))._coords=r[2],p._colors=r[3],p._figures=r[4],p._bounds=r[5],p._matrix=r[6],p._bbox=r[7],p._background=r[8],p}return H(s,[{key:"_createMeshCanvas",value:function(r,p,k){var w=Math.floor(this._bounds[0]),b=Math.floor(this._bounds[1]),i=Math.ceil(this._bounds[2])-w,o=Math.ceil(this._bounds[3])-b,u=Math.min(Math.ceil(Math.abs(i*r[0]*1.1)),3e3),A=Math.min(Math.ceil(Math.abs(o*r[1]*1.1)),3e3),I=i/u,O=o/A,R={coords:this._coords,colors:this._colors,offsetX:-w,offsetY:-b,scaleX:1/I,scaleY:1/O},G=u+4,Y=A+4,W=k.getCanvas("mesh",G,Y,!1),z=W.context,ee=z.createImageData(u,A);if(p)for(var te=ee.data,ae=0,Z=te.length;ae<Z;ae+=4)te[ae]=p[0],te[ae+1]=p[1],te[ae+2]=p[2],te[ae+3]=255;var K,V=T(this._figures);try{for(V.s();!(K=V.n()).done;)d(ee,K.value,R)}catch(q){V.e(q)}finally{V.f()}return z.putImageData(ee,2,2),{canvas:W.canvas,offsetX:w-2*I,offsetY:b-2*O,scaleX:I,scaleY:O}}},{key:"getPattern",value:function(r,p,k){var w;if(B(r,this._bbox),k)w=P.Util.singularValueDecompose2dScale(r.mozCurrentTransform);else if(w=P.Util.singularValueDecompose2dScale(p.baseTransform),this._matrix){var b=P.Util.singularValueDecompose2dScale(this._matrix);w=[w[0]*b[0],w[1]*b[1]]}var i=this._createMeshCanvas(w,k?null:this._background,p.cachedCanvases);return k||(r.setTransform.apply(r,p.baseTransform),this._matrix&&r.transform.apply(r,this._matrix)),r.translate(i.offsetX,i.offsetY),r.scale(i.scaleX,i.scaleY),r.createPattern(i.canvas,"no-repeat")}}]),s}(F),m=function(e){j(s,e);var t=M(s);function s(){return U(this,s),t.apply(this,arguments)}return H(s,[{key:"getPattern",value:function(){return"hotpink"}}]),s}(F),c=1,l=2,a=function(){function e(t,s,r,p,k){U(this,e),this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=s,this.ctx=r,this.canvasGraphicsFactory=p,this.baseTransform=k}return H(e,[{key:"createPatternCanvas",value:function(t){var s=this.operatorList,r=this.bbox,p=this.xstep,k=this.ystep,w=this.paintType,b=this.tilingType,i=this.color,o=this.canvasGraphicsFactory;(0,P.info)("TilingType: "+b);var u=r[0],A=r[1],I=r[2],O=r[3],R=P.Util.singularValueDecompose2dScale(this.matrix),G=P.Util.singularValueDecompose2dScale(this.baseTransform),Y=[R[0]*G[0],R[1]*G[1]],W=this.getSizeAndScale(p,this.ctx.canvas.width,Y[0]),z=this.getSizeAndScale(k,this.ctx.canvas.height,Y[1]),ee=t.cachedCanvases.getCanvas("pattern",W.size,z.size,!0),te=ee.context,ae=o.createCanvasGraphics(te);return ae.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(ae,w,i),ae.transform(W.scale,0,0,z.scale,0,0),this.clipBbox(ae,r,u,A,I,O),ae.baseTransform=ae.ctx.mozCurrentTransform.slice(),ae.executeOperatorList(s),ae.endDrawing(),{canvas:ee.canvas,scaleX:W.scale,scaleY:z.scale}}},{key:"getSizeAndScale",value:function(t,s,r){t=Math.abs(t);var p=Math.max(e.MAX_PATTERN_SIZE,s),k=Math.ceil(t*r);return k>=p?k=p:r=k/t,{scale:r,size:k}}},{key:"clipBbox",value:function(t,s,r,p,k,w){if(Array.isArray(s)&&s.length===4){var b=k-r,i=w-p;t.ctx.rect(r,p,b,i),t.clip(),t.endPath()}}},{key:"setFillAndStrokeStyleToContext",value:function(t,s,r){var p=t.ctx,k=t.current;switch(s){case c:var w=this.ctx;p.fillStyle=w.fillStyle,p.strokeStyle=w.strokeStyle,k.fillColor=w.fillStyle,k.strokeColor=w.strokeStyle;break;case l:var b=P.Util.makeHexColor(r[0],r[1],r[2]);p.fillStyle=b,p.strokeStyle=b,k.fillColor=b,k.strokeColor=b;break;default:throw new P.FormatError("Unsupported paint type: ".concat(s))}}},{key:"getPattern",value:function(t,s,r){var p=(t=this.ctx).mozCurrentTransformInverse;r||(p=P.Util.transform(p,s.baseTransform),this.matrix&&(p=P.Util.transform(p,this.matrix)));var k=this.createPatternCanvas(s),w=$(p);w=w.scale(1/k.scaleX,1/k.scaleY);var b=t.createPattern(k.canvas,"repeat");return b.setTransform(w),b}}],[{key:"MAX_PATTERN_SIZE",get:function(){return(0,P.shadow)(this,"MAX_PATTERN_SIZE",3e3)}}]),e}();_.TilingPattern=a},(L,_)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.GlobalWorkerOptions=void 0;var h=Object.create(null);_.GlobalWorkerOptions=h,h.workerPort=h.workerPort===void 0?null:h.workerPort,h.workerSrc=h.workerSrc===void 0?"":h.workerSrc},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.MessageHandler=void 0;var f,E=(f=h(2))&&f.__esModule?f:{default:f},P=h(4);function T(d,y,m,c,l,a,e){try{var t=d[a](e),s=t.value}catch(r){return void m(r)}t.done?y(s):Promise.resolve(s).then(c,l)}function N(d,y){for(var m=0;m<y.length;m++){var c=y[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(d,c.key,c)}}function j(d){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},j(d)}var x=1,M=2,D=1,C=2,U=3,J=4,H=5,$=6,B=7,F=8;function g(d){if(j(d)!=="object"||d===null)return d;switch(d.name){case"AbortException":return new P.AbortException(d.message);case"MissingPDFException":return new P.MissingPDFException(d.message);case"UnexpectedResponseException":return new P.UnexpectedResponseException(d.message,d.status);case"UnknownErrorException":return new P.UnknownErrorException(d.message,d.details);default:return new P.UnknownErrorException(d.message,d.toString())}}var v=function(){function d(a,e,t){var s=this;(function(r,p){if(!(r instanceof p))throw new TypeError("Cannot call a class as a function")})(this,d),this.sourceName=a,this.targetName=e,this.comObj=t,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(r){var p=r.data;if(p.targetName===s.sourceName)if(p.stream)s._processStreamMessage(p);else if(p.callback){var k=p.callbackId,w=s.callbackCapabilities[k];if(!w)throw new Error("Cannot resolve callback ".concat(k));if(delete s.callbackCapabilities[k],p.callback===x)w.resolve(p.data);else{if(p.callback!==M)throw new Error("Unexpected callback case");w.reject(g(p.reason))}}else{var b=s.actionHandler[p.action];if(!b)throw new Error("Unknown action from worker: ".concat(p.action));if(p.callbackId){var i=s.sourceName,o=p.sourceName;new Promise(function(u){u(b(p.data))}).then(function(u){t.postMessage({sourceName:i,targetName:o,callback:x,callbackId:p.callbackId,data:u})},function(u){t.postMessage({sourceName:i,targetName:o,callback:M,callbackId:p.callbackId,reason:g(u)})})}else p.streamId?s._createStreamSink(p):b(p.data)}},t.addEventListener("message",this._onComObjOnMessage)}var y,m,c,l;return y=d,m=[{key:"on",value:function(a,e){var t=this.actionHandler;if(t[a])throw new Error('There is already an actionName called "'.concat(a,'"'));t[a]=e}},{key:"send",value:function(a,e,t){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:a,data:e},t)}},{key:"sendWithPromise",value:function(a,e,t){var s=this.callbackId++,r=(0,P.createPromiseCapability)();this.callbackCapabilities[s]=r;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:a,callbackId:s,data:e},t)}catch(p){r.reject(p)}return r.promise}},{key:"sendWithStream",value:function(a,e,t,s){var r=this,p=this.streamId++,k=this.sourceName,w=this.targetName,b=this.comObj;return new ReadableStream({start:function(i){var o=(0,P.createPromiseCapability)();return r.streamControllers[p]={controller:i,startCall:o,pullCall:null,cancelCall:null,isClosed:!1},r._postMessage({sourceName:k,targetName:w,action:a,streamId:p,data:e,desiredSize:i.desiredSize},s),o.promise},pull:function(i){var o=(0,P.createPromiseCapability)();return r.streamControllers[p].pullCall=o,b.postMessage({sourceName:k,targetName:w,stream:$,streamId:p,desiredSize:i.desiredSize}),o.promise},cancel:function(i){(0,P.assert)(i instanceof Error,"cancel must have a valid reason");var o=(0,P.createPromiseCapability)();return r.streamControllers[p].cancelCall=o,r.streamControllers[p].isClosed=!0,b.postMessage({sourceName:k,targetName:w,stream:D,streamId:p,reason:g(i)}),o.promise}},t)}},{key:"_createStreamSink",value:function(a){var e=this,t=this.actionHandler[a.action],s=a.streamId,r=this.sourceName,p=a.sourceName,k=this.comObj,w={enqueue:function(b){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var u=this.desiredSize;this.desiredSize-=i,u>0&&this.desiredSize<=0&&(this.sinkCapability=(0,P.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:r,targetName:p,stream:J,streamId:s,chunk:b},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,k.postMessage({sourceName:r,targetName:p,stream:U,streamId:s}),delete e.streamSinks[s])},error:function(b){(0,P.assert)(b instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,k.postMessage({sourceName:r,targetName:p,stream:H,streamId:s,reason:g(b)}))},sinkCapability:(0,P.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:a.desiredSize,ready:null};w.sinkCapability.resolve(),w.ready=w.sinkCapability.promise,this.streamSinks[s]=w,new Promise(function(b){b(t(a.data,w))}).then(function(){k.postMessage({sourceName:r,targetName:p,stream:F,streamId:s,success:!0})},function(b){k.postMessage({sourceName:r,targetName:p,stream:F,streamId:s,reason:g(b)})})}},{key:"_processStreamMessage",value:function(a){var e=a.streamId,t=this.sourceName,s=a.sourceName,r=this.comObj;switch(a.stream){case F:a.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(g(a.reason));break;case B:a.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(g(a.reason));break;case $:if(!this.streamSinks[e]){r.postMessage({sourceName:t,targetName:s,stream:B,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&a.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=a.desiredSize;var p=this.streamSinks[a.streamId].onPull;new Promise(function(w){w(p&&p())}).then(function(){r.postMessage({sourceName:t,targetName:s,stream:B,streamId:e,success:!0})},function(w){r.postMessage({sourceName:t,targetName:s,stream:B,streamId:e,reason:g(w)})});break;case J:if((0,P.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(a.chunk);break;case U:if((0,P.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case H:(0,P.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(g(a.reason)),this._deleteStreamController(e);break;case C:a.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(g(a.reason)),this._deleteStreamController(e);break;case D:if(!this.streamSinks[e])break;var k=this.streamSinks[a.streamId].onCancel;new Promise(function(w){w(k&&k(g(a.reason)))}).then(function(){r.postMessage({sourceName:t,targetName:s,stream:C,streamId:e,success:!0})},function(w){r.postMessage({sourceName:t,targetName:s,stream:C,streamId:e,reason:g(w)})}),this.streamSinks[e].sinkCapability.reject(g(a.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(c=E.default.mark(function a(e){return E.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map(function(s){return s&&s.promise}));case 2:delete this.streamControllers[e];case 3:case"end":return t.stop()}},a,this)}),l=function(){var a=this,e=arguments;return new Promise(function(t,s){var r=c.apply(a,e);function p(w){T(r,t,s,p,k,"next",w)}function k(w){T(r,t,s,p,k,"throw",w)}p(void 0)})},function(a){return l.apply(this,arguments)})},{key:"_postMessage",value:function(a,e){e&&this.postMessageTransfers?this.comObj.postMessage(a,e):this.comObj.postMessage(a)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}],m&&N(y.prototype,m),d}();_.MessageHandler=v},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.Metadata=void 0;var f=h(4);function E(T,N){for(var j=0;j<N.length;j++){var x=N[j];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(T,x.key,x)}}var P=function(){function T(x){var M=x.parsedData,D=x.rawData;(function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")})(this,T),this._metadataMap=M,this._data=D}var N,j;return N=T,(j=[{key:"getRaw",value:function(){return this._data}},{key:"get",value:function(x){var M;return(M=this._metadataMap.get(x))!==null&&M!==void 0?M:null}},{key:"getAll",value:function(){return(0,f.objectFromMap)(this._metadataMap)}},{key:"has",value:function(x){return this._metadataMap.has(x)}}])&&E(N.prototype,j),T}();_.Metadata=P},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.OptionalContentConfig=void 0;var f=h(4);function E(M,D){var C=typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(!C){if(Array.isArray(M)||(C=function(F,g){if(F){if(typeof F=="string")return P(F,g);var v=Object.prototype.toString.call(F).slice(8,-1);return v==="Object"&&F.constructor&&(v=F.constructor.name),v==="Map"||v==="Set"?Array.from(F):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?P(F,g):void 0}}(M))||D&&M&&typeof M.length=="number"){C&&(M=C);var U=0,J=function(){};return{s:J,n:function(){return U>=M.length?{done:!0}:{done:!1,value:M[U++]}},e:function(F){throw F},f:J}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,$=!0,B=!1;return{s:function(){C=C.call(M)},n:function(){var F=C.next();return $=F.done,F},e:function(F){B=!0,H=F},f:function(){try{$||C.return==null||C.return()}finally{if(B)throw H}}}}function P(M,D){(D==null||D>M.length)&&(D=M.length);for(var C=0,U=new Array(D);C<D;C++)U[C]=M[C];return U}function T(M,D){for(var C=0;C<D.length;C++){var U=D[C];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(M,U.key,U)}}function N(M,D){if(!(M instanceof D))throw new TypeError("Cannot call a class as a function")}var j=function M(D,C){N(this,M),this.visible=!0,this.name=D,this.intent=C},x=function(){function M(U){if(N(this,M),this.name=null,this.creator=null,this._order=null,this._groups=new Map,U!==null){this.name=U.name,this.creator=U.creator,this._order=U.order;var J,H=E(U.groups);try{for(H.s();!(J=H.n()).done;){var $=J.value;this._groups.set($.id,new j($.name,$.intent))}}catch(l){H.e(l)}finally{H.f()}if(U.baseState==="OFF"){var B,F=E(this._groups);try{for(F.s();!(B=F.n()).done;)B.value.visible=!1}catch(l){F.e(l)}finally{F.f()}}var g,v=E(U.on);try{for(v.s();!(g=v.n()).done;){var d=g.value;this._groups.get(d).visible=!0}}catch(l){v.e(l)}finally{v.f()}var y,m=E(U.off);try{for(m.s();!(y=m.n()).done;){var c=y.value;this._groups.get(c).visible=!1}}catch(l){m.e(l)}finally{m.f()}}}var D,C;return D=M,C=[{key:"_evaluateVisibilityExpression",value:function(U){var J=U.length;if(J<2)return!0;for(var H=U[0],$=1;$<J;$++){var B=U[$],F=void 0;if(Array.isArray(B))F=this._evaluateVisibilityExpression(B);else{if(!this._groups.has(B))return(0,f.warn)("Optional content group not found: ".concat(B)),!0;F=this._groups.get(B).visible}switch(H){case"And":if(!F)return!1;break;case"Or":if(F)return!0;break;case"Not":return!F;default:return!0}}return H==="And"}},{key:"isVisible",value:function(U){if(U.type==="OCG")return this._groups.has(U.id)?this._groups.get(U.id).visible:((0,f.warn)("Optional content group not found: ".concat(U.id)),!0);if(U.type==="OCMD"){if(U.expression)return this._evaluateVisibilityExpression(U.expression);if(!U.policy||U.policy==="AnyOn"){var J,H=E(U.ids);try{for(H.s();!(J=H.n()).done;){var $=J.value;if(!this._groups.has($))return(0,f.warn)("Optional content group not found: ".concat($)),!0;if(this._groups.get($).visible)return!0}}catch(a){H.e(a)}finally{H.f()}return!1}if(U.policy==="AllOn"){var B,F=E(U.ids);try{for(F.s();!(B=F.n()).done;){var g=B.value;if(!this._groups.has(g))return(0,f.warn)("Optional content group not found: ".concat(g)),!0;if(!this._groups.get(g).visible)return!1}}catch(a){F.e(a)}finally{F.f()}return!0}if(U.policy==="AnyOff"){var v,d=E(U.ids);try{for(d.s();!(v=d.n()).done;){var y=v.value;if(!this._groups.has(y))return(0,f.warn)("Optional content group not found: ".concat(y)),!0;if(!this._groups.get(y).visible)return!0}}catch(a){d.e(a)}finally{d.f()}return!1}if(U.policy==="AllOff"){var m,c=E(U.ids);try{for(c.s();!(m=c.n()).done;){var l=m.value;if(!this._groups.has(l))return(0,f.warn)("Optional content group not found: ".concat(l)),!0;if(this._groups.get(l).visible)return!1}}catch(a){c.e(a)}finally{c.f()}return!0}return(0,f.warn)("Unknown optional content policy ".concat(U.policy,".")),!0}return(0,f.warn)("Unknown group type ".concat(U.type,".")),!0}},{key:"setVisibility",value:function(U){var J=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this._groups.has(U)?this._groups.get(U).visible=!!J:(0,f.warn)("Optional content group not found: ".concat(U))}},{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>0?(0,f.objectFromMap)(this._groups):null}},{key:"getGroup",value:function(U){return this._groups.get(U)||null}}],C&&T(D.prototype,C),M}();_.OptionalContentConfig=x},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.PDFDataTransportStream=void 0;var f,E=(f=h(2))&&f.__esModule?f:{default:f},P=h(4),T=h(1);function N(B,F,g,v,d,y,m){try{var c=B[y](m),l=c.value}catch(a){return void g(a)}c.done?F(l):Promise.resolve(l).then(v,d)}function j(B){return function(){var F=this,g=arguments;return new Promise(function(v,d){var y=B.apply(F,g);function m(l){N(y,v,d,m,c,"next",l)}function c(l){N(y,v,d,m,c,"throw",l)}m(void 0)})}}function x(B,F){var g=typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(!g){if(Array.isArray(B)||(g=function(l,a){if(l){if(typeof l=="string")return M(l,a);var e=Object.prototype.toString.call(l).slice(8,-1);return e==="Object"&&l.constructor&&(e=l.constructor.name),e==="Map"||e==="Set"?Array.from(l):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?M(l,a):void 0}}(B))||F&&B&&typeof B.length=="number"){g&&(B=g);var v=0,d=function(){};return{s:d,n:function(){return v>=B.length?{done:!0}:{done:!1,value:B[v++]}},e:function(l){throw l},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y,m=!0,c=!1;return{s:function(){g=g.call(B)},n:function(){var l=g.next();return m=l.done,l},e:function(l){c=!0,y=l},f:function(){try{m||g.return==null||g.return()}finally{if(c)throw y}}}}function M(B,F){(F==null||F>B.length)&&(F=B.length);for(var g=0,v=new Array(F);g<F;g++)v[g]=B[g];return v}function D(B,F){if(!(B instanceof F))throw new TypeError("Cannot call a class as a function")}function C(B,F){for(var g=0;g<F.length;g++){var v=F[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(B,v.key,v)}}function U(B,F,g){return F&&C(B.prototype,F),g&&C(B,g),B}var J=function(){function B(F,g){var v=this;D(this,B),(0,P.assert)(g,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=F.progressiveDone||!1,this._contentDispositionFilename=F.contentDispositionFilename||null;var d=F.initialData;if((d==null?void 0:d.length)>0){var y=new Uint8Array(d).buffer;this._queuedChunks.push(y)}this._pdfDataRangeTransport=g,this._isStreamingSupported=!F.disableStream,this._isRangeSupported=!F.disableRange,this._contentLength=F.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(m,c){v._onReceiveData({begin:m,chunk:c})}),this._pdfDataRangeTransport.addProgressListener(function(m,c){v._onProgress({loaded:m,total:c})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(m){v._onReceiveData({chunk:m})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){v._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return U(B,[{key:"_onReceiveData",value:function(F){var g=new Uint8Array(F.chunk).buffer;if(F.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(g):this._queuedChunks.push(g);else{var v=this._rangeReaders.some(function(d){return d._begin===F.begin&&(d._enqueue(g),!0)});(0,P.assert)(v,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){var F,g;return(F=(g=this._fullRequestReader)===null||g===void 0?void 0:g._loaded)!==null&&F!==void 0?F:0}},{key:"_onProgress",value:function(F){if(F.total===void 0){var g=this._rangeReaders[0];g!=null&&g.onProgress&&g.onProgress({loaded:F.loaded})}else{var v=this._fullRequestReader;v!=null&&v.onProgress&&v.onProgress({loaded:F.loaded,total:F.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(F){var g=this._rangeReaders.indexOf(F);g>=0&&this._rangeReaders.splice(g,1)}},{key:"getFullReader",value:function(){(0,P.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var F=this._queuedChunks;return this._queuedChunks=null,new H(this,F,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(F,g){if(g<=this._progressiveDataLength)return null;var v=new $(this,F,g);return this._pdfDataRangeTransport.requestDataRange(F,g),this._rangeReaders.push(v),v}},{key:"cancelAllRequests",value:function(F){this._fullRequestReader&&this._fullRequestReader.cancel(F);var g,v=x(this._rangeReaders.slice(0));try{for(v.s();!(g=v.n()).done;)g.value.cancel(F)}catch(d){v.e(d)}finally{v.f()}this._pdfDataRangeTransport.abort()}}]),B}();_.PDFDataTransportStream=J;var H=function(){function B(g,v){var d=arguments.length>2&&arguments[2]!==void 0&&arguments[2],y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;D(this,B),this._stream=g,this._done=d||!1,this._filename=(0,T.isPdfFile)(y)?y:null,this._queuedChunks=v||[],this._loaded=0;var m,c=x(this._queuedChunks);try{for(c.s();!(m=c.n()).done;){var l=m.value;this._loaded+=l.byteLength}}catch(a){c.e(a)}finally{c.f()}this._requests=[],this._headersReady=Promise.resolve(),g._fullRequestReader=this,this.onProgress=null}var F;return U(B,[{key:"_enqueue",value:function(g){this._done||(this._requests.length>0?this._requests.shift().resolve({value:g,done:!1}):this._queuedChunks.push(g),this._loaded+=g.byteLength)}},{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}},{key:"read",value:(F=j(E.default.mark(function g(){var v,d;return E.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(this._queuedChunks.length>0)){y.next=3;break}return v=this._queuedChunks.shift(),y.abrupt("return",{value:v,done:!1});case 3:if(!this._done){y.next=5;break}return y.abrupt("return",{value:void 0,done:!0});case 5:return d=(0,P.createPromiseCapability)(),this._requests.push(d),y.abrupt("return",d.promise);case 8:case"end":return y.stop()}},g,this)})),function(){return F.apply(this,arguments)})},{key:"cancel",value:function(g){this._done=!0;var v,d=x(this._requests);try{for(d.s();!(v=d.n()).done;)v.value.resolve({value:void 0,done:!0})}catch(y){d.e(y)}finally{d.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]),B}(),$=function(){function B(g,v,d){D(this,B),this._stream=g,this._begin=v,this._end=d,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}var F;return U(B,[{key:"_enqueue",value:function(g){if(!this._done){if(this._requests.length===0)this._queuedChunk=g;else{this._requests.shift().resolve({value:g,done:!1});var v,d=x(this._requests);try{for(d.s();!(v=d.n()).done;)v.value.resolve({value:void 0,done:!0})}catch(y){d.e(y)}finally{d.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(F=j(E.default.mark(function g(){var v,d;return E.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!this._queuedChunk){y.next=4;break}return v=this._queuedChunk,this._queuedChunk=null,y.abrupt("return",{value:v,done:!1});case 4:if(!this._done){y.next=6;break}return y.abrupt("return",{value:void 0,done:!0});case 6:return d=(0,P.createPromiseCapability)(),this._requests.push(d),y.abrupt("return",d.promise);case 9:case"end":return y.stop()}},g,this)})),function(){return F.apply(this,arguments)})},{key:"cancel",value:function(g){this._done=!0;var v,d=x(this._requests);try{for(d.s();!(v=d.n()).done;)v.value.resolve({value:void 0,done:!0})}catch(y){d.e(y)}finally{d.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]),B}()},(L,_,h)=>{function f(Z){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},f(Z)}Object.defineProperty(_,"__esModule",{value:!0}),_.AnnotationLayer=void 0;var E=h(1),P=h(4),T=h(116),N=h(126);function j(Z,K,V){return j=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(q,Q,re){var ne=function(ue,he){for(;!Object.prototype.hasOwnProperty.call(ue,he)&&(ue=H(ue))!==null;);return ue}(q,Q);if(ne){var se=Object.getOwnPropertyDescriptor(ne,Q);return se.get?se.get.call(re):se.value}},j(Z,K,V||Z)}function x(Z,K){return function(V){if(Array.isArray(V))return V}(Z)||function(V,q){var Q=V&&(typeof Symbol<"u"&&V[Symbol.iterator]||V["@@iterator"]);if(Q!=null){var re,ne,se=[],ue=!0,he=!1;try{for(Q=Q.call(V);!(ue=(re=Q.next()).done)&&(se.push(re.value),!q||se.length!==q);ue=!0);}catch(pe){he=!0,ne=pe}finally{try{ue||Q.return==null||Q.return()}finally{if(he)throw ne}}return se}}(Z,K)||B(Z,K)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function M(Z,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(K&&K.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),K&&D(Z,K)}function D(Z,K){return D=Object.setPrototypeOf||function(V,q){return V.__proto__=q,V},D(Z,K)}function C(Z){var K=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,q=H(Z);if(K){var Q=H(this).constructor;V=Reflect.construct(q,arguments,Q)}else V=q.apply(this,arguments);return U(this,V)}}function U(Z,K){return!K||f(K)!=="object"&&typeof K!="function"?J(Z):K}function J(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function H(Z){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)},H(Z)}function $(Z,K){var V=typeof Symbol<"u"&&Z[Symbol.iterator]||Z["@@iterator"];if(!V){if(Array.isArray(Z)||(V=B(Z))||K&&Z&&typeof Z.length=="number"){V&&(Z=V);var q=0,Q=function(){};return{s:Q,n:function(){return q>=Z.length?{done:!0}:{done:!1,value:Z[q++]}},e:function(ue){throw ue},f:Q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var re,ne=!0,se=!1;return{s:function(){V=V.call(Z)},n:function(){var ue=V.next();return ne=ue.done,ue},e:function(ue){se=!0,re=ue},f:function(){try{ne||V.return==null||V.return()}finally{if(se)throw re}}}}function B(Z,K){if(Z){if(typeof Z=="string")return F(Z,K);var V=Object.prototype.toString.call(Z).slice(8,-1);return V==="Object"&&Z.constructor&&(V=Z.constructor.name),V==="Map"||V==="Set"?Array.from(Z):V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?F(Z,K):void 0}}function F(Z,K){(K==null||K>Z.length)&&(K=Z.length);for(var V=0,q=new Array(K);V<K;V++)q[V]=Z[V];return q}function g(Z,K){if(!(Z instanceof K))throw new TypeError("Cannot call a class as a function")}function v(Z,K){for(var V=0;V<K.length;V++){var q=K[V];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(Z,q.key,q)}}function d(Z,K,V){return K&&v(Z.prototype,K),V&&v(Z,V),Z}var y=function(){function Z(){g(this,Z)}return d(Z,null,[{key:"create",value:function(K){switch(K.data.annotationType){case P.AnnotationType.LINK:return new c(K);case P.AnnotationType.TEXT:return new l(K);case P.AnnotationType.WIDGET:switch(K.data.fieldType){case"Tx":return new e(K);case"Btn":return K.data.radioButton?new s(K):K.data.checkBox?new t(K):new r(K);case"Ch":return new p(K)}return new a(K);case P.AnnotationType.POPUP:return new k(K);case P.AnnotationType.FREETEXT:return new b(K);case P.AnnotationType.LINE:return new i(K);case P.AnnotationType.SQUARE:return new o(K);case P.AnnotationType.CIRCLE:return new u(K);case P.AnnotationType.POLYLINE:return new A(K);case P.AnnotationType.CARET:return new O(K);case P.AnnotationType.INK:return new R(K);case P.AnnotationType.POLYGON:return new I(K);case P.AnnotationType.HIGHLIGHT:return new G(K);case P.AnnotationType.UNDERLINE:return new Y(K);case P.AnnotationType.SQUIGGLY:return new W(K);case P.AnnotationType.STRIKEOUT:return new z(K);case P.AnnotationType.STAMP:return new ee(K);case P.AnnotationType.FILEATTACHMENT:return new te(K);default:return new m(K)}}}]),Z}(),m=function(){function Z(K){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=V.isRenderable,Q=q!==void 0&&q,re=V.ignoreBorder,ne=re!==void 0&&re,se=V.createQuadrilaterals,ue=se!==void 0&&se;g(this,Z),this.isRenderable=Q,this.data=K.data,this.layer=K.layer,this.page=K.page,this.viewport=K.viewport,this.linkService=K.linkService,this.downloadManager=K.downloadManager,this.imageResourcesPath=K.imageResourcesPath,this.renderInteractiveForms=K.renderInteractiveForms,this.svgFactory=K.svgFactory,this.annotationStorage=K.annotationStorage,this.enableScripting=K.enableScripting,this.hasJSActions=K.hasJSActions,this._mouseState=K.mouseState,Q&&(this.container=this._createContainer(ne)),ue&&(this.quadrilaterals=this._createQuadrilaterals(ne))}return d(Z,[{key:"_createContainer",value:function(){var K=arguments.length>0&&arguments[0]!==void 0&&arguments[0],V=this.data,q=this.page,Q=this.viewport,re=document.createElement("section"),ne=V.rect[2]-V.rect[0],se=V.rect[3]-V.rect[1];re.setAttribute("data-annotation-id",V.id);var ue=P.Util.normalizeRect([V.rect[0],q.view[3]-V.rect[1]+q.view[1],V.rect[2],q.view[3]-V.rect[3]+q.view[1]]);if(re.style.transform="matrix(".concat(Q.transform.join(","),")"),re.style.transformOrigin="".concat(-ue[0],"px ").concat(-ue[1],"px"),!K&&V.borderStyle.width>0){re.style.borderWidth="".concat(V.borderStyle.width,"px"),V.borderStyle.style!==P.AnnotationBorderStyleType.UNDERLINE&&(ne-=2*V.borderStyle.width,se-=2*V.borderStyle.width);var he=V.borderStyle.horizontalCornerRadius,pe=V.borderStyle.verticalCornerRadius;if(he>0||pe>0){var me="".concat(he,"px / ").concat(pe,"px");re.style.borderRadius=me}switch(V.borderStyle.style){case P.AnnotationBorderStyleType.SOLID:re.style.borderStyle="solid";break;case P.AnnotationBorderStyleType.DASHED:re.style.borderStyle="dashed";break;case P.AnnotationBorderStyleType.BEVELED:(0,P.warn)("Unimplemented border style: beveled");break;case P.AnnotationBorderStyleType.INSET:(0,P.warn)("Unimplemented border style: inset");break;case P.AnnotationBorderStyleType.UNDERLINE:re.style.borderBottomStyle="solid"}V.color?re.style.borderColor=P.Util.makeHexColor(0|V.color[0],0|V.color[1],0|V.color[2]):re.style.borderWidth=0}return re.style.left="".concat(ue[0],"px"),re.style.top="".concat(ue[1],"px"),re.style.width="".concat(ne,"px"),re.style.height="".concat(se,"px"),re}},{key:"_createQuadrilaterals",value:function(){var K=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!this.data.quadPoints)return null;var V,q=[],Q=this.data.rect,re=$(this.data.quadPoints);try{for(re.s();!(V=re.n()).done;){var ne=V.value;this.data.rect=[ne[2].x,ne[2].y,ne[1].x,ne[1].y],q.push(this._createContainer(K))}}catch(se){re.e(se)}finally{re.f()}return this.data.rect=Q,q}},{key:"_createPopup",value:function(K,V){var q=this.container;this.quadrilaterals&&(K=K||this.quadrilaterals,q=this.quadrilaterals[0]),K||((K=document.createElement("div")).style.height=q.style.height,K.style.width=q.style.width,q.appendChild(K));var Q=new w({container:q,trigger:K,color:V.color,title:V.title,modificationDate:V.modificationDate,contents:V.contents,hideWrapper:!0}).render();Q.style.left=q.style.width,q.appendChild(Q)}},{key:"_renderQuadrilaterals",value:function(K){var V,q=$(this.quadrilaterals);try{for(q.s();!(V=q.n()).done;)V.value.className=K}catch(Q){q.e(Q)}finally{q.f()}return this.quadrilaterals}},{key:"render",value:function(){(0,P.unreachable)("Abstract method `AnnotationElement.render` called")}}]),Z}(),c=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.url||q.data.dest||q.data.action||q.data.isTooltipOnly||q.data.actions&&(q.data.actions.Action||q.data.actions["Mouse Up"]||q.data.actions["Mouse Down"]));return K.call(this,q,{isRenderable:Q,createQuadrilaterals:!0})}return d(V,[{key:"render",value:function(){var q=this.data,Q=this.linkService,re=document.createElement("a");return q.url?(0,E.addLinkAttributes)(re,{url:q.url,target:q.newWindow?E.LinkTarget.BLANK:Q.externalLinkTarget,rel:Q.externalLinkRel,enabled:Q.externalLinkEnabled}):q.action?this._bindNamedAction(re,q.action):q.dest?this._bindLink(re,q.dest):q.actions&&(q.actions.Action||q.actions["Mouse Up"]||q.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions?this._bindJSAction(re,q):this._bindLink(re,""),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(function(ne,se){var ue=se===0?re:re.cloneNode();return ne.appendChild(ue),ne}):(this.container.className="linkAnnotation",this.container.appendChild(re),this.container)}},{key:"_bindLink",value:function(q,Q){var re=this;q.href=this.linkService.getDestinationHash(Q),q.onclick=function(){return Q&&re.linkService.goToDestination(Q),!1},(Q||Q==="")&&(q.className="internalLink")}},{key:"_bindNamedAction",value:function(q,Q){var re=this;q.href=this.linkService.getAnchorUrl(""),q.onclick=function(){return re.linkService.executeNamedAction(Q),!1},q.className="internalLink"}},{key:"_bindJSAction",value:function(q,Q){var re=this;q.href=this.linkService.getAnchorUrl("");for(var ne=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),se=function(){var pe=he[ue],me=ne.get(pe);if(!me)return"continue";q[me]=function(){var fe;return(fe=re.linkService.eventBus)===null||fe===void 0||fe.dispatch("dispatcheventinsandbox",{source:re,detail:{id:Q.id,name:pe}}),!1}},ue=0,he=Object.keys(Q.actions);ue<he.length;ue++)se();q.className="internalLink"}}]),V}(m),l=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q})}return d(V,[{key:"render",value:function(){this.container.className="textAnnotation";var q=document.createElement("img");return q.style.height=this.container.style.height,q.style.width=this.container.style.width,q.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",q.alt="[{{type}} Annotation]",q.dataset.l10nId="text_annotation_type",q.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(q,this.data),this.container.appendChild(q),this.container}}]),V}(m),a=function(Z){M(V,Z);var K=C(V);function V(){return g(this,V),K.apply(this,arguments)}return d(V,[{key:"render",value:function(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}},{key:"_getKeyModifier",value:function(q){return navigator.platform.includes("Win")&&q.ctrlKey||navigator.platform.includes("Mac")&&q.metaKey}},{key:"_setEventListener",value:function(q,Q,re,ne){var se=this;Q.includes("mouse")?q.addEventListener(Q,function(ue){var he;(he=se.linkService.eventBus)===null||he===void 0||he.dispatch("dispatcheventinsandbox",{source:se,detail:{id:se.data.id,name:re,value:ne(ue),shift:ue.shiftKey,modifier:se._getKeyModifier(ue)}})}):q.addEventListener(Q,function(ue){var he;(he=se.linkService.eventBus)===null||he===void 0||he.dispatch("dispatcheventinsandbox",{source:se,detail:{id:se.data.id,name:re,value:ue.target.checked}})})}},{key:"_setEventListeners",value:function(q,Q,re){var ne,se=$(Q);try{for(se.s();!(ne=se.n()).done;){var ue,he=x(ne.value,2),pe=he[0],me=he[1];(me==="Action"||(ue=this.data.actions)!==null&&ue!==void 0&&ue[me])&&this._setEventListener(q,pe,me,re)}}catch(fe){se.e(fe)}finally{se.f()}}},{key:"_dispatchEventFromSandbox",value:function(q,Q){for(var re=this,ne=function(fe,ge,de){var oe=de.detail[fe];de.target.style[ge]=N.ColorConverters["".concat(oe[0],"_HTML")](oe.slice(1))},se={display:function(fe){var ge=fe.detail.display%2==1;fe.target.style.visibility=ge?"hidden":"visible",re.annotationStorage.setValue(re.data.id,{hidden:ge,print:fe.detail.display===0||fe.detail.display===3})},print:function(fe){re.annotationStorage.setValue(re.data.id,{print:fe.detail.print})},hidden:function(fe){fe.target.style.visibility=fe.detail.hidden?"hidden":"visible",re.annotationStorage.setValue(re.data.id,{hidden:fe.detail.hidden})},focus:function(fe){setTimeout(function(){return fe.target.focus({preventScroll:!1})},0)},userName:function(fe){fe.target.title=fe.detail.userName},readonly:function(fe){fe.detail.readonly?fe.target.setAttribute("readonly",""):fe.target.removeAttribute("readonly")},required:function(fe){fe.detail.required?fe.target.setAttribute("required",""):fe.target.removeAttribute("required")},bgColor:function(fe){ne("bgColor","backgroundColor",fe)},fillColor:function(fe){ne("fillColor","backgroundColor",fe)},fgColor:function(fe){ne("fgColor","color",fe)},textColor:function(fe){ne("textColor","color",fe)},borderColor:function(fe){ne("borderColor","borderColor",fe)},strokeColor:function(fe){ne("strokeColor","borderColor",fe)}},ue=0,he=Object.keys(Q.detail);ue<he.length;ue++){var pe=he[ue],me=q[pe]||se[pe];me&&me(Q)}}}]),V}(m),e=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=q.renderInteractiveForms||!q.data.hasAppearance&&!!q.data.fieldValue;return K.call(this,q,{isRenderable:Q})}return d(V,[{key:"setPropertyOnSiblings",value:function(q,Q,re,ne){var se,ue=this.annotationStorage,he=$(document.getElementsByName(q.name));try{for(he.s();!(se=he.n()).done;){var pe=se.value;if(pe!==q){pe[Q]=re;var me=Object.create(null);me[ne]=re,ue.setValue(pe.getAttribute("id"),me)}}}catch(fe){he.e(fe)}finally{he.f()}}},{key:"render",value:function(){var q=this,Q=this.annotationStorage,re=this.data.id;this.container.className="textWidgetAnnotation";var ne=null;if(this.renderInteractiveForms){var se=Q.getValue(re,{value:this.data.fieldValue,valueAsString:this.data.fieldValue}),ue=se.valueAsString||se.value||"",he={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null};this.data.multiLine?(ne=document.createElement("textarea")).textContent=ue:((ne=document.createElement("input")).type="text",ne.setAttribute("value",ue)),he.userValue=ue,ne.setAttribute("id",re),ne.addEventListener("input",function(de){Q.setValue(re,{value:de.target.value}),q.setPropertyOnSiblings(ne,"value",de.target.value,"value")});var pe=function(de){he.formattedValue&&(de.target.value=he.formattedValue),de.target.scrollLeft=0,he.beforeInputSelectionRange=null};if(this.enableScripting&&this.hasJSActions){var me;ne.addEventListener("focus",function(de){he.userValue&&(de.target.value=he.userValue)}),ne.addEventListener("updatefromsandbox",function(de){var oe={value:function(le){he.userValue=le.detail.value||"",Q.setValue(re,{value:he.userValue.toString()}),he.formattedValue||(le.target.value=he.userValue)},valueAsString:function(le){he.formattedValue=le.detail.valueAsString||"",le.target!==document.activeElement&&(le.target.value=he.formattedValue),Q.setValue(re,{formattedValue:he.formattedValue})},selRange:function(le){var ve=x(le.detail.selRange,2),be=ve[0],ke=ve[1];be>=0&&ke<le.target.value.length&&le.target.setSelectionRange(be,ke)}};q._dispatchEventFromSandbox(oe,de)}),ne.addEventListener("keydown",function(de){var oe;he.beforeInputValue=de.target.value;var le=-1;de.key==="Escape"?le=0:de.key==="Enter"?le=2:de.key==="Tab"&&(le=3),le!==-1&&(he.userValue=de.target.value,(oe=q.linkService.eventBus)===null||oe===void 0||oe.dispatch("dispatcheventinsandbox",{source:q,detail:{id:re,name:"Keystroke",value:de.target.value,willCommit:!0,commitKey:le,selStart:de.target.selectionStart,selEnd:de.target.selectionEnd}}))});var fe=pe;pe=null,ne.addEventListener("blur",function(de){var oe;q._mouseState.isDown&&(he.userValue=de.target.value,(oe=q.linkService.eventBus)===null||oe===void 0||oe.dispatch("dispatcheventinsandbox",{source:q,detail:{id:re,name:"Keystroke",value:de.target.value,willCommit:!0,commitKey:1,selStart:de.target.selectionStart,selEnd:de.target.selectionEnd}})),fe(de)}),ne.addEventListener("mousedown",function(de){he.beforeInputValue=de.target.value,he.beforeInputSelectionRange=null}),ne.addEventListener("keyup",function(de){de.target.selectionStart===de.target.selectionEnd&&(he.beforeInputSelectionRange=null)}),ne.addEventListener("select",function(de){he.beforeInputSelectionRange=[de.target.selectionStart,de.target.selectionEnd]}),(me=this.data.actions)!==null&&me!==void 0&&me.Keystroke&&ne.addEventListener("input",function(de){var oe,le=-1,ve=-1;if(he.beforeInputSelectionRange){var be=x(he.beforeInputSelectionRange,2);le=be[0],ve=be[1]}(oe=q.linkService.eventBus)===null||oe===void 0||oe.dispatch("dispatcheventinsandbox",{source:q,detail:{id:re,name:"Keystroke",value:he.beforeInputValue,change:de.data,willCommit:!1,selStart:le,selEnd:ve}})}),this._setEventListeners(ne,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(de){return de.target.value})}if(pe&&ne.addEventListener("blur",pe),ne.disabled=this.data.readOnly,ne.name=this.data.fieldName,this.data.maxLen!==null&&(ne.maxLength=this.data.maxLen),this.data.comb){var ge=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;ne.classList.add("comb"),ne.style.letterSpacing="calc(".concat(ge,"px - 1ch)")}}else(ne=document.createElement("div")).textContent=this.data.fieldValue,ne.style.verticalAlign="middle",ne.style.display="table-cell";return this._setTextStyle(ne),this.container.appendChild(ne),this.container}},{key:"_setTextStyle",value:function(q){var Q=this.data.defaultAppearanceData,re=Q.fontSize,ne=Q.fontColor,se=q.style;re&&(se.fontSize="".concat(re,"px")),se.color=P.Util.makeHexColor(ne[0],ne[1],ne[2]),this.data.textAlignment!==null&&(se.textAlign=["left","center","right"][this.data.textAlignment])}}]),V}(a),t=function(Z){M(V,Z);var K=C(V);function V(q){return g(this,V),K.call(this,q,{isRenderable:q.renderInteractiveForms})}return d(V,[{key:"render",value:function(){var q=this,Q=this.annotationStorage,re=this.data,ne=re.id,se=Q.getValue(ne,{value:re.fieldValue&&(re.exportValue&&re.exportValue===re.fieldValue||!re.exportValue&&re.fieldValue!=="Off")}).value;typeof se=="string"&&(se=se!=="Off",Q.setValue(ne,{value:se})),this.container.className="buttonWidgetAnnotation checkBox";var ue=document.createElement("input");return ue.disabled=re.readOnly,ue.type="checkbox",ue.name=this.data.fieldName,se&&ue.setAttribute("checked",!0),ue.setAttribute("id",ne),ue.addEventListener("change",function(he){var pe,me=he.target.name,fe=$(document.getElementsByName(me));try{for(fe.s();!(pe=fe.n()).done;){var ge=pe.value;ge!==he.target&&(ge.checked=!1,Q.setValue(ge.parentNode.getAttribute("data-annotation-id"),{value:!1}))}}catch(de){fe.e(de)}finally{fe.f()}Q.setValue(ne,{value:he.target.checked})}),this.enableScripting&&this.hasJSActions&&(ue.addEventListener("updatefromsandbox",function(he){var pe={value:function(me){me.target.checked=me.detail.value!=="Off",Q.setValue(ne,{value:me.target.checked})}};q._dispatchEventFromSandbox(pe,he)}),this._setEventListeners(ue,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(he){return he.target.checked})),this.container.appendChild(ue),this.container}}]),V}(a),s=function(Z){M(V,Z);var K=C(V);function V(q){return g(this,V),K.call(this,q,{isRenderable:q.renderInteractiveForms})}return d(V,[{key:"render",value:function(){var q=this;this.container.className="buttonWidgetAnnotation radioButton";var Q=this.annotationStorage,re=this.data,ne=re.id,se=Q.getValue(ne,{value:re.fieldValue===re.buttonValue}).value;typeof se=="string"&&(se=se!==re.buttonValue,Q.setValue(ne,{value:se}));var ue=document.createElement("input");if(ue.disabled=re.readOnly,ue.type="radio",ue.name=re.fieldName,se&&ue.setAttribute("checked",!0),ue.setAttribute("id",ne),ue.addEventListener("change",function(pe){var me,fe=pe.target,ge=$(document.getElementsByName(fe.name));try{for(ge.s();!(me=ge.n()).done;){var de=me.value;de!==fe&&Q.setValue(de.getAttribute("id"),{value:!1})}}catch(oe){ge.e(oe)}finally{ge.f()}Q.setValue(ne,{value:fe.checked})}),this.enableScripting&&this.hasJSActions){var he=re.buttonValue;ue.addEventListener("updatefromsandbox",function(pe){var me={value:function(fe){var ge,de=he===fe.detail.value,oe=$(document.getElementsByName(fe.target.name));try{for(oe.s();!(ge=oe.n()).done;){var le=ge.value,ve=le.getAttribute("id");le.checked=ve===ne&&de,Q.setValue(ve,{value:le.checked})}}catch(be){oe.e(be)}finally{oe.f()}}};q._dispatchEventFromSandbox(me,pe)}),this._setEventListeners(ue,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(pe){return pe.target.checked})}return this.container.appendChild(ue),this.container}}]),V}(a),r=function(Z){M(V,Z);var K=C(V);function V(){return g(this,V),K.apply(this,arguments)}return d(V,[{key:"render",value:function(){var q=j(H(V.prototype),"render",this).call(this);return q.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(q.title=this.data.alternativeText),q}}]),V}(c),p=function(Z){M(V,Z);var K=C(V);function V(q){return g(this,V),K.call(this,q,{isRenderable:q.renderInteractiveForms})}return d(V,[{key:"render",value:function(){var q=this;this.container.className="choiceWidgetAnnotation";var Q=this.annotationStorage,re=this.data.id;Q.getValue(re,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0});var ne=document.createElement("select");ne.disabled=this.data.readOnly,ne.name=this.data.fieldName,ne.setAttribute("id",re),this.data.combo||(ne.size=this.data.options.length,this.data.multiSelect&&(ne.multiple=!0));var se,ue=$(this.data.options);try{for(ue.s();!(se=ue.n()).done;){var he=se.value,pe=document.createElement("option");pe.textContent=he.displayValue,pe.value=he.exportValue,this.data.fieldValue.includes(he.exportValue)&&pe.setAttribute("selected",!0),ne.appendChild(pe)}}catch(ge){ue.e(ge)}finally{ue.f()}var me=function(ge,de){var oe=de?"value":"textContent",le=ge.target.options;return ge.target.multiple?Array.prototype.filter.call(le,function(ve){return ve.selected}).map(function(ve){return ve[oe]}):le.selectedIndex===-1?null:le[le.selectedIndex][oe]},fe=function(ge){var de=ge.target.options;return Array.prototype.map.call(de,function(oe){return{displayValue:oe.textContent,exportValue:oe.value}})};return this.enableScripting&&this.hasJSActions?(ne.addEventListener("updatefromsandbox",function(ge){var de={value:function(oe){var le=ne.options,ve=oe.detail.value,be=new Set(Array.isArray(ve)?ve:[ve]);Array.prototype.forEach.call(le,function(ke){ke.selected=be.has(ke.value)}),Q.setValue(re,{value:me(oe,!0)})},multipleSelection:function(oe){ne.multiple=!0},remove:function(oe){var le=ne.options,ve=oe.detail.remove;if(le[ve].selected=!1,ne.remove(ve),le.length>0){var be=Array.prototype.findIndex.call(le,function(ke){return ke.selected});be===-1&&(le[0].selected=!0)}Q.setValue(re,{value:me(oe,!0),items:fe(oe)})},clear:function(oe){for(;ne.length!==0;)ne.remove(0);Q.setValue(re,{value:null,items:[]})},insert:function(oe){var le=oe.detail.insert,ve=le.index,be=le.displayValue,ke=le.exportValue,_e=document.createElement("option");_e.textContent=be,_e.value=ke,ne.insertBefore(_e,ne.children[ve]),Q.setValue(re,{value:me(oe,!0),items:fe(oe)})},items:function(oe){for(var le=oe.detail.items;ne.length!==0;)ne.remove(0);var ve,be=$(le);try{for(be.s();!(ve=be.n()).done;){var ke=ve.value,_e=ke.displayValue,xe=ke.exportValue,Ae=document.createElement("option");Ae.textContent=_e,Ae.value=xe,ne.appendChild(Ae)}}catch(Ee){be.e(Ee)}finally{be.f()}ne.options.length>0&&(ne.options[0].selected=!0),Q.setValue(re,{value:me(oe,!0),items:fe(oe)})},indices:function(oe){var le=new Set(oe.detail.indices),ve=oe.target.options;Array.prototype.forEach.call(ve,function(be,ke){be.selected=le.has(ke)}),Q.setValue(re,{value:me(oe,!0)})},editable:function(oe){oe.target.disabled=!oe.detail.editable}};q._dispatchEventFromSandbox(de,ge)}),ne.addEventListener("input",function(ge){var de,oe=me(ge,!0),le=me(ge,!1);Q.setValue(re,{value:oe}),(de=q.linkService.eventBus)===null||de===void 0||de.dispatch("dispatcheventinsandbox",{source:q,detail:{id:re,name:"Keystroke",value:le,changeEx:oe,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(ne,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],function(ge){return ge.target.checked})):ne.addEventListener("input",function(ge){Q.setValue(re,{value:me(ge)})}),this.container.appendChild(ne),this.container}}]),V}(a),k=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!(!q.data.title&&!q.data.contents);return K.call(this,q,{isRenderable:Q})}return d(V,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var q='[data-annotation-id="'.concat(this.data.parentId,'"]'),Q=this.layer.querySelectorAll(q);if(Q.length===0)return this.container;var re=new w({container:this.container,trigger:Array.from(Q),color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),ne=this.page,se=P.Util.normalizeRect([this.data.parentRect[0],ne.view[3]-this.data.parentRect[1]+ne.view[1],this.data.parentRect[2],ne.view[3]-this.data.parentRect[3]+ne.view[1]]),ue=se[0]+this.data.parentRect[2]-this.data.parentRect[0],he=se[1];return this.container.style.transformOrigin="".concat(-ue,"px ").concat(-he,"px"),this.container.style.left="".concat(ue,"px"),this.container.style.top="".concat(he,"px"),this.container.appendChild(re.render()),this.container}}]),V}(m),w=function(){function Z(K){g(this,Z),this.container=K.container,this.trigger=K.trigger,this.color=K.color,this.title=K.title,this.modificationDate=K.modificationDate,this.contents=K.contents,this.hideWrapper=K.hideWrapper||!1,this.pinned=!1}return d(Z,[{key:"render",value:function(){var K=document.createElement("div");K.className="popupWrapper",this.hideElement=this.hideWrapper?K:this.container,this.hideElement.hidden=!0;var V=document.createElement("div");V.className="popup";var q=this.color;if(q){var Q=.7*(255-q[0])+q[0],re=.7*(255-q[1])+q[1],ne=.7*(255-q[2])+q[2];V.style.backgroundColor=P.Util.makeHexColor(0|Q,0|re,0|ne)}var se=document.createElement("h1");se.textContent=this.title,V.appendChild(se);var ue=E.PDFDateString.toDateObject(this.modificationDate);if(ue){var he=document.createElement("span");he.textContent="{{date}}, {{time}}",he.dataset.l10nId="annotation_date_string",he.dataset.l10nArgs=JSON.stringify({date:ue.toLocaleDateString(),time:ue.toLocaleTimeString()}),V.appendChild(he)}var pe=this._formatContents(this.contents);V.appendChild(pe),Array.isArray(this.trigger)||(this.trigger=[this.trigger]);var me,fe=$(this.trigger);try{for(fe.s();!(me=fe.n()).done;){var ge=me.value;ge.addEventListener("click",this._toggle.bind(this)),ge.addEventListener("mouseover",this._show.bind(this,!1)),ge.addEventListener("mouseout",this._hide.bind(this,!1))}}catch(de){fe.e(de)}finally{fe.f()}return V.addEventListener("click",this._hide.bind(this,!0)),K.appendChild(V),K}},{key:"_formatContents",value:function(K){for(var V=document.createElement("p"),q=K.split(/(?:\r\n?|\n)/),Q=0,re=q.length;Q<re;++Q){var ne=q[Q];V.appendChild(document.createTextNode(ne)),Q<re-1&&V.appendChild(document.createElement("br"))}return V}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var K=arguments.length>0&&arguments[0]!==void 0&&arguments[0];K&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var K=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];K&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}]),Z}(),b=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0})}return d(V,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),V}(m),i=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0})}return d(V,[{key:"render",value:function(){this.container.className="lineAnnotation";var q=this.data,Q=q.rect[2]-q.rect[0],re=q.rect[3]-q.rect[1],ne=this.svgFactory.create(Q,re),se=this.svgFactory.createElement("svg:line");return se.setAttribute("x1",q.rect[2]-q.lineCoordinates[0]),se.setAttribute("y1",q.rect[3]-q.lineCoordinates[1]),se.setAttribute("x2",q.rect[2]-q.lineCoordinates[2]),se.setAttribute("y2",q.rect[3]-q.lineCoordinates[3]),se.setAttribute("stroke-width",q.borderStyle.width||1),se.setAttribute("stroke","transparent"),ne.appendChild(se),this.container.append(ne),this._createPopup(se,q),this.container}}]),V}(m),o=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0})}return d(V,[{key:"render",value:function(){this.container.className="squareAnnotation";var q=this.data,Q=q.rect[2]-q.rect[0],re=q.rect[3]-q.rect[1],ne=this.svgFactory.create(Q,re),se=q.borderStyle.width,ue=this.svgFactory.createElement("svg:rect");return ue.setAttribute("x",se/2),ue.setAttribute("y",se/2),ue.setAttribute("width",Q-se),ue.setAttribute("height",re-se),ue.setAttribute("stroke-width",se||1),ue.setAttribute("stroke","transparent"),ue.setAttribute("fill","none"),ne.appendChild(ue),this.container.append(ne),this._createPopup(ue,q),this.container}}]),V}(m),u=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0})}return d(V,[{key:"render",value:function(){this.container.className="circleAnnotation";var q=this.data,Q=q.rect[2]-q.rect[0],re=q.rect[3]-q.rect[1],ne=this.svgFactory.create(Q,re),se=q.borderStyle.width,ue=this.svgFactory.createElement("svg:ellipse");return ue.setAttribute("cx",Q/2),ue.setAttribute("cy",re/2),ue.setAttribute("rx",Q/2-se/2),ue.setAttribute("ry",re/2-se/2),ue.setAttribute("stroke-width",se||1),ue.setAttribute("stroke","transparent"),ue.setAttribute("fill","none"),ne.appendChild(ue),this.container.append(ne),this._createPopup(ue,q),this.container}}]),V}(m),A=function(Z){M(V,Z);var K=C(V);function V(q){var Q;g(this,V);var re=!!(q.data.hasPopup||q.data.title||q.data.contents);return(Q=K.call(this,q,{isRenderable:re,ignoreBorder:!0})).containerClassName="polylineAnnotation",Q.svgElementName="svg:polyline",Q}return d(V,[{key:"render",value:function(){this.container.className=this.containerClassName;var q,Q=this.data,re=Q.rect[2]-Q.rect[0],ne=Q.rect[3]-Q.rect[1],se=this.svgFactory.create(re,ne),ue=[],he=$(Q.vertices);try{for(he.s();!(q=he.n()).done;){var pe=q.value,me=pe.x-Q.rect[0],fe=Q.rect[3]-pe.y;ue.push(me+","+fe)}}catch(de){he.e(de)}finally{he.f()}ue=ue.join(" ");var ge=this.svgFactory.createElement(this.svgElementName);return ge.setAttribute("points",ue),ge.setAttribute("stroke-width",Q.borderStyle.width||1),ge.setAttribute("stroke","transparent"),ge.setAttribute("fill","none"),se.appendChild(ge),this.container.append(se),this._createPopup(ge,Q),this.container}}]),V}(m),I=function(Z){M(V,Z);var K=C(V);function V(q){var Q;return g(this,V),(Q=K.call(this,q)).containerClassName="polygonAnnotation",Q.svgElementName="svg:polygon",Q}return V}(A),O=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0})}return d(V,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),V}(m),R=function(Z){M(V,Z);var K=C(V);function V(q){var Q;g(this,V);var re=!!(q.data.hasPopup||q.data.title||q.data.contents);return(Q=K.call(this,q,{isRenderable:re,ignoreBorder:!0})).containerClassName="inkAnnotation",Q.svgElementName="svg:polyline",Q}return d(V,[{key:"render",value:function(){this.container.className=this.containerClassName;var q,Q=this.data,re=Q.rect[2]-Q.rect[0],ne=Q.rect[3]-Q.rect[1],se=this.svgFactory.create(re,ne),ue=$(Q.inkLists);try{for(ue.s();!(q=ue.n()).done;){var he,pe=q.value,me=[],fe=$(pe);try{for(fe.s();!(he=fe.n()).done;){var ge=he.value,de=ge.x-Q.rect[0],oe=Q.rect[3]-ge.y;me.push("".concat(de,",").concat(oe))}}catch(ve){fe.e(ve)}finally{fe.f()}me=me.join(" ");var le=this.svgFactory.createElement(this.svgElementName);le.setAttribute("points",me),le.setAttribute("stroke-width",Q.borderStyle.width||1),le.setAttribute("stroke","transparent"),le.setAttribute("fill","none"),this._createPopup(le,Q),se.appendChild(le)}}catch(ve){ue.e(ve)}finally{ue.f()}return this.container.append(se),this.container}}]),V}(m),G=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0,createQuadrilaterals:!0})}return d(V,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}]),V}(m),Y=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0,createQuadrilaterals:!0})}return d(V,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}]),V}(m),W=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0,createQuadrilaterals:!0})}return d(V,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}]),V}(m),z=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0,createQuadrilaterals:!0})}return d(V,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}]),V}(m),ee=function(Z){M(V,Z);var K=C(V);function V(q){g(this,V);var Q=!!(q.data.hasPopup||q.data.title||q.data.contents);return K.call(this,q,{isRenderable:Q,ignoreBorder:!0})}return d(V,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),V}(m),te=function(Z){M(V,Z);var K=C(V);function V(q){var Q,re;g(this,V);var ne=(re=K.call(this,q,{isRenderable:!0})).data.file,se=ne.filename,ue=ne.content;return re.filename=(0,E.getFilenameFromUrl)(se),re.content=ue,(Q=re.linkService.eventBus)===null||Q===void 0||Q.dispatch("fileattachmentannotation",{source:J(re),id:(0,P.stringToPDFString)(se),filename:se,content:ue}),re}return d(V,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var q=document.createElement("div");return q.style.height=this.container.style.height,q.style.width=this.container.style.width,q.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(q,this.data),this.container.appendChild(q),this.container}},{key:"_download",value:function(){var q;(q=this.downloadManager)===null||q===void 0||q.openOrDownloadData(this.container,this.content,this.filename)}}]),V}(m),ae=function(){function Z(){g(this,Z)}return d(Z,null,[{key:"render",value:function(K){var V,q=[],Q=[],re=$(K.annotations);try{for(re.s();!(V=re.n()).done;){var ne=V.value;ne&&(ne.annotationType!==P.AnnotationType.POPUP?q.push(ne):Q.push(ne))}}catch(oe){re.e(oe)}finally{re.f()}Q.length&&q.push.apply(q,Q);for(var se=0,ue=q;se<ue.length;se++){var he=ue[se],pe=y.create({data:he,layer:K.div,page:K.page,viewport:K.viewport,linkService:K.linkService,downloadManager:K.downloadManager,imageResourcesPath:K.imageResourcesPath||"",renderInteractiveForms:K.renderInteractiveForms!==!1,svgFactory:new E.DOMSVGFactory,annotationStorage:K.annotationStorage||new T.AnnotationStorage,enableScripting:K.enableScripting,hasJSActions:K.hasJSActions,mouseState:K.mouseState||{isDown:!1}});if(pe.isRenderable){var me=pe.render();if(he.hidden&&(me.style.visibility="hidden"),Array.isArray(me)){var fe,ge=$(me);try{for(ge.s();!(fe=ge.n()).done;){var de=fe.value;K.div.appendChild(de)}}catch(oe){ge.e(oe)}finally{ge.f()}}else pe instanceof k?K.div.prepend(me):K.div.appendChild(me)}}}},{key:"update",value:function(K){var V,q="matrix(".concat(K.viewport.transform.join(","),")"),Q=$(K.annotations);try{for(Q.s();!(V=Q.n()).done;){var re=V.value,ne=K.div.querySelectorAll('[data-annotation-id="'.concat(re.id,'"]'));if(ne){var se,ue=$(ne);try{for(ue.s();!(se=ue.n()).done;)se.value.style.transform=q}catch(he){ue.e(he)}finally{ue.f()}}}}catch(he){Q.e(he)}finally{Q.f()}K.div.hidden=!1}}]),Z}();_.AnnotationLayer=ae},(L,_)=>{function h(N,j){return function(x){if(Array.isArray(x))return x}(N)||function(x,M){var D=x&&(typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"]);if(D!=null){var C,U,J=[],H=!0,$=!1;try{for(D=D.call(x);!(H=(C=D.next()).done)&&(J.push(C.value),!M||J.length!==M);H=!0);}catch(B){$=!0,U=B}finally{try{H||D.return==null||D.return()}finally{if($)throw U}}return J}}(N,j)||function(x,M){if(x){if(typeof x=="string")return f(x,M);var D=Object.prototype.toString.call(x).slice(8,-1);return D==="Object"&&x.constructor&&(D=x.constructor.name),D==="Map"||D==="Set"?Array.from(x):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?f(x,M):void 0}}(N,j)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function f(N,j){(j==null||j>N.length)&&(j=N.length);for(var x=0,M=new Array(j);x<j;x++)M[x]=N[x];return M}function E(N,j){for(var x=0;x<j.length;x++){var M=j[x];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(N,M.key,M)}}function P(N){return Math.floor(255*Math.max(0,Math.min(1,N))).toString(16).padStart(2,"0")}Object.defineProperty(_,"__esModule",{value:!0}),_.ColorConverters=void 0;var T=function(){function N(){(function(D,C){if(!(D instanceof C))throw new TypeError("Cannot call a class as a function")})(this,N)}var j,x,M;return j=N,M=[{key:"CMYK_G",value:function(D){var C=h(D,4),U=C[0],J=C[1],H=C[2],$=C[3];return["G",1-Math.min(1,.3*U+.59*H+.11*J+$)]}},{key:"G_CMYK",value:function(D){return["CMYK",0,0,0,1-h(D,1)[0]]}},{key:"G_RGB",value:function(D){var C=h(D,1)[0];return["RGB",C,C,C]}},{key:"G_HTML",value:function(D){var C=P(h(D,1)[0]);return"#".concat(C).concat(C).concat(C)}},{key:"RGB_G",value:function(D){var C=h(D,3);return["G",.3*C[0]+.59*C[1]+.11*C[2]]}},{key:"RGB_HTML",value:function(D){var C=h(D,3),U=C[0],J=C[1],H=C[2],$=P(U),B=P(J),F=P(H);return"#".concat($).concat(B).concat(F)}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"CMYK_RGB",value:function(D){var C=h(D,4),U=C[0],J=C[1],H=C[2],$=C[3];return["RGB",1-Math.min(1,U+$),1-Math.min(1,H+$),1-Math.min(1,J+$)]}},{key:"CMYK_HTML",value:function(D){return this.RGB_HTML(this.CMYK_RGB(D))}},{key:"RGB_CMYK",value:function(D){var C=h(D,3),U=1-C[0],J=1-C[1],H=1-C[2];return["CMYK",U,J,H,Math.min(U,J,H)]}}],(x=null)&&E(j.prototype,x),M&&E(j,M),N}();_.ColorConverters=T},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.renderTextLayer=function($){var B=new H({textContent:$.textContent,textContentStream:$.textContentStream,container:$.container,viewport:$.viewport,textDivs:$.textDivs,textContentItemsStr:$.textContentItemsStr,enhanceTextSelection:$.enhanceTextSelection});return B._render($.timeout),B};var f=h(4);function E($,B){for(var F=0;F<B.length;F++){var g=B[F];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty($,g.key,g)}}function P($,B){var F=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!F){if(Array.isArray($)||(F=function(c,l){if(c){if(typeof c=="string")return T(c,l);var a=Object.prototype.toString.call(c).slice(8,-1);return a==="Object"&&c.constructor&&(a=c.constructor.name),a==="Map"||a==="Set"?Array.from(c):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?T(c,l):void 0}}($))||B&&$&&typeof $.length=="number"){F&&($=F);var g=0,v=function(){};return{s:v,n:function(){return g>=$.length?{done:!0}:{done:!1,value:$[g++]}},e:function(c){throw c},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,y=!0,m=!1;return{s:function(){F=F.call($)},n:function(){var c=F.next();return y=c.done,c},e:function(c){m=!0,d=c},f:function(){try{y||F.return==null||F.return()}finally{if(m)throw d}}}}function T($,B){(B==null||B>$.length)&&(B=$.length);for(var F=0,g=new Array(B);F<B;F++)g[F]=$[F];return g}var N=30,j=new Map,x=/^\s+$/g;function M($,B,F,g){var v=document.createElement("span"),d={angle:0,canvasWidth:0,hasText:B.str!=="",hasEOL:B.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};$._textDivs.push(v);var y=f.Util.transform($._viewport.transform,B.transform),m=Math.atan2(y[1],y[0]),c=F[B.fontName];c.vertical&&(m+=Math.PI/2);var l,a,e=Math.hypot(y[2],y[3]),t=e*function(A,I){var O=j.get(A);if(O)return O;I.save(),I.font="".concat(N,"px ").concat(A);var R=I.measureText(""),G=R.fontBoundingBoxAscent,Y=Math.abs(R.fontBoundingBoxDescent);if(G){I.restore();var W=G/(G+Y);return j.set(A,W),W}I.strokeStyle="red",I.clearRect(0,0,N,N),I.strokeText("g",0,0);var z=I.getImageData(0,0,N,N).data;Y=0;for(var ee=z.length-1-3;ee>=0;ee-=4)if(z[ee]>0){Y=Math.ceil(ee/4/N);break}I.clearRect(0,0,N,N),I.strokeText("A",0,N),G=0;for(var te=0,ae=(z=I.getImageData(0,0,N,N).data).length;te<ae;te+=4)if(z[te]>0){G=N-Math.floor(te/4/N);break}if(I.restore(),G){var Z=G/(G+Y);return j.set(A,Z),Z}return j.set(A,.8),.8}(c.fontFamily,g);m===0?(l=y[4],a=y[5]-t):(l=y[4]+t*Math.sin(m),a=y[5]-t*Math.cos(m)),v.style.left="".concat(l,"px"),v.style.top="".concat(a,"px"),v.style.fontSize="".concat(e,"px"),v.style.fontFamily=c.fontFamily,v.setAttribute("role","presentation"),v.textContent=B.str,v.dir=B.dir,$._fontInspectorEnabled&&(v.dataset.fontName=B.fontName),m!==0&&(d.angle=m*(180/Math.PI));var s=!1;if(B.str.length>1||$._enhanceTextSelection&&x.test(B.str))s=!0;else if(B.transform[0]!==B.transform[3]){var r=Math.abs(B.transform[0]),p=Math.abs(B.transform[3]);r!==p&&Math.max(r,p)/Math.min(r,p)>1.5&&(s=!0)}if(s&&(c.vertical?d.canvasWidth=B.height*$._viewport.scale:d.canvasWidth=B.width*$._viewport.scale),$._textDivProperties.set(v,d),$._textContentStream&&$._layoutText(v),$._enhanceTextSelection&&d.hasText){var k=1,w=0;m!==0&&(k=Math.cos(m),w=Math.sin(m));var b,i,o=(c.vertical?B.height:B.width)*$._viewport.scale,u=e;m!==0?(b=[k,w,-w,k,l,a],i=f.Util.getAxialAlignedBoundingBox([0,0,o,u],b)):i=[l,a,l+o,a+u],$._bounds.push({left:i[0],top:i[1],right:i[2],bottom:i[3],div:v,size:[o,u],m:b})}}function D($){if(!$._canceled){var B=$._textDivs,F=$._capability,g=B.length;if(g>1e5)return $._renderingDone=!0,void F.resolve();if(!$._textContentStream)for(var v=0;v<g;v++)$._layoutText(B[v]);$._renderingDone=!0,F.resolve()}}function C($,B,F){for(var g=0,v=0;v<F;v++){var d=$[B++];d>0&&(g=g?Math.min(d,g):d)}return g}function U($){for(var B=$._bounds,F=$._viewport,g=function(b,i,o){var u=o.map(function(te,ae){return{x1:te.left,y1:te.top,x2:te.right,y2:te.bottom,index:ae,x1New:void 0,x2New:void 0}});J(b,u);var A,I=new Array(o.length),O=P(u);try{for(O.s();!(A=O.n()).done;){var R=A.value,G=R.index;I[G]={left:R.x1New,top:0,right:R.x2New,bottom:0}}}catch(te){O.e(te)}finally{O.f()}o.map(function(te,ae){var Z=I[ae],K=u[ae];K.x1=te.top,K.y1=b-Z.right,K.x2=te.bottom,K.y2=b-Z.left,K.index=ae,K.x1New=void 0,K.x2New=void 0}),J(i,u);var Y,W=P(u);try{for(W.s();!(Y=W.n()).done;){var z=Y.value,ee=z.index;I[ee].top=z.x1New,I[ee].bottom=z.x2New}}catch(te){W.e(te)}finally{W.f()}return I}(F.width,F.height,B),v=0;v<g.length;v++){var d=B[v].div,y=$._textDivProperties.get(d);if(y.angle!==0){for(var m=g[v],c=B[v],l=c.m,a=l[0],e=l[1],t=[[0,0],[0,c.size[1]],[c.size[0],0],c.size],s=new Float64Array(64),r=0,p=t.length;r<p;r++){var k=f.Util.applyTransform(t[r],l);s[r+0]=a&&(m.left-k[0])/a,s[r+4]=e&&(m.top-k[1])/e,s[r+8]=a&&(m.right-k[0])/a,s[r+12]=e&&(m.bottom-k[1])/e,s[r+16]=e&&(m.left-k[0])/-e,s[r+20]=a&&(m.top-k[1])/a,s[r+24]=e&&(m.right-k[0])/-e,s[r+28]=a&&(m.bottom-k[1])/a,s[r+32]=a&&(m.left-k[0])/-a,s[r+36]=e&&(m.top-k[1])/-e,s[r+40]=a&&(m.right-k[0])/-a,s[r+44]=e&&(m.bottom-k[1])/-e,s[r+48]=e&&(m.left-k[0])/e,s[r+52]=a&&(m.top-k[1])/-a,s[r+56]=e&&(m.right-k[0])/e,s[r+60]=a&&(m.bottom-k[1])/-a}var w=1+Math.min(Math.abs(a),Math.abs(e));y.paddingLeft=C(s,32,16)/w,y.paddingTop=C(s,48,16)/w,y.paddingRight=C(s,0,16)/w,y.paddingBottom=C(s,16,16)/w,$._textDivProperties.set(d,y)}else y.paddingLeft=B[v].left-g[v].left,y.paddingTop=B[v].top-g[v].top,y.paddingRight=g[v].right-B[v].right,y.paddingBottom=g[v].bottom-B[v].bottom,$._textDivProperties.set(d,y)}}function J($,B){B.sort(function(u,A){return u.x1-A.x1||u.index-A.index});var F,g=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}],v=P(B);try{for(v.s();!(F=v.n()).done;){for(var d=F.value,y=0;y<g.length&&g[y].end<=d.y1;)y++;for(var m=g.length-1;m>=0&&g[m].start>=d.y2;)m--;var c=void 0,l=void 0,a=void 0,e=void 0,t=-1/0;for(a=y;a<=m;a++){l=(c=g[a]).boundary;var s=void 0;(s=l.x2>d.x1?l.index>d.index?l.x1New:d.x1:l.x2New===void 0?(l.x2+d.x1)/2:l.x2New)>t&&(t=s)}for(d.x1New=t,a=y;a<=m;a++)(l=(c=g[a]).boundary).x2New===void 0?l.x2>d.x1?l.index>d.index&&(l.x2New=l.x2):l.x2New=t:l.x2New>t&&(l.x2New=Math.max(t,l.x2));var r=[],p=null;for(a=y;a<=m;a++){var k=(l=(c=g[a]).boundary).x2>d.x2?l:d;p===k?r[r.length-1].end=c.end:(r.push({start:c.start,end:c.end,boundary:k}),p=k)}for(g[y].start<d.y1&&(r[0].start=d.y1,r.unshift({start:g[y].start,end:d.y1,boundary:g[y].boundary})),d.y2<g[m].end&&(r[r.length-1].end=d.y2,r.push({start:d.y2,end:g[m].end,boundary:g[m].boundary})),a=y;a<=m;a++)if((l=(c=g[a]).boundary).x2New===void 0){var w=!1;for(e=y-1;!w&&e>=0&&g[e].start>=l.y1;e--)w=g[e].boundary===l;for(e=m+1;!w&&e<g.length&&g[e].end<=l.y2;e++)w=g[e].boundary===l;for(e=0;!w&&e<r.length;e++)w=r[e].boundary===l;w||(l.x2New=t)}Array.prototype.splice.apply(g,[y,m-y+1].concat(r))}}catch(u){v.e(u)}finally{v.f()}for(var b=0,i=g;b<i.length;b++){var o=i[b].boundary;o.x2New===void 0&&(o.x2New=Math.max($,o.x2))}}var H=function(){function $(g){var v,d=this,y=g.textContent,m=g.textContentStream,c=g.container,l=g.viewport,a=g.textDivs,e=g.textContentItemsStr,t=g.enhanceTextSelection;(function(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")})(this,$),this._textContent=y,this._textContentStream=m,this._container=c,this._document=c.ownerDocument,this._viewport=l,this._textDivs=a||[],this._textContentItemsStr=e||[],this._enhanceTextSelection=!!t,this._fontInspectorEnabled=!((v=globalThis.FontInspector)===null||v===void 0||!v.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,f.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){d._layoutTextCtx&&(d._layoutTextCtx.canvas.width=0,d._layoutTextCtx.canvas.height=0,d._layoutTextCtx=null)}).catch(function(){})}var B,F;return B=$,F=[{key:"promise",get:function(){return this._capability.promise}},{key:"cancel",value:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new f.AbortException("TextLayer task cancelled.")),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}},{key:"_processItems",value:function(g,v){for(var d=0,y=g.length;d<y;d++)if(g[d].str!==void 0)this._textContentItemsStr.push(g[d].str),M(this,g[d],v,this._layoutTextCtx);else if(g[d].type==="beginMarkedContentProps"||g[d].type==="beginMarkedContent"){var m=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),g[d].id!==null&&this._container.setAttribute("id","".concat(g[d].id)),m.appendChild(this._container)}else g[d].type==="endMarkedContent"&&(this._container=this._container.parentNode)}},{key:"_layoutText",value:function(g){var v=this._textDivProperties.get(g),d="";if(v.canvasWidth!==0&&v.hasText){var y=g.style,m=y.fontSize,c=y.fontFamily;m===this._layoutTextLastFontSize&&c===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(m," ").concat(c),this._layoutTextLastFontSize=m,this._layoutTextLastFontFamily=c);var l=this._layoutTextCtx.measureText(g.textContent).width;l>0&&(v.scale=v.canvasWidth/l,d="scaleX(".concat(v.scale,")"))}if(v.angle!==0&&(d="rotate(".concat(v.angle,"deg) ").concat(d)),d.length>0&&(this._enhanceTextSelection&&(v.originalTransform=d),g.style.transform=d),v.hasText&&this._container.appendChild(g),v.hasEOL){var a=document.createElement("br");a.setAttribute("role","presentation"),this._container.appendChild(a)}}},{key:"_render",value:function(){var g=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,d=(0,f.createPromiseCapability)(),y=Object.create(null),m=this._document.createElement("canvas");if(m.height=m.width=N,m.mozOpaque=!0,this._layoutTextCtx=m.getContext("2d",{alpha:!1}),this._textContent){var c=this._textContent.items,l=this._textContent.styles;this._processItems(c,l),d.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var a=function e(){g._reader.read().then(function(t){var s=t.value;t.done?d.resolve():(Object.assign(y,s.styles),g._processItems(s.items,y),e())},d.reject)};this._reader=this._textContentStream.getReader(),a()}d.promise.then(function(){y=null,v?g._renderTimer=setTimeout(function(){D(g),g._renderTimer=null},v):D(g)},this._capability.reject)}},{key:"expandTextDivs",value:function(){var g=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this._enhanceTextSelection&&this._renderingDone){this._bounds!==null&&(U(this),this._bounds=null);for(var v=[],d=[],y=0,m=this._textDivs.length;y<m;y++){var c=this._textDivs[y],l=this._textDivProperties.get(c);l.hasText&&(g?(v.length=0,d.length=0,l.originalTransform&&v.push(l.originalTransform),l.paddingTop>0?(d.push("".concat(l.paddingTop,"px")),v.push("translateY(".concat(-l.paddingTop,"px)"))):d.push(0),l.paddingRight>0?d.push("".concat(l.paddingRight/l.scale,"px")):d.push(0),l.paddingBottom>0?d.push("".concat(l.paddingBottom,"px")):d.push(0),l.paddingLeft>0?(d.push("".concat(l.paddingLeft/l.scale,"px")),v.push("translateX(".concat(-l.paddingLeft/l.scale,"px)"))):d.push(0),c.style.padding=d.join(" "),v.length&&(c.style.transform=v.join(" "))):(c.style.padding=null,c.style.transform=l.originalTransform))}}}}],F&&E(B.prototype,F),$}()},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.SVGGraphics=void 0;var f=h(4),E=h(1),P=h(6);function T(l){return function(a){if(Array.isArray(a))return M(a)}(l)||function(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(l)||x(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function N(l,a){return function(e){if(Array.isArray(e))return e}(l)||function(e,t){var s=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(s!=null){var r,p,k=[],w=!0,b=!1;try{for(s=s.call(e);!(w=(r=s.next()).done)&&(k.push(r.value),!t||k.length!==t);w=!0);}catch(i){b=!0,p=i}finally{try{w||s.return==null||s.return()}finally{if(b)throw p}}return k}}(l,a)||x(l,a)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function j(l,a){var e=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!e){if(Array.isArray(l)||(e=x(l))||a&&l&&typeof l.length=="number"){e&&(l=e);var t=0,s=function(){};return{s,n:function(){return t>=l.length?{done:!0}:{done:!1,value:l[t++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,p=!0,k=!1;return{s:function(){e=e.call(l)},n:function(){var w=e.next();return p=w.done,w},e:function(w){k=!0,r=w},f:function(){try{p||e.return==null||e.return()}finally{if(k)throw r}}}}function x(l,a){if(l){if(typeof l=="string")return M(l,a);var e=Object.prototype.toString.call(l).slice(8,-1);return e==="Object"&&l.constructor&&(e=l.constructor.name),e==="Map"||e==="Set"?Array.from(l):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?M(l,a):void 0}}function M(l,a){(a==null||a>l.length)&&(a=l.length);for(var e=0,t=new Array(a);e<a;e++)t[e]=l[e];return t}function D(l,a){for(var e=0;e<a.length;e++){var t=a[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function C(l,a,e){return a&&D(l.prototype,a),e&&D(l,e),l}function U(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}var J=function l(){U(this,l),(0,f.unreachable)("Not implemented: SVGGraphics")};_.SVGGraphics=J;var H=function(l){if(Number.isInteger(l))return l.toString();var a=l.toFixed(10),e=a.length-1;if(a[e]!=="0")return a;do e--;while(a[e]==="0");return a.substring(0,a[e]==="."?e:e+1)},$=function(l){if(l[4]===0&&l[5]===0){if(l[1]===0&&l[2]===0)return l[0]===1&&l[3]===1?"":"scale(".concat(H(l[0])," ").concat(H(l[3]),")");if(l[0]===l[3]&&l[1]===-l[2]){var a=180*Math.acos(l[0])/Math.PI;return"rotate(".concat(H(a),")")}}else if(l[0]===1&&l[1]===0&&l[2]===0&&l[3]===1)return"translate(".concat(H(l[4])," ").concat(H(l[5]),")");return"matrix(".concat(H(l[0])," ").concat(H(l[1])," ").concat(H(l[2])," ").concat(H(l[3])," ").concat(H(l[4])," ")+"".concat(H(l[5]),")")},B={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},F=["butt","round","square"],g=["miter","round","bevel"],v=function(){for(var l=new Uint8Array([137,80,78,71,13,10,26,10]),a=new Int32Array(256),e=0;e<256;e++){for(var t=e,s=0;s<8;s++)t=1&t?3988292384^t>>1&2147483647:t>>1&2147483647;a[e]=t}function r(w,b,i,o){var u=o,A=b.length;i[u]=A>>24&255,i[u+1]=A>>16&255,i[u+2]=A>>8&255,i[u+3]=255&A,i[u+=4]=255&w.charCodeAt(0),i[u+1]=255&w.charCodeAt(1),i[u+2]=255&w.charCodeAt(2),i[u+3]=255&w.charCodeAt(3),u+=4,i.set(b,u);var I=function(O,R,G){for(var Y=-1,W=R;W<G;W++){var z=255&(Y^O[W]);Y=Y>>>8^a[z]}return-1^Y}(i,o+4,u+=b.length);i[u]=I>>24&255,i[u+1]=I>>16&255,i[u+2]=I>>8&255,i[u+3]=255&I}function p(w){var b=w.length,i=65535,o=Math.ceil(b/i),u=new Uint8Array(2+b+5*o+4),A=0;u[A++]=120,u[A++]=156;for(var I=0;b>i;)u[A++]=0,u[A++]=255,u[A++]=255,u[A++]=0,u[A++]=0,u.set(w.subarray(I,I+i),A),A+=i,I+=i,b-=i;u[A++]=1,u[A++]=255&b,u[A++]=b>>8&255,u[A++]=255&~b,u[A++]=(65535&~b)>>8&255,u.set(w.subarray(I),A),A+=w.length-I;var O=function(R,G,Y){for(var W=1,z=0,ee=G;ee<Y;++ee)z=(z+(W=(W+(255&R[ee]))%65521))%65521;return z<<16|W}(w,0,w.length);return u[A++]=O>>24&255,u[A++]=O>>16&255,u[A++]=O>>8&255,u[A++]=255&O,u}function k(w,b,i,o){var u,A,I,O=w.width,R=w.height,G=w.data;switch(b){case f.ImageKind.GRAYSCALE_1BPP:A=0,u=1,I=O+7>>3;break;case f.ImageKind.RGB_24BPP:A=2,u=8,I=3*O;break;case f.ImageKind.RGBA_32BPP:A=6,u=8,I=4*O;break;default:throw new Error("invalid format")}for(var Y=new Uint8Array((1+I)*R),W=0,z=0,ee=0;ee<R;++ee)Y[W++]=0,Y.set(G.subarray(z,z+I),W),z+=I,W+=I;if(b===f.ImageKind.GRAYSCALE_1BPP&&o){W=0;for(var te=0;te<R;te++){W++;for(var ae=0;ae<I;ae++)Y[W++]^=255}}var Z=new Uint8Array([O>>24&255,O>>16&255,O>>8&255,255&O,R>>24&255,R>>16&255,R>>8&255,255&R,u,A,0,0,0]),K=function(re){if(!P.isNodeJS)return p(re);try{var ne;ne=parseInt(process.versions.node)>=8?re:Buffer.from(re);var se=__webpack_require__(324).deflateSync(ne,{level:9});return se instanceof Uint8Array?se:new Uint8Array(se)}catch(ue){(0,f.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+ue)}return p(re)}(Y),V=l.length+36+Z.length+K.length,q=new Uint8Array(V),Q=0;return q.set(l,Q),r("IHDR",Z,q,Q+=l.length),r("IDATA",K,q,Q+=12+Z.length),Q+=12+K.length,r("IEND",new Uint8Array(0),q,Q),(0,f.createObjectURL)(q,"image/png",i)}return function(w,b,i){return k(w,w.kind===void 0?f.ImageKind.GRAYSCALE_1BPP:w.kind,b,i)}}(),d=function(){function l(){U(this,l),this.fontSizeScale=1,this.fontWeight=B.fontWeight,this.fontSize=0,this.textMatrix=f.IDENTITY_MATRIX,this.fontMatrix=f.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=f.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=B.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 C(l,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(a,e){this.x=a,this.y=e}}]),l}(),y=0,m=0,c=0;_.SVGGraphics=J=function(){function l(a,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2];for(var s in U(this,l),this.svgFactory=new E.DOMSVGFactory,this.current=new d,this.transformMatrix=f.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=a,this.objs=e,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!t,this._operatorIdMapping=[],f.OPS)this._operatorIdMapping[f.OPS[s]]=s}return C(l,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var a=this.current;this.extraStack.push(a),this.current=a.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(a){this.save(),this.executeOpTree(a),this.restore()}},{key:"loadDependencies",value:function(a){for(var e=this,t=a.fnArray,s=a.argsArray,r=0,p=t.length;r<p;r++)if(t[r]===f.OPS.dependency){var k,w=j(s[r]);try{var b=function(){var i=k.value,o=i.startsWith("g_")?e.commonObjs:e.objs,u=new Promise(function(A){o.get(i,A)});e.current.dependencies.push(u)};for(w.s();!(k=w.n()).done;)b()}catch(i){w.e(i)}finally{w.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(a,e,t,s,r,p){var k=[a,e,t,s,r,p];this.transformMatrix=f.Util.transform(this.transformMatrix,k),this.tgrp=null}},{key:"getSVG",value:function(a,e){var t=this;this.viewport=e;var s=this._initialize(e);return this.loadDependencies(a).then(function(){return t.transformMatrix=f.IDENTITY_MATRIX,t.executeOpTree(t.convertOpList(a)),s})}},{key:"convertOpList",value:function(a){for(var e=this._operatorIdMapping,t=a.argsArray,s=a.fnArray,r=[],p=0,k=s.length;p<k;p++){var w=s[p];r.push({fnId:w,fn:e[w],args:t[p]})}return function(b){var i,o=[],u=[],A=j(b);try{for(A.s();!(i=A.n()).done;){var I=i.value;I.fn!=="save"?I.fn==="restore"?o=u.pop():o.push(I):(o.push({fnId:92,fn:"group",items:[]}),u.push(o),o=o[o.length-1].items)}}catch(O){A.e(O)}finally{A.f()}return o}(r)}},{key:"executeOpTree",value:function(a){var e,t=j(a);try{for(t.s();!(e=t.n()).done;){var s=e.value,r=s.fn,p=s.fnId,k=s.args;switch(0|p){case f.OPS.beginText:this.beginText();break;case f.OPS.dependency:break;case f.OPS.setLeading:this.setLeading(k);break;case f.OPS.setLeadingMoveText:this.setLeadingMoveText(k[0],k[1]);break;case f.OPS.setFont:this.setFont(k);break;case f.OPS.showText:case f.OPS.showSpacedText:this.showText(k[0]);break;case f.OPS.endText:this.endText();break;case f.OPS.moveText:this.moveText(k[0],k[1]);break;case f.OPS.setCharSpacing:this.setCharSpacing(k[0]);break;case f.OPS.setWordSpacing:this.setWordSpacing(k[0]);break;case f.OPS.setHScale:this.setHScale(k[0]);break;case f.OPS.setTextMatrix:this.setTextMatrix(k[0],k[1],k[2],k[3],k[4],k[5]);break;case f.OPS.setTextRise:this.setTextRise(k[0]);break;case f.OPS.setTextRenderingMode:this.setTextRenderingMode(k[0]);break;case f.OPS.setLineWidth:this.setLineWidth(k[0]);break;case f.OPS.setLineJoin:this.setLineJoin(k[0]);break;case f.OPS.setLineCap:this.setLineCap(k[0]);break;case f.OPS.setMiterLimit:this.setMiterLimit(k[0]);break;case f.OPS.setFillRGBColor:this.setFillRGBColor(k[0],k[1],k[2]);break;case f.OPS.setStrokeRGBColor:this.setStrokeRGBColor(k[0],k[1],k[2]);break;case f.OPS.setStrokeColorN:this.setStrokeColorN(k);break;case f.OPS.setFillColorN:this.setFillColorN(k);break;case f.OPS.shadingFill:this.shadingFill(k[0]);break;case f.OPS.setDash:this.setDash(k[0],k[1]);break;case f.OPS.setRenderingIntent:this.setRenderingIntent(k[0]);break;case f.OPS.setFlatness:this.setFlatness(k[0]);break;case f.OPS.setGState:this.setGState(k[0]);break;case f.OPS.fill:this.fill();break;case f.OPS.eoFill:this.eoFill();break;case f.OPS.stroke:this.stroke();break;case f.OPS.fillStroke:this.fillStroke();break;case f.OPS.eoFillStroke:this.eoFillStroke();break;case f.OPS.clip:this.clip("nonzero");break;case f.OPS.eoClip:this.clip("evenodd");break;case f.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case f.OPS.paintImageXObject:this.paintImageXObject(k[0]);break;case f.OPS.paintInlineImageXObject:this.paintInlineImageXObject(k[0]);break;case f.OPS.paintImageMaskXObject:this.paintImageMaskXObject(k[0]);break;case f.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(k[0],k[1]);break;case f.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case f.OPS.closePath:this.closePath();break;case f.OPS.closeStroke:this.closeStroke();break;case f.OPS.closeFillStroke:this.closeFillStroke();break;case f.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case f.OPS.nextLine:this.nextLine();break;case f.OPS.transform:this.transform(k[0],k[1],k[2],k[3],k[4],k[5]);break;case f.OPS.constructPath:this.constructPath(k[0],k[1]);break;case f.OPS.endPath:this.endPath();break;case 92:this.group(s.items);break;default:(0,f.warn)("Unimplemented operator ".concat(r))}}}catch(w){t.e(w)}finally{t.f()}}},{key:"setWordSpacing",value:function(a){this.current.wordSpacing=a}},{key:"setCharSpacing",value:function(a){this.current.charSpacing=a}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(a,e,t,s,r,p){var k=this.current;k.textMatrix=k.lineMatrix=[a,e,t,s,r,p],k.textMatrixScale=Math.hypot(a,e),k.x=k.lineX=0,k.y=k.lineY=0,k.xcoords=[],k.ycoords=[],k.tspan=this.svgFactory.createElement("svg:tspan"),k.tspan.setAttributeNS(null,"font-family",k.fontFamily),k.tspan.setAttributeNS(null,"font-size","".concat(H(k.fontSize),"px")),k.tspan.setAttributeNS(null,"y",H(-k.y)),k.txtElement=this.svgFactory.createElement("svg:text"),k.txtElement.appendChild(k.tspan)}},{key:"beginText",value:function(){var a=this.current;a.x=a.lineX=0,a.y=a.lineY=0,a.textMatrix=f.IDENTITY_MATRIX,a.lineMatrix=f.IDENTITY_MATRIX,a.textMatrixScale=1,a.tspan=this.svgFactory.createElement("svg:tspan"),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtgrp=this.svgFactory.createElement("svg:g"),a.xcoords=[],a.ycoords=[]}},{key:"moveText",value:function(a,e){var t=this.current;t.x=t.lineX+=a,t.y=t.lineY+=e,t.xcoords=[],t.ycoords=[],t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(H(t.fontSize),"px")),t.tspan.setAttributeNS(null,"y",H(-t.y))}},{key:"showText",value:function(a){var e=this.current,t=e.font,s=e.fontSize;if(s!==0){var r,p=e.fontSizeScale,k=e.charSpacing,w=e.wordSpacing,b=e.fontDirection,i=e.textHScale*b,o=t.vertical,u=o?1:-1,A=t.defaultVMetrics,I=s*e.fontMatrix[0],O=0,R=j(a);try{for(R.s();!(r=R.n()).done;){var G=r.value;if(G!==null)if((0,f.isNum)(G))O+=u*G*s/1e3;else{var Y=(G.isSpace?w:0)+k,W=G.fontChar,z=void 0,ee=void 0,te=G.width;if(o){var ae=void 0,Z=G.vmetric||A;ae=-(ae=G.vmetric?Z[1]:.5*te)*I;var K=Z[2]*I;te=Z?-Z[0]:te,z=ae/p,ee=(O+K)/p}else z=O/p,ee=0;(G.isInFont||t.missingFile)&&(e.xcoords.push(e.x+z),o&&e.ycoords.push(-e.y+ee),e.tspan.textContent+=W),O+=o?te*I-Y*b:te*I+Y*b}else O+=b*w}}catch(re){R.e(re)}finally{R.f()}e.tspan.setAttributeNS(null,"x",e.xcoords.map(H).join(" ")),o?e.tspan.setAttributeNS(null,"y",e.ycoords.map(H).join(" ")):e.tspan.setAttributeNS(null,"y",H(-e.y)),o?e.y-=O:e.x+=O*i,e.tspan.setAttributeNS(null,"font-family",e.fontFamily),e.tspan.setAttributeNS(null,"font-size","".concat(H(e.fontSize),"px")),e.fontStyle!==B.fontStyle&&e.tspan.setAttributeNS(null,"font-style",e.fontStyle),e.fontWeight!==B.fontWeight&&e.tspan.setAttributeNS(null,"font-weight",e.fontWeight);var V=e.textRenderingMode&f.TextRenderingMode.FILL_STROKE_MASK;if(V===f.TextRenderingMode.FILL||V===f.TextRenderingMode.FILL_STROKE?(e.fillColor!==B.fillColor&&e.tspan.setAttributeNS(null,"fill",e.fillColor),e.fillAlpha<1&&e.tspan.setAttributeNS(null,"fill-opacity",e.fillAlpha)):e.textRenderingMode===f.TextRenderingMode.ADD_TO_PATH?e.tspan.setAttributeNS(null,"fill","transparent"):e.tspan.setAttributeNS(null,"fill","none"),V===f.TextRenderingMode.STROKE||V===f.TextRenderingMode.FILL_STROKE){var q=1/(e.textMatrixScale||1);this._setStrokeAttributes(e.tspan,q)}var Q=e.textMatrix;e.textRise!==0&&((Q=Q.slice())[5]+=e.textRise),e.txtElement.setAttributeNS(null,"transform","".concat($(Q)," scale(").concat(H(i),", -1)")),e.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.txtElement.appendChild(e.tspan),e.txtgrp.appendChild(e.txtElement),this._ensureTransformGroup().appendChild(e.txtElement)}}},{key:"setLeadingMoveText",value:function(a,e){this.setLeading(-e),this.moveText(a,e)}},{key:"addFontStyle",value:function(a){if(!a.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var e=(0,f.createObjectURL)(a.data,a.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(a.loadedName,'";')+" src: url(".concat(e,`); }
- `)}},{key:"setFont",value:function(a){var e=this.current,t=this.commonObjs.get(a[0]),s=a[1];e.font=t,!this.embedFonts||t.missingFile||this.embeddedFonts[t.loadedName]||(this.addFontStyle(t),this.embeddedFonts[t.loadedName]=t),e.fontMatrix=t.fontMatrix||f.FONT_IDENTITY_MATRIX;var r="normal";t.black?r="900":t.bold&&(r="bold");var p=t.italic?"italic":"normal";s<0?(s=-s,e.fontDirection=-1):e.fontDirection=1,e.fontSize=s,e.fontFamily=t.loadedName,e.fontWeight=r,e.fontStyle=p,e.tspan=this.svgFactory.createElement("svg:tspan"),e.tspan.setAttributeNS(null,"y",H(-e.y)),e.xcoords=[],e.ycoords=[]}},{key:"endText",value:function(){var a,e=this.current;e.textRenderingMode&f.TextRenderingMode.ADD_TO_PATH_FLAG&&(a=e.txtElement)!==null&&a!==void 0&&a.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(a){a>0&&(this.current.lineWidth=a)}},{key:"setLineCap",value:function(a){this.current.lineCap=F[a]}},{key:"setLineJoin",value:function(a){this.current.lineJoin=g[a]}},{key:"setMiterLimit",value:function(a){this.current.miterLimit=a}},{key:"setStrokeAlpha",value:function(a){this.current.strokeAlpha=a}},{key:"setStrokeRGBColor",value:function(a,e,t){this.current.strokeColor=f.Util.makeHexColor(a,e,t)}},{key:"setFillAlpha",value:function(a){this.current.fillAlpha=a}},{key:"setFillRGBColor",value:function(a,e,t){this.current.fillColor=f.Util.makeHexColor(a,e,t),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(a){this.current.strokeColor=this._makeColorN_Pattern(a)}},{key:"setFillColorN",value:function(a){this.current.fillColor=this._makeColorN_Pattern(a)}},{key:"shadingFill",value:function(a){var e=this.viewport.width,t=this.viewport.height,s=f.Util.inverseTransform(this.transformMatrix),r=f.Util.applyTransform([0,0],s),p=f.Util.applyTransform([0,t],s),k=f.Util.applyTransform([e,0],s),w=f.Util.applyTransform([e,t],s),b=Math.min(r[0],p[0],k[0],w[0]),i=Math.min(r[1],p[1],k[1],w[1]),o=Math.max(r[0],p[0],k[0],w[0]),u=Math.max(r[1],p[1],k[1],w[1]),A=this.svgFactory.createElement("svg:rect");A.setAttributeNS(null,"x",b),A.setAttributeNS(null,"y",i),A.setAttributeNS(null,"width",o-b),A.setAttributeNS(null,"height",u-i),A.setAttributeNS(null,"fill",this._makeShadingPattern(a)),this.current.fillAlpha<1&&A.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(A)}},{key:"_makeColorN_Pattern",value:function(a){return a[0]==="TilingPattern"?this._makeTilingPattern(a):this._makeShadingPattern(a)}},{key:"_makeTilingPattern",value:function(a){var e=a[1],t=a[2],s=a[3]||f.IDENTITY_MATRIX,r=N(a[4],4),p=r[0],k=r[1],w=r[2],b=r[3],i=a[5],o=a[6],u=a[7],A="shading".concat(c++),I=N(f.Util.applyTransform([p,k],s),2),O=I[0],R=I[1],G=N(f.Util.applyTransform([w,b],s),2),Y=G[0],W=G[1],z=N(f.Util.singularValueDecompose2dScale(s),2),ee=i*z[0],te=o*z[1],ae=this.svgFactory.createElement("svg:pattern");ae.setAttributeNS(null,"id",A),ae.setAttributeNS(null,"patternUnits","userSpaceOnUse"),ae.setAttributeNS(null,"width",ee),ae.setAttributeNS(null,"height",te),ae.setAttributeNS(null,"x","".concat(O)),ae.setAttributeNS(null,"y","".concat(R));var Z=this.svg,K=this.transformMatrix,V=this.current.fillColor,q=this.current.strokeColor,Q=this.svgFactory.create(Y-O,W-R);if(this.svg=Q,this.transformMatrix=s,u===2){var re=f.Util.makeHexColor.apply(f.Util,T(e));this.current.fillColor=re,this.current.strokeColor=re}return this.executeOpTree(this.convertOpList(t)),this.svg=Z,this.transformMatrix=K,this.current.fillColor=V,this.current.strokeColor=q,ae.appendChild(Q.childNodes[0]),this.defs.appendChild(ae),"url(#".concat(A,")")}},{key:"_makeShadingPattern",value:function(a){switch(a[0]){case"RadialAxial":var e,t="shading".concat(c++),s=a[3];switch(a[1]){case"axial":var r=a[4],p=a[5];(e=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",t),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"x1",r[0]),e.setAttributeNS(null,"y1",r[1]),e.setAttributeNS(null,"x2",p[0]),e.setAttributeNS(null,"y2",p[1]);break;case"radial":var k=a[4],w=a[5],b=a[6],i=a[7];(e=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",t),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"cx",w[0]),e.setAttributeNS(null,"cy",w[1]),e.setAttributeNS(null,"r",i),e.setAttributeNS(null,"fx",k[0]),e.setAttributeNS(null,"fy",k[1]),e.setAttributeNS(null,"fr",b);break;default:throw new Error("Unknown RadialAxial type: ".concat(a[1]))}var o,u=j(s);try{for(u.s();!(o=u.n()).done;){var A=o.value,I=this.svgFactory.createElement("svg:stop");I.setAttributeNS(null,"offset",A[0]),I.setAttributeNS(null,"stop-color",A[1]),e.appendChild(I)}}catch(O){u.e(O)}finally{u.f()}return this.defs.appendChild(e),"url(#".concat(t,")");case"Mesh":return(0,f.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(a[0]))}}},{key:"setDash",value:function(a,e){this.current.dashArray=a,this.current.dashPhase=e}},{key:"constructPath",value:function(a,e){var t,s=this.current,r=s.x,p=s.y,k=[],w=0,b=j(a);try{for(b.s();!(t=b.n()).done;)switch(0|t.value){case f.OPS.rectangle:r=e[w++],p=e[w++];var i=e[w++],o=e[w++],u=r+i,A=p+o;k.push("M",H(r),H(p),"L",H(u),H(p),"L",H(u),H(A),"L",H(r),H(A),"Z");break;case f.OPS.moveTo:r=e[w++],p=e[w++],k.push("M",H(r),H(p));break;case f.OPS.lineTo:r=e[w++],p=e[w++],k.push("L",H(r),H(p));break;case f.OPS.curveTo:r=e[w+4],p=e[w+5],k.push("C",H(e[w]),H(e[w+1]),H(e[w+2]),H(e[w+3]),H(r),H(p)),w+=6;break;case f.OPS.curveTo2:k.push("C",H(r),H(p),H(e[w]),H(e[w+1]),H(e[w+2]),H(e[w+3])),r=e[w+2],p=e[w+3],w+=4;break;case f.OPS.curveTo3:r=e[w+2],p=e[w+3],k.push("C",H(e[w]),H(e[w+1]),H(r),H(p),H(r),H(p)),w+=4;break;case f.OPS.closePath:k.push("Z")}}catch(I){b.e(I)}finally{b.f()}k=k.join(" "),s.path&&a.length>0&&a[0]!==f.OPS.rectangle&&a[0]!==f.OPS.moveTo?k=s.path.getAttributeNS(null,"d")+k:(s.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(s.path)),s.path.setAttributeNS(null,"d",k),s.path.setAttributeNS(null,"fill","none"),s.element=s.path,s.setCurrentPoint(r,p)}},{key:"endPath",value:function(){var a=this.current;if(a.path=null,this.pendingClip)if(a.element){var e="clippath".concat(y++),t=this.svgFactory.createElement("svg:clipPath");t.setAttributeNS(null,"id",e),t.setAttributeNS(null,"transform",$(this.transformMatrix));var s=a.element.cloneNode(!0);if(this.pendingClip==="evenodd"?s.setAttributeNS(null,"clip-rule","evenodd"):s.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,t.appendChild(s),this.defs.appendChild(t),a.activeClipUrl){a.clipGroup=null;var r,p=j(this.extraStack);try{for(p.s();!(r=p.n()).done;)r.value.clipGroup=null}catch(k){p.e(k)}finally{p.f()}t.setAttributeNS(null,"clip-path",a.activeClipUrl)}a.activeClipUrl="url(#".concat(e,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(a){this.pendingClip=a}},{key:"closePath",value:function(){var a=this.current;if(a.path){var e="".concat(a.path.getAttributeNS(null,"d"),"Z");a.path.setAttributeNS(null,"d",e)}}},{key:"setLeading",value:function(a){this.current.leading=-a}},{key:"setTextRise",value:function(a){this.current.textRise=a}},{key:"setTextRenderingMode",value:function(a){this.current.textRenderingMode=a}},{key:"setHScale",value:function(a){this.current.textHScale=a/100}},{key:"setRenderingIntent",value:function(a){}},{key:"setFlatness",value:function(a){}},{key:"setGState",value:function(a){var e,t=j(a);try{for(t.s();!(e=t.n()).done;){var s=N(e.value,2),r=s[0],p=s[1];switch(r){case"LW":this.setLineWidth(p);break;case"LC":this.setLineCap(p);break;case"LJ":this.setLineJoin(p);break;case"ML":this.setMiterLimit(p);break;case"D":this.setDash(p[0],p[1]);break;case"RI":this.setRenderingIntent(p);break;case"FL":this.setFlatness(p);break;case"Font":this.setFont(p);break;case"CA":this.setStrokeAlpha(p);break;case"ca":this.setFillAlpha(p);break;default:(0,f.warn)("Unimplemented graphic state operator ".concat(r))}}}catch(k){t.e(k)}finally{t.f()}}},{key:"fill",value:function(){var a=this.current;a.element&&(a.element.setAttributeNS(null,"fill",a.fillColor),a.element.setAttributeNS(null,"fill-opacity",a.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var a=this.current;a.element&&(this._setStrokeAttributes(a.element),a.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=this.current,s=t.dashArray;e!==1&&s.length>0&&(s=s.map(function(r){return e*r})),a.setAttributeNS(null,"stroke",t.strokeColor),a.setAttributeNS(null,"stroke-opacity",t.strokeAlpha),a.setAttributeNS(null,"stroke-miterlimit",H(t.miterLimit)),a.setAttributeNS(null,"stroke-linecap",t.lineCap),a.setAttributeNS(null,"stroke-linejoin",t.lineJoin),a.setAttributeNS(null,"stroke-width",H(e*t.lineWidth)+"px"),a.setAttributeNS(null,"stroke-dasharray",s.map(H).join(" ")),a.setAttributeNS(null,"stroke-dashoffset",H(e*t.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 a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width","1px"),a.setAttributeNS(null,"height","1px"),a.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(a)}},{key:"paintImageXObject",value:function(a){var e=a.startsWith("g_")?this.commonObjs.get(a):this.objs.get(a);e?this.paintInlineImageXObject(e):(0,f.warn)("Dependent image with object ID ".concat(a," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(a,e){var t=a.width,s=a.height,r=v(a,this.forceDataSchema,!!e),p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x","0"),p.setAttributeNS(null,"y","0"),p.setAttributeNS(null,"width",H(t)),p.setAttributeNS(null,"height",H(s)),this.current.element=p,this.clip("nonzero");var k=this.svgFactory.createElement("svg:image");k.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),k.setAttributeNS(null,"x","0"),k.setAttributeNS(null,"y",H(-s)),k.setAttributeNS(null,"width",H(t)+"px"),k.setAttributeNS(null,"height",H(s)+"px"),k.setAttributeNS(null,"transform","scale(".concat(H(1/t)," ").concat(H(-1/s),")")),e?e.appendChild(k):this._ensureTransformGroup().appendChild(k)}},{key:"paintImageMaskXObject",value:function(a){var e=this.current,t=a.width,s=a.height,r=e.fillColor;e.maskId="mask".concat(m++);var p=this.svgFactory.createElement("svg:mask");p.setAttributeNS(null,"id",e.maskId);var k=this.svgFactory.createElement("svg:rect");k.setAttributeNS(null,"x","0"),k.setAttributeNS(null,"y","0"),k.setAttributeNS(null,"width",H(t)),k.setAttributeNS(null,"height",H(s)),k.setAttributeNS(null,"fill",r),k.setAttributeNS(null,"mask","url(#".concat(e.maskId,")")),this.defs.appendChild(p),this._ensureTransformGroup().appendChild(k),this.paintInlineImageXObject(a,p)}},{key:"paintFormXObjectBegin",value:function(a,e){if(Array.isArray(a)&&a.length===6&&this.transform(a[0],a[1],a[2],a[3],a[4],a[5]),e){var t=e[2]-e[0],s=e[3]-e[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",e[0]),r.setAttributeNS(null,"y",e[1]),r.setAttributeNS(null,"width",H(t)),r.setAttributeNS(null,"height",H(s)),this.current.element=r,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(a){var e=this.svgFactory.create(a.width,a.height),t=this.svgFactory.createElement("svg:defs");e.appendChild(t),this.defs=t;var s=this.svgFactory.createElement("svg:g");return s.setAttributeNS(null,"transform",$(a.transform)),e.appendChild(s),this.svg=s,e}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var a=this.svgFactory.createElement("svg:g");a.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(a),this.current.clipGroup=a}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}}]),l}()},(L,_)=>{function h(j,x){return function(M){if(Array.isArray(M))return M}(j)||function(M,D){var C=M&&(typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"]);if(C!=null){var U,J,H=[],$=!0,B=!1;try{for(C=C.call(M);!($=(U=C.next()).done)&&(H.push(U.value),!D||H.length!==D);$=!0);}catch(F){B=!0,J=F}finally{try{$||C.return==null||C.return()}finally{if(B)throw J}}return H}}(j,x)||E(j,x)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function f(j,x){var M=typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(!M){if(Array.isArray(j)||(M=E(j))||x&&j&&typeof j.length=="number"){M&&(j=M);var D=0,C=function(){};return{s:C,n:function(){return D>=j.length?{done:!0}:{done:!1,value:j[D++]}},e:function($){throw $},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U,J=!0,H=!1;return{s:function(){M=M.call(j)},n:function(){var $=M.next();return J=$.done,$},e:function($){H=!0,U=$},f:function(){try{J||M.return==null||M.return()}finally{if(H)throw U}}}}function E(j,x){if(j){if(typeof j=="string")return P(j,x);var M=Object.prototype.toString.call(j).slice(8,-1);return M==="Object"&&j.constructor&&(M=j.constructor.name),M==="Map"||M==="Set"?Array.from(j):M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M)?P(j,x):void 0}}function P(j,x){(x==null||x>j.length)&&(x=j.length);for(var M=0,D=new Array(x);M<x;M++)D[M]=j[M];return D}function T(j,x){for(var M=0;M<x.length;M++){var D=x[M];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(j,D.key,D)}}Object.defineProperty(_,"__esModule",{value:!0}),_.XfaLayer=void 0;var N=function(){function j(){(function(C,U){if(!(C instanceof U))throw new TypeError("Cannot call a class as a function")})(this,j)}var x,M,D;return x=j,D=[{key:"setupStorage",value:function(C,U,J,H){var $=H.getValue(U,{value:null});switch(J.name){case"textarea":C.textContent=$.value!==null?$.value:"",C.addEventListener("input",function(v){H.setValue(U,{value:v.target.value})});break;case"input":$.value!==null&&C.setAttribute("value",$.value),J.attributes.type==="radio"?C.addEventListener("change",function(v){var d,y=v.target,m=f(document.getElementsByName(y.name));try{for(m.s();!(d=m.n()).done;){var c=d.value;if(c!==y){var l=c.id;H.setValue(l.split("-")[0],{value:!1})}}}catch(a){m.e(a)}finally{m.f()}H.setValue(U,{value:y.checked})}):C.addEventListener("input",function(v){H.setValue(U,{value:v.target.value})});break;case"select":if($.value!==null){var B,F=f(J.children);try{for(F.s();!(B=F.n()).done;){var g=B.value;g.attributes.value===$.value&&(g.attributes.selected=!0)}}catch(v){F.e(v)}finally{F.f()}}C.addEventListener("input",function(v){var d=v.target.options,y=d.selectedIndex===-1?null:d[d.selectedIndex].value;H.setValue(U,{value:y})})}}},{key:"setAttributes",value:function(C,U,J){for(var H=U.attributes,$=0,B=Object.entries(H);$<B.length;$++){var F=h(B[$],2),g=F[0],v=F[1];v!=null&&g!=="fieldId"&&(g!=="style"?g==="textContent"?C.textContent=v:C.setAttribute(g,v):Object.assign(C.style,v))}J&&H.fieldId!==void 0&&this.setupStorage(C,H.fieldId,U,J)}},{key:"render",value:function(C){var U=C.annotationStorage,J=C.xfa,H=document.createElement(J.name);J.attributes&&this.setAttributes(H,J);var $=[[J,-1,H]],B=C.div;B.appendChild(H);var F=C.viewport.transform.join(",");for(B.style.transform="matrix(".concat(F,")"),B.setAttribute("class","xfaLayer xfaFont");$.length>0;){var g=h($[$.length-1],3),v=g[0],d=g[1],y=g[2];if(d+1!==v.children.length){var m=v.children[++$[$.length-1][1]];if(m!==null){var c=m.name;if(c!=="#text"){var l=document.createElement(c);y.appendChild(l),m.attributes&&this.setAttributes(l,m,U),m.children&&m.children.length>0?$.push([m,-1,l]):m.value&&l.appendChild(document.createTextNode(m.value))}else y.appendChild(document.createTextNode(m.value))}}else $.pop()}}},{key:"update",value:function(C){var U="matrix(".concat(C.viewport.transform.join(","),")");C.div.style.transform=U,C.div.hidden=!1}}],(M=null)&&T(x.prototype,M),D&&T(x,D),j}();_.XfaLayer=N},(L,_,h)=>{function f(w){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},f(w)}Object.defineProperty(_,"__esModule",{value:!0}),_.PDFNodeStream=void 0;var E,P=(E=h(2))&&E.__esModule?E:{default:E},T=h(4),N=h(131);function j(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),b&&x(w,b)}function x(w,b){return x=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},x(w,b)}function M(w){var b=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,o=C(w);if(b){var u=C(this).constructor;i=Reflect.construct(o,arguments,u)}else i=o.apply(this,arguments);return D(this,i)}}function D(w,b){return!b||f(b)!=="object"&&typeof b!="function"?function(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(w):b}function C(w){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},C(w)}function U(w,b,i,o,u,A,I){try{var O=w[A](I),R=O.value}catch(G){return void i(G)}O.done?b(R):Promise.resolve(R).then(o,u)}function J(w){return function(){var b=this,i=arguments;return new Promise(function(o,u){var A=w.apply(b,i);function I(R){U(A,o,u,I,O,"next",R)}function O(R){U(A,o,u,I,O,"throw",R)}I(void 0)})}}function H(w,b){var i=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!i){if(Array.isArray(w)||(i=function(R,G){if(R){if(typeof R=="string")return $(R,G);var Y=Object.prototype.toString.call(R).slice(8,-1);return Y==="Object"&&R.constructor&&(Y=R.constructor.name),Y==="Map"||Y==="Set"?Array.from(R):Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y)?$(R,G):void 0}}(w))||b&&w&&typeof w.length=="number"){i&&(w=i);var o=0,u=function(){};return{s:u,n:function(){return o>=w.length?{done:!0}:{done:!1,value:w[o++]}},e:function(R){throw R},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A,I=!0,O=!1;return{s:function(){i=i.call(w)},n:function(){var R=i.next();return I=R.done,R},e:function(R){O=!0,A=R},f:function(){try{I||i.return==null||i.return()}finally{if(O)throw A}}}}function $(w,b){(b==null||b>w.length)&&(b=w.length);for(var i=0,o=new Array(b);i<b;i++)o[i]=w[i];return o}function B(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function F(w,b){for(var i=0;i<b.length;i++){var o=b[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(w,o.key,o)}}function g(w,b,i){return b&&F(w.prototype,b),i&&F(w,i),w}var v=__webpack_require__(767),d=__webpack_require__(251),y=__webpack_require__(677),m=__webpack_require__(543),c=/^file:\/\/\/[a-zA-Z]:\//,l=function(){function w(b){var i,o;B(this,w),this.source=b,this.url=(i=b.url,(o=m.parse(i)).protocol==="file:"||o.host?o:/^[a-z]:[/\\]/i.test(i)?m.parse("file:///".concat(i)):(o.host||(o.protocol="file:"),o)),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&b.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return g(w,[{key:"_progressiveDataLength",get:function(){var b,i;return(b=(i=this._fullRequestReader)===null||i===void 0?void 0:i._loaded)!==null&&b!==void 0?b:0}},{key:"getFullReader",value:function(){return(0,T.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new p(this):new s(this),this._fullRequestReader}},{key:"getRangeReader",value:function(b,i){if(i<=this._progressiveDataLength)return null;var o=this.isFsUrl?new k(this,b,i):new r(this,b,i);return this._rangeRequestReaders.push(o),o}},{key:"cancelAllRequests",value:function(b){this._fullRequestReader&&this._fullRequestReader.cancel(b);var i,o=H(this._rangeRequestReaders.slice(0));try{for(o.s();!(i=o.n()).done;)i.value.cancel(b)}catch(u){o.e(u)}finally{o.f()}}}]),w}();_.PDFNodeStream=l;var a=function(){function w(i){B(this,w),this._url=i.url,this._done=!1,this._storedError=null,this.onProgress=null;var o=i.source;this._contentLength=o.length,this._loaded=0,this._filename=null,this._disableRange=o.disableRange||!1,this._rangeChunkSize=o.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!o.disableStream,this._isRangeSupported=!o.disableRange,this._readableStream=null,this._readCapability=(0,T.createPromiseCapability)(),this._headersCapability=(0,T.createPromiseCapability)()}var b;return g(w,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(b=J(P.default.mark(function i(){var o,u;return P.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this._readCapability.promise;case 2:if(!this._done){A.next=4;break}return A.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){A.next=6;break}throw this._storedError;case 6:if((o=this._readableStream.read())!==null){A.next=10;break}return this._readCapability=(0,T.createPromiseCapability)(),A.abrupt("return",this.read());case 10:return this._loaded+=o.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),u=new Uint8Array(o).buffer,A.abrupt("return",{value:u,done:!1});case 14:case"end":return A.stop()}},i,this)})),function(){return b.apply(this,arguments)})},{key:"cancel",value:function(i){this._readableStream?this._readableStream.destroy(i):this._error(i)}},{key:"_error",value:function(i){this._storedError=i,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(i){var o=this;this._readableStream=i,i.on("readable",function(){o._readCapability.resolve()}),i.on("end",function(){i.destroy(),o._done=!0,o._readCapability.resolve()}),i.on("error",function(u){o._error(u)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new T.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),w}(),e=function(){function w(i){B(this,w),this._url=i.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,T.createPromiseCapability)();var o=i.source;this._isStreamingSupported=!o.disableStream}var b;return g(w,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(b=J(P.default.mark(function i(){var o,u;return P.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this._readCapability.promise;case 2:if(!this._done){A.next=4;break}return A.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){A.next=6;break}throw this._storedError;case 6:if((o=this._readableStream.read())!==null){A.next=10;break}return this._readCapability=(0,T.createPromiseCapability)(),A.abrupt("return",this.read());case 10:return this._loaded+=o.length,this.onProgress&&this.onProgress({loaded:this._loaded}),u=new Uint8Array(o).buffer,A.abrupt("return",{value:u,done:!1});case 14:case"end":return A.stop()}},i,this)})),function(){return b.apply(this,arguments)})},{key:"cancel",value:function(i){this._readableStream?this._readableStream.destroy(i):this._error(i)}},{key:"_error",value:function(i){this._storedError=i,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(i){var o=this;this._readableStream=i,i.on("readable",function(){o._readCapability.resolve()}),i.on("end",function(){i.destroy(),o._done=!0,o._readCapability.resolve()}),i.on("error",function(u){o._error(u)}),this._storedError&&this._readableStream.destroy(this._storedError)}}]),w}();function t(w,b){return{protocol:w.protocol,auth:w.auth,host:w.hostname,port:w.port,path:w.path,method:"GET",headers:b}}var s=function(w){j(i,w);var b=M(i);function i(o){var u;B(this,i);var A=function(I){if(I.statusCode===404){var O=new T.MissingPDFException('Missing PDF "'.concat(u._url,'".'));return u._storedError=O,void u._headersCapability.reject(O)}u._headersCapability.resolve(),u._setReadableStream(I);var R=function(z){return u._readableStream.headers[z.toLowerCase()]},G=(0,N.validateRangeRequestCapabilities)({getResponseHeader:R,isHttp:o.isHttp,rangeChunkSize:u._rangeChunkSize,disableRange:u._disableRange}),Y=G.allowRangeRequests,W=G.suggestedLength;u._isRangeSupported=Y,u._contentLength=W||u._contentLength,u._filename=(0,N.extractFilenameFromHeader)(R)};return(u=b.call(this,o))._request=null,u._url.protocol==="http:"?u._request=d.request(t(u._url,o.httpHeaders),A):u._request=y.request(t(u._url,o.httpHeaders),A),u._request.on("error",function(I){u._storedError=I,u._headersCapability.reject(I)}),u._request.end(),u}return i}(a),r=function(w){j(i,w);var b=M(i);function i(o,u,A){var I;for(var O in B(this,i),(I=b.call(this,o))._httpHeaders={},o.httpHeaders){var R=o.httpHeaders[O];R!==void 0&&(I._httpHeaders[O]=R)}I._httpHeaders.Range="bytes=".concat(u,"-").concat(A-1);var G=function(Y){if(Y.statusCode!==404)I._setReadableStream(Y);else{var W=new T.MissingPDFException('Missing PDF "'.concat(I._url,'".'));I._storedError=W}};return I._request=null,I._url.protocol==="http:"?I._request=d.request(t(I._url,I._httpHeaders),G):I._request=y.request(t(I._url,I._httpHeaders),G),I._request.on("error",function(Y){I._storedError=Y}),I._request.end(),I}return i}(e),p=function(w){j(i,w);var b=M(i);function i(o){var u;B(this,i),u=b.call(this,o);var A=decodeURIComponent(u._url.path);return c.test(u._url.href)&&(A=A.replace(/^\//,"")),v.lstat(A,function(I,O){if(I)return I.code==="ENOENT"&&(I=new T.MissingPDFException('Missing PDF "'.concat(A,'".'))),u._storedError=I,void u._headersCapability.reject(I);u._contentLength=O.size,u._setReadableStream(v.createReadStream(A)),u._headersCapability.resolve()}),u}return i}(a),k=function(w){j(i,w);var b=M(i);function i(o,u,A){var I;B(this,i),I=b.call(this,o);var O=decodeURIComponent(I._url.path);return c.test(I._url.href)&&(O=O.replace(/^\//,"")),I._setReadableStream(v.createReadStream(O,{start:u,end:A-1})),I}return i}(e)},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.createResponseStatusError=function(T,N){return T===404||T===0&&N.startsWith("file:")?new f.MissingPDFException('Missing PDF "'+N+'".'):new f.UnexpectedResponseException("Unexpected server response (".concat(T,') while retrieving PDF "').concat(N,'".'),T)},_.extractFilenameFromHeader=function(T){var N=T("Content-Disposition");if(N){var j=(0,E.getFilenameFromContentDispositionHeader)(N);if(j.includes("%"))try{j=decodeURIComponent(j)}catch{}if((0,P.isPdfFile)(j))return j}return null},_.validateRangeRequestCapabilities=function(T){var N=T.getResponseHeader,j=T.isHttp,x=T.rangeChunkSize,M=T.disableRange;(0,f.assert)(x>0,"Range chunk size must be larger than zero");var D={allowRangeRequests:!1,suggestedLength:void 0},C=parseInt(N("Content-Length"),10);return Number.isInteger(C)&&(D.suggestedLength=C,C<=2*x||M||!j||N("Accept-Ranges")!=="bytes"||(N("Content-Encoding")||"identity")!=="identity"||(D.allowRangeRequests=!0)),D},_.validateResponseStatus=function(T){return T===200||T===206};var f=h(4),E=h(132),P=h(1)},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.getFilenameFromContentDispositionHeader=function(T){var N=!0,j=D("filename\\*","i").exec(T);if(j){var x=J(j=j[1]);return U(x=$(x=H(x=unescape(x))))}if(j=function(B){for(var F,g=[],v=D("filename\\*((?!0\\d)\\d+)(\\*?)","ig");(F=v.exec(B))!==null;){var d=E(F,4),y=d[1],m=d[2],c=d[3];if((y=parseInt(y,10))in g){if(y===0)break}else g[y]=[m,c]}for(var l=[],a=0;a<g.length&&a in g;++a){var e=E(g[a],2),t=e[0],s=e[1];s=J(s),t&&(s=unescape(s),a===0&&(s=H(s))),l.push(s)}return l.join("")}(T))return U($(j));if(j=D("filename","i").exec(T)){var M=J(j=j[1]);return U(M=$(M))}function D(B,F){return new RegExp("(?:^|;)\\s*"+B+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',F)}function C(B,F){if(B){if(!/^[\x00-\xFF]+$/.test(F))return F;try{var g=new TextDecoder(B,{fatal:!0}),v=(0,f.stringToBytes)(F);F=g.decode(v),N=!1}catch{if(/^utf-?8$/i.test(B))try{F=decodeURIComponent(escape(F)),N=!1}catch{}}}return F}function U(B){return N&&/[\x80-\xff]/.test(B)&&(B=C("utf-8",B),N&&(B=C("iso-8859-1",B))),B}function J(B){if(B.startsWith('"')){for(var F=B.slice(1).split('\\"'),g=0;g<F.length;++g){var v=F[g].indexOf('"');v!==-1&&(F[g]=F[g].slice(0,v),F.length=g+1),F[g]=F[g].replace(/\\(.)/g,"$1")}B=F.join('"')}return B}function H(B){var F=B.indexOf("'");return F===-1?B:C(B.slice(0,F),B.slice(F+1).replace(/^[^']*'/,""))}function $(B){return!B.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(B)?B:B.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(F,g,v,d){if(v==="q"||v==="Q")return C(g,d=(d=d.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(y,m){return String.fromCharCode(parseInt(m,16))}));try{d=atob(d)}catch{}return C(g,d)})}return""};var f=h(4);function E(T,N){return function(j){if(Array.isArray(j))return j}(T)||function(j,x){var M=j&&(typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"]);if(M!=null){var D,C,U=[],J=!0,H=!1;try{for(M=M.call(j);!(J=(D=M.next()).done)&&(U.push(D.value),!x||U.length!==x);J=!0);}catch($){H=!0,C=$}finally{try{J||M.return==null||M.return()}finally{if(H)throw C}}return U}}(T,N)||function(j,x){if(j){if(typeof j=="string")return P(j,x);var M=Object.prototype.toString.call(j).slice(8,-1);return M==="Object"&&j.constructor&&(M=j.constructor.name),M==="Map"||M==="Set"?Array.from(j):M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M)?P(j,x):void 0}}(T,N)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P(T,N){(N==null||N>T.length)&&(N=T.length);for(var j=0,x=new Array(N);j<N;j++)x[j]=T[j];return x}},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.PDFNetworkStream=void 0;var f,E=(f=h(2))&&f.__esModule?f:{default:f},P=h(4),T=h(131);function N(F,g,v,d,y,m,c){try{var l=F[m](c),a=l.value}catch(e){return void v(e)}l.done?g(a):Promise.resolve(a).then(d,y)}function j(F){return function(){var g=this,v=arguments;return new Promise(function(d,y){var m=F.apply(g,v);function c(a){N(m,d,y,c,l,"next",a)}function l(a){N(m,d,y,c,l,"throw",a)}c(void 0)})}}function x(F,g){var v=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!v){if(Array.isArray(F)||(v=function(a,e){if(a){if(typeof a=="string")return M(a,e);var t=Object.prototype.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?M(a,e):void 0}}(F))||g&&F&&typeof F.length=="number"){v&&(F=v);var d=0,y=function(){};return{s:y,n:function(){return d>=F.length?{done:!0}:{done:!1,value:F[d++]}},e:function(a){throw a},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,c=!0,l=!1;return{s:function(){v=v.call(F)},n:function(){var a=v.next();return c=a.done,a},e:function(a){l=!0,m=a},f:function(){try{c||v.return==null||v.return()}finally{if(l)throw m}}}}function M(F,g){(g==null||g>F.length)&&(g=F.length);for(var v=0,d=new Array(g);v<g;v++)d[v]=F[v];return d}function D(F,g){if(!(F instanceof g))throw new TypeError("Cannot call a class as a function")}function C(F,g){for(var v=0;v<g.length;v++){var d=g[v];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(F,d.key,d)}}function U(F,g,v){return g&&C(F.prototype,g),v&&C(F,v),F}var J=function(){function F(g,v){D(this,F),this.url=g,v=v||{},this.isHttp=/^https?:/i.test(g),this.httpHeaders=this.isHttp&&v.httpHeaders||{},this.withCredentials=v.withCredentials||!1,this.getXhr=v.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return U(F,[{key:"requestRange",value:function(g,v,d){var y={begin:g,end:v};for(var m in d)y[m]=d[m];return this.request(y)}},{key:"requestFull",value:function(g){return this.request(g)}},{key:"request",value:function(g){var v=this.getXhr(),d=this.currXhrId++,y=this.pendingRequests[d]={xhr:v};for(var m in v.open("GET",this.url),v.withCredentials=this.withCredentials,this.httpHeaders){var c=this.httpHeaders[m];c!==void 0&&v.setRequestHeader(m,c)}return this.isHttp&&"begin"in g&&"end"in g?(v.setRequestHeader("Range","bytes=".concat(g.begin,"-").concat(g.end-1)),y.expectedStatus=206):y.expectedStatus=200,v.responseType="arraybuffer",g.onError&&(v.onerror=function(l){g.onError(v.status)}),v.onreadystatechange=this.onStateChange.bind(this,d),v.onprogress=this.onProgress.bind(this,d),y.onHeadersReceived=g.onHeadersReceived,y.onDone=g.onDone,y.onError=g.onError,y.onProgress=g.onProgress,v.send(null),d}},{key:"onProgress",value:function(g,v){var d=this.pendingRequests[g];d&&d.onProgress&&d.onProgress(v)}},{key:"onStateChange",value:function(g,v){var d=this.pendingRequests[g];if(d){var y=d.xhr;if(y.readyState>=2&&d.onHeadersReceived&&(d.onHeadersReceived(),delete d.onHeadersReceived),y.readyState===4&&g in this.pendingRequests)if(delete this.pendingRequests[g],y.status===0&&this.isHttp)d.onError&&d.onError(y.status);else{var m=y.status||200;if(m===200&&d.expectedStatus===206||m===d.expectedStatus){var c=function(e){var t=e.response;return typeof t!="string"?t:(0,P.stringToBytes)(t).buffer}(y);if(m===206){var l=y.getResponseHeader("Content-Range"),a=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);d.onDone({begin:parseInt(a[1],10),chunk:c})}else c?d.onDone({begin:0,chunk:c}):d.onError&&d.onError(y.status)}else d.onError&&d.onError(y.status)}}}},{key:"getRequestXhr",value:function(g){return this.pendingRequests[g].xhr}},{key:"isPendingRequest",value:function(g){return g in this.pendingRequests}},{key:"abortRequest",value:function(g){var v=this.pendingRequests[g].xhr;delete this.pendingRequests[g],v.abort()}}]),F}(),H=function(){function F(g){D(this,F),this._source=g,this._manager=new J(g.url,{httpHeaders:g.httpHeaders,withCredentials:g.withCredentials}),this._rangeChunkSize=g.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return U(F,[{key:"_onRangeRequestReaderClosed",value:function(g){var v=this._rangeRequestReaders.indexOf(g);v>=0&&this._rangeRequestReaders.splice(v,1)}},{key:"getFullReader",value:function(){return(0,P.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new $(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(g,v){var d=new B(this._manager,g,v);return d.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(d),d}},{key:"cancelAllRequests",value:function(g){this._fullRequestReader&&this._fullRequestReader.cancel(g);var v,d=x(this._rangeRequestReaders.slice(0));try{for(d.s();!(v=d.n()).done;)v.value.cancel(g)}catch(y){d.e(y)}finally{d.f()}}}]),F}();_.PDFNetworkStream=H;var $=function(){function F(v,d){D(this,F),this._manager=v;var y={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=d.url,this._fullRequestId=v.requestFull(y),this._headersReceivedCapability=(0,P.createPromiseCapability)(),this._disableRange=d.disableRange||!1,this._contentLength=d.length,this._rangeChunkSize=d.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}var g;return U(F,[{key:"_onHeadersReceived",value:function(){var v=this._fullRequestId,d=this._manager.getRequestXhr(v),y=function(a){return d.getResponseHeader(a)},m=(0,T.validateRangeRequestCapabilities)({getResponseHeader:y,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),c=m.allowRangeRequests,l=m.suggestedLength;c&&(this._isRangeSupported=!0),this._contentLength=l||this._contentLength,this._filename=(0,T.extractFilenameFromHeader)(y),this._isRangeSupported&&this._manager.abortRequest(v),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(v){if(v&&(this._requests.length>0?this._requests.shift().resolve({value:v.chunk,done:!1}):this._cachedChunks.push(v.chunk)),this._done=!0,!(this._cachedChunks.length>0)){var d,y=x(this._requests);try{for(y.s();!(d=y.n()).done;)d.value.resolve({value:void 0,done:!0})}catch(m){y.e(m)}finally{y.f()}this._requests.length=0}}},{key:"_onError",value:function(v){var d=this._url,y=(0,T.createResponseStatusError)(v,d);this._storedError=y,this._headersReceivedCapability.reject(y);var m,c=x(this._requests);try{for(c.s();!(m=c.n()).done;)m.value.reject(y)}catch(l){c.e(l)}finally{c.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(v){this.onProgress&&this.onProgress({loaded:v.loaded,total:v.lengthComputable?v.total:this._contentLength})}},{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}},{key:"read",value:(g=j(E.default.mark(function v(){var d,y;return E.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!this._storedError){m.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){m.next=5;break}return d=this._cachedChunks.shift(),m.abrupt("return",{value:d,done:!1});case 5:if(!this._done){m.next=7;break}return m.abrupt("return",{value:void 0,done:!0});case 7:return y=(0,P.createPromiseCapability)(),this._requests.push(y),m.abrupt("return",y.promise);case 10:case"end":return m.stop()}},v,this)})),function(){return g.apply(this,arguments)})},{key:"cancel",value:function(v){this._done=!0,this._headersReceivedCapability.reject(v);var d,y=x(this._requests);try{for(y.s();!(d=y.n()).done;)d.value.resolve({value:void 0,done:!0})}catch(m){y.e(m)}finally{y.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),F}(),B=function(){function F(v,d,y){D(this,F),this._manager=v;var m={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=v.requestRange(d,y,m),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}var g;return U(F,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(v){var d=v.chunk;this._requests.length>0?this._requests.shift().resolve({value:d,done:!1}):this._queuedChunk=d,this._done=!0;var y,m=x(this._requests);try{for(m.s();!(y=m.n()).done;)y.value.resolve({value:void 0,done:!0})}catch(c){m.e(c)}finally{m.f()}this._requests.length=0,this._close()}},{key:"_onProgress",value:function(v){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:v.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(g=j(E.default.mark(function v(){var d,y;return E.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(this._queuedChunk===null){m.next=4;break}return d=this._queuedChunk,this._queuedChunk=null,m.abrupt("return",{value:d,done:!1});case 4:if(!this._done){m.next=6;break}return m.abrupt("return",{value:void 0,done:!0});case 6:return y=(0,P.createPromiseCapability)(),this._requests.push(y),m.abrupt("return",y.promise);case 9:case"end":return m.stop()}},v,this)})),function(){return g.apply(this,arguments)})},{key:"cancel",value:function(v){this._done=!0;var d,y=x(this._requests);try{for(y.s();!(d=y.n()).done;)d.value.resolve({value:void 0,done:!0})}catch(m){y.e(m)}finally{y.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]),F}()},(L,_,h)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.PDFFetchStream=void 0;var f,E=(f=h(2))&&f.__esModule?f:{default:f},P=h(4),T=h(131);function N(g,v,d,y,m,c,l){try{var a=g[c](l),e=a.value}catch(t){return void d(t)}a.done?v(e):Promise.resolve(e).then(y,m)}function j(g){return function(){var v=this,d=arguments;return new Promise(function(y,m){var c=g.apply(v,d);function l(e){N(c,y,m,l,a,"next",e)}function a(e){N(c,y,m,l,a,"throw",e)}l(void 0)})}}function x(g,v){var d=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!d){if(Array.isArray(g)||(d=function(e,t){if(e){if(typeof e=="string")return M(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set"?Array.from(e):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?M(e,t):void 0}}(g))||v&&g&&typeof g.length=="number"){d&&(g=d);var y=0,m=function(){};return{s:m,n:function(){return y>=g.length?{done:!0}:{done:!1,value:g[y++]}},e:function(e){throw e},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,l=!0,a=!1;return{s:function(){d=d.call(g)},n:function(){var e=d.next();return l=e.done,e},e:function(e){a=!0,c=e},f:function(){try{l||d.return==null||d.return()}finally{if(a)throw c}}}}function M(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,y=new Array(v);d<v;d++)y[d]=g[d];return y}function D(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function C(g,v){for(var d=0;d<v.length;d++){var y=v[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}function U(g,v,d){return v&&C(g.prototype,v),d&&C(g,d),g}function J(g,v,d){return{method:"GET",headers:g,signal:d==null?void 0:d.signal,mode:"cors",credentials:v?"include":"same-origin",redirect:"follow"}}function H(g){var v=new Headers;for(var d in g){var y=g[d];y!==void 0&&v.append(d,y)}return v}var $=function(){function g(v){D(this,g),this.source=v,this.isHttp=/^https?:/i.test(v.url),this.httpHeaders=this.isHttp&&v.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return U(g,[{key:"_progressiveDataLength",get:function(){var v,d;return(v=(d=this._fullRequestReader)===null||d===void 0?void 0:d._loaded)!==null&&v!==void 0?v:0}},{key:"getFullReader",value:function(){return(0,P.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new B(this),this._fullRequestReader}},{key:"getRangeReader",value:function(v,d){if(d<=this._progressiveDataLength)return null;var y=new F(this,v,d);return this._rangeRequestReaders.push(y),y}},{key:"cancelAllRequests",value:function(v){this._fullRequestReader&&this._fullRequestReader.cancel(v);var d,y=x(this._rangeRequestReaders.slice(0));try{for(y.s();!(d=y.n()).done;)d.value.cancel(v)}catch(m){y.e(m)}finally{y.f()}}}]),g}();_.PDFFetchStream=$;var B=function(){function g(d){var y=this;D(this,g),this._stream=d,this._reader=null,this._loaded=0,this._filename=null;var m=d.source;this._withCredentials=m.withCredentials||!1,this._contentLength=m.length,this._headersCapability=(0,P.createPromiseCapability)(),this._disableRange=m.disableRange||!1,this._rangeChunkSize=m.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!m.disableStream,this._isRangeSupported=!m.disableRange,this._headers=H(this._stream.httpHeaders);var c=m.url;fetch(c,J(this._headers,this._withCredentials,this._abortController)).then(function(l){if(!(0,T.validateResponseStatus)(l.status))throw(0,T.createResponseStatusError)(l.status,c);y._reader=l.body.getReader(),y._headersCapability.resolve();var a=function(r){return l.headers.get(r)},e=(0,T.validateRangeRequestCapabilities)({getResponseHeader:a,isHttp:y._stream.isHttp,rangeChunkSize:y._rangeChunkSize,disableRange:y._disableRange}),t=e.allowRangeRequests,s=e.suggestedLength;y._isRangeSupported=t,y._contentLength=s||y._contentLength,y._filename=(0,T.extractFilenameFromHeader)(a),!y._isStreamingSupported&&y._isRangeSupported&&y.cancel(new P.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}var v;return U(g,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(v=j(E.default.mark(function d(){var y,m,c,l;return E.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this._headersCapability.promise;case 2:return a.next=4,this._reader.read();case 4:if(y=a.sent,m=y.value,!(c=y.done)){a.next=9;break}return a.abrupt("return",{value:m,done:c});case 9:return this._loaded+=m.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),l=new Uint8Array(m).buffer,a.abrupt("return",{value:l,done:!1});case 13:case"end":return a.stop()}},d,this)})),function(){return v.apply(this,arguments)})},{key:"cancel",value:function(d){this._reader&&this._reader.cancel(d),this._abortController&&this._abortController.abort()}}]),g}(),F=function(){function g(d,y,m){var c=this;D(this,g),this._stream=d,this._reader=null,this._loaded=0;var l=d.source;this._withCredentials=l.withCredentials||!1,this._readCapability=(0,P.createPromiseCapability)(),this._isStreamingSupported=!l.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=H(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(y,"-").concat(m-1));var a=l.url;fetch(a,J(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,T.validateResponseStatus)(e.status))throw(0,T.createResponseStatusError)(e.status,a);c._readCapability.resolve(),c._reader=e.body.getReader()}).catch(function(e){if((e==null?void 0:e.name)!=="AbortError")throw e}),this.onProgress=null}var v;return U(g,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(v=j(E.default.mark(function d(){var y,m,c,l;return E.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this._readCapability.promise;case 2:return a.next=4,this._reader.read();case 4:if(y=a.sent,m=y.value,!(c=y.done)){a.next=9;break}return a.abrupt("return",{value:m,done:c});case 9:return this._loaded+=m.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),l=new Uint8Array(m).buffer,a.abrupt("return",{value:l,done:!1});case 13:case"end":return a.stop()}},d,this)})),function(){return v.apply(this,arguments)})},{key:"cancel",value:function(d){this._reader&&this._reader.cancel(d),this._abortController&&this._abortController.abort()}}]),g}()}],__webpack_module_cache__={};function __w_pdfjs_require__(L){var _=__webpack_module_cache__[L];if(_!==void 0)return _.exports;var h=__webpack_module_cache__[L]={id:L,loaded:!1,exports:{}};return __webpack_modules__[L].call(h.exports,h,h.exports,__w_pdfjs_require__),h.loaded=!0,h.exports}__w_pdfjs_require__.nmd=L=>(L.paths=[],L.children||(L.children=[]),L);var __webpack_exports__={};return(()=>{var L=__webpack_exports__;Object.defineProperty(L,"__esModule",{value:!0}),Object.defineProperty(L,"addLinkAttributes",{enumerable:!0,get:function(){return _.addLinkAttributes}}),Object.defineProperty(L,"getFilenameFromUrl",{enumerable:!0,get:function(){return _.getFilenameFromUrl}}),Object.defineProperty(L,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return _.getPdfFilenameFromUrl}}),Object.defineProperty(L,"isPdfFile",{enumerable:!0,get:function(){return _.isPdfFile}}),Object.defineProperty(L,"LinkTarget",{enumerable:!0,get:function(){return _.LinkTarget}}),Object.defineProperty(L,"loadScript",{enumerable:!0,get:function(){return _.loadScript}}),Object.defineProperty(L,"PDFDateString",{enumerable:!0,get:function(){return _.PDFDateString}}),Object.defineProperty(L,"RenderingCancelledException",{enumerable:!0,get:function(){return _.RenderingCancelledException}}),Object.defineProperty(L,"build",{enumerable:!0,get:function(){return h.build}}),Object.defineProperty(L,"getDocument",{enumerable:!0,get:function(){return h.getDocument}}),Object.defineProperty(L,"LoopbackPort",{enumerable:!0,get:function(){return h.LoopbackPort}}),Object.defineProperty(L,"PDFDataRangeTransport",{enumerable:!0,get:function(){return h.PDFDataRangeTransport}}),Object.defineProperty(L,"PDFWorker",{enumerable:!0,get:function(){return h.PDFWorker}}),Object.defineProperty(L,"version",{enumerable:!0,get:function(){return h.version}}),Object.defineProperty(L,"CMapCompressionType",{enumerable:!0,get:function(){return f.CMapCompressionType}}),Object.defineProperty(L,"createObjectURL",{enumerable:!0,get:function(){return f.createObjectURL}}),Object.defineProperty(L,"createPromiseCapability",{enumerable:!0,get:function(){return f.createPromiseCapability}}),Object.defineProperty(L,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return f.createValidAbsoluteUrl}}),Object.defineProperty(L,"InvalidPDFException",{enumerable:!0,get:function(){return f.InvalidPDFException}}),Object.defineProperty(L,"MissingPDFException",{enumerable:!0,get:function(){return f.MissingPDFException}}),Object.defineProperty(L,"OPS",{enumerable:!0,get:function(){return f.OPS}}),Object.defineProperty(L,"PasswordResponses",{enumerable:!0,get:function(){return f.PasswordResponses}}),Object.defineProperty(L,"PermissionFlag",{enumerable:!0,get:function(){return f.PermissionFlag}}),Object.defineProperty(L,"removeNullCharacters",{enumerable:!0,get:function(){return f.removeNullCharacters}}),Object.defineProperty(L,"shadow",{enumerable:!0,get:function(){return f.shadow}}),Object.defineProperty(L,"UnexpectedResponseException",{enumerable:!0,get:function(){return f.UnexpectedResponseException}}),Object.defineProperty(L,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return f.UNSUPPORTED_FEATURES}}),Object.defineProperty(L,"Util",{enumerable:!0,get:function(){return f.Util}}),Object.defineProperty(L,"VerbosityLevel",{enumerable:!0,get:function(){return f.VerbosityLevel}}),Object.defineProperty(L,"AnnotationLayer",{enumerable:!0,get:function(){return E.AnnotationLayer}}),Object.defineProperty(L,"apiCompatibilityParams",{enumerable:!0,get:function(){return P.apiCompatibilityParams}}),Object.defineProperty(L,"GlobalWorkerOptions",{enumerable:!0,get:function(){return T.GlobalWorkerOptions}}),Object.defineProperty(L,"renderTextLayer",{enumerable:!0,get:function(){return N.renderTextLayer}}),Object.defineProperty(L,"SVGGraphics",{enumerable:!0,get:function(){return j.SVGGraphics}}),Object.defineProperty(L,"XfaLayer",{enumerable:!0,get:function(){return x.XfaLayer}});var _=__w_pdfjs_require__(1),h=__w_pdfjs_require__(113),f=__w_pdfjs_require__(4),E=__w_pdfjs_require__(125),P=__w_pdfjs_require__(117),T=__w_pdfjs_require__(120),N=__w_pdfjs_require__(127),j=__w_pdfjs_require__(128),x=__w_pdfjs_require__(129);if(__w_pdfjs_require__(6).isNodeJS){var M=__w_pdfjs_require__(130).PDFNodeStream;(0,h.setPDFNetworkStreamFactory)(function(U){return new M(U)})}else{var D,C=__w_pdfjs_require__(133).PDFNetworkStream;(0,_.isFetchSupported)()&&(D=__w_pdfjs_require__(134).PDFFetchStream),(0,h.setPDFNetworkStreamFactory)(function(U){return D&&(0,_.isValidFetchUrl)(U.url)?new D(U):new C(U)})}})(),__webpack_exports__})()},module.exports=factory()},102:function(L,_,h){var f;f=function(){return(()=>{var E=[,(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.DefaultAnnotationLayerFactory=x.AnnotationLayerBuilder=void 0;var D=M(2),C=M(3),U=M(6);function J(d,y){return function(m){if(Array.isArray(m))return m}(d)||function(m,c){var l=m&&(typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"]);if(l!=null){var a,e,t=[],s=!0,r=!1;try{for(l=l.call(m);!(s=(a=l.next()).done)&&(t.push(a.value),!c||t.length!==c);s=!0);}catch(p){r=!0,e=p}finally{try{s||l.return==null||l.return()}finally{if(r)throw e}}return t}}(d,y)||function(m,c){if(m){if(typeof m=="string")return H(m,c);var l=Object.prototype.toString.call(m).slice(8,-1);return l==="Object"&&m.constructor&&(l=m.constructor.name),l==="Map"||l==="Set"?Array.from(m):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?H(m,c):void 0}}(d,y)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function H(d,y){(y==null||y>d.length)&&(y=d.length);for(var m=0,c=new Array(y);m<y;m++)c[m]=d[m];return c}function $(d,y){if(!(d instanceof y))throw new TypeError("Cannot call a class as a function")}function B(d,y){for(var m=0;m<y.length;m++){var c=y[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(d,c.key,c)}}function F(d,y,m){return y&&B(d.prototype,y),m&&B(d,m),d}var g=function(){function d(y){var m=y.pageDiv,c=y.pdfPage,l=y.linkService,a=y.downloadManager,e=y.annotationStorage,t=e===void 0?null:e,s=y.imageResourcesPath,r=s===void 0?"":s,p=y.renderInteractiveForms,k=p===void 0||p,w=y.l10n,b=w===void 0?C.NullL10n:w,i=y.enableScripting,o=i!==void 0&&i,u=y.hasJSActionsPromise,A=u===void 0?null:u,I=y.mouseState,O=I===void 0?null:I;$(this,d),this.pageDiv=m,this.pdfPage=c,this.linkService=l,this.downloadManager=a,this.imageResourcesPath=r,this.renderInteractiveForms=k,this.l10n=b,this.annotationStorage=t,this.enableScripting=o,this._hasJSActionsPromise=A,this._mouseState=O,this.div=null,this._cancelled=!1}return F(d,[{key:"render",value:function(y){var m=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";return Promise.all([this.pdfPage.getAnnotations({intent:c}),this._hasJSActionsPromise]).then(function(l){var a=J(l,2),e=a[0],t=a[1],s=t!==void 0&&t;if(!m._cancelled&&e.length!==0){var r={viewport:y.clone({dontFlip:!0}),div:m.div,annotations:e,page:m.pdfPage,imageResourcesPath:m.imageResourcesPath,renderInteractiveForms:m.renderInteractiveForms,linkService:m.linkService,downloadManager:m.downloadManager,annotationStorage:m.annotationStorage,enableScripting:m.enableScripting,hasJSActions:s,mouseState:m._mouseState};m.div?D.AnnotationLayer.update(r):(m.div=document.createElement("div"),m.div.className="annotationLayer",m.pageDiv.appendChild(m.div),r.div=m.div,D.AnnotationLayer.render(r),m.l10n.translate(m.div))}})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&(this.div.hidden=!0)}}]),d}();x.AnnotationLayerBuilder=g;var v=function(){function d(){$(this,d)}return F(d,[{key:"createAnnotationLayerBuilder",value:function(y,m){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",a=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],e=arguments.length>5&&arguments[5]!==void 0?arguments[5]:C.NullL10n,t=arguments.length>6&&arguments[6]!==void 0&&arguments[6],s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,r=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null;return new g({pageDiv:y,pdfPage:m,imageResourcesPath:l,renderInteractiveForms:a,linkService:new U.SimpleLinkService,l10n:e,annotationStorage:c,enableScripting:t,hasJSActionsPromise:s,mouseState:r})}}]),d}();x.DefaultAnnotationLayerFactory=v},j=>{var x;x=typeof window<"u"&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:h(783),j.exports=x},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.getL10nFallback=$,x.NullL10n=void 0;var D,C=(D=M(4))&&D.__esModule?D:{default:D};function U(g,v,d,y,m,c,l){try{var a=g[c](l),e=a.value}catch(t){return void d(t)}a.done?v(e):Promise.resolve(e).then(y,m)}function J(g){return function(){var v=this,d=arguments;return new Promise(function(y,m){var c=g.apply(v,d);function l(e){U(c,y,m,l,a,"next",e)}function a(e){U(c,y,m,l,a,"throw",e)}l(void 0)})}}var H={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading…",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts."};function $(g,v){switch(g){case"find_match_count":g="find_match_count[".concat(v.total===1?"one":"other","]");break;case"find_match_count_limit":g="find_match_count_limit[".concat(v.limit===1?"one":"other","]")}return H[g]||""}function B(g,v){return v?g.replace(/\{\{\s*(\w+)\s*\}\}/g,function(d,y){return y in v?v[y]:"{{"+y+"}}"}):g}var F={getLanguage:function(){return J(C.default.mark(function g(){return C.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return","en-us");case 1:case"end":return v.stop()}},g)}))()},getDirection:function(){return J(C.default.mark(function g(){return C.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return","ltr");case 1:case"end":return v.stop()}},g)}))()},get:function(g){var v=arguments;return J(C.default.mark(function d(){var y,m;return C.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return y=v.length>1&&v[1]!==void 0?v[1]:null,m=v.length>2&&v[2]!==void 0?v[2]:$(g,y),c.abrupt("return",B(m,y));case 3:case"end":return c.stop()}},d)}))()},translate:function(g){return J(C.default.mark(function v(){return C.default.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:case"end":return d.stop()}},v)}))()}};x.NullL10n=F},(j,x,M)=>{j.exports=M(5)},(j,x,M)=>{function D(U){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},D(U)}var C=function(U){var J,H=Object.prototype,$=H.hasOwnProperty,B=typeof Symbol=="function"?Symbol:{},F=B.iterator||"@@iterator",g=B.asyncIterator||"@@asyncIterator",v=B.toStringTag||"@@toStringTag";function d(W,z,ee){return Object.defineProperty(W,z,{value:ee,enumerable:!0,configurable:!0,writable:!0}),W[z]}try{d({},"")}catch{d=function(z,ee,te){return z[ee]=te}}function y(W,z,ee,te){var ae=z&&z.prototype instanceof s?z:s,Z=Object.create(ae.prototype),K=new R(te||[]);return Z._invoke=function(V,q,Q){var re=c;return function(ne,se){if(re===a)throw new Error("Generator is already running");if(re===e){if(ne==="throw")throw se;return Y()}for(Q.method=ne,Q.arg=se;;){var ue=Q.delegate;if(ue){var he=A(ue,Q);if(he){if(he===t)continue;return he}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(re===c)throw re=e,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);re=a;var pe=m(V,q,Q);if(pe.type==="normal"){if(re=Q.done?e:l,pe.arg===t)continue;return{value:pe.arg,done:Q.done}}pe.type==="throw"&&(re=e,Q.method="throw",Q.arg=pe.arg)}}}(W,ee,K),Z}function m(W,z,ee){try{return{type:"normal",arg:W.call(z,ee)}}catch(te){return{type:"throw",arg:te}}}U.wrap=y;var c="suspendedStart",l="suspendedYield",a="executing",e="completed",t={};function s(){}function r(){}function p(){}var k={};k[F]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(G([])));b&&b!==H&&$.call(b,F)&&(k=b);var i=p.prototype=s.prototype=Object.create(k);function o(W){["next","throw","return"].forEach(function(z){d(W,z,function(ee){return this._invoke(z,ee)})})}function u(W,z){function ee(ae,Z,K,V){var q=m(W[ae],W,Z);if(q.type!=="throw"){var Q=q.arg,re=Q.value;return re&&D(re)==="object"&&$.call(re,"__await")?z.resolve(re.__await).then(function(ne){ee("next",ne,K,V)},function(ne){ee("throw",ne,K,V)}):z.resolve(re).then(function(ne){Q.value=ne,K(Q)},function(ne){return ee("throw",ne,K,V)})}V(q.arg)}var te;this._invoke=function(ae,Z){function K(){return new z(function(V,q){ee(ae,Z,V,q)})}return te=te?te.then(K,K):K()}}function A(W,z){var ee=W.iterator[z.method];if(ee===J){if(z.delegate=null,z.method==="throw"){if(W.iterator.return&&(z.method="return",z.arg=J,A(W,z),z.method==="throw"))return t;z.method="throw",z.arg=new TypeError("The iterator does not provide a 'throw' method")}return t}var te=m(ee,W.iterator,z.arg);if(te.type==="throw")return z.method="throw",z.arg=te.arg,z.delegate=null,t;var ae=te.arg;return ae?ae.done?(z[W.resultName]=ae.value,z.next=W.nextLoc,z.method!=="return"&&(z.method="next",z.arg=J),z.delegate=null,t):ae:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,t)}function I(W){var z={tryLoc:W[0]};1 in W&&(z.catchLoc=W[1]),2 in W&&(z.finallyLoc=W[2],z.afterLoc=W[3]),this.tryEntries.push(z)}function O(W){var z=W.completion||{};z.type="normal",delete z.arg,W.completion=z}function R(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(I,this),this.reset(!0)}function G(W){if(W){var z=W[F];if(z)return z.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var ee=-1,te=function ae(){for(;++ee<W.length;)if($.call(W,ee))return ae.value=W[ee],ae.done=!1,ae;return ae.value=J,ae.done=!0,ae};return te.next=te}}return{next:Y}}function Y(){return{value:J,done:!0}}return r.prototype=i.constructor=p,p.constructor=r,r.displayName=d(p,v,"GeneratorFunction"),U.isGeneratorFunction=function(W){var z=typeof W=="function"&&W.constructor;return!!z&&(z===r||(z.displayName||z.name)==="GeneratorFunction")},U.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,p):(W.__proto__=p,d(W,v,"GeneratorFunction")),W.prototype=Object.create(i),W},U.awrap=function(W){return{__await:W}},o(u.prototype),u.prototype[g]=function(){return this},U.AsyncIterator=u,U.async=function(W,z,ee,te,ae){ae===void 0&&(ae=Promise);var Z=new u(y(W,z,ee,te),ae);return U.isGeneratorFunction(z)?Z:Z.next().then(function(K){return K.done?K.value:Z.next()})},o(i),d(i,v,"Generator"),i[F]=function(){return this},i.toString=function(){return"[object Generator]"},U.keys=function(W){var z=[];for(var ee in W)z.push(ee);return z.reverse(),function te(){for(;z.length;){var ae=z.pop();if(ae in W)return te.value=ae,te.done=!1,te}return te.done=!0,te}},U.values=G,R.prototype={constructor:R,reset:function(W){if(this.prev=0,this.next=0,this.sent=this._sent=J,this.done=!1,this.delegate=null,this.method="next",this.arg=J,this.tryEntries.forEach(O),!W)for(var z in this)z.charAt(0)==="t"&&$.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=J)},stop:function(){this.done=!0;var W=this.tryEntries[0].completion;if(W.type==="throw")throw W.arg;return this.rval},dispatchException:function(W){if(this.done)throw W;var z=this;function ee(q,Q){return Z.type="throw",Z.arg=W,z.next=q,Q&&(z.method="next",z.arg=J),!!Q}for(var te=this.tryEntries.length-1;te>=0;--te){var ae=this.tryEntries[te],Z=ae.completion;if(ae.tryLoc==="root")return ee("end");if(ae.tryLoc<=this.prev){var K=$.call(ae,"catchLoc"),V=$.call(ae,"finallyLoc");if(K&&V){if(this.prev<ae.catchLoc)return ee(ae.catchLoc,!0);if(this.prev<ae.finallyLoc)return ee(ae.finallyLoc)}else if(K){if(this.prev<ae.catchLoc)return ee(ae.catchLoc,!0)}else{if(!V)throw new Error("try statement without catch or finally");if(this.prev<ae.finallyLoc)return ee(ae.finallyLoc)}}}},abrupt:function(W,z){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var te=this.tryEntries[ee];if(te.tryLoc<=this.prev&&$.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var ae=te;break}}ae&&(W==="break"||W==="continue")&&ae.tryLoc<=z&&z<=ae.finallyLoc&&(ae=null);var Z=ae?ae.completion:{};return Z.type=W,Z.arg=z,ae?(this.method="next",this.next=ae.finallyLoc,t):this.complete(Z)},complete:function(W,z){if(W.type==="throw")throw W.arg;return W.type==="break"||W.type==="continue"?this.next=W.arg:W.type==="return"?(this.rval=this.arg=W.arg,this.method="return",this.next="end"):W.type==="normal"&&z&&(this.next=z),t},finish:function(W){for(var z=this.tryEntries.length-1;z>=0;--z){var ee=this.tryEntries[z];if(ee.finallyLoc===W)return this.complete(ee.completion,ee.afterLoc),O(ee),t}},catch:function(W){for(var z=this.tryEntries.length-1;z>=0;--z){var ee=this.tryEntries[z];if(ee.tryLoc===W){var te=ee.completion;if(te.type==="throw"){var ae=te.arg;O(ee)}return ae}}throw new Error("illegal catch attempt")},delegateYield:function(W,z,ee){return this.delegate={iterator:G(W),resultName:z,nextLoc:ee},this.method==="next"&&(this.arg=J),t}},U}(D(j=M.nmd(j))==="object"?j.exports:{});try{regeneratorRuntime=C}catch{Function("r","regeneratorRuntime = r")(C)}},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleLinkService=x.PDFLinkService=void 0;var D,C=(D=M(4))&&D.__esModule?D:{default:D},U=M(7);function J(y){return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},J(y)}function H(y,m,c,l,a,e,t){try{var s=y[e](t),r=s.value}catch(p){return void c(p)}s.done?m(r):Promise.resolve(r).then(l,a)}function $(y){return function(){var m=this,c=arguments;return new Promise(function(l,a){var e=y.apply(m,c);function t(r){H(e,l,a,t,s,"next",r)}function s(r){H(e,l,a,t,s,"throw",r)}t(void 0)})}}function B(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function F(y,m){for(var c=0;c<m.length;c++){var l=m[c];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(y,l.key,l)}}function g(y,m,c){return m&&F(y.prototype,m),c&&F(y,c),y}var v=function(){function y(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=c.eventBus,a=c.externalLinkTarget,e=a===void 0?null:a,t=c.externalLinkRel,s=t===void 0?null:t,r=c.externalLinkEnabled,p=r===void 0||r,k=c.ignoreDestinationZoom,w=k!==void 0&&k;B(this,y),this.eventBus=l,this.externalLinkTarget=e,this.externalLinkRel=s,this.externalLinkEnabled=p,this._ignoreDestinationZoom=w,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}var m;return g(y,[{key:"setDocument",value:function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.baseUrl=l,this.pdfDocument=c,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(c){this.pdfViewer=c}},{key:"setHistory",value:function(c){this.pdfHistory=c}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(c){this.pdfViewer.currentPageNumber=c}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(c){this.pdfViewer.pagesRotation=c}},{key:"_goToDestinationHelper",value:function(c){var l,a=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2?arguments[2]:void 0,s=t[0];if(s instanceof Object){if((l=this._cachedPageNumber(s))===null)return void this.pdfDocument.getPageIndex(s).then(function(r){a.cachePageRef(r+1,s),a._goToDestinationHelper(c,e,t)}).catch(function(){console.error('PDFLinkService._goToDestinationHelper: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(c,'".'))})}else{if(!Number.isInteger(s))return void console.error('PDFLinkService._goToDestinationHelper: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(c,'".'));l=s+1}!l||l<1||l>this.pagesCount?console.error('PDFLinkService._goToDestinationHelper: "'.concat(l,'" is not ')+'a valid page number, for dest="'.concat(c,'".')):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:e,explicitDest:t,pageNumber:l})),this.pdfViewer.scrollPageIntoView({pageNumber:l,destArray:t,ignoreDestinationZoom:this._ignoreDestinationZoom}))}},{key:"goToDestination",value:(m=$(C.default.mark(function c(l){var a,e;return C.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.pdfDocument){t.next=2;break}return t.abrupt("return");case 2:if(typeof l!="string"){t.next=9;break}return a=l,t.next=6,this.pdfDocument.getDestination(l);case 6:e=t.sent,t.next=13;break;case 9:return a=null,t.next=12,l;case 12:e=t.sent;case 13:if(Array.isArray(e)){t.next=16;break}return console.error('PDFLinkService.goToDestination: "'.concat(e,'" is not ')+'a valid destination array, for dest="'.concat(l,'".')),t.abrupt("return");case 16:this._goToDestinationHelper(l,a,e);case 17:case"end":return t.stop()}},c,this)})),function(c){return m.apply(this,arguments)})},{key:"goToPage",value:function(c){if(this.pdfDocument){var l=typeof c=="string"&&this.pdfViewer.pageLabelToPageNumber(c)||0|c;Number.isInteger(l)&&l>0&&l<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(l)),this.pdfViewer.scrollPageIntoView({pageNumber:l})):console.error('PDFLinkService.goToPage: "'.concat(c,'" is not a valid page.'))}}},{key:"getDestinationHash",value:function(c){if(typeof c=="string"){if(c.length>0)return this.getAnchorUrl("#"+escape(c))}else if(Array.isArray(c)){var l=JSON.stringify(c);if(l.length>0)return this.getAnchorUrl("#"+escape(l))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(c){return(this.baseUrl||"")+c}},{key:"setHash",value:function(c){var l,a;if(this.pdfDocument)if(c.includes("=")){var e=(0,U.parseQueryString)(c);if("search"in e&&this.eventBus.dispatch("findfromurlhash",{source:this,query:e.search.replace(/"/g,""),phraseSearch:e.phrase==="true"}),"page"in e&&(l=0|e.page||1),"zoom"in e){var t=e.zoom.split(","),s=t[0],r=parseFloat(s);s.includes("Fit")?s==="Fit"||s==="FitB"?a=[null,{name:s}]:s==="FitH"||s==="FitBH"||s==="FitV"||s==="FitBV"?a=[null,{name:s},t.length>1?0|t[1]:null]:s==="FitR"?t.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):a=[null,{name:s},0|t[1],0|t[2],0|t[3],0|t[4]]:console.error('PDFLinkService.setHash: "'.concat(s,'" is not ')+"a valid zoom value."):a=[null,{name:"XYZ"},t.length>1?0|t[1]:null,t.length>2?0|t[2]:null,r?r/100:s]}a?this.pdfViewer.scrollPageIntoView({pageNumber:l||this.page,destArray:a,allowNegativeOffset:!0}):l&&(this.page=l),"pagemode"in e&&this.eventBus.dispatch("pagemode",{source:this,mode:e.pagemode}),"nameddest"in e&&this.goToDestination(e.nameddest)}else{a=unescape(c);try{a=JSON.parse(a),Array.isArray(a)||(a=a.toString())}catch{}if(typeof a=="string"||function(p){if(!Array.isArray(p))return!1;var k=p.length;if(k<2)return!1;var w=p[0];if(!(J(w)==="object"&&Number.isInteger(w.num)&&Number.isInteger(w.gen)||Number.isInteger(w)&&w>=0))return!1;var b=p[1];if(J(b)!=="object"||typeof b.name!="string")return!1;var i=!0;switch(b.name){case"XYZ":if(k!==5)return!1;break;case"Fit":case"FitB":return k===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(k!==3)return!1;break;case"FitR":if(k!==6)return!1;i=!1;break;default:return!1}for(var o=2;o<k;o++){var u=p[o];if(!(typeof u=="number"||i&&u===null))return!1}return!0}(a))return void this.goToDestination(a);console.error('PDFLinkService.setHash: "'.concat(unescape(c),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(c){switch(c){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:c})}},{key:"cachePageRef",value:function(c,l){if(l){var a=l.gen===0?"".concat(l.num,"R"):"".concat(l.num,"R").concat(l.gen);this._pagesRefCache[a]=c}}},{key:"_cachedPageNumber",value:function(c){var l,a=c.gen===0?"".concat(c.num,"R"):"".concat(c.num,"R").concat(c.gen);return((l=this._pagesRefCache)===null||l===void 0?void 0:l[a])||null}},{key:"isPageVisible",value:function(c){return this.pdfViewer.isPageVisible(c)}},{key:"isPageCached",value:function(c){return this.pdfViewer.isPageCached(c)}}]),y}();x.PDFLinkService=v;var d=function(){function y(){B(this,y),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}var m;return g(y,[{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(c){}},{key:"rotation",get:function(){return 0},set:function(c){}},{key:"goToDestination",value:(m=$(C.default.mark(function c(l){return C.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:case"end":return a.stop()}},c)})),function(c){return m.apply(this,arguments)})},{key:"goToPage",value:function(c){}},{key:"getDestinationHash",value:function(c){return"#"}},{key:"getAnchorUrl",value:function(c){return"#"}},{key:"setHash",value:function(c){}},{key:"executeNamedAction",value:function(c){}},{key:"cachePageRef",value:function(c,l){}},{key:"isPageVisible",value:function(c){return!0}},{key:"isPageCached",value:function(c){return!0}}]),y}();x.SimpleLinkService=d},(j,x)=>{function M(e,t){var s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!s){if(Array.isArray(e)||(s=H(e))||t&&e&&typeof e.length=="number"){s&&(e=s);var r=0,p=function(){};return{s:p,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(i){throw i},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k,w=!0,b=!1;return{s:function(){s=s.call(e)},n:function(){var i=s.next();return w=i.done,i},e:function(i){b=!0,k=i},f:function(){try{w||s.return==null||s.return()}finally{if(b)throw k}}}}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e,t,s){return t&&C(e.prototype,t),s&&C(e,s),e}function J(e){return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(e)}function H(e,t){if(e){if(typeof e=="string")return $(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set"?Array.from(e):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?$(e,t):void 0}}function $(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}Object.defineProperty(x,"__esModule",{value:!0}),x.apiPageLayoutToSpreadMode=function(e){switch(e){case"SinglePage":case"OneColumn":return g.NONE;case"TwoColumnLeft":case"TwoPageLeft":return g.ODD;case"TwoColumnRight":case"TwoPageRight":return g.EVEN}return g.NONE},x.apiPageModeToSidebarView=function(e){switch(e){case"UseNone":return B.NONE;case"UseThumbs":return B.THUMBS;case"UseOutlines":return B.OUTLINE;case"UseAttachments":return B.ATTACHMENTS;case"UseOC":return B.LAYERS}return B.NONE},x.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];for(var s=e>1?t:e,r=0,p=1,k=1,w=1;;){var b=r+k,i=p+w;if(i>8)break;s<=b/i?(k=b,w=i):(r=b,p=i)}return s-r/p<k/w-s?s===e?[r,p]:[p,r]:s===e?[k,w]:[w,k]},x.backtrackBeforeAllVisibleElements=d,x.binarySearchFirstItem=v,x.getActiveOrFocusedElement=function(){for(var e=document,t=e.activeElement||e.querySelector(":focus");(s=t)!==null&&s!==void 0&&s.shadowRoot;){var s;e=t.shadowRoot,t=e.activeElement||e.querySelector(":focus")}return t},x.getOutputScale=function(e){var t=window.devicePixelRatio||1,s=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.backingStorePixelRatio||1,r=t/s;return{sx:r,sy:r,scaled:r!==1}},x.getPageSizeInches=function(e){var t,s,r=e.view,p=e.userUnit,k=e.rotate,w=(s=4,function(R){if(Array.isArray(R))return R}(t=r)||function(R,G){var Y=R&&(typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"]);if(Y!=null){var W,z,ee=[],te=!0,ae=!1;try{for(Y=Y.call(R);!(te=(W=Y.next()).done)&&(ee.push(W.value),!G||ee.length!==G);te=!0);}catch(Z){ae=!0,z=Z}finally{try{te||Y.return==null||Y.return()}finally{if(ae)throw z}}return ee}}(t,s)||H(t,s)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),b=w[0],i=w[1],o=w[2],u=w[3],A=k%180!=0,I=(o-b)/72*p,O=(u-i)/72*p;return{width:A?O:I,height:A?I:O}},x.getVisibleElements=function(e){var t=e.scrollEl,s=e.views,r=e.sortByVisibility,p=r!==void 0&&r,k=e.horizontal,w=k!==void 0&&k,b=e.rtl,i=b!==void 0&&b,o=t.scrollTop,u=o+t.clientHeight,A=t.scrollLeft,I=A+t.clientWidth,O=[],R=s.length,G=v(s,w?function(pe){var me=pe.div,fe=me.offsetLeft+me.clientLeft,ge=fe+me.clientWidth;return i?fe<I:ge>A}:function(pe){var me=pe.div;return me.offsetTop+me.clientTop+me.clientHeight>o});G>0&&G<R&&!w&&(G=d(G,s,o));for(var Y=w?I:-1,W=G;W<R;W++){var z=s[W],ee=z.div,te=ee.offsetLeft+ee.clientLeft,ae=ee.offsetTop+ee.clientTop,Z=ee.clientWidth,K=ee.clientHeight,V=te+Z,q=ae+K;if(Y===-1)q>=u&&(Y=q);else if((w?te:ae)>Y)break;if(!(q<=o||ae>=u||V<=A||te>=I)){var Q=Math.max(0,o-ae)+Math.max(0,q-u),re=Math.max(0,A-te)+Math.max(0,V-I),ne=(Z-re)/Z,se=(K-Q)/K*ne*100|0;O.push({id:z.id,x:te,y:ae,view:z,percent:se,widthPercent:100*ne|0})}}var ue=O[0],he=O[O.length-1];return p&&O.sort(function(pe,me){var fe=pe.percent-me.percent;return Math.abs(fe)>.001?-fe:pe.id-me.id}),{first:ue,last:he,views:O}},x.isPortraitOrientation=function(e){return e.width<=e.height},x.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},x.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(F).includes(e)&&e!==F.UNKNOWN},x.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(g).includes(e)&&e!==g.UNKNOWN},x.moveToEndOfArray=function(e,t){for(var s=[],r=e.length,p=0,k=0;k<r;++k)t(e[k])?s.push(e[k]):(e[p]=e[k],++p);for(var w=0;p<r;++w,++p)e[p]=s[w]},x.noContextMenuHandler=function(e){e.preventDefault()},x.normalizeWheelEventDelta=function(e){var t=y(e);return e.deltaMode===0?t/=900:e.deltaMode===1&&(t/=30),t},x.normalizeWheelEventDirection=y,x.parseQueryString=function(e){for(var t=e.split("&"),s=Object.create(null),r=0,p=t.length;r<p;++r){var k=t[r].split("="),w=k[0].toLowerCase(),b=k.length>1?k[1]:null;s[decodeURIComponent(w)]=decodeURIComponent(b)}return s},x.roundToDivide=function(e,t){var s=e%t;return s===0?e:Math.round(e-s+t)},x.scrollIntoView=function(e,t){var s=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e.offsetParent;if(r){for(var p=e.offsetTop+e.clientTop,k=e.offsetLeft+e.clientLeft;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||s&&getComputedStyle(r).overflow==="hidden";)if(r.dataset._scaleY&&(p/=r.dataset._scaleY,k/=r.dataset._scaleX),p+=r.offsetTop,k+=r.offsetLeft,!(r=r.offsetParent))return;t&&(t.top!==void 0&&(p+=t.top),t.left!==void 0&&(k+=t.left,r.scrollLeft=k)),r.scrollTop=p}else console.error("offsetParent is not set -- cannot scroll")},x.waitOnEventOrTimeout=function(e){var t=e.target,s=e.name,r=e.delay,p=r===void 0?0:r;return new Promise(function(k,w){if(J(t)!=="object"||!s||typeof s!="string"||!(Number.isInteger(p)&&p>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function b(A){t instanceof l?t._off(s,i):t.removeEventListener(s,i),u&&clearTimeout(u),k(A)}var i=b.bind(null,m.EVENT);t instanceof l?t._on(s,i):t.addEventListener(s,i);var o=b.bind(null,m.TIMEOUT),u=setTimeout(o,p)})},x.watchScroll=function(e,t){var s=function(k){p||(p=window.requestAnimationFrame(function(){p=null;var w=e.scrollLeft,b=r.lastX;w!==b&&(r.right=w>b),r.lastX=w;var i=e.scrollTop,o=r.lastY;i!==o&&(r.down=i>o),r.lastY=i,t(r)}))},r={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:s},p=null;return e.addEventListener("scroll",s,!0),r},x.WaitOnType=x.VERTICAL_PADDING=x.UNKNOWN_SCALE=x.TextLayerMode=x.SpreadMode=x.SidebarView=x.ScrollMode=x.SCROLLBAR_PADDING=x.RendererType=x.ProgressBar=x.PresentationModeState=x.MIN_SCALE=x.MAX_SCALE=x.MAX_AUTO_SCALE=x.EventBus=x.DEFAULT_SCALE_VALUE=x.DEFAULT_SCALE=x.CSS_UNITS=x.AutoPrintRegExp=x.animationStarted=void 0,x.CSS_UNITS=1.3333333333333333,x.DEFAULT_SCALE_VALUE="auto",x.DEFAULT_SCALE=1,x.MIN_SCALE=.1,x.MAX_SCALE=10,x.UNKNOWN_SCALE=0,x.MAX_AUTO_SCALE=1.25,x.SCROLLBAR_PADDING=40,x.VERTICAL_PADDING=5,x.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};var B={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};x.SidebarView=B,x.RendererType={CANVAS:"canvas",SVG:"svg"},x.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};var F={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};x.ScrollMode=F;var g={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function v(e,t){var s=0,r=e.length-1;if(r<0||!t(e[r]))return e.length;if(t(e[s]))return s;for(;s<r;){var p=s+r>>1;t(e[p])?r=p:s=p+1}return s}function d(e,t,s){if(e<2)return e;var r=t[e].div,p=r.offsetTop+r.clientTop;p>=s&&(p=(r=t[e-1].div).offsetTop+r.clientTop);for(var k=e-2;k>=0&&!((r=t[k].div).offsetTop+r.clientTop+r.clientHeight<=p);--k)e=k;return e}function y(e){var t=Math.hypot(e.deltaX,e.deltaY),s=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<s&&s<.75*Math.PI&&(t=-t),t}x.SpreadMode=g,x.AutoPrintRegExp=/\bprint\s*\(/;var m={EVENT:"event",TIMEOUT:"timeout"};x.WaitOnType=m;var c=new Promise(function(e){window.requestAnimationFrame(e)});x.animationStarted=c;var l=function(){function e(t){D(this,e),this._listeners=Object.create(null)}return U(e,[{key:"on",value:function(t,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._on(t,s,{external:!0,once:r==null?void 0:r.once})}},{key:"off",value:function(t,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._off(t,s,{external:!0,once:r==null?void 0:r.once})}},{key:"dispatch",value:function(t){var s=this._listeners[t];if(s&&s.length!==0){var r,p,k=Array.prototype.slice.call(arguments,1),w=M(s.slice(0));try{for(w.s();!(p=w.n()).done;){var b=p.value,i=b.listener,o=b.external,u=b.once;u&&this._off(t,i),o?(r||(r=[])).push(i):i.apply(null,k)}}catch(R){w.e(R)}finally{w.f()}if(r){var A,I=M(r);try{for(I.s();!(A=I.n()).done;){var O=A.value;O.apply(null,k)}}catch(R){I.e(R)}finally{I.f()}r=null}}}},{key:"_on",value:function(t,s){var r,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,k=(r=this._listeners)[t]||(r[t]=[]);k.push({listener:s,external:(p==null?void 0:p.external)===!0,once:(p==null?void 0:p.once)===!0})}},{key:"_off",value:function(t,s){var r=this._listeners[t];if(r){for(var p=0,k=r.length;p<k;p++)if(r[p].listener===s)return void r.splice(p,1)}}}]),e}();x.EventBus=l;var a=function(){function e(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=s.height,p=s.width,k=s.units;D(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=r||100,this.width=p||100,this.units=k||"%",this.div.style.height=this.height+this.units,this.percent=0}return U(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 t=this.width*this._percent/100;this.div.style.width=t+this.units}},{key:"percent",get:function(){return this._percent},set:function(t){var s,r,p;this._indeterminate=isNaN(t),this._percent=(s=t,r=0,p=100,Math.min(Math.max(s,r),p)),this._updateBar()}},{key:"setWidth",value:function(t){if(t){var s=t.parentNode.offsetWidth-t.offsetWidth;s>0&&document.documentElement.style.setProperty("--loadingBar-end-offset","".concat(s,"px"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"))}},{key:"show",value:function(){this.visible||(this.visible=!0,this.bar.classList.remove("hidden"))}}]),e}();x.ProgressBar=a},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.TextLayerBuilder=x.DefaultTextLayerFactory=void 0;var D=M(2);function C(B,F){if(!(B instanceof F))throw new TypeError("Cannot call a class as a function")}function U(B,F){for(var g=0;g<F.length;g++){var v=F[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(B,v.key,v)}}function J(B,F,g){return F&&U(B.prototype,F),g&&U(B,g),B}var H=function(){function B(F){var g=F.textLayerDiv,v=F.eventBus,d=F.pageIndex,y=F.viewport,m=F.findController,c=m===void 0?null:m,l=F.enhanceTextSelection,a=l!==void 0&&l;C(this,B),this.textLayerDiv=g,this.eventBus=v,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=d,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=y,this.textDivs=[],this.findController=c,this.textLayerRenderTask=null,this.enhanceTextSelection=a,this._onUpdateTextLayerMatches=null,this._bindMouse()}return J(B,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var F=document.createElement("div");F.className="endOfContent",this.textLayerDiv.appendChild(F)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var F=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var v=document.createDocumentFragment();this.textLayerRenderTask=(0,D.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:v,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:g,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){F.textLayerDiv.appendChild(v),F._finishRendering(),F._updateMatches()},function(d){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(d){d.pageIndex!==F.pageIdx&&d.pageIndex!==-1||F._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(F){this.cancel(),this.textContentStream=F}},{key:"setTextContent",value:function(F){this.cancel(),this.textContent=F}},{key:"_convertMatches",value:function(F,g){if(!F)return[];for(var v=this.textContentItemsStr,d=0,y=0,m=v.length-1,c=[],l=0,a=F.length;l<a;l++){for(var e=F[l];d!==m&&e>=y+v[d].length;)y+=v[d].length,d++;d===v.length&&console.error("Could not find a matching mapping");var t={begin:{divIdx:d,offset:e-y}};for(e+=g[l];d!==m&&e>y+v[d].length;)y+=v[d].length,d++;t.end={divIdx:d,offset:e-y},c.push(t)}return c}},{key:"_renderMatches",value:function(F){if(F.length!==0){var g=this.findController,v=this.pageIdx,d=this.textContentItemsStr,y=this.textDivs,m=v===g.selected.pageIdx,c=g.selected.matchIdx,l=null,a={divIdx:-1,offset:void 0},e=c,t=e+1;if(g.state.highlightAll)e=0,t=F.length;else if(!m)return;for(var s=e;s<t;s++){var r=F[s],p=r.begin,k=r.end,w=m&&s===c,b=w?" selected":"";if(w&&g.scrollMatchIntoView({element:y[p.divIdx],pageIndex:v,matchIndex:c}),l&&p.divIdx===l.divIdx?A(l.divIdx,l.offset,p.offset):(l!==null&&A(l.divIdx,l.offset,a.offset),u(p)),p.divIdx===k.divIdx)A(p.divIdx,p.offset,k.offset,"highlight"+b);else{A(p.divIdx,p.offset,a.offset,"highlight begin"+b);for(var i=p.divIdx+1,o=k.divIdx;i<o;i++)y[i].className="highlight middle"+b;u(k,"highlight end"+b)}l=k}l&&A(l.divIdx,l.offset,a.offset)}function u(I,O){var R=I.divIdx;y[R].textContent="",A(R,0,I.offset,O)}function A(I,O,R,G){var Y=y[I],W=d[I].substring(O,R),z=document.createTextNode(W);if(G){var ee=document.createElement("span");return ee.className=G,ee.appendChild(z),void Y.appendChild(ee)}Y.appendChild(z)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var F=this.findController,g=this.matches,v=this.pageIdx,d=this.textContentItemsStr,y=this.textDivs,m=-1,c=0,l=g.length;c<l;c++){for(var a=g[c],e=Math.max(m,a.begin.divIdx),t=a.end.divIdx;e<=t;e++){var s=y[e];s.textContent=d[e],s.className=""}m=a.end.divIdx+1}if(F!=null&&F.highlightMatches){var r=F.pageMatches[v]||null,p=F.pageMatchesLength[v]||null;this.matches=this._convertMatches(r,p),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var F=this,g=this.textLayerDiv,v=null;g.addEventListener("mousedown",function(d){if(F.enhanceTextSelection&&F.textLayerRenderTask)return F.textLayerRenderTask.expandTextDivs(!0),void(v&&(clearTimeout(v),v=null));var y=g.querySelector(".endOfContent");if(y){var m=d.target!==g;if(m=m&&window.getComputedStyle(y).getPropertyValue("-moz-user-select")!=="none"){var c=g.getBoundingClientRect(),l=Math.max(0,(d.pageY-c.top)/c.height);y.style.top=(100*l).toFixed(2)+"%"}y.classList.add("active")}}),g.addEventListener("mouseup",function(){if(F.enhanceTextSelection&&F.textLayerRenderTask)v=setTimeout(function(){F.textLayerRenderTask&&F.textLayerRenderTask.expandTextDivs(!1),v=null},300);else{var d=g.querySelector(".endOfContent");d&&(d.style.top="",d.classList.remove("active"))}})}}]),B}();x.TextLayerBuilder=H;var $=function(){function B(){C(this,B)}return J(B,[{key:"createTextLayerBuilder",value:function(F,g,v){var d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],y=arguments.length>4?arguments[4]:void 0;return new H({textLayerDiv:F,pageIndex:g,viewport:v,enhanceTextSelection:d,eventBus:y})}}]),B}();x.DefaultTextLayerFactory=$},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.DownloadManager=void 0;var D=M(2),C=M(10);function U($,B){for(var F=0;F<B.length;F++){var g=B[F];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty($,g.key,g)}}function J($,B){var F=document.createElement("a");if(!F.click)throw new Error('DownloadManager: "a.click()" is not supported.');F.href=$,F.target="_parent","download"in F&&(F.download=B),(document.body||document.documentElement).appendChild(F),F.click(),F.remove()}var H=function(){function $(){(function(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,$),this._openBlobUrls=new WeakMap}var B,F;return B=$,(F=[{key:"downloadUrl",value:function(g,v){(0,D.createValidAbsoluteUrl)(g,"http://example.com")&&J(g+"#pdfjs.action=download",v)}},{key:"downloadData",value:function(g,v,d){J((0,D.createObjectURL)(g,d,C.viewerCompatibilityParams.disableCreateObjectURL),v)}},{key:"openOrDownloadData",value:function(g,v,d){var y=(0,D.isPdfFile)(d),m=y?"application/pdf":"";if(y&&!C.viewerCompatibilityParams.disableCreateObjectURL){var c,l=this._openBlobUrls.get(g);l||(l=URL.createObjectURL(new Blob([v],{type:m})),this._openBlobUrls.set(g,l)),c="?file="+encodeURIComponent(l+"#"+d);try{return window.open(c),!0}catch(a){console.error("openOrDownloadData: ".concat(a)),URL.revokeObjectURL(l),this._openBlobUrls.delete(g)}}return this.downloadData(v,d,m),!1}},{key:"download",value:function(g,v,d){if(C.viewerCompatibilityParams.disableCreateObjectURL)this.downloadUrl(v,d);else{var y=URL.createObjectURL(g);J(y,d)}}}])&&U(B.prototype,F),$}();x.DownloadManager=H},(j,x)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.viewerCompatibilityParams=void 0;var M=Object.create(null),D=typeof navigator<"u"&&navigator.userAgent||"",C=typeof navigator<"u"&&navigator.platform||"",U=typeof navigator<"u"&&navigator.maxTouchPoints||1,J=/Android/.test(D),H=/\b(iPad|iPhone|iPod)(?=;)/.test(D)||C==="MacIntel"&&U>1;/CriOS/.test(D)&&(M.disableCreateObjectURL=!0),(H||J)&&(M.maxCanvasPixels=5242880);var $=Object.freeze(M);x.viewerCompatibilityParams=$},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.GenericL10n=void 0;var D,C=(D=M(4))&&D.__esModule?D:{default:D};M(12);var U=M(3);function J(g,v,d,y,m,c,l){try{var a=g[c](l),e=a.value}catch(t){return void d(t)}a.done?v(e):Promise.resolve(e).then(y,m)}function H(g){return function(){var v=this,d=arguments;return new Promise(function(y,m){var c=g.apply(v,d);function l(e){J(c,y,m,l,a,"next",e)}function a(e){J(c,y,m,l,a,"throw",e)}l(void 0)})}}function $(g,v){for(var d=0;d<v.length;d++){var y=v[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}var B=document.webL10n,F=function(){function g(a){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,g),this._lang=a,this._ready=new Promise(function(e,t){B.setLanguage(a,function(){e(B)})})}var v,d,y,m,c,l;return v=g,d=[{key:"getLanguage",value:(l=H(C.default.mark(function a(){var e;return C.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return e=t.sent,t.abrupt("return",e.getLanguage());case 4:case"end":return t.stop()}},a,this)})),function(){return l.apply(this,arguments)})},{key:"getDirection",value:(c=H(C.default.mark(function a(){var e;return C.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return e=t.sent,t.abrupt("return",e.getDirection());case 4:case"end":return t.stop()}},a,this)})),function(){return c.apply(this,arguments)})},{key:"get",value:(m=H(C.default.mark(function a(e){var t,s,r,p=arguments;return C.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return t=p.length>1&&p[1]!==void 0?p[1]:null,s=p.length>2&&p[2]!==void 0?p[2]:(0,U.getL10nFallback)(e,t),k.next=4,this._ready;case 4:return r=k.sent,k.abrupt("return",r.get(e,t,s));case 6:case"end":return k.stop()}},a,this)})),function(a){return m.apply(this,arguments)})},{key:"translate",value:(y=H(C.default.mark(function a(e){var t;return C.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this._ready;case 2:return t=s.sent,s.abrupt("return",t.translate(e));case 4:case"end":return s.stop()}},a,this)})),function(a){return y.apply(this,arguments)})}],d&&$(v.prototype,d),g}();x.GenericL10n=F},()=>{document.webL10n=function(j,x,M){var D={},C="",U="textContent",J="",H={},$="loading";function B(c,l,a){l=l||function(t){},a=a||function(){};var e=new XMLHttpRequest;e.open("GET",c,!0),e.overrideMimeType&&e.overrideMimeType("text/plain; charset=utf-8"),e.onreadystatechange=function(){e.readyState==4&&(e.status==200||e.status===0?l(e.responseText):a())},e.onerror=a,e.ontimeout=a;try{e.send(null)}catch{a()}}function F(c,l,a,e){var t=c.replace(/[^\/]*$/,"")||"./";function s(r){return r.lastIndexOf("\\")<0?r:r.replace(/\\\\/g,"\\").replace(/\\n/g,`
- `).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}B(c,function(r){C+=r,function(p,k){var w={},b=/^\s*|\s*$/,i=/^\s*#|^\s*$/,o=/^\s*\[(.*)\]\s*$/,u=/^\s*@import\s+url\((.*)\)\s*$/i,A=/^([^=\s]*)\s*=\s*(.+)$/;function I(R,G,Y){var W=R.replace(b,"").split(/[\r\n]+/),z="*",ee=l.split("-",1)[0],te=!1,ae="";(function Z(){for(;;){if(!W.length)return void Y();var K=W.shift();if(!i.test(K)){if(G){if(ae=o.exec(K)){z=ae[1].toLowerCase(),te=z!=="*"&&z!==l&&z!==ee;continue}if(te)continue;if(ae=u.exec(K))return void O(t+ae[1],Z)}var V=K.match(A);V&&V.length==3&&(w[V[1]]=s(V[2]))}}})()}function O(R,G){B(R,function(Y){I(Y,!1,G)},function(){console.warn(R+" not found."),G()})}I(p,!0,function(){k(w)})}(r,function(p){for(var k in p){var w,b,i=k.lastIndexOf(".");i>0?(w=k.substring(0,i),b=k.substring(i+1)):(w=k,b=U),D[w]||(D[w]={}),D[w][b]=p[k]}a&&a()})},e)}function g(c,l){c&&(c=c.toLowerCase()),l=l||function(){},D={},C="",J="",J=c;var a=x.querySelectorAll('link[type="application/l10n"]'),e=a.length;if(e!==0){var t,s,r=0;s=function(){++r>=e&&(l(),$="complete")};for(var p=0;p<e;p++)new i(a[p]).load(c,s)}else{var k=(t=x.querySelector('script[type="application/l10n"]'))?JSON.parse(t.innerHTML):null;if(k&&k.locales&&k.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(D=k.locales[c])){var w=k.default_locale.toLowerCase();for(var b in k.locales){if((b=b.toLowerCase())===c){D=k.locales[c];break}b===w&&(D=k.locales[w])}}l()}else console.log("no resource to load, early way out");$="complete"}function i(o){var u=o.href;this.load=function(A,I){F(u,A,I,function(){console.warn(u+" not found."),console.warn('"'+A+'" resource not found'),J="",I()})}}}function v(c,l,a){var e=D[c];if(!e){if(console.warn("#"+c+" is undefined."),!a)return null;e=a}var t={};for(var s in e){var r=e[s];r=y(r=d(r,l,c,s),l,c),t[s]=r}return t}function d(c,l,a,e){var t=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(c);if(!t||!t.length)return c;var s,r=t[1],p=t[2];return l&&p in l?s=l[p]:p in D&&(s=D[p]),r in H&&(c=(0,H[r])(c,s,a,e)),c}function y(c,l,a){return c.replace(/\{\{\s*(.+?)\s*\}\}/g,function(e,t){return l&&t in l?l[t]:t in D?D[t]:(console.log("argument {{"+t+"}} for #"+a+" is undefined."),e)})}function m(c){var l=function(w){if(!w)return{};var b=w.getAttribute("data-l10n-id"),i=w.getAttribute("data-l10n-args"),o={};if(i)try{o=JSON.parse(i)}catch{console.warn("could not parse arguments for #"+b)}return{id:b,args:o}}(c);if(l.id){var a=v(l.id,l.args);if(a){if(a[U]){if(function(w){if(w.children)return w.children.length;if(w.childElementCount!==void 0)return w.childElementCount;for(var b=0,i=0;i<w.childNodes.length;i++)b+=w.nodeType===1?1:0;return b}(c)===0)c[U]=a[U];else{for(var e=c.childNodes,t=!1,s=0,r=e.length;s<r;s++)e[s].nodeType===3&&/\S/.test(e[s].nodeValue)&&(t?e[s].nodeValue="":(e[s].nodeValue=a[U],t=!0));if(!t){var p=x.createTextNode(a[U]);c.insertBefore(p,c.firstChild)}}delete a[U]}for(var k in a)c[k]=a[k]}else console.warn("#"+l.id+" is undefined.")}}return H.plural=function(c,l,a,e){var t=parseFloat(l);if(isNaN(t)||e!=U)return c;H._pluralRules||(H._pluralRules=function(r){function p(i,o){return o.indexOf(i)!==-1}function k(i,o,u){return o<=i&&i<=u}var w={0:function(i){return"other"},1:function(i){return k(i%100,3,10)?"few":i===0?"zero":k(i%100,11,99)?"many":i==2?"two":i==1?"one":"other"},2:function(i){return i!==0&&i%10==0?"many":i==2?"two":i==1?"one":"other"},3:function(i){return i==1?"one":"other"},4:function(i){return k(i,0,1)?"one":"other"},5:function(i){return k(i,0,2)&&i!=2?"one":"other"},6:function(i){return i===0?"zero":i%10==1&&i%100!=11?"one":"other"},7:function(i){return i==2?"two":i==1?"one":"other"},8:function(i){return k(i,3,6)?"few":k(i,7,10)?"many":i==2?"two":i==1?"one":"other"},9:function(i){return i===0||i!=1&&k(i%100,1,19)?"few":i==1?"one":"other"},10:function(i){return k(i%10,2,9)&&!k(i%100,11,19)?"few":i%10!=1||k(i%100,11,19)?"other":"one"},11:function(i){return k(i%10,2,4)&&!k(i%100,12,14)?"few":i%10==0||k(i%10,5,9)||k(i%100,11,14)?"many":i%10==1&&i%100!=11?"one":"other"},12:function(i){return k(i,2,4)?"few":i==1?"one":"other"},13:function(i){return k(i%10,2,4)&&!k(i%100,12,14)?"few":i!=1&&k(i%10,0,1)||k(i%10,5,9)||k(i%100,12,14)?"many":i==1?"one":"other"},14:function(i){return k(i%100,3,4)?"few":i%100==2?"two":i%100==1?"one":"other"},15:function(i){return i===0||k(i%100,2,10)?"few":k(i%100,11,19)?"many":i==1?"one":"other"},16:function(i){return i%10==1&&i!=11?"one":"other"},17:function(i){return i==3?"few":i===0?"zero":i==6?"many":i==2?"two":i==1?"one":"other"},18:function(i){return i===0?"zero":k(i,0,2)&&i!==0&&i!=2?"one":"other"},19:function(i){return k(i,2,10)?"few":k(i,0,1)?"one":"other"},20:function(i){return!k(i%10,3,4)&&i%10!=9||k(i%100,10,19)||k(i%100,70,79)||k(i%100,90,99)?i%1e6==0&&i!==0?"many":i%10!=2||p(i%100,[12,72,92])?i%10!=1||p(i%100,[11,71,91])?"other":"one":"two":"few"},21:function(i){return i===0?"zero":i==1?"one":"other"},22:function(i){return k(i,0,1)||k(i,11,99)?"one":"other"},23:function(i){return k(i%10,1,2)||i%20==0?"one":"other"},24:function(i){return k(i,3,10)||k(i,13,19)?"few":p(i,[2,12])?"two":p(i,[1,11])?"one":"other"}},b={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[r.replace(/-.*$/,"")];return b in w?w[b]:(console.warn("plural form unknown for ["+r+"]"),function(){return"other"})}(J));var s="["+H._pluralRules(t)+"]";return t===0&&a+"[zero]"in D?c=D[a+"[zero]"][e]:t==1&&a+"[one]"in D?c=D[a+"[one]"][e]:t==2&&a+"[two]"in D?c=D[a+"[two]"][e]:a+s in D?c=D[a+s][e]:a+"[other]"in D&&(c=D[a+"[other]"][e]),c},{get:function(c,l,a){var e,t=c.lastIndexOf("."),s=U;t>0&&(s=c.substring(t+1),c=c.substring(0,t)),a&&((e={})[s]=a);var r=v(c,l,e);return r&&s in r?r[s]:"{{"+c+"}}"},getData:function(){return D},getText:function(){return C},getLanguage:function(){return J},setLanguage:function(c,l){g(c,function(){l&&l()})},getDirection:function(){var c=J.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(c)>=0?"rtl":"ltr"},translate:function(c){for(var l=function(t){return t?t.querySelectorAll("*[data-l10n-id]"):[]}(c=c||x.documentElement),a=l.length,e=0;e<a;e++)m(l[e]);m(c)},getReadyState:function(){return $},ready:function(c){c&&($=="complete"||$=="interactive"?j.setTimeout(function(){c()}):x.addEventListener&&x.addEventListener("localized",function l(){x.removeEventListener("localized",l),c()}))}}}(window,document)},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.PDFFindController=x.FindState=void 0;var D=M(2),C=M(14),U=M(7);function J(l,a){for(var e=0;e<a.length;e++){var t=a[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function H(l,a){return function(e){if(Array.isArray(e))return e}(l)||function(e,t){var s=e&&(typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"]);if(s!=null){var r,p,k=[],w=!0,b=!1;try{for(s=s.call(e);!(w=(r=s.next()).done)&&(k.push(r.value),!t||k.length!==t);w=!0);}catch(i){b=!0,p=i}finally{try{w||s.return==null||s.return()}finally{if(b)throw p}}return k}}(l,a)||B(l,a)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(l,a){var e=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!e){if(Array.isArray(l)||(e=B(l))||a&&l&&typeof l.length=="number"){e&&(l=e);var t=0,s=function(){};return{s,n:function(){return t>=l.length?{done:!0}:{done:!1,value:l[t++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,p=!0,k=!1;return{s:function(){e=e.call(l)},n:function(){var w=e.next();return p=w.done,w},e:function(w){k=!0,r=w},f:function(){try{p||e.return==null||e.return()}finally{if(k)throw r}}}}function B(l,a){if(l){if(typeof l=="string")return F(l,a);var e=Object.prototype.toString.call(l).slice(8,-1);return e==="Object"&&l.constructor&&(e=l.constructor.name),e==="Map"||e==="Set"?Array.from(l):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?F(l,a):void 0}}function F(l,a){(a==null||a>l.length)&&(a=l.length);for(var e=0,t=new Array(a);e<a;e++)t[e]=l[e];return t}var g={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};x.FindState=g;var v={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},d=null;function y(l){if(!d){var a=Object.keys(v).join("");d=new RegExp("[".concat(a,"]"),"g")}var e=null;return[l.replace(d,function(t,s){var r=v[t],p=r.length-t.length;return p!==0&&(e||(e=[])).push([s,p]),r}),e]}function m(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!a)return l;var e,t=0,s=$(a);try{for(s.s();!(e=s.n()).done;){var r=H(e.value,2),p=r[0],k=r[1],w=p+t;if(w>=l)break;if(w+k>l){t+=l-w;break}t+=k}}catch(b){s.e(b)}finally{s.f()}return l-t}var c=function(){function l(t){var s=t.linkService,r=t.eventBus;(function(p,k){if(!(p instanceof k))throw new TypeError("Cannot call a class as a function")})(this,l),this._linkService=s,this._eventBus=r,this._reset(),r._on("findbarclose",this._onFindBarClose.bind(this))}var a,e;return a=l,e=[{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:"setDocument",value:function(t){this._pdfDocument&&this._reset(),t&&(this._pdfDocument=t,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(t,s){var r=this;if(s){var p=this._pdfDocument;(this._state===null||this._shouldDirtyMatch(t,s))&&(this._dirtyMatch=!0),this._state=s,t!=="findhighlightallchange"&&this._updateUIState(g.PENDING),this._firstPageCapability.promise.then(function(){if(r._pdfDocument&&(!p||r._pdfDocument===p)){r._extractText();var k=!r._highlightMatches,w=!!r._findTimeout;r._findTimeout&&(clearTimeout(r._findTimeout),r._findTimeout=null),t==="find"?r._findTimeout=setTimeout(function(){r._nextMatch(),r._findTimeout=null},250):r._dirtyMatch?r._nextMatch():t==="findagain"?(r._nextMatch(),k&&r._state.highlightAll&&r._updateAllPages()):t==="findhighlightallchange"?(w?r._nextMatch():r._highlightMatches=!0,r._updateAllPages()):r._nextMatch()}})}}},{key:"scrollMatchIntoView",value:function(t){var s=t.element,r=s===void 0?null:s,p=t.pageIndex,k=p===void 0?-1:p,w=t.matchIndex,b=w===void 0?-1:w;if(this._scrollMatches&&r&&b!==-1&&b===this._selected.matchIdx&&k!==-1&&k===this._selected.pageIdx){this._scrollMatches=!1;var i={top:-50,left:-400};(0,U.scrollIntoView)(r,i,!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,D.createPromiseCapability)()}},{key:"_query",get:function(){if(this._state.query!==this._rawQuery){this._rawQuery=this._state.query;var t=H(y(this._state.query),1);this._normalizedQuery=t[0]}return this._normalizedQuery}},{key:"_shouldDirtyMatch",value:function(t,s){if(s.query!==this._state.query)return!0;switch(t){case"findagain":var r=this._selected.pageIdx+1,p=this._linkService;return r>=1&&r<=p.pagesCount&&r!==p.page&&!p.isPageVisible(r);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(t,s,r){function p(b){var i=t[b],o=t[b+1];if(b<t.length-1&&i.match===o.match)return i.skipped=!0,!0;for(var u=b-1;u>=0;u--){var A=t[u];if(!A.skipped){if(A.match+A.matchLength<i.match)break;if(A.match+A.matchLength>=i.match+i.matchLength)return i.skipped=!0,!0}}return!1}t.sort(function(b,i){return b.match===i.match?b.matchLength-i.matchLength:b.match-i.match});for(var k=0,w=t.length;k<w;k++)p(k)||(s.push(t[k].match),r.push(t[k].matchLength))}},{key:"_isEntireWord",value:function(t,s,r){if(s>0){var p=t.charCodeAt(s),k=t.charCodeAt(s-1);if((0,C.getCharacterType)(p)===(0,C.getCharacterType)(k))return!1}var w=s+r-1;if(w<t.length-1){var b=t.charCodeAt(w),i=t.charCodeAt(w+1);if((0,C.getCharacterType)(b)===(0,C.getCharacterType)(i))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(t,s,r,p,k){for(var w=[],b=[],i=t.length,o=-i;(o=r.indexOf(t,o+i))!==-1;)if(!k||this._isEntireWord(r,o,i)){var u=m(o,p),A=m(o+i-1,p)-u+1;w.push(u),b.push(A)}this._pageMatches[s]=w,this._pageMatchesLength[s]=b}},{key:"_calculateWordMatch",value:function(t,s,r,p,k){for(var w=[],b=t.match(/\S+/g),i=0,o=b.length;i<o;i++)for(var u=b[i],A=u.length,I=-A;(I=r.indexOf(u,I+A))!==-1;)if(!k||this._isEntireWord(r,I,A)){var O=m(I,p),R=m(I+A-1,p)-O+1;w.push({match:O,matchLength:R,skipped:!1})}this._pageMatchesLength[s]=[],this._pageMatches[s]=[],this._prepareMatches(w,this._pageMatches[s],this._pageMatchesLength[s])}},{key:"_calculateMatch",value:function(t){var s=this._pageContents[t],r=this._pageDiffs[t],p=this._query,k=this._state,w=k.caseSensitive,b=k.entireWord,i=k.phraseSearch;if(p.length!==0){w||(s=s.toLowerCase(),p=p.toLowerCase()),i?this._calculatePhraseMatch(p,t,s,r,b):this._calculateWordMatch(p,t,s,r,b),this._state.highlightAll&&this._updatePage(t),this._resumePageIdx===t&&(this._resumePageIdx=null,this._nextPageMatch());var o=this._pageMatches[t].length;o>0&&(this._matchesCountTotal+=o,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var t=this;if(!(this._extractTextPromises.length>0))for(var s=Promise.resolve(),r=function(w,b){var i=(0,D.createPromiseCapability)();t._extractTextPromises[w]=i.promise,s=s.then(function(){return t._pdfDocument.getPage(w+1).then(function(o){return o.getTextContent({normalizeWhitespace:!0})}).then(function(o){for(var u=o.items,A=[],I=0,O=u.length;I<O;I++)A.push(u[I].str);var R=H(y(A.join("")),2);t._pageContents[w]=R[0],t._pageDiffs[w]=R[1],i.resolve(w)},function(o){console.error("Unable to get text content for page ".concat(w+1),o),t._pageContents[w]="",t._pageDiffs[w]=null,i.resolve(w)})})},p=0,k=this._linkService.pagesCount;p<k;p++)r(p)}},{key:"_updatePage",value:function(t){this._scrollMatches&&this._selected.pageIdx===t&&(this._linkService.page=t+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:t})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var t=this,s=this._state.findPrevious,r=this._linkService.page-1,p=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=r,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var k=0;k<p;k++)this._pendingFindMatches.has(k)||(this._pendingFindMatches.add(k),this._extractTextPromises[k].then(function(i){t._pendingFindMatches.delete(i),t._calculateMatch(i)}))}if(this._query!==""){if(!this._resumePageIdx){var w=this._offset;if(this._pagesToSearch=p,w.matchIdx!==null){var b=this._pageMatches[w.pageIdx].length;if(!s&&w.matchIdx+1<b||s&&w.matchIdx>0)return w.matchIdx=s?w.matchIdx-1:w.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(s)}this._nextPageMatch()}}else this._updateUIState(g.FOUND)}},{key:"_matchesReady",value:function(t){var s=this._offset,r=t.length,p=this._state.findPrevious;return r?(s.matchIdx=p?r-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(p),!!(s.wrapped&&(s.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");var t=null;do{var s=this._offset.pageIdx;if(!(t=this._pageMatches[s])){this._resumePageIdx=s;break}}while(!this._matchesReady(t))}},{key:"_advanceOffsetPage",value:function(t){var s=this._offset,r=this._linkService.pagesCount;s.pageIdx=t?s.pageIdx-1:s.pageIdx+1,s.matchIdx=null,this._pagesToSearch--,(s.pageIdx>=r||s.pageIdx<0)&&(s.pageIdx=t?r-1:0,s.wrapped=!0)}},{key:"_updateMatch",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],s=g.NOT_FOUND,r=this._offset.wrapped;if(this._offset.wrapped=!1,t){var p=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,s=r?g.WRAPPED:g.FOUND,p!==-1&&p!==this._selected.pageIdx&&this._updatePage(p)}this._updateUIState(s,this._state.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(t){var s=this,r=this._pdfDocument;this._firstPageCapability.promise.then(function(){!s._pdfDocument||r&&s._pdfDocument!==r||(s._findTimeout&&(clearTimeout(s._findTimeout),s._findTimeout=null),s._resumePageIdx&&(s._resumePageIdx=null,s._dirtyMatch=!0),s._updateUIState(g.FOUND),s._highlightMatches=!1,s._updateAllPages())})}},{key:"_requestMatchesCount",value:function(){var t=this._selected,s=t.pageIdx,r=t.matchIdx,p=0,k=this._matchesCountTotal;if(r!==-1){for(var w=0;w<s;w++){var b;p+=((b=this._pageMatches[w])===null||b===void 0?void 0:b.length)||0}p+=r+1}return(p<1||p>k)&&(p=k=0),{current:p,total:k}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(t,s){var r,p;this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:t,previous:s,matchesCount:this._requestMatchesCount(),rawQuery:(r=(p=this._state)===null||p===void 0?void 0:p.query)!==null&&r!==void 0?r:null})}}],e&&J(a.prototype,e),l}();x.PDFFindController=c},(j,x)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.getCharacterType=function(D){return function(C){return C<11904}(D)?function(C){return(65408&C)==0}(D)?function(C){return C===32||C===9||C===13||C===10}(D)?M.SPACE:function(C){return C>=97&&C<=122||C>=65&&C<=90}(D)||function(C){return C>=48&&C<=57}(D)||D===95?M.ALPHA_LETTER:M.PUNCT:function(C){return(65408&C)==3584}(D)?M.THAI_LETTER:D===160?M.SPACE:M.ALPHA_LETTER:function(C){return C>=13312&&C<=40959||C>=63744&&C<=64255}(D)?M.HAN_LETTER:function(C){return C>=12448&&C<=12543}(D)?M.KATAKANA_LETTER:function(C){return C>=12352&&C<=12447}(D)?M.HIRAGANA_LETTER:function(C){return C>=65376&&C<=65439}(D)?M.HALFWIDTH_KATAKANA_LETTER:M.ALPHA_LETTER},x.CharacterType=void 0;var M={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};x.CharacterType=M},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.isDestArraysEqual=g,x.isDestHashesEqual=F,x.PDFHistory=void 0;var D=M(7);function C(v){return C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},C(v)}function U(v,d){return function(y){if(Array.isArray(y))return y}(v)||function(y,m){var c=y&&(typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"]);if(c!=null){var l,a,e=[],t=!0,s=!1;try{for(c=c.call(y);!(t=(l=c.next()).done)&&(e.push(l.value),!m||e.length!==m);t=!0);}catch(r){s=!0,a=r}finally{try{t||c.return==null||c.return()}finally{if(s)throw a}}return e}}(v,d)||function(y,m){if(y){if(typeof y=="string")return J(y,m);var c=Object.prototype.toString.call(y).slice(8,-1);return c==="Object"&&y.constructor&&(c=y.constructor.name),c==="Map"||c==="Set"?Array.from(y):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?J(y,m):void 0}}(v,d)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function J(v,d){(d==null||d>v.length)&&(d=v.length);for(var y=0,m=new Array(d);y<d;y++)m[y]=v[y];return m}function H(v,d){for(var y=0;y<d.length;y++){var m=d[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}function $(){return document.location.hash}var B=function(){function v(m){var c=this,l=m.linkService,a=m.eventBus;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,v),this.linkService=l,this.eventBus=a,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",function(e){c._isViewerInPresentationMode=e.state!==D.PresentationModeState.NORMAL}),this.eventBus._on("pagesinit",function(){c._isPagesLoaded=!1,c.eventBus._on("pagesloaded",function(e){c._isPagesLoaded=!!e.pagesCount},{once:!0})})}var d,y;return d=v,y=[{key:"initialize",value:function(m){var c=m.fingerprint,l=m.resetHistory,a=l!==void 0&&l,e=m.updateUrl,t=e!==void 0&&e;if(c&&typeof c=="string"){this._initialized&&this.reset();var s=this._fingerprint!==""&&this._fingerprint!==c;this._fingerprint=c,this._updateUrl=t===!0,this._initialized=!0,this._bindEvents();var r=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=$(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(r,!0)||a){var p=this._parseCurrentHash(!0),k=p.hash,w=p.page,b=p.rotation;return!k||s||a?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:k,page:w,rotation:b},!0)}var i=r.destination;this._updateInternalState(i,r.uid,!0),i.rotation!==void 0&&(this._initialRotation=i.rotation),i.dest?(this._initialBookmark=JSON.stringify(i.dest),this._destination.page=null):i.hash?this._initialBookmark=i.hash:i.page&&(this._initialBookmark="page=".concat(i.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(m){var c=this,l=m.namedDest,a=l===void 0?null:l,e=m.explicitDest,t=m.pageNumber;if(this._initialized)if(a&&typeof a!="string")console.error("PDFHistory.push: "+'"'.concat(a,'" is not a valid namedDest parameter.'));else if(Array.isArray(e))if(this._isValidPage(t)||t===null&&!this._destination){var s=a||JSON.stringify(e);if(s){var r=!1;if(this._destination&&(F(this._destination.hash,s)||g(this._destination.dest,e))){if(this._destination.page)return;r=!0}this._popStateInProgress&&!r||(this._pushOrReplaceState({dest:e,hash:s,page:t,rotation:this.linkService.rotation},r),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){c._popStateInProgress=!1})))}}else console.error("PDFHistory.push: "+'"'.concat(t,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(e,'" is not a valid explicitDest parameter.'))}},{key:"pushPage",value:function(m){var c,l=this;this._initialized&&(this._isValidPage(m)?((c=this._destination)===null||c===void 0?void 0:c.page)!==m&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:"page=".concat(m),page:m,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){l._popStateInProgress=!1})))):console.error('PDFHistory.pushPage: "'.concat(m,'" is not a valid page number.')))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var m=window.history.state;this._isValidState(m)&&m.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var m=window.history.state;this._isValidState(m)&&m.uid<this._maxUid&&window.history.forward()}}},{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}},{key:"_pushOrReplaceState",value:function(m){var c,l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=l||!this._destination,e={fingerprint:this._fingerprint,uid:a?this._uid:this._uid+1,destination:m};if(this._updateInternalState(m,e.uid),this._updateUrl&&m!=null&&m.hash){var t=document.location.href.split("#")[0];t.startsWith("file://")||(c="".concat(t,"#").concat(m.hash))}a?window.history.replaceState(e,"",c):window.history.pushState(e,"",c)}},{key:"_tryPushCurrentPosition",value:function(){var m=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this._position){var c=this._position;if(m&&((c=Object.assign(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(c,!0);else if(this._destination.hash!==c.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var l=!1;if(this._destination.page>=c.first&&this._destination.page<=c.page){if(this._destination.dest!==void 0||!this._destination.first)return;l=!0}this._pushOrReplaceState(c,l)}}else this._pushOrReplaceState(c)}}},{key:"_isValidPage",value:function(m){return Number.isInteger(m)&&m>0&&m<=this.linkService.pagesCount}},{key:"_isValidState",value:function(m){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!m)return!1;if(m.fingerprint!==this._fingerprint){if(!c||typeof m.fingerprint!="string"||m.fingerprint.length!==this._fingerprint.length)return!1;var l=performance.getEntriesByType("navigation"),a=U(l,1),e=a[0];if((e==null?void 0:e.type)!=="reload")return!1}return!(!Number.isInteger(m.uid)||m.uid<0)&&m.destination!==null&&C(m.destination)==="object"}},{key:"_updateInternalState",value:function(m,c){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),l&&m!=null&&m.temporary&&delete m.temporary,this._destination=m,this._uid=c,this._maxUid=Math.max(this._maxUid,c),this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var m=arguments.length>0&&arguments[0]!==void 0&&arguments[0],c=unescape($()).substring(1),l=(0,D.parseQueryString)(c),a=l.nameddest||"",e=0|l.page;return(!this._isValidPage(e)||m&&a.length>0)&&(e=null),{hash:c,page:e,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(m){var c=this,l=m.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(l.pageNumber):l.pdfOpenParams.substring(1),page:this.linkService.page,first:l.pageNumber,rotation:l.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){c._popStateInProgress||c._tryPushCurrentPosition(!0),c._updateViewareaTimeout=null},1e3))}},{key:"_popState",value:function(m){var c=this,l=m.state,a=$(),e=this._currentHash!==a;if(this._currentHash=a,l){if(this._isValidState(l)){this._popStateInProgress=!0,e&&(this._blockHashChange++,(0,D.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(function(){c._blockHashChange--}));var t=l.destination;this._updateInternalState(t,l.uid,!0),(0,D.isValidRotation)(t.rotation)&&(this.linkService.rotation=t.rotation),t.dest?this.linkService.goToDestination(t.dest):t.hash?this.linkService.setHash(t.hash):t.page&&(this.linkService.page=t.page),Promise.resolve().then(function(){c._popStateInProgress=!1})}}else{this._uid++;var s=this._parseCurrentHash(),r=s.hash,p=s.page,k=s.rotation;this._pushOrReplaceState({hash:r,page:p,rotation:k},!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)}}],y&&H(d.prototype,y),v}();function F(v,d){return typeof v=="string"&&typeof d=="string"&&(v===d||(0,D.parseQueryString)(v).nameddest===d)}function g(v,d){function y(l,a){if(C(l)!==C(a)||Array.isArray(l)||Array.isArray(a))return!1;if(l!==null&&C(l)==="object"&&a!==null){if(Object.keys(l).length!==Object.keys(a).length)return!1;for(var e in l)if(!y(l[e],a[e]))return!1;return!0}return l===a||Number.isNaN(l)&&Number.isNaN(a)}if(!Array.isArray(v)||!Array.isArray(d)||v.length!==d.length)return!1;for(var m=0,c=v.length;m<c;m++)if(!y(v[m],d[m]))return!1;return!0}x.PDFHistory=B},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.PDFPageView=void 0;var D,C=(D=M(4))&&D.__esModule?D:{default:D},U=M(7),J=M(2),H=M(3),$=M(17),B=M(10);function F(m,c,l,a,e,t,s){try{var r=m[t](s),p=r.value}catch(k){return void l(k)}r.done?c(p):Promise.resolve(p).then(a,e)}function g(m){return function(){var c=this,l=arguments;return new Promise(function(a,e){var t=m.apply(c,l);function s(p){F(t,a,e,s,r,"next",p)}function r(p){F(t,a,e,s,r,"throw",p)}s(void 0)})}}function v(m,c){for(var l=0;l<c.length;l++){var a=c[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(m,a.key,a)}}var d=B.viewerCompatibilityParams.maxCanvasPixels||16777216,y=function(){function m(t){(function(k,w){if(!(k instanceof w))throw new TypeError("Cannot call a class as a function")})(this,m);var s=t.container,r=t.defaultViewport;this.id=t.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||U.DEFAULT_SCALE,this.viewport=r,this.pdfPageRotate=r.rotation,this._optionalContentConfigPromise=t.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:U.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms!==!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels||d,this.eventBus=t.eventBus,this.renderingQueue=t.renderingQueue,this.textLayerFactory=t.textLayerFactory,this.annotationLayerFactory=t.annotationLayerFactory,this.xfaLayerFactory=t.xfaLayerFactory,this.structTreeLayerFactory=t.structTreeLayerFactory,this.renderer=t.renderer||U.RendererType.CANVAS,this.l10n=t.l10n||H.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=$.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;var p=document.createElement("div");p.className="page",p.style.width=Math.floor(this.viewport.width)+"px",p.style.height=Math.floor(this.viewport.height)+"px",p.setAttribute("data-page-number",this.id),p.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(function(k){p.setAttribute("aria-label",k)}),this.div=p,s.appendChild(p)}var c,l,a,e;return c=m,l=[{key:"setPdfPage",value:function(t){this.pdfPage=t,this.pdfPageRotate=t.rotate;var s=(this.rotation+this.pdfPageRotate)%360;this.viewport=t.getViewport({scale:this.scale*U.CSS_UNITS,rotation:s}),this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_renderAnnotationLayer",value:(e=g(C.default.mark(function t(){var s;return C.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s=null,r.prev=1,r.next=4,this.annotationLayer.render(this.viewport,"display");case 4:r.next=9;break;case 6:r.prev=6,r.t0=r.catch(1),s=r.t0;case 9:return r.prev=9,this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:s}),r.finish(9);case 12:case"end":return r.stop()}},t,this,[[1,6,9,12]])})),function(){return e.apply(this,arguments)})},{key:"_renderXfaLayer",value:(a=g(C.default.mark(function t(){var s;return C.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return s=null,r.prev=1,r.next=4,this.xfaLayer.render(this.viewport,"display");case 4:r.next=9;break;case 6:r.prev=6,r.t0=r.catch(1),s=r.t0;case 9:return r.prev=9,this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:s}),r.finish(9);case 12:case"end":return r.stop()}},t,this,[[1,6,9,12]])})),function(){return a.apply(this,arguments)})},{key:"_resetZoomLayer",value:function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.zoomLayer){var s=this.zoomLayer.firstChild;this.paintedViewportMap.delete(s),s.width=0,s.height=0,t&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var t,s,r=this,p=arguments.length>0&&arguments[0]!==void 0&&arguments[0],k=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.cancelRendering(k),this.renderingState=$.RenderingStates.INITIAL;var w=this.div;w.style.width=Math.floor(this.viewport.width)+"px",w.style.height=Math.floor(this.viewport.height)+"px";for(var b=w.childNodes,i=p&&this.zoomLayer||null,o=k&&((t=this.annotationLayer)===null||t===void 0?void 0:t.div)||null,u=((s=this.xfaLayer)===null||s===void 0?void 0:s.div)||null,A=b.length-1;A>=0;A--){var I=b[A];i!==I&&o!==I&&u!==I&&w.removeChild(I)}w.removeAttribute("data-loaded"),o?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",this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(function(O){var R;(R=r.loadingIconDiv)===null||R===void 0||R.setAttribute("aria-label",O)}),w.appendChild(this.loadingIconDiv)}},{key:"update",value:function(t,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.scale=t||this.scale,s!==void 0&&(this.rotation=s),r instanceof Promise&&(this._optionalContentConfigPromise=r);var p=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*U.CSS_UNITS,rotation:p}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});var k=!1;if(this.canvas&&this.maxCanvasPixels>0){var w=this.outputScale;(Math.floor(this.viewport.width)*w.sx|0)*(Math.floor(this.viewport.height)*w.sy|0)>this.maxCanvasPixels&&(k=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&k)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});this.zoomLayer||this.canvas.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 t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!t&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}},{key:"cssTransform",value:function(t){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=this.viewport.width,p=this.viewport.height,k=this.div;t.style.width=t.parentNode.style.width=k.style.width=Math.floor(r)+"px",t.style.height=t.parentNode.style.height=k.style.height=Math.floor(p)+"px";var w=this.viewport.rotation-this.paintedViewportMap.get(t).rotation,b=Math.abs(w),i=1,o=1;if(b!==90&&b!==270||(i=p/r,o=r/p),t.style.transform="rotate(".concat(w,"deg) scale(").concat(i,", ").concat(o,")"),this.textLayer){var u=this.textLayer.viewport,A=this.viewport.rotation-u.rotation,I=Math.abs(A),O=r/u.width;I!==90&&I!==270||(O=r/u.height);var R,G,Y=this.textLayer.textLayerDiv;switch(I){case 0:R=G=0;break;case 90:R=0,G="-"+Y.style.height;break;case 180:R="-"+Y.style.width,G="-"+Y.style.height;break;case 270:R="-"+Y.style.width,G=0;break;default:console.error("Bad rotation value.")}Y.style.transform="rotate(".concat(I,"deg) ")+"scale(".concat(O,") ")+"translate(".concat(R,", ").concat(G,")"),Y.style.transformOrigin="0% 0%"}s&&this.annotationLayer&&this._renderAnnotationLayer(),this.xfaLayer&&this._renderXfaLayer()}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}},{key:"getPagePoint",value:function(t,s){return this.viewport.convertToPdfPoint(t,s)}},{key:"draw",value:function(){var t,s=this;this.renderingState!==$.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var r=this.div,p=this.pdfPage;if(!p)return this.renderingState=$.RenderingStates.FINISHED,this.loadingIconDiv&&(r.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=$.RenderingStates.RUNNING;var k=document.createElement("div");k.style.width=r.style.width,k.style.height=r.style.height,k.classList.add("canvasWrapper"),(t=this.annotationLayer)!==null&&t!==void 0&&t.div?r.insertBefore(k,this.annotationLayer.div):r.appendChild(k);var w=null;if(this.textLayerMode!==U.TextLayerMode.DISABLE&&this.textLayerFactory){var b,i=document.createElement("div");i.className="textLayer",i.style.width=k.style.width,i.style.height=k.style.height,(b=this.annotationLayer)!==null&&b!==void 0&&b.div?r.insertBefore(i,this.annotationLayer.div):r.appendChild(i),w=this.textLayerFactory.createTextLayerBuilder(i,this.id-1,this.viewport,this.textLayerMode===U.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=w;var o=null;this.renderingQueue&&(o=function(O){if(!s.renderingQueue.isHighestPriority(s))return s.renderingState=$.RenderingStates.PAUSED,void(s.resume=function(){s.renderingState=$.RenderingStates.RUNNING,O()});O()});var u=function(){var O=g(C.default.mark(function R(){var G,Y=arguments;return C.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(G=Y.length>0&&Y[0]!==void 0?Y[0]:null,A===s.paintTask&&(s.paintTask=null),!(G instanceof J.RenderingCancelledException)){W.next=5;break}return s._renderError=null,W.abrupt("return");case 5:if(s._renderError=G,s.renderingState=$.RenderingStates.FINISHED,s.loadingIconDiv&&(r.removeChild(s.loadingIconDiv),delete s.loadingIconDiv),s._resetZoomLayer(!0),s.eventBus.dispatch("pagerendered",{source:s,pageNumber:s.id,cssTransform:!1,timestamp:performance.now(),error:s._renderError}),!G){W.next=12;break}throw G;case 12:case"end":return W.stop()}},R)}));return function(){return O.apply(this,arguments)}}(),A=this.renderer===U.RendererType.SVG?this.paintOnSvg(k):this.paintOnCanvas(k);A.onRenderContinue=o,this.paintTask=A;var I=A.promise.then(function(){return u(null).then(function(){if(w){var O=p.streamTextContent({normalizeWhitespace:!0,includeMarkedContent:!0});w.setTextContentStream(O),w.render()}})},function(O){return u(O)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(r,p,null,this.imageResourcesPath,this.renderInteractiveForms,this.l10n,null,null,null)),this._renderAnnotationLayer()),this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder(r,p,null)),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=function(O){O.pageNumber===s.id&&(s.eventBus._off("textlayerrendered",s._onTextLayerRendered),s._onTextLayerRendered=null,s.canvas&&s.pdfPage.getStructTree().then(function(R){if(R&&s.canvas){var G=s.structTreeLayer.render(R);G.classList.add("structTree"),s.canvas.appendChild(G)}}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder(p)),r.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),I}},{key:"paintOnCanvas",value:function(t){var s=(0,J.createPromiseCapability)(),r={promise:s.promise,onRenderContinue:function(W){W()},cancel:function(){Y.cancel()}},p=this.viewport,k=document.createElement("canvas");k.hidden=!0;var w=!0,b=function(){w&&(k.hidden=!1,w=!1)};t.appendChild(k),this.canvas=k,k.mozOpaque=!0;var i=k.getContext("2d",{alpha:!1}),o=(0,U.getOutputScale)(i);if(this.outputScale=o,this.useOnlyCssZoom){var u=p.clone({scale:U.CSS_UNITS});o.sx*=u.width/p.width,o.sy*=u.height/p.height,o.scaled=!0}if(this.maxCanvasPixels>0){var A=p.width*p.height,I=Math.sqrt(this.maxCanvasPixels/A);o.sx>I||o.sy>I?(o.sx=I,o.sy=I,o.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var O=(0,U.approximateFraction)(o.sx),R=(0,U.approximateFraction)(o.sy);k.width=(0,U.roundToDivide)(p.width*o.sx,O[0]),k.height=(0,U.roundToDivide)(p.height*o.sy,R[0]),k.style.width=(0,U.roundToDivide)(p.width,O[1])+"px",k.style.height=(0,U.roundToDivide)(p.height,R[1])+"px",this.paintedViewportMap.set(k,p);var G={canvasContext:i,transform:o.scaled?[o.sx,0,0,o.sy,0,0]:null,viewport:this.viewport,renderInteractiveForms:this.renderInteractiveForms,optionalContentConfigPromise:this._optionalContentConfigPromise},Y=this.pdfPage.render(G);return Y.onContinue=function(W){b(),r.onRenderContinue?r.onRenderContinue(W):W()},Y.promise.then(function(){b(),s.resolve(void 0)},function(W){b(),s.reject(W)}),r}},{key:"paintOnSvg",value:function(t){var s=this,r=!1,p=function(){if(r)throw new J.RenderingCancelledException("Rendering cancelled, page ".concat(s.id),"svg")},k=this.pdfPage,w=this.viewport.clone({scale:U.CSS_UNITS});return{promise:k.getOperatorList().then(function(b){return p(),new J.SVGGraphics(k.commonObjs,k.objs,B.viewerCompatibilityParams.disableCreateObjectURL).getSVG(b,w).then(function(i){p(),s.svg=i,s.paintedViewportMap.set(i,w),i.style.width=t.style.width,i.style.height=t.style.height,s.renderingState=$.RenderingStates.FINISHED,t.appendChild(i)})}),onRenderContinue:function(b){b()},cancel:function(){r=!0}}}},{key:"setPageLabel",value:function(t){this.pageLabel=typeof t=="string"?t:null,this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}],l&&v(c.prototype,l),m}();x.PDFPageView=y},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.RenderingStates=x.PDFRenderingQueue=void 0;var D=M(2);function C(H,$){for(var B=0;B<$.length;B++){var F=$[B];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(H,F.key,F)}}var U={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};x.RenderingStates=U;var J=function(){function H(){(function(F,g){if(!(F instanceof g))throw new TypeError("Cannot call a class as a function")})(this,H),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}var $,B;return $=H,(B=[{key:"setViewer",value:function(F){this.pdfViewer=F}},{key:"setThumbnailViewer",value:function(F){this.pdfThumbnailViewer=F}},{key:"isHighestPriority",value:function(F){return this.highestPriorityPage===F.renderingId}},{key:"renderHighestPriority",value:function(F){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(F)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}},{key:"getHighestPriority",value:function(F,g,v){var d=F.views,y=d.length;if(y===0)return null;for(var m=0;m<y;++m){var c=d[m].view;if(!this.isViewFinished(c))return c}if(v){var l=F.last.id;if(g[l]&&!this.isViewFinished(g[l]))return g[l]}else{var a=F.first.id-2;if(g[a]&&!this.isViewFinished(g[a]))return g[a]}return null}},{key:"isViewFinished",value:function(F){return F.renderingState===U.FINISHED}},{key:"renderView",value:function(F){var g=this;switch(F.renderingState){case U.FINISHED:return!1;case U.PAUSED:this.highestPriorityPage=F.renderingId,F.resume();break;case U.RUNNING:this.highestPriorityPage=F.renderingId;break;case U.INITIAL:this.highestPriorityPage=F.renderingId,F.draw().finally(function(){g.renderHighestPriority()}).catch(function(v){v instanceof D.RenderingCancelledException||console.error('renderView: "'.concat(v,'"'))})}return!0}}])&&C($.prototype,B),H}();x.PDFRenderingQueue=J},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.PDFScriptingManager=void 0;var D,C=(D=M(4))&&D.__esModule?D:{default:D},U=M(2),J=M(7),H=M(17);function $(t){return function(s){if(Array.isArray(s))return m(s)}(t)||function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}(t)||y(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B(t,s){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);s&&(p=p.filter(function(k){return Object.getOwnPropertyDescriptor(t,k).enumerable})),r.push.apply(r,p)}return r}function F(t){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?B(Object(r),!0).forEach(function(p){g(t,p,r[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(p){Object.defineProperty(t,p,Object.getOwnPropertyDescriptor(r,p))})}return t}function g(t,s,r){return s in t?Object.defineProperty(t,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[s]=r,t}function v(t,s){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=y(t))||s&&t&&typeof t.length=="number"){r&&(t=r);var p=0,k=function(){};return{s:k,n:function(){return p>=t.length?{done:!0}:{done:!1,value:t[p++]}},e:function(o){throw o},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w,b=!0,i=!1;return{s:function(){r=r.call(t)},n:function(){var o=r.next();return b=o.done,o},e:function(o){i=!0,w=o},f:function(){try{b||r.return==null||r.return()}finally{if(i)throw w}}}}function d(t,s){return function(r){if(Array.isArray(r))return r}(t)||function(r,p){var k=r&&(typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"]);if(k!=null){var w,b,i=[],o=!0,u=!1;try{for(k=k.call(r);!(o=(w=k.next()).done)&&(i.push(w.value),!p||i.length!==p);o=!0);}catch(A){u=!0,b=A}finally{try{o||k.return==null||k.return()}finally{if(u)throw b}}return i}}(t,s)||y(t,s)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y(t,s){if(t){if(typeof t=="string")return m(t,s);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,s):void 0}}function m(t,s){(s==null||s>t.length)&&(s=t.length);for(var r=0,p=new Array(s);r<s;r++)p[r]=t[r];return p}function c(t,s,r,p,k,w,b){try{var i=t[w](b),o=i.value}catch(u){return void r(u)}i.done?s(o):Promise.resolve(o).then(p,k)}function l(t){return function(){var s=this,r=arguments;return new Promise(function(p,k){var w=t.apply(s,r);function b(o){c(w,p,k,b,i,"next",o)}function i(o){c(w,p,k,b,i,"throw",o)}b(void 0)})}}function a(t,s){for(var r=0;r<s.length;r++){var p=s[r];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(t,p.key,p)}}var e=function(){function t(R){var G=this,Y=R.eventBus,W=R.sandboxBundleSrc,z=W===void 0?null:W,ee=R.scriptingFactory,te=ee===void 0?null:ee,ae=R.docPropertiesLookup,Z=ae===void 0?null:ae;(function(K,V){if(!(K instanceof V))throw new TypeError("Cannot call a class as a function")})(this,t),this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._pageEventsReady=!1,this._ready=!1,this._eventBus=Y,this._sandboxBundleSrc=z,this._scriptingFactory=te,this._docPropertiesLookup=Z,this._scriptingFactory||window.addEventListener("updatefromsandbox",function(K){G._eventBus.dispatch("updatefromsandbox",{source:window,detail:K.detail})})}var s,r,p,k,w,b,i,o,u,A,I,O;return s=t,r=[{key:"setViewer",value:function(R){this._pdfViewer=R}},{key:"setDocument",value:(O=l(C.default.mark(function R(G){var Y,W,z,ee,te,ae,Z,K,V,q,Q,re,ne,se,ue,he,pe,me=this;return C.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(!this._pdfDocument){fe.next=3;break}return fe.next=3,this._destroyScripting();case 3:if(this._pdfDocument=G,G){fe.next=6;break}return fe.abrupt("return");case 6:return fe.next=8,Promise.all([G.getFieldObjects(),G.getCalculationOrderIds(),G.getJSActions()]);case 8:if(W=fe.sent,z=d(W,3),ee=z[0],te=z[1],ae=z[2],ee||ae){fe.next=17;break}return fe.next=16,this._destroyScripting();case 16:return fe.abrupt("return");case 17:if(G===this._pdfDocument){fe.next=19;break}return fe.abrupt("return");case 19:this._scripting=this._createScripting(),this._internalEvents.set("updatefromsandbox",function(ge){(ge==null?void 0:ge.source)===window&&me._updateFromSandbox(ge.detail)}),this._internalEvents.set("dispatcheventinsandbox",function(ge){var de;(de=me._scripting)===null||de===void 0||de.dispatchEventInSandbox(ge.detail)}),this._internalEvents.set("pagechanging",function(ge){var de=ge.pageNumber,oe=ge.previous;de!==oe&&(me._dispatchPageClose(oe),me._dispatchPageOpen(de))}),this._internalEvents.set("pagerendered",function(ge){var de=ge.pageNumber;me._pageOpenPending.has(de)&&de===me._pdfViewer.currentPageNumber&&me._dispatchPageOpen(de)}),this._internalEvents.set("pagesdestroy",function(){var ge=l(C.default.mark(function de(oe){var le,ve;return C.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,me._dispatchPageClose(me._pdfViewer.currentPageNumber);case 2:return be.next=4,(le=me._scripting)===null||le===void 0?void 0:le.dispatchEventInSandbox({id:"doc",name:"WillClose"});case 4:(ve=me._closeCapability)===null||ve===void 0||ve.resolve();case 5:case"end":return be.stop()}},de)}));return function(de){return ge.apply(this,arguments)}}()),this._domEvents.set("mousedown",function(ge){me._mouseState.isDown=!0}),this._domEvents.set("mouseup",function(ge){me._mouseState.isDown=!1}),Z=v(this._internalEvents);try{for(Z.s();!(K=Z.n()).done;)V=d(K.value,2),q=V[0],Q=V[1],this._eventBus._on(q,Q)}catch(ge){Z.e(ge)}finally{Z.f()}re=v(this._domEvents);try{for(re.s();!(ne=re.n()).done;)se=d(ne.value,2),ue=se[0],he=se[1],window.addEventListener(ue,he)}catch(ge){re.e(ge)}finally{re.f()}return fe.prev=31,fe.next=34,this._getDocProperties();case 34:if(pe=fe.sent,G===this._pdfDocument){fe.next=37;break}return fe.abrupt("return");case 37:return fe.next=39,this._scripting.createSandbox({objects:ee,calculationOrder:te,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:F(F({},pe),{},{actions:ae})});case 39:this._eventBus.dispatch("sandboxcreated",{source:this}),fe.next=48;break;case 42:return fe.prev=42,fe.t0=fe.catch(31),console.error('PDFScriptingManager.setDocument: "'.concat(fe.t0===null||fe.t0===void 0?void 0:fe.t0.message,'".')),fe.next=47,this._destroyScripting();case 47:return fe.abrupt("return");case 48:return fe.next=50,(Y=this._scripting)===null||Y===void 0?void 0:Y.dispatchEventInSandbox({id:"doc",name:"Open"});case 50:return fe.next=52,this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0);case 52:Promise.resolve().then(function(){G===me._pdfDocument&&(me._ready=!0)});case 53:case"end":return fe.stop()}},R,this,[[31,42]])})),function(R){return O.apply(this,arguments)})},{key:"dispatchWillSave",value:(I=l(C.default.mark(function R(G){var Y;return C.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(Y=this._scripting)===null||Y===void 0?void 0:Y.dispatchEventInSandbox({id:"doc",name:"WillSave"}));case 1:case"end":return W.stop()}},R,this)})),function(R){return I.apply(this,arguments)})},{key:"dispatchDidSave",value:(A=l(C.default.mark(function R(G){var Y;return C.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(Y=this._scripting)===null||Y===void 0?void 0:Y.dispatchEventInSandbox({id:"doc",name:"DidSave"}));case 1:case"end":return W.stop()}},R,this)})),function(R){return A.apply(this,arguments)})},{key:"dispatchWillPrint",value:(u=l(C.default.mark(function R(G){var Y;return C.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(Y=this._scripting)===null||Y===void 0?void 0:Y.dispatchEventInSandbox({id:"doc",name:"WillPrint"}));case 1:case"end":return W.stop()}},R,this)})),function(R){return u.apply(this,arguments)})},{key:"dispatchDidPrint",value:(o=l(C.default.mark(function R(G){var Y;return C.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(Y=this._scripting)===null||Y===void 0?void 0:Y.dispatchEventInSandbox({id:"doc",name:"DidPrint"}));case 1:case"end":return W.stop()}},R,this)})),function(R){return o.apply(this,arguments)})},{key:"mouseState",get:function(){return this._mouseState}},{key:"destroyPromise",get:function(){var R;return((R=this._destroyCapability)===null||R===void 0?void 0:R.promise)||null}},{key:"ready",get:function(){return this._ready}},{key:"_internalEvents",get:function(){return(0,U.shadow)(this,"_internalEvents",new Map)}},{key:"_domEvents",get:function(){return(0,U.shadow)(this,"_domEvents",new Map)}},{key:"_pageOpenPending",get:function(){return(0,U.shadow)(this,"_pageOpenPending",new Set)}},{key:"_visitedPages",get:function(){return(0,U.shadow)(this,"_visitedPages",new Map)}},{key:"_updateFromSandbox",value:(i=l(C.default.mark(function R(G){var Y,W,z,ee,te,ae,Z,K,V,q,Q;return C.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(Y=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,W=G.id,z=G.siblings,ee=G.command,te=G.value,W){re.next=25;break}re.t0=ee,re.next=re.t0==="clear"?6:re.t0==="error"?8:re.t0==="layout"?10:re.t0==="page-num"?12:re.t0==="print"?14:re.t0==="println"?18:re.t0==="zoom"?20:24;break;case 6:return console.clear(),re.abrupt("break",24);case 8:return console.error(te),re.abrupt("break",24);case 10:return this._pdfViewer.spreadMode=(0,J.apiPageLayoutToSpreadMode)(te),re.abrupt("break",24);case 12:return this._pdfViewer.currentPageNumber=te+1,re.abrupt("break",24);case 14:return re.next=16,this._pdfViewer.pagesPromise;case 16:return this._eventBus.dispatch("print",{source:this}),re.abrupt("break",24);case 18:return console.log(te),re.abrupt("break",24);case 20:if(!Y){re.next=22;break}return re.abrupt("return");case 22:return this._pdfViewer.currentScaleValue=te,re.abrupt("break",24);case 24:return re.abrupt("return");case 25:if(!Y){re.next=28;break}if(!G.focus){re.next=28;break}return re.abrupt("return");case 28:delete G.id,delete G.siblings,ae=z?[W].concat($(z)):[W],Z=v(ae);try{for(Z.s();!(K=Z.n()).done;)V=K.value,(q=document.getElementById(V))?q.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:G})):(Q=this._pdfDocument)===null||Q===void 0||Q.annotationStorage.setValue(V,G)}catch(ne){Z.e(ne)}finally{Z.f()}case 33:case"end":return re.stop()}},R,this)})),function(R){return i.apply(this,arguments)})},{key:"_dispatchPageOpen",value:(b=l(C.default.mark(function R(G){var Y,W,z,ee,te,ae=this,Z=arguments;return C.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(Y=Z.length>1&&Z[1]!==void 0&&Z[1],W=this._pdfDocument,z=this._visitedPages,Y&&(this._closeCapability=(0,U.createPromiseCapability)(),this._pageEventsReady=!0),this._pageEventsReady){K.next=5;break}return K.abrupt("return");case 5:if(((ee=this._pdfViewer.getPageView(G-1))==null?void 0:ee.renderingState)===H.RenderingStates.FINISHED){K.next=9;break}return this._pageOpenPending.add(G),K.abrupt("return");case 9:this._pageOpenPending.delete(G),te=l(C.default.mark(function V(){var q,Q,re;return C.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,z.has(G)?null:(q=ee.pdfPage)===null||q===void 0?void 0:q.getJSActions();case 2:if(re=ne.sent,W===ae._pdfDocument){ne.next=5;break}return ne.abrupt("return");case 5:return ne.next=7,(Q=ae._scripting)===null||Q===void 0?void 0:Q.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:G,actions:re});case 7:case"end":return ne.stop()}},V)}))(),z.set(G,te);case 12:case"end":return K.stop()}},R,this)})),function(R){return b.apply(this,arguments)})},{key:"_dispatchPageClose",value:(w=l(C.default.mark(function R(G){var Y,W,z,ee;return C.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(W=this._pdfDocument,z=this._visitedPages,this._pageEventsReady){te.next=3;break}return te.abrupt("return");case 3:if(!this._pageOpenPending.has(G)){te.next=5;break}return te.abrupt("return");case 5:if(ee=z.get(G)){te.next=8;break}return te.abrupt("return");case 8:return z.set(G,null),te.next=11,ee;case 11:if(W===this._pdfDocument){te.next=13;break}return te.abrupt("return");case 13:return te.next=15,(Y=this._scripting)===null||Y===void 0?void 0:Y.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:G});case 15:case"end":return te.stop()}},R,this)})),function(R){return w.apply(this,arguments)})},{key:"_getDocProperties",value:(k=l(C.default.mark(function R(){var G,Y;return C.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(!this._docPropertiesLookup){W.next=2;break}return W.abrupt("return",this._docPropertiesLookup(this._pdfDocument));case 2:return G=M(19),Y=G.docPropertiesLookup,W.abrupt("return",Y(this._pdfDocument));case 4:case"end":return W.stop()}},R,this)})),function(){return k.apply(this,arguments)})},{key:"_createScripting",value:function(){if(this._destroyCapability=(0,U.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");return this._scriptingFactory?this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc}):new(M(19)).GenericScripting(this._sandboxBundleSrc)}},{key:"_destroyScripting",value:(p=l(C.default.mark(function R(){var G,Y,W,z,ee,te,ae,Z,K,V,q,Q;return C.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(this._scripting){re.next=4;break}return this._pdfDocument=null,(Y=this._destroyCapability)===null||Y===void 0||Y.resolve(),re.abrupt("return");case 4:if(!this._closeCapability){re.next=8;break}return re.next=7,Promise.race([this._closeCapability.promise,new Promise(function(ne){setTimeout(ne,1e3)})]).catch(function(ne){});case 7:this._closeCapability=null;case 8:return this._pdfDocument=null,re.prev=9,re.next=12,this._scripting.destroySandbox();case 12:re.next=16;break;case 14:re.prev=14,re.t0=re.catch(9);case 16:W=v(this._internalEvents);try{for(W.s();!(z=W.n()).done;)ee=d(z.value,2),te=ee[0],ae=ee[1],this._eventBus._off(te,ae)}catch(ne){W.e(ne)}finally{W.f()}this._internalEvents.clear(),Z=v(this._domEvents);try{for(Z.s();!(K=Z.n()).done;)V=d(K.value,2),q=V[0],Q=V[1],window.removeEventListener(q,Q)}catch(ne){Z.e(ne)}finally{Z.f()}this._domEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,delete this._mouseState.isDown,this._pageEventsReady=!1,this._ready=!1,(G=this._destroyCapability)===null||G===void 0||G.resolve();case 29:case"end":return re.stop()}},R,this,[[9,14]])})),function(){return p.apply(this,arguments)})}],r&&a(s.prototype,r),t}();x.PDFScriptingManager=e},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.docPropertiesLookup=function(y){return v.apply(this,arguments)},x.GenericScripting=void 0;var D,C=(D=M(4))&&D.__esModule?D:{default:D},U=M(2);function J(y,m){var c=Object.keys(y);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(y);m&&(l=l.filter(function(a){return Object.getOwnPropertyDescriptor(y,a).enumerable})),c.push.apply(c,l)}return c}function H(y){for(var m=1;m<arguments.length;m++){var c=arguments[m]!=null?arguments[m]:{};m%2?J(Object(c),!0).forEach(function(l){$(y,l,c[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(c)):J(Object(c)).forEach(function(l){Object.defineProperty(y,l,Object.getOwnPropertyDescriptor(c,l))})}return y}function $(y,m,c){return m in y?Object.defineProperty(y,m,{value:c,enumerable:!0,configurable:!0,writable:!0}):y[m]=c,y}function B(y,m){for(var c=0;c<m.length;c++){var l=m[c];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(y,l.key,l)}}function F(y,m,c,l,a,e,t){try{var s=y[e](t),r=s.value}catch(p){return void c(p)}s.done?m(r):Promise.resolve(r).then(l,a)}function g(y){return function(){var m=this,c=arguments;return new Promise(function(l,a){var e=y.apply(m,c);function t(r){F(e,l,a,t,s,"next",r)}function s(r){F(e,l,a,t,s,"throw",r)}t(void 0)})}}function v(){return(v=g(C.default.mark(function y(m){var c,l,a,e,t,s,r,p,k;return C.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return l=(c="").split("#")[0],w.next=3,m.getMetadata();case 3:if(a=w.sent,e=a.info,t=a.metadata,s=a.contentDispositionFilename,r=a.contentLength){w.next=14;break}return w.next=11,m.getDownloadInfo();case 11:p=w.sent,k=p.length,r=k;case 14:return w.abrupt("return",H(H({},e),{},{baseURL:l,filesize:r,filename:s||(0,U.getPdfFilenameFromUrl)(c),metadata:t==null?void 0:t.getRaw(),authors:t==null?void 0:t.get("dc:creator"),numPages:m.numPages,URL:c}));case 15:case"end":return w.stop()}},y)}))).apply(this,arguments)}var d=function(){function y(t){(function(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")})(this,y),this._ready=(0,U.loadScript)(t,!0).then(function(){return window.pdfjsSandbox.QuickJSSandbox()})}var m,c,l,a,e;return m=y,c=[{key:"createSandbox",value:(e=g(C.default.mark(function t(s){return C.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this._ready;case 2:r.sent.create(s);case 4:case"end":return r.stop()}},t,this)})),function(t){return e.apply(this,arguments)})},{key:"dispatchEventInSandbox",value:(a=g(C.default.mark(function t(s){return C.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this._ready;case 2:r.sent.dispatchEvent(s);case 4:case"end":return r.stop()}},t,this)})),function(t){return a.apply(this,arguments)})},{key:"destroySandbox",value:(l=g(C.default.mark(function t(){return C.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this._ready;case 2:s.sent.nukeSandbox();case 4:case"end":return s.stop()}},t,this)})),function(){return l.apply(this,arguments)})}],c&&B(m.prototype,c),y}();x.GenericScripting=d},(j,x,M)=>{function D(d){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},D(d)}Object.defineProperty(x,"__esModule",{value:!0}),x.PDFSinglePageViewer=void 0;var C=M(21),U=M(2);function J(d,y){for(var m=0;m<y.length;m++){var c=y[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(d,c.key,c)}}function H(d,y,m){return H=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(c,l,a){var e=function(s,r){for(;!Object.prototype.hasOwnProperty.call(s,r)&&(s=g(s))!==null;);return s}(c,l);if(e){var t=Object.getOwnPropertyDescriptor(e,l);return t.get?t.get.call(a):t.value}},H(d,y,m||d)}function $(d,y){return $=Object.setPrototypeOf||function(m,c){return m.__proto__=c,m},$(d,y)}function B(d){var y=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var m,c=g(d);if(y){var l=g(this).constructor;m=Reflect.construct(c,arguments,l)}else m=c.apply(this,arguments);return F(this,m)}}function F(d,y){return!y||D(y)!=="object"&&typeof y!="function"?function(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}(d):y}function g(d){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},g(d)}var v=function(d){(function(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),e&&$(a,e)})(l,d);var y,m,c=B(l);function l(a){var e;return function(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}(this,l),(e=c.call(this,a)).eventBus._on("pagesinit",function(t){e._ensurePageViewVisible()}),e}return y=l,(m=[{key:"_viewerElement",get:function(){return(0,U.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_pageWidthScaleFactor",get:function(){return 1}},{key:"_resetView",value:function(){H(g(l.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var a=this._pages[this._currentPageNumber-1],e=this._pages[this._previousPageNumber-1],t=this.viewer.childNodes;switch(t.length){case 0:this.viewer.appendChild(a.div);break;case 1:if(t[0]!==e.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(a===e)break;this._shadowViewer.appendChild(e.div),this.viewer.appendChild(a.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),H(g(l.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(a){var e=this,t=a.pageDiv,s=a.pageSpot,r=s===void 0?null:s,p=a.pageNumber,k=p===void 0?null:p;k&&this._setCurrentPageNumber(k);var w=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),H(g(l.prototype),"_scrollIntoView",this).call(this,{pageDiv:t,pageSpot:r,pageNumber:k}),this._updateScrollDown=function(){e.scroll.down=w,e._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(a){}},{key:"_isScrollModeHorizontal",get:function(){return(0,U.shadow)(this,"_isScrollModeHorizontal",!1)}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_getPageAdvance",value:function(){return 1}}])&&J(y.prototype,m),l}(C.BaseViewer);x.PDFSinglePageViewer=v},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.BaseViewer=void 0;var D=M(2),C=M(7),U=M(17),J=M(1),H=M(3),$=M(16),B=M(6),F=M(22),g=M(8),v=M(23);function d(e,t){var s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!s){if(Array.isArray(e)||(s=function(i,o){if(i){if(typeof i=="string")return y(i,o);var u=Object.prototype.toString.call(i).slice(8,-1);return u==="Object"&&i.constructor&&(u=i.constructor.name),u==="Map"||u==="Set"?Array.from(i):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?y(i,o):void 0}}(e))||t&&e&&typeof e.length=="number"){s&&(e=s);var r=0,p=function(){};return{s:p,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(i){throw i},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k,w=!0,b=!1;return{s:function(){s=s.call(e)},n:function(){var i=s.next();return w=i.done,i},e:function(i){b=!0,k=i},f:function(){try{w||s.return==null||s.return()}finally{if(b)throw k}}}}function y(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}function m(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){var t=[];this.push=function(s){var r=t.indexOf(s);r>=0&&t.splice(r,1),t.push(s),t.length>e&&t.shift().destroy()},this.resize=function(s,r){if(e=s,r){for(var p=new Set,k=0,w=r.length;k<w;++k)p.add(r[k].id);(0,C.moveToEndOfArray)(t,function(b){return p.has(b.id)})}for(;t.length>e;)t.shift().destroy()},this.has=function(s){return t.includes(s)}}function l(e,t){return t===e||Math.abs(t-e)<1e-15}var a=function(){function e(r){var p,k,w=this;if(function(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");var b="2.9.359";if(D.version!==b)throw new Error('The API version "'.concat(D.version,'" does not match the Viewer version "').concat(b,'".'));if(this._name=this.constructor.name,this.container=r.container,this.viewer=r.viewer||r.container.firstElementChild,((p=this.container)===null||p===void 0?void 0:p.tagName.toUpperCase())!=="DIV"||((k=this.viewer)===null||k===void 0?void 0:k.tagName.toUpperCase())!=="DIV")throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute")throw new Error("The `container` must be absolutely positioned.");this.eventBus=r.eventBus,this.linkService=r.linkService||new B.SimpleLinkService,this.downloadManager=r.downloadManager||null,this.findController=r.findController||null,this._scriptingManager=r.scriptingManager||null,this.removePageBorders=r.removePageBorders||!1,this.textLayerMode=Number.isInteger(r.textLayerMode)?r.textLayerMode:C.TextLayerMode.ENABLE,this.imageResourcesPath=r.imageResourcesPath||"",this.renderInteractiveForms=r.renderInteractiveForms!==!1,this.enablePrintAutoRotate=r.enablePrintAutoRotate||!1,this.renderer=r.renderer||C.RendererType.CANVAS,this.useOnlyCssZoom=r.useOnlyCssZoom||!1,this.maxCanvasPixels=r.maxCanvasPixels,this.l10n=r.l10n||H.NullL10n,this.enableScripting=r.enableScripting===!0&&!!this._scriptingManager,this.defaultRenderingQueue=!r.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new U.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=r.renderingQueue,this.scroll=(0,C.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=C.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(function(){w.eventBus.dispatch("baseviewerinit",{source:w})})}var t,s;return t=e,s=[{key:"pagesCount",get:function(){return this._pages.length}},{key:"getPageView",value:function(r){return this._pages[r]}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every(function(r){return r==null?void 0:r.pdfPage})}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(r){if(!Number.isInteger(r))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(r,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(r,'" is not a valid page.')))}},{key:"_setCurrentPageNumber",value:function(r){var p,k,w=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(this._currentPageNumber===r)return w&&this._resetCurrentPageView(),!0;if(!(0<r&&r<=this.pagesCount))return!1;var b=this._currentPageNumber;return this._currentPageNumber=r,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:r,pageLabel:(p=(k=this._pageLabels)===null||k===void 0?void 0:k[r-1])!==null&&p!==void 0?p:null,previous:b}),w&&this._resetCurrentPageView(),!0}},{key:"currentPageLabel",get:function(){var r,p;return(r=(p=this._pageLabels)===null||p===void 0?void 0:p[this._currentPageNumber-1])!==null&&r!==void 0?r:null},set:function(r){if(this.pdfDocument){var p=0|r;if(this._pageLabels){var k=this._pageLabels.indexOf(r);k>=0&&(p=k+1)}this._setCurrentPageNumber(p,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(r,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==C.UNKNOWN_SCALE?this._currentScale:C.DEFAULT_SCALE},set:function(r){if(isNaN(r))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(r,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(r){this.pdfDocument&&this._setScale(r,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(r){if(!(0,C.isValidRotation)(r))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&((r%=360)<0&&(r+=360),this._pagesRotation!==r)){this._pagesRotation=r;for(var p=this._currentPageNumber,k=0,w=this._pages.length;k<w;k++){var b=this._pages[k];b.update(b.scale,r)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:r,pageNumber:p}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&this._getVisiblePages().views.length!==0?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(r){var p=this;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null)),this.pdfDocument=r,r){var k=r.isPureXfa,w=r.numPages,b=r.getPage(1),i=r.getOptionalContentConfig();this._pagesCapability.promise.then(function(){p.eventBus.dispatch("pagesloaded",{source:p,pagesCount:w})}),this._onBeforeDraw=function(o){var u=p._pages[o.pageNumber-1];u&&p._buffer.push(u)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(o){o.cssTransform||p._onePageRenderedCapability.settled||(p._onePageRenderedCapability.resolve(),p.eventBus._off("pagerendered",p._onAfterDraw),p._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),b.then(function(o){p._firstPageCapability.resolve(o),p._optionalContentConfigPromise=i;for(var u=p.currentScale,A=o.getViewport({scale:u*C.CSS_UNITS}),I=p.textLayerMode!==C.TextLayerMode.DISABLE?p:null,O=k?p:null,R=1;R<=w;++R){var G=new $.PDFPageView({container:p._viewerElement,eventBus:p.eventBus,id:R,scale:u,defaultViewport:A.clone(),optionalContentConfigPromise:i,renderingQueue:p.renderingQueue,textLayerFactory:I,textLayerMode:p.textLayerMode,annotationLayerFactory:p,xfaLayerFactory:O,structTreeLayerFactory:p,imageResourcesPath:p.imageResourcesPath,renderInteractiveForms:p.renderInteractiveForms,renderer:p.renderer,useOnlyCssZoom:p.useOnlyCssZoom,maxCanvasPixels:p.maxCanvasPixels,l10n:p.l10n});p._pages.push(G)}var Y=p._pages[0];Y&&(Y.setPdfPage(o),p.linkService.cachePageRef(1,o.ref)),p._spreadMode!==C.SpreadMode.NONE&&p._updateSpreadMode(),p._onePageRenderedOrForceFetch().then(function(){if(p.findController&&p.findController.setDocument(r),p.enableScripting&&p._scriptingManager.setDocument(r),r.loadingParams.disableAutoFetch||w>7500)p._pagesCapability.resolve();else{var W=w-1;if(W<=0)p._pagesCapability.resolve();else for(var z=function(te){r.getPage(te).then(function(ae){var Z=p._pages[te-1];Z.pdfPage||Z.setPdfPage(ae),p.linkService.cachePageRef(te,ae.ref),--W==0&&p._pagesCapability.resolve()},function(ae){console.error("Unable to get page ".concat(te," to initialize viewer"),ae),--W==0&&p._pagesCapability.resolve()})},ee=2;ee<=w;++ee)z(ee)}}),p.eventBus.dispatch("pagesinit",{source:p}),p.defaultRenderingQueue&&p.update()}).catch(function(o){console.error("Unable to initialize viewer",o)})}}},{key:"setPageLabels",value:function(r){if(this.pdfDocument){r?Array.isArray(r)&&this.pdfDocument.numPages===r.length?this._pageLabels=r:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var p=0,k=this._pages.length;p<k;p++){var w,b;this._pages[p].setPageLabel((w=(b=this._pageLabels)===null||b===void 0?void 0:b[p])!==null&&w!==void 0?w:null)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=C.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new c(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,D.createPromiseCapability)(),this._onePageRenderedCapability=(0,D.createPromiseCapability)(),this._pagesCapability=(0,D.createPromiseCapability)(),this._scrollMode=C.ScrollMode.VERTICAL,this._spreadMode=C.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){this.pagesCount!==0&&this.update()}},{key:"_scrollIntoView",value:function(r){var p=r.pageDiv,k=r.pageSpot,w=k===void 0?null:k;r.pageNumber,(0,C.scrollIntoView)(p,w)}},{key:"_setScaleUpdatePages",value:function(r,p){var k=arguments.length>2&&arguments[2]!==void 0&&arguments[2],w=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(this._currentScaleValue=p.toString(),l(this._currentScale,r))w&&this.eventBus.dispatch("scalechanging",{source:this,scale:r,presetValue:p});else{for(var b=0,i=this._pages.length;b<i;b++)this._pages[b].update(r);if(this._currentScale=r,!k){var o,u=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(u=this._location.pageNumber,o=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:u,destArray:o,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:r,presetValue:w?p:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_pageWidthScaleFactor",get:function(){return this._spreadMode===C.SpreadMode.NONE||this._scrollMode===C.ScrollMode.HORIZONTAL||this.isInPresentationMode?1:2}},{key:"_setScale",value:function(r){var p=arguments.length>1&&arguments[1]!==void 0&&arguments[1],k=parseFloat(r);if(k>0)this._setScaleUpdatePages(k,r,p,!1);else{var w=this._pages[this._currentPageNumber-1];if(!w)return;var b=this.isInPresentationMode||this.removePageBorders,i=b?0:C.SCROLLBAR_PADDING,o=b?0:C.VERTICAL_PADDING;if(!b&&this._isScrollModeHorizontal){var u=[o,i];i=u[0],o=u[1]}var A=(this.container.clientWidth-i)/w.width*w.scale/this._pageWidthScaleFactor,I=(this.container.clientHeight-o)/w.height*w.scale;switch(r){case"page-actual":k=1;break;case"page-width":k=A;break;case"page-height":k=I;break;case"page-fit":k=Math.min(A,I);break;case"auto":var O=(0,C.isPortraitOrientation)(w)?A:Math.min(I,A);k=Math.min(C.MAX_AUTO_SCALE,O);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(r,'" is an unknown zoom value.'))}this._setScaleUpdatePages(k,r,p,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var r=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:r.div})}},{key:"pageLabelToPageNumber",value:function(r){if(!this._pageLabels)return null;var p=this._pageLabels.indexOf(r);return p<0?null:p+1}},{key:"scrollPageIntoView",value:function(r){var p=r.pageNumber,k=r.destArray,w=k===void 0?null:k,b=r.allowNegativeOffset,i=b!==void 0&&b,o=r.ignoreDestinationZoom,u=o!==void 0&&o;if(this.pdfDocument){var A=Number.isInteger(p)&&this._pages[p-1];if(A)if(!this.isInPresentationMode&&w){var I,O,R=0,G=0,Y=0,W=0,z=A.rotation%180!=0,ee=(z?A.height:A.width)/A.scale/C.CSS_UNITS,te=(z?A.width:A.height)/A.scale/C.CSS_UNITS,ae=0;switch(w[1].name){case"XYZ":R=w[2],G=w[3],ae=w[4],R=R!==null?R:0,G=G!==null?G:te;break;case"Fit":case"FitB":ae="page-fit";break;case"FitH":case"FitBH":ae="page-width",(G=w[2])===null&&this._location?(R=this._location.left,G=this._location.top):typeof G!="number"&&(G=te);break;case"FitV":case"FitBV":R=w[2],Y=ee,W=te,ae="page-height";break;case"FitR":R=w[2],G=w[3],Y=w[4]-R,W=w[5]-G;var Z=this.removePageBorders?0:C.SCROLLBAR_PADDING,K=this.removePageBorders?0:C.VERTICAL_PADDING;I=(this.container.clientWidth-Z)/Y/C.CSS_UNITS,O=(this.container.clientHeight-K)/W/C.CSS_UNITS,ae=Math.min(Math.abs(I),Math.abs(O));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(w[1].name,'" is not a valid destination type.'))}if(u||(ae&&ae!==this._currentScale?this.currentScaleValue=ae:this._currentScale===C.UNKNOWN_SCALE&&(this.currentScaleValue=C.DEFAULT_SCALE_VALUE)),ae!=="page-fit"||w[4]){var V=[A.viewport.convertToViewportPoint(R,G),A.viewport.convertToViewportPoint(R+Y,G+W)],q=Math.min(V[0][0],V[1][0]),Q=Math.min(V[0][1],V[1][1]);i||(q=Math.max(q,0),Q=Math.max(Q,0)),this._scrollIntoView({pageDiv:A.div,pageSpot:{left:q,top:Q},pageNumber:p})}else this._scrollIntoView({pageDiv:A.div,pageNumber:p})}else this._setCurrentPageNumber(p,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(p,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(r){var p=this._currentScale,k=this._currentScaleValue,w=parseFloat(k)===p?Math.round(1e4*p)/100:k,b=r.id,i="#page="+b;i+="&zoom="+w;var o=this._pages[b-1],u=this.container,A=o.getPagePoint(u.scrollLeft-r.x,u.scrollTop-r.y),I=Math.round(A[0]),O=Math.round(A[1]);i+=","+I+","+O,this._location={pageNumber:b,scale:w,top:O,left:I,rotation:this._pagesRotation,pdfOpenParams:i}}},{key:"_updateHelper",value:function(r){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var r=this._getVisiblePages(),p=r.views,k=p.length;if(k!==0){var w=Math.max(10,2*k+1);this._buffer.resize(w,p),this.renderingQueue.renderHighestPriority(r),this._updateHelper(p),this._updateLocation(r.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(r){return this.container.contains(r)}},{key:"focus",value:function(){this.container.focus()}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===C.ScrollMode.HORIZONTAL}},{key:"_isContainerRtl",get:function(){return getComputedStyle(this.container).direction==="rtl"}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===C.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===C.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var r=this._pages[this._currentPageNumber-1],p=r.div,k={id:r.id,x:p.offsetLeft+p.clientLeft,y:p.offsetTop+p.clientTop,view:r};return{first:k,last:k,views:[k]}}},{key:"_getVisiblePages",value:function(){return(0,C.getVisibleElements)({scrollEl:this.container,views:this._pages,sortByVisibility:!0,horizontal:this._isScrollModeHorizontal,rtl:this._isScrollModeHorizontal&&this._isContainerRtl})}},{key:"isPageVisible",value:function(r){return!!this.pdfDocument&&(Number.isInteger(r)&&r>0&&r<=this.pagesCount?this._getVisiblePages().views.some(function(p){return p.id===r}):(console.error("".concat(this._name,'.isPageVisible: "').concat(r,'" is not a valid page.')),!1))}},{key:"isPageCached",value:function(r){if(!this.pdfDocument||!this._buffer)return!1;if(!(Number.isInteger(r)&&r>0&&r<=this.pagesCount))return console.error("".concat(this._name,'.isPageCached: "').concat(r,'" is not a valid page.')),!1;var p=this._pages[r-1];return!!p&&this._buffer.has(p)}},{key:"cleanup",value:function(){for(var r=0,p=this._pages.length;r<p;r++)this._pages[r]&&this._pages[r].renderingState!==U.RenderingStates.FINISHED&&this._pages[r].reset()}},{key:"_cancelRendering",value:function(){for(var r=0,p=this._pages.length;r<p;r++)this._pages[r]&&this._pages[r].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(r){var p=this;if(r.pdfPage)return Promise.resolve(r.pdfPage);if(this._pagesRequests.has(r))return this._pagesRequests.get(r);var k=this.pdfDocument.getPage(r.id).then(function(w){return r.pdfPage||r.setPdfPage(w),p._pagesRequests.delete(r),w}).catch(function(w){console.error("Unable to get page for page view",w),p._pagesRequests.delete(r)});return this._pagesRequests.set(r,k),k}},{key:"forceRendering",value:function(r){var p=this,k=r||this._getVisiblePages(),w=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,b=this.renderingQueue.getHighestPriority(k,this._pages,w);return!!b&&(this._ensurePdfPageLoaded(b).then(function(){p.renderingQueue.renderView(b)}),!0)}},{key:"createTextLayerBuilder",value:function(r,p,k){var w=arguments.length>3&&arguments[3]!==void 0&&arguments[3],b=arguments.length>4?arguments[4]:void 0;return new g.TextLayerBuilder({textLayerDiv:r,eventBus:b,pageIndex:p,viewport:k,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&w})}},{key:"createAnnotationLayerBuilder",value:function(r,p){var k,w,b,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",u=arguments.length>4&&arguments[4]!==void 0&&arguments[4],A=arguments.length>5&&arguments[5]!==void 0?arguments[5]:H.NullL10n,I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,O=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,R=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null;return new J.AnnotationLayerBuilder({pageDiv:r,pdfPage:p,annotationStorage:i||((k=this.pdfDocument)===null||k===void 0?void 0:k.annotationStorage),imageResourcesPath:o,renderInteractiveForms:u,linkService:this.linkService,downloadManager:this.downloadManager,l10n:A,enableScripting:I??this.enableScripting,hasJSActionsPromise:O||((w=this.pdfDocument)===null||w===void 0?void 0:w.hasJSActions()),mouseState:R||((b=this._scriptingManager)===null||b===void 0?void 0:b.mouseState)})}},{key:"createXfaLayerBuilder",value:function(r,p){var k,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return new v.XfaLayerBuilder({pageDiv:r,pdfPage:p,annotationStorage:w||((k=this.pdfDocument)===null||k===void 0?void 0:k.annotationStorage)})}},{key:"createStructTreeLayerBuilder",value:function(r){return new F.StructTreeLayerBuilder({pdfPage:r})}},{key:"hasEqualPageSizes",get:function(){for(var r=this._pages[0],p=1,k=this._pages.length;p<k;++p){var w=this._pages[p];if(w.width!==r.width||w.height!==r.height)return!1}return!0}},{key:"getPagesOverview",value:function(){var r=this;return this._pages.map(function(p){var k=p.pdfPage.getViewport({scale:1});return!r.enablePrintAutoRotate||(0,C.isPortraitOrientation)(k)?{width:k.width,height:k.height,rotation:k.rotation}:{width:k.height,height:k.width,rotation:(k.rotation-90)%360}})}},{key:"optionalContentConfigPromise",get:function(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)},set:function(r){if(!(r instanceof Promise))throw new Error("Invalid optionalContentConfigPromise: ".concat(r));if(this.pdfDocument&&this._optionalContentConfigPromise){this._optionalContentConfigPromise=r;var p,k=d(this._pages);try{for(k.s();!(p=k.n()).done;){var w=p.value;w.update(w.scale,w.rotation,r)}}catch(b){k.e(b)}finally{k.f()}this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:r})}}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(r){if(this._scrollMode!==r){if(!(0,C.isValidScrollMode)(r))throw new Error("Invalid scroll mode: ".concat(r));this._scrollMode=r,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:r}),this._updateScrollMode(this._currentPageNumber)}}},{key:"_updateScrollMode",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,p=this._scrollMode,k=this.viewer;k.classList.toggle("scrollHorizontal",p===C.ScrollMode.HORIZONTAL),k.classList.toggle("scrollWrapped",p===C.ScrollMode.WRAPPED),this.pdfDocument&&r&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(r,!0),this.update())}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(r){if(this._spreadMode!==r){if(!(0,C.isValidSpreadMode)(r))throw new Error("Invalid spread mode: ".concat(r));this._spreadMode=r,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:r}),this._updateSpreadMode(this._currentPageNumber)}}},{key:"_updateSpreadMode",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(this.pdfDocument){var p=this.viewer,k=this._pages;if(p.textContent="",this._spreadMode===C.SpreadMode.NONE)for(var w=0,b=k.length;w<b;++w)p.appendChild(k[w].div);else for(var i=this._spreadMode-1,o=null,u=0,A=k.length;u<A;++u)o===null?((o=document.createElement("div")).className="spread",p.appendChild(o)):u%2===i&&(o=o.cloneNode(!1),p.appendChild(o)),o.appendChild(k[u].div);r&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(r,!0),this.update())}}},{key:"_getPageAdvance",value:function(r){var p=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(this.isInPresentationMode)return 1;switch(this._scrollMode){case C.ScrollMode.WRAPPED:var k,w=this._getVisiblePages(),b=w.views,i=new Map,o=d(b);try{for(o.s();!(k=o.n()).done;){var u=k.value,A=u.id,I=u.y,O=u.percent,R=u.widthPercent;if(!(O===0||R<100)){var G=i.get(I);G||i.set(I,G||(G=[])),G.push(A)}}}catch(ke){o.e(ke)}finally{o.f()}var Y,W=d(i.values());try{for(W.s();!(Y=W.n()).done;){var z=Y.value,ee=z.indexOf(r);if(ee!==-1){var te=z.length;if(te===1)break;if(p)for(var ae=ee-1,Z=0;ae>=Z;ae--){var K=z[ae],V=z[ae+1]-1;if(K<V)return r-V}else for(var q=ee+1,Q=te;q<Q;q++){var re=z[q],ne=z[q-1]+1;if(re>ne)return ne-r}if(p){var se=z[0];if(se<r)return r-se+1}else{var ue=z[te-1];if(ue>r)return ue-r+1}break}}}catch(ke){W.e(ke)}finally{W.f()}break;case C.ScrollMode.HORIZONTAL:break;case C.ScrollMode.VERTICAL:if(this._spreadMode===C.SpreadMode.NONE)break;var he=this._spreadMode-1;if(p&&r%2!==he||!p&&r%2===he)break;var pe,me=this._getVisiblePages(),fe=me.views,ge=p?r-1:r+1,de=d(fe);try{for(de.s();!(pe=de.n()).done;){var oe=pe.value,le=oe.id,ve=oe.percent,be=oe.widthPercent;if(le===ge){if(ve>0&&be===100)return 2;break}}}catch(ke){de.e(ke)}finally{de.f()}}return 1}},{key:"nextPage",value:function(){var r=this._currentPageNumber,p=this.pagesCount;if(r>=p)return!1;var k=this._getPageAdvance(r,!1)||1;return this.currentPageNumber=Math.min(r+k,p),!0}},{key:"previousPage",value:function(){var r=this._currentPageNumber;if(r<=1)return!1;var p=this._getPageAdvance(r,!0)||1;return this.currentPageNumber=Math.max(r-p,1),!0}}],s&&m(t.prototype,s),e}();x.BaseViewer=a},(j,x)=>{function M(g,v){var d=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!d){if(Array.isArray(g)||(d=function(e,t){if(e){if(typeof e=="string")return D(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set"?Array.from(e):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?D(e,t):void 0}}(g))||v&&g&&typeof g.length=="number"){d&&(g=d);var y=0,m=function(){};return{s:m,n:function(){return y>=g.length?{done:!0}:{done:!1,value:g[y++]}},e:function(e){throw e},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,l=!0,a=!1;return{s:function(){d=d.call(g)},n:function(){var e=d.next();return l=e.done,e},e:function(e){a=!0,c=e},f:function(){try{l||d.return==null||d.return()}finally{if(a)throw c}}}}function D(g,v){(v==null||v>g.length)&&(v=g.length);for(var d=0,y=new Array(v);d<v;d++)y[d]=g[d];return y}function C(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function U(g,v){for(var d=0;d<v.length;d++){var y=v[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}function J(g,v,d){return v&&U(g.prototype,v),d&&U(g,d),g}Object.defineProperty(x,"__esModule",{value:!0}),x.StructTreeLayerBuilder=x.DefaultStructTreeLayerFactory=void 0;var H={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},$=/^H(\d+)$/,B=function(){function g(v){var d=v.pdfPage;C(this,g),this.pdfPage=d}return J(g,[{key:"render",value:function(v){return this._walk(v)}},{key:"_setAttributes",value:function(v,d){v.alt!==void 0&&d.setAttribute("aria-label",v.alt),v.id!==void 0&&d.setAttribute("aria-owns",v.id)}},{key:"_walk",value:function(v){if(!v)return null;var d=document.createElement("span");if("role"in v){var y=v.role,m=y.match($);m?(d.setAttribute("role","heading"),d.setAttribute("aria-level",m[1])):H[y]&&d.setAttribute("role",H[y])}if(this._setAttributes(v,d),v.children)if(v.children.length===1&&"id"in v.children[0])this._setAttributes(v.children[0],d);else{var c,l=M(v.children);try{for(l.s();!(c=l.n()).done;){var a=c.value;d.appendChild(this._walk(a))}}catch(e){l.e(e)}finally{l.f()}}return d}}]),g}();x.StructTreeLayerBuilder=B;var F=function(){function g(){C(this,g)}return J(g,[{key:"createStructTreeLayerBuilder",value:function(v){return new B({pdfPage:v})}}]),g}();x.DefaultStructTreeLayerFactory=F},(j,x,M)=>{Object.defineProperty(x,"__esModule",{value:!0}),x.XfaLayerBuilder=x.DefaultXfaLayerFactory=void 0;var D=M(2);function C(B,F){if(!(B instanceof F))throw new TypeError("Cannot call a class as a function")}function U(B,F){for(var g=0;g<F.length;g++){var v=F[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(B,v.key,v)}}function J(B,F,g){return F&&U(B.prototype,F),g&&U(B,g),B}var H=function(){function B(F){var g=F.pageDiv,v=F.pdfPage,d=F.annotationStorage;C(this,B),this.pageDiv=g,this.pdfPage=v,this.annotationStorage=d,this.div=null,this._cancelled=!1}return J(B,[{key:"render",value:function(F){var g=this;return this.pdfPage.getXfa().then(function(v){if(!g._cancelled){var d={viewport:F.clone({dontFlip:!0}),div:g.div,xfa:v,page:g.pdfPage,annotationStorage:g.annotationStorage};g.div?D.XfaLayer.update(d):(g.div=document.createElement("div"),g.pageDiv.appendChild(g.div),d.div=g.div,D.XfaLayer.render(d))}}).catch(function(v){console.error(v)})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&(this.div.hidden=!0)}}]),B}();x.XfaLayerBuilder=H;var $=function(){function B(){C(this,B)}return J(B,[{key:"createXfaLayerBuilder",value:function(F,g){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return new H({pageDiv:F,pdfPage:g,annotationStorage:v})}}]),B}();x.DefaultXfaLayerFactory=$},(j,x,M)=>{function D(l){return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},D(l)}Object.defineProperty(x,"__esModule",{value:!0}),x.PDFViewer=void 0;var C=M(7),U=M(21),J=M(2);function H(l,a){var e=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!e){if(Array.isArray(l)||(e=function(w,b){if(w){if(typeof w=="string")return $(w,b);var i=Object.prototype.toString.call(w).slice(8,-1);return i==="Object"&&w.constructor&&(i=w.constructor.name),i==="Map"||i==="Set"?Array.from(w):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?$(w,b):void 0}}(l))||a&&l&&typeof l.length=="number"){e&&(l=e);var t=0,s=function(){};return{s,n:function(){return t>=l.length?{done:!0}:{done:!1,value:l[t++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,p=!0,k=!1;return{s:function(){e=e.call(l)},n:function(){var w=e.next();return p=w.done,w},e:function(w){k=!0,r=w},f:function(){try{p||e.return==null||e.return()}finally{if(k)throw r}}}}function $(l,a){(a==null||a>l.length)&&(a=l.length);for(var e=0,t=new Array(a);e<a;e++)t[e]=l[e];return t}function B(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function F(l,a){for(var e=0;e<a.length;e++){var t=a[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function g(l,a,e){return g=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,s,r){var p=function(w,b){for(;!Object.prototype.hasOwnProperty.call(w,b)&&(w=m(w))!==null;);return w}(t,s);if(p){var k=Object.getOwnPropertyDescriptor(p,s);return k.get?k.get.call(r):k.value}},g(l,a,e||l)}function v(l,a){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(l,a)}function d(l){var a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var e,t=m(l);if(a){var s=m(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return y(this,e)}}function y(l,a){return!a||D(a)!=="object"&&typeof a!="function"?function(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(l):a}function m(l){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},m(l)}var c=function(l){(function(r,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(p&&p.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),p&&v(r,p)})(s,l);var a,e,t=d(s);function s(){return B(this,s),t.apply(this,arguments)}return a=s,(e=[{key:"_viewerElement",get:function(){return(0,J.shadow)(this,"_viewerElement",this.viewer)}},{key:"_scrollIntoView",value:function(r){var p=r.pageDiv,k=r.pageSpot,w=k===void 0?null:k,b=r.pageNumber,i=b===void 0?null:b;if(!w&&!this.isInPresentationMode){var o=p.offsetLeft+p.clientLeft,u=o+p.clientWidth,A=this.container,I=A.scrollLeft,O=A.clientWidth;(this._isScrollModeHorizontal||o<I||u>I+O)&&(w={left:0,top:0})}g(m(s.prototype),"_scrollIntoView",this).call(this,{pageDiv:p,pageSpot:w,pageNumber:i})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():g(m(s.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(r){if(!this.isInPresentationMode){var p,k=this._currentPageNumber,w=!1,b=H(r);try{for(b.s();!(p=b.n()).done;){var i=p.value;if(i.percent<100)break;if(i.id===k&&this._scrollMode===C.ScrollMode.VERTICAL&&this._spreadMode===C.SpreadMode.NONE){w=!0;break}}}catch(o){b.e(o)}finally{b.f()}w||(k=r[0].id),this._setCurrentPageNumber(k)}}}])&&F(a.prototype,e),s}(U.BaseViewer);x.PDFViewer=c}],P={};function T(j){var x=P[j];if(x!==void 0)return x.exports;var M=P[j]={id:j,loaded:!1,exports:{}};return E[j](M,M.exports,T),M.loaded=!0,M.exports}T.nmd=j=>(j.paths=[],j.children||(j.children=[]),j);var N={};return(()=>{var j=N;Object.defineProperty(j,"__esModule",{value:!0}),Object.defineProperty(j,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return x.AnnotationLayerBuilder}}),Object.defineProperty(j,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return x.DefaultAnnotationLayerFactory}}),Object.defineProperty(j,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return M.DefaultTextLayerFactory}}),Object.defineProperty(j,"TextLayerBuilder",{enumerable:!0,get:function(){return M.TextLayerBuilder}}),Object.defineProperty(j,"EventBus",{enumerable:!0,get:function(){return D.EventBus}}),Object.defineProperty(j,"ProgressBar",{enumerable:!0,get:function(){return D.ProgressBar}}),Object.defineProperty(j,"PDFLinkService",{enumerable:!0,get:function(){return C.PDFLinkService}}),Object.defineProperty(j,"SimpleLinkService",{enumerable:!0,get:function(){return C.SimpleLinkService}}),Object.defineProperty(j,"DownloadManager",{enumerable:!0,get:function(){return U.DownloadManager}}),Object.defineProperty(j,"GenericL10n",{enumerable:!0,get:function(){return J.GenericL10n}}),Object.defineProperty(j,"NullL10n",{enumerable:!0,get:function(){return H.NullL10n}}),Object.defineProperty(j,"PDFFindController",{enumerable:!0,get:function(){return $.PDFFindController}}),Object.defineProperty(j,"PDFHistory",{enumerable:!0,get:function(){return B.PDFHistory}}),Object.defineProperty(j,"PDFPageView",{enumerable:!0,get:function(){return F.PDFPageView}}),Object.defineProperty(j,"PDFScriptingManager",{enumerable:!0,get:function(){return g.PDFScriptingManager}}),Object.defineProperty(j,"PDFSinglePageViewer",{enumerable:!0,get:function(){return v.PDFSinglePageViewer}}),Object.defineProperty(j,"PDFViewer",{enumerable:!0,get:function(){return d.PDFViewer}});var x=T(1),M=T(8),D=T(7),C=T(6),U=T(9),J=T(11),H=T(3),$=T(13),B=T(15),F=T(16),g=T(18),v=T(20),d=T(24)})(),N})()},L.exports=f()},18:(L,_,h)=>{var f=h(194);f.__esModule&&(f=f.default),typeof f=="string"&&(f=[[L.id,f,""]]),f.locals&&(L.exports=f.locals),(0,h(346).Z)("4bef1e68",f,!1,{})},346:(L,_,h)=>{function f(y,m){for(var c=[],l={},a=0;a<m.length;a++){var e=m[a],t=e[0],s={id:y+":"+a,css:e[1],media:e[2],sourceMap:e[3]};l[t]?l[t].parts.push(s):c.push(l[t]={id:t,parts:[s]})}return c}h.d(_,{Z:()=>J});var E=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!E)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var P={},T=E&&(document.head||document.getElementsByTagName("head")[0]),N=null,j=0,x=!1,M=function(){},D=null,C="data-vue-ssr-id",U=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function J(y,m,c,l){x=c,D=l||{};var a=f(y,m);return H(a),function(e){for(var t=[],s=0;s<a.length;s++){var r=a[s];(p=P[r.id]).refs--,t.push(p)}for(e?H(a=f(y,e)):a=[],s=0;s<t.length;s++){var p;if((p=t[s]).refs===0){for(var k=0;k<p.parts.length;k++)p.parts[k]();delete P[p.id]}}}}function H(y){for(var m=0;m<y.length;m++){var c=y[m],l=P[c.id];if(l){l.refs++;for(var a=0;a<l.parts.length;a++)l.parts[a](c.parts[a]);for(;a<c.parts.length;a++)l.parts.push(B(c.parts[a]));l.parts.length>c.parts.length&&(l.parts.length=c.parts.length)}else{var e=[];for(a=0;a<c.parts.length;a++)e.push(B(c.parts[a]));P[c.id]={id:c.id,refs:1,parts:e}}}}function $(){var y=document.createElement("style");return y.type="text/css",T.appendChild(y),y}function B(y){var m,c,l=document.querySelector("style["+C+'~="'+y.id+'"]');if(l){if(x)return M;l.parentNode.removeChild(l)}if(U){var a=j++;l=N||(N=$()),m=v.bind(null,l,a,!1),c=v.bind(null,l,a,!0)}else l=$(),m=d.bind(null,l),c=function(){l.parentNode.removeChild(l)};return m(y),function(e){if(e){if(e.css===y.css&&e.media===y.media&&e.sourceMap===y.sourceMap)return;m(y=e)}else c()}}var F,g=(F=[],function(y,m){return F[y]=m,F.filter(Boolean).join(`
- `)});function v(y,m,c,l){var a=c?"":l.css;if(y.styleSheet)y.styleSheet.cssText=g(m,a);else{var e=document.createTextNode(a),t=y.childNodes;t[m]&&y.removeChild(t[m]),t.length?y.insertBefore(e,t[m]):y.appendChild(e)}}function d(y,m){var c=m.css,l=m.media,a=m.sourceMap;if(l&&y.setAttribute("media",l),D.ssrId&&y.setAttribute(C,m.id),a&&(c+=`
- /*# sourceURL=`+a.sources[0]+" */",c+=`
- /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),y.styleSheet)y.styleSheet.cssText=c;else{for(;y.firstChild;)y.removeChild(y.firstChild);y.appendChild(document.createTextNode(c))}}},477:L=>{L.exports=function(_,h,f,E){var P=self||window;try{try{var T;try{T=new P.Blob([_])}catch{(T=new(P.BlobBuilder||P.WebKitBlobBuilder||P.MozBlobBuilder||P.MSBlobBuilder)).append(_),T=T.getBlob()}var N=P.URL||P.webkitURL,j=N.createObjectURL(T),x=new P[h](j,f);return N.revokeObjectURL(j),x}catch{return new P[h]("data:application/javascript,".concat(encodeURIComponent(_)),f)}}catch{if(!E)throw Error("Inline worker is not supported");return new P[h](E,f)}}},103:L=>{L.exports=__WEBPACK_EXTERNAL_MODULE__103__},601:()=>{},767:()=>{},251:()=>{},677:()=>{},543:()=>{},324:()=>{}},__webpack_module_cache__={};function __webpack_require__(L){var _=__webpack_module_cache__[L];if(_!==void 0)return _.exports;var h=__webpack_module_cache__[L]={id:L,exports:{}};return __webpack_modules__[L].call(h.exports,h,h.exports,__webpack_require__),h.exports}__webpack_require__.n=L=>{var _=L&&L.__esModule?()=>L.default:()=>L;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(L,_)=>{for(var h in _)__webpack_require__.o(_,h)&&!__webpack_require__.o(L,h)&&Object.defineProperty(L,h,{enumerable:!0,get:_[h]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=(L,_)=>Object.prototype.hasOwnProperty.call(L,_),__webpack_require__.r=L=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(L,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>m});var L={};__webpack_require__.r(L),__webpack_require__.d(L,{s:()=>P});var _=__webpack_require__(103),h=(0,_.createVNode)("canvas",null,null,-1),f={key:0,class:"textLayer"},E={key:1,class:"annotationLayer"};function P(c,l,a,e,t,s){return(0,_.openBlock)(),(0,_.createBlock)("div",{id:a.id,class:"vue-pdf-embed"},[((0,_.openBlock)(!0),(0,_.createBlock)(_.Fragment,null,(0,_.renderList)(t.pageNums,function(r){return(0,_.openBlock)(),(0,_.createBlock)("div",{key:r,id:a.id&&"".concat(a.id,"-").concat(r)},[h,a.disableTextLayer?(0,_.createCommentVNode)("v-if",!0):((0,_.openBlock)(),(0,_.createBlock)("div",f)),a.disableAnnotationLayer?(0,_.createCommentVNode)("v-if",!0):((0,_.openBlock)(),(0,_.createBlock)("div",E))],8,["id"])}),128))],8,["id"])}var T=__webpack_require__(783),N=__webpack_require__(477),j=__webpack_require__.n(N),x=__webpack_require__(102);function M(c,l,a){var e=c.contentWindow.document.createElement("style");e.textContent=`
- @page {
- margin: 0;
- size: `.concat(l,"pt ").concat(a,`pt;
- }
- body {
- margin: 0;
- }
- canvas {
- width: 100%;
- page-break-after: always;
- page-break-before: avoid;
- page-break-inside: avoid;
- }
- `),c.contentWindow.document.head.appendChild(e),c.contentWindow.document.body.style.width="100%"}function D(c){return new Promise(function(l){var a=document.createElement("iframe");a.width=0,a.height=0,a.style.position="absolute",a.style.top=0,a.style.left=0,a.style.border="none",a.style.overflow="hidden",a.onload=function(){return l(a)},c.appendChild(a)})}function C(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function U(c){c.querySelectorAll("canvas").forEach(function(l){var a;l.width=1,l.height=1,(a=l.getContext("2d"))===null||a===void 0||a.clearRect(0,0,1,1)})}function J(c){return function(l){if(Array.isArray(l))return B(l)}(c)||function(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}(c)||$(c)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function H(c,l){return function(a){if(Array.isArray(a))return a}(c)||function(a,e){var t=a&&(typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"]);if(t!=null){var s,r,p=[],k=!0,w=!1;try{for(t=t.call(a);!(k=(s=t.next()).done)&&(p.push(s.value),!e||p.length!==e);k=!0);}catch(b){w=!0,r=b}finally{try{k||t.return==null||t.return()}finally{if(w)throw r}}return p}}(c,l)||$(c,l)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(c,l){if(c){if(typeof c=="string")return B(c,l);var a=Object.prototype.toString.call(c).slice(8,-1);return a==="Object"&&c.constructor&&(a=c.constructor.name),a==="Map"||a==="Set"?Array.from(c):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?B(c,l):void 0}}function B(c,l){(l==null||l>c.length)&&(l=c.length);for(var a=0,e=new Array(l);a<l;a++)e[a]=c[a];return e}function F(c,l,a,e,t,s,r){try{var p=c[s](r),k=p.value}catch(w){return void a(w)}p.done?l(k):Promise.resolve(k).then(e,t)}function g(c){return function(){var l=this,a=arguments;return new Promise(function(e,t){var s=c.apply(l,a);function r(k){F(s,e,t,r,p,"next",k)}function p(k){F(s,e,t,r,p,"throw",k)}r(void 0)})}}T.GlobalWorkerOptions.workerPort=new function(){return j()(`(()=>{var e={636:function(e,t,r){var n;n=function(){return(()=>{var e=[,(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(113),s=r(115),c=r(172),u=r(6),l=r(197),f=r(198),h=r(117);function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=v(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function p(e){return b(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||m()}function g(e,t){return b(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||v(e,t)||m()}function m(){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 v(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function b(e){if(Array.isArray(e))return e}function w(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function k(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){w(i,n,a,o,s,"next",e)}function s(e){w(i,n,a,o,s,"throw",e)}o(void 0)}))}}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t,r){return t&&x(e.prototype,t),r&&x(e,r),e}var O=function(){function e(t){S(this,e),this.name=t,this.terminated=!1,this._capability=(0,i.createPromiseCapability)()}return A(e,[{key:"finished",get:function(){return this._capability.promise}},{key:"finish",value:function(){this._capability.resolve()}},{key:"terminate",value:function(){this.terminated=!0}},{key:"ensureNotTerminated",value:function(){if(this.terminated)throw new Error("Worker task was terminated")}}]),e}();t.WorkerTask=O;var C,T=function(){function e(){S(this,e)}return A(e,null,[{key:"setup",value:function(t,r){var n=!1;t.on("test",(function(e){if(!n)if(n=!0,e instanceof Uint8Array){var r=255===e[0];t.postMessageTransfers=r,t.send("test",{supportTransfers:r})}else t.send("test",null)})),t.on("configure",(function(e){(0,i.setVerbosityLevel)(e.verbosity)})),t.on("GetDocRequest",(function(t){return e.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function(e,t){var r,n=!1,u=null,m=[],v=(0,i.getVerbosityLevel)(),y=e.apiVersion,b="2.9.359";if(y!==b)throw new Error('The API version "'.concat(y,'" does not match ')+'the Worker version "'.concat(b,'".'));var w=[];for(var S in[])w.push(S);if(w.length)throw new Error("The \`Array.prototype\` contains unexpected enumerable properties: "+w.join(", ")+"; thus breaking e.g. \`for...in\` iteration of \`Array\`s.");var x=e.docId,A=e.docBaseUrl,C=e.docId+"_worker",T=new l.MessageHandler(C,x,t);function F(){if(n)throw new Error("Worker was terminated")}function P(e){m.push(e)}function _(e){e.finish();var t=m.indexOf(e);m.splice(t,1)}function I(e){return E.apply(this,arguments)}function E(){return(E=k(a.default.mark((function e(t){var n,i,o,s,c,u;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.ensureDoc("checkHeader");case 2:return e.next=4,r.ensureDoc("parseStartXRef");case 4:return e.next=6,r.ensureDoc("parse",[t]);case 6:if(t){e.next=9;break}return e.next=9,r.ensureDoc("checkFirstPage");case 9:return e.next=11,Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprint"),r.ensureDoc("isPureXfa")]);case 11:if(n=e.sent,i=g(n,3),o=i[0],s=i[1],!(c=i[2])){e.next=21;break}return P(u=new O("loadXfaFonts")),e.next=21,r.loadXfaFonts(T,u).catch((function(e){})).then((function(){return _(u)}));case 21:return e.abrupt("return",{numPages:o,fingerprint:s,isPureXfa:c});case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e,t,r){var n,a=(0,i.createPromiseCapability)(),o=e.source;if(o.data){try{n=new s.LocalPdfManager(x,o.data,o.password,t,r,A),a.resolve(n)}catch(e){a.reject(e)}return a.promise}var c,l=[];try{c=new f.PDFWorkerStream(T)}catch(e){return a.reject(e),a.promise}var h=c.getFullReader();h.headersReady.then((function(){if(h.isRangeSupported){var e=o.disableAutoFetch||h.isStreamingSupported;n=new s.NetworkPdfManager(x,c,{msgHandler:T,password:o.password,length:h.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,r,A);for(var i=0;i<l.length;i++)n.sendProgressiveData(l[i]);l=[],a.resolve(n),u=null}})).catch((function(e){a.reject(e),u=null}));var d=0;return new Promise((function(e,c){h.read().then((function e(f){var p=f.value,g=f.done;try{if(F(),g)return n||function(){var e=(0,i.arraysToBytes)(l);o.length&&e.length!==o.length&&(0,i.warn)("reported HTTP length is different from actual");try{n=new s.LocalPdfManager(x,e,o.password,t,r,A),a.resolve(n)}catch(e){a.reject(e)}l=[]}(),void(u=null);d+=(0,i.arrayByteLength)(p),h.isStreamingSupported||T.send("DocProgress",{loaded:d,total:Math.max(d,h.contentLength||0)}),n?n.sendProgressiveData(p):l.push(p),h.read().then(e,c)}catch(e){c(e)}}),c)})).catch((function(e){a.reject(e),u=null})),u=function(e){c.cancelAllRequests(e)},a.promise}return T.postMessageTransfers=e.postMessageTransfers,T.on("GetPage",(function(e){return r.getPage(e.pageIndex).then((function(e){return Promise.all([r.ensure(e,"rotate"),r.ensure(e,"ref"),r.ensure(e,"userUnit"),r.ensure(e,"view")]).then((function(e){var t=g(e,4);return{rotate:t[0],ref:t[1],userUnit:t[2],view:t[3]}}))}))})),T.on("GetPageIndex",(function(e){var t=e.ref,n=o.Ref.get(t.num,t.gen);return r.ensureCatalog("getPageIndex",[n])})),T.on("GetDestinations",(function(e){return r.ensureCatalog("destinations")})),T.on("GetDestination",(function(e){return r.ensureCatalog("getDestination",[e.id])})),T.on("GetPageLabels",(function(e){return r.ensureCatalog("pageLabels")})),T.on("GetPageLayout",(function(e){return r.ensureCatalog("pageLayout")})),T.on("GetPageMode",(function(e){return r.ensureCatalog("pageMode")})),T.on("GetViewerPreferences",(function(e){return r.ensureCatalog("viewerPreferences")})),T.on("GetOpenAction",(function(e){return r.ensureCatalog("openAction")})),T.on("GetAttachments",(function(e){return r.ensureCatalog("attachments")})),T.on("GetJavaScript",(function(e){return r.ensureCatalog("javaScript")})),T.on("GetDocJSActions",(function(e){return r.ensureCatalog("jsActions")})),T.on("GetPageJSActions",(function(e){var t=e.pageIndex;return r.getPage(t).then((function(e){return r.ensure(e,"jsActions")}))})),T.on("GetPageXfa",(function(e){var t=e.pageIndex;return r.getPage(t).then((function(e){return r.ensure(e,"xfaData")}))})),T.on("GetOutline",(function(e){return r.ensureCatalog("documentOutline")})),T.on("GetOptionalContentConfig",(function(e){return r.ensureCatalog("optionalContentConfig")})),T.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")})),T.on("GetMetadata",(function(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])})),T.on("GetMarkInfo",(function(e){return r.ensureCatalog("markInfo")})),T.on("GetData",(function(e){return r.requestLoadedStream(),r.onLoadedStream().then((function(e){return e.bytes}))})),T.on("GetStats",(function(e){return r.ensureXRef("stats")})),T.on("GetAnnotations",(function(e){var t=e.pageIndex,n=e.intent;return r.getPage(t).then((function(e){return e.getAnnotationsData(n)}))})),T.on("GetFieldObjects",(function(e){return r.ensureDoc("fieldObjects")})),T.on("HasJSActions",(function(e){return r.ensureDoc("hasJSActions")})),T.on("GetCalculationOrderIds",(function(e){return r.ensureDoc("calculationOrderIds")})),T.on("SaveDocument",(function(e){var t=e.numPages,n=e.annotationStorage,a=e.filename;r.requestLoadedStream();for(var s=[r.onLoadedStream(),r.ensureCatalog("acroForm"),r.ensureDoc("xref"),r.ensureDoc("startXRef")],u=function(e){s.push(r.getPage(e).then((function(t){var r=new O("Save: page ".concat(e));return P(r),t.save(T,r,n).finally((function(){_(r)}))})))},l=0;l<t;l++)u(l);return Promise.all(s).then((function(e){var t,r=p(e),n=r[0],s=r[1],u=r[2],l=r[3],f=[],h=d(r.slice(4));try{for(h.s();!(t=h.n()).done;)f=t.value.filter((function(e){return null!==e})).reduce((function(e,t){return e.concat(t)}),f)}catch(e){h.e(e)}finally{h.f()}if(0===f.length)return n.bytes;var g=s instanceof o.Dict&&s.get("XFA")||[],m=null;if(Array.isArray(g))for(var v=0,y=g.length;v<y;v+=2)"datasets"===g[v]&&(m=g[v+1]);else(0,i.warn)("Unsupported XFA type.");var b=Object.create(null);if(u.trailer){var w=Object.create(null),k=u.trailer.get("Info")||null;k instanceof o.Dict&&k.forEach((function(e,t){(0,i.isString)(e)&&(0,i.isString)(t)&&(w[e]=(0,i.stringToPDFString)(t))})),b={rootRef:u.trailer.getRaw("Root")||null,encryptRef:u.trailer.getRaw("Encrypt")||null,newRef:u.getNewRef(),infoRef:u.trailer.getRaw("Info")||null,info:w,fileIds:u.trailer.get("ID")||null,startXRef:l,filename:a}}return u.resetNewRef(),(0,c.incrementalUpdate)({originalData:n.bytes,xrefInfo:b,newRefs:f,xref:u,datasetsRef:m})}))})),T.on("GetOperatorList",(function(e,t){var n=e.pageIndex;r.getPage(n).then((function(r){var a=new O("GetOperatorList: page ".concat(n));P(a);var o=v>=i.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:T,sink:t,task:a,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms,annotationStorage:e.annotationStorage}).then((function(e){_(a),o&&(0,i.info)("page=".concat(n+1," - getOperatorList: time=")+"".concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){_(a),a.terminated||(T.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorOperatorList}),t.error(e))}))}))})),T.on("GetTextContent",(function(e,t){var n=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},r.getPage(n).then((function(r){var a=new O("GetTextContent: page "+n);P(a);var o=v>=i.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:T,task:a,sink:t,normalizeWhitespace:e.normalizeWhitespace,includeMarkedContent:e.includeMarkedContent,combineTextItems:e.combineTextItems}).then((function(){_(a),o&&(0,i.info)("page=".concat(n+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){_(a),a.terminated||t.error(e)}))}))})),T.on("GetStructTree",(function(e){return r.getPage(e.pageIndex).then((function(e){return r.ensure(e,"getStructTree")}))})),T.on("FontFallback",(function(e){return r.fontFallback(e.id,T)})),T.on("Cleanup",(function(e){return r.cleanup(!0)})),T.on("Terminate",(function(e){n=!0;var t=[];if(r){r.terminate(new i.AbortException("Worker was terminated."));var a=r.cleanup();t.push(a),r=null}else(0,o.clearPrimitiveCaches)();u&&u(new i.AbortException("Worker was terminated."));var s,c=d(m);try{for(c.s();!(s=c.n()).done;){var l=s.value;t.push(l.finished),l.terminate()}}catch(e){c.e(e)}finally{c.f()}return Promise.all(t).then((function(){T.destroy(),T=null}))})),T.on("Ready",(function(t){!function(e){function t(e){F(),T.send("GetDoc",{pdfInfo:e})}function a(e){if(F(),e instanceof i.PasswordException){var t=new O("PasswordException: response ".concat(e.code));P(t),T.sendWithPromise("PasswordRequest",e).then((function(e){var n=e.password;_(t),r.updatePassword(n),o()})).catch((function(){_(t),T.send("DocException",e)}))}else e instanceof i.InvalidPDFException||e instanceof i.MissingPDFException||e instanceof i.UnexpectedResponseException||e instanceof i.UnknownErrorException?T.send("DocException",e):T.send("DocException",new i.UnknownErrorException(e.message,e.toString()))}function o(){F(),I(!1).then(t,(function(e){F(),e instanceof h.XRefParseException?(r.requestLoadedStream(),r.onLoadedStream().then((function(){F(),I(!0).then(t,a)}))):a(e)}))}F(),j(e,{maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties},e.enableXfa).then((function(e){if(n)throw e.terminate(new i.AbortException("Worker was terminated.")),new Error("Worker was terminated");(r=e).onLoadedStream().then((function(e){T.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(o,a)}(e),e=null})),C}},{key:"initializeFromPort",value:function(t){var r=new l.MessageHandler("worker","main",t);e.setup(r,t),r.send("ready",null)}}]),e}();t.WorkerMessageHandler=T,"undefined"==typeof window&&!u.isNodeJS&&"undefined"!=typeof self&&"function"==typeof(C=self).postMessage&&"onmessage"in C&&T.initializeFromPort(self)},(e,t,r)=>{"use strict";e.exports=r(3)},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var a=function(e){var t,r=Object.prototype,a=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),o=new P(n||[]);return i._invoke=function(e,t,r){var n=h;return function(a,i){if(n===p)throw new Error("Generator is already running");if(n===g){if("throw"===a)throw i;return I()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=f(e,t,r);if("normal"===c.type){if(n=r.done?g:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=g,r.method="throw",r.arg=c.arg)}}}(e,r,o),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function b(){}var w={};w[o]=function(){return this};var k=Object.getPrototypeOf,S=k&&k(k(_([])));S&&S!==r&&a.call(S,o)&&(w=S);var x=b.prototype=v.prototype=Object.create(w);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(i,o,s,c){var u=f(e[i],e,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"===n(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;this._invoke=function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}}function C(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=f(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(a.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:I}}function I(){return{value:t,done:!0}}return y.prototype=x.constructor=b,b.constructor=y,y.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},A(O.prototype),O.prototype[s]=function(){return this},e.AsyncIterator=O,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new O(l(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},A(x),u(x,c,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=_,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),F(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;F(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:_(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}("object"===n(e=r.nmd(e))?e.exports:{});try{regeneratorRuntime=a}catch(e){Function("r","regeneratorRuntime = r")(a)}},(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&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=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=P,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,n=0;n<t;n++)r+=P(e[n]);for(var a=0,i=new Uint8Array(r),o=0;o<t;o++){var s=e[o];s instanceof Uint8Array||(s="string"==typeof s?F(s):new Uint8Array(s));var c=s.byteLength;i.set(s,a),a+=c}return i},t.assert=v,t.bytesToString=function(e){v(null!==e&&"object"===o(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var n=[],a=0;a<t;a+=r){var i=Math.min(a+r,t),s=e.subarray(a,i);n.push(String.fromCharCode.apply(null,s))}return n.join("")},t.createObjectURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&!r)return URL.createObjectURL(new Blob([e],{type:t}));for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="data:".concat(t,";base64,"),i=0,o=e.length;i<o;i+=3){var s=255&e[i],c=255&e[i+1],u=255&e[i+2],l=s>>2,f=(3&s)<<4|c>>4,h=i+1<o?(15&c)<<2|u>>6:64,d=i+2<o?63&u:64;a+=n[l]+n[f]+n[h]+n[d]}return a},t.createPromiseCapability=function(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(r,n){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,n(e)}})),e},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.escapeString=function(e){return e.replace(/([()\\\\\\n\\r])/g,(function(e){return"\\n"===e?"\\\\n":"\\r"===e?"\\\\r":"\\\\".concat(e)}))},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().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("")},t.getVerbosityLevel=function(){return p},t.info=function(e){p>=d.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===o(e)&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0},t.isAscii=function(e){return/^[\\x00-\\x7F]*$/.test(e)},t.isBool=function(e){return"boolean"==typeof e},t.isNum=function(e){return"number"==typeof e},t.isSameOrigin=function(e,t){var r;try{if(!(r=new URL(e)).origin||"null"===r.origin)return!1}catch(e){return!1}var n=new URL(t,r);return r.origin===n.origin},t.isString=function(e){return"string"==typeof e},t.objectFromMap=function(e){var t,r,n,i=Object.create(null),o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}(e);try{for(o.s();!(t=o.n()).done;){var s=(r=t.value,n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(r,n)||a(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];i[c]=u}}catch(e){o.e(e)}finally{o.f()}return i},t.objectSize=function(e){return Object.keys(e).length},t.removeNullCharacters=function(e){return"string"!=typeof e?(g("The argument for removeNullCharacters must be a string."),e):e.replace(T,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(p=e)},t.shadow=y,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=F,t.stringToPDFString=function(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n)<<8|e.charCodeAt(n+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var a=2;a<t;a+=2)r.push(String.fromCharCode(e.charCodeAt(a+1)<<8|e.charCodeAt(a)));else for(var i=0;i<t;++i){var o=M[e.charCodeAt(i)];r.push(o?String.fromCharCode(o):e.charAt(i))}return r.join("")},t.stringToUTF16BEString=function(e){for(var t=["þÿ"],r=0,n=e.length;r<n;r++){var a=e.charCodeAt(r);t.push(String.fromCharCode(a>>8&255),String.fromCharCode(255&a))}return t.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.unreachable=m,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=g,t.VerbosityLevel=t.Util=t.UNSUPPORTED_FEATURES=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.IsLittleEndianCached=t.IsEvalSupportedCached=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,r(5),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var d={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=d,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var p=d.WARNINGS;function g(e){p>=d.WARNINGS&&console.log("Warning: ".concat(e))}function m(e){throw new Error(e)}function v(e,t){e||m(t)}function y(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var b=function(){function e(t){this.constructor===e&&m("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=b;var w=function(e){c(r,e);var t=l(r);function r(e,n){var a;return s(this,r),(a=t.call(this,e)).code=n,a}return r}(b);t.PasswordException=w;var k=function(e){c(r,e);var t=l(r);function r(e,n){var a;return s(this,r),(a=t.call(this,e)).details=n,a}return r}(b);t.UnknownErrorException=k;var S=function(e){c(r,e);var t=l(r);function r(){return s(this,r),t.apply(this,arguments)}return r}(b);t.InvalidPDFException=S;var x=function(e){c(r,e);var t=l(r);function r(){return s(this,r),t.apply(this,arguments)}return r}(b);t.MissingPDFException=x;var A=function(e){c(r,e);var t=l(r);function r(e,n){var a;return s(this,r),(a=t.call(this,e)).status=n,a}return r}(b);t.UnexpectedResponseException=A;var O=function(e){c(r,e);var t=l(r);function r(){return s(this,r),t.apply(this,arguments)}return r}(b);t.FormatError=O;var C=function(e){c(r,e);var t=l(r);function r(){return s(this,r),t.apply(this,arguments)}return r}(b);t.AbortException=C;var T=/\\x00/g;function F(e){v("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);return r}function P(e){return void 0!==e.length?e.length:(v(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}var _={get value(){return y(this,"value",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}};t.IsLittleEndianCached=_;var I={get value(){return y(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=I;var E,j=(E=Array(256).keys(),function(e){if(Array.isArray(e))return i(e)}(E)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(E)||a(E)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){return e.toString(16).padStart(2,"0")})),R=function(){function e(){s(this,e)}var t,r,a;return t=e,a=[{key:"makeHexColor",value:function(e,t,r){return"#".concat(j[e]).concat(j[t]).concat(j[r])}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),a=e.applyTransform(t.slice(2,4),r),i=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],a[0],i[0],o[0]),Math.min(n[1],a[1],i[1],o[1]),Math.max(n[0],a[0],i[0],o[0]),Math.max(n[1],a[1],i[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]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],a=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(r+i)/2,s=Math.sqrt(Math.pow(r+i,2)-4*(r*i-a*n))/2,c=o+s||1,u=o-s||1;return[Math.sqrt(c),Math.sqrt(u)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var a=[t[0],t[2],r[0],r[2]].sort(n),i=[t[1],t[3],r[1],r[3]].sort(n),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]?(o[0]=a[1],o[2]=a[2],i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}],(r=null)&&n(t.prototype,r),a&&n(t,a),e}();t.Util=R;var M=[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]},(e,t,r)=>{"use strict";var n=r(6);"undefined"!=typeof globalThis&&globalThis._pdfjsCompatibilityChecked||("undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=r(7)),globalThis._pdfjsCompatibilityChecked=!0,!globalThis.btoa&&n.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")}),!globalThis.atob&&n.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")}),Object.fromEntries||r(53),globalThis.Promise.allSettled||(globalThis.Promise=r(84)),function(){var e=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(e){}e||(globalThis.ReadableStream=r(112).ReadableStream)}())},(e,t)=>{"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 n=!("object"!==("undefined"==typeof process?"undefined":r(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(e,t,r)=>{r(8),e.exports=r(10)},(e,t,r)=>{r(9)({global:!0},{globalThis:r(10)})},(e,t,r)=>{var n=r(10),a=r(11).f,i=r(26),o=r(29),s=r(30),c=r(40),u=r(52);e.exports=function(e,t){var r,l,f,h,d,p=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[p]||s(p,{}):(n[p]||{}).prototype)for(l in t){if(h=t[l],f=e.noTargetGet?(d=a(r,l))&&d.value:r[l],!u(g?l:p+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;c(h,f)}(e.sham||f&&f.sham)&&i(h,"sham",!0),o(r,l,h,e)}}},e=>{var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},(e,t,r)=>{var n=r(12),a=r(14),i=r(15),o=r(16),s=r(20),c=r(22),u=r(24),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=o(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return i(!a.f.call(e,t),e[t])}},(e,t,r)=>{var n=r(13);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{var n=r(17),a=r(19);e.exports=function(e){return n(a(e))}},(e,t,r)=>{var n=r(13),a=r(18),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},(e,t,r)=>{var n=r(21);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if(!t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},(e,t,r)=>{var n=r(23),a={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return a.call(n(e),t)}},(e,t,r)=>{var n=r(19);e.exports=function(e){return Object(n(e))}},(e,t,r)=>{var n=r(12),a=r(13),i=r(25);e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},(e,t,r)=>{var n=r(10),a=r(21),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},(e,t,r)=>{var n=r(12),a=r(27),i=r(15);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{var n=r(12),a=r(24),i=r(28),o=r(20),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=o(t,!0),i(r),a)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{var n=r(21);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},(e,t,r)=>{var n=r(10),a=r(26),i=r(22),o=r(30),s=r(31),c=r(33),u=c.get,l=c.enforce,f=String(String).split("String");(e.exports=function(e,t,r,s){var c,u=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||a(r,"name",t),(c=l(r)).source||(c.source=f.join("string"==typeof t?t:""))),e!==n?(u?!d&&e[t]&&(h=!0):delete e[t],h?e[t]=r:a(e,t,r)):h?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},(e,t,r)=>{var n=r(10),a=r(26);e.exports=function(e,t){try{a(n,e,t)}catch(r){n[e]=t}return t}},(e,t,r)=>{var n=r(32),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},(e,t,r)=>{var n=r(10),a=r(30),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},(e,t,r)=>{var n,a,i,o=r(34),s=r(10),c=r(21),u=r(26),l=r(22),f=r(32),h=r(35),d=r(39),p="Object already initialized",g=s.WeakMap;if(o||f.state){var m=f.state||(f.state=new g),v=m.get,y=m.has,b=m.set;n=function(e,t){if(y.call(m,e))throw new TypeError(p);return t.facade=e,b.call(m,e,t),t},a=function(e){return v.call(m,e)||{}},i=function(e){return y.call(m,e)}}else{var w=h("state");d[w]=!0,n=function(e,t){if(l(e,w))throw new TypeError(p);return t.facade=e,u(e,w,t),t},a=function(e){return l(e,w)?e[w]:{}},i=function(e){return l(e,w)}}e.exports={set:n,get:a,has:i,enforce:function(e){return i(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{var n=r(10),a=r(31),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(a(i))},(e,t,r)=>{var n=r(36),a=r(38),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},(e,t,r)=>{var n=r(37),a=r(32);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},e=>{e.exports=!1},e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},e=>{e.exports={}},(e,t,r)=>{var n=r(22),a=r(41),i=r(11),o=r(27);e.exports=function(e,t){for(var r=a(t),s=o.f,c=i.f,u=0;u<r.length;u++){var l=r[u];n(e,l)||s(e,l,c(t,l))}}},(e,t,r)=>{var n=r(42),a=r(44),i=r(51),o=r(28);e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},(e,t,r)=>{var n=r(43),a=r(10),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(a[e]):n[e]&&n[e][t]||a[e]&&a[e][t]}},(e,t,r)=>{var n=r(10);e.exports=n},(e,t,r)=>{var n=r(45),a=r(50).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},(e,t,r)=>{var n=r(22),a=r(16),i=r(46).indexOf,o=r(39);e.exports=function(e,t){var r,s=a(e),c=0,u=[];for(r in s)!n(o,r)&&n(s,r)&&u.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~i(u,r)||u.push(r));return u}},(e,t,r)=>{var n=r(16),a=r(47),i=r(49),o=function(e){return function(t,r,o){var s,c=n(t),u=a(c.length),l=i(o,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},(e,t,r)=>{var n=r(48),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},(e,t,r)=>{var n=r(48),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t,r)=>{var n=r(13),a=/#|\\.prototype\\./,i=function(e,t){var r=s[o(e)];return r==u||r!=c&&("function"==typeof t?n(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},(e,t,r)=>{r(54),r(74);var n=r(43);e.exports=n.Object.fromEntries},(e,t,r)=>{"use strict";var n=r(16),a=r(55),i=r(65),o=r(33),s=r(66),c="Array Iterator",u=o.set,l=o.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:n(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},(e,t,r)=>{var n=r(56),a=r(61),i=r(27),o=n("unscopables"),s=Array.prototype;null==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},(e,t,r)=>{var n=r(10),a=r(36),i=r(22),o=r(38),s=r(57),c=r(60),u=a("wks"),l=n.Symbol,f=c?l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)&&(s||"string"==typeof u[e])||(s&&i(l,e)?u[e]=l[e]:u[e]=f("Symbol."+e)),u[e]}},(e,t,r)=>{var n=r(58),a=r(13);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},(e,t,r)=>{var n,a,i=r(10),o=r(59),s=i.process,c=s&&s.versions,u=c&&c.v8;u?a=(n=u.split("."))[0]<4?1:n[0]+n[1]:o&&(!(n=o.match(/Edge\\/(\\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\\/(\\d+)/))&&(a=n[1]),e.exports=a&&+a},(e,t,r)=>{var n=r(42);e.exports=n("navigator","userAgent")||""},(e,t,r)=>{var n=r(57);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{var n,a=r(28),i=r(62),o=r(50),s=r(39),c=r(64),u=r(25),l=r(35),f=l("IE_PROTO"),h=function(){},d=function(e){return"<script>"+e+"<\\/script>"},p=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;p=n?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var r=o.length;r--;)delete p.prototype[o[r]];return p()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h.prototype=a(e),r=new h,h.prototype=null,r[f]=e):r=p(),void 0===t?r:i(r,t)}},(e,t,r)=>{var n=r(12),a=r(27),i=r(28),o=r(63);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=o(t),s=n.length,c=0;s>c;)a.f(e,r=n[c++],t[r]);return e}},(e,t,r)=>{var n=r(45),a=r(50);e.exports=Object.keys||function(e){return n(e,a)}},(e,t,r)=>{var n=r(42);e.exports=n("document","documentElement")},e=>{e.exports={}},(e,t,r)=>{"use strict";var n=r(9),a=r(67),i=r(69),o=r(72),s=r(71),c=r(26),u=r(29),l=r(56),f=r(37),h=r(65),d=r(68),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=l("iterator"),v="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,r,l,d,k,S){a(r,t,l);var x,A,O,C=function(e){if(e===d&&I)return I;if(!g&&e in P)return P[e];switch(e){case v:case y:case b:return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",F=!1,P=e.prototype,_=P[m]||P["@@iterator"]||d&&P[d],I=!g&&_||C(d),E="Array"==t&&P.entries||_;if(E&&(x=i(E.call(new e)),p!==Object.prototype&&x.next&&(f||i(x)===p||(o?o(x,p):"function"!=typeof x[m]&&c(x,m,w)),s(x,T,!0,!0),f&&(h[T]=w))),d==y&&_&&_.name!==y&&(F=!0,I=function(){return _.call(this)}),f&&!S||P[m]===I||c(P,m,I),h[t]=I,d)if(A={values:C(y),keys:k?I:C(v),entries:C(b)},S)for(O in A)(g||F||!(O in P))&&u(P,O,A[O]);else n({target:t,proto:!0,forced:g||F},A);return A}},(e,t,r)=>{"use strict";var n=r(68).IteratorPrototype,a=r(61),i=r(15),o=r(71),s=r(65),c=function(){return this};e.exports=function(e,t,r){var u=t+" Iterator";return e.prototype=a(n,{next:i(1,r)}),o(e,u,!1,!0),s[u]=c,e}},(e,t,r)=>{"use strict";var n,a,i,o=r(13),s=r(69),c=r(26),u=r(22),l=r(56),f=r(37),h=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(a=s(s(i)))!==Object.prototype&&(n=a):d=!0);var p=null==n||o((function(){var e={};return n[h].call(e)!==e}));p&&(n={}),f&&!p||u(n,h)||c(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},(e,t,r)=>{var n=r(22),a=r(23),i=r(35),o=r(70),s=i("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=a(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},(e,t,r)=>{var n=r(13);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},(e,t,r)=>{var n=r(27).f,a=r(22),i=r(56)("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},(e,t,r)=>{var n=r(28),a=r(73);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),a(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},(e,t,r)=>{var n=r(21);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},(e,t,r)=>{var n=r(9),a=r(75),i=r(83);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,r){i(t,e,r)}),{AS_ENTRIES:!0}),t}})},(e,t,r)=>{var n=r(28),a=r(76),i=r(47),o=r(77),s=r(79),c=r(82),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var l,f,h,d,p,g,m,v=r&&r.that,y=!(!r||!r.AS_ENTRIES),b=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),k=o(t,v,1+y+w),S=function(e){return l&&c(l),new u(!0,e)},x=function(e){return y?(n(e),w?k(e[0],e[1],S):k(e[0],e[1])):w?k(e,S):k(e)};if(b)l=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(a(f)){for(h=0,d=i(e.length);d>h;h++)if((p=x(e[h]))&&p instanceof u)return p;return new u(!1)}l=f.call(e)}for(g=l.next;!(m=g.call(l)).done;){try{p=x(m.value)}catch(e){throw c(l),e}if("object"==typeof p&&p&&p instanceof u)return p}return new u(!1)}},(e,t,r)=>{var n=r(56),a=r(65),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},(e,t,r)=>{var n=r(78);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},(e,t,r)=>{var n=r(80),a=r(65),i=r(56)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[n(e)]}},(e,t,r)=>{var n=r(81),a=r(18),i=r(56)("toStringTag"),o="Arguments"==a(function(){return arguments}());e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},(e,t,r)=>{var n={};n[r(56)("toStringTag")]="z",e.exports="[object z]"===String(n)},(e,t,r)=>{var n=r(28);e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},(e,t,r)=>{"use strict";var n=r(20),a=r(27),i=r(15);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},(e,t,r)=>{r(85),r(86),r(88),r(105),r(106),r(107),r(108),r(110);var n=r(43);e.exports=n.Promise},(e,t,r)=>{"use strict";var n=r(9),a=r(69),i=r(72),o=r(61),s=r(26),c=r(15),u=r(75),l=function(e,t){var r=this;if(!(r instanceof l))return new l(e,t);i&&(r=i(new Error(void 0),a(r))),void 0!==t&&s(r,"message",String(t));var n=[];return u(e,n.push,{that:n}),s(r,"errors",n),r};l.prototype=o(Error.prototype,{constructor:c(5,l),message:c(5,""),name:c(5,"AggregateError")}),n({global:!0},{AggregateError:l})},(e,t,r)=>{var n=r(81),a=r(29),i=r(87);n||a(Object.prototype,"toString",i,{unsafe:!0})},(e,t,r)=>{"use strict";var n=r(81),a=r(80);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},(e,t,r)=>{"use strict";var n,a,i,o,s=r(9),c=r(37),u=r(10),l=r(42),f=r(89),h=r(29),d=r(90),p=r(72),g=r(71),m=r(91),v=r(21),y=r(78),b=r(92),w=r(31),k=r(75),S=r(93),x=r(94),A=r(95).set,O=r(98),C=r(100),T=r(102),F=r(101),P=r(103),_=r(33),I=r(52),E=r(56),j=r(104),R=r(97),M=r(58),N=E("species"),B="Promise",D=_.get,L=_.set,U=_.getterFor(B),q=f&&f.prototype,X=f,H=q,$=u.TypeError,z=u.document,G=u.process,W=F.f,V=W,K=!!(z&&z.createEvent&&u.dispatchEvent),Y="function"==typeof PromiseRejectionEvent,J="unhandledrejection",Z=!1,Q=I(B,(function(){var e=w(X)!==String(X);if(!e&&66===M)return!0;if(c&&!H.finally)return!0;if(M>=51&&/native code/.test(X))return!1;var t=new X((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(t.constructor={})[N]=r,!(Z=t.then((function(){}))instanceof r)||!e&&j&&!Y})),ee=Q||!S((function(e){X.all(e).catch((function(){}))})),te=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;O((function(){for(var n=e.value,a=1==e.state,i=0;r.length>i;){var o,s,c,u=r[i++],l=a?u.ok:u.fail,f=u.resolve,h=u.reject,d=u.domain;try{l?(a||(2===e.rejection&&oe(e),e.rejection=1),!0===l?o=n:(d&&d.enter(),o=l(n),d&&(d.exit(),c=!0)),o===u.promise?h($("Promise-chain cycle")):(s=te(o))?s.call(o,f,h):f(o)):h(n)}catch(e){d&&!c&&d.exit(),h(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},ne=function(e,t,r){var n,a;K?((n=z.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!Y&&(a=u["on"+e])?a(n):e===J&&T("Unhandled promise rejection",r)},ae=function(e){A.call(u,(function(){var t,r=e.facade,n=e.value;if(ie(e)&&(t=P((function(){R?G.emit("unhandledRejection",n,r):ne(J,r,n)})),e.rejection=R||ie(e)?2:1,t.error))throw t.value}))},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){A.call(u,(function(){var t=e.facade;R?G.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)}))},se=function(e,t,r){return function(n){e(t,n,r)}},ce=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,re(e,!0))},ue=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw $("Promise can't be resolved itself");var n=te(t);n?O((function(){var r={done:!1};try{n.call(t,se(ue,r,e),se(ce,r,e))}catch(t){ce(r,t,e)}})):(e.value=t,e.state=1,re(e,!1))}catch(t){ce({done:!1},t,e)}}};if(Q&&(H=(X=function(e){b(this,X,B),y(e),n.call(this);var t=D(this);try{e(se(ue,t),se(ce,t))}catch(e){ce(t,e)}}).prototype,(n=function(e){L(this,{type:B,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(H,{then:function(e,t){var r=U(this),n=W(x(this,X));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&re(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n,t=D(e);this.promise=e,this.resolve=se(ue,t),this.reject=se(ce,t)},F.f=W=function(e){return e===X||e===i?new a(e):V(e)},!c&&"function"==typeof f&&q!==Object.prototype)){o=q.then,Z||(h(q,"then",(function(e,t){var r=this;return new X((function(e,t){o.call(r,e,t)})).then(e,t)}),{unsafe:!0}),h(q,"catch",H.catch,{unsafe:!0}));try{delete q.constructor}catch(e){}p&&p(q,H)}s({global:!0,wrap:!0,forced:Q},{Promise:X}),g(X,B,!1,!0),m(B),i=l(B),s({target:B,stat:!0,forced:Q},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),s({target:B,stat:!0,forced:c||Q},{resolve:function(e){return C(c&&this===i?X:this,e)}}),s({target:B,stat:!0,forced:ee},{all:function(e){var t=this,r=W(t),n=r.resolve,a=r.reject,i=P((function(){var r=y(t.resolve),i=[],o=0,s=1;k(e,(function(e){var c=o++,u=!1;i.push(void 0),s++,r.call(t,e).then((function(e){u||(u=!0,i[c]=e,--s||n(i))}),a)})),--s||n(i)}));return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=W(t),n=r.reject,a=P((function(){var a=y(t.resolve);k(e,(function(e){a.call(t,e).then(r.resolve,n)}))}));return a.error&&n(a.value),r.promise}})},(e,t,r)=>{var n=r(10);e.exports=n.Promise},(e,t,r)=>{var n=r(29);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},(e,t,r)=>{"use strict";var n=r(42),a=r(27),i=r(56),o=r(12),s=i("species");e.exports=function(e){var t=n(e),r=a.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},e=>{e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},(e,t,r)=>{var n=r(56)("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},(e,t,r)=>{var n=r(28),a=r(78),i=r(56)("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||null==(r=n(o)[i])?t:a(r)}},(e,t,r)=>{var n,a,i,o=r(10),s=r(13),c=r(77),u=r(64),l=r(25),f=r(96),h=r(97),d=o.location,p=o.setImmediate,g=o.clearImmediate,m=o.process,v=o.MessageChannel,y=o.Dispatch,b=0,w={},k="onreadystatechange",S=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){S(e)}},A=function(e){S(e.data)},O=function(e){o.postMessage(e+"",d.protocol+"//"+d.host)};p&&g||(p=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},g=function(e){delete w[e]},h?n=function(e){m.nextTick(x(e))}:y&&y.now?n=function(e){y.now(x(e))}:v&&!f?(i=(a=new v).port2,a.port1.onmessage=A,n=c(i.postMessage,i,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&d&&"file:"!==d.protocol&&!s(O)?(n=O,o.addEventListener("message",A,!1)):n=k in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),S(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:p,clear:g}},(e,t,r)=>{var n=r(59);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},(e,t,r)=>{var n=r(18),a=r(10);e.exports="process"==n(a.process)},(e,t,r)=>{var n,a,i,o,s,c,u,l,f=r(10),h=r(11).f,d=r(95).set,p=r(96),g=r(99),m=r(97),v=f.MutationObserver||f.WebKitMutationObserver,y=f.document,b=f.process,w=f.Promise,k=h(f,"queueMicrotask"),S=k&&k.value;S||(n=function(){var e,t;for(m&&(e=b.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(e){throw a?o():i=void 0,e}}i=void 0,e&&e.enter()},p||m||g||!v||!y?w&&w.resolve?((u=w.resolve(void 0)).constructor=w,l=u.then,o=function(){l.call(u,n)}):o=m?function(){b.nextTick(n)}:function(){d.call(f,n)}:(s=!0,c=y.createTextNode(""),new v(n).observe(c,{characterData:!0}),o=function(){c.data=s=!s})),e.exports=S||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},(e,t,r)=>{var n=r(59);e.exports=/web0s(?!.*chrome)/i.test(n)},(e,t,r)=>{var n=r(28),a=r(21),i=r(101);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},(e,t,r)=>{"use strict";var n=r(78),a=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new a(e)}},(e,t,r)=>{var n=r(10);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},e=>{e.exports="object"==typeof window},(e,t,r)=>{"use strict";var n=r(9),a=r(78),i=r(101),o=r(103),s=r(75);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,c=r.reject,u=o((function(){var r=a(t.resolve),i=[],o=0,c=1;s(e,(function(e){var a=o++,s=!1;i.push(void 0),c++,r.call(t,e).then((function(e){s||(s=!0,i[a]={status:"fulfilled",value:e},--c||n(i))}),(function(e){s||(s=!0,i[a]={status:"rejected",reason:e},--c||n(i))}))})),--c||n(i)}));return u.error&&c(u.value),r.promise}})},(e,t,r)=>{"use strict";var n=r(9),a=r(78),i=r(42),o=r(101),s=r(103),c=r(75),u="No one promise resolved";n({target:"Promise",stat:!0},{any:function(e){var t=this,r=o.f(t),n=r.resolve,l=r.reject,f=s((function(){var r=a(t.resolve),o=[],s=0,f=1,h=!1;c(e,(function(e){var a=s++,c=!1;o.push(void 0),f++,r.call(t,e).then((function(e){c||h||(h=!0,n(e))}),(function(e){c||h||(c=!0,o[a]=e,--f||l(new(i("AggregateError"))(o,u)))}))})),--f||l(new(i("AggregateError"))(o,u))}));return f.error&&l(f.value),r.promise}})},(e,t,r)=>{"use strict";var n=r(9),a=r(37),i=r(89),o=r(13),s=r(42),c=r(94),u=r(100),l=r(29);if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&o((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),r="function"==typeof e;return this.then(r?function(r){return u(t,e()).then((function(){return r}))}:e,r?function(r){return u(t,e()).then((function(){throw r}))}:e)}}),!a&&"function"==typeof i){var f=s("Promise").prototype.finally;i.prototype.finally!==f&&l(i.prototype,"finally",f,{unsafe:!0})}},(e,t,r)=>{"use strict";var n=r(109).charAt,a=r(33),i=r(66),o="String Iterator",s=a.set,c=a.getterFor(o);i(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=c(this),r=t.string,a=t.index;return a>=r.length?{value:void 0,done:!0}:(e=n(r,a),t.index+=e.length,{value:e,done:!1})}))},(e,t,r)=>{var n=r(48),a=r(19),i=function(e){return function(t,r){var i,o,s=String(a(t)),c=n(r),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):i:e?s.slice(c,c+2):o-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},(e,t,r)=>{var n=r(10),a=r(111),i=r(54),o=r(26),s=r(56),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var f in a){var h=n[f],d=h&&h.prototype;if(d){if(d[c]!==l)try{o(d,c,l)}catch(e){d[c]=l}if(d[u]||o(d,u,f),a[f])for(var p in i)if(d[p]!==i[p])try{o(d,p,i[p])}catch(e){d[p]=i[p]}}}},e=>{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){!function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function n(){}function a(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:void 0}var i=a();function o(e){return"object"==typeof e&&null!==e||"function"==typeof e}var s=n,c=Promise,u=Promise.prototype.then,l=Promise.resolve.bind(c),f=Promise.reject.bind(c);function h(e){return new c(e)}function d(e){return l(e)}function p(e){return f(e)}function g(e,t,r){return u.call(e,t,r)}function m(e,t,r){g(g(e,t,r),void 0,s)}function v(e,t){m(e,t)}function y(e,t){m(e,void 0,t)}function b(e,t,r){return g(e,t,r)}function w(e){g(e,void 0,s)}var k=function(){var e=i&&i.queueMicrotask;if("function"==typeof e)return e;var t=d(void 0);return function(e){return g(t,e)}}();function S(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function x(e,t,r){try{return d(S(e,t,r))}catch(e){return p(e)}}var A=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:!1,configurable:!0}),e.prototype.push=function(e){var t=this._back,r=t;t._elements.length===A-1&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size},e.prototype.shift=function(){var e=this._front,t=e,r=this._cursor,n=r+1,a=e._elements,i=a[r];return n===A&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),a[r]=void 0,i},e.prototype.forEach=function(e){for(var t=this._cursor,r=this._front,n=r._elements;!(t===n.length&&void 0===r._next||t===n.length&&(t=0,0===(n=(r=r._next)._elements).length));)e(n[t]),++t},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function C(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?_(e):"closed"===t._state?E(e):I(e,t._storedError)}function T(e,t){return yn(e._ownerReadableStream,t)}function F(e){"readable"===e._ownerReadableStream._state?j(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):R(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function P(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function _(e){e._closedPromise=h((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function I(e,t){_(e),j(e,t)}function E(e){_(e),M(e)}function j(e,t){void 0!==e._closedPromise_reject&&(w(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function R(e,t){I(e,t)}function M(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}var N=t("[[AbortSteps]]"),B=t("[[ErrorSteps]]"),D=t("[[CancelSteps]]"),L=t("[[PullSteps]]"),U=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},q=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function X(e){return"object"==typeof e||"function"==typeof e}function H(e,t){if(void 0!==e&&!X(e))throw new TypeError(t+" is not an object.")}function $(e,t){if("function"!=typeof e)throw new TypeError(t+" is not a function.")}function z(e){return"object"==typeof e&&null!==e||"function"==typeof e}function G(e,t){if(!z(e))throw new TypeError(t+" is not an object.")}function W(e,t,r){if(void 0===e)throw new TypeError("Parameter "+t+" is required in '"+r+"'.")}function V(e,t,r){if(void 0===e)throw new TypeError(t+" is required in '"+r+"'.")}function K(e){return Number(e)}function Y(e){return 0===e?0:e}function J(e){return Y(q(e))}function Z(e,t){var r=0,n=Number.MAX_SAFE_INTEGER,a=Number(e);if(a=Y(a),!U(a))throw new TypeError(t+" is not a finite number");if((a=J(a))<r||a>n)throw new TypeError(t+" is outside the accepted range of "+r+" to "+n+", inclusive");return U(a)&&0!==a?a:0}function Q(e,t){if(!mn(e))throw new TypeError(t+" is not a ReadableStream.")}function ee(e){return new se(e)}function te(e,t){e._reader._readRequests.push(t)}function re(e,t,r){var n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function ne(e){return e._reader._readRequests.length}function ae(e){var t=e._reader;return void 0!==t&&!!ce(t)}var ie,oe,se=function(){function e(e){if(W(e,1,"ReadableStreamDefaultReader"),Q(e,"First parameter"),vn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");C(this,e),this._readRequests=new O}return Object.defineProperty(e.prototype,"closed",{get:function(){return ce(this)?this._closedPromise:p(le("closed"))},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),ce(this)?void 0===this._ownerReadableStream?p(P("cancel")):T(this,e):p(le("cancel"))},e.prototype.read=function(){if(!ce(this))return p(le("read"));if(void 0===this._ownerReadableStream)return p(P("read from"));var e,t,r=h((function(r,n){e=r,t=n}));return ue(this,{_chunkSteps:function(t){return e({value:t,done:!1})},_closeSteps:function(){return e({value:void 0,done:!0})},_errorSteps:function(e){return t(e)}}),r},e.prototype.releaseLock=function(){if(!ce(this))throw le("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");F(this)}},e}();function ce(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function ue(e,t){var r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[L](t)}function le(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}Object.defineProperties(se.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(se.prototype,t.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof t.asyncIterator&&((ie={})[t.asyncIterator]=function(){return this},oe=ie,Object.defineProperty(oe,t.asyncIterator,{enumerable:!1}));var fe=function(){function e(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}return e.prototype.next=function(){var e=this,t=function(){return e._nextSteps()};return this._ongoingPromise=this._ongoingPromise?b(this._ongoingPromise,t,t):t(),this._ongoingPromise},e.prototype.return=function(e){var t=this,r=function(){return t._returnSteps(e)};return this._ongoingPromise?b(this._ongoingPromise,r,r):r()},e.prototype._nextSteps=function(){var e=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var t,r,n=this._reader;if(void 0===n._ownerReadableStream)return p(P("iterate"));var a=h((function(e,n){t=e,r=n}));return ue(n,{_chunkSteps:function(r){e._ongoingPromise=void 0,k((function(){return t({value:r,done:!1})}))},_closeSteps:function(){e._ongoingPromise=void 0,e._isFinished=!0,F(n),t({value:void 0,done:!0})},_errorSteps:function(t){e._ongoingPromise=void 0,e._isFinished=!0,F(n),r(t)}}),a},e.prototype._returnSteps=function(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;var t=this._reader;if(void 0===t._ownerReadableStream)return p(P("finish iterating"));if(!this._preventCancel){var r=T(t,e);return F(t),b(r,(function(){return{value:e,done:!0}}))}return F(t),d({value:e,done:!0})},e}(),he={next:function(){return pe(this)?this._asyncIteratorImpl.next():p(ge("next"))},return:function(e){return pe(this)?this._asyncIteratorImpl.return(e):p(ge("return"))}};function de(e,t){var r=ee(e),n=new fe(r,t),a=Object.create(he);return a._asyncIteratorImpl=n,a}function pe(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl")}function ge(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}void 0!==oe&&Object.setPrototypeOf(he,oe);var me=Number.isNaN||function(e){return e!=e};function ve(e){return!!ye(e)&&e!==1/0}function ye(e){return!("number"!=typeof e||me(e)||e<0)}function be(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function we(e,t,r){if(!ve(r=Number(r)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function ke(e){return e._queue.peek().value}function Se(e){e._queue=new O,e._queueTotalSize=0}function xe(e){return e.slice()}function Ae(e,t,r,n,a){new Uint8Array(e).set(new Uint8Array(r,n,a),t)}function Oe(e){return e}function Ce(e){return!1}var Te=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!_e(this))throw nt("view");return this._view},enumerable:!1,configurable:!0}),e.prototype.respond=function(e){if(!_e(this))throw nt("respond");if(W(e,1,"respond"),e=Z(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");Ce(this._view.buffer),Ze(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!_e(this))throw nt("respondWithNewView");if(W(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");Qe(this._associatedReadableByteStreamController,e)},e}();Object.defineProperties(Te.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Te.prototype,t.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Fe=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!Pe(this))throw at("byobRequest");if(null===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),r=Object.create(Te.prototype);rt(r,this,t),this._byobRequest=r}return this._byobRequest},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Pe(this))throw at("desiredSize");return Je(this)},enumerable:!1,configurable:!0}),e.prototype.close=function(){if(!Pe(this))throw at("close");if(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");Ve(this)},e.prototype.enqueue=function(e){if(!Pe(this))throw at("enqueue");if(W(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var 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");Ke(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Pe(this))throw at("error");Ye(this,e)},e.prototype[D]=function(e){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0),Se(this);var t=this._cancelAlgorithm(e);return We(this),t},e.prototype[L]=function(e){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var r=this._queue.shift();this._queueTotalSize-=r.byteLength,De(this);var n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);e._chunkSteps(n)}else{var a=this._autoAllocateChunkSize;if(void 0!==a){var i=void 0;try{i=new ArrayBuffer(a)}catch(t){return void e._errorSteps(t)}var o={buffer:i,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}te(t,e),Ie(this)}},e}();function Pe(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function _e(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function Ie(e){Ge(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,m(e._pullAlgorithm(),(function(){e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Ie(e))}),(function(t){Ye(e,t)}))))}function Ee(e){Le(e),e._pendingPullIntos=new O}function je(e,t){var r=!1;"closed"===e._state&&(r=!0);var n=Re(t);"default"===t.readerType?re(e,n,r):st(e,n,r)}function Re(e){var t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Me(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function Ne(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,a=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+a,o=i-i%r,s=a,c=!1;o>n&&(s=o-t.bytesFilled,c=!0);for(var u=e._queue;s>0;){var l=u.peek(),f=Math.min(s,l.byteLength),h=t.byteOffset+t.bytesFilled;Ae(t.buffer,h,l.buffer,l.byteOffset,f),l.byteLength===f?u.shift():(l.byteOffset+=f,l.byteLength-=f),e._queueTotalSize-=f,Be(e,f,t),s-=f}return c}function Be(e,t,r){Le(e),r.bytesFilled+=t}function De(e){0===e._queueTotalSize&&e._closeRequested?(We(e),bn(e._controlledReadableByteStream)):Ie(e)}function Le(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function Ue(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();Ne(e,t)&&(ze(e),je(e._controlledReadableByteStream,t))}}function qe(e,t,r){var n=e._controlledReadableByteStream,a=1;t.constructor!==DataView&&(a=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,o={buffer:Oe(t.buffer),byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:a,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),void ot(n,r);if("closed"!==n._state){if(e._queueTotalSize>0){if(Ne(e,o)){var s=Re(o);return De(e),void r._chunkSteps(s)}if(e._closeRequested){var c=new TypeError("Insufficient bytes to fill elements in the given buffer");return Ye(e,c),void r._errorSteps(c)}}e._pendingPullIntos.push(o),ot(n,r),Ie(e)}else{var u=new i(o.buffer,o.byteOffset,0);r._closeSteps(u)}}function Xe(e,t){t.buffer=Oe(t.buffer);var r=e._controlledReadableByteStream;if(ut(r))for(;ct(r)>0;)je(r,ze(e))}function He(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(Be(e,t,r),!(r.bytesFilled<r.elementSize)){ze(e);var n=r.bytesFilled%r.elementSize;if(n>0){var a=r.byteOffset+r.bytesFilled,i=r.buffer.slice(a-n,a);Me(e,i,0,i.byteLength)}r.buffer=Oe(r.buffer),r.bytesFilled-=n,je(e._controlledReadableByteStream,r),Ue(e)}}function $e(e,t){var r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");Xe(e,r)}else He(e,t,r);Ie(e)}function ze(e){var t=e._pendingPullIntos.shift();return Le(e),t}function Ge(e){var t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&(!!(ae(t)&&ne(t)>0)||!!(ut(t)&&ct(t)>0)||Je(e)>0)}function We(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ve(e){var t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Ye(e,r),r}We(e),bn(t)}}function Ke(e,t){var r=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===r._state){var n=t.buffer,a=t.byteOffset,i=t.byteLength,o=Oe(n);ae(r)?0===ne(r)?Me(e,o,a,i):re(r,new Uint8Array(o,a,i),!1):ut(r)?(Me(e,o,a,i),Ue(e)):Me(e,o,a,i),Ie(e)}}function Ye(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(Ee(e),Se(e),We(e),wn(r,t))}function Je(e){var t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Ze(e,t){if(!ve(t=Number(t)))throw new RangeError("bytesWritten must be a finite");$e(e,t)}function Qe(e,t){var r=e._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,$e(e,t.byteLength)}function et(e,t,r,n,a,i,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Se(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=a,t._autoAllocateChunkSize=o,t._pendingPullIntos=new O,e._readableStreamController=t,m(d(r()),(function(){t._started=!0,Ie(t)}),(function(e){Ye(t,e)}))}function tt(e,t,r){var n=Object.create(Fe.prototype),a=function(){},i=function(){return d(void 0)},o=function(){return d(void 0)};void 0!==t.start&&(a=function(){return t.start(n)}),void 0!==t.pull&&(i=function(){return t.pull(n)}),void 0!==t.cancel&&(o=function(e){return t.cancel(e)});var s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");et(e,n,a,i,o,r,s)}function rt(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function nt(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function at(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function it(e){return new lt(e)}function ot(e,t){e._reader._readIntoRequests.push(t)}function st(e,t,r){var n=e._reader._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}function ct(e){return e._reader._readIntoRequests.length}function ut(e){var t=e._reader;return void 0!==t&&!!ft(t)}Object.defineProperties(Fe.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Fe.prototype,t.toStringTag,{value:"ReadableByteStreamController",configurable:!0});var lt=function(){function e(e){if(W(e,1,"ReadableStreamBYOBReader"),Q(e,"First parameter"),vn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Pe(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");C(this,e),this._readIntoRequests=new O}return Object.defineProperty(e.prototype,"closed",{get:function(){return ft(this)?this._closedPromise:p(dt("closed"))},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),ft(this)?void 0===this._ownerReadableStream?p(P("cancel")):T(this,e):p(dt("cancel"))},e.prototype.read=function(e){if(!ft(this))return p(dt("read"));if(!ArrayBuffer.isView(e))return p(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return p(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return p(new TypeError("view's buffer must have non-zero byteLength"));if(void 0===this._ownerReadableStream)return p(P("read from"));var t,r,n=h((function(e,n){t=e,r=n}));return ht(this,e,{_chunkSteps:function(e){return t({value:e,done:!1})},_closeSteps:function(e){return t({value:e,done:!0})},_errorSteps:function(e){return r(e)}}),n},e.prototype.releaseLock=function(){if(!ft(this))throw dt("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");F(this)}},e}();function ft(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function ht(e,t,r){var n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):qe(n._readableStreamController,t,r)}function dt(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function pt(e,t){var r=e.highWaterMark;if(void 0===r)return t;if(me(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function gt(e){var t=e.size;return t||function(){return 1}}function mt(e,t){H(e,t);var r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:K(r),size:void 0===n?void 0:vt(n,t+" has member 'size' that")}}function vt(e,t){return $(e,t),function(t){return K(e(t))}}function yt(e,t){H(e,t);var r=null==e?void 0:e.abort,n=null==e?void 0:e.close,a=null==e?void 0:e.start,i=null==e?void 0:e.type,o=null==e?void 0:e.write;return{abort:void 0===r?void 0:bt(r,e,t+" has member 'abort' that"),close:void 0===n?void 0:wt(n,e,t+" has member 'close' that"),start:void 0===a?void 0:kt(a,e,t+" has member 'start' that"),write:void 0===o?void 0:St(o,e,t+" has member 'write' that"),type:i}}function bt(e,t,r){return $(e,r),function(r){return x(e,t,[r])}}function wt(e,t,r){return $(e,r),function(){return x(e,t,[])}}function kt(e,t,r){return $(e,r),function(r){return S(e,t,[r])}}function St(e,t,r){return $(e,r),function(r,n){return x(e,t,[r,n])}}function xt(e,t){if(!Ft(e))throw new TypeError(t+" is not a WritableStream.")}Object.defineProperties(lt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(lt.prototype,t.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});var At=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),void 0===e?e=null:G(e,"First parameter");var r=mt(t,"Second parameter"),n=yt(e,"First parameter");if(Tt(this),void 0!==n.type)throw new RangeError("Invalid type is specified");var a=gt(r);or(this,n,pt(r,1),a)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!Ft(this))throw yr("locked");return Pt(this)},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){return void 0===e&&(e=void 0),Ft(this)?Pt(this)?p(new TypeError("Cannot abort a stream that already has a writer")):_t(this,e):p(yr("abort"))},e.prototype.close=function(){return Ft(this)?Pt(this)?p(new TypeError("Cannot close a stream that already has a writer")):Ut(this)?p(new TypeError("Cannot close an already-closing stream")):It(this):p(yr("close"))},e.prototype.getWriter=function(){if(!Ft(this))throw yr("getWriter");return Ot(this)},e}();function Ot(e){return new Gt(e)}function Ct(e,t,r,n,a,i){void 0===a&&(a=1),void 0===i&&(i=function(){return 1});var o=Object.create(At.prototype);return Tt(o),ir(o,Object.create(nr.prototype),e,t,r,n,a,i),o}function Tt(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 Ft(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function Pt(e){return void 0!==e._writer}function _t(e,t){var r=e._state;if("closed"===r||"errored"===r)return d(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var n=!1;"erroring"===r&&(n=!0,t=void 0);var a=h((function(r,a){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:a,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=a,n||Rt(e,t),a}function It(e){var t=e._state;if("closed"===t||"errored"===t)return p(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=h((function(t,r){var n={_resolve:t,_reject:r};e._closeRequest=n})),n=e._writer;return void 0!==n&&e._backpressure&&"writable"===t&&jr(n),cr(e._writableStreamController),r}function Et(e){return h((function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)}))}function jt(e,t){"writable"!==e._state?Mt(e):Rt(e,t)}function Rt(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;void 0!==n&&Zt(n,t),!qt(e)&&r._started&&Mt(e)}function Mt(e){e._state="errored",e._writableStreamController[B]();var t=e._storedError;if(e._writeRequests.forEach((function(e){e._reject(t)})),e._writeRequests=new O,void 0!==e._pendingAbortRequest){var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void $t(e);m(e._writableStreamController[N](r._reason),(function(){r._resolve(),$t(e)}),(function(t){r._reject(t),$t(e)}))}else $t(e)}function Nt(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Bt(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,jt(e,t)}function Dt(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var t=e._writer;void 0!==t&&Cr(t)}function Lt(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),jt(e,t)}function Ut(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function qt(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function Xt(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Ht(e){e._inFlightWriteRequest=e._writeRequests.shift()}function $t(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&Ar(t,e._storedError)}function zt(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(t?Ir(r):jr(r)),e._backpressure=t}Object.defineProperties(At.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(At.prototype,t.toStringTag,{value:"WritableStream",configurable:!0});var Gt=function(){function e(e){if(W(e,1,"WritableStreamDefaultWriter"),xt(e,"First parameter"),Pt(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)!Ut(e)&&e._backpressure?Tr(this):Pr(this),kr(this);else if("erroring"===t)Fr(this,e._storedError),kr(this);else if("closed"===t)Pr(this),xr(this);else{var r=e._storedError;Fr(this,r),Sr(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return Wt(this)?this._closedPromise:p(br("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Wt(this))throw br("desiredSize");if(void 0===this._ownerWritableStream)throw wr("desiredSize");return Qt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return Wt(this)?this._readyPromise:p(br("ready"))},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){return void 0===e&&(e=void 0),Wt(this)?void 0===this._ownerWritableStream?p(wr("abort")):Vt(this,e):p(br("abort"))},e.prototype.close=function(){if(!Wt(this))return p(br("close"));var e=this._ownerWritableStream;return void 0===e?p(wr("close")):Ut(e)?p(new TypeError("Cannot close an already-closing stream")):Kt(this)},e.prototype.releaseLock=function(){if(!Wt(this))throw br("releaseLock");void 0!==this._ownerWritableStream&&er(this)},e.prototype.write=function(e){return void 0===e&&(e=void 0),Wt(this)?void 0===this._ownerWritableStream?p(wr("write to")):tr(this,e):p(br("write"))},e}();function Wt(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function Vt(e,t){return _t(e._ownerWritableStream,t)}function Kt(e){return It(e._ownerWritableStream)}function Yt(e){var t=e._ownerWritableStream,r=t._state;return Ut(t)||"closed"===r?d(void 0):"errored"===r?p(t._storedError):Kt(e)}function Jt(e,t){"pending"===e._closedPromiseState?Ar(e,t):Or(e,t)}function Zt(e,t){"pending"===e._readyPromiseState?_r(e,t):Er(e,t)}function Qt(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:lr(t._writableStreamController)}function er(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Zt(e,r),Jt(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function tr(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,a=ur(n,t);if(r!==e._ownerWritableStream)return p(wr("write to"));var i=r._state;if("errored"===i)return p(r._storedError);if(Ut(r)||"closed"===i)return p(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return p(r._storedError);var o=Et(r);return fr(n,t,a),o}Object.defineProperties(Gt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Gt.prototype,t.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});var rr={},nr=function(){function e(){throw new TypeError("Illegal constructor")}return e.prototype.error=function(e){if(void 0===e&&(e=void 0),!ar(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&vr(this,e)},e.prototype[N]=function(e){var t=this._abortAlgorithm(e);return sr(this),t},e.prototype[B]=function(){Se(this)},e}();function ar(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function ir(e,t,r,n,a,i,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Se(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=n,t._closeAlgorithm=a,t._abortAlgorithm=i;var c=mr(t);zt(e,c),m(d(r()),(function(){t._started=!0,hr(t)}),(function(r){t._started=!0,jt(e,r)}))}function or(e,t,r,n){var a=Object.create(nr.prototype),i=function(){},o=function(){return d(void 0)},s=function(){return d(void 0)},c=function(){return d(void 0)};void 0!==t.start&&(i=function(){return t.start(a)}),void 0!==t.write&&(o=function(e){return t.write(e,a)}),void 0!==t.close&&(s=function(){return t.close()}),void 0!==t.abort&&(c=function(e){return t.abort(e)}),ir(e,a,i,o,s,c,r,n)}function sr(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function cr(e){we(e,rr,0),hr(e)}function ur(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return dr(e,t),1}}function lr(e){return e._strategyHWM-e._queueTotalSize}function fr(e,t,r){try{we(e,t,r)}catch(t){return void dr(e,t)}var n=e._controlledWritableStream;Ut(n)||"writable"!==n._state||zt(n,mr(e)),hr(e)}function hr(e){var t=e._controlledWritableStream;if(e._started&&void 0===t._inFlightWriteRequest)if("erroring"!==t._state){if(0!==e._queue.length){var r=ke(e);r===rr?pr(e):gr(e,r)}}else Mt(t)}function dr(e,t){"writable"===e._controlledWritableStream._state&&vr(e,t)}function pr(e){var t=e._controlledWritableStream;Xt(t),be(e);var r=e._closeAlgorithm();sr(e),m(r,(function(){Dt(t)}),(function(e){Lt(t,e)}))}function gr(e,t){var r=e._controlledWritableStream;Ht(r),m(e._writeAlgorithm(t),(function(){Nt(r);var t=r._state;if(be(e),!Ut(r)&&"writable"===t){var n=mr(e);zt(r,n)}hr(e)}),(function(t){"writable"===r._state&&sr(e),Bt(r,t)}))}function mr(e){return lr(e)<=0}function vr(e,t){var r=e._controlledWritableStream;sr(e),Rt(r,t)}function yr(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function br(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function wr(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function kr(e){e._closedPromise=h((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function Sr(e,t){kr(e),Ar(e,t)}function xr(e){kr(e),Cr(e)}function Ar(e,t){void 0!==e._closedPromise_reject&&(w(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function Or(e,t){Sr(e,t)}function Cr(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function Tr(e){e._readyPromise=h((function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function Fr(e,t){Tr(e),_r(e,t)}function Pr(e){Tr(e),jr(e)}function _r(e,t){void 0!==e._readyPromise_reject&&(w(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function Ir(e){Tr(e)}function Er(e,t){Fr(e,t)}function jr(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}function Rr(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}Object.defineProperties(nr.prototype,{error:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(nr.prototype,t.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});var Mr="undefined"!=typeof DOMException?DOMException:void 0;function Nr(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}function Br(){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 Dr=Nr(Mr)?Mr:Br();function Lr(e,t,r,a,i,o){var s=ee(e),c=Ot(t);e._disturbed=!0;var u=!1,l=d(void 0);return h((function(f,p){var b;if(void 0!==o){if(b=function(){var r=new Dr("Aborted","AbortError"),n=[];a||n.push((function(){return"writable"===t._state?_t(t,r):d(void 0)})),i||n.push((function(){return"readable"===e._state?yn(e,r):d(void 0)})),T((function(){return Promise.all(n.map((function(e){return e()})))}),!0,r)},o.aborted)return void b();o.addEventListener("abort",b)}function k(){return h((function(e,t){function r(n){n?e():g(S(),r,t)}r(!1)}))}function S(){return u?d(!0):g(c._readyPromise,(function(){return h((function(e,t){ue(s,{_chunkSteps:function(t){l=g(tr(c,t),void 0,n),e(!1)},_closeSteps:function(){return e(!0)},_errorSteps:t})}))}))}if(O(e,s._closedPromise,(function(e){a?P(!0,e):T((function(){return _t(t,e)}),!0,e)})),O(t,c._closedPromise,(function(t){i?P(!0,t):T((function(){return yn(e,t)}),!0,t)})),C(e,s._closedPromise,(function(){r?P():T((function(){return Yt(c)}))})),Ut(t)||"closed"===t._state){var x=new TypeError("the destination writable stream closed before all data could be piped to it");i?P(!0,x):T((function(){return yn(e,x)}),!0,x)}function A(){var e=l;return g(l,(function(){return e!==l?A():void 0}))}function O(e,t,r){"errored"===e._state?r(e._storedError):y(t,r)}function C(e,t,r){"closed"===e._state?r():v(t,r)}function T(e,r,n){function a(){m(e(),(function(){return _(r,n)}),(function(e){return _(!0,e)}))}u||(u=!0,"writable"!==t._state||Ut(t)?a():v(A(),a))}function P(e,r){u||(u=!0,"writable"!==t._state||Ut(t)?_(e,r):v(A(),(function(){return _(e,r)})))}function _(e,t){er(c),F(s),void 0!==o&&o.removeEventListener("abort",b),e?p(t):f(void 0)}w(k())}))}var Ur=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!qr(this))throw Qr("desiredSize");return Vr(this)},enumerable:!1,configurable:!0}),e.prototype.close=function(){if(!qr(this))throw Qr("close");if(!Yr(this))throw new TypeError("The stream is not in a state that permits close");zr(this)},e.prototype.enqueue=function(e){if(void 0===e&&(e=void 0),!qr(this))throw Qr("enqueue");if(!Yr(this))throw new TypeError("The stream is not in a state that permits enqueue");return Gr(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!qr(this))throw Qr("error");Wr(this,e)},e.prototype[D]=function(e){Se(this);var t=this._cancelAlgorithm(e);return $r(this),t},e.prototype[L]=function(e){var t=this._controlledReadableStream;if(this._queue.length>0){var r=be(this);this._closeRequested&&0===this._queue.length?($r(this),bn(t)):Xr(this),e._chunkSteps(r)}else te(t,e),Xr(this)},e}();function qr(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Xr(e){Hr(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,m(e._pullAlgorithm(),(function(){e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Xr(e))}),(function(t){Wr(e,t)}))))}function Hr(e){var t=e._controlledReadableStream;return!!Yr(e)&&!!e._started&&(!!(vn(t)&&ne(t)>0)||Vr(e)>0)}function $r(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function zr(e){if(Yr(e)){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&($r(e),bn(t))}}function Gr(e,t){if(Yr(e)){var r=e._controlledReadableStream;if(vn(r)&&ne(r)>0)re(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(t){throw Wr(e,t),t}try{we(e,t,n)}catch(t){throw Wr(e,t),t}}Xr(e)}}function Wr(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(Se(e),$r(e),wn(r,t))}function Vr(e){var t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Kr(e){return!Hr(e)}function Yr(e){var t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function Jr(e,t,r,n,a,i,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Se(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=a,e._readableStreamController=t,m(d(r()),(function(){t._started=!0,Xr(t)}),(function(e){Wr(t,e)}))}function Zr(e,t,r,n){var a=Object.create(Ur.prototype),i=function(){},o=function(){return d(void 0)},s=function(){return d(void 0)};void 0!==t.start&&(i=function(){return t.start(a)}),void 0!==t.pull&&(o=function(){return t.pull(a)}),void 0!==t.cancel&&(s=function(e){return t.cancel(e)}),Jr(e,a,i,o,s,r,n)}function Qr(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function en(e,t){var r,n,a,i,o,s=ee(e),c=!1,u=!1,l=!1,f=h((function(e){o=e}));function p(){return c||(c=!0,ue(s,{_chunkSteps:function(e){k((function(){c=!1;var t=e,r=e;u||Gr(a._readableStreamController,t),l||Gr(i._readableStreamController,r)}))},_closeSteps:function(){c=!1,u||zr(a._readableStreamController),l||zr(i._readableStreamController),u&&l||o(void 0)},_errorSteps:function(){c=!1}})),d(void 0)}function g(t){if(u=!0,r=t,l){var a=xe([r,n]),i=yn(e,a);o(i)}return f}function m(t){if(l=!0,n=t,u){var a=xe([r,n]),i=yn(e,a);o(i)}return f}function v(){}return a=pn(v,p,g),i=pn(v,p,m),y(s._closedPromise,(function(e){Wr(a._readableStreamController,e),Wr(i._readableStreamController,e),u&&l||o(void 0)})),[a,i]}function tn(e,t){H(e,t);var r=e,n=null==r?void 0:r.autoAllocateChunkSize,a=null==r?void 0:r.cancel,i=null==r?void 0:r.pull,o=null==r?void 0:r.start,s=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===n?void 0:Z(n,t+" has member 'autoAllocateChunkSize' that"),cancel:void 0===a?void 0:rn(a,r,t+" has member 'cancel' that"),pull:void 0===i?void 0:nn(i,r,t+" has member 'pull' that"),start:void 0===o?void 0:an(o,r,t+" has member 'start' that"),type:void 0===s?void 0:on(s,t+" has member 'type' that")}}function rn(e,t,r){return $(e,r),function(r){return x(e,t,[r])}}function nn(e,t,r){return $(e,r),function(r){return x(e,t,[r])}}function an(e,t,r){return $(e,r),function(r){return S(e,t,[r])}}function on(e,t){if("bytes"!=(e=""+e))throw new TypeError(t+" '"+e+"' is not a valid enumeration value for ReadableStreamType");return e}function sn(e,t){H(e,t);var r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:cn(r,t+" has member 'mode' that")}}function cn(e,t){if("byob"!=(e=""+e))throw new TypeError(t+" '"+e+"' is not a valid enumeration value for ReadableStreamReaderMode");return e}function un(e,t){H(e,t);var r=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(r)}}function ln(e,t){H(e,t);var r=null==e?void 0:e.preventAbort,n=null==e?void 0:e.preventCancel,a=null==e?void 0:e.preventClose,i=null==e?void 0:e.signal;return void 0!==i&&fn(i,t+" has member 'signal' that"),{preventAbort:Boolean(r),preventCancel:Boolean(n),preventClose:Boolean(a),signal:i}}function fn(e,t){if(!Rr(e))throw new TypeError(t+" is not an AbortSignal.")}function hn(e,t){H(e,t);var r=null==e?void 0:e.readable;V(r,"readable","ReadableWritablePair"),Q(r,t+" has member 'readable' that");var n=null==e?void 0:e.writable;return V(n,"writable","ReadableWritablePair"),xt(n,t+" has member 'writable' that"),{readable:r,writable:n}}Object.defineProperties(Ur.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Ur.prototype,t.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});var dn=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),void 0===e?e=null:G(e,"First parameter");var r=mt(t,"Second parameter"),n=tn(e,"First parameter");if(gn(this),"bytes"===n.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");tt(this,n,pt(r,0))}else{var a=gt(r);Zr(this,n,pt(r,1),a)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!mn(this))throw kn("locked");return vn(this)},enumerable:!1,configurable:!0}),e.prototype.cancel=function(e){return void 0===e&&(e=void 0),mn(this)?vn(this)?p(new TypeError("Cannot cancel a stream that already has a reader")):yn(this,e):p(kn("cancel"))},e.prototype.getReader=function(e){if(void 0===e&&(e=void 0),!mn(this))throw kn("getReader");return void 0===sn(e,"First parameter").mode?ee(this):it(this)},e.prototype.pipeThrough=function(e,t){if(void 0===t&&(t={}),!mn(this))throw kn("pipeThrough");W(e,1,"pipeThrough");var r=hn(e,"First parameter"),n=ln(t,"Second parameter");if(vn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Pt(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return w(Lr(this,r.writable,n.preventClose,n.preventAbort,n.preventCancel,n.signal)),r.readable},e.prototype.pipeTo=function(e,t){if(void 0===t&&(t={}),!mn(this))return p(kn("pipeTo"));if(void 0===e)return p("Parameter 1 is required in 'pipeTo'.");if(!Ft(e))return p(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var r;try{r=ln(t,"Second parameter")}catch(e){return p(e)}return vn(this)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Pt(e)?p(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Lr(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)},e.prototype.tee=function(){if(!mn(this))throw kn("tee");return xe(en(this))},e.prototype.values=function(e){if(void 0===e&&(e=void 0),!mn(this))throw kn("values");return de(this,un(e,"First parameter").preventCancel)},e}();function pn(e,t,r,n,a){void 0===n&&(n=1),void 0===a&&(a=function(){return 1});var i=Object.create(dn.prototype);return gn(i),Jr(i,Object.create(Ur.prototype),e,t,r,n,a),i}function gn(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function mn(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function vn(e){return void 0!==e._reader}function yn(e,t){return e._disturbed=!0,"closed"===e._state?d(void 0):"errored"===e._state?p(e._storedError):(bn(e),b(e._readableStreamController[D](t),n))}function bn(e){e._state="closed";var t=e._reader;void 0!==t&&(M(t),ce(t)&&(t._readRequests.forEach((function(e){e._closeSteps()})),t._readRequests=new O))}function wn(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(j(r,t),ce(r)?(r._readRequests.forEach((function(e){e._errorSteps(t)})),r._readRequests=new O):(r._readIntoRequests.forEach((function(e){e._errorSteps(t)})),r._readIntoRequests=new O))}function kn(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Sn(e,t){H(e,t);var r=null==e?void 0:e.highWaterMark;return V(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:K(r)}}Object.defineProperties(dn.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(dn.prototype,t.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof t.asyncIterator&&Object.defineProperty(dn.prototype,t.asyncIterator,{value:dn.prototype.values,writable:!0,configurable:!0});var xn=function(e){return e.byteLength},An=function(){function e(e){W(e,1,"ByteLengthQueuingStrategy"),e=Sn(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}return Object.defineProperty(e.prototype,"highWaterMark",{get:function(){if(!Cn(this))throw On("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(!Cn(this))throw On("size");return xn},enumerable:!1,configurable:!0}),e}();function On(e){return new TypeError("ByteLengthQueuingStrategy.prototype."+e+" can only be used on a ByteLengthQueuingStrategy")}function Cn(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")}Object.defineProperties(An.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(An.prototype,t.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});var Tn=function(){return 1},Fn=function(){function e(e){W(e,1,"CountQueuingStrategy"),e=Sn(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}return Object.defineProperty(e.prototype,"highWaterMark",{get:function(){if(!_n(this))throw Pn("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(!_n(this))throw Pn("size");return Tn},enumerable:!1,configurable:!0}),e}();function Pn(e){return new TypeError("CountQueuingStrategy.prototype."+e+" can only be used on a CountQueuingStrategy")}function _n(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")}function In(e,t){H(e,t);var r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,a=null==e?void 0:e.start,i=null==e?void 0:e.transform,o=null==e?void 0:e.writableType;return{flush:void 0===r?void 0:En(r,e,t+" has member 'flush' that"),readableType:n,start:void 0===a?void 0:jn(a,e,t+" has member 'start' that"),transform:void 0===i?void 0:Rn(i,e,t+" has member 'transform' that"),writableType:o}}function En(e,t,r){return $(e,r),function(r){return x(e,t,[r])}}function jn(e,t,r){return $(e,r),function(r){return S(e,t,[r])}}function Rn(e,t,r){return $(e,r),function(r,n){return x(e,t,[r,n])}}Object.defineProperties(Fn.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Fn.prototype,t.toStringTag,{value:"CountQueuingStrategy",configurable:!0});var Mn=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={}),void 0===e&&(e=null);var n=mt(t,"Second parameter"),a=mt(r,"Third parameter"),i=In(e,"First parameter");if(void 0!==i.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==i.writableType)throw new RangeError("Invalid writableType specified");var o,s=pt(a,0),c=gt(a),u=pt(n,1),l=gt(n);Nn(this,h((function(e){o=e})),u,l,s,c),$n(this,i),void 0!==i.start?o(i.start(this._transformStreamController)):o(void 0)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!Bn(this))throw ta("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!Bn(this))throw ta("writable");return this._writable},enumerable:!1,configurable:!0}),e}();function Nn(e,t,r,n,a,i){function o(){return t}function s(t){return Yn(e,t)}function c(t){return Jn(e,t)}function u(){return Zn(e)}function l(){return Qn(e)}function f(t){return Ln(e,t),d(void 0)}e._writable=Ct(o,s,u,c,r,n),e._readable=pn(o,l,f,a,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Un(e,!0),e._transformStreamController=void 0}function Bn(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Dn(e,t){Wr(e._readable._readableStreamController,t),Ln(e,t)}function Ln(e,t){zn(e._transformStreamController),dr(e._writable._writableStreamController,t),e._backpressure&&Un(e,!1)}function Un(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=h((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(Mn.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(Mn.prototype,t.toStringTag,{value:"TransformStream",configurable:!0});var qn=function(){function e(){throw new TypeError("Illegal constructor")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!Xn(this))throw ea("desiredSize");return Vr(this._controlledTransformStream._readable._readableStreamController)},enumerable:!1,configurable:!0}),e.prototype.enqueue=function(e){if(void 0===e&&(e=void 0),!Xn(this))throw ea("enqueue");Gn(this,e)},e.prototype.error=function(e){if(void 0===e&&(e=void 0),!Xn(this))throw ea("error");Wn(this,e)},e.prototype.terminate=function(){if(!Xn(this))throw ea("terminate");Kn(this)},e}();function Xn(e){return!!o(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Hn(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function $n(e,t){var r=Object.create(qn.prototype),n=function(e){try{return Gn(r,e),d(void 0)}catch(e){return p(e)}},a=function(){return d(void 0)};void 0!==t.transform&&(n=function(e){return t.transform(e,r)}),void 0!==t.flush&&(a=function(){return t.flush(r)}),Hn(e,r,n,a)}function zn(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Gn(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!Yr(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{Gr(n,t)}catch(e){throw Ln(r,e),r._readable._storedError}Kr(n)!==r._backpressure&&Un(r,!0)}function Wn(e,t){Dn(e._controlledTransformStream,t)}function Vn(e,t){return b(e._transformAlgorithm(t),void 0,(function(t){throw Dn(e._controlledTransformStream,t),t}))}function Kn(e){var t=e._controlledTransformStream;zr(t._readable._readableStreamController),Ln(t,new TypeError("TransformStream terminated"))}function Yn(e,t){var r=e._transformStreamController;return e._backpressure?b(e._backpressureChangePromise,(function(){var n=e._writable;if("erroring"===n._state)throw n._storedError;return Vn(r,t)})):Vn(r,t)}function Jn(e,t){return Dn(e,t),d(void 0)}function Zn(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return zn(r),b(n,(function(){if("errored"===t._state)throw t._storedError;zr(t._readableStreamController)}),(function(r){throw Dn(e,r),t._storedError}))}function Qn(e){return Un(e,!1),e._backpressureChangePromise}function ea(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function ta(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}Object.defineProperties(qn.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof t.toStringTag&&Object.defineProperty(qn.prototype,t.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),e.ByteLengthQueuingStrategy=An,e.CountQueuingStrategy=Fn,e.ReadableByteStreamController=Fe,e.ReadableStream=dn,e.ReadableStreamBYOBReader=lt,e.ReadableStreamBYOBRequest=Te,e.ReadableStreamDefaultController=Ur,e.ReadableStreamDefaultReader=se,e.TransformStream=Mn,e.TransformStreamDefaultController=qn,e.WritableStream=At,e.WritableStreamDefaultController=nr,e.WritableStreamDefaultWriter=Gt,Object.defineProperty(e,"__esModule",{value:!0})}(t)},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=function(){b._clearCache(),v._clearCache(),x._clearCache()},t.isCmd=function(e,t){return e instanceof b&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof k&&(void 0===t||C(e.get("Type"),t))},t.isEOF=function(e){return e===g},t.isName=C,t.isRef=function(e){return e instanceof x},t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen},t.isStream=function(e){return e instanceof o.BaseStream},t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(114);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}var g={};t.EOF=g;var m,v=(m=Object.create(null),function(){function e(t){h(this,e),this.name=t}return p(e,null,[{key:"get",value:function(t){var r=m[t];return r||(m[t]=new e(t))}},{key:"_clearCache",value:function(){m=Object.create(null)}}]),e}());t.Name=v;var y,b=(y=Object.create(null),function(){function e(t){h(this,e),this.cmd=t}return p(e,null,[{key:"get",value:function(t){var r=y[t];return r||(y[t]=new e(t))}},{key:"_clearCache",value:function(){y=Object.create(null)}}]),e}());t.Cmd=b;var w=function(){return w},k=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;h(this,e),this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=w}var t,r;return p(e,[{key:"assignXref",value:function(e){this.xref=e}},{key:"size",get:function(){return Object.keys(this._map).length}},{key:"get",value:function(e,t,r){var n=this._map[e];return void 0===n&&void 0!==t&&void 0===(n=this._map[t])&&void 0!==r&&(n=this._map[r]),n instanceof x&&this.xref?this.xref.fetch(n,this.suppressEncryption):n}},{key:"getAsync",value:(t=a.default.mark((function e(t,r,n){var i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===(i=this._map[t])&&void 0!==r&&void 0===(i=this._map[r])&&void 0!==n&&(i=this._map[n]),!(i instanceof x&&this.xref)){e.next=4;break}return e.abrupt("return",this.xref.fetchAsync(i,this.suppressEncryption));case 4:return e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(e){f(i,n,a,o,s,"next",e)}function s(e){f(i,n,a,o,s,"throw",e)}o(void 0)}))},function(e,t,n){return r.apply(this,arguments)})},{key:"getArray",value:function(e,t,r){var n=this._map[e];if(void 0===n&&void 0!==t&&void 0===(n=this._map[t])&&void 0!==r&&(n=this._map[r]),n instanceof x&&this.xref&&(n=this.xref.fetch(n,this.suppressEncryption)),Array.isArray(n))for(var a=0,i=(n=n.slice()).length;a<i;a++)n[a]instanceof x&&this.xref&&(n[a]=this.xref.fetch(n[a],this.suppressEncryption));return n}},{key:"getRaw",value:function(e){return this._map[e]}},{key:"getKeys",value:function(){return Object.keys(this._map)}},{key:"getRawValues",value:function(){return Object.values(this._map)}},{key:"set",value:function(e,t){this._map[e]=t}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this.get(t))}}],[{key:"empty",get:function(){var t=new e(null);return t.set=function(e,t){(0,i.unreachable)("Should not call \`set\` on the empty dictionary.")},(0,i.shadow)(this,"empty",t)}},{key:"merge",value:function(t){var r=t.xref,n=t.dictArray,a=t.mergeSubDicts,i=void 0!==a&&a,o=new e(r);if(!i){var u,l=c(n);try{for(l.s();!(u=l.n()).done;){var f=u.value;if(f instanceof e)for(var h=0,d=Object.entries(f._map);h<d.length;h++){var p=s(d[h],2),g=p[0],m=p[1];void 0===o._map[g]&&(o._map[g]=m)}}}catch(e){l.e(e)}finally{l.f()}return o.size>0?o:e.empty}var v,y=new Map,b=c(n);try{for(b.s();!(v=b.n()).done;){var w=v.value;if(w instanceof e)for(var k=0,S=Object.entries(w._map);k<S.length;k++){var x=s(S[k],2),A=x[0],O=x[1],C=y.get(A);void 0===C&&(C=[],y.set(A,C)),C.push(O)}}}catch(e){b.e(e)}finally{b.f()}var T,F=c(y);try{for(F.s();!(T=F.n()).done;){var P=s(T.value,2),_=P[0],I=P[1];if(1!==I.length&&I[0]instanceof e){var E,j=new e(r),R=c(I);try{for(R.s();!(E=R.n()).done;){var M=E.value;if(M instanceof e)for(var N=0,B=Object.entries(M._map);N<B.length;N++){var D=s(B[N],2),L=D[0],U=D[1];void 0===j._map[L]&&(j._map[L]=U)}}}catch(e){R.e(e)}finally{R.f()}j.size>0&&(o._map[_]=j)}else o._map[_]=I[0]}}catch(e){F.e(e)}finally{F.f()}return y.clear(),o.size>0?o:e.empty}}]),e}();t.Dict=k;var S,x=(S=Object.create(null),function(){function e(t,r){h(this,e),this.num=t,this.gen=r}return p(e,[{key:"toString",value:function(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}}],[{key:"get",value:function(t,r){var n=0===r?"".concat(t,"R"):"".concat(t,"R").concat(r),a=S[n];return a||(S[n]=new e(t,r))}},{key:"_clearCache",value:function(){S=Object.create(null)}}]),e}());t.Ref=x;var A=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;h(this,e),this._set=new Set(t&&t._set)}return p(e,[{key:"has",value:function(e){return this._set.has(e.toString())}},{key:"put",value:function(e){this._set.add(e.toString())}},{key:"remove",value:function(e){this._set.delete(e.toString())}},{key:"forEach",value:function(e){var t,r=c(this._set.values());try{for(r.s();!(t=r.n()).done;)e(t.value)}catch(e){r.e(e)}finally{r.f()}}},{key:"clear",value:function(){this._set.clear()}}]),e}();t.RefSet=A;var O=function(){function e(){h(this,e),this._map=new Map}return p(e,[{key:"size",get:function(){return this._map.size}},{key:"get",value:function(e){return this._map.get(e.toString())}},{key:"has",value:function(e){return this._map.has(e.toString())}},{key:"put",value:function(e,t){this._map.set(e.toString(),t)}},{key:"putAlias",value:function(e,t){this._map.set(e.toString(),this.get(t))}},{key:"forEach",value:function(e){var t,r=c(this._map.values());try{for(r.s();!(t=r.n()).done;)e(t.value)}catch(e){r.e(e)}finally{r.f()}}},{key:"clear",value:function(){this._map.clear()}}]),e}();function C(e,t){return e instanceof v&&(void 0===t||e.name===t)}t.RefSetCache=O},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var n=r(4);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize BaseStream.")}var t,r,i;return t=e,r=[{key:"length",get:function(){(0,n.unreachable)("Abstract getter \`length\` accessed")}},{key:"isEmpty",get:function(){(0,n.unreachable)("Abstract getter \`isEmpty\` accessed")}},{key:"isDataLoaded",get:function(){return(0,n.shadow)(this,"isDataLoaded",!0)}},{key:"getByte",value:function(){(0,n.unreachable)("Abstract method \`getByte\` called")}},{key:"getBytes",value:function(e){(0,n.unreachable)("Abstract method \`getBytes\` called")}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getByteRange",value:function(e,t){(0,n.unreachable)("Abstract method \`getByteRange\` called")}},{key:"getString",value:function(e){return(0,n.bytesToString)(this.getBytes(e,!1))}},{key:"skip",value:function(e){this.pos+=e||1}},{key:"reset",value:function(){(0,n.unreachable)("Abstract method \`reset\` called")}},{key:"moveStart",value:function(){(0,n.unreachable)("Abstract method \`moveStart\` called")}},{key:"makeSubStream",value:function(e,t){(0,n.unreachable)("Abstract method \`makeSubStream\` called")}},{key:"getBaseStreams",value:function(){return null}}],r&&a(t.prototype,r),i&&a(t,i),e}();t.BaseStream=i},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(116),c=r(117),u=r(119),l=r(118);function f(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){v(i,n,a,o,s,"next",e)}function s(e){v(i,n,a,o,s,"throw",e)}o(void 0)}))}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),e}function S(e){if(e){var t=(0,o.createValidAbsoluteUrl)(e);if(t)return t.href;(0,o.warn)('Invalid absolute docBaseUrl: "'.concat(e,'".'))}return null}var x=function(){function e(){b(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BasePdfManager.")}var t;return k(e,[{key:"docId",get:function(){return this._docId}},{key:"password",get:function(){return this._password}},{key:"docBaseUrl",get:function(){return this._docBaseUrl}},{key:"onLoadedStream",value:function(){(0,o.unreachable)("Abstract method \`onLoadedStream\` called")}},{key:"ensureDoc",value:function(e,t){return this.ensure(this.pdfDocument,e,t)}},{key:"ensureXRef",value:function(e,t){return this.ensure(this.pdfDocument.xref,e,t)}},{key:"ensureCatalog",value:function(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}},{key:"getPage",value:function(e){return this.pdfDocument.getPage(e)}},{key:"fontFallback",value:function(e,t){return this.pdfDocument.fontFallback(e,t)}},{key:"loadXfaFonts",value:function(e,t){return this.pdfDocument.loadXfaFonts(e,t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}},{key:"ensure",value:(t=y(i.default.mark((function e(t,r,n){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,o.unreachable)("Abstract method \`ensure\` called");case 1:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"requestRange",value:function(e,t){(0,o.unreachable)("Abstract method \`requestRange\` called")}},{key:"requestLoadedStream",value:function(){(0,o.unreachable)("Abstract method \`requestLoadedStream\` called")}},{key:"sendProgressiveData",value:function(e){(0,o.unreachable)("Abstract method \`sendProgressiveData\` called")}},{key:"updatePassword",value:function(e){this._password=e}},{key:"terminate",value:function(e){(0,o.unreachable)("Abstract method \`terminate\` called")}}]),e}(),A=function(e){f(n,e);var t,r=d(n);function n(e,t,a,i,o,s){var c;b(this,n),(c=r.call(this))._docId=e,c._password=a,c._docBaseUrl=S(s),c.evaluatorOptions=i,c.enableXfa=o;var f=new l.Stream(t);return c.pdfDocument=new u.PDFDocument(g(c),f),c._loadedStreamPromise=Promise.resolve(f),c}return k(n,[{key:"ensure",value:(t=y(i.default.mark((function e(t,r,n){var a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(a=t[r])){e.next=3;break}return e.abrupt("return",a.apply(t,n));case 3:return e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return Promise.resolve()}},{key:"requestLoadedStream",value:function(){}},{key:"onLoadedStream",value:function(){return this._loadedStreamPromise}},{key:"terminate",value:function(e){}}]),n}(x);t.LocalPdfManager=A;var O=function(e){f(n,e);var t,r=d(n);function n(e,t,a,i,o,c){var l;return b(this,n),(l=r.call(this))._docId=e,l._password=a.password,l._docBaseUrl=S(c),l.msgHandler=a.msgHandler,l.evaluatorOptions=i,l.enableXfa=o,l.streamManager=new s.ChunkedStreamManager(t,{msgHandler:a.msgHandler,length:a.length,disableAutoFetch:a.disableAutoFetch,rangeChunkSize:a.rangeChunkSize}),l.pdfDocument=new u.PDFDocument(g(l),l.streamManager.getStream()),l}return k(n,[{key:"ensure",value:(t=y(i.default.mark((function e(t,r,n){var a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"function"!=typeof(a=t[r])){e.next=4;break}return e.abrupt("return",a.apply(t,n));case 4:return e.abrupt("return",a);case 7:if(e.prev=7,e.t0=e.catch(0),e.t0 instanceof c.MissingDataException){e.next=11;break}throw e.t0;case 11:return e.next=13,this.requestRange(e.t0.begin,e.t0.end);case 13:return e.abrupt("return",this.ensure(t,r,n));case 14:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,r,n){return t.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return this.streamManager.requestRange(e,t)}},{key:"requestLoadedStream",value:function(){this.streamManager.requestAllChunks()}},{key:"sendProgressiveData",value:function(e){this.streamManager.onReceiveData({chunk:e})}},{key:"onLoadedStream",value:function(){return this.streamManager.onLoadedStream()}},{key:"terminate",value:function(e){this.streamManager.abort(e)}}]),n}(x);t.NetworkPdfManager=O},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var a=r(4),i=r(117);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var a=p(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g=function(e){!function(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&&f(e,t)}(r,e);var t=h(r);function r(e,n,a){var i;return c(this,r),(i=t.call(this,new Uint8Array(e),0,e,null)).chunkSize=n,i._loadedChunks=new Set,i.numChunks=Math.ceil(e/n),i.manager=a,i.progressiveDataLength=0,i.lastSuccessfulEnsureByteChunk=-1,i}return l(r,[{key:"getMissingChunks",value:function(){for(var e=[],t=0,r=this.numChunks;t<r;++t)this._loadedChunks.has(t)||e.push(t);return e}},{key:"numChunksLoaded",get:function(){return this._loadedChunks.size}},{key:"isDataLoaded",get:function(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function(e,t){var r=this.chunkSize;if(e%r!=0)throw new Error("Bad begin offset: ".concat(e));var n=e+t.byteLength;if(n%r!=0&&n!==this.bytes.length)throw new Error("Bad end offset: ".concat(n));this.bytes.set(new Uint8Array(t),e);for(var a=Math.floor(e/r),i=Math.floor((n-1)/r)+1,o=a;o<i;++o)this._loadedChunks.add(o)}},{key:"onReceiveProgressiveData",value:function(e){var t=this.progressiveDataLength,r=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;for(var n=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize),a=r;a<n;++a)this._loadedChunks.add(a)}},{key:"ensureByte",value:function(e){if(!(e<this.progressiveDataLength)){var t=Math.floor(e/this.chunkSize);if(t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new i.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}},{key:"ensureRange",value:function(e,t){if(!(e>=t||t<=this.progressiveDataLength))for(var r=this.chunkSize,n=Math.floor(e/r),a=Math.floor((t-1)/r)+1,o=n;o<a;++o)if(!this._loadedChunks.has(o))throw new i.MissingDataException(e,t)}},{key:"nextEmptyChunk",value:function(e){for(var t=this.numChunks,r=0;r<t;++r){var n=(e+r)%t;if(!this._loadedChunks.has(n))return n}return null}},{key:"hasChunk",value:function(e){return this._loadedChunks.has(e)}},{key:"getByte",value:function(){var e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,n=this.pos,a=this.end;if(!e){a>this.progressiveDataLength&&this.ensureRange(n,a);var i=r.subarray(n,a);return t?new Uint8ClampedArray(i):i}var o=n+e;o>a&&(o=a),o>this.progressiveDataLength&&this.ensureRange(n,o),this.pos=o;var s=r.subarray(n,o);return t?new Uint8ClampedArray(s):s}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;function n(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),n.prototype=Object.create(this),n.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,n=[],a=t;a<r;++a)this._loadedChunks.has(a)||n.push(a);return n},Object.defineProperty(n.prototype,"isDataLoaded",{get:function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var a=new n;return a.pos=a.start=e,a.end=e+t||this.end,a.dict=r,a}},{key:"getBaseStreams",value:function(){return[this]}}]),r}(r(118).Stream);t.ChunkedStream=g;var m=function(){function e(t,r){c(this,e),this.length=r.length,this.chunkSize=r.rangeChunkSize,this.stream=new g(this.length,this.chunkSize,this),this.pdfNetworkStream=t,this.disableAutoFetch=r.disableAutoFetch,this.msgHandler=r.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,a.createPromiseCapability)()}return l(e,[{key:"onLoadedStream",value:function(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function(e,t){var r=this,n=this.pdfNetworkStream.getRangeReader(e,t);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));var i=[],o=0;new Promise((function(e,t){n.read().then((function s(c){try{if(!c.done){var u=c.value;return i.push(u),o+=(0,a.arrayByteLength)(u),n.isStreamingSupported&&r.onProgress({loaded:o}),void n.read().then(s,t)}var l=(0,a.arraysToBytes)(i);i=null,e(l)}catch(e){t(e)}}),t)})).then((function(t){r.aborted||r.onReceiveData({chunk:t,begin:e})}))}},{key:"requestAllChunks",value:function(){var e=this.stream.getMissingChunks();return this._requestChunks(e),this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function(e){var t=this,r=this.currRequestId++,n=new Set;this._chunksNeededByRequest.set(r,n);var i,s=o(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;this.stream.hasChunk(c)||n.add(c)}}catch(e){s.e(e)}finally{s.f()}if(0===n.size)return Promise.resolve();var u=(0,a.createPromiseCapability)();this._promisesByRequest.set(r,u);var l,f=[],h=o(n);try{for(h.s();!(l=h.n()).done;){var d=l.value,p=this._requestsByChunk.get(d);p||(p=[],this._requestsByChunk.set(d,p),f.push(d)),p.push(r)}}catch(e){h.e(e)}finally{h.f()}if(f.length>0){var g,m=o(this.groupChunks(f));try{for(m.s();!(g=m.n()).done;){var v=g.value,y=v.beginChunk*this.chunkSize,b=Math.min(v.endChunk*this.chunkSize,this.length);this.sendRequest(y,b)}}catch(e){m.e(e)}finally{m.f()}}return u.promise.catch((function(e){if(!t.aborted)throw e}))}},{key:"getStream",value:function(){return this.stream}},{key:"requestRange",value:function(e,t){t=Math.min(t,this.length);for(var r=this.getBeginChunk(e),n=this.getEndChunk(t),a=[],i=r;i<n;++i)a.push(i);return this._requestChunks(a)}},{key:"requestRanges",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=[],n=o(t);try{for(n.s();!(e=n.n()).done;)for(var a=e.value,i=this.getBeginChunk(a.begin),s=this.getEndChunk(a.end),c=i;c<s;++c)r.includes(c)||r.push(c)}catch(e){n.e(e)}finally{n.f()}return r.sort((function(e,t){return e-t})),this._requestChunks(r)}},{key:"groupChunks",value:function(e){for(var t=[],r=-1,n=-1,a=0,i=e.length;a<i;++a){var o=e[a];r<0&&(r=o),n>=0&&n+1!==o&&(t.push({beginChunk:r,endChunk:n+1}),r=o),a+1===e.length&&t.push({beginChunk:r,endChunk:o+1}),n=o}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,n=r?this.progressiveDataLength:e.begin,a=n+t.byteLength,i=Math.floor(n/this.chunkSize),s=a<this.length?Math.floor(a/this.chunkSize):Math.ceil(a/this.chunkSize);r?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=a):this.stream.onReceiveData(n,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);for(var c=[],u=i;u<s;++u){var l=this._requestsByChunk.get(u);if(l){this._requestsByChunk.delete(u);var f,h=o(l);try{for(h.s();!(f=h.n()).done;){var d=f.value,p=this._chunksNeededByRequest.get(d);p.has(u)&&p.delete(u),p.size>0||c.push(d)}}catch(e){h.e(e)}finally{h.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var g;if(1===this.stream.numChunksLoaded){var m=this.stream.numChunks-1;this.stream.hasChunk(m)||(g=m)}else g=this.stream.nextEmptyChunk(s);Number.isInteger(g)&&this._requestChunks([g])}for(var v=0,y=c;v<y.length;v++){var b=y[v],w=this._promisesByRequest.get(b);this._promisesByRequest.delete(b),w.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}},{key:"onError",value:function(e){this._loadedStreamCapability.reject(e)}},{key:"getBeginChunk",value:function(e){return Math.floor(e/this.chunkSize)}},{key:"getEndChunk",value:function(e){return Math.floor((e-1)/this.chunkSize)+1}},{key:"abort",value:function(e){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e);var t,r=o(this._promisesByRequest.values());try{for(r.s();!(t=r.n()).done;)t.value.reject(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}();t.ChunkedStreamManager=m},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.collectActions=function(e,t,r){var n=Object.create(null),s=v({dict:t,key:"AA",stopWhenFound:!1});if(s)for(var c=s.length-1;c>=0;c--){var u=s[c];if(u instanceof i.Dict){var l,f=o(u.getKeys());try{for(f.s();!(l=f.n()).done;){var h=l.value,d=r[h];if(d){var p=u.getRaw(h),g=new i.RefSet,m=[];b(p,e,m,g),m.length>0&&(n[d]=m)}}}catch(e){f.e(e)}finally{f.f()}}}if(t.has("A")){var y=t.get("A"),w=new i.RefSet,k=[];b(y,e,k,w),k.length>0&&(n.Action=k)}return(0,a.objectSize)(n)>0?n:null},t.encodeToXmlString=function(e){for(var t=[],r=0,n=0,a=e.length;n<a;n++){var i=e.codePointAt(n);if(32<=i&&i<=126){var o=w[i];o&&(r<n&&t.push(e.substring(r,n)),t.push(o),r=n+1)}else r<n&&t.push(e.substring(r,n)),t.push("&#x".concat(i.toString(16).toUpperCase(),";")),i>55295&&(i<57344||i>65533)&&n++,r=n+1}return 0===t.length?e:(r<e.length&&t.push(e.substring(r,e.length)),t.join(""))},t.escapePDFName=function(e){for(var t=[],r=0,n=0,a=e.length;n<a;n++){var i=e.charCodeAt(n);(i<33||i>126||35===i||40===i||41===i||60===i||62===i||91===i||93===i||123===i||125===i||47===i||37===i)&&(r<n&&t.push(e.substring(r,n)),t.push("#".concat(i.toString(16))),r=n+1)}return 0===t.length?e:(r<e.length&&t.push(e.substring(r,e.length)),t.join(""))},t.getArrayLookupTableFactory=function(e){var t;return function(){if(e){var r=e();e=null,t=Object.create(null);for(var n=0,a=r.length;n<a;n+=2)t[r[n]]=r[n+1];r=null}return t}},t.getInheritableProperty=v,t.getLookupTableFactory=function(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.parseXFAPath=function(e){var t=/(.+)\\[([0-9]+)\\]$/;return e.split(".").map((function(e){var r=e.match(t);return r?{name:r[1],pos:parseInt(r[2],10)}:{name:e,pos:0}}))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.toRomanNumerals=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,n=[];e>=1e3;)e-=1e3,n.push("M");r=e/100|0,e%=100,n.push(y[r]),r=e/10|0,e%=10,n.push(y[10+r]),n.push(y[20+e]);var i=n.join("");return t?i.toLowerCase():i},t.validateCSSFont=function(e){var t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),r=e.fontFamily,n=e.fontWeight,i=e.italicAngle;if(/^".*"$/.test(r)){if(/[^\\\\]"/.test(r.slice(1,r.length-1)))return(0,a.warn)('XFA - FontFamily contains some unescaped ": '.concat(r,".")),!1}else if(/^'.*'$/.test(r)){if(/[^\\\\]'/.test(r.slice(1,r.length-1)))return(0,a.warn)("XFA - FontFamily contains some unescaped ': ".concat(r,".")),!1}else{var s,c=o(r.split(/[ \\t]+/));try{for(c.s();!(s=c.n()).done;){var u=s.value;if(/^([0-9]|(-([0-9]|-)))/.test(u)||!/^[a-zA-Z0-9\\-_\\\\]+$/.test(u))return(0,a.warn)("XFA - FontFamily contains some invalid <custom-ident>: ".concat(r,".")),!1}}catch(e){c.e(e)}finally{c.f()}}var l=n?n.toString():"";e.fontWeight=t.has(l)?l:"400";var f=parseFloat(i);return e.italicAngle=isNaN(f)||f<-90||f>90?"14":i.toString(),!0},t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var a=r(4),i=r(113);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){u(r,e);var t=f(r);function r(e,n){var a;return c(this,r),(a=t.call(this,"Missing data [".concat(e,", ").concat(n,")"))).begin=e,a.end=n,a}return r}(a.BaseException);t.MissingDataException=p;var g=function(e){u(r,e);var t=f(r);function r(){return c(this,r),t.apply(this,arguments)}return r}(a.BaseException);t.XRefEntryException=g;var m=function(e){u(r,e);var t=f(r);function r(){return c(this,r),t.apply(this,arguments)}return r}(a.BaseException);function v(e){for(var t,r=e.dict,n=e.key,a=e.getArray,o=void 0!==a&&a,s=e.stopWhenFound,c=void 0===s||s,u=new i.RefSet;r instanceof i.Dict&&(!r.objId||!u.has(r.objId));){r.objId&&u.put(r.objId);var l=o?r.getArray(n):r.get(n);if(void 0!==l){if(c)return l;t||(t=[]),t.push(l)}r=r.get("Parent")}return t}t.XRefParseException=m;var y=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function b(e,t,r,n){if(e){var s=null;if((0,i.isRef)(e)){if(n.has(e))return;s=e,n.put(s),e=t.fetch(e)}if(Array.isArray(e)){var c,u=o(e);try{for(u.s();!(c=u.n()).done;)b(c.value,t,r,n)}catch(e){u.e(e)}finally{u.f()}}else if(e instanceof i.Dict){if((0,i.isName)(e.get("S"),"JavaScript")&&e.has("JS")){var l,f=e.get("JS");l=(0,i.isStream)(f)?f.getString():f,(l=(0,a.stringToPDFString)(l))&&r.push(l)}b(e.getRaw("Next"),t,r,n)}s&&n.remove(s)}}var w={60:"<",62:">",38:"&",34:""",39:"'"}},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0;var a=r(114),i=r(4);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&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=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=function(e){c(i,e);var t,r,n,a=l(i);function i(e,t,r,n){var s;return o(this,i),(s=a.call(this)).bytes=e instanceof Uint8Array?e:new Uint8Array(e),s.start=t||0,s.pos=s.start,s.end=t+r||s.bytes.length,s.dict=n,s}return t=i,r=[{key:"length",get:function(){return this.end-this.start}},{key:"isEmpty",get:function(){return 0===this.length}},{key:"getByte",value:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]}},{key:"getBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,n=this.pos,a=this.end;if(!e){var i=r.subarray(n,a);return t?new Uint8ClampedArray(i):i}var o=n+e;o>a&&(o=a),this.pos=o;var s=r.subarray(n,o);return t?new Uint8ClampedArray(s):s}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new i(this.bytes.buffer,e,t,r)}}],r&&s(t.prototype,r),n&&s(t,n),i}(a.BaseStream);t.Stream=d;var p=function(e){c(r,e);var t=l(r);function r(e){return o(this,r),t.call(this,(0,i.stringToBytes)(e))}return r}(d);t.StringStream=p;var g=function(e){c(r,e);var t=l(r);function r(){return o(this,r),t.call(this,new Uint8Array(0))}return r}(d);t.NullStream=g},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(113),c=r(117),u=r(118),l=r(120),f=r(114),h=r(173),d=r(165),p=r(125),g=r(171),m=r(163),v=r(123),y=r(127),b=r(170),w=r(175),k=r(196);function S(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function x(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){S(i,n,a,o,s,"next",e)}function s(e){S(i,n,a,o,s,"throw",e)}o(void 0)}))}}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function C(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=I(e);if(t){var a=I(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),e}var M=[0,0,612,792],N=function(){function e(t){var r=t.pdfManager,n=t.xref,a=t.pageIndex,i=t.pageDict,o=t.ref,s=t.globalIdFactory,c=t.fontCache,u=t.builtInCMapCache,l=t.globalImageCache,f=t.nonBlendModesSet,h=t.xfaFactory;E(this,e),this.pdfManager=r,this.pageIndex=a,this.pageDict=i,this.xref=n,this.ref=o,this.fontCache=c,this.builtInCMapCache=u,this.globalImageCache=l,this.nonBlendModesSet=f,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=h;var d={obj:0};this._localIdFactory=function(e){!function(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&&F(e,t)}(r,e);var t=P(r);function r(){return E(this,r),t.apply(this,arguments)}return R(r,null,[{key:"createObjId",value:function(){return"p".concat(a,"_").concat(++d.obj)}},{key:"getPageObjId",value:function(){return"page".concat(o.toString())}}]),r}(s)}var t;return R(e,[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,c.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&(0,s.isDict)(r[0])?s.Dict.merge({xref:this.xref,dictArray:r}):r[0]:r}},{key:"content",get:function(){return this.pageDict.getArray("Contents")}},{key:"resources",get:function(){return(0,o.shadow)(this,"resources",this._getInheritableProperty("Resources")||s.Dict.empty)}},{key:"_getBoundingBox",value:function(e){if(this.xfaData){var t=this.xfaData.attributes.style,r=t.width,n=t.height;return[0,0,parseInt(r),parseInt(n)]}var a=this._getInheritableProperty(e,!0);if(Array.isArray(a)&&4===a.length){if(a[2]-a[0]!=0&&a[3]-a[1]!=0)return a;(0,o.warn)("Empty /".concat(e," entry."))}return null}},{key:"mediaBox",get:function(){return(0,o.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||M)}},{key:"cropBox",get:function(){return(0,o.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return(!(0,o.isNum)(e)||e<=0)&&(e=1),(0,o.shadow)(this,"userUnit",e)}},{key:"view",get:function(){var e,t=this.cropBox,r=this.mediaBox;if(t===r||(0,o.isArrayEqual)(t,r))e=r;else{var n=o.Util.intersect(t,r);n&&n[2]-n[0]!=0&&n[3]-n[1]!=0?e=n:(0,o.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,o.shadow)(this,"view",e||r)}},{key:"rotate",get:function(){var e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,o.shadow)(this,"rotate",e)}},{key:"getContentStream",value:function(){return this.pdfManager.ensure(this,"content").then((function(e){return e instanceof f.BaseStream?e:Array.isArray(e)?new y.StreamsSequenceStream(e):new u.NullStream}))}},{key:"xfaData",get:function(){return this.xfaFactory?(0,o.shadow)(this,"xfaData",this.xfaFactory.getPage(this.pageIndex)):(0,o.shadow)(this,"xfaData",null)}},{key:"save",value:function(e,t,r){var n=new v.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(e){var a,i=[],s=O(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;c.mustBePrinted(r)&&i.push(c.save(n,t,r).catch((function(e){return(0,o.warn)("save - ignoring annotation data during "+'"'.concat(t.name,'" task: "').concat(e,'".')),null})))}}catch(e){s.e(e)}finally{s.f()}return Promise.all(i)}))}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){return new g.ObjectLoader(t.resources,e,t.xref).load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,n=e.sink,a=e.task,i=e.intent,s=e.renderInteractiveForms,c=e.annotationStorage,u=this.getContentStream(),l=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),f=new v.PartialEvaluator({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),h=Promise.all([u,l]).then((function(e){var o=A(e,1)[0],s=new m.OperatorList(i,n);return r.send("StartRenderPage",{transparency:f.hasBlendModes(t.resources,t.nonBlendModesSet),pageIndex:t.pageIndex,intent:i}),f.getOperatorList({stream:o,task:a,resources:t.resources,operatorList:s}).then((function(){return s}))}));return Promise.all([h,this._parsedAnnotations]).then((function(e){var t=A(e,2),r=t[0],n=t[1];if(0===n.length)return r.flush(!0),{length:r.totalLength};var u,l=[],h=O(n);try{for(h.s();!(u=h.n()).done;){var d=u.value;("display"===i&&d.mustBeViewed(c)||"print"===i&&d.mustBePrinted(c))&&l.push(d.getOperatorList(f,a,s,c).catch((function(e){return(0,o.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(a.name,'" task: "').concat(e,'".')),null})))}}catch(e){h.e(e)}finally{h.f()}return Promise.all(l).then((function(e){r.addOp(o.OPS.beginAnnotations,[]);var t,n=O(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.addOpList(a)}}catch(e){n.e(e)}finally{n.f()}return r.addOp(o.OPS.endAnnotations,[]),r.flush(!0),{length:r.totalLength}}))}))}},{key:"extractTextContent",value:function(e){var t=this,r=e.handler,n=e.task,a=e.normalizeWhitespace,i=e.includeMarkedContent,o=e.sink,s=e.combineTextItems,c=this.getContentStream(),u=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([c,u]).then((function(e){var c=A(e,1)[0];return new v.PartialEvaluator({xref:t.xref,handler:r,pageIndex:t.pageIndex,idFactory:t._localIdFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,globalImageCache:t.globalImageCache,options:t.evaluatorOptions}).getTextContent({stream:c,task:n,resources:t.resources,normalizeWhitespace:a,includeMarkedContent:i,combineTextItems:s,sink:o})}))}},{key:"getStructTree",value:(t=x(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("structTreeRoot");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this.pdfManager.ensure(this,"_parseStructTree",[t]);case 7:return r=e.sent,e.abrupt("return",r.serializable);case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_parseStructTree",value:function(e){var t=new b.StructTreePage(e,this.pageDict);return t.parse(),t}},{key:"getAnnotationsData",value:function(e){return this._parsedAnnotations.then((function(t){for(var r=[],n=0,a=t.length;n<a;n++)(!e||"display"===e&&t[n].viewable||"print"===e&&t[n].printable)&&r.push(t[n].data);return r}))}},{key:"annotations",get:function(){var e=this._getInheritableProperty("Annots");return(0,o.shadow)(this,"annotations",Array.isArray(e)?e:[])}},{key:"_parsedAnnotations",get:function(){var e=this,t=this.pdfManager.ensure(this,"annotations").then((function(){var t,r=[],n=O(e.annotations);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.push(l.AnnotationFactory.create(e.xref,a,e.pdfManager,e._localIdFactory,!1).catch((function(e){return(0,o.warn)('_parsedAnnotations: "'.concat(e,'".')),null})))}}catch(e){n.e(e)}finally{n.f()}return Promise.all(r).then((function(e){return e.filter((function(e){return!!e}))}))}));return(0,o.shadow)(this,"_parsedAnnotations",t)}},{key:"jsActions",get:function(){var e=(0,c.collectActions)(this.xref,this.pageDict,o.PageActionEventType);return(0,o.shadow)(this,"jsActions",e)}}]),e}();t.Page=N;var B=new Uint8Array([37,80,68,70,45]),D=new Uint8Array([115,116,97,114,116,120,114,101,102]),L=new Uint8Array([101,110,100,111,98,106]),U=/^[1-9]\\.[0-9]$/;function q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length,i=e.peekBytes(r),o=i.length-a;if(o<=0)return!1;if(n)for(var s=a-1,c=i.length-1;c>=s;){for(var u=0;u<a&&i[c-u]===t[s-u];)u++;if(u>=a)return e.pos+=c-s,!0;c--}else for(var l=0;l<=o;){for(var f=0;f<a&&i[l+f]===t[f];)f++;if(f>=a)return e.pos+=l,!0;l++}return!1}var X=function(){function e(t,r){var n;if(E(this,e),(0,s.isStream)(r))n=r;else{if(!(0,o.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");n=new u.Stream(r)}if(n.length<=0)throw new o.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=n,this.xref=new k.XRef(n,t),this._pagePromises=[],this._version=null;var a={font:0};this._globalIdFactory=function(){function e(){E(this,e)}return R(e,null,[{key:"getDocId",value:function(){return"g_".concat(t.docId)}},{key:"createFontId",value:function(){return"f".concat(++a.font)}},{key:"createObjId",value:function(){(0,o.unreachable)("Abstract method \`createObjId\` called.")}},{key:"getPageObjId",value:function(){(0,o.unreachable)("Abstract method \`getPageObjId\` called.")}}]),e}()}var t,r,n;return R(e,[{key:"parse",value:function(e){this.xref.parse(e),this.catalog=new d.Catalog(this.pdfManager,this.xref),this.catalog.version&&(this._version=this.catalog.version)}},{key:"linearization",get:function(){var e=null;try{e=p.Linearization.create(this.stream)}catch(e){if(e instanceof c.MissingDataException)throw e;(0,o.info)(e)}return(0,o.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),q(e,L)&&(t=e.pos+6-e.start);else{for(var r=D.length,n=!1,a=e.end;!n&&a>0;)(a-=1024-r)<0&&(a=0),e.pos=a,n=q(e,D,1024,!0);if(n){var i;e.skip(9);do{i=e.getByte()}while((0,c.isWhiteSpace)(i));for(var s="";i>=32&&i<=57;)s+=String.fromCharCode(i),i=e.getByte();t=parseInt(s,10),isNaN(t)&&(t=0)}}return(0,o.shadow)(this,"startXRef",t)}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),q(e,B)){e.moveStart();for(var t,r="";(t=e.getByte())>32&&!(r.length>=12);)r+=String.fromCharCode(t);this._version||(this._version=r.substring(5))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function(){if(this.xfaFactory)return(0,o.shadow)(this,"numPages",this.xfaFactory.numberPages);var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,o.shadow)(this,"numPages",t)}},{key:"_hasOnlyDocumentSignatures",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=10;return!!Array.isArray(e)&&e.every((function(e){if(!((e=t.xref.fetchIfRef(e))instanceof s.Dict))return!1;if(e.has("Kids"))return++r>n?((0,o.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):t._hasOnlyDocumentSignatures(e.get("Kids"),r);var a=(0,s.isName)(e.get("FT"),"Sig"),i=e.get("Rect"),c=Array.isArray(i)&&i.every((function(e){return 0===e}));return a&&c}))}},{key:"xfaData",get:function(){var e=this.catalog.acroForm;if(!e)return null;var t=e.get("XFA"),r={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if((0,s.isStream)(t)&&!t.isEmpty)try{return r["xdp:xdp"]=(0,o.stringToUTF8String)(t.getString()),r}catch(e){return(0,o.warn)("XFA - Invalid utf-8 string."),null}if(!Array.isArray(t)||0===t.length)return null;for(var n=0,a=t.length;n<a;n+=2){var i=void 0;if(i=0===n?"xdp:xdp":n===a-2?"/xdp:xdp":t[n],r.hasOwnProperty(i)){var c=this.xref.fetchIfRef(t[n+1]);if((0,s.isStream)(c)&&!c.isEmpty)try{r[i]=(0,o.stringToUTF8String)(c.getString())}catch(e){return(0,o.warn)("XFA - Invalid utf-8 string."),null}}}return r}},{key:"xfaFactory",get:function(){if(this.pdfManager.enableXfa&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm){var e=this.xfaData;return(0,o.shadow)(this,"xfaFactory",e?new w.XFAFactory(e):null)}return(0,o.shadow)(this,"xfaFaxtory",null)}},{key:"isPureXfa",get:function(){return null!==this.xfaFactory}},{key:"loadXfaFonts",value:(n=x(i.default.mark((function e(t,r){var n,a,u,l,f,h,d,p,y,b,w,k,S,x,C,T,F,P,_;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.pdfManager.ensureCatalog("acroForm");case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,n.getAsync("DR");case 7:if((a=e.sent)instanceof s.Dict){e.next=10;break}return e.abrupt("return");case 10:return u=new g.ObjectLoader(a,["Font"],this.xref),e.next=13,u.load();case 13:if((l=a.get("Font"))instanceof s.Dict){e.next=16;break}return e.abrupt("return");case 16:f=new v.PartialEvaluator({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache}),h=new m.OperatorList,d={font:null,clone:function(){return this}},p=new Map,l.forEach((function(e,t){p.set(e,t)})),y=[],b=O(p),e.prev=23,b.s();case 25:if((w=b.n()).done){e.next=39;break}if(k=A(w.value,2),S=k[0],x=k[1],(C=x.get("FontDescriptor"))instanceof s.Dict){e.next=30;break}return e.abrupt("continue",37);case 30:if(T=C.get("FontFamily"),F=C.get("FontWeight"),P=-C.get("ItalicAngle"),_={fontFamily:T,fontWeight:F,italicAngle:P},(0,c.validateCSSFont)(_)){e.next=36;break}return e.abrupt("continue",37);case 36:y.push(f.handleSetFont(a,[s.Name.get(S),1],null,h,r,d,null,_).catch((function(e){return(0,o.warn)('loadXfaFonts: "'.concat(e,'".')),null})));case 37:e.next=25;break;case 39:e.next=44;break;case 41:e.prev=41,e.t0=e.catch(23),b.e(e.t0);case 44:return e.prev=44,b.f(),e.finish(44);case 47:return e.next=49,Promise.all(y);case 49:case"end":return e.stop()}}),e,this,[[23,41,44,47]])}))),function(e,t){return n.apply(this,arguments)})},{key:"formInfo",get:function(){var e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(!t)return(0,o.shadow)(this,"formInfo",e);try{var r=t.get("Fields"),n=Array.isArray(r)&&r.length>0;e.hasFields=n;var a=t.get("XFA");e.hasXfa=Array.isArray(a)&&a.length>0||(0,s.isStream)(a)&&!a.isEmpty;var i=!!(1&t.get("SigFlags")),u=i&&this._hasOnlyDocumentSignatures(r);e.hasAcroForm=n&&!u,e.hasSignatures=i}catch(e){if(e instanceof c.MissingDataException)throw e;(0,o.warn)('Cannot fetch form information: "'.concat(e,'".'))}return(0,o.shadow)(this,"formInfo",e)}},{key:"documentInfo",get:function(){var e={Title:o.isString,Author:o.isString,Subject:o.isString,Keywords:o.isString,Creator:o.isString,Producer:o.isString,CreationDate:o.isString,ModDate:o.isString,Trapped:s.isName},t=this._version;"string"==typeof t&&U.test(t)||((0,o.warn)("Invalid PDF header version number: ".concat(t)),t=null);var r,n={PDFFormatVersion:t,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};try{r=this.xref.trailer.get("Info")}catch(e){if(e instanceof c.MissingDataException)throw e;(0,o.info)("The document information dictionary is invalid.")}if((0,s.isDict)(r)){var a,i=O(r.getKeys());try{for(i.s();!(a=i.n()).done;){var u=a.value,l=r.get(u);if(e[u])e[u](l)?n[u]="string"!=typeof l?l:(0,o.stringToPDFString)(l):(0,o.info)('Bad value in document info for "'.concat(u,'".'));else if("string"==typeof u){var f=void 0;if((0,o.isString)(l))f=(0,o.stringToPDFString)(l);else{if(!((0,s.isName)(l)||(0,o.isNum)(l)||(0,o.isBool)(l))){(0,o.info)('Unsupported value in document info for (custom) "'.concat(u,'".'));continue}f=l}n.Custom||(n.Custom=Object.create(null)),n.Custom[u]=f}}}catch(e){i.e(e)}finally{i.f()}}return(0,o.shadow)(this,"documentInfo",n)}},{key:"fingerprint",get:function(){for(var e,t=this.xref.trailer.get("ID"),r=[],n=0,a=(e=Array.isArray(t)&&t[0]&&(0,o.isString)(t[0])&&"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"!==t[0]?(0,o.stringToBytes)(t[0]):(0,h.calculateMD5)(this.stream.getByteRange(0,1024),0,1024)).length;n<a;n++){var i=e[n].toString(16);r.push(i.padStart(2,"0"))}return(0,o.shadow)(this,"fingerprint",r.join(""))}},{key:"_getLinearizationPage",value:function(e){var t=this.catalog,r=this.linearization,n=s.Ref.get(r.objectNumberFirst,0);return this.xref.fetchAsync(n).then((function(e){if((0,s.isDict)(e,"Page")||(0,s.isDict)(e)&&!e.has("Type")&&e.has("Contents"))return n&&!t.pageKidsCountCache.has(n)&&t.pageKidsCountCache.put(n,1),[e,n];throw new o.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})).catch((function(r){return(0,o.info)(r),t.getPageDict(e)}))}},{key:"getPage",value:function(e){var t=this;if(void 0!==this._pagePromises[e])return this._pagePromises[e];var r=this.catalog,n=this.linearization;if(this.xfaFactory)return Promise.resolve(new N({pdfManager:this.pdfManager,xref:this.xref,pageIndex:e,pageDict:s.Dict.empty,ref:null,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:this.xfaFactory}));var a=n&&n.pageFirst===e?this._getLinearizationPage(e):r.getPageDict(e);return this._pagePromises[e]=a.then((function(n){var a=A(n,2),i=a[0],o=a[1];return new N({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:i,ref:o,globalIdFactory:t._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,globalImageCache:r.globalImageCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})}))}},{key:"checkFirstPage",value:function(){var e=this;return this.getPage(0).catch(function(){var t=x(i.default.mark((function t(r){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r instanceof c.XRefEntryException)){t.next=5;break}return e._pagePromises.length=0,t.next=4,e.cleanup();case 4:throw new c.XRefParseException;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:(r=x(i.default.mark((function e(){var t,r=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],e.abrupt("return",this.catalog?this.catalog.cleanup(t):(0,s.clearPrimitiveCaches)());case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"_collectFieldObjects",value:function(e,t,r){var n=this.xref.fetchIfRef(t);if(n.has("T")){var a=(0,o.stringToPDFString)(n.get("T"));e=""===e?a:"".concat(e,".").concat(a)}if(r.has(e)||r.set(e,[]),r.get(e).push(l.AnnotationFactory.create(this.xref,t,this.pdfManager,this._localIdFactory,!0).then((function(e){return e&&e.getFieldObject()})).catch((function(e){return(0,o.warn)('_collectFieldObjects: "'.concat(e,'".')),null}))),n.has("Kids")){var i,s=O(n.get("Kids"));try{for(s.s();!(i=s.n()).done;){var c=i.value;this._collectFieldObjects(e,c,r)}}catch(e){s.e(e)}finally{s.f()}}}},{key:"fieldObjects",get:function(){if(!this.formInfo.hasFields)return(0,o.shadow)(this,"fieldObjects",Promise.resolve(null));var e,t=Object.create(null),r=new Map,n=O(this.catalog.acroForm.get("Fields"));try{for(n.s();!(e=n.n()).done;){var a=e.value;this._collectFieldObjects("",a,r)}}catch(e){n.e(e)}finally{n.f()}var i,s=[],c=O(r);try{var u=function(){var e=A(i.value,2),r=e[0],n=e[1];s.push(Promise.all(n).then((function(e){(e=e.filter((function(e){return!!e}))).length>0&&(t[r]=e)})))};for(c.s();!(i=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}return(0,o.shadow)(this,"fieldObjects",Promise.all(s).then((function(){return t})))}},{key:"hasJSActions",get:function(){var e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,o.shadow)(this,"hasJSActions",e)}},{key:"_parseHasJSActions",value:(t=x(i.default.mark((function e(){var t,r,n,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);case 2:if(t=e.sent,r=A(t,2),n=r[0],a=r[1],!n){e.next=8;break}return e.abrupt("return",!0);case 8:if(!a){e.next=10;break}return e.abrupt("return",Object.values(a).some((function(e){return e.some((function(e){return null!==e.actions}))})));case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"calculationOrderIds",get:function(){var e=this.catalog.acroForm;if(!e||!e.has("CO"))return(0,o.shadow)(this,"calculationOrderIds",null);var t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,o.shadow)(this,"calculationOrderIds",null);var r=t.filter(s.isRef).map((function(e){return e.toString()}));return 0===r.length?(0,o.shadow)(this,"calculationOrderIds",null):(0,o.shadow)(this,"calculationOrderIds",r)}}]),e}();t.PDFDocument=X},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getQuadPoints=R,t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(117),c=r(121),u=r(113),l=r(165),f=r(122),h=r(167),d=r(171),p=r(163),g=r(118),m=r(172);function v(e,t,r){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},v(e,t,r||e)}function y(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var a=S(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function x(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function A(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){A(i,n,a,o,s,"next",e)}function s(e){A(i,n,a,o,s,"throw",e)}o(void 0)}))}}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||T(e,t)||function(){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 T(e,t){if(e){if("string"==typeof e)return F(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t,r){return t&&_(e.prototype,t),r&&_(e,r),e}var E=function(){function e(){P(this,e)}var t;return I(e,null,[{key:"create",value:function(e,t,r,n,a){var i=this;return Promise.all([r.ensureCatalog("acroForm"),a?this._getPageIndex(e,t,r):-1]).then((function(o){var s=C(o,2),c=s[0],u=s[1];return r.ensure(i,"_create",[e,t,r,n,c,a,u])}))}},{key:"_create",value:function(e,t,r,n,a,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:-1,l=e.fetchIfRef(t);if((0,u.isDict)(l)){var f=(0,u.isRef)(t)?t.toString():"annot_".concat(n.createObjId()),h=l.get("Subtype"),d={xref:e,ref:t,dict:l,subtype:h=(0,u.isName)(h)?h.name:null,id:f,pdfManager:r,acroForm:a instanceof u.Dict?a:u.Dict.empty,collectFields:i,pageIndex:c};switch(h){case"Link":return new z(d);case"Text":return new $(d);case"Widget":var p=(0,s.getInheritableProperty)({dict:l,key:"FT"});switch(p=(0,u.isName)(p)?p.name:null){case"Tx":return new U(d);case"Btn":return new q(d);case"Ch":return new X(d);case"Sig":return new H(d)}return(0,o.warn)('Unimplemented widget field type "'.concat(p,'", ')+"falling back to base field type."),new L(d);case"Popup":return new G(d);case"FreeText":return new W(d);case"Line":return new V(d);case"Square":return new K(d);case"Circle":return new Y(d);case"PolyLine":return new J(d);case"Polygon":return new Z(d);case"Caret":return new Q(d);case"Ink":return new ee(d);case"Highlight":return new te(d);case"Underline":return new re(d);case"Squiggly":return new ne(d);case"StrikeOut":return new ae(d);case"Stamp":return new ie(d);case"FileAttachment":return new oe(d);default:return i||(h?(0,o.warn)('Unimplemented annotation type "'.concat(h,'", ')+"falling back to base annotation."):(0,o.warn)("Annotation is missing the required /Subtype.")),new N(d)}}}},{key:"_getPageIndex",value:(t=O(i.default.mark((function e(t,r,n){var a,s,c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.fetchIfRefAsync(r);case 3:if(a=e.sent,(0,u.isDict)(a)){e.next=6;break}return e.abrupt("return",-1);case 6:if(s=a.getRaw("P"),(0,u.isRef)(s)){e.next=9;break}return e.abrupt("return",-1);case 9:return e.next=11,n.ensureCatalog("getPageIndex",[s]);case 11:return c=e.sent,e.abrupt("return",c);case 15:return e.prev=15,e.t0=e.catch(0),(0,o.warn)('_getPageIndex: "'.concat(e.t0,'".')),e.abrupt("return",-1);case 19:case"end":return e.stop()}}),e,null,[[0,15]])}))),function(e,r,n){return t.apply(this,arguments)})}]),e}();function j(e){var t=new Uint8ClampedArray(3);if(!Array.isArray(e))return t;switch(e.length){case 0:return null;case 1:return f.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),t;case 3:return f.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),t;case 4:return f.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),t;default:return t}}function R(e,t){if(!e.has("QuadPoints"))return null;var r=e.getArray("QuadPoints");if(!Array.isArray(r)||0===r.length||r.length%8>0)return null;for(var n=[],a=0,i=r.length/8;a<i;a++){n.push([]);for(var o=8*a,s=8*a+8;o<s;o+=2){var c=r[o],u=r[o+1];if(null!==t&&(c<t[0]||c>t[2]||u<t[1]||u>t[3]))return null;n[a].push({x:c,y:u})}}return n.map((function(e){var t=e.reduce((function(e,t){var r=C(e,4),n=r[0],a=r[1],i=r[2],o=r[3];return[Math.min(n,t.x),Math.max(a,t.x),Math.min(i,t.y),Math.max(o,t.y)]}),[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]),r=C(t,4),n=r[0],a=r[1],i=r[2],o=r[3];return[{x:n,y:o},{x:a,y:o},{x:n,y:i},{x:a,y:i}]}))}function M(e,t,r){var n=C(o.Util.getAxialAlignedBoundingBox(t,r),4),a=n[0],i=n[1],s=n[2],c=n[3];if(a===s||i===c)return[1,0,0,1,e[0],e[1]];var u=(e[2]-e[0])/(s-a),l=(e[3]-e[1])/(c-i);return[u,0,0,l,e[0]-a*u,e[1]-i*l]}t.AnnotationFactory=E;var N=function(){function e(t){P(this,e);var r=t.dict;if(this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this._streams=[],this.appearance&&this._streams.push(this.appearance),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype},t.collectFields){var n=r.get("Kids");if(Array.isArray(n)){var a,i=[],c=x(n);try{for(c.s();!(a=c.n()).done;){var l=a.value;(0,u.isRef)(l)&&i.push(l.toString())}}catch(e){c.e(e)}finally{c.f()}0!==i.length&&(this.data.kidIds=i)}this.data.actions=(0,s.collectActions)(t.xref,r,o.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(r),this.data.pageIndex=t.pageIndex}this._fallbackFontDict=null}var t;return I(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,o.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,o.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,o.AnnotationFlag.PRINT)&&!this._hasFlag(e,o.AnnotationFlag.INVISIBLE)}},{key:"mustBeViewed",value:function(e){var t=e&&e.get(this.data.id);return t&&void 0!==t.hidden?!t.hidden:this.viewable&&!this._hasFlag(this.flags,o.AnnotationFlag.HIDDEN)}},{key:"mustBePrinted",value:function(e){var t=e&&e.get(this.data.id);return t&&void 0!==t.print?t.print:this.printable}},{key:"viewable",get:function(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}},{key:"setContents",value:function(e){this.contents=(0,o.stringToPDFString)(e||"")}},{key:"setModificationDate",value:function(e){this.modificationDate=(0,o.isString)(e)?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){Array.isArray(e)&&4===e.length?this.rectangle=o.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function(e){this.color=j(e)}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new B,(0,u.isDict)(e))if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,u.isName)(r,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){var n=e.getArray("Border");Array.isArray(n)&&n.length>=3&&(this.borderStyle.setHorizontalCornerRadius(n[0]),this.borderStyle.setVerticalCornerRadius(n[1]),this.borderStyle.setWidth(n[2],this.rectangle),4===n.length&&this.borderStyle.setDashArray(n[3]))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if((0,u.isDict)(t)){var r=t.get("N");if((0,u.isStream)(r))this.appearance=r;else if((0,u.isDict)(r)){var n=e.get("AS");(0,u.isName)(n)&&r.has(n.name)&&(this.appearance=r.get(n.name))}}}},{key:"loadResources",value:function(e){return this.appearance.dict.getAsync("Resources").then((function(t){if(t)return new d.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}},{key:"getOperatorList",value:function(e,t,r,n){var a=this;if(!this.appearance)return Promise.resolve(new p.OperatorList);var i=this.appearance,s=this.data,c=i.dict,u=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),l=c.getArray("BBox")||[0,0,1,1],f=c.getArray("Matrix")||[1,0,0,1,0,0],h=M(s.rect,l,f);return u.then((function(r){var n=new p.OperatorList;return n.addOp(o.OPS.beginAnnotation,[s.rect,h,f]),e.getOperatorList({stream:i,task:t,resources:r,operatorList:n,fallbackFontDict:a._fallbackFontDict}).then((function(){return n.addOp(o.OPS.endAnnotation,[]),a.reset(),n}))}))}},{key:"save",value:(t=O(i.default.mark((function e(t,r,n){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"getFieldObject",value:function(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex}:null}},{key:"reset",value:function(){var e,t=x(this._streams);try{for(t.s();!(e=t.n()).done;)e.value.reset()}catch(e){t.e(e)}finally{t.f()}}},{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,o.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,o.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,o.stringToPDFString)(e.get("T")));var r=e,n=new u.RefSet;for(e.objId&&n.put(e.objId);r.has("Parent")&&(r=r.get("Parent"))instanceof u.Dict&&(!r.objId||!n.has(r.objId));)r.objId&&n.put(r.objId),r.has("T")&&t.unshift((0,o.stringToPDFString)(r.get("T")));return t.join(".")}}]),e}();t.Annotation=N;var B=function(){function e(){P(this,e),this.width=1,this.style=o.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return I(e,[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,u.isName)(e))this.width=0;else if(Number.isInteger(e)){if(e>0){var r=(t[2]-t[0])/2,n=(t[3]-t[1])/2;r>0&&n>0&&(e>r||e>n)&&((0,o.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if((0,u.isName)(e))switch(e.name){case"S":this.style=o.AnnotationBorderStyleType.SOLID;break;case"D":this.style=o.AnnotationBorderStyleType.DASHED;break;case"B":this.style=o.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=o.AnnotationBorderStyleType.INSET;break;case"U":this.style=o.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function(e){if(Array.isArray(e)&&e.length>0){var t,r=!0,n=!0,a=x(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(!(+i>=0)){r=!1;break}i>0&&(n=!1)}}catch(e){a.e(e)}finally{a.f()}r&&!n?this.dashArray=e:this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}]),e}();t.AnnotationBorderStyle=B;var D=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),n=t.call(this,e);var a=e.dict;if(a.has("IRT")){var i=a.getRaw("IRT");n.data.inReplyTo=(0,u.isRef)(i)?i.toString():null;var s=a.get("RT");n.data.replyType=(0,u.isName)(s)?s.name:o.AnnotationReplyType.REPLY}if(n.data.replyType===o.AnnotationReplyType.GROUP){var c=a.get("IRT");n.data.title=(0,o.stringToPDFString)(c.get("T")||""),n.setContents(c.get("Contents")),n.data.contents=n.contents,c.has("CreationDate")?(n.setCreationDate(c.get("CreationDate")),n.data.creationDate=n.creationDate):n.data.creationDate=null,c.has("M")?(n.setModificationDate(c.get("M")),n.data.modificationDate=n.modificationDate):n.data.modificationDate=null,n.data.hasPopup=c.has("Popup"),c.has("C")?(n.setColor(c.getArray("C")),n.data.color=n.color):n.data.color=null}else n.data.title=(0,o.stringToPDFString)(a.get("T")||""),n.setCreationDate(a.get("CreationDate")),n.data.creationDate=n.creationDate,n.data.hasPopup=a.has("Popup"),a.has("C")||(n.data.color=null);return n}return I(r,[{key:"setCreationDate",value:function(e){this.creationDate=(0,o.isString)(e)?e:null}},{key:"_setDefaultAppearance",value:function(e){var t=e.xref,r=e.extra,n=e.strokeColor,a=e.fillColor,i=e.blendMode,o=e.strokeAlpha,s=e.fillAlpha,c=e.pointsCallback,l=Number.MAX_VALUE,f=Number.MAX_VALUE,h=Number.MIN_VALUE,d=Number.MIN_VALUE,p=["q"];r&&p.push(r),n&&p.push("".concat(n[0]," ").concat(n[1]," ").concat(n[2]," RG")),a&&p.push("".concat(a[0]," ").concat(a[1]," ").concat(a[2]," rg"));var m=this.data.quadPoints;m||(m=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);var v,y=x(m);try{for(y.s();!(v=y.n()).done;){var b=C(c(p,v.value),4),w=b[0],k=b[1],S=b[2],A=b[3];l=Math.min(l,w),h=Math.max(h,k),f=Math.min(f,S),d=Math.max(d,A)}}catch(e){y.e(e)}finally{y.f()}p.push("Q");var O=new u.Dict(t),T=new u.Dict(t);T.set("Subtype",u.Name.get("Form"));var F=new g.StringStream(p.join(" "));F.dict=T,O.set("Fm0",F);var P=new u.Dict(t);i&&P.set("BM",u.Name.get(i)),"number"==typeof o&&P.set("CA",o),"number"==typeof s&&P.set("ca",s);var _=new u.Dict(t);_.set("GS0",P);var I=new u.Dict(t);I.set("ExtGState",_),I.set("XObject",O);var E=new u.Dict(t);E.set("Resources",I);var j=this.data.rect=[l,f,h,d];E.set("BBox",j),this.appearance=new g.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=E,this._streams.push(this.appearance,F)}}]),r}(N);t.MarkupAnnotation=D;var L=function(e){y(l,e);var t,r,n,a=w(l);function l(e){var t;P(this,l),t=a.call(this,e);var r=e.dict,n=t.data;t.ref=e.ref,n.annotationType=o.AnnotationType.WIDGET,void 0===n.fieldName&&(n.fieldName=t._constructFieldName(r)),void 0===n.actions&&(n.actions=(0,s.collectActions)(e.xref,r,o.AnnotationActionEventType));var i=(0,s.getInheritableProperty)({dict:r,key:"V",getArray:!0});n.fieldValue=t._decodeFormValue(i);var f=(0,s.getInheritableProperty)({dict:r,key:"DV",getArray:!0});n.defaultFieldValue=t._decodeFormValue(f),n.alternativeText=(0,o.stringToPDFString)(r.get("TU")||"");var h=(0,s.getInheritableProperty)({dict:r,key:"DA"})||e.acroForm.get("DA");t._defaultAppearance=(0,o.isString)(h)?h:"",n.defaultAppearanceData=(0,c.parseDefaultAppearance)(t._defaultAppearance);var d=(0,s.getInheritableProperty)({dict:r,key:"FT"});n.fieldType=(0,u.isName)(d)?d.name:null;var p=(0,s.getInheritableProperty)({dict:r,key:"DR"}),g=e.acroForm.get("DR"),m=t.appearance&&t.appearance.dict.get("Resources");return t._fieldResources={localResources:p,acroFormResources:g,appearanceResources:m,mergedResources:u.Dict.merge({xref:e.xref,dictArray:[p,m,g],mergeSubDicts:!0})},n.fieldFlags=(0,s.getInheritableProperty)({dict:r,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.readOnly=t.hasFieldFlag(o.AnnotationFieldFlag.READONLY),n.hidden=t._hasFlag(n.annotationFlags,o.AnnotationFlag.HIDDEN),t}return I(l,[{key:"_decodeFormValue",value:function(e){return Array.isArray(e)?e.filter((function(e){return(0,o.isString)(e)})).map((function(e){return(0,o.stringToPDFString)(e)})):(0,u.isName)(e)?(0,o.stringToPDFString)(e.name):(0,o.isString)(e)?(0,o.stringToPDFString)(e):null}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getOperatorList",value:function(e,t,r,n){var a=this;return!r||this instanceof H?this._hasText?this._getAppearance(e,t,n).then((function(i){if(a.appearance&&null===i)return v(S(l.prototype),"getOperatorList",a).call(a,e,t,r,n);var s=new p.OperatorList;if(!a._defaultAppearance||null===i)return s;var c=[1,0,0,1,0,0],u=[0,0,a.data.rect[2]-a.data.rect[0],a.data.rect[3]-a.data.rect[1]],f=M(a.data.rect,u,c);s.addOp(o.OPS.beginAnnotation,[a.data.rect,f,c]);var h=new g.StringStream(i);return e.getOperatorList({stream:h,task:t,resources:a._fieldResources.mergedResources,operatorList:s}).then((function(){return s.addOp(o.OPS.endAnnotation,[]),s}))})):v(S(l.prototype),"getOperatorList",this).call(this,e,t,r,n):Promise.resolve(new p.OperatorList)}},{key:"save",value:(n=O(i.default.mark((function e(t,r,n){var a,s,c,l,f,h,d,p,g,v,y,b,w,k,S;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:if(a=n.get(this.data.id),(s=a&&a.value)!==this.data.fieldValue&&void 0!==s){e.next=6;break}return e.abrupt("return",null);case 6:return e.next=8,this._getAppearance(t,r,n);case 8:if(null!==(c=e.sent)){e.next=11;break}return e.abrupt("return",null);case 11:if(l=t.xref,f=l.fetchIfRef(this.ref),(0,u.isDict)(f)){e.next=15;break}return e.abrupt("return",null);case 15:return h=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],d={path:(0,o.stringToPDFString)(f.get("T")||""),value:s},p=l.getNewRef(),(g=new u.Dict(l)).set("N",p),v=l.encrypt,y=null,b=null,v&&(y=v.createCipherTransform(this.ref.num,this.ref.gen),b=v.createCipherTransform(p.num,p.gen),c=b.encryptString(c)),f.set("V",(0,o.isAscii)(s)?s:(0,o.stringToUTF16BEString)(s)),f.set("AP",g),f.set("M","D:".concat((0,o.getModificationDate)())),(w=new u.Dict(l)).set("Length",c.length),w.set("Subtype",u.Name.get("Form")),w.set("Resources",this._getSaveFieldResources(l)),w.set("BBox",h),k=["".concat(this.ref.num," ").concat(this.ref.gen," obj\\n")],(0,m.writeDict)(f,k,y),k.push("\\nendobj\\n"),S=["".concat(p.num," ").concat(p.gen," obj\\n")],(0,m.writeDict)(w,S,b),S.push(" stream\\n",c,"\\nendstream\\nendobj\\n"),e.abrupt("return",[{ref:this.ref,data:k.join(""),xfa:d},{ref:p,data:S.join(""),xfa:null}]);case 39:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_getAppearance",value:(r=O(i.default.mark((function e(t,r,n){var a,s,u,l,f,h,d,p,g,m,v,y,b,w,k,S,x,A;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD),n&&!a){e.next=3;break}return e.abrupt("return",null);case 3:if(s=n.get(this.data.id),void 0!==(u=s&&s.value)){e.next=7;break}return e.abrupt("return",null);case 7:if(""!==(u=u.trim())){e.next=10;break}return e.abrupt("return","");case 10:return l=-1,this.data.multiLine&&(l=u.split(/\\r\\n|\\r|\\n/).length),h=f=2,d=this.data.rect[3]-this.data.rect[1],p=this.data.rect[2]-this.data.rect[0],this._defaultAppearance||(this.data.defaultAppearanceData=(0,c.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")),g=this._computeFontSize(d,l),m=C(g,2),v=m[0],y=m[1],e.next=20,this._getFontData(t,r);case 20:if(b=e.sent,w=b.descent,isNaN(w)&&(w=0),k=f+Math.abs(w)*y,S=this.data.textAlignment,!this.data.multiLine){e.next=27;break}return e.abrupt("return",this._getMultilineAppearance(v,u,b,y,p,d,S,h,k));case 27:if(x=b.encodeString(u).join(""),!this.data.comb){e.next=30;break}return e.abrupt("return",this._getCombAppearance(v,b,x,p,h,k));case 30:if(!(0===S||S>2)){e.next=32;break}return e.abrupt("return","/Tx BMC q BT "+v+" 1 0 0 1 ".concat(h," ").concat(k," Tm (").concat((0,o.escapeString)(x),") Tj")+" ET Q EMC");case 32:return A=this._renderText(x,b,y,p,S,h,k),e.abrupt("return","/Tx BMC q BT "+v+" 1 0 0 1 0 0 Tm ".concat(A)+" ET Q EMC");case 34:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"_getFontData",value:(t=O(i.default.mark((function e(t,r){var n,a,o,s,c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new p.OperatorList,a={font:null,clone:function(){return this}},o=this.data.defaultAppearanceData,s=o.fontName,c=o.fontSize,e.next=5,t.handleSetFont(this._fieldResources.mergedResources,[s&&u.Name.get(s),c],null,n,r,a,null);case 5:return e.abrupt("return",a.font);case 6:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"_computeFontSize",value:function(e,t){var r=this.data.defaultAppearanceData.fontSize;if(!r){var n=function(e){return Math.round(10*e)/10};if(-1===t)r=n(.8*e);else{var a=(r=10)/.8,i=Math.round(e/a);r=n(.8*(a=e/(i=Math.max(i,t))))}var o=this.data.defaultAppearanceData,s=o.fontName,u=o.fontColor;this._defaultAppearance=(0,c.createDefaultAppearance)({fontSize:r,fontName:s,fontColor:u})}return[this._defaultAppearance,r]}},{key:"_renderText",value:function(e,t,r,n,a,i,s){var c,u,l=r/1e3,f=0,h=x(t.charsToGlyphs(e));try{for(h.s();!(c=h.n()).done;)f+=c.value.width*l}catch(e){h.e(e)}finally{h.f()}return u=(u=1===a?(n-f)/2:2===a?n-f-i:i).toFixed(2),s=s.toFixed(2),"".concat(u," ").concat(s," Td (").concat((0,o.escapeString)(e),") Tj")}},{key:"_getSaveFieldResources",value:function(e){var t=this._fieldResources,r=t.localResources,n=t.appearanceResources,a=t.acroFormResources,i=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!i)return r||u.Dict.empty;for(var o=0,s=[r,n];o<s.length;o++){var c=s[o];if(c instanceof u.Dict){var l=c.get("Font");if(l instanceof u.Dict&&l.has(i))return c}}if(a instanceof u.Dict){var f=a.get("Font");if(f instanceof u.Dict&&f.has(i)){var h=new u.Dict(e);h.set(i,f.getRaw(i));var d=new u.Dict(e);return d.set("Font",h),u.Dict.merge({xref:e,dictArray:[d,r],mergeSubDicts:!0})}}return r||u.Dict.empty}},{key:"getFieldObject",value:function(){return null}}]),l}(N),U=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),(n=t.call(this,e))._hasText=!0;var a=e.dict;(0,o.isString)(n.data.fieldValue)||(n.data.fieldValue="");var i=(0,s.getInheritableProperty)({dict:a,key:"Q"});(!Number.isInteger(i)||i<0||i>2)&&(i=null),n.data.textAlignment=i;var c=(0,s.getInheritableProperty)({dict:a,key:"MaxLen"});return(!Number.isInteger(c)||c<0)&&(c=null),n.data.maxLen=c,n.data.multiLine=n.hasFieldFlag(o.AnnotationFieldFlag.MULTILINE),n.data.comb=n.hasFieldFlag(o.AnnotationFieldFlag.COMB)&&!n.hasFieldFlag(o.AnnotationFieldFlag.MULTILINE)&&!n.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD)&&!n.hasFieldFlag(o.AnnotationFieldFlag.FILESELECT)&&null!==n.data.maxLen,n}return I(r,[{key:"_getCombAppearance",value:function(e,t,r,n,a,i){var s,c=(n/this.data.maxLen).toFixed(2),u=[],l=x(t.getCharPositions(r));try{for(l.s();!(s=l.n()).done;){var f=C(s.value,2),h=f[0],d=f[1];u.push("(".concat((0,o.escapeString)(r.substring(h,d)),") Tj"))}}catch(e){l.e(e)}finally{l.f()}var p=u.join(" ".concat(c," 0 Td "));return"/Tx BMC q BT "+e+" 1 0 0 1 ".concat(a," ").concat(i," Tm ").concat(p)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function(e,t,r,n,a,i,o,s,c){var u,l=[],f=a-2*s,h=x(t.split(/\\r\\n|\\r|\\n/));try{for(h.s();!(u=h.n()).done;){var d,p=u.value,g=x(this._splitLine(p,r,n,f));try{for(g.s();!(d=g.n()).done;){var m=d.value,v=0===l.length?s:0;l.push(this._renderText(m,r,n,a,o,v,-n))}}catch(e){g.e(e)}finally{g.f()}}}catch(e){h.e(e)}finally{h.f()}var y=l.join("\\n");return"/Tx BMC q BT "+e+" 1 0 0 1 0 ".concat(i," Tm ").concat(y)+" ET Q EMC"}},{key:"_splitLine",value:function(e,t,r,n){e=t.encodeString(e).join("");var a=t.charsToGlyphs(e);if(a.length<=1)return[e];for(var i=t.getCharPositions(e),o=r/1e3,s=[],c=-1,u=-1,l=-1,f=0,h=0,d=0,p=a.length;d<p;d++){var g=C(i[d],2),m=g[0],v=g[1],y=a[d],b=y.width*o;" "===y.unicode?h+b>n?(s.push(e.substring(f,m)),f=m,h=b,c=-1,l=-1):(h+=b,c=m,u=v,l=d):h+b>n?-1!==c?(s.push(e.substring(f,u)),f=u,d=l+1,c=-1,h=0):(s.push(e.substring(f,m)),f=m,h=b):h+=b}return f<e.length&&s.push(e.substring(f,e.length)),s}},{key:"getFieldObject",value:function(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue,multiline:this.data.multiLine,password:this.hasFieldFlag(o.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,type:"text"}}}]),r}(L),q=function(e){y(s,e);var t,r,n,a=w(s);function s(e){var t;return P(this,s),(t=a.call(this,e)).checkedAppearance=null,t.uncheckedAppearance=null,t.data.checkBox=!t.hasFieldFlag(o.AnnotationFieldFlag.RADIO)&&!t.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON),t.data.radioButton=t.hasFieldFlag(o.AnnotationFieldFlag.RADIO)&&!t.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON),t.data.pushButton=t.hasFieldFlag(o.AnnotationFieldFlag.PUSHBUTTON),t.data.isTooltipOnly=!1,t.data.checkBox?t._processCheckBox(e):t.data.radioButton?t._processRadioButton(e):t.data.pushButton?t._processPushButton(e):(0,o.warn)("Invalid field flags for button widget annotation"),t}return I(s,[{key:"getOperatorList",value:function(e,t,r,n){if(this.data.pushButton)return v(S(s.prototype),"getOperatorList",this).call(this,e,t,!1,n);if(n){var a,i=n.get(this.data.id),o=i&&i.value;if(void 0===o)return v(S(s.prototype),"getOperatorList",this).call(this,e,t,r,n);if(a=o?this.checkedAppearance:this.uncheckedAppearance){var c=this.appearance;this.appearance=a;var u=v(S(s.prototype),"getOperatorList",this).call(this,e,t,r,n);return this.appearance=c,u}return Promise.resolve(new p.OperatorList)}return v(S(s.prototype),"getOperatorList",this).call(this,e,t,r,n)}},{key:"save",value:(n=O(i.default.mark((function e(t,r,n){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.data.checkBox){e.next=2;break}return e.abrupt("return",this._saveCheckbox(t,r,n));case 2:if(!this.data.radioButton){e.next=4;break}return e.abrupt("return",this._saveRadioButton(t,r,n));case 4:return e.abrupt("return",null);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_saveCheckbox",value:(r=O(i.default.mark((function e(t,r,n){var a,s,c,l,f,h,d,p;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:if(a=n.get(this.data.id),void 0!==(s=a&&a.value)){e.next=6;break}return e.abrupt("return",null);case 6:if((this.data.fieldValue&&"Off"!==this.data.fieldValue)!==s){e.next=9;break}return e.abrupt("return",null);case 9:if(c=t.xref.fetchIfRef(this.ref),(0,u.isDict)(c)){e.next=12;break}return e.abrupt("return",null);case 12:return l={path:(0,o.stringToPDFString)(c.get("T")||""),value:s?this.data.exportValue:""},f=u.Name.get(s?this.data.exportValue:"Off"),c.set("V",f),c.set("AS",f),c.set("M","D:".concat((0,o.getModificationDate)())),h=t.xref.encrypt,d=null,h&&(d=h.createCipherTransform(this.ref.num,this.ref.gen)),p=["".concat(this.ref.num," ").concat(this.ref.gen," obj\\n")],(0,m.writeDict)(c,p,d),p.push("\\nendobj\\n"),e.abrupt("return",[{ref:this.ref,data:p.join(""),xfa:l}]);case 24:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"_saveRadioButton",value:(t=O(i.default.mark((function e(t,r,n){var a,s,c,l,f,h,d,p,g,v,y,b;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:if(a=n.get(this.data.id),void 0!==(s=a&&a.value)){e.next=6;break}return e.abrupt("return",null);case 6:if(this.data.fieldValue===this.data.buttonValue!==s){e.next=9;break}return e.abrupt("return",null);case 9:if(c=t.xref.fetchIfRef(this.ref),(0,u.isDict)(c)){e.next=12;break}return e.abrupt("return",null);case 12:return l={path:(0,o.stringToPDFString)(c.get("T")||""),value:s?this.data.buttonValue:""},f=u.Name.get(s?this.data.buttonValue:"Off"),h=null,d=t.xref.encrypt,s&&((0,u.isRef)(this.parent)?(p=t.xref.fetch(this.parent),g=null,d&&(g=d.createCipherTransform(this.parent.num,this.parent.gen)),p.set("V",f),h=["".concat(this.parent.num," ").concat(this.parent.gen," obj\\n")],(0,m.writeDict)(p,h,g),h.push("\\nendobj\\n")):(0,u.isDict)(this.parent)&&this.parent.set("V",f)),c.set("AS",f),c.set("M","D:".concat((0,o.getModificationDate)())),v=null,d&&(v=d.createCipherTransform(this.ref.num,this.ref.gen)),y=["".concat(this.ref.num," ").concat(this.ref.gen," obj\\n")],(0,m.writeDict)(c,y,v),y.push("\\nendobj\\n"),b=[{ref:this.ref,data:y.join(""),xfa:l}],null!==h&&b.push({ref:this.parent,data:h.join(""),xfa:null}),e.abrupt("return",b);case 27:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"_processCheckBox",value:function(e){var t=e.dict.get("AP");if((0,u.isDict)(t)){var r=t.get("N");if((0,u.isDict)(r)){var n=r.getKeys();n.includes("Off")||n.push("Off"),2===n.length&&(this.data.exportValue="Off"===n[0]?n[1]:n[0],this.checkedAppearance=r.get(this.data.exportValue),this.uncheckedAppearance=r.get("Off")||null,this._streams.push(this.checkedAppearance),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict)}}}},{key:"_processRadioButton",value:function(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,u.isDict)(t)){this.parent=e.dict.getRaw("Parent");var r=t.get("V");(0,u.isName)(r)&&(this.data.fieldValue=this._decodeFormValue(r))}var n=e.dict.get("AP");if((0,u.isDict)(n)){var a=n.get("N");if((0,u.isDict)(a)){var i,o=x(a.getKeys());try{for(o.s();!(i=o.n()).done;){var s=i.value;if("Off"!==s){this.data.buttonValue=this._decodeFormValue(s);break}}}catch(e){o.e(e)}finally{o.f()}this.checkedAppearance=a.get(this.data.buttonValue),this.uncheckedAppearance=a.get("Off")||null,this._streams.push(this.checkedAppearance),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}}},{key:"_processPushButton",value:function(e){e.dict.has("A")||e.dict.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!e.dict.has("A")&&!e.dict.has("AA"),l.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl})):(0,o.warn)("Push buttons without action dictionaries are not supported")}},{key:"getFieldObject",value:function(){var e,t="button";return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,type:t}}},{key:"fallbackFontDict",get:function(){var e=new u.Dict;return e.set("BaseFont",u.Name.get("ZapfDingbats")),e.set("Type",u.Name.get("FallbackType")),e.set("Subtype",u.Name.get("FallbackType")),e.set("Encoding",u.Name.get("ZapfDingbatsEncoding")),(0,o.shadow)(this,"fallbackFontDict",e)}}]),s}(L),X=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.options=[];var a=(0,s.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(a))for(var i=e.xref,c=0,u=a.length;c<u;c++){var l=i.fetchIfRef(a[c]),f=Array.isArray(l);n.data.options[c]={exportValue:n._decodeFormValue(f?i.fetchIfRef(l[0]):l),displayValue:n._decodeFormValue(f?i.fetchIfRef(l[1]):l)}}return(0,o.isString)(n.data.fieldValue)?n.data.fieldValue=[n.data.fieldValue]:n.data.fieldValue||(n.data.fieldValue=[]),n.data.combo=n.hasFieldFlag(o.AnnotationFieldFlag.COMBO),n.data.multiSelect=n.hasFieldFlag(o.AnnotationFieldFlag.MULTISELECT),n._hasText=!0,n}return I(r,[{key:"getFieldObject",value:function(){var e=this.data.combo?"combobox":"listbox",t=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,type:e}}}]),r}(L),H=function(e){y(r,e);var t=w(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.fieldValue=null,n}return I(r,[{key:"getFieldObject",value:function(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}]),r}(L),$=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),n=t.call(this,e);var a=e.dict;return n.data.annotationType=o.AnnotationType.TEXT,n.data.hasAppearance?n.data.name="NoIcon":(n.data.rect[1]=n.data.rect[3]-22,n.data.rect[2]=n.data.rect[0]+22,n.data.name=a.has("Name")?a.get("Name").name:"Note"),a.has("State")?(n.data.state=a.get("State")||null,n.data.stateModel=a.get("StateModel")||null):(n.data.state=null,n.data.stateModel=null),n}return r}(D),z=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.LINK;var a=R(e.dict,n.rectangle);return a&&(n.data.quadPoints=a),l.Catalog.parseDestDictionary({destDict:e.dict,resultObj:n.data,docBaseUrl:e.pdfManager.docBaseUrl}),n}return r}(N),G=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.POPUP;var a=e.dict.get("Parent");if(!a)return(0,o.warn)("Popup annotation has a missing or invalid parent annotation."),k(n);var i=a.get("Subtype");n.data.parentType=(0,u.isName)(i)?i.name:null;var s=e.dict.getRaw("Parent");n.data.parentId=(0,u.isRef)(s)?s.toString():null;var c=a.getArray("Rect");Array.isArray(c)&&4===c.length?n.data.parentRect=o.Util.normalizeRect(c):n.data.parentRect=[0,0,0,0];var l=a.get("RT");if((0,u.isName)(l,o.AnnotationReplyType.GROUP)&&(a=a.get("IRT")),a.has("M")?(n.setModificationDate(a.get("M")),n.data.modificationDate=n.modificationDate):n.data.modificationDate=null,a.has("C")?(n.setColor(a.getArray("C")),n.data.color=n.color):n.data.color=null,!n.viewable){var f=a.get("F");n._isViewable(f)&&n.setFlags(f)}return n.data.title=(0,o.stringToPDFString)(a.get("T")||""),n.data.contents=(0,o.stringToPDFString)(a.get("Contents")||""),n}return r}(N),W=function(e){y(r,e);var t=w(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.FREETEXT,n}return r}(D),V=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.LINE;var a=e.dict.getArray("L");if(n.data.lineCoordinates=o.Util.normalizeRect(a),!n.appearance){var i=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],s=e.dict.get("CA"),c=null,u=e.dict.getArray("IC");u&&(c=(u=j(u))?Array.from(u).map((function(e){return e/255})):null);var l=c?s:null,f=n.borderStyle.width||1,h=2*f,d=[n.data.lineCoordinates[0]-h,n.data.lineCoordinates[1]-h,n.data.lineCoordinates[2]+h,n.data.lineCoordinates[3]+h];o.Util.intersect(n.rectangle,d)||(n.rectangle=d),n._setDefaultAppearance({xref:e.xref,extra:"".concat(f," w"),strokeColor:i,fillColor:c,strokeAlpha:s,fillAlpha:l,pointsCallback:function(e,t){return e.push("".concat(a[0]," ").concat(a[1]," m"),"".concat(a[2]," ").concat(a[3]," l"),"S"),[t[0].x-f,t[1].x+f,t[3].y-f,t[1].y+f]}})}return n}return r}(D),K=function(e){y(r,e);var t=w(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.SQUARE,!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA"),s=null,c=e.dict.getArray("IC");c&&(c=j(c),s=c?Array.from(c).map((function(e){return e/255})):null);var u=s?i:null;n._setDefaultAppearance({xref:e.xref,extra:"".concat(n.borderStyle.width," w"),strokeColor:a,fillColor:s,strokeAlpha:i,fillAlpha:u,pointsCallback:function(e,t){var r=t[2].x+n.borderStyle.width/2,a=t[2].y+n.borderStyle.width/2,i=t[3].x-t[2].x-n.borderStyle.width,o=t[1].y-t[3].y-n.borderStyle.width;return e.push("".concat(r," ").concat(a," ").concat(i," ").concat(o," re")),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return r}(D),Y=function(e){y(r,e);var t=w(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.CIRCLE,!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA"),s=null,c=e.dict.getArray("IC");c&&(c=j(c),s=c?Array.from(c).map((function(e){return e/255})):null);var u=s?i:null,l=4/3*Math.tan(Math.PI/8);n._setDefaultAppearance({xref:e.xref,extra:"".concat(n.borderStyle.width," w"),strokeColor:a,fillColor:s,strokeAlpha:i,fillAlpha:u,pointsCallback:function(e,t){var r=t[0].x+n.borderStyle.width/2,a=t[0].y-n.borderStyle.width/2,i=t[3].x-n.borderStyle.width/2,o=t[3].y+n.borderStyle.width/2,c=r+(i-r)/2,u=a+(o-a)/2,f=(i-r)/2*l,h=(o-a)/2*l;return e.push("".concat(c," ").concat(o," m"),"".concat(c+f," ").concat(o," ").concat(i," ").concat(u+h," ").concat(i," ").concat(u," c"),"".concat(i," ").concat(u-h," ").concat(c+f," ").concat(a," ").concat(c," ").concat(a," c"),"".concat(c-f," ").concat(a," ").concat(r," ").concat(u-h," ").concat(r," ").concat(u," c"),"".concat(r," ").concat(u+h," ").concat(c-f," ").concat(o," ").concat(c," ").concat(o," c"),"h"),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return r}(D),J=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.POLYLINE,n.data.vertices=[];var a=e.dict.getArray("Vertices");if(!Array.isArray(a))return k(n);for(var i=0,s=a.length;i<s;i+=2)n.data.vertices.push({x:a[i],y:a[i+1]});if(!n.appearance){var c,u=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],l=e.dict.get("CA"),f=n.borderStyle.width||1,h=2*f,d=[1/0,1/0,-1/0,-1/0],p=x(n.data.vertices);try{for(p.s();!(c=p.n()).done;){var g=c.value;d[0]=Math.min(d[0],g.x-h),d[1]=Math.min(d[1],g.y-h),d[2]=Math.max(d[2],g.x+h),d[3]=Math.max(d[3],g.y+h)}}catch(e){p.e(e)}finally{p.f()}o.Util.intersect(n.rectangle,d)||(n.rectangle=d),n._setDefaultAppearance({xref:e.xref,extra:"".concat(f," w"),strokeColor:u,strokeAlpha:l,pointsCallback:function(e,t){for(var r=n.data.vertices,a=0,i=r.length;a<i;a++)e.push("".concat(r[a].x," ").concat(r[a].y," ").concat(0===a?"m":"l"));return e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return r}(D),Z=function(e){y(r,e);var t=w(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.POLYGON,n}return r}(J),Q=function(e){y(r,e);var t=w(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.CARET,n}return r}(D),ee=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.INK,n.data.inkLists=[];var a=e.dict.getArray("InkList");if(!Array.isArray(a))return k(n);for(var i=e.xref,s=0,c=a.length;s<c;++s){n.data.inkLists.push([]);for(var u=0,l=a[s].length;u<l;u+=2)n.data.inkLists[s].push({x:i.fetchIfRef(a[s][u]),y:i.fetchIfRef(a[s][u+1])})}if(!n.appearance){var f,h=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],d=e.dict.get("CA"),p=n.borderStyle.width||1,g=2*p,m=[1/0,1/0,-1/0,-1/0],v=x(n.data.inkLists);try{for(v.s();!(f=v.n()).done;){var y,b=x(f.value);try{for(b.s();!(y=b.n()).done;){var w=y.value;m[0]=Math.min(m[0],w.x-g),m[1]=Math.min(m[1],w.y-g),m[2]=Math.max(m[2],w.x+g),m[3]=Math.max(m[3],w.y+g)}}catch(e){b.e(e)}finally{b.f()}}}catch(e){v.e(e)}finally{v.f()}o.Util.intersect(n.rectangle,m)||(n.rectangle=m),n._setDefaultAppearance({xref:e.xref,extra:"".concat(p," w"),strokeColor:h,strokeAlpha:d,pointsCallback:function(e,t){var r,a=x(n.data.inkLists);try{for(a.s();!(r=a.n()).done;){for(var i=r.value,o=0,s=i.length;o<s;o++)e.push("".concat(i[o].x," ").concat(i[o].y," ").concat(0===o?"m":"l"));e.push("S")}}catch(e){a.e(e)}finally{a.f()}return[t[0].x,t[1].x,t[3].y,t[1].y]}})}return n}return r}(D),te=function(e){y(r,e);var t=w(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.HIGHLIGHT,n.data.quadPoints=R(e.dict,null)){var a=n.appearance&&n.appearance.dict.get("Resources");if(!n.appearance||!a||!a.has("ExtGState")){n.appearance&&(0,o.warn)("HighlightAnnotation - ignoring built-in appearance stream.");var i=n.color?Array.from(n.color).map((function(e){return e/255})):[1,1,0],s=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,fillColor:i,blendMode:"Multiply",fillAlpha:s,pointsCallback:function(e,t){return e.push("".concat(t[0].x," ").concat(t[0].y," m"),"".concat(t[1].x," ").concat(t[1].y," l"),"".concat(t[3].x," ").concat(t[3].y," l"),"".concat(t[2].x," ").concat(t[2].y," l"),"f"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return r}(D),re=function(e){y(r,e);var t=w(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.UNDERLINE,n.data.quadPoints=R(e.dict,null)){if(!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:i,pointsCallback:function(e,t){return e.push("".concat(t[2].x," ").concat(t[2].y," m"),"".concat(t[3].x," ").concat(t[3].y," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return r}(D),ne=function(e){y(r,e);var t=w(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.SQUIGGLY,n.data.quadPoints=R(e.dict,null)){if(!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:i,pointsCallback:function(e,t){var r=(t[0].y-t[2].y)/6,n=r,a=t[2].x,i=t[2].y,o=t[3].x;e.push("".concat(a," ").concat(i+n," m"));do{a+=2,n=0===n?r:0,e.push("".concat(a," ").concat(i+n," l"))}while(a<o);return e.push("S"),[t[2].x,o,i-2*r,i+2*r]}})}}else n.data.hasPopup=!1;return n}return r}(D),ae=function(e){y(r,e);var t=w(r);function r(e){var n;if(P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.STRIKEOUT,n.data.quadPoints=R(e.dict,null)){if(!n.appearance){var a=n.color?Array.from(n.color).map((function(e){return e/255})):[0,0,0],i=e.dict.get("CA");n._setDefaultAppearance({xref:e.xref,extra:"[] 0 d 1 w",strokeColor:a,strokeAlpha:i,pointsCallback:function(e,t){return e.push("".concat((t[0].x+t[2].x)/2," ")+"".concat((t[0].y+t[2].y)/2," m"),"".concat((t[1].x+t[3].x)/2," ")+"".concat((t[1].y+t[3].y)/2," l"),"S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}else n.data.hasPopup=!1;return n}return r}(D),ie=function(e){y(r,e);var t=w(r);function r(e){var n;return P(this,r),(n=t.call(this,e)).data.annotationType=o.AnnotationType.STAMP,n}return r}(D),oe=function(e){y(r,e);var t=w(r);function r(e){var n;P(this,r),n=t.call(this,e);var a=new h.FileSpec(e.dict.get("FS"),e.xref);return n.data.annotationType=o.AnnotationType.FILEATTACHMENT,n.data.file=a.serializable,n}return r}(D)},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultAppearance=function(e){var t,r=e.fontSize,n=e.fontName,a=e.fontColor;return t=a.every((function(e){return 0===e}))?"0 g":Array.from(a).map((function(e){return(e/255).toFixed(2)})).join(" ")+" rg","/".concat((0,o.escapePDFName)(n)," ").concat(r," Tf ").concat(t)},t.parseDefaultAppearance=function(e){return new v(e).parse()};var a=r(4),i=r(122),o=r(117),s=r(123),c=r(113),u=r(118);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){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){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,r,n,o=p(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,new u.StringStream(e))}return t=s,(r=[{key:"parse",value:function(){var e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;e.args.length=0,this.read(e);)if(0===this.savedStatesDepth){var r=e.fn,n=e.args;switch(0|r){case a.OPS.setFont:var o=l(n,2),s=o[0],u=o[1];s instanceof c.Name&&(t.fontName=s.name),"number"==typeof u&&u>0&&(t.fontSize=u);break;case a.OPS.setFillRGBColor:i.ColorSpace.singletons.rgb.getRgbItem(n,0,t.fontColor,0);break;case a.OPS.setFillGray:i.ColorSpace.singletons.gray.getRgbItem(n,0,t.fontColor,0);break;case a.OPS.setFillColorSpace:i.ColorSpace.singletons.cmyk.getRgbItem(n,0,t.fontColor,0)}}}catch(e){(0,a.warn)('parseDefaultAppearance - ignoring errors: "'.concat(e,'".'))}return t}}])&&h(t.prototype,r),n&&h(t,n),s}(s.EvaluatorPreprocessor)},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(113),c=r(117);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 f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&m(e.prototype,t),r&&m(e,r),e}var y=function(){function e(t,r){g(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize ColorSpace."),this.name=t,this.numComps=r}var t,r;return v(e,[{key:"getRgb",value:function(e,t){var r=new Uint8ClampedArray(3);return this.getRgbItem(e,t,r,0),r}},{key:"getRgbItem",value:function(e,t,r,n){(0,o.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,s){(0,o.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function(e,t){(0,o.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function(e){return!1}},{key:"isDefaultDecode",value:function(t,r){return e.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function(e,t,r,n,a,i,o,s,c){var u=t*r,l=null,f=1<<o,h=r!==a||t!==n;if(this.isPassthrough(o))l=s;else if(1===this.numComps&&u>f&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var d=o<=8?new Uint8Array(f):new Uint16Array(f),p=0;p<f;p++)d[p]=p;var g=new Uint8ClampedArray(3*f);if(this.getRgbBuffer(d,0,f,g,0,o,0),h){l=new Uint8Array(3*u);for(var m=0,v=0;v<u;++v){var y=3*s[v];l[m++]=g[y],l[m++]=g[y+1],l[m++]=g[y+2]}}else for(var b=0,w=0;w<u;++w){var k=3*s[w];e[b++]=g[k],e[b++]=g[k+1],e[b++]=g[k+2],b+=c}}else h?(l=new Uint8ClampedArray(3*u),this.getRgbBuffer(s,0,u,l,0,o,0)):this.getRgbBuffer(s,0,n*i,e,0,o,c);if(l)if(h)!function(e,t,r,n,a,i,o){o=1!==o?0:o;for(var s,c=r/a,u=n/i,l=0,f=new Uint16Array(a),h=3*r,d=0;d<a;d++)f[d]=3*Math.floor(d*c);for(var p=0;p<i;p++)for(var g=Math.floor(p*u)*h,m=0;m<a;m++)s=g+f[m],t[l++]=e[s++],t[l++]=e[s++],t[l++]=e[s++],l+=o}(l,e,t,r,n,a,c);else for(var S=0,x=0,A=0,O=n*i;A<O;A++)e[S++]=l[x++],e[S++]=l[x++],e[S++]=l[x++],S+=c}},{key:"usesZeroToOneRange",get:function(){return(0,o.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function(e,t,r,n){if(!r)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!n)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');var a,i;e instanceof s.Ref&&(i=e,e=t.fetch(e)),e instanceof s.Name&&(a=e.name),(a||i)&&r.set(a,i,n)}},{key:"getCached",value:function(e,t,r){if(!r)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(e instanceof s.Ref){var n=r.getByRef(e);if(n)return n;try{e=t.fetch(e)}catch(e){if(e instanceof c.MissingDataException)throw e}}if(e instanceof s.Name){var a=r.getByName(e.name);if(a)return a}return null}},{key:"parseAsync",value:(t=i.default.mark((function e(t){var r,n,a,o,s,c,u;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cs,n=t.xref,a=t.resources,o=void 0===a?null:a,s=t.pdfFunctionFactory,c=t.localColorSpaceCache,u=this._parse(r,n,o,s),this._cache(r,n,c,u),e.abrupt("return",u);case 4:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(e){p(i,n,a,o,s,"next",e)}function s(e){p(i,n,a,o,s,"throw",e)}o(void 0)}))},function(e){return r.apply(this,arguments)})},{key:"parse",value:function(e){var t=e.cs,r=e.xref,n=e.resources,a=void 0===n?null:n,i=e.pdfFunctionFactory,o=e.localColorSpaceCache,s=this.getCached(t,r,o);if(s)return s;var c=this._parse(t,r,a,i);return this._cache(t,r,o,c),c}},{key:"_parse",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;if(e=t.fetchIfRef(e),(0,s.isName)(e))switch(e.name){case"DeviceGray":case"G":return this.singletons.gray;case"DeviceRGB":case"RGB":return this.singletons.rgb;case"DeviceCMYK":case"CMYK":return this.singletons.cmyk;case"Pattern":return new w(null);default:if((0,s.isDict)(r)){var a=r.get("ColorSpace");if((0,s.isDict)(a)){var i=a.get(e.name);if(i){if((0,s.isName)(i))return this._parse(i,t,r,n);e=i;break}}}throw new o.FormatError("Unrecognized ColorSpace: ".concat(e.name))}if(Array.isArray(e)){var c,u,l,f,h,d,p=t.fetchIfRef(e[0]).name;switch(p){case"DeviceGray":case"G":return this.singletons.gray;case"DeviceRGB":case"RGB":return this.singletons.rgb;case"DeviceCMYK":case"CMYK":return this.singletons.cmyk;case"CalGray":return f=(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=c.getArray("BlackPoint"),d=c.get("Gamma"),new O(f,h,d);case"CalRGB":f=(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=c.getArray("BlackPoint"),d=c.getArray("Gamma");var g=c.getArray("Matrix");return new C(f,h,d,g);case"ICCBased":var m=t.fetchIfRef(e[1]),v=m.dict;u=v.get("N");var y=v.get("Alternate");if(y){var S=this._parse(y,t,r,n);if(S.numComps===u)return S;(0,o.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===u)return this.singletons.gray;if(3===u)return this.singletons.rgb;if(4===u)return this.singletons.cmyk;break;case"Pattern":return(l=e[1]||null)&&(l=this._parse(l,t,r,n)),new w(l);case"Indexed":case"I":l=this._parse(e[1],t,r,n);var x=t.fetchIfRef(e[2])+1,A=t.fetchIfRef(e[3]);return new k(l,x,A);case"Separation":case"DeviceN":var F=t.fetchIfRef(e[1]);u=Array.isArray(F)?F.length:1,l=this._parse(e[2],t,r,n);var P=n.create(e[3]);return new b(u,l,P);case"Lab":f=(c=t.fetchIfRef(e[1])).getArray("WhitePoint"),h=c.getArray("BlackPoint");var _=c.getArray("Range");return new T(f,h,_);default:throw new o.FormatError("Unimplemented ColorSpace object: ".concat(p))}}throw new o.FormatError("Unrecognized ColorSpace object: ".concat(e))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,o.warn)("The decode map is not the correct length"),!0;for(var r=0,n=e.length;r<n;r+=2)if(0!==e[r]||1!==e[r+1])return!1;return!0}},{key:"singletons",get:function(){return(0,o.shadow)(this,"singletons",{get gray(){return(0,o.shadow)(this,"gray",new S)},get rgb(){return(0,o.shadow)(this,"rgb",new x)},get cmyk(){return(0,o.shadow)(this,"cmyk",new A)}})}}]),e}();t.ColorSpace=y;var b=function(e){u(r,e);var t=f(r);function r(e,n,a){var i;return g(this,r),(i=t.call(this,"Alternate",e)).base=n,i.tintFn=a,i.tmpBuf=new Float32Array(n.numComps),i}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){var a=this.tmpBuf;this.tintFn(e,t,a,0),this.base.getRgbItem(a,0,r,n)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){var s,c,u=this.tintFn,l=this.base,f=1/((1<<i)-1),h=l.numComps,d=l.usesZeroToOneRange,p=(l.isPassthrough(8)||!d)&&0===o,g=p?a:0,m=p?n:new Uint8ClampedArray(h*r),v=this.numComps,y=new Float32Array(v),b=new Float32Array(h);for(s=0;s<r;s++){for(c=0;c<v;c++)y[c]=e[t++]*f;if(u(y,0,b,0),d)for(c=0;c<h;c++)m[g++]=255*b[c];else l.getRgbItem(b,0,m,g),g+=h}p||l.getRgbBuffer(m,0,r,n,a,8,o)}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}]),r}(y),w=function(e){u(r,e);var t=f(r);function r(e){var n;return g(this,r),(n=t.call(this,"Pattern",null)).base=e,n}return v(r,[{key:"isDefaultDecode",value:function(e,t){(0,o.unreachable)("Should not call PatternCS.isDefaultDecode")}}]),r}(y),k=function(e){u(r,e);var t=f(r);function r(e,n,a){var i;g(this,r),(i=t.call(this,"Indexed",1)).base=e,i.highVal=n;var c=e.numComps*n;if(i.lookup=new Uint8Array(c),(0,s.isStream)(a)){var u=a.getBytes(c);i.lookup.set(u)}else{if("string"!=typeof a)throw new o.FormatError("IndexedCS - unrecognized lookup table: ".concat(a));for(var l=0;l<c;++l)i.lookup[l]=255&a.charCodeAt(l)}return i}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){var a=this.base.numComps,i=e[t]*a;this.base.getRgbBuffer(this.lookup,i,1,r,n,8,0)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=this.base,c=s.numComps,u=s.getOutputLength(c,o),l=this.lookup,f=0;f<r;++f){var h=e[t++]*c;s.getRgbBuffer(l,h,1,n,a,8,o),a+=u}}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}},{key:"isDefaultDecode",value:function(e,t){return!Array.isArray(e)||(2!==e.length?((0,o.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,o.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}]),r}(y),S=function(e){u(r,e);var t=f(r);function r(){return g(this,r),t.call(this,"DeviceGray",1)}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){var a=255*e[t];r[n]=r[n+1]=r[n+2]=a}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=255/((1<<i)-1),c=t,u=a,l=0;l<r;++l){var f=s*e[c++];n[u++]=f,n[u++]=f,n[u++]=f,u+=o}}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}]),r}(y),x=function(e){u(r,e);var t=f(r);function r(){return g(this,r),t.call(this,"DeviceRGB",3)}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){r[n]=255*e[t],r[n+1]=255*e[t+1],r[n+2]=255*e[t+2]}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){if(8!==i||0!==o)for(var s=255/((1<<i)-1),c=t,u=a,l=0;l<r;++l)n[u++]=s*e[c++],n[u++]=s*e[c++],n[u++]=s*e[c++],u+=o;else n.set(e.subarray(t,t+3*r),a)}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isPassthrough",value:function(e){return 8===e}}]),r}(y),A=function(){function e(e,t,r,n,a){var i=e[t]*r,o=e[t+1]*r,s=e[t+2]*r,c=e[t+3]*r;n[a]=255+i*(-4.387332384609988*i+54.48615194189176*o+18.82290502165302*s+212.25662451639585*c-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*c-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747),n[a+1]=255+i*(8.841041422036149*i+60.118027045597366*o+6.871425592049007*s+31.159100130055922*c-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*c-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578),n[a+2]=255+i*(.8842522430003296*i+8.078677503112928*o+30.89978309703729*s-.23883238689178934*c-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*c-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}return function(t){u(n,t);var r=f(n);function n(){return g(this,n),r.call(this,"DeviceCMYK",4)}return v(n,[{key:"getRgbItem",value:function(t,r,n,a){e(t,r,1,n,a)}},{key:"getRgbBuffer",value:function(t,r,n,a,i,o,s){for(var c=1/((1<<o)-1),u=0;u<n;u++)e(t,r,c,a,i),r+=4,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e/4*(3+t)|0}}]),n}(y)}(),O=function(){function e(e,t,r,n,a,i){var o=t[r]*i,s=Math.pow(o,e.G),c=e.YW*s,u=Math.max(295.8*Math.pow(c,.3333333333333333)-40.8,0);n[a]=u,n[a+1]=u,n[a+2]=u}return function(t){u(n,t);var r=f(n);function n(e,t,a){var i;if(g(this,n),i=r.call(this,"CalGray",1),!e)throw new o.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],a=a||1,i.XW=e[0],i.YW=e[1],i.ZW=e[2],i.XB=t[0],i.YB=t[1],i.ZB=t[2],i.G=a,i.XW<0||i.ZW<0||1!==i.YW)throw new o.FormatError("Invalid WhitePoint components for ".concat(i.name)+", no fallback available");return(i.XB<0||i.YB<0||i.ZB<0)&&((0,o.info)("Invalid BlackPoint for ".concat(i.name,", falling back to default.")),i.XB=i.YB=i.ZB=0),0===i.XB&&0===i.YB&&0===i.ZB||(0,o.warn)("".concat(i.name,", BlackPoint: XB: ").concat(i.XB,", YB: ").concat(i.YB,", ")+"ZB: ".concat(i.ZB,", only default values are supported.")),i.G<1&&((0,o.info)("Invalid Gamma: ".concat(i.G," for ").concat(i.name,", ")+"falling back to default."),i.G=1),i}return v(n,[{key:"getRgbItem",value:function(t,r,n,a){e(this,t,r,n,a,1)}},{key:"getRgbBuffer",value:function(t,r,n,a,i,o,s){for(var c=1/((1<<o)-1),u=0;u<n;++u)e(this,t,r,a,i,c),r+=1,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}]),n}(y)}(),C=function(){var e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),r=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),n=new Float32Array([1,1,1]),a=new Float32Array(3),i=new Float32Array(3),s=new Float32Array(3),c=Math.pow(24/116,3)/8;function l(e,t,r){r[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],r[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],r[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function h(e){return e<=.0031308?d(0,1,12.92*e):e>=.99554525?1:d(0,1,1.055*Math.pow(e,1/2.4)-.055)}function d(e,t,r){return Math.max(e,Math.min(t,r))}function p(e){return e<0?-p(-e):e>8?Math.pow((e+16)/116,3):e*c}function m(o,c,u,f,g,m){var v=d(0,1,c[u]*m),y=d(0,1,c[u+1]*m),b=d(0,1,c[u+2]*m),w=1===v?1:Math.pow(v,o.GR),k=1===y?1:Math.pow(y,o.GG),S=1===b?1:Math.pow(b,o.GB),x=o.MXA*w+o.MXB*k+o.MXC*S,A=o.MYA*w+o.MYB*k+o.MYC*S,O=o.MZA*w+o.MZB*k+o.MZC*S,C=i;C[0]=x,C[1]=A,C[2]=O;var T=s;!function(r,n,i){if(1===r[0]&&1===r[2])return i[0]=n[0],i[1]=n[1],void(i[2]=n[2]);var o=i;l(e,n,o);var s=a;!function(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}(r,o,s),l(t,s,i)}(o.whitePoint,C,T);var F=i;!function(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var n=p(0),a=(1-n)/(1-p(e[0])),i=1-a,o=(1-n)/(1-p(e[1])),s=1-o,c=(1-n)/(1-p(e[2])),u=1-c;r[0]=t[0]*a+i,r[1]=t[1]*o+s,r[2]=t[2]*c+u}(o.blackPoint,T,F);var P=s;!function(r,n,i){var o=i;l(e,n,o);var s=a;!function(e,t,r){r[0]=.95047*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1.08883*t[2]/e[2]}(r,o,s),l(t,s,i)}(n,F,P);var _=i;l(r,P,_),f[g]=255*h(_[0]),f[g+1]=255*h(_[1]),f[g+2]=255*h(_[2])}return function(e){u(r,e);var t=f(r);function r(e,n,a,i){var s;if(g(this,r),s=t.call(this,"CalRGB",3),!e)throw new o.FormatError("WhitePoint missing - required for color space CalRGB");n=n||new Float32Array(3),a=a||new Float32Array([1,1,1]),i=i||new Float32Array([1,0,0,0,1,0,0,0,1]);var c=e[0],u=e[1],l=e[2];s.whitePoint=e;var f=n[0],h=n[1],d=n[2];if(s.blackPoint=n,s.GR=a[0],s.GG=a[1],s.GB=a[2],s.MXA=i[0],s.MYA=i[1],s.MZA=i[2],s.MXB=i[3],s.MYB=i[4],s.MZB=i[5],s.MXC=i[6],s.MYC=i[7],s.MZC=i[8],c<0||l<0||1!==u)throw new o.FormatError("Invalid WhitePoint components for ".concat(s.name)+", no fallback available");return(f<0||h<0||d<0)&&((0,o.info)("Invalid BlackPoint for ".concat(s.name," [").concat(f,", ").concat(h,", ").concat(d,"], ")+"falling back to default."),s.blackPoint=new Float32Array(3)),(s.GR<0||s.GG<0||s.GB<0)&&((0,o.info)("Invalid Gamma [".concat(s.GR,", ").concat(s.GG,", ").concat(s.GB,"] for ")+"".concat(s.name,", falling back to default.")),s.GR=s.GG=s.GB=1),s}return v(r,[{key:"getRgbItem",value:function(e,t,r,n){m(this,e,t,r,n,1)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=1/((1<<i)-1),c=0;c<r;++c)m(this,e,t,n,a,s),t+=3,a+=3+o}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}}]),r}(y)}(),T=function(){function e(e){return e>=6/29?Math.pow(e,3):108/841*(e-4/29)}function t(e,t,r,n){return r+e*(n-r)/t}function r(r,n,a,i,o,s){var c=n[a],u=n[a+1],l=n[a+2];!1!==i&&(c=t(c,i,0,100),u=t(u,i,r.amin,r.amax),l=t(l,i,r.bmin,r.bmax)),u>r.amax?u=r.amax:u<r.amin&&(u=r.amin),l>r.bmax?l=r.bmax:l<r.bmin&&(l=r.bmin);var f,h,d,p=(c+16)/116,g=p+u/500,m=p-l/200,v=r.XW*e(g),y=r.YW*e(p),b=r.ZW*e(m);r.ZW<1?(f=3.1339*v+-1.617*y+-.4906*b,h=-.9785*v+1.916*y+.0333*b,d=.072*v+-.229*y+1.4057*b):(f=3.2406*v+-1.5372*y+-.4986*b,h=-.9689*v+1.8758*y+.0415*b,d=.0557*v+-.204*y+1.057*b),o[s]=255*Math.sqrt(f),o[s+1]=255*Math.sqrt(h),o[s+2]=255*Math.sqrt(d)}return function(e){u(n,e);var t=f(n);function n(e,r,a){var i;if(g(this,n),i=t.call(this,"Lab",3),!e)throw new o.FormatError("WhitePoint missing - required for color space Lab");if(r=r||[0,0,0],a=a||[-100,100,-100,100],i.XW=e[0],i.YW=e[1],i.ZW=e[2],i.amin=a[0],i.amax=a[1],i.bmin=a[2],i.bmax=a[3],i.XB=r[0],i.YB=r[1],i.ZB=r[2],i.XW<0||i.ZW<0||1!==i.YW)throw new o.FormatError("Invalid WhitePoint components, no fallback available");return(i.XB<0||i.YB<0||i.ZB<0)&&((0,o.info)("Invalid BlackPoint, falling back to default"),i.XB=i.YB=i.ZB=0),(i.amin>i.amax||i.bmin>i.bmax)&&((0,o.info)("Invalid Range, falling back to defaults"),i.amin=-100,i.amax=100,i.bmin=-100,i.bmax=100),i}return v(n,[{key:"getRgbItem",value:function(e,t,n,a){r(this,e,t,!1,n,a)}},{key:"getRgbBuffer",value:function(e,t,n,a,i,o,s){for(var c=(1<<o)-1,u=0;u<n;u++)r(this,e,t,c,a,i),t+=3,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isDefaultDecode",value:function(e,t){return!0}},{key:"usesZeroToOneRange",get:function(){return(0,o.shadow)(this,"usesZeroToOneRange",!1)}}]),n}(y)}()},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=t.EvaluatorPreprocessor=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(124),s=r(113),c=r(142),u=r(146),l=r(145),f=r(148),h=r(149),d=r(156),p=r(150),g=r(157),m=r(125),v=r(159),y=r(160),b=r(122),w=r(127),k=r(147),S=r(117),x=r(161),A=r(162),O=r(118),C=r(163),T=r(164);function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||E(e,t)||function(){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 P(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){P(i,n,a,o,s,"next",e)}function s(e){P(i,n,a,o,s,"throw",e)}o(void 0)}))}}function I(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=E(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function E(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t,r){return t&&M(e.prototype,t),r&&M(e,r),e}var B=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1}),D=1,L=2,U=Promise.resolve();function q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++){var a=q(e[r],!0);if(a)return a}return(0,i.warn)("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(0,s.isName)(e))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:((0,i.warn)("Unsupported blend mode: ".concat(e.name)),"source-over")}var X=function(){function e(){R(this,e),this.reset()}return N(e,[{key:"check",value:function(){return!(++this.checked<e.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}},{key:"reset",value:function(){this.endTime=Date.now()+e.TIME_SLOT_DURATION_MS,this.checked=0}}],[{key:"TIME_SLOT_DURATION_MS",get:function(){return(0,i.shadow)(this,"TIME_SLOT_DURATION_MS",20)}},{key:"CHECK_TIME_EVERY",get:function(){return(0,i.shadow)(this,"CHECK_TIME_EVERY",100)}}]),e}(),H=function(){function e(t){var r=t.xref,n=t.handler,a=t.pageIndex,i=t.idFactory,o=t.fontCache,s=t.builtInCMapCache,c=t.globalImageCache,u=t.options,l=void 0===u?null:u;R(this,e),this.xref=r,this.handler=n,this.pageIndex=a,this.idFactory=i,this.fontCache=o,this.builtInCMapCache=s,this.globalImageCache=c,this.options=l||B,this.parsingType3Font=!1,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}var t,r,n,m,S,F;return N(e,[{key:"_pdfFunctionFactory",get:function(){var e=new g.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,i.shadow)(this,"_pdfFunctionFactory",e)}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=Object.create(this);return t.options=e,t}},{key:"hasBlendModes",value:function(e,t){if(!(e instanceof s.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;var r=new s.RefSet(t);e.objId&&r.put(e.objId);for(var n=[e],a=this.xref;n.length;){var o=n.shift(),c=o.get("ExtGState");if(c instanceof s.Dict){var u,l=I(c.getRawValues());try{for(l.s();!(u=l.n()).done;){var f=u.value;if(f instanceof s.Ref){if(r.has(f))continue;try{f=a.fetch(f)}catch(e){r.put(f),(0,i.info)('hasBlendModes - ignoring ExtGState: "'.concat(e,'".'));continue}}if(f instanceof s.Dict){f.objId&&r.put(f.objId);var h=f.get("BM");if(h instanceof s.Name){if("Normal"!==h.name)return!0}else if(void 0!==h&&Array.isArray(h)){var d,p=I(h);try{for(p.s();!(d=p.n()).done;){var g=d.value;if(g instanceof s.Name&&"Normal"!==g.name)return!0}}catch(e){p.e(e)}finally{p.f()}}}}}catch(e){l.e(e)}finally{l.f()}}var m=o.get("XObject");if(m instanceof s.Dict){var v,y=I(m.getRawValues());try{for(y.s();!(v=y.n()).done;){var b=v.value;if(b instanceof s.Ref){if(r.has(b))continue;try{b=a.fetch(b)}catch(e){r.put(b),(0,i.info)('hasBlendModes - ignoring XObject: "'.concat(e,'".'));continue}}if((0,s.isStream)(b)){b.dict.objId&&r.put(b.dict.objId);var w=b.dict.get("Resources");w instanceof s.Dict&&(w.objId&&r.has(w.objId)||(n.push(w),w.objId&&r.put(w.objId)))}}}catch(e){y.e(e)}finally{y.f()}}}return r.forEach((function(e){t.put(e)})),!1}},{key:"fetchBuiltInCMap",value:(F=_(a.default.mark((function e(t){var r,n,o,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.builtInCMapCache.get(t))){e.next=3;break}return e.abrupt("return",r);case 3:return n=this.handler.sendWithStream("FetchBuiltInCMap",{name:t}),o=n.getReader(),e.next=7,new Promise((function(e,t){!function r(){o.read().then((function(t){var n=t.value;t.done||(e(n),r())}),t)}()}));case 7:return(s=e.sent).compressionType!==i.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,s),e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return F.apply(this,arguments)})},{key:"buildFormXObject",value:(S=_(a.default.mark((function e(t,r,n,o,c,u,l){var f,h,d,p,g,m,v,y,w,k;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f=r.dict,h=f.getArray("Matrix"),d=f.getArray("BBox"),d=Array.isArray(d)&&4===d.length?i.Util.normalizeRect(d):null,p=null,!f.has("OC")){e.next=10;break}return e.next=8,this.parseMarkedContentProps(f.get("OC"),t);case 8:p=e.sent,o.addOp(i.OPS.beginMarkedContentProps,["OC",p]);case 10:if(!(m=f.get("Group"))){e.next=30;break}if(g={matrix:h,bbox:d,smask:n,isolated:!1,knockout:!1},v=m.get("S"),y=null,!(0,s.isName)(v,"Transparency")){e.next=28;break}if(g.isolated=m.get("I")||!1,g.knockout=m.get("K")||!1,!m.has("CS")){e.next=28;break}if(w=m.getRaw("CS"),!(k=b.ColorSpace.getCached(w,this.xref,l))){e.next=25;break}y=k,e.next=28;break;case 25:return e.next=27,this.parseColorSpace({cs:w,resources:t,localColorSpaceCache:l});case 27:y=e.sent;case 28:n&&n.backdrop&&(y=y||b.ColorSpace.singletons.rgb,n.backdrop=y.getRgb(n.backdrop,0)),o.addOp(i.OPS.beginGroup,[g]);case 30:return o.addOp(i.OPS.paintFormXObjectBegin,[h,d]),e.abrupt("return",this.getOperatorList({stream:r,task:c,resources:f.get("Resources")||t,operatorList:o,initialState:u}).then((function(){o.addOp(i.OPS.paintFormXObjectEnd,[]),m&&o.addOp(i.OPS.endGroup,[g]),p&&o.addOp(i.OPS.endMarkedContent,[])})));case 32:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,a,i,o){return S.apply(this,arguments)})},{key:"_sendImgData",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t?[t.data.buffer]:null;return this.parsingType3Font||r?this.handler.send("commonobj",[e,"Image",t],n):this.handler.send("obj",[e,this.pageIndex,"Image",t],n)}},{key:"buildPaintImageXObject",value:(m=_(a.default.mark((function e(t){var r,n,o,s,c,u,l,f,h,d,p,g,m,v,y,b,k,S,x,A,O,C,F,P,_,I=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.resources,n=t.image,o=t.isInline,s=void 0!==o&&o,c=t.operatorList,u=t.cacheKey,l=t.localImageCache,f=t.localColorSpaceCache,h=n.dict,d=h.objId,p=h.get("Width","W"),g=h.get("Height","H"),p&&(0,i.isNum)(p)&&g&&(0,i.isNum)(g)){e.next=8;break}return(0,i.warn)("Image dimensions are missing, or not numbers."),e.abrupt("return",void 0);case 8:if(!(-1!==(m=this.options.maxImageSize)&&p*g>m)){e.next=12;break}return(0,i.warn)("Image exceeded maximum allowed size and was removed."),e.abrupt("return",void 0);case 12:if(!h.get("ImageMask","IM")){e.next=25;break}return b=h.get("Width","W"),k=h.get("Height","H"),S=b+7>>3,x=n.getBytes(S*k,!0),A=h.getArray("Decode","D"),(v=T.PDFImage.createMask({imgArray:x,width:b,height:k,imageIsFromDecodeStream:n instanceof w.DecodeStream,inverseDecode:!!A&&A[0]>0})).cached=!!u,y=[v],c.addOp(i.OPS.paintImageMaskXObject,y),u&&l.set(u,d,{fn:i.OPS.paintImageMaskXObject,args:y}),e.abrupt("return",void 0);case 25:if(O=h.get("SMask","SM")||!1,C=h.get("Mask")||!1,!s||O||C||!(p+g<200)){e.next=33;break}return F=new T.PDFImage({xref:this.xref,res:r,image:n,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:f}),v=F.createImageData(!0),c.addOp(i.OPS.paintInlineImageXObject,[v]),e.abrupt("return",void 0);case 33:return P="img_".concat(this.idFactory.createObjId()),_=!1,this.parsingType3Font?P="".concat(this.idFactory.getDocId(),"_type3_").concat(P):d&&(_=this.globalImageCache.shouldCache(d,this.pageIndex))&&(P="".concat(this.idFactory.getDocId(),"_").concat(P)),c.addDependency(P),y=[P,p,g],T.PDFImage.buildImage({xref:this.xref,res:r,image:n,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:f}).then((function(e){return v=e.createImageData(!1),u&&d&&_&&I.globalImageCache.addByteSize(d,v.data.length),I._sendImgData(P,v,_)})).catch((function(e){return(0,i.warn)('Unable to decode image "'.concat(P,'": "').concat(e,'".')),I._sendImgData(P,null,_)})),c.addOp(i.OPS.paintImageXObject,y),u&&(l.set(u,d,{fn:i.OPS.paintImageXObject,args:y}),d&&((0,i.assert)(!s,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(d,this.pageIndex),_&&this.globalImageCache.setData(d,{objId:P,fn:i.OPS.paintImageXObject,args:y,byteSize:0}))),e.abrupt("return",void 0);case 41:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"handleSMask",value:function(e,t,r,n,a,i){var o=e.get("G"),s={subtype:e.get("S").name,backdrop:e.get("BC")},c=e.get("TR");if((0,g.isPDFFunction)(c)){for(var u=this._pdfFunctionFactory.create(c),l=new Uint8Array(256),f=new Float32Array(1),h=0;h<256;h++)f[0]=h/255,u(f,0,f,0),l[h]=255*f[0]|0;s.transferMap=l}return this.buildFormXObject(t,o,s,r,n,a.state.clone(),i)}},{key:"handleTransferFunction",value:function(e){var t;if(Array.isArray(e))t=e;else{if(!(0,g.isPDFFunction)(e))return null;t=[e]}var r,n=[],a=0,i=0,o=I(t);try{for(o.s();!(r=o.n()).done;){var c=r.value,u=this.xref.fetchIfRef(c);if(a++,(0,s.isName)(u,"Identity"))n.push(null);else{if(!(0,g.isPDFFunction)(u))return null;for(var l=this._pdfFunctionFactory.create(u),f=new Uint8Array(256),h=new Float32Array(1),d=0;d<256;d++)h[0]=d/255,l(h,0,h,0),f[d]=255*h[0]|0;n.push(f),i++}}}catch(e){o.e(e)}finally{o.f()}return 1!==a&&4!==a||0===i?null:n}},{key:"handleTilingType",value:function(e,t,r,n,a,o,c,u,l){var f=this,h=new C.OperatorList,p=s.Dict.merge({xref:this.xref,dictArray:[a.get("Resources"),r]});return this.getOperatorList({stream:n,task:c,resources:p,operatorList:h}).then((function(){var r=h.getIR(),n=(0,d.getTilingPatternIR)(r,a,t);o.addDependencies(h.dependencies),o.addOp(e,n),u&&l.set(u,a.objId,{operatorListIR:r,dict:a})})).catch((function(e){if(!(e instanceof i.AbortException)){if(f.options.ignoreErrors)return f.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorTilingPattern}),void(0,i.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'));throw e}}))}},{key:"handleSetFont",value:function(e,t,r,n,a,o){var u=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,f=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,h=t&&t[0]instanceof s.Name?t[0].name:null;return this.loadFont(h,r,e,l,f).then((function(t){return t.font.isType3Font?t.loadType3Data(u,e,a).then((function(){return n.addDependencies(t.type3Dependencies),t})).catch((function(e){return u.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontLoadType3}),new $({loadedName:"g_font_error",font:new c.ErrorFont("Type3 font load error: ".concat(e)),dict:t.font,evaluatorOptions:u.options})})):t})).then((function(e){return o.font=e.font,e.send(u.handler),e.loadedName}))}},{key:"handleText",value:function(t,r){var n=r.font,a=n.charsToGlyphs(t);return n.data&&(r.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===r.fillColorSpace.name||n.disableFontFace||this.options.disableFontFace)&&e.buildFontPaths(n,a,this.handler,this.options),a}},{key:"ensureStateFont",value:function(e){if(!e.font){var t=new i.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontState}),void(0,i.warn)('ensureStateFont: "'.concat(t,'".'));throw t}}},{key:"setGState",value:(n=_(a.default.mark((function e(t){var r,n,o,c,u,l,f,h,d,p,g,m,v,y,b,w,k=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=t.resources,n=t.gState,o=t.operatorList,c=t.cacheKey,u=t.task,l=t.stateManager,f=t.localGStateCache,h=t.localColorSpaceCache,d=n.objId,p=!0,g=[],m=n.getKeys(),v=Promise.resolve(),y=function(e,t){var a=m[e],c=n.get(a);switch(a){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":g.push([a,c]);break;case"Font":p=!1,v=v.then((function(){return k.handleSetFont(r,null,c[0],o,u,l.state).then((function(e){o.addDependency(e),g.push([a,[e,c[1]]])}))}));break;case"BM":g.push([a,q(c)]);break;case"SMask":if((0,s.isName)(c,"None")){g.push([a,!1]);break}(0,s.isDict)(c)?(p=!1,v=v.then((function(){return k.handleSMask(c,r,o,u,l,h)})),g.push([a,!0])):(0,i.warn)("Unsupported SMask type");break;case"TR":var f=k.handleTransferFunction(c);g.push([a,f]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,i.info)("graphic state operator "+a);break;default:(0,i.info)("Unknown graphic state operator "+a)}},b=0,w=m.length;b<w;b++)y(b);return e.abrupt("return",v.then((function(){g.length>0&&o.addOp(i.OPS.setGState,[g]),p&&f.set(c,d,g)})));case 9:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"loadFont",value:function(t,r,n){var o,l=this,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,d=function(){var e=_(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new $({loadedName:"g_font_error",font:new c.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,evaluatorOptions:l.options}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=this.xref;if(r){if(!(0,s.isRef)(r))throw new i.FormatError('The "font" object should be a reference.');o=r}else{var g=n.get("Font");g&&(o=g.getRaw(t))}if(!o){var m='Font "'.concat(t||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,i.warn)("".concat(m,".")),d();this.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontMissing}),(0,i.warn)("".concat(m," -- attempting to fallback to a default font.")),o=f||e.fallbackFontDict}if(this.fontCache.has(o))return this.fontCache.get(o);if(r=p.fetchIfRef(o),!(0,s.isDict)(r))return d();if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var v,y=(0,i.createPromiseCapability)();try{(v=this.preEvaluateFont(r)).cssFontInfo=h}catch(e){return(0,i.warn)('loadFont - preEvaluateFont failed: "'.concat(e,'".')),d()}var b,w=v,k=w.descriptor,S=w.hash,x=(0,s.isRef)(o);if(x&&(b="f".concat(o.toString())),S&&(0,s.isDict)(k)){k.fontAliases||(k.fontAliases=Object.create(null));var A=k.fontAliases;if(A[S]){var O=A[S].aliasRef;if(x&&O&&this.fontCache.has(O))return this.fontCache.putAlias(o,O),this.fontCache.get(o)}else A[S]={fontID:this.idFactory.createFontId()};x&&(A[S].aliasRef=o),b=A[S].fontID}return x?this.fontCache.put(o,y.promise):(b||(b=this.idFactory.createFontId()),r.cacheKey="cacheKey_".concat(b),this.fontCache.put(r.cacheKey,y.promise)),(0,i.assert)(b&&b.startsWith("f"),'The "fontID" must be (correctly) defined.'),r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(b),this.translateFont(v).then((function(e){void 0!==e.fontType&&(p.stats.fontTypes[e.fontType]=!0),y.resolve(new $({loadedName:r.loadedName,font:e,dict:r,evaluatorOptions:l.options}))})).catch((function(e){l.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,i.warn)('loadFont - translateFont failed: "'.concat(e,'".'));try{var t=k&&k.get("FontFile3"),n=t&&t.get("Subtype"),a=(0,u.getFontType)(v.type,n&&n.name);p.stats.fontTypes[a]=!0}catch(e){}y.resolve(new $({loadedName:r.loadedName,font:new c.ErrorFont(e instanceof Error?e.message:e),dict:r,evaluatorOptions:l.options}))})),y.promise}},{key:"buildPath",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.length-1;if(r||(r=[]),a<0||e.fnArray[a]!==i.OPS.constructPath)n&&((0,i.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(i.OPS.save,null)),e.addOp(i.OPS.constructPath,[[t],r]),n&&e.addOp(i.OPS.restore,null);else{var o=e.argsArray[a];o[0].push(t),Array.prototype.push.apply(o[1],r)}}},{key:"parseColorSpace",value:function(e){var t=this,r=e.cs,n=e.resources,a=e.localColorSpaceCache;return b.ColorSpace.parseAsync({cs:r,xref:this.xref,resources:n,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:a}).catch((function(e){if(e instanceof i.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorColorSpace}),(0,i.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))}},{key:"handleColorN",value:function(e,t,r,n,a,o,c,u,l){var f=r.pop();if(f instanceof s.Name){var h=f.name,p=l.getByName(h);if(p)try{var g=n.base?n.base.getRgb(r,0):null,m=(0,d.getTilingPatternIR)(p.operatorListIR,p.dict,g);return void e.addOp(t,m)}catch(e){}var v=a.get(h);if(v){var y=(0,s.isStream)(v)?v.dict:v,b=y.get("PatternType");if(b===D){var w=n.base?n.base.getRgb(r,0):null;return this.handleTilingType(t,w,o,v,y,e,c,h,l)}if(b===L){var k=y.get("Shading"),S=y.getArray("Matrix");return v=d.Pattern.parseShading(k,S,this.xref,o,this.handler,this._pdfFunctionFactory,u),void e.addOp(t,v.getIR())}throw new i.FormatError("Unknown PatternType: ".concat(b))}}throw new i.FormatError("Unknown PatternName: ".concat(f))}},{key:"_parseVisibilityExpression",value:function(e,t,r){if(++t>10)(0,i.warn)("Visibility expression is too deeply nested");else{var n=e.length,a=this.xref.fetchIfRef(e[0]);if(n<2||!(0,s.isName)(a))(0,i.warn)("Invalid visibility expression");else{switch(a.name){case"And":case"Or":case"Not":r.push(a.name);break;default:return void(0,i.warn)("Invalid operator ".concat(a.name," in visibility expression"))}for(var o=1;o<n;o++){var c=e[o],u=this.xref.fetchIfRef(c);if(Array.isArray(u)){var l=[];r.push(l),this._parseVisibilityExpression(u,t,l)}else(0,s.isRef)(c)&&r.push(c.toString())}}}}},{key:"parseMarkedContentProps",value:(r=_(a.default.mark((function e(t,r){var n,o,c,u,l,f,h,d,p,g;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,s.isName)(t)){e.next=5;break}o=r.get("Properties"),n=o.get(t.name),e.next=10;break;case 5:if(!(0,s.isDict)(t)){e.next=9;break}n=t,e.next=10;break;case 9:throw new i.FormatError("Optional content properties malformed.");case 10:if("OCG"!==(c=n.get("Type").name)){e.next=15;break}return e.abrupt("return",{type:c,id:n.objId});case 15:if("OCMD"!==c){e.next=31;break}if(u=n.get("VE"),!Array.isArray(u)){e.next=22;break}if(l=[],this._parseVisibilityExpression(u,0,l),!(l.length>0)){e.next=22;break}return e.abrupt("return",{type:"OCMD",expression:l});case 22:if(f=n.get("OCGs"),!Array.isArray(f)&&!(0,s.isDict)(f)){e.next=29;break}if(h=[],Array.isArray(f)){d=I(f);try{for(d.s();!(p=d.n()).done;)g=p.value,h.push(g.toString())}catch(e){d.e(e)}finally{d.f()}}else h.push(f.objId);return e.abrupt("return",{type:c,ids:h,policy:(0,s.isName)(n.get("P"))?n.get("P").name:null,expression:null});case 29:if(!(0,s.isRef)(f)){e.next=31;break}return e.abrupt("return",{type:c,id:f.toString()});case 31:return e.abrupt("return",null);case 32:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"getOperatorList",value:function(e){var t=this,r=e.stream,n=e.task,a=e.resources,o=e.operatorList,c=e.initialState,u=void 0===c?null:c,l=e.fallbackFontDict,f=void 0===l?null:l;if(a=a||s.Dict.empty,u=u||new W,!o)throw new Error('getOperatorList: missing "operatorList" parameter');var h=this,p=this.xref,g=!1,m=new v.LocalImageCache,y=new v.LocalColorSpaceCache,w=new v.LocalGStateCache,k=new v.LocalTilingPatternCache,S=a.get("XObject")||s.Dict.empty,x=a.get("Pattern")||s.Dict.empty,A=new z(u),O=new V(r,p,A),C=new X;function T(e){for(var t=0,r=O.savedStatesDepth;t<r;t++)o.addOp(i.OPS.restore,[])}return new Promise((function e(t,r){var c=function(n){Promise.all([n,o.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};n.ensureNotTerminated(),C.reset();for(var u,l,v,F,P,_={};!(u=C.check())&&(_.args=null,O.read(_));){var I=_.args,E=_.fn;switch(0|E){case i.OPS.paintXObject:if(P=I[0].name){var j=m.getByName(P);if(j){o.addOp(j.fn,j.args),I=null;continue}}return void c(new Promise((function(e,t){if(!P)throw new i.FormatError("XObject must be referred to by name.");var r=S.getRaw(P);if(r instanceof s.Ref){var c=m.getByRef(r);if(c)return o.addOp(c.fn,c.args),void e();var u=h.globalImageCache.getData(r,h.pageIndex);if(u)return o.addDependency(u.objId),o.addOp(u.fn,u.args),void e();r=p.fetch(r)}if(!(0,s.isStream)(r))throw new i.FormatError("XObject should be a stream");var l=r.dict.get("Subtype");if(!(0,s.isName)(l))throw new i.FormatError("XObject should have a Name subtype");if("Form"===l.name)return A.save(),void h.buildFormXObject(a,r,null,o,n,A.state.clone(),y).then((function(){A.restore(),e()}),t);if("Image"!==l.name){if("PS"!==l.name)throw new i.FormatError("Unhandled XObject subtype ".concat(l.name));(0,i.info)("Ignored XObject subtype PS"),e()}else h.buildPaintImageXObject({resources:a,image:r,operatorList:o,cacheKey:P,localImageCache:m,localColorSpaceCache:y}).then(e,t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(h.options.ignoreErrors)return h.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorXObject}),void(0,i.warn)('getOperatorList - ignoring XObject: "'.concat(e,'".'));throw e}})));case i.OPS.setFont:var R=I[1];return void c(h.handleSetFont(a,I,null,o,n,A.state,f).then((function(e){o.addDependency(e),o.addOp(i.OPS.setFont,[e,R])})));case i.OPS.beginText:g=!0;break;case i.OPS.endText:g=!1;break;case i.OPS.endInlineImage:var M=I[0].cacheKey;if(M){var N=m.getByName(M);if(N){o.addOp(N.fn,N.args),I=null;continue}}return void c(h.buildPaintImageXObject({resources:a,image:I[0],isInline:!0,operatorList:o,cacheKey:M,localImageCache:m,localColorSpaceCache:y}));case i.OPS.showText:if(!A.state.font){h.ensureStateFont(A.state);continue}I[0]=h.handleText(I[0],A.state);break;case i.OPS.showSpacedText:if(!A.state.font){h.ensureStateFont(A.state);continue}var B=I[0],D=[],L=B.length,q=A.state;for(l=0;l<L;++l){var X=B[l];(0,i.isString)(X)?Array.prototype.push.apply(D,h.handleText(X,q)):(0,i.isNum)(X)&&D.push(X)}I[0]=D,E=i.OPS.showText;break;case i.OPS.nextLineShowText:if(!A.state.font){h.ensureStateFont(A.state);continue}o.addOp(i.OPS.nextLine),I[0]=h.handleText(I[0],A.state),E=i.OPS.showText;break;case i.OPS.nextLineSetSpacingShowText:if(!A.state.font){h.ensureStateFont(A.state);continue}o.addOp(i.OPS.nextLine),o.addOp(i.OPS.setWordSpacing,[I.shift()]),o.addOp(i.OPS.setCharSpacing,[I.shift()]),I[0]=h.handleText(I[0],A.state),E=i.OPS.showText;break;case i.OPS.setTextRenderingMode:A.state.textRenderingMode=I[0];break;case i.OPS.setFillColorSpace:var H=b.ColorSpace.getCached(I[0],p,y);if(H){A.state.fillColorSpace=H;continue}return void c(h.parseColorSpace({cs:I[0],resources:a,localColorSpaceCache:y}).then((function(e){e&&(A.state.fillColorSpace=e)})));case i.OPS.setStrokeColorSpace:var $=b.ColorSpace.getCached(I[0],p,y);if($){A.state.strokeColorSpace=$;continue}return void c(h.parseColorSpace({cs:I[0],resources:a,localColorSpaceCache:y}).then((function(e){e&&(A.state.strokeColorSpace=e)})));case i.OPS.setFillColor:I=(F=A.state.fillColorSpace).getRgb(I,0),E=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeColor:I=(F=A.state.strokeColorSpace).getRgb(I,0),E=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillGray:A.state.fillColorSpace=b.ColorSpace.singletons.gray,I=b.ColorSpace.singletons.gray.getRgb(I,0),E=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeGray:A.state.strokeColorSpace=b.ColorSpace.singletons.gray,I=b.ColorSpace.singletons.gray.getRgb(I,0),E=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillCMYKColor:A.state.fillColorSpace=b.ColorSpace.singletons.cmyk,I=b.ColorSpace.singletons.cmyk.getRgb(I,0),E=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeCMYKColor:A.state.strokeColorSpace=b.ColorSpace.singletons.cmyk,I=b.ColorSpace.singletons.cmyk.getRgb(I,0),E=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillRGBColor:A.state.fillColorSpace=b.ColorSpace.singletons.rgb,I=b.ColorSpace.singletons.rgb.getRgb(I,0);break;case i.OPS.setStrokeRGBColor:A.state.strokeColorSpace=b.ColorSpace.singletons.rgb,I=b.ColorSpace.singletons.rgb.getRgb(I,0);break;case i.OPS.setFillColorN:if("Pattern"===(F=A.state.fillColorSpace).name)return void c(h.handleColorN(o,i.OPS.setFillColorN,I,F,x,a,n,y,k));I=F.getRgb(I,0),E=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeColorN:if("Pattern"===(F=A.state.strokeColorSpace).name)return void c(h.handleColorN(o,i.OPS.setStrokeColorN,I,F,x,a,n,y,k));I=F.getRgb(I,0),E=i.OPS.setStrokeRGBColor;break;case i.OPS.shadingFill:var z=a.get("Shading");if(!z)throw new i.FormatError("No shading resource found");var G=z.get(I[0].name);if(!G)throw new i.FormatError("No shading object found");I=[d.Pattern.parseShading(G,null,p,a,h.handler,h._pdfFunctionFactory,y).getIR()],E=i.OPS.shadingFill;break;case i.OPS.setGState:if(P=I[0].name){var W=w.getByName(P);if(W){W.length>0&&o.addOp(i.OPS.setGState,[W]),I=null;continue}}return void c(new Promise((function(e,t){if(!P)throw new i.FormatError("GState must be referred to by name.");var r=a.get("ExtGState");if(!(r instanceof s.Dict))throw new i.FormatError("ExtGState should be a dictionary.");var c=r.get(P);if(!(c instanceof s.Dict))throw new i.FormatError("GState should be a dictionary.");h.setGState({resources:a,gState:c,operatorList:o,cacheKey:P,task:n,stateManager:A,localGStateCache:w,localColorSpaceCache:y}).then(e,t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(h.options.ignoreErrors)return h.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorExtGState}),void(0,i.warn)('getOperatorList - ignoring ExtGState: "'.concat(e,'".'));throw e}})));case i.OPS.moveTo:case i.OPS.lineTo:case i.OPS.curveTo:case i.OPS.curveTo2:case i.OPS.curveTo3:case i.OPS.closePath:case i.OPS.rectangle:h.buildPath(o,E,I,g);continue;case i.OPS.markPoint:case i.OPS.markPointProps:case i.OPS.beginCompat:case i.OPS.endCompat:continue;case i.OPS.beginMarkedContentProps:if(!(0,s.isName)(I[0])){(0,i.warn)("Expected name for beginMarkedContentProps arg0=".concat(I[0]));continue}if("OC"===I[0].name)return void c(h.parseMarkedContentProps(I[1],a).then((function(e){o.addOp(i.OPS.beginMarkedContentProps,["OC",e])})).catch((function(e){if(!(e instanceof i.AbortException)){if(h.options.ignoreErrors)return h.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorMarkedContent}),void(0,i.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(e,'".'));throw e}})));I=[I[0].name,I[1]instanceof s.Dict?I[1].get("MCID"):null];break;case i.OPS.beginMarkedContent:case i.OPS.endMarkedContent:default:if(null!==I){for(l=0,v=I.length;l<v&&!(I[l]instanceof s.Dict);l++);if(l<v){(0,i.warn)("getOperatorList - ignoring operator: "+E);continue}}}o.addOp(E,I)}u?c(U):(T(),t())})).catch((function(e){if(!(e instanceof i.AbortException)){if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorOperatorList}),(0,i.warn)('getOperatorList - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),void T();throw e}}))}},{key:"getTextContent",value:function(e){var t=this,r=e.stream,n=e.task,a=e.resources,o=e.stateManager,c=void 0===o?null:o,u=e.normalizeWhitespace,l=void 0!==u&&u,h=e.combineTextItems,d=void 0!==h&&h,p=e.includeMarkedContent,g=void 0!==p&&p,m=e.sink,b=e.seenStyles,w=void 0===b?new Set:b;a=a||s.Dict.empty,c=c||new z(new G);var k,S=/\\s/g,x={items:[],styles:Object.create(null)},A={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,lastCharSize:0,prevTransform:null,textAdvanceScale:0,spaceWidth:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,transform:null,fontName:null,hasEOL:!1,isLastCharWhiteSpace:!1},O=this,C=this.xref,T=[],F=null,P=new v.LocalImageCache,_=new v.LocalGStateCache,I=new V(r,C,c);function E(){var e=k.font,t=[k.fontSize*k.textHScale,0,0,k.fontSize,0,k.textRise];if(e.isType3Font&&k.fontSize<=1&&!(0,i.isArrayEqual)(k.fontMatrix,i.FONT_IDENTITY_MATRIX)){var r=e.bbox[3]-e.bbox[1];r>0&&(t[3]*=r*k.fontMatrix[3])}return i.Util.transform(k.ctm,i.Util.transform(k.textMatrix,t))}function j(){if(A.initialized)return A;var e=k.font,t=e.loadedName;w.has(t)||(w.add(t),x.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),A.fontName=t;var r=A.transform=E();e.vertical?(A.width=A.totalWidth=Math.hypot(r[0],r[1]),A.height=A.totalHeight=0,A.vertical=!0):(A.width=A.totalWidth=0,A.height=A.totalHeight=Math.hypot(r[2],r[3]),A.vertical=!1);var n=Math.hypot(k.textLineMatrix[0],k.textLineMatrix[1]),a=Math.hypot(k.ctm[0],k.ctm[1]);A.textAdvanceScale=a*n,A.lastCharSize=A.lastCharSize||0;var i=e.spaceWidth/1e3*k.fontSize;return i?(A.spaceWidth=i,A.trackingSpaceMin=.3*i,A.spaceInFlowMin=.3*i,A.spaceInFlowMax=1.3*i):(A.spaceWidth=0,A.trackingSpaceMin=1/0),A.hasEOL=!1,A.initialized=!0,A}function R(){if(A.initialized){var e=Math.hypot(k.textLineMatrix[0],k.textLineMatrix[1]),t=Math.hypot(k.ctm[0],k.ctm[1])*e;t!==A.textAdvanceScale&&(A.vertical?(A.totalHeight+=A.height*A.textAdvanceScale,A.height=0):(A.totalWidth+=A.width*A.textAdvanceScale,A.width=0),A.textAdvanceScale=t)}}function M(e){var t=e.str.join(""),r=(0,y.bidi)(t,-1,e.vertical);return{str:l?function(e){for(var t,r=e.length,n=0;n<r&&(t=e.charCodeAt(n))>=32&&t<=127;)n++;return n<r?e.replace(S," "):e}(r.str):r.str,dir:r.dir,width:e.totalWidth,height:e.totalHeight,transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}function N(e,t){return O.loadFont(e,t,a).then((function(e){k.font=e.font,k.fontMatrix=e.font.fontMatrix||i.FONT_IDENTITY_MATRIX}))}function B(e){var t=e.chars,r=e.extraSpacing,n=e.isFirstChunk,a=k.font;if(t){var i=(0,f.getNormalizedUnicodes)(),o=a.charsToGlyphs(t),s=k.fontMatrix[0]*k.fontSize;n&&function(e){if(d&&k.font&&A.prevTransform){var t=E(),r=t[4],n=t[5],a=A.prevTransform[4],i=A.prevTransform[5];if(a!==r||i!==n){var o=(r-a)/A.textAdvanceScale,s=(n-i)/A.textAdvanceScale,c=-.5*A.lastCharSize;if(k.font.vertical){if(Math.abs(o)>A.width/A.textAdvanceScale)return void D();if(c>s)return;s>A.trackingSpaceMin?A.height+=s:L(s,0,A.prevTransform)||(0===A.str.length?(x.items.push({str:" ",dir:"ltr",width:0,height:s,transform:A.prevTransform,fontName:A.fontName,hasEOL:!1}),A.isLastCharWhiteSpace=!0):A.height+=s)}else Math.abs(s)>A.height/A.textAdvanceScale?D():c>o||(o<=A.trackingSpaceMin?A.width+=o:L(o,0,A.prevTransform)||(0===A.str.length?(x.items.push({str:" ",dir:"ltr",width:o,height:0,transform:A.prevTransform,fontName:A.fontName,hasEOL:!1}),A.isLastCharWhiteSpace=!0):A.width+=o))}}}();for(var c=j(),u=0,l=0,h=0,p=o.length;h<p;h++){var g=o[h],m=k.charSpacing+(h===p-1?r:0),v=g.unicode;g.isSpace?(m+=k.wordSpacing,c.isLastCharWhiteSpace=!0):(v=i[v]||v,v=(0,f.reverseIfRtl)(v),c.isLastCharWhiteSpace=!1),c.str.push(v);var y=(a.vertical&&g.vmetric?g.vmetric[0]:g.width)*s;if(a.vertical?(k.translateTextMatrix(0,y),y=Math.abs(y)):(y*=k.textHScale,k.translateTextMatrix(y,0)),u+=y,m){a.vertical||(m*=k.textHScale),y+=m;var b=m>A.trackingSpaceMin&&L(m,u);a.vertical?k.translateTextMatrix(0,m):k.translateTextMatrix(m,0),b?(c=j(),u=0):u+=m}l=y}c.lastCharSize=l,a.vertical?c.height+=u:c.width+=u,c.prevTransform=E()}else{var w=k.charSpacing+r;w&&(a.vertical?k.translateTextMatrix(0,w):k.translateTextMatrix(w*k.textHScale,0))}}function D(){A.initialized?(A.hasEOL=!0,q()):x.items.length>0?x.items[x.items.length-1].hasEOL=!0:x.items.push({str:"",dir:"ltr",width:0,height:0,transform:E(),fontName:k.font.loadedName,hasEOL:!0}),A.isLastCharWhiteSpace=!1,A.lastCharSize=0}function L(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(A.spaceInFlowMin<=e&&e<=A.spaceInFlowMax)return A.initialized&&(A.str.push(" "),A.isLastCharWhiteSpace=!0),!1;var n=A.fontName,a=0;return e*=A.textAdvanceScale,A.vertical?(A.height+=t,a=e,e=0):A.width+=t,q(),A.isLastCharWhiteSpace||(A.isLastCharWhiteSpace=!0,x.items.push({str:" ",dir:"ltr",width:e,height:a,transform:r||E(),fontName:n,hasEOL:!1})),!0}function q(){A.initialized&&A.str&&(A.vertical?A.totalHeight+=A.height*A.textAdvanceScale:A.totalWidth+=A.width*A.textAdvanceScale,x.items.push(M(A)),A.initialized=!1,A.str.length=0)}function H(){var e=x.items.length;e>0&&(m.enqueue(x,e),x.items=[],x.styles=Object.create(null))}var $=new X;return new Promise((function e(t,r){var o=function(n){H(),Promise.all([n,m.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};n.ensureNotTerminated(),$.reset();for(var u,f={},h=[];!(u=$.check())&&(h.length=0,f.args=h,I.read(f));){k=c.state;var p=f.fn;switch(h=f.args,0|p){case i.OPS.setFont:var v=h[0].name,y=h[1];if(k.font&&v===k.fontName&&y===k.fontSize)break;return q(),k.fontName=v,k.fontSize=y,void o(N(v,null));case i.OPS.setTextRise:q(),k.textRise=h[0];break;case i.OPS.setHScale:q(),k.textHScale=h[0]/100;break;case i.OPS.setLeading:q(),k.leading=h[0];break;case i.OPS.moveText:k.translateTextLineMatrix(h[0],h[1]),k.textMatrix=k.textLineMatrix.slice();break;case i.OPS.setLeadingMoveText:q(),k.leading=-h[1],k.translateTextLineMatrix(h[0],h[1]),k.textMatrix=k.textLineMatrix.slice();break;case i.OPS.nextLine:D(),k.carriageReturn();break;case i.OPS.setTextMatrix:k.setTextMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),k.setTextLineMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),R();break;case i.OPS.setCharSpacing:k.charSpacing=h[0];break;case i.OPS.setWordSpacing:k.wordSpacing=h[0];break;case i.OPS.beginText:q(),k.textMatrix=i.IDENTITY_MATRIX.slice(),k.textLineMatrix=i.IDENTITY_MATRIX.slice();break;case i.OPS.showSpacedText:if(!c.state.font){O.ensureStateFont(c.state);continue}for(var b=(k.font.vertical?1:-1)*k.fontSize/1e3,S=h[0],E=!0,j=0,M=S.length;j<M-1;j++){var L=S[j];if("string"==typeof L)T.push(L);else if("number"==typeof L&&0!==L){var X=T.join("");T.length=0,B({chars:X,extraSpacing:L*b,isFirstChunk:E}),X&&E&&(E=!1)}}var G=S[S.length-1];if("string"==typeof G&&T.push(G),T.length>0){var W=T.join("");T.length=0,B({chars:W,extraSpacing:0,isFirstChunk:E})}break;case i.OPS.showText:if(!c.state.font){O.ensureStateFont(c.state);continue}B({chars:h[0],extraSpacing:0,isFirstChunk:!0});break;case i.OPS.nextLineShowText:if(!c.state.font){O.ensureStateFont(c.state);continue}A.hasEOL=!0,q(),k.carriageReturn(),B({chars:h[0],extraSpacing:0,isFirstChunk:!0});break;case i.OPS.nextLineSetSpacingShowText:if(!c.state.font){O.ensureStateFont(c.state);continue}A.hasEOL=!0,q(),k.wordSpacing=h[0],k.charSpacing=h[1],k.carriageReturn(),B({chars:h[2],extraSpacing:0,isFirstChunk:!0});break;case i.OPS.paintXObject:q(),F||(F=a.get("XObject")||s.Dict.empty);var V=h[0].name;if(V&&P.getByName(V))break;return void o(new Promise((function(e,t){if(!V)throw new i.FormatError("XObject must be referred to by name.");var r=F.getRaw(V);if(r instanceof s.Ref){if(P.getByRef(r))return void e();if(O.globalImageCache.getData(r,O.pageIndex))return void e();r=C.fetch(r)}if(!(0,s.isStream)(r))throw new i.FormatError("XObject should be a stream");var o=r.dict.get("Subtype");if(!(0,s.isName)(o))throw new i.FormatError("XObject should have a Name subtype");if("Form"!==o.name)return P.set(V,r.dict.objId,!0),void e();var u=c.state.clone(),f=new z(u),h=r.dict.getArray("Matrix");Array.isArray(h)&&6===h.length&&f.transform(h),H();var p={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,m.enqueue(e,t)},get desiredSize(){return m.desiredSize},get ready(){return m.ready}};O.getTextContent({stream:r,task:n,resources:r.dict.get("Resources")||a,stateManager:f,normalizeWhitespace:l,combineTextItems:d,includeMarkedContent:g,sink:p,seenStyles:w}).then((function(){p.enqueueInvoked||P.set(V,r.dict.objId,!0),e()}),t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(!O.options.ignoreErrors)throw e;(0,i.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case i.OPS.setGState:if((V=h[0].name)&&_.getByName(V))break;return void o(new Promise((function(e,t){if(!V)throw new i.FormatError("GState must be referred to by name.");var r=a.get("ExtGState");if(!(r instanceof s.Dict))throw new i.FormatError("ExtGState should be a dictionary.");var n=r.get(V);if(!(n instanceof s.Dict))throw new i.FormatError("GState should be a dictionary.");var o=n.get("Font");if(!o)return _.set(V,n.objId,!0),void e();q(),k.fontName=null,k.fontSize=o[1],N(null,o[0]).then(e,t)})).catch((function(e){if(!(e instanceof i.AbortException)){if(!O.options.ignoreErrors)throw e;(0,i.warn)('getTextContent - ignoring ExtGState: "'.concat(e,'".'))}})));case i.OPS.beginMarkedContent:g&&x.items.push({type:"beginMarkedContent",tag:(0,s.isName)(h[0])?h[0].name:null});break;case i.OPS.beginMarkedContentProps:if(g){q();var K=null;(0,s.isDict)(h[1])&&(K=h[1].get("MCID")),x.items.push({type:"beginMarkedContentProps",id:Number.isInteger(K)?"".concat(O.idFactory.getPageObjId(),"_mcid").concat(K):null,tag:(0,s.isName)(h[0])?h[0].name:null})}break;case i.OPS.endMarkedContent:g&&(q(),x.items.push({type:"endMarkedContent"}))}if(x.items.length>=m.desiredSize){u=!0;break}}u?o(U):(q(),H(),t())})).catch((function(e){if(!(e instanceof i.AbortException)){if(t.options.ignoreErrors)return(0,i.warn)('getTextContent - ignoring errors during "'.concat(n.name,'" ')+'task: "'.concat(e,'".')),q(),void H();throw e}}))}},{key:"extractDataStructures",value:function(e,t,r){var n,a=this,o=this.xref,c=this.readToUnicode(r.toUnicode||e.get("ToUnicode")||t.get("ToUnicode"));if(r.composite){var f=e.get("CIDSystemInfo");(0,s.isDict)(f)&&(r.cidSystemInfo={registry:(0,i.stringToPDFString)(f.get("Registry")),ordering:(0,i.stringToPDFString)(f.get("Ordering")),supplement:f.get("Supplement")});var h=e.get("CIDToGIDMap");(0,s.isStream)(h)&&(n=h.getBytes())}var d,p=[],g=null;if(e.has("Encoding")){if(d=e.get("Encoding"),(0,s.isDict)(d)){if(g=d.get("BaseEncoding"),g=(0,s.isName)(g)?g.name:null,d.has("Differences"))for(var m=d.get("Differences"),v=0,y=0,b=m.length;y<b;y++){var w=o.fetchIfRef(m[y]);if((0,i.isNum)(w))v=w;else{if(!(0,s.isName)(w))throw new i.FormatError("Invalid entry in 'Differences' array: ".concat(w));p[v++]=w.name}}}else{if(!(0,s.isName)(d))throw new i.FormatError("Encoding is not a Name nor a Dict");g=d.name}"MacRomanEncoding"!==g&&"MacExpertEncoding"!==g&&"WinAnsiEncoding"!==g&&(g=null)}if(g)r.defaultEncoding=(0,l.getEncoding)(g);else{var k=!!(r.flags&u.FontFlags.Symbolic),S=!!(r.flags&u.FontFlags.Nonsymbolic);d=l.StandardEncoding,"TrueType"!==r.type||S||(d=l.WinAnsiEncoding),k&&(d=l.MacRomanEncoding,r.file||(/Symbol/i.test(r.name)?d=l.SymbolSetEncoding:/Dingbats|Wingdings/i.test(r.name)&&(d=l.ZapfDingbatsEncoding))),r.defaultEncoding=d}return r.differences=p,r.baseEncodingName=g,r.hasEncoding=!!g||p.length>0,r.dict=e,c.then((function(e){return r.toUnicode=e,a.buildToUnicode(r)})).then((function(e){return r.toUnicode=e,n&&(r.cidToGidMap=a.readCidToGidMap(n,e)),r}))}},{key:"_buildSimpleFontToUnicode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,i.assert)(!e.composite,"Must be a simple font.");var r=[],n=e.defaultEncoding.slice(),a=e.baseEncodingName,o=e.differences;for(var s in o){var c=o[s];".notdef"!==c&&(n[s]=c)}var u=(0,k.getGlyphsUnicode)();for(var h in n){var d=n[h];if(""!==d)if(void 0!==u[d])r[h]=String.fromCharCode(u[d]);else{var g=0;switch(d[0]){case"G":3===d.length&&(g=parseInt(d.substring(1),16));break;case"g":5===d.length&&(g=parseInt(d.substring(1),16));break;case"C":case"c":if(d.length>=3&&d.length<=4){var m=d.substring(1);if(t){g=parseInt(m,16);break}if(g=+m,Number.isNaN(g)&&Number.isInteger(parseInt(m,16)))return this._buildSimpleFontToUnicode(e,!0)}break;default:var v=(0,f.getUnicodeForGlyph)(d,u);-1!==v&&(g=v)}if(g>0&&g<=1114111&&Number.isInteger(g)){if(a&&g===+h){var y=(0,l.getEncoding)(a);if(y&&(d=y[h])){r[h]=String.fromCharCode(u[d]);continue}}r[h]=String.fromCodePoint(g)}}}return new p.ToUnicodeMap(r)}},{key:"buildToUnicode",value:function(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._buildSimpleFontToUnicode(e)),Promise.resolve(e.toUnicode);if(!e.composite)return Promise.resolve(this._buildSimpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof o.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){var t=e.cidSystemInfo.registry,r=e.cidSystemInfo.ordering,n=s.Name.get(t+"-"+r+"-UCS2");return o.CMapFactory.create({encoding:n,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){var r=e.cMap,n=[];return r.forEach((function(e,r){if(r>65535)throw new i.FormatError("Max size of CID is 65,535");var a=t.lookup(r);a&&(n[e]=String.fromCharCode((a.charCodeAt(0)<<8)+a.charCodeAt(1)))})),new p.ToUnicodeMap(n)}))}return Promise.resolve(new p.IdentityToUnicodeMap(e.firstChar,e.lastChar))}},{key:"readToUnicode",value:function(e){var t=this;return e?(0,s.isName)(e)?o.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){return e instanceof o.IdentityCMap?new p.IdentityToUnicodeMap(0,65535):new p.ToUnicodeMap(e.getMap())})):(0,s.isStream)(e)?o.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(e){if(e instanceof o.IdentityCMap)return new p.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach((function(e,r){for(var n=[],a=0;a<r.length;a+=2){var i=r.charCodeAt(a)<<8|r.charCodeAt(a+1);if(55296==(63488&i)){a+=2;var o=r.charCodeAt(a)<<8|r.charCodeAt(a+1);n.push(((1023&i)<<10)+(1023&o)+65536)}else n.push(i)}t[e]=String.fromCodePoint.apply(String,n)})),new p.ToUnicodeMap(t)}),(function(e){if(e instanceof i.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,i.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(e,'".')),null;throw e})):Promise.resolve(null):Promise.resolve(null)}},{key:"readCidToGidMap",value:function(e,t){for(var r=[],n=0,a=e.length;n<a;n++){var i=e[n++]<<8|e[n],o=n>>1;(0!==i||t.has(o))&&(r[o]=i)}return r}},{key:"extractWidths",value:function(e,t,r){var n,a,i,o,c,l,f,h,d=this.xref,p=[],g=0,m=[];if(r.composite){if(g=e.has("DW")?e.get("DW"):1e3,h=e.get("W"))for(a=0,i=h.length;a<i;a++)if(l=d.fetchIfRef(h[a++]),f=d.fetchIfRef(h[a]),Array.isArray(f))for(o=0,c=f.length;o<c;o++)p[l++]=d.fetchIfRef(f[o]);else{var v=d.fetchIfRef(h[++a]);for(o=l;o<=f;o++)p[o]=v}if(r.vertical){var y=e.getArray("DW2")||[880,-1e3];if(n=[y[1],.5*g,y[0]],y=e.get("W2"))for(a=0,i=y.length;a<i;a++)if(l=d.fetchIfRef(y[a++]),f=d.fetchIfRef(y[a]),Array.isArray(f))for(o=0,c=f.length;o<c;o++)m[l++]=[d.fetchIfRef(f[o++]),d.fetchIfRef(f[o++]),d.fetchIfRef(f[o])];else{var b=[d.fetchIfRef(y[++a]),d.fetchIfRef(y[++a]),d.fetchIfRef(y[++a])];for(o=l;o<=f;o++)m[o]=b}}}else{var w=r.firstChar;if(h=e.get("Widths")){for(o=w,a=0,i=h.length;a<i;a++)p[o++]=d.fetchIfRef(h[a]);g=parseFloat(t.get("MissingWidth"))||0}else{var k=e.get("BaseFont");if((0,s.isName)(k)){var S=this.getBaseFontMetrics(k.name);p=this.buildCharCodeToWidth(S.widths,r),g=S.defaultWidth}}}var x=!0,A=g;for(var O in p){var C=p[O];if(C)if(A){if(A!==C){x=!1;break}}else A=C}x&&(r.flags|=u.FontFlags.FixedPitch),r.defaultWidth=g,r.widths=p,r.defaultVMetrics=n,r.vmetrics=m}},{key:"isSerifFont",value:function(e){var t=e.split("-")[0];return t in(0,h.getSerifFonts)()||-1!==t.search(/serif/gi)}},{key:"getBaseFontMetrics",value:function(e){var t=0,r=Object.create(null),n=!1,a=(0,h.getStdFontMap)()[e]||e,o=(0,x.getMetrics)();a in o||(a=this.isSerifFont(e)?"Times-Roman":"Helvetica");var s=o[a];return(0,i.isNum)(s)?(t=s,n=!0):r=s(),{defaultWidth:t,monospace:n,widths:r}}},{key:"buildCharCodeToWidth",value:function(e,t){for(var r=Object.create(null),n=t.differences,a=t.defaultEncoding,i=0;i<256;i++)i in n&&e[n[i]]?r[i]=e[n[i]]:i in a&&e[a[i]]&&(r[i]=e[a[i]]);return r}},{key:"preEvaluateFont",value:function(e){var t=e,r=e.get("Subtype");if(!(0,s.isName)(r))throw new i.FormatError("invalid font Subtype");var n,a,o=!1;if("Type0"===r.name){var c=e.get("DescendantFonts");if(!c)throw new i.FormatError("Descendant fonts are not specified");if(!((e=Array.isArray(c)?this.xref.fetchIfRef(c[0]):c)instanceof s.Dict))throw new i.FormatError("Descendant font is not a dictionary.");if(r=e.get("Subtype"),!(0,s.isName)(r))throw new i.FormatError("invalid font Subtype");o=!0}var u=e.get("FirstChar")||0,l=e.get("LastChar")||(o?65535:255),f=e.get("FontDescriptor");if(f){n=new A.MurmurHash3_64;var h=t.getRaw("Encoding");if((0,s.isName)(h))n.update(h.name);else if((0,s.isRef)(h))n.update(h.toString());else if((0,s.isDict)(h)){var d,p=I(h.getRawValues());try{for(p.s();!(d=p.n()).done;){var g=d.value;if((0,s.isName)(g))n.update(g.name);else if((0,s.isRef)(g))n.update(g.toString());else if(Array.isArray(g)){for(var m=g.length,v=new Array(m),y=0;y<m;y++){var b=g[y];(0,s.isName)(b)?v[y]=b.name:((0,i.isNum)(b)||(0,s.isRef)(b))&&(v[y]=b.toString())}n.update(v.join())}}}catch(e){p.e(e)}finally{p.f()}}if(n.update("".concat(u,"-").concat(l)),a=e.get("ToUnicode")||t.get("ToUnicode"),(0,s.isStream)(a)){var w=a.str||a,k=w.buffer?new Uint8Array(w.buffer.buffer,0,w.bufferLength):new Uint8Array(w.bytes.buffer,w.start,w.end-w.start);n.update(k)}else(0,s.isName)(a)&&n.update(a.name);var S=e.get("Widths")||t.get("Widths");if(Array.isArray(S)){var x,O=[],C=I(S);try{for(C.s();!(x=C.n()).done;){var T=x.value;((0,i.isNum)(T)||(0,s.isRef)(T))&&O.push(T.toString())}}catch(e){C.e(e)}finally{C.f()}n.update(O.join())}if(o){n.update("compositeFont");var F=e.get("W")||t.get("W");if(Array.isArray(F)){var P,_=[],E=I(F);try{for(E.s();!(P=E.n()).done;){var j=P.value;if((0,i.isNum)(j)||(0,s.isRef)(j))_.push(j.toString());else if(Array.isArray(j)){var R,M=[],N=I(j);try{for(N.s();!(R=N.n()).done;){var B=R.value;((0,i.isNum)(B)||(0,s.isRef)(B))&&M.push(B.toString())}}catch(e){N.e(e)}finally{N.f()}_.push("[".concat(M.join(),"]"))}}}catch(e){E.e(e)}finally{E.f()}n.update(_.join())}}}return{descriptor:f,dict:e,baseDict:t,composite:o,type:r.name,firstChar:u,lastChar:l,toUnicode:a,hash:n?n.hexdigest():""}}},{key:"translateFont",value:(t=_(a.default.mark((function e(t){var r,n,l,f,d,p,g,m,v,y,b,w,k,S,x,A,C,T,F,P,_,I,E,j,R,M,N,B,D=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.descriptor,n=t.dict,l=t.baseDict,f=t.composite,d=t.type,p=t.firstChar,g=t.lastChar,m=t.toUnicode,v=t.cssFontInfo,y="Type3"===d,r){e.next=19;break}if(!y){e.next=9;break}(r=new s.Dict(null)).set("FontName",s.Name.get(d)),r.set("FontBBox",n.getArray("FontBBox")||[0,0,0,0]),e.next=19;break;case 9:if(w=n.get("BaseFont"),(0,s.isName)(w)){e.next=12;break}throw new i.FormatError("Base font is not specified");case 12:return w=w.name.replace(/[,_]/g,"-"),k=this.getBaseFontMetrics(w),S=w.split("-")[0],x=(this.isSerifFont(S)?u.FontFlags.Serif:0)|(k.monospace?u.FontFlags.FixedPitch:0)|((0,h.getSymbolsFonts)()[S]?u.FontFlags.Symbolic:u.FontFlags.Nonsymbolic),b={type:d,name:w,widths:k.widths,defaultWidth:k.defaultWidth,flags:x,firstChar:p,lastChar:g,toUnicode:m,isType3Font:y},A=n.get("Widths"),e.abrupt("return",this.extractDataStructures(n,n,b).then((function(e){if(A){for(var t=[],r=p,n=0,a=A.length;n<a;n++)t[r++]=D.xref.fetchIfRef(A[n]);e.widths=t}else e.widths=D.buildCharCodeToWidth(k.widths,e);return new c.Font(w,null,e)})));case 19:if(C=r.get("FontName"),T=n.get("BaseFont"),(0,i.isString)(C)&&(C=s.Name.get(C)),(0,i.isString)(T)&&(T=s.Name.get(T)),y||(F=C&&C.name,P=T&&T.name,F!==P&&((0,i.info)("The FontDescriptor's FontName is \\"".concat(F,'" but ')+"should be the same as the Font's BaseFont \\"".concat(P,'".')),F&&P&&P.startsWith(F)&&(C=T))),C=C||T,(0,s.isName)(C)){e.next=27;break}throw new i.FormatError("invalid font name");case 27:e.prev=27,_=r.get("FontFile","FontFile2","FontFile3"),e.next=37;break;case 31:if(e.prev=31,e.t0=e.catch(27),this.options.ignoreErrors){e.next=35;break}throw e.t0;case 35:(0,i.warn)('translateFont - fetching "'.concat(C.name,'" font file: "').concat(e.t0,'".')),_=new O.NullStream;case 37:if(_&&_.dict&&((M=_.dict.get("Subtype"))instanceof s.Name&&(I=M.name),E=_.dict.get("Length1"),j=_.dict.get("Length2"),R=_.dict.get("Length3")),b={type:d,name:C.name,subtype:I,file:_,length1:E,length2:j,length3:R,loadedName:l.loadedName,composite:f,fixedPitch:!1,fontMatrix:n.getArray("FontMatrix")||i.FONT_IDENTITY_MATRIX,firstChar:p,lastChar:g,toUnicode:m,bbox:r.getArray("FontBBox"),ascent:r.get("Ascent"),descent:r.get("Descent"),xHeight:r.get("XHeight"),capHeight:r.get("CapHeight"),flags:r.get("Flags"),italicAngle:r.get("ItalicAngle"),isType3Font:y,cssFontInfo:v},!f){e.next=47;break}return N=l.get("Encoding"),(0,s.isName)(N)&&(b.cidEncoding=N.name),e.next=44,o.CMapFactory.create({encoding:N,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 44:B=e.sent,b.cMap=B,b.vertical=b.cMap.vertical;case 47:return e.abrupt("return",this.extractDataStructures(n,l,b).then((function(e){return D.extractWidths(n,r,e),new c.Font(C.name,_,e)})));case 48:case"end":return e.stop()}}),e,this,[[27,31]])}))),function(e){return t.apply(this,arguments)})}],[{key:"buildFontPaths",value:function(e,t,r,n){function a(t){var a="".concat(e.loadedName,"_path_").concat(t);try{if(e.renderer.hasBuiltPath(t))return;r.send("commonobj",[a,"FontPath",e.renderer.getPathJs(t)])}catch(e){if(n.ignoreErrors)return r.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorFontBuildPath}),void(0,i.warn)("buildFontPaths - ignoring ".concat(a,' glyph: "').concat(e,'".'));throw e}}var o,s=I(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;a(c.fontChar);var u=c.accent;u&&u.fontChar&&a(u.fontChar)}}catch(e){s.e(e)}finally{s.f()}}},{key:"fallbackFontDict",get:function(){var e=new s.Dict;return e.set("BaseFont",s.Name.get("PDFJS-FallbackFont")),e.set("Type",s.Name.get("FallbackType")),e.set("Subtype",s.Name.get("FallbackType")),e.set("Encoding",s.Name.get("WinAnsiEncoding")),(0,i.shadow)(this,"fallbackFontDict",e)}}]),e}();t.PartialEvaluator=H;var $=function(){function e(t){var r=t.loadedName,n=t.font,a=t.dict,i=t.evaluatorOptions;R(this,e),this.loadedName=r,this.font=n,this.dict=a,this._evaluatorOptions=i||B,this.type3Loaded=null,this.type3Dependencies=n.isType3Font?new Set:null,this.sent=!1}return N(e,[{key:"send",value:function(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}},{key:"fallback",value:function(e){this.font.data&&(this.font.disableFontFace=!0,H.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}},{key:"loadType3Data",value:function(e,t,r){var n=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var a=Object.create(e.options);a.ignoreErrors=!1;var o=e.clone(a);o.parsingType3Font=!0;var s,c=this.font,u=this.type3Dependencies,l=Promise.resolve(),f=this.dict.get("CharProcs"),h=this.dict.get("Resources")||t,d=Object.create(null),p=I(f.getKeys());try{var g=function(){var e=s.value;l=l.then((function(){var t=f.get(e),a=new C.OperatorList;return o.getOperatorList({stream:t,task:r,resources:h,operatorList:a}).then((function(){a.fnArray[0]===i.OPS.setCharWidthAndBounds&&n._removeType3ColorOperators(a),d[e]=a.getIR();var t,r=I(a.dependencies);try{for(r.s();!(t=r.n()).done;){var o=t.value;u.add(o)}}catch(e){r.e(e)}finally{r.f()}})).catch((function(t){(0,i.warn)('Type3 font resource "'.concat(e,'" is not available.'));var r=new C.OperatorList;d[e]=r.getIR()}))}))};for(p.s();!(s=p.n()).done;)g()}catch(e){p.e(e)}finally{p.f()}return this.type3Loaded=l.then((function(){c.charProcOperatorList=d})),this.type3Loaded}},{key:"_removeType3ColorOperators",value:function(e){for(var t=1,r=e.length;t<r;){switch(e.fnArray[t]){case i.OPS.setStrokeColorSpace:case i.OPS.setFillColorSpace:case i.OPS.setStrokeColor:case i.OPS.setStrokeColorN:case i.OPS.setFillColor:case i.OPS.setFillColorN:case i.OPS.setStrokeGray:case i.OPS.setFillGray:case i.OPS.setStrokeRGBColor:case i.OPS.setFillRGBColor:case i.OPS.setStrokeCMYKColor:case i.OPS.setFillCMYKColor:case i.OPS.shadingFill:case i.OPS.setRenderingIntent:e.fnArray.splice(t,1),e.argsArray.splice(t,1),r--;continue;case i.OPS.setGState:for(var n=F(e.argsArray[t],1)[0],a=0,o=n.length;a<o;){switch(F(n[a],1)[0]){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":n.splice(a,1),o--;continue}a++}}t++}}}]),e}(),z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new W;R(this,e),this.state=t,this.stateStack=[]}return N(e,[{key:"save",value:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()}},{key:"restore",value:function(){var e=this.stateStack.pop();e&&(this.state=e)}},{key:"transform",value:function(e){this.state.ctm=i.Util.transform(this.state.ctm,e)}}]),e}(),G=function(){function e(){R(this,e),this.ctm=new Float32Array(i.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.textMatrix=i.IDENTITY_MATRIX.slice(),this.textLineMatrix=i.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return N(e,[{key:"setTextMatrix",value:function(e,t,r,n,a,i){var o=this.textMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=a,o[5]=i}},{key:"setTextLineMatrix",value:function(e,t,r,n,a,i){var o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=a,o[5]=i}},{key:"translateTextMatrix",value:function(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"translateTextLineMatrix",value:function(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]}},{key:"carriageReturn",value:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}]),e}(),W=function(){function e(){R(this,e),this.ctm=new Float32Array(i.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=i.TextRenderingMode.FILL,this.fillColorSpace=b.ColorSpace.singletons.gray,this.strokeColorSpace=b.ColorSpace.singletons.gray}return N(e,[{key:"clone",value:function(){return Object.create(this)}}]),e}(),V=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new z;R(this,e),this.parser=new m.Parser({lexer:new m.Lexer(t,e.opMap),xref:r}),this.stateManager=n,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return N(e,[{key:"savedStatesDepth",get:function(){return this.stateManager.stateStack.length}},{key:"read",value:function(t){for(var r=t.args;;){var n=this.parser.getObj();if(n instanceof s.Cmd){var a=n.cmd,o=e.opMap[a];if(!o){(0,i.warn)('Unknown command "'.concat(a,'".'));continue}var c=o.id,u=o.numArgs,l=null!==r?r.length:0;if(o.variableArgs)l>u&&(0,i.info)("Command ".concat(a,": expected [0, ").concat(u,"] args, ")+"but received ".concat(l," args."));else{if(l!==u){for(var f=this.nonProcessedArgs;l>u;)f.push(r.shift()),l--;for(;l<u&&0!==f.length;)null===r&&(r=[]),r.unshift(f.pop()),l++}if(l<u){var h="command ".concat(a,": expected ").concat(u," args, ")+"but received ".concat(l," args.");if(c>=i.OPS.moveTo&&c<=i.OPS.endPath&&++this._numInvalidPathOPS>e.MAX_INVALID_PATH_OPS)throw new i.FormatError("Invalid ".concat(h));(0,i.warn)("Skipping ".concat(h)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(c,r),t.fn=c,t.args=r,!0}if(n===s.EOF)return!1;if(null!==n&&(null===r&&(r=[]),r.push(n),r.length>33))throw new i.FormatError("Too many arguments")}}},{key:"preprocessCommand",value:function(e,t){switch(0|e){case i.OPS.save:this.stateManager.save();break;case i.OPS.restore:this.stateManager.restore();break;case i.OPS.transform:this.stateManager.transform(t)}}}],[{key:"opMap",get:function(){var e=(0,S.getLookupTableFactory)((function(e){e.w={id:i.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:i.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:i.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:i.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:i.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:i.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:i.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:i.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:i.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:i.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:i.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:i.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:i.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:i.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:i.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:i.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:i.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:i.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:i.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:i.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:i.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:i.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:i.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:i.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:i.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:i.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:i.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:i.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:i.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:i.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:i.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:i.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:i.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:i.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:i.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:i.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:i.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:i.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:i.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:i.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:i.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:i.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:i.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:i.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:i.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:i.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:i.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:i.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:i.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:i.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:i.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:i.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:i.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:i.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:i.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:i.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:i.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:i.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:i.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:i.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:i.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:i.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:i.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:i.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:i.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:i.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:i.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:i.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:i.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:i.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:i.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:i.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:i.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null}));return(0,i.shadow)(this,"opMap",e())}},{key:"MAX_INVALID_PATH_OPS",get:function(){return(0,i.shadow)(this,"MAX_INVALID_PATH_OPS",20)}}]),e}();t.EvaluatorPreprocessor=V},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(4),s=r(113),c=r(125),u=r(117),l=r(118);function f(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){f(i,n,a,o,s,"next",e)}function s(e){f(i,n,a,o,s,"throw",e)}o(void 0)}))}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}var w=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],k=Math.pow(2,24)-1,S=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];v(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}return b(e,[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){if(t-e>k)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){if(t-e>k)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var n=r.length-1;e<=t;)this._map[e++]=r,r=r.substring(0,n)+String.fromCharCode(r.charCodeAt(n)+1)}},{key:"mapBfRangeToArray",value:function(e,t,r){if(t-e>k)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var n=r.length,a=0;e<=t&&a<n;)this._map[e]=r[a++],++e}},{key:"mapOne",value:function(e,t){this._map[e]=t}},{key:"lookup",value:function(e){return this._map[e]}},{key:"contains",value:function(e){return void 0!==this._map[e]}},{key:"forEach",value:function(e){var t=this._map,r=t.length;if(r<=65536)for(var n=0;n<r;n++)void 0!==t[n]&&e(n,t[n]);else for(var a in t)e(a,t[a])}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"getMap",value:function(){return this._map}},{key:"readCharCode",value:function(e,t,r){for(var n=0,a=this.codespaceRanges,i=0,o=a.length;i<o;i++){n=(n<<8|e.charCodeAt(t+i))>>>0;for(var s=a[i],c=0,u=s.length;c<u;){var l=s[c++],f=s[c++];if(n>=l&&n<=f)return r.charcode=n,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"getCharCodeLength",value:function(e){for(var t=this.codespaceRanges,r=0,n=t.length;r<n;r++)for(var a=t[r],i=0,o=a.length;i<o;){var s=a[i++],c=a[i++];if(e>=s&&e<=c)return r+1}return 1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}]),e}();t.CMap=S;var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(r,e);var t=p(r);function r(e,n){var a;return v(this,r),(a=t.call(this)).vertical=e,a.addCodespaceRange(n,0,65535),a}return b(r,[{key:"mapCidRange",value:function(e,t,r){(0,o.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){(0,o.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){(0,o.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,o.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){(0,o.unreachable)("should not access .isIdentityCMap")}}]),r}(S);t.IdentityCMap=x;var A=function(){function e(e,t){for(var r=0,n=0;n<=t;n++)r=r<<8|e[n];return r>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function r(e,t,r){for(var n=0,a=r;a>=0;a--)n+=e[a]+t[a],e[a]=255&n,n>>=8}function n(e,t){for(var r=1,n=t;n>=0&&r>0;n--)r+=e[n],e[n]=255&r,r>>=8}var a=16,s=function(){function e(t){v(this,e),this.buffer=t,this.pos=0,this.end=t.length,this.tmpBuf=new Uint8Array(19)}return b(e,[{key:"readByte",value:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new o.FormatError("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t}},{key:"readSigned",value:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1}},{key:"readHex",value:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}},{key:"readHexNumber",value:function(e,t){var r,n=this.tmpBuf,a=0;do{var i=this.readByte();if(i<0)throw new o.FormatError("unexpected EOF in bcmap");r=!(128&i),n[a++]=127&i}while(!r);for(var s=t,c=0,u=0;s>=0;){for(;u<8&&n.length>0;)c=n[--a]<<u|c,u+=7;e[s]=255&c,s--,c>>=8,u-=8}}},{key:"readHexSigned",value:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,n=0,a=0;a<=t;a++)n=(1&n)<<8|e[a],e[a]=n>>1^r}},{key:"readString",value:function(){for(var e=this.readNumber(),t="",r=0;r<e;r++)t+=String.fromCharCode(this.readNumber());return t}}]),e}(),c=function(){function o(){v(this,o)}var c;return b(o,[{key:"process",value:(c=h(i.default.mark((function o(c,u,l){var f,h,d,p,g,m,v,y,b,w,k,S,x,A,O,C,T,F,P,_,I;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:f=new s(c),h=f.readByte(),u.vertical=!!(1&h),d=null,p=new Uint8Array(a),g=new Uint8Array(a),m=new Uint8Array(a),v=new Uint8Array(a),y=new Uint8Array(a);case 9:if(!((w=f.readByte())>=0)){i.next=68;break}if(7!=(k=w>>5)){i.next=20;break}i.t0=31&w,i.next=0===i.t0?15:1===i.t0?17:19;break;case 15:return f.readString(),i.abrupt("break",19);case 17:return d=f.readString(),i.abrupt("break",19);case 19:return i.abrupt("continue",9);case 20:if(S=!!(16&w),!(1+(x=15&w)>a)){i.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:A=1,O=f.readNumber(),i.t1=k,i.next=0===i.t1?29:1===i.t1?35:2===i.t1?41:3===i.t1?46:4===i.t1?53:5===i.t1?58:65;break;case 29:for(f.readHex(p,x),f.readHexNumber(g,x),r(g,p,x),u.addCodespaceRange(x+1,e(p,x),e(g,x)),C=1;C<O;C++)n(g,x),f.readHexNumber(p,x),r(p,g,x),f.readHexNumber(g,x),r(g,p,x),u.addCodespaceRange(x+1,e(p,x),e(g,x));return i.abrupt("break",66);case 35:for(f.readHex(p,x),f.readHexNumber(g,x),r(g,p,x),f.readNumber(),T=1;T<O;T++)n(g,x),f.readHexNumber(p,x),r(p,g,x),f.readHexNumber(g,x),r(g,p,x),f.readNumber();return i.abrupt("break",66);case 41:for(f.readHex(m,x),b=f.readNumber(),u.mapOne(e(m,x),b),F=1;F<O;F++)n(m,x),S||(f.readHexNumber(y,x),r(m,y,x)),b=f.readSigned()+(b+1),u.mapOne(e(m,x),b);return i.abrupt("break",66);case 46:for(f.readHex(p,x),f.readHexNumber(g,x),r(g,p,x),b=f.readNumber(),u.mapCidRange(e(p,x),e(g,x),b),P=1;P<O;P++)n(g,x),S?p.set(g):(f.readHexNumber(p,x),r(p,g,x)),f.readHexNumber(g,x),r(g,p,x),b=f.readNumber(),u.mapCidRange(e(p,x),e(g,x),b);return i.abrupt("break",66);case 53:for(f.readHex(m,A),f.readHex(v,x),u.mapOne(e(m,A),t(v,x)),_=1;_<O;_++)n(m,A),S||(f.readHexNumber(y,A),r(m,y,A)),n(v,x),f.readHexSigned(y,x),r(v,y,x),u.mapOne(e(m,A),t(v,x));return i.abrupt("break",66);case 58:for(f.readHex(p,A),f.readHexNumber(g,A),r(g,p,A),f.readHex(v,x),u.mapBfRange(e(p,A),e(g,A),t(v,x)),I=1;I<O;I++)n(g,A),S?p.set(g):(f.readHexNumber(p,A),r(p,g,A)),f.readHexNumber(g,A),r(g,p,A),f.readHex(v,x),u.mapBfRange(e(p,A),e(g,A),t(v,x));return i.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(k));case 66:i.next=9;break;case 68:if(!d){i.next=70;break}return i.abrupt("return",l(d));case 70:return i.abrupt("return",u);case 71:case"end":return i.stop()}}),o)}))),function(e,t,r){return c.apply(this,arguments)})}]),o}();return c}(),O=function(){function e(e){for(var t=0,r=0;r<e.length;r++)t=t<<8|e.charCodeAt(r);return t>>>0}function t(e){if(!(0,o.isString)(e))throw new o.FormatError("Malformed CMap: expected string.")}function r(e){if(!Number.isInteger(e))throw new o.FormatError("Malformed CMap: expected int.")}function n(r,n){for(;;){var a=n.getObj();if((0,s.isEOF)(a))break;if((0,s.isCmd)(a,"endbfchar"))return;t(a);var i=e(a);t(a=n.getObj());var o=a;r.mapOne(i,o)}}function a(r,n){for(;;){var a=n.getObj();if((0,s.isEOF)(a))break;if((0,s.isCmd)(a,"endbfrange"))return;t(a);var i=e(a);t(a=n.getObj());var c=e(a);if(a=n.getObj(),Number.isInteger(a)||(0,o.isString)(a)){var u=Number.isInteger(a)?String.fromCharCode(a):a;r.mapBfRange(i,c,u)}else{if(!(0,s.isCmd)(a,"["))break;a=n.getObj();for(var l=[];!(0,s.isCmd)(a,"]")&&!(0,s.isEOF)(a);)l.push(a),a=n.getObj();r.mapBfRangeToArray(i,c,l)}}throw new o.FormatError("Invalid bf range.")}function f(n,a){for(;;){var i=a.getObj();if((0,s.isEOF)(i))break;if((0,s.isCmd)(i,"endcidchar"))return;t(i);var o=e(i);r(i=a.getObj());var c=i;n.mapOne(o,c)}}function d(n,a){for(;;){var i=a.getObj();if((0,s.isEOF)(i))break;if((0,s.isCmd)(i,"endcidrange"))return;t(i);var o=e(i);t(i=a.getObj());var c=e(i);r(i=a.getObj());var u=i;n.mapCidRange(o,c,u)}}function p(t,r){for(;;){var n=r.getObj();if((0,s.isEOF)(n))break;if((0,s.isCmd)(n,"endcodespacerange"))return;if(!(0,o.isString)(n))break;var a=e(n);if(n=r.getObj(),!(0,o.isString)(n))break;var i=e(n);t.addCodespaceRange(n.length,a,i)}throw new o.FormatError("Invalid codespace range.")}function g(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function m(e,t){var r=t.getObj();(0,s.isName)(r)&&(0,o.isString)(r.name)&&(e.name=r.name)}function v(e,t,r,n){return y.apply(this,arguments)}function y(){return y=h(i.default.mark((function e(t,r,c,l){var h,v,y;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,y=r.getObj(),!(0,s.isEOF)(y)){e.next=7;break}return e.abrupt("break",39);case 7:if(!(0,s.isName)(y)){e.next=12;break}"WMode"===y.name?g(t,r):"CMapName"===y.name&&m(t,r),h=y,e.next=29;break;case 12:if(!(0,s.isCmd)(y)){e.next=29;break}e.t0=y.cmd,e.next="endcmap"===e.t0?16:"usecmap"===e.t0?17:"begincodespacerange"===e.t0?19:"beginbfchar"===e.t0?21:"begincidchar"===e.t0?23:"beginbfrange"===e.t0?25:"begincidrange"===e.t0?27:29;break;case 16:return e.abrupt("break",39);case 17:return(0,s.isName)(h)&&(v=h.name),e.abrupt("break",29);case 19:return p(t,r),e.abrupt("break",29);case 21:return n(t,r),e.abrupt("break",29);case 23:return f(t,r),e.abrupt("break",29);case 25:return a(t,r),e.abrupt("break",29);case 27:return d(t,r),e.abrupt("break",29);case 29:e.next=37;break;case 31:if(e.prev=31,e.t1=e.catch(1),!(e.t1 instanceof u.MissingDataException)){e.next=35;break}throw e.t1;case 35:return(0,o.warn)("Invalid cMap data: "+e.t1),e.abrupt("continue",0);case 37:e.next=0;break;case 39:if(!l&&v&&(l=v),!l){e.next=42;break}return e.abrupt("return",b(t,c,l));case 42:return e.abrupt("return",t);case 43:case"end":return e.stop()}}),e,null,[[1,31]])}))),y.apply(this,arguments)}function b(e,t,r){return k.apply(this,arguments)}function k(){return(k=h(i.default.mark((function e(t,r,n){var a,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(n,r);case 2:if(t.useCMap=e.sent,0===t.numCodespaceRanges){for(a=t.useCMap.codespaceRanges,o=0;o<a.length;o++)t.codespaceRanges[o]=a[o].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}return t.useCMap.forEach((function(e,r){t.contains(e)||t.mapOne(e,t.useCMap.lookup(e))})),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e,t){return C.apply(this,arguments)}function C(){return(C=h(i.default.mark((function e(t,r){var n,a,s,u,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Identity-H"!==t){e.next=4;break}return e.abrupt("return",new x(!1,2));case 4:if("Identity-V"!==t){e.next=6;break}return e.abrupt("return",new x(!0,2));case 6:if(w.includes(t)){e.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){e.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:return e.next=12,r(t);case 12:if(n=e.sent,a=n.cMapData,s=n.compressionType,u=new S(!0),s!==o.CMapCompressionType.BINARY){e.next=18;break}return e.abrupt("return",(new A).process(a,u,(function(e){return b(u,r,e)})));case 18:if(s!==o.CMapCompressionType.NONE){e.next=21;break}return f=new c.Lexer(new l.Stream(a)),e.abrupt("return",v(u,f,r,null));case 21:throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.");case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return{create:function(e){return h(i.default.mark((function t(){var r,n,a,o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.encoding,n=e.fetchBuiltInCMap,a=e.useCMap,!(0,s.isName)(r)){t.next=7;break}return t.abrupt("return",O(r.name,n));case 7:if(!(0,s.isStream)(r)){t.next=14;break}return t.next=10,v(new S,new c.Lexer(r),n,a);case 10:if(!(o=t.sent).isIdentityCMap){t.next=13;break}return t.abrupt("return",O(o.name,n));case 13:return t.abrupt("return",o);case 14:throw new Error("Encoding required.");case 15:case"end":return t.stop()}}),t)})))()}}}();t.CMapFactory=O},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var n=r(4),a=r(113),i=r(117),o=r(126),s=r(128),c=r(129),u=r(131),l=r(132),f=r(135),h=r(137),d=r(139),p=r(118),g=r(140),m=r(141);function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}function w(e){for(var t=e.length,r=1,n=0,a=0;a<t;++a)n+=r+=255&e[a];return n%65521<<16|r%65521}var k=function(){function e(t){var r=t.lexer,n=t.xref,a=t.allowStreams,i=void 0!==a&&a,o=t.recoveryMode,s=void 0!==o&&o;v(this,e),this.lexer=r,this.xref=n,this.allowStreams=i,this.recoveryMode=s,this.imageCache=Object.create(null),this.refill()}return b(e,[{key:"refill",value:function(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}},{key:"shift",value:function(){this.buf2 instanceof a.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}},{key:"tryShift",value:function(){try{return this.shift(),!0}catch(e){if(e instanceof i.MissingDataException)throw e;return!1}}},{key:"getObj",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof a.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!(0,a.isCmd)(this.buf1,"]")&&!(0,a.isEOF)(this.buf1);)r.push(this.getObj(e));if((0,a.isEOF)(this.buf1)){if(!this.recoveryMode)throw new n.FormatError("End of file inside array");return r}return this.shift(),r;case"<<":for(var i=new a.Dict(this.xref);!(0,a.isCmd)(this.buf1,">>")&&!(0,a.isEOF)(this.buf1);)if((0,a.isName)(this.buf1)){var o=this.buf1.name;if(this.shift(),(0,a.isEOF)(this.buf1))break;i.set(o,this.getObj(e))}else(0,n.info)("Malformed dictionary: key must be a name object"),this.shift();if((0,a.isEOF)(this.buf1)){if(!this.recoveryMode)throw new n.FormatError("End of file inside dictionary");return i}return(0,a.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(i,e):i:(this.shift(),i);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,a.isCmd)(this.buf2,"R")){var s=a.Ref.get(t,this.buf1);return this.shift(),this.shift(),s}return t}return"string"==typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,r,o=this.lexer,s=e.pos,c=0;-1!==(t=e.getByte());)if(0===c)c=69===t?1:0;else if(1===c)c=73===t?2:0;else if((0,n.assert)(2===c,"findDefaultInlineStreamEnd - invalid state."),32===t||10===t||13===t){r=e.pos;for(var u=e.peekBytes(10),l=0,f=u.length;l<f;l++)if((0!==(t=u[l])||0===u[l+1])&&10!==t&&13!==t&&(t<32||t>127)){c=0;break}if(2!==c)continue;if(o.knownCommands){var h=o.peekObj();h instanceof a.Cmd&&!o.knownCommands[h.cmd]&&(c=0)}else(0,n.warn)("findDefaultInlineStreamEnd - \`lexer.knownCommands\` is undefined.");if(2===c)break}else c=0;-1===t&&((0,n.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,n.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var d=4;return e.skip(-d),t=e.peekByte(),e.skip(d),(0,i.isWhiteSpace)(t)||d--,e.pos-d-s}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){for(var t,r,a=e.pos,i=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(r=e.getUint16())>2?e.skip(r-2):e.skip(-2)}if(i)break}var o=e.pos-a;return-1===t?((0,n.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte());)if(126===t){var a=e.pos;for(t=e.peekByte();(0,i.isWhiteSpace)(t);)e.skip(),t=e.peekByte();if(62===t){e.skip();break}if(e.pos>a){var o=e.peekBytes(2);if(69===o[0]&&73===o[1])break}}var s=e.pos-r;return-1===t?((0,n.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-s),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),s)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte())&&62!==t;);var a=e.pos-r;return-1===t?((0,n.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break}},{key:"makeInlineImage",value:function(e){for(var t,r=this.lexer,i=r.stream,o=new a.Dict(this.xref);!(0,a.isCmd)(this.buf1,"ID")&&!(0,a.isEOF)(this.buf1);){if(!(0,a.isName)(this.buf1))throw new n.FormatError("Dictionary key must be a name object");var s=this.buf1.name;if(this.shift(),(0,a.isEOF)(this.buf1))break;o.set(s,this.getObj(e))}-1!==r.beginInlineImagePos&&(t=i.pos-r.beginInlineImagePos);var c,u=o.get("Filter","F");if((0,a.isName)(u))c=u.name;else if(Array.isArray(u)){var l=this.xref.fetchIfRef(u[0]);(0,a.isName)(l)&&(c=l.name)}var f,h=i.pos;f="DCTDecode"===c||"DCT"===c?this.findDCTDecodeInlineStreamEnd(i):"ASCII85Decode"===c||"A85"===c?this.findASCII85DecodeInlineStreamEnd(i):"ASCIIHexDecode"===c||"AHx"===c?this.findASCIIHexDecodeInlineStreamEnd(i):this.findDefaultInlineStreamEnd(i);var d,p=i.makeSubStream(h,f,o);if(f<1e3&&t<5552){var g=p.getBytes();p.reset();var m=i.pos;i.pos=r.beginInlineImagePos;var v=i.getBytes(t);i.pos=m,d=w(g)+"_"+w(v);var y=this.imageCache[d];if(void 0!==y)return this.buf2=a.Cmd.get("EI"),this.shift(),y.reset(),y}return e&&(p=e.createStream(p,f)),(p=this.filter(p,o,f)).dict=o,void 0!==d&&(p.cacheKey="inline_".concat(f,"_").concat(d),this.imageCache[d]=p),this.buf2=a.Cmd.get("EI"),this.shift(),p}},{key:"_findStreamLength",value:function(e,t){var r=this.lexer.stream;r.pos=e;for(var n=t.length;r.pos<r.end;){var a=r.peekBytes(2048),i=a.length-n;if(i<=0)break;for(var o=0;o<i;){for(var s=0;s<n&&a[o+s]===t[s];)s++;if(s>=n)return r.pos+=o,r.pos-e;o++}r.pos+=i}return-1}},{key:"makeStream",value:function(e,t){var r=this.lexer,o=r.stream;r.skipToNextLine();var s=o.pos-1,c=e.get("Length");if(Number.isInteger(c)||((0,n.info)('Bad length "'.concat(c,'" in stream')),c=0),o.pos=s+c,r.nextChar(),this.tryShift()&&(0,a.isCmd)(this.buf2,"endstream"))this.shift();else{var u=new Uint8Array([101,110,100,115,116,114,101,97,109]),l=this._findStreamLength(s,u);if(l<0){for(var f=1;f<=1;f++){var h=u.length-f,d=u.slice(0,h),p=this._findStreamLength(s,d);if(p>=0){var g=o.peekBytes(h+1)[h];if(!(0,i.isWhiteSpace)(g))break;(0,n.info)('Found "'.concat((0,n.bytesToString)(d),'" when ')+"searching for endstream command."),l=p;break}}if(l<0)throw new n.FormatError("Missing endstream command.")}c=l,r.nextChar(),this.shift(),this.shift()}return this.shift(),o=o.makeSubStream(s,c,e),t&&(o=t.createStream(o,c)),(o=this.filter(o,e,c)).dict=e,o}},{key:"filter",value:function(e,t,r){var i=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,a.isName)(i))return Array.isArray(o)&&(0,n.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,i.name,r,o);var s=r;if(Array.isArray(i))for(var c=i,u=o,l=0,f=c.length;l<f;++l){if(i=this.xref.fetchIfRef(c[l]),!(0,a.isName)(i))throw new n.FormatError('Bad filter name "'.concat(i,'"'));o=null,Array.isArray(u)&&l in u&&(o=this.xref.fetchIfRef(u[l])),e=this.makeFilter(e,i.name,s,o),s=null}return e}},{key:"makeFilter",value:function(e,t,r,a){if(0===r)return(0,n.warn)('Empty "'.concat(t,'" stream.')),new p.NullStream;try{var v=this.xref.stats.streamTypes;if("FlateDecode"===t||"Fl"===t)return v[n.StreamType.FLATE]=!0,a?new g.PredictorStream(new u.FlateStream(e,r),r,a):new u.FlateStream(e,r);if("LZWDecode"===t||"LZW"===t){v[n.StreamType.LZW]=!0;var y=1;return a?(a.has("EarlyChange")&&(y=a.get("EarlyChange")),new g.PredictorStream(new d.LZWStream(e,r,y),r,a)):new d.LZWStream(e,r,y)}return"DCTDecode"===t||"DCT"===t?(v[n.StreamType.DCT]=!0,new f.JpegStream(e,r,a)):"JPXDecode"===t||"JPX"===t?(v[n.StreamType.JPX]=!0,new h.JpxStream(e,r,a)):"ASCII85Decode"===t||"A85"===t?(v[n.StreamType.A85]=!0,new o.Ascii85Stream(e,r)):"ASCIIHexDecode"===t||"AHx"===t?(v[n.StreamType.AHX]=!0,new s.AsciiHexStream(e,r)):"CCITTFaxDecode"===t||"CCF"===t?(v[n.StreamType.CCF]=!0,new c.CCITTFaxStream(e,r,a)):"RunLengthDecode"===t||"RL"===t?(v[n.StreamType.RLX]=!0,new m.RunLengthStream(e,r)):"JBIG2Decode"===t?(v[n.StreamType.JBIG]=!0,new l.Jbig2Stream(e,r,a)):((0,n.warn)('Filter "'.concat(t,'" is not supported.')),e)}catch(e){if(e instanceof i.MissingDataException)throw e;return(0,n.warn)('Invalid stream: "'.concat(e,'"')),new p.NullStream}}}]),e}();t.Parser=k;var S=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function x(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var A=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;v(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}return b(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,a=0;if(45===e?(a=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(a=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){if(10===r&&0===a&&((0,i.isWhiteSpace)(e)||-1===e))return(0,n.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new n.FormatError("Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")"))}a=a||1;for(var o=e-48,s=0,c=1;(e=this.nextChar())>=0;)if(e>=48&&e<=57){var u=e-48;t?s=10*s+u:(0!==r&&(r*=10),o=10*o+u)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,n.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)c=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(o/=r),t&&(o*=Math.pow(10,c*s)),a*o}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var a=this.nextChar();;){var i=!1;switch(0|a){case-1:(0,n.warn)("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(a=this.nextChar()){case-1:(0,n.warn)("Unterminated string"),t=!0;break;case 110:r.push("\\n");break;case 114:r.push("\\r");break;case 116:r.push("\\t");break;case 98:r.push("\\b");break;case 102:r.push("\\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&a;i=!0,(a=this.nextChar())>=48&&a<=55&&(o=(o<<3)+(15&a),(a=this.nextChar())>=48&&a<=55&&(i=!1,o=(o<<3)+(15&a))),r.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(a))}break;default:r.push(String.fromCharCode(a))}if(t)break;i||(a=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;for(r.length=0;(e=this.nextChar())>=0&&!S[e];)if(35===e){if(e=this.nextChar(),S[e]){(0,n.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var i=x(e);if(-1!==i){t=e;var o=x(e=this.nextChar());if(-1===o){if((0,n.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),S[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(i<<4|o))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&(0,n.warn)("Name token is longer than allowed by the spec: ".concat(r.length)),a.Name.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,n.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,n.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t,r,a=this.currentChar,i=!0;for(this._hexStringNumWarn=0;;){if(a<0){(0,n.warn)("Unterminated hex string");break}if(62===a){this.nextChar();break}if(1!==S[a]){if(i){if(-1===(t=x(a))){this._hexStringWarn(a),a=this.nextChar();continue}}else{if(-1===(r=x(a))){this._hexStringWarn(a),a=this.nextChar();continue}e.push(String.fromCharCode(t<<4|r))}i=!i,a=this.nextChar()}else a=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==S[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),a.Cmd.get("[");case 93:return this.nextChar(),a.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),a.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),a.Cmd.get(">>")):a.Cmd.get(">");case 123:return this.nextChar(),a.Cmd.get("{");case 125:return this.nextChar(),a.Cmd.get("}");case 41:throw this.nextChar(),new n.FormatError("Illegal character: ".concat(t))}for(var r=String.fromCharCode(t),i=this.knownCommands,o=i&&void 0!==i[r];(t=this.nextChar())>=0&&!S[t];){var s=r+String.fromCharCode(t);if(o&&void 0===i[s])break;if(128===r.length)throw new n.FormatError("Command token too long: ".concat(r.length));r=s,o=i&&void 0!==i[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),a.Cmd.get(r)))}},{key:"peekObj",value:function(){var e,t=this.stream.pos,r=this.currentChar,a=this.beginInlineImagePos;try{e=this.getObj()}catch(e){if(e instanceof i.MissingDataException)throw e;(0,n.warn)("peekObj: ".concat(e))}return this.stream.pos=t,this.currentChar=r,this.beginInlineImagePos=a,e}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=A;var O=function(){function e(){v(this,e)}return b(e,null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.get(t);if(Number.isInteger(n)&&(r?n>=0:n>0))return n;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}var r,i,o=new k({lexer:new A(e),xref:null}),s=o.getObj(),c=o.getObj(),u=o.getObj(),l=o.getObj();if(!(Number.isInteger(s)&&Number.isInteger(c)&&(0,a.isCmd)(u,"obj")&&(0,a.isDict)(l)&&(0,n.isNum)(r=l.get("Linearized"))&&r>0))return null;if((i=t(l,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:i,hints:function(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var n=0;n<t;n++){var a=r[n];if(!(Number.isInteger(a)&&a>0))throw new Error("Hint (".concat(n,") in the linearization dictionary is invalid."))}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(l),objectNumberFirst:t(l,"O"),endFirst:t(l,"E"),numPages:t(l,"N"),mainXRefEntriesOffset:t(l,"T"),pageFirst:l.has("P")?t(l,"P",!0):0}}}]),e}();t.Linearization=O},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0;var a=r(127),i=r(117);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var a=l(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var f=function(e){!function(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&&s(e,t)}(u,e);var t,r,n,a=c(u);function u(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t&&(t*=.8),(r=a.call(this,t)).str=e,r.dict=e.dict,r.input=new Uint8Array(5),r}return t=u,(r=[{key:"readBlock",value:function(){for(var e=this.str,t=e.getByte();(0,i.isWhiteSpace)(t);)t=e.getByte();if(-1!==t&&126!==t){var r,n,a=this.bufferLength;if(122===t){for(r=this.ensureBuffer(a+4),n=0;n<4;++n)r[a+n]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=t,n=1;n<5;++n){for(t=e.getByte();(0,i.isWhiteSpace)(t);)t=e.getByte();if(o[n]=t,-1===t||126===t)break}if(r=this.ensureBuffer(a+n-1),this.bufferLength+=n-1,n<5){for(;n<5;++n)o[n]=117;this.eof=!0}var s=0;for(n=0;n<5;++n)s=85*s+(o[n]-33);for(n=3;n>=0;--n)r[a+n]=255&s,s>>=8}}else this.eof=!0}}])&&o(t.prototype,r),n&&o(t,n),u}(a.DecodeStream);t.Ascii85Stream=f},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0;var a=r(114),i=r(118);function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){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 s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function d(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&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var a=v(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=new Uint8Array(0),b=function(e){d(r,e);var t=g(r);function r(e){var n;if(l(this,r),(n=t.call(this))._rawMinBufferLength=e||0,n.pos=0,n.bufferLength=0,n.eof=!1,n.buffer=y,n.minBufferLength=512,e)for(;n.minBufferLength<e;)n.minBufferLength*=2;return n}return h(r,[{key:"isEmpty",get:function(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}},{key:"ensureBuffer",value:function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var r=this.minBufferLength;r<e;)r*=2;var n=new Uint8Array(r);return n.set(t),this.buffer=n}},{key:"getByte",value:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}},{key:"getBytes",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.pos;if(e){for(this.ensureBuffer(n+e),t=n+e;!this.eof&&this.bufferLength<t;)this.readBlock();var a=this.bufferLength;t>a&&(t=a)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}this.pos=t;var i=this.buffer.subarray(n,t);return!r||i instanceof Uint8ClampedArray?i:new Uint8ClampedArray(i)}},{key:"reset",value:function(){this.pos=0}},{key:"makeSubStream",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0===t)for(;!this.eof;)this.readBlock();else for(var n=e+t;this.bufferLength<=n&&!this.eof;)this.readBlock();return new i.Stream(this.buffer,e,t,r)}},{key:"getBaseStreams",value:function(){return this.str?this.str.getBaseStreams():null}}]),r}(a.BaseStream);t.DecodeStream=b;var w=function(e){d(r,e);var t=g(r);function r(e){var n;l(this,r);var a,i=0,o=s(e);try{for(o.s();!(a=o.n()).done;){var c=a.value;i+=c instanceof b?c._rawMinBufferLength:c.length}}catch(e){o.e(e)}finally{o.f()}return(n=t.call(this,i)).streams=e,n}return h(r,[{key:"readBlock",value:function(){var e=this.streams;if(0!==e.length){var t=e.shift().getBytes(),r=this.bufferLength,n=r+t.length;this.ensureBuffer(n).set(t,r),this.bufferLength=n}else this.eof=!0}},{key:"getBaseStreams",value:function(){var e,t=[],r=s(this.streams);try{for(r.s();!(e=r.n()).done;){var n=e.value.getBaseStreams();n&&t.push.apply(t,o(n))}}catch(e){r.e(e)}finally{r.f()}return t.length>0?t:null}}]),r}(b);t.StreamsSequenceStream=w},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var a=l(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;var f=function(e){!function(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&&s(e,t)}(u,e);var t,r,n,i=c(u);function u(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t&&(t*=.5),(r=i.call(this,t)).str=e,r.dict=e.dict,r.firstDigit=-1,r}return t=u,(r=[{key:"readBlock",value:function(){var e=this.str.getBytes(8e3);if(e.length){var t,r=e.length+1>>1,n=this.ensureBuffer(this.bufferLength+r),i=this.bufferLength,o=this.firstDigit,s=a(e);try{for(s.s();!(t=s.n()).done;){var c=t.value,u=void 0;if(c>=48&&c<=57)u=15&c;else{if(!(c>=65&&c<=70||c>=97&&c<=102)){if(62===c){this.eof=!0;break}continue}u=9+(15&c)}o<0?o=u:(n[i++]=o<<4|u,o=-1)}}catch(e){s.e(e)}finally{s.f()}o>=0&&this.eof&&(n[i++]=o<<4,o=-1),this.firstDigit=o,this.bufferLength=i}else this.eof=!0}}])&&o(t.prototype,r),n&&o(t,n),u}(r(127).DecodeStream);t.AsciiHexStream=f},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var a=r(113),i=r(130);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var a=l(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var f=function(e){!function(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&&s(e,t)}(l,e);var t,r,n,u=c(l);function l(e,t,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(n=u.call(this,t)).str=e,n.dict=e.dict,(0,a.isDict)(r)||(r=a.Dict.empty);var o={next:function(){return e.getByte()}};return n.ccittFaxDecoder=new i.CCITTFaxDecoder(o,{K:r.get("K"),EndOfLine:r.get("EndOfLine"),EncodedByteAlign:r.get("EncodedByteAlign"),Columns:r.get("Columns"),Rows:r.get("Rows"),EndOfBlock:r.get("EndOfBlock"),BlackIs1:r.get("BlackIs1")}),n}return t=l,(r=[{key:"readBlock",value:function(){for(;!this.eof;){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}])&&o(t.prototype,r),n&&o(t,n),l}(r(127).DecodeStream);t.CCITTFaxStream=f},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var n=r(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=-1,s=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],c=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],u=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],l=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],f=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],h=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]],d=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a(this,e),!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t,this.eof=!1,this.encoding=r.K||0,this.eoline=r.EndOfLine||!1,this.byteAlign=r.EncodedByteAlign||!1,this.columns=r.Columns||1728,this.rows=r.Rows||0;var n,i=r.EndOfBlock;for(null==i&&(i=!0),this.eoblock=i,this.black=r.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(n=this._lookBits(12));)this._eatBits(1);1===n&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}var t,r,d;return t=e,(r=[{key:"readNextChar",value:function(){if(this.eof)return-1;var e,t,r,a,i,s=this.refLine,c=this.codingLine,u=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var l,f,h;if(this.err=!1,this.nextLine2D){for(a=0;c[a]<u;++a)s[a]=c[a];for(s[a++]=u,s[a]=u,c[0]=0,this.codingPos=0,e=0,t=0;c[this.codingPos]<u;)switch(l=this._getTwoDimCode()){case 0:this._addPixels(s[e+1],t),s[e+1]<u&&(e+=2);break;case 1:if(l=f=0,t){do{l+=h=this._getBlackCode()}while(h>=64);do{f+=h=this._getWhiteCode()}while(h>=64)}else{do{l+=h=this._getWhiteCode()}while(h>=64);do{f+=h=this._getBlackCode()}while(h>=64)}for(this._addPixels(c[this.codingPos]+l,t),c[this.codingPos]<u&&this._addPixels(c[this.codingPos]+f,1^t);s[e]<=c[this.codingPos]&&s[e]<u;)e+=2;break;case 7:if(this._addPixels(s[e]+3,t),t^=1,c[this.codingPos]<u)for(++e;s[e]<=c[this.codingPos]&&s[e]<u;)e+=2;break;case 5:if(this._addPixels(s[e]+2,t),t^=1,c[this.codingPos]<u)for(++e;s[e]<=c[this.codingPos]&&s[e]<u;)e+=2;break;case 3:if(this._addPixels(s[e]+1,t),t^=1,c[this.codingPos]<u)for(++e;s[e]<=c[this.codingPos]&&s[e]<u;)e+=2;break;case 2:if(this._addPixels(s[e],t),t^=1,c[this.codingPos]<u)for(++e;s[e]<=c[this.codingPos]&&s[e]<u;)e+=2;break;case 8:if(this._addPixelsNeg(s[e]-3,t),t^=1,c[this.codingPos]<u)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<u;)e+=2;break;case 6:if(this._addPixelsNeg(s[e]-2,t),t^=1,c[this.codingPos]<u)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<u;)e+=2;break;case 4:if(this._addPixelsNeg(s[e]-1,t),t^=1,c[this.codingPos]<u)for(e>0?--e:++e;s[e]<=c[this.codingPos]&&s[e]<u;)e+=2;break;case o:this._addPixels(u,0),this.eof=!0;break;default:(0,n.info)("bad 2d code"),this._addPixels(u,0),this.err=!0}}else for(c[0]=0,this.codingPos=0,t=0;c[this.codingPos]<u;){if(l=0,t)do{l+=h=this._getBlackCode()}while(h>=64);else do{l+=h=this._getWhiteCode()}while(h>=64);this._addPixels(c[this.codingPos]+l,t),t^=1}var d=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(l=this._lookBits(12),this.eoline)for(;l!==o&&1!==l;)this._eatBits(1),l=this._lookBits(12);else for(;0===l;)this._eatBits(1),l=this._lookBits(12);1===l?(this._eatBits(12),d=!0):l===o&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&d&&this.byteAlign){if(1===(l=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(a=0;a<4;++a)1!==(l=this._lookBits(12))&&(0,n.info)("bad rtc code: "+l),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((l=this._lookBits(13))===o)return this.eof=!0,-1;if(l>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&l))}c[0]>0?this.outputBits=c[this.codingPos=0]:this.outputBits=c[this.codingPos=1],this.row++}if(this.outputBits>=8)i=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&c[this.codingPos]<u&&(this.codingPos++,this.outputBits=c[this.codingPos]-c[this.codingPos-1]);else{r=8,i=0;do{this.outputBits>r?(i<<=r,1&this.codingPos||(i|=255>>8-r),this.outputBits-=r,r=0):(i<<=this.outputBits,1&this.codingPos||(i|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,c[this.codingPos]<u?(this.codingPos++,this.outputBits=c[this.codingPos]-c[this.codingPos-1]):r>0&&(i<<=r,r=0))}while(r)}return this.black&&(i^=255),i}},{key:"_addPixels",value:function(e,t){var r=this.codingLine,a=this.codingPos;e>r[a]&&(e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,r[a]=e),this.codingPos=a}},{key:"_addPixelsNeg",value:function(e,t){var r=this.codingLine,a=this.codingPos;if(e>r[a])e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,r[a]=e;else if(e<r[a]){for(e<0&&((0,n.info)("invalid code"),this.err=!0,e=0);a>0&&e<r[a-1];)--a;r[a]=e}this.codingPos=a}},{key:"_findTableCode",value:function(e,t,r,n){for(var a=n||0,i=e;i<=t;++i){var s=this._lookBits(i);if(s===o)return[!0,1,!1];if(i<t&&(s<<=t-i),!a||s>=a){var c=r[s-a];if(c[0]===i)return this._eatBits(i),[!0,c[1],!0]}}return[!1,0,!1]}},{key:"_getTwoDimCode",value:function(){var e,t=0;if(this.eoblock){if(t=this._lookBits(7),(e=s[t])&&e[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,7,s);if(r[0]&&r[2])return r[1]}return(0,n.info)("Bad two dim code"),o}},{key:"_getWhiteCode",value:function(){var e,t=0;if(this.eoblock){if((t=this._lookBits(12))===o)return 1;if((e=t>>5==0?c[t]:u[t>>3])[0]>0)return this._eatBits(e[0]),e[1]}else{var r=this._findTableCode(1,9,u);if(r[0])return r[1];if((r=this._findTableCode(11,12,c))[0])return r[1]}return(0,n.info)("bad white code"),this._eatBits(1),1}},{key:"_getBlackCode",value:function(){var e,t;if(this.eoblock){if((e=this._lookBits(13))===o)return 1;if((t=e>>7==0?l[e]:e>>9==0&&e>>7!=0?f[(e>>1)-64]:h[e>>7])[0]>0)return this._eatBits(t[0]),t[1]}else{var r=this._findTableCode(2,6,h);if(r[0])return r[1];if((r=this._findTableCode(7,12,f,64))[0])return r[1];if((r=this._findTableCode(10,13,l))[0])return r[1]}return(0,n.info)("bad black code"),this._eatBits(1),1}},{key:"_lookBits",value:function(e){for(var t;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?o:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}},{key:"_eatBits",value:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}])&&i(t.prototype,r),d&&i(t,d),e}();t.CCITTFaxDecoder=d},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0;var a=r(127),i=r(4);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var a=l(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var f=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),d=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),p=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],g=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],m=function(e){!function(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&&s(e,t)}(u,e);var t,r,n,a=c(u);function u(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(r=a.call(this,t)).str=e,r.dict=e.dict;var n=e.getByte(),o=e.getByte();if(-1===n||-1===o)throw new i.FormatError("Invalid header in flate stream: ".concat(n,", ").concat(o));if(8!=(15&n))throw new i.FormatError("Unknown compression method in flate stream: ".concat(n,", ").concat(o));if(((n<<8)+o)%31!=0)throw new i.FormatError("Bad FCHECK in flate stream: ".concat(n,", ").concat(o));if(32&o)throw new i.FormatError("FDICT bit set in flate stream: ".concat(n,", ").concat(o));return r.codeSize=0,r.codeBuf=0,r}return t=u,(r=[{key:"getBits",value:function(e){for(var t,r=this.str,n=this.codeSize,a=this.codeBuf;n<e;){if(-1===(t=r.getByte()))throw new i.FormatError("Bad encoding in flate stream");a|=t<<n,n+=8}return t=a&(1<<e)-1,this.codeBuf=a>>e,this.codeSize=n-=e,t}},{key:"getCode",value:function(e){for(var t,r=this.str,n=e[0],a=e[1],o=this.codeSize,s=this.codeBuf;o<a&&-1!==(t=r.getByte());)s|=t<<o,o+=8;var c=n[s&(1<<a)-1],u=c>>16,l=65535&c;if(u<1||o<u)throw new i.FormatError("Bad encoding in flate stream");return this.codeBuf=s>>u,this.codeSize=o-u,l}},{key:"generateHuffmanTable",value:function(e){var t,r=e.length,n=0;for(t=0;t<r;++t)e[t]>n&&(n=e[t]);for(var a=1<<n,i=new Int32Array(a),o=1,s=0,c=2;o<=n;++o,s<<=1,c<<=1)for(var u=0;u<r;++u)if(e[u]===o){var l=0,f=s;for(t=0;t<o;++t)l=l<<1|1&f,f>>=1;for(t=l;t<a;t+=c)i[t]=o<<16|u;++s}return[i,n]}},{key:"readBlock",value:function(){var e,t,r=this.str,n=this.getBits(3);if(1&n&&(this.eof=!0),0!=(n>>=1)){var a,o;if(1===n)a=p,o=g;else{if(2!==n)throw new i.FormatError("Unknown block type in flate stream");var s,c=this.getBits(5)+257,u=this.getBits(5)+1,l=this.getBits(4)+4,m=new Uint8Array(f.length);for(s=0;s<l;++s)m[f[s]]=this.getBits(3);var v=this.generateHuffmanTable(m);t=0,s=0;for(var y,b,w,k=c+u,S=new Uint8Array(k);s<k;){var x=this.getCode(v);if(16===x)y=2,b=3,w=t;else if(17===x)y=3,b=3,w=t=0;else{if(18!==x){S[s++]=t=x;continue}y=7,b=11,w=t=0}for(var A=this.getBits(y)+b;A-- >0;)S[s++]=w}a=this.generateHuffmanTable(S.subarray(0,c)),o=this.generateHuffmanTable(S.subarray(c,k))}for(var O=(e=this.buffer)?e.length:0,C=this.bufferLength;;){var T=this.getCode(a);if(T<256)C+1>=O&&(O=(e=this.ensureBuffer(C+1)).length),e[C++]=T;else{if(256===T)return void(this.bufferLength=C);var F=(T=h[T-=257])>>16;F>0&&(F=this.getBits(F)),t=(65535&T)+F,T=this.getCode(o),(F=(T=d[T])>>16)>0&&(F=this.getBits(F));var P=(65535&T)+F;C+t>=O&&(O=(e=this.ensureBuffer(C+t)).length);for(var _=0;_<t;++_,++C)e[C]=e[C-P]}}}else{var I;if(-1===(I=r.getByte()))throw new i.FormatError("Bad block header in flate stream");var E=I;if(-1===(I=r.getByte()))throw new i.FormatError("Bad block header in flate stream");if(E|=I<<8,-1===(I=r.getByte()))throw new i.FormatError("Bad block header in flate stream");var j=I;if(-1===(I=r.getByte()))throw new i.FormatError("Bad block header in flate stream");if((j|=I<<8)!=(65535&~E)&&(0!==E||0!==j))throw new i.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var R=this.bufferLength,M=R+E;if(e=this.ensureBuffer(M),this.bufferLength=M,0===E)-1===r.peekByte()&&(this.eof=!0);else{var N=r.getBytes(E);e.set(N,R),N.length<E&&(this.eof=!0)}}}}])&&o(t.prototype,r),n&&o(t,n),u}(a.DecodeStream);t.FlateStream=m},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var a=r(113),i=r(127),o=r(133),s=r(4);function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=function(e){!function(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)}(f,e);var t,r,n,i=l(f);function f(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(n=i.call(this,t)).stream=e,n.dict=e.dict,n.maybeLength=t,n.params=r,n}return t=f,(r=[{key:"bytes",get:function(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e=new o.Jbig2Image,t=[];if((0,a.isDict)(this.params)){var r=this.params.get("JBIG2Globals");if((0,a.isStream)(r)){var n=r.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});for(var i=e.parseChunks(t),s=i.length,c=0;c<s;c++)i[c]^=255;this.buffer=i,this.bufferLength=s,this.eof=!0}}}])&&c(t.prototype,r),n&&c(t,n),f}(i.DecodeStream);t.Jbig2Stream=d},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var a=r(4),i=r(117),o=r(134),s=r(130);function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var a=p(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g=function(e){!function(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&&f(e,t)}(r,e);var t=h(r);function r(e){return l(this,r),t.call(this,"JBIG2 error: ".concat(e))}return r}(a.BaseException),m=function(){function e(){l(this,e)}return u(e,[{key:"getContexts",value:function(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}]),e}(),v=function(){function e(t,r,n){l(this,e),this.data=t,this.start=r,this.end=n}return u(e,[{key:"decoder",get:function(){var e=new o.ArithmeticDecoder(this.data,this.start,this.end);return(0,a.shadow)(this,"decoder",e)}},{key:"contextCache",get:function(){var e=new m;return(0,a.shadow)(this,"contextCache",e)}}]),e}();function y(e,t,r){var n=e.getContexts(t),a=1;function i(e){for(var t=0,i=0;i<e;i++){var o=r.readBit(n,a);a=a<256?a<<1|o:511&(a<<1|o)|256,t=t<<1|o}return t>>>0}var o=i(1),s=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===o?s:s>0?-s:null}function b(e,t,r){for(var n=e.getContexts("IAID"),a=1,i=0;i<r;i++)a=a<<1|t.readBit(n,a);return r<31?a&(1<<r)-1:2147483647&a}var w=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],k=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],S=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],x=[39717,1941,229,405],A=[32,8];function O(e,t,r,n,a,i,o,s){if(e)return H(new U(s.data,s.start,s.end),t,r,!1);if(0===n&&!i&&!a&&4===o.length&&3===o[0].x&&-1===o[0].y&&-3===o[1].x&&-1===o[1].y&&2===o[2].x&&-2===o[2].y&&-2===o[3].x&&-2===o[3].y)return function(e,t,r){var n,a,i,o,s,c,u,l=r.decoder,f=r.contextCache.getContexts("GB"),h=[];for(a=0;a<t;a++)for(s=h[a]=new Uint8Array(e),c=a<1?s:h[a-1],n=(u=a<2?s:h[a-2])[0]<<13|u[1]<<12|u[2]<<11|c[0]<<7|c[1]<<6|c[2]<<5|c[3]<<4,i=0;i<e;i++)s[i]=o=l.readBit(f,n),n=(31735&n)<<1|(i+3<e?u[i+3]<<11:0)|(i+4<e?c[i+4]<<4:0)|o;return h}(t,r,s);var c=!!i,u=k[n].concat(o);u.sort((function(e,t){return e.y-t.y||e.x-t.x}));var l,f,h=u.length,d=new Int8Array(h),p=new Int8Array(h),g=[],m=0,v=0,y=0,b=0;for(f=0;f<h;f++)d[f]=u[f].x,p[f]=u[f].y,v=Math.min(v,u[f].x),y=Math.max(y,u[f].x),b=Math.min(b,u[f].y),f<h-1&&u[f].y===u[f+1].y&&u[f].x===u[f+1].x-1?m|=1<<h-1-f:g.push(f);var w=g.length,S=new Int8Array(w),A=new Int8Array(w),O=new Uint16Array(w);for(l=0;l<w;l++)f=g[l],S[l]=u[f].x,A[l]=u[f].y,O[l]=1<<h-1-f;for(var C,T,F,P,_,I=-v,E=-b,j=t-y,R=x[n],M=new Uint8Array(t),N=[],B=s.decoder,D=s.contextCache.getContexts("GB"),L=0,q=0,X=0;X<r;X++)if(a&&(L^=B.readBit(D,R)))N.push(M);else for(M=new Uint8Array(M),N.push(M),C=0;C<t;C++)if(c&&i[X][C])M[C]=0;else{if(C>=I&&C<j&&X>=E)for(q=q<<1&m,f=0;f<w;f++)T=X+A[f],F=C+S[f],(P=N[T][F])&&(q|=P=O[f]);else for(q=0,_=h-1,f=0;f<h;f++,_--)(F=C+d[f])>=0&&F<t&&(T=X+p[f])>=0&&(P=N[T][F])&&(q|=P<<_);var $=B.readBit(D,q);M[C]=$}return N}function C(e,t,r,n,a,i,o,s,c){var u=S[r].coding;0===r&&(u=u.concat([s[0]]));var l,f=u.length,h=new Int32Array(f),d=new Int32Array(f);for(l=0;l<f;l++)h[l]=u[l].x,d[l]=u[l].y;var p=S[r].reference;0===r&&(p=p.concat([s[1]]));var m=p.length,v=new Int32Array(m),y=new Int32Array(m);for(l=0;l<m;l++)v[l]=p[l].x,y[l]=p[l].y;for(var b=n[0].length,w=n.length,k=A[r],x=[],O=c.decoder,C=c.contextCache.getContexts("GR"),T=0,F=0;F<t;F++){if(o&&(T^=O.readBit(C,k)))throw new g("prediction is not supported");var P=new Uint8Array(e);x.push(P);for(var _=0;_<e;_++){var I=void 0,E=void 0,j=0;for(l=0;l<f;l++)I=F+d[l],E=_+h[l],I<0||E<0||E>=e?j<<=1:j=j<<1|x[I][E];for(l=0;l<m;l++)I=F+y[l]-i,E=_+v[l]-a,I<0||I>=w||E<0||E>=b?j<<=1:j=j<<1|n[I][E];var R=O.readBit(C,j);P[_]=R}}return x}function T(e,t,r,n,a,i,o,s,c,u,l,f,h,d,p,m,v,w,k){if(e&&t)throw new g("refinement with Huffman is not supported");var S,x,A=[];for(S=0;S<n;S++){if(x=new Uint8Array(r),a)for(var O=0;O<r;O++)x[O]=a;A.push(x)}var T=v.decoder,F=v.contextCache,P=e?-d.tableDeltaT.decode(k):-y(F,"IADT",T),_=0;for(S=0;S<i;){P+=e?d.tableDeltaT.decode(k):y(F,"IADT",T);for(var I=_+=e?d.tableFirstS.decode(k):y(F,"IAFS",T);;){var E=0;o>1&&(E=e?k.readBits(w):y(F,"IAIT",T));var j=o*P+E,R=e?d.symbolIDTable.decode(k):b(F,T,c),M=t&&(e?k.readBit():y(F,"IARI",T)),N=s[R],B=N[0].length,D=N.length;if(M){var L=y(F,"IARDW",T),U=y(F,"IARDH",T);N=C(B+=L,D+=U,p,N,(L>>1)+y(F,"IARDX",T),(U>>1)+y(F,"IARDY",T),!1,m,v)}var q=j-(1&f?0:D-1),X=I-(2&f?B-1:0),H=void 0,$=void 0,z=void 0;if(u){for(H=0;H<D;H++)if(x=A[X+H]){z=N[H];var G=Math.min(r-q,B);switch(h){case 0:for($=0;$<G;$++)x[q+$]|=z[$];break;case 2:for($=0;$<G;$++)x[q+$]^=z[$];break;default:throw new g("operator ".concat(h," is not supported"))}}I+=D-1}else{for($=0;$<D;$++)if(x=A[q+$])switch(z=N[$],h){case 0:for(H=0;H<B;H++)x[X+H]|=z[H];break;case 2:for(H=0;H<B;H++)x[X+H]^=z[H];break;default:throw new g("operator ".concat(h," is not supported"))}I+=B-1}S++;var W=e?d.tableDeltaS.decode(k):y(F,"IADS",T);if(null===W)break;I+=W+l}}return A}function F(e,t){var r={};r.number=(0,i.readUint32)(e,t);var n=e[t+4],a=63&n;if(!w[a])throw new g("invalid segment type: "+a);r.type=a,r.typeName=w[a],r.deferredNonRetain=!!(128&n);var o=!!(64&n),s=e[t+5],c=s>>5&7,u=[31&s],l=t+6;if(7===s){c=536870911&(0,i.readUint32)(e,l-1),l+=3;var f=c+7>>3;for(u[0]=e[l++];--f>0;)u.push(e[l++])}else if(5===s||6===s)throw new g("invalid referred-to flags");r.retainBits=u;var h=4;r.number<=256?h=1:r.number<=65536&&(h=2);var d,p,m=[];for(d=0;d<c;d++){var v=void 0;v=1===h?e[l]:2===h?(0,i.readUint16)(e,l):(0,i.readUint32)(e,l),m.push(v),l+=h}if(r.referredTo=m,o?(r.pageAssociation=(0,i.readUint32)(e,l),l+=4):r.pageAssociation=e[l++],r.length=(0,i.readUint32)(e,l),l+=4,4294967295===r.length){if(38!==a)throw new g("invalid unknown segment length");var y=_(e,l),b=!!(1&e[l+I]),k=new Uint8Array(6);for(b||(k[0]=255,k[1]=172),k[2]=y.height>>>24&255,k[3]=y.height>>16&255,k[4]=y.height>>8&255,k[5]=255&y.height,d=l,p=e.length;d<p;d++){for(var S=0;S<6&&k[S]===e[d+S];)S++;if(6===S){r.length=d+6;break}}if(4294967295===r.length)throw new g("segment end was not found")}return r.headerEnd=l,r}function P(e,t,r,n){for(var a=[],i=r;i<n;){var o=F(t,i);i=o.headerEnd;var s={header:o,data:t};if(e.randomAccess||(s.start=i,i+=o.length,s.end=i),a.push(s),51===o.type)break}if(e.randomAccess)for(var c=0,u=a.length;c<u;c++)a[c].start=i,i+=a[c].header.length,a[c].end=i;return a}function _(e,t){return{width:(0,i.readUint32)(e,t),height:(0,i.readUint32)(e,t+4),x:(0,i.readUint32)(e,t+8),y:(0,i.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}var I=17;function E(e,t){var r,n,a,o,s=e.header,c=e.data,u=e.end,l=e.start;switch(s.type){case 0:var f={},h=(0,i.readUint16)(c,l);if(f.huffman=!!(1&h),f.refinement=!!(2&h),f.huffmanDHSelector=h>>2&3,f.huffmanDWSelector=h>>4&3,f.bitmapSizeSelector=h>>6&1,f.aggregationInstancesSelector=h>>7&1,f.bitmapCodingContextUsed=!!(256&h),f.bitmapCodingContextRetained=!!(512&h),f.template=h>>10&3,f.refinementTemplate=h>>12&1,l+=2,!f.huffman){for(o=0===f.template?4:1,n=[],a=0;a<o;a++)n.push({x:(0,i.readInt8)(c,l),y:(0,i.readInt8)(c,l+1)}),l+=2;f.at=n}if(f.refinement&&!f.refinementTemplate){for(n=[],a=0;a<2;a++)n.push({x:(0,i.readInt8)(c,l),y:(0,i.readInt8)(c,l+1)}),l+=2;f.refinementAt=n}f.numberOfExportedSymbols=(0,i.readUint32)(c,l),l+=4,f.numberOfNewSymbols=(0,i.readUint32)(c,l),l+=4,r=[f,s.number,s.referredTo,c,l,u];break;case 6:case 7:var d={};d.info=_(c,l),l+=I;var p=(0,i.readUint16)(c,l);if(l+=2,d.huffman=!!(1&p),d.refinement=!!(2&p),d.logStripSize=p>>2&3,d.stripSize=1<<d.logStripSize,d.referenceCorner=p>>4&3,d.transposed=!!(64&p),d.combinationOperator=p>>7&3,d.defaultPixelValue=p>>9&1,d.dsOffset=p<<17>>27,d.refinementTemplate=p>>15&1,d.huffman){var m=(0,i.readUint16)(c,l);l+=2,d.huffmanFS=3&m,d.huffmanDS=m>>2&3,d.huffmanDT=m>>4&3,d.huffmanRefinementDW=m>>6&3,d.huffmanRefinementDH=m>>8&3,d.huffmanRefinementDX=m>>10&3,d.huffmanRefinementDY=m>>12&3,d.huffmanRefinementSizeSelector=!!(16384&m)}if(d.refinement&&!d.refinementTemplate){for(n=[],a=0;a<2;a++)n.push({x:(0,i.readInt8)(c,l),y:(0,i.readInt8)(c,l+1)}),l+=2;d.refinementAt=n}d.numberOfSymbolInstances=(0,i.readUint32)(c,l),l+=4,r=[d,s.referredTo,c,l,u];break;case 16:var v={},y=c[l++];v.mmr=!!(1&y),v.template=y>>1&3,v.patternWidth=c[l++],v.patternHeight=c[l++],v.maxPatternIndex=(0,i.readUint32)(c,l),l+=4,r=[v,s.number,c,l,u];break;case 22:case 23:var b={};b.info=_(c,l),l+=I;var w=c[l++];b.mmr=!!(1&w),b.template=w>>1&3,b.enableSkip=!!(8&w),b.combinationOperator=w>>4&7,b.defaultPixelValue=w>>7&1,b.gridWidth=(0,i.readUint32)(c,l),l+=4,b.gridHeight=(0,i.readUint32)(c,l),l+=4,b.gridOffsetX=4294967295&(0,i.readUint32)(c,l),l+=4,b.gridOffsetY=4294967295&(0,i.readUint32)(c,l),l+=4,b.gridVectorX=(0,i.readUint16)(c,l),l+=2,b.gridVectorY=(0,i.readUint16)(c,l),l+=2,r=[b,s.referredTo,c,l,u];break;case 38:case 39:var k={};k.info=_(c,l),l+=I;var S=c[l++];if(k.mmr=!!(1&S),k.template=S>>1&3,k.prediction=!!(8&S),!k.mmr){for(o=0===k.template?4:1,n=[],a=0;a<o;a++)n.push({x:(0,i.readInt8)(c,l),y:(0,i.readInt8)(c,l+1)}),l+=2;k.at=n}r=[k,c,l,u];break;case 48:var x={width:(0,i.readUint32)(c,l),height:(0,i.readUint32)(c,l+4),resolutionX:(0,i.readUint32)(c,l+8),resolutionY:(0,i.readUint32)(c,l+12)};4294967295===x.height&&delete x.height;var A=c[l+16];(0,i.readUint16)(c,l+17),x.lossless=!!(1&A),x.refinement=!!(2&A),x.defaultPixelValue=A>>2&1,x.combinationOperator=A>>3&3,x.requiresBuffer=!!(32&A),x.combinationOperatorOverride=!!(64&A),r=[x];break;case 49:case 50:case 51:case 62:break;case 53:r=[s.number,c,l,u];break;default:throw new g("segment type ".concat(s.typeName,"(").concat(s.type,")")+" is not implemented")}var O="on"+s.typeName;O in t&&t[O].apply(t,r)}function j(e,t){for(var r=0,n=e.length;r<n;r++)E(e[r],t)}var R=function(){function e(){l(this,e)}return u(e,[{key:"onPageInformation",value:function(e){this.currentPageInfo=e;var t=e.width+7>>3,r=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var n=0,a=r.length;n<a;n++)r[n]=255;this.buffer=r}},{key:"drawBitmap",value:function(e,t){var r,n,a,i,o=this.currentPageInfo,s=e.width,c=e.height,u=o.width+7>>3,l=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,f=this.buffer,h=128>>(7&e.x),d=e.y*u+(e.x>>3);switch(l){case 0:for(r=0;r<c;r++){for(a=h,i=d,n=0;n<s;n++)t[r][n]&&(f[i]|=a),(a>>=1)||(a=128,i++);d+=u}break;case 2:for(r=0;r<c;r++){for(a=h,i=d,n=0;n<s;n++)t[r][n]&&(f[i]^=a),(a>>=1)||(a=128,i++);d+=u}break;default:throw new g("operator ".concat(l," is not supported"))}}},{key:"onImmediateGenericRegion",value:function(e,t,r,n){var a=e.info,i=new v(t,r,n),o=O(e.mmr,a.width,a.height,e.template,e.prediction,null,e.at,i);this.drawBitmap(a,o)}},{key:"onImmediateLosslessGenericRegion",value:function(){this.onImmediateGenericRegion.apply(this,arguments)}},{key:"onSymbolDictionary",value:function(e,t,r,n,a,o){var s,c;e.huffman&&(s=function(e,t,r){var n,a,i,o,s=0;switch(e.huffmanDHSelector){case 0:case 1:n=L(e.huffmanDHSelector+4);break;case 3:n=q(s,t,r),s++;break;default:throw new g("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:a=L(e.huffmanDWSelector+2);break;case 3:a=q(s,t,r),s++;break;default:throw new g("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=q(s,t,r),s++):i=L(1),o=e.aggregationInstancesSelector?q(s,t,r):L(1),{tableDeltaHeight:n,tableDeltaWidth:a,tableBitmapSize:i,tableAggregateInstances:o}}(e,r,this.customTables),c=new U(n,a,o));var u=this.symbols;u||(this.symbols=u={});for(var l=[],f=0,h=r.length;f<h;f++){var d=u[r[f]];d&&(l=l.concat(d))}var p=new v(n,a,o);u[t]=function(e,t,r,n,a,o,s,c,u,l,f,h){if(e&&t)throw new g("symbol refinement with Huffman is not supported");var d,p,m=[],v=0,w=(0,i.log2)(r.length+n),k=f.decoder,S=f.contextCache;for(e&&(d=L(1),p=[],w=Math.max(w,1));m.length<n;){v+=e?o.tableDeltaHeight.decode(h):y(S,"IADH",k);for(var x=0,A=0,F=e?p.length:0;;){var P=e?o.tableDeltaWidth.decode(h):y(S,"IADW",k);if(null===P)break;A+=x+=P;var _=void 0;if(t){var I=y(S,"IAAI",k);if(I>1)_=T(e,t,x,v,0,I,1,r.concat(m),w,0,0,1,0,o,u,l,f,0,h);else{var E=b(S,k,w),j=y(S,"IARDX",k),R=y(S,"IARDY",k);_=C(x,v,u,E<r.length?r[E]:m[E-r.length],j,R,!1,l,f)}m.push(_)}else e?p.push(x):(_=O(!1,x,v,s,!1,null,c,f),m.push(_))}if(e&&!t){var M=o.tableBitmapSize.decode(h);h.byteAlign();var N=void 0;if(0===M)N=X(h,A,v);else{var B=h.end,D=h.position+M;h.end=D,N=H(h,A,v,!1),h.end=B,h.position=D}var U=p.length;if(F===U-1)m.push(N);else{var q=void 0,$=void 0,z=0,G=void 0,W=void 0;for(q=F;q<U;q++){for(G=z+p[q],W=[],$=0;$<v;$++)W.push(N[$].subarray(z,G));m.push(W),z=G}}}}for(var V,K,Y=[],J=[],Z=!1,Q=r.length+n;J.length<Q;){for(var ee=e?d.decode(h):y(S,"IAEX",k);ee--;)J.push(Z);Z=!Z}for(V=0,K=r.length;V<K;V++)J[V]&&Y.push(r[V]);for(var te=0;te<n;V++,te++)J[V]&&Y.push(m[te]);return Y}(e.huffman,e.refinement,l,e.numberOfNewSymbols,e.numberOfExportedSymbols,s,e.template,e.at,e.refinementTemplate,e.refinementAt,p,c)}},{key:"onImmediateTextRegion",value:function(e,t,r,n,a){for(var o,s,c=e.info,u=this.symbols,l=[],f=0,h=t.length;f<h;f++){var d=u[t[f]];d&&(l=l.concat(d))}var p=(0,i.log2)(l.length);e.huffman&&(s=new U(r,n,a),o=function(e,t,r,n,a){for(var i=[],o=0;o<=34;o++){var s=a.readBits(4);i.push(new M([o,s,0,0]))}var c=new B(i,!1);i.length=0;for(var u=0;u<n;){var l=c.decode(a);if(l>=32){var f=void 0,h=void 0,d=void 0;switch(l){case 32:if(0===u)throw new g("no previous value in symbol ID table");h=a.readBits(2)+3,f=i[u-1].prefixLength;break;case 33:h=a.readBits(3)+3,f=0;break;case 34:h=a.readBits(7)+11,f=0;break;default:throw new g("invalid code length in symbol ID table")}for(d=0;d<h;d++)i.push(new M([u,f,0,0])),u++}else i.push(new M([u,l,0,0])),u++}a.byteAlign();var p,m,v,y=new B(i,!1),b=0;switch(e.huffmanFS){case 0:case 1:p=L(e.huffmanFS+6);break;case 3:p=q(b,t,r),b++;break;default:throw new g("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:m=L(e.huffmanDS+8);break;case 3:m=q(b,t,r),b++;break;default:throw new g("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:v=L(e.huffmanDT+11);break;case 3:v=q(b,t,r),b++;break;default:throw new g("invalid Huffman DT selector")}if(e.refinement)throw new g("refinement with Huffman is not supported");return{symbolIDTable:y,tableFirstS:p,tableDeltaS:m,tableDeltaT:v}}(e,t,this.customTables,l.length,s));var m=new v(r,n,a),y=T(e.huffman,e.refinement,c.width,c.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,l,p,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,o,e.refinementTemplate,e.refinementAt,m,e.logStripSize,s);this.drawBitmap(c,y)}},{key:"onImmediateLosslessTextRegion",value:function(){this.onImmediateTextRegion.apply(this,arguments)}},{key:"onPatternDictionary",value:function(e,t,r,n,a){var i=this.patterns;i||(this.patterns=i={});var o=new v(r,n,a);i[t]=function(e,t,r,n,a,i){var o=[];e||(o.push({x:-t,y:0}),0===a&&o.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));for(var s=O(e,(n+1)*t,r,a,!1,null,o,i),c=[],u=0;u<=n;u++){for(var l=[],f=t*u,h=f+t,d=0;d<r;d++)l.push(s[d].subarray(f,h));c.push(l)}return c}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,o)}},{key:"onImmediateHalftoneRegion",value:function(e,t,r,n,a){var o=this.patterns[t[0]],s=e.info,c=new v(r,n,a),u=function(e,t,r,n,a,o,s,c,u,l,f,h,d,p,m){if(s)throw new g("skip is not supported");if(0!==c)throw new g('operator "'.concat(c,'" is not supported in halftone region'));var v,y,b,w=[];for(v=0;v<a;v++){if(b=new Uint8Array(n),o)for(y=0;y<n;y++)b[y]=o;w.push(b)}var k=t.length,S=t[0],x=S[0].length,A=S.length,C=(0,i.log2)(k),T=[];e||(T.push({x:r<=1?3:2,y:-1}),0===r&&T.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2}));var F,P,_,I,E,j,R,M,N,B,D,L=[];for(e&&(F=new U(m.data,m.start,m.end)),v=C-1;v>=0;v--)P=e?H(F,u,l,!0):O(!1,u,l,r,!1,null,T,m),L[v]=P;for(_=0;_<l;_++)for(I=0;I<u;I++){for(E=0,j=0,y=C-1;y>=0;y--)j|=(E=L[y][_][I]^E)<<y;if(R=t[j],N=h+_*d-I*p>>8,(M=f+_*p+I*d>>8)>=0&&M+x<=n&&N>=0&&N+A<=a)for(v=0;v<A;v++)for(D=w[N+v],B=R[v],y=0;y<x;y++)D[M+y]|=B[y];else{var q=void 0,X=void 0;for(v=0;v<A;v++)if(!((X=N+v)<0||X>=a))for(D=w[X],B=R[v],y=0;y<x;y++)(q=M+y)>=0&&q<n&&(D[q]|=B[y])}}return w}(e.mmr,o,e.template,s.width,s.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,c);this.drawBitmap(s,u)}},{key:"onImmediateLosslessHalftoneRegion",value:function(){this.onImmediateHalftoneRegion.apply(this,arguments)}},{key:"onTables",value:function(e,t,r,n){var a=this.customTables;a||(this.customTables=a={}),a[e]=function(e,t,r){var n,a,o=e[t],s=4294967295&(0,i.readUint32)(e,t+1),c=4294967295&(0,i.readUint32)(e,t+5),u=new U(e,t+9,r),l=1+(o>>1&7),f=1+(o>>4&7),h=[],d=s;do{n=u.readBits(l),a=u.readBits(f),h.push(new M([d,n,a,0])),d+=1<<a}while(d<c);return n=u.readBits(l),h.push(new M([s-1,n,32,0,"lower"])),n=u.readBits(l),h.push(new M([c,n,32,0])),1&o&&(n=u.readBits(l),h.push(new M([n,0]))),new B(h,!1)}(t,r,n)}}]),e}(),M=function e(t){l(this,e),2===t.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=t[0],this.rangeLength=0,this.prefixCode=t[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=t[0],this.prefixLength=t[1],this.rangeLength=t[2],this.prefixCode=t[3],this.isLowerRange="lower"===t[4])},N=function(){function e(t){l(this,e),this.children=[],t?(this.isLeaf=!0,this.rangeLength=t.rangeLength,this.rangeLow=t.rangeLow,this.isLowerRange=t.isLowerRange,this.isOOB=t.isOOB):this.isLeaf=!1}return u(e,[{key:"buildTree",value:function(t,r){var n=t.prefixCode>>r&1;if(r<=0)this.children[n]=new e(t);else{var a=this.children[n];a||(this.children[n]=a=new e(null)),a.buildTree(t,r-1)}}},{key:"decodeNode",value:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new g("invalid Huffman data");return r.decodeNode(e)}}]),e}(),B=function(){function e(t,r){l(this,e),r||this.assignPrefixCodes(t),this.rootNode=new N(null);for(var n=0,a=t.length;n<a;n++){var i=t[n];i.prefixLength>0&&this.rootNode.buildTree(i,i.prefixLength-1)}}return u(e,[{key:"decode",value:function(e){return this.rootNode.decodeNode(e)}},{key:"assignPrefixCodes",value:function(e){for(var t=e.length,r=0,n=0;n<t;n++)r=Math.max(r,e[n].prefixLength);for(var a=new Uint32Array(r+1),i=0;i<t;i++)a[e[i].prefixLength]++;var o,s,c,u=1,l=0;for(a[0]=0;u<=r;){for(o=l=l+a[u-1]<<1,s=0;s<t;)(c=e[s]).prefixLength===u&&(c.prefixCode=o,o++),s++;u++}}}]),e}(),D={};function L(e){var t,r=D[e];if(r)return r;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new g("standard table B.".concat(e," does not exist"))}for(var n=0,a=t.length;n<a;n++)t[n]=new M(t[n]);return r=new B(t,!0),D[e]=r,r}var U=function(){function e(t,r,n){l(this,e),this.data=t,this.start=r,this.end=n,this.position=r,this.shift=-1,this.currentByte=0}return u(e,[{key:"readBit",value:function(){if(this.shift<0){if(this.position>=this.end)throw new g("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e}},{key:"readBits",value:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<<t;return r}},{key:"byteAlign",value:function(){this.shift=-1}},{key:"next",value:function(){return this.position>=this.end?-1:this.data[this.position++]}}]),e}();function q(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++){var o=r[t[a]];if(o){if(e===n)return o;n++}}throw new g("can't find custom Huffman table")}function X(e,t,r){for(var n=[],a=0;a<r;a++){var i=new Uint8Array(t);n.push(i);for(var o=0;o<t;o++)i[o]=e.readBit();e.byteAlign()}return n}function H(e,t,r,n){for(var a,i={K:-1,Columns:t,Rows:r,BlackIs1:!0,EndOfBlock:n},o=new s.CCITTFaxDecoder(e,i),c=[],u=!1,l=0;l<r;l++){var f=new Uint8Array(t);c.push(f);for(var h=-1,d=0;d<t;d++)h<0&&(-1===(a=o.readNextChar())&&(a=0,u=!0),h=7),f[d]=a>>h&1,h--}if(n&&!u)for(var p=0;p<5&&-1!==o.readNextChar();p++);return c}var $=function(){function e(){l(this,e)}return u(e,[{key:"parseChunks",value:function(e){return function(e){for(var t=new R,r=0,n=e.length;r<n;r++){var a=e[r];j(P({},a.data,a.start,a.end),t)}return t.buffer}(e)}},{key:"parse",value:function(e){var t=function(e){var t=e.length,r=0;if(151!==e[r]||74!==e[r+1]||66!==e[r+2]||50!==e[r+3]||13!==e[r+4]||10!==e[r+5]||26!==e[r+6]||10!==e[r+7])throw new g("parseJbig2 - invalid header.");var n=Object.create(null);r+=8;var a=e[r++];n.randomAccess=!(1&a),2&a||(n.numberOfPages=(0,i.readUint32)(e,r),r+=4);var o=P(n,e,r,t),s=new R;j(o,s);for(var c=s.currentPageInfo,u=c.width,l=c.height,f=s.buffer,h=new Uint8ClampedArray(u*l),d=0,p=0,m=0;m<l;m++)for(var v=0,y=void 0,b=0;b<u;b++)v||(v=128,y=f[p++]),h[d++]=y&v?0:255,v>>=1;return{imgData:h,width:u,height:l}}(e),r=t.imgData,n=t.width,a=t.height;return this.width=n,this.height=a,r}}]),e}();t.Jbig2Image=$},(e,t)=>{"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;var n=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],a=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.bp=r,this.dataEnd=n,this.chigh=t[r],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}var t,a,i;return t=e,(a=[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var r,a=e[t]>>1,i=1&e[t],o=n[a],s=o.qe,c=this.a-s;if(this.chigh<s)c<s?(c=s,r=i,a=o.nmps):(c=s,r=1^i,1===o.switchFlag&&(i=r),a=o.nlps);else{if(this.chigh-=s,0!=(32768&c))return this.a=c,i;c<s?(r=1^i,1===o.switchFlag&&(i=r),a=o.nlps):(r=i,a=o.nmps)}do{0===this.ct&&this.byteIn(),c<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0==(32768&c));return this.a=c,e[t]=a<<1|i,r}}])&&r(t.prototype,a),i&&r(t,i),e}();t.ArithmeticDecoder=a},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var a=r(127),i=r(113),o=r(136),s=r(4);function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=function(e){!function(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)}(f,e);var t,r,n,a=l(f);function f(e,t,r){var n,i;for(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);-1!==(i=e.getByte());)if(255===i){e.skip(-1);break}return(n=a.call(this,t)).stream=e,n.dict=e.dict,n.maybeLength=t,n.params=r,n}return t=f,(r=[{key:"bytes",get:function(){return(0,s.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BitsPerComponent")||8,n=t.length,a=new Int32Array(n),s=!1,c=(1<<r)-1,u=0;u<n;u+=2)a[u]=256*(t[u+1]-t[u])|0,a[u+1]=t[u]*c|0,256===a[u]&&0===a[u+1]||(s=!0);s&&(e.decodeTransform=a)}if((0,i.isDict)(this.params)){var l=this.params.get("ColorTransform");Number.isInteger(l)&&(e.colorTransform=l)}var f=new o.JpegImage(e);f.parse(this.bytes);var h=f.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=h,this.bufferLength=h.length,this.eof=!0}}}])&&c(t.prototype,r),n&&c(t,n),f}(a.DecodeStream);t.JpegStream=d},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var n=r(4),a=r(117);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e){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(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&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=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=function(e){c(r,e);var t=l(r);function r(e){return s(this,r),t.call(this,"JPEG error: ".concat(e))}return r}(n.BaseException),p=function(e){c(r,e);var t=l(r);function r(e,n){var a;return s(this,r),(a=t.call(this,e)).scanLines=n,a}return r}(n.BaseException),g=function(e){c(r,e);var t=l(r);function r(){return s(this,r),t.apply(this,arguments)}return r}(n.BaseException),m=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),v=4017,y=799,b=3406,w=2276,k=1567,S=3784,x=5793,A=2896;function O(e,t){for(var r,n,a=0,i=16;i>0&&!e[i-1];)i--;var o,s=[{children:[],index:0}],c=s[0];for(r=0;r<i;r++){for(n=0;n<e[r];n++){for((c=s.pop()).children[c.index]=t[a];c.index>0;)c=s.pop();for(c.index++,s.push(c);s.length<=r;)s.push(o={children:[],index:0}),c.children[c.index]=o.children,c=o;a++}r+1<i&&(s.push(o={children:[],index:0}),c.children[c.index]=o.children,c=o)}return s[0].children}function C(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function T(e,t,r,i,s,c,u,l,f){var h=arguments.length>9&&void 0!==arguments[9]&&arguments[9],v=r.mcusPerLine,y=r.progressive,b=t,w=0,k=0;function S(){if(k>0)return k--,w>>k&1;if(255===(w=e[t++])){var n=e[t++];if(n){if(220===n&&h){t+=2;var i=(0,a.readUint16)(e,t);if(t+=2,i>0&&i!==r.scanLines)throw new p("Found DNL marker (0xFFDC) while parsing scan data",i)}else if(217===n){if(h){var o=N*(8===r.precision?8:0);if(o>0&&Math.round(r.scanLines/o)>=10)throw new p("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect \`scanLines\` parameter",o)}throw new g("Found EOI marker (0xFFD9) while parsing scan data")}throw new d("unexpected marker ".concat((w<<8|n).toString(16)))}}return k=7,w>>>7}function x(e){for(var t=e;;){switch(o(t=t[S()])){case"number":return t;case"object":continue}throw new d("invalid huffman sequence")}}function A(e){for(var t=0;e>0;)t=t<<1|S(),e--;return t}function O(e){if(1===e)return 1===S()?1:-1;var t=A(e);return t>=1<<e-1?t:t+(-1<<e)+1}function T(e,t){var r=x(e.huffmanTableDC),n=0===r?0:O(r);e.blockData[t]=e.pred+=n;for(var a=1;a<64;){var i=x(e.huffmanTableAC),o=15&i,s=i>>4;if(0!==o){var c=m[a+=s];e.blockData[t+c]=O(o),a++}else{if(s<15)break;a+=16}}}function F(e,t){var r=x(e.huffmanTableDC),n=0===r?0:O(r)<<f;e.blockData[t]=e.pred+=n}function P(e,t){e.blockData[t]|=S()<<f}var I=0;function E(e,t){if(I>0)I--;else for(var r=c,n=u;r<=n;){var a=x(e.huffmanTableAC),i=15&a,o=a>>4;if(0!==i){var s=m[r+=o];e.blockData[t+s]=O(i)*(1<<f),r++}else{if(o<15){I=A(o)+(1<<o)-1;break}r+=16}}}var j,R=0;function M(e,t){for(var r,n,a=c,i=u,o=0;a<=i;){var s=t+m[a],l=e.blockData[s]<0?-1:1;switch(R){case 0:if(o=(n=x(e.huffmanTableAC))>>4,0==(r=15&n))o<15?(I=A(o)+(1<<o),R=4):(o=16,R=1);else{if(1!==r)throw new d("invalid ACn encoding");j=O(r),R=o?2:3}continue;case 1:case 2:e.blockData[s]?e.blockData[s]+=l*(S()<<f):0==--o&&(R=2===R?3:0);break;case 3:e.blockData[s]?e.blockData[s]+=l*(S()<<f):(e.blockData[s]=j<<f,R=0);break;case 4:e.blockData[s]&&(e.blockData[s]+=l*(S()<<f))}a++}4===R&&0==--I&&(R=0)}var N=0;function B(e,t,r,n,a){var i=r%v;N=(r/v|0)*e.v+n;var o=i*e.h+a;t(e,C(e,N,o))}function D(e,t,r){N=r/e.blocksPerLine|0;var n=r%e.blocksPerLine;t(e,C(e,N,n))}var L,U,q,X,H,$,z=i.length;$=y?0===c?0===l?F:P:0===l?E:M:T;var G,W,V,K,Y=0;for(W=1===z?i[0].blocksPerLine*i[0].blocksPerColumn:v*r.mcusPerColumn;Y<=W;){var J=s?Math.min(W-Y,s):W;if(J>0){for(U=0;U<z;U++)i[U].pred=0;if(I=0,1===z)for(L=i[0],H=0;H<J;H++)D(L,$,Y),Y++;else for(H=0;H<J;H++){for(U=0;U<z;U++)for(V=(L=i[U]).h,K=L.v,q=0;q<K;q++)for(X=0;X<V;X++)B(L,$,Y,q,X);Y++}}if(k=0,!(G=_(e,t)))break;if(G.invalid){var Z=J>0?"unexpected":"excessive";(0,n.warn)("decodeScan - ".concat(Z," MCU data, current marker is: ").concat(G.invalid)),t=G.offset}if(!(G.marker>=65488&&G.marker<=65495))break;t+=2}return t-b}function F(e,t,r){var n,a,i,o,s,c,u,l,f,h,p,g,m,O,C,T,F,P=e.quantizationTable,_=e.blockData;if(!P)throw new d("missing required Quantization Table.");for(var I=0;I<64;I+=8)f=_[t+I],h=_[t+I+1],p=_[t+I+2],g=_[t+I+3],m=_[t+I+4],O=_[t+I+5],C=_[t+I+6],T=_[t+I+7],f*=P[I],0!=(h|p|g|m|O|C|T)?(h*=P[I+1],p*=P[I+2],g*=P[I+3],m*=P[I+4],O*=P[I+5],C*=P[I+6],T*=P[I+7],a=(n=(n=x*f+128>>8)+(a=x*m+128>>8)+1>>1)-a,F=(i=p)*S+(o=C)*k+128>>8,i=i*k-o*S+128>>8,u=(s=(s=A*(h-T)+128>>8)+(u=O<<4)+1>>1)-u,c=(l=(l=A*(h+T)+128>>8)+(c=g<<4)+1>>1)-c,o=(n=n+(o=F)+1>>1)-o,i=(a=a+i+1>>1)-i,F=s*w+l*b+2048>>12,s=s*b-l*w+2048>>12,l=F,F=c*y+u*v+2048>>12,c=c*v-u*y+2048>>12,u=F,r[I]=n+l,r[I+7]=n-l,r[I+1]=a+u,r[I+6]=a-u,r[I+2]=i+c,r[I+5]=i-c,r[I+3]=o+s,r[I+4]=o-s):(F=x*f+512>>10,r[I]=F,r[I+1]=F,r[I+2]=F,r[I+3]=F,r[I+4]=F,r[I+5]=F,r[I+6]=F,r[I+7]=F);for(var E=0;E<8;++E)f=r[E],0!=((h=r[E+8])|(p=r[E+16])|(g=r[E+24])|(m=r[E+32])|(O=r[E+40])|(C=r[E+48])|(T=r[E+56]))?(a=(n=4112+((n=x*f+2048>>12)+(a=x*m+2048>>12)+1>>1))-a,F=(i=p)*S+(o=C)*k+2048>>12,i=i*k-o*S+2048>>12,o=F,u=(s=(s=A*(h-T)+2048>>12)+(u=O)+1>>1)-u,c=(l=(l=A*(h+T)+2048>>12)+(c=g)+1>>1)-c,F=s*w+l*b+2048>>12,s=s*b-l*w+2048>>12,l=F,F=c*y+u*v+2048>>12,c=c*v-u*y+2048>>12,(f=(n=n+o+1>>1)+l)<16?f=0:f>=4080?f=255:f>>=4,(h=(a=a+i+1>>1)+(u=F))<16?h=0:h>=4080?h=255:h>>=4,(p=(i=a-i)+c)<16?p=0:p>=4080?p=255:p>>=4,(g=(o=n-o)+s)<16?g=0:g>=4080?g=255:g>>=4,(m=o-s)<16?m=0:m>=4080?m=255:m>>=4,(O=i-c)<16?O=0:O>=4080?O=255:O>>=4,(C=a-u)<16?C=0:C>=4080?C=255:C>>=4,(T=n-l)<16?T=0:T>=4080?T=255:T>>=4,_[t+E]=f,_[t+E+8]=h,_[t+E+16]=p,_[t+E+24]=g,_[t+E+32]=m,_[t+E+40]=O,_[t+E+48]=C,_[t+E+56]=T):(F=(F=x*f+8192>>14)<-2040?0:F>=2024?255:F+2056>>4,_[t+E]=F,_[t+E+8]=F,_[t+E+16]=F,_[t+E+24]=F,_[t+E+32]=F,_[t+E+40]=F,_[t+E+48]=F,_[t+E+56]=F)}function P(e,t){for(var r=t.blocksPerLine,n=t.blocksPerColumn,a=new Int16Array(64),i=0;i<n;i++)for(var o=0;o<r;o++)F(t,C(t,i,o),a);return t.blockData}function _(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=e.length-1,i=r<t?r:t;if(t>=n)return null;var o=(0,a.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};for(var s=(0,a.readUint16)(e,i);!(s>=65472&&s<=65534);){if(++i>=n)return null;s=(0,a.readUint16)(e,i)}return{invalid:o.toString(16),marker:s,offset:i}}var I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,n=void 0===r?null:r,a=t.colorTransform,i=void 0===a?-1:a;s(this,e),this._decodeTransform=n,this._colorTransform=i}var t,r,o;return t=e,r=[{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.dnlScanLines,i=void 0===r?null:r;function o(){var t=(0,a.readUint16)(e,l),r=(l+=2)+t-2,i=_(e,r,l);i&&i.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+i.invalid),r=i.offset);var o=e.subarray(l,r);return l+=o.length,o}function s(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),n=0,a=e.components.length;n<a;n++){var i=e.components[n],o=Math.ceil(Math.ceil(e.samplesPerLine/8)*i.h/e.maxH),s=Math.ceil(Math.ceil(e.scanLines/8)*i.v/e.maxV),c=t*i.h,u=r*i.v*64*(c+1);i.blockData=new Int16Array(u),i.blocksPerLine=o,i.blocksPerColumn=s}e.mcusPerLine=t,e.mcusPerColumn=r}var c,u,l=0,f=null,h=null,v=0,y=[],b=[],w=[],k=(0,a.readUint16)(e,l);if(l+=2,65496!==k)throw new d("SOI not found");k=(0,a.readUint16)(e,l),l+=2;e:for(;65497!==k;){var S=void 0,x=void 0,A=void 0;switch(k){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var C=o();65504===k&&74===C[0]&&70===C[1]&&73===C[2]&&70===C[3]&&0===C[4]&&(f={version:{major:C[5],minor:C[6]},densityUnits:C[7],xDensity:C[8]<<8|C[9],yDensity:C[10]<<8|C[11],thumbWidth:C[12],thumbHeight:C[13],thumbData:C.subarray(14,14+3*C[12]*C[13])}),65518===k&&65===C[0]&&100===C[1]&&111===C[2]&&98===C[3]&&101===C[4]&&(h={version:C[5]<<8|C[6],flags0:C[7]<<8|C[8],flags1:C[9]<<8|C[10],transformCode:C[11]});break;case 65499:for(var F=(0,a.readUint16)(e,l),I=F+(l+=2)-2;l<I;){var E=e[l++],j=new Uint16Array(64);if(E>>4==0)for(x=0;x<64;x++)j[m[x]]=e[l++];else{if(E>>4!=1)throw new d("DQT - invalid table spec");for(x=0;x<64;x++)j[m[x]]=(0,a.readUint16)(e,l),l+=2}y[15&E]=j}break;case 65472:case 65473:case 65474:if(c)throw new d("Only single frame JPEGs supported");l+=2,(c={}).extended=65473===k,c.progressive=65474===k,c.precision=e[l++];var R=(0,a.readUint16)(e,l);l+=2,c.scanLines=i||R,c.samplesPerLine=(0,a.readUint16)(e,l),l+=2,c.components=[],c.componentIds={};var M=e[l++],N=0,B=0;for(S=0;S<M;S++){var D=e[l],L=e[l+1]>>4,U=15&e[l+1];N<L&&(N=L),B<U&&(B=U);var q=e[l+2];A=c.components.push({h:L,v:U,quantizationId:q,quantizationTable:null}),c.componentIds[D]=A-1,l+=3}c.maxH=N,c.maxV=B,s(c);break;case 65476:var X=(0,a.readUint16)(e,l);for(l+=2,S=2;S<X;){var H=e[l++],$=new Uint8Array(16),z=0;for(x=0;x<16;x++,l++)z+=$[x]=e[l];var G=new Uint8Array(z);for(x=0;x<z;x++,l++)G[x]=e[l];S+=17+z,(H>>4==0?w:b)[15&H]=O($,G)}break;case 65501:l+=2,u=(0,a.readUint16)(e,l),l+=2;break;case 65498:var W=1==++v&&!i;l+=2;var V=e[l++],K=[];for(S=0;S<V;S++){var Y=e[l++],J=c.componentIds[Y],Z=c.components[J];Z.index=Y;var Q=e[l++];Z.huffmanTableDC=w[Q>>4],Z.huffmanTableAC=b[15&Q],K.push(Z)}var ee=e[l++],te=e[l++],re=e[l++];try{var ne=T(e,l,c,K,u,ee,te,re>>4,15&re,W);l+=ne}catch(t){if(t instanceof p)return(0,n.warn)("".concat(t.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:t.scanLines});if(t instanceof g){(0,n.warn)("".concat(t.message," -- ignoring the rest of the image data."));break e}throw t}break;case 65500:l+=4;break;case 65535:255!==e[l]&&l--;break;default:var ae=_(e,l-2,l-3);if(ae&&ae.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+ae.invalid),l=ae.offset;break}if(!ae||l>=e.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new d("JpegImage.parse - unknown marker: "+k.toString(16))}k=(0,a.readUint16)(e,l),l+=2}this.width=c.samplesPerLine,this.height=c.scanLines,this.jfif=f,this.adobe=h,this.components=[];for(var ie=0,oe=c.components.length;ie<oe;ie++){var se=c.components[ie],ce=y[se.quantizationId];ce&&(se.quantizationTable=ce),this.components.push({index:se.index,output:P(0,se),scaleX:se.h/c.maxH,scaleY:se.v/c.maxV,blocksPerLine:se.blocksPerLine,blocksPerColumn:se.blocksPerColumn})}this.numComponents=this.components.length}},{key:"_getLinearizedBlockData",value:function(e,t){var r,n,a,i,o,s,c,u,l,f,h,d,p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],g=this.width/e,m=this.height/t,v=0,y=this.components.length,b=e*t*y,w=new Uint8ClampedArray(b),k=new Uint32Array(e),S=4294967288;for(c=0;c<y;c++){if(n=(r=this.components[c]).scaleX*g,a=r.scaleY*m,v=c,h=r.output,i=r.blocksPerLine+1<<3,n!==d){for(o=0;o<e;o++)u=0|o*n,k[o]=(u&S)<<3|7&u;d=n}for(s=0;s<t;s++)for(f=i*((u=0|s*a)&S)|(7&u)<<3,o=0;o<e;o++)w[v]=h[f+k[o]],v+=y}var x=this._decodeTransform;if(p||4!==y||x||(x=new Int32Array([-256,255,-256,255,-256,255,-256,255])),x)for(c=0;c<b;)for(u=0,l=0;u<y;u++,c++,l+=2)w[c]=(w[c]*x[l]>>8)+x[l+1];return w}},{key:"_isColorConversionNeeded",get:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}},{key:"_convertYccToRgb",value:function(e){for(var t,r,n,a=0,i=e.length;a<i;a+=3)t=e[a],r=e[a+1],n=e[a+2],e[a]=t-179.456+1.402*n,e[a+1]=t+135.459-.344*r-.714*n,e[a+2]=t-226.816+1.772*r;return e}},{key:"_convertYcckToRgb",value:function(e){for(var t,r,n,a,i=0,o=0,s=e.length;o<s;o+=4)t=e[o],r=e[o+1],n=e[o+2],a=e[o+3],e[i++]=r*(-660635669420364e-19*r+.000437130475926232*n-54080610064599e-18*t+.00048449797120281*a-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*t-.00477271405408747*a+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*a+.48357088451265)+a*(-.000336197177618394*a+.484791561490776),e[i++]=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*n+.000659397001245577*t+.000426105652938837*a-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*t+.000770482631801132*a-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*a+.25802910206845)+a*(-.000318913117588328*a-.213742400323665),e[i++]=r*(-.000570115196973677*r-263409051004589e-19*n+.0020741088115012*t-.00288260236853442*a+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*t+.000560833691242812*a-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*a+.116935020465145)+a*(-.000343531996510555*a+.24165260232407);return e.subarray(0,i)}},{key:"_convertYcckToCmyk",value:function(e){for(var t,r,n,a=0,i=e.length;a<i;a+=4)t=e[a],r=e[a+1],n=e[a+2],e[a]=434.456-t-1.402*n,e[a+1]=119.541-t+.344*r+.714*n,e[a+2]=481.816-t-1.772*r;return e}},{key:"_convertCmykToRgb",value:function(e){for(var t,r,n,a,i=0,o=0,s=e.length;o<s;o+=4)t=e[o],r=e[o+1],n=e[o+2],a=e[o+3],e[i++]=255+t*(-6747147073602441e-20*t+.0008379262121013727*r+.0002894718188643294*n+.003264231057537806*a-1.1185611867203937)+r*(26374107616089405e-21*r-8626949158638572e-20*n-.0002748769067499491*a-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*a+.0686742238595345)-a*(.0003361971776183937*a+.7430659151342254),e[i++]=255+t*(.00013596372813588848*t+.000924537132573585*r+.00010567359618683593*n+.0004791864687436512*a-.3109689587515875)+r*(-.00023545346108370344*r+.0002702845253534714*n+.0020200308977307156*a-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*a-.09751927774728933)-a*(.0003189131175883281*a+.7364883807733168),e[i++]=255+t*(13598650411385307e-21*t+.00012423956175490851*r+.0004751985097583589*n-36729317476630422e-22*a-.05562186980264034)+r*(.00016141380598724676*r+.0009692239130725186*n+.0007782692450036253*a-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*a-.7591454649749609)-a*(.0003435319965105553*a+.7063770186160144);return e.subarray(0,i)}},{key:"getData",value:function(e){var t=e.width,r=e.height,n=e.forceRGB,a=void 0!==n&&n,i=e.isSourcePDF,o=void 0!==i&&i;if(this.numComponents>4)throw new d("Unsupported color mode");var s=this._getLinearizedBlockData(t,r,o);if(1===this.numComponents&&a){for(var c=s.length,u=new Uint8ClampedArray(3*c),l=0,f=0;f<c;f++){var h=s[f];u[l++]=h,u[l++]=h,u[l++]=h}return u}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(s);if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgb(s):this._convertYcckToCmyk(s);if(a)return this._convertCmykToRgb(s)}return s}}],r&&i(t.prototype,r),o&&i(t,o),e}();t.JpegImage=I},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var a=r(127),i=r(138),o=r(4);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(l,e);var t,r,n,a=u(l);function l(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this,t)).stream=e,n.dict=e.dict,n.maybeLength=t,n.params=r,n}return t=l,(r=[{key:"bytes",get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}},{key:"ensureBuffer",value:function(e){}},{key:"readBlock",value:function(){if(!this.eof){var e=new i.JpxImage;e.parse(this.bytes);var t=e.width,r=e.height,n=e.componentsCount,a=e.tiles.length;if(1===a)this.buffer=e.tiles[0].items;else{for(var o=new Uint8ClampedArray(t*r*n),s=0;s<a;s++)for(var c=e.tiles[s],u=c.width,l=c.height,f=c.left,h=c.top,d=c.items,p=0,g=(t*h+f)*n,m=t*n,v=u*n,y=0;y<l;y++){var b=d.subarray(p,p+v);o.set(b,g),p+=v,g+=m}this.buffer=o}this.bufferLength=this.buffer.length,this.eof=!0}}}])&&s(t.prototype,r),n&&s(t,n),l}(a.DecodeStream);t.JpxStream=h},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var a=r(4),i=r(117),o=r(134);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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&&f(e,t)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var a=p(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g=function(e){l(r,e);var t=h(r);function r(e){return u(this,r),t.call(this,"JPX error: ".concat(e))}return r}(a.BaseException),m={LL:0,LH:1,HL:1,HH:2},v=function(){function e(){u(this,e),this.failOnCorruptedImage=!1}return c(e,[{key:"parse",value:function(e){if(65359!==(0,i.readUint16)(e,0))for(var t=e.length,r=0;r<t;){var n=8,o=(0,i.readUint32)(e,r),s=(0,i.readUint32)(e,r+4);if(r+=n,1===o&&(o=4294967296*(0,i.readUint32)(e,r)+(0,i.readUint32)(e,r+4),r+=8,n+=8),0===o&&(o=t-r+n),o<n)throw new g("Invalid box field size");var c=o-n,u=!0;switch(s){case 1785737832:u=!1;break;case 1668246642:var l=e[r];if(1===l){var f=(0,i.readUint32)(e,r+3);switch(f){case 16:case 17:case 18:break;default:(0,a.warn)("Unknown colorspace "+f)}}else 2===l&&(0,a.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(e,r,r+c);break;case 1783636e3:218793738!==(0,i.readUint32)(e,r)&&(0,a.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var h=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,255&s);(0,a.warn)("Unsupported header type ".concat(s," (").concat(h,")."))}u&&(r+=c)}else this.parseCodestream(e,0,e.length)}},{key:"parseImageProperties",value:function(e){for(var t=e.getByte();t>=0;)if(65361==(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,n=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);var o=e.getUint16();return this.width=r-a,this.height=n-i,this.componentsCount=o,void(this.bitsPerComponent=8)}throw new g("No size marker found in JPX stream")}},{key:"parseCodestream",value:function(e,t,r){var n={},o=!1;try{for(var s=t;s+1<r;){var c=(0,i.readUint16)(e,s);s+=2;var u=0,l=void 0,f=void 0,h=void 0,d=void 0,p=void 0,m=void 0;switch(c){case 65359:n.mainHeader=!0;break;case 65497:break;case 65361:u=(0,i.readUint16)(e,s);var v={};v.Xsiz=(0,i.readUint32)(e,s+4),v.Ysiz=(0,i.readUint32)(e,s+8),v.XOsiz=(0,i.readUint32)(e,s+12),v.YOsiz=(0,i.readUint32)(e,s+16),v.XTsiz=(0,i.readUint32)(e,s+20),v.YTsiz=(0,i.readUint32)(e,s+24),v.XTOsiz=(0,i.readUint32)(e,s+28),v.YTOsiz=(0,i.readUint32)(e,s+32);var w=(0,i.readUint16)(e,s+36);v.Csiz=w;var k=[];l=s+38;for(var S=0;S<w;S++){var x={precision:1+(127&e[l]),isSigned:!!(128&e[l]),XRsiz:e[l+1],YRsiz:e[l+2]};l+=3,y(x,v),k.push(x)}n.SIZ=v,n.components=k,b(n,k),n.QCC=[],n.COC=[];break;case 65372:u=(0,i.readUint16)(e,s);var A={};switch(l=s+2,31&(f=e[l++])){case 0:d=8,p=!0;break;case 1:d=16,p=!1;break;case 2:d=16,p=!0;break;default:throw new Error("Invalid SQcd value "+f)}for(A.noQuantization=8===d,A.scalarExpounded=p,A.guardBits=f>>5,h=[];l<u+s;){var O={};8===d?(O.epsilon=e[l++]>>3,O.mu=0):(O.epsilon=e[l]>>3,O.mu=(7&e[l])<<8|e[l+1],l+=2),h.push(O)}A.SPqcds=h,n.mainHeader?n.QCD=A:(n.currentTile.QCD=A,n.currentTile.QCC=[]);break;case 65373:u=(0,i.readUint16)(e,s);var C={};l=s+2;var T=void 0;switch(n.SIZ.Csiz<257?T=e[l++]:(T=(0,i.readUint16)(e,l),l+=2),31&(f=e[l++])){case 0:d=8,p=!0;break;case 1:d=16,p=!1;break;case 2:d=16,p=!0;break;default:throw new Error("Invalid SQcd value "+f)}for(C.noQuantization=8===d,C.scalarExpounded=p,C.guardBits=f>>5,h=[];l<u+s;){var F={};8===d?(F.epsilon=e[l++]>>3,F.mu=0):(F.epsilon=e[l]>>3,F.mu=(7&e[l])<<8|e[l+1],l+=2),h.push(F)}C.SPqcds=h,n.mainHeader?n.QCC[T]=C:n.currentTile.QCC[T]=C;break;case 65362:u=(0,i.readUint16)(e,s);var P={};l=s+2;var _=e[l++];P.entropyCoderWithCustomPrecincts=!!(1&_),P.sopMarkerUsed=!!(2&_),P.ephMarkerUsed=!!(4&_),P.progressionOrder=e[l++],P.layersCount=(0,i.readUint16)(e,l),l+=2,P.multipleComponentTransform=e[l++],P.decompositionLevelsCount=e[l++],P.xcb=2+(15&e[l++]),P.ycb=2+(15&e[l++]);var j=e[l++];if(P.selectiveArithmeticCodingBypass=!!(1&j),P.resetContextProbabilities=!!(2&j),P.terminationOnEachCodingPass=!!(4&j),P.verticallyStripe=!!(8&j),P.predictableTermination=!!(16&j),P.segmentationSymbolUsed=!!(32&j),P.reversibleTransformation=e[l++],P.entropyCoderWithCustomPrecincts){for(var N=[];l<u+s;){var B=e[l++];N.push({PPx:15&B,PPy:B>>4})}P.precinctsSizes=N}var D=[];P.selectiveArithmeticCodingBypass&&D.push("selectiveArithmeticCodingBypass"),P.resetContextProbabilities&&D.push("resetContextProbabilities"),P.terminationOnEachCodingPass&&D.push("terminationOnEachCodingPass"),P.verticallyStripe&&D.push("verticallyStripe"),P.predictableTermination&&D.push("predictableTermination"),D.length>0&&(o=!0,(0,a.warn)("JPX: Unsupported COD options (".concat(D.join(", "),")."))),n.mainHeader?n.COD=P:(n.currentTile.COD=P,n.currentTile.COC=[]);break;case 65424:u=(0,i.readUint16)(e,s),(m={}).index=(0,i.readUint16)(e,s+2),m.length=(0,i.readUint32)(e,s+4),m.dataEnd=m.length+s-2,m.partIndex=e[s+8],m.partsCount=e[s+9],n.mainHeader=!1,0===m.partIndex&&(m.COD=n.COD,m.COC=n.COC.slice(0),m.QCD=n.QCD,m.QCC=n.QCC.slice(0)),n.currentTile=m;break;case 65427:0===(m=n.currentTile).partIndex&&(M(n,m.index),I(n)),E(n,e,s,u=m.dataEnd-s);break;case 65363:(0,a.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:u=(0,i.readUint16)(e,s);break;default:throw new Error("Unknown codestream code: "+c.toString(16))}s+=u}}catch(e){if(o||this.failOnCorruptedImage)throw new g(e.message);(0,a.warn)('JPX: Trying to recover from: "'.concat(e.message,'".'))}this.tiles=function(e){for(var t=e.SIZ,r=e.components,n=t.Csiz,a=[],i=0,o=e.tiles.length;i<o;i++){for(var s=e.tiles[i],c=[],u=0;u<n;u++)c[u]=R(e,s,u);var l=c[0],f=new Uint8ClampedArray(l.items.length*n),h={left:l.left,top:l.top,width:l.width,height:l.height,items:f},d=void 0,p=void 0,g=0,m=void 0,v=void 0,y=void 0,b=void 0,w=void 0;if(s.codingStyleDefaultParameters.multipleComponentTransform){var k=4===n,S=c[0].items,x=c[1].items,A=c[2].items,O=k?c[3].items:null;p=.5+(128<<(d=r[0].precision-8));var C=s.components[0],T=n-3;if(v=S.length,C.codingStyleParameters.reversibleTransformation)for(m=0;m<v;m++,g+=T){y=S[m]+p,b=x[m];var F=y-((w=A[m])+b>>2);f[g++]=F+w>>d,f[g++]=F>>d,f[g++]=F+b>>d}else for(m=0;m<v;m++,g+=T)y=S[m]+p,b=x[m],w=A[m],f[g++]=y+1.402*w>>d,f[g++]=y-.34413*b-.71414*w>>d,f[g++]=y+1.772*b>>d;if(k)for(m=0,g=3;m<v;m++,g+=4)f[g]=O[m]+p>>d}else for(var P=0;P<n;P++){var _=c[P].items;for(p=.5+(128<<(d=r[P].precision-8)),g=P,m=0,v=_.length;m<v;m++)f[g]=_[m]+p>>d,g+=n}a.push(h)}return a}(n),this.width=n.SIZ.Xsiz-n.SIZ.XOsiz,this.height=n.SIZ.Ysiz-n.SIZ.YOsiz,this.componentsCount=n.SIZ.Csiz}}]),e}();function y(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function b(e,t){for(var r,n=e.SIZ,a=[],i=Math.ceil((n.Xsiz-n.XTOsiz)/n.XTsiz),o=Math.ceil((n.Ysiz-n.YTOsiz)/n.YTsiz),s=0;s<o;s++)for(var c=0;c<i;c++)(r={}).tx0=Math.max(n.XTOsiz+c*n.XTsiz,n.XOsiz),r.ty0=Math.max(n.YTOsiz+s*n.YTsiz,n.YOsiz),r.tx1=Math.min(n.XTOsiz+(c+1)*n.XTsiz,n.Xsiz),r.ty1=Math.min(n.YTOsiz+(s+1)*n.YTsiz,n.Ysiz),r.width=r.tx1-r.tx0,r.height=r.ty1-r.ty0,r.components=[],a.push(r);e.tiles=a;for(var u=0,l=n.Csiz;u<l;u++)for(var f=t[u],h=0,d=a.length;h<d;h++){var p={};r=a[h],p.tcx0=Math.ceil(r.tx0/f.XRsiz),p.tcy0=Math.ceil(r.ty0/f.YRsiz),p.tcx1=Math.ceil(r.tx1/f.XRsiz),p.tcy1=Math.ceil(r.ty1/f.YRsiz),p.width=p.tcx1-p.tcx0,p.height=p.tcy1-p.tcy0,r.components[u]=p}}function w(e,t,r){var n=t.codingStyleParameters,a={};return n.entropyCoderWithCustomPrecincts?(a.PPx=n.precinctsSizes[r].PPx,a.PPy=n.precinctsSizes[r].PPy):(a.PPx=15,a.PPy=15),a.xcb_=r>0?Math.min(n.xcb,a.PPx-1):Math.min(n.xcb,a.PPx),a.ycb_=r>0?Math.min(n.ycb,a.PPy-1):Math.min(n.ycb,a.PPy),a}function k(e,t,r){var n=1<<r.PPx,a=1<<r.PPy,i=0===t.resLevel,o=1<<r.PPx+(i?0:-1),s=1<<r.PPy+(i?0:-1),c=t.trx1>t.trx0?Math.ceil(t.trx1/n)-Math.floor(t.trx0/n):0,u=t.try1>t.try0?Math.ceil(t.try1/a)-Math.floor(t.try0/a):0,l=c*u;t.precinctParameters={precinctWidth:n,precinctHeight:a,numprecinctswide:c,numprecinctshigh:u,numprecincts:l,precinctWidthInSubband:o,precinctHeightInSubband:s}}function S(e,t,r){var n,a,i,o,s=r.xcb_,c=r.ycb_,u=1<<s,l=1<<c,f=t.tbx0>>s,h=t.tby0>>c,d=t.tbx1+u-1>>s,p=t.tby1+l-1>>c,g=t.resolution.precinctParameters,m=[],v=[];for(a=h;a<p;a++)for(n=f;n<d;n++)if((i={cbx:n,cby:a,tbx0:u*n,tby0:l*a,tbx1:u*(n+1),tby1:l*(a+1)}).tbx0_=Math.max(t.tbx0,i.tbx0),i.tby0_=Math.max(t.tby0,i.tby0),i.tbx1_=Math.min(t.tbx1,i.tbx1),i.tby1_=Math.min(t.tby1,i.tby1),o=Math.floor((i.tbx0_-t.tbx0)/g.precinctWidthInSubband)+Math.floor((i.tby0_-t.tby0)/g.precinctHeightInSubband)*g.numprecinctswide,i.precinctNumber=o,i.subbandType=t.type,i.Lblock=3,!(i.tbx1_<=i.tbx0_||i.tby1_<=i.tby0_)){m.push(i);var y=v[o];void 0!==y?(n<y.cbxMin?y.cbxMin=n:n>y.cbxMax&&(y.cbxMax=n),a<y.cbyMin?y.cbxMin=a:a>y.cbyMax&&(y.cbyMax=a)):v[o]=y={cbxMin:n,cbyMin:a,cbxMax:n,cbyMax:a},i.precinct=y}t.codeblockParameters={codeblockWidth:s,codeblockHeight:c,numcodeblockwide:d-f+1,numcodeblockhigh:p-h+1},t.codeblocks=m,t.precincts=v}function x(e,t,r){for(var n=[],a=e.subbands,i=0,o=a.length;i<o;i++)for(var s=a[i].codeblocks,c=0,u=s.length;c<u;c++){var l=s[c];l.precinctNumber===t&&n.push(l)}return{layerNumber:r,codeblocks:n}}function A(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,o=0,s=0;s<i;s++)o=Math.max(o,n.components[s].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,l=0,f=0;this.nextPacket=function(){for(;c<a;c++){for(;u<=o;u++){for(;l<i;l++){var e=n.components[l];if(!(u>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;f<r;){var s=x(t,f,c);return f++,s}f=0}}l=0}u=0}throw new g("Out of packets")}}function O(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,o=0,s=0;s<i;s++)o=Math.max(o,n.components[s].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,l=0,f=0;this.nextPacket=function(){for(;c<=o;c++){for(;u<a;u++){for(;l<i;l++){var e=n.components[l];if(!(c>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],r=t.precinctParameters.numprecincts;f<r;){var s=x(t,f,u);return f++,s}f=0}}l=0}u=0}throw new g("Out of packets")}}function C(e){var t,r,n,a,i=e.SIZ,o=e.currentTile.index,s=e.tiles[o],c=s.codingStyleDefaultParameters.layersCount,u=i.Csiz,l=0;for(n=0;n<u;n++){var f=s.components[n];l=Math.max(l,f.codingStyleParameters.decompositionLevelsCount)}var h=new Int32Array(l+1);for(r=0;r<=l;++r){var d=0;for(n=0;n<u;++n){var p=s.components[n].resolutions;r<p.length&&(d=Math.max(d,p[r].precinctParameters.numprecincts))}h[r]=d}t=0,r=0,n=0,a=0,this.nextPacket=function(){for(;r<=l;r++){for(;a<h[r];a++){for(;n<u;n++){var e=s.components[n];if(!(r>e.codingStyleParameters.decompositionLevelsCount)){var i=e.resolutions[r],o=i.precinctParameters.numprecincts;if(!(a>=o)){for(;t<c;){var f=x(i,a,t);return t++,f}t=0}}}n=0}a=0}throw new g("Out of packets")}}function T(e){var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,o=_(n),s=o,c=0,u=0,l=0,f=0,h=0;this.nextPacket=function(){for(;h<s.maxNumHigh;h++){for(;f<s.maxNumWide;f++){for(;l<i;l++){for(var e=n.components[l],t=e.codingStyleParameters.decompositionLevelsCount;u<=t;u++){var r=e.resolutions[u],d=o.components[l].resolutions[u],p=P(f,h,d,s,r);if(null!==p){for(;c<a;){var m=x(r,p,c);return c++,m}c=0}}u=0}l=0}f=0}throw new g("Out of packets")}}function F(e){var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,o=_(n),s=0,c=0,u=0,l=0,f=0;this.nextPacket=function(){for(;u<i;++u){for(var e=n.components[u],t=o.components[u],r=e.codingStyleParameters.decompositionLevelsCount;f<t.maxNumHigh;f++){for(;l<t.maxNumWide;l++){for(;c<=r;c++){var h=e.resolutions[c],d=t.resolutions[c],p=P(l,f,d,t,h);if(null!==p){for(;s<a;){var m=x(h,p,s);return s++,m}s=0}}c=0}l=0}f=0}throw new g("Out of packets")}}function P(e,t,r,n,a){var i=e*n.minWidth,o=t*n.minHeight;if(i%r.width!=0||o%r.height!=0)return null;var s=o/r.width*a.precinctParameters.numprecinctswide;return i/r.height+s}function _(e){for(var t=e.components.length,r=Number.MAX_VALUE,n=Number.MAX_VALUE,a=0,i=0,o=new Array(t),s=0;s<t;s++){for(var c=e.components[s],u=c.codingStyleParameters.decompositionLevelsCount,l=new Array(u+1),f=Number.MAX_VALUE,h=Number.MAX_VALUE,d=0,p=0,g=1,m=u;m>=0;--m){var v=c.resolutions[m],y=g*v.precinctParameters.precinctWidth,b=g*v.precinctParameters.precinctHeight;f=Math.min(f,y),h=Math.min(h,b),d=Math.max(d,v.precinctParameters.numprecinctswide),p=Math.max(p,v.precinctParameters.numprecinctshigh),l[m]={width:y,height:b},g<<=1}r=Math.min(r,f),n=Math.min(n,h),a=Math.max(a,d),i=Math.max(i,p),o[s]={resolutions:l,minWidth:f,minHeight:h,maxNumWide:d,maxNumHigh:p}}return{components:o,minWidth:r,minHeight:n,maxNumWide:a,maxNumHigh:i}}function I(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=t.Csiz,i=0;i<a;i++){for(var o=n.components[i],s=o.codingStyleParameters.decompositionLevelsCount,c=[],u=[],l=0;l<=s;l++){var f=w(0,o,l),h={},d=1<<s-l;h.trx0=Math.ceil(o.tcx0/d),h.try0=Math.ceil(o.tcy0/d),h.trx1=Math.ceil(o.tcx1/d),h.try1=Math.ceil(o.tcy1/d),h.resLevel=l,k(0,h,f),c.push(h);var p=void 0;if(0===l)(p={}).type="LL",p.tbx0=Math.ceil(o.tcx0/d),p.tby0=Math.ceil(o.tcy0/d),p.tbx1=Math.ceil(o.tcx1/d),p.tby1=Math.ceil(o.tcy1/d),p.resolution=h,S(0,p,f),u.push(p),h.subbands=[p];else{var m=1<<s-l+1,v=[];(p={}).type="HL",p.tbx0=Math.ceil(o.tcx0/m-.5),p.tby0=Math.ceil(o.tcy0/m),p.tbx1=Math.ceil(o.tcx1/m-.5),p.tby1=Math.ceil(o.tcy1/m),p.resolution=h,S(0,p,f),u.push(p),v.push(p),(p={}).type="LH",p.tbx0=Math.ceil(o.tcx0/m),p.tby0=Math.ceil(o.tcy0/m-.5),p.tbx1=Math.ceil(o.tcx1/m),p.tby1=Math.ceil(o.tcy1/m-.5),p.resolution=h,S(0,p,f),u.push(p),v.push(p),(p={}).type="HH",p.tbx0=Math.ceil(o.tcx0/m-.5),p.tby0=Math.ceil(o.tcy0/m-.5),p.tbx1=Math.ceil(o.tcx1/m-.5),p.tby1=Math.ceil(o.tcy1/m-.5),p.resolution=h,S(0,p,f),u.push(p),v.push(p),h.subbands=v}}o.resolutions=c,o.subbands=u}var y=n.codingStyleDefaultParameters.progressionOrder;switch(y){case 0:n.packetsIterator=new A(e);break;case 1:n.packetsIterator=new O(e);break;case 2:n.packetsIterator=new C(e);break;case 3:n.packetsIterator=new T(e);break;case 4:n.packetsIterator=new F(e);break;default:throw new g("Unsupported progression order ".concat(y))}}function E(e,t,r,n){var a,o=0,s=0,c=!1;function u(e){for(;s<e;){var n=t[r+o];o++,c?(a=a<<7|n,s+=7,c=!1):(a=a<<8|n,s+=8),255===n&&(c=!0)}return a>>>(s-=e)&(1<<e)-1}function l(e){return 255===t[r+o-1]&&t[r+o]===e?(f(1),!0):255===t[r+o]&&t[r+o+1]===e&&(f(2),!0)}function f(e){o+=e}function h(){s=0,c&&(o++,c=!1)}function d(){if(0===u(1))return 1;if(0===u(1))return 2;var e=u(2);return e<3?e+3:(e=u(5))<31?e+6:(e=u(7))+37}for(var p=e.currentTile.index,g=e.tiles[p],m=e.COD.sopMarkerUsed,v=e.COD.ephMarkerUsed,y=g.packetsIterator;o<n;){h(),m&&l(145)&&f(4);var b=y.nextPacket();if(u(1)){for(var w=b.layerNumber,k=[],S=void 0,x=0,A=b.codeblocks.length;x<A;x++){var O=(S=b.codeblocks[x]).precinct,C=S.cbx-O.cbxMin,T=S.cby-O.cbyMin,F=!1,P=!1,_=void 0;if(void 0!==S.included)F=!!u(1);else{var I=void 0;if(void 0!==(O=S.precinct).inclusionTree)I=O.inclusionTree;else{var E=O.cbxMax-O.cbxMin+1,j=O.cbyMax-O.cbyMin+1;I=new q(E,j,w),_=new U(E,j),O.inclusionTree=I,O.zeroBitPlanesTree=_}if(I.reset(C,T,w))for(;;){if(!u(1)){I.incrementValue(w);break}if(!I.nextLevel()){S.included=!0,F=P=!0;break}}}if(F){if(P){for((_=O.zeroBitPlanesTree).reset(C,T);;)if(u(1)){if(!_.nextLevel())break}else _.incrementValue();S.zeroBitPlanes=_.value}for(var R=d();u(1);)S.Lblock++;var M=(0,i.log2)(R),N=u((R<1<<M?M-1:M)+S.Lblock);k.push({codeblock:S,codingpasses:R,dataLength:N})}}for(h(),v&&l(146);k.length>0;){var B=k.shift();void 0===(S=B.codeblock).data&&(S.data=[]),S.data.push({data:t,start:r+o,end:r+o+B.dataLength,codingpasses:B.codingpasses}),o+=B.dataLength}}}return o}function j(e,t,r,n,a,i,s,c){for(var u=n.tbx0,l=n.tby0,f=n.tbx1-n.tbx0,h=n.codeblocks,d="H"===n.type.charAt(0)?1:0,p="H"===n.type.charAt(1)?t:0,g=0,m=h.length;g<m;++g){var v=h[g],y=v.tbx1_-v.tbx0_,b=v.tby1_-v.tby0_;if(0!==y&&0!==b&&void 0!==v.data){var w=new X(y,b,v.subbandType,v.zeroBitPlanes,i),k=2,S=v.data,x=0,A=0,O=void 0,C=void 0,T=void 0;for(O=0,C=S.length;O<C;O++)x+=(T=S[O]).end-T.start,A+=T.codingpasses;var F=new Uint8Array(x),P=0;for(O=0,C=S.length;O<C;O++){var _=(T=S[O]).data.subarray(T.start,T.end);F.set(_,P),P+=_.length}var I=new o.ArithmeticDecoder(F,0,x);for(w.setDecoder(I),O=0;O<A;O++){switch(k){case 0:w.runSignificancePropagationPass();break;case 1:w.runMagnitudeRefinementPass();break;case 2:w.runCleanupPass(),c&&w.checkSegmentationSymbol()}k=(k+1)%3}var E=v.tbx0_-u+(v.tby0_-l)*f,j=w.coefficentsSign,R=w.coefficentsMagnitude,M=w.bitsDecoded,N=s?0:.5,B=void 0,D=void 0,L=void 0;P=0;var U="LL"!==n.type;for(O=0;O<b;O++){var q=2*(E/f|0)*(t-f)+d+p;for(B=0;B<y;B++){if(0!==(D=R[P])){D=(D+N)*a,0!==j[P]&&(D=-D),L=M[P];var H=U?q+(E<<1):E;e[H]=s&&L>=i?D:D*(1<<i-L)}E++,P++}E+=f-y}}}}function R(e,t,r){for(var n=t.components[r],a=n.codingStyleParameters,i=n.quantizationParameters,o=a.decompositionLevelsCount,s=i.SPqcds,c=i.scalarExpounded,u=i.guardBits,l=a.segmentationSymbolUsed,f=e.components[r].precision,h=a.reversibleTransformation,d=h?new z:new $,p=[],g=0,v=0;v<=o;v++){for(var y=n.resolutions[v],b=y.trx1-y.trx0,w=y.try1-y.try0,k=new Float32Array(b*w),S=0,x=y.subbands.length;S<x;S++){var A=void 0,O=void 0;c?(A=s[g].mu,O=s[g].epsilon,g++):(A=s[0].mu,O=s[0].epsilon+(v>0?1-v:0));var C=y.subbands[S],T=m[C.type];j(k,b,0,C,h?1:Math.pow(2,f+T-O)*(1+A/2048),u+O-1,h,l)}p.push({width:b,height:w,items:k})}var F=d.calculate(p,n.tcx0,n.tcy0);return{left:n.tcx0,top:n.tcy0,width:F.width,height:F.height,items:F.items}}function M(e,t){for(var r=e.SIZ.Csiz,n=e.tiles[t],a=0;a<r;a++){var i=n.components[a],o=void 0!==e.currentTile.QCC[a]?e.currentTile.QCC[a]:e.currentTile.QCD;i.quantizationParameters=o;var s=void 0!==e.currentTile.COC[a]?e.currentTile.COC[a]:e.currentTile.COD;i.codingStyleParameters=s}n.codingStyleDefaultParameters=e.currentTile.COD}t.JpxImage=v;var N,B,D,L,U=function(){function e(t,r){u(this,e);var n=(0,i.log2)(Math.max(t,r))+1;this.levels=[];for(var a=0;a<n;a++){var o={width:t,height:r,items:[]};this.levels.push(o),t=Math.ceil(t/2),r=Math.ceil(r/2)}}return c(e,[{key:"reset",value:function(e,t){for(var r,n=0,a=0;n<this.levels.length;){var i=e+t*(r=this.levels[n]).width;if(void 0!==r.items[i]){a=r.items[i];break}r.index=i,e>>=1,t>>=1,n++}n--,(r=this.levels[n]).items[r.index]=a,this.currentLevel=n,delete this.value}},{key:"incrementValue",value:function(){var e=this.levels[this.currentLevel];e.items[e.index]++}},{key:"nextLevel",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return--e<0?(this.value=r,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,!0)}}]),e}(),q=function(){function e(t,r,n){u(this,e);var a=(0,i.log2)(Math.max(t,r))+1;this.levels=[];for(var o=0;o<a;o++){for(var s=new Uint8Array(t*r),c=0,l=s.length;c<l;c++)s[c]=n;var f={width:t,height:r,items:s};this.levels.push(f),t=Math.ceil(t/2),r=Math.ceil(r/2)}}return c(e,[{key:"reset",value:function(e,t,r){for(var n=0;n<this.levels.length;){var a=this.levels[n],i=e+t*a.width;a.index=i;var o=a.items[i];if(255===o)break;if(o>r)return this.currentLevel=n,this.propagateValues(),!1;e>>=1,t>>=1,n++}return this.currentLevel=n-1,!0}},{key:"incrementValue",value:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}},{key:"propagateValues",value:function(){for(var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=r}},{key:"nextLevel",value:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,!(--e<0||(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,0))}}]),e}(),X=(N=17,B=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),D=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),L=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]),function(){function e(t,r,n,a,i){var o;u(this,e),this.width=t,this.height=r,o="HH"===n?L:"HL"===n?D:B,this.contextLabelTable=o;var s,c=t*r;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),s=i>14?new Uint32Array(c):i>6?new Uint16Array(c):new Uint8Array(c),this.coefficentsMagnitude=s,this.processingFlags=new Uint8Array(c);var l=new Uint8Array(c);if(0!==a)for(var f=0;f<c;f++)l[f]=a;this.bitsDecoded=l,this.reset()}return c(e,[{key:"setDecoder",value:function(e){this.decoder=e}},{key:"reset",value:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6}},{key:"setNeighborsSignificance",value:function(e,t,r){var n,a=this.neighborsSignificance,i=this.width,o=this.height,s=t>0,c=t+1<i;e>0&&(n=r-i,s&&(a[n-1]+=16),c&&(a[n+1]+=16),a[n]+=4),e+1<o&&(n=r+i,s&&(a[n-1]+=16),c&&(a[n+1]+=16),a[n]+=4),s&&(a[r-1]+=1),c&&(a[r+1]+=1),a[r]|=128}},{key:"runSignificancePropagationPass",value:function(){for(var e=this.decoder,t=this.width,r=this.height,n=this.coefficentsMagnitude,a=this.coefficentsSign,i=this.neighborsSignificance,o=this.processingFlags,s=this.contexts,c=this.contextLabelTable,u=this.bitsDecoded,l=0;l<r;l+=4)for(var f=0;f<t;f++)for(var h=l*t+f,d=0;d<4;d++,h+=t){var p=l+d;if(p>=r)break;if(o[h]&=-2,!n[h]&&i[h]){var g=c[i[h]];if(e.readBit(s,g)){var m=this.decodeSignBit(p,f,h);a[h]=m,n[h]=1,this.setNeighborsSignificance(p,f,h),o[h]|=2}u[h]++,o[h]|=1}}}},{key:"decodeSignBit",value:function(e,t,r){var n,a,i,o,s,c,u=this.width,l=this.height,f=this.coefficentsMagnitude,h=this.coefficentsSign;o=t>0&&0!==f[r-1],t+1<u&&0!==f[r+1]?(i=h[r+1],n=o?1-i-(a=h[r-1]):1-i-i):n=o?1-(a=h[r-1])-a:0;var d=3*n;return o=e>0&&0!==f[r-u],e+1<l&&0!==f[r+u]?(i=h[r+u],n=o?1-i-(a=h[r-u])+d:1-i-i+d):n=o?1-(a=h[r-u])-a+d:d,n>=0?(s=9+n,c=this.decoder.readBit(this.contexts,s)):(s=9-n,c=1^this.decoder.readBit(this.contexts,s)),c}},{key:"runMagnitudeRefinementPass",value:function(){for(var e,t=this.decoder,r=this.width,n=this.height,a=this.coefficentsMagnitude,i=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,c=this.processingFlags,u=r*n,l=4*r,f=0;f<u;f=e){e=Math.min(u,f+l);for(var h=0;h<r;h++)for(var d=f+h;d<e;d+=r)if(a[d]&&0==(1&c[d])){var p=16;0!=(2&c[d])&&(c[d]^=2,p=0==(127&i[d])?15:14);var g=t.readBit(o,p);a[d]=a[d]<<1|g,s[d]++,c[d]|=1}}}},{key:"runCleanupPass",value:function(){for(var e,t=this.decoder,r=this.width,n=this.height,a=this.neighborsSignificance,i=this.coefficentsMagnitude,o=this.coefficentsSign,s=this.contexts,c=this.contextLabelTable,u=this.bitsDecoded,l=this.processingFlags,f=r,h=2*r,d=3*r,p=0;p<n;p=e){e=Math.min(p+4,n);for(var g=p*r,m=p+3<n,v=0;v<r;v++){var y=g+v,b=0,w=y,k=p,S=void 0;if(m&&0===l[y]&&0===l[y+f]&&0===l[y+h]&&0===l[y+d]&&0===a[y]&&0===a[y+f]&&0===a[y+h]&&0===a[y+d]){if(!t.readBit(s,18)){u[y]++,u[y+f]++,u[y+h]++,u[y+d]++;continue}0!=(b=t.readBit(s,N)<<1|t.readBit(s,N))&&(k=p+b,w+=b*r),S=this.decodeSignBit(k,v,w),o[w]=S,i[w]=1,this.setNeighborsSignificance(k,v,w),l[w]|=2,w=y;for(var x=p;x<=k;x++,w+=r)u[w]++;b++}for(k=p+b;k<e;k++,w+=r)if(!i[w]&&0==(1&l[w])){var A=c[a[w]];1===t.readBit(s,A)&&(S=this.decodeSignBit(k,v,w),o[w]=S,i[w]=1,this.setNeighborsSignificance(k,v,w),l[w]|=2),u[w]++}}}}},{key:"checkSegmentationSymbol",value:function(){var e=this.decoder,t=this.contexts;if(10!=(e.readBit(t,N)<<3|e.readBit(t,N)<<2|e.readBit(t,N)<<1|e.readBit(t,N)))throw new g("Invalid segmentation symbol")}}]),e}()),H=function(){function e(){u(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize Transform.")}return c(e,[{key:"calculate",value:function(e,t,r){for(var n=e[0],a=1,i=e.length;a<i;a++)n=this.iterate(n,e[a],t,r);return n}},{key:"extend",value:function(e,t,r){var n=t-1,a=t+1,i=t+r-2,o=t+r;e[n--]=e[a++],e[o++]=e[i--],e[n--]=e[a++],e[o++]=e[i--],e[n--]=e[a++],e[o++]=e[i--],e[n]=e[a],e[o]=e[i]}},{key:"filter",value:function(e,t,r){(0,a.unreachable)("Abstract method \`filter\` called")}},{key:"iterate",value:function(e,t,r,n){var a,i,o,s,c,u,l=e.width,f=e.height,h=e.items,d=t.width,p=t.height,g=t.items;for(o=0,a=0;a<f;a++)for(s=2*a*d,i=0;i<l;i++,o++,s+=2)g[s]=h[o];h=e.items=null;var m=new Float32Array(d+8);if(1===d){if(0!=(1&r))for(u=0,o=0;u<p;u++,o+=d)g[o]*=.5}else for(u=0,o=0;u<p;u++,o+=d)m.set(g.subarray(o,o+d),4),this.extend(m,4,d),this.filter(m,4,d),g.set(m.subarray(4,4+d),o);var v=16,y=[];for(a=0;a<v;a++)y.push(new Float32Array(p+8));var b,w=0;if(e=4+p,1===p){if(0!=(1&n))for(c=0;c<d;c++)g[c]*=.5}else for(c=0;c<d;c++){if(0===w){for(v=Math.min(d-c,v),o=c,s=4;s<e;o+=d,s++)for(b=0;b<v;b++)y[b][s]=g[o+b];w=v}var k=y[--w];if(this.extend(k,4,p),this.filter(k,4,p),0===w)for(o=c-v+1,s=4;s<e;o+=d,s++)for(b=0;b<v;b++)g[o+b]=y[b][s]}return{width:d,height:p,items:g}}}]),e}(),$=function(e){l(r,e);var t=h(r);function r(){return u(this,r),t.apply(this,arguments)}return c(r,[{key:"filter",value:function(e,t,r){var n,a,i,o,s=r>>1,c=-1.586134342059924,u=-.052980118572961,l=.882911075530934,f=.443506852043971,h=1.230174104914001;for(n=(t|=0)-3,a=s+4;a--;n+=2)e[n]*=.8128930661159609;for(i=f*e[(n=t-2)-1],a=s+3;a--&&(o=f*e[n+1],e[n]=h*e[n]-i-o,a--);n+=2)i=f*e[(n+=2)+1],e[n]=h*e[n]-i-o;for(i=l*e[(n=t-1)-1],a=s+2;a--&&(o=l*e[n+1],e[n]-=i+o,a--);n+=2)i=l*e[(n+=2)+1],e[n]-=i+o;for(i=u*e[(n=t)-1],a=s+1;a--&&(o=u*e[n+1],e[n]-=i+o,a--);n+=2)i=u*e[(n+=2)+1],e[n]-=i+o;if(0!==s)for(i=c*e[(n=t+1)-1],a=s;a--&&(o=c*e[n+1],e[n]-=i+o,a--);n+=2)i=c*e[(n+=2)+1],e[n]-=i+o}}]),r}(H),z=function(e){l(r,e);var t=h(r);function r(){return u(this,r),t.apply(this,arguments)}return c(r,[{key:"filter",value:function(e,t,r){var n,a,i=r>>1;for(n=t|=0,a=i+1;a--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,a=i;a--;n+=2)e[n]+=e[n-1]+e[n+1]>>1}}]),r}(H)},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var a=c(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0;var u=function(e){!function(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&&i(e,t)}(c,e);var t,r,n,s=o(c);function c(e,t,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=s.call(this,t)).str=e,n.dict=e.dict,n.cachedData=0,n.bitsCached=0;for(var a=4096,i={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(a),dictionaryLengths:new Uint16Array(a),dictionaryPrevCodes:new Uint16Array(a),currentSequence:new Uint8Array(a),currentSequenceLength:0},o=0;o<256;++o)i.dictionaryValues[o]=o,i.dictionaryLengths[o]=1;return n.lzwState=i,n}return t=c,(r=[{key:"readBits",value:function(e){for(var t=this.bitsCached,r=this.cachedData;t<e;){var n=this.str.getByte();if(-1===n)return this.eof=!0,null;r=r<<8|n,t+=8}return this.bitsCached=t-=e,this.cachedData=r,this.lastCode=null,r>>>t&(1<<e)-1}},{key:"readBlock",value:function(){var e,t,r,n=1024,a=this.lzwState;if(a){var i=a.earlyChange,o=a.nextCode,s=a.dictionaryValues,c=a.dictionaryLengths,u=a.dictionaryPrevCodes,l=a.codeLength,f=a.prevCode,h=a.currentSequence,d=a.currentSequenceLength,p=0,g=this.bufferLength,m=this.ensureBuffer(this.bufferLength+n);for(e=0;e<512;e++){var v=this.readBits(l),y=d>0;if(v<256)h[0]=v,d=1;else{if(!(v>=258)){if(256===v){l=9,o=258,d=0;continue}this.eof=!0,delete this.lzwState;break}if(v<o)for(t=(d=c[v])-1,r=v;t>=0;t--)h[t]=s[r],r=u[r];else h[d++]=h[0]}if(y&&(u[o]=f,c[o]=c[f]+1,s[o]=h[0],l=++o+i&o+i-1?l:0|Math.min(Math.log(o+i)/.6931471805599453+1,12)),f=v,n<(p+=d)){do{n+=512}while(n<p);m=this.ensureBuffer(this.bufferLength+n)}for(t=0;t<d;t++)m[g++]=h[t]}a.nextCode=o,a.codeLength=l,a.prevCode=f,a.currentSequenceLength=d,this.bufferLength=g}}}])&&a(t.prototype,r),n&&a(t,n),c}(r(127).DecodeStream);t.LZWStream=u},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0;var a=r(127),i=r(4),o=r(113);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,r,n,a=u(h);function h(e,t,r){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),n=a.call(this,t),!(0,o.isDict)(r))return l(n,e);var s=n.predictor=r.get("Predictor")||1;if(s<=1)return l(n,e);if(2!==s&&(s<10||s>15))throw new i.FormatError("Unsupported predictor: ".concat(s));n.readBlock=2===s?n.readBlockTiff:n.readBlockPng,n.str=e,n.dict=e.dict;var c=n.colors=r.get("Colors")||1,u=n.bits=r.get("BitsPerComponent")||8,d=n.columns=r.get("Columns")||1;return n.pixBytes=c*u+7>>3,n.rowBytes=d*c*u+7>>3,l(n,f(n))}return t=h,(r=[{key:"readBlockTiff",value:function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),n=this.bits,a=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var o,s=0,c=0,u=0,l=0,f=t;if(1===n&&1===a)for(o=0;o<e;++o){var h=i[o]^s;h^=h>>1,h^=h>>2,s=(1&(h^=h>>4))<<7,r[f++]=h}else if(8===n){for(o=0;o<a;++o)r[f++]=i[o];for(;o<e;++o)r[f]=r[f-a]+i[o],f++}else if(16===n){var d=2*a;for(o=0;o<d;++o)r[f++]=i[o];for(;o<e;o+=2){var p=((255&i[o])<<8)+(255&i[o+1])+((255&r[f-d])<<8)+(255&r[f-d+1]);r[f++]=p>>8&255,r[f++]=255&p}}else{var g=new Uint8Array(a+1),m=(1<<n)-1,v=0,y=t,b=this.columns;for(o=0;o<b;++o)for(var w=0;w<a;++w)u<n&&(s=s<<8|255&i[v++],u+=8),g[w]=g[w]+(s>>u-n)&m,u-=n,c=c<<n|g[w],(l+=n)>=8&&(r[y++]=c>>l-8&255,l-=8);l>0&&(r[y++]=(c<<8-l)+(s&(1<<8-l)-1))}this.bufferLength+=e}}},{key:"readBlockPng",value:function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),n=this.str.getBytes(e);if(this.eof=!n.length,!this.eof){var a=this.bufferLength,o=this.ensureBuffer(a+e),s=o.subarray(a-e,a);0===s.length&&(s=new Uint8Array(e));var c,u,l,f=a;switch(r){case 0:for(c=0;c<e;++c)o[f++]=n[c];break;case 1:for(c=0;c<t;++c)o[f++]=n[c];for(;c<e;++c)o[f]=o[f-t]+n[c]&255,f++;break;case 2:for(c=0;c<e;++c)o[f++]=s[c]+n[c]&255;break;case 3:for(c=0;c<t;++c)o[f++]=(s[c]>>1)+n[c];for(;c<e;++c)o[f]=(s[c]+o[f-t]>>1)+n[c]&255,f++;break;case 4:for(c=0;c<t;++c)u=s[c],l=n[c],o[f++]=u+l;for(;c<e;++c){u=s[c];var h=s[c-t],d=o[f-t],p=d+u-h,g=p-d;g<0&&(g=-g);var m=p-u;m<0&&(m=-m);var v=p-h;v<0&&(v=-v),l=n[c],o[f++]=g<=m&&g<=v?d+l:m<=v?u+l:h+l}break;default:throw new i.FormatError("Unsupported predictor: ".concat(r))}this.bufferLength+=e}}}])&&s(t.prototype,r),n&&s(t,n),h}(a.DecodeStream);t.PredictorStream=d},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var a=c(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0;var u=function(e){!function(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&&i(e,t)}(c,e);var t,r,n,s=o(c);function c(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(r=s.call(this,t)).str=e,r.dict=e.dict,r}return t=c,(r=[{key:"readBlock",value:function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,n=e[0];if(n<128){if((t=this.ensureBuffer(r+n+1))[r++]=e[1],n>0){var a=this.str.getBytes(n);t.set(a,r),r+=n}}else{n=257-n;var i=e[1];t=this.ensureBuffer(r+n+1);for(var o=0;o<n;o++)t[r++]=i}this.bufferLength=r}}}])&&a(t.prototype,r),n&&a(t,n),c}(r(127).DecodeStream);t.RunLengthStream=u},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Font=t.ErrorFont=void 0;var n=r(4),a=r(143),i=r(146),o=r(147),s=r(145),c=r(149),u=r(148),l=r(150),f=r(151),h=r(152),d=r(124),p=r(153),g=r(117),m=r(118),v=r(154);function y(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||w(e,t)||function(){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 w(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t,r){return t&&x(e.prototype,t),r&&x(e,r),e}var O=[[57344,63743],[1048576,1114109]],C=1e3,T=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],F=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function P(e){if(e.fontMatrix&&e.fontMatrix[0]!==n.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],r=e.widths;for(var a in r)r[a]*=t;e.defaultWidth*=t}}var _=function(){function e(t,r,n,a,i,o,s,c){S(this,e),this.fontChar=t,this.unicode=r,this.accent=n,this.width=a,this.vmetric=i,this.operatorListId=o,this.isSpace=s,this.isInFont=c}return A(e,[{key:"matchesForCache",value:function(e,t,r,n,a,i,o,s){return this.fontChar===e&&this.unicode===t&&this.accent===r&&this.width===n&&this.vmetric===a&&this.operatorListId===i&&this.isSpace===o&&this.isInFont===s}}]),e}();function I(e,t){return(e<<8)+t}function E(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function j(e){return String.fromCharCode(e>>8&255,255&e)}function R(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function M(e){var t=e.peekBytes(4);return"ttcf"===(0,n.bytesToString)(t)}function N(e,t){var r,a,i=t.type,o=t.subtype,s=t.composite;return function(e){var t=e.peekBytes(4);return 65536===(0,g.readUint32)(t,0)||"true"===(0,n.bytesToString)(t)}(e)||M(e)?r=s?"CIDFontType2":"TrueType":function(e){var t=e.peekBytes(4);return"OTTO"===(0,n.bytesToString)(t)}(e)?r=s?"CIDFontType2":"OpenType":function(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e)?r=s?"CIDFontType0":"MMType1"===i?"MMType1":"Type1":function(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e)?s?(r="CIDFontType0",a="CIDFontType0C"):(r="MMType1"===i?"MMType1":"Type1",a="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),r=i,a=o),[r,a]}function B(e,t,r){for(var n,a=[],i=0,o=e.length;i<o;i++)-1!==(n=(0,u.getUnicodeForGlyph)(e[i],t))&&(a[i]=n);for(var s in r)-1!==(n=(0,u.getUnicodeForGlyph)(r[s],t))&&(a[+s]=n);return a}function D(e,t,r){var a=Object.create(null),i=[],o=0,s=O[o][0],c=O[o][1];for(var u in e){var l=e[u|=0];if(t(l)){if(s>c){if(++o>=O.length){(0,n.warn)("Ran out of space in font private use area.");break}s=O[o][0],c=O[o][1]}var f=s++;0===l&&(l=r),a[f]=l,i[u]=f}}return{toFontChar:i,charCodeToGlyphId:a,nextAvailableFontCharCode:s}}function L(e,t){var r,a,i,o,s=function(e,t){var r=[];for(var n in e)e[n]>=t||r.push({fontCharCode:0|n,glyphId:e[n]});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var a=[],i=r.length,o=0;o<i;){var s=r[o].fontCharCode,c=[r[o].glyphId];++o;for(var u=s;o<i&&u+1===r[o].fontCharCode&&(c.push(r[o].glyphId),++o,65535!=++u););a.push([s,u,c])}return a}(e,t),c=s[s.length-1][1]>65535?2:1,u="\\0\\0"+j(c)+"\\0\\0"+(0,n.string32)(4+8*c);for(r=s.length-1;r>=0&&!(s[r][0]<=65535);--r);var l=r+1;s[r][0]<65535&&65535===s[r][1]&&(s[r][1]=65534);var f,h,d,g,m=s[r][1]<65535?1:0,v=l+m,y=p.OpenTypeFileBuilder.getSearchParams(v,2),b="",w="",k="",S="",x="",A=0;for(r=0,a=l;r<a;r++){h=(f=s[r])[0],d=f[1],b+=j(h),w+=j(d);var O=!0;for(i=1,o=(g=f[2]).length;i<o;++i)if(g[i]!==g[i-1]+1){O=!1;break}if(O)k+=j(g[0]-h&65535),S+=j(0);else{var C=2*(v-r)+2*A;for(A+=d-h+1,k+=j(0),S+=j(C),i=0,o=g.length;i<o;++i)x+=j(g[i])}}m>0&&(w+="ÿÿ",b+="ÿÿ",k+="\\0",S+="\\0\\0");var T="\\0\\0"+j(2*v)+j(y.range)+j(y.entry)+j(y.rangeShift)+w+"\\0\\0"+b+k+S+x,F="",P="";if(c>1){for(u+="\\0\\0\\n"+(0,n.string32)(4+8*c+4+T.length),F="",r=0,a=s.length;r<a;r++){h=(f=s[r])[0];var _=(g=f[2])[0];for(i=1,o=g.length;i<o;++i)g[i]!==g[i-1]+1&&(d=f[0]+i-1,F+=(0,n.string32)(h)+(0,n.string32)(d)+(0,n.string32)(_),h=d+1,_=g[i]);F+=(0,n.string32)(h)+(0,n.string32)(f[1])+(0,n.string32)(_)}P="\\0\\f\\0\\0"+(0,n.string32)(F.length+16)+"\\0\\0\\0\\0"+(0,n.string32)(F.length/12)}return u+"\\0"+j(T.length+4)+T+P+F}function U(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var a=0,i=0,o=0,s=0,c=null,l=0;if(t){for(var f in t){(c>(f|=0)||!c)&&(c=f),l<f&&(l=f);var h=(0,u.getUnicodeRangeFor)(f);if(h<32)a|=1<<h;else if(h<64)i|=1<<h-32;else if(h<96)o|=1<<h-64;else{if(!(h<123))throw new n.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");s|=1<<h-96}}l>65535&&(l=65535)}else c=0,l=255;var d=e.bbox||[0,0,0,0],p=r.unitsPerEm||1/(e.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],g=e.ascentScaled?1:p/C,m=r.ascent||Math.round(g*(e.ascent||d[3])),v=r.descent||Math.round(g*(e.descent||d[1]));v>0&&e.descent>0&&d[1]<0&&(v=-v);var y=r.yMax||m,b=-r.yMin||-v;return"\\0$ô\\0\\0\\0»\\0\\0\\0»\\0\\0ß\\x001\\0\\0\\0\\0"+String.fromCharCode(e.fixedPitch?9:0)+"\\0\\0\\0\\0\\0\\0"+(0,n.string32)(a)+(0,n.string32)(i)+(0,n.string32)(o)+(0,n.string32)(s)+"*21*"+j(e.italicAngle?1:0)+j(c||e.firstChar)+j(l||e.lastChar)+j(m)+j(v)+"\\0d"+j(y)+j(b)+"\\0\\0\\0\\0\\0\\0\\0\\0"+j(e.xHeight)+j(e.capHeight)+j(0)+j(c||e.firstChar)+"\\0"}function q(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\\0\\0\\0"+(0,n.string32)(t)+"\\0\\0\\0\\0"+(0,n.string32)(e.fixedPitch)+"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"}function X(e){return e.replace(/[^\\x21-\\x7E]|[[\\](){}<>/%]/g,"").slice(0,63)}function H(e,t){t||(t=[[],[]]);var r,n,a,i,o,s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||X(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],c=[];for(r=0,n=s.length;r<n;r++){var u=[];for(a=0,i=(o=t[1][r]||s[r]).length;a<i;a++)u.push(j(o.charCodeAt(a)));c.push(u.join(""))}var l=[s,c],f=["\\0","\\0"],h=["\\0\\0","\\0"],d=["\\0\\0","\\t"],p=s.length*f.length,g="\\0\\0"+j(p)+j(12*p+6),m=0;for(r=0,n=f.length;r<n;r++){var v=l[r];for(a=0,i=v.length;a<i;a++)o=v[a],g+=f[r]+h[r]+d[r]+j(a)+j(o.length)+j(m),m+=o.length}return g+=s.join("")+c.join("")}var $=function(){function e(t,r,a){S(this,e),this.name=t,this.mimetype=null,this.disableFontFace=!1,this.loadedName=a.loadedName,this.isType3Font=a.isType3Font,this.missingFile=!1,this.cssFontInfo=a.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null),this.isSerifFont=!!(a.flags&i.FontFlags.Serif),this.isSymbolicFont=!!(a.flags&i.FontFlags.Symbolic),this.isMonospace=!!(a.flags&i.FontFlags.FixedPitch);var o=a.type,s=a.subtype;this.type=o,this.subtype=s;var c="sans-serif";if(this.isMonospace?c="monospace":this.isSerifFont&&(c="serif"),this.fallbackName=c,this.differences=a.differences,this.widths=a.widths,this.defaultWidth=a.defaultWidth,this.composite=a.composite,this.cMap=a.cMap,this.capHeight=a.capHeight/C,this.ascent=a.ascent/C,this.descent=a.descent/C,this.fontMatrix=a.fontMatrix,this.bbox=a.bbox,this.defaultEncoding=a.defaultEncoding,this.toUnicode=a.toUnicode,this.fallbackToUnicode=a.fallbackToUnicode||new l.ToUnicodeMap,this.toFontChar=[],"Type3"!==a.type){if(this.cidEncoding=a.cidEncoding,this.vertical=!!a.vertical,this.vertical&&(this.vmetrics=a.vmetrics,this.defaultVMetrics=a.defaultVMetrics),!r||r.isEmpty)return r&&(0,n.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")"),void this.fallbackToSystemFont(a);var u,h=b(N(r,a),2);o=h[0],s=h[1],o===this.type&&s===this.subtype||(0,n.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(o,"/").concat(s,"."));try{switch(o){case"MMType1":(0,n.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var d="Type1C"===s||"CIDFontType0C"===s?new f.CFFFont(r,a):new v.Type1Font(t,r,a);P(a),u=this.convert(t,d,a);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",u=this.checkAndRepair(t,r,a),this.isOpenType&&(P(a),o="OpenType");break;default:throw new n.FormatError("Font ".concat(o," is not supported"))}}catch(e){return(0,n.warn)(e),void this.fallbackToSystemFont(a)}this.data=u,this.fontType=(0,i.getFontType)(o,s),this.fontMatrix=a.fontMatrix,this.widths=a.widths,this.defaultWidth=a.defaultWidth,this.toUnicode=a.toUnicode,this.seacMap=a.seacMap}else{for(var p=0;p<256;p++)this.toFontChar[p]=this.differences[p]||a.defaultEncoding[p];this.fontType=n.FontType.TYPE3}}return A(e,[{key:"renderer",get:function(){var e=h.FontRendererFactory.create(this,i.SEAC_ANALYSIS_ENABLED);return(0,n.shadow)(this,"renderer",e)}},{key:"exportData",value:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=n?[].concat(T,F):T,i=Object.create(null),o=y(a);try{for(o.s();!(r=o.n()).done;)void 0!==(t=this[e=r.value])&&(i[e]=t)}catch(e){o.e(e)}finally{o.f()}return i}},{key:"fallbackToSystemFont",value:function(e){var t=this;this.missingFile=!0;var r=this.name,a=this.type,f=this.subtype,h=r.replace(/[,_]/g,"-").replace(/\\s/g,""),d=(0,c.getStdFontMap)(),p=(0,c.getNonStdFontMap)(),g=!!d[h],m=!(!p[h]||!d[p[h]]);h=d[h]||p[h]||h,this.bold=-1!==h.search(/bold/gi),this.italic=-1!==h.search(/oblique/gi)||-1!==h.search(/italic/gi),this.black=-1!==r.search(/Black/g);var v=-1!==r.search(/Narrow/g);if(this.remeasure=(!g||v)&&Object.keys(this.widths).length>0,(g||m)&&"CIDFontType2"===a&&this.cidEncoding.startsWith("Identity-")){var y=(0,c.getGlyphMapForStandardFonts)(),b=e.cidToGidMap,w=[];for(var k in y)w[+k]=y[k];if(/Arial-?Black/i.test(r)){var S=(0,c.getSupplementalGlyphMapForArialBlack)();for(var x in S)w[+x]=S[x]}else if(/Calibri/i.test(r)){var A=(0,c.getSupplementalGlyphMapForCalibri)();for(var O in A)w[+O]=A[O]}if(b)for(var C in w){var T=w[C];void 0!==b[T]&&(w[+C]=b[T])}this.toUnicode instanceof l.IdentityToUnicodeMap||this.toUnicode.forEach((function(e,t){w[+e]=t})),this.toFontChar=w,this.toUnicode=new l.ToUnicodeMap(w)}else if(/Symbol/i.test(h))this.toFontChar=B(s.SymbolSetEncoding,(0,o.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(h))/Wingdings/i.test(r)&&(0,n.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=B(s.ZapfDingbatsEncoding,(0,o.getDingbatsGlyphsUnicode)(),this.differences);else if(g)this.toFontChar=B(this.defaultEncoding,(0,o.getGlyphsUnicode)(),this.differences);else{var F=(0,o.getGlyphsUnicode)(),P=[];if(this.toUnicode.forEach((function(e,r){if(!t.composite){var n=t.differences[e]||t.defaultEncoding[e],a=(0,u.getUnicodeForGlyph)(n,F);-1!==a&&(r=a)}P[+e]=r})),this.composite&&this.toUnicode instanceof l.IdentityToUnicodeMap&&/Verdana/i.test(r)){var _=(0,c.getGlyphMapForStandardFonts)();for(var I in _)P[+I]=_[I]}this.toFontChar=P}this.loadedName=h.split("-")[0],this.fontType=(0,i.getFontType)(a,f)}},{key:"checkAndRepair",value:function(e,t,r){var c=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function u(e,t){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(var n=0;n<t;n++){var a=l(e);c.includes(a.tag)&&0!==a.length&&(r[a.tag]=a)}return r}function l(e){var t=e.getString(4),r=e.getInt32()>>>0,n=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.pos;e.pos=e.start?e.start:0,e.skip(n);var o=e.getBytes(a);return e.pos=i,"head"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:r,length:a,offset:n,data:o}}function h(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function g(e,t,r,n,a,i){var o={length:0,sizeOfInstructions:0};if(r-t<=12)return o;var s,c,u,l=e.subarray(t,r),f=E(l[0],l[1]);if(f<0)return u=f=-1,(s=l)[1+(c=0)]=u,s[c]=u>>>8,n.set(l,a),o.length=l.length,o;var h,d=10,p=0;for(h=0;h<f;h++)p=1+(l[d]<<8|l[d+1]),d+=2;var g=d,m=l[d]<<8|l[d+1];o.sizeOfInstructions=m;var v=d+=2+m,y=0;for(h=0;h<p;h++){var b=l[d++];192&b&&(l[d-1]=63&b);var w=2;2&b?w=1:16&b&&(w=0);var k=2;4&b?k=1:32&b&&(k=0);var S=w+k;if(y+=S,8&b){var x=l[d++];h+=x,y+=x*S}}if(0===y)return o;var A=d+y;return A>l.length?o:!i&&m>0?(n.set(l.subarray(0,g),a),n.set([0,0],a+g),n.set(l.subarray(v,A),a+g+2),A-=m,l.length-A>3&&(A=A+3&-4),o.length=A,o):l.length-A>3?(A=A+3&-4,n.set(l.subarray(0,A),a),o.length=A,o):(n.set(l,a),o.length=l.length,o)}function v(e){var r=(t.start?t.start:0)+e.offset;t.pos=r;var n=[[],[]],a=e.length,i=r+a;if(0!==t.getUint16()||a<6)return n;var o,s,c=t.getUint16(),u=t.getUint16(),l=[];for(o=0;o<c&&t.pos+12<=i;o++){var f={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(1===f.platform&&0===f.encoding&&0===f.language||3===f.platform&&1===f.encoding&&1033===f.language)&&l.push(f)}for(o=0,s=l.length;o<s;o++){var h=l[o];if(!(h.length<=0)){var d=r+u+h.offset;if(!(d+h.length>i)){t.pos=d;var p=h.name;if(h.encoding){for(var g="",m=0,v=h.length;m<v;m+=2)g+=String.fromCharCode(t.getUint16());n[1][p]=g}else n[0][p]=t.getString(h.length)}}}return n}var b,w,k,S,x=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function A(e,t){for(var r,a,i,o,s,c=e.data,u=0,l=0,f=0,h=[],d=[],p=[],g=t.tooComplexToFollowFunctions,m=!1,v=0,y=0,b=c.length;u<b;){var w=c[u++];if(64===w)if(a=c[u++],m||y)u+=a;else for(r=0;r<a;r++)h.push(c[u++]);else if(65===w)if(a=c[u++],m||y)u+=2*a;else for(r=0;r<a;r++)i=c[u++],h.push(i<<8|c[u++]);else if(176==(248&w))if(a=w-176+1,m||y)u+=a;else for(r=0;r<a;r++)h.push(c[u++]);else if(184==(248&w))if(a=w-184+1,m||y)u+=2*a;else for(r=0;r<a;r++)i=c[u++],h.push(i<<8|c[u++]);else if(43!==w||g)if(44!==w||g){if(45===w)if(m)m=!1,l=u;else{if(!(s=d.pop()))return(0,n.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1);o=p.pop(),c=s.data,u=s.i,t.functionsStackDeltas[o]=h.length-s.stackTop}else if(137===w)(m||y)&&((0,n.warn)("TT: nested IDEFs not allowed"),g=!0),m=!0,f=u;else if(88===w)++v;else if(27===w)y=v;else if(89===w)y===v&&(y=0),--v;else if(28===w&&!m&&!y){var k=h[h.length-1];k>0&&(u+=k-1)}}else(m||y)&&((0,n.warn)("TT: nested FDEFs not allowed"),g=!0),m=!0,f=u,o=h.pop(),t.functionsDefined[o]={data:c,i:u};else if(!m&&!y)if(o=h[h.length-1],isNaN(o))(0,n.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){var S=h.length+t.functionsStackDeltas[o];if(S<0)return(0,n.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);h.length=S}else if(o in t.functionsDefined&&!p.includes(o)){if(d.push({data:c,i:u,stackTop:h.length-1}),p.push(o),!(s=t.functionsDefined[o]))return(0,n.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);c=s.data,u=s.i}if(!m&&!y){var A=0;for(w<=142?A=x[w]:w>=192&&w<=223?A=-1:w>=224&&(A=-2),w>=113&&w<=117&&(a=h.pop(),isNaN(a)||(A=2*-a));A<0&&h.length>0;)h.pop(),A++;for(;A>0;)h.push(NaN),A--}}t.tooComplexToFollowFunctions=g;var O=[c];u>c.length&&O.push(new Uint8Array(u-c.length)),f>l&&((0,n.warn)("TT: complementing a missing function tail"),O.push(new Uint8Array([34,45]))),function(e,t){if(t.length>1){var r,n,a=0;for(r=0,n=t.length;r<n;r++)a+=t[r].length;a=a+3&-4;var i=new Uint8Array(a),o=0;for(r=0,n=t.length;r<n;r++)i.set(t[r],o),o+=t[r].length;e.data=i,e.length=a}}(e,O)}if(M(t=new m.Stream(new Uint8Array(t.getBytes())))){var O=function(e,t){for(var r,a=function(e){var t=e.getString(4);(0,n.assert)("ttcf"===t,"Must be a TrueType Collection font.");for(var r=e.getUint16(),a=e.getUint16(),i=e.getInt32()>>>0,o=[],s=0;s<i;s++)o.push(e.getInt32()>>>0);var c={ttcTag:t,majorVersion:r,minorVersion:a,numFonts:i,offsetTable:o};switch(r){case 1:return c;case 2:return c.dsigTag=e.getInt32()>>>0,c.dsigLength=e.getInt32()>>>0,c.dsigOffset=e.getInt32()>>>0,c}throw new n.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}(e),i=a.numFonts,o=a.offsetTable,s=t.split("+"),c=0;c<i;c++){e.pos=(e.start||0)+o[c];var l=h(e),f=u(e,l.numTables);if(!f.name)throw new n.FormatError('TrueType Collection font must contain a "name" table.');for(var d=v(f.name),p=0,g=d.length;p<g;p++)for(var m=0,b=d[p].length;m<b;m++){var w=d[p][m]&&d[p][m].replace(/\\s/g,"");if(w){if(w===t)return{header:l,tables:f};if(!(s.length<2)){var k,S=y(s);try{for(S.s();!(k=S.n()).done;){var x=k.value;w===x&&(r={name:x,header:l,tables:f})}}catch(e){S.e(e)}finally{S.f()}}}}}if(r)return(0,n.warn)('TrueType Collection does not contain "'.concat(t,'" font, ')+'falling back to "'.concat(r.name,'" font instead.')),{header:r.header,tables:r.tables};throw new n.FormatError('TrueType Collection does not contain "'.concat(t,'" font.'))}(t,this.name);b=O.header,w=O.tables}else b=h(t),w=u(t,b.numTables);var C=!w["CFF "];if(C){if(!w.loca)throw new n.FormatError('Required "loca" table is not found');w.glyf||((0,n.warn)('Required "glyf" table is not found -- trying to recover.'),w.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{var T=r.composite&&((r.cidToGidMap||[]).length>0||!(r.cMap instanceof d.IdentityCMap));if("OTTO"===b.version&&!T||!w.head||!w.hhea||!w.maxp||!w.post)return S=new m.Stream(w["CFF "].data),k=new f.CFFFont(S,r),P(r),this.convert(e,k,r);delete w.glyf,delete w.loca,delete w.fpgm,delete w.prep,delete w["cvt "],this.isOpenType=!0}if(!w.maxp)throw new n.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+w.maxp.offset;var F=t.getInt32(),_=t.getUint16(),j=_+1,R=!0;j>65535&&(R=!1,j=_,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));var N=0,B=0;F>=65536&&w.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(w.maxp.data[14]=0,w.maxp.data[15]=2),t.pos+=4,N=t.getUint16(),t.pos+=4,B=t.getUint16()),w.maxp.data[4]=j>>8,w.maxp.data[5]=255&j;var X=function(e,t,r,a){var i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&A(e,i),t&&A(t,i),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,n.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,a=e.functionsUsed.length;r<a;r++){if(r>t)return(0,n.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,n.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}}(i,a),r&&1&r.length){var o=new Uint8Array(r.length+1);o.set(r.data),r.data=o}return i.hintsValid}(w.fpgm,w.prep,w["cvt "],N);if(X||(delete w.fpgm,delete w.prep,delete w["cvt "]),function(e,t,r,a,i){if(t){e.pos=(e.start?e.start:0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=8,e.pos+=2;var o=e.getUint16();o>a&&((0,n.info)("The numOfMetrics ("+o+") should not be greater than the numGlyphs ("+a+")"),o=a,t.data[34]=(65280&o)>>8,t.data[35]=255&o);var s=a-o-(r.length-4*o>>1);if(s>0){var c=new Uint8Array(r.length+2*s);c.set(r.data),i&&(c[r.length]=r.data[2],c[r.length+1]=r.data[3]),r.data=c}}else r&&(r.data=null)}(t,w.hhea,w.hmtx,j,R),!w.head)throw new n.FormatError('Required "head" table is not found');!function(e,t,r){var a,i,o,s,c=e.data,u=(a=c[0],i=c[1],o=c[2],s=c[3],(a<<24)+(i<<16)+(o<<8)+s);u>>16!=1&&((0,n.info)("Attempting to fix invalid version in head table: "+u),c[0]=0,c[1]=1,c[2]=0,c[3]=0);var l=I(c[50],c[51]);if(l<0||l>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+l);var f=t+1;if(r===f<<1)c[50]=0,c[51]=0;else{if(r!==f<<2)throw new n.FormatError("Could not fix indexToLocFormat: "+l);c[50]=0,c[51]=1}}}(w.head,_,C?w.loca.length:0);var $=Object.create(null);if(C){var z=I(w.head.data[50],w.head.data[51]),G=function(e,t,r,n,a,i,o){var s,c,u;n?(s=4,c=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},u=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(s=2,c=function(e,t){return e[t]<<9|e[t+1]<<1},u=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var l=i?r+1:r,f=s*(1+l),h=new Uint8Array(f);h.set(e.data.subarray(0,f)),e.data=h;var d,p,m=t.data,v=m.length,y=new Uint8Array(v),b=[];for(d=0,p=0;d<r+1;d++,p+=s){var w=c(h,p);w>v&&(w=v),b.push({index:d,offset:w,endOffset:0})}for(b.sort((function(e,t){return e.offset-t.offset})),d=0;d<r;d++)b[d].endOffset=b[d+1].offset;b.sort((function(e,t){return e.index-t.index}));var k=Object.create(null),S=0;for(u(h,0,S),d=0,p=s;d<r;d++,p+=s){var x=g(m,b[d].offset,b[d].endOffset,y,S,a),A=x.length;0===A&&(k[d]=!0),x.sizeOfInstructions>o&&(o=x.sizeOfInstructions),u(h,p,S+=A)}if(0===S){var O=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(d=0,p=s;d<l;d++,p+=s)u(h,p,O.length);t.data=O}else if(i){var C=c(h,s);y.length>C+S?t.data=y.subarray(0,C+S):(t.data=new Uint8Array(C+S),t.data.set(y.subarray(0,S))),t.data.set(y.subarray(0,C),S),u(e.data,h.length-s,S+C)}else t.data=y.subarray(0,S);return{missingGlyphs:k,maxSizeOfInstructions:o}}(w.loca,w.glyf,_,z,X,R,B);$=G.missingGlyphs,F>=65536&&w.maxp.length>=22&&(w.maxp.data[26]=G.maxSizeOfInstructions>>8,w.maxp.data[27]=255&G.maxSizeOfInstructions)}if(!w.hhea)throw new n.FormatError('Required "hhea" table is not found');0===w.hhea.data[10]&&0===w.hhea.data[11]&&(w.hhea.data[10]=255,w.hhea.data[11]=255);var W={unitsPerEm:I(w.head.data[18],w.head.data[19]),yMax:I(w.head.data[42],w.head.data[43]),yMin:E(w.head.data[38],w.head.data[39]),ascent:I(w.hhea.data[4],w.hhea.data[5]),descent:E(w.hhea.data[6],w.hhea.data[7])};this.ascent=W.ascent/W.unitsPerEm,this.descent=W.descent/W.unitsPerEm,w.post&&function(e,r,a){var o=(t.start?t.start:0)+e.offset;t.pos=o;var s,c=o+e.length,u=t.getInt32();t.skip(28);var l,f=!0;switch(u){case 65536:s=i.MacStandardGlyphOrdering;break;case 131072:var h=t.getUint16();if(h!==a){f=!1;break}var d=[];for(l=0;l<h;++l){var p=t.getUint16();if(p>=32768){f=!1;break}d.push(p)}if(!f)break;for(var g=[],m=[];t.pos<c;){var v=t.getByte();for(m.length=v,l=0;l<v;++l)m[l]=String.fromCharCode(t.getByte());g.push(m.join(""))}for(s=[],l=0;l<h;++l){var y=d[l];y<258?s.push(i.MacStandardGlyphOrdering[y]):s.push(g[y-258])}break;case 196608:break;default:(0,n.warn)("Unknown/unsupported post table version "+u),f=!1,r.defaultEncoding&&(s=r.defaultEncoding)}r.glyphNames=s}(w.post,r,_),w.post={tag:"post",data:q(r)};var V=[];function K(e){return!$[e]}if(r.composite){var Y=r.cidToGidMap||[],J=0===Y.length;r.cMap.forEach((function(e,t){if(t>65535)throw new n.FormatError("Max size of CID is 65,535");var r=-1;J?r=t:void 0!==Y[t]&&(r=Y[t]),r>=0&&r<_&&K(r)&&(V[e]=r)}))}else{var Z=function(e,t,r,a){if(!e)return(0,n.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var i,o=(t.start?t.start:0)+e.offset;t.pos=o,t.skip(2);for(var s,c=t.getUint16(),u=!1,l=0;l<c;l++){var f=t.getUint16(),h=t.getUint16(),d=t.getInt32()>>>0,p=!1;if((!s||s.platformId!==f||s.encodingId!==h)&&(0!==f||0!==h&&1!==h&&3!==h?1===f&&0===h?p=!0:3!==f||1!==h||!a&&s?r&&3===f&&0===h&&(p=!0,u=!0):(p=!0,r||(u=!0)):p=!0,p&&(s={platformId:f,encodingId:h,offset:d}),u))break}if(s&&(t.pos=o+s.offset),!s||-1===t.peekByte())return(0,n.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var g=t.getUint16();t.skip(4);var m,v,y=!1,b=[];if(0===g){for(m=0;m<256;m++){var w=t.getByte();w&&b.push({charCode:m,glyphId:w})}y=!0}else if(4===g){var k=t.getUint16()>>1;t.skip(6);var S,x=[];for(S=0;S<k;S++)x.push({end:t.getUint16()});for(t.skip(2),S=0;S<k;S++)x[S].start=t.getUint16();for(S=0;S<k;S++)x[S].delta=t.getUint16();var A,O=0;for(S=0;S<k;S++){i=x[S];var C=t.getUint16();C?(A=(C>>1)-(k-S),i.offsetIndex=A,O=Math.max(O,A+i.end-i.start+1)):i.offsetIndex=-1}var T=[];for(m=0;m<O;m++)T.push(t.getUint16());for(S=0;S<k;S++){o=(i=x[S]).start;var F=i.end,P=i.delta;for(A=i.offsetIndex,m=o;m<=F;m++)65535!==m&&(v=(v=A<0?m:T[A+m-o])+P&65535,b.push({charCode:m,glyphId:v}))}}else{if(6!==g)return(0,n.warn)("cmap table has unsupported format: "+g),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var _=t.getUint16(),I=t.getUint16();for(m=0;m<I;m++){v=t.getUint16();var E=_+m;b.push({charCode:E,glyphId:v})}}b.sort((function(e,t){return e.charCode-t.charCode}));for(var j=1;j<b.length;j++)b[j-1].charCode===b[j].charCode&&(b.splice(j,1),j--);return{platformId:s.platformId,encodingId:s.encodingId,mappings:b,hasShortCmap:y}}(w.cmap,t,this.isSymbolicFont,r.hasEncoding),Q=Z.platformId,ee=Z.encodingId,te=Z.mappings,re=te.length,ne=[];if(!r.hasEncoding||"MacRomanEncoding"!==r.baseEncodingName&&"WinAnsiEncoding"!==r.baseEncodingName||(ne=(0,s.getEncoding)(r.baseEncodingName)),r.hasEncoding&&!this.isSymbolicFont&&(3===Q&&1===ee||1===Q&&0===ee))for(var ae=(0,o.getGlyphsUnicode)(),ie=0;ie<256;ie++){var oe=void 0;if(oe=this.differences&&ie in this.differences?this.differences[ie]:ie in ne&&""!==ne[ie]?ne[ie]:s.StandardEncoding[ie]){var se=(0,i.recoverGlyphName)(oe,ae),ce=void 0;3===Q&&1===ee?ce=ae[se]:1===Q&&0===ee&&(ce=s.MacRomanEncoding.indexOf(se));for(var ue=0;ue<re;++ue)if(te[ue].charCode===ce){V[ie]=te[ue].glyphId;break}}}else if(0===Q)for(var le=0;le<re;++le)V[te[le].charCode]=te[le].glyphId;else for(var fe=0;fe<re;++fe){var he=te[fe].charCode;3===Q&&he>=61440&&he<=61695&&(he&=255),V[he]=te[fe].glyphId}if(r.glyphNames&&(ne.length||this.differences.length))for(var de=0;de<256;++de)if(void 0===V[de]){var pe=this.differences[de]||ne[de];if(pe){var ge=r.glyphNames.indexOf(pe);ge>0&&K(ge)&&(V[de]=ge)}}}0===V.length&&(V[0]=0);var me=j-1;if(R||(me=0),!r.cssFontInfo){var ve=D(V,K,me);this.toFontChar=ve.toFontChar,w.cmap={tag:"cmap",data:L(ve.charCodeToGlyphId,j)},w["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var r=t.getUint16();t.skip(60);var n=t.getUint16();return!(r<4&&768&n||t.getUint16()>t.getUint16()||(t.skip(6),0===t.getUint16()||(e.data[8]=e.data[9]=0,0)))}(w["OS/2"],t)||(w["OS/2"]={tag:"OS/2",data:U(r,ve.charCodeToGlyphId,W)})}if(!C)try{S=new m.Stream(w["CFF "].data),(k=new a.CFFParser(S,r,i.SEAC_ANALYSIS_ENABLED).parse()).duplicateFirstGlyph();var ye=new a.CFFCompiler(k);w["CFF "].data=ye.compile()}catch(e){(0,n.warn)("Failed to compile font "+r.loadedName)}if(w.name){var be=v(w.name);w.name.data=H(e,be)}else w.name={tag:"name",data:H(this.name)};var we=new p.OpenTypeFileBuilder(b.version);for(var ke in w)we.addTable(ke,w[ke].data);return we.toArray()}},{key:"convert",value:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&function(e,t){if(!(e.hasIncludedToUnicodeMap||t===e.defaultEncoding||e.toUnicode instanceof l.IdentityToUnicodeMap)){var r=[],n=(0,o.getGlyphsUnicode)();for(var a in t)if(!e.hasEncoding||void 0===e.differences[a]){var i=t[a],s=(0,u.getUnicodeForGlyph)(i,n);-1!==s&&(r[a]=String.fromCharCode(s))}e.toUnicode.amend(r)}}(r,r.builtInEncoding);var a=1;t instanceof f.CFFFont&&(a=t.numGlyphs-1);var c=t.getGlyphMapping(r),h=null,d=c;r.cssFontInfo||(h=D(c,t.hasGlyphId.bind(t),a),this.toFontChar=h.toFontChar,d=h.charCodeToGlyphId);var g=t.numGlyphs;function m(e,t){var r=null;for(var n in e)t===e[n]&&(r||(r=[]),r.push(0|n));return r}function v(e,t){for(var r in e)if(t===e[r])return 0|r;return h.charCodeToGlyphId[h.nextAvailableFontCharCode]=t,h.nextAvailableFontCharCode++}var y=t.seacs;if(h&&i.SEAC_ANALYSIS_ENABLED&&y&&y.length){var b=r.fontMatrix||n.FONT_IDENTITY_MATRIX,w=t.getCharset(),k=Object.create(null);for(var S in y){var x=y[S|=0],A=s.StandardEncoding[x[2]],O=s.StandardEncoding[x[3]],C=w.indexOf(A),T=w.indexOf(O);if(!(C<0||T<0)){var F={x:x[0]*b[0]+x[1]*b[2]+b[4],y:x[0]*b[1]+x[1]*b[3]+b[5]},P=m(c,S);if(P)for(var _=0,I=P.length;_<I;_++){var E=P[_],M=h.charCodeToGlyphId,N=v(M,C),B=v(M,T);k[E]={baseFontCharCode:N,accentFontCharCode:B,accentOffset:F}}}}r.seacMap=k}var X=1/(r.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],$=new p.OpenTypeFileBuilder("OTTO");return $.addTable("CFF ",t.data),$.addTable("OS/2",U(r,d)),$.addTable("cmap",L(d,g)),$.addTable("head","\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0_<õ\\0\\0"+R(X)+"\\0\\0\\0\\0\\v~'\\0\\0\\0\\0\\v~'\\0\\0"+R(r.descent)+"ÿ"+R(r.ascent)+j(r.italicAngle?2:0)+"\\0\\0\\0\\0\\0\\0\\0"),$.addTable("hhea","\\0\\0\\0"+R(r.ascent)+R(r.descent)+"\\0\\0ÿÿ\\0\\0\\0\\0\\0\\0"+R(r.capHeight)+R(Math.tan(r.italicAngle)*r.xHeight)+"\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0"+j(g)),$.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,n="\\0\\0\\0\\0",a=1,i=g;a<i;a++){var o=0;if(e){var s=e[a-1];o="width"in s?s.width:0}else r&&(o=Math.ceil(r[a]||0));n+=j(o)+j(0)}return n}()),$.addTable("maxp","\\0\\0P\\0"+j(g)),$.addTable("name",H(e)),$.addTable("post",q(r)),$.toArray()}},{key:"spaceWidth",get:function(){for(var e,t=["space","minus","one","i","I"],r=0,a=t.length;r<a;r++){var i=t[r];if(i in this.widths){e=this.widths[i];break}var s=(0,o.getGlyphsUnicode)()[i],c=0;if(this.composite&&this.cMap.contains(s)&&(c=this.cMap.lookup(s)),!c&&this.toUnicode&&(c=this.toUnicode.charCodeOf(s)),c<=0&&(c=s),e=this.widths[c])break}return e=e||this.defaultWidth,(0,n.shadow)(this,"spaceWidth",e)}},{key:"_charToGlyph",value:function(e){var t,r,a,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e;this.cMap&&this.cMap.contains(e)&&(o=this.cMap.lookup(e)),r=this.widths[o],r=(0,n.isNum)(r)?r:this.defaultWidth;var s=this.vmetrics&&this.vmetrics[o],c=this.toUnicode.get(e)||this.fallbackToUnicode.get(e)||e;"number"==typeof c&&(c=String.fromCharCode(c));var l=e in this.toFontChar;if(t=this.toFontChar[e]||e,this.missingFile){var f=this.differences[e]||this.defaultEncoding[e];".notdef"!==f&&""!==f||"Type1"!==this.type||(t=32),t=(0,u.mapSpecialUnicodeValues)(t)}this.isType3Font&&(a=t);var h=null;if(this.seacMap&&this.seacMap[e]){l=!0;var d=this.seacMap[e];t=d.baseFontCharCode,h={fontChar:String.fromCodePoint(d.accentFontCharCode),offset:d.accentOffset}}var p="";"number"==typeof t&&(t<=1114111?p=String.fromCodePoint(t):(0,n.warn)("charToGlyph - invalid fontCharCode: ".concat(t)));var g=this._glyphCache[e];return g&&g.matchesForCache(p,c,h,r,s,a,i,l)||(g=new _(p,c,h,r,s,a,i,l),this._glyphCache[e]=g),g}},{key:"charsToGlyphs",value:function(e){var t=this._charsCache[e];if(t)return t;if(t=[],this.cMap)for(var r=Object.create(null),n=e.length,a=0;a<n;){this.cMap.readCharCode(e,a,r);var i=r.charcode,o=r.length;a+=o;var s=this._charToGlyph(i,1===o&&32===e.charCodeAt(a-1));t.push(s)}else for(var c=0,u=e.length;c<u;++c){var l=e.charCodeAt(c),f=this._charToGlyph(l,32===l);t.push(f)}return this._charsCache[e]=t}},{key:"getCharPositions",value:function(e){var t=[];if(this.cMap)for(var r=Object.create(null),n=0;n<e.length;){this.cMap.readCharCode(e,n,r);var a=r.length;t.push([n,n+a]),n+=a}else for(var i=0,o=e.length;i<o;++i)t.push([i,i+1]);return t}},{key:"glyphCacheValues",get:function(){return Object.values(this._glyphCache)}},{key:"encodeString",value:function(e){for(var t=[],r=[],n=function(){return t.length%2==1},a=0,i=e.length;a<i;a++){var o=e.codePointAt(a);if(o>55295&&(o<57344||o>65533)&&a++,this.toUnicode){var s=String.fromCodePoint(o),c=this.toUnicode.charCodeOf(s);if(-1!==c){n()&&(t.push(r.join("")),r.length=0);for(var u=(this.cMap?this.cMap.getCharCodeLength(c):1)-1;u>=0;u--)r.push(String.fromCharCode(c>>8*u&255));continue}}n()||(t.push(r.join("")),r.length=0),r.push(String.fromCodePoint(o))}return t.push(r.join("")),t}}]),e}();t.Font=$;var z=function(){function e(t){S(this,e),this.error=t,this.loadedName="g_font_error",this.missingFile=!0}return A(e,[{key:"charsToGlyphs",value:function(){return[]}},{key:"encodeString",value:function(e){return[e]}},{key:"exportData",value:function(){return{error:this.error}}}]),e}();t.ErrorFont=z},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var a=r(4),i=r(144),o=r(145);function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}var g=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];t.CFFStandardStrings=g;var m,v,y=391,b=(m=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],v=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}],function(){function e(t,r,n){h(this,e),this.bytes=t.getBytes(),this.properties=r,this.seacAnalysisEnabled=!!n}return p(e,[{key:"parse",value:function(){var e=this.properties,t=new w;this.cff=t;var r=this.parseHeader(),n=this.parseIndex(r.endPos),a=this.parseIndex(n.endPos),i=this.parseIndex(a.endPos),o=this.parseIndex(i.endPos),s=this.parseDict(a.obj.get(0)),c=this.createDict(T,s,t.strings);t.header=r.obj,t.names=this.parseNameIndex(n.obj),t.strings=this.parseStringIndex(i.obj),t.topDict=c,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=c.hasName("ROS");var u=c.getByName("CharStrings"),l=this.parseIndex(u).obj,f=c.getByName("FontMatrix");f&&(e.fontMatrix=f);var h,d,p=c.getByName("FontBBox");if(p&&(e.ascent=Math.max(p[3],p[1]),e.descent=Math.min(p[1],p[3]),e.ascentScaled=!0),t.isCIDFont){for(var g=this.parseIndex(c.getByName("FDArray")).obj,m=0,v=g.count;m<v;++m){var y=g.get(m),b=this.createDict(T,this.parseDict(y),t.strings);this.parsePrivateDict(b),t.fdArray.push(b)}d=null,h=this.parseCharsets(c.getByName("charset"),l.count,t.strings,!0),t.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),l.count)}else h=this.parseCharsets(c.getByName("charset"),l.count,t.strings,!1),d=this.parseEncoding(c.getByName("Encoding"),e,t.strings,h.charset);t.charset=h,t.encoding=d;var k=this.parseCharStrings({charStrings:l,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:c.privateDict});return t.charStrings=k.charStrings,t.seacs=k.seacs,t.widths=k.widths,t}},{key:"parseHeader",value:function(){for(var e=this.bytes,t=e.length,r=0;r<t&&1!==e[r];)++r;if(r>=t)throw new a.FormatError("Invalid CFF header");0!==r&&((0,a.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var n=e[0],i=e[1],o=e[2],s=e[3];return{obj:new k(n,i,o,s),endPos:o}}},{key:"parseDict",value:function(e){var t=0;function r(){var r=e[t++];return 30===r?function(){for(var r="",n=15,a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;t<i;){var o=e[t++],s=o>>4,c=15&o;if(s===n)break;if(r+=a[s],c===n)break;r+=a[c]}return parseFloat(r)}():28===r?r=((r=e[t++])<<24|e[t++]<<16)>>16:29===r?r=(r=(r=(r=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:((0,a.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}var n=[],i=[];t=0;for(var o=e.length;t<o;){var s=e[t];s<=21?(12===s&&(s=s<<8|e[++t]),i.push([s,n]),n=[],++t):n.push(r())}return i}},{key:"parseIndex",value:function(e){var t,r,n=new x,a=this.bytes,i=a[e++]<<8|a[e++],o=[],s=e;if(0!==i){var c=a[e++],u=e+(i+1)*c-1;for(t=0,r=i+1;t<r;++t){for(var l=0,f=0;f<c;++f)l<<=8,l+=a[e++];o.push(u+l)}s=o[i]}for(t=0,r=o.length-1;t<r;++t){var h=o[t],d=o[t+1];n.add(a.subarray(h,d))}return{obj:n,endPos:s}}},{key:"parseNameIndex",value:function(e){for(var t=[],r=0,n=e.count;r<n;++r){var i=e.get(r);t.push((0,a.bytesToString)(i))}return t}},{key:"parseStringIndex",value:function(e){for(var t=new S,r=0,n=e.count;r<n;++r){var i=e.get(r);t.add((0,a.bytesToString)(i))}return t}},{key:"createDict",value:function(e,t,r){for(var n=new e(r),a=0,i=t.length;a<i;++a){var o=t[a],s=o[0],c=o[1];n.setByKey(s,c)}return n}},{key:"parseCharString",value:function(e,t,r,n){if(!t||e.callDepth>10)return!1;for(var i=e.stackSize,o=e.stack,s=t.length,c=0;c<s;){var u=t[c++],l=null;if(12===u){var f=t[c++];0===f?(t[c-2]=139,t[c-1]=22,i=0):l=v[f]}else if(28===u)o[i]=(t[c]<<24|t[c+1]<<16)>>16,c+=2,i++;else if(14===u){if(i>=4&&(i-=4,this.seacAnalysisEnabled))return e.seac=o.slice(i,i+4),!1;l=m[u]}else if(u>=32&&u<=246)o[i]=u-139,i++;else if(u>=247&&u<=254)o[i]=u<251?(u-247<<8)+t[c]+108:-(u-251<<8)-t[c]-108,c++,i++;else if(255===u)o[i]=(t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3])/65536,c+=4,i++;else if(19===u||20===u)e.hints+=i>>1,c+=e.hints+7>>3,i%=2,l=m[u];else{if(10===u||29===u){var h=void 0;if(!(h=10===u?r:n))return l=m[u],(0,a.warn)("Missing subrsIndex for "+l.id),!1;var d=32768;h.count<1240?d=107:h.count<33900&&(d=1131);var p=o[--i]+d;if(p<0||p>=h.count||isNaN(p))return l=m[u],(0,a.warn)("Out of bounds subrIndex for "+l.id),!1;if(e.stackSize=i,e.callDepth++,!this.parseCharString(e,h.get(p),r,n))return!1;e.callDepth--,i=e.stackSize;continue}if(11===u)return e.stackSize=i,!0;l=m[u]}if(l){if(l.stem&&(e.hints+=i>>1,3===u||23===u?e.hasVStems=!0:!e.hasVStems||1!==u&&18!==u||((0,a.warn)("CFF stem hints are in wrong order"),t[c-1]=1===u?3:23)),"min"in l&&!e.undefStack&&i<l.min)return(0,a.warn)("Not enough parameters for "+l.id+"; actual: "+i+", expected: "+l.min),!1;e.firstStackClearing&&l.stackClearing&&(e.firstStackClearing=!1,(i-=l.min)>=2&&l.stem?i%=2:i>1&&(0,a.warn)("Found too many parameters for stack-clearing command"),i>0&&(e.width=o[i-1])),"stackDelta"in l?("stackFn"in l&&l.stackFn(o,i),i+=l.stackDelta):l.stackClearing?i=0:l.resetStack?(i=0,e.undefStack=!1):l.undefStack&&(i=0,e.undefStack=!0,e.firstStackClearing=!1)}}return e.stackSize=i,!0}},{key:"parseCharStrings",value:function(e){for(var t=e.charStrings,r=e.localSubrIndex,n=e.globalSubrIndex,i=e.fdSelect,o=e.fdArray,s=e.privateDict,c=[],u=[],l=t.count,f=0;f<l;f++){var h=t.get(f),d={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},p=!0,g=null,m=s;if(i&&o.length){var v=i.getFDIndex(f);-1===v&&((0,a.warn)("Glyph index is not in fd select."),p=!1),v>=o.length&&((0,a.warn)("Invalid fd index for glyph index."),p=!1),p&&(g=(m=o[v].privateDict).subrsIndex)}else r&&(g=r);if(p&&(p=this.parseCharString(d,h,g,n)),null!==d.width){var y=m.getByName("nominalWidthX");u[f]=y+d.width}else{var b=m.getByName("defaultWidthX");u[f]=b}null!==d.seac&&(c[f]=d.seac),p||t.set(f,new Uint8Array([14]))}return{charStrings:t,seacs:c,widths:u}}},{key:"emptyPrivateDictionary",value:function(e){var t=this.createDict(F,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}},{key:"parsePrivateDict",value:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],n=t[1];if(0===r||n>=this.bytes.length)this.emptyPrivateDictionary(e);else{var a=n+r,i=this.bytes.subarray(n,a),o=this.parseDict(i),s=this.createDict(F,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var c=s.getByName("Subrs"),u=n+c;if(0===c||u>=this.bytes.length)this.emptyPrivateDictionary(e);else{var l=this.parseIndex(u);s.subrsIndex=l.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)}},{key:"parseCharsets",value:function(e,t,r,n){if(0===e)return new _(!0,P.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new _(!0,P.EXPERT,i.ExpertCharset);if(2===e)return new _(!0,P.EXPERT_SUBSET,i.ExpertSubsetCharset);var o,s,c,u=this.bytes,l=e,f=u[e++],h=[n?0:".notdef"];switch(t-=1,f){case 0:for(c=0;c<t;c++)o=u[e++]<<8|u[e++],h.push(n?o:r.get(o));break;case 1:for(;h.length<=t;)for(o=u[e++]<<8|u[e++],s=u[e++],c=0;c<=s;c++)h.push(n?o++:r.get(o++));break;case 2:for(;h.length<=t;)for(o=u[e++]<<8|u[e++],s=u[e++]<<8|u[e++],c=0;c<=s;c++)h.push(n?o++:r.get(o++));break;default:throw new a.FormatError("Unknown charset format")}var d=e,p=u.subarray(l,d);return new _(!1,f,h,p)}},{key:"parseEncoding",value:function(e,t,r,n){var i,s,c,u=Object.create(null),l=this.bytes,f=!1,h=null;if(0===e||1===e){f=!0,i=e;var d=e?o.ExpertEncoding:o.StandardEncoding;for(s=0,c=n.length;s<c;s++){var p=d.indexOf(n[s]);-1!==p&&(u[p]=s)}}else{var g=e;switch(127&(i=l[e++])){case 0:var m=l[e++];for(s=1;s<=m;s++)u[l[e++]]=s;break;case 1:var v=l[e++],y=1;for(s=0;s<v;s++)for(var b=l[e++],w=l[e++],k=b;k<=b+w;k++)u[k]=y++;break;default:throw new a.FormatError("Unknown encoding format: ".concat(i," in CFF"))}var S=e;128&i&&(l[g]&=127,function(){var t=l[e++];for(s=0;s<t;s++){var a=l[e++],i=(l[e++]<<8)+(255&l[e++]);u[a]=n.indexOf(r.get(i))}}()),h=l.subarray(g,S)}return new I(f,i&=127,u,h)}},{key:"parseFDSelect",value:function(e,t){var r,n=this.bytes,i=n[e++],o=[];switch(i){case 0:for(r=0;r<t;++r){var s=n[e++];o.push(s)}break;case 3:var c=n[e++]<<8|n[e++];for(r=0;r<c;++r){var u=n[e++]<<8|n[e++];0===r&&0!==u&&((0,a.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),u=0);for(var l=n[e++],f=n[e]<<8|n[e+1],h=u;h<f;++h)o.push(l)}e+=2;break;default:throw new a.FormatError('parseFDSelect: Unknown format "'.concat(i,'".'))}if(o.length!==t)throw new a.FormatError("parseFDSelect: Invalid font data.");return new E(i,o)}}]),e}());t.CFFParser=b;var w=function(){function e(){h(this,e),this.header=null,this.names=[],this.topDict=null,this.strings=new S,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return p(e,[{key:"duplicateFirstGlyph",value:function(){if(this.charStrings.count>=65535)(0,a.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}}]),e}();t.CFF=w;var k=function e(t,r,n,a){h(this,e),this.major=t,this.minor=r,this.hdrSize=n,this.offSize=a};t.CFFHeader=k;var S=function(){function e(){h(this,e),this.strings=[]}return p(e,[{key:"get",value:function(e){return e>=0&&e<=390?g[e]:e-y<=this.strings.length?this.strings[e-y]:g[0]}},{key:"getSID",value:function(e){var t=g.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+y:-1}},{key:"add",value:function(e){this.strings.push(e)}},{key:"count",get:function(){return this.strings.length}}]),e}();t.CFFStrings=S;var x=function(){function e(){h(this,e),this.objects=[],this.length=0}return p(e,[{key:"add",value:function(e){this.length+=e.length,this.objects.push(e)}},{key:"set",value:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}},{key:"get",value:function(e){return this.objects[e]}},{key:"count",get:function(){return this.objects.length}}]),e}();t.CFFIndex=x;var A,O,C=function(){function e(t,r){h(this,e),this.keyToNameMap=t.keyToNameMap,this.nameToKeyMap=t.nameToKeyMap,this.defaults=t.defaults,this.types=t.types,this.opcodes=t.opcodes,this.order=t.order,this.strings=r,this.values=Object.create(null)}return p(e,[{key:"setByKey",value:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var n=0;n<r;n++)if(isNaN(t[n]))return(0,a.warn)('Invalid CFFDict value: "'+t+'" for key "'+e+'".'),!0;var i=this.types[e];return"num"!==i&&"sid"!==i&&"offset"!==i||(t=t[0]),this.values[e]=t,!0}},{key:"setByName",value:function(e,t){if(!(e in this.nameToKeyMap))throw new a.FormatError('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t}},{key:"hasName",value:function(e){return this.nameToKeyMap[e]in this.values}},{key:"getByName",value:function(e){if(!(e in this.nameToKeyMap))throw new a.FormatError("Invalid dictionary name ".concat(e,'"'));var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]}},{key:"removeByName",value:function(e){delete this.values[this.nameToKeyMap[e]]}}],[{key:"createTables",value:function(e){for(var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},r=0,n=e.length;r<n;++r){var a=e[r],i=Array.isArray(a[0])?(a[0][0]<<8)+a[0][1]:a[0];t.keyToNameMap[i]=a[1],t.nameToKeyMap[a[1]]=i,t.types[i]=a[2],t.defaults[i]=a[3],t.opcodes[i]=Array.isArray(a[0])?a[0]:[a[0]],t.order.push(i)}return t}}]),e}(),T=(A=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],O=null,function(e){s(r,e);var t=u(r);function r(e){var n;return h(this,r),null===O&&(O=C.createTables(A)),(n=t.call(this,O,e)).privateDict=null,n}return r}(C));t.CFFTopDict=T;var F=function(){var e=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],t=null;return function(r){s(a,r);var n=u(a);function a(r){var i;return h(this,a),null===t&&(t=C.createTables(e)),(i=n.call(this,t,r)).subrsIndex=null,i}return a}(C)}();t.CFFPrivateDict=F;var P={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},_=function e(t,r,n,a){h(this,e),this.predefined=t,this.format=r,this.charset=n,this.raw=a};t.CFFCharset=_;var I=function e(t,r,n,a){h(this,e),this.predefined=t,this.format=r,this.encoding=n,this.raw=a},E=function(){function e(t,r){h(this,e),this.format=t,this.fdSelect=r}return p(e,[{key:"getFDIndex",value:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}]),e}();t.CFFFDSelect=E;var j=function(){function e(){h(this,e),this.offsets=Object.create(null)}return p(e,[{key:"isTracking",value:function(e){return e in this.offsets}},{key:"track",value:function(e,t){if(e in this.offsets)throw new a.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t}},{key:"offset",value:function(e){for(var t in this.offsets)this.offsets[t]+=e}},{key:"setEntryLocation",value:function(e,t,r){if(!(e in this.offsets))throw new a.FormatError("Not tracking location of ".concat(e));for(var n=r.data,i=this.offsets[e],o=0,s=t.length;o<s;++o){var c=5*o+i,u=c+1,l=c+2,f=c+3,h=c+4;if(29!==n[c]||0!==n[u]||0!==n[l]||0!==n[f]||0!==n[h])throw new a.FormatError("writing to an offset that is not empty");var d=t[o];n[c]=29,n[u]=d>>24&255,n[l]=d>>16&255,n[f]=d>>8&255,n[h]=255&d}}}]),e}(),R=function(){function e(t){h(this,e),this.cff=t}return p(e,[{key:"compile",value:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var n=this.compileNameIndex(e.names);if(t.add(n),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var i=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o<s;o++){var c=e.fdArray[o],u=i.slice(0);c.hasName("FontMatrix")&&(u=a.Util.transform(u,c.getByName("FontMatrix"))),c.setByName("FontMatrix",u)}}var l=e.topDict.getByName("XUID");l&&l.length>16&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);var f=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(f.output);var h=f.trackers[0],d=this.compileStringIndex(e.strings.strings);t.add(d);var p=this.compileIndex(e.globalSubrIndex);if(t.add(p),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)h.setEntryLocation("Encoding",[e.encoding.format],t);else{var g=this.compileEncoding(e.encoding);h.setEntryLocation("Encoding",[t.length],t),t.add(g)}var m=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);h.setEntryLocation("charset",[t.length],t),t.add(m);var v=this.compileCharStrings(e.charStrings);if(h.setEntryLocation("CharStrings",[t.length],t),t.add(v),e.isCIDFont){h.setEntryLocation("FDSelect",[t.length],t);var y=this.compileFDSelect(e.fdSelect);t.add(y),f=this.compileTopDicts(e.fdArray,t.length,!0),h.setEntryLocation("FDArray",[t.length],t),t.add(f.output);var b=f.trackers;this.compilePrivateDicts(e.fdArray,b,t)}return this.compilePrivateDicts([e.topDict],[h],t),t.add([0]),t.data}},{key:"encodeNumber",value:function(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}},{key:"encodeFloat",value:function(t){var r=t.toString(),n=e.EncodeFloatRegExp.exec(r);if(n){var a=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));r=(Math.round(t*a)/a).toString()}var i,o,s="";for(i=0,o=r.length;i<o;++i){var c=r[i];s+="e"===c?"-"===r[++i]?"c":"b":"."===c?"a":"-"===c?"e":c}var u=[30];for(i=0,o=(s+=1&s.length?"f":"ff").length;i<o;i+=2)u.push(parseInt(s.substring(i,i+2),16));return u}},{key:"encodeInteger",value:function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]}},{key:"compileHeader",value:function(e){return[e.major,e.minor,4,e.offSize]}},{key:"compileNameIndex",value:function(e){for(var t=new x,r=0,n=e.length;r<n;++r){for(var i=e[r],o=Math.min(i.length,127),s=new Array(o),c=0;c<o;c++){var u=i[c];(u<"!"||u>"~"||"["===u||"]"===u||"("===u||")"===u||"{"===u||"}"===u||"<"===u||">"===u||"/"===u||"%"===u)&&(u="_"),s[c]=u}""===(s=s.join(""))&&(s="Bad_Font_Name"),t.add((0,a.stringToBytes)(s))}return this.compileIndex(t)}},{key:"compileTopDicts",value:function(e,t,r){for(var n=[],a=new x,i=0,o=e.length;i<o;++i){var s=e[i];r&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"));var c=new j,u=this.compileDict(s,c);n.push(c),a.add(u),c.offset(t)}return{trackers:n,output:a=this.compileIndex(a,n)}}},{key:"compilePrivateDicts",value:function(e,t,r){for(var n=0,i=e.length;n<i;++n){var o=e[n],s=o.privateDict;if(!s||!o.hasName("Private"))throw new a.FormatError("There must be a private dictionary.");var c=new j,u=this.compileDict(s,c),l=r.length;if(c.offset(l),u.length||(l=0),t[n].setEntryLocation("Private",[u.length,l],r),r.add(u),s.subrsIndex&&s.hasName("Subrs")){var f=this.compileIndex(s.subrsIndex);c.setEntryLocation("Subrs",[u.length],r),r.add(f)}}}},{key:"compileDict",value:function(e,t){for(var r=[],n=e.order,i=0;i<n.length;++i){var o=n[i];if(o in e.values){var s=e.values[o],c=e.types[o];if(Array.isArray(c)||(c=[c]),Array.isArray(s)||(s=[s]),0!==s.length){for(var u=0,l=c.length;u<l;++u){var f=c[u],h=s[u];switch(f){case"num":case"sid":r=r.concat(this.encodeNumber(h));break;case"offset":var d=e.keyToNameMap[o];t.isTracking(d)||t.track(d,r.length),r=r.concat([29,0,0,0,0]);break;case"array":case"delta":r=r.concat(this.encodeNumber(h));for(var p=1,g=s.length;p<g;++p)r=r.concat(this.encodeNumber(s[p]));break;default:throw new a.FormatError("Unknown data type of ".concat(f))}}r=r.concat(e.opcodes[o])}}}return r}},{key:"compileStringIndex",value:function(e){for(var t=new x,r=0,n=e.length;r<n;++r)t.add((0,a.stringToBytes)(e[r]));return this.compileIndex(t)}},{key:"compileGlobalSubrIndex",value:function(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))}},{key:"compileCharStrings",value:function(e){for(var t=new x,r=0;r<e.count;r++){var n=e.get(r);0!==n.length?t.add(n):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)}},{key:"compileCharset",value:function(e,t,r,n){var i,o=t-1;if(n)i=new Uint8Array([2,0,0,o>>8&255,255&o]);else{(i=new Uint8Array(1+2*o))[0]=0;for(var s=0,c=e.charset.length,u=!1,l=1;l<i.length;l+=2){var f=0;if(s<c){var h=e.charset[s++];-1===(f=r.getSID(h))&&(f=0,u||(u=!0,(0,a.warn)("Couldn't find ".concat(h," in CFF strings"))))}i[l]=f>>8&255,i[l+1]=255&f}}return this.compileTypedArray(i)}},{key:"compileEncoding",value:function(e){return this.compileTypedArray(e.raw)}},{key:"compileFDSelect",value:function(e){var t,r,n=e.format;switch(n){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=n,r=0;r<e.fdSelect.length;r++)t[r+1]=e.fdSelect[r];break;case 3:var a=e.fdSelect[0],i=[n,0,0,0,0,a];for(r=1;r<e.fdSelect.length;r++){var o=e.fdSelect[r];o!==a&&(i.push(r>>8&255,255&r,o),a=o)}var s=(i.length-3)/3;i[1]=s>>8&255,i[2]=255&s,i.push(r>>8&255,255&r),t=new Uint8Array(i)}return this.compileTypedArray(t)}},{key:"compileTypedArray",value:function(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e[r];return t}},{key:"compileIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.objects,n=r.length;if(0===n)return[0,0,0];var a,i,o=[n>>8&255,255&n],s=1;for(a=0;a<n;++a)s+=r[a].length;i=s<256?1:s<65536?2:s<16777216?3:4,o.push(i);var c=1;for(a=0;a<n+1;a++)1===i?o.push(255&c):2===i?o.push(c>>8&255,255&c):3===i?o.push(c>>16&255,c>>8&255,255&c):o.push(c>>>24&255,c>>16&255,c>>8&255,255&c),r[a]&&(c+=r[a].length);for(a=0;a<n;a++){t[a]&&t[a].offset(o.length);for(var u=0,l=r[a].length;u<l;u++)o.push(r[a][u])}return o}}],[{key:"EncodeFloatRegExp",get:function(){return(0,a.shadow)(this,"EncodeFloatRegExp",/\\.(\\d*?)(?:9{5,20}|0{5,20})\\d{0,2}(?:e(.+)|$)/)}}]),e}();t.CFFCompiler=R},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0,t.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],t.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],t.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return o;case"StandardEncoding":return i;case"MacRomanEncoding":return a;case"SymbolSetEncoding":return s;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return r;case"MacExpertEncoding":return n;default:return null}},t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0;var r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];t.ExpertEncoding=r;var n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];t.MacRomanEncoding=a;var i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];t.StandardEncoding=i;var o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];t.WinAnsiEncoding=o;var s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];t.SymbolSetEncoding=s;var c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];t.ZapfDingbatsEncoding=c},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=function(e,t){switch(e){case"Type1":return"Type1C"===t?n.FontType.TYPE1C:n.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?n.FontType.CIDFONTTYPE0C:n.FontType.CIDFONTTYPE0;case"OpenType":return n.FontType.OPENTYPE;case"TrueType":return n.FontType.TRUETYPE;case"CIDFontType2":return n.FontType.CIDFONTTYPE2;case"MMType1":return n.FontType.MMTYPE1;case"Type0":return n.FontType.TYPE0;default:return n.FontType.UNKNOWN}},t.recoverGlyphName=c,t.type1FontGlyphMapping=function(e,t,r){var n,o,u,l=Object.create(null),f=!!(e.flags&s.Symbolic);if(e.baseEncodingName)for(u=(0,a.getEncoding)(e.baseEncodingName),o=0;o<u.length;o++)n=r.indexOf(u[o]),l[o]=n>=0?n:0;else if(f)for(o in t)l[o]=t[o];else for(u=a.StandardEncoding,o=0;o<u.length;o++)n=r.indexOf(u[o]),l[o]=n>=0?n:0;var h,d=e.differences;if(d)for(o in d){var p=d[o];if(-1===(n=r.indexOf(p))){h||(h=(0,i.getGlyphsUnicode)());var g=c(p,h);g!==p&&(n=r.indexOf(g))}l[o]=n>=0?n:0}return l},t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0;var n=r(4),a=r(145),i=r(147),o=r(148);t.SEAC_ANALYSIS_ENABLED=!0;var s={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};function c(e,t){if(void 0!==t[e])return e;var r=(0,o.getUnicodeForGlyph)(e,t);if(-1!==r)for(var a in t)if(t[a]===r)return a;return(0,n.info)("Unable to recover a standard glyph name for: "+e),e}t.FontFlags=s,t.MacStandardGlyphOrdering=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDingbatsGlyphsUnicode:()=>i,getGlyphsUnicode:()=>a});var n=r(117);const a=(0,n.getArrayLookupTableFactory)((function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"ffl",64260,"fi",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]})),i=(0,n.getArrayLookupTableFactory)((function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNormalizedUnicodes:()=>u,getUnicodeForGlyph:()=>o,getUnicodeRangeFor:()=>c,mapSpecialUnicodeValues:()=>i,reverseIfRtl:()=>l});var n=r(117);const a=(0,n.getLookupTableFactory)((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}));function i(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?a()[e]||e:173===e?45:e}function o(e,t){let r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){const t=e.length;let n;if(7===t&&"n"===e[1]&&"i"===e[2])n=e.substring(3);else{if(!(t>=5&&t<=7))return-1;n=e.substring(1)}if(n===n.toUpperCase()&&(r=parseInt(n,16),r>=0))return r}return-1}const s=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function c(e){for(let t=0,r=s.length;t<r;t++){const r=s[t];if(e>=r.begin&&e<r.end)return t}return-1}const u=(0,n.getArrayLookupTableFactory)((function(){return["¨"," ̈","¯"," ̄","´"," ́","µ","μ","¸"," ̧","IJ","IJ","ij","ij","Ŀ","L·","ŀ","l·","ʼn","ʼn","ſ","s","DŽ","DŽ","Dž","Dž","dž","dž","LJ","LJ","Lj","Lj","lj","lj","NJ","NJ","Nj","Nj","nj","nj","DZ","DZ","Dz","Dz","dz","dz","˘"," ̆","˙"," ̇","˚"," ̊","˛"," ̨","˜"," ̃","˝"," ̋","ͺ"," ͅ","΄"," ́","ϐ","β","ϑ","θ","ϒ","Υ","ϕ","φ","ϖ","π","ϰ","κ","ϱ","ρ","ϲ","ς","ϴ","Θ","ϵ","ε","Ϲ","Σ","և","եւ","ٵ","اٴ","ٶ","وٴ","ٷ","ۇٴ","ٸ","يٴ","ำ","ํา","ຳ","ໍາ","ໜ","ຫນ","ໝ","ຫມ","ཷ","ྲཱྀ","ཹ","ླཱྀ","ẚ","aʾ","᾽"," ̓","᾿"," ̓","῀"," ͂","῾"," ̔"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","‗"," ̳","․",".","‥","..","…","...","″","′′","‴","′′′","‶","‵‵","‷","‵‵‵","‼","!!","‾"," ̅","⁇","??","⁈","?!","⁉","!?","⁗","′′′′"," "," ","₨","Rs","℀","a/c","℁","a/s","℃","°C","℅","c/o","℆","c/u","ℇ","Ɛ","℉","°F","№","No","℡","TEL","ℵ","א","ℶ","ב","ℷ","ג","ℸ","ד","℻","FAX","Ⅰ","I","Ⅱ","II","Ⅲ","III","Ⅳ","IV","Ⅴ","V","Ⅵ","VI","Ⅶ","VII","Ⅷ","VIII","Ⅸ","IX","Ⅹ","X","Ⅺ","XI","Ⅻ","XII","Ⅼ","L","Ⅽ","C","Ⅾ","D","Ⅿ","M","ⅰ","i","ⅱ","ii","ⅲ","iii","ⅳ","iv","ⅴ","v","ⅵ","vi","ⅶ","vii","ⅷ","viii","ⅸ","ix","ⅹ","x","ⅺ","xi","ⅻ","xii","ⅼ","l","ⅽ","c","ⅾ","d","ⅿ","m","∬","∫∫","∭","∫∫∫","∯","∮∮","∰","∮∮∮","⑴","(1)","⑵","(2)","⑶","(3)","⑷","(4)","⑸","(5)","⑹","(6)","⑺","(7)","⑻","(8)","⑼","(9)","⑽","(10)","⑾","(11)","⑿","(12)","⒀","(13)","⒁","(14)","⒂","(15)","⒃","(16)","⒄","(17)","⒅","(18)","⒆","(19)","⒇","(20)","⒈","1.","⒉","2.","⒊","3.","⒋","4.","⒌","5.","⒍","6.","⒎","7.","⒏","8.","⒐","9.","⒑","10.","⒒","11.","⒓","12.","⒔","13.","⒕","14.","⒖","15.","⒗","16.","⒘","17.","⒙","18.","⒚","19.","⒛","20.","⒜","(a)","⒝","(b)","⒞","(c)","⒟","(d)","⒠","(e)","⒡","(f)","⒢","(g)","⒣","(h)","⒤","(i)","⒥","(j)","⒦","(k)","⒧","(l)","⒨","(m)","⒩","(n)","⒪","(o)","⒫","(p)","⒬","(q)","⒭","(r)","⒮","(s)","⒯","(t)","⒰","(u)","⒱","(v)","⒲","(w)","⒳","(x)","⒴","(y)","⒵","(z)","⨌","∫∫∫∫","⩴","::=","⩵","==","⩶","===","⺟","母","⻳","龟","⼀","一","⼁","丨","⼂","丶","⼃","丿","⼄","乙","⼅","亅","⼆","二","⼇","亠","⼈","人","⼉","儿","⼊","入","⼋","八","⼌","冂","⼍","冖","⼎","冫","⼏","几","⼐","凵","⼑","刀","⼒","力","⼓","勹","⼔","匕","⼕","匚","⼖","匸","⼗","十","⼘","卜","⼙","卩","⼚","厂","⼛","厶","⼜","又","⼝","口","⼞","囗","⼟","土","⼠","士","⼡","夂","⼢","夊","⼣","夕","⼤","大","⼥","女","⼦","子","⼧","宀","⼨","寸","⼩","小","⼪","尢","⼫","尸","⼬","屮","⼭","山","⼮","巛","⼯","工","⼰","己","⼱","巾","⼲","干","⼳","幺","⼴","广","⼵","廴","⼶","廾","⼷","弋","⼸","弓","⼹","彐","⼺","彡","⼻","彳","⼼","心","⼽","戈","⼾","戶","⼿","手","⽀","支","⽁","攴","⽂","文","⽃","斗","⽄","斤","⽅","方","⽆","无","⽇","日","⽈","曰","⽉","月","⽊","木","⽋","欠","⽌","止","⽍","歹","⽎","殳","⽏","毋","⽐","比","⽑","毛","⽒","氏","⽓","气","⽔","水","⽕","火","⽖","爪","⽗","父","⽘","爻","⽙","爿","⽚","片","⽛","牙","⽜","牛","⽝","犬","⽞","玄","⽟","玉","⽠","瓜","⽡","瓦","⽢","甘","⽣","生","⽤","用","⽥","田","⽦","疋","⽧","疒","⽨","癶","⽩","白","⽪","皮","⽫","皿","⽬","目","⽭","矛","⽮","矢","⽯","石","⽰","示","⽱","禸","⽲","禾","⽳","穴","⽴","立","⽵","竹","⽶","米","⽷","糸","⽸","缶","⽹","网","⽺","羊","⽻","羽","⽼","老","⽽","而","⽾","耒","⽿","耳","⾀","聿","⾁","肉","⾂","臣","⾃","自","⾄","至","⾅","臼","⾆","舌","⾇","舛","⾈","舟","⾉","艮","⾊","色","⾋","艸","⾌","虍","⾍","虫","⾎","血","⾏","行","⾐","衣","⾑","襾","⾒","見","⾓","角","⾔","言","⾕","谷","⾖","豆","⾗","豕","⾘","豸","⾙","貝","⾚","赤","⾛","走","⾜","足","⾝","身","⾞","車","⾟","辛","⾠","辰","⾡","辵","⾢","邑","⾣","酉","⾤","釆","⾥","里","⾦","金","⾧","長","⾨","門","⾩","阜","⾪","隶","⾫","隹","⾬","雨","⾭","靑","⾮","非","⾯","面","⾰","革","⾱","韋","⾲","韭","⾳","音","⾴","頁","⾵","風","⾶","飛","⾷","食","⾸","首","⾹","香","⾺","馬","⾻","骨","⾼","高","⾽","髟","⾾","鬥","⾿","鬯","⿀","鬲","⿁","鬼","⿂","魚","⿃","鳥","⿄","鹵","⿅","鹿","⿆","麥","⿇","麻","⿈","黃","⿉","黍","⿊","黑","⿋","黹","⿌","黽","⿍","鼎","⿎","鼓","⿏","鼠","⿐","鼻","⿑","齊","⿒","齒","⿓","龍","⿔","龜","⿕","龠","〶","〒","〸","十","〹","卄","〺","卅","゛"," ゙","゜"," ゚","ㄱ","ᄀ","ㄲ","ᄁ","ㄳ","ᆪ","ㄴ","ᄂ","ㄵ","ᆬ","ㄶ","ᆭ","ㄷ","ᄃ","ㄸ","ᄄ","ㄹ","ᄅ","ㄺ","ᆰ","ㄻ","ᆱ","ㄼ","ᆲ","ㄽ","ᆳ","ㄾ","ᆴ","ㄿ","ᆵ","ㅀ","ᄚ","ㅁ","ᄆ","ㅂ","ᄇ","ㅃ","ᄈ","ㅄ","ᄡ","ㅅ","ᄉ","ㅆ","ᄊ","ㅇ","ᄋ","ㅈ","ᄌ","ㅉ","ᄍ","ㅊ","ᄎ","ㅋ","ᄏ","ㅌ","ᄐ","ㅍ","ᄑ","ㅎ","ᄒ","ㅏ","ᅡ","ㅐ","ᅢ","ㅑ","ᅣ","ㅒ","ᅤ","ㅓ","ᅥ","ㅔ","ᅦ","ㅕ","ᅧ","ㅖ","ᅨ","ㅗ","ᅩ","ㅘ","ᅪ","ㅙ","ᅫ","ㅚ","ᅬ","ㅛ","ᅭ","ㅜ","ᅮ","ㅝ","ᅯ","ㅞ","ᅰ","ㅟ","ᅱ","ㅠ","ᅲ","ㅡ","ᅳ","ㅢ","ᅴ","ㅣ","ᅵ","ㅤ","ᅠ","ㅥ","ᄔ","ㅦ","ᄕ","ㅧ","ᇇ","ㅨ","ᇈ","ㅩ","ᇌ","ㅪ","ᇎ","ㅫ","ᇓ","ㅬ","ᇗ","ㅭ","ᇙ","ㅮ","ᄜ","ㅯ","ᇝ","ㅰ","ᇟ","ㅱ","ᄝ","ㅲ","ᄞ","ㅳ","ᄠ","ㅴ","ᄢ","ㅵ","ᄣ","ㅶ","ᄧ","ㅷ","ᄩ","ㅸ","ᄫ","ㅹ","ᄬ","ㅺ","ᄭ","ㅻ","ᄮ","ㅼ","ᄯ","ㅽ","ᄲ","ㅾ","ᄶ","ㅿ","ᅀ","ㆀ","ᅇ","ㆁ","ᅌ","ㆂ","ᇱ","ㆃ","ᇲ","ㆄ","ᅗ","ㆅ","ᅘ","ㆆ","ᅙ","ㆇ","ᆄ","ㆈ","ᆅ","ㆉ","ᆈ","ㆊ","ᆑ","ㆋ","ᆒ","ㆌ","ᆔ","ㆍ","ᆞ","ㆎ","ᆡ","㈀","(ᄀ)","㈁","(ᄂ)","㈂","(ᄃ)","㈃","(ᄅ)","㈄","(ᄆ)","㈅","(ᄇ)","㈆","(ᄉ)","㈇","(ᄋ)","㈈","(ᄌ)","㈉","(ᄎ)","㈊","(ᄏ)","㈋","(ᄐ)","㈌","(ᄑ)","㈍","(ᄒ)","㈎","(가)","㈏","(나)","㈐","(다)","㈑","(라)","㈒","(마)","㈓","(바)","㈔","(사)","㈕","(아)","㈖","(자)","㈗","(차)","㈘","(카)","㈙","(타)","㈚","(파)","㈛","(하)","㈜","(주)","㈝","(오전)","㈞","(오후)","㈠","(一)","㈡","(二)","㈢","(三)","㈣","(四)","㈤","(五)","㈥","(六)","㈦","(七)","㈧","(八)","㈨","(九)","㈩","(十)","㈪","(月)","㈫","(火)","㈬","(水)","㈭","(木)","㈮","(金)","㈯","(土)","㈰","(日)","㈱","(株)","㈲","(有)","㈳","(社)","㈴","(名)","㈵","(特)","㈶","(財)","㈷","(祝)","㈸","(労)","㈹","(代)","㈺","(呼)","㈻","(学)","㈼","(監)","㈽","(企)","㈾","(資)","㈿","(協)","㉀","(祭)","㉁","(休)","㉂","(自)","㉃","(至)","㋀","1月","㋁","2月","㋂","3月","㋃","4月","㋄","5月","㋅","6月","㋆","7月","㋇","8月","㋈","9月","㋉","10月","㋊","11月","㋋","12月","㍘","0点","㍙","1点","㍚","2点","㍛","3点","㍜","4点","㍝","5点","㍞","6点","㍟","7点","㍠","8点","㍡","9点","㍢","10点","㍣","11点","㍤","12点","㍥","13点","㍦","14点","㍧","15点","㍨","16点","㍩","17点","㍪","18点","㍫","19点","㍬","20点","㍭","21点","㍮","22点","㍯","23点","㍰","24点","㏠","1日","㏡","2日","㏢","3日","㏣","4日","㏤","5日","㏥","6日","㏦","7日","㏧","8日","㏨","9日","㏩","10日","㏪","11日","㏫","12日","㏬","13日","㏭","14日","㏮","15日","㏯","16日","㏰","17日","㏱","18日","㏲","19日","㏳","20日","㏴","21日","㏵","22日","㏶","23日","㏷","24日","㏸","25日","㏹","26日","㏺","27日","㏻","28日","㏼","29日","㏽","30日","㏾","31日","ff","ff","fi","fi","fl","fl","ffi","ffi","ffl","ffl","ſt","ſt","st","st","ﬓ","մն","ﬔ","մե","ﬕ","մի","ﬖ","վն","ﬗ","մխ","ﭏ","אל","ﭐ","ٱ","ﭑ","ٱ","ﭒ","ٻ","ﭓ","ٻ","ﭔ","ٻ","ﭕ","ٻ","ﭖ","پ","ﭗ","پ","ﭘ","پ","ﭙ","پ","ﭚ","ڀ","ﭛ","ڀ","ﭜ","ڀ","ﭝ","ڀ","ﭞ","ٺ","ﭟ","ٺ","ﭠ","ٺ","ﭡ","ٺ","ﭢ","ٿ","ﭣ","ٿ","ﭤ","ٿ","ﭥ","ٿ","ﭦ","ٹ","ﭧ","ٹ","ﭨ","ٹ","ﭩ","ٹ","ﭪ","ڤ","ﭫ","ڤ","ﭬ","ڤ","ﭭ","ڤ","ﭮ","ڦ","ﭯ","ڦ","ﭰ","ڦ","ﭱ","ڦ","ﭲ","ڄ","ﭳ","ڄ","ﭴ","ڄ","ﭵ","ڄ","ﭶ","ڃ","ﭷ","ڃ","ﭸ","ڃ","ﭹ","ڃ","ﭺ","چ","ﭻ","چ","ﭼ","چ","ﭽ","چ","ﭾ","ڇ","ﭿ","ڇ","ﮀ","ڇ","ﮁ","ڇ","ﮂ","ڍ","ﮃ","ڍ","ﮄ","ڌ","ﮅ","ڌ","ﮆ","ڎ","ﮇ","ڎ","ﮈ","ڈ","ﮉ","ڈ","ﮊ","ژ","ﮋ","ژ","ﮌ","ڑ","ﮍ","ڑ","ﮎ","ک","ﮏ","ک","ﮐ","ک","ﮑ","ک","ﮒ","گ","ﮓ","گ","ﮔ","گ","ﮕ","گ","ﮖ","ڳ","ﮗ","ڳ","ﮘ","ڳ","ﮙ","ڳ","ﮚ","ڱ","ﮛ","ڱ","ﮜ","ڱ","ﮝ","ڱ","ﮞ","ں","ﮟ","ں","ﮠ","ڻ","ﮡ","ڻ","ﮢ","ڻ","ﮣ","ڻ","ﮤ","ۀ","ﮥ","ۀ","ﮦ","ہ","ﮧ","ہ","ﮨ","ہ","ﮩ","ہ","ﮪ","ھ","ﮫ","ھ","ﮬ","ھ","ﮭ","ھ","ﮮ","ے","ﮯ","ے","ﮰ","ۓ","ﮱ","ۓ","ﯓ","ڭ","ﯔ","ڭ","ﯕ","ڭ","ﯖ","ڭ","ﯗ","ۇ","ﯘ","ۇ","ﯙ","ۆ","ﯚ","ۆ","ﯛ","ۈ","ﯜ","ۈ","ﯝ","ٷ","ﯞ","ۋ","ﯟ","ۋ","ﯠ","ۅ","ﯡ","ۅ","ﯢ","ۉ","ﯣ","ۉ","ﯤ","ې","ﯥ","ې","ﯦ","ې","ﯧ","ې","ﯨ","ى","ﯩ","ى","ﯪ","ئا","ﯫ","ئا","ﯬ","ئە","ﯭ","ئە","ﯮ","ئو","ﯯ","ئو","ﯰ","ئۇ","ﯱ","ئۇ","ﯲ","ئۆ","ﯳ","ئۆ","ﯴ","ئۈ","ﯵ","ئۈ","ﯶ","ئې","ﯷ","ئې","ﯸ","ئې","ﯹ","ئى","ﯺ","ئى","ﯻ","ئى","ﯼ","ی","ﯽ","ی","ﯾ","ی","ﯿ","ی","ﰀ","ئج","ﰁ","ئح","ﰂ","ئم","ﰃ","ئى","ﰄ","ئي","ﰅ","بج","ﰆ","بح","ﰇ","بخ","ﰈ","بم","ﰉ","بى","ﰊ","بي","ﰋ","تج","ﰌ","تح","ﰍ","تخ","ﰎ","تم","ﰏ","تى","ﰐ","تي","ﰑ","ثج","ﰒ","ثم","ﰓ","ثى","ﰔ","ثي","ﰕ","جح","ﰖ","جم","ﰗ","حج","ﰘ","حم","ﰙ","خج","ﰚ","خح","ﰛ","خم","ﰜ","سج","ﰝ","سح","ﰞ","سخ","ﰟ","سم","ﰠ","صح","ﰡ","صم","ﰢ","ضج","ﰣ","ضح","ﰤ","ضخ","ﰥ","ضم","ﰦ","طح","ﰧ","طم","ﰨ","ظم","ﰩ","عج","ﰪ","عم","ﰫ","غج","ﰬ","غم","ﰭ","فج","ﰮ","فح","ﰯ","فخ","ﰰ","فم","ﰱ","فى","ﰲ","في","ﰳ","قح","ﰴ","قم","ﰵ","قى","ﰶ","قي","ﰷ","كا","ﰸ","كج","ﰹ","كح","ﰺ","كخ","ﰻ","كل","ﰼ","كم","ﰽ","كى","ﰾ","كي","ﰿ","لج","ﱀ","لح","ﱁ","لخ","ﱂ","لم","ﱃ","لى","ﱄ","لي","ﱅ","مج","ﱆ","مح","ﱇ","مخ","ﱈ","مم","ﱉ","مى","ﱊ","مي","ﱋ","نج","ﱌ","نح","ﱍ","نخ","ﱎ","نم","ﱏ","نى","ﱐ","ني","ﱑ","هج","ﱒ","هم","ﱓ","هى","ﱔ","هي","ﱕ","يج","ﱖ","يح","ﱗ","يخ","ﱘ","يم","ﱙ","يى","ﱚ","يي","ﱛ","ذٰ","ﱜ","رٰ","ﱝ","ىٰ","ﱞ"," ٌّ","ﱟ"," ٍّ","ﱠ"," َّ","ﱡ"," ُّ","ﱢ"," ِّ","ﱣ"," ّٰ","ﱤ","ئر","ﱥ","ئز","ﱦ","ئم","ﱧ","ئن","ﱨ","ئى","ﱩ","ئي","ﱪ","بر","ﱫ","بز","ﱬ","بم","ﱭ","بن","ﱮ","بى","ﱯ","بي","ﱰ","تر","ﱱ","تز","ﱲ","تم","ﱳ","تن","ﱴ","تى","ﱵ","تي","ﱶ","ثر","ﱷ","ثز","ﱸ","ثم","ﱹ","ثن","ﱺ","ثى","ﱻ","ثي","ﱼ","فى","ﱽ","في","ﱾ","قى","ﱿ","قي","ﲀ","كا","ﲁ","كل","ﲂ","كم","ﲃ","كى","ﲄ","كي","ﲅ","لم","ﲆ","لى","ﲇ","لي","ﲈ","ما","ﲉ","مم","ﲊ","نر","ﲋ","نز","ﲌ","نم","ﲍ","نن","ﲎ","نى","ﲏ","ني","ﲐ","ىٰ","ﲑ","ير","ﲒ","يز","ﲓ","يم","ﲔ","ين","ﲕ","يى","ﲖ","يي","ﲗ","ئج","ﲘ","ئح","ﲙ","ئخ","ﲚ","ئم","ﲛ","ئه","ﲜ","بج","ﲝ","بح","ﲞ","بخ","ﲟ","بم","ﲠ","به","ﲡ","تج","ﲢ","تح","ﲣ","تخ","ﲤ","تم","ﲥ","ته","ﲦ","ثم","ﲧ","جح","ﲨ","جم","ﲩ","حج","ﲪ","حم","ﲫ","خج","ﲬ","خم","ﲭ","سج","ﲮ","سح","ﲯ","سخ","ﲰ","سم","ﲱ","صح","ﲲ","صخ","ﲳ","صم","ﲴ","ضج","ﲵ","ضح","ﲶ","ضخ","ﲷ","ضم","ﲸ","طح","ﲹ","ظم","ﲺ","عج","ﲻ","عم","ﲼ","غج","ﲽ","غم","ﲾ","فج","ﲿ","فح","ﳀ","فخ","ﳁ","فم","ﳂ","قح","ﳃ","قم","ﳄ","كج","ﳅ","كح","ﳆ","كخ","ﳇ","كل","ﳈ","كم","ﳉ","لج","ﳊ","لح","ﳋ","لخ","ﳌ","لم","ﳍ","له","ﳎ","مج","ﳏ","مح","ﳐ","مخ","ﳑ","مم","ﳒ","نج","ﳓ","نح","ﳔ","نخ","ﳕ","نم","ﳖ","نه","ﳗ","هج","ﳘ","هم","ﳙ","هٰ","ﳚ","يج","ﳛ","يح","ﳜ","يخ","ﳝ","يم","ﳞ","يه","ﳟ","ئم","ﳠ","ئه","ﳡ","بم","ﳢ","به","ﳣ","تم","ﳤ","ته","ﳥ","ثم","ﳦ","ثه","ﳧ","سم","ﳨ","سه","ﳩ","شم","ﳪ","شه","ﳫ","كل","ﳬ","كم","ﳭ","لم","ﳮ","نم","ﳯ","نه","ﳰ","يم","ﳱ","يه","ﳲ","ـَّ","ﳳ","ـُّ","ﳴ","ـِّ","ﳵ","طى","ﳶ","طي","ﳷ","عى","ﳸ","عي","ﳹ","غى","ﳺ","غي","ﳻ","سى","ﳼ","سي","ﳽ","شى","ﳾ","شي","ﳿ","حى","ﴀ","حي","ﴁ","جى","ﴂ","جي","ﴃ","خى","ﴄ","خي","ﴅ","صى","ﴆ","صي","ﴇ","ضى","ﴈ","ضي","ﴉ","شج","ﴊ","شح","ﴋ","شخ","ﴌ","شم","ﴍ","شر","ﴎ","سر","ﴏ","صر","ﴐ","ضر","ﴑ","طى","ﴒ","طي","ﴓ","عى","ﴔ","عي","ﴕ","غى","ﴖ","غي","ﴗ","سى","ﴘ","سي","ﴙ","شى","ﴚ","شي","ﴛ","حى","ﴜ","حي","ﴝ","جى","ﴞ","جي","ﴟ","خى","ﴠ","خي","ﴡ","صى","ﴢ","صي","ﴣ","ضى","ﴤ","ضي","ﴥ","شج","ﴦ","شح","ﴧ","شخ","ﴨ","شم","ﴩ","شر","ﴪ","سر","ﴫ","صر","ﴬ","ضر","ﴭ","شج","ﴮ","شح","ﴯ","شخ","ﴰ","شم","ﴱ","سه","ﴲ","شه","ﴳ","طم","ﴴ","سج","ﴵ","سح","ﴶ","سخ","ﴷ","شج","ﴸ","شح","ﴹ","شخ","ﴺ","طم","ﴻ","ظم","ﴼ","اً","ﴽ","اً","ﵐ","تجم","ﵑ","تحج","ﵒ","تحج","ﵓ","تحم","ﵔ","تخم","ﵕ","تمج","ﵖ","تمح","ﵗ","تمخ","ﵘ","جمح","ﵙ","جمح","ﵚ","حمي","ﵛ","حمى","ﵜ","سحج","ﵝ","سجح","ﵞ","سجى","ﵟ","سمح","ﵠ","سمح","ﵡ","سمج","ﵢ","سمم","ﵣ","سمم","ﵤ","صحح","ﵥ","صحح","ﵦ","صمم","ﵧ","شحم","ﵨ","شحم","ﵩ","شجي","ﵪ","شمخ","ﵫ","شمخ","ﵬ","شمم","ﵭ","شمم","ﵮ","ضحى","ﵯ","ضخم","ﵰ","ضخم","ﵱ","طمح","ﵲ","طمح","ﵳ","طمم","ﵴ","طمي","ﵵ","عجم","ﵶ","عمم","ﵷ","عمم","ﵸ","عمى","ﵹ","غمم","ﵺ","غمي","ﵻ","غمى","ﵼ","فخم","ﵽ","فخم","ﵾ","قمح","ﵿ","قمم","ﶀ","لحم","ﶁ","لحي","ﶂ","لحى","ﶃ","لجج","ﶄ","لجج","ﶅ","لخم","ﶆ","لخم","ﶇ","لمح","ﶈ","لمح","ﶉ","محج","ﶊ","محم","ﶋ","محي","ﶌ","مجح","ﶍ","مجم","ﶎ","مخج","ﶏ","مخم","ﶒ","مجخ","ﶓ","همج","ﶔ","همم","ﶕ","نحم","ﶖ","نحى","ﶗ","نجم","ﶘ","نجم","ﶙ","نجى","ﶚ","نمي","ﶛ","نمى","ﶜ","يمم","ﶝ","يمم","ﶞ","بخي","ﶟ","تجي","ﶠ","تجى","ﶡ","تخي","ﶢ","تخى","ﶣ","تمي","ﶤ","تمى","ﶥ","جمي","ﶦ","جحى","ﶧ","جمى","ﶨ","سخى","ﶩ","صحي","ﶪ","شحي","ﶫ","ضحي","ﶬ","لجي","ﶭ","لمي","ﶮ","يحي","ﶯ","يجي","ﶰ","يمي","ﶱ","ممي","ﶲ","قمي","ﶳ","نحي","ﶴ","قمح","ﶵ","لحم","ﶶ","عمي","ﶷ","كمي","ﶸ","نجح","ﶹ","مخي","ﶺ","لجم","ﶻ","كمم","ﶼ","لجم","ﶽ","نجح","ﶾ","جحي","ﶿ","حجي","ﷀ","مجي","ﷁ","فمي","ﷂ","بحي","ﷃ","كمم","ﷄ","عجم","ﷅ","صمم","ﷆ","سخي","ﷇ","نجي","﹉","‾","﹊","‾","﹋","‾","﹌","‾","﹍","_","﹎","_","﹏","_","ﺀ","ء","ﺁ","آ","ﺂ","آ","ﺃ","أ","ﺄ","أ","ﺅ","ؤ","ﺆ","ؤ","ﺇ","إ","ﺈ","إ","ﺉ","ئ","ﺊ","ئ","ﺋ","ئ","ﺌ","ئ","ﺍ","ا","ﺎ","ا","ﺏ","ب","ﺐ","ب","ﺑ","ب","ﺒ","ب","ﺓ","ة","ﺔ","ة","ﺕ","ت","ﺖ","ت","ﺗ","ت","ﺘ","ت","ﺙ","ث","ﺚ","ث","ﺛ","ث","ﺜ","ث","ﺝ","ج","ﺞ","ج","ﺟ","ج","ﺠ","ج","ﺡ","ح","ﺢ","ح","ﺣ","ح","ﺤ","ح","ﺥ","خ","ﺦ","خ","ﺧ","خ","ﺨ","خ","ﺩ","د","ﺪ","د","ﺫ","ذ","ﺬ","ذ","ﺭ","ر","ﺮ","ر","ﺯ","ز","ﺰ","ز","ﺱ","س","ﺲ","س","ﺳ","س","ﺴ","س","ﺵ","ش","ﺶ","ش","ﺷ","ش","ﺸ","ش","ﺹ","ص","ﺺ","ص","ﺻ","ص","ﺼ","ص","ﺽ","ض","ﺾ","ض","ﺿ","ض","ﻀ","ض","ﻁ","ط","ﻂ","ط","ﻃ","ط","ﻄ","ط","ﻅ","ظ","ﻆ","ظ","ﻇ","ظ","ﻈ","ظ","ﻉ","ع","ﻊ","ع","ﻋ","ع","ﻌ","ع","ﻍ","غ","ﻎ","غ","ﻏ","غ","ﻐ","غ","ﻑ","ف","ﻒ","ف","ﻓ","ف","ﻔ","ف","ﻕ","ق","ﻖ","ق","ﻗ","ق","ﻘ","ق","ﻙ","ك","ﻚ","ك","ﻛ","ك","ﻜ","ك","ﻝ","ل","ﻞ","ل","ﻟ","ل","ﻠ","ل","ﻡ","م","ﻢ","م","ﻣ","م","ﻤ","م","ﻥ","ن","ﻦ","ن","ﻧ","ن","ﻨ","ن","ﻩ","ه","ﻪ","ه","ﻫ","ه","ﻬ","ه","ﻭ","و","ﻮ","و","ﻯ","ى","ﻰ","ى","ﻱ","ي","ﻲ","ي","ﻳ","ي","ﻴ","ي","ﻵ","لآ","ﻶ","لآ","ﻷ","لأ","ﻸ","لأ","ﻹ","لإ","ﻺ","لإ","ﻻ","لا","ﻼ","لا"]}));function l(e){const t=e.length;if(t<=1||!function(e){let t=s[13];return e>=t.begin&&e<t.end||(t=s[11],e>=t.begin&&e<t.end)}(e.charCodeAt(0)))return e;const r=[];for(let n=t-1;n>=0;n--)r.push(e[n]);return r.join("")}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=void 0;var n=r(117),a=(0,n.getLookupTableFactory)((function(e){e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Courier-Bold"]="Courier-Bold",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e.Helvetica="Helvetica",e["Helvetica-Bold"]="Helvetica-Bold",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=a;var i=(0,n.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"}));t.getNonStdFontMap=i;var o=(0,n.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}));t.getSerifFonts=o;var s=(0,n.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0}));t.getSymbolsFonts=s;var c=(0,n.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[227]=353,e[229]=382,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}));t.getGlyphMapForStandardFonts=c;var u=(0,n.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=u;var l=(0,n.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[17]=66,e[18]=67,e[24]=68,e[28]=69,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[87]=80,e[89]=81,e[90]=82,e[94]=83,e[100]=84,e[104]=85,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[127]=90,e[258]=97,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[282]=100,e[286]=101,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[383]=243,e[393]=112,e[395]=113,e[396]=114,e[400]=115,e[401]=347,e[410]=116,e[437]=117,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[460]=122,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));t.getSupplementalGlyphMapForCalibri=l},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var n=r(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(this,e),this._map=t}return o(e,[{key:"length",get:function(){return this._map.length}},{key:"forEach",value:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))}},{key:"has",value:function(e){return void 0!==this._map[e]}},{key:"get",value:function(e){return this._map[e]}},{key:"charCodeOf",value:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1}},{key:"amend",value:function(e){for(var t in e)this._map[t]=e[t]}}]),e}();t.ToUnicodeMap=s;var c=function(){function e(t,r){a(this,e),this.firstChar=t,this.lastChar=r}return o(e,[{key:"length",get:function(){return this.lastChar+1-this.firstChar}},{key:"forEach",value:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)}},{key:"has",value:function(e){return this.firstChar<=e&&e<=this.lastChar}},{key:"get",value:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}},{key:"amend",value:function(e){(0,n.unreachable)("Should not call amend()")}}]),e}();t.IdentityToUnicodeMap=c},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var n=r(143),a=r(146),i=r(4);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.properties=r;var o=new n.CFFParser(t,r,a.SEAC_ANALYSIS_ENABLED);this.cff=o.parse(),this.cff.duplicateFirstGlyph();var s=new n.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=s.compile()}catch(e){(0,i.warn)("Failed to compile font "+r.loadedName),this.data=t}this._createBuiltInEncoding()}var t,r,s;return t=e,(r=[{key:"numGlyphs",get:function(){return this.cff.charStrings.count}},{key:"getCharset",value:function(){return this.cff.charset.charset}},{key:"getGlyphMapping",value:function(){var e,t,r=this.cff,n=this.properties,i=r.charset.charset;if(n.composite){if(e=Object.create(null),r.isCIDFont)for(t=0;t<i.length;t++){var o=i[t];e[n.cMap.charCodeOf(o)]=t}else for(t=0;t<r.charStrings.count;t++)e[n.cMap.charCodeOf(t)]=t;return e}var s=r.encoding?r.encoding.encoding:null;return e=(0,a.type1FontGlyphMapping)(n,s,i)}},{key:"hasGlyphId",value:function(e){return this.cff.hasGlyphId(e)}},{key:"_createBuiltInEncoding",value:function(){var e=this.cff,t=e.charset,r=e.encoding;if(t&&r){var n=t.charset,a=r.encoding,i=[];for(var o in a){var s=a[o];if(s>=0){var c=n[s];c&&(i[o]=c)}}i.length>0&&(this.properties.builtInEncoding=i)}}}])&&o(t.prototype,r),s&&o(t,s),e}();t.CFFFont=s},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var a=r(4),i=r(143),o=r(147),s=r(145),c=r(118);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 f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function v(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function y(e,t){return e[t]<<8|e[t+1]}function b(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function w(e,t,r){var n,i,o,s=1===y(e,t+2)?v(e,t+8):v(e,t+16),c=y(e,t+s);if(4===c){y(e,t+s+2);var u=y(e,t+s+6)>>1;for(i=t+s+14,n=[],o=0;o<u;o++,i+=2)n[o]={end:y(e,i)};for(i+=2,o=0;o<u;o++,i+=2)n[o].start=y(e,i);for(o=0;o<u;o++,i+=2)n[o].idDelta=y(e,i);for(o=0;o<u;o++,i+=2){var l=y(e,i);if(0!==l){n[o].ids=[];for(var f=0,h=n[o].end-n[o].start+1;f<h;f++)n[o].ids[f]=y(e,i+l),l+=2}}return n}if(12===c){v(e,t+s+4);var d=v(e,t+s+12);for(i=t+s+16,n=[],o=0;o<d;o++)n.push({start:v(e,i),end:v(e,i+4),idDelta:v(e,i+8)-v(e,i)}),i+=12;return n}throw new a.FormatError("unsupported cmap: ".concat(c))}function k(e,t,r,n){var a=new i.CFFParser(new c.Stream(e,t,r-t),{},n).parse();return{glyphs:a.charStrings.objects,subrs:a.topDict.privateDict&&a.topDict.privateDict.subrsIndex&&a.topDict.privateDict.subrsIndex.objects,gsubrs:a.globalSubrIndex&&a.globalSubrIndex.objects,isCFFCIDFont:a.isCIDFont,fdSelect:a.fdSelect,fdArray:a.fdArray}}function S(e,t){for(var r=t.codePointAt(0),n=0,a=0,i=e.length-1;a<i;){var o=a+i+1>>1;r<e[o].start?i=o-1:a=o}return e[a].start<=r&&r<=e[a].end&&(n=e[a].idDelta+(e[a].ids?e[a].ids[r-e[a].start]:r)&65535),{charCode:r,glyphId:n}}function x(e,t,r){function n(e,r){t.push({cmd:"moveTo",args:[e,r]})}function a(e,r){t.push({cmd:"lineTo",args:[e,r]})}function i(e,r,n,a){t.push({cmd:"quadraticCurveTo",args:[e,r,n,a]})}var o,s=0,c=(e[s]<<24|e[s+1]<<16)>>16,u=0,l=0;if(s+=10,c<0)do{o=e[s]<<8|e[s+1];var f=e[s+2]<<8|e[s+3];s+=4;var h=void 0,d=void 0;1&o?(h=(e[s]<<24|e[s+1]<<16)>>16,d=(e[s+2]<<24|e[s+3]<<16)>>16,s+=4):(h=e[s++],d=e[s++]),2&o?(u=h,l=d):(u=0,l=0);var p=1,g=1,m=0,v=0;8&o?(p=g=(e[s]<<24|e[s+1]<<16)/1073741824,s+=2):64&o?(p=(e[s]<<24|e[s+1]<<16)/1073741824,g=(e[s+2]<<24|e[s+3]<<16)/1073741824,s+=4):128&o&&(p=(e[s]<<24|e[s+1]<<16)/1073741824,m=(e[s+2]<<24|e[s+3]<<16)/1073741824,v=(e[s+4]<<24|e[s+5]<<16)/1073741824,g=(e[s+6]<<24|e[s+7]<<16)/1073741824,s+=8);var y=r.glyphs[f];y&&(t.push({cmd:"save"},{cmd:"transform",args:[p,m,v,g,u,l]}),x(y,t,r),t.push({cmd:"restore"}))}while(32&o);else{var b,w,k=[];for(b=0;b<c;b++)k.push(e[s]<<8|e[s+1]),s+=2;s+=2+(e[s]<<8|e[s+1]);for(var S=k[k.length-1]+1,A=[];A.length<S;){var O=1;for(8&(o=e[s++])&&(O+=e[s++]);O-- >0;)A.push({flags:o})}for(b=0;b<S;b++){switch(18&A[b].flags){case 0:u+=(e[s]<<24|e[s+1]<<16)>>16,s+=2;break;case 2:u-=e[s++];break;case 18:u+=e[s++]}A[b].x=u}for(b=0;b<S;b++){switch(36&A[b].flags){case 0:l+=(e[s]<<24|e[s+1]<<16)>>16,s+=2;break;case 4:l-=e[s++];break;case 36:l+=e[s++]}A[b].y=l}var C=0;for(s=0;s<c;s++){var T=k[s],F=A.slice(C,T+1);if(1&F[0].flags)F.push(F[0]);else if(1&F[F.length-1].flags)F.unshift(F[F.length-1]);else{var P={flags:1,x:(F[0].x+F[F.length-1].x)/2,y:(F[0].y+F[F.length-1].y)/2};F.unshift(P),F.push(P)}for(n(F[0].x,F[0].y),b=1,w=F.length;b<w;b++)1&F[b].flags?a(F[b].x,F[b].y):1&F[b+1].flags?(i(F[b].x,F[b].y,F[b+1].x,F[b+1].y),b++):i(F[b].x,F[b].y,(F[b].x+F[b+1].x)/2,(F[b].y+F[b+1].y)/2);C=T+1}}}function A(e,t,r,n){function i(e,r){t.push({cmd:"moveTo",args:[e,r]})}function o(e,r){t.push({cmd:"lineTo",args:[e,r]})}function c(e,r,n,a,i,o){t.push({cmd:"bezierCurveTo",args:[e,r,n,a,i,o]})}var u=[],l=0,f=0,h=0;!function e(d){for(var p=0;p<d.length;){var g=!1,m=d[p++],v=void 0,y=void 0,w=void 0,k=void 0,x=void 0,O=void 0,C=void 0,T=void 0;switch(m){case 1:case 3:case 18:case 23:h+=u.length>>1,g=!0;break;case 4:f+=u.pop(),i(l,f),g=!0;break;case 5:for(;u.length>0;)l+=u.shift(),f+=u.shift(),o(l,f);break;case 6:for(;u.length>0&&(o(l+=u.shift(),f),0!==u.length);)f+=u.shift(),o(l,f);break;case 7:for(;u.length>0&&(f+=u.shift(),o(l,f),0!==u.length);)o(l+=u.shift(),f);break;case 8:for(;u.length>0;)v=l+u.shift(),w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k+u.shift(),c(v,w,y,k,l,f);break;case 10:if(C=u.pop(),T=null,r.isCFFCIDFont){var F=r.fdSelect.getFDIndex(n);if(F>=0&&F<r.fdArray.length){var P=r.fdArray[F],_=void 0;P.privateDict&&P.privateDict.subrsIndex&&(_=P.privateDict.subrsIndex.objects),_&&(T=_[C+=b(_)])}else(0,a.warn)("Invalid fd index for glyph index.")}else T=r.subrs[C+r.subrsBias];T&&e(T);break;case 11:return;case 12:switch(m=d[p++]){case 34:y=(v=l+u.shift())+u.shift(),x=f+u.shift(),l=y+u.shift(),c(v,f,y,x,l,x),y=(v=l+u.shift())+u.shift(),l=y+u.shift(),c(v,x,y,f,l,f);break;case 35:v=l+u.shift(),w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k+u.shift(),c(v,w,y,k,l,f),v=l+u.shift(),w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k+u.shift(),c(v,w,y,k,l,f),u.pop();break;case 36:c(v=l+u.shift(),x=f+u.shift(),y=v+u.shift(),O=x+u.shift(),l=y+u.shift(),O),c(v=l+u.shift(),O,y=v+u.shift(),O+u.shift(),l=y+u.shift(),f);break;case 37:var I=l,E=f;v=l+u.shift(),w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k+u.shift(),c(v,w,y,k,l,f),v=l+u.shift(),w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y,f=k,Math.abs(l-I)>Math.abs(f-E)?l+=u.shift():f+=u.shift(),c(v,w,y,k,l,f);break;default:throw new a.FormatError("unknown operator: 12 ".concat(m))}break;case 14:if(u.length>=4){var j=u.pop(),R=u.pop();f=u.pop(),l=u.pop(),t.push({cmd:"save"},{cmd:"translate",args:[l,f]});var M=S(r.cmap,String.fromCharCode(r.glyphNameMap[s.StandardEncoding[j]]));A(r.glyphs[M.glyphId],t,r,M.glyphId),t.push({cmd:"restore"}),M=S(r.cmap,String.fromCharCode(r.glyphNameMap[s.StandardEncoding[R]])),A(r.glyphs[M.glyphId],t,r,M.glyphId)}return;case 19:case 20:p+=(h+=u.length>>1)+7>>3,g=!0;break;case 21:f+=u.pop(),i(l+=u.pop(),f),g=!0;break;case 22:i(l+=u.pop(),f),g=!0;break;case 24:for(;u.length>2;)v=l+u.shift(),w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k+u.shift(),c(v,w,y,k,l,f);l+=u.shift(),f+=u.shift(),o(l,f);break;case 25:for(;u.length>6;)l+=u.shift(),f+=u.shift(),o(l,f);v=l+u.shift(),w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k+u.shift(),c(v,w,y,k,l,f);break;case 26:for(u.length%2&&(l+=u.shift());u.length>0;)v=l,w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y,f=k+u.shift(),c(v,w,y,k,l,f);break;case 27:for(u.length%2&&(f+=u.shift());u.length>0;)c(v=l+u.shift(),w=f,y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k);break;case 28:u.push((d[p]<<24|d[p+1]<<16)>>16),p+=2;break;case 29:C=u.pop()+r.gsubrsBias,(T=r.gsubrs[C])&&e(T);break;case 30:for(;u.length>0&&(v=l,w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k+(1===u.length?u.shift():0),c(v,w,y,k,l,f),0!==u.length);)v=l+u.shift(),w=f,y=v+u.shift(),k=w+u.shift(),f=k+u.shift(),c(v,w,y,k,l=y+(1===u.length?u.shift():0),f);break;case 31:for(;u.length>0&&(v=l+u.shift(),w=f,y=v+u.shift(),k=w+u.shift(),f=k+u.shift(),c(v,w,y,k,l=y+(1===u.length?u.shift():0),f),0!==u.length);)v=l,w=f+u.shift(),y=v+u.shift(),k=w+u.shift(),l=y+u.shift(),f=k+(1===u.length?u.shift():0),c(v,w,y,k,l,f);break;default:if(m<32)throw new a.FormatError("unknown operator: ".concat(m));m<247?u.push(m-139):m<251?u.push(256*(m-247)+d[p++]+108):m<255?u.push(256*-(m-251)-d[p++]-108):(u.push((d[p]<<24|d[p+1]<<16|d[p+2]<<8|d[p+3])/65536),p+=4)}g&&(u.length=0)}}(e)}var O=[],C=function(){function e(t){p(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}return m(e,[{key:"getPathJs",value:function(e){var t=S(this.cmap,e),r=t.charCode,n=t.glyphId,a=this.compiledGlyphs[n];if(!a)try{a=this.compileGlyph(this.glyphs[n],n),this.compiledGlyphs[n]=a}catch(e){throw this.compiledGlyphs[n]=O,void 0===this.compiledCharCodeToGlyphId[r]&&(this.compiledCharCodeToGlyphId[r]=n),e}return void 0===this.compiledCharCodeToGlyphId[r]&&(this.compiledCharCodeToGlyphId[r]=n),a}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return O;var r=this.fontMatrix;if(this.isCFFCIDFont){var n=this.fdSelect.getFDIndex(t);n>=0&&n<this.fdArray.length?r=this.fdArray[n].getByName("FontMatrix")||a.FONT_IDENTITY_MATRIX:(0,a.warn)("Invalid fd index for glyph index.")}var i=[{cmd:"save"},{cmd:"transform",args:r.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(e,i,t),i.push({cmd:"restore"}),i}},{key:"compileGlyphImpl",value:function(){(0,a.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function(e){var t=S(this.cmap,e),r=t.charCode,n=t.glyphId;return void 0!==this.compiledGlyphs[n]&&void 0!==this.compiledCharCodeToGlyphId[r]}}]),e}(),T=function(e){u(r,e);var t=f(r);function r(e,n,a){var i;return p(this,r),(i=t.call(this,a||[488e-6,0,0,488e-6,0,0])).glyphs=e,i.cmap=n,i}return m(r,[{key:"compileGlyphImpl",value:function(e,t){x(e,t,this)}}]),r}(C),F=function(e){u(r,e);var t=f(r);function r(e,n,a,i){var s;return p(this,r),(s=t.call(this,a||[.001,0,0,.001,0,0])).glyphs=e.glyphs,s.gsubrs=e.gsubrs||[],s.subrs=e.subrs||[],s.cmap=n,s.glyphNameMap=i||(0,o.getGlyphsUnicode)(),s.gsubrsBias=b(s.gsubrs),s.subrsBias=b(s.subrs),s.isCFFCIDFont=e.isCFFCIDFont,s.fdSelect=e.fdSelect,s.fdArray=e.fdArray,s}return m(r,[{key:"compileGlyphImpl",value:function(e,t,r){A(e,t,this,r)}}]),r}(C),P=function(){function e(){p(this,e)}return m(e,null,[{key:"create",value:function(e,t){for(var r,n,i,o,s,c,u=new Uint8Array(e.data),l=y(u,4),f=0,h=12;f<l;f++,h+=16){var d=(0,a.bytesToString)(u.subarray(h,h+4)),p=v(u,h+8),g=v(u,h+12);switch(d){case"cmap":r=w(u,p);break;case"glyf":n=u.subarray(p,p+g);break;case"loca":i=u.subarray(p,p+g);break;case"head":c=y(u,p+18),s=y(u,p+50);break;case"CFF ":o=k(u,p,p+g,t)}}if(n){var m=c?[1/c,0,0,1/c,0,0]:e.fontMatrix;return new T(function(e,t,r){var n,a;r?(n=4,a=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}):(n=2,a=function(e,t){return e[t]<<9|e[t+1]<<1});for(var i=[],o=a(t,0),s=n;s<t.length;s+=n){var c=a(t,s);i.push(e.subarray(o,c)),o=c}return i}(n,i,s),r,m)}return new F(o,r,e.fontMatrix,e.glyphNameMap)}}]),e}();t.FontRendererFactory=P},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0;var n=r(117),a=r(4);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function s(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function c(e,t,r){if(r instanceof Uint8Array)e.set(r,t);else if("string"==typeof r)for(var n=0,a=r.length;n<a;n++)e[t++]=255&r.charCodeAt(n);else for(var i=0,o=r.length;i<o;i++)e[t++]=255&r[i]}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sfnt=t,this.tables=Object.create(null)}var t,r,u;return t=e,u=[{key:"getSearchParams",value:function(e,t){for(var r=1,n=0;(r^e)>r;)r<<=1,n++;var a=r*t;return{range:a,entry:n,rangeShift:t*e-a}}}],(r=[{key:"toArray",value:function(){var t=this.sfnt,r=this.tables,i=Object.keys(r);i.sort();var u,l,f,h,d,p=i.length,g=12+16*p,m=[g];for(u=0;u<p;u++)g+=((h=r[i[u]]).length+3&-4)>>>0,m.push(g);var v=new Uint8Array(g);for(u=0;u<p;u++)h=r[i[u]],c(v,m[u],h);"true"===t&&(t=(0,a.string32)(65536)),v[0]=255&t.charCodeAt(0),v[1]=255&t.charCodeAt(1),v[2]=255&t.charCodeAt(2),v[3]=255&t.charCodeAt(3),o(v,4,p);var y=e.getSearchParams(p,16);for(o(v,6,y.range),o(v,8,y.entry),o(v,10,y.rangeShift),g=12,u=0;u<p;u++){d=i[u],v[g]=255&d.charCodeAt(0),v[g+1]=255&d.charCodeAt(1),v[g+2]=255&d.charCodeAt(2),v[g+3]=255&d.charCodeAt(3);var b=0;for(l=m[u],f=m[u+1];l<f;l+=4)b=b+(0,n.readUint32)(v,l)>>>0;s(v,g+4,b),s(v,g+8,m[u]),s(v,g+12,r[d].length),g+=16}return v}},{key:"addTable",value:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}])&&i(t.prototype,r),u&&i(t,u),e}();t.OpenTypeFileBuilder=u},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0;var n=r(143),a=r(146),i=r(117),o=r(118),s=r(155),c=r(4);function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){for(var n=e.length,a=t.length,o=n-a,s=r,c=!1;s<o;){for(var u=0;u<a&&e[s+u]===t[u];)u++;if(u>=a){for(s+=u;s<n&&(0,i.isWhiteSpace)(e[s]);)s++;c=!0;break}s++}return{found:c,length:s}}var f=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=n.length1,u=(n.length2,r.peekBytes(6)),f=128===u[0]&&1===u[1];f&&(r.skip(6),i=u[5]<<24|u[4]<<16|u[3]<<8|u[2]);var h=function(e,t){var r,n,a,i,s=[101,101,120,101,99],u=e.pos;try{n=(r=e.getBytes(t)).length}catch(e){}if(n===t&&(a=l(r,s,t-2*s.length)).found&&a.length===t)return{stream:new o.Stream(r),length:t};for((0,c.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),e.pos=u;0!==(a=l(e.peekBytes(2048),s,0)).length;)if(e.pos+=a.length,a.found){i=e.pos-u;break}return e.pos=u,i?{stream:new o.Stream(e.getBytes(i)),length:i}:((0,c.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new o.Stream(e.getBytes(t)),length:t})}(r,i);new s.Type1Parser(h.stream,!1,a.SEAC_ANALYSIS_ENABLED).extractFontHeader(n),f&&((u=r.getBytes(6))[5],u[4],u[3],u[2]);var d,p=(d=r.getBytes(),{stream:new o.Stream(d),length:d.length}),g=new s.Type1Parser(p.stream,!0,a.SEAC_ANALYSIS_ENABLED).extractFontProgram(n);for(var m in g.properties)n[m]=g.properties[m];var v=g.charstrings,y=this.getType2Charstrings(v),b=this.getType2Subrs(g.subrs);this.charstrings=v,this.data=this.wrap(t,y,this.charstrings,b,n),this.seacs=this.getSeacs(g.charstrings)}var t,r,i;return t=e,(r=[{key:"numGlyphs",get:function(){return this.charstrings.length+1}},{key:"getCharset",value:function(){for(var e=[".notdef"],t=this.charstrings,r=0;r<t.length;r++)e.push(t[r].glyphName);return e}},{key:"getGlyphMapping",value:function(e){var t=this.charstrings;if(e.composite){for(var r=Object.create(null),n=0,i=t.length;n<i;n++)r[e.cMap.charCodeOf(n)]=n+1;return r}var o,s,c=[".notdef"];for(s=0;s<t.length;s++)c.push(t[s].glyphName);var u=e.builtInEncoding;if(u)for(var l in o=Object.create(null),u)(s=c.indexOf(u[l]))>=0&&(o[l]=s);return(0,a.type1FontGlyphMapping)(e,o,c)}},{key:"hasGlyphId",value:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)}},{key:"getSeacs",value:function(e){for(var t=[],r=0,n=e.length;r<n;r++){var a=e[r];a.seac&&(t[r+1]=a.seac)}return t}},{key:"getType2Charstrings",value:function(e){for(var t=[],r=0,n=e.length;r<n;r++)t.push(e[r].charstring);return t}},{key:"getType2Subrs",value:function(e){var t=0,r=e.length;t=r<1133?107:r<33769?1131:32768;var n,a=[];for(n=0;n<t;n++)a.push([11]);for(n=0;n<r;n++)a.push(e[n]);return a}},{key:"wrap",value:function(e,t,r,a,i){var o=new n.CFF;o.header=new n.CFFHeader(1,0,4,4),o.names=[e];var s=new n.CFFTopDict;s.setByName("version",391),s.setByName("Notice",392),s.setByName("FullName",393),s.setByName("FamilyName",394),s.setByName("Weight",395),s.setByName("Encoding",null),s.setByName("FontMatrix",i.fontMatrix),s.setByName("FontBBox",i.bbox),s.setByName("charset",null),s.setByName("CharStrings",null),s.setByName("Private",null),o.topDict=s;var c=new n.CFFStrings;c.add("Version 0.11"),c.add("See original notice"),c.add(e),c.add(e),c.add("Medium"),o.strings=c,o.globalSubrIndex=new n.CFFIndex;var u,l,f=t.length,h=[".notdef"];for(u=0;u<f;u++){var d=r[u].glyphName;-1===n.CFFStandardStrings.indexOf(d)&&c.add(d),h.push(d)}o.charset=new n.CFFCharset(!1,0,h);var p=new n.CFFIndex;for(p.add([139,14]),u=0;u<f;u++)p.add(t[u]);o.charStrings=p;var g=new n.CFFPrivateDict;g.setByName("Subrs",null);var m=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(u=0,l=m.length;u<l;u++){var v=m[u];if(v in i.privateData){var y=i.privateData[v];if(Array.isArray(y))for(var b=y.length-1;b>0;b--)y[b]-=y[b-1];g.setByName(v,y)}}o.topDict.privateDict=g;var w=new n.CFFIndex;for(u=0,l=a.length;u<l;u++)w.add(a[u]);return g.subrsIndex=w,new n.CFFCompiler(o).compile()}}])&&u(t.prototype,r),i&&u(t,i),e}();t.Type1Font=f},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var n=r(145),a=r(117),i=r(118),o=r(4);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}var l,f,h,d,p,g,m,v,y,b,w,k=(l=[4],f=[5],h=[6],d=[7],p=[8],g=[12,35],m=[14],v=[21],y=[22],b=[30],w=[31],function(){function e(){s(this,e),this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return u(e,[{key:"convert",value:function(e,t,r){for(var n,a,i,s=e.length,c=!1,u=0;u<s;u++){var k=e[u];if(k<32){switch(12===k&&(k=(k<<8)+e[++u]),k){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){c=!0;break}var S=this.stack.pop();this.stack.push(0,S);break}c=this.executeCommand(1,l);break;case 5:c=this.executeCommand(2,f);break;case 6:c=this.executeCommand(1,h);break;case 7:c=this.executeCommand(1,d);break;case 8:c=this.executeCommand(6,p);break;case 10:if(this.stack.length<1){c=!0;break}if(!t[i=this.stack.pop()]){c=!0;break}c=this.convert(t[i],t,r);break;case 11:return c;case 13:if(this.stack.length<2){c=!0;break}n=this.stack.pop(),a=this.stack.pop(),this.lsb=a,this.width=n,this.stack.push(n,a),c=this.executeCommand(2,y);break;case 14:this.output.push(m[0]);break;case 21:if(this.flexing)break;c=this.executeCommand(2,v);break;case 22:if(this.flexing){this.stack.push(0);break}c=this.executeCommand(1,y);break;case 30:c=this.executeCommand(4,b);break;case 31:c=this.executeCommand(4,w);break;case 3078:if(r){var x=this.stack[this.stack.length-5];this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-x,c=this.executeCommand(0,m)}else c=this.executeCommand(4,m);break;case 3079:if(this.stack.length<4){c=!0;break}this.stack.pop(),n=this.stack.pop();var A=this.stack.pop();a=this.stack.pop(),this.lsb=a,this.width=n,this.stack.push(n,a,A),c=this.executeCommand(3,v);break;case 3084:if(this.stack.length<2){c=!0;break}var O=this.stack.pop(),C=this.stack.pop();this.stack.push(C/O);break;case 3088:if(this.stack.length<2){c=!0;break}i=this.stack.pop();var T=this.stack.pop();if(0===i&&3===T){var F=this.stack.splice(this.stack.length-17,17);this.stack.push(F[2]+F[0],F[3]+F[1],F[4],F[5],F[6],F[7],F[8],F[9],F[10],F[11],F[12],F[13],F[14]),c=this.executeCommand(13,g,!0),this.flexing=!1,this.stack.push(F[15],F[16])}else 1===i&&0===T&&(this.flexing=!0);break;case 3089:break;default:(0,o.warn)('Unknown type 1 charstring command of "'+k+'"')}if(c)break}else k<=246?k-=139:k=k<=250?256*(k-247)+e[++u]+108:k<=254?-256*(k-251)-e[++u]-108:(255&e[++u])<<24|(255&e[++u])<<16|(255&e[++u])<<8|(255&e[++u])<<0,this.stack.push(k)}return c}},{key:"executeCommand",value:function(e,t,r){var n=this.stack.length;if(e>n)return!0;for(var a=n-e,i=a;i<n;i++){var o=this.stack[i];Number.isInteger(o)?this.output.push(28,o>>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return this.output.push.apply(this.output,t),r?this.stack.splice(a,e):this.stack.length=0,!1}}]),e}()),S=function(){function e(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function t(e,t,r){if(r>=e.length)return new Uint8Array(0);var n,a,i=0|t;for(n=0;n<r;n++)i=52845*(e[n]+i)+22719&65535;var o=e.length-r,s=new Uint8Array(o);for(n=r,a=0;a<o;n++,a++){var c=e[n];s[a]=c^i>>8,i=52845*(c+i)+22719&65535}return s}function r(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}return function(){function o(r,n,c){if(s(this,o),n){var u=r.getBytes(),l=!((e(u[0])||(0,a.isWhiteSpace)(u[0]))&&e(u[1])&&e(u[2])&&e(u[3])&&e(u[4])&&e(u[5])&&e(u[6])&&e(u[7]));r=new i.Stream(l?t(u,55665,4):function(t,r,n){var a,i,o=0|r,s=t.length,c=new Uint8Array(s>>>1);for(a=0,i=0;a<s;a++){var u=t[a];if(e(u)){a++;for(var l=void 0;a<s&&!e(l=t[a]);)a++;if(a<s){var f=parseInt(String.fromCharCode(u,l),16);c[i++]=f^o>>8,o=52845*(f+o)+22719&65535}}}return c.slice(n,i)}(u,55665,4))}this.seacAnalysisEnabled=!!c,this.stream=r,this.nextChar()}return u(o,[{key:"readNumberArray",value:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}},{key:"readNumber",value:function(){var e=this.getToken();return parseFloat(e||0)}},{key:"readInt",value:function(){var e=this.getToken();return 0|parseInt(e||0,10)}},{key:"readBoolean",value:function(){return"true"===this.getToken()?1:0}},{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}if(r(t))return this.nextChar(),String.fromCharCode(t);var n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,a.isWhiteSpace)(t)&&!r(t));return n}},{key:"readCharStrings",value:function(e,r){return-1===r?e:t(e,4330,r)}},{key:"extractFontProgram",value:function(e){var t=this.stream,r=[],n=[],a=Object.create(null);a.lenIV=4;for(var i,o,s,c,u,l={subrs:[],charstrings:[],properties:{privateData:a}};null!==(i=this.getToken());)if("/"===i)switch(i=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(i=this.getToken())&&"end"!==i;)if("/"===i){var f=this.getToken();o=this.readInt(),this.getToken(),s=o>0?t.getBytes(o):new Uint8Array(0),c=l.properties.privateData.lenIV,u=this.readCharStrings(s,c),this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),n.push({glyph:f,encoded:u})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var h=this.readInt();o=this.readInt(),this.getToken(),s=o>0?t.getBytes(o):new Uint8Array(0),c=l.properties.privateData.lenIV,u=this.readCharStrings(s,c),this.nextChar(),"noaccess"===(i=this.getToken())&&this.getToken(),r[h]=u}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var d=this.readNumberArray();d.length>0&&d.length;break;case"StemSnapH":case"StemSnapV":l.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":l.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":l.properties.privateData[i]=this.readNumber();break;case"ForceBold":l.properties.privateData[i]=this.readBoolean()}for(var p=0;p<n.length;p++){var g=n[p].glyph;u=n[p].encoded;var m=new k,v=m.convert(u,r,this.seacAnalysisEnabled),y=m.output;v&&(y=[14]);var b={glyphName:g,charstring:y,width:m.width,lsb:m.lsb,seac:m.seac};if(".notdef"===g?l.charstrings.unshift(b):l.charstrings.push(b),e.builtInEncoding){var w=e.builtInEncoding.indexOf(g);w>-1&&void 0===e.widths[w]&&w>=e.firstChar&&w<=e.lastChar&&(e.widths[w]=m.width)}}return l}},{key:"extractFontHeader",value:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var a=this.getToken(),i=void 0;if(/^\\d+$/.test(a)){i=[];var o=0|parseInt(a,10);this.getToken();for(var s=0;s<o;s++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(null===(t=this.getToken()))return;if("def"===t)break;var c=this.readInt();this.getToken();var u=this.getToken();i[c]=u,this.getToken()}}else i=(0,n.getEncoding)(a);e.builtInEncoding=i;break;case"FontBBox":var l=this.readNumberArray();e.ascent=Math.max(l[3],l[1]),e.descent=Math.min(l[1],l[3]),e.ascentScaled=!0}}}]),o}()}();t.Type1Parser=S},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=function(e,t,r){var n=t.getArray("Matrix"),i=a.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),c=t.get("PaintType"),u=t.get("TilingType");if(i[2]-i[0]==0||i[3]-i[1]==0)throw new a.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(i,"]."));return["TilingPattern",r,e,n,i,o,s,c,u]},t.Pattern=void 0;var a=r(4),i=r(122),o=r(113),s=r(117);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if("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&&f(e,t)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var a=p(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&m(e.prototype,t),r&&m(e,r),e}var y=2,b=3,w=4,k=5,S=6,x=7,A=function(){function e(){g(this,e),(0,a.unreachable)("Cannot initialize Pattern.")}return v(e,null,[{key:"parseShading",value:function(e,t,r,n,i,c,u){var l=(0,o.isStream)(e)?e.dict:e,f=l.get("ShadingType");try{switch(f){case y:case b:return new T(l,t,r,n,c,u);case w:case k:case S:case x:return new _(e,t,r,n,c,u);default:throw new a.FormatError("Unsupported ShadingType: "+f)}}catch(e){if(e instanceof s.MissingDataException)throw e;return i.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.shadingPattern}),(0,a.warn)(e),new I}}}]),e}();t.Pattern=A;var O,C=function(){function e(){g(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseShading.")}return v(e,[{key:"getIR",value:function(){(0,a.unreachable)("Abstract method \`getIR\` called.")}}],[{key:"SMALL_NUMBER",get:function(){return(0,a.shadow)(this,"SMALL_NUMBER",1e-6)}}]),e}(),T=function(e){l(r,e);var t=h(r);function r(e,n,o,s,u,l){var f;g(this,r),(f=t.call(this)).matrix=n,f.coordsArr=e.getArray("Coords"),f.shadingType=e.get("ShadingType");var h=i.ColorSpace.parse({cs:e.getRaw("ColorSpace")||e.getRaw("CS"),xref:o,resources:s,pdfFunctionFactory:u,localColorSpaceCache:l}),p=e.getArray("BBox");Array.isArray(p)&&4===p.length?f.bbox=a.Util.normalizeRect(p):f.bbox=null;var m=0,v=1;if(e.has("Domain")){var y=e.getArray("Domain");m=y[0],v=y[1]}var w=!1,k=!1;if(e.has("Extend")){var S=e.getArray("Extend");w=S[0],k=S[1]}if(!(f.shadingType!==b||w&&k)){var x=c(f.coordsArr,6),A=x[0],O=x[1],T=x[2],F=x[3],P=x[4],_=x[5],I=Math.hypot(A-F,O-P);T<=_+I&&_<=T+I&&(0,a.warn)("Unsupported radial gradient.")}f.extendStart=w,f.extendEnd=k;var E=e.getRaw("Function"),j=u.createFromArray(E),R=(v-m)/10,M=f.colorStops=[];if(m>=v||R<=0)return(0,a.info)("Bad shading domain."),d(f);for(var N,B=new Float32Array(h.numComps),D=new Float32Array(1),L=0;L<=10;L++){D[0]=m+L*R,j(D,0,B,0),N=h.getRgb(B,0);var U=a.Util.makeHexColor(N[0],N[1],N[2]);M.push([L/10,U])}var q="transparent";return e.has("Background")&&(N=h.getRgb(e.get("Background"),0),q=a.Util.makeHexColor(N[0],N[1],N[2])),w||(M.unshift([0,q]),M[1][0]+=C.SMALL_NUMBER),k||(M[M.length-1][0]-=C.SMALL_NUMBER,M.push([1,q])),f.colorStops=M,f}return v(r,[{key:"getIR",value:function(){var e,t,r,n,i,o=this.coordsArr,s=this.shadingType;return s===y?(t=[o[0],o[1]],r=[o[2],o[3]],n=null,i=null,e="axial"):s===b?(t=[o[0],o[1]],r=[o[3],o[4]],n=o[2],i=o[5],e="radial"):(0,a.unreachable)("getPattern type unknown: ".concat(s)),["RadialAxial",e,this.bbox,this.colorStops,t,r,n,i,this.matrix]}}]),r}(C),F=function(){function e(t,r){g(this,e),this.stream=t,this.context=r,this.buffer=0,this.bufferLength=0;var n=r.numComps;this.tmpCompsBuf=new Float32Array(n);var a=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(a):this.tmpCompsBuf}return v(e,[{key:"hasData",get:function(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();return!(e<0||(this.buffer=e,this.bufferLength=8,0))}},{key:"readBits",value:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var n=this.stream.getByte();return this.buffer=n&(1<<r)-1,(t<<8-r|(255&n)>>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r<e;)t=t<<8|this.stream.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=t&(1<<r)-1,t>>r}},{key:"align",value:function(){this.buffer=0,this.bufferLength=0}},{key:"readFlag",value:function(){return this.readBits(this.context.bitsPerFlag)}},{key:"readCoordinate",value:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),n=this.context.decode,a=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*a*(n[1]-n[0])+n[0],r*a*(n[3]-n[2])+n[2]]}},{key:"readComponents",value:function(){for(var e=this.context.numComps,t=this.context.bitsPerComponent,r=t<32?1/((1<<t)-1):2.3283064365386963e-10,n=this.context.decode,a=this.tmpCompsBuf,i=0,o=4;i<e;i++,o+=2){var s=this.readBits(t);a[i]=s*r*(n[o+1]-n[o])+n[o]}var c=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(a,0,c,0),this.context.colorSpace.getRgb(c,0)}}]),e}(),P=(O=[],function(e){return O[e]||(O[e]=function(e){for(var t=[],r=0;r<=e;r++){var n=r/e,a=1-n;t.push(new Float32Array([a*a*a,3*n*a*a,3*n*n*a,n*n*n]))}return t}(e)),O[e]}),_=function(e){l(r,e);var t=h(r);function r(e,n,s,c,u,l){var f;if(g(this,r),f=t.call(this),!(0,o.isStream)(e))throw new a.FormatError("Mesh data is not a stream");var h=e.dict;f.matrix=n,f.shadingType=h.get("ShadingType");var d=h.getArray("BBox");Array.isArray(d)&&4===d.length?f.bbox=a.Util.normalizeRect(d):f.bbox=null;var p=i.ColorSpace.parse({cs:h.getRaw("ColorSpace")||h.getRaw("CS"),xref:s,resources:c,pdfFunctionFactory:u,localColorSpaceCache:l});f.background=h.has("Background")?p.getRgb(h.get("Background"),0):null;var m=h.getRaw("Function"),v=m?u.createFromArray(m):null;f.coords=[],f.colors=[],f.figures=[];var y={bitsPerCoordinate:h.get("BitsPerCoordinate"),bitsPerComponent:h.get("BitsPerComponent"),bitsPerFlag:h.get("BitsPerFlag"),decode:h.getArray("Decode"),colorFn:v,colorSpace:p,numComps:v?1:p.numComps},b=new F(e,y),A=!1;switch(f.shadingType){case w:f._decodeType4Shading(b);break;case k:var O=0|h.get("VerticesPerRow");if(O<2)throw new a.FormatError("Invalid VerticesPerRow");f._decodeType5Shading(b,O);break;case S:f._decodeType6Shading(b),A=!0;break;case x:f._decodeType7Shading(b),A=!0;break;default:(0,a.unreachable)("Unsupported mesh type.")}if(A){f._updateBounds();for(var C=0,T=f.figures.length;C<T;C++)f._buildFigureFromPatch(C)}return f._updateBounds(),f._packData(),f}return v(r,[{key:"_decodeType4Shading",value:function(e){for(var t=this.coords,r=this.colors,n=[],i=[],o=0;e.hasData;){var s=e.readFlag(),c=e.readCoordinate(),u=e.readComponents();if(0===o){if(!(0<=s&&s<=2))throw new a.FormatError("Unknown type4 flag");switch(s){case 0:o=3;break;case 1:i.push(i[i.length-2],i[i.length-1]),o=1;break;case 2:i.push(i[i.length-3],i[i.length-1]),o=1}n.push(s)}i.push(t.length),t.push(c),r.push(u),o--,e.align()}this.figures.push({type:"triangles",coords:new Int32Array(i),colors:new Int32Array(i)})}},{key:"_decodeType5Shading",value:function(e,t){for(var r=this.coords,n=this.colors,a=[];e.hasData;){var i=e.readCoordinate(),o=e.readComponents();a.push(r.length),r.push(i),n.push(o)}this.figures.push({type:"lattice",coords:new Int32Array(a),colors:new Int32Array(a),verticesPerRow:t})}},{key:"_decodeType6Shading",value:function(e){for(var t=this.coords,r=this.colors,n=new Int32Array(16),i=new Int32Array(4);e.hasData;){var o=e.readFlag();if(!(0<=o&&o<=3))throw new a.FormatError("Unknown type6 flag");for(var s=t.length,c=0,u=0!==o?8:12;c<u;c++)t.push(e.readCoordinate());for(var l=r.length,f=0,h=0!==o?2:4;f<h;f++)r.push(e.readComponents());var d=void 0,p=void 0,g=void 0,m=void 0;switch(o){case 0:n[12]=s+3,n[13]=s+4,n[14]=s+5,n[15]=s+6,n[8]=s+2,n[11]=s+7,n[4]=s+1,n[7]=s+8,n[0]=s,n[1]=s+11,n[2]=s+10,n[3]=s+9,i[2]=l+1,i[3]=l+2,i[0]=l,i[1]=l+3;break;case 1:d=n[12],p=n[13],g=n[14],m=n[15],n[12]=m,n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=g,n[11]=s+3,n[4]=p,n[7]=s+4,n[0]=d,n[1]=s+7,n[2]=s+6,n[3]=s+5,d=i[2],p=i[3],i[2]=p,i[3]=l,i[0]=d,i[1]=l+1;break;case 2:d=n[15],p=n[11],n[12]=n[3],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[7],n[11]=s+3,n[4]=p,n[7]=s+4,n[0]=d,n[1]=s+7,n[2]=s+6,n[3]=s+5,d=i[3],i[2]=i[1],i[3]=l,i[0]=d,i[1]=l+1;break;case 3:n[12]=n[0],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[1],n[11]=s+3,n[4]=n[2],n[7]=s+4,n[0]=n[3],n[1]=s+7,n[2]=s+6,n[3]=s+5,i[2]=i[0],i[3]=l,i[0]=i[1],i[1]=l+1}n[5]=t.length,t.push([(-4*t[n[0]][0]-t[n[15]][0]+6*(t[n[4]][0]+t[n[1]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[13]][0]+t[n[7]][0]))/9,(-4*t[n[0]][1]-t[n[15]][1]+6*(t[n[4]][1]+t[n[1]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[13]][1]+t[n[7]][1]))/9]),n[6]=t.length,t.push([(-4*t[n[3]][0]-t[n[12]][0]+6*(t[n[2]][0]+t[n[7]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[4]][0]+t[n[14]][0]))/9,(-4*t[n[3]][1]-t[n[12]][1]+6*(t[n[2]][1]+t[n[7]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[4]][1]+t[n[14]][1]))/9]),n[9]=t.length,t.push([(-4*t[n[12]][0]-t[n[3]][0]+6*(t[n[8]][0]+t[n[13]][0])-2*(t[n[0]][0]+t[n[15]][0])+3*(t[n[11]][0]+t[n[1]][0]))/9,(-4*t[n[12]][1]-t[n[3]][1]+6*(t[n[8]][1]+t[n[13]][1])-2*(t[n[0]][1]+t[n[15]][1])+3*(t[n[11]][1]+t[n[1]][1]))/9]),n[10]=t.length,t.push([(-4*t[n[15]][0]-t[n[0]][0]+6*(t[n[11]][0]+t[n[14]][0])-2*(t[n[12]][0]+t[n[3]][0])+3*(t[n[2]][0]+t[n[8]][0]))/9,(-4*t[n[15]][1]-t[n[0]][1]+6*(t[n[11]][1]+t[n[14]][1])-2*(t[n[12]][1]+t[n[3]][1])+3*(t[n[2]][1]+t[n[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(i)})}}},{key:"_decodeType7Shading",value:function(e){for(var t=this.coords,r=this.colors,n=new Int32Array(16),i=new Int32Array(4);e.hasData;){var o=e.readFlag();if(!(0<=o&&o<=3))throw new a.FormatError("Unknown type7 flag");for(var s=t.length,c=0,u=0!==o?12:16;c<u;c++)t.push(e.readCoordinate());for(var l=r.length,f=0,h=0!==o?2:4;f<h;f++)r.push(e.readComponents());var d=void 0,p=void 0,g=void 0,m=void 0;switch(o){case 0:n[12]=s+3,n[13]=s+4,n[14]=s+5,n[15]=s+6,n[8]=s+2,n[9]=s+13,n[10]=s+14,n[11]=s+7,n[4]=s+1,n[5]=s+12,n[6]=s+15,n[7]=s+8,n[0]=s,n[1]=s+11,n[2]=s+10,n[3]=s+9,i[2]=l+1,i[3]=l+2,i[0]=l,i[1]=l+3;break;case 1:d=n[12],p=n[13],g=n[14],m=n[15],n[12]=m,n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=g,n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=p,n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=d,n[1]=s+7,n[2]=s+6,n[3]=s+5,d=i[2],p=i[3],i[2]=p,i[3]=l,i[0]=d,i[1]=l+1;break;case 2:d=n[15],p=n[11],n[12]=n[3],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[7],n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=p,n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=d,n[1]=s+7,n[2]=s+6,n[3]=s+5,d=i[3],i[2]=i[1],i[3]=l,i[0]=d,i[1]=l+1;break;case 3:n[12]=n[0],n[13]=s+0,n[14]=s+1,n[15]=s+2,n[8]=n[1],n[9]=s+9,n[10]=s+10,n[11]=s+3,n[4]=n[2],n[5]=s+8,n[6]=s+11,n[7]=s+4,n[0]=n[3],n[1]=s+7,n[2]=s+6,n[3]=s+5,i[2]=i[0],i[3]=l,i[0]=i[1],i[1]=l+1}this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(i)})}}},{key:"_buildFigureFromPatch",value:function(e){var t=this.figures[e];(0,a.assert)("patch"===t.type,"Unexpected patch mesh figure");var n=this.coords,i=this.colors,o=t.coords,s=t.colors,c=Math.min(n[o[0]][0],n[o[3]][0],n[o[12]][0],n[o[15]][0]),u=Math.min(n[o[0]][1],n[o[3]][1],n[o[12]][1],n[o[15]][1]),l=Math.max(n[o[0]][0],n[o[3]][0],n[o[12]][0],n[o[15]][0]),f=Math.max(n[o[0]][1],n[o[3]][1],n[o[12]][1],n[o[15]][1]),h=Math.ceil((l-c)*r.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));h=Math.max(r.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(r.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,h));var d=Math.ceil((f-u)*r.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));d=Math.max(r.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(r.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,d));for(var p=h+1,g=new Int32Array((d+1)*p),m=new Int32Array((d+1)*p),v=0,y=new Uint8Array(3),b=new Uint8Array(3),w=i[s[0]],k=i[s[1]],S=i[s[2]],x=i[s[3]],A=P(d),O=P(h),C=0;C<=d;C++){y[0]=(w[0]*(d-C)+S[0]*C)/d|0,y[1]=(w[1]*(d-C)+S[1]*C)/d|0,y[2]=(w[2]*(d-C)+S[2]*C)/d|0,b[0]=(k[0]*(d-C)+x[0]*C)/d|0,b[1]=(k[1]*(d-C)+x[1]*C)/d|0,b[2]=(k[2]*(d-C)+x[2]*C)/d|0;for(var T=0;T<=h;T++,v++)if(0!==C&&C!==d||0!==T&&T!==h){for(var F=0,_=0,I=0,E=0;E<=3;E++)for(var j=0;j<=3;j++,I++){var R=A[C][E]*O[T][j];F+=n[o[I]][0]*R,_+=n[o[I]][1]*R}g[v]=n.length,n.push([F,_]),m[v]=i.length;var M=new Uint8Array(3);M[0]=(y[0]*(h-T)+b[0]*T)/h|0,M[1]=(y[1]*(h-T)+b[1]*T)/h|0,M[2]=(y[2]*(h-T)+b[2]*T)/h|0,i.push(M)}}g[0]=o[0],m[0]=s[0],g[h]=o[3],m[h]=s[1],g[p*d]=o[12],m[p*d]=s[2],g[p*d+h]=o[15],m[p*d+h]=s[3],this.figures[e]={type:"lattice",coords:g,colors:m,verticesPerRow:p}}},{key:"_updateBounds",value:function(){for(var e=this.coords[0][0],t=this.coords[0][1],r=e,n=t,a=1,i=this.coords.length;a<i;a++){var o=this.coords[a][0],s=this.coords[a][1];e=e>o?o:e,t=t>s?s:t,r=r<o?o:r,n=n<s?s:n}this.bounds=[e,t,r,n]}},{key:"_packData",value:function(){var e,t,r,n,a=this.coords,i=new Float32Array(2*a.length);for(e=0,r=0,t=a.length;e<t;e++){var o=a[e];i[r++]=o[0],i[r++]=o[1]}this.coords=i;var s=this.colors,c=new Uint8Array(3*s.length);for(e=0,r=0,t=s.length;e<t;e++){var u=s[e];c[r++]=u[0],c[r++]=u[1],c[r++]=u[2]}this.colors=c;var l=this.figures;for(e=0,t=l.length;e<t;e++){var f=l[e],h=f.coords,d=f.colors;for(r=0,n=h.length;r<n;r++)h[r]*=2,d[r]*=3}}},{key:"getIR",value:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}}],[{key:"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",get:function(){return(0,a.shadow)(this,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3)}},{key:"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",get:function(){return(0,a.shadow)(this,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20)}},{key:"TRIANGLE_DENSITY",get:function(){return(0,a.shadow)(this,"TRIANGLE_DENSITY",20)}}]),r}(C),I=function(e){l(r,e);var t=h(r);function r(){return g(this,r),t.apply(this,arguments)}return v(r,[{key:"getIR",value:function(){return["Dummy"]}}]),r}(C)},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=function(e){var t;if("object"!==h(e))return!1;if((0,n.isDict)(e))t=e;else{if(!(0,n.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")},t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0;var n=r(113),a=r(4),i=r(158),o=r(159);function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e){return h="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},h(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}var m=function(){function e(t){var r=t.xref,n=t.isEvalSupported,a=void 0===n||n;d(this,e),this.xref=r,this.isEvalSupported=!1!==a}return g(e,[{key:"create",value:function(e){var t=this.getCached(e);if(t)return t;var r=y.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof n.Ref?this.xref.fetch(e):e});return this._cache(e,r),r}},{key:"createFromArray",value:function(e){var t=this.getCached(e);if(t)return t;var r=y.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof n.Ref?this.xref.fetch(e):e});return this._cache(e,r),r}},{key:"getCached",value:function(e){var t;if(e instanceof n.Ref?t=e:e instanceof n.Dict?t=e.objId:(0,n.isStream)(e)&&(t=e.dict&&e.dict.objId),t){var r=this._localFunctionCache.getByRef(t);if(r)return r}return null}},{key:"_cache",value:function(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');var r;e instanceof n.Ref?r=e:e instanceof n.Dict?r=e.objId:(0,n.isStream)(e)&&(r=e.dict&&e.dict.objId),r&&this._localFunctionCache.set(null,r,t)}},{key:"_localFunctionCache",get:function(){return(0,a.shadow)(this,"_localFunctionCache",new o.LocalFunctionCache)}}]),e}();function v(e){if(!Array.isArray(e))return null;for(var t=e.length,r=0;r<t;r++)if("number"!=typeof e[r]){for(var n=new Array(t),a=0;a<t;a++)n[a]=+e[a];return n}return e}t.PDFFunctionFactory=m;var y={getSampleArray:function(e,t,r,n){var a,i,o=1;for(a=0,i=e.length;a<i;a++)o*=e[a];o*=t;var s=new Array(o),c=0,u=0,l=1/(Math.pow(2,r)-1),f=n.getBytes((o*r+7)/8),h=0;for(a=0;a<o;a++){for(;c<r;)u<<=8,u|=f[h++],c+=8;c-=r,s[a]=(u>>c)*l,u&=(1<<c)-1}return s},getIR:function(e){var t=e.xref,r=e.isEvalSupported,n=e.fn,i=n.dict;i||(i=n);var o=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript][i.get("FunctionType")];if(!o)throw new a.FormatError("Unknown type of function");return o.call(this,{xref:t,isEvalSupported:r,fn:n,dict:i})},fromIR:function(e){var t=e.xref,r=e.isEvalSupported,n=e.IR;switch(n[0]){case 0:return this.constructSampledFromIR({xref:t,isEvalSupported:r,IR:n});case 2:return this.constructInterpolatedFromIR({xref:t,isEvalSupported:r,IR:n});case 3:return this.constructStichedFromIR({xref:t,isEvalSupported:r,IR:n});default:return this.constructPostScriptFromIR({xref:t,isEvalSupported:r,IR:n})}},parse:function(e){var t=e.xref,r=e.isEvalSupported,n=e.fn,a=this.getIR({xref:t,isEvalSupported:r,fn:n});return this.fromIR({xref:t,isEvalSupported:r,IR:a})},parseArray:function(e){var t=e.xref,r=e.isEvalSupported,n=e.fnObj;if(!Array.isArray(n))return this.parse({xref:t,isEvalSupported:r,fn:n});for(var a=[],i=0,o=n.length;i<o;i++)a.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(n[i])}));return function(e,t,r,n){for(var i=0,o=a.length;i<o;i++)a[i](e,t,r,n+i)}},constructSampled:function(e){e.xref,e.isEvalSupported;var t=e.fn,r=e.dict;function n(e){for(var t=e.length,r=[],n=0,a=0;a<t;a+=2)r[n]=[e[a],e[a+1]],++n;return r}var i=v(r.getArray("Domain")),o=v(r.getArray("Range"));if(!i||!o)throw new a.FormatError("No domain or range");var s=i.length/2,c=o.length/2;i=n(i),o=n(o);var u=v(r.getArray("Size")),l=r.get("BitsPerSample"),f=r.get("Order")||1;1!==f&&(0,a.info)("No support for cubic spline interpolation: "+f);var h=v(r.getArray("Encode"));if(h)h=n(h);else{h=[];for(var d=0;d<s;++d)h.push([0,u[d]-1])}var p=v(r.getArray("Decode"));return[0,s,i,h,p=p?n(p):o,this.getSampleArray(u,c,l,t),u,c,Math.pow(2,l)-1,o]},constructSampledFromIR:function(e){e.xref,e.isEvalSupported;var t=e.IR;function r(e,t,r,n,a){return n+(a-n)/(r-t)*(e-t)}return function(e,n,a,i){var o,s,c=t[1],u=t[2],l=t[3],f=t[4],h=t[5],d=t[6],p=t[7],g=t[9],m=1<<c,v=new Float64Array(m),y=new Uint32Array(m);for(s=0;s<m;s++)v[s]=1;var b=p,w=1;for(o=0;o<c;++o){var k=u[o][0],S=u[o][1],x=r(Math.min(Math.max(e[n+o],k),S),k,S,l[o][0],l[o][1]),A=d[o],O=(x=Math.min(Math.max(x,0),A-1))<A-1?Math.floor(x):x-1,C=O+1-x,T=x-O,F=O*b,P=F+b;for(s=0;s<m;s++)s&w?(v[s]*=T,y[s]+=P):(v[s]*=C,y[s]+=F);b*=A,w<<=1}for(s=0;s<p;++s){var _=0;for(o=0;o<m;o++)_+=h[y[o]+s]*v[o];_=r(_,0,1,f[s][0],f[s][1]),a[i+s]=Math.min(Math.max(_,g[s][0]),g[s][1])}}},constructInterpolated:function(e){e.xref,e.isEvalSupported,e.fn;for(var t=e.dict,r=v(t.getArray("C0"))||[0],n=v(t.getArray("C1"))||[1],a=t.get("N"),i=r.length,o=[],s=0;s<i;++s)o.push(n[s]-r[s]);return[2,r,o,a]},constructInterpolatedFromIR:function(e){e.xref,e.isEvalSupported;var t=e.IR,r=t[1],n=t[2],a=t[3],i=n.length;return function(e,t,o,s){for(var c=1===a?e[t]:Math.pow(e[t],a),u=0;u<i;++u)o[s+u]=r[u]+c*n[u]}},constructStiched:function(e){var t=e.xref,r=e.isEvalSupported,n=(e.fn,e.dict),i=v(n.getArray("Domain"));if(!i)throw new a.FormatError("No domain");if(1!=i.length/2)throw new a.FormatError("Bad domain for stiched function");for(var o=n.get("Functions"),s=[],c=0,u=o.length;c<u;++c)s.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(o[c])}));return[3,i,v(n.getArray("Bounds")),v(n.getArray("Encode")),s]},constructStichedFromIR:function(e){e.xref,e.isEvalSupported;var t=e.IR,r=t[1],n=t[2],a=t[3],i=t[4],o=new Float32Array(1);return function(e,t,s,c){var u,l=function(e,t,r){return e>r?e=r:e<t&&(e=t),e}(e[t],r[0],r[1]),f=n.length;for(u=0;u<f&&!(l<n[u]);++u);var h=r[0];u>0&&(h=n[u-1]);var d=r[1];u<n.length&&(d=n[u]);var p=a[2*u],g=a[2*u+1];o[0]=h===d?p:p+(l-h)*(g-p)/(d-h),i[u](o,0,s,c)}},constructPostScript:function(e){e.xref,e.isEvalSupported;var t=e.fn,r=e.dict,n=v(r.getArray("Domain")),o=v(r.getArray("Range"));if(!n)throw new a.FormatError("No domain.");if(!o)throw new a.FormatError("No range.");var s=new i.PostScriptLexer(t);return[4,n,o,new i.PostScriptParser(s).parse()]},constructPostScriptFromIR:function(e){e.xref;var t=e.isEvalSupported,r=e.IR,n=r[1],i=r[2],o=r[3];if(t&&a.IsEvalSupportedCached.value){var s=(new k).compile(o,n,i);if(s)return new Function("src","srcOffset","dest","destOffset",s)}(0,a.info)("Unable to compile PS function");var c=i.length>>1,u=n.length>>1,l=new w(o),f=Object.create(null),h=8192,d=new Float32Array(u);return function(e,t,r,n){var a,o,s="",p=d;for(a=0;a<u;a++)o=e[t+a],p[a]=o,s+=o+"_";var g=f[s];if(void 0===g){var m=new Float32Array(c),v=l.execute(p),y=v.length-c;for(a=0;a<c;a++){o=v[y+a];var b=i[2*a];(o<b||o>(b=i[2*a+1]))&&(o=b),m[a]=o}h>0&&(h--,f[s]=m),r.set(m,n)}else r.set(g,n)}}},b=function(){function e(t){d(this,e),this.stack=t?Array.prototype.slice.call(t,0):[]}return g(e,[{key:"push",value:function(e){if(this.stack.length>=100)throw new Error("PostScript function stack overflow.");this.stack.push(e)}},{key:"pop",value:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function(e){if(this.stack.length+e>=100)throw new Error("PostScript function stack overflow.");for(var t=this.stack,r=t.length-e,n=e-1;n>=0;n--,r++)t.push(t[r])}},{key:"index",value:function(e){this.push(this.stack[this.stack.length-e-1])}},{key:"roll",value:function(e,t){for(var r=this.stack,n=r.length-e,a=r.length-1,i=n+(t-Math.floor(t/e)*e),o=n,s=a;o<s;o++,s--){var c=r[o];r[o]=r[s],r[s]=c}for(var u=n,l=i-1;u<l;u++,l--){var f=r[u];r[u]=r[l],r[l]=f}for(var h=i,d=a;h<d;h++,d--){var p=r[h];r[h]=r[d],r[d]=p}}}]),e}(),w=function(){function e(t){d(this,e),this.operators=t}return g(e,[{key:"execute",value:function(e){for(var t,r,n,i=new b(e),o=0,s=this.operators,c=s.length;o<c;)if("number"!=typeof(t=s[o++]))switch(t){case"jz":n=i.pop(),(r=i.pop())||(o=n);break;case"j":o=r=i.pop();break;case"abs":r=i.pop(),i.push(Math.abs(r));break;case"add":n=i.pop(),r=i.pop(),i.push(r+n);break;case"and":n=i.pop(),r=i.pop(),(0,a.isBool)(r)&&(0,a.isBool)(n)?i.push(r&&n):i.push(r&n);break;case"atan":r=i.pop(),i.push(Math.atan(r));break;case"bitshift":n=i.pop(),(r=i.pop())>0?i.push(r<<n):i.push(r>>n);break;case"ceiling":r=i.pop(),i.push(Math.ceil(r));break;case"copy":r=i.pop(),i.copy(r);break;case"cos":r=i.pop(),i.push(Math.cos(r));break;case"cvi":r=0|i.pop(),i.push(r);break;case"cvr":break;case"div":n=i.pop(),r=i.pop(),i.push(r/n);break;case"dup":i.copy(1);break;case"eq":n=i.pop(),r=i.pop(),i.push(r===n);break;case"exch":i.roll(2,1);break;case"exp":n=i.pop(),r=i.pop(),i.push(Math.pow(r,n));break;case"false":i.push(!1);break;case"floor":r=i.pop(),i.push(Math.floor(r));break;case"ge":n=i.pop(),r=i.pop(),i.push(r>=n);break;case"gt":n=i.pop(),r=i.pop(),i.push(r>n);break;case"idiv":n=i.pop(),r=i.pop(),i.push(r/n|0);break;case"index":r=i.pop(),i.index(r);break;case"le":n=i.pop(),r=i.pop(),i.push(r<=n);break;case"ln":r=i.pop(),i.push(Math.log(r));break;case"log":r=i.pop(),i.push(Math.log(r)/Math.LN10);break;case"lt":n=i.pop(),r=i.pop(),i.push(r<n);break;case"mod":n=i.pop(),r=i.pop(),i.push(r%n);break;case"mul":n=i.pop(),r=i.pop(),i.push(r*n);break;case"ne":n=i.pop(),r=i.pop(),i.push(r!==n);break;case"neg":r=i.pop(),i.push(-r);break;case"not":r=i.pop(),(0,a.isBool)(r)?i.push(!r):i.push(~r);break;case"or":n=i.pop(),r=i.pop(),(0,a.isBool)(r)&&(0,a.isBool)(n)?i.push(r||n):i.push(r|n);break;case"pop":i.pop();break;case"roll":n=i.pop(),r=i.pop(),i.roll(r,n);break;case"round":r=i.pop(),i.push(Math.round(r));break;case"sin":r=i.pop(),i.push(Math.sin(r));break;case"sqrt":r=i.pop(),i.push(Math.sqrt(r));break;case"sub":n=i.pop(),r=i.pop(),i.push(r-n);break;case"true":i.push(!0);break;case"truncate":r=(r=i.pop())<0?Math.ceil(r):Math.floor(r),i.push(r);break;case"xor":n=i.pop(),r=i.pop(),(0,a.isBool)(r)&&(0,a.isBool)(n)?i.push(r!==n):i.push(r^n);break;default:throw new a.FormatError("Unknown operator ".concat(t))}else i.push(t);return i.stack}}]),e}();t.PostScriptEvaluator=w;var k=function(){var e=function(){function e(t){d(this,e),this.type=t}return g(e,[{key:"visit",value:function(e){(0,a.unreachable)("abstract method")}}]),e}(),t=function(e){s(r,e);var t=u(r);function r(e,n,a){var i;return d(this,r),(i=t.call(this,"args")).index=e,i.min=n,i.max=a,i}return g(r,[{key:"visit",value:function(e){e.visitArgument(this)}}]),r}(e),r=function(e){s(r,e);var t=u(r);function r(e){var n;return d(this,r),(n=t.call(this,"literal")).number=e,n.min=e,n.max=e,n}return g(r,[{key:"visit",value:function(e){e.visitLiteral(this)}}]),r}(e),n=function(e){s(r,e);var t=u(r);function r(e,n,a,i,o){var s;return d(this,r),(s=t.call(this,"binary")).op=e,s.arg1=n,s.arg2=a,s.min=i,s.max=o,s}return g(r,[{key:"visit",value:function(e){e.visitBinaryOperation(this)}}]),r}(e),i=function(e){s(r,e);var t=u(r);function r(e,n){var a;return d(this,r),(a=t.call(this,"max")).arg=e,a.min=e.min,a.max=n,a}return g(r,[{key:"visit",value:function(e){e.visitMin(this)}}]),r}(e),o=function(e){s(r,e);var t=u(r);function r(e,n,a){var i;return d(this,r),(i=t.call(this,"var")).index=e,i.min=n,i.max=a,i}return g(r,[{key:"visit",value:function(e){e.visitVariable(this)}}]),r}(e),c=function(e){s(r,e);var t=u(r);function r(e,n){var a;return d(this,r),(a=t.call(this,"definition")).variable=e,a.arg=n,a}return g(r,[{key:"visit",value:function(e){e.visitVariableDefinition(this)}}]),r}(e),l=function(){function e(){d(this,e),this.parts=[]}return g(e,[{key:"visitArgument",value:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}},{key:"visitVariable",value:function(e){this.parts.push("v",e.index)}},{key:"visitLiteral",value:function(e){this.parts.push(e.number)}},{key:"visitBinaryOperation",value:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")}},{key:"visitVariableDefinition",value:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")}},{key:"visitMin",value:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")}},{key:"toString",value:function(){return this.parts.join("")}}]),e}();function f(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new r(e.number+t.number):new n("+",e,t,e.min+t.min,e.max+t.max)}function h(e,t){if("literal"===t.type){if(0===t.number)return new r(0);if(1===t.number)return e;if("literal"===e.type)return new r(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new r(0);if(1===e.number)return t}var a=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),i=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new n("*",e,t,a,i)}function p(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new r(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new n("-",e,t,e.min-t.max,e.max-t.min)}function m(e,t){return e.min>=t?new r(t):e.max<=t?e:new i(e,t)}return function(){function e(){d(this,e)}return g(e,[{key:"compile",value:function(e,n,a){for(var i,s,u,d,g,v,y,b,w=[],k=[],S=n.length>>1,x=a.length>>1,A=0,O=0;O<S;O++)w.push(new t(O,n[2*O],n[2*O+1]));for(var C=0,T=e.length;C<T;C++)if("number"!=typeof(b=e[C]))switch(b){case"add":if(w.length<2)return null;d=w.pop(),u=w.pop(),w.push(f(u,d));break;case"cvr":if(w.length<1)return null;break;case"mul":if(w.length<2)return null;d=w.pop(),u=w.pop(),w.push(h(u,d));break;case"sub":if(w.length<2)return null;d=w.pop(),u=w.pop(),w.push(p(u,d));break;case"exch":if(w.length<2)return null;g=w.pop(),v=w.pop(),w.push(g,v);break;case"pop":if(w.length<1)return null;w.pop();break;case"index":if(w.length<1)return null;if("literal"!==(u=w.pop()).type)return null;if((i=u.number)<0||!Number.isInteger(i)||w.length<i)return null;if("literal"===(g=w[w.length-i-1]).type||"var"===g.type){w.push(g);break}y=new o(A++,g.min,g.max),w[w.length-i-1]=y,w.push(y),k.push(new c(y,g));break;case"dup":if(w.length<1)return null;if("number"==typeof e[C+1]&&"gt"===e[C+2]&&e[C+3]===C+7&&"jz"===e[C+4]&&"pop"===e[C+5]&&e[C+6]===e[C+1]){u=w.pop(),w.push(m(u,e[C+1])),C+=6;break}if("literal"===(g=w[w.length-1]).type||"var"===g.type){w.push(g);break}y=new o(A++,g.min,g.max),w[w.length-1]=y,w.push(y),k.push(new c(y,g));break;case"roll":if(w.length<2)return null;if(d=w.pop(),u=w.pop(),"literal"!==d.type||"literal"!==u.type)return null;if(s=d.number,(i=u.number)<=0||!Number.isInteger(i)||!Number.isInteger(s)||w.length<i)return null;if(0==(s=(s%i+i)%i))break;Array.prototype.push.apply(w,w.splice(w.length-i,i-s));break;default:return null}else w.push(new r(b));if(w.length!==x)return null;for(var F=[],P=0,_=k;P<_.length;P++){var I=_[P],E=new l;I.visit(E),F.push(E.toString())}for(var j=0,R=w.length;j<R;j++){var M=w[j],N=new l;M.visit(N);var B=a[2*j],D=a[2*j+1],L=[N.toString()];B>M.min&&(L.unshift("Math.max(",B,", "),L.push(")")),D<M.max&&(L.unshift("Math.min(",D,", "),L.push(")")),L.unshift("dest[destOffset + ",j,"] = "),L.push(";"),F.push(L.join(""))}return F.join("\\n")}}]),e}()}();t.PostScriptCompiler=k},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var n=r(4),a=r(113),i=r(117);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var u=function(){function e(t){o(this,e),this.lexer=t,this.operators=[],this.token=null,this.prev=null}return c(e,[{key:"nextToken",value:function(){this.prev=this.token,this.token=this.lexer.getToken()}},{key:"accept",value:function(e){return this.token.type===e&&(this.nextToken(),!0)}},{key:"expect",value:function(e){if(this.accept(e))return!0;throw new n.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(e,"."))}},{key:"parse",value:function(){return this.nextToken(),this.expect(f.LBRACE),this.parseBlock(),this.expect(f.RBRACE),this.operators}},{key:"parseBlock",value:function(){for(;;)if(this.accept(f.NUMBER))this.operators.push(this.prev.value);else if(this.accept(f.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(f.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(f.RBRACE),this.accept(f.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(f.LBRACE))throw new n.FormatError("PS Function: error parsing conditional.");var t=this.operators.length;this.operators.push(null,null);var r=this.operators.length;this.parseBlock(),this.expect(f.RBRACE),this.expect(f.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=r,this.operators[e+1]="jz"}}}]),e}();t.PostScriptParser=u;var l,f={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},h=(l=Object.create(null),function(){function e(t,r){o(this,e),this.type=t,this.value=r}return c(e,null,[{key:"getOperator",value:function(t){var r=l[t];return r||(l[t]=new e(f.OPERATOR,t))}},{key:"LBRACE",get:function(){return(0,n.shadow)(this,"LBRACE",new e(f.LBRACE,"{"))}},{key:"RBRACE",get:function(){return(0,n.shadow)(this,"RBRACE",new e(f.RBRACE,"}"))}},{key:"IF",get:function(){return(0,n.shadow)(this,"IF",new e(f.IF,"IF"))}},{key:"IFELSE",get:function(){return(0,n.shadow)(this,"IFELSE",new e(f.IFELSE,"IFELSE"))}}]),e}()),d=function(){function e(t){o(this,e),this.stream=t,this.nextChar(),this.strBuf=[]}return c(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return a.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,i.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new h(f.NUMBER,this.getNumber());case 123:return this.nextChar(),h.LBRACE;case 125:return this.nextChar(),h.RBRACE}var r=this.strBuf;for(r.length=0,r[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var n=r.join("");switch(n.toLowerCase()){case"if":return h.IF;case"ifelse":return h.IFELSE;default:return h.getOperator(n)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=parseFloat(t.join(""));if(isNaN(r))throw new n.FormatError("Invalid floating point number: ".concat(r));return r}}]),e}();t.PostScriptLexer=d},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var a=r(4),i=r(113);function o(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&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var a=l(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e}var p=function(){function e(t){f(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseLocalCache."),t&&t.onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new i.RefSetCache}return d(e,[{key:"getByName",value:function(e){var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}},{key:"getByRef",value:function(e){return this._imageCache.get(e)||null}},{key:"set",value:function(e,t,r){(0,a.unreachable)("Abstract method \`set\` called.")}}]),e}(),g=function(e){o(r,e);var t=c(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(p);t.LocalImageCache=g;var m=function(e){o(r,e);var t=c(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if(!e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;return e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(p);t.LocalColorSpaceCache=m;var v=function(e){o(r,e);var t=c(r);function r(e){return f(this,r),t.call(this,{onlyRefs:!0})}return d(r,[{key:"getByName",value:function(e){(0,a.unreachable)("Should not call \`getByName\` method.")}},{key:"set",value:function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(e)||this._imageCache.put(e,t)}}]),r}(p);t.LocalFunctionCache=v;var y=function(e){o(r,e);var t=c(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(p);t.LocalGStateCache=y;var b=function(e){o(r,e);var t=c(r);function r(){return f(this,r),t.apply(this,arguments)}return d(r,[{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalTilingPatternCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,r)}this._imageMap.has(e)||this._imageMap.set(e,r)}}]),r}(p);t.LocalTilingPatternCache=b;var w=function(){function e(){f(this,e),this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}return d(e,[{key:"_byteSize",get:function(){var e=0;return this._imageCache.forEach((function(t){e+=t.byteSize})),e}},{key:"_cacheLimitReached",get:function(){return!(this._imageCache.size<e.MIN_IMAGES_TO_CACHE||this._byteSize<e.MAX_BYTE_SIZE)}},{key:"shouldCache",value:function(t,r){var n=this._refCache.get(t);return!((n?n.size+(n.has(r)?0:1):1)<e.NUM_PAGES_THRESHOLD||!this._imageCache.has(t)&&this._cacheLimitReached)}},{key:"addPageIndex",value:function(e,t){var r=this._refCache.get(e);r||(r=new Set,this._refCache.put(e,r)),r.add(t)}},{key:"addByteSize",value:function(e,t){var r=this._imageCache.get(e);r&&(r.byteSize||(r.byteSize=t))}},{key:"getData",value:function(t,r){var n=this._refCache.get(t);if(!n)return null;if(n.size<e.NUM_PAGES_THRESHOLD)return null;var a=this._imageCache.get(t);return a?(n.add(r),a):null}},{key:"setData",value:function(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(e)||(this._cacheLimitReached?(0,a.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||this._refCache.clear(),this._imageCache.clear()}}],[{key:"NUM_PAGES_THRESHOLD",get:function(){return(0,a.shadow)(this,"NUM_PAGES_THRESHOLD",2)}},{key:"MIN_IMAGES_TO_CACHE",get:function(){return(0,a.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}},{key:"MAX_BYTE_SIZE",get:function(){return(0,a.shadow)(this,"MAX_BYTE_SIZE",4e7)}}]),e}();t.GlobalImageCache=w},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e,t,r){var p=!0,g=e.length;if(0===g||r)return f(e,p,r);h.length=g,d.length=g;var m,v,y=0;for(m=0;m<g;++m){h[m]=e.charAt(m);var b=e.charCodeAt(m),w="L";b<=255?w=a[b]:1424<=b&&b<=1524?w="R":1536<=b&&b<=1791?(w=i[255&b])||(0,n.warn)("Bidi: invalid Unicode character "+b.toString(16)):1792<=b&&b<=2220&&(w="AL"),"R"!==w&&"AL"!==w&&"AN"!==w||y++,d[m]=w}if(0===y)return f(e,p=!0);-1===t&&(y/g<.3?(p=!0,t=0):(p=!1,t=1));var k=[];for(m=0;m<g;++m)k[m]=t;var S,x=o(t)?"R":"L",A=x,O=A,C=A;for(m=0;m<g;++m)"NSM"===d[m]?d[m]=C:C=d[m];for(C=A,m=0;m<g;++m)"EN"===(S=d[m])?d[m]="AL"===C?"AN":"EN":"R"!==S&&"L"!==S&&"AL"!==S||(C=S);for(m=0;m<g;++m)"AL"===(S=d[m])&&(d[m]="R");for(m=1;m<g-1;++m)"ES"===d[m]&&"EN"===d[m-1]&&"EN"===d[m+1]&&(d[m]="EN"),"CS"!==d[m]||"EN"!==d[m-1]&&"AN"!==d[m-1]||d[m+1]!==d[m-1]||(d[m]=d[m-1]);for(m=0;m<g;++m)if("EN"===d[m]){for(var T=m-1;T>=0&&"ET"===d[T];--T)d[T]="EN";for(var F=m+1;F<g&&"ET"===d[F];++F)d[F]="EN"}for(m=0;m<g;++m)"WS"!==(S=d[m])&&"ES"!==S&&"ET"!==S&&"CS"!==S||(d[m]="ON");for(C=A,m=0;m<g;++m)"EN"===(S=d[m])?d[m]="L"===C?"L":"EN":"R"!==S&&"L"!==S||(C=S);for(m=0;m<g;++m)if("ON"===d[m]){var P=c(d,m+1,"ON"),_=A;m>0&&(_=d[m-1]);var I=O;P+1<g&&(I=d[P+1]),"L"!==_&&(_="R"),"L"!==I&&(I="R"),_===I&&u(d,m,P,_),m=P-1}for(m=0;m<g;++m)"ON"===d[m]&&(d[m]=x);for(m=0;m<g;++m)S=d[m],s(k[m])?"R"===S?k[m]+=1:"AN"!==S&&"EN"!==S||(k[m]+=2):"L"!==S&&"AN"!==S&&"EN"!==S||(k[m]+=1);var E,j=-1,R=99;for(m=0,v=k.length;m<v;++m)E=k[m],j<E&&(j=E),R>E&&o(E)&&(R=E);for(E=j;E>=R;--E){var M=-1;for(m=0,v=k.length;m<v;++m)k[m]<E?M>=0&&(l(h,M,m),M=-1):M<0&&(M=m);M>=0&&l(h,M,k.length)}for(m=0,v=h.length;m<v;++m){var N=h[m];"<"!==N&&">"!==N||(h[m]="")}return f(h.join(""),p)};var n=r(4),a=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],i=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function o(e){return 0!=(1&e)}function s(e){return 0==(1&e)}function c(e,t,r){var n,a;for(n=t,a=e.length;n<a;++n)if(e[n]!==r)return n;return n}function u(e,t,r,n){for(var a=t;a<r;++a)e[a]=n}function l(e,t,r){for(var n=t,a=r-1;n<a;++n,--a){var i=e[n];e[n]=e[a],e[a]=i}}function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="ltr";return r?n="ttb":t||(n="rtl"),{str:e,dir:n}}var h=[],d=[]},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var n=r(117),a=(0,n.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Bold"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Oblique"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e.Symbol=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790})),e["Times-Roman"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Bold"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-BoldItalic"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Italic"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e.ZapfDingbats=(0,n.getLookupTableFactory)((function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918}))}));t.getMetrics=a},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var n=r(4);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=3285377520,o=4294901760,s=65535,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.h1=t?4294967295&t:i,this.h2=t?4294967295&t:i}var t,r,c;return t=e,(r=[{key:"update",value:function(e){var t,r;if((0,n.isString)(e)){t=new Uint8Array(2*e.length),r=0;for(var a=0,i=e.length;a<i;a++){var c=e.charCodeAt(a);c<=255?t[r++]=c:(t[r++]=c>>>8,t[r++]=255&c)}}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=(t=e.slice()).byteLength}for(var u=r>>2,l=r-4*u,f=new Uint32Array(t.buffer,0,u),h=0,d=0,p=this.h1,g=this.h2,m=3432918353,v=461845907,y=11601,b=13715,w=0;w<u;w++)1&w?p=5*(p=(p^=h=(h=(h=(h=f[w])*m&o|h*y&s)<<15|h>>>17)*v&o|h*b&s)<<13|p>>>19)+3864292196:g=5*(g=(g^=d=(d=(d=(d=f[w])*m&o|d*y&s)<<15|d>>>17)*v&o|d*b&s)<<13|g>>>19)+3864292196;switch(h=0,l){case 3:h^=t[4*u+2]<<16;case 2:h^=t[4*u+1]<<8;case 1:h=(h=(h=(h^=t[4*u])*m&o|h*y&s)<<15|h>>>17)*v&o|h*b&s,1&u?p^=h:g^=h}this.h1=p,this.h2=g}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e=3981806797*(e^=t>>>1)&o|36045*e&s,e=444984403*(e^=(t=4283543511*t&o|(2950163797*(t<<16|e>>>16)&o)>>>16)>>>1)&o|60499*e&s;var r=((e^=(t=3301882366*t&o|(3120437893*(t<<16|e>>>16)&o)>>>16)>>>1)>>>0).toString(16),n=(t>>>0).toString(16);return r.padStart(8,"0")+n.padStart(8,"0")}}])&&a(t.prototype,r),c&&a(t,c),e}();t.MurmurHash3_64=c},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var a=r(4);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var a=l(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e}function p(e,t,r,n,a){for(var i=e,o=0,s=t.length-1;o<s;o++){var c=t[o];i=i[c]||(i[c]=[])}i[t[t.length-1]]={checkFn:r,iterateFn:n,processFn:a}}var g=[];p(g,[a.OPS.save,a.OPS.transform,a.OPS.paintInlineImageXObject,a.OPS.restore],null,(function(e,t){var r=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintInlineImageXObject;case 3:return r[t]===a.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(n))}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,o=i-3,s=i-2,c=i-1,u=Math.min(Math.floor((t-o)/4),200);if(u<10)return t-(t-o)%4;for(var l=0,f=[],h=0,d=1,p=1,g=0;g<u;g++){var m=n[s+(g<<2)],v=n[c+(g<<2)][0];d+v.width>1e3&&(l=Math.max(l,d),p+=h+2,d=0,h=0),f.push({transform:m,x:d,y:p,w:v.width,h:v.height}),d+=v.width+2,h=Math.max(h,v.height)}for(var y=Math.max(l,d)+1,b=p+h+1,w=new Uint8ClampedArray(y*b*4),k=y<<2,S=0;S<u;S++){var x=n[c+(S<<2)][0].data,A=f[S].w<<2,O=0,C=f[S].x+f[S].y*y<<2;w.set(x.subarray(0,A),C-k);for(var T=0,F=f[S].h;T<F;T++)w.set(x.subarray(O,O+A),C),O+=A,C+=k;for(w.set(x.subarray(O-A,O),C);C>=0;)x[C-4]=x[C],x[C-3]=x[C+1],x[C-2]=x[C+2],x[C-1]=x[C+3],x[C+A]=x[C+A-4],x[C+A+1]=x[C+A-3],x[C+A+2]=x[C+A-2],x[C+A+3]=x[C+A-1],C-=k}return r.splice(o,4*u,a.OPS.paintInlineImageXObjectGroup),n.splice(o,4*u,[{width:y,height:b,kind:a.ImageKind.RGBA_32BPP,data:w},f]),o+1})),p(g,[a.OPS.save,a.OPS.transform,a.OPS.paintImageMaskXObject,a.OPS.restore],null,(function(e,t){var r=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintImageMaskXObject;case 3:return r[t]===a.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(n))}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,o=i-3,s=i-2,c=i-1,u=Math.floor((t-o)/4);if(u=function(e,t,r,n){var i,o=e+2;for(i=0;i<t;i++){var s=n[o+4*i],c=1===s.length&&s[0];if(!c||1!==c.width||1!==c.height||c.data.length&&(1!==c.data.length||0!==c.data[0]))break;r[o+4*i]=a.OPS.paintSolidColorImageMask}return t-i}(o,u,r,n),u<10)return t-(t-o)%4;var l,f,h=!1,d=n[c][0],p=n[s][0],g=n[s][1],m=n[s][2],v=n[s][3];if(g===m){h=!0,l=s+4;for(var y=c+4,b=1;b<u;b++,l+=4,y+=4)if(f=n[l],n[y][0]!==d||f[0]!==p||f[1]!==g||f[2]!==m||f[3]!==v){b<10?h=!1:u=b;break}}if(h){u=Math.min(u,1e3);var w=new Float32Array(2*u);l=s;for(var k=0;k<u;k++,l+=4)f=n[l],w[k<<1]=f[4],w[1+(k<<1)]=f[5];r.splice(o,4*u,a.OPS.paintImageMaskXObjectRepeat),n.splice(o,4*u,[d,p,g,m,v,w])}else{u=Math.min(u,100);for(var S=[],x=0;x<u;x++){f=n[s+(x<<2)];var A=n[c+(x<<2)][0];S.push({data:A.data,width:A.width,height:A.height,transform:f})}r.splice(o,4*u,a.OPS.paintImageMaskXObjectGroup),n.splice(o,4*u,[S])}return o+1})),p(g,[a.OPS.save,a.OPS.transform,a.OPS.paintImageXObject,a.OPS.restore],(function(e){var t=e.argsArray,r=e.iCurr-2;return 0===t[r][1]&&0===t[r][2]}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return r[t]===a.OPS.save;case 1:if(r[t]!==a.OPS.transform)return!1;var o=e.iCurr-2,s=n[o][0],c=n[o][3];return n[t][0]===s&&0===n[t][1]&&0===n[t][2]&&n[t][3]===c;case 2:if(r[t]!==a.OPS.paintImageXObject)return!1;var u=n[e.iCurr-1][0];return n[t][0]===u;case 3:return r[t]===a.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(i))}),(function(e,t){var r=e.fnArray,n=e.argsArray,i=e.iCurr,o=i-3,s=i-2,c=n[i-1][0],u=n[s][0],l=n[s][3],f=Math.min(Math.floor((t-o)/4),1e3);if(f<3)return t-(t-o)%4;for(var h=new Float32Array(2*f),d=s,p=0;p<f;p++,d+=4){var g=n[d];h[p<<1]=g[4],h[1+(p<<1)]=g[5]}var m=[c,u,l,h];return r.splice(o,4*f,a.OPS.paintImageXObjectRepeat),n.splice(o,4*f,m),o+1})),p(g,[a.OPS.beginText,a.OPS.setFont,a.OPS.setTextMatrix,a.OPS.showText,a.OPS.endText],null,(function(e,t){var r=e.fnArray,n=e.argsArray,i=(t-(e.iCurr-4))%5;switch(i){case 0:return r[t]===a.OPS.beginText;case 1:return r[t]===a.OPS.setFont;case 2:return r[t]===a.OPS.setTextMatrix;case 3:if(r[t]!==a.OPS.showText)return!1;var o=e.iCurr-3,s=n[o][0],c=n[o][1];return n[t][0]===s&&n[t][1]===c;case 4:return r[t]===a.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(i))}),(function(e,t){var r=e.fnArray,n=e.argsArray,a=e.iCurr,i=a-4,o=a-3,s=a-2,c=a-1,u=a,l=n[o][0],f=n[o][1],h=Math.min(Math.floor((t-i)/5),1e3);if(h<3)return t-(t-i)%5;var d=i;i>=4&&r[i-4]===r[o]&&r[i-3]===r[s]&&r[i-2]===r[c]&&r[i-1]===r[u]&&n[i-4][0]===l&&n[i-4][1]===f&&(h++,d-=5);for(var p=d+4,g=1;g<h;g++)r.splice(p,3),n.splice(p,3),p+=2;return p+1}));var m=function(){function e(t){f(this,e),this.queue=t}return d(e,[{key:"_optimize",value:function(){}},{key:"push",value:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}},{key:"flush",value:function(){}},{key:"reset",value:function(){}}]),e}(),v=function(e){!function(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&&s(e,t)}(r,e);var t=c(r);function r(e){var n;return f(this,r),(n=t.call(this,e)).state=null,n.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},n.match=null,n.lastProcessed=0,n}return d(r,[{key:"_optimize",value:function(){var e=this.queue.fnArray,t=this.lastProcessed,r=e.length,n=this.state,a=this.match;if(n||a||t+1!==r||g[e[t]]){for(var i=this.context;t<r;){if(a){if((0,a.iterateFn)(i,t)){t++;continue}if(t=(0,a.processFn)(i,t+1),a=null,n=null,t>=(r=e.length))break}(n=(n||g)[e[t]])&&!Array.isArray(n)?(i.iCurr=t,t++,!n.checkFn||(0,n.checkFn)(i)?(a=n,n=null):n=null):t++}this.state=n,this.match=a,this.lastProcessed=t}else this.lastProcessed=r}},{key:"flush",value:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}},{key:"reset",value:function(){this.state=null,this.match=null,this.lastProcessed=0}}]),r}(m),y=function(){function e(t,r){f(this,e),this._streamSink=r,this.fnArray=[],this.argsArray=[],this.optimizer=r&&"oplist"!==t?new v(this):new m(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=r?null:Promise.resolve()}return d(e,[{key:"length",get:function(){return this.argsArray.length}},{key:"ready",get:function(){return this._resolved||this._streamSink.ready}},{key:"totalLength",get:function(){return this._totalLength+this.length}},{key:"addOp",value:function(t,r){this.optimizer.push(t,r),this.weight++,this._streamSink&&(this.weight>=e.CHUNK_SIZE||this.weight>=e.CHUNK_SIZE_ABOUT&&(t===a.OPS.restore||t===a.OPS.endText))&&this.flush()}},{key:"addDependency",value:function(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(a.OPS.dependency,[e]))}},{key:"addDependencies",value:function(e){var t,r=i(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.addDependency(n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"addOpList",value:function(t){if(t instanceof e){var r,n=i(t.dependencies);try{for(n.s();!(r=n.n()).done;){var o=r.value;this.dependencies.add(o)}}catch(e){n.e(e)}finally{n.f()}for(var s=0,c=t.length;s<c;s++)this.addOp(t.fnArray[s],t.argsArray[s])}else(0,a.warn)('addOpList - ignoring invalid "opList" parameter.')}},{key:"getIR",value:function(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}},{key:"_transfers",get:function(){for(var e=[],t=this.fnArray,r=this.argsArray,n=this.length,i=0;i<n;i++)switch(t[i]){case a.OPS.paintInlineImageXObject:case a.OPS.paintInlineImageXObjectGroup:case a.OPS.paintImageMaskXObject:var o=r[i][0];o.cached||e.push(o.data.buffer)}return e}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.optimizer.flush();var t=this.length;this._totalLength+=t,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,length:t},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}],[{key:"CHUNK_SIZE",get:function(){return(0,a.shadow)(this,"CHUNK_SIZE",1e3)}},{key:"CHUNK_SIZE_ABOUT",get:function(){return(0,a.shadow)(this,"CHUNK_SIZE_ABOUT",e.CHUNK_SIZE-5)}}]),e}();t.OperatorList=y},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(113),s=r(122),c=r(127),u=r(135),l=r(138);function f(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r,n){return(e=t+e*r)<0?e=0:e>n&&(e=n),e}function p(e,t,r,n,a,i){var o,s=a*i;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);var c,u,l,f,h=r/a,d=n/i,p=0,g=new Uint16Array(a),m=r;for(c=0;c<a;c++)g[c]=Math.floor(c*h);for(c=0;c<i;c++)for(l=Math.floor(c*d)*m,u=0;u<a;u++)f=l+g[u],o[p++]=e[f];return o}var g=function(){function e(t){var r=t.xref,n=t.res,a=t.image,c=t.isInline,u=void 0!==c&&c,f=t.smask,h=void 0===f?null:f,d=t.mask,p=void 0===d?null:d,g=t.isMask,m=void 0!==g&&g,v=t.pdfFunctionFactory,y=t.localColorSpaceCache;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image=a;var b=a.dict,w=b.get("Filter");if((0,o.isName)(w))switch(w.name){case"JPXDecode":var k=new l.JpxImage;k.parseImageProperties(a.stream),a.stream.reset(),a.width=k.width,a.height=k.height,a.bitsPerComponent=k.bitsPerComponent,a.numComps=k.componentsCount;break;case"JBIG2Decode":a.bitsPerComponent=1,a.numComps=1}var S=b.get("Width","W"),x=b.get("Height","H");if(Number.isInteger(a.width)&&a.width>0&&Number.isInteger(a.height)&&a.height>0&&(a.width!==S||a.height!==x)&&((0,i.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),S=a.width,x=a.height),S<1||x<1)throw new i.FormatError("Invalid image width: ".concat(S," or height: ").concat(x));this.width=S,this.height=x,this.interpolate=b.get("Interpolate","I")||!1,this.imageMask=b.get("ImageMask","IM")||!1,this.matte=b.get("Matte")||!1;var A=a.bitsPerComponent;if(!A&&!(A=b.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new i.FormatError("Bits per component missing in image: ".concat(this.imageMask));A=1}if(this.bpc=A,!this.imageMask){var O=b.getRaw("ColorSpace")||b.getRaw("CS");if(!O)switch((0,i.info)("JPX images (which do not require color spaces)"),a.numComps){case 1:O=o.Name.get("DeviceGray");break;case 3:O=o.Name.get("DeviceRGB");break;case 4:O=o.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(a.numComps," ")+"color components not supported.")}this.colorSpace=s.ColorSpace.parse({cs:O,xref:r,resources:u?n:null,pdfFunctionFactory:v,localColorSpaceCache:y}),this.numComps=this.colorSpace.numComps}if(this.decode=b.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,A)||m&&!s.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var C=(1<<A)-1;this.decodeCoefficients=[],this.decodeAddends=[];for(var T=this.colorSpace&&"Indexed"===this.colorSpace.name,F=0,P=0;F<this.decode.length;F+=2,++P){var _=this.decode[F],I=this.decode[F+1];this.decodeCoefficients[P]=T?(I-_)/C:I-_,this.decodeAddends[P]=T?_:C*_}}h?this.smask=new e({xref:r,res:n,image:h,isInline:u,pdfFunctionFactory:v,localColorSpaceCache:y}):p&&((0,o.isStream)(p)?p.dict.get("ImageMask","IM")?this.mask=new e({xref:r,res:n,image:p,isInline:u,isMask:!0,pdfFunctionFactory:v,localColorSpaceCache:y}):(0,i.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=p)}var t,r,n,g,m;return t=e,r=[{key:"drawWidth",get:function(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)}},{key:"drawHeight",get:function(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)}},{key:"decodeBuffer",value:function(e){var t,r,n=this.bpc,a=this.numComps,i=this.decodeAddends,o=this.decodeCoefficients,s=(1<<n)-1;if(1!==n){var c=0;for(t=0,r=this.width*this.height;t<r;t++)for(var u=0;u<a;u++)e[c]=d(e[c],i[u],o[u],s),c++}else for(t=0,r=e.length;t<r;t++)e[t]=+!e[t]}},{key:"getComponents",value:function(e){var t=this.bpc;if(8===t)return e;var r,n=this.width,a=this.height,i=this.numComps,o=n*a*i,s=0;r=t<=8?new Uint8Array(o):t<=16?new Uint16Array(o):new Uint32Array(o);var c,u,l=n*i,f=(1<<t)-1,h=0;if(1===t)for(var d,p,g,m=0;m<a;m++){for(p=h+(-8&l),g=h+l;h<p;)u=e[s++],r[h]=u>>7&1,r[h+1]=u>>6&1,r[h+2]=u>>5&1,r[h+3]=u>>4&1,r[h+4]=u>>3&1,r[h+5]=u>>2&1,r[h+6]=u>>1&1,r[h+7]=1&u,h+=8;if(h<g)for(u=e[s++],d=128;h<g;)r[h++]=+!!(u&d),d>>=1}else{var v=0;for(u=0,h=0,c=o;h<c;++h){for(h%l==0&&(u=0,v=0);v<t;)u=u<<8|e[s++],v+=8;var y=v-t,b=u>>y;b<0?b=0:b>f&&(b=f),r[h]=b,u&=(1<<y)-1,v=y}}return r}},{key:"fillOpacity",value:function(t,r,n,a,o){var s,c,u,l,f,h,d=this.smask,g=this.mask;if(d)c=d.width,u=d.height,s=new Uint8ClampedArray(c*u),d.fillGrayBuffer(s),c===r&&u===n||(s=p(s,d.bpc,c,u,r,n));else if(g)if(g instanceof e){for(c=g.width,u=g.height,s=new Uint8ClampedArray(c*u),g.numComps=1,g.fillGrayBuffer(s),l=0,f=c*u;l<f;++l)s[l]=255-s[l];c===r&&u===n||(s=p(s,g.bpc,c,u,r,n))}else{if(!Array.isArray(g))throw new i.FormatError("Unknown mask format.");s=new Uint8ClampedArray(r*n);var m=this.numComps;for(l=0,f=r*n;l<f;++l){var v=0,y=l*m;for(h=0;h<m;++h){var b=o[y+h],w=2*h;if(b<g[w]||b>g[w+1]){v=255;break}}s[l]=v}}if(s)for(l=0,h=3,f=r*a;l<f;++l,h+=4)t[h]=s[l];else for(l=0,h=3,f=r*a;l<f;++l,h+=4)t[h]=255}},{key:"undoPreblend",value:function(e,t,r){var n=this.smask&&this.smask.matte;if(n)for(var a=this.colorSpace.getRgb(n,0),i=a[0],o=a[1],s=a[2],c=t*r*4,u=0;u<c;u+=4){var l=e[u+3];if(0!==l){var f=255/l;e[u]=(e[u]-i)*f+i,e[u+1]=(e[u+1]-o)*f+o,e[u+2]=(e[u+2]-s)*f+s}else e[u]=255,e[u+1]=255,e[u+2]=255}}},{key:"createImageData",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.drawWidth,n=this.drawHeight,a={width:r,height:n,kind:0,data:null},o=this.numComps,s=this.width,l=this.height,f=this.bpc,h=s*o*f+7>>3;if(!t){var d;if("DeviceGray"===this.colorSpace.name&&1===f?d=i.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==f||this.needsDecode||(d=i.ImageKind.RGB_24BPP),d&&!this.smask&&!this.mask&&r===s&&n===l){if(a.kind=d,e=this.getImageBytes(l*h),this.image instanceof c.DecodeStream)a.data=e;else{var p=new Uint8ClampedArray(e.length);p.set(e),a.data=p}if(this.needsDecode){(0,i.assert)(d===i.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var g=a.data,m=0,v=g.length;m<v;m++)g[m]^=255}return a}if(this.image instanceof u.JpegStream&&!this.smask&&!this.mask){var y=l*h;switch(this.colorSpace.name){case"DeviceGray":y*=3;case"DeviceRGB":case"DeviceCMYK":return a.kind=i.ImageKind.RGB_24BPP,a.data=this.getImageBytes(y,r,n,!0),a}}}var b,w,k=0|(e=this.getImageBytes(l*h)).length/h*n/l,S=this.getComponents(e);return t||this.smask||this.mask?(a.kind=i.ImageKind.RGBA_32BPP,a.data=new Uint8ClampedArray(r*n*4),b=1,w=!0,this.fillOpacity(a.data,r,n,k,S)):(a.kind=i.ImageKind.RGB_24BPP,a.data=new Uint8ClampedArray(r*n*3),b=0,w=!1),this.needsDecode&&this.decodeBuffer(S),this.colorSpace.fillRgb(a.data,s,l,r,n,k,f,S,b),w&&this.undoPreblend(a.data,r,k),a}},{key:"fillGrayBuffer",value:function(e){var t=this.numComps;if(1!==t)throw new i.FormatError("Reading gray scale from a color image: ".concat(t));var r,n,a=this.width,o=this.height,s=this.bpc,c=a*t*s+7>>3,u=this.getImageBytes(o*c),l=this.getComponents(u);if(1!==s){this.needsDecode&&this.decodeBuffer(l),n=a*o;var f=255/((1<<s)-1);for(r=0;r<n;++r)e[r]=f*l[r]}else if(n=a*o,this.needsDecode)for(r=0;r<n;++r)e[r]=l[r]-1&255;else for(r=0;r<n;++r)e[r]=255&-l[r]}},{key:"getImageBytes",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=r||this.height,this.image.forceRGB=!!n,this.image.getBytes(e,!0)}}],n=[{key:"buildImage",value:(g=a.default.mark((function t(r){var n,s,c,u,l,f,h,d,p,g,m,v;return a.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.xref,s=r.res,c=r.image,u=r.isInline,l=void 0!==u&&u,f=r.pdfFunctionFactory,h=r.localColorSpaceCache,d=c,p=null,g=null,m=c.dict.get("SMask"),v=c.dict.get("Mask"),m?p=m:v&&((0,o.isStream)(v)||Array.isArray(v)?g=v:(0,i.warn)("Unsupported mask format.")),t.abrupt("return",new e({xref:n,res:s,image:d,isInline:l,smask:p,mask:g,pdfFunctionFactory:f,localColorSpaceCache:h}));case 8:case"end":return t.stop()}}),t)})),m=function(){var e=this,t=arguments;return new Promise((function(r,n){var a=g.apply(e,t);function i(e){f(a,r,n,i,o,"next",e)}function o(e){f(a,r,n,i,o,"throw",e)}i(void 0)}))},function(e){return m.apply(this,arguments)})},{key:"createMask",value:function(e){var t,r,n=e.imgArray,a=e.width,i=e.height,o=e.imageIsFromDecodeStream,s=e.inverseDecode,c=(a+7>>3)*i,u=n.byteLength;if(!o||s&&c!==u)if(s)for((t=new Uint8ClampedArray(c)).set(n),r=u;r<c;r++)t[r]=255;else(t=new Uint8ClampedArray(u)).set(n);else t=n;if(s)for(r=0;r<u;r++)t[r]^=255;return{data:t,width:a,height:i}}}],r&&h(t.prototype,r),n&&h(t,n),e}();t.PDFImage=g},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0;var n=r(113),a=r(117),i=r(4),o=r(166),s=r(122),c=r(167),u=r(159),l=r(168),f=r(170);function h(e){return h="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},h(e)}function d(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){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 p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||m(e,t)||function(){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 g(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=m(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e){return e instanceof n.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}var w=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pdfManager=t,this.xref=r,this._catDict=r.getCatalogObj(),!(0,n.isDict)(this._catDict))throw new i.FormatError("Catalog object is not a dictionary.");this.fontCache=new n.RefSetCache,this.builtInCMapCache=new Map,this.globalImageCache=new u.GlobalImageCache,this.pageKidsCountCache=new n.RefSetCache,this.pageIndexCache=new n.RefSetCache,this.nonBlendModesSet=new n.RefSet}var t,r,m;return t=e,r=[{key:"version",get:function(){var e=this._catDict.get("Version");return(0,n.isName)(e)?(0,i.shadow)(this,"version",e.name):(0,i.shadow)(this,"version",null)}},{key:"collection",get:function(){var e=null;try{var t=this._catDict.get("Collection");(0,n.isDict)(t)&&t.size>0&&(e=t)}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,i.shadow)(this,"collection",e)}},{key:"acroForm",get:function(){var e=null;try{var t=this._catDict.get("AcroForm");(0,n.isDict)(t)&&t.size>0&&(e=t)}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,i.shadow)(this,"acroForm",e)}},{key:"metadata",get:function(){var e=this._catDict.getRaw("Metadata");if(!(0,n.isRef)(e))return(0,i.shadow)(this,"metadata",null);var t=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),r=this.xref.fetch(e,t),o=null;if((0,n.isStream)(r)&&(0,n.isDict)(r.dict)){var s=r.dict.get("Type"),c=r.dict.get("Subtype");if((0,n.isName)(s,"Metadata")&&(0,n.isName)(c,"XML"))try{var u=(0,i.stringToUTF8String)(r.getString());u&&(o=new l.MetadataParser(u).serializable)}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.info)("Skipping invalid metadata.")}}return(0,i.shadow)(this,"metadata",o)}},{key:"markInfo",get:function(){var e=null;try{e=this._readMarkInfo()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read mark info.")}return(0,i.shadow)(this,"markInfo",e)}},{key:"_readMarkInfo",value:function(){var e=this._catDict.get("MarkInfo");if(!(0,n.isDict)(e))return null;var t=Object.assign(Object.create(null),{Marked:!1,UserProperties:!1,Suspects:!1});for(var r in t)if(e.has(r)){var a=e.get(r);(0,i.isBool)(a)&&(t[r]=a)}return t}},{key:"structTreeRoot",get:function(){var e=null;try{e=this._readStructTreeRoot()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable read to structTreeRoot info.")}return(0,i.shadow)(this,"structTreeRoot",e)}},{key:"_readStructTreeRoot",value:function(){var e=this._catDict.get("StructTreeRoot");if(!(0,n.isDict)(e))return null;var t=new f.StructTreeRoot(e);return t.init(),t}},{key:"toplevelPagesDict",get:function(){var e=this._catDict.get("Pages");if(!(0,n.isDict)(e))throw new i.FormatError("Invalid top-level pages dictionary.");return(0,i.shadow)(this,"toplevelPagesDict",e)}},{key:"documentOutline",get:function(){var e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read document outline.")}return(0,i.shadow)(this,"documentOutline",e)}},{key:"_readDocumentOutline",value:function(){var t=this._catDict.get("Outlines");if(!(0,n.isDict)(t))return null;if(t=t.getRaw("First"),!(0,n.isRef)(t))return null;var r={items:[]},a=[{obj:t,parent:r}],o=new n.RefSet;o.put(t);for(var c=this.xref,u=new Uint8ClampedArray(3);a.length>0;){var l=a.shift(),f=c.fetchIfRef(l.obj);if(null!==f){if(!f.has("Title"))throw new i.FormatError("Invalid outline item encountered.");var h={url:null,dest:null};e.parseDestDictionary({destDict:f,resultObj:h,docBaseUrl:this.pdfManager.docBaseUrl});var d=f.get("Title"),p=f.get("F")||0,g=f.getArray("C"),m=f.get("Count"),v=u;!Array.isArray(g)||3!==g.length||0===g[0]&&0===g[1]&&0===g[2]||(v=s.ColorSpace.singletons.rgb.getRgb(g,0));var y={dest:h.dest,url:h.url,unsafeUrl:h.unsafeUrl,newWindow:h.newWindow,title:(0,i.stringToPDFString)(d),color:v,count:Number.isInteger(m)?m:void 0,bold:!!(2&p),italic:!!(1&p),items:[]};l.parent.items.push(y),t=f.getRaw("First"),(0,n.isRef)(t)&&!o.has(t)&&(a.push({obj:t,parent:y}),o.put(t)),t=f.getRaw("Next"),(0,n.isRef)(t)&&!o.has(t)&&(a.push({obj:t,parent:l.parent}),o.put(t))}}return r.items.length>0?r.items:null}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read permissions.")}return(0,i.shadow)(this,"permissions",e)}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(0,n.isDict)(e))return null;var t=e.get("P");if(!(0,i.isNum)(t))return null;t+=Math.pow(2,32);var r=[];for(var a in i.PermissionFlag){var o=i.PermissionFlag[a];t&o&&r.push(o)}return r}},{key:"optionalContentConfig",get:function(){var e=null;try{var t=this._catDict.get("OCProperties");if(!t)return(0,i.shadow)(this,"optionalContentConfig",null);var r=t.get("D");if(!r)return(0,i.shadow)(this,"optionalContentConfig",null);var o=t.get("OCGs");if(!Array.isArray(o))return(0,i.shadow)(this,"optionalContentConfig",null);var s,c=[],u=[],l=g(o);try{for(l.s();!(s=l.n()).done;){var f=s.value;if((0,n.isRef)(f)){u.push(f);var h=this.xref.fetchIfRef(f);c.push({id:f.toString(),name:(0,i.isString)(h.get("Name"))?(0,i.stringToPDFString)(h.get("Name")):null,intent:(0,i.isString)(h.get("Intent"))?(0,i.stringToPDFString)(h.get("Intent")):null})}}}catch(e){l.e(e)}finally{l.f()}(e=this._readOptionalContentConfig(r,u)).groups=c}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read optional content config: ".concat(e))}return(0,i.shadow)(this,"optionalContentConfig",e)}},{key:"_readOptionalContentConfig",value:function(e,t){function r(e){var r=[];if(Array.isArray(e)){var a,i=g(e);try{for(i.s();!(a=i.n()).done;){var o=a.value;(0,n.isRef)(o)&&t.includes(o)&&r.push(o.toString())}}catch(e){i.e(e)}finally{i.f()}}return r}function a(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(e))return null;var a,i=[],s=g(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;if((0,n.isRef)(u)&&t.includes(u))c.put(u),i.push(u.toString());else{var l=o(u,r);l&&i.push(l)}}}catch(e){s.e(e)}finally{s.f()}if(r>0)return i;var f,h=[],d=g(t);try{for(d.s();!(f=d.n()).done;){var p=f.value;c.has(p)||h.push(p.toString())}}catch(e){d.e(e)}finally{d.f()}return h.length&&i.push({name:null,order:h}),i}function o(e,t){if(++t>u)return(0,i.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;var r=s.fetchIfRef(e);if(!Array.isArray(r))return null;var n=s.fetchIfRef(r[0]);if("string"!=typeof n)return null;var o=a(r.slice(1),t);return o&&o.length?{name:(0,i.stringToPDFString)(n),order:o}:null}var s=this.xref,c=new n.RefSet,u=10;return{name:(0,i.isString)(e.get("Name"))?(0,i.stringToPDFString)(e.get("Name")):null,creator:(0,i.isString)(e.get("Creator"))?(0,i.stringToPDFString)(e.get("Creator")):null,baseState:(0,n.isName)(e.get("BaseState"))?e.get("BaseState").name:null,on:r(e.get("ON")),off:r(e.get("OFF")),order:a(e.get("Order")),groups:null}}},{key:"numPages",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new i.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,i.shadow)(this,"numPages",e)}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof o.NameTree){var r,a=g(e.getAll());try{for(a.s();!(r=a.n()).done;){var s=p(r.value,2),c=s[0],u=b(s[1]);u&&(t[c]=u)}}catch(e){a.e(e)}finally{a.f()}}else e instanceof n.Dict&&e.forEach((function(e,r){var n=b(r);n&&(t[e]=n)}));return(0,i.shadow)(this,"destinations",t)}},{key:"getDestination",value:function(e){var t=this._readDests();if(t instanceof o.NameTree){var r=b(t.get(e));if(r)return r;var a=this.destinations[e];if(a)return(0,i.warn)('Found "'.concat(e,'" at an incorrect position in the NameTree.')),a}else if(t instanceof n.Dict){var s=b(t.get(e));if(s)return s}return null}},{key:"_readDests",value:function(){var e=this._catDict.get("Names");return e&&e.has("Dests")?new o.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof a.MissingDataException)throw e;(0,i.warn)("Unable to read page labels.")}return(0,i.shadow)(this,"pageLabels",e)}},{key:"_readPageLabels",value:function(){var e=this._catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,s="",c=new o.NumberTree(e,this.xref).getAll(),u="",l=1,f=0,h=this.numPages;f<h;f++){var d=c.get(f);if(void 0!==d){if(!(0,n.isDict)(d))throw new i.FormatError("PageLabel is not a dictionary.");if(d.has("Type")&&!(0,n.isName)(d.get("Type"),"PageLabel"))throw new i.FormatError("Invalid type in PageLabel dictionary.");if(d.has("S")){var p=d.get("S");if(!(0,n.isName)(p))throw new i.FormatError("Invalid style in PageLabel dictionary.");r=p.name}else r=null;if(d.has("P")){var g=d.get("P");if(!(0,i.isString)(g))throw new i.FormatError("Invalid prefix in PageLabel dictionary.");s=(0,i.stringToPDFString)(g)}else s="";if(d.has("St")){var m=d.get("St");if(!(Number.isInteger(m)&&m>=1))throw new i.FormatError("Invalid start in PageLabel dictionary.");l=m}else l=1}switch(r){case"D":u=l;break;case"R":case"r":u=(0,a.toRomanNumerals)(l,"r"===r);break;case"A":case"a":for(var v="a"===r?97:65,y=l-1,b=String.fromCharCode(v+y%26),w=[],k=0,S=y/26|0;k<=S;k++)w.push(b);u=w.join("");break;default:if(r)throw new i.FormatError('Invalid style "'.concat(r,'" in PageLabel dictionary.'));u=""}t[f]=s+u,l++}return t}},{key:"pageLayout",get:function(){var e=this._catDict.get("PageLayout"),t="";if((0,n.isName)(e))switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,i.shadow)(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this._catDict.get("PageMode"),t="UseNone";if((0,n.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,i.shadow)(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t={HideToolbar:i.isBool,HideMenubar:i.isBool,HideWindowUI:i.isBool,FitWindow:i.isBool,CenterWindow:i.isBool,DisplayDocTitle:i.isBool,NonFullScreenPageMode:n.isName,Direction:n.isName,ViewArea:n.isName,ViewClip:n.isName,PrintArea:n.isName,PrintClip:n.isName,PrintScaling:n.isName,Duplex:n.isName,PickTrayByPDFSize:i.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},r=this._catDict.get("ViewerPreferences"),a=null;if((0,n.isDict)(r))for(var o in t)if(r.has(o)){var s=r.get(o);if(t[o](s)){var c=void 0;switch(o){case"NonFullScreenPageMode":switch(s.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":c=s.name;break;default:c="UseNone"}break;case"Direction":switch(s.name){case"L2R":case"R2L":c=s.name;break;default:c="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(s.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":c=s.name;break;default:c="CropBox"}break;case"PrintScaling":switch(s.name){case"None":case"AppDefault":c=s.name;break;default:c="AppDefault"}break;case"Duplex":switch(s.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":c=s.name;break;default:c="None"}break;case"PrintPageRange":if(s.length%2!=0)break;s.every((function(t,r,n){return Number.isInteger(t)&&t>0&&(0===r||t>=n[r-1])&&t<=e.numPages}))&&(c=s);break;case"NumCopies":s>0&&(c=s);break;default:if("boolean"!=typeof s)throw new i.FormatError("viewerPreferences - expected a boolean value for: ".concat(o));c=s}void 0!==c?(a||(a=Object.create(null)),a[o]=c):(0,i.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}else(0,i.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}return(0,i.shadow)(this,"viewerPreferences",a)}},{key:"openAction",get:function(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if((0,n.isDict)(t)){var a=new n.Dict(this.xref);a.set("A",t);var o={url:null,dest:null,action:null};e.parseDestDictionary({destDict:a,resultObj:o}),Array.isArray(o.dest)?r.dest=o.dest:o.action&&(r.action=o.action)}else Array.isArray(t)&&(r.dest=t);return(0,i.shadow)(this,"openAction",(0,i.objectSize)(r)>0?r:null)}},{key:"attachments",get:function(){var e=this._catDict.get("Names"),t=null;if(e instanceof n.Dict&&e.has("EmbeddedFiles")){var r,a=g(new o.NameTree(e.getRaw("EmbeddedFiles"),this.xref).getAll());try{for(a.s();!(r=a.n()).done;){var s=p(r.value,2),u=s[0],l=s[1],f=new c.FileSpec(l,this.xref);t||(t=Object.create(null)),t[(0,i.stringToPDFString)(u)]=f.serializable}}catch(e){a.e(e)}finally{a.f()}}return(0,i.shadow)(this,"attachments",t)}},{key:"_collectJavaScript",value:function(){var e=this._catDict.get("Names"),t=null;function r(e,r){if(r instanceof n.Dict&&(0,n.isName)(r.get("S"),"JavaScript")){var a=r.get("JS");if((0,n.isStream)(a))a=a.getString();else if("string"!=typeof a)return;null===t&&(t=new Map),t.set(e,(0,i.stringToPDFString)(a))}}if(e instanceof n.Dict&&e.has("JavaScript")){var a,s=g(new o.NameTree(e.getRaw("JavaScript"),this.xref).getAll());try{for(s.s();!(a=s.n()).done;){var c=p(a.value,2);r(c[0],c[1])}}catch(e){s.e(e)}finally{s.f()}}var u=this._catDict.get("OpenAction");return u&&r("OpenAction",u),t}},{key:"javaScript",get:function(){var e=this._collectJavaScript();return(0,i.shadow)(this,"javaScript",e?d(e.values()):null)}},{key:"jsActions",get:function(){var e=this._collectJavaScript(),t=(0,a.collectActions)(this.xref,this._catDict,i.DocumentActionEventType);if(e){t||(t=Object.create(null));var r,n=g(e);try{for(n.s();!(r=n.n()).done;){var o=p(r.value,2),s=o[0],c=o[1];s in t?t[s].push(c):t[s]=[c]}}catch(e){n.e(e)}finally{n.f()}}return(0,i.shadow)(this,"jsActions",t)}},{key:"fontFallback",value:function(e,t){var r=[];return this.fontCache.forEach((function(e){r.push(e)})),Promise.all(r).then((function(r){var n,a=g(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.loadedName===e)return void i.fallback(t)}}catch(e){a.e(e)}finally{a.f()}}))}},{key:"cleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,n.clearPrimitiveCaches)(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();var r=[];return this.fontCache.forEach((function(e){r.push(e)})),Promise.all(r).then((function(t){var r,n=g(t);try{for(n.s();!(r=n.n()).done;)delete r.value.dict.cacheKey}catch(e){n.e(e)}finally{n.f()}e.fontCache.clear(),e.builtInCMapCache.clear()}))}},{key:"getPageDict",value:function(e){var t,r=(0,i.createPromiseCapability)(),a=[this._catDict.getRaw("Pages")],o=new n.RefSet,s=this.xref,c=this.pageKidsCountCache,u=0;return function l(){for(var f=function(){var f=a.pop();if((0,n.isRef)(f))return(t=c.get(f))>0&&u+t<e?(u+=t,"continue"):o.has(f)?(r.reject(new i.FormatError("Pages tree contains circular reference.")),{v:void 0}):(o.put(f),s.fetchAsync(f).then((function(t){(0,n.isDict)(t,"Page")||(0,n.isDict)(t)&&!t.has("Kids")?e===u?(f&&!c.has(f)&&c.put(f,1),r.resolve([t,f])):(u++,l()):(a.push(t),l())}),r.reject),{v:void 0});if(!(0,n.isDict)(f))return r.reject(new i.FormatError("Page dictionary kid reference points to wrong type of object.")),{v:void 0};if(t=f.get("Count"),Number.isInteger(t)&&t>=0){var h=f.objId;if(h&&!c.has(h)&&c.put(h,t),u+t<=e)return u+=t,"continue"}var d=f.get("Kids");if(!Array.isArray(d))return(0,n.isName)(f.get("Type"),"Page")||!f.has("Type")&&f.has("Contents")?u===e?(r.resolve([f,null]),{v:void 0}):(u++,"continue"):(r.reject(new i.FormatError("Page dictionary kids object is not an array.")),{v:void 0});for(var p=d.length-1;p>=0;p--)a.push(d[p])};a.length;){var d=f();if("continue"!==d&&"object"===h(d))return d.v}r.reject(new Error("Page index ".concat(e," not found.")))}(),r.promise}},{key:"getPageIndex",value:function(e){var t=this,r=this.pageIndexCache.get(e);if(void 0!==r)return Promise.resolve(r);var a=this.xref,o=0;return function r(s){return function(t){var r,o=0;return a.fetchAsync(t).then((function(a){if((0,n.isRefsEqual)(t,e)&&!(0,n.isDict)(a,"Page")&&(!(0,n.isDict)(a)||a.has("Type")||!a.has("Contents")))throw new i.FormatError("The reference does not point to a /Page dictionary.");if(!a)return null;if(!(0,n.isDict)(a))throw new i.FormatError("Node must be a dictionary.");return r=a.getRaw("Parent"),a.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(0,n.isDict)(e))throw new i.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;for(var s=[],c=!1,u=0,l=e.length;u<l;u++){var f=e[u];if(!(0,n.isRef)(f))throw new i.FormatError("Kid must be a reference.");if((0,n.isRefsEqual)(f,t)){c=!0;break}s.push(a.fetchAsync(f).then((function(e){if(!(0,n.isDict)(e))throw new i.FormatError("Kid node must be a dictionary.");e.has("Count")?o+=e.get("Count"):o++})))}if(!c)throw new i.FormatError("Kid reference not found in parent's kids.");return Promise.all(s).then((function(){return[o,r]}))}))}(s).then((function(n){if(!n)return t.pageIndexCache.put(e,o),o;var a=p(n,2),i=a[0],s=a[1];return o+=i,r(s)}))}(e)}}],m=[{key:"parseDestDictionary",value:function(e){var t=e.destDict;if((0,n.isDict)(t)){var r=e.resultObj;if("object"===h(r)){var a,o,s=e.docBaseUrl||null,c=t.get("A");if((0,n.isDict)(c)||(t.has("Dest")?c=t.get("Dest"):(c=t.get("AA"),(0,n.isDict)(c)&&(c.has("D")?c=c.get("D"):c.has("U")&&(c=c.get("U"))))),(0,n.isDict)(c)){var u=c.get("S");if(!(0,n.isName)(u))return void(0,i.warn)("parseDestDictionary: Invalid type in Action dictionary.");var l=u.name;switch(l){case"URI":a=c.get("URI"),(0,n.isName)(a)?a="/"+a.name:(0,i.isString)(a)&&(a=function(e){return e.startsWith("www.")?"http://".concat(e):e}(a));break;case"GoTo":o=c.get("D");break;case"Launch":case"GoToR":var f=c.get("F");(0,n.isDict)(f)?a=f.get("F")||null:(0,i.isString)(f)&&(a=f);var d=c.get("D");if(d&&((0,n.isName)(d)&&(d=d.name),(0,i.isString)(a))){var p=a.split("#")[0];(0,i.isString)(d)?a=p+"#"+d:Array.isArray(d)&&(a=p+"#"+JSON.stringify(d))}var g=c.get("NewWindow");(0,i.isBool)(g)&&(r.newWindow=g);break;case"Named":var m=c.get("N");(0,n.isName)(m)&&(r.action=m.name);break;case"JavaScript":var v,y=c.get("JS");if((0,n.isStream)(y)?v=y.getString():(0,i.isString)(y)&&(v=y),v){var b=new RegExp("^\\\\s*("+["app.launchURL","window.open"].join("|").split(".").join("\\\\.")+")\\\\((?:'|\\")([^'\\"]*)(?:'|\\")(?:,\\\\s*(\\\\w+)\\\\)|\\\\))","i").exec((0,i.stringToPDFString)(v));if(b&&b[2]){a=b[2],"true"===b[3]&&"app.launchURL"===b[1]&&(r.newWindow=!0);break}}default:if("JavaScript"===l||"ResetForm"===l||"SubmitForm"===l)break;(0,i.warn)('parseDestDictionary - unsupported action: "'.concat(l,'".'))}}else t.has("Dest")&&(o=t.get("Dest"));if((0,i.isString)(a)){a=function(e){try{return(0,i.stringToUTF8String)(e)}catch(t){return e}}(a);var w=(0,i.createValidAbsoluteUrl)(a,s);w&&(r.url=w.href),r.unsafeUrl=a}o&&((0,n.isName)(o)&&(o=o.name),((0,i.isString)(o)||Array.isArray(o))&&(r.dest=o))}else(0,i.warn)("parseDestDictionary: \`resultObj\` must be an object.")}else(0,i.warn)("parseDestDictionary: \`destDict\` must be a dictionary.")}}],r&&y(t.prototype,r),m&&y(t,m),e}();t.Catalog=w},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0;var a=r(4),i=r(113);function o(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&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var a=l(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(){function e(t,r,n){f(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize NameOrNumberTree."),this.root=t,this.xref=r,this._type=n}var t,r,n;return t=e,(r=[{key:"getAll",value:function(){var e=new Map;if(!this.root)return e;var t=this.xref,r=new i.RefSet;r.put(this.root);for(var n=[this.root];n.length>0;){var o=t.fetchIfRef(n.shift());if((0,i.isDict)(o))if(o.has("Kids"))for(var s=o.get("Kids"),c=0,u=s.length;c<u;c++){var l=s[c];if(r.has(l))throw new a.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));n.push(l),r.put(l)}else{var f=o.get(this._type);if(Array.isArray(f))for(var h=0,d=f.length;h<d;h+=2)e.set(t.fetchIfRef(f[h]),t.fetchIfRef(f[h+1]))}}return e}},{key:"get",value:function(e){if(!this.root)return null;for(var t=this.xref,r=t.fetchIfRef(this.root),n=0;r.has("Kids");){if(++n>10)return(0,a.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var i=r.get("Kids");if(!Array.isArray(i))return null;for(var o=0,s=i.length-1;o<=s;){var c=o+s>>1,u=t.fetchIfRef(i[c]).get("Limits");if(e<t.fetchIfRef(u[0]))s=c-1;else{if(!(e>t.fetchIfRef(u[1]))){r=t.fetchIfRef(i[c]);break}o=c+1}}if(o>s)return null}var l=r.get(this._type);if(Array.isArray(l))for(var f=0,h=l.length-2;f<=h;){var d=f+h>>1,p=d+(1&d),g=t.fetchIfRef(l[p]);if(e<g)h=p-2;else{if(!(e>g))return t.fetchIfRef(l[p+1]);f=p+2}}return null}}])&&h(t.prototype,r),n&&h(t,n),e}(),p=function(e){o(r,e);var t=c(r);function r(e,n){return f(this,r),t.call(this,e,n,"Names")}return r}(d);t.NameTree=p;var g=function(e){o(r,e);var t=c(r);function r(e,n){return f(this,r),t.call(this,e,n,"Nums")}return r}(d);t.NumberTree=g},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var n=r(113),a=r(4);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}var s=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(0,n.isDict)(t)&&(this.xref=r,this.root=t,t.has("FS")&&(this.fs=t.get("FS")),this.description=t.has("Desc")?(0,a.stringToPDFString)(t.get("Desc")):"",t.has("RF")&&(0,a.warn)("Related file specifications are not supported"),this.contentAvailable=!0,t.has("EF")||(this.contentAvailable=!1,(0,a.warn)("Non-embedded file specifications are not supported")))}var t,r,s;return t=e,(r=[{key:"filename",get:function(){if(!this._filename&&this.root){var e=o(this.root)||"unnamed";this._filename=(0,a.stringToPDFString)(e).replace(/\\\\\\\\/g,"\\\\").replace(/\\\\\\//g,"/").replace(/\\\\/g,"/")}return this._filename}},{key:"content",get:function(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=o(this.root.get("EF")));var e=null;if(this.contentRef){var t=this.xref.fetchIfRef(this.contentRef);t&&(0,n.isStream)(t)?e=t.getBytes():(0,a.warn)("Embedded file specification points to non-existing/invalid content")}else(0,a.warn)("Embedded file specification does not have a content");return e}},{key:"serializable",get:function(){return{filename:this.filename,content:this.content}}}])&&i(t.prototype,r),s&&i(t,s),e}();t.FileSpec=s},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0;var n=r(169);function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this._repair(t);var r=new n.SimpleXMLParser({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map,this._data=t,r&&this._parse(r)}var t,r,o;return t=e,(r=[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\\\376\\\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),n=[],a=0,i=r.length;a<i;a+=2){var o=256*r.charCodeAt(a)+r.charCodeAt(a+1);o>=32&&o<127&&60!==o&&62!==o&&38!==o?n.push(String.fromCharCode(o)):n.push("&#x"+(65536+o).toString(16).substring(1)+";")}return">"+n.join("")}))}},{key:"_getSequence",value:function(e){var t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter((function(e){return"rdf:li"===e.nodeName}))}},{key:"_parseArray",value:function(e){if(e.hasChildNodes()){var t=i(e.childNodes,1)[0],r=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,r.map((function(e){return e.textContent.trim()})))}}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes()){var r,n=a(t.childNodes);try{for(n.s();!(r=n.n()).done;){var i=r.value;if("rdf:description"===i.nodeName){var o,s=a(i.childNodes);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=c.nodeName;switch(u){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(c);continue}this._metadataMap.set(u,c.textContent.trim())}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){n.e(e)}finally{n.f()}}}},{key:"serializable",get:function(){return{parsedData:this._metadataMap,rawData:this._data}}}])&&c(t.prototype,r),o&&c(t,o),e}();t.MetadataParser=u},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var a=r(117);function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var a=c(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||f(e,t)||function(){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(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}var m={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function v(e,t){var r=e[t];return" "===r||"\\n"===r||"\\r"===r||"\\t"===r}t.XMLParserErrorCode=m;var y=function(){function e(){d(this,e)}return g(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,(function(e,r){if("#x"===r.substring(0,2))return String.fromCodePoint(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCodePoint(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],n=t;function a(){for(;n<e.length&&v(e,n);)++n}for(;n<e.length&&!v(e,n)&&">"!==e[n]&&"/"!==e[n];)++n;var i=e.substring(t,n);for(a();n<e.length&&">"!==e[n]&&"/"!==e[n]&&"?"!==e[n];){a();for(var o,s="";n<e.length&&!v(e,n)&&"="!==e[n];)s+=e[n],++n;if(a(),"="!==e[n])return null;++n,a();var c=e[n];if('"'!==c&&"'"!==c)return null;var u=e.indexOf(c,++n);if(u<0)return null;o=e.substring(n,u),r.push({name:s,value:this._resolveEntities(o)}),n=u+1,a()}return{name:i,attributes:r,parsed:n-t}}},{key:"_parseProcessingInstruction",value:function(e,t){for(var r=t;r<e.length&&!v(e,r)&&">"!==e[r]&&"?"!==e[r]&&"/"!==e[r];)++r;var n=e.substring(t,r);!function(){for(;r<e.length&&v(e,r);)++r}();for(var a=r;r<e.length&&("?"!==e[r]||">"!==e[r+1]);)++r;return{name:n,value:e.substring(a,r),parsed:r-t}}},{key:"parseXml",value:function(e){for(var t=0;t<e.length;){var r=t;if("<"===e[t]){var n=void 0;switch(e[++r]){case"/":if(++r,(n=e.indexOf(">",r))<0)return void this.onError(m.UnterminatedElement);this.onEndElement(e.substring(r,n)),r=n+1;break;case"?":++r;var a=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+a.parsed,r+a.parsed+2))return void this.onError(m.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),r+=a.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if((n=e.indexOf("--\\x3e",r+3))<0)return void this.onError(m.UnterminatedComment);this.onComment(e.substring(r+3,n)),r=n+3}else if("[CDATA["===e.substring(r+1,r+8)){if((n=e.indexOf("]]>",r+8))<0)return void this.onError(m.UnterminatedCdat);this.onCdata(e.substring(r+8,n)),r=n+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(m.MalformedElement);var i=e.indexOf("[",r+8),o=!1;if((n=e.indexOf(">",r+8))<0)return void this.onError(m.UnterminatedDoctypeDeclaration);if(i>0&&n>i){if((n=e.indexOf("]>",r+8))<0)return void this.onError(m.UnterminatedDoctypeDeclaration);o=!0}var s=e.substring(r+8,n+(o?1:0));this.onDoctype(s),r=n+(o?2:1)}break;default:var c=this._parseContent(e,r);if(null===c)return void this.onError(m.MalformedElement);var u=!1;if("/>"===e.substring(r+c.parsed,r+c.parsed+2))u=!0;else if(">"!==e.substring(r+c.parsed,r+c.parsed+1))return void this.onError(m.UnterminatedElement);this.onBeginElement(c.name,c.attributes,u),r+=c.parsed+(u?2:1)}}else{for(;r<e.length&&"<"!==e[r];)r++;var l=e.substring(t,r);this.onText(this._resolveEntities(l))}t=r}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}();t.XMLParserBase=y;var b=function(){function e(t,r){d(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return g(e,[{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||""}},{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"searchNode",value:function(e,t){if(t>=e.length)return this;for(var r=e[t],n=[],a=this;;){if(r.name===a.nodeName){if(0!==r.pos){if(0===n.length)return null;var i,o=0,s=u(l(n.pop(),1)[0].childNodes);try{for(s.s();!(i=s.n()).done;){var c=i.value;if(r.name===c.nodeName){if(o===r.pos)return c.searchNode(e,t+1);o++}}}catch(e){s.e(e)}finally{s.f()}return a.searchNode(e,t+1)}var f=a.searchNode(e,t+1);if(null!==f)return f}if(a.childNodes&&0!==a.childNodes.length)n.push([a,0]),a=a.childNodes[0];else{if(0===n.length)return null;for(;0!==n.length;){var h=l(n.pop(),2),d=h[0],p=h[1]+1;if(p<d.childNodes.length){n.push([d,p]),a=d.childNodes[p];break}}if(0===n.length)return null}}}},{key:"dump",value:function(e){if("#text"!==this.nodeName){if(e.push("<".concat(this.nodeName)),this.attributes){var t,r=u(this.attributes);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.push(" ".concat(n.name,'="').concat((0,a.encodeToXmlString)(n.value),'"'))}}catch(e){r.e(e)}finally{r.f()}}if(this.hasChildNodes()){e.push(">");var i,o=u(this.childNodes);try{for(o.s();!(i=o.n()).done;)i.value.dump(e)}catch(e){o.e(e)}finally{o.f()}e.push("</".concat(this.nodeName,">"))}else this.nodeValue?e.push(">".concat((0,a.encodeToXmlString)(this.nodeValue),"</").concat(this.nodeName,">")):e.push("/>")}else e.push((0,a.encodeToXmlString)(this.nodeValue))}}]),e}();t.SimpleDOMNode=b;var w=function(e){!function(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&&i(e,t)}(r,e);var t=o(r);function r(e){var n,a=e.hasAttributes,i=void 0!==a&&a,o=e.lowerCaseName,s=void 0!==o&&o;return d(this,r),(n=t.call(this))._currentFragment=null,n._stack=null,n._errorCode=m.NoError,n._hasAttributes=i,n._lowerCaseName=s,n}return g(r,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=m.NoError,this.parseXml(e),this._errorCode===m.NoError){var t=l(this._currentFragment,1)[0];if(t)return{documentElement:t}}}},{key:"onText",value:function(e){if(!function(e){for(var t=0,r=e.length;t<r;t++)if(!v(e,t))return!1;return!0}(e)){var t=new b("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new b("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){this._lowerCaseName&&(e=e.toLowerCase());var n=new b(e);n.childNodes=[],this._hasAttributes&&(n.attributes=t),this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var r=0,n=t.childNodes.length;r<n;r++)t.childNodes[r].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),r}(y);t.SimpleXMLParser=w},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0;var n=r(113),a=r(4),i=r(166);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}var f="PAGE_CONTENT",h="STREAM_CONTENT",d="OBJECT",p="ELEMENT",g=function(){function e(t){c(this,e),this.dict=t,this.roleMap=new Map}return l(e,[{key:"init",value:function(){this.readRoleMap()}},{key:"readRoleMap",value:function(){var e=this,t=this.dict.get("RoleMap");(0,n.isDict)(t)&&t.forEach((function(t,r){(0,n.isName)(r)&&e.roleMap.set(t,r.name)}))}}]),e}();t.StructTreeRoot=g;var m=function(){function e(t,r){c(this,e),this.tree=t,this.dict=r,this.kids=[],this.parseKids()}return l(e,[{key:"role",get:function(){var e=this.dict.get("S"),t=(0,n.isName)(e)?e.name:"",r=this.tree.root;return r.roleMap.has(t)?r.roleMap.get(t):t}},{key:"parseKids",value:function(){var e=null,t=this.dict.getRaw("Pg");(0,n.isRef)(t)&&(e=t.toString());var r=this.dict.get("K");if(Array.isArray(r)){var a,i=o(r);try{for(i.s();!(a=i.n()).done;){var s=a.value,c=this.parseKid(e,s);c&&this.kids.push(c)}}catch(e){i.e(e)}finally{i.f()}}else{var u=this.parseKid(e,r);u&&this.kids.push(u)}}},{key:"parseKid",value:function(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new v({type:f,mcid:t,pageObjId:e});var r=null;if((0,n.isRef)(t)?r=this.dict.xref.fetch(t):(0,n.isDict)(t)&&(r=t),!r)return null;var a=r.getRaw("Pg");(0,n.isRef)(a)&&(e=a.toString());var i=(0,n.isName)(r.get("Type"))?r.get("Type").name:null;return"MCR"===i?this.tree.pageDict.objId!==e?null:new v({type:h,refObjId:(0,n.isRef)(r.getRaw("Stm"))?r.getRaw("Stm").toString():null,pageObjId:e,mcid:r.get("MCID")}):"OBJR"===i?this.tree.pageDict.objId!==e?null:new v({type:d,refObjId:(0,n.isRef)(r.getRaw("Obj"))?r.getRaw("Obj").toString():null,pageObjId:e}):new v({type:p,dict:r})}}]),e}(),v=function e(t){var r=t.type,n=t.dict,a=void 0===n?null:n,i=t.mcid,o=void 0===i?null:i,s=t.pageObjId,u=void 0===s?null:s,l=t.refObjId,f=void 0===l?null:l;c(this,e),this.type=r,this.dict=a,this.mcid=o,this.pageObjId=u,this.refObjId=f,this.parentNode=null},y=function(){function e(t,r){c(this,e),this.root=t,this.rootDict=t?t.dict:null,this.pageDict=r,this.nodes=[]}return l(e,[{key:"parse",value:function(){if(this.root&&this.rootDict){var e=this.rootDict.get("ParentTree");if(e){var t=this.pageDict.get("StructParents");if(Number.isInteger(t)){var r=new i.NumberTree(e,this.rootDict.xref).get(t);if(Array.isArray(r)){var a,s=new Map,c=o(r);try{for(c.s();!(a=c.n()).done;){var u=a.value;(0,n.isRef)(u)&&this.addNode(this.rootDict.xref.fetch(u),s)}}catch(e){c.e(e)}finally{c.f()}}}}}}},{key:"addNode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r>40)return(0,a.warn)("StructTree MAX_DEPTH reached."),null;if(t.has(e))return t.get(e);var i=new m(this,e);t.set(e,i);var s=e.get("P");if(!s||(0,n.isName)(s.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(e,i)||t.delete(e),i;var c=this.addNode(s,t,r+1);if(!c)return i;var u,l=!1,f=o(c.kids);try{for(f.s();!(u=f.n()).done;){var h=u.value;h.type===p&&h.dict===e&&(h.parentNode=i,l=!0)}}catch(e){f.e(e)}finally{f.f()}return l||t.delete(e),i}},{key:"addTopLevelNode",value:function(e,t){var r=this.rootDict.get("K");if(!r)return!1;if((0,n.isDict)(r))return r.objId===e.objId&&(this.nodes[0]=t,!0);if(!Array.isArray(r))return!0;for(var a=!1,i=0;i<r.length;i++){var o=r[i];o&&o.toString()===e.objId&&(this.nodes[i]=t,a=!0)}return a}},{key:"serializable",get:function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>40)(0,a.warn)("StructTree too deep to be fully serialized.");else{var i=Object.create(null);i.role=t.role,i.children=[],r.children.push(i);var s=t.dict.get("Alt");(0,a.isString)(s)&&(i.alt=(0,a.stringToPDFString)(s));var c,u=o(t.kids);try{for(u.s();!(c=u.n()).done;){var l=c.value,g=l.type===p?l.parentNode:null;g?e(g,i,n+1):l.type===f||l.type===h?i.children.push({type:"content",id:"page".concat(l.pageObjId,"_mcid").concat(l.mcid)}):l.type===d&&i.children.push({type:"object",id:l.refObjId})}}catch(e){u.e(e)}finally{u.f()}}}var t=Object.create(null);t.children=[],t.role="Root";var r,n=o(this.nodes);try{for(n.s();!(r=n.n()).done;){var i=r.value;i&&e(i,t)}}catch(e){n.e(e)}finally{n.f()}return t}}]),e}();t.StructTreePage=y},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(113),o=r(117),s=r(4);function c(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){c(i,n,a,o,s,"next",e)}function s(e){c(i,n,a,o,s,"throw",e)}o(void 0)}))}}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){if(e instanceof i.Dict)e=e.getRawValues();else if((0,i.isStream)(e))e=e.dict.getRawValues();else if(!Array.isArray(e))return;var r,n,a=f(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;((n=o)instanceof i.Ref||n instanceof i.Dict||Array.isArray(n)||(0,i.isStream)(n))&&t.push(o)}}catch(e){a.e(e)}finally{a.f()}}var p=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dict=t,this.keys=r,this.xref=n,this.refSet=null}var t,r,n,c,h;return t=e,r=[{key:"load",value:(h=u(a.default.mark((function e(){var t,r,n,o,s,c;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.xref.stream.isDataLoaded){e.next=2;break}return e.abrupt("return",void 0);case 2:for(t=this.keys,r=this.dict,this.refSet=new i.RefSet,n=[],o=0,s=t.length;o<s;o++)void 0!==(c=r.getRaw(t[o]))&&n.push(c);return e.abrupt("return",this._walk(n));case 7:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_walk",value:(c=u(a.default.mark((function e(t){var r,n,c,u,l,h,p,g,m,v,y,b;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=[];case 2:if(!t.length){e.next=48;break}if(!((c=t.pop())instanceof i.Ref)){e.next=21;break}if(!this.refSet.has(c)){e.next=7;break}return e.abrupt("continue",2);case 7:e.prev=7,this.refSet.put(c),c=this.xref.fetch(c),e.next=21;break;case 12:if(e.prev=12,e.t0=e.catch(7),e.t0 instanceof o.MissingDataException){e.next=19;break}return(0,s.warn)('ObjectLoader._walk - requesting all data: "'.concat(e.t0,'".')),this.refSet=null,u=this.xref.stream.manager,e.abrupt("return",u.requestAllChunks());case 19:r.push(c),n.push({begin:e.t0.begin,end:e.t0.end});case 21:if(!(0,i.isStream)(c)){e.next=45;break}if(!(l=c.getBaseStreams())){e.next=45;break}h=!1,p=f(l),e.prev=26,p.s();case 28:if((g=p.n()).done){e.next=36;break}if(!(m=g.value).isDataLoaded){e.next=32;break}return e.abrupt("continue",34);case 32:h=!0,n.push({begin:m.start,end:m.end});case 34:e.next=28;break;case 36:e.next=41;break;case 38:e.prev=38,e.t1=e.catch(26),p.e(e.t1);case 41:return e.prev=41,p.f(),e.finish(41);case 44:h&&r.push(c);case 45:d(c,t),e.next=2;break;case 48:if(!n.length){e.next=54;break}return e.next=51,this.xref.stream.manager.requestRanges(n);case 51:v=f(r);try{for(v.s();!(y=v.n()).done;)(b=y.value)instanceof i.Ref&&this.refSet.remove(b)}catch(e){v.e(e)}finally{v.f()}return e.abrupt("return",this._walk(r));case 54:return this.refSet=null,e.abrupt("return",void 0);case 56:case"end":return e.stop()}}),e,this,[[7,12],[26,38,41,44]])}))),function(e){return c.apply(this,arguments)})}],r&&l(t.prototype,r),n&&l(t,n),e}();t.ObjectLoader=p},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=function(e){var t=e.originalData,r=e.xrefInfo,l=e.newRefs,h=e.xref,g=void 0===h?null:h,m=e.datasetsRef;!function(e,t,r){if(null!==e&&null!==r){var a,s=r.fetchIfRef(e).getString(),u=new o.SimpleXMLParser({hasAttributes:!0}).parseFromString(s),l=c(t);try{for(l.s();!(a=l.n()).done;){var f=a.value.xfa;if(f){var h=f.path,d=f.value;if(h){var p=u.documentElement.searchNode((0,i.parseXFAPath)(h),0);p?p.childNodes=[new o.SimpleDOMNode("#text",d)]:(0,n.warn)("Node not found for path: ".concat(h))}}}}catch(e){l.e(e)}finally{l.f()}var g=[];u.documentElement.dump(g);var m=g.join(""),v=r.encrypt;v&&(m=v.createCipherTransform(e.num,e.gen).encryptString(m));var y="".concat(e.num," ").concat(e.gen," obj\\n")+"<< /Type /EmbeddedFile /Length ".concat(m.length,">>\\nstream\\n")+m+"\\nendstream\\nendobj\\n";t.push({ref:e,data:y})}}(void 0===m?null:m,l,g);var v,y,b=new a.Dict(null),w=r.newRef,k=t[t.length-1];10===k||13===k?(v=[],y=t.length):(v=["\\n"],y=t.length+1),b.set("Size",w.num+1),b.set("Prev",r.startXRef),b.set("Type",a.Name.get("XRef")),null!==r.rootRef&&b.set("Root",r.rootRef),null!==r.infoRef&&b.set("Info",r.infoRef),null!==r.encryptRef&&b.set("Encrypt",r.encryptRef),l.push({ref:w,data:""}),l=l.sort((function(e,t){return e.ref.num-t.ref.num}));var S,x=[[0,1,65535]],A=[0,1],O=0,C=c(l);try{for(C.s();!(S=C.n()).done;){var T=S.value,F=T.ref,P=T.data;O=Math.max(O,y),x.push([1,y,Math.min(F.gen,65535)]),y+=P.length,A.push(F.num,1),v.push(P)}}catch(e){C.e(e)}finally{C.f()}if(b.set("Index",A),Array.isArray(r.fileIds)&&r.fileIds.length>0){var _=function(e,t){for(var r=Math.floor(Date.now()/1e3),a=t.filename||"",i=[r.toString(),a,e.toString()],o=i.reduce((function(e,t){return e+t.length}),0),c=0,u=Object.values(t.info);c<u.length;c++){var l=u[c];i.push(l),o+=l.length}for(var f=new Uint8Array(o),h=0,d=0,g=i;d<g.length;d++){var m=g[d];p(m,h,f),h+=m.length}return(0,n.bytesToString)((0,s.calculateMD5)(f))}(y,r);b.set("ID",[r.fileIds[0],_])}var I=[1,Math.ceil(Math.log2(O)/8),2],E=(I[0]+I[1]+I[2])*x.length;b.set("W",I),b.set("Length",E),v.push("".concat(w.num," ").concat(w.gen," obj\\n")),f(b,v,null),v.push(" stream\\n");var j=v.reduce((function(e,t){return e+t.length}),0),R="\\nendstream\\nendobj\\nstartxref\\n".concat(y,"\\n%%EOF\\n"),M=new Uint8Array(t.length+j+E+R.length);M.set(t);var N,B,D,L=t.length,U=c(v);try{for(U.s();!(N=U.n()).done;){var q=N.value;p(q,L,M),L+=q.length}}catch(e){U.e(e)}finally{U.f()}for(var X=0,H=x;X<H.length;X++){var $=(B=H[X],D=3,function(e){if(Array.isArray(e))return e}(B)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(B,D)||u(B,D)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),z=$[0],G=$[1],W=$[2];L=d(z,I[0],L,M),L=d(G,I[1],L,M),L=d(W,I[2],L,M)}return p(R,L,M),M},t.writeDict=f;var n=r(4),a=r(113),i=r(117),o=r(169),s=r(173);function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t,r){t.push("<<");var n,a=c(e.getKeys());try{for(a.s();!(n=a.n()).done;){var o=n.value;t.push(" /".concat((0,i.escapePDFName)(o)," ")),h(e.getRaw(o),t,r)}}catch(e){a.e(e)}finally{a.f()}t.push(">>")}function h(e,t,r){(0,a.isName)(e)?t.push("/".concat((0,i.escapePDFName)(e.name))):(0,a.isRef)(e)?t.push("".concat(e.num," ").concat(e.gen," R")):Array.isArray(e)?function(e,t,r){t.push("[");var n,a=!0,i=c(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;a?a=!1:t.push(" "),h(o,t,r)}}catch(e){i.e(e)}finally{i.f()}t.push("]")}(e,t,r):"string"==typeof e?(null!==r&&(e=r.encryptString(e)),t.push("(".concat((0,n.escapeString)(e),")"))):"number"==typeof e?t.push(function(e){if(Number.isInteger(e))return e.toString();var t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}(e)):(0,a.isDict)(e)?f(e,t,r):(0,a.isStream)(e)&&function(e,t,r){f(e.dict,t,r),t.push(" stream\\n");var n=e.getString();null!==r&&(n=r.encryptString(n)),t.push(n,"\\nendstream\\n")}(e,t,r)}function d(e,t,r,n){for(var a=t+r-1;a>r-1;a--)n[a]=255&e,e>>=8;return r+t}function p(e,t,r){for(var n=0,a=e.length;n<a;n++)r[t+n]=255&e.charCodeAt(n)}},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA384=S,t.PDF20=t.PDF17=t.CipherTransformFactory=t.calculateSHA512=t.calculateSHA256=t.calculateMD5=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var a=r(4),i=r(113),o=r(174);function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}var g=function(){function e(t){h(this,e),this.a=0,this.b=0;for(var r=new Uint8Array(256),n=t.length,a=0;a<256;++a)r[a]=a;for(var i=0,o=0;i<256;++i){var s=r[i];o=o+s+t[i%n]&255,r[i]=r[o],r[o]=s}this.s=r}return p(e,[{key:"encryptBlock",value:function(e){for(var t=this.a,r=this.b,n=this.s,a=e.length,i=new Uint8Array(a),o=0;o<a;++o){var s=n[t=t+1&255],c=n[r=r+s&255];n[t]=c,n[r]=s,i[o]=e[o]^n[s+c&255]}return this.a=t,this.b=r,i}},{key:"decryptBlock",value:function(e){return this.encryptBlock(e)}},{key:"encrypt",value:function(e){return this.encryptBlock(e)}}]),e}();t.ARCFourCipher=g;var m,v,y=(m=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),v=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]),function(e,t,r){var n,a,i=1732584193,o=-271733879,s=-1732584194,c=271733878,u=r+72&-64,l=new Uint8Array(u);for(n=0;n<r;++n)l[n]=e[t++];l[n++]=128;for(var f=u-8;n<f;)l[n++]=0;l[n++]=r<<3&255,l[n++]=r>>5&255,l[n++]=r>>13&255,l[n++]=r>>21&255,l[n++]=r>>>29&255,l[n++]=0,l[n++]=0,l[n++]=0;var h=new Int32Array(16);for(n=0;n<u;){for(a=0;a<16;++a,n+=4)h[a]=l[n]|l[n+1]<<8|l[n+2]<<16|l[n+3]<<24;var d=i,p=o,g=s,y=c,b=void 0,w=void 0;for(a=0;a<64;++a){a<16?(b=p&g|~p&y,w=a):a<32?(b=y&p|~y&g,w=5*a+1&15):a<48?(b=p^g^y,w=3*a+5&15):(b=g^(p|~y),w=7*a&15);var k=y,S=d+b+v[a]+h[w]|0,x=m[a];y=g,g=p,p=p+(S<<x|S>>>32-x)|0,d=k}i=i+d|0,o=o+p|0,s=s+g|0,c=c+y|0}return new Uint8Array([255&i,i>>8&255,i>>16&255,i>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])});t.calculateMD5=y;var b=function(){function e(t,r){h(this,e),this.high=0|t,this.low=0|r}return p(e,[{key:"and",value:function(e){this.high&=e.high,this.low&=e.low}},{key:"xor",value:function(e){this.high^=e.high,this.low^=e.low}},{key:"or",value:function(e){this.high|=e.high,this.low|=e.low}},{key:"shiftRight",value:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}},{key:"shiftLeft",value:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low=this.low<<e)}},{key:"rotateRight",value:function(e){var t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e}},{key:"not",value:function(){this.high=~this.high,this.low=~this.low}},{key:"add",value:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r}},{key:"copyTo",value:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}},{key:"assign",value:function(e){this.high=e.high,this.low=e.low}}]),e}(),w=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function n(t){return e(t,2)^e(t,13)^e(t,22)}function a(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}var o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(s,c,u){var l,f,h=1779033703,d=3144134277,p=1013904242,g=2773480762,m=1359893119,v=2600822924,y=528734635,b=1541459225,w=64*Math.ceil((u+9)/64),k=new Uint8Array(w);for(l=0;l<u;++l)k[l]=s[c++];k[l++]=128;for(var S=w-8;l<S;)k[l++]=0;k[l++]=0,k[l++]=0,k[l++]=0,k[l++]=u>>>29&255,k[l++]=u>>21&255,k[l++]=u>>13&255,k[l++]=u>>5&255,k[l++]=u<<3&255;var x,A=new Uint32Array(64);for(l=0;l<w;){for(f=0;f<16;++f)A[f]=k[l]<<24|k[l+1]<<16|k[l+2]<<8|k[l+3],l+=4;for(f=16;f<64;++f)A[f]=0|(e(x=A[f-2],17)^e(x,19)^x>>>10)+A[f-7]+i(A[f-15])+A[f-16];var O=h,C=d,T=p,F=g,P=m,_=v,I=y,E=b,j=void 0,R=void 0;for(f=0;f<64;++f)j=E+a(P)+t(P,_,I)+o[f]+A[f],R=n(O)+r(O,C,T),E=I,I=_,_=P,P=F+j|0,F=T,T=C,C=O,O=j+R|0;h=h+O|0,d=d+C|0,p=p+T|0,g=g+F|0,m=m+P|0,v=v+_|0,y=y+I|0,b=b+E|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,p>>24&255,p>>16&255,p>>8&255,255&p,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b])}}();t.calculateSHA256=w;var k=function(){function e(e,t,r,n,a){e.assign(t),e.and(r),a.assign(t),a.not(),a.and(n),e.xor(a)}function t(e,t,r,n,a){e.assign(t),e.and(r),a.assign(t),a.and(n),e.xor(a),a.assign(r),a.and(n),e.xor(a)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function a(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var o=[new b(1116352408,3609767458),new b(1899447441,602891725),new b(3049323471,3964484399),new b(3921009573,2173295548),new b(961987163,4081628472),new b(1508970993,3053834265),new b(2453635748,2937671579),new b(2870763221,3664609560),new b(3624381080,2734883394),new b(310598401,1164996542),new b(607225278,1323610764),new b(1426881987,3590304994),new b(1925078388,4068182383),new b(2162078206,991336113),new b(2614888103,633803317),new b(3248222580,3479774868),new b(3835390401,2666613458),new b(4022224774,944711139),new b(264347078,2341262773),new b(604807628,2007800933),new b(770255983,1495990901),new b(1249150122,1856431235),new b(1555081692,3175218132),new b(1996064986,2198950837),new b(2554220882,3999719339),new b(2821834349,766784016),new b(2952996808,2566594879),new b(3210313671,3203337956),new b(3336571891,1034457026),new b(3584528711,2466948901),new b(113926993,3758326383),new b(338241895,168717936),new b(666307205,1188179964),new b(773529912,1546045734),new b(1294757372,1522805485),new b(1396182291,2643833823),new b(1695183700,2343527390),new b(1986661051,1014477480),new b(2177026350,1206759142),new b(2456956037,344077627),new b(2730485921,1290863460),new b(2820302411,3158454273),new b(3259730800,3505952657),new b(3345764771,106217008),new b(3516065817,3606008344),new b(3600352804,1432725776),new b(4094571909,1467031594),new b(275423344,851169720),new b(430227734,3100823752),new b(506948616,1363258195),new b(659060556,3750685593),new b(883997877,3785050280),new b(958139571,3318307427),new b(1322822218,3812723403),new b(1537002063,2003034995),new b(1747873779,3602036899),new b(1955562222,1575990012),new b(2024104815,1125592928),new b(2227730452,2716904306),new b(2361852424,442776044),new b(2428436474,593698344),new b(2756734187,3733110249),new b(3204031479,2999351573),new b(3329325298,3815920427),new b(3391569614,3928383900),new b(3515267271,566280711),new b(3940187606,3454069534),new b(4118630271,4000239992),new b(116418474,1914138554),new b(174292421,2731055270),new b(289380356,3203993006),new b(460393269,320620315),new b(685471733,587496836),new b(852142971,1086792851),new b(1017036298,365543100),new b(1126000580,2618297676),new b(1288033470,3409855158),new b(1501505948,4234509866),new b(1607167915,987167468),new b(1816402316,1246189591)];return function(s,c,u){var l,f,h,d,p,g,m,v,y=arguments.length>3&&void 0!==arguments[3]&&arguments[3];y?(l=new b(3418070365,3238371032),f=new b(1654270250,914150663),h=new b(2438529370,812702999),d=new b(355462360,4144912697),p=new b(1731405415,4290775857),g=new b(2394180231,1750603025),m=new b(3675008525,1694076839),v=new b(1203062813,3204075428)):(l=new b(1779033703,4089235720),f=new b(3144134277,2227873595),h=new b(1013904242,4271175723),d=new b(2773480762,1595750129),p=new b(1359893119,2917565137),g=new b(2600822924,725511199),m=new b(528734635,4215389547),v=new b(1541459225,327033209));var w,k,S=128*Math.ceil((u+17)/128),x=new Uint8Array(S);for(w=0;w<u;++w)x[w]=s[c++];x[w++]=128;for(var A=S-16;w<A;)x[w++]=0;x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=0,x[w++]=u>>>29&255,x[w++]=u>>21&255,x[w++]=u>>13&255,x[w++]=u>>5&255,x[w++]=u<<3&255;var O=new Array(80);for(w=0;w<80;w++)O[w]=new b(0,0);var C,T,F=new b(0,0),P=new b(0,0),_=new b(0,0),I=new b(0,0),E=new b(0,0),j=new b(0,0),R=new b(0,0),M=new b(0,0),N=new b(0,0),B=new b(0,0),D=new b(0,0),L=new b(0,0);for(w=0;w<S;){for(k=0;k<16;++k)O[k].high=x[w]<<24|x[w+1]<<16|x[w+2]<<8|x[w+3],O[k].low=x[w+4]<<24|x[w+5]<<16|x[w+6]<<8|x[w+7],w+=8;for(k=16;k<80;++k)i(C=O[k],O[k-2],L),C.add(O[k-7]),a(D,O[k-15],L),C.add(D),C.add(O[k-16]);for(F.assign(l),P.assign(f),_.assign(h),I.assign(d),E.assign(p),j.assign(g),R.assign(m),M.assign(v),k=0;k<80;++k)N.assign(M),n(D,E,L),N.add(D),e(D,E,j,R,L),N.add(D),N.add(o[k]),N.add(O[k]),r(B,F,L),t(D,F,P,_,L),B.add(D),C=M,M=R,R=j,j=E,I.add(N),E=I,I=_,_=P,P=F,C.assign(N),C.add(B),F=C;l.add(F),f.add(P),h.add(_),d.add(I),p.add(E),g.add(j),m.add(R),v.add(M)}return y?(T=new Uint8Array(48),l.copyTo(T,0),f.copyTo(T,8),h.copyTo(T,16),d.copyTo(T,24),p.copyTo(T,32),g.copyTo(T,40)):(T=new Uint8Array(64),l.copyTo(T,0),f.copyTo(T,8),h.copyTo(T,16),d.copyTo(T,24),p.copyTo(T,32),g.copyTo(T,40),m.copyTo(T,48),v.copyTo(T,56)),T}}();function S(e,t,r){return k(e,t,r,!0)}t.calculateSHA512=k;var x=function(){function e(){h(this,e)}return p(e,[{key:"decryptBlock",value:function(e){return e}},{key:"encrypt",value:function(e){return e}}]),e}(),A=function(){function e(){h(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(var t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}return p(e,[{key:"_expandKey",value:function(e){(0,a.unreachable)("Cannot call \`_expandKey\` on the base class")}},{key:"_decrypt",value:function(e,t){var r,n,a,i=new Uint8Array(16);i.set(e);for(var o=0,s=this._keySize;o<16;++o,++s)i[o]^=t[s];for(var c=this._cyclesOfRepetition-1;c>=1;--c){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],a=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=a;for(var u=0;u<16;++u)i[u]=this._inv_s[i[u]];for(var l=0,f=16*c;l<16;++l,++f)i[l]^=t[f];for(var h=0;h<16;h+=4){var d=this._mix[i[h]],p=this._mix[i[h+1]],g=this._mix[i[h+2]],m=this._mix[i[h+3]];r=d^p>>>8^p<<24^g>>>16^g<<16^m>>>24^m<<8,i[h]=r>>>24&255,i[h+1]=r>>16&255,i[h+2]=r>>8&255,i[h+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],a=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=a;for(var v=0;v<16;++v)i[v]=this._inv_s[i[v]],i[v]^=t[v];return i}},{key:"_encrypt",value:function(e,t){var r,n,a,i=this._s,o=new Uint8Array(16);o.set(e);for(var s=0;s<16;++s)o[s]^=t[s];for(var c=1;c<this._cyclesOfRepetition;c++){for(var u=0;u<16;++u)o[u]=i[o[u]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],n=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=n,a=o[3],n=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=n,o[15]=r;for(var l=0;l<16;l+=4){var f=o[l+0],h=o[l+1],d=o[l+2],p=o[l+3];r=f^h^d^p,o[l+0]^=r^this._mixCol[f^h],o[l+1]^=r^this._mixCol[h^d],o[l+2]^=r^this._mixCol[d^p],o[l+3]^=r^this._mixCol[p^f]}for(var g=0,m=16*c;g<16;++g,++m)o[g]^=t[m]}for(var v=0;v<16;++v)o[v]=i[o[v]];a=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=a,a=o[2],n=o[6],o[2]=o[10],o[6]=o[14],o[10]=a,o[14]=n,a=o[3],n=o[7],r=o[11],o[3]=o[15],o[7]=a,o[11]=n,o[15]=r;for(var y=0,b=this._keySize;y<16;++y,++b)o[y]^=t[b];return o}},{key:"_decryptBlock2",value:function(e,t){for(var r=e.length,n=this.buffer,a=this.bufferPosition,i=[],o=this.iv,s=0;s<r;++s)if(n[a]=e[s],!(++a<16)){for(var c=this._decrypt(n,this._key),u=0;u<16;++u)c[u]^=o[u];o=n,i.push(c),n=new Uint8Array(16),a=0}if(this.buffer=n,this.bufferLength=a,this.iv=o,0===i.length)return new Uint8Array(0);var l=16*i.length;if(t){var f=i[i.length-1],h=f[15];if(h<=16){for(var d=15,p=16-h;d>=p;--d)if(f[d]!==h){h=0;break}l-=h,i[i.length-1]=f.subarray(0,16-h)}}for(var g=new Uint8Array(l),m=0,v=0,y=i.length;m<y;++m,v+=16)g.set(i[m],v);return g}},{key:"decryptBlock",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.length,a=this.buffer,i=this.bufferPosition;if(r)this.iv=r;else{for(var o=0;i<16&&o<n;++o,++i)a[i]=e[o];if(i<16)return this.bufferLength=i,new Uint8Array(0);this.iv=a,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(e,t)}},{key:"encrypt",value:function(e,t){var r=e.length,n=this.buffer,a=this.bufferPosition,i=[];t||(t=new Uint8Array(16));for(var o=0;o<r;++o)if(n[a]=e[o],!(++a<16)){for(var s=0;s<16;++s)n[s]^=t[s];var c=this._encrypt(n,this._key);t=c,i.push(c),n=new Uint8Array(16),a=0}if(this.buffer=n,this.bufferLength=a,this.iv=t,0===i.length)return new Uint8Array(0);for(var u=16*i.length,l=new Uint8Array(u),f=0,h=0,d=i.length;f<d;++f,h+=16)l.set(i[f],h);return l}}]),e}(),O=function(e){s(r,e);var t=u(r);function r(e){var n;return h(this,r),(n=t.call(this))._cyclesOfRepetition=10,n._keySize=160,n._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),n._key=n._expandKey(e),n}return p(r,[{key:"_expandKey",value:function(e){var t=this._s,r=this._rcon,n=new Uint8Array(176);n.set(e);for(var a=16,i=1;a<176;++i){var o=n[a-3],s=n[a-2],c=n[a-1],u=n[a-4];o=t[o],s=t[s],c=t[c],u=t[u],o^=r[i];for(var l=0;l<4;++l)n[a]=o^=n[a-16],n[++a]=s^=n[a-16],n[++a]=c^=n[a-16],n[++a]=u^=n[a-16],a++}return n}}]),r}(A);t.AES128Cipher=O;var C=function(e){s(r,e);var t=u(r);function r(e){var n;return h(this,r),(n=t.call(this))._cyclesOfRepetition=14,n._keySize=224,n._key=n._expandKey(e),n}return p(r,[{key:"_expandKey",value:function(e){var t=this._s,r=new Uint8Array(240);r.set(e);for(var n,a,i,o,s=1,c=32,u=1;c<240;++u){c%32==16?(n=t[n],a=t[a],i=t[i],o=t[o]):c%32==0&&(n=r[c-3],a=r[c-2],i=r[c-1],o=r[c-4],n=t[n],a=t[a],i=t[i],o=t[o],n^=s,(s<<=1)>=256&&(s=255&(27^s)));for(var l=0;l<4;++l)r[c]=n^=r[c-32],r[++c]=a^=r[c-32],r[++c]=i^=r[c-32],r[++c]=o^=r[c-32],c++}return r}}]),r}(A);t.AES256Cipher=C;var T=function(){function e(){h(this,e)}return p(e,[{key:"checkOwnerPassword",value:function(e,t,r,n){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(r,e.length+t.length);var o=w(i,0,i.length);return(0,a.isArrayEqual)(o,n)}},{key:"checkUserPassword",value:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var i=w(n,0,n.length);return(0,a.isArrayEqual)(i,r)}},{key:"getOwnerKey",value:function(e,t,r,n){var a=new Uint8Array(e.length+56);a.set(e,0),a.set(t,e.length),a.set(r,e.length+t.length);var i=w(a,0,a.length);return new C(i).decryptBlock(n,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var a=w(n,0,n.length);return new C(a).decryptBlock(r,!1,new Uint8Array(16))}}]),e}();t.PDF17=T;var F=function(){function e(e,t,r){for(var n=w(t,0,t.length).subarray(0,32),a=[0],i=0;i<64||a[a.length-1]>i-32;){var o=e.length+n.length+r.length,s=new Uint8Array(o),c=0;s.set(e,c),c+=e.length,s.set(n,c),c+=n.length,s.set(r,c);for(var u=new Uint8Array(64*o),l=0,f=0;l<64;l++,f+=o)u.set(s,f);a=new O(n.subarray(0,16)).encrypt(u,n.subarray(16,32));for(var h=0,d=0;d<16;d++)h*=1,h%=3,h+=(a[d]>>>0)%3,h%=3;0===h?n=w(a,0,a.length):1===h?n=S(a,0,a.length):2===h&&(n=k(a,0,a.length)),i++}return n.subarray(0,32)}return function(){function t(){h(this,t)}return p(t,[{key:"hash",value:function(t,r,n){return e(t,r,n)}},{key:"checkOwnerPassword",value:function(t,r,n,i){var o=new Uint8Array(t.length+56);o.set(t,0),o.set(r,t.length),o.set(n,t.length+r.length);var s=e(t,o,n);return(0,a.isArrayEqual)(s,i)}},{key:"checkUserPassword",value:function(t,r,n){var i=new Uint8Array(t.length+8);i.set(t,0),i.set(r,t.length);var o=e(t,i,[]);return(0,a.isArrayEqual)(o,n)}},{key:"getOwnerKey",value:function(t,r,n,a){var i=new Uint8Array(t.length+56);i.set(t,0),i.set(r,t.length),i.set(n,t.length+r.length);var o=e(t,i,n);return new C(o).decryptBlock(a,!1,new Uint8Array(16))}},{key:"getUserKey",value:function(t,r,n){var a=new Uint8Array(t.length+8);a.set(t,0),a.set(r,t.length);var i=e(t,a,[]);return new C(i).decryptBlock(n,!1,new Uint8Array(16))}}]),t}()}();t.PDF20=F;var P=function(){function e(t,r){h(this,e),this.StringCipherConstructor=t,this.StreamCipherConstructor=r}return p(e,[{key:"createStream",value:function(e,t){var r=new this.StreamCipherConstructor;return new o.DecryptStream(e,t,(function(e,t){return r.decryptBlock(e,t)}))}},{key:"decryptString",value:function(e){var t=new this.StringCipherConstructor,r=(0,a.stringToBytes)(e);return r=t.decryptBlock(r,!0),(0,a.bytesToString)(r)}},{key:"encryptString",value:function(e){var t=new this.StringCipherConstructor;if(t instanceof A){var r=e.length,n=16-r%16;16!==n&&(e=e.padEnd(16*Math.ceil(r/16),String.fromCharCode(n)));var i=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(i);else for(var o=0;o<16;o++)i[o]=Math.floor(256*Math.random());var s=(0,a.stringToBytes)(e);s=t.encrypt(s,i);var c=new Uint8Array(16+s.length);return c.set(i),c.set(s,16),(0,a.bytesToString)(c)}var u=(0,a.stringToBytes)(e);return u=t.encrypt(u),(0,a.bytesToString)(u)}}]),e}(),_=function(){var e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function t(t,r,n,a,i,o,s,c){var u,l,f=40+n.length+t.length,h=new Uint8Array(f),d=0;if(r)for(l=Math.min(32,r.length);d<l;++d)h[d]=r[d];for(u=0;d<32;)h[d++]=e[u++];for(u=0,l=n.length;u<l;++u)h[d++]=n[u];for(h[d++]=255&i,h[d++]=i>>8&255,h[d++]=i>>16&255,h[d++]=i>>>24&255,u=0,l=t.length;u<l;++u)h[d++]=t[u];o>=4&&!c&&(h[d++]=255,h[d++]=255,h[d++]=255,h[d++]=255);var p=y(h,0,d),m=s>>3;if(o>=3)for(u=0;u<50;++u)p=y(p,0,m);var v,b=p.subarray(0,m);if(o>=3){for(d=0;d<32;++d)h[d]=e[d];for(u=0,l=t.length;u<l;++u)h[d++]=t[u];v=new g(b).encryptBlock(y(h,0,d)),l=b.length;var w=new Uint8Array(l);for(u=1;u<=19;++u){for(var k=0;k<l;++k)w[k]=b[k]^u;v=new g(w).encryptBlock(v)}for(u=0,l=v.length;u<l;++u)if(a[u]!==v[u])return null}else for(u=0,l=(v=new g(b).encryptBlock(e)).length;u<l;++u)if(a[u]!==v[u])return null;return b}var r=i.Name.get("Identity");function n(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=new Uint8Array(r.length+9),o=r.length;for(n=0;n<o;++n)i[n]=r[n];i[n++]=255&e,i[n++]=e>>8&255,i[n++]=e>>16&255,i[n++]=255&t,i[n++]=t>>8&255,a&&(i[n++]=115,i[n++]=65,i[n++]=108,i[n++]=84);var s=y(i,0,n);return s.subarray(0,Math.min(r.length+5,16))}function o(e,t,r,o,s){if(!(0,i.isName)(t))throw new a.FormatError("Invalid crypt filter name.");var c,u=e.get(t.name);if(null!=u&&(c=u.get("CFM")),!c||"None"===c.name)return function(){return new x};if("V2"===c.name)return function(){return new g(n(r,o,s,!1))};if("AESV2"===c.name)return function(){return new O(n(r,o,s,!0))};if("AESV3"===c.name)return function(){return new C(s)};throw new a.FormatError("Unknown crypto method")}var s=function(){function s(n,o,c){h(this,s);var u=n.get("Filter");if(!(0,i.isName)(u,"Standard"))throw new a.FormatError("unknown encryption method");this.dict=n;var l=n.get("V");if(!Number.isInteger(l)||1!==l&&2!==l&&4!==l&&5!==l)throw new a.FormatError("unsupported encryption algorithm");this.algorithm=l;var f=n.get("Length");if(!f)if(l<=3)f=40;else{var d=n.get("CF"),p=n.get("StmF");if((0,i.isDict)(d)&&(0,i.isName)(p)){d.suppressEncryption=!0;var m=d.get(p.name);(f=m&&m.get("Length")||128)<40&&(f<<=3)}}if(!Number.isInteger(f)||f<40||f%8!=0)throw new a.FormatError("invalid key length");var v=(0,a.stringToBytes)(n.get("O")).subarray(0,32),b=(0,a.stringToBytes)(n.get("U")).subarray(0,32),w=n.get("P"),k=n.get("R"),S=(4===l||5===l)&&!1!==n.get("EncryptMetadata");this.encryptMetadata=S;var x,A,O=(0,a.stringToBytes)(o);if(c){if(6===k)try{c=(0,a.utf8StringToString)(c)}catch(e){(0,a.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}x=(0,a.stringToBytes)(c)}if(5!==l)A=t(O,x,v,b,w,k,f,S);else{var C=(0,a.stringToBytes)(n.get("O")).subarray(32,40),P=(0,a.stringToBytes)(n.get("O")).subarray(40,48),_=(0,a.stringToBytes)(n.get("U")).subarray(0,48),I=(0,a.stringToBytes)(n.get("U")).subarray(32,40),E=(0,a.stringToBytes)(n.get("U")).subarray(40,48),j=(0,a.stringToBytes)(n.get("OE")),R=(0,a.stringToBytes)(n.get("UE"));(0,a.stringToBytes)(n.get("Perms")),A=function(e,t,r,n,a,i,o,s,c,u,l,f){if(t){var h=Math.min(127,t.length);t=t.subarray(0,h)}else t=[];var d;return(d=6===e?new F:new T).checkUserPassword(t,s,o)?d.getUserKey(t,c,l):t.length&&d.checkOwnerPassword(t,n,i,r)?d.getOwnerKey(t,a,i,u):null}(k,x,v,C,P,_,b,I,E,j,R)}if(!A&&!c)throw new a.PasswordException("No password given",a.PasswordResponses.NEED_PASSWORD);if(!A&&c){var M=function(t,r,n,a){for(var i=new Uint8Array(32),o=0,s=Math.min(32,t.length);o<s;++o)i[o]=t[o];for(var c=0;o<32;)i[o++]=e[c++];var u,l=y(i,0,o),f=a>>3;if(n>=3)for(c=0;c<50;++c)l=y(l,0,l.length);if(n>=3){u=r;var h=new Uint8Array(f);for(c=19;c>=0;c--){for(var d=0;d<f;++d)h[d]=l[d]^c;u=new g(h).encryptBlock(u)}}else u=new g(l.subarray(0,f)).encryptBlock(r);return u}(x,v,k,f);A=t(O,M,v,b,w,k,f,S)}if(!A)throw new a.PasswordException("Incorrect Password",a.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=A,l>=4){var N=n.get("CF");(0,i.isDict)(N)&&(N.suppressEncryption=!0),this.cf=N,this.stmf=n.get("StmF")||r,this.strf=n.get("StrF")||r,this.eff=n.get("EFF")||this.stmf}}return p(s,[{key:"createCipherTransform",value:function(e,t){if(4===this.algorithm||5===this.algorithm)return new P(o(this.cf,this.stmf,e,t,this.encryptionKey),o(this.cf,this.strf,e,t,this.encryptionKey));var r=n(e,t,this.encryptionKey,!1),a=function(){return new g(r)};return new P(a,a)}}]),s}();return s}();t.CipherTransformFactory=_},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;var a=r(127);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,r,n,a=s(c);function c(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,t)).str=e,n.dict=e.dict,n.decrypt=r,n.nextChunk=null,n.initialized=!1,n}return t=c,(r=[{key:"readBlock",value:function(){var e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),e&&0!==e.length){this.nextChunk=this.str.getBytes(512);var t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);for(var r=this.bufferLength,n=e.length,a=this.ensureBuffer(r+n),i=0;i<n;i++)a[r++]=e[i];this.bufferLength=r}else this.eof=!0}}])&&i(t.prototype,r),n&&i(t,n),c}(a.DecodeStream);t.DecryptStream=l},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0;var n=r(176),a=r(179),i=r(184);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.root=(new i.XFAParser).parse(e._createDocument(t)),this.form=new a.Binder(this.root).bind(),this.pages=this.form[n.$toHTML]()}catch(e){console.log(e)}}var t,r,s;return t=e,s=[{key:"_createDocument",value:function(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}}],(r=[{key:"getPage",value:function(e){return this.pages.children[e]}},{key:"numberPages",get:function(){return this.pages.children.length}}])&&o(t.prototype,r),s&&o(t,s),e}();t.XFAFactory=s},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=t.$uid=t.$toStyle=t.$toHTML=t.$text=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$resolvePrototypes=t.$removeChild=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$isTransparent=t.$isDescendent=t.$isDataValue=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$hasItem=t.$global=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getDataValue=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$clean=t.$childrenToHTML=t.$break=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var a,i=(a=r(2))&&a.__esModule?a:{default:a},o=r(177),s=r(4),c=r(178);function u(e,t,r){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},u(e,t,r||e)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||b(e,t)||function(){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("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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){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 y(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function b(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t,r){return t&&S(e.prototype,t),r&&S(e,r),e}var A=Symbol();t.$acceptWhitespace=A;var O=Symbol();t.$addHTML=O;var C=Symbol();t.$appendChild=C;var T=Symbol();t.$break=T;var F=Symbol();t.$childrenToHTML=F;var P=Symbol();t.$clean=P;var _=Symbol();t.$cleanup=_;var I=Symbol();t.$clone=I;var E=Symbol();t.$consumed=E;var j=Symbol("content");t.$content=j;var R=Symbol("data");t.$data=R;var M=Symbol();t.$dump=M;var N=Symbol("extra");t.$extra=N;var B=Symbol();t.$finalize=B;var D=Symbol();t.$flushHTML=D;var L=Symbol();t.$getAttributeIt=L;var U=Symbol();t.$getAvailableSpace=U;var q=Symbol();t.$getChildrenByClass=q;var X=Symbol();t.$getChildrenByName=X;var H=Symbol();t.$getChildrenByNameIt=H;var $=Symbol();t.$getDataValue=$;var z=Symbol();t.$getRealChildrenByNameIt=z;var G=Symbol();t.$getChildren=G;var W=Symbol();t.$getNextPage=W;var V=Symbol();t.$getParent=V;var K=Symbol();t.$global=K;var Y=Symbol();t.$hasItem=Y;var J=Symbol();t.$hasSettableValue=J;var Z=Symbol();t.$ids=Z;var Q=Symbol();t.$indexOf=Q;var ee=Symbol();t.$insertAt=ee;var te=Symbol();t.$isDataValue=te;var re=Symbol();t.$isDescendent=re;var ne=Symbol();t.$isTransparent=ne;var ae=Symbol(),ie=Symbol("namespaceId");t.$namespaceId=ie;var oe=Symbol("nodeName");t.$nodeName=oe;var se=Symbol();t.$nsAttributes=se;var ce=Symbol();t.$onChild=ce;var ue=Symbol();t.$onChildCheck=ue;var le=Symbol();t.$onText=le;var fe=Symbol();t.$removeChild=fe;var he=Symbol();t.$resolvePrototypes=he;var de=Symbol();t.$searchNode=de;var pe=Symbol();t.$setId=pe;var ge=Symbol();t.$setSetAttributes=ge;var me=Symbol();t.$setValue=me;var ve=Symbol();t.$text=ve;var ye=Symbol();t.$toHTML=ye;var be=Symbol();t.$toStyle=be;var we=Symbol("uid");t.$uid=we;var ke=Symbol(),Se=Symbol(),xe=Symbol(),Ae=Symbol("_children"),Oe=Symbol(),Ce=Symbol(),Te=Symbol(),Fe=Symbol(),Pe=Symbol(),_e=Symbol(),Ie=Symbol(),Ee=Symbol(),je=Symbol(),Re=Symbol("parent"),Me=Symbol(),Ne=Symbol(),Be=0,De=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];k(this,e),this[ie]=t,this[oe]=r,this[Ie]=n,this[Re]=null,this[Ae]=[],this[we]="".concat(r).concat(Be++)}return x(e,[{key:ce,value:function(e){if(!this[Ie]||!this[ue](e))return!1;var t=e[oe],r=this[t];if(!(r instanceof Le))return null!==r&&this[fe](r),this[t]=e,this[C](e),!0;if(r.push(e))return this[C](e),!0;var n="";return this.id?n=" (id: ".concat(this.id,")"):this.name&&(n=" (name: ".concat(this.name," ").concat(this.h.value,")")),(0,s.warn)('XFA - node "'.concat(this[oe],'"').concat(n,' has already enough "').concat(t,'"!')),!1}},{key:ue,value:function(e){return this.hasOwnProperty(e[oe])&&e[ie]===this[ie]}},{key:A,value:function(){return!1}},{key:pe,value:function(e){this.id&&this[ie]===c.NamespaceIds.template.id&&e.set(this.id,this)}},{key:C,value:function(e){e[Re]=this,this[Ae].push(e)}},{key:fe,value:function(e){var t=this[Ae].indexOf(e);this[Ae].splice(t,1)}},{key:J,value:function(){return this.hasOwnProperty("value")}},{key:me,value:function(e){}},{key:le,value:function(e){}},{key:B,value:function(){}},{key:P,value:function(e){delete this[Ie],this[_]&&(e.clean(this[_]),delete this[_])}},{key:Y,value:function(){return!1}},{key:Q,value:function(e){return this[Ae].indexOf(e)}},{key:ee,value:function(e,t){t[Re]=this,this[Ae].splice(e,0,t)}},{key:ne,value:function(){return""===this.name}},{key:ae,value:function(){return""}},{key:ve,value:function(){return 0===this[Ae].length?this[j]:this[Ae].map((function(e){return e[ve]()})).join("")}},{key:xe,get:function(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,n=t._attributes=new Set,a=y(Object.getOwnPropertyNames(this));try{for(a.s();!(r=a.n()).done;){var i=r.value;if(null===this[i]||this[i]instanceof e||this[i]instanceof Le)break;n.add(i)}}catch(e){a.e(e)}finally{a.f()}}return(0,s.shadow)(this,xe,t._attributes)}},{key:re,value:function(e){for(var t=this;t;){if(t===e)return!0;t=t[V]()}return!1}},{key:V,value:function(){return this[Re]}},{key:G,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[e]:this[Ae]}},{key:M,value:function(){var t=Object.create(null);this[j]&&(t.$content=this[j]);var r,n=y(Object.getOwnPropertyNames(this));try{for(n.s();!(r=n.n()).done;){var a=r.value,i=this[a];null!==i&&(i instanceof e?t[a]=i[M]():i instanceof Le?i.isEmpty()||(t[a]=i.dump()):t[a]=i)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:be,value:function(){return null}},{key:ye,value:function(){return o.HTMLResult.EMPTY}},{key:Fe,value:i.default.mark((function e(t,r){var n,a,o,s,c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=y(this[G]()),e.prev=1,n.s();case 3:if((a=n.n()).done){e.next=13;break}if(o=a.value,t&&r!==t.has(o[oe])){e.next=11;break}return s=this[U](),(c=o[ye](s)).success||(this[N].failingNode=o),e.next=11,c;case 11:e.next=3;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(1),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[1,15,18,21]])}))},{key:D,value:function(){return null}},{key:O,value:function(e,t){this[N].children.push(e)}},{key:U,value:function(){}},{key:F,value:function(e){var t=e.filter,r=void 0===t?null:t,n=e.include,a=void 0===n||n;if(this[N].generator){var i=this[U](),o=this[N].failingNode[ye](i);if(!o.success)return!1;o.html&&this[O](o.html,o.bbox),delete this[N].failingNode}else this[N].generator=this[Fe](r,a);for(;;){var s=this[N].generator.next();if(s.done)break;var c=s.value;if(!c.success)return!1;c.html&&this[O](c.html,c.bbox)}return this[N].generator=null,!0}},{key:ge,value:function(e){(e.use||e.id)&&(this[Me]=new Set(Object.keys(e)))}},{key:_e,value:function(e){var t=this[xe],r=this[Me];return v(e).filter((function(e){return t.has(e)&&!r.has(e)}))}},{key:he,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=y(this[Ae]);try{for(n.s();!(t=n.n()).done;){var a=t.value,i=a[Pe](e,r);i?a[ke](i,e,r):a[he](e,r)}}catch(e){n.e(e)}finally{n.f()}}},{key:Pe,value:function(e,t){var r=this.use;if(r&&r.startsWith("#")){var n=r.slice(1),a=e.get(n);if(this.use="",!a)return(0,s.warn)("XFA - Invalid prototype id: ".concat(n,".")),null;if(a[oe]!==this[oe])return(0,s.warn)("XFA - Incompatible prototype: ".concat(a[oe]," !== ").concat(this[oe],".")),null;if(t.has(a))return(0,s.warn)("XFA - Cycle detected in prototypes use."),null;t.add(a);var i=a[Pe](e,t);return i?(a[ke](i,e,t),t.delete(a),a):(t.delete(a),a)}return null}},{key:ke,value:function(e,t,r){if(r.has(e))(0,s.warn)("XFA - Cycle detected in prototypes use.");else{!this[j]&&e[j]&&(this[j]=e[j]);var n=new Set(r);n.add(e);var a,i=y(this[_e](e[Me]));try{for(i.s();!(a=i.n()).done;){var o=a.value;this[o]=e[o],this[Me]&&this[Me].add(o)}}catch(e){i.e(e)}finally{i.f()}var c,u=y(Object.getOwnPropertyNames(this));try{for(u.s();!(c=u.n()).done;){var l=c.value;if(!this[xe].has(l)){var f=this[l],h=e[l];if(f instanceof Le){var d,p=y(f[Ae]);try{for(p.s();!(d=p.n()).done;)d.value[he](t,r)}catch(e){p.e(e)}finally{p.f()}for(var g=f[Ae].length,m=h[Ae].length;g<m;g++){var v=e[Ae][g][I]();if(!f.push(v))break;v[Re]=this,this[Ae].push(v),v[he](t,n)}}else if(null===f){if(null!==h){var b=h[I]();b[Re]=this,this[l]=b,this[Ae].push(b),b[he](t,n)}}else f[he](t,r)}}}catch(e){u.e(e)}finally{u.f()}}}},{key:I,value:function(){var t,r=Object.create(Object.getPrototypeOf(this)),n=y(Object.getOwnPropertySymbols(this));try{for(n.s();!(t=n.n()).done;){var a=t.value;try{r[a]=this[a]}catch(e){(0,s.shadow)(r,a,this[a])}}}catch(e){n.e(e)}finally{n.f()}r[Ae]=[];var i,o=y(Object.getOwnPropertyNames(this));try{for(o.s();!(i=o.n()).done;){var c=i.value;if(this[xe].has(c))r[c]=e[Oe](this[c]);else{var u=this[c];r[c]=u instanceof Le?new Le(u[Ee]):null}}}catch(e){o.e(e)}finally{o.f()}var l,f=y(this[Ae]);try{for(f.s();!(l=f.n()).done;){var h=l.value,d=h[oe],p=h[I]();r[Ae].push(p),p[Re]=r,null===r[d]?r[d]=p:r[d][Ae].push(p)}}catch(e){f.e(e)}finally{f.f()}return r}},{key:G,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[Ae].filter((function(t){return t[oe]===e})):this[Ae]}},{key:q,value:function(e){return this[e]}},{key:X,value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[H](e,t,r))}},{key:H,value:i.default.mark((function e(t,r){var n,a,o,s,c=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(c.length>2&&void 0!==c[2])||c[2],"parent"!==t){e.next=5;break}return e.next=4,this[Re];case 4:return e.abrupt("return");case 5:a=y(this[Ae]),e.prev=6,a.s();case 8:if((o=a.n()).done){e.next=20;break}if((s=o.value)[oe]!==t){e.next=13;break}return e.next=13,s;case 13:if(s.name!==t){e.next=16;break}return e.next=16,s;case 16:if(!r&&!s[ne]()){e.next=18;break}return e.delegateYield(s[H](t,r,!1),"t0",18);case 18:e.next=8;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(6),a.e(e.t1);case 25:return e.prev=25,a.f(),e.finish(25);case 28:if(!n||!this[xe].has(t)){e.next=31;break}return e.next=31,new Ue(this,t,this[t]);case 31:case"end":return e.stop()}}),e,this,[[6,22,25,28]])}))}],[{key:Oe,value:function(t){return Array.isArray(t)?t.map((function(t){return e[Oe](t)})):t instanceof Object?Object.assign({},t):t}}]),e}();t.XFAObject=De;var Le=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;k(this,e),this[Ee]=t,this[Ae]=[]}return x(e,[{key:"push",value:function(e){return this[Ae].length<=this[Ee]?(this[Ae].push(e),!0):((0,s.warn)('XFA - node "'.concat(e[oe],'" accepts no more than ').concat(this[Ee]," children")),!1)}},{key:"isEmpty",value:function(){return 0===this[Ae].length}},{key:"dump",value:function(){return 1===this[Ae].length?this[Ae][0][M]():this[Ae].map((function(e){return e[M]()}))}},{key:I,value:function(){var t=new e(this[Ee]);return t[Ae]=this[Ae].map((function(e){return e[I]()})),t}},{key:"children",get:function(){return this[Ae]}},{key:"clear",value:function(){this[Ae].length=0}}]),e}();t.XFAObjectArray=Le;var Ue=function(){function e(t,r,n){k(this,e),this[Re]=t,this[oe]=r,this[j]=n,this[E]=!1}return x(e,[{key:V,value:function(){return this[Re]}},{key:te,value:function(){return!0}},{key:ve,value:function(){return this[j]}},{key:re,value:function(e){return this[Re]===e||this[Re][re](e)}}]),e}();t.XFAAttribute=Ue;var qe=function(e){f(r,e);var t=d(r);function r(e,n){var a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k(this,r),(a=t.call(this,e,n))[j]="",a[Ce]=null,"#text"!==n){var o=new Map;a[Se]=o;for(var s=0,c=Object.entries(i);s<c.length;s++){var u=l(c[s],2),f=u[0],h=u[1];o.set(f,new Ue(g(a),f,h))}if(i.hasOwnProperty(se)){var d=i[se].xfa.dataNode;void 0!==d&&("dataGroup"===d?a[Ce]=!1:"dataValue"===d&&(a[Ce]=!0))}}return a[E]=!1,a}return x(r,[{key:ce,value:function(e){if(this[j]){var t=new r(this[ie],"#text");this[C](t),t[j]=this[j],this[j]=""}return this[C](e),!0}},{key:le,value:function(e){this[j]+=e}},{key:B,value:function(){if(this[j]&&this[Ae].length>0){var e=new r(this[ie],"#text");this[C](e),e[j]=this[j],delete this[j]}}},{key:ye,value:function(){return"#text"===this[oe]?o.HTMLResult.success({name:"#text",value:this[j]}):o.HTMLResult.EMPTY}},{key:G,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this[Ae].filter((function(t){return t[oe]===e})):this[Ae]}},{key:q,value:function(e){var t=this[Se].get(e);return void 0!==t?t:this[G](e)}},{key:H,value:i.default.mark((function(e,t){var r,n,a,o;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=this[Se].get(e),!r){i.next=4;break}return i.next=4,r;case 4:n=y(this[Ae]),i.prev=5,n.s();case 7:if((a=n.n()).done){i.next=16;break}if((o=a.value)[oe]!==e){i.next=12;break}return i.next=12,o;case 12:if(!t){i.next=14;break}return i.delegateYield(o[H](e,t),"t0",14);case 14:i.next=7;break;case 16:i.next=21;break;case 18:i.prev=18,i.t1=i.catch(5),n.e(i.t1);case 21:return i.prev=21,n.f(),i.finish(21);case 24:case"end":return i.stop()}}),r,this,[[5,18,21,24]])}))},{key:L,value:i.default.mark((function(e,t){var r,n,a,o;return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=this[Se].get(e),!r||t&&r[E]){i.next=4;break}return i.next=4,r;case 4:n=y(this[Ae]),i.prev=5,n.s();case 7:if((a=n.n()).done){i.next=12;break}return o=a.value,i.delegateYield(o[L](e,t),"t0",10);case 10:i.next=7;break;case 12:i.next=17;break;case 14:i.prev=14,i.t1=i.catch(5),n.e(i.t1);case 17:return i.prev=17,n.f(),i.finish(17);case 20:case"end":return i.stop()}}),r,this,[[5,14,17,20]])}))},{key:z,value:i.default.mark((function e(t,r,n){var a,o,s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=y(this[Ae]),e.prev=1,a.s();case 3:if((o=a.n()).done){e.next=12;break}if((s=o.value)[oe]!==t||n&&s[E]){e.next=8;break}return e.next=8,s;case 8:if(!r){e.next=10;break}return e.delegateYield(s[z](t,r,n),"t0",10);case 10:e.next=3;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(1),a.e(e.t1);case 17:return e.prev=17,a.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[1,14,17,20]])}))},{key:te,value:function(){return null===this[Ce]?0===this[Ae].length||this[Ae][0][ie]===c.NamespaceIds.xhtml.id:this[Ce]}},{key:$,value:function(){return null===this[Ce]?0===this[Ae].length?this[j].trim():this[Ae][0][ie]===c.NamespaceIds.xhtml.id?this[Ae][0][ve]().trim():null:this[j].trim()}},{key:M,value:function(){var e=Object.create(null);this[j]&&(e.$content=this[j]),e.$name=this[oe],e.children=[];var t,r=y(this[Ae]);try{for(r.s();!(t=r.n()).done;){var n=t.value;e.children.push(n[M]())}}catch(e){r.e(e)}finally{r.f()}e.attributes=Object.create(null);var a,i=y(this[Se]);try{for(i.s();!(a=i.n()).done;){var o=l(a.value,2),s=o[0],c=o[1];e.attributes[s]=c[j]}}catch(e){i.e(e)}finally{i.f()}return e}}]),r}(De);t.XmlObject=qe;var Xe=function(e){f(r,e);var t=d(r);function r(e,n){var a;return k(this,r),(a=t.call(this,e,n))[j]="",a}return x(r,[{key:le,value:function(e){this[j]+=e}},{key:B,value:function(){}}]),r}(De);t.ContentObject=Xe;var He=function(e){f(r,e);var t=d(r);function r(e,n,a){var i;return k(this,r),(i=t.call(this,e,n))[je]=a,i}return x(r,[{key:B,value:function(){var e=this;this[j]=(0,o.getKeyword)({data:this[j],defaultValue:this[je][0],validate:function(t){return e[je].includes(t)}})}},{key:P,value:function(e){u(m(r.prototype),P,this).call(this,e),delete this[je]}}]),r}(Xe);t.OptionObject=He;var $e=function(e){f(r,e);var t=d(r);function r(){return k(this,r),t.apply(this,arguments)}return x(r,[{key:B,value:function(){this[j]=this[j].trim()}}]),r}(Xe);t.StringObject=$e;var ze=function(e){f(r,e);var t=d(r);function r(e,n,a,i){var o;return k(this,r),(o=t.call(this,e,n))[Te]=a,o[Ne]=i,o}return x(r,[{key:B,value:function(){this[j]=(0,o.getInteger)({data:this[j],defaultValue:this[Te],validate:this[Ne]})}},{key:P,value:function(e){u(m(r.prototype),P,this).call(this,e),delete this[Te],delete this[Ne]}}]),r}(Xe);t.IntegerObject=ze;var Ge=function(e){f(r,e);var t=d(r);function r(e,n){return k(this,r),t.call(this,e,n,0,(function(e){return 1===e}))}return r}(ze);t.Option01=Ge;var We=function(e){f(r,e);var t=d(r);function r(e,n){return k(this,r),t.call(this,e,n,1,(function(e){return 0===e}))}return r}(ze);t.Option10=We},(e,t)=>{"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){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){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.getBBox=function(e){var t=-1;if(!e)return{x:t,y:t,width:t,height:t};var r=e.trim().split(/\\s*,\\s*/).map((function(e){return c(e,"-1")}));if(r.length<4||r[2]<0||r[3]<0)return{x:t,y:t,width:t,height:t};var a=n(r,4),i=a[0],o=a[1],s=a[2],u=a[3];return{x:i,y:o,width:s,height:u}},t.getColor=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],r=n(t,3),a=r[0],i=r[1],o=r[2];if(!e)return{r:a,g:i,b:o};var s=e.trim().split(/\\s*,\\s*/).map((function(e){return Math.min(Math.max(0,parseInt(e.trim(),10)),255)})).map((function(e){return isNaN(e)?0:e}));if(s.length<3)return{r:a,g:i,b:o};var c=n(s,3);return a=c[0],i=c[1],o=c[2],{r:a,g:i,b:o}},t.getFloat=function(e){var t=e.data,r=e.defaultValue,n=e.validate;if(!t)return r;t=t.trim();var a=parseFloat(t);return!isNaN(a)&&n(a)?a:r},t.getInteger=function(e){var t=e.data,r=e.defaultValue,n=e.validate;if(!t)return r;t=t.trim();var a=parseInt(t,10);return!isNaN(a)&&n(a)?a:r},t.getKeyword=s,t.getMeasurement=c,t.getRatio=function(e){if(!e)return{num:1,den:1};var t=e.trim().split(/\\s*:\\s*/).map((function(e){return parseFloat(e)})).filter((function(e){return!isNaN(e)}));if(1===t.length&&t.push(1),0===t.length)return{num:1,den:1};var r=n(t,2),a=r[0],i=r[1];return{num:a,den:i}},t.getRelevant=function(e){return e?e.trim().split(/\\s+/).map((function(e){return{excluded:"-"===e[0],viewname:e.substring(1)}})):[]},t.getStringOption=function(e,t){return s({data:e,defaultValue:t[0],validate:function(e){return t.includes(e)}})},t.HTMLResult=void 0;var i={pt:function(e){return e},cm:function(e){return e/2.54*72},mm:function(e){return e/25.4*72},in:function(e){return 72*e},px:function(e){return e}},o=/([+-]?[0-9]+\\.?[0-9]*)(.*)/;function s(e){var t=e.data,r=e.defaultValue,n=e.validate;return t&&n(t=t.trim())?t:r}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(t=t||"0",!e)return c(t);var r=e.trim().match(o);if(!r)return c(t);var a=n(r,3),s=a[1],u=a[2],l=parseFloat(s);if(isNaN(l))return c(t);if(0===l)return 0;var f=i[u];return f?f(l):l}var u=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.success=t,this.html=r,this.bbox=n}var t,n,a;return t=e,a=[{key:"success",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new e(!0,t,r)}}],(n=null)&&r(t.prototype,n),a&&r(t,a),e}();t.HTMLResult=u,u.FAILURE=new u(!1,null,null),u.EMPTY=new u(!0,null,null)},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;var r=Symbol();t.$buildXFAObject=r,t.NamespaceIds={config:{id:0,check:function(e){return e.startsWith("http://www.xfa.org/schema/xci/")}},connectionSet:{id:1,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")}},datasets:{id:2,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-data/")}},form:{id:3,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-form/")}},localeSet:{id:4,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")}},pdf:{id:5,check:function(e){return"http://ns.adobe.com/xdp/pdf/"===e}},signature:{id:6,check:function(e){return"http://www.w3.org/2000/09/xmldsig#"===e}},sourceSet:{id:7,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-source-set/")}},stylesheet:{id:8,check:function(e){return"http://www.w3.org/1999/XSL/Transform"===e}},template:{id:9,check:function(e){return e.startsWith("http://www.xfa.org/schema/xfa-template/")}},xdc:{id:10,check:function(e){return e.startsWith("http://www.xfa.org/schema/xdc/")}},xdp:{id:11,check:function(e){return"http://ns.adobe.com/xdp/"===e}},xfdf:{id:12,check:function(e){return"http://ns.adobe.com/xfdf/"===e}},xhtml:{id:13,check:function(e){return"http://www.w3.org/1999/xhtml"===e}},xmpmeta:{id:14,check:function(e){return"http://ns.adobe.com/xmpmeta/"===e}}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0;var n=r(176),a=r(180),i=r(183),o=r(178),s=r(4);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||l(e,t)||function(){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 u(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e){var t=new a.Text({});return t[n.$content]=e,t}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root=t,this.datasets=t.datasets,t.datasets&&t.datasets.data?(this.emptyMerge=!1,this.data=t.datasets.data):(this.emptyMerge=!0,this.data=new n.XmlObject(o.NamespaceIds.datasets.id,"data")),this.root.form=this.form=t.template[n.$clone]()}var t,r,l;return t=e,(r=[{key:"_isConsumeData",value:function(){return!this.emptyMerge&&this._mergeMode}},{key:"_isMatchTemplate",value:function(){return!this._isConsumeData()}},{key:"bind",value:function(){return this._bindElement(this.form,this.data),this.form}},{key:"getData",value:function(){return this.data}},{key:"_bindValue",value:function(e,t,r){if(e[n.$hasSettableValue]())if(t[n.$isDataValue]()){var i=t[n.$getDataValue]();e[n.$setValue](d(i)),e[n.$data]=t}else if(e instanceof a.Field&&e.ui&&e.ui.choiceList&&"multiSelect"===e.ui.choiceList.open){var o=t[n.$getChildren]().map((function(e){return e[n.$content].trim()})).join("\\n");e[n.$setValue](d(o)),e[n.$data]=t}else this._isConsumeData()&&(0,s.warn)("XFA - Nodes haven't the same type.");else!t[n.$isDataValue]()||this._isMatchTemplate()?(this._bindElement(e,t),e[n.$data]=t):(0,s.warn)("XFA - Nodes haven't the same type.")}},{key:"_findDataByNameToConsume",value:function(e,t,r,a){if(!e)return null;for(var i,s,c=0;c<3;c++){for(i=r[n.$getRealChildrenByNameIt](e,!1,!0);s=i.next().value;)if(t===s[n.$isDataValue]())return s;if(r[n.$namespaceId]===o.NamespaceIds.datasets.id&&"data"===r[n.$nodeName])break;r=r[n.$getParent]()}if(!a)return null;for(i=this.data[n.$getRealChildrenByNameIt](e,!1,!1);s=i.next().value;)if(s[n.$global])return s;return(s=(i=this.data[n.$getAttributeIt](e,!0)).next().value)&&s[n.$isDataValue]()?s:null}},{key:"_setProperties",value:function(e,t){if(e.hasOwnProperty("setProperty")){var r,o=u(e.setProperty.children);try{for(o.s();!(r=o.n()).done;){var l=r.value,f=l.ref,h=l.target;if(!l.connection&&f){var d=c((0,i.searchNode)(this.root,t,f,!1,!1),1)[0];if(d)if(d[n.$isDescendent](this.data)){var p=c((0,i.searchNode)(this.root,e,h,!1,!1),1)[0];if(p)if(p[n.$isDescendent](e)){var g=p[n.$getParent]();if(p instanceof a.SetProperty||g instanceof a.SetProperty)(0,s.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(p instanceof a.BindItems||g instanceof a.BindItems)(0,s.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var m=d[n.$text](),v=p[n.$nodeName];if(p instanceof n.XFAAttribute){var y=Object.create(null);y[v]=m;var b=Reflect.construct(Object.getPrototypeOf(g).constructor,[y]);g[v]=b[v]}else p.hasOwnProperty(n.$content)?(p[n.$data]=d,p[n.$content]=m,p[n.$finalize]()):(0,s.warn)("XFA - Invalid node to use in setProperty")}}else(0,s.warn)("XFA - Invalid target: must be a property or subproperty.");else(0,s.warn)("XFA - Invalid target: ".concat(h,"."))}else(0,s.warn)("XFA - Invalid node: must be a data node.");else(0,s.warn)("XFA - Invalid reference: ".concat(f,"."))}}}catch(e){o.e(e)}finally{o.f()}}}},{key:"_bindItems",value:function(e,t){if(e.hasOwnProperty("items")&&e.hasOwnProperty("bindItems")&&!e.bindItems.isEmpty()){var r,o=u(e.items.children);try{for(o.s();!(r=o.n()).done;){var l=r.value;e[n.$removeChild](l)}}catch(e){o.e(e)}finally{o.f()}e.items.clear();var f=new a.Items({}),h=new a.Items({});e[n.$appendChild](f),e.items.push(f),e[n.$appendChild](h),e.items.push(h);var p,g=u(e.bindItems.children);try{for(g.s();!(p=g.n()).done;){var m=p.value,v=m.ref,y=m.labelRef,b=m.valueRef;if(!m.connection&&v){var w=(0,i.searchNode)(this.root,t,v,!1,!1);if(w){var k,S=u(w);try{for(S.s();!(k=S.n()).done;){var x=k.value;if(x[n.$isDescendent](this.datasets)){var A=c((0,i.searchNode)(this.root,x,y,!0,!1),1)[0];if(A)if(A[n.$isDescendent](this.datasets)){var O=c((0,i.searchNode)(this.root,x,b,!0,!1),1)[0];if(O)if(O[n.$isDescendent](this.datasets)){var C=d(A[n.$text]()),T=d(O[n.$text]());f[n.$appendChild](C),f.text.push(C),h[n.$appendChild](T),h.text.push(T)}else(0,s.warn)("XFA - Invalid value: must be a datasets child.");else(0,s.warn)("XFA - Invalid value: ".concat(b,"."))}else(0,s.warn)("XFA - Invalid label: must be a datasets child.");else(0,s.warn)("XFA - Invalid label: ".concat(y,"."))}else(0,s.warn)("XFA - Invalid ref (".concat(v,"): must be a datasets child."))}}catch(e){S.e(e)}finally{S.f()}}else(0,s.warn)("XFA - Invalid reference: ".concat(v,"."))}}}catch(e){g.e(e)}finally{g.f()}}}},{key:"_bindOccurrences",value:function(e,t,r){var a;if(t.length>1&&(a=e[n.$clone]()),this._bindValue(e,t[0],r),this._setProperties(e,t[0]),this._bindItems(e,t[0]),1!==t.length)for(var i=e[n.$getParent](),o=e[n.$nodeName],s=i[n.$indexOf](e),c=1,u=t.length;c<u;c++){var l=t[c],f=a[n.$clone]();f.occur.min=1,f.occur.max=1,f.occur.initial=1,i[o].push(f),i[n.$insertAt](s+c,f),this._bindValue(f,l,r),this._setProperties(f,l),this._bindItems(f,l)}}},{key:"_createOccurrences",value:function(e){if(this.emptyMerge){var t=e.occur;if(t&&!(t.initial<=1))for(var r=e[n.$getParent](),a=e[n.$nodeName],i=0,o=t.initial;i<o;i++){var s=e[n.$clone]();s.occur.min=1,s.occur.max=1,s.occur.initial=1,r[a].push(s),r[n.$appendChild](s)}}}},{key:"_getOccurInfo",value:function(e){var t=e.occur,r=e.name;if(!t||!r)return[1,1];var n=-1===t.max?1/0:t.max;return[t.min,n]}},{key:"_bindElement",value:function(e,t){var r=[];this._createOccurrences(e);var a,o=u(e[n.$getChildren]());try{for(o.s();!(a=o.n()).done;){var l=a.value;if(!l[n.$data]){void 0===this._mergeMode&&"subform"===l[n.$nodeName]&&(this._mergeMode="consumeData"===l.mergeMode);var f=!1,h=null,d=null,p=null;if(l.bind){switch(l.bind.match){case"none":this._bindElement(l,t);continue;case"global":f=!0;break;case"dataRef":if(!l.bind.ref){(0,s.warn)("XFA - ref is empty in node ".concat(l[n.$nodeName],".")),this._bindElement(l,t);continue}d=l.bind.ref}l.bind.picture&&(h=l.bind.picture[n.$content])}var g=c(this._getOccurInfo(l),2),m=g[0],v=g[1];if(d)null===(p=(0,i.searchNode)(this.root,t,d,!0,!1))?(p=(0,i.createDataNode)(this.data,t,d),this._isConsumeData()&&(p[n.$consumed]=!0),p=[p]):(this._isConsumeData()&&(p=p.filter((function(e){return!e[n.$consumed]}))),p.length>v?p=p.slice(0,v):0===p.length&&(p=null),p&&this._isConsumeData()&&p.forEach((function(e){e[n.$consumed]=!0})));else{if(!l.name){this._bindElement(l,t);continue}if(this._isConsumeData()){for(var y=[];y.length<v;){var b=this._findDataByNameToConsume(l.name,l[n.$hasSettableValue](),t,f);if(!b)break;b[n.$consumed]=!0,y.push(b)}p=y.length>0?y:null}else(p=t[n.$getRealChildrenByNameIt](l.name,!1,!1).next().value)||(p=new n.XmlObject(t[n.$namespaceId],l.name),t[n.$appendChild](p)),p=[p]}if(p){if(p.length<m){(0,s.warn)("XFA - Must have at least ".concat(m," occurrences: ").concat(e[n.$nodeName],"."));continue}this._bindOccurrences(l,p,h)}else m>0?(this._setProperties(l,t),this._bindItems(l,t),this._bindElement(l,t)):r.push(l)}}}catch(e){o.e(e)}finally{o.f()}r.forEach((function(e){return e[n.$getParent]()[n.$removeChild](e)}))}}])&&h(t.prototype,r),l&&h(t,l),e}();t.Binder=p},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Value=t.Text=t.TemplateNamespace=t.Template=t.SetProperty=t.Items=t.Field=t.BindItems=void 0;var a=r(176),i=r(178),o=r(181),s=r(182),c=r(177),u=r(4),l=r(183);function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||d(e,t)||function(){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 d(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var a=S(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var x=i.NamespaceIds.template.id;function A(e,t){if(!e.value){var r=new _t({});e[a.$appendChild](r),e.value=r}e.value[a.$setValue](t)}function O(e){for(var t=e[a.$getParent]();!(t instanceof wt);)t=t[a.$getParent]();return t}function C(e,t){if(""!==e.w&&Math.round(e.w+e.x-t.width)>1){var r=O(e)[a.$extra].currentContentArea;return e.w+e.x>r.w?0:1}if(""!==e.h&&Math.round(e.h+e.y-t.height)>1){var n=O(e)[a.$extra].currentContentArea;return e.h+e.y>n.h?0:1}return 2}var T=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"appearanceFilter")).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),F=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"arc",!0)).circular=(0,c.getInteger)({data:e.circular,defaultValue:0,validate:function(e){return 1===e}}),n.hand=(0,c.getStringOption)(e.hand,["even","left","right"]),n.id=e.id||"",n.startAngle=(0,c.getFloat)({data:e.startAngle,defaultValue:0,validate:function(e){return!0}}),n.sweepAngle=(0,c.getFloat)({data:e.sweepAngle,defaultValue:360,validate:function(e){return!0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.edge=null,n.fill=null,n}return r}(a.XFAObject),P=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"area",!0)).colSpan=(0,c.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.id=e.id||"",n.name=e.name||"",n.relevant=(0,c.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.x=(0,c.getMeasurement)(e.x,"0pt"),n.y=(0,c.getMeasurement)(e.y,"0pt"),n.desc=null,n.extras=null,n.area=new a.XFAObjectArray,n.draw=new a.XFAObjectArray,n.exObject=new a.XFAObjectArray,n.exclGroup=new a.XFAObjectArray,n.field=new a.XFAObjectArray,n.subform=new a.XFAObjectArray,n.subformSet=new a.XFAObjectArray,n}return m(r,[{key:a.$isTransparent,value:function(){return!0}},{key:a.$addHTML,value:function(e,t){var r=h(t,4),n=r[0],i=r[1],o=r[2],s=r[3];this[a.$extra].width=Math.max(this[a.$extra].width,n+o),this[a.$extra].height=Math.max(this[a.$extra].height,i+s),this[a.$extra].children.push(e)}},{key:a.$getAvailableSpace,value:function(){return this[a.$extra].availableSpace}},{key:a.$toHTML,value:function(e){var t=(0,o.toStyle)(this,"position"),r={style:t,id:this[a.$uid],class:"xfaArea"};this.name&&(r.xfaName=this.name);var n=[];if(this[a.$extra]={children:n,width:0,height:0,availableSpace:e},!this[a.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0}))return delete this[a.$extra],c.HTMLResult.empty;t.width=(0,o.measureToString)(this[a.$extra].width),t.height=(0,o.measureToString)(this[a.$extra].height);var i={name:"div",attributes:r,children:n},s=[this.x,this.y,this[a.$extra].width,this[a.$extra].height];return delete this[a.$extra],c.HTMLResult.success(i,s)}}]),r}(a.XFAObject),_=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"assist",!0)).id=e.id||"",n.role=e.role||"",n.use=e.use||"",n.usehref=e.usehref||"",n.speak=null,n.toolTip=null,n}return r}(a.XFAObject),I=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"barcode",!0)).charEncoding=(0,c.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-[0-9]{2}/)}}),n.checksum=(0,c.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),n.dataColumnCount=(0,c.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:function(e){return e>=0}}),n.dataLength=(0,c.getInteger)({data:e.dataLength,defaultValue:-1,validate:function(e){return e>=0}}),n.dataPrep=(0,c.getStringOption)(e.dataPrep,["none","flateCompress"]),n.dataRowCount=(0,c.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:function(e){return e>=0}}),n.endChar=e.endChar||"",n.errorCorrectionLevel=(0,c.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:function(e){return e>=0&&e<=8}}),n.id=e.id||"",n.moduleHeight=(0,c.getMeasurement)(e.moduleHeight,"5mm"),n.moduleWidth=(0,c.getMeasurement)(e.moduleWidth,"0.25mm"),n.printCheckDigit=(0,c.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:function(e){return 1===e}}),n.rowColumnRatio=(0,c.getRatio)(e.rowColumnRatio),n.startChar=e.startChar||"",n.textLocation=(0,c.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),n.truncate=(0,c.getInteger)({data:e.truncate,defaultValue:0,validate:function(e){return 1===e}}),n.type=(0,c.getStringOption)(e.type?e.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),n.upsMode=(0,c.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),n.use=e.use||"",n.usehref=e.usehref||"",n.wideNarrowRatio=(0,c.getRatio)(e.wideNarrowRatio),n.encrypt=null,n.extras=null,n}return r}(a.XFAObject),E=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"bind",!0)).match=(0,c.getStringOption)(e.match,["once","dataRef","global","none"]),n.ref=e.ref||"",n.picture=null,n}return r}(a.XFAObject),j=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"bindItems")).connection=e.connection||"",n.labelRef=e.labelRef||"",n.ref=e.ref||"",n.valueRef=e.valueRef||"",n}return r}(a.XFAObject);t.BindItems=j;var R=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"bookend")).id=e.id||"",n.leader=e.leader||"",n.trailer=e.trailer||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.XFAObject),M=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"boolean")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$toHTML,value:function(e){return c.HTMLResult.success(1===this[a.$content])}}]),r}(a.Option01),N=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"border",!0)).break=(0,c.getStringOption)(e.break,["close","open"]),n.hand=(0,c.getStringOption)(e.hand,["even","left","right"]),n.id=e.id||"",n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,c.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.corner=new a.XFAObjectArray(4),n.edge=new a.XFAObjectArray(4),n.extras=null,n.fill=null,n.margin=null,n}return m(r,[{key:a.$toStyle,value:function(e,t){var r=this.edge.children.slice();if(r.length<4)for(var n=r[r.length-1]||new se({}),i=r.length;i<4;i++)r.push(n);e=e||[0,0,0,0];for(var s=0;s<4;s++)e[s]=r[s].thickness;t=t||[0,0,0,0];var c,u=r.map((function(e){var t=e[a.$toStyle]();return t.color=t.color||"#000000",t}));this.margin?(c=this.margin[a.$toStyle](),t[0]=this.margin.topInset,t[1]=this.margin.rightInset,t[2]=this.margin.bottomInset,t[3]=this.margin.leftInset):c=Object.create(null);var l=!1,f=this[a.$getParent]();(f?f[a.$getParent]():null)instanceof Ft&&(l=!0),this.fill&&Object.assign(c,this.fill[a.$toStyle]());var h=!1;if(this.corner.children.some((function(e){return 0!==e.radius}))){var d=this.corner.children.map((function(e){return e[a.$toStyle]()}));if(2===d.length||3===d.length)for(var p=d[d.length-1],g=d.length;g<4;g++)d.push(p);c.borderRadius=d.map((function(e){return e.radius})).join(" "),h=!0}var m=u[0];if(!h&&(this.edge.children.length<=1||u.every((function(e){return e.style===m.style&&e.width===m.width&&e.color===m.color}))&&t.every((function(e){return e===t[0]})))){var v;switch(this.presence){case"invisible":case"hidden":v="";break;case"inactive":v="none";break;default:v=m.style}c.outline="".concat(m.width," ").concat(m.color," ").concat(v);var y=r[0].thickness+t[0];c.outlineOffset="-".concat((0,o.measureToString)(y)),l&&(c.padding="".concat((0,o.measureToString)(y+1)))}else{switch(this.presence){case"invisible":case"hidden":c.borderStyle="";break;case"inactive":c.borderStyle="none";break;default:c.borderStyle=u.map((function(e){return e.style})).join(" ")}c.borderWidth=u.map((function(e){return e.width})).join(" "),c.borderColor=u.map((function(e){return e.color})).join(" ")}return c}}]),r}(a.XFAObject),B=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"break",!0)).after=(0,c.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),n.afterTarget=e.afterTarget||"",n.before=(0,c.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),n.beforeTarget=e.beforeTarget||"",n.bookendLeader=e.bookendLeader||"",n.bookendTrailer=e.bookendTrailer||"",n.id=e.id||"",n.overflowLeader=e.overflowLeader||"",n.overflowTarget=e.overflowTarget||"",n.overflowTrailer=e.overflowTrailer||"",n.startNew=(0,c.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return r}(a.XFAObject),D=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"breakAfter",!0)).id=e.id||"",n.leader=e.leader||"",n.startNew=(0,c.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),n.target=e.target||"",n.targetType=(0,c.getStringOption)(e.targetType,["auto","contentArea","pageArea","pageEven","pageOdd"]),n.trailer=e.trailer||"",n.use=e.use||"",n.usehref=e.usehref||"",n.script=null,n}return r}(a.XFAObject),L=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"breakBefore",!0)).id=e.id||"",n.leader=e.leader||"",n.startNew=(0,c.getInteger)({data:e.startNew,defaultValue:0,validate:function(e){return 1===e}}),n.target=e.target||"",n.targetType=(0,c.getStringOption)(e.targetType,["auto","contentArea","pageArea","pageEven","pageOdd"]),n.trailer=e.trailer||"",n.use=e.use||"",n.usehref=e.usehref||"",n.script=null,n}return m(r,[{key:a.$toHTML,value:function(e){return this[a.$extra]={},c.HTMLResult.FAILURE}}]),r}(a.XFAObject),U=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"button",!0)).highlight=(0,c.getStringOption)(e.highlight,["inverted","none","outline","push"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return m(r,[{key:a.$toHTML,value:function(e){return c.HTMLResult.success({name:"button",attributes:{class:"xfaButton",style:{}},children:[]})}}]),r}(a.XFAObject),q=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"calculate",!0)).id=e.id||"",n.override=(0,c.getStringOption)(e.override,["disabled","error","ignore","warning"]),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.message=null,n.script=null,n}return r}(a.XFAObject),X=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"caption",!0)).id=e.id||"",n.placement=(0,c.getStringOption)(e.placement,["left","bottom","inline","right","top"]),n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.reserve=(0,c.getMeasurement)(e.reserve),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.font=null,n.margin=null,n.para=null,n.value=null,n}return m(r,[{key:a.$setValue,value:function(e){A(this,e)}},{key:a.$toHTML,value:function(e){if(!this.value)return c.HTMLResult.EMPTY;var t=this.value[a.$toHTML](e).html;if(!t)return c.HTMLResult.EMPTY;var r=[];"string"==typeof t?r.push({name:"#text",value:t}):r.push(t);var n=(0,o.toStyle)(this,"font","margin","para","visibility");switch(this.placement){case"left":case"right":this.reserve>0?n.width=(0,o.measureToString)(this.reserve):n.minWidth=(0,o.measureToString)(this.reserve);break;case"top":case"bottom":this.reserve>0?n.height=(0,o.measureToString)(this.reserve):n.minHeight=(0,o.measureToString)(this.reserve)}return c.HTMLResult.success({name:"div",attributes:{style:n,class:"xfaCaption"},children:r})}}]),r}(a.XFAObject),H=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"certificate")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),$=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"certificates",!0)).credentialServerPolicy=(0,c.getStringOption)(e.credentialServerPolicy,["optional","required"]),n.id=e.id||"",n.url=e.url||"",n.urlPolicy=e.urlPolicy||"",n.use=e.use||"",n.usehref=e.usehref||"",n.encryption=null,n.issuers=null,n.keyUsage=null,n.oids=null,n.signing=null,n.subjectDNs=null,n}return r}(a.XFAObject),z=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"checkButton",!0)).id=e.id||"",n.mark=(0,c.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),n.shape=(0,c.getStringOption)(e.shape,["square","round"]),n.size=(0,c.getMeasurement)(e.size,"10pt"),n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.margin=null,n}return m(r,[{key:a.$toHTML,value:function(e){var t,r,n=(0,o.toStyle)(this,"border","margin"),i=(0,o.measureToString)(this.size);if(n.width=n.height=i,"square"===this.shape?(t="▪",r="10%"):(t="●",r="50%"),n.borderRadius||(n.borderRadius=r),"default"!==this.mark)switch(this.mark){case"check":t="✓";break;case"circle":t="●";break;case"cross":t="✕";break;case"diamond":t="♦";break;case"square":t="▪";break;case"star":t="★"}"10px"!==i&&(n.fontSize=i,n.lineHeight=i,n.width=i,n.height=i);var s=this[a.$getParent]()[a.$getParent]()[a.$uid],u={name:"input",attributes:{class:"xfaCheckbox",fieldId:s,type:"radio",id:"".concat(s,"-radio")}},l=this[a.$getParent]()[a.$getParent]()[a.$getParent]();return l instanceof ye&&(u.attributes.name=l[a.$uid]),c.HTMLResult.success({name:"label",attributes:{class:"xfaLabel"},children:[u,{name:"span",attributes:{class:"xfaCheckboxMark",mark:t,style:n}}]})}}]),r}(a.XFAObject),G=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"choiceList",!0)).commitOn=(0,c.getStringOption)(e.commitOn,["select","exit"]),n.id=e.id||"",n.open=(0,c.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),n.textEntry=(0,c.getInteger)({data:e.textEntry,defaultValue:0,validate:function(e){return 1===e}}),n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.margin=null,n}return m(r,[{key:a.$toHTML,value:function(e){var t=(0,o.toStyle)(this,"border","margin"),r=this[a.$getParent]()[a.$getParent](),n=[];if(r.items.children.length>0)for(var i=r.items.children[0][a.$toHTML]().html,s=r.items.children[1]?r.items.children[1][a.$toHTML]().html:[],u=0,l=i.length;u<l;u++)n.push({name:"option",attributes:{value:s[u]||i[u]},value:i[u]});var f={class:"xfaSelect",fieldId:this[a.$getParent]()[a.$getParent]()[a.$uid],style:t};return"multiSelect"===this.open&&(f.multiple=!0),c.HTMLResult.success({name:"label",attributes:{class:"xfaLabel"},children:[{name:"select",children:n,attributes:f}]})}}]),r}(a.XFAObject),W=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"color",!0)).cSpace=(0,c.getStringOption)(e.cSpace,["SRGB"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.value=e.value?(0,c.getColor)(e.value):"",n.extras=null,n}return m(r,[{key:a.$hasSettableValue,value:function(){return!1}},{key:a.$toStyle,value:function(){return this.value?u.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}]),r}(a.XFAObject),V=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"comb")).id=e.id||"",n.numberOfCells=(0,c.getInteger)({data:e.numberOfCells,defaultValue:0,validate:function(e){return e>=0}}),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.XFAObject),K=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"connect",!0)).connection=e.connection||"",n.id=e.id||"",n.ref=e.ref||"",n.usage=(0,c.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),n.use=e.use||"",n.usehref=e.usehref||"",n.picture=null,n}return r}(a.XFAObject),Y=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"contentArea",!0)).h=(0,c.getMeasurement)(e.h),n.id=e.id||"",n.name=e.name||"",n.relevant=(0,c.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.w=(0,c.getMeasurement)(e.w),n.x=(0,c.getMeasurement)(e.x,"0pt"),n.y=(0,c.getMeasurement)(e.y,"0pt"),n.desc=null,n.extras=null,n}return m(r,[{key:a.$toHTML,value:function(e){var t={position:"absolute",left:(0,o.measureToString)(this.x),top:(0,o.measureToString)(this.y),width:(0,o.measureToString)(this.w),height:(0,o.measureToString)(this.h)};return c.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:"xfaContentarea",id:this[a.$uid]}})}}]),r}(a.XFAObject),J=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"corner",!0)).id=e.id||"",n.inverted=(0,c.getInteger)({data:e.inverted,defaultValue:0,validate:function(e){return 1===e}}),n.join=(0,c.getStringOption)(e.join,["square","round"]),n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.radius=(0,c.getMeasurement)(e.radius),n.stroke=(0,c.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),n.thickness=(0,c.getMeasurement)(e.thickness,"0.5pt"),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return m(r,[{key:a.$toStyle,value:function(){var e=(0,o.toStyle)(this,"visibility");return e.radius=(0,o.measureToString)(this.radius),e}}]),r}(a.XFAObject),Z=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"date")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$finalize,value:function(){this[a.$content]=new Date(this[a.$content].trim())}},{key:a.$toHTML,value:function(e){return c.HTMLResult.success(this[a.$content].toString())}}]),r}(a.ContentObject),Q=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"dateTime")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$finalize,value:function(){this[a.$content]=new Date(this[a.$content].trim())}},{key:a.$toHTML,value:function(e){return c.HTMLResult.success(this[a.$content].toString())}}]),r}(a.ContentObject),ee=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"dateTimeEdit",!0)).hScrollPolicy=(0,c.getStringOption)(e.hScrollPolicy,["auto","off","on"]),n.id=e.id||"",n.picker=(0,c.getStringOption)(e.picker,["host","none"]),n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.comb=null,n.extras=null,n.margin=null,n}return m(r,[{key:a.$toHTML,value:function(e){var t=(0,o.toStyle)(this,"border","font","margin"),r={name:"input",attributes:{type:"text",fieldId:this[a.$getParent]()[a.$getParent]()[a.$uid],class:"xfaTextfield",style:t}};return c.HTMLResult.success({name:"label",attributes:{class:"xfaLabel"},children:[r]})}}]),r}(a.XFAObject),te=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"decimal")).fracDigits=(0,c.getInteger)({data:e.fracDigits,defaultValue:2,validate:function(e){return!0}}),n.id=e.id||"",n.leadDigits=(0,c.getInteger)({data:e.leadDigits,defaultValue:-1,validate:function(e){return!0}}),n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$finalize,value:function(){var e=parseFloat(this[a.$content].trim());this[a.$content]=isNaN(e)?null:e}},{key:a.$toHTML,value:function(e){return c.HTMLResult.success(null!==this[a.$content]?this[a.$content].toString():"")}}]),r}(a.ContentObject),re=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"defaultUi",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return r}(a.XFAObject),ne=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"desc",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.boolean=new a.XFAObjectArray,n.date=new a.XFAObjectArray,n.dateTime=new a.XFAObjectArray,n.decimal=new a.XFAObjectArray,n.exData=new a.XFAObjectArray,n.float=new a.XFAObjectArray,n.image=new a.XFAObjectArray,n.integer=new a.XFAObjectArray,n.text=new a.XFAObjectArray,n.time=new a.XFAObjectArray,n}return r}(a.XFAObject),ae=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"])).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.OptionObject),ie=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"digestMethods",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.digestMethod=new a.XFAObjectArray,n}return r}(a.XFAObject),oe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"draw",!0)).anchorType=(0,c.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),n.colSpan=(0,c.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.h=e.h?(0,c.getMeasurement)(e.h):"",n.hAlign=(0,c.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.locale=e.locale||"",n.maxH=(0,c.getMeasurement)(e.maxH,"0pt"),n.maxW=(0,c.getMeasurement)(e.maxW,"0pt"),n.minH=(0,c.getMeasurement)(e.minH,"0pt"),n.minW=(0,c.getMeasurement)(e.minW,"0pt"),n.name=e.name||"",n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,c.getRelevant)(e.relevant),n.rotate=(0,c.getInteger)({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.w=e.w?(0,c.getMeasurement)(e.w):"",n.x=(0,c.getMeasurement)(e.x,"0pt"),n.y=(0,c.getMeasurement)(e.y,"0pt"),n.assist=null,n.border=null,n.caption=null,n.desc=null,n.extras=null,n.font=null,n.keep=null,n.margin=null,n.para=null,n.traversal=null,n.ui=null,n.value=null,n.setProperty=new a.XFAObjectArray,n}return m(r,[{key:a.$setValue,value:function(e){A(this,e)}},{key:a.$toHTML,value:function(e){if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return c.HTMLResult.EMPTY;if((0,o.fixDimensions)(this),""!==this.w&&""===this.h&&this.value){var t=this.value[a.$text]();if(t){var r=(0,o.layoutText)(t,this.font.size,{width:this.w,height:1/0}).height;this.h=r||""}}switch(C(this,e)){case 0:return c.HTMLResult.EMPTY;case 1:return c.HTMLResult.FAILURE}var n=(0,o.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","borderMarginPadding"),i=["xfaDraw"];this.font&&i.push("xfaFont");var s={style:n,id:this[a.$uid],class:i.join(" ")};this.name&&(s.xfaName=this.name);var u={name:"div",attributes:s,children:[]},l=(0,o.addExtraDivForBorder)(u),f=(0,o.computeBbox)(this,u,e),d=this.value?this.value[a.$toHTML](e).html:null;if(null===d)return c.HTMLResult.success(l,f);if(u.children.push(d),"xfaRich"===d.attributes.class&&(""===this.h&&(n.height="auto"),""===this.w&&(n.width="auto"),this.para)){switch(s.style.display="flex",s.style.flexDirection="column",this.para.vAlign){case"top":s.style.justifyContent="start";break;case"bottom":s.style.justifyContent="end";break;case"middle":s.style.justifyContent="center"}var p=this.para[a.$toStyle]();if(d.attributes.style)for(var g=0,m=Object.entries(p);g<m.length;g++){var v=h(m[g],2),y=v[0],b=v[1];y in d.attributes.style||(d.attributes.style[y]=b)}else d.attributes.style=p}return c.HTMLResult.success(l,f)}}]),r}(a.XFAObject),se=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"edge",!0)).cap=(0,c.getStringOption)(e.cap,["square","butt","round"]),n.id=e.id||"",n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.stroke=(0,c.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),n.thickness=Math.max(1,Math.round((0,c.getMeasurement)(e.thickness,"0.5pt"))),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return m(r,[{key:a.$toStyle,value:function(){var e=(0,o.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,o.measureToString)(Math.max(1,Math.round(this.thickness))),color:this.color?this.color[a.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}]),r}(a.XFAObject),ce=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"])).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.OptionObject),ue=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"encodings",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.encoding=new a.XFAObjectArray,n}return r}(a.XFAObject),le=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"encrypt",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.certificate=null,n}return r}(a.XFAObject),fe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"encryptData",!0)).id=e.id||"",n.operation=(0,c.getStringOption)(e.operation,["encrypt","decrypt"]),n.target=e.target||"",n.use=e.use||"",n.usehref=e.usehref||"",n.filter=null,n.manifest=null,n}return r}(a.XFAObject),he=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"encryption",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.certificate=new a.XFAObjectArray,n}return r}(a.XFAObject),de=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"])).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.OptionObject),pe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"encryptionMethods",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.encryptionMethod=new a.XFAObjectArray,n}return r}(a.XFAObject),ge=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"event",!0)).activity=(0,c.getStringOption)(e.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),n.id=e.id||"",n.listen=(0,c.getStringOption)(e.listen,["refOnly","refAndDescendents"]),n.name=e.name||"",n.ref=e.ref||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.encryptData=null,n.execute=null,n.script=null,n.signData=null,n.submit=null,n}return r}(a.XFAObject),me=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"exData")).contentType=e.contentType||"",n.href=e.href||"",n.id=e.id||"",n.maxLength=(0,c.getInteger)({data:e.maxLength,defaultValue:-1,validate:function(e){return e>=-1}}),n.name=e.name||"",n.rid=e.rid||"",n.transferEncoding=(0,c.getStringOption)(e.transferEncoding,["none","base64","package"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$onChild,value:function(e){return("text/html"===this.contentType&&e[a.$namespaceId]===i.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[a.$content]=e,!0)}},{key:a.$toHTML,value:function(e){return"text/html"===this.contentType&&this[a.$content]?this[a.$content][a.$toHTML](e):c.HTMLResult.EMPTY}}]),r}(a.ContentObject),ve=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"exObject",!0)).archive=e.archive||"",n.classId=e.classId||"",n.codeBase=e.codeBase||"",n.codeType=e.codeType||"",n.id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.boolean=new a.XFAObjectArray,n.date=new a.XFAObjectArray,n.dateTime=new a.XFAObjectArray,n.decimal=new a.XFAObjectArray,n.exData=new a.XFAObjectArray,n.exObject=new a.XFAObjectArray,n.float=new a.XFAObjectArray,n.image=new a.XFAObjectArray,n.integer=new a.XFAObjectArray,n.text=new a.XFAObjectArray,n.time=new a.XFAObjectArray,n}return r}(a.XFAObject),ye=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"exclGroup",!0)).access=(0,c.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),n.accessKey=e.accessKey||"",n.anchorType=(0,c.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),n.colSpan=(0,c.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.h=e.h?(0,c.getMeasurement)(e.h):"",n.hAlign=(0,c.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.layout=(0,c.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),n.maxH=(0,c.getMeasurement)(e.maxH,"0pt"),n.maxW=(0,c.getMeasurement)(e.maxW,"0pt"),n.minH=(0,c.getMeasurement)(e.minH,"0pt"),n.minW=(0,c.getMeasurement)(e.minW,"0pt"),n.name=e.name||"",n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,c.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.w=e.w?(0,c.getMeasurement)(e.w):"",n.x=(0,c.getMeasurement)(e.x,"0pt"),n.y=(0,c.getMeasurement)(e.y,"0pt"),n.assist=null,n.bind=null,n.border=null,n.calculate=null,n.caption=null,n.desc=null,n.extras=null,n.margin=null,n.para=null,n.traversal=null,n.validate=null,n.connect=new a.XFAObjectArray,n.event=new a.XFAObjectArray,n.field=new a.XFAObjectArray,n.setProperty=new a.XFAObjectArray,n}return m(r,[{key:a.$hasSettableValue,value:function(){return!0}},{key:a.$setValue,value:function(e){var t,r=f(this.field.children);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(!n.value){var i=new _t({});n[a.$appendChild](i),n.value=i}var o=new M({});o[a.$content]=0;var s,c=f(n.items.children);try{for(c.s();!(s=c.n()).done;)if(s.value[a.$hasItem](e)){o[a.$content]=1;break}}catch(e){c.e(e)}finally{c.f()}n.value[a.$setValue](o)}}catch(e){r.e(e)}finally{r.f()}}},{key:a.$flushHTML,value:function(){return(0,s.flushHTML)(this)}},{key:a.$addHTML,value:function(e,t){(0,s.addHTML)(this,e,t)}},{key:a.$getAvailableSpace,value:function(){return(0,s.getAvailableSpace)(this)}},{key:a.$toHTML,value:function(e){if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return c.HTMLResult.EMPTY;(0,o.fixDimensions)(this);var t=[],r={id:this[a.$uid]};switch(this[a.$extra]||(this[a.$extra]=Object.create(null)),Object.assign(this[a.$extra],{children:t,attributes:r,attempt:0,availableSpace:e,width:0,height:0,prevHeight:0,currentWidth:0}),C(this,e)){case 0:return c.HTMLResult.EMPTY;case 1:return c.HTMLResult.FAILURE}e={width:""===this.w?e.width:this.w,height:""===this.h?e.height:this.h};var n=new Set(["field"]);if("row"===this.layout){var i=this[a.$getParent]().columnWidths;Array.isArray(i)&&i.length>0&&(this[a.$extra].columnWidths=i,this[a.$extra].currentColumn=0)}var s,u=(0,o.toStyle)(this,"anchorType","dimensions","position","presence","borderMarginPadding","hAlign"),l=["xfaExclgroup"],f=(0,o.layoutClass)(this);if(f&&l.push(f),r.style=u,r.class=l.join(" "),this.name&&(r.xfaName=this.name),"lr-tb"===this.layout||"rl-tb"===this.layout){for(;this[a.$extra].attempt<2&&!this[a.$childrenToHTML]({filter:n,include:!0});this[a.$extra].attempt++);s=2===this[a.$extra].attempt}else s=!this[a.$childrenToHTML]({filter:n,include:!0});if(s)return c.HTMLResult.FAILURE;var h=0,d=0;this.margin&&(h=this.margin.leftInset+this.margin.rightInset,d=this.margin.topInset+this.margin.bottomInset),""===this.w&&(u.width=(0,o.measureToString)(this[a.$extra].width+h)),""===this.h&&(u.height=(0,o.measureToString)(this[a.$extra].height+d));var p,g={name:"div",attributes:r,children:t};if(g=(0,o.addExtraDivForBorder)(g),""!==this.w&&""!==this.h)p=[this.x,this.y,this.w,this.h];else{var m=""===this.w?h+this[a.$extra].width:this.w,v=""===this.h?d+this[a.$extra].height:this.h;p=[this.x,this.y,m,v]}return delete this[a.$extra],c.HTMLResult.success(g,p)}}]),r}(a.XFAObject),be=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"execute")).connection=e.connection||"",n.executeType=(0,c.getStringOption)(e.executeType,["import","remerge"]),n.id=e.id||"",n.runAt=(0,c.getStringOption)(e.runAt,["client","both","server"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.XFAObject),we=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"extras",!0)).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n.boolean=new a.XFAObjectArray,n.date=new a.XFAObjectArray,n.dateTime=new a.XFAObjectArray,n.decimal=new a.XFAObjectArray,n.exData=new a.XFAObjectArray,n.extras=new a.XFAObjectArray,n.float=new a.XFAObjectArray,n.image=new a.XFAObjectArray,n.integer=new a.XFAObjectArray,n.text=new a.XFAObjectArray,n.time=new a.XFAObjectArray,n}return r}(a.XFAObject),ke=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"field",!0)).access=(0,c.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),n.accessKey=e.accessKey||"",n.anchorType=(0,c.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),n.colSpan=(0,c.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.h=e.h?(0,c.getMeasurement)(e.h):"",n.hAlign=(0,c.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.locale=e.locale||"",n.maxH=(0,c.getMeasurement)(e.maxH,"0pt"),n.maxW=(0,c.getMeasurement)(e.maxW,"0pt"),n.minH=(0,c.getMeasurement)(e.minH,"0pt"),n.minW=(0,c.getMeasurement)(e.minW,"0pt"),n.name=e.name||"",n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,c.getRelevant)(e.relevant),n.rotate=(0,c.getInteger)({data:e.rotate,defaultValue:0,validate:function(e){return e%90==0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.w=e.w?(0,c.getMeasurement)(e.w):"",n.x=(0,c.getMeasurement)(e.x,"0pt"),n.y=(0,c.getMeasurement)(e.y,"0pt"),n.assist=null,n.bind=null,n.border=null,n.calculate=null,n.caption=null,n.desc=null,n.extras=null,n.font=null,n.format=null,n.items=new a.XFAObjectArray(2),n.keep=null,n.margin=null,n.para=null,n.traversal=null,n.ui=null,n.validate=null,n.value=null,n.bindItems=new a.XFAObjectArray,n.connect=new a.XFAObjectArray,n.event=new a.XFAObjectArray,n.setProperty=new a.XFAObjectArray,n}return m(r,[{key:a.$setValue,value:function(e){A(this,e)}},{key:a.$toHTML,value:function(e){if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return c.HTMLResult.EMPTY;switch((0,o.fixDimensions)(this),C(this,e)){case 0:return c.HTMLResult.EMPTY;case 1:return c.HTMLResult.FAILURE}var t=(0,o.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","borderMarginPadding","hAlign"),r=["xfaField"];this.font&&r.push("xfaFont");var n={style:t,id:this[a.$uid],class:r.join(" ")};this.name&&(n.xfaName=this.name);var i=[],s={name:"div",attributes:n,children:i},u=(0,o.computeBbox)(this,s,e);s=(0,o.addExtraDivForBorder)(s);var l=this.ui?this.ui[a.$toHTML]().html:null;if(!l)return c.HTMLResult.success(s,u);if(l.attributes.style||(l.attributes.style=Object.create(null)),i.push(l),this.value)if(this.ui.imageEdit)l.children.push(this.value[a.$toHTML]().html);else if("button"!==l.name){var f=this.value[a.$toHTML]().html;f&&("textarea"===l.children[0].name?l.children[0].attributes.textContent=f.value:l.children[0].attributes.value=f.value)}var h=this.caption?this.caption[a.$toHTML]().html:null;if(!h)return c.HTMLResult.success(s,u);if("button"===l.name)return l.attributes.style.background=t.background,delete t.background,"div"===h.name&&(h.name="span"),l.children.push(h),c.HTMLResult.success(s,u);switch(l.children.splice(0,0,h),this.caption.placement){case"left":l.attributes.style.flexDirection="row";break;case"right":l.attributes.style.flexDirection="row-reverse";break;case"top":l.attributes.style.alignItems="start",l.attributes.style.flexDirection="column";break;case"bottom":l.attributes.style.alignItems="start",l.attributes.style.flexDirection="column-reverse";break;case"inline":delete l.attributes.class,h.attributes.style.float="left"}return c.HTMLResult.success(s,u)}}]),r}(a.XFAObject);t.Field=ke;var Se=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"fill",!0)).id=e.id||"",n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n.linear=null,n.pattern=null,n.radial=null,n.solid=null,n.stipple=null,n}return m(r,[{key:a.$toStyle,value:function(){var e="color";this[a.$getParent]()instanceof N&&(e="background");var t,r=Object.create(null),n=f(Object.getOwnPropertyNames(this));try{for(n.s();!(t=n.n()).done;){var i=t.value;if("extras"!==i&&"color"!==i){var o=this[i];if(o instanceof a.XFAObject)return r[e]=o[a.$toStyle](this.color),r}}}catch(e){n.e(e)}finally{n.f()}return this.color&&(r[e]=this.color[a.$toStyle]()),r}}]),r}(a.XFAObject),xe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"filter",!0)).addRevocationInfo=(0,c.getStringOption)(e.addRevocationInfo,["","required","optional","none"]),n.id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n.version=(0,c.getInteger)({data:n.version,defaultValue:5,validate:function(e){return e>=1&&e<=5}}),n.appearanceFilter=null,n.certificates=null,n.digestMethods=null,n.encodings=null,n.encryptionMethods=null,n.handler=null,n.lockDocument=null,n.mdp=null,n.reasons=null,n.timeStamp=null,n}return r}(a.XFAObject),Ae=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"float")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$finalize,value:function(){var e=parseFloat(this[a.$content].trim());this[a.$content]=isNaN(e)?null:e}},{key:a.$toHTML,value:function(e){return c.HTMLResult.success(null!==this[a.$content]?this[a.$content].toString():"")}}]),r}(a.ContentObject),Oe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"font",!0)).baselineShift=(0,c.getMeasurement)(e.baselineShift),n.fontHorizontalScale=(0,c.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:function(e){return e>=0}}),n.fontVerticalScale=(0,c.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:function(e){return e>=0}}),n.id=e.id||"",n.kerningMode=(0,c.getStringOption)(e.kerningMode,["none","pair"]),n.letterSpacing=(0,c.getMeasurement)(e.letterSpacing,"0"),n.lineThrough=(0,c.getInteger)({data:e.lineThrough,defaultValue:0,validate:function(e){return 1===e||2===e}}),n.lineThroughPeriod=(0,c.getStringOption)(e.lineThroughPeriod,["all","word"]),n.overline=(0,c.getInteger)({data:e.overline,defaultValue:0,validate:function(e){return 1===e||2===e}}),n.overlinePeriod=(0,c.getStringOption)(e.overlinePeriod,["all","word"]),n.posture=(0,c.getStringOption)(e.posture,["normal","italic"]),n.size=(0,c.getMeasurement)(e.size,"10pt"),n.typeface=e.typeface||"",n.underline=(0,c.getInteger)({data:e.underline,defaultValue:0,validate:function(e){return 1===e||2===e}}),n.underlinePeriod=(0,c.getStringOption)(e.underlinePeriod,["all","word"]),n.use=e.use||"",n.usehref=e.usehref||"",n.weight=(0,c.getStringOption)(e.weight,["normal","bold"]),n.extras=null,n.fill=null,n}return m(r,[{key:a.$toStyle,value:function(){var e=(0,o.toStyle)(this,"fill"),t=e.color;t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,o.measureToString)(this.baselineShift)),"none"!==this.kerningMode&&(e.fontKerning="normal"),this.letterSpacing&&(e.letterSpacing=(0,o.measureToString)(this.letterSpacing)),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough&&(e.textDecorationStyle="double")),0!==this.overline&&(e.textDecoration="overline",2===this.overline&&(e.textDecorationStyle="double")),"normal"!==this.posture&&(e.fontStyle=this.posture);var r=(0,o.measureToString)(.99*this.size);return"10px"!==r&&(e.fontSize=r),e.fontFamily=(0,o.getFonts)(this.typeface),0!==this.underline&&(e.textDecoration="underline",2===this.underline&&(e.textDecorationStyle="double")),"normal"!==this.weight&&(e.fontWeight=this.weight),e}}]),r}(a.XFAObject),Ce=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"format",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.picture=null,n}return r}(a.XFAObject),Te=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"handler")).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),Fe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"hyphenation")).excludeAllCaps=(0,c.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:function(e){return 1===e}}),n.excludeInitialCap=(0,c.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:function(e){return 1===e}}),n.hyphenate=(0,c.getInteger)({data:e.hyphenate,defaultValue:0,validate:function(e){return 1===e}}),n.id=e.id||"",n.pushCharacterCount=(0,c.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),n.remainCharacterCount=(0,c.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:function(e){return e>=0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.wordCharacterCount=(0,c.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:function(e){return e>=0}}),n}return r}(a.XFAObject),Pe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"image")).aspect=(0,c.getStringOption)(e.aspect,["fit","actual","height","none","width"]),n.contentType=e.contentType||"",n.href=e.href||"",n.id=e.id||"",n.name=e.name||"",n.transferEncoding=(0,c.getStringOption)(e.transferEncoding,["base64","none","package"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$toHTML,value:function(){if(this.href||!this[a.$content])return c.HTMLResult.EMPTY;if("base64"===this.transferEncoding){var e=(0,u.stringToBytes)(atob(this[a.$content])),t=new Blob([e],{type:this.contentType});return c.HTMLResult.success({name:"img",attributes:{class:"xfaImage",style:{},src:URL.createObjectURL(t)}})}return c.HTMLResult.EMPTY}}]),r}(a.StringObject),_e=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"imageEdit",!0)).data=(0,c.getStringOption)(e.data,["link","embed"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.margin=null,n}return m(r,[{key:a.$toHTML,value:function(e){return"embed"===this.data?c.HTMLResult.success({name:"div",children:[],attributes:{}}):c.HTMLResult.EMPTY}}]),r}(a.XFAObject),Ie=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"integer")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$finalize,value:function(){var e=parseInt(this[a.$content].trim(),10);this[a.$content]=isNaN(e)?null:e}},{key:a.$toHTML,value:function(e){return c.HTMLResult.success(null!==this[a.$content]?this[a.$content].toString():"")}}]),r}(a.ContentObject),Ee=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"issuers",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.certificate=new a.XFAObjectArray,n}return r}(a.XFAObject),je=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"items",!0)).id=e.id||"",n.name=e.name||"",n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.ref=e.ref||"",n.save=(0,c.getInteger)({data:e.save,defaultValue:0,validate:function(e){return 1===e}}),n.use=e.use||"",n.usehref=e.usehref||"",n.boolean=new a.XFAObjectArray,n.date=new a.XFAObjectArray,n.dateTime=new a.XFAObjectArray,n.decimal=new a.XFAObjectArray,n.exData=new a.XFAObjectArray,n.float=new a.XFAObjectArray,n.image=new a.XFAObjectArray,n.integer=new a.XFAObjectArray,n.text=new a.XFAObjectArray,n.time=new a.XFAObjectArray,n}return m(r,[{key:a.$hasItem,value:function(e){return this.hasOwnProperty(e[a.$nodeName])&&this[e[a.$nodeName]].children.some((function(t){return t[a.$content]===e[a.$content]}))}},{key:a.$toHTML,value:function(){var e,t=[],r=f(this[a.$getChildren]());try{for(r.s();!(e=r.n()).done;){var n=e.value;t.push(n[a.$text]())}}catch(e){r.e(e)}finally{r.f()}return c.HTMLResult.success(t)}}]),r}(a.XFAObject);t.Items=je;var Re=function(e){y(r,e);var t=w(r);function r(e){var n;v(this,r),(n=t.call(this,x,"keep",!0)).id=e.id||"";var a=["none","contentArea","pageArea"];return n.intact=(0,c.getStringOption)(e.intact,a),n.next=(0,c.getStringOption)(e.next,a),n.previous=(0,c.getStringOption)(e.previous,a),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return r}(a.XFAObject),Me=function(e){y(r,e);var t=w(r);function r(e){var n;v(this,r);var a=["","yes","no"];return(n=t.call(this,x,"keyUsage")).crlSign=(0,c.getStringOption)(e.crlSign,a),n.dataEncipherment=(0,c.getStringOption)(e.dataEncipherment,a),n.decipherOnly=(0,c.getStringOption)(e.decipherOnly,a),n.digitalSignature=(0,c.getStringOption)(e.digitalSignature,a),n.encipherOnly=(0,c.getStringOption)(e.encipherOnly,a),n.id=e.id||"",n.keyAgreement=(0,c.getStringOption)(e.keyAgreement,a),n.keyCertSign=(0,c.getStringOption)(e.keyCertSign,a),n.keyEncipherment=(0,c.getStringOption)(e.keyEncipherment,a),n.nonRepudiation=(0,c.getStringOption)(e.nonRepudiation,a),n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.XFAObject),Ne=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"line",!0)).hand=(0,c.getStringOption)(e.hand,["even","left","right"]),n.id=e.id||"",n.slope=(0,c.getStringOption)(e.slope,["\\\\","/"]),n.use=e.use||"",n.usehref=e.usehref||"",n.edge=null,n}return r}(a.XFAObject),Be=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"linear",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return m(r,[{key:a.$toStyle,value:function(e){e=e?e[a.$toStyle]():"#FFFFFF";var t=this.type.replace(/([RBLT])/," $1").toLowerCase(),r=this.color?this.color[a.$toStyle]():"#000000";return"linear-gradient(".concat(t,", ").concat(e,", ").concat(r,")")}}]),r}(a.XFAObject),De=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"lockDocument")).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$finalize,value:function(){this[a.$content]=(0,c.getStringOption)(this[a.$content],["auto","0","1"])}}]),r}(a.ContentObject),Le=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"manifest",!0)).action=(0,c.getStringOption)(e.action,["include","all","exclude"]),n.id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.ref=new a.XFAObjectArray,n}return r}(a.XFAObject),Ue=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"margin",!0)).bottomInset=(0,c.getMeasurement)(e.bottomInset,"0"),n.id=e.id||"",n.leftInset=(0,c.getMeasurement)(e.leftInset,"0"),n.rightInset=(0,c.getMeasurement)(e.rightInset,"0"),n.topInset=(0,c.getMeasurement)(e.topInset,"0"),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return m(r,[{key:a.$toStyle,value:function(){return{margin:(0,o.measureToString)(this.topInset)+" "+(0,o.measureToString)(this.rightInset)+" "+(0,o.measureToString)(this.bottomInset)+" "+(0,o.measureToString)(this.leftInset)}}}]),r}(a.XFAObject),qe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"mdp")).id=e.id||"",n.permissions=(0,c.getInteger)({data:e.permissions,defaultValue:2,validate:function(e){return 1===e||3===e}}),n.signatureType=(0,c.getStringOption)(e.signatureType,["filler","author"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.XFAObject),Xe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"medium")).id=e.id||"",n.imagingBBox=(0,c.getBBox)(e.imagingBBox),n.long=(0,c.getMeasurement)(e.long),n.orientation=(0,c.getStringOption)(e.orientation,["portrait","landscape"]),n.short=(0,c.getMeasurement)(e.short),n.stock=e.stock||"",n.trayIn=(0,c.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),n.trayOut=(0,c.getStringOption)(e.trayOut,["auto","delegate"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.XFAObject),He=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"message",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.text=new a.XFAObjectArray,n}return r}(a.XFAObject),$e=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"numericEdit",!0)).hScrollPolicy=(0,c.getStringOption)(e.hScrollPolicy,["auto","off","on"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.comb=null,n.extras=null,n.margin=null,n}return m(r,[{key:a.$toHTML,value:function(e){var t=(0,o.toStyle)(this,"border","font","margin"),r={name:"input",attributes:{type:"text",fieldId:this[a.$getParent]()[a.$getParent]()[a.$uid],class:"xfaTextfield",style:t}};return c.HTMLResult.success({name:"label",attributes:{class:"xfaLabel"},children:[r]})}}]),r}(a.XFAObject),ze=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"occur",!0)).id=e.id||"",n.initial=(0,c.getInteger)({data:e.initial,defaultValue:1,validate:function(e){return!0}}),n.max=(0,c.getInteger)({data:e.max,defaultValue:1,validate:function(e){return!0}}),n.min=(0,c.getInteger)({data:e.min,defaultValue:1,validate:function(e){return!0}}),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return r}(a.XFAObject),Ge=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"oid")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),We=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"oids",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.oid=new a.XFAObjectArray,n}return r}(a.XFAObject),Ve=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"overflow")).id=e.id||"",n.leader=e.leader||"",n.target=e.target||"",n.trailer=e.trailer||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.XFAObject),Ke=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"pageArea",!0)).blankOrNotBlank=(0,c.getStringOption)(e.blankOrNotBlank,["any","blank","notBlank"]),n.id=e.id||"",n.initialNumber=(0,c.getInteger)({data:e.initialNumber,defaultValue:1,validate:function(e){return!0}}),n.name=e.name||"",n.numbered=(0,c.getInteger)({data:e.numbered,defaultValue:1,validate:function(e){return!0}}),n.oddOrEven=(0,c.getStringOption)(e.oddOrEven,["any","even","odd"]),n.pagePosition=(0,c.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),n.relevant=(0,c.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.desc=null,n.extras=null,n.medium=null,n.occur=null,n.area=new a.XFAObjectArray,n.contentArea=new a.XFAObjectArray,n.draw=new a.XFAObjectArray,n.exclGroup=new a.XFAObjectArray,n.field=new a.XFAObjectArray,n.subform=new a.XFAObjectArray,n}return m(r,[{key:a.$getNextPage,value:function(){this[a.$extra]||(this[a.$extra]={numberOfUse:1});var e=this[a.$getParent]();return"orderedOccurrence"===e.relation&&this.occur&&(-1===this.occur.max||this[a.$extra].numberOfUse<this.occur.max)?(this[a.$extra].numberOfUse+=1,this):(delete this[a.$extra],e[a.$getNextPage]())}},{key:a.$getAvailableSpace,value:function(){return{width:1/0,height:1/0}}},{key:a.$toHTML,value:function(){this[a.$extra]||(this[a.$extra]={numberOfUse:1});var e=[];this[a.$extra].children=e;var t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(t.width=(0,o.measureToString)(this.medium.short),t.height=(0,o.measureToString)(this.medium.long),"landscape"===this.medium.orientation){var r=t.width;t.width=t.height,t.height=r}}else(0,u.warn)("XFA - No medium specified in pageArea: please file a bug.");return this[a.$childrenToHTML]({filter:new Set(["area","draw","field","subform","contentArea"]),include:!0}),c.HTMLResult.success({name:"div",children:e,attributes:{id:this[a.$uid],style:t}})}}]),r}(a.XFAObject),Ye=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"pageSet",!0)).duplexImposition=(0,c.getStringOption)(e.duplexImposition,["longEdge","shortEdge"]),n.id=e.id||"",n.name=e.name||"",n.relation=(0,c.getStringOption)(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),n.relevant=(0,c.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.occur=null,n.pageArea=new a.XFAObjectArray,n.pageSet=new a.XFAObjectArray,n}return m(r,[{key:a.$getNextPage,value:function(){if(this[a.$extra]||(this[a.$extra]={numberOfUse:1,currentIndex:-1}),"orderedOccurrence"===this.relation){if(this[a.$extra].currentIndex+1<this.pageArea.children.length)return this[a.$extra].currentIndex+=1,this.pageArea.children[this[a.$extra].currentIndex];if(this[a.$extra].currentIndex+1<this.pageSet.children.length)return this[a.$extra].currentIndex+=1,this.pageSet.children[this[a.$extra].currentIndex];if(this.occur&&(-1===this.occur.max||this[a.$extra].numberOfUse<this.occur.max))return this[a.$extra].numberOfUse+=1,this[a.$extra].currentIndex=0,this.pageArea.children.length>0?this.pageArea.children[0]:this.pageSet.children[0][a.$getNextPage]();delete this[a.$extra];var e=this[a.$getParent]();return e instanceof r?e[a.$getNextPage]():this[a.$getNextPage]()}var t=O(this)[a.$extra].pageNumber,n=t%2==0?"even":"odd",i=0===t?"first":"rest",o=this.pageArea.children.find((function(e){return e.oddOrEven===n&&e.pagePosition===i}));return o||((o=this.pageArea.children.find((function(e){return"any"===e.oddOrEven&&e.pagePosition===i})))?o:(o=this.pageArea.children.find((function(e){return"any"===e.oddOrEven&&"any"===e.pagePosition})))||this.pageArea.children[0])}}]),r}(a.XFAObject),Je=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"para",!0)).hAlign=(0,c.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.lineHeight=e.lineHeight?(0,c.getMeasurement)(e.lineHeight,"0pt"):"",n.marginLeft=e.marginLeft?(0,c.getMeasurement)(e.marginLeft,"0pt"):"",n.marginRight=e.marginRight?(0,c.getMeasurement)(e.marginRight,"0pt"):"",n.orphans=(0,c.getInteger)({data:e.orphans,defaultValue:0,validate:function(e){return e>=0}}),n.preserve=e.preserve||"",n.radixOffset=e.radixOffset?(0,c.getMeasurement)(e.radixOffset,"0pt"):"",n.spaceAbove=e.spaceAbove?(0,c.getMeasurement)(e.spaceAbove,"0pt"):"",n.spaceBelow=e.spaceBelow?(0,c.getMeasurement)(e.spaceBelow,"0pt"):"",n.tabDefault=e.tabDefault?(0,c.getMeasurement)(n.tabDefault):"",n.tabStops=(e.tabStops||"").trim().split(/\\s+/).map((function(e,t){return t%2==1?(0,c.getMeasurement)(e):e})),n.textIndent=e.textIndent?(0,c.getMeasurement)(e.textIndent,"0pt"):"",n.use=e.use||"",n.usehref=e.usehref||"",n.vAlign=(0,c.getStringOption)(e.vAlign,["top","bottom","middle"]),n.widows=(0,c.getInteger)({data:e.widows,defaultValue:0,validate:function(e){return e>=0}}),n.hyphenation=null,n}return m(r,[{key:a.$toStyle,value:function(){var e=(0,o.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.marginLeft=(0,o.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.marginRight=(0,o.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.marginTop=(0,o.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.marginBottom=(0,o.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,o.measureToString)(this.textIndent),(0,o.fixTextIndent)(e)),this.lineHeight>0&&(e.lineHeight=(0,o.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,o.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[a.$toStyle]()),e}}]),r}(a.XFAObject),Ze=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"passwordEdit",!0)).hScrollPolicy=(0,c.getStringOption)(e.hScrollPolicy,["auto","off","on"]),n.id=e.id||"",n.passwordChar=e.passwordChar||"*",n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.margin=null,n}return r}(a.XFAObject),Qe=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"pattern",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return m(r,[{key:a.$toStyle,value:function(e){e=e?e[a.$toStyle]():"#FFFFFF";var t=this.color?this.color[a.$toStyle]():"#000000",r="repeating-linear-gradient",n="".concat(e,",").concat(e," ").concat(5,"px,").concat(t," ").concat(5,"px,").concat(t," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(r,"(to top,").concat(n,") ").concat(r,"(to right,").concat(n,")");case"crossDiagonal":return"".concat(r,"(45deg,").concat(n,") ").concat(r,"(-45deg,").concat(n,")");case"diagonalLeft":return"".concat(r,"(45deg,").concat(n,")");case"diagonalRight":return"".concat(r,"(-45deg,").concat(n,")");case"horizontal":return"".concat(r,"(to top,").concat(n,")");case"vertical":return"".concat(r,"(to right,").concat(n,")")}return""}}]),r}(a.XFAObject),et=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"picture")).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),tt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"proto",!0)).appearanceFilter=new a.XFAObjectArray,n.arc=new a.XFAObjectArray,n.area=new a.XFAObjectArray,n.assist=new a.XFAObjectArray,n.barcode=new a.XFAObjectArray,n.bindItems=new a.XFAObjectArray,n.bookend=new a.XFAObjectArray,n.boolean=new a.XFAObjectArray,n.border=new a.XFAObjectArray,n.break=new a.XFAObjectArray,n.breakAfter=new a.XFAObjectArray,n.breakBefore=new a.XFAObjectArray,n.button=new a.XFAObjectArray,n.calculate=new a.XFAObjectArray,n.caption=new a.XFAObjectArray,n.certificate=new a.XFAObjectArray,n.certificates=new a.XFAObjectArray,n.checkButton=new a.XFAObjectArray,n.choiceList=new a.XFAObjectArray,n.color=new a.XFAObjectArray,n.comb=new a.XFAObjectArray,n.connect=new a.XFAObjectArray,n.contentArea=new a.XFAObjectArray,n.corner=new a.XFAObjectArray,n.date=new a.XFAObjectArray,n.dateTime=new a.XFAObjectArray,n.dateTimeEdit=new a.XFAObjectArray,n.decimal=new a.XFAObjectArray,n.defaultUi=new a.XFAObjectArray,n.desc=new a.XFAObjectArray,n.digestMethod=new a.XFAObjectArray,n.digestMethods=new a.XFAObjectArray,n.draw=new a.XFAObjectArray,n.edge=new a.XFAObjectArray,n.encoding=new a.XFAObjectArray,n.encodings=new a.XFAObjectArray,n.encrypt=new a.XFAObjectArray,n.encryptData=new a.XFAObjectArray,n.encryption=new a.XFAObjectArray,n.encryptionMethod=new a.XFAObjectArray,n.encryptionMethods=new a.XFAObjectArray,n.event=new a.XFAObjectArray,n.exData=new a.XFAObjectArray,n.exObject=new a.XFAObjectArray,n.exclGroup=new a.XFAObjectArray,n.execute=new a.XFAObjectArray,n.extras=new a.XFAObjectArray,n.field=new a.XFAObjectArray,n.fill=new a.XFAObjectArray,n.filter=new a.XFAObjectArray,n.float=new a.XFAObjectArray,n.font=new a.XFAObjectArray,n.format=new a.XFAObjectArray,n.handler=new a.XFAObjectArray,n.hyphenation=new a.XFAObjectArray,n.image=new a.XFAObjectArray,n.imageEdit=new a.XFAObjectArray,n.integer=new a.XFAObjectArray,n.issuers=new a.XFAObjectArray,n.items=new a.XFAObjectArray,n.keep=new a.XFAObjectArray,n.keyUsage=new a.XFAObjectArray,n.line=new a.XFAObjectArray,n.linear=new a.XFAObjectArray,n.lockDocument=new a.XFAObjectArray,n.manifest=new a.XFAObjectArray,n.margin=new a.XFAObjectArray,n.mdp=new a.XFAObjectArray,n.medium=new a.XFAObjectArray,n.message=new a.XFAObjectArray,n.numericEdit=new a.XFAObjectArray,n.occur=new a.XFAObjectArray,n.oid=new a.XFAObjectArray,n.oids=new a.XFAObjectArray,n.overflow=new a.XFAObjectArray,n.pageArea=new a.XFAObjectArray,n.pageSet=new a.XFAObjectArray,n.para=new a.XFAObjectArray,n.passwordEdit=new a.XFAObjectArray,n.pattern=new a.XFAObjectArray,n.picture=new a.XFAObjectArray,n.radial=new a.XFAObjectArray,n.reason=new a.XFAObjectArray,n.reasons=new a.XFAObjectArray,n.rectangle=new a.XFAObjectArray,n.ref=new a.XFAObjectArray,n.script=new a.XFAObjectArray,n.setProperty=new a.XFAObjectArray,n.signData=new a.XFAObjectArray,n.signature=new a.XFAObjectArray,n.signing=new a.XFAObjectArray,n.solid=new a.XFAObjectArray,n.speak=new a.XFAObjectArray,n.stipple=new a.XFAObjectArray,n.subform=new a.XFAObjectArray,n.subformSet=new a.XFAObjectArray,n.subjectDN=new a.XFAObjectArray,n.subjectDNs=new a.XFAObjectArray,n.submit=new a.XFAObjectArray,n.text=new a.XFAObjectArray,n.textEdit=new a.XFAObjectArray,n.time=new a.XFAObjectArray,n.timeStamp=new a.XFAObjectArray,n.toolTip=new a.XFAObjectArray,n.traversal=new a.XFAObjectArray,n.traverse=new a.XFAObjectArray,n.ui=new a.XFAObjectArray,n.validate=new a.XFAObjectArray,n.value=new a.XFAObjectArray,n.variables=new a.XFAObjectArray,n}return r}(a.XFAObject),rt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"radial",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["toEdge","toCenter"]),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return m(r,[{key:a.$toStyle,value:function(e){e=e?e[a.$toStyle]():"#FFFFFF";var t=this.color?this.color[a.$toStyle]():"#000000",r="toEdge"===this.type?"".concat(e,",").concat(t):"".concat(t,",").concat(e);return"radial-gradient(circle to center, ".concat(r,")")}}]),r}(a.XFAObject),nt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"reason")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),at=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"reasons",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.reason=new a.XFAObjectArray,n}return r}(a.XFAObject),it=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"rectangle",!0)).hand=(0,c.getStringOption)(e.hand,["even","left","right"]),n.id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.corner=new a.XFAObjectArray(4),n.edge=new a.XFAObjectArray(4),n.fill=null,n}return r}(a.XFAObject),ot=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"ref")).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),st=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"script")).binding=e.binding||"",n.contentType=e.contentType||"",n.id=e.id||"",n.name=e.name||"",n.runAt=(0,c.getStringOption)(e.runAt,["client","both","server"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),ct=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"setProperty")).connection=e.connection||"",n.ref=e.ref||"",n.target=e.target||"",n}return r}(a.XFAObject);t.SetProperty=ct;var ut=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"signData",!0)).id=e.id||"",n.operation=(0,c.getStringOption)(e.operation,["sign","clear","verify"]),n.ref=e.ref||"",n.target=e.target||"",n.use=e.use||"",n.usehref=e.usehref||"",n.filter=null,n.manifest=null,n}return r}(a.XFAObject),lt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"signature",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["PDF1.3","PDF1.6"]),n.use=e.use||"",n.usehref=e.usehref||"",n.border=null,n.extras=null,n.filter=null,n.manifest=null,n.margin=null,n}return r}(a.XFAObject),ft=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"signing",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.certificate=new a.XFAObjectArray,n}return r}(a.XFAObject),ht=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"solid",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n}return m(r,[{key:a.$toStyle,value:function(e){return e?e[a.$toStyle]():"#FFFFFF"}}]),r}(a.XFAObject),dt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"speak")).disable=(0,c.getInteger)({data:e.disable,defaultValue:0,validate:function(e){return 1===e}}),n.id=e.id||"",n.priority=(0,c.getStringOption)(e.priority,["custom","caption","name","toolTip"]),n.rid=e.rid||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),pt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"stipple",!0)).id=e.id||"",n.rate=(0,c.getInteger)({data:e.rate,defaultValue:50,validate:function(e){return e>=0&&e<=100}}),n.use=e.use||"",n.usehref=e.usehref||"",n.color=null,n.extras=null,n}return m(r,[{key:a.$toStyle,value:function(e){var t=this.rate/100;return u.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}]),r}(a.XFAObject),gt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"subform",!0)).access=(0,c.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),n.allowMacro=(0,c.getInteger)({data:e.allowMacro,defaultValue:0,validate:function(e){return 1===e}}),n.anchorType=(0,c.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),n.colSpan=(0,c.getInteger)({data:e.colSpan,defaultValue:1,validate:function(e){return e>=1||-1===e}}),n.columnWidths=(e.columnWidths||"").trim().split(/\\s+/).map((function(e){return"-1"===e?-1:(0,c.getMeasurement)(e)})),n.h=e.h?(0,c.getMeasurement)(e.h):"",n.hAlign=(0,c.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),n.id=e.id||"",n.layout=(0,c.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),n.locale=e.locale||"",n.maxH=(0,c.getMeasurement)(e.maxH,"0pt"),n.maxW=(0,c.getMeasurement)(e.maxW,"0pt"),n.mergeMode=(0,c.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),n.minH=(0,c.getMeasurement)(e.minH,"0pt"),n.minW=(0,c.getMeasurement)(e.minW,"0pt"),n.name=e.name||"",n.presence=(0,c.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),n.relevant=(0,c.getRelevant)(e.relevant),n.restoreState=(0,c.getStringOption)(e.restoreState,["manual","auto"]),n.scope=(0,c.getStringOption)(e.scope,["name","none"]),n.use=e.use||"",n.usehref=e.usehref||"",n.w=e.w?(0,c.getMeasurement)(e.w):"",n.x=(0,c.getMeasurement)(e.x,"0pt"),n.y=(0,c.getMeasurement)(e.y,"0pt"),n.assist=null,n.bind=null,n.bookend=null,n.border=null,n.break=null,n.calculate=null,n.desc=null,n.extras=null,n.keep=null,n.margin=null,n.occur=null,n.overflow=null,n.pageSet=null,n.para=null,n.traversal=null,n.validate=null,n.variables=null,n.area=new a.XFAObjectArray,n.breakAfter=new a.XFAObjectArray,n.breakBefore=new a.XFAObjectArray,n.connect=new a.XFAObjectArray,n.draw=new a.XFAObjectArray,n.event=new a.XFAObjectArray,n.exObject=new a.XFAObjectArray,n.exclGroup=new a.XFAObjectArray,n.field=new a.XFAObjectArray,n.proto=new a.XFAObjectArray,n.setProperty=new a.XFAObjectArray,n.subform=new a.XFAObjectArray,n.subformSet=new a.XFAObjectArray,n}return m(r,[{key:a.$flushHTML,value:function(){return(0,s.flushHTML)(this)}},{key:a.$addHTML,value:function(e,t){(0,s.addHTML)(this,e,t)}},{key:a.$getAvailableSpace,value:function(){return(0,s.getAvailableSpace)(this)}},{key:a.$toHTML,value:function(e){if("helpText"===this.name)return c.HTMLResult.EMPTY;if(this[a.$extra]&&this[a.$extra].afterBreakAfter){var t=this[a.$extra].afterBreakAfter;return delete this[a.$extra],t}if("hidden"===this.presence||"inactive"===this.presence)return c.HTMLResult.EMPTY;(this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,u.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),(0,o.fixDimensions)(this);var r=[],n={id:this[a.$uid]};if(this[a.$extra]||(this[a.$extra]=Object.create(null)),Object.assign(this[a.$extra],{children:r,attributes:n,attempt:0,availableSpace:e,width:0,height:0,prevHeight:0,currentWidth:0}),this.breakBefore.children.length>=1){var i=this.breakBefore.children[0];if(!i[a.$extra])return i[a.$extra]=!0,O(this)[a.$break](i),c.HTMLResult.FAILURE}switch(C(this,e)){case 0:return c.HTMLResult.EMPTY;case 1:return c.HTMLResult.FAILURE}var s=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){var l=this[a.$getParent]().columnWidths;Array.isArray(l)&&l.length>0&&(this[a.$extra].columnWidths=l,this[a.$extra].currentColumn=0)}var f,h=(0,o.toStyle)(this,"anchorType","dimensions","position","presence","borderMarginPadding","hAlign"),d=["xfaSubform"],p=(0,o.layoutClass)(this);if(p&&d.push(p),n.style=h,n.class=d.join(" "),this.name&&(n.xfaName=this.name),"lr-tb"===this.layout||"rl-tb"===this.layout){for(;this[a.$extra].attempt<2&&!this[a.$childrenToHTML]({filter:s,include:!0});this[a.$extra].attempt++);f=2===this[a.$extra].attempt}else f=!this[a.$childrenToHTML]({filter:s,include:!0});if(f)return c.HTMLResult.FAILURE;var g=0,m=0;this.margin&&(g=this.margin.leftInset+this.margin.rightInset,m=this.margin.topInset+this.margin.bottomInset),""===this.w&&(h.width=(0,o.measureToString)(this[a.$extra].width+g)),""===this.h&&(h.height=(0,o.measureToString)(this[a.$extra].height+m));var v,y={name:"div",attributes:n,children:r};if(y=(0,o.addExtraDivForBorder)(y),""!==this.w&&""!==this.h)v=[this.x,this.y,this.w,this.h];else{var b=""===this.w?g+this[a.$extra].width:this.w,w=""===this.h?m+this[a.$extra].height:this.h;v=[this.x,this.y,b,w]}if(this.breakAfter.children.length>=1){var k=this.breakAfter.children[0];return O(this)[a.$break](k),this[a.$extra].afterBreakAfter=c.HTMLResult.success(y,v),c.HTMLResult.FAILURE}return delete this[a.$extra],c.HTMLResult.success(y,v)}}]),r}(a.XFAObject),mt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"subformSet",!0)).id=e.id||"",n.name=e.name||"",n.relation=(0,c.getStringOption)(e.relation,["ordered","choice","unordered"]),n.relevant=(0,c.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.bookend=null,n.break=null,n.desc=null,n.extras=null,n.occur=null,n.overflow=null,n.breakAfter=new a.XFAObjectArray,n.breakBefore=new a.XFAObjectArray,n.subform=new a.XFAObjectArray,n.subformSet=new a.XFAObjectArray,n}return m(r,[{key:a.$toHTML,value:function(){var e=[];return this[a.$extra]||(this[a.$extra]=Object.create(null)),this[a.$extra].children=e,this[a.$childrenToHTML]({filter:new Set(["subform","subformSet"]),include:!0}),c.HTMLResult.success({name:"div",children:e,attributes:{id:this[a.$uid]}})}}]),r}(a.XFAObject),vt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"subjectDN")).delimiter=e.delimiter||",",n.id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$finalize,value:function(){this[a.$content]=new Map(this[a.$content].split(this.delimiter).map((function(e){return(e=e.split("=",2))[0]=e[0].trim(),e})))}}]),r}(a.ContentObject),yt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"subjectDNs",!0)).id=e.id||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n.subjectDN=new a.XFAObjectArray,n}return r}(a.XFAObject),bt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"submit",!0)).embedPDF=(0,c.getInteger)({data:e.embedPDF,defaultValue:0,validate:function(e){return 1===e}}),n.format=(0,c.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),n.id=e.id||"",n.target=e.target||"",n.textEncoding=(0,c.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:function(e){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-[0-9]{2}/)}}),n.use=e.use||"",n.usehref=e.usehref||"",n.xdpContent=e.xdpContent||"",n.encrypt=null,n.encryptData=new a.XFAObjectArray,n.signData=new a.XFAObjectArray,n}return r}(a.XFAObject),wt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"template",!0)).baseProfile=(0,c.getStringOption)(e.baseProfile,["full","interactiveForms"]),n.extras=null,n.subform=new a.XFAObjectArray,n}return m(r,[{key:a.$finalize,value:function(){0===this.subform.children.length&&(0,u.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,u.warn)("XFA - Several subforms in template node: please file a bug.")}},{key:a.$break,value:function(e){this[a.$extra].breakingNode=e}},{key:a.$searchNode,value:function(e,t){return e.startsWith("#")?[this[a.$ids].get(e.slice(1))]:(0,l.searchNode)(this,t,e,!0,!0)}},{key:a.$toHTML,value:function(){if(!this.subform.children.length)return c.HTMLResult.success({name:"div",children:[]});this[a.$extra]={breakingNode:null,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank"};var e=this.subform.children[0],t=e.pageSet.pageArea.children,r={name:"div",children:[]},n=null,i=null,o=null;if(e.breakBefore.children.length>=1?o=(i=e.breakBefore.children[0]).target:e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1?o=(i=e.subform.children[0].breakBefore.children[0]).target:e.break&&e.break.beforeTarget?o=(i=e.break).beforeTarget:e.subform.children.length>=1&&e.subform.children[0].break&&e.subform.children[0].break.beforeTarget&&(o=(i=e.subform.children[0].break).beforeTarget),i){var s=this[a.$searchNode](o,i[a.$getParent]());s instanceof Ke&&(n=s,i[a.$extra]={})}n||(n=t[0]);var u,l=n[a.$getParent]();l[a.$extra]={numberOfUse:1,currentIndex:l.pageArea.children.indexOf(n)};for(var f=null,h=null;;){u=null;var d=n[a.$toHTML]().html;r.children.push(d),f&&(d.children.push(f[a.$toHTML](d[a.$extra].space).html),f=null),h&&(d.children.push(h[a.$toHTML](d[a.$extra].space).html),h=null);for(var p=n.contentArea.children,g=d.children.filter((function(e){return"xfaContentarea"===e.attributes.class})),m=0,v=p.length;m<v;m++){var y=this[a.$extra].currentContentArea=p[m],b={width:y.w,height:y.h};f&&(g[m].children.push(f[a.$toHTML](b).html),f=null),h&&(g[m].children.push(h[a.$toHTML](b).html),h=null);var w=e[a.$toHTML](b);if(w.success)return w.html&&g[m].children.push(w.html),r;var k=!1;if(this[a.$extra].breakingNode){var S=this[a.$extra].breakingNode;if(this[a.$extra].breakingNode=null,"auto"===S.targetType){m--;continue}var x=1===S.startNew;S.leader&&(f=(f=this[a.$searchNode](S.leader,S[a.$getParent]()))?f[0]:null),S.trailer&&(h=(h=this[a.$searchNode](S.trailer,S[a.$getParent]()))?h[0]:null);var A=null;if(S.target&&(A=(A=this[a.$searchNode](S.target,S[a.$getParent]()))?A[0]:A),"pageArea"===S.targetType)if(x)k=!0;else{if(!(A!==n&&A instanceof Ke)){m--;continue}u=A,k=!0}else if("contentArea"===A||!(A instanceof Y)){m--;continue}}if((w=e[a.$flushHTML]())&&g[m].children.push(w),k)break}this[a.$extra].pageNumber+=1,n=u||n[a.$getNextPage]()}}}]),r}(a.XFAObject);t.Template=wt;var kt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"text")).id=e.id||"",n.maxChars=(0,c.getInteger)({data:e.maxChars,defaultValue:0,validate:function(e){return e>=0}}),n.name=e.name||"",n.rid=e.rid||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$onChild,value:function(e){return e[a.$namespaceId]===i.NamespaceIds.xhtml.id?(this[a.$content]=e,!0):((0,u.warn)("XFA - Invalid content in Text: ".concat(e[a.$nodeName],".")),!1)}},{key:a.$toHTML,value:function(e){if("string"==typeof this[a.$content]){var t={name:"span",attributes:{class:"xfaRich",style:{}},value:this[a.$content]};return this[a.$content].includes("\\u2029")?(t.name="div",t.children=[],this[a.$content].split("\\u2029").map((function(e){return e.split(/[\\u2028\\n]/).reduce((function(e,t){return e.push({name:"span",value:t},{name:"br"}),e}),[])})).forEach((function(e){t.children.push({name:"p",children:e})}))):/[\\u2028\\n]/.test(this[a.$content])&&(t.name="div",t.children=[],this[a.$content].split(/[\\u2028\\n]/).forEach((function(e){t.children.push({name:"span",value:e},{name:"br"})}))),c.HTMLResult.success(t)}return this[a.$content][a.$toHTML](e)}}]),r}(a.ContentObject);t.Text=kt;var St=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"textEdit",!0)).allowRichText=(0,c.getInteger)({data:e.allowRichText,defaultValue:0,validate:function(e){return 1===e}}),n.hScrollPolicy=(0,c.getStringOption)(e.hScrollPolicy,["auto","off","on"]),n.id=e.id||"",n.multiLine=(0,c.getInteger)({data:e.multiLine,defaultValue:1,validate:function(e){return 0===e}}),n.use=e.use||"",n.usehref=e.usehref||"",n.vScrollPolicy=(0,c.getStringOption)(e.vScrollPolicy,["auto","off","on"]),n.border=null,n.comb=null,n.extras=null,n.margin=null,n}return m(r,[{key:a.$toHTML,value:function(e){var t,r=(0,o.toStyle)(this,"border","font","margin");return t=1===this.multiLine?{name:"textarea",attributes:{fieldId:this[a.$getParent]()[a.$getParent]()[a.$uid],class:"xfaTextfield",style:r}}:{name:"input",attributes:{type:"text",fieldId:this[a.$getParent]()[a.$getParent]()[a.$uid],class:"xfaTextfield",style:r}},c.HTMLResult.success({name:"label",attributes:{class:"xfaLabel"},children:[t]})}}]),r}(a.XFAObject),xt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"time")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return m(r,[{key:a.$finalize,value:function(){this[a.$content]=new Date(this[a.$content])}},{key:a.$toHTML,value:function(e){return c.HTMLResult.success(this[a.$content].toString())}}]),r}(a.StringObject),At=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"timeStamp")).id=e.id||"",n.server=e.server||"",n.type=(0,c.getStringOption)(e.type,["optional","required"]),n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.XFAObject),Ot=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"toolTip")).id=e.id||"",n.rid=e.rid||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(a.StringObject),Ct=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"traversal",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.traverse=new a.XFAObjectArray,n}return r}(a.XFAObject),Tt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"traverse",!0)).id=e.id||"",n.operation=(0,c.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),n.ref=e.ref||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.script=null,n}return m(r,[{key:"name",get:function(){return this.operation}},{key:a.$isTransparent,value:function(){return!1}}]),r}(a.XFAObject),Ft=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"ui",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.picture=null,n.barcode=null,n.button=null,n.checkButton=null,n.choiceList=null,n.dateTimeEdit=null,n.defaultUi=null,n.imageEdit=null,n.numericEdit=null,n.passwordEdit=null,n.signature=null,n.textEdit=null,n}return m(r,[{key:a.$toHTML,value:function(e){var t,r=f(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var n=t.value;if("extras"!==n&&"picture"!==n){var i=this[n];if(i instanceof a.XFAObject)return i[a.$toHTML](e)}}}catch(e){r.e(e)}finally{r.f()}return c.HTMLResult.EMPTY}}]),r}(a.XFAObject),Pt=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"validate",!0)).formatTest=(0,c.getStringOption)(e.formatTest,["warning","disabled","error"]),n.id=e.id||"",n.nullTest=(0,c.getStringOption)(e.nullTest,["disabled","error","warning"]),n.scriptTest=(0,c.getStringOption)(e.scriptTest,["error","disabled","warning"]),n.use=e.use||"",n.usehref=e.usehref||"",n.extras=null,n.message=null,n.picture=null,n.script=null,n}return r}(a.XFAObject),_t=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"value",!0)).id=e.id||"",n.override=(0,c.getInteger)({data:e.override,defaultValue:0,validate:function(e){return 1===e}}),n.relevant=(0,c.getRelevant)(e.relevant),n.use=e.use||"",n.usehref=e.usehref||"",n.arc=null,n.boolean=null,n.date=null,n.dateTime=null,n.decimal=null,n.exData=null,n.float=null,n.image=null,n.integer=null,n.line=null,n.rectangle=null,n.text=null,n.time=null,n}return m(r,[{key:a.$setValue,value:function(e){var t=this[a.$getParent]();if(t instanceof ke&&t.ui&&t.ui.imageEdit)return this.image||(this.image=new Pe({})),void(this.image[a.$content]=e[a.$content]);var r=e[a.$nodeName];if(null===this[r]){var n,i=f(Object.getOwnPropertyNames(this));try{for(i.s();!(n=i.n()).done;){var o=n.value,s=this[o];s instanceof a.XFAObject&&(this[o]=null,this[a.$removeChild](s))}}catch(e){i.e(e)}finally{i.f()}this[e[a.$nodeName]]=e,this[a.$appendChild](e)}else this[r][a.$content]=e[a.$content]}},{key:a.$text,value:function(){if(this.exData)return this.exData[a.$content][a.$text]().trim();var e,t=f(Object.getOwnPropertyNames(this));try{for(t.s();!(e=t.n()).done;){var r=e.value;if("image"!==r){var n=this[r];if(n instanceof a.XFAObject)return(n[a.$content]||"").toString().trim()}}}catch(e){t.e(e)}finally{t.f()}return null}},{key:a.$toHTML,value:function(e){var t,r=f(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var n=this[t.value];if(n instanceof a.XFAObject)return n[a.$toHTML](e)}}catch(e){r.e(e)}finally{r.f()}return c.HTMLResult.EMPTY}}]),r}(a.XFAObject);t.Value=_t;var It=function(e){y(r,e);var t=w(r);function r(e){var n;return v(this,r),(n=t.call(this,x,"variables",!0)).id=e.id||"",n.use=e.use||"",n.usehref=e.usehref||"",n.boolean=new a.XFAObjectArray,n.date=new a.XFAObjectArray,n.dateTime=new a.XFAObjectArray,n.decimal=new a.XFAObjectArray,n.exData=new a.XFAObjectArray,n.float=new a.XFAObjectArray,n.image=new a.XFAObjectArray,n.integer=new a.XFAObjectArray,n.manifest=new a.XFAObjectArray,n.script=new a.XFAObjectArray,n.text=new a.XFAObjectArray,n.time=new a.XFAObjectArray,n}return m(r,[{key:a.$isTransparent,value:function(){return!0}}]),r}(a.XFAObject),Et=function(){function e(){v(this,e)}return m(e,null,[{key:i.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t)){var n=e[t](r);return n[a.$setSetAttributes](r),n}}},{key:"appearanceFilter",value:function(e){return new T(e)}},{key:"arc",value:function(e){return new F(e)}},{key:"area",value:function(e){return new P(e)}},{key:"assist",value:function(e){return new _(e)}},{key:"barcode",value:function(e){return new I(e)}},{key:"bind",value:function(e){return new E(e)}},{key:"bindItems",value:function(e){return new j(e)}},{key:"bookend",value:function(e){return new R(e)}},{key:"boolean",value:function(e){return new M(e)}},{key:"border",value:function(e){return new N(e)}},{key:"break",value:function(e){return new B(e)}},{key:"breakAfter",value:function(e){return new D(e)}},{key:"breakBefore",value:function(e){return new L(e)}},{key:"button",value:function(e){return new U(e)}},{key:"calculate",value:function(e){return new q(e)}},{key:"caption",value:function(e){return new X(e)}},{key:"certificate",value:function(e){return new H(e)}},{key:"certificates",value:function(e){return new $(e)}},{key:"checkButton",value:function(e){return new z(e)}},{key:"choiceList",value:function(e){return new G(e)}},{key:"color",value:function(e){return new W(e)}},{key:"comb",value:function(e){return new V(e)}},{key:"connect",value:function(e){return new K(e)}},{key:"contentArea",value:function(e){return new Y(e)}},{key:"corner",value:function(e){return new J(e)}},{key:"date",value:function(e){return new Z(e)}},{key:"dateTime",value:function(e){return new Q(e)}},{key:"dateTimeEdit",value:function(e){return new ee(e)}},{key:"decimal",value:function(e){return new te(e)}},{key:"defaultUi",value:function(e){return new re(e)}},{key:"desc",value:function(e){return new ne(e)}},{key:"digestMethod",value:function(e){return new ae(e)}},{key:"digestMethods",value:function(e){return new ie(e)}},{key:"draw",value:function(e){return new oe(e)}},{key:"edge",value:function(e){return new se(e)}},{key:"encoding",value:function(e){return new ce(e)}},{key:"encodings",value:function(e){return new ue(e)}},{key:"encrypt",value:function(e){return new le(e)}},{key:"encryptData",value:function(e){return new fe(e)}},{key:"encryption",value:function(e){return new he(e)}},{key:"encryptionMethod",value:function(e){return new de(e)}},{key:"encryptionMethods",value:function(e){return new pe(e)}},{key:"event",value:function(e){return new ge(e)}},{key:"exData",value:function(e){return new me(e)}},{key:"exObject",value:function(e){return new ve(e)}},{key:"exclGroup",value:function(e){return new ye(e)}},{key:"execute",value:function(e){return new be(e)}},{key:"extras",value:function(e){return new we(e)}},{key:"field",value:function(e){return new ke(e)}},{key:"fill",value:function(e){return new Se(e)}},{key:"filter",value:function(e){return new xe(e)}},{key:"float",value:function(e){return new Ae(e)}},{key:"font",value:function(e){return new Oe(e)}},{key:"format",value:function(e){return new Ce(e)}},{key:"handler",value:function(e){return new Te(e)}},{key:"hyphenation",value:function(e){return new Fe(e)}},{key:"image",value:function(e){return new Pe(e)}},{key:"imageEdit",value:function(e){return new _e(e)}},{key:"integer",value:function(e){return new Ie(e)}},{key:"issuers",value:function(e){return new Ee(e)}},{key:"items",value:function(e){return new je(e)}},{key:"keep",value:function(e){return new Re(e)}},{key:"keyUsage",value:function(e){return new Me(e)}},{key:"line",value:function(e){return new Ne(e)}},{key:"linear",value:function(e){return new Be(e)}},{key:"lockDocument",value:function(e){return new De(e)}},{key:"manifest",value:function(e){return new Le(e)}},{key:"margin",value:function(e){return new Ue(e)}},{key:"mdp",value:function(e){return new qe(e)}},{key:"medium",value:function(e){return new Xe(e)}},{key:"message",value:function(e){return new He(e)}},{key:"numericEdit",value:function(e){return new $e(e)}},{key:"occur",value:function(e){return new ze(e)}},{key:"oid",value:function(e){return new Ge(e)}},{key:"oids",value:function(e){return new We(e)}},{key:"overflow",value:function(e){return new Ve(e)}},{key:"pageArea",value:function(e){return new Ke(e)}},{key:"pageSet",value:function(e){return new Ye(e)}},{key:"para",value:function(e){return new Je(e)}},{key:"passwordEdit",value:function(e){return new Ze(e)}},{key:"pattern",value:function(e){return new Qe(e)}},{key:"picture",value:function(e){return new et(e)}},{key:"proto",value:function(e){return new tt(e)}},{key:"radial",value:function(e){return new rt(e)}},{key:"reason",value:function(e){return new nt(e)}},{key:"reasons",value:function(e){return new at(e)}},{key:"rectangle",value:function(e){return new it(e)}},{key:"ref",value:function(e){return new ot(e)}},{key:"script",value:function(e){return new st(e)}},{key:"setProperty",value:function(e){return new ct(e)}},{key:"signData",value:function(e){return new ut(e)}},{key:"signature",value:function(e){return new lt(e)}},{key:"signing",value:function(e){return new ft(e)}},{key:"solid",value:function(e){return new ht(e)}},{key:"speak",value:function(e){return new dt(e)}},{key:"stipple",value:function(e){return new pt(e)}},{key:"subform",value:function(e){return new gt(e)}},{key:"subformSet",value:function(e){return new mt(e)}},{key:"subjectDN",value:function(e){return new vt(e)}},{key:"subjectDNs",value:function(e){return new yt(e)}},{key:"submit",value:function(e){return new bt(e)}},{key:"template",value:function(e){return new wt(e)}},{key:"text",value:function(e){return new kt(e)}},{key:"textEdit",value:function(e){return new St(e)}},{key:"time",value:function(e){return new xt(e)}},{key:"timeStamp",value:function(e){return new At(e)}},{key:"toolTip",value:function(e){return new Ot(e)}},{key:"traversal",value:function(e){return new Ct(e)}},{key:"traverse",value:function(e){return new Tt(e)}},{key:"ui",value:function(e){return new Ft(e)}},{key:"validate",value:function(e){return new Pt(e)}},{key:"value",value:function(e){return new _t(e)}},{key:"variables",value:function(e){return new It(e)}}]),e}();t.TemplateNamespace=Et},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addExtraDivForBorder=function(e){for(var t=e.attributes.style,r=t.borderData,n=[],a={class:"xfaWrapper",style:Object.create(null)},i=0,s=["top","left"];i<s.length;i++){var c=s[i];void 0!==t[c]&&(a.style[c]=t[c])}if(delete t.top,delete t.left,"absolute"===t.position?a.style.position="absolute":a.style.position="relative",delete t.position,t.justifyContent&&(a.style.justifyContent=t.justifyContent,delete t.justifyContent),r){var u;delete t.borderData,r.margin?(u=r.margin.split(" "),delete r.margin):u=["0px","0px","0px","0px"];var l="100%",f=l;"0px"===u[1]&&"0px"===u[3]||(l="calc(100% - ".concat(parseInt(u[1])+parseInt(u[3]),"px")),"0px"===u[0]&&"0px"===u[2]||(f="calc(100% - ".concat(parseInt(u[0])+parseInt(u[2]),"px"));for(var h={top:u[0],left:u[3],width:l,height:f},d=0,p=Object.entries(r);d<p.length;d++){var g=(b=p[d],w=2,function(e){if(Array.isArray(e))return e}(b)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(b,w)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(b,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],v=g[1];h[m]=v}t.transform&&(h.transform=t.transform);var y={name:"div",attributes:{class:"xfaBorderDiv",style:h}};n.push(y)}var b,w;return n.push(e),{name:"div",attributes:a,children:n}},t.computeBbox=function(e,t,r){var a;if(""!==e.w&&""!==e.h)a=[e.x,e.y,e.w,e.h];else{if(!r)return null;var i=e.w;if(""===i){if(0===e.maxW){var o=e[n.$getParent]();i="position"===o.layout&&""!==o.w?0:e.minW}else i=Math.min(e.maxW,r.width);t.attributes.style.width=u(i)}var s=e.h;if(""===s){if(0===e.maxH){var c=e[n.$getParent]();s="position"===c.layout&&""!==c.h?0:e.minH}else s=Math.min(e.maxH,r.height);t.attributes.style.height=u(s)}a=[e.x,e.y,i,s]}return a},t.fixDimensions=function(e){var t=e[n.$getParent]();if(t.layout&&t.layout.includes("row")){var r,a=t[n.$extra],i=e.colSpan;r=-1===i?a.columnWidths.slice(a.currentColumn).reduce((function(e,t){return e+t}),0):a.columnWidths.slice(a.currentColumn,a.currentColumn+i).reduce((function(e,t){return e+t}),0),isNaN(r)||(e.w=r)}t.w&&e.w&&(e.w=Math.min(t.w,e.w)),t.h&&e.h&&(e.h=Math.min(t.h,e.h)),t.layout&&"position"!==t.layout&&(e.x=e.y=0,"tb"===t.layout&&""!==t.w&&(""===e.w||0===e.w||e.w>t.w)&&(e.w=t.w)),"position"===e.layout?(e.minW=e.minH=0,e.maxW=e.maxH=1/0):"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce((function(e,t){return e+t}),0))},t.fixTextIndent=function(e){var t=(0,a.getMeasurement)(e.textIndent,"0px");if(!(t>=0)){var r=e.textAlign||"left";if("left"===r||"right"===r){var n="margin"+("left"===r?"Left":"Right"),i=(0,a.getMeasurement)(e[n],"0px");e[n]="".concat(i-t,"pt")}}},t.getFonts=function(e){e.startsWith("'")?e='"'.concat(e.slice(1,e.length-1),'"'):e.includes(" ")&&!e.startsWith('"')&&(e='"'.concat(e,'"'));var t=[e];switch(e){case'"Myriad Pro"':t.push('"Roboto Condensed"','"Ubuntu Condensed"','"Microsoft Sans Serif"','"Apple Symbols"',"Helvetica",'"sans serif"');break;case"Arial":t.push("Helvetica",'"Liberation Sans"',"Arimo",'"sans serif"')}return t.join(",")},t.layoutClass=function(e){switch(e.layout){case"position":default:return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb"}},t.layoutText=function(e,t,r){for(var n=0,a=0,i=0,o=1.5*t,u=.4*t,l=Math.floor(r.width/u),f=e.match(s),h=0,d=0,p=f[0];p;){var g=p.length*u;if(n+g<=r.width)n+=g,h+=p.length,p=f[d++];else if(!c.test(p)||p.length>l){var m=Math.floor((r.width-n)/u);if(p=p.slice(m),h+=m,a+o>r.height)return{width:0,height:0,splitPos:h};i=Math.max(n,i),n=0,a+=o}else{if(a+o>r.height)return{width:0,height:0,splitPos:h};i=Math.max(n,i),n=g,a+=o,p=f[d++]}}return 0===i&&(i=n),0!==i&&(a+=o),{width:i,height:a,splitPos:-1}},t.measureToString=u,t.toStyle=function(e){for(var t=Object.create(null),r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];for(var s=0,c=a;s<c.length;s++){var u=c[s],f=e[u];if(null!==f)if(f instanceof n.XFAObject){var h=f[n.$toStyle]();h?Object.assign(t,h):(0,i.warn)("(DEBUG) - XFA - style for ".concat(u," not implemented yet"))}else l.hasOwnProperty(u)&&l[u](e,t)}return t};var n=r(176),a=r(177),i=r(4);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=new RegExp("([\\\\p{N}\\\\p{L}\\\\p{M}]+)|([^\\\\p{N}\\\\p{L}\\\\p{M}]+)","gu"),c=new RegExp("^[\\\\p{N}\\\\p{L}\\\\p{M}]","u");function u(e){return"string"==typeof e?"0px":Number.isInteger(e)?"".concat(e,"px"):"".concat(e.toFixed(2),"px")}var l={anchorType:function(e,t){var r=e[n.$getParent]();if(r&&(!r.layout||"position"===r.layout))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}},dimensions:function(e,t){var r=e[n.$getParent](),a=e.w,i=e.h;if(r.layout&&r.layout.includes("row")){var o,s=r[n.$extra],c=e.colSpan;-1===c?(o=s.columnWidths.slice(s.currentColumn).reduce((function(e,t){return e+t}),0),s.currentColumn=0):(o=s.columnWidths.slice(s.currentColumn,s.currentColumn+c).reduce((function(e,t){return e+t}),0),s.currentColumn=(s.currentColumn+e.colSpan)%s.columnWidths.length),isNaN(o)||(a=e.w=o)}""!==a?t.width=u(a):(t.width="auto",e.maxW>0&&(t.maxWidth=u(e.maxW)),"position"===r.layout&&(t.minWidth=u(e.minW))),""!==i?t.height=u(i):(t.height="auto",e.maxH>0&&(t.maxHeight=u(e.maxH)),"position"===r.layout&&(t.minHeight=u(e.minH)))},position:function(e,t){var r=e[n.$getParent]();r&&r.layout&&"position"!==r.layout||(t.position="absolute",t.left=u(e.x),t.top=u(e.y))},rotate:function(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+="rotate(-".concat(e.rotate,"deg)"),t.transformOrigin="top left")},presence:function(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign:function(e,t){if("para"===e[n.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"right":case"center":t.justifyContent=e.hAlign}},borderMarginPadding:function(e,t){var r,a=[0,0,0,0],i=e.margin?[e.margin.topInset,e.margin.rightInset,e.margin.bottomInset,e.margin.leftInset]:[0,0,0,0];if(e.border&&(Object.assign(t,e.border[n.$toStyle](a,[0,0,0,0])),r=t.margin,delete t.margin),a.every((function(e){return 0===e}))){if(i.every((function(e){return 0===e})))return;return Object.assign(t,e.margin[n.$toStyle]()),t.padding=t.margin,delete t.margin,delete t.outline,void delete t.outlineOffset}e.margin&&(Object.assign(t,e.margin[n.$toStyle]()),t.padding=t.margin,delete t.margin),t.borderWidth&&(t.borderData={borderWidth:t.borderWidth,borderColor:t.borderColor,borderStyle:t.borderStyle,margin:r},delete t.borderWidth,delete t.borderColor,delete t.borderStyle)}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,r){var s=e[n.$extra],c=s.availableSpace;switch(e.layout){case"position":var u=i(r,4),l=u[0],f=u[1],h=u[2],d=u[3];s.width=Math.max(s.width,l+h),s.height=Math.max(s.height,f+d),s.children.push(t);break;case"lr-tb":case"rl-tb":if(s.line&&1!==s.attempt||(s.line={name:"div",attributes:{class:"lr-tb"===e.layout?"xfaLr":"xfaRl"},children:[]},s.children.push(s.line)),s.line.children.push(t),0===s.attempt){var p=i(r,4),g=p[2],m=p[3];s.currentWidth+=g,s.height=Math.max(s.height,s.prevHeight+m)}else{var v=i(r,4),y=v[2],b=v[3];s.width=Math.max(s.width,s.currentWidth),s.currentWidth=y,s.prevHeight=s.height,s.height+=b,s.attempt=0}break;case"rl-row":case"row":s.children.push(t);var w=i(r,4),k=w[2],S=w[3];s.width+=k,s.height=Math.max(s.height,S);var x,A=(0,a.measureToString)(s.height),O=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}(s.children);try{for(O.s();!(x=O.n()).done;){var C=x.value;"xfaWrapper"===C.attributes.class?C.children[C.children.length-1].attributes.style.height=A:C.attributes.style.height=A}}catch(e){O.e(e)}finally{O.f()}break;case"table":var T=i(r,4),F=T[2],P=T[3];s.width=Math.min(c.width,Math.max(s.width,F)),s.height+=P,s.children.push(t);break;case"tb":var _=i(r,4)[3];s.width=c.width,s.height+=_,s.children.push(t)}},t.flushHTML=function(e){var t={name:"div",attributes:e[n.$extra].attributes,children:e[n.$extra].children};if(e[n.$extra].failingNode){var r=e[n.$extra].failingNode[n.$flushHTML]();r&&t.children.push(r)}return 0===t.children.length?null:(e[n.$extra].children=[],delete e[n.$extra].line,t)},t.getAvailableSpace=function(e){var t=e[n.$extra].availableSpace;switch(e.layout){case"lr-tb":case"rl-tb":switch(e[n.$extra].attempt){case 0:return{width:t.width-e[n.$extra].currentWidth,height:t.height-e[n.$extra].prevHeight};case 1:return{width:t.width,height:t.height-e[n.$extra].height};default:return{width:1/0,height:t.height-e[n.$extra].prevHeight}}case"rl-row":case"row":return{width:e[n.$extra].columnWidths.slice(e[n.$extra].currentColumn).reduce((function(e,t){return e+t})),height:t.height};case"table":case"tb":return{width:t.width,height:t.height-e[n.$extra].height};default:return t}};var n=r(176),a=r(181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(e,t,r){var i=b(r);if(!i)return null;if(i.some((function(e){return e.operator===d})))return null;var o=v.get(i[0].name),s=0;o?(e=o(e,t),s=1):e=t||e;for(var c=i.length;s<c;s++){var u=i[s],l=u.name,f=u.operator,g=u.index;if(!isFinite(g))return i[s].index=0,w(e,i.slice(s));var m=void 0;switch(f){case h:m=e[n.$getChildrenByName](l,!1);break;case d:m=e[n.$getChildrenByName](l,!0);break;case p:m=(m=e[n.$getChildrenByClass](l))instanceof n.XFAObjectArray?m.children:[m]}if(0===m.length)return w(e,i.slice(s));if(!(g<m.length))return i[s].index=m.length-g,w(e,i.slice(s));var y=m[g];if(!(y instanceof n.XFAObject))return(0,a.warn)("XFA - Cannot create a node."),null;e=y}return null},t.searchNode=function(e,t,r){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],c=b(r,a);if(!c)return null;var u,l=v.get(c[0].name),f=0;l?(u=!0,e=[l(e,t)],f=1):(u=null===t,e=[t||e]);for(var g=function(r){var a,o=c[f],l=o.name,g=o.cacheName,m=o.operator,v=o.index,b=[],w=i(e);try{for(w.s();!(a=w.n()).done;){var k=a.value;if(k instanceof n.XFAObject){var S=void 0,x=void 0;if(s&&((x=y.get(k))||(x=new Map,y.set(k,x)),S=x.get(g)),!S){switch(m){case h:S=k[n.$getChildrenByName](l,!1);break;case d:S=k[n.$getChildrenByName](l,!0);break;case p:S=(S=k[n.$getChildrenByClass](l))instanceof n.XFAObjectArray?S.children:[S]}s&&x.set(g,S)}S.length>0&&b.push(S)}}}catch(e){w.e(e)}finally{w.f()}if(0===b.length&&!u&&0===f){var A=t[n.$getParent]();return(t=A)?(f=-1,e=[t],"continue"):{v:null}}e=isFinite(v)?b.filter((function(e){return v<e.length})).map((function(e){return e[v]})):b.reduce((function(e,t){return e.concat(t)}),[])},m=c.length;f<m;f++){var w=g(m);if("continue"!==w&&"object"===o(w))return w.v}return 0===e.length?null:e};var n=r(176),a=r(4);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}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){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=/^[^.[]+/,f=/^[^\\]]+/,h=0,d=1,p=2,g=3,m=4,v=new Map([["$data",function(e,t){return e.datasets.data}],["$template",function(e,t){return e.template}],["$connectionSet",function(e,t){return e.connectionSet}],["$form",function(e,t){return e.form}],["$layout",function(e,t){return e.layout}],["$host",function(e,t){return e.host}],["$dataWindow",function(e,t){return e.dataWindow}],["$event",function(e,t){return e.event}],["!",function(e,t){return e.datasets}],["$xfa",function(e,t){return e}],["xfa",function(e,t){return e}],["$",function(e,t){return t}]]),y=new WeakMap;function b(e,t){var r=e.match(l);if(!r)return null;for(var n,i=s(r,1)[0],o=[{name:i,cacheName:"."+i,index:0,js:null,formCalc:null,operator:h}],c=i.length;c<e.length;){var u=c;if("["!==e.charAt(c++)){var v=void 0;switch(e.charAt(c)){case".":if(!t)return null;c++,v=d;break;case"#":c++,v=p;break;case"[":v=g;break;case"(":v=m;break;default:v=h}if(!(r=e.slice(c).match(l)))break;c+=(i=s(r,1)[0]).length,o.push({name:i,cacheName:e.slice(u,c),operator:v,index:0,js:null,formCalc:null})}else{if(!(r=e.slice(c).match(f)))return(0,a.warn)("XFA - Invalid index in SOM expression"),null;o[o.length-1].index="*"===(n=(n=r[0]).trim())?1/0:parseInt(n,10)||0,c+=r[0].length+1}}return o}function w(e,t){var r,a=null,o=i(t);try{for(o.s();!(r=o.n()).done;){for(var s=r.value,c=s.name,u=s.index,l=0;l<=u;l++)a=new n.XmlObject(e[n.$namespaceId],c),e[n.$appendChild](a);e=a}}catch(e){o.e(e)}finally{o.f()}return a}},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0;var a=r(176),i=r(169),o=r(185),s=r(4);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||u(e,t)||function(){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 u(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var a=g(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var m=function(e){!function(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&&h(e,t)}(p,e);var t,r,n,l=d(p);function p(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(e=l.call(this))._builder=new o.Builder,e._stack=[],e._ids=new Map,e._current=e._builder.buildRoot(e._ids),e._errorCode=i.XMLParserErrorCode.NoError,e._whiteRegex=/^\\s+$/,e._nbsps=/\\xa0+/g,e}return t=p,(r=[{key:"parse",value:function(e){if(this.parseXml(e),this._errorCode===i.XMLParserErrorCode.NoError)return this._current[a.$finalize](),this._current.element}},{key:"onText",value:function(e){e=e.replace(this._nbsps,(function(e){return e.slice(1)+" "})),this._current[a.$acceptWhitespace]()?this._current[a.$onText](e):this._whiteRegex.test(e)||this._current[a.$onText](e.trim())}},{key:"onCdata",value:function(e){this._current[a.$onText](e)}},{key:"_mkAttributes",value:function(e,t){var r,n=null,i=null,o=Object.create({}),c=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(e);try{for(c.s();!(r=c.n()).done;){var l=r.value,f=l.name,h=l.value;if("xmlns"===f)n?(0,s.warn)("XFA - multiple namespace definition in <".concat(t,">")):n=h;else if(f.startsWith("xmlns:")){var d=f.substring("xmlns:".length);i||(i=[]),i.push({prefix:d,value:h})}else{var p=f.indexOf(":");if(-1===p)o[f]=h;else{var g=o[a.$nsAttributes];g||(g=o[a.$nsAttributes]=Object.create(null));var m=[f.slice(0,p),f.slice(p+1)],v=m[0],y=m[1],b=g[v];b||(b=g[v]=Object.create(null)),b[y]=h}}}}catch(e){c.e(e)}finally{c.f()}return[n,i,o]}},{key:"_getNameAndPrefix",value:function(e){var t=e.indexOf(":");return-1===t?[e,null]:[e.substring(t+1),e.substring(0,t)]}},{key:"onBeginElement",value:function(e,t,r){var n=c(this._mkAttributes(t,e),3),i=n[0],o=n[1],s=n[2],u=c(this._getNameAndPrefix(e),2),l=u[0],f=u[1],h=this._builder.build({nsPrefix:f,name:l,attributes:s,namespace:i,prefixes:o});if(r)return h[a.$finalize](),this._current[a.$onChild](h)&&h[a.$setId](this._ids),void h[a.$clean](this._builder);this._stack.push(this._current),this._current=h}},{key:"onEndElement",value:function(e){var t=this._current;t[a.$finalize](),this._current=this._stack.pop(),this._current[a.$onChild](t)&&t[a.$setId](this._ids),t[a.$clean](this._builder)}},{key:"onError",value:function(e){this._errorCode=e}}])&&f(t.prototype,r),n&&f(t,n),p}(i.XMLParserBase);t.XFAParser=m},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;var a=r(178),i=r(176),o=r(186),s=r(180),c=r(195),u=r(4);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||h(e,t)||function(){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){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){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 h(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function v(e,t,r){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},v(e,t,r||e)}function y(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var a=S(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var x=function(e){y(r,e);var t=w(r);function r(e){var n;return p(this,r),(n=t.call(this,-1,"root",Object.create(null))).element=null,n[i.$ids]=e,n}return m(r,[{key:i.$onChild,value:function(e){return this.element=e,!0}},{key:i.$finalize,value:function(){v(S(r.prototype),i.$finalize,this).call(this),this.element.template instanceof s.Template&&(this.element.template[i.$resolvePrototypes](this[i.$ids]),this.element.template[i.$ids]=this[i.$ids])}}]),r}(i.XFAObject),A=function(e){y(r,e);var t=w(r);function r(){return p(this,r),t.call(this,-1,"",Object.create(null))}return m(r,[{key:i.$onChild,value:function(e){return!1}}]),r}(i.XFAObject),O=function(){function e(){p(this,e),this._namespaceStack=[],this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max.apply(Math,f(Object.values(a.NamespaceIds).map((function(e){return e.id})))),this._currentNamespace=new c.UnknownNamespace(++this._nextNsId)}return m(e,[{key:"buildRoot",value:function(e){return new x(e)}},{key:"build",value:function(e){var t=e.nsPrefix,r=e.name,n=e.attributes,s=e.namespace,c=e.prefixes,u=null!==s;if(u&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(s)),c&&this._addNamespacePrefix(c),n.hasOwnProperty(i.$nsAttributes)){for(var f=o.NamespaceSetUp.datasets,h=n[i.$nsAttributes],d=null,p=0,g=Object.entries(h);p<g.length;p++){var m=l(g[p],2),v=m[0],y=m[1];if(this._getNamespaceToUse(v)===f){d={xfa:y};break}}d?n[i.$nsAttributes]=d:delete n[i.$nsAttributes]}var b=this._getNamespaceToUse(t),w=b&&b[a.$buildXFAObject](r,n)||new A;return(u||c)&&(w[i.$cleanup]={hasNamespace:u,prefixes:c}),w}},{key:"_searchNamespace",value:function(e){var t=this._namespaces.get(e);if(t)return t;for(var r=0,n=Object.entries(a.NamespaceIds);r<n.length;r++){var i=l(n[r],2),s=i[0];if((0,i[1].check)(e)){if(t=o.NamespaceSetUp[s])return this._namespaces.set(e,t),t;break}}return t=new c.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t),t}},{key:"_addNamespacePrefix",value:function(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,a=n.prefix,i=n.value,o=this._searchNamespace(i),s=this._namespacePrefixes.get(a);s||(s=[],this._namespacePrefixes.set(a,s)),s.push(o)}}catch(e){r.e(e)}finally{r.f()}}},{key:"_getNamespaceToUse",value:function(e){if(!e)return this._currentNamespace;var t=this._namespacePrefixes.get(e);return t&&t.length>0?t[t.length-1]:((0,u.warn)("Unknown namespace prefix: ".concat(e,".")),null)}},{key:"clean",value:function(e){var t=this,r=e.hasNamespace,n=e.prefixes;r&&(this._currentNamespace=this._namespaceStack.pop()),n&&n.forEach((function(e){var r=e.prefix;t._namespacePrefixes.get(r).pop()}))}}]),e}();t.Builder=O},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var n=r(187),a=r(188),i=r(189),o=r(190),s=r(191),c=r(192),u=r(180),l=r(193),f=r(194),h={config:n.ConfigNamespace,connection:a.ConnectionSetNamespace,datasets:i.DatasetsNamespace,localeSet:o.LocaleSetNamespace,signature:s.SignatureNamespace,stylesheet:c.StylesheetNamespace,template:u.TemplateNamespace,xdp:l.XdpNamespace,xhtml:f.XhtmlNamespace};t.NamespaceSetUp=h},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigNamespace=void 0;var a=r(178),i=r(176),o=r(177),s=r(4);function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var a=v(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=a.NamespaceIds.config.id,b=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"acrobat",!0)).acrobat7=null,n.autoSave=null,n.common=null,n.validate=null,n.validateApprovalSignatures=null,n.submitUrl=new i.XFAObjectArray,n}return r}(i.XFAObject),w=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"acrobat7",!0)).dynamicRender=null,n}return r}(i.XFAObject),k=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"ADBE_JSConsole",["delegate","Enable","Disable"])}return r}(i.OptionObject),S=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"ADBE_JSDebugger",["delegate","Enable","Disable"])}return r}(i.OptionObject),x=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"addSilentPrint")}return r}(i.Option01),A=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"addViewerPreferences")}return r}(i.Option01),O=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"adjustData")}return r}(i.Option10),C=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"adobeExtensionLevel",0,(function(e){return e>=1&&e<=8}))}return r}(i.IntegerObject),T=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"agent",!0)).name=e.name?e.name.trim():"",n.common=new i.XFAObjectArray,n}return r}(i.XFAObject),F=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"alwaysEmbed")}return r}(i.ContentObject),P=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"amd")}return r}(i.StringObject),_=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"area")).level=(0,o.getInteger)({data:e.level,defaultValue:0,validate:function(e){return e>=1&&e<=3}}),n.name=(0,o.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]),n}return r}(i.XFAObject),I=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"attributes",["preserve","delegate","ignore"])}return r}(i.OptionObject),E=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"autoSave",["disabled","enabled"])}return r}(i.OptionObject),j=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"base")}return r}(i.StringObject),R=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"batchOutput")).format=(0,o.getStringOption)(e.format,["none","concat","zip","zipCompress"]),n}return r}(i.XFAObject),M=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"behaviorOverride")}return f(r,[{key:i.$finalize,value:function(){this[i.$content]=new Map(this[i.$content].trim().split(/\\s+/).filter((function(e){return!!e&&e.include(":")})).map((function(e){return e.split(":",2)})))}}]),r}(i.ContentObject),N=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"cache",!0)).templateCache=null,n}return r}(i.XFAObject),B=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"change")}return r}(i.Option01),D=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"common",!0)).data=null,n.locale=null,n.localeSet=null,n.messaging=null,n.suppressBanner=null,n.template=null,n.validationMessaging=null,n.versionControl=null,n.log=new i.XFAObjectArray,n}return r}(i.XFAObject),L=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"compress")).scope=(0,o.getStringOption)(e.scope,["imageOnly","document"]),n}return r}(i.XFAObject),U=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"compressLogicalStructure")}return r}(i.Option01),q=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"compressObjectStream")}return r}(i.Option10),X=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"compression",!0)).compressLogicalStructure=null,n.compressObjectStream=null,n.level=null,n.type=null,n}return r}(i.XFAObject),H=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"config",!0)).acrobat=null,n.present=null,n.trace=null,n.agent=new i.XFAObjectArray,n}return r}(i.XFAObject),$=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"conformance",["A","B"])}return r}(i.OptionObject),z=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"contentCopy")}return r}(i.Option01),G=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"copies",1,(function(e){return e>=1}))}return r}(i.IntegerObject),W=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"creator")}return r}(i.StringObject),V=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"currentPage",0,(function(e){return e>=0}))}return r}(i.IntegerObject),K=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"data",!0)).adjustData=null,n.attributes=null,n.incrementalLoad=null,n.outputXSL=null,n.range=null,n.record=null,n.startNode=null,n.uri=null,n.window=null,n.xsl=null,n.excludeNS=new i.XFAObjectArray,n.transform=new i.XFAObjectArray,n}return r}(i.XFAObject),Y=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"debug",!0)).uri=null,n}return r}(i.XFAObject),J=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"defaultTypeface")).writingScript=(0,o.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]),n}return r}(i.ContentObject),Z=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"destination",["pdf","pcl","ps","webClient","zpl"])}return r}(i.OptionObject),Q=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"documentAssembly")}return r}(i.Option01),ee=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"driver",!0)).name=e.name?e.name.trim():"",n.fontInfo=null,n.xdc=null,n}return r}(i.XFAObject),te=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}return r}(i.OptionObject),re=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"dynamicRender",["forbidden","required"])}return r}(i.OptionObject),ne=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"embed")}return r}(i.Option01),ae=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"encrypt")}return r}(i.Option01),ie=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"encryption",!0)).encrypt=null,n.encryptionLevel=null,n.permissions=null,n}return r}(i.XFAObject),oe=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"encryptionLevel",["40bit","128bit"])}return r}(i.OptionObject),se=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"enforce")}return r}(i.StringObject),ce=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"equate")).force=(0,o.getInteger)({data:e.force,defaultValue:1,validate:function(e){return 0===e}}),n.from=e.from||"",n.to=e.to||"",n}return r}(i.XFAObject),ue=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"equateRange")).from=e.from||"",n.to=e.to||"",n._unicodeRange=e.unicodeRange||"",n}return f(r,[{key:"unicodeRange",get:function(){var e,t=[],r=/U\\+([0-9a-fA-F]+)/,n=c(this._unicodeRange.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e})));try{for(n.s();!(e=n.n()).done;){var a=e.value;1===(a=a.split("-",2).map((function(e){var t=e.match(r);return t?parseInt(t[1],16):0}))).length&&a.push(a[0]),t.push(a)}}catch(e){n.e(e)}finally{n.f()}return(0,s.shadow)(this,"unicodeRange",t)}}]),r}(i.XFAObject),le=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"exclude")}return f(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim().split(/\\s+/).filter((function(e){return e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e)}))}}]),r}(i.ContentObject),fe=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"excludeNS")}return r}(i.StringObject),he=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"flipLabel",["usePrinterSetting","on","off"])}return r}(i.OptionObject),de=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"fontInfo",!0)).embed=null,n.map=null,n.subsetBelow=null,n.alwaysEmbed=new i.XFAObjectArray,n.defaultTypeface=new i.XFAObjectArray,n.neverEmbed=new i.XFAObjectArray,n}return r}(i.XFAObject),pe=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"formFieldFilling")}return r}(i.Option01),ge=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"groupParent")}return r}(i.StringObject),me=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}return r}(i.OptionObject),ve=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"includeXDPContent")}return r}(i.StringObject),ye=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"incrementalLoad",["none","forwardOnly"])}return r}(i.OptionObject),be=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"incrementalMerge")}return r}(i.Option01),we=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"interactive")}return r}(i.Option01),ke=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"jog",["usePrinterSetting","none","pageSet"])}return r}(i.OptionObject),Se=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"labelPrinter",!0)).name=(0,o.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),n.batchOutput=null,n.flipLabel=null,n.fontInfo=null,n.xdc=null,n}return r}(i.XFAObject),xe=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"layout",["paginate","panel"])}return r}(i.OptionObject),Ae=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"level",0,(function(e){return e>0}))}return r}(i.IntegerObject),Oe=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"linearized")}return r}(i.Option01),Ce=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"locale")}return r}(i.StringObject),Te=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"localeSet")}return r}(i.StringObject),Fe=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"log",!0)).mode=null,n.threshold=null,n.to=null,n.uri=null,n}return r}(i.XFAObject),Pe=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"map",!0)).equate=new i.XFAObjectArray,n.equateRange=new i.XFAObjectArray,n}return r}(i.XFAObject),_e=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"mediumInfo",!0)).map=null,n}return r}(i.XFAObject),Ie=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"message",!0)).msgId=null,n.severity=null,n}return r}(i.XFAObject),Ee=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"messaging",!0)).message=new i.XFAObjectArray,n}return r}(i.XFAObject),je=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"mode",["append","overwrite"])}return r}(i.OptionObject),Re=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"modifyAnnots")}return r}(i.Option01),Me=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"msgId",1,(function(e){return e>=1}))}return r}(i.IntegerObject),Ne=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"nameAttr")}return r}(i.StringObject),Be=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"neverEmbed")}return r}(i.ContentObject),De=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"numberOfCopies",null,(function(e){return e>=2&&e<=5}))}return r}(i.IntegerObject),Le=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"openAction",!0)).destination=null,n}return r}(i.XFAObject),Ue=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"output",!0)).to=null,n.type=null,n.uri=null,n}return r}(i.XFAObject),qe=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"outputBin")}return r}(i.StringObject),Xe=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"outputXSL",!0)).uri=null,n}return r}(i.XFAObject),He=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"overprint",["none","both","draw","field"])}return r}(i.OptionObject),$e=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"packets")}return f(r,[{key:i.$finalize,value:function(){"*"!==this[i.$content]&&(this[i.$content]=this[i.$content].trim().split(/\\s+/).filter((function(e){return["config","datasets","template","xfdf","xslt"].includes(e)})))}}]),r}(i.StringObject),ze=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"pageOffset")).x=(0,o.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:function(e){return!0}}),n.y=(0,o.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:function(e){return!0}}),n}return r}(i.XFAObject),Ge=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"pageRange")}return f(r,[{key:i.$finalize,value:function(){for(var e=this[i.$content].trim().split(/\\s+/).map((function(e){return parseInt(e,10)})),t=[],r=0,n=e.length;r<n;r+=2)t.push(e.slice(r,r+2));this[i.$content]=t}}]),r}(i.StringObject),We=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}return r}(i.OptionObject),Ve=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}return r}(i.OptionObject),Ke=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"part",1,(function(e){return!1}))}return r}(i.IntegerObject),Ye=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"pcl",!0)).name=e.name||"",n.batchOutput=null,n.fontInfo=null,n.jog=null,n.mediumInfo=null,n.outputBin=null,n.pageOffset=null,n.staple=null,n.xdc=null,n}return r}(i.XFAObject),Je=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"pdf",!0)).name=e.name||"",n.adobeExtensionLevel=null,n.batchOutput=null,n.compression=null,n.creator=null,n.encryption=null,n.fontInfo=null,n.interactive=null,n.linearized=null,n.openAction=null,n.pdfa=null,n.producer=null,n.renderPolicy=null,n.scriptModel=null,n.silentPrint=null,n.submitFormat=null,n.tagged=null,n.version=null,n.viewerPreferences=null,n.xdc=null,n}return r}(i.XFAObject),Ze=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"pdfa",!0)).amd=null,n.conformance=null,n.includeXDPContent=null,n.part=null,n}return r}(i.XFAObject),Qe=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"permissions",!0)).accessibleContent=null,n.change=null,n.contentCopy=null,n.documentAssembly=null,n.formFieldFilling=null,n.modifyAnnots=null,n.plaintextMetadata=null,n.print=null,n.printHighQuality=null,n}return r}(i.XFAObject),et=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"pickTrayByPDFSize")}return r}(i.Option01),tt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"picture")}return r}(i.StringObject),rt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"plaintextMetadata")}return r}(i.Option01),nt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}return r}(i.OptionObject),at=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"present",!0)).behaviorOverride=null,n.cache=null,n.common=null,n.copies=null,n.destination=null,n.incrementalMerge=null,n.layout=null,n.output=null,n.overprint=null,n.pagination=null,n.paginationOverride=null,n.script=null,n.validate=null,n.xdp=null,n.driver=new i.XFAObjectArray,n.labelPrinter=new i.XFAObjectArray,n.pcl=new i.XFAObjectArray,n.pdf=new i.XFAObjectArray,n.ps=new i.XFAObjectArray,n.submitUrl=new i.XFAObjectArray,n.webClient=new i.XFAObjectArray,n.zpl=new i.XFAObjectArray,n}return r}(i.XFAObject),it=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"print")}return r}(i.Option01),ot=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"printHighQuality")}return r}(i.Option01),st=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"printScaling",["appdefault","noScaling"])}return r}(i.OptionObject),ct=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"printerName")}return r}(i.StringObject),ut=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"producer")}return r}(i.StringObject),lt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"ps",!0)).name=e.name||"",n.batchOutput=null,n.fontInfo=null,n.jog=null,n.mediumInfo=null,n.outputBin=null,n.staple=null,n.xdc=null,n}return r}(i.XFAObject),ft=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"range")}return f(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim().split(/\\s*,\\s*/,2).map((function(e){return e.split("-").map((function(e){return parseInt(e.trim(),10)}))})).filter((function(e){return e.every((function(e){return!isNaN(e)}))})).map((function(e){return 1===e.length&&e.push(e[0]),e}))}}]),r}(i.ContentObject),ht=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"record")}return f(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim();var e=parseInt(this[i.$content],10);!isNaN(e)&&e>=0&&(this[i.$content]=e)}}]),r}(i.ContentObject),dt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"relevant")}return f(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim().split(/\\s+/)}}]),r}(i.ContentObject),pt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"rename")}return f(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim(),(this[i.$content].toLowerCase().startsWith("xml")||this[i.$content].match(new RegExp("[\\\\p{L}_][\\\\p{L}\\\\d._\\\\p{M}-]*","u")))&&(0,s.warn)("XFA - Rename: invalid XFA name")}}]),r}(i.ContentObject),gt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"renderPolicy",["server","client"])}return r}(i.OptionObject),mt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"runScripts",["both","client","none","server"])}return r}(i.OptionObject),vt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"script",!0)).currentPage=null,n.exclude=null,n.runScripts=null,n}return r}(i.XFAObject),yt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"scriptModel",["XFA","none"])}return r}(i.OptionObject),bt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"severity",["ignore","error","information","trace","warning"])}return r}(i.OptionObject),wt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"silentPrint",!0)).addSilentPrint=null,n.printerName=null,n}return r}(i.XFAObject),kt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"staple")).mode=(0,o.getStringOption)(e.mode,["usePrinterSetting","on","off"]),n}return r}(i.XFAObject),St=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"startNode")}return r}(i.StringObject),xt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"startPage",0,(function(e){return!0}))}return r}(i.IntegerObject),At=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"submitFormat",["html","delegate","fdf","xml","pdf"])}return r}(i.OptionObject),Ot=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"submitUrl")}return r}(i.StringObject),Ct=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"subsetBelow",100,(function(e){return e>=0&&e<=100}))}return r}(i.IntegerObject),Tt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"suppressBanner")}return r}(i.Option01),Ft=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"tagged")}return r}(i.Option01),Pt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"template",!0)).base=null,n.relevant=null,n.startPage=null,n.uri=null,n.xsl=null,n}return r}(i.XFAObject),_t=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"threshold",["trace","error","information","warning"])}return r}(i.OptionObject),It=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"to",["null","memory","stderr","stdout","system","uri"])}return r}(i.OptionObject),Et=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"templateCache")).maxEntries=(0,o.getInteger)({data:e.maxEntries,defaultValue:5,validate:function(e){return e>=0}}),n}return r}(i.XFAObject),jt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"trace",!0)).area=new i.XFAObjectArray,n}return r}(i.XFAObject),Rt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"transform",!0)).groupParent=null,n.ifEmpty=null,n.nameAttr=null,n.picture=null,n.presence=null,n.rename=null,n.whitespace=null,n}return r}(i.XFAObject),Mt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}return r}(i.OptionObject),Nt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"uri")}return r}(i.StringObject),Bt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"validate",["preSubmit","prePrint","preExecute","preSave"])}return r}(i.OptionObject),Dt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"validateApprovalSignatures")}return f(r,[{key:i.$finalize,value:function(){this[i.$content]=this[i.$content].trim().split(/\\s+/).filter((function(e){return["docReady","postSign"].includes(e)}))}}]),r}(i.ContentObject),Lt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}return r}(i.OptionObject),Ut=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}return r}(i.OptionObject),qt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"VersionControl")).outputBelow=(0,o.getStringOption)(e.outputBelow,["warn","error","update"]),n.sourceAbove=(0,o.getStringOption)(e.sourceAbove,["warn","error"]),n.sourceBelow=(0,o.getStringOption)(e.sourceBelow,["update","maintain"]),n}return r}(i.XFAObject),Xt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"viewerPreferences",!0)).ADBE_JSConsole=null,n.ADBE_JSDebugger=null,n.addViewerPreferences=null,n.duplexOption=null,n.enforce=null,n.numberOfCopies=null,n.pageRange=null,n.pickTrayByPDFSize=null,n.printScaling=null,n}return r}(i.XFAObject),Ht=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"webClient",!0)).name=e.name?e.name.trim():"",n.fontInfo=null,n.xdc=null,n}return r}(i.XFAObject),$t=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}return r}(i.OptionObject),zt=function(e){d(r,e);var t=g(r);function r(e){return h(this,r),t.call(this,y,"window")}return f(r,[{key:i.$finalize,value:function(){var e=this[i.$content].trim().split(/\\s*,\\s*/,2).map((function(e){return parseInt(e,10)}));e.some((function(e){return isNaN(e)}))?this[i.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[i.$content]=e)}}]),r}(i.ContentObject),Gt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"xdc",!0)).uri=new i.XFAObjectArray,n.xsl=new i.XFAObjectArray,n}return r}(i.XFAObject),Wt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"xdp",!0)).packets=null,n}return r}(i.XFAObject),Vt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"xsl",!0)).debug=null,n.uri=null,n}return r}(i.XFAObject),Kt=function(e){d(r,e);var t=g(r);function r(e){var n;return h(this,r),(n=t.call(this,y,"zpl",!0)).name=e.name?e.name.trim():"",n.batchOutput=null,n.flipLabel=null,n.fontInfo=null,n.xdc=null,n}return r}(i.XFAObject),Yt=function(){function e(){h(this,e)}return f(e,null,[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"acrobat",value:function(e){return new b(e)}},{key:"acrobat7",value:function(e){return new w(e)}},{key:"ADBE_JSConsole",value:function(e){return new k(e)}},{key:"ADBE_JSDebugger",value:function(e){return new S(e)}},{key:"addSilentPrint",value:function(e){return new x(e)}},{key:"addViewerPreferences",value:function(e){return new A(e)}},{key:"adjustData",value:function(e){return new O(e)}},{key:"adobeExtensionLevel",value:function(e){return new C(e)}},{key:"agent",value:function(e){return new T(e)}},{key:"alwaysEmbed",value:function(e){return new F(e)}},{key:"amd",value:function(e){return new P(e)}},{key:"area",value:function(e){return new _(e)}},{key:"attributes",value:function(e){return new I(e)}},{key:"autoSave",value:function(e){return new E(e)}},{key:"base",value:function(e){return new j(e)}},{key:"batchOutput",value:function(e){return new R(e)}},{key:"behaviorOverride",value:function(e){return new M(e)}},{key:"cache",value:function(e){return new N(e)}},{key:"change",value:function(e){return new B(e)}},{key:"common",value:function(e){return new D(e)}},{key:"compress",value:function(e){return new L(e)}},{key:"compressLogicalStructure",value:function(e){return new U(e)}},{key:"compressObjectStream",value:function(e){return new q(e)}},{key:"compression",value:function(e){return new X(e)}},{key:"config",value:function(e){return new H(e)}},{key:"conformance",value:function(e){return new $(e)}},{key:"contentCopy",value:function(e){return new z(e)}},{key:"copies",value:function(e){return new G(e)}},{key:"creator",value:function(e){return new W(e)}},{key:"currentPage",value:function(e){return new V(e)}},{key:"data",value:function(e){return new K(e)}},{key:"debug",value:function(e){return new Y(e)}},{key:"defaultTypeface",value:function(e){return new J(e)}},{key:"destination",value:function(e){return new Z(e)}},{key:"documentAssembly",value:function(e){return new Q(e)}},{key:"driver",value:function(e){return new ee(e)}},{key:"duplexOption",value:function(e){return new te(e)}},{key:"dynamicRender",value:function(e){return new re(e)}},{key:"embed",value:function(e){return new ne(e)}},{key:"encrypt",value:function(e){return new ae(e)}},{key:"encryption",value:function(e){return new ie(e)}},{key:"encryptionLevel",value:function(e){return new oe(e)}},{key:"enforce",value:function(e){return new se(e)}},{key:"equate",value:function(e){return new ce(e)}},{key:"equateRange",value:function(e){return new ue(e)}},{key:"exclude",value:function(e){return new le(e)}},{key:"excludeNS",value:function(e){return new fe(e)}},{key:"flipLabel",value:function(e){return new he(e)}},{key:"fontInfo",value:function(e){return new de(e)}},{key:"formFieldFilling",value:function(e){return new pe(e)}},{key:"groupParent",value:function(e){return new ge(e)}},{key:"ifEmpty",value:function(e){return new me(e)}},{key:"includeXDPContent",value:function(e){return new ve(e)}},{key:"incrementalLoad",value:function(e){return new ye(e)}},{key:"incrementalMerge",value:function(e){return new be(e)}},{key:"interactive",value:function(e){return new we(e)}},{key:"jog",value:function(e){return new ke(e)}},{key:"labelPrinter",value:function(e){return new Se(e)}},{key:"layout",value:function(e){return new xe(e)}},{key:"level",value:function(e){return new Ae(e)}},{key:"linearized",value:function(e){return new Oe(e)}},{key:"locale",value:function(e){return new Ce(e)}},{key:"localeSet",value:function(e){return new Te(e)}},{key:"log",value:function(e){return new Fe(e)}},{key:"map",value:function(e){return new Pe(e)}},{key:"mediumInfo",value:function(e){return new _e(e)}},{key:"message",value:function(e){return new Ie(e)}},{key:"messaging",value:function(e){return new Ee(e)}},{key:"mode",value:function(e){return new je(e)}},{key:"modifyAnnots",value:function(e){return new Re(e)}},{key:"msgId",value:function(e){return new Me(e)}},{key:"nameAttr",value:function(e){return new Ne(e)}},{key:"neverEmbed",value:function(e){return new Be(e)}},{key:"numberOfCopies",value:function(e){return new De(e)}},{key:"openAction",value:function(e){return new Le(e)}},{key:"output",value:function(e){return new Ue(e)}},{key:"outputBin",value:function(e){return new qe(e)}},{key:"outputXSL",value:function(e){return new Xe(e)}},{key:"overprint",value:function(e){return new He(e)}},{key:"packets",value:function(e){return new $e(e)}},{key:"pageOffset",value:function(e){return new ze(e)}},{key:"pageRange",value:function(e){return new Ge(e)}},{key:"pagination",value:function(e){return new We(e)}},{key:"paginationOverride",value:function(e){return new Ve(e)}},{key:"part",value:function(e){return new Ke(e)}},{key:"pcl",value:function(e){return new Ye(e)}},{key:"pdf",value:function(e){return new Je(e)}},{key:"pdfa",value:function(e){return new Ze(e)}},{key:"permissions",value:function(e){return new Qe(e)}},{key:"pickTrayByPDFSize",value:function(e){return new et(e)}},{key:"picture",value:function(e){return new tt(e)}},{key:"plaintextMetadata",value:function(e){return new rt(e)}},{key:"presence",value:function(e){return new nt(e)}},{key:"present",value:function(e){return new at(e)}},{key:"print",value:function(e){return new it(e)}},{key:"printHighQuality",value:function(e){return new ot(e)}},{key:"printScaling",value:function(e){return new st(e)}},{key:"printerName",value:function(e){return new ct(e)}},{key:"producer",value:function(e){return new ut(e)}},{key:"ps",value:function(e){return new lt(e)}},{key:"range",value:function(e){return new ft(e)}},{key:"record",value:function(e){return new ht(e)}},{key:"relevant",value:function(e){return new dt(e)}},{key:"rename",value:function(e){return new pt(e)}},{key:"renderPolicy",value:function(e){return new gt(e)}},{key:"runScripts",value:function(e){return new mt(e)}},{key:"script",value:function(e){return new vt(e)}},{key:"scriptModel",value:function(e){return new yt(e)}},{key:"severity",value:function(e){return new bt(e)}},{key:"silentPrint",value:function(e){return new wt(e)}},{key:"staple",value:function(e){return new kt(e)}},{key:"startNode",value:function(e){return new St(e)}},{key:"startPage",value:function(e){return new xt(e)}},{key:"submitFormat",value:function(e){return new At(e)}},{key:"submitUrl",value:function(e){return new Ot(e)}},{key:"subsetBelow",value:function(e){return new Ct(e)}},{key:"suppressBanner",value:function(e){return new Tt(e)}},{key:"tagged",value:function(e){return new Ft(e)}},{key:"template",value:function(e){return new Pt(e)}},{key:"templateCache",value:function(e){return new Et(e)}},{key:"threshold",value:function(e){return new _t(e)}},{key:"to",value:function(e){return new It(e)}},{key:"trace",value:function(e){return new jt(e)}},{key:"transform",value:function(e){return new Rt(e)}},{key:"type",value:function(e){return new Mt(e)}},{key:"uri",value:function(e){return new Nt(e)}},{key:"validate",value:function(e){return new Bt(e)}},{key:"validateApprovalSignatures",value:function(e){return new Dt(e)}},{key:"validationMessaging",value:function(e){return new Lt(e)}},{key:"version",value:function(e){return new Ut(e)}},{key:"versionControl",value:function(e){return new qt(e)}},{key:"viewerPreferences",value:function(e){return new Xt(e)}},{key:"webClient",value:function(e){return new Ht(e)}},{key:"whitespace",value:function(e){return new $t(e)}},{key:"window",value:function(e){return new zt(e)}},{key:"xdc",value:function(e){return new Gt(e)}},{key:"xdp",value:function(e){return new Wt(e)}},{key:"xsl",value:function(e){return new Vt(e)}},{key:"zpl",value:function(e){return new Kt(e)}}]),e}();t.ConfigNamespace=Yt},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var a=r(178),i=r(176);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&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=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=a.NamespaceIds.connectionSet.id,p=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"connectionSet",!0)).wsdlConnection=new i.XFAObjectArray,n.xmlConnection=new i.XFAObjectArray,n.xsdConnection=new i.XFAObjectArray,n}return r}(i.XFAObject),g=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"effectiveInputPolicy")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.XFAObject),m=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"effectiveOutputPolicy")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.XFAObject),v=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"operation")).id=e.id||"",n.input=e.input||"",n.name=e.name||"",n.output=e.output||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),y=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"rootElement")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),b=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"soapAction")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),w=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"soapAddress")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),k=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"uri")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),S=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"wsdlAddress")).id=e.id||"",n.name=e.name||"",n.use=e.use||"",n.usehref=e.usehref||"",n}return r}(i.StringObject),x=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"wsdlConnection",!0)).dataDescription=e.dataDescription||"",n.name=e.name||"",n.effectiveInputPolicy=null,n.effectiveOutputPolicy=null,n.operation=null,n.soapAction=null,n.soapAddress=null,n.wsdlAddress=null,n}return r}(i.XFAObject),A=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"xmlConnection",!0)).dataDescription=e.dataDescription||"",n.name=e.name||"",n.uri=null,n}return r}(i.XFAObject),O=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,d,"xsdConnection",!0)).dataDescription=e.dataDescription||"",n.name=e.name||"",n.rootElement=null,n.uri=null,n}return r}(i.XFAObject),C=function(){function e(){s(this,e)}var t,r,n;return t=e,r=null,n=[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"connectionSet",value:function(e){return new p(e)}},{key:"effectiveInputPolicy",value:function(e){return new g(e)}},{key:"effectiveOutputPolicy",value:function(e){return new m(e)}},{key:"operation",value:function(e){return new v(e)}},{key:"rootElement",value:function(e){return new y(e)}},{key:"soapAction",value:function(e){return new b(e)}},{key:"soapAddress",value:function(e){return new w(e)}},{key:"uri",value:function(e){return new k(e)}},{key:"wsdlAddress",value:function(e){return new S(e)}},{key:"wsdlConnection",value:function(e){return new x(e)}},{key:"xmlConnection",value:function(e){return new A(e)}},{key:"xsdConnection",value:function(e){return new O(e)}}],r&&o(t.prototype,r),n&&o(t,n),e}();t.ConnectionSetNamespace=C},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var a=r(176),i=r(178);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=i.NamespaceIds.datasets.id,g=function(e){u(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"data",e)}return r}(a.XmlObject),m=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"datasets",!0)).data=null,n.Signature=null,n}return s(r,[{key:a.$onChild,value:function(e){var t=e[a.$nodeName];"data"===t&&e[a.$namespaceId]===p||"Signature"===t&&e[a.$namespaceId]===i.NamespaceIds.signature.id?this[t]=e:e[a.$global]=!0,this[a.$appendChild](e)}}]),r}(a.XFAObject),v=function(){function e(){c(this,e)}return s(e,null,[{key:i.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"datasets",value:function(e){return new m(e)}},{key:"data",value:function(e){return new g(e)}}]),e}();t.DatasetsNamespace=v},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var a=r(178),i=r(176),o=r(177);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var a=d(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=a.NamespaceIds.localeSet.id,g=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"calendarSymbols",!0)).name="gregorian",n.dayNames=new i.XFAObjectArray(2),n.eraNames=null,n.meridiemNames=null,n.monthNames=new i.XFAObjectArray(2),n}return r}(i.XFAObject),m=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"currencySymbol")).name=(0,o.getStringOption)(e.name,["symbol","isoname","decimal"]),n}return r}(i.StringObject),v=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"currencySymbols",!0)).currencySymbol=new i.XFAObjectArray(3),n}return r}(i.XFAObject),y=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"datePattern")).name=(0,o.getStringOption)(e.name,["full","long","med","short"]),n}return r}(i.StringObject),b=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"datePatterns",!0)).datePattern=new i.XFAObjectArray(4),n}return r}(i.XFAObject),w=function(e){u(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"dateTimeSymbols")}return r}(i.ContentObject),k=function(e){u(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"day")}return r}(i.StringObject),S=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"dayNames",!0)).abbr=(0,o.getInteger)({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),n.day=new i.XFAObjectArray(7),n}return r}(i.XFAObject),x=function(e){u(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"era")}return r}(i.StringObject),A=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"eraNames",!0)).era=new i.XFAObjectArray(2),n}return r}(i.XFAObject),O=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"locale",!0)).desc=e.desc||"",n.name="isoname",n.calendarSymbols=null,n.currencySymbols=null,n.datePatterns=null,n.dateTimeSymbols=null,n.numberPatterns=null,n.numberSymbols=null,n.timePatterns=null,n.typeFaces=null,n}return r}(i.XFAObject),C=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"localeSet",!0)).locale=new i.XFAObjectArray,n}return r}(i.XFAObject),T=function(e){u(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"meridiem")}return r}(i.StringObject),F=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"meridiemNames",!0)).meridiem=new i.XFAObjectArray(2),n}return r}(i.XFAObject),P=function(e){u(r,e);var t=f(r);function r(e){return c(this,r),t.call(this,p,"month")}return r}(i.StringObject),_=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"monthNames",!0)).abbr=(0,o.getInteger)({data:e.abbr,defaultValue:0,validate:function(e){return 1===e}}),n.month=new i.XFAObjectArray(12),n}return r}(i.XFAObject),I=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"numberPattern")).name=(0,o.getStringOption)(e.name,["full","long","med","short"]),n}return r}(i.StringObject),E=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"numberPatterns",!0)).numberPattern=new i.XFAObjectArray(4),n}return r}(i.XFAObject),j=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"numberSymbol")).name=(0,o.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"]),n}return r}(i.StringObject),R=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"numberSymbols",!0)).numberSymbol=new i.XFAObjectArray(5),n}return r}(i.XFAObject),M=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"timePattern")).name=(0,o.getStringOption)(e.name,["full","long","med","short"]),n}return r}(i.StringObject),N=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"timePatterns",!0)).timePattern=new i.XFAObjectArray(4),n}return r}(i.XFAObject),B=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"typeFace",!0)).name=""|e.name,n}return r}(i.XFAObject),D=function(e){u(r,e);var t=f(r);function r(e){var n;return c(this,r),(n=t.call(this,p,"typeFaces",!0)).typeFace=new i.XFAObjectArray,n}return r}(i.XFAObject),L=function(){function e(){c(this,e)}var t,r,n;return t=e,r=null,n=[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"calendarSymbols",value:function(e){return new g(e)}},{key:"currencySymbol",value:function(e){return new m(e)}},{key:"currencySymbols",value:function(e){return new v(e)}},{key:"datePattern",value:function(e){return new y(e)}},{key:"datePatterns",value:function(e){return new b(e)}},{key:"dateTimeSymbols",value:function(e){return new w(e)}},{key:"day",value:function(e){return new k(e)}},{key:"dayNames",value:function(e){return new S(e)}},{key:"era",value:function(e){return new x(e)}},{key:"eraNames",value:function(e){return new A(e)}},{key:"locale",value:function(e){return new O(e)}},{key:"localeSet",value:function(e){return new C(e)}},{key:"meridiem",value:function(e){return new T(e)}},{key:"meridiemNames",value:function(e){return new F(e)}},{key:"month",value:function(e){return new P(e)}},{key:"monthNames",value:function(e){return new _(e)}},{key:"numberPattern",value:function(e){return new I(e)}},{key:"numberPatterns",value:function(e){return new E(e)}},{key:"numberSymbol",value:function(e){return new j(e)}},{key:"numberSymbols",value:function(e){return new R(e)}},{key:"timePattern",value:function(e){return new M(e)}},{key:"timePatterns",value:function(e){return new N(e)}},{key:"typeFace",value:function(e){return new B(e)}},{key:"typeFaces",value:function(e){return new D(e)}}],r&&s(t.prototype,r),n&&s(t,n),e}();t.LocaleSetNamespace=L},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var a=r(178),i=r(176);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=a.NamespaceIds.signature.id,d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(r,e);var t=u(r);function r(e){return s(this,r),t.call(this,h,"signature",!0)}return r}(i.XFAObject),p=function(){function e(){s(this,e)}var t,r,n;return t=e,r=null,n=[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"signature",value:function(e){return new d(e)}}],r&&o(t.prototype,r),n&&o(t,n),e}();t.SignatureNamespace=p},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var a=r(178),i=r(176);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=a.NamespaceIds.stylesheet.id,d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(r,e);var t=u(r);function r(e){return s(this,r),t.call(this,h,"stylesheet",!0)}return r}(i.XFAObject),p=function(){function e(){s(this,e)}var t,r,n;return t=e,r=null,n=[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"stylesheet",value:function(e){return new d(e)}}],r&&o(t.prototype,r),n&&o(t,n),e}();t.StylesheetNamespace=p},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var a=r(178),i=r(176);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var a=h(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=a.NamespaceIds.xdp.id,p=function(e){!function(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)}(r,e);var t=l(r);function r(e){var n;return o(this,r),(n=t.call(this,d,"xdp",!0)).uuid=e.uuid||"",n.timeStamp=e.timeStamp||"",n.config=null,n.connectionSet=null,n.datasets=null,n.localeSet=null,n.stylesheet=new i.XFAObjectArray,n.template=null,n}return c(r,[{key:i.$onChildCheck,value:function(e){var t=a.NamespaceIds[e[i.$nodeName]];return t&&e[i.$namespaceId]===t.id}}]),r}(i.XFAObject),g=function(){function e(){o(this,e)}return c(e,null,[{key:a.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"xdp",value:function(e){return new p(e)}}]),e}();t.XdpNamespace=g},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0;var a=r(176),i=r(178),o=r(181),s=r(177);function c(e,t,r){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},c(e,t,r||e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var a=m(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||y(e,t)||function(){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 y(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var w=i.NamespaceIds.xhtml.id,k=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),S=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",function(e){return"none"===e?"none":"normal"}],["xfa-font-horizontal-scale",function(e){return"scaleX(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-font-vertical-scale",function(e){return"scaleY(".concat(Math.max(0,Math.min(parseInt(e)/100)).toFixed(2),")")}],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",function(e){return(0,o.measureToString)(1*(0,s.getMeasurement)(e))}],["letter-spacing",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["line-height",function(e){return(0,o.measureToString)(.99*(0,s.getMeasurement)(e))}],["margin",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-bottom",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-left",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-right",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["margin-top",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["text-indent",function(e){return(0,o.measureToString)((0,s.getMeasurement)(e))}],["font-family",function(e){return(0,o.getFonts)(e)}]]),x=/\\s+/g,A=/[\\r\\n]+/g;function O(e){var t=Object.create(null);if(!e)return t;var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=y(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(e.split(";").map((function(e){return e.split(":",2)})));try{for(n.s();!(r=n.n()).done;){var a=v(r.value,2),i=a[0],s=a[1],c=S.get(i);if(""!==c){var u=s;c&&(u="string"==typeof c?c:c(s)),i.endsWith("scale")?t.transform?t.transform="".concat(t[i]," ").concat(u):t.transform=u:t[i.replaceAll(/-([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))]=u}}}catch(e){n.e(e)}finally{n.f()}return(0,o.fixTextIndent)(t),t}var C=new Set(["body","html"]),T=function(e){h(r,e);var t=p(r);function r(e,n){var a,i;return u(this,r),(a=t.call(this,w,n)).style=(i=e.style)?i.trim().split(/\\s*;\\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\\s*:\\s*/,2)})).filter((function(e){var t=v(e,1)[0];return k.has(t)})).map((function(e){return e.join(":")})).join(";"):"",a}return f(r,[{key:a.$acceptWhitespace,value:function(){return!C.has(this[a.$nodeName])}},{key:a.$onText,value:function(e){e=e.replace(A,""),this.style.includes("xfa-spacerun:yes")||(e=e.replace(x," ")),e&&(this[a.$content]+=e)}},{key:a.$toHTML,value:function(e){var t=[];return this[a.$extra]={children:t},this[a.$childrenToHTML]({}),0!==t.length||this[a.$content]?s.HTMLResult.success({name:this[a.$nodeName],attributes:{href:this.href,style:O(this.style)},children:t,value:this[a.$content]||""}):s.HTMLResult.EMPTY}}]),r}(a.XmlObject),F=function(e){h(r,e);var t=p(r);function r(e){var n;return u(this,r),(n=t.call(this,e,"a")).href=e.href||"",n}return r}(T),P=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"b")}return r}(T),_=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"body")}return f(r,[{key:a.$toHTML,value:function(e){var t=c(m(r.prototype),a.$toHTML,this).call(this,e),n=t.html;return n?(n.name="div",n.attributes.class="xfaRich",t):s.HTMLResult.EMPTY}}]),r}(T),I=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"br")}return f(r,[{key:a.$text,value:function(){return"\\n"}},{key:a.$toHTML,value:function(e){return s.HTMLResult.success({name:"br"})}}]),r}(T),E=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"html")}return f(r,[{key:a.$toHTML,value:function(e){var t=[];if(this[a.$extra]={children:t},this[a.$childrenToHTML]({}),0===t.length)return s.HTMLResult.success({name:"div",attributes:{class:"xfaRich",style:{}},value:this[a.$content]||""});if(1===t.length){var r=t[0];if(r.attributes&&"xfaRich"===r.attributes.class)return s.HTMLResult.success(r)}return s.HTMLResult.success({name:"div",attributes:{class:"xfaRich",style:{}},children:t})}}]),r}(T),j=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"i")}return r}(T),R=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"li")}return r}(T),M=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"ol")}return r}(T),N=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"p")}return f(r,[{key:a.$text,value:function(){return c(m(r.prototype),a.$text,this).call(this)+"\\n"}}]),r}(T),B=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"span")}return r}(T),D=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"sub")}return r}(T),L=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"sup")}return r}(T),U=function(e){h(r,e);var t=p(r);function r(e){return u(this,r),t.call(this,e,"ul")}return r}(T),q=function(){function e(){u(this,e)}return f(e,null,[{key:i.$buildXFAObject,value:function(t,r){if(e.hasOwnProperty(t))return e[t](r)}},{key:"a",value:function(e){return new F(e)}},{key:"b",value:function(e){return new P(e)}},{key:"body",value:function(e){return new _(e)}},{key:"br",value:function(e){return new I(e)}},{key:"html",value:function(e){return new E(e)}},{key:"i",value:function(e){return new j(e)}},{key:"li",value:function(e){return new R(e)}},{key:"ol",value:function(e){return new M(e)}},{key:"p",value:function(e){return new N(e)}},{key:"span",value:function(e){return new B(e)}},{key:"sub",value:function(e){return new D(e)}},{key:"sup",value:function(e){return new L(e)}},{key:"ul",value:function(e){return new U(e)}}]),e}();t.XhtmlNamespace=q},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var n=r(178),a=r(176);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.namespaceId=t}var t,r,o;return t=e,(r=[{key:n.$buildXFAObject,value:function(e,t){return new a.XmlObject(this.namespaceId,e,t)}}])&&i(t.prototype,r),o&&i(t,o),e}();t.UnknownNamespace=o},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4),o=r(113),s=r(125),c=r(117),u=r(173);function l(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){l(i,n,a,o,s,"next",e)}function s(e){l(i,n,a,o,s,"throw",e)}o(void 0)}))}}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stream=t,this.pdfManager=r,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)},this._newRefNum=null}var t,r,n,l,d;return t=e,r=[{key:"getNewRef",value:function(){return null===this._newRefNum&&(this._newRefNum=this.entries.length),o.Ref.get(this._newRefNum++,0)}},{key:"resetNewRef",value:function(){this._newRefNum=null}},{key:"setStartXRef",value:function(e){this.startXRefQueue=[e]}},{key:"parse",value:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n?((0,i.warn)("Indexing all PDF objects"),e=this.indexObjects()):e=this.readXRef(),e.assignXref(this),this.trailer=e;try{t=e.get("Encrypt")}catch(e){if(e instanceof c.MissingDataException)throw e;(0,i.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(e,'".'))}if((0,o.isDict)(t)){var a=e.get("ID"),s=a&&a.length?a[0]:"";t.suppressEncryption=!0,this.encrypt=new u.CipherTransformFactory(t,s,this.pdfManager.password)}try{r=e.get("Root")}catch(e){if(e instanceof c.MissingDataException)throw e;(0,i.warn)('XRef.parse - Invalid "Root" reference: "'.concat(e,'".'))}if(!(0,o.isDict)(r)||!r.has("Pages")){if(!n)throw new c.XRefParseException;throw new i.FormatError("Invalid root reference")}this.root=r}},{key:"processXRefTable",value:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,o.isCmd)(t,"trailer"))throw new i.FormatError("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();if(!(0,o.isDict)(r)&&r.dict&&(r=r.dict),!(0,o.isDict)(r))throw new i.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,r}},{key:"readXRefTable",value:function(e){var t,r=e.lexer.stream,n=this.tableState;for(r.pos=n.streamPos,e.buf1=n.parserBuf1,e.buf2=n.parserBuf2;;){if(!("firstEntryNum"in n)||!("entryCount"in n)){if((0,o.isCmd)(t=e.getObj(),"trailer"))break;n.firstEntryNum=t,n.entryCount=e.getObj()}var a=n.firstEntryNum,s=n.entryCount;if(!Number.isInteger(a)||!Number.isInteger(s))throw new i.FormatError("Invalid XRef table: wrong types in subsection header");for(var c=n.entryNum;c<s;c++){n.streamPos=r.pos,n.entryNum=c,n.parserBuf1=e.buf1,n.parserBuf2=e.buf2;var u={};u.offset=e.getObj(),u.gen=e.getObj();var l=e.getObj();if(l instanceof o.Cmd)switch(l.cmd){case"f":u.free=!0;break;case"n":u.uncompressed=!0}if(!Number.isInteger(u.offset)||!Number.isInteger(u.gen)||!u.free&&!u.uncompressed)throw new i.FormatError("Invalid entry in XRef subsection: ".concat(a,", ").concat(s));0===c&&u.free&&1===a&&(a=0),this.entries[c+a]||(this.entries[c+a]=u)}n.entryNum=0,n.streamPos=r.pos,n.parserBuf1=e.buf1,n.parserBuf2=e.buf2,delete n.firstEntryNum,delete n.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new i.FormatError("Invalid XRef table: unexpected first object");return t}},{key:"processXRefStream",value:function(e){if(!("streamState"in this)){var t=e.dict,r=t.get("W"),n=t.get("Index");n||(n=[0,t.get("Size")]),this.streamState={entryRanges:n,byteWidths:r,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict}},{key:"readXRefStream",value:function(e){var t,r,n=this.streamState;e.pos=n.streamPos;for(var a=n.byteWidths,o=a[0],s=a[1],c=a[2],u=n.entryRanges;u.length>0;){var l=u[0],f=u[1];if(!Number.isInteger(l)||!Number.isInteger(f))throw new i.FormatError("Invalid XRef range fields: ".concat(l,", ").concat(f));if(!Number.isInteger(o)||!Number.isInteger(s)||!Number.isInteger(c))throw new i.FormatError("Invalid XRef entry fields length: ".concat(l,", ").concat(f));for(t=n.entryNum;t<f;++t){n.entryNum=t,n.streamPos=e.pos;var h=0,d=0,p=0;for(r=0;r<o;++r)h=h<<8|e.getByte();for(0===o&&(h=1),r=0;r<s;++r)d=d<<8|e.getByte();for(r=0;r<c;++r)p=p<<8|e.getByte();var g={};switch(g.offset=d,g.gen=p,h){case 0:g.free=!0;break;case 1:g.uncompressed=!0;break;case 2:break;default:throw new i.FormatError("Invalid XRef entry type: ".concat(h))}this.entries[l+t]||(this.entries[l+t]=g)}n.entryNum=0,n.streamPos=e.pos,u.splice(0,2)}}},{key:"indexObjects",value:function(){function e(e,t){for(var r="",n=e[t];10!==n&&13!==n&&60!==n&&!(++t>=e.length);)r+=String.fromCharCode(n),n=e[t];return r}function t(e,t,r){for(var n=r.length,a=e.length,i=0;t<a;){for(var o=0;o<n&&e[t+o]===r[o];)++o;if(o>=n)break;t++,i++}return i}var r=/^(\\d+)\\s+(\\d+)\\s+obj\\b/,n=/\\bendobj[\\b\\s]$/,a=/\\s+(\\d+\\s+\\d+\\s+obj[\\b\\s<])$/,c=new Uint8Array([116,114,97,105,108,101,114]),u=new Uint8Array([115,116,97,114,116,120,114,101,102]),l=new Uint8Array([111,98,106]),f=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var h=this.stream;h.pos=0;for(var d,p=h.getBytes(),g=p.length,m=h.start,v=[],y=[];m<g;){var b=p[m];if(9!==b&&10!==b&&13!==b&&32!==b)if(37!==b){var w=e(p,m),k=void 0;if(w.startsWith("xref")&&(4===w.length||/\\s/.test(w[4])))m+=t(p,m,c),v.push(m),m+=t(p,m,u);else if(k=r.exec(w)){var S=0|k[1],x=0|k[2];this.entries[S]&&this.entries[S].gen!==x||(this.entries[S]={offset:m-h.start,gen:x,uncompressed:!0});for(var A=void 0,O=m+w.length;O<p.length;){var C=O+t(p,O,l)+4;A=C-m;var T=Math.max(C-25,O),F=(0,i.bytesToString)(p.subarray(T,C));if(n.test(F))break;var P=a.exec(F);if(P&&P[1]){(0,i.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),A-=P[1].length;break}O=C}var _=p.subarray(m,m+A),I=t(_,0,f);I<A&&_[I+5]<64&&(y.push(m-h.start),this.xrefstms[m-h.start]=1),m+=A}else w.startsWith("trailer")&&(7===w.length||/\\s/.test(w[7]))?(v.push(m),m+=t(p,m,u)):m+=w.length+1}else do{if(++m>=g)break;b=p[m]}while(10!==b&&13!==b);else++m}for(var E=0,j=y.length;E<j;++E)this.startXRefQueue.push(y[E]),this.readXRef(!0);for(var R=0,M=v.length;R<M;++R){h.pos=v[R];var N=new s.Parser({lexer:new s.Lexer(h),xref:this,allowStreams:!0,recoveryMode:!0}),B=N.getObj();if((0,o.isCmd)(B,"trailer")){var D=N.getObj();if((0,o.isDict)(D)){try{var L=D.get("Root");if(!(L instanceof o.Dict))continue;var U=L.get("Pages");if(!(U instanceof o.Dict))continue;var q=U.get("Count");if(!Number.isInteger(q))continue}catch(e){continue}if(D.has("ID"))return D;d=D}}}if(d)return d;throw new i.InvalidPDFException("Invalid PDF structure.")}},{key:"readXRef",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.stream,r=new Set;try{for(;this.startXRefQueue.length;){var n=this.startXRefQueue[0];if(r.has(n))(0,i.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();else{r.add(n),t.pos=n+t.start;var a=new s.Parser({lexer:new s.Lexer(t),xref:this,allowStreams:!0}),u=a.getObj(),l=void 0;if((0,o.isCmd)(u,"xref")){if(l=this.processXRefTable(a),this.topDict||(this.topDict=l),u=l.get("XRefStm"),Number.isInteger(u)){var f=u;f in this.xrefstms||(this.xrefstms[f]=1,this.startXRefQueue.push(f))}}else{if(!Number.isInteger(u))throw new i.FormatError("Invalid XRef stream header");if(!Number.isInteger(a.getObj())||!(0,o.isCmd)(a.getObj(),"obj")||!(0,o.isStream)(u=a.getObj()))throw new i.FormatError("Invalid XRef stream");if(l=this.processXRefStream(u),this.topDict||(this.topDict=l),!l)throw new i.FormatError("Failed to read XRef stream")}u=l.get("Prev"),Number.isInteger(u)?this.startXRefQueue.push(u):(0,o.isRef)(u)&&this.startXRefQueue.push(u.num),this.startXRefQueue.shift()}}return this.topDict}catch(e){if(e instanceof c.MissingDataException)throw e;(0,i.info)("(while reading XRef): "+e)}if(!e)throw new c.XRefParseException}},{key:"getEntry",value:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null}},{key:"fetchIfRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof o.Ref?this.fetch(e,t):e}},{key:"fetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof o.Ref))throw new Error("ref object is not a reference");var r=e.num,n=this._cacheMap.get(r);if(void 0!==n)return n instanceof o.Dict&&!n.objId&&(n.objId=e.toString()),n;var a=this.getEntry(r);return null===a?(this._cacheMap.set(r,a),a):(a=a.uncompressed?this.fetchUncompressed(e,a,t):this.fetchCompressed(e,a,t),(0,o.isDict)(a)?a.objId=e.toString():(0,o.isStream)(a)&&(a.dict.objId=e.toString()),a)}},{key:"fetchUncompressed",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.gen,a=e.num;if(t.gen!==n)throw new c.XRefEntryException("Inconsistent generation in XRef: ".concat(e));var i=this.stream.makeSubStream(t.offset+this.stream.start),u=new s.Parser({lexer:new s.Lexer(i),xref:this,allowStreams:!0}),l=u.getObj(),f=u.getObj(),h=u.getObj();if(l!==a||f!==n||!(h instanceof o.Cmd))throw new c.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==h.cmd){if(h.cmd.startsWith("obj")&&(a=parseInt(h.cmd.substring(3),10),!Number.isNaN(a)))return a;throw new c.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return t=this.encrypt&&!r?u.getObj(this.encrypt.createCipherTransform(a,n)):u.getObj(),(0,o.isStream)(t)||this._cacheMap.set(a,t),t}},{key:"fetchCompressed",value:function(e,t){var r=t.offset,n=this.fetch(o.Ref.get(r,0));if(!(0,o.isStream)(n))throw new i.FormatError("bad ObjStm stream");var a=n.dict.get("First"),u=n.dict.get("N");if(!Number.isInteger(a)||!Number.isInteger(u))throw new i.FormatError("invalid first and n parameters for ObjStm stream");for(var l=new s.Parser({lexer:new s.Lexer(n),xref:this,allowStreams:!0}),f=new Array(u),h=new Array(u),d=0;d<u;++d){var p=l.getObj();if(!Number.isInteger(p))throw new i.FormatError("invalid object number in the ObjStm stream: ".concat(p));var g=l.getObj();if(!Number.isInteger(g))throw new i.FormatError("invalid object offset in the ObjStm stream: ".concat(g));f[d]=p,h[d]=g}for(var m=(n.start||0)+a,v=new Array(u),y=0;y<u;++y){var b=y<u-1?h[y+1]-h[y]:void 0;if(b<0)throw new i.FormatError("Invalid offset in the ObjStm stream.");var w=(l=new s.Parser({lexer:new s.Lexer(n.makeSubStream(m+h[y],b,n.dict)),xref:this,allowStreams:!0})).getObj();if(v[y]=w,!(0,o.isStream)(w)){var k=f[y],S=this.entries[k];S&&S.offset===r&&S.gen===y&&this._cacheMap.set(k,w)}}if(void 0===(t=v[t.gen]))throw new c.XRefEntryException("Bad (compressed) XRef entry: ".concat(e));return t}},{key:"fetchIfRefAsync",value:(d=f(a.default.mark((function e(t,r){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof o.Ref)){e.next=2;break}return e.abrupt("return",this.fetchAsync(t,r));case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"fetchAsync",value:(l=f(a.default.mark((function e(t,r){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this.fetch(t,r));case 4:if(e.prev=4,e.t0=e.catch(0),e.t0 instanceof c.MissingDataException){e.next=8;break}throw e.t0;case 8:return e.next=10,this.pdfManager.requestRange(e.t0.begin,e.t0.end);case 10:return e.abrupt("return",this.fetchAsync(t,r));case 11:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(e,t){return l.apply(this,arguments)})},{key:"getCatalogObj",value:function(){return this.root}}],r&&h(t.prototype,r),n&&h(t,n),e}();t.XRef=d},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4);function o(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){return c="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},c(e)}var u=1,l=2,f=1,h=2,d=3,p=4,g=5,m=6,v=7,y=8;function b(e){if("object"!==c(e)||null===e)return e;switch(e.name){case"AbortException":return new i.AbortException(e.message);case"MissingPDFException":return new i.MissingPDFException(e.message);case"UnexpectedResponseException":return new i.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new i.UnknownErrorException(e.message,e.details);default:return new i.UnknownErrorException(e.message,e.toString())}}var w=function(){function e(t,r,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===a.sourceName)if(t.stream)a._processStreamMessage(t);else if(t.callback){var r=t.callbackId,i=a.callbackCapabilities[r];if(!i)throw new Error("Cannot resolve callback ".concat(r));if(delete a.callbackCapabilities[r],t.callback===u)i.resolve(t.data);else{if(t.callback!==l)throw new Error("Unexpected callback case");i.reject(b(t.reason))}}else{var o=a.actionHandler[t.action];if(!o)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=a.sourceName,c=t.sourceName;new Promise((function(e){e(o(t.data))})).then((function(e){n.postMessage({sourceName:s,targetName:c,callback:u,callbackId:t.callbackId,data:e})}),(function(e){n.postMessage({sourceName:s,targetName:c,callback:l,callbackId:t.callbackId,reason:b(e)})}))}else t.streamId?a._createStreamSink(t):o(t.data)}},n.addEventListener("message",this._onComObjOnMessage)}var t,r,n,c,w;return t=e,r=[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,a=(0,i.createPromiseCapability)();this.callbackCapabilities[n]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(e){a.reject(e)}return a.promise}},{key:"sendWithStream",value:function(e,t,r,n){var a=this,o=this.streamId++,s=this.sourceName,c=this.targetName,u=this.comObj;return new ReadableStream({start:function(r){var u=(0,i.createPromiseCapability)();return a.streamControllers[o]={controller:r,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},a._postMessage({sourceName:s,targetName:c,action:e,streamId:o,data:t,desiredSize:r.desiredSize},n),u.promise},pull:function(e){var t=(0,i.createPromiseCapability)();return a.streamControllers[o].pullCall=t,u.postMessage({sourceName:s,targetName:c,stream:m,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,i.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,i.createPromiseCapability)();return a.streamControllers[o].cancelCall=t,a.streamControllers[o].isClosed=!0,u.postMessage({sourceName:s,targetName:c,stream:f,streamId:o,reason:b(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=this,r=this.actionHandler[e.action],n=e.streamId,a=this.sourceName,o=e.sourceName,s=this.comObj,c={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var c=this.desiredSize;this.desiredSize-=r,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,i.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:a,targetName:o,stream:p,streamId:n,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:a,targetName:o,stream:d,streamId:n}),delete t.streamSinks[n])},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:g,streamId:n,reason:b(e)}))},sinkCapability:(0,i.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[n]=c,new Promise((function(t){t(r(e.data,c))})).then((function(){s.postMessage({sourceName:a,targetName:o,stream:y,streamId:n,success:!0})}),(function(e){s.postMessage({sourceName:a,targetName:o,stream:y,streamId:n,reason:b(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,a=this.comObj;switch(e.stream){case y:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(b(e.reason));break;case v:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(b(e.reason));break;case m:if(!this.streamSinks[t]){a.postMessage({sourceName:r,targetName:n,stream:v,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:r,targetName:n,stream:v,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:v,streamId:t,reason:b(e)})}));break;case p: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: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 g:(0,i.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(b(e.reason)),this._deleteStreamController(t);break;case h:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(b(e.reason)),this._deleteStreamController(t);break;case f:if(!this.streamSinks[t])break;var s=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(s&&s(b(e.reason)))})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:h,streamId:t,reason:b(e)})})),this.streamSinks[t].sinkCapability.reject(b(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(c=a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})),w=function(){var e=this,t=arguments;return new Promise((function(r,n){var a=c.apply(e,t);function i(e){o(a,r,n,i,s,"next",e)}function s(e){o(a,r,n,i,s,"throw",e)}i(void 0)}))},function(e){return w.apply(this,arguments)})},{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)}}],r&&s(t.prototype,r),n&&s(t,n),e}();t.MessageHandler=w},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(4);function o(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){o(i,n,a,s,c,"next",e)}function c(e){o(i,n,a,s,c,"throw",e)}s(void 0)}))}}function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}var d=function(){function e(t){l(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(e,[{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new g(e,t,this._msgHandler);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t,r=c(this._rangeRequestReaders.slice(0));try{for(r.s();!(t=r.n()).done;)t.value.cancel(e)}catch(e){r.e(e)}finally{r.f()}}}]),e}();t.PDFWorkerStream=d;var p=function(){function e(t){var r=this;l(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var n=this._msgHandler.sendWithStream("GetReader");this._reader=n.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){r._isStreamingSupported=e.isStreamingSupported,r._isRangeSupported=e.isRangeSupported,r._contentLength=e.contentLength}))}var t;return h(e,[{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"read",value:(t=s(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}(),g=function(){function e(t,r,n){l(this,e),this._msgHandler=n,this.onProgress=null;var a=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=a.getReader()}var t;return h(e,[{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(t=s(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]),e}()}],t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var a={};return(()=>{"use strict";var e=a;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}});var t=n(1)})(),a})()},e.exports=n()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();r(636)})();`,"Worker",void 0,void 0)};const v={name:"VuePdfEmbed",props:{disableAnnotationLayer:Boolean,disableTextLayer:Boolean,height:[Number,String],id:String,imageResourcesPath:String,page:Number,rotation:{type:[Number,String],default:0,validator:function(c){if(c%90!=0)throw new Error("Rotation must be 0 or a multiple of 90.");return!0}},scale:Number,source:{type:[Object,String,URL,Uint8Array],required:!0},width:[Number,String]},data:function(){return{document:null,pageCount:null,pageNums:[]}},computed:{linkService:function(){var c=this;if(!this.document||this.disableAnnotationLayer)return null;var l=new x.PDFLinkService;return l.setDocument(this.document),l.setViewer({scrollPageIntoView:function(a){var e=a.pageNumber;c.$emit("internal-link-clicked",e)}}),l}},created:function(){var c=this;this.$watch(function(){return[c.source,c.disableAnnotationLayer,c.disableTextLayer,c.height,c.page,c.rotation,c.width]},function(){var l=g(regeneratorRuntime.mark(function a(e,t){var s,r,p,k;return regeneratorRuntime.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(s=H(e,1),r=s[0],p=H(t,1),k=p[0],r===k){w.next=6;break}return U(c.$el),w.next=6,c.load();case 6:c.render();case 7:case"end":return w.stop()}},a)}));return function(a,e){return l.apply(this,arguments)}}())},mounted:function(){var c=this;return g(regeneratorRuntime.mark(function l(){return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,c.load();case 2:c.render();case 3:case"end":return a.stop()}},l)}))()},beforeDestroy:function(){var c;U(this.$el),(c=this.document)===null||c===void 0||c.destroy()},beforeUnmount:function(){var c;U(this.$el),(c=this.document)===null||c===void 0||c.destroy()},methods:{getPageDimensions:function(c){var l,a;return this.height&&!this.width?l=(a=this.height)/c:a=(l=this.width||this.$el.clientWidth)*c,[l,a]},load:function(){var c=this;return g(regeneratorRuntime.mark(function l(){var a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c.source){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,!c.source._pdfInfo){e.next=7;break}c.document=c.source,e.next=13;break;case 7:return(a=T.getDocument(c.source)).onProgress=function(t){c.$emit("progress",t)},a.onPassword=function(t,s){var r=s===T.PasswordResponses.INCORRECT_PASSWORD;c.$emit("password-requested",t,r)},e.next=12,a.promise;case 12:c.document=e.sent;case 13:c.pageCount=c.document.numPages,c.$emit("loaded",c.document),e.next=23;break;case 17:e.prev=17,e.t0=e.catch(2),c.document=null,c.pageCount=null,c.pageNums=[],c.$emit("loading-failed",e.t0);case 23:case"end":return e.stop()}},l,null,[[2,17]])}))()},print:function(){var c=arguments,l=this;return g(regeneratorRuntime.mark(function a(){var e,t,s,r,p,k,w,b,i,o;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(e=c.length>0&&c[0]!==void 0?c[0]:300,t=c.length>1&&c[1]!==void 0?c[1]:"",s=c.length>2&&c[2]!==void 0&&c[2],l.document){u.next=5;break}return u.abrupt("return");case 5:return r=e/72,p=96/72,u.prev=7,(k=document.createElement("div")).style.display="none",window.document.body.appendChild(k),u.next=13,D(k);case 13:return w=u.sent,i=l.page&&!s?[l.page]:J(Array(l.document.numPages+1).keys()).slice(1),u.next=17,Promise.all(i.map(function(){var A=g(regeneratorRuntime.mark(function I(O,R){var G,Y,W,z,ee,te;return regeneratorRuntime.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,l.document.getPage(O);case 2:return G=ae.sent,Y=G.getViewport({scale:1,rotation:0}),R===0&&(W=Y.width*r/p,z=Y.height*r/p,M(w,W,z)),(ee=document.createElement("canvas")).width=Y.width*r,ee.height=Y.height*r,k.appendChild(ee),te=ee.cloneNode(),w.contentWindow.document.body.appendChild(te),ae.next=13,G.render({canvasContext:ee.getContext("2d"),intent:"print",transform:[r,0,0,r,0,0],viewport:Y}).promise;case 13:te.getContext("2d").drawImage(ee,0,0);case 14:case"end":return ae.stop()}},I)}));return function(I,O){return A.apply(this,arguments)}}()));case 17:t&&(b=window.document.title,window.document.title=t),w.contentWindow.focus(),w.contentWindow.print(),u.next=25;break;case 22:u.prev=22,u.t0=u.catch(7),l.$emit("printing-failed",u.t0);case 25:return u.prev=25,b&&(window.document.title=b),U(k),(o=k.parentNode)===null||o===void 0||o.removeChild(k),u.finish(25);case 30:case"end":return u.stop()}},a,null,[[7,22,25,30]])}))()},render:function(){var c=this;return g(regeneratorRuntime.mark(function l(){return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(c.document){a.next=2;break}return a.abrupt("return");case 2:return a.prev=2,c.pageNums=c.page?[c.page]:J(Array(c.document.numPages+1).keys()).slice(1),a.next=6,Promise.all(c.pageNums.map(function(){var e=g(regeneratorRuntime.mark(function t(s,r){var p,k,w,b,i,o,u,A,I,O;return regeneratorRuntime.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,c.document.getPage(s);case 2:return p=R.sent,k=c.rotation+p.rotate,w=H(c.$el.children[r].children,3),b=w[0],i=w[1],o=w[2],u=c.getPageDimensions(k/90%2?p.view[2]/p.view[3]:p.view[3]/p.view[2]),A=H(u,2),I=A[0],O=A[1],b.style.width="".concat(Math.floor(I),"px"),b.style.height="".concat(Math.floor(O),"px"),R.next=10,c.renderPage(p,b,I,k);case 10:if(c.disableTextLayer){R.next=13;break}return R.next=13,c.renderPageTextLayer(p,i,I,k);case 13:if(c.disableAnnotationLayer){R.next=16;break}return R.next=16,c.renderPageAnnotationLayer(p,o||i,I,k);case 16:case"end":return R.stop()}},t)}));return function(t,s){return e.apply(this,arguments)}}()));case 6:c.$emit("rendered"),a.next=15;break;case 9:a.prev=9,a.t0=a.catch(2),c.document=null,c.pageCount=null,c.pageNums=[],c.$emit("rendering-failed",a.t0);case 15:case"end":return a.stop()}},l,null,[[2,9]])}))()},renderPage:function(c,l,a,e){var t=this;return g(regeneratorRuntime.mark(function s(){var r,p,k;return regeneratorRuntime.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return p=e/90%2?c.view[3]:c.view[2],k=c.getViewport({scale:(r=t.scale)!==null&&r!==void 0?r:Math.ceil(a/p)+1,rotation:e}),l.width=k.width,l.height=k.height,w.next=6,c.render({canvasContext:l.getContext("2d"),viewport:k}).promise;case 6:case"end":return w.stop()}},s)}))()},renderPageAnnotationLayer:function(c,l,a,e){var t=this;return g(regeneratorRuntime.mark(function s(){var r;return regeneratorRuntime.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return C(l),r=e/90%2?c.view[3]:c.view[2],p.t0=T.AnnotationLayer,p.next=5,c.getAnnotations();case 5:p.t1=p.sent,p.t2=l,p.t3=t.linkService,p.t4=c,p.t5=c.getViewport({scale:a/r,rotation:e}).clone({dontFlip:!0}),p.t6=t.imageResourcesPath,p.t7={annotations:p.t1,div:p.t2,linkService:p.t3,page:p.t4,renderInteractiveForms:!1,viewport:p.t5,imageResourcesPath:p.t6},p.t0.render.call(p.t0,p.t7);case 13:case"end":return p.stop()}},s)}))()},renderPageTextLayer:function(c,l,a,e){return g(regeneratorRuntime.mark(function t(){var s;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return C(l),s=e/90%2?c.view[3]:c.view[2],r.t0=T,r.t1=l,r.next=6,c.getTextContent();case 6:return r.t2=r.sent,r.t3=c.getViewport({scale:a/s,rotation:e}),r.t4={container:r.t1,textContent:r.t2,viewport:r.t3},r.next=11,r.t0.renderTextLayer.call(r.t0,r.t4).promise;case 11:case"end":return r.stop()}},t)}))()}}};__webpack_require__(18);var d=function(c,l,a,e,t,s,r,p){var k,w=typeof c=="function"?c.options:c;if(l&&(w.render=l,w.staticRenderFns=a,w._compiled=!0),e&&(w.functional=!0),s&&(w._scopeId="data-v-"+s),r?(k=function(o){(o=o||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(o=__VUE_SSR_CONTEXT__),t&&t.call(this,o),o&&o._registeredComponents&&o._registeredComponents.add(r)},w._ssrRegister=k):t&&(k=p?function(){t.call(this,(w.functional?this.parent:this).$root.$options.shadowRoot)}:t),k)if(w.functional){w._injectStyles=k;var b=w.render;w.render=function(o,u){return k.call(u),b(o,u)}}else{var i=w.beforeCreate;w.beforeCreate=i?[].concat(i,k):[k]}return{exports:c,options:w}}(v,P,L.staticRenderFns,!1,null,null,null);d.options.__file="src/vue-pdf-embed.vue";const y=d.exports;y.getDocument=T.getDocument,typeof window<"u"&&window.Vue&&(window.VuePdfEmbed=y);const m=y})(),__webpack_exports__})()})})(vue3PdfEmbed);var vue3PdfEmbedExports=vue3PdfEmbed.exports;const VuePdfEmbed=getDefaultExportFromCjs(vue3PdfEmbedExports);export{PrinterIcon as P,VuePdfEmbed as V};
|