1313 lines
1.8 MiB
Plaintext
1313 lines
1.8 MiB
Plaintext
(self["webpackChunkfront"]=self["webpackChunkfront"]||[]).push([[752],{62506:function(module,__unused_webpack_exports,__webpack_require__){(function(e,t){module.exports=t(__webpack_require__(20144))})("undefined"!==typeof self&&self,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({0:function(e,t){},"00ee":function(e,t,r){var n=r("b622"),a=n("toStringTag"),i={};i[a]="z",e.exports="[object z]"===String(i)},"02c5":function(e,t,r){"use strict";(function(e,n){
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/
|
||
r("99af"),r("cb29"),r("4160"),r("e260"),r("a15b"),r("d81d"),r("fb6a"),r("a9e3"),r("8ba4"),r("b680"),r("d3b7"),r("e6cf"),r("25f0"),r("3ca3"),r("2ca0"),r("cc71"),r("143c"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b"),r("ddb0");var a=r("448a"),i=r("278c"),o=r("6374"),s=r("970b"),l=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var c=r("dacc"),u=r("61a8"),d=r("eca3"),h=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=h;{var f={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},p="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/1999/xlink",v=["butt","round","square"],m=["miter","round","bevel"],b=function(){for(var t=new Uint8Array([137,80,78,71,13,10,26,10]),a=12,i=new Int32Array(256),o=0;o<256;o++){for(var s=o,l=0;l<8;l++)s=1&s?3988292384^s>>1&2147483647:s>>1&2147483647;i[o]=s}function u(e,t,r){for(var n=-1,a=t;a<r;a++){var o=255&(n^e[a]),s=i[o];n=n>>>8^s}return-1^n}function h(e,t,r,n){var a=n,i=t.length;r[a]=i>>24&255,r[a+1]=i>>16&255,r[a+2]=i>>8&255,r[a+3]=255&i,a+=4,r[a]=255&e.charCodeAt(0),r[a+1]=255&e.charCodeAt(1),r[a+2]=255&e.charCodeAt(2),r[a+3]=255&e.charCodeAt(3),a+=4,r.set(t,a),a+=t.length;var o=u(r,n+4,a);r[a]=o>>24&255,r[a+1]=o>>16&255,r[a+2]=o>>8&255,r[a+3]=255&o}function f(e,t,r){for(var n=1,a=0,i=t;i<r;++i)n=(n+(255&e[i]))%65521,a=(a+n)%65521;return a<<16|n}function p(t){if(!d.isNodeJS)return g(t);try{var a;a=parseInt(e.versions.node)>=8?t:n.from(t);var i=r(5).deflateSync(a,{level:9});return i instanceof Uint8Array?i:new Uint8Array(i)}catch(o){(0,c.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+o)}return g(t)}function g(e){var t=e.length,r=65535,n=Math.ceil(t/r),a=new Uint8Array(2+t+5*n+4),i=0;a[i++]=120,a[i++]=156;var o=0;while(t>r)a[i++]=0,a[i++]=255,a[i++]=255,a[i++]=0,a[i++]=0,a.set(e.subarray(o,o+r),i),i+=r,o+=r,t-=r;a[i++]=1,a[i++]=255&t,a[i++]=t>>8&255,a[i++]=255&~t,a[i++]=(65535&~t)>>8&255,a.set(e.subarray(o),i),i+=e.length-o;var s=f(e,0,e.length);return a[i++]=s>>24&255,a[i++]=s>>16&255,a[i++]=s>>8&255,a[i++]=255&s,a}function v(e,r,n,i){var o,s,l,u=e.width,d=e.height,f=e.data;switch(r){case c.ImageKind.GRAYSCALE_1BPP:s=0,o=1,l=u+7>>3;break;case c.ImageKind.RGB_24BPP:s=2,o=8,l=3*u;break;case c.ImageKind.RGBA_32BPP:s=6,o=8,l=4*u;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+l)*d),v=0,m=0,b=0;b<d;++b)g[v++]=0,g.set(f.subarray(m,m+l),v),m+=l,v+=l;if(r===c.ImageKind.GRAYSCALE_1BPP&&i){v=0;for(var y=0;y<d;y++){v++;for(var w=0;w<l;w++)g[v++]^=255}}var _=new Uint8Array([u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,o,s,0,0,0]),k=p(g),x=t.length+3*a+_.length+k.length,S=new Uint8Array(x),A=0;return S.set(t,A),A+=t.length,h("IHDR",_,S,A),A+=a+_.length,h("IDATA",k,S,A),A+=a+k.length,h("IEND",new Uint8Array(0),S,A),(0,c.createObjectURL)(S,"image/png",n)}return function(e,t,r){var n=void 0===e.kind?c.ImageKind.GRAYSCALE_1BPP:e.kind;return v(e,n,t,r)}}(),y=function(){function e(){s(this,e),this.fontSizeScale=1,this.fontWeight=f.fontWeight,this.fontSize=0,this.textMatrix=c.IDENTITY_MATRIX,this.fontMatrix=c.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=c.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=f.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 l(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}();function x(e){var t,r=[],n=[],a=o(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;"save"!==i.fn?"restore"===i.fn?r=n.pop():r.push(i):(r.push({fnId:92,fn:"group",items:[]}),n.push(r),r=r[r.length-1].items)}}catch(s){a.e(s)}finally{a.f()}return r}function S(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)}function A(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(S(e[0])," ").concat(S(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(S(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(S(e[4])," ").concat(S(e[5]),")");return"matrix(".concat(S(e[0])," ").concat(S(e[1])," ").concat(S(e[2])," ").concat(S(e[3])," ").concat(S(e[4])," ")+"".concat(S(e[5]),")")}var w=0,_=0,k=0;t.SVGGraphics=h=function(){function e(t,r,n){for(var a in s(this,e),this.svgFactory=new u.DOMSVGFactory,this.current=new y,this.transformMatrix=c.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[],c.OPS)this._operatorIdMapping[c.OPS[a]]=a}return l(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,r=e.fnArray,n=e.argsArray,a=0,i=r.length;a<i;a++)if(r[a]===c.OPS.dependency){var s,l=o(n[a]);try{var u=function(){var e=s.value,r=e.startsWith("g_")?t.commonObjs:t.objs,n=new Promise((function(t){r.get(e,t)}));t.current.dependencies.push(n)};for(l.s();!(s=l.n()).done;)u()}catch(d){l.e(d)}finally{l.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,r,n,a,i){var o=[e,t,r,n,a,i];this.transformMatrix=c.Util.transform(this.transformMatrix,o),this.tgrp=null}},{key:"getSVG",value:function(e,t){var r=this;this.viewport=t;var n=this._initialize(t);return this.loadDependencies(e).then((function(){return r.transformMatrix=c.IDENTITY_MATRIX,r.executeOpTree(r.convertOpList(e)),n}))}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,a=[],i=0,o=n.length;i<o;i++){var s=n[i];a.push({fnId:s,fn:t[s],args:r[i]})}return x(a)}},{key:"executeOpTree",value:function(e){var t,r=o(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,a=n.fn,i=n.fnId,s=n.args;switch(0|i){case c.OPS.beginText:this.beginText();break;case c.OPS.dependency:break;case c.OPS.setLeading:this.setLeading(s);break;case c.OPS.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case c.OPS.setFont:this.setFont(s);break;case c.OPS.showText:this.showText(s[0]);break;case c.OPS.showSpacedText:this.showText(s[0]);break;case c.OPS.endText:this.endText();break;case c.OPS.moveText:this.moveText(s[0],s[1]);break;case c.OPS.setCharSpacing:this.setCharSpacing(s[0]);break;case c.OPS.setWordSpacing:this.setWordSpacing(s[0]);break;case c.OPS.setHScale:this.setHScale(s[0]);break;case c.OPS.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case c.OPS.setTextRise:this.setTextRise(s[0]);break;case c.OPS.setTextRenderingMode:this.setTextRenderingMode(s[0]);break;case c.OPS.setLineWidth:this.setLineWidth(s[0]);break;case c.OPS.setLineJoin:this.setLineJoin(s[0]);break;case c.OPS.setLineCap:this.setLineCap(s[0]);break;case c.OPS.setMiterLimit:this.setMiterLimit(s[0]);break;case c.OPS.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case c.OPS.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case c.OPS.setStrokeColorN:this.setStrokeColorN(s);break;case c.OPS.setFillColorN:this.setFillColorN(s);break;case c.OPS.shadingFill:this.shadingFill(s[0]);break;case c.OPS.setDash:this.setDash(s[0],s[1]);break;case c.OPS.setRenderingIntent:this.setRenderingIntent(s[0]);break;case c.OPS.setFlatness:this.setFlatness(s[0]);break;case c.OPS.setGState:this.setGState(s[0]);break;case c.OPS.fill:this.fill();break;case c.OPS.eoFill:this.eoFill();break;case c.OPS.stroke:this.stroke();break;case c.OPS.fillStroke:this.fillStroke();break;case c.OPS.eoFillStroke:this.eoFillStroke();break;case c.OPS.clip:this.clip("nonzero");break;case c.OPS.eoClip:this.clip("evenodd");break;case c.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case c.OPS.paintJpegXObject:this.paintJpegXObject(s[0],s[1],s[2]);break;case c.OPS.paintImageXObject:this.paintImageXObject(s[0]);break;case c.OPS.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case c.OPS.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case c.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[1]);break;case c.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case c.OPS.closePath:this.closePath();break;case c.OPS.closeStroke:this.closeStroke();break;case c.OPS.closeFillStroke:this.closeFillStroke();break;case c.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case c.OPS.nextLine:this.nextLine();break;case c.OPS.transform:this.transform(s[0],s[1],s[2],s[3],s[4],s[5]);break;case c.OPS.constructPath:this.constructPath(s[0],s[1]);break;case c.OPS.endPath:this.endPath();break;case 92:this.group(n.items);break;default:(0,c.warn)("Unimplemented operator ".concat(a));break}}}catch(l){r.e(l)}finally{r.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,r,n,a,i){var o=this.current;o.textMatrix=o.lineMatrix=[e,t,r,n,a,i],o.textMatrixScale=Math.sqrt(e*e+t*t),o.x=o.lineX=0,o.y=o.lineY=0,o.xcoords=[],o.tspan=this.svgFactory.createElement("svg:tspan"),o.tspan.setAttributeNS(null,"font-family",o.fontFamily),o.tspan.setAttributeNS(null,"font-size","".concat(S(o.fontSize),"px")),o.tspan.setAttributeNS(null,"y",S(-o.y)),o.txtElement=this.svgFactory.createElement("svg:text"),o.txtElement.appendChild(o.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=c.IDENTITY_MATRIX,e.lineMatrix=c.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[]}},{key:"moveText",value:function(e,t){var r=this.current;r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size","".concat(S(r.fontSize),"px")),r.tspan.setAttributeNS(null,"y",S(-r.y))}},{key:"showText",value:function(e){var t=this.current,r=t.font,n=t.fontSize;if(0!==n){var a,i=t.charSpacing,s=t.wordSpacing,l=t.fontDirection,u=t.textHScale*l,d=r.vertical,h=n*t.fontMatrix[0],g=0,v=o(e);try{for(v.s();!(a=v.n()).done;){var m=a.value;if(null!==m)if((0,c.isNum)(m))g+=-m*n*.001;else{var b=m.width,y=m.fontChar,w=(m.isSpace?s:0)+i,_=b*h+w*l;m.isInFont||r.missingFile?(t.xcoords.push(t.x+g),t.tspan.textContent+=y,g+=_):g+=_}else g+=l*s}}catch(P){v.e(P)}finally{v.f()}d?t.y-=g*u:t.x+=g*u,t.tspan.setAttributeNS(null,"x",t.xcoords.map(S).join(" ")),t.tspan.setAttributeNS(null,"y",S(-t.y)),t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(S(t.fontSize),"px")),t.fontStyle!==f.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==f.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var k=t.textRenderingMode&c.TextRenderingMode.FILL_STROKE_MASK;if(k===c.TextRenderingMode.FILL||k===c.TextRenderingMode.FILL_STROKE?(t.fillColor!==f.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===c.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),k===c.TextRenderingMode.STROKE||k===c.TextRenderingMode.FILL_STROKE){var x=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,x)}var C=t.textMatrix;0!==t.textRise&&(C=C.slice(),C[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(A(C)," scale(").concat(S(u),", -1)")),t.txtElement.setAttributeNS(p,"xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,c.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,r=this.commonObjs.get(e[0]),n=e[1];t.font=r,this.embedFonts&&r.data&&!this.embeddedFonts[r.loadedName]&&(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),t.fontMatrix=r.fontMatrix?r.fontMatrix:c.FONT_IDENTITY_MATRIX;var a="normal";r.black?a="900":r.bold&&(a="bold");var i=r.italic?"italic":"normal";n<0?(n=-n,t.fontDirection=-1):t.fontDirection=1,t.fontSize=n,t.fontFamily=r.loadedName,t.fontWeight=a,t.fontStyle=i,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",S(-t.y)),t.xcoords=[]}},{key:"endText",value:function(){var e=this.current;e.textRenderingMode&c.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=v[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=m[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,r){this.current.strokeColor=c.Util.makeCssRgb(e,t,r)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,r){this.current.fillColor=c.Util.makeCssRgb(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,r=this.viewport.height,n=c.Util.inverseTransform(this.transformMatrix),a=c.Util.applyTransform([0,0],n),i=c.Util.applyTransform([0,r],n),o=c.Util.applyTransform([t,0],n),s=c.Util.applyTransform([t,r],n),l=Math.min(a[0],i[0],o[0],s[0]),u=Math.min(a[1],i[1],o[1],s[1]),d=Math.max(a[0],i[0],o[0],s[0]),h=Math.max(a[1],i[1],o[1],s[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",l),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",d-l),f.setAttributeNS(null,"height",h-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this._ensureTransformGroup().appendChild(f)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],r=e[2],n=e[3]||c.IDENTITY_MATRIX,o=i(e[4],4),s=o[0],l=o[1],u=o[2],d=o[3],h=e[5],f=e[6],p=e[7],g="shading".concat(k++),v=c.Util.applyTransform([s,l],n),m=i(v,2),b=m[0],y=m[1],w=c.Util.applyTransform([u,d],n),_=i(w,2),x=_[0],S=_[1],A=c.Util.singularValueDecompose2dScale(n),C=i(A,2),P=C[0],T=C[1],E=h*P,R=f*T,I=this.svgFactory.createElement("svg:pattern");I.setAttributeNS(null,"id",g),I.setAttributeNS(null,"patternUnits","userSpaceOnUse"),I.setAttributeNS(null,"width",E),I.setAttributeNS(null,"height",R),I.setAttributeNS(null,"x","".concat(b)),I.setAttributeNS(null,"y","".concat(y));var O=this.svg,L=this.transformMatrix,F=this.current.fillColor,M=this.current.strokeColor,D=this.svgFactory.create(x-b,S-y);if(this.svg=D,this.transformMatrix=n,2===p){var N,B=(N=c.Util).makeCssRgb.apply(N,a(t));this.current.fillColor=B,this.current.strokeColor=B}return this.executeOpTree(this.convertOpList(r)),this.svg=O,this.transformMatrix=L,this.current.fillColor=F,this.current.strokeColor=M,I.appendChild(D.childNodes[0]),this.defs.appendChild(I),"url(#".concat(g,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,r="shading".concat(k++),n=e[3];switch(e[1]){case"axial":var a=e[4],i=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",a[0]),t.setAttributeNS(null,"y1",a[1]),t.setAttributeNS(null,"x2",i[0]),t.setAttributeNS(null,"y2",i[1]);break;case"radial":var s=e[4],l=e[5],u=e[6],d=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",d),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",u);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var h,f=o(n);try{for(f.s();!(h=f.n()).done;){var p=h.value,g=this.svgFactory.createElement("svg:stop");g.setAttributeNS(null,"offset",p[0]),g.setAttributeNS(null,"stop-color",p[1]),t.appendChild(g)}}catch(v){f.e(v)}finally{f.f()}return this.defs.appendChild(t),"url(#".concat(r,")");case"Mesh":return(0,c.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var r,n=this.current,a=n.x,i=n.y,s=[],l=0,u=o(e);try{for(u.s();!(r=u.n()).done;){var d=r.value;switch(0|d){case c.OPS.rectangle:a=t[l++],i=t[l++];var h=t[l++],f=t[l++],p=a+h,g=i+f;s.push("M",S(a),S(i),"L",S(p),S(i),"L",S(p),S(g),"L",S(a),S(g),"Z");break;case c.OPS.moveTo:a=t[l++],i=t[l++],s.push("M",S(a),S(i));break;case c.OPS.lineTo:a=t[l++],i=t[l++],s.push("L",S(a),S(i));break;case c.OPS.curveTo:a=t[l+4],i=t[l+5],s.push("C",S(t[l]),S(t[l+1]),S(t[l+2]),S(t[l+3]),S(a),S(i)),l+=6;break;case c.OPS.curveTo2:s.push("C",S(a),S(i),S(t[l]),S(t[l+1]),S(t[l+2]),S(t[l+3])),a=t[l+2],i=t[l+3],l+=4;break;case c.OPS.curveTo3:a=t[l+2],i=t[l+3],s.push("C",S(t[l]),S(t[l+1]),S(a),S(i),S(a),S(i)),l+=4;break;case c.OPS.closePath:s.push("Z");break}}}catch(v){u.e(v)}finally{u.f()}s=s.join(" "),n.path&&e.length>0&&e[0]!==c.OPS.rectangle&&e[0]!==c.OPS.moveTo?s=n.path.getAttributeNS(null,"d")+s:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",s),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(a,i)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(w++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",A(this.transformMatrix));var n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,r=o(e);try{for(r.s();!(t=r.n()).done;){var n=i(t.value,2),a=n[0],s=n[1];switch(a){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s);break;case"CA":this.setStrokeAlpha(s);break;case"ca":this.setFillAlpha(s);break;default:(0,c.warn)("Unimplemented graphic state operator ".concat(a));break}}}catch(l){r.e(l)}finally{r.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",S(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",S(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(S).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",S(t*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintJpegXObject",value:function(e,t,r){var n=this.objs.get(e),a=this.svgFactory.createElement("svg:image");a.setAttributeNS(g,"xlink:href",n.src),a.setAttributeNS(null,"width",S(t)),a.setAttributeNS(null,"height",S(r)),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",S(-r)),a.setAttributeNS(null,"transform","scale(".concat(S(1/t)," ").concat(S(-1/r),")")),this._ensureTransformGroup().appendChild(a)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,c.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var r=e.width,n=e.height,a=b(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",S(r)),i.setAttributeNS(null,"height",S(n)),this.current.element=i,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS(g,"xlink:href",a),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",S(-n)),o.setAttributeNS(null,"width",S(r)+"px"),o.setAttributeNS(null,"height",S(n)+"px"),o.setAttributeNS(null,"transform","scale(".concat(S(1/r)," ").concat(S(-1/n),")")),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,r=e.width,n=e.height,a=t.fillColor;t.maskId="mask".concat(_++);var i=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",t.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",S(r)),o.setAttributeNS(null,"height",S(n)),o.setAttributeNS(null,"fill",a),o.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(i),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,i)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",S(r)),a.setAttributeNS(null,"height",S(n)),this.current.element=a,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",A(e.transform)),t.appendChild(n),this.svg=n,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",A(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()}}).call(this,r("4362"),r("b639").Buffer)},"0366":function(e,t,r){var n=r("1c0b");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)}}},"0496":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("4160"),r("caad"),r("fb6a"),r("a434"),r("b0c0"),r("a9e3"),r("8ba4"),r("d3b7"),r("07ac"),r("e6cf"),r("ac1f"),r("2532"),r("5319"),r("1276"),r("498a"),r("159b");var n=r("970b"),a=r("5bc3"),i=r("7037"),o=r("278c");r("96cf");var s=r("c973");Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=U,t.isValidScrollMode=j,t.isValidSpreadMode=q,t.isPortraitOrientation=z,t.getGlobalEventBus=K,t.clamp=Z,t.getPDFFileNameFromURL=N,t.noContextMenuHandler=M,t.parseQueryString=T,t.backtrackBeforeAllVisibleElements=L,t.getVisibleElements=F,t.roundToDivide=I,t.getPageSizeInches=O,t.approximateFraction=R,t.getOutputScale=A,t.scrollIntoView=C,t.watchScroll=P,t.binarySearchFirstItem=E,t.normalizeWheelEventDelta=B,t.waitOnEventOrTimeout=W,t.moveToEndOfArray=Q,t.WaitOnType=t.animationStarted=t.ProgressBar=t.EventBus=t.NullL10n=t.SpreadMode=t.ScrollMode=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=t.AutoPrintRegExp=void 0;var l=96/72;t.CSS_UNITS=l;var c="auto";t.DEFAULT_SCALE_VALUE=c;var u=1;t.DEFAULT_SCALE=u;var d=.1;t.MIN_SCALE=d;var h=10;t.MAX_SCALE=h;var f=0;t.UNKNOWN_SCALE=f;var p=1.25;t.MAX_AUTO_SCALE=p;var g=40;t.SCROLLBAR_PADDING=g;var v=5;t.VERTICAL_PADDING=v;var m={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};t.PresentationModeState=m;var b={CANVAS:"canvas",SVG:"svg"};t.RendererType=b;var y={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};t.TextLayerMode=y;var w={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};t.ScrollMode=w;var _={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=_;var k=/\bprint\s*\(/;function x(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,(function(e,r){return r in t?t[r]:"{{"+r+"}}"})):e}t.AutoPrintRegExp=k;var S={getLanguage:function(){return s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","en-us");case 1:case"end":return e.stop()}}),e)})))()},getDirection:function(){return s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","ltr");case 1:case"end":return e.stop()}}),e)})))()},get:function(e,t,r){return s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",x(r,t));case 1:case"end":return e.stop()}}),e)})))()},translate:function(e){return s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}};function A(e){var t=window.devicePixelRatio||1,r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,n=t/r;return{sx:n,sy:n,scaled:1!==n}}function C(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.offsetParent;if(n){var a=e.offsetTop+e.clientTop,i=e.offsetLeft+e.clientLeft;while(n.clientHeight===n.scrollHeight&&n.clientWidth===n.scrollWidth||r&&"hidden"===getComputedStyle(n).overflow)if(n.dataset._scaleY&&(a/=n.dataset._scaleY,i/=n.dataset._scaleX),a+=n.offsetTop,i+=n.offsetLeft,n=n.offsetParent,!n)return;t&&(void 0!==t.top&&(a+=t.top),void 0!==t.left&&(i+=t.left,n.scrollLeft=i)),n.scrollTop=a}else console.error("offsetParent is not set -- cannot scroll")}function P(e,t){var r=function(r){a||(a=window.requestAnimationFrame((function(){a=null;var r=e.scrollLeft,i=n.lastX;r!==i&&(n.right=r>i),n.lastX=r;var o=e.scrollTop,s=n.lastY;o!==s&&(n.down=o>s),n.lastY=o,t(n)})))},n={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r},a=null;return e.addEventListener("scroll",r,!0),n}function T(e){for(var t=e.split("&"),r=Object.create(null),n=0,a=t.length;n<a;++n){var i=t[n].split("="),o=i[0].toLowerCase(),s=i.length>1?i[1]:null;r[decodeURIComponent(o)]=decodeURIComponent(s)}return r}function E(e,t){var r=0,n=e.length-1;if(0===e.length||!t(e[n]))return e.length;if(t(e[r]))return r;while(r<n){var a=r+n>>1,i=e[a];t(i)?n=a:r=a+1}return r}function R(e){if(Math.floor(e)===e)return[e,1];var t=1/e,r=8;if(t>r)return[1,r];if(Math.floor(t)===t)return[1,t];var n,a=e>1?t:e,i=0,o=1,s=1,l=1;while(1){var c=i+s,u=o+l;if(u>r)break;a<=c/u?(s=c,l=u):(i=c,o=u)}return n=a-i/o<s/l-a?a===e?[i,o]:[o,i]:a===e?[s,l]:[l,s],n}function I(e,t){var r=e%t;return 0===r?e:Math.round(e-r+t)}function O(e){var t=e.view,r=e.userUnit,n=e.rotate,a=o(t,4),i=a[0],s=a[1],l=a[2],c=a[3],u=n%180!==0,d=(l-i)/72*r,h=(c-s)/72*r;return{width:u?h:d,height:u?d:h}}function L(e,t,r){if(e<2)return e;var n=t[e].div,a=n.offsetTop+n.clientTop;a>=r&&(n=t[e-1].div,a=n.offsetTop+n.clientTop);for(var i=e-2;i>=0;--i){if(n=t[i].div,n.offsetTop+n.clientTop+n.clientHeight<=a)break;e=i}return e}function F(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.scrollTop,i=a+e.clientHeight,o=e.scrollLeft,s=o+e.clientWidth;function l(e){var t=e.div,r=t.offsetTop+t.clientTop+t.clientHeight;return r>a}function c(e){var t=e.div,r=t.offsetLeft+t.clientLeft+t.clientWidth;return r>o}var u=[],d=t.length,h=0===d?0:E(t,n?c:l);h>0&&h<d&&!n&&(h=L(h,t,a));for(var f=n?s:-1,p=h;p<d;p++){var g=t[p],v=g.div,m=v.offsetLeft+v.clientLeft,b=v.offsetTop+v.clientTop,y=v.clientWidth,w=v.clientHeight,_=m+y,k=b+w;if(-1===f)k>=i&&(f=k);else if((n?m:b)>f)break;if(!(k<=a||b>=i||_<=o||m>=s)){var x=Math.max(0,a-b)+Math.max(0,k-i),S=Math.max(0,o-m)+Math.max(0,_-s),A=(w-x)*(y-S)*100/w/y|0;u.push({id:g.id,x:m,y:b,view:g,percent:A})}}var C=u[0],P=u[u.length-1];return r&&u.sort((function(e,t){var r=e.percent-t.percent;return Math.abs(r)>.001?-r:e.id-t.id})),{first:C,last:P,views:u}}function M(e){e.preventDefault()}function D(e){var t=0,r=e.length;while(t<r&&""===e[t].trim())t++;return"data:"===e.substring(t,t+5).toLowerCase()}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(D(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;var r=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,n=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,a=r.exec(e),i=n.exec(a[1])||n.exec(a[2])||n.exec(a[3]);if(i&&(i=i[0],i.includes("%")))try{i=n.exec(decodeURIComponent(i))[0]}catch(o){}return i||t}function B(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),r=Math.atan2(e.deltaY,e.deltaX);-.25*Math.PI<r&&r<.75*Math.PI&&(t=-t);var n=0,a=1,i=30,o=30;return e.deltaMode===n?t/=i*o:e.deltaMode===a&&(t/=o),t}function U(e){return Number.isInteger(e)&&e%90===0}function j(e){return Number.isInteger(e)&&Object.values(w).includes(e)&&e!==w.UNKNOWN}function q(e){return Number.isInteger(e)&&Object.values(_).includes(e)&&e!==_.UNKNOWN}function z(e){return e.width<=e.height}t.NullL10n=S;var V={EVENT:"event",TIMEOUT:"timeout"};function W(e){var t=e.target,r=e.name,n=e.delay,a=void 0===n?0:n;return new Promise((function(e,n){if("object"!==i(t)||!r||"string"!==typeof r||!(Number.isInteger(a)&&a>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function o(n){t instanceof Y?t._off(r,s):t.removeEventListener(r,s),c&&clearTimeout(c),e(n)}var s=o.bind(null,V.EVENT);t instanceof Y?t._on(r,s):t.addEventListener(r,s);var l=o.bind(null,V.TIMEOUT),c=setTimeout(l,a)}))}t.WaitOnType=V;var H=new Promise((function(e){window.requestAnimationFrame(e)}));function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Object.create(null);if(t&&t.length>0){var n=t[0];for(var a in n){var i=n[a];if("source"!==a)r[a]=i;else if(i===window||i===document)return}}var o=document.createEvent("CustomEvent");o.initCustomEvent(e,!0,!0,r),document.dispatchEvent(o)}t.animationStarted=H;var Y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.dispatchToDOM,a=void 0!==r&&r;n(this,e),this._listeners=Object.create(null),this._dispatchToDOM=!0===a,a&&console.error("The `eventBusDispatchToDOM` option/preference is deprecated, add event listeners to the EventBus instance rather than the DOM.")}return a(e,[{key:"on",value:function(e,t){this._on(e,t,{external:!0})}},{key:"off",value:function(e,t){this._off(e,t,{external:!0})}},{key:"dispatch",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var r,n=Array.prototype.slice.call(arguments,1);t.slice(0).forEach((function(e){var t=e.listener,a=e.external;if(a)return r||(r=[]),void r.push(t);t.apply(null,n)})),r&&(r.forEach((function(e){e.apply(null,n)})),r=null),this._dispatchToDOM&&G(e,n)}else if(this._dispatchToDOM){var a=Array.prototype.slice.call(arguments,1);G(e,a)}}},{key:"_on",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this._listeners[e];n||(this._listeners[e]=n=[]),n.push({listener:t,external:!0===(r&&r.external)})}},{key:"_off",value:function(e,t){var r=this._listeners[e];if(r)for(var n=0,a=r.length;n<a;n++)if(r[n].listener===t)return void r.splice(n,1)}}]),e}();t.EventBus=Y;var X=null;function K(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return console.error("getGlobalEventBus is deprecated, use a manually created EventBus instance instead."),X||(X=new Y({dispatchToDOM:e})),X}function Z(e,t,r){return Math.min(Math.max(e,t),r)}var J=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.height,i=r.width,o=r.units;n(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=a||100,this.width=i||100,this.units=o||"%",this.div.style.height=this.height+this.units,this.percent=0}return a(e,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var e=this.width*this._percent/100;this.div.style.width=e+this.units}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode,r=t.offsetWidth-e.offsetWidth;r>0&&(this.bar.style.width="calc(100% - ".concat(r,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=Z(e,0,100),this._updateBar()}}]),e}();function Q(e,t){for(var r=[],n=e.length,a=0,i=0;i<n;++i)t(e[i])?r.push(e[i]):(e[a]=e[i],++a);for(var o=0;a<n;++o,++a)e[a]=r[o]}t.ProgressBar=J},"04d0":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("a9e3"),r("8ba4");var n=r("7037"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.OptionKind=t.AppOptions=void 0;var o=r("a3cd"),s=r("6aed"),l={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};t.OptionKind=l;var c={cursorToolOnLoad:{value:0,kind:l.VIEWER+l.PREFERENCE},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:l.VIEWER},defaultZoomValue:{value:"",kind:l.VIEWER+l.PREFERENCE},disableHistory:{value:!1,kind:l.VIEWER},disablePageLabels:{value:!1,kind:l.VIEWER+l.PREFERENCE},enablePrintAutoRotate:{value:!1,kind:l.VIEWER+l.PREFERENCE},enableWebGL:{value:!1,kind:l.VIEWER+l.PREFERENCE},eventBusDispatchToDOM:{value:!1,kind:l.VIEWER+l.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:l.VIEWER},externalLinkTarget:{value:0,kind:l.VIEWER+l.PREFERENCE},historyUpdateUrl:{value:!1,kind:l.VIEWER+l.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:l.VIEWER+l.PREFERENCE},imageResourcesPath:{value:"./images/",kind:l.VIEWER},maxCanvasPixels:{value:16777216,compatibility:s.viewerCompatibilityParams.maxCanvasPixels,kind:l.VIEWER},pdfBugEnabled:{value:!1,kind:l.VIEWER+l.PREFERENCE},renderer:{value:"canvas",kind:l.VIEWER+l.PREFERENCE},renderInteractiveForms:{value:!1,kind:l.VIEWER+l.PREFERENCE},sidebarViewOnLoad:{value:-1,kind:l.VIEWER+l.PREFERENCE},scrollModeOnLoad:{value:-1,kind:l.VIEWER+l.PREFERENCE},spreadModeOnLoad:{value:-1,kind:l.VIEWER+l.PREFERENCE},textLayerMode:{value:1,kind:l.VIEWER+l.PREFERENCE},useOnlyCssZoom:{value:!1,kind:l.VIEWER+l.PREFERENCE},viewOnLoad:{value:0,kind:l.VIEWER+l.PREFERENCE},cMapPacked:{value:!0,kind:l.API},cMapUrl:{value:"../web/cmaps/",kind:l.API},disableAutoFetch:{value:!1,kind:l.API+l.PREFERENCE},disableCreateObjectURL:{value:!1,compatibility:o.apiCompatibilityParams.disableCreateObjectURL,kind:l.API},disableFontFace:{value:!1,kind:l.API+l.PREFERENCE},disableRange:{value:!1,kind:l.API+l.PREFERENCE},disableStream:{value:!1,kind:l.API+l.PREFERENCE},docBaseUrl:{value:"",kind:l.API},isEvalSupported:{value:!0,kind:l.API},maxImageSize:{value:-1,kind:l.API},pdfBug:{value:!1,kind:l.API},verbosity:{value:1,kind:l.API},workerPort:{value:null,kind:l.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:l.WORKER}},u=Object.create(null),d=function(){function e(){throw a(this,e),new Error("Cannot initialize AppOptions.")}return i(e,null,[{key:"get",value:function(e){var t=u[e];if(void 0!==t)return t;var r=c[e];return void 0!==r?r.compatibility||r.value:void 0}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=Object.create(null);for(var r in c){var a=c[r];if(e){if(0===(e&a.kind))continue;if(e===l.PREFERENCE){var i=a.value,o=n(i);if("boolean"===o||"string"===o||"number"===o&&Number.isInteger(i)){t[r]=i;continue}throw new Error("Invalid type for preference: ".concat(r))}}var s=u[r];t[r]=void 0!==s?s:a.compatibility||a.value}return t}},{key:"set",value:function(e,t){u[e]=t}},{key:"remove",value:function(e){delete u[e]}}]),e}();t.AppOptions=d},"0538":function(e,t,r){"use strict";var n=r("1c0b"),a=r("861d"),i=[].slice,o={},s=function(e,t,r){if(!(t in o)){for(var n=[],a=0;a<t;a++)n[a]="a["+a+"]";o[t]=Function("C,a","return new C("+n.join(",")+")")}return o[t](e,r)};e.exports=Function.bind||function(e){var t=n(this),r=i.call(arguments,1),o=function(){var n=r.concat(i.call(arguments));return this instanceof o?s(t,n.length,n):t.apply(e,n)};return a(t.prototype)&&(o.prototype=t.prototype),o}},"057f":function(e,t,r){var n=r("fc6a"),a=r("241c").f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return a(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?s(e):a(n(e))}},"0676":function(e,t){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=r},"06cf":function(e,t,r){var n=r("83ab"),a=r("d1e7"),i=r("5c6c"),o=r("fc6a"),s=r("c04e"),l=r("5135"),c=r("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(r){}if(l(e,t))return i(!a.f.call(e,t),e[t])}},"07ac":function(e,t,r){var n=r("23e7"),a=r("6f53").values;n({target:"Object",stat:!0},{values:function(e){return a(e)}})},"0b25":function(e,t,r){var n=r("a691"),a=r("50c4");e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=a(t);if(t!==r)throw RangeError("Wrong length or index");return r}},"0c47":function(e,t,r){var n=r("da84"),a=r("d44e");a(n.JSON,"JSON",!0)},"0ccb":function(e,t,r){var n=r("50c4"),a=r("1148"),i=r("1d80"),o=Math.ceil,s=function(e){return function(t,r,s){var l,c,u=String(i(t)),d=u.length,h=void 0===s?" ":String(s),f=n(r);return f<=d||""==h?u:(l=f-d,c=a.call(h,o(l/h.length)),c.length>l&&(c=c.slice(0,l)),e?u+c:c+u)}};e.exports={start:s(!1),end:s(!0)}},"0cfb":function(e,t,r){var n=r("83ab"),a=r("d039"),i=r("cc12");e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,r){var n=r("d039"),a=r("b622"),i=r("c430"),o=a("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},1:function(e,t){},"10d1":function(e,t,r){"use strict";var n,a=r("da84"),i=r("e2cc"),o=r("f183"),s=r("6d61"),l=r("acac"),c=r("861d"),u=r("69f3").enforce,d=r("7f9a"),h=!a.ActiveXObject&&"ActiveXObject"in a,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,l);if(d&&h){n=l.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var v=g.prototype,m=v["delete"],b=v.has,y=v.get,w=v.set;i(v,{delete:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),m.call(this,e)||t.frozen["delete"](e)}return m.call(this,e)},has:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(c(e)&&!f(e)){var r=u(this);r.frozen||(r.frozen=new n),b.call(this,e)?w.call(this,e,t):r.frozen.set(e,t)}else w.call(this,e,t);return this}})}},1148:function(e,t,r){"use strict";var n=r("a691"),a=r("1d80");e.exports="".repeat||function(e){var t=String(a(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}},"11b0":function(e,t,r){function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),e.exports=n},1276:function(e,t,r){"use strict";var n=r("d784"),a=r("44e7"),i=r("825a"),o=r("1d80"),s=r("4840"),l=r("8aa5"),c=r("50c4"),u=r("14c3"),d=r("9263"),h=r("d039"),f=[].push,p=Math.min,g=4294967295,v=!h((function(){return!RegExp(g,"y")}));n("split",2,(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=String(o(this)),i=void 0===r?g:r>>>0;if(0===i)return[];if(void 0===e)return[n];if(!a(e))return t.call(n,e,i);var s,l,c,u=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,v=new RegExp(e.source,h+"g");while(s=d.call(v,n)){if(l=v.lastIndex,l>p&&(u.push(n.slice(p,s.index)),s.length>1&&s.index<n.length&&f.apply(u,s.slice(1)),c=s[0].length,p=l,u.length>=i))break;v.lastIndex===s.index&&v.lastIndex++}return p===n.length?!c&&v.test("")||u.push(""):u.push(n.slice(p)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var a=o(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,a,r):n.call(String(a),t,r)},function(e,a){var o=r(n,e,this,a,n!==t);if(o.done)return o.value;var d=i(e),h=String(this),f=s(d,RegExp),m=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(v?"y":"g"),y=new f(v?d:"^(?:"+d.source+")",b),w=void 0===a?g:a>>>0;if(0===w)return[];if(0===h.length)return null===u(y,h)?[h]:[];var _=0,k=0,x=[];while(k<h.length){y.lastIndex=v?k:0;var S,A=u(y,v?h:h.slice(k));if(null===A||(S=p(c(y.lastIndex+(v?0:k)),h.length))===_)k=l(h,k,m);else{if(x.push(h.slice(_,k)),x.length===w)return x;for(var C=1;C<=A.length-1;C++)if(x.push(A[C]),x.length===w)return x;k=_=S}}return x.push(h.slice(_)),x}]}),!v)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"12b2":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("e260"),r("a9e3"),r("8ba4"),r("d3b7"),r("e6cf"),r("3ca3"),r("10d1"),r("ddb0"),r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var o=r("0496"),s=r("a3cd"),l=r("ef24"),c=r("6aed"),u=c.viewerCompatibilityParams.maxCanvasPixels||16777216,d=function(){function e(t){a(this,e);var r=t.container,n=t.defaultViewport;this.id=t.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||o.DEFAULT_SCALE,this.viewport=n,this.pdfPageRotate=n.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:o.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels||u,this.eventBus=t.eventBus||(0,o.getGlobalEventBus)(),this.renderingQueue=t.renderingQueue,this.textLayerFactory=t.textLayerFactory,this.annotationLayerFactory=t.annotationLayerFactory,this.renderer=t.renderer||o.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.l10n=t.l10n||o.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=l.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var i=document.createElement("div");i.className="page",i.style.width=Math.floor(this.viewport.width)+"px",i.style.height=Math.floor(this.viewport.height)+"px",i.setAttribute("data-page-number",this.id),this.div=i,r.appendChild(i)}return i(e,[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*o.CSS_UNITS,rotation:t}),this.stats=e.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_resetZoomLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(t),this.renderingState=l.RenderingStates.INITIAL;var r=this.div;r.style.width=Math.floor(this.viewport.width)+"px",r.style.height=Math.floor(this.viewport.height)+"px";for(var n=r.childNodes,a=e&&this.zoomLayer||null,i=t&&this.annotationLayer&&this.annotationLayer.div||null,o=n.length-1;o>=0;o--){var s=n[o];a!==s&&i!==s&&r.removeChild(s)}r.removeAttribute("data-loaded"),i?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),a||(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",r.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){this.scale=e||this.scale,"undefined"!==typeof t&&(this.rotation=t);var r=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*o.CSS_UNITS,rotation:r}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var n=!1;if(this.canvas&&this.maxCanvasPixels>0){var a=this.outputScale;(Math.floor(this.viewport.width)*a.sx|0)*(Math.floor(this.viewport.height)*a.sy|0)>this.maxCanvasPixels&&(n=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&n)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.viewport.width,n=this.viewport.height,a=this.div;e.style.width=e.parentNode.style.width=a.style.width=Math.floor(r)+"px",e.style.height=e.parentNode.style.height=a.style.height=Math.floor(n)+"px";var i=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,o=Math.abs(i),s=1,l=1;90!==o&&270!==o||(s=n/r,l=r/n);var c="rotate("+i+"deg) scale("+s+","+l+")";if(e.style.transform=c,this.textLayer){var u=this.textLayer.viewport,d=this.viewport.rotation-u.rotation,h=Math.abs(d),f=r/u.width;90!==h&&270!==h||(f=r/u.height);var p,g,v=this.textLayer.textLayerDiv;switch(h){case 0:p=g=0;break;case 90:p=0,g="-"+v.style.height;break;case 180:p="-"+v.style.width,g="-"+v.style.height;break;case 270:p="-"+v.style.width,g=0;break;default:console.error("Bad rotation value.");break}v.style.transform="rotate("+h+"deg) scale("+f+", "+f+") translate("+p+", "+g+")",v.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;this.renderingState!==l.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var t=this.div,r=this.pdfPage;if(!r)return this.renderingState=l.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=l.RenderingStates.RUNNING;var a=document.createElement("div");a.style.width=t.style.width,a.style.height=t.style.height,a.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?t.insertBefore(a,this.annotationLayer.div):t.appendChild(a);var i=null;if(this.textLayerMode!==o.TextLayerMode.DISABLE&&this.textLayerFactory){var c=document.createElement("div");c.className="textLayer",c.style.width=a.style.width,c.style.height=a.style.height,this.annotationLayer&&this.annotationLayer.div?t.insertBefore(c,this.annotationLayer.div):t.appendChild(c),i=this.textLayerFactory.createTextLayerBuilder(c,this.id-1,this.viewport,this.textLayerMode===o.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=i;var u=null;this.renderingQueue&&(u=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=l.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=l.RenderingStates.RUNNING,t()});t()});var d=function(){var a=n(regeneratorRuntime.mark((function n(a){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(h===e.paintTask&&(e.paintTask=null),!(a instanceof s.RenderingCancelledException)){n.next=4;break}return e.error=null,n.abrupt("return");case 4:if(e.renderingState=l.RenderingStates.FINISHED,e.loadingIconDiv&&(t.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=a,e.stats=r.stats,e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1,timestamp:performance.now()}),!a){n.next=12;break}throw a;case 12:case"end":return n.stop()}}),n)})));return function(e){return a.apply(this,arguments)}}(),h=this.renderer===o.RendererType.SVG?this.paintOnSvg(a):this.paintOnCanvas(a);h.onRenderContinue=u,this.paintTask=h;var f=h.promise.then((function(){return d(null).then((function(){if(i){var e=r.streamTextContent({normalizeWhitespace:!0});i.setTextContentStream(e),i.render()}}))}),(function(e){return d(e)}));return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(t,r,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),f}},{key:"paintOnCanvas",value:function(e){var t=(0,s.createPromiseCapability)(),r={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){b.cancel()}},n=this.viewport,a=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then((function(e){a.setAttribute("aria-label",e)})),a.setAttribute("hidden","hidden");var i=!0,l=function(){i&&(a.removeAttribute("hidden"),i=!1)};e.appendChild(a),this.canvas=a,a.mozOpaque=!0;var c=a.getContext("2d",{alpha:!1}),u=(0,o.getOutputScale)(c);if(this.outputScale=u,this.useOnlyCssZoom){var d=n.clone({scale:o.CSS_UNITS});u.sx*=d.width/n.width,u.sy*=d.height/n.height,u.scaled=!0}if(this.maxCanvasPixels>0){var h=n.width*n.height,f=Math.sqrt(this.maxCanvasPixels/h);u.sx>f||u.sy>f?(u.sx=f,u.sy=f,u.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,o.approximateFraction)(u.sx),g=(0,o.approximateFraction)(u.sy);a.width=(0,o.roundToDivide)(n.width*u.sx,p[0]),a.height=(0,o.roundToDivide)(n.height*u.sy,g[0]),a.style.width=(0,o.roundToDivide)(n.width,p[1])+"px",a.style.height=(0,o.roundToDivide)(n.height,g[1])+"px",this.paintedViewportMap.set(a,n);var v=u.scaled?[u.sx,0,0,u.sy,0,0]:null,m={canvasContext:c,transform:v,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},b=this.pdfPage.render(m);return b.onContinue=function(e){l(),r.onRenderContinue?r.onRenderContinue(e):e()},b.promise.then((function(){l(),t.resolve(void 0)}),(function(e){l(),t.reject(e)})),r}},{key:"paintOnSvg",value:function(e){var t=this,r=!1,n=function(){if(r)throw new s.RenderingCancelledException("Rendering cancelled, page ".concat(t.id),"svg")},a=this.pdfPage,i=this.viewport.clone({scale:o.CSS_UNITS}),c=a.getOperatorList().then((function(r){n();var o=new s.SVGGraphics(a.commonObjs,a.objs);return o.getSVG(r,i).then((function(r){n(),t.svg=r,t.paintedViewportMap.set(r,i),r.style.width=e.style.width,r.style.height=e.style.height,t.renderingState=l.RenderingStates.FINISHED,e.appendChild(r)}))}));return{promise:c,onRenderContinue:function(e){e()},cancel:function(){r=!0}}}},{key:"setPageLabel",value:function(e){this.pageLabel="string"===typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}]),e}();t.PDFPageView=d},"130f":function(e,t,r){var n=r("23e7"),a=r("da84"),i=r("2cf4"),o=!a.setImmediate||!a.clearImmediate;n({global:!0,bind:!0,enumerable:!0,forced:o},{setImmediate:i.set,clearImmediate:i.clear})},"143c":function(e,t,r){var n=r("74e8");n("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},"145e":function(e,t,r){"use strict";var n=r("7b0b"),a=r("23cb"),i=r("50c4"),o=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=i(r.length),l=a(e,s),c=a(t,s),u=arguments.length>2?arguments[2]:void 0,d=o((void 0===u?s:a(u,s))-c,s-l),h=1;c<l&&l<c+d&&(h=-1,c+=d-1,l+=d-1);while(d-- >0)c in r?r[l]=r[c]:delete r[l],l+=h,c+=h;return r}},"14c3":function(e,t,r){var n=r("c6b6"),a=r("9263");e.exports=function(e,t){var r=e.exec;if("function"===typeof r){var i=r.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"159b":function(e,t,r){var n=r("da84"),a=r("fdbc"),i=r("17c2"),o=r("9112");for(var s in a){var l=n[s],c=l&&l.prototype;if(c&&c.forEach!==i)try{o(c,"forEach",i)}catch(u){c.forEach=i}}},"16ba":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("caad"),r("e260"),r("a9e3"),r("8ba4"),r("cca6"),r("dca8"),r("d3b7"),r("e6cf"),r("3ca3"),r("ddb0"),r("96cf");var n=r("c973"),a=r("278c"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocumentProperties=void 0;var s=r("a3cd"),l=r("0496"),c="-",u=["en-us","en-lr","my"],d={"8.5x11":"Letter","8.5x14":"Legal"},h={"297x420":"A3","210x297":"A4"};function f(e,t,r){var n=t?e.width:e.height,a=t?e.height:e.width;return r["".concat(n,"x").concat(a)]}var p=function(){function e(t,r,n){var a=this,o=t.overlayName,s=t.fields,c=t.container,d=t.closeButton,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.NullL10n;i(this,e),this.overlayName=o,this.fields=s,this.container=c,this.overlayManager=r,this.l10n=h,this._reset(),d&&d.addEventListener("click",this.close.bind(this)),this.overlayManager.register(this.overlayName,this.container,this.close.bind(this)),n&&(n._on("pagechanging",(function(e){a._currentPageNumber=e.pageNumber})),n._on("rotationchanging",(function(e){a._pagesRotation=e.pagesRotation}))),this._isNonMetricLocale=!0,h.getLanguage().then((function(e){a._isNonMetricLocale=u.includes(e)}))}return o(e,[{key:"open",value:function(){var e=this,t=function(t){Object.defineProperty(e,"fieldData",{value:Object.freeze(t),writable:!1,enumerable:!0,configurable:!0})};Promise.all([this.overlayManager.open(this.overlayName),this._dataAvailableCapability.promise]).then((function(){var r=e._currentPageNumber,n=e._pagesRotation;e.fieldData&&r===e.fieldData["_currentPageNumber"]&&n===e.fieldData["_pagesRotation"]?e._updateUI():e.pdfDocument.getMetadata().then((function(t){var a=t.info,i=t.metadata,o=t.contentDispositionFilename;return Promise.all([a,i,o||(0,l.getPDFFileNameFromURL)(e.url||""),e._parseFileSize(e.maybeFileSize),e._parseDate(a.CreationDate),e._parseDate(a.ModDate),e.pdfDocument.getPage(r).then((function(t){return e._parsePageSize((0,l.getPageSizeInches)(t),n)})),e._parseLinearization(a.IsLinearized)])})).then((function(i){var o=a(i,8),s=o[0],l=(o[1],o[2]),c=o[3],u=o[4],d=o[5],h=o[6],f=o[7];return t({fileName:l,fileSize:c,title:s.Title,author:s.Author,subject:s.Subject,keywords:s.Keywords,creationDate:u,modificationDate:d,creator:s.Creator,producer:s.Producer,version:s.PDFFormatVersion,pageCount:e.pdfDocument.numPages,pageSize:h,linearized:f,_currentPageNumber:r,_pagesRotation:n}),e._updateUI(),e.pdfDocument.getDownloadInfo()})).then((function(t){var r=t.length;return e.maybeFileSize=r,e._parseFileSize(r)})).then((function(r){if(r!==e.fieldData["fileSize"]){var n=Object.assign(Object.create(null),e.fieldData);n["fileSize"]=r,t(n),e._updateUI()}}))}))}},{key:"close",value:function(){this.overlayManager.close(this.overlayName)}},{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pdfDocument&&(this._reset(),this._updateUI(!0)),e&&(this.pdfDocument=e,this.url=t,this._dataAvailableCapability.resolve())}},{key:"setFileSize",value:function(e){Number.isInteger(e)&&e>0&&(this.maybeFileSize=e)}},{key:"_reset",value:function(){this.pdfDocument=null,this.url=null,this.maybeFileSize=0,delete this.fieldData,this._dataAvailableCapability=(0,s.createPromiseCapability)(),this._currentPageNumber=1,this._pagesRotation=0}},{key:"_updateUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e&&this.fieldData){if(this.overlayManager.active===this.overlayName)for(var t in this.fields){var r=this.fieldData[t];this.fields[t].textContent=r||0===r?r:c}}else for(var n in this.fields)this.fields[n].textContent=c}},{key:"_parseFileSize",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:0,r=t/1024,r){e.next=6;break}return e.abrupt("return",void 0);case 6:if(!(r<1024)){e.next=8;break}return e.abrupt("return",this.l10n.get("document_properties_kb",{size_kb:(+r.toPrecision(3)).toLocaleString(),size_b:t.toLocaleString()},"{{size_kb}} KB ({{size_b}} bytes)"));case 8:return e.abrupt("return",this.l10n.get("document_properties_mb",{size_mb:(+(r/1024).toPrecision(3)).toLocaleString(),size_b:t.toLocaleString()},"{{size_mb}} MB ({{size_b}} bytes)"));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_parsePageSize",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r){var n,i,o,s,c,u,p,g=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",void 0);case 2:return r%180!==0&&(t={width:t.height,height:t.width}),n=(0,l.isPortraitOrientation)(t),i={width:Math.round(100*t.width)/100,height:Math.round(100*t.height)/100},o={width:Math.round(25.4*t.width*10)/10,height:Math.round(25.4*t.height*10)/10},s=null,c=f(i,n,d)||f(o,n,h),c||Number.isInteger(o.width)&&Number.isInteger(o.height)||(u={width:25.4*t.width,height:25.4*t.height},p={width:Math.round(o.width),height:Math.round(o.height)},Math.abs(u.width-p.width)<.1&&Math.abs(u.height-p.height)<.1&&(c=f(p,n,h),c&&(i={width:Math.round(p.width/25.4*100)/100,height:Math.round(p.height/25.4*100)/100},o=p))),c&&(s=this.l10n.get("document_properties_page_size_name_"+c.toLowerCase(),null,c)),e.abrupt("return",Promise.all([this._isNonMetricLocale?i:o,this.l10n.get("document_properties_page_size_unit_"+(this._isNonMetricLocale?"inches":"millimeters"),null,this._isNonMetricLocale?"in":"mm"),s,this.l10n.get("document_properties_page_size_orientation_"+(n?"portrait":"landscape"),null,n?"portrait":"landscape")]).then((function(e){var t=a(e,4),r=t[0],n=r.width,i=r.height,o=t[1],s=t[2],l=t[3];return g.l10n.get("document_properties_page_size_dimension_"+(s?"name_":"")+"string",{width:n.toLocaleString(),height:i.toLocaleString(),unit:o,name:s,orientation:l},"{{width}} × {{height}} {{unit}} ("+(s?"{{name}}, ":"")+"{{orientation}})")})));case 11:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"_parseDate",value:function(){var e=n(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=s.PDFDateString.toDateObject(t),r){e.next=3;break}return e.abrupt("return",void 0);case 3:return e.abrupt("return",this.l10n.get("document_properties_date_string",{date:r.toLocaleDateString(),time:r.toLocaleTimeString()},"{{date}}, {{time}}"));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_parseLinearization",value:function(e){return this.l10n.get("document_properties_linearized_"+(e?"yes":"no"),null,e?"Yes":"No")}}]),e}();t.PDFDocumentProperties=p},"170b":function(e,t,r){"use strict";var n=r("ebb5"),a=r("50c4"),i=r("23cb"),o=r("4840"),s=n.aTypedArray,l=n.exportTypedArrayMethod;l("subarray",(function(e,t){var r=s(this),n=r.length,l=i(e,n);return new(o(r,r.constructor))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,a((void 0===t?n:i(t,n))-l))}))},"17c2":function(e,t,r){"use strict";var n=r("b727").forEach,a=r("a640"),i=r("ae40"),o=a("forEach"),s=i("forEach");e.exports=o&&s?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,r){var n=r("f8cd");e.exports=function(e,t){var r=n(e);if(r%t)throw RangeError("Wrong offset");return r}},"18a5":function(e,t,r){"use strict";var n=r("23e7"),a=r("857a"),i=r("af03");n({target:"String",proto:!0,forced:i("anchor")},{anchor:function(e){return a(this,"a","name",e)}})},"19aa":function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},"1be4":function(e,t,r){var n=r("d066");e.exports=n("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,r){var n=r("b622"),a=n("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[a]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n={};n[a]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(l){}return r}},"1cdc":function(e,t,r){var n=r("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1db6":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAQAAABKmM6bAAAARElEQVR4AWMgDrzofXEGBbYxvBB7cQhJYPcLAZC6MCQhN4hWphfzoQJ9CPNUX5wACux/IYpsSTZQyB/VXrYXFS8YIWwAuoI/FPk23zUAAAAASUVORK5CYII="},"1dda":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=s,t.TilingPattern=void 0;var n=r("dacc"),a={};function i(e,t){if(t&&"undefined"!==typeof Path2D){var r=t[2]-t[0],n=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],r,n),e.clip(a)}}a.RadialAxial={fromIR:function(e){var t=e[1],r=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7];return{type:"Pattern",getPattern:function(e){var c;i(e,r),"axial"===t?c=e.createLinearGradient(a[0],a[1],o[0],o[1]):"radial"===t&&(c=e.createRadialGradient(a[0],a[1],s,o[0],o[1],l));for(var u=0,d=n.length;u<d;++u){var h=n[u];c.addColorStop(h[0],h[1])}return c}}}};var o=function(){function e(e,t,r,n,a,i,o,s){var l,c=t.coords,u=t.colors,d=e.data,h=4*e.width;c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=i,i=o,o=l),c[n+1]>c[a+1]&&(l=n,n=a,a=l,l=o,o=s,s=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=i,i=o,o=l);var f=(c[r]+t.offsetX)*t.scaleX,p=(c[r+1]+t.offsetY)*t.scaleY,g=(c[n]+t.offsetX)*t.scaleX,v=(c[n+1]+t.offsetY)*t.scaleY,m=(c[a]+t.offsetX)*t.scaleX,b=(c[a+1]+t.offsetY)*t.scaleY;if(!(p>=b))for(var y,w,_,k,x,S,A,C,P=u[i],T=u[i+1],E=u[i+2],R=u[o],I=u[o+1],O=u[o+2],L=u[s],F=u[s+1],M=u[s+2],D=Math.round(p),N=Math.round(b),B=D;B<=N;B++){if(B<v){var U=void 0;U=B<p?0:p===v?1:(p-B)/(p-v),y=f-(f-g)*U,w=P-(P-R)*U,_=T-(T-I)*U,k=E-(E-O)*U}else{var j=void 0;j=B>b?1:v===b?0:(v-B)/(v-b),y=g-(g-m)*j,w=R-(R-L)*j,_=I-(I-F)*j,k=O-(O-M)*j}var q=void 0;q=B<p?0:B>b?1:(p-B)/(p-b),x=f-(f-m)*q,S=P-(P-L)*q,A=T-(T-F)*q,C=E-(E-M)*q;for(var z=Math.round(Math.min(y,x)),V=Math.round(Math.max(y,x)),W=h*B+4*z,H=z;H<=V;H++){var G=(y-H)/(y-x);G<0?G=0:G>1&&(G=1),d[W++]=w-(w-S)*G|0,d[W++]=_-(_-A)*G|0,d[W++]=k-(k-C)*G|0,d[W++]=255}}}function t(t,r,n){var a,i,o=r.coords,s=r.colors;switch(r.type){case"lattice":var l=r.verticesPerRow,c=Math.floor(o.length/l)-1,u=l-1;for(a=0;a<c;a++)for(var d=a*l,h=0;h<u;h++,d++)e(t,n,o[d],o[d+1],o[d+l],s[d],s[d+1],s[d+l]),e(t,n,o[d+l+1],o[d+1],o[d+l],s[d+l+1],s[d+1],s[d+l]);break;case"triangles":for(a=0,i=o.length;a<i;a+=3)e(t,n,o[a],o[a+1],o[a+2],s[a],s[a+1],s[a+2]);break;default:throw new Error("illegal figure")}}function r(e,r,n,a,i,o,s,l){var c,u,d,h,f=1.1,p=3e3,g=2,v=Math.floor(e[0]),m=Math.floor(e[1]),b=Math.ceil(e[2])-v,y=Math.ceil(e[3])-m,w=Math.min(Math.ceil(Math.abs(b*r[0]*f)),p),_=Math.min(Math.ceil(Math.abs(y*r[1]*f)),p),k=b/w,x=y/_,S={coords:n,colors:a,offsetX:-v,offsetY:-m,scaleX:1/k,scaleY:1/x},A=w+2*g,C=_+2*g;if(l.isEnabled)c=l.drawFigures({width:w,height:_,backgroundColor:o,figures:i,context:S}),u=s.getCanvas("mesh",A,C,!1),u.context.drawImage(c,g,g),c=u.canvas;else{u=s.getCanvas("mesh",A,C,!1);var P=u.context,T=P.createImageData(w,_);if(o){var E=T.data;for(d=0,h=E.length;d<h;d+=4)E[d]=o[0],E[d+1]=o[1],E[d+2]=o[2],E[d+3]=255}for(d=0;d<i.length;d++)t(T,i[d],S);P.putImageData(T,g,g),c=u.canvas}return{canvas:c,offsetX:v-g*k,offsetY:m-g*x,scaleX:k,scaleY:x}}return r}();function s(e){var t=a[e[0]];if(!t)throw new Error("Unknown IR type: ".concat(e[0]));return t.fromIR(e)}a.Mesh={fromIR:function(e){var t=e[2],r=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return{type:"Pattern",getPattern:function(e,d,h){var f;if(i(e,c),h)f=n.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(f=n.Util.singularValueDecompose2dScale(d.baseTransform),l){var p=n.Util.singularValueDecompose2dScale(l);f=[f[0]*p[0],f[1]*p[1]]}var g=o(s,f,t,r,a,h?null:u,d.cachedCanvases,d.webGLContext);return h||(e.setTransform.apply(e,d.baseTransform),l&&e.transform.apply(e,l)),e.translate(g.offsetX,g.offsetY),e.scale(g.scaleX,g.scaleY),e.createPattern(g.canvas,"no-repeat")}}}},a.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var l=function(){var e={COLORED:1,UNCOLORED:2},t=3e3;function r(e,t,r,n,a){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=n,this.baseTransform=a,this.type="Pattern",this.ctx=r}return r.prototype={createPatternCanvas:function(e){var t=this.operatorList,r=this.bbox,a=this.xstep,i=this.ystep,o=this.paintType,s=this.tilingType,l=this.color,c=this.canvasGraphicsFactory;(0,n.info)("TilingType: "+s);var u=r[0],d=r[1],h=r[2],f=r[3],p=n.Util.singularValueDecompose2dScale(this.matrix),g=n.Util.singularValueDecompose2dScale(this.baseTransform),v=[p[0]*g[0],p[1]*g[1]],m=this.getSizeAndScale(a,this.ctx.canvas.width,v[0]),b=this.getSizeAndScale(i,this.ctx.canvas.height,v[1]),y=e.cachedCanvases.getCanvas("pattern",m.size,b.size,!0),w=y.context,_=c.createCanvasGraphics(w);return _.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(_,o,l),_.transform(m.scale,0,0,b.scale,0,0),_.transform(1,0,0,1,-u,-d),this.clipBbox(_,r,u,d,h,f),_.executeOperatorList(t),this.ctx.transform(1,0,0,1,u,d),this.ctx.scale(1/m.scale,1/b.scale),y.canvas},getSizeAndScale:function(e,r,n){e=Math.abs(e);var a=Math.max(t,r),i=Math.ceil(e*n);return i>=a?i=a:n=i/e,{scale:n,size:i}},clipBbox:function(e,t,r,n,a,i){if(Array.isArray(t)&&4===t.length){var o=a-r,s=i-n;e.ctx.rect(r,n,o,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(t,r,a){var i=t.ctx,o=t.current;switch(r){case e.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,o.fillColor=s.fillStyle,o.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var l=n.Util.makeCssRgb(a[0],a[1],a[2]);i.fillStyle=l,i.strokeStyle=l,o.fillColor=l,o.strokeColor=l;break;default:throw new n.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(e,t){e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},r}();t.TilingPattern=l},"1dde":function(e,t,r){var n=r("d039"),a=r("b622"),i=r("2d00"),o=a("species");e.exports=function(e){return i>=51||!n((function(){var t=[],r=t.constructor={};return r[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1de5":function(e,t,r){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"1fb5":function(e,t,r){"use strict";t.byteLength=u,t.toByteArray=h,t.fromByteArray=g;for(var n=[],a=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)n[s]=o[s],a[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function u(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function d(e,t,r){return 3*(t+r)/4-r}function h(e){var t,r,n=c(e),o=n[0],s=n[1],l=new i(d(e,o,s)),u=0,h=s>0?o-4:o;for(r=0;r<h;r+=4)t=a[e.charCodeAt(r)]<<18|a[e.charCodeAt(r+1)]<<12|a[e.charCodeAt(r+2)]<<6|a[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===s&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,a=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(f(n));return a.join("")}function g(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,l=r-a;s<l;s+=o)i.push(p(e,s,s+o>l?l:s+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},"1fe2":function(e,t,r){"use strict";var n=r("6d61"),a=r("acac");n("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},2:function(e,t){},"219c":function(e,t,r){"use strict";var n=r("ebb5"),a=n.aTypedArray,i=n.exportTypedArrayMethod,o=[].sort;i("sort",(function(e){return o.call(a(this),e)}))},2236:function(e,t,r){var n=r("5a43");function a(e){if(Array.isArray(e))return n(e)}e.exports=a},2242:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAQAAABKmM6bAAAAR0lEQVQI12NgYHgx6YUSAyp4cebFyRc1L0RQhUDw0IukF+yoQiC45YXvCyZUIRAsQhVa/8IRWeP+FzEvWJFtLH8hgGwjmrsAP6JHRnPnejIAAAAASUVORK5CYII="},2266:function(e,t,r){var n=r("825a"),a=r("e95a"),i=r("50c4"),o=r("0366"),s=r("35a1"),l=r("9bdd"),c=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,r,u,d){var h,f,p,g,v,m,b,y=o(t,r,u?2:1);if(d)h=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(a(f)){for(p=0,g=i(e.length);g>p;p++)if(v=u?y(n(b=e[p])[0],b[1]):y(e[p]),v&&v instanceof c)return v;return new c(!1)}h=f.call(e)}m=h.next;while(!(b=m.call(h)).done)if(v=l(h,y,b.value,u),"object"==typeof v&&v&&v instanceof c)return v;return new c(!1)};u.stop=function(e){return new c(!0,e)}},"23cb":function(e,t,r){var n=r("a691"),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)}},"23dc":function(e,t,r){var n=r("d44e");n(Math,"Math",!0)},"23e7":function(e,t,r){var n=r("da84"),a=r("06cf").f,i=r("9112"),o=r("6eeb"),s=r("ce4e"),l=r("e893"),c=r("94ca");e.exports=function(e,t){var r,u,d,h,f,p,g=e.target,v=e.global,m=e.stat;if(u=v?n:m?n[g]||s(g,{}):(n[g]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(p=a(u,d),h=p&&p.value):h=u[d],r=c(v?d:g+(m?".":"#")+d,e.forced),!r&&void 0!==h){if(typeof f===typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&i(f,"sham",!0),o(u,d,f,e)}}},"241c":function(e,t,r){var n=r("ca84"),a=r("7839"),i=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},"24fb":function(e,t,r){"use strict";function n(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"===typeof btoa){var i=a(n),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}function a(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(r," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"===typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&a[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),t.push(l))}},t}},2532:function(e,t,r){"use strict";var n=r("23e7"),a=r("5a34"),i=r("1d80"),o=r("ab13");n({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(i(this)).indexOf(a(e),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,r){"use strict";var n=r("ebb5"),a=r("d58f").right,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("reduceRight",(function(e){return a(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25f0":function(e,t,r){"use strict";var n=r("6eeb"),a=r("825a"),i=r("d039"),o=r("ad6d"),s="toString",l=RegExp.prototype,c=l[s],u=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=s;(u||d)&&n(RegExp.prototype,s,(function(){var e=a(this),t=String(e.source),r=e.flags,n=String(void 0===r&&e instanceof RegExp&&!("flags"in l)?o.call(e):r);return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,r){"use strict";var n=r("d066"),a=r("9bf2"),i=r("b622"),o=r("83ab"),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}})}},"278c":function(e,t,r){var n=r("c135"),a=r("9b42"),i=r("6613"),o=r("c240");function s(e,t){return n(e)||a(e,t)||i(e,t)||o()}e.exports=s},2954:function(e,t,r){"use strict";var n=r("ebb5"),a=r("4840"),i=r("d039"),o=n.aTypedArray,s=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod,c=[].slice,u=i((function(){new Int8Array(1).slice()}));l("slice",(function(e,t){var r=c.call(o(this),e,t),n=a(this,this.constructor),i=0,l=r.length,u=new(s(n))(l);while(l>i)u[i]=r[i++];return u}),u)},"2a8b":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/var n=r("6374"),a=r("970b"),i=r("5bc3"),o=r("8962"),s=r("36c6"),l=r("ed6d"),c=r("2d0d");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;var u=r("3b56"),d=r("a3cd"),h=function(e){l(r,e);var t=c(r);function r(){return a(this,r),t.apply(this,arguments)}return i(r,[{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,n=e.pageSpot,a=void 0===n?null:n,i=e.pageNumber,l=void 0===i?null:i;if(!a&&!this.isInPresentationMode){var c=t.offsetLeft+t.clientLeft,u=c+t.clientWidth,d=this.container,h=d.scrollLeft,f=d.clientWidth;(this._isScrollModeHorizontal||c<h||u>h+f)&&(a={left:0,top:0})}o(s(r.prototype),"_scrollIntoView",this).call(this,{pageDiv:t,pageSpot:a,pageNumber:l})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():o(s(r.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(e){if(!this.isInPresentationMode){var t,r=this._currentPageNumber,a=!1,i=n(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.percent<100)break;if(o.id===r){a=!0;break}}}catch(s){i.e(s)}finally{i.f()}a||(r=e[0].id),this._setCurrentPageNumber(r)}}},{key:"_setDocumentViewerElement",get:function(){return(0,d.shadow)(this,"_setDocumentViewerElement",this.viewer)}}]),r}(u.BaseViewer);t.PDFViewer=h},"2b3d":function(e,t,r){"use strict";r("3ca3");var n,a=r("23e7"),i=r("83ab"),o=r("0d3b"),s=r("da84"),l=r("37e8"),c=r("6eeb"),u=r("19aa"),d=r("5135"),h=r("60da"),f=r("4df4"),p=r("6547").codeAt,g=r("5fb2"),v=r("d44e"),m=r("9861"),b=r("69f3"),y=s.URL,w=m.URLSearchParams,_=m.getState,k=b.set,x=b.getterFor("URL"),S=Math.floor,A=Math.pow,C="Invalid authority",P="Invalid scheme",T="Invalid host",E="Invalid port",R=/[A-Za-z]/,I=/[\d+-.A-Za-z]/,O=/\d/,L=/^(0x|0X)/,F=/^[0-7]+$/,M=/^\d+$/,D=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,B=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,q=function(e,t){var r,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return T;if(r=V(t.slice(1,-1)),!r)return T;e.host=r}else if(Q(e)){if(t=g(t),N.test(t))return T;if(r=z(t),null===r)return T;e.host=r}else{if(B.test(t))return T;for(r="",n=f(t),a=0;a<n.length;a++)r+=Z(n[a],G);e.host=r}},z=function(e){var t,r,n,a,i,o,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),t=l.length,t>4)return e;for(r=[],n=0;n<t;n++){if(a=l[n],""==a)return e;if(i=10,a.length>1&&"0"==a.charAt(0)&&(i=L.test(a)?16:8,a=a.slice(8==i?1:2)),""===a)o=0;else{if(!(10==i?M:8==i?F:D).test(a))return e;o=parseInt(a,i)}r.push(o)}for(n=0;n<t;n++)if(o=r[n],n==t-1){if(o>=A(256,5-t))return null}else if(o>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*A(256,3-n);return s},V=function(e){var t,r,n,a,i,o,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,c++,u=c}while(h()){if(8==c)return;if(":"!=h()){t=r=0;while(r<4&&D.test(h()))t=16*t+parseInt(h(),16),d++,r++;if("."==h()){if(0==r)return;if(d-=r,c>6)return;n=0;while(h()){if(a=null,n>0){if(!("."==h()&&n<4))return;d++}if(!O.test(h()))return;while(O.test(h())){if(i=parseInt(h(),10),null===a)a=i;else{if(0==a)return;a=10*a+i}if(a>255)return;d++}l[c]=256*l[c]+a,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,c++,u=c}}if(null!==u){o=c-u,c=7;while(0!=c&&o>0)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s}else if(8!=c)return;return l},W=function(e){for(var t=null,r=1,n=null,a=0,i=0;i<8;i++)0!==e[i]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=i),++a);return a>r&&(t=n,r=a),t},H=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=W(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},G={},Y=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),X=h({},Y,{"#":1,"?":1,"{":1,"}":1}),K=h({},X,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var r=p(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(J,e.scheme)},$=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var r;return 2==e.length&&R.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},re=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&te(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},ie=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},le={},ce={},ue={},de={},he={},fe={},pe={},ge={},ve={},me={},be={},ye={},we={},_e={},ke={},xe={},Se={},Ae={},Ce={},Pe=function(e,t,r,a){var i,o,s,l,c=r||oe,u=0,h="",p=!1,g=!1,v=!1;r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(j,""),i=f(t);while(u<=i.length){switch(o=i[u],c){case oe:if(!o||!R.test(o)){if(r)return P;c=le;continue}h+=o.toLowerCase(),c=se;break;case se:if(o&&(I.test(o)||"+"==o||"-"==o||"."==o))h+=o.toLowerCase();else{if(":"!=o){if(r)return P;h="",c=le,u=0;continue}if(r&&(Q(e)!=d(J,h)||"file"==h&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,r)return void(Q(e)&&J[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=ye:Q(e)&&a&&a.scheme==e.scheme?c=ce:Q(e)?c=fe:"/"==i[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Se)}break;case le:if(!a||a.cannotBeABaseURL&&"#"!=o)return P;if(a.cannotBeABaseURL&&"#"==o){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,c=Ce;break}c="file"==a.scheme?ye:de;continue;case ce:if("/"!=o||"/"!=i[u+1]){c=de;continue}c=pe,u++;break;case ue:if("/"==o){c=ge;break}c=xe;continue;case de:if(e.scheme=a.scheme,o==n)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==o||"\\"==o&&Q(e))c=he;else if("?"==o)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",c=Ae;else{if("#"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),c=xe;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",c=Ce}break;case he:if(!Q(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,c=xe;continue}c=ge}else c=pe;break;case fe:if(c=pe,"/"!=o||"/"!=h.charAt(u+1))continue;u++;break;case pe:if("/"!=o&&"\\"!=o){c=ge;continue}break;case ge:if("@"==o){p&&(h="%40"+h),p=!0,s=f(h);for(var m=0;m<s.length;m++){var b=s[m];if(":"!=b||v){var y=Z(b,K);v?e.password+=y:e.username+=y}else v=!0}h=""}else if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)){if(p&&""==h)return C;u-=f(h).length+1,h="",c=ve}else h+=o;break;case ve:case me:if(r&&"file"==e.scheme){c=_e;continue}if(":"!=o||g){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)){if(Q(e)&&""==h)return T;if(r&&""==h&&($(e)||null!==e.port))return;if(l=q(e,h),l)return l;if(h="",c=ke,r)return;continue}"["==o?g=!0:"]"==o&&(g=!1),h+=o}else{if(""==h)return T;if(l=q(e,h),l)return l;if(h="",c=be,r==me)return}break;case be:if(!O.test(o)){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)||r){if(""!=h){var w=parseInt(h,10);if(w>65535)return E;e.port=Q(e)&&w===J[e.scheme]?null:w,h=""}if(r)return;c=ke;continue}return E}h+=o;break;case ye:if(e.scheme="file","/"==o||"\\"==o)c=we;else{if(!a||"file"!=a.scheme){c=xe;continue}if(o==n)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==o)e.host=a.host,e.path=a.path.slice(),e.query="",c=Ae;else{if("#"!=o){re(i.slice(u).join(""))||(e.host=a.host,e.path=a.path.slice(),ne(e)),c=xe;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",c=Ce}}break;case we:if("/"==o||"\\"==o){c=_e;break}a&&"file"==a.scheme&&!re(i.slice(u).join(""))&&(te(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),c=xe;continue;case _e:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!r&&te(h))c=xe;else if(""==h){if(e.host="",r)return;c=ke}else{if(l=q(e,h),l)return l;if("localhost"==e.host&&(e.host=""),r)return;h="",c=ke}continue}h+=o;break;case ke:if(Q(e)){if(c=xe,"/"!=o&&"\\"!=o)continue}else if(r||"?"!=o)if(r||"#"!=o){if(o!=n&&(c=xe,"/"!=o))continue}else e.fragment="",c=Ce;else e.query="",c=Ae;break;case xe:if(o==n||"/"==o||"\\"==o&&Q(e)||!r&&("?"==o||"#"==o)){if(ie(h)?(ne(e),"/"==o||"\\"==o&&Q(e)||e.path.push("")):ae(h)?"/"==o||"\\"==o&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(o==n||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",c=Ae):"#"==o&&(e.fragment="",c=Ce)}else h+=Z(o,X);break;case Se:"?"==o?(e.query="",c=Ae):"#"==o?(e.fragment="",c=Ce):o!=n&&(e.path[0]+=Z(o,G));break;case Ae:r||"#"!=o?o!=n&&("'"==o&&Q(e)?e.query+="%27":e.query+="#"==o?"%23":Z(o,G)):(e.fragment="",c=Ce);break;case Ce:o!=n&&(e.fragment+=Z(o,Y));break}u++}},Te=function(e){var t,r,n=u(this,Te,"URL"),a=arguments.length>1?arguments[1]:void 0,o=String(e),s=k(n,{type:"URL"});if(void 0!==a)if(a instanceof Te)t=x(a);else if(r=Pe(t={},String(a)),r)throw TypeError(r);if(r=Pe(s,o,null,t),r)throw TypeError(r);var l=s.searchParams=new w,c=_(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},i||(n.href=Re.call(n),n.origin=Ie.call(n),n.protocol=Oe.call(n),n.username=Le.call(n),n.password=Fe.call(n),n.host=Me.call(n),n.hostname=De.call(n),n.port=Ne.call(n),n.pathname=Be.call(n),n.search=Ue.call(n),n.searchParams=je.call(n),n.hash=qe.call(n))},Ee=Te.prototype,Re=function(){var e=x(this),t=e.scheme,r=e.username,n=e.password,a=e.host,i=e.port,o=e.path,s=e.query,l=e.fragment,c=t+":";return null!==a?(c+="//",$(e)&&(c+=r+(n?":"+n:"")+"@"),c+=H(a),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Ie=function(){var e=x(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&Q(e)?t+"://"+H(e.host)+(null!==r?":"+r:""):"null"},Oe=function(){return x(this).scheme+":"},Le=function(){return x(this).username},Fe=function(){return x(this).password},Me=function(){var e=x(this),t=e.host,r=e.port;return null===t?"":null===r?H(t):H(t)+":"+r},De=function(){var e=x(this).host;return null===e?"":H(e)},Ne=function(){var e=x(this).port;return null===e?"":String(e)},Be=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=x(this).query;return e?"?"+e:""},je=function(){return x(this).searchParams},qe=function(){var e=x(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&l(Ee,{href:ze(Re,(function(e){var t=x(this),r=String(e),n=Pe(t,r);if(n)throw TypeError(n);_(t.searchParams).updateSearchParams(t.query)})),origin:ze(Ie),protocol:ze(Oe,(function(e){var t=x(this);Pe(t,String(e)+":",oe)})),username:ze(Le,(function(e){var t=x(this),r=f(String(e));if(!ee(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=Z(r[n],K)}})),password:ze(Fe,(function(e){var t=x(this),r=f(String(e));if(!ee(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=Z(r[n],K)}})),host:ze(Me,(function(e){var t=x(this);t.cannotBeABaseURL||Pe(t,String(e),ve)})),hostname:ze(De,(function(e){var t=x(this);t.cannotBeABaseURL||Pe(t,String(e),me)})),port:ze(Ne,(function(e){var t=x(this);ee(t)||(e=String(e),""==e?t.port=null:Pe(t,e,be))})),pathname:ze(Be,(function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],Pe(t,e+"",ke))})),search:ze(Ue,(function(e){var t=x(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Pe(t,e,Ae)),_(t.searchParams).updateSearchParams(t.query)})),searchParams:ze(je),hash:ze(qe,(function(e){var t=x(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Pe(t,e,Ce)):t.fragment=null}))}),c(Ee,"toJSON",(function(){return Re.call(this)}),{enumerable:!0}),c(Ee,"toString",(function(){return Re.call(this)}),{enumerable:!0}),y){var Ve=y.createObjectURL,We=y.revokeObjectURL;Ve&&c(Te,"createObjectURL",(function(e){return Ve.apply(y,arguments)})),We&&c(Te,"revokeObjectURL",(function(e){return We.apply(y,arguments)}))}v(Te,"URL"),a({global:!0,forced:!o,sham:!i},{URL:Te})},"2ca0":function(e,t,r){"use strict";var n=r("23e7"),a=r("06cf").f,i=r("50c4"),o=r("5a34"),s=r("1d80"),l=r("ab13"),c=r("c430"),u="".startsWith,d=Math.min,h=l("startsWith"),f=!c&&!h&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!f&&!h},{startsWith:function(e){var t=String(s(this));o(e);var r=i(d(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return u?u.call(t,n,r):t.slice(r,r+n.length)===n}})},"2cf4":function(e,t,r){var n,a,i,o=r("da84"),s=r("d039"),l=r("c6b6"),c=r("0366"),u=r("1be4"),d=r("cc12"),h=r("1cdc"),f=o.location,p=o.setImmediate,g=o.clearImmediate,v=o.process,m=o.MessageChannel,b=o.Dispatch,y=0,w={},_="onreadystatechange",k=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){k(e)}},S=function(e){k(e.data)},A=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(p=function(e){var t=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(y),y},g=function(e){delete w[e]},"process"==l(v)?n=function(e){v.nextTick(x(e))}:b&&b.now?n=function(e){b.now(x(e))}:m&&!h?(a=new m,i=a.port2,a.port1.onmessage=S,n=c(i.postMessage,i,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(A)||"file:"===f.protocol?n=_ in d("script")?function(e){u.appendChild(d("script"))[_]=function(){u.removeChild(this),k(e)}}:function(e){setTimeout(x(e),0)}:(n=A,o.addEventListener("message",S,!1))),e.exports={set:p,clear:g}},"2d00":function(e,t,r){var n,a,i=r("da84"),o=r("342f"),s=i.process,l=s&&s.versions,c=l&&l.v8;c?(n=c.split("."),a=n[0]+n[1]):o&&(n=o.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(a=n[1]))),e.exports=a&&+a},"2d0d":function(e,t,r){r("4ae1");var n=r("36c6"),a=r("6f8f"),i=r("6b58");function o(e){var t=a();return function(){var r,a=n(e);if(t){var o=n(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return i(this,r)}}e.exports=o},3:function(e,t){},"317c":function(e,t,r){"use strict";var n=r("a6d9"),a=r.n(n);a.a},3280:function(e,t,r){"use strict";var n=r("ebb5"),a=r("e58c"),i=n.aTypedArray,o=n.exportTypedArrayMethod;o("lastIndexOf",(function(e){return a.apply(i(this),arguments)}))},3410:function(e,t,r){var n=r("23e7"),a=r("d039"),i=r("7b0b"),o=r("e163"),s=r("e177"),l=a((function(){o(1)}));n({target:"Object",stat:!0,forced:l,sham:!s},{getPrototypeOf:function(e){return o(i(e))}})},"342f":function(e,t,r){var n=r("d066");e.exports=n("navigator","userAgent")||""},"345d":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("cc71");var n=r("6374"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFOutlineViewer=void 0;var o=r("a3cd"),s="–",l=function(){function e(t){var r=t.container,n=t.linkService,i=t.eventBus;a(this,e),this.container=r,this.linkService=n,this.eventBus=i,this.reset(),i._on("toggleoutlinetree",this.toggleOutlineTree.bind(this))}return i(e,[{key:"reset",value:function(){this.outline=null,this.lastToggleIsShow=!0,this.container.textContent="",this.container.classList.remove("outlineWithDeepNesting")}},{key:"_dispatchEvent",value:function(e){this.eventBus.dispatch("outlineloaded",{source:this,outlineCount:e})}},{key:"_bindLink",value:function(e,t){var r=t.url,n=t.newWindow,a=t.dest,i=this.linkService;r?(0,o.addLinkAttributes)(e,{url:r,target:n?o.LinkTarget.BLANK:i.externalLinkTarget,rel:i.externalLinkRel,enabled:i.externalLinkEnabled}):(e.href=i.getDestinationHash(a),e.onclick=function(){return a&&i.navigateTo(a),!1})}},{key:"_setStyles",value:function(e,t){var r=t.bold,n=t.italic;r&&(e.style.fontWeight="bold"),n&&(e.style.fontStyle="italic")}},{key:"_addToggleButton",value:function(e,t){var r=this,n=t.count,a=t.items,i=document.createElement("div");i.className="outlineItemToggler",n<0&&Math.abs(n)===a.length&&i.classList.add("outlineItemsHidden"),i.onclick=function(t){if(t.stopPropagation(),i.classList.toggle("outlineItemsHidden"),t.shiftKey){var n=!i.classList.contains("outlineItemsHidden");r._toggleOutlineItem(e,n)}},e.insertBefore(i,e.firstChild)}},{key:"_toggleOutlineItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.lastToggleIsShow=t;var r,a=n(e.querySelectorAll(".outlineItemToggler"));try{for(a.s();!(r=a.n()).done;){var i=r.value;i.classList.toggle("outlineItemsHidden",!t)}}catch(o){a.e(o)}finally{a.f()}}},{key:"toggleOutlineTree",value:function(){this.outline&&this._toggleOutlineItem(this.container,!this.lastToggleIsShow)}},{key:"render",value:function(e){var t=e.outline,r=0;if(this.outline&&this.reset(),this.outline=t||null,t){var a=document.createDocumentFragment(),i=[{parent:a,items:this.outline}],l=!1;while(i.length>0){var c,u=i.shift(),d=n(u.items);try{for(d.s();!(c=d.n()).done;){var h=c.value,f=document.createElement("div");f.className="outlineItem";var p=document.createElement("a");if(this._bindLink(p,h),this._setStyles(p,h),p.textContent=(0,o.removeNullCharacters)(h.title)||s,f.appendChild(p),h.items.length>0){l=!0,this._addToggleButton(f,h);var g=document.createElement("div");g.className="outlineItems",f.appendChild(g),i.push({parent:g,items:h.items})}u.parent.appendChild(f),r++}}catch(v){d.e(v)}finally{d.f()}}l&&(this.container.classList.add("outlineWithDeepNesting"),this.lastToggleIsShow=0===a.querySelectorAll(".outlineItemsHidden").length),this.container.appendChild(a),this._dispatchEvent(r)}else this._dispatchEvent(r)}}]),e}();t.PDFOutlineViewer=l},"35a1":function(e,t,r){var n=r("f5df"),a=r("3f8c"),i=r("b622"),o=i("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||a[n(e)]}},3642:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/var n=r("970b"),a=r("5bc3"),i=r("8962"),o=r("36c6"),s=r("ed6d"),l=r("2d0d");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var c=r("3b56"),u=r("a3cd"),d=function(e){s(r,e);var t=l(r);function r(e){var a;return n(this,r),a=t.call(this,e),a.eventBus._on("pagesinit",(function(e){a._ensurePageViewVisible()})),a}return a(r,[{key:"_resetView",value:function(){i(o(r.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var e=this._pages[this._currentPageNumber-1],t=this._pages[this._previousPageNumber-1],r=this.viewer.childNodes;switch(r.length){case 0:this.viewer.appendChild(e.div);break;case 1:if(r[0]!==t.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(e===t)break;this._shadowViewer.appendChild(t.div),this.viewer.appendChild(e.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(),i(o(r.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(e){var t=this,n=e.pageDiv,a=e.pageSpot,s=void 0===a?null:a,l=e.pageNumber,c=void 0===l?null:l;c&&this._setCurrentPageNumber(c);var u=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),i(o(r.prototype),"_scrollIntoView",this).call(this,{pageDiv:n,pageSpot:s,pageNumber:c}),this._updateScrollDown=function(){t.scroll.down=u,t._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(e){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_setDocumentViewerElement",get:function(){return(0,u.shadow)(this,"_setDocumentViewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,u.shadow)(this,"_isScrollModeHorizontal",!1)}}]),r}(c.BaseViewer);t.PDFSinglePageViewer=d},"36c6":function(e,t,r){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}r("3410"),e.exports=n},"37e8":function(e,t,r){var n=r("83ab"),a=r("9bf2"),i=r("825a"),o=r("df75");e.exports=n?Object.defineProperties:function(e,t){i(e);var r,n=o(t),s=n.length,l=0;while(s>l)a.f(e,r=n[l++],t[r]);return e}},"38cf":function(e,t,r){var n=r("23e7"),a=r("1148");n({target:"String",proto:!0},{repeat:a})},"3a7b":function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").findIndex,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("findIndex",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},"3b56":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("a623"),r("c975"),r("e260"),r("d81d"),r("45fc"),r("a434"),r("b0c0"),r("a9e3"),r("8ba4"),r("d3b7"),r("e6cf"),r("25f0"),r("6062"),r("3ca3"),r("10d1"),r("ddb0");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.BaseViewer=void 0;var i=r("0496"),o=r("ef24"),s=r("b3fd"),l=r("a3cd"),c=r("12b2"),u=r("8a38"),d=r("9e3b"),h=10;function f(e){var t=[];this.push=function(r){var n=t.indexOf(r);n>=0&&t.splice(n,1),t.push(r),t.length>e&&t.shift().destroy()},this.resize=function(r,n){if(e=r,n){for(var a=new Set,o=0,s=n.length;o<s;++o)a.add(n[o].id);(0,i.moveToEndOfArray)(t,(function(e){return a.has(e.id)}))}while(t.length>e)t.shift().destroy()}}function p(e,t){return t===e||Math.abs(t-e)<1e-15}var g=function(){function e(t){var r=this;if(n(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,this.eventBus=t.eventBus||(0,i.getGlobalEventBus)(),this.linkService=t.linkService||new u.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:i.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||i.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||i.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new o.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,i.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=i.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then((function(){r.eventBus.dispatch("baseviewerinit",{source:r})}))}return a(e,[{key:"getPageView",value:function(e){return this._pages[e]}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===e?(t&&this._resetCurrentPageView(),!0):0<e&&e<=this.pagesCount&&(this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels&&this._pageLabels[e-1]}),t&&this._resetCurrentPageView(),!0)}},{key:"setDocument",value:function(e){var t=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=e,e){var r=e.numPages,n=e.getPage(1);this._pagesCapability.promise.then((function(){t.eventBus.dispatch("pagesloaded",{source:t,pagesCount:r})})),this._onBeforeDraw=function(e){var r=t._pages[e.pageNumber-1];r&&t._buffer.push(r)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(e){e.cssTransform||t._onePageRenderedCapability.settled||(t._onePageRenderedCapability.resolve(),t.eventBus._off("pagerendered",t._onAfterDraw),t._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),n.then((function(n){t._firstPageCapability.resolve(n);for(var a=t.currentScale,o=n.getViewport({scale:a*i.CSS_UNITS}),s=t.textLayerMode!==i.TextLayerMode.DISABLE?t:null,l=1;l<=r;++l){var u=new c.PDFPageView({container:t._setDocumentViewerElement,eventBus:t.eventBus,id:l,scale:a,defaultViewport:o.clone(),renderingQueue:t.renderingQueue,textLayerFactory:s,textLayerMode:t.textLayerMode,annotationLayerFactory:t,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,renderer:t.renderer,enableWebGL:t.enableWebGL,useOnlyCssZoom:t.useOnlyCssZoom,maxCanvasPixels:t.maxCanvasPixels,l10n:t.l10n});t._pages.push(u)}var d=t._pages[0];d&&(d.setPdfPage(n),t.linkService.cachePageRef(1,n.ref)),t._spreadMode!==i.SpreadMode.NONE&&t._updateSpreadMode(),t._onePageRenderedCapability.promise.then((function(){if(t.findController&&t.findController.setDocument(e),e.loadingParams["disableAutoFetch"]||r>7500)t._pagesCapability.resolve();else{var n=r-1;if(n<=0)t._pagesCapability.resolve();else for(var a=function(r){e.getPage(r).then((function(e){var a=t._pages[r-1];a.pdfPage||a.setPdfPage(e),t.linkService.cachePageRef(r,e.ref),0===--n&&t._pagesCapability.resolve()}),(function(e){console.error("Unable to get page ".concat(r," to initialize viewer"),e),0===--n&&t._pagesCapability.resolve()}))},i=2;i<=r;++i)a(i)}})),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()})).catch((function(e){console.error("Unable to initialize viewer",e)}))}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var t=0,r=this._pages.length;t<r;t++){var n=this._pages[t],a=this._pageLabels&&this._pageLabels[t];n.setPageLabel(a)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=i.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new f(h),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,l.createPromiseCapability)(),this._onePageRenderedCapability=(0,l.createPromiseCapability)(),this._pagesCapability=(0,l.createPromiseCapability)(),this._scrollMode=i.ScrollMode.VERTICAL,this._spreadMode=i.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(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,r=e.pageSpot,n=void 0===r?null:r;e.pageNumber;(0,i.scrollIntoView)(t,n)}},{key:"_setScaleUpdatePages",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),p(this._currentScale,e))n&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(var a=0,i=this._pages.length;a<i;a++)this._pages[a].update(e);if(this._currentScale=e,!r){var o,s=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(s=this._location.pageNumber,o=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:s,destArray:o,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:n?t:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=parseFloat(e);if(r>0)this._setScaleUpdatePages(r,e,t,!1);else{var n=this._pages[this._currentPageNumber-1];if(!n)return;var a=this.isInPresentationMode||this.removePageBorders,o=a?0:i.SCROLLBAR_PADDING,s=a?0:i.VERTICAL_PADDING;if(!a&&this._isScrollModeHorizontal){var l=[s,o];o=l[0],s=l[1]}var c=(this.container.clientWidth-o)/n.width*n.scale,u=(this.container.clientHeight-s)/n.height*n.scale;switch(e){case"page-actual":r=1;break;case"page-width":r=c;break;case"page-height":r=u;break;case"page-fit":r=Math.min(c,u);break;case"auto":var d=(0,i.isPortraitOrientation)(n)?c:Math.min(u,c);r=Math.min(i.MAX_AUTO_SCALE,d);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(e,'" is an unknown zoom value.'))}this._setScaleUpdatePages(r,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var e=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:e.div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,r=e.destArray,n=void 0===r?null:r,a=e.allowNegativeOffset,o=void 0!==a&&a,s=e.ignoreDestinationZoom,l=void 0!==s&&s;if(this.pdfDocument){var c=Number.isInteger(t)&&this._pages[t-1];if(c)if(!this.isInPresentationMode&&n){var u,d,h=0,f=0,p=0,g=0,v=c.rotation%180!==0,m=(v?c.height:c.width)/c.scale/i.CSS_UNITS,b=(v?c.width:c.height)/c.scale/i.CSS_UNITS,y=0;switch(n[1].name){case"XYZ":h=n[2],f=n[3],y=n[4],h=null!==h?h:0,f=null!==f?f:b;break;case"Fit":case"FitB":y="page-fit";break;case"FitH":case"FitBH":f=n[2],y="page-width",null===f&&this._location&&(h=this._location.left,f=this._location.top);break;case"FitV":case"FitBV":h=n[2],p=m,g=b,y="page-height";break;case"FitR":h=n[2],f=n[3],p=n[4]-h,g=n[5]-f;var w=this.removePageBorders?0:i.SCROLLBAR_PADDING,_=this.removePageBorders?0:i.VERTICAL_PADDING;u=(this.container.clientWidth-w)/p/i.CSS_UNITS,d=(this.container.clientHeight-_)/g/i.CSS_UNITS,y=Math.min(Math.abs(u),Math.abs(d));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(n[1].name,'" is not a valid destination type.'))}if(l||(y&&y!==this._currentScale?this.currentScaleValue=y:this._currentScale===i.UNKNOWN_SCALE&&(this.currentScaleValue=i.DEFAULT_SCALE_VALUE)),"page-fit"!==y||n[4]){var k=[c.viewport.convertToViewportPoint(h,f),c.viewport.convertToViewportPoint(h+p,f+g)],x=Math.min(k[0][0],k[1][0]),S=Math.min(k[0][1],k[1][1]);o||(x=Math.max(x,0),S=Math.max(S,0)),this._scrollIntoView({pageDiv:c.div,pageSpot:{left:x,top:S},pageNumber:t})}else this._scrollIntoView({pageDiv:c.div,pageNumber:t})}else this._setCurrentPageNumber(t,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,r=this._currentScaleValue,n=parseFloat(r)===t?Math.round(1e4*t)/100:r,a=e.id,i="#page="+a;i+="&zoom="+n;var o=this._pages[a-1],s=this.container,l=o.getPagePoint(s.scrollLeft-e.x,s.scrollTop-e.y),c=Math.round(l[0]),u=Math.round(l[1]);i+=","+c+","+u,this._location={pageNumber:a,scale:n,top:u,left:c,rotation:this._pagesRotation,pdfOpenParams:i}}},{key:"_updateHelper",value:function(e){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,r=t.length;if(0!==r){var n=Math.max(h,2*r+1);this._buffer.resize(n,t),this.renderingQueue.renderHighestPriority(e),this._updateHelper(t),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var e=this._pages[this._currentPageNumber-1],t=e.div,r={id:e.id,x:t.offsetLeft+t.clientLeft,y:t.offsetTop+t.clientTop,view:e};return{first:r,last:r,views:[r]}}},{key:"_getVisiblePages",value:function(){return(0,i.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(e,'" is out of bounds.')),!1):this._getVisiblePages().views.some((function(t){return t.id===e})))}},{key:"cleanup",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].renderingState!==o.RenderingStates.FINISHED&&this._pages[e].reset()}},{key:"_cancelRendering",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(e){var t=this;if(e.pdfPage)return Promise.resolve(e.pdfPage);if(this._pagesRequests.has(e))return this._pagesRequests.get(e);var r=this.pdfDocument.getPage(e.id).then((function(r){return e.pdfPage||e.setPdfPage(r),t._pagesRequests.delete(e),r})).catch((function(r){console.error("Unable to get page for page view",r),t._pagesRequests.delete(e)}));return this._pagesRequests.set(e,r),r}},{key:"forceRendering",value:function(e){var t=this,r=e||this._getVisiblePages(),n=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,a=this.renderingQueue.getHighestPriority(r,this._pages,n);return!!a&&(this._ensurePdfPageLoaded(a).then((function(){t.renderingQueue.renderView(a)})),!0)}},{key:"createTextLayerBuilder",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;return new d.TextLayerBuilder({textLayerDiv:e,eventBus:a,pageIndex:t,viewport:r,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&n})}},{key:"createAnnotationLayerBuilder",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.NullL10n;return new s.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderInteractiveForms:n,linkService:this.linkService,downloadManager:this.downloadManager,l10n:a})}},{key:"getPagesOverview",value:function(){var e=this._pages.map((function(e){var t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}}));if(!this.enablePrintAutoRotate)return e;var t=(0,i.isPortraitOrientation)(e[0]);return e.map((function(e){return t===(0,i.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.rotation+90)%360}}))}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,r=this.viewer;r.classList.toggle("scrollHorizontal",t===i.ScrollMode.HORIZONTAL),r.classList.toggle("scrollWrapped",t===i.ScrollMode.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,r=this._pages;if(t.textContent="",this._spreadMode===i.SpreadMode.NONE)for(var n=0,a=r.length;n<a;++n)t.appendChild(r[n].div);else for(var o=this._spreadMode-1,s=null,l=0,c=r.length;l<c;++l)null===s?(s=document.createElement("div"),s.className="spread",t.appendChild(s)):l%2===o&&(s=s.cloneNode(!1),t.appendChild(s)),s.appendChild(r[l].div);e&&(this._setCurrentPageNumber(e,!0),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every((function(e){return e&&e.pdfPage}))}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(e,'" is not a valid page.')))}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(e){if(this.pdfDocument){var t=0|e;if(this._pageLabels){var r=this._pageLabels.indexOf(e);r>=0&&(t=r+1)}this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==i.UNKNOWN_SCALE?this._currentScale:i.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,i.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,r=0,n=this._pages.length;r<n;r++){var a=this._pages[r];a.update(a.scale,e)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),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:"_setDocumentViewerElement",get:function(){throw new Error("Not implemented: _setDocumentViewerElement")}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===i.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===i.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===i.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:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,r=this._pages.length;t<r;++t){var n=this._pages[t];if(n.width!==e.width||n.height!==e.height)return!1}return!0}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(e){if(this._scrollMode!==e){if(!(0,i.isValidScrollMode)(e))throw new Error("Invalid scroll mode: ".concat(e));this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(e){if(this._spreadMode!==e){if(!(0,i.isValidSpreadMode)(e))throw new Error("Invalid spread mode: ".concat(e));this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}}]),e}();t.BaseViewer=g},"3bbe":function(e,t,r){var n=r("861d");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c5d":function(e,t,r){"use strict";var n=r("ebb5"),a=r("50c4"),i=r("182d"),o=r("7b0b"),s=r("d039"),l=n.aTypedArray,c=n.exportTypedArrayMethod,u=s((function(){new Int8Array(1).set({})}));c("set",(function(e){l(this);var t=i(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=o(e),s=a(n.length),c=0;if(s+t>r)throw RangeError("Wrong length");while(c<s)this[t+c]=n[c++]}),u)},"3c96":function(e,t){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=r},"3ca3":function(e,t,r){"use strict";var n=r("6547").charAt,a=r("69f3"),i=r("7dd0"),o="String Iterator",s=a.set,l=a.getterFor(o);i(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=l(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})}))},"3db6":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/Object.defineProperty(t,"__esModule",{value:!0}),t.getCharacterType=p,t.CharacterType=void 0;var n={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function a(e){return e<11904}function i(e){return 0===(65408&e)}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return e>=48&&e<=57}function l(e){return 32===e||9===e||13===e||10===e}function c(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}function u(e){return e>=12448&&e<=12543}function d(e){return e>=12352&&e<=12447}function h(e){return e>=65376&&e<=65439}function f(e){return 3584===(65408&e)}function p(e){return a(e)?i(e)?l(e)?n.SPACE:o(e)||s(e)||95===e?n.ALPHA_LETTER:n.PUNCT:f(e)?n.THAI_LETTER:160===e?n.SPACE:n.ALPHA_LETTER:c(e)?n.HAN_LETTER:u(e)?n.KATAKANA_LETTER:d(e)?n.HIRAGANA_LETTER:h(e)?n.HALFWIDTH_KATAKANA_LETTER:n.ALPHA_LETTER}t.CharacterType=n},"3f8c":function(e,t){e.exports={}},"3f9c":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("4160"),r("e260"),r("fb6a"),r("d3b7"),r("e6cf"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b"),r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var o=r("dacc"),s=r("6634");function l(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function c(e){var t=new Headers;for(var r in e){var n=e[r];"undefined"!==typeof n&&t.append(r,n)}return t}var u=function(){function e(t){a(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return i(e,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader),this._fullRequestReader=new d(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new h(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFFetchStream=u;var d=function(){function e(t){var r=this;a(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var n=t.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=(0,o.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=c(this._stream.httpHeaders);var i=n.url;fetch(i,l(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,s.validateResponseStatus)(e.status))throw(0,s.createResponseStatusError)(e.status,i);r._reader=e.body.getReader(),r._headersCapability.resolve();var t=function(t){return e.headers.get(t)},n=(0,s.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),a=n.allowRangeRequests,l=n.suggestedLength;r._isRangeSupported=a,r._contentLength=l||r._contentLength,r._filename=(0,s.extractFilenameFromHeader)(t),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new o.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}return i(e,[{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,n=t.done,!n){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),a=new Uint8Array(r).buffer,e.abrupt("return",{value:a,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),h=function(){function e(t,r,n){var i=this;a(this,e),this._stream=t,this._reader=null,this._loaded=0;var u=t.source;this._withCredentials=u.withCredentials||!1,this._readCapability=(0,o.createPromiseCapability)(),this._isStreamingSupported=!u.disableStream,"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._headers=c(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(n-1));var d=u.url;fetch(d,l(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,s.validateResponseStatus)(e.status))throw(0,s.createResponseStatusError)(e.status,d);i._readCapability.resolve(),i._reader=e.body.getReader()})),this.onProgress=null}return i(e,[{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,n=t.done,!n){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),a=new Uint8Array(r).buffer,e.abrupt("return",{value:a,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}()},"3fcc":function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").map,i=r("4840"),o=n.aTypedArray,s=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("map",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(i(e,e.constructor)))(t)}))}))},4:function(e,t){},"408a":function(e,t,r){var n=r("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},4160:function(e,t,r){"use strict";var n=r("23e7"),a=r("17c2");n({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"428f":function(e,t,r){var n=r("da84");e.exports=n},4362:function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("df7c")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"448a":function(e,t,r){var n=r("2236"),a=r("11b0"),i=r("6613"),o=r("0676");function s(e){return n(e)||a(e)||i(e)||o()}e.exports=s},"44ad":function(e,t,r){var n=r("d039"),a=r("c6b6"),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,r){var n=r("b622"),a=r("7c73"),i=r("9bf2"),o=n("unscopables"),s=Array.prototype;void 0==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},"44de":function(e,t,r){var n=r("da84");e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},"44e7":function(e,t,r){var n=r("861d"),a=r("c6b6"),i=r("b622"),o=i("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==a(e))}},4519:function(e,t,r){e.exports=r.p+"3ce22e999d54bb9ca8150a59207f9d3e.cur"},"458c":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("4160"),r("e260"),r("fb6a"),r("d3b7"),r("ac1f"),r("5319"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b");var n=r("ed6d"),a=r("2d0d");r("96cf");var i=r("c973"),o=r("970b"),s=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var l=r("dacc"),c=r("6634"),u=r(6),d=r(7),h=r(8),f=r(9),p=/^file:\/\/\/[a-zA-Z]:\//;function g(e){var t=f.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?f.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}var v=function(){function e(t){o(this,e),this.source=t,this.url=g(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(e,[{key:"getFullReader",value:function(){return(0,l.assert)(!this._fullRequestReader),this._fullRequestReader=this.isFsUrl?new k(this):new w(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new x(this,e,t):new _(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFNodeStream=v;var m=function(){function e(t){o(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=(0,l.createPromiseCapability)(),this._headersCapability=(0,l.createPromiseCapability)()}return s(e,[{key:"read",value:function(){var e=i(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,l.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new l.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),b=function(){function e(t){o(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,l.createPromiseCapability)();var r=t.source;this._isStreamingSupported=!r.disableStream}return s(e,[{key:"read",value:function(){var e=i(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,l.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}();function y(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var w=function(e){n(r,e);var t=a(r);function r(e){var n;o(this,r),n=t.call(this,e);var a=function(t){if(404===t.statusCode){var r=new l.MissingPDFException('Missing PDF "'.concat(n._url,'".'));return n._storedError=r,void n._headersCapability.reject(r)}n._headersCapability.resolve(),n._setReadableStream(t);var a=function(e){return n._readableStream.headers[e.toLowerCase()]},i=(0,c.validateRangeRequestCapabilities)({getResponseHeader:a,isHttp:e.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),o=i.allowRangeRequests,s=i.suggestedLength;n._isRangeSupported=o,n._contentLength=s||n._contentLength,n._filename=(0,c.extractFilenameFromHeader)(a)};return n._request=null,"http:"===n._url.protocol?n._request=d.request(y(n._url,e.httpHeaders),a):n._request=h.request(y(n._url,e.httpHeaders),a),n._request.on("error",(function(e){n._storedError=e,n._headersCapability.reject(e)})),n._request.end(),n}return r}(m),_=function(e){n(r,e);var t=a(r);function r(e,n,a){var i;for(var s in o(this,r),i=t.call(this,e),i._httpHeaders={},e.httpHeaders){var c=e.httpHeaders[s];"undefined"!==typeof c&&(i._httpHeaders[s]=c)}i._httpHeaders["Range"]="bytes=".concat(n,"-").concat(a-1);var u=function(e){if(404!==e.statusCode)i._setReadableStream(e);else{var t=new l.MissingPDFException('Missing PDF "'.concat(i._url,'".'));i._storedError=t}};return i._request=null,"http:"===i._url.protocol?i._request=d.request(y(i._url,i._httpHeaders),u):i._request=h.request(y(i._url,i._httpHeaders),u),i._request.on("error",(function(e){i._storedError=e})),i._request.end(),i}return r}(b),k=function(e){n(r,e);var t=a(r);function r(e){var n;o(this,r),n=t.call(this,e);var a=decodeURIComponent(n._url.path);return p.test(n._url.href)&&(a=a.replace(/^\//,"")),u.lstat(a,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new l.MissingPDFException('Missing PDF "'.concat(a,'".'))),n._storedError=e,void n._headersCapability.reject(e);n._contentLength=t.size,n._setReadableStream(u.createReadStream(a)),n._headersCapability.resolve()})),n}return r}(m),x=function(e){n(r,e);var t=a(r);function r(e,n,a){var i;o(this,r),i=t.call(this,e);var s=decodeURIComponent(i._url.path);return p.test(i._url.href)&&(s=s.replace(/^\//,"")),i._setReadableStream(u.createReadStream(s,{start:n,end:a-1})),i}return r}(b)},"45fc":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").some,i=r("a640"),o=r("ae40"),s=i("some"),l=o("some");n({target:"Array",proto:!0,forced:!s||!l},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),i=r("50c4"),o=r("1d80"),s=r("8aa5"),l=r("14c3");n("match",1,(function(e,t,r){return[function(t){var r=o(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var o=a(e),c=String(this);if(!o.global)return l(o,c);var u=o.unicode;o.lastIndex=0;var d,h=[],f=0;while(null!==(d=l(o,c))){var p=String(d[0]);h[f]=p,""===p&&(o.lastIndex=s(c,i(o.lastIndex),u)),f++}return 0===f?null:h}]}))},4840:function(e,t,r){var n=r("825a"),a=r("1c0b"),i=r("b622"),o=i("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||void 0==(r=n(i)[o])?t:a(r)}},4930:function(e,t,r){var n=r("d039");e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"498a":function(e,t,r){"use strict";var n=r("23e7"),a=r("58a8").trim,i=r("c8d2");n({target:"String",proto:!0,forced:i("trim")},{trim:function(){return a(this)}})},"499e":function(e,t,r){"use strict";function n(e,t){for(var r=[],n={},a=0;a<t.length;a++){var i=t[a],o=i[0],s=i[1],l=i[2],c=i[3],u={id:e+":"+a,css:s,media:l,sourceMap:c};n[o]?n[o].parts.push(u):r.push(n[o]={id:o,parts:[u]})}return r}r.r(t),r.d(t,"default",(function(){return p}));var a="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!a)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 i={},o=a&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,r,a){c=r,d=a||{};var o=n(e,t);return g(o),function(t){for(var r=[],a=0;a<o.length;a++){var s=o[a],l=i[s.id];l.refs--,r.push(l)}t?(o=n(e,t),g(o)):o=[];for(a=0;a<r.length;a++){l=r[a];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}}function g(e){for(var t=0;t<e.length;t++){var r=e[t],n=i[r.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a](r.parts[a]);for(;a<r.parts.length;a++)n.parts.push(m(r.parts[a]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var o=[];for(a=0;a<r.parts.length;a++)o.push(m(r.parts[a]));i[r.id]={id:r.id,refs:1,parts:o}}}}function v(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function m(e){var t,r,n=document.querySelector("style["+h+'~="'+e.id+'"]');if(n){if(c)return u;n.parentNode.removeChild(n)}if(f){var a=l++;n=s||(s=v()),t=y.bind(null,n,a,!1),r=y.bind(null,n,a,!0)}else n=v(),t=w.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}var b=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function y(e,t,r,n){var a=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function w(e,t){var r=t.css,n=t.media,a=t.sourceMap;if(n&&e.setAttribute("media",n),d.ssrId&&e.setAttribute(h,t.id),a&&(r+="\n/*# sourceURL="+a.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}},"4a4b":function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},"4a9b":function(e,t,r){var n=r("74e8");n("Float64",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},"4ae1":function(e,t,r){var n=r("23e7"),a=r("d066"),i=r("1c0b"),o=r("825a"),s=r("861d"),l=r("7c73"),c=r("0538"),u=r("d039"),d=a("Reflect","construct"),h=u((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),f=!u((function(){d((function(){}))})),p=h||f;n({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){i(e),o(t);var r=arguments.length<3?e:i(arguments[2]);if(f&&!h)return d(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(c.apply(e,n))}var a=r.prototype,u=l(s(a)?a:Object.prototype),p=Function.apply.call(e,u,t);return s(p)?p:u}})},"4d63":function(e,t,r){var n=r("83ab"),a=r("da84"),i=r("94ca"),o=r("7156"),s=r("9bf2").f,l=r("241c").f,c=r("44e7"),u=r("ad6d"),d=r("9f7f"),h=r("6eeb"),f=r("d039"),p=r("69f3").set,g=r("2626"),v=r("b622"),m=v("match"),b=a.RegExp,y=b.prototype,w=/a/g,_=/a/g,k=new b(w)!==w,x=d.UNSUPPORTED_Y,S=n&&i("RegExp",!k||x||f((function(){return _[m]=!1,b(w)!=w||b(_)==_||"/a/i"!=b(w,"i")})));if(S){var A=function(e,t){var r,n=this instanceof A,a=c(e),i=void 0===t;if(!n&&a&&e.constructor===A&&i)return e;k?a&&!i&&(e=e.source):e instanceof A&&(i&&(t=u.call(e)),e=e.source),x&&(r=!!t&&t.indexOf("y")>-1,r&&(t=t.replace(/y/g,"")));var s=o(k?new b(e,t):b(e,t),n?this:y,A);return x&&r&&p(s,{sticky:r}),s},C=function(e){e in A||s(A,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},P=l(b),T=0;while(P.length>T)C(P[T++]);y.constructor=A,A.prototype=y,h(a,"RegExp",A)}g("RegExp")},"4d64":function(e,t,r){var n=r("fc6a"),a=r("50c4"),i=r("23cb"),o=function(e){return function(t,r,o){var s,l=n(t),c=a(l.length),u=i(o,c);if(e&&r!=r){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4d90":function(e,t,r){"use strict";var n=r("23e7"),a=r("0ccb").start,i=r("9a0c");n({target:"String",proto:!0,forced:i},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4de4":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").filter,i=r("1dde"),o=r("ae40"),s=i("filter"),l=o("filter");n({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,r){"use strict";var n=r("0366"),a=r("7b0b"),i=r("9bdd"),o=r("e95a"),s=r("50c4"),l=r("8418"),c=r("35a1");e.exports=function(e){var t,r,u,d,h,f,p=a(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,y=c(p),w=0;if(b&&(m=n(m,v>2?arguments[2]:void 0,2)),void 0==y||g==Array&&o(y))for(t=s(p.length),r=new g(t);t>w;w++)f=b?m(p[w],w):p[w],l(r,w,f);else for(d=y.call(p),h=d.next,r=new g;!(u=h.call(d)).done;w++)f=b?i(d,m,[u.value,w],!0):u.value,l(r,w,f);return r.length=w,r}},"4ec9":function(e,t,r){"use strict";var n=r("6d61"),a=r("6566");e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},5:function(e,t){},"50ba":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAAAc0lEQVR4AWOgM3gx4cUZAnACwwupF8fwKQHKSoPMSserKA1iIduLTbiUAGXYYO6yw6nIlrDzJ6D6URbT+UARKfSgyMDmZHRF7AjnI5yMqcwBRZEN4dDvwx1FciDnYzoZu/NT8Uc3x4vNLzZiOBnT+ZhOBgAIx/kNQRV40AAAAABJRU5ErkJggg=="},"50c4":function(e,t,r){var n=r("a691"),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},5135:function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},"52f8":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},5319:function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),i=r("7b0b"),o=r("50c4"),s=r("a691"),l=r("1d80"),c=r("8aa5"),u=r("14c3"),d=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,v=function(e){return void 0===e?e:String(e)};n("replace",2,(function(e,t,r,n){var m=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=n.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(r,n){var a=l(this),i=void 0==r?void 0:r[e];return void 0!==i?i.call(r,a,n):t.call(String(a),r,n)},function(e,n){if(!m&&b||"string"===typeof n&&-1===n.indexOf(y)){var i=r(t,e,this,n);if(i.done)return i.value}var l=a(e),f=String(this),p="function"===typeof n;p||(n=String(n));var g=l.global;if(g){var _=l.unicode;l.lastIndex=0}var k=[];while(1){var x=u(l,f);if(null===x)break;if(k.push(x),!g)break;var S=String(x[0]);""===S&&(l.lastIndex=c(f,o(l.lastIndex),_))}for(var A="",C=0,P=0;P<k.length;P++){x=k[P];for(var T=String(x[0]),E=d(h(s(x.index),f.length),0),R=[],I=1;I<x.length;I++)R.push(v(x[I]));var O=x.groups;if(p){var L=[T].concat(R,E,f);void 0!==O&&L.push(O);var F=String(n.apply(void 0,L))}else F=w(T,f,E,R,O,n);E>=C&&(A+=f.slice(C,E)+F,C=E+T.length)}return A+f.slice(C)}];function w(e,r,n,a,o,s){var l=n+e.length,c=a.length,u=g;return void 0!==o&&(o=i(o),u=p),t.call(s,u,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(l);case"<":s=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var d=f(u/10);return 0===d?t:d<=c?void 0===a[d-1]?i.charAt(1):a[d-1]+i.charAt(1):t}s=a[u-1]}return void 0===s?"":s}))}}))},5377:function(e,t,r){var n=r("83ab"),a=r("9bf2"),i=r("ad6d"),o=r("9f7f").UNSUPPORTED_Y;n&&("g"!=/./g.flags||o)&&a.f(RegExp.prototype,"flags",{configurable:!0,get:i})},5692:function(e,t,r){var n=r("c430"),a=r("c6cd");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,r){var n=r("d066"),a=r("241c"),i=r("7418"),o=r("825a");e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,r){var n=r("1d80"),a=r("5899"),i="["+a+"]",o=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),l=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(o,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},"5a34":function(e,t,r){var n=r("44e7");e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a43":function(e,t){function r(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.exports=r},"5bc3":function(e,t){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,n){return t&&r(e.prototype,t),n&&r(e,n),e}e.exports=n},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,r){var n=r("74e8");n("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},"5d41":function(e,t,r){var n=r("23e7"),a=r("861d"),i=r("825a"),o=r("5135"),s=r("06cf"),l=r("e163");function c(e,t){var r,n,u=arguments.length<3?e:arguments[2];return i(e)===u?e[t]:(r=s.f(e,t))?o(r,"value")?r.value:void 0===r.get?void 0:r.get.call(u):a(n=l(e))?c(n,t,u):void 0}n({target:"Reflect",stat:!0},{get:c})},"5e89":function(e,t,r){var n=r("861d"),a=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&a(e)===e}},"5f96":function(e,t,r){"use strict";var n=r("ebb5"),a=n.aTypedArray,i=n.exportTypedArrayMethod,o=[].join;i("join",(function(e){return o.apply(a(this),arguments)}))},"5fb2":function(e,t,r){"use strict";var n=2147483647,a=36,i=1,o=26,s=38,l=700,c=72,u=128,d="-",h=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",g=a-i,v=Math.floor,m=String.fromCharCode,b=function(e){var t=[],r=0,n=e.length;while(r<n){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),r--)}else t.push(a)}return t},y=function(e){return e+22+75*(e<26)},w=function(e,t,r){var n=0;for(e=r?v(e/l):e>>1,e+=v(e/t);e>g*o>>1;n+=a)e=v(e/g);return v(n+(g+1)*e/(e+s))},_=function(e){var t=[];e=b(e);var r,s,l=e.length,h=u,f=0,g=c;for(r=0;r<e.length;r++)s=e[r],s<128&&t.push(m(s));var _=t.length,k=_;_&&t.push(d);while(k<l){var x=n;for(r=0;r<e.length;r++)s=e[r],s>=h&&s<x&&(x=s);var S=k+1;if(x-h>v((n-f)/S))throw RangeError(p);for(f+=(x-h)*S,h=x,r=0;r<e.length;r++){if(s=e[r],s<h&&++f>n)throw RangeError(p);if(s==h){for(var A=f,C=a;;C+=a){var P=C<=g?i:C>=g+o?o:C-g;if(A<P)break;var T=A-P,E=a-P;t.push(m(y(P+T%E))),A=v(T/E)}t.push(m(y(A))),g=w(f,S,k==_),f=0,++k}}++f,++h}return t.join("")};e.exports=function(e){var t,r,n=[],a=e.toLowerCase().replace(f,".").split(".");for(t=0;t<a.length;t++)r=a[t],n.push(h.test(r)?"xn--"+_(r):r);return n.join(".")}},6:function(e,t){},6062:function(e,t,r){"use strict";var n=r("6d61"),a=r("6566");e.exports=n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},"60bd":function(e,t,r){"use strict";var n=r("da84"),a=r("ebb5"),i=r("e260"),o=r("b622"),s=o("iterator"),l=n.Uint8Array,c=i.values,u=i.keys,d=i.entries,h=a.aTypedArray,f=a.exportTypedArrayMethod,p=l&&l.prototype[s],g=!!p&&("values"==p.name||void 0==p.name),v=function(){return c.call(h(this))};f("entries",(function(){return d.call(h(this))})),f("keys",(function(){return u.call(h(this))})),f("values",v,!g),f(s,v,!g)},"60da":function(e,t,r){"use strict";var n=r("83ab"),a=r("d039"),i=r("df75"),o=r("7418"),s=r("d1e7"),l=r("7b0b"),c=r("44ad"),u=Object.assign,d=Object.defineProperty;e.exports=!u||a((function(){if(n&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||i(u({},t)).join("")!=a}))?function(e,t){var r=l(e),a=arguments.length,u=1,d=o.f,h=s.f;while(a>u){var f,p=c(arguments[u++]),g=d?i(p).concat(d(p)):i(p),v=g.length,m=0;while(v>m)f=g[m++],n&&!h.call(p,f)||(r[f]=p[f])}return r}:u},"61a8":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("c975"),r("e260"),r("a15b"),r("baa5"),r("fb6a"),r("b0c0"),r("d3b7"),r("e6cf"),r("4d63"),r("ac1f"),r("25f0"),r("3ca3"),r("843c"),r("2ca0"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("ddb0"),r("2b3d");var n=r("6374"),a=r("ed6d"),i=r("2d0d");r("96cf");var o=r("c973"),s=r("970b"),l=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=b,t.getFilenameFromUrl=y,t.isFetchSupported=k,t.isValidFetchUrl=x,t.loadScript=S,t.deprecated=A,t.releaseImageResources=C,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var c=r("dacc"),u="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=u;var d="http://www.w3.org/2000/svg",h=function(){function e(){s(this,e)}return l(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=document.createElement("canvas"),n=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:n}}},{key:"reset",value:function(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.DOMCanvasFactory=h;var f=function(){function e(t){var r=t.baseUrl,n=void 0===r?null:r,a=t.isCompressed,i=void 0!==a&&a;s(this,e),this.baseUrl=n,this.isCompressed=i}return l(e,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=o(regeneratorRuntime.mark((function e(t){var r,n,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){e.next=5;break}throw new Error("CMap name must be specified.");case 5:if(n=this.baseUrl+r+(this.isCompressed?".bcmap":""),a=this.isCompressed?c.CMapCompressionType.BINARY:c.CMapCompressionType.NONE,!k()||!x(n,document.baseURI)){e.next=9;break}return e.abrupt("return",fetch(n).then(function(){var e=o(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(!i.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,t.arrayBuffer();case 6:e.t1=e.sent,r=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=c.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,r=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:r,compressionType:a});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){throw new Error("Unable to load ".concat(i.isCompressed?"binary ":"")+"CMap at: ".concat(n))})));case 9:return e.abrupt("return",new Promise((function(e,t){var r=new XMLHttpRequest;r.open("GET",n,!0),i.isCompressed&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){var n;if(200===r.status||0===r.status)if(i.isCompressed&&r.response?n=new Uint8Array(r.response):!i.isCompressed&&r.responseText&&(n=(0,c.stringToBytes)(r.responseText)),n)return void e({cMapData:n,compressionType:a});t(new Error(r.statusText))}},r.send(null)})).catch((function(e){throw new Error("Unable to load ".concat(i.isCompressed?"binary ":"")+"CMap at: ".concat(n))})));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}())}]),e}();t.DOMCMapReaderFactory=f;var p=function(){function e(){s(this,e)}return l(e,[{key:"create",value:function(e,t){(0,c.assert)(e>0&&t>0,"Invalid SVG dimensions");var r=document.createElementNS(d,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}},{key:"createElement",value:function(e){return(0,c.assert)("string"===typeof e,"Invalid SVG element type"),document.createElementNS(d,e)}}]),e}();t.DOMSVGFactory=p;var g=function(){function e(t){var r=t.viewBox,n=t.scale,a=t.rotation,i=t.offsetX,o=void 0===i?0:i,l=t.offsetY,c=void 0===l?0:l,u=t.dontFlip,d=void 0!==u&&u;s(this,e),this.viewBox=r,this.scale=n,this.rotation=a,this.offsetX=o,this.offsetY=c;var h,f,p,g,v,m,b,y,w=(r[2]+r[0])/2,_=(r[3]+r[1])/2;switch(a%=360,a=a<0?a+360:a,a){case 180:h=-1,f=0,p=0,g=1;break;case 90:h=0,f=1,p=1,g=0;break;case 270:h=0,f=-1,p=-1,g=0;break;default:h=1,f=0,p=0,g=-1;break}d&&(p=-p,g=-g),0===h?(v=Math.abs(_-r[1])*n+o,m=Math.abs(w-r[0])*n+c,b=Math.abs(r[3]-r[1])*n,y=Math.abs(r[2]-r[0])*n):(v=Math.abs(w-r[0])*n+o,m=Math.abs(_-r[1])*n+c,b=Math.abs(r[2]-r[0])*n,y=Math.abs(r[3]-r[1])*n),this.transform=[h*n,f*n,p*n,g*n,v-h*n*w-p*n*_,m-f*n*w-g*n*_],this.width=b,this.height=y}return l(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,n=void 0===r?this.scale:r,a=t.rotation,i=void 0===a?this.rotation:a,o=t.offsetX,s=void 0===o?this.offsetX:o,l=t.offsetY,c=void 0===l?this.offsetY:l,u=t.dontFlip,d=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:n,rotation:i,offsetX:s,offsetY:c,dontFlip:d})}},{key:"convertToViewportPoint",value:function(e,t){return c.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=c.Util.applyTransform([e[0],e[1]],this.transform),r=c.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(e,t){return c.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=g;var v=function(e){a(r,e);var t=i(r);function r(e,n){var a;return s(this,r),a=t.call(this,e),a.type=n,a}return r}(c.BaseException);t.RenderingCancelledException=v;var m={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.url,n=t.target,a=t.rel,i=t.enabled,o=void 0===i||i;(0,c.assert)(r&&"string"===typeof r,'addLinkAttributes: A valid "url" parameter must provided.');var s=(0,c.removeNullCharacters)(r);o?e.href=e.title=s:(e.href="",e.title="Disabled: ".concat(s),e.onclick=function(){return!1});var l="";switch(n){case m.NONE:break;case m.SELF:l="_self";break;case m.BLANK:l="_blank";break;case m.PARENT:l="_parent";break;case m.TOP:l="_top";break}e.target=l,e.rel="string"===typeof a?a:u}function y(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)}t.LinkTarget=m;var w,_=function(){function e(){s(this,e),this.started=Object.create(null),this.times=[]}return l(e,[{key:"time",value:function(e){e in this.started&&(0,c.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,c.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],r=0,a=n(this.times);try{for(a.s();!(e=a.n()).done;){var i=e.value,o=i.name;o.length>r&&(r=o.length)}}catch(d){a.e(d)}finally{a.f()}var s,l=n(this.times);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c.end-c.start;t.push("".concat(c.name.padEnd(r)," ").concat(u,"ms\n"))}}catch(d){l.e(d)}finally{l.f()}return t.join("")}}]),e}();function k(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function x(e,t){try{var r=t?new URL(e,t):new URL(e),n=r.protocol;return"http:"===n||"https:"===n}catch(a){return!1}}function S(e){return new Promise((function(t,r){var n=document.createElement("script");n.src=e,n.onload=t,n.onerror=function(){r(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)}))}function A(e){console.log("Deprecated API usage: "+e)}function C(e){(0,c.assert)(e instanceof Image,"Invalid `img` parameter.");var t=e.src;"string"===typeof t&&t.startsWith("blob:")&&URL.revokeObjectURL&&URL.revokeObjectURL(t),e.removeAttribute("src")}t.StatTimer=_;var P=function(){function e(){s(this,e)}return l(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,c.isString)(e))return null;w||(w=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=w.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;var i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;var o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;var s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;var l=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===l?(i+=u,o+=d):"+"===l&&(i-=u,o-=d),new Date(Date.UTC(r,n,a,i,o,s))}}]),e}();t.PDFDateString=P},"621a":function(e,t,r){"use strict";var n=r("da84"),a=r("83ab"),i=r("a981"),o=r("9112"),s=r("e2cc"),l=r("d039"),c=r("19aa"),u=r("a691"),d=r("50c4"),h=r("0b25"),f=r("77a7"),p=r("e163"),g=r("d2bb"),v=r("241c").f,m=r("9bf2").f,b=r("81d5"),y=r("d44e"),w=r("69f3"),_=w.get,k=w.set,x="ArrayBuffer",S="DataView",A="prototype",C="Wrong length",P="Wrong index",T=n[x],E=T,R=n[S],I=R&&R[A],O=Object.prototype,L=n.RangeError,F=f.pack,M=f.unpack,D=function(e){return[255&e]},N=function(e){return[255&e,e>>8&255]},B=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},U=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},j=function(e){return F(e,23,4)},q=function(e){return F(e,52,8)},z=function(e,t){m(e[A],t,{get:function(){return _(this)[t]}})},V=function(e,t,r,n){var a=h(r),i=_(e);if(a+t>i.byteLength)throw L(P);var o=_(i.buffer).bytes,s=a+i.byteOffset,l=o.slice(s,s+t);return n?l:l.reverse()},W=function(e,t,r,n,a,i){var o=h(r),s=_(e);if(o+t>s.byteLength)throw L(P);for(var l=_(s.buffer).bytes,c=o+s.byteOffset,u=n(+a),d=0;d<t;d++)l[c+d]=u[i?d:t-d-1]};if(i){if(!l((function(){T(1)}))||!l((function(){new T(-1)}))||l((function(){return new T,new T(1.5),new T(NaN),T.name!=x}))){E=function(e){return c(this,E),new T(h(e))};for(var H,G=E[A]=T[A],Y=v(T),X=0;Y.length>X;)(H=Y[X++])in E||o(E,H,T[H]);G.constructor=E}g&&p(I)!==O&&g(I,O);var K=new R(new E(2)),Z=I.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||s(I,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},{unsafe:!0})}else E=function(e){c(this,E,x);var t=h(e);k(this,{bytes:b.call(new Array(t),0),byteLength:t}),a||(this.byteLength=t)},R=function(e,t,r){c(this,R,S),c(e,E,S);var n=_(e).byteLength,i=u(t);if(i<0||i>n)throw L("Wrong offset");if(r=void 0===r?n-i:d(r),i+r>n)throw L(C);k(this,{buffer:e,byteLength:r,byteOffset:i}),a||(this.buffer=e,this.byteLength=r,this.byteOffset=i)},a&&(z(E,"byteLength"),z(R,"buffer"),z(R,"byteLength"),z(R,"byteOffset")),s(R[A],{getInt8:function(e){return V(this,1,e)[0]<<24>>24},getUint8:function(e){return V(this,1,e)[0]},getInt16:function(e){var t=V(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=V(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return U(V(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return U(V(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return M(V(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return M(V(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){W(this,1,e,D,t)},setUint8:function(e,t){W(this,1,e,D,t)},setInt16:function(e,t){W(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){W(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){W(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){W(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){W(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){W(this,8,e,q,t,arguments.length>2?arguments[2]:void 0)}});y(E,x),y(R,S),e.exports={ArrayBuffer:E,DataView:R}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6329:function(e,t,r){},6374:function(e,t,r){r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");var n=r("6613");function a(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},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,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r["return"]||r["return"]()}finally{if(l)throw o}}}}e.exports=a},"649e":function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").some,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("some",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},6547:function(e,t,r){var n=r("a691"),a=r("1d80"),i=function(e){return function(t,r){var i,o,s=String(a(t)),l=n(r),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l),i<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):i:e?s.slice(l,l+2):o-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},6566:function(e,t,r){"use strict";var n=r("9bf2").f,a=r("7c73"),i=r("e2cc"),o=r("0366"),s=r("19aa"),l=r("2266"),c=r("7dd0"),u=r("2626"),d=r("83ab"),h=r("f183").fastKey,f=r("69f3"),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,r,c){var u=e((function(e,n){s(e,u,t),p(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=n&&l(n,e[c],e,r)})),f=g(t),v=function(e,t,r){var n,a,i=f(e),o=m(e,t);return o?o.value=r:(i.last=o={index:a=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=o),n&&(n.next=o),d?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},m=function(e,t){var r,n=f(e),a=h(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(u.prototype,{clear:function(){var e=this,t=f(e),r=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,r=f(t),n=m(t,e);if(n){var a=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=a),a&&(a.previous=i),r.first==n&&(r.first=a),r.last==n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){var t,r=f(this),n=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:r.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),i(u.prototype,r?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",a=g(t),i=g(n);c(e,t,(function(e,t){p(this,{type:n,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=i(this),t=e.kind,r=e.last;while(r&&r.removed)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(t)}}},"65f0":function(e,t,r){var n=r("861d"),a=r("e8b5"),i=r("b622"),o=i("species");e.exports=function(e,t){var r;return a(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!a(r.prototype)?n(r)&&(r=r[o],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},6613:function(e,t,r){r("a630"),r("fb6a"),r("b0c0"),r("d3b7"),r("25f0"),r("3ca3");var n=r("5a43");function a(e,t){if(e){if("string"===typeof e)return n(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)?n(e,t):void 0}}e.exports=a},6634:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("caad"),r("a9e3"),r("8ba4"),r("2532"),r("2ca0"),Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=s,t.extractFilenameFromHeader=o,t.validateRangeRequestCapabilities=i,t.validateResponseStatus=l;var n=r("dacc"),a=r("9fbe");function i(e){var t=e.getResponseHeader,r=e.isHttp,a=e.rangeChunkSize,i=e.disableRange;(0,n.assert)(a>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);if(!Number.isInteger(s))return o;if(o.suggestedLength=s,s<=2*a)return o;if(i||!r)return o;if("bytes"!==t("Accept-Ranges"))return o;var l=t("Content-Encoding")||"identity";return"identity"!==l||(o.allowRangeRequests=!0),o}function o(e){var t=e("Content-Disposition");if(t){var r=(0,a.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(n){}if(/\.pdf$/i.test(r))return r}return null}function s(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function l(e){return 200===e||206===e}},"69f3":function(e,t,r){var n,a,i,o=r("7f9a"),s=r("da84"),l=r("861d"),c=r("9112"),u=r("5135"),d=r("f772"),h=r("d012"),f=s.WeakMap,p=function(e){return i(e)?a(e):n(e,{})},g=function(e){return function(t){var r;if(!l(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(o){var v=new f,m=v.get,b=v.has,y=v.set;n=function(e,t){return y.call(v,e,t),t},a=function(e){return m.call(v,e)||{}},i=function(e){return b.call(v,e)}}else{var w=d("state");h[w]=!0,n=function(e,t){return c(e,w,t),t},a=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:n,get:a,has:i,enforce:p,getterFor:g}},"6aed":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("dca8");var n=Object.create(null),a="undefined"!==typeof navigator&&navigator.userAgent||"",i="undefined"!==typeof navigator&&navigator.platform||"",o="undefined"!==typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(a),l=/\b(iPad|iPhone|iPod)(?=;)/.test(a)||"MacIntel"===i&&o>1;(function(){(l||s)&&(n.maxCanvasPixels=5242880)})(),t.viewerCompatibilityParams=Object.freeze(n)},"6b58":function(e,t,r){var n=r("7037"),a=r("3c96");function i(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?a(e):t}e.exports=i},"6c57":function(e,t,r){var n=r("23e7"),a=r("da84");n({global:!0},{globalThis:a})},"6d61":function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),i=r("94ca"),o=r("6eeb"),s=r("f183"),l=r("2266"),c=r("19aa"),u=r("861d"),d=r("d039"),h=r("1c7e"),f=r("d44e"),p=r("7156");e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=g?"set":"add",b=a[e],y=b&&b.prototype,w=b,_={},k=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(i(e,"function"!=typeof b||!(v||y.forEach&&!d((function(){(new b).entries().next()})))))w=r.getConstructor(t,e,g,m),s.REQUIRED=!0;else if(i(e,!0)){var x=new w,S=x[m](v?{}:-0,1)!=x,A=d((function(){x.has(1)})),C=h((function(e){new b(e)})),P=!v&&d((function(){var e=new b,t=5;while(t--)e[m](t,t);return!e.has(-0)}));C||(w=t((function(t,r){c(t,w,e);var n=p(new b,t,w);return void 0!=r&&l(r,n[m],n,g),n})),w.prototype=y,y.constructor=w),(A||P)&&(k("delete"),k("has"),g&&k("get")),(P||S)&&k(m),v&&y.clear&&delete y.clear}return _[e]=w,n({global:!0,forced:w!=b},_),f(w,e),v||r.setStrong(w,e,g),w}},"6d7c":function(e,t,r){("undefined"!==typeof window?window:{}).pdfjsWorker=r("80e2")},"6d96":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAAAXElEQVR4AWMAgRd9L6QZCIEXZ14cfZH2gp2AIjDc8MIWryIYBFlMUBHMYryK8FiMkMZjMUIKj8UICWwWE1a08YUdxdb1v5BBczimJRQGJsISTICwhNKkArYEDwAAaN/49eXnGYUAAAAASUVORK5CYII="},"6ea4":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("b64b");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFAttachmentViewer=void 0;var i=r("a3cd"),o=function(){function e(t){var r=t.container,a=t.eventBus,i=t.downloadManager;n(this,e),this.container=r,this.eventBus=a,this.downloadManager=i,this.reset(),this.eventBus._on("fileattachmentannotation",this._appendAttachment.bind(this))}return a(e,[{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.attachments=null,this.container.textContent="",e||(this._renderedCapability=(0,i.createPromiseCapability)())}},{key:"_dispatchEvent",value:function(e){this._renderedCapability.resolve(),this.eventBus.dispatch("attachmentsloaded",{source:this,attachmentsCount:e})}},{key:"_bindPdfLink",value:function(e,t,r){if(this.downloadManager.disableCreateObjectURL)throw new Error('bindPdfLink: Unsupported "disableCreateObjectURL" value.');var n;e.onclick=function(){var e;return n||(n=(0,i.createObjectURL)(t,"application/pdf")),e="?file="+encodeURIComponent(n+"#"+r),window.open(e),!1}}},{key:"_bindLink",value:function(e,t,r){var n=this;e.onclick=function(){return n.downloadManager.downloadData(t,r,""),!1}}},{key:"render",value:function(e){var t=e.attachments,r=e.keepRenderedCapability,n=void 0!==r&&r,a=0;if(this.attachments&&this.reset(!0===n),this.attachments=t||null,t){var o=Object.keys(t).sort((function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}));a=o.length;for(var s=0;s<a;s++){var l=t[o[s]],c=(0,i.removeNullCharacters)((0,i.getFilenameFromUrl)(l.filename)),u=document.createElement("div");u.className="attachmentsItem";var d=document.createElement("button");d.textContent=c,/\.pdf$/i.test(c)&&!this.downloadManager.disableCreateObjectURL?this._bindPdfLink(d,l.content,c):this._bindLink(d,l.content,c),u.appendChild(d),this.container.appendChild(u)}this._dispatchEvent(a)}else this._dispatchEvent(a)}},{key:"_appendAttachment",value:function(e){var t=this,r=e.id,n=e.filename,a=e.content;this._renderedCapability.promise.then((function(){var e=t.attachments;if(e){for(var i in e)if(r===i)return}else e=Object.create(null);e[r]={filename:n,content:a},t.render({attachments:e,keepRenderedCapability:!0})}))}}]),e}();t.PDFAttachmentViewer=o},"6ee0":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("d3b7"),r("e6cf");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFCursorTools=t.CursorTool=void 0;var i=r("7ddb"),o={SELECT:0,HAND:1,ZOOM:2};t.CursorTool=o;var s=function(){function e(t){var r=this,a=t.container,s=t.eventBus,l=t.cursorToolOnLoad,c=void 0===l?o.SELECT:l;n(this,e),this.container=a,this.eventBus=s,this.active=o.SELECT,this.activeBeforePresentationMode=null,this.handTool=new i.GrabToPan({element:this.container}),this._addEventListeners(),Promise.resolve().then((function(){r.switchTool(c)}))}return a(e,[{key:"switchTool",value:function(e){var t=this;if(null===this.activeBeforePresentationMode&&e!==this.active){var r=function(){switch(t.active){case o.SELECT:break;case o.HAND:t.handTool.deactivate();break;case o.ZOOM:}};switch(e){case o.SELECT:r();break;case o.HAND:r(),this.handTool.activate();break;case o.ZOOM:default:return void console.error('switchTool: "'.concat(e,'" is an unsupported value.'))}this.active=e,this._dispatchEvent()}}},{key:"_dispatchEvent",value:function(){this.eventBus.dispatch("cursortoolchanged",{source:this,tool:this.active})}},{key:"_addEventListeners",value:function(){var e=this;this.eventBus._on("switchcursortool",(function(t){e.switchTool(t.tool)})),this.eventBus._on("presentationmodechanged",(function(t){var r;t.switchInProgress||(t.active?(r=e.active,e.switchTool(o.SELECT),e.activeBeforePresentationMode=r):(r=e.activeBeforePresentationMode,e.activeBeforePresentationMode=null,e.switchTool(r)))}))}},{key:"activeTool",get:function(){return this.active}}]),e}();t.PDFCursorTools=s},"6eeb":function(e,t,r){var n=r("da84"),a=r("9112"),i=r("5135"),o=r("ce4e"),s=r("8925"),l=r("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,r,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||a(r,"name",t),u(r).source=d.join("string"==typeof t?t:"")),e!==n?(l?!h&&e[t]&&(c=!0):delete e[t],c?e[t]=r:a(e,t,r)):c?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"6f53":function(e,t,r){var n=r("83ab"),a=r("df75"),i=r("fc6a"),o=r("d1e7").f,s=function(e){return function(t){var r,s=i(t),l=a(s),c=l.length,u=0,d=[];while(c>u)r=l[u++],n&&!o.call(s,r)||d.push(e?[r,s[r]]:s[r]);return d}};e.exports={entries:s(!0),values:s(!1)}},"6f8f":function(e,t,r){function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}r("d3b7"),r("4ae1"),r("25f0"),e.exports=n},7:function(e,t){},7037:function(e,t,r){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),e.exports=n},7039:function(e,t,r){var n=r("23e7"),a=r("d039"),i=r("057f").f,o=a((function(){return!Object.getOwnPropertyNames(1)}));n({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:i})},7086:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordPrompt=void 0;var i=r("0496"),o=r("a3cd"),s=function(){function e(t,r){var a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.NullL10n;n(this,e),this.overlayName=t.overlayName,this.container=t.container,this.label=t.label,this.input=t.input,this.submitButton=t.submitButton,this.cancelButton=t.cancelButton,this.overlayManager=r,this.l10n=o,this.updateCallback=null,this.reason=null,this.submitButton.addEventListener("click",this.verify.bind(this)),this.cancelButton.addEventListener("click",this.close.bind(this)),this.input.addEventListener("keydown",(function(e){13===e.keyCode&&a.verify()})),this.overlayManager.register(this.overlayName,this.container,this.close.bind(this),!0)}return a(e,[{key:"open",value:function(){var e=this;this.overlayManager.open(this.overlayName).then((function(){var t;e.input.focus(),t=e.reason===o.PasswordResponses.INCORRECT_PASSWORD?e.l10n.get("password_invalid",null,"Invalid password. Please try again."):e.l10n.get("password_label",null,"Enter the password to open this PDF file."),t.then((function(t){e.label.textContent=t}))}))}},{key:"close",value:function(){var e=this;this.overlayManager.close(this.overlayName).then((function(){e.input.value=""}))}},{key:"verify",value:function(){var e=this.input.value;e&&e.length>0&&(this.close(),this.updateCallback(e))}},{key:"setUpdateCallback",value:function(e,t){this.updateCallback=e,this.reason=t}}]),e}();t.PasswordPrompt=s},7122:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("d3b7"),r("e6cf");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSidebar=t.SidebarView=void 0;var i=r("0496"),o=r("ef24"),s="pdfSidebarNotification",l={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};t.SidebarView=l;var c=function(){function e(t){var r=t.elements,a=t.pdfViewer,o=t.pdfThumbnailViewer,s=t.eventBus,c=t.l10n,u=void 0===c?i.NullL10n:c,d=t.disableNotification,h=void 0!==d&&d;n(this,e),this.isOpen=!1,this.active=l.THUMBS,this.isInitialViewSet=!1,this.onToggled=null,this.pdfViewer=a,this.pdfThumbnailViewer=o,this.outerContainer=r.outerContainer,this.viewerContainer=r.viewerContainer,this.toggleButton=r.toggleButton,this.thumbnailButton=r.thumbnailButton,this.outlineButton=r.outlineButton,this.attachmentsButton=r.attachmentsButton,this.thumbnailView=r.thumbnailView,this.outlineView=r.outlineView,this.attachmentsView=r.attachmentsView,this.eventBus=s,this.l10n=u,this._disableNotification=h,this._addEventListeners()}return a(e,[{key:"reset",value:function(){this.isInitialViewSet=!1,this._hideUINotification(null),this.switchView(l.THUMBS),this.outlineButton.disabled=!1,this.attachmentsButton.disabled=!1}},{key:"setInitialView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.NONE;this.isInitialViewSet||(this.isInitialViewSet=!0,e!==l.NONE&&e!==l.UNKNOWN&&this._switchView(e,!0)||this._dispatchEvent())}},{key:"switchView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._switchView(e,t)}},{key:"_switchView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e!==this.active,n=!1;switch(e){case l.NONE:return!!this.isOpen&&(this.close(),!0);case l.THUMBS:this.isOpen&&r&&(n=!0);break;case l.OUTLINE:if(this.outlineButton.disabled)return!1;break;case l.ATTACHMENTS:if(this.attachmentsButton.disabled)return!1;break;default:return console.error('PDFSidebar._switchView: "'.concat(e,'" is not a valid view.')),!1}return this.active=e,this.thumbnailButton.classList.toggle("toggled",e===l.THUMBS),this.outlineButton.classList.toggle("toggled",e===l.OUTLINE),this.attachmentsButton.classList.toggle("toggled",e===l.ATTACHMENTS),this.thumbnailView.classList.toggle("hidden",e!==l.THUMBS),this.outlineView.classList.toggle("hidden",e!==l.OUTLINE),this.attachmentsView.classList.toggle("hidden",e!==l.ATTACHMENTS),t&&!this.isOpen?(this.open(),!0):(n&&(this._updateThumbnailViewer(),this._forceRendering()),r&&this._dispatchEvent(),this._hideUINotification(this.active),r)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this.toggleButton.classList.add("toggled"),this.outerContainer.classList.add("sidebarMoving","sidebarOpen"),this.active===l.THUMBS&&this._updateThumbnailViewer(),this._forceRendering(),this._dispatchEvent(),this._hideUINotification(this.active))}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.toggleButton.classList.remove("toggled"),this.outerContainer.classList.add("sidebarMoving"),this.outerContainer.classList.remove("sidebarOpen"),this._forceRendering(),this._dispatchEvent())}},{key:"toggle",value:function(){this.isOpen?this.close():this.open()}},{key:"_dispatchEvent",value:function(){this.eventBus.dispatch("sidebarviewchanged",{source:this,view:this.visibleView})}},{key:"_forceRendering",value:function(){this.onToggled?this.onToggled():(this.pdfViewer.forceRendering(),this.pdfThumbnailViewer.forceRendering())}},{key:"_updateThumbnailViewer",value:function(){for(var e=this.pdfViewer,t=this.pdfThumbnailViewer,r=e.pagesCount,n=0;n<r;n++){var a=e.getPageView(n);if(a&&a.renderingState===o.RenderingStates.FINISHED){var i=t.getThumbnail(n);i.setImage(a)}}t.scrollThumbnailIntoView(e.currentPageNumber)}},{key:"_showUINotification",value:function(e){var t=this;if(!this._disableNotification){if(this.l10n.get("toggle_sidebar_notification.title",null,"Toggle Sidebar (document contains outline/attachments)").then((function(e){t.toggleButton.title=e})),this.isOpen){if(e===this.active)return}else this.toggleButton.classList.add(s);switch(e){case l.OUTLINE:this.outlineButton.classList.add(s);break;case l.ATTACHMENTS:this.attachmentsButton.classList.add(s);break}}}},{key:"_hideUINotification",value:function(e){var t=this;if(!this._disableNotification){var r=function(e){switch(e){case l.OUTLINE:t.outlineButton.classList.remove(s);break;case l.ATTACHMENTS:t.attachmentsButton.classList.remove(s);break}};if(this.isOpen||null===e)if(this.toggleButton.classList.remove(s),null===e){for(e in l)r(l[e]);this.l10n.get("toggle_sidebar.title",null,"Toggle Sidebar").then((function(e){t.toggleButton.title=e}))}else r(e)}}},{key:"_addEventListeners",value:function(){var e=this;this.viewerContainer.addEventListener("transitionend",(function(t){t.target===e.viewerContainer&&e.outerContainer.classList.remove("sidebarMoving")})),this.toggleButton.addEventListener("click",(function(){e.toggle()})),this.thumbnailButton.addEventListener("click",(function(){e.switchView(l.THUMBS)})),this.outlineButton.addEventListener("click",(function(){e.switchView(l.OUTLINE)})),this.outlineButton.addEventListener("dblclick",(function(){e.eventBus.dispatch("toggleoutlinetree",{source:e})})),this.attachmentsButton.addEventListener("click",(function(){e.switchView(l.ATTACHMENTS)})),this.eventBus._on("outlineloaded",(function(t){var r=t.outlineCount;e.outlineButton.disabled=!r,r?e._showUINotification(l.OUTLINE):e.active===l.OUTLINE&&e.switchView(l.THUMBS)})),this.eventBus._on("attachmentsloaded",(function(t){if(t.attachmentsCount)return e.attachmentsButton.disabled=!1,void e._showUINotification(l.ATTACHMENTS);Promise.resolve().then((function(){e.attachmentsView.hasChildNodes()||(e.attachmentsButton.disabled=!0,e.active===l.ATTACHMENTS&&e.switchView(l.THUMBS))}))})),this.eventBus._on("presentationmodechanged",(function(t){t.active||t.switchInProgress||!e.isThumbnailViewVisible||e._updateThumbnailViewer()}))}},{key:"visibleView",get:function(){return this.isOpen?this.active:l.NONE}},{key:"isThumbnailViewVisible",get:function(){return this.isOpen&&this.active===l.THUMBS}},{key:"isOutlineViewVisible",get:function(){return this.isOpen&&this.active===l.OUTLINE}},{key:"isAttachmentsViewVisible",get:function(){return this.isOpen&&this.active===l.ATTACHMENTS}}]),e}();t.PDFSidebar=c},7156:function(e,t,r){var n=r("861d"),a=r("d2bb");e.exports=function(e,t,r){var i,o;return a&&"function"==typeof(i=t.constructor)&&i!==r&&n(o=i.prototype)&&o!==r.prototype&&a(e,o),e}},"72f7":function(e,t,r){"use strict";var n=r("ebb5").exportTypedArrayMethod,a=r("d039"),i=r("da84"),o=i.Uint8Array,s=o&&o.prototype||{},l=[].toString,c=[].join;a((function(){l.call({})}))&&(l=function(){return c.call(this)});var u=s.toString!=l;n("toString",l,u)},"735e":function(e,t,r){"use strict";var n=r("ebb5"),a=r("81d5"),i=n.aTypedArray,o=n.exportTypedArrayMethod;o("fill",(function(e){return a.apply(i(this),arguments)}))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,r){var n=r("428f"),a=r("5135"),i=r("e538"),o=r("9bf2").f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},"74e8":function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),i=r("83ab"),o=r("8aa7"),s=r("ebb5"),l=r("621a"),c=r("19aa"),u=r("5c6c"),d=r("9112"),h=r("50c4"),f=r("0b25"),p=r("182d"),g=r("c04e"),v=r("5135"),m=r("f5df"),b=r("861d"),y=r("7c73"),w=r("d2bb"),_=r("241c").f,k=r("a078"),x=r("b727").forEach,S=r("2626"),A=r("9bf2"),C=r("06cf"),P=r("69f3"),T=r("7156"),E=P.get,R=P.set,I=A.f,O=C.f,L=Math.round,F=a.RangeError,M=l.ArrayBuffer,D=l.DataView,N=s.NATIVE_ARRAY_BUFFER_VIEWS,B=s.TYPED_ARRAY_TAG,U=s.TypedArray,j=s.TypedArrayPrototype,q=s.aTypedArrayConstructor,z=s.isTypedArray,V="BYTES_PER_ELEMENT",W="Wrong length",H=function(e,t){var r=0,n=t.length,a=new(q(e))(n);while(n>r)a[r]=t[r++];return a},G=function(e,t){I(e,t,{get:function(){return E(this)[t]}})},Y=function(e){var t;return e instanceof M||"ArrayBuffer"==(t=m(e))||"SharedArrayBuffer"==t},X=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},K=function(e,t){return X(e,t=g(t,!0))?u(2,e[t]):O(e,t)},Z=function(e,t,r){return!(X(e,t=g(t,!0))&&b(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?I(e,t,r):(e[t]=r.value,e)};i?(N||(C.f=K,A.f=Z,G(j,"buffer"),G(j,"byteOffset"),G(j,"byteLength"),G(j,"length")),n({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:K,defineProperty:Z}),e.exports=function(e,t,r){var i=e.match(/\d+$/)[0]/8,s=e+(r?"Clamped":"")+"Array",l="get"+e,u="set"+e,g=a[s],v=g,m=v&&v.prototype,A={},C=function(e,t){var r=E(e);return r.view[l](t*i+r.byteOffset,!0)},P=function(e,t,n){var a=E(e);r&&(n=(n=L(n))<0?0:n>255?255:255&n),a.view[u](t*i+a.byteOffset,n,!0)},O=function(e,t){I(e,t,{get:function(){return C(this,t)},set:function(e){return P(this,t,e)},enumerable:!0})};N?o&&(v=t((function(e,t,r,n){return c(e,v,s),T(function(){return b(t)?Y(t)?void 0!==n?new g(t,p(r,i),n):void 0!==r?new g(t,p(r,i)):new g(t):z(t)?H(v,t):k.call(v,t):new g(f(t))}(),e,v)})),w&&w(v,U),x(_(g),(function(e){e in v||d(v,e,g[e])})),v.prototype=m):(v=t((function(e,t,r,n){c(e,v,s);var a,o,l,u=0,d=0;if(b(t)){if(!Y(t))return z(t)?H(v,t):k.call(v,t);a=t,d=p(r,i);var g=t.byteLength;if(void 0===n){if(g%i)throw F(W);if(o=g-d,o<0)throw F(W)}else if(o=h(n)*i,o+d>g)throw F(W);l=o/i}else l=f(t),o=l*i,a=new M(o);R(e,{buffer:a,byteOffset:d,byteLength:o,length:l,view:new D(a)});while(u<l)O(e,u++)})),w&&w(v,U),m=v.prototype=y(j)),m.constructor!==v&&d(m,"constructor",v),B&&d(m,B,s),A[s]=v,n({global:!0,forced:v!=g,sham:!N},A),V in v||d(v,V,i),V in m||d(m,V,i),S(s)}):e.exports=function(){}},"74f1":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("c975"),r("a15b"),r("d81d"),r("b0c0"),r("ac1f"),r("5319");var n=r("278c"),a=r("8962"),i=r("36c6"),o=r("ed6d"),s=r("2d0d"),l=r("970b"),c=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;var u={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function d(e,t){var r=e[t];return" "===r||"\n"===r||"\r"===r||"\t"===r}function h(e){for(var t=0,r=e.length;t<r;t++)if(!d(e,t))return!1;return!0}var f=function(){function e(){l(this,e)}return c(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,(function(e,r){if("#x"===r.substring(0,2))return String.fromCharCode(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCharCode(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],n=t;function a(){while(n<e.length&&d(e,n))++n}while(n<e.length&&!d(e,n)&&">"!==e[n]&&"/"!==e[n])++n;var i=e.substring(t,n);a();while(n<e.length&&">"!==e[n]&&"/"!==e[n]&&"?"!==e[n]){a();var o="",s="";while(n<e.length&&!d(e,n)&&"="!==e[n])o+=e[n],++n;if(a(),"="!==e[n])return null;++n,a();var l=e[n];if('"'!==l&&"'"!==l)return null;var c=e.indexOf(l,++n);if(c<0)return null;s=e.substring(n,c),r.push({name:o,value:this._resolveEntities(s)}),n=c+1,a()}return{name:i,attributes:r,parsed:n-t}}},{key:"_parseProcessingInstruction",value:function(e,t){var r=t;function n(){while(r<e.length&&d(e,r))++r}while(r<e.length&&!d(e,r)&&">"!==e[r]&&"/"!==e[r])++r;var a=e.substring(t,r);n();var i=r;while(r<e.length&&("?"!==e[r]||">"!==e[r+1]))++r;var o=e.substring(i,r);return{name:a,value:o,parsed:r-t}}},{key:"parseXml",value:function(e){var t=0;while(t<e.length){var r=e[t],n=t;if("<"===r){++n;var a=e[n],i=void 0;switch(a){case"/":if(++n,i=e.indexOf(">",n),i<0)return void this.onError(u.UnterminatedElement);this.onEndElement(e.substring(n,i)),n=i+1;break;case"?":++n;var o=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+o.parsed,n+o.parsed+2))return void this.onError(u.UnterminatedXmlDeclaration);this.onPi(o.name,o.value),n+=o.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if(i=e.indexOf("--\x3e",n+3),i<0)return void this.onError(u.UnterminatedComment);this.onComment(e.substring(n+3,i)),n=i+3}else if("[CDATA["===e.substring(n+1,n+8)){if(i=e.indexOf("]]>",n+8),i<0)return void this.onError(u.UnterminatedCdat);this.onCdata(e.substring(n+8,i)),n=i+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(u.MalformedElement);var s=e.indexOf("[",n+8),l=!1;if(i=e.indexOf(">",n+8),i<0)return void this.onError(u.UnterminatedDoctypeDeclaration);if(s>0&&i>s){if(i=e.indexOf("]>",n+8),i<0)return void this.onError(u.UnterminatedDoctypeDeclaration);l=!0}var c=e.substring(n+8,i+(l?1:0));this.onDoctype(c),n=i+(l?2:1)}break;default:var d=this._parseContent(e,n);if(null===d)return void this.onError(u.MalformedElement);var h=!1;if("/>"===e.substring(n+d.parsed,n+d.parsed+2))h=!0;else if(">"!==e.substring(n+d.parsed,n+d.parsed+1))return void this.onError(u.UnterminatedElement);this.onBeginElement(d.name,d.attributes,h),n+=d.parsed+(h?2:1);break}}else{while(n<e.length&&"<"!==e[n])n++;var f=e.substring(t,n);this.onText(this._resolveEntities(f))}t=n}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}(),p=function(){function e(t,r){l(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return c(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}}]),e}(),g=function(e){o(r,e);var t=s(r);function r(){var e;return l(this,r),e=t.call(this),e._currentFragment=null,e._stack=null,e._errorCode=u.NoError,e}return c(r,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=u.NoError,this.parseXml(e),this._errorCode===u.NoError){var t=n(this._currentFragment,1),r=t[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return a(i(r.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!h(e)){var t=new p("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new p("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){var n=new p(e);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var r=0,n=t.childNodes.length;r<n;r++)t.childNodes[r].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),r}(f);t.SimpleXMLParser=g},"761b":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/var n=r("6374"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.SecondaryToolbar=void 0;var o=r("0496"),s=r("6ee0"),l=r("3642"),c=function(){function e(t,r,n){var i=this;a(this,e),this.toolbar=t.toolbar,this.toggleButton=t.toggleButton,this.toolbarButtonContainer=t.toolbarButtonContainer,this.buttons=[{element:t.presentationModeButton,eventName:"presentationmode",close:!0},{element:t.openFileButton,eventName:"openfile",close:!0},{element:t.printButton,eventName:"print",close:!0},{element:t.downloadButton,eventName:"download",close:!0},{element:t.viewBookmarkButton,eventName:null,close:!0},{element:t.firstPageButton,eventName:"firstpage",close:!0},{element:t.lastPageButton,eventName:"lastpage",close:!0},{element:t.pageRotateCwButton,eventName:"rotatecw",close:!1},{element:t.pageRotateCcwButton,eventName:"rotateccw",close:!1},{element:t.cursorSelectToolButton,eventName:"switchcursortool",eventDetails:{tool:s.CursorTool.SELECT},close:!0},{element:t.cursorHandToolButton,eventName:"switchcursortool",eventDetails:{tool:s.CursorTool.HAND},close:!0},{element:t.scrollVerticalButton,eventName:"switchscrollmode",eventDetails:{mode:o.ScrollMode.VERTICAL},close:!0},{element:t.scrollHorizontalButton,eventName:"switchscrollmode",eventDetails:{mode:o.ScrollMode.HORIZONTAL},close:!0},{element:t.scrollWrappedButton,eventName:"switchscrollmode",eventDetails:{mode:o.ScrollMode.WRAPPED},close:!0},{element:t.spreadNoneButton,eventName:"switchspreadmode",eventDetails:{mode:o.SpreadMode.NONE},close:!0},{element:t.spreadOddButton,eventName:"switchspreadmode",eventDetails:{mode:o.SpreadMode.ODD},close:!0},{element:t.spreadEvenButton,eventName:"switchspreadmode",eventDetails:{mode:o.SpreadMode.EVEN},close:!0},{element:t.documentPropertiesButton,eventName:"documentproperties",close:!0}],this.items={firstPage:t.firstPageButton,lastPage:t.lastPageButton,pageRotateCw:t.pageRotateCwButton,pageRotateCcw:t.pageRotateCcwButton},this.mainContainer=r,this.eventBus=n,this.opened=!1,this.containerHeight=null,this.previousContainerHeight=null,this.reset(),this._bindClickListeners(),this._bindCursorToolsListener(t),this._bindScrollModeListener(t),this._bindSpreadModeListener(t),this.eventBus._on("resize",this._setMaxHeight.bind(this)),this.eventBus._on("baseviewerinit",(function(e){e.source instanceof l.PDFSinglePageViewer?i.toolbarButtonContainer.classList.add("hiddenScrollModeButtons","hiddenSpreadModeButtons"):i.toolbarButtonContainer.classList.remove("hiddenScrollModeButtons","hiddenSpreadModeButtons")}))}return i(e,[{key:"setPageNumber",value:function(e){this.pageNumber=e,this._updateUIState()}},{key:"setPagesCount",value:function(e){this.pagesCount=e,this._updateUIState()}},{key:"reset",value:function(){this.pageNumber=0,this.pagesCount=0,this._updateUIState(),this.eventBus.dispatch("secondarytoolbarreset",{source:this})}},{key:"_updateUIState",value:function(){this.items.firstPage.disabled=this.pageNumber<=1,this.items.lastPage.disabled=this.pageNumber>=this.pagesCount,this.items.pageRotateCw.disabled=0===this.pagesCount,this.items.pageRotateCcw.disabled=0===this.pagesCount}},{key:"_bindClickListeners",value:function(){var e=this;this.toggleButton.addEventListener("click",this.toggle.bind(this));var t,r=n(this.buttons);try{var a=function(){var r=t.value,n=r.element,a=r.eventName,i=r.close,o=r.eventDetails;n.addEventListener("click",(function(t){if(null!==a){var r={source:e};for(var n in o)r[n]=o[n];e.eventBus.dispatch(a,r)}i&&e.close()}))};for(r.s();!(t=r.n()).done;)a()}catch(i){r.e(i)}finally{r.f()}}},{key:"_bindCursorToolsListener",value:function(e){this.eventBus._on("cursortoolchanged",(function(t){var r=t.tool;e.cursorSelectToolButton.classList.toggle("toggled",r===s.CursorTool.SELECT),e.cursorHandToolButton.classList.toggle("toggled",r===s.CursorTool.HAND)}))}},{key:"_bindScrollModeListener",value:function(e){var t=this;function r(t){var r=t.mode;e.scrollVerticalButton.classList.toggle("toggled",r===o.ScrollMode.VERTICAL),e.scrollHorizontalButton.classList.toggle("toggled",r===o.ScrollMode.HORIZONTAL),e.scrollWrappedButton.classList.toggle("toggled",r===o.ScrollMode.WRAPPED);var n=r===o.ScrollMode.HORIZONTAL;e.spreadNoneButton.disabled=n,e.spreadOddButton.disabled=n,e.spreadEvenButton.disabled=n}this.eventBus._on("scrollmodechanged",r),this.eventBus._on("secondarytoolbarreset",(function(e){e.source===t&&r({mode:o.ScrollMode.VERTICAL})}))}},{key:"_bindSpreadModeListener",value:function(e){var t=this;function r(t){var r=t.mode;e.spreadNoneButton.classList.toggle("toggled",r===o.SpreadMode.NONE),e.spreadOddButton.classList.toggle("toggled",r===o.SpreadMode.ODD),e.spreadEvenButton.classList.toggle("toggled",r===o.SpreadMode.EVEN)}this.eventBus._on("spreadmodechanged",r),this.eventBus._on("secondarytoolbarreset",(function(e){e.source===t&&r({mode:o.SpreadMode.NONE})}))}},{key:"open",value:function(){this.opened||(this.opened=!0,this._setMaxHeight(),this.toggleButton.classList.add("toggled"),this.toolbar.classList.remove("hidden"))}},{key:"close",value:function(){this.opened&&(this.opened=!1,this.toolbar.classList.add("hidden"),this.toggleButton.classList.remove("toggled"))}},{key:"toggle",value:function(){this.opened?this.close():this.open()}},{key:"_setMaxHeight",value:function(){this.opened&&(this.containerHeight=this.mainContainer.clientHeight,this.containerHeight!==this.previousContainerHeight&&(this.toolbarButtonContainer.style.maxHeight="".concat(this.containerHeight-o.SCROLLBAR_PADDING,"px"),this.previousContainerHeight=this.containerHeight))}},{key:"isOpen",get:function(){return this.opened}}]),e}();t.SecondaryToolbar=c},7637:function(e,t,r){e.exports=r.p+"ef50ac9e93aaebe3299791c79f277f8e.cur"},"77a7":function(e,t){var r=1/0,n=Math.abs,a=Math.pow,i=Math.floor,o=Math.log,s=Math.LN2,l=function(e,t,l){var c,u,d,h=new Array(l),f=8*l-t-1,p=(1<<f)-1,g=p>>1,v=23===t?a(2,-24)-a(2,-77):0,m=e<0||0===e&&1/e<0?1:0,b=0;for(e=n(e),e!=e||e===r?(u=e!=e?1:0,c=p):(c=i(o(e)/s),e*(d=a(2,-c))<1&&(c--,d*=2),e+=c+g>=1?v/d:v*a(2,1-g),e*d>=2&&(c++,d/=2),c+g>=p?(u=0,c=p):c+g>=1?(u=(e*d-1)*a(2,t),c+=g):(u=e*a(2,g-1)*a(2,t),c=0));t>=8;h[b++]=255&u,u/=256,t-=8);for(c=c<<t|u,f+=t;f>0;h[b++]=255&c,c/=256,f-=8);return h[--b]|=128*m,h},c=function(e,t){var n,i=e.length,o=8*i-t-1,s=(1<<o)-1,l=s>>1,c=o-7,u=i-1,d=e[u--],h=127&d;for(d>>=7;c>0;h=256*h+e[u],u--,c-=8);for(n=h&(1<<-c)-1,h>>=-c,c+=t;c>0;n=256*n+e[u],u--,c-=8);if(0===h)h=1-l;else{if(h===s)return n?NaN:d?-r:r;n+=a(2,t),h-=l}return(d?-1:1)*n*a(2,h-t)};e.exports={pack:l,unpack:c}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a15":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("cb29"),r("e260"),r("fb6a"),r("d3b7"),r("2ca0"),r("cc71"),r("143c"),r("5cc6"),r("fb2c"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7");var n=r("6374");Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var a=r("dacc"),i=r("1dda"),o=16,s=100,l=4096,c=.65,u=!0,d=1e3,h=16;function f(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],s=t*a-r*n,l=r*n-t*a;return[a/s,r/l,n/l,t/s,(a*i-n*o)/l,(r*i-t*o)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var r=this._transformMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){var r=this._transformMatrix;r[0]=r[0]*e,r[1]=r[1]*e,r[2]=r[2]*t,r[3]=r[3]*t,this._originalScale(e,t)},e.transform=function(t,r,n,a,i,o){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*r,s[1]*t+s[3]*r,s[0]*n+s[2]*a,s[1]*n+s[3]*a,s[0]*i+s[2]*o+s[4],s[1]*i+s[3]*o+s[5]],e._originalTransform(t,r,n,a,i,o)},e.setTransform=function(t,r,n,a,i,o){this._transformMatrix=[t,r,n,a,i,o],e._originalSetTransform(t,r,n,a,i,o)},e.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),n=this._transformMatrix;this._transformMatrix=[n[0]*t+n[2]*r,n[1]*t+n[3]*r,n[0]*-r+n[2]*t,n[1]*-r+n[3]*t,n[4],n[5]],this._originalRotate(e)})}var p=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,r,n){var a;return void 0!==this.cache[e]?(a=this.cache[e],this.canvasFactory.reset(a,t,r),a.context.setTransform(1,0,0,1,0,0)):(a=this.canvasFactory.create(t,r),this.cache[e]=a),n&&f(a.context),a},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}();function g(e){var t,r,n,a,i=1e3,o=e.width,s=e.height,l=o+1,c=new Uint8Array(l*(s+1)),u=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),d=o+7&-8,h=e.data,f=new Uint8Array(d*s),p=0;for(t=0,a=h.length;t<a;t++){var g=128,v=h[t];while(g>0)f[p++]=v&g?0:255,g>>=1}var m=0;for(p=0,0!==f[p]&&(c[0]=1,++m),r=1;r<o;r++)f[p]!==f[p+1]&&(c[r]=f[p]?2:1,++m),p++;for(0!==f[p]&&(c[r]=2,++m),t=1;t<s;t++){p=t*d,n=t*l,f[p-d]!==f[p]&&(c[n]=f[p]?1:8,++m);var b=(f[p]?4:0)+(f[p-d]?8:0);for(r=1;r<o;r++)b=(b>>2)+(f[p+1]?4:0)+(f[p-d+1]?8:0),u[b]&&(c[n+r]=u[b],++m),p++;if(f[p-d]!==f[p]&&(c[n+r]=f[p]?2:4,++m),m>i)return null}for(p=d*(s-1),n=t*l,0!==f[p]&&(c[n]=8,++m),r=1;r<o;r++)f[p]!==f[p+1]&&(c[n+r]=f[p]?4:8,++m),p++;if(0!==f[p]&&(c[n+r]=4,++m),m>i)return null;var y=new Int32Array([0,l,-1,0,-l,0,0,0,1]),w=[];for(t=0;m&&t<=s;t++){var _=t*l,k=_+o;while(_<k&&!c[_])_++;if(_!==k){var x,S=[_%l,t],A=c[_],C=_;do{var P=y[A];do{_+=P}while(!c[_]);x=c[_],5!==x&&10!==x?(A=x,c[_]=0):(A=x&51*A>>4,c[_]&=A>>2|A<<2),S.push(_%l),S.push(_/l|0),c[_]||--m}while(C!==_);w.push(S),--t}}var T=function(e){e.save(),e.scale(1/o,-1/s),e.translate(0,-s),e.beginPath();for(var t=0,r=w.length;t<r;t++){var n=w[t];e.moveTo(n[0],n[1]);for(var a=2,i=n.length;a<i;a+=2)e.lineTo(n[a],n[a+1])}e.fill(),e.beginPath(),e.restore()};return T}var v=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=a.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=a.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=a.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),m=function(){var e=15,t=10;function r(e,t,r,n,a,i){this.ctx=e,this.current=new v,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=n,this.webGLContext=a,this.imageLayer=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new p(this.canvasFactory),e&&f(e),this._cachedGetSinglePixelWidth=null}function m(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var r,n,i,o,s,l=t.height,c=t.width,u=l%h,d=(l-u)/h,f=0===u?d:d+1,p=e.createImageData(c,h),g=0,v=t.data,m=p.data;if(t.kind===a.ImageKind.GRAYSCALE_1BPP){var b=v.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),w=y.length,_=c+7>>3,k=4294967295,x=a.IsLittleEndianCached.value?4278190080:255;for(n=0;n<f;n++){for(o=n<d?h:u,r=0,i=0;i<o;i++){for(var S=b-g,A=0,C=S>_?c:8*S-7,P=-8&C,T=0,E=0;A<P;A+=8)E=v[g++],y[r++]=128&E?k:x,y[r++]=64&E?k:x,y[r++]=32&E?k:x,y[r++]=16&E?k:x,y[r++]=8&E?k:x,y[r++]=4&E?k:x,y[r++]=2&E?k:x,y[r++]=1&E?k:x;for(;A<C;A++)0===T&&(E=v[g++],T=128),y[r++]=E&T?k:x,T>>=1}while(r<w)y[r++]=0;e.putImageData(p,0,n*h)}}else if(t.kind===a.ImageKind.RGBA_32BPP){for(i=0,s=c*h*4,n=0;n<d;n++)m.set(v.subarray(g,g+s)),g+=s,e.putImageData(p,0,i),i+=h;n<f&&(s=c*u*4,m.set(v.subarray(g,g+s)),e.putImageData(p,0,i))}else{if(t.kind!==a.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(o=h,s=c*o,n=0;n<f;n++){for(n>=d&&(o=u,s=c*o),r=0,i=s;i--;)m[r++]=v[g++],m[r++]=v[g++],m[r++]=v[g++],m[r++]=255;e.putImageData(p,0,n*h)}}}}function b(e,t){for(var r=t.height,n=t.width,a=r%h,i=(r-a)/h,o=0===a?i:i+1,s=e.createImageData(n,h),l=0,c=t.data,u=s.data,d=0;d<o;d++){for(var f=d<i?h:a,p=3,g=0;g<f;g++)for(var v=0,m=0;m<n;m++){if(!v){var b=c[l++];v=128}u[p]=b&v?0:255,p+=4,v>>=1}e.putImageData(s,0,d*h)}}function y(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,a=r.length;n<a;n++){var i=r[n];void 0!==e[i]&&(t[i]=e[i])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function w(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function _(e,t,r,n){for(var a=e.length,i=3;i<a;i+=4){var o=e[i];if(0===o)e[i-3]=t,e[i-2]=r,e[i-1]=n;else if(o<255){var s=255-o;e[i-3]=e[i-3]*o+t*s>>8,e[i-2]=e[i-2]*o+r*s>>8,e[i-1]=e[i-1]*o+n*s>>8}}}function k(e,t,r){for(var n=e.length,a=1/255,i=3;i<n;i+=4){var o=r?r[e[i]]:e[i];t[i]=t[i]*o*a|0}}function x(e,t,r){for(var n=e.length,a=3;a<n;a+=4){var i=77*e[a-3]+152*e[a-2]+28*e[a-1];t[a]=r?t[a]*r[i>>8]>>8:t[a]*i>>16}}function S(e,t,r,n,a,i,o){var s,l=!!i,c=l?i[0]:0,u=l?i[1]:0,d=l?i[2]:0;s="Luminosity"===a?x:k;for(var h=1048576,f=Math.min(n,Math.ceil(h/r)),p=0;p<n;p+=f){var g=Math.min(f,n-p),v=e.getImageData(0,p,r,g),m=t.getImageData(0,p,r,g);l&&_(v.data,c,u,d),s(v.data,m.data,o),e.putImageData(m,0,p)}}function A(e,t,r,n){var a=t.canvas,i=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var o=t.backdrop||null;if(!t.transferMap&&n.isEnabled){var s=n.composeSMask({layer:r.canvas,mask:a,properties:{subtype:t.subtype,backdrop:o}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(s,t.offsetX,t.offsetY)}S(i,r,a.width,a.height,t.subtype,o,t.transferMap),e.drawImage(a,0,0)}var C=["butt","round","square"],P=["miter","round","bevel"],T={},E={};for(var R in r.prototype={beginDrawing:function(e){var t=e.transform,r=e.viewport,n=e.transparency,a=void 0!==n&&n,i=e.background,o=void 0===i?null:i,s=this.ctx.canvas.width,l=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=o||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,s,l),this.ctx.restore(),a){var c=this.cachedCanvases.getCanvas("transparent",s,l,!0);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),w(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,r.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(r,i,o,s){var l=r.argsArray,c=r.fnArray,u=i||0,d=l.length;if(d===u)return u;var h,f=d-u>t&&"function"===typeof o,p=f?Date.now()+e:0,g=0,v=this.commonObjs,m=this.objs;while(1){if(void 0!==s&&u===s.nextBreakPoint)return s.breakIt(u,o),u;if(h=c[u],h!==a.OPS.dependency)this[h].apply(this,l[u]);else{var b,y=n(l[u]);try{for(y.s();!(b=y.n()).done;){var w=b.value,_=w.startsWith("g_")?v:m;if(!_.has(w))return _.get(w,o),u}}catch(k){y.e(k)}finally{y.f()}}if(u++,u===d)return u;if(f&&++g>t){if(Date.now()>p)return o(),u;g=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=C[e]},setLineJoin:function(e){this.ctx.lineJoin=P[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,r=e.length;t<r;t++){var n=e[t],a=n[0],i=n[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=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[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}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(n,t,r,!0),i=this.ctx,o=i.mozCurrentTransform;this.ctx.save();var s=a.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,y(i,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),y(e,this.ctx),this.current.resumeSMaskCtx=e;var t=a.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),y(e,this.ctx);var t=a.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,a,i){this.ctx.transform(e,t,r,n,a,i),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,n=this.current,i=n.x,o=n.y,s=0,l=0,c=e.length;s<c;s++)switch(0|e[s]){case a.OPS.rectangle:i=t[l++],o=t[l++];var u=t[l++],d=t[l++];0===u&&(u=this.getSinglePixelWidth()),0===d&&(d=this.getSinglePixelWidth());var h=i+u,f=o+d;this.ctx.moveTo(i,o),this.ctx.lineTo(h,o),this.ctx.lineTo(h,f),this.ctx.lineTo(i,f),this.ctx.lineTo(i,o),this.ctx.closePath();break;case a.OPS.moveTo:i=t[l++],o=t[l++],r.moveTo(i,o);break;case a.OPS.lineTo:i=t[l++],o=t[l++],r.lineTo(i,o);break;case a.OPS.curveTo:i=t[l+4],o=t[l+5],r.bezierCurveTo(t[l],t[l+1],t[l+2],t[l+3],i,o),l+=6;break;case a.OPS.curveTo2:r.bezierCurveTo(i,o,t[l],t[l+1],t[l+2],t[l+3]),i=t[l+2],o=t[l+3],l+=4;break;case a.OPS.curveTo3:i=t[l+2],o=t[l+3],r.bezierCurveTo(t[l],t[l+1],i,o,i,o),l+=4;break;case a.OPS.closePath:r.closePath();break}n.setCurrentPoint(i,o)},closePath:function(){this.ctx.closePath()},stroke:function(e){e="undefined"===typeof e||e;var t=this.ctx,r=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,r&&r.hasOwnProperty("type")&&"Pattern"===r.type){t.save();var n=t.mozCurrentTransform,i=a.Util.singularValueDecompose2dScale(n)[0];t.strokeStyle=r.getPattern(t,this),t.lineWidth=Math.max(this.getSinglePixelWidth()*c,this.current.lineWidth*i),t.stroke(),t.restore()}else t.lineWidth=Math.max(this.getSinglePixelWidth()*c,this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e="undefined"===typeof e||e;var t=this.ctx,r=this.current.fillColor,n=this.current.patternFill,a=!1;n&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=r.getPattern(t,this),a=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),a&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=T},eoClip:function(){this.pendingClip=E},beginText:function(){this.current.textMatrix=a.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var r=0;r<e.length;r++){var n=e[r];t.setTransform.apply(t,n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var r=this.commonObjs.get(e),n=this.current;if(!r)throw new Error("Can't find font for ".concat(e));if(n.fontMatrix=r.fontMatrix?r.fontMatrix:a.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,a.warn)("Invalid font matrix for font "+e),t<0?(t=-t,n.fontDirection=-1):n.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){var i=r.loadedName||"sans-serif",l="normal";r.black?l="900":r.bold&&(l="bold");var c=r.italic?"italic":"normal",u='"'.concat(i,'", ').concat(r.fallbackName),d=t;t<o?d=o:t>s&&(d=s),this.current.fontSizeScale=t/d,this.ctx.font="".concat(c," ").concat(l," ").concat(d,"px ").concat(u)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,a,i){this.current.textMatrix=[e,t,r,n,a,i],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r,n){var i,o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&a.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&a.TextRenderingMode.ADD_TO_PATH_FLAG),f=s.patternFill&&l.data;if((l.disableFontFace||h||f)&&(i=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||f?(o.save(),o.translate(t,r),o.beginPath(),i(o,u),n&&o.setTransform.apply(o,n),d!==a.TextRenderingMode.FILL&&d!==a.TextRenderingMode.FILL_STROKE||o.fill(),d!==a.TextRenderingMode.STROKE&&d!==a.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(d!==a.TextRenderingMode.FILL&&d!==a.TextRenderingMode.FILL_STROKE||o.fillText(e,t,r),d!==a.TextRenderingMode.STROKE&&d!==a.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,r)),h){var p=this.pendingTextPaths||(this.pendingTextPaths=[]);p.push({transform:o.mozCurrentTransform,x:t,y:r,fontSize:u,addToPath:i})}},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),t=e.context;t.scale(1.5,1),t.fillText("I",0,10);for(var r=t.getImageData(0,0,10,10).data,n=!1,i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){n=!0;break}return(0,a.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var n=t.fontSize;if(0!==n){var i,o=this.ctx,s=t.fontSizeScale,l=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,f=e.length,p=r.vertical,g=p?1:-1,v=r.defaultVMetrics,m=n*t.fontMatrix[0],b=t.textRenderingMode===a.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(o.save(),t.patternFill){o.save();var y=t.fillColor.getPattern(o,this);i=o.mozCurrentTransform,o.restore(),o.fillStyle=y}o.transform.apply(o,t.textMatrix),o.translate(t.x,t.y+t.textRise),d>0?o.scale(h,-1):o.scale(h,1);var w=t.lineWidth,_=t.textMatrixScale;if(0===_||0===w){var k=t.textRenderingMode&a.TextRenderingMode.FILL_STROKE_MASK;k!==a.TextRenderingMode.STROKE&&k!==a.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,w=this.getSinglePixelWidth()*c)}else w/=_;1!==s&&(o.scale(s,s),w/=s),o.lineWidth=w;var x,S=0;for(x=0;x<f;++x){var A=e[x];if((0,a.isNum)(A))S+=g*A*n/1e3;else{var C,P,T,E,R,I,O,L,F=!1,M=(A.isSpace?u:0)+l,D=A.fontChar,N=A.accent,B=A.width;if(p)R=A.vmetric||v,I=A.vmetric?R[1]:.5*B,I=-I*m,O=R[2]*m,B=R?-R[0]:B,C=I/s,P=(S+O)/s;else C=S/s,P=0;if(r.remeasure&&B>0){var U=1e3*o.measureText(D).width/n*s;if(B<U&&this.isFontSubpixelAAEnabled){var j=B/U;F=!0,o.save(),o.scale(j,1),C/=j}else B!==U&&(C+=(B-U)/2e3*n/s)}(A.isInFont||r.missingFile)&&(b&&!N?o.fillText(D,C,P):(this.paintChar(D,C,P,i),N&&(T=C+N.offset.x/s,E=P-N.offset.y/s,this.paintChar(N.fontChar,T,E,i)))),L=p?B*m-M*d:B*m+M*d,S+=L,F&&o.restore()}}p?t.y-=S:t.x+=S*h,o.restore()}},showType3Text:function(e){var t,r,n,i,o=this.ctx,s=this.current,l=s.font,c=s.fontSize,u=s.fontDirection,d=l.vertical?1:-1,h=s.charSpacing,f=s.wordSpacing,p=s.textHScale*u,g=s.fontMatrix||a.FONT_IDENTITY_MATRIX,v=e.length,m=s.textRenderingMode===a.TextRenderingMode.INVISIBLE;if(!m&&0!==c){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,s.textMatrix),o.translate(s.x,s.y),o.scale(p,u),t=0;t<v;++t)if(r=e[t],(0,a.isNum)(r))i=d*r*c/1e3,this.ctx.translate(i,0),s.x+=i*p;else{var b=(r.isSpace?f:0)+h,y=l.charProcOperatorList[r.operatorListId];if(y){this.processingType3=r,this.save(),o.scale(c,c),o.transform.apply(o,g),this.executeOperatorList(y),this.restore();var w=a.Util.applyTransform([r.width,0],g);n=w[0]*c+b,o.translate(n,0),s.x+=n*p}else(0,a.warn)('Type3 character "'.concat(r.operatorListId,'" is not available.'))}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,r,n,a,i){this.ctx.rect(r,n,a-r,i-n),this.clip(),this.endPath()},getColorN_Pattern:function(e){var t,n=this;if("TilingPattern"===e[0]){var a=e[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:function(e){return new r(e,n.commonObjs,n.objs,n.canvasFactory,n.webGLContext)}};t=new i.TilingPattern(e,a,this.ctx,s,o)}else t=(0,i.getShadingPatternFromIR)(e);return t},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,r){var n=a.Util.makeCssRgb(e,t,r);this.ctx.strokeStyle=n,this.current.strokeColor=n},setFillRGBColor:function(e,t,r){var n=a.Util.makeCssRgb(e,t,r);this.ctx.fillStyle=n,this.current.fillColor=n,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var r=(0,i.getShadingPatternFromIR)(e);t.fillStyle=r.getPattern(t,this,!0);var n=t.mozCurrentTransformInverse;if(n){var o=t.canvas,s=o.width,l=o.height,c=a.Util.applyTransform([0,0],n),u=a.Util.applyTransform([0,l],n),d=a.Util.applyTransform([s,0],n),h=a.Util.applyTransform([s,l],n),f=Math.min(c[0],u[0],d[0],h[0]),p=Math.min(c[1],u[1],d[1],h[1]),g=Math.max(c[0],u[0],d[0],h[0]),v=Math.max(c[1],u[1],d[1],h[1]);this.ctx.fillRect(f,p,g-f,v-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,a.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,a.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,a.info)("TODO: Support non-isolated groups."),e.knockout&&(0,a.warn)("Knockout groups not supported.");var r=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var n=a.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),i=[0,0,t.canvas.width,t.canvas.height];n=a.Util.intersect(n,i)||[0,0,0,0];var o=Math.floor(n[0]),s=Math.floor(n[1]),c=Math.max(Math.ceil(n[2])-o,1),u=Math.max(Math.ceil(n[3])-s,1),d=1,h=1;c>l&&(d=c/l,c=l),u>l&&(h=u/l,u=l);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,c,u,!0),g=p.context;g.scale(1/d,1/h),g.translate(-o,-s),g.transform.apply(g,r),e.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:o,offsetY:s,scaleX:d,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,s),t.scale(d,h)),y(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),w(this.ctx),this.current=new v,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],a=e[3]-e[1];this.ctx.rect(e[0],e[1],n,a),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,r){var n=this.processingType3?this.commonObjs.get(e):this.objs.get(e);if(n){this.save();var i=this.ctx;if(i.scale(1/t,-1/r),i.drawImage(n,0,0,n.width,n.height,0,-r,t,r),this.imageLayer){var o=i.mozCurrentTransformInverse,s=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:s[0],top:s[1],width:t/o[0],height:r/o[3]})}this.restore()}else(0,a.warn)("Dependent image isn't ready yet")},paintImageMaskXObject:function(e){var t=this.ctx,r=e.width,n=e.height,a=this.current.fillColor,i=this.current.patternFill,o=this.processingType3;if(u&&o&&void 0===o.compiled&&(o.compiled=r<=d&&n<=d?g({data:e.data,width:r,height:n}):null),o&&o.compiled)o.compiled(t);else{var s=this.cachedCanvases.getCanvas("maskCanvas",r,n),l=s.context;l.save(),b(l,e),l.globalCompositeOperation="source-in",l.fillStyle=i?a.getPattern(l,this):a,l.fillRect(0,0,r,n),l.restore(),this.paintInlineImageXObject(s.canvas)}},paintImageMaskXObjectRepeat:function(e,t,r,n){var a=e.width,i=e.height,o=this.current.fillColor,s=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",a,i),c=l.context;c.save(),b(c,e),c.globalCompositeOperation="source-in",c.fillStyle=s?o.getPattern(c,this):o,c.fillRect(0,0,a,i),c.restore();for(var u=this.ctx,d=0,h=n.length;d<h;d+=2)u.save(),u.transform(t,0,0,r,n[d],n[d+1]),u.scale(1,-1),u.drawImage(l.canvas,0,0,a,i,0,-1,1,1),u.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,r=this.current.fillColor,n=this.current.patternFill,a=0,i=e.length;a<i;a++){var o=e[a],s=o.width,l=o.height,c=this.cachedCanvases.getCanvas("maskCanvas",s,l),u=c.context;u.save(),b(u,o),u.globalCompositeOperation="source-in",u.fillStyle=n?r.getPattern(u,this):r,u.fillRect(0,0,s,l),u.restore(),t.save(),t.transform.apply(t,o.transform),t.scale(1,-1),t.drawImage(c.canvas,0,0,s,l,0,-1,1,1),t.restore()}},paintImageXObject:function(e){var t=this.processingType3?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,a.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,r,n){var i=this.processingType3?this.commonObjs.get(e):this.objs.get(e);if(i){for(var o=i.width,s=i.height,l=[],c=0,u=n.length;c<u;c+=2)l.push({transform:[t,0,0,r,n[c],n[c+1]],x:0,y:0,w:o,h:s});this.paintInlineImageXObjectGroup(i,l)}else(0,a.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(e){var t=e.width,r=e.height,n=this.ctx;this.save(),n.scale(1/t,-1/r);var a,i,o=n.mozCurrentTransformInverse,s=o[0],l=o[1],c=Math.max(Math.sqrt(s*s+l*l),1),u=o[2],d=o[3],h=Math.max(Math.sqrt(u*u+d*d),1);if("function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e;else{i=this.cachedCanvases.getCanvas("inlineImage",t,r);var f=i.context;m(f,e),a=i.canvas}var p=t,g=r,v="prescale1";while(c>2&&p>1||h>2&&g>1){var b=p,y=g;c>2&&p>1&&(b=Math.ceil(p/2),c/=p/b),h>2&&g>1&&(y=Math.ceil(g/2),h/=g/y),i=this.cachedCanvases.getCanvas(v,b,y),f=i.context,f.clearRect(0,0,b,y),f.drawImage(a,0,0,p,g,0,0,b,y),a=i.canvas,p=b,g=y,v="prescale1"===v?"prescale2":"prescale1"}if(n.drawImage(a,0,0,p,g,0,-r,t,r),this.imageLayer){var w=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:w[0],top:w[1],width:t/o[0],height:r/o[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,t){var r=this.ctx,n=e.width,a=e.height,i=this.cachedCanvases.getCanvas("inlineImage",n,a),o=i.context;m(o,e);for(var s=0,l=t.length;s<l;s++){var c=t[s];if(r.save(),r.transform.apply(r,c.transform),r.scale(1,-1),r.drawImage(i.canvas,c.x,c.y,c.w,c.h,0,-1,1,1),this.imageLayer){var u=this.getCanvasPosition(c.x,c.y);this.imageLayer.appendImage({imgData:e,left:u[0],top:u[1],width:n,height:a})}r.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,a.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===E?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var r=this.ctx.mozCurrentTransform;return[r[0]*e+r[2]*t+r[4],r[1]*e+r[3]*t+r[5]]}},a.OPS)r.prototype[a.OPS[R]]=r.prototype[R];return r}();t.CanvasGraphics=m},"7b0b":function(e,t,r){var n=r("1d80");e.exports=function(e){return Object(n(e))}},"7c73":function(e,t,r){var n,a=r("825a"),i=r("37e8"),o=r("7839"),s=r("d012"),l=r("1be4"),c=r("cc12"),u=r("f772"),d=">",h="<",f="prototype",p="script",g=u("IE_PROTO"),v=function(){},m=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),r="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},w=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=n?b(n):y();var e=o.length;while(e--)delete w[f][o[e]];return w()};s[g]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(v[f]=a(e),r=new v,v[f]=null,r[g]=e):r=w(),void 0===t?r:i(r,t)}},"7db0":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").find,i=r("44d2"),o=r("ae40"),s="find",l=!0,c=o(s);s in[]&&Array(1)[s]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!c},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},"7dd0":function(e,t,r){"use strict";var n=r("23e7"),a=r("9ed3"),i=r("e163"),o=r("d2bb"),s=r("d44e"),l=r("9112"),c=r("6eeb"),u=r("b622"),d=r("c430"),h=r("3f8c"),f=r("ae93"),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,v=u("iterator"),m="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,r,u,f,_,k){a(r,t,u);var x,S,A,C=function(e){if(e===f&&I)return I;if(!g&&e in E)return E[e];switch(e){case m:return function(){return new r(this,e)};case b:return function(){return new r(this,e)};case y:return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",T=!1,E=e.prototype,R=E[v]||E["@@iterator"]||f&&E[f],I=!g&&R||C(f),O="Array"==t&&E.entries||R;if(O&&(x=i(O.call(new e)),p!==Object.prototype&&x.next&&(d||i(x)===p||(o?o(x,p):"function"!=typeof x[v]&&l(x,v,w)),s(x,P,!0,!0),d&&(h[P]=w))),f==b&&R&&R.name!==b&&(T=!0,I=function(){return R.call(this)}),d&&!k||E[v]===I||l(E,v,I),h[t]=I,f)if(S={values:C(b),keys:_?I:C(m),entries:C(y)},k)for(A in S)(g||T||!(A in E))&&c(E,A,S[A]);else n({target:t,proto:!0,forced:g||T},S);return S}},"7ddb":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/function n(e){this.element=e.element,this.document=e.element.ownerDocument,"function"===typeof e.ignoreTarget&&(this.ignoreTarget=e.ignoreTarget),this.onActiveChanged=e.onActiveChanged,this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.toggle=this.toggle.bind(this),this._onmousedown=this._onmousedown.bind(this),this._onmousemove=this._onmousemove.bind(this),this._endPan=this._endPan.bind(this);var t=this.overlay=document.createElement("div");t.className="grab-to-pan-grabbing"}var a;r("45fc"),Object.defineProperty(t,"__esModule",{value:!0}),t.GrabToPan=n,n.prototype={CSS_CLASS_GRAB:"grab-to-pan-grab",activate:function(){this.active||(this.active=!0,this.element.addEventListener("mousedown",this._onmousedown,!0),this.element.classList.add(this.CSS_CLASS_GRAB),this.onActiveChanged&&this.onActiveChanged(!0))},deactivate:function(){this.active&&(this.active=!1,this.element.removeEventListener("mousedown",this._onmousedown,!0),this._endPan(),this.element.classList.remove(this.CSS_CLASS_GRAB),this.onActiveChanged&&this.onActiveChanged(!1))},toggle:function(){this.active?this.deactivate():this.activate()},ignoreTarget:function(e){return e[a]("a[href], a[href] *, input, textarea, button, button *, select, option")},_onmousedown:function(e){if(0===e.button&&!this.ignoreTarget(e.target)){if(e.originalTarget)try{e.originalTarget.tagName}catch(r){return}this.scrollLeftStart=this.element.scrollLeft,this.scrollTopStart=this.element.scrollTop,this.clientXStart=e.clientX,this.clientYStart=e.clientY,this.document.addEventListener("mousemove",this._onmousemove,!0),this.document.addEventListener("mouseup",this._endPan,!0),this.element.addEventListener("scroll",this._endPan,!0),e.preventDefault(),e.stopPropagation();var t=document.activeElement;t&&!t.contains(e.target)&&t.blur()}},_onmousemove:function(e){if(this.element.removeEventListener("scroll",this._endPan,!0),c(e))this._endPan();else{var t=e.clientX-this.clientXStart,r=e.clientY-this.clientYStart,n=this.scrollTopStart-r,a=this.scrollLeftStart-t;this.element.scrollTo?this.element.scrollTo({top:n,left:a,behavior:"instant"}):(this.element.scrollTop=n,this.element.scrollLeft=a),this.overlay.parentNode||document.body.appendChild(this.overlay)}},_endPan:function(){this.element.removeEventListener("scroll",this._endPan,!0),this.document.removeEventListener("mousemove",this._onmousemove,!0),this.document.removeEventListener("mouseup",this._endPan,!0),this.overlay.remove()}},["webkitM","mozM","msM","oM","m"].some((function(e){var t=e+"atches";return t in document.documentElement&&(a=t),t+="Selector",t in document.documentElement&&(a=t),a}));var i=!document.documentMode||document.documentMode>9,o=window.chrome,s=o&&(o.webstore||o.app),l=/Apple/.test(navigator.vendor)&&/Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);function c(e){return"buttons"in e&&i?!(1&e.buttons):!(!s&&!l)&&0===e.which}},"7f9a":function(e,t,r){var n=r("da84"),a=r("8925"),i=n.WeakMap;e.exports="function"===typeof i&&/native code/.test(a(i))},"7fc1":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("e260"),r("d3b7"),r("cfc3"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var i=r("dacc"),o=function(){function e(t){var r=t.enable,a=void 0!==r&&r;n(this,e),this._enabled=!0===a}return a(e,[{key:"composeSMask",value:function(e){var t=e.layer,r=e.mask,n=e.properties;return s.composeSMask(t,r,n)}},{key:"drawFigures",value:function(e){var t=e.width,r=e.height,n=e.backgroundColor,a=e.figures,i=e.context;return s.drawFigures(t,r,n,a,i)}},{key:"clear",value:function(){s.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=s.tryInitGL()),(0,i.shadow)(this,"isEnabled",e)}}]),e}();t.WebGLContext=o;var s=function(){function e(e,t,r){var n=e.createShader(r);e.shaderSource(n,t),e.compileShader(n);var a=e.getShaderParameter(n,e.COMPILE_STATUS);if(!a){var i=e.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+i)}return n}function t(t,r){return e(t,r,t.VERTEX_SHADER)}function r(t,r){return e(t,r,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),n=0,a=t.length;n<a;++n)e.attachShader(r,t[n]);e.linkProgram(r);var i=e.getProgramParameter(r,e.LINK_STATUS);if(!i){var o=e.getProgramInfoLog(r);throw new Error("Error during program linking: "+o)}return r}function a(e,t,r){e.activeTexture(r);var n=e.createTexture();return e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),n}var i,o;function s(){i||(o=document.createElement("canvas"),i=o.getContext("webgl",{premultipliedalpha:!1}))}var l=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",c=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",u=null;function d(){var e,a;s(),e=o,o=null,a=i,i=null;var d=t(a,l),h=r(a,c),f=n(a,[d,h]);a.useProgram(f);var p={};p.gl=a,p.canvas=e,p.resolutionLocation=a.getUniformLocation(f,"u_resolution"),p.positionLocation=a.getAttribLocation(f,"a_position"),p.backdropLocation=a.getUniformLocation(f,"u_backdrop"),p.subtypeLocation=a.getUniformLocation(f,"u_subtype");var g=a.getAttribLocation(f,"a_texCoord"),v=a.getUniformLocation(f,"u_image"),m=a.getUniformLocation(f,"u_mask"),b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),a.STATIC_DRAW),a.enableVertexAttribArray(g),a.vertexAttribPointer(g,2,a.FLOAT,!1,0,0),a.uniform1i(v,0),a.uniform1i(m,1),u=p}function h(e,t,r){var n=e.width,i=e.height;u||d();var o=u,s=o.canvas,l=o.gl;s.width=n,s.height=i,l.viewport(0,0,l.drawingBufferWidth,l.drawingBufferHeight),l.uniform2f(o.resolutionLocation,n,i),r.backdrop?l.uniform4f(o.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1):l.uniform4f(o.resolutionLocation,0,0,0,0),l.uniform1i(o.subtypeLocation,"Luminosity"===r.subtype?1:0);var c=a(l,e,l.TEXTURE0),h=a(l,t,l.TEXTURE1),f=l.createBuffer();return l.bindBuffer(l.ARRAY_BUFFER,f),l.bufferData(l.ARRAY_BUFFER,new Float32Array([0,0,n,0,0,i,0,i,n,0,n,i]),l.STATIC_DRAW),l.enableVertexAttribArray(o.positionLocation),l.vertexAttribPointer(o.positionLocation,2,l.FLOAT,!1,0,0),l.clearColor(0,0,0,0),l.enable(l.BLEND),l.blendFunc(l.ONE,l.ONE_MINUS_SRC_ALPHA),l.clear(l.COLOR_BUFFER_BIT),l.drawArrays(l.TRIANGLES,0,6),l.flush(),l.deleteTexture(c),l.deleteTexture(h),l.deleteBuffer(f),s}var f=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",p=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",g=null;function v(){var e,a;s(),e=o,o=null,a=i,i=null;var l=t(a,f),c=r(a,p),u=n(a,[l,c]);a.useProgram(u);var d={};d.gl=a,d.canvas=e,d.resolutionLocation=a.getUniformLocation(u,"u_resolution"),d.scaleLocation=a.getUniformLocation(u,"u_scale"),d.offsetLocation=a.getUniformLocation(u,"u_offset"),d.positionLocation=a.getAttribLocation(u,"a_position"),d.colorLocation=a.getAttribLocation(u,"a_color"),g=d}function m(e,t,r,n,a){g||v();var i=g,o=i.canvas,s=i.gl;o.width=e,o.height=t,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(i.resolutionLocation,e,t);var l,c,u,d=0;for(l=0,c=n.length;l<c;l++)switch(n[l].type){case"lattice":u=n[l].coords.length/n[l].verticesPerRow|0,d+=(u-1)*(n[l].verticesPerRow-1)*6;break;case"triangles":d+=n[l].coords.length;break}var h=new Float32Array(2*d),f=new Uint8Array(3*d),p=a.coords,m=a.colors,b=0,y=0;for(l=0,c=n.length;l<c;l++){var w=n[l],_=w.coords,k=w.colors;switch(w.type){case"lattice":var x=w.verticesPerRow;u=_.length/x|0;for(var S=1;S<u;S++)for(var A=S*x+1,C=1;C<x;C++,A++)h[b]=p[_[A-x-1]],h[b+1]=p[_[A-x-1]+1],h[b+2]=p[_[A-x]],h[b+3]=p[_[A-x]+1],h[b+4]=p[_[A-1]],h[b+5]=p[_[A-1]+1],f[y]=m[k[A-x-1]],f[y+1]=m[k[A-x-1]+1],f[y+2]=m[k[A-x-1]+2],f[y+3]=m[k[A-x]],f[y+4]=m[k[A-x]+1],f[y+5]=m[k[A-x]+2],f[y+6]=m[k[A-1]],f[y+7]=m[k[A-1]+1],f[y+8]=m[k[A-1]+2],h[b+6]=h[b+2],h[b+7]=h[b+3],h[b+8]=h[b+4],h[b+9]=h[b+5],h[b+10]=p[_[A]],h[b+11]=p[_[A]+1],f[y+9]=f[y+3],f[y+10]=f[y+4],f[y+11]=f[y+5],f[y+12]=f[y+6],f[y+13]=f[y+7],f[y+14]=f[y+8],f[y+15]=m[k[A]],f[y+16]=m[k[A]+1],f[y+17]=m[k[A]+2],b+=12,y+=18;break;case"triangles":for(var P=0,T=_.length;P<T;P++)h[b]=p[_[P]],h[b+1]=p[_[P]+1],f[y]=m[k[P]],f[y+1]=m[k[P]+1],f[y+2]=m[k[P]+2],b+=2,y+=3;break}}r?s.clearColor(r[0]/255,r[1]/255,r[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var E=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,E),s.bufferData(s.ARRAY_BUFFER,h,s.STATIC_DRAW),s.enableVertexAttribArray(i.positionLocation),s.vertexAttribPointer(i.positionLocation,2,s.FLOAT,!1,0,0);var R=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,R),s.bufferData(s.ARRAY_BUFFER,f,s.STATIC_DRAW),s.enableVertexAttribArray(i.colorLocation),s.vertexAttribPointer(i.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(i.scaleLocation,a.scaleX,a.scaleY),s.uniform2f(i.offsetLocation,a.offsetX,a.offsetY),s.drawArrays(s.TRIANGLES,0,d),s.flush(),s.deleteBuffer(E),s.deleteBuffer(R),o}return{tryInitGL:function(){try{return s(),!!i}catch(e){}return!1},composeSMask:h,drawFigures:m,cleanup:function(){u&&u.canvas&&(u.canvas.width=0,u.canvas.height=0),g&&g.canvas&&(g.canvas.width=0,g.canvas.height=0),u=null,g=null}}}()},8:function(e,t){},"80b1":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("e260"),r("45fc"),r("d3b7"),r("e6cf"),r("3ca3"),r("10d1"),r("ddb0");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFThumbnailViewer=void 0;var i=r("0496"),o=r("e200"),s=-19,l="selected",c=function(){function e(t){var r=t.container,a=t.linkService,o=t.renderingQueue,s=t.l10n,l=void 0===s?i.NullL10n:s;n(this,e),this.container=r,this.linkService=a,this.renderingQueue=o,this.l10n=l,this.scroll=(0,i.watchScroll)(this.container,this._scrollUpdated.bind(this)),this._resetView()}return a(e,[{key:"_scrollUpdated",value:function(){this.renderingQueue.renderHighestPriority()}},{key:"getThumbnail",value:function(e){return this._thumbnails[e]}},{key:"_getVisibleThumbs",value:function(){return(0,i.getVisibleElements)(this.container,this._thumbnails)}},{key:"scrollThumbnailIntoView",value:function(e){if(this.pdfDocument){var t=this._thumbnails[e-1];if(t){if(e!==this._currentPageNumber){var r=this._thumbnails[this._currentPageNumber-1];r.div.classList.remove(l),t.div.classList.add(l)}var n=this._getVisibleThumbs(),a=n.views.length;if(a>0){var o=n.first.id,c=a>1?n.last.id:o,u=!1;e<=o||e>=c?u=!0:n.views.some((function(t){return t.id===e&&(u=t.percent<100,!0)})),u&&(0,i.scrollIntoView)(t.div,{top:s})}this._currentPageNumber=e}else console.error('scrollThumbnailIntoView: Invalid "pageNumber" parameter.')}}},{key:"cleanup",value:function(){o.PDFThumbnailView.cleanup()}},{key:"_resetView",value:function(){this._thumbnails=[],this._currentPageNumber=1,this._pageLabels=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this.container.textContent=""}},{key:"setDocument",value:function(e){var t=this;this.pdfDocument&&(this._cancelRendering(),this._resetView()),this.pdfDocument=e,e&&e.getPage(1).then((function(r){for(var n=e.numPages,a=r.getViewport({scale:1}),i=1;i<=n;++i){var s=new o.PDFThumbnailView({container:t.container,id:i,defaultViewport:a.clone(),linkService:t.linkService,renderingQueue:t.renderingQueue,disableCanvasToImageConversion:!1,l10n:t.l10n});t._thumbnails.push(s)}var c=t._thumbnails[0];c&&c.setPdfPage(r);var u=t._thumbnails[t._currentPageNumber-1];u.div.classList.add(l)})).catch((function(e){console.error("Unable to initialize thumbnail viewer",e)}))}},{key:"_cancelRendering",value:function(){for(var e=0,t=this._thumbnails.length;e<t;e++)this._thumbnails[e]&&this._thumbnails[e].cancelRendering()}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("PDFThumbnailViewer_setPageLabels: Invalid page labels.")):this._pageLabels=null;for(var t=0,r=this._thumbnails.length;t<r;t++){var n=this._pageLabels&&this._pageLabels[t];this._thumbnails[t].setPageLabel(n)}}}},{key:"_ensurePdfPageLoaded",value:function(e){var t=this;if(e.pdfPage)return Promise.resolve(e.pdfPage);if(this._pagesRequests.has(e))return this._pagesRequests.get(e);var r=this.pdfDocument.getPage(e.id).then((function(r){return e.pdfPage||e.setPdfPage(r),t._pagesRequests.delete(e),r})).catch((function(r){console.error("Unable to get page for thumb view",r),t._pagesRequests.delete(e)}));return this._pagesRequests.set(e,r),r}},{key:"forceRendering",value:function(){var e=this,t=this._getVisibleThumbs(),r=this.renderingQueue.getHighestPriority(t,this._thumbnails,this.scroll.down);return!!r&&(this._ensurePdfPageLoaded(r).then((function(){e.renderingQueue.renderView(r)})),!0)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,i.isValidRotation)(e))throw new Error("Invalid thumbnails rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=0,r=this._thumbnails.length;t<r;t++)this._thumbnails[t].update(e)}}}]),e}();t.PDFThumbnailViewer=c},"80e2":function(e,t,r){(function(e,n){var a,i,o;r("a4d3"),r("e01a"),r("944a"),r("99af"),r("a623"),r("cb29"),r("4de4"),r("4160"),r("caad"),r("c975"),r("e260"),r("a15b"),r("d81d"),r("fb6a"),r("a434"),r("b0c0"),r("0c47"),r("4ec9"),r("90d7"),r("23dc"),r("a9e3"),r("8ba4"),r("9129"),r("cca6"),r("b64b"),r("d3b7"),r("07ac"),r("e6cf"),r("820e"),r("4d63"),r("ac1f"),r("5377"),r("25f0"),r("f5b2"),r("f6d6"),r("3ca3"),r("466d"),r("4d90"),r("5319"),r("841c"),r("1276"),r("2ca0"),r("cc71"),r("cfc3"),r("4a9b"),r("fd87"),r("8b09"),r("143c"),r("5cc6"),r("8a59"),r("84c3"),r("fb2c"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b"),r("ddb0"),r("2b3d");var s=r("6b58"),l=r("8962"),c=r("36c6"),u=r("448a"),d=r("6374"),h=r("3c96"),f=r("5bc3"),p=r("970b"),g=r("ed6d"),v=r("2d0d");r("96cf");var m=r("278c"),b=r("c973"),y=r("7037");
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/
|
||
(function(e,r){"object"===y(t)&&"object"===y(n)?n.exports=r():(i=[],a=r,o="function"===typeof a?a.apply(t,i):a,void 0===o||(n.exports=o))})(0,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===y(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var n=r(1);t.WorkerMessageHandler=n.WorkerMessageHandler},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var n=r(2),a=r(4),i=r(5),o=r(44),s=r(45),l=r(46),c=r(7),u=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,n.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish:function(){this._capability.resolve()},terminate:function(){this.terminated=!0},ensureNotTerminated:function(){if(this.terminated)throw new Error("Worker task was terminated")}},e}();t.WorkerTask=u;var d={setup:function(e,t){var r=!1;e.on("test",(function(t){if(!r)if(r=!0,t instanceof Uint8Array){var n=255===t[0];e.postMessageTransfers=n,e.send("test",{supportTransfers:n})}else e.send("test",null)})),e.on("configure",(function(e){(0,n.setVerbosityLevel)(e.verbosity)})),e.on("GetDocRequest",(function(e){return d.createDocumentHandler(e,t)}))},createDocumentHandler:function(e,t){var r,o=!1,d=null,h=[],f=(0,n.getVerbosityLevel)(),p=e.apiVersion,g="2.4.456";if(p!==g)throw new Error('The API version "'.concat(p,'" does not match ')+'the Worker version "'.concat(g,'".'));var v=[];for(var y in[])v.push(y);if(v.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+v.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var w=e.docId,_=e.docBaseUrl,k=e.docId+"_worker",x=new s.MessageHandler(k,w,t);function S(){if(o)throw new Error("Worker was terminated")}function A(e){h.push(e)}function C(e){e.finish();var t=h.indexOf(e);h.splice(t,1)}function P(e){return T.apply(this,arguments)}function T(){return T=b(regeneratorRuntime.mark((function e(t){var n,a,i,o;return regeneratorRuntime.wrap((function(e){while(1)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")]);case 11:return n=e.sent,a=m(n,2),i=a[0],o=a[1],e.abrupt("return",{numPages:i,fingerprint:o});case 16:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function E(e,t){var r,a=(0,n.createPromiseCapability)(),o=e.source;if(o.data){try{r=new i.LocalPdfManager(w,o.data,o.password,t,_),a.resolve(r)}catch(g){a.reject(g)}return a.promise}var s,c=[];try{s=new l.PDFWorkerStream(x)}catch(g){return a.reject(g),a.promise}var u=s.getFullReader();u.headersReady.then((function(){if(u.isRangeSupported){var e=o.disableAutoFetch||u.isStreamingSupported;r=new i.NetworkPdfManager(w,s,{msgHandler:x,password:o.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:o.rangeChunkSize},t,_);for(var n=0;n<c.length;n++)r.sendProgressiveData(c[n]);c=[],a.resolve(r),d=null}})).catch((function(e){a.reject(e),d=null}));var h=0,f=function(){var e=(0,n.arraysToBytes)(c);o.length&&e.length!==o.length&&(0,n.warn)("reported HTTP length is different from actual");try{r=new i.LocalPdfManager(w,e,o.password,t,_),a.resolve(r)}catch(g){a.reject(g)}c=[]},p=new Promise((function(e,t){var a=function e(a){try{if(S(),a.done)return r||f(),void(d=null);var i=a.value;h+=(0,n.arrayByteLength)(i),u.isStreamingSupported||x.send("DocProgress",{loaded:h,total:Math.max(h,u.contentLength||0)}),r?r.sendProgressiveData(i):c.push(i),u.read().then(e,t)}catch(o){t(o)}};u.read().then(a,t)}));return p.catch((function(e){a.reject(e),d=null})),d=function(e){s.cancelAllRequests(e)},a.promise}function R(e){function t(e){S(),x.send("GetDoc",{pdfInfo:e})}function a(e){if(S(),e instanceof n.PasswordException){var t=new u("PasswordException: response ".concat(e.code));A(t),x.sendWithPromise("PasswordRequest",e).then((function(e){C(t),r.updatePassword(e.password),i()})).catch((function(){C(t),x.send("DocException",e)}))}else e instanceof n.InvalidPDFException||e instanceof n.MissingPDFException||e instanceof n.UnexpectedResponseException||e instanceof n.UnknownErrorException?x.send("DocException",e):x.send("DocException",new n.UnknownErrorException(e.message,e.toString()))}function i(){S(),P(!1).then(t,(function(e){S(),e instanceof c.XRefParseException?(r.requestLoadedStream(),r.onLoadedStream().then((function(){S(),P(!0).then(t,a)}))):a(e)}),a)}S();var s={forceDataSchema:e.disableCreateObjectURL,maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported};E(e,s).then((function(e){if(o)throw e.terminate(new n.AbortException("Worker was terminated.")),new Error("Worker was terminated");r=e,r.onLoadedStream().then((function(e){x.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(i,a)}return x.postMessageTransfers=e.postMessageTransfers,x.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=m(e,4),r=t[0],n=t[1],a=t[2],i=t[3];return{rotate:r,ref:n,userUnit:a,view:i}}))}))})),x.on("GetPageIndex",(function(e){var t=a.Ref.get(e.ref.num,e.ref.gen),n=r.pdfDocument.catalog;return n.getPageIndex(t)})),x.on("GetDestinations",(function(e){return r.ensureCatalog("destinations")})),x.on("GetDestination",(function(e){return r.ensureCatalog("getDestination",[e.id])})),x.on("GetPageLabels",(function(e){return r.ensureCatalog("pageLabels")})),x.on("GetPageLayout",(function(e){return r.ensureCatalog("pageLayout")})),x.on("GetPageMode",(function(e){return r.ensureCatalog("pageMode")})),x.on("GetViewerPreferences",(function(e){return r.ensureCatalog("viewerPreferences")})),x.on("GetOpenAction",(function(e){return r.ensureCatalog("openAction")})),x.on("GetAttachments",(function(e){return r.ensureCatalog("attachments")})),x.on("GetJavaScript",(function(e){return r.ensureCatalog("javaScript")})),x.on("GetOutline",(function(e){return r.ensureCatalog("documentOutline")})),x.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")})),x.on("GetMetadata",(function(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])})),x.on("GetData",(function(e){return r.requestLoadedStream(),r.onLoadedStream().then((function(e){return e.bytes}))})),x.on("GetStats",(function(e){return r.pdfDocument.xref.stats})),x.on("GetAnnotations",(function(e){var t=e.pageIndex,n=e.intent;return r.getPage(t).then((function(e){return e.getAnnotationsData(n)}))})),x.on("GetOperatorList",(function(e,t){var a=e.pageIndex;r.getPage(a).then((function(r){var i=new u("GetOperatorList: page ".concat(a));A(i);var o=f>=n.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:x,sink:t,task:i,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then((function(e){C(i),o&&(0,n.info)("page=".concat(a+1," - getOperatorList: time=")+"".concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){C(i),i.terminated||(x.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),t.error(e))}))}))}),this),x.on("GetTextContent",(function(e,t){var a=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},r.getPage(a).then((function(r){var i=new u("GetTextContent: page "+a);A(i);var o=f>=n.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:x,task:i,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then((function(){C(i),o&&(0,n.info)("page=".concat(a+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){C(i),i.terminated||t.error(e)}))}))})),x.on("FontFallback",(function(e){return r.fontFallback(e.id,x)})),x.on("Cleanup",(function(e){return r.cleanup()})),x.on("Terminate",(function(e){o=!0;var t=[];if(r){r.terminate(new n.AbortException("Worker was terminated."));var i=r.cleanup();t.push(i),r=null}else(0,a.clearPrimitiveCaches)();return d&&d(new n.AbortException("Worker was terminated.")),h.forEach((function(e){t.push(e.finished),e.terminate()})),Promise.all(t).then((function(){x.destroy(),x=null}))})),x.on("Ready",(function(t){R(e),e=null})),k},initializeFromPort:function(e){var t=new s.MessageHandler("worker","main",e);d.setup(t,e),t.send("ready",null)}};function h(e){return"function"===typeof e.postMessage&&"onmessage"in e}t.WorkerMessageHandler=d,"undefined"===typeof window&&!o.isNodeJS&&"undefined"!==typeof self&&h(self)&&d.initializeFromPort(self)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=Q,t.arraysToBytes=$,t.assert=M,t.bytesToString=Z,t.createPromiseCapability=me,t.getVerbosityLevel=I,t.info=O,t.isArrayBuffer=ge,t.isArrayEqual=ve,t.isBool=he,t.isEmptyObj=de,t.isNum=fe,t.isString=pe,t.isSameOrigin=D,t.createValidAbsoluteUrl=B,t.removeNullCharacters=K,t.setVerbosityLevel=R,t.shadow=U,t.string32=ee,t.stringToBytes=J,t.stringToPDFString=le,t.stringToUTF8String=ce,t.utf8StringToString=ue,t.warn=L,t.unreachable=F,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r(3);var n=[1,0,0,1,0,0];t.IDENTITY_MATRIX=n;var a=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=a;var i={NONE:"none",DECODE:"decode",DISPLAY:"display"};t.NativeImageDecoding=i;var o={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=o;var s={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=s;var l={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=l;var c={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=c;var u={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=u;var d={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=d;var h={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=h;var m={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=m;var b={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=b;var w={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=w;var _={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=_;var k={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=k;var x={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=x;var S={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=S;var A={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=A;var C={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=C;var P={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};t.UNSUPPORTED_FEATURES=P;var T={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=T;var E=S.WARNINGS;function R(e){Number.isInteger(e)&&(E=e)}function I(){return E}function O(e){E>=S.INFOS&&console.log("Info: ".concat(e))}function L(e){E>=S.WARNINGS&&console.log("Warning: ".concat(e))}function F(e){throw new Error(e)}function M(e,t){e||F(t)}function D(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(a){return!1}var n=new URL(t,r);return r.origin===n.origin}function N(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function B(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(N(r))return r}catch(n){}return null}function U(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var j=function(){function e(t){this.constructor===e&&F("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=j;var q=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,e),a.code=n,a}return r}(j);t.PasswordException=q;var z=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,e),a.details=n,a}return r}(j);t.UnknownErrorException=z;var V=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(j);t.InvalidPDFException=V;var W=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(j);t.MissingPDFException=W;var H=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,e),a.status=n,a}return r}(j);t.UnexpectedResponseException=H;var G=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(j);t.FormatError=G;var Y=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(j);t.AbortException=Y;var X=/\x00/g;function K(e){return"string"!==typeof e?(L("The argument for removeNullCharacters must be a string."),e):e.replace(X,"")}function Z(e){M(null!==e&&"object"===y(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),o=e.subarray(a,i);n.push(String.fromCharCode.apply(null,o))}return n.join("")}function J(e){M("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 Q(e){return void 0!==e.length?e.length:(M(void 0!==e.byteLength),e.byteLength)}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+=Q(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?J(s):new Uint8Array(s));var l=s.byteLength;i.set(s,a),a+=l}return i}function ee(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function te(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}var re={get value(){return U(this,"value",te())}};function ne(){try{return new Function(""),!0}catch(e){return!1}}t.IsLittleEndianCached=re;var ae={get value(){return U(this,"value",ne())}};t.IsEvalSupportedCached=ae;var ie=["rgb(",0,",",0,",",0,")"],oe=function(){function e(){p(this,e)}return f(e,null,[{key:"makeCssRgb",value:function(e,t,r){return ie[1]=e,ie[3]=t,ie[5]=r,ie.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],n=e[0]*t[1]+e[1]*t[3]+t[5];return[r,n]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2],n=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,a=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[n,a]}},{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((r+i)*(r+i)-4*(r*i-a*n))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var 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}}]),e}();t.Util=oe;var se=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function le(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=se[e.charCodeAt(i)];r.push(o?String.fromCharCode(o):e.charAt(i))}return r.join("")}function ce(e){return decodeURIComponent(escape(e))}function ue(e){return unescape(encodeURIComponent(e))}function de(e){for(var t in e)return!1;return!0}function he(e){return"boolean"===typeof e}function fe(e){return"number"===typeof e}function pe(e){return"string"===typeof e}function ge(e){return"object"===y(e)&&null!==e&&void 0!==e.byteLength}function ve(e,t){return e.length===t.length&&e.every((function(e,r){return e===t[r]}))}function me(){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}var be=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var a=new Blob([t],{type:r});return URL.createObjectURL(a)}for(var i="data:".concat(r,";base64,"),o=0,s=t.length;o<s;o+=3){var l=255&t[o],c=255&t[o+1],u=255&t[o+2],d=l>>2,h=(3&l)<<4|c>>4,f=o+1<s?(15&c)<<2|u>>6:64,p=o+2<s?63&u:64;i+=e[d]+e[h]+e[f]+e[p]}return i}}();t.createObjectURL=be},function(e,t,r){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=m,t.isEOF=u,t.isCmd=h,t.isDict=f,t.isName=d,t.isRef=p,t.isRefsEqual=g,t.isStream=v,t.RefSetCache=t.RefSet=t.Ref=t.Name=t.Dict=t.Cmd=t.EOF=void 0;r(2);var n={};t.EOF=n;var a=function(){var e=Object.create(null);function t(e){this.name=e}return t.prototype={},t.get=function(r){var n=e[r];return n||(e[r]=new t(r))},t._clearCache=function(){e=Object.create(null)},t}();t.Name=a;var i=function(){var e=Object.create(null);function t(e){this.cmd=e}return t.prototype={},t.get=function(r){var n=e[r];return n||(e[r]=new t(r))},t._clearCache=function(){e=Object.create(null)},t}();t.Cmd=i;var o=function(){var e=function(){return e};function t(t){this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=e}return t.prototype={assignXref:function(e){this.xref=e},get:function(e,t,r){var n=this._map[e];return void 0===n&&void 0!==t&&(n=this._map[t],void 0===n&&void 0!==r&&(n=this._map[r])),n instanceof s&&this.xref?this.xref.fetch(n,this.suppressEncryption):n},getAsync:function(e,t,r){var n=this;return b(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=n._map[e],void 0===i&&void 0!==t&&(i=n._map[t],void 0===i&&void 0!==r&&(i=n._map[r])),!(i instanceof s&&n.xref)){a.next=4;break}return a.abrupt("return",n.xref.fetchAsync(i,n.suppressEncryption));case 4:return a.abrupt("return",i);case 5:case"end":return a.stop()}}),a)})))()},getArray:function(e,t,r){var n=this.get(e,t,r);if(!Array.isArray(n)||!this.xref)return n;n=n.slice();for(var a=0,i=n.length;a<i;a++)n[a]instanceof s&&(n[a]=this.xref.fetch(n[a],this.suppressEncryption));return n},getRaw:function(e){return this._map[e]},getKeys:function(){return Object.keys(this._map)},set:function(e,t){this._map[e]=t},has:function(e){return void 0!==this._map[e]},forEach:function(e){for(var t in this._map)e(t,this.get(t))}},t.empty=new t(null),t.merge=function(e,r){for(var n=new t(e),a=0,i=r.length;a<i;a++){var o=r[a];if(f(o))for(var s in o._map)void 0===n._map[s]&&(n._map[s]=o._map[s])}return n},t}();t.Dict=o;var s=function(){var e=Object.create(null);function t(e,t){this.num=e,this.gen=t}return t.prototype={toString:function(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}},t.get=function(r,n){var a=0===n?"".concat(r,"R"):"".concat(r,"R").concat(n),i=e[a];return i||(e[a]=new t(r,n))},t._clearCache=function(){e=Object.create(null)},t}();t.Ref=s;var l=function(){function e(){this.dict=Object.create(null)}return e.prototype={has:function(e){return e.toString()in this.dict},put:function(e){this.dict[e.toString()]=!0},remove:function(e){delete this.dict[e.toString()]}},e}();t.RefSet=l;var c=function(){function e(){this.dict=Object.create(null)}return e.prototype={get:function(e){return this.dict[e.toString()]},has:function(e){return e.toString()in this.dict},put:function(e,t){this.dict[e.toString()]=t},putAlias:function(e,t){this.dict[e.toString()]=this.get(t)},forEach:function(e){for(var t in this.dict)e(this.dict[t])},clear:function(){this.dict=Object.create(null)}},e}();function u(e){return e===n}function d(e,t){return e instanceof a&&(void 0===t||e.name===t)}function h(e,t){return e instanceof i&&(void 0===t||e.cmd===t)}function f(e,t){return e instanceof o&&(void 0===t||d(e.get("Type"),t))}function p(e){return e instanceof s}function g(e,t){return e.num===t.num&&e.gen===t.gen}function v(e){return"object"===y(e)&&null!==e&&void 0!==e.getBytes}function m(){i._clearCache(),a._clearCache(),s._clearCache()}t.RefSetCache=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var n=r(2),a=r(6),i=r(7),o=r(8),s=r(11),l=function(){function e(){p(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize BasePdfManager.")}return f(e,[{key:"onLoadedStream",value:function(){(0,n.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:"cleanup",value:function(){return this.pdfDocument.cleanup()}},{key:"ensure",value:function(){var e=b(regeneratorRuntime.mark((function e(t,r,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:(0,n.unreachable)("Abstract method `ensure` called");case 1:case"end":return e.stop()}}),e)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{key:"requestRange",value:function(e,t){(0,n.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function(){(0,n.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function(e){(0,n.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function(e){this._password=e}},{key:"terminate",value:function(e){(0,n.unreachable)("Abstract method `terminate` called")}},{key:"docId",get:function(){return this._docId}},{key:"password",get:function(){return this._password}},{key:"docBaseUrl",get:function(){var e=null;if(this._docBaseUrl){var t=(0,n.createValidAbsoluteUrl)(this._docBaseUrl);t?e=t.href:(0,n.warn)('Invalid absolute docBaseUrl: "'.concat(this._docBaseUrl,'".'))}return(0,n.shadow)(this,"docBaseUrl",e)}}]),e}(),c=function(e){g(r,e);var t=v(r);function r(e,n,a,i,l){var c;p(this,r),c=t.call(this),c._docId=e,c._password=a,c._docBaseUrl=l,c.evaluatorOptions=i;var u=new s.Stream(n);return c.pdfDocument=new o.PDFDocument(h(c),u),c._loadedStreamPromise=Promise.resolve(u),c}return f(r,[{key:"ensure",value:function(){var e=b(regeneratorRuntime.mark((function e(t,r,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t[r],"function"!==typeof a){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 t(t,r,n){return e.apply(this,arguments)}return t}()},{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){}}]),r}(l);t.LocalPdfManager=c;var u=function(e){g(r,e);var t=v(r);function r(e,n,i,s,l){var c;return p(this,r),c=t.call(this),c._docId=e,c._password=i.password,c._docBaseUrl=l,c.msgHandler=i.msgHandler,c.evaluatorOptions=s,c.streamManager=new a.ChunkedStreamManager(n,{msgHandler:i.msgHandler,length:i.length,disableAutoFetch:i.disableAutoFetch,rangeChunkSize:i.rangeChunkSize}),c.pdfDocument=new o.PDFDocument(h(c),c.streamManager.getStream()),c}return f(r,[{key:"ensure",value:function(){var e=b(regeneratorRuntime.mark((function e(t,r,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,a=t[r],"function"!==typeof a){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 i.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 t(t,r,n){return e.apply(this,arguments)}return t}()},{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)}}]),r}(l);t.NetworkPdfManager=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var n=r(2),a=r(7),i=function(){function e(t,r,n){p(this,e),this.bytes=new Uint8Array(t),this.start=0,this.pos=0,this.end=t,this.chunkSize=r,this.loadedChunks=[],this.numChunksLoaded=0,this.numChunks=Math.ceil(t/r),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}return f(e,[{key:"getMissingChunks",value:function(){for(var e=[],t=0,r=this.numChunks;t<r;++t)this.loadedChunks[t]||e.push(t);return e}},{key:"getBaseStreams",value:function(){return[this]}},{key:"allChunksLoaded",value: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[o]||(this.loadedChunks[o]=!0,++this.numChunksLoaded)}},{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[a]||(this.loadedChunks[a]=!0,++this.numChunksLoaded)}},{key:"ensureByte",value:function(e){if(!(e<this.progressiveDataLength)){var t=Math.floor(e/this.chunkSize);if(t!==this.lastSuccessfulEnsureByteChunk){if(!this.loadedChunks[t])throw new a.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),i=Math.floor((t-1)/r)+1,o=n;o<i;++o)if(!this.loadedChunks[o])throw new a.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[n])return n}return null}},{key:"hasChunk",value:function(e){return!!this.loadedChunks[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:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){var e=this.getByte(),t=this.getByte(),r=this.getByte(),n=this.getByte();return(e<<24)+(t<<16)+(r<<8)+n}},{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:"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:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"skip",value:function(e){e||(e=1),this.pos+=e}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t,r){function 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[a]||n.push(a);return n},n.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length};var a=new n;return a.pos=a.start=e,a.end=e+t||this.end,a.dict=r,a}},{key:"length",get:function(){return this.end-this.start}},{key:"isEmpty",get:function(){return 0===this.length}}]),e}();t.ChunkedStream=i;var o=function(){function e(t,r){p(this,e),this.length=r.length,this.chunkSize=r.rangeChunkSize,this.stream=new i(this.length,this.chunkSize,this),this.pdfNetworkStream=t,this.disableAutoFetch=r.disableAutoFetch,this.msgHandler=r.msgHandler,this.currRequestId=0,this.chunksNeededByRequest=Object.create(null),this.requestsByChunk=Object.create(null),this.promisesByRequest=Object.create(null),this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,n.createPromiseCapability)()}return f(e,[{key:"onLoadedStream",value:function(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function(e,t){var r=this,a=this.pdfNetworkStream.getRangeReader(e,t);a.isStreamingSupported||(a.onProgress=this.onProgress.bind(this));var i=[],o=0,s=new Promise((function(e,t){var s=function s(l){try{if(!l.done){var c=l.value;return i.push(c),o+=(0,n.arrayByteLength)(c),a.isStreamingSupported&&r.onProgress({loaded:o}),void a.read().then(s,t)}var u=(0,n.arraysToBytes)(i);i=null,e(u)}catch(d){t(d)}};a.read().then(s,t)}));s.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.currRequestId++,r=Object.create(null);this.chunksNeededByRequest[t]=r;var a,i=d(e);try{for(i.s();!(a=i.n()).done;){var o=a.value;this.stream.hasChunk(o)||(r[o]=!0)}}catch(m){i.e(m)}finally{i.f()}if((0,n.isEmptyObj)(r))return Promise.resolve();var s=(0,n.createPromiseCapability)();this.promisesByRequest[t]=s;var l=[];for(var c in r)c|=0,c in this.requestsByChunk||(this.requestsByChunk[c]=[],l.push(c)),this.requestsByChunk[c].push(t);if(!l.length)return s.promise;var u,h=this.groupChunks(l),f=d(h);try{for(f.s();!(u=f.n()).done;){var p=u.value,g=p.beginChunk*this.chunkSize,v=Math.min(p.endChunk*this.chunkSize,this.length);this.sendRequest(g,v)}}catch(m){f.e(m)}finally{f.f()}return s.promise}},{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=d(t);try{for(n.s();!(e=n.n()).done;)for(var a=e.value,i=this.getBeginChunk(a.begin),o=this.getEndChunk(a.end),s=i;s<o;++s)r.includes(s)||r.push(s)}catch(l){n.e(l)}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,a=r?this.progressiveDataLength:e.begin,i=a+t.byteLength,o=Math.floor(a/this.chunkSize),s=i<this.length?Math.floor(i/this.chunkSize):Math.ceil(i/this.chunkSize);r?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=i):this.stream.onReceiveData(a,t),this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);for(var l=[],c=o;c<s;++c){var u=this.requestsByChunk[c]||[];delete this.requestsByChunk[c];var h,f=d(u);try{for(f.s();!(h=f.n()).done;){var p=h.value,g=this.chunksNeededByRequest[p];c in g&&delete g[c],(0,n.isEmptyObj)(g)&&l.push(p)}}catch(k){f.e(k)}finally{f.f()}}if(!this.disableAutoFetch&&(0,n.isEmptyObj)(this.requestsByChunk)){var v;if(1===this.stream.numChunksLoaded){var m=this.stream.numChunks-1;this.stream.hasChunk(m)||(v=m)}else v=this.stream.nextEmptyChunk(s);Number.isInteger(v)&&this._requestChunks([v])}for(var b=0,y=l;b<y.length;b++){var w=y[b],_=this.promisesByRequest[w];delete this.promisesByRequest[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){for(var t in this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e),this.promisesByRequest)this.promisesByRequest[t].reject(e)}}]),e}();t.ChunkedStreamManager=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLookupTableFactory=a,t.getInheritableProperty=l,t.toRomanNumerals=u,t.log2=d,t.readInt8=h,t.readUint16=f,t.readUint32=m,t.isWhiteSpace=b,t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var n=r(2);function a(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}}var i=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,"Missing data [".concat(e,", ").concat(n,")")),a.begin=e,a.end=n,a}return r}(n.BaseException);t.MissingDataException=i;var o=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(n.BaseException);t.XRefEntryException=o;var s=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(n.BaseException);function l(e){var t,r=e.dict,a=e.key,i=e.getArray,o=void 0!==i&&i,s=e.stopWhenFound,l=void 0===s||s,c=100,u=0;while(r){var d=o?r.getArray(a):r.get(a);if(void 0!==d){if(l)return d;t||(t=[]),t.push(d)}if(++u>c){(0,n.warn)('getInheritableProperty: maximum loop count exceeded for "'.concat(a,'"'));break}r=r.get("Parent")}return t}t.XRefParseException=s;var c=["","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 u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,n.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");var r,a=[];while(e>=1e3)e-=1e3,a.push("M");r=e/100|0,e%=100,a.push(c[r]),r=e/10|0,e%=10,a.push(c[10+r]),a.push(c[20+e]);var i=a.join("");return t?i.toLowerCase():i}function d(e){return e<=0?0:Math.ceil(Math.log2(e))}function h(e,t){return e[t]<<24>>24}function f(e,t){return e[t]<<8|e[t+1]}function m(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function b(e){return 32===e||9===e||13===e||10===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var n=r(2),a=r(9),i=r(4),o=r(7),s=r(11),l=r(23),c=r(21),u=r(10),h=r(24),g=r(25),v=r(39),y=1,w=[0,0,612,792];function _(e,t){return"display"===t&&e.viewable||"print"===t&&e.printable}var k=function(){function e(t){var r=t.pdfManager,n=t.xref,a=t.pageIndex,i=t.pageDict,o=t.ref,s=t.fontCache,l=t.builtInCMapCache,c=t.pdfFunctionFactory;p(this,e),this.pdfManager=r,this.pageIndex=a,this.pageDict=i,this.xref=n,this.ref=o,this.fontCache=s,this.builtInCMapCache=l,this.pdfFunctionFactory=c,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null;var u={obj:0};this.idFactory={createObjId:function(){return"p".concat(a,"_").concat(++u.obj)},getDocId:function(){return"g_".concat(r.docId)}}}return f(e,[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,o.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&(0,i.isDict)(r[0])?i.Dict.merge(this.xref,r):r[0]:r}},{key:"_getBoundingBox",value:function(e){var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!==0&&t[3]-t[1]!==0)return t;(0,n.warn)("Empty /".concat(e," entry."))}return null}},{key:"getContentStream",value:function(){var e,t=this.content;if(Array.isArray(t)){var r,n=this.xref,a=[],o=d(t);try{for(o.s();!(r=o.n()).done;){var l=r.value;a.push(n.fetchIfRef(l))}}catch(c){o.e(c)}finally{o.f()}e=new s.StreamsSequenceStream(a)}else e=(0,i.isStream)(t)?t:new s.NullStream;return e}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){var r=new a.ObjectLoader(t.resources,e,t.xref);return r.load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,a=e.sink,i=e.task,o=e.intent,s=e.renderInteractiveForms,l=this.pdfManager.ensure(this,"getContentStream"),c=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),u=new g.PartialEvaluator({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),f=Promise.all([l,c]),p=f.then((function(e){var n=m(e,1),s=n[0],l=new h.OperatorList(o,a,t.pageIndex);return r.send("StartRenderPage",{transparency:u.hasBlendModes(t.resources),pageIndex:t.pageIndex,intent:o}),u.getOperatorList({stream:s,task:i,resources:t.resources,operatorList:l}).then((function(){return l}))}));return Promise.all([p,this._parsedAnnotations]).then((function(e){var t=m(e,2),r=t[0],a=t[1];if(0===a.length)return r.flush(!0),{length:r.totalLength};var l,c=[],h=d(a);try{for(h.s();!(l=h.n()).done;){var f=l.value;_(f,o)&&c.push(f.getOperatorList(u,i,s))}}catch(p){h.e(p)}finally{h.f()}return Promise.all(c).then((function(e){r.addOp(n.OPS.beginAnnotations,[]);var t,a=d(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;r.addOpList(i)}}catch(p){a.e(p)}finally{a.f()}return r.addOp(n.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.sink,o=e.combineTextItems,s=this.pdfManager.ensure(this,"getContentStream"),l=this.loadResources(["ExtGState","XObject","Font"]),c=Promise.all([s,l]);return c.then((function(e){var s=m(e,1),l=s[0],c=new g.PartialEvaluator({xref:t.xref,handler:r,pageIndex:t.pageIndex,idFactory:t.idFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,options:t.evaluatorOptions,pdfFunctionFactory:t.pdfFunctionFactory});return c.getTextContent({stream:l,task:n,resources:t.resources,normalizeWhitespace:a,combineTextItems:o,sink:i})}))}},{key:"getAnnotationsData",value:function(e){return this._parsedAnnotations.then((function(t){for(var r=[],n=0,a=t.length;n<a;n++)e&&!_(t[n],e)||r.push(t[n].data);return r}))}},{key:"content",get:function(){return this.pageDict.get("Contents")}},{key:"resources",get:function(){return(0,n.shadow)(this,"resources",this._getInheritableProperty("Resources")||i.Dict.empty)}},{key:"mediaBox",get:function(){return(0,n.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||w)}},{key:"cropBox",get:function(){return(0,n.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return(!(0,n.isNum)(e)||e<=0)&&(e=y),(0,n.shadow)(this,"userUnit",e)}},{key:"view",get:function(){var e,t=this.cropBox,r=this.mediaBox;if(t===r||(0,n.isArrayEqual)(t,r))e=r;else{var a=n.Util.intersect(t,r);a&&a[2]-a[0]!==0&&a[3]-a[1]!==0?e=a:(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.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,n.shadow)(this,"rotate",e)}},{key:"annotations",get:function(){return(0,n.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}},{key:"_parsedAnnotations",get:function(){var e=this,t=this.pdfManager.ensure(this,"annotations").then((function(){for(var t=e.annotations,r=[],a=0,i=t.length;a<i;a++)r.push(l.AnnotationFactory.create(e.xref,t[a],e.pdfManager,e.idFactory));return Promise.all(r).then((function(e){return e.filter((function(e){return!!e}))}),(function(e){return(0,n.warn)('_parsedAnnotations: "'.concat(e,'".')),[]}))}));return(0,n.shadow)(this,"_parsedAnnotations",t)}}]),e}();t.Page=k;var x=new Uint8Array([37,80,68,70,45]),S=new Uint8Array([115,116,97,114,116,120,114,101,102]),A=new Uint8Array([101,110,100,111,98,106]),C=1024,P="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",T=/^[1-9]\.[0-9]$/;function E(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){var s=a-1,l=i.length-1;while(l>=s){var c=0;while(c<a&&i[l-c]===t[s-c])c++;if(c>=a)return e.pos+=l-s,!0;l--}}else{var u=0;while(u<=o){var d=0;while(d<a&&i[u+d]===t[d])d++;if(d>=a)return e.pos+=u,!0;u++}}return!1}var R=function(){function e(t,r){var o;if(p(this,e),(0,i.isStream)(r))o=r;else{if(!(0,n.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");o=new s.Stream(r)}if(o.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=o,this.xref=new a.XRef(o,t),this.pdfFunctionFactory=new v.PDFFunctionFactory({xref:this.xref,isEvalSupported:t.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}return f(e,[{key:"parse",value:function(e){this.setup(e);var t=this.catalog.catDict.get("Version");(0,i.isName)(t)&&(this.pdfFormatVersion=t.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");var r=this.acroForm.get("Fields");Array.isArray(r)&&0!==r.length||this.xfa||(this.acroForm=null)}}catch(s){if(s instanceof o.MissingDataException)throw s;(0,n.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{var a=this.catalog.catDict.get("Collection");(0,i.isDict)(a)&&a.getKeys().length>0&&(this.collection=a)}catch(s){if(s instanceof o.MissingDataException)throw s;(0,n.info)("Cannot fetch Collection dictionary.")}}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),E(e,x)){e.moveStart();var t,r=12,n="";while((t=e.getByte())>32){if(n.length>=r)break;n+=String.fromCharCode(t)}this.pdfFormatVersion||(this.pdfFormatVersion=n.substring(5))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"setup",value:function(e){this.xref.parse(e),this.catalog=new a.Catalog(this.pdfManager,this.xref)}},{key:"_getLinearizationPage",value:function(e){var t=this.catalog,r=this.linearization;(0,n.assert)(r&&r.pageFirst===e);var a=i.Ref.get(r.objectNumberFirst,0);return this.xref.fetchAsync(a).then((function(e){if((0,i.isDict)(e,"Page")||(0,i.isDict)(e)&&!e.has("Type")&&e.has("Contents"))return a&&!t.pageKidsCountCache.has(a)&&t.pageKidsCountCache.put(a,1),[e,a];throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})).catch((function(r){return(0,n.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,a=n&&n.pageFirst===e?this._getLinearizationPage(e):r.getPageDict(e);return this._pagePromises[e]=a.then((function(n){var a=m(n,2),i=a[0],o=a[1];return new k({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:i,ref:o,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,pdfFunctionFactory:t.pdfFunctionFactory})}))}},{key:"checkFirstPage",value:function(){var e=this;return this.getPage(0).catch(function(){var t=b(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(r instanceof o.XRefEntryException)){t.next=5;break}return e._pagePromises.length=0,t.next=4,e.cleanup();case 4:throw new o.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:function(){var e=b(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.catalog?this.catalog.cleanup():(0,i.clearPrimitiveCaches)());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linearization",get:function(){var e=null;try{e=u.Linearization.create(this.stream)}catch(t){if(t instanceof o.MissingDataException)throw t;(0,n.info)(t)}return(0,n.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),E(e,A)&&(t=e.pos+6-e.start);else{var r=1024,a=S.length,i=!1,s=e.end;while(!i&&s>0)s-=r-a,s<0&&(s=0),e.pos=s,i=E(e,S,r,!0);if(i){var l;e.skip(9);do{l=e.getByte()}while((0,o.isWhiteSpace)(l));var c="";while(l>=32&&l<=57)c+=String.fromCharCode(l),l=e.getByte();t=parseInt(c,10),isNaN(t)&&(t=0)}}return(0,n.shadow)(this,"startXRef",t)}},{key:"numPages",get:function(){var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,n.shadow)(this,"numPages",t)}},{key:"documentInfo",get:function(){var e={Title:n.isString,Author:n.isString,Subject:n.isString,Keywords:n.isString,Creator:n.isString,Producer:n.isString,CreationDate:n.isString,ModDate:n.isString,Trapped:i.isName},t=this.pdfFormatVersion;"string"===typeof t&&T.test(t)||((0,n.warn)("Invalid PDF header version number: ".concat(t)),t=null);var r,a={PDFFormatVersion:t,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};try{r=this.xref.trailer.get("Info")}catch(f){if(f instanceof o.MissingDataException)throw f;(0,n.info)("The document information dictionary is invalid.")}if((0,i.isDict)(r)){var s,l=d(r.getKeys());try{for(l.s();!(s=l.n()).done;){var c=s.value,u=r.get(c);if(e[c])e[c](u)?a[c]="string"!==typeof u?u:(0,n.stringToPDFString)(u):(0,n.info)('Bad value in document info for "'.concat(c,'".'));else if("string"===typeof c){var h=void 0;if((0,n.isString)(u))h=(0,n.stringToPDFString)(u);else{if(!((0,i.isName)(u)||(0,n.isNum)(u)||(0,n.isBool)(u))){(0,n.info)('Unsupported value in document info for (custom) "'.concat(c,'".'));continue}h=u}a["Custom"]||(a["Custom"]=Object.create(null)),a["Custom"][c]=h}}}catch(f){l.e(f)}finally{l.f()}}return(0,n.shadow)(this,"documentInfo",a)}},{key:"fingerprint",get:function(){var e,t=this.xref.trailer.get("ID");e=Array.isArray(t)&&t[0]&&(0,n.isString)(t[0])&&t[0]!==P?(0,n.stringToBytes)(t[0]):(0,c.calculateMD5)(this.stream.getByteRange(0,C),0,C);for(var r=[],a=0,i=e.length;a<i;a++){var o=e[a].toString(16);r.push(o.padStart(2,"0"))}return(0,n.shadow)(this,"fingerprint",r.join(""))}}]),e}();t.PDFDocument=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=t.XRef=t.ObjectLoader=t.Catalog=void 0;var n=r(2),a=r(4),i=r(10),o=r(7),s=r(21),l=r(22);function c(e){return(0,a.isDict)(e)?e.get("D"):e}var u=function(){function e(t,r){if(p(this,e),this.pdfManager=t,this.xref=r,this.catDict=r.getCatalogObj(),!(0,a.isDict)(this.catDict))throw new n.FormatError("Catalog object is not a dictionary.");this.fontCache=new a.RefSetCache,this.builtInCMapCache=new Map,this.pageKidsCountCache=new a.RefSetCache}return f(e,[{key:"_readDocumentOutline",value:function(){var t=this.catDict.get("Outlines");if(!(0,a.isDict)(t))return null;if(t=t.getRaw("First"),!(0,a.isRef)(t))return null;var r={items:[]},i=[{obj:t,parent:r}],o=new a.RefSet;o.put(t);var s=this.xref,c=new Uint8ClampedArray(3);while(i.length>0){var u=i.shift(),d=s.fetchIfRef(u.obj);if(null!==d){if(!d.has("Title"))throw new n.FormatError("Invalid outline item encountered.");var h={url:null,dest:null};e.parseDestDictionary({destDict:d,resultObj:h,docBaseUrl:this.pdfManager.docBaseUrl});var f=d.get("Title"),p=d.get("F")||0,g=d.getArray("C"),v=d.get("Count"),m=c;!Array.isArray(g)||3!==g.length||0===g[0]&&0===g[1]&&0===g[2]||(m=l.ColorSpace.singletons.rgb.getRgb(g,0));var b={dest:h.dest,url:h.url,unsafeUrl:h.unsafeUrl,newWindow:h.newWindow,title:(0,n.stringToPDFString)(f),color:m,count:Number.isInteger(v)?v:void 0,bold:!!(2&p),italic:!!(1&p),items:[]};u.parent.items.push(b),t=d.getRaw("First"),(0,a.isRef)(t)&&!o.has(t)&&(i.push({obj:t,parent:b}),o.put(t)),t=d.getRaw("Next"),(0,a.isRef)(t)&&!o.has(t)&&(i.push({obj:t,parent:u.parent}),o.put(t))}}return r.items.length>0?r.items:null}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(0,a.isDict)(e))return null;var t=e.get("P");if(!(0,n.isNum)(t))return null;t+=Math.pow(2,32);var r=[];for(var i in n.PermissionFlag){var o=n.PermissionFlag[i];t&o&&r.push(o)}return r}},{key:"getDestination",value:function(e){var t=this._readDests();return t instanceof _||t instanceof a.Dict?c(t.get(e)||null):null}},{key:"_readDests",value:function(){var e=this.catDict.get("Names");return e&&e.has("Dests")?new _(e.getRaw("Dests"),this.xref):this.catDict.has("Dests")?this.catDict.get("Dests"):void 0}},{key:"_readPageLabels",value:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,i="",s=new k(e,this.xref),l=s.getAll(),c="",u=1,d=0,h=this.numPages;d<h;d++){if(d in l){var f=l[d];if(!(0,a.isDict)(f))throw new n.FormatError("PageLabel is not a dictionary.");if(f.has("Type")&&!(0,a.isName)(f.get("Type"),"PageLabel"))throw new n.FormatError("Invalid type in PageLabel dictionary.");if(f.has("S")){var p=f.get("S");if(!(0,a.isName)(p))throw new n.FormatError("Invalid style in PageLabel dictionary.");r=p.name}else r=null;if(f.has("P")){var g=f.get("P");if(!(0,n.isString)(g))throw new n.FormatError("Invalid prefix in PageLabel dictionary.");i=(0,n.stringToPDFString)(g)}else i="";if(f.has("St")){var v=f.get("St");if(!(Number.isInteger(v)&&v>=1))throw new n.FormatError("Invalid start in PageLabel dictionary.");u=v}else u=1}switch(r){case"D":c=u;break;case"R":case"r":c=(0,o.toRomanNumerals)(u,"r"===r);break;case"A":case"a":for(var m=26,b=65,y=97,w="a"===r?y:b,_=u-1,x=String.fromCharCode(w+_%m),S=[],A=0,C=_/m|0;A<=C;A++)S.push(x);c=S.join("");break;default:if(r)throw new n.FormatError('Invalid style "'.concat(r,'" in PageLabel dictionary.'));c=""}t[d]=i+c,u++}return t}},{key:"fontFallback",value:function(e,t){var r=[];return this.fontCache.forEach((function(e){r.push(e)})),Promise.all(r).then((function(r){var n,a=d(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.loadedName===e)return void i.fallback(t)}}catch(o){a.e(o)}finally{a.f()}}))}},{key:"cleanup",value:function(){var e=this;(0,a.clearPrimitiveCaches)(),this.pageKidsCountCache.clear();var t=[];return this.fontCache.forEach((function(e){t.push(e)})),Promise.all(t).then((function(t){var r,n=d(t);try{for(n.s();!(r=n.n()).done;){var a=r.value.dict;delete a.translated}}catch(i){n.e(i)}finally{n.f()}e.fontCache.clear(),e.builtInCMapCache.clear()}))}},{key:"getPageDict",value:function(e){var t,r=(0,n.createPromiseCapability)(),i=[this.catDict.getRaw("Pages")],o=new a.RefSet,s=this.xref,l=this.pageKidsCountCache,c=0;function u(){var d=function(){var d=i.pop();if((0,a.isRef)(d))return t=l.get(d),t>0&&c+t<e?(c+=t,"continue"):o.has(d)?(r.reject(new n.FormatError("Pages tree contains circular reference.")),{v:void 0}):(o.put(d),s.fetchAsync(d).then((function(t){(0,a.isDict)(t,"Page")||(0,a.isDict)(t)&&!t.has("Kids")?e===c?(d&&!l.has(d)&&l.put(d,1),r.resolve([t,d])):(c++,u()):(i.push(t),u())}),r.reject),{v:void 0});if(!(0,a.isDict)(d))return r.reject(new n.FormatError("Page dictionary kid reference points to wrong type of object.")),{v:void 0};if(t=d.get("Count"),Number.isInteger(t)&&t>=0){var h=d.objId;if(h&&!l.has(h)&&l.put(h,t),c+t<=e)return c+=t,"continue"}var f=d.get("Kids");if(!Array.isArray(f))return(0,a.isName)(d.get("Type"),"Page")||!d.has("Type")&&d.has("Contents")?c===e?(r.resolve([d,null]),{v:void 0}):(c++,"continue"):(r.reject(new n.FormatError("Page dictionary kids object is not an array.")),{v:void 0});for(var p=f.length-1;p>=0;p--)i.push(f[p])};while(i.length){var h=d();if("continue"!==h&&"object"===y(h))return h.v}r.reject(new Error("Page index ".concat(e," not found.")))}return u(),r.promise}},{key:"getPageIndex",value:function(e){var t=this.xref;function r(r){var i,o=0;return t.fetchAsync(r).then((function(t){if((0,a.isRefsEqual)(r,e)&&!(0,a.isDict)(t,"Page")&&(!(0,a.isDict)(t)||t.has("Type")||!t.has("Contents")))throw new n.FormatError("The reference does not point to a /Page dictionary.");if(!t)return null;if(!(0,a.isDict)(t))throw new n.FormatError("Node must be a dictionary.");return i=t.getRaw("Parent"),t.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(0,a.isDict)(e))throw new n.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;for(var s=[],l=!1,c=0,u=e.length;c<u;c++){var d=e[c];if(!(0,a.isRef)(d))throw new n.FormatError("Kid must be a reference.");if((0,a.isRefsEqual)(d,r)){l=!0;break}s.push(t.fetchAsync(d).then((function(e){if(!(0,a.isDict)(e))throw new n.FormatError("Kid node must be a dictionary.");e.has("Count")?o+=e.get("Count"):o++})))}if(!l)throw new n.FormatError("Kid reference not found in parent's kids.");return Promise.all(s).then((function(){return[o,i]}))}))}var i=0;function o(e){return r(e).then((function(e){if(!e)return i;var t=m(e,2),r=t[0],n=t[1];return i+=r,o(n)}))}return o(e)}},{key:"metadata",get:function(){var e=this.catDict.getRaw("Metadata");if(!(0,a.isRef)(e))return(0,n.shadow)(this,"metadata",null);var t,r=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),i=this.xref.fetch(e,r);if(i&&(0,a.isDict)(i.dict)){var s=i.dict.get("Type"),l=i.dict.get("Subtype");if((0,a.isName)(s,"Metadata")&&(0,a.isName)(l,"XML"))try{t=(0,n.stringToUTF8String)((0,n.bytesToString)(i.getBytes()))}catch(c){if(c instanceof o.MissingDataException)throw c;(0,n.info)("Skipping invalid metadata.")}}return(0,n.shadow)(this,"metadata",t)}},{key:"toplevelPagesDict",get:function(){var e=this.catDict.get("Pages");if(!(0,a.isDict)(e))throw new n.FormatError("Invalid top-level pages dictionary.");return(0,n.shadow)(this,"toplevelPagesDict",e)}},{key:"documentOutline",get:function(){var e=null;try{e=this._readDocumentOutline()}catch(t){if(t instanceof o.MissingDataException)throw t;(0,n.warn)("Unable to read document outline.")}return(0,n.shadow)(this,"documentOutline",e)}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(t){if(t instanceof o.MissingDataException)throw t;(0,n.warn)("Unable to read permissions.")}return(0,n.shadow)(this,"permissions",e)}},{key:"numPages",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new n.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,n.shadow)(this,"numPages",e)}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof _){var r=e.getAll();for(var i in r)t[i]=c(r[i])}else e instanceof a.Dict&&e.forEach((function(e,r){r&&(t[e]=c(r))}));return(0,n.shadow)(this,"destinations",t)}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(t){if(t instanceof o.MissingDataException)throw t;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)}},{key:"pageLayout",get:function(){var e=this.catDict.get("PageLayout"),t="";if((0,a.isName)(e))switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,n.shadow)(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this.catDict.get("PageMode"),t="UseNone";if((0,a.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,n.shadow)(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t={HideToolbar:n.isBool,HideMenubar:n.isBool,HideWindowUI:n.isBool,FitWindow:n.isBool,CenterWindow:n.isBool,DisplayDocTitle:n.isBool,NonFullScreenPageMode:a.isName,Direction:a.isName,ViewArea:a.isName,ViewClip:a.isName,PrintArea:a.isName,PrintClip:a.isName,PrintScaling:a.isName,Duplex:a.isName,PickTrayByPDFSize:n.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},r=this.catDict.get("ViewerPreferences"),i=Object.create(null);if((0,a.isDict)(r))for(var o in t)if(r.has(o)){var s=r.get(o);if(t[o](s)){var l=void 0;switch(o){case"NonFullScreenPageMode":switch(s.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":l=s.name;break;default:l="UseNone"}break;case"Direction":switch(s.name){case"L2R":case"R2L":l=s.name;break;default:l="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(s.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":l=s.name;break;default:l="CropBox"}break;case"PrintScaling":switch(s.name){case"None":case"AppDefault":l=s.name;break;default:l="AppDefault"}break;case"Duplex":switch(s.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":l=s.name;break;default:l="None"}break;case"PrintPageRange":var c=s.length;if(c%2!==0)break;var u=s.every((function(t,r,n){return Number.isInteger(t)&&t>0&&(0===r||t>=n[r-1])&&t<=e.numPages}));u&&(l=s);break;case"NumCopies":s>0&&(l=s);break;default:(0,n.assert)("boolean"===typeof s),l=s}void 0!==l?i[o]=l:(0,n.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}else(0,n.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}return(0,n.shadow)(this,"viewerPreferences",i)}},{key:"openAction",get:function(){var t=this.catDict.get("OpenAction"),r=null;if((0,a.isDict)(t)){var i=new a.Dict(this.xref);i.set("A",t);var o={url:null,dest:null,action:null};e.parseDestDictionary({destDict:i,resultObj:o}),Array.isArray(o.dest)?(r||(r=Object.create(null)),r.dest=o.dest):o.action&&(r||(r=Object.create(null)),r.action=o.action)}else Array.isArray(t)&&(r||(r=Object.create(null)),r.dest=t);return(0,n.shadow)(this,"openAction",r)}},{key:"attachments",get:function(){var e=this.catDict.get("Names"),t=null;if(e&&e.has("EmbeddedFiles")){var r=new _(e.getRaw("EmbeddedFiles"),this.xref),a=r.getAll();for(var i in a){var o=new x(a[i],this.xref);t||(t=Object.create(null)),t[(0,n.stringToPDFString)(i)]=o.serializable}}return(0,n.shadow)(this,"attachments",t)}},{key:"javaScript",get:function(){var e=this.catDict.get("Names"),t=null;function r(e){var r=e.get("S");if((0,a.isName)(r,"JavaScript")){var i=e.get("JS");if((0,a.isStream)(i))i=(0,n.bytesToString)(i.getBytes());else if(!(0,n.isString)(i))return;t||(t=[]),t.push((0,n.stringToPDFString)(i))}}if(e&&e.has("JavaScript")){var i=new _(e.getRaw("JavaScript"),this.xref),o=i.getAll();for(var s in o){var l=o[s];(0,a.isDict)(l)&&r(l)}}var c=this.catDict.get("OpenAction");return(0,a.isDict)(c)&&(0,a.isName)(c.get("S"),"JavaScript")&&r(c),(0,n.shadow)(this,"javaScript",t)}}],[{key:"parseDestDictionary",value:function(e){function t(e){return e.startsWith("www.")?"http://".concat(e):e}function r(e){try{return(0,n.stringToUTF8String)(e)}catch(t){return e}}var i=e.destDict;if((0,a.isDict)(i)){var o=e.resultObj;if("object"===y(o)){var s,l,c=e.docBaseUrl||null,u=i.get("A");if(!(0,a.isDict)(u)&&i.has("Dest")&&(u=i.get("Dest")),(0,a.isDict)(u)){var d=u.get("S");if(!(0,a.isName)(d))return void(0,n.warn)("parseDestDictionary: Invalid type in Action dictionary.");var h=d.name;switch(h){case"URI":s=u.get("URI"),(0,a.isName)(s)?s="/"+s.name:(0,n.isString)(s)&&(s=t(s));break;case"GoTo":l=u.get("D");break;case"Launch":case"GoToR":var f=u.get("F");(0,a.isDict)(f)?s=f.get("F")||null:(0,n.isString)(f)&&(s=f);var p=u.get("D");if(p&&((0,a.isName)(p)&&(p=p.name),(0,n.isString)(s))){var g=s.split("#")[0];(0,n.isString)(p)?s=g+"#"+p:Array.isArray(p)&&(s=g+"#"+JSON.stringify(p))}var v=u.get("NewWindow");(0,n.isBool)(v)&&(o.newWindow=v);break;case"Named":var m=u.get("N");(0,a.isName)(m)&&(o.action=m.name);break;case"JavaScript":var b,w=u.get("JS");if((0,a.isStream)(w)?b=(0,n.bytesToString)(w.getBytes()):(0,n.isString)(w)&&(b=w),b){var _=["app.launchURL","window.open"],k=new RegExp("^\\s*("+_.join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i"),x=k.exec((0,n.stringToPDFString)(b));if(x&&x[2]){s=x[2],"true"===x[3]&&"app.launchURL"===x[1]&&(o.newWindow=!0);break}}default:(0,n.warn)('parseDestDictionary: unsupported action type "'.concat(h,'".'));break}}else i.has("Dest")&&(l=i.get("Dest"));if((0,n.isString)(s)){s=r(s);var S=(0,n.createValidAbsoluteUrl)(s,c);S&&(o.url=S.href),o.unsafeUrl=s}l&&((0,a.isName)(l)&&(l=l.name),((0,n.isString)(l)||Array.isArray(l))&&(o.dest=l))}else(0,n.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,n.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]),e}();t.Catalog=u;var h=function(){function e(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){var t,r,i;e?((0,n.warn)("Indexing all PDF objects"),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t;try{r=t.get("Encrypt")}catch(u){if(u instanceof o.MissingDataException)throw u;(0,n.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(u,'".'))}if((0,a.isDict)(r)){var l=t.get("ID"),c=l&&l.length?l[0]:"";r.suppressEncryption=!0,this.encrypt=new s.CipherTransformFactory(r,c,this.pdfManager.password)}try{i=t.get("Root")}catch(u){if(u instanceof o.MissingDataException)throw u;(0,n.warn)('XRef.parse - Invalid "Root" reference: "'.concat(u,'".'))}if(!(0,a.isDict)(i)||!i.has("Pages")){if(!e)throw new o.XRefParseException;throw new n.FormatError("Invalid root reference")}this.root=i},processXRefTable:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,a.isCmd)(t,"trailer"))throw new n.FormatError("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();if(!(0,a.isDict)(r)&&r.dict&&(r=r.dict),!(0,a.isDict)(r))throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,r},readXRefTable:function(e){var t,r=e.lexer.stream,i=this.tableState;r.pos=i.streamPos,e.buf1=i.parserBuf1,e.buf2=i.parserBuf2;while(1){if(!("firstEntryNum"in i)||!("entryCount"in i)){if((0,a.isCmd)(t=e.getObj(),"trailer"))break;i.firstEntryNum=t,i.entryCount=e.getObj()}var o=i.firstEntryNum,s=i.entryCount;if(!Number.isInteger(o)||!Number.isInteger(s))throw new n.FormatError("Invalid XRef table: wrong types in subsection header");for(var l=i.entryNum;l<s;l++){i.streamPos=r.pos,i.entryNum=l,i.parserBuf1=e.buf1,i.parserBuf2=e.buf2;var c={};c.offset=e.getObj(),c.gen=e.getObj();var u=e.getObj();if(u instanceof a.Cmd)switch(u.cmd){case"f":c.free=!0;break;case"n":c.uncompressed=!0;break}if(!Number.isInteger(c.offset)||!Number.isInteger(c.gen)||!c.free&&!c.uncompressed)throw new n.FormatError("Invalid entry in XRef subsection: ".concat(o,", ").concat(s));0===l&&c.free&&1===o&&(o=0),this.entries[l+o]||(this.entries[l+o]=c)}i.entryNum=0,i.streamPos=r.pos,i.parserBuf1=e.buf1,i.parserBuf2=e.buf2,delete i.firstEntryNum,delete i.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new n.FormatError("Invalid XRef table: unexpected first object");return t},processXRefStream: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},readXRefStream:function(e){var t,r,a=this.streamState;e.pos=a.streamPos;var i=a.byteWidths,o=i[0],s=i[1],l=i[2],c=a.entryRanges;while(c.length>0){var u=c[0],d=c[1];if(!Number.isInteger(u)||!Number.isInteger(d))throw new n.FormatError("Invalid XRef range fields: ".concat(u,", ").concat(d));if(!Number.isInteger(o)||!Number.isInteger(s)||!Number.isInteger(l))throw new n.FormatError("Invalid XRef entry fields length: ".concat(u,", ").concat(d));for(t=a.entryNum;t<d;++t){a.entryNum=t,a.streamPos=e.pos;var h=0,f=0,p=0;for(r=0;r<o;++r)h=h<<8|e.getByte();for(0===o&&(h=1),r=0;r<s;++r)f=f<<8|e.getByte();for(r=0;r<l;++r)p=p<<8|e.getByte();var g={};switch(g.offset=f,g.gen=p,h){case 0:g.free=!0;break;case 1:g.uncompressed=!0;break;case 2:break;default:throw new n.FormatError("Invalid XRef entry type: ".concat(h))}this.entries[u+t]||(this.entries[u+t]=g)}a.entryNum=0,a.streamPos=e.pos,c.splice(0,2)}},indexObjects:function(){var e=9,t=10,r=13,s=32,l=37,c=60;function u(e,n){var a="",i=e[n];while(i!==t&&i!==r&&i!==c){if(++n>=e.length)break;a+=String.fromCharCode(i),i=e[n]}return a}function d(e,t,r){var n=r.length,a=e.length,i=0;while(t<a){var o=0;while(o<n&&e[t+o]===r[o])++o;if(o>=n)break;t++,i++}return i}var h=/^(\d+)\s+(\d+)\s+obj\b/,f=/\bendobj[\b\s]$/,p=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,g=25,v=new Uint8Array([116,114,97,105,108,101,114]),m=new Uint8Array([115,116,97,114,116,120,114,101,102]),b=new Uint8Array([111,98,106]),y=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var w=this.stream;w.pos=0;var _,k,x,S=w.getBytes(),A=w.start,C=S.length,P=[],T=[];while(A<C){var E=S[A];if(E!==e&&E!==t&&E!==r&&E!==s)if(E!==l){var R,I=u(S,A);if(I.startsWith("xref")&&(4===I.length||/\s/.test(I[4])))A+=d(S,A,v),P.push(A),A+=d(S,A,m);else if(R=h.exec(I)){var O=0|R[1],L=0|R[2];this.entries[O]&&this.entries[O].gen!==L||(this.entries[O]={offset:A-w.start,gen:L,uncompressed:!0});var F=void 0,M=A+I.length;while(M<S.length){var D=M+d(S,M,b)+4;F=D-A;var N=Math.max(D-g,M),B=(0,n.bytesToString)(S.subarray(N,D));if(f.test(B))break;var U=p.exec(B);if(U&&U[1]){(0,n.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),F-=U[1].length;break}M=D}var j=S.subarray(A,A+F),q=d(j,0,y);q<F&&j[q+5]<64&&(T.push(A-w.start),this.xrefstms[A-w.start]=1),A+=F}else I.startsWith("trailer")&&(7===I.length||/\s/.test(I[7]))?(P.push(A),A+=d(S,A,m)):A+=I.length+1}else do{if(++A,A>=C)break;E=S[A]}while(E!==t&&E!==r);else++A}for(_=0,k=T.length;_<k;++_)this.startXRefQueue.push(T[_]),this.readXRef(!0);for(_=0,k=P.length;_<k;++_){w.pos=P[_];var z=new i.Parser({lexer:new i.Lexer(w),xref:this,allowStreams:!0,recoveryMode:!0}),V=z.getObj();if((0,a.isCmd)(V,"trailer")){var W=z.getObj();if((0,a.isDict)(W)){var H=void 0;try{H=W.get("Root")}catch(G){if(G instanceof o.MissingDataException)throw G;continue}if((0,a.isDict)(H)&&H.has("Pages")){if(W.has("ID"))return W;x=W}}}}if(x)return x;throw new n.InvalidPDFException("Invalid PDF structure.")},readXRef:function(e){var t=this.stream,r=Object.create(null);try{while(this.startXRefQueue.length){var s=this.startXRefQueue[0];if(r[s])(0,n.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();else{r[s]=!0,t.pos=s+t.start;var l,c=new i.Parser({lexer:new i.Lexer(t),xref:this,allowStreams:!0}),u=c.getObj();if((0,a.isCmd)(u,"xref")){if(l=this.processXRefTable(c),this.topDict||(this.topDict=l),u=l.get("XRefStm"),Number.isInteger(u)){var d=u;d in this.xrefstms||(this.xrefstms[d]=1,this.startXRefQueue.push(d))}}else{if(!Number.isInteger(u))throw new n.FormatError("Invalid XRef stream header");if(!Number.isInteger(c.getObj())||!(0,a.isCmd)(c.getObj(),"obj")||!(0,a.isStream)(u=c.getObj()))throw new n.FormatError("Invalid XRef stream");if(l=this.processXRefStream(u),this.topDict||(this.topDict=l),!l)throw new n.FormatError("Failed to read XRef stream")}u=l.get("Prev"),Number.isInteger(u)?this.startXRefQueue.push(u):(0,a.isRef)(u)&&this.startXRefQueue.push(u.num),this.startXRefQueue.shift()}}return this.topDict}catch(h){if(h instanceof o.MissingDataException)throw h;(0,n.info)("(while reading XRef): "+h)}if(!e)throw new o.XRefParseException},getEntry:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null},fetchIfRef:function(e,t){return e instanceof a.Ref?this.fetch(e,t):e},fetch:function(e,t){if(!(e instanceof a.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 a.Dict&&!n.objId&&(n.objId=e.toString()),n;var i=this.getEntry(r);return null===i?(this._cacheMap.set(r,i),i):(i=i.uncompressed?this.fetchUncompressed(e,i,t):this.fetchCompressed(e,i,t),(0,a.isDict)(i)?i.objId=e.toString():(0,a.isStream)(i)&&(i.dict.objId=e.toString()),i)},fetchUncompressed:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.gen,s=e.num;if(t.gen!==n)throw new o.XRefEntryException("Inconsistent generation in XRef: ".concat(e));var l=this.stream.makeSubStream(t.offset+this.stream.start),c=new i.Parser({lexer:new i.Lexer(l),xref:this,allowStreams:!0}),u=c.getObj(),d=c.getObj(),h=c.getObj();if(u!==s||d!==n||!(h instanceof a.Cmd))throw new o.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==h.cmd){if(h.cmd.startsWith("obj")&&(s=parseInt(h.cmd.substring(3),10),!Number.isNaN(s)))return s;throw new o.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return t=this.encrypt&&!r?c.getObj(this.encrypt.createCipherTransform(s,n)):c.getObj(),(0,a.isStream)(t)||this._cacheMap.set(s,t),t},fetchCompressed:function(e,t){var r=t.offset,s=this.fetch(a.Ref.get(r,0));if(!(0,a.isStream)(s))throw new n.FormatError("bad ObjStm stream");var l=s.dict.get("First"),c=s.dict.get("N");if(!Number.isInteger(l)||!Number.isInteger(c))throw new n.FormatError("invalid first and n parameters for ObjStm stream");for(var u=new i.Parser({lexer:new i.Lexer(s),xref:this,allowStreams:!0}),d=new Array(c),h=0;h<c;++h){var f=u.getObj();if(!Number.isInteger(f))throw new n.FormatError("invalid object number in the ObjStm stream: ".concat(f));var p=u.getObj();if(!Number.isInteger(p))throw new n.FormatError("invalid object offset in the ObjStm stream: ".concat(p));d[h]=f}for(var g=new Array(c),v=0;v<c;++v){var m=u.getObj();if(g[v]=m,u.buf1 instanceof a.Cmd&&"endobj"===u.buf1.cmd&&u.shift(),!(0,a.isStream)(m)){var b=d[v],y=this.entries[b];y&&y.offset===r&&y.gen===v&&this._cacheMap.set(b,m)}}if(t=g[t.gen],void 0===t)throw new o.XRefEntryException("Bad (compressed) XRef entry: ".concat(e));return t},fetchIfRefAsync:function(e,t){var r=this;return b(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!(e instanceof a.Ref)){n.next=2;break}return n.abrupt("return",r.fetchAsync(e,t));case 2:return n.abrupt("return",e);case 3:case"end":return n.stop()}}),n)})))()},fetchAsync:function(e,t){var r=this;return b(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.abrupt("return",r.fetch(e,t));case 4:if(n.prev=4,n.t0=n["catch"](0),n.t0 instanceof o.MissingDataException){n.next=8;break}throw n.t0;case 8:return n.next=10,r.pdfManager.requestRange(n.t0.begin,n.t0.end);case 10:return n.abrupt("return",r.fetchAsync(e,t));case 11:case"end":return n.stop()}}),n,null,[[0,4]])})))()},getCatalogObj:function(){return this.root}},e}();t.XRef=h;var w=function(){function e(t,r,a){p(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize NameOrNumberTree."),this.root=t,this.xref=r,this._type=a}return f(e,[{key:"getAll",value:function(){var e=Object.create(null);if(!this.root)return e;var t=this.xref,r=new a.RefSet;r.put(this.root);var i=[this.root];while(i.length>0){var o=t.fetchIfRef(i.shift());if((0,a.isDict)(o))if(o.has("Kids"))for(var s=o.get("Kids"),l=0,c=s.length;l<c;l++){var u=s[l];if(r.has(u))throw new n.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));i.push(u),r.put(u)}else{var d=o.get(this._type);if(Array.isArray(d))for(var h=0,f=d.length;h<f;h+=2)e[t.fetchIfRef(d[h])]=t.fetchIfRef(d[h+1])}}return e}},{key:"get",value:function(e){if(!this.root)return null;var t=this.xref,r=t.fetchIfRef(this.root),a=0,i=10;while(r.has("Kids")){if(++a>i)return(0,n.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var o=r.get("Kids");if(!Array.isArray(o))return null;var s=0,l=o.length-1;while(s<=l){var c=s+l>>1,u=t.fetchIfRef(o[c]),d=u.get("Limits");if(e<t.fetchIfRef(d[0]))l=c-1;else{if(!(e>t.fetchIfRef(d[1]))){r=t.fetchIfRef(o[c]);break}s=c+1}}if(s>l)return null}var h=r.get(this._type);if(Array.isArray(h)){var f=0,p=h.length-2;while(f<=p){var g=f+p>>1,v=g+(1&g),m=t.fetchIfRef(h[v]);if(e<m)p=v-2;else{if(!(e>m))return t.fetchIfRef(h[v+1]);f=v+2}}(0,n.info)('Falling back to an exhaustive search, for key "'.concat(e,'", ')+'in "'.concat(this._type,'" tree.'));for(var b=0,y=h.length;b<y;b+=2){var w=t.fetchIfRef(h[b]);if(w===e)return(0,n.warn)('The "'.concat(e,'" key was found at an incorrect, ')+'i.e. out-of-order, position in "'.concat(this._type,'" tree.')),t.fetchIfRef(h[b+1])}}return null}}]),e}(),_=function(e){g(r,e);var t=v(r);function r(e,n){return p(this,r),t.call(this,e,n,"Names")}return r}(w),k=function(e){g(r,e);var t=v(r);function r(e,n){return p(this,r),t.call(this,e,n,"Nums")}return r}(w),x=function(){function e(e,t){e&&(0,a.isDict)(e)&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,n.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,n.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,n.warn)("Non-embedded file specifications are not supported")))}function t(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}return e.prototype={get filename(){if(!this._filename&&this.root){var e=t(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=t(this.root.get("EF")));var e=null;if(this.contentRef){var r=this.xref,i=r.fetchIfRef(this.contentRef);i&&(0,a.isStream)(i)?e=i.getBytes():(0,n.warn)("Embedded file specification points to non-existing/invalid content")}else(0,n.warn)("Embedded file specification does not have a content");return e},get serializable(){return{filename:this.filename,content:this.content}}},e}();t.FileSpec=x;var S=function(){function e(e){return e instanceof a.Ref||e instanceof a.Dict||Array.isArray(e)||(0,a.isStream)(e)}function t(t,r){if(t instanceof a.Dict||(0,a.isStream)(t))for(var n=t instanceof a.Dict?t:t.dict,i=n.getKeys(),o=0,s=i.length;o<s;o++){var l=n.getRaw(i[o]);e(l)&&r.push(l)}else if(Array.isArray(t))for(var c=0,u=t.length;c<u;c++){var d=t[c];e(d)&&r.push(d)}}function r(e,t,r){this.dict=e,this.keys=t,this.xref=r,this.refSet=null}return r.prototype={load:function(){var e=this;return b(regeneratorRuntime.mark((function t(){var r,n,i,o,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.xref.stream.allChunksLoaded&&!e.xref.stream.allChunksLoaded()){t.next=2;break}return t.abrupt("return",void 0);case 2:for(r=e.keys,n=e.dict,e.refSet=new a.RefSet,i=[],o=0,s=r.length;o<s;o++)l=n.getRaw(r[o]),void 0!==l&&i.push(l);return t.abrupt("return",e._walk(i));case 7:case"end":return t.stop()}}),t)})))()},_walk:function(e){var r=this;return b(regeneratorRuntime.mark((function n(){var i,s,l,c,u,d,h,f,p,g,v;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i=[],s=[];case 2:if(!e.length){n.next=22;break}if(l=e.pop(),!(l instanceof a.Ref)){n.next=18;break}if(!r.refSet.has(l)){n.next=7;break}return n.abrupt("continue",2);case 7:n.prev=7,r.refSet.put(l),l=r.xref.fetch(l),n.next=18;break;case 12:if(n.prev=12,n.t0=n["catch"](7),n.t0 instanceof o.MissingDataException){n.next=16;break}throw n.t0;case 16:i.push(l),s.push({begin:n.t0.begin,end:n.t0.end});case 18:if(l&&l.getBaseStreams){for(c=l.getBaseStreams(),u=!1,d=0,h=c.length;d<h;d++)f=c[d],f.allChunksLoaded&&!f.allChunksLoaded()&&(u=!0,s.push({begin:f.start,end:f.end}));u&&i.push(l)}t(l,e),n.next=2;break;case 22:if(!s.length){n.next=27;break}return n.next=25,r.xref.stream.manager.requestRanges(s);case 25:for(p=0,g=i.length;p<g;p++)v=i[p],v instanceof a.Ref&&r.refSet.remove(v);return n.abrupt("return",r._walk(i));case 27:return r.refSet=null,n.abrupt("return",void 0);case 29:case"end":return n.stop()}}),n,null,[[7,12]])})))()}},r}();t.ObjectLoader=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var n=r(11),a=r(2),i=r(4),o=r(7),s=r(12),l=r(14),c=r(17),u=r(19),d=1e3,h=5552;function g(e){for(var t=e.length,r=1,n=0,a=0;a<t;++a)r+=255&e[a],n+=r;return n%65521<<16|r%65521}var v=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;p(this,e),this.lexer=r,this.xref=n,this.allowStreams=i,this.recoveryMode=s,this.imageCache=Object.create(null),this.refill()}return f(e,[{key:"refill",value:function(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}},{key:"shift",value:function(){this.buf2 instanceof i.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 o.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 i.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":var r=[];while(!(0,i.isCmd)(this.buf1,"]")&&!(0,i.isEOF)(this.buf1))r.push(this.getObj(e));if((0,i.isEOF)(this.buf1)){if(!this.recoveryMode)throw new a.FormatError("End of file inside array");return r}return this.shift(),r;case"<<":var n=new i.Dict(this.xref);while(!(0,i.isCmd)(this.buf1,">>")&&!(0,i.isEOF)(this.buf1))if((0,i.isName)(this.buf1)){var o=this.buf1.name;if(this.shift(),(0,i.isEOF)(this.buf1))break;n.set(o,this.getObj(e))}else(0,a.info)("Malformed dictionary: key must be a name object"),this.shift();if((0,i.isEOF)(this.buf1)){if(!this.recoveryMode)throw new a.FormatError("End of file inside dictionary");return n}return(0,i.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(n,e):n:(this.shift(),n);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,i.isCmd)(this.buf2,"R")){var s=i.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){var t,r,n=69,i=73,s=32,l=10,c=13,u=10,d=0,h=e.pos,f=0;while(-1!==(t=e.getByte()))if(0===f)f=t===n?1:0;else if(1===f)f=t===i?2:0;else if((0,a.assert)(2===f),t===s||t===l||t===c){r=e.pos;for(var p=e.peekBytes(u),g=0,v=p.length;g<v;g++)if(t=p[g],(t!==d||p[g+1]===d)&&t!==l&&t!==c&&(t<s||t>127)){f=0;break}if(2===f)break}else f=0;-1===t&&((0,a.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,a.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var m=4;return e.skip(-m),t=e.peekByte(),e.skip(m),(0,o.isWhiteSpace)(t)||m--,e.pos-m-h}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){var t,r,n=e.pos,i=!1;while(-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(),r>2?e.skip(r-2):e.skip(-2);break}if(i)break}var o=e.pos-n;return-1===t?((0,a.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){var t,r=126,n=62,i=e.pos;while(-1!==(t=e.getByte()))if(t===r){var s=e.pos;t=e.peekByte();while((0,o.isWhiteSpace)(t))e.skip(),t=e.peekByte();if(t===n){e.skip();break}if(e.pos>s){var l=e.peekBytes(2);if(69===l[0]&&73===l[1])break}}var c=e.pos-i;return-1===t?((0,a.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-c),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),c)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){var t,r=62,n=e.pos;while(-1!==(t=e.getByte()))if(t===r)break;var i=e.pos-n;return-1===t?((0,a.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}},{key:"inlineStreamSkipEI",value:function(e){var t,r=69,n=73,a=0;while(-1!==(t=e.getByte()))if(0===a)a=t===r?1:0;else if(1===a)a=t===n?2:0;else if(2===a)break}},{key:"makeInlineImage",value:function(e){var t,r=this.lexer,n=r.stream,o=new i.Dict(this.xref);while(!(0,i.isCmd)(this.buf1,"ID")&&!(0,i.isEOF)(this.buf1)){if(!(0,i.isName)(this.buf1))throw new a.FormatError("Dictionary key must be a name object");var s=this.buf1.name;if(this.shift(),(0,i.isEOF)(this.buf1))break;o.set(s,this.getObj(e))}-1!==r.beginInlineImagePos&&(t=n.pos-r.beginInlineImagePos);var l,c=o.get("Filter","F");if((0,i.isName)(c))l=c.name;else if(Array.isArray(c)){var u=this.xref.fetchIfRef(c[0]);(0,i.isName)(u)&&(l=u.name)}var f,p=n.pos;f="DCTDecode"===l||"DCT"===l?this.findDCTDecodeInlineStreamEnd(n):"ASCII85Decode"===l||"A85"===l?this.findASCII85DecodeInlineStreamEnd(n):"ASCIIHexDecode"===l||"AHx"===l?this.findASCIIHexDecodeInlineStreamEnd(n):this.findDefaultInlineStreamEnd(n);var v,m=n.makeSubStream(p,f,o);if(f<d&&t<h){var b=m.getBytes();m.reset();var y=n.pos;n.pos=r.beginInlineImagePos;var w=n.getBytes(t);n.pos=y,v=g(b)+"_"+g(w);var _=this.imageCache[v];if(void 0!==_)return this.buf2=i.Cmd.get("EI"),this.shift(),_.reset(),_}return e&&(m=e.createStream(m,f)),m=this.filter(m,o,f),m.dict=o,void 0!==v&&(m.cacheKey="inline_".concat(f,"_").concat(v),this.imageCache[v]=m),this.buf2=i.Cmd.get("EI"),this.shift(),m}},{key:"_findStreamLength",value:function(e,t){var r=this.lexer.stream;r.pos=e;var n=2048,a=t.length;while(r.pos<r.end){var i=r.peekBytes(n),o=i.length-a;if(o<=0)break;var s=0;while(s<o){var l=0;while(l<a&&i[s+l]===t[l])l++;if(l>=a)return r.pos+=s,r.pos-e;s++}r.pos+=o}return-1}},{key:"makeStream",value:function(e,t){var r=this.lexer,n=r.stream;r.skipToNextLine();var s=n.pos-1,l=e.get("Length");if(Number.isInteger(l)||((0,a.info)('Bad length "'.concat(l,'" in stream')),l=0),n.pos=s+l,r.nextChar(),this.tryShift()&&(0,i.isCmd)(this.buf2,"endstream"))this.shift();else{var c=new Uint8Array([101,110,100,115,116,114,101,97,109]),u=this._findStreamLength(s,c);if(u<0){for(var d=1,h=1;h<=d;h++){var f=c.length-h,p=c.slice(0,f),g=this._findStreamLength(s,p);if(g>=0){var v=n.peekBytes(f+1)[f];if(!(0,o.isWhiteSpace)(v))break;(0,a.info)('Found "'.concat((0,a.bytesToString)(p),'" when ')+"searching for endstream command."),u=g;break}}if(u<0)throw new a.FormatError("Missing endstream command.")}l=u,r.nextChar(),this.shift(),this.shift()}return this.shift(),n=n.makeSubStream(s,l,e),t&&(n=t.createStream(n,l)),n=this.filter(n,e,l),n.dict=e,n}},{key:"filter",value:function(e,t,r){var n=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,i.isName)(n))return Array.isArray(o)&&(0,a.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,n.name,r,o);var s=r;if(Array.isArray(n))for(var l=n,c=o,u=0,d=l.length;u<d;++u){if(n=this.xref.fetchIfRef(l[u]),!(0,i.isName)(n))throw new a.FormatError('Bad filter name "'.concat(n,'"'));o=null,Array.isArray(c)&&u in c&&(o=this.xref.fetchIfRef(c[u])),e=this.makeFilter(e,n.name,s,o),s=null}return e}},{key:"makeFilter",value:function(e,t,r,i){if(0===r)return(0,a.warn)('Empty "'.concat(t,'" stream.')),new n.NullStream;try{var d=this.xref.stats.streamTypes;if("FlateDecode"===t||"Fl"===t)return d[a.StreamType.FLATE]=!0,i?new n.PredictorStream(new n.FlateStream(e,r),r,i):new n.FlateStream(e,r);if("LZWDecode"===t||"LZW"===t){d[a.StreamType.LZW]=!0;var h=1;return i?(i.has("EarlyChange")&&(h=i.get("EarlyChange")),new n.PredictorStream(new n.LZWStream(e,r,h),r,i)):new n.LZWStream(e,r,h)}return"DCTDecode"===t||"DCT"===t?(d[a.StreamType.DCT]=!0,new c.JpegStream(e,r,e.dict,i)):"JPXDecode"===t||"JPX"===t?(d[a.StreamType.JPX]=!0,new u.JpxStream(e,r,e.dict,i)):"ASCII85Decode"===t||"A85"===t?(d[a.StreamType.A85]=!0,new n.Ascii85Stream(e,r)):"ASCIIHexDecode"===t||"AHx"===t?(d[a.StreamType.AHX]=!0,new n.AsciiHexStream(e,r)):"CCITTFaxDecode"===t||"CCF"===t?(d[a.StreamType.CCF]=!0,new s.CCITTFaxStream(e,r,i)):"RunLengthDecode"===t||"RL"===t?(d[a.StreamType.RLX]=!0,new n.RunLengthStream(e,r)):"JBIG2Decode"===t?(d[a.StreamType.JBIG]=!0,new l.Jbig2Stream(e,r,e.dict,i)):((0,a.warn)('Filter "'.concat(t,'" is not supported.')),e)}catch(f){if(f instanceof o.MissingDataException)throw f;return(0,a.warn)('Invalid stream: "'.concat(f,'"')),new n.NullStream}}}]),e}();t.Parser=v;var m=[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 b(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var y=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;p(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}return f(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,n=0;if(45===e?(n=-1,e=this.nextChar(),45===e&&(e=this.nextChar())):43===e&&(n=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===n&&((0,o.isWhiteSpace)(e)||-1===e))return(0,a.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new a.FormatError("Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")"))}n=n||1;var i=e-48,s=0,l=1;while((e=this.nextChar())>=0)if(e>=48&&e<=57){var c=e-48;t?s=10*s+c:(0!==r&&(r*=10),i=10*i+c)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,a.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(e=this.peekChar(),43===e||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(i/=r),t&&(i*=Math.pow(10,l*s)),n*i}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;var n=this.nextChar();while(1){var i=!1;switch(0|n){case-1:(0,a.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(n=this.nextChar(),n){case-1:(0,a.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(n));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&n;n=this.nextChar(),i=!0,n>=48&&n<=55&&(o=(o<<3)+(15&n),n=this.nextChar(),n>=48&&n<=55&&(i=!1,o=(o<<3)+(15&n))),r.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(n));break}break;default:r.push(String.fromCharCode(n));break}if(t)break;i||(n=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;r.length=0;while((e=this.nextChar())>=0&&!m[e])if(35===e){if(e=this.nextChar(),m[e]){(0,a.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var n=b(e);if(-1!==n){t=e,e=this.nextChar();var o=b(e);if(-1===o){if((0,a.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),m[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(n<<4|o))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&(0,a.warn)("Name token is longer than allowed by the spec: ".concat(r.length)),i.Name.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){var t=5;this._hexStringNumWarn++!==t?this._hexStringNumWarn>t||(0,a.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,a.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t,r,n=this.currentChar,i=!0;this._hexStringNumWarn=0;while(1){if(n<0){(0,a.warn)("Unterminated hex string");break}if(62===n){this.nextChar();break}if(1!==m[n]){if(i){if(t=b(n),-1===t){this._hexStringWarn(n),n=this.nextChar();continue}}else{if(r=b(n),-1===r){this._hexStringWarn(n),n=this.nextChar();continue}e.push(String.fromCharCode(t<<4|r))}i=!i,n=this.nextChar()}else n=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){var e=!1,t=this.currentChar;while(1){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==m[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(),i.Cmd.get("[");case 93:return this.nextChar(),i.Cmd.get("]");case 60:return t=this.nextChar(),60===t?(this.nextChar(),i.Cmd.get("<<")):this.getHexString();case 62:return t=this.nextChar(),62===t?(this.nextChar(),i.Cmd.get(">>")):i.Cmd.get(">");case 123:return this.nextChar(),i.Cmd.get("{");case 125:return this.nextChar(),i.Cmd.get("}");case 41:throw this.nextChar(),new a.FormatError("Illegal character: ".concat(t))}var r=String.fromCharCode(t),n=this.knownCommands,o=n&&void 0!==n[r];while((t=this.nextChar())>=0&&!m[t]){var s=r+String.fromCharCode(t);if(o&&void 0===n[s])break;if(128===r.length)throw new a.FormatError("Command token too long: ".concat(r.length));r=s,o=n&&void 0!==n[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),i.Cmd.get(r)))}},{key:"skipToNextLine",value:function(){var e=this.currentChar;while(e>=0){if(13===e){e=this.nextChar(),10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=y;var w=function(){function e(){p(this,e)}return f(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.")}function r(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.")}var n,o,s=new v({lexer:new y(e),xref:null}),l=s.getObj(),c=s.getObj(),u=s.getObj(),d=s.getObj();if(!(Number.isInteger(l)&&Number.isInteger(c)&&(0,i.isCmd)(u,"obj")&&(0,i.isDict)(d)&&(0,a.isNum)(n=d.get("Linearized"))&&n>0))return null;if((o=t(d,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:o,hints:r(d),objectNumberFirst:t(d,"O"),endFirst:t(d,"E"),numPages:t(d,"N"),mainXRefEntriesOffset:t(d,"T"),pageFirst:d.has("P")?t(d,"P",!0):0}}}]),e}();t.Linearization=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=t.StringStream=t.StreamsSequenceStream=t.Stream=t.RunLengthStream=t.PredictorStream=t.NullStream=t.FlateStream=t.DecodeStream=t.DecryptStream=t.AsciiHexStream=t.Ascii85Stream=void 0;var n=r(2),a=r(4),i=r(7),o=function(){function e(e,t,r,n){this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+r||this.bytes.length,this.dict=n}return e.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){var e=this.getByte(),t=this.getByte(),r=this.getByte(),n=this.getByte();return(e<<24)+(t<<16)+(r<<8)+n},getBytes: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},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r},getByteRange:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,r,n){return new e(this.bytes.buffer,t,r,n)}},e}();t.Stream=o;var s=function(){function e(e){var t=(0,n.stringToBytes)(e);o.call(this,t)}return e.prototype=o.prototype,e}();t.StringStream=s;var l=function(){var e=new Uint8Array(0);function t(t){if(this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=e,this.minBufferLength=512,t)while(this.minBufferLength<t)this.minBufferLength*=2}return t.prototype={get isEmpty(){while(!this.eof&&0===this.bufferLength)this.readBlock();return 0===this.bufferLength},ensureBuffer:function(e){var t=this.buffer;if(e<=t.byteLength)return t;var r=this.minBufferLength;while(r<e)r*=2;var n=new Uint8Array(r);return n.set(t),this.buffer=n},getByte:function(){var e=this.pos;while(this.bufferLength<=e){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){var e=this.getByte(),t=this.getByte(),r=this.getByte(),n=this.getByte();return(e<<24)+(t<<16)+(r<<8)+n},getBytes:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.pos;if(e){this.ensureBuffer(n+e),t=n+e;while(!this.eof&&this.bufferLength<t)this.readBlock();var a=this.bufferLength;t>a&&(t=a)}else{while(!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)},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r},makeSubStream:function(e,t,r){var n=e+t;while(this.bufferLength<=n&&!this.eof)this.readBlock();return new o(this.buffer,e,t,r)},getByteRange:function(e,t){(0,n.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},t}();t.DecodeStream=l;var c=function(){function e(e){this.streams=e;for(var t=0,r=0,n=e.length;r<n;r++){var a=e[r];t+=a instanceof l?a._rawMinBufferLength:a.length}l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=this.streams;if(0!==e.length){var t=e.shift(),r=t.getBytes(),n=this.bufferLength,a=n+r.length,i=this.ensureBuffer(a);i.set(r,n),this.bufferLength=a}else this.eof=!0},e.prototype.getBaseStreams=function(){for(var e=[],t=0,r=this.streams.length;t<r;t++){var n=this.streams[t];n.getBaseStreams&&e.push.apply(e,u(n.getBaseStreams()))}return e},e}();t.StreamsSequenceStream=c;var d=function(){var e=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=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]),r=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]),a=[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],i=[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];function o(e,t){this.str=e,this.dict=e.dict;var r=e.getByte(),a=e.getByte();if(-1===r||-1===a)throw new n.FormatError("Invalid header in flate stream: ".concat(r,", ").concat(a));if(8!==(15&r))throw new n.FormatError("Unknown compression method in flate stream: ".concat(r,", ").concat(a));if(((r<<8)+a)%31!==0)throw new n.FormatError("Bad FCHECK in flate stream: ".concat(r,", ").concat(a));if(32&a)throw new n.FormatError("FDICT bit set in flate stream: ".concat(r,", ").concat(a));this.codeSize=0,this.codeBuf=0,l.call(this,t)}return o.prototype=Object.create(l.prototype),o.prototype.getBits=function(e){var t,r=this.str,a=this.codeSize,i=this.codeBuf;while(a<e){if(-1===(t=r.getByte()))throw new n.FormatError("Bad encoding in flate stream");i|=t<<a,a+=8}return t=i&(1<<e)-1,this.codeBuf=i>>e,this.codeSize=a-=e,t},o.prototype.getCode=function(e){var t,r=this.str,a=e[0],i=e[1],o=this.codeSize,s=this.codeBuf;while(o<i){if(-1===(t=r.getByte()))break;s|=t<<o,o+=8}var l=a[s&(1<<i)-1],c=l>>16,u=65535&l;if(c<1||o<c)throw new n.FormatError("Bad encoding in flate stream");return this.codeBuf=s>>c,this.codeSize=o-c,u},o.prototype.generateHuffmanTable=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,l=2;o<=n;++o,s<<=1,l<<=1)for(var c=0;c<r;++c)if(e[c]===o){var u=0,d=s;for(t=0;t<o;++t)u=u<<1|1&d,d>>=1;for(t=u;t<a;t+=l)i[t]=o<<16|c;++s}return[i,n]},o.prototype.readBlock=function(){var o,s,l=this.str,c=this.getBits(3);if(1&c&&(this.eof=!0),c>>=1,0!==c){var u,d;if(1===c)u=a,d=i;else{if(2!==c)throw new n.FormatError("Unknown block type in flate stream");var h,f=this.getBits(5)+257,p=this.getBits(5)+1,g=this.getBits(4)+4,v=new Uint8Array(e.length);for(h=0;h<g;++h)v[e[h]]=this.getBits(3);var m=this.generateHuffmanTable(v);s=0,h=0;var b,y,w,_=f+p,k=new Uint8Array(_);while(h<_){var x=this.getCode(m);if(16===x)b=2,y=3,w=s;else if(17===x)b=3,y=3,w=s=0;else{if(18!==x){k[h++]=s=x;continue}b=7,y=11,w=s=0}var S=this.getBits(b)+y;while(S-- >0)k[h++]=w}u=this.generateHuffmanTable(k.subarray(0,f)),d=this.generateHuffmanTable(k.subarray(f,_))}o=this.buffer;var A=o?o.length:0,C=this.bufferLength;while(1){var P=this.getCode(u);if(P<256)C+1>=A&&(o=this.ensureBuffer(C+1),A=o.length),o[C++]=P;else{if(256===P)return void(this.bufferLength=C);P-=257,P=t[P];var T=P>>16;T>0&&(T=this.getBits(T)),s=(65535&P)+T,P=this.getCode(d),P=r[P],T=P>>16,T>0&&(T=this.getBits(T));var E=(65535&P)+T;C+s>=A&&(o=this.ensureBuffer(C+s),A=o.length);for(var R=0;R<s;++R,++C)o[C]=o[C-E]}}}else{var I;if(-1===(I=l.getByte()))throw new n.FormatError("Bad block header in flate stream");var O=I;if(-1===(I=l.getByte()))throw new n.FormatError("Bad block header in flate stream");if(O|=I<<8,-1===(I=l.getByte()))throw new n.FormatError("Bad block header in flate stream");var L=I;if(-1===(I=l.getByte()))throw new n.FormatError("Bad block header in flate stream");if(L|=I<<8,L!==(65535&~O)&&(0!==O||0!==L))throw new n.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var F=this.bufferLength,M=F+O;if(o=this.ensureBuffer(M),this.bufferLength=M,0===O)-1===l.peekByte()&&(this.eof=!0);else{var D=l.getBytes(O);o.set(D,F),D.length<O&&(this.eof=!0)}}},o}();t.FlateStream=d;var h=function(){function e(e,t,r){if(!(0,a.isDict)(r))return e;var i=this.predictor=r.get("Predictor")||1;if(i<=1)return e;if(2!==i&&(i<10||i>15))throw new n.FormatError("Unsupported predictor: ".concat(i));this.readBlock=2===i?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;var o=this.colors=r.get("Colors")||1,s=this.bits=r.get("BitsPerComponent")||8,c=this.columns=r.get("Columns")||1;return this.pixBytes=o*s+7>>3,this.rowBytes=c*o*s+7>>3,l.call(this,t),this}return e.prototype=Object.create(l.prototype),e.prototype.readBlockTiff=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,l=0,c=0,u=0,d=t;if(1===n&&1===a)for(o=0;o<e;++o){var h=i[o]^s;h^=h>>1,h^=h>>2,h^=h>>4,s=(1&h)<<7,r[d++]=h}else if(8===n){for(o=0;o<a;++o)r[d++]=i[o];for(;o<e;++o)r[d]=r[d-a]+i[o],d++}else if(16===n){var f=2*a;for(o=0;o<f;++o)r[d++]=i[o];for(;o<e;o+=2){var p=((255&i[o])<<8)+(255&i[o+1])+((255&r[d-f])<<8)+(255&r[d-f+1]);r[d++]=p>>8&255,r[d++]=255&p}}else{var g=new Uint8Array(a+1),v=(1<<n)-1,m=0,b=t,y=this.columns;for(o=0;o<y;++o)for(var w=0;w<a;++w)c<n&&(s=s<<8|255&i[m++],c+=8),g[w]=g[w]+(s>>c-n)&v,c-=n,l=l<<n|g[w],u+=n,u>=8&&(r[b++]=l>>u-8&255,u-=8);u>0&&(r[b++]=(l<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}},e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),a=this.str.getBytes(e);if(this.eof=!a.length,!this.eof){var i=this.bufferLength,o=this.ensureBuffer(i+e),s=o.subarray(i-e,i);0===s.length&&(s=new Uint8Array(e));var l,c,u,d=i;switch(r){case 0:for(l=0;l<e;++l)o[d++]=a[l];break;case 1:for(l=0;l<t;++l)o[d++]=a[l];for(;l<e;++l)o[d]=o[d-t]+a[l]&255,d++;break;case 2:for(l=0;l<e;++l)o[d++]=s[l]+a[l]&255;break;case 3:for(l=0;l<t;++l)o[d++]=(s[l]>>1)+a[l];for(;l<e;++l)o[d]=(s[l]+o[d-t]>>1)+a[l]&255,d++;break;case 4:for(l=0;l<t;++l)c=s[l],u=a[l],o[d++]=c+u;for(;l<e;++l){c=s[l];var h=s[l-t],f=o[d-t],p=f+c-h,g=p-f;g<0&&(g=-g);var v=p-c;v<0&&(v=-v);var m=p-h;m<0&&(m=-m),u=a[l],o[d++]=g<=v&&g<=m?f+u:v<=m?c+u:h+u}break;default:throw new n.FormatError("Unsupported predictor: ".concat(r))}this.bufferLength+=e}},e}();t.PredictorStream=h;var f=function(){function e(e,t,r){this.str=e,this.dict=e.dict,this.decrypt=r,this.nextChunk=null,this.initialized=!1,l.call(this,t)}var t=512;return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(t),this.initialized=!0),e&&0!==e.length){this.nextChunk=this.str.getBytes(t);var r=this.nextChunk&&this.nextChunk.length>0,n=this.decrypt;e=n(e,!r);var a,i=this.bufferLength,o=e.length,s=this.ensureBuffer(i+o);for(a=0;a<o;a++)s[i++]=e[a];this.bufferLength=i}else this.eof=!0},e}();t.DecryptStream=f;var p=function(){function e(e,t){this.str=e,this.dict=e.dict,this.input=new Uint8Array(5),t&&(t*=.8),l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=126,t=122,r=-1,n=this.str,a=n.getByte();while((0,i.isWhiteSpace)(a))a=n.getByte();if(a!==r&&a!==e){var o,s,l=this.bufferLength;if(a===t){for(o=this.ensureBuffer(l+4),s=0;s<4;++s)o[l+s]=0;this.bufferLength+=4}else{var c=this.input;for(c[0]=a,s=1;s<5;++s){a=n.getByte();while((0,i.isWhiteSpace)(a))a=n.getByte();if(c[s]=a,a===r||a===e)break}if(o=this.ensureBuffer(l+s-1),this.bufferLength+=s-1,s<5){for(;s<5;++s)c[s]=117;this.eof=!0}var u=0;for(s=0;s<5;++s)u=85*u+(c[s]-33);for(s=3;s>=0;--s)o[l+s]=255&u,u>>=8}}else this.eof=!0},e}();t.Ascii85Stream=p;var g=function(){function e(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t*=.5),l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=8e3,t=this.str.getBytes(e);if(t.length){for(var r=t.length+1>>1,n=this.ensureBuffer(this.bufferLength+r),a=this.bufferLength,i=this.firstDigit,o=0,s=t.length;o<s;o++){var l,c=t[o];if(c>=48&&c<=57)l=15&c;else{if(!(c>=65&&c<=70||c>=97&&c<=102)){if(62===c){this.eof=!0;break}continue}l=9+(15&c)}i<0?i=l:(n[a++]=i<<4|l,i=-1)}i>=0&&this.eof&&(n[a++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=a}else this.eof=!0},e}();t.AsciiHexStream=g;var v=function(){function e(e,t){this.str=e,this.dict=e.dict,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=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),t[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}},e}();t.RunLengthStream=v;var m=function(){function e(e,t,r){this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;for(var n=4096,a={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(n),dictionaryLengths:new Uint16Array(n),dictionaryPrevCodes:new Uint16Array(n),currentSequence:new Uint8Array(n),currentSequenceLength:0},i=0;i<256;++i)a.dictionaryValues[i]=i,a.dictionaryLengths[i]=1;this.lzwState=a,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBits=function(e){var t=this.bitsCached,r=this.cachedData;while(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},e.prototype.readBlock=function(){var e,t,r,n=512,a=2*n,i=n,o=this.lzwState;if(o){var s=o.earlyChange,l=o.nextCode,c=o.dictionaryValues,u=o.dictionaryLengths,d=o.dictionaryPrevCodes,h=o.codeLength,f=o.prevCode,p=o.currentSequence,g=o.currentSequenceLength,v=0,m=this.bufferLength,b=this.ensureBuffer(this.bufferLength+a);for(e=0;e<n;e++){var y=this.readBits(h),w=g>0;if(y<256)p[0]=y,g=1;else{if(!(y>=258)){if(256===y){h=9,l=258,g=0;continue}this.eof=!0,delete this.lzwState;break}if(y<l)for(g=u[y],t=g-1,r=y;t>=0;t--)p[t]=c[r],r=d[r];else p[g++]=p[0]}if(w&&(d[l]=f,u[l]=u[f]+1,c[l]=p[0],l++,h=l+s&l+s-1?h:0|Math.min(Math.log(l+s)/.6931471805599453+1,12)),f=y,v+=g,a<v){do{a+=i}while(a<v);b=this.ensureBuffer(this.bufferLength+a)}for(t=0;t<g;t++)b[m++]=p[t]}o.nextCode=l,o.codeLength=h,o.prevCode=f,o.currentSequenceLength=g,this.bufferLength=m}},e}();t.LZWStream=m;var b=function(){function e(){o.call(this,new Uint8Array(0))}return e.prototype=o.prototype,e}();t.NullStream=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var n=r(4),a=r(13),i=r(11),o=function(){function e(e,t,r){this.str=e,this.dict=e.dict,(0,n.isDict)(r)||(r=n.Dict.empty);var o={next:function(){return e.getByte()}};this.ccittFaxDecoder=new a.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")}),i.DecodeStream.call(this,t)}return e.prototype=Object.create(i.DecodeStream.prototype),e.prototype.readBlock=function(){while(!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}},e}();t.CCITTFaxStream=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var n=r(2),a=function(){var e=-2,t=-1,r=0,a=1,i=2,o=3,s=4,l=5,c=6,u=7,d=8,h=[[-1,-1],[-1,-1],[7,d],[7,u],[6,c],[6,c],[6,l],[6,l],[4,r],[4,r],[4,r],[4,r],[4,r],[4,r],[4,r],[4,r],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[3,o],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i],[1,i]],f=[[-1,-1],[12,e],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],p=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],g=[[-1,-1],[-1,-1],[12,e],[12,e],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],v=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],m=[[-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]];function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!==typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t["K"]||0,this.eoline=t["EndOfLine"]||!1,this.byteAlign=t["EncodedByteAlign"]||!1,this.columns=t["Columns"]||1728,this.rows=t["Rows"]||0;var r,n=t["EndOfBlock"];null!==n&&void 0!==n||(n=!0),this.eoblock=n,this.black=t["BlackIs1"]||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;while(0===(r=this._lookBits(12)))this._eatBits(1);1===r&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return b.prototype={readNextChar:function(){if(this.eof)return-1;var e,h,f,p,g,v=this.refLine,m=this.codingLine,b=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var y,w,_;if(this.err=!1,this.nextLine2D){for(p=0;m[p]<b;++p)v[p]=m[p];v[p++]=b,v[p]=b,m[0]=0,this.codingPos=0,e=0,h=0;while(m[this.codingPos]<b)switch(y=this._getTwoDimCode(),y){case r:this._addPixels(v[e+1],h),v[e+1]<b&&(e+=2);break;case a:if(y=w=0,h){do{y+=_=this._getBlackCode()}while(_>=64);do{w+=_=this._getWhiteCode()}while(_>=64)}else{do{y+=_=this._getWhiteCode()}while(_>=64);do{w+=_=this._getBlackCode()}while(_>=64)}this._addPixels(m[this.codingPos]+y,h),m[this.codingPos]<b&&this._addPixels(m[this.codingPos]+w,1^h);while(v[e]<=m[this.codingPos]&&v[e]<b)e+=2;break;case u:if(this._addPixels(v[e]+3,h),h^=1,m[this.codingPos]<b){++e;while(v[e]<=m[this.codingPos]&&v[e]<b)e+=2}break;case l:if(this._addPixels(v[e]+2,h),h^=1,m[this.codingPos]<b){++e;while(v[e]<=m[this.codingPos]&&v[e]<b)e+=2}break;case o:if(this._addPixels(v[e]+1,h),h^=1,m[this.codingPos]<b){++e;while(v[e]<=m[this.codingPos]&&v[e]<b)e+=2}break;case i:if(this._addPixels(v[e],h),h^=1,m[this.codingPos]<b){++e;while(v[e]<=m[this.codingPos]&&v[e]<b)e+=2}break;case d:if(this._addPixelsNeg(v[e]-3,h),h^=1,m[this.codingPos]<b){e>0?--e:++e;while(v[e]<=m[this.codingPos]&&v[e]<b)e+=2}break;case c:if(this._addPixelsNeg(v[e]-2,h),h^=1,m[this.codingPos]<b){e>0?--e:++e;while(v[e]<=m[this.codingPos]&&v[e]<b)e+=2}break;case s:if(this._addPixelsNeg(v[e]-1,h),h^=1,m[this.codingPos]<b){e>0?--e:++e;while(v[e]<=m[this.codingPos]&&v[e]<b)e+=2}break;case t:this._addPixels(b,0),this.eof=!0;break;default:(0,n.info)("bad 2d code"),this._addPixels(b,0),this.err=!0}}else{m[0]=0,this.codingPos=0,h=0;while(m[this.codingPos]<b){if(y=0,h)do{y+=_=this._getBlackCode()}while(_>=64);else do{y+=_=this._getWhiteCode()}while(_>=64);this._addPixels(m[this.codingPos]+y,h),h^=1}}var k=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(y=this._lookBits(12),this.eoline)while(y!==t&&1!==y)this._eatBits(1),y=this._lookBits(12);else while(0===y)this._eatBits(1),y=this._lookBits(12);1===y?(this._eatBits(12),k=!0):y===t&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&k&&this.byteAlign){if(y=this._lookBits(12),1===y){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(p=0;p<4;++p)y=this._lookBits(12),1!==y&&(0,n.info)("bad rtc code: "+y),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){while(1){if(y=this._lookBits(13),y===t)return this.eof=!0,-1;if(y>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&y))}m[0]>0?this.outputBits=m[this.codingPos=0]:this.outputBits=m[this.codingPos=1],this.row++}if(this.outputBits>=8)g=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&m[this.codingPos]<b&&(this.codingPos++,this.outputBits=m[this.codingPos]-m[this.codingPos-1]);else{f=8,g=0;do{this.outputBits>f?(g<<=f,1&this.codingPos||(g|=255>>8-f),this.outputBits-=f,f=0):(g<<=this.outputBits,1&this.codingPos||(g|=255>>8-this.outputBits),f-=this.outputBits,this.outputBits=0,m[this.codingPos]<b?(this.codingPos++,this.outputBits=m[this.codingPos]-m[this.codingPos-1]):f>0&&(g<<=f,f=0))}while(f)}return this.black&&(g^=255),g},_addPixels: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},_addPixelsNeg: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]){e<0&&((0,n.info)("invalid code"),this.err=!0,e=0);while(a>0&&e<r[a-1])--a;r[a]=e}this.codingPos=a},_findTableCode:function(e,r,n,a){for(var i=a||0,o=e;o<=r;++o){var s=this._lookBits(o);if(s===t)return[!0,1,!1];if(o<r&&(s<<=r-o),!i||s>=i){var l=n[s-i];if(l[0]===o)return this._eatBits(o),[!0,l[1],!0]}}return[!1,0,!1]},_getTwoDimCode:function(){var e,r=0;if(this.eoblock){if(r=this._lookBits(7),e=h[r],e&&e[0]>0)return this._eatBits(e[0]),e[1]}else{var a=this._findTableCode(1,7,h);if(a[0]&&a[2])return a[1]}return(0,n.info)("Bad two dim code"),t},_getWhiteCode:function(){var e,r=0;if(this.eoblock){if(r=this._lookBits(12),r===t)return 1;if(e=r>>5===0?f[r]:p[r>>3],e[0]>0)return this._eatBits(e[0]),e[1]}else{var a=this._findTableCode(1,9,p);if(a[0])return a[1];if(a=this._findTableCode(11,12,f),a[0])return a[1]}return(0,n.info)("bad white code"),this._eatBits(1),1},_getBlackCode:function(){var e,r;if(this.eoblock){if(e=this._lookBits(13),e===t)return 1;if(r=e>>7===0?g[e]:e>>9===0&&e>>7!==0?v[(e>>1)-64]:m[e>>7],r[0]>0)return this._eatBits(r[0]),r[1]}else{var a=this._findTableCode(2,6,m);if(a[0])return a[1];if(a=this._findTableCode(7,12,v,64),a[0])return a[1];if(a=this._findTableCode(10,13,g),a[0])return a[1]}return(0,n.info)("bad black code"),this._eatBits(1),1},_lookBits:function(e){var r;while(this.inputBits<e){if(-1===(r=this.source.next()))return 0===this.inputBits?t:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|r,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e},_eatBits:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},b}();t.CCITTFaxDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var n=r(4),a=r(11),i=r(15),o=r(2),s=function(){function e(e,t,r,n){this.stream=e,this.maybeLength=t,this.dict=r,this.params=n,a.DecodeStream.call(this,t)}return e.prototype=Object.create(a.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e=new i.Jbig2Image,t=[];if((0,n.isDict)(this.params)){var r=this.params.get("JBIG2Globals");if((0,n.isStream)(r)){var a=r.getBytes();t.push({data:a,start:0,end:a.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});for(var o=e.parseChunks(t),s=o.length,l=0;l<s;l++)o[l]^=255;this.buffer=o,this.bufferLength=s,this.eof=!0}},e}();t.Jbig2Stream=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var n=r(2),a=r(7),i=r(16),o=r(13),s=function(e){g(r,e);var t=v(r);function r(e){return p(this,r),t.call(this,"JBIG2 error: ".concat(e))}return r}(n.BaseException),l=function(){function e(){}function t(e,t,r){this.data=e,this.start=t,this.end=r}function r(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 l(e,t,r){for(var n=e.getContexts("IAID"),a=1,i=0;i<r;i++){var o=t.readBit(n,a);a=a<<1|o}return r<31?a&(1<<r)-1:2147483647&a}e.prototype={getContexts:function(e){return e in this?this[e]:this[e]=new Int8Array(65536)}},t.prototype={get decoder(){var e=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,n.shadow)(this,"decoder",e)},get contextCache(){var t=new e;return(0,n.shadow)(this,"contextCache",t)}};var c=["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"],u=[[{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}]],d=[{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}]}],h=[39717,1941,229,405],f=[32,8];function p(e,t,r){var n,a,i,o,s,l,c,u=r.decoder,d=r.contextCache.getContexts("GB"),h=[],f=31735;for(a=0;a<t;a++)for(s=h[a]=new Uint8Array(e),l=a<1?s:h[a-1],c=a<2?s:h[a-2],n=c[0]<<13|c[1]<<12|c[2]<<11|l[0]<<7|l[1]<<6|l[2]<<5|l[3]<<4,i=0;i<e;i++)s[i]=o=u.readBit(d,n),n=(n&f)<<1|(i+3<e?c[i+3]<<11:0)|(i+4<e?l[i+4]<<4:0)|o;return h}function g(e,t,r,n,a,i,o,s){if(e){var l=new D(s.data,s.start,s.end);return q(l,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 p(t,r,s);var c=!!i,d=u[n].concat(o);d.sort((function(e,t){return e.y-t.y||e.x-t.x}));var f,g,v=d.length,m=new Int8Array(v),b=new Int8Array(v),y=[],w=0,_=0,k=0,x=0;for(g=0;g<v;g++)m[g]=d[g].x,b[g]=d[g].y,_=Math.min(_,d[g].x),k=Math.max(k,d[g].x),x=Math.min(x,d[g].y),g<v-1&&d[g].y===d[g+1].y&&d[g].x===d[g+1].x-1?w|=1<<v-1-g:y.push(g);var S=y.length,A=new Int8Array(S),C=new Int8Array(S),P=new Uint16Array(S);for(f=0;f<S;f++)g=y[f],A[f]=d[g].x,C[f]=d[g].y,P[f]=1<<v-1-g;for(var T,E,R,I,O,L=-_,F=-x,M=t-k,N=h[n],B=new Uint8Array(t),U=[],j=s.decoder,z=s.contextCache.getContexts("GB"),V=0,W=0,H=0;H<r;H++){if(a){var G=j.readBit(z,N);if(V^=G,V){U.push(B);continue}}for(B=new Uint8Array(B),U.push(B),T=0;T<t;T++)if(c&&i[H][T])B[T]=0;else{if(T>=L&&T<M&&H>=F)for(W=W<<1&w,g=0;g<S;g++)E=H+C[g],R=T+A[g],I=U[E][R],I&&(I=P[g],W|=I);else for(W=0,O=v-1,g=0;g<v;g++,O--)R=T+m[g],R>=0&&R<t&&(E=H+b[g],E>=0&&(I=U[E][R],I&&(W|=I<<O)));var Y=j.readBit(z,W);B[T]=Y}}return U}function v(e,t,r,n,a,i,o,l,c){var u=d[r].coding;0===r&&(u=u.concat([l[0]]));var h,p=u.length,g=new Int32Array(p),v=new Int32Array(p);for(h=0;h<p;h++)g[h]=u[h].x,v[h]=u[h].y;var m=d[r].reference;0===r&&(m=m.concat([l[1]]));var b=m.length,y=new Int32Array(b),w=new Int32Array(b);for(h=0;h<b;h++)y[h]=m[h].x,w[h]=m[h].y;for(var _=n[0].length,k=n.length,x=f[r],S=[],A=c.decoder,C=c.contextCache.getContexts("GR"),P=0,T=0;T<t;T++){if(o){var E=A.readBit(C,x);if(P^=E,P)throw new s("prediction is not supported")}var R=new Uint8Array(e);S.push(R);for(var I=0;I<e;I++){var O,L,F=0;for(h=0;h<p;h++)O=T+v[h],L=I+g[h],O<0||L<0||L>=e?F<<=1:F=F<<1|S[O][L];for(h=0;h<b;h++)O=T+w[h]-i,L=I+y[h]-a,O<0||O>=k||L<0||L>=_?F<<=1:F=F<<1|n[O][L];var M=A.readBit(C,F);R[I]=M}}return S}function m(e,t,n,i,o,c,u,d,h,f,p,m){if(e&&t)throw new s("symbol refinement with Huffman is not supported");var y,w,_=[],k=0,x=(0,a.log2)(n.length+i),S=p.decoder,A=p.contextCache;e&&(y=M(1),w=[],x=Math.max(x,1));while(_.length<i){var C=e?c.tableDeltaHeight.decode(m):r(A,"IADH",S);k+=C;var P=0,T=0,E=e?w.length:0;while(1){var R,I=e?c.tableDeltaWidth.decode(m):r(A,"IADW",S);if(null===I)break;if(P+=I,T+=P,t){var O=r(A,"IAAI",S);if(O>1)R=b(e,t,P,k,0,O,1,n.concat(_),x,0,0,1,0,c,h,f,p,0,m);else{var L=l(A,S,x),F=r(A,"IARDX",S),D=r(A,"IARDY",S),N=L<n.length?n[L]:_[L-n.length];R=v(P,k,h,N,F,D,!1,f,p)}_.push(R)}else e?w.push(P):(R=g(!1,P,k,u,!1,null,d,p),_.push(R))}if(e&&!t){var B=c.tableBitmapSize.decode(m);m.byteAlign();var U=void 0;if(0===B)U=j(m,T,k);else{var z=m.end,V=m.position+B;m.end=V,U=q(m,T,k,!1),m.end=z,m.position=V}var W=w.length;if(E===W-1)_.push(U);else{var H=void 0,G=void 0,Y=0,X=void 0,K=void 0,Z=void 0;for(H=E;H<W;H++){for(K=w[H],X=Y+K,Z=[],G=0;G<k;G++)Z.push(U[G].subarray(Y,X));_.push(Z),Y=X}}}}var J=[],Q=[],$=!1,ee=n.length+i;while(Q.length<ee){var te=e?y.decode(m):r(A,"IAEX",S);while(te--)Q.push($);$=!$}for(var re=0,ne=n.length;re<ne;re++)Q[re]&&J.push(n[re]);for(var ae=0;ae<i;re++,ae++)Q[re]&&J.push(_[ae]);return J}function b(e,t,n,a,i,o,c,u,d,h,f,p,g,m,b,y,w,_,k){if(e&&t)throw new s("refinement with Huffman is not supported");var x,S,A=[];for(x=0;x<a;x++){if(S=new Uint8Array(n),i)for(var C=0;C<n;C++)S[C]=i;A.push(S)}var P=w.decoder,T=w.contextCache,E=e?-m.tableDeltaT.decode(k):-r(T,"IADT",P),R=0;x=0;while(x<o){var I=e?m.tableDeltaT.decode(k):r(T,"IADT",P);E+=I;var O=e?m.tableFirstS.decode(k):r(T,"IAFS",P);R+=O;var L=R;do{var F=0;c>1&&(F=e?k.readBits(_):r(T,"IAIT",P));var M=c*E+F,D=e?m.symbolIDTable.decode(k):l(T,P,d),N=t&&(e?k.readBit():r(T,"IARI",P)),B=u[D],U=B[0].length,j=B.length;if(N){var q=r(T,"IARDW",P),z=r(T,"IARDH",P),V=r(T,"IARDX",P),W=r(T,"IARDY",P);U+=q,j+=z,B=v(U,j,b,B,(q>>1)+V,(z>>1)+W,!1,y,w)}var H,G,Y,X=M-(1&p?0:j-1),K=L-(2&p?U-1:0);if(h){for(H=0;H<j;H++)if(S=A[K+H],S){Y=B[H];var Z=Math.min(n-X,U);switch(g){case 0:for(G=0;G<Z;G++)S[X+G]|=Y[G];break;case 2:for(G=0;G<Z;G++)S[X+G]^=Y[G];break;default:throw new s("operator ".concat(g," is not supported"))}}L+=j-1}else{for(G=0;G<j;G++)if(S=A[X+G],S)switch(Y=B[G],g){case 0:for(H=0;H<U;H++)S[K+H]|=Y[H];break;case 2:for(H=0;H<U;H++)S[K+H]^=Y[H];break;default:throw new s("operator ".concat(g," is not supported"))}L+=U-1}x++;var J=e?m.tableDeltaS.decode(k):r(T,"IADS",P);if(null===J)break;L+=J+f}while(1)}return A}function y(e,t,r,n,a,i){var o=[];e||(o.push({x:-t,y:0}),0===a&&(o.push({x:-3,y:-1}),o.push({x:2,y:-2}),o.push({x:-2,y:-2})));for(var s=(n+1)*t,l=g(e,s,r,a,!1,null,o,i),c=[],u=0;u<=n;u++){for(var d=[],h=t*u,f=h+t,p=0;p<r;p++)d.push(l[p].subarray(h,f));c.push(d)}return c}function w(e,t,r,n,i,o,l,c,u,d,h,f,p,v,m){var b=null;if(l)throw new s("skip is not supported");if(0!==c)throw new s("operator "+c+" is not supported in halftone region");var y,w,_,k=[];for(y=0;y<i;y++){if(_=new Uint8Array(n),o)for(w=0;w<n;w++)_[w]=o;k.push(_)}var x=t.length,S=t[0],A=S[0].length,C=S.length,P=(0,a.log2)(x),T=[];e||(T.push({x:r<=1?3:2,y:-1}),0===r&&(T.push({x:-3,y:-1}),T.push({x:2,y:-2}),T.push({x:-2,y:-2})));var E,R,I,O,L,F,M,N,B,U,j,z=[];for(e&&(E=new D(m.data,m.start,m.end)),y=P-1;y>=0;y--)R=e?q(E,u,d,!0):g(!1,u,d,r,!1,b,T,m),z[y]=R;for(I=0;I<d;I++)for(O=0;O<u;O++){for(L=0,F=0,w=P-1;w>=0;w--)L=z[w][I][O]^L,F|=L<<w;if(M=t[F],N=h+I*v+O*p>>8,B=f+I*p-O*v>>8,N>=0&&N+A<=n&&B>=0&&B+C<=i)for(y=0;y<C;y++)for(j=k[B+y],U=M[y],w=0;w<A;w++)j[N+w]|=U[w];else{var V=void 0,W=void 0;for(y=0;y<C;y++)if(W=B+y,!(W<0||W>=i))for(j=k[W],U=M[y],w=0;w<A;w++)V=N+w,V>=0&&V<n&&(j[V]|=U[w])}}return k}function _(e,t){var r={};r.number=(0,a.readUint32)(e,t);var n=e[t+4],i=63&n;if(!c[i])throw new s("invalid segment type: "+i);r.type=i,r.typeName=c[i],r.deferredNonRetain=!!(128&n);var o=!!(64&n),l=e[t+5],u=l>>5&7,d=[31&l],h=t+6;if(7===l){u=536870911&(0,a.readUint32)(e,h-1),h+=3;var f=u+7>>3;d[0]=e[h++];while(--f>0)d.push(e[h++])}else if(5===l||6===l)throw new s("invalid referred-to flags");r.retainBits=d;var p=4;r.number<=256?p=1:r.number<=65536&&(p=2);var g,v,m=[];for(g=0;g<u;g++){var b=void 0;b=1===p?e[h]:2===p?(0,a.readUint16)(e,h):(0,a.readUint32)(e,h),m.push(b),h+=p}if(r.referredTo=m,o?(r.pageAssociation=(0,a.readUint32)(e,h),h+=4):r.pageAssociation=e[h++],r.length=(0,a.readUint32)(e,h),h+=4,4294967295===r.length){if(38!==i)throw new s("invalid unknown segment length");var y=x(e,h),w=e[h+S],_=!!(1&w),k=6,A=new Uint8Array(k);for(_||(A[0]=255,A[1]=172),A[2]=y.height>>>24&255,A[3]=y.height>>16&255,A[4]=y.height>>8&255,A[5]=255&y.height,g=h,v=e.length;g<v;g++){var C=0;while(C<k&&A[C]===e[g+C])C++;if(C===k){r.length=g+k;break}}if(4294967295===r.length)throw new s("segment end was not found")}return r.headerEnd=h,r}function k(e,t,r,n){var a=[],i=r;while(i<n){var o=_(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 l=0,c=a.length;l<c;l++)a[l].start=i,i+=a[l].header.length,a[l].end=i;return a}function x(e,t){return{width:(0,a.readUint32)(e,t),height:(0,a.readUint32)(e,t+4),x:(0,a.readUint32)(e,t+8),y:(0,a.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}var S=17;function A(e,t){var r,n,i,o,l=e.header,c=e.data,u=e.start,d=e.end;switch(l.type){case 0:var h={},f=(0,a.readUint16)(c,u);if(h.huffman=!!(1&f),h.refinement=!!(2&f),h.huffmanDHSelector=f>>2&3,h.huffmanDWSelector=f>>4&3,h.bitmapSizeSelector=f>>6&1,h.aggregationInstancesSelector=f>>7&1,h.bitmapCodingContextUsed=!!(256&f),h.bitmapCodingContextRetained=!!(512&f),h.template=f>>10&3,h.refinementTemplate=f>>12&1,u+=2,!h.huffman){for(o=0===h.template?4:1,n=[],i=0;i<o;i++)n.push({x:(0,a.readInt8)(c,u),y:(0,a.readInt8)(c,u+1)}),u+=2;h.at=n}if(h.refinement&&!h.refinementTemplate){for(n=[],i=0;i<2;i++)n.push({x:(0,a.readInt8)(c,u),y:(0,a.readInt8)(c,u+1)}),u+=2;h.refinementAt=n}h.numberOfExportedSymbols=(0,a.readUint32)(c,u),u+=4,h.numberOfNewSymbols=(0,a.readUint32)(c,u),u+=4,r=[h,l.number,l.referredTo,c,u,d];break;case 6:case 7:var p={};p.info=x(c,u),u+=S;var g=(0,a.readUint16)(c,u);if(u+=2,p.huffman=!!(1&g),p.refinement=!!(2&g),p.logStripSize=g>>2&3,p.stripSize=1<<p.logStripSize,p.referenceCorner=g>>4&3,p.transposed=!!(64&g),p.combinationOperator=g>>7&3,p.defaultPixelValue=g>>9&1,p.dsOffset=g<<17>>27,p.refinementTemplate=g>>15&1,p.huffman){var v=(0,a.readUint16)(c,u);u+=2,p.huffmanFS=3&v,p.huffmanDS=v>>2&3,p.huffmanDT=v>>4&3,p.huffmanRefinementDW=v>>6&3,p.huffmanRefinementDH=v>>8&3,p.huffmanRefinementDX=v>>10&3,p.huffmanRefinementDY=v>>12&3,p.huffmanRefinementSizeSelector=!!(16384&v)}if(p.refinement&&!p.refinementTemplate){for(n=[],i=0;i<2;i++)n.push({x:(0,a.readInt8)(c,u),y:(0,a.readInt8)(c,u+1)}),u+=2;p.refinementAt=n}p.numberOfSymbolInstances=(0,a.readUint32)(c,u),u+=4,r=[p,l.referredTo,c,u,d];break;case 16:var m={},b=c[u++];m.mmr=!!(1&b),m.template=b>>1&3,m.patternWidth=c[u++],m.patternHeight=c[u++],m.maxPatternIndex=(0,a.readUint32)(c,u),u+=4,r=[m,l.number,c,u,d];break;case 22:case 23:var y={};y.info=x(c,u),u+=S;var w=c[u++];y.mmr=!!(1&w),y.template=w>>1&3,y.enableSkip=!!(8&w),y.combinationOperator=w>>4&7,y.defaultPixelValue=w>>7&1,y.gridWidth=(0,a.readUint32)(c,u),u+=4,y.gridHeight=(0,a.readUint32)(c,u),u+=4,y.gridOffsetX=4294967295&(0,a.readUint32)(c,u),u+=4,y.gridOffsetY=4294967295&(0,a.readUint32)(c,u),u+=4,y.gridVectorX=(0,a.readUint16)(c,u),u+=2,y.gridVectorY=(0,a.readUint16)(c,u),u+=2,r=[y,l.referredTo,c,u,d];break;case 38:case 39:var _={};_.info=x(c,u),u+=S;var k=c[u++];if(_.mmr=!!(1&k),_.template=k>>1&3,_.prediction=!!(8&k),!_.mmr){for(o=0===_.template?4:1,n=[],i=0;i<o;i++)n.push({x:(0,a.readInt8)(c,u),y:(0,a.readInt8)(c,u+1)}),u+=2;_.at=n}r=[_,c,u,d];break;case 48:var A={width:(0,a.readUint32)(c,u),height:(0,a.readUint32)(c,u+4),resolutionX:(0,a.readUint32)(c,u+8),resolutionY:(0,a.readUint32)(c,u+12)};4294967295===A.height&&delete A.height;var C=c[u+16];(0,a.readUint16)(c,u+17),A.lossless=!!(1&C),A.refinement=!!(2&C),A.defaultPixelValue=C>>2&1,A.combinationOperator=C>>3&3,A.requiresBuffer=!!(32&C),A.combinationOperatorOverride=!!(64&C),r=[A];break;case 49:break;case 50:break;case 51:break;case 53:r=[l.number,c,u,d];break;case 62:break;default:throw new s("segment type ".concat(l.typeName,"(").concat(l.type,")")+" is not implemented")}var P="on"+l.typeName;P in t&&t[P].apply(t,r)}function C(e,t){for(var r=0,n=e.length;r<n;r++)A(e[r],t)}function P(e){for(var t=new E,r=0,n=e.length;r<n;r++){var a=e[r],i=k({},a.data,a.start,a.end);C(i,t)}return t.buffer}function T(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 s("parseJbig2 - invalid header.");var n=Object.create(null);r+=8;var i=e[r++];n.randomAccess=!(1&i),2&i||(n.numberOfPages=(0,a.readUint32)(e,r),r+=4);var o=k(n,e,r,t),l=new E;C(o,l);for(var c=l.currentPageInfo,u=c.width,d=c.height,h=l.buffer,f=new Uint8ClampedArray(u*d),p=0,g=0,v=0;v<d;v++)for(var m=0,b=void 0,y=0;y<u;y++)m||(m=128,b=h[g++]),f[p++]=b&m?0:255,m>>=1;return{imgData:f,width:u,height:d}}function E(){}function R(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}function I(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}function O(e,t){t||this.assignPrefixCodes(e),this.rootNode=new I(null);for(var r=0,n=e.length;r<n;r++){var a=e[r];a.prefixLength>0&&this.rootNode.buildTree(a,a.prefixLength-1)}}function L(e,t,r){var n,i,o=e[t],s=4294967295&(0,a.readUint32)(e,t+1),l=4294967295&(0,a.readUint32)(e,t+5),c=new D(e,t+9,r),u=1+(o>>1&7),d=1+(o>>4&7),h=[],f=s;do{n=c.readBits(u),i=c.readBits(d),h.push(new R([f,n,i,0])),f+=1<<i}while(f<l);return n=c.readBits(u),h.push(new R([s-1,n,32,0,"lower"])),n=c.readBits(u),h.push(new R([l,n,32,0])),1&o&&(n=c.readBits(u),h.push(new R([n,0]))),new O(h,!1)}E.prototype={onPageInformation: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},drawBitmap:function(e,t){var r,n,a,i,o=this.currentPageInfo,l=e.width,c=e.height,u=o.width+7>>3,d=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,h=this.buffer,f=128>>(7&e.x),p=e.y*u+(e.x>>3);switch(d){case 0:for(r=0;r<c;r++){for(a=f,i=p,n=0;n<l;n++)t[r][n]&&(h[i]|=a),a>>=1,a||(a=128,i++);p+=u}break;case 2:for(r=0;r<c;r++){for(a=f,i=p,n=0;n<l;n++)t[r][n]&&(h[i]^=a),a>>=1,a||(a=128,i++);p+=u}break;default:throw new s("operator ".concat(d," is not supported"))}},onImmediateGenericRegion:function(e,r,n,a){var i=e.info,o=new t(r,n,a),s=g(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(i,s)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,n,a,i,o){var s,l;e.huffman&&(s=U(e,n,this.customTables),l=new D(a,i,o));var c=this.symbols;c||(this.symbols=c={});for(var u=[],d=0,h=n.length;d<h;d++){var f=c[n[d]];f&&(u=u.concat(f))}var p=new t(a,i,o);c[r]=m(e.huffman,e.refinement,u,e.numberOfNewSymbols,e.numberOfExportedSymbols,s,e.template,e.at,e.refinementTemplate,e.refinementAt,p,l)},onImmediateTextRegion:function(e,r,n,i,o){for(var s,l,c=e.info,u=this.symbols,d=[],h=0,f=r.length;h<f;h++){var p=u[r[h]];p&&(d=d.concat(p))}var g=(0,a.log2)(d.length);e.huffman&&(l=new D(n,i,o),s=B(e,r,this.customTables,d.length,l));var v=new t(n,i,o),m=b(e.huffman,e.refinement,c.width,c.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,d,g,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,s,e.refinementTemplate,e.refinementAt,v,e.logStripSize,l);this.drawBitmap(c,m)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary:function(e,r,n,a,i){var o=this.patterns;o||(this.patterns=o={});var s=new t(n,a,i);o[r]=y(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,s)},onImmediateHalftoneRegion:function(e,r,n,a,i){var o=this.patterns[r[0]],s=e.info,l=new t(n,a,i),c=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,l);this.drawBitmap(s,c)},onImmediateLosslessHalftoneRegion:function(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables:function(e,t,r,n){var a=this.customTables;a||(this.customTables=a={}),a[e]=L(t,r,n)}},I.prototype={buildTree:function(e,t){var r=e.prefixCode>>t&1;if(t<=0)this.children[r]=new I(e);else{var n=this.children[r];n||(this.children[r]=n=new I(null)),n.buildTree(e,t-1)}},decodeNode:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new s("invalid Huffman data");return r.decodeNode(e)}},O.prototype={decode:function(e){return this.rootNode.decodeNode(e)},assignPrefixCodes: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,l,c=1,u=0;a[0]=0;while(c<=r){u=u+a[c-1]<<1,o=u,s=0;while(s<t)l=e[s],l.prefixLength===c&&(l.prefixCode=o,o++),s++;c++}}};var F={};function M(e){var t,r=F[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 s("standard table B.".concat(e," does not exist"))}for(var n=0,a=t.length;n<a;n++)t[n]=new R(t[n]);return r=new O(t,!0),F[e]=r,r}function D(e,t,r){this.data=e,this.start=t,this.end=r,this.position=t,this.shift=-1,this.currentByte=0}function N(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 s("can't find custom Huffman table")}function B(e,t,r,n,a){for(var i=[],o=0;o<=34;o++){var l=a.readBits(4);i.push(new R([o,l,0,0]))}var c=new O(i,!1);i.length=0;for(var u=0;u<n;){var d=c.decode(a);if(d>=32){var h=void 0,f=void 0,p=void 0;switch(d){case 32:if(0===u)throw new s("no previous value in symbol ID table");f=a.readBits(2)+3,h=i[u-1].prefixLength;break;case 33:f=a.readBits(3)+3,h=0;break;case 34:f=a.readBits(7)+11,h=0;break;default:throw new s("invalid code length in symbol ID table")}for(p=0;p<f;p++)i.push(new R([u,h,0,0])),u++}else i.push(new R([u,d,0,0])),u++}a.byteAlign();var g,v,m,b=new O(i,!1),y=0;switch(e.huffmanFS){case 0:case 1:g=M(e.huffmanFS+6);break;case 3:g=N(y,t,r),y++;break;default:throw new s("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:v=M(e.huffmanDS+8);break;case 3:v=N(y,t,r),y++;break;default:throw new s("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:m=M(e.huffmanDT+11);break;case 3:m=N(y,t,r),y++;break;default:throw new s("invalid Huffman DT selector")}if(e.refinement)throw new s("refinement with Huffman is not supported");return{symbolIDTable:b,tableFirstS:g,tableDeltaS:v,tableDeltaT:m}}function U(e,t,r){var n,a,i,o,l=0;switch(e.huffmanDHSelector){case 0:case 1:n=M(e.huffmanDHSelector+4);break;case 3:n=N(l,t,r),l++;break;default:throw new s("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:a=M(e.huffmanDWSelector+2);break;case 3:a=N(l,t,r),l++;break;default:throw new s("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=N(l,t,r),l++):i=M(1),o=e.aggregationInstancesSelector?N(l,t,r):M(1),{tableDeltaHeight:n,tableDeltaWidth:a,tableBitmapSize:i,tableAggregateInstances:o}}function j(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 q(e,t,r,n){for(var a,i={K:-1,Columns:t,Rows:r,BlackIs1:!0,EndOfBlock:n},s=new o.CCITTFaxDecoder(e,i),l=[],c=!1,u=0;u<r;u++){var d=new Uint8Array(t);l.push(d);for(var h=-1,f=0;f<t;f++)h<0&&(a=s.readNextChar(),-1===a&&(a=0,c=!0),h=7),d[f]=a>>h&1,h--}if(n&&!c)for(var p=5,g=0;g<p;g++)if(-1===s.readNextChar())break;return l}function z(){}return D.prototype={readBit:function(){if(this.shift<0){if(this.position>=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e},readBits:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<<t;return r},byteAlign:function(){this.shift=-1},next:function(){return this.position>=this.end?-1:this.data[this.position++]}},z.prototype={parseChunks:function(e){return P(e)},parse:function(e){var t=T(e),r=t.imgData,n=t.width,a=t.height;return this.width=n,this.height=a,r}},z}();t.Jbig2Image=l},function(e,t,r){"use strict";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){p(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}return f(e,[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=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,l=this.a-s;if(this.chigh<s)l<s?(l=s,r=i,a=o.nmps):(l=s,r=1^i,1===o.switchFlag&&(i=r),a=o.nlps);else{if(this.chigh-=s,0!==(32768&l))return this.a=l,i;l<s?(r=1^i,1===o.switchFlag&&(i=r),a=o.nlps):(r=i,a=o.nmps)}do{0===this.ct&&this.byteIn(),l<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0===(32768&l));return this.a=l,e[t]=a<<1|i,r}}]),e}();t.ArithmeticDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var n=r(2),a=r(11),i=r(4),o=r(18),s=function(){function e(e,t,r,n){var i;while(-1!==(i=e.getByte()))if(255===i){e.skip(-1);break}this.stream=e,this.maybeLength=t,this.dict=r,this.params=n,a.DecodeStream.call(this,t)}return e.prototype=Object.create(a.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,n.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BitsPerComponent")||8,n=t.length,a=new Int32Array(n),s=!1,l=(1<<r)-1,c=0;c<n;c+=2)a[c]=256*(t[c+1]-t[c])|0,a[c+1]=t[c]*l|0,256===a[c]&&0===a[c+1]||(s=!0);s&&(e.decodeTransform=a)}if((0,i.isDict)(this.params)){var u=this.params.get("ColorTransform");Number.isInteger(u)&&(e.colorTransform=u)}var d=new o.JpegImage(e);d.parse(this.bytes);var h=d.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=h,this.bufferLength=h.length,this.eof=!0}},Object.defineProperty(e.prototype,"maybeValidDimensions",{get:function(){var e,t=this.dict,r=this.stream,a=t.get("Height","H"),i=r.pos,o=!0,s=!1;while(-1!==(e=r.getByte()))if(255===e){switch(r.getByte()){case 192:case 193:case 194:s=!0,r.pos+=2,r.pos+=1;var l=r.getUint16();if(l===a)break;if(0===l){o=!1;break}if(l>10*a){o=!1;break}break;case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:s=!0;break;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:var c=r.getUint16();c>2?r.skip(c-2):r.skip(-2);break;case 255:r.skip(-1);break;case 217:s=!0;break}if(s)break}return r.pos=i,(0,n.shadow)(this,"maybeValidDimensions",o)},configurable:!0}),e.prototype.getIR=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,n.createObjectURL)(this.bytes,"image/jpeg",e)},e}();t.JpegStream=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var n=r(2),a=r(7),i=function(e){g(r,e);var t=v(r);function r(e){return p(this,r),t.call(this,"JPEG error: ".concat(e))}return r}(n.BaseException),o=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,e),a.scanLines=n,a}return r}(n.BaseException),s=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(n.BaseException),l=function(){var e=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]),t=4017,r=799,l=3406,c=2276,u=1567,d=3784,h=5793,f=2896;function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.decodeTransform,r=void 0===t?null:t,n=e.colorTransform,a=void 0===n?-1:n;this._decodeTransform=r,this._colorTransform=a}function g(e,t){var r,n,a=0,i=[],o=16;while(o>0&&!e[o-1])o--;i.push({children:[],index:0});var s,l=i[0];for(r=0;r<o;r++){for(n=0;n<e[r];n++){l=i.pop(),l.children[l.index]=t[a];while(l.index>0)l=i.pop();l.index++,i.push(l);while(i.length<=r)i.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;a++}r+1<o&&(i.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s)}return i[0].children}function v(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function m(t,r,l,c,u,d,h,f,p){var g=arguments.length>9&&void 0!==arguments[9]&&arguments[9],m=l.mcusPerLine,b=l.progressive,w=r,k=0,x=0;function S(){if(x>0)return x--,k>>x&1;if(k=t[r++],255===k){var e=t[r++];if(e){if(220===e&&g){r+=2;var n=(0,a.readUint16)(t,r);if(r+=2,n>0&&n!==l.scanLines)throw new o("Found DNL marker (0xFFDC) while parsing scan data",n)}else if(217===e){if(g){var c=8*D;if(c>0&&c<l.scanLines/10)throw new o("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",c)}throw new s("Found EOI marker (0xFFD9) while parsing scan data")}throw new i("unexpected marker ".concat((k<<8|e).toString(16)))}}return x=7,k>>>7}function A(e){var t=e;while(1){switch(t=t[S()],y(t)){case"number":return t;case"object":continue}throw new i("invalid huffman sequence")}}function C(e){var t=0;while(e>0)t=t<<1|S(),e--;return t}function P(e){if(1===e)return 1===S()?1:-1;var t=C(e);return t>=1<<e-1?t:t+(-1<<e)+1}function T(t,r){var n=A(t.huffmanTableDC),a=0===n?0:P(n);t.blockData[r]=t.pred+=a;var i=1;while(i<64){var o=A(t.huffmanTableAC),s=15&o,l=o>>4;if(0!==s){i+=l;var c=e[i];t.blockData[r+c]=P(s),i++}else{if(l<15)break;i+=16}}}function E(e,t){var r=A(e.huffmanTableDC),n=0===r?0:P(r)<<p;e.blockData[t]=e.pred+=n}function R(e,t){e.blockData[t]|=S()<<p}var I=0;function O(t,r){if(I>0)I--;else{var n=d,a=h;while(n<=a){var i=A(t.huffmanTableAC),o=15&i,s=i>>4;if(0!==o){n+=s;var l=e[n];t.blockData[r+l]=P(o)*(1<<p),n++}else{if(s<15){I=C(s)+(1<<s)-1;break}n+=16}}}}var L,F=0;function M(t,r){var n,a,o=d,s=h,l=0;while(o<=s){var c=r+e[o],u=t.blockData[c]<0?-1:1;switch(F){case 0:if(a=A(t.huffmanTableAC),n=15&a,l=a>>4,0===n)l<15?(I=C(l)+(1<<l),F=4):(l=16,F=1);else{if(1!==n)throw new i("invalid ACn encoding");L=P(n),F=l?2:3}continue;case 1:case 2:t.blockData[c]?t.blockData[c]+=u*(S()<<p):(l--,0===l&&(F=2===F?3:0));break;case 3:t.blockData[c]?t.blockData[c]+=u*(S()<<p):(t.blockData[c]=L<<p,F=0);break;case 4:t.blockData[c]&&(t.blockData[c]+=u*(S()<<p));break}o++}4===F&&(I--,0===I&&(F=0))}var D=0;function N(e,t,r,n,a){var i=r/m|0,o=r%m;D=i*e.v+n;var s=o*e.h+a,l=v(e,D,s);t(e,l)}function B(e,t,r){D=r/e.blocksPerLine|0;var n=r%e.blocksPerLine,a=v(e,D,n);t(e,a)}var U,j,q,z,V,W,H=c.length;W=b?0===d?0===f?E:R:0===f?O:M:T;var G,Y,X,K,Z=0;Y=1===H?c[0].blocksPerLine*c[0].blocksPerColumn:m*l.mcusPerColumn;while(Z<Y){var J=u?Math.min(Y-Z,u):Y;for(j=0;j<H;j++)c[j].pred=0;if(I=0,1===H)for(U=c[0],V=0;V<J;V++)B(U,W,Z),Z++;else for(V=0;V<J;V++){for(j=0;j<H;j++)for(U=c[j],X=U.h,K=U.v,q=0;q<K;q++)for(z=0;z<X;z++)N(U,W,Z,q,z);Z++}if(x=0,G=_(t,r),!G)break;G.invalid&&((0,n.warn)("decodeScan - unexpected MCU data, current marker is: "+G.invalid),r=G.offset);var Q=G&&G.marker;if(!Q||Q<=65280)throw new i("decodeScan - a valid marker was not found.");if(!(Q>=65488&&Q<=65495))break;r+=2}return G=_(t,r),G&&G.invalid&&((0,n.warn)("decodeScan - unexpected Scan data, current marker is: "+G.invalid),r=G.offset),r-w}function b(e,n,a){var o,s,p,g,v,m,b,y,w,_,k,x,S,A,C,P,T,E=e.quantizationTable,R=e.blockData;if(!E)throw new i("missing required Quantization Table.");for(var I=0;I<64;I+=8)w=R[n+I],_=R[n+I+1],k=R[n+I+2],x=R[n+I+3],S=R[n+I+4],A=R[n+I+5],C=R[n+I+6],P=R[n+I+7],w*=E[I],0!==(_|k|x|S|A|C|P)?(_*=E[I+1],k*=E[I+2],x*=E[I+3],S*=E[I+4],A*=E[I+5],C*=E[I+6],P*=E[I+7],o=h*w+128>>8,s=h*S+128>>8,p=k,g=C,v=f*(_-P)+128>>8,y=f*(_+P)+128>>8,m=x<<4,b=A<<4,o=o+s+1>>1,s=o-s,T=p*d+g*u+128>>8,p=p*u-g*d+128>>8,g=T,v=v+b+1>>1,b=v-b,y=y+m+1>>1,m=y-m,o=o+g+1>>1,g=o-g,s=s+p+1>>1,p=s-p,T=v*c+y*l+2048>>12,v=v*l-y*c+2048>>12,y=T,T=m*r+b*t+2048>>12,m=m*t-b*r+2048>>12,b=T,a[I]=o+y,a[I+7]=o-y,a[I+1]=s+b,a[I+6]=s-b,a[I+2]=p+m,a[I+5]=p-m,a[I+3]=g+v,a[I+4]=g-v):(T=h*w+512>>10,a[I]=T,a[I+1]=T,a[I+2]=T,a[I+3]=T,a[I+4]=T,a[I+5]=T,a[I+6]=T,a[I+7]=T);for(var O=0;O<8;++O)w=a[O],_=a[O+8],k=a[O+16],x=a[O+24],S=a[O+32],A=a[O+40],C=a[O+48],P=a[O+56],0!==(_|k|x|S|A|C|P)?(o=h*w+2048>>12,s=h*S+2048>>12,p=k,g=C,v=f*(_-P)+2048>>12,y=f*(_+P)+2048>>12,m=x,b=A,o=4112+(o+s+1>>1),s=o-s,T=p*d+g*u+2048>>12,p=p*u-g*d+2048>>12,g=T,v=v+b+1>>1,b=v-b,y=y+m+1>>1,m=y-m,o=o+g+1>>1,g=o-g,s=s+p+1>>1,p=s-p,T=v*c+y*l+2048>>12,v=v*l-y*c+2048>>12,y=T,T=m*r+b*t+2048>>12,m=m*t-b*r+2048>>12,b=T,w=o+y,P=o-y,_=s+b,C=s-b,k=p+m,A=p-m,x=g+v,S=g-v,w<16?w=0:w>=4080?w=255:w>>=4,_<16?_=0:_>=4080?_=255:_>>=4,k<16?k=0:k>=4080?k=255:k>>=4,x<16?x=0:x>=4080?x=255:x>>=4,S<16?S=0:S>=4080?S=255:S>>=4,A<16?A=0:A>=4080?A=255:A>>=4,C<16?C=0:C>=4080?C=255:C>>=4,P<16?P=0:P>=4080?P=255:P>>=4,R[n+O]=w,R[n+O+8]=_,R[n+O+16]=k,R[n+O+24]=x,R[n+O+32]=S,R[n+O+40]=A,R[n+O+48]=C,R[n+O+56]=P):(T=h*w+8192>>14,T=T<-2040?0:T>=2024?255:T+2056>>4,R[n+O]=T,R[n+O+8]=T,R[n+O+16]=T,R[n+O+24]=T,R[n+O+32]=T,R[n+O+40]=T,R[n+O+48]=T,R[n+O+56]=T)}function w(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++){var s=v(t,i,o);b(t,s,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};var s=(0,a.readUint16)(e,i);while(!(s>=65472&&s<=65534)){if(++i>=n)return null;s=(0,a.readUint16)(e,i)}return{invalid:o.toString(16),marker:s,offset:i}}return p.prototype={parse:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=r.dnlScanLines,c=void 0===l?null:l;function u(){var e=(0,a.readUint16)(t,p);p+=2;var r=p+e-2,i=_(t,r,p);i&&i.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+i.invalid),r=i.offset);var o=t.subarray(p,r);return p+=o.length,o}function d(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),n=0;n<e.components.length;n++){K=e.components[n];var a=Math.ceil(Math.ceil(e.samplesPerLine/8)*K.h/e.maxH),i=Math.ceil(Math.ceil(e.scanLines/8)*K.v/e.maxV),o=t*K.h,s=r*K.v,l=64*s*(o+1);K.blockData=new Int16Array(l),K.blocksPerLine=a,K.blocksPerColumn=i}e.mcusPerLine=t,e.mcusPerColumn=r}var h,f,p=0,v=null,b=null,y=0,k=[],x=[],S=[],A=(0,a.readUint16)(t,p);if(p+=2,65496!==A)throw new i("SOI not found");A=(0,a.readUint16)(t,p),p+=2;e:while(65497!==A){var C,P,T;switch(A){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var E=u();65504===A&&74===E[0]&&70===E[1]&&73===E[2]&&70===E[3]&&0===E[4]&&(v={version:{major:E[5],minor:E[6]},densityUnits:E[7],xDensity:E[8]<<8|E[9],yDensity:E[10]<<8|E[11],thumbWidth:E[12],thumbHeight:E[13],thumbData:E.subarray(14,14+3*E[12]*E[13])}),65518===A&&65===E[0]&&100===E[1]&&111===E[2]&&98===E[3]&&101===E[4]&&(b={version:E[5]<<8|E[6],flags0:E[7]<<8|E[8],flags1:E[9]<<8|E[10],transformCode:E[11]});break;case 65499:var R=(0,a.readUint16)(t,p);p+=2;var I,O=R+p-2;while(p<O){var L=t[p++],F=new Uint16Array(64);if(L>>4===0)for(P=0;P<64;P++)I=e[P],F[I]=t[p++];else{if(L>>4!==1)throw new i("DQT - invalid table spec");for(P=0;P<64;P++)I=e[P],F[I]=(0,a.readUint16)(t,p),p+=2}k[15&L]=F}break;case 65472:case 65473:case 65474:if(h)throw new i("Only single frame JPEGs supported");p+=2,h={},h.extended=65473===A,h.progressive=65474===A,h.precision=t[p++];var M=(0,a.readUint16)(t,p);p+=2,h.scanLines=c||M,h.samplesPerLine=(0,a.readUint16)(t,p),p+=2,h.components=[],h.componentIds={};var D,N=t[p++],B=0,U=0;for(C=0;C<N;C++){D=t[p];var j=t[p+1]>>4,q=15&t[p+1];B<j&&(B=j),U<q&&(U=q);var z=t[p+2];T=h.components.push({h:j,v:q,quantizationId:z,quantizationTable:null}),h.componentIds[D]=T-1,p+=3}h.maxH=B,h.maxV=U,d(h);break;case 65476:var V=(0,a.readUint16)(t,p);for(p+=2,C=2;C<V;){var W=t[p++],H=new Uint8Array(16),G=0;for(P=0;P<16;P++,p++)G+=H[P]=t[p];var Y=new Uint8Array(G);for(P=0;P<G;P++,p++)Y[P]=t[p];C+=17+G,(W>>4===0?S:x)[15&W]=g(H,Y)}break;case 65501:p+=2,f=(0,a.readUint16)(t,p),p+=2;break;case 65498:var X=1===++y&&!c;p+=2;var K,Z=t[p++],J=[];for(C=0;C<Z;C++){var Q=h.componentIds[t[p++]];K=h.components[Q];var $=t[p++];K.huffmanTableDC=S[$>>4],K.huffmanTableAC=x[15&$],J.push(K)}var ee=t[p++],te=t[p++],re=t[p++];try{var ne=m(t,p,h,J,f,ee,te,re>>4,15&re,X);p+=ne}catch(oe){if(oe instanceof o)return(0,n.warn)("".concat(oe.message," -- attempting to re-parse the JPEG image.")),this.parse(t,{dnlScanLines:oe.scanLines});if(oe instanceof s){(0,n.warn)("".concat(oe.message," -- ignoring the rest of the image data."));break e}throw oe}break;case 65500:p+=4;break;case 65535:255!==t[p]&&p--;break;default:var ae=_(t,p-2,p-3);if(ae&&ae.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+ae.invalid),p=ae.offset;break}if(p>=t.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new i("JpegImage.parse - unknown marker: "+A.toString(16))}A=(0,a.readUint16)(t,p),p+=2}for(this.width=h.samplesPerLine,this.height=h.scanLines,this.jfif=v,this.adobe=b,this.components=[],C=0;C<h.components.length;C++){K=h.components[C];var ie=k[K.quantizationId];ie&&(K.quantizationTable=ie),this.components.push({output:w(h,K),scaleX:K.h/h.maxH,scaleY:K.v/h.maxV,blocksPerLine:K.blocksPerLine,blocksPerColumn:K.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var r,n,a,i,o,s,l,c,u,d,h,f,p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],g=this.width/e,v=this.height/t,m=0,b=this.components.length,y=e*t*b,w=new Uint8ClampedArray(y),_=new Uint32Array(e),k=4294967288;for(l=0;l<b;l++){if(r=this.components[l],n=r.scaleX*g,a=r.scaleY*v,m=l,h=r.output,i=r.blocksPerLine+1<<3,n!==f){for(o=0;o<e;o++)c=0|o*n,_[o]=(c&k)<<3|7&c;f=n}for(s=0;s<t;s++)for(c=0|s*a,d=i*(c&k)|(7&c)<<3,o=0;o<e;o++)w[m]=h[d+_[o]],m+=b}var x=this._decodeTransform;if(p||4!==b||x||(x=new Int32Array([-256,255,-256,255,-256,255,-256,255])),x)for(l=0;l<y;)for(c=0,u=0;c<b;c++,l++,u+=2)w[l]=(w[l]*x[u]>>8)+x[u+1];return w},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform:1===this._colorTransform},_convertYccToRgb: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},_convertYcckToRgb: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)},_convertYcckToCmyk: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},_convertCmykToRgb: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)},getData:function(e){var t=e.width,r=e.height,n=e.forceRGB,a=void 0!==n&&n,o=e.isSourcePDF,s=void 0!==o&&o;if(this.numComponents>4)throw new i("Unsupported color mode");var l=this._getLinearizedBlockData(t,r,s);if(1===this.numComponents&&a){for(var c=l.length,u=new Uint8ClampedArray(3*c),d=0,h=0;h<c;h++){var f=l[h];u[d++]=f,u[d++]=f,u[d++]=f}return u}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(l);if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgb(l):this._convertYcckToCmyk(l);if(a)return this._convertCmykToRgb(l)}return l}},p}();t.JpegImage=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var n=r(11),a=r(20),i=r(2),o=function(){function e(e,t,r,a){this.stream=e,this.maybeLength=t,this.dict=r,this.params=a,n.DecodeStream.call(this,t)}return e.prototype=Object.create(n.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e=new a.JpxImage;e.parse(this.bytes);var t=e.width,r=e.height,n=e.componentsCount,i=e.tiles.length;if(1===i)this.buffer=e.tiles[0].items;else{for(var o=new Uint8ClampedArray(t*r*n),s=0;s<i;s++)for(var l=e.tiles[s],c=l.width,u=l.height,d=l.left,h=l.top,f=l.items,p=0,g=(t*h+d)*n,v=t*n,m=c*n,b=0;b<u;b++){var y=f.subarray(p,p+m);o.set(y,g),p+=m,g+=v}this.buffer=o}this.bufferLength=this.buffer.length,this.eof=!0}},e}();t.JpxStream=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var n=r(2),a=r(7),i=r(16),o=function(e){g(r,e);var t=v(r);function r(e){return p(this,r),t.call(this,"JPX error: ".concat(e))}return r}(n.BaseException),s=function(){var e={LL:0,LH:1,HL:1,HH:2};function t(){this.failOnCorruptedImage=!1}function r(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 s(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 l=0;l<i;l++)r={},r.tx0=Math.max(n.XTOsiz+l*n.XTsiz,n.XOsiz),r.ty0=Math.max(n.YTOsiz+s*n.YTsiz,n.YOsiz),r.tx1=Math.min(n.XTOsiz+(l+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 c=n.Csiz,u=0,d=c;u<d;u++)for(var h=t[u],f=0,p=a.length;f<p;f++){var g={};r=a[f],g.tcx0=Math.ceil(r.tx0/h.XRsiz),g.tcy0=Math.ceil(r.ty0/h.YRsiz),g.tcx1=Math.ceil(r.tx1/h.XRsiz),g.tcy1=Math.ceil(r.ty1/h.YRsiz),g.width=g.tcx1-g.tcx0,g.height=g.tcy1-g.tcy0,r.components[u]=g}}function l(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 c(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),l=t.trx1>t.trx0?Math.ceil(t.trx1/n)-Math.floor(t.trx0/n):0,c=t.try1>t.try0?Math.ceil(t.try1/a)-Math.floor(t.try0/a):0,u=l*c;t.precinctParameters={precinctWidth:n,precinctHeight:a,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function u(e,t,r){var n,a,i,o,s=r.xcb_,l=r.ycb_,c=1<<s,u=1<<l,d=t.tbx0>>s,h=t.tby0>>l,f=t.tbx1+c-1>>s,p=t.tby1+u-1>>l,g=t.resolution.precinctParameters,v=[],m=[];for(a=h;a<p;a++)for(n=d;n<f;n++){i={cbx:n,cby:a,tbx0:c*n,tby0:u*a,tbx1:c*(n+1),tby1:u*(a+1)},i.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);var b=Math.floor((i.tbx0_-t.tbx0)/g.precinctWidthInSubband),y=Math.floor((i.tby0_-t.tby0)/g.precinctHeightInSubband);if(o=b+y*g.numprecinctswide,i.precinctNumber=o,i.subbandType=t.type,i.Lblock=3,!(i.tbx1_<=i.tbx0_||i.tby1_<=i.tby0_)){v.push(i);var w=m[o];void 0!==w?(n<w.cbxMin?w.cbxMin=n:n>w.cbxMax&&(w.cbxMax=n),a<w.cbyMin?w.cbxMin=a:a>w.cbyMax&&(w.cbyMax=a)):m[o]=w={cbxMin:n,cbyMin:a,cbxMax:n,cbyMax:a},i.precinct=w}}t.codeblockParameters={codeblockWidth:s,codeblockHeight:l,numcodeblockwide:f-d+1,numcodeblockhigh:p-h+1},t.codeblocks=v,t.precincts=m}function d(e,t,r){for(var n=[],a=e.subbands,i=0,o=a.length;i<o;i++)for(var s=a[i],l=s.codeblocks,c=0,u=l.length;c<u;c++){var d=l[c];d.precinctNumber===t&&n.push(d)}return{layerNumber:r,codeblocks:n}}function h(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=0,l=0;l<i;l++)s=Math.max(s,n.components[l].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,h=0,f=0;this.nextPacket=function(){for(;c<a;c++){for(;u<=s;u++){for(;h<i;h++){var e=n.components[h];if(!(u>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;f<r;){var l=d(t,f,c);return f++,l}f=0}}h=0}u=0}throw new o("Out of packets")}}function f(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=0,l=0;l<i;l++)s=Math.max(s,n.components[l].codingStyleParameters.decompositionLevelsCount);var c=0,u=0,h=0,f=0;this.nextPacket=function(){for(;c<=s;c++){for(;u<a;u++){for(;h<i;h++){var e=n.components[h];if(!(c>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],r=t.precinctParameters.numprecincts;f<r;){var l=d(t,f,u);return f++,l}f=0}}h=0}u=0}throw new o("Out of packets")}}function p(e){var t,r,n,a,i=e.SIZ,s=e.currentTile.index,l=e.tiles[s],c=l.codingStyleDefaultParameters.layersCount,u=i.Csiz,h=0;for(n=0;n<u;n++){var f=l.components[n];h=Math.max(h,f.codingStyleParameters.decompositionLevelsCount)}var p=new Int32Array(h+1);for(r=0;r<=h;++r){var g=0;for(n=0;n<u;++n){var v=l.components[n].resolutions;r<v.length&&(g=Math.max(g,v[r].precinctParameters.numprecincts))}p[r]=g}t=0,r=0,n=0,a=0,this.nextPacket=function(){for(;r<=h;r++){for(;a<p[r];a++){for(;n<u;n++){var e=l.components[n];if(!(r>e.codingStyleParameters.decompositionLevelsCount)){var i=e.resolutions[r],s=i.precinctParameters.numprecincts;if(!(a>=s)){for(;t<c;){var f=d(i,a,t);return t++,f}t=0}}}n=0}a=0}throw new o("Out of packets")}}function g(e){var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=b(n),l=s,c=0,u=0,h=0,f=0,p=0;this.nextPacket=function(){for(;p<l.maxNumHigh;p++){for(;f<l.maxNumWide;f++){for(;h<i;h++){for(var e=n.components[h],t=e.codingStyleParameters.decompositionLevelsCount;u<=t;u++){var r=e.resolutions[u],g=s.components[h].resolutions[u],v=m(f,p,g,l,r);if(null!==v){for(;c<a;){var b=d(r,v,c);return c++,b}c=0}}u=0}h=0}f=0}throw new o("Out of packets")}}function v(e){var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=n.codingStyleDefaultParameters.layersCount,i=t.Csiz,s=b(n),l=0,c=0,u=0,h=0,f=0;this.nextPacket=function(){for(;u<i;++u){for(var e=n.components[u],t=s.components[u],r=e.codingStyleParameters.decompositionLevelsCount;f<t.maxNumHigh;f++){for(;h<t.maxNumWide;h++){for(;c<=r;c++){var p=e.resolutions[c],g=t.resolutions[c],v=m(h,f,g,t,p);if(null!==v){for(;l<a;){var b=d(p,v,l);return l++,b}l=0}}c=0}h=0}f=0}throw new o("Out of packets")}}function m(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 b(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 l=e.components[s],c=l.codingStyleParameters.decompositionLevelsCount,u=new Array(c+1),d=Number.MAX_VALUE,h=Number.MAX_VALUE,f=0,p=0,g=1,v=c;v>=0;--v){var m=l.resolutions[v],b=g*m.precinctParameters.precinctWidth,y=g*m.precinctParameters.precinctHeight;d=Math.min(d,b),h=Math.min(h,y),f=Math.max(f,m.precinctParameters.numprecinctswide),p=Math.max(p,m.precinctParameters.numprecinctshigh),u[v]={width:b,height:y},g<<=1}r=Math.min(r,d),n=Math.min(n,h),a=Math.max(a,f),i=Math.max(i,p),o[s]={resolutions:u,minWidth:d,minHeight:h,maxNumWide:f,maxNumHigh:p}}return{components:o,minWidth:r,minHeight:n,maxNumWide:a,maxNumHigh:i}}function y(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=t.Csiz,i=0;i<a;i++){for(var s=n.components[i],d=s.codingStyleParameters.decompositionLevelsCount,m=[],b=[],y=0;y<=d;y++){var w,_=l(e,s,y),k={},x=1<<d-y;if(k.trx0=Math.ceil(s.tcx0/x),k.try0=Math.ceil(s.tcy0/x),k.trx1=Math.ceil(s.tcx1/x),k.try1=Math.ceil(s.tcy1/x),k.resLevel=y,c(e,k,_),m.push(k),0===y)w={},w.type="LL",w.tbx0=Math.ceil(s.tcx0/x),w.tby0=Math.ceil(s.tcy0/x),w.tbx1=Math.ceil(s.tcx1/x),w.tby1=Math.ceil(s.tcy1/x),w.resolution=k,u(e,w,_),b.push(w),k.subbands=[w];else{var S=1<<d-y+1,A=[];w={},w.type="HL",w.tbx0=Math.ceil(s.tcx0/S-.5),w.tby0=Math.ceil(s.tcy0/S),w.tbx1=Math.ceil(s.tcx1/S-.5),w.tby1=Math.ceil(s.tcy1/S),w.resolution=k,u(e,w,_),b.push(w),A.push(w),w={},w.type="LH",w.tbx0=Math.ceil(s.tcx0/S),w.tby0=Math.ceil(s.tcy0/S-.5),w.tbx1=Math.ceil(s.tcx1/S),w.tby1=Math.ceil(s.tcy1/S-.5),w.resolution=k,u(e,w,_),b.push(w),A.push(w),w={},w.type="HH",w.tbx0=Math.ceil(s.tcx0/S-.5),w.tby0=Math.ceil(s.tcy0/S-.5),w.tbx1=Math.ceil(s.tcx1/S-.5),w.tby1=Math.ceil(s.tcy1/S-.5),w.resolution=k,u(e,w,_),b.push(w),A.push(w),k.subbands=A}}s.resolutions=m,s.subbands=b}var C=n.codingStyleDefaultParameters.progressionOrder;switch(C){case 0:n.packetsIterator=new h(e);break;case 1:n.packetsIterator=new f(e);break;case 2:n.packetsIterator=new p(e);break;case 3:n.packetsIterator=new g(e);break;case 4:n.packetsIterator=new v(e);break;default:throw new o("Unsupported progression order ".concat(C))}}function w(e,t,r,n){var i,o=0,s=0,l=!1;function c(e){while(s<e){var n=t[r+o];o++,l?(i=i<<7|n,s+=7,l=!1):(i=i<<8|n,s+=8),255===n&&(l=!0)}return s-=e,i>>>s&(1<<e)-1}function u(e){return 255===t[r+o-1]&&t[r+o]===e?(d(1),!0):255===t[r+o]&&t[r+o+1]===e&&(d(2),!0)}function d(e){o+=e}function h(){s=0,l&&(o++,l=!1)}function f(){if(0===c(1))return 1;if(0===c(1))return 2;var e=c(2);return e<3?e+3:(e=c(5),e<31?e+6:(e=c(7),e+37))}var p=e.currentTile.index,g=e.tiles[p],v=e.COD.sopMarkerUsed,m=e.COD.ephMarkerUsed,b=g.packetsIterator;while(o<n){h(),v&&u(145)&&d(4);var y=b.nextPacket();if(c(1)){for(var w,_=y.layerNumber,k=[],x=0,S=y.codeblocks.length;x<S;x++){w=y.codeblocks[x];var P,T=w.precinct,E=w.cbx-T.cbxMin,R=w.cby-T.cbyMin,I=!1,O=!1;if(void 0!==w["included"])I=!!c(1);else{var L,F;if(T=w.precinct,void 0!==T["inclusionTree"])L=T.inclusionTree;else{var M=T.cbxMax-T.cbxMin+1,D=T.cbyMax-T.cbyMin+1;L=new C(M,D,_),F=new A(M,D),T.inclusionTree=L,T.zeroBitPlanesTree=F}if(L.reset(E,R,_))while(1){if(!c(1)){L.incrementValue(_);break}if(P=!L.nextLevel(),P){w.included=!0,I=O=!0;break}}}if(I){if(O){F=T.zeroBitPlanesTree,F.reset(E,R);while(1)if(c(1)){if(P=!F.nextLevel(),P)break}else F.incrementValue();w.zeroBitPlanes=F.value}var N=f();while(c(1))w.Lblock++;var B=(0,a.log2)(N),U=(N<1<<B?B-1:B)+w.Lblock,j=c(U);k.push({codeblock:w,codingpasses:N,dataLength:j})}}h(),m&&u(146);while(k.length>0){var q=k.shift();w=q.codeblock,void 0===w["data"]&&(w.data=[]),w.data.push({data:t,start:r+o,end:r+o+q.dataLength,codingpasses:q.codingpasses}),o+=q.dataLength}}}return o}function _(e,t,r,n,a,o,s,l){for(var c=n.tbx0,u=n.tby0,d=n.tbx1-n.tbx0,h=n.codeblocks,f="H"===n.type.charAt(0)?1:0,p="H"===n.type.charAt(1)?t:0,g=0,v=h.length;g<v;++g){var m=h[g],b=m.tbx1_-m.tbx0_,y=m.tby1_-m.tby0_;if(0!==b&&0!==y&&void 0!==m["data"]){var w,_;w=new P(b,y,m.subbandType,m.zeroBitPlanes,o),_=2;var k,x,S,A=m.data,C=0,T=0;for(k=0,x=A.length;k<x;k++)S=A[k],C+=S.end-S.start,T+=S.codingpasses;var E=new Uint8Array(C),R=0;for(k=0,x=A.length;k<x;k++){S=A[k];var I=S.data.subarray(S.start,S.end);E.set(I,R),R+=I.length}var O=new i.ArithmeticDecoder(E,0,C);for(w.setDecoder(O),k=0;k<T;k++){switch(_){case 0:w.runSignificancePropagationPass();break;case 1:w.runMagnitudeRefinementPass();break;case 2:w.runCleanupPass(),l&&w.checkSegmentationSymbol();break}_=(_+1)%3}var L,F,M,D=m.tbx0_-c+(m.tby0_-u)*d,N=w.coefficentsSign,B=w.coefficentsMagnitude,U=w.bitsDecoded,j=s?0:.5;R=0;var q="LL"!==n.type;for(k=0;k<y;k++){var z=D/d|0,V=2*z*(t-d)+f+p;for(L=0;L<b;L++){if(F=B[R],0!==F){F=(F+j)*a,0!==N[R]&&(F=-F),M=U[R];var W=q?V+(D<<1):D;e[W]=s&&M>=o?F:F*(1<<o-M)}D++,R++}D+=d-b}}}}function k(t,r,n){for(var a=r.components[n],i=a.codingStyleParameters,o=a.quantizationParameters,s=i.decompositionLevelsCount,l=o.SPqcds,c=o.scalarExpounded,u=o.guardBits,d=i.segmentationSymbolUsed,h=t.components[n].precision,f=i.reversibleTransformation,p=f?new R:new E,g=[],v=0,m=0;m<=s;m++){for(var b=a.resolutions[m],y=b.trx1-b.trx0,w=b.try1-b.try0,k=new Float32Array(y*w),x=0,S=b.subbands.length;x<S;x++){var A,C;c?(A=l[v].mu,C=l[v].epsilon,v++):(A=l[0].mu,C=l[0].epsilon+(m>0?1-m:0));var P=b.subbands[x],T=e[P.type],I=f?1:Math.pow(2,h+T-C)*(1+A/2048),O=u+C-1;_(k,y,w,P,I,O,f,d)}g.push({width:y,height:w,items:k})}var L=p.calculate(g,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:L.width,height:L.height,items:L.items}}function x(e){for(var t=e.SIZ,r=e.components,n=t.Csiz,a=[],i=0,o=e.tiles.length;i<o;i++){var s,l=e.tiles[i],c=[];for(s=0;s<n;s++)c[s]=k(e,l,s);var u,d,h,f,p,g,v,m=c[0],b=new Uint8ClampedArray(m.items.length*n),y={left:m.left,top:m.top,width:m.width,height:m.height,items:b},w=0;if(l.codingStyleDefaultParameters.multipleComponentTransform){var _=4===n,x=c[0].items,S=c[1].items,A=c[2].items,C=_?c[3].items:null;u=r[0].precision-8,d=.5+(128<<u);var P=l.components[0],T=n-3;if(f=x.length,P.codingStyleParameters.reversibleTransformation)for(h=0;h<f;h++,w+=T){p=x[h]+d,g=S[h],v=A[h];var E=p-(v+g>>2);b[w++]=E+v>>u,b[w++]=E>>u,b[w++]=E+g>>u}else for(h=0;h<f;h++,w+=T)p=x[h]+d,g=S[h],v=A[h],b[w++]=p+1.402*v>>u,b[w++]=p-.34413*g-.71414*v>>u,b[w++]=p+1.772*g>>u;if(_)for(h=0,w=3;h<f;h++,w+=4)b[w]=C[h]+d>>u}else for(s=0;s<n;s++){var R=c[s].items;for(u=r[s].precision-8,d=.5+(128<<u),w=s,h=0,f=R.length;h<f;h++)b[w]=R[h]+d>>u,w+=n}a.push(y)}return a}function S(e,t){for(var r=e.SIZ,n=r.Csiz,a=e.tiles[t],i=0;i<n;i++){var o=a.components[i],s=void 0!==e.currentTile.QCC[i]?e.currentTile.QCC[i]:e.currentTile.QCD;o.quantizationParameters=s;var l=void 0!==e.currentTile.COC[i]?e.currentTile.COC[i]:e.currentTile.COD;o.codingStyleParameters=l}a.codingStyleDefaultParameters=e.currentTile.COD}t.prototype={parse:function(e){var t=(0,a.readUint16)(e,0);if(65359!==t){var r=0,i=e.length;while(r<i){var s=8,l=(0,a.readUint32)(e,r),c=(0,a.readUint32)(e,r+4);if(r+=s,1===l&&(l=4294967296*(0,a.readUint32)(e,r)+(0,a.readUint32)(e,r+4),r+=8,s+=8),0===l&&(l=i-r+s),l<s)throw new o("Invalid box field size");var u=l-s,d=!0;switch(c){case 1785737832:d=!1;break;case 1668246642:var h=e[r];if(1===h){var f=(0,a.readUint32)(e,r+3);switch(f){case 16:case 17:case 18:break;default:(0,n.warn)("Unknown colorspace "+f);break}}else 2===h&&(0,n.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(e,r,r+u);break;case 1783636e3:218793738!==(0,a.readUint32)(e,r)&&(0,n.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var p=String.fromCharCode(c>>24&255,c>>16&255,c>>8&255,255&c);(0,n.warn)("Unsupported header type "+c+" ("+p+")");break}d&&(r+=u)}}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){var t=e.getByte();while(t>=0){var r=t;t=e.getByte();var n=r<<8|t;if(65361===n){e.skip(4);var a=e.getInt32()>>>0,i=e.getInt32()>>>0,s=e.getInt32()>>>0,l=e.getInt32()>>>0;e.skip(16);var c=e.getUint16();return this.width=a-s,this.height=i-l,this.componentsCount=c,void(this.bitsPerComponent=8)}}throw new o("No size marker found in JPX stream")},parseCodestream:function(e,t,i){var l={},c=!1;try{var u=t;while(u+1<i){var d=(0,a.readUint16)(e,u);u+=2;var h,f,p,g,v,m,b=0;switch(d){case 65359:l.mainHeader=!0;break;case 65497:break;case 65361:b=(0,a.readUint16)(e,u);var _={};_.Xsiz=(0,a.readUint32)(e,u+4),_.Ysiz=(0,a.readUint32)(e,u+8),_.XOsiz=(0,a.readUint32)(e,u+12),_.YOsiz=(0,a.readUint32)(e,u+16),_.XTsiz=(0,a.readUint32)(e,u+20),_.YTsiz=(0,a.readUint32)(e,u+24),_.XTOsiz=(0,a.readUint32)(e,u+28),_.YTOsiz=(0,a.readUint32)(e,u+32);var k=(0,a.readUint16)(e,u+36);_.Csiz=k;var A=[];h=u+38;for(var C=0;C<k;C++){var P={precision:1+(127&e[h]),isSigned:!!(128&e[h]),XRsiz:e[h+1],YRsiz:e[h+2]};h+=3,r(P,_),A.push(P)}l.SIZ=_,l.components=A,s(l,A),l.QCC=[],l.COC=[];break;case 65372:b=(0,a.readUint16)(e,u);var T={};switch(h=u+2,f=e[h++],31&f){case 0:g=8,v=!0;break;case 1:g=16,v=!1;break;case 2:g=16,v=!0;break;default:throw new Error("Invalid SQcd value "+f)}T.noQuantization=8===g,T.scalarExpounded=v,T.guardBits=f>>5,p=[];while(h<b+u){var E={};8===g?(E.epsilon=e[h++]>>3,E.mu=0):(E.epsilon=e[h]>>3,E.mu=(7&e[h])<<8|e[h+1],h+=2),p.push(E)}T.SPqcds=p,l.mainHeader?l.QCD=T:(l.currentTile.QCD=T,l.currentTile.QCC=[]);break;case 65373:b=(0,a.readUint16)(e,u);var R,I={};switch(h=u+2,l.SIZ.Csiz<257?R=e[h++]:(R=(0,a.readUint16)(e,h),h+=2),f=e[h++],31&f){case 0:g=8,v=!0;break;case 1:g=16,v=!1;break;case 2:g=16,v=!0;break;default:throw new Error("Invalid SQcd value "+f)}I.noQuantization=8===g,I.scalarExpounded=v,I.guardBits=f>>5,p=[];while(h<b+u)E={},8===g?(E.epsilon=e[h++]>>3,E.mu=0):(E.epsilon=e[h]>>3,E.mu=(7&e[h])<<8|e[h+1],h+=2),p.push(E);I.SPqcds=p,l.mainHeader?l.QCC[R]=I:l.currentTile.QCC[R]=I;break;case 65362:b=(0,a.readUint16)(e,u);var O={};h=u+2;var L=e[h++];O.entropyCoderWithCustomPrecincts=!!(1&L),O.sopMarkerUsed=!!(2&L),O.ephMarkerUsed=!!(4&L),O.progressionOrder=e[h++],O.layersCount=(0,a.readUint16)(e,h),h+=2,O.multipleComponentTransform=e[h++],O.decompositionLevelsCount=e[h++],O.xcb=2+(15&e[h++]),O.ycb=2+(15&e[h++]);var F=e[h++];if(O.selectiveArithmeticCodingBypass=!!(1&F),O.resetContextProbabilities=!!(2&F),O.terminationOnEachCodingPass=!!(4&F),O.verticallyStripe=!!(8&F),O.predictableTermination=!!(16&F),O.segmentationSymbolUsed=!!(32&F),O.reversibleTransformation=e[h++],O.entropyCoderWithCustomPrecincts){var M=[];while(h<b+u){var D=e[h++];M.push({PPx:15&D,PPy:D>>4})}O.precinctsSizes=M}var N=[];if(O.selectiveArithmeticCodingBypass&&N.push("selectiveArithmeticCodingBypass"),O.resetContextProbabilities&&N.push("resetContextProbabilities"),O.terminationOnEachCodingPass&&N.push("terminationOnEachCodingPass"),O.verticallyStripe&&N.push("verticallyStripe"),O.predictableTermination&&N.push("predictableTermination"),N.length>0)throw c=!0,new Error("Unsupported COD options ("+N.join(", ")+")");l.mainHeader?l.COD=O:(l.currentTile.COD=O,l.currentTile.COC=[]);break;case 65424:b=(0,a.readUint16)(e,u),m={},m.index=(0,a.readUint16)(e,u+2),m.length=(0,a.readUint32)(e,u+4),m.dataEnd=m.length+u-2,m.partIndex=e[u+8],m.partsCount=e[u+9],l.mainHeader=!1,0===m.partIndex&&(m.COD=l.COD,m.COC=l.COC.slice(0),m.QCD=l.QCD,m.QCC=l.QCC.slice(0)),l.currentTile=m;break;case 65427:m=l.currentTile,0===m.partIndex&&(S(l,m.index),y(l)),b=m.dataEnd-u,w(l,e,u,b);break;case 65365:case 65367:case 65368:case 65380:b=(0,a.readUint16)(e,u);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+d.toString(16))}u+=b}}catch(B){if(c||this.failOnCorruptedImage)throw new o(B.message);(0,n.warn)("JPX: Trying to recover from: "+B.message)}this.tiles=x(l),this.width=l.SIZ.Xsiz-l.SIZ.XOsiz,this.height=l.SIZ.Ysiz-l.SIZ.YOsiz,this.componentsCount=l.SIZ.Csiz}};var A=function(){function e(e,t){var r=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var n=0;n<r;n++){var i={width:e,height:t,items:[]};this.levels.push(i),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(e,t){var r,n=0,a=0;while(n<this.levels.length){r=this.levels[n];var i=e+t*r.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],r.items[r.index]=a,this.currentLevel=n,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return e--,e<0?(this.value=r,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}},e}(),C=function(){function e(e,t,r){var n=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;i<n;i++){for(var o=new Uint8Array(e*t),s=0,l=o.length;s<l;s++)o[s]=r;var c={width:e,height:t,items:o};this.levels.push(c),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(e,t,r){var n=0;while(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},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];while(--e>=0)t=this.levels[e],t.items[t.index]=r},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,e--,!(e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}},e}(),P=function(){var e=17,t=18,r=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]),n=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]),a=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 i(e,t,i,o,s){var l;this.width=e,this.height=t,l="HH"===i?a:"HL"===i?n:r,this.contextLabelTable=l;var c,u=e*t;this.neighborsSignificance=new Uint8Array(u),this.coefficentsSign=new Uint8Array(u),c=s>14?new Uint32Array(u):s>6?new Uint16Array(u):new Uint8Array(u),this.coefficentsMagnitude=c,this.processingFlags=new Uint8Array(u);var d=new Uint8Array(u);if(0!==o)for(var h=0;h<u;h++)d[h]=o;this.bitsDecoded=d,this.reset()}return i.prototype={setDecoder:function(e){this.decoder=e},reset:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[e]=92,this.contexts[t]=6},setNeighborsSignificance:function(e,t,r){var n,a=this.neighborsSignificance,i=this.width,o=this.height,s=t>0,l=t+1<i;e>0&&(n=r-i,s&&(a[n-1]+=16),l&&(a[n+1]+=16),a[n]+=4),e+1<o&&(n=r+i,s&&(a[n-1]+=16),l&&(a[n+1]+=16),a[n]+=4),s&&(a[r-1]+=1),l&&(a[r+1]+=1),a[r]|=128},runSignificancePropagationPass: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,l=this.contextLabelTable,c=this.bitsDecoded,u=-2,d=1,h=2,f=0;f<r;f+=4)for(var p=0;p<t;p++)for(var g=f*t+p,v=0;v<4;v++,g+=t){var m=f+v;if(m>=r)break;if(o[g]&=u,!n[g]&&i[g]){var b=l[i[g]],y=e.readBit(s,b);if(y){var w=this.decodeSignBit(m,p,g);a[g]=w,n[g]=1,this.setNeighborsSignificance(m,p,g),o[g]|=h}c[g]++,o[g]|=d}}},decodeSignBit:function(e,t,r){var n,a,i,o,s,l,c=this.width,u=this.height,d=this.coefficentsMagnitude,h=this.coefficentsSign;o=t>0&&0!==d[r-1],t+1<c&&0!==d[r+1]?(i=h[r+1],o?(a=h[r-1],n=1-i-a):n=1-i-i):o?(a=h[r-1],n=1-a-a):n=0;var f=3*n;return o=e>0&&0!==d[r-c],e+1<u&&0!==d[r+c]?(i=h[r+c],o?(a=h[r-c],n=1-i-a+f):n=1-i-i+f):o?(a=h[r-c],n=1-a-a+f):n=f,n>=0?(s=9+n,l=this.decoder.readBit(this.contexts,s)):(s=9-n,l=1^this.decoder.readBit(this.contexts,s)),l},runMagnitudeRefinementPass: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,l=this.processingFlags,c=1,u=2,d=r*n,h=4*r,f=0;f<d;f=e){e=Math.min(d,f+h);for(var p=0;p<r;p++)for(var g=f+p;g<e;g+=r)if(a[g]&&0===(l[g]&c)){var v=16;if(0!==(l[g]&u)){l[g]^=u;var m=127&i[g];v=0===m?15:14}var b=t.readBit(o,v);a[g]=a[g]<<1|b,s[g]++,l[g]|=c}}},runCleanupPass:function(){for(var r,n=this.decoder,a=this.width,i=this.height,o=this.neighborsSignificance,s=this.coefficentsMagnitude,l=this.coefficentsSign,c=this.contexts,u=this.contextLabelTable,d=this.bitsDecoded,h=this.processingFlags,f=1,p=2,g=a,v=2*a,m=3*a,b=0;b<i;b=r){r=Math.min(b+4,i);for(var y=b*a,w=b+3<i,_=0;_<a;_++){var k,x=y+_,S=w&&0===h[x]&&0===h[x+g]&&0===h[x+v]&&0===h[x+m]&&0===o[x]&&0===o[x+g]&&0===o[x+v]&&0===o[x+m],A=0,C=x,P=b;if(S){var T=n.readBit(c,t);if(!T){d[x]++,d[x+g]++,d[x+v]++,d[x+m]++;continue}A=n.readBit(c,e)<<1|n.readBit(c,e),0!==A&&(P=b+A,C+=A*a),k=this.decodeSignBit(P,_,C),l[C]=k,s[C]=1,this.setNeighborsSignificance(P,_,C),h[C]|=p,C=x;for(var E=b;E<=P;E++,C+=a)d[C]++;A++}for(P=b+A;P<r;P++,C+=a)if(!s[C]&&0===(h[C]&f)){var R=u[o[C]],I=n.readBit(c,R);1===I&&(k=this.decodeSignBit(P,_,C),l[C]=k,s[C]=1,this.setNeighborsSignificance(P,_,C),h[C]|=p),d[C]++}}}},checkSegmentationSymbol:function(){var t=this.decoder,r=this.contexts,n=t.readBit(r,e)<<3|t.readBit(r,e)<<2|t.readBit(r,e)<<1|t.readBit(r,e);if(10!==n)throw new o("Invalid segmentation symbol")}},i}(),T=function(){function e(){}return e.prototype.calculate=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},e.prototype.extend=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]},e.prototype.iterate=function(e,t,r,n){var a,i,o,s,l,c,u=e.width,d=e.height,h=e.items,f=t.width,p=t.height,g=t.items;for(o=0,a=0;a<d;a++)for(s=2*a*f,i=0;i<u;i++,o++,s+=2)g[s]=h[o];h=e.items=null;var v=4,m=new Float32Array(f+2*v);if(1===f){if(0!==(1&r))for(c=0,o=0;c<p;c++,o+=f)g[o]*=.5}else for(c=0,o=0;c<p;c++,o+=f)m.set(g.subarray(o,o+f),v),this.extend(m,v,f),this.filter(m,v,f),g.set(m.subarray(v,v+f),o);var b=16,y=[];for(a=0;a<b;a++)y.push(new Float32Array(p+2*v));var w,_=0;if(e=v+p,1===p){if(0!==(1&n))for(l=0;l<f;l++)g[l]*=.5}else for(l=0;l<f;l++){if(0===_){for(b=Math.min(f-l,b),o=l,s=v;s<e;o+=f,s++)for(w=0;w<b;w++)y[w][s]=g[o+w];_=b}_--;var k=y[_];if(this.extend(k,v,p),this.filter(k,v,p),0===_)for(o=l-b+1,s=v;s<e;o+=f,s++)for(w=0;w<b;w++)g[o+w]=y[w][s]}return{width:f,height:p,items:g}},e}(),E=function(){function e(){T.call(this)}return e.prototype=Object.create(T.prototype),e.prototype.filter=function(e,t,r){var n,a,i,o,s=r>>1;t|=0;var l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,d=.443506852043971,h=1.230174104914001,f=1/h;for(n=t-3,a=s+4;a--;n+=2)e[n]*=f;for(n=t-2,i=d*e[n-1],a=s+3;a--;n+=2){if(o=d*e[n+1],e[n]=h*e[n]-i-o,!a--)break;n+=2,i=d*e[n+1],e[n]=h*e[n]-i-o}for(n=t-1,i=u*e[n-1],a=s+2;a--;n+=2){if(o=u*e[n+1],e[n]-=i+o,!a--)break;n+=2,i=u*e[n+1],e[n]-=i+o}for(n=t,i=c*e[n-1],a=s+1;a--;n+=2){if(o=c*e[n+1],e[n]-=i+o,!a--)break;n+=2,i=c*e[n+1],e[n]-=i+o}if(0!==s)for(n=t+1,i=l*e[n-1],a=s;a--;n+=2){if(o=l*e[n+1],e[n]-=i+o,!a--)break;n+=2,i=l*e[n+1],e[n]-=i+o}},e}(),R=function(){function e(){T.call(this)}return e.prototype=Object.create(T.prototype),e.prototype.filter=function(e,t,r){var n,a,i=r>>1;for(t|=0,n=t,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},e}();return t}();t.JpxImage=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var n=r(2),a=r(4),i=r(11),o=function(){function e(e){this.a=0,this.b=0;var t,r,n=new Uint8Array(256),a=0,i=e.length;for(t=0;t<256;++t)n[t]=t;for(t=0;t<256;++t)r=n[t],a=a+r+e[t%i]&255,n[t]=n[a],n[a]=r;this.s=n}return e.prototype={encryptBlock:function(e){var t,r,n,a=e.length,i=this.a,o=this.b,s=this.s,l=new Uint8Array(a);for(t=0;t<a;++t)i=i+1&255,r=s[i],o=o+r&255,n=s[o],s[i]=n,s[o]=r,l[t]=e[t]^s[r+n&255];return this.a=i,this.b=o,l}},e.prototype.decryptBlock=e.prototype.encryptBlock,e}();t.ARCFourCipher=o;var s=function(){var e=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]),t=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 r(r,n,a){var i,o,s,l=1732584193,c=-271733879,u=-1732584194,d=271733878,h=a+72&-64,f=new Uint8Array(h);for(i=0;i<a;++i)f[i]=r[n++];f[i++]=128,s=h-8;while(i<s)f[i++]=0;f[i++]=a<<3&255,f[i++]=a>>5&255,f[i++]=a>>13&255,f[i++]=a>>21&255,f[i++]=a>>>29&255,f[i++]=0,f[i++]=0,f[i++]=0;var p=new Int32Array(16);for(i=0;i<h;){for(o=0;o<16;++o,i+=4)p[o]=f[i]|f[i+1]<<8|f[i+2]<<16|f[i+3]<<24;var g,v,m=l,b=c,y=u,w=d;for(o=0;o<64;++o){o<16?(g=b&y|~b&w,v=o):o<32?(g=w&b|~w&y,v=5*o+1&15):o<48?(g=b^y^w,v=3*o+5&15):(g=y^(b|~w),v=7*o&15);var _=w,k=m+g+t[o]+p[v]|0,x=e[o];w=y,y=b,b=b+(k<<x|k>>>32-x)|0,m=_}l=l+m|0,c=c+b|0,u=u+y|0,d=d+w|0}return new Uint8Array([255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255,255&d,d>>8&255,d>>16&255,d>>>24&255])}return r}();t.calculateMD5=s;var l=function(){function e(e,t){this.high=0|e,this.low=0|t}return e.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low=this.low<<e)},rotateRight: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},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r},copyTo:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},e}(),c=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}function o(t){return e(t,17)^e(t,19)^t>>>10}var s=[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];function l(e,l,c){var u,d,h,f=1779033703,p=3144134277,g=1013904242,v=2773480762,m=1359893119,b=2600822924,y=528734635,w=1541459225,_=64*Math.ceil((c+9)/64),k=new Uint8Array(_);for(u=0;u<c;++u)k[u]=e[l++];k[u++]=128,h=_-8;while(u<h)k[u++]=0;k[u++]=0,k[u++]=0,k[u++]=0,k[u++]=c>>>29&255,k[u++]=c>>21&255,k[u++]=c>>13&255,k[u++]=c>>5&255,k[u++]=c<<3&255;var x=new Uint32Array(64);for(u=0;u<_;){for(d=0;d<16;++d)x[d]=k[u]<<24|k[u+1]<<16|k[u+2]<<8|k[u+3],u+=4;for(d=16;d<64;++d)x[d]=o(x[d-2])+x[d-7]+i(x[d-15])+x[d-16]|0;var S,A,C=f,P=p,T=g,E=v,R=m,I=b,O=y,L=w;for(d=0;d<64;++d)S=L+a(R)+t(R,I,O)+s[d]+x[d],A=n(C)+r(C,P,T),L=O,O=I,I=R,R=E+S|0,E=T,T=P,P=C,C=S+A|0;f=f+C|0,p=p+P|0,g=g+T|0,v=v+E|0,m=m+R|0,b=b+I|0,y=y+O|0,w=w+L|0}return new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,g>>24&255,g>>16&255,g>>8&255,255&g,v>>24&255,v>>16&255,v>>8&255,255&v,m>>24&255,m>>16&255,m>>8&255,255&m,b>>24&255,b>>16&255,b>>8&255,255&b,y>>24&255,y>>16&255,y>>8&255,255&y,w>>24&255,w>>16&255,w>>8&255,255&w])}return l}();t.calculateSHA256=c;var u=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 l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];function s(s,c,u,d){var h,f,p,g,v,m,b,y;d=!!d,d?(h=new l(3418070365,3238371032),f=new l(1654270250,914150663),p=new l(2438529370,812702999),g=new l(355462360,4144912697),v=new l(1731405415,4290775857),m=new l(2394180231,1750603025),b=new l(3675008525,1694076839),y=new l(1203062813,3204075428)):(h=new l(1779033703,4089235720),f=new l(3144134277,2227873595),p=new l(1013904242,4271175723),g=new l(2773480762,1595750129),v=new l(1359893119,2917565137),m=new l(2600822924,725511199),b=new l(528734635,4215389547),y=new l(1541459225,327033209));var w,_,k,x=128*Math.ceil((u+17)/128),S=new Uint8Array(x);for(w=0;w<u;++w)S[w]=s[c++];S[w++]=128,k=x-16;while(w<k)S[w++]=0;S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=0,S[w++]=u>>>29&255,S[w++]=u>>21&255,S[w++]=u>>13&255,S[w++]=u>>5&255,S[w++]=u<<3&255;var A=new Array(80);for(w=0;w<80;w++)A[w]=new l(0,0);var C,P,T=new l(0,0),E=new l(0,0),R=new l(0,0),I=new l(0,0),O=new l(0,0),L=new l(0,0),F=new l(0,0),M=new l(0,0),D=new l(0,0),N=new l(0,0),B=new l(0,0),U=new l(0,0);for(w=0;w<x;){for(_=0;_<16;++_)A[_].high=S[w]<<24|S[w+1]<<16|S[w+2]<<8|S[w+3],A[_].low=S[w+4]<<24|S[w+5]<<16|S[w+6]<<8|S[w+7],w+=8;for(_=16;_<80;++_)C=A[_],i(C,A[_-2],U),C.add(A[_-7]),a(B,A[_-15],U),C.add(B),C.add(A[_-16]);for(T.assign(h),E.assign(f),R.assign(p),I.assign(g),O.assign(v),L.assign(m),F.assign(b),M.assign(y),_=0;_<80;++_)D.assign(M),n(B,O,U),D.add(B),e(B,O,L,F,U),D.add(B),D.add(o[_]),D.add(A[_]),r(N,T,U),t(B,T,E,R,U),N.add(B),C=M,M=F,F=L,L=O,I.add(D),O=I,I=R,R=E,E=T,C.assign(D),C.add(N),T=C;h.add(T),f.add(E),p.add(R),g.add(I),v.add(O),m.add(L),b.add(F),y.add(M)}return d?(P=new Uint8Array(48),h.copyTo(P,0),f.copyTo(P,8),p.copyTo(P,16),g.copyTo(P,24),v.copyTo(P,32),m.copyTo(P,40)):(P=new Uint8Array(64),h.copyTo(P,0),f.copyTo(P,8),p.copyTo(P,16),g.copyTo(P,24),v.copyTo(P,32),m.copyTo(P,40),b.copyTo(P,48),y.copyTo(P,56)),P}return s}();t.calculateSHA512=u;var d=function(){function e(e,t,r){return u(e,t,r,!0)}return e}();t.calculateSHA384=d;var h=function(){function e(){}return e.prototype={decryptBlock:function(e){return e}},e}(),m=function(){function e(){p(this,e),this.constructor===e&&(0,n.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 f(e,[{key:"_expandKey",value:function(e){(0,n.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 l=this._cyclesOfRepetition-1;l>=1;--l){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 c=0;c<16;++c)i[c]=this._inv_s[i[c]];for(var u=0,d=16*l;u<16;++u,++d)i[u]^=t[d];for(var h=0;h<16;h+=4){var f=this._mix[i[h]],p=this._mix[i[h+1]],g=this._mix[i[h+2]],v=this._mix[i[h+3]];r=f^p>>>8^p<<24^g>>>16^g<<16^v>>>24^v<<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 m=0;m<16;++m)i[m]=this._inv_s[i[m]],i[m]^=t[m];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 l=1;l<this._cyclesOfRepetition;l++){for(var c=0;c<16;++c)o[c]=i[o[c]];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 u=0;u<16;u+=4){var d=o[u+0],h=o[u+1],f=o[u+2],p=o[u+3];r=d^h^f^p,o[u+0]^=r^this._mixCol[d^h],o[u+1]^=r^this._mixCol[h^f],o[u+2]^=r^this._mixCol[f^p],o[u+3]^=r^this._mixCol[p^d]}for(var g=0,v=16*l;g<16;++g,++v)o[g]^=t[v]}for(var m=0;m<16;++m)o[m]=i[o[m]];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 b=0,y=this._keySize;b<16;++b,++y)o[b]^=t[y];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,!(a<16)){for(var l=this._decrypt(n,this._key),c=0;c<16;++c)l[c]^=o[c];o=n,i.push(l),n=new Uint8Array(16),a=0}if(this.buffer=n,this.bufferLength=a,this.iv=o,0===i.length)return new Uint8Array(0);var u=16*i.length;if(t){var d=i[i.length-1],h=d[15];if(h<=16){for(var f=15,p=16-h;f>=p;--f)if(d[f]!==h){h=0;break}u-=h,i[i.length-1]=d.subarray(0,16-h)}}for(var g=new Uint8Array(u),v=0,m=0,b=i.length;v<b;++v,m+=16)g.set(i[v],m);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,!(a<16)){for(var s=0;s<16;++s)n[s]^=t[s];var l=this._encrypt(n,this._key);t=l,i.push(l),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 c=16*i.length,u=new Uint8Array(c),d=0,h=0,f=i.length;d<f;++d,h+=16)u.set(i[d],h);return u}}]),e}(),b=function(e){g(r,e);var t=v(r);function r(e){var n;return p(this,r),n=t.call(this),n._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 f(r,[{key:"_expandKey",value:function(e){var t=176,r=this._s,n=this._rcon,a=new Uint8Array(t);a.set(e);for(var i=16,o=1;i<t;++o){var s=a[i-3],l=a[i-2],c=a[i-1],u=a[i-4];s=r[s],l=r[l],c=r[c],u=r[u],s^=n[o];for(var d=0;d<4;++d)a[i]=s^=a[i-16],i++,a[i]=l^=a[i-16],i++,a[i]=c^=a[i-16],i++,a[i]=u^=a[i-16],i++}return a}}]),r}(m);t.AES128Cipher=b;var y=function(e){g(r,e);var t=v(r);function r(e){var n;return p(this,r),n=t.call(this),n._cyclesOfRepetition=14,n._keySize=224,n._key=n._expandKey(e),n}return f(r,[{key:"_expandKey",value:function(e){var t=240,r=this._s,n=new Uint8Array(t);n.set(e);for(var a,i,o,s,l=1,c=32,u=1;c<t;++u){c%32===16?(a=r[a],i=r[i],o=r[o],s=r[s]):c%32===0&&(a=n[c-3],i=n[c-2],o=n[c-1],s=n[c-4],a=r[a],i=r[i],o=r[o],s=r[s],a^=l,(l<<=1)>=256&&(l=255&(27^l)));for(var d=0;d<4;++d)n[c]=a^=n[c-32],c++,n[c]=i^=n[c-32],c++,n[c]=o^=n[c-32],c++,n[c]=s^=n[c-32],c++}return n}}]),r}(m);t.AES256Cipher=y;var w=function(){function e(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function t(){}return t.prototype={checkOwnerPassword: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=c(i,0,i.length);return e(o,a)},checkUserPassword:function(t,r,n){var a=new Uint8Array(t.length+8);a.set(t,0),a.set(r,t.length);var i=c(a,0,a.length);return e(i,n)},getOwnerKey: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=c(a,0,a.length),o=new y(i);return o.decryptBlock(n,!1,new Uint8Array(16))},getUserKey:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var a=c(n,0,n.length),i=new y(a);return i.decryptBlock(r,!1,new Uint8Array(16))}},t}();t.PDF17=w;var _=function(){function e(e,t){var r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}function t(t,r,n){var a=c(r,0,r.length).subarray(0,32),i=[0],o=0;while(o<64||i[i.length-1]>o-32){var s=t.length+a.length+n.length,l=new Uint8Array(64*s),h=e(t,a);h=e(h,n);for(var f=0,p=0;f<64;f++,p+=s)l.set(h,p);var g=new b(a.subarray(0,16));i=g.encrypt(l,a.subarray(16,32));for(var v=0,m=0;m<16;m++)v*=1,v%=3,v+=(i[m]>>>0)%3,v%=3;0===v?a=c(i,0,i.length):1===v?a=d(i,0,i.length):2===v&&(a=u(i,0,i.length)),o++}return a.subarray(0,32)}function r(){}function n(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return r.prototype={hash:function(e,r,n){return t(e,r,n)},checkOwnerPassword:function(e,r,a,i){var o=new Uint8Array(e.length+56);o.set(e,0),o.set(r,e.length),o.set(a,e.length+r.length);var s=t(e,o,a);return n(s,i)},checkUserPassword:function(e,r,a){var i=new Uint8Array(e.length+8);i.set(e,0),i.set(r,e.length);var o=t(e,i,[]);return n(o,a)},getOwnerKey:function(e,r,n,a){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(r,e.length),i.set(n,e.length+r.length);var o=t(e,i,n),s=new y(o);return s.decryptBlock(a,!1,new Uint8Array(16))},getUserKey:function(e,r,n){var a=new Uint8Array(e.length+8);a.set(e,0),a.set(r,e.length);var i=t(e,a,[]),o=new y(i);return o.decryptBlock(n,!1,new Uint8Array(16))}},r}();t.PDF20=_;var k=function(){function e(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}return e.prototype={createStream:function(e,t){var r=new this.StreamCipherConstructor;return new i.DecryptStream(e,t,(function(e,t){return r.decryptBlock(e,t)}))},decryptString:function(e){var t=new this.StringCipherConstructor,r=(0,n.stringToBytes)(e);return r=t.decryptBlock(r,!0),(0,n.bytesToString)(r)}},e}(),x=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(e,t,r,n,a,i,o,s,l,c,u,d){if(t){var h=Math.min(127,t.length);t=t.subarray(0,h)}else t=[];var f;return f=6===e?new _:new w,f.checkUserPassword(t,s,o)?f.getUserKey(t,l,u):t.length&&f.checkOwnerPassword(t,n,i,r)?f.getOwnerKey(t,a,i,c):null}function r(t,r,n,a,i,l,c,u){var d,h,f=40+n.length+t.length,p=new Uint8Array(f),g=0;if(r)for(h=Math.min(32,r.length);g<h;++g)p[g]=r[g];d=0;while(g<32)p[g++]=e[d++];for(d=0,h=n.length;d<h;++d)p[g++]=n[d];for(p[g++]=255&i,p[g++]=i>>8&255,p[g++]=i>>16&255,p[g++]=i>>>24&255,d=0,h=t.length;d<h;++d)p[g++]=t[d];l>=4&&!u&&(p[g++]=255,p[g++]=255,p[g++]=255,p[g++]=255);var v=s(p,0,g),m=c>>3;if(l>=3)for(d=0;d<50;++d)v=s(v,0,m);var b,y,w=v.subarray(0,m);if(l>=3){for(g=0;g<32;++g)p[g]=e[g];for(d=0,h=t.length;d<h;++d)p[g++]=t[d];b=new o(w),y=b.encryptBlock(s(p,0,g)),h=w.length;var _,k=new Uint8Array(h);for(d=1;d<=19;++d){for(_=0;_<h;++_)k[_]=w[_]^d;b=new o(k),y=b.encryptBlock(y)}for(d=0,h=y.length;d<h;++d)if(a[d]!==y[d])return null}else for(b=new o(w),y=b.encryptBlock(e),d=0,h=y.length;d<h;++d)if(a[d]!==y[d])return null;return w}function i(t,r,n,a){var i,l,c=new Uint8Array(32),u=0;for(l=Math.min(32,t.length);u<l;++u)c[u]=t[u];i=0;while(u<32)c[u++]=e[i++];var d,h,f=s(c,0,u),p=a>>3;if(n>=3)for(i=0;i<50;++i)f=s(f,0,f.length);if(n>=3){h=r;var g,v=new Uint8Array(p);for(i=19;i>=0;i--){for(g=0;g<p;++g)v[g]=f[g]^i;d=new o(v),h=d.encryptBlock(h)}}else d=new o(f.subarray(0,p)),h=d.encryptBlock(r);return h}var l=a.Name.get("Identity");function c(e,o,s){var c=e.get("Filter");if(!(0,a.isName)(c,"Standard"))throw new n.FormatError("unknown encryption method");this.dict=e;var u=e.get("V");if(!Number.isInteger(u)||1!==u&&2!==u&&4!==u&&5!==u)throw new n.FormatError("unsupported encryption algorithm");this.algorithm=u;var d=e.get("Length");if(!d)if(u<=3)d=40;else{var h=e.get("CF"),f=e.get("StmF");if((0,a.isDict)(h)&&(0,a.isName)(f)){h.suppressEncryption=!0;var p=h.get(f.name);d=p&&p.get("Length")||128,d<40&&(d<<=3)}}if(!Number.isInteger(d)||d<40||d%8!==0)throw new n.FormatError("invalid key length");var g=(0,n.stringToBytes)(e.get("O")).subarray(0,32),v=(0,n.stringToBytes)(e.get("U")).subarray(0,32),m=e.get("P"),b=e.get("R"),y=(4===u||5===u)&&!1!==e.get("EncryptMetadata");this.encryptMetadata=y;var w,_,k=(0,n.stringToBytes)(o);if(s){if(6===b)try{s=(0,n.utf8StringToString)(s)}catch(L){(0,n.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}w=(0,n.stringToBytes)(s)}if(5!==u)_=r(k,w,g,v,m,b,d,y);else{var x=(0,n.stringToBytes)(e.get("O")).subarray(32,40),S=(0,n.stringToBytes)(e.get("O")).subarray(40,48),A=(0,n.stringToBytes)(e.get("U")).subarray(0,48),C=(0,n.stringToBytes)(e.get("U")).subarray(32,40),P=(0,n.stringToBytes)(e.get("U")).subarray(40,48),T=(0,n.stringToBytes)(e.get("OE")),E=(0,n.stringToBytes)(e.get("UE")),R=(0,n.stringToBytes)(e.get("Perms"));_=t(b,w,g,x,S,A,v,C,P,T,E,R)}if(!_&&!s)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);if(!_&&s){var I=i(w,g,b,d);_=r(k,I,g,v,m,b,d,y)}if(!_)throw new n.PasswordException("Incorrect Password",n.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=_,u>=4){var O=e.get("CF");(0,a.isDict)(O)&&(O.suppressEncryption=!0),this.cf=O,this.stmf=e.get("StmF")||l,this.strf=e.get("StrF")||l,this.eff=e.get("EFF")||this.stmf}}function u(e,t,r,n){var a,i,o=new Uint8Array(r.length+9);for(a=0,i=r.length;a<i;++a)o[a]=r[a];o[a++]=255&e,o[a++]=e>>8&255,o[a++]=e>>16&255,o[a++]=255&t,o[a++]=t>>8&255,n&&(o[a++]=115,o[a++]=65,o[a++]=108,o[a++]=84);var l=s(o,0,a);return l.subarray(0,Math.min(r.length+5,16))}function d(e,t,r,i,s){if(!(0,a.isName)(t))throw new n.FormatError("Invalid crypt filter name.");var l,c=e.get(t.name);if(null!==c&&void 0!==c&&(l=c.get("CFM")),!l||"None"===l.name)return function(){return new h};if("V2"===l.name)return function(){return new o(u(r,i,s,!1))};if("AESV2"===l.name)return function(){return new b(u(r,i,s,!0))};if("AESV3"===l.name)return function(){return new y(s)};throw new n.FormatError("Unknown crypto method")}return c.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new k(d(this.cf,this.stmf,e,t,this.encryptionKey),d(this.cf,this.strf,e,t,this.encryptionKey));var r=u(e,t,this.encryptionKey,!1),n=function(){return new o(r)};return new k(n,n)}},c}();t.CipherTransformFactory=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var n=r(2),a=r(4);function i(e,t,r,n,a,i,o){var s=3;o=1!==o?0:o;for(var l,c=r/a,u=n/i,d=0,h=new Uint16Array(a),f=r*s,p=0;p<a;p++)h[p]=Math.floor(p*c)*s;for(var g=0;g<i;g++)for(var v=Math.floor(g*u)*f,m=0;m<a;m++)l=v+h[m],t[d++]=e[l++],t[d++]=e[l++],t[d++]=e[l++],d+=o}var o=function(){function e(t,r){p(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize ColorSpace."),this.name=t,this.numComps=r}return f(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,a){(0,n.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function(e,t,r,a,i,o,s){(0,n.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function(e,t){(0,n.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,o,s,l,c){var u=t*r,d=null,h=1<<s,f=r!==a||t!==n;if(this.isPassthrough(s))d=l;else if(1===this.numComps&&u>h&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var p=s<=8?new Uint8Array(h):new Uint16Array(h),g=0;g<h;g++)p[g]=g;var v=new Uint8ClampedArray(3*h);if(this.getRgbBuffer(p,0,h,v,0,s,0),f){d=new Uint8Array(3*u);for(var m=0,b=0;b<u;++b){var y=3*l[b];d[m++]=v[y],d[m++]=v[y+1],d[m++]=v[y+2]}}else for(var w=0,_=0;_<u;++_){var k=3*l[_];e[w++]=v[k],e[w++]=v[k+1],e[w++]=v[k+2],w+=c}}else f?(d=new Uint8ClampedArray(3*u),this.getRgbBuffer(l,0,u,d,0,s,0)):this.getRgbBuffer(l,0,n*o,e,0,s,c);if(d)if(f)i(d,e,t,r,n,a,c);else for(var x=0,S=0,A=0,C=n*o;A<C;A++)e[x++]=d[S++],e[x++]=d[S++],e[x++]=d[S++],x+=c}},{key:"usesZeroToOneRange",get:function(){return(0,n.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"parse",value:function(e,t,r,n){var a=this.parseToIR(e,t,r,n);return this.fromIR(a)}},{key:"fromIR",value:function(e){var t,r,a,i=Array.isArray(e)?e[0]:e;switch(i){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"CalGrayCS":return t=e[1],r=e[2],a=e[3],new m(t,r,a);case"CalRGBCS":t=e[1],r=e[2],a=e[3];var o=e[4];return new b(t,r,a,o);case"PatternCS":var u=e[1];return u&&(u=this.fromIR(u)),new l(u);case"IndexedCS":var d=e[1],h=e[2],f=e[3];return new c(this.fromIR(d),h,f);case"AlternateCS":var p=e[1],g=e[2],v=e[3];return new s(p,this.fromIR(g),v);case"LabCS":t=e[1],r=e[2];var w=e[3];return new y(t,r,w);default:throw new n.FormatError("Unknown colorspace name: ".concat(i))}}},{key:"parseToIR",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;if(e=t.fetchIfRef(e),(0,a.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,a.isDict)(r)){var o=r.get("ColorSpace");if((0,a.isDict)(o)){var s=o.get(e.name);if(s){if((0,a.isName)(s))return this.parseToIR(s,t,r,i);e=s;break}}}throw new n.FormatError("unrecognized colorspace ".concat(e.name))}if(Array.isArray(e)){var l,c,u,d,h,f,p=t.fetchIfRef(e[0]).name;switch(p){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return c=t.fetchIfRef(e[1]),d=c.getArray("WhitePoint"),h=c.getArray("BlackPoint"),f=c.get("Gamma"),["CalGrayCS",d,h,f];case"CalRGB":c=t.fetchIfRef(e[1]),d=c.getArray("WhitePoint"),h=c.getArray("BlackPoint"),f=c.getArray("Gamma");var g=c.getArray("Matrix");return["CalRGBCS",d,h,f,g];case"ICCBased":var v=t.fetchIfRef(e[1]),m=v.dict;if(l=m.get("N"),u=m.get("Alternate"),u){var b=this.parseToIR(u,t,r,i),y=this.fromIR(b,i);if(y.numComps===l)return b;(0,n.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===l)return"DeviceGrayCS";if(3===l)return"DeviceRgbCS";if(4===l)return"DeviceCmykCS";break;case"Pattern":var w=e[1]||null;return w&&(w=this.parseToIR(w,t,r,i)),["PatternCS",w];case"Indexed":case"I":var _=this.parseToIR(e[1],t,r,i),k=t.fetchIfRef(e[2])+1,x=t.fetchIfRef(e[3]);return(0,a.isStream)(x)&&(x=x.getBytes()),["IndexedCS",_,k,x];case"Separation":case"DeviceN":var S=t.fetchIfRef(e[1]);l=Array.isArray(S)?S.length:1,u=this.parseToIR(e[2],t,r,i);var A=i.create(t.fetchIfRef(e[3]));return["AlternateCS",l,u,A];case"Lab":c=t.fetchIfRef(e[1]),d=c.getArray("WhitePoint"),h=c.getArray("BlackPoint");var C=c.getArray("Range");return["LabCS",d,h,C];default:throw new n.FormatError('unimplemented color space object "'.concat(p,'"'))}}throw new n.FormatError('unrecognized color space object: "'.concat(e,'"'))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,n.warn)("The decode map is not the correct length"),!0;for(var r=0,a=e.length;r<a;r+=2)if(0!==e[r]||1!==e[r+1])return!1;return!0}},{key:"singletons",get:function(){return(0,n.shadow)(this,"singletons",{get gray(){return(0,n.shadow)(this,"gray",new u)},get rgb(){return(0,n.shadow)(this,"rgb",new d)},get cmyk(){return(0,n.shadow)(this,"cmyk",new h)}})}}]),e}();t.ColorSpace=o;var s=function(e){g(r,e);var t=v(r);function r(e,n,a){var i;return p(this,r),i=t.call(this,"Alternate",e),i.base=n,i.tintFn=a,i.tmpBuf=new Float32Array(n.numComps),i}return f(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,l,c=this.tintFn,u=this.base,d=1/((1<<i)-1),h=u.numComps,f=u.usesZeroToOneRange,p=(u.isPassthrough(8)||!f)&&0===o,g=p?a:0,v=p?n:new Uint8ClampedArray(h*r),m=this.numComps,b=new Float32Array(m),y=new Float32Array(h);for(s=0;s<r;s++){for(l=0;l<m;l++)b[l]=e[t++]*d;if(c(b,0,y,0),f)for(l=0;l<h;l++)v[g++]=255*y[l];else u.getRgbItem(y,0,v,g),g+=h}p||u.getRgbBuffer(v,0,r,n,a,8,o)}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}]),r}(o),l=function(e){g(r,e);var t=v(r);function r(e){var n;return p(this,r),n=t.call(this,"Pattern",null),n.base=e,n}return f(r,[{key:"isDefaultDecode",value:function(e,t){(0,n.unreachable)("Should not call PatternCS.isDefaultDecode")}}]),r}(o),c=function(e){g(r,e);var t=v(r);function r(e,i,o){var s;p(this,r),s=t.call(this,"Indexed",1),s.base=e,s.highVal=i;var l=e.numComps,c=l*i;if((0,a.isStream)(o)){s.lookup=new Uint8Array(c);var u=o.getBytes(c);s.lookup.set(u)}else if((0,n.isString)(o)){s.lookup=new Uint8Array(c);for(var d=0;d<c;++d)s.lookup[d]=o.charCodeAt(d)}else{if(!(o instanceof Uint8Array))throw new n.FormatError("Unrecognized lookup table: ".concat(o));s.lookup=o}return s}return f(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,l=s.numComps,c=s.getOutputLength(l,o),u=this.lookup,d=0;d<r;++d){var h=e[t++]*l;s.getRgbBuffer(u,h,1,n,a,8,o),a+=c}}},{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,n.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,n.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}]),r}(o),u=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.call(this,"DeviceGray",1)}return f(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),l=t,c=a,u=0;u<r;++u){var d=s*e[l++];n[c++]=d,n[c++]=d,n[c++]=d,c+=o}}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}]),r}(o),d=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.call(this,"DeviceRGB",3)}return f(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),l=t,c=a,u=0;u<r;++u)n[c++]=s*e[l++],n[c++]=s*e[l++],n[c++]=s*e[l++],c+=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}(o),h=function(){function e(e,t,r,n,a){var i=e[t]*r,o=e[t+1]*r,s=e[t+2]*r,l=e[t+3]*r;n[a]=255+i*(-4.387332384609988*i+54.48615194189176*o+18.82290502165302*s+212.25662451639585*l-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*l-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*l+17.5119270841813)+l*(-21.86122147463605*l-189.48180835922747),n[a+1]=255+i*(8.841041422036149*i+60.118027045597366*o+6.871425592049007*s+31.159100130055922*l-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*l-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*l-24.86741582555878)+l*(-20.737325471181034*l-187.80453709719578),n[a+2]=255+i*(.8842522430003296*i+8.078677503112928*o+30.89978309703729*s-.23883238689178934*l-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*l-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*l-193.58209356861505)+l*(-22.33816807309886*l-180.12613974708367)}var t=function(t){g(n,t);var r=v(n);function n(){return p(this,n),r.call(this,"DeviceCMYK",4)}return f(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 l=1/((1<<o)-1),c=0;c<n;c++)e(t,r,l,a,i),r+=4,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e/4*(3+t)|0}}]),n}(o);return t}(),m=function(){function e(e,t,r,n,a,i){var o=t[r]*i,s=Math.pow(o,e.G),l=e.YW*s,c=Math.max(295.8*Math.pow(l,.3333333333333333)-40.8,0);n[a]=c,n[a+1]=c,n[a+2]=c}var t=function(t){g(a,t);var r=v(a);function a(e,t,i){var o;if(p(this,a),o=r.call(this,"CalGray",1),!e)throw new n.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],i=i||1,o.XW=e[0],o.YW=e[1],o.ZW=e[2],o.XB=t[0],o.YB=t[1],o.ZB=t[2],o.G=i,o.XW<0||o.ZW<0||1!==o.YW)throw new n.FormatError("Invalid WhitePoint components for ".concat(o.name)+", no fallback available");return(o.XB<0||o.YB<0||o.ZB<0)&&((0,n.info)("Invalid BlackPoint for ".concat(o.name,", falling back to default.")),o.XB=o.YB=o.ZB=0),0===o.XB&&0===o.YB&&0===o.ZB||(0,n.warn)("".concat(o.name,", BlackPoint: XB: ").concat(o.XB,", YB: ").concat(o.YB,", ")+"ZB: ".concat(o.ZB,", only default values are supported.")),o.G<1&&((0,n.info)("Invalid Gamma: ".concat(o.G," for ").concat(o.name,", ")+"falling back to default."),o.G=1),o}return f(a,[{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 l=1/((1<<o)-1),c=0;c<n;++c)e(this,t,r,a,i,l),r+=1,i+=3+s}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}]),a}(o);return t}(),b=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]),a=new Float32Array([1,1,1]),i=new Float32Array(3),s=new Float32Array(3),l=new Float32Array(3),c=Math.pow(24/116,3)/8;function u(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 d(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}function h(e,t,r){var n=.95047,a=1,i=1.08883;r[0]=t[0]*n/e[0],r[1]=t[1]*a/e[1],r[2]=t[2]*i/e[2]}function m(e){return b(0,1,e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function b(e,t,r){return Math.max(e,Math.min(t,r))}function y(e){return e<0?-y(-e):e>8?Math.pow((e+16)/116,3):e*c}function w(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=y(0),a=n,i=y(e[0]),o=n,s=y(e[1]),l=n,c=y(e[2]),u=(1-a)/(1-i),d=1-u,h=(1-o)/(1-s),f=1-h,p=(1-l)/(1-c),g=1-p;r[0]=t[0]*u+d,r[1]=t[1]*h+f,r[2]=t[2]*p+g}function _(r,n,a){if(1===r[0]&&1===r[2])return a[0]=n[0],a[1]=n[1],void(a[2]=n[2]);var o=a;u(e,n,o);var s=i;d(r,o,s),u(t,s,a)}function k(r,n,a){var o=a;u(e,n,o);var s=i;h(r,o,s),u(t,s,a)}function x(e,t,n,i,o,c){var d=b(0,1,t[n]*c),h=b(0,1,t[n+1]*c),f=b(0,1,t[n+2]*c),p=Math.pow(d,e.GR),g=Math.pow(h,e.GG),v=Math.pow(f,e.GB),y=e.MXA*p+e.MXB*g+e.MXC*v,x=e.MYA*p+e.MYB*g+e.MYC*v,S=e.MZA*p+e.MZB*g+e.MZC*v,A=s;A[0]=y,A[1]=x,A[2]=S;var C=l;_(e.whitePoint,A,C);var P=s;w(e.blackPoint,C,P);var T=l;k(a,P,T);var E=s;u(r,T,E),i[o]=255*m(E[0]),i[o+1]=255*m(E[1]),i[o+2]=255*m(E[2])}var S=function(e){g(r,e);var t=v(r);function r(e,a,i,o){var s;if(p(this,r),s=t.call(this,"CalRGB",3),!e)throw new n.FormatError("WhitePoint missing - required for color space CalRGB");a=a||new Float32Array(3),i=i||new Float32Array([1,1,1]),o=o||new Float32Array([1,0,0,0,1,0,0,0,1]);var l=e[0],c=e[1],u=e[2];s.whitePoint=e;var d=a[0],h=a[1],f=a[2];if(s.blackPoint=a,s.GR=i[0],s.GG=i[1],s.GB=i[2],s.MXA=o[0],s.MYA=o[1],s.MZA=o[2],s.MXB=o[3],s.MYB=o[4],s.MZB=o[5],s.MXC=o[6],s.MYC=o[7],s.MZC=o[8],l<0||u<0||1!==c)throw new n.FormatError("Invalid WhitePoint components for ".concat(s.name)+", no fallback available");return(d<0||h<0||f<0)&&((0,n.info)("Invalid BlackPoint for ".concat(s.name," [").concat(d,", ").concat(h,", ").concat(f,"], ")+"falling back to default."),s.blackPoint=new Float32Array(3)),(s.GR<0||s.GG<0||s.GB<0)&&((0,n.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 f(r,[{key:"getRgbItem",value:function(e,t,r,n){x(this,e,t,r,n,1)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=1/((1<<i)-1),l=0;l<r;++l)x(this,e,t,n,a,s),t+=3,a+=3+o}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}}]),r}(o);return S}(),y=function(){function e(e){var t;return t=e>=6/29?e*e*e:108/841*(e-4/29),t}function t(e,t,r,n){return r+e*(n-r)/t}function r(r,n,a,i,o,s){var l=n[a],c=n[a+1],u=n[a+2];!1!==i&&(l=t(l,i,0,100),c=t(c,i,r.amin,r.amax),u=t(u,i,r.bmin,r.bmax)),c>r.amax?c=r.amax:c<r.amin&&(c=r.amin),u>r.bmax?u=r.bmax:u<r.bmin&&(u=r.bmin);var d,h,f,p=(l+16)/116,g=p+c/500,v=p-u/200,m=r.XW*e(g),b=r.YW*e(p),y=r.ZW*e(v);r.ZW<1?(d=3.1339*m+-1.617*b+-.4906*y,h=-.9785*m+1.916*b+.0333*y,f=.072*m+-.229*b+1.4057*y):(d=3.2406*m+-1.5372*b+-.4986*y,h=-.9689*m+1.8758*b+.0415*y,f=.0557*m+-.204*b+1.057*y),o[s]=255*Math.sqrt(d),o[s+1]=255*Math.sqrt(h),o[s+2]=255*Math.sqrt(f)}var a=function(e){g(a,e);var t=v(a);function a(e,r,i){var o;if(p(this,a),o=t.call(this,"Lab",3),!e)throw new n.FormatError("WhitePoint missing - required for color space Lab");if(r=r||[0,0,0],i=i||[-100,100,-100,100],o.XW=e[0],o.YW=e[1],o.ZW=e[2],o.amin=i[0],o.amax=i[1],o.bmin=i[2],o.bmax=i[3],o.XB=r[0],o.YB=r[1],o.ZB=r[2],o.XW<0||o.ZW<0||1!==o.YW)throw new n.FormatError("Invalid WhitePoint components, no fallback available");return(o.XB<0||o.YB<0||o.ZB<0)&&((0,n.info)("Invalid BlackPoint, falling back to default"),o.XB=o.YB=o.ZB=0),(o.amin>o.amax||o.bmin>o.bmax)&&((0,n.info)("Invalid Range, falling back to defaults"),o.amin=-100,o.amax=100,o.bmin=-100,o.bmax=100),o}return f(a,[{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 l=(1<<o)-1,c=0;c<n;c++)r(this,e,t,l,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,n.shadow)(this,"usesZeroToOneRange",!1)}}]),a}(o);return a}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQuadPoints=w,t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var n=r(2),a=r(9),i=r(4),o=r(22),u=r(7),h=r(24),b=r(11),y=function(){function e(){p(this,e)}return f(e,null,[{key:"create",value:function(e,t,r,n){return r.ensure(this,"_create",[e,t,r,n])}},{key:"_create",value:function(e,t,r,a){var o=e.fetchIfRef(t);if((0,i.isDict)(o)){var s=(0,i.isRef)(t)?t.toString():"annot_".concat(a.createObjId()),l=o.get("Subtype");l=(0,i.isName)(l)?l.name:null;var c={xref:e,dict:o,subtype:l,id:s,pdfManager:r};switch(l){case"Link":return new R(c);case"Text":return new E(c);case"Widget":var d=(0,u.getInheritableProperty)({dict:o,key:"FT"});switch(d=(0,i.isName)(d)?d.name:null,d){case"Tx":return new C(c);case"Btn":return new P(c);case"Ch":return new T(c)}return(0,n.warn)('Unimplemented widget field type "'+d+'", falling back to base field type.'),new A(c);case"Popup":return new I(c);case"FreeText":return new O(c);case"Line":return new L(c);case"Square":return new F(c);case"Circle":return new M(c);case"PolyLine":return new D(c);case"Polygon":return new N(c);case"Caret":return new B(c);case"Ink":return new U(c);case"Highlight":return new j(c);case"Underline":return new q(c);case"Squiggly":return new z(c);case"StrikeOut":return new V(c);case"Stamp":return new W(c);case"FileAttachment":return new H(c);default:return l?(0,n.warn)('Unimplemented annotation type "'+l+'", falling back to base annotation.'):(0,n.warn)("Annotation is missing the required /Subtype."),new k(c)}}}}]),e}();function w(e,t){if(!e.has("QuadPoints"))return null;var r=e.getArray("QuadPoints");if(!Array.isArray(r)||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 l=r[o],c=r[o+1];if(l<t[0]||l>t[2]||c<t[1]||c>t[3])return null;n[a].push({x:l,y:c})}}return n}function _(e,t,r){var a=n.Util.getAxialAlignedBoundingBox(t,r),i=m(a,4),o=i[0],s=i[1],l=i[2],c=i[3];if(o===l||s===c)return[1,0,0,1,e[0],e[1]];var u=(e[2]-e[0])/(l-o),d=(e[3]-e[1])/(c-s);return[u,0,0,d,e[0]-o*u,e[1]-s*d]}t.AnnotationFactory=y;var k=function(){function e(t){p(this,e);var r=t.dict;this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype}}return f(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,n.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,n.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,n.AnnotationFlag.PRINT)&&!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,n.AnnotationFlag.HIDDEN)}},{key:"setContents",value:function(e){this.contents=(0,n.stringToPDFString)(e||"")}},{key:"setModificationDate",value:function(e){this.modificationDate=(0,n.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=n.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function(e){var t=new Uint8ClampedArray(3);if(Array.isArray(e))switch(e.length){case 0:this.color=null;break;case 1:o.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),this.color=t;break;case 3:o.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),this.color=t;break;case 4:o.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),this.color=t;break;default:this.color=t;break}else this.color=t}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new x,(0,i.isDict)(e))if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,i.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,i.isDict)(t)){var r=t.get("N");if((0,i.isStream)(r))this.appearance=r;else if((0,i.isDict)(r)){var n=e.get("AS");(0,i.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){var r=new a.ObjectLoader(t,e,t.xref);return r.load().then((function(){return t}))}}))}},{key:"getOperatorList",value:function(e,t,r){var a=this;if(!this.appearance)return Promise.resolve(new h.OperatorList);var i=this.data,o=this.appearance.dict,s=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),l=o.getArray("BBox")||[0,0,1,1],c=o.getArray("Matrix")||[1,0,0,1,0,0],u=_(i.rect,l,c);return s.then((function(r){var o=new h.OperatorList;return o.addOp(n.OPS.beginAnnotation,[i.rect,u,c]),e.getOperatorList({stream:a.appearance,task:t,resources:r,operatorList:o}).then((function(){return o.addOp(n.OPS.endAnnotation,[]),a.appearance.reset(),o}))}))}},{key:"viewable",get:function(){return 0===this.flags||this._isViewable(this.flags)}},{key:"printable",get:function(){return 0!==this.flags&&this._isPrintable(this.flags)}}]),e}();t.Annotation=k;var x=function(){function e(){p(this,e),this.width=1,this.style=n.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return f(e,[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,i.isName)(e))this.width=0;else if(Number.isInteger(e)){if(e>0){var r=(t[2]-t[0])/2,a=(t[3]-t[1])/2;r>0&&a>0&&(e>r||e>a)&&((0,n.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if((0,i.isName)(e))switch(e.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE;break;default:break}}},{key:"setDashArray",value:function(e){if(Array.isArray(e)&&e.length>0){var t,r=!0,n=!0,a=d(e);try{for(a.s();!(t=a.n()).done;){var i=t.value,o=+i>=0;if(!o){r=!1;break}i>0&&(n=!1)}}catch(s){a.e(s)}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=x;var S=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e);var o=e.dict;if(o.has("IRT")){var s=o.getRaw("IRT");a.data.inReplyTo=(0,i.isRef)(s)?s.toString():null;var l=o.get("RT");a.data.replyType=(0,i.isName)(l)?l.name:n.AnnotationReplyType.REPLY}if(a.data.replyType===n.AnnotationReplyType.GROUP){var c=o.get("IRT");a.data.title=(0,n.stringToPDFString)(c.get("T")||""),a.setContents(c.get("Contents")),a.data.contents=a.contents,c.has("CreationDate")?(a.setCreationDate(c.get("CreationDate")),a.data.creationDate=a.creationDate):a.data.creationDate=null,c.has("M")?(a.setModificationDate(c.get("M")),a.data.modificationDate=a.modificationDate):a.data.modificationDate=null,a.data.hasPopup=c.has("Popup"),c.has("C")?(a.setColor(c.getArray("C")),a.data.color=a.color):a.data.color=null}else a.data.title=(0,n.stringToPDFString)(o.get("T")||""),a.setCreationDate(o.get("CreationDate")),a.data.creationDate=a.creationDate,a.data.hasPopup=o.has("Popup"),o.has("C")||(a.data.color=null);return a}return f(r,[{key:"setCreationDate",value:function(e){this.creationDate=(0,n.isString)(e)?e:null}}]),r}(k);t.MarkupAnnotation=S;var A=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e);var o=e.dict,s=a.data;s.annotationType=n.AnnotationType.WIDGET,s.fieldName=a._constructFieldName(o),s.fieldValue=(0,u.getInheritableProperty)({dict:o,key:"V",getArray:!0}),s.alternativeText=(0,n.stringToPDFString)(o.get("TU")||""),s.defaultAppearance=(0,u.getInheritableProperty)({dict:o,key:"DA"})||"";var l=(0,u.getInheritableProperty)({dict:o,key:"FT"});return s.fieldType=(0,i.isName)(l)?l.name:null,a.fieldResources=(0,u.getInheritableProperty)({dict:o,key:"DR"})||i.Dict.empty,s.fieldFlags=(0,u.getInheritableProperty)({dict:o,key:"Ff"}),(!Number.isInteger(s.fieldFlags)||s.fieldFlags<0)&&(s.fieldFlags=0),s.readOnly=a.hasFieldFlag(n.AnnotationFieldFlag.READONLY),"Sig"===s.fieldType&&(s.fieldValue=null,a.setFlags(n.AnnotationFlag.HIDDEN)),a}return f(r,[{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,n.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,n.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,n.stringToPDFString)(e.get("T")));var r=e;while(r.has("Parent")){if(r=r.get("Parent"),!(0,i.isDict)(r))break;r.has("T")&&t.unshift((0,n.stringToPDFString)(r.get("T")))}return t.join(".")}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getOperatorList",value:function(e,t,n){return n?Promise.resolve(new h.OperatorList):l(c(r.prototype),"getOperatorList",this).call(this,e,t,n)}}]),r}(k),C=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e);var i=e.dict;a.data.fieldValue=(0,n.stringToPDFString)(a.data.fieldValue||"");var o=(0,u.getInheritableProperty)({dict:i,key:"Q"});(!Number.isInteger(o)||o<0||o>2)&&(o=null),a.data.textAlignment=o;var s=(0,u.getInheritableProperty)({dict:i,key:"MaxLen"});return(!Number.isInteger(s)||s<0)&&(s=null),a.data.maxLen=s,a.data.multiLine=a.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE),a.data.comb=a.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!a.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE)&&!a.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)&&!a.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&null!==a.data.maxLen,a}return f(r,[{key:"getOperatorList",value:function(e,t,a){if(a||this.appearance)return l(c(r.prototype),"getOperatorList",this).call(this,e,t,a);var i=new h.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(i);var o=new b.Stream((0,n.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:o,task:t,resources:this.fieldResources,operatorList:i}).then((function(){return i}))}}]),r}(A),P=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.checkBox=!a.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!a.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),a.data.radioButton=a.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!a.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),a.data.pushButton=a.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),a.data.checkBox?a._processCheckBox(e):a.data.radioButton?a._processRadioButton(e):a.data.pushButton?a._processPushButton(e):(0,n.warn)("Invalid field flags for button widget annotation"),a}return f(r,[{key:"_processCheckBox",value:function(e){(0,i.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);var t=e.dict.get("AP");if((0,i.isDict)(t)){var r=t.get("D");if((0,i.isDict)(r)){var n=r.getKeys(),a=2===n.length;a&&(this.data.exportValue="Off"===n[0]?n[1]:n[0])}}}},{key:"_processRadioButton",value:function(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,i.isDict)(t)&&t.has("V")){var r=t.get("V");(0,i.isName)(r)&&(this.data.fieldValue=r.name)}var n=e.dict.get("AP");if((0,i.isDict)(n)){var a=n.get("N");if((0,i.isDict)(a)){var o,s=d(a.getKeys());try{for(s.s();!(o=s.n()).done;){var l=o.value;if("Off"!==l){this.data.buttonValue=l;break}}}catch(c){s.e(c)}finally{s.f()}}}}},{key:"_processPushButton",value:function(e){e.dict.has("A")?a.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl}):(0,n.warn)("Push buttons without action dictionaries are not supported")}}]),r}(A),T=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.options=[];var i=(0,u.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(i))for(var o=e.xref,s=0,l=i.length;s<l;s++){var c=o.fetchIfRef(i[s]),d=Array.isArray(c);a.data.options[s]={exportValue:d?o.fetchIfRef(c[0]):c,displayValue:(0,n.stringToPDFString)(d?o.fetchIfRef(c[1]):c)}}return Array.isArray(a.data.fieldValue)||(a.data.fieldValue=[a.data.fieldValue]),a.data.combo=a.hasFieldFlag(n.AnnotationFieldFlag.COMBO),a.data.multiSelect=a.hasFieldFlag(n.AnnotationFieldFlag.MULTISELECT),a}return r}(A),E=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r);var i=22;a=t.call(this,e);var o=e.dict;return a.data.annotationType=n.AnnotationType.TEXT,a.data.hasAppearance?a.data.name="NoIcon":(a.data.rect[1]=a.data.rect[3]-i,a.data.rect[2]=a.data.rect[0]+i,a.data.name=o.has("Name")?o.get("Name").name:"Note"),o.has("State")?(a.data.state=o.get("State")||null,a.data.stateModel=o.get("StateModel")||null):(a.data.state=null,a.data.stateModel=null),a}return r}(S),R=function(e){g(r,e);var t=v(r);function r(e){var i;p(this,r),i=t.call(this,e),i.data.annotationType=n.AnnotationType.LINK;var o=w(e.dict,i.rectangle);return o&&(i.data.quadPoints=o),a.Catalog.parseDestDictionary({destDict:e.dict,resultObj:i.data,docBaseUrl:e.pdfManager.docBaseUrl}),i}return r}(k),I=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.POPUP;var o=e.dict.get("Parent");if(!o)return(0,n.warn)("Popup annotation has a missing or invalid parent annotation."),s(a);var l=o.get("Subtype");a.data.parentType=(0,i.isName)(l)?l.name:null;var c=e.dict.getRaw("Parent");a.data.parentId=(0,i.isRef)(c)?c.toString():null;var u=o.get("RT");if((0,i.isName)(u,n.AnnotationReplyType.GROUP)&&(o=o.get("IRT")),o.has("M")?(a.setModificationDate(o.get("M")),a.data.modificationDate=a.modificationDate):a.data.modificationDate=null,o.has("C")?(a.setColor(o.getArray("C")),a.data.color=a.color):a.data.color=null,!a.viewable){var d=o.get("F");a._isViewable(d)&&a.setFlags(d)}return a.data.title=(0,n.stringToPDFString)(o.get("T")||""),a.data.contents=(0,n.stringToPDFString)(o.get("Contents")||""),a}return r}(k),O=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.FREETEXT,a}return r}(S),L=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.LINE,a.data.lineCoordinates=n.Util.normalizeRect(e.dict.getArray("L")),a}return r}(S),F=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.SQUARE,a}return r}(S),M=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.CIRCLE,a}return r}(S),D=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.POLYLINE;var i=e.dict.getArray("Vertices");a.data.vertices=[];for(var o=0,s=i.length;o<s;o+=2)a.data.vertices.push({x:i[o],y:i[o+1]});return a}return r}(S),N=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.POLYGON,a}return r}(D),B=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.CARET,a}return r}(S),U=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.INK;var i=e.xref,o=e.dict.getArray("InkList");a.data.inkLists=[];for(var s=0,l=o.length;s<l;++s){a.data.inkLists.push([]);for(var c=0,u=o[s].length;c<u;c+=2)a.data.inkLists[s].push({x:i.fetchIfRef(o[s][c]),y:i.fetchIfRef(o[s][c+1])})}return a}return r}(S),j=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.HIGHLIGHT;var i=w(e.dict,a.rectangle);return i&&(a.data.quadPoints=i),a}return r}(S),q=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.UNDERLINE;var i=w(e.dict,a.rectangle);return i&&(a.data.quadPoints=i),a}return r}(S),z=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.SQUIGGLY;var i=w(e.dict,a.rectangle);return i&&(a.data.quadPoints=i),a}return r}(S),V=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.STRIKEOUT;var i=w(e.dict,a.rectangle);return i&&(a.data.quadPoints=i),a}return r}(S),W=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.annotationType=n.AnnotationType.STAMP,a}return r}(S),H=function(e){g(r,e);var t=v(r);function r(e){var i;p(this,r),i=t.call(this,e);var o=new a.FileSpec(e.dict.get("FS"),e.xref);return i.data.annotationType=n.AnnotationType.FILEATTACHMENT,i.data.file=o.serializable,i}return r}(S)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var n=r(2),a=function(){function e(e,t,r,n,a){for(var i=e,o=0,s=t.length-1;o<s;o++){var l=t[o];i=i[l]||(i[l]=[])}i[t[t.length-1]]={checkFn:r,iterateFn:n,processFn:a}}function t(e,t,r,a){for(var i=e+2,o=0;o<t;o++){var s=a[i+4*o],l=1===s.length&&s[0];if(!l||1!==l.width||1!==l.height||l.data.length&&(1!==l.data.length||0!==l.data[0]))break;r[i+4*o]=n.OPS.paintSolidColorImageMask}return t-o}var r=[];function a(e){this.queue=e,this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},this.match=null,this.lastProcessed=0}return e(r,[n.OPS.save,n.OPS.transform,n.OPS.paintInlineImageXObject,n.OPS.restore],null,(function(e,t){var r=e.fnArray,a=e.iCurr-3,i=(t-a)%4;switch(i){case 0:return r[t]===n.OPS.save;case 1:return r[t]===n.OPS.transform;case 2:return r[t]===n.OPS.paintInlineImageXObject;case 3:return r[t]===n.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(i))}),(function(e,t){var r=10,a=200,i=1e3,o=1,s=e.fnArray,l=e.argsArray,c=e.iCurr,u=c-3,d=c-2,h=c-1,f=Math.min(Math.floor((t-u)/4),a);if(f<r)return t-(t-u)%4;var p,g=0,v=[],m=0,b=o,y=o;for(p=0;p<f;p++){var w=l[d+(p<<2)],_=l[h+(p<<2)][0];b+_.width>i&&(g=Math.max(g,b),y+=m+2*o,b=0,m=0),v.push({transform:w,x:b,y:y,w:_.width,h:_.height}),b+=_.width+2*o,m=Math.max(m,_.height)}var k=Math.max(g,b)+o,x=y+m+o,S=new Uint8ClampedArray(k*x*4),A=k<<2;for(p=0;p<f;p++){var C=l[h+(p<<2)][0].data,P=v[p].w<<2,T=0,E=v[p].x+v[p].y*k<<2;S.set(C.subarray(0,P),E-A);for(var R=0,I=v[p].h;R<I;R++)S.set(C.subarray(T,T+P),E),T+=P,E+=A;S.set(C.subarray(T-P,T),E);while(E>=0)C[E-4]=C[E],C[E-3]=C[E+1],C[E-2]=C[E+2],C[E-1]=C[E+3],C[E+P]=C[E+P-4],C[E+P+1]=C[E+P-3],C[E+P+2]=C[E+P-2],C[E+P+3]=C[E+P-1],E-=A}return s.splice(u,4*f,n.OPS.paintInlineImageXObjectGroup),l.splice(u,4*f,[{width:k,height:x,kind:n.ImageKind.RGBA_32BPP,data:S},v]),u+1})),e(r,[n.OPS.save,n.OPS.transform,n.OPS.paintImageMaskXObject,n.OPS.restore],null,(function(e,t){var r=e.fnArray,a=e.iCurr-3,i=(t-a)%4;switch(i){case 0:return r[t]===n.OPS.save;case 1:return r[t]===n.OPS.transform;case 2:return r[t]===n.OPS.paintImageMaskXObject;case 3:return r[t]===n.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(i))}),(function(e,r){var a,i=10,o=100,s=1e3,l=e.fnArray,c=e.argsArray,u=e.iCurr,d=u-3,h=u-2,f=u-1,p=Math.floor((r-d)/4);if(p=t(d,p,l,c),p<i)return r-(r-d)%4;var g,v,m=!1,b=c[f][0];if(0===c[h][1]&&0===c[h][2]){m=!0;var y=c[h][0],w=c[h][3];g=h+4;var _=f+4;for(a=1;a<p;a++,g+=4,_+=4)if(v=c[g],c[_][0]!==b||v[0]!==y||0!==v[1]||0!==v[2]||v[3]!==w){a<i?m=!1:p=a;break}}if(m){p=Math.min(p,s);var k=new Float32Array(2*p);for(g=h,a=0;a<p;a++,g+=4)v=c[g],k[a<<1]=v[4],k[1+(a<<1)]=v[5];l.splice(d,4*p,n.OPS.paintImageMaskXObjectRepeat),c.splice(d,4*p,[b,y,w,k])}else{p=Math.min(p,o);var x=[];for(a=0;a<p;a++){v=c[h+(a<<2)];var S=c[f+(a<<2)][0];x.push({data:S.data,width:S.width,height:S.height,transform:v})}l.splice(d,4*p,n.OPS.paintImageMaskXObjectGroup),c.splice(d,4*p,[x])}return d+1})),e(r,[n.OPS.save,n.OPS.transform,n.OPS.paintImageXObject,n.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,a=e.argsArray,i=e.iCurr-3,o=(t-i)%4;switch(o){case 0:return r[t]===n.OPS.save;case 1:if(r[t]!==n.OPS.transform)return!1;var s=e.iCurr-2,l=a[s][0],c=a[s][3];return a[t][0]===l&&0===a[t][1]&&0===a[t][2]&&a[t][3]===c;case 2:if(r[t]!==n.OPS.paintImageXObject)return!1;var u=e.iCurr-1,d=a[u][0];return a[t][0]===d;case 3:return r[t]===n.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(o))}),(function(e,t){var r=3,a=1e3,i=e.fnArray,o=e.argsArray,s=e.iCurr,l=s-3,c=s-2,u=s-1,d=o[u][0],h=o[c][0],f=o[c][3],p=Math.min(Math.floor((t-l)/4),a);if(p<r)return t-(t-l)%4;for(var g=new Float32Array(2*p),v=c,m=0;m<p;m++,v+=4){var b=o[v];g[m<<1]=b[4],g[1+(m<<1)]=b[5]}var y=[d,h,f,g];return i.splice(l,4*p,n.OPS.paintImageXObjectRepeat),o.splice(l,4*p,y),l+1})),e(r,[n.OPS.beginText,n.OPS.setFont,n.OPS.setTextMatrix,n.OPS.showText,n.OPS.endText],null,(function(e,t){var r=e.fnArray,a=e.argsArray,i=e.iCurr-4,o=(t-i)%5;switch(o){case 0:return r[t]===n.OPS.beginText;case 1:return r[t]===n.OPS.setFont;case 2:return r[t]===n.OPS.setTextMatrix;case 3:if(r[t]!==n.OPS.showText)return!1;var s=e.iCurr-3,l=a[s][0],c=a[s][1];return a[t][0]===l&&a[t][1]===c;case 4:return r[t]===n.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(o))}),(function(e,t){var r=3,n=1e3,a=e.fnArray,i=e.argsArray,o=e.iCurr,s=o-4,l=o-3,c=o-2,u=o-1,d=o,h=i[l][0],f=i[l][1],p=Math.min(Math.floor((t-s)/5),n);if(p<r)return t-(t-s)%5;var g=s;s>=4&&a[s-4]===a[l]&&a[s-3]===a[c]&&a[s-2]===a[u]&&a[s-1]===a[d]&&i[s-4][0]===h&&i[s-4][1]===f&&(p++,g-=5);for(var v=g+4,m=1;m<p;m++)a.splice(v,3),i.splice(v,3),v+=2;return v+1})),a.prototype={_optimize:function(){var e=this.queue.fnArray,t=this.lastProcessed,n=e.length,a=this.state,i=this.match;if(a||i||t+1!==n||r[e[t]]){var o=this.context;while(t<n){if(i){var s=(0,i.iterateFn)(o,t);if(s){t++;continue}if(t=(0,i.processFn)(o,t+1),n=e.length,i=null,a=null,t>=n)break}a=(a||r)[e[t]],a&&!Array.isArray(a)?(o.iCurr=t,t++,!a.checkFn||(0,a.checkFn)(o)?(i=a,a=null):a=null):t++}this.state=a,this.match=i,this.lastProcessed=t}else this.lastProcessed=n},push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()},flush:function(){while(this.match){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}},reset:function(){this.state=null,this.match=null,this.lastProcessed=0}},a}(),i=function(){function e(e){this.queue=e}return e.prototype={push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t)},flush:function(){},reset:function(){}},e}(),o=function(){var e=1e3,t=e-5;function r(e,t,r){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=t&&"oplist"!==e?new a(this):new i(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=r,this.intent=e,this.weight=0,this._resolved=t?null:Promise.resolve()}return r.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp:function(r,a){this.optimizer.push(r,a),this.weight++,this._streamSink&&(this.weight>=e||this.weight>=t&&(r===n.OPS.restore||r===n.OPS.endText))&&this.flush()},addDependency:function(e){e in this.dependencies||(this.dependencies[e]=!0,this.addOp(n.OPS.dependency,[e]))},addDependencies:function(e){for(var t in e)this.addDependency(t)},addOpList:function(e){Object.assign(this.dependencies,e.dependencies);for(var t=0,r=e.length;t<r;t++)this.addOp(e.fnArray[t],e.argsArray[t])},getIR:function(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){for(var e=[],t=this.fnArray,r=this.argsArray,a=this.length,i=0;i<a;i++)switch(t[i]){case n.OPS.paintInlineImageXObject:case n.OPS.paintInlineImageXObjectGroup:case n.OPS.paintImageMaskXObject:var o=r[i][0];o.cached||e.push(o.data.buffer);break}return e},flush: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=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},r}();t.OperatorList=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=void 0;var n=r(2),a=r(26),i=r(4),o=r(27),s=r(30),l=r(7),c=r(33),u=r(32),h=r(36),f=r(10),p=r(37),g=r(22),v=r(11),m=r(31),y=r(38),w=r(39),_=r(17),k=r(41),x=r(42),S=r(24),A=r(43),C=function(){var e={forceDataSchema:!1,maxImageSize:-1,disableFontFace:!1,nativeImageDecoderSupport:n.NativeImageDecoding.DECODE,ignoreErrors:!1,isEvalSupported:!0};function t(t){var r=this,a=t.xref,i=t.handler,o=t.pageIndex,s=t.idFactory,l=t.fontCache,c=t.builtInCMapCache,u=t.options,d=void 0===u?null:u,h=t.pdfFunctionFactory;this.xref=a,this.handler=i,this.pageIndex=o,this.idFactory=s,this.fontCache=l,this.builtInCMapCache=c,this.options=d||e,this.pdfFunctionFactory=h,this.parsingType3Font=!1,this.fetchBuiltInCMap=function(){var e=b(regeneratorRuntime.mark((function e(t){var a,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r.builtInCMapCache.has(t)){e.next=2;break}return e.abrupt("return",r.builtInCMapCache.get(t));case 2:return a=r.handler.sendWithStream("FetchBuiltInCMap",{name:t}),i=a.getReader(),e.next=6,new Promise((function(e,t){function r(){i.read().then((function(t){var n=t.value,a=t.done;a||(e(n),r())}),t)}r()}));case 6:return o=e.sent,o.compressionType!==n.CMapCompressionType.NONE&&r.builtInCMapCache.set(t,o),e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}var r=20,f=100;function C(){this.reset()}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(var r=0,a=e.length;r<a;r++){var o=O(e[r],!0);if(o)return o}return(0,n.warn)("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(0,i.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,n.warn)("Unsupported blend mode: ".concat(e.name)),"source-over")}C.prototype={check:function(){return!(++this.checked<f)&&(this.checked=0,this.endTime<=Date.now())},reset:function(){this.endTime=Date.now()+r,this.checked=0}};var L=Promise.resolve(),F=1,M=2;return t.prototype={clone:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object.create(this);return r.options=t,r},hasBlendModes:function(e){if(!(e instanceof i.Dict))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);var r=[e],a=this.xref;while(r.length){var o=r.shift(),s=o.get("ExtGState");if(s instanceof i.Dict)for(var c=s.getKeys(),u=0,d=c.length;u<d;u++){var h=c[u],f=s.getRaw(h);if(f instanceof i.Ref){if(t[f.toString()])continue;try{f=a.fetch(f)}catch(S){if(S instanceof l.MissingDataException)throw S;if(this.options.ignoreErrors){f instanceof i.Ref&&(t[f.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),(0,n.warn)('hasBlendModes - ignoring ExtGState: "'.concat(S,'".'));continue}throw S}}if(f instanceof i.Dict){f.objId&&(t[f.objId]=!0);var p=f.get("BM");if(p instanceof i.Name){if("Normal"!==p.name)return!0}else if(void 0!==p&&Array.isArray(p))for(var g=0,v=p.length;g<v;g++)if(p[g]instanceof i.Name&&"Normal"!==p[g].name)return!0}}var m=o.get("XObject");if(m instanceof i.Dict)for(var b=m.getKeys(),y=0,w=b.length;y<w;y++){var _=b[y],k=m.getRaw(_);if(k instanceof i.Ref){if(t[k.toString()])continue;try{k=a.fetch(k)}catch(S){if(S instanceof l.MissingDataException)throw S;if(this.options.ignoreErrors){k instanceof i.Ref&&(t[k.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),(0,n.warn)('hasBlendModes - ignoring XObject: "'.concat(S,'".'));continue}throw S}}if((0,i.isStream)(k)){if(k.dict.objId){if(t[k.dict.objId])continue;t[k.dict.objId]=!0}var x=k.dict.get("Resources");!(x instanceof i.Dict)||x.objId&&t[x.objId]||(r.push(x),x.objId&&(t[x.objId]=!0))}}}return!1},buildFormXObject:function(e,t,r,a,o,s){var l=this;return b(regeneratorRuntime.mark((function c(){var u,d,h,f,p,v,m;return regeneratorRuntime.wrap((function(c){while(1)switch(c.prev=c.next){case 0:if(u=t.dict,d=u.getArray("Matrix"),h=u.getArray("BBox"),h=Array.isArray(h)&&4===h.length?n.Util.normalizeRect(h):null,f=u.get("Group"),!f){c.next=18;break}if(p={matrix:d,bbox:h,smask:r,isolated:!1,knockout:!1},v=f.get("S"),m=null,!(0,i.isName)(v,"Transparency")){c.next=16;break}if(p.isolated=f.get("I")||!1,p.knockout=f.get("K")||!1,!f.has("CS")){c.next=16;break}return c.next=15,l.parseColorSpace({cs:f.get("CS"),resources:e});case 15:m=c.sent;case 16:r&&r.backdrop&&(m=m||g.ColorSpace.singletons.rgb,r.backdrop=m.getRgb(r.backdrop,0)),a.addOp(n.OPS.beginGroup,[p]);case 18:return a.addOp(n.OPS.paintFormXObjectBegin,[d,h]),c.abrupt("return",l.getOperatorList({stream:t,task:o,resources:u.get("Resources")||e,operatorList:a,initialState:s}).then((function(){a.addOp(n.OPS.paintFormXObjectEnd,[]),f&&a.addOp(n.OPS.endGroup,[p])})));case 20:case"end":return c.stop()}}),c)})))()},buildPaintImageXObject:function(e){var t=this;return b(regeneratorRuntime.mark((function r(){var a,i,o,s,l,c,u,d,h,f,p,g,m,b,y,w,k,S,C,P,T,E,R,I,O,L,F,M,D;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=e.resources,i=e.image,o=e.isInline,s=void 0!==o&&o,l=e.operatorList,c=e.cacheKey,u=e.imageCache,d=e.forceDisableNativeImageDecoder,h=void 0!==d&&d,f=i.dict,p=f.get("Width","W"),g=f.get("Height","H"),p&&(0,n.isNum)(p)&&g&&(0,n.isNum)(g)){r.next=7;break}return(0,n.warn)("Image dimensions are missing, or not numbers."),r.abrupt("return",void 0);case 7:if(m=t.options.maxImageSize,!(-1!==m&&p*g>m)){r.next=11;break}return(0,n.warn)("Image exceeded maximum allowed size and was removed."),r.abrupt("return",void 0);case 11:if(b=f.get("ImageMask","IM")||!1,!b){r.next=24;break}return k=f.get("Width","W"),S=f.get("Height","H"),C=k+7>>3,P=i.getBytes(C*S,!0),T=f.getArray("Decode","D"),y=A.PDFImage.createMask({imgArray:P,width:k,height:S,imageIsFromDecodeStream:i instanceof v.DecodeStream,inverseDecode:!!T&&T[0]>0}),y.cached=!!c,w=[y],l.addOp(n.OPS.paintImageMaskXObject,w),c&&(u[c]={fn:n.OPS.paintImageMaskXObject,args:w}),r.abrupt("return",void 0);case 24:if(E=f.get("SMask","SM")||!1,R=f.get("Mask")||!1,I=200,!s||E||R||i instanceof _.JpegStream||!(p+g<I)){r.next=32;break}return O=new A.PDFImage({xref:t.xref,res:a,image:i,isInline:s,pdfFunctionFactory:t.pdfFunctionFactory}),y=O.createImageData(!0),l.addOp(n.OPS.paintInlineImageXObject,[y]),r.abrupt("return",void 0);case 32:if(L=h?n.NativeImageDecoding.NONE:t.options.nativeImageDecoderSupport,F="img_".concat(t.idFactory.createObjId()),t.parsingType3Font&&((0,n.assert)(L===n.NativeImageDecoding.NONE,"Type3 image resources should be completely decoded in the worker."),F="".concat(t.idFactory.getDocId(),"_type3res_").concat(F)),!(L!==n.NativeImageDecoding.NONE&&!E&&!R&&i instanceof _.JpegStream&&x.NativeImageDecoder.isSupported(i,t.xref,a,t.pdfFunctionFactory)&&i.maybeValidDimensions)){r.next=37;break}return r.abrupt("return",t.handler.sendWithPromise("obj",[F,t.pageIndex,"JpegStream",i.getIR(t.options.forceDataSchema)]).then((function(){l.addDependency(F),w=[F,p,g],l.addOp(n.OPS.paintJpegXObject,w),c&&(u[c]={fn:n.OPS.paintJpegXObject,args:w})}),(function(e){return(0,n.warn)("Native JPEG decoding failed -- trying to recover: "+(e&&e.message)),t.buildPaintImageXObject({resources:a,image:i,isInline:s,operatorList:l,cacheKey:c,imageCache:u,forceDisableNativeImageDecoder:!0})})));case 37:if(M=null,L===n.NativeImageDecoding.DECODE&&(i instanceof _.JpegStream||R instanceof _.JpegStream||E instanceof _.JpegStream)&&(M=new x.NativeImageDecoder({xref:t.xref,resources:a,handler:t.handler,forceDataSchema:t.options.forceDataSchema,pdfFunctionFactory:t.pdfFunctionFactory})),l.addDependency(F),w=[F,p,g],D=A.PDFImage.buildImage({handler:t.handler,xref:t.xref,res:a,image:i,isInline:s,nativeDecoder:M,pdfFunctionFactory:t.pdfFunctionFactory}).then((function(e){var r=e.createImageData(!1);if(t.parsingType3Font)return t.handler.sendWithPromise("commonobj",[F,"FontType3Res",r],[r.data.buffer]);t.handler.send("obj",[F,t.pageIndex,"Image",r],[r.data.buffer])})).catch((function(e){if((0,n.warn)("Unable to decode image: "+e),t.parsingType3Font)return t.handler.sendWithPromise("commonobj",[F,"FontType3Res",null]);t.handler.send("obj",[F,t.pageIndex,"Image",null])})),!t.parsingType3Font){r.next=45;break}return r.next=45,D;case 45:return l.addOp(n.OPS.paintImageXObject,w),c&&(u[c]={fn:n.OPS.paintImageXObject,args:w}),r.abrupt("return",void 0);case 48:case"end":return r.stop()}}),r)})))()},handleSMask:function(e,t,r,n,a){var i=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},s=e.get("TR");if((0,w.isPDFFunction)(s)){for(var l=this.pdfFunctionFactory.create(s),c=new Uint8Array(256),u=new Float32Array(1),d=0;d<256;d++)u[0]=d/255,l(u,0,u,0),c[d]=255*u[0]|0;o.transferMap=c}return this.buildFormXObject(t,i,o,r,n,a.state.clone())},handleTilingType:function(e,t,r,a,o,s,l){var c=this,u=new S.OperatorList,d=[o.get("Resources"),r],f=i.Dict.merge(this.xref,d);return this.getOperatorList({stream:a,task:l,resources:f,operatorList:u}).then((function(){return(0,h.getTilingPatternIR)({fnArray:u.fnArray,argsArray:u.argsArray},o,t)})).then((function(t){s.addDependencies(u.dependencies),s.addOp(e,t)}),(function(e){if(!(e instanceof n.AbortException)){if(c.options.ignoreErrors)return c.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),void(0,n.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'));throw e}}))},handleSetFont:function(e,t,r,a,i,s){var l,c=this;return t&&(t=t.slice(),l=t[0].name),this.loadFont(l,r,e).then((function(t){return t.font.isType3Font?t.loadType3Data(c,e,a,i).then((function(){return t})).catch((function(e){return c.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.font}),new P("g_font_error",new o.ErrorFont("Type3 font load error: "+e),t.font)})):t})).then((function(e){return s.font=e.font,e.send(c.handler),e.loadedName}))},handleText:function(e,r){var a=r.font,i=a.charsToGlyphs(e);if(a.data){var o=!!(r.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG);(o||"Pattern"===r.fillColorSpace.name||a.disableFontFace||this.options.disableFontFace)&&t.buildFontPaths(a,i,this.handler)}return i},ensureStateFont:function(e){if(!e.font){var t=new n.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.font}),void(0,n.warn)('ensureStateFont: "'.concat(t,'".'));throw t}},setGState:function(e,t,r,a,o){for(var s=this,l=[],c=t.getKeys(),u=Promise.resolve(),d=function(){var d=c[h],f=t.get(d);switch(d){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":l.push([d,f]);break;case"Font":u=u.then((function(){return s.handleSetFont(e,null,f[0],r,a,o.state).then((function(e){r.addDependency(e),l.push([d,[e,f[1]]])}))}));break;case"BM":l.push([d,O(f)]);break;case"SMask":if((0,i.isName)(f,"None")){l.push([d,!1]);break}(0,i.isDict)(f)?(u=u.then((function(){return s.handleSMask(f,e,r,a,o)})),l.push([d,!0])):(0,n.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,n.info)("graphic state operator "+d);break;default:(0,n.info)("Unknown graphic state operator "+d);break}},h=0,f=c.length;h<f;h++)d();return u.then((function(){l.length>0&&r.addOp(n.OPS.setGState,[l])}))},loadFont:function(e,r,a){var s=this;function l(){return Promise.resolve(new P("g_font_error",new o.ErrorFont("Font "+e+" is not available"),r))}var c,u=this.xref;if(r){if(!(0,i.isRef)(r))throw new n.FormatError('The "font" object should be a reference.');c=r}else{var d=a.get("Font");d&&(c=d.getRaw(e))}if(!c){var h='Font "'.concat(e||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,n.warn)("".concat(h,".")),l();this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.font}),(0,n.warn)("".concat(h," -- attempting to fallback to a default font.")),c=t.getFallbackFontDict()}if(this.fontCache.has(c))return this.fontCache.get(c);if(r=u.fetchIfRef(c),!(0,i.isDict)(r))return l();if(r.translated)return r.translated;var f,p,g=(0,n.createPromiseCapability)(),v=this.preEvaluateFont(r),m=v.descriptor,b=v.hash,y=(0,i.isRef)(c);if(y&&(f=c.toString()),b&&(0,i.isDict)(m)){m.fontAliases||(m.fontAliases=Object.create(null));var w=m.fontAliases;if(w[b]){var _=w[b].aliasRef;if(y&&_&&this.fontCache.has(_))return this.fontCache.putAlias(c,_),this.fontCache.get(c)}else w[b]={fontID:o.Font.getFontID()};y&&(w[b].aliasRef=c),f=w[b].fontID}y?this.fontCache.put(c,g.promise):(f||(f=this.idFactory.createObjId()),this.fontCache.put("id_".concat(f),g.promise)),(0,n.assert)(f,'The "fontID" must be defined.'),r.loadedName="".concat(this.idFactory.getDocId(),"_f").concat(f),r.translated=g.promise;try{p=this.translateFont(v)}catch(k){p=Promise.reject(k)}return p.then((function(e){if(void 0!==e.fontType){var t=u.stats.fontTypes;t[e.fontType]=!0}g.resolve(new P(r.loadedName,e,r))})).catch((function(e){s.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.font});try{var t=m&&m.get("FontFile3"),a=t&&t.get("Subtype"),i=(0,o.getFontType)(v.type,a&&a.name),l=u.stats.fontTypes;l[i]=!0}catch(c){}g.resolve(new P(r.loadedName,new o.ErrorFont(e instanceof Error?e.message:e),r))})),g.promise},buildPath:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.length-1;if(r||(r=[]),i<0||e.fnArray[i]!==n.OPS.constructPath)a&&((0,n.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(n.OPS.save,null)),e.addOp(n.OPS.constructPath,[[t],r]),a&&e.addOp(n.OPS.restore,null);else{var o=e.argsArray[i];o[0].push(t),Array.prototype.push.apply(o[1],r)}},parseColorSpace:function(e){var t=this,r=e.cs,a=e.resources;return new Promise((function(e){e(g.ColorSpace.parse(r,t.xref,a,t.pdfFunctionFactory))})).catch((function(e){if(e instanceof n.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),(0,n.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))},handleColorN:function(e,t,r,a,o,s,l){var c=this;return b(regeneratorRuntime.mark((function u(){var d,f,p,g,v,m,b;return regeneratorRuntime.wrap((function(u){while(1)switch(u.prev=u.next){case 0:if(d=r[r.length-1],!(0,i.isName)(d)||!(f=o.get(d.name))){u.next=16;break}if(p=(0,i.isStream)(f)?f.dict:f,g=p.get("PatternType"),g!==F){u.next=9;break}return v=a.base?a.base.getRgb(r,0):null,u.abrupt("return",c.handleTilingType(t,v,s,f,p,e,l));case 9:if(g!==M){u.next=15;break}return m=p.get("Shading"),b=p.getArray("Matrix"),f=h.Pattern.parseShading(m,b,c.xref,s,c.handler,c.pdfFunctionFactory),e.addOp(t,f.getIR()),u.abrupt("return",void 0);case 15:throw new n.FormatError("Unknown PatternType: ".concat(g));case 16:throw new n.FormatError("Unknown PatternName: ".concat(d));case 17:case"end":return u.stop()}}),u)})))()},getOperatorList:function(e){var t=this,r=e.stream,a=e.task,o=e.resources,s=e.operatorList,l=e.initialState,c=void 0===l?null:l;if(o=o||i.Dict.empty,c=c||new R,!s)throw new Error('getOperatorList: missing "operatorList" parameter');var u=this,d=this.xref,f=!1,p=Object.create(null),v=o.get("XObject")||i.Dict.empty,m=o.get("Pattern")||i.Dict.empty,b=new T(c),y=new I(r,d,b),w=new C;function _(e){for(var t=0,r=y.savedStatesDepth;t<r;t++)s.addOp(n.OPS.restore,[])}return new Promise((function e(t,r){var l=function(n){Promise.all([n,s.ready]).then((function(){try{e(t,r)}catch(n){r(n)}}),r)};a.ensureNotTerminated(),w.reset();var c,k,x,S,A={};while(!(c=w.check())){if(A.args=null,!y.read(A))break;var C=A.args,P=A.fn;switch(0|P){case n.OPS.paintXObject:var T=C[0].name;if(T&&void 0!==p[T]){s.addOp(p[T].fn,p[T].args),C=null;continue}return void l(new Promise((function(e,t){if(!T)throw new n.FormatError("XObject must be referred to by name.");var r=v.get(T);if(!r)return s.addOp(P,C),void e();if(!(0,i.isStream)(r))throw new n.FormatError("XObject should be a stream");var l=r.dict.get("Subtype");if(!(0,i.isName)(l))throw new n.FormatError("XObject should have a Name subtype");if("Form"===l.name)return b.save(),void u.buildFormXObject(o,r,null,s,a,b.state.clone()).then((function(){b.restore(),e()}),t);if("Image"!==l.name){if("PS"!==l.name)throw new n.FormatError("Unhandled XObject subtype ".concat(l.name));(0,n.info)("Ignored XObject subtype PS"),e()}else u.buildPaintImageXObject({resources:o,image:r,operatorList:s,cacheKey:T,imageCache:p}).then(e,t)})).catch((function(e){if(!(e instanceof n.AbortException)){if(u.options.ignoreErrors)return u.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),void(0,n.warn)('getOperatorList - ignoring XObject: "'.concat(e,'".'));throw e}})));case n.OPS.setFont:var E=C[1];return void l(u.handleSetFont(o,C,null,s,a,b.state).then((function(e){s.addDependency(e),s.addOp(n.OPS.setFont,[e,E])})));case n.OPS.beginText:f=!0;break;case n.OPS.endText:f=!1;break;case n.OPS.endInlineImage:var R=C[0].cacheKey;if(R){var I=p[R];if(void 0!==I){s.addOp(I.fn,I.args),C=null;continue}}return void l(u.buildPaintImageXObject({resources:o,image:C[0],isInline:!0,operatorList:s,cacheKey:R,imageCache:p}));case n.OPS.showText:if(!b.state.font){u.ensureStateFont(b.state);continue}C[0]=u.handleText(C[0],b.state);break;case n.OPS.showSpacedText:if(!b.state.font){u.ensureStateFont(b.state);continue}var O=C[0],F=[],M=O.length,D=b.state;for(k=0;k<M;++k){var N=O[k];(0,n.isString)(N)?Array.prototype.push.apply(F,u.handleText(N,D)):(0,n.isNum)(N)&&F.push(N)}C[0]=F,P=n.OPS.showText;break;case n.OPS.nextLineShowText:if(!b.state.font){u.ensureStateFont(b.state);continue}s.addOp(n.OPS.nextLine),C[0]=u.handleText(C[0],b.state),P=n.OPS.showText;break;case n.OPS.nextLineSetSpacingShowText:if(!b.state.font){u.ensureStateFont(b.state);continue}s.addOp(n.OPS.nextLine),s.addOp(n.OPS.setWordSpacing,[C.shift()]),s.addOp(n.OPS.setCharSpacing,[C.shift()]),C[0]=u.handleText(C[0],b.state),P=n.OPS.showText;break;case n.OPS.setTextRenderingMode:b.state.textRenderingMode=C[0];break;case n.OPS.setFillColorSpace:return void l(u.parseColorSpace({cs:C[0],resources:o}).then((function(e){e&&(b.state.fillColorSpace=e)})));case n.OPS.setStrokeColorSpace:return void l(u.parseColorSpace({cs:C[0],resources:o}).then((function(e){e&&(b.state.strokeColorSpace=e)})));case n.OPS.setFillColor:S=b.state.fillColorSpace,C=S.getRgb(C,0),P=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColor:S=b.state.strokeColorSpace,C=S.getRgb(C,0),P=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillGray:b.state.fillColorSpace=g.ColorSpace.singletons.gray,C=g.ColorSpace.singletons.gray.getRgb(C,0),P=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeGray:b.state.strokeColorSpace=g.ColorSpace.singletons.gray,C=g.ColorSpace.singletons.gray.getRgb(C,0),P=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillCMYKColor:b.state.fillColorSpace=g.ColorSpace.singletons.cmyk,C=g.ColorSpace.singletons.cmyk.getRgb(C,0),P=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeCMYKColor:b.state.strokeColorSpace=g.ColorSpace.singletons.cmyk,C=g.ColorSpace.singletons.cmyk.getRgb(C,0),P=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillRGBColor:b.state.fillColorSpace=g.ColorSpace.singletons.rgb,C=g.ColorSpace.singletons.rgb.getRgb(C,0);break;case n.OPS.setStrokeRGBColor:b.state.strokeColorSpace=g.ColorSpace.singletons.rgb,C=g.ColorSpace.singletons.rgb.getRgb(C,0);break;case n.OPS.setFillColorN:if(S=b.state.fillColorSpace,"Pattern"===S.name)return void l(u.handleColorN(s,n.OPS.setFillColorN,C,S,m,o,a));C=S.getRgb(C,0),P=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColorN:if(S=b.state.strokeColorSpace,"Pattern"===S.name)return void l(u.handleColorN(s,n.OPS.setStrokeColorN,C,S,m,o,a));C=S.getRgb(C,0),P=n.OPS.setStrokeRGBColor;break;case n.OPS.shadingFill:var B=o.get("Shading");if(!B)throw new n.FormatError("No shading resource found");var U=B.get(C[0].name);if(!U)throw new n.FormatError("No shading object found");var j=h.Pattern.parseShading(U,null,d,o,u.handler,u.pdfFunctionFactory),q=j.getIR();C=[q],P=n.OPS.shadingFill;break;case n.OPS.setGState:var z=C[0],V=o.get("ExtGState");if(!(0,i.isDict)(V)||!V.has(z.name))break;var W=V.get(z.name);return void l(u.setGState(o,W,s,a,b));case n.OPS.moveTo:case n.OPS.lineTo:case n.OPS.curveTo:case n.OPS.curveTo2:case n.OPS.curveTo3:case n.OPS.closePath:case n.OPS.rectangle:u.buildPath(s,P,C,f);continue;case n.OPS.markPoint:case n.OPS.markPointProps:case n.OPS.beginMarkedContent:case n.OPS.beginMarkedContentProps:case n.OPS.endMarkedContent:case n.OPS.beginCompat:case n.OPS.endCompat:continue;default:if(null!==C){for(k=0,x=C.length;k<x;k++)if(C[k]instanceof i.Dict)break;if(k<x){(0,n.warn)("getOperatorList - ignoring operator: "+P);continue}}}s.addOp(P,C)}c?l(L):(_(),t())})).catch((function(e){if(!(e instanceof n.AbortException)){if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),(0,n.warn)('getOperatorList - ignoring errors during "'.concat(a.name,'" ')+'task: "'.concat(e,'".')),void _();throw e}}))},getTextContent:function(e){var t=this,r=e.stream,a=e.task,o=e.resources,s=e.stateManager,l=void 0===s?null:s,u=e.normalizeWhitespace,d=void 0!==u&&u,h=e.combineTextItems,f=void 0!==h&&h,g=e.sink,v=e.seenStyles,m=void 0===v?Object.create(null):v;o=o||i.Dict.empty,l=l||new T(new E);var b,y=/\s/g,w={items:[],styles:Object.create(null)},_={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},k=.3,x=1.5,S=4,A=this,P=this.xref,R=null,O=Object.create(null),F=new I(r,P,l);function M(){if(_.initialized)return _;var e=b.font;e.loadedName in m||(m[e.loadedName]=!0,w.styles[e.loadedName]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:!!e.vertical}),_.fontName=e.loadedName;var t=[b.fontSize*b.textHScale,0,0,b.fontSize,0,b.textRise];if(e.isType3Font&&b.fontSize<=1&&!(0,n.isArrayEqual)(b.fontMatrix,n.FONT_IDENTITY_MATRIX)){var r=e.bbox[3]-e.bbox[1];r>0&&(t[3]*=r*b.fontMatrix[3])}var a=n.Util.transform(b.ctm,n.Util.transform(b.textMatrix,t));_.transform=a,e.vertical?(_.width=Math.sqrt(a[0]*a[0]+a[1]*a[1]),_.height=0,_.vertical=!0):(_.width=0,_.height=Math.sqrt(a[2]*a[2]+a[3]*a[3]),_.vertical=!1);var i=b.textLineMatrix[0],o=b.textLineMatrix[1],s=Math.sqrt(i*i+o*o);i=b.ctm[0],o=b.ctm[1];var l=Math.sqrt(i*i+o*o);_.textAdvanceScale=l*s,_.lastAdvanceWidth=0,_.lastAdvanceHeight=0;var c=e.spaceWidth/1e3*b.fontSize;return c?(_.spaceWidth=c,_.fakeSpaceMin=c*k,_.fakeMultiSpaceMin=c*x,_.fakeMultiSpaceMax=c*S,_.textRunBreakAllowed=!e.isMonospace):(_.spaceWidth=0,_.fakeSpaceMin=1/0,_.fakeMultiSpaceMin=1/0,_.fakeMultiSpaceMax=0,_.textRunBreakAllowed=!1),_.initialized=!0,_}function D(e){var t,r=0,n=e.length;while(r<n&&(t=e.charCodeAt(r))>=32&&t<=127)r++;return r<n?e.replace(y," "):e}function N(e){var t=e.str.join(""),r=(0,p.bidi)(t,-1,e.vertical);return{str:d?D(r.str):r.str,dir:r.dir,width:e.width,height:e.height,transform:e.transform,fontName:e.fontName}}function B(e,t){return A.loadFont(e,t,o).then((function(e){b.font=e.font,b.fontMatrix=e.font.fontMatrix||n.FONT_IDENTITY_MATRIX}))}function U(e){for(var t=b.font,r=M(),n=0,a=0,i=t.charsToGlyphs(e),o=0;o<i.length;o++){var s=i[o],l=null;l=t.vertical&&s.vmetric?s.vmetric[0]:s.width;var u=s.unicode,d=(0,c.getNormalizedUnicodes)();void 0!==d[u]&&(u=d[u]),u=(0,c.reverseIfRtl)(u);var h=b.charSpacing;if(s.isSpace){var f=b.wordSpacing;h+=f,f>0&&j(f,r.str)}var p=0,g=0;if(t.vertical){var v=l*b.fontMatrix[0];g=v*b.fontSize+h,a+=g}else{var m=l*b.fontMatrix[0];p=(m*b.fontSize+h)*b.textHScale,n+=p}b.translateTextMatrix(p,g),r.str.push(u)}return t.vertical?(r.lastAdvanceHeight=a,r.height+=Math.abs(a)):(r.lastAdvanceWidth=n,r.width+=n),r}function j(e,t){if(!(e<_.fakeSpaceMin))if(e<_.fakeMultiSpaceMin)t.push(" ");else{var r=Math.round(e/_.spaceWidth);while(r-- >0)t.push(" ")}}function q(){_.initialized&&(_.vertical?_.height*=_.textAdvanceScale:_.width*=_.textAdvanceScale,w.items.push(N(_)),_.initialized=!1,_.str.length=0)}function z(){var e=w.items.length;e>0&&(g.enqueue(w,e),w.items=[],w.styles=Object.create(null))}var V=new C;return new Promise((function e(t,r){var s=function(n){z(),Promise.all([n,g.ready]).then((function(){try{e(t,r)}catch(n){r(n)}}),r)};a.ensureNotTerminated(),V.reset();var c,u={},h=[];while(!(c=V.check())){if(h.length=0,u.args=h,!F.read(u))break;b=l.state;var p,v,y=u.fn;switch(h=u.args,0|y){case n.OPS.setFont:var k=h[0].name,x=h[1];if(b.font&&k===b.fontName&&x===b.fontSize)break;return q(),b.fontName=k,b.fontSize=x,void s(B(k,null));case n.OPS.setTextRise:q(),b.textRise=h[0];break;case n.OPS.setHScale:q(),b.textHScale=h[0]/100;break;case n.OPS.setLeading:q(),b.leading=h[0];break;case n.OPS.moveText:var S=!!b.font&&0===(b.font.vertical?h[0]:h[1]);if(p=h[0]-h[1],f&&S&&_.initialized&&p>0&&p<=_.fakeMultiSpaceMax){b.translateTextLineMatrix(h[0],h[1]),_.width+=h[0]-_.lastAdvanceWidth,_.height+=h[1]-_.lastAdvanceHeight,v=h[0]-_.lastAdvanceWidth-(h[1]-_.lastAdvanceHeight),j(v,_.str);break}q(),b.translateTextLineMatrix(h[0],h[1]),b.textMatrix=b.textLineMatrix.slice();break;case n.OPS.setLeadingMoveText:q(),b.leading=-h[1],b.translateTextLineMatrix(h[0],h[1]),b.textMatrix=b.textLineMatrix.slice();break;case n.OPS.nextLine:q(),b.carriageReturn();break;case n.OPS.setTextMatrix:if(p=b.calcTextLineMatrixAdvance(h[0],h[1],h[2],h[3],h[4],h[5]),f&&null!==p&&_.initialized&&p.value>0&&p.value<=_.fakeMultiSpaceMax){b.translateTextLineMatrix(p.width,p.height),_.width+=p.width-_.lastAdvanceWidth,_.height+=p.height-_.lastAdvanceHeight,v=p.width-_.lastAdvanceWidth-(p.height-_.lastAdvanceHeight),j(v,_.str);break}q(),b.setTextMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),b.setTextLineMatrix(h[0],h[1],h[2],h[3],h[4],h[5]);break;case n.OPS.setCharSpacing:b.charSpacing=h[0];break;case n.OPS.setWordSpacing:b.wordSpacing=h[0];break;case n.OPS.beginText:q(),b.textMatrix=n.IDENTITY_MATRIX.slice(),b.textLineMatrix=n.IDENTITY_MATRIX.slice();break;case n.OPS.showSpacedText:if(!l.state.font){A.ensureStateFont(l.state);continue}for(var C,P=h[0],E=0,I=P.length;E<I;E++)if("string"===typeof P[E])U(P[E]);else if((0,n.isNum)(P[E])){M(),p=P[E]*b.fontSize/1e3;var D=!1;b.font.vertical?(C=p,b.translateTextMatrix(0,C),D=_.textRunBreakAllowed&&p>_.fakeMultiSpaceMax,D||(_.height+=C)):(p=-p,C=p*b.textHScale,b.translateTextMatrix(C,0),D=_.textRunBreakAllowed&&p>_.fakeMultiSpaceMax,D||(_.width+=C)),D?q():p>0&&j(p,_.str)}break;case n.OPS.showText:if(!l.state.font){A.ensureStateFont(l.state);continue}U(h[0]);break;case n.OPS.nextLineShowText:if(!l.state.font){A.ensureStateFont(l.state);continue}q(),b.carriageReturn(),U(h[0]);break;case n.OPS.nextLineSetSpacingShowText:if(!l.state.font){A.ensureStateFont(l.state);continue}q(),b.wordSpacing=h[0],b.charSpacing=h[1],b.carriageReturn(),U(h[2]);break;case n.OPS.paintXObject:q(),R||(R=o.get("XObject")||i.Dict.empty);var N=h[0].name;if(N&&void 0!==O[N])break;return void s(new Promise((function(e,t){if(!N)throw new n.FormatError("XObject must be referred to by name.");var r=R.get(N);if(r){if(!(0,i.isStream)(r))throw new n.FormatError("XObject should be a stream");var s=r.dict.get("Subtype");if(!(0,i.isName)(s))throw new n.FormatError("XObject should have a Name subtype");if("Form"!==s.name)return O[N]=!0,void e();var c=l.state.clone(),u=new T(c),h=r.dict.getArray("Matrix");Array.isArray(h)&&6===h.length&&u.transform(h),z();var p={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,g.enqueue(e,t)},get desiredSize(){return g.desiredSize},get ready(){return g.ready}};A.getTextContent({stream:r,task:a,resources:r.dict.get("Resources")||o,stateManager:u,normalizeWhitespace:d,combineTextItems:f,sink:p,seenStyles:m}).then((function(){p.enqueueInvoked||(O[N]=!0),e()}),t)}else e()})).catch((function(e){if(!(e instanceof n.AbortException)){if(!A.options.ignoreErrors)throw e;(0,n.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case n.OPS.setGState:q();var W=h[0],H=o.get("ExtGState");if(!(0,i.isDict)(H)||!(0,i.isName)(W))break;var G=H.get(W.name);if(!(0,i.isDict)(G))break;var Y=G.get("Font");if(Y)return b.fontName=null,b.fontSize=Y[1],void s(B(null,Y[0]));break}if(w.items.length>=g.desiredSize){c=!0;break}}c?s(L):(q(),z(),t())})).catch((function(e){if(!(e instanceof n.AbortException)){if(t.options.ignoreErrors)return(0,n.warn)('getTextContent - ignoring errors during "'.concat(a.name,'" ')+'task: "'.concat(e,'".')),q(),void z();throw e}}))},extractDataStructures:function(e,t,r){var a,l=this,c=this.xref,u=e.get("ToUnicode")||t.get("ToUnicode"),d=u?this.readToUnicode(u):Promise.resolve(void 0);if(r.composite){var h=e.get("CIDSystemInfo");(0,i.isDict)(h)&&(r.cidSystemInfo={registry:(0,n.stringToPDFString)(h.get("Registry")),ordering:(0,n.stringToPDFString)(h.get("Ordering")),supplement:h.get("Supplement")});var f=e.get("CIDToGIDMap");(0,i.isStream)(f)&&(a=f.getBytes())}var p,g=[],v=null;if(e.has("Encoding")){if(p=e.get("Encoding"),(0,i.isDict)(p)){if(v=p.get("BaseEncoding"),v=(0,i.isName)(v)?v.name:null,p.has("Differences"))for(var m=p.get("Differences"),b=0,y=0,w=m.length;y<w;y++){var _=c.fetchIfRef(m[y]);if((0,n.isNum)(_))b=_;else{if(!(0,i.isName)(_))throw new n.FormatError("Invalid entry in 'Differences' array: ".concat(_));g[b++]=_.name}}}else{if(!(0,i.isName)(p))throw new n.FormatError("Encoding is not a Name nor a Dict");v=p.name}"MacRomanEncoding"!==v&&"MacExpertEncoding"!==v&&"WinAnsiEncoding"!==v&&(v=null)}if(v)r.defaultEncoding=(0,s.getEncoding)(v).slice();else{var k=!!(r.flags&o.FontFlags.Symbolic),x=!!(r.flags&o.FontFlags.Nonsymbolic);p=s.StandardEncoding,"TrueType"!==r.type||x||(p=s.WinAnsiEncoding),k&&(p=s.MacRomanEncoding,r.file||(/Symbol/i.test(r.name)?p=s.SymbolSetEncoding:/Dingbats|Wingdings/i.test(r.name)&&(p=s.ZapfDingbatsEncoding))),r.defaultEncoding=p}return r.differences=g,r.baseEncodingName=v,r.hasEncoding=!!v||g.length>0,r.dict=e,d.then((function(e){return r.toUnicode=e,l.buildToUnicode(r)})).then((function(e){return r.toUnicode=e,a&&(r.cidToGidMap=l.readCidToGidMap(a,e)),r}))},_buildSimpleFontToUnicode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,n.assert)(!e.composite,"Must be a simple font.");var r=[],a=e.defaultEncoding.slice(),i=e.baseEncodingName,l=e.differences;for(var u in l){var d=l[u];".notdef"!==d&&(a[u]=d)}var h=(0,m.getGlyphsUnicode)();for(var f in a){var p=a[f];if(""!==p)if(void 0!==h[p])r[f]=String.fromCharCode(h[p]);else{var g=0;switch(p[0]){case"G":3===p.length&&(g=parseInt(p.substring(1),16));break;case"g":5===p.length&&(g=parseInt(p.substring(1),16));break;case"C":case"c":if(p.length>=3&&p.length<=4){var v=p.substring(1);if(t){g=parseInt(v,16);break}if(g=+v,Number.isNaN(g)&&Number.isInteger(parseInt(v,16)))return this._buildSimpleFontToUnicode(e,!0)}break;default:var b=(0,c.getUnicodeForGlyph)(p,h);-1!==b&&(g=b)}if(g>0&&Number.isInteger(g)){if(i&&g===+f){var y=(0,s.getEncoding)(i);if(y&&(p=y[f])){r[f]=String.fromCharCode(h[p]);continue}}r[f]=String.fromCodePoint(g)}}}return new o.ToUnicodeMap(r)},buildToUnicode:function(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._buildSimpleFontToUnicode(e)),Promise.resolve(e.toUnicode);if(!e.composite)return Promise.resolve(this._buildSimpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof a.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,s=i.Name.get(t+"-"+r+"-UCS2");return a.CMapFactory.create({encoding:s,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(t){var r=e.cMap,a=[];return r.forEach((function(e,r){if(r>65535)throw new n.FormatError("Max size of CID is 65,535");var i=t.lookup(r);i&&(a[e]=String.fromCharCode((i.charCodeAt(0)<<8)+i.charCodeAt(1)))})),new o.ToUnicodeMap(a)}))}return Promise.resolve(new o.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=this,r=e;return(0,i.isName)(r)?a.CMapFactory.create({encoding:r,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){return e instanceof a.IdentityCMap?new o.IdentityToUnicodeMap(0,65535):new o.ToUnicodeMap(e.getMap())})):(0,i.isStream)(r)?a.CMapFactory.create({encoding:r,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){if(e instanceof a.IdentityCMap)return new o.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 o.ToUnicodeMap(t)}),(function(e){if(e instanceof n.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.font}),(0,n.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(e,'".')),null;throw e})):Promise.resolve(null)},readCidToGidMap: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},extractWidths:function(e,t,r){var n,a,s,l,c,u,d,h,f=this.xref,p=[],g=0,v=[];if(r.composite){if(g=e.has("DW")?e.get("DW"):1e3,h=e.get("W"),h)for(a=0,s=h.length;a<s;a++)if(u=f.fetchIfRef(h[a++]),d=f.fetchIfRef(h[a]),Array.isArray(d))for(l=0,c=d.length;l<c;l++)p[u++]=f.fetchIfRef(d[l]);else{var m=f.fetchIfRef(h[++a]);for(l=u;l<=d;l++)p[l]=m}if(r.vertical){var b=e.getArray("DW2")||[880,-1e3];if(n=[b[1],.5*g,b[0]],b=e.get("W2"),b)for(a=0,s=b.length;a<s;a++)if(u=f.fetchIfRef(b[a++]),d=f.fetchIfRef(b[a]),Array.isArray(d))for(l=0,c=d.length;l<c;l++)v[u++]=[f.fetchIfRef(d[l++]),f.fetchIfRef(d[l++]),f.fetchIfRef(d[l])];else{var y=[f.fetchIfRef(b[++a]),f.fetchIfRef(b[++a]),f.fetchIfRef(b[++a])];for(l=u;l<=d;l++)v[l]=y}}}else{var w=r.firstChar;if(h=e.get("Widths"),h){for(l=w,a=0,s=h.length;a<s;a++)p[l++]=f.fetchIfRef(h[a]);g=parseFloat(t.get("MissingWidth"))||0}else{var _=e.get("BaseFont");if((0,i.isName)(_)){var k=this.getBaseFontMetrics(_.name);p=this.buildCharCodeToWidth(k.widths,r),g=k.defaultWidth}}}var x=!0,S=g;for(var A in p){var C=p[A];if(C)if(S){if(S!==C){x=!1;break}}else S=C}x&&(r.flags|=o.FontFlags.FixedPitch),r.defaultWidth=g,r.widths=p,r.defaultVMetrics=n,r.vmetrics=v},isSerifFont:function(e){var t=e.split("-")[0];return t in(0,u.getSerifFonts)()||-1!==t.search(/serif/gi)},getBaseFontMetrics:function(e){var t=0,r=[],a=!1,i=(0,u.getStdFontMap)(),o=i[e]||e,s=(0,y.getMetrics)();o in s||(o=this.isSerifFont(e)?"Times-Roman":"Helvetica");var l=s[o];return(0,n.isNum)(l)?(t=l,a=!0):r=l(),{defaultWidth:t,monospace:a,widths:r}},buildCharCodeToWidth: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},preEvaluateFont:function(e){var t=e,r=e.get("Subtype");if(!(0,i.isName)(r))throw new n.FormatError("invalid font Subtype");var a,o=!1;if("Type0"===r.name){var s=e.get("DescendantFonts");if(!s)throw new n.FormatError("Descendant fonts are not specified");if(e=Array.isArray(s)?this.xref.fetchIfRef(s[0]):s,r=e.get("Subtype"),!(0,i.isName)(r))throw new n.FormatError("invalid font Subtype");o=!0}var l=e.get("FontDescriptor");if(l){var c=new k.MurmurHash3_64,u=t.getRaw("Encoding");if((0,i.isName)(u))c.update(u.name);else if((0,i.isRef)(u))c.update(u.toString());else if((0,i.isDict)(u))for(var d=u.getKeys(),h=0,f=d.length;h<f;h++){var p=u.getRaw(d[h]);if((0,i.isName)(p))c.update(p.name);else if((0,i.isRef)(p))c.update(p.toString());else if(Array.isArray(p)){for(var g=p.length,v=new Array(g),m=0;m<g;m++){var b=p[m];(0,i.isName)(b)?v[m]=b.name:((0,n.isNum)(b)||(0,i.isRef)(b))&&(v[m]=b.toString())}c.update(v.join())}}var y=e.get("FirstChar")||0,w=e.get("LastChar")||(o?65535:255);c.update("".concat(y,"-").concat(w));var _=e.get("ToUnicode")||t.get("ToUnicode");if((0,i.isStream)(_)){var x=_.str||_;a=x.buffer?new Uint8Array(x.buffer.buffer,0,x.bufferLength):new Uint8Array(x.bytes.buffer,x.start,x.end-x.start),c.update(a)}else(0,i.isName)(_)&&c.update(_.name);var S=e.get("Widths")||t.get("Widths");S&&(a=new Uint8Array(new Uint32Array(S).buffer),c.update(a))}return{descriptor:l,dict:e,baseDict:t,composite:o,type:r.name,hash:c?c.hexdigest():""}},translateFont:function(e){var t,r=this,s=e.baseDict,l=e.dict,c=e.composite,d=e.descriptor,h=e.type,f=c?65535:255,p=l.get("FirstChar")||0,g=l.get("LastChar")||f;if(!d){if("Type3"!==h){var v=l.get("BaseFont");if(!(0,i.isName)(v))throw new n.FormatError("Base font is not specified");v=v.name.replace(/[,_]/g,"-");var m=this.getBaseFontMetrics(v),b=v.split("-")[0],y=(this.isSerifFont(b)?o.FontFlags.Serif:0)|(m.monospace?o.FontFlags.FixedPitch:0)|((0,u.getSymbolsFonts)()[b]?o.FontFlags.Symbolic:o.FontFlags.Nonsymbolic);t={type:h,name:v,widths:m.widths,defaultWidth:m.defaultWidth,flags:y,firstChar:p,lastChar:g};var w=l.get("Widths");return this.extractDataStructures(l,l,t).then((function(e){if(w){for(var t=[],n=p,a=0,i=w.length;a<i;a++)t[n++]=r.xref.fetchIfRef(w[a]);e.widths=t}else e.widths=r.buildCharCodeToWidth(m.widths,e);return new o.Font(v,null,e)}))}d=new i.Dict(null),d.set("FontName",i.Name.get(h)),d.set("FontBBox",l.getArray("FontBBox")||[0,0,0,0])}var _=d.get("FontName"),k=l.get("BaseFont");if((0,n.isString)(_)&&(_=i.Name.get(_)),(0,n.isString)(k)&&(k=i.Name.get(k)),"Type3"!==h){var x=_&&_.name,S=k&&k.name;x!==S&&((0,n.info)("The FontDescriptor's FontName is \"".concat(x,'" but ')+"should be the same as the Font's BaseFont \"".concat(S,'".')),x&&S&&S.startsWith(x)&&(_=k))}if(_=_||k,!(0,i.isName)(_))throw new n.FormatError("invalid font name");var A,C=d.get("FontFile","FontFile2","FontFile3");if(C&&C.dict){var P=C.dict.get("Subtype");P&&(P=P.name);var T=C.dict.get("Length1"),E=C.dict.get("Length2"),R=C.dict.get("Length3")}if(t={type:h,name:_.name,subtype:P,file:C,length1:T,length2:E,length3:R,loadedName:s.loadedName,composite:c,wideChars:c,fixedPitch:!1,fontMatrix:l.getArray("FontMatrix")||n.FONT_IDENTITY_MATRIX,firstChar:p||0,lastChar:g||f,bbox:d.getArray("FontBBox"),ascent:d.get("Ascent"),descent:d.get("Descent"),xHeight:d.get("XHeight"),capHeight:d.get("CapHeight"),flags:d.get("Flags"),italicAngle:d.get("ItalicAngle"),isType3Font:!1},c){var I=s.get("Encoding");(0,i.isName)(I)&&(t.cidEncoding=I.name),A=a.CMapFactory.create({encoding:I,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){t.cMap=e,t.vertical=t.cMap.vertical}))}else A=Promise.resolve(void 0);return A.then((function(){return r.extractDataStructures(l,s,t)})).then((function(e){return r.extractWidths(l,d,e),"Type3"===h&&(e.isType3Font=!0),new o.Font(_.name,C,e)}))}},t.buildFontPaths=function(e,t,r){function n(t){e.renderer.hasBuiltPath(t)||r.send("commonobj",["".concat(e.loadedName,"_path_").concat(t),"FontPath",e.renderer.getPathJs(t)])}var a,i=d(t);try{for(i.s();!(a=i.n()).done;){var o=a.value;n(o.fontChar);var s=o.accent;s&&s.fontChar&&n(s.fontChar)}}catch(l){i.e(l)}finally{i.f()}},t.getFallbackFontDict=function(){if(this._fallbackFontDict)return this._fallbackFontDict;var e=new i.Dict;return e.set("BaseFont",i.Name.get("PDFJS-FallbackFont")),e.set("Type",i.Name.get("FallbackType")),e.set("Subtype",i.Name.get("FallbackType")),e.set("Encoding",i.Name.get("WinAnsiEncoding")),this._fallbackFontDict=e},t}();t.PartialEvaluator=C;var P=function(){function e(e,t,r){this.loadedName=e,this.font=t,this.dict=r,this.type3Loaded=null,this.sent=!1}return e.prototype={send:function(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData()]))},fallback:function(e){if(this.font.data){this.font.disableFontFace=!0;var t=this.font.glyphCacheValues;C.buildFontPaths(this.font,t,e)}},loadType3Data:function(e,t,r,a){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");if(this.type3Loaded)return this.type3Loaded;var i=Object.create(e.options);i.ignoreErrors=!1,i.nativeImageDecoderSupport=n.NativeImageDecoding.NONE;var o=e.clone(i);o.parsingType3Font=!0;for(var s=this.font,l=Promise.resolve(),c=this.dict.get("CharProcs"),u=this.dict.get("Resources")||t,d=c.getKeys(),h=Object.create(null),f=function(){var e=d[p];l=l.then((function(){var t=c.get(e),i=new S.OperatorList;return o.getOperatorList({stream:t,task:a,resources:u,operatorList:i}).then((function(){h[e]=i.getIR(),r.addDependencies(i.dependencies)})).catch((function(t){(0,n.warn)('Type3 font resource "'.concat(e,'" is not available.'));var r=new S.OperatorList;h[e]=r.getIR()}))}))},p=0,g=d.length;p<g;++p)f();return this.type3Loaded=l.then((function(){s.charProcOperatorList=h})),this.type3Loaded}},e}(),T=function(){function e(e){this.state=e,this.stateStack=[]}return e.prototype={save:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()},restore:function(){var e=this.stateStack.pop();e&&(this.state=e)},transform:function(e){this.state.ctm=n.Util.transform(this.state.ctm,e)}},e}(),E=function(){function e(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.textMatrix=n.IDENTITY_MATRIX.slice(),this.textLineMatrix=n.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return e.prototype={setTextMatrix: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},setTextLineMatrix: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},translateTextMatrix: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]},translateTextLineMatrix: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]},calcTextLineMatrixAdvance:function(e,t,r,n,a,i){var o=this.font;if(!o)return null;var s=this.textLineMatrix;if(e!==s[0]||t!==s[1]||r!==s[2]||n!==s[3])return null;var l=a-s[4],c=i-s[5];if(o.vertical&&0!==l||!o.vertical&&0!==c)return null;var u,d,h=e*n-t*r;return o.vertical?(u=-c*r/h,d=c*e/h):(u=l*n/h,d=-l*t/h),{width:u,height:d,value:o.vertical?d:u}},calcRenderMatrix:function(e){var t=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return n.Util.transform(e,n.Util.transform(this.textMatrix,t))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()},clone:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}},e}(),R=function(){function e(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=n.TextRenderingMode.FILL,this.fillColorSpace=g.ColorSpace.singletons.gray,this.strokeColorSpace=g.ColorSpace.singletons.gray}return e.prototype={clone:function(){return Object.create(this)}},e}(),I=function(){var e=(0,l.getLookupTableFactory)((function(e){e["w"]={id:n.OPS.setLineWidth,numArgs:1,variableArgs:!1},e["J"]={id:n.OPS.setLineCap,numArgs:1,variableArgs:!1},e["j"]={id:n.OPS.setLineJoin,numArgs:1,variableArgs:!1},e["M"]={id:n.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e["d"]={id:n.OPS.setDash,numArgs:2,variableArgs:!1},e["ri"]={id:n.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e["i"]={id:n.OPS.setFlatness,numArgs:1,variableArgs:!1},e["gs"]={id:n.OPS.setGState,numArgs:1,variableArgs:!1},e["q"]={id:n.OPS.save,numArgs:0,variableArgs:!1},e["Q"]={id:n.OPS.restore,numArgs:0,variableArgs:!1},e["cm"]={id:n.OPS.transform,numArgs:6,variableArgs:!1},e["m"]={id:n.OPS.moveTo,numArgs:2,variableArgs:!1},e["l"]={id:n.OPS.lineTo,numArgs:2,variableArgs:!1},e["c"]={id:n.OPS.curveTo,numArgs:6,variableArgs:!1},e["v"]={id:n.OPS.curveTo2,numArgs:4,variableArgs:!1},e["y"]={id:n.OPS.curveTo3,numArgs:4,variableArgs:!1},e["h"]={id:n.OPS.closePath,numArgs:0,variableArgs:!1},e["re"]={id:n.OPS.rectangle,numArgs:4,variableArgs:!1},e["S"]={id:n.OPS.stroke,numArgs:0,variableArgs:!1},e["s"]={id:n.OPS.closeStroke,numArgs:0,variableArgs:!1},e["f"]={id:n.OPS.fill,numArgs:0,variableArgs:!1},e["F"]={id:n.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:n.OPS.eoFill,numArgs:0,variableArgs:!1},e["B"]={id:n.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:n.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e["b"]={id:n.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:n.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e["n"]={id:n.OPS.endPath,numArgs:0,variableArgs:!1},e["W"]={id:n.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:n.OPS.eoClip,numArgs:0,variableArgs:!1},e["BT"]={id:n.OPS.beginText,numArgs:0,variableArgs:!1},e["ET"]={id:n.OPS.endText,numArgs:0,variableArgs:!1},e["Tc"]={id:n.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e["Tw"]={id:n.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e["Tz"]={id:n.OPS.setHScale,numArgs:1,variableArgs:!1},e["TL"]={id:n.OPS.setLeading,numArgs:1,variableArgs:!1},e["Tf"]={id:n.OPS.setFont,numArgs:2,variableArgs:!1},e["Tr"]={id:n.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e["Ts"]={id:n.OPS.setTextRise,numArgs:1,variableArgs:!1},e["Td"]={id:n.OPS.moveText,numArgs:2,variableArgs:!1},e["TD"]={id:n.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e["Tm"]={id:n.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:n.OPS.nextLine,numArgs:0,variableArgs:!1},e["Tj"]={id:n.OPS.showText,numArgs:1,variableArgs:!1},e["TJ"]={id:n.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:n.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:n.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e["d0"]={id:n.OPS.setCharWidth,numArgs:2,variableArgs:!1},e["d1"]={id:n.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e["CS"]={id:n.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e["cs"]={id:n.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e["SC"]={id:n.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e["SCN"]={id:n.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e["sc"]={id:n.OPS.setFillColor,numArgs:4,variableArgs:!0},e["scn"]={id:n.OPS.setFillColorN,numArgs:33,variableArgs:!0},e["G"]={id:n.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e["g"]={id:n.OPS.setFillGray,numArgs:1,variableArgs:!1},e["RG"]={id:n.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e["rg"]={id:n.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e["K"]={id:n.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e["k"]={id:n.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e["sh"]={id:n.OPS.shadingFill,numArgs:1,variableArgs:!1},e["BI"]={id:n.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e["ID"]={id:n.OPS.beginImageData,numArgs:0,variableArgs:!1},e["EI"]={id:n.OPS.endInlineImage,numArgs:1,variableArgs:!1},e["Do"]={id:n.OPS.paintXObject,numArgs:1,variableArgs:!1},e["MP"]={id:n.OPS.markPoint,numArgs:1,variableArgs:!1},e["DP"]={id:n.OPS.markPointProps,numArgs:2,variableArgs:!1},e["BMC"]={id:n.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e["BDC"]={id:n.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e["EMC"]={id:n.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e["BX"]={id:n.OPS.beginCompat,numArgs:0,variableArgs:!1},e["EX"]={id:n.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})),t=20;function r(t,r,n){this.opMap=e(),this.parser=new f.Parser({lexer:new f.Lexer(t,this.opMap),xref:r}),this.stateManager=n,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return r.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(e){var r=e.args;while(1){var a=this.parser.getObj();if(a instanceof i.Cmd){var o=a.cmd,s=this.opMap[o];if(!s){(0,n.warn)('Unknown command "'.concat(o,'".'));continue}var l=s.id,c=s.numArgs,u=null!==r?r.length:0;if(s.variableArgs)u>c&&(0,n.info)("Command ".concat(o,": expected [0, ").concat(c,"] args, ")+"but received ".concat(u," args."));else{if(u!==c){var d=this.nonProcessedArgs;while(u>c)d.push(r.shift()),u--;while(u<c&&0!==d.length)null===r&&(r=[]),r.unshift(d.pop()),u++}if(u<c){var h="command ".concat(o,": expected ").concat(c," args, ")+"but received ".concat(u," args.");if(l>=n.OPS.moveTo&&l<=n.OPS.endPath&&++this._numInvalidPathOPS>t)throw new n.FormatError("Invalid ".concat(h));(0,n.warn)("Skipping ".concat(h)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(l,r),e.fn=l,e.args=r,!0}if(a===i.EOF)return!1;if(null!==a&&(null===r&&(r=[]),r.push(a),r.length>33))throw new n.FormatError("Too many arguments")}},preprocessCommand:function(e,t){switch(0|e){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(t);break}}},r}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var n=r(2),a=r(4),i=r(10),o=r(7),s=r(11),l=["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"],c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}return f(e,[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){while(e<=t)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){var n=r.length-1;while(e<=t)this._map[e++]=r,r=r.substring(0,n)+String.fromCharCode(r.charCodeAt(n)+1)}},{key:"mapBfRangeToArray",value:function(e,t,r){var n=r.length,a=0;while(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],l=0,c=s.length;l<c;){var u=s[l++],d=s[l++];if(n>=u&&n<=d)return r.charcode=n,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}]),e}();t.CMap=c;var u=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this),a.vertical=e,a.addCodespaceRange(n,0,65535),a}return f(r,[{key:"mapCidRange",value:function(e,t,r){(0,n.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){(0,n.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){(0,n.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,n.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,n.unreachable)("should not access .isIdentityCMap")}}]),r}(c);t.IdentityCMap=u;var d=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 a(e,t){for(var r=1,n=t;n>=0&&r>0;n--)r+=e[n],e[n]=255&r,r>>=8}var i=16,o=19;function s(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(o)}function l(n,o,l){return new Promise((function(c,u){var d=new s(n),h=d.readByte();o.vertical=!!(1&h);var f,p,g=null,v=new Uint8Array(i),m=new Uint8Array(i),b=new Uint8Array(i),y=new Uint8Array(i),w=new Uint8Array(i);while((p=d.readByte())>=0){var _=p>>5;if(7!==_){var k=!!(16&p),x=15&p;if(x+1>i)throw new Error("processBinaryCMap: Invalid dataSize.");var S,A=1,C=d.readNumber();switch(_){case 0:for(d.readHex(v,x),d.readHexNumber(m,x),r(m,v,x),o.addCodespaceRange(x+1,e(v,x),e(m,x)),S=1;S<C;S++)a(m,x),d.readHexNumber(v,x),r(v,m,x),d.readHexNumber(m,x),r(m,v,x),o.addCodespaceRange(x+1,e(v,x),e(m,x));break;case 1:for(d.readHex(v,x),d.readHexNumber(m,x),r(m,v,x),d.readNumber(),S=1;S<C;S++)a(m,x),d.readHexNumber(v,x),r(v,m,x),d.readHexNumber(m,x),r(m,v,x),d.readNumber();break;case 2:for(d.readHex(b,x),f=d.readNumber(),o.mapOne(e(b,x),f),S=1;S<C;S++)a(b,x),k||(d.readHexNumber(w,x),r(b,w,x)),f=d.readSigned()+(f+1),o.mapOne(e(b,x),f);break;case 3:for(d.readHex(v,x),d.readHexNumber(m,x),r(m,v,x),f=d.readNumber(),o.mapCidRange(e(v,x),e(m,x),f),S=1;S<C;S++)a(m,x),k?v.set(m):(d.readHexNumber(v,x),r(v,m,x)),d.readHexNumber(m,x),r(m,v,x),f=d.readNumber(),o.mapCidRange(e(v,x),e(m,x),f);break;case 4:for(d.readHex(b,A),d.readHex(y,x),o.mapOne(e(b,A),t(y,x)),S=1;S<C;S++)a(b,A),k||(d.readHexNumber(w,A),r(b,w,A)),a(y,x),d.readHexSigned(w,x),r(y,w,x),o.mapOne(e(b,A),t(y,x));break;case 5:for(d.readHex(v,A),d.readHexNumber(m,A),r(m,v,A),d.readHex(y,x),o.mapBfRange(e(v,A),e(m,A),t(y,x)),S=1;S<C;S++)a(m,A),k?v.set(m):(d.readHexNumber(v,A),r(v,m,A)),d.readHexNumber(m,A),r(m,v,A),d.readHex(y,x),o.mapBfRange(e(v,A),e(m,A),t(y,x));break;default:return void u(new Error("processBinaryCMap: Unknown type: "+_))}}else switch(31&p){case 0:d.readString();break;case 1:g=d.readString();break}}c(g?l(g):o)}))}function c(){}return s.prototype={readByte:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new n.FormatError("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t},readSigned:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber:function(e,t){var r,a=this.tmpBuf,i=0;do{var o=this.readByte();if(o<0)throw new n.FormatError("unexpected EOF in bcmap");r=!(128&o),a[i++]=127&o}while(!r);var s=t,l=0,c=0;while(s>=0){while(c<8&&a.length>0)l=a[--i]<<c|l,c+=7;e[s]=255&l,s--,l>>=8,c-=8}},readHexSigned: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},readString:function(){for(var e=this.readNumber(),t="",r=0;r<e;r++)t+=String.fromCharCode(this.readNumber());return t}},c.prototype={process:l},c}(),h=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,n.isString)(e))throw new n.FormatError("Malformed CMap: expected string.")}function r(e){if(!Number.isInteger(e))throw new n.FormatError("Malformed CMap: expected int.")}function h(r,n){while(1){var i=n.getObj();if((0,a.isEOF)(i))break;if((0,a.isCmd)(i,"endbfchar"))return;t(i);var o=e(i);i=n.getObj(),t(i);var s=i;r.mapOne(o,s)}}function f(r,i){while(1){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endbfrange"))return;t(o);var s=e(o);o=i.getObj(),t(o);var l=e(o);if(o=i.getObj(),Number.isInteger(o)||(0,n.isString)(o)){var c=Number.isInteger(o)?String.fromCharCode(o):o;r.mapBfRange(s,l,c)}else{if(!(0,a.isCmd)(o,"["))break;o=i.getObj();var u=[];while(!(0,a.isCmd)(o,"]")&&!(0,a.isEOF)(o))u.push(o),o=i.getObj();r.mapBfRangeToArray(s,l,u)}}throw new n.FormatError("Invalid bf range.")}function p(n,i){while(1){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endcidchar"))return;t(o);var s=e(o);o=i.getObj(),r(o);var l=o;n.mapOne(s,l)}}function g(n,i){while(1){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endcidrange"))return;t(o);var s=e(o);o=i.getObj(),t(o);var l=e(o);o=i.getObj(),r(o);var c=o;n.mapCidRange(s,l,c)}}function v(t,r){while(1){var i=r.getObj();if((0,a.isEOF)(i))break;if((0,a.isCmd)(i,"endcodespacerange"))return;if(!(0,n.isString)(i))break;var o=e(i);if(i=r.getObj(),!(0,n.isString)(i))break;var s=e(i);t.addCodespaceRange(i.length,o,s)}throw new n.FormatError("Invalid codespace range.")}function m(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function y(e,t){var r=t.getObj();(0,a.isName)(r)&&(0,n.isString)(r.name)&&(e.name=r.name)}function w(e,t,r,i){var s,l;e:while(1)try{var c=t.getObj();if((0,a.isEOF)(c))break;if((0,a.isName)(c))"WMode"===c.name?m(e,t):"CMapName"===c.name&&y(e,t),s=c;else if((0,a.isCmd)(c))switch(c.cmd){case"endcmap":break e;case"usecmap":(0,a.isName)(s)&&(l=s.name);break;case"begincodespacerange":v(e,t);break;case"beginbfchar":h(e,t);break;case"begincidchar":p(e,t);break;case"beginbfrange":f(e,t);break;case"begincidrange":g(e,t);break}}catch(u){if(u instanceof o.MissingDataException)throw u;(0,n.warn)("Invalid cMap data: "+u);continue}return!i&&l&&(i=l),i?_(e,r,i):Promise.resolve(e)}function _(e,t,r){return k(r,t).then((function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var r=e.useCMap.codespaceRanges,n=0;n<r.length;n++)e.codespaceRanges[n]=r[n].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach((function(t,r){e.contains(t)||e.mapOne(t,e.useCMap.lookup(t))})),e}))}function k(e,t){return"Identity-H"===e?Promise.resolve(new u(!1,2)):"Identity-V"===e?Promise.resolve(new u(!0,2)):l.includes(e)?t?t(e).then((function(e){var r=e.cMapData,a=e.compressionType,o=new c(!0);if(a===n.CMapCompressionType.BINARY)return(new d).process(r,o,(function(e){return _(o,t,e)}));if(a===n.CMapCompressionType.NONE){var l=new i.Lexer(new s.Stream(r));return w(o,l,t,null)}return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported."))})):Promise.reject(new Error("Built-in CMap parameters are not provided.")):Promise.reject(new Error("Unknown CMap name: "+e))}return{create:function(e){return b(regeneratorRuntime.mark((function t(){var r,n,o,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.encoding,n=e.fetchBuiltInCMap,o=e.useCMap,!(0,a.isName)(r)){t.next=7;break}return t.abrupt("return",k(r.name,n));case 7:if(!(0,a.isStream)(r)){t.next=11;break}return s=new c,l=new i.Lexer(r),t.abrupt("return",w(s,l,n,o).then((function(e){return e.isIdentityCMap?k(e.name,n):e})));case 11:throw new Error("Encoding required.");case 12:case"end":return t.stop()}}),t)})))()}}}();t.CMapFactory=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=k,t.IdentityToUnicodeMap=t.ToUnicodeMap=t.FontFlags=t.Font=t.ErrorFont=t.SEAC_ANALYSIS_ENABLED=void 0;var n=r(2),a=r(28),i=r(31),o=r(30),s=r(32),l=r(33),c=r(7),u=r(34),d=r(26),h=r(11),f=r(35),p=[[57344,63743],[1048576,1114109]],g=1e3,v=!0;t.SEAC_ANALYSIS_ENABLED=v;var b={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=b;var y=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function w(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}}function _(e,t){if(!e.hasIncludedToUnicodeMap&&!e.hasEncoding&&t!==e.defaultEncoding&&!(e.toUnicode instanceof C)){var r=[],n=(0,i.getGlyphsUnicode)();for(var a in t){var o=t[a],s=(0,l.getUnicodeForGlyph)(o,n);-1!==s&&(r[a]=String.fromCharCode(s))}e.toUnicode.amend(r)}}function k(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}}function x(e,t){if(void 0!==t[e])return e;var r=(0,l.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}var S=function(){function e(e,t,r,n,a,i,o,s){this.fontChar=e,this.unicode=t,this.accent=r,this.width=n,this.vmetric=a,this.operatorListId=i,this.isSpace=o,this.isInFont=s}return e.prototype.matchesForCache=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}(),A=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=e}return e.prototype={get length(){return this._map.length},forEach:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))},has:function(e){return void 0!==this._map[e]},get:function(e){return this._map[e]},charCodeOf:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1},amend:function(e){for(var t in e)this._map[t]=e[t]}},e}();t.ToUnicodeMap=A;var C=function(){function e(e,t){this.firstChar=e,this.lastChar=t}return e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)},has:function(e){return this.firstChar<=e&&e<=this.lastChar},get:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)},charCodeOf:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend:function(e){(0,n.unreachable)("Should not call amend()")}},e}();t.IdentityToUnicodeMap=C;var P=function(){function e(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function t(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function r(e,t,r){var n,a;if(r instanceof Uint8Array)e.set(r,t);else if("string"===typeof r)for(n=0,a=r.length;n<a;n++)e[t++]=255&r.charCodeAt(n);else for(n=0,a=r.length;n<a;n++)e[t++]=255&r[n]}function a(e){this.sfnt=e,this.tables=Object.create(null)}a.getSearchParams=function(e,t){var r=1,n=0;while((r^e)>r)r<<=1,n++;var a=r*t;return{range:a,entry:n,rangeShift:t*e-a}};var i=12,o=16;return a.prototype={toArray:function(){var s=this.sfnt,l=this.tables,u=Object.keys(l);u.sort();var d,h,f,p,g,v=u.length,m=i+v*o,b=[m];for(d=0;d<v;d++){p=l[u[d]];var y=(p.length+3&-4)>>>0;m+=y,b.push(m)}var w=new Uint8Array(m);for(d=0;d<v;d++)p=l[u[d]],r(w,b[d],p);"true"===s&&(s=(0,n.string32)(65536)),w[0]=255&s.charCodeAt(0),w[1]=255&s.charCodeAt(1),w[2]=255&s.charCodeAt(2),w[3]=255&s.charCodeAt(3),e(w,4,v);var _=a.getSearchParams(v,16);for(e(w,6,_.range),e(w,8,_.entry),e(w,10,_.rangeShift),m=i,d=0;d<v;d++){g=u[d],w[m]=255&g.charCodeAt(0),w[m+1]=255&g.charCodeAt(1),w[m+2]=255&g.charCodeAt(2),w[m+3]=255&g.charCodeAt(3);var k=0;for(h=b[d],f=b[d+1];h<f;h+=4){var x=(0,c.readUint32)(w,h);k=k+x>>>0}t(w,m+4,k),t(w,m+8,b[d]),t(w,m+12,l[g].length),m+=o}return w},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},a}(),T=function(){function e(e,t,r){var a;this.name=e,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.sizes=[],this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(r.flags&b.Serif),this.isSymbolicFont=!!(r.flags&b.Symbolic),this.isMonospace=!!(r.flags&b.FixedPitch);var i=r.type,o=r.subtype;this.type=i,this.subtype=o;var s="sans-serif";if(this.isMonospace?s="monospace":this.isSerifFont&&(s="serif"),this.fallbackName=s,this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.wideChars=r.wideChars,this.cMap=r.cMap,this.ascent=r.ascent/g,this.descent=r.descent/g,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.defaultEncoding=r.defaultEncoding,this.toUnicode=r.toUnicode,this.fallbackToUnicode=r.fallbackToUnicode||new A,this.toFontChar=[],"Type3"!==r.type){if(this.cidEncoding=r.cidEncoding,this.vertical=r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics),!t||t.isEmpty)return t&&(0,n.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont();var l=B(t,r),c=m(l,2);i=c[0],o=c[1],i===this.type&&o===this.subtype||(0,n.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(i,"/").concat(o,"."));try{var u;switch(i){case"MMType1":(0,n.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var d="Type1C"===o||"CIDFontType0C"===o?new O(t,r):new I(e,t,r);w(r),u=this.convert(e,d,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",u=this.checkAndRepair(e,t,r),this.isOpenType&&(w(r),i="OpenType");break;default:throw new n.FormatError("Font ".concat(i," is not supported"))}}catch(h){return(0,n.warn)(h),void this.fallbackToSystemFont()}this.data=u,this.fontType=k(i,o),this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.encoding=r.baseEncoding,this.seacMap=r.seacMap}else{for(a=0;a<256;a++)this.toFontChar[a]=this.differences[a]||r.defaultEncoding[a];this.fontType=n.FontType.TYPE3}}function t(e,t){return(e<<8)+t}function r(e,t,r){e[t+1]=r,e[t]=r>>>8}function f(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function T(e,t,r,n){return(e<<24)+(t<<16)+(r<<8)+n}function E(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 L(e){var t=e.peekBytes(4);return 65536===(0,c.readUint32)(t,0)||"true"===(0,n.bytesToString)(t)}function F(e){var t=e.peekBytes(4);return"ttcf"===(0,n.bytesToString)(t)}function M(e){var t=e.peekBytes(4);return"OTTO"===(0,n.bytesToString)(t)}function D(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}function N(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}function B(e,t){var r,a,i=t.type,o=t.subtype,s=t.composite;return L(e)||F(e)?r=s?"CIDFontType2":"TrueType":M(e)?r=s?"CIDFontType2":"OpenType":D(e)?r=s?"CIDFontType0":"MMType1"===i?"MMType1":"Type1":N(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 U(e,t,r){for(var n,a=[],i=0,o=e.length;i<o;i++)n=(0,l.getUnicodeForGlyph)(e[i],t),-1!==n&&(a[i]=n);for(var s in r)n=(0,l.getUnicodeForGlyph)(r[s],t),-1!==n&&(a[+s]=n);return a}function j(e,t,r){var a=Object.create(null),i=[],o=0,s=p[o][0],l=p[o][1];for(var c in e){c|=0;var u=e[c];if(t(u)){if(s>l){if(o++,o>=p.length){(0,n.warn)("Ran out of space in font private use area.");break}s=p[o][0],l=p[o][1]}var d=s++;0===u&&(u=r),a[d]=u,i[c]=d}}return{toFontChar:i,charCodeToGlyphId:a,nextAvailableFontCharCode:s}}function q(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,l=[r[o].glyphId];++o;var c=s;while(o<i&&c+1===r[o].fontCharCode)if(l.push(r[o].glyphId),++c,++o,65535===c)break;a.push([s,c,l])}return a}function z(e,t){var r,a,i,o,s=q(e,t),l=s[s.length-1][1]>65535?2:1,c="\0\0"+E(l)+"\0\0"+(0,n.string32)(4+8*l);for(r=s.length-1;r>=0;--r)if(s[r][0]<=65535)break;var u=r+1;s[r][0]<65535&&65535===s[r][1]&&(s[r][1]=65534);var d,h,f,p,g=s[r][1]<65535?1:0,v=u+g,m=P.getSearchParams(v,2),b="",y="",w="",_="",k="",x=0;for(r=0,a=u;r<a;r++){d=s[r],h=d[0],f=d[1],b+=E(h),y+=E(f),p=d[2];var S=!0;for(i=1,o=p.length;i<o;++i)if(p[i]!==p[i-1]+1){S=!1;break}if(S){var A=p[0];w+=E(A-h&65535),_+=E(0)}else{var C=2*(v-r)+2*x;for(x+=f-h+1,w+=E(0),_+=E(C),i=0,o=p.length;i<o;++i)k+=E(p[i])}}g>0&&(y+="ÿÿ",b+="ÿÿ",w+="\0",_+="\0\0");var T="\0\0"+E(2*v)+E(m.range)+E(m.entry)+E(m.rangeShift)+y+"\0\0"+b+w+_+k,R="",I="";if(l>1){for(c+="\0\0\n"+(0,n.string32)(4+8*l+4+T.length),R="",r=0,a=s.length;r<a;r++){d=s[r],h=d[0],p=d[2];var O=p[0];for(i=1,o=p.length;i<o;++i)p[i]!==p[i-1]+1&&(f=d[0]+i-1,R+=(0,n.string32)(h)+(0,n.string32)(f)+(0,n.string32)(O),h=f+1,O=p[i]);R+=(0,n.string32)(h)+(0,n.string32)(d[1])+(0,n.string32)(O)}I="\0\f\0\0"+(0,n.string32)(R.length+16)+"\0\0\0\0"+(0,n.string32)(R.length/12)}return c+"\0"+E(T.length+4)+T+I+R}function V(e){var t=new h.Stream(e.data),r=t.getUint16();t.getBytes(60);var n=t.getUint16();if(r<4&&768&n)return!1;var a=t.getUint16(),i=t.getUint16();if(a>i)return!1;t.getBytes(6);var o=t.getUint16();return 0!==o&&(e.data[8]=e.data[9]=0,!0)}function W(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,u=0;if(t){for(var d in t){d|=0,(c>d||!c)&&(c=d),u<d&&(u=d);var h=(0,l.getUnicodeRangeFor)(d);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}}u>65535&&(u=65535)}else c=0,u=255;var f=e.bbox||[0,0,0,0],p=r.unitsPerEm||1/(e.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],v=e.ascentScaled?1:p/g,m=r.ascent||Math.round(v*(e.ascent||f[3])),b=r.descent||Math.round(v*(e.descent||f[1]));b>0&&e.descent>0&&f[1]<0&&(b=-b);var y=r.yMax||m,w=-r.yMin||-b;return"\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(a)+(0,n.string32)(i)+(0,n.string32)(o)+(0,n.string32)(s)+"*21*"+E(e.italicAngle?1:0)+E(c||e.firstChar)+E(u||e.lastChar)+E(m)+E(b)+"\0d"+E(y)+E(w)+"\0\0\0\0\0\0\0\0"+E(e.xHeight)+E(e.capHeight)+E(0)+E(c||e.firstChar)+"\0"}function H(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 G(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]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],l=[];for(r=0,n=s.length;r<n;r++){o=t[1][r]||s[r];var c=[];for(a=0,i=o.length;a<i;a++)c.push(E(o.charCodeAt(a)));l.push(c.join(""))}var u=[s,l],d=["\0","\0"],h=["\0\0","\0"],f=["\0\0","\t"],p=s.length*d.length,g="\0\0"+E(p)+E(12*p+6),v=0;for(r=0,n=d.length;r<n;r++){var m=u[r];for(a=0,i=m.length;a<i;a++){o=m[a];var b=d[r]+h[r]+f[r]+E(a)+E(o.length)+E(v);g+=b,v+=o.length}}return g+=s.join("")+l.join(""),g}return e.getFontID=function(){var e=1;return function(){return String(e++)}}(),e.prototype={name:null,font:null,mimetype:null,encoding:null,disableFontFace:!1,get renderer(){var e=u.FontRendererFactory.create(this,v);return(0,n.shadow)(this,"renderer",e)},exportData:function(){var e={};for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e},fallbackToSystemFont:function(){var e,t,r=this;this.missingFile=!0;var a=this.name,c=this.type,u=this.subtype,d=a.replace(/[,_]/g,"-").replace(/\s/g,""),h=(0,s.getStdFontMap)(),f=(0,s.getNonStdFontMap)(),p=!!h[d]||!(!f[d]||!h[f[d]]);if(d=h[d]||f[d]||d,this.bold=-1!==d.search(/bold/gi),this.italic=-1!==d.search(/oblique/gi)||-1!==d.search(/italic/gi),this.black=-1!==a.search(/Black/g),this.remeasure=Object.keys(this.widths).length>0,p&&"CIDFontType2"===c&&this.cidEncoding.startsWith("Identity-")){var g=(0,s.getGlyphMapForStandardFonts)(),v=[];for(e in g)v[+e]=g[e];if(/Arial-?Black/i.test(a)){var m=(0,s.getSupplementalGlyphMapForArialBlack)();for(e in m)v[+e]=m[e]}else if(/Calibri/i.test(a)){var b=(0,s.getSupplementalGlyphMapForCalibri)();for(e in b)v[+e]=b[e]}var y=this.toUnicode instanceof C;y||this.toUnicode.forEach((function(e,t){v[+e]=t})),this.toFontChar=v,this.toUnicode=new A(v)}else if(/Symbol/i.test(d))this.toFontChar=U(o.SymbolSetEncoding,(0,i.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(d))/Wingdings/i.test(a)&&(0,n.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=U(o.ZapfDingbatsEncoding,(0,i.getDingbatsGlyphsUnicode)(),this.differences);else if(p)this.toFontChar=U(this.defaultEncoding,(0,i.getGlyphsUnicode)(),this.differences);else{var w=(0,i.getGlyphsUnicode)(),_=[];if(this.toUnicode.forEach((function(e,n){if(!r.composite){var a=r.differences[e]||r.defaultEncoding[e];t=(0,l.getUnicodeForGlyph)(a,w),-1!==t&&(n=t)}_[+e]=n})),this.composite&&this.toUnicode instanceof C&&/Verdana/i.test(a)){var x=(0,s.getGlyphMapForStandardFonts)();for(e in x)_[+e]=x[e]}this.toFontChar=_}this.loadedName=d.split("-")[0],this.fontType=k(c,u)},checkAndRepair:function(e,s,l){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=p(s);c.includes(a.tag)&&(0!==a.length&&(r[a.tag]=a))}return r}function p(e){var t=(0,n.bytesToString)(e.getBytes(4)),r=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0,o=e.pos;e.pos=e.start?e.start:0,e.skip(a);var s=e.getBytes(i);return e.pos=o,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32),{tag:t,checksum:r,length:i,offset:a,data:s}}function g(e){return{version:(0,n.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function m(e){var t=(0,n.bytesToString)(e.getBytes(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 l={ttcTag:t,majorVersion:r,minorVersion:a,numFonts:i,offsetTable:o};switch(r){case 1:return l;case 2:return l.dsigTag=e.getInt32()>>>0,l.dsigLength=e.getInt32()>>>0,l.dsigOffset=e.getInt32()>>>0,l}throw new n.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}function b(e,t){for(var r=m(e),a=r.numFonts,i=r.offsetTable,o=0;o<a;o++){e.pos=(e.start||0)+i[o];var s=g(e),l=u(e,s.numTables);if(!l["name"])throw new n.FormatError('TrueType Collection font must contain a "name" table.');for(var c=R(l["name"]),d=0,h=c.length;d<h;d++)for(var f=0,p=c[d].length;f<p;f++){var v=c[d][f];if(v&&v.replace(/\s/g,"")===t)return{header:s,tables:l}}}throw new n.FormatError('TrueType Collection does not contain "'.concat(t,'" font.'))}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.getUint16();for(var s,l=t.getUint16(),c=!1,u=0;u<l;u++){var d=t.getUint16(),h=t.getUint16(),f=t.getInt32()>>>0,p=!1;if((!s||s.platformId!==d||s.encodingId!==h)&&(0===d&&0===h||1===d&&0===h?p=!0:3!==d||1!==h||!a&&s?r&&3===d&&0===h&&(p=!0,c=!0):(p=!0,r||(c=!0)),p&&(s={platformId:d,encodingId:h,offset:f}),c))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.getUint16(),t.getUint16();var v,m,b=!1,y=[];if(0===g){for(v=0;v<256;v++){var w=t.getByte();w&&y.push({charCode:v,glyphId:w})}b=!0}else if(4===g){var _=t.getUint16()>>1;t.getBytes(6);var k,x=[];for(k=0;k<_;k++)x.push({end:t.getUint16()});for(t.getUint16(),k=0;k<_;k++)x[k].start=t.getUint16();for(k=0;k<_;k++)x[k].delta=t.getUint16();var S=0;for(k=0;k<_;k++){i=x[k];var A=t.getUint16();if(A){var C=(A>>1)-(_-k);i.offsetIndex=C,S=Math.max(S,C+i.end-i.start+1)}else i.offsetIndex=-1}var P=[];for(v=0;v<S;v++)P.push(t.getUint16());for(k=0;k<_;k++){i=x[k],o=i.start;var T=i.end,E=i.delta;for(C=i.offsetIndex,v=o;v<=T;v++)65535!==v&&(m=C<0?v:P[C+v-o],m=m+E&65535,y.push({charCode:v,glyphId:m}))}}else{if(6!==g)return(0,n.warn)("cmap table has unsupported format: "+g),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var R=t.getUint16(),I=t.getUint16();for(v=0;v<I;v++){m=t.getUint16();var O=R+v;y.push({charCode:O,glyphId:m})}}for(y.sort((function(e,t){return e.charCode-t.charCode})),u=1;u<y.length;u++)y[u-1].charCode===y[u].charCode&&(y.splice(u,1),u--);return{platformId:s.platformId,encodingId:s.encodingId,mappings:y,hasShortCmap:b}}function k(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,l=s-(r.length-4*o>>1);if(l>0){var c=new Uint8Array(r.length+2*l);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)}function S(e,t,n,a,i,o){var s={length:0,sizeOfInstructions:0};if(n-t<=12)return s;var l=e.subarray(t,n),c=f(l[0],l[1]);if(c<0)return c=-1,r(l,0,c),a.set(l,i),s.length=l.length,s;var u,d=10,h=0;for(u=0;u<c;u++){var p=l[d]<<8|l[d+1];h=p+1,d+=2}var g=d,v=l[d]<<8|l[d+1];s.sizeOfInstructions=v,d+=2+v;var m=d,b=0;for(u=0;u<h;u++){var y=l[d++];192&y&&(l[d-1]=63&y);var w=2;2&y?w=1:16&y&&(w=0);var _=2;4&y?_=1:32&y&&(_=0);var k=w+_;if(b+=k,8&y){var x=l[d++];u+=x,b+=x*k}}if(0===b)return s;var S=d+b;return S>l.length?s:!o&&v>0?(a.set(l.subarray(0,g),i),a.set([0,0],i+g),a.set(l.subarray(m,S),i+g+2),S-=v,l.length-S>3&&(S=S+3&-4),s.length=S,s):l.length-S>3?(S=S+3&-4,a.set(l.subarray(0,S),i),s.length=S,s):(a.set(l,i),s.length=l.length,s)}function A(e,r,a){var i=e.data,o=T(i[0],i[1],i[2],i[3]);o>>16!==1&&((0,n.info)("Attempting to fix invalid version in head table: "+o),i[0]=0,i[1]=1,i[2]=0,i[3]=0);var s=t(i[50],i[51]);if(s<0||s>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+s);var l=r+1;if(a===l<<1)i[50]=0,i[51]=0;else{if(a!==l<<2)throw new n.FormatError("Could not fix indexToLocFormat: "+s);i[50]=0,i[51]=1}}}function C(e,t,r,n,a,i,o){var s,l,c;n?(s=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=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,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var u=i?r+1:r,d=s*(1+u),h=new Uint8Array(d);h.set(e.data.subarray(0,d)),e.data=h;var f,p,g=t.data,v=g.length,m=new Uint8Array(v),b=l(h,0),y=0,w=Object.create(null);for(c(h,0,y),f=0,p=s;f<r;f++,p+=s){var _=l(h,p);0===_&&(_=b),_>v&&(v+3&-4)===_&&(_=v),_>v&&(b=_);var k=S(g,b,_,m,y,a),x=k.length;0===x&&(w[f]=!0),k.sizeOfInstructions>o&&(o=k.sizeOfInstructions),y+=x,c(h,p,y),b=_}if(0===y){var A=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(f=0,p=s;f<u;f++,p+=s)c(h,p,A.length);t.data=A}else if(i){var C=l(h,s);m.length>C+y?t.data=m.subarray(0,C+y):(t.data=new Uint8Array(C+y),t.data.set(m.subarray(0,y))),t.data.set(m.subarray(0,C),y),c(e.data,h.length-s,y+C)}else t.data=m.subarray(0,y);return{missingGlyphs:w,maxSizeOfInstructions:o}}function E(e,t,r){var a=(s.start?s.start:0)+e.offset;s.pos=a;var i,o=e.length,l=a+o,c=s.getInt32();s.getBytes(28);var u,d=!0;switch(c){case 65536:i=y;break;case 131072:var h=s.getUint16();if(h!==r){d=!1;break}var f=[];for(u=0;u<h;++u){var p=s.getUint16();if(p>=32768){d=!1;break}f.push(p)}if(!d)break;var g=[],v=[];while(s.pos<l){var m=s.getByte();for(v.length=m,u=0;u<m;++u)v[u]=String.fromCharCode(s.getByte());g.push(v.join(""))}for(i=[],u=0;u<h;++u){var b=f[u];b<258?i.push(y[b]):i.push(g[b-258])}break;case 196608:break;default:(0,n.warn)("Unknown/unsupported post table version "+c),d=!1,t.defaultEncoding&&(i=t.defaultEncoding);break}return t.glyphNames=i,d}function R(e){var t=(s.start?s.start:0)+e.offset;s.pos=t;var r=[[],[]],a=e.length,i=t+a,o=s.getUint16(),l=6;if(0!==o||a<l)return r;var c,u,d=s.getUint16(),h=s.getUint16(),f=[],p=12;for(c=0;c<d&&s.pos+p<=i;c++){var g={platform:s.getUint16(),encoding:s.getUint16(),language:s.getUint16(),name:s.getUint16(),length:s.getUint16(),offset:s.getUint16()};(1===g.platform&&0===g.encoding&&0===g.language||3===g.platform&&1===g.encoding&&1033===g.language)&&f.push(g)}for(c=0,u=f.length;c<u;c++){var v=f[c];if(!(v.length<=0)){var m=t+h+v.offset;if(!(m+v.length>i)){s.pos=m;var b=v.name;if(v.encoding){for(var y="",w=0,_=v.length;w<_;w+=2)y+=String.fromCharCode(s.getUint16());r[1][b]=y}else r[0][b]=(0,n.bytesToString)(s.getBytes(v.length))}}}return r}var I,L,M,D,N=[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 B(e,t){for(var r,a,i,o,s,l=e.data,c=0,u=0,d=0,h=[],f=[],p=[],g=t.tooComplexToFollowFunctions,v=!1,m=0,b=0,y=l.length;c<y;){var w=l[c++];if(64===w)if(a=l[c++],v||b)c+=a;else for(r=0;r<a;r++)h.push(l[c++]);else if(65===w)if(a=l[c++],v||b)c+=2*a;else for(r=0;r<a;r++)i=l[c++],h.push(i<<8|l[c++]);else if(176===(248&w))if(a=w-176+1,v||b)c+=a;else for(r=0;r<a;r++)h.push(l[c++]);else if(184===(248&w))if(a=w-184+1,v||b)c+=2*a;else for(r=0;r<a;r++)i=l[c++],h.push(i<<8|l[c++]);else if(43!==w||g)if(44!==w||g){if(45===w)if(v)v=!1,u=c;else{if(s=f.pop(),!s)return(0,n.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1);o=p.pop(),l=s.data,c=s.i,t.functionsStackDeltas[o]=h.length-s.stackTop}else if(137===w)(v||b)&&((0,n.warn)("TT: nested IDEFs not allowed"),g=!0),v=!0,d=c;else if(88===w)++m;else if(27===w)b=m;else if(89===w)b===m&&(b=0),--m;else if(28===w&&!v&&!b){var _=h[h.length-1];_>0&&(c+=_-1)}}else(v||b)&&((0,n.warn)("TT: nested FDEFs not allowed"),g=!0),v=!0,d=c,o=h.pop(),t.functionsDefined[o]={data:l,i:c};else if(!v&&!b)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 k=h.length+t.functionsStackDeltas[o];if(k<0)return(0,n.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);h.length=k}else if(o in t.functionsDefined&&!p.includes(o)){if(f.push({data:l,i:c,stackTop:h.length-1}),p.push(o),s=t.functionsDefined[o],!s)return(0,n.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=s.data,c=s.i}if(!v&&!b){var x=0;w<=142?x=N[w]:w>=192&&w<=223?x=-1:w>=224&&(x=-2),w>=113&&w<=117&&(a=h.pop(),isNaN(a)||(x=2*-a));while(x<0&&h.length>0)h.pop(),x++;while(x>0)h.push(NaN),x--}}t.tooComplexToFollowFunctions=g;var S=[l];c>l.length&&S.push(new Uint8Array(c-l.length)),d>u&&((0,n.warn)("TT: complementing a missing function tail"),S.push(new Uint8Array([34,45]))),q(e,S)}function U(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)}}}function q(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}}function Y(e,t,r,n){var a={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&B(e,a),t&&B(t,a),e&&U(a,n),r&&1&r.length){var i=new Uint8Array(r.length+1);i.set(r.data),r.data=i}return a.hintsValid}if(s=new h.Stream(new Uint8Array(s.getBytes())),F(s)){var X=b(s,this.name);I=X.header,L=X.tables}else I=g(s),L=u(s,I.numTables);var K=!L["CFF "];if(K){if(!L["loca"])throw new n.FormatError('Required "loca" table is not found');L["glyf"]||((0,n.warn)('Required "glyf" table is not found -- trying to recover.'),L["glyf"]={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{var Z=l.composite&&((l.cidToGidMap||[]).length>0||!(l.cMap instanceof d.IdentityCMap));if("OTTO"===I.version&&!Z||!L["head"]||!L["hhea"]||!L["maxp"]||!L["post"])return D=new h.Stream(L["CFF "].data),M=new O(D,l),w(l),this.convert(e,M,l);delete L["glyf"],delete L["loca"],delete L["fpgm"],delete L["prep"],delete L["cvt "],this.isOpenType=!0}if(!L["maxp"])throw new n.FormatError('Required "maxp" table is not found');s.pos=(s.start||0)+L["maxp"].offset;var J=s.getInt32(),Q=s.getUint16(),$=Q+1,ee=!0;$>65535&&(ee=!1,$=Q,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));var te=0,re=0;if(J>=65536&&L["maxp"].length>=22){s.pos+=8;var ne=s.getUint16();ne>2&&(L["maxp"].data[14]=0,L["maxp"].data[15]=2),s.pos+=4,te=s.getUint16(),s.pos+=4,re=s.getUint16()}L["maxp"].data[4]=$>>8,L["maxp"].data[5]=255&$;var ae=Y(L["fpgm"],L["prep"],L["cvt "],te);if(ae||(delete L["fpgm"],delete L["prep"],delete L["cvt "]),k(s,L["hhea"],L["hmtx"],$,ee),!L["head"])throw new n.FormatError('Required "head" table is not found');A(L["head"],Q,K?L["loca"].length:0);var ie=Object.create(null);if(K){var oe=t(L["head"].data[50],L["head"].data[51]),se=C(L["loca"],L["glyf"],Q,oe,ae,ee,re);ie=se.missingGlyphs,J>=65536&&L["maxp"].length>=22&&(L["maxp"].data[26]=se.maxSizeOfInstructions>>8,L["maxp"].data[27]=255&se.maxSizeOfInstructions)}if(!L["hhea"])throw new n.FormatError('Required "hhea" table is not found');0===L["hhea"].data[10]&&0===L["hhea"].data[11]&&(L["hhea"].data[10]=255,L["hhea"].data[11]=255);var le={unitsPerEm:t(L["head"].data[18],L["head"].data[19]),yMax:t(L["head"].data[42],L["head"].data[43]),yMin:f(L["head"].data[38],L["head"].data[39]),ascent:t(L["hhea"].data[4],L["hhea"].data[5]),descent:f(L["hhea"].data[6],L["hhea"].data[7])};this.ascent=le.ascent/le.unitsPerEm,this.descent=le.descent/le.unitsPerEm,L["post"]&&E(L["post"],l,Q),L["post"]={tag:"post",data:H(l)};var ce,ue=[];function de(e){return!ie[e]}if(l.composite){var he=l.cidToGidMap||[],fe=0===he.length;l.cMap.forEach((function(e,t){if(t>65535)throw new n.FormatError("Max size of CID is 65,535");var r=-1;fe?r=t:void 0!==he[t]&&(r=he[t]),r>=0&&r<Q&&de(r)&&(ue[e]=r)}))}else{var pe=_(L["cmap"],s,this.isSymbolicFont,l.hasEncoding),ge=pe.platformId,ve=pe.encodingId,me=pe.mappings,be=me.length;if(l.hasEncoding&&(3===ge&&1===ve||1===ge&&0===ve)||-1===ge&&-1===ve&&(0,o.getEncoding)(l.baseEncodingName)){var ye=[];"MacRomanEncoding"!==l.baseEncodingName&&"WinAnsiEncoding"!==l.baseEncodingName||(ye=(0,o.getEncoding)(l.baseEncodingName));var we=(0,i.getGlyphsUnicode)();for(ce=0;ce<256;ce++){var _e,ke;if(_e=this.differences&&ce in this.differences?this.differences[ce]:ce in ye&&""!==ye[ce]?ye[ce]:o.StandardEncoding[ce],_e){var xe;ke=x(_e,we),3===ge&&1===ve?xe=we[ke]:1===ge&&0===ve&&(xe=o.MacRomanEncoding.indexOf(ke));for(var Se=!1,Ae=0;Ae<be;++Ae)if(me[Ae].charCode===xe){ue[ce]=me[Ae].glyphId,Se=!0;break}if(!Se&&l.glyphNames){var Ce=l.glyphNames.indexOf(_e);-1===Ce&&ke!==_e&&(Ce=l.glyphNames.indexOf(ke)),Ce>0&&de(Ce)&&(ue[ce]=Ce)}}}}else if(0===ge&&0===ve)for(var Pe=0;Pe<be;++Pe)ue[me[Pe].charCode]=me[Pe].glyphId;else for(var Te=0;Te<be;++Te)ce=me[Te].charCode,3===ge&&ce>=61440&&ce<=61695&&(ce&=255),ue[ce]=me[Te].glyphId}0===ue.length&&(ue[0]=0);var Ee=$-1;ee||(Ee=0);var Re=j(ue,de,Ee);if(this.toFontChar=Re.toFontChar,L["cmap"]={tag:"cmap",data:z(Re.charCodeToGlyphId,$)},L["OS/2"]&&V(L["OS/2"])||(L["OS/2"]={tag:"OS/2",data:W(l,Re.charCodeToGlyphId,le)}),!K)try{D=new h.Stream(L["CFF "].data);var Ie=new a.CFFParser(D,l,v);M=Ie.parse(),M.duplicateFirstGlyph();var Oe=new a.CFFCompiler(M);L["CFF "].data=Oe.compile()}catch(De){(0,n.warn)("Failed to compile font "+l.loadedName)}if(L["name"]){var Le=R(L["name"]);L["name"].data=G(e,Le)}else L["name"]={tag:"name",data:G(this.name)};var Fe=new P(I.version);for(var Me in L)Fe.addTable(Me,L[Me].data);return Fe.toArray()},convert:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&_(r,r.builtInEncoding);var a=1;t instanceof O&&(a=t.numGlyphs-1);var i=t.getGlyphMapping(r),s=j(i,t.hasGlyphId.bind(t),a);this.toFontChar=s.toFontChar;var l=t.numGlyphs;function c(e,t){var r=null;for(var n in e)t===e[n]&&(r||(r=[]),r.push(0|n));return r}function u(e,t){for(var r in e)if(t===e[r])return 0|r;return s.charCodeToGlyphId[s.nextAvailableFontCharCode]=t,s.nextAvailableFontCharCode++}var d=t.seacs;if(v&&d&&d.length){var h=r.fontMatrix||n.FONT_IDENTITY_MATRIX,f=t.getCharset(),p=Object.create(null);for(var g in d){g|=0;var m=d[g],b=o.StandardEncoding[m[2]],y=o.StandardEncoding[m[3]],w=f.indexOf(b),k=f.indexOf(y);if(!(w<0||k<0)){var x={x:m[0]*h[0]+m[1]*h[2]+h[4],y:m[0]*h[1]+m[1]*h[3]+h[5]},S=c(i,g);if(S)for(var A=0,C=S.length;A<C;A++){var T=S[A],I=s.charCodeToGlyphId,L=u(I,w),F=u(I,k);p[T]={baseFontCharCode:L,accentFontCharCode:F,accentOffset:x}}}}r.seacMap=p}var M=1/(r.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],D=new P("OTTO");return D.addTable("CFF ",t.data),D.addTable("OS/2",W(r,s.charCodeToGlyphId)),D.addTable("cmap",z(s.charCodeToGlyphId,l)),D.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+R(M)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+R(r.descent)+"ÿ"+R(r.ascent)+E(r.italicAngle?2:0)+"\0\0\0\0\0\0\0"),D.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"+E(l)),D.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,n="\0\0\0\0",a=1,i=l;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+=E(o)+E(0)}return n}()),D.addTable("maxp","\0\0P\0"+E(l)),D.addTable("name",G(e)),D.addTable("post",H(r)),D.toArray()},get spaceWidth(){if("_shadowWidth"in this)return this._shadowWidth;for(var e,t=["space","minus","one","i","I"],r=0,n=t.length;r<n;r++){var a=t[r];if(a in this.widths){e=this.widths[a];break}var o=(0,i.getGlyphsUnicode)(),s=o[a],l=0;if(this.composite&&this.cMap.contains(s)&&(l=this.cMap.lookup(s)),!l&&this.toUnicode&&(l=this.toUnicode.charCodeOf(s)),l<=0&&(l=s),e=this.widths[l],e)break}return e=e||this.defaultWidth,this._shadowWidth=e,e},charToGlyph:function(e,t){var r,a,i,o=e;this.cMap&&this.cMap.contains(e)&&(o=this.cMap.lookup(e)),a=this.widths[o],a=(0,n.isNum)(a)?a: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 u=e in this.toFontChar;if(r=this.toFontChar[e]||e,this.missingFile){var d=this.differences[e]||this.defaultEncoding[e];".notdef"!==d&&""!==d||"Type1"!==this.type||(r=32),r=(0,l.mapSpecialUnicodeValues)(r)}this.isType3Font&&(i=r);var h=null;if(this.seacMap&&this.seacMap[e]){u=!0;var f=this.seacMap[e];r=f.baseFontCharCode,h={fontChar:String.fromCodePoint(f.accentFontCharCode),offset:f.accentOffset}}var p="number"===typeof r?String.fromCodePoint(r):"",g=this.glyphCache[e];return g&&g.matchesForCache(p,c,h,a,s,i,t,u)||(g=new S(p,c,h,a,s,i,t,u),this.glyphCache[e]=g),g},charsToGlyphs:function(e){var t,r,n,a=this.charsCache;if(a&&(t=a[e],t))return t;a||(a=this.charsCache=Object.create(null)),t=[];var i,o=e,s=0;if(this.cMap){var l=Object.create(null);while(s<e.length){this.cMap.readCharCode(e,s,l),n=l.charcode;var c=l.length;s+=c;var u=1===c&&32===e.charCodeAt(s-1);r=this.charToGlyph(n,u),t.push(r)}}else for(s=0,i=e.length;s<i;++s)n=e.charCodeAt(s),r=this.charToGlyph(n,32===n),t.push(r);return a[o]=t},get glyphCacheValues(){return Object.values(this.glyphCache)}},e}();t.Font=T;var E=function(){function e(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}return e.prototype={charsToGlyphs:function(){return[]},exportData:function(){return{error:this.error}}},e}();function R(e,t,r){var n,a,s,l=Object.create(null),c=!!(e.flags&b.Symbolic);if(e.baseEncodingName)for(s=(0,o.getEncoding)(e.baseEncodingName),a=0;a<s.length;a++)n=r.indexOf(s[a]),l[a]=n>=0?n:0;else if(c)for(a in t)l[a]=t[a];else for(s=o.StandardEncoding,a=0;a<s.length;a++)n=r.indexOf(s[a]),l[a]=n>=0?n:0;var u,d=e.differences;if(d)for(a in d){var h=d[a];if(n=r.indexOf(h),-1===n){u||(u=(0,i.getGlyphsUnicode)());var f=x(h,u);f!==h&&(n=r.indexOf(f))}l[a]=n>=0?n:0}return l}t.ErrorFont=E;var I=function(){function e(e,t,r){var n,a=e.length,i=t.length,o=a-i,s=r,l=!1;while(s<o){n=0;while(n<i&&e[s+n]===t[n])n++;if(n>=i){s+=n;while(s<a&&(0,c.isWhiteSpace)(e[s]))s++;l=!0;break}s++}return{found:l,length:s}}function t(t,r){var a,i,o,s=[101,101,120,101,99],l=t.pos;try{a=t.getBytes(r),i=a.length}catch(p){if(p instanceof c.MissingDataException)throw p}if(i===r&&(o=e(a,s,r-2*s.length),o.found&&o.length===r))return{stream:new h.Stream(a),length:r};(0,n.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=l;var u,d=2048;while(1){var f=t.peekBytes(d);if(o=e(f,s,0),0===o.length)break;if(t.pos+=o.length,o.found){u=t.pos-l;break}}return t.pos=l,u?{stream:new h.Stream(t.getBytes(u)),length:u}:((0,n.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new h.Stream(t.getBytes(r)),length:r})}function r(e,t){var r=e.getBytes();return{stream:new h.Stream(r),length:r.length}}function i(e,n,a){var i=6,o=a.length1,s=a.length2,l=n.peekBytes(i),c=128===l[0]&&1===l[1];c&&(n.skip(i),o=l[5]<<24|l[4]<<16|l[3]<<8|l[2]);var u=t(n,o),d=new f.Type1Parser(u.stream,!1,v);d.extractFontHeader(a),c&&(l=n.getBytes(i),s=l[5]<<24|l[4]<<16|l[3]<<8|l[2]);var h=r(n,s),p=new f.Type1Parser(h.stream,!0,v),g=p.extractFontProgram(a);for(var m in g.properties)a[m]=g.properties[m];var b=g.charstrings,y=this.getType2Charstrings(b),w=this.getType2Subrs(g.subrs);this.charstrings=b,this.data=this.wrap(e,y,this.charstrings,w,a),this.seacs=this.getSeacs(g.charstrings)}return i.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function(){for(var e=[".notdef"],t=this.charstrings,r=0;r<t.length;r++)e.push(t[r].glyphName);return e},getGlyphMapping:function(e){var t,r=this.charstrings,n=[".notdef"];for(t=0;t<r.length;t++)n.push(r[t].glyphName);var a=e.builtInEncoding;if(a){var i=Object.create(null);for(var o in a)t=n.indexOf(a[o]),t>=0&&(i[o]=t)}return R(e,i,n)},hasGlyphId:function(e){if(e<0||e>=this.numGlyphs)return!1;if(0===e)return!0;var t=this.charstrings[e-1];return t.charstring.length>0},getSeacs:function(e){var t,r,n=[];for(t=0,r=e.length;t<r;t++){var a=e[t];a.seac&&(n[t+1]=a.seac)}return n},getType2Charstrings:function(e){for(var t=[],r=0,n=e.length;r<n;r++)t.push(e[r].charstring);return t},getType2Subrs: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},wrap:function(e,t,r,n,i){var o=new a.CFF;o.header=new a.CFFHeader(1,0,4,4),o.names=[e];var s=new a.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 l=new a.CFFStrings;l.add("Version 0.11"),l.add("See original notice"),l.add(e),l.add(e),l.add("Medium"),o.strings=l,o.globalSubrIndex=new a.CFFIndex;var c,u,d=t.length,h=[".notdef"];for(c=0;c<d;c++){var f=r[c].glyphName,p=a.CFFStandardStrings.indexOf(f);-1===p&&l.add(f),h.push(f)}o.charset=new a.CFFCharset(!1,0,h);var g=new a.CFFIndex;for(g.add([139,14]),c=0;c<d;c++)g.add(t[c]);o.charStrings=g;var v=new a.CFFPrivateDict;v.setByName("Subrs",null);var m=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(c=0,u=m.length;c<u;c++){var b=m[c];if(b in i.privateData){var y=i.privateData[b];if(Array.isArray(y))for(var w=y.length-1;w>0;w--)y[w]-=y[w-1];v.setByName(b,y)}}o.topDict.privateDict=v;var _=new a.CFFIndex;for(c=0,u=n.length;c<u;c++)_.add(n[c]);v.subrsIndex=_;var k=new a.CFFCompiler(o);return k.compile()}},i}(),O=function(){function e(e,t){this.properties=t;var r=new a.CFFParser(e,t,v);this.cff=r.parse(),this.cff.duplicateFirstGlyph();var i=new a.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=i.compile()}catch(o){(0,n.warn)("Failed to compile font "+t.loadedName),this.data=e}}return e.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function(){return this.cff.charset.charset},getGlyphMapping:function(){var e,t,r=this.cff,n=this.properties,a=r.charset.charset;if(n.composite){var i;if(e=Object.create(null),r.isCIDFont)for(t=0;t<a.length;t++){var o=a[t];i=n.cMap.charCodeOf(o),e[i]=t}else for(t=0;t<r.charStrings.count;t++)i=n.cMap.charCodeOf(t),e[i]=t;return e}var s=r.encoding?r.encoding.encoding:null;return e=R(n,s,a),e},hasGlyphId:function(e){return this.cff.hasGlyphId(e)}},e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFDSelect=t.CFFCompiler=t.CFFPrivateDict=t.CFFTopDict=t.CFFCharset=t.CFFIndex=t.CFFStrings=t.CFFHeader=t.CFF=t.CFFParser=t.CFFStandardStrings=void 0;var n=r(2),a=r(29),i=r(30),o=10,s=[".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=s;var l=391,c=function(){var e=[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}],t=[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 r(e,t,r){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!r}return r.prototype={parse:function(){var e=this.properties,t=new u;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)),l=this.createDict(g,s,t.strings);t.header=r.obj,t.names=this.parseNameIndex(n.obj),t.strings=this.parseStringIndex(i.obj),t.topDict=l,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=l.hasName("ROS");var c=l.getByName("CharStrings"),d=this.parseIndex(c).obj,h=l.getByName("FontMatrix");h&&(e.fontMatrix=h);var f,p,v=l.getByName("FontBBox");if(v&&(e.ascent=Math.max(v[3],v[1]),e.descent=Math.min(v[1],v[3]),e.ascentScaled=!0),t.isCIDFont){for(var m=this.parseIndex(l.getByName("FDArray")).obj,b=0,y=m.count;b<y;++b){var w=m.get(b),_=this.createDict(g,this.parseDict(w),t.strings);this.parsePrivateDict(_),t.fdArray.push(_)}p=null,f=this.parseCharsets(l.getByName("charset"),d.count,t.strings,!0),t.fdSelect=this.parseFDSelect(l.getByName("FDSelect"),d.count)}else f=this.parseCharsets(l.getByName("charset"),d.count,t.strings,!1),p=this.parseEncoding(l.getByName("Encoding"),e,t.strings,f.charset);t.charset=f,t.encoding=p;var k=this.parseCharStrings({charStrings:d,localSubrIndex:l.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:l.privateDict});return t.charStrings=k.charStrings,t.seacs=k.seacs,t.widths=k.widths,t},parseHeader:function(){var e=this.bytes,t=e.length,r=0;while(r<t&&1!==e[r])++r;if(r>=t)throw new n.FormatError("Invalid CFF header");0!==r&&((0,n.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var a=e[0],i=e[1],o=e[2],s=e[3],l=new d(a,i,o,s);return{obj:l,endPos:o}},parseDict:function(e){var t=0;function r(){var r=e[t++];return 30===r?a():28===r?(r=e[t++],r=(r<<24|e[t++]<<16)>>16,r):29===r?(r=e[t++],r=r<<8|e[t++],r=r<<8|e[t++],r=r<<8|e[t++],r):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,n.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}function a(){var r="",n=15,a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;while(t<i){var o=e[t++],s=o>>4,l=15&o;if(s===n)break;if(r+=a[s],l===n)break;r+=a[l]}return parseFloat(r)}var i=[],o=[];t=0;var s=e.length;while(t<s){var l=e[t];l<=21?(12===l&&(l=l<<8|e[++t]),o.push([l,i]),i=[],++t):i.push(r())}return o},parseIndex:function(e){var t,r,n=new f,a=this.bytes,i=a[e++]<<8|a[e++],o=[],s=e;if(0!==i){var l=a[e++],c=e+(i+1)*l-1;for(t=0,r=i+1;t<r;++t){for(var u=0,d=0;d<l;++d)u<<=8,u+=a[e++];o.push(c+u)}s=o[i]}for(t=0,r=o.length-1;t<r;++t){var h=o[t],p=o[t+1];n.add(a.subarray(h,p))}return{obj:n,endPos:s}},parseNameIndex:function(e){for(var t=[],r=0,a=e.count;r<a;++r){var i=e.get(r);t.push((0,n.bytesToString)(i))}return t},parseStringIndex:function(e){for(var t=new h,r=0,a=e.count;r<a;++r){var i=e.get(r);t.add((0,n.bytesToString)(i))}return t},createDict: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],l=o[1];n.setByKey(s,l)}return n},parseCharString:function(r,a,i,s){if(!a||r.callDepth>o)return!1;for(var l=r.stackSize,c=r.stack,u=a.length,d=0;d<u;){var h=a[d++],f=null;if(12===h){var p=a[d++];0===p?(a[d-2]=139,a[d-1]=22,l=0):f=t[p]}else if(28===h)c[l]=(a[d]<<24|a[d+1]<<16)>>16,d+=2,l++;else if(14===h){if(l>=4&&(l-=4,this.seacAnalysisEnabled))return r.seac=c.slice(l,l+4),!1;f=e[h]}else if(h>=32&&h<=246)c[l]=h-139,l++;else if(h>=247&&h<=254)c[l]=h<251?(h-247<<8)+a[d]+108:-(h-251<<8)-a[d]-108,d++,l++;else if(255===h)c[l]=(a[d]<<24|a[d+1]<<16|a[d+2]<<8|a[d+3])/65536,d+=4,l++;else if(19===h||20===h)r.hints+=l>>1,d+=r.hints+7>>3,l%=2,f=e[h];else{if(10===h||29===h){var g;if(g=10===h?i:s,!g)return f=e[h],(0,n.warn)("Missing subrsIndex for "+f.id),!1;var v=32768;g.count<1240?v=107:g.count<33900&&(v=1131);var m=c[--l]+v;if(m<0||m>=g.count||isNaN(m))return f=e[h],(0,n.warn)("Out of bounds subrIndex for "+f.id),!1;r.stackSize=l,r.callDepth++;var b=this.parseCharString(r,g.get(m),i,s);if(!b)return!1;r.callDepth--,l=r.stackSize;continue}if(11===h)return r.stackSize=l,!0;f=e[h]}if(f){if(f.stem&&(r.hints+=l>>1,3===h||23===h?r.hasVStems=!0:!r.hasVStems||1!==h&&18!==h||((0,n.warn)("CFF stem hints are in wrong order"),a[d-1]=1===h?3:23)),"min"in f&&!r.undefStack&&l<f.min)return(0,n.warn)("Not enough parameters for "+f.id+"; actual: "+l+", expected: "+f.min),!1;r.firstStackClearing&&f.stackClearing&&(r.firstStackClearing=!1,l-=f.min,l>=2&&f.stem?l%=2:l>1&&(0,n.warn)("Found too many parameters for stack-clearing command"),l>0&&c[l-1]>=0&&(r.width=c[l-1])),"stackDelta"in f?("stackFn"in f&&f.stackFn(c,l),l+=f.stackDelta):f.stackClearing?l=0:f.resetStack?(l=0,r.undefStack=!1):f.undefStack&&(l=0,r.undefStack=!0,r.firstStackClearing=!1)}}return r.stackSize=l,!0},parseCharStrings:function(e){for(var t=e.charStrings,r=e.localSubrIndex,a=e.globalSubrIndex,i=e.fdSelect,o=e.fdArray,s=e.privateDict,l=[],c=[],u=t.count,d=0;d<u;d++){var h=t.get(d),f={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},p=!0,g=null,v=s;if(i&&o.length){var m=i.getFDIndex(d);-1===m&&((0,n.warn)("Glyph index is not in fd select."),p=!1),m>=o.length&&((0,n.warn)("Invalid fd index for glyph index."),p=!1),p&&(v=o[m].privateDict,g=v.subrsIndex)}else r&&(g=r);if(p&&(p=this.parseCharString(f,h,g,a)),null!==f.width){var b=v.getByName("nominalWidthX");c[d]=b+f.width}else{var y=v.getByName("defaultWidthX");c[d]=y}null!==f.seac&&(l[d]=f.seac),p||t.set(d,new Uint8Array([14]))}return{charStrings:t,seacs:l,widths:c}},emptyPrivateDictionary:function(e){var t=this.createDict(v,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict: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(v,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var l=s.getByName("Subrs"),c=n+l;if(0===l||c>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(c);s.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,r,i){if(0===e)return new b(!0,m.ISO_ADOBE,a.ISOAdobeCharset);if(1===e)return new b(!0,m.EXPERT,a.ExpertCharset);if(2===e)return new b(!0,m.EXPERT_SUBSET,a.ExpertSubsetCharset);var o,s,l,c=this.bytes,u=e,d=c[e++],h=[".notdef"];switch(t-=1,d){case 0:for(l=0;l<t;l++)o=c[e++]<<8|c[e++],h.push(i?o:r.get(o));break;case 1:while(h.length<=t)for(o=c[e++]<<8|c[e++],s=c[e++],l=0;l<=s;l++)h.push(i?o++:r.get(o++));break;case 2:while(h.length<=t)for(o=c[e++]<<8|c[e++],s=c[e++]<<8|c[e++],l=0;l<=s;l++)h.push(i?o++:r.get(o++));break;default:throw new n.FormatError("Unknown charset format")}var f=e,p=c.subarray(u,f);return new b(!1,d,h,p)},parseEncoding:function(e,t,r,a){var o,s,l,c=Object.create(null),u=this.bytes,d=!1,h=null;function f(){var t=u[e++];for(s=0;s<t;s++){var n=u[e++],i=(u[e++]<<8)+(255&u[e++]);c[n]=a.indexOf(r.get(i))}}if(0===e||1===e){d=!0,o=e;var p=e?i.ExpertEncoding:i.StandardEncoding;for(s=0,l=a.length;s<l;s++){var g=p.indexOf(a[s]);-1!==g&&(c[g]=s)}}else{var v=e;switch(o=u[e++],127&o){case 0:var m=u[e++];for(s=1;s<=m;s++)c[u[e++]]=s;break;case 1:var b=u[e++],w=1;for(s=0;s<b;s++)for(var _=u[e++],k=u[e++],x=_;x<=_+k;x++)c[x]=w++;break;default:throw new n.FormatError("Unknown encoding format: ".concat(o," in CFF"))}var S=e;128&o&&(u[v]&=127,f()),h=u.subarray(v,S)}return o&=127,new y(d,o,c,h)},parseFDSelect:function(e,t){var r,a=this.bytes,i=a[e++],o=[];switch(i){case 0:for(r=0;r<t;++r){var s=a[e++];o.push(s)}break;case 3:var l=a[e++]<<8|a[e++];for(r=0;r<l;++r){var c=a[e++]<<8|a[e++];0===r&&0!==c&&((0,n.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),c=0);for(var u=a[e++],d=a[e]<<8|a[e+1],h=c;h<d;++h)o.push(u)}e+=2;break;default:throw new n.FormatError('parseFDSelect: Unknown format "'.concat(i,'".'))}if(o.length!==t)throw new n.FormatError("parseFDSelect: Invalid font data.");return new w(i,o)}},r}();t.CFFParser=c;var u=function(){function e(){this.header=null,this.names=[],this.topDict=null,this.strings=new h,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return e.prototype={duplicateFirstGlyph:function(){if(this.charStrings.count>=65535)(0,n.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])}},hasGlyphId:function(e){if(e<0||e>=this.charStrings.count)return!1;var t=this.charStrings.get(e);return t.length>0}},e}();t.CFF=u;var d=function(){function e(e,t,r,n){this.major=e,this.minor=t,this.hdrSize=r,this.offSize=n}return e}();t.CFFHeader=d;var h=function(){function e(){this.strings=[]}return e.prototype={get:function(e){return e>=0&&e<=l-1?s[e]:e-l<=this.strings.length?this.strings[e-l]:s[0]},getSID:function(e){var t=s.indexOf(e);return-1!==t?t:(t=this.strings.indexOf(e),-1!==t?t+l:-1)},add:function(e){this.strings.push(e)},get count(){return this.strings.length}},e}();t.CFFStrings=h;var f=function(){function e(){this.objects=[],this.length=0}return e.prototype={add:function(e){this.length+=e.length,this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}},e}();t.CFFIndex=f;var p=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}return e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var a=0;a<r;a++)if(isNaN(t[a]))return(0,n.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},setByName:function(e,t){if(!(e in this.nameToKeyMap))throw new n.FormatError('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t},hasName:function(e){return this.nameToKeyMap[e]in this.values},getByName:function(e){if(!(e in this.nameToKeyMap))throw new n.FormatError("Invalid dictionary name ".concat(e,'"'));var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]},removeByName:function(e){delete this.values[this.nameToKeyMap[e]]}},e.createTables=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}(),g=function(){var e=[[[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]],t=null;function r(r){null===t&&(t=p.createTables(e)),p.call(this,t,r),this.privateDict=null}return r.prototype=Object.create(p.prototype),r}();t.CFFTopDict=g;var v=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;function r(r){null===t&&(t=p.createTables(e)),p.call(this,t,r),this.subrsIndex=null}return r.prototype=Object.create(p.prototype),r}();t.CFFPrivateDict=v;var m={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},b=function(){function e(e,t,r,n){this.predefined=e,this.format=t,this.charset=r,this.raw=n}return e}();t.CFFCharset=b;var y=function(){function e(e,t,r,n){this.predefined=e,this.format=t,this.encoding=r,this.raw=n}return e}(),w=function(){function e(e,t){this.format=e,this.fdSelect=t}return e.prototype={getFDIndex:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}},e}();t.CFFFDSelect=w;var _=function(){function e(){this.offsets=Object.create(null)}return e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new n.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,r){if(!(e in this.offsets))throw new n.FormatError("Not tracking location of ".concat(e));for(var a=r.data,i=this.offsets[e],o=5,s=0,l=t.length;s<l;++s){var c=s*o+i,u=c+1,d=c+2,h=c+3,f=c+4;if(29!==a[c]||0!==a[u]||0!==a[d]||0!==a[h]||0!==a[f])throw new n.FormatError("writing to an offset that is not empty");var p=t[s];a[c]=29,a[u]=p>>24&255,a[d]=p>>16&255,a[h]=p>>8&255,a[f]=255&p}}},e}(),k=function(){function e(e){this.cff=e}return e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var a=this.compileNameIndex(e.names);if(t.add(a),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 l=e.fdArray[o],c=i.slice(0);l.hasName("FontMatrix")&&(c=n.Util.transform(c,l.getByName("FontMatrix"))),l.setByName("FontMatrix",c)}}e.topDict.setByName("charset",0);var u=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(u.output);var d=u.trackers[0],h=this.compileStringIndex(e.strings.strings);t.add(h);var f=this.compileIndex(e.globalSubrIndex);if(t.add(f),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)d.setEntryLocation("Encoding",[e.encoding.format],t);else{var p=this.compileEncoding(e.encoding);d.setEntryLocation("Encoding",[t.length],t),t.add(p)}var g=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);d.setEntryLocation("charset",[t.length],t),t.add(g);var v=this.compileCharStrings(e.charStrings);if(d.setEntryLocation("CharStrings",[t.length],t),t.add(v),e.isCIDFont){d.setEntryLocation("FDSelect",[t.length],t);var m=this.compileFDSelect(e.fdSelect);t.add(m),u=this.compileTopDicts(e.fdArray,t.length,!0),d.setEntryLocation("FDArray",[t.length],t),t.add(u.output);var b=u.trackers;this.compilePrivateDicts(e.fdArray,b,t)}return this.compilePrivateDicts([e.topDict],[d],t),t.add([0]),t.data},encodeNumber:function(e){return parseFloat(e)!==parseInt(e,10)||isNaN(e)?this.encodeFloat(e):this.encodeInteger(e)},encodeFloat:function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var n=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*n)/n).toString()}var a,i,o="";for(a=0,i=t.length;a<i;++a){var s=t[a];o+="e"===s?"-"===t[++a]?"c":"b":"."===s?"a":"-"===s?"e":s}o+=1&o.length?"f":"ff";var l=[30];for(a=0,i=o.length;a<i;a+=2)l.push(parseInt(o.substring(a,a+2),16));return l},encodeInteger:function(e){var t;return e>=-107&&e<=107?t=[e+139]:e>=108&&e<=1131?(e-=108,t=[247+(e>>8),255&e]):e>=-1131&&e<=-108?(e=-e-108,t=[251+(e>>8),255&e]):t=e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],t},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new f,r=0,a=e.length;r<a;++r){for(var i=e[r],o=Math.min(i.length,127),s=new Array(o),l=0;l<o;l++){var c=i[l];(c<"!"||c>"~"||"["===c||"]"===c||"("===c||")"===c||"{"===c||"}"===c||"<"===c||">"===c||"/"===c||"%"===c)&&(c="_"),s[l]=c}s=s.join(""),""===s&&(s="Bad_Font_Name"),t.add((0,n.stringToBytes)(s))}return this.compileIndex(t)},compileTopDicts:function(e,t,r){for(var n=[],a=new f,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 l=new _,c=this.compileDict(s,l);n.push(l),a.add(c),l.offset(t)}return a=this.compileIndex(a,n),{trackers:n,output:a}},compilePrivateDicts:function(e,t,r){for(var a=0,i=e.length;a<i;++a){var o=e[a],s=o.privateDict;if(!s||!o.hasName("Private"))throw new n.FormatError("There must be a private dictionary.");var l=new _,c=this.compileDict(s,l),u=r.length;if(l.offset(u),c.length||(u=0),t[a].setEntryLocation("Private",[c.length,u],r),r.add(c),s.subrsIndex&&s.hasName("Subrs")){var d=this.compileIndex(s.subrsIndex);l.setEntryLocation("Subrs",[c.length],r),r.add(d)}}},compileDict:function(e,t){for(var r=[],a=e.order,i=0;i<a.length;++i){var o=a[i];if(o in e.values){var s=e.values[o],l=e.types[o];if(Array.isArray(l)||(l=[l]),Array.isArray(s)||(s=[s]),0!==s.length){for(var c=0,u=l.length;c<u;++c){var d=l[c],h=s[c];switch(d){case"num":case"sid":r=r.concat(this.encodeNumber(h));break;case"offset":var f=e.keyToNameMap[o];t.isTracking(f)||t.track(f,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 n.FormatError("Unknown data type of ".concat(d))}}r=r.concat(e.opcodes[o])}}}return r},compileStringIndex:function(e){for(var t=new f,r=0,a=e.length;r<a;++r)t.add((0,n.stringToBytes)(e[r]));return this.compileIndex(t)},compileGlobalSubrIndex:function(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))},compileCharStrings:function(e){for(var t=new f,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)},compileCharset:function(e,t,r,a){var i,o=t-1;if(a)i=new Uint8Array([2,0,0,o>>8&255,255&o]);else{var s=1+2*o;i=new Uint8Array(s),i[0]=0;for(var l=0,c=e.charset.length,u=!1,d=1;d<i.length;d+=2){var h=0;if(l<c){var f=e.charset[l++];h=r.getSID(f),-1===h&&(h=0,u||(u=!0,(0,n.warn)("Couldn't find ".concat(f," in CFF strings"))))}i[d]=h>>8&255,i[d+1]=255&h}}return this.compileTypedArray(i)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){var t,r,n=e.format;switch(n){case 0:for(t=new Uint8Array(1+e.fdSelect.length),t[0]=n,r=0;r<e.fdSelect.length;r++)t[r+1]=e.fdSelect[r];break;case 3:var a=0,i=e.fdSelect[0],o=[n,0,0,a>>8&255,255&a,i];for(r=1;r<e.fdSelect.length;r++){var s=e.fdSelect[r];s!==i&&(o.push(r>>8&255,255&r,s),i=s)}var l=(o.length-3)/3;o[1]=l>>8&255,o[2]=255&l,o.push(r>>8&255,255&r),t=new Uint8Array(o);break}return this.compileTypedArray(t)},compileTypedArray:function(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e[r];return t},compileIndex:function(e,t){t=t||[];var 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 l=1;for(a=0;a<n+1;a++)1===i?o.push(255&l):2===i?o.push(l>>8&255,255&l):3===i?o.push(l>>16&255,l>>8&255,255&l):o.push(l>>>24&255,l>>16&255,l>>8&255,255&l),r[a]&&(l+=r[a].length);for(a=0;a<n;a++){t[a]&&t[a].offset(o.length);for(var c=0,u=r[a].length;c<u;c++)o.push(r[a][c])}return o}},e}();t.CFFCompiler=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpertSubsetCharset=t.ExpertCharset=t.ISOAdobeCharset=void 0;var n=[".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.ISOAdobeCharset=n;var a=[".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.ExpertCharset=a;var i=[".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"];t.ExpertSubsetCharset=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEncoding=u,t.ExpertEncoding=t.ZapfDingbatsEncoding=t.SymbolSetEncoding=t.MacRomanEncoding=t.StandardEncoding=t.WinAnsiEncoding=void 0;var n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=n;var a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=i;var o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=o;var s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=s;var l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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=l;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",""];function u(e){switch(e){case"WinAnsiEncoding":return s;case"StandardEncoding":return o;case"MacRomanEncoding":return i;case"SymbolSetEncoding":return l;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return n;case"MacExpertEncoding":return a;default:return null}}t.ZapfDingbatsEncoding=c},function(e,t,r){var n=r(7).getLookupTableFactory,a=n((function(e){e["A"]=65,e["AE"]=198,e["AEacute"]=508,e["AEmacron"]=482,e["AEsmall"]=63462,e["Aacute"]=193,e["Aacutesmall"]=63457,e["Abreve"]=258,e["Abreveacute"]=7854,e["Abrevecyrillic"]=1232,e["Abrevedotbelow"]=7862,e["Abrevegrave"]=7856,e["Abrevehookabove"]=7858,e["Abrevetilde"]=7860,e["Acaron"]=461,e["Acircle"]=9398,e["Acircumflex"]=194,e["Acircumflexacute"]=7844,e["Acircumflexdotbelow"]=7852,e["Acircumflexgrave"]=7846,e["Acircumflexhookabove"]=7848,e["Acircumflexsmall"]=63458,e["Acircumflextilde"]=7850,e["Acute"]=63177,e["Acutesmall"]=63412,e["Acyrillic"]=1040,e["Adblgrave"]=512,e["Adieresis"]=196,e["Adieresiscyrillic"]=1234,e["Adieresismacron"]=478,e["Adieresissmall"]=63460,e["Adotbelow"]=7840,e["Adotmacron"]=480,e["Agrave"]=192,e["Agravesmall"]=63456,e["Ahookabove"]=7842,e["Aiecyrillic"]=1236,e["Ainvertedbreve"]=514,e["Alpha"]=913,e["Alphatonos"]=902,e["Amacron"]=256,e["Amonospace"]=65313,e["Aogonek"]=260,e["Aring"]=197,e["Aringacute"]=506,e["Aringbelow"]=7680,e["Aringsmall"]=63461,e["Asmall"]=63329,e["Atilde"]=195,e["Atildesmall"]=63459,e["Aybarmenian"]=1329,e["B"]=66,e["Bcircle"]=9399,e["Bdotaccent"]=7682,e["Bdotbelow"]=7684,e["Becyrillic"]=1041,e["Benarmenian"]=1330,e["Beta"]=914,e["Bhook"]=385,e["Blinebelow"]=7686,e["Bmonospace"]=65314,e["Brevesmall"]=63220,e["Bsmall"]=63330,e["Btopbar"]=386,e["C"]=67,e["Caarmenian"]=1342,e["Cacute"]=262,e["Caron"]=63178,e["Caronsmall"]=63221,e["Ccaron"]=268,e["Ccedilla"]=199,e["Ccedillaacute"]=7688,e["Ccedillasmall"]=63463,e["Ccircle"]=9400,e["Ccircumflex"]=264,e["Cdot"]=266,e["Cdotaccent"]=266,e["Cedillasmall"]=63416,e["Chaarmenian"]=1353,e["Cheabkhasiancyrillic"]=1212,e["Checyrillic"]=1063,e["Chedescenderabkhasiancyrillic"]=1214,e["Chedescendercyrillic"]=1206,e["Chedieresiscyrillic"]=1268,e["Cheharmenian"]=1347,e["Chekhakassiancyrillic"]=1227,e["Cheverticalstrokecyrillic"]=1208,e["Chi"]=935,e["Chook"]=391,e["Circumflexsmall"]=63222,e["Cmonospace"]=65315,e["Coarmenian"]=1361,e["Csmall"]=63331,e["D"]=68,e["DZ"]=497,e["DZcaron"]=452,e["Daarmenian"]=1332,e["Dafrican"]=393,e["Dcaron"]=270,e["Dcedilla"]=7696,e["Dcircle"]=9401,e["Dcircumflexbelow"]=7698,e["Dcroat"]=272,e["Ddotaccent"]=7690,e["Ddotbelow"]=7692,e["Decyrillic"]=1044,e["Deicoptic"]=1006,e["Delta"]=8710,e["Deltagreek"]=916,e["Dhook"]=394,e["Dieresis"]=63179,e["DieresisAcute"]=63180,e["DieresisGrave"]=63181,e["Dieresissmall"]=63400,e["Digammagreek"]=988,e["Djecyrillic"]=1026,e["Dlinebelow"]=7694,e["Dmonospace"]=65316,e["Dotaccentsmall"]=63223,e["Dslash"]=272,e["Dsmall"]=63332,e["Dtopbar"]=395,e["Dz"]=498,e["Dzcaron"]=453,e["Dzeabkhasiancyrillic"]=1248,e["Dzecyrillic"]=1029,e["Dzhecyrillic"]=1039,e["E"]=69,e["Eacute"]=201,e["Eacutesmall"]=63465,e["Ebreve"]=276,e["Ecaron"]=282,e["Ecedillabreve"]=7708,e["Echarmenian"]=1333,e["Ecircle"]=9402,e["Ecircumflex"]=202,e["Ecircumflexacute"]=7870,e["Ecircumflexbelow"]=7704,e["Ecircumflexdotbelow"]=7878,e["Ecircumflexgrave"]=7872,e["Ecircumflexhookabove"]=7874,e["Ecircumflexsmall"]=63466,e["Ecircumflextilde"]=7876,e["Ecyrillic"]=1028,e["Edblgrave"]=516,e["Edieresis"]=203,e["Edieresissmall"]=63467,e["Edot"]=278,e["Edotaccent"]=278,e["Edotbelow"]=7864,e["Efcyrillic"]=1060,e["Egrave"]=200,e["Egravesmall"]=63464,e["Eharmenian"]=1335,e["Ehookabove"]=7866,e["Eightroman"]=8551,e["Einvertedbreve"]=518,e["Eiotifiedcyrillic"]=1124,e["Elcyrillic"]=1051,e["Elevenroman"]=8554,e["Emacron"]=274,e["Emacronacute"]=7702,e["Emacrongrave"]=7700,e["Emcyrillic"]=1052,e["Emonospace"]=65317,e["Encyrillic"]=1053,e["Endescendercyrillic"]=1186,e["Eng"]=330,e["Enghecyrillic"]=1188,e["Enhookcyrillic"]=1223,e["Eogonek"]=280,e["Eopen"]=400,e["Epsilon"]=917,e["Epsilontonos"]=904,e["Ercyrillic"]=1056,e["Ereversed"]=398,e["Ereversedcyrillic"]=1069,e["Escyrillic"]=1057,e["Esdescendercyrillic"]=1194,e["Esh"]=425,e["Esmall"]=63333,e["Eta"]=919,e["Etarmenian"]=1336,e["Etatonos"]=905,e["Eth"]=208,e["Ethsmall"]=63472,e["Etilde"]=7868,e["Etildebelow"]=7706,e["Euro"]=8364,e["Ezh"]=439,e["Ezhcaron"]=494,e["Ezhreversed"]=440,e["F"]=70,e["Fcircle"]=9403,e["Fdotaccent"]=7710,e["Feharmenian"]=1366,e["Feicoptic"]=996,e["Fhook"]=401,e["Fitacyrillic"]=1138,e["Fiveroman"]=8548,e["Fmonospace"]=65318,e["Fourroman"]=8547,e["Fsmall"]=63334,e["G"]=71,e["GBsquare"]=13191,e["Gacute"]=500,e["Gamma"]=915,e["Gammaafrican"]=404,e["Gangiacoptic"]=1002,e["Gbreve"]=286,e["Gcaron"]=486,e["Gcedilla"]=290,e["Gcircle"]=9404,e["Gcircumflex"]=284,e["Gcommaaccent"]=290,e["Gdot"]=288,e["Gdotaccent"]=288,e["Gecyrillic"]=1043,e["Ghadarmenian"]=1346,e["Ghemiddlehookcyrillic"]=1172,e["Ghestrokecyrillic"]=1170,e["Gheupturncyrillic"]=1168,e["Ghook"]=403,e["Gimarmenian"]=1331,e["Gjecyrillic"]=1027,e["Gmacron"]=7712,e["Gmonospace"]=65319,e["Grave"]=63182,e["Gravesmall"]=63328,e["Gsmall"]=63335,e["Gsmallhook"]=667,e["Gstroke"]=484,e["H"]=72,e["H18533"]=9679,e["H18543"]=9642,e["H18551"]=9643,e["H22073"]=9633,e["HPsquare"]=13259,e["Haabkhasiancyrillic"]=1192,e["Hadescendercyrillic"]=1202,e["Hardsigncyrillic"]=1066,e["Hbar"]=294,e["Hbrevebelow"]=7722,e["Hcedilla"]=7720,e["Hcircle"]=9405,e["Hcircumflex"]=292,e["Hdieresis"]=7718,e["Hdotaccent"]=7714,e["Hdotbelow"]=7716,e["Hmonospace"]=65320,e["Hoarmenian"]=1344,e["Horicoptic"]=1e3,e["Hsmall"]=63336,e["Hungarumlaut"]=63183,e["Hungarumlautsmall"]=63224,e["Hzsquare"]=13200,e["I"]=73,e["IAcyrillic"]=1071,e["IJ"]=306,e["IUcyrillic"]=1070,e["Iacute"]=205,e["Iacutesmall"]=63469,e["Ibreve"]=300,e["Icaron"]=463,e["Icircle"]=9406,e["Icircumflex"]=206,e["Icircumflexsmall"]=63470,e["Icyrillic"]=1030,e["Idblgrave"]=520,e["Idieresis"]=207,e["Idieresisacute"]=7726,e["Idieresiscyrillic"]=1252,e["Idieresissmall"]=63471,e["Idot"]=304,e["Idotaccent"]=304,e["Idotbelow"]=7882,e["Iebrevecyrillic"]=1238,e["Iecyrillic"]=1045,e["Ifraktur"]=8465,e["Igrave"]=204,e["Igravesmall"]=63468,e["Ihookabove"]=7880,e["Iicyrillic"]=1048,e["Iinvertedbreve"]=522,e["Iishortcyrillic"]=1049,e["Imacron"]=298,e["Imacroncyrillic"]=1250,e["Imonospace"]=65321,e["Iniarmenian"]=1339,e["Iocyrillic"]=1025,e["Iogonek"]=302,e["Iota"]=921,e["Iotaafrican"]=406,e["Iotadieresis"]=938,e["Iotatonos"]=906,e["Ismall"]=63337,e["Istroke"]=407,e["Itilde"]=296,e["Itildebelow"]=7724,e["Izhitsacyrillic"]=1140,e["Izhitsadblgravecyrillic"]=1142,e["J"]=74,e["Jaarmenian"]=1345,e["Jcircle"]=9407,e["Jcircumflex"]=308,e["Jecyrillic"]=1032,e["Jheharmenian"]=1355,e["Jmonospace"]=65322,e["Jsmall"]=63338,e["K"]=75,e["KBsquare"]=13189,e["KKsquare"]=13261,e["Kabashkircyrillic"]=1184,e["Kacute"]=7728,e["Kacyrillic"]=1050,e["Kadescendercyrillic"]=1178,e["Kahookcyrillic"]=1219,e["Kappa"]=922,e["Kastrokecyrillic"]=1182,e["Kaverticalstrokecyrillic"]=1180,e["Kcaron"]=488,e["Kcedilla"]=310,e["Kcircle"]=9408,e["Kcommaaccent"]=310,e["Kdotbelow"]=7730,e["Keharmenian"]=1364,e["Kenarmenian"]=1343,e["Khacyrillic"]=1061,e["Kheicoptic"]=998,e["Khook"]=408,e["Kjecyrillic"]=1036,e["Klinebelow"]=7732,e["Kmonospace"]=65323,e["Koppacyrillic"]=1152,e["Koppagreek"]=990,e["Ksicyrillic"]=1134,e["Ksmall"]=63339,e["L"]=76,e["LJ"]=455,e["LL"]=63167,e["Lacute"]=313,e["Lambda"]=923,e["Lcaron"]=317,e["Lcedilla"]=315,e["Lcircle"]=9409,e["Lcircumflexbelow"]=7740,e["Lcommaaccent"]=315,e["Ldot"]=319,e["Ldotaccent"]=319,e["Ldotbelow"]=7734,e["Ldotbelowmacron"]=7736,e["Liwnarmenian"]=1340,e["Lj"]=456,e["Ljecyrillic"]=1033,e["Llinebelow"]=7738,e["Lmonospace"]=65324,e["Lslash"]=321,e["Lslashsmall"]=63225,e["Lsmall"]=63340,e["M"]=77,e["MBsquare"]=13190,e["Macron"]=63184,e["Macronsmall"]=63407,e["Macute"]=7742,e["Mcircle"]=9410,e["Mdotaccent"]=7744,e["Mdotbelow"]=7746,e["Menarmenian"]=1348,e["Mmonospace"]=65325,e["Msmall"]=63341,e["Mturned"]=412,e["Mu"]=924,e["N"]=78,e["NJ"]=458,e["Nacute"]=323,e["Ncaron"]=327,e["Ncedilla"]=325,e["Ncircle"]=9411,e["Ncircumflexbelow"]=7754,e["Ncommaaccent"]=325,e["Ndotaccent"]=7748,e["Ndotbelow"]=7750,e["Nhookleft"]=413,e["Nineroman"]=8552,e["Nj"]=459,e["Njecyrillic"]=1034,e["Nlinebelow"]=7752,e["Nmonospace"]=65326,e["Nowarmenian"]=1350,e["Nsmall"]=63342,e["Ntilde"]=209,e["Ntildesmall"]=63473,e["Nu"]=925,e["O"]=79,e["OE"]=338,e["OEsmall"]=63226,e["Oacute"]=211,e["Oacutesmall"]=63475,e["Obarredcyrillic"]=1256,e["Obarreddieresiscyrillic"]=1258,e["Obreve"]=334,e["Ocaron"]=465,e["Ocenteredtilde"]=415,e["Ocircle"]=9412,e["Ocircumflex"]=212,e["Ocircumflexacute"]=7888,e["Ocircumflexdotbelow"]=7896,e["Ocircumflexgrave"]=7890,e["Ocircumflexhookabove"]=7892,e["Ocircumflexsmall"]=63476,e["Ocircumflextilde"]=7894,e["Ocyrillic"]=1054,e["Odblacute"]=336,e["Odblgrave"]=524,e["Odieresis"]=214,e["Odieresiscyrillic"]=1254,e["Odieresissmall"]=63478,e["Odotbelow"]=7884,e["Ogoneksmall"]=63227,e["Ograve"]=210,e["Ogravesmall"]=63474,e["Oharmenian"]=1365,e["Ohm"]=8486,e["Ohookabove"]=7886,e["Ohorn"]=416,e["Ohornacute"]=7898,e["Ohorndotbelow"]=7906,e["Ohorngrave"]=7900,e["Ohornhookabove"]=7902,e["Ohorntilde"]=7904,e["Ohungarumlaut"]=336,e["Oi"]=418,e["Oinvertedbreve"]=526,e["Omacron"]=332,e["Omacronacute"]=7762,e["Omacrongrave"]=7760,e["Omega"]=8486,e["Omegacyrillic"]=1120,e["Omegagreek"]=937,e["Omegaroundcyrillic"]=1146,e["Omegatitlocyrillic"]=1148,e["Omegatonos"]=911,e["Omicron"]=927,e["Omicrontonos"]=908,e["Omonospace"]=65327,e["Oneroman"]=8544,e["Oogonek"]=490,e["Oogonekmacron"]=492,e["Oopen"]=390,e["Oslash"]=216,e["Oslashacute"]=510,e["Oslashsmall"]=63480,e["Osmall"]=63343,e["Ostrokeacute"]=510,e["Otcyrillic"]=1150,e["Otilde"]=213,e["Otildeacute"]=7756,e["Otildedieresis"]=7758,e["Otildesmall"]=63477,e["P"]=80,e["Pacute"]=7764,e["Pcircle"]=9413,e["Pdotaccent"]=7766,e["Pecyrillic"]=1055,e["Peharmenian"]=1354,e["Pemiddlehookcyrillic"]=1190,e["Phi"]=934,e["Phook"]=420,e["Pi"]=928,e["Piwrarmenian"]=1363,e["Pmonospace"]=65328,e["Psi"]=936,e["Psicyrillic"]=1136,e["Psmall"]=63344,e["Q"]=81,e["Qcircle"]=9414,e["Qmonospace"]=65329,e["Qsmall"]=63345,e["R"]=82,e["Raarmenian"]=1356,e["Racute"]=340,e["Rcaron"]=344,e["Rcedilla"]=342,e["Rcircle"]=9415,e["Rcommaaccent"]=342,e["Rdblgrave"]=528,e["Rdotaccent"]=7768,e["Rdotbelow"]=7770,e["Rdotbelowmacron"]=7772,e["Reharmenian"]=1360,e["Rfraktur"]=8476,e["Rho"]=929,e["Ringsmall"]=63228,e["Rinvertedbreve"]=530,e["Rlinebelow"]=7774,e["Rmonospace"]=65330,e["Rsmall"]=63346,e["Rsmallinverted"]=641,e["Rsmallinvertedsuperior"]=694,e["S"]=83,e["SF010000"]=9484,e["SF020000"]=9492,e["SF030000"]=9488,e["SF040000"]=9496,e["SF050000"]=9532,e["SF060000"]=9516,e["SF070000"]=9524,e["SF080000"]=9500,e["SF090000"]=9508,e["SF100000"]=9472,e["SF110000"]=9474,e["SF190000"]=9569,e["SF200000"]=9570,e["SF210000"]=9558,e["SF220000"]=9557,e["SF230000"]=9571,e["SF240000"]=9553,e["SF250000"]=9559,e["SF260000"]=9565,e["SF270000"]=9564,e["SF280000"]=9563,e["SF360000"]=9566,e["SF370000"]=9567,e["SF380000"]=9562,e["SF390000"]=9556,e["SF400000"]=9577,e["SF410000"]=9574,e["SF420000"]=9568,e["SF430000"]=9552,e["SF440000"]=9580,e["SF450000"]=9575,e["SF460000"]=9576,e["SF470000"]=9572,e["SF480000"]=9573,e["SF490000"]=9561,e["SF500000"]=9560,e["SF510000"]=9554,e["SF520000"]=9555,e["SF530000"]=9579,e["SF540000"]=9578,e["Sacute"]=346,e["Sacutedotaccent"]=7780,e["Sampigreek"]=992,e["Scaron"]=352,e["Scarondotaccent"]=7782,e["Scaronsmall"]=63229,e["Scedilla"]=350,e["Schwa"]=399,e["Schwacyrillic"]=1240,e["Schwadieresiscyrillic"]=1242,e["Scircle"]=9416,e["Scircumflex"]=348,e["Scommaaccent"]=536,e["Sdotaccent"]=7776,e["Sdotbelow"]=7778,e["Sdotbelowdotaccent"]=7784,e["Seharmenian"]=1357,e["Sevenroman"]=8550,e["Shaarmenian"]=1351,e["Shacyrillic"]=1064,e["Shchacyrillic"]=1065,e["Sheicoptic"]=994,e["Shhacyrillic"]=1210,e["Shimacoptic"]=1004,e["Sigma"]=931,e["Sixroman"]=8549,e["Smonospace"]=65331,e["Softsigncyrillic"]=1068,e["Ssmall"]=63347,e["Stigmagreek"]=986,e["T"]=84,e["Tau"]=932,e["Tbar"]=358,e["Tcaron"]=356,e["Tcedilla"]=354,e["Tcircle"]=9417,e["Tcircumflexbelow"]=7792,e["Tcommaaccent"]=354,e["Tdotaccent"]=7786,e["Tdotbelow"]=7788,e["Tecyrillic"]=1058,e["Tedescendercyrillic"]=1196,e["Tenroman"]=8553,e["Tetsecyrillic"]=1204,e["Theta"]=920,e["Thook"]=428,e["Thorn"]=222,e["Thornsmall"]=63486,e["Threeroman"]=8546,e["Tildesmall"]=63230,e["Tiwnarmenian"]=1359,e["Tlinebelow"]=7790,e["Tmonospace"]=65332,e["Toarmenian"]=1337,e["Tonefive"]=444,e["Tonesix"]=388,e["Tonetwo"]=423,e["Tretroflexhook"]=430,e["Tsecyrillic"]=1062,e["Tshecyrillic"]=1035,e["Tsmall"]=63348,e["Twelveroman"]=8555,e["Tworoman"]=8545,e["U"]=85,e["Uacute"]=218,e["Uacutesmall"]=63482,e["Ubreve"]=364,e["Ucaron"]=467,e["Ucircle"]=9418,e["Ucircumflex"]=219,e["Ucircumflexbelow"]=7798,e["Ucircumflexsmall"]=63483,e["Ucyrillic"]=1059,e["Udblacute"]=368,e["Udblgrave"]=532,e["Udieresis"]=220,e["Udieresisacute"]=471,e["Udieresisbelow"]=7794,e["Udieresiscaron"]=473,e["Udieresiscyrillic"]=1264,e["Udieresisgrave"]=475,e["Udieresismacron"]=469,e["Udieresissmall"]=63484,e["Udotbelow"]=7908,e["Ugrave"]=217,e["Ugravesmall"]=63481,e["Uhookabove"]=7910,e["Uhorn"]=431,e["Uhornacute"]=7912,e["Uhorndotbelow"]=7920,e["Uhorngrave"]=7914,e["Uhornhookabove"]=7916,e["Uhorntilde"]=7918,e["Uhungarumlaut"]=368,e["Uhungarumlautcyrillic"]=1266,e["Uinvertedbreve"]=534,e["Ukcyrillic"]=1144,e["Umacron"]=362,e["Umacroncyrillic"]=1262,e["Umacrondieresis"]=7802,e["Umonospace"]=65333,e["Uogonek"]=370,e["Upsilon"]=933,e["Upsilon1"]=978,e["Upsilonacutehooksymbolgreek"]=979,e["Upsilonafrican"]=433,e["Upsilondieresis"]=939,e["Upsilondieresishooksymbolgreek"]=980,e["Upsilonhooksymbol"]=978,e["Upsilontonos"]=910,e["Uring"]=366,e["Ushortcyrillic"]=1038,e["Usmall"]=63349,e["Ustraightcyrillic"]=1198,e["Ustraightstrokecyrillic"]=1200,e["Utilde"]=360,e["Utildeacute"]=7800,e["Utildebelow"]=7796,e["V"]=86,e["Vcircle"]=9419,e["Vdotbelow"]=7806,e["Vecyrillic"]=1042,e["Vewarmenian"]=1358,e["Vhook"]=434,e["Vmonospace"]=65334,e["Voarmenian"]=1352,e["Vsmall"]=63350,e["Vtilde"]=7804,e["W"]=87,e["Wacute"]=7810,e["Wcircle"]=9420,e["Wcircumflex"]=372,e["Wdieresis"]=7812,e["Wdotaccent"]=7814,e["Wdotbelow"]=7816,e["Wgrave"]=7808,e["Wmonospace"]=65335,e["Wsmall"]=63351,e["X"]=88,e["Xcircle"]=9421,e["Xdieresis"]=7820,e["Xdotaccent"]=7818,e["Xeharmenian"]=1341,e["Xi"]=926,e["Xmonospace"]=65336,e["Xsmall"]=63352,e["Y"]=89,e["Yacute"]=221,e["Yacutesmall"]=63485,e["Yatcyrillic"]=1122,e["Ycircle"]=9422,e["Ycircumflex"]=374,e["Ydieresis"]=376,e["Ydieresissmall"]=63487,e["Ydotaccent"]=7822,e["Ydotbelow"]=7924,e["Yericyrillic"]=1067,e["Yerudieresiscyrillic"]=1272,e["Ygrave"]=7922,e["Yhook"]=435,e["Yhookabove"]=7926,e["Yiarmenian"]=1349,e["Yicyrillic"]=1031,e["Yiwnarmenian"]=1362,e["Ymonospace"]=65337,e["Ysmall"]=63353,e["Ytilde"]=7928,e["Yusbigcyrillic"]=1130,e["Yusbigiotifiedcyrillic"]=1132,e["Yuslittlecyrillic"]=1126,e["Yuslittleiotifiedcyrillic"]=1128,e["Z"]=90,e["Zaarmenian"]=1334,e["Zacute"]=377,e["Zcaron"]=381,e["Zcaronsmall"]=63231,e["Zcircle"]=9423,e["Zcircumflex"]=7824,e["Zdot"]=379,e["Zdotaccent"]=379,e["Zdotbelow"]=7826,e["Zecyrillic"]=1047,e["Zedescendercyrillic"]=1176,e["Zedieresiscyrillic"]=1246,e["Zeta"]=918,e["Zhearmenian"]=1338,e["Zhebrevecyrillic"]=1217,e["Zhecyrillic"]=1046,e["Zhedescendercyrillic"]=1174,e["Zhedieresiscyrillic"]=1244,e["Zlinebelow"]=7828,e["Zmonospace"]=65338,e["Zsmall"]=63354,e["Zstroke"]=437,e["a"]=97,e["aabengali"]=2438,e["aacute"]=225,e["aadeva"]=2310,e["aagujarati"]=2694,e["aagurmukhi"]=2566,e["aamatragurmukhi"]=2622,e["aarusquare"]=13059,e["aavowelsignbengali"]=2494,e["aavowelsigndeva"]=2366,e["aavowelsigngujarati"]=2750,e["abbreviationmarkarmenian"]=1375,e["abbreviationsigndeva"]=2416,e["abengali"]=2437,e["abopomofo"]=12570,e["abreve"]=259,e["abreveacute"]=7855,e["abrevecyrillic"]=1233,e["abrevedotbelow"]=7863,e["abrevegrave"]=7857,e["abrevehookabove"]=7859,e["abrevetilde"]=7861,e["acaron"]=462,e["acircle"]=9424,e["acircumflex"]=226,e["acircumflexacute"]=7845,e["acircumflexdotbelow"]=7853,e["acircumflexgrave"]=7847,e["acircumflexhookabove"]=7849,e["acircumflextilde"]=7851,e["acute"]=180,e["acutebelowcmb"]=791,e["acutecmb"]=769,e["acutecomb"]=769,e["acutedeva"]=2388,e["acutelowmod"]=719,e["acutetonecmb"]=833,e["acyrillic"]=1072,e["adblgrave"]=513,e["addakgurmukhi"]=2673,e["adeva"]=2309,e["adieresis"]=228,e["adieresiscyrillic"]=1235,e["adieresismacron"]=479,e["adotbelow"]=7841,e["adotmacron"]=481,e["ae"]=230,e["aeacute"]=509,e["aekorean"]=12624,e["aemacron"]=483,e["afii00208"]=8213,e["afii08941"]=8356,e["afii10017"]=1040,e["afii10018"]=1041,e["afii10019"]=1042,e["afii10020"]=1043,e["afii10021"]=1044,e["afii10022"]=1045,e["afii10023"]=1025,e["afii10024"]=1046,e["afii10025"]=1047,e["afii10026"]=1048,e["afii10027"]=1049,e["afii10028"]=1050,e["afii10029"]=1051,e["afii10030"]=1052;e["afii10031"]=1053,e["afii10032"]=1054,e["afii10033"]=1055,e["afii10034"]=1056,e["afii10035"]=1057,e["afii10036"]=1058,e["afii10037"]=1059,e["afii10038"]=1060,e["afii10039"]=1061,e["afii10040"]=1062,e["afii10041"]=1063,e["afii10042"]=1064,e["afii10043"]=1065,e["afii10044"]=1066,e["afii10045"]=1067,e["afii10046"]=1068,e["afii10047"]=1069,e["afii10048"]=1070,e["afii10049"]=1071,e["afii10050"]=1168,e["afii10051"]=1026,e["afii10052"]=1027,e["afii10053"]=1028,e["afii10054"]=1029,e["afii10055"]=1030,e["afii10056"]=1031,e["afii10057"]=1032,e["afii10058"]=1033,e["afii10059"]=1034,e["afii10060"]=1035,e["afii10061"]=1036,e["afii10062"]=1038,e["afii10063"]=63172,e["afii10064"]=63173,e["afii10065"]=1072,e["afii10066"]=1073,e["afii10067"]=1074,e["afii10068"]=1075,e["afii10069"]=1076,e["afii10070"]=1077,e["afii10071"]=1105,e["afii10072"]=1078,e["afii10073"]=1079,e["afii10074"]=1080,e["afii10075"]=1081,e["afii10076"]=1082,e["afii10077"]=1083,e["afii10078"]=1084,e["afii10079"]=1085,e["afii10080"]=1086,e["afii10081"]=1087,e["afii10082"]=1088,e["afii10083"]=1089,e["afii10084"]=1090,e["afii10085"]=1091,e["afii10086"]=1092,e["afii10087"]=1093,e["afii10088"]=1094,e["afii10089"]=1095,e["afii10090"]=1096,e["afii10091"]=1097,e["afii10092"]=1098,e["afii10093"]=1099,e["afii10094"]=1100,e["afii10095"]=1101,e["afii10096"]=1102,e["afii10097"]=1103,e["afii10098"]=1169,e["afii10099"]=1106,e["afii10100"]=1107,e["afii10101"]=1108,e["afii10102"]=1109,e["afii10103"]=1110,e["afii10104"]=1111,e["afii10105"]=1112,e["afii10106"]=1113,e["afii10107"]=1114,e["afii10108"]=1115,e["afii10109"]=1116,e["afii10110"]=1118,e["afii10145"]=1039,e["afii10146"]=1122,e["afii10147"]=1138,e["afii10148"]=1140,e["afii10192"]=63174,e["afii10193"]=1119,e["afii10194"]=1123,e["afii10195"]=1139,e["afii10196"]=1141,e["afii10831"]=63175,e["afii10832"]=63176,e["afii10846"]=1241,e["afii299"]=8206,e["afii300"]=8207,e["afii301"]=8205,e["afii57381"]=1642,e["afii57388"]=1548,e["afii57392"]=1632,e["afii57393"]=1633,e["afii57394"]=1634,e["afii57395"]=1635,e["afii57396"]=1636,e["afii57397"]=1637,e["afii57398"]=1638,e["afii57399"]=1639,e["afii57400"]=1640,e["afii57401"]=1641,e["afii57403"]=1563,e["afii57407"]=1567,e["afii57409"]=1569,e["afii57410"]=1570,e["afii57411"]=1571,e["afii57412"]=1572,e["afii57413"]=1573,e["afii57414"]=1574,e["afii57415"]=1575,e["afii57416"]=1576,e["afii57417"]=1577,e["afii57418"]=1578,e["afii57419"]=1579,e["afii57420"]=1580,e["afii57421"]=1581,e["afii57422"]=1582,e["afii57423"]=1583,e["afii57424"]=1584,e["afii57425"]=1585,e["afii57426"]=1586,e["afii57427"]=1587,e["afii57428"]=1588,e["afii57429"]=1589,e["afii57430"]=1590,e["afii57431"]=1591,e["afii57432"]=1592,e["afii57433"]=1593,e["afii57434"]=1594,e["afii57440"]=1600,e["afii57441"]=1601,e["afii57442"]=1602,e["afii57443"]=1603,e["afii57444"]=1604,e["afii57445"]=1605,e["afii57446"]=1606,e["afii57448"]=1608,e["afii57449"]=1609,e["afii57450"]=1610,e["afii57451"]=1611,e["afii57452"]=1612,e["afii57453"]=1613,e["afii57454"]=1614,e["afii57455"]=1615,e["afii57456"]=1616,e["afii57457"]=1617,e["afii57458"]=1618,e["afii57470"]=1607,e["afii57505"]=1700,e["afii57506"]=1662,e["afii57507"]=1670,e["afii57508"]=1688,e["afii57509"]=1711,e["afii57511"]=1657,e["afii57512"]=1672,e["afii57513"]=1681,e["afii57514"]=1722,e["afii57519"]=1746,e["afii57534"]=1749,e["afii57636"]=8362,e["afii57645"]=1470,e["afii57658"]=1475,e["afii57664"]=1488,e["afii57665"]=1489,e["afii57666"]=1490,e["afii57667"]=1491,e["afii57668"]=1492,e["afii57669"]=1493,e["afii57670"]=1494,e["afii57671"]=1495,e["afii57672"]=1496,e["afii57673"]=1497,e["afii57674"]=1498,e["afii57675"]=1499,e["afii57676"]=1500,e["afii57677"]=1501,e["afii57678"]=1502,e["afii57679"]=1503,e["afii57680"]=1504,e["afii57681"]=1505,e["afii57682"]=1506,e["afii57683"]=1507,e["afii57684"]=1508,e["afii57685"]=1509,e["afii57686"]=1510,e["afii57687"]=1511,e["afii57688"]=1512,e["afii57689"]=1513,e["afii57690"]=1514,e["afii57694"]=64298,e["afii57695"]=64299,e["afii57700"]=64331,e["afii57705"]=64287,e["afii57716"]=1520,e["afii57717"]=1521,e["afii57718"]=1522,e["afii57723"]=64309,e["afii57793"]=1460,e["afii57794"]=1461,e["afii57795"]=1462,e["afii57796"]=1467,e["afii57797"]=1464,e["afii57798"]=1463,e["afii57799"]=1456,e["afii57800"]=1458,e["afii57801"]=1457,e["afii57802"]=1459,e["afii57803"]=1474,e["afii57804"]=1473,e["afii57806"]=1465,e["afii57807"]=1468,e["afii57839"]=1469,e["afii57841"]=1471,e["afii57842"]=1472,e["afii57929"]=700,e["afii61248"]=8453,e["afii61289"]=8467,e["afii61352"]=8470,e["afii61573"]=8236,e["afii61574"]=8237,e["afii61575"]=8238,e["afii61664"]=8204,e["afii63167"]=1645,e["afii64937"]=701,e["agrave"]=224,e["agujarati"]=2693,e["agurmukhi"]=2565,e["ahiragana"]=12354,e["ahookabove"]=7843,e["aibengali"]=2448,e["aibopomofo"]=12574,e["aideva"]=2320,e["aiecyrillic"]=1237,e["aigujarati"]=2704,e["aigurmukhi"]=2576,e["aimatragurmukhi"]=2632,e["ainarabic"]=1593,e["ainfinalarabic"]=65226,e["aininitialarabic"]=65227,e["ainmedialarabic"]=65228,e["ainvertedbreve"]=515,e["aivowelsignbengali"]=2504,e["aivowelsigndeva"]=2376,e["aivowelsigngujarati"]=2760,e["akatakana"]=12450,e["akatakanahalfwidth"]=65393,e["akorean"]=12623,e["alef"]=1488,e["alefarabic"]=1575,e["alefdageshhebrew"]=64304,e["aleffinalarabic"]=65166,e["alefhamzaabovearabic"]=1571,e["alefhamzaabovefinalarabic"]=65156,e["alefhamzabelowarabic"]=1573,e["alefhamzabelowfinalarabic"]=65160,e["alefhebrew"]=1488,e["aleflamedhebrew"]=64335,e["alefmaddaabovearabic"]=1570,e["alefmaddaabovefinalarabic"]=65154,e["alefmaksuraarabic"]=1609,e["alefmaksurafinalarabic"]=65264,e["alefmaksurainitialarabic"]=65267,e["alefmaksuramedialarabic"]=65268,e["alefpatahhebrew"]=64302,e["alefqamatshebrew"]=64303,e["aleph"]=8501,e["allequal"]=8780,e["alpha"]=945,e["alphatonos"]=940,e["amacron"]=257,e["amonospace"]=65345,e["ampersand"]=38,e["ampersandmonospace"]=65286,e["ampersandsmall"]=63270,e["amsquare"]=13250,e["anbopomofo"]=12578,e["angbopomofo"]=12580,e["angbracketleft"]=12296,e["angbracketright"]=12297,e["angkhankhuthai"]=3674,e["angle"]=8736,e["anglebracketleft"]=12296,e["anglebracketleftvertical"]=65087,e["anglebracketright"]=12297,e["anglebracketrightvertical"]=65088,e["angleleft"]=9001,e["angleright"]=9002,e["angstrom"]=8491,e["anoteleia"]=903,e["anudattadeva"]=2386,e["anusvarabengali"]=2434,e["anusvaradeva"]=2306,e["anusvaragujarati"]=2690,e["aogonek"]=261,e["apaatosquare"]=13056,e["aparen"]=9372,e["apostrophearmenian"]=1370,e["apostrophemod"]=700,e["apple"]=63743,e["approaches"]=8784,e["approxequal"]=8776,e["approxequalorimage"]=8786,e["approximatelyequal"]=8773,e["araeaekorean"]=12686,e["araeakorean"]=12685,e["arc"]=8978,e["arighthalfring"]=7834,e["aring"]=229,e["aringacute"]=507,e["aringbelow"]=7681,e["arrowboth"]=8596,e["arrowdashdown"]=8675,e["arrowdashleft"]=8672,e["arrowdashright"]=8674,e["arrowdashup"]=8673,e["arrowdblboth"]=8660,e["arrowdbldown"]=8659,e["arrowdblleft"]=8656,e["arrowdblright"]=8658,e["arrowdblup"]=8657,e["arrowdown"]=8595,e["arrowdownleft"]=8601,e["arrowdownright"]=8600,e["arrowdownwhite"]=8681,e["arrowheaddownmod"]=709,e["arrowheadleftmod"]=706,e["arrowheadrightmod"]=707,e["arrowheadupmod"]=708,e["arrowhorizex"]=63719,e["arrowleft"]=8592,e["arrowleftdbl"]=8656,e["arrowleftdblstroke"]=8653,e["arrowleftoverright"]=8646,e["arrowleftwhite"]=8678,e["arrowright"]=8594,e["arrowrightdblstroke"]=8655,e["arrowrightheavy"]=10142,e["arrowrightoverleft"]=8644,e["arrowrightwhite"]=8680,e["arrowtableft"]=8676,e["arrowtabright"]=8677,e["arrowup"]=8593,e["arrowupdn"]=8597,e["arrowupdnbse"]=8616,e["arrowupdownbase"]=8616,e["arrowupleft"]=8598,e["arrowupleftofdown"]=8645,e["arrowupright"]=8599,e["arrowupwhite"]=8679,e["arrowvertex"]=63718,e["asciicircum"]=94,e["asciicircummonospace"]=65342,e["asciitilde"]=126,e["asciitildemonospace"]=65374,e["ascript"]=593,e["ascriptturned"]=594,e["asmallhiragana"]=12353,e["asmallkatakana"]=12449,e["asmallkatakanahalfwidth"]=65383,e["asterisk"]=42,e["asteriskaltonearabic"]=1645,e["asteriskarabic"]=1645,e["asteriskmath"]=8727,e["asteriskmonospace"]=65290,e["asterisksmall"]=65121,e["asterism"]=8258,e["asuperior"]=63209,e["asymptoticallyequal"]=8771,e["at"]=64,e["atilde"]=227,e["atmonospace"]=65312,e["atsmall"]=65131,e["aturned"]=592,e["aubengali"]=2452,e["aubopomofo"]=12576,e["audeva"]=2324,e["augujarati"]=2708,e["augurmukhi"]=2580,e["aulengthmarkbengali"]=2519,e["aumatragurmukhi"]=2636,e["auvowelsignbengali"]=2508,e["auvowelsigndeva"]=2380,e["auvowelsigngujarati"]=2764,e["avagrahadeva"]=2365,e["aybarmenian"]=1377,e["ayin"]=1506,e["ayinaltonehebrew"]=64288,e["ayinhebrew"]=1506,e["b"]=98,e["babengali"]=2476,e["backslash"]=92,e["backslashmonospace"]=65340,e["badeva"]=2348,e["bagujarati"]=2732,e["bagurmukhi"]=2604,e["bahiragana"]=12400,e["bahtthai"]=3647,e["bakatakana"]=12496,e["bar"]=124,e["barmonospace"]=65372,e["bbopomofo"]=12549,e["bcircle"]=9425,e["bdotaccent"]=7683,e["bdotbelow"]=7685,e["beamedsixteenthnotes"]=9836,e["because"]=8757,e["becyrillic"]=1073,e["beharabic"]=1576,e["behfinalarabic"]=65168,e["behinitialarabic"]=65169,e["behiragana"]=12409,e["behmedialarabic"]=65170,e["behmeeminitialarabic"]=64671,e["behmeemisolatedarabic"]=64520,e["behnoonfinalarabic"]=64621,e["bekatakana"]=12505,e["benarmenian"]=1378,e["bet"]=1489,e["beta"]=946,e["betasymbolgreek"]=976,e["betdagesh"]=64305,e["betdageshhebrew"]=64305,e["bethebrew"]=1489,e["betrafehebrew"]=64332,e["bhabengali"]=2477,e["bhadeva"]=2349,e["bhagujarati"]=2733,e["bhagurmukhi"]=2605,e["bhook"]=595,e["bihiragana"]=12403,e["bikatakana"]=12499,e["bilabialclick"]=664,e["bindigurmukhi"]=2562,e["birusquare"]=13105,e["blackcircle"]=9679,e["blackdiamond"]=9670,e["blackdownpointingtriangle"]=9660,e["blackleftpointingpointer"]=9668,e["blackleftpointingtriangle"]=9664,e["blacklenticularbracketleft"]=12304,e["blacklenticularbracketleftvertical"]=65083,e["blacklenticularbracketright"]=12305,e["blacklenticularbracketrightvertical"]=65084,e["blacklowerlefttriangle"]=9699,e["blacklowerrighttriangle"]=9698,e["blackrectangle"]=9644,e["blackrightpointingpointer"]=9658,e["blackrightpointingtriangle"]=9654,e["blacksmallsquare"]=9642,e["blacksmilingface"]=9787,e["blacksquare"]=9632,e["blackstar"]=9733,e["blackupperlefttriangle"]=9700,e["blackupperrighttriangle"]=9701,e["blackuppointingsmalltriangle"]=9652,e["blackuppointingtriangle"]=9650,e["blank"]=9251,e["blinebelow"]=7687,e["block"]=9608,e["bmonospace"]=65346,e["bobaimaithai"]=3610,e["bohiragana"]=12412,e["bokatakana"]=12508,e["bparen"]=9373,e["bqsquare"]=13251,e["braceex"]=63732,e["braceleft"]=123,e["braceleftbt"]=63731,e["braceleftmid"]=63730,e["braceleftmonospace"]=65371,e["braceleftsmall"]=65115,e["bracelefttp"]=63729,e["braceleftvertical"]=65079,e["braceright"]=125,e["bracerightbt"]=63742,e["bracerightmid"]=63741,e["bracerightmonospace"]=65373,e["bracerightsmall"]=65116,e["bracerighttp"]=63740,e["bracerightvertical"]=65080,e["bracketleft"]=91,e["bracketleftbt"]=63728,e["bracketleftex"]=63727,e["bracketleftmonospace"]=65339,e["bracketlefttp"]=63726,e["bracketright"]=93,e["bracketrightbt"]=63739,e["bracketrightex"]=63738,e["bracketrightmonospace"]=65341,e["bracketrighttp"]=63737,e["breve"]=728,e["brevebelowcmb"]=814,e["brevecmb"]=774,e["breveinvertedbelowcmb"]=815,e["breveinvertedcmb"]=785,e["breveinverteddoublecmb"]=865,e["bridgebelowcmb"]=810,e["bridgeinvertedbelowcmb"]=826,e["brokenbar"]=166,e["bstroke"]=384,e["bsuperior"]=63210,e["btopbar"]=387,e["buhiragana"]=12406,e["bukatakana"]=12502,e["bullet"]=8226,e["bulletinverse"]=9688,e["bulletoperator"]=8729,e["bullseye"]=9678,e["c"]=99,e["caarmenian"]=1390,e["cabengali"]=2458,e["cacute"]=263,e["cadeva"]=2330,e["cagujarati"]=2714,e["cagurmukhi"]=2586,e["calsquare"]=13192,e["candrabindubengali"]=2433,e["candrabinducmb"]=784,e["candrabindudeva"]=2305,e["candrabindugujarati"]=2689,e["capslock"]=8682,e["careof"]=8453,e["caron"]=711,e["caronbelowcmb"]=812,e["caroncmb"]=780,e["carriagereturn"]=8629,e["cbopomofo"]=12568,e["ccaron"]=269,e["ccedilla"]=231,e["ccedillaacute"]=7689,e["ccircle"]=9426,e["ccircumflex"]=265,e["ccurl"]=597,e["cdot"]=267,e["cdotaccent"]=267,e["cdsquare"]=13253,e["cedilla"]=184,e["cedillacmb"]=807,e["cent"]=162,e["centigrade"]=8451,e["centinferior"]=63199,e["centmonospace"]=65504,e["centoldstyle"]=63394,e["centsuperior"]=63200,e["chaarmenian"]=1401,e["chabengali"]=2459,e["chadeva"]=2331,e["chagujarati"]=2715,e["chagurmukhi"]=2587,e["chbopomofo"]=12564,e["cheabkhasiancyrillic"]=1213,e["checkmark"]=10003,e["checyrillic"]=1095,e["chedescenderabkhasiancyrillic"]=1215,e["chedescendercyrillic"]=1207,e["chedieresiscyrillic"]=1269,e["cheharmenian"]=1395,e["chekhakassiancyrillic"]=1228,e["cheverticalstrokecyrillic"]=1209,e["chi"]=967,e["chieuchacirclekorean"]=12919,e["chieuchaparenkorean"]=12823,e["chieuchcirclekorean"]=12905,e["chieuchkorean"]=12618,e["chieuchparenkorean"]=12809,e["chochangthai"]=3594,e["chochanthai"]=3592,e["chochingthai"]=3593,e["chochoethai"]=3596,e["chook"]=392,e["cieucacirclekorean"]=12918,e["cieucaparenkorean"]=12822,e["cieuccirclekorean"]=12904,e["cieuckorean"]=12616,e["cieucparenkorean"]=12808,e["cieucuparenkorean"]=12828,e["circle"]=9675,e["circlecopyrt"]=169,e["circlemultiply"]=8855,e["circleot"]=8857,e["circleplus"]=8853,e["circlepostalmark"]=12342,e["circlewithlefthalfblack"]=9680,e["circlewithrighthalfblack"]=9681,e["circumflex"]=710,e["circumflexbelowcmb"]=813,e["circumflexcmb"]=770,e["clear"]=8999,e["clickalveolar"]=450,e["clickdental"]=448,e["clicklateral"]=449,e["clickretroflex"]=451,e["club"]=9827,e["clubsuitblack"]=9827,e["clubsuitwhite"]=9831,e["cmcubedsquare"]=13220,e["cmonospace"]=65347,e["cmsquaredsquare"]=13216,e["coarmenian"]=1409,e["colon"]=58,e["colonmonetary"]=8353,e["colonmonospace"]=65306,e["colonsign"]=8353,e["colonsmall"]=65109,e["colontriangularhalfmod"]=721,e["colontriangularmod"]=720,e["comma"]=44,e["commaabovecmb"]=787,e["commaaboverightcmb"]=789,e["commaaccent"]=63171,e["commaarabic"]=1548,e["commaarmenian"]=1373,e["commainferior"]=63201,e["commamonospace"]=65292,e["commareversedabovecmb"]=788,e["commareversedmod"]=701,e["commasmall"]=65104,e["commasuperior"]=63202,e["commaturnedabovecmb"]=786,e["commaturnedmod"]=699,e["compass"]=9788,e["congruent"]=8773,e["contourintegral"]=8750,e["control"]=8963,e["controlACK"]=6,e["controlBEL"]=7,e["controlBS"]=8,e["controlCAN"]=24,e["controlCR"]=13,e["controlDC1"]=17,e["controlDC2"]=18,e["controlDC3"]=19,e["controlDC4"]=20,e["controlDEL"]=127,e["controlDLE"]=16,e["controlEM"]=25,e["controlENQ"]=5,e["controlEOT"]=4,e["controlESC"]=27,e["controlETB"]=23,e["controlETX"]=3,e["controlFF"]=12,e["controlFS"]=28,e["controlGS"]=29,e["controlHT"]=9,e["controlLF"]=10,e["controlNAK"]=21,e["controlNULL"]=0,e["controlRS"]=30,e["controlSI"]=15,e["controlSO"]=14,e["controlSOT"]=2,e["controlSTX"]=1,e["controlSUB"]=26,e["controlSYN"]=22,e["controlUS"]=31,e["controlVT"]=11,e["copyright"]=169,e["copyrightsans"]=63721,e["copyrightserif"]=63193,e["cornerbracketleft"]=12300,e["cornerbracketlefthalfwidth"]=65378,e["cornerbracketleftvertical"]=65089,e["cornerbracketright"]=12301,e["cornerbracketrighthalfwidth"]=65379,e["cornerbracketrightvertical"]=65090,e["corporationsquare"]=13183,e["cosquare"]=13255,e["coverkgsquare"]=13254,e["cparen"]=9374,e["cruzeiro"]=8354,e["cstretched"]=663,e["curlyand"]=8911,e["curlyor"]=8910,e["currency"]=164,e["cyrBreve"]=63185,e["cyrFlex"]=63186,e["cyrbreve"]=63188,e["cyrflex"]=63189,e["d"]=100,e["daarmenian"]=1380,e["dabengali"]=2470,e["dadarabic"]=1590,e["dadeva"]=2342,e["dadfinalarabic"]=65214,e["dadinitialarabic"]=65215,e["dadmedialarabic"]=65216,e["dagesh"]=1468,e["dageshhebrew"]=1468,e["dagger"]=8224,e["daggerdbl"]=8225,e["dagujarati"]=2726,e["dagurmukhi"]=2598,e["dahiragana"]=12384,e["dakatakana"]=12480,e["dalarabic"]=1583,e["dalet"]=1491,e["daletdagesh"]=64307,e["daletdageshhebrew"]=64307,e["dalethebrew"]=1491,e["dalfinalarabic"]=65194,e["dammaarabic"]=1615,e["dammalowarabic"]=1615,e["dammatanaltonearabic"]=1612,e["dammatanarabic"]=1612,e["danda"]=2404,e["dargahebrew"]=1447,e["dargalefthebrew"]=1447,e["dasiapneumatacyrilliccmb"]=1157,e["dblGrave"]=63187,e["dblanglebracketleft"]=12298,e["dblanglebracketleftvertical"]=65085,e["dblanglebracketright"]=12299,e["dblanglebracketrightvertical"]=65086,e["dblarchinvertedbelowcmb"]=811,e["dblarrowleft"]=8660,e["dblarrowright"]=8658,e["dbldanda"]=2405,e["dblgrave"]=63190,e["dblgravecmb"]=783,e["dblintegral"]=8748,e["dbllowline"]=8215,e["dbllowlinecmb"]=819,e["dbloverlinecmb"]=831,e["dblprimemod"]=698,e["dblverticalbar"]=8214,e["dblverticallineabovecmb"]=782,e["dbopomofo"]=12553,e["dbsquare"]=13256,e["dcaron"]=271,e["dcedilla"]=7697,e["dcircle"]=9427,e["dcircumflexbelow"]=7699,e["dcroat"]=273,e["ddabengali"]=2465,e["ddadeva"]=2337,e["ddagujarati"]=2721,e["ddagurmukhi"]=2593,e["ddalarabic"]=1672,e["ddalfinalarabic"]=64393,e["dddhadeva"]=2396,e["ddhabengali"]=2466,e["ddhadeva"]=2338,e["ddhagujarati"]=2722,e["ddhagurmukhi"]=2594,e["ddotaccent"]=7691,e["ddotbelow"]=7693,e["decimalseparatorarabic"]=1643,e["decimalseparatorpersian"]=1643,e["decyrillic"]=1076,e["degree"]=176,e["dehihebrew"]=1453,e["dehiragana"]=12391,e["deicoptic"]=1007,e["dekatakana"]=12487,e["deleteleft"]=9003,e["deleteright"]=8998,e["delta"]=948,e["deltaturned"]=397,e["denominatorminusonenumeratorbengali"]=2552,e["dezh"]=676,e["dhabengali"]=2471,e["dhadeva"]=2343,e["dhagujarati"]=2727,e["dhagurmukhi"]=2599,e["dhook"]=599,e["dialytikatonos"]=901,e["dialytikatonoscmb"]=836,e["diamond"]=9830,e["diamondsuitwhite"]=9826,e["dieresis"]=168,e["dieresisacute"]=63191,e["dieresisbelowcmb"]=804,e["dieresiscmb"]=776,e["dieresisgrave"]=63192,e["dieresistonos"]=901,e["dihiragana"]=12386,e["dikatakana"]=12482,e["dittomark"]=12291,e["divide"]=247,e["divides"]=8739,e["divisionslash"]=8725,e["djecyrillic"]=1106,e["dkshade"]=9619,e["dlinebelow"]=7695,e["dlsquare"]=13207,e["dmacron"]=273,e["dmonospace"]=65348,e["dnblock"]=9604,e["dochadathai"]=3598,e["dodekthai"]=3604,e["dohiragana"]=12393,e["dokatakana"]=12489,e["dollar"]=36;e["dollarinferior"]=63203,e["dollarmonospace"]=65284,e["dollaroldstyle"]=63268,e["dollarsmall"]=65129,e["dollarsuperior"]=63204,e["dong"]=8363,e["dorusquare"]=13094,e["dotaccent"]=729,e["dotaccentcmb"]=775,e["dotbelowcmb"]=803,e["dotbelowcomb"]=803,e["dotkatakana"]=12539,e["dotlessi"]=305,e["dotlessj"]=63166,e["dotlessjstrokehook"]=644,e["dotmath"]=8901,e["dottedcircle"]=9676,e["doubleyodpatah"]=64287,e["doubleyodpatahhebrew"]=64287,e["downtackbelowcmb"]=798,e["downtackmod"]=725,e["dparen"]=9375,e["dsuperior"]=63211,e["dtail"]=598,e["dtopbar"]=396,e["duhiragana"]=12389,e["dukatakana"]=12485,e["dz"]=499,e["dzaltone"]=675,e["dzcaron"]=454,e["dzcurl"]=677,e["dzeabkhasiancyrillic"]=1249,e["dzecyrillic"]=1109,e["dzhecyrillic"]=1119,e["e"]=101,e["eacute"]=233,e["earth"]=9793,e["ebengali"]=2447,e["ebopomofo"]=12572,e["ebreve"]=277,e["ecandradeva"]=2317,e["ecandragujarati"]=2701,e["ecandravowelsigndeva"]=2373,e["ecandravowelsigngujarati"]=2757,e["ecaron"]=283,e["ecedillabreve"]=7709,e["echarmenian"]=1381,e["echyiwnarmenian"]=1415,e["ecircle"]=9428,e["ecircumflex"]=234,e["ecircumflexacute"]=7871,e["ecircumflexbelow"]=7705,e["ecircumflexdotbelow"]=7879,e["ecircumflexgrave"]=7873,e["ecircumflexhookabove"]=7875,e["ecircumflextilde"]=7877,e["ecyrillic"]=1108,e["edblgrave"]=517,e["edeva"]=2319,e["edieresis"]=235,e["edot"]=279,e["edotaccent"]=279,e["edotbelow"]=7865,e["eegurmukhi"]=2575,e["eematragurmukhi"]=2631,e["efcyrillic"]=1092,e["egrave"]=232,e["egujarati"]=2703,e["eharmenian"]=1383,e["ehbopomofo"]=12573,e["ehiragana"]=12360,e["ehookabove"]=7867,e["eibopomofo"]=12575,e["eight"]=56,e["eightarabic"]=1640,e["eightbengali"]=2542,e["eightcircle"]=9319,e["eightcircleinversesansserif"]=10129,e["eightdeva"]=2414,e["eighteencircle"]=9329,e["eighteenparen"]=9349,e["eighteenperiod"]=9369,e["eightgujarati"]=2798,e["eightgurmukhi"]=2670,e["eighthackarabic"]=1640,e["eighthangzhou"]=12328,e["eighthnotebeamed"]=9835,e["eightideographicparen"]=12839,e["eightinferior"]=8328,e["eightmonospace"]=65304,e["eightoldstyle"]=63288,e["eightparen"]=9339,e["eightperiod"]=9359,e["eightpersian"]=1784,e["eightroman"]=8567,e["eightsuperior"]=8312,e["eightthai"]=3672,e["einvertedbreve"]=519,e["eiotifiedcyrillic"]=1125,e["ekatakana"]=12456,e["ekatakanahalfwidth"]=65396,e["ekonkargurmukhi"]=2676,e["ekorean"]=12628,e["elcyrillic"]=1083,e["element"]=8712,e["elevencircle"]=9322,e["elevenparen"]=9342,e["elevenperiod"]=9362,e["elevenroman"]=8570,e["ellipsis"]=8230,e["ellipsisvertical"]=8942,e["emacron"]=275,e["emacronacute"]=7703,e["emacrongrave"]=7701,e["emcyrillic"]=1084,e["emdash"]=8212,e["emdashvertical"]=65073,e["emonospace"]=65349,e["emphasismarkarmenian"]=1371,e["emptyset"]=8709,e["enbopomofo"]=12579,e["encyrillic"]=1085,e["endash"]=8211,e["endashvertical"]=65074,e["endescendercyrillic"]=1187,e["eng"]=331,e["engbopomofo"]=12581,e["enghecyrillic"]=1189,e["enhookcyrillic"]=1224,e["enspace"]=8194,e["eogonek"]=281,e["eokorean"]=12627,e["eopen"]=603,e["eopenclosed"]=666,e["eopenreversed"]=604,e["eopenreversedclosed"]=606,e["eopenreversedhook"]=605,e["eparen"]=9376,e["epsilon"]=949,e["epsilontonos"]=941,e["equal"]=61,e["equalmonospace"]=65309,e["equalsmall"]=65126,e["equalsuperior"]=8316,e["equivalence"]=8801,e["erbopomofo"]=12582,e["ercyrillic"]=1088,e["ereversed"]=600,e["ereversedcyrillic"]=1101,e["escyrillic"]=1089,e["esdescendercyrillic"]=1195,e["esh"]=643,e["eshcurl"]=646,e["eshortdeva"]=2318,e["eshortvowelsigndeva"]=2374,e["eshreversedloop"]=426,e["eshsquatreversed"]=645,e["esmallhiragana"]=12359,e["esmallkatakana"]=12455,e["esmallkatakanahalfwidth"]=65386,e["estimated"]=8494,e["esuperior"]=63212,e["eta"]=951,e["etarmenian"]=1384,e["etatonos"]=942,e["eth"]=240,e["etilde"]=7869,e["etildebelow"]=7707,e["etnahtafoukhhebrew"]=1425,e["etnahtafoukhlefthebrew"]=1425,e["etnahtahebrew"]=1425,e["etnahtalefthebrew"]=1425,e["eturned"]=477,e["eukorean"]=12641,e["euro"]=8364,e["evowelsignbengali"]=2503,e["evowelsigndeva"]=2375,e["evowelsigngujarati"]=2759,e["exclam"]=33,e["exclamarmenian"]=1372,e["exclamdbl"]=8252,e["exclamdown"]=161,e["exclamdownsmall"]=63393,e["exclammonospace"]=65281,e["exclamsmall"]=63265,e["existential"]=8707,e["ezh"]=658,e["ezhcaron"]=495,e["ezhcurl"]=659,e["ezhreversed"]=441,e["ezhtail"]=442,e["f"]=102,e["fadeva"]=2398,e["fagurmukhi"]=2654,e["fahrenheit"]=8457,e["fathaarabic"]=1614,e["fathalowarabic"]=1614,e["fathatanarabic"]=1611,e["fbopomofo"]=12552,e["fcircle"]=9429,e["fdotaccent"]=7711,e["feharabic"]=1601,e["feharmenian"]=1414,e["fehfinalarabic"]=65234,e["fehinitialarabic"]=65235,e["fehmedialarabic"]=65236,e["feicoptic"]=997,e["female"]=9792,e["ff"]=64256,e["f_f"]=64256,e["ffi"]=64259,e["ffl"]=64260,e["fi"]=64257,e["fifteencircle"]=9326,e["fifteenparen"]=9346,e["fifteenperiod"]=9366,e["figuredash"]=8210,e["filledbox"]=9632,e["filledrect"]=9644,e["finalkaf"]=1498,e["finalkafdagesh"]=64314,e["finalkafdageshhebrew"]=64314,e["finalkafhebrew"]=1498,e["finalmem"]=1501,e["finalmemhebrew"]=1501,e["finalnun"]=1503,e["finalnunhebrew"]=1503,e["finalpe"]=1507,e["finalpehebrew"]=1507,e["finaltsadi"]=1509,e["finaltsadihebrew"]=1509,e["firsttonechinese"]=713,e["fisheye"]=9673,e["fitacyrillic"]=1139,e["five"]=53,e["fivearabic"]=1637,e["fivebengali"]=2539,e["fivecircle"]=9316,e["fivecircleinversesansserif"]=10126,e["fivedeva"]=2411,e["fiveeighths"]=8541,e["fivegujarati"]=2795,e["fivegurmukhi"]=2667,e["fivehackarabic"]=1637,e["fivehangzhou"]=12325,e["fiveideographicparen"]=12836,e["fiveinferior"]=8325,e["fivemonospace"]=65301,e["fiveoldstyle"]=63285,e["fiveparen"]=9336,e["fiveperiod"]=9356,e["fivepersian"]=1781,e["fiveroman"]=8564,e["fivesuperior"]=8309,e["fivethai"]=3669,e["fl"]=64258,e["florin"]=402,e["fmonospace"]=65350,e["fmsquare"]=13209,e["fofanthai"]=3615,e["fofathai"]=3613,e["fongmanthai"]=3663,e["forall"]=8704,e["four"]=52,e["fourarabic"]=1636,e["fourbengali"]=2538,e["fourcircle"]=9315,e["fourcircleinversesansserif"]=10125,e["fourdeva"]=2410,e["fourgujarati"]=2794,e["fourgurmukhi"]=2666,e["fourhackarabic"]=1636,e["fourhangzhou"]=12324,e["fourideographicparen"]=12835,e["fourinferior"]=8324,e["fourmonospace"]=65300,e["fournumeratorbengali"]=2551,e["fouroldstyle"]=63284,e["fourparen"]=9335,e["fourperiod"]=9355,e["fourpersian"]=1780,e["fourroman"]=8563,e["foursuperior"]=8308,e["fourteencircle"]=9325,e["fourteenparen"]=9345,e["fourteenperiod"]=9365,e["fourthai"]=3668,e["fourthtonechinese"]=715,e["fparen"]=9377,e["fraction"]=8260,e["franc"]=8355,e["g"]=103,e["gabengali"]=2455,e["gacute"]=501,e["gadeva"]=2327,e["gafarabic"]=1711,e["gaffinalarabic"]=64403,e["gafinitialarabic"]=64404,e["gafmedialarabic"]=64405,e["gagujarati"]=2711,e["gagurmukhi"]=2583,e["gahiragana"]=12364,e["gakatakana"]=12460,e["gamma"]=947,e["gammalatinsmall"]=611,e["gammasuperior"]=736,e["gangiacoptic"]=1003,e["gbopomofo"]=12557,e["gbreve"]=287,e["gcaron"]=487,e["gcedilla"]=291,e["gcircle"]=9430,e["gcircumflex"]=285,e["gcommaaccent"]=291,e["gdot"]=289,e["gdotaccent"]=289,e["gecyrillic"]=1075,e["gehiragana"]=12370,e["gekatakana"]=12466,e["geometricallyequal"]=8785,e["gereshaccenthebrew"]=1436,e["gereshhebrew"]=1523,e["gereshmuqdamhebrew"]=1437,e["germandbls"]=223,e["gershayimaccenthebrew"]=1438,e["gershayimhebrew"]=1524,e["getamark"]=12307,e["ghabengali"]=2456,e["ghadarmenian"]=1394,e["ghadeva"]=2328,e["ghagujarati"]=2712,e["ghagurmukhi"]=2584,e["ghainarabic"]=1594,e["ghainfinalarabic"]=65230,e["ghaininitialarabic"]=65231,e["ghainmedialarabic"]=65232,e["ghemiddlehookcyrillic"]=1173,e["ghestrokecyrillic"]=1171,e["gheupturncyrillic"]=1169,e["ghhadeva"]=2394,e["ghhagurmukhi"]=2650,e["ghook"]=608,e["ghzsquare"]=13203,e["gihiragana"]=12366,e["gikatakana"]=12462,e["gimarmenian"]=1379,e["gimel"]=1490,e["gimeldagesh"]=64306,e["gimeldageshhebrew"]=64306,e["gimelhebrew"]=1490,e["gjecyrillic"]=1107,e["glottalinvertedstroke"]=446,e["glottalstop"]=660,e["glottalstopinverted"]=662,e["glottalstopmod"]=704,e["glottalstopreversed"]=661,e["glottalstopreversedmod"]=705,e["glottalstopreversedsuperior"]=740,e["glottalstopstroke"]=673,e["glottalstopstrokereversed"]=674,e["gmacron"]=7713,e["gmonospace"]=65351,e["gohiragana"]=12372,e["gokatakana"]=12468,e["gparen"]=9378,e["gpasquare"]=13228,e["gradient"]=8711,e["grave"]=96,e["gravebelowcmb"]=790,e["gravecmb"]=768,e["gravecomb"]=768,e["gravedeva"]=2387,e["gravelowmod"]=718,e["gravemonospace"]=65344,e["gravetonecmb"]=832,e["greater"]=62,e["greaterequal"]=8805,e["greaterequalorless"]=8923,e["greatermonospace"]=65310,e["greaterorequivalent"]=8819,e["greaterorless"]=8823,e["greateroverequal"]=8807,e["greatersmall"]=65125,e["gscript"]=609,e["gstroke"]=485,e["guhiragana"]=12368,e["guillemotleft"]=171,e["guillemotright"]=187,e["guilsinglleft"]=8249,e["guilsinglright"]=8250,e["gukatakana"]=12464,e["guramusquare"]=13080,e["gysquare"]=13257,e["h"]=104,e["haabkhasiancyrillic"]=1193,e["haaltonearabic"]=1729,e["habengali"]=2489,e["hadescendercyrillic"]=1203,e["hadeva"]=2361,e["hagujarati"]=2745,e["hagurmukhi"]=2617,e["haharabic"]=1581,e["hahfinalarabic"]=65186,e["hahinitialarabic"]=65187,e["hahiragana"]=12399,e["hahmedialarabic"]=65188,e["haitusquare"]=13098,e["hakatakana"]=12495,e["hakatakanahalfwidth"]=65418,e["halantgurmukhi"]=2637,e["hamzaarabic"]=1569,e["hamzalowarabic"]=1569,e["hangulfiller"]=12644,e["hardsigncyrillic"]=1098,e["harpoonleftbarbup"]=8636,e["harpoonrightbarbup"]=8640,e["hasquare"]=13258,e["hatafpatah"]=1458,e["hatafpatah16"]=1458,e["hatafpatah23"]=1458,e["hatafpatah2f"]=1458,e["hatafpatahhebrew"]=1458,e["hatafpatahnarrowhebrew"]=1458,e["hatafpatahquarterhebrew"]=1458,e["hatafpatahwidehebrew"]=1458,e["hatafqamats"]=1459,e["hatafqamats1b"]=1459,e["hatafqamats28"]=1459,e["hatafqamats34"]=1459,e["hatafqamatshebrew"]=1459,e["hatafqamatsnarrowhebrew"]=1459,e["hatafqamatsquarterhebrew"]=1459,e["hatafqamatswidehebrew"]=1459,e["hatafsegol"]=1457,e["hatafsegol17"]=1457,e["hatafsegol24"]=1457,e["hatafsegol30"]=1457,e["hatafsegolhebrew"]=1457,e["hatafsegolnarrowhebrew"]=1457,e["hatafsegolquarterhebrew"]=1457,e["hatafsegolwidehebrew"]=1457,e["hbar"]=295,e["hbopomofo"]=12559,e["hbrevebelow"]=7723,e["hcedilla"]=7721,e["hcircle"]=9431,e["hcircumflex"]=293,e["hdieresis"]=7719,e["hdotaccent"]=7715,e["hdotbelow"]=7717,e["he"]=1492,e["heart"]=9829,e["heartsuitblack"]=9829,e["heartsuitwhite"]=9825,e["hedagesh"]=64308,e["hedageshhebrew"]=64308,e["hehaltonearabic"]=1729,e["heharabic"]=1607,e["hehebrew"]=1492,e["hehfinalaltonearabic"]=64423,e["hehfinalalttwoarabic"]=65258,e["hehfinalarabic"]=65258,e["hehhamzaabovefinalarabic"]=64421,e["hehhamzaaboveisolatedarabic"]=64420,e["hehinitialaltonearabic"]=64424,e["hehinitialarabic"]=65259,e["hehiragana"]=12408,e["hehmedialaltonearabic"]=64425,e["hehmedialarabic"]=65260,e["heiseierasquare"]=13179,e["hekatakana"]=12504,e["hekatakanahalfwidth"]=65421,e["hekutaarusquare"]=13110,e["henghook"]=615,e["herutusquare"]=13113,e["het"]=1495,e["hethebrew"]=1495,e["hhook"]=614,e["hhooksuperior"]=689,e["hieuhacirclekorean"]=12923,e["hieuhaparenkorean"]=12827,e["hieuhcirclekorean"]=12909,e["hieuhkorean"]=12622,e["hieuhparenkorean"]=12813,e["hihiragana"]=12402,e["hikatakana"]=12498,e["hikatakanahalfwidth"]=65419,e["hiriq"]=1460,e["hiriq14"]=1460,e["hiriq21"]=1460,e["hiriq2d"]=1460,e["hiriqhebrew"]=1460,e["hiriqnarrowhebrew"]=1460,e["hiriqquarterhebrew"]=1460,e["hiriqwidehebrew"]=1460,e["hlinebelow"]=7830,e["hmonospace"]=65352,e["hoarmenian"]=1392,e["hohipthai"]=3627,e["hohiragana"]=12411,e["hokatakana"]=12507,e["hokatakanahalfwidth"]=65422,e["holam"]=1465,e["holam19"]=1465,e["holam26"]=1465,e["holam32"]=1465,e["holamhebrew"]=1465,e["holamnarrowhebrew"]=1465,e["holamquarterhebrew"]=1465,e["holamwidehebrew"]=1465,e["honokhukthai"]=3630,e["hookabovecomb"]=777,e["hookcmb"]=777,e["hookpalatalizedbelowcmb"]=801,e["hookretroflexbelowcmb"]=802,e["hoonsquare"]=13122,e["horicoptic"]=1001,e["horizontalbar"]=8213,e["horncmb"]=795,e["hotsprings"]=9832,e["house"]=8962,e["hparen"]=9379,e["hsuperior"]=688,e["hturned"]=613,e["huhiragana"]=12405,e["huiitosquare"]=13107,e["hukatakana"]=12501,e["hukatakanahalfwidth"]=65420,e["hungarumlaut"]=733,e["hungarumlautcmb"]=779,e["hv"]=405,e["hyphen"]=45,e["hypheninferior"]=63205,e["hyphenmonospace"]=65293,e["hyphensmall"]=65123,e["hyphensuperior"]=63206,e["hyphentwo"]=8208,e["i"]=105,e["iacute"]=237,e["iacyrillic"]=1103,e["ibengali"]=2439,e["ibopomofo"]=12583,e["ibreve"]=301,e["icaron"]=464,e["icircle"]=9432,e["icircumflex"]=238,e["icyrillic"]=1110,e["idblgrave"]=521,e["ideographearthcircle"]=12943,e["ideographfirecircle"]=12939,e["ideographicallianceparen"]=12863,e["ideographiccallparen"]=12858,e["ideographiccentrecircle"]=12965,e["ideographicclose"]=12294,e["ideographiccomma"]=12289,e["ideographiccommaleft"]=65380,e["ideographiccongratulationparen"]=12855,e["ideographiccorrectcircle"]=12963,e["ideographicearthparen"]=12847,e["ideographicenterpriseparen"]=12861,e["ideographicexcellentcircle"]=12957,e["ideographicfestivalparen"]=12864,e["ideographicfinancialcircle"]=12950,e["ideographicfinancialparen"]=12854,e["ideographicfireparen"]=12843,e["ideographichaveparen"]=12850,e["ideographichighcircle"]=12964,e["ideographiciterationmark"]=12293,e["ideographiclaborcircle"]=12952,e["ideographiclaborparen"]=12856,e["ideographicleftcircle"]=12967,e["ideographiclowcircle"]=12966,e["ideographicmedicinecircle"]=12969,e["ideographicmetalparen"]=12846,e["ideographicmoonparen"]=12842,e["ideographicnameparen"]=12852,e["ideographicperiod"]=12290,e["ideographicprintcircle"]=12958,e["ideographicreachparen"]=12867,e["ideographicrepresentparen"]=12857,e["ideographicresourceparen"]=12862,e["ideographicrightcircle"]=12968,e["ideographicsecretcircle"]=12953,e["ideographicselfparen"]=12866,e["ideographicsocietyparen"]=12851,e["ideographicspace"]=12288,e["ideographicspecialparen"]=12853,e["ideographicstockparen"]=12849,e["ideographicstudyparen"]=12859,e["ideographicsunparen"]=12848,e["ideographicsuperviseparen"]=12860,e["ideographicwaterparen"]=12844,e["ideographicwoodparen"]=12845,e["ideographiczero"]=12295,e["ideographmetalcircle"]=12942,e["ideographmooncircle"]=12938,e["ideographnamecircle"]=12948,e["ideographsuncircle"]=12944,e["ideographwatercircle"]=12940,e["ideographwoodcircle"]=12941,e["ideva"]=2311,e["idieresis"]=239,e["idieresisacute"]=7727,e["idieresiscyrillic"]=1253,e["idotbelow"]=7883,e["iebrevecyrillic"]=1239,e["iecyrillic"]=1077,e["ieungacirclekorean"]=12917,e["ieungaparenkorean"]=12821,e["ieungcirclekorean"]=12903,e["ieungkorean"]=12615,e["ieungparenkorean"]=12807,e["igrave"]=236,e["igujarati"]=2695,e["igurmukhi"]=2567,e["ihiragana"]=12356,e["ihookabove"]=7881,e["iibengali"]=2440,e["iicyrillic"]=1080,e["iideva"]=2312,e["iigujarati"]=2696,e["iigurmukhi"]=2568,e["iimatragurmukhi"]=2624,e["iinvertedbreve"]=523,e["iishortcyrillic"]=1081,e["iivowelsignbengali"]=2496,e["iivowelsigndeva"]=2368,e["iivowelsigngujarati"]=2752,e["ij"]=307,e["ikatakana"]=12452,e["ikatakanahalfwidth"]=65394,e["ikorean"]=12643,e["ilde"]=732,e["iluyhebrew"]=1452,e["imacron"]=299,e["imacroncyrillic"]=1251,e["imageorapproximatelyequal"]=8787,e["imatragurmukhi"]=2623,e["imonospace"]=65353,e["increment"]=8710,e["infinity"]=8734,e["iniarmenian"]=1387,e["integral"]=8747,e["integralbottom"]=8993,e["integralbt"]=8993,e["integralex"]=63733,e["integraltop"]=8992,e["integraltp"]=8992,e["intersection"]=8745,e["intisquare"]=13061,e["invbullet"]=9688,e["invcircle"]=9689,e["invsmileface"]=9787,e["iocyrillic"]=1105,e["iogonek"]=303,e["iota"]=953,e["iotadieresis"]=970,e["iotadieresistonos"]=912,e["iotalatin"]=617,e["iotatonos"]=943,e["iparen"]=9380,e["irigurmukhi"]=2674,e["ismallhiragana"]=12355,e["ismallkatakana"]=12451,e["ismallkatakanahalfwidth"]=65384,e["issharbengali"]=2554,e["istroke"]=616,e["isuperior"]=63213,e["iterationhiragana"]=12445,e["iterationkatakana"]=12541,e["itilde"]=297,e["itildebelow"]=7725,e["iubopomofo"]=12585,e["iucyrillic"]=1102,e["ivowelsignbengali"]=2495,e["ivowelsigndeva"]=2367,e["ivowelsigngujarati"]=2751,e["izhitsacyrillic"]=1141,e["izhitsadblgravecyrillic"]=1143,e["j"]=106,e["jaarmenian"]=1393,e["jabengali"]=2460,e["jadeva"]=2332,e["jagujarati"]=2716,e["jagurmukhi"]=2588,e["jbopomofo"]=12560,e["jcaron"]=496,e["jcircle"]=9433,e["jcircumflex"]=309,e["jcrossedtail"]=669,e["jdotlessstroke"]=607,e["jecyrillic"]=1112,e["jeemarabic"]=1580,e["jeemfinalarabic"]=65182,e["jeeminitialarabic"]=65183,e["jeemmedialarabic"]=65184,e["jeharabic"]=1688,e["jehfinalarabic"]=64395,e["jhabengali"]=2461,e["jhadeva"]=2333,e["jhagujarati"]=2717,e["jhagurmukhi"]=2589,e["jheharmenian"]=1403,e["jis"]=12292,e["jmonospace"]=65354,e["jparen"]=9381,e["jsuperior"]=690,e["k"]=107,e["kabashkircyrillic"]=1185,e["kabengali"]=2453,e["kacute"]=7729,e["kacyrillic"]=1082,e["kadescendercyrillic"]=1179,e["kadeva"]=2325,e["kaf"]=1499,e["kafarabic"]=1603,e["kafdagesh"]=64315,e["kafdageshhebrew"]=64315,e["kaffinalarabic"]=65242,e["kafhebrew"]=1499,e["kafinitialarabic"]=65243,e["kafmedialarabic"]=65244,e["kafrafehebrew"]=64333,e["kagujarati"]=2709,e["kagurmukhi"]=2581,e["kahiragana"]=12363,e["kahookcyrillic"]=1220,e["kakatakana"]=12459,e["kakatakanahalfwidth"]=65398,e["kappa"]=954,e["kappasymbolgreek"]=1008,e["kapyeounmieumkorean"]=12657,e["kapyeounphieuphkorean"]=12676,e["kapyeounpieupkorean"]=12664,e["kapyeounssangpieupkorean"]=12665,e["karoriisquare"]=13069,e["kashidaautoarabic"]=1600,e["kashidaautonosidebearingarabic"]=1600,e["kasmallkatakana"]=12533,e["kasquare"]=13188,e["kasraarabic"]=1616,e["kasratanarabic"]=1613,e["kastrokecyrillic"]=1183,e["katahiraprolongmarkhalfwidth"]=65392,e["kaverticalstrokecyrillic"]=1181,e["kbopomofo"]=12558,e["kcalsquare"]=13193,e["kcaron"]=489,e["kcedilla"]=311,e["kcircle"]=9434,e["kcommaaccent"]=311,e["kdotbelow"]=7731,e["keharmenian"]=1412,e["kehiragana"]=12369,e["kekatakana"]=12465,e["kekatakanahalfwidth"]=65401,e["kenarmenian"]=1391,e["kesmallkatakana"]=12534,e["kgreenlandic"]=312,e["khabengali"]=2454,e["khacyrillic"]=1093,e["khadeva"]=2326,e["khagujarati"]=2710,e["khagurmukhi"]=2582,e["khaharabic"]=1582,e["khahfinalarabic"]=65190,e["khahinitialarabic"]=65191,e["khahmedialarabic"]=65192,e["kheicoptic"]=999,e["khhadeva"]=2393,e["khhagurmukhi"]=2649,e["khieukhacirclekorean"]=12920,e["khieukhaparenkorean"]=12824,e["khieukhcirclekorean"]=12906,e["khieukhkorean"]=12619,e["khieukhparenkorean"]=12810,e["khokhaithai"]=3586,e["khokhonthai"]=3589,e["khokhuatthai"]=3587,e["khokhwaithai"]=3588,e["khomutthai"]=3675,e["khook"]=409,e["khorakhangthai"]=3590,e["khzsquare"]=13201,e["kihiragana"]=12365,e["kikatakana"]=12461,e["kikatakanahalfwidth"]=65399,e["kiroguramusquare"]=13077,e["kiromeetorusquare"]=13078,e["kirosquare"]=13076,e["kiyeokacirclekorean"]=12910,e["kiyeokaparenkorean"]=12814,e["kiyeokcirclekorean"]=12896,e["kiyeokkorean"]=12593,e["kiyeokparenkorean"]=12800,e["kiyeoksioskorean"]=12595,e["kjecyrillic"]=1116,e["klinebelow"]=7733,e["klsquare"]=13208,e["kmcubedsquare"]=13222;e["kmonospace"]=65355,e["kmsquaredsquare"]=13218,e["kohiragana"]=12371,e["kohmsquare"]=13248,e["kokaithai"]=3585,e["kokatakana"]=12467,e["kokatakanahalfwidth"]=65402,e["kooposquare"]=13086,e["koppacyrillic"]=1153,e["koreanstandardsymbol"]=12927,e["koroniscmb"]=835,e["kparen"]=9382,e["kpasquare"]=13226,e["ksicyrillic"]=1135,e["ktsquare"]=13263,e["kturned"]=670,e["kuhiragana"]=12367,e["kukatakana"]=12463,e["kukatakanahalfwidth"]=65400,e["kvsquare"]=13240,e["kwsquare"]=13246,e["l"]=108,e["labengali"]=2482,e["lacute"]=314,e["ladeva"]=2354,e["lagujarati"]=2738,e["lagurmukhi"]=2610,e["lakkhangyaothai"]=3653,e["lamaleffinalarabic"]=65276,e["lamalefhamzaabovefinalarabic"]=65272,e["lamalefhamzaaboveisolatedarabic"]=65271,e["lamalefhamzabelowfinalarabic"]=65274,e["lamalefhamzabelowisolatedarabic"]=65273,e["lamalefisolatedarabic"]=65275,e["lamalefmaddaabovefinalarabic"]=65270,e["lamalefmaddaaboveisolatedarabic"]=65269,e["lamarabic"]=1604,e["lambda"]=955,e["lambdastroke"]=411,e["lamed"]=1500,e["lameddagesh"]=64316,e["lameddageshhebrew"]=64316,e["lamedhebrew"]=1500,e["lamfinalarabic"]=65246,e["lamhahinitialarabic"]=64714,e["laminitialarabic"]=65247,e["lamjeeminitialarabic"]=64713,e["lamkhahinitialarabic"]=64715,e["lamlamhehisolatedarabic"]=65010,e["lammedialarabic"]=65248,e["lammeemhahinitialarabic"]=64904,e["lammeeminitialarabic"]=64716,e["largecircle"]=9711,e["lbar"]=410,e["lbelt"]=620,e["lbopomofo"]=12556,e["lcaron"]=318,e["lcedilla"]=316,e["lcircle"]=9435,e["lcircumflexbelow"]=7741,e["lcommaaccent"]=316,e["ldot"]=320,e["ldotaccent"]=320,e["ldotbelow"]=7735,e["ldotbelowmacron"]=7737,e["leftangleabovecmb"]=794,e["lefttackbelowcmb"]=792,e["less"]=60,e["lessequal"]=8804,e["lessequalorgreater"]=8922,e["lessmonospace"]=65308,e["lessorequivalent"]=8818,e["lessorgreater"]=8822,e["lessoverequal"]=8806,e["lesssmall"]=65124,e["lezh"]=622,e["lfblock"]=9612,e["lhookretroflex"]=621,e["lira"]=8356,e["liwnarmenian"]=1388,e["lj"]=457,e["ljecyrillic"]=1113,e["ll"]=63168,e["lladeva"]=2355,e["llagujarati"]=2739,e["llinebelow"]=7739,e["llladeva"]=2356,e["llvocalicbengali"]=2529,e["llvocalicdeva"]=2401,e["llvocalicvowelsignbengali"]=2531,e["llvocalicvowelsigndeva"]=2403,e["lmiddletilde"]=619,e["lmonospace"]=65356,e["lmsquare"]=13264,e["lochulathai"]=3628,e["logicaland"]=8743,e["logicalnot"]=172,e["logicalnotreversed"]=8976,e["logicalor"]=8744,e["lolingthai"]=3621,e["longs"]=383,e["lowlinecenterline"]=65102,e["lowlinecmb"]=818,e["lowlinedashed"]=65101,e["lozenge"]=9674,e["lparen"]=9383,e["lslash"]=322,e["lsquare"]=8467,e["lsuperior"]=63214,e["ltshade"]=9617,e["luthai"]=3622,e["lvocalicbengali"]=2444,e["lvocalicdeva"]=2316,e["lvocalicvowelsignbengali"]=2530,e["lvocalicvowelsigndeva"]=2402,e["lxsquare"]=13267,e["m"]=109,e["mabengali"]=2478,e["macron"]=175,e["macronbelowcmb"]=817,e["macroncmb"]=772,e["macronlowmod"]=717,e["macronmonospace"]=65507,e["macute"]=7743,e["madeva"]=2350,e["magujarati"]=2734,e["magurmukhi"]=2606,e["mahapakhhebrew"]=1444,e["mahapakhlefthebrew"]=1444,e["mahiragana"]=12414,e["maichattawalowleftthai"]=63637,e["maichattawalowrightthai"]=63636,e["maichattawathai"]=3659,e["maichattawaupperleftthai"]=63635,e["maieklowleftthai"]=63628,e["maieklowrightthai"]=63627,e["maiekthai"]=3656,e["maiekupperleftthai"]=63626,e["maihanakatleftthai"]=63620,e["maihanakatthai"]=3633,e["maitaikhuleftthai"]=63625,e["maitaikhuthai"]=3655,e["maitholowleftthai"]=63631,e["maitholowrightthai"]=63630,e["maithothai"]=3657,e["maithoupperleftthai"]=63629,e["maitrilowleftthai"]=63634,e["maitrilowrightthai"]=63633,e["maitrithai"]=3658,e["maitriupperleftthai"]=63632,e["maiyamokthai"]=3654,e["makatakana"]=12510,e["makatakanahalfwidth"]=65423,e["male"]=9794,e["mansyonsquare"]=13127,e["maqafhebrew"]=1470,e["mars"]=9794,e["masoracirclehebrew"]=1455,e["masquare"]=13187,e["mbopomofo"]=12551,e["mbsquare"]=13268,e["mcircle"]=9436,e["mcubedsquare"]=13221,e["mdotaccent"]=7745,e["mdotbelow"]=7747,e["meemarabic"]=1605,e["meemfinalarabic"]=65250,e["meeminitialarabic"]=65251,e["meemmedialarabic"]=65252,e["meemmeeminitialarabic"]=64721,e["meemmeemisolatedarabic"]=64584,e["meetorusquare"]=13133,e["mehiragana"]=12417,e["meizierasquare"]=13182,e["mekatakana"]=12513,e["mekatakanahalfwidth"]=65426,e["mem"]=1502,e["memdagesh"]=64318,e["memdageshhebrew"]=64318,e["memhebrew"]=1502,e["menarmenian"]=1396,e["merkhahebrew"]=1445,e["merkhakefulahebrew"]=1446,e["merkhakefulalefthebrew"]=1446,e["merkhalefthebrew"]=1445,e["mhook"]=625,e["mhzsquare"]=13202,e["middledotkatakanahalfwidth"]=65381,e["middot"]=183,e["mieumacirclekorean"]=12914,e["mieumaparenkorean"]=12818,e["mieumcirclekorean"]=12900,e["mieumkorean"]=12609,e["mieumpansioskorean"]=12656,e["mieumparenkorean"]=12804,e["mieumpieupkorean"]=12654,e["mieumsioskorean"]=12655,e["mihiragana"]=12415,e["mikatakana"]=12511,e["mikatakanahalfwidth"]=65424,e["minus"]=8722,e["minusbelowcmb"]=800,e["minuscircle"]=8854,e["minusmod"]=727,e["minusplus"]=8723,e["minute"]=8242,e["miribaarusquare"]=13130,e["mirisquare"]=13129,e["mlonglegturned"]=624,e["mlsquare"]=13206,e["mmcubedsquare"]=13219,e["mmonospace"]=65357,e["mmsquaredsquare"]=13215,e["mohiragana"]=12418,e["mohmsquare"]=13249,e["mokatakana"]=12514,e["mokatakanahalfwidth"]=65427,e["molsquare"]=13270,e["momathai"]=3617,e["moverssquare"]=13223,e["moverssquaredsquare"]=13224,e["mparen"]=9384,e["mpasquare"]=13227,e["mssquare"]=13235,e["msuperior"]=63215,e["mturned"]=623,e["mu"]=181,e["mu1"]=181,e["muasquare"]=13186,e["muchgreater"]=8811,e["muchless"]=8810,e["mufsquare"]=13196,e["mugreek"]=956,e["mugsquare"]=13197,e["muhiragana"]=12416,e["mukatakana"]=12512,e["mukatakanahalfwidth"]=65425,e["mulsquare"]=13205,e["multiply"]=215,e["mumsquare"]=13211,e["munahhebrew"]=1443,e["munahlefthebrew"]=1443,e["musicalnote"]=9834,e["musicalnotedbl"]=9835,e["musicflatsign"]=9837,e["musicsharpsign"]=9839,e["mussquare"]=13234,e["muvsquare"]=13238,e["muwsquare"]=13244,e["mvmegasquare"]=13241,e["mvsquare"]=13239,e["mwmegasquare"]=13247,e["mwsquare"]=13245,e["n"]=110,e["nabengali"]=2472,e["nabla"]=8711,e["nacute"]=324,e["nadeva"]=2344,e["nagujarati"]=2728,e["nagurmukhi"]=2600,e["nahiragana"]=12394,e["nakatakana"]=12490,e["nakatakanahalfwidth"]=65413,e["napostrophe"]=329,e["nasquare"]=13185,e["nbopomofo"]=12555,e["nbspace"]=160,e["ncaron"]=328,e["ncedilla"]=326,e["ncircle"]=9437,e["ncircumflexbelow"]=7755,e["ncommaaccent"]=326,e["ndotaccent"]=7749,e["ndotbelow"]=7751,e["nehiragana"]=12397,e["nekatakana"]=12493,e["nekatakanahalfwidth"]=65416,e["newsheqelsign"]=8362,e["nfsquare"]=13195,e["ngabengali"]=2457,e["ngadeva"]=2329,e["ngagujarati"]=2713,e["ngagurmukhi"]=2585,e["ngonguthai"]=3591,e["nhiragana"]=12435,e["nhookleft"]=626,e["nhookretroflex"]=627,e["nieunacirclekorean"]=12911,e["nieunaparenkorean"]=12815,e["nieuncieuckorean"]=12597,e["nieuncirclekorean"]=12897,e["nieunhieuhkorean"]=12598,e["nieunkorean"]=12596,e["nieunpansioskorean"]=12648,e["nieunparenkorean"]=12801,e["nieunsioskorean"]=12647,e["nieuntikeutkorean"]=12646,e["nihiragana"]=12395,e["nikatakana"]=12491,e["nikatakanahalfwidth"]=65414,e["nikhahitleftthai"]=63641,e["nikhahitthai"]=3661,e["nine"]=57,e["ninearabic"]=1641,e["ninebengali"]=2543,e["ninecircle"]=9320,e["ninecircleinversesansserif"]=10130,e["ninedeva"]=2415,e["ninegujarati"]=2799,e["ninegurmukhi"]=2671,e["ninehackarabic"]=1641,e["ninehangzhou"]=12329,e["nineideographicparen"]=12840,e["nineinferior"]=8329,e["ninemonospace"]=65305,e["nineoldstyle"]=63289,e["nineparen"]=9340,e["nineperiod"]=9360,e["ninepersian"]=1785,e["nineroman"]=8568,e["ninesuperior"]=8313,e["nineteencircle"]=9330,e["nineteenparen"]=9350,e["nineteenperiod"]=9370,e["ninethai"]=3673,e["nj"]=460,e["njecyrillic"]=1114,e["nkatakana"]=12531,e["nkatakanahalfwidth"]=65437,e["nlegrightlong"]=414,e["nlinebelow"]=7753,e["nmonospace"]=65358,e["nmsquare"]=13210,e["nnabengali"]=2467,e["nnadeva"]=2339,e["nnagujarati"]=2723,e["nnagurmukhi"]=2595,e["nnnadeva"]=2345,e["nohiragana"]=12398,e["nokatakana"]=12494,e["nokatakanahalfwidth"]=65417,e["nonbreakingspace"]=160,e["nonenthai"]=3603,e["nonuthai"]=3609,e["noonarabic"]=1606,e["noonfinalarabic"]=65254,e["noonghunnaarabic"]=1722,e["noonghunnafinalarabic"]=64415,e["nooninitialarabic"]=65255,e["noonjeeminitialarabic"]=64722,e["noonjeemisolatedarabic"]=64587,e["noonmedialarabic"]=65256,e["noonmeeminitialarabic"]=64725,e["noonmeemisolatedarabic"]=64590,e["noonnoonfinalarabic"]=64653,e["notcontains"]=8716,e["notelement"]=8713,e["notelementof"]=8713,e["notequal"]=8800,e["notgreater"]=8815,e["notgreaternorequal"]=8817,e["notgreaternorless"]=8825,e["notidentical"]=8802,e["notless"]=8814,e["notlessnorequal"]=8816,e["notparallel"]=8742,e["notprecedes"]=8832,e["notsubset"]=8836,e["notsucceeds"]=8833,e["notsuperset"]=8837,e["nowarmenian"]=1398,e["nparen"]=9385,e["nssquare"]=13233,e["nsuperior"]=8319,e["ntilde"]=241,e["nu"]=957,e["nuhiragana"]=12396,e["nukatakana"]=12492,e["nukatakanahalfwidth"]=65415,e["nuktabengali"]=2492,e["nuktadeva"]=2364,e["nuktagujarati"]=2748,e["nuktagurmukhi"]=2620,e["numbersign"]=35,e["numbersignmonospace"]=65283,e["numbersignsmall"]=65119,e["numeralsigngreek"]=884,e["numeralsignlowergreek"]=885,e["numero"]=8470,e["nun"]=1504,e["nundagesh"]=64320,e["nundageshhebrew"]=64320,e["nunhebrew"]=1504,e["nvsquare"]=13237,e["nwsquare"]=13243,e["nyabengali"]=2462,e["nyadeva"]=2334,e["nyagujarati"]=2718,e["nyagurmukhi"]=2590,e["o"]=111,e["oacute"]=243,e["oangthai"]=3629,e["obarred"]=629,e["obarredcyrillic"]=1257,e["obarreddieresiscyrillic"]=1259,e["obengali"]=2451,e["obopomofo"]=12571,e["obreve"]=335,e["ocandradeva"]=2321,e["ocandragujarati"]=2705,e["ocandravowelsigndeva"]=2377,e["ocandravowelsigngujarati"]=2761,e["ocaron"]=466,e["ocircle"]=9438,e["ocircumflex"]=244,e["ocircumflexacute"]=7889,e["ocircumflexdotbelow"]=7897,e["ocircumflexgrave"]=7891,e["ocircumflexhookabove"]=7893,e["ocircumflextilde"]=7895,e["ocyrillic"]=1086,e["odblacute"]=337,e["odblgrave"]=525,e["odeva"]=2323,e["odieresis"]=246,e["odieresiscyrillic"]=1255,e["odotbelow"]=7885,e["oe"]=339,e["oekorean"]=12634,e["ogonek"]=731,e["ogonekcmb"]=808,e["ograve"]=242,e["ogujarati"]=2707,e["oharmenian"]=1413,e["ohiragana"]=12362,e["ohookabove"]=7887,e["ohorn"]=417,e["ohornacute"]=7899,e["ohorndotbelow"]=7907,e["ohorngrave"]=7901,e["ohornhookabove"]=7903,e["ohorntilde"]=7905,e["ohungarumlaut"]=337,e["oi"]=419,e["oinvertedbreve"]=527,e["okatakana"]=12458,e["okatakanahalfwidth"]=65397,e["okorean"]=12631,e["olehebrew"]=1451,e["omacron"]=333,e["omacronacute"]=7763,e["omacrongrave"]=7761,e["omdeva"]=2384,e["omega"]=969,e["omega1"]=982,e["omegacyrillic"]=1121,e["omegalatinclosed"]=631,e["omegaroundcyrillic"]=1147,e["omegatitlocyrillic"]=1149,e["omegatonos"]=974,e["omgujarati"]=2768,e["omicron"]=959,e["omicrontonos"]=972,e["omonospace"]=65359,e["one"]=49,e["onearabic"]=1633,e["onebengali"]=2535,e["onecircle"]=9312,e["onecircleinversesansserif"]=10122,e["onedeva"]=2407,e["onedotenleader"]=8228,e["oneeighth"]=8539,e["onefitted"]=63196,e["onegujarati"]=2791,e["onegurmukhi"]=2663,e["onehackarabic"]=1633,e["onehalf"]=189,e["onehangzhou"]=12321,e["oneideographicparen"]=12832,e["oneinferior"]=8321,e["onemonospace"]=65297,e["onenumeratorbengali"]=2548,e["oneoldstyle"]=63281,e["oneparen"]=9332,e["oneperiod"]=9352,e["onepersian"]=1777,e["onequarter"]=188,e["oneroman"]=8560,e["onesuperior"]=185,e["onethai"]=3665,e["onethird"]=8531,e["oogonek"]=491,e["oogonekmacron"]=493,e["oogurmukhi"]=2579,e["oomatragurmukhi"]=2635,e["oopen"]=596,e["oparen"]=9386,e["openbullet"]=9702,e["option"]=8997,e["ordfeminine"]=170,e["ordmasculine"]=186,e["orthogonal"]=8735,e["oshortdeva"]=2322,e["oshortvowelsigndeva"]=2378,e["oslash"]=248,e["oslashacute"]=511,e["osmallhiragana"]=12361,e["osmallkatakana"]=12457,e["osmallkatakanahalfwidth"]=65387,e["ostrokeacute"]=511,e["osuperior"]=63216,e["otcyrillic"]=1151,e["otilde"]=245,e["otildeacute"]=7757,e["otildedieresis"]=7759,e["oubopomofo"]=12577,e["overline"]=8254,e["overlinecenterline"]=65098,e["overlinecmb"]=773,e["overlinedashed"]=65097,e["overlinedblwavy"]=65100,e["overlinewavy"]=65099,e["overscore"]=175,e["ovowelsignbengali"]=2507,e["ovowelsigndeva"]=2379,e["ovowelsigngujarati"]=2763,e["p"]=112,e["paampssquare"]=13184,e["paasentosquare"]=13099,e["pabengali"]=2474,e["pacute"]=7765,e["padeva"]=2346,e["pagedown"]=8671,e["pageup"]=8670,e["pagujarati"]=2730,e["pagurmukhi"]=2602,e["pahiragana"]=12401,e["paiyannoithai"]=3631,e["pakatakana"]=12497,e["palatalizationcyrilliccmb"]=1156,e["palochkacyrillic"]=1216,e["pansioskorean"]=12671,e["paragraph"]=182,e["parallel"]=8741,e["parenleft"]=40,e["parenleftaltonearabic"]=64830,e["parenleftbt"]=63725,e["parenleftex"]=63724,e["parenleftinferior"]=8333,e["parenleftmonospace"]=65288,e["parenleftsmall"]=65113,e["parenleftsuperior"]=8317,e["parenlefttp"]=63723,e["parenleftvertical"]=65077,e["parenright"]=41,e["parenrightaltonearabic"]=64831,e["parenrightbt"]=63736,e["parenrightex"]=63735,e["parenrightinferior"]=8334,e["parenrightmonospace"]=65289,e["parenrightsmall"]=65114,e["parenrightsuperior"]=8318,e["parenrighttp"]=63734,e["parenrightvertical"]=65078,e["partialdiff"]=8706,e["paseqhebrew"]=1472,e["pashtahebrew"]=1433,e["pasquare"]=13225,e["patah"]=1463,e["patah11"]=1463,e["patah1d"]=1463,e["patah2a"]=1463,e["patahhebrew"]=1463,e["patahnarrowhebrew"]=1463,e["patahquarterhebrew"]=1463,e["patahwidehebrew"]=1463,e["pazerhebrew"]=1441,e["pbopomofo"]=12550,e["pcircle"]=9439,e["pdotaccent"]=7767,e["pe"]=1508,e["pecyrillic"]=1087,e["pedagesh"]=64324,e["pedageshhebrew"]=64324,e["peezisquare"]=13115,e["pefinaldageshhebrew"]=64323,e["peharabic"]=1662,e["peharmenian"]=1402,e["pehebrew"]=1508,e["pehfinalarabic"]=64343,e["pehinitialarabic"]=64344,e["pehiragana"]=12410,e["pehmedialarabic"]=64345,e["pekatakana"]=12506,e["pemiddlehookcyrillic"]=1191,e["perafehebrew"]=64334,e["percent"]=37,e["percentarabic"]=1642,e["percentmonospace"]=65285,e["percentsmall"]=65130,e["period"]=46,e["periodarmenian"]=1417,e["periodcentered"]=183,e["periodhalfwidth"]=65377,e["periodinferior"]=63207,e["periodmonospace"]=65294,e["periodsmall"]=65106,e["periodsuperior"]=63208,e["perispomenigreekcmb"]=834,e["perpendicular"]=8869,e["perthousand"]=8240,e["peseta"]=8359,e["pfsquare"]=13194,e["phabengali"]=2475,e["phadeva"]=2347,e["phagujarati"]=2731,e["phagurmukhi"]=2603,e["phi"]=966,e["phi1"]=981,e["phieuphacirclekorean"]=12922,e["phieuphaparenkorean"]=12826,e["phieuphcirclekorean"]=12908,e["phieuphkorean"]=12621,e["phieuphparenkorean"]=12812,e["philatin"]=632,e["phinthuthai"]=3642,e["phisymbolgreek"]=981,e["phook"]=421,e["phophanthai"]=3614,e["phophungthai"]=3612,e["phosamphaothai"]=3616,e["pi"]=960,e["pieupacirclekorean"]=12915,e["pieupaparenkorean"]=12819,e["pieupcieuckorean"]=12662,e["pieupcirclekorean"]=12901,e["pieupkiyeokkorean"]=12658,e["pieupkorean"]=12610,e["pieupparenkorean"]=12805,e["pieupsioskiyeokkorean"]=12660,e["pieupsioskorean"]=12612,e["pieupsiostikeutkorean"]=12661,e["pieupthieuthkorean"]=12663,e["pieuptikeutkorean"]=12659,e["pihiragana"]=12404,e["pikatakana"]=12500,e["pisymbolgreek"]=982,e["piwrarmenian"]=1411,e["plus"]=43,e["plusbelowcmb"]=799,e["pluscircle"]=8853,e["plusminus"]=177,e["plusmod"]=726,e["plusmonospace"]=65291,e["plussmall"]=65122,e["plussuperior"]=8314,e["pmonospace"]=65360,e["pmsquare"]=13272,e["pohiragana"]=12413,e["pointingindexdownwhite"]=9759,e["pointingindexleftwhite"]=9756,e["pointingindexrightwhite"]=9758,e["pointingindexupwhite"]=9757,e["pokatakana"]=12509,e["poplathai"]=3611,e["postalmark"]=12306,e["postalmarkface"]=12320,e["pparen"]=9387,e["precedes"]=8826,e["prescription"]=8478,e["primemod"]=697,e["primereversed"]=8245,e["product"]=8719,e["projective"]=8965,e["prolongedkana"]=12540,e["propellor"]=8984,e["propersubset"]=8834,e["propersuperset"]=8835,e["proportion"]=8759,e["proportional"]=8733,e["psi"]=968,e["psicyrillic"]=1137,e["psilipneumatacyrilliccmb"]=1158,e["pssquare"]=13232,e["puhiragana"]=12407,e["pukatakana"]=12503,e["pvsquare"]=13236,e["pwsquare"]=13242,e["q"]=113,e["qadeva"]=2392,e["qadmahebrew"]=1448,e["qafarabic"]=1602,e["qaffinalarabic"]=65238,e["qafinitialarabic"]=65239,e["qafmedialarabic"]=65240,e["qamats"]=1464,e["qamats10"]=1464,e["qamats1a"]=1464,e["qamats1c"]=1464,e["qamats27"]=1464,e["qamats29"]=1464,e["qamats33"]=1464,e["qamatsde"]=1464,e["qamatshebrew"]=1464,e["qamatsnarrowhebrew"]=1464,e["qamatsqatanhebrew"]=1464,e["qamatsqatannarrowhebrew"]=1464,e["qamatsqatanquarterhebrew"]=1464,e["qamatsqatanwidehebrew"]=1464,e["qamatsquarterhebrew"]=1464,e["qamatswidehebrew"]=1464,e["qarneyparahebrew"]=1439,e["qbopomofo"]=12561,e["qcircle"]=9440,e["qhook"]=672,e["qmonospace"]=65361,e["qof"]=1511,e["qofdagesh"]=64327,e["qofdageshhebrew"]=64327,e["qofhebrew"]=1511,e["qparen"]=9388,e["quarternote"]=9833,e["qubuts"]=1467,e["qubuts18"]=1467,e["qubuts25"]=1467,e["qubuts31"]=1467,e["qubutshebrew"]=1467,e["qubutsnarrowhebrew"]=1467,e["qubutsquarterhebrew"]=1467,e["qubutswidehebrew"]=1467,e["question"]=63,e["questionarabic"]=1567,e["questionarmenian"]=1374,e["questiondown"]=191,e["questiondownsmall"]=63423,e["questiongreek"]=894,e["questionmonospace"]=65311,e["questionsmall"]=63295,e["quotedbl"]=34,e["quotedblbase"]=8222,e["quotedblleft"]=8220,e["quotedblmonospace"]=65282,e["quotedblprime"]=12318,e["quotedblprimereversed"]=12317,e["quotedblright"]=8221,e["quoteleft"]=8216,e["quoteleftreversed"]=8219,e["quotereversed"]=8219,e["quoteright"]=8217,e["quoterightn"]=329,e["quotesinglbase"]=8218,e["quotesingle"]=39,e["quotesinglemonospace"]=65287,e["r"]=114,e["raarmenian"]=1404,e["rabengali"]=2480,e["racute"]=341,e["radeva"]=2352,e["radical"]=8730,e["radicalex"]=63717,e["radoverssquare"]=13230,e["radoverssquaredsquare"]=13231,e["radsquare"]=13229,e["rafe"]=1471,e["rafehebrew"]=1471,e["ragujarati"]=2736,e["ragurmukhi"]=2608,e["rahiragana"]=12425,e["rakatakana"]=12521,e["rakatakanahalfwidth"]=65431,e["ralowerdiagonalbengali"]=2545,e["ramiddlediagonalbengali"]=2544,e["ramshorn"]=612,e["ratio"]=8758,e["rbopomofo"]=12566,e["rcaron"]=345,e["rcedilla"]=343,e["rcircle"]=9441,e["rcommaaccent"]=343,e["rdblgrave"]=529,e["rdotaccent"]=7769,e["rdotbelow"]=7771,e["rdotbelowmacron"]=7773,e["referencemark"]=8251,e["reflexsubset"]=8838,e["reflexsuperset"]=8839,e["registered"]=174,e["registersans"]=63720,e["registerserif"]=63194,e["reharabic"]=1585,e["reharmenian"]=1408,e["rehfinalarabic"]=65198,e["rehiragana"]=12428,e["rekatakana"]=12524,e["rekatakanahalfwidth"]=65434,e["resh"]=1512,e["reshdageshhebrew"]=64328,e["reshhebrew"]=1512,e["reversedtilde"]=8765,e["reviahebrew"]=1431;e["reviamugrashhebrew"]=1431,e["revlogicalnot"]=8976,e["rfishhook"]=638,e["rfishhookreversed"]=639,e["rhabengali"]=2525,e["rhadeva"]=2397,e["rho"]=961,e["rhook"]=637,e["rhookturned"]=635,e["rhookturnedsuperior"]=693,e["rhosymbolgreek"]=1009,e["rhotichookmod"]=734,e["rieulacirclekorean"]=12913,e["rieulaparenkorean"]=12817,e["rieulcirclekorean"]=12899,e["rieulhieuhkorean"]=12608,e["rieulkiyeokkorean"]=12602,e["rieulkiyeoksioskorean"]=12649,e["rieulkorean"]=12601,e["rieulmieumkorean"]=12603,e["rieulpansioskorean"]=12652,e["rieulparenkorean"]=12803,e["rieulphieuphkorean"]=12607,e["rieulpieupkorean"]=12604,e["rieulpieupsioskorean"]=12651,e["rieulsioskorean"]=12605,e["rieulthieuthkorean"]=12606,e["rieultikeutkorean"]=12650,e["rieulyeorinhieuhkorean"]=12653,e["rightangle"]=8735,e["righttackbelowcmb"]=793,e["righttriangle"]=8895,e["rihiragana"]=12426,e["rikatakana"]=12522,e["rikatakanahalfwidth"]=65432,e["ring"]=730,e["ringbelowcmb"]=805,e["ringcmb"]=778,e["ringhalfleft"]=703,e["ringhalfleftarmenian"]=1369,e["ringhalfleftbelowcmb"]=796,e["ringhalfleftcentered"]=723,e["ringhalfright"]=702,e["ringhalfrightbelowcmb"]=825,e["ringhalfrightcentered"]=722,e["rinvertedbreve"]=531,e["rittorusquare"]=13137,e["rlinebelow"]=7775,e["rlongleg"]=636,e["rlonglegturned"]=634,e["rmonospace"]=65362,e["rohiragana"]=12429,e["rokatakana"]=12525,e["rokatakanahalfwidth"]=65435,e["roruathai"]=3619,e["rparen"]=9389,e["rrabengali"]=2524,e["rradeva"]=2353,e["rragurmukhi"]=2652,e["rreharabic"]=1681,e["rrehfinalarabic"]=64397,e["rrvocalicbengali"]=2528,e["rrvocalicdeva"]=2400,e["rrvocalicgujarati"]=2784,e["rrvocalicvowelsignbengali"]=2500,e["rrvocalicvowelsigndeva"]=2372,e["rrvocalicvowelsigngujarati"]=2756,e["rsuperior"]=63217,e["rtblock"]=9616,e["rturned"]=633,e["rturnedsuperior"]=692,e["ruhiragana"]=12427,e["rukatakana"]=12523,e["rukatakanahalfwidth"]=65433,e["rupeemarkbengali"]=2546,e["rupeesignbengali"]=2547,e["rupiah"]=63197,e["ruthai"]=3620,e["rvocalicbengali"]=2443,e["rvocalicdeva"]=2315,e["rvocalicgujarati"]=2699,e["rvocalicvowelsignbengali"]=2499,e["rvocalicvowelsigndeva"]=2371,e["rvocalicvowelsigngujarati"]=2755,e["s"]=115,e["sabengali"]=2488,e["sacute"]=347,e["sacutedotaccent"]=7781,e["sadarabic"]=1589,e["sadeva"]=2360,e["sadfinalarabic"]=65210,e["sadinitialarabic"]=65211,e["sadmedialarabic"]=65212,e["sagujarati"]=2744,e["sagurmukhi"]=2616,e["sahiragana"]=12373,e["sakatakana"]=12469,e["sakatakanahalfwidth"]=65403,e["sallallahoualayhewasallamarabic"]=65018,e["samekh"]=1505,e["samekhdagesh"]=64321,e["samekhdageshhebrew"]=64321,e["samekhhebrew"]=1505,e["saraaathai"]=3634,e["saraaethai"]=3649,e["saraaimaimalaithai"]=3652,e["saraaimaimuanthai"]=3651,e["saraamthai"]=3635,e["saraathai"]=3632,e["saraethai"]=3648,e["saraiileftthai"]=63622,e["saraiithai"]=3637,e["saraileftthai"]=63621,e["saraithai"]=3636,e["saraothai"]=3650,e["saraueeleftthai"]=63624,e["saraueethai"]=3639,e["saraueleftthai"]=63623,e["sarauethai"]=3638,e["sarauthai"]=3640,e["sarauuthai"]=3641,e["sbopomofo"]=12569,e["scaron"]=353,e["scarondotaccent"]=7783,e["scedilla"]=351,e["schwa"]=601,e["schwacyrillic"]=1241,e["schwadieresiscyrillic"]=1243,e["schwahook"]=602,e["scircle"]=9442,e["scircumflex"]=349,e["scommaaccent"]=537,e["sdotaccent"]=7777,e["sdotbelow"]=7779,e["sdotbelowdotaccent"]=7785,e["seagullbelowcmb"]=828,e["second"]=8243,e["secondtonechinese"]=714,e["section"]=167,e["seenarabic"]=1587,e["seenfinalarabic"]=65202,e["seeninitialarabic"]=65203,e["seenmedialarabic"]=65204,e["segol"]=1462,e["segol13"]=1462,e["segol1f"]=1462,e["segol2c"]=1462,e["segolhebrew"]=1462,e["segolnarrowhebrew"]=1462,e["segolquarterhebrew"]=1462,e["segoltahebrew"]=1426,e["segolwidehebrew"]=1462,e["seharmenian"]=1405,e["sehiragana"]=12379,e["sekatakana"]=12475,e["sekatakanahalfwidth"]=65406,e["semicolon"]=59,e["semicolonarabic"]=1563,e["semicolonmonospace"]=65307,e["semicolonsmall"]=65108,e["semivoicedmarkkana"]=12444,e["semivoicedmarkkanahalfwidth"]=65439,e["sentisquare"]=13090,e["sentosquare"]=13091,e["seven"]=55,e["sevenarabic"]=1639,e["sevenbengali"]=2541,e["sevencircle"]=9318,e["sevencircleinversesansserif"]=10128,e["sevendeva"]=2413,e["seveneighths"]=8542,e["sevengujarati"]=2797,e["sevengurmukhi"]=2669,e["sevenhackarabic"]=1639,e["sevenhangzhou"]=12327,e["sevenideographicparen"]=12838,e["seveninferior"]=8327,e["sevenmonospace"]=65303,e["sevenoldstyle"]=63287,e["sevenparen"]=9338,e["sevenperiod"]=9358,e["sevenpersian"]=1783,e["sevenroman"]=8566,e["sevensuperior"]=8311,e["seventeencircle"]=9328,e["seventeenparen"]=9348,e["seventeenperiod"]=9368,e["seventhai"]=3671,e["sfthyphen"]=173,e["shaarmenian"]=1399,e["shabengali"]=2486,e["shacyrillic"]=1096,e["shaddaarabic"]=1617,e["shaddadammaarabic"]=64609,e["shaddadammatanarabic"]=64606,e["shaddafathaarabic"]=64608,e["shaddakasraarabic"]=64610,e["shaddakasratanarabic"]=64607,e["shade"]=9618,e["shadedark"]=9619,e["shadelight"]=9617,e["shademedium"]=9618,e["shadeva"]=2358,e["shagujarati"]=2742,e["shagurmukhi"]=2614,e["shalshelethebrew"]=1427,e["shbopomofo"]=12565,e["shchacyrillic"]=1097,e["sheenarabic"]=1588,e["sheenfinalarabic"]=65206,e["sheeninitialarabic"]=65207,e["sheenmedialarabic"]=65208,e["sheicoptic"]=995,e["sheqel"]=8362,e["sheqelhebrew"]=8362,e["sheva"]=1456,e["sheva115"]=1456,e["sheva15"]=1456,e["sheva22"]=1456,e["sheva2e"]=1456,e["shevahebrew"]=1456,e["shevanarrowhebrew"]=1456,e["shevaquarterhebrew"]=1456,e["shevawidehebrew"]=1456,e["shhacyrillic"]=1211,e["shimacoptic"]=1005,e["shin"]=1513,e["shindagesh"]=64329,e["shindageshhebrew"]=64329,e["shindageshshindot"]=64300,e["shindageshshindothebrew"]=64300,e["shindageshsindot"]=64301,e["shindageshsindothebrew"]=64301,e["shindothebrew"]=1473,e["shinhebrew"]=1513,e["shinshindot"]=64298,e["shinshindothebrew"]=64298,e["shinsindot"]=64299,e["shinsindothebrew"]=64299,e["shook"]=642,e["sigma"]=963,e["sigma1"]=962,e["sigmafinal"]=962,e["sigmalunatesymbolgreek"]=1010,e["sihiragana"]=12375,e["sikatakana"]=12471,e["sikatakanahalfwidth"]=65404,e["siluqhebrew"]=1469,e["siluqlefthebrew"]=1469,e["similar"]=8764,e["sindothebrew"]=1474,e["siosacirclekorean"]=12916,e["siosaparenkorean"]=12820,e["sioscieuckorean"]=12670,e["sioscirclekorean"]=12902,e["sioskiyeokkorean"]=12666,e["sioskorean"]=12613,e["siosnieunkorean"]=12667,e["siosparenkorean"]=12806,e["siospieupkorean"]=12669,e["siostikeutkorean"]=12668,e["six"]=54,e["sixarabic"]=1638,e["sixbengali"]=2540,e["sixcircle"]=9317,e["sixcircleinversesansserif"]=10127,e["sixdeva"]=2412,e["sixgujarati"]=2796,e["sixgurmukhi"]=2668,e["sixhackarabic"]=1638,e["sixhangzhou"]=12326,e["sixideographicparen"]=12837,e["sixinferior"]=8326,e["sixmonospace"]=65302,e["sixoldstyle"]=63286,e["sixparen"]=9337,e["sixperiod"]=9357,e["sixpersian"]=1782,e["sixroman"]=8565,e["sixsuperior"]=8310,e["sixteencircle"]=9327,e["sixteencurrencydenominatorbengali"]=2553,e["sixteenparen"]=9347,e["sixteenperiod"]=9367,e["sixthai"]=3670,e["slash"]=47,e["slashmonospace"]=65295,e["slong"]=383,e["slongdotaccent"]=7835,e["smileface"]=9786,e["smonospace"]=65363,e["sofpasuqhebrew"]=1475,e["softhyphen"]=173,e["softsigncyrillic"]=1100,e["sohiragana"]=12381,e["sokatakana"]=12477,e["sokatakanahalfwidth"]=65407,e["soliduslongoverlaycmb"]=824,e["solidusshortoverlaycmb"]=823,e["sorusithai"]=3625,e["sosalathai"]=3624,e["sosothai"]=3595,e["sosuathai"]=3626,e["space"]=32,e["spacehackarabic"]=32,e["spade"]=9824,e["spadesuitblack"]=9824,e["spadesuitwhite"]=9828,e["sparen"]=9390,e["squarebelowcmb"]=827,e["squarecc"]=13252,e["squarecm"]=13213,e["squarediagonalcrosshatchfill"]=9641,e["squarehorizontalfill"]=9636,e["squarekg"]=13199,e["squarekm"]=13214,e["squarekmcapital"]=13262,e["squareln"]=13265,e["squarelog"]=13266,e["squaremg"]=13198,e["squaremil"]=13269,e["squaremm"]=13212,e["squaremsquared"]=13217,e["squareorthogonalcrosshatchfill"]=9638,e["squareupperlefttolowerrightfill"]=9639,e["squareupperrighttolowerleftfill"]=9640,e["squareverticalfill"]=9637,e["squarewhitewithsmallblack"]=9635,e["srsquare"]=13275,e["ssabengali"]=2487,e["ssadeva"]=2359,e["ssagujarati"]=2743,e["ssangcieuckorean"]=12617,e["ssanghieuhkorean"]=12677,e["ssangieungkorean"]=12672,e["ssangkiyeokkorean"]=12594,e["ssangnieunkorean"]=12645,e["ssangpieupkorean"]=12611,e["ssangsioskorean"]=12614,e["ssangtikeutkorean"]=12600,e["ssuperior"]=63218,e["sterling"]=163,e["sterlingmonospace"]=65505,e["strokelongoverlaycmb"]=822,e["strokeshortoverlaycmb"]=821,e["subset"]=8834,e["subsetnotequal"]=8842,e["subsetorequal"]=8838,e["succeeds"]=8827,e["suchthat"]=8715,e["suhiragana"]=12377,e["sukatakana"]=12473,e["sukatakanahalfwidth"]=65405,e["sukunarabic"]=1618,e["summation"]=8721,e["sun"]=9788,e["superset"]=8835,e["supersetnotequal"]=8843,e["supersetorequal"]=8839,e["svsquare"]=13276,e["syouwaerasquare"]=13180,e["t"]=116,e["tabengali"]=2468,e["tackdown"]=8868,e["tackleft"]=8867,e["tadeva"]=2340,e["tagujarati"]=2724,e["tagurmukhi"]=2596,e["taharabic"]=1591,e["tahfinalarabic"]=65218,e["tahinitialarabic"]=65219,e["tahiragana"]=12383,e["tahmedialarabic"]=65220,e["taisyouerasquare"]=13181,e["takatakana"]=12479,e["takatakanahalfwidth"]=65408,e["tatweelarabic"]=1600,e["tau"]=964,e["tav"]=1514,e["tavdages"]=64330,e["tavdagesh"]=64330,e["tavdageshhebrew"]=64330,e["tavhebrew"]=1514,e["tbar"]=359,e["tbopomofo"]=12554,e["tcaron"]=357,e["tccurl"]=680,e["tcedilla"]=355,e["tcheharabic"]=1670,e["tchehfinalarabic"]=64379,e["tchehinitialarabic"]=64380,e["tchehmedialarabic"]=64381,e["tcircle"]=9443,e["tcircumflexbelow"]=7793,e["tcommaaccent"]=355,e["tdieresis"]=7831,e["tdotaccent"]=7787,e["tdotbelow"]=7789,e["tecyrillic"]=1090,e["tedescendercyrillic"]=1197,e["teharabic"]=1578,e["tehfinalarabic"]=65174,e["tehhahinitialarabic"]=64674,e["tehhahisolatedarabic"]=64524,e["tehinitialarabic"]=65175,e["tehiragana"]=12390,e["tehjeeminitialarabic"]=64673,e["tehjeemisolatedarabic"]=64523,e["tehmarbutaarabic"]=1577,e["tehmarbutafinalarabic"]=65172,e["tehmedialarabic"]=65176,e["tehmeeminitialarabic"]=64676,e["tehmeemisolatedarabic"]=64526,e["tehnoonfinalarabic"]=64627,e["tekatakana"]=12486,e["tekatakanahalfwidth"]=65411,e["telephone"]=8481,e["telephoneblack"]=9742,e["telishagedolahebrew"]=1440,e["telishaqetanahebrew"]=1449,e["tencircle"]=9321,e["tenideographicparen"]=12841,e["tenparen"]=9341,e["tenperiod"]=9361,e["tenroman"]=8569,e["tesh"]=679,e["tet"]=1496,e["tetdagesh"]=64312,e["tetdageshhebrew"]=64312,e["tethebrew"]=1496,e["tetsecyrillic"]=1205,e["tevirhebrew"]=1435,e["tevirlefthebrew"]=1435,e["thabengali"]=2469,e["thadeva"]=2341,e["thagujarati"]=2725,e["thagurmukhi"]=2597,e["thalarabic"]=1584,e["thalfinalarabic"]=65196,e["thanthakhatlowleftthai"]=63640,e["thanthakhatlowrightthai"]=63639,e["thanthakhatthai"]=3660,e["thanthakhatupperleftthai"]=63638,e["theharabic"]=1579,e["thehfinalarabic"]=65178,e["thehinitialarabic"]=65179,e["thehmedialarabic"]=65180,e["thereexists"]=8707,e["therefore"]=8756,e["theta"]=952,e["theta1"]=977,e["thetasymbolgreek"]=977,e["thieuthacirclekorean"]=12921,e["thieuthaparenkorean"]=12825,e["thieuthcirclekorean"]=12907,e["thieuthkorean"]=12620,e["thieuthparenkorean"]=12811,e["thirteencircle"]=9324,e["thirteenparen"]=9344,e["thirteenperiod"]=9364,e["thonangmonthothai"]=3601,e["thook"]=429,e["thophuthaothai"]=3602,e["thorn"]=254,e["thothahanthai"]=3607,e["thothanthai"]=3600,e["thothongthai"]=3608,e["thothungthai"]=3606,e["thousandcyrillic"]=1154,e["thousandsseparatorarabic"]=1644,e["thousandsseparatorpersian"]=1644,e["three"]=51,e["threearabic"]=1635,e["threebengali"]=2537,e["threecircle"]=9314,e["threecircleinversesansserif"]=10124,e["threedeva"]=2409,e["threeeighths"]=8540,e["threegujarati"]=2793,e["threegurmukhi"]=2665,e["threehackarabic"]=1635,e["threehangzhou"]=12323,e["threeideographicparen"]=12834,e["threeinferior"]=8323,e["threemonospace"]=65299,e["threenumeratorbengali"]=2550,e["threeoldstyle"]=63283,e["threeparen"]=9334,e["threeperiod"]=9354,e["threepersian"]=1779,e["threequarters"]=190,e["threequartersemdash"]=63198,e["threeroman"]=8562,e["threesuperior"]=179,e["threethai"]=3667,e["thzsquare"]=13204,e["tihiragana"]=12385,e["tikatakana"]=12481,e["tikatakanahalfwidth"]=65409,e["tikeutacirclekorean"]=12912,e["tikeutaparenkorean"]=12816,e["tikeutcirclekorean"]=12898,e["tikeutkorean"]=12599,e["tikeutparenkorean"]=12802,e["tilde"]=732,e["tildebelowcmb"]=816,e["tildecmb"]=771,e["tildecomb"]=771,e["tildedoublecmb"]=864,e["tildeoperator"]=8764,e["tildeoverlaycmb"]=820,e["tildeverticalcmb"]=830,e["timescircle"]=8855,e["tipehahebrew"]=1430,e["tipehalefthebrew"]=1430,e["tippigurmukhi"]=2672,e["titlocyrilliccmb"]=1155,e["tiwnarmenian"]=1407,e["tlinebelow"]=7791,e["tmonospace"]=65364,e["toarmenian"]=1385,e["tohiragana"]=12392,e["tokatakana"]=12488,e["tokatakanahalfwidth"]=65412,e["tonebarextrahighmod"]=741,e["tonebarextralowmod"]=745,e["tonebarhighmod"]=742,e["tonebarlowmod"]=744,e["tonebarmidmod"]=743,e["tonefive"]=445,e["tonesix"]=389,e["tonetwo"]=424,e["tonos"]=900,e["tonsquare"]=13095,e["topatakthai"]=3599,e["tortoiseshellbracketleft"]=12308,e["tortoiseshellbracketleftsmall"]=65117,e["tortoiseshellbracketleftvertical"]=65081,e["tortoiseshellbracketright"]=12309,e["tortoiseshellbracketrightsmall"]=65118,e["tortoiseshellbracketrightvertical"]=65082,e["totaothai"]=3605,e["tpalatalhook"]=427,e["tparen"]=9391,e["trademark"]=8482,e["trademarksans"]=63722,e["trademarkserif"]=63195,e["tretroflexhook"]=648,e["triagdn"]=9660,e["triaglf"]=9668,e["triagrt"]=9658,e["triagup"]=9650,e["ts"]=678,e["tsadi"]=1510,e["tsadidagesh"]=64326,e["tsadidageshhebrew"]=64326,e["tsadihebrew"]=1510,e["tsecyrillic"]=1094,e["tsere"]=1461,e["tsere12"]=1461,e["tsere1e"]=1461,e["tsere2b"]=1461,e["tserehebrew"]=1461,e["tserenarrowhebrew"]=1461,e["tserequarterhebrew"]=1461,e["tserewidehebrew"]=1461,e["tshecyrillic"]=1115,e["tsuperior"]=63219,e["ttabengali"]=2463,e["ttadeva"]=2335,e["ttagujarati"]=2719,e["ttagurmukhi"]=2591,e["tteharabic"]=1657,e["ttehfinalarabic"]=64359,e["ttehinitialarabic"]=64360,e["ttehmedialarabic"]=64361,e["tthabengali"]=2464,e["tthadeva"]=2336,e["tthagujarati"]=2720,e["tthagurmukhi"]=2592,e["tturned"]=647,e["tuhiragana"]=12388,e["tukatakana"]=12484,e["tukatakanahalfwidth"]=65410,e["tusmallhiragana"]=12387,e["tusmallkatakana"]=12483,e["tusmallkatakanahalfwidth"]=65391,e["twelvecircle"]=9323,e["twelveparen"]=9343,e["twelveperiod"]=9363,e["twelveroman"]=8571,e["twentycircle"]=9331,e["twentyhangzhou"]=21316,e["twentyparen"]=9351,e["twentyperiod"]=9371,e["two"]=50,e["twoarabic"]=1634,e["twobengali"]=2536,e["twocircle"]=9313,e["twocircleinversesansserif"]=10123,e["twodeva"]=2408,e["twodotenleader"]=8229,e["twodotleader"]=8229,e["twodotleadervertical"]=65072,e["twogujarati"]=2792,e["twogurmukhi"]=2664,e["twohackarabic"]=1634,e["twohangzhou"]=12322,e["twoideographicparen"]=12833,e["twoinferior"]=8322,e["twomonospace"]=65298,e["twonumeratorbengali"]=2549,e["twooldstyle"]=63282,e["twoparen"]=9333,e["twoperiod"]=9353,e["twopersian"]=1778,e["tworoman"]=8561,e["twostroke"]=443,e["twosuperior"]=178,e["twothai"]=3666,e["twothirds"]=8532,e["u"]=117,e["uacute"]=250,e["ubar"]=649,e["ubengali"]=2441,e["ubopomofo"]=12584,e["ubreve"]=365,e["ucaron"]=468,e["ucircle"]=9444,e["ucircumflex"]=251,e["ucircumflexbelow"]=7799,e["ucyrillic"]=1091,e["udattadeva"]=2385,e["udblacute"]=369,e["udblgrave"]=533,e["udeva"]=2313,e["udieresis"]=252,e["udieresisacute"]=472,e["udieresisbelow"]=7795,e["udieresiscaron"]=474,e["udieresiscyrillic"]=1265,e["udieresisgrave"]=476,e["udieresismacron"]=470,e["udotbelow"]=7909,e["ugrave"]=249,e["ugujarati"]=2697,e["ugurmukhi"]=2569,e["uhiragana"]=12358,e["uhookabove"]=7911,e["uhorn"]=432,e["uhornacute"]=7913,e["uhorndotbelow"]=7921,e["uhorngrave"]=7915,e["uhornhookabove"]=7917,e["uhorntilde"]=7919,e["uhungarumlaut"]=369,e["uhungarumlautcyrillic"]=1267,e["uinvertedbreve"]=535,e["ukatakana"]=12454,e["ukatakanahalfwidth"]=65395,e["ukcyrillic"]=1145,e["ukorean"]=12636,e["umacron"]=363,e["umacroncyrillic"]=1263,e["umacrondieresis"]=7803,e["umatragurmukhi"]=2625,e["umonospace"]=65365,e["underscore"]=95,e["underscoredbl"]=8215,e["underscoremonospace"]=65343,e["underscorevertical"]=65075,e["underscorewavy"]=65103,e["union"]=8746,e["universal"]=8704,e["uogonek"]=371,e["uparen"]=9392,e["upblock"]=9600,e["upperdothebrew"]=1476,e["upsilon"]=965,e["upsilondieresis"]=971,e["upsilondieresistonos"]=944,e["upsilonlatin"]=650,e["upsilontonos"]=973,e["uptackbelowcmb"]=797,e["uptackmod"]=724,e["uragurmukhi"]=2675,e["uring"]=367,e["ushortcyrillic"]=1118,e["usmallhiragana"]=12357,e["usmallkatakana"]=12453,e["usmallkatakanahalfwidth"]=65385,e["ustraightcyrillic"]=1199,e["ustraightstrokecyrillic"]=1201,e["utilde"]=361,e["utildeacute"]=7801,e["utildebelow"]=7797,e["uubengali"]=2442,e["uudeva"]=2314,e["uugujarati"]=2698,e["uugurmukhi"]=2570,e["uumatragurmukhi"]=2626,e["uuvowelsignbengali"]=2498,e["uuvowelsigndeva"]=2370,e["uuvowelsigngujarati"]=2754,e["uvowelsignbengali"]=2497,e["uvowelsigndeva"]=2369,e["uvowelsigngujarati"]=2753,e["v"]=118,e["vadeva"]=2357,e["vagujarati"]=2741,e["vagurmukhi"]=2613,e["vakatakana"]=12535,e["vav"]=1493,e["vavdagesh"]=64309,e["vavdagesh65"]=64309,e["vavdageshhebrew"]=64309,e["vavhebrew"]=1493,e["vavholam"]=64331,e["vavholamhebrew"]=64331,e["vavvavhebrew"]=1520,e["vavyodhebrew"]=1521,e["vcircle"]=9445,e["vdotbelow"]=7807,e["vecyrillic"]=1074,e["veharabic"]=1700,e["vehfinalarabic"]=64363,e["vehinitialarabic"]=64364,e["vehmedialarabic"]=64365,e["vekatakana"]=12537,e["venus"]=9792,e["verticalbar"]=124,e["verticallineabovecmb"]=781,e["verticallinebelowcmb"]=809,e["verticallinelowmod"]=716,e["verticallinemod"]=712,e["vewarmenian"]=1406,e["vhook"]=651,e["vikatakana"]=12536,e["viramabengali"]=2509,e["viramadeva"]=2381,e["viramagujarati"]=2765,e["visargabengali"]=2435,e["visargadeva"]=2307,e["visargagujarati"]=2691,e["vmonospace"]=65366,e["voarmenian"]=1400,e["voicediterationhiragana"]=12446,e["voicediterationkatakana"]=12542,e["voicedmarkkana"]=12443,e["voicedmarkkanahalfwidth"]=65438,e["vokatakana"]=12538,e["vparen"]=9393,e["vtilde"]=7805,e["vturned"]=652,e["vuhiragana"]=12436,e["vukatakana"]=12532,e["w"]=119,e["wacute"]=7811,e["waekorean"]=12633,e["wahiragana"]=12431,e["wakatakana"]=12527,e["wakatakanahalfwidth"]=65436,e["wakorean"]=12632,e["wasmallhiragana"]=12430,e["wasmallkatakana"]=12526,e["wattosquare"]=13143,e["wavedash"]=12316,e["wavyunderscorevertical"]=65076,e["wawarabic"]=1608,e["wawfinalarabic"]=65262,e["wawhamzaabovearabic"]=1572,e["wawhamzaabovefinalarabic"]=65158,e["wbsquare"]=13277,e["wcircle"]=9446,e["wcircumflex"]=373,e["wdieresis"]=7813,e["wdotaccent"]=7815,e["wdotbelow"]=7817,e["wehiragana"]=12433,e["weierstrass"]=8472,e["wekatakana"]=12529,e["wekorean"]=12638,e["weokorean"]=12637,e["wgrave"]=7809,e["whitebullet"]=9702,e["whitecircle"]=9675,e["whitecircleinverse"]=9689,e["whitecornerbracketleft"]=12302,e["whitecornerbracketleftvertical"]=65091,e["whitecornerbracketright"]=12303,e["whitecornerbracketrightvertical"]=65092,e["whitediamond"]=9671,e["whitediamondcontainingblacksmalldiamond"]=9672,e["whitedownpointingsmalltriangle"]=9663,e["whitedownpointingtriangle"]=9661,e["whiteleftpointingsmalltriangle"]=9667,e["whiteleftpointingtriangle"]=9665,e["whitelenticularbracketleft"]=12310,e["whitelenticularbracketright"]=12311,e["whiterightpointingsmalltriangle"]=9657;e["whiterightpointingtriangle"]=9655,e["whitesmallsquare"]=9643,e["whitesmilingface"]=9786,e["whitesquare"]=9633,e["whitestar"]=9734,e["whitetelephone"]=9743,e["whitetortoiseshellbracketleft"]=12312,e["whitetortoiseshellbracketright"]=12313,e["whiteuppointingsmalltriangle"]=9653,e["whiteuppointingtriangle"]=9651,e["wihiragana"]=12432,e["wikatakana"]=12528,e["wikorean"]=12639,e["wmonospace"]=65367,e["wohiragana"]=12434,e["wokatakana"]=12530,e["wokatakanahalfwidth"]=65382,e["won"]=8361,e["wonmonospace"]=65510,e["wowaenthai"]=3623,e["wparen"]=9394,e["wring"]=7832,e["wsuperior"]=695,e["wturned"]=653,e["wynn"]=447,e["x"]=120,e["xabovecmb"]=829,e["xbopomofo"]=12562,e["xcircle"]=9447,e["xdieresis"]=7821,e["xdotaccent"]=7819,e["xeharmenian"]=1389,e["xi"]=958,e["xmonospace"]=65368,e["xparen"]=9395,e["xsuperior"]=739,e["y"]=121,e["yaadosquare"]=13134,e["yabengali"]=2479,e["yacute"]=253,e["yadeva"]=2351,e["yaekorean"]=12626,e["yagujarati"]=2735,e["yagurmukhi"]=2607,e["yahiragana"]=12420,e["yakatakana"]=12516,e["yakatakanahalfwidth"]=65428,e["yakorean"]=12625,e["yamakkanthai"]=3662,e["yasmallhiragana"]=12419,e["yasmallkatakana"]=12515,e["yasmallkatakanahalfwidth"]=65388,e["yatcyrillic"]=1123,e["ycircle"]=9448,e["ycircumflex"]=375,e["ydieresis"]=255,e["ydotaccent"]=7823,e["ydotbelow"]=7925,e["yeharabic"]=1610,e["yehbarreearabic"]=1746,e["yehbarreefinalarabic"]=64431,e["yehfinalarabic"]=65266,e["yehhamzaabovearabic"]=1574,e["yehhamzaabovefinalarabic"]=65162,e["yehhamzaaboveinitialarabic"]=65163,e["yehhamzaabovemedialarabic"]=65164,e["yehinitialarabic"]=65267,e["yehmedialarabic"]=65268,e["yehmeeminitialarabic"]=64733,e["yehmeemisolatedarabic"]=64600,e["yehnoonfinalarabic"]=64660,e["yehthreedotsbelowarabic"]=1745,e["yekorean"]=12630,e["yen"]=165,e["yenmonospace"]=65509,e["yeokorean"]=12629,e["yeorinhieuhkorean"]=12678,e["yerahbenyomohebrew"]=1450,e["yerahbenyomolefthebrew"]=1450,e["yericyrillic"]=1099,e["yerudieresiscyrillic"]=1273,e["yesieungkorean"]=12673,e["yesieungpansioskorean"]=12675,e["yesieungsioskorean"]=12674,e["yetivhebrew"]=1434,e["ygrave"]=7923,e["yhook"]=436,e["yhookabove"]=7927,e["yiarmenian"]=1397,e["yicyrillic"]=1111,e["yikorean"]=12642,e["yinyang"]=9775,e["yiwnarmenian"]=1410,e["ymonospace"]=65369,e["yod"]=1497,e["yoddagesh"]=64313,e["yoddageshhebrew"]=64313,e["yodhebrew"]=1497,e["yodyodhebrew"]=1522,e["yodyodpatahhebrew"]=64287,e["yohiragana"]=12424,e["yoikorean"]=12681,e["yokatakana"]=12520,e["yokatakanahalfwidth"]=65430,e["yokorean"]=12635,e["yosmallhiragana"]=12423,e["yosmallkatakana"]=12519,e["yosmallkatakanahalfwidth"]=65390,e["yotgreek"]=1011,e["yoyaekorean"]=12680,e["yoyakorean"]=12679,e["yoyakthai"]=3618,e["yoyingthai"]=3597,e["yparen"]=9396,e["ypogegrammeni"]=890,e["ypogegrammenigreekcmb"]=837,e["yr"]=422,e["yring"]=7833,e["ysuperior"]=696,e["ytilde"]=7929,e["yturned"]=654,e["yuhiragana"]=12422,e["yuikorean"]=12684,e["yukatakana"]=12518,e["yukatakanahalfwidth"]=65429,e["yukorean"]=12640,e["yusbigcyrillic"]=1131,e["yusbigiotifiedcyrillic"]=1133,e["yuslittlecyrillic"]=1127,e["yuslittleiotifiedcyrillic"]=1129,e["yusmallhiragana"]=12421,e["yusmallkatakana"]=12517,e["yusmallkatakanahalfwidth"]=65389,e["yuyekorean"]=12683,e["yuyeokorean"]=12682,e["yyabengali"]=2527,e["yyadeva"]=2399,e["z"]=122,e["zaarmenian"]=1382,e["zacute"]=378,e["zadeva"]=2395,e["zagurmukhi"]=2651,e["zaharabic"]=1592,e["zahfinalarabic"]=65222,e["zahinitialarabic"]=65223,e["zahiragana"]=12374,e["zahmedialarabic"]=65224,e["zainarabic"]=1586,e["zainfinalarabic"]=65200,e["zakatakana"]=12470,e["zaqefgadolhebrew"]=1429,e["zaqefqatanhebrew"]=1428,e["zarqahebrew"]=1432,e["zayin"]=1494,e["zayindagesh"]=64310,e["zayindageshhebrew"]=64310,e["zayinhebrew"]=1494,e["zbopomofo"]=12567,e["zcaron"]=382,e["zcircle"]=9449,e["zcircumflex"]=7825,e["zcurl"]=657,e["zdot"]=380,e["zdotaccent"]=380,e["zdotbelow"]=7827,e["zecyrillic"]=1079,e["zedescendercyrillic"]=1177,e["zedieresiscyrillic"]=1247,e["zehiragana"]=12380,e["zekatakana"]=12476,e["zero"]=48,e["zeroarabic"]=1632,e["zerobengali"]=2534,e["zerodeva"]=2406,e["zerogujarati"]=2790,e["zerogurmukhi"]=2662,e["zerohackarabic"]=1632,e["zeroinferior"]=8320,e["zeromonospace"]=65296,e["zerooldstyle"]=63280,e["zeropersian"]=1776,e["zerosuperior"]=8304,e["zerothai"]=3664,e["zerowidthjoiner"]=65279,e["zerowidthnonjoiner"]=8204,e["zerowidthspace"]=8203,e["zeta"]=950,e["zhbopomofo"]=12563,e["zhearmenian"]=1386,e["zhebrevecyrillic"]=1218,e["zhecyrillic"]=1078,e["zhedescendercyrillic"]=1175,e["zhedieresiscyrillic"]=1245,e["zihiragana"]=12376,e["zikatakana"]=12472,e["zinorhebrew"]=1454,e["zlinebelow"]=7829,e["zmonospace"]=65370,e["zohiragana"]=12382,e["zokatakana"]=12478,e["zparen"]=9397,e["zretroflexhook"]=656,e["zstroke"]=438,e["zuhiragana"]=12378,e["zukatakana"]=12474,e[".notdef"]=0,e["angbracketleftbig"]=9001,e["angbracketleftBig"]=9001,e["angbracketleftbigg"]=9001,e["angbracketleftBigg"]=9001,e["angbracketrightBig"]=9002,e["angbracketrightbig"]=9002,e["angbracketrightBigg"]=9002,e["angbracketrightbigg"]=9002,e["arrowhookleft"]=8618,e["arrowhookright"]=8617,e["arrowlefttophalf"]=8636,e["arrowleftbothalf"]=8637,e["arrownortheast"]=8599,e["arrownorthwest"]=8598,e["arrowrighttophalf"]=8640,e["arrowrightbothalf"]=8641,e["arrowsoutheast"]=8600,e["arrowsouthwest"]=8601,e["backslashbig"]=8726,e["backslashBig"]=8726,e["backslashBigg"]=8726,e["backslashbigg"]=8726,e["bardbl"]=8214,e["bracehtipdownleft"]=65079,e["bracehtipdownright"]=65079,e["bracehtipupleft"]=65080,e["bracehtipupright"]=65080,e["braceleftBig"]=123,e["braceleftbig"]=123,e["braceleftbigg"]=123,e["braceleftBigg"]=123,e["bracerightBig"]=125,e["bracerightbig"]=125,e["bracerightbigg"]=125,e["bracerightBigg"]=125,e["bracketleftbig"]=91,e["bracketleftBig"]=91,e["bracketleftbigg"]=91,e["bracketleftBigg"]=91,e["bracketrightBig"]=93,e["bracketrightbig"]=93,e["bracketrightbigg"]=93,e["bracketrightBigg"]=93,e["ceilingleftbig"]=8968,e["ceilingleftBig"]=8968,e["ceilingleftBigg"]=8968,e["ceilingleftbigg"]=8968,e["ceilingrightbig"]=8969,e["ceilingrightBig"]=8969,e["ceilingrightbigg"]=8969,e["ceilingrightBigg"]=8969,e["circledotdisplay"]=8857,e["circledottext"]=8857,e["circlemultiplydisplay"]=8855,e["circlemultiplytext"]=8855,e["circleplusdisplay"]=8853,e["circleplustext"]=8853,e["contintegraldisplay"]=8750,e["contintegraltext"]=8750,e["coproductdisplay"]=8720,e["coproducttext"]=8720,e["floorleftBig"]=8970,e["floorleftbig"]=8970,e["floorleftbigg"]=8970,e["floorleftBigg"]=8970,e["floorrightbig"]=8971,e["floorrightBig"]=8971,e["floorrightBigg"]=8971,e["floorrightbigg"]=8971,e["hatwide"]=770,e["hatwider"]=770,e["hatwidest"]=770,e["intercal"]=7488,e["integraldisplay"]=8747,e["integraltext"]=8747,e["intersectiondisplay"]=8898,e["intersectiontext"]=8898,e["logicalanddisplay"]=8743,e["logicalandtext"]=8743,e["logicalordisplay"]=8744,e["logicalortext"]=8744,e["parenleftBig"]=40,e["parenleftbig"]=40,e["parenleftBigg"]=40,e["parenleftbigg"]=40,e["parenrightBig"]=41,e["parenrightbig"]=41,e["parenrightBigg"]=41,e["parenrightbigg"]=41,e["prime"]=8242,e["productdisplay"]=8719,e["producttext"]=8719,e["radicalbig"]=8730,e["radicalBig"]=8730,e["radicalBigg"]=8730,e["radicalbigg"]=8730,e["radicalbt"]=8730,e["radicaltp"]=8730,e["radicalvertex"]=8730,e["slashbig"]=47,e["slashBig"]=47,e["slashBigg"]=47,e["slashbigg"]=47,e["summationdisplay"]=8721,e["summationtext"]=8721,e["tildewide"]=732,e["tildewider"]=732,e["tildewidest"]=732,e["uniondisplay"]=8899,e["unionmultidisplay"]=8846,e["unionmultitext"]=8846,e["unionsqdisplay"]=8852,e["unionsqtext"]=8852,e["uniontext"]=8899,e["vextenddouble"]=8741,e["vextendsingle"]=8739})),i=n((function(e){e["space"]=32,e["a1"]=9985,e["a2"]=9986,e["a202"]=9987,e["a3"]=9988,e["a4"]=9742,e["a5"]=9990,e["a119"]=9991,e["a118"]=9992,e["a117"]=9993,e["a11"]=9755,e["a12"]=9758,e["a13"]=9996,e["a14"]=9997,e["a15"]=9998,e["a16"]=9999,e["a105"]=1e4,e["a17"]=10001,e["a18"]=10002,e["a19"]=10003,e["a20"]=10004,e["a21"]=10005,e["a22"]=10006,e["a23"]=10007,e["a24"]=10008,e["a25"]=10009,e["a26"]=10010,e["a27"]=10011,e["a28"]=10012,e["a6"]=10013,e["a7"]=10014,e["a8"]=10015,e["a9"]=10016,e["a10"]=10017,e["a29"]=10018,e["a30"]=10019,e["a31"]=10020,e["a32"]=10021,e["a33"]=10022,e["a34"]=10023,e["a35"]=9733,e["a36"]=10025,e["a37"]=10026,e["a38"]=10027,e["a39"]=10028,e["a40"]=10029,e["a41"]=10030,e["a42"]=10031,e["a43"]=10032,e["a44"]=10033,e["a45"]=10034,e["a46"]=10035,e["a47"]=10036,e["a48"]=10037,e["a49"]=10038,e["a50"]=10039,e["a51"]=10040,e["a52"]=10041,e["a53"]=10042,e["a54"]=10043,e["a55"]=10044,e["a56"]=10045,e["a57"]=10046,e["a58"]=10047,e["a59"]=10048,e["a60"]=10049,e["a61"]=10050,e["a62"]=10051,e["a63"]=10052,e["a64"]=10053,e["a65"]=10054,e["a66"]=10055,e["a67"]=10056,e["a68"]=10057,e["a69"]=10058,e["a70"]=10059,e["a71"]=9679,e["a72"]=10061,e["a73"]=9632,e["a74"]=10063,e["a203"]=10064,e["a75"]=10065,e["a204"]=10066,e["a76"]=9650,e["a77"]=9660,e["a78"]=9670,e["a79"]=10070,e["a81"]=9687,e["a82"]=10072,e["a83"]=10073,e["a84"]=10074,e["a97"]=10075,e["a98"]=10076,e["a99"]=10077,e["a100"]=10078,e["a101"]=10081,e["a102"]=10082,e["a103"]=10083,e["a104"]=10084,e["a106"]=10085,e["a107"]=10086,e["a108"]=10087,e["a112"]=9827,e["a111"]=9830,e["a110"]=9829,e["a109"]=9824,e["a120"]=9312,e["a121"]=9313,e["a122"]=9314,e["a123"]=9315,e["a124"]=9316,e["a125"]=9317,e["a126"]=9318,e["a127"]=9319,e["a128"]=9320,e["a129"]=9321,e["a130"]=10102,e["a131"]=10103,e["a132"]=10104,e["a133"]=10105,e["a134"]=10106,e["a135"]=10107,e["a136"]=10108,e["a137"]=10109,e["a138"]=10110,e["a139"]=10111,e["a140"]=10112,e["a141"]=10113,e["a142"]=10114,e["a143"]=10115,e["a144"]=10116,e["a145"]=10117,e["a146"]=10118,e["a147"]=10119,e["a148"]=10120,e["a149"]=10121,e["a150"]=10122,e["a151"]=10123,e["a152"]=10124,e["a153"]=10125,e["a154"]=10126,e["a155"]=10127,e["a156"]=10128,e["a157"]=10129,e["a158"]=10130,e["a159"]=10131,e["a160"]=10132,e["a161"]=8594,e["a163"]=8596,e["a164"]=8597,e["a196"]=10136,e["a165"]=10137,e["a192"]=10138,e["a166"]=10139,e["a167"]=10140,e["a168"]=10141,e["a169"]=10142,e["a170"]=10143,e["a171"]=10144,e["a172"]=10145,e["a173"]=10146,e["a162"]=10147,e["a174"]=10148,e["a175"]=10149,e["a176"]=10150,e["a177"]=10151,e["a178"]=10152,e["a179"]=10153,e["a193"]=10154,e["a180"]=10155,e["a199"]=10156,e["a181"]=10157,e["a200"]=10158,e["a182"]=10159,e["a201"]=10161,e["a183"]=10162,e["a184"]=10163,e["a197"]=10164,e["a185"]=10165,e["a194"]=10166,e["a198"]=10167,e["a186"]=10168,e["a195"]=10169,e["a187"]=10170,e["a188"]=10171,e["a189"]=10172,e["a190"]=10173,e["a191"]=10174,e["a89"]=10088,e["a90"]=10089,e["a93"]=10090,e["a94"]=10091,e["a91"]=10092,e["a92"]=10093,e["a205"]=10094,e["a85"]=10095,e["a206"]=10096,e["a86"]=10097,e["a87"]=10098,e["a88"]=10099,e["a95"]=10100,e["a96"]=10101,e[".notdef"]=0}));t.getGlyphsUnicode=a,t.getDingbatsGlyphsUnicode=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getGlyphMapForStandardFonts=t.getSymbolsFonts=t.getSerifFonts=t.getNonStdFontMap=t.getStdFontMap=void 0;var n=r(7),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 l=(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=l;var c=(0,n.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=c;var u=(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=u},function(e,t,r){var n=r(7).getLookupTableFactory,a=n((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){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var n,a=e.length;if(7===a&&"n"===e[1]&&"i"===e[2])n=e.substring(3);else{if(!(a>=5&&a<=7))return-1;n=e.substring(1)}if(n===n.toUpperCase()&&(r=parseInt(n,16),r>=0))return r}return-1}var 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 l(e){for(var t=0,r=s.length;t<r;t++){var n=s[t];if(e>=n.begin&&e<n.end)return t}return-1}function c(e){var t=s[13];return e>=t.begin&&e<t.end||(t=s[11],e>=t.begin&&e<t.end)}var u=n((function(e){e["¨"]=" ̈",e["¯"]=" ̄",e["´"]=" ́",e["µ"]="μ",e["¸"]=" ̧",e["IJ"]="IJ",e["ij"]="ij",e["Ŀ"]="L·",e["ŀ"]="l·",e["ʼn"]="ʼn",e["ſ"]="s",e["DŽ"]="DŽ",e["Dž"]="Dž",e["dž"]="dž",e["LJ"]="LJ",e["Lj"]="Lj",e["lj"]="lj",e["NJ"]="NJ",e["Nj"]="Nj",e["nj"]="nj",e["DZ"]="DZ",e["Dz"]="Dz",e["dz"]="dz",e["˘"]=" ̆",e["˙"]=" ̇",e["˚"]=" ̊",e["˛"]=" ̨",e["˜"]=" ̃",e["˝"]=" ̋",e["ͺ"]=" ͅ",e["΄"]=" ́",e["ϐ"]="β",e["ϑ"]="θ",e["ϒ"]="Υ",e["ϕ"]="φ",e["ϖ"]="π",e["ϰ"]="κ",e["ϱ"]="ρ",e["ϲ"]="ς",e["ϴ"]="Θ",e["ϵ"]="ε",e["Ϲ"]="Σ",e["և"]="եւ",e["ٵ"]="اٴ",e["ٶ"]="وٴ",e["ٷ"]="ۇٴ",e["ٸ"]="يٴ",e["ำ"]="ํา",e["ຳ"]="ໍາ",e["ໜ"]="ຫນ",e["ໝ"]="ຫມ",e["ཷ"]="ྲཱྀ",e["ཹ"]="ླཱྀ",e["ẚ"]="aʾ",e["᾽"]=" ̓",e["᾿"]=" ̓",e["῀"]=" ͂",e["῾"]=" ̔",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e["‗"]=" ̳",e["․"]=".",e["‥"]="..",e["…"]="...",e["″"]="′′",e["‴"]="′′′",e["‶"]="‵‵",e["‷"]="‵‵‵",e["‼"]="!!",e["‾"]=" ̅",e["⁇"]="??",e["⁈"]="?!",e["⁉"]="!?",e["⁗"]="′′′′",e[" "]=" ",e["₨"]="Rs",e["℀"]="a/c",e["℁"]="a/s",e["℃"]="°C",e["℅"]="c/o",e["℆"]="c/u",e["ℇ"]="Ɛ",e["℉"]="°F",e["№"]="No",e["℡"]="TEL",e["ℵ"]="א",e["ℶ"]="ב",e["ℷ"]="ג",e["ℸ"]="ד",e["℻"]="FAX",e["Ⅰ"]="I",e["Ⅱ"]="II",e["Ⅲ"]="III",e["Ⅳ"]="IV",e["Ⅴ"]="V",e["Ⅵ"]="VI",e["Ⅶ"]="VII",e["Ⅷ"]="VIII",e["Ⅸ"]="IX",e["Ⅹ"]="X",e["Ⅺ"]="XI",e["Ⅻ"]="XII",e["Ⅼ"]="L",e["Ⅽ"]="C",e["Ⅾ"]="D",e["Ⅿ"]="M",e["ⅰ"]="i",e["ⅱ"]="ii",e["ⅲ"]="iii",e["ⅳ"]="iv",e["ⅴ"]="v",e["ⅵ"]="vi",e["ⅶ"]="vii",e["ⅷ"]="viii",e["ⅸ"]="ix",e["ⅹ"]="x",e["ⅺ"]="xi",e["ⅻ"]="xii",e["ⅼ"]="l",e["ⅽ"]="c",e["ⅾ"]="d",e["ⅿ"]="m",e["∬"]="∫∫",e["∭"]="∫∫∫",e["∯"]="∮∮",e["∰"]="∮∮∮",e["⑴"]="(1)",e["⑵"]="(2)",e["⑶"]="(3)",e["⑷"]="(4)",e["⑸"]="(5)",e["⑹"]="(6)",e["⑺"]="(7)",e["⑻"]="(8)",e["⑼"]="(9)",e["⑽"]="(10)",e["⑾"]="(11)",e["⑿"]="(12)",e["⒀"]="(13)",e["⒁"]="(14)",e["⒂"]="(15)",e["⒃"]="(16)",e["⒄"]="(17)",e["⒅"]="(18)",e["⒆"]="(19)",e["⒇"]="(20)",e["⒈"]="1.",e["⒉"]="2.",e["⒊"]="3.",e["⒋"]="4.",e["⒌"]="5.",e["⒍"]="6.",e["⒎"]="7.",e["⒏"]="8.",e["⒐"]="9.",e["⒑"]="10.",e["⒒"]="11.",e["⒓"]="12.",e["⒔"]="13.",e["⒕"]="14.",e["⒖"]="15.",e["⒗"]="16.",e["⒘"]="17.",e["⒙"]="18.",e["⒚"]="19.",e["⒛"]="20.",e["⒜"]="(a)",e["⒝"]="(b)",e["⒞"]="(c)",e["⒟"]="(d)",e["⒠"]="(e)",e["⒡"]="(f)",e["⒢"]="(g)",e["⒣"]="(h)",e["⒤"]="(i)",e["⒥"]="(j)",e["⒦"]="(k)",e["⒧"]="(l)",e["⒨"]="(m)",e["⒩"]="(n)",e["⒪"]="(o)",e["⒫"]="(p)",e["⒬"]="(q)",e["⒭"]="(r)",e["⒮"]="(s)",e["⒯"]="(t)",e["⒰"]="(u)",e["⒱"]="(v)",e["⒲"]="(w)",e["⒳"]="(x)",e["⒴"]="(y)",e["⒵"]="(z)",e["⨌"]="∫∫∫∫",e["⩴"]="::=",e["⩵"]="==",e["⩶"]="===",e["⺟"]="母",e["⻳"]="龟",e["⼀"]="一",e["⼁"]="丨",e["⼂"]="丶",e["⼃"]="丿",e["⼄"]="乙",e["⼅"]="亅",e["⼆"]="二",e["⼇"]="亠",e["⼈"]="人",e["⼉"]="儿",e["⼊"]="入",e["⼋"]="八",e["⼌"]="冂",e["⼍"]="冖",e["⼎"]="冫",e["⼏"]="几",e["⼐"]="凵",e["⼑"]="刀",e["⼒"]="力",e["⼓"]="勹",e["⼔"]="匕",e["⼕"]="匚",e["⼖"]="匸",e["⼗"]="十",e["⼘"]="卜",e["⼙"]="卩",e["⼚"]="厂",e["⼛"]="厶",e["⼜"]="又",e["⼝"]="口",e["⼞"]="囗",e["⼟"]="土",e["⼠"]="士",e["⼡"]="夂",e["⼢"]="夊",e["⼣"]="夕",e["⼤"]="大",e["⼥"]="女",e["⼦"]="子",e["⼧"]="宀",e["⼨"]="寸",e["⼩"]="小",e["⼪"]="尢",e["⼫"]="尸",e["⼬"]="屮",e["⼭"]="山",e["⼮"]="巛",e["⼯"]="工",e["⼰"]="己",e["⼱"]="巾",e["⼲"]="干",e["⼳"]="幺",e["⼴"]="广",e["⼵"]="廴",e["⼶"]="廾",e["⼷"]="弋",e["⼸"]="弓",e["⼹"]="彐",e["⼺"]="彡",e["⼻"]="彳",e["⼼"]="心",e["⼽"]="戈",e["⼾"]="戶",e["⼿"]="手",e["⽀"]="支",e["⽁"]="攴",e["⽂"]="文",e["⽃"]="斗",e["⽄"]="斤",e["⽅"]="方",e["⽆"]="无",e["⽇"]="日",e["⽈"]="曰",e["⽉"]="月",e["⽊"]="木",e["⽋"]="欠",e["⽌"]="止",e["⽍"]="歹",e["⽎"]="殳",e["⽏"]="毋",e["⽐"]="比",e["⽑"]="毛",e["⽒"]="氏",e["⽓"]="气",e["⽔"]="水",e["⽕"]="火",e["⽖"]="爪",e["⽗"]="父",e["⽘"]="爻",e["⽙"]="爿",e["⽚"]="片",e["⽛"]="牙",e["⽜"]="牛",e["⽝"]="犬",e["⽞"]="玄",e["⽟"]="玉",e["⽠"]="瓜",e["⽡"]="瓦",e["⽢"]="甘",e["⽣"]="生",e["⽤"]="用",e["⽥"]="田",e["⽦"]="疋",e["⽧"]="疒",e["⽨"]="癶",e["⽩"]="白",e["⽪"]="皮",e["⽫"]="皿",e["⽬"]="目",e["⽭"]="矛",e["⽮"]="矢",e["⽯"]="石",e["⽰"]="示",e["⽱"]="禸",e["⽲"]="禾",e["⽳"]="穴",e["⽴"]="立",e["⽵"]="竹",e["⽶"]="米",e["⽷"]="糸",e["⽸"]="缶",e["⽹"]="网",e["⽺"]="羊",e["⽻"]="羽",e["⽼"]="老",e["⽽"]="而",e["⽾"]="耒",e["⽿"]="耳",e["⾀"]="聿",e["⾁"]="肉",e["⾂"]="臣",e["⾃"]="自",e["⾄"]="至",e["⾅"]="臼",e["⾆"]="舌",e["⾇"]="舛",e["⾈"]="舟",e["⾉"]="艮",e["⾊"]="色",e["⾋"]="艸",e["⾌"]="虍",e["⾍"]="虫",e["⾎"]="血",e["⾏"]="行",e["⾐"]="衣",e["⾑"]="襾",e["⾒"]="見",e["⾓"]="角",e["⾔"]="言",e["⾕"]="谷",e["⾖"]="豆",e["⾗"]="豕",e["⾘"]="豸",e["⾙"]="貝",e["⾚"]="赤",e["⾛"]="走",e["⾜"]="足",e["⾝"]="身",e["⾞"]="車",e["⾟"]="辛",e["⾠"]="辰",e["⾡"]="辵",e["⾢"]="邑",e["⾣"]="酉",e["⾤"]="釆",e["⾥"]="里",e["⾦"]="金",e["⾧"]="長",e["⾨"]="門",e["⾩"]="阜",e["⾪"]="隶",e["⾫"]="隹",e["⾬"]="雨",e["⾭"]="靑",e["⾮"]="非",e["⾯"]="面",e["⾰"]="革",e["⾱"]="韋",e["⾲"]="韭",e["⾳"]="音",e["⾴"]="頁",e["⾵"]="風",e["⾶"]="飛",e["⾷"]="食",e["⾸"]="首",e["⾹"]="香",e["⾺"]="馬",e["⾻"]="骨",e["⾼"]="高",e["⾽"]="髟",e["⾾"]="鬥",e["⾿"]="鬯",e["⿀"]="鬲",e["⿁"]="鬼",e["⿂"]="魚",e["⿃"]="鳥",e["⿄"]="鹵",e["⿅"]="鹿",e["⿆"]="麥",e["⿇"]="麻",e["⿈"]="黃",e["⿉"]="黍",e["⿊"]="黑",e["⿋"]="黹",e["⿌"]="黽",e["⿍"]="鼎",e["⿎"]="鼓",e["⿏"]="鼠",e["⿐"]="鼻",e["⿑"]="齊",e["⿒"]="齒",e["⿓"]="龍",e["⿔"]="龜",e["⿕"]="龠",e["〶"]="〒",e["〸"]="十",e["〹"]="卄",e["〺"]="卅",e["゛"]=" ゙",e["゜"]=" ゚",e["ㄱ"]="ᄀ",e["ㄲ"]="ᄁ",e["ㄳ"]="ᆪ",e["ㄴ"]="ᄂ",e["ㄵ"]="ᆬ",e["ㄶ"]="ᆭ",e["ㄷ"]="ᄃ",e["ㄸ"]="ᄄ",e["ㄹ"]="ᄅ",e["ㄺ"]="ᆰ",e["ㄻ"]="ᆱ",e["ㄼ"]="ᆲ",e["ㄽ"]="ᆳ",e["ㄾ"]="ᆴ",e["ㄿ"]="ᆵ",e["ㅀ"]="ᄚ",e["ㅁ"]="ᄆ",e["ㅂ"]="ᄇ",e["ㅃ"]="ᄈ",e["ㅄ"]="ᄡ",e["ㅅ"]="ᄉ",e["ㅆ"]="ᄊ",e["ㅇ"]="ᄋ",e["ㅈ"]="ᄌ",e["ㅉ"]="ᄍ",e["ㅊ"]="ᄎ",e["ㅋ"]="ᄏ",e["ㅌ"]="ᄐ",e["ㅍ"]="ᄑ",e["ㅎ"]="ᄒ",e["ㅏ"]="ᅡ",e["ㅐ"]="ᅢ",e["ㅑ"]="ᅣ",e["ㅒ"]="ᅤ",e["ㅓ"]="ᅥ",e["ㅔ"]="ᅦ",e["ㅕ"]="ᅧ",e["ㅖ"]="ᅨ",e["ㅗ"]="ᅩ",e["ㅘ"]="ᅪ",e["ㅙ"]="ᅫ",e["ㅚ"]="ᅬ",e["ㅛ"]="ᅭ",e["ㅜ"]="ᅮ",e["ㅝ"]="ᅯ",e["ㅞ"]="ᅰ",e["ㅟ"]="ᅱ",e["ㅠ"]="ᅲ",e["ㅡ"]="ᅳ",e["ㅢ"]="ᅴ",e["ㅣ"]="ᅵ",e["ㅤ"]="ᅠ",e["ㅥ"]="ᄔ",e["ㅦ"]="ᄕ",e["ㅧ"]="ᇇ",e["ㅨ"]="ᇈ",e["ㅩ"]="ᇌ",e["ㅪ"]="ᇎ",e["ㅫ"]="ᇓ",e["ㅬ"]="ᇗ",e["ㅭ"]="ᇙ",e["ㅮ"]="ᄜ",e["ㅯ"]="ᇝ",e["ㅰ"]="ᇟ",e["ㅱ"]="ᄝ",e["ㅲ"]="ᄞ",e["ㅳ"]="ᄠ",e["ㅴ"]="ᄢ",e["ㅵ"]="ᄣ",e["ㅶ"]="ᄧ",e["ㅷ"]="ᄩ",e["ㅸ"]="ᄫ",e["ㅹ"]="ᄬ",e["ㅺ"]="ᄭ",e["ㅻ"]="ᄮ",e["ㅼ"]="ᄯ",e["ㅽ"]="ᄲ",e["ㅾ"]="ᄶ",e["ㅿ"]="ᅀ",e["ㆀ"]="ᅇ",e["ㆁ"]="ᅌ",e["ㆂ"]="ᇱ",e["ㆃ"]="ᇲ",e["ㆄ"]="ᅗ",e["ㆅ"]="ᅘ",e["ㆆ"]="ᅙ",e["ㆇ"]="ᆄ",e["ㆈ"]="ᆅ",e["ㆉ"]="ᆈ",e["ㆊ"]="ᆑ",e["ㆋ"]="ᆒ",e["ㆌ"]="ᆔ",e["ㆍ"]="ᆞ",e["ㆎ"]="ᆡ",e["㈀"]="(ᄀ)",e["㈁"]="(ᄂ)",e["㈂"]="(ᄃ)",e["㈃"]="(ᄅ)",e["㈄"]="(ᄆ)",e["㈅"]="(ᄇ)",e["㈆"]="(ᄉ)",e["㈇"]="(ᄋ)",e["㈈"]="(ᄌ)",e["㈉"]="(ᄎ)",e["㈊"]="(ᄏ)",e["㈋"]="(ᄐ)",e["㈌"]="(ᄑ)",e["㈍"]="(ᄒ)",e["㈎"]="(가)",e["㈏"]="(나)",e["㈐"]="(다)",e["㈑"]="(라)",e["㈒"]="(마)",e["㈓"]="(바)",e["㈔"]="(사)",e["㈕"]="(아)",e["㈖"]="(자)",e["㈗"]="(차)",e["㈘"]="(카)",e["㈙"]="(타)",e["㈚"]="(파)",e["㈛"]="(하)",e["㈜"]="(주)",e["㈝"]="(오전)",e["㈞"]="(오후)",e["㈠"]="(一)",e["㈡"]="(二)",e["㈢"]="(三)",e["㈣"]="(四)",e["㈤"]="(五)",e["㈥"]="(六)",e["㈦"]="(七)",e["㈧"]="(八)",e["㈨"]="(九)",e["㈩"]="(十)",e["㈪"]="(月)",e["㈫"]="(火)",e["㈬"]="(水)",e["㈭"]="(木)",e["㈮"]="(金)",e["㈯"]="(土)",e["㈰"]="(日)",e["㈱"]="(株)",e["㈲"]="(有)",e["㈳"]="(社)",e["㈴"]="(名)",e["㈵"]="(特)",e["㈶"]="(財)",e["㈷"]="(祝)",e["㈸"]="(労)",e["㈹"]="(代)",e["㈺"]="(呼)",e["㈻"]="(学)",e["㈼"]="(監)",e["㈽"]="(企)",e["㈾"]="(資)",e["㈿"]="(協)",e["㉀"]="(祭)",e["㉁"]="(休)",e["㉂"]="(自)",e["㉃"]="(至)",e["㋀"]="1月",e["㋁"]="2月",e["㋂"]="3月",e["㋃"]="4月",e["㋄"]="5月",e["㋅"]="6月",e["㋆"]="7月",e["㋇"]="8月",e["㋈"]="9月",e["㋉"]="10月",e["㋊"]="11月",e["㋋"]="12月",e["㍘"]="0点",e["㍙"]="1点",e["㍚"]="2点",e["㍛"]="3点",e["㍜"]="4点",e["㍝"]="5点",e["㍞"]="6点",e["㍟"]="7点",e["㍠"]="8点",e["㍡"]="9点",e["㍢"]="10点",e["㍣"]="11点",e["㍤"]="12点",e["㍥"]="13点",e["㍦"]="14点",e["㍧"]="15点",e["㍨"]="16点",e["㍩"]="17点",e["㍪"]="18点",e["㍫"]="19点",e["㍬"]="20点",e["㍭"]="21点",e["㍮"]="22点",e["㍯"]="23点",e["㍰"]="24点",e["㏠"]="1日",e["㏡"]="2日",e["㏢"]="3日",e["㏣"]="4日",e["㏤"]="5日",e["㏥"]="6日",e["㏦"]="7日",e["㏧"]="8日",e["㏨"]="9日",e["㏩"]="10日",e["㏪"]="11日",e["㏫"]="12日",e["㏬"]="13日",e["㏭"]="14日",e["㏮"]="15日",e["㏯"]="16日",e["㏰"]="17日",e["㏱"]="18日",e["㏲"]="19日",e["㏳"]="20日",e["㏴"]="21日",e["㏵"]="22日",e["㏶"]="23日",e["㏷"]="24日",e["㏸"]="25日",e["㏹"]="26日",e["㏺"]="27日",e["㏻"]="28日",e["㏼"]="29日",e["㏽"]="30日",e["㏾"]="31日",e["ff"]="ff",e["fi"]="fi",e["fl"]="fl",e["ffi"]="ffi",e["ffl"]="ffl",e["ſt"]="ſt",e["st"]="st",e["ﬓ"]="մն",e["ﬔ"]="մե",e["ﬕ"]="մի",e["ﬖ"]="վն",e["ﬗ"]="մխ",e["ﭏ"]="אל",e["ﭐ"]="ٱ",e["ﭑ"]="ٱ",e["ﭒ"]="ٻ",e["ﭓ"]="ٻ",e["ﭔ"]="ٻ",e["ﭕ"]="ٻ",e["ﭖ"]="پ",e["ﭗ"]="پ",e["ﭘ"]="پ",e["ﭙ"]="پ",e["ﭚ"]="ڀ",e["ﭛ"]="ڀ",e["ﭜ"]="ڀ",e["ﭝ"]="ڀ",e["ﭞ"]="ٺ",e["ﭟ"]="ٺ",e["ﭠ"]="ٺ",e["ﭡ"]="ٺ",e["ﭢ"]="ٿ",e["ﭣ"]="ٿ",e["ﭤ"]="ٿ",e["ﭥ"]="ٿ",e["ﭦ"]="ٹ",e["ﭧ"]="ٹ",e["ﭨ"]="ٹ",e["ﭩ"]="ٹ",e["ﭪ"]="ڤ",e["ﭫ"]="ڤ",e["ﭬ"]="ڤ",e["ﭭ"]="ڤ",e["ﭮ"]="ڦ",e["ﭯ"]="ڦ",e["ﭰ"]="ڦ",e["ﭱ"]="ڦ",e["ﭲ"]="ڄ",e["ﭳ"]="ڄ",e["ﭴ"]="ڄ",e["ﭵ"]="ڄ",e["ﭶ"]="ڃ",e["ﭷ"]="ڃ",e["ﭸ"]="ڃ",e["ﭹ"]="ڃ",e["ﭺ"]="چ",e["ﭻ"]="چ",e["ﭼ"]="چ",e["ﭽ"]="چ",e["ﭾ"]="ڇ",e["ﭿ"]="ڇ",e["ﮀ"]="ڇ",e["ﮁ"]="ڇ",e["ﮂ"]="ڍ",e["ﮃ"]="ڍ",e["ﮄ"]="ڌ",e["ﮅ"]="ڌ",e["ﮆ"]="ڎ",e["ﮇ"]="ڎ",e["ﮈ"]="ڈ",e["ﮉ"]="ڈ",e["ﮊ"]="ژ",e["ﮋ"]="ژ",e["ﮌ"]="ڑ",e["ﮍ"]="ڑ",e["ﮎ"]="ک",e["ﮏ"]="ک",e["ﮐ"]="ک",e["ﮑ"]="ک",e["ﮒ"]="گ",e["ﮓ"]="گ",e["ﮔ"]="گ",e["ﮕ"]="گ",e["ﮖ"]="ڳ",e["ﮗ"]="ڳ",e["ﮘ"]="ڳ",e["ﮙ"]="ڳ",e["ﮚ"]="ڱ",e["ﮛ"]="ڱ",e["ﮜ"]="ڱ",e["ﮝ"]="ڱ",e["ﮞ"]="ں",e["ﮟ"]="ں",e["ﮠ"]="ڻ",e["ﮡ"]="ڻ",e["ﮢ"]="ڻ",e["ﮣ"]="ڻ",e["ﮤ"]="ۀ",e["ﮥ"]="ۀ",e["ﮦ"]="ہ",e["ﮧ"]="ہ",e["ﮨ"]="ہ",e["ﮩ"]="ہ",e["ﮪ"]="ھ",e["ﮫ"]="ھ",e["ﮬ"]="ھ",e["ﮭ"]="ھ",e["ﮮ"]="ے",e["ﮯ"]="ے",e["ﮰ"]="ۓ",e["ﮱ"]="ۓ",e["ﯓ"]="ڭ",e["ﯔ"]="ڭ",e["ﯕ"]="ڭ",e["ﯖ"]="ڭ",e["ﯗ"]="ۇ",e["ﯘ"]="ۇ",e["ﯙ"]="ۆ",e["ﯚ"]="ۆ",e["ﯛ"]="ۈ",e["ﯜ"]="ۈ",e["ﯝ"]="ٷ",e["ﯞ"]="ۋ",e["ﯟ"]="ۋ",e["ﯠ"]="ۅ",e["ﯡ"]="ۅ",e["ﯢ"]="ۉ",e["ﯣ"]="ۉ",e["ﯤ"]="ې",e["ﯥ"]="ې",e["ﯦ"]="ې",e["ﯧ"]="ې",e["ﯨ"]="ى",e["ﯩ"]="ى",e["ﯪ"]="ئا",e["ﯫ"]="ئا",e["ﯬ"]="ئە",e["ﯭ"]="ئە",e["ﯮ"]="ئو",e["ﯯ"]="ئو",e["ﯰ"]="ئۇ",e["ﯱ"]="ئۇ",e["ﯲ"]="ئۆ",e["ﯳ"]="ئۆ",e["ﯴ"]="ئۈ",e["ﯵ"]="ئۈ",e["ﯶ"]="ئې";e["ﯷ"]="ئې",e["ﯸ"]="ئې",e["ﯹ"]="ئى",e["ﯺ"]="ئى",e["ﯻ"]="ئى",e["ﯼ"]="ی",e["ﯽ"]="ی",e["ﯾ"]="ی",e["ﯿ"]="ی",e["ﰀ"]="ئج",e["ﰁ"]="ئح",e["ﰂ"]="ئم",e["ﰃ"]="ئى",e["ﰄ"]="ئي",e["ﰅ"]="بج",e["ﰆ"]="بح",e["ﰇ"]="بخ",e["ﰈ"]="بم",e["ﰉ"]="بى",e["ﰊ"]="بي",e["ﰋ"]="تج",e["ﰌ"]="تح",e["ﰍ"]="تخ",e["ﰎ"]="تم",e["ﰏ"]="تى",e["ﰐ"]="تي",e["ﰑ"]="ثج",e["ﰒ"]="ثم",e["ﰓ"]="ثى",e["ﰔ"]="ثي",e["ﰕ"]="جح",e["ﰖ"]="جم",e["ﰗ"]="حج",e["ﰘ"]="حم",e["ﰙ"]="خج",e["ﰚ"]="خح",e["ﰛ"]="خم",e["ﰜ"]="سج",e["ﰝ"]="سح",e["ﰞ"]="سخ",e["ﰟ"]="سم",e["ﰠ"]="صح",e["ﰡ"]="صم",e["ﰢ"]="ضج",e["ﰣ"]="ضح",e["ﰤ"]="ضخ",e["ﰥ"]="ضم",e["ﰦ"]="طح",e["ﰧ"]="طم",e["ﰨ"]="ظم",e["ﰩ"]="عج",e["ﰪ"]="عم",e["ﰫ"]="غج",e["ﰬ"]="غم",e["ﰭ"]="فج",e["ﰮ"]="فح",e["ﰯ"]="فخ",e["ﰰ"]="فم",e["ﰱ"]="فى",e["ﰲ"]="في",e["ﰳ"]="قح",e["ﰴ"]="قم",e["ﰵ"]="قى",e["ﰶ"]="قي",e["ﰷ"]="كا",e["ﰸ"]="كج",e["ﰹ"]="كح",e["ﰺ"]="كخ",e["ﰻ"]="كل",e["ﰼ"]="كم",e["ﰽ"]="كى",e["ﰾ"]="كي",e["ﰿ"]="لج",e["ﱀ"]="لح",e["ﱁ"]="لخ",e["ﱂ"]="لم",e["ﱃ"]="لى",e["ﱄ"]="لي",e["ﱅ"]="مج",e["ﱆ"]="مح",e["ﱇ"]="مخ",e["ﱈ"]="مم",e["ﱉ"]="مى",e["ﱊ"]="مي",e["ﱋ"]="نج",e["ﱌ"]="نح",e["ﱍ"]="نخ",e["ﱎ"]="نم",e["ﱏ"]="نى",e["ﱐ"]="ني",e["ﱑ"]="هج",e["ﱒ"]="هم",e["ﱓ"]="هى",e["ﱔ"]="هي",e["ﱕ"]="يج",e["ﱖ"]="يح",e["ﱗ"]="يخ",e["ﱘ"]="يم",e["ﱙ"]="يى",e["ﱚ"]="يي",e["ﱛ"]="ذٰ",e["ﱜ"]="رٰ",e["ﱝ"]="ىٰ",e["ﱞ"]=" ٌّ",e["ﱟ"]=" ٍّ",e["ﱠ"]=" َّ",e["ﱡ"]=" ُّ",e["ﱢ"]=" ِّ",e["ﱣ"]=" ّٰ",e["ﱤ"]="ئر",e["ﱥ"]="ئز",e["ﱦ"]="ئم",e["ﱧ"]="ئن",e["ﱨ"]="ئى",e["ﱩ"]="ئي",e["ﱪ"]="بر",e["ﱫ"]="بز",e["ﱬ"]="بم",e["ﱭ"]="بن",e["ﱮ"]="بى",e["ﱯ"]="بي",e["ﱰ"]="تر",e["ﱱ"]="تز",e["ﱲ"]="تم",e["ﱳ"]="تن",e["ﱴ"]="تى",e["ﱵ"]="تي",e["ﱶ"]="ثر",e["ﱷ"]="ثز",e["ﱸ"]="ثم",e["ﱹ"]="ثن",e["ﱺ"]="ثى",e["ﱻ"]="ثي",e["ﱼ"]="فى",e["ﱽ"]="في",e["ﱾ"]="قى",e["ﱿ"]="قي",e["ﲀ"]="كا",e["ﲁ"]="كل",e["ﲂ"]="كم",e["ﲃ"]="كى",e["ﲄ"]="كي",e["ﲅ"]="لم",e["ﲆ"]="لى",e["ﲇ"]="لي",e["ﲈ"]="ما",e["ﲉ"]="مم",e["ﲊ"]="نر",e["ﲋ"]="نز",e["ﲌ"]="نم",e["ﲍ"]="نن",e["ﲎ"]="نى",e["ﲏ"]="ني",e["ﲐ"]="ىٰ",e["ﲑ"]="ير",e["ﲒ"]="يز",e["ﲓ"]="يم",e["ﲔ"]="ين",e["ﲕ"]="يى",e["ﲖ"]="يي",e["ﲗ"]="ئج",e["ﲘ"]="ئح",e["ﲙ"]="ئخ",e["ﲚ"]="ئم",e["ﲛ"]="ئه",e["ﲜ"]="بج",e["ﲝ"]="بح",e["ﲞ"]="بخ",e["ﲟ"]="بم",e["ﲠ"]="به",e["ﲡ"]="تج",e["ﲢ"]="تح",e["ﲣ"]="تخ",e["ﲤ"]="تم",e["ﲥ"]="ته",e["ﲦ"]="ثم",e["ﲧ"]="جح",e["ﲨ"]="جم",e["ﲩ"]="حج",e["ﲪ"]="حم",e["ﲫ"]="خج",e["ﲬ"]="خم",e["ﲭ"]="سج",e["ﲮ"]="سح",e["ﲯ"]="سخ",e["ﲰ"]="سم",e["ﲱ"]="صح",e["ﲲ"]="صخ",e["ﲳ"]="صم",e["ﲴ"]="ضج",e["ﲵ"]="ضح",e["ﲶ"]="ضخ",e["ﲷ"]="ضم",e["ﲸ"]="طح",e["ﲹ"]="ظم",e["ﲺ"]="عج",e["ﲻ"]="عم",e["ﲼ"]="غج",e["ﲽ"]="غم",e["ﲾ"]="فج",e["ﲿ"]="فح",e["ﳀ"]="فخ",e["ﳁ"]="فم",e["ﳂ"]="قح",e["ﳃ"]="قم",e["ﳄ"]="كج",e["ﳅ"]="كح",e["ﳆ"]="كخ",e["ﳇ"]="كل",e["ﳈ"]="كم",e["ﳉ"]="لج",e["ﳊ"]="لح",e["ﳋ"]="لخ",e["ﳌ"]="لم",e["ﳍ"]="له",e["ﳎ"]="مج",e["ﳏ"]="مح",e["ﳐ"]="مخ",e["ﳑ"]="مم",e["ﳒ"]="نج",e["ﳓ"]="نح",e["ﳔ"]="نخ",e["ﳕ"]="نم",e["ﳖ"]="نه",e["ﳗ"]="هج",e["ﳘ"]="هم",e["ﳙ"]="هٰ",e["ﳚ"]="يج",e["ﳛ"]="يح",e["ﳜ"]="يخ",e["ﳝ"]="يم",e["ﳞ"]="يه",e["ﳟ"]="ئم",e["ﳠ"]="ئه",e["ﳡ"]="بم",e["ﳢ"]="به",e["ﳣ"]="تم",e["ﳤ"]="ته",e["ﳥ"]="ثم",e["ﳦ"]="ثه",e["ﳧ"]="سم",e["ﳨ"]="سه",e["ﳩ"]="شم",e["ﳪ"]="شه",e["ﳫ"]="كل",e["ﳬ"]="كم",e["ﳭ"]="لم",e["ﳮ"]="نم",e["ﳯ"]="نه",e["ﳰ"]="يم",e["ﳱ"]="يه",e["ﳲ"]="ـَّ",e["ﳳ"]="ـُّ",e["ﳴ"]="ـِّ",e["ﳵ"]="طى",e["ﳶ"]="طي",e["ﳷ"]="عى",e["ﳸ"]="عي",e["ﳹ"]="غى",e["ﳺ"]="غي",e["ﳻ"]="سى",e["ﳼ"]="سي",e["ﳽ"]="شى",e["ﳾ"]="شي",e["ﳿ"]="حى",e["ﴀ"]="حي",e["ﴁ"]="جى",e["ﴂ"]="جي",e["ﴃ"]="خى",e["ﴄ"]="خي",e["ﴅ"]="صى",e["ﴆ"]="صي",e["ﴇ"]="ضى",e["ﴈ"]="ضي",e["ﴉ"]="شج",e["ﴊ"]="شح",e["ﴋ"]="شخ",e["ﴌ"]="شم",e["ﴍ"]="شر",e["ﴎ"]="سر",e["ﴏ"]="صر",e["ﴐ"]="ضر",e["ﴑ"]="طى",e["ﴒ"]="طي",e["ﴓ"]="عى",e["ﴔ"]="عي",e["ﴕ"]="غى",e["ﴖ"]="غي",e["ﴗ"]="سى",e["ﴘ"]="سي",e["ﴙ"]="شى",e["ﴚ"]="شي",e["ﴛ"]="حى",e["ﴜ"]="حي",e["ﴝ"]="جى",e["ﴞ"]="جي",e["ﴟ"]="خى",e["ﴠ"]="خي",e["ﴡ"]="صى",e["ﴢ"]="صي",e["ﴣ"]="ضى",e["ﴤ"]="ضي",e["ﴥ"]="شج",e["ﴦ"]="شح",e["ﴧ"]="شخ",e["ﴨ"]="شم",e["ﴩ"]="شر",e["ﴪ"]="سر",e["ﴫ"]="صر",e["ﴬ"]="ضر",e["ﴭ"]="شج",e["ﴮ"]="شح",e["ﴯ"]="شخ",e["ﴰ"]="شم",e["ﴱ"]="سه",e["ﴲ"]="شه",e["ﴳ"]="طم",e["ﴴ"]="سج",e["ﴵ"]="سح",e["ﴶ"]="سخ",e["ﴷ"]="شج",e["ﴸ"]="شح",e["ﴹ"]="شخ",e["ﴺ"]="طم",e["ﴻ"]="ظم",e["ﴼ"]="اً",e["ﴽ"]="اً",e["ﵐ"]="تجم",e["ﵑ"]="تحج",e["ﵒ"]="تحج",e["ﵓ"]="تحم",e["ﵔ"]="تخم",e["ﵕ"]="تمج",e["ﵖ"]="تمح",e["ﵗ"]="تمخ",e["ﵘ"]="جمح",e["ﵙ"]="جمح",e["ﵚ"]="حمي",e["ﵛ"]="حمى",e["ﵜ"]="سحج",e["ﵝ"]="سجح",e["ﵞ"]="سجى",e["ﵟ"]="سمح",e["ﵠ"]="سمح",e["ﵡ"]="سمج",e["ﵢ"]="سمم",e["ﵣ"]="سمم",e["ﵤ"]="صحح",e["ﵥ"]="صحح",e["ﵦ"]="صمم",e["ﵧ"]="شحم",e["ﵨ"]="شحم",e["ﵩ"]="شجي",e["ﵪ"]="شمخ",e["ﵫ"]="شمخ",e["ﵬ"]="شمم",e["ﵭ"]="شمم",e["ﵮ"]="ضحى",e["ﵯ"]="ضخم",e["ﵰ"]="ضخم",e["ﵱ"]="طمح",e["ﵲ"]="طمح",e["ﵳ"]="طمم",e["ﵴ"]="طمي",e["ﵵ"]="عجم",e["ﵶ"]="عمم",e["ﵷ"]="عمم",e["ﵸ"]="عمى",e["ﵹ"]="غمم",e["ﵺ"]="غمي",e["ﵻ"]="غمى",e["ﵼ"]="فخم",e["ﵽ"]="فخم",e["ﵾ"]="قمح",e["ﵿ"]="قمم",e["ﶀ"]="لحم",e["ﶁ"]="لحي",e["ﶂ"]="لحى",e["ﶃ"]="لجج",e["ﶄ"]="لجج",e["ﶅ"]="لخم",e["ﶆ"]="لخم",e["ﶇ"]="لمح",e["ﶈ"]="لمح",e["ﶉ"]="محج",e["ﶊ"]="محم",e["ﶋ"]="محي",e["ﶌ"]="مجح",e["ﶍ"]="مجم",e["ﶎ"]="مخج",e["ﶏ"]="مخم",e["ﶒ"]="مجخ",e["ﶓ"]="همج",e["ﶔ"]="همم",e["ﶕ"]="نحم",e["ﶖ"]="نحى",e["ﶗ"]="نجم",e["ﶘ"]="نجم",e["ﶙ"]="نجى",e["ﶚ"]="نمي",e["ﶛ"]="نمى",e["ﶜ"]="يمم",e["ﶝ"]="يمم",e["ﶞ"]="بخي",e["ﶟ"]="تجي",e["ﶠ"]="تجى",e["ﶡ"]="تخي",e["ﶢ"]="تخى",e["ﶣ"]="تمي",e["ﶤ"]="تمى",e["ﶥ"]="جمي",e["ﶦ"]="جحى",e["ﶧ"]="جمى",e["ﶨ"]="سخى",e["ﶩ"]="صحي",e["ﶪ"]="شحي",e["ﶫ"]="ضحي",e["ﶬ"]="لجي",e["ﶭ"]="لمي",e["ﶮ"]="يحي",e["ﶯ"]="يجي",e["ﶰ"]="يمي",e["ﶱ"]="ممي",e["ﶲ"]="قمي",e["ﶳ"]="نحي",e["ﶴ"]="قمح",e["ﶵ"]="لحم",e["ﶶ"]="عمي",e["ﶷ"]="كمي",e["ﶸ"]="نجح",e["ﶹ"]="مخي",e["ﶺ"]="لجم",e["ﶻ"]="كمم",e["ﶼ"]="لجم",e["ﶽ"]="نجح",e["ﶾ"]="جحي",e["ﶿ"]="حجي",e["ﷀ"]="مجي",e["ﷁ"]="فمي",e["ﷂ"]="بحي",e["ﷃ"]="كمم",e["ﷄ"]="عجم",e["ﷅ"]="صمم",e["ﷆ"]="سخي",e["ﷇ"]="نجي",e["﹉"]="‾",e["﹊"]="‾",e["﹋"]="‾",e["﹌"]="‾",e["﹍"]="_",e["﹎"]="_",e["﹏"]="_",e["ﺀ"]="ء",e["ﺁ"]="آ",e["ﺂ"]="آ",e["ﺃ"]="أ",e["ﺄ"]="أ",e["ﺅ"]="ؤ",e["ﺆ"]="ؤ",e["ﺇ"]="إ",e["ﺈ"]="إ",e["ﺉ"]="ئ",e["ﺊ"]="ئ",e["ﺋ"]="ئ",e["ﺌ"]="ئ",e["ﺍ"]="ا",e["ﺎ"]="ا",e["ﺏ"]="ب",e["ﺐ"]="ب",e["ﺑ"]="ب",e["ﺒ"]="ب",e["ﺓ"]="ة",e["ﺔ"]="ة",e["ﺕ"]="ت",e["ﺖ"]="ت",e["ﺗ"]="ت",e["ﺘ"]="ت",e["ﺙ"]="ث",e["ﺚ"]="ث",e["ﺛ"]="ث",e["ﺜ"]="ث",e["ﺝ"]="ج",e["ﺞ"]="ج",e["ﺟ"]="ج",e["ﺠ"]="ج",e["ﺡ"]="ح",e["ﺢ"]="ح",e["ﺣ"]="ح",e["ﺤ"]="ح",e["ﺥ"]="خ",e["ﺦ"]="خ",e["ﺧ"]="خ",e["ﺨ"]="خ",e["ﺩ"]="د",e["ﺪ"]="د",e["ﺫ"]="ذ",e["ﺬ"]="ذ",e["ﺭ"]="ر",e["ﺮ"]="ر",e["ﺯ"]="ز",e["ﺰ"]="ز",e["ﺱ"]="س",e["ﺲ"]="س",e["ﺳ"]="س",e["ﺴ"]="س",e["ﺵ"]="ش",e["ﺶ"]="ش",e["ﺷ"]="ش",e["ﺸ"]="ش",e["ﺹ"]="ص",e["ﺺ"]="ص",e["ﺻ"]="ص",e["ﺼ"]="ص",e["ﺽ"]="ض",e["ﺾ"]="ض",e["ﺿ"]="ض",e["ﻀ"]="ض",e["ﻁ"]="ط",e["ﻂ"]="ط",e["ﻃ"]="ط",e["ﻄ"]="ط",e["ﻅ"]="ظ",e["ﻆ"]="ظ",e["ﻇ"]="ظ",e["ﻈ"]="ظ",e["ﻉ"]="ع",e["ﻊ"]="ع",e["ﻋ"]="ع",e["ﻌ"]="ع",e["ﻍ"]="غ",e["ﻎ"]="غ",e["ﻏ"]="غ",e["ﻐ"]="غ",e["ﻑ"]="ف",e["ﻒ"]="ف",e["ﻓ"]="ف",e["ﻔ"]="ف",e["ﻕ"]="ق",e["ﻖ"]="ق",e["ﻗ"]="ق",e["ﻘ"]="ق",e["ﻙ"]="ك",e["ﻚ"]="ك",e["ﻛ"]="ك",e["ﻜ"]="ك",e["ﻝ"]="ل",e["ﻞ"]="ل",e["ﻟ"]="ل",e["ﻠ"]="ل",e["ﻡ"]="م",e["ﻢ"]="م",e["ﻣ"]="م",e["ﻤ"]="م",e["ﻥ"]="ن",e["ﻦ"]="ن",e["ﻧ"]="ن",e["ﻨ"]="ن",e["ﻩ"]="ه",e["ﻪ"]="ه",e["ﻫ"]="ه",e["ﻬ"]="ه",e["ﻭ"]="و",e["ﻮ"]="و",e["ﻯ"]="ى",e["ﻰ"]="ى",e["ﻱ"]="ي",e["ﻲ"]="ي",e["ﻳ"]="ي",e["ﻴ"]="ي",e["ﻵ"]="لآ",e["ﻶ"]="لآ",e["ﻷ"]="لأ",e["ﻸ"]="لأ",e["ﻹ"]="لإ",e["ﻺ"]="لإ",e["ﻻ"]="لا",e["ﻼ"]="لا"}));function d(e){var t=e.length;if(t<=1||!c(e.charCodeAt(0)))return e;for(var r="",n=t-1;n>=0;n--)r+=e[n];return r}t.mapSpecialUnicodeValues=i,t.reverseIfRtl=d,t.getUnicodeRangeFor=l,t.getNormalizedUnicodes=u,t.getUnicodeForGlyph=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var n=r(2),a=r(28),i=r(31),o=r(30),s=r(11),l=function(){function e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function t(e,t){return e[t]<<8|e[t+1]}function r(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function l(r,a,i){var o,s,l,c=1===t(r,a+2)?e(r,a+8):e(r,a+16),u=t(r,a+c);if(4===u){t(r,a+c+2);var d=t(r,a+c+6)>>1;for(s=a+c+14,o=[],l=0;l<d;l++,s+=2)o[l]={end:t(r,s)};for(s+=2,l=0;l<d;l++,s+=2)o[l].start=t(r,s);for(l=0;l<d;l++,s+=2)o[l].idDelta=t(r,s);for(l=0;l<d;l++,s+=2){var h=t(r,s);if(0!==h){o[l].ids=[];for(var f=0,p=o[l].end-o[l].start+1;f<p;f++)o[l].ids[f]=t(r,s+h),h+=2}}return o}if(12===u){e(r,a+c+4);var g=e(r,a+c+12);for(s=a+c+16,o=[],l=0;l<g;l++)o.push({start:e(r,s),end:e(r,s+4),idDelta:e(r,s+8)-e(r,s)}),s+=12;return o}throw new n.FormatError("unsupported cmap: ".concat(u))}function c(e,t,r,n){var i={},o=new a.CFFParser(new s.Stream(e,t,r-t),i,n),l=o.parse();return{glyphs:l.charStrings.objects,subrs:l.topDict.privateDict&&l.topDict.privateDict.subrsIndex&&l.topDict.privateDict.subrsIndex.objects,gsubrs:l.globalSubrIndex&&l.globalSubrIndex.objects,isCFFCIDFont:l.isCIDFont,fdSelect:l.fdSelect,fdArray:l.fdArray}}function u(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 l=a(t,s);i.push(e.subarray(o,l)),o=l}return i}function d(e,t){var r=t.codePointAt(0),n=0,a=0,i=e.length-1;while(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 h(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,l=(e[s]<<24|e[s+1]<<16)>>16,c=0,u=0;if(s+=10,l<0)do{o=e[s]<<8|e[s+1];var d,f,p=e[s+2]<<8|e[s+3];s+=4,1&o?(d=(e[s]<<24|e[s+1]<<16)>>16,f=(e[s+2]<<24|e[s+3]<<16)>>16,s+=4):(d=e[s++],f=e[s++]),2&o?(c=d,u=f):(c=0,u=0);var g=1,v=1,m=0,b=0;8&o?(g=v=(e[s]<<24|e[s+1]<<16)/1073741824,s+=2):64&o?(g=(e[s]<<24|e[s+1]<<16)/1073741824,v=(e[s+2]<<24|e[s+3]<<16)/1073741824,s+=4):128&o&&(g=(e[s]<<24|e[s+1]<<16)/1073741824,m=(e[s+2]<<24|e[s+3]<<16)/1073741824,b=(e[s+4]<<24|e[s+5]<<16)/1073741824,v=(e[s+6]<<24|e[s+7]<<16)/1073741824,s+=8);var y=r.glyphs[p];y&&(t.push({cmd:"save"}),t.push({cmd:"transform",args:[g,m,b,v,c,u]}),h(y,t,r),t.push({cmd:"restore"}))}while(32&o);else{var w,_,k=[];for(w=0;w<l;w++)k.push(e[s]<<8|e[s+1]),s+=2;var x=e[s]<<8|e[s+1];s+=2+x;var S=k[k.length-1]+1,A=[];while(A.length<S){o=e[s++];var C=1;8&o&&(C+=e[s++]);while(C-- >0)A.push({flags:o})}for(w=0;w<S;w++){switch(18&A[w].flags){case 0:c+=(e[s]<<24|e[s+1]<<16)>>16,s+=2;break;case 2:c-=e[s++];break;case 18:c+=e[s++];break}A[w].x=c}for(w=0;w<S;w++){switch(36&A[w].flags){case 0:u+=(e[s]<<24|e[s+1]<<16)>>16,s+=2;break;case 4:u-=e[s++];break;case 36:u+=e[s++];break}A[w].y=u}var P=0;for(s=0;s<l;s++){var T=k[s],E=A.slice(P,T+1);if(1&E[0].flags)E.push(E[0]);else if(1&E[E.length-1].flags)E.unshift(E[E.length-1]);else{var R={flags:1,x:(E[0].x+E[E.length-1].x)/2,y:(E[0].y+E[E.length-1].y)/2};E.unshift(R),E.push(R)}for(n(E[0].x,E[0].y),w=1,_=E.length;w<_;w++)1&E[w].flags?a(E[w].x,E[w].y):1&E[w+1].flags?(i(E[w].x,E[w].y,E[w+1].x,E[w+1].y),w++):i(E[w].x,E[w].y,(E[w].x+E[w+1].x)/2,(E[w].y+E[w+1].y)/2);P=T+1}}}function m(e,t,a,i){var s=[],l=0,c=0,u=0;function h(e,r){t.push({cmd:"moveTo",args:[e,r]})}function f(e,r){t.push({cmd:"lineTo",args:[e,r]})}function p(e,r,n,a,i,o){t.push({cmd:"bezierCurveTo",args:[e,r,n,a,i,o]})}function g(e){var v=0;while(v<e.length){var b,y,w,_,k,x,S,A,C,P=!1,T=e[v++];switch(T){case 1:u+=s.length>>1,P=!0;break;case 3:u+=s.length>>1,P=!0;break;case 4:c+=s.pop(),h(l,c),P=!0;break;case 5:while(s.length>0)l+=s.shift(),c+=s.shift(),f(l,c);break;case 6:while(s.length>0){if(l+=s.shift(),f(l,c),0===s.length)break;c+=s.shift(),f(l,c)}break;case 7:while(s.length>0){if(c+=s.shift(),f(l,c),0===s.length)break;l+=s.shift(),f(l,c)}break;case 8:while(s.length>0)b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c);break;case 10:if(A=s.pop(),C=null,a.isCFFCIDFont){var E=a.fdSelect.getFDIndex(i);if(E>=0&&E<a.fdArray.length){var R=a.fdArray[E],I=void 0;R.privateDict&&R.privateDict.subrsIndex&&(I=R.privateDict.subrsIndex.objects),I&&(A+=r(I),C=I[A])}else(0,n.warn)("Invalid fd index for glyph index.")}else C=a.subrs[A+a.subrsBias];C&&g(C);break;case 11:return;case 12:switch(T=e[v++],T){case 34:b=l+s.shift(),y=b+s.shift(),k=c+s.shift(),l=y+s.shift(),p(b,c,y,k,l,k),b=l+s.shift(),y=b+s.shift(),l=y+s.shift(),p(b,k,y,c,l,c);break;case 35:b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c),b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c),s.pop();break;case 36:b=l+s.shift(),k=c+s.shift(),y=b+s.shift(),x=k+s.shift(),l=y+s.shift(),p(b,k,y,x,l,x),b=l+s.shift(),y=b+s.shift(),S=x+s.shift(),l=y+s.shift(),p(b,x,y,S,l,c);break;case 37:var O=l,L=c;b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c),b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y,c=_,Math.abs(l-O)>Math.abs(c-L)?l+=s.shift():c+=s.shift(),p(b,w,y,_,l,c);break;default:throw new n.FormatError("unknown operator: 12 ".concat(T))}break;case 14:if(s.length>=4){var F=s.pop(),M=s.pop();c=s.pop(),l=s.pop(),t.push({cmd:"save"}),t.push({cmd:"translate",args:[l,c]});var D=d(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[F]]));m(a.glyphs[D.glyphId],t,a,D.glyphId),t.push({cmd:"restore"}),D=d(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[M]])),m(a.glyphs[D.glyphId],t,a,D.glyphId)}return;case 18:u+=s.length>>1,P=!0;break;case 19:u+=s.length>>1,v+=u+7>>3,P=!0;break;case 20:u+=s.length>>1,v+=u+7>>3,P=!0;break;case 21:c+=s.pop(),l+=s.pop(),h(l,c),P=!0;break;case 22:l+=s.pop(),h(l,c),P=!0;break;case 23:u+=s.length>>1,P=!0;break;case 24:while(s.length>2)b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c);l+=s.shift(),c+=s.shift(),f(l,c);break;case 25:while(s.length>6)l+=s.shift(),c+=s.shift(),f(l,c);b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c);break;case 26:s.length%2&&(l+=s.shift());while(s.length>0)b=l,w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y,c=_+s.shift(),p(b,w,y,_,l,c);break;case 27:s.length%2&&(c+=s.shift());while(s.length>0)b=l+s.shift(),w=c,y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_,p(b,w,y,_,l,c);break;case 28:s.push((e[v]<<24|e[v+1]<<16)>>16),v+=2;break;case 29:A=s.pop()+a.gsubrsBias,C=a.gsubrs[A],C&&g(C);break;case 30:while(s.length>0){if(b=l,w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+(1===s.length?s.shift():0),p(b,w,y,_,l,c),0===s.length)break;b=l+s.shift(),w=c,y=b+s.shift(),_=w+s.shift(),c=_+s.shift(),l=y+(1===s.length?s.shift():0),p(b,w,y,_,l,c)}break;case 31:while(s.length>0){if(b=l+s.shift(),w=c,y=b+s.shift(),_=w+s.shift(),c=_+s.shift(),l=y+(1===s.length?s.shift():0),p(b,w,y,_,l,c),0===s.length)break;b=l,w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+(1===s.length?s.shift():0),p(b,w,y,_,l,c)}break;default:if(T<32)throw new n.FormatError("unknown operator: ".concat(T));T<247?s.push(T-139):T<251?s.push(256*(T-247)+e[v++]+108):T<255?s.push(256*-(T-251)-e[v++]-108):(s.push((e[v]<<24|e[v+1]<<16|e[v+2]<<8|e[v+3])/65536),v+=4);break}P&&(s.length=0)}}g(e)}var b=[],y=function(){function e(t){p(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}return f(e,[{key:"getPathJs",value:function(e){var t=d(this.cmap,e),r=this.compiledGlyphs[t.glyphId];return r||(r=this.compileGlyph(this.glyphs[t.glyphId],t.glyphId),this.compiledGlyphs[t.glyphId]=r),void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId),r}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return b;var r=this.fontMatrix;if(this.isCFFCIDFont){var a=this.fdSelect.getFDIndex(t);if(a>=0&&a<this.fdArray.length){var i=this.fdArray[a];r=i.getByName("FontMatrix")||n.FONT_IDENTITY_MATRIX}else(0,n.warn)("Invalid fd index for glyph index.")}var o=[];return o.push({cmd:"save"}),o.push({cmd:"transform",args:r.slice()}),o.push({cmd:"scale",args:["size","-size"]}),this.compileGlyphImpl(e,o,t),o.push({cmd:"restore"}),o}},{key:"compileGlyphImpl",value:function(){(0,n.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function(e){var t=d(this.cmap,e);return void 0!==this.compiledGlyphs[t.glyphId]&&void 0!==this.compiledCharCodeToGlyphId[t.charCode]}}]),e}(),w=function(e){g(r,e);var t=v(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]),i.glyphs=e,i.cmap=n,i}return f(r,[{key:"compileGlyphImpl",value:function(e,t){h(e,t,this)}}]),r}(y),_=function(e){g(n,e);var t=v(n);function n(e,a,o,s){var l;return p(this,n),l=t.call(this,o||[.001,0,0,.001,0,0]),l.glyphs=e.glyphs,l.gsubrs=e.gsubrs||[],l.subrs=e.subrs||[],l.cmap=a,l.glyphNameMap=s||(0,i.getGlyphsUnicode)(),l.gsubrsBias=r(l.gsubrs),l.subrsBias=r(l.subrs),l.isCFFCIDFont=e.isCFFCIDFont,l.fdSelect=e.fdSelect,l.fdArray=e.fdArray,l}return f(n,[{key:"compileGlyphImpl",value:function(e,t,r){m(e,t,this,r)}}]),n}(y);return{create:function(r,a){for(var i,o,s,d,h,f,p=new Uint8Array(r.data),g=t(p,4),v=0,m=12;v<g;v++,m+=16){var b=(0,n.bytesToString)(p.subarray(m,m+4)),y=e(p,m+8),k=e(p,m+12);switch(b){case"cmap":i=l(p,y,y+k);break;case"glyf":o=p.subarray(y,y+k);break;case"loca":s=p.subarray(y,y+k);break;case"head":f=t(p,y+18),h=t(p,y+50);break;case"CFF ":d=c(p,y,y+k,a);break}}if(o){var x=f?[1/f,0,0,1/f,0,0]:r.fontMatrix;return new w(u(o,s,h),i,x)}return new _(d,i,r.fontMatrix,r.glyphNameMap)}}}();t.FontRendererFactory=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var n=r(30),a=r(7),i=r(11),o=r(2),s=!1,l=function(){var e={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};function t(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return t.prototype={convert:function(t,r,n){for(var a,i,l,c=t.length,u=!1,d=0;d<c;d++){var h=t[d];if(h<32){switch(12===h&&(h=(h<<8)+t[++d]),h){case 1:if(!s){this.stack=[];break}u=this.executeCommand(2,e.hstem);break;case 3:if(!s){this.stack=[];break}u=this.executeCommand(2,e.vstem);break;case 4:if(this.flexing){if(this.stack.length<1){u=!0;break}var f=this.stack.pop();this.stack.push(0,f);break}u=this.executeCommand(1,e.vmoveto);break;case 5:u=this.executeCommand(2,e.rlineto);break;case 6:u=this.executeCommand(1,e.hlineto);break;case 7:u=this.executeCommand(1,e.vlineto);break;case 8:u=this.executeCommand(6,e.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){u=!0;break}if(l=this.stack.pop(),!r[l]){u=!0;break}u=this.convert(r[l],r,n);break;case 11:return u;case 13:if(this.stack.length<2){u=!0;break}a=this.stack.pop(),i=this.stack.pop(),this.lsb=i,this.width=a,this.stack.push(a,i),u=this.executeCommand(2,e.hmoveto);break;case 14:this.output.push(e.endchar[0]);break;case 21:if(this.flexing)break;u=this.executeCommand(2,e.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}u=this.executeCommand(1,e.hmoveto);break;case 30:u=this.executeCommand(4,e.vhcurveto);break;case 31:u=this.executeCommand(4,e.hvcurveto);break;case 3072:this.stack=[];break;case 3073:if(!s){this.stack=[];break}u=this.executeCommand(2,e.vstem);break;case 3074:if(!s){this.stack=[];break}u=this.executeCommand(2,e.hstem);break;case 3078:n?(this.seac=this.stack.splice(-4,4),u=this.executeCommand(0,e.endchar)):u=this.executeCommand(4,e.endchar);break;case 3079:if(this.stack.length<4){u=!0;break}this.stack.pop(),a=this.stack.pop();var p=this.stack.pop();i=this.stack.pop(),this.lsb=i,this.width=a,this.stack.push(a,i,p),u=this.executeCommand(3,e.rmoveto);break;case 3084:if(this.stack.length<2){u=!0;break}var g=this.stack.pop(),v=this.stack.pop();this.stack.push(v/g);break;case 3088:if(this.stack.length<2){u=!0;break}l=this.stack.pop();var m=this.stack.pop();if(0===l&&3===m){var b=this.stack.splice(this.stack.length-17,17);this.stack.push(b[2]+b[0],b[3]+b[1],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14]),u=this.executeCommand(13,e.flex,!0),this.flexing=!1,this.stack.push(b[15],b[16])}else 1===l&&0===m&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,o.warn)('Unknown type 1 charstring command of "'+h+'"');break}if(u)break}else h<=246?h-=139:h=h<=250?256*(h-247)+t[++d]+108:h<=254?-256*(h-251)-t[++d]-108:(255&t[++d])<<24|(255&t[++d])<<16|(255&t[++d])<<8|(255&t[++d])<<0,this.stack.push(h)}return u},executeCommand: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}},t}(),c=function(){var e=55665,t=4330;function r(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function o(e,t,r){if(r>=e.length)return new Uint8Array(0);var n,a,i=0|t,o=52845,s=22719;for(n=0;n<r;n++)i=(e[n]+i)*o+s&65535;var l=e.length-r,c=new Uint8Array(l);for(n=r,a=0;a<l;n++,a++){var u=e[n];c[a]=u^i>>8,i=(u+i)*o+s&65535}return c}function c(e,t,n){var a,i,o=0|t,s=52845,l=22719,c=e.length,u=c>>>1,d=new Uint8Array(u);for(a=0,i=0;a<c;a++){var h=e[a];if(r(h)){var f;a++;while(a<c&&!r(f=e[a]))a++;if(a<c){var p=parseInt(String.fromCharCode(h,f),16);d[i++]=p^o>>8,o=(p+o)*s+l&65535}}}return Array.prototype.slice.call(d,n,i)}function u(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function d(t,n,a){if(n){var s=t.getBytes(),l=!(r(s[0])&&r(s[1])&&r(s[2])&&r(s[3]));t=new i.Stream(l?o(s,e,4):c(s,e,4))}this.seacAnalysisEnabled=!!a,this.stream=t,this.nextChar()}return d.prototype={readNumberArray:function(){this.getToken();var e=[];while(1){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){var e=this.getToken();return"true"===e?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){var e=!1,t=this.currentChar;while(1){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(u(t))return this.nextChar(),String.fromCharCode(t);var r="";do{r+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,a.isWhiteSpace)(t)&&!u(t));return r},readCharStrings:function(e,r){return-1===r?e:o(e,t,r)},extractFontProgram:function(e){var t=this.stream,r=[],n=[],a=Object.create(null);a["lenIV"]=4;var i,o,c,u,d,h={subrs:[],charstrings:[],properties:{privateData:a}};while(null!==(i=this.getToken()))if("/"===i)switch(i=this.getToken(),i){case"CharStrings":this.getToken(),this.getToken(),this.getToken(),this.getToken();while(1){if(i=this.getToken(),null===i||"end"===i)break;if("/"===i){var f=this.getToken();o=this.readInt(),this.getToken(),c=o>0?t.getBytes(o):new Uint8Array(0),u=h.properties.privateData["lenIV"],d=this.readCharStrings(c,u),this.nextChar(),i=this.getToken(),"noaccess"===i&&this.getToken(),n.push({glyph:f,encoded:d})}}break;case"Subrs":this.readInt(),this.getToken();while("dup"===this.getToken()){var p=this.readInt();o=this.readInt(),this.getToken(),c=o>0?t.getBytes(o):new Uint8Array(0),u=h.properties.privateData["lenIV"],d=this.readCharStrings(c,u),this.nextChar(),i=this.getToken(),"noaccess"===i&&this.getToken(),r[p]=d}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var g=this.readNumberArray();g.length>0&&g.length%2===0&&s&&(h.properties.privateData[i]=g);break;case"StemSnapH":case"StemSnapV":h.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":h.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":h.properties.privateData[i]=this.readNumber();break;case"ForceBold":h.properties.privateData[i]=this.readBoolean();break}for(var v=0;v<n.length;v++){f=n[v].glyph,d=n[v].encoded;var m=new l,b=m.convert(d,r,this.seacAnalysisEnabled),y=m.output;b&&(y=[14]);var w={glyphName:f,charstring:y,width:m.width,lsb:m.lsb,seac:m.seac};if(".notdef"===f?h.charstrings.unshift(w):h.charstrings.push(w),e.builtInEncoding){var _=e.builtInEncoding.indexOf(f);_>-1&&void 0===e.widths[_]&&_>=e.firstChar&&_<=e.lastChar&&(e.widths[_]=m.width)}}return h},extractFontHeader:function(e){var t;while(null!==(t=this.getToken()))if("/"===t)switch(t=this.getToken(),t){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var a,i=this.getToken();if(/^\d+$/.test(i)){a=[];var o=0|parseInt(i,10);this.getToken();for(var s=0;s<o;s++){t=this.getToken();while("dup"!==t&&"def"!==t)if(t=this.getToken(),null===t)return;if("def"===t)break;var l=this.readInt();this.getToken();var c=this.getToken();a[l]=c,this.getToken()}}else a=(0,n.getEncoding)(i);e.builtInEncoding=a;break;case"FontBBox":var u=this.readNumberArray();e.ascent=Math.max(u[3],u[1]),e.descent=Math.min(u[1],u[3]),e.ascentScaled=!0;break}}},d}();t.Type1Parser=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=u,t.Pattern=void 0;var n=r(2),a=r(22),i=r(4),o=r(7),s={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},l=function(){function e(){(0,n.unreachable)("should not call Pattern constructor")}return e.prototype={getPattern:function(e){(0,n.unreachable)("Should not call Pattern.getStyle: ".concat(e))}},e.parseShading=function(e,t,r,a,l,u){var d=(0,i.isStream)(e)?e.dict:e,h=d.get("ShadingType");try{switch(h){case s.AXIAL:case s.RADIAL:return new c.RadialAxial(d,t,r,a,u);case s.FREE_FORM_MESH:case s.LATTICE_FORM_MESH:case s.COONS_PATCH_MESH:case s.TENSOR_PATCH_MESH:return new c.Mesh(e,t,r,a,u);default:throw new n.FormatError("Unsupported ShadingType: "+h)}}catch(f){if(f instanceof o.MissingDataException)throw f;return l.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.shadingPattern}),(0,n.warn)(f),new c.Dummy}},e}();t.Pattern=l;var c={};function u(e,t,r){var a=t.getArray("Matrix"),i=n.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),l=t.get("PaintType"),c=t.get("TilingType");if(i[2]-i[0]===0||i[3]-i[1]===0)throw new n.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(i,"]."));return["TilingPattern",r,e,a,i,o,s,l,c]}c.SMALL_NUMBER=1e-6,c.RadialAxial=function(){function e(e,t,r,i,o){this.matrix=t,this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType"),this.type="Pattern";var l=e.get("ColorSpace","CS");l=a.ColorSpace.parse(l,r,i,o),this.cs=l;var u=e.getArray("BBox");Array.isArray(u)&&4===u.length?this.bbox=n.Util.normalizeRect(u):this.bbox=null;var d=0,h=1;if(e.has("Domain")){var f=e.getArray("Domain");d=f[0],h=f[1]}var p=!1,g=!1;if(e.has("Extend")){var v=e.getArray("Extend");p=v[0],g=v[1]}if(this.shadingType===s.RADIAL&&(!p||!g)){var m=this.coordsArr[0],b=this.coordsArr[1],y=this.coordsArr[2],w=this.coordsArr[3],_=this.coordsArr[4],k=this.coordsArr[5],x=Math.sqrt((m-w)*(m-w)+(b-_)*(b-_));y<=k+x&&k<=y+x&&(0,n.warn)("Unsupported radial gradient.")}this.extendStart=p,this.extendEnd=g;var S=e.get("Function"),A=o.createFromArray(S),C=10,P=(h-d)/C,T=this.colorStops=[];if(d>=h||P<=0)(0,n.info)("Bad shading domain.");else{for(var E,R=new Float32Array(l.numComps),I=new Float32Array(1),O=0;O<=C;O++){I[0]=d+O*P,A(I,0,R,0),E=l.getRgb(R,0);var L=n.Util.makeCssRgb(E[0],E[1],E[2]);T.push([O/C,L])}var F="transparent";e.has("Background")&&(E=l.getRgb(e.get("Background"),0),F=n.Util.makeCssRgb(E[0],E[1],E[2])),p||(T.unshift([0,F]),T[1][0]+=c.SMALL_NUMBER),g||(T[T.length-1][0]-=c.SMALL_NUMBER,T.push([1,F])),this.colorStops=T}}return e.prototype={getIR:function(){var e,t,r,a,i,o=this.coordsArr,l=this.shadingType;l===s.AXIAL?(t=[o[0],o[1]],r=[o[2],o[3]],a=null,i=null,e="axial"):l===s.RADIAL?(t=[o[0],o[1]],r=[o[3],o[4]],a=o[2],i=o[5],e="radial"):(0,n.unreachable)("getPattern type unknown: ".concat(l));var c=this.matrix;if(c&&(t=n.Util.applyTransform(t,c),r=n.Util.applyTransform(r,c),l===s.RADIAL)){var u=n.Util.singularValueDecompose2dScale(c);a*=u[0],i*=u[1]}return["RadialAxial",e,this.bbox,this.colorStops,t,r,a,i]}},e}(),c.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;var r=t.numComps;this.tmpCompsBuf=new Float32Array(r);var n=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(n):this.tmpCompsBuf}function t(e,t){var r=e.coords,a=e.colors,i=[],o=[],s=0;while(t.hasData){var l=t.readFlag(),c=t.readCoordinate(),u=t.readComponents();if(0===s){if(!(0<=l&&l<=2))throw new n.FormatError("Unknown type4 flag");switch(l){case 0:s=3;break;case 1:o.push(o[o.length-2],o[o.length-1]),s=1;break;case 2:o.push(o[o.length-3],o[o.length-1]),s=1;break}i.push(l)}o.push(r.length),r.push(c),a.push(u),s--,t.align()}e.figures.push({type:"triangles",coords:new Int32Array(o),colors:new Int32Array(o)})}function r(e,t,r){var n=e.coords,a=e.colors,i=[];while(t.hasData){var o=t.readCoordinate(),s=t.readComponents();i.push(n.length),n.push(o),a.push(s)}e.figures.push({type:"lattice",coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:r})}e.prototype={get hasData(){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)},readBits:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var 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();while(r<e)t=t<<8|this.stream.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=t&(1<<r)-1,t>>r},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),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]]},readComponents: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 l=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(a,0,l,0),this.context.colorSpace.getRgb(l,0)}};var o=3,l=20,c=20,u=function(){function e(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}var t=[];return function(r){return t[r]||(t[r]=e(r)),t[r]}}();function d(e,t){var r=e.figures[t];(0,n.assert)("patch"===r.type,"Unexpected patch mesh figure");var a=e.coords,i=e.colors,s=r.coords,d=r.colors,h=Math.min(a[s[0]][0],a[s[3]][0],a[s[12]][0],a[s[15]][0]),f=Math.min(a[s[0]][1],a[s[3]][1],a[s[12]][1],a[s[15]][1]),p=Math.max(a[s[0]][0],a[s[3]][0],a[s[12]][0],a[s[15]][0]),g=Math.max(a[s[0]][1],a[s[3]][1],a[s[12]][1],a[s[15]][1]),v=Math.ceil((p-h)*c/(e.bounds[2]-e.bounds[0]));v=Math.max(o,Math.min(l,v));var m=Math.ceil((g-f)*c/(e.bounds[3]-e.bounds[1]));m=Math.max(o,Math.min(l,m));for(var b=v+1,y=new Int32Array((m+1)*b),w=new Int32Array((m+1)*b),_=0,k=new Uint8Array(3),x=new Uint8Array(3),S=i[d[0]],A=i[d[1]],C=i[d[2]],P=i[d[3]],T=u(m),E=u(v),R=0;R<=m;R++){k[0]=(S[0]*(m-R)+C[0]*R)/m|0,k[1]=(S[1]*(m-R)+C[1]*R)/m|0,k[2]=(S[2]*(m-R)+C[2]*R)/m|0,x[0]=(A[0]*(m-R)+P[0]*R)/m|0,x[1]=(A[1]*(m-R)+P[1]*R)/m|0,x[2]=(A[2]*(m-R)+P[2]*R)/m|0;for(var I=0;I<=v;I++,_++)if(0!==R&&R!==m||0!==I&&I!==v){for(var O=0,L=0,F=0,M=0;M<=3;M++)for(var D=0;D<=3;D++,F++){var N=T[R][M]*E[I][D];O+=a[s[F]][0]*N,L+=a[s[F]][1]*N}y[_]=a.length,a.push([O,L]),w[_]=i.length;var B=new Uint8Array(3);B[0]=(k[0]*(v-I)+x[0]*I)/v|0,B[1]=(k[1]*(v-I)+x[1]*I)/v|0,B[2]=(k[2]*(v-I)+x[2]*I)/v|0,i.push(B)}}y[0]=s[0],w[0]=d[0],y[v]=s[3],w[v]=d[1],y[b*m]=s[12],w[b*m]=d[2],y[b*m+v]=s[15],w[b*m+v]=d[3],e.figures[t]={type:"lattice",coords:y,colors:w,verticesPerRow:b}}function h(e,t){var r=e.coords,a=e.colors,i=new Int32Array(16),o=new Int32Array(4);while(t.hasData){var s,l,c=t.readFlag();if(!(0<=c&&c<=3))throw new n.FormatError("Unknown type6 flag");var u=r.length;for(s=0,l=0!==c?8:12;s<l;s++)r.push(t.readCoordinate());var d,h,f,p,g=a.length;for(s=0,l=0!==c?2:4;s<l;s++)a.push(t.readComponents());switch(c){case 0:i[12]=u+3,i[13]=u+4,i[14]=u+5,i[15]=u+6,i[8]=u+2,i[11]=u+7,i[4]=u+1,i[7]=u+8,i[0]=u,i[1]=u+11,i[2]=u+10,i[3]=u+9,o[2]=g+1,o[3]=g+2,o[0]=g,o[1]=g+3;break;case 1:d=i[12],h=i[13],f=i[14],p=i[15],i[12]=p,i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=f,i[11]=u+3,i[4]=h,i[7]=u+4,i[0]=d,i[1]=u+7,i[2]=u+6,i[3]=u+5,d=o[2],h=o[3],o[2]=h,o[3]=g,o[0]=d,o[1]=g+1;break;case 2:d=i[15],h=i[11],i[12]=i[3],i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=i[7],i[11]=u+3,i[4]=h,i[7]=u+4,i[0]=d,i[1]=u+7,i[2]=u+6,i[3]=u+5,d=o[3],o[2]=o[1],o[3]=g,o[0]=d,o[1]=g+1;break;case 3:i[12]=i[0],i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=i[1],i[11]=u+3,i[4]=i[2],i[7]=u+4,i[0]=i[3],i[1]=u+7,i[2]=u+6,i[3]=u+5,o[2]=o[0],o[3]=g,o[0]=o[1],o[1]=g+1;break}i[5]=r.length,r.push([(-4*r[i[0]][0]-r[i[15]][0]+6*(r[i[4]][0]+r[i[1]][0])-2*(r[i[12]][0]+r[i[3]][0])+3*(r[i[13]][0]+r[i[7]][0]))/9,(-4*r[i[0]][1]-r[i[15]][1]+6*(r[i[4]][1]+r[i[1]][1])-2*(r[i[12]][1]+r[i[3]][1])+3*(r[i[13]][1]+r[i[7]][1]))/9]),i[6]=r.length,r.push([(-4*r[i[3]][0]-r[i[12]][0]+6*(r[i[2]][0]+r[i[7]][0])-2*(r[i[0]][0]+r[i[15]][0])+3*(r[i[4]][0]+r[i[14]][0]))/9,(-4*r[i[3]][1]-r[i[12]][1]+6*(r[i[2]][1]+r[i[7]][1])-2*(r[i[0]][1]+r[i[15]][1])+3*(r[i[4]][1]+r[i[14]][1]))/9]),i[9]=r.length,r.push([(-4*r[i[12]][0]-r[i[3]][0]+6*(r[i[8]][0]+r[i[13]][0])-2*(r[i[0]][0]+r[i[15]][0])+3*(r[i[11]][0]+r[i[1]][0]))/9,(-4*r[i[12]][1]-r[i[3]][1]+6*(r[i[8]][1]+r[i[13]][1])-2*(r[i[0]][1]+r[i[15]][1])+3*(r[i[11]][1]+r[i[1]][1]))/9]),i[10]=r.length,r.push([(-4*r[i[15]][0]-r[i[0]][0]+6*(r[i[11]][0]+r[i[14]][0])-2*(r[i[12]][0]+r[i[3]][0])+3*(r[i[2]][0]+r[i[8]][0]))/9,(-4*r[i[15]][1]-r[i[0]][1]+6*(r[i[11]][1]+r[i[14]][1])-2*(r[i[12]][1]+r[i[3]][1])+3*(r[i[2]][1]+r[i[8]][1]))/9]),e.figures.push({type:"patch",coords:new Int32Array(i),colors:new Int32Array(o)})}}function f(e,t){var r=e.coords,a=e.colors,i=new Int32Array(16),o=new Int32Array(4);while(t.hasData){var s,l,c=t.readFlag();if(!(0<=c&&c<=3))throw new n.FormatError("Unknown type7 flag");var u=r.length;for(s=0,l=0!==c?12:16;s<l;s++)r.push(t.readCoordinate());var d,h,f,p,g=a.length;for(s=0,l=0!==c?2:4;s<l;s++)a.push(t.readComponents());switch(c){case 0:i[12]=u+3,i[13]=u+4,i[14]=u+5,i[15]=u+6,i[8]=u+2,i[9]=u+13,i[10]=u+14,i[11]=u+7,i[4]=u+1,i[5]=u+12,i[6]=u+15,i[7]=u+8,i[0]=u,i[1]=u+11,i[2]=u+10,i[3]=u+9,o[2]=g+1,o[3]=g+2,o[0]=g,o[1]=g+3;break;case 1:d=i[12],h=i[13],f=i[14],p=i[15],i[12]=p,i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=f,i[9]=u+9,i[10]=u+10,i[11]=u+3,i[4]=h,i[5]=u+8,i[6]=u+11,i[7]=u+4,i[0]=d,i[1]=u+7,i[2]=u+6,i[3]=u+5,d=o[2],h=o[3],o[2]=h,o[3]=g,o[0]=d,o[1]=g+1;break;case 2:d=i[15],h=i[11],i[12]=i[3],i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=i[7],i[9]=u+9,i[10]=u+10,i[11]=u+3,i[4]=h,i[5]=u+8,i[6]=u+11,i[7]=u+4,i[0]=d,i[1]=u+7,i[2]=u+6,i[3]=u+5,d=o[3],o[2]=o[1],o[3]=g,o[0]=d,o[1]=g+1;break;case 3:i[12]=i[0],i[13]=u+0,i[14]=u+1,i[15]=u+2,i[8]=i[1],i[9]=u+9,i[10]=u+10,i[11]=u+3,i[4]=i[2],i[5]=u+8,i[6]=u+11,i[7]=u+4,i[0]=i[3],i[1]=u+7,i[2]=u+6,i[3]=u+5,o[2]=o[0],o[3]=g,o[0]=o[1],o[1]=g+1;break}e.figures.push({type:"patch",coords:new Int32Array(i),colors:new Int32Array(o)})}}function p(e){for(var t=e.coords[0][0],r=e.coords[0][1],n=t,a=r,i=1,o=e.coords.length;i<o;i++){var s=e.coords[i][0],l=e.coords[i][1];t=t>s?s:t,r=r>l?l:r,n=n<s?s:n,a=a<l?l:a}e.bounds=[t,r,n,a]}function g(e){var t,r,n,a,i=e.coords,o=new Float32Array(2*i.length);for(t=0,n=0,r=i.length;t<r;t++){var s=i[t];o[n++]=s[0],o[n++]=s[1]}e.coords=o;var l=e.colors,c=new Uint8Array(3*l.length);for(t=0,n=0,r=l.length;t<r;t++){var u=l[t];c[n++]=u[0],c[n++]=u[1],c[n++]=u[2]}e.colors=c;var d=e.figures;for(t=0,r=d.length;t<r;t++){var h=d[t],f=h.coords,p=h.colors;for(n=0,a=f.length;n<a;n++)f[n]*=2,p[n]*=3}}function v(o,l,c,u,v){if(!(0,i.isStream)(o))throw new n.FormatError("Mesh data is not a stream");var m=o.dict;this.matrix=l,this.shadingType=m.get("ShadingType"),this.type="Pattern";var b=m.getArray("BBox");Array.isArray(b)&&4===b.length?this.bbox=n.Util.normalizeRect(b):this.bbox=null;var y=m.get("ColorSpace","CS");y=a.ColorSpace.parse(y,c,u,v),this.cs=y,this.background=m.has("Background")?y.getRgb(m.get("Background"),0):null;var w=m.get("Function"),_=w?v.createFromArray(w):null;this.coords=[],this.colors=[],this.figures=[];var k={bitsPerCoordinate:m.get("BitsPerCoordinate"),bitsPerComponent:m.get("BitsPerComponent"),bitsPerFlag:m.get("BitsPerFlag"),decode:m.getArray("Decode"),colorFn:_,colorSpace:y,numComps:_?1:y.numComps},x=new e(o,k),S=!1;switch(this.shadingType){case s.FREE_FORM_MESH:t(this,x);break;case s.LATTICE_FORM_MESH:var A=0|m.get("VerticesPerRow");if(A<2)throw new n.FormatError("Invalid VerticesPerRow");r(this,x,A);break;case s.COONS_PATCH_MESH:h(this,x),S=!0;break;case s.TENSOR_PATCH_MESH:f(this,x),S=!0;break;default:(0,n.unreachable)("Unsupported mesh type.");break}if(S){p(this);for(var C=0,P=this.figures.length;C<P;C++)d(this,C)}p(this),g(this)}return v.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}},v}(),c.Dummy=function(){function e(){this.type="Pattern"}return e.prototype={getIR:function(){return["Dummy"]}},e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=p;var n=r(2),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 l(e,t,r){for(var n=t,a=e.length;n<a;++n)if(e[n]!==r)return n;return n}function c(e,t,r,n){for(var a=t;a<r;++a)e[a]=n}function u(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 d(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=[],f=[];function p(e,t,r){var p=!0,g=e.length;if(0===g||r)return d(e,p,r);h.length=g,f.length=g;var v,m,b=0;for(v=0;v<g;++v){h[v]=e.charAt(v);var y=e.charCodeAt(v),w="L";y<=255?w=a[y]:1424<=y&&y<=1524?w="R":1536<=y&&y<=1791?(w=i[255&y],w||(0,n.warn)("Bidi: invalid Unicode character "+y.toString(16))):1792<=y&&y<=2220&&(w="AL"),"R"!==w&&"AL"!==w&&"AN"!==w||b++,f[v]=w}if(0===b)return p=!0,d(e,p);-1===t&&(b/g<.3?(p=!0,t=0):(p=!1,t=1));var _=[];for(v=0;v<g;++v)_[v]=t;var k,x=o(t)?"R":"L",S=x,A=S,C=S;for(v=0;v<g;++v)"NSM"===f[v]?f[v]=C:C=f[v];for(C=S,v=0;v<g;++v)k=f[v],"EN"===k?f[v]="AL"===C?"AN":"EN":"R"!==k&&"L"!==k&&"AL"!==k||(C=k);for(v=0;v<g;++v)k=f[v],"AL"===k&&(f[v]="R");for(v=1;v<g-1;++v)"ES"===f[v]&&"EN"===f[v-1]&&"EN"===f[v+1]&&(f[v]="EN"),"CS"!==f[v]||"EN"!==f[v-1]&&"AN"!==f[v-1]||f[v+1]!==f[v-1]||(f[v]=f[v-1]);for(v=0;v<g;++v)if("EN"===f[v]){var P;for(P=v-1;P>=0;--P){if("ET"!==f[P])break;f[P]="EN"}for(P=v+1;P<g;++P){if("ET"!==f[P])break;f[P]="EN"}}for(v=0;v<g;++v)k=f[v],"WS"!==k&&"ES"!==k&&"ET"!==k&&"CS"!==k||(f[v]="ON");for(C=S,v=0;v<g;++v)k=f[v],"EN"===k?f[v]="L"===C?"L":"EN":"R"!==k&&"L"!==k||(C=k);for(v=0;v<g;++v)if("ON"===f[v]){var T=l(f,v+1,"ON"),E=S;v>0&&(E=f[v-1]);var R=A;T+1<g&&(R=f[T+1]),"L"!==E&&(E="R"),"L"!==R&&(R="R"),E===R&&c(f,v,T,E),v=T-1}for(v=0;v<g;++v)"ON"===f[v]&&(f[v]=x);for(v=0;v<g;++v)k=f[v],s(_[v])?"R"===k?_[v]+=1:"AN"!==k&&"EN"!==k||(_[v]+=2):"L"!==k&&"AN"!==k&&"EN"!==k||(_[v]+=1);var I,O=-1,L=99;for(v=0,m=_.length;v<m;++v)I=_[v],O<I&&(O=I),L>I&&o(I)&&(L=I);for(I=O;I>=L;--I){var F=-1;for(v=0,m=_.length;v<m;++v)_[v]<I?F>=0&&(u(h,F,v),F=-1):F<0&&(F=v);F>=0&&u(h,F,_.length)}for(v=0,m=h.length;v<m;++v){var M=h[v];"<"!==M&&">"!==M||(h[v]="")}return d(h.join(""),p)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var n=r(7),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},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=c,t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunctionFactory=void 0;var n=r(2),a=r(4),i=r(40),o=function(){function e(t){var r=t.xref,n=t.isEvalSupported,a=void 0===n||n;p(this,e),this.xref=r,this.isEvalSupported=!1!==a}return f(e,[{key:"create",value:function(e){return l.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e})}},{key:"createFromArray",value:function(e){return l.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e})}}]),e}();function s(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=o;var l=function(){var e=0,t=2,r=3,a=4;return{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),l=0,c=0,u=1/(Math.pow(2,r)-1),d=n.getBytes((o*r+7)/8),h=0;for(a=0;a<o;a++){while(l<r)c<<=8,c|=d[h++],l+=8;l-=r,s[a]=(c>>l)*u,c&=(1<<l)-1}return s},getIR:function(e){var t=e.xref,r=e.isEvalSupported,a=e.fn,i=a.dict;i||(i=a);var o=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],s=i.get("FunctionType"),l=o[s];if(!l)throw new n.FormatError("Unknown type of function");return l.call(this,{xref:t,isEvalSupported:r,fn:a,dict:i})},fromIR:function(n){var a=n.xref,i=n.isEvalSupported,o=n.IR,s=o[0];switch(s){case e:return this.constructSampledFromIR({xref:a,isEvalSupported:i,IR:o});case t:return this.constructInterpolatedFromIR({xref:a,isEvalSupported:i,IR:o});case r:return this.constructStichedFromIR({xref:a,isEvalSupported:i,IR:o});default:return this.constructPostScriptFromIR({xref:a,isEvalSupported:i,IR:o})}},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(t){t.xref,t.isEvalSupported;var r=t.fn,a=t.dict;function i(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 o=s(a.getArray("Domain")),l=s(a.getArray("Range"));if(!o||!l)throw new n.FormatError("No domain or range");var c=o.length/2,u=l.length/2;o=i(o),l=i(l);var d=s(a.getArray("Size")),h=a.get("BitsPerSample"),f=a.get("Order")||1;1!==f&&(0,n.info)("No support for cubic spline interpolation: "+f);var p=s(a.getArray("Encode"));if(p)p=i(p);else{p=[];for(var g=0;g<c;++g)p.push([0,d[g]-1])}var v=s(a.getArray("Decode"));v=v?i(v):l;var m=this.getSampleArray(d,u,h,r);return[e,c,o,p,v,m,d,u,Math.pow(2,h)-1,l]},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,l=t[1],c=t[2],u=t[3],d=t[4],h=t[5],f=t[6],p=t[7],g=t[9],v=1<<l,m=new Float64Array(v),b=new Uint32Array(v);for(s=0;s<v;s++)m[s]=1;var y=p,w=1;for(o=0;o<l;++o){var _=c[o][0],k=c[o][1],x=Math.min(Math.max(e[n+o],_),k),S=r(x,_,k,u[o][0],u[o][1]),A=f[o];S=Math.min(Math.max(S,0),A-1);var C=S<A-1?Math.floor(S):S-1,P=C+1-S,T=S-C,E=C*y,R=E+y;for(s=0;s<v;s++)s&w?(m[s]*=T,b[s]+=R):(m[s]*=P,b[s]+=E);y*=A,w<<=1}for(s=0;s<p;++s){var I=0;for(o=0;o<v;o++)I+=h[b[o]+s]*m[o];I=r(I,0,1,d[s][0],d[s][1]),a[i+s]=Math.min(Math.max(I,g[s][0]),g[s][1])}}},constructInterpolated:function(e){e.xref,e.isEvalSupported,e.fn;for(var r=e.dict,n=s(r.getArray("C0"))||[0],a=s(r.getArray("C1"))||[1],i=r.get("N"),o=n.length,l=[],c=0;c<o;++c)l.push(a[c]-n[c]);return[t,n,l,i]},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 l=1===a?e[t]:Math.pow(e[t],a),c=0;c<i;++c)o[s+c]=r[c]+l*n[c]}},constructStiched:function(e){var t=e.xref,a=e.isEvalSupported,i=(e.fn,e.dict),o=s(i.getArray("Domain"));if(!o)throw new n.FormatError("No domain");var l=o.length/2;if(1!==l)throw new n.FormatError("Bad domain for stiched function");for(var c=i.get("Functions"),u=[],d=0,h=c.length;d<h;++d)u.push(this.parse({xref:t,isEvalSupported:a,fn:t.fetchIfRef(c[d])}));var f=s(i.getArray("Bounds")),p=s(i.getArray("Encode"));return[r,o,f,p,u]},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,l){for(var c=function(e,t,r){return e>r?e=r:e<t&&(e=t),e},u=c(e[t],r[0],r[1]),d=0,h=n.length;d<h;++d)if(u<n[d])break;var f=r[0];d>0&&(f=n[d-1]);var p=r[1];d<n.length&&(p=n[d]);var g=a[2*d],v=a[2*d+1];o[0]=f===p?g:g+(u-f)*(v-g)/(p-f),i[d](o,0,s,l)}},constructPostScript:function(e){e.xref,e.isEvalSupported;var t=e.fn,r=e.dict,o=s(r.getArray("Domain")),l=s(r.getArray("Range"));if(!o)throw new n.FormatError("No domain.");if(!l)throw new n.FormatError("No range.");var c=new i.PostScriptLexer(t),u=new i.PostScriptParser(c),d=u.parse();return[a,o,l,d]},constructPostScriptFromIR:function(e){e.xref;var t=e.isEvalSupported,r=e.IR,a=r[1],i=r[2],o=r[3];if(t&&n.IsEvalSupportedCached.value){var s=(new h).compile(o,a,i);if(s)return new Function("src","srcOffset","dest","destOffset",s)}(0,n.info)("Unable to compile PS function");var l=i.length>>1,c=a.length>>1,u=new d(o),f=Object.create(null),p=8192,g=p,v=new Float32Array(c);return function(e,t,r,n){var a,o,s="",d=v;for(a=0;a<c;a++)o=e[t+a],d[a]=o,s+=o+"_";var h=f[s];if(void 0===h){var p=new Float32Array(l),m=u.execute(d),b=m.length-l;for(a=0;a<l;a++){o=m[b+a];var y=i[2*a];o<y?o=y:(y=i[2*a+1],o>y&&(o=y)),p[a]=o}g>0&&(g--,f[s]=p),r.set(p,n)}else r.set(h,n)}}}}();function c(e){var t;if("object"!==y(e))return!1;if((0,a.isDict)(e))t=e;else{if(!(0,a.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")}var u=function(){var e=100;function t(e){this.stack=e?Array.prototype.slice.call(e,0):[]}return t.prototype={push:function(t){if(this.stack.length>=e)throw new Error("PostScript function stack overflow.");this.stack.push(t)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(t){if(this.stack.length+t>=e)throw new Error("PostScript function stack overflow.");for(var r=this.stack,n=r.length-t,a=t-1;a>=0;a--,n++)r.push(r[n])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var r,n,a,i=this.stack,o=i.length-e,s=i.length-1,l=o+(t-Math.floor(t/e)*e);for(r=o,n=s;r<n;r++,n--)a=i[r],i[r]=i[n],i[n]=a;for(r=o,n=l-1;r<n;r++,n--)a=i[r],i[r]=i[n],i[n]=a;for(r=l,n=s;r<n;r++,n--)a=i[r],i[r]=i[n],i[n]=a}},t}(),d=function(){function e(e){this.operators=e}return e.prototype={execute:function(e){var t,r,a,i=new u(e),o=0,s=this.operators,l=s.length;while(o<l)if(t=s[o++],"number"!==typeof t)switch(t){case"jz":a=i.pop(),r=i.pop(),r||(o=a);break;case"j":r=i.pop(),o=r;break;case"abs":r=i.pop(),i.push(Math.abs(r));break;case"add":a=i.pop(),r=i.pop(),i.push(r+a);break;case"and":a=i.pop(),r=i.pop(),(0,n.isBool)(r)&&(0,n.isBool)(a)?i.push(r&&a):i.push(r&a);break;case"atan":r=i.pop(),i.push(Math.atan(r));break;case"bitshift":a=i.pop(),r=i.pop(),r>0?i.push(r<<a):i.push(r>>a);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":a=i.pop(),r=i.pop(),i.push(r/a);break;case"dup":i.copy(1);break;case"eq":a=i.pop(),r=i.pop(),i.push(r===a);break;case"exch":i.roll(2,1);break;case"exp":a=i.pop(),r=i.pop(),i.push(Math.pow(r,a));break;case"false":i.push(!1);break;case"floor":r=i.pop(),i.push(Math.floor(r));break;case"ge":a=i.pop(),r=i.pop(),i.push(r>=a);break;case"gt":a=i.pop(),r=i.pop(),i.push(r>a);break;case"idiv":a=i.pop(),r=i.pop(),i.push(r/a|0);break;case"index":r=i.pop(),i.index(r);break;case"le":a=i.pop(),r=i.pop(),i.push(r<=a);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":a=i.pop(),r=i.pop(),i.push(r<a);break;case"mod":a=i.pop(),r=i.pop(),i.push(r%a);break;case"mul":a=i.pop(),r=i.pop(),i.push(r*a);break;case"ne":a=i.pop(),r=i.pop(),i.push(r!==a);break;case"neg":r=i.pop(),i.push(-r);break;case"not":r=i.pop(),(0,n.isBool)(r)?i.push(!r):i.push(~r);break;case"or":a=i.pop(),r=i.pop(),(0,n.isBool)(r)&&(0,n.isBool)(a)?i.push(r||a):i.push(r|a);break;case"pop":i.pop();break;case"roll":a=i.pop(),r=i.pop(),i.roll(r,a);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":a=i.pop(),r=i.pop(),i.push(r-a);break;case"true":i.push(!0);break;case"truncate":r=i.pop(),r=r<0?Math.ceil(r):Math.floor(r),i.push(r);break;case"xor":a=i.pop(),r=i.pop(),(0,n.isBool)(r)&&(0,n.isBool)(a)?i.push(r!==a):i.push(r^a);break;default:throw new n.FormatError("Unknown operator ".concat(t))}else i.push(t);return i.stack}},e}();t.PostScriptEvaluator=d;var h=function(){function e(e){this.type=e}function t(t,r,n){e.call(this,"args"),this.index=t,this.min=r,this.max=n}function r(t){e.call(this,"literal"),this.number=t,this.min=t,this.max=t}function a(t,r,n,a,i){e.call(this,"binary"),this.op=t,this.arg1=r,this.arg2=n,this.min=a,this.max=i}function i(t,r){e.call(this,"max"),this.arg=t,this.min=t.min,this.max=r}function o(t,r,n){e.call(this,"var"),this.index=t,this.min=r,this.max=n}function s(t,r){e.call(this,"definition"),this.variable=t,this.arg=r}function l(){this.parts=[]}function c(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 a("+",e,t,e.min+t.min,e.max+t.max)}function u(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 n=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 a("*",e,t,n,i)}function d(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 a("-",e,t,e.min-t.max,e.max-t.min)}function h(e,t){return e.min>=t?new r(t):e.max<=t?e:new i(e,t)}function f(){}return e.prototype.visit=function(e){(0,n.unreachable)("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},r.prototype=Object.create(e.prototype),r.prototype.visit=function(e){e.visitLiteral(this)},a.prototype=Object.create(e.prototype),a.prototype.visit=function(e){e.visitBinaryOperation(this)},i.prototype=Object.create(e.prototype),i.prototype.visit=function(e){e.visitMin(this)},o.prototype=Object.create(e.prototype),o.prototype.visit=function(e){e.visitVariable(this)},s.prototype=Object.create(e.prototype),s.prototype.visit=function(e){e.visitVariableDefinition(this)},l.prototype={visitArgument:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable:function(e){this.parts.push("v",e.index)},visitLiteral:function(e){this.parts.push(e.number)},visitBinaryOperation:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString:function(){return this.parts.join("")}},f.prototype={compile:function(e,n,a){var i,f,p,g,v,m,b,y,w,_,k=[],x=[],S=n.length>>1,A=a.length>>1,C=0;for(i=0;i<S;i++)k.push(new t(i,n[2*i],n[2*i+1]));for(i=0,f=e.length;i<f;i++)if(_=e[i],"number"!==typeof _)switch(_){case"add":if(k.length<2)return null;m=k.pop(),v=k.pop(),k.push(c(v,m));break;case"cvr":if(k.length<1)return null;break;case"mul":if(k.length<2)return null;m=k.pop(),v=k.pop(),k.push(u(v,m));break;case"sub":if(k.length<2)return null;m=k.pop(),v=k.pop(),k.push(d(v,m));break;case"exch":if(k.length<2)return null;b=k.pop(),y=k.pop(),k.push(b,y);break;case"pop":if(k.length<1)return null;k.pop();break;case"index":if(k.length<1)return null;if(v=k.pop(),"literal"!==v.type)return null;if(p=v.number,p<0||!Number.isInteger(p)||k.length<p)return null;if(b=k[k.length-p-1],"literal"===b.type||"var"===b.type){k.push(b);break}w=new o(C++,b.min,b.max),k[k.length-p-1]=w,k.push(w),x.push(new s(w,b));break;case"dup":if(k.length<1)return null;if("number"===typeof e[i+1]&&"gt"===e[i+2]&&e[i+3]===i+7&&"jz"===e[i+4]&&"pop"===e[i+5]&&e[i+6]===e[i+1]){v=k.pop(),k.push(h(v,e[i+1])),i+=6;break}if(b=k[k.length-1],"literal"===b.type||"var"===b.type){k.push(b);break}w=new o(C++,b.min,b.max),k[k.length-1]=w,k.push(w),x.push(new s(w,b));break;case"roll":if(k.length<2)return null;if(m=k.pop(),v=k.pop(),"literal"!==m.type||"literal"!==v.type)return null;if(g=m.number,p=v.number,p<=0||!Number.isInteger(p)||!Number.isInteger(g)||k.length<p)return null;if(g=(g%p+p)%p,0===g)break;Array.prototype.push.apply(k,k.splice(k.length-p,p-g));break;default:return null}else k.push(new r(_));if(k.length!==A)return null;var P=[];return x.forEach((function(e){var t=new l;e.visit(t),P.push(t.toString())})),k.forEach((function(e,t){var r=new l;e.visit(r);var n=a[2*t],i=a[2*t+1],o=[r.toString()];n>e.min&&(o.unshift("Math.max(",n,", "),o.push(")")),i<e.max&&(o.unshift("Math.min(",i,", "),o.push(")")),o.unshift("dest[destOffset + ",t,"] = "),o.push(";"),P.push(o.join(""))})),P.join("\n")}},f}();t.PostScriptCompiler=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var n=r(2),a=r(4),i=r(7),o=function(){function e(t){p(this,e),this.lexer=t,this.operators=[],this.token=null,this.prev=null}return f(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(s.LBRACE),this.parseBlock(),this.expect(s.RBRACE),this.operators}},{key:"parseBlock",value:function(){while(1)if(this.accept(s.NUMBER))this.operators.push(this.prev.value);else if(this.accept(s.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(s.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(s.RBRACE),this.accept(s.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(s.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(s.RBRACE),this.expect(s.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=r,this.operators[e+1]="jz"}}}]),e}();t.PostScriptParser=o;var s={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},l=function(){var e=Object.create(null),t=function(){function t(e,r){p(this,t),this.type=e,this.value=r}return f(t,null,[{key:"getOperator",value:function(r){var n=e[r];return n||(e[r]=new t(s.OPERATOR,r))}},{key:"LBRACE",get:function(){return(0,n.shadow)(this,"LBRACE",new t(s.LBRACE,"{"))}},{key:"RBRACE",get:function(){return(0,n.shadow)(this,"RBRACE",new t(s.RBRACE,"}"))}},{key:"IF",get:function(){return(0,n.shadow)(this,"IF",new t(s.IF,"IF"))}},{key:"IFELSE",get:function(){return(0,n.shadow)(this,"IFELSE",new t(s.IFELSE,"IFELSE"))}}]),t}();return t}(),c=function(){function e(t){p(this,e),this.stream=t,this.nextChar(),this.strBuf=[]}return f(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){var e=!1,t=this.currentChar;while(1){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 l(s.NUMBER,this.getNumber());case 123:return this.nextChar(),l.LBRACE;case 125:return this.nextChar(),l.RBRACE}var r=this.strBuf;r.length=0,r[0]=String.fromCharCode(t);while((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 l.IF;case"ifelse":return l.IFELSE;default:return l.getOperator(n)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;t.length=0,t[0]=String.fromCharCode(e);while((e=this.nextChar())>=0){if(!(e>=48&&e<=57||45===e||46===e))break;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=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var n=r(2),a=3285377520,i=4294901760,o=65535,s=function(){function e(t){p(this,e),this.h1=t?4294967295&t:a,this.h2=t?4294967295&t:a}return f(e,[{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,s=e.length;a<s;a++){var l=e.charCodeAt(a);l<=255?t[r++]=l:(t[r++]=l>>>8,t[r++]=255&l)}}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e,r=t.byteLength}for(var c=r>>2,u=r-4*c,d=new Uint32Array(t.buffer,0,c),h=0,f=0,p=this.h1,g=this.h2,v=3432918353,m=461845907,b=v&o,y=m&o,w=0;w<c;w++)1&w?(h=d[w],h=h*v&i|h*b&o,h=h<<15|h>>>17,h=h*m&i|h*y&o,p^=h,p=p<<13|p>>>19,p=5*p+3864292196):(f=d[w],f=f*v&i|f*b&o,f=f<<15|f>>>17,f=f*m&i|f*y&o,g^=f,g=g<<13|g>>>19,g=5*g+3864292196);switch(h=0,u){case 3:h^=t[4*c+2]<<16;case 2:h^=t[4*c+1]<<8;case 1:h^=t[4*c],h=h*v&i|h*b&o,h=h<<15|h>>>17,h=h*m&i|h*y&o,1&c?p^=h:g^=h}this.h1=p,this.h2=g}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&i|36045*e&o,t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16,e^=t>>>1,e=444984403*e&i|60499*e&o,t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16,e^=t>>>1;var r=(e>>>0).toString(16),n=(t>>>0).toString(16);return r.padStart(8,"0")+n.padStart(8,"0")}}]),e}();t.MurmurHash3_64=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NativeImageDecoder=void 0;var n=r(22),a=r(17),i=r(11),o=function(){function e(t){var r=t.xref,n=t.resources,a=t.handler,i=t.forceDataSchema,o=void 0!==i&&i,s=t.pdfFunctionFactory;p(this,e),this.xref=r,this.resources=n,this.handler=a,this.forceDataSchema=o,this.pdfFunctionFactory=s}return f(e,[{key:"canDecode",value:function(t){return t instanceof a.JpegStream&&e.isDecodable(t,this.xref,this.resources,this.pdfFunctionFactory)&&t.maybeValidDimensions}},{key:"decode",value:function(e){var t=e.dict,r=t.get("ColorSpace","CS");return r=n.ColorSpace.parse(r,this.xref,this.resources,this.pdfFunctionFactory),this.handler.sendWithPromise("JpegDecode",[e.getIR(this.forceDataSchema),r.numComps]).then((function(e){var r=e.data;e.width,e.height;return new i.Stream(r,0,r.length,t)}))}}],[{key:"isSupported",value:function(e,t,r,a){var i=e.dict;if(i.has("DecodeParms")||i.has("DP"))return!1;var o=n.ColorSpace.parse(i.get("ColorSpace","CS"),t,r,a);return("DeviceGray"===o.name||"DeviceRGB"===o.name)&&o.isDefaultDecode(i.getArray("Decode","D"))}},{key:"isDecodable",value:function(e,t,r,a){var i=e.dict;if(i.has("DecodeParms")||i.has("DP"))return!1;var o=n.ColorSpace.parse(i.get("ColorSpace","CS"),t,r,a),s=i.get("BitsPerComponent","BPC")||1;return(1===o.numComps||3===o.numComps)&&o.isDefaultDecode(i.getArray("Decode","D"),s)}}]),e}();t.NativeImageDecoder=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var n=r(2),a=r(4),i=r(22),o=r(11),s=r(17),l=r(20),c=function(){function e(e,t){return t&&t.canDecode(e)?t.decode(e).catch((function(t){return(0,n.warn)("Native image decoding failed -- trying to recover: "+(t&&t.message)),e})):Promise.resolve(e)}function t(e,t,r,n){return e=t+e*r,e<0?e=0:e>n&&(e=n),e}function r(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 l,c,u,d,h=r/a,f=n/i,p=0,g=new Uint16Array(a),v=r;for(l=0;l<a;l++)g[l]=Math.floor(l*h);for(l=0;l<i;l++)for(u=Math.floor(l*f)*v,c=0;c<a;c++)d=u+g[c],o[p++]=e[d];return o}function c(e){var t=e.xref,r=e.res,o=e.image,s=e.isInline,u=void 0!==s&&s,d=e.smask,h=void 0===d?null:d,f=e.mask,p=void 0===f?null:f,g=e.isMask,v=void 0!==g&&g,m=e.pdfFunctionFactory;this.image=o;var b=o.dict,y=b.get("Filter");if((0,a.isName)(y))switch(y.name){case"JPXDecode":var w=new l.JpxImage;w.parseImageProperties(o.stream),o.stream.reset(),o.width=w.width,o.height=w.height,o.bitsPerComponent=w.bitsPerComponent,o.numComps=w.componentsCount;break;case"JBIG2Decode":o.bitsPerComponent=1,o.numComps=1;break}var _=b.get("Width","W"),k=b.get("Height","H");if(Number.isInteger(o.width)&&o.width>0&&Number.isInteger(o.height)&&o.height>0&&(o.width!==_||o.height!==k)&&((0,n.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),_=o.width,k=o.height),_<1||k<1)throw new n.FormatError("Invalid image width: ".concat(_," or height: ").concat(k));this.width=_,this.height=k,this.interpolate=b.get("Interpolate","I")||!1,this.imageMask=b.get("ImageMask","IM")||!1,this.matte=b.get("Matte")||!1;var x=o.bitsPerComponent;if(!x&&(x=b.get("BitsPerComponent","BPC"),!x)){if(!this.imageMask)throw new n.FormatError("Bits per component missing in image: ".concat(this.imageMask));x=1}if(this.bpc=x,!this.imageMask){var S=b.get("ColorSpace","CS");if(!S)switch((0,n.info)("JPX images (which do not require color spaces)"),o.numComps){case 1:S=a.Name.get("DeviceGray");break;case 3:S=a.Name.get("DeviceRGB");break;case 4:S=a.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(o.numComps," ")+"color components not supported.")}var A=u?r:null;this.colorSpace=i.ColorSpace.parse(S,t,A,m),this.numComps=this.colorSpace.numComps}if(this.decode=b.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,x)||v&&!i.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var C=(1<<x)-1;this.decodeCoefficients=[],this.decodeAddends=[];for(var P=this.colorSpace&&"Indexed"===this.colorSpace.name,T=0,E=0;T<this.decode.length;T+=2,++E){var R=this.decode[T],I=this.decode[T+1];this.decodeCoefficients[E]=P?(I-R)/C:I-R,this.decodeAddends[E]=P?R:C*R}}if(h)this.smask=new c({xref:t,res:r,image:h,isInline:u,pdfFunctionFactory:m});else if(p)if((0,a.isStream)(p)){var O=p.dict,L=O.get("ImageMask","IM");L?this.mask=new c({xref:t,res:r,image:p,isInline:u,isMask:!0,pdfFunctionFactory:m}):(0,n.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=p}return c.buildImage=function(t){t.handler;var r,i,o=t.xref,s=t.res,l=t.image,u=t.isInline,d=void 0!==u&&u,h=t.nativeDecoder,f=void 0===h?null:h,p=t.pdfFunctionFactory,g=e(l,f),v=l.dict.get("SMask"),b=l.dict.get("Mask");return v?(r=e(v,f),i=Promise.resolve(null)):(r=Promise.resolve(null),b?(0,a.isStream)(b)?i=e(b,f):Array.isArray(b)?i=Promise.resolve(b):((0,n.warn)("Unsupported mask format."),i=Promise.resolve(null)):i=Promise.resolve(null)),Promise.all([g,r,i]).then((function(e){var t=m(e,3),r=t[0],n=t[1],a=t[2];return new c({xref:o,res:s,image:r,isInline:d,smask:n,mask:a,pdfFunctionFactory:p})}))},c.createMask=function(e){var t,r,n=e.imgArray,a=e.width,i=e.height,o=e.imageIsFromDecodeStream,s=e.inverseDecode,l=(a+7>>3)*i,c=n.byteLength,u=l===c;if(!o||s&&!u)if(s)for(t=new Uint8ClampedArray(l),t.set(n),r=c;r<l;r++)t[r]=255;else t=new Uint8ClampedArray(c),t.set(n);else t=n;if(s)for(r=0;r<c;r++)t[r]^=255;return{data:t,width:a,height:i}},c.prototype={get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)},get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)},decodeBuffer:function(e){var r,n,a=this.bpc,i=this.numComps,o=this.decodeAddends,s=this.decodeCoefficients,l=(1<<a)-1;if(1!==a){var c=0;for(r=0,n=this.width*this.height;r<n;r++)for(var u=0;u<i;u++)e[c]=t(e[c],o[u],s[u],l),c++}else for(r=0,n=e.length;r<n;r++)e[r]=+!e[r]},getComponents: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 l,c,u=n*i,d=(1<<t)-1,h=0;if(1===t)for(var f,p,g,v=0;v<a;v++){p=h+(-8&u),g=h+u;while(h<p)c=e[s++],r[h]=c>>7&1,r[h+1]=c>>6&1,r[h+2]=c>>5&1,r[h+3]=c>>4&1,r[h+4]=c>>3&1,r[h+5]=c>>2&1,r[h+6]=c>>1&1,r[h+7]=1&c,h+=8;if(h<g){c=e[s++],f=128;while(h<g)r[h++]=+!!(c&f),f>>=1}}else{var m=0;for(c=0,h=0,l=o;h<l;++h){h%u===0&&(c=0,m=0);while(m<t)c=c<<8|e[s++],m+=8;var b=m-t,y=c>>b;y<0?y=0:y>d&&(y=d),r[h]=y,c&=(1<<b)-1,m=b}}return r},fillOpacity:function(e,t,a,i,o){var s,l,u,d,h,f,p=this.smask,g=this.mask;if(p)l=p.width,u=p.height,s=new Uint8ClampedArray(l*u),p.fillGrayBuffer(s),l===t&&u===a||(s=r(s,p.bpc,l,u,t,a));else if(g)if(g instanceof c){for(l=g.width,u=g.height,s=new Uint8ClampedArray(l*u),g.numComps=1,g.fillGrayBuffer(s),d=0,h=l*u;d<h;++d)s[d]=255-s[d];l===t&&u===a||(s=r(s,g.bpc,l,u,t,a))}else{if(!Array.isArray(g))throw new n.FormatError("Unknown mask format.");s=new Uint8ClampedArray(t*a);var v=this.numComps;for(d=0,h=t*a;d<h;++d){var m=0,b=d*v;for(f=0;f<v;++f){var y=o[b+f],w=2*f;if(y<g[w]||y>g[w+1]){m=255;break}}s[d]=m}}if(s)for(d=0,f=3,h=t*i;d<h;++d,f+=4)e[f]=s[d];else for(d=0,f=3,h=t*i;d<h;++d,f+=4)e[f]=255},undoPreblend: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],l=t*r*4,c=0;c<l;c+=4){var u=e[c+3];if(0!==u){var d=255/u;e[c]=(e[c]-i)*d+i,e[c+1]=(e[c+1]-o)*d+o,e[c+2]=(e[c+2]-s)*d+s}else e[c]=255,e[c+1]=255,e[c+2]=255}},createImageData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.drawWidth,a=this.drawHeight,i={width:r,height:a,kind:0,data:null},l=this.numComps,c=this.width,u=this.height,d=this.bpc,h=c*l*d+7>>3;if(!t){var f;if("DeviceGray"===this.colorSpace.name&&1===d?f=n.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==d||this.needsDecode||(f=n.ImageKind.RGB_24BPP),f&&!this.smask&&!this.mask&&r===c&&a===u){if(i.kind=f,e=this.getImageBytes(u*h),this.image instanceof o.DecodeStream)i.data=e;else{var p=new Uint8ClampedArray(e.length);p.set(e),i.data=p}if(this.needsDecode){(0,n.assert)(f===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var g=i.data,v=0,m=g.length;v<m;v++)g[v]^=255}return i}if(this.image instanceof s.JpegStream&&!this.smask&&!this.mask){var b=u*h;switch(this.colorSpace.name){case"DeviceGray":b*=3;case"DeviceRGB":case"DeviceCMYK":return i.kind=n.ImageKind.RGB_24BPP,i.data=this.getImageBytes(b,r,a,!0),i}}}e=this.getImageBytes(u*h);var y,w,_=0|e.length/h*a/u,k=this.getComponents(e);return t||this.smask||this.mask?(i.kind=n.ImageKind.RGBA_32BPP,i.data=new Uint8ClampedArray(r*a*4),y=1,w=!0,this.fillOpacity(i.data,r,a,_,k)):(i.kind=n.ImageKind.RGB_24BPP,i.data=new Uint8ClampedArray(r*a*3),y=0,w=!1),this.needsDecode&&this.decodeBuffer(k),this.colorSpace.fillRgb(i.data,c,u,r,a,_,d,k,y),w&&this.undoPreblend(i.data,r,_),i},fillGrayBuffer:function(e){var t=this.numComps;if(1!==t)throw new n.FormatError("Reading gray scale from a color image: ".concat(t));var r,a,i=this.width,o=this.height,s=this.bpc,l=i*t*s+7>>3,c=this.getImageBytes(o*l),u=this.getComponents(c);if(1!==s){this.needsDecode&&this.decodeBuffer(u),a=i*o;var d=255/((1<<s)-1);for(r=0;r<a;++r)e[r]=d*u[r]}else if(a=i*o,this.needsDecode)for(r=0;r<a;++r)e[r]=u[r]-1&255;else for(r=0;r<a;++r)e[r]=255&-u[r]},getImageBytes: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)}},c}();t.PDFImage=c},function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isNodeJS=void 0;var a="object"===("undefined"===typeof e?"undefined":y(e))&&e+""==="[object process]"&&!e.versions["nw"]&&!e.versions["electron"];r.isNodeJS=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(2),a={UNKNOWN:0,DATA:1,ERROR:2},i={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){if("object"!==y(e)||null===e)return e;switch(e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}var s=function(){function e(t,r,n){var i=this;p(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var r=t.callbackId,s=i.callbackCapabilities[r];if(!s)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],t.callback===a.DATA)s.resolve(t.data);else{if(t.callback!==a.ERROR)throw new Error("Unexpected callback case");s.reject(o(t.reason))}}else{var l=i.actionHandler[t.action];if(!l)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var c=i.sourceName,u=t.sourceName;new Promise((function(e){e(l(t.data))})).then((function(e){n.postMessage({sourceName:c,targetName:u,callback:a.DATA,callbackId:t.callbackId,data:e})}),(function(e){n.postMessage({sourceName:c,targetName:u,callback:a.ERROR,callbackId:t.callbackId,reason:o(e)})}))}else t.streamId?i._createStreamSink(t):l(t.data)}},n.addEventListener("message",this._onComObjOnMessage)}return f(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var a=this.callbackId++,i=(0,n.createPromiseCapability)();this.callbackCapabilities[a]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:a,data:t},r)}catch(o){i.reject(o)}return i.promise}},{key:"sendWithStream",value:function(e,t,r,a){var s=this,l=this.streamId++,c=this.sourceName,u=this.targetName,d=this.comObj;return new ReadableStream({start:function(r){var i=(0,n.createPromiseCapability)();return s.streamControllers[l]={controller:r,startCall:i,pullCall:null,cancelCall:null,isClosed:!1},s._postMessage({sourceName:c,targetName:u,action:e,streamId:l,data:t,desiredSize:r.desiredSize},a),i.promise},pull:function(e){var t=(0,n.createPromiseCapability)();return s.streamControllers[l].pullCall=t,d.postMessage({sourceName:c,targetName:u,stream:i.PULL,streamId:l,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,n.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,n.createPromiseCapability)();return s.streamControllers[l].cancelCall=t,s.streamControllers[l].isClosed=!0,d.postMessage({sourceName:c,targetName:u,stream:i.CANCEL,streamId:l,reason:o(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=this,r=this.actionHandler[e.action],a=e.streamId,s=this.sourceName,l=e.sourceName,c=this.comObj,u={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=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,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:s,targetName:l,stream:i.ENQUEUE,streamId:a,chunk:e},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:i.CLOSE,streamId:a}),delete t.streamSinks[a])},error:function(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:i.ERROR,streamId:a,reason:o(e)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[a]=u,new Promise((function(t){t(r(e.data,u))})).then((function(){c.postMessage({sourceName:s,targetName:l,stream:i.START_COMPLETE,streamId:a,success:!0})}),(function(e){c.postMessage({sourceName:s,targetName:l,stream:i.START_COMPLETE,streamId:a,reason:o(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,a=e.sourceName,s=this.comObj;switch(e.stream){case i.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(o(e.reason));break;case i.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(o(e.reason));break;case i.PULL:if(!this.streamSinks[t]){s.postMessage({sourceName:r,targetName:a,stream:i.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var l=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(l&&l())})).then((function(){s.postMessage({sourceName:r,targetName:a,stream:i.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:a,stream:i.PULL_COMPLETE,streamId:t,reason:o(e)})}));break;case i.ENQUEUE:if((0,n.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case i.CLOSE:if((0,n.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 i.ERROR:(0,n.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(o(e.reason)),this._deleteStreamController(t);break;case i.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(o(e.reason)),this._deleteStreamController(t);break;case i.CANCEL:if(!this.streamSinks[t])break;var c=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(c&&c(o(e.reason)))})).then((function(){s.postMessage({sourceName:r,targetName:a,stream:i.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:a,stream:i.CANCEL_COMPLETE,streamId:t,reason:o(e)})})),this.streamSinks[t].sinkCapability.reject(o(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=b(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var n=r(2),a=function(){function e(t){p(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}return f(e,[{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new o(e,t,this._msgHandler);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFWorkerStream=a;var i=function(){function e(t){var r=this;p(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}))}return f(e,[{key:"read",value:function(){var e=b(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,n=t.done,!n){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 t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader.cancel(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}}]),e}(),o=function(){function e(t,r,n){p(this,e),this._msgHandler=n,this.onProgress=null;var a=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=a.getReader()}return f(e,[{key:"read",value:function(){var e=b(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,n=t.done,!n){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 t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader.cancel(e)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()}])}))}).call(this,r("4362"),r("62e4")(e))},8139:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("e260"),r("d81d"),r("b0c0"),r("d3b7"),r("e6cf"),r("820e"),r("25f0"),r("3ca3"),r("ddb0"),r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3"),o=r("7037");Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var s=r("dacc"),l={UNKNOWN:0,DATA:1,ERROR:2},c={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function u(e){if("object"!==o(e)||null===e)return e;switch(e.name){case"AbortException":return new s.AbortException(e.message);case"MissingPDFException":return new s.MissingPDFException(e.message);case"UnexpectedResponseException":return new s.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new s.UnknownErrorException(e.message,e.details);default:return new s.UnknownErrorException(e.message,e.toString())}}var d=function(){function e(t,r,n){var i=this;a(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var r=t.callbackId,a=i.callbackCapabilities[r];if(!a)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],t.callback===l.DATA)a.resolve(t.data);else{if(t.callback!==l.ERROR)throw new Error("Unexpected callback case");a.reject(u(t.reason))}}else{var o=i.actionHandler[t.action];if(!o)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=i.sourceName,c=t.sourceName;new Promise((function(e){e(o(t.data))})).then((function(e){n.postMessage({sourceName:s,targetName:c,callback:l.DATA,callbackId:t.callbackId,data:e})}),(function(e){n.postMessage({sourceName:s,targetName:c,callback:l.ERROR,callbackId:t.callbackId,reason:u(e)})}))}else t.streamId?i._createStreamSink(t):o(t.data)}},n.addEventListener("message",this._onComObjOnMessage)}return i(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,a=(0,s.createPromiseCapability)();this.callbackCapabilities[n]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(i){a.reject(i)}return a.promise}},{key:"sendWithStream",value:function(e,t,r,n){var a=this,i=this.streamId++,o=this.sourceName,l=this.targetName,d=this.comObj;return new ReadableStream({start:function(r){var c=(0,s.createPromiseCapability)();return a.streamControllers[i]={controller:r,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},a._postMessage({sourceName:o,targetName:l,action:e,streamId:i,data:t,desiredSize:r.desiredSize},n),c.promise},pull:function(e){var t=(0,s.createPromiseCapability)();return a.streamControllers[i].pullCall=t,d.postMessage({sourceName:o,targetName:l,stream:c.PULL,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,s.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,s.createPromiseCapability)();return a.streamControllers[i].cancelCall=t,a.streamControllers[i].isClosed=!0,d.postMessage({sourceName:o,targetName:l,stream:c.CANCEL,streamId:i,reason:u(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=this,r=this.actionHandler[e.action],n=e.streamId,a=this.sourceName,i=e.sourceName,o=this.comObj,l={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,s.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:a,targetName:i,stream:c.ENQUEUE,streamId:n,chunk:e},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:a,targetName:i,stream:c.CLOSE,streamId:n}),delete t.streamSinks[n])},error:function(e){(0,s.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:a,targetName:i,stream:c.ERROR,streamId:n,reason:u(e)}))},sinkCapability:(0,s.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[n]=l,new Promise((function(t){t(r(e.data,l))})).then((function(){o.postMessage({sourceName:a,targetName:i,stream:c.START_COMPLETE,streamId:n,success:!0})}),(function(e){o.postMessage({sourceName:a,targetName:i,stream:c.START_COMPLETE,streamId:n,reason:u(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,a=this.comObj;switch(e.stream){case c.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(u(e.reason));break;case c.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(u(e.reason));break;case c.PULL:if(!this.streamSinks[t]){a.postMessage({sourceName:r,targetName:n,stream:c.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var i=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(i&&i())})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:c.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:c.PULL_COMPLETE,streamId:t,reason:u(e)})}));break;case c.ENQUEUE:if((0,s.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case c.CLOSE:if((0,s.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 c.ERROR:(0,s.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(u(e.reason)),this._deleteStreamController(t);break;case c.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(u(e.reason)),this._deleteStreamController(t);break;case c.CANCEL:if(!this.streamSinks[t])break;var o=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(o&&o(u(e.reason)))})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:c.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:c.CANCEL_COMPLETE,streamId:t,reason:u(e)})})),this.streamSinks[t].sinkCapability.reject(u(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=d},"81d5":function(e,t,r){"use strict";var n=r("7b0b"),a=r("23cb"),i=r("50c4");e.exports=function(e){var t=n(this),r=i(t.length),o=arguments.length,s=a(o>1?arguments[1]:void 0,r),l=o>2?arguments[2]:void 0,c=void 0===l?r:a(l,r);while(c>s)t[s++]=e;return t}},"820e":function(e,t,r){"use strict";var n=r("23e7"),a=r("1c0b"),i=r("f069"),o=r("e667"),s=r("2266");n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,l=r.reject,c=o((function(){var r=a(t.resolve),i=[],o=0,l=1;s(e,(function(e){var a=o++,s=!1;i.push(void 0),l++,r.call(t,e).then((function(e){s||(s=!0,i[a]={status:"fulfilled",value:e},--l||n(i))}),(function(e){s||(s=!0,i[a]={status:"rejected",reason:e},--l||n(i))}))})),--l||n(i)}));return c.error&&l(c.value),r.promise}})},"825a":function(e,t,r){var n=r("861d");e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},"82f8":function(e,t,r){"use strict";var n=r("ebb5"),a=r("4d64").includes,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("includes",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},"83ab":function(e,t,r){var n=r("d039");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,r){"use strict";var n=r("c04e"),a=r("9bf2"),i=r("5c6c");e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},"841c":function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),i=r("1d80"),o=r("129f"),s=r("14c3");n("search",1,(function(e,t,r){return[function(t){var r=i(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var i=a(e),l=String(this),c=i.lastIndex;o(c,0)||(i.lastIndex=0);var u=s(i,l);return o(i.lastIndex,c)||(i.lastIndex=c),null===u?-1:u.index}]}))},"843c":function(e,t,r){"use strict";var n=r("23e7"),a=r("0ccb").end,i=r("9a0c");n({target:"String",proto:!0,forced:i},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"84c3":function(e,t,r){var n=r("74e8");n("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},"857a":function(e,t,r){var n=r("1d80"),a=/"/g;e.exports=function(e,t,r,i){var o=String(n(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(i).replace(a,""")+'"'),s+">"+o+"</"+t+">"}},"85c3":function(e,t,r){var n=r("9082");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("a18baa98",n,!0,{sourceMap:!1,shadowMode:!1})},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"872e":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("a9e3"),r("8ba4"),r("cca6"),r("dca8"),r("d3b7"),r("e6cf"),r("25f0"),r("96cf");var n=r("c973"),a=r("7037"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.BasePreferences=void 0;var s=null;function l(){return s||(s=Promise.resolve({cursorToolOnLoad:0,defaultZoomValue:"",disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkTarget:0,historyUpdateUrl:!1,ignoreDestinationZoom:!1,pdfBugEnabled:!1,renderer:"canvas",renderInteractiveForms:!1,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,disableAutoFetch:!1,disableFontFace:!1,disableRange:!1,disableStream:!1})),s}var c=function(){function e(){var t=this;if(i(this,e),this.constructor===e)throw new Error("Cannot initialize BasePreferences.");this.prefs=null,this._initializedPromise=l().then((function(e){return Object.defineProperty(t,"defaults",{value:Object.freeze(e),writable:!1,enumerable:!0,configurable:!1}),t.prefs=Object.assign(Object.create(null),e),t._readFromStorage(e)})).then((function(e){if(e)for(var r in e){var n=t.defaults[r],i=e[r];void 0!==n&&a(i)===a(n)&&(t.prefs[r]=i)}}))}return o(e,[{key:"_writeToStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw new Error("Not implemented: _writeToStorage");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_readFromStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw new Error("Not implemented: _readFromStorage");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"reset",value:function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:return this.prefs=Object.assign(Object.create(null),this.defaults),e.abrupt("return",this._writeToStorage(this.defaults));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"set",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r){var n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:if(n=this.defaults[t],void 0!==n){e.next=7;break}throw new Error('Set preference: "'.concat(t,'" is undefined.'));case 7:if(void 0!==r){e.next=9;break}throw new Error("Set preference: no value is specified.");case 9:if(i=a(r),o=a(n),i===o){e.next=19;break}if("number"!==i||"string"!==o){e.next=16;break}r=r.toString(),e.next=17;break;case 16:throw new Error('Set preference: "'.concat(r,'" is a ').concat(i,", ")+"expected a ".concat(o,"."));case 17:e.next=21;break;case 19:if("number"!==i||Number.isInteger(r)){e.next=21;break}throw new Error('Set preference: "'.concat(r,'" must be an integer.'));case 21:return this.prefs[t]=r,e.abrupt("return",this._writeToStorage(this.prefs));case 23:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"get",value:function(){var e=n(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:if(r=this.defaults[t],void 0!==r){e.next=7;break}throw new Error('Get preference: "'.concat(t,'" is undefined.'));case 7:if(n=this.prefs[t],void 0===n){e.next=10;break}return e.abrupt("return",n);case 10:return e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAll",value:function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:return e.abrupt("return",Object.assign(Object.create(null),this.defaults,this.prefs));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}();t.BasePreferences=c},8750:function(module,exports,__nested_webpack_require_1653429__){(function(Buffer,global,process,module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__nested_webpack_require_1653429__("a4d3"),__nested_webpack_require_1653429__("e01a"),__nested_webpack_require_1653429__("b636"),__nested_webpack_require_1653429__("d28b"),__nested_webpack_require_1653429__("944a"),__nested_webpack_require_1653429__("99af"),__nested_webpack_require_1653429__("a623"),__nested_webpack_require_1653429__("cb29"),__nested_webpack_require_1653429__("7db0"),__nested_webpack_require_1653429__("c740"),__nested_webpack_require_1653429__("4160"),__nested_webpack_require_1653429__("a630"),__nested_webpack_require_1653429__("caad"),__nested_webpack_require_1653429__("c975"),__nested_webpack_require_1653429__("e260"),__nested_webpack_require_1653429__("a15b"),__nested_webpack_require_1653429__("baa5"),__nested_webpack_require_1653429__("d81d"),__nested_webpack_require_1653429__("fb6a"),__nested_webpack_require_1653429__("45fc"),__nested_webpack_require_1653429__("a434"),__nested_webpack_require_1653429__("c19f"),__nested_webpack_require_1653429__("b0c0"),__nested_webpack_require_1653429__("6c57"),__nested_webpack_require_1653429__("0c47"),__nested_webpack_require_1653429__("4ec9"),__nested_webpack_require_1653429__("90d7"),__nested_webpack_require_1653429__("23dc"),__nested_webpack_require_1653429__("a9e3"),__nested_webpack_require_1653429__("8ba4"),__nested_webpack_require_1653429__("9129"),__nested_webpack_require_1653429__("b680"),__nested_webpack_require_1653429__("cca6"),__nested_webpack_require_1653429__("dca8"),__nested_webpack_require_1653429__("e439"),__nested_webpack_require_1653429__("7039"),__nested_webpack_require_1653429__("3410"),__nested_webpack_require_1653429__("c906"),__nested_webpack_require_1653429__("b64b"),__nested_webpack_require_1653429__("cee8"),__nested_webpack_require_1653429__("d3b7"),__nested_webpack_require_1653429__("07ac"),__nested_webpack_require_1653429__("e6cf"),__nested_webpack_require_1653429__("820e"),__nested_webpack_require_1653429__("a79d"),__nested_webpack_require_1653429__("5d41"),__nested_webpack_require_1653429__("4d63"),__nested_webpack_require_1653429__("ac1f"),__nested_webpack_require_1653429__("25f0"),__nested_webpack_require_1653429__("6062"),__nested_webpack_require_1653429__("f5b2"),__nested_webpack_require_1653429__("8a79"),__nested_webpack_require_1653429__("f6d6"),__nested_webpack_require_1653429__("2532"),__nested_webpack_require_1653429__("3ca3"),__nested_webpack_require_1653429__("466d"),__nested_webpack_require_1653429__("843c"),__nested_webpack_require_1653429__("4d90"),__nested_webpack_require_1653429__("38cf"),__nested_webpack_require_1653429__("5319"),__nested_webpack_require_1653429__("841c"),__nested_webpack_require_1653429__("1276"),__nested_webpack_require_1653429__("2ca0"),__nested_webpack_require_1653429__("498a"),__nested_webpack_require_1653429__("cc71"),__nested_webpack_require_1653429__("cfc3"),__nested_webpack_require_1653429__("4a9b"),__nested_webpack_require_1653429__("143c"),__nested_webpack_require_1653429__("5cc6"),__nested_webpack_require_1653429__("8a59"),__nested_webpack_require_1653429__("fb2c"),__nested_webpack_require_1653429__("9a8c"),__nested_webpack_require_1653429__("a975"),__nested_webpack_require_1653429__("735e"),__nested_webpack_require_1653429__("c1ac"),__nested_webpack_require_1653429__("d139"),__nested_webpack_require_1653429__("3a7b"),__nested_webpack_require_1653429__("d5d6"),__nested_webpack_require_1653429__("82f8"),__nested_webpack_require_1653429__("e91f"),__nested_webpack_require_1653429__("60bd"),__nested_webpack_require_1653429__("5f96"),__nested_webpack_require_1653429__("3280"),__nested_webpack_require_1653429__("3fcc"),__nested_webpack_require_1653429__("ca91"),__nested_webpack_require_1653429__("25a1"),__nested_webpack_require_1653429__("cd26"),__nested_webpack_require_1653429__("3c5d"),__nested_webpack_require_1653429__("2954"),__nested_webpack_require_1653429__("649e"),__nested_webpack_require_1653429__("219c"),__nested_webpack_require_1653429__("170b"),__nested_webpack_require_1653429__("b39a"),__nested_webpack_require_1653429__("72f7"),__nested_webpack_require_1653429__("10d1"),__nested_webpack_require_1653429__("1fe2"),__nested_webpack_require_1653429__("159b"),__nested_webpack_require_1653429__("ddb0"),__nested_webpack_require_1653429__("130f"),__nested_webpack_require_1653429__("2b3d"),__nested_webpack_require_1653429__("bf19");var _typeof2=__nested_webpack_require_1653429__("7037");
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/(function(e,t){"object"===_typeof2(exports)&&"object"===_typeof2(module)?module.exports=t():(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=t,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(0,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===_typeof2(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var n=r(1),a=r(190),i=r(205),o=r(206),s=r(194),l=r(207),c=r(199),u=r(196),d=r(48),h=d.isNodeJS;if(h){var f=r(208).PDFNodeStream;a.setPDFNetworkStreamFactory((function(e){return new f(e)}))}else{var p,g=r(211).PDFNetworkStream;s.isFetchSupported()&&(p=r(212).PDFFetchStream),a.setPDFNetworkStreamFactory((function(e){return p&&s.isValidFetchUrl(e.url)?new p(e):new g(e)}))}t.build=a.build,t.version=a.version,t.getDocument=a.getDocument,t.LoopbackPort=a.LoopbackPort,t.PDFDataRangeTransport=a.PDFDataRangeTransport,t.PDFWorker=a.PDFWorker,t.renderTextLayer=i.renderTextLayer,t.AnnotationLayer=o.AnnotationLayer,t.createPromiseCapability=n.createPromiseCapability,t.PasswordResponses=n.PasswordResponses,t.InvalidPDFException=n.InvalidPDFException,t.MissingPDFException=n.MissingPDFException,t.SVGGraphics=l.SVGGraphics,t.NativeImageDecoding=n.NativeImageDecoding,t.CMapCompressionType=n.CMapCompressionType,t.PermissionFlag=n.PermissionFlag,t.UnexpectedResponseException=n.UnexpectedResponseException,t.OPS=n.OPS,t.VerbosityLevel=n.VerbosityLevel,t.UNSUPPORTED_FEATURES=n.UNSUPPORTED_FEATURES,t.createValidAbsoluteUrl=n.createValidAbsoluteUrl,t.createObjectURL=n.createObjectURL,t.removeNullCharacters=n.removeNullCharacters,t.shadow=n.shadow,t.Util=n.Util,t.RenderingCancelledException=s.RenderingCancelledException,t.getFilenameFromUrl=s.getFilenameFromUrl,t.LinkTarget=s.LinkTarget,t.addLinkAttributes=s.addLinkAttributes,t.loadScript=s.loadScript,t.PDFDateString=s.PDFDateString,t.GlobalWorkerOptions=c.GlobalWorkerOptions,t.apiCompatibilityParams=u.apiCompatibilityParams},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=re,t.arraysToBytes=ne,t.assert=U,t.bytesToString=ee,t.createPromiseCapability=_e,t.getVerbosityLevel=M,t.info=D,t.isArrayBuffer=ye,t.isArrayEqual=we,t.isBool=ve,t.isEmptyObj=ge,t.isNum=me,t.isString=be,t.isSameOrigin=j,t.createValidAbsoluteUrl=z,t.removeNullCharacters=$,t.setVerbosityLevel=F,t.shadow=V,t.string32=ae,t.stringToBytes=te,t.stringToPDFString=he,t.stringToUTF8String=fe,t.utf8StringToString=pe,t.warn=N,t.unreachable=B,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r(2);var h=[1,0,0,1,0,0];t.IDENTITY_MATRIX=h;var f=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=f;var p={NONE:"none",DECODE:"decode",DISPLAY:"display"};t.NativeImageDecoding=p;var g={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=g;var v={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=v;var m={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=m;var b={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=b;var y={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=y;var w={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=w;var _={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=_;var k={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=k;var x={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=x;var S={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=S;var A={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=A;var C={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=C;var P={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=P;var T={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=T;var E={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=E;var R={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=R;var I={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};t.UNSUPPORTED_FEATURES=I;var O={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=O;var L=T.WARNINGS;function F(e){Number.isInteger(e)&&(L=e)}function M(){return L}function D(e){L>=T.INFOS&&console.log("Info: ".concat(e))}function N(e){L>=T.WARNINGS&&console.log("Warning: ".concat(e))}function B(e){throw new Error(e)}function U(e,t){e||B(t)}function j(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(a){return!1}var n=new URL(t,r);return r.origin===n.origin}function q(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function z(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(q(r))return r}catch(n){}return null}function V(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var W=function(){function e(t){this.constructor===e&&B("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=W;var H=function(e){function t(e,r){var n;return o(this,t),n=s(this,c(t).call(this,e)),n.code=r,n}return u(t,e),t}(W);t.PasswordException=H;var G=function(e){function t(e,r){var n;return o(this,t),n=s(this,c(t).call(this,e)),n.details=r,n}return u(t,e),t}(W);t.UnknownErrorException=G;var Y=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),t}(W);t.InvalidPDFException=Y;var X=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),t}(W);t.MissingPDFException=X;var K=function(e){function t(e,r){var n;return o(this,t),n=s(this,c(t).call(this,e)),n.status=r,n}return u(t,e),t}(W);t.UnexpectedResponseException=K;var Z=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),t}(W);t.FormatError=Z;var J=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),t}(W);t.AbortException=J;var Q=/\x00/g;function $(e){return"string"!==typeof e?(N("The argument for removeNullCharacters must be a string."),e):e.replace(Q,"")}function ee(e){U(null!==e&&"object"===i(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 o=Math.min(a+r,t),s=e.subarray(a,o);n.push(String.fromCharCode.apply(null,s))}return n.join("")}function te(e){U("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 re(e){return void 0!==e.length?e.length:(U(void 0!==e.byteLength),e.byteLength)}function ne(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+=re(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?te(s):new Uint8Array(s));var l=s.byteLength;i.set(s,a),a+=l}return i}function ae(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function ie(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}var oe={get value(){return V(this,"value",ie())}};function se(){try{return new Function(""),!0}catch(e){return!1}}t.IsLittleEndianCached=oe;var le={get value(){return V(this,"value",se())}};t.IsEvalSupportedCached=le;var ce=["rgb(",0,",",0,",",0,")"],ue=function(){function e(){o(this,e)}return a(e,null,[{key:"makeCssRgb",value:function(e,t,r){return ce[1]=e,ce[3]=t,ce[5]=r,ce.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],n=e[0]*t[1]+e[1]*t[3]+t[5];return[r,n]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2],n=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,a=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[n,a]}},{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((r+i)*(r+i)-4*(r*i-a*n))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var 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}}]),e}();t.Util=ue;var de=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function he(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=de[e.charCodeAt(i)];r.push(o?String.fromCharCode(o):e.charAt(i))}return r.join("")}function fe(e){return decodeURIComponent(escape(e))}function pe(e){return unescape(encodeURIComponent(e))}function ge(e){for(var t in e)return!1;return!0}function ve(e){return"boolean"===typeof e}function me(e){return"number"===typeof e}function be(e){return"string"===typeof e}function ye(e){return"object"===i(e)&&null!==e&&void 0!==e.byteLength}function we(e,t){return e.length===t.length&&e.every((function(e,r){return e===t[r]}))}function _e(){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}var ke=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var a=new Blob([t],{type:r});return URL.createObjectURL(a)}for(var i="data:".concat(r,";base64,"),o=0,s=t.length;o<s;o+=3){var l=255&t[o],c=255&t[o+1],u=255&t[o+2],d=l>>2,h=(3&l)<<4|c>>4,f=o+1<s?(15&c)<<2|u>>6:64,p=o+2<s?63&u:64;i+=e[d]+e[h]+e[f]+e[p]}return i}}();t.createObjectURL=ke},function(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)}if("undefined"===typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!==typeof globalThis&&globalThis.Math===Math||(globalThis=r(3)),globalThis._pdfjsCompatibilityChecked=!0;var a=r(48),i=a.isNodeJS,o="object"===("undefined"===typeof window?"undefined":n(window))&&"object"===("undefined"===typeof document?"undefined":n(document)),s="undefined"!==typeof navigator&&navigator.userAgent||"",l=/Trident/.test(s);(function(){!globalThis.btoa&&i&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")})})(),function(){!globalThis.atob&&i&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")})}(),function(){o&&"undefined"===typeof Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(o&&!i){var e=document.createElement("div");if(e.classList.add("testOne","testTwo"),!0!==e.classList.contains("testOne")||!0!==e.classList.contains("testTwo")){var t=DOMTokenList.prototype.add,r=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var a=0,i=r;a<i.length;a++){var o=i[a];t.call(this,o)}},DOMTokenList.prototype.remove=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var a=0,i=t;a<i.length;a++){var o=i[a];r.call(this,o)}}}}}(),function(){if(o&&!i){var e=document.createElement("div");!1!==e.classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(e){var t=arguments.length>1?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t})}}(),function(){if(o&&l){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,r,n){var a=void 0===n?[t,r]:[t,r,n];e.apply(this,a)},window.history.replaceState=function(e,r,n){var a=void 0===n?[e,r]:[e,r,n];t.apply(this,a)}}}(),function(){String.prototype.startsWith||r(49)}(),function(){String.prototype.endsWith||r(60)}(),function(){String.prototype.includes||r(62)}(),function(){Array.prototype.includes||r(64)}(),function(){Array.from||r(72)}(),function(){Object.assign||r(94)}(),function(){Math.log2||(Math.log2=r(97))}(),function(){Number.isNaN||(Number.isNaN=r(99))}(),function(){Number.isInteger||(Number.isInteger=r(101))}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=r(104))}(),function(){globalThis.URL=r(128)}(),function(){var e=!1;if("undefined"!==typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(t){}e||(globalThis.ReadableStream=r(135).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=r(136))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=r(143))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=r(145))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=r(151))}(),function(){String.prototype.codePointAt||r(153)}(),function(){String.fromCodePoint||(String.fromCodePoint=r(155))}(),function(){globalThis.Symbol||r(157)}(),function(){String.prototype.padStart||r(180)}(),function(){String.prototype.padEnd||r(185)}(),function(){Object.values||(Object.values=r(187))}()}},function(e,t,r){r(4),e.exports=r(6)},function(e,t,r){var n=r(5),a=r(6);n({global:!0},{globalThis:a})},function(e,t,r){var n=r(6),a=r(7).f,i=r(21),o=r(24),s=r(25),l=r(35),c=r(47);e.exports=function(e,t){var r,u,d,h,f,p,g=e.target,v=e.global,m=e.stat;if(u=v?n:m?n[g]||s(g,{}):(n[g]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(p=a(u,d),h=p&&p.value):h=u[d],r=c(v?d:g+(m?".":"#")+d,e.forced),!r&&void 0!==h){if(_typeof2(f)===_typeof2(h))continue;l(f,h)}(e.sham||h&&h.sham)&&i(f,"sham",!0),o(u,d,f,e)}}},function(e,t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==("undefined"===typeof globalThis?"undefined":_typeof2(globalThis))&&globalThis)||r("object"==("undefined"===typeof window?"undefined":_typeof2(window))&&window)||r("object"==("undefined"===typeof self?"undefined":_typeof2(self))&&self)||r("object"==("undefined"===typeof global?"undefined":_typeof2(global))&&global)||Function("return this")()},function(e,t,r){var n=r(8),a=r(10),i=r(11),o=r(12),s=r(16),l=r(18),c=r(19),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(r){}if(l(e,t))return i(!a.f.call(e,t),e[t])}},function(e,t,r){var n=r(9);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!n.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(13),a=r(15);e.exports=function(e){return n(a(e))}},function(e,t,r){var n=r(9),a=r(14),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(17);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")}},function(e,t){e.exports=function(e){return"object"===_typeof2(e)?null!==e:"function"===typeof e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(8),a=r(9),i=r(20);e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(6),a=r(17),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(8),a=r(22),i=r(11);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(8),a=r(19),i=r(23),o=r(16),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(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(17);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(6),a=r(21),i=r(18),o=r(25),s=r(26),l=r(28),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,r,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||a(r,"name",t),u(r).source=d.join("string"==typeof t?t:"")),e!==n?(l?!h&&e[t]&&(c=!0):delete e[t],c?e[t]=r:a(e,t,r)):c?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,r){var n=r(6),a=r(21);e.exports=function(e,t){try{a(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(27),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(6),a=r(25),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},function(e,t,r){var n,a,i,o=r(29),s=r(6),l=r(17),c=r(21),u=r(18),d=r(30),h=r(34),f=s.WeakMap,p=function(e){return i(e)?a(e):n(e,{})},g=function(e){return function(t){var r;if(!l(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(o){var v=new f,m=v.get,b=v.has,y=v.set;n=function(e,t){return y.call(v,e,t),t},a=function(e){return m.call(v,e)||{}},i=function(e){return b.call(v,e)}}else{var w=d("state");h[w]=!0,n=function(e,t){return c(e,w,t),t},a=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:n,get:a,has:i,enforce:p,getterFor:g}},function(e,t,r){var n=r(6),a=r(26),i=n.WeakMap;e.exports="function"===typeof i&&/native code/.test(a(i))},function(e,t,r){var n=r(31),a=r(33),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e,t,r){var n=r(32),a=r(27);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(18),a=r(36),i=r(7),o=r(22);e.exports=function(e,t){for(var r=a(t),s=o.f,l=i.f,c=0;c<r.length;c++){var u=r[c];n(e,u)||s(e,u,l(t,u))}}},function(e,t,r){var n=r(37),a=r(39),i=r(46),o=r(23);e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(38),a=r(6),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]}},function(e,t,r){var n=r(6);e.exports=n},function(e,t,r){var n=r(40),a=r(45),i=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){var n=r(18),a=r(12),i=r(41).indexOf,o=r(34);e.exports=function(e,t){var r,s=a(e),l=0,c=[];for(r in s)!n(o,r)&&n(s,r)&&c.push(r);while(t.length>l)n(s,r=t[l++])&&(~i(c,r)||c.push(r));return c}},function(e,t,r){var n=r(12),a=r(42),i=r(44),o=function(e){return function(t,r,o){var s,l=n(t),c=a(l.length),u=i(o,c);if(e&&r!=r){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,r){var n=r(43),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(43),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)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(9),a=/#|\.prototype\./,i=function(e,t){var r=s[o(e)];return r==c||r!=l&&("function"==typeof t?n(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},function(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.isNodeJS=void 0;var a="object"===("undefined"===typeof process?"undefined":n(process))&&process+""==="[object process]"&&!process.versions["nw"]&&!process.versions["electron"];t.isNodeJS=a},function(e,t,r){r(50);var n=r(57);e.exports=n("String","startsWith")},function(e,t,r){"use strict";var n=r(5),a=r(7).f,i=r(42),o=r(51),s=r(15),l=r(56),c=r(32),u="".startsWith,d=Math.min,h=l("startsWith"),f=!c&&!h&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!f&&!h},{startsWith:function(e){var t=String(s(this));o(e);var r=i(d(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return u?u.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){var n=r(52);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var n=r(17),a=r(14),i=r(53),o=i("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==a(e))}},function(e,t,r){var n=r(6),a=r(31),i=r(18),o=r(33),s=r(54),l=r(55),c=a("wks"),u=n.Symbol,d=l?u:u&&u.withoutSetter||o;e.exports=function(e){return i(c,e)||(s&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,r){var n=r(9);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,r){var n=r(54);e.exports=n&&!Symbol.sham&&"symbol"==_typeof2(Symbol.iterator)},function(e,t,r){var n=r(53),a=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[a]=!1,"/./"[e](t)}catch(n){}}return!1}},function(e,t,r){var n=r(6),a=r(58),i=Function.call;e.exports=function(e,t,r){return a(i,n[e].prototype[t],r)}},function(e,t,r){var n=r(59);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)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){r(61);var n=r(57);e.exports=n("String","endsWith")},function(e,t,r){"use strict";var n=r(5),a=r(7).f,i=r(42),o=r(51),s=r(15),l=r(56),c=r(32),u="".endsWith,d=Math.min,h=l("endsWith"),f=!c&&!h&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!f&&!h},{endsWith:function(e){var t=String(s(this));o(e);var r=arguments.length>1?arguments[1]:void 0,n=i(t.length),a=void 0===r?n:d(i(r),n),l=String(e);return u?u.call(t,l,a):t.slice(a-l.length,a)===l}})},function(e,t,r){r(63);var n=r(57);e.exports=n("String","includes")},function(e,t,r){"use strict";var n=r(5),a=r(51),i=r(15),o=r(56);n({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(i(this)).indexOf(a(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(65);var n=r(57);e.exports=n("Array","includes")},function(e,t,r){"use strict";var n=r(5),a=r(41).includes,i=r(66),o=r(71),s=o("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!s},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,r){var n=r(53),a=r(67),i=r(22),o=n("unscopables"),s=Array.prototype;void 0==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,r){var n,a=r(23),i=r(68),o=r(45),s=r(34),l=r(70),c=r(20),u=r(30),d=">",h="<",f="prototype",p="script",g=u("IE_PROTO"),v=function(){},m=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),r="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},w=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=n?b(n):y();var e=o.length;while(e--)delete w[f][o[e]];return w()};s[g]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(v[f]=a(e),r=new v,v[f]=null,r[g]=e):r=w(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(8),a=r(22),i=r(23),o=r(69);e.exports=n?Object.defineProperties:function(e,t){i(e);var r,n=o(t),s=n.length,l=0;while(s>l)a.f(e,r=n[l++],t[r]);return e}},function(e,t,r){var n=r(40),a=r(45);e.exports=Object.keys||function(e){return n(e,a)}},function(e,t,r){var n=r(37);e.exports=n("document","documentElement")},function(e,t,r){var n=r(8),a=r(9),i=r(18),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var r=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:l,d=i(t,1)?t[1]:void 0;return s[e]=!!r&&!a((function(){if(c&&!n)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,r.call(e,u,d)}))}},function(e,t,r){r(73),r(85);var n=r(38);e.exports=n.Array.from},function(e,t,r){"use strict";var n=r(74).charAt,a=r(28),i=r(75),o="String Iterator",s=a.set,l=a.getterFor(o);i(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=l(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})}))},function(e,t,r){var n=r(43),a=r(15),i=function(e){return function(t,r){var i,o,s=String(a(t)),l=n(r),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l),i<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):i:e?s.slice(l,l+2):o-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,r){"use strict";var n=r(5),a=r(76),i=r(78),o=r(83),s=r(81),l=r(21),c=r(24),u=r(53),d=r(32),h=r(82),f=r(77),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,v=u("iterator"),m="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,r,u,f,_,k){a(r,t,u);var x,S,A,C=function(e){if(e===f&&I)return I;if(!g&&e in E)return E[e];switch(e){case m:return function(){return new r(this,e)};case b:return function(){return new r(this,e)};case y:return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",T=!1,E=e.prototype,R=E[v]||E["@@iterator"]||f&&E[f],I=!g&&R||C(f),O="Array"==t&&E.entries||R;if(O&&(x=i(O.call(new e)),p!==Object.prototype&&x.next&&(d||i(x)===p||(o?o(x,p):"function"!=typeof x[v]&&l(x,v,w)),s(x,P,!0,!0),d&&(h[P]=w))),f==b&&R&&R.name!==b&&(T=!0,I=function(){return R.call(this)}),d&&!k||E[v]===I||l(E,v,I),h[t]=I,f)if(S={values:C(b),keys:_?I:C(m),entries:C(y)},k)for(A in S)(g||T||!(A in E))&&c(E,A,S[A]);else n({target:t,proto:!0,forced:g||T},S);return S}},function(e,t,r){"use strict";var n=r(77).IteratorPrototype,a=r(67),i=r(11),o=r(81),s=r(82),l=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=a(n,{next:i(1,r)}),o(e,c,!1,!0),s[c]=l,e}},function(e,t,r){"use strict";var n,a,i,o=r(78),s=r(21),l=r(18),c=r(53),u=r(32),d=c("iterator"),h=!1,f=function(){return this};[].keys&&(i=[].keys(),"next"in i?(a=o(o(i)),a!==Object.prototype&&(n=a)):h=!0),void 0==n&&(n={}),u||l(n,d)||s(n,d,f),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(e,t,r){var n=r(18),a=r(79),i=r(30),o=r(80),s=i("IE_PROTO"),l=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?l:null}},function(e,t,r){var n=r(15);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(9);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(22).f,a=r(18),i=r(53),o=i("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,r){var n=r(23),a=r(84);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(i){}return function(r,i){return n(r),a(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){var n=r(17);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(5),a=r(86),i=r(93),o=!i((function(e){Array.from(e)}));n({target:"Array",stat:!0,forced:o},{from:a})},function(e,t,r){"use strict";var n=r(58),a=r(79),i=r(87),o=r(88),s=r(42),l=r(89),c=r(90);e.exports=function(e){var t,r,u,d,h,f,p=a(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,y=c(p),w=0;if(b&&(m=n(m,v>2?arguments[2]:void 0,2)),void 0==y||g==Array&&o(y))for(t=s(p.length),r=new g(t);t>w;w++)f=b?m(p[w],w):p[w],l(r,w,f);else for(d=y.call(p),h=d.next,r=new g;!(u=h.call(d)).done;w++)f=b?i(d,m,[u.value,w],!0):u.value,l(r,w,f);return r.length=w,r}},function(e,t,r){var n=r(23);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(o){var i=e["return"];throw void 0!==i&&n(i.call(e)),o}}},function(e,t,r){var n=r(53),a=r(82),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(16),a=r(22),i=r(11);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},function(e,t,r){var n=r(91),a=r(82),i=r(53),o=i("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||a[n(e)]}},function(e,t,r){var n=r(92),a=r(14),i=r(53),o=i("toStringTag"),s="Arguments"==a(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=Object(e),o))?r:s?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n=r(53),a=n("toStringTag"),i={};i[a]="z",e.exports="[object z]"===String(i)},function(e,t,r){var n=r(53),a=n("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[a]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n={};n[a]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(l){}return r}},function(e,t,r){r(95);var n=r(38);e.exports=n.Object.assign},function(e,t,r){var n=r(5),a=r(96);n({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},function(e,t,r){"use strict";var n=r(8),a=r(9),i=r(69),o=r(46),s=r(10),l=r(79),c=r(13),u=Object.assign,d=Object.defineProperty;e.exports=!u||a((function(){if(n&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||i(u({},t)).join("")!=a}))?function(e,t){var r=l(e),a=arguments.length,u=1,d=o.f,h=s.f;while(a>u){var f,p=c(arguments[u++]),g=d?i(p).concat(d(p)):i(p),v=g.length,m=0;while(v>m)f=g[m++],n&&!h.call(p,f)||(r[f]=p[f])}return r}:u},function(e,t,r){r(98);var n=r(38);e.exports=n.Math.log2},function(e,t,r){var n=r(5),a=Math.log,i=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return a(e)/i}})},function(e,t,r){r(100);var n=r(38);e.exports=n.Number.isNaN},function(e,t,r){var n=r(5);n({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){r(102);var n=r(38);e.exports=n.Number.isInteger},function(e,t,r){var n=r(5),a=r(103);n({target:"Number",stat:!0},{isInteger:a})},function(e,t,r){var n=r(17),a=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&a(e)===e}},function(e,t,r){r(105),r(73),r(107),r(110),r(126),r(127);var n=r(38);e.exports=n.Promise},function(e,t,r){var n=r(92),a=r(24),i=r(106);n||a(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,r){"use strict";var n=r(92),a=r(91);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},function(e,t,r){var n=r(6),a=r(108),i=r(109),o=r(21),s=r(53),l=s("iterator"),c=s("toStringTag"),u=i.values;for(var d in a){var h=n[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{o(f,l,u)}catch(g){f[l]=u}if(f[c]||o(f,c,d),a[d])for(var p in i)if(f[p]!==i[p])try{o(f,p,i[p])}catch(g){f[p]=i[p]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){"use strict";var n=r(12),a=r(66),i=r(82),o=r(28),s=r(75),l="Array Iterator",c=o.set,u=o.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=u(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")},function(e,t,r){"use strict";var n,a,i,o,s=r(5),l=r(32),c=r(6),u=r(37),d=r(111),h=r(24),f=r(112),p=r(81),g=r(113),v=r(17),m=r(59),b=r(114),y=r(14),w=r(26),_=r(115),k=r(93),x=r(116),S=r(117).set,A=r(120),C=r(121),P=r(123),T=r(122),E=r(124),R=r(28),I=r(47),O=r(53),L=r(125),F=O("species"),M="Promise",D=R.get,N=R.set,B=R.getterFor(M),U=d,j=c.TypeError,q=c.document,z=c.process,V=u("fetch"),W=T.f,H=W,G="process"==y(z),Y=!!(q&&q.createEvent&&c.dispatchEvent),X="unhandledrejection",K="rejectionhandled",Z=0,J=1,Q=2,$=1,ee=2,te=I(M,(function(){var e=w(U)!==String(U);if(!e){if(66===L)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!U.prototype["finally"])return!0;if(L>=51&&/native code/.test(U))return!1;var t=U.resolve(1),r=function(e){e((function(){}),(function(){}))},n=t.constructor={};return n[F]=r,!(t.then((function(){}))instanceof r)})),re=te||!k((function(e){U.all(e)["catch"]((function(){}))})),ne=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},ae=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;A((function(){var a=t.value,i=t.state==J,o=0;while(n.length>o){var s,l,c,u=n[o++],d=i?u.ok:u.fail,h=u.resolve,f=u.reject,p=u.domain;try{d?(i||(t.rejection===ee&&le(e,t),t.rejection=$),!0===d?s=a:(p&&p.enter(),s=d(a),p&&(p.exit(),c=!0)),s===u.promise?f(j("Promise-chain cycle")):(l=ne(s))?l.call(s,h,f):h(s)):f(a)}catch(g){p&&!c&&p.exit(),f(g)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&oe(e,t)}))}},ie=function(e,t,r){var n,a;Y?(n=q.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(a=c["on"+e])?a(n):e===X&&P("Unhandled promise rejection",r)},oe=function(e,t){S.call(c,(function(){var r,n=t.value,a=se(t);if(a&&(r=E((function(){G?z.emit("unhandledRejection",n,e):ie(X,e,n)})),t.rejection=G||se(t)?ee:$,r.error))throw r.value}))},se=function(e){return e.rejection!==$&&!e.parent},le=function(e,t){S.call(c,(function(){G?z.emit("rejectionHandled",e):ie(K,e,t.value)}))},ce=function(e,t,r,n){return function(a){e(t,r,a,n)}},ue=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=Q,ae(e,t,!0))},de=function e(t,r,n,a){if(!r.done){r.done=!0,a&&(r=a);try{if(t===n)throw j("Promise can't be resolved itself");var i=ne(n);i?A((function(){var a={done:!1};try{i.call(n,ce(e,t,a,r),ce(ue,t,a,r))}catch(o){ue(t,a,o,r)}})):(r.value=n,r.state=J,ae(t,r,!1))}catch(o){ue(t,{done:!1},o,r)}}};te&&(U=function(e){b(this,U,M),m(e),n.call(this);var t=D(this);try{e(ce(de,this,t),ce(ue,this,t))}catch(r){ue(this,t,r)}},n=function(e){N(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},n.prototype=f(U.prototype,{then:function(e,t){var r=B(this),n=W(x(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=G?z.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=Z&&ae(this,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=ce(de,e,t),this.reject=ce(ue,e,t)},T.f=W=function(e){return e===U||e===i?new a(e):H(e)},l||"function"!=typeof d||(o=d.prototype.then,h(d.prototype,"then",(function(e,t){var r=this;return new U((function(e,t){o.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(U,V.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,M,!1,!0),g(M),i=u(M),s({target:M,stat:!0,forced:te},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:l||te},{resolve:function(e){return C(l&&this===i?U:this,e)}}),s({target:M,stat:!0,forced:re},{all:function(e){var t=this,r=W(t),n=r.resolve,a=r.reject,i=E((function(){var r=m(t.resolve),i=[],o=0,s=1;_(e,(function(e){var l=o++,c=!1;i.push(void 0),s++,r.call(t,e).then((function(e){c||(c=!0,i[l]=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=E((function(){var a=m(t.resolve);_(e,(function(e){a.call(t,e).then(r.resolve,n)}))}));return a.error&&n(a.value),r.promise}})},function(e,t,r){var n=r(6);e.exports=n.Promise},function(e,t,r){var n=r(24);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},function(e,t,r){"use strict";var n=r(37),a=r(22),i=r(53),o=r(8),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}})}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var n=r(23),a=r(88),i=r(42),o=r(58),s=r(90),l=r(87),c=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,r,u,d){var h,f,p,g,v,m,b,y=o(t,r,u?2:1);if(d)h=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(a(f)){for(p=0,g=i(e.length);g>p;p++)if(v=u?y(n(b=e[p])[0],b[1]):y(e[p]),v&&v instanceof c)return v;return new c(!1)}h=f.call(e)}m=h.next;while(!(b=m.call(h)).done)if(v=l(h,y,b.value,u),"object"==_typeof2(v)&&v&&v instanceof c)return v;return new c(!1)};u.stop=function(e){return new c(!0,e)}},function(e,t,r){var n=r(23),a=r(59),i=r(53),o=i("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||void 0==(r=n(i)[o])?t:a(r)}},function(e,t,r){var n,a,i,o=r(6),s=r(9),l=r(14),c=r(58),u=r(70),d=r(20),h=r(118),f=o.location,p=o.setImmediate,g=o.clearImmediate,v=o.process,m=o.MessageChannel,b=o.Dispatch,y=0,w={},_="onreadystatechange",k=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){k(e)}},S=function(e){k(e.data)},A=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(p=function(e){var t=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(y),y},g=function(e){delete w[e]},"process"==l(v)?n=function(e){v.nextTick(x(e))}:b&&b.now?n=function(e){b.now(x(e))}:m&&!h?(a=new m,i=a.port2,a.port1.onmessage=S,n=c(i.postMessage,i,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(A)?n=_ in d("script")?function(e){u.appendChild(d("script"))[_]=function(){u.removeChild(this),k(e)}}:function(e){setTimeout(x(e),0)}:(n=A,o.addEventListener("message",S,!1))),e.exports={set:p,clear:g}},function(e,t,r){var n=r(119);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(37);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n,a,i,o,s,l,c,u,d=r(6),h=r(7).f,f=r(14),p=r(117).set,g=r(118),v=d.MutationObserver||d.WebKitMutationObserver,m=d.process,b=d.Promise,y="process"==f(m),w=h(d,"queueMicrotask"),_=w&&w.value;_||(n=function(){var e,t;y&&(e=m.domain)&&e.exit();while(a){t=a.fn,a=a.next;try{t()}catch(r){throw a?o():i=void 0,r}}i=void 0,e&&e.enter()},y?o=function(){m.nextTick(n)}:v&&!g?(s=!0,l=document.createTextNode(""),new v(n).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),u=c.then,o=function(){u.call(c,n)}):o=function(){p.call(d,n)}),e.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},function(e,t,r){var n=r(23),a=r(17),i=r(122);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e),o=r.resolve;return o(t),r.promise}},function(e,t,r){"use strict";var n=r(59),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)}},function(e,t,r){var n=r(6);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,r){var n,a,i=r(6),o=r(119),s=i.process,l=s&&s.versions,c=l&&l.v8;c?(n=c.split("."),a=n[0]+n[1]):o&&(n=o.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(a=n[1]))),e.exports=a&&+a},function(e,t,r){"use strict";var n=r(5),a=r(59),i=r(122),o=r(124),s=r(115);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,l=r.reject,c=o((function(){var r=a(t.resolve),i=[],o=0,l=1;s(e,(function(e){var a=o++,s=!1;i.push(void 0),l++,r.call(t,e).then((function(e){s||(s=!0,i[a]={status:"fulfilled",value:e},--l||n(i))}),(function(e){s||(s=!0,i[a]={status:"rejected",reason:e},--l||n(i))}))})),--l||n(i)}));return c.error&&l(c.value),r.promise}})},function(e,t,r){"use strict";var n=r(5),a=r(32),i=r(111),o=r(9),s=r(37),l=r(116),c=r(121),u=r(24),d=!!i&&o((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));n({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=l(this,s("Promise")),r="function"==typeof e;return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),a||"function"!=typeof i||i.prototype["finally"]||u(i.prototype,"finally",s("Promise").prototype["finally"])},function(e,t,r){r(129),r(134),r(132);var n=r(38);e.exports=n.URL},function(e,t,r){"use strict";r(73);var n,a=r(5),i=r(8),o=r(130),s=r(6),l=r(68),c=r(24),u=r(114),d=r(18),h=r(96),f=r(86),p=r(74).codeAt,g=r(131),v=r(81),m=r(132),b=r(28),y=s.URL,w=m.URLSearchParams,_=m.getState,k=b.set,x=b.getterFor("URL"),S=Math.floor,A=Math.pow,C="Invalid authority",P="Invalid scheme",T="Invalid host",E="Invalid port",R=/[A-Za-z]/,I=/[\d+\-.A-Za-z]/,O=/\d/,L=/^(0x|0X)/,F=/^[0-7]+$/,M=/^\d+$/,D=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,B=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,q=function(e,t){var r,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return T;if(r=V(t.slice(1,-1)),!r)return T;e.host=r}else if(Q(e)){if(t=g(t),N.test(t))return T;if(r=z(t),null===r)return T;e.host=r}else{if(B.test(t))return T;for(r="",n=f(t),a=0;a<n.length;a++)r+=Z(n[a],G);e.host=r}},z=function(e){var t,r,n,a,i,o,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),t=l.length,t>4)return e;for(r=[],n=0;n<t;n++){if(a=l[n],""==a)return e;if(i=10,a.length>1&&"0"==a.charAt(0)&&(i=L.test(a)?16:8,a=a.slice(8==i?1:2)),""===a)o=0;else{if(!(10==i?M:8==i?F:D).test(a))return e;o=parseInt(a,i)}r.push(o)}for(n=0;n<t;n++)if(o=r[n],n==t-1){if(o>=A(256,5-t))return null}else if(o>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*A(256,3-n);return s},V=function(e){var t,r,n,a,i,o,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,c++,u=c}while(h()){if(8==c)return;if(":"!=h()){t=r=0;while(r<4&&D.test(h()))t=16*t+parseInt(h(),16),d++,r++;if("."==h()){if(0==r)return;if(d-=r,c>6)return;n=0;while(h()){if(a=null,n>0){if(!("."==h()&&n<4))return;d++}if(!O.test(h()))return;while(O.test(h())){if(i=parseInt(h(),10),null===a)a=i;else{if(0==a)return;a=10*a+i}if(a>255)return;d++}l[c]=256*l[c]+a,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,c++,u=c}}if(null!==u){o=c-u,c=7;while(0!=c&&o>0)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s}else if(8!=c)return;return l},W=function(e){for(var t=null,r=1,n=null,a=0,i=0;i<8;i++)0!==e[i]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=i),++a);return a>r&&(t=n,r=a),t},H=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==_typeof2(e)){for(t="",n=W(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},G={},Y=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),X=h({},Y,{"#":1,"?":1,"{":1,"}":1}),K=h({},X,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var r=p(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(J,e.scheme)},$=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var r;return 2==e.length&&R.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},re=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&te(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},ie=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},le={},ce={},ue={},de={},he={},fe={},pe={},ge={},ve={},me={},be={},ye={},we={},_e={},ke={},xe={},Se={},Ae={},Ce={},Pe=function(e,t,r,a){var i,o,s,l,c=r||oe,u=0,h="",p=!1,g=!1,v=!1;r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(j,""),i=f(t);while(u<=i.length){switch(o=i[u],c){case oe:if(!o||!R.test(o)){if(r)return P;c=le;continue}h+=o.toLowerCase(),c=se;break;case se:if(o&&(I.test(o)||"+"==o||"-"==o||"."==o))h+=o.toLowerCase();else{if(":"!=o){if(r)return P;h="",c=le,u=0;continue}if(r&&(Q(e)!=d(J,h)||"file"==h&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,r)return void(Q(e)&&J[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=ye:Q(e)&&a&&a.scheme==e.scheme?c=ce:Q(e)?c=fe:"/"==i[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Se)}break;case le:if(!a||a.cannotBeABaseURL&&"#"!=o)return P;if(a.cannotBeABaseURL&&"#"==o){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,c=Ce;break}c="file"==a.scheme?ye:de;continue;case ce:if("/"!=o||"/"!=i[u+1]){c=de;continue}c=pe,u++;break;case ue:if("/"==o){c=ge;break}c=xe;continue;case de:if(e.scheme=a.scheme,o==n)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==o||"\\"==o&&Q(e))c=he;else if("?"==o)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",c=Ae;else{if("#"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),c=xe;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",c=Ce}break;case he:if(!Q(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,c=xe;continue}c=ge}else c=pe;break;case fe:if(c=pe,"/"!=o||"/"!=h.charAt(u+1))continue;u++;break;case pe:if("/"!=o&&"\\"!=o){c=ge;continue}break;case ge:if("@"==o){p&&(h="%40"+h),p=!0,s=f(h);for(var m=0;m<s.length;m++){var b=s[m];if(":"!=b||v){var y=Z(b,K);v?e.password+=y:e.username+=y}else v=!0}h=""}else if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)){if(p&&""==h)return C;u-=f(h).length+1,h="",c=ve}else h+=o;break;case ve:case me:if(r&&"file"==e.scheme){c=_e;continue}if(":"!=o||g){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)){if(Q(e)&&""==h)return T;if(r&&""==h&&($(e)||null!==e.port))return;if(l=q(e,h),l)return l;if(h="",c=ke,r)return;continue}"["==o?g=!0:"]"==o&&(g=!1),h+=o}else{if(""==h)return T;if(l=q(e,h),l)return l;if(h="",c=be,r==me)return}break;case be:if(!O.test(o)){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)||r){if(""!=h){var w=parseInt(h,10);if(w>65535)return E;e.port=Q(e)&&w===J[e.scheme]?null:w,h=""}if(r)return;c=ke;continue}return E}h+=o;break;case ye:if(e.scheme="file","/"==o||"\\"==o)c=we;else{if(!a||"file"!=a.scheme){c=xe;continue}if(o==n)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==o)e.host=a.host,e.path=a.path.slice(),e.query="",c=Ae;else{if("#"!=o){re(i.slice(u).join(""))||(e.host=a.host,e.path=a.path.slice(),ne(e)),c=xe;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",c=Ce}}break;case we:if("/"==o||"\\"==o){c=_e;break}a&&"file"==a.scheme&&!re(i.slice(u).join(""))&&(te(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),c=xe;continue;case _e:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!r&&te(h))c=xe;else if(""==h){if(e.host="",r)return;c=ke}else{if(l=q(e,h),l)return l;if("localhost"==e.host&&(e.host=""),r)return;h="",c=ke}continue}h+=o;break;case ke:if(Q(e)){if(c=xe,"/"!=o&&"\\"!=o)continue}else if(r||"?"!=o)if(r||"#"!=o){if(o!=n&&(c=xe,"/"!=o))continue}else e.fragment="",c=Ce;else e.query="",c=Ae;break;case xe:if(o==n||"/"==o||"\\"==o&&Q(e)||!r&&("?"==o||"#"==o)){if(ie(h)?(ne(e),"/"==o||"\\"==o&&Q(e)||e.path.push("")):ae(h)?"/"==o||"\\"==o&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(o==n||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",c=Ae):"#"==o&&(e.fragment="",c=Ce)}else h+=Z(o,X);break;case Se:"?"==o?(e.query="",c=Ae):"#"==o?(e.fragment="",c=Ce):o!=n&&(e.path[0]+=Z(o,G));break;case Ae:r||"#"!=o?o!=n&&("'"==o&&Q(e)?e.query+="%27":e.query+="#"==o?"%23":Z(o,G)):(e.fragment="",c=Ce);break;case Ce:o!=n&&(e.fragment+=Z(o,Y));break}u++}},Te=function(e){var t,r,n=u(this,Te,"URL"),a=arguments.length>1?arguments[1]:void 0,o=String(e),s=k(n,{type:"URL"});if(void 0!==a)if(a instanceof Te)t=x(a);else if(r=Pe(t={},String(a)),r)throw TypeError(r);if(r=Pe(s,o,null,t),r)throw TypeError(r);var l=s.searchParams=new w,c=_(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},i||(n.href=Re.call(n),n.origin=Ie.call(n),n.protocol=Oe.call(n),n.username=Le.call(n),n.password=Fe.call(n),n.host=Me.call(n),n.hostname=De.call(n),n.port=Ne.call(n),n.pathname=Be.call(n),n.search=Ue.call(n),n.searchParams=je.call(n),n.hash=qe.call(n))},Ee=Te.prototype,Re=function(){var e=x(this),t=e.scheme,r=e.username,n=e.password,a=e.host,i=e.port,o=e.path,s=e.query,l=e.fragment,c=t+":";return null!==a?(c+="//",$(e)&&(c+=r+(n?":"+n:"")+"@"),c+=H(a),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Ie=function(){var e=x(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&Q(e)?t+"://"+H(e.host)+(null!==r?":"+r:""):"null"},Oe=function(){return x(this).scheme+":"},Le=function(){return x(this).username},Fe=function(){return x(this).password},Me=function(){var e=x(this),t=e.host,r=e.port;return null===t?"":null===r?H(t):H(t)+":"+r},De=function(){var e=x(this).host;return null===e?"":H(e)},Ne=function(){var e=x(this).port;return null===e?"":String(e)},Be=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=x(this).query;return e?"?"+e:""},je=function(){return x(this).searchParams},qe=function(){var e=x(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&l(Ee,{href:ze(Re,(function(e){var t=x(this),r=String(e),n=Pe(t,r);if(n)throw TypeError(n);_(t.searchParams).updateSearchParams(t.query)})),origin:ze(Ie),protocol:ze(Oe,(function(e){var t=x(this);Pe(t,String(e)+":",oe)})),username:ze(Le,(function(e){var t=x(this),r=f(String(e));if(!ee(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=Z(r[n],K)}})),password:ze(Fe,(function(e){var t=x(this),r=f(String(e));if(!ee(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=Z(r[n],K)}})),host:ze(Me,(function(e){var t=x(this);t.cannotBeABaseURL||Pe(t,String(e),ve)})),hostname:ze(De,(function(e){var t=x(this);t.cannotBeABaseURL||Pe(t,String(e),me)})),port:ze(Ne,(function(e){var t=x(this);ee(t)||(e=String(e),""==e?t.port=null:Pe(t,e,be))})),pathname:ze(Be,(function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],Pe(t,e+"",ke))})),search:ze(Ue,(function(e){var t=x(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Pe(t,e,Ae)),_(t.searchParams).updateSearchParams(t.query)})),searchParams:ze(je),hash:ze(qe,(function(e){var t=x(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Pe(t,e,Ce)):t.fragment=null}))}),c(Ee,"toJSON",(function(){return Re.call(this)}),{enumerable:!0}),c(Ee,"toString",(function(){return Re.call(this)}),{enumerable:!0}),y){var Ve=y.createObjectURL,We=y.revokeObjectURL;Ve&&c(Te,"createObjectURL",(function(e){return Ve.apply(y,arguments)})),We&&c(Te,"revokeObjectURL",(function(e){return We.apply(y,arguments)}))}v(Te,"URL"),a({global:!0,forced:!o,sham:!i},{URL:Te})},function(e,t,r){var n=r(9),a=r(53),i=r(32),o=a("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(e,t,r){"use strict";var n=2147483647,a=36,i=1,o=26,s=38,l=700,c=72,u=128,d="-",h=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",g=a-i,v=Math.floor,m=String.fromCharCode,b=function(e){var t=[],r=0,n=e.length;while(r<n){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var i=e.charCodeAt(r++);56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),r--)}else t.push(a)}return t},y=function(e){return e+22+75*(e<26)},w=function(e,t,r){var n=0;for(e=r?v(e/l):e>>1,e+=v(e/t);e>g*o>>1;n+=a)e=v(e/g);return v(n+(g+1)*e/(e+s))},_=function(e){var t=[];e=b(e);var r,s,l=e.length,h=u,f=0,g=c;for(r=0;r<e.length;r++)s=e[r],s<128&&t.push(m(s));var _=t.length,k=_;_&&t.push(d);while(k<l){var x=n;for(r=0;r<e.length;r++)s=e[r],s>=h&&s<x&&(x=s);var S=k+1;if(x-h>v((n-f)/S))throw RangeError(p);for(f+=(x-h)*S,h=x,r=0;r<e.length;r++){if(s=e[r],s<h&&++f>n)throw RangeError(p);if(s==h){for(var A=f,C=a;;C+=a){var P=C<=g?i:C>=g+o?o:C-g;if(A<P)break;var T=A-P,E=a-P;t.push(m(y(P+T%E))),A=v(T/E)}t.push(m(y(A))),g=w(f,S,k==_),f=0,++k}}++f,++h}return t.join("")};e.exports=function(e){var t,r,n=[],a=e.toLowerCase().replace(f,".").split(".");for(t=0;t<a.length;t++)r=a[t],n.push(h.test(r)?"xn--"+_(r):r);return n.join(".")}},function(e,t,r){"use strict";r(109);var n=r(5),a=r(37),i=r(130),o=r(24),s=r(112),l=r(81),c=r(76),u=r(28),d=r(114),h=r(18),f=r(58),p=r(91),g=r(23),v=r(17),m=r(67),b=r(11),y=r(133),w=r(90),_=r(53),k=a("fetch"),x=a("Headers"),S=_("iterator"),A="URLSearchParams",C=A+"Iterator",P=u.set,T=u.getterFor(A),E=u.getterFor(C),R=/\+/g,I=Array(4),O=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},L=function(e){try{return decodeURIComponent(e)}catch(t){return e}},F=function(e){var t=e.replace(R," "),r=4;try{return decodeURIComponent(t)}catch(n){while(r)t=t.replace(O(r--),L);return t}},M=/[!'()~]|%20/g,D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(e){return D[e]},B=function(e){return encodeURIComponent(e).replace(M,N)},U=function(e,t){if(t){var r,n,a=t.split("&"),i=0;while(i<a.length)r=a[i++],r.length&&(n=r.split("="),e.push({key:F(n.shift()),value:F(n.join("="))}))}},j=function(e){this.entries.length=0,U(this.entries,e)},q=function(e,t){if(e<t)throw TypeError("Not enough arguments")},z=c((function(e,t){P(this,{type:C,iterator:y(T(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r})),V=function(){d(this,V,A);var e,t,r,n,a,i,o,s,l,c=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(P(u,{type:A,entries:f,updateURL:function(){},updateSearchParams:j}),void 0!==c)if(v(c))if(e=w(c),"function"===typeof e){t=e.call(c),r=t.next;while(!(n=r.call(t)).done){if(a=y(g(n.value)),i=a.next,(o=i.call(a)).done||(s=i.call(a)).done||!i.call(a).done)throw TypeError("Expected sequence with length 2");f.push({key:o.value+"",value:s.value+""})}}else for(l in c)h(c,l)&&f.push({key:l,value:c[l]+""});else U(f,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=V.prototype;s(W,{append:function(e,t){q(arguments.length,2);var r=T(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){q(arguments.length,1);var t=T(this),r=t.entries,n=e+"",a=0;while(a<r.length)r[a].key===n?r.splice(a,1):a++;t.updateURL()},get:function(e){q(arguments.length,1);for(var t=T(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){q(arguments.length,1);for(var t=T(this).entries,r=e+"",n=[],a=0;a<t.length;a++)t[a].key===r&&n.push(t[a].value);return n},has:function(e){q(arguments.length,1);var t=T(this).entries,r=e+"",n=0;while(n<t.length)if(t[n++].key===r)return!0;return!1},set:function(e,t){q(arguments.length,1);for(var r,n=T(this),a=n.entries,i=!1,o=e+"",s=t+"",l=0;l<a.length;l++)r=a[l],r.key===o&&(i?a.splice(l--,1):(i=!0,r.value=s));i||a.push({key:o,value:s}),n.updateURL()},sort:function(){var e,t,r,n=T(this),a=n.entries,i=a.slice();for(a.length=0,r=0;r<i.length;r++){for(e=i[r],t=0;t<r;t++)if(a[t].key>e.key){a.splice(t,0,e);break}t===r&&a.push(e)}n.updateURL()},forEach:function(e){var t,r=T(this).entries,n=f(e,arguments.length>1?arguments[1]:void 0,3),a=0;while(a<r.length)t=r[a++],n(t.value,t.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),o(W,S,W.entries),o(W,"toString",(function(){var e,t=T(this).entries,r=[],n=0;while(n<t.length)e=t[n++],r.push(B(e.key)+"="+B(e.value));return r.join("&")}),{enumerable:!0}),l(V,A),n({global:!0,forced:!i},{URLSearchParams:V}),i||"function"!=typeof k||"function"!=typeof x||n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,r,n,a=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(r=t.body,p(r)===A&&(n=t.headers?new x(t.headers):new x,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:b(0,String(r)),headers:b(0,n)}))),a.push(t)),k.apply(this,a)}}),e.exports={URLSearchParams:V,getState:T}},function(e,t,r){var n=r(23),a=r(90);e.exports=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},function(e,t,r){"use strict";var n=r(5);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,r){(function(e,r){r(t)})(0,(function(e){"use strict";var t="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?Symbol:function(e){return"Symbol("+e+")"};function r(){}var n=Number.isNaN||function(e){return e!==e},a=r;function i(e){return"object"===_typeof2(e)&&null!==e||"function"===typeof e}function o(e){return e.slice()}function s(e,t,r,n,a){new Uint8Array(e).set(new Uint8Array(r,n,a),t)}function l(e){return!1!==c(e)&&e!==1/0}function c(e){return"number"===typeof e&&(!n(e)&&!(e<0))}function u(e,t,r){if("function"!==typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function d(e,t,r,n){var a=e[t];if(void 0!==a){if("function"!==typeof a)throw new TypeError(a+" is not a method");switch(r){case 0:return function(){return f(a,e,n)};case 1:return function(t){var r=[t].concat(n);return f(a,e,r)}}}return function(){return x(void 0)}}function h(e,t,r){var n=e[t];if(void 0!==n)return u(n,e,r)}function f(e,t,r){try{return x(u(e,t,r))}catch(n){return S(n)}}function p(e){return e}function g(e){return!1}function v(e){if(e=Number(e),n(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function m(e){if(void 0===e)return function(){return 1};if("function"!==typeof e)throw new TypeError("size property of a queuing strategy must be a function");return function(t){return e(t)}}var b=Promise,y=Promise.prototype.then,w=Promise.resolve.bind(b),_=Promise.reject.bind(b);function k(e){return new b(e)}function x(e){return w(e)}function S(e){return _(e)}function A(e,t,r){return y.call(e,t,r)}function C(e,t,r){A(A(e,t,r),void 0,a)}function P(e,t){C(e,t)}function T(e,t){C(e,void 0,t)}function E(e,t,r){return A(e,t,r)}function R(e){A(e,void 0,a)}var I=16384,O=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.push=function(e){var t=this._back,r=t;t._elements.length===I-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===I&&(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){var t=this._cursor,r=this._front,n=r._elements;while(t!==n.length||void 0!==r._next){if(t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length))break;e(n[t]),++t}},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function L(e,t,r){var n=null;!0===r&&(n=Object.prototype);var a=Object.create(n);return a.value=e,a.done=t,a}function F(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?B(e):"closed"===t._state?j(e):U(e,t._storedError)}function M(e,t){var r=e._ownerReadableStream;return Dr(r,t)}function D(e){"readable"===e._ownerReadableStream._state?q(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):z(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 N(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function B(e){e._closedPromise=k((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function U(e,t){B(e),q(e,t)}function j(e){B(e),V(e)}function q(e,t){R(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function z(e,t){U(e,t)}function V(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var W=t("[[CancelSteps]]"),H=t("[[PullSteps]]");function G(e,t){void 0===t&&(t=!1);var r=new $(e);return r._forAuthorCode=t,r}function Y(e){var t=k((function(t,r){var n={_resolve:t,_reject:r};e._reader._readRequests.push(n)}));return t}function X(e,t,r){var n=e._reader,a=n._readRequests.shift();a._resolve(L(t,r,n._forAuthorCode))}function K(e){return e._reader._readRequests.length}function Z(e){var t=e._reader;return void 0!==t&&!!ee(t)}var J,Q,$=function(){function e(e){if(!1===Fr(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Mr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");F(this,e),this._readRequests=new O}return Object.defineProperty(e.prototype,"closed",{get:function(){return ee(this)?this._closedPromise:S(re("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return ee(this)?void 0===this._ownerReadableStream?S(N("cancel")):M(this,e):S(re("cancel"))},e.prototype.read=function(){return ee(this)?void 0===this._ownerReadableStream?S(N("read from")):te(this):S(re("read"))},e.prototype.releaseLock=function(){if(!ee(this))throw re("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");D(this)}},e}();function ee(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function te(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?x(L(void 0,!0,e._forAuthorCode)):"errored"===t._state?S(t._storedError):t._readableStreamController[H]()}function re(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"===_typeof2(t.asyncIterator)&&(J={},J[t.asyncIterator]=function(){return this},Q=J,Object.defineProperty(Q,t.asyncIterator,{enumerable:!1}));var ne={next:function(){if(!1===ie(this))return S(oe("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?S(N("iterate")):E(te(e),(function(t){var r=t.done;r&&D(e);var n=t.value;return L(n,r,!0)}))},return:function(e){if(!1===ie(this))return S(oe("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return S(N("finish iterating"));if(t._readRequests.length>0)return S(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var r=M(t,e);return D(t),E(r,(function(){return L(e,!0,!0)}))}return D(t),x(L(e,!0,!0))}};function ae(e,t){void 0===t&&(t=!1);var r=G(e),n=Object.create(ne);return n._asyncIteratorReader=r,n._preventCancel=Boolean(t),n}function ie(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function oe(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function se(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function le(e,t,r){if(r=Number(r),!l(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 ce(e){var t=e._queue.peek();return t.value}function ue(e){e._queue=new O,e._queueTotalSize=0}void 0!==Q&&Object.setPrototypeOf(ne,Q),Object.defineProperty(ne,"next",{enumerable:!1}),Object.defineProperty(ne,"return",{enumerable:!1});var de=t("[[AbortSteps]]"),he=t("[[ErrorSteps]]"),fe=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),ve(this);var r=t.size,n=t.highWaterMark,a=e.type;if(void 0!==a)throw new RangeError("Invalid type is specified");var i=m(r);void 0===n&&(n=1),n=v(n),Xe(this,e,n,i)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===me(this))throw ot("locked");return be(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===me(this)?S(ot("abort")):!0===be(this)?S(new TypeError("Cannot abort a stream that already has a writer")):ye(this,e)},e.prototype.close=function(){return!1===me(this)?S(ot("close")):!0===be(this)?S(new TypeError("Cannot close a stream that already has a writer")):!0===Ee(this)?S(new TypeError("Cannot close an already-closing stream")):we(this)},e.prototype.getWriter=function(){if(!1===me(this))throw ot("getWriter");return pe(this)},e}();function pe(e){return new Me(e)}function ge(e,t,r,n,a,i){void 0===a&&(a=1),void 0===i&&(i=function(){return 1});var o=Object.create(fe.prototype);ve(o);var s=Object.create(He.prototype);return Ye(o,s,e,t,r,n,a,i),o}function ve(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 me(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function be(e){return void 0!==e._writer}function ye(e,t){var r=e._state;if("closed"===r||"errored"===r)return x(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var n=!1;"erroring"===r&&(n=!0,t=void 0);var a=k((function(r,a){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:a,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=a,!1===n&&xe(e,t),a}function we(e){var t=e._state;if("closed"===t||"errored"===t)return S(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=k((function(t,r){var n={_resolve:t,_reject:r};e._closeRequest=n})),n=e._writer;return void 0!==n&&!0===e._backpressure&&"writable"===t&&_t(n),Ze(e._writableStreamController),r}function _e(e){var t=k((function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)}));return t}function ke(e,t){var r=e._state;"writable"!==r?Se(e):xe(e,t)}function xe(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;void 0!==n&&qe(n,t),!1===Re(e)&&!0===r._started&&Se(e)}function Se(e){e._state="errored",e._writableStreamController[he]();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,!0===r._wasAlreadyErroring)return r._reject(t),void Le(e);var n=e._writableStreamController[de](r._reason);C(n,(function(){r._resolve(),Le(e)}),(function(t){r._reject(t),Le(e)}))}else Le(e)}function Ae(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Ce(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,ke(e,t)}function Pe(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var r=e._writer;void 0!==r&&pt(r)}function Te(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),ke(e,t)}function Ee(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Re(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function Ie(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Oe(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Le(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&ht(t,e._storedError)}function Fe(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(!0===t?yt(r):_t(r)),e._backpressure=t}var Me=function(){function e(e){if(!1===me(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===be(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t=e._state;if("writable"===t)!1===Ee(e)&&!0===e._backpressure?gt(this):mt(this),ct(this);else if("erroring"===t)vt(this,e._storedError),ct(this);else if("closed"===t)mt(this),dt(this);else{var r=e._storedError;vt(this,r),ut(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===De(this)?S(st("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===De(this))throw st("desiredSize");if(void 0===this._ownerWritableStream)throw lt("desiredSize");return ze(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===De(this)?S(st("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===De(this)?S(st("abort")):void 0===this._ownerWritableStream?S(lt("abort")):Ne(this,e)},e.prototype.close=function(){if(!1===De(this))return S(st("close"));var e=this._ownerWritableStream;return void 0===e?S(lt("close")):!0===Ee(e)?S(new TypeError("Cannot close an already-closing stream")):Be(this)},e.prototype.releaseLock=function(){if(!1===De(this))throw st("releaseLock");var e=this._ownerWritableStream;void 0!==e&&Ve(this)},e.prototype.write=function(e){return!1===De(this)?S(st("write")):void 0===this._ownerWritableStream?S(lt("write to")):We(this,e)},e}();function De(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function Ne(e,t){var r=e._ownerWritableStream;return ye(r,t)}function Be(e){var t=e._ownerWritableStream;return we(t)}function Ue(e){var t=e._ownerWritableStream,r=t._state;return!0===Ee(t)||"closed"===r?x(void 0):"errored"===r?S(t._storedError):Be(e)}function je(e,t){"pending"===e._closedPromiseState?ht(e,t):ft(e,t)}function qe(e,t){"pending"===e._readyPromiseState?bt(e,t):wt(e,t)}function ze(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Qe(t._writableStreamController)}function Ve(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");qe(e,r),je(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function We(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,a=Je(n,t);if(r!==e._ownerWritableStream)return S(lt("write to"));var i=r._state;if("errored"===i)return S(r._storedError);if(!0===Ee(r)||"closed"===i)return S(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return S(r._storedError);var o=_e(r);return $e(n,t,a),o}var He=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1===Ge(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var t=this._controlledWritableStream._state;"writable"===t&&it(this,e)},e.prototype[de]=function(e){var t=this._abortAlgorithm(e);return Ke(this),t},e.prototype[he]=function(){ue(this)},e}();function Ge(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function Ye(e,t,r,n,a,i,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ue(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=n,t._closeAlgorithm=a,t._abortAlgorithm=i;var l=at(t);Fe(e,l);var c=r(),u=x(c);C(u,(function(){t._started=!0,et(t)}),(function(r){t._started=!0,ke(e,r)}))}function Xe(e,t,r,n){var a=Object.create(He.prototype);function i(){return h(t,"start",[a])}var o=d(t,"write",1,[a]),s=d(t,"close",0,[]),l=d(t,"abort",1,[]);Ye(e,a,i,o,s,l,r,n)}function Ke(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Ze(e){le(e,"close",0),et(e)}function Je(e,t){try{return e._strategySizeAlgorithm(t)}catch(r){return tt(e,r),1}}function Qe(e){return e._strategyHWM-e._queueTotalSize}function $e(e,t,r){var n={chunk:t};try{le(e,n,r)}catch(o){return void tt(e,o)}var a=e._controlledWritableStream;if(!1===Ee(a)&&"writable"===a._state){var i=at(e);Fe(a,i)}et(e)}function et(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var r=t._state;if("erroring"!==r){if(0!==e._queue.length){var n=ce(e);"close"===n?rt(e):nt(e,n.chunk)}}else Se(t)}}function tt(e,t){"writable"===e._controlledWritableStream._state&&it(e,t)}function rt(e){var t=e._controlledWritableStream;Ie(t),se(e);var r=e._closeAlgorithm();Ke(e),C(r,(function(){Pe(t)}),(function(e){Te(t,e)}))}function nt(e,t){var r=e._controlledWritableStream;Oe(r);var n=e._writeAlgorithm(t);C(n,(function(){Ae(r);var t=r._state;if(se(e),!1===Ee(r)&&"writable"===t){var n=at(e);Fe(r,n)}et(e)}),(function(t){"writable"===r._state&&Ke(e),Ce(r,t)}))}function at(e){var t=Qe(e);return t<=0}function it(e,t){var r=e._controlledWritableStream;Ke(e),xe(r,t)}function ot(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function st(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function lt(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function ct(e){e._closedPromise=k((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function ut(e,t){ct(e),ht(e,t)}function dt(e){ct(e),pt(e)}function ht(e,t){R(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function ft(e,t){ut(e,t)}function pt(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function gt(e){e._readyPromise=k((function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function vt(e,t){gt(e),bt(e,t)}function mt(e){gt(e),_t(e)}function bt(e,t){R(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function yt(e){gt(e)}function wt(e,t){vt(e,t)}function _t(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function kt(e){if("object"!==_typeof2(e)||null===e)return!1;try{return"boolean"===typeof e.aborted}catch(J){return!1}}var xt="undefined"!==typeof DOMException?DOMException:void 0;function St(e){if("function"!==typeof e&&"object"!==_typeof2(e))return!1;try{return new e,!0}catch(J){return!1}}function At(){var e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}var Ct=St(xt)?xt:At();function Pt(e,t,n,a,i,o){var s=G(e),l=pe(t);e._disturbed=!0;var c=!1,u=x(void 0);return k((function(d,h){var f;if(void 0!==o){if(f=function(){var r=new Ct("Aborted","AbortError"),n=[];!1===a&&n.push((function(){return"writable"===t._state?ye(t,r):x(void 0)})),!1===i&&n.push((function(){return"readable"===e._state?Dr(e,r):x(void 0)})),w((function(){return Promise.all(n.map((function(e){return e()})))}),!0,r)},!0===o.aborted)return void f();o.addEventListener("abort",f)}function p(){return k((function(e,t){function r(n){n?e():A(g(),r,t)}r(!1)}))}function g(){return!0===c?x(!0):A(l._readyPromise,(function(){return A(te(s),(function(e){var t=e.value,n=e.done;return!0===n||(u=A(We(l,t),void 0,r),!1)}))}))}if(b(e,s._closedPromise,(function(e){!1===a?w((function(){return ye(t,e)}),!0,e):_(!0,e)})),b(t,l._closedPromise,(function(t){!1===i?w((function(){return Dr(e,t)}),!0,t):_(!0,t)})),y(e,s._closedPromise,(function(){!1===n?w((function(){return Ue(l)})):_()})),!0===Ee(t)||"closed"===t._state){var v=new TypeError("the destination writable stream closed before all data could be piped to it");!1===i?w((function(){return Dr(e,v)}),!0,v):_(!0,v)}function m(){var e=u;return A(u,(function(){return e!==u?m():void 0}))}function b(e,t,r){"errored"===e._state?r(e._storedError):T(t,r)}function y(e,t,r){"closed"===e._state?r():P(t,r)}function w(e,r,n){function a(){C(e(),(function(){return S(r,n)}),(function(e){return S(!0,e)}))}!0!==c&&(c=!0,"writable"===t._state&&!1===Ee(t)?P(m(),a):a())}function _(e,r){!0!==c&&(c=!0,"writable"===t._state&&!1===Ee(t)?P(m(),(function(){return S(e,r)})):S(e,r))}function S(e,t){Ve(l),D(s),void 0!==o&&o.removeEventListener("abort",f),e?h(t):d(void 0)}R(p())}))}var Tt=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Et(this))throw qt("desiredSize");return Dt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Et(this))throw qt("close");if(!1===Bt(this))throw new TypeError("The stream is not in a state that permits close");Lt(this)},e.prototype.enqueue=function(e){if(!1===Et(this))throw qt("enqueue");if(!1===Bt(this))throw new TypeError("The stream is not in a state that permits enqueue");return Ft(this,e)},e.prototype.error=function(e){if(!1===Et(this))throw qt("error");Mt(this,e)},e.prototype[W]=function(e){ue(this);var t=this._cancelAlgorithm(e);return Ot(this),t},e.prototype[H]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=se(this);return!0===this._closeRequested&&0===this._queue.length?(Ot(this),Nr(e)):Rt(this),x(L(t,!1,e._reader._forAuthorCode))}var r=Y(e);return Rt(this),r},e}();function Et(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Rt(e){var t=It(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var r=e._pullAlgorithm();C(r,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Rt(e))}),(function(t){Mt(e,t)}))}else e._pullAgain=!0}function It(e){var t=e._controlledReadableStream;if(!1===Bt(e))return!1;if(!1===e._started)return!1;if(!0===Mr(t)&&K(t)>0)return!0;var r=Dt(e);return r>0}function Ot(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Lt(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Ot(e),Nr(t))}function Ft(e,t){var r=e._controlledReadableStream;if(!0===Mr(r)&&K(r)>0)X(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(a){throw Mt(e,a),a}try{le(e,t,n)}catch(i){throw Mt(e,i),i}}Rt(e)}function Mt(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(ue(e),Ot(e),Br(r,t))}function Dt(e){var t=e._controlledReadableStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function Nt(e){return!0!==It(e)}function Bt(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function Ut(e,t,r,n,a,i,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ue(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;var s=r();C(x(s),(function(){t._started=!0,Rt(t)}),(function(e){Mt(t,e)}))}function jt(e,t,r,n){var a=Object.create(Tt.prototype);function i(){return h(t,"start",[a])}var o=d(t,"pull",0,[a]),s=d(t,"cancel",1,[]);Ut(e,a,i,o,s,r,n)}function qt(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function zt(e,t){var r,n,a,i,s,l=G(e),c=!1,u=!1,d=!1,h=k((function(e){s=e}));function f(){if(!0===c)return x(void 0);c=!0;var e=E(te(l),(function(e){c=!1;var t=e.done;if(!0===t)return!1===u&&Lt(a._readableStreamController),void(!1===d&&Lt(i._readableStreamController));var r=e.value,n=r,o=r;!1===u&&Ft(a._readableStreamController,n),!1===d&&Ft(i._readableStreamController,o)}));return R(e),x(void 0)}function p(t){if(u=!0,r=t,!0===d){var a=o([r,n]),i=Dr(e,a);s(i)}return h}function g(t){if(d=!0,n=t,!0===u){var a=o([r,n]),i=Dr(e,a);s(i)}return h}function v(){}return a=Or(v,f,p),i=Or(v,f,g),T(l._closedPromise,(function(e){Mt(a._readableStreamController,e),Mt(i._readableStreamController,e)})),[a,i]}var Vt=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},Wt=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===Yt(this))throw wr("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===Yt(this))throw wr("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");g(this._view.buffer),gr(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===Yt(this))throw wr("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");g(e.buffer),vr(this._associatedReadableByteStreamController,e)},e}(),Ht=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===Gt(this))throw _r("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),r=Object.create(Wt.prototype);yr(r,this,t),this._byobRequest=r}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Gt(this))throw _r("desiredSize");return pr(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Gt(this))throw _r("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");dr(this)},e.prototype.enqueue=function(e){if(!1===Gt(this))throw _r("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");g(e.buffer),hr(this,e)},e.prototype.error=function(e){if(!1===Gt(this))throw _r("error");fr(this,e)},e.prototype[W]=function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek();t.bytesFilled=0}ue(this);var r=this._cancelAlgorithm(e);return ur(this),r},e.prototype[H]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,tr(this);var r=void 0;try{r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(s){return S(s)}return x(L(r,!1,e._reader._forAuthorCode))}var n=this._autoAllocateChunkSize;if(void 0!==n){var a=void 0;try{a=new ArrayBuffer(n)}catch(l){return S(l)}var i={buffer:a,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(i)}var o=Y(e);return Xt(this),o},e}();function Gt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Yt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function Xt(e){var t=cr(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var r=e._pullAlgorithm();C(r,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Xt(e))}),(function(t){fr(e,t)}))}else e._pullAgain=!0}function Kt(e){rr(e),e._pendingPullIntos=new O}function Zt(e,t){var r=!1;"closed"===e._state&&(r=!0);var n=Jt(t);"default"===t.readerType?X(e,n,r):Sr(e,n,r)}function Jt(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function Qt(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function $t(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,l=a,c=!1;o>n&&(l=o-t.bytesFilled,c=!0);var u=e._queue;while(l>0){var d=u.peek(),h=Math.min(l,d.byteLength),f=t.byteOffset+t.bytesFilled;s(t.buffer,f,d.buffer,d.byteOffset,h),d.byteLength===h?u.shift():(d.byteOffset+=h,d.byteLength-=h),e._queueTotalSize-=h,er(e,h,t),l-=h}return c}function er(e,t,r){rr(e),r.bytesFilled+=t}function tr(e){0===e._queueTotalSize&&!0===e._closeRequested?(ur(e),Nr(e._controlledReadableByteStream)):Xt(e)}function rr(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function nr(e){while(e._pendingPullIntos.length>0){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===$t(e,t)&&(lr(e),Zt(e._controlledReadableByteStream,t))}}function ar(e,t){var r=e._controlledReadableByteStream,n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);var a=t.constructor,i=p(t.buffer),o={buffer:i,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,ctor:a,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),xr(r);if("closed"===r._state){var s=new a(o.buffer,o.byteOffset,0);return x(L(s,!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===$t(e,o)){var l=Jt(o);return tr(e),x(L(l,!1,r._reader._forAuthorCode))}if(!0===e._closeRequested){var c=new TypeError("Insufficient bytes to fill elements in the given buffer");return fr(e,c),S(c)}}e._pendingPullIntos.push(o);var u=xr(r);return Xt(e),u}function ir(e,t){t.buffer=p(t.buffer);var r=e._controlledReadableByteStream;if(!0===Cr(r))while(Ar(r)>0){var n=lr(e);Zt(r,n)}}function or(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(er(e,t,r),!(r.bytesFilled<r.elementSize)){lr(e);var n=r.bytesFilled%r.elementSize;if(n>0){var a=r.byteOffset+r.bytesFilled,i=r.buffer.slice(a-n,a);Qt(e,i,0,i.byteLength)}r.buffer=p(r.buffer),r.bytesFilled-=n,Zt(e._controlledReadableByteStream,r),nr(e)}}function sr(e,t){var r=e._pendingPullIntos.peek(),n=e._controlledReadableByteStream;if("closed"===n._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");ir(e,r)}else or(e,t,r);Xt(e)}function lr(e){var t=e._pendingPullIntos.shift();return rr(e),t}function cr(e){var t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===Z(t)&&K(t)>0)return!0;if(!0===Cr(t)&&Ar(t)>0)return!0;var r=pr(e);return r>0}function ur(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function dr(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos.peek();if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw fr(e,n),n}}ur(e),Nr(t)}}function hr(e,t){var r=e._controlledReadableByteStream,n=t.buffer,a=t.byteOffset,i=t.byteLength,o=p(n);if(!0===Z(r))if(0===K(r))Qt(e,o,a,i);else{var s=new Uint8Array(o,a,i);X(r,s,!1)}else!0===Cr(r)?(Qt(e,o,a,i),nr(e)):Qt(e,o,a,i);Xt(e)}function fr(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(Kt(e),ue(e),ur(e),Br(r,t))}function pr(e){var t=e._controlledReadableByteStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function gr(e,t){if(t=Number(t),!1===l(t))throw new RangeError("bytesWritten must be a finite");sr(e,t)}function vr(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,sr(e,t.byteLength)}function mr(e,t,r,n,a,i,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,ue(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=v(i),t._pullAlgorithm=n,t._cancelAlgorithm=a,t._autoAllocateChunkSize=o,t._pendingPullIntos=new O,e._readableStreamController=t;var s=r();C(x(s),(function(){t._started=!0,Xt(t)}),(function(e){fr(t,e)}))}function br(e,t,r){var n=Object.create(Ht.prototype);function a(){return h(t,"start",[n])}var i=d(t,"pull",0,[n]),o=d(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Vt(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");mr(e,n,a,i,o,r,s)}function yr(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function wr(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function _r(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function kr(e,t){void 0===t&&(t=!1);var r=new Pr(e);return r._forAuthorCode=t,r}function xr(e){var t=k((function(t,r){var n={_resolve:t,_reject:r};e._reader._readIntoRequests.push(n)}));return t}function Sr(e,t,r){var n=e._reader,a=n._readIntoRequests.shift();a._resolve(L(t,r,n._forAuthorCode))}function Ar(e){return e._reader._readIntoRequests.length}function Cr(e){var t=e._reader;return void 0!==t&&!!Tr(t)}var Pr=function(){function e(e){if(!Fr(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===Gt(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Mr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");F(this,e),this._readIntoRequests=new O}return Object.defineProperty(e.prototype,"closed",{get:function(){return Tr(this)?this._closedPromise:S(Rr("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Tr(this)?void 0===this._ownerReadableStream?S(N("cancel")):M(this,e):S(Rr("cancel"))},e.prototype.read=function(e){return Tr(this)?void 0===this._ownerReadableStream?S(N("read from")):ArrayBuffer.isView(e)?(g(e.buffer),0===e.byteLength?S(new TypeError("view must have non-zero byteLength")):Er(this,e)):S(new TypeError("view must be an array buffer view")):S(Rr("read"))},e.prototype.releaseLock=function(){if(!Tr(this))throw Rr("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");D(this)}},e}();function Tr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Er(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,"errored"===r._state?S(r._storedError):ar(r._readableStreamController,t)}function Rr(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var Ir=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Lr(this);var r=t.size,n=t.highWaterMark,a=e.type,i=String(a);if("bytes"===i){if(void 0!==r)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===n&&(n=0),n=v(n),br(this,e,n)}else{if(void 0!==a)throw new RangeError("Invalid type is specified");var o=m(r);void 0===n&&(n=1),n=v(n),jt(this,e,n,o)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Fr(this))throw Ur("locked");return Mr(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===Fr(this)?S(Ur("cancel")):!0===Mr(this)?S(new TypeError("Cannot cancel a stream that already has a reader")):Dr(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===Fr(this))throw Ur("getReader");if(void 0===t)return G(this,!0);if(t=String(t),"byob"===t)return kr(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,t){var r=e.writable,n=e.readable,a=void 0===t?{}:t,i=a.preventClose,o=a.preventAbort,s=a.preventCancel,l=a.signal;if(!1===Fr(this))throw Ur("pipeThrough");if(!1===me(r))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Fr(n))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(i=Boolean(i),o=Boolean(o),s=Boolean(s),void 0!==l&&!kt(l))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Mr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===be(r))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var c=Pt(this,r,i,o,s,l);return R(c),n},e.prototype.pipeTo=function(e,t){var r=void 0===t?{}:t,n=r.preventClose,a=r.preventAbort,i=r.preventCancel,o=r.signal;return!1===Fr(this)?S(Ur("pipeTo")):!1===me(e)?S(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(n=Boolean(n),a=Boolean(a),i=Boolean(i),void 0===o||kt(o)?!0===Mr(this)?S(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===be(e)?S(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Pt(this,e,n,a,i,o):S(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===Fr(this))throw Ur("tee");var e=zt(this);return o(e)},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,r=void 0!==t&&t;if(!1===Fr(this))throw Ur("getIterator");return ae(this,r)},e}();function Or(e,t,r,n,a){void 0===n&&(n=1),void 0===a&&(a=function(){return 1});var i=Object.create(Ir.prototype);Lr(i);var o=Object.create(Tt.prototype);return Ut(i,o,e,t,r,n,a),i}function Lr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Fr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Mr(e){return void 0!==e._reader}function Dr(e,t){if(e._disturbed=!0,"closed"===e._state)return x(void 0);if("errored"===e._state)return S(e._storedError);Nr(e);var n=e._readableStreamController[W](t);return E(n,r)}function Nr(e){e._state="closed";var t=e._reader;void 0!==t&&(ee(t)&&(t._readRequests.forEach((function(e){e._resolve(L(void 0,!0,t._forAuthorCode))})),t._readRequests=new O),V(t))}function Br(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(ee(r)?(r._readRequests.forEach((function(e){e._reject(t)})),r._readRequests=new O):(r._readIntoRequests.forEach((function(e){e._reject(t)})),r._readIntoRequests=new O),q(r,t))}function Ur(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"===_typeof2(t.asyncIterator)&&Object.defineProperty(Ir.prototype,t.asyncIterator,{value:Ir.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var jr=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),qr=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),zr=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={});var n=t.size,a=t.highWaterMark,i=r.size,o=r.highWaterMark,s=e.writableType;if(void 0!==s)throw new RangeError("Invalid writable type specified");var l=m(n);void 0===a&&(a=1),a=v(a);var c=e.readableType;if(void 0!==c)throw new RangeError("Invalid readable type specified");var u,d=m(i);void 0===o&&(o=0),o=v(o);var f=k((function(e){u=e}));Vr(this,f,a,l,o,d),Jr(this,e);var p=h(e,"start",[this._transformStreamController]);u(p)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===Wr(this))throw cn("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===Wr(this))throw cn("writable");return this._writable},enumerable:!0,configurable:!0}),e}();function Vr(e,t,r,n,a,i){function o(){return t}function s(t){return nn(e,t)}function l(t){return an(e,t)}function c(){return on(e)}function u(){return sn(e)}function d(t){return Gr(e,t),x(void 0)}e._writable=ge(o,s,c,l,r,n),e._readable=Or(o,u,d,a,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Yr(e,!0),e._transformStreamController=void 0}function Wr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Hr(e,t){Mt(e._readable._readableStreamController,t),Gr(e,t)}function Gr(e,t){Qr(e._transformStreamController),tt(e._writable._writableStreamController,t),!0===e._backpressure&&Yr(e,!1)}function Yr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=k((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}var Xr=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Kr(this))throw ln("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return Dt(e)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===Kr(this))throw ln("enqueue");$r(this,e)},e.prototype.error=function(e){if(!1===Kr(this))throw ln("error");en(this,e)},e.prototype.terminate=function(){if(!1===Kr(this))throw ln("terminate");rn(this)},e}();function Kr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Zr(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function Jr(e,t){var r=Object.create(Xr.prototype),n=function(e){try{return $r(r,e),x(void 0)}catch(t){return S(t)}},a=t.transform;if(void 0!==a){if("function"!==typeof a)throw new TypeError("transform is not a method");n=function(e){return f(a,t,[e,r])}}var i=d(t,"flush",0,[r]);Zr(e,r,n,i)}function Qr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function $r(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!1===Bt(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{Ft(n,t)}catch(i){throw Gr(r,i),r._readable._storedError}var a=Nt(n);a!==r._backpressure&&Yr(r,!0)}function en(e,t){Hr(e._controlledTransformStream,t)}function tn(e,t){var r=e._transformAlgorithm(t);return E(r,void 0,(function(t){throw Hr(e._controlledTransformStream,t),t}))}function rn(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;!0===Bt(r)&&Lt(r);var n=new TypeError("TransformStream terminated");Gr(t,n)}function nn(e,t){var r=e._transformStreamController;if(!0===e._backpressure){var n=e._backpressureChangePromise;return E(n,(function(){var n=e._writable,a=n._state;if("erroring"===a)throw n._storedError;return tn(r,t)}))}return tn(r,t)}function an(e,t){return Hr(e,t),x(void 0)}function on(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return Qr(r),E(n,(function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===Bt(e)&&Lt(e)}),(function(r){throw Hr(e,r),t._storedError}))}function sn(e){return Yr(e,!1),e._backpressureChangePromise}function ln(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function cn(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}e.ByteLengthQueuingStrategy=jr,e.CountQueuingStrategy=qr,e.ReadableStream=Ir,e.TransformStream=zr,e.WritableStream=fe,Object.defineProperty(e,"__esModule",{value:!0})}))},function(e,t,r){r(137),r(105),r(73),r(107);var n=r(38);e.exports=n.Map},function(e,t,r){"use strict";var n=r(138),a=r(142);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},function(e,t,r){"use strict";var n=r(5),a=r(6),i=r(47),o=r(24),s=r(139),l=r(115),c=r(114),u=r(17),d=r(9),h=r(93),f=r(81),p=r(141);e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=g?"set":"add",b=a[e],y=b&&b.prototype,w=b,_={},k=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(i(e,"function"!=typeof b||!(v||y.forEach&&!d((function(){(new b).entries().next()})))))w=r.getConstructor(t,e,g,m),s.REQUIRED=!0;else if(i(e,!0)){var x=new w,S=x[m](v?{}:-0,1)!=x,A=d((function(){x.has(1)})),C=h((function(e){new b(e)})),P=!v&&d((function(){var e=new b,t=5;while(t--)e[m](t,t);return!e.has(-0)}));C||(w=t((function(t,r){c(t,w,e);var n=p(new b,t,w);return void 0!=r&&l(r,n[m],n,g),n})),w.prototype=y,y.constructor=w),(A||P)&&(k("delete"),k("has"),g&&k("get")),(P||S)&&k(m),v&&y.clear&&delete y.clear}return _[e]=w,n({global:!0,forced:w!=b},_),f(w,e),v||r.setStrong(w,e,g),w}},function(e,t,r){var n=r(34),a=r(17),i=r(18),o=r(22).f,s=r(33),l=r(140),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){o(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=function(e,t){if(!a(e))return"symbol"==_typeof2(e)?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!i(e,c)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},g=function(e){return l&&v.REQUIRED&&d(e)&&!i(e,c)&&h(e),e},v=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:g};n[c]=!0},function(e,t,r){var n=r(9);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){var n=r(17),a=r(83);e.exports=function(e,t,r){var i,o;return a&&"function"==typeof(i=t.constructor)&&i!==r&&n(o=i.prototype)&&o!==r.prototype&&a(e,o),e}},function(e,t,r){"use strict";var n=r(22).f,a=r(67),i=r(112),o=r(58),s=r(114),l=r(115),c=r(75),u=r(113),d=r(8),h=r(139).fastKey,f=r(28),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,r,c){var u=e((function(e,n){s(e,u,t),p(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=n&&l(n,e[c],e,r)})),f=g(t),v=function(e,t,r){var n,a,i=f(e),o=m(e,t);return o?o.value=r:(i.last=o={index:a=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=o),n&&(n.next=o),d?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},m=function(e,t){var r,n=f(e),a=h(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(u.prototype,{clear:function(){var e=this,t=f(e),r=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,r=f(t),n=m(t,e);if(n){var a=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=a),a&&(a.previous=i),r.first==n&&(r.first=a),r.last==n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){var t,r=f(this),n=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:r.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),i(u.prototype,r?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",a=g(t),i=g(n);c(e,t,(function(e,t){p(this,{type:n,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=i(this),t=e.kind,r=e.last;while(r&&r.removed)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(t)}}},function(e,t,r){r(144),r(105),r(73),r(107);var n=r(38);e.exports=n.Set},function(e,t,r){"use strict";var n=r(138),a=r(142);e.exports=n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},function(e,t,r){r(105),r(146),r(107);var n=r(38);e.exports=n.WeakMap},function(e,t,r){"use strict";var n,a=r(6),i=r(112),o=r(139),s=r(138),l=r(147),c=r(17),u=r(28).enforce,d=r(29),h=!a.ActiveXObject&&"ActiveXObject"in a,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,l);if(d&&h){n=l.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var v=g.prototype,m=v["delete"],b=v.has,y=v.get,w=v.set;i(v,{delete:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),m.call(this,e)||t.frozen["delete"](e)}return m.call(this,e)},has:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(c(e)&&!f(e)){var r=u(this);r.frozen||(r.frozen=new n),b.call(this,e)?w.call(this,e,t):r.frozen.set(e,t)}else w.call(this,e,t);return this}})}},function(e,t,r){"use strict";var n=r(112),a=r(139).getWeakData,i=r(23),o=r(17),s=r(114),l=r(115),c=r(148),u=r(18),d=r(28),h=d.set,f=d.getterFor,p=c.find,g=c.findIndex,v=0,m=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var r=y(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,n){s(e,d,t),h(e,{type:t,id:v++,frozen:void 0}),void 0!=n&&l(n,e[c],e,r)})),p=f(t),g=function(e,t,r){var n=p(e),o=a(i(t),!0);return!0===o?m(n).set(t,r):o[n.id]=r,e};return n(d.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var r=a(e);return!0===r?m(t)["delete"](e):r&&u(r,t.id)&&delete r[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var r=a(e);return!0===r?m(t).has(e):r&&u(r,t.id)}}),n(d.prototype,r?{get:function(e){var t=p(this);if(o(e)){var r=a(e);return!0===r?m(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},function(e,t,r){var n=r(58),a=r(13),i=r(79),o=r(42),s=r(149),l=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d;return function(f,p,g,v){for(var m,b,y=i(f),w=a(y),_=n(p,g,3),k=o(w.length),x=0,S=v||s,A=t?S(f,k):r?S(f,0):void 0;k>x;x++)if((h||x in w)&&(m=w[x],b=_(m,x,y),e))if(t)A[x]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:l.call(A,m)}else if(u)return!1;return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,r){var n=r(17),a=r(150),i=r(53),o=i("species");e.exports=function(e,t){var r;return a(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!a(r.prototype)?n(r)&&(r=r[o],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n=r(14);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){r(105),r(152),r(107);var n=r(38);e.exports=n.WeakSet},function(e,t,r){"use strict";var n=r(138),a=r(147);n("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},function(e,t,r){r(154);var n=r(57);e.exports=n("String","codePointAt")},function(e,t,r){"use strict";var n=r(5),a=r(74).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})},function(e,t,r){r(156);var n=r(38);e.exports=n.String.fromCodePoint},function(e,t,r){var n=r(5),a=r(44),i=String.fromCharCode,o=String.fromCodePoint,s=!!o&&1!=o.length;n({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,r=[],n=arguments.length,o=0;while(n>o){if(t=+arguments[o++],a(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){r(158),r(105),r(160),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179);var n=r(38);e.exports=n.Symbol},function(e,t,r){"use strict";var n=r(5),a=r(9),i=r(150),o=r(17),s=r(79),l=r(42),c=r(89),u=r(149),d=r(159),h=r(53),f=r(125),p=h("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=f>=51||!a((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=d("concat"),y=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:i(e)},w=!m||!b;n({target:"Array",proto:!0,forced:w},{concat:function(e){var t,r,n,a,i,o=s(this),d=u(o,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(i=-1===t?o:arguments[t],y(i)){if(a=l(i.length),h+a>g)throw TypeError(v);for(r=0;r<a;r++,h++)r in i&&c(d,h,i[r])}else{if(h>=g)throw TypeError(v);c(d,h++,i)}return d.length=h,d}})},function(e,t,r){var n=r(9),a=r(53),i=r(125),o=a("species");e.exports=function(e){return i>=51||!n((function(){var t=[],r=t.constructor={};return r[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){"use strict";var n=r(5),a=r(6),i=r(37),o=r(32),s=r(8),l=r(54),c=r(55),u=r(9),d=r(18),h=r(150),f=r(17),p=r(23),g=r(79),v=r(12),m=r(16),b=r(11),y=r(67),w=r(69),_=r(39),k=r(161),x=r(46),S=r(7),A=r(22),C=r(10),P=r(21),T=r(24),E=r(31),R=r(30),I=r(34),O=r(33),L=r(53),F=r(162),M=r(163),D=r(81),N=r(28),B=r(148).forEach,U=R("hidden"),j="Symbol",q="prototype",z=L("toPrimitive"),V=N.set,W=N.getterFor(j),H=Object[q],G=a.Symbol,Y=i("JSON","stringify"),X=S.f,K=A.f,Z=k.f,J=C.f,Q=E("symbols"),$=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),re=E("wks"),ne=a.QObject,ae=!ne||!ne[q]||!ne[q].findChild,ie=s&&u((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=X(H,t);n&&delete H[t],K(e,t,r),n&&e!==H&&K(H,t,n)}:K,oe=function(e,t){var r=Q[e]=y(G[q]);return V(r,{type:j,tag:e,description:t}),s||(r.description=t),r},se=c?function(e){return"symbol"==_typeof2(e)}:function(e){return Object(e)instanceof G},le=function(e,t,r){e===H&&le($,t,r),p(e);var n=m(t,!0);return p(r),d(Q,n)?(r.enumerable?(d(e,U)&&e[U][n]&&(e[U][n]=!1),r=y(r,{enumerable:b(0,!1)})):(d(e,U)||K(e,U,b(1,{})),e[U][n]=!0),ie(e,n,r)):K(e,n,r)},ce=function(e,t){p(e);var r=v(t),n=w(r).concat(pe(r));return B(n,(function(t){s&&!de.call(r,t)||le(e,t,r[t])})),e},ue=function(e,t){return void 0===t?y(e):ce(y(e),t)},de=function(e){var t=m(e,!0),r=J.call(this,t);return!(this===H&&d(Q,t)&&!d($,t))&&(!(r||!d(this,t)||!d(Q,t)||d(this,U)&&this[U][t])||r)},he=function(e,t){var r=v(e),n=m(t,!0);if(r!==H||!d(Q,n)||d($,n)){var a=X(r,n);return!a||!d(Q,n)||d(r,U)&&r[U][n]||(a.enumerable=!0),a}},fe=function(e){var t=Z(v(e)),r=[];return B(t,(function(e){d(Q,e)||d(I,e)||r.push(e)})),r},pe=function(e){var t=e===H,r=Z(t?$:v(e)),n=[];return B(r,(function(e){!d(Q,e)||t&&!d(H,e)||n.push(Q[e])})),n};if(l||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=O(e),r=function e(r){this===H&&e.call($,r),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),ie(this,t,b(1,r))};return s&&ae&&ie(H,t,{configurable:!0,set:r}),oe(t,e)},T(G[q],"toString",(function(){return W(this).tag})),T(G,"withoutSetter",(function(e){return oe(O(e),e)})),C.f=de,A.f=le,S.f=he,_.f=k.f=fe,x.f=pe,F.f=function(e){return oe(L(e),e)},s&&(K(G[q],"description",{configurable:!0,get:function(){return W(this).description}}),o||T(H,"propertyIsEnumerable",de,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:G}),B(w(re),(function(e){M(e)})),n({target:j,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var r=G(t);return ee[t]=r,te[r]=t,r},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!s},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:he}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),n({target:"Object",stat:!0,forced:u((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(g(e))}}),Y){var ge=!l||u((function(){var e=G();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));n({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,r){var n,a=[e],i=1;while(arguments.length>i)a.push(arguments[i++]);if(n=t,(f(t)||void 0!==e)&&!se(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!se(t))return t}),a[1]=t,Y.apply(null,a)}})}G[q][z]||P(G[q],z,G[q].valueOf),D(G,j),I[U]=!0},function(e,t,r){var n=r(12),a=r(39).f,i={}.toString,o="object"==("undefined"===typeof window?"undefined":_typeof2(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return a(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?s(e):a(n(e))}},function(e,t,r){var n=r(53);t.f=n},function(e,t,r){var n=r(38),a=r(18),i=r(162),o=r(22).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},function(e,t,r){var n=r(163);n("asyncIterator")},function(e,t,r){"use strict";var n=r(5),a=r(8),i=r(6),o=r(18),s=r(17),l=r(22).f,c=r(35),u=i.Symbol;if(a&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,g="Symbol(test)"==String(u("test")),v=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(d,e))return"";var r=g?t.slice(7,-1):t.replace(v,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(e,t,r){var n=r(163);n("hasInstance")},function(e,t,r){var n=r(163);n("isConcatSpreadable")},function(e,t,r){var n=r(163);n("iterator")},function(e,t,r){var n=r(163);n("match")},function(e,t,r){var n=r(163);n("matchAll")},function(e,t,r){var n=r(163);n("replace")},function(e,t,r){var n=r(163);n("search")},function(e,t,r){var n=r(163);n("species")},function(e,t,r){var n=r(163);n("split")},function(e,t,r){var n=r(163);n("toPrimitive")},function(e,t,r){var n=r(163);n("toStringTag")},function(e,t,r){var n=r(163);n("unscopables")},function(e,t,r){var n=r(81);n(Math,"Math",!0)},function(e,t,r){var n=r(6),a=r(81);a(n.JSON,"JSON",!0)},function(e,t,r){r(181);var n=r(57);e.exports=n("String","padStart")},function(e,t,r){"use strict";var n=r(5),a=r(182).start,i=r(184);n({target:"String",proto:!0,forced:i},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(42),a=r(183),i=r(15),o=Math.ceil,s=function(e){return function(t,r,s){var l,c,u=String(i(t)),d=u.length,h=void 0===s?" ":String(s),f=n(r);return f<=d||""==h?u:(l=f-d,c=a.call(h,o(l/h.length)),c.length>l&&(c=c.slice(0,l)),e?u+c:c+u)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,r){"use strict";var n=r(43),a=r(15);e.exports="".repeat||function(e){var t=String(a(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}},function(e,t,r){var n=r(119);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(e,t,r){r(186);var n=r(57);e.exports=n("String","padEnd")},function(e,t,r){"use strict";var n=r(5),a=r(182).end,i=r(184);n({target:"String",proto:!0,forced:i},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(188);var n=r(38);e.exports=n.Object.values},function(e,t,r){var n=r(5),a=r(189).values;n({target:"Object",stat:!0},{values:function(e){return a(e)}})},function(e,t,r){var n=r(8),a=r(69),i=r(12),o=r(10).f,s=function(e){return function(t){var r,s=i(t),l=a(s),c=l.length,u=0,d=[];while(c>u)r=l[u++],n&&!o.call(s,r)||d.push(e?[r,s[r]]:s[r]);return d}};e.exports={entries:s(!0),values:s(!1)}},function(module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(191)),_util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(194),_font_loader=__w_pdfjs_require__(195),_api_compatibility=__w_pdfjs_require__(196),_canvas=__w_pdfjs_require__(197),_worker_options=__w_pdfjs_require__(199),_is_node=__w_pdfjs_require__(48),_message_handler=__w_pdfjs_require__(200),_metadata=__w_pdfjs_require__(201),_transport_stream=__w_pdfjs_require__(203),_webgl=__w_pdfjs_require__(204);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function asyncGeneratorStep(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){asyncGeneratorStep(i,n,a,o,s,"next",e)}function s(e){asyncGeneratorStep(i,n,a,o,s,"throw",e)}o(void 0)}))}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _typeof(e){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,r=new PDFDocumentLoadingTask;if("string"===typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var n=Object.create(null),a=null,i=null;for(var o in t)if("url"!==o||"undefined"===typeof window)if("range"!==o)if("worker"!==o)if("data"!==o||t[o]instanceof Uint8Array)n[o]=t[o];else{var s=t[o];if("string"===typeof s)n[o]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");n[o]=new Uint8Array(s)}else n[o]=new Uint8Array(s)}else i=t[o];else a=t[o];else n[o]=new URL(t[o],window.location).href;n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.pdfBug=!0===n.pdfBug;var l=Object.values(_util.NativeImageDecoding);if(void 0!==n.nativeImageDecoderSupport&&l.includes(n.nativeImageDecoderSupport)||(n.nativeImageDecoderSupport=_api_compatibility.apiCompatibilityParams.nativeImageDecoderSupport||_util.NativeImageDecoding.DECODE),Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),"boolean"!==typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!==typeof n.disableFontFace&&(n.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!==typeof n.disableRange&&(n.disableRange=!1),"boolean"!==typeof n.disableStream&&(n.disableStream=!1),"boolean"!==typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),"boolean"!==typeof n.disableCreateObjectURL&&(n.disableCreateObjectURL=_api_compatibility.apiCompatibilityParams.disableCreateObjectURL||!1),(0,_util.setVerbosityLevel)(n.verbosity),!i){var c={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};i=c.port?PDFWorker.fromPort(c):new PDFWorker(c),r._worker=i}var u=r.docId;return i.promise.then((function(){if(r.destroyed)throw new Error("Loading aborted");return _fetchDocument(i,n,a,u).then((function(e){if(r.destroyed)throw new Error("Loading aborted");var t;a?t=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,disableRange:n.disableRange,disableStream:n.disableStream},a):n.data||(t=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream}));var o=new _message_handler.MessageHandler(u,e,i.port);o.postMessageTransfers=i.postMessageTransfers;var s=new WorkerTransport(o,r,t,n);r._transport=s,o.send("Ready",null)}))}))["catch"](r._capability.reject),r}function _fetchDocument(e,t,r,n){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(r&&(t.length=r.length,t.initialData=r.initialData,t.progressiveDone=r.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.4.456",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,disableCreateObjectURL:t.disableCreateObjectURL,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported}).then((function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t})))}var PDFDocumentLoadingTask=function(){var e=0,t=function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var e=this;this.destroyed=!0;var t=this._transport?this._transport.destroy():Promise.resolve();return t.then((function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))}},{key:"then",value:function(e,t){throw new Error("Removed API method: PDFDocumentLoadingTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._capability.promise}}]),t}();return t}(),PDFDataRangeTransport=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var r=!0,n=!1,a=void 0;try{for(var i,o=this._rangeListeners[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;s(e,t)}}catch(l){n=!0,a=l}finally{try{r||null==o["return"]||o["return"]()}finally{if(n)throw a}}}},{key:"onDataProgress",value:function(e,t){var r=this;this._readyCapability.promise.then((function(){var n=!0,a=!1,i=void 0;try{for(var o,s=r._progressListeners[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;l(e,t)}}catch(c){a=!0,i=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var r=!0,n=!1,a=void 0;try{for(var i,o=t._progressiveReadListeners[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;s(e)}}catch(l){n=!0,a=l}finally{try{r||null==o["return"]||o["return"]()}finally{if(n)throw a}}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t=!0,r=!1,n=void 0;try{for(var a,i=e._progressiveDoneListeners[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;o()}}catch(s){r=!0,n=s}finally{try{t||null==i["return"]||i["return"]()}finally{if(r)throw n}}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,r){_classCallCheck(this,e),this._pdfInfo=t,this._transport=r}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(e){return e&&e.dest?e.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,r,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=e.rotation,n=void 0===r?this.rotate:r,a=e.offsetX,i=void 0===a?0:a,o=e.offsetY,s=void 0===o?0:o,l=e.dontFlip,c=void 0!==l&&l;if(arguments.length>1||"number"===typeof arguments[0])throw new Error("PDFPageProxy.getViewport is called with obsolete arguments.");return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:n,offsetX:i,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,r=void 0===t?null:t;return this.annotationsPromise&&this.annotationsIntent===r||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this.annotationsIntent=r),this.annotationsPromise}},{key:"render",value:function(e){var t=this,r=e.canvasContext,n=e.viewport,a=e.intent,i=void 0===a?"display":a,o=e.enableWebGL,s=void 0!==o&&o,l=e.renderInteractiveForms,c=void 0!==l&&l,u=e.transform,d=void 0===u?null:u,h=e.imageLayer,f=void 0===h?null:h,p=e.canvasFactory,g=void 0===p?null:p,v=e.background,m=void 0===v?null:v;this._stats&&this._stats.time("Overall");var b="print"===i?"print":"display";this.pendingCleanup=!1,this.intentStates[b]||(this.intentStates[b]=Object.create(null));var y=this.intentStates[b];y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);var w=g||new _display_utils.DOMCanvasFactory,_=new _webgl.WebGLContext({enable:s});y.displayReadyCapability||(y.displayReadyCapability=(0,_util.createPromiseCapability)(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:b,renderInteractiveForms:!0===c}));var k=function(e){var r=y.renderTasks.indexOf(x);r>=0&&y.renderTasks.splice(r,1),(t.cleanupAfterRender||"print"===b)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(x.capability.reject(e),t._abortOperatorList({intentState:y,reason:e})):x.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},x=new InternalRenderTask({callback:k,params:{canvasContext:r,viewport:n,transform:d,imageLayer:f,background:m},objs:this.objs,commonObjs:this.commonObjs,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:w,webGLContext:_,useRequestAnimationFrame:"print"!==b,pdfBug:this._pdfBug});y.renderTasks||(y.renderTasks=[]),y.renderTasks.push(x);var S=x.task;return y.displayReadyCapability.promise.then((function(e){t.pendingCleanup?k():(t._stats&&t._stats.time("Rendering"),x.initializeGraphics(e),x.operatorListChanged())}))["catch"](k),S}},{key:"getOperatorList",value:function(){function e(){if(n.operatorList.lastChunk){n.opListReadCapability.resolve(n.operatorList);var e=n.renderTasks.indexOf(r);e>=0&&n.renderTasks.splice(e,1)}}var t="oplist";this.intentStates[t]||(this.intentStates[t]=Object.create(null));var r,n=this.intentStates[t];return n.opListReadCapability||(r={},r.operatorListChanged=e,n.opListReadCapability=(0,_util.createPromiseCapability)(),n.renderTasks=[],n.renderTasks.push(r),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:t})),n.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,r=void 0!==t&&t,n=e.disableCombineTextItems,a=void 0!==n&&n,i=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==a},{highWaterMark:i,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise((function(e,r){function n(){a.read().then((function(t){var r,a=t.value,o=t.done;o?e(i):(Object.assign(i.styles,a.styles),(r=i.items).push.apply(r,_toConsumableArray(a.items)),n())}),r)}var a=t.getReader(),i={items:[],styles:Object.create(null)};n()}))}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach((function(r){var n=e.intentStates[r];e._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach((function(e){var r=e.capability.promise["catch"]((function(){}));t.push(r),e.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(t){var r=e.intentStates[t];return 0!==r.renderTasks.length||!r.operatorList.lastChunk})))&&(Object.keys(this.intentStates).forEach((function(t){delete e.intentStates[t]})),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(e,t){var r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var r=0,n=e.length;r<n;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r]);t.operatorList.lastChunk=e.lastChunk;for(var a=0;a<t.renderTasks.length;a++)t.renderTasks[a].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var r=this._transport.messageHandler.sendWithStream("GetOperatorList",e),n=r.getReader(),a=this.intentStates[e.intent];a.streamReader=n;var i=function e(){n.read().then((function(r){var n=r.value,i=r.done;i?a.streamReader=null:t._transport.destroyed||(t._renderPageChunk(n,a),e())}),(function(e){if(a.streamReader=null,!t._transport.destroyed){if(a.operatorList){a.operatorList.lastChunk=!0;for(var r=0;r<a.renderTasks.length;r++)a.renderTasks[r].operatorListChanged();t._tryCleanup()}if(a.displayReadyCapability)a.displayReadyCapability.reject(e);else{if(!a.opListReadCapability)throw e;a.opListReadCapability.reject(e)}}}))};i()}},{key:"_abortOperatorList",value:function(e){var t=this,r=e.intentState,n=e.reason,a=e.force,i=void 0!==a&&a;if((0,_util.assert)(n instanceof Error||"object"===_typeof(n)&&null!==n,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),r.streamReader){if(!i){if(0!==r.renderTasks.length)return;if(n instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout((function(){t._abortOperatorList({intentState:r,reason:n,force:!0}),r.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}r.streamReader.cancel(new _util.AbortException(n&&n.message)),r.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some((function(e){return t.intentStates[e]===r&&(delete t.intentStates[e],!0)})),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var r=this;function n(e){if("object"!==_typeof(e)||null===e)return e;if(a.has(e))return a.get(e);var r,i;if((r=e.buffer)&&(0,_util.isArrayBuffer)(r)){var o=t&&t.includes(r);return i=o?new e.constructor(r,e.byteOffset,e.byteLength):new e.constructor(e),a.set(e,i),i}for(var s in i=Array.isArray(e)?[]:{},a.set(e,i),e){var l=void 0,c=e;while(!(l=Object.getOwnPropertyDescriptor(c,s)))c=Object.getPrototypeOf(c);if("undefined"!==typeof l.value)if("function"!==typeof l.value)i[s]=n(l.value);else if(e.hasOwnProperty&&e.hasOwnProperty(s))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(e[s]))}return i}if(this._defer){var a=new WeakMap,i={data:n(e)};this._deferred.then((function(){r._listeners.forEach((function(e){e.call(r,i)}))}))}else this._listeners.forEach((function(t){t.call(r,{data:e})}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"===typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref8=_asyncToGenerator(_regenerator["default"].mark((function _callee(){var mainWorkerMessageHandler,worker;return _regenerator["default"].wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}}),_callee)})));return function(){return _ref8.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=void 0===r?null:r,a=t.port,i=void 0===a?null:a,o=t.verbosity,s=void 0===o?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,e),i&&pdfWorkerPorts.has(i))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,i)return pdfWorkerPorts.set(i,this),void this._initializeFromPort(i);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var r=new Worker(t),n=new _message_handler.MessageHandler("main","worker",r),a=function(){r.removeEventListener("error",i),n.destroy(),r.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},i=function(){e._webWorker||a()};r.addEventListener("error",i),n.on("test",(function(t){r.removeEventListener("error",i),e.destroyed?a():t?(e._messageHandler=n,e._port=r,e._webWorker=r,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),n.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),n.destroy(),r.terminate())})),n.on("ready",(function(t){if(r.removeEventListener("error",i),e.destroyed)a();else try{o()}catch(n){e._setupFakeWorker()}}));var o=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{n.send("test",t,[t.buffer])}catch(r){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,n.send("test",t)}};return void o()}catch(s){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var r=new LoopbackPort;e._port=r;var n="fake"+nextFakeWorkerId++,a=new _message_handler.MessageHandler(n+"_worker",n,r);t.setup(a,r);var i=new _message_handler.MessageHandler(n,n+"_worker",r);e._messageHandler=i,e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})}}))["catch"]((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts["delete"](this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,r,n,a){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=a,this.CMapReaderFactory=new a.CMapReaderFactory({baseUrl:a.cMapUrl,isCompressed:a.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach((function(e){e&&t.push(e._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then((function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,r=this.loadingTask;t.on("GetReader",(function(t,r){(0,_util.assert)(e._networkStream),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},r.onPull=function(){e._fullReader.read().then((function(e){var t=e.value,n=e.done;n?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),r.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){r.error(e)}))},r.onCancel=function(t){e._fullReader.cancel(t)}})),t.on("ReaderHeadersReady",(function(t){var n=(0,_util.createPromiseCapability)(),a=e._fullReader;return a.headersReady.then((function(){a.isStreamingSupported&&a.isRangeSupported||(e._lastProgress&&r.onProgress&&r.onProgress(e._lastProgress),a.onProgress=function(e){r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),n.reject),n.promise})),t.on("GetRangeReader",(function(t,r){(0,_util.assert)(e._networkStream);var n=e._networkStream.getRangeReader(t.begin,t.end);n?(r.onPull=function(){n.read().then((function(e){var t=e.value,n=e.done;n?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),r.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){r.error(e)}))},r.onCancel=function(e){n.cancel(e)}):r.close()})),t.on("GetDoc",(function(t){var n=t.pdfInfo;e._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break}r._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var n=function(t){e._passwordCapability.resolve({password:t})};try{r.onPassword(n,t.code)}catch(a){e._passwordCapability.reject(a)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){r.onProgress&&r.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){if(!e.destroyed){var r=e.pageCache[t.pageIndex];r._startRenderPage(t.transparency,t.intent)}})),t.on("commonobj",(function(r){if(!e.destroyed){var n=_slicedToArray(r,3),a=n[0],i=n[1],o=n[2];if(!e.commonObjs.has(a))switch(i){case"Font":var s=e._params;if("error"in o){var l=o.error;(0,_util.warn)("Error during font loading: ".concat(l)),e.commonObjs.resolve(a,l);break}var c=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var u=new _font_loader.FontFaceObject(o,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(u).then((function(){e.commonObjs.resolve(a,u)}),(function(r){t.sendWithPromise("FontFallback",{id:a})["finally"]((function(){e.commonObjs.resolve(a,u)}))}));break;case"FontPath":case"FontType3Res":e.commonObjs.resolve(a,o);break;default:throw new Error("Got unknown common object type ".concat(i))}}})),t.on("obj",(function(t){if(!e.destroyed){var r=_slicedToArray(t,4),n=r[0],a=r[1],i=r[2],o=r[3],s=e.pageCache[a];if(!s.objs.has(n))switch(i){case"JpegStream":return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=function(){t(new Error("Error during JPEG image loading")),(0,_display_utils.releaseImageResources)(r)},r.src=o})).then((function(e){s.objs.resolve(n,e)}));case"Image":s.objs.resolve(n,o);var l=8e6;o&&"data"in o&&o.data.length>l&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(i))}}})),t.on("DocProgress",(function(t){e.destroyed||r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("JpegDecode",(function(t){if(e.destroyed)return Promise.reject(new Error("Worker was destroyed"));if("undefined"===typeof document)return Promise.reject(new Error('"document" is not defined.'));var r=_slicedToArray(t,2),n=r[0],a=r[1];return 3!==a&&1!==a?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise((function(e,t){var r=new Image;r.onload=function(){var t=r.width,n=r.height,i=t*n,o=4*i,s=new Uint8ClampedArray(i*a),l=document.createElement("canvas");l.width=t,l.height=n;var c=l.getContext("2d");c.drawImage(r,0,0);var u=c.getImageData(0,0,t,n).data;if(3===a)for(var d=0,h=0;d<o;d+=4,h+=3)s[h]=u[d],s[h+1]=u[d+1],s[h+2]=u[d+2];else if(1===a)for(var f=0,p=0;f<o;f+=4,p++)s[p]=u[f];e({data:s,width:t,height:n}),(0,_display_utils.releaseImageResources)(r),l.width=0,l.height=0,l=null,c=null},r.onerror=function(){t(new Error("JpegDecode failed to load image")),(0,_display_utils.releaseImageResources)(r)},r.src=n}))})),t.on("FetchBuiltInCMap",(function(t,r){if(e.destroyed)r.error(new Error("Worker was destroyed"));else{var n=!1;r.onPull=function(){n?r.close():(n=!0,e.CMapReaderFactory.fetch(t).then((function(e){r.enqueue(e,1,[e.cMapData.buffer])}))["catch"]((function(e){r.error(e)})))}}}))}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var r=e-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,e,t,t._params.pdfBug);return t.pageCache[r]=n,n}));return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e})["catch"]((function(e){return Promise.reject(new Error(e))}))}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var t=0,r=e.pageCache.length;t<r;t++){var n=e.pageCache[t];if(n){var a=n.cleanup();if(!a)throw new Error("startCleanup: Page ".concat(t+1," is currently rendering."))}}e.commonObjs.clear(),e.fontLoader.clear()}))}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableCreateObjectURL:e.disableCreateObjectURL,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport})}}]),e}(),PDFObjects=function(){function e(){_classCallCheck(this,e),this._objs=Object.create(null)}return _createClass(e,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var r=this._objs[e];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return r.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var r=this._ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)}},{key:"clear",value:function(){for(var e in this._objs){var t=this._objs[e].data;"undefined"!==typeof Image&&t instanceof Image&&(0,_display_utils.releaseImageResources)(t)}this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"then",value:function(e,t){throw new Error("Removed API method: RenderTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=function(){var e=new WeakSet,t=function(){function t(e){var r=e.callback,n=e.params,a=e.objs,i=e.commonObjs,o=e.operatorList,s=e.pageIndex,l=e.canvasFactory,c=e.webGLContext,u=e.useRequestAnimationFrame,d=void 0!==u&&u,h=e.pdfBug,f=void 0!==h&&h;_classCallCheck(this,t),this.callback=r,this.params=n,this.objs=a,this.commonObjs=i,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.webGLContext=c,this._pdfBug=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===d&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,a=r.viewport,i=r.transform,o=r.imageLayer,s=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,o),this.gfx.beginDrawing({transform:i,viewport:a,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e["delete"](this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound()["catch"](e.cancel.bind(e))})):Promise.resolve().then(this._nextBound)["catch"](this.cancel.bind(this))}},{key:"_next",value:function(){var t=_asyncToGenerator(_regenerator["default"].mark((function t(){return _regenerator["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e["delete"](this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));function r(){return t.apply(this,arguments)}return r}()}]),t}();return t}(),version="2.4.456";exports.version=version;var build="228a591c";exports.build=build},function(e,t,r){"use strict";e.exports=r(192)},function(e,t,r){"use strict";(function(e){function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var r=function(e){var r,n=Object.prototype,a=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),o=new E(n||[]);return i._invoke=A(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={};function v(){}function m(){}function b(){}var y={};y[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&a.call(_,o)&&(y=_);var k=b.prototype=v.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function S(e,r){function n(i,o,s,l){var c=u(e[i],e,o);if("throw"!==c.type){var d=c.arg,h=d.value;return h&&"object"===t(h)&&a.call(h,"__await")?r.resolve(h.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):r.resolve(h).then((function(e){d.value=e,s(d)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var i;function o(e,t){function a(){return new r((function(r,a){n(e,t,r,a)}))}return i=i?i.then(a,a):a()}this._invoke=o}function A(e,t,r){var n=d;return function(a,i){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw i;return I()}r.method=a,r.arg=i;while(1){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var l=u(e,t,r);if("normal"===l.type){if(n=r.done?p:h,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=p,r.method="throw",r.arg=l.arg)}}}function C(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=r,C(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=u(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function P(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(e){if(e){var t=e[o];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){while(++n<e.length)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:I}}function I(){return{value:r,done:!0}}return m.prototype=k.constructor=b,b.constructor=m,b[l]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(S.prototype),S.prototype[s]=function(){return this},e.AsyncIterator=S,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new S(c(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(k),k[l]="Generator",k[o]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){while(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=R,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,a){return s.type="throw",s.arg=e,t.next=n,a&&(t.method="next",t.arg=r),!!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 l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)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,g):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),g},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),T(r),g}},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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(n){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(193)(e))},function(e,t,r){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=A,t.getFilenameFromUrl=C,t.isFetchSupported=E,t.isValidFetchUrl=R,t.loadScript=I,t.deprecated=O,t.releaseImageResources=L,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var n=i(r(191)),a=r(1);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).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){h(i,n,a,o,s,"next",e)}function s(e){h(i,n,a,o,s,"throw",e)}o(void 0)}))}}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 v(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}var m="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=m;var b="http://www.w3.org/2000/svg",y=function(){function e(){p(this,e)}return v(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=document.createElement("canvas"),n=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:n}}},{key:"reset",value:function(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.DOMCanvasFactory=y;var w=function(){function e(t){var r=t.baseUrl,n=void 0===r?null:r,a=t.isCompressed,i=void 0!==a&&a;p(this,e),this.baseUrl=n,this.isCompressed=i}return v(e,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=f(n["default"].mark((function e(t){var r,i,o,s=this;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){e.next=5;break}throw new Error("CMap name must be specified.");case 5:if(i=this.baseUrl+r+(this.isCompressed?".bcmap":""),o=this.isCompressed?a.CMapCompressionType.BINARY:a.CMapCompressionType.NONE,!E()||!R(i,document.baseURI)){e.next=9;break}return e.abrupt("return",fetch(i).then(function(){var e=f(n["default"].mark((function e(t){var r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(!s.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,t.arrayBuffer();case 6:e.t1=e.sent,r=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=a.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,r=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:r,compressionType:o});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())["catch"]((function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"")+"CMap at: ".concat(i))})));case 9:return e.abrupt("return",new Promise((function(e,t){var r=new XMLHttpRequest;r.open("GET",i,!0),s.isCompressed&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){var n;if(200===r.status||0===r.status)if(s.isCompressed&&r.response?n=new Uint8Array(r.response):!s.isCompressed&&r.responseText&&(n=(0,a.stringToBytes)(r.responseText)),n)return void e({cMapData:n,compressionType:o});t(new Error(r.statusText))}},r.send(null)}))["catch"]((function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"")+"CMap at: ".concat(i))})));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}())}]),e}();t.DOMCMapReaderFactory=w;var _=function(){function e(){p(this,e)}return v(e,[{key:"create",value:function(e,t){(0,a.assert)(e>0&&t>0,"Invalid SVG dimensions");var r=document.createElementNS(b,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}},{key:"createElement",value:function(e){return(0,a.assert)("string"===typeof e,"Invalid SVG element type"),document.createElementNS(b,e)}}]),e}();t.DOMSVGFactory=_;var k=function(){function e(t){var r=t.viewBox,n=t.scale,a=t.rotation,i=t.offsetX,o=void 0===i?0:i,s=t.offsetY,l=void 0===s?0:s,c=t.dontFlip,u=void 0!==c&&c;p(this,e),this.viewBox=r,this.scale=n,this.rotation=a,this.offsetX=o,this.offsetY=l;var d,h,f,g,v,m,b,y,w=(r[2]+r[0])/2,_=(r[3]+r[1])/2;switch(a%=360,a=a<0?a+360:a,a){case 180:d=-1,h=0,f=0,g=1;break;case 90:d=0,h=1,f=1,g=0;break;case 270:d=0,h=-1,f=-1,g=0;break;default:d=1,h=0,f=0,g=-1;break}u&&(f=-f,g=-g),0===d?(v=Math.abs(_-r[1])*n+o,m=Math.abs(w-r[0])*n+l,b=Math.abs(r[3]-r[1])*n,y=Math.abs(r[2]-r[0])*n):(v=Math.abs(w-r[0])*n+o,m=Math.abs(_-r[1])*n+l,b=Math.abs(r[2]-r[0])*n,y=Math.abs(r[3]-r[1])*n),this.transform=[d*n,h*n,f*n,g*n,v-d*n*w-f*n*_,m-h*n*w-g*n*_],this.width=b,this.height=y}return v(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,n=void 0===r?this.scale:r,a=t.rotation,i=void 0===a?this.rotation:a,o=t.offsetX,s=void 0===o?this.offsetX:o,l=t.offsetY,c=void 0===l?this.offsetY:l,u=t.dontFlip,d=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:n,rotation:i,offsetX:s,offsetY:c,dontFlip:d})}},{key:"convertToViewportPoint",value:function(e,t){return a.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=a.Util.applyTransform([e[0],e[1]],this.transform),r=a.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(e,t){return a.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=k;var x=function(e){function t(e,r){var n;return p(this,t),n=s(this,c(t).call(this,e)),n.type=r,n}return u(t,e),t}(a.BaseException);t.RenderingCancelledException=x;var S={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.url,n=t.target,i=t.rel,o=t.enabled,s=void 0===o||o;(0,a.assert)(r&&"string"===typeof r,'addLinkAttributes: A valid "url" parameter must provided.');var l=(0,a.removeNullCharacters)(r);s?e.href=e.title=l:(e.href="",e.title="Disabled: ".concat(l),e.onclick=function(){return!1});var c="";switch(n){case S.NONE:break;case S.SELF:c="_self";break;case S.BLANK:c="_blank";break;case S.PARENT:c="_parent";break;case S.TOP:c="_top";break}e.target=c,e.rel="string"===typeof i?i:m}function C(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)}t.LinkTarget=S;var P,T=function(){function e(){p(this,e),this.started=Object.create(null),this.times=[]}return v(e,[{key:"time",value:function(e){e in this.started&&(0,a.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,a.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e=[],t=0,r=!0,n=!1,a=void 0;try{for(var i,o=this.times[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value,l=s.name;l.length>t&&(t=l.length)}}catch(v){n=!0,a=v}finally{try{r||null==o["return"]||o["return"]()}finally{if(n)throw a}}var c=!0,u=!1,d=void 0;try{for(var h,f=this.times[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var p=h.value,g=p.end-p.start;e.push("".concat(p.name.padEnd(t)," ").concat(g,"ms\n"))}}catch(v){u=!0,d=v}finally{try{c||null==f["return"]||f["return"]()}finally{if(u)throw d}}return e.join("")}}]),e}();function E(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function R(e,t){try{var r=t?new URL(e,t):new URL(e),n=r.protocol;return"http:"===n||"https:"===n}catch(a){return!1}}function I(e){return new Promise((function(t,r){var n=document.createElement("script");n.src=e,n.onload=t,n.onerror=function(){r(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)}))}function O(e){console.log("Deprecated API usage: "+e)}function L(e){(0,a.assert)(e instanceof Image,"Invalid `img` parameter.");var t=e.src;"string"===typeof t&&t.startsWith("blob:")&&URL.revokeObjectURL&&URL.revokeObjectURL(t),e.removeAttribute("src")}t.StatTimer=T;var F=function(){function e(){p(this,e)}return v(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,a.isString)(e))return null;P||(P=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=P.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;var c=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===c?(o+=u,s+=d):"+"===c&&(o-=u,s-=d),new Date(Date.UTC(r,n,i,o,s,l))}}]),e}();t.PDFDateString=F},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var n=i(r(191)),a=r(1);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).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){h(i,n,a,o,s,"next",e)}function s(e){h(i,n,a,o,s,"throw",e)}o(void 0)}))}}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 v(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}var m,b=function(){function e(t){var r=t.docId,n=t.onUnsupportedFeature;p(this,e),this.constructor===e&&(0,a.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}return v(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||(t=this.styleElement=document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(t));var r=t.sheet;r.insertRule(e,r.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach((function(e){document.fonts["delete"](e)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e=f(n["default"].mark((function e(t){var r,i,o=this;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(r=t.createNativeFontFace(),!r){e.next=18;break}return this.addNativeFontFace(r),e.prev=7,e.next=10,r.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e["catch"](7),this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.font}),(0,a.warn)("Failed to load font '".concat(r.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(i=t.createFontFaceRule(),!i){e.next=26;break}if(this.insertRule(i),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise((function(e){var r=o._queueLoadingCallback(e);o._prepareFontLoadEvent([i],[t],r)}));case 26:case"end":return e.stop()}}),e,this,[[7,12]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_queueLoadingCallback",value:function(e){(0,a.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,r){(0,a.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!==typeof document&&!!document.fonts;return(0,a.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,a.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,a.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=m,t.FontLoader=m=function(e){function t(e){var r;return p(this,t),r=s(this,c(t).call(this,e)),r.loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}return u(t,e),v(t,[{key:"_queueLoadingCallback",value:function(e){function t(){(0,a.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;while(r.requests.length>0&&r.requests[0].done){var e=r.requests.shift();setTimeout(e.callback,0)}}var r=this.loadingContext,n={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:t,callback:e};return r.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,r){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,r,n){var a=e.substring(0,t),i=e.substring(t+r);return a+n+i}var o,s,l=document.createElement("canvas");l.width=1,l.height=1;var c=l.getContext("2d"),u=0;function d(e,t){if(u++,u>30)return(0,a.warn)("Load test font never loaded."),void t();c.font="30px "+e,c.fillText(".",0,20);var r=c.getImageData(0,0,1,1);r.data[3]>0?t():setTimeout(d.bind(null,e,t))}var h="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,p=976;f=i(f,p,h.length,h);var g=16,v=1482184792,m=n(f,g);for(o=0,s=h.length-3;o<s;o+=4)m=m-v+n(h,o)|0;o<h.length&&(m=m-v+n(h+"XXX",o)|0),f=i(f,g,4,(0,a.string32)(m));var b="url(data:font/opentype;base64,".concat(btoa(f),");"),y='@font-face {font-family:"'.concat(h,'";src:').concat(b,"}");this.insertRule(y);var w=[];for(o=0,s=t.length;o<s;o++)w.push(t[o].loadedName);w.push(h);var _=document.createElement("div");for(_.style.visibility="hidden",_.style.width=_.style.height="10px",_.style.position="absolute",_.style.top=_.style.left="0px",o=0,s=w.length;o<s;++o){var k=document.createElement("span");k.textContent="Hi",k.style.fontFamily=w[o],_.appendChild(k)}document.body.appendChild(_),d(h,(function(){document.body.removeChild(_),r.complete()}))}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"===typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,a.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){var e=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,a.shadow)(this,"_loadTestFont",e())}}]),t}(b);var y=function(){function e(t,r){var n=r.isEvalSupported,a=void 0===n||n,i=r.disableFontFace,o=void 0!==i&&i,s=r.ignoreErrors,l=void 0!==s&&s,c=r.onUnsupportedFeature,u=void 0===c?null:c,d=r.fontRegistry,h=void 0===d?null:d;for(var f in p(this,e),this.compiledGlyphs=Object.create(null),t)this[f]=t[f];this.isEvalSupported=!1!==a,this.disableFontFace=!0===o,this.ignoreErrors=!0===l,this._onUnsupportedFeature=u,this.fontRegistry=h}return v(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,a.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),r='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r,n;try{r=e.get(this.loadedName+"_path_"+t)}catch(c){if(!this.ignoreErrors)throw c;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.font}),(0,a.warn)('getPathGenerator - ignoring character: "'.concat(c,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&a.IsEvalSupportedCached.value){for(var i,o="",s=0,l=r.length;s<l;s++)n=r[s],i=void 0!==n.args?n.args.join(","):"",o+="c."+n.cmd+"("+i+");\n";return this.compiledGlyphs[t]=new Function("c","size",o)}return this.compiledGlyphs[t]=function(e,t){for(var a=0,i=r.length;a<i;a++)n=r[a],"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}]),e}();t.FontFaceObject=y},function(e,t,r){"use strict";var n=Object.create(null),a=r(48),i=a.isNodeJS,o="undefined"!==typeof navigator&&navigator.userAgent||"",s=/Trident/.test(o),l=/CriOS/.test(o);(function(){(s||l)&&(n.disableCreateObjectURL=!0)})(),function(){i&&(n.disableFontFace=!0,n.nativeImageDecoderSupport="none")}(),t.apiCompatibilityParams=Object.freeze(n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var n=r(1),a=r(198),i=16,o=100,s=4096,l=.65,c=!0,u=1e3,d=16;function h(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],s=t*a-r*n,l=r*n-t*a;return[a/s,r/l,n/l,t/s,(a*i-n*o)/l,(r*i-t*o)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var r=this._transformMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){var r=this._transformMatrix;r[0]=r[0]*e,r[1]=r[1]*e,r[2]=r[2]*t,r[3]=r[3]*t,this._originalScale(e,t)},e.transform=function(t,r,n,a,i,o){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*r,s[1]*t+s[3]*r,s[0]*n+s[2]*a,s[1]*n+s[3]*a,s[0]*i+s[2]*o+s[4],s[1]*i+s[3]*o+s[5]],e._originalTransform(t,r,n,a,i,o)},e.setTransform=function(t,r,n,a,i,o){this._transformMatrix=[t,r,n,a,i,o],e._originalSetTransform(t,r,n,a,i,o)},e.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),n=this._transformMatrix;this._transformMatrix=[n[0]*t+n[2]*r,n[1]*t+n[3]*r,n[0]*-r+n[2]*t,n[1]*-r+n[3]*t,n[4],n[5]],this._originalRotate(e)})}var f=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,r,n){var a;return void 0!==this.cache[e]?(a=this.cache[e],this.canvasFactory.reset(a,t,r),a.context.setTransform(1,0,0,1,0,0)):(a=this.canvasFactory.create(t,r),this.cache[e]=a),n&&h(a.context),a},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}();function p(e){var t,r,n,a,i=1e3,o=e.width,s=e.height,l=o+1,c=new Uint8Array(l*(s+1)),u=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),d=o+7&-8,h=e.data,f=new Uint8Array(d*s),p=0;for(t=0,a=h.length;t<a;t++){var g=128,v=h[t];while(g>0)f[p++]=v&g?0:255,g>>=1}var m=0;for(p=0,0!==f[p]&&(c[0]=1,++m),r=1;r<o;r++)f[p]!==f[p+1]&&(c[r]=f[p]?2:1,++m),p++;for(0!==f[p]&&(c[r]=2,++m),t=1;t<s;t++){p=t*d,n=t*l,f[p-d]!==f[p]&&(c[n]=f[p]?1:8,++m);var b=(f[p]?4:0)+(f[p-d]?8:0);for(r=1;r<o;r++)b=(b>>2)+(f[p+1]?4:0)+(f[p-d+1]?8:0),u[b]&&(c[n+r]=u[b],++m),p++;if(f[p-d]!==f[p]&&(c[n+r]=f[p]?2:4,++m),m>i)return null}for(p=d*(s-1),n=t*l,0!==f[p]&&(c[n]=8,++m),r=1;r<o;r++)f[p]!==f[p+1]&&(c[n+r]=f[p]?4:8,++m),p++;if(0!==f[p]&&(c[n+r]=4,++m),m>i)return null;var y=new Int32Array([0,l,-1,0,-l,0,0,0,1]),w=[];for(t=0;m&&t<=s;t++){var _=t*l,k=_+o;while(_<k&&!c[_])_++;if(_!==k){var x,S=[_%l,t],A=c[_],C=_;do{var P=y[A];do{_+=P}while(!c[_]);x=c[_],5!==x&&10!==x?(A=x,c[_]=0):(A=x&51*A>>4,c[_]&=A>>2|A<<2),S.push(_%l),S.push(_/l|0),c[_]||--m}while(C!==_);w.push(S),--t}}var T=function(e){e.save(),e.scale(1/o,-1/s),e.translate(0,-s),e.beginPath();for(var t=0,r=w.length;t<r;t++){var n=w[t];e.moveTo(n[0],n[1]);for(var a=2,i=n.length;a<i;a+=2)e.lineTo(n[a],n[a+1])}e.fill(),e.beginPath(),e.restore()};return T}var g=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.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=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),v=function(){var e=15,t=10;function r(e,t,r,n,a,i){this.ctx=e,this.current=new g,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=n,this.webGLContext=a,this.imageLayer=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new f(this.canvasFactory),e&&h(e),this._cachedGetSinglePixelWidth=null}function v(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var r,a,i,o,s,l=t.height,c=t.width,u=l%d,h=(l-u)/d,f=0===u?h:h+1,p=e.createImageData(c,d),g=0,v=t.data,m=p.data;if(t.kind===n.ImageKind.GRAYSCALE_1BPP){var b=v.byteLength,y=new Uint32Array(m.buffer,0,m.byteLength>>2),w=y.length,_=c+7>>3,k=4294967295,x=n.IsLittleEndianCached.value?4278190080:255;for(a=0;a<f;a++){for(o=a<h?d:u,r=0,i=0;i<o;i++){for(var S=b-g,A=0,C=S>_?c:8*S-7,P=-8&C,T=0,E=0;A<P;A+=8)E=v[g++],y[r++]=128&E?k:x,y[r++]=64&E?k:x,y[r++]=32&E?k:x,y[r++]=16&E?k:x,y[r++]=8&E?k:x,y[r++]=4&E?k:x,y[r++]=2&E?k:x,y[r++]=1&E?k:x;for(;A<C;A++)0===T&&(E=v[g++],T=128),y[r++]=E&T?k:x,T>>=1}while(r<w)y[r++]=0;e.putImageData(p,0,a*d)}}else if(t.kind===n.ImageKind.RGBA_32BPP){for(i=0,s=c*d*4,a=0;a<h;a++)m.set(v.subarray(g,g+s)),g+=s,e.putImageData(p,0,i),i+=d;a<f&&(s=c*u*4,m.set(v.subarray(g,g+s)),e.putImageData(p,0,i))}else{if(t.kind!==n.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(o=d,s=c*o,a=0;a<f;a++){for(a>=h&&(o=u,s=c*o),r=0,i=s;i--;)m[r++]=v[g++],m[r++]=v[g++],m[r++]=v[g++],m[r++]=255;e.putImageData(p,0,a*d)}}}}function m(e,t){for(var r=t.height,n=t.width,a=r%d,i=(r-a)/d,o=0===a?i:i+1,s=e.createImageData(n,d),l=0,c=t.data,u=s.data,h=0;h<o;h++){for(var f=h<i?d:a,p=3,g=0;g<f;g++)for(var v=0,m=0;m<n;m++){if(!v){var b=c[l++];v=128}u[p]=b&v?0:255,p+=4,v>>=1}e.putImageData(s,0,h*d)}}function b(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,a=r.length;n<a;n++){var i=r[n];void 0!==e[i]&&(t[i]=e[i])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function y(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function w(e,t,r,n){for(var a=e.length,i=3;i<a;i+=4){var o=e[i];if(0===o)e[i-3]=t,e[i-2]=r,e[i-1]=n;else if(o<255){var s=255-o;e[i-3]=e[i-3]*o+t*s>>8,e[i-2]=e[i-2]*o+r*s>>8,e[i-1]=e[i-1]*o+n*s>>8}}}function _(e,t,r){for(var n=e.length,a=1/255,i=3;i<n;i+=4){var o=r?r[e[i]]:e[i];t[i]=t[i]*o*a|0}}function k(e,t,r){for(var n=e.length,a=3;a<n;a+=4){var i=77*e[a-3]+152*e[a-2]+28*e[a-1];t[a]=r?t[a]*r[i>>8]>>8:t[a]*i>>16}}function x(e,t,r,n,a,i,o){var s,l=!!i,c=l?i[0]:0,u=l?i[1]:0,d=l?i[2]:0;s="Luminosity"===a?k:_;for(var h=1048576,f=Math.min(n,Math.ceil(h/r)),p=0;p<n;p+=f){var g=Math.min(f,n-p),v=e.getImageData(0,p,r,g),m=t.getImageData(0,p,r,g);l&&w(v.data,c,u,d),s(v.data,m.data,o),e.putImageData(m,0,p)}}function S(e,t,r,n){var a=t.canvas,i=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var o=t.backdrop||null;if(!t.transferMap&&n.isEnabled){var s=n.composeSMask({layer:r.canvas,mask:a,properties:{subtype:t.subtype,backdrop:o}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(s,t.offsetX,t.offsetY)}x(i,r,a.width,a.height,t.subtype,o,t.transferMap),e.drawImage(a,0,0)}var A=["butt","round","square"],C=["miter","round","bevel"],P={},T={};for(var E in r.prototype={beginDrawing:function(e){var t=e.transform,r=e.viewport,n=e.transparency,a=void 0!==n&&n,i=e.background,o=void 0===i?null:i,s=this.ctx.canvas.width,l=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=o||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,s,l),this.ctx.restore(),a){var c=this.cachedCanvases.getCanvas("transparent",s,l,!0);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),y(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,r.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(r,a,i,o){var s=r.argsArray,l=r.fnArray,c=a||0,u=s.length;if(u===c)return c;var d,h=u-c>t&&"function"===typeof i,f=h?Date.now()+e:0,p=0,g=this.commonObjs,v=this.objs;while(1){if(void 0!==o&&c===o.nextBreakPoint)return o.breakIt(c,i),c;if(d=l[c],d!==n.OPS.dependency)this[d].apply(this,s[c]);else{var m=!0,b=!1,y=void 0;try{for(var w,_=s[c][Symbol.iterator]();!(m=(w=_.next()).done);m=!0){var k=w.value,x=k.startsWith("g_")?g:v;if(!x.has(k))return x.get(k,i),c}}catch(S){b=!0,y=S}finally{try{m||null==_["return"]||_["return"]()}finally{if(b)throw y}}}if(c++,c===u)return c;if(h&&++p>t){if(Date.now()>f)return i(),c;p=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=A[e]},setLineJoin:function(e){this.ctx.lineJoin=C[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,r=e.length;t<r;t++){var n=e[t],a=n[0],i=n[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=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[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}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(n,t,r,!0),i=this.ctx,o=i.mozCurrentTransform;this.ctx.save();var s=a.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,b(i,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),S(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),b(e,this.ctx),this.current.resumeSMaskCtx=e;var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),S(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),b(e,this.ctx);var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,a,i){this.ctx.transform(e,t,r,n,a,i),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,a=this.current,i=a.x,o=a.y,s=0,l=0,c=e.length;s<c;s++)switch(0|e[s]){case n.OPS.rectangle:i=t[l++],o=t[l++];var u=t[l++],d=t[l++];0===u&&(u=this.getSinglePixelWidth()),0===d&&(d=this.getSinglePixelWidth());var h=i+u,f=o+d;this.ctx.moveTo(i,o),this.ctx.lineTo(h,o),this.ctx.lineTo(h,f),this.ctx.lineTo(i,f),this.ctx.lineTo(i,o),this.ctx.closePath();break;case n.OPS.moveTo:i=t[l++],o=t[l++],r.moveTo(i,o);break;case n.OPS.lineTo:i=t[l++],o=t[l++],r.lineTo(i,o);break;case n.OPS.curveTo:i=t[l+4],o=t[l+5],r.bezierCurveTo(t[l],t[l+1],t[l+2],t[l+3],i,o),l+=6;break;case n.OPS.curveTo2:r.bezierCurveTo(i,o,t[l],t[l+1],t[l+2],t[l+3]),i=t[l+2],o=t[l+3],l+=4;break;case n.OPS.curveTo3:i=t[l+2],o=t[l+3],r.bezierCurveTo(t[l],t[l+1],i,o,i,o),l+=4;break;case n.OPS.closePath:r.closePath();break}a.setCurrentPoint(i,o)},closePath:function(){this.ctx.closePath()},stroke:function(e){e="undefined"===typeof e||e;var t=this.ctx,r=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,r&&r.hasOwnProperty("type")&&"Pattern"===r.type){t.save();var a=t.mozCurrentTransform,i=n.Util.singularValueDecompose2dScale(a)[0];t.strokeStyle=r.getPattern(t,this),t.lineWidth=Math.max(this.getSinglePixelWidth()*l,this.current.lineWidth*i),t.stroke(),t.restore()}else t.lineWidth=Math.max(this.getSinglePixelWidth()*l,this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e="undefined"===typeof e||e;var t=this.ctx,r=this.current.fillColor,n=this.current.patternFill,a=!1;n&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=r.getPattern(t,this),a=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),a&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=P},eoClip:function(){this.pendingClip=T},beginText:function(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var r=0;r<e.length;r++){var n=e[r];t.setTransform.apply(t,n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var r=this.commonObjs.get(e),a=this.current;if(!r)throw new Error("Can't find font for ".concat(e));if(a.fontMatrix=r.fontMatrix?r.fontMatrix:n.FONT_IDENTITY_MATRIX,0!==a.fontMatrix[0]&&0!==a.fontMatrix[3]||(0,n.warn)("Invalid font matrix for font "+e),t<0?(t=-t,a.fontDirection=-1):a.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){var s=r.loadedName||"sans-serif",l="normal";r.black?l="900":r.bold&&(l="bold");var c=r.italic?"italic":"normal",u='"'.concat(s,'", ').concat(r.fallbackName),d=t;t<i?d=i:t>o&&(d=o),this.current.fontSizeScale=t/d,this.ctx.font="".concat(c," ").concat(l," ").concat(d,"px ").concat(u)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,a,i){this.current.textMatrix=[e,t,r,n,a,i],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r,a){var i,o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&n.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&n.TextRenderingMode.ADD_TO_PATH_FLAG),f=s.patternFill&&l.data;if((l.disableFontFace||h||f)&&(i=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||f?(o.save(),o.translate(t,r),o.beginPath(),i(o,u),a&&o.setTransform.apply(o,a),d!==n.TextRenderingMode.FILL&&d!==n.TextRenderingMode.FILL_STROKE||o.fill(),d!==n.TextRenderingMode.STROKE&&d!==n.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(d!==n.TextRenderingMode.FILL&&d!==n.TextRenderingMode.FILL_STROKE||o.fillText(e,t,r),d!==n.TextRenderingMode.STROKE&&d!==n.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,r)),h){var p=this.pendingTextPaths||(this.pendingTextPaths=[]);p.push({transform:o.mozCurrentTransform,x:t,y:r,fontSize:u,addToPath:i})}},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),t=e.context;t.scale(1.5,1),t.fillText("I",0,10);for(var r=t.getImageData(0,0,10,10).data,a=!1,i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){a=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",a)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var a=t.fontSize;if(0!==a){var i,o=this.ctx,s=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,f=e.length,p=r.vertical,g=p?1:-1,v=r.defaultVMetrics,m=a*t.fontMatrix[0],b=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(o.save(),t.patternFill){o.save();var y=t.fillColor.getPattern(o,this);i=o.mozCurrentTransform,o.restore(),o.fillStyle=y}o.transform.apply(o,t.textMatrix),o.translate(t.x,t.y+t.textRise),d>0?o.scale(h,-1):o.scale(h,1);var w=t.lineWidth,_=t.textMatrixScale;if(0===_||0===w){var k=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;k!==n.TextRenderingMode.STROKE&&k!==n.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,w=this.getSinglePixelWidth()*l)}else w/=_;1!==s&&(o.scale(s,s),w/=s),o.lineWidth=w;var x,S=0;for(x=0;x<f;++x){var A=e[x];if((0,n.isNum)(A))S+=g*A*a/1e3;else{var C,P,T,E,R,I,O,L,F=!1,M=(A.isSpace?u:0)+c,D=A.fontChar,N=A.accent,B=A.width;if(p)R=A.vmetric||v,I=A.vmetric?R[1]:.5*B,I=-I*m,O=R[2]*m,B=R?-R[0]:B,C=I/s,P=(S+O)/s;else C=S/s,P=0;if(r.remeasure&&B>0){var U=1e3*o.measureText(D).width/a*s;if(B<U&&this.isFontSubpixelAAEnabled){var j=B/U;F=!0,o.save(),o.scale(j,1),C/=j}else B!==U&&(C+=(B-U)/2e3*a/s)}(A.isInFont||r.missingFile)&&(b&&!N?o.fillText(D,C,P):(this.paintChar(D,C,P,i),N&&(T=C+N.offset.x/s,E=P-N.offset.y/s,this.paintChar(N.fontChar,T,E,i)))),L=p?B*m-M*d:B*m+M*d,S+=L,F&&o.restore()}}p?t.y-=S:t.x+=S*h,o.restore()}},showType3Text:function(e){var t,r,a,i,o=this.ctx,s=this.current,l=s.font,c=s.fontSize,u=s.fontDirection,d=l.vertical?1:-1,h=s.charSpacing,f=s.wordSpacing,p=s.textHScale*u,g=s.fontMatrix||n.FONT_IDENTITY_MATRIX,v=e.length,m=s.textRenderingMode===n.TextRenderingMode.INVISIBLE;if(!m&&0!==c){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,s.textMatrix),o.translate(s.x,s.y),o.scale(p,u),t=0;t<v;++t)if(r=e[t],(0,n.isNum)(r))i=d*r*c/1e3,this.ctx.translate(i,0),s.x+=i*p;else{var b=(r.isSpace?f:0)+h,y=l.charProcOperatorList[r.operatorListId];if(y){this.processingType3=r,this.save(),o.scale(c,c),o.transform.apply(o,g),this.executeOperatorList(y),this.restore();var w=n.Util.applyTransform([r.width,0],g);a=w[0]*c+b,o.translate(a,0),s.x+=a*p}else(0,n.warn)('Type3 character "'.concat(r.operatorListId,'" is not available.'))}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,r,n,a,i){this.ctx.rect(r,n,a-r,i-n),this.clip(),this.endPath()},getColorN_Pattern:function(e){var t,n=this;if("TilingPattern"===e[0]){var i=e[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:function(e){return new r(e,n.commonObjs,n.objs,n.canvasFactory,n.webGLContext)}};t=new a.TilingPattern(e,i,this.ctx,s,o)}else t=(0,a.getShadingPatternFromIR)(e);return t},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,r){var a=n.Util.makeCssRgb(e,t,r);this.ctx.strokeStyle=a,this.current.strokeColor=a},setFillRGBColor:function(e,t,r){var a=n.Util.makeCssRgb(e,t,r);this.ctx.fillStyle=a,this.current.fillColor=a,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var r=(0,a.getShadingPatternFromIR)(e);t.fillStyle=r.getPattern(t,this,!0);var i=t.mozCurrentTransformInverse;if(i){var o=t.canvas,s=o.width,l=o.height,c=n.Util.applyTransform([0,0],i),u=n.Util.applyTransform([0,l],i),d=n.Util.applyTransform([s,0],i),h=n.Util.applyTransform([s,l],i),f=Math.min(c[0],u[0],d[0],h[0]),p=Math.min(c[1],u[1],d[1],h[1]),g=Math.max(c[0],u[0],d[0],h[0]),v=Math.max(c[1],u[1],d[1],h[1]);this.ctx.fillRect(f,p,g-f,v-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,n.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,n.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var a=n.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),i=[0,0,t.canvas.width,t.canvas.height];a=n.Util.intersect(a,i)||[0,0,0,0];var o=Math.floor(a[0]),l=Math.floor(a[1]),c=Math.max(Math.ceil(a[2])-o,1),u=Math.max(Math.ceil(a[3])-l,1),d=1,h=1;c>s&&(d=c/s,c=s),u>s&&(h=u/s,u=s);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,c,u,!0),g=p.context;g.scale(1/d,1/h),g.translate(-o,-l),g.transform.apply(g,r),e.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:o,offsetY:l,scaleX:d,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,l),t.scale(d,h)),b(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),y(this.ctx),this.current=new g,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],a=e[3]-e[1];this.ctx.rect(e[0],e[1],n,a),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,r){var a=this.processingType3?this.commonObjs.get(e):this.objs.get(e);if(a){this.save();var i=this.ctx;if(i.scale(1/t,-1/r),i.drawImage(a,0,0,a.width,a.height,0,-r,t,r),this.imageLayer){var o=i.mozCurrentTransformInverse,s=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:s[0],top:s[1],width:t/o[0],height:r/o[3]})}this.restore()}else(0,n.warn)("Dependent image isn't ready yet")},paintImageMaskXObject:function(e){var t=this.ctx,r=e.width,n=e.height,a=this.current.fillColor,i=this.current.patternFill,o=this.processingType3;if(c&&o&&void 0===o.compiled&&(o.compiled=r<=u&&n<=u?p({data:e.data,width:r,height:n}):null),o&&o.compiled)o.compiled(t);else{var s=this.cachedCanvases.getCanvas("maskCanvas",r,n),l=s.context;l.save(),m(l,e),l.globalCompositeOperation="source-in",l.fillStyle=i?a.getPattern(l,this):a,l.fillRect(0,0,r,n),l.restore(),this.paintInlineImageXObject(s.canvas)}},paintImageMaskXObjectRepeat:function(e,t,r,n){var a=e.width,i=e.height,o=this.current.fillColor,s=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",a,i),c=l.context;c.save(),m(c,e),c.globalCompositeOperation="source-in",c.fillStyle=s?o.getPattern(c,this):o,c.fillRect(0,0,a,i),c.restore();for(var u=this.ctx,d=0,h=n.length;d<h;d+=2)u.save(),u.transform(t,0,0,r,n[d],n[d+1]),u.scale(1,-1),u.drawImage(l.canvas,0,0,a,i,0,-1,1,1),u.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,r=this.current.fillColor,n=this.current.patternFill,a=0,i=e.length;a<i;a++){var o=e[a],s=o.width,l=o.height,c=this.cachedCanvases.getCanvas("maskCanvas",s,l),u=c.context;u.save(),m(u,o),u.globalCompositeOperation="source-in",u.fillStyle=n?r.getPattern(u,this):r,u.fillRect(0,0,s,l),u.restore(),t.save(),t.transform.apply(t,o.transform),t.scale(1,-1),t.drawImage(c.canvas,0,0,s,l,0,-1,1,1),t.restore()}},paintImageXObject:function(e){var t=this.processingType3?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,r,a){var i=this.processingType3?this.commonObjs.get(e):this.objs.get(e);if(i){for(var o=i.width,s=i.height,l=[],c=0,u=a.length;c<u;c+=2)l.push({transform:[t,0,0,r,a[c],a[c+1]],x:0,y:0,w:o,h:s});this.paintInlineImageXObjectGroup(i,l)}else(0,n.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(e){var t=e.width,r=e.height,n=this.ctx;this.save(),n.scale(1/t,-1/r);var a,i,o=n.mozCurrentTransformInverse,s=o[0],l=o[1],c=Math.max(Math.sqrt(s*s+l*l),1),u=o[2],d=o[3],h=Math.max(Math.sqrt(u*u+d*d),1);if("function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)a=e;else{i=this.cachedCanvases.getCanvas("inlineImage",t,r);var f=i.context;v(f,e),a=i.canvas}var p=t,g=r,m="prescale1";while(c>2&&p>1||h>2&&g>1){var b=p,y=g;c>2&&p>1&&(b=Math.ceil(p/2),c/=p/b),h>2&&g>1&&(y=Math.ceil(g/2),h/=g/y),i=this.cachedCanvases.getCanvas(m,b,y),f=i.context,f.clearRect(0,0,b,y),f.drawImage(a,0,0,p,g,0,0,b,y),a=i.canvas,p=b,g=y,m="prescale1"===m?"prescale2":"prescale1"}if(n.drawImage(a,0,0,p,g,0,-r,t,r),this.imageLayer){var w=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:w[0],top:w[1],width:t/o[0],height:r/o[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,t){var r=this.ctx,n=e.width,a=e.height,i=this.cachedCanvases.getCanvas("inlineImage",n,a),o=i.context;v(o,e);for(var s=0,l=t.length;s<l;s++){var c=t[s];if(r.save(),r.transform.apply(r,c.transform),r.scale(1,-1),r.drawImage(i.canvas,c.x,c.y,c.w,c.h,0,-1,1,1),this.imageLayer){var u=this.getCanvasPosition(c.x,c.y);this.imageLayer.appendImage({imgData:e,left:u[0],top:u[1],width:n,height:a})}r.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,n.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===T?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var r=this.ctx.mozCurrentTransform;return[r[0]*e+r[2]*t+r[4],r[1]*e+r[3]*t+r[5]]}},n.OPS)r.prototype[n.OPS[E]]=r.prototype[E];return r}();t.CanvasGraphics=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=s,t.TilingPattern=void 0;var n=r(1),a={};function i(e,t){if(t&&"undefined"!==typeof Path2D){var r=t[2]-t[0],n=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],r,n),e.clip(a)}}a.RadialAxial={fromIR:function(e){var t=e[1],r=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7];return{type:"Pattern",getPattern:function(e){var c;i(e,r),"axial"===t?c=e.createLinearGradient(a[0],a[1],o[0],o[1]):"radial"===t&&(c=e.createRadialGradient(a[0],a[1],s,o[0],o[1],l));for(var u=0,d=n.length;u<d;++u){var h=n[u];c.addColorStop(h[0],h[1])}return c}}}};var o=function(){function e(e,t,r,n,a,i,o,s){var l,c=t.coords,u=t.colors,d=e.data,h=4*e.width;c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=i,i=o,o=l),c[n+1]>c[a+1]&&(l=n,n=a,a=l,l=o,o=s,s=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=i,i=o,o=l);var f=(c[r]+t.offsetX)*t.scaleX,p=(c[r+1]+t.offsetY)*t.scaleY,g=(c[n]+t.offsetX)*t.scaleX,v=(c[n+1]+t.offsetY)*t.scaleY,m=(c[a]+t.offsetX)*t.scaleX,b=(c[a+1]+t.offsetY)*t.scaleY;if(!(p>=b))for(var y,w,_,k,x,S,A,C,P=u[i],T=u[i+1],E=u[i+2],R=u[o],I=u[o+1],O=u[o+2],L=u[s],F=u[s+1],M=u[s+2],D=Math.round(p),N=Math.round(b),B=D;B<=N;B++){if(B<v){var U=void 0;U=B<p?0:p===v?1:(p-B)/(p-v),y=f-(f-g)*U,w=P-(P-R)*U,_=T-(T-I)*U,k=E-(E-O)*U}else{var j=void 0;j=B>b?1:v===b?0:(v-B)/(v-b),y=g-(g-m)*j,w=R-(R-L)*j,_=I-(I-F)*j,k=O-(O-M)*j}var q=void 0;q=B<p?0:B>b?1:(p-B)/(p-b),x=f-(f-m)*q,S=P-(P-L)*q,A=T-(T-F)*q,C=E-(E-M)*q;for(var z=Math.round(Math.min(y,x)),V=Math.round(Math.max(y,x)),W=h*B+4*z,H=z;H<=V;H++){var G=(y-H)/(y-x);G<0?G=0:G>1&&(G=1),d[W++]=w-(w-S)*G|0,d[W++]=_-(_-A)*G|0,d[W++]=k-(k-C)*G|0,d[W++]=255}}}function t(t,r,n){var a,i,o=r.coords,s=r.colors;switch(r.type){case"lattice":var l=r.verticesPerRow,c=Math.floor(o.length/l)-1,u=l-1;for(a=0;a<c;a++)for(var d=a*l,h=0;h<u;h++,d++)e(t,n,o[d],o[d+1],o[d+l],s[d],s[d+1],s[d+l]),e(t,n,o[d+l+1],o[d+1],o[d+l],s[d+l+1],s[d+1],s[d+l]);break;case"triangles":for(a=0,i=o.length;a<i;a+=3)e(t,n,o[a],o[a+1],o[a+2],s[a],s[a+1],s[a+2]);break;default:throw new Error("illegal figure")}}function r(e,r,n,a,i,o,s,l){var c,u,d,h,f=1.1,p=3e3,g=2,v=Math.floor(e[0]),m=Math.floor(e[1]),b=Math.ceil(e[2])-v,y=Math.ceil(e[3])-m,w=Math.min(Math.ceil(Math.abs(b*r[0]*f)),p),_=Math.min(Math.ceil(Math.abs(y*r[1]*f)),p),k=b/w,x=y/_,S={coords:n,colors:a,offsetX:-v,offsetY:-m,scaleX:1/k,scaleY:1/x},A=w+2*g,C=_+2*g;if(l.isEnabled)c=l.drawFigures({width:w,height:_,backgroundColor:o,figures:i,context:S}),u=s.getCanvas("mesh",A,C,!1),u.context.drawImage(c,g,g),c=u.canvas;else{u=s.getCanvas("mesh",A,C,!1);var P=u.context,T=P.createImageData(w,_);if(o){var E=T.data;for(d=0,h=E.length;d<h;d+=4)E[d]=o[0],E[d+1]=o[1],E[d+2]=o[2],E[d+3]=255}for(d=0;d<i.length;d++)t(T,i[d],S);P.putImageData(T,g,g),c=u.canvas}return{canvas:c,offsetX:v-g*k,offsetY:m-g*x,scaleX:k,scaleY:x}}return r}();function s(e){var t=a[e[0]];if(!t)throw new Error("Unknown IR type: ".concat(e[0]));return t.fromIR(e)}a.Mesh={fromIR:function(e){var t=e[2],r=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return{type:"Pattern",getPattern:function(e,d,h){var f;if(i(e,c),h)f=n.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(f=n.Util.singularValueDecompose2dScale(d.baseTransform),l){var p=n.Util.singularValueDecompose2dScale(l);f=[f[0]*p[0],f[1]*p[1]]}var g=o(s,f,t,r,a,h?null:u,d.cachedCanvases,d.webGLContext);return h||(e.setTransform.apply(e,d.baseTransform),l&&e.transform.apply(e,l)),e.translate(g.offsetX,g.offsetY),e.scale(g.scaleX,g.scaleY),e.createPattern(g.canvas,"no-repeat")}}}},a.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var l=function(){var e={COLORED:1,UNCOLORED:2},t=3e3;function r(e,t,r,n,a){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=n,this.baseTransform=a,this.type="Pattern",this.ctx=r}return r.prototype={createPatternCanvas:function(e){var t=this.operatorList,r=this.bbox,a=this.xstep,i=this.ystep,o=this.paintType,s=this.tilingType,l=this.color,c=this.canvasGraphicsFactory;(0,n.info)("TilingType: "+s);var u=r[0],d=r[1],h=r[2],f=r[3],p=n.Util.singularValueDecompose2dScale(this.matrix),g=n.Util.singularValueDecompose2dScale(this.baseTransform),v=[p[0]*g[0],p[1]*g[1]],m=this.getSizeAndScale(a,this.ctx.canvas.width,v[0]),b=this.getSizeAndScale(i,this.ctx.canvas.height,v[1]),y=e.cachedCanvases.getCanvas("pattern",m.size,b.size,!0),w=y.context,_=c.createCanvasGraphics(w);return _.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(_,o,l),_.transform(m.scale,0,0,b.scale,0,0),_.transform(1,0,0,1,-u,-d),this.clipBbox(_,r,u,d,h,f),_.executeOperatorList(t),this.ctx.transform(1,0,0,1,u,d),this.ctx.scale(1/m.scale,1/b.scale),y.canvas},getSizeAndScale:function(e,r,n){e=Math.abs(e);var a=Math.max(t,r),i=Math.ceil(e*n);return i>=a?i=a:n=i/e,{scale:n,size:i}},clipBbox:function(e,t,r,n,a,i){if(Array.isArray(t)&&4===t.length){var o=a-r,s=i-n;e.ctx.rect(r,n,o,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(t,r,a){var i=t.ctx,o=t.current;switch(r){case e.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,o.fillColor=s.fillStyle,o.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var l=n.Util.makeCssRgb(a[0],a[1],a[2]);i.fillStyle=l,i.strokeStyle=l,o.fillColor=l,o.strokeColor=l;break;default:throw new n.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(e,t){e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},r}();t.TilingPattern=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=i(r(191)),a=r(1);function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).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,l,"next",e)}function l(e){o(i,n,a,s,l,"throw",e)}s(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var 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 d(e){return d="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},d(e)}var h={UNKNOWN:0,DATA:1,ERROR:2},f={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function p(e){if("object"!==d(e)||null===e)return e;switch(e.name){case"AbortException":return new a.AbortException(e.message);case"MissingPDFException":return new a.MissingPDFException(e.message);case"UnexpectedResponseException":return new a.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new a.UnknownErrorException(e.message,e.details);default:return new a.UnknownErrorException(e.message,e.toString())}}var g=function(){function e(t,r,n){var a=this;l(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===h.DATA)i.resolve(t.data);else{if(t.callback!==h.ERROR)throw new Error("Unexpected callback case");i.reject(p(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,l=t.sourceName;new Promise((function(e){e(o(t.data))})).then((function(e){n.postMessage({sourceName:s,targetName:l,callback:h.DATA,callbackId:t.callbackId,data:e})}),(function(e){n.postMessage({sourceName:s,targetName:l,callback:h.ERROR,callbackId:t.callbackId,reason:p(e)})}))}else t.streamId?a._createStreamSink(t):o(t.data)}},n.addEventListener("message",this._onComObjOnMessage)}return u(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,i=(0,a.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(o){i.reject(o)}return i.promise}},{key:"sendWithStream",value:function(e,t,r,n){var i=this,o=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:function(r){var c=(0,a.createPromiseCapability)();return i.streamControllers[o]={controller:r,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:s,targetName:l,action:e,streamId:o,data:t,desiredSize:r.desiredSize},n),c.promise},pull:function(e){var t=(0,a.createPromiseCapability)();return i.streamControllers[o].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:f.PULL,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,a.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,a.createPromiseCapability)();return i.streamControllers[o].cancelCall=t,i.streamControllers[o].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:f.CANCEL,streamId:o,reason:p(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=this,r=this.actionHandler[e.action],n=e.streamId,i=this.sourceName,o=e.sourceName,s=this.comObj,l={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 l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:i,targetName:o,stream:f.ENQUEUE,streamId:n,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:o,stream:f.CLOSE,streamId:n}),delete t.streamSinks[n])},error:function(e){(0,a.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:o,stream:f.ERROR,streamId:n,reason:p(e)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[n]=l,new Promise((function(t){t(r(e.data,l))})).then((function(){s.postMessage({sourceName:i,targetName:o,stream:f.START_COMPLETE,streamId:n,success:!0})}),(function(e){s.postMessage({sourceName:i,targetName:o,stream:f.START_COMPLETE,streamId:n,reason:p(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,i=this.comObj;switch(e.stream){case f.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(p(e.reason));break;case f.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(p(e.reason));break;case f.PULL:if(!this.streamSinks[t]){i.postMessage({sourceName:r,targetName:n,stream:f.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var o=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(o&&o())})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:f.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:n,stream:f.PULL_COMPLETE,streamId:t,reason:p(e)})}));break;case f.ENQUEUE:if((0,a.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case f.CLOSE:if((0,a.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 f.ERROR:(0,a.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(p(e.reason)),this._deleteStreamController(t);break;case f.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(p(e.reason)),this._deleteStreamController(t);break;case f.CANCEL:if(!this.streamSinks[t])break;var s=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(s&&s(p(e.reason)))})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:f.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:n,stream:f.CANCEL_COMPLETE,streamId:t,reason:p(e)})})),this.streamSinks[t].sinkCapability.reject(p(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=s(n["default"].mark((function e(t){return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(1),a=r(202);function i(e,t){return l(e)||s(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}function l(e){if(Array.isArray(e))return e}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 d(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}var h=function(){function e(t){c(this,e),(0,n.assert)("string"===typeof t,"Metadata: input is not a string"),t=this._repair(t);var r=new a.SimpleXMLParser,i=r.parseFromString(t);this._metadataMap=new Map,i&&this._parse(i)}return d(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),n="",a=0,i=r.length;a<i;a+=2){var o=256*r.charCodeAt(a)+r.charCodeAt(a+1);n+=o>=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+n}))}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase()){t=t.firstChild;while(t&&"rdf:rdf"!==t.nodeName.toLowerCase())t=t.nextSibling}var r=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===r&&t.hasChildNodes())for(var n=t.childNodes,a=0,i=n.length;a<i;a++){var o=n[a];if("rdf:description"===o.nodeName.toLowerCase())for(var s=0,l=o.childNodes.length;s<l;s++)if("#text"!==o.childNodes[s].nodeName.toLowerCase()){var c=o.childNodes[s],u=c.nodeName.toLowerCase();this._metadataMap.set(u,c.textContent.trim())}}}},{key:"get",value:function(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}},{key:"getAll",value:function(){var e=Object.create(null),t=!0,r=!1,n=void 0;try{for(var a,o=this._metadataMap[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var s=i(a.value,2),l=s[0],c=s[1];e[l]=c}}catch(u){r=!0,n=u}finally{try{t||null==o["return"]||o["return"]()}finally{if(r)throw n}}return e}},{key:"has",value:function(e){return this._metadataMap.has(e)}}]),e}();t.Metadata=h},function(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){return s(e)||o(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}function s(e){if(Array.isArray(e))return e}function l(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t,r){return u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=d(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 d(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=h(e),null===e)break;return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}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&&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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;var b={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function y(e,t){var r=e[t];return" "===r||"\n"===r||"\r"===r||"\t"===r}function w(e){for(var t=0,r=e.length;t<r;t++)if(!y(e,t))return!1;return!0}var _=function(){function e(){g(this,e)}return m(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,(function(e,r){if("#x"===r.substring(0,2))return String.fromCharCode(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCharCode(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],n=t;function a(){while(n<e.length&&y(e,n))++n}while(n<e.length&&!y(e,n)&&">"!==e[n]&&"/"!==e[n])++n;var i=e.substring(t,n);a();while(n<e.length&&">"!==e[n]&&"/"!==e[n]&&"?"!==e[n]){a();var o="",s="";while(n<e.length&&!y(e,n)&&"="!==e[n])o+=e[n],++n;if(a(),"="!==e[n])return null;++n,a();var l=e[n];if('"'!==l&&"'"!==l)return null;var c=e.indexOf(l,++n);if(c<0)return null;s=e.substring(n,c),r.push({name:o,value:this._resolveEntities(s)}),n=c+1,a()}return{name:i,attributes:r,parsed:n-t}}},{key:"_parseProcessingInstruction",value:function(e,t){var r=t;function n(){while(r<e.length&&y(e,r))++r}while(r<e.length&&!y(e,r)&&">"!==e[r]&&"/"!==e[r])++r;var a=e.substring(t,r);n();var i=r;while(r<e.length&&("?"!==e[r]||">"!==e[r+1]))++r;var o=e.substring(i,r);return{name:a,value:o,parsed:r-t}}},{key:"parseXml",value:function(e){var t=0;while(t<e.length){var r=e[t],n=t;if("<"===r){++n;var a=e[n],i=void 0;switch(a){case"/":if(++n,i=e.indexOf(">",n),i<0)return void this.onError(b.UnterminatedElement);this.onEndElement(e.substring(n,i)),n=i+1;break;case"?":++n;var o=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+o.parsed,n+o.parsed+2))return void this.onError(b.UnterminatedXmlDeclaration);this.onPi(o.name,o.value),n+=o.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if(i=e.indexOf("--\x3e",n+3),i<0)return void this.onError(b.UnterminatedComment);this.onComment(e.substring(n+3,i)),n=i+3}else if("[CDATA["===e.substring(n+1,n+8)){if(i=e.indexOf("]]>",n+8),i<0)return void this.onError(b.UnterminatedCdat);this.onCdata(e.substring(n+8,i)),n=i+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(b.MalformedElement);var s=e.indexOf("[",n+8),l=!1;if(i=e.indexOf(">",n+8),i<0)return void this.onError(b.UnterminatedDoctypeDeclaration);if(s>0&&i>s){if(i=e.indexOf("]>",n+8),i<0)return void this.onError(b.UnterminatedDoctypeDeclaration);l=!0}var c=e.substring(n+8,i+(l?1:0));this.onDoctype(c),n=i+(l?2:1)}break;default:var u=this._parseContent(e,n);if(null===u)return void this.onError(b.MalformedElement);var d=!1;if("/>"===e.substring(n+u.parsed,n+u.parsed+2))d=!0;else if(">"!==e.substring(n+u.parsed,n+u.parsed+1))return void this.onError(b.UnterminatedElement);this.onBeginElement(u.name,u.attributes,d),n+=u.parsed+(d?2:1);break}}else{while(n<e.length&&"<"!==e[n])n++;var h=e.substring(t,n);this.onText(this._resolveEntities(h))}t=n}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}(),k=function(){function e(t,r){g(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return m(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}}]),e}(),x=function(e){function t(){var e;return g(this,t),e=l(this,h(t).call(this)),e._currentFragment=null,e._stack=null,e._errorCode=b.NoError,e}return f(t,e),m(t,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=b.NoError,this.parseXml(e),this._errorCode===b.NoError){var t=a(this._currentFragment,1),r=t[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return u(h(t.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!w(e)){var t=new k("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new k("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){var n=new k(e);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var r=0,n=t.childNodes.length;r<n;r++)t.childNodes[r].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),t}(_);t.SimpleXMLParser=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var n=i(r(191)),a=r(1);function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).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,l,"next",e)}function l(e){o(i,n,a,s,l,"throw",e)}s(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var 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 d=function(){function e(t,r){var n=this;l(this,e),(0,a.assert)(r),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var i=t.initialData;if(i&&i.length>0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){n._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){n._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){n._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){n._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return u(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,a.assert)(r)}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,a.assert)(!this._fullRequestReader);var e=this._queuedChunks;return this._queuedChunks=null,new h(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new f(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeReaders.slice(0);t.forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=d;var h=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l(this,e),this._stream=t,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var a=!0,i=!1,o=void 0;try{for(var s,c=this._queuedChunks[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){var u=s.value;this._loaded+=u.byteLength}}catch(d){i=!0,o=d}finally{try{a||null==c["return"]||c["return"]()}finally{if(i)throw o}}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return u(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){var e=s(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),f=function(){function e(t,r,n){l(this,e),this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return u(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();t.resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){var e=s(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var n=r(1);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(t){var r=t.enable,n=void 0!==r&&r;a(this,e),this._enabled=!0===n}return o(e,[{key:"composeSMask",value:function(e){var t=e.layer,r=e.mask,n=e.properties;return l.composeSMask(t,r,n)}},{key:"drawFigures",value:function(e){var t=e.width,r=e.height,n=e.backgroundColor,a=e.figures,i=e.context;return l.drawFigures(t,r,n,a,i)}},{key:"clear",value:function(){l.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=l.tryInitGL()),(0,n.shadow)(this,"isEnabled",e)}}]),e}();t.WebGLContext=s;var l=function(){function e(e,t,r){var n=e.createShader(r);e.shaderSource(n,t),e.compileShader(n);var a=e.getShaderParameter(n,e.COMPILE_STATUS);if(!a){var i=e.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+i)}return n}function t(t,r){return e(t,r,t.VERTEX_SHADER)}function r(t,r){return e(t,r,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),n=0,a=t.length;n<a;++n)e.attachShader(r,t[n]);e.linkProgram(r);var i=e.getProgramParameter(r,e.LINK_STATUS);if(!i){var o=e.getProgramInfoLog(r);throw new Error("Error during program linking: "+o)}return r}function a(e,t,r){e.activeTexture(r);var n=e.createTexture();return e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),n}var i,o;function s(){i||(o=document.createElement("canvas"),i=o.getContext("webgl",{premultipliedalpha:!1}))}var l=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",c=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",u=null;function d(){var e,a;s(),e=o,o=null,a=i,i=null;var d=t(a,l),h=r(a,c),f=n(a,[d,h]);a.useProgram(f);var p={};p.gl=a,p.canvas=e,p.resolutionLocation=a.getUniformLocation(f,"u_resolution"),p.positionLocation=a.getAttribLocation(f,"a_position"),p.backdropLocation=a.getUniformLocation(f,"u_backdrop"),p.subtypeLocation=a.getUniformLocation(f,"u_subtype");var g=a.getAttribLocation(f,"a_texCoord"),v=a.getUniformLocation(f,"u_image"),m=a.getUniformLocation(f,"u_mask"),b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),a.STATIC_DRAW),a.enableVertexAttribArray(g),a.vertexAttribPointer(g,2,a.FLOAT,!1,0,0),a.uniform1i(v,0),a.uniform1i(m,1),u=p}function h(e,t,r){var n=e.width,i=e.height;u||d();var o=u,s=o.canvas,l=o.gl;s.width=n,s.height=i,l.viewport(0,0,l.drawingBufferWidth,l.drawingBufferHeight),l.uniform2f(o.resolutionLocation,n,i),r.backdrop?l.uniform4f(o.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1):l.uniform4f(o.resolutionLocation,0,0,0,0),l.uniform1i(o.subtypeLocation,"Luminosity"===r.subtype?1:0);var c=a(l,e,l.TEXTURE0),h=a(l,t,l.TEXTURE1),f=l.createBuffer();return l.bindBuffer(l.ARRAY_BUFFER,f),l.bufferData(l.ARRAY_BUFFER,new Float32Array([0,0,n,0,0,i,0,i,n,0,n,i]),l.STATIC_DRAW),l.enableVertexAttribArray(o.positionLocation),l.vertexAttribPointer(o.positionLocation,2,l.FLOAT,!1,0,0),l.clearColor(0,0,0,0),l.enable(l.BLEND),l.blendFunc(l.ONE,l.ONE_MINUS_SRC_ALPHA),l.clear(l.COLOR_BUFFER_BIT),l.drawArrays(l.TRIANGLES,0,6),l.flush(),l.deleteTexture(c),l.deleteTexture(h),l.deleteBuffer(f),s}var f=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",p=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",g=null;function v(){var e,a;s(),e=o,o=null,a=i,i=null;var l=t(a,f),c=r(a,p),u=n(a,[l,c]);a.useProgram(u);var d={};d.gl=a,d.canvas=e,d.resolutionLocation=a.getUniformLocation(u,"u_resolution"),d.scaleLocation=a.getUniformLocation(u,"u_scale"),d.offsetLocation=a.getUniformLocation(u,"u_offset"),d.positionLocation=a.getAttribLocation(u,"a_position"),d.colorLocation=a.getAttribLocation(u,"a_color"),g=d}function m(e,t,r,n,a){g||v();var i=g,o=i.canvas,s=i.gl;o.width=e,o.height=t,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(i.resolutionLocation,e,t);var l,c,u,d=0;for(l=0,c=n.length;l<c;l++)switch(n[l].type){case"lattice":u=n[l].coords.length/n[l].verticesPerRow|0,d+=(u-1)*(n[l].verticesPerRow-1)*6;break;case"triangles":d+=n[l].coords.length;break}var h=new Float32Array(2*d),f=new Uint8Array(3*d),p=a.coords,m=a.colors,b=0,y=0;for(l=0,c=n.length;l<c;l++){var w=n[l],_=w.coords,k=w.colors;switch(w.type){case"lattice":var x=w.verticesPerRow;u=_.length/x|0;for(var S=1;S<u;S++)for(var A=S*x+1,C=1;C<x;C++,A++)h[b]=p[_[A-x-1]],h[b+1]=p[_[A-x-1]+1],h[b+2]=p[_[A-x]],h[b+3]=p[_[A-x]+1],h[b+4]=p[_[A-1]],h[b+5]=p[_[A-1]+1],f[y]=m[k[A-x-1]],f[y+1]=m[k[A-x-1]+1],f[y+2]=m[k[A-x-1]+2],f[y+3]=m[k[A-x]],f[y+4]=m[k[A-x]+1],f[y+5]=m[k[A-x]+2],f[y+6]=m[k[A-1]],f[y+7]=m[k[A-1]+1],f[y+8]=m[k[A-1]+2],h[b+6]=h[b+2],h[b+7]=h[b+3],h[b+8]=h[b+4],h[b+9]=h[b+5],h[b+10]=p[_[A]],h[b+11]=p[_[A]+1],f[y+9]=f[y+3],f[y+10]=f[y+4],f[y+11]=f[y+5],f[y+12]=f[y+6],f[y+13]=f[y+7],f[y+14]=f[y+8],f[y+15]=m[k[A]],f[y+16]=m[k[A]+1],f[y+17]=m[k[A]+2],b+=12,y+=18;break;case"triangles":for(var P=0,T=_.length;P<T;P++)h[b]=p[_[P]],h[b+1]=p[_[P]+1],f[y]=m[k[P]],f[y+1]=m[k[P]+1],f[y+2]=m[k[P]+2],b+=2,y+=3;break}}r?s.clearColor(r[0]/255,r[1]/255,r[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var E=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,E),s.bufferData(s.ARRAY_BUFFER,h,s.STATIC_DRAW),s.enableVertexAttribArray(i.positionLocation),s.vertexAttribPointer(i.positionLocation,2,s.FLOAT,!1,0,0);var R=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,R),s.bufferData(s.ARRAY_BUFFER,f,s.STATIC_DRAW),s.enableVertexAttribArray(i.colorLocation),s.vertexAttribPointer(i.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(i.scaleLocation,a.scaleX,a.scaleY),s.uniform2f(i.offsetLocation,a.offsetX,a.offsetY),s.drawArrays(s.TRIANGLES,0,d),s.flush(),s.deleteBuffer(E),s.deleteBuffer(R),o}return{tryInitGL:function(){try{return s(),!!i}catch(e){}return!1},composeSMask:h,drawFigures:m,cleanup:function(){u&&u.canvas&&(u.canvas.width=0,u.canvas.height=0),g&&g.canvas&&(g.canvas.width=0,g.canvas.height=0),u=null,g=null}}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var n=r(1),a=function(){var e=1e5,t=/\S/;function r(e){return!t.test(e)}function a(e,t,a){var i=document.createElement("span"),o={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(i),r(t.str))return o.isWhitespace=!0,void e._textDivProperties.set(i,o);var s=n.Util.transform(e._viewport.transform,t.transform),l=Math.atan2(s[1],s[0]),c=a[t.fontName];c.vertical&&(l+=Math.PI/2);var u,d,h=Math.sqrt(s[2]*s[2]+s[3]*s[3]),f=h;if(c.ascent?f=c.ascent*f:c.descent&&(f=(1+c.descent)*f),0===l?(u=s[4],d=s[5]-f):(u=s[4]+f*Math.sin(l),d=s[5]-f*Math.cos(l)),i.style.left="".concat(u,"px"),i.style.top="".concat(d,"px"),i.style.fontSize="".concat(h,"px"),i.style.fontFamily=c.fontFamily,i.textContent=t.str,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==l&&(o.angle=l*(180/Math.PI)),t.str.length>1&&(c.vertical?o.canvasWidth=t.height*e._viewport.scale:o.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(i,o),e._textContentStream&&e._layoutText(i),e._enhanceTextSelection){var p=1,g=0;0!==l&&(p=Math.cos(l),g=Math.sin(l));var v,m,b=(c.vertical?t.height:t.width)*e._viewport.scale,y=h;0!==l?(v=[p,g,-g,p,u,d],m=n.Util.getAxialAlignedBoundingBox([0,0,b,y],v)):m=[u,d,u+b,d+y],e._bounds.push({left:m[0],top:m[1],right:m[2],bottom:m[3],div:i,size:[b,y],m:v})}}function i(t){if(!t._canceled){var r=t._textDivs,n=t._capability,a=r.length;if(a>e)return t._renderingDone=!0,void n.resolve();if(!t._textContentStream)for(var i=0;i<a;i++)t._layoutText(r[i]);t._renderingDone=!0,n.resolve()}}function o(e){for(var t=e._bounds,r=e._viewport,a=s(r.width,r.height,t),i=0;i<a.length;i++){var o=t[i].div,l=e._textDivProperties.get(o);if(0!==l.angle){var c=a[i],u=t[i],d=u.m,h=d[0],f=d[1],p=[[0,0],[0,u.size[1]],[u.size[0],0],u.size],g=new Float64Array(64);p.forEach((function(e,t){var r=n.Util.applyTransform(e,d);g[t+0]=h&&(c.left-r[0])/h,g[t+4]=f&&(c.top-r[1])/f,g[t+8]=h&&(c.right-r[0])/h,g[t+12]=f&&(c.bottom-r[1])/f,g[t+16]=f&&(c.left-r[0])/-f,g[t+20]=h&&(c.top-r[1])/h,g[t+24]=f&&(c.right-r[0])/-f,g[t+28]=h&&(c.bottom-r[1])/h,g[t+32]=h&&(c.left-r[0])/-h,g[t+36]=f&&(c.top-r[1])/-f,g[t+40]=h&&(c.right-r[0])/-h,g[t+44]=f&&(c.bottom-r[1])/-f,g[t+48]=f&&(c.left-r[0])/f,g[t+52]=h&&(c.top-r[1])/-h,g[t+56]=f&&(c.right-r[0])/f,g[t+60]=h&&(c.bottom-r[1])/-h}));var v=function(e,t,r){for(var n=0,a=0;a<r;a++){var i=e[t++];i>0&&(n=n?Math.min(i,n):i)}return n},m=1+Math.min(Math.abs(h),Math.abs(f));l.paddingLeft=v(g,32,16)/m,l.paddingTop=v(g,48,16)/m,l.paddingRight=v(g,0,16)/m,l.paddingBottom=v(g,16,16)/m,e._textDivProperties.set(o,l)}else l.paddingLeft=t[i].left-a[i].left,l.paddingTop=t[i].top-a[i].top,l.paddingRight=a[i].right-t[i].right,l.paddingBottom=a[i].bottom-t[i].bottom,e._textDivProperties.set(o,l)}}function s(e,t,r){var n=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));l(e,n);var a=new Array(r.length);return n.forEach((function(e){var t=e.index;a[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),r.map((function(t,r){var i=a[r],o=n[r];o.x1=t.top,o.y1=e-i.right,o.x2=t.bottom,o.y2=e-i.left,o.index=r,o.x1New=void 0,o.x2New=void 0})),l(t,n),n.forEach((function(e){var t=e.index;a[t].top=e.x1New,a[t].bottom=e.x2New})),a}function l(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];t.forEach((function(e){var t=0;while(t<n.length&&n[t].end<=e.y1)t++;var r,a,i=n.length-1;while(i>=0&&n[i].start>=e.y2)i--;var o,s,l=-1/0;for(o=t;o<=i;o++){var c;r=n[o],a=r.boundary,c=a.x2>e.x1?a.index>e.index?a.x1New:e.x1:void 0===a.x2New?(a.x2+e.x1)/2:a.x2New,c>l&&(l=c)}for(e.x1New=l,o=t;o<=i;o++)r=n[o],a=r.boundary,void 0===a.x2New?a.x2>e.x1?a.index>e.index&&(a.x2New=a.x2):a.x2New=l:a.x2New>l&&(a.x2New=Math.max(l,a.x2));var u=[],d=null;for(o=t;o<=i;o++){r=n[o],a=r.boundary;var h=a.x2>e.x2?a:e;d===h?u[u.length-1].end=r.end:(u.push({start:r.start,end:r.end,boundary:h}),d=h)}for(n[t].start<e.y1&&(u[0].start=e.y1,u.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[i].end&&(u[u.length-1].end=e.y2,u.push({start:e.y2,end:n[i].end,boundary:n[i].boundary})),o=t;o<=i;o++)if(r=n[o],a=r.boundary,void 0===a.x2New){var f=!1;for(s=t-1;!f&&s>=0&&n[s].start>=a.y1;s--)f=n[s].boundary===a;for(s=i+1;!f&&s<n.length&&n[s].end<=a.y2;s++)f=n[s].boundary===a;for(s=0;!f&&s<u.length;s++)f=u[s].boundary===a;f||(a.x2New=l)}Array.prototype.splice.apply(n,[t,i-t+1].concat(u))})),n.forEach((function(t){var r=t.boundary;void 0===r.x2New&&(r.x2New=Math.max(e,r.x2))}))}function c(e){var t=this,r=e.textContent,a=e.textContentStream,i=e.container,o=e.viewport,s=e.textDivs,l=e.textContentItemsStr,c=e.enhanceTextSelection;this._textContent=r,this._textContentStream=a,this._container=i,this._viewport=o,this._textDivs=s||[],this._textContentItemsStr=l||[],this._enhanceTextSelection=!!c,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise["finally"]((function(){t._layoutTextCtx&&(t._layoutTextCtx.canvas.width=0,t._layoutTextCtx.canvas.height=0,t._layoutTextCtx=null)}))["catch"]((function(){}))}function u(e){var t=new c({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}return c.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(e,t){for(var r=0,n=e.length;r<n;r++)this._textContentItemsStr.push(e[r].str),a(this,e[r],t)},_layoutText:function(e){var t=this._textDivProperties.get(e);if(!t.isWhitespace){var r="";if(0!==t.canvasWidth){var n=e.style,a=n.fontSize,i=n.fontFamily;a===this._layoutTextLastFontSize&&i===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(a," ").concat(i),this._layoutTextLastFontSize=a,this._layoutTextLastFontFamily=i);var o=this._layoutTextCtx.measureText(e.textContent),s=o.width;s>0&&(t.scale=t.canvasWidth/s,r="scaleX(".concat(t.scale,")"))}0!==t.angle&&(r="rotate(".concat(t.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,r=(0,n.createPromiseCapability)(),a=Object.create(null),o=document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,l=this._textContent.styles;this._processItems(s,l),r.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var c=function e(){t._reader.read().then((function(n){var i=n.value,o=n.done;o?r.resolve():(Object.assign(a,i.styles),t._processItems(i.items,a),e())}),r.reject)};this._reader=this._textContentStream.getReader(),c()}r.promise.then((function(){a=null,e?t._renderTimer=setTimeout((function(){i(t),t._renderTimer=null}),e):i(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var t=[],r=[],n=0,a=this._textDivs.length;n<a;n++){var i=this._textDivs[n],s=this._textDivProperties.get(i);s.isWhitespace||(e?(t.length=0,r.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(r.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):r.push(0),s.paddingRight>0?r.push("".concat(s.paddingRight/s.scale,"px")):r.push(0),s.paddingBottom>0?r.push("".concat(s.paddingBottom,"px")):r.push(0),s.paddingLeft>0?(r.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):r.push(0),i.style.padding=r.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=s.originalTransform))}}}},u}();t.renderTextLayer=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var n=r(194),a=r(1);function i(e,t,r){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=o(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},i(e,t,r||e)}function o(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=u(e),null===e)break;return e}function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(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 v=function(){function e(){f(this,e)}return g(e,null,[{key:"create",value:function(e){var t=e.data.annotationType;switch(t){case a.AnnotationType.LINK:return new b(e);case a.AnnotationType.TEXT:return new y(e);case a.AnnotationType.WIDGET:var r=e.data.fieldType;switch(r){case"Tx":return new _(e);case"Btn":return e.data.radioButton?new x(e):e.data.checkBox?new k(e):new S(e);case"Ch":return new A(e)}return new w(e);case a.AnnotationType.POPUP:return new C(e);case a.AnnotationType.FREETEXT:return new T(e);case a.AnnotationType.LINE:return new E(e);case a.AnnotationType.SQUARE:return new R(e);case a.AnnotationType.CIRCLE:return new I(e);case a.AnnotationType.POLYLINE:return new O(e);case a.AnnotationType.CARET:return new F(e);case a.AnnotationType.INK:return new M(e);case a.AnnotationType.POLYGON:return new L(e);case a.AnnotationType.HIGHLIGHT:return new D(e);case a.AnnotationType.UNDERLINE:return new N(e);case a.AnnotationType.SQUIGGLY:return new B(e);case a.AnnotationType.STRIKEOUT:return new U(e);case a.AnnotationType.STAMP:return new j(e);case a.AnnotationType.FILEATTACHMENT:return new q(e);default:return new m(e)}}}]),e}(),m=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];f(this,e),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,r&&(this.container=this._createContainer(n))}return g(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,r=this.page,n=this.viewport,i=document.createElement("section"),o=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];i.setAttribute("data-annotation-id",t.id);var l=a.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(i.style.transform="matrix(".concat(n.transform.join(","),")"),i.style.transformOrigin="-".concat(l[0],"px -").concat(l[1],"px"),!e&&t.borderStyle.width>0){i.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==a.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var c=t.borderStyle.horizontalCornerRadius,u=t.borderStyle.verticalCornerRadius;if(c>0||u>0){var d="".concat(c,"px / ").concat(u,"px");i.style.borderRadius=d}switch(t.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case a.AnnotationBorderStyleType.BEVELED:(0,a.warn)("Unimplemented border style: beveled");break;case a.AnnotationBorderStyleType.INSET:(0,a.warn)("Unimplemented border style: inset");break;case a.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid";break;default:break}t.color?i.style.borderColor=a.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):i.style.borderWidth=0}return i.style.left="".concat(l[0],"px"),i.style.top="".concat(l[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(s,"px"),i}},{key:"_createPopup",value:function(e,t,r){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var n=new P({container:e,trigger:t,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}),a=n.render();a.style.left=e.style.width,e.appendChild(a)}},{key:"render",value:function(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),b=function(e){function t(e){f(this,t);var r=!!(e.data.url||e.data.dest||e.data.action);return l(this,u(t).call(this,e,r))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,r=document.createElement("a");return e.url?(0,n.addLinkAttributes)(r,{url:e.url,target:e.newWindow?n.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest),this.container.appendChild(r),this.container}},{key:"_bindLink",value:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),t}(m),y=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),t}(m),w=function(e){function t(){return f(this,t),l(this,u(t).apply(this,arguments))}return d(t,e),g(t,[{key:"render",value:function(){return this.container}}]),t}(m),_=function(e){function t(e){f(this,t);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return l(this,u(t).call(this,e,r))}return d(t,e),g(t,[{key:"render",value:function(){var e=["left","center","right"];this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea"),t.textContent=this.data.fieldValue):(t=document.createElement("input"),t.type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(n,"px - 1ch)")}}else{t=document.createElement("div"),t.textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var a=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(a=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,a)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(e,t){var r=e.style;if(r.fontSize="".concat(this.data.fontSize,"px"),r.direction=this.data.fontDirection<0?"rtl":"ltr",t){var n="normal";t.black?n="900":t.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=t.italic?"italic":"normal";var a=t.loadedName?'"'.concat(t.loadedName,'", '):"",i=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=a+i}}}]),t}(w),k=function(e){function t(e){return f(this,t),l(this,u(t).call(this,e,e.renderInteractiveForms))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(w),x=function(e){function t(e){return f(this,t),l(this,u(t).call(this,e,e.renderInteractiveForms))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(w),S=function(e){function t(){return f(this,t),l(this,u(t).apply(this,arguments))}return d(t,e),g(t,[{key:"render",value:function(){var e=i(u(t.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),t}(b),A=function(e){function t(e){return f(this,t),l(this,u(t).call(this,e,e.renderInteractiveForms))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));var t=!0,r=!1,n=void 0;try{for(var a,i=this.data.options[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value,s=document.createElement("option");s.textContent=o.displayValue,s.value=o.exportValue,this.data.fieldValue.includes(o.displayValue)&&s.setAttribute("selected",!0),e.appendChild(s)}}catch(l){r=!0,n=l}finally{try{t||null==i["return"]||i["return"]()}finally{if(r)throw n}}return this.container.appendChild(e),this.container}}]),t}(w),C=function(e){function t(e){f(this,t);var r=!(!e.data.title&&!e.data.contents);return l(this,u(t).call(this,e,r))}return d(t,e),g(t,[{key:"render",value:function(){var e=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",e.includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelector(t);if(!r)return this.container;var n=new P({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),a=parseFloat(r.style.left),i=parseFloat(r.style.width);return this.container.style.transformOrigin="-".concat(a+i,"px -").concat(r.style.top),this.container.style.left="".concat(a+i,"px"),this.container.appendChild(n.render()),this.container}}]),t}(m),P=function(){function e(t){f(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return g(e,[{key:"render",value:function(){var e=.7,t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var r=document.createElement("div");r.className="popup";var i=this.color;if(i){var o=e*(255-i[0])+i[0],s=e*(255-i[1])+i[1],l=e*(255-i[2])+i[2];r.style.backgroundColor=a.Util.makeCssRgb(0|o,0|s,0|l)}var c=document.createElement("h1");c.textContent=this.title,r.appendChild(c);var u=n.PDFDateString.toDateObject(this.modificationDate);if(u){var d=document.createElement("span");d.textContent="{{date}}, {{time}}",d.dataset.l10nId="annotation_date_string",d.dataset.l10nArgs=JSON.stringify({date:u.toLocaleDateString(),time:u.toLocaleTimeString()}),r.appendChild(d)}var h=this._formatContents(this.contents);return r.appendChild(h),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),r.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(r),t}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/),n=0,a=r.length;n<a;++n){var i=r[n];t.appendChild(document.createTextNode(i)),n<a-1&&t.appendChild(document.createElement("br"))}return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),T=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),E=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),n.appendChild(a),this.container.append(n),this._createPopup(this.container,a,e),this.container}}]),t}(m),R=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:rect");return i.setAttribute("x",a/2),i.setAttribute("y",a/2),i.setAttribute("width",t-a),i.setAttribute("height",r-a),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),t}(m),I=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:ellipse");return i.setAttribute("cx",t/2),i.setAttribute("cy",r/2),i.setAttribute("rx",t/2-a/2),i.setAttribute("ry",r/2-a/2),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),t}(m),O=function(e){function t(e){var r;f(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r=l(this,u(t).call(this,e,n,!0)),r.containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return d(t,e),g(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=[],i=!0,o=!1,s=void 0;try{for(var l,c=e.vertices[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value,d=u.x-e.rect[0],h=e.rect[3]-u.y;a.push(d+","+h)}}catch(p){o=!0,s=p}finally{try{i||null==c["return"]||c["return"]()}finally{if(o)throw s}}a=a.join(" ");var f=this.svgFactory.createElement(this.svgElementName);return f.setAttribute("points",a),f.setAttribute("stroke-width",e.borderStyle.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","none"),n.appendChild(f),this.container.append(n),this._createPopup(this.container,f,e),this.container}}]),t}(m),L=function(e){function t(e){var r;return f(this,t),r=l(this,u(t).call(this,e)),r.containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return d(t,e),t}(O),F=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),M=function(e){function t(e){var r;f(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r=l(this,u(t).call(this,e,n,!0)),r.containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return d(t,e),g(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=!0,i=!1,o=void 0;try{for(var s,l=e.inkLists[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value,u=[],d=!0,h=!1,f=void 0;try{for(var p,g=c[Symbol.iterator]();!(d=(p=g.next()).done);d=!0){var v=p.value,m=v.x-e.rect[0],b=e.rect[3]-v.y;u.push("".concat(m,",").concat(b))}}catch(w){h=!0,f=w}finally{try{d||null==g["return"]||g["return"]()}finally{if(h)throw f}}u=u.join(" ");var y=this.svgFactory.createElement(this.svgElementName);y.setAttribute("points",u),y.setAttribute("stroke-width",e.borderStyle.width||1),y.setAttribute("stroke","transparent"),y.setAttribute("fill","none"),this._createPopup(this.container,y,e),n.appendChild(y)}}catch(w){i=!0,o=w}finally{try{a||null==l["return"]||l["return"]()}finally{if(i)throw o}}return this.container.append(n),this.container}}]),t}(m),D=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),N=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),B=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),U=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),j=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),q=function(e){function t(e){var r;f(this,t),r=l(this,u(t).call(this,e,!0));var i=r.data.file,o=i.filename,s=i.content;return r.filename=(0,n.getFilenameFromUrl)(o),r.content=s,r.linkService.eventBus&&r.linkService.eventBus.dispatch("fileattachmentannotation",{source:c(r),id:(0,a.stringToPDFString)(o),filename:o,content:s}),r}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,a.warn)("Download cannot be started due to unavailable download manager")}}]),t}(m),z=function(){function e(){f(this,e)}return g(e,null,[{key:"render",value:function(e){var t=[],r=[],i=!0,o=!1,s=void 0;try{for(var l,c=e.annotations[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;u&&(u.annotationType!==a.AnnotationType.POPUP?t.push(u):r.push(u))}}catch(g){o=!0,s=g}finally{try{i||null==c["return"]||c["return"]()}finally{if(o)throw s}}r.length&&t.push.apply(t,r);for(var d=0,h=t;d<h.length;d++){var f=h[d],p=v.create({data:f,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:e.renderInteractiveForms||!1,svgFactory:new n.DOMSVGFactory});p.isRenderable&&e.div.appendChild(p.render())}}},{key:"update",value:function(e){var t=!0,r=!1,n=void 0;try{for(var a,i=e.annotations[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value,s=e.div.querySelector('[data-annotation-id="'.concat(o.id,'"]'));s&&(s.style.transform="matrix(".concat(e.viewport.transform.join(","),")"))}}catch(l){r=!0,n=l}finally{try{t||null==i["return"]||i["return"]()}finally{if(r)throw n}}e.div.removeAttribute("hidden")}}]),e}();t.AnnotationLayer=z},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var n=r(1),a=r(194),i=r(48);function o(e){return c(e)||l(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function l(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function c(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function u(e,t){return f(e)||h(e,t)||d()}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function h(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}function f(e){if(Array.isArray(e))return 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 v(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}var m=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=m;var b=function(e){var t=[],r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;"save"!==l.fn?"restore"===l.fn?t=r.pop():t.push(l):(t.push({fnId:92,fn:"group",items:[]}),r.push(t),t=t[t.length-1].items)}}catch(c){a=!0,i=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return t},y=function(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)},w=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(y(e[0])," ").concat(y(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(y(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(y(e[4])," ").concat(y(e[5]),")");return"matrix(".concat(y(e[0])," ").concat(y(e[1])," ").concat(y(e[2])," ").concat(y(e[3])," ").concat(y(e[4])," ")+"".concat(y(e[5]),")")},_={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},k="http://www.w3.org/XML/1998/namespace",x="http://www.w3.org/1999/xlink",S=["butt","round","square"],A=["miter","round","bevel"],C=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=12,r=new Int32Array(256),a=0;a<256;a++){for(var o=a,s=0;s<8;s++)o=1&o?3988292384^o>>1&2147483647:o>>1&2147483647;r[a]=o}function l(e,t,n){for(var a=-1,i=t;i<n;i++){var o=255&(a^e[i]),s=r[o];a=a>>>8^s}return-1^a}function c(e,t,r,n){var a=n,i=t.length;r[a]=i>>24&255,r[a+1]=i>>16&255,r[a+2]=i>>8&255,r[a+3]=255&i,a+=4,r[a]=255&e.charCodeAt(0),r[a+1]=255&e.charCodeAt(1),r[a+2]=255&e.charCodeAt(2),r[a+3]=255&e.charCodeAt(3),a+=4,r.set(t,a),a+=t.length;var o=l(r,n+4,a);r[a]=o>>24&255,r[a+1]=o>>16&255,r[a+2]=o>>8&255,r[a+3]=255&o}function u(e,t,r){for(var n=1,a=0,i=t;i<r;++i)n=(n+(255&e[i]))%65521,a=(a+n)%65521;return a<<16|n}function d(e){if(!i.isNodeJS)return h(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var r=__nested_webpack_require_1653429__(0).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(a){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+a)}return h(e)}function h(e){var t=e.length,r=65535,n=Math.ceil(t/r),a=new Uint8Array(2+t+5*n+4),i=0;a[i++]=120,a[i++]=156;var o=0;while(t>r)a[i++]=0,a[i++]=255,a[i++]=255,a[i++]=0,a[i++]=0,a.set(e.subarray(o,o+r),i),i+=r,o+=r,t-=r;a[i++]=1,a[i++]=255&t,a[i++]=t>>8&255,a[i++]=255&~t,a[i++]=(65535&~t)>>8&255,a.set(e.subarray(o),i),i+=e.length-o;var s=u(e,0,e.length);return a[i++]=s>>24&255,a[i++]=s>>16&255,a[i++]=s>>8&255,a[i++]=255&s,a}function f(r,a,i,o){var s,l,u,h=r.width,f=r.height,p=r.data;switch(a){case n.ImageKind.GRAYSCALE_1BPP:l=0,s=1,u=h+7>>3;break;case n.ImageKind.RGB_24BPP:l=2,s=8,u=3*h;break;case n.ImageKind.RGBA_32BPP:l=6,s=8,u=4*h;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+u)*f),v=0,m=0,b=0;b<f;++b)g[v++]=0,g.set(p.subarray(m,m+u),v),m+=u,v+=u;if(a===n.ImageKind.GRAYSCALE_1BPP&&o){v=0;for(var y=0;y<f;y++){v++;for(var w=0;w<u;w++)g[v++]^=255}}var _=new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,f>>24&255,f>>16&255,f>>8&255,255&f,s,l,0,0,0]),k=d(g),x=e.length+3*t+_.length+k.length,S=new Uint8Array(x),A=0;return S.set(e,A),A+=e.length,c("IHDR",_,S,A),A+=t+_.length,c("IDATA",k,S,A),A+=t+k.length,c("IEND",new Uint8Array(0),S,A),(0,n.createObjectURL)(S,"image/png",i)}return function(e,t,r){var a=void 0===e.kind?n.ImageKind.GRAYSCALE_1BPP:e.kind;return f(e,a,t,r)}}(),P=function(){function e(){p(this,e),this.fontSizeScale=1,this.fontWeight=_.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.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=_.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 v(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),T=0,E=0,R=0;t.SVGGraphics=m=function(){function e(t,r,i){for(var o in p(this,e),this.svgFactory=new a.DOMSVGFactory,this.current=new P,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!i,this._operatorIdMapping=[],n.OPS)this._operatorIdMapping[n.OPS[o]]=o}return v(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,r=e.fnArray,a=e.argsArray,i=0,o=r.length;i<o;i++)if(r[i]===n.OPS.dependency){var s=!0,l=!1,c=void 0;try{for(var u,d=function(){var e=u.value,r=e.startsWith("g_")?t.commonObjs:t.objs,n=new Promise((function(t){r.get(e,t)}));t.current.dependencies.push(n)},h=a[i][Symbol.iterator]();!(s=(u=h.next()).done);s=!0)d()}catch(f){l=!0,c=f}finally{try{s||null==h["return"]||h["return"]()}finally{if(l)throw c}}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,r,a,i,o){var s=[e,t,r,a,i,o];this.transformMatrix=n.Util.transform(this.transformMatrix,s),this.tgrp=null}},{key:"getSVG",value:function(e,t){var r=this;this.viewport=t;var a=this._initialize(t);return this.loadDependencies(e).then((function(){return r.transformMatrix=n.IDENTITY_MATRIX,r.executeOpTree(r.convertOpList(e)),a}))}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,a=[],i=0,o=n.length;i<o;i++){var s=n[i];a.push({fnId:s,fn:t[s],args:r[i]})}return b(a)}},{key:"executeOpTree",value:function(e){var t=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value,l=s.fn,c=s.fnId,u=s.args;switch(0|c){case n.OPS.beginText:this.beginText();break;case n.OPS.dependency:break;case n.OPS.setLeading:this.setLeading(u);break;case n.OPS.setLeadingMoveText:this.setLeadingMoveText(u[0],u[1]);break;case n.OPS.setFont:this.setFont(u);break;case n.OPS.showText:this.showText(u[0]);break;case n.OPS.showSpacedText:this.showText(u[0]);break;case n.OPS.endText:this.endText();break;case n.OPS.moveText:this.moveText(u[0],u[1]);break;case n.OPS.setCharSpacing:this.setCharSpacing(u[0]);break;case n.OPS.setWordSpacing:this.setWordSpacing(u[0]);break;case n.OPS.setHScale:this.setHScale(u[0]);break;case n.OPS.setTextMatrix:this.setTextMatrix(u[0],u[1],u[2],u[3],u[4],u[5]);break;case n.OPS.setTextRise:this.setTextRise(u[0]);break;case n.OPS.setTextRenderingMode:this.setTextRenderingMode(u[0]);break;case n.OPS.setLineWidth:this.setLineWidth(u[0]);break;case n.OPS.setLineJoin:this.setLineJoin(u[0]);break;case n.OPS.setLineCap:this.setLineCap(u[0]);break;case n.OPS.setMiterLimit:this.setMiterLimit(u[0]);break;case n.OPS.setFillRGBColor:this.setFillRGBColor(u[0],u[1],u[2]);break;case n.OPS.setStrokeRGBColor:this.setStrokeRGBColor(u[0],u[1],u[2]);break;case n.OPS.setStrokeColorN:this.setStrokeColorN(u);break;case n.OPS.setFillColorN:this.setFillColorN(u);break;case n.OPS.shadingFill:this.shadingFill(u[0]);break;case n.OPS.setDash:this.setDash(u[0],u[1]);break;case n.OPS.setRenderingIntent:this.setRenderingIntent(u[0]);break;case n.OPS.setFlatness:this.setFlatness(u[0]);break;case n.OPS.setGState:this.setGState(u[0]);break;case n.OPS.fill:this.fill();break;case n.OPS.eoFill:this.eoFill();break;case n.OPS.stroke:this.stroke();break;case n.OPS.fillStroke:this.fillStroke();break;case n.OPS.eoFillStroke:this.eoFillStroke();break;case n.OPS.clip:this.clip("nonzero");break;case n.OPS.eoClip:this.clip("evenodd");break;case n.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case n.OPS.paintJpegXObject:this.paintJpegXObject(u[0],u[1],u[2]);break;case n.OPS.paintImageXObject:this.paintImageXObject(u[0]);break;case n.OPS.paintInlineImageXObject:this.paintInlineImageXObject(u[0]);break;case n.OPS.paintImageMaskXObject:this.paintImageMaskXObject(u[0]);break;case n.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(u[0],u[1]);break;case n.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case n.OPS.closePath:this.closePath();break;case n.OPS.closeStroke:this.closeStroke();break;case n.OPS.closeFillStroke:this.closeFillStroke();break;case n.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case n.OPS.nextLine:this.nextLine();break;case n.OPS.transform:this.transform(u[0],u[1],u[2],u[3],u[4],u[5]);break;case n.OPS.constructPath:this.constructPath(u[0],u[1]);break;case n.OPS.endPath:this.endPath();break;case 92:this.group(s.items);break;default:(0,n.warn)("Unimplemented operator ".concat(l));break}}}catch(d){r=!0,a=d}finally{try{t||null==o["return"]||o["return"]()}finally{if(r)throw a}}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,r,n,a,i){var o=this.current;o.textMatrix=o.lineMatrix=[e,t,r,n,a,i],o.textMatrixScale=Math.sqrt(e*e+t*t),o.x=o.lineX=0,o.y=o.lineY=0,o.xcoords=[],o.tspan=this.svgFactory.createElement("svg:tspan"),o.tspan.setAttributeNS(null,"font-family",o.fontFamily),o.tspan.setAttributeNS(null,"font-size","".concat(y(o.fontSize),"px")),o.tspan.setAttributeNS(null,"y",y(-o.y)),o.txtElement=this.svgFactory.createElement("svg:text"),o.txtElement.appendChild(o.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=n.IDENTITY_MATRIX,e.lineMatrix=n.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[]}},{key:"moveText",value:function(e,t){var r=this.current;r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size","".concat(y(r.fontSize),"px")),r.tspan.setAttributeNS(null,"y",y(-r.y))}},{key:"showText",value:function(e){var t=this.current,r=t.font,a=t.fontSize;if(0!==a){var i=t.charSpacing,o=t.wordSpacing,s=t.fontDirection,l=t.textHScale*s,c=r.vertical,u=a*t.fontMatrix[0],d=0,h=!0,f=!1,p=void 0;try{for(var g,v=e[Symbol.iterator]();!(h=(g=v.next()).done);h=!0){var m=g.value;if(null!==m)if((0,n.isNum)(m))d+=-m*a*.001;else{var b=m.width,x=m.fontChar,S=(m.isSpace?o:0)+i,A=b*u+S*s;m.isInFont||r.missingFile?(t.xcoords.push(t.x+d),t.tspan.textContent+=x,d+=A):d+=A}else d+=s*o}}catch(E){f=!0,p=E}finally{try{h||null==v["return"]||v["return"]()}finally{if(f)throw p}}c?t.y-=d*l:t.x+=d*l,t.tspan.setAttributeNS(null,"x",t.xcoords.map(y).join(" ")),t.tspan.setAttributeNS(null,"y",y(-t.y)),t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(y(t.fontSize),"px")),t.fontStyle!==_.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==_.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var C=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;if(C===n.TextRenderingMode.FILL||C===n.TextRenderingMode.FILL_STROKE?(t.fillColor!==_.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===n.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),C===n.TextRenderingMode.STROKE||C===n.TextRenderingMode.FILL_STROKE){var P=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,P)}var T=t.textMatrix;0!==t.textRise&&(T=T.slice(),T[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(w(T)," scale(").concat(y(l),", -1)")),t.txtElement.setAttributeNS(k,"xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,n.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,r=this.commonObjs.get(e[0]),a=e[1];t.font=r,this.embedFonts&&r.data&&!this.embeddedFonts[r.loadedName]&&(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),t.fontMatrix=r.fontMatrix?r.fontMatrix:n.FONT_IDENTITY_MATRIX;var i="normal";r.black?i="900":r.bold&&(i="bold");var o=r.italic?"italic":"normal";a<0?(a=-a,t.fontDirection=-1):t.fontDirection=1,t.fontSize=a,t.fontFamily=r.loadedName,t.fontWeight=i,t.fontStyle=o,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",y(-t.y)),t.xcoords=[]}},{key:"endText",value:function(){var e=this.current;e.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=S[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=A[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,r){this.current.strokeColor=n.Util.makeCssRgb(e,t,r)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,r){this.current.fillColor=n.Util.makeCssRgb(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,r=this.viewport.height,a=n.Util.inverseTransform(this.transformMatrix),i=n.Util.applyTransform([0,0],a),o=n.Util.applyTransform([0,r],a),s=n.Util.applyTransform([t,0],a),l=n.Util.applyTransform([t,r],a),c=Math.min(i[0],o[0],s[0],l[0]),u=Math.min(i[1],o[1],s[1],l[1]),d=Math.max(i[0],o[0],s[0],l[0]),h=Math.max(i[1],o[1],s[1],l[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",d-c),f.setAttributeNS(null,"height",h-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this._ensureTransformGroup().appendChild(f)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],r=e[2],a=e[3]||n.IDENTITY_MATRIX,i=u(e[4],4),s=i[0],l=i[1],c=i[2],d=i[3],h=e[5],f=e[6],p=e[7],g="shading".concat(R++),v=n.Util.applyTransform([s,l],a),m=u(v,2),b=m[0],y=m[1],w=n.Util.applyTransform([c,d],a),_=u(w,2),k=_[0],x=_[1],S=n.Util.singularValueDecompose2dScale(a),A=u(S,2),C=A[0],P=A[1],T=h*C,E=f*P,I=this.svgFactory.createElement("svg:pattern");I.setAttributeNS(null,"id",g),I.setAttributeNS(null,"patternUnits","userSpaceOnUse"),I.setAttributeNS(null,"width",T),I.setAttributeNS(null,"height",E),I.setAttributeNS(null,"x","".concat(b)),I.setAttributeNS(null,"y","".concat(y));var O=this.svg,L=this.transformMatrix,F=this.current.fillColor,M=this.current.strokeColor,D=this.svgFactory.create(k-b,x-y);if(this.svg=D,this.transformMatrix=a,2===p){var N=n.Util.makeCssRgb.apply(n.Util,o(t));this.current.fillColor=N,this.current.strokeColor=N}return this.executeOpTree(this.convertOpList(r)),this.svg=O,this.transformMatrix=L,this.current.fillColor=F,this.current.strokeColor=M,I.appendChild(D.childNodes[0]),this.defs.appendChild(I),"url(#".concat(g,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,r="shading".concat(R++),a=e[3];switch(e[1]){case"axial":var i=e[4],o=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",i[0]),t.setAttributeNS(null,"y1",i[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var s=e[4],l=e[5],c=e[6],u=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var d=!0,h=!1,f=void 0;try{for(var p,g=a[Symbol.iterator]();!(d=(p=g.next()).done);d=!0){var v=p.value,m=this.svgFactory.createElement("svg:stop");m.setAttributeNS(null,"offset",v[0]),m.setAttributeNS(null,"stop-color",v[1]),t.appendChild(m)}}catch(b){h=!0,f=b}finally{try{d||null==g["return"]||g["return"]()}finally{if(h)throw f}}return this.defs.appendChild(t),"url(#".concat(r,")");case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var r=this.current,a=r.x,i=r.y,o=[],s=0,l=!0,c=!1,u=void 0;try{for(var d,h=e[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var f=d.value;switch(0|f){case n.OPS.rectangle:a=t[s++],i=t[s++];var p=t[s++],g=t[s++],v=a+p,m=i+g;o.push("M",y(a),y(i),"L",y(v),y(i),"L",y(v),y(m),"L",y(a),y(m),"Z");break;case n.OPS.moveTo:a=t[s++],i=t[s++],o.push("M",y(a),y(i));break;case n.OPS.lineTo:a=t[s++],i=t[s++],o.push("L",y(a),y(i));break;case n.OPS.curveTo:a=t[s+4],i=t[s+5],o.push("C",y(t[s]),y(t[s+1]),y(t[s+2]),y(t[s+3]),y(a),y(i)),s+=6;break;case n.OPS.curveTo2:o.push("C",y(a),y(i),y(t[s]),y(t[s+1]),y(t[s+2]),y(t[s+3])),a=t[s+2],i=t[s+3],s+=4;break;case n.OPS.curveTo3:a=t[s+2],i=t[s+3],o.push("C",y(t[s]),y(t[s+1]),y(a),y(i),y(a),y(i)),s+=4;break;case n.OPS.closePath:o.push("Z");break}}}catch(b){c=!0,u=b}finally{try{l||null==h["return"]||h["return"]()}finally{if(c)throw u}}o=o.join(" "),r.path&&e.length>0&&e[0]!==n.OPS.rectangle&&e[0]!==n.OPS.moveTo?o=r.path.getAttributeNS(null,"d")+o:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",o),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(a,i)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(T++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",w(this.transformMatrix));var n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=u(i.value,2),l=s[0],c=s[1];switch(l){case"LW":this.setLineWidth(c);break;case"LC":this.setLineCap(c);break;case"LJ":this.setLineJoin(c);break;case"ML":this.setMiterLimit(c);break;case"D":this.setDash(c[0],c[1]);break;case"RI":this.setRenderingIntent(c);break;case"FL":this.setFlatness(c);break;case"Font":this.setFont(c);break;case"CA":this.setStrokeAlpha(c);break;case"ca":this.setFillAlpha(c);break;default:(0,n.warn)("Unimplemented graphic state operator ".concat(l));break}}}catch(d){r=!0,a=d}finally{try{t||null==o["return"]||o["return"]()}finally{if(r)throw a}}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",y(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",y(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(y).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",y(t*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintJpegXObject",value:function(e,t,r){var n=this.objs.get(e),a=this.svgFactory.createElement("svg:image");a.setAttributeNS(x,"xlink:href",n.src),a.setAttributeNS(null,"width",y(t)),a.setAttributeNS(null,"height",y(r)),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",y(-r)),a.setAttributeNS(null,"transform","scale(".concat(y(1/t)," ").concat(y(-1/r),")")),this._ensureTransformGroup().appendChild(a)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var r=e.width,n=e.height,a=C(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",y(r)),i.setAttributeNS(null,"height",y(n)),this.current.element=i,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS(x,"xlink:href",a),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",y(-n)),o.setAttributeNS(null,"width",y(r)+"px"),o.setAttributeNS(null,"height",y(n)+"px"),o.setAttributeNS(null,"transform","scale(".concat(y(1/r)," ").concat(y(-1/n),")")),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,r=e.width,n=e.height,a=t.fillColor;t.maskId="mask".concat(E++);var i=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",t.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",y(r)),o.setAttributeNS(null,"height",y(n)),o.setAttributeNS(null,"fill",a),o.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(i),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,i)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",y(r)),a.setAttributeNS(null,"height",y(n)),this.current.element=a,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",w(e.transform)),t.appendChild(n),this.svg=n,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",w(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var n=o(r(191)),a=r(1),i=r(209);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function p(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 g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}var b=__nested_webpack_require_1653429__(1),y=__nested_webpack_require_1653429__(2),w=__nested_webpack_require_1653429__(3),_=__nested_webpack_require_1653429__(4),k=/^file:\/\/\/[a-zA-Z]:\//;function x(e){var t=_.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?_.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}var S=function(){function e(t){g(this,e),this.source=t,this.url=x(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return m(e,[{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader),this._fullRequestReader=this.isFsUrl?new R(this):new T(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new I(this,e,t):new E(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFNodeStream=S;var A=function(){function e(t){g(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._headersCapability=(0,a.createPromiseCapability)()}return m(e,[{key:"read",value:function(){var e=p(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new a.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),C=function(){function e(t){g(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)();var r=t.source;this._isStreamingSupported=!r.disableStream}return m(e,[{key:"read",value:function(){var e=p(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}();function P(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var T=function(e){function t(e){var r;g(this,t),r=l(this,u(t).call(this,e));var n=function(t){if(404===t.statusCode){var n=new a.MissingPDFException('Missing PDF "'.concat(r._url,'".'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(t);var o=function(e){return r._readableStream.headers[e.toLowerCase()]},s=(0,i.validateRangeRequestCapabilities)({getResponseHeader:o,isHttp:e.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),l=s.allowRangeRequests,c=s.suggestedLength;r._isRangeSupported=l,r._contentLength=c||r._contentLength,r._filename=(0,i.extractFilenameFromHeader)(o)};return r._request=null,"http:"===r._url.protocol?r._request=y.request(P(r._url,e.httpHeaders),n):r._request=w.request(P(r._url,e.httpHeaders),n),r._request.on("error",(function(e){r._storedError=e,r._headersCapability.reject(e)})),r._request.end(),r}return d(t,e),t}(A),E=function(e){function t(e,r,n){var i;for(var o in g(this,t),i=l(this,u(t).call(this,e)),i._httpHeaders={},e.httpHeaders){var s=e.httpHeaders[o];"undefined"!==typeof s&&(i._httpHeaders[o]=s)}i._httpHeaders["Range"]="bytes=".concat(r,"-").concat(n-1);var c=function(e){if(404!==e.statusCode)i._setReadableStream(e);else{var t=new a.MissingPDFException('Missing PDF "'.concat(i._url,'".'));i._storedError=t}};return i._request=null,"http:"===i._url.protocol?i._request=y.request(P(i._url,i._httpHeaders),c):i._request=w.request(P(i._url,i._httpHeaders),c),i._request.on("error",(function(e){i._storedError=e})),i._request.end(),i}return d(t,e),t}(C),R=function(e){function t(e){var r;g(this,t),r=l(this,u(t).call(this,e));var n=decodeURIComponent(r._url.path);return k.test(r._url.href)&&(n=n.replace(/^\//,"")),b.lstat(n,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new a.MissingPDFException('Missing PDF "'.concat(n,'".'))),r._storedError=e,void r._headersCapability.reject(e);r._contentLength=t.size,r._setReadableStream(b.createReadStream(n)),r._headersCapability.resolve()})),r}return d(t,e),t}(A),I=function(e){function t(e,r,n){var a;g(this,t),a=l(this,u(t).call(this,e));var i=decodeURIComponent(a._url.path);return k.test(a._url.href)&&(i=i.replace(/^\//,"")),a._setReadableStream(b.createReadStream(i,{start:r,end:n-1})),a}return d(t,e),t}(C)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=s,t.extractFilenameFromHeader=o,t.validateRangeRequestCapabilities=i,t.validateResponseStatus=l;var n=r(1),a=r(210);function i(e){var t=e.getResponseHeader,r=e.isHttp,a=e.rangeChunkSize,i=e.disableRange;(0,n.assert)(a>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);if(!Number.isInteger(s))return o;if(o.suggestedLength=s,s<=2*a)return o;if(i||!r)return o;if("bytes"!==t("Accept-Ranges"))return o;var l=t("Content-Encoding")||"identity";return"identity"!==l||(o.allowRangeRequests=!0),o}function o(e){var t=e("Content-Disposition");if(t){var r=(0,a.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(n){}if(/\.pdf$/i.test(r))return r}return null}function s(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function l(e){return 200===e||206===e}},function(e,t,r){"use strict";function n(e,t){return o(e)||i(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}function o(e){if(Array.isArray(e))return e}function s(e){var t=!0,r=s("filename\\*","i").exec(e);if(r){r=r[1];var a=d(r);return a=unescape(a),a=h(a),a=f(a),c(a)}if(r=u(e),r){var i=f(r);return c(i)}if(r=s("filename","i").exec(e),r){r=r[1];var o=d(r);return o=f(o),c(o)}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function l(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r))return r;try{var n=new TextDecoder(e,{fatal:!0}),a=Array.from(r,(function(e){return 255&e.charCodeAt(0)}));r=n.decode(new Uint8Array(a)),t=!1}catch(i){if(/^utf-?8$/i.test(e))try{r=decodeURIComponent(escape(r)),t=!1}catch(o){}}}return r}function c(e){return t&&/[\x80-\xff]/.test(e)&&(e=l("utf-8",e),t&&(e=l("iso-8859-1",e))),e}function u(e){var t,r=[],a=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");while(null!==(t=a.exec(e))){var i=t,o=n(i,4),l=o[1],c=o[2],u=o[3];if(l=parseInt(l,10),l in r){if(0===l)break}else r[l]=[c,u]}for(var f=[],p=0;p<r.length;++p){if(!(p in r))break;var g=n(r[p],2),v=g[0],m=g[1];m=d(m),v&&(m=unescape(m),0===p&&(m=h(m))),f.push(m)}return f.join("")}function d(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),r=0;r<t.length;++r){var n=t[r].indexOf('"');-1!==n&&(t[r]=t[r].slice(0,n),t.length=r+1),t[r]=t[r].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function h(e){var t=e.indexOf("'");if(-1===t)return e;var r=e.slice(0,t),n=e.slice(t+1),a=n.replace(/^[^']*'/,"");return l(r,a)}function f(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,r,n){if("q"===r||"Q"===r)return n=n.replace(/_/g," "),n=n.replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})),l(t,n);try{n=atob(n)}catch(a){}return l(t,n)}))}return""}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var n=o(r(191)),a=r(1),i=r(209);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function l(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,l,"next",e)}function l(e){s(i,n,a,o,l,"throw",e)}o(void 0)}))}}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 d(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}var h=200,f=206;function p(e){var t=e.response;if("string"!==typeof t)return t;var r=(0,a.stringToBytes)(t);return r.buffer}var g=function(){function e(t,r){c(this,e),this.url=t,r=r||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||{},this.withCredentials=r.withCredentials||!1,this.getXhr=r.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return d(e,[{key:"requestRange",value:function(e,t,r){var n={begin:e,end:t};for(var a in r)n[a]=r[a];return this.request(n)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t};for(var a in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var i=this.httpHeaders[a];"undefined"!==typeof i&&t.setRequestHeader(a,i)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),n.expectedStatus=f):n.expectedStatus=h,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}},{key:"onProgress",value:function(e,t){var r=this.pendingRequests[e];r&&r.onProgress&&r.onProgress(t)}},{key:"onStateChange",value:function(e,t){var r=this.pendingRequests[e];if(r){var n=r.xhr;if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===n.status&&this.isHttp)r.onError&&r.onError(n.status);else{var a=n.status||h,i=a===h&&r.expectedStatus===f;if(i||a===r.expectedStatus){var o=p(n);if(a===f){var s=n.getResponseHeader("Content-Range"),l=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);r.onDone({begin:parseInt(l[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}else r.onError&&r.onError(n.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),v=function(){function e(t){c(this,e),this._source=t,this._manager=new g(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return d(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader),this._fullRequestReader=new m(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new b(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFNetworkStream=v;var m=function(){function e(t,r){c(this,e),this._manager=t;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=(0,a.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return d(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},n=(0,i.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),a=n.allowRangeRequests,o=n.suggestedLength;a&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,r=(0,i.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){var e=l(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),b=function(){function e(t,r,n){c(this,e),this._manager=t;var a={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(r,n,a),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return d(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){var r=this._requests.shift();r.resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){var e=l(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var n=o(r(191)),a=r(1),i=r(209);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function l(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,l,"next",e)}function l(e){s(i,n,a,o,l,"throw",e)}o(void 0)}))}}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 d(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),e}function h(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function f(e){var t=new Headers;for(var r in e){var n=e[r];"undefined"!==typeof n&&t.append(r,n)}return t}var p=function(){function e(t){c(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return d(e,[{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader),this._fullRequestReader=new g(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new v(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFFetchStream=p;var g=function(){function e(t){var r=this;c(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var n=t.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=(0,a.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=f(this._stream.httpHeaders);var o=n.url;fetch(o,h(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,o);r._reader=e.body.getReader(),r._headersCapability.resolve();var t=function(t){return e.headers.get(t)},n=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),s=n.allowRangeRequests,l=n.suggestedLength;r._isRangeSupported=s,r._contentLength=l||r._contentLength,r._filename=(0,i.extractFilenameFromHeader)(t),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new a.AbortException("Streaming is disabled."))}))["catch"](this._headersCapability.reject),this.onProgress=null}return d(e,[{key:"read",value:function(){var e=l(n["default"].mark((function e(){var t,r,a,i;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,a=t.done,!a){e.next=9;break}return e.abrupt("return",{value:r,done:a});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),i=new Uint8Array(r).buffer,e.abrupt("return",{value:i,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),v=function(){function e(t,r,n){var o=this;c(this,e),this._stream=t,this._reader=null,this._loaded=0;var s=t.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._headers=f(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(n-1));var l=s.url;fetch(l,h(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,l);o._readCapability.resolve(),o._reader=e.body.getReader()})),this.onProgress=null}return d(e,[{key:"read",value:function(){var e=l(n["default"].mark((function e(){var t,r,a,i;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,a=t.done,!a){e.next=9;break}return e.abrupt("return",{value:r,done:a});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),i=new Uint8Array(r).buffer,e.abrupt("return",{value:i,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}()}])}))}).call(this,__nested_webpack_require_1653429__("b639").Buffer,__nested_webpack_require_1653429__("c8ba"),__nested_webpack_require_1653429__("4362"),__nested_webpack_require_1653429__("62e4")(module))},8875:function(e,t,r){var n,a,i;(function(r,o){a=[],n=o,i="function"===typeof n?n.apply(t,a):n,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var r,n,a,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(f.stack)||o.exec(f.stack),l=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===u&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=r.replace(n,"$1").trim());for(var h=0;h<d.length;h++){if("interactive"===d[h].readyState)return d[h];if(d[h].src===l)return d[h];if(l===u&&d[h].innerHTML&&d[h].innerHTML.trim()===a)return d[h]}return null}}return e}))},"88cc":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("4160"),r("c975"),r("fb6a"),r("a434"),r("ac1f"),r("159b"),r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var o=r("dacc"),s=r("6634"),l=200,c=206;function u(e){var t=e.response;if("string"!==typeof t)return t;var r=(0,o.stringToBytes)(t);return r.buffer}var d=function(){function e(t,r){a(this,e),this.url=t,r=r||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||{},this.withCredentials=r.withCredentials||!1,this.getXhr=r.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return i(e,[{key:"requestRange",value:function(e,t,r){var n={begin:e,end:t};for(var a in r)n[a]=r[a];return this.request(n)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t};for(var a in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var i=this.httpHeaders[a];"undefined"!==typeof i&&t.setRequestHeader(a,i)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),n.expectedStatus=c):n.expectedStatus=l,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}},{key:"onProgress",value:function(e,t){var r=this.pendingRequests[e];r&&r.onProgress&&r.onProgress(t)}},{key:"onStateChange",value:function(e,t){var r=this.pendingRequests[e];if(r){var n=r.xhr;if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===n.status&&this.isHttp)r.onError&&r.onError(n.status);else{var a=n.status||l,i=a===l&&r.expectedStatus===c;if(i||a===r.expectedStatus){var o=u(n);if(a===c){var s=n.getResponseHeader("Content-Range"),d=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);r.onDone({begin:parseInt(d[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}else r.onError&&r.onError(n.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),h=function(){function e(t){a(this,e),this._source=t,this._manager=new d(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return i(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader),this._fullRequestReader=new f(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new p(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFNetworkStream=h;var f=function(){function e(t,r){a(this,e),this._manager=t;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=(0,o.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return i(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},n=(0,s.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),a=n.allowRangeRequests,i=n.suggestedLength;a&&(this._isRangeSupported=!0),this._contentLength=i||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,r=(0,s.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,o.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),p=function(){function e(t,r,n){a(this,e),this._manager=t;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return i(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){var r=this._requests.shift();r.resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,o.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},8925:function(e,t,r){var n=r("c6cd"),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},8962:function(e,t,r){r("e439"),r("5d41");var n=r("9f70");function a(t,r,i){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=a=Reflect.get:e.exports=a=function(e,t,r){var a=n(e,t);if(a){var i=Object.getOwnPropertyDescriptor(a,t);return i.get?i.get.call(r):i.value}},a(t,r,i||t)}e.exports=a},8996:function(e,t,r){var n=r("e841");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("ae064984",n,!0,{sourceMap:!1,shadowMode:!1})},"8a38":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("caad"),r("b0c0"),r("a9e3"),r("8ba4"),r("d3b7"),r("e6cf"),r("ac1f"),r("25f0"),r("2532"),r("5319"),r("841c"),r("1276");var n=r("7037"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var o=r("0496"),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.eventBus,n=t.externalLinkTarget,i=void 0===n?null:n,s=t.externalLinkRel,l=void 0===s?null:s,c=t.externalLinkEnabled,u=void 0===c||c,d=t.ignoreDestinationZoom,h=void 0!==d&&d;a(this,e),this.eventBus=r||(0,o.getGlobalEventBus)(),this.externalLinkTarget=i,this.externalLinkRel=l,this.externalLinkEnabled=u,this._ignoreDestinationZoom=h,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return i(e,[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"navigateTo",value:function(e){var t=this,r=function r(n){var a,i=n.namedDest,o=n.explicitDest,s=o[0];if(s instanceof Object){if(a=t._cachedPageNumber(s),null===a)return void t.pdfDocument.getPageIndex(s).then((function(e){t.cachePageRef(e+1,s),r({namedDest:i,explicitDest:o})})).catch((function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(e,'".'))}))}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(e,'".'));a=s+1}!a||a<1||a>t.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(a,'" is not ')+'a valid page number, for dest="'.concat(e,'".')):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:i,explicitDest:o,pageNumber:a})),t.pdfViewer.scrollPageIntoView({pageNumber:a,destArray:o,ignoreDestinationZoom:t._ignoreDestinationZoom}))};new Promise((function(r,n){"string"!==typeof e?r({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then((function(t){r({namedDest:e,explicitDest:t})}))})).then((function(t){Array.isArray(t.explicitDest)?r(t):console.error('PDFLinkService.navigateTo: "'.concat(t.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(e,'".'))}))}},{key:"getDestinationHash",value:function(e){if("string"===typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t,r;if(e.includes("=")){var n=(0,o.parseQueryString)(e);if("search"in n&&this.eventBus.dispatch("findfromurlhash",{source:this,query:n["search"].replace(/"/g,""),phraseSearch:"true"===n["phrase"]}),"nameddest"in n)return void this.navigateTo(n.nameddest);if("page"in n&&(t=0|n.page||1),"zoom"in n){var a=n.zoom.split(","),i=a[0],s=parseFloat(i);i.includes("Fit")?"Fit"===i||"FitB"===i?r=[null,{name:i}]:"FitH"===i||"FitBH"===i||"FitV"===i||"FitBV"===i?r=[null,{name:i},a.length>1?0|a[1]:null]:"FitR"===i?5!==a.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):r=[null,{name:i},0|a[1],0|a[2],0|a[3],0|a[4]]:console.error('PDFLinkService.setHash: "'.concat(i,'" is not ')+"a valid zoom value."):r=[null,{name:"XYZ"},a.length>1?0|a[1]:null,a.length>2?0|a[2]:null,s?s/100:i]}r?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:r,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in n&&this.eventBus.dispatch("pagemode",{source:this,mode:n.pagemode})}else{r=unescape(e);try{r=JSON.parse(r),Array.isArray(r)||(r=r.toString())}catch(c){}if("string"===typeof r||l(r))return void this.navigateTo(r);console.error('PDFLinkService.setHash: "'.concat(unescape(e),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break;default:break}this.eventBus.dispatch("namedaction",{source:this,action:e})}},{key:"cachePageRef",value:function(e,t){if(t){var r=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);this._pagesRefCache[r]=e}}},{key:"_cachedPageNumber",value:function(e){var t=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:"isPageVisible",value:function(e){return this.pdfViewer.isPageVisible(e)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}();function l(e){if(!Array.isArray(e))return!1;var t=e.length;if(t<2)return!1;var r=e[0];if(("object"!==n(r)||!Number.isInteger(r.num)||!Number.isInteger(r.gen))&&!(Number.isInteger(r)&&r>=0))return!1;var a=e[1];if("object"!==n(a)||"string"!==typeof a.name)return!1;var i=!0;switch(a.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;i=!1;break;default:return!1}for(var o=2;o<t;o++){var s=e[o];if(!("number"===typeof s||i&&null===s))return!1}return!0}t.PDFLinkService=s;var c=function(){function e(){a(this,e),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return i(e,[{key:"navigateTo",value:function(e){}},{key:"getDestinationHash",value:function(e){return"#"}},{key:"getAnchorUrl",value:function(e){return"#"}},{key:"setHash",value:function(e){}},{key:"executeNamedAction",value:function(e){}},{key:"cachePageRef",value:function(e,t){}},{key:"isPageVisible",value:function(e){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(e){}},{key:"rotation",get:function(){return 0},set:function(e){}}]),e}();t.SimpleLinkService=c},"8a59":function(e,t,r){var n=r("74e8");n("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}),!0)},"8a79":function(e,t,r){"use strict";var n=r("23e7"),a=r("06cf").f,i=r("50c4"),o=r("5a34"),s=r("1d80"),l=r("ab13"),c=r("c430"),u="".endsWith,d=Math.min,h=l("endsWith"),f=!c&&!h&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!f&&!h},{endsWith:function(e){var t=String(s(this));o(e);var r=arguments.length>1?arguments[1]:void 0,n=i(t.length),a=void 0===r?n:d(i(r),n),l=String(e);return u?u.call(t,l,a):t.slice(a-l.length,a)===l}})},"8aa5":function(e,t,r){"use strict";var n=r("6547").charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},"8aa7":function(e,t,r){var n=r("da84"),a=r("d039"),i=r("1c7e"),o=r("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;e.exports=!o||!a((function(){l(1)}))||!a((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||a((function(){return 1!==new l(new s(2),1,void 0).length}))},"8b09":function(e,t,r){var n=r("74e8");n("Int16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},"8ba4":function(e,t,r){var n=r("23e7"),a=r("5e89");n({target:"Number",stat:!0},{isInteger:a})},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},9:function(e,t){},9082:function(e,t,r){var n=r("24fb"),a=r("1de5"),i=r("c2aa"),o=r("bdc3"),s=r("1db6"),l=r("2242"),c=r("7637"),u=r("4519"),d=r("50ba"),h=r("6d96");t=n(!1);var f=a(i),p=a(o),g=a(s),v=a(l),m=a(c),b=a(u),y=a(d),w=a(h);t.push([e.i,'.pdf-app .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}.pdf-app .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}.pdf-app .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}.pdf-app .textLayer .highlight.begin{border-radius:4px 0 0 4px}.pdf-app .textLayer .highlight.end{border-radius:0 4px 4px 0}.pdf-app .textLayer .highlight.middle{border-radius:0}.pdf-app .textLayer .highlight.selected{background-color:#006400}.pdf-app .textLayer ::-moz-selection{background:#00f}.pdf-app .textLayer ::selection{background:#00f}.pdf-app .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;-ms-user-select:none;user-select:none}.pdf-app .textLayer .endOfContent.active{top:0}.pdf-app .annotationLayer section{position:absolute}.pdf-app .annotationLayer .buttonWidgetAnnotation.pushButton>a,.pdf-app .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.pdf-app .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,.pdf-app .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.pdf-app .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input,.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input,.pdf-app .annotationLayer .choiceWidgetAnnotation select,.pdf-app .annotationLayer .textWidgetAnnotation input,.pdf-app .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}.pdf-app .annotationLayer .choiceWidgetAnnotation select option{padding:0}.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.pdf-app .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],.pdf-app .annotationLayer .choiceWidgetAnnotation select[disabled],.pdf-app .annotationLayer .textWidgetAnnotation input[disabled],.pdf-app .annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:hover,.pdf-app .annotationLayer .choiceWidgetAnnotation select:hover,.pdf-app .annotationLayer .textWidgetAnnotation input:hover,.pdf-app .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}.pdf-app .annotationLayer .choiceWidgetAnnotation select:focus,.pdf-app .annotationLayer .textWidgetAnnotation input:focus,.pdf-app .annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.pdf-app .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.pdf-app .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input,.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}.pdf-app .annotationLayer .popupWrapper{position:absolute;width:20em}.pdf-app .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}.pdf-app .annotationLayer .popup>*{font-size:9px}.pdf-app .annotationLayer .popup h1{display:inline-block}.pdf-app .annotationLayer .popup span{display:inline-block;margin-left:5px}.pdf-app .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}.pdf-app .annotationLayer .caretAnnotation,.pdf-app .annotationLayer .circleAnnotation svg ellipse,.pdf-app .annotationLayer .fileAttachmentAnnotation,.pdf-app .annotationLayer .freeTextAnnotation,.pdf-app .annotationLayer .highlightAnnotation,.pdf-app .annotationLayer .inkAnnotation svg polyline,.pdf-app .annotationLayer .lineAnnotation svg line,.pdf-app .annotationLayer .polygonAnnotation svg polygon,.pdf-app .annotationLayer .polylineAnnotation svg polyline,.pdf-app .annotationLayer .squareAnnotation svg rect,.pdf-app .annotationLayer .squigglyAnnotation,.pdf-app .annotationLayer .stampAnnotation,.pdf-app .annotationLayer .strikeoutAnnotation,.pdf-app .annotationLayer .underlineAnnotation{cursor:pointer}.pdf-app .pdfViewer .canvasWrapper{overflow:hidden}.pdf-app .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px auto;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url('+f+") 9 9 repeat;border-image:url("+f+") 9 9 repeat;background-color:#fff}.pdf-app .pdfViewer.removePageBorders .page{margin:0 auto 10px auto;border:none}.pdf-app .pdfViewer.singlePageView{display:inline-block}.pdf-app .pdfViewer.singlePageView .page{margin:0;border:none}.pdf-app .pdfViewer.scrollHorizontal,.pdf-app .pdfViewer.scrollWrapped,.pdf-app .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}.pdf-app .pdfViewer.scrollHorizontal,.pdf-app .spread{white-space:nowrap}.pdf-app .pdfViewer.removePageBorders,.pdf-app .pdfViewer.scrollHorizontal .spread,.pdf-app .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}.pdf-app .pdfViewer.scrollHorizontal .page,.pdf-app .pdfViewer.scrollHorizontal .spread,.pdf-app .pdfViewer.scrollWrapped .page,.pdf-app .pdfViewer.scrollWrapped .spread,.pdf-app .spread .page{display:inline-block;vertical-align:middle}.pdf-app .pdfViewer.scrollHorizontal .page,.pdf-app .pdfViewer.scrollWrapped .page,.pdf-app .spread .page{margin-left:-3.5px;margin-right:-3.5px}.pdf-app .pdfViewer.removePageBorders.scrollHorizontal .page,.pdf-app .pdfViewer.removePageBorders.scrollWrapped .page,.pdf-app .pdfViewer.removePageBorders .spread .page{margin-left:5px;margin-right:5px}.pdf-app .pdfViewer .page canvas{margin:0;display:block}.pdf-app .pdfViewer .page canvas[hidden]{display:none}.pdf-app .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url("+p+") 50% no-repeat}.pdf-app .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}.pdf-app .pdfPresentationMode .pdfViewer .page,.pdf-app .pdfPresentationMode .pdfViewer .spread{display:block}.pdf-app .pdfPresentationMode .pdfViewer .page,.pdf-app .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}.pdf-app .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}.pdf-app .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}.pdf-app .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}.pdf-app.dark{--pdf-app-background-color:#1d2636;--pdf-sidebar-content-color:rgba(36,54,78,0.5);--pdf-toolbar-sidebar-color:#24364e;--pdf-toolbar-color:#24364e;--pdf-loading-bar-color:#606c88;--pdf-loading-bar-secondary-color:#11ece5;--pdf-find-results-count-color:#d9d9d9;--pdf-find-results-count-font-color:#525252;--pdf-find-message-font-color:#a6b7d0;--pdf-not-found-color:#f66;--pdf-split-toolbar-button-separator-color:#fff;--pdf-toolbar-font-color:#d9d9d9;--pdf-button-hover-font-color:#11ece5;--pdf-button-toggled-color:#606c88;--pdf-horizontal-toolbar-separator-color:#fff;--pdf-input-color:#606c88;--pdf-input-font-color:#d9d9d9;--pdf-find-input-placeholder-font-color:#11ece5;--pdf-thumbnail-selection-ring-color:hsla(0,0%,100%,0.15);--pdf-thumbnail-selection-ring-selected-color:hsla(0,0%,100%,0.3);--pdf-error-wrapper-color:#f55;--pdf-error-more-info-color:#d9d9d9;--pdf-error-more-info-font-color:#000;--pdf-overlay-container-color:rgba(0,0,0,0.2);--pdf-overlay-container-dialog-color:#24364e;--pdf-overlay-container-dialog-font-color:#d9d9d9;--pdf-overlay-container-dialog-separator-color:#fff;--pdf-dialog-button-font-color:#d9d9d9;--pdf-dialog-button-color:#606c88}.pdf-app.light{--pdf-app-background-color:rgba(108,117,125,0.3);--pdf-sidebar-content-color:rgba(108,117,125,0.4);--pdf-toolbar-sidebar-color:rgba(108,117,125,0.7);--pdf-toolbar-color:#6c757d;--pdf-loading-bar-color:#3f4b5b;--pdf-loading-bar-secondary-color:#8dd0ff;--pdf-find-results-count-color:#3f4b5b;--pdf-find-results-count-font-color:hsla(0,0%,100%,0.87);--pdf-find-message-font-color:hsla(0,0%,100%,0.87);--pdf-not-found-color:brown;--pdf-split-toolbar-button-separator-color:#000;--pdf-toolbar-font-color:hsla(0,0%,100%,0.87);--pdf-button-hover-font-color:#8dd0ff;--pdf-button-toggled-color:#3f4b5b;--pdf-horizontal-toolbar-separator-color:#000;--pdf-input-color:#3f4b5b;--pdf-input-font-color:#d9d9d9;--pdf-find-input-placeholder-font-color:#8dd0ff;--pdf-thumbnail-selection-ring-color:rgba(108,117,125,0.7);--pdf-thumbnail-selection-ring-selected-color:#3f4b5b;--pdf-error-wrapper-color:#f55;--pdf-error-more-info-color:#d9d9d9;--pdf-error-more-info-font-color:#000;--pdf-overlay-container-color:rgba(108,117,125,0.7);--pdf-overlay-container-dialog-color:#6c757d;--pdf-overlay-container-dialog-font-color:#d9d9d9;--pdf-overlay-container-dialog-separator-color:#000;--pdf-dialog-button-font-color:#d9d9d9;--pdf-dialog-button-color:#3f4b5b}.pdf-app{background-color:#1d2636}.pdf-app #sidebarContent{background-color:rgba(36,54,78,.5)}.pdf-app #toolbarContainer,.pdf-app #toolbarSidebar,.pdf-app .findbar,.pdf-app .secondaryToolbar{background-color:#24364e}.pdf-app #loadingBar .progress{background-color:#606c88}.pdf-app #loadingBar .progress.indeterminate .glimmer{background:repeating-linear-gradient(135deg,transparent,#11ece5 5px,#11ece5 45px,transparent 55px,transparent 95px,transparent 100px)}.pdf-app #findInput::-moz-placeholder{color:#11ece5}.pdf-app #findInput:-ms-input-placeholder{color:#11ece5}.pdf-app #findInput::placeholder{color:#11ece5}.pdf-app .doorHanger:after,.pdf-app .doorHangerRight:after{border-bottom-color:#24364e}.pdf-app #findResultsCount{background-color:#d9d9d9;color:#525252}.pdf-app #findMsg{color:#a6b7d0}.pdf-app #findInput.notFound{background-color:#f66}.pdf-app .splitToolbarButtonSeparator{background-color:#fff}.pdf-app .dropdownToolbarButton,.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton,.pdf-app .toolbarButton,.vue-pdf-app-icon{color:#d9d9d9}.pdf-app .dialog .overlayButton{background-color:#606c88;color:#d9d9d9}.pdf-app .dropdownToolbarButton:hover,.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton:focus,.pdf-app .secondaryToolbarButton:hover,.pdf-app .toolbarButton:focus,.pdf-app .toolbarButton:hover,.vue-pdf-app-icon:hover{color:#11ece5}.pdf-app .dropdownToolbarButton>select{color:#d9d9d9;background:#24364e}.pdf-app .dropdownToolbarButton>select>option{background:#24364e}.pdf-app .horizontalToolbarSeparator,.pdf-app .verticalToolbarSeparator{background-color:#fff}.pdf-app .toolbarField{background-color:#606c88;color:#d9d9d9}.pdf-app .toolbarLabel{color:#d9d9d9}.pdf-app .thumbnail:hover>.thumbnailSelectionRing,.pdf-app a:focus>.thumbnail>.thumbnailSelectionRing{background-color:hsla(0,0%,100%,.15)}.pdf-app .thumbnail.selected>.thumbnailSelectionRing{background-color:hsla(0,0%,100%,.3)}.pdf-app .attachmentsItem>button,.pdf-app .outlineItem>a{color:#d9d9d9}.pdf-app .attachmentsItem>button:hover,.pdf-app .outlineItem>a:hover,.pdf-app .outlineItemToggler:hover,.pdf-app .outlineItemToggler:hover+a,.pdf-app .outlineItemToggler:hover~.outlineItems{background-color:#606c88}.pdf-app #errorWrapper{background-color:#f55}.pdf-app #errorMoreInfo{background-color:#d9d9d9;color:#000}.pdf-app #overlayContainer{background-color:rgba(0,0,0,.2)}.pdf-app #overlayContainer>.container>.dialog{background-color:#24364e;color:#d9d9d9}.pdf-app .dialog .separator{background-color:#fff}.pdf-app .secondaryToolbarButton.toggled,.pdf-app .splitToolbarButton.toggled>.toolbarButton.toggled,.pdf-app .toolbarButton.toggled{background-color:#606c88}.pdf-app.light{background-color:rgba(108,117,125,.3)}.pdf-app.light #sidebarContent{background-color:rgba(108,117,125,.4)}.pdf-app.light #toolbarSidebar{background-color:rgba(108,117,125,.7)}.pdf-app.light #toolbarContainer,.pdf-app.light .findbar,.pdf-app.light .secondaryToolbar{background-color:#6c757d}.pdf-app.light #loadingBar .progress{background-color:#3f4b5b}.pdf-app.light #loadingBar .progress.indeterminate .glimmer{background:repeating-linear-gradient(135deg,transparent,#8dd0ff 5px,#8dd0ff 45px,transparent 55px,transparent 95px,transparent 100px)}.pdf-app.light #findInput::-moz-placeholder{color:#8dd0ff}.pdf-app.light #findInput:-ms-input-placeholder{color:#8dd0ff}.pdf-app.light #findInput::placeholder{color:#8dd0ff}.pdf-app.light .doorHanger:after,.pdf-app.light .doorHangerRight:after{border-bottom-color:#6c757d}.pdf-app.light #findResultsCount{background-color:#3f4b5b;color:hsla(0,0%,100%,.87)}.pdf-app.light #findMsg{color:hsla(0,0%,100%,.87)}.pdf-app.light #findInput.notFound{background-color:brown}.pdf-app.light .splitToolbarButtonSeparator{background-color:#000}.light .vue-pdf-app-icon,.pdf-app.light .dropdownToolbarButton,.pdf-app.light .overlayButton,.pdf-app.light .secondaryToolbarButton,.pdf-app.light .toolbarButton{color:hsla(0,0%,100%,.87)}.pdf-app.light .dialog .overlayButton{background-color:#3f4b5b;color:#d9d9d9}.light .vue-pdf-app-icon:hover,.pdf-app.light .dropdownToolbarButton:hover,.pdf-app.light .overlayButton,.pdf-app.light .secondaryToolbarButton:focus,.pdf-app.light .secondaryToolbarButton:hover,.pdf-app.light .toolbarButton:focus,.pdf-app.light .toolbarButton:hover{color:#8dd0ff}.pdf-app.light .dropdownToolbarButton>select{color:hsla(0,0%,100%,.87);background:#6c757d}.pdf-app.light .dropdownToolbarButton>select>option{background:#6c757d}.pdf-app.light .horizontalToolbarSeparator,.pdf-app.light .verticalToolbarSeparator{background-color:#000}.pdf-app.light .toolbarField{background-color:#3f4b5b;color:#d9d9d9}.pdf-app.light .toolbarLabel{color:hsla(0,0%,100%,.87)}.pdf-app.light .thumbnail:hover>.thumbnailSelectionRing,.pdf-app.light a:focus>.thumbnail>.thumbnailSelectionRing{background-color:rgba(108,117,125,.7)}.pdf-app.light .thumbnail.selected>.thumbnailSelectionRing{background-color:#3f4b5b}.pdf-app.light .attachmentsItem>button,.pdf-app.light .outlineItem>a{color:hsla(0,0%,100%,.87)}.pdf-app.light .attachmentsItem>button:hover,.pdf-app.light .outlineItem>a:hover,.pdf-app.light .outlineItemToggler:hover,.pdf-app.light .outlineItemToggler:hover+a,.pdf-app.light .outlineItemToggler:hover~.outlineItems{background-color:#3f4b5b}.pdf-app.light #errorWrapper{background-color:#f55}.pdf-app.light #errorMoreInfo{background-color:#d9d9d9;color:#000}.pdf-app.light #overlayContainer{background-color:rgba(108,117,125,.7)}.pdf-app.light #overlayContainer>.container>.dialog{background-color:#6c757d;color:#d9d9d9}.pdf-app.light .dialog .separator{background-color:#000}.pdf-app.light .secondaryToolbarButton.toggled,.pdf-app.light .splitToolbarButton.toggled>.toolbarButton.toggled,.pdf-app.light .toolbarButton.toggled{background-color:#3f4b5b}.pdf-app[class]{background-color:var(--pdf-app-background-color)}.pdf-app[class] #sidebarContent{background-color:var(--pdf-sidebar-content-color)}.pdf-app[class] #toolbarSidebar{background-color:var(--pdf-toolbar-sidebar-color)}.pdf-app[class] #toolbarContainer,.pdf-app[class] .findbar,.pdf-app[class] .secondaryToolbar{background-color:var(--pdf-toolbar-color)}.pdf-app[class] #loadingBar .progress{background-color:var(--pdf-loading-bar-color)}.pdf-app[class] #loadingBar .progress.indeterminate .glimmer{background:repeating-linear-gradient(135deg,transparent,var(--pdf-loading-bar-secondary-color) 5px,var(--pdf-loading-bar-secondary-color) 45px,transparent 55px,transparent 95px,transparent 100px)}.pdf-app[class] #findInput::-moz-placeholder{color:var(--pdf-find-input-placeholder-font-color)}.pdf-app[class] #findInput:-ms-input-placeholder{color:var(--pdf-find-input-placeholder-font-color)}.pdf-app[class] #findInput::placeholder{color:var(--pdf-find-input-placeholder-font-color)}.pdf-app[class] .doorHanger:after,.pdf-app[class] .doorHangerRight:after{border-bottom-color:var(--pdf-toolbar-color)}.pdf-app[class] #findResultsCount{background-color:var(--pdf-find-results-count-color);color:var(--pdf-find-results-count-font-color)}.pdf-app[class] #findMsg{color:var(--pdf-find-message-font-color)}.pdf-app[class] #findInput.notFound{background-color:var(--pdf-not-found-color)}.pdf-app[class] .splitToolbarButtonSeparator{background-color:var(--pdf-split-toolbar-button-separator-color)}.pdf-app[class] .dropdownToolbarButton,.pdf-app[class] .overlayButton,.pdf-app[class] .secondaryToolbarButton,.pdf-app[class] .toolbarButton{color:var(--pdf-toolbar-font-color)}.vue-pdf-app-icon[class]{color:var(--pdf-toolbar-font-color)}.pdf-app[class] .dialog .overlayButton{background-color:var(--pdf-dialog-button-color);color:var(--pdf-dialog-button-font-color)}.pdf-app[class] .dropdownToolbarButton:hover,.pdf-app[class] .overlayButton,.pdf-app[class] .secondaryToolbarButton:focus,.pdf-app[class] .secondaryToolbarButton:hover,.pdf-app[class] .toolbarButton:focus,.pdf-app[class] .toolbarButton:hover,.vue-pdf-app-icon:hover[class]{color:var(--pdf-button-hover-font-color)}.pdf-app[class] .dropdownToolbarButton>select{color:var(--pdf-toolbar-font-color);background:var(--pdf-toolbar-color)}.pdf-app[class] .dropdownToolbarButton>select>option{background:var(--pdf-toolbar-color)}.pdf-app[class] .verticalToolbarSeparator{background-color:var(--pdf-split-toolbar-button-separator-color)}.pdf-app[class] .horizontalToolbarSeparator{background-color:var(--pdf-horizontal-toolbar-separator-color)}.pdf-app[class] .toolbarField{background-color:var(--pdf-input-color);color:var(--pdf-input-font-color)}.pdf-app[class] .toolbarLabel{color:var(--pdf-toolbar-font-color)}.pdf-app[class] .thumbnail:hover>.thumbnailSelectionRing,.pdf-app[class] a:focus>.thumbnail>.thumbnailSelectionRing{background-color:var(--pdf-thumbnail-selection-ring-color)}.pdf-app[class] .thumbnail.selected>.thumbnailSelectionRing{background-color:var(--pdf-thumbnail-selection-ring-selected-color)}.pdf-app[class] .attachmentsItem>button,.pdf-app[class] .outlineItem>a{color:var(--pdf-toolbar-font-color)}.pdf-app[class] .attachmentsItem>button:hover,.pdf-app[class] .outlineItem>a:hover,.pdf-app[class] .outlineItemToggler:hover,.pdf-app[class] .outlineItemToggler:hover+a,.pdf-app[class] .outlineItemToggler:hover~.outlineItems{background-color:var(--pdf-button-toggled-color)}.pdf-app[class] #errorWrapper{background-color:var(--pdf-error-wrapper-color)}.pdf-app[class] #errorMoreInfo{background-color:var(--pdf-error-more-info-color);color:var(--pdf-error-more-info-font-color)}.pdf-app[class] #overlayContainer{background-color:var(--pdf-overlay-container-color)}.pdf-app[class] #overlayContainer>.container>.dialog{background-color:var(--pdf-overlay-container-dialog-color);color:var(--pdf-overlay-container-dialog-font-color)}.pdf-app[class] .dialog .separator{background-color:var(--pdf-overlay-container-dialog-separator-color)}.pdf-app[class] .secondaryToolbarButton.toggled,.pdf-app[class] .splitToolbarButton.toggled>.toolbarButton.toggled,.pdf-app[class] .toolbarButton.toggled{background-color:var(--pdf-button-toggled-color)}:root{--sidebar-width:200px;--sidebar-transition-duration:200ms;--sidebar-transition-timing-function:ease}.pdf-app{height:100%;overflow-x:hidden}.pdf-app *{padding:0;margin:0}.pdf-app #secondaryToolbar button,.pdf-app #sidebarContainer button,.pdf-app #toolbarContainer button{cursor:pointer}.pdf-app #sidebarContainer button[disabled]{cursor:no-drop}.pdf-app #viewBookmark{cursor:pointer}.pdf-app button,.pdf-app input,.pdf-app select{font:message-box;outline:none}.pdf-app .hidden,.pdf-app [hidden]{display:none!important}.pdf-app .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}.pdf-app #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}.pdf-app #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}.pdf-app #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}.pdf-app #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-ms-user-select:none;user-select:none}.pdf-app #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}.pdf-app .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}.pdf-app .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}.pdf-app .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}.pdf-app .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}.pdf-app .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}.pdf-app .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,.pdf-app .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}.pdf-app #outerContainer{width:100%;height:100%;position:relative}.pdf-app #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;width:var(--sidebar-width);visibility:hidden;z-index:100;transition-duration:.2s;transition-duration:var(--sidebar-transition-duration);transition-timing-function:ease;transition-timing-function:var(--sidebar-transition-timing-function)}html[dir=ltr] .pdf-app #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - var(--sidebar-width))}html[dir=rtl] .pdf-app #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - var(--sidebar-width))}.loadingInProgress #sidebarContainer{top:4px}.pdf-app #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app #outerContainer.sidebarMoving #sidebarContainer,.pdf-app #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] .pdf-app #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] .pdf-app #outerContainer.sidebarOpen #sidebarContainer{right:0}.pdf-app #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0}.pdf-app #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%}html[dir=ltr] .pdf-app #sidebarContent{left:0;box-shadow:inset -1px 0 0 rgba(0,0,0,.25)}html[dir=rtl] .pdf-app #sidebarContent{right:0;box-shadow:inset 1px 0 0 rgba(0,0,0,.25)}.pdf-app #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;top:32px;right:0;bottom:0;left:0;outline:none}.pdf-app #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-duration:var(--sidebar-transition-duration);transition-timing-function:ease;transition-timing-function:var(--sidebar-transition-timing-function)}html[dir=ltr] .pdf-app #viewerContainer{box-shadow:inset 1px 0 0 hsla(0,0%,100%,.05)}html[dir=rtl] .pdf-app #viewerContainer{box-shadow:inset -1px 0 0 hsla(0,0%,100%,.05)}.pdf-app #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] .pdf-app #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px;left:var(--sidebar-width)}html[dir=rtl] .pdf-app #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px;right:var(--sidebar-width)}.pdf-app .toolbar{position:relative;left:0;right:0;z-index:9999;cursor:default}.pdf-app #toolbarContainer{width:100%}.pdf-app #toolbarSidebar{width:100%;height:32px}html[dir=ltr] .pdf-app #toolbarSidebar{box-shadow:inset -1px 0 0 rgba(0,0,0,.25),inset 0 -1px 0 hsla(0,0%,100%,.05),0 1px 0 rgba(0,0,0,.15),0 0 1px rgba(0,0,0,.1)}html[dir=rtl] .pdf-app #toolbarSidebar{box-shadow:inset 1px 0 0 rgba(0,0,0,.25),inset 0 1px 0 hsla(0,0%,100%,.05),0 1px 0 rgba(0,0,0,.15),0 0 1px rgba(0,0,0,.1)}.pdf-app #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:200;cursor:ew-resize}html[dir=ltr] .pdf-app #sidebarResizer{right:-6px}html[dir=rtl] .pdf-app #sidebarResizer{left:-6px}.pdf-app #toolbarContainer,.pdf-app .findbar,.pdf-app .secondaryToolbar{position:relative;height:32px}.pdf-app .findbar,.pdf-app .secondaryToolbar,html[dir=ltr] .pdf-app #toolbarContainer{box-shadow:inset 0 1px 1px rgba(0,0,0,.15),inset 0 -1px 0 hsla(0,0%,100%,.05),0 1px 0 rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1)}.pdf-app .findbar,.pdf-app .secondaryToolbar,html[dir=rtl] .pdf-app #toolbarContainer{box-shadow:inset 0 1px 1px rgba(0,0,0,.15),inset 0 -1px 0 hsla(0,0%,100%,.05),0 1px 0 rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1)}.pdf-app #toolbarViewer{height:32px}.pdf-app #loadingBar{position:relative;width:100%;height:4px}.pdf-app #loadingBar .progress{position:absolute;top:0;left:0;width:0;height:100%;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}to{left:0}}@keyframes progressIndeterminate{0%{left:-142px}to{left:0}}.pdf-app #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);-webkit-animation:progressIndeterminate .95s linear infinite;animation:progressIndeterminate .95s linear infinite}.pdf-app .findbar,.pdf-app .secondaryToolbar{top:32px;position:absolute;z-index:10000;height:auto;min-width:16px;padding:0 6px 0 6px;margin:4px 2px 4px 2px;font-size:12px;line-height:14px;text-align:left;cursor:default}.pdf-app .findbar{min-width:300px}.pdf-app .findbar>div{height:32px}.pdf-app .findbar.wrapContainers>div{clear:both}.pdf-app .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] .pdf-app .findbar{left:68px}html[dir=rtl] .pdf-app .findbar{right:68px}.pdf-app .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app #findInput{width:200px}.pdf-app #findInput::-moz-placeholder{font-style:italic}.pdf-app #findInput:-ms-input-placeholder{font-style:italic}.pdf-app #findInput::placeholder{font-style:italic}.pdf-app #findInput[data-status=pending]{background-size:16px;background-image:url("+p+');background-repeat:no-repeat;background-position:100%}html[dir=rtl] .pdf-app #findInput[data-status=pending]{background-position:0}.pdf-app .secondaryToolbar{padding:6px;height:auto;z-index:30000}html[dir=ltr] .pdf-app .secondaryToolbar{right:4px}html[dir=rtl] .pdf-app .secondaryToolbar{left:4px}.pdf-app #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}.pdf-app #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,.pdf-app #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}.pdf-app .doorHanger,.pdf-app .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.3)}.pdf-app .doorHanger:after,.pdf-app .doorHanger:before,.pdf-app .doorHangerRight:after,.pdf-app .doorHangerRight:before{bottom:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.pdf-app .doorHanger:after,.pdf-app .doorHangerRight:after{border-width:8px}.pdf-app .doorHanger:before,.pdf-app .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] .pdf-app .doorHanger:after,html[dir=rtl] .pdf-app .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] .pdf-app .doorHanger:before,html[dir=rtl] .pdf-app .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] .pdf-app .doorHangerRight:after,html[dir=rtl] .pdf-app .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] .pdf-app .doorHangerRight:before,html[dir=rtl] .pdf-app .doorHanger:before{right:13px;margin-right:-9px}.pdf-app #findResultsCount{text-align:center;padding:3px 4px}.pdf-app #findMsg{font-style:italic}.pdf-app #findMsg:empty{display:none}.pdf-app #toolbarViewerMiddle{position:absolute;left:50%;transform:translateX(-50%)}html[dir=ltr] .pdf-app #toolbarViewerLeft,html[dir=rtl] .pdf-app #toolbarViewerRight{float:left}html[dir=ltr] .pdf-app #toolbarViewerRight,html[dir=rtl] .pdf-app #toolbarViewerLeft{float:right}html[dir=ltr] .pdf-app #toolbarViewerLeft>*,html[dir=ltr] .pdf-app #toolbarViewerMiddle>*,html[dir=ltr] .pdf-app #toolbarViewerRight>*,html[dir=ltr] .pdf-app .findbar *{position:relative;float:left}html[dir=rtl] .pdf-app #toolbarViewerLeft>*,html[dir=rtl] .pdf-app #toolbarViewerMiddle>*,html[dir=rtl] .pdf-app #toolbarViewerRight>*,html[dir=rtl] .pdf-app .findbar *{position:relative;float:right}html[dir=ltr] .pdf-app .splitToolbarButton{margin:3px 2px 4px 0;display:inline-block}html[dir=rtl] .pdf-app .splitToolbarButton{margin:3px 0 4px 2px;display:inline-block}html[dir=ltr] .pdf-app .splitToolbarButton>.toolbarButton{border-radius:0;float:left}html[dir=rtl] .pdf-app .splitToolbarButton>.toolbarButton{border-radius:0;float:right}.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton,.pdf-app .toolbarButton,.vue-pdf-app-icon{border:0 none;background:none}.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton,.pdf-app .toolbarButton{width:32px;height:25px}.pdf-app .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}.pdf-app .overlayButton[disabled],.pdf-app .secondaryToolbarButton[disabled],.pdf-app .toolbarButton[disabled]{opacity:.5}.pdf-app .splitToolbarButton.toggled .toolbarButton{margin:0}.pdf-app .splitToolbarButton>.toolbarButton{position:relative}html[dir=ltr] .pdf-app .splitToolbarButton>.toolbarButton:first-child,html[dir=rtl] .pdf-app .splitToolbarButton>.toolbarButton:last-child{position:relative;margin:0;margin-right:-1px;border-top-left-radius:2px;border-bottom-left-radius:2px;border-right-color:transparent}html[dir=ltr] .pdf-app .splitToolbarButton>.toolbarButton:last-child,html[dir=rtl] .pdf-app .splitToolbarButton>.toolbarButton:first-child{position:relative;margin:0;margin-left:-1px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-left-color:transparent}.pdf-app .splitToolbarButtonSeparator{padding:8px 0;width:1px;z-index:99;display:inline-block;margin:5px 0}html[dir=ltr] .pdf-app .splitToolbarButtonSeparator{float:left}html[dir=rtl] .pdf-app .splitToolbarButtonSeparator{float:right}.pdf-app .splitToolbarButton.toggled>.splitToolbarButtonSeparator,.pdf-app .splitToolbarButton:hover>.splitToolbarButtonSeparator{padding:12px 0;margin:1px 0}.pdf-app .dropdownToolbarButton,.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton,.pdf-app .toolbarButton{min-width:16px;padding:2px 6px 0;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.pdf-app .findbar .toolbarButton,.vue-pdf-app-icon{cursor:pointer}.pdf-app .dialog .overlayButton{cursor:pointer;border-radius:2px}html[dir=ltr] .pdf-app .dropdownToolbarButton,html[dir=ltr] .pdf-app .overlayButton,html[dir=ltr] .pdf-app .toolbarButton{margin:3px 2px 4px 0}html[dir=rtl] .pdf-app .dropdownToolbarButton,html[dir=rtl] .pdf-app .overlayButton,html[dir=rtl] .pdf-app .toolbarButton{margin:3px 0 4px 2px}.pdf-app .dropdownToolbarButton select:hover{cursor:pointer}.pdf-app .secondaryToolbarButton.toggled,.pdf-app .splitToolbarButton.toggled>.toolbarButton.toggled,.pdf-app .toolbarButton.toggled{border-radius:3px}.pdf-app .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}.pdf-app .dropdownToolbarButton:after{position:absolute;display:inline-block;top:6px}html[dir=ltr] .pdf-app .dropdownToolbarButton:after{right:0}html[dir=rtl] .pdf-app .dropdownToolbarButton:after{left:0}.pdf-app .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;margin:0;padding:3px 2px 2px;border:none}.pdf-app #customScaleOption{display:none}.pdf-app .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}.pdf-app .secondaryToolbarButton.bookmark,.pdf-app .toolbarButton.bookmark{box-sizing:border-box;outline:none;padding-top:4px;text-decoration:none}.pdf-app .secondaryToolbarButton.bookmark{padding-top:5px}.pdf-app .bookmark[href="#"]{opacity:.5;pointer-events:none}.pdf-app .toolbarButton.pdfSidebarNotification:after{position:absolute;display:inline-block;top:1px;content:"";background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] .pdf-app .toolbarButton.pdfSidebarNotification:after{left:17px}html[dir=rtl] .pdf-app .toolbarButton.pdfSidebarNotification:after{right:17px}.pdf-app .secondaryToolbarButton{position:relative;margin:0 0 4px 0;padding:3px 0 1px 0;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}.pdf-app .secondaryToolbarButton>span{vertical-align:top}html[dir=ltr] .pdf-app .secondaryToolbarButton{padding-left:14px;text-align:left}html[dir=rtl] .pdf-app .secondaryToolbarButton{padding-right:14px;text-align:right}html[dir=ltr] .pdf-app .secondaryToolbarButton>span{padding-left:8px}html[dir=rtl] .pdf-app .secondaryToolbarButton>span{padding-right:8px}html[dir=rtl] .pdf-app .secondaryToolbarButton:before{float:right}.pdf-app .verticalToolbarSeparator{display:block;padding:8px 0;margin:8px 4px;width:1px}html[dir=ltr] .pdf-app .verticalToolbarSeparator{margin-left:2px}html[dir=rtl] .pdf-app .verticalToolbarSeparator{margin-right:2px}.pdf-app .horizontalToolbarSeparator{display:block;margin:0 0 4px 0;height:1px;width:100%}.pdf-app .toolbarField{padding:3px 6px;margin:4px 0 4px 0;border-radius:2px;border-width:1px;border-style:solid;border-color:rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);font-size:12px;line-height:14px;outline-style:none}.pdf-app .toolbarField[type=checkbox]{display:inline-block;margin:8px 0;cursor:pointer}.pdf-app .toolbarField[type=checkbox]+label{cursor:pointer}.pdf-app .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}.pdf-app .toolbarField.pageNumber.visiblePageIsLoading{background-image:url('+p+");background-repeat:no-repeat;background-position:1px;background-size:16px}.pdf-app .toolbarField.pageNumber::-webkit-inner-spin-button,.pdf-app .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pdf-app .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.pdf-app #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}.pdf-app #thumbnailView>a:active,.pdf-app #thumbnailView>a:focus{outline:0}.pdf-app .thumbnail{margin:0 10px 5px 10px}html[dir=ltr] .pdf-app .thumbnail{float:left}html[dir=rtl] .pdf-app .thumbnail{float:right}.pdf-app #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}.pdf-app #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}.pdf-app .thumbnail:not([data-loaded]){border:1px dashed hsla(0,0%,100%,.5);margin:-1px 9px 4px 9px}.pdf-app .thumbnailImage{border:1px solid transparent;box-shadow:0 0 0 1px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.3);opacity:.8;z-index:99;background-color:#fff;background-clip:content-box}.pdf-app .thumbnailSelectionRing{border-radius:2px;padding:7px}.pdf-app .thumbnail:hover>.thumbnailSelectionRing>.thumbnailImage,.pdf-app a:focus>.thumbnail>.thumbnailSelectionRing>.thumbnailImage{opacity:.9}.pdf-app #attachmentsView,.pdf-app #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app #outlineView{padding:4px 4px 0}.pdf-app #attachmentsView{padding:3px 4px 0}html[dir=ltr] .pdf-app .outlineItem>.outlineItems,html[dir=ltr] .pdf-app .outlineWithDeepNesting>.outlineItem{margin-left:20px}html[dir=rtl] .pdf-app .outlineItem>.outlineItems,html[dir=rtl] .pdf-app .outlineWithDeepNesting>.outlineItem{margin-right:20px}.pdf-app .attachmentsItem>button,.pdf-app .outlineItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal}.pdf-app .attachmentsItem>button{border:0 none;background:none;cursor:pointer;width:100%}html[dir=ltr] .pdf-app .outlineItem>a{padding:2px 0 5px 4px}html[dir=ltr] .pdf-app .attachmentsItem>button{padding:2px 0 3px 7px;text-align:left}html[dir=rtl] .pdf-app .outlineItem>a{padding:2px 4px 5px 0}html[dir=rtl] .pdf-app .attachmentsItem>button{padding:2px 7px 3px 0;text-align:right}.pdf-app .outlineItemToggler{position:relative;height:0;width:0;color:hsla(0,0%,100%,.5)}.pdf-app .outlineItemToggler:before{content:url("+g+");display:inline-block;position:absolute}.pdf-app .outlineItemToggler.outlineItemsHidden:before{content:url("+v+")}html[dir=rtl] .pdf-app .outlineItemToggler.outlineItemsHidden:before{transform:scaleX(-1)}.pdf-app .outlineItemToggler.outlineItemsHidden~.outlineItems{display:none}html[dir=ltr] .pdf-app .outlineItemToggler{float:left}html[dir=rtl] .pdf-app .outlineItemToggler{float:right}html[dir=ltr] .pdf-app .outlineItemToggler:before{right:4px}html[dir=rtl] .pdf-app .outlineItemToggler:before{left:4px}.pdf-app .attachmentsItem>button:hover,.pdf-app .outlineItem>a:hover,.pdf-app .outlineItemToggler:hover,.pdf-app .outlineItemToggler:hover+a,.pdf-app .outlineItemToggler:hover~.outlineItems{border-radius:2px}.pdf-app .noResults{font-size:12px;color:hsla(0,0%,100%,.8);font-style:italic;cursor:default}.pdf-app ::-moz-selection{background:rgba(0,0,255,.3)}.pdf-app ::selection{background:rgba(0,0,255,.3)}.pdf-app #errorWrapper{color:#fff;left:0;position:absolute;right:0;z-index:1000;padding:3px;font-size:.8em}.loadingInProgress #errorWrapper{top:4px}.pdf-app #errorMessageLeft{float:left}.pdf-app #errorMessageRight{float:right}.pdf-app #errorMoreInfo{padding:3px;margin:3px;width:98%}.pdf-app .overlayButton{width:auto;margin:3px 4px 2px 4px!important;padding:2px 6px 3px 6px}.pdf-app #overlayContainer{display:table;position:absolute;width:100%;height:100%;z-index:40000}.pdf-app #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}.pdf-app #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}.pdf-app #overlayContainer>.container>.dialog{display:inline-block;padding:15px;border-spacing:4px;font-size:12px;line-height:14px;border:1px solid rgba(0,0,0,.5);border-radius:4px}.pdf-app .dialog>.row{display:table-row}.pdf-app .dialog>.row>*{display:table-cell}.pdf-app .dialog .toolbarField{margin:5px 0}.pdf-app .dialog .separator{display:block;margin:4px 0 4px 0;height:1px;width:100%}.pdf-app .dialog .buttonRow{text-align:center;vertical-align:middle}.pdf-app .dialog :link{color:#fff}.pdf-app #passwordOverlay>.dialog{text-align:center}.pdf-app #passwordOverlay .toolbarField{width:200px}.pdf-app #documentPropertiesOverlay>.dialog{text-align:left}.pdf-app #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] .pdf-app #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] .pdf-app #documentPropertiesOverlay .row>*{text-align:right}.pdf-app #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}.pdf-app #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}.pdf-app #documentPropertiesOverlay .buttonRow{margin-top:10px}.pdf-app .clearBoth{clear:both}.fileInput{display:none}.pdf-app #PDFBug{background:none repeat scroll 0 0 #fff;border:1px solid #666;position:fixed;top:32px;right:0;bottom:0;font-size:10px;padding:0;width:300px}.pdf-app #PDFBug .controls{background:#eee;border-bottom:1px solid #666;padding:3px}.pdf-app #PDFBug .panels{bottom:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;right:0;top:27px}.pdf-app #PDFBug .panels>div{padding:5px}.pdf-app #PDFBug button.active{font-weight:700}.pdf-app .debuggerShowText{background:none repeat scroll 0 0 #ff0;color:#00f}.pdf-app .debuggerHideText:hover{background:none repeat scroll 0 0 #ff0}.pdf-app #PDFBug .stats{font-family:courier;font-size:10px;white-space:pre}.pdf-app #PDFBug .stats .title{font-weight:700}.pdf-app #PDFBug table{font-size:10px}.pdf-app #viewer.textLayer-visible .textLayer{opacity:1}.pdf-app #viewer.textLayer-visible .canvasWrapper{background-color:#80ff80}.pdf-app #viewer.textLayer-visible .canvasWrapper canvas{mix-blend-mode:screen}.pdf-app #viewer.textLayer-visible .textLayer>span{background-color:rgba(255,255,0,.1);color:#000;border:1px solid rgba(255,0,0,.5);box-sizing:border-box}.pdf-app #viewer.textLayer-hover .textLayer>span:hover{background-color:#fff;color:#000}.pdf-app #viewer.textLayer-shadow .textLayer>span{background-color:hsla(0,0%,100%,.6);color:#000}.pdf-app .grab-to-pan-grab{cursor:url("+m+"),move!important;cursor:-webkit-grab!important;cursor:grab!important}.pdf-app .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}.grab-to-pan-grabbing,.pdf-app .grab-to-pan-grab:active{cursor:url("+b+"),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:transparent;display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:50000}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.pdf-app .outlineItemToggler:before{transform:scale(.5);top:-1px;content:url("+y+")}.pdf-app .outlineItemToggler.outlineItemsHidden:before{content:url("+w+")}html[dir=rtl] .pdf-app .outlineItemToggler.outlineItemsHidden:before{transform:scaleX(-1) scale(.5)}}@media print{body{background:transparent none}.pdf-app #errorWrapper,.pdf-app #loadingBox,.pdf-app #secondaryToolbar,.pdf-app #sidebarContainer,.pdf-app .textLayer,.pdf-app .toolbar{display:none}.pdf-app #viewerContainer{overflow:visible}.pdf-app #mainContainer,.pdf-app #viewerContainer,.pdf-app .page,.pdf-app .page canvas{position:static;padding:0;margin:0}.pdf-app .page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.pdf-app .page[data-loaded]{display:block}body[data-pdfjsprinting] #outerContainer{display:none}body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}#printContainer canvas,#printContainer img{display:block}}.pdf-app .visibleLargeView,.pdf-app .visibleMediumView,.pdf-app .visibleSmallView{display:none}@media (max-width:900px){.pdf-app #toolbarViewerMiddle{display:table;margin:auto;left:auto;position:inherit;transform:none}}@media (max-width:840px){html[dir=ltr] .pdf-app #outerContainer.sidebarOpen #viewerContainer{left:0!important}html[dir=rtl] .pdf-app #outerContainer.sidebarOpen #viewerContainer{right:0!important}.pdf-app #outerContainer .hiddenLargeView,.pdf-app #outerContainer .hiddenMediumView{display:inherit}.pdf-app #outerContainer .visibleLargeView,.pdf-app #outerContainer .visibleMediumView{display:none}}@media (max-width:770px){.pdf-app #outerContainer .hiddenLargeView{display:none}.pdf-app #outerContainer .visibleLargeView{display:inherit}}@media (max-width:700px){.pdf-app #outerContainer .hiddenMediumView{display:none}.pdf-app #outerContainer .visibleMediumView{display:inherit}}@media (max-width:640px){.pdf-app .hiddenSmallView,.pdf-app .hiddenSmallView *{display:none}.pdf-app .visibleSmallView{display:inherit}.pdf-app .toolbarButtonSpacer{width:0}html[dir=ltr] .pdf-app .findbar{left:38px}html[dir=rtl] .pdf-app .findbar{right:38px}}@media (max-width:535px){.pdf-app #scaleSelectContainer{display:none}}",""]),e.exports=t},"90d7":function(e,t,r){var n=r("23e7"),a=Math.log,i=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return a(e)/i}})},"90e3":function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},9112:function(e,t,r){var n=r("83ab"),a=r("9bf2"),i=r("5c6c");e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},9129:function(e,t,r){var n=r("23e7");n({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},9152:function(e,t){t.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?a-1:0,h=r?-1:1,f=e[t+d];for(d+=h,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=n;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),i-=c}return(f?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var o,s,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,h=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[r+f]=255&s,f+=p,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[r+f]=255&o,f+=p,o/=256,c-=8);e[r+f-p]|=128*g}},9263:function(e,t,r){"use strict";var n=r("ad6d"),a=r("9f7f"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=a.UNSUPPORTED_Y||a.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=l||u||c;d&&(s=function(e){var t,r,a,s,d=this,h=c&&d.sticky,f=n.call(d),p=d.source,g=0,v=e;return h&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),v=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",v=" "+v,g++),r=new RegExp("^(?:"+p+")",f)),u&&(r=new RegExp("^"+p+"$(?!\\s)",f)),l&&(t=d.lastIndex),a=i.call(h?r:d,v),h?a?(a.input=a.input.slice(g),a[0]=a[0].slice(g),a.index=d.lastIndex,d.lastIndex+=a[0].length):d.lastIndex=0:l&&a&&(d.lastIndex=d.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],r,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(a[s]=void 0)})),a}),e.exports=s},"944a":function(e,t,r){var n=r("746f");n("toStringTag")},"94ca":function(e,t,r){var n=r("d039"),a=/#|\.prototype\./,i=function(e,t){var r=s[o(e)];return r==c||r!=l&&("function"==typeof t?n(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},"96cf":function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),o=new E(n||[]);return i._invoke=A(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={};function v(){}function m(){}function b(){}var y={};y[i]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==r&&n.call(_,i)&&(y=_);var k=b.prototype=v.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var a;function i(e,n){function i(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(i,i):i()}this._invoke=i}function A(e,t,r){var n=d;return function(a,i){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw i;return I()}r.method=a,r.arg=i;while(1){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var l=u(e,t,r);if("normal"===l.type){if(n=r.done?p:h,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=p,r.method="throw",r.arg=l.arg)}}}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 g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=u(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;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,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(e){if(e){var r=e[i];if(r)return r.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){while(++a<e.length)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:I}}function I(){return{value:t,done:!0}}return m.prototype=k.constructor=b,b.constructor=m,m.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(S.prototype),S.prototype[o]=function(){return this},e.AsyncIterator=S,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new S(c(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(k),l(k,s,"Generator"),k[i]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){while(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=R,E.prototype={constructor:E,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(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(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 a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;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,g):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),g},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),T(r),g}},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;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=n}catch(a){Function("r","regeneratorRuntime = r")(n)}},"970b":function(e,t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=r},"97fb":function(module,exports,__nested_webpack_require_2399881__){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/__nested_webpack_require_2399881__("4160"),__nested_webpack_require_2399881__("caad"),__nested_webpack_require_2399881__("c975"),__nested_webpack_require_2399881__("e260"),__nested_webpack_require_2399881__("45fc"),__nested_webpack_require_2399881__("a434"),__nested_webpack_require_2399881__("b0c0"),__nested_webpack_require_2399881__("6c57"),__nested_webpack_require_2399881__("a9e3"),__nested_webpack_require_2399881__("8ba4"),__nested_webpack_require_2399881__("cca6"),__nested_webpack_require_2399881__("e439"),__nested_webpack_require_2399881__("3410"),__nested_webpack_require_2399881__("b64b"),__nested_webpack_require_2399881__("d3b7"),__nested_webpack_require_2399881__("07ac"),__nested_webpack_require_2399881__("e6cf"),__nested_webpack_require_2399881__("a79d"),__nested_webpack_require_2399881__("ac1f"),__nested_webpack_require_2399881__("2532"),__nested_webpack_require_2399881__("3ca3"),__nested_webpack_require_2399881__("5319"),__nested_webpack_require_2399881__("5cc6"),__nested_webpack_require_2399881__("8a59"),__nested_webpack_require_2399881__("9a8c"),__nested_webpack_require_2399881__("a975"),__nested_webpack_require_2399881__("735e"),__nested_webpack_require_2399881__("c1ac"),__nested_webpack_require_2399881__("d139"),__nested_webpack_require_2399881__("3a7b"),__nested_webpack_require_2399881__("d5d6"),__nested_webpack_require_2399881__("82f8"),__nested_webpack_require_2399881__("e91f"),__nested_webpack_require_2399881__("60bd"),__nested_webpack_require_2399881__("5f96"),__nested_webpack_require_2399881__("3280"),__nested_webpack_require_2399881__("3fcc"),__nested_webpack_require_2399881__("ca91"),__nested_webpack_require_2399881__("25a1"),__nested_webpack_require_2399881__("cd26"),__nested_webpack_require_2399881__("3c5d"),__nested_webpack_require_2399881__("2954"),__nested_webpack_require_2399881__("649e"),__nested_webpack_require_2399881__("219c"),__nested_webpack_require_2399881__("170b"),__nested_webpack_require_2399881__("b39a"),__nested_webpack_require_2399881__("72f7"),__nested_webpack_require_2399881__("10d1"),__nested_webpack_require_2399881__("1fe2"),__nested_webpack_require_2399881__("159b"),__nested_webpack_require_2399881__("ddb0"),__nested_webpack_require_2399881__("2b3d");var _slicedToArray=__nested_webpack_require_2399881__("278c");__nested_webpack_require_2399881__("96cf");var _asyncToGenerator=__nested_webpack_require_2399881__("c973"),_toConsumableArray=__nested_webpack_require_2399881__("448a"),_createForOfIteratorHelper=__nested_webpack_require_2399881__("6374"),_classCallCheck=__nested_webpack_require_2399881__("970b"),_createClass=__nested_webpack_require_2399881__("5bc3"),_typeof=__nested_webpack_require_2399881__("7037");Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _util=__nested_webpack_require_2399881__("dacc"),_display_utils=__nested_webpack_require_2399881__("61a8"),_font_loader=__nested_webpack_require_2399881__("c225"),_api_compatibility=__nested_webpack_require_2399881__("b3d5"),_canvas=__nested_webpack_require_2399881__("7a15"),_worker_options=__nested_webpack_require_2399881__("52f8"),_is_node=__nested_webpack_require_2399881__("eca3"),_message_handler=__nested_webpack_require_2399881__("8139"),_metadata=__nested_webpack_require_2399881__("9974"),_transport_stream=__nested_webpack_require_2399881__("e02d"),_webgl=__nested_webpack_require_2399881__("7fc1"),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,r=new PDFDocumentLoadingTask;if("string"===typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var n=Object.create(null),a=null,i=null;for(var o in t)if("url"!==o||"undefined"===typeof window)if("range"!==o)if("worker"!==o)if("data"!==o||t[o]instanceof Uint8Array)n[o]=t[o];else{var s=t[o];if("string"===typeof s)n[o]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");n[o]=new Uint8Array(s)}else n[o]=new Uint8Array(s)}else i=t[o];else a=t[o];else n[o]=new URL(t[o],window.location).href;n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.pdfBug=!0===n.pdfBug;var l=Object.values(_util.NativeImageDecoding);if(void 0!==n.nativeImageDecoderSupport&&l.includes(n.nativeImageDecoderSupport)||(n.nativeImageDecoderSupport=_api_compatibility.apiCompatibilityParams.nativeImageDecoderSupport||_util.NativeImageDecoding.DECODE),Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),"boolean"!==typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!==typeof n.disableFontFace&&(n.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!==typeof n.disableRange&&(n.disableRange=!1),"boolean"!==typeof n.disableStream&&(n.disableStream=!1),"boolean"!==typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),"boolean"!==typeof n.disableCreateObjectURL&&(n.disableCreateObjectURL=_api_compatibility.apiCompatibilityParams.disableCreateObjectURL||!1),(0,_util.setVerbosityLevel)(n.verbosity),!i){var c={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};i=c.port?PDFWorker.fromPort(c):new PDFWorker(c),r._worker=i}var u=r.docId;return i.promise.then((function(){if(r.destroyed)throw new Error("Loading aborted");return _fetchDocument(i,n,a,u).then((function(e){if(r.destroyed)throw new Error("Loading aborted");var t;a?t=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,disableRange:n.disableRange,disableStream:n.disableStream},a):n.data||(t=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream}));var o=new _message_handler.MessageHandler(u,e,i.port);o.postMessageTransfers=i.postMessageTransfers;var s=new WorkerTransport(o,r,t,n);r._transport=s,o.send("Ready",null)}))})).catch(r._capability.reject),r}function _fetchDocument(e,t,r,n){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(r&&(t.length=r.length,t.initialData=r.initialData,t.progressiveDone=r.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.4.456",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,disableCreateObjectURL:t.disableCreateObjectURL,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported}).then((function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t})))}var PDFDocumentLoadingTask=function(){var e=0,t=function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var e=this;this.destroyed=!0;var t=this._transport?this._transport.destroy():Promise.resolve();return t.then((function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))}},{key:"then",value:function(e,t){throw new Error("Removed API method: PDFDocumentLoadingTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._capability.promise}}]),t}();return t}(),PDFDataRangeTransport=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var r,n=_createForOfIteratorHelper(this._rangeListeners);try{for(n.s();!(r=n.n()).done;){var a=r.value;a(e,t)}}catch(i){n.e(i)}finally{n.f()}}},{key:"onDataProgress",value:function(e,t){var r=this;this._readyCapability.promise.then((function(){var n,a=_createForOfIteratorHelper(r._progressListeners);try{for(a.s();!(n=a.n()).done;){var i=n.value;i(e,t)}}catch(o){a.e(o)}finally{a.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var r,n=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;){var a=r.value;a(e)}}catch(i){n.e(i)}finally{n.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,r=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(r.s();!(t=r.n()).done;){var n=t.value;n()}}catch(a){r.e(a)}finally{r.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,r){_classCallCheck(this,e),this._pdfInfo=t,this._transport=r}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(e){return e&&e.dest?e.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,r,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=e.rotation,n=void 0===r?this.rotate:r,a=e.offsetX,i=void 0===a?0:a,o=e.offsetY,s=void 0===o?0:o,l=e.dontFlip,c=void 0!==l&&l;if(arguments.length>1||"number"===typeof arguments[0])throw new Error("PDFPageProxy.getViewport is called with obsolete arguments.");return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:n,offsetX:i,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,r=void 0===t?null:t;return this.annotationsPromise&&this.annotationsIntent===r||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this.annotationsIntent=r),this.annotationsPromise}},{key:"render",value:function(e){var t=this,r=e.canvasContext,n=e.viewport,a=e.intent,i=void 0===a?"display":a,o=e.enableWebGL,s=void 0!==o&&o,l=e.renderInteractiveForms,c=void 0!==l&&l,u=e.transform,d=void 0===u?null:u,h=e.imageLayer,f=void 0===h?null:h,p=e.canvasFactory,g=void 0===p?null:p,v=e.background,m=void 0===v?null:v;this._stats&&this._stats.time("Overall");var b="print"===i?"print":"display";this.pendingCleanup=!1,this.intentStates[b]||(this.intentStates[b]=Object.create(null));var y=this.intentStates[b];y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);var w=g||new _display_utils.DOMCanvasFactory,_=new _webgl.WebGLContext({enable:s});y.displayReadyCapability||(y.displayReadyCapability=(0,_util.createPromiseCapability)(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:b,renderInteractiveForms:!0===c}));var k=function(e){var r=y.renderTasks.indexOf(x);r>=0&&y.renderTasks.splice(r,1),(t.cleanupAfterRender||"print"===b)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(x.capability.reject(e),t._abortOperatorList({intentState:y,reason:e})):x.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},x=new InternalRenderTask({callback:k,params:{canvasContext:r,viewport:n,transform:d,imageLayer:f,background:m},objs:this.objs,commonObjs:this.commonObjs,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:w,webGLContext:_,useRequestAnimationFrame:"print"!==b,pdfBug:this._pdfBug});y.renderTasks||(y.renderTasks=[]),y.renderTasks.push(x);var S=x.task;return y.displayReadyCapability.promise.then((function(e){t.pendingCleanup?k():(t._stats&&t._stats.time("Rendering"),x.initializeGraphics(e),x.operatorListChanged())})).catch(k),S}},{key:"getOperatorList",value:function(){function e(){if(n.operatorList.lastChunk){n.opListReadCapability.resolve(n.operatorList);var e=n.renderTasks.indexOf(r);e>=0&&n.renderTasks.splice(e,1)}}var t="oplist";this.intentStates[t]||(this.intentStates[t]=Object.create(null));var r,n=this.intentStates[t];return n.opListReadCapability||(r={},r.operatorListChanged=e,n.opListReadCapability=(0,_util.createPromiseCapability)(),n.renderTasks=[],n.renderTasks.push(r),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:t})),n.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,r=void 0!==t&&t,n=e.disableCombineTextItems,a=void 0!==n&&n,i=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==a},{highWaterMark:i,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise((function(e,r){function n(){a.read().then((function(t){var r,a=t.value,o=t.done;o?e(i):(Object.assign(i.styles,a.styles),(r=i.items).push.apply(r,_toConsumableArray(a.items)),n())}),r)}var a=t.getReader(),i={items:[],styles:Object.create(null)};n()}))}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach((function(r){var n=e.intentStates[r];e._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach((function(e){var r=e.capability.promise.catch((function(){}));t.push(r),e.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(t){var r=e.intentStates[t];return 0!==r.renderTasks.length||!r.operatorList.lastChunk})))&&(Object.keys(this.intentStates).forEach((function(t){delete e.intentStates[t]})),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(e,t){var r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var r=0,n=e.length;r<n;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r]);t.operatorList.lastChunk=e.lastChunk;for(var a=0;a<t.renderTasks.length;a++)t.renderTasks[a].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var r=this._transport.messageHandler.sendWithStream("GetOperatorList",e),n=r.getReader(),a=this.intentStates[e.intent];a.streamReader=n;var i=function e(){n.read().then((function(r){var n=r.value,i=r.done;i?a.streamReader=null:t._transport.destroyed||(t._renderPageChunk(n,a),e())}),(function(e){if(a.streamReader=null,!t._transport.destroyed){if(a.operatorList){a.operatorList.lastChunk=!0;for(var r=0;r<a.renderTasks.length;r++)a.renderTasks[r].operatorListChanged();t._tryCleanup()}if(a.displayReadyCapability)a.displayReadyCapability.reject(e);else{if(!a.opListReadCapability)throw e;a.opListReadCapability.reject(e)}}}))};i()}},{key:"_abortOperatorList",value:function(e){var t=this,r=e.intentState,n=e.reason,a=e.force,i=void 0!==a&&a;if((0,_util.assert)(n instanceof Error||"object"===_typeof(n)&&null!==n,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),r.streamReader){if(!i){if(0!==r.renderTasks.length)return;if(n instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout((function(){t._abortOperatorList({intentState:r,reason:n,force:!0}),r.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}r.streamReader.cancel(new _util.AbortException(n&&n.message)),r.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some((function(e){return t.intentStates[e]===r&&(delete t.intentStates[e],!0)})),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var r=this;function n(e){if("object"!==_typeof(e)||null===e)return e;if(a.has(e))return a.get(e);var r,i;if((r=e.buffer)&&(0,_util.isArrayBuffer)(r)){var o=t&&t.includes(r);return i=o?new e.constructor(r,e.byteOffset,e.byteLength):new e.constructor(e),a.set(e,i),i}for(var s in i=Array.isArray(e)?[]:{},a.set(e,i),e){var l=void 0,c=e;while(!(l=Object.getOwnPropertyDescriptor(c,s)))c=Object.getPrototypeOf(c);if("undefined"!==typeof l.value)if("function"!==typeof l.value)i[s]=n(l.value);else if(e.hasOwnProperty&&e.hasOwnProperty(s))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(e[s]))}return i}if(this._defer){var a=new WeakMap,i={data:n(e)};this._deferred.then((function(){r._listeners.forEach((function(e){e.call(r,i)}))}))}else this._listeners.forEach((function(t){t.call(r,{data:e})}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="../pdf.worker.js";else if("object"===("undefined"===typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref8=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var mainWorkerMessageHandler,worker;return regeneratorRuntime.wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}}),_callee)})));return function(){return _ref8.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=void 0===r?null:r,a=t.port,i=void 0===a?null:a,o=t.verbosity,s=void 0===o?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,e),i&&pdfWorkerPorts.has(i))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,i)return pdfWorkerPorts.set(i,this),void this._initializeFromPort(i);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var r=new Worker(t),n=new _message_handler.MessageHandler("main","worker",r),a=function(){r.removeEventListener("error",i),n.destroy(),r.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},i=function(){e._webWorker||a()};r.addEventListener("error",i),n.on("test",(function(t){r.removeEventListener("error",i),e.destroyed?a():t?(e._messageHandler=n,e._port=r,e._webWorker=r,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),n.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),n.destroy(),r.terminate())})),n.on("ready",(function(t){if(r.removeEventListener("error",i),e.destroyed)a();else try{o()}catch(n){e._setupFakeWorker()}}));var o=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{n.send("test",t,[t.buffer])}catch(r){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,n.send("test",t)}};return void o()}catch(s){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var r=new LoopbackPort;e._port=r;var n="fake"+nextFakeWorkerId++,a=new _message_handler.MessageHandler(n+"_worker",n,r);t.setup(a,r);var i=new _message_handler.MessageHandler(n,n+"_worker",r);e._messageHandler=i,e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})}})).catch((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,r,n,a){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=a,this.CMapReaderFactory=new a.CMapReaderFactory({baseUrl:a.cMapUrl,isCompressed:a.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach((function(e){e&&t.push(e._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then((function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,r=this.loadingTask;t.on("GetReader",(function(t,r){(0,_util.assert)(e._networkStream),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},r.onPull=function(){e._fullReader.read().then((function(e){var t=e.value,n=e.done;n?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),r.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){r.error(e)}))},r.onCancel=function(t){e._fullReader.cancel(t)}})),t.on("ReaderHeadersReady",(function(t){var n=(0,_util.createPromiseCapability)(),a=e._fullReader;return a.headersReady.then((function(){a.isStreamingSupported&&a.isRangeSupported||(e._lastProgress&&r.onProgress&&r.onProgress(e._lastProgress),a.onProgress=function(e){r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),n.reject),n.promise})),t.on("GetRangeReader",(function(t,r){(0,_util.assert)(e._networkStream);var n=e._networkStream.getRangeReader(t.begin,t.end);n?(r.onPull=function(){n.read().then((function(e){var t=e.value,n=e.done;n?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),r.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){r.error(e)}))},r.onCancel=function(e){n.cancel(e)}):r.close()})),t.on("GetDoc",(function(t){var n=t.pdfInfo;e._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break}r._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var n=function(t){e._passwordCapability.resolve({password:t})};try{r.onPassword(n,t.code)}catch(a){e._passwordCapability.reject(a)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){r.onProgress&&r.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){if(!e.destroyed){var r=e.pageCache[t.pageIndex];r._startRenderPage(t.transparency,t.intent)}})),t.on("commonobj",(function(r){if(!e.destroyed){var n=_slicedToArray(r,3),a=n[0],i=n[1],o=n[2];if(!e.commonObjs.has(a))switch(i){case"Font":var s=e._params;if("error"in o){var l=o.error;(0,_util.warn)("Error during font loading: ".concat(l)),e.commonObjs.resolve(a,l);break}var c=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var u=new _font_loader.FontFaceObject(o,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(u).then((function(){e.commonObjs.resolve(a,u)}),(function(r){t.sendWithPromise("FontFallback",{id:a}).finally((function(){e.commonObjs.resolve(a,u)}))}));break;case"FontPath":case"FontType3Res":e.commonObjs.resolve(a,o);break;default:throw new Error("Got unknown common object type ".concat(i))}}})),t.on("obj",(function(t){if(!e.destroyed){var r=_slicedToArray(t,4),n=r[0],a=r[1],i=r[2],o=r[3],s=e.pageCache[a];if(!s.objs.has(n))switch(i){case"JpegStream":return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=function(){t(new Error("Error during JPEG image loading")),(0,_display_utils.releaseImageResources)(r)},r.src=o})).then((function(e){s.objs.resolve(n,e)}));case"Image":s.objs.resolve(n,o);var l=8e6;o&&"data"in o&&o.data.length>l&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(i))}}})),t.on("DocProgress",(function(t){e.destroyed||r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("JpegDecode",(function(t){if(e.destroyed)return Promise.reject(new Error("Worker was destroyed"));if("undefined"===typeof document)return Promise.reject(new Error('"document" is not defined.'));var r=_slicedToArray(t,2),n=r[0],a=r[1];return 3!==a&&1!==a?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise((function(e,t){var r=new Image;r.onload=function(){var t=r.width,n=r.height,i=t*n,o=4*i,s=new Uint8ClampedArray(i*a),l=document.createElement("canvas");l.width=t,l.height=n;var c=l.getContext("2d");c.drawImage(r,0,0);var u=c.getImageData(0,0,t,n).data;if(3===a)for(var d=0,h=0;d<o;d+=4,h+=3)s[h]=u[d],s[h+1]=u[d+1],s[h+2]=u[d+2];else if(1===a)for(var f=0,p=0;f<o;f+=4,p++)s[p]=u[f];e({data:s,width:t,height:n}),(0,_display_utils.releaseImageResources)(r),l.width=0,l.height=0,l=null,c=null},r.onerror=function(){t(new Error("JpegDecode failed to load image")),(0,_display_utils.releaseImageResources)(r)},r.src=n}))})),t.on("FetchBuiltInCMap",(function(t,r){if(e.destroyed)r.error(new Error("Worker was destroyed"));else{var n=!1;r.onPull=function(){n?r.close():(n=!0,e.CMapReaderFactory.fetch(t).then((function(e){r.enqueue(e,1,[e.cMapData.buffer])})).catch((function(e){r.error(e)})))}}}))}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var r=e-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,e,t,t._params.pdfBug);return t.pageCache[r]=n,n}));return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var t=0,r=e.pageCache.length;t<r;t++){var n=e.pageCache[t];if(n){var a=n.cleanup();if(!a)throw new Error("startCleanup: Page ".concat(t+1," is currently rendering."))}}e.commonObjs.clear(),e.fontLoader.clear()}))}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableCreateObjectURL:e.disableCreateObjectURL,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport})}}]),e}(),PDFObjects=function(){function e(){_classCallCheck(this,e),this._objs=Object.create(null)}return _createClass(e,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var r=this._objs[e];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return r.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var r=this._ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)}},{key:"clear",value:function(){for(var e in this._objs){var t=this._objs[e].data;"undefined"!==typeof Image&&t instanceof Image&&(0,_display_utils.releaseImageResources)(t)}this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"then",value:function(e,t){throw new Error("Removed API method: RenderTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=function(){var e=new WeakSet,t=function(){function t(e){var r=e.callback,n=e.params,a=e.objs,i=e.commonObjs,o=e.operatorList,s=e.pageIndex,l=e.canvasFactory,c=e.webGLContext,u=e.useRequestAnimationFrame,d=void 0!==u&&u,h=e.pdfBug,f=void 0!==h&&h;_classCallCheck(this,t),this.callback=r,this.params=n,this.objs=a,this.commonObjs=i,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.webGLContext=c,this._pdfBug=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===d&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,a=r.viewport,i=r.transform,o=r.imageLayer,s=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,o),this.gfx.beginDrawing({transform:i,viewport:a,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound().catch(e.cancel.bind(e))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));function r(){return t.apply(this,arguments)}return r}()}]),t}();return t}(),version="2.4.456";exports.version=version;var build="228a591c";exports.build=build},9861:function(e,t,r){"use strict";r("e260");var n=r("23e7"),a=r("d066"),i=r("0d3b"),o=r("6eeb"),s=r("e2cc"),l=r("d44e"),c=r("9ed3"),u=r("69f3"),d=r("19aa"),h=r("5135"),f=r("0366"),p=r("f5df"),g=r("825a"),v=r("861d"),m=r("7c73"),b=r("5c6c"),y=r("9a1f"),w=r("35a1"),_=r("b622"),k=a("fetch"),x=a("Headers"),S=_("iterator"),A="URLSearchParams",C=A+"Iterator",P=u.set,T=u.getterFor(A),E=u.getterFor(C),R=/\+/g,I=Array(4),O=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},L=function(e){try{return decodeURIComponent(e)}catch(t){return e}},F=function(e){var t=e.replace(R," "),r=4;try{return decodeURIComponent(t)}catch(n){while(r)t=t.replace(O(r--),L);return t}},M=/[!'()~]|%20/g,D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(e){return D[e]},B=function(e){return encodeURIComponent(e).replace(M,N)},U=function(e,t){if(t){var r,n,a=t.split("&"),i=0;while(i<a.length)r=a[i++],r.length&&(n=r.split("="),e.push({key:F(n.shift()),value:F(n.join("="))}))}},j=function(e){this.entries.length=0,U(this.entries,e)},q=function(e,t){if(e<t)throw TypeError("Not enough arguments")},z=c((function(e,t){P(this,{type:C,iterator:y(T(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r})),V=function(){d(this,V,A);var e,t,r,n,a,i,o,s,l,c=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(P(u,{type:A,entries:f,updateURL:function(){},updateSearchParams:j}),void 0!==c)if(v(c))if(e=w(c),"function"===typeof e){t=e.call(c),r=t.next;while(!(n=r.call(t)).done){if(a=y(g(n.value)),i=a.next,(o=i.call(a)).done||(s=i.call(a)).done||!i.call(a).done)throw TypeError("Expected sequence with length 2");f.push({key:o.value+"",value:s.value+""})}}else for(l in c)h(c,l)&&f.push({key:l,value:c[l]+""});else U(f,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=V.prototype;s(W,{append:function(e,t){q(arguments.length,2);var r=T(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){q(arguments.length,1);var t=T(this),r=t.entries,n=e+"",a=0;while(a<r.length)r[a].key===n?r.splice(a,1):a++;t.updateURL()},get:function(e){q(arguments.length,1);for(var t=T(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){q(arguments.length,1);for(var t=T(this).entries,r=e+"",n=[],a=0;a<t.length;a++)t[a].key===r&&n.push(t[a].value);return n},has:function(e){q(arguments.length,1);var t=T(this).entries,r=e+"",n=0;while(n<t.length)if(t[n++].key===r)return!0;return!1},set:function(e,t){q(arguments.length,1);for(var r,n=T(this),a=n.entries,i=!1,o=e+"",s=t+"",l=0;l<a.length;l++)r=a[l],r.key===o&&(i?a.splice(l--,1):(i=!0,r.value=s));i||a.push({key:o,value:s}),n.updateURL()},sort:function(){var e,t,r,n=T(this),a=n.entries,i=a.slice();for(a.length=0,r=0;r<i.length;r++){for(e=i[r],t=0;t<r;t++)if(a[t].key>e.key){a.splice(t,0,e);break}t===r&&a.push(e)}n.updateURL()},forEach:function(e){var t,r=T(this).entries,n=f(e,arguments.length>1?arguments[1]:void 0,3),a=0;while(a<r.length)t=r[a++],n(t.value,t.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),o(W,S,W.entries),o(W,"toString",(function(){var e,t=T(this).entries,r=[],n=0;while(n<t.length)e=t[n++],r.push(B(e.key)+"="+B(e.value));return r.join("&")}),{enumerable:!0}),l(V,A),n({global:!0,forced:!i},{URLSearchParams:V}),i||"function"!=typeof k||"function"!=typeof x||n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,r,n,a=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(r=t.body,p(r)===A&&(n=t.headers?new x(t.headers):new x,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:b(0,String(r)),headers:b(0,n)}))),a.push(t)),k.apply(this,a)}}),e.exports={URLSearchParams:V,getState:T}},9974:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("e260"),r("4ec9"),r("d3b7"),r("ac1f"),r("25f0"),r("3ca3"),r("5319"),r("498a"),r("ddb0");var n=r("278c"),a=r("6374"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var s=r("dacc"),l=r("74f1"),c=function(){function e(t){i(this,e),(0,s.assert)("string"===typeof t,"Metadata: input is not a string"),t=this._repair(t);var r=new l.SimpleXMLParser,n=r.parseFromString(t);this._metadataMap=new Map,n&&this._parse(n)}return o(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),n="",a=0,i=r.length;a<i;a+=2){var o=256*r.charCodeAt(a)+r.charCodeAt(a+1);n+=o>=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+n}))}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase()){t=t.firstChild;while(t&&"rdf:rdf"!==t.nodeName.toLowerCase())t=t.nextSibling}var r=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===r&&t.hasChildNodes())for(var n=t.childNodes,a=0,i=n.length;a<i;a++){var o=n[a];if("rdf:description"===o.nodeName.toLowerCase())for(var s=0,l=o.childNodes.length;s<l;s++)if("#text"!==o.childNodes[s].nodeName.toLowerCase()){var c=o.childNodes[s],u=c.nodeName.toLowerCase();this._metadataMap.set(u,c.textContent.trim())}}}},{key:"get",value:function(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}},{key:"getAll",value:function(){var e,t=Object.create(null),r=a(this._metadataMap);try{for(r.s();!(e=r.n()).done;){var i=n(e.value,2),o=i[0],s=i[1];t[o]=s}}catch(l){r.e(l)}finally{r.f()}return t}},{key:"has",value:function(e){return this._metadataMap.has(e)}}]),e}();t.Metadata=c},"99af":function(e,t,r){"use strict";var n=r("23e7"),a=r("d039"),i=r("e8b5"),o=r("861d"),s=r("7b0b"),l=r("50c4"),c=r("8418"),u=r("65f0"),d=r("1dde"),h=r("b622"),f=r("2d00"),p=h("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=f>=51||!a((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=d("concat"),y=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:i(e)},w=!m||!b;n({target:"Array",proto:!0,forced:w},{concat:function(e){var t,r,n,a,i,o=s(this),d=u(o,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(i=-1===t?o:arguments[t],y(i)){if(a=l(i.length),h+a>g)throw TypeError(v);for(r=0;r<a;r++,h++)r in i&&c(d,h,i[r])}else{if(h>=g)throw TypeError(v);c(d,h++,i)}return d.length=h,d}})},"9a0c":function(e,t,r){var n=r("342f");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},"9a1f":function(e,t,r){var n=r("825a"),a=r("35a1");e.exports=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},"9a29":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayManager=void 0;var o=function(){function e(){a(this,e),this._overlays={},this._active=null,this._keyDownBound=this._keyDown.bind(this)}return i(e,[{key:"register",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r){var n,a,i,o=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=o.length>2&&void 0!==o[2]?o[2]:null,a=o.length>3&&void 0!==o[3]&&o[3],t&&r&&(i=r.parentNode)){e.next=6;break}throw new Error("Not enough parameters.");case 6:if(!this._overlays[t]){e.next=8;break}throw new Error("The overlay is already registered.");case 8:this._overlays[t]={element:r,container:i,callerCloseMethod:n,canForceClose:a};case 9:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"unregister",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this._overlays[t]){e.next=4;break}throw new Error("The overlay does not exist.");case 4:if(this._active!==t){e.next=6;break}throw new Error("The overlay cannot be removed while it is active.");case 6:delete this._overlays[t];case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"open",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this._overlays[t]){e.next=4;break}throw new Error("The overlay does not exist.");case 4:if(!this._active){e.next=14;break}if(!this._overlays[t].canForceClose){e.next=9;break}this._closeThroughCaller(),e.next=14;break;case 9:if(this._active!==t){e.next=13;break}throw new Error("The overlay is already active.");case 13:throw new Error("Another overlay is currently active.");case 14:this._active=t,this._overlays[this._active].element.classList.remove("hidden"),this._overlays[this._active].container.classList.remove("hidden"),window.addEventListener("keydown",this._keyDownBound);case 18:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"close",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this._overlays[t]){e.next=4;break}throw new Error("The overlay does not exist.");case 4:if(this._active){e.next=8;break}throw new Error("The overlay is currently not active.");case 8:if(this._active===t){e.next=10;break}throw new Error("Another overlay is currently active.");case 10:this._overlays[this._active].container.classList.add("hidden"),this._overlays[this._active].element.classList.add("hidden"),this._active=null,window.removeEventListener("keydown",this._keyDownBound);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_keyDown",value:function(e){this._active&&27===e.keyCode&&(this._closeThroughCaller(),e.preventDefault())}},{key:"_closeThroughCaller",value:function(){this._overlays[this._active].callerCloseMethod&&this._overlays[this._active].callerCloseMethod(),this._active&&this.close(this._active)}},{key:"active",get:function(){return this._active}}]),e}();t.OverlayManager=o},"9a8c":function(e,t,r){"use strict";var n=r("ebb5"),a=r("145e"),i=n.aTypedArray,o=n.exportTypedArrayMethod;o("copyWithin",(function(e,t){return a.call(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9b42":function(e,t,r){function n(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),e.exports=n},"9bdd":function(e,t,r){var n=r("825a");e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(o){var i=e["return"];throw void 0!==i&&n(i.call(e)),o}}},"9bf2":function(e,t,r){var n=r("83ab"),a=r("0cfb"),i=r("825a"),o=r("c04e"),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(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},"9e3b":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("b680");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var i=r("0496"),o=r("a3cd"),s=300,l=function(){function e(t){var r=t.textLayerDiv,a=t.eventBus,o=t.pageIndex,s=t.viewport,l=t.findController,c=void 0===l?null:l,u=t.enhanceTextSelection,d=void 0!==u&&u;n(this,e),this.textLayerDiv=r,this.eventBus=a||(0,i.getGlobalEventBus)(),this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=o,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=s,this.textDivs=[],this.findController=c,this.textLayerRenderTask=null,this.enhanceTextSelection=d,this._onUpdateTextLayerMatches=null,this._bindMouse()}return a(e,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var r=document.createDocumentFragment();this.textLayerRenderTask=(0,o.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:r,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((function(){e.textLayerDiv.appendChild(r),e._finishRendering(),e._updateMatches()}),(function(e){})),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var r=this.findController,n=this.textContentItemsStr,a=0,i=0,o=n.length-1,s=r.state.query.length,l=[],c=0,u=e.length;c<u;c++){var d=e[c];while(a!==o&&d>=i+n[a].length)i+=n[a].length,a++;a===n.length&&console.error("Could not find a matching mapping");var h={begin:{divIdx:a,offset:d-i}};d+=t?t[c]:s;while(a!==o&&d>i+n[a].length)i+=n[a].length,a++;h.end={divIdx:a,offset:d-i},l.push(h)}return l}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,r=this.pageIdx,n=this.textContentItemsStr,a=this.textDivs,i=r===t.selected.pageIdx,o=t.selected.matchIdx,s=t.state.highlightAll,l=null,c={divIdx:-1,offset:void 0},u=o,d=u+1;if(s)u=0,d=e.length;else if(!i)return;for(var h=u;h<d;h++){var f=e[h],p=f.begin,g=f.end,v=i&&h===o,m=v?" selected":"";if(v&&t.scrollMatchIntoView({element:a[p.divIdx],pageIndex:r,matchIndex:o}),l&&p.divIdx===l.divIdx?_(l.divIdx,l.offset,p.offset):(null!==l&&_(l.divIdx,l.offset,c.offset),w(p)),p.divIdx===g.divIdx)_(p.divIdx,p.offset,g.offset,"highlight"+m);else{_(p.divIdx,p.offset,c.offset,"highlight begin"+m);for(var b=p.divIdx+1,y=g.divIdx;b<y;b++)a[b].className="highlight middle"+m;w(g,"highlight end"+m)}l=g}l&&_(l.divIdx,l.offset,c.offset)}function w(e,t){var r=e.divIdx;a[r].textContent="",_(r,0,e.offset,t)}function _(e,t,r,i){var o=a[e],s=n[e].substring(t,r),l=document.createTextNode(s);if(i){var c=document.createElement("span");return c.className=i,c.appendChild(l),void o.appendChild(c)}o.appendChild(l)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var e=this.findController,t=this.matches,r=this.pageIdx,n=this.textContentItemsStr,a=this.textDivs,i=-1,o=0,s=t.length;o<s;o++){for(var l=t[o],c=Math.max(i,l.begin.divIdx),u=c,d=l.end.divIdx;u<=d;u++){var h=a[u];h.textContent=n[u],h.className=""}i=l.end.divIdx+1}if(e&&e.highlightMatches){var f=e.pageMatches[r]||null,p=e.pageMatchesLength[r]||null;this.matches=this._convertMatches(f,p),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var e=this,t=this.textLayerDiv,r=null;t.addEventListener("mousedown",(function(n){if(e.enhanceTextSelection&&e.textLayerRenderTask)return e.textLayerRenderTask.expandTextDivs(!0),void(r&&(clearTimeout(r),r=null));var a=t.querySelector(".endOfContent");if(a){var i=n.target!==t;if(i=i&&"none"!==window.getComputedStyle(a).getPropertyValue("-moz-user-select"),i){var o=t.getBoundingClientRect(),s=Math.max(0,(n.pageY-o.top)/o.height);a.style.top=(100*s).toFixed(2)+"%"}a.classList.add("active")}})),t.addEventListener("mouseup",(function(){if(e.enhanceTextSelection&&e.textLayerRenderTask)r=setTimeout((function(){e.textLayerRenderTask&&e.textLayerRenderTask.expandTextDivs(!1),r=null}),s);else{var n=t.querySelector(".endOfContent");n&&(n.style.top="",n.classList.remove("active"))}}))}}]),e}();t.TextLayerBuilder=l;var c=function(){function e(){n(this,e)}return a(e,[{key:"createTextLayerBuilder",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;return new l({textLayerDiv:e,pageIndex:t,viewport:r,enhanceTextSelection:n,eventBus:a})}}]),e}();t.DefaultTextLayerFactory=c},"9e56":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("d3b7"),r("e6cf"),r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,r("b87b");var o=document.webL10n,s=function(){function e(t){a(this,e),this._lang=t,this._ready=new Promise((function(e,r){o.setLanguage(t,(function(){e(o)}))}))}return i(e,[{key:"getLanguage",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getLanguage());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDirection",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getDirection());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"get",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return a=e.sent,e.abrupt("return",a.get(t,r,n));case 4:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{key:"translate",value:function(){var e=n(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return r=e.sent,e.abrupt("return",r.translate(t));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();t.GenericL10n=s},"9ed3":function(e,t,r){"use strict";var n=r("ae93").IteratorPrototype,a=r("7c73"),i=r("5c6c"),o=r("d44e"),s=r("3f8c"),l=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=a(n,{next:i(1,r)}),o(e,c,!1,!0),s[c]=l,e}},"9eea":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("a9e3"),r("8ba4"),r("9129"),r("cca6"),r("b64b"),r("d3b7"),r("e6cf"),r("ac1f"),r("1276"),r("2ca0");var n=r("7037"),a=r("278c"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.isDestHashesEqual=f,t.isDestArraysEqual=p,t.PDFHistory=void 0;var s=r("0496"),l=1e3,c=50,u=1e3;function d(){return document.location.hash}var h=function(){function e(t){var r=this,n=t.linkService,a=t.eventBus;i(this,e),this.linkService=n,this.eventBus=a||(0,s.getGlobalEventBus)(),this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",(function(e){r._isViewerInPresentationMode=e.active||e.switchInProgress})),this.eventBus._on("pagesinit",(function(){r._isPagesLoaded=!1;var e=function e(t){r.eventBus._off("pagesloaded",e),r._isPagesLoaded=!!t.pagesCount};r.eventBus._on("pagesloaded",e)}))}return o(e,[{key:"initialize",value:function(e){var t=e.fingerprint,r=e.resetHistory,n=void 0!==r&&r,a=e.updateUrl,i=void 0!==a&&a;if(t&&"string"===typeof t){this._initialized&&this.reset();var o=""!==this._fingerprint&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=!0===i,this._initialized=!0,this._bindEvents();var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=d(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(s,!0)||n){var l=this._parseCurrentHash(),c=l.hash,u=l.page,h=l.rotation;return!c||o||n?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:c,page:u,rotation:h},!0)}var f=s.destination;this._updateInternalState(f,s.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==f.rotation&&(this._initialRotation=f.rotation),f.dest?(this._initialBookmark=JSON.stringify(f.dest),this._destination.page=null):f.hash?this._initialBookmark=f.hash:f.page&&(this._initialBookmark="page=".concat(f.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(e){var t=this,r=e.namedDest,n=void 0===r?null:r,a=e.explicitDest,i=e.pageNumber;if(this._initialized)if(n&&"string"!==typeof n)console.error("PDFHistory.push: "+'"'.concat(n,'" is not a valid namedDest parameter.'));else if(Array.isArray(a))if(Number.isInteger(i)&&i>0&&i<=this.linkService.pagesCount||null===i&&!this._destination){var o=n||JSON.stringify(a);if(o){var s=!1;if(this._destination&&(f(this._destination.hash,o)||p(this._destination.dest,a))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:a,hash:o,page:i,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((function(){t._popStateInProgress=!1}))))}}else console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(a,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r||!this._destination,a={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};if(this._updateInternalState(e,a.uid),this._updateUrl&&e&&e.hash){var i=document.location.href.split("#")[0];i.startsWith("file://")||(t="".concat(i,"#").concat(e.hash))}n?window.history.replaceState(a,"",t):(this._maxUid=this._uid,window.history.pushState(a,"",t))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(c<=0||this._numPositionUpdates<=c))){var r=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest||!this._destination.first)return;r=!0}this._pushOrReplaceState(t,r)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;if("string"!==typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;var r=performance.getEntriesByType("navigation"),i=a(r,1),o=i[0];if(!o||"reload"!==o.type)return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&(null!==e.destination&&"object"===n(e.destination))}},{key:"_updateInternalState",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),r&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var e=unescape(d()).substring(1),t=0|(0,s.parseQueryString)(e).page;return Number.isInteger(t)&&t>0&&t<=this.linkService.pagesCount||(t=null),{hash:e,page:t,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(e){var t=this,r=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(r.pageNumber):r.pdfOpenParams.substring(1),page:this.linkService.page,first:r.pageNumber,rotation:r.rotation},this._popStateInProgress||(c>0&&this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,u>0&&(this._updateViewareaTimeout=setTimeout((function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null}),u)))}},{key:"_popState",value:function(e){var t=this,r=e.state,n=d(),a=this._currentHash!==n;if(this._currentHash=n,r){if(this._isValidState(r)){this._popStateInProgress=!0,a&&(this._blockHashChange++,(0,s.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:l}).then((function(){t._blockHashChange--})));var i=r.destination;this._updateInternalState(i,r.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,s.isValidRotation)(i.rotation)&&(this.linkService.rotation=i.rotation),i.dest?this.linkService.navigateTo(i.dest):i.hash?this.linkService.setHash(i.hash):i.page&&(this.linkService.page=i.page),Promise.resolve().then((function(){t._popStateInProgress=!1}))}}else{this._uid++;var o=this._parseCurrentHash(),c=o.hash,u=o.page,h=o.rotation;this._pushOrReplaceState({hash:c,page:u,rotation:h},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}]),e}();function f(e,t){if("string"!==typeof e||"string"!==typeof t)return!1;if(e===t)return!0;var r=(0,s.parseQueryString)(e),n=r.nameddest;return n===t}function p(e,t){function r(e,t){if(n(e)!==n(t))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===n(e)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var a in e)if(!r(e[a],t[a]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var a=0,i=e.length;a<i;a++)if(!r(e[a],t[a]))return!1;return!0}t.PDFHistory=h},"9f70":function(e,t,r){var n=r("36c6");function a(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=n(e),null===e)break;return e}e.exports=a},"9f7f":function(e,t,r){"use strict";var n=r("d039");function a(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9fbe":function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("a630"),r("c975"),r("e260"),r("a15b"),r("fb6a"),r("d3b7"),r("4d63"),r("ac1f"),r("25f0"),r("3ca3"),r("5319"),r("1276"),r("2ca0"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7");var n=r("278c");function a(e){var t=!0,r=s("filename\\*","i").exec(e);if(r){r=r[1];var a=d(r);return a=unescape(a),a=h(a),a=f(a),c(a)}if(r=u(e),r){var i=f(r);return c(i)}if(r=s("filename","i").exec(e),r){r=r[1];var o=d(r);return o=f(o),c(o)}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function l(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r))return r;try{var n=new TextDecoder(e,{fatal:!0}),a=Array.from(r,(function(e){return 255&e.charCodeAt(0)}));r=n.decode(new Uint8Array(a)),t=!1}catch(i){if(/^utf-?8$/i.test(e))try{r=decodeURIComponent(escape(r)),t=!1}catch(o){}}}return r}function c(e){return t&&/[\x80-\xff]/.test(e)&&(e=l("utf-8",e),t&&(e=l("iso-8859-1",e))),e}function u(e){var t,r=[],a=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");while(null!==(t=a.exec(e))){var i=t,o=n(i,4),l=o[1],c=o[2],u=o[3];if(l=parseInt(l,10),l in r){if(0===l)break}else r[l]=[c,u]}for(var f=[],p=0;p<r.length;++p){if(!(p in r))break;var g=n(r[p],2),v=g[0],m=g[1];m=d(m),v&&(m=unescape(m),0===p&&(m=h(m))),f.push(m)}return f.join("")}function d(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),r=0;r<t.length;++r){var n=t[r].indexOf('"');-1!==n&&(t[r]=t[r].slice(0,n),t.length=r+1),t[r]=t[r].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function h(e){var t=e.indexOf("'");if(-1===t)return e;var r=e.slice(0,t),n=e.slice(t+1),a=n.replace(/^[^']*'/,"");return l(r,a)}function f(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,r,n){if("q"===r||"Q"===r)return n=n.replace(/_/g," "),n=n.replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})),l(t,n);try{n=atob(n)}catch(a){}return l(t,n)}))}return""}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=a},a078:function(e,t,r){var n=r("7b0b"),a=r("50c4"),i=r("35a1"),o=r("e95a"),s=r("0366"),l=r("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,r,c,u,d,h,f=n(e),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=i(f);if(void 0!=m&&!o(m)){d=m.call(f),h=d.next,f=[];while(!(u=h.call(d)).done)f.push(u.value)}for(v&&p>2&&(g=s(g,arguments[2],2)),r=a(f.length),c=new(l(this))(r),t=0;r>t;t++)c[t]=v?g(f[t],t):f[t];return c}},a15b:function(e,t,r){"use strict";var n=r("23e7"),a=r("44ad"),i=r("fc6a"),o=r("a640"),s=[].join,l=a!=Object,c=o("join",",");n({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},a176:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,"#sidebarContainer.zero-top[data-v-4aaa9b0d],#sidebarContent.zero-top[data-v-4aaa9b0d],#viewerContainer.zero-top[data-v-4aaa9b0d]{top:0}",""]),e.exports=t},a3cd:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/var n=r("dacc"),a=r("97fb"),i=r("a765"),o=r("ad4c"),s=r("61a8"),l=r("02c5"),c=r("52f8"),u=r("b3d5"),d=r("eca3"),h=d.isNodeJS;if(h){var f=r("458c").PDFNodeStream;a.setPDFNetworkStreamFactory((function(e){return new f(e)}))}else{var p,g=r("88cc").PDFNetworkStream;s.isFetchSupported()&&(p=r("3f9c").PDFFetchStream),a.setPDFNetworkStreamFactory((function(e){return p&&s.isValidFetchUrl(e.url)?new p(e):new g(e)}))}t.build=a.build,t.version=a.version,t.getDocument=a.getDocument,t.LoopbackPort=a.LoopbackPort,t.PDFDataRangeTransport=a.PDFDataRangeTransport,t.PDFWorker=a.PDFWorker,t.renderTextLayer=i.renderTextLayer,t.AnnotationLayer=o.AnnotationLayer,t.createPromiseCapability=n.createPromiseCapability,t.PasswordResponses=n.PasswordResponses,t.InvalidPDFException=n.InvalidPDFException,t.MissingPDFException=n.MissingPDFException,t.SVGGraphics=l.SVGGraphics,t.NativeImageDecoding=n.NativeImageDecoding,t.CMapCompressionType=n.CMapCompressionType,t.PermissionFlag=n.PermissionFlag,t.UnexpectedResponseException=n.UnexpectedResponseException,t.OPS=n.OPS,t.VerbosityLevel=n.VerbosityLevel,t.UNSUPPORTED_FEATURES=n.UNSUPPORTED_FEATURES,t.createValidAbsoluteUrl=n.createValidAbsoluteUrl,t.createObjectURL=n.createObjectURL,t.removeNullCharacters=n.removeNullCharacters,t.shadow=n.shadow,t.Util=n.Util,t.RenderingCancelledException=s.RenderingCancelledException,t.getFilenameFromUrl=s.getFilenameFromUrl,t.LinkTarget=s.LinkTarget,t.addLinkAttributes=s.addLinkAttributes,t.loadScript=s.loadScript,t.PDFDateString=s.PDFDateString,t.GlobalWorkerOptions=c.GlobalWorkerOptions,t.apiCompatibilityParams=u.apiCompatibilityParams},a434:function(e,t,r){"use strict";var n=r("23e7"),a=r("23cb"),i=r("a691"),o=r("50c4"),s=r("7b0b"),l=r("65f0"),c=r("8418"),u=r("1dde"),d=r("ae40"),h=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,v=9007199254740991,m="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!h||!f},{splice:function(e,t){var r,n,u,d,h,f,b=s(this),y=o(b.length),w=a(e,y),_=arguments.length;if(0===_?r=n=0:1===_?(r=0,n=y-w):(r=_-2,n=g(p(i(t),0),y-w)),y+r-n>v)throw TypeError(m);for(u=l(b,n),d=0;d<n;d++)h=w+d,h in b&&c(u,d,b[h]);if(u.length=n,r<n){for(d=w;d<y-n;d++)h=d+n,f=d+r,h in b?b[f]=b[h]:delete b[f];for(d=y;d>y-n+r;d--)delete b[d-1]}else if(r>n)for(d=y-n;d>w;d--)h=d+n-1,f=d+r-1,h in b?b[f]=b[h]:delete b[f];for(d=0;d<r;d++)b[d+w]=arguments[d+2];return b.length=y-n+r,u}})},a4d3:function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),i=r("d066"),o=r("c430"),s=r("83ab"),l=r("4930"),c=r("fdbf"),u=r("d039"),d=r("5135"),h=r("e8b5"),f=r("861d"),p=r("825a"),g=r("7b0b"),v=r("fc6a"),m=r("c04e"),b=r("5c6c"),y=r("7c73"),w=r("df75"),_=r("241c"),k=r("057f"),x=r("7418"),S=r("06cf"),A=r("9bf2"),C=r("d1e7"),P=r("9112"),T=r("6eeb"),E=r("5692"),R=r("f772"),I=r("d012"),O=r("90e3"),L=r("b622"),F=r("e538"),M=r("746f"),D=r("d44e"),N=r("69f3"),B=r("b727").forEach,U=R("hidden"),j="Symbol",q="prototype",z=L("toPrimitive"),V=N.set,W=N.getterFor(j),H=Object[q],G=a.Symbol,Y=i("JSON","stringify"),X=S.f,K=A.f,Z=k.f,J=C.f,Q=E("symbols"),$=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),re=E("wks"),ne=a.QObject,ae=!ne||!ne[q]||!ne[q].findChild,ie=s&&u((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=X(H,t);n&&delete H[t],K(e,t,r),n&&e!==H&&K(H,t,n)}:K,oe=function(e,t){var r=Q[e]=y(G[q]);return V(r,{type:j,tag:e,description:t}),s||(r.description=t),r},se=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof G},le=function(e,t,r){e===H&&le($,t,r),p(e);var n=m(t,!0);return p(r),d(Q,n)?(r.enumerable?(d(e,U)&&e[U][n]&&(e[U][n]=!1),r=y(r,{enumerable:b(0,!1)})):(d(e,U)||K(e,U,b(1,{})),e[U][n]=!0),ie(e,n,r)):K(e,n,r)},ce=function(e,t){p(e);var r=v(t),n=w(r).concat(pe(r));return B(n,(function(t){s&&!de.call(r,t)||le(e,t,r[t])})),e},ue=function(e,t){return void 0===t?y(e):ce(y(e),t)},de=function(e){var t=m(e,!0),r=J.call(this,t);return!(this===H&&d(Q,t)&&!d($,t))&&(!(r||!d(this,t)||!d(Q,t)||d(this,U)&&this[U][t])||r)},he=function(e,t){var r=v(e),n=m(t,!0);if(r!==H||!d(Q,n)||d($,n)){var a=X(r,n);return!a||!d(Q,n)||d(r,U)&&r[U][n]||(a.enumerable=!0),a}},fe=function(e){var t=Z(v(e)),r=[];return B(t,(function(e){d(Q,e)||d(I,e)||r.push(e)})),r},pe=function(e){var t=e===H,r=Z(t?$:v(e)),n=[];return B(r,(function(e){!d(Q,e)||t&&!d(H,e)||n.push(Q[e])})),n};if(l||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=O(e),r=function(e){this===H&&r.call($,e),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),ie(this,t,b(1,e))};return s&&ae&&ie(H,t,{configurable:!0,set:r}),oe(t,e)},T(G[q],"toString",(function(){return W(this).tag})),T(G,"withoutSetter",(function(e){return oe(O(e),e)})),C.f=de,A.f=le,S.f=he,_.f=k.f=fe,x.f=pe,F.f=function(e){return oe(L(e),e)},s&&(K(G[q],"description",{configurable:!0,get:function(){return W(this).description}}),o||T(H,"propertyIsEnumerable",de,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:G}),B(w(re),(function(e){M(e)})),n({target:j,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var r=G(t);return ee[t]=r,te[r]=t,r},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!s},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:he}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),n({target:"Object",stat:!0,forced:u((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(g(e))}}),Y){var ge=!l||u((function(){var e=G();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));n({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,r){var n,a=[e],i=1;while(arguments.length>i)a.push(arguments[i++]);if(n=t,(f(t)||void 0!==e)&&!se(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!se(t))return t}),a[1]=t,Y.apply(null,a)}})}G[q][z]||P(G[q],z,G[q].valueOf),D(G,j),I[U]=!0},a623:function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").every,i=r("a640"),o=r("ae40"),s=i("every"),l=o("every");n({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,r){var n=r("23e7"),a=r("4df4"),i=r("1c7e"),o=!i((function(e){Array.from(e)}));n({target:"Array",stat:!0,forced:o},{from:a})},a640:function(e,t,r){"use strict";var n=r("d039");e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},a6d9:function(e,t,r){var n=r("a176");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("ffab1974",n,!0,{sourceMap:!1,shadowMode:!1})},a765:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("4160"),r("e260"),r("a15b"),r("d81d"),r("a434"),r("6c57"),r("cca6"),r("d3b7"),r("e6cf"),r("a79d"),r("3ca3"),r("4a9b"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("10d1"),r("159b"),r("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var n=r("dacc"),a=function(){var e=1e5,t=/\S/;function r(e){return!t.test(e)}function a(e,t,a){var i=document.createElement("span"),o={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(i),r(t.str))return o.isWhitespace=!0,void e._textDivProperties.set(i,o);var s=n.Util.transform(e._viewport.transform,t.transform),l=Math.atan2(s[1],s[0]),c=a[t.fontName];c.vertical&&(l+=Math.PI/2);var u,d,h=Math.sqrt(s[2]*s[2]+s[3]*s[3]),f=h;if(c.ascent?f=c.ascent*f:c.descent&&(f=(1+c.descent)*f),0===l?(u=s[4],d=s[5]-f):(u=s[4]+f*Math.sin(l),d=s[5]-f*Math.cos(l)),i.style.left="".concat(u,"px"),i.style.top="".concat(d,"px"),i.style.fontSize="".concat(h,"px"),i.style.fontFamily=c.fontFamily,i.textContent=t.str,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==l&&(o.angle=l*(180/Math.PI)),t.str.length>1&&(c.vertical?o.canvasWidth=t.height*e._viewport.scale:o.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(i,o),e._textContentStream&&e._layoutText(i),e._enhanceTextSelection){var p=1,g=0;0!==l&&(p=Math.cos(l),g=Math.sin(l));var v,m,b=(c.vertical?t.height:t.width)*e._viewport.scale,y=h;0!==l?(v=[p,g,-g,p,u,d],m=n.Util.getAxialAlignedBoundingBox([0,0,b,y],v)):m=[u,d,u+b,d+y],e._bounds.push({left:m[0],top:m[1],right:m[2],bottom:m[3],div:i,size:[b,y],m:v})}}function i(t){if(!t._canceled){var r=t._textDivs,n=t._capability,a=r.length;if(a>e)return t._renderingDone=!0,void n.resolve();if(!t._textContentStream)for(var i=0;i<a;i++)t._layoutText(r[i]);t._renderingDone=!0,n.resolve()}}function o(e){for(var t=e._bounds,r=e._viewport,a=s(r.width,r.height,t),i=0;i<a.length;i++){var o=t[i].div,l=e._textDivProperties.get(o);if(0!==l.angle){var c=a[i],u=t[i],d=u.m,h=d[0],f=d[1],p=[[0,0],[0,u.size[1]],[u.size[0],0],u.size],g=new Float64Array(64);p.forEach((function(e,t){var r=n.Util.applyTransform(e,d);g[t+0]=h&&(c.left-r[0])/h,g[t+4]=f&&(c.top-r[1])/f,g[t+8]=h&&(c.right-r[0])/h,g[t+12]=f&&(c.bottom-r[1])/f,g[t+16]=f&&(c.left-r[0])/-f,g[t+20]=h&&(c.top-r[1])/h,g[t+24]=f&&(c.right-r[0])/-f,g[t+28]=h&&(c.bottom-r[1])/h,g[t+32]=h&&(c.left-r[0])/-h,g[t+36]=f&&(c.top-r[1])/-f,g[t+40]=h&&(c.right-r[0])/-h,g[t+44]=f&&(c.bottom-r[1])/-f,g[t+48]=f&&(c.left-r[0])/f,g[t+52]=h&&(c.top-r[1])/-h,g[t+56]=f&&(c.right-r[0])/f,g[t+60]=h&&(c.bottom-r[1])/-h}));var v=function(e,t,r){for(var n=0,a=0;a<r;a++){var i=e[t++];i>0&&(n=n?Math.min(i,n):i)}return n},m=1+Math.min(Math.abs(h),Math.abs(f));l.paddingLeft=v(g,32,16)/m,l.paddingTop=v(g,48,16)/m,l.paddingRight=v(g,0,16)/m,l.paddingBottom=v(g,16,16)/m,e._textDivProperties.set(o,l)}else l.paddingLeft=t[i].left-a[i].left,l.paddingTop=t[i].top-a[i].top,l.paddingRight=a[i].right-t[i].right,l.paddingBottom=a[i].bottom-t[i].bottom,e._textDivProperties.set(o,l)}}function s(e,t,r){var n=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));l(e,n);var a=new Array(r.length);return n.forEach((function(e){var t=e.index;a[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),r.map((function(t,r){var i=a[r],o=n[r];o.x1=t.top,o.y1=e-i.right,o.x2=t.bottom,o.y2=e-i.left,o.index=r,o.x1New=void 0,o.x2New=void 0})),l(t,n),n.forEach((function(e){var t=e.index;a[t].top=e.x1New,a[t].bottom=e.x2New})),a}function l(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];t.forEach((function(e){var t=0;while(t<n.length&&n[t].end<=e.y1)t++;var r,a,i=n.length-1;while(i>=0&&n[i].start>=e.y2)i--;var o,s,l=-1/0;for(o=t;o<=i;o++){var c;r=n[o],a=r.boundary,c=a.x2>e.x1?a.index>e.index?a.x1New:e.x1:void 0===a.x2New?(a.x2+e.x1)/2:a.x2New,c>l&&(l=c)}for(e.x1New=l,o=t;o<=i;o++)r=n[o],a=r.boundary,void 0===a.x2New?a.x2>e.x1?a.index>e.index&&(a.x2New=a.x2):a.x2New=l:a.x2New>l&&(a.x2New=Math.max(l,a.x2));var u=[],d=null;for(o=t;o<=i;o++){r=n[o],a=r.boundary;var h=a.x2>e.x2?a:e;d===h?u[u.length-1].end=r.end:(u.push({start:r.start,end:r.end,boundary:h}),d=h)}for(n[t].start<e.y1&&(u[0].start=e.y1,u.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[i].end&&(u[u.length-1].end=e.y2,u.push({start:e.y2,end:n[i].end,boundary:n[i].boundary})),o=t;o<=i;o++)if(r=n[o],a=r.boundary,void 0===a.x2New){var f=!1;for(s=t-1;!f&&s>=0&&n[s].start>=a.y1;s--)f=n[s].boundary===a;for(s=i+1;!f&&s<n.length&&n[s].end<=a.y2;s++)f=n[s].boundary===a;for(s=0;!f&&s<u.length;s++)f=u[s].boundary===a;f||(a.x2New=l)}Array.prototype.splice.apply(n,[t,i-t+1].concat(u))})),n.forEach((function(t){var r=t.boundary;void 0===r.x2New&&(r.x2New=Math.max(e,r.x2))}))}function c(e){var t=this,r=e.textContent,a=e.textContentStream,i=e.container,o=e.viewport,s=e.textDivs,l=e.textContentItemsStr,c=e.enhanceTextSelection;this._textContent=r,this._textContentStream=a,this._container=i,this._viewport=o,this._textDivs=s||[],this._textContentItemsStr=l||[],this._enhanceTextSelection=!!c,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally((function(){t._layoutTextCtx&&(t._layoutTextCtx.canvas.width=0,t._layoutTextCtx.canvas.height=0,t._layoutTextCtx=null)})).catch((function(){}))}function u(e){var t=new c({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}return c.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(e,t){for(var r=0,n=e.length;r<n;r++)this._textContentItemsStr.push(e[r].str),a(this,e[r],t)},_layoutText:function(e){var t=this._textDivProperties.get(e);if(!t.isWhitespace){var r="";if(0!==t.canvasWidth){var n=e.style,a=n.fontSize,i=n.fontFamily;a===this._layoutTextLastFontSize&&i===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(a," ").concat(i),this._layoutTextLastFontSize=a,this._layoutTextLastFontFamily=i);var o=this._layoutTextCtx.measureText(e.textContent),s=o.width;s>0&&(t.scale=t.canvasWidth/s,r="scaleX(".concat(t.scale,")"))}0!==t.angle&&(r="rotate(".concat(t.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,r=(0,n.createPromiseCapability)(),a=Object.create(null),o=document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,l=this._textContent.styles;this._processItems(s,l),r.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var c=function e(){t._reader.read().then((function(n){var i=n.value,o=n.done;o?r.resolve():(Object.assign(a,i.styles),t._processItems(i.items,a),e())}),r.reject)};this._reader=this._textContentStream.getReader(),c()}r.promise.then((function(){a=null,e?t._renderTimer=setTimeout((function(){i(t),t._renderTimer=null}),e):i(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var t=[],r=[],n=0,a=this._textDivs.length;n<a;n++){var i=this._textDivs[n],s=this._textDivProperties.get(i);s.isWhitespace||(e?(t.length=0,r.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(r.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):r.push(0),s.paddingRight>0?r.push("".concat(s.paddingRight/s.scale,"px")):r.push(0),s.paddingBottom>0?r.push("".concat(s.paddingBottom,"px")):r.push(0),s.paddingLeft>0?(r.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):r.push(0),i.style.padding=r.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=s.originalTransform))}}}},u}();t.renderTextLayer=a},a79d:function(e,t,r){"use strict";var n=r("23e7"),a=r("c430"),i=r("fea9"),o=r("d039"),s=r("d066"),l=r("4840"),c=r("cdf9"),u=r("6eeb"),d=!!i&&o((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));n({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=l(this,s("Promise")),r="function"==typeof e;return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),a||"function"!=typeof i||i.prototype["finally"]||u(i.prototype,"finally",s("Promise").prototype["finally"])},a975:function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").every,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("every",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9e3:function(e,t,r){"use strict";var n=r("83ab"),a=r("da84"),i=r("94ca"),o=r("6eeb"),s=r("5135"),l=r("c6b6"),c=r("7156"),u=r("c04e"),d=r("d039"),h=r("7c73"),f=r("241c").f,p=r("06cf").f,g=r("9bf2").f,v=r("58a8").trim,m="Number",b=a[m],y=b.prototype,w=l(h(y))==m,_=function(e){var t,r,n,a,i,o,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=v(c),t=c.charCodeAt(0),43===t||45===t){if(r=c.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+c}for(i=c.slice(2),o=i.length,s=0;s<o;s++)if(l=i.charCodeAt(s),l<48||l>a)return NaN;return parseInt(i,n)}return+c};if(i(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var k,x=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof x&&(w?d((function(){y.valueOf.call(r)})):l(r)!=m)?c(new b(_(t)),r,x):_(t)},S=n?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0;S.length>A;A++)s(b,k=S[A])&&!s(x,k)&&g(x,k,p(b,k));x.prototype=y,y.constructor=x,o(a,m,x)}},ab13:function(e,t,r){var n=r("b622"),a=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[a]=!1,"/./"[e](t)}catch(n){}}return!1}},ac1f:function(e,t,r){"use strict";var n=r("23e7"),a=r("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},acac:function(e,t,r){"use strict";var n=r("e2cc"),a=r("f183").getWeakData,i=r("825a"),o=r("861d"),s=r("19aa"),l=r("2266"),c=r("b727"),u=r("5135"),d=r("69f3"),h=d.set,f=d.getterFor,p=c.find,g=c.findIndex,v=0,m=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var r=y(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,n){s(e,d,t),h(e,{type:t,id:v++,frozen:void 0}),void 0!=n&&l(n,e[c],e,r)})),p=f(t),g=function(e,t,r){var n=p(e),o=a(i(t),!0);return!0===o?m(n).set(t,r):o[n.id]=r,e};return n(d.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var r=a(e);return!0===r?m(t)["delete"](e):r&&u(r,t.id)&&delete r[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var r=a(e);return!0===r?m(t).has(e):r&&u(r,t.id)}}),n(d.prototype,r?{get:function(e){var t=p(this);if(o(e)){var r=a(e);return!0===r?m(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},ad4c:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("caad"),r("a15b"),r("b0c0"),r("ac1f"),r("2532"),r("1276"),r("cc71");var n=r("3c96"),a=r("6374"),i=r("8962"),o=r("36c6"),s=r("ed6d"),l=r("2d0d"),c=r("970b"),u=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var d=r("61a8"),h=r("dacc"),f=function(){function e(){c(this,e)}return u(e,null,[{key:"create",value:function(e){var t=e.data.annotationType;switch(t){case h.AnnotationType.LINK:return new g(e);case h.AnnotationType.TEXT:return new v(e);case h.AnnotationType.WIDGET:var r=e.data.fieldType;switch(r){case"Tx":return new b(e);case"Btn":return e.data.radioButton?new w(e):e.data.checkBox?new y(e):new _(e);case"Ch":return new k(e)}return new m(e);case h.AnnotationType.POPUP:return new x(e);case h.AnnotationType.FREETEXT:return new A(e);case h.AnnotationType.LINE:return new C(e);case h.AnnotationType.SQUARE:return new P(e);case h.AnnotationType.CIRCLE:return new T(e);case h.AnnotationType.POLYLINE:return new E(e);case h.AnnotationType.CARET:return new I(e);case h.AnnotationType.INK:return new O(e);case h.AnnotationType.POLYGON:return new R(e);case h.AnnotationType.HIGHLIGHT:return new L(e);case h.AnnotationType.UNDERLINE:return new F(e);case h.AnnotationType.SQUIGGLY:return new M(e);case h.AnnotationType.STRIKEOUT:return new D(e);case h.AnnotationType.STAMP:return new N(e);case h.AnnotationType.FILEATTACHMENT:return new B(e);default:return new p(e)}}}]),e}(),p=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,e),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,r&&(this.container=this._createContainer(n))}return u(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,r=this.page,n=this.viewport,a=document.createElement("section"),i=t.rect[2]-t.rect[0],o=t.rect[3]-t.rect[1];a.setAttribute("data-annotation-id",t.id);var s=h.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(a.style.transform="matrix(".concat(n.transform.join(","),")"),a.style.transformOrigin="-".concat(s[0],"px -").concat(s[1],"px"),!e&&t.borderStyle.width>0){a.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==h.AnnotationBorderStyleType.UNDERLINE&&(i-=2*t.borderStyle.width,o-=2*t.borderStyle.width);var l=t.borderStyle.horizontalCornerRadius,c=t.borderStyle.verticalCornerRadius;if(l>0||c>0){var u="".concat(l,"px / ").concat(c,"px");a.style.borderRadius=u}switch(t.borderStyle.style){case h.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case h.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case h.AnnotationBorderStyleType.BEVELED:(0,h.warn)("Unimplemented border style: beveled");break;case h.AnnotationBorderStyleType.INSET:(0,h.warn)("Unimplemented border style: inset");break;case h.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid";break;default:break}t.color?a.style.borderColor=h.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left="".concat(s[0],"px"),a.style.top="".concat(s[1],"px"),a.style.width="".concat(i,"px"),a.style.height="".concat(o,"px"),a}},{key:"_createPopup",value:function(e,t,r){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var n=new S({container:e,trigger:t,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}),a=n.render();a.style.left=e.style.width,e.appendChild(a)}},{key:"render",value:function(){(0,h.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),g=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.url||e.data.dest||e.data.action);return t.call(this,e,n)}return u(r,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,r=document.createElement("a");return e.url?(0,d.addLinkAttributes)(r,{url:e.url,target:e.newWindow?d.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest),this.container.appendChild(r),this.container}},{key:"_bindLink",value:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),r}(p),v=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n)}return u(r,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),r}(p),m=function(e){s(r,e);var t=l(r);function r(){return c(this,r),t.apply(this,arguments)}return u(r,[{key:"render",value:function(){return this.container}}]),r}(p),b=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,n)}return u(r,[{key:"render",value:function(){var e=["left","center","right"];this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea"),t.textContent=this.data.fieldValue):(t=document.createElement("input"),t.type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(n,"px - 1ch)")}}else{t=document.createElement("div"),t.textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var a=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(a=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,a)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(e,t){var r=e.style;if(r.fontSize="".concat(this.data.fontSize,"px"),r.direction=this.data.fontDirection<0?"rtl":"ltr",t){var n="normal";t.black?n="900":t.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=t.italic?"italic":"normal";var a=t.loadedName?'"'.concat(t.loadedName,'", '):"",i=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=a+i}}}]),r}(m),y=function(e){s(r,e);var t=l(r);function r(e){return c(this,r),t.call(this,e,e.renderInteractiveForms)}return u(r,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),r}(m),w=function(e){s(r,e);var t=l(r);function r(e){return c(this,r),t.call(this,e,e.renderInteractiveForms)}return u(r,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),r}(m),_=function(e){s(r,e);var t=l(r);function r(){return c(this,r),t.apply(this,arguments)}return u(r,[{key:"render",value:function(){var e=i(o(r.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),r}(g),k=function(e){s(r,e);var t=l(r);function r(e){return c(this,r),t.call(this,e,e.renderInteractiveForms)}return u(r,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));var t,r=a(this.data.options);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=document.createElement("option");i.textContent=n.displayValue,i.value=n.exportValue,this.data.fieldValue.includes(n.displayValue)&&i.setAttribute("selected",!0),e.appendChild(i)}}catch(o){r.e(o)}finally{r.f()}return this.container.appendChild(e),this.container}}]),r}(m),x=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!(!e.data.title&&!e.data.contents);return t.call(this,e,n)}return u(r,[{key:"render",value:function(){var e=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",e.includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelector(t);if(!r)return this.container;var n=new S({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),a=parseFloat(r.style.left),i=parseFloat(r.style.width);return this.container.style.transformOrigin="-".concat(a+i,"px -").concat(r.style.top),this.container.style.left="".concat(a+i,"px"),this.container.appendChild(n.render()),this.container}}]),r}(p),S=function(){function e(t){c(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return u(e,[{key:"render",value:function(){var e=.7,t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var r=document.createElement("div");r.className="popup";var n=this.color;if(n){var a=e*(255-n[0])+n[0],i=e*(255-n[1])+n[1],o=e*(255-n[2])+n[2];r.style.backgroundColor=h.Util.makeCssRgb(0|a,0|i,0|o)}var s=document.createElement("h1");s.textContent=this.title,r.appendChild(s);var l=d.PDFDateString.toDateObject(this.modificationDate);if(l){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:l.toLocaleDateString(),time:l.toLocaleTimeString()}),r.appendChild(c)}var u=this._formatContents(this.contents);return r.appendChild(u),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),r.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(r),t}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/),n=0,a=r.length;n<a;++n){var i=r[n];t.appendChild(document.createTextNode(i)),n<a-1&&t.appendChild(document.createElement("br"))}return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),A=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),C=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),n.appendChild(a),this.container.append(n),this._createPopup(this.container,a,e),this.container}}]),r}(p),P=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:rect");return i.setAttribute("x",a/2),i.setAttribute("y",a/2),i.setAttribute("width",t-a),i.setAttribute("height",r-a),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),r}(p),T=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:ellipse");return i.setAttribute("cx",t/2),i.setAttribute("cy",r/2),i.setAttribute("rx",t/2-a/2),i.setAttribute("ry",r/2-a/2),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),r}(p),E=function(e){s(r,e);var t=l(r);function r(e){var n;c(this,r);var a=!!(e.data.hasPopup||e.data.title||e.data.contents);return n=t.call(this,e,a,!0),n.containerClassName="polylineAnnotation",n.svgElementName="svg:polyline",n}return u(r,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],i=this.svgFactory.create(r,n),o=[],s=a(t.vertices);try{for(s.s();!(e=s.n()).done;){var l=e.value,c=l.x-t.rect[0],u=t.rect[3]-l.y;o.push(c+","+u)}}catch(h){s.e(h)}finally{s.f()}o=o.join(" ");var d=this.svgFactory.createElement(this.svgElementName);return d.setAttribute("points",o),d.setAttribute("stroke-width",t.borderStyle.width||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","none"),i.appendChild(d),this.container.append(i),this._createPopup(this.container,d,t),this.container}}]),r}(p),R=function(e){s(r,e);var t=l(r);function r(e){var n;return c(this,r),n=t.call(this,e),n.containerClassName="polygonAnnotation",n.svgElementName="svg:polygon",n}return r}(E),I=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),O=function(e){s(r,e);var t=l(r);function r(e){var n;c(this,r);var a=!!(e.data.hasPopup||e.data.title||e.data.contents);return n=t.call(this,e,a,!0),n.containerClassName="inkAnnotation",n.svgElementName="svg:polyline",n}return u(r,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],i=this.svgFactory.create(r,n),o=a(t.inkLists);try{for(o.s();!(e=o.n()).done;){var s,l=e.value,c=[],u=a(l);try{for(u.s();!(s=u.n()).done;){var d=s.value,h=d.x-t.rect[0],f=t.rect[3]-d.y;c.push("".concat(h,",").concat(f))}}catch(g){u.e(g)}finally{u.f()}c=c.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",c),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,t),i.appendChild(p)}}catch(g){o.e(g)}finally{o.f()}return this.container.append(i),this.container}}]),r}(p),L=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),F=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),M=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),D=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),N=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),B=function(e){s(r,e);var t=l(r);function r(e){var a;c(this,r),a=t.call(this,e,!0);var i=a.data.file,o=i.filename,s=i.content;return a.filename=(0,d.getFilenameFromUrl)(o),a.content=s,a.linkService.eventBus&&a.linkService.eventBus.dispatch("fileattachmentannotation",{source:n(a),id:(0,h.stringToPDFString)(o),filename:o,content:s}),a}return u(r,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,h.warn)("Download cannot be started due to unavailable download manager")}}]),r}(p),U=function(){function e(){c(this,e)}return u(e,null,[{key:"render",value:function(e){var t,r=[],n=[],i=a(e.annotations);try{for(i.s();!(t=i.n()).done;){var o=t.value;o&&(o.annotationType!==h.AnnotationType.POPUP?r.push(o):n.push(o))}}catch(p){i.e(p)}finally{i.f()}n.length&&r.push.apply(r,n);for(var s=0,l=r;s<l.length;s++){var c=l[s],u=f.create({data:c,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:e.renderInteractiveForms||!1,svgFactory:new d.DOMSVGFactory});u.isRenderable&&e.div.appendChild(u.render())}}},{key:"update",value:function(e){var t,r=a(e.annotations);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=e.div.querySelector('[data-annotation-id="'.concat(n.id,'"]'));i&&(i.style.transform="matrix(".concat(e.viewport.transform.join(","),")"))}}catch(o){r.e(o)}finally{r.f()}e.div.removeAttribute("hidden")}}]),e}();t.AnnotationLayer=U},ad6d:function(e,t,r){"use strict";var n=r("825a");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,r){var n=r("83ab"),a=r("d039"),i=r("5135"),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var r=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:l,d=i(t,1)?t[1]:void 0;return s[e]=!!r&&!a((function(){if(c&&!n)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,r.call(e,u,d)}))}},ae93:function(e,t,r){"use strict";var n,a,i,o=r("e163"),s=r("9112"),l=r("5135"),c=r("b622"),u=r("c430"),d=c("iterator"),h=!1,f=function(){return this};[].keys&&(i=[].keys(),"next"in i?(a=o(o(i)),a!==Object.prototype&&(n=a)):h=!0),void 0==n&&(n={}),u||l(n,d)||s(n,d,f),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},af03:function(e,t,r){var n=r("d039");e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b041:function(e,t,r){"use strict";var n=r("00ee"),a=r("f5df");e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},b0c0:function(e,t,r){var n=r("83ab"),a=r("9bf2").f,i=Function.prototype,o=i.toString,s=/^\s*function ([^ (]*)/,l="name";n&&!(l in i)&&a(i,l,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})},b39a:function(e,t,r){"use strict";var n=r("da84"),a=r("ebb5"),i=r("d039"),o=n.Int8Array,s=a.aTypedArray,l=a.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,d=!!o&&i((function(){c.call(new o(1))})),h=i((function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()}))||!i((function(){o.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return c.apply(d?u.call(s(this)):s(this),arguments)}),h)},b3d5:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("dca8");var n=Object.create(null),a=r("eca3"),i=a.isNodeJS,o="undefined"!==typeof navigator&&navigator.userAgent||"",s=/Trident/.test(o),l=/CriOS/.test(o);(function(){(s||l)&&(n.disableCreateObjectURL=!0)})(),function(){i&&(n.disableFontFace=!0,n.nativeImageDecoderSupport="none")}(),t.apiCompatibilityParams=Object.freeze(n)},b3fd:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=void 0;var i=r("a3cd"),o=r("0496"),s=r("8a38"),l=function(){function e(t){var r=t.pageDiv,a=t.pdfPage,i=t.linkService,s=t.downloadManager,l=t.imageResourcesPath,c=void 0===l?"":l,u=t.renderInteractiveForms,d=void 0!==u&&u,h=t.l10n,f=void 0===h?o.NullL10n:h;n(this,e),this.pageDiv=r,this.pdfPage=a,this.linkService=i,this.downloadManager=s,this.imageResourcesPath=c,this.renderInteractiveForms=d,this.l10n=f,this.div=null,this._cancelled=!1}return a(e,[{key:"render",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";this.pdfPage.getAnnotations({intent:r}).then((function(r){if(!t._cancelled){var n={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:r,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager};if(t.div)i.AnnotationLayer.update(n);else{if(0===r.length)return;t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),n.div=t.div,i.AnnotationLayer.render(n),t.l10n.translate(t.div)}}}))}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),e}();t.AnnotationLayerBuilder=l;var c=function(){function e(){n(this,e)}return a(e,[{key:"createAnnotationLayerBuilder",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o.NullL10n;return new l({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderInteractiveForms:n,linkService:new s.SimpleLinkService,l10n:a})}}]),e}();t.DefaultAnnotationLayerFactory=c},b575:function(e,t,r){var n,a,i,o,s,l,c,u,d=r("da84"),h=r("06cf").f,f=r("c6b6"),p=r("2cf4").set,g=r("1cdc"),v=d.MutationObserver||d.WebKitMutationObserver,m=d.process,b=d.Promise,y="process"==f(m),w=h(d,"queueMicrotask"),_=w&&w.value;_||(n=function(){var e,t;y&&(e=m.domain)&&e.exit();while(a){t=a.fn,a=a.next;try{t()}catch(r){throw a?o():i=void 0,r}}i=void 0,e&&e.enter()},y?o=function(){m.nextTick(n)}:v&&!g?(s=!0,l=document.createTextNode(""),new v(n).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),u=c.then,o=function(){u.call(c,n)}):o=function(){p.call(d,n)}),e.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},b622:function(e,t,r){var n=r("da84"),a=r("5692"),i=r("5135"),o=r("90e3"),s=r("4930"),l=r("fdbf"),c=a("wks"),u=n.Symbol,d=l?u:u&&u.withoutSetter||o;e.exports=function(e){return i(c,e)||(s&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},b636:function(e,t,r){var n=r("746f");n("asyncIterator")},b639:function(e,t,r){"use strict";(function(e){
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <http://feross.org>
|
||
* @license MIT
|
||
*/
|
||
var n=r("1fb5"),a=r("9152"),i=r("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,r);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?v(e,t,r,n):"string"===typeof t?p(e,t,r):m(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,r,n){return d(t),t<=0?l(e,t):void 0!==r?"string"===typeof n?l(e,t).fill(r,n):l(e,t).fill(r):l(e,t)}function f(e,t){if(d(t),e=l(e,t<0?0:0|b(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function p(e,t,r){if("string"===typeof r&&""!==r||(r="utf8"),!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|w(t,r);e=l(e,n);var a=e.write(t,r);return a!==n&&(e=e.slice(0,a)),e}function g(e,t){var r=t.length<0?0:0|b(t.length);e=l(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function v(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function m(e,t){if(c.isBuffer(t)){var r=0|b(t.length);return e=l(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&i(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return Z(e).length;t=(""+t).toLowerCase(),n=!0}}function _(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function k(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function x(e,t,r,n,a){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,a);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,a){var i,o=1,s=e.length,l=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,h=0;h<l;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function A(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n),n>a&&(n=a)):n=a;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function C(e,t,r,n){return ee(Z(t,e.length-r),e,r,n)}function P(e,t,r,n){return ee(J(t),e,r,n)}function T(e,t,r,n){return P(e,t,r,n)}function E(e,t,r,n){return ee($(t),e,r,n)}function R(e,t,r,n){return ee(Q(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);var n=[],a=t;while(a<r){var i,o,s,l,c=e[a],u=null,d=c>239?4:c>223?3:c>191?2:1;if(a+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:i=e[a+1],128===(192&i)&&(l=(31&c)<<6|63&i,l>127&&(u=l));break;case 3:i=e[a+1],o=e[a+2],128===(192&i)&&128===(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128===(192&i)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=d}return F(n)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return h(null,e,t,r)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var o=e[r];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,a),a+=o.length}return n},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)k(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):_.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,r,n,a){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var i=a-n,o=r-t,s=Math.min(i,o),l=this.slice(n,a),u=e.slice(t,r),d=0;d<s;++d)if(l[d]!==u[d]){i=l[d],o=u[d];break}return i<o?-1:o<i?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return x(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return x(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return C(this,e,t,r);case"ascii":return P(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function F(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var r="",n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=L));return r}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}function D(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function N(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",i=t;i<r;++i)a+=K(e[i]);return a}function B(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}function U(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,a,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function q(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-r,2);a<i;++a)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function z(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-r,4);a<i;++a)e[r+a]=t>>>8*(n?a:3-a)&255}function V(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function W(e,t,r,n,i){return i||V(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function H(e,t,r,n,i){return i||V(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=c.prototype;else{var a=t-e;r=new c(a,void 0);for(var i=0;i<a;++i)r[i]=this[i+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=this[e],a=1,i=0;while(++i<t&&(a*=256))n+=this[e+i]*a;return n},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=this[e+--t],a=1;while(t>0&&(a*=256))n+=this[e+--t]*a;return n},c.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=this[e],a=1,i=0;while(++i<t&&(a*=256))n+=this[e+i]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=t,a=1,i=this[e+--n];while(n>0&&(a*=256))i+=this[e+--n]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var a=Math.pow(2,8*r)-1;j(this,e,t,r,a,0)}var i=1,o=0;this[t]=255&e;while(++o<r&&(i*=256))this[t+o]=e/i&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var a=Math.pow(2,8*r)-1;j(this,e,t,r,a,0)}var i=r-1,o=1;this[t+i]=255&e;while(--i>=0&&(o*=256))this[t+i]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);j(this,e,t,r,a-1,-a)}var i=0,o=1,s=0;this[t]=255&e;while(++i<r&&(o*=256))e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);j(this,e,t,r,a-1,-a)}var i=r-1,o=1,s=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return W(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return W(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return H(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return H(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a,i=n-r;if(this===e&&r<t&&t<n)for(a=i-1;a>=0;--a)e[a+t]=this[a+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},c.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=c.isBuffer(e)?e:Z(new c(e,n).toString()),s=o.length;for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function Y(e){if(e=X(e).replace(G,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function X(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e,t){var r;t=t||1/0;for(var n=e.length,a=null,i=[],o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function J(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function Q(e,t){for(var r,n,a,i=[],o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o),n=r>>8,a=r%256,i.push(a),i.push(n)}return i}function $(e){return n.toByteArray(Y(e))}function ee(e,t,r,n){for(var a=0;a<n;++a){if(a+r>=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function te(e){return e!==e}}).call(this,r("c8ba"))},b64b:function(e,t,r){var n=r("23e7"),a=r("7b0b"),i=r("df75"),o=r("d039"),s=o((function(){i(1)}));n({target:"Object",stat:!0,forced:s},{keys:function(e){return i(a(e))}})},b680:function(e,t,r){"use strict";var n=r("23e7"),a=r("a691"),i=r("408a"),o=r("1148"),s=r("d039"),l=1..toFixed,c=Math.floor,u=function(e,t,r){return 0===t?r:t%2===1?u(e,t-1,r*e):u(e*e,t/2,r)},d=function(e){var t=0,r=e;while(r>=4096)t+=12,r/=4096;while(r>=2)t+=1,r/=2;return t},h=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}));n({target:"Number",proto:!0,forced:h},{toFixed:function(e){var t,r,n,s,l=i(this),h=a(e),f=[0,0,0,0,0,0],p="",g="0",v=function(e,t){var r=-1,n=t;while(++r<6)n+=e*f[r],f[r]=n%1e7,n=c(n/1e7)},m=function(e){var t=6,r=0;while(--t>=0)r+=f[t],f[t]=c(r/e),r=r%e*1e7},b=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+o.call("0",7-r.length)+r}return t};if(h<0||h>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(p="-",l=-l),l>1e-21)if(t=d(l*u(2,69,1))-69,r=t<0?l*u(2,-t,1):l/u(2,t,1),r*=4503599627370496,t=52-t,t>0){v(0,r),n=h;while(n>=7)v(1e7,0),n-=7;v(u(10,n,1),0),n=t-1;while(n>=23)m(1<<23),n-=23;m(1<<n),v(1,1),m(2),g=b()}else v(0,r),v(1<<-t,0),g=b()+o.call("0",h);return h>0?(s=g.length,g=p+(s<=h?"0."+o.call("0",h-s)+g:g.slice(0,s-h)+"."+g.slice(s-h))):g=p+g,g}})},b727:function(e,t,r){var n=r("0366"),a=r("44ad"),i=r("7b0b"),o=r("50c4"),s=r("65f0"),l=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d;return function(f,p,g,v){for(var m,b,y=i(f),w=a(y),_=n(p,g,3),k=o(w.length),x=0,S=v||s,A=t?S(f,k):r?S(f,0):void 0;k>x;x++)if((h||x in w)&&(m=w[x],b=_(m,x,y),e))if(t)A[x]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:l.call(A,m)}else if(u)return!1;return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},b781:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),r("2b3d");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var i=r("a3cd"),o=i.apiCompatibilityParams.disableCreateObjectURL||!1;function s(e,t){var r=document.createElement("a");if(!r.click)throw new Error('DownloadManager: "a.click()" is not supported.');r.href=e,r.target="_parent","download"in r&&(r.download=t),(document.body||document.documentElement).appendChild(r),r.click(),r.remove()}var l=function(){function e(t){var r=t.disableCreateObjectURL,a=void 0===r?o:r;n(this,e),this.disableCreateObjectURL=a}return a(e,[{key:"downloadUrl",value:function(e,t){(0,i.createValidAbsoluteUrl)(e,"http://example.com")&&s(e+"#pdfjs.action=download",t)}},{key:"downloadData",value:function(e,t,r){if(navigator.msSaveBlob)navigator.msSaveBlob(new Blob([e],{type:r}),t);else{var n=(0,i.createObjectURL)(e,r,this.disableCreateObjectURL);s(n,t)}}},{key:"download",value:function(e,t,r){if(navigator.msSaveBlob)navigator.msSaveBlob(e,r)||this.downloadUrl(t,r);else if(this.disableCreateObjectURL)this.downloadUrl(t,r);else{var n=URL.createObjectURL(e);s(n,r)}}}]),e}();t.DownloadManager=l},b87b:function(e,t,r){"use strict";r("c975"),r("baa5"),r("ac1f"),r("466d"),r("5319"),r("1276"),document.webL10n=function(e,t,r){var n={},a="",i="textContent",o="",s={},l="loading",c=!0;function u(){return t.querySelectorAll('link[type="application/l10n"]')}function d(){var e=t.querySelector('script[type="application/l10n"]');return e?JSON.parse(e.innerHTML):null}function h(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}function f(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),r=e.getAttribute("data-l10n-args"),n={};if(r)try{n=JSON.parse(r)}catch(a){console.warn("could not parse arguments for #"+t)}return{id:t,args:n}}function p(e,t,r){t=t||function(e){},r=r||function(){};var n=new XMLHttpRequest;n.open("GET",e,c),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=utf-8"),n.onreadystatechange=function(){4==n.readyState&&(200==n.status||0===n.status?t(n.responseText):r())},n.onerror=r,n.ontimeout=r;try{n.send(null)}catch(a){r()}}function g(e,t,r,o){var s=e.replace(/[^\/]*$/,"")||"./";function l(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function c(e,r){var n={},a=/^\s*|\s*$/,i=/^\s*#|^\s*$/,o=/^\s*\[(.*)\]\s*$/,c=/^\s*@import\s+url\((.*)\)\s*$/i,u=/^([^=\s]*)\s*=\s*(.+)$/;function d(e,r,d){var f=e.replace(a,"").split(/[\r\n]+/),p="*",g=t.split("-",1)[0],v=!1,m="";function b(){while(1){if(!f.length)return void d();var e=f.shift();if(!i.test(e)){if(r){if(m=o.exec(e),m){p=m[1].toLowerCase(),v="*"!==p&&p!==t&&p!==g;continue}if(v)continue;if(m=c.exec(e),m)return void h(s+m[1],b)}var a=e.match(u);a&&3==a.length&&(n[a[1]]=l(a[2]))}}}b()}function h(e,t){p(e,(function(e){d(e,!1,t)}),(function(){console.warn(e+" not found."),t()}))}d(e,!0,(function(){r(n)}))}p(e,(function(e){a+=e,c(e,(function(e){for(var t in e){var a,o,s=t.lastIndexOf(".");s>0?(a=t.substring(0,s),o=t.substring(s+1)):(a=t,o=i),n[a]||(n[a]={}),n[a][o]=e[t]}r&&r()}))}),o)}function v(e,t){e&&(e=e.toLowerCase()),t=t||function(){},m(),o=e;var r=u(),a=r.length;if(0!==a){var i=null,s=0;i=function(){s++,s>=a&&(t(),l="complete")};for(var c=0;c<a;c++){var h=new b(r[c]);h.load(e,i)}}else{var f=d();if(f&&f.locales&&f.default_locale){if(console.log("using the embedded JSON directory, early way out"),n=f.locales[e],!n){var p=f.default_locale.toLowerCase();for(var v in f.locales){if(v=v.toLowerCase(),v===e){n=f.locales[e];break}v===p&&(n=f.locales[p])}}t()}else console.log("no resource to load, early way out");l="complete"}function b(e){var t=e.href;this.load=function(e,r){g(t,e,r,(function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),o="",r()}))}}}function m(){n={},a="",o=""}function b(e){var t={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};function r(e,t){return-1!==t.indexOf(e)}function n(e,t,r){return t<=e&&e<=r}var a={0:function(e){return"other"},1:function(e){return n(e%100,3,10)?"few":0===e?"zero":n(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10===0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return n(e,0,1)?"one":"other"},5:function(e){return n(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return n(e,3,6)?"few":n(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&n(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return n(e%10,2,9)&&!n(e%100,11,19)?"few":e%10!=1||n(e%100,11,19)?"other":"one"},11:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":e%10===0||n(e%10,5,9)||n(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return n(e,2,4)?"few":1==e?"one":"other"},13:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":1!=e&&n(e%10,0,1)||n(e%10,5,9)||n(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return n(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||n(e%100,2,10)?"few":n(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":n(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return n(e,2,10)?"few":n(e,0,1)?"one":"other"},20:function(e){return!n(e%10,3,4)&&e%10!=9||n(e%100,10,19)||n(e%100,70,79)||n(e%100,90,99)?e%1e6===0&&0!==e?"many":e%10!=2||r(e%100,[12,72,92])?e%10!=1||r(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return n(e,0,1)||n(e,11,99)?"one":"other"},23:function(e){return n(e%10,1,2)||e%20===0?"one":"other"},24:function(e){return n(e,3,10)||n(e,13,19)?"few":r(e,[2,12])?"two":r(e,[1,11])?"one":"other"}},i=t[e.replace(/-.*$/,"")];return i in a?a[i]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}function y(e,t,r){var a=n[e];if(!a){if(console.warn("#"+e+" is undefined."),!r)return null;a=r}var i={};for(var o in a){var s=a[o];s=w(s,t,e,o),s=_(s,t,e),i[o]=s}return i}function w(e,t,r,a){var i=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,o=i.exec(e);if(!o||!o.length)return e;var l,c=o[1],u=o[2];if(t&&u in t?l=t[u]:u in n&&(l=n[u]),c in s){var d=s[c];e=d(e,l,r,a)}return e}function _(e,t,r){var a=/\{\{\s*(.+?)\s*\}\}/g;return e.replace(a,(function(e,a){return t&&a in t?t[a]:a in n?n[a]:(console.log("argument {{"+a+"}} for #"+r+" is undefined."),e)}))}function k(e){var r=f(e);if(r.id){var n=y(r.id,r.args);if(n){if(n[i]){if(0===x(e))e[i]=n[i];else{for(var a=e.childNodes,o=!1,s=0,l=a.length;s<l;s++)3===a[s].nodeType&&/\S/.test(a[s].nodeValue)&&(o?a[s].nodeValue="":(a[s].nodeValue=n[i],o=!0));if(!o){var c=t.createTextNode(n[i]);e.insertBefore(c,e.firstChild)}}delete n[i]}for(var u in n)e[u]=n[u]}else console.warn("#"+r.id+" is undefined.")}}function x(e){if(e.children)return e.children.length;if("undefined"!==typeof e.childElementCount)return e.childElementCount;for(var t=0,r=0;r<e.childNodes.length;r++)t+=1===e.nodeType?1:0;return t}function S(e){e=e||t.documentElement;for(var r=h(e),n=r.length,a=0;a<n;a++)k(r[a]);k(e)}return s.plural=function(e,t,r,a){var l=parseFloat(t);if(isNaN(l))return e;if(a!=i)return e;s._pluralRules||(s._pluralRules=b(o));var c="["+s._pluralRules(l)+"]";return 0===l&&r+"[zero]"in n?e=n[r+"[zero]"][a]:1==l&&r+"[one]"in n?e=n[r+"[one]"][a]:2==l&&r+"[two]"in n?e=n[r+"[two]"][a]:r+c in n?e=n[r+c][a]:r+"[other]"in n&&(e=n[r+"[other]"][a]),e},{get:function(e,t,r){var n,a=e.lastIndexOf("."),o=i;a>0&&(o=e.substring(a+1),e=e.substring(0,a)),r&&(n={},n[o]=r);var s=y(e,t,n);return s&&o in s?s[o]:"{{"+e+"}}"},getData:function(){return n},getText:function(){return a},getLanguage:function(){return o},setLanguage:function(e,t){v(e,(function(){t&&t()}))},getDirection:function(){var e=["ar","he","fa","ps","ur"],t=o.split("-",1)[0];return e.indexOf(t)>=0?"rtl":"ltr"},translate:S,getReadyState:function(){return l},ready:function(r){r&&("complete"==l||"interactive"==l?e.setTimeout((function(){r()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),r()})))}}}(window,document)},baa5:function(e,t,r){var n=r("23e7"),a=r("e58c");n({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},bb2f:function(e,t,r){var n=r("d039");e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bdc3:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' width='50px' height='50px' viewBox='-3 -3 54 54' xml:space='preserve'%3e %3cg%3e %3cpath d='M25 0 A 26 26 0 0 0 0 25' stroke='%23606c88' stroke-width='3' fill='transparent'%3e %3canimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'%3e %3c/animateTransform%3e %3c/path%3e %3cpath d='M25 8 A 18 18 0 0 0 8 25' stroke='%2311ece5' stroke-width='3' fill='transparent'%3e %3canimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1.5s' repeatCount='indefinite'%3e %3c/animateTransform%3e %3c/path%3e %3cpath d='M25 16 A 10 10 0 0 0 16 25' stroke='%23606c88' stroke-width='3' fill='transparent'%3e %3canimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.5s' repeatCount='indefinite'%3e %3c/animateTransform%3e %3c/path%3e %3c/g%3e %3c/svg%3e"},bf19:function(e,t,r){"use strict";var n=r("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},bfa5:function(e,t,r){"use strict";var n=r("8996"),a=r.n(n);a.a},c04e:function(e,t,r){var n=r("861d");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")}},c135:function(e,t){function r(e){if(Array.isArray(e))return e}e.exports=r},c19f:function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),i=r("621a"),o=r("2626"),s="ArrayBuffer",l=i[s],c=a[s];n({global:!0,forced:c!==l},{ArrayBuffer:l}),o(s)},c1ac:function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").filter,i=r("4840"),o=n.aTypedArray,s=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("filter",(function(e){var t=a(o(this),e,arguments.length>1?arguments[1]:void 0),r=i(this,this.constructor),n=0,l=t.length,c=new(s(r))(l);while(l>n)c[n]=t[n++];return c}))},c225:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("4160"),r("e260"),r("a15b"),r("d3b7"),r("e6cf"),r("ac1f"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b");var n=r("ed6d"),a=r("2d0d");r("96cf");var i=r("c973"),o=r("970b"),s=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var l,c=r("dacc"),u=function(){function e(t){var r=t.docId,n=t.onUnsupportedFeature;o(this,e),this.constructor===e&&(0,c.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}return s(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||(t=this.styleElement=document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(t));var r=t.sheet;r.insertRule(e,r.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach((function(e){document.fonts.delete(e)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var r,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(r=t.createNativeFontFace(),!r){e.next=18;break}return this.addNativeFontFace(r),e.prev=7,e.next=10,r.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e["catch"](7),this._onUnsupportedFeature({featureId:c.UNSUPPORTED_FEATURES.font}),(0,c.warn)("Failed to load font '".concat(r.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(n=t.createFontFaceRule(),!n){e.next=26;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise((function(e){var r=a._queueLoadingCallback(e);a._prepareFontLoadEvent([n],[t],r)}));case 26:case"end":return e.stop()}}),e,this,[[7,12]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_queueLoadingCallback",value:function(e){(0,c.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,r){(0,c.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!==typeof document&&!!document.fonts;return(0,c.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,c.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,c.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=l,t.FontLoader=l=function(e){n(r,e);var t=a(r);function r(e){var n;return o(this,r),n=t.call(this,e),n.loadingContext={requests:[],nextRequestId:0},n.loadTestFontId=0,n}return s(r,[{key:"_queueLoadingCallback",value:function(e){function t(){(0,c.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;while(r.requests.length>0&&r.requests[0].done){var e=r.requests.shift();setTimeout(e.callback,0)}}var r=this.loadingContext,n={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:t,callback:e};return r.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,r){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,r,n){var a=e.substring(0,t),i=e.substring(t+r);return a+n+i}var i,o,s=document.createElement("canvas");s.width=1,s.height=1;var l=s.getContext("2d"),u=0;function d(e,t){if(u++,u>30)return(0,c.warn)("Load test font never loaded."),void t();l.font="30px "+e,l.fillText(".",0,20);var r=l.getImageData(0,0,1,1);r.data[3]>0?t():setTimeout(d.bind(null,e,t))}var h="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,p=976;f=a(f,p,h.length,h);var g=16,v=1482184792,m=n(f,g);for(i=0,o=h.length-3;i<o;i+=4)m=m-v+n(h,i)|0;i<h.length&&(m=m-v+n(h+"XXX",i)|0),f=a(f,g,4,(0,c.string32)(m));var b="url(data:font/opentype;base64,".concat(btoa(f),");"),y='@font-face {font-family:"'.concat(h,'";src:').concat(b,"}");this.insertRule(y);var w=[];for(i=0,o=t.length;i<o;i++)w.push(t[i].loadedName);w.push(h);var _=document.createElement("div");for(_.style.visibility="hidden",_.style.width=_.style.height="10px",_.style.position="absolute",_.style.top=_.style.left="0px",i=0,o=w.length;i<o;++i){var k=document.createElement("span");k.textContent="Hi",k.style.fontFamily=w[i],_.appendChild(k)}document.body.appendChild(_),d(h,(function(){document.body.removeChild(_),r.complete()}))}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"===typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,c.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){var e=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,c.shadow)(this,"_loadTestFont",e())}}]),r}(u);var d=function(){function e(t,r){var n=r.isEvalSupported,a=void 0===n||n,i=r.disableFontFace,s=void 0!==i&&i,l=r.ignoreErrors,c=void 0!==l&&l,u=r.onUnsupportedFeature,d=void 0===u?null:u,h=r.fontRegistry,f=void 0===h?null:h;for(var p in o(this,e),this.compiledGlyphs=Object.create(null),t)this[p]=t[p];this.isEvalSupported=!1!==a,this.disableFontFace=!0===s,this.ignoreErrors=!0===c,this._onUnsupportedFeature=d,this.fontRegistry=f}return s(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,c.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),r='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r,n;try{r=e.get(this.loadedName+"_path_"+t)}catch(l){if(!this.ignoreErrors)throw l;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:c.UNSUPPORTED_FEATURES.font}),(0,c.warn)('getPathGenerator - ignoring character: "'.concat(l,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&c.IsEvalSupportedCached.value){for(var a,i="",o=0,s=r.length;o<s;o++)n=r[o],a=void 0!==n.args?n.args.join(","):"",i+="c."+n.cmd+"("+a+");\n";return this.compiledGlyphs[t]=new Function("c","size",i)}return this.compiledGlyphs[t]=function(e,t){for(var a=0,i=r.length;a<i;a++)n=r[a],"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}]),e}();t.FontFaceObject=d},c240:function(e,t){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=r},c2aa:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII="},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},c6cd:function(e,t,r){var n=r("da84"),a=r("ce4e"),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},c740:function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").findIndex,i=r("44d2"),o=r("ae40"),s="findIndex",l=!0,c=o(s);s in[]&&Array(1)[s]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},c8d2:function(e,t,r){var n=r("d039"),a=r("5899"),i="
";e.exports=function(e){return n((function(){return!!a[e]()||i[e]()!=i||a[e].name!==e}))}},c906:function(e,t,r){var n=r("23e7"),a=r("d039"),i=r("861d"),o=Object.isExtensible,s=a((function(){o(1)}));n({target:"Object",stat:!0,forced:s},{isExtensible:function(e){return!!i(e)&&(!o||o(e))}})},c973:function(e,t,r){function n(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var o=e.apply(t,r);function s(e){n(o,a,i,s,l,"next",e)}function l(e){n(o,a,i,s,l,"throw",e)}s(void 0)}))}}r("d3b7"),r("e6cf"),e.exports=a},c975:function(e,t,r){"use strict";var n=r("23e7"),a=r("4d64").indexOf,i=r("a640"),o=r("ae40"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,r){var n=r("5135"),a=r("fc6a"),i=r("4d64").indexOf,o=r("d012");e.exports=function(e,t){var r,s=a(e),l=0,c=[];for(r in s)!n(o,r)&&n(s,r)&&c.push(r);while(t.length>l)n(s,r=t[l++])&&(~i(c,r)||c.push(r));return c}},ca91:function(e,t,r){"use strict";var n=r("ebb5"),a=r("d58f").left,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("reduce",(function(e){return a(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(e,t,r){"use strict";var n=r("23e7"),a=r("4d64").includes,i=r("44d2"),o=r("ae40"),s=o("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!s},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cb29:function(e,t,r){var n=r("23e7"),a=r("81d5"),i=r("44d2");n({target:"Array",proto:!0},{fill:a}),i("fill")},cc12:function(e,t,r){var n=r("da84"),a=r("861d"),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},cc71:function(e,t,r){"use strict";var n=r("23e7"),a=r("857a"),i=r("af03");n({target:"String",proto:!0,forced:i("bold")},{bold:function(){return a(this,"b","","")}})},cca6:function(e,t,r){var n=r("23e7"),a=r("60da");n({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},cd26:function(e,t,r){"use strict";var n=r("ebb5"),a=n.aTypedArray,i=n.exportTypedArrayMethod,o=Math.floor;i("reverse",(function(){var e,t=this,r=a(t).length,n=o(r/2),i=0;while(i<n)e=t[i],t[i++]=t[--r],t[r]=e;return t}))},cdf9:function(e,t,r){var n=r("825a"),a=r("861d"),i=r("f069");e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e),o=r.resolve;return o(t),r.promise}},ce4e:function(e,t,r){var n=r("da84"),a=r("9112");e.exports=function(e,t){try{a(n,e,t)}catch(r){n[e]=t}return t}},ced1:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("a623"),r("e260"),r("d3b7"),r("e6cf"),r("3ca3"),r("ddb0"),r("2b3d"),window.__nativePrint__=window.print.bind(window),Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPrintService=c;var n=r("0496"),a=r("ead8"),i=r("04d0"),o=null,s=null;function l(e,t,r,a){var s=o.scratchCanvas,l=i.AppOptions.get("printResolution")||150,c=l/72;s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c);var u=Math.floor(a.width*n.CSS_UNITS)+"px",d=Math.floor(a.height*n.CSS_UNITS)+"px",h=s.getContext("2d");return h.save(),h.fillStyle="rgb(255, 255, 255)",h.fillRect(0,0,s.width,s.height),h.restore(),t.getPage(r).then((function(e){var t={canvasContext:h,transform:[c,0,0,c,0,0],viewport:e.getViewport({scale:1,rotation:a.rotation}),intent:"print"};return e.render(t).promise})).then((function(){return{width:u,height:d}}))}function c(e,t,r,a){this.pdfDocument=e,this.pagesOverview=t,this.printContainer=r,this.l10n=a||n.NullL10n,this.disableCreateObjectURL=e.loadingParams["disableCreateObjectURL"],this.currentPage=-1,this.scratchCanvas=document.createElement("canvas")}c.prototype={layout:function(){this.throwIfInactive();var e=document.querySelector("body");e.setAttribute("data-pdfjsprinting",!0);var t=this.pagesOverview.every((function(e){return e.width===this.pagesOverview[0].width&&e.height===this.pagesOverview[0].height}),this);t||console.warn("Not all pages have the same size. The printed result may be incorrect!"),this.pageStyleSheet=document.createElement("style");var r=this.pagesOverview[0];this.pageStyleSheet.textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { size: "+r.width+"pt "+r.height+"pt;}}",e.appendChild(this.pageStyleSheet)},destroy:function(){if(o===this){this.printContainer.textContent="";var e=document.querySelector("body");e.removeAttribute("data-pdfjsprinting"),this.pageStyleSheet&&(this.pageStyleSheet.remove(),this.pageStyleSheet=null),this.scratchCanvas.width=this.scratchCanvas.height=0,this.scratchCanvas=null,o=null,v().then((function(){"printServiceOverlay"===s.active&&s.close("printServiceOverlay")}))}},renderPages:function(){var e=this,t=this.pagesOverview.length,r=function r(n,a){if(e.throwIfInactive(),++e.currentPage>=t)return p(t,t,e.l10n),void n();var i=e.currentPage;p(i,t,e.l10n),l(e,e.pdfDocument,i+1,e.pagesOverview[i]).then(e.useRenderedPage.bind(e)).then((function(){r(n,a)}),a)};return new Promise(r)},useRenderedPage:function(e){this.throwIfInactive();var t=document.createElement("img");t.style.width=e.width,t.style.height=e.height;var r=this.scratchCanvas;"toBlob"in r&&!this.disableCreateObjectURL?r.toBlob((function(e){t.src=URL.createObjectURL(e)})):t.src=r.toDataURL();var n=document.createElement("div");return n.appendChild(t),this.printContainer.appendChild(n),new Promise((function(e,r){t.onload=e,t.onerror=r}))},performPrint:function(){var e=this;return this.throwIfInactive(),new Promise((function(t){setTimeout((function(){e.active?(d.call(window),setTimeout(t,20)):t()}),0)}))},get active(){return this===o},throwIfInactive:function(){if(!this.active)throw new Error("This print request was cancelled or completed.")}};var u,d=window.print;function h(e){var t=document.createEvent("CustomEvent");t.initCustomEvent(e,!1,!1,"custom"),window.dispatchEvent(t)}function f(){o&&(o.destroy(),h("afterprint"))}function p(e,t,r){var n=document.getElementById("printServiceOverlay"),a=Math.round(100*e/t),i=n.querySelector("progress"),o=n.querySelector(".relative-progress");i.value=a,r.get("print_progress_percent",{progress:a},a+"%").then((function(e){o.textContent=e}))}if(window.print=function(){if(o)console.warn("Ignored window.print() because of a pending print job.");else{v().then((function(){o&&s.open("printServiceOverlay")}));try{h("beforeprint")}finally{if(!o)return console.error("Expected print service to be initialized."),void v().then((function(){"printServiceOverlay"===s.active&&s.close("printServiceOverlay")}));var e=o;o.renderPages().then((function(){return e.performPrint()})).catch((function(){})).then((function(){e.active&&f()}))}}},window.addEventListener("keydown",(function(e){80!==e.keyCode||!e.ctrlKey&&!e.metaKey||e.altKey||e.shiftKey&&!window.chrome&&!window.opera||(window.print(),e.preventDefault(),e.stopImmediatePropagation?e.stopImmediatePropagation():e.stopPropagation())}),!0),"onbeforeprint"in window){var g=function(e){"custom"!==e.detail&&e.stopImmediatePropagation&&e.stopImmediatePropagation()};window.addEventListener("beforeprint",g),window.addEventListener("afterprint",g)}function v(){if(!u){if(s=a.PDFViewerApplication.overlayManager,!s)throw new Error("The overlay manager has not yet been initialized.");u=s.register("printServiceOverlay",document.getElementById("printServiceOverlay"),f,!0),document.getElementById("printCancel").onclick=f}return u}a.PDFPrintServiceFactory.instance={supportsPrinting:!0,createPrintService:function(e,t,r,n){if(o)throw new Error("The print service is created and active.");return o=new c(e,t,r,n),o}}},cee8:function(e,t,r){var n=r("23e7"),a=r("861d"),i=r("f183").onFreeze,o=r("bb2f"),s=r("d039"),l=Object.preventExtensions,c=s((function(){l(1)}));n({target:"Object",stat:!0,forced:c,sham:!o},{preventExtensions:function(e){return l&&a(e)?l(i(e)):e}})},cf01:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("e260"),r("d3b7"),r("e6cf"),r("25f0"),r("3ca3"),r("ddb0"),r("96cf");var n=r("c973"),a=r("6374"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.Toolbar=void 0;var s=r("0496"),l="visiblePageIsLoading",c=140,u=162,d=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.NullL10n;i(this,e),this.toolbar=t.container,this.eventBus=r,this.l10n=n,this.buttons=[{element:t.previous,eventName:"previouspage"},{element:t.next,eventName:"nextpage"},{element:t.zoomIn,eventName:"zoomin"},{element:t.zoomOut,eventName:"zoomout"},{element:t.openFile,eventName:"openfile"},{element:t.print,eventName:"print"},{element:t.presentationModeButton,eventName:"presentationmode"},{element:t.download,eventName:"download"},{element:t.viewBookmark,eventName:null}],this.items={numPages:t.numPages,pageNumber:t.pageNumber,scaleSelectContainer:t.scaleSelectContainer,scaleSelect:t.scaleSelect,customScaleOption:t.customScaleOption,previous:t.previous,next:t.next,zoomIn:t.zoomIn,zoomOut:t.zoomOut},this._wasLocalized=!1,this.reset(),this._bindListeners()}return o(e,[{key:"setPageNumber",value:function(e,t){this.pageNumber=e,this.pageLabel=t,this._updateUIState(!1)}},{key:"setPagesCount",value:function(e,t){this.pagesCount=e,this.hasPageLabels=t,this._updateUIState(!0)}},{key:"setPageScale",value:function(e,t){this.pageScaleValue=(e||t).toString(),this.pageScale=t,this._updateUIState(!1)}},{key:"reset",value:function(){this.pageNumber=0,this.pageLabel=null,this.hasPageLabels=!1,this.pagesCount=0,this.pageScaleValue=s.DEFAULT_SCALE_VALUE,this.pageScale=s.DEFAULT_SCALE,this._updateUIState(!0),this.updateLoadingIndicatorState()}},{key:"_bindListeners",value:function(){var e,t=this,r=this.items,n=r.pageNumber,i=r.scaleSelect,o=this,l=a(this.buttons);try{var c=function(){var r=e.value,n=r.element,a=r.eventName;n.addEventListener("click",(function(e){null!==a&&t.eventBus.dispatch(a,{source:t})}))};for(l.s();!(e=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}n.addEventListener("click",(function(){this.select()})),n.addEventListener("change",(function(){o.eventBus.dispatch("pagenumberchanged",{source:o,value:this.value})})),i.addEventListener("change",(function(){"custom"!==this.value&&o.eventBus.dispatch("scalechanged",{source:o,value:this.value})})),i.oncontextmenu=s.noContextMenuHandler,this.eventBus._on("localized",(function(){t._wasLocalized=!0,t._adjustScaleWidth(),t._updateUIState(!0)}))}},{key:"_updateUIState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._wasLocalized){var t=this.pageNumber,r=this.pagesCount,n=this.pageScaleValue,i=this.pageScale,o=this.items;e&&(this.hasPageLabels?o.pageNumber.type="text":(o.pageNumber.type="number",this.l10n.get("of_pages",{pagesCount:r},"of {{pagesCount}}").then((function(e){o.numPages.textContent=e}))),o.pageNumber.max=r),this.hasPageLabels?(o.pageNumber.value=this.pageLabel,this.l10n.get("page_of_pages",{pageNumber:t,pagesCount:r},"({{pageNumber}} of {{pagesCount}})").then((function(e){o.numPages.textContent=e}))):o.pageNumber.value=t,o.previous.disabled=t<=1,o.next.disabled=t>=r,o.zoomOut.disabled=i<=s.MIN_SCALE,o.zoomIn.disabled=i>=s.MAX_SCALE;var l=Math.round(1e4*i)/100;this.l10n.get("page_scale_percent",{scale:l},"{{scale}}%").then((function(e){var t,r=!1,i=a(o.scaleSelect.options);try{for(i.s();!(t=i.n()).done;){var s=t.value;s.value===n?(s.selected=!0,r=!0):s.selected=!1}}catch(l){i.e(l)}finally{i.f()}r||(o.customScaleOption.textContent=e,o.customScaleOption.selected=!0)}))}}},{key:"updateLoadingIndicatorState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.items.pageNumber;t.classList.toggle(l,e)}},{key:"_adjustScaleWidth",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r,n,i,o,l,d,h,f,p,g,v,m,b,y;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.items,r=this.l10n,n=Promise.all([r.get("page_scale_auto",null,"Automatic Zoom"),r.get("page_scale_actual",null,"Actual Size"),r.get("page_scale_fit",null,"Page Fit"),r.get("page_scale_width",null,"Page Width")]),i=document.createElement("canvas"),i.mozOpaque=!0,o=i.getContext("2d",{alpha:!1}),e.next=7,s.animationStarted;case 7:return l=getComputedStyle(t.scaleSelect),d=l.fontSize,h=l.fontFamily,o.font="".concat(d," ").concat(h),f=0,e.t0=a,e.next=13,n;case 13:e.t1=e.sent,p=(0,e.t0)(e.t1);try{for(p.s();!(g=p.n()).done;)v=g.value,m=o.measureText(v),b=m.width,b>f&&(f=b)}catch(w){p.e(w)}finally{p.f()}y=u-c,f+=1.5*y,f>c&&(t.scaleSelect.style.width="".concat(f+y,"px"),t.scaleSelectContainer.style.width="".concat(f,"px")),i.width=0,i.height=0,i=o=null;case 22:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}();t.Toolbar=d},cfc3:function(e,t,r){var n=r("74e8");n("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,r){var n=r("428f"),a=r("da84"),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]}},d139:function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").find,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("find",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},d1e7:function(e,t,r){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!n.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},d28b:function(e,t,r){var n=r("746f");n("iterator")},d2bb:function(e,t,r){var n=r("825a"),a=r("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(i){}return function(r,i){return n(r),a(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},d3b7:function(e,t,r){var n=r("00ee"),a=r("6eeb"),i=r("b041");n||a(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,r){var n=r("9bf2").f,a=r("5135"),i=r("b622"),o=i("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},d58f:function(e,t,r){var n=r("1c0b"),a=r("7b0b"),i=r("44ad"),o=r("50c4"),s=function(e){return function(t,r,s,l){n(r);var c=a(t),u=i(c),d=o(c.length),h=e?d-1:0,f=e?-1:1;if(s<2)while(1){if(h in u){l=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(l=r(l,u[h],h,c));return l}};e.exports={left:s(!1),right:s(!0)}},d5d6:function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").forEach,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("forEach",(function(e){a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},d784:function(e,t,r){"use strict";r("ac1f");var n=r("6eeb"),a=r("d039"),i=r("b622"),o=r("9263"),s=r("9112"),l=i("species"),c=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=i("replace"),h=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,d){var p=i(e),g=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),v=g&&!a((function(){var t=!1,r=/a/;return"split"===e&&(r={},r.constructor={},r.constructor[l]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!g||!v||"replace"===e&&(!c||!u||h)||"split"===e&&!f){var m=/./[p],b=r(p,""[e],(function(e,t,r,n,a){return t.exec===o?g&&!a?{done:!0,value:m.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=b[0],w=b[1];n(String.prototype,e,y),n(RegExp.prototype,p,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},d81d:function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").map,i=r("1dde"),o=r("ae40"),s=i("map"),l=o("map");n({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},da3a:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("d3b7"),r("e6cf");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSidebarResizer=void 0;var i=r("0496"),o="--sidebar-width",s=200,l="sidebarResizing",c=function(){function e(t,r){var a=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.NullL10n;n(this,e),this.enabled=!1,this.isRTL=!1,this.sidebarOpen=!1,this.doc=document.documentElement,this._width=null,this._outerContainerWidth=null,this._boundEvents=Object.create(null),this.outerContainer=t.outerContainer,this.resizer=t.resizer,this.eventBus=r,this.l10n=l,"undefined"!==typeof CSS&&"function"===typeof CSS.supports&&CSS.supports(o,"calc(-1 * ".concat(s,"px)"))?(this.enabled=!0,this.resizer.classList.remove("hidden"),this.l10n.getDirection().then((function(e){a.isRTL="rtl"===e})),this._addEventListeners()):console.warn("PDFSidebarResizer: The browser does not support resizing of the sidebar.")}return a(e,[{key:"_updateWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.enabled)return!1;var t=(0,i.clamp)(e,s,Math.floor(this.outerContainerWidth/2));return t!==this._width&&(this._width=t,this.doc.style.setProperty(o,"".concat(t,"px")),!0)}},{key:"_mouseMove",value:function(e){var t=e.clientX;this.isRTL&&(t=this.outerContainerWidth-t),this._updateWidth(t)}},{key:"_mouseUp",value:function(e){this.outerContainer.classList.remove(l),this.eventBus.dispatch("resize",{source:this});var t=this._boundEvents;window.removeEventListener("mousemove",t.mouseMove),window.removeEventListener("mouseup",t.mouseUp)}},{key:"_addEventListeners",value:function(){var e=this;if(this.enabled){var t=this._boundEvents;t.mouseMove=this._mouseMove.bind(this),t.mouseUp=this._mouseUp.bind(this),this.resizer.addEventListener("mousedown",(function(r){0===r.button&&(e.outerContainer.classList.add(l),window.addEventListener("mousemove",t.mouseMove),window.addEventListener("mouseup",t.mouseUp))})),this.eventBus._on("sidebarviewchanged",(function(t){e.sidebarOpen=!(!t||!t.view)})),this.eventBus._on("resize",(function(t){if(t&&t.source===window&&(e._outerContainerWidth=null,e._width))if(e.sidebarOpen){e.outerContainer.classList.add(l);var r=e._updateWidth(e._width);Promise.resolve().then((function(){e.outerContainer.classList.remove(l),r&&e.eventBus.dispatch("resize",{source:e})}))}else e._updateWidth(e._width)}))}}},{key:"outerContainerWidth",get:function(){return this._outerContainerWidth||(this._outerContainerWidth=this.outerContainer.clientWidth),this._outerContainerWidth}}]),e}();t.PDFSidebarResizer=c},da84:function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r("c8ba"))},dacc:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("a623"),r("e260"),r("a15b"),r("fb6a"),r("b0c0"),r("a9e3"),r("8ba4"),r("d3b7"),r("e6cf"),r("ac1f"),r("3ca3"),r("5319"),r("5cc6"),r("fb2c"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("ddb0"),r("2b3d");var n=r("5bc3"),a=r("7037"),i=r("970b"),o=r("ed6d"),s=r("2d0d");Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=Q,t.arraysToBytes=$,t.assert=M,t.bytesToString=Z,t.createPromiseCapability=me,t.getVerbosityLevel=I,t.info=O,t.isArrayBuffer=ge,t.isArrayEqual=ve,t.isBool=he,t.isEmptyObj=de,t.isNum=fe,t.isString=pe,t.isSameOrigin=D,t.createValidAbsoluteUrl=B,t.removeNullCharacters=K,t.setVerbosityLevel=R,t.shadow=U,t.string32=ee,t.stringToBytes=J,t.stringToPDFString=le,t.stringToUTF8String=ce,t.utf8StringToString=ue,t.warn=L,t.unreachable=F,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r("6329");var l=[1,0,0,1,0,0];t.IDENTITY_MATRIX=l;var c=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=c;var u={NONE:"none",DECODE:"decode",DISPLAY:"display"};t.NativeImageDecoding=u;var d={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=d;var h={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=h;var f={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=f;var p={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=p;var g={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=g;var v={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=v;var m={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=m;var b={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=b;var y={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=y;var w={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=w;var _={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=_;var k={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=k;var x={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=x;var S={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=S;var A={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=A;var C={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=C;var P={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};t.UNSUPPORTED_FEATURES=P;var T={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=T;var E=S.WARNINGS;function R(e){Number.isInteger(e)&&(E=e)}function I(){return E}function O(e){E>=S.INFOS&&console.log("Info: ".concat(e))}function L(e){E>=S.WARNINGS&&console.log("Warning: ".concat(e))}function F(e){throw new Error(e)}function M(e,t){e||F(t)}function D(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(a){return!1}var n=new URL(t,r);return r.origin===n.origin}function N(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function B(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(N(r))return r}catch(n){}return null}function U(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var j=function(){function e(t){this.constructor===e&&F("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=j;var q=function(e){o(r,e);var t=s(r);function r(e,n){var a;return i(this,r),a=t.call(this,e),a.code=n,a}return r}(j);t.PasswordException=q;var z=function(e){o(r,e);var t=s(r);function r(e,n){var a;return i(this,r),a=t.call(this,e),a.details=n,a}return r}(j);t.UnknownErrorException=z;var V=function(e){o(r,e);var t=s(r);function r(){return i(this,r),t.apply(this,arguments)}return r}(j);t.InvalidPDFException=V;var W=function(e){o(r,e);var t=s(r);function r(){return i(this,r),t.apply(this,arguments)}return r}(j);t.MissingPDFException=W;var H=function(e){o(r,e);var t=s(r);function r(e,n){var a;return i(this,r),a=t.call(this,e),a.status=n,a}return r}(j);t.UnexpectedResponseException=H;var G=function(e){o(r,e);var t=s(r);function r(){return i(this,r),t.apply(this,arguments)}return r}(j);t.FormatError=G;var Y=function(e){o(r,e);var t=s(r);function r(){return i(this,r),t.apply(this,arguments)}return r}(j);t.AbortException=Y;var X=/\x00/g;function K(e){return"string"!==typeof e?(L("The argument for removeNullCharacters must be a string."),e):e.replace(X,"")}function Z(e){M(null!==e&&"object"===a(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=[],i=0;i<t;i+=r){var o=Math.min(i+r,t),s=e.subarray(i,o);n.push(String.fromCharCode.apply(null,s))}return n.join("")}function J(e){M("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 Q(e){return void 0!==e.length?e.length:(M(void 0!==e.byteLength),e.byteLength)}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+=Q(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?J(s):new Uint8Array(s));var l=s.byteLength;i.set(s,a),a+=l}return i}function ee(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function te(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}var re={get value(){return U(this,"value",te())}};function ne(){try{return new Function(""),!0}catch(e){return!1}}t.IsLittleEndianCached=re;var ae={get value(){return U(this,"value",ne())}};t.IsEvalSupportedCached=ae;var ie=["rgb(",0,",",0,",",0,")"],oe=function(){function e(){i(this,e)}return n(e,null,[{key:"makeCssRgb",value:function(e,t,r){return ie[1]=e,ie[3]=t,ie[5]=r,ie.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],n=e[0]*t[1]+e[1]*t[3]+t[5];return[r,n]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2],n=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,a=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[n,a]}},{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((r+i)*(r+i)-4*(r*i-a*n))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var 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}}]),e}();t.Util=oe;var se=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function le(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=se[e.charCodeAt(i)];r.push(o?String.fromCharCode(o):e.charAt(i))}return r.join("")}function ce(e){return decodeURIComponent(escape(e))}function ue(e){return unescape(encodeURIComponent(e))}function de(e){for(var t in e)return!1;return!0}function he(e){return"boolean"===typeof e}function fe(e){return"number"===typeof e}function pe(e){return"string"===typeof e}function ge(e){return"object"===a(e)&&null!==e&&void 0!==e.byteLength}function ve(e,t){return e.length===t.length&&e.every((function(e,r){return e===t[r]}))}function me(){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}var be=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var a=new Blob([t],{type:r});return URL.createObjectURL(a)}for(var i="data:".concat(r,";base64,"),o=0,s=t.length;o<s;o+=3){var l=255&t[o],c=255&t[o+1],u=255&t[o+2],d=l>>2,h=(3&l)<<4|c>>4,f=o+1<s?(15&c)<<2|u>>6:64,p=o+2<s?63&u:64;i+=e[d]+e[h]+e[f]+e[p]}return i}}();t.createObjectURL=be},dca8:function(e,t,r){var n=r("23e7"),a=r("bb2f"),i=r("d039"),o=r("861d"),s=r("f183").onFreeze,l=Object.freeze,c=i((function(){l(1)}));n({target:"Object",stat:!0,forced:c,sham:!a},{freeze:function(e){return l&&o(e)?l(s(e)):e}})},ddb0:function(e,t,r){var n=r("da84"),a=r("fdbc"),i=r("e260"),o=r("9112"),s=r("b622"),l=s("iterator"),c=s("toStringTag"),u=i.values;for(var d in a){var h=n[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{o(f,l,u)}catch(g){f[l]=u}if(f[c]||o(f,c,d),a[d])for(var p in i)if(f[p]!==i[p])try{o(f,p,i[p])}catch(g){f[p]=i[p]}}}},df75:function(e,t,r){var n=r("ca84"),a=r("7839");e.exports=Object.keys||function(e){return n(e,a)}},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,a=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!a){r=t+1;break}}else-1===n&&(a=!1,n=t+1);return-1===n?"":e.slice(r,n)}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,n="/"===o.charAt(0))}return t=r(a(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),o="/"===i(e,-1);return e=r(a(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&o&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var a=n(e.split("/")),i=n(r.split("/")),o=Math.min(a.length,i.length),s=o,l=0;l<o;l++)if(a[l]!==i[l]){s=l;break}var c=[];for(l=s;l<a.length;l++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,a=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!a){n=i;break}}else a=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,a=!0,i=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===n&&(a=!1,n=o+1),46===s?-1===t?t=o:1!==i&&(i=1):-1!==t&&(i=-1);else if(!a){r=o+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var i=function(e,t,r){return e.substr(t,r)}}).call(this,r("4362"))},e01a:function(e,t,r){"use strict";var n=r("23e7"),a=r("83ab"),i=r("da84"),o=r("5135"),s=r("861d"),l=r("9bf2").f,c=r("e893"),u=i.Symbol;if(a&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,g="Symbol(test)"==String(u("test")),v=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(d,e))return"";var r=g?t.slice(7,-1):t.replace(v,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},e02d:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("4160"),r("c975"),r("e260"),r("fb6a"),r("45fc"),r("a434"),r("d3b7"),r("e6cf"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b"),r("96cf");var n=r("c973"),a=r("6374"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var s=r("dacc"),l=function(){function e(t,r){var n=this;i(this,e),(0,s.assert)(r),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var a=t.initialData;if(a&&a.length>0){var o=new Uint8Array(a).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){n._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){n._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){n._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){n._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return o(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,s.assert)(r)}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,s.assert)(!this._fullRequestReader);var e=this._queuedChunks;return this._queuedChunks=null,new c(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new u(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeReaders.slice(0);t.forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=l;var c=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i(this,e),this._stream=t,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var o,s=a(this._queuedChunks);try{for(s.s();!(o=s.n()).done;){var l=o.value;this._loaded+=l.byteLength}}catch(c){s.e(c)}finally{s.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return o(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,s.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),u=function(){function e(t,r,n){i(this,e),this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return o(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();t.resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,s.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},e163:function(e,t,r){var n=r("5135"),a=r("7b0b"),i=r("f772"),o=r("e177"),s=i("IE_PROTO"),l=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?l:null}},e177:function(e,t,r){var n=r("d039");e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e200:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("d3b7"),r("e6cf"),r("18a5");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFThumbnailView=void 0;var i=r("a3cd"),o=r("0496"),s=r("ef24"),l=3,c=1,u=98,d=function(){var e=null;return{getCanvas:function(t,r){var n=e;n||(n=document.createElement("canvas"),e=n),n.width=t,n.height=r,n.mozOpaque=!0;var a=n.getContext("2d",{alpha:!1});return a.save(),a.fillStyle="rgb(255, 255, 255)",a.fillRect(0,0,t,r),a.restore(),n},destroyCanvas:function(){var t=e;t&&(t.width=0,t.height=0),e=null}}}(),h=function(){function e(t){var r=t.container,a=t.id,i=t.defaultViewport,l=t.linkService,d=t.renderingQueue,h=t.disableCanvasToImageConversion,f=void 0!==h&&h,p=t.l10n,g=void 0===p?o.NullL10n:p;n(this,e),this.id=a,this.renderingId="thumbnail"+a,this.pageLabel=null,this.pdfPage=null,this.rotation=0,this.viewport=i,this.pdfPageRotate=i.rotation,this.linkService=l,this.renderingQueue=d,this.renderTask=null,this.renderingState=s.RenderingStates.INITIAL,this.resume=null,this.disableCanvasToImageConversion=f,this.pageWidth=this.viewport.width,this.pageHeight=this.viewport.height,this.pageRatio=this.pageWidth/this.pageHeight,this.canvasWidth=u,this.canvasHeight=this.canvasWidth/this.pageRatio|0,this.scale=this.canvasWidth/this.pageWidth,this.l10n=g;var v=document.createElement("a");v.href=l.getAnchorUrl("#page="+a),this._thumbPageTitle.then((function(e){v.title=e})),v.onclick=function(){return l.page=a,!1},this.anchor=v;var m=document.createElement("div");m.className="thumbnail",m.setAttribute("data-page-number",this.id),this.div=m;var b=document.createElement("div");b.className="thumbnailSelectionRing";var y=2*c;b.style.width=this.canvasWidth+y+"px",b.style.height=this.canvasHeight+y+"px",this.ring=b,m.appendChild(b),v.appendChild(m),r.appendChild(v)}return a(e,[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:1,rotation:t}),this.reset()}},{key:"reset",value:function(){this.cancelRendering(),this.renderingState=s.RenderingStates.INITIAL,this.pageWidth=this.viewport.width,this.pageHeight=this.viewport.height,this.pageRatio=this.pageWidth/this.pageHeight,this.canvasHeight=this.canvasWidth/this.pageRatio|0,this.scale=this.canvasWidth/this.pageWidth,this.div.removeAttribute("data-loaded");for(var e=this.ring,t=e.childNodes,r=t.length-1;r>=0;r--)e.removeChild(t[r]);var n=2*c;e.style.width=this.canvasWidth+n+"px",e.style.height=this.canvasHeight+n+"px",this.canvas&&(this.canvas.width=0,this.canvas.height=0,delete this.canvas),this.image&&(this.image.removeAttribute("src"),delete this.image)}},{key:"update",value:function(e){"undefined"!==typeof e&&(this.rotation=e);var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=this.viewport.clone({scale:1,rotation:t}),this.reset()}},{key:"cancelRendering",value:function(){this.renderTask&&(this.renderTask.cancel(),this.renderTask=null),this.resume=null}},{key:"_getPageDrawContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.createElement("canvas");this.canvas=t,t.mozOpaque=!0;var r=t.getContext("2d",{alpha:!1}),n=(0,o.getOutputScale)(r);return t.width=this.canvasWidth*n.sx|0,t.height=this.canvasHeight*n.sy|0,t.style.width=this.canvasWidth+"px",t.style.height=this.canvasHeight+"px",!e&&n.scaled&&r.scale(n.sx,n.sy),r}},{key:"_convertCanvasToImage",value:function(){var e=this;if(this.canvas&&this.renderingState===s.RenderingStates.FINISHED){var t="thumbnailImage";if(this.disableCanvasToImageConversion)return this.canvas.className=t,this._thumbPageCanvas.then((function(t){e.canvas.setAttribute("aria-label",t)})),this.div.setAttribute("data-loaded",!0),void this.ring.appendChild(this.canvas);var r=document.createElement("img");r.className=t,this._thumbPageCanvas.then((function(e){r.setAttribute("aria-label",e)})),r.style.width=this.canvasWidth+"px",r.style.height=this.canvasHeight+"px",r.src=this.canvas.toDataURL(),this.image=r,this.div.setAttribute("data-loaded",!0),this.ring.appendChild(r),this.canvas.width=0,this.canvas.height=0,delete this.canvas}}},{key:"draw",value:function(){var e=this;if(this.renderingState!==s.RenderingStates.INITIAL)return console.error("Must be in new state before drawing"),Promise.resolve(void 0);var t=this.pdfPage;if(!t)return this.renderingState=s.RenderingStates.FINISHED,Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=s.RenderingStates.RUNNING;var r=(0,i.createPromiseCapability)(),n=function(t){u===e.renderTask&&(e.renderTask=null),t instanceof i.RenderingCancelledException?r.resolve(void 0):(e.renderingState=s.RenderingStates.FINISHED,e._convertCanvasToImage(),t?r.reject(t):r.resolve(void 0))},a=this._getPageDrawContext(),o=this.viewport.clone({scale:this.scale}),l=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=s.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=s.RenderingStates.RUNNING,t()});t()},c={canvasContext:a,viewport:o},u=this.renderTask=t.render(c);return u.onContinue=l,u.promise.then((function(){n(null)}),(function(e){n(e)})),r.promise}},{key:"setImage",value:function(e){if(this.renderingState===s.RenderingStates.INITIAL){var t=e.canvas;if(t){this.pdfPage||this.setPdfPage(e.pdfPage),this.renderingState=s.RenderingStates.FINISHED;var r=this._getPageDrawContext(!0),n=r.canvas;if(t.width<=2*n.width)return r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height),void this._convertCanvasToImage();var a=n.width<<l,i=n.height<<l,o=d.getCanvas(a,i),c=o.getContext("2d");while(a>t.width||i>t.height)a>>=1,i>>=1;c.drawImage(t,0,0,t.width,t.height,0,0,a,i);while(a>2*n.width)c.drawImage(o,0,0,a,i,0,0,a>>1,i>>1),a>>=1,i>>=1;r.drawImage(o,0,0,a,i,0,0,n.width,n.height),this._convertCanvasToImage()}}}},{key:"setPageLabel",value:function(e){var t=this;this.pageLabel="string"===typeof e?e:null,this._thumbPageTitle.then((function(e){t.anchor.title=e})),this.renderingState===s.RenderingStates.FINISHED&&this._thumbPageCanvas.then((function(e){t.image?t.image.setAttribute("aria-label",e):t.disableCanvasToImageConversion&&t.canvas&&t.canvas.setAttribute("aria-label",e)}))}},{key:"_thumbPageTitle",get:function(){return this.l10n.get("thumb_page_title",{page:null!==this.pageLabel?this.pageLabel:this.id},"Page {{page}}")}},{key:"_thumbPageCanvas",get:function(){return this.l10n.get("thumb_page_canvas",{page:null!==this.pageLabel?this.pageLabel:this.id},"Thumbnail of Page {{page}}")}}],[{key:"cleanup",value:function(){d.destroyCanvas()}}]),e}();t.PDFThumbnailView=h},e260:function(e,t,r){"use strict";var n=r("fc6a"),a=r("44d2"),i=r("3f8c"),o=r("69f3"),s=r("7dd0"),l="Array Iterator",c=o.set,u=o.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=u(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")},e2c3:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3"),o=r("ed6d"),s=r("2d0d");Object.defineProperty(t,"__esModule",{value:!0}),t.GenericCom=void 0;var l=r("ead8"),c=r("872e"),u=r("b781"),d=r("9e56"),h={};t.GenericCom=h;var f=function(e){o(r,e);var t=s(r);function r(){return a(this,r),t.apply(this,arguments)}return i(r,[{key:"_writeToStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:localStorage.setItem("pdfjs.preferences",JSON.stringify(t));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_readFromStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",JSON.parse(localStorage.getItem("pdfjs.preferences")));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),r}(c.BasePreferences),p=function(e){o(r,e);var t=s(r);function r(){return a(this,r),t.apply(this,arguments)}return i(r,null,[{key:"createDownloadManager",value:function(e){return new u.DownloadManager(e)}},{key:"createPreferences",value:function(){return new f}},{key:"createL10n",value:function(e){var t=e.locale,r=void 0===t?"en-US":t;return new d.GenericL10n(r)}}]),r}(l.DefaultExternalServices);l.PDFViewerApplication.externalServices=p},e2cc:function(e,t,r){var n=r("6eeb");e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},e2f6:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("d3b7"),r("e6cf");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindBar=void 0;var i=r("0496"),o=r("f39c"),s=1e3,l=function(){function e(t,r){var a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.NullL10n;n(this,e),this.opened=!1,this.bar=t.bar||null,this.toggleButton=t.toggleButton||null,this.findField=t.findField||null,this.highlightAll=t.highlightAllCheckbox||null,this.caseSensitive=t.caseSensitiveCheckbox||null,this.entireWord=t.entireWordCheckbox||null,this.findMsg=t.findMsg||null,this.findResultsCount=t.findResultsCount||null,this.findPreviousButton=t.findPreviousButton||null,this.findNextButton=t.findNextButton||null,this.eventBus=r||(0,i.getGlobalEventBus)(),this.l10n=o,this.toggleButton.addEventListener("click",(function(){a.toggle()})),this.findField.addEventListener("input",(function(){a.dispatchEvent("")})),this.bar.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:e.target===a.findField&&a.dispatchEvent("again",e.shiftKey);break;case 27:a.close();break}})),this.findPreviousButton.addEventListener("click",(function(){a.dispatchEvent("again",!0)})),this.findNextButton.addEventListener("click",(function(){a.dispatchEvent("again",!1)})),this.highlightAll.addEventListener("click",(function(){a.dispatchEvent("highlightallchange")})),this.caseSensitive.addEventListener("click",(function(){a.dispatchEvent("casesensitivitychange")})),this.entireWord.addEventListener("click",(function(){a.dispatchEvent("entirewordchange")})),this.eventBus._on("resize",this._adjustWidth.bind(this))}return a(e,[{key:"reset",value:function(){this.updateUIState()}},{key:"dispatchEvent",value:function(e,t){this.eventBus.dispatch("find",{source:this,type:e,query:this.findField.value,phraseSearch:!0,caseSensitive:this.caseSensitive.checked,entireWord:this.entireWord.checked,highlightAll:this.highlightAll.checked,findPrevious:t})}},{key:"updateUIState",value:function(e,t,r){var n=this,a=!1,i="",s="";switch(e){case o.FindState.FOUND:break;case o.FindState.PENDING:s="pending";break;case o.FindState.NOT_FOUND:i=this.l10n.get("find_not_found",null,"Phrase not found"),a=!0;break;case o.FindState.WRAPPED:i=t?this.l10n.get("find_reached_top",null,"Reached top of document, continued from bottom"):this.l10n.get("find_reached_bottom",null,"Reached end of document, continued from top");break}this.findField.classList.toggle("notFound",a),this.findField.setAttribute("data-status",s),Promise.resolve(i).then((function(e){n.findMsg.textContent=e,n._adjustWidth()})),this.updateResultsCount(r)}},{key:"updateResultsCount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.current,n=void 0===r?0:r,a=t.total,i=void 0===a?0:a;if(this.findResultsCount){var o=s,l="";i>0&&(l=i>o?this.l10n.get("find_match_count_limit",{limit:o},"More than {{limit}} match"+(1!==o?"es":"")):this.l10n.get("find_match_count",{current:n,total:i},"{{current}} of {{total}} match"+(1!==i?"es":""))),Promise.resolve(l).then((function(t){e.findResultsCount.textContent=t,e.findResultsCount.classList.toggle("hidden",!i),e._adjustWidth()}))}}},{key:"open",value:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.bar.classList.remove("hidden")),this.findField.select(),this.findField.focus(),this._adjustWidth()}},{key:"close",value:function(){this.opened&&(this.opened=!1,this.toggleButton.classList.remove("toggled"),this.bar.classList.add("hidden"),this.eventBus.dispatch("findbarclose",{source:this}))}},{key:"toggle",value:function(){this.opened?this.close():this.open()}},{key:"_adjustWidth",value:function(){if(this.opened){this.bar.classList.remove("wrapContainers");var e=this.bar.clientHeight,t=this.bar.firstElementChild.clientHeight;e>t&&this.bar.classList.add("wrapContainers")}}}]),e}();t.PDFFindBar=l},e3db:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},e439:function(e,t,r){var n=r("23e7"),a=r("d039"),i=r("fc6a"),o=r("06cf").f,s=r("83ab"),l=a((function(){o(1)})),c=!s||l;n({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},e538:function(e,t,r){var n=r("b622");t.f=n},e553:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHistory=void 0;var o=20,s=function(){function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;a(this,e),this.fingerprint=t,this.cacheSize=n,this._initializedPromise=this._readFromStorage().then((function(e){var t=JSON.parse(e||"{}");if("files"in t)while(t.files.length>=r.cacheSize)t.files.shift();else t.files=[];for(var n=-1,a=0,i=t.files.length;a<i;a++){var o=t.files[a];if(o.fingerprint===r.fingerprint){n=a;break}}-1===n&&(n=t.files.push({fingerprint:r.fingerprint})-1),r.file=t.files[n],r.database=t}))}return i(e,[{key:"_writeToStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=JSON.stringify(this.database),localStorage.setItem("pdfjs.history",t);case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_readFromStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",localStorage.getItem("pdfjs.history"));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"set",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:return this.file[t]=r,e.abrupt("return",this._writeToStorage());case 4:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"setMultiple",value:function(){var e=n(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:for(r in t)this.file[r]=t[r];return e.abrupt("return",this._writeToStorage());case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:return n=this.file[t],e.abrupt("return",void 0!==n?n:r);case 4:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"getMultiple",value:function(){var e=n(regeneratorRuntime.mark((function e(t){var r,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:for(n in r=Object.create(null),t)a=this.file[n],r[n]=void 0!==a?a:t[n];return e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();t.ViewHistory=s},e58c:function(e,t,r){"use strict";var n=r("fc6a"),a=r("a691"),i=r("50c4"),o=r("a640"),s=r("ae40"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=o("lastIndexOf"),h=s("indexOf",{ACCESSORS:!0,1:0}),f=u||!d||!h;e.exports=f?function(e){if(u)return c.apply(this,arguments)||0;var t=n(this),r=i(t.length),o=r-1;for(arguments.length>1&&(o=l(o,a(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,r){"use strict";var n,a,i,o,s=r("23e7"),l=r("c430"),c=r("da84"),u=r("d066"),d=r("fea9"),h=r("6eeb"),f=r("e2cc"),p=r("d44e"),g=r("2626"),v=r("861d"),m=r("1c0b"),b=r("19aa"),y=r("c6b6"),w=r("8925"),_=r("2266"),k=r("1c7e"),x=r("4840"),S=r("2cf4").set,A=r("b575"),C=r("cdf9"),P=r("44de"),T=r("f069"),E=r("e667"),R=r("69f3"),I=r("94ca"),O=r("b622"),L=r("2d00"),F=O("species"),M="Promise",D=R.get,N=R.set,B=R.getterFor(M),U=d,j=c.TypeError,q=c.document,z=c.process,V=u("fetch"),W=T.f,H=W,G="process"==y(z),Y=!!(q&&q.createEvent&&c.dispatchEvent),X="unhandledrejection",K="rejectionhandled",Z=0,J=1,Q=2,$=1,ee=2,te=I(M,(function(){var e=w(U)!==String(U);if(!e){if(66===L)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!U.prototype["finally"])return!0;if(L>=51&&/native code/.test(U))return!1;var t=U.resolve(1),r=function(e){e((function(){}),(function(){}))},n=t.constructor={};return n[F]=r,!(t.then((function(){}))instanceof r)})),re=te||!k((function(e){U.all(e)["catch"]((function(){}))})),ne=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},ae=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;A((function(){var a=t.value,i=t.state==J,o=0;while(n.length>o){var s,l,c,u=n[o++],d=i?u.ok:u.fail,h=u.resolve,f=u.reject,p=u.domain;try{d?(i||(t.rejection===ee&&le(e,t),t.rejection=$),!0===d?s=a:(p&&p.enter(),s=d(a),p&&(p.exit(),c=!0)),s===u.promise?f(j("Promise-chain cycle")):(l=ne(s))?l.call(s,h,f):h(s)):f(a)}catch(g){p&&!c&&p.exit(),f(g)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&oe(e,t)}))}},ie=function(e,t,r){var n,a;Y?(n=q.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(a=c["on"+e])?a(n):e===X&&P("Unhandled promise rejection",r)},oe=function(e,t){S.call(c,(function(){var r,n=t.value,a=se(t);if(a&&(r=E((function(){G?z.emit("unhandledRejection",n,e):ie(X,e,n)})),t.rejection=G||se(t)?ee:$,r.error))throw r.value}))},se=function(e){return e.rejection!==$&&!e.parent},le=function(e,t){S.call(c,(function(){G?z.emit("rejectionHandled",e):ie(K,e,t.value)}))},ce=function(e,t,r,n){return function(a){e(t,r,a,n)}},ue=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=Q,ae(e,t,!0))},de=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw j("Promise can't be resolved itself");var a=ne(r);a?A((function(){var n={done:!1};try{a.call(r,ce(de,e,n,t),ce(ue,e,n,t))}catch(i){ue(e,n,i,t)}})):(t.value=r,t.state=J,ae(e,t,!1))}catch(i){ue(e,{done:!1},i,t)}}};te&&(U=function(e){b(this,U,M),m(e),n.call(this);var t=D(this);try{e(ce(de,this,t),ce(ue,this,t))}catch(r){ue(this,t,r)}},n=function(e){N(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},n.prototype=f(U.prototype,{then:function(e,t){var r=B(this),n=W(x(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=G?z.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=Z&&ae(this,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=ce(de,e,t),this.reject=ce(ue,e,t)},T.f=W=function(e){return e===U||e===i?new a(e):H(e)},l||"function"!=typeof d||(o=d.prototype.then,h(d.prototype,"then",(function(e,t){var r=this;return new U((function(e,t){o.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(U,V.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,M,!1,!0),g(M),i=u(M),s({target:M,stat:!0,forced:te},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:l||te},{resolve:function(e){return C(l&&this===i?U:this,e)}}),s({target:M,stat:!0,forced:re},{all:function(e){var t=this,r=W(t),n=r.resolve,a=r.reject,i=E((function(){var r=m(t.resolve),i=[],o=0,s=1;_(e,(function(e){var l=o++,c=!1;i.push(void 0),s++,r.call(t,e).then((function(e){c||(c=!0,i[l]=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=E((function(){var a=m(t.resolve);_(e,(function(e){a.call(t,e).then(r.resolve,n)}))}));return a.error&&n(a.value),r.promise}})},e841:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,'html{content:""}@media (prefers-color-scheme:light){html{content:"light"}}@media (prefers-color-scheme:dark){html{content:"dark"}}',""]),e.exports=t},e893:function(e,t,r){var n=r("5135"),a=r("56ef"),i=r("06cf"),o=r("9bf2");e.exports=function(e,t){for(var r=a(t),s=o.f,l=i.f,c=0;c<r.length;c++){var u=r[c];n(e,u)||s(e,u,l(t,u))}}},e8b5:function(e,t,r){var n=r("c6b6");e.exports=Array.isArray||function(e){return"Array"==n(e)}},e91f:function(e,t,r){"use strict";var n=r("ebb5"),a=r("4d64").indexOf,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("indexOf",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},e95a:function(e,t,r){var n=r("b622"),a=r("3f8c"),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},ead8:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("99af"),r("caad"),r("e260"),r("a15b"),r("baa5"),r("45fc"),r("b0c0"),r("b680"),r("d3b7"),r("e6cf"),r("ac1f"),r("25f0"),r("2532"),r("3ca3"),r("5319"),r("841c"),r("1276"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("ddb0"),r("2b3d");var n=r("6374"),a=r("278c");r("96cf");var i=r("c973"),o=r("970b"),s=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPrintServiceFactory=t.DefaultExternalServices=t.PDFViewerApplication=void 0;var l=r("0496"),c=r("04d0"),u=r("a3cd"),d=r("6ee0"),h=r("ef24"),f=r("7122"),p=r("9a29"),g=r("7086"),v=r("6ea4"),m=r("16ba"),b=r("e2f6"),y=r("f39c"),w=r("9eea"),_=r("8a38"),k=r("345d"),x=r("fe36"),S=r("da3a"),A=r("80b1"),C=r("2a8b"),P=r("761b"),T=r("cf01"),E=r("e553"),R=1.1,I=5e3,O=1e4,L=1e3,F={UNKNOWN:-1,PREVIOUS:0,INITIAL:1},M=function(){function e(){throw o(this,e),new Error("Cannot initialize DefaultExternalServices.")}return s(e,null,[{key:"updateFindControlState",value:function(e){}},{key:"updateFindMatchesCount",value:function(e){}},{key:"initPassiveLoading",value:function(e){}},{key:"fallback",value:function(e,t){}},{key:"reportTelemetry",value:function(e){}},{key:"createDownloadManager",value:function(e){throw new Error("Not implemented: createDownloadManager")}},{key:"createPreferences",value:function(){throw new Error("Not implemented: createPreferences")}},{key:"createL10n",value:function(e){throw new Error("Not implemented: createL10n")}},{key:"supportsIntegratedFind",get:function(){return(0,u.shadow)(this,"supportsIntegratedFind",!1)}},{key:"supportsDocumentFonts",get:function(){return(0,u.shadow)(this,"supportsDocumentFonts",!0)}},{key:"supportedMouseWheelZoomModifierKeys",get:function(){return(0,u.shadow)(this,"supportedMouseWheelZoomModifierKeys",{ctrlKey:!0,metaKey:!0})}}]),e}();t.DefaultExternalServices=M;var D,N={initialBookmark:document.location.hash.substring(1),_initializedCapability:(0,u.createPromiseCapability)(),fellback:!1,appConfig:null,pdfDocument:null,pdfLoadingTask:null,printService:null,pdfViewer:null,pdfThumbnailViewer:null,pdfRenderingQueue:null,pdfPresentationMode:null,pdfDocumentProperties:null,pdfLinkService:null,pdfHistory:null,pdfSidebar:null,pdfSidebarResizer:null,pdfOutlineViewer:null,pdfAttachmentViewer:null,pdfCursorTools:null,store:null,downloadManager:null,overlayManager:null,preferences:null,toolbar:null,secondaryToolbar:null,eventBus:null,l10n:null,isInitialViewSet:!1,downloadComplete:!1,isViewerEmbedded:window.parent!==window,url:"",baseUrl:"",externalServices:M,_boundEvents:{},contentDispositionFilename:null,initialize:function(e){var t=this;return i(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.preferences=t.externalServices.createPreferences(),t.appConfig=e,r.next=4,t._readPreferences();case 4:return r.next=6,t._parseHashParameters();case 6:return r.next=8,t._initializeL10n();case 8:return t.isViewerEmbedded&&c.AppOptions.get("externalLinkTarget")===u.LinkTarget.NONE&&c.AppOptions.set("externalLinkTarget",u.LinkTarget.TOP),r.next=11,t._initializeViewerComponents();case 11:t.bindEvents(),t.bindWindowEvents(),n=e.appContainer||document.documentElement,t.l10n.translate(n).then((function(){t.eventBus.dispatch("localized",{source:t})})),t._initializedCapability.resolve();case 16:case"end":return r.stop()}}),r)})))()},_readPreferences:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!0!==c.AppOptions.get("disablePreferences")){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.preferences.getAll();case 5:for(n in r=t.sent,r)c.AppOptions.set(n,r[n]);t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](2),console.error('_readPreferences: "'.concat(t.t0.message,'".'));case 12:case"end":return t.stop()}}),t,null,[[2,9]])})))()},_parseHashParameters:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r,n,a,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(c.AppOptions.get("pdfBugEnabled")){t.next=2;break}return t.abrupt("return",void 0);case 2:if(r=document.location.hash.substring(1),r){t.next=5;break}return t.abrupt("return",void 0);case 5:if(n=(0,l.parseQueryString)(r),a=[],"disableworker"in n&&"true"===n["disableworker"]&&a.push(z()),"disablerange"in n&&c.AppOptions.set("disableRange","true"===n["disablerange"]),"disablestream"in n&&c.AppOptions.set("disableStream","true"===n["disablestream"]),"disableautofetch"in n&&c.AppOptions.set("disableAutoFetch","true"===n["disableautofetch"]),"disablefontface"in n&&c.AppOptions.set("disableFontFace","true"===n["disablefontface"]),"disablehistory"in n&&c.AppOptions.set("disableHistory","true"===n["disablehistory"]),"webgl"in n&&c.AppOptions.set("enableWebGL","true"===n["webgl"]),"verbosity"in n&&c.AppOptions.set("verbosity",0|n["verbosity"]),!("textlayer"in n)){t.next=23;break}t.t0=n["textlayer"],t.next="off"===t.t0?18:"visible"===t.t0||"shadow"===t.t0||"hover"===t.t0?20:23;break;case 18:return c.AppOptions.set("textLayerMode",l.TextLayerMode.DISABLE),t.abrupt("break",23);case 20:return i=e.appConfig.viewerContainer,i.classList.add("textLayer-"+n["textlayer"]),t.abrupt("break",23);case 23:return"pdfbug"in n&&(c.AppOptions.set("pdfBug",!0),o=n["pdfbug"].split(","),a.push(W(o))),"locale"in n&&c.AppOptions.set("locale",n["locale"]),t.abrupt("return",Promise.all(a).catch((function(e){console.error('_parseHashParameters: "'.concat(e.message,'".'))})));case 26:case"end":return t.stop()}}),t)})))()},_initializeL10n:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.l10n=e.externalServices.createL10n({locale:c.AppOptions.get("locale")}),t.next=3,e.l10n.getDirection();case 3:r=t.sent,document.getElementsByTagName("html")[0].dir=r;case 5:case"end":return t.stop()}}),t)})))()},_initializeViewerComponents:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r,n,a,i,o,s,u,E;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=e.appConfig,e.overlayManager=new p.OverlayManager,n=r.eventBus||new l.EventBus({dispatchToDOM:c.AppOptions.get("eventBusDispatchToDOM")}),e.eventBus=n,a=new h.PDFRenderingQueue,a.onIdle=e.cleanup.bind(e),e.pdfRenderingQueue=a,i=new _.PDFLinkService({eventBus:n,externalLinkTarget:c.AppOptions.get("externalLinkTarget"),externalLinkRel:c.AppOptions.get("externalLinkRel"),ignoreDestinationZoom:c.AppOptions.get("ignoreDestinationZoom")}),e.pdfLinkService=i,o=e.externalServices.createDownloadManager({disableCreateObjectURL:c.AppOptions.get("disableCreateObjectURL")}),e.downloadManager=o,s=new y.PDFFindController({linkService:i,eventBus:n}),e.findController=s,u=r.mainContainer,E=r.viewerContainer,e.pdfViewer=new C.PDFViewer({container:u,viewer:E,eventBus:n,renderingQueue:a,linkService:i,downloadManager:o,findController:s,renderer:c.AppOptions.get("renderer"),enableWebGL:c.AppOptions.get("enableWebGL"),l10n:e.l10n,textLayerMode:c.AppOptions.get("textLayerMode"),imageResourcesPath:c.AppOptions.get("imageResourcesPath"),renderInteractiveForms:c.AppOptions.get("renderInteractiveForms"),enablePrintAutoRotate:c.AppOptions.get("enablePrintAutoRotate"),useOnlyCssZoom:c.AppOptions.get("useOnlyCssZoom"),maxCanvasPixels:c.AppOptions.get("maxCanvasPixels")}),a.setViewer(e.pdfViewer),i.setViewer(e.pdfViewer),e.pdfThumbnailViewer=new A.PDFThumbnailViewer({container:r.sidebar.thumbnailView,renderingQueue:a,linkService:i,l10n:e.l10n}),a.setThumbnailViewer(e.pdfThumbnailViewer),e.pdfHistory=new w.PDFHistory({linkService:i,eventBus:n}),i.setHistory(e.pdfHistory),e.supportsIntegratedFind||(e.findBar=new b.PDFFindBar(r.findBar,n,e.l10n)),e.pdfDocumentProperties=new m.PDFDocumentProperties(r.documentProperties,e.overlayManager,n,e.l10n),e.pdfCursorTools=new d.PDFCursorTools({container:u,eventBus:n,cursorToolOnLoad:c.AppOptions.get("cursorToolOnLoad")}),e.toolbar=new T.Toolbar(r.toolbar,n,e.l10n),e.secondaryToolbar=new P.SecondaryToolbar(r.secondaryToolbar,u,n),e.supportsFullscreen&&(e.pdfPresentationMode=new x.PDFPresentationMode({container:u,pdfViewer:e.pdfViewer,eventBus:n,contextMenuItems:r.fullscreen})),e.passwordPrompt=new g.PasswordPrompt(r.passwordOverlay,e.overlayManager,e.l10n),e.pdfOutlineViewer=new k.PDFOutlineViewer({container:r.sidebar.outlineView,eventBus:n,linkService:i}),e.pdfAttachmentViewer=new v.PDFAttachmentViewer({container:r.sidebar.attachmentsView,eventBus:n,downloadManager:o}),e.pdfSidebar=new f.PDFSidebar({elements:r.sidebar,pdfViewer:e.pdfViewer,pdfThumbnailViewer:e.pdfThumbnailViewer,eventBus:n,l10n:e.l10n}),e.pdfSidebar.onToggled=e.forceRendering.bind(e),e.pdfSidebarResizer=new S.PDFSidebarResizer(r.sidebarResizer,n,e.l10n);case 34:case"end":return t.stop()}}),t)})))()},run:function(e){this.initialize(e).then(H)},get initialized(){return this._initializedCapability.settled},get initializedPromise(){return this._initializedCapability.promise},zoomIn:function(e){if(!this.pdfViewer.isInPresentationMode){var t=this.pdfViewer.currentScale;do{t=(t*R).toFixed(2),t=Math.ceil(10*t)/10,t=Math.min(l.MAX_SCALE,t)}while(--e>0&&t<l.MAX_SCALE);this.pdfViewer.currentScaleValue=t}},zoomOut:function(e){if(!this.pdfViewer.isInPresentationMode){var t=this.pdfViewer.currentScale;do{t=(t/R).toFixed(2),t=Math.floor(10*t)/10,t=Math.max(l.MIN_SCALE,t)}while(--e>0&&t>l.MIN_SCALE);this.pdfViewer.currentScaleValue=t}},zoomReset:function(){this.pdfViewer.isInPresentationMode||(this.pdfViewer.currentScaleValue=l.DEFAULT_SCALE_VALUE)},get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0},set page(e){this.pdfViewer.currentPageNumber=e},get page(){return this.pdfViewer.currentPageNumber},get printing(){return!!this.printService},get supportsPrinting(){return Fe.instance.supportsPrinting},get supportsFullscreen(){var e,t=document.documentElement;return e=!!(t.requestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullScreen||t.msRequestFullscreen),!1!==document.fullscreenEnabled&&!1!==document.mozFullScreenEnabled&&!1!==document.webkitFullscreenEnabled&&!1!==document.msFullscreenEnabled||(e=!1),(0,u.shadow)(this,"supportsFullscreen",e)},get supportsIntegratedFind(){return this.externalServices.supportsIntegratedFind},get supportsDocumentFonts(){return this.externalServices.supportsDocumentFonts},get loadingBar(){var e=new l.ProgressBar("#loadingBar");return(0,u.shadow)(this,"loadingBar",e)},get supportedMouseWheelZoomModifierKeys(){return this.externalServices.supportedMouseWheelZoomModifierKeys},initPassiveLoading:function(){throw new Error("Not implemented: initPassiveLoading")},setTitleUsingUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.url=e,this.baseUrl=e.split("#")[0];var t=(0,l.getPDFFileNameFromURL)(e,"");if(!t)try{t=decodeURIComponent((0,u.getFilenameFromUrl)(e))||e}catch(r){t=e}this.setTitle(t)},setTitle:function(e){this.isViewerEmbedded||(document.title=e)},close:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.appConfig.errorWrapper.container,r.setAttribute("hidden","true"),e.pdfLoadingTask){t.next=4;break}return t.abrupt("return",void 0);case 4:return n=e.pdfLoadingTask.destroy(),e.pdfLoadingTask=null,e.pdfDocument&&(e.pdfDocument=null,e.pdfThumbnailViewer.setDocument(null),e.pdfViewer.setDocument(null),e.pdfLinkService.setDocument(null),e.pdfDocumentProperties.setDocument(null)),e.store=null,e.isInitialViewSet=!1,e.downloadComplete=!1,e.url="",e.baseUrl="",e.contentDispositionFilename=null,e.pdfSidebar.reset(),e.pdfOutlineViewer.reset(),e.pdfAttachmentViewer.reset(),e.pdfHistory&&e.pdfHistory.reset(),e.findBar&&e.findBar.reset(),e.toolbar.reset(),e.secondaryToolbar.reset(),"undefined"!==typeof PDFBug&&PDFBug.cleanup(),t.abrupt("return",n);case 22:case"end":return t.stop()}}),t)})))()},open:function(e,t){var r=this;return i(regeneratorRuntime.mark((function n(){var a,i,o,s,l,d,h,f,p;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!r.pdfLoadingTask){n.next=3;break}return n.next=3,r.close();case 3:for(i in a=c.AppOptions.getAll(c.OptionKind.WORKER),a)u.GlobalWorkerOptions[i]=a[i];for(l in o=Object.create(null),"string"===typeof e?(r.setTitleUsingUrl(e),o.url=e):e&&"byteLength"in e?o.data=e:e.url&&e.originalUrl&&(r.setTitleUsingUrl(e.originalUrl),o.url=e.url),s=c.AppOptions.getAll(c.OptionKind.API),s)d=s[l],o[l]=d;if(t)for(h in t)f=t[h],"length"===h&&r.pdfDocumentProperties.setFileSize(f),o[h]=f;return p=(0,u.getDocument)(o),r.pdfLoadingTask=p,p.onPassword=function(e,t){r.pdfLinkService.externalLinkEnabled=!1,r.passwordPrompt.setUpdateCallback(e,t),r.passwordPrompt.open()},p.onProgress=function(e){var t=e.loaded,n=e.total;r.progress(t/n)},p.onUnsupportedFeature=r.fallback.bind(r),n.abrupt("return",p.promise.then((function(e){r.load(e)}),(function(e){if(p===r.pdfLoadingTask){var t,n=e&&e.message;return t=e instanceof u.InvalidPDFException?r.l10n.get("invalid_file_error",null,"Invalid or corrupted PDF file."):e instanceof u.MissingPDFException?r.l10n.get("missing_file_error",null,"Missing PDF file."):e instanceof u.UnexpectedResponseException?r.l10n.get("unexpected_response_error",null,"Unexpected server response."):r.l10n.get("loading_error",null,"An error occurred while loading the PDF."),t.then((function(e){throw r.error(e,{message:n}),new Error(e)}))}})));case 16:case"end":return n.stop()}}),n)})))()},download:function(){var e=this;function t(){a.downloadUrl(r,n)}var r=this.baseUrl,n=this.contentDispositionFilename||(0,l.getPDFFileNameFromURL)(this.url),a=this.downloadManager;a.onerror=function(t){e.error("PDF failed to download: ".concat(t))},this.pdfDocument&&this.downloadComplete?this.pdfDocument.getData().then((function(e){var t=new Blob([e],{type:"application/pdf"});a.download(t,r,n)})).catch(t):t()},fallback:function(e){this.fellback||(this.fellback=!0,this.externalServices.fallback({featureId:e,url:this.baseUrl},(function(e){e&&N.download()})))},error:function(e,t){var r=[this.l10n.get("error_version_info",{version:u.version||"?",build:u.build||"?"},"PDF.js v{{version}} (build: {{build}})")];t&&(r.push(this.l10n.get("error_message",{message:t.message},"Message: {{message}}")),t.stack?r.push(this.l10n.get("error_stack",{stack:t.stack},"Stack: {{stack}}")):(t.filename&&r.push(this.l10n.get("error_file",{file:t.filename},"File: {{file}}")),t.lineNumber&&r.push(this.l10n.get("error_line",{line:t.lineNumber},"Line: {{line}}"))));var n=this.appConfig.errorWrapper,a=n.container;a.removeAttribute("hidden");var i=n.errorMessage;i.textContent=e;var o=n.closeButton;o.onclick=function(){a.setAttribute("hidden","true")};var s=n.errorMoreInfo,c=n.moreInfoButton,d=n.lessInfoButton;c.onclick=function(){s.removeAttribute("hidden"),c.setAttribute("hidden","true"),d.removeAttribute("hidden"),s.style.height=s.scrollHeight+"px"},d.onclick=function(){s.setAttribute("hidden","true"),c.removeAttribute("hidden"),d.setAttribute("hidden","true")},c.oncontextmenu=l.noContextMenuHandler,d.oncontextmenu=l.noContextMenuHandler,o.oncontextmenu=l.noContextMenuHandler,c.removeAttribute("hidden"),d.setAttribute("hidden","true"),Promise.all(r).then((function(e){s.value=e.join("\n")}))},progress:function(e){var t=this;if(!this.downloadComplete){var r=Math.round(100*e);if(r>this.loadingBar.percent||isNaN(r)){this.loadingBar.percent=r;var n=this.pdfDocument?this.pdfDocument.loadingParams["disableAutoFetch"]:c.AppOptions.get("disableAutoFetch");n&&r&&(this.disableAutoFetchLoadingBarTimeout&&(clearTimeout(this.disableAutoFetchLoadingBarTimeout),this.disableAutoFetchLoadingBarTimeout=null),this.loadingBar.show(),this.disableAutoFetchLoadingBarTimeout=setTimeout((function(){t.loadingBar.hide(),t.disableAutoFetchLoadingBarTimeout=null}),I))}}},load:function(e){var t=this;this.pdfDocument=e,e.getDownloadInfo().then((function(){t.downloadComplete=!0,t.loadingBar.hide(),g.then((function(){t.eventBus.dispatch("documentloaded",{source:t})}))}));var r=e.getPageLayout().catch((function(){})),o=e.getPageMode().catch((function(){})),s=e.getOpenAction().catch((function(){}));this.toolbar.setPagesCount(e.numPages,!1),this.secondaryToolbar.setPagesCount(e.numPages);var d,h=this.store=new E.ViewHistory(e.fingerprint);d=null,this.pdfLinkService.setDocument(e,d),this.pdfDocumentProperties.setDocument(e,this.url);var p=this.pdfViewer;p.setDocument(e);var g=p.firstPagePromise,v=p.onePageRendered,m=p.pagesPromise,b=this.pdfThumbnailViewer;b.setDocument(e),g.then((function(n){t.loadingBar.setWidth(t.appConfig.viewerContainer);var u=h.getMultiple({page:null,zoom:l.DEFAULT_SCALE_VALUE,scrollLeft:"0",scrollTop:"0",rotation:null,sidebarView:f.SidebarView.UNKNOWN,scrollMode:l.ScrollMode.UNKNOWN,spreadMode:l.SpreadMode.UNKNOWN}).catch((function(){}));Promise.all([l.animationStarted,u,r,o,s]).then(function(){var r=i(regeneratorRuntime.mark((function r(n){var i,o,s,u,d,h,g,v,b,y,w,_,k,x;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return i=a(n,5),i[0],o=i[1],s=void 0===o?{}:o,u=i[2],d=i[3],h=i[4],g=c.AppOptions.get("viewOnLoad"),t._initializePdfHistory({fingerprint:e.fingerprint,viewOnLoad:g,initialDest:h&&h.dest}),v=t.initialBookmark,b=c.AppOptions.get("defaultZoomValue"),y=b?"zoom=".concat(b):null,w=null,_=c.AppOptions.get("sidebarViewOnLoad"),k=c.AppOptions.get("scrollModeOnLoad"),x=c.AppOptions.get("spreadModeOnLoad"),s.page&&g!==F.INITIAL&&(y="page=".concat(s.page,"&zoom=").concat(b||s.zoom,",")+"".concat(s.scrollLeft,",").concat(s.scrollTop),w=parseInt(s.rotation,10),_===f.SidebarView.UNKNOWN&&(_=0|s.sidebarView),k===l.ScrollMode.UNKNOWN&&(k=0|s.scrollMode),x===l.SpreadMode.UNKNOWN&&(x=0|s.spreadMode)),d&&_===f.SidebarView.UNKNOWN&&(_=Le(d)),u&&x===l.SpreadMode.UNKNOWN&&(x=Oe(u)),t.setInitialView(y,{rotation:w,sidebarView:_,scrollMode:k,spreadMode:x}),t.eventBus.dispatch("documentinit",{source:t}),t.isViewerEmbedded||p.focus(),r.next=18,Promise.race([m,new Promise((function(e){setTimeout(e,O)}))]);case 18:if(v||y){r.next=20;break}return r.abrupt("return");case 20:if(!p.hasEqualPageSizes){r.next=22;break}return r.abrupt("return");case 22:t.initialBookmark=v,p.currentScaleValue=p.currentScaleValue,t.setInitialView(y);case 25:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).catch((function(){t.setInitialView()})).then((function(){p.update()}))})),e.getPageLabels().then((function(r){if(r&&!c.AppOptions.get("disablePageLabels")){var n=r.length;if(n===t.pagesCount){var a=0;while(a<n&&r[a]===(a+1).toString())a++;a!==n&&(p.setPageLabels(r),b.setPageLabels(r),t.toolbar.setPagesCount(e.numPages,!0),t.toolbar.setPageNumber(p.currentPageNumber,p.currentPageLabel))}else console.error("The number of Page Labels does not match the number of pages in the document.")}})),m.then(i(regeneratorRuntime.mark((function r(){var i,o,c,d,h,f,p,g;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([s,e.getJavaScript()]);case 2:if(i=r.sent,o=a(i,2),c=o[0],d=o[1],h=!1,c&&"Print"===c.action&&(h=!0),!d){r.next=29;break}if(d.some((function(e){return!!e&&(console.warn("Warning: JavaScript is not supported"),t.fallback(u.UNSUPPORTED_FEATURES.javaScript),!0)})),h){r.next=29;break}f=n(d),r.prev=12,f.s();case 14:if((p=f.n()).done){r.next=21;break}if(g=p.value,!g||!l.AutoPrintRegExp.test(g)){r.next=19;break}return h=!0,r.abrupt("break",21);case 19:r.next=14;break;case 21:r.next=26;break;case 23:r.prev=23,r.t0=r["catch"](12),f.e(r.t0);case 26:return r.prev=26,f.f(),r.finish(26);case 29:if(t.supportsPrinting){r.next=31;break}return r.abrupt("return");case 31:h&&setTimeout((function(){window.print()}));case 32:case"end":return r.stop()}}),r,null,[[12,23,26,29]])})))),v.then((function(){e.getOutline().then((function(e){t.pdfOutlineViewer.render({outline:e})})),e.getAttachments().then((function(e){t.pdfAttachmentViewer.render({attachments:e})}))})),e.getMetadata().then((function(e){var r,n=e.info,a=e.metadata,i=e.contentDispositionFilename;t.documentInfo=n,t.metadata=a,t.contentDispositionFilename=i;var o=n&&n["Title"];o&&(r=o);var s=a&&a.get("dc:title");s&&("Untitled"===s||/[\uFFF0-\uFFFF]/g.test(s)||(r=s)),r?t.setTitle("".concat(r," - ").concat(i||document.title)):i&&t.setTitle(i),n.IsAcroFormPresent&&(console.warn("Warning: AcroForm/XFA is not supported"),t.fallback(u.UNSUPPORTED_FEATURES.forms));var l="other",c=["1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.2","2.3"];c.includes(n.PDFFormatVersion)&&(l="v".concat(n.PDFFormatVersion.replace(".","_")));var d="other",h=["acrobat distiller","acrobat pdfwriter","adobe livecycle","adobe pdf library","adobe photoshop","ghostscript","tcpdf","cairo","dvipdfm","dvips","pdftex","pdfkit","itext","prince","quarkxpress","mac os x","microsoft","openoffice","oracle","luradocument","pdf-xchange","antenna house","aspose.cells","fpdf"];if(n.Producer){var f=n.Producer.toLowerCase();h.some((function(e){return!!f.includes(e)&&(d=e.replace(/[ .\-]/g,"_"),!0)}))}var p=null;n.IsAcroFormPresent&&(p=n.IsXFAPresent?"xfa":"acroform"),t.externalServices.reportTelemetry({type:"documentInfo",version:l,generator:d,formType:p})}))},_initializePdfHistory:function(e){var t=e.fingerprint,r=e.viewOnLoad,n=e.initialDest,a=void 0===n?null:n;c.AppOptions.get("disableHistory")||this.isViewerEmbedded||(this.pdfHistory.initialize({fingerprint:t,resetHistory:r===F.INITIAL,updateUrl:c.AppOptions.get("historyUpdateUrl")}),this.pdfHistory.initialBookmark&&(this.initialBookmark=this.pdfHistory.initialBookmark,this.initialRotation=this.pdfHistory.initialRotation),a&&!this.initialBookmark&&r===F.UNKNOWN&&(this.initialBookmark=JSON.stringify(a),this.pdfHistory.push({explicitDest:a,pageNumber:null})))},setInitialView:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.rotation,a=r.sidebarView,i=r.scrollMode,o=r.spreadMode,s=function(e){(0,l.isValidRotation)(e)&&(t.pdfViewer.pagesRotation=e)},c=function(e,r){(0,l.isValidScrollMode)(e)&&(t.pdfViewer.scrollMode=e),(0,l.isValidSpreadMode)(r)&&(t.pdfViewer.spreadMode=r)};this.isInitialViewSet=!0,this.pdfSidebar.setInitialView(a),c(i,o),this.initialBookmark?(s(this.initialRotation),delete this.initialRotation,this.pdfLinkService.setHash(this.initialBookmark),this.initialBookmark=null):e&&(s(n),this.pdfLinkService.setHash(e)),this.toolbar.setPageNumber(this.pdfViewer.currentPageNumber,this.pdfViewer.currentPageLabel),this.secondaryToolbar.setPageNumber(this.pdfViewer.currentPageNumber),this.pdfViewer.currentScaleValue||(this.pdfViewer.currentScaleValue=l.DEFAULT_SCALE_VALUE)},cleanup:function(){this.pdfDocument&&(this.pdfViewer.cleanup(),this.pdfThumbnailViewer.cleanup(),this.pdfViewer.renderer!==l.RendererType.SVG&&this.pdfDocument.cleanup())},forceRendering:function(){this.pdfRenderingQueue.printing=this.printing,this.pdfRenderingQueue.isThumbnailViewEnabled=this.pdfSidebar.isThumbnailViewVisible,this.pdfRenderingQueue.renderHighestPriority()},beforePrint:function(){var e=this;if(!this.printService)if(this.supportsPrinting)if(this.pdfViewer.pageViewsReady){var t=this.pdfViewer.getPagesOverview(),r=this.appConfig.printContainer,n=Fe.instance.createPrintService(this.pdfDocument,t,r,this.l10n);this.printService=n,this.forceRendering(),n.layout(),this.externalServices.reportTelemetry({type:"print"})}else this.l10n.get("printing_not_ready",null,"Warning: The PDF is not fully loaded for printing.").then((function(e){window.alert(e)}));else this.l10n.get("printing_not_supported",null,"Warning: Printing is not fully supported by this browser.").then((function(t){e.error(t)}))},afterPrint:function(){this.printService&&(this.printService.destroy(),this.printService=null),this.forceRendering()},rotatePages:function(e){if(this.pdfDocument){var t=(this.pdfViewer.pagesRotation+360+e)%360;this.pdfViewer.pagesRotation=t}},requestPresentationMode:function(){this.pdfPresentationMode&&this.pdfPresentationMode.request()},bindEvents:function(){var e=this.eventBus,t=this._boundEvents;t.beforePrint=this.beforePrint.bind(this),t.afterPrint=this.afterPrint.bind(this),e._on("resize",ee),e._on("hashchange",te),e._on("beforeprint",t.beforePrint),e._on("afterprint",t.afterPrint),e._on("pagerendered",G),e._on("updateviewarea",J),e._on("pagechanging",Ae),e._on("scalechanging",xe),e._on("rotationchanging",Se),e._on("sidebarviewchanged",Z),e._on("pagemode",Y),e._on("namedaction",X),e._on("presentationmodechanged",K),e._on("presentationmode",re),e._on("print",ne),e._on("download",ae),e._on("firstpage",ie),e._on("lastpage",oe),e._on("nextpage",se),e._on("previouspage",le),e._on("zoomin",ce),e._on("zoomout",ue),e._on("zoomreset",de),e._on("pagenumberchanged",he),e._on("scalechanged",fe),e._on("rotatecw",pe),e._on("rotateccw",ge),e._on("switchscrollmode",ve),e._on("scrollmodechanged",Q),e._on("switchspreadmode",me),e._on("spreadmodechanged",$),e._on("documentproperties",be),e._on("find",ye),e._on("findfromurlhash",we),e._on("updatefindmatchescount",_e),e._on("updatefindcontrolstate",ke),e._on("fileinputchange",U),e._on("openfile",j)},bindWindowEvents:function(){var e=this.eventBus,t=this._boundEvents;t.windowResize=function(){e.dispatch("resize",{source:window})},t.windowHashChange=function(){e.dispatch("hashchange",{source:window,hash:document.location.hash.substring(1)})},t.windowBeforePrint=function(){e.dispatch("beforeprint",{source:window})},t.windowAfterPrint=function(){e.dispatch("afterprint",{source:window})},window.addEventListener("visibilitychange",Ce),window.addEventListener("wheel",Ee,{passive:!1}),window.addEventListener("click",Re),window.addEventListener("keydown",Ie),window.addEventListener("resize",t.windowResize),window.addEventListener("hashchange",t.windowHashChange),window.addEventListener("beforeprint",t.windowBeforePrint),window.addEventListener("afterprint",t.windowAfterPrint)},unbindEvents:function(){var e=this.eventBus,t=this._boundEvents;e._off("resize",ee),e._off("hashchange",te),e._off("beforeprint",t.beforePrint),e._off("afterprint",t.afterPrint),e._off("pagerendered",G),e._off("updateviewarea",J),e._off("pagechanging",Ae),e._off("scalechanging",xe),e._off("rotationchanging",Se),e._off("sidebarviewchanged",Z),e._off("pagemode",Y),e._off("namedaction",X),e._off("presentationmodechanged",K),e._off("presentationmode",re),e._off("print",ne),e._off("download",ae),e._off("firstpage",ie),e._off("lastpage",oe),e._off("nextpage",se),e._off("previouspage",le),e._off("zoomin",ce),e._off("zoomout",ue),e._off("zoomreset",de),e._off("pagenumberchanged",he),e._off("scalechanged",fe),e._off("rotatecw",pe),e._off("rotateccw",ge),e._off("switchscrollmode",ve),e._off("scrollmodechanged",Q),e._off("switchspreadmode",me),e._off("spreadmodechanged",$),e._off("documentproperties",be),e._off("find",ye),e._off("findfromurlhash",we),e._off("updatefindmatchescount",_e),e._off("updatefindcontrolstate",ke),e._off("fileinputchange",U),e._off("openfile",j),t.beforePrint=null,t.afterPrint=null},unbindWindowEvents:function(){var e=this._boundEvents;window.removeEventListener("visibilitychange",Ce),window.removeEventListener("wheel",Ee),window.removeEventListener("click",Re),window.removeEventListener("keydown",Ie),window.removeEventListener("resize",e.windowResize),window.removeEventListener("hashchange",e.windowHashChange),window.removeEventListener("beforeprint",e.windowBeforePrint),window.removeEventListener("afterprint",e.windowAfterPrint),e.windowResize=null,e.windowHashChange=null,e.windowBeforePrint=null,e.windowAfterPrint=null}};t.PDFViewerApplication=N;var B,U,j,q=["null","http://mozilla.github.io","https://mozilla.github.io"];function z(){return V.apply(this,arguments)}function V(){return V=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return u.GlobalWorkerOptions.workerSrc||(u.GlobalWorkerOptions.workerSrc=c.AppOptions.get("workerSrc")),e.abrupt("return",(0,u.loadScript)(u.PDFWorker.getWorkerSrc()));case 2:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function W(e){var t=N.appConfig;return(0,u.loadScript)(t.debuggerScriptPath).then((function(){PDFBug.enable(e),PDFBug.init({OPS:u.OPS},t.mainContainer)}))}function H(){var e,t=N.appConfig,r=document.location.search.substring(1),n=(0,l.parseQueryString)(r);e="file"in n?n.file:c.AppOptions.get("defaultUrl"),D(e);var a=document.createElement("input");a.id=t.openFileInputName,a.className="fileInput",a.setAttribute("type","file"),a.oncontextmenu=l.noContextMenuHandler,document.body.appendChild(a),window.File&&window.FileReader&&window.FileList&&window.Blob?a.value=null:(t.toolbar.openFile.setAttribute("hidden","true"),t.secondaryToolbar.openFileButton.setAttribute("hidden","true")),a.addEventListener("change",(function(e){var t=e.target.files;t&&0!==t.length&&N.eventBus.dispatch("fileinputchange",{source:this,fileInput:e.target})})),t.mainContainer.addEventListener("dragover",(function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"})),t.mainContainer.addEventListener("drop",(function(e){e.preventDefault();var t=e.dataTransfer.files;t&&0!==t.length&&N.eventBus.dispatch("fileinputchange",{source:this,fileInput:e.dataTransfer})})),N.supportsDocumentFonts||(c.AppOptions.set("disableFontFace",!0),N.l10n.get("web_fonts_disabled",null,"Web fonts are disabled: unable to use embedded PDF fonts.").then((function(e){console.warn(e)}))),N.supportsPrinting||(t.toolbar.print.classList.add("hidden"),t.secondaryToolbar.printButton.classList.add("hidden")),N.supportsFullscreen||(t.toolbar.presentationModeButton.classList.add("hidden"),t.secondaryToolbar.presentationModeButton.classList.add("hidden")),N.supportsIntegratedFind&&t.toolbar.viewFind.classList.add("hidden"),t.mainContainer.addEventListener("transitionend",(function(e){e.target===this&&N.eventBus.dispatch("resize",{source:this})}),!0);try{B(e)}catch(i){N.l10n.get("loading_error",null,"An error occurred while loading the PDF.").then((function(e){N.error(e,i)}))}}function G(e){var t=e.pageNumber,r=t-1,n=N.pdfViewer.getPageView(r);if(t===N.page&&N.toolbar.updateLoadingIndicatorState(!1),n){if(N.pdfSidebar.isThumbnailViewVisible){var a=N.pdfThumbnailViewer.getThumbnail(r);a.setImage(n)}"undefined"!==typeof Stats&&Stats.enabled&&n.stats&&Stats.add(t,n.stats),n.error&&N.l10n.get("rendering_error",null,"An error occurred while rendering the page.").then((function(e){N.error(e,n.error)})),N.externalServices.reportTelemetry({type:"pageInfo",timestamp:e.timestamp}),N.pdfDocument.getStats().then((function(e){N.externalServices.reportTelemetry({type:"documentStats",stats:e})}))}}function Y(e){var t,r=e.mode;switch(r){case"thumbs":t=f.SidebarView.THUMBS;break;case"bookmarks":case"outline":t=f.SidebarView.OUTLINE;break;case"attachments":t=f.SidebarView.ATTACHMENTS;break;case"none":t=f.SidebarView.NONE;break;default:return void console.error('Invalid "pagemode" hash parameter: '+r)}N.pdfSidebar.switchView(t,!0)}function X(e){var t=e.action;switch(t){case"GoToPage":N.appConfig.toolbar.pageNumber.select();break;case"Find":N.supportsIntegratedFind||N.findBar.toggle();break}}function K(e){var t=e.active,r=e.switchInProgress,n=l.PresentationModeState.NORMAL;r?n=l.PresentationModeState.CHANGING:t&&(n=l.PresentationModeState.FULLSCREEN),N.pdfViewer.presentationModeState=n}function Z(e){N.pdfRenderingQueue.isThumbnailViewEnabled=N.pdfSidebar.isThumbnailViewVisible;var t=N.store;t&&N.isInitialViewSet&&t.set("sidebarView",e.view).catch((function(){}))}function J(e){var t=e.location,r=N.store;r&&N.isInitialViewSet&&r.setMultiple({page:t.pageNumber,zoom:t.scale,scrollLeft:t.left,scrollTop:t.top,rotation:t.rotation}).catch((function(){}));var n=N.pdfLinkService.getAnchorUrl(t.pdfOpenParams);N.appConfig.toolbar.viewBookmark.href=n,N.appConfig.secondaryToolbar.viewBookmarkButton.href=n;var a=N.pdfViewer.getPageView(N.page-1),i=a.renderingState!==h.RenderingStates.FINISHED;N.toolbar.updateLoadingIndicatorState(i)}function Q(e){var t=N.store;t&&N.isInitialViewSet&&t.set("scrollMode",e.mode).catch((function(){}))}function $(e){var t=N.store;t&&N.isInitialViewSet&&t.set("spreadMode",e.mode).catch((function(){}))}function ee(){var e=N.pdfDocument,t=N.pdfViewer;if(e){var r=t.currentScaleValue;"auto"!==r&&"page-fit"!==r&&"page-width"!==r||(t.currentScaleValue=r),t.update()}}function te(e){var t=e.hash;t&&(N.isInitialViewSet?N.pdfHistory.popStateInProgress||N.pdfLinkService.setHash(t):N.initialBookmark=t)}function re(){N.requestPresentationMode()}function ne(){window.print()}function ae(){N.download()}function ie(){N.pdfDocument&&(N.page=1)}function oe(){N.pdfDocument&&(N.page=N.pagesCount)}function se(){N.page++}function le(){N.page--}function ce(){N.zoomIn()}function ue(){N.zoomOut()}function de(){N.zoomReset()}function he(e){var t=N.pdfViewer;""!==e.value&&(t.currentPageLabel=e.value),e.value!==t.currentPageNumber.toString()&&e.value!==t.currentPageLabel&&N.toolbar.setPageNumber(t.currentPageNumber,t.currentPageLabel)}function fe(e){N.pdfViewer.currentScaleValue=e.value}function pe(){N.rotatePages(90)}function ge(){N.rotatePages(-90)}function ve(e){N.pdfViewer.scrollMode=e.mode}function me(e){N.pdfViewer.spreadMode=e.mode}function be(){N.pdfDocumentProperties.open()}function ye(e){N.findController.executeCommand("find"+e.type,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,entireWord:e.entireWord,highlightAll:e.highlightAll,findPrevious:e.findPrevious})}function we(e){N.findController.executeCommand("find",{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:!1,entireWord:!1,highlightAll:!0,findPrevious:!1})}function _e(e){var t=e.matchesCount;N.supportsIntegratedFind?N.externalServices.updateFindMatchesCount(t):N.findBar.updateResultsCount(t)}function ke(e){var t=e.state,r=e.previous,n=e.matchesCount;N.supportsIntegratedFind?N.externalServices.updateFindControlState({result:t,findPrevious:r,matchesCount:n}):N.findBar.updateUIState(t,r,n)}function xe(e){N.toolbar.setPageScale(e.presetValue,e.scale),N.pdfViewer.update()}function Se(e){N.pdfThumbnailViewer.pagesRotation=e.pagesRotation,N.forceRendering(),N.pdfViewer.currentPageNumber=e.pageNumber}function Ae(e){var t=e.pageNumber;if(N.toolbar.setPageNumber(t,e.pageLabel||null),N.secondaryToolbar.setPageNumber(t),N.pdfSidebar.isThumbnailViewVisible&&N.pdfThumbnailViewer.scrollThumbnailIntoView(t),"undefined"!==typeof Stats&&Stats.enabled){var r=N.pdfViewer.getPageView(t-1);r&&r.stats&&Stats.add(t,r.stats)}}function Ce(e){"visible"===document.visibilityState&&Te()}D=function(e){if(void 0!==e)try{var t=new URL(window.location.href).origin||"null";if(q.includes(t))return;var r=new URL(e,window.location.href),n=r.origin,a=r.protocol;if(n!==t&&"blob:"!==a)throw new Error("file origin does not match viewer's")}catch(o){var i=o&&o.message;throw N.l10n.get("loading_error",null,"An error occurred while loading the PDF.").then((function(e){N.error(e,{message:i})})),o}},B=function(e){if(e&&0===e.lastIndexOf("file:",0)){N.setTitleUsingUrl(e);var t=new XMLHttpRequest;return t.onload=function(){N.open(new Uint8Array(t.response))},t.open("GET",e),t.responseType="arraybuffer",void t.send()}e&&N.open(e)},U=function(e){if(!N.pdfViewer||!N.pdfViewer.isInPresentationMode){var t=e.fileInput.files[0];if(URL.createObjectURL&&!c.AppOptions.get("disableCreateObjectURL")){var r=URL.createObjectURL(t);t.name&&(r={url:r,originalUrl:t.name}),N.open(r)}else{N.setTitleUsingUrl(t.name);var n=new FileReader;n.onload=function(e){var t=e.target.result;N.open(new Uint8Array(t))},n.readAsArrayBuffer(t)}var a=N.appConfig;a.toolbar.viewBookmark.setAttribute("hidden","true"),a.secondaryToolbar.viewBookmarkButton.setAttribute("hidden","true"),a.toolbar.download.setAttribute("hidden","true"),a.secondaryToolbar.downloadButton.setAttribute("hidden","true")}},j=function(e){var t=N.appConfig.openFileInputName;document.getElementById(t).click()};var Pe=null;function Te(){Pe&&clearTimeout(Pe),Pe=setTimeout((function(){Pe=null}),L)}function Ee(e){var t=N.pdfViewer,r=N.supportedMouseWheelZoomModifierKeys;if(!t.isInPresentationMode)if(e.ctrlKey&&r.ctrlKey||e.metaKey&&r.metaKey){if(e.preventDefault(),Pe||"hidden"===document.visibilityState)return;var n=t.currentScale,a=(0,l.normalizeWheelEventDelta)(e),i=3,o=a*i;o<0?N.zoomOut(-o):N.zoomIn(o);var s=t.currentScale;if(n!==s){var c=s/n-1,u=t.container.getBoundingClientRect(),d=e.clientX-u.left,h=e.clientY-u.top;t.container.scrollLeft+=d*c,t.container.scrollTop+=h*c}}else Te()}function Re(e){if(N.secondaryToolbar.isOpen){var t=N.appConfig;(N.pdfViewer.containsElement(e.target)||t.toolbar.container.contains(e.target)&&e.target!==t.secondaryToolbar.toggleButton)&&N.secondaryToolbar.close()}}function Ie(e){if(!N.overlayManager.active){var t=!1,r=!1,n=(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0),a=N.pdfViewer,i=a&&a.isInPresentationMode;if(1===n||8===n||5===n||12===n)switch(e.keyCode){case 70:N.supportsIntegratedFind||(N.findBar.open(),t=!0);break;case 71:if(!N.supportsIntegratedFind){var o=N.findController.state;o&&N.findController.executeCommand("findagain",{query:o.query,phraseSearch:o.phraseSearch,caseSensitive:o.caseSensitive,entireWord:o.entireWord,highlightAll:o.highlightAll,findPrevious:5===n||12===n}),t=!0}break;case 61:case 107:case 187:case 171:i||N.zoomIn(),t=!0;break;case 173:case 109:case 189:i||N.zoomOut(),t=!0;break;case 48:case 96:i||(setTimeout((function(){N.zoomReset()})),t=!1);break;case 38:(i||N.page>1)&&(N.page=1,t=!0,r=!0);break;case 40:(i||N.page<N.pagesCount)&&(N.page=N.pagesCount,t=!0,r=!0);break}if(1===n||8===n)switch(e.keyCode){case 83:N.download(),t=!0;break}if(3===n||10===n)switch(e.keyCode){case 80:N.requestPresentationMode(),t=!0;break;case 71:N.appConfig.toolbar.pageNumber.select(),t=!0;break}if(t)return r&&!i&&a.focus(),void e.preventDefault();var s=document.activeElement||document.querySelector(":focus"),l=s&&s.tagName.toUpperCase();if(!("INPUT"===l||"TEXTAREA"===l||"SELECT"===l||s&&s.isContentEditable)||27===e.keyCode){if(0===n){var c=0,u=!1;switch(e.keyCode){case 38:case 33:a.isVerticalScrollbarEnabled&&(u=!0),c=-1;break;case 8:i||(u=!0),c=-1;break;case 37:a.isHorizontalScrollbarEnabled&&(u=!0);case 75:case 80:c=-1;break;case 27:N.secondaryToolbar.isOpen&&(N.secondaryToolbar.close(),t=!0),!N.supportsIntegratedFind&&N.findBar.opened&&(N.findBar.close(),t=!0);break;case 40:case 34:a.isVerticalScrollbarEnabled&&(u=!0),c=1;break;case 13:case 32:i||(u=!0),c=1;break;case 39:a.isHorizontalScrollbarEnabled&&(u=!0);case 74:case 78:c=1;break;case 36:(i||N.page>1)&&(N.page=1,t=!0,r=!0);break;case 35:(i||N.page<N.pagesCount)&&(N.page=N.pagesCount,t=!0,r=!0);break;case 83:N.pdfCursorTools.switchTool(d.CursorTool.SELECT);break;case 72:N.pdfCursorTools.switchTool(d.CursorTool.HAND);break;case 82:N.rotatePages(90);break;case 115:N.pdfSidebar.toggle();break}0===c||u&&"page-fit"!==a.currentScaleValue||(c>0?N.page<N.pagesCount&&N.page++:N.page>1&&N.page--,t=!0)}if(4===n)switch(e.keyCode){case 13:case 32:if(!i&&"page-fit"!==a.currentScaleValue)break;N.page>1&&N.page--,t=!0;break;case 82:N.rotatePages(-90);break}t||i||(e.keyCode>=33&&e.keyCode<=40||32===e.keyCode&&"BUTTON"!==l)&&(r=!0),r&&!a.containsElement(s)&&a.focus(),t&&e.preventDefault()}}}function Oe(e){switch(e){case"SinglePage":case"OneColumn":return l.SpreadMode.NONE;case"TwoColumnLeft":case"TwoPageLeft":return l.SpreadMode.ODD;case"TwoColumnRight":case"TwoPageRight":return l.SpreadMode.EVEN}return l.SpreadMode.NONE}function Le(e){switch(e){case"UseNone":return f.SidebarView.NONE;case"UseThumbs":return f.SidebarView.THUMBS;case"UseOutlines":return f.SidebarView.OUTLINE;case"UseAttachments":return f.SidebarView.ATTACHMENTS;case"UseOC":}return f.SidebarView.NONE}var Fe={instance:{supportsPrinting:!1,createPrintService:function(){throw new Error("Not implemented: createPrintService")}}};t.PDFPrintServiceFactory=Fe},ebb5:function(e,t,r){"use strict";var n,a=r("a981"),i=r("83ab"),o=r("da84"),s=r("861d"),l=r("5135"),c=r("f5df"),u=r("9112"),d=r("6eeb"),h=r("9bf2").f,f=r("e163"),p=r("d2bb"),g=r("b622"),v=r("90e3"),m=o.Int8Array,b=m&&m.prototype,y=o.Uint8ClampedArray,w=y&&y.prototype,_=m&&f(m),k=b&&f(b),x=Object.prototype,S=x.isPrototypeOf,A=g("toStringTag"),C=v("TYPED_ARRAY_TAG"),P=a&&!!p&&"Opera"!==c(o.opera),T=!1,E={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){var t=c(e);return"DataView"===t||l(E,t)},I=function(e){return s(e)&&l(E,c(e))},O=function(e){if(I(e))return e;throw TypeError("Target is not a typed array")},L=function(e){if(p){if(S.call(_,e))return e}else for(var t in E)if(l(E,n)){var r=o[t];if(r&&(e===r||S.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},F=function(e,t,r){if(i){if(r)for(var n in E){var a=o[n];a&&l(a.prototype,e)&&delete a.prototype[e]}k[e]&&!r||d(k,e,r?t:P&&b[e]||t)}},M=function(e,t,r){var n,a;if(i){if(p){if(r)for(n in E)a=o[n],a&&l(a,e)&&delete a[e];if(_[e]&&!r)return;try{return d(_,e,r?t:P&&m[e]||t)}catch(s){}}for(n in E)a=o[n],!a||a[e]&&!r||d(a,e,t)}};for(n in E)o[n]||(P=!1);if((!P||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},P))for(n in E)o[n]&&p(o[n],_);if((!P||!k||k===x)&&(k=_.prototype,P))for(n in E)o[n]&&p(o[n].prototype,k);if(P&&f(w)!==k&&p(w,k),i&&!l(k,A))for(n in T=!0,h(k,A,{get:function(){return s(this)?this[C]:void 0}}),E)o[n]&&u(o[n],C,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:T&&C,aTypedArray:O,aTypedArrayConstructor:L,exportTypedArrayMethod:F,exportTypedArrayStaticMethod:M,isView:R,isTypedArray:I,TypedArray:_,TypedArrayPrototype:k}},eca3:function(e,t,r){"use strict";(function(e){
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/
|
||
var n=r("7037");Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var a="object"===("undefined"===typeof e?"undefined":n(e))&&e+""==="[object process]"&&!e.versions["nw"]&&!e.versions["electron"];t.isNodeJS=a}).call(this,r("4362"))},ed6d:function(e,t,r){var n=r("4a4b");function a(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&&n(e,t)}e.exports=a},ef24:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("d3b7"),r("e6cf"),r("a79d");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=t.RenderingStates=void 0;var i=3e4,o={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};t.RenderingStates=o;var s=function(){function e(){n(this,e),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}return a(e,[{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setThumbnailViewer",value:function(e){this.pdfThumbnailViewer=e}},{key:"isHighestPriority",value:function(e){return this.highestPriorityPage===e.renderingId}},{key:"renderHighestPriority",value:function(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),i))}},{key:"getHighestPriority",value:function(e,t,r){var n=e.views,a=n.length;if(0===a)return null;for(var i=0;i<a;++i){var o=n[i].view;if(!this.isViewFinished(o))return o}if(r){var s=e.last.id;if(t[s]&&!this.isViewFinished(t[s]))return t[s]}else{var l=e.first.id-2;if(t[l]&&!this.isViewFinished(t[l]))return t[l]}return null}},{key:"isViewFinished",value:function(e){return e.renderingState===o.FINISHED}},{key:"renderView",value:function(e){var t=this;switch(e.renderingState){case o.FINISHED:return!1;case o.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case o.RUNNING:this.highestPriorityPage=e.renderingId;break;case o.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally((function(){t.renderHighestPriority()})).catch((function(e){console.error('renderView: "'.concat(e,'"'))}));break}return!0}}]),e}();t.PDFRenderingQueue=s},f069:function(e,t,r){"use strict";var n=r("1c0b"),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)}},f183:function(e,t,r){var n=r("d012"),a=r("861d"),i=r("5135"),o=r("9bf2").f,s=r("90e3"),l=r("bb2f"),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){o(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!i(e,c)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},g=function(e){return l&&v.REQUIRED&&d(e)&&!i(e,c)&&h(e),e},v=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:g};n[c]=!0},f39c:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/r("c975"),r("a15b"),r("b64b"),r("d3b7"),r("e6cf"),r("4d63"),r("ac1f"),r("25f0"),r("466d"),r("5319");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var i=r("0496"),o=r("a3cd"),s=r("3db6"),l={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=l;var c=250,u=-50,d=-400,h={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},f=null;function p(e){if(!f){var t=Object.keys(h).join("");f=new RegExp("[".concat(t,"]"),"g")}return e.replace(f,(function(e){return h[e]}))}var g=function(){function e(t){var r=t.linkService,a=t.eventBus;n(this,e),this._linkService=r,this._eventBus=a||(0,i.getGlobalEventBus)(),this._reset(),a._on("findbarclose",this._onFindBarClose.bind(this))}return a(e,[{key:"setDocument",value:function(e){this._pdfDocument&&this._reset(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(e,t){var r=this;if(t){var n=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(e,t))&&(this._dirtyMatch=!0),this._state=t,"findhighlightallchange"!==e&&this._updateUIState(l.PENDING),this._firstPageCapability.promise.then((function(){if(r._pdfDocument&&(!n||r._pdfDocument===n)){r._extractText();var t=!r._highlightMatches,a=!!r._findTimeout;r._findTimeout&&(clearTimeout(r._findTimeout),r._findTimeout=null),"find"===e?r._findTimeout=setTimeout((function(){r._nextMatch(),r._findTimeout=null}),c):r._dirtyMatch?r._nextMatch():"findagain"===e?(r._nextMatch(),t&&r._state.highlightAll&&r._updateAllPages()):"findhighlightallchange"===e?(a?r._nextMatch():r._highlightMatches=!0,r._updateAllPages()):r._nextMatch()}}))}}},{key:"scrollMatchIntoView",value:function(e){var t=e.element,r=void 0===t?null:t,n=e.pageIndex,a=void 0===n?-1:n,o=e.matchIndex,s=void 0===o?-1:o;if(this._scrollMatches&&r&&-1!==s&&s===this._selected.matchIdx&&-1!==a&&a===this._selected.pageIdx){this._scrollMatches=!1;var l={top:u,left:d};(0,i.scrollIntoView)(r,l,!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._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,o.createPromiseCapability)()}},{key:"_shouldDirtyMatch",value:function(e,t){if(t.query!==this._state.query)return!0;switch(e){case"findagain":var r=this._selected.pageIdx+1,n=this._linkService;return r>=1&&r<=n.pagesCount&&r!==n.page&&!n.isPageVisible(r);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(e,t,r){function n(t){var r=e[t],n=e[t+1];if(t<e.length-1&&r.match===n.match)return r.skipped=!0,!0;for(var a=t-1;a>=0;a--){var i=e[a];if(!i.skipped){if(i.match+i.matchLength<r.match)break;if(i.match+i.matchLength>=r.match+r.matchLength)return r.skipped=!0,!0}}return!1}e.sort((function(e,t){return e.match===t.match?e.matchLength-t.matchLength:e.match-t.match}));for(var a=0,i=e.length;a<i;a++)n(a)||(t.push(e[a].match),r.push(e[a].matchLength))}},{key:"_isEntireWord",value:function(e,t,r){if(t>0){var n=e.charCodeAt(t),a=e.charCodeAt(t-1);if((0,s.getCharacterType)(n)===(0,s.getCharacterType)(a))return!1}var i=t+r-1;if(i<e.length-1){var o=e.charCodeAt(i),l=e.charCodeAt(i+1);if((0,s.getCharacterType)(o)===(0,s.getCharacterType)(l))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(e,t,r,n){var a=[],i=e.length,o=-i;while(1){if(o=r.indexOf(e,o+i),-1===o)break;n&&!this._isEntireWord(r,o,i)||a.push(o)}this._pageMatches[t]=a}},{key:"_calculateWordMatch",value:function(e,t,r,n){for(var a=[],i=e.match(/\S+/g),o=0,s=i.length;o<s;o++){var l=i[o],c=l.length,u=-c;while(1){if(u=r.indexOf(l,u+c),-1===u)break;n&&!this._isEntireWord(r,u,c)||a.push({match:u,matchLength:c,skipped:!1})}}this._pageMatchesLength[t]=[],this._pageMatches[t]=[],this._prepareMatches(a,this._pageMatches[t],this._pageMatchesLength[t])}},{key:"_calculateMatch",value:function(e){var t=this._pageContents[e],r=this._query,n=this._state,a=n.caseSensitive,i=n.entireWord,o=n.phraseSearch;if(0!==r.length){a||(t=t.toLowerCase(),r=r.toLowerCase()),o?this._calculatePhraseMatch(r,e,t,i):this._calculateWordMatch(r,e,t,i),this._state.highlightAll&&this._updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this._nextPageMatch());var s=this._pageMatches[e].length;s>0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),r=function(r,n){var a=(0,o.createPromiseCapability)();e._extractTextPromises[r]=a.promise,t=t.then((function(){return e._pdfDocument.getPage(r+1).then((function(e){return e.getTextContent({normalizeWhitespace:!0})})).then((function(t){for(var n=t.items,i=[],o=0,s=n.length;o<s;o++)i.push(n[o].str);e._pageContents[r]=p(i.join("")),a.resolve(r)}),(function(t){console.error("Unable to get text content for page ".concat(r+1),t),e._pageContents[r]="",a.resolve(r)}))}))},n=0,a=this._linkService.pagesCount;n<a;n++)r(n,a)}},{key:"_updatePage",value:function(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var e=this,t=this._state.findPrevious,r=this._linkService.page-1,n=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 a=0;a<n;a++)!0!==this._pendingFindMatches[a]&&(this._pendingFindMatches[a]=!0,this._extractTextPromises[a].then((function(t){delete e._pendingFindMatches[t],e._calculateMatch(t)})))}if(""!==this._query){if(!this._resumePageIdx){var i=this._offset;if(this._pagesToSearch=n,null!==i.matchIdx){var o=this._pageMatches[i.pageIdx].length;if(!t&&i.matchIdx+1<o||t&&i.matchIdx>0)return i.matchIdx=t?i.matchIdx-1:i.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(l.FOUND)}},{key:"_matchesReady",value:function(e){var t=this._offset,r=e.length,n=this._state.findPrevious;return r?(t.matchIdx=n?r-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(n),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(e=this._pageMatches[t],!e){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var t=this._offset,r=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=r||t.pageIdx<0)&&(t.pageIdx=e?r-1:0,t.wrapped=!0)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=l.NOT_FOUND,r=this._offset.wrapped;if(this._offset.wrapped=!1,e){var n=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=r?l.WRAPPED:l.FOUND,-1!==n&&n!==this._selected.pageIdx&&this._updatePage(n)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(e){var t=this,r=this._pdfDocument;this._firstPageCapability.promise.then((function(){!t._pdfDocument||r&&t._pdfDocument!==r||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),t._updateUIState(l.FOUND),t._highlightMatches=!1,t._updateAllPages())}))}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,r=e.matchIdx,n=0,a=this._matchesCountTotal;if(-1!==r){for(var i=0;i<t;i++)n+=this._pageMatches[i]&&this._pageMatches[i].length||0;n+=r+1}return(n<1||n>a)&&(n=a=0),{current:n,total:a}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount()})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=p(this._state.query)),this._normalizedQuery}}]),e}();t.PDFFindController=g},f5b2:function(e,t,r){"use strict";var n=r("23e7"),a=r("6547").codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})},f5df:function(e,t,r){var n=r("00ee"),a=r("c6b6"),i=r("b622"),o=i("toStringTag"),s="Arguments"==a(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=Object(e),o))?r:s?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},f6d6:function(e,t,r){var n=r("23e7"),a=r("23cb"),i=String.fromCharCode,o=String.fromCodePoint,s=!!o&&1!=o.length;n({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,r=[],n=arguments.length,o=0;while(n>o){if(t=+arguments[o++],a(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},f772:function(e,t,r){var n=r("5692"),a=r("90e3"),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},f8cd:function(e,t,r){var n=r("a691");e.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},fb15:function(e,t,r){"use strict";if(r.r(t),"undefined"!==typeof window){var n=window.document.currentScript,a=r("8875");n=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pdf-app",class:[e.localTheme],attrs:{id:"vuePdfApp"}},[r("script",{attrs:{type:"application/l10n"}},[e._v(" "+e._s(e.defaultLocale)+" ")]),r("div",{attrs:{id:"outerContainer"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar"),expression:"showElem('sidebar')"}],class:[e.isToolbarHidden],attrs:{id:"sidebarContainer"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isSidebarToolbarHidden,expression:"!isSidebarToolbarHidden"}],attrs:{id:"toolbarSidebar"}},[e._t("toolbar-sidebar-prepend",null,null,e.slotProps),r("div",{staticClass:"splitToolbarButton toggled"},[r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewThumbnail","viewThumbnail"),expression:"showElem('sidebar.viewThumbnail', 'viewThumbnail')"}],staticClass:"toolbarButton toggled vue-pdf-app-icon view-thumbnail",attrs:{id:"viewThumbnail",title:"Show Thumbnails",tabindex:"2","data-l10n-id":"thumbs"}},[r("span",{attrs:{"data-l10n-id":"thumbs_label"}},[e._v("Thumbnails")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewOutline","viewOutline"),expression:"showElem('sidebar.viewOutline', 'viewOutline')"}],staticClass:"toolbarButton vue-pdf-app-icon view-outline",attrs:{id:"viewOutline",title:"Show Document Outline (double-click to expand/collapse all items)",tabindex:"3","data-l10n-id":"document_outline"}},[r("span",{attrs:{"data-l10n-id":"document_outline_label"}},[e._v("Document Outline")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewAttachments","viewAttachments"),expression:"showElem('sidebar.viewAttachments', 'viewAttachments')"}],staticClass:"toolbarButton vue-pdf-app-icon view-attachments",attrs:{id:"viewAttachments",title:"Show Attachments",tabindex:"4","data-l10n-id":"attachments"}},[r("span",{attrs:{"data-l10n-id":"attachments_label"}},[e._v("Attachments")])])]),e._t("toolbar-sidebar-append",null,null,e.slotProps)],2),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar"),expression:"showElem('sidebar')"}],class:{"zero-top":e.isSidebarToolbarHidden},attrs:{id:"sidebarContent"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewThumbnail"),expression:"showElem('sidebar.viewThumbnail')"}],attrs:{id:"thumbnailView"}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewOutline"),expression:"showElem('sidebar.viewOutline')"}],staticClass:"hidden",attrs:{id:"outlineView"}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewAttachments"),expression:"showElem('sidebar.viewAttachments')"}],staticClass:"hidden",attrs:{id:"attachmentsView"}})]),r("div",{staticClass:"hidden",attrs:{id:"sidebarResizer"}})]),r("div",{attrs:{id:"mainContainer"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.findbar","findbar"),expression:"showElem('toolbar.toolbarViewerLeft.findbar', 'findbar')"}],staticClass:"findbar hidden doorHanger",attrs:{id:"findbar"}},[e._m(0),e._m(1),e._m(2),e._m(3)]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar"),expression:"showElem('secondaryToolbar')"}],staticClass:"secondaryToolbar hidden doorHangerRight",attrs:{id:"secondaryToolbar"}},[r("div",{attrs:{id:"secondaryToolbarButtonContainer"}},[e._t("secondary-toolbar-prepend",null,null,e.slotProps),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryPresentationMode"),expression:"showElem('secondaryToolbar.secondaryPresentationMode')"}],staticClass:"secondaryToolbarButton presentationMode visibleLargeView vue-pdf-app-icon presentation-mode",attrs:{id:"secondaryPresentationMode",title:"Switch to Presentation Mode",tabindex:"51","data-l10n-id":"presentation_mode"}},[r("span",{attrs:{"data-l10n-id":"presentation_mode_label"}},[e._v("Presentation Mode")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryOpenFile"),expression:"showElem('secondaryToolbar.secondaryOpenFile')"}],staticClass:"secondaryToolbarButton openFile visibleLargeView vue-pdf-app-icon open-file",attrs:{id:"secondaryOpenFile",title:"Open File",tabindex:"52","data-l10n-id":"open_file"},on:{"~click":function(t){return e.bindOpenHandler(t)}}},[r("span",{attrs:{"data-l10n-id":"open_file_label"}},[e._v("Open")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryPrint"),expression:"showElem('secondaryToolbar.secondaryPrint')"}],staticClass:"secondaryToolbarButton print visibleMediumView vue-pdf-app-icon print-button",attrs:{id:"secondaryPrint",title:"Print",tabindex:"53","data-l10n-id":"print"}},[r("span",{attrs:{"data-l10n-id":"print_label"}},[e._v("Print")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryDownload"),expression:"showElem('secondaryToolbar.secondaryDownload')"}],staticClass:"secondaryToolbarButton download visibleMediumView vue-pdf-app-icon download-button",attrs:{id:"secondaryDownload",title:"Download",tabindex:"54","data-l10n-id":"download"}},[r("span",{attrs:{"data-l10n-id":"download_label"}},[e._v("Download")])]),r("a",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryViewBookmark"),expression:"showElem('secondaryToolbar.secondaryViewBookmark')"}],staticClass:"secondaryToolbarButton bookmark visibleSmallView vue-pdf-app-icon bookmark-button",attrs:{href:"#",id:"secondaryViewBookmark",title:"Current view (copy or open in new window)",tabindex:"55","data-l10n-id":"bookmark"}},[r("span",{attrs:{"data-l10n-id":"bookmark_label"}},[e._v("Current View")])]),e.showElem("secondaryToolbar.secondaryPresentationMode")||e.showElem("secondaryToolbar.secondaryOpenFile")||e.showElem("secondaryToolbar.secondaryPrint")||e.showElem("secondaryToolbar.secondaryDownload")||e.showElem("secondaryToolbar.secondaryViewBookmark")?r("div",{staticClass:"horizontalToolbarSeparator visibleLargeView"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.firstPage","firstPage"),expression:"showElem('secondaryToolbar.firstPage', 'firstPage')"}],staticClass:"secondaryToolbarButton firstPage vue-pdf-app-icon first-page",attrs:{id:"firstPage",title:"Go to First Page",tabindex:"56","data-l10n-id":"first_page"}},[r("span",{attrs:{"data-l10n-id":"first_page_label"}},[e._v("Go to First Page")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.lastPage","lastPage"),expression:"showElem('secondaryToolbar.lastPage', 'lastPage')"}],staticClass:"secondaryToolbarButton lastPage vue-pdf-app-icon last-page",attrs:{id:"lastPage",title:"Go to Last Page",tabindex:"57","data-l10n-id":"last_page"}},[r("span",{attrs:{"data-l10n-id":"last_page_label"}},[e._v("Go to Last Page")])]),e.showElem("secondaryToolbar.lastPage","lastPage")||e.showElem("secondaryToolbar.firstPage","firstPage")?r("div",{staticClass:"horizontalToolbarSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.pageRotateCw","pageRotateCw"),expression:"showElem('secondaryToolbar.pageRotateCw', 'pageRotateCw')"}],staticClass:"secondaryToolbarButton rotateCw vue-pdf-app-icon rotate-clockwise",attrs:{id:"pageRotateCw",title:"Rotate Clockwise",tabindex:"58","data-l10n-id":"page_rotate_cw"}},[r("span",{attrs:{"data-l10n-id":"page_rotate_cw_label"}},[e._v("Rotate Clockwise")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.pageRotateCcw","pageRotateCcw"),expression:"\n showElem('secondaryToolbar.pageRotateCcw', 'pageRotateCcw')\n "}],staticClass:"secondaryToolbarButton rotateCcw vue-pdf-app-icon rotate-counter-clockwise",attrs:{id:"pageRotateCcw",title:"Rotate Counterclockwise",tabindex:"59","data-l10n-id":"page_rotate_ccw"}},[r("span",{attrs:{"data-l10n-id":"page_rotate_ccw_label"}},[e._v("Rotate Counterclockwise")])]),e.showElem("secondaryToolbar.pageRotateCcw","pageRotateCcw")||e.showElem("secondaryToolbar.pageRotateCw","pageRotateCw")?r("div",{staticClass:"horizontalToolbarSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.cursorSelectTool","cursorSelectTool"),expression:"\n showElem(\n 'secondaryToolbar.cursorSelectTool',\n 'cursorSelectTool'\n )\n "}],staticClass:"secondaryToolbarButton selectTool toggled vue-pdf-app-icon select-tool",attrs:{id:"cursorSelectTool",title:"Enable Text Selection Tool",tabindex:"60","data-l10n-id":"cursor_text_select_tool"}},[r("span",{attrs:{"data-l10n-id":"cursor_text_select_tool_label"}},[e._v("Text Selection Tool")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.cursorHandTool","cursorHandTool"),expression:"\n showElem('secondaryToolbar.cursorHandTool', 'cursorHandTool')\n "}],staticClass:"secondaryToolbarButton handTool vue-pdf-app-icon hand-tool",attrs:{id:"cursorHandTool",title:"Enable Hand Tool",tabindex:"61","data-l10n-id":"cursor_hand_tool"}},[r("span",{attrs:{"data-l10n-id":"cursor_hand_tool_label"}},[e._v("Hand Tool")])]),e.showElem("secondaryToolbar.cursorHandTool","cursorHandTool")||e.showElem("secondaryToolbar.cursorSelectTool","cursorSelectTool")?r("div",{staticClass:"horizontalToolbarSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.scrollVertical","scrollVertical"),expression:"\n showElem('secondaryToolbar.scrollVertical', 'scrollVertical')\n "}],staticClass:"secondaryToolbarButton scrollModeButtons scrollVertical toggled vue-pdf-app-icon scroll-vertical",attrs:{id:"scrollVertical",title:"Use Vertical Scrolling",tabindex:"62","data-l10n-id":"scroll_vertical"}},[r("span",{attrs:{"data-l10n-id":"scroll_vertical_label"}},[e._v("Vertical Scrolling")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.scrollHorizontal","scrollHorizontal"),expression:"\n showElem(\n 'secondaryToolbar.scrollHorizontal',\n 'scrollHorizontal'\n )\n "}],staticClass:"secondaryToolbarButton scrollModeButtons scrollHorizontal vue-pdf-app-icon scroll-horizontal",attrs:{id:"scrollHorizontal",title:"Use Horizontal Scrolling",tabindex:"63","data-l10n-id":"scroll_horizontal"}},[r("span",{attrs:{"data-l10n-id":"scroll_horizontal_label"}},[e._v("Horizontal Scrolling")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.scrollWrapped","scrollWrapped"),expression:"\n showElem('secondaryToolbar.scrollWrapped', 'scrollWrapped')\n "}],staticClass:"secondaryToolbarButton scrollModeButtons scrollWrapped vue-pdf-app-icon scroll-wrapped",attrs:{id:"scrollWrapped",title:"Use Wrapped Scrolling",tabindex:"64","data-l10n-id":"scroll_wrapped"}},[r("span",{attrs:{"data-l10n-id":"scroll_wrapped_label"}},[e._v("Wrapped Scrolling")])]),e.showElem("secondaryToolbar.scrollWrapped","scrollWrapped")||e.showElem("secondaryToolbar.scrollHorizontal","scrollHorizontal")||e.showElem("secondaryToolbar.scrollVertical","scrollVertical")?r("div",{staticClass:"horizontalToolbarSeparator scrollModeButtons"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.spreadNone","spreadNone"),expression:"showElem('secondaryToolbar.spreadNone', 'spreadNone')"}],staticClass:"secondaryToolbarButton spreadModeButtons spreadNone toggled vue-pdf-app-icon spread-none",attrs:{id:"spreadNone",title:"Do not join page spreads",tabindex:"65","data-l10n-id":"spread_none"}},[r("span",{attrs:{"data-l10n-id":"spread_none_label"}},[e._v("No Spreads")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.spreadOdd","spreadOdd"),expression:"showElem('secondaryToolbar.spreadOdd', 'spreadOdd')"}],staticClass:"secondaryToolbarButton spreadModeButtons vue-pdf-app-icon spread-odd",attrs:{id:"spreadOdd",title:"Join page spreads starting with odd-numbered pages",tabindex:"66","data-l10n-id":"spread_odd"}},[r("span",{attrs:{"data-l10n-id":"spread_odd_label"}},[e._v("Odd Spreads")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.spreadEven","spreadEven"),expression:"showElem('secondaryToolbar.spreadEven', 'spreadEven')"}],staticClass:"secondaryToolbarButton spreadModeButtons spreadEven vue-pdf-app-icon spread-even",attrs:{id:"spreadEven",title:"Join page spreads starting with even-numbered pages",tabindex:"67","data-l10n-id":"spread_even"}},[r("span",{attrs:{"data-l10n-id":"spread_even_label"}},[e._v("Even Spreads")])]),e.showElem("secondaryToolbar.spreadEven","spreadEven")||e.showElem("secondaryToolbar.spreadOdd","spreadOdd")||e.showElem("secondaryToolbar.spreadNone","spreadNone")?r("div",{staticClass:"horizontalToolbarSeparator spreadModeButtons"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.documentProperties","documentProperties"),expression:"\n showElem(\n 'secondaryToolbar.documentProperties',\n 'documentProperties'\n )\n "}],staticClass:"secondaryToolbarButton documentProperties vue-pdf-app-icon document-properties",attrs:{id:"documentProperties",title:"Document Properties…",tabindex:"68","data-l10n-id":"document_properties"}},[r("span",{attrs:{"data-l10n-id":"document_properties_label"}},[e._v("Document Properties…")])]),e._t("secondary-toolbar-append",null,null,e.slotProps)],2)]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar"),expression:"showElem('toolbar')"}],staticClass:"toolbar"},[r("div",{attrs:{id:"toolbarContainer"}},[r("div",{attrs:{id:"toolbarViewer"}},[r("div",{attrs:{id:"toolbarViewerLeft"}},[e._t("toolbar-left-prepend",null,null,e.slotProps),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar","sidebarToggle"),expression:"showElem('sidebar', 'sidebarToggle')"}],staticClass:"toolbarButton vue-pdf-app-icon sidebar-toggle",attrs:{id:"sidebarToggle",title:"Toggle Sidebar",tabindex:"11","data-l10n-id":"toggle_sidebar"}},[r("span",{attrs:{"data-l10n-id":"toggle_sidebar_label"}},[e._v("Toggle Sidebar")])]),e.showElem("sidebar")?r("div",{staticClass:"toolbarButtonSpacer"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.findbar","toggleFindbar"),expression:"\n showElem(\n 'toolbar.toolbarViewerLeft.findbar',\n 'toggleFindbar'\n )\n "}],staticClass:"toolbarButton vue-pdf-app-icon view-find",attrs:{id:"viewFind",title:"Find in Document",tabindex:"12","data-l10n-id":"findbar"}},[r("span",{attrs:{"data-l10n-id":"findbar_label"}},[e._v("Find")])]),r("div",{staticClass:"splitToolbarButton hiddenSmallView"},[r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.previous","previousPage"),expression:"\n showElem(\n 'toolbar.toolbarViewerLeft.previous',\n 'previousPage'\n )\n "}],staticClass:"toolbarButton pageUp vue-pdf-app-icon page-up",attrs:{title:"Previous Page",id:"previous",tabindex:"13","data-l10n-id":"previous"}},[r("span",{attrs:{"data-l10n-id":"previous_label"}},[e._v("Previous")])]),e.showElem("toolbar.toolbarViewerLeft.next","nextPage")&&e.showElem("toolbar.toolbarViewerLeft.previous","previousPage")?r("div",{staticClass:"splitToolbarButtonSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.next","nextPage"),expression:"\n showElem('toolbar.toolbarViewerLeft.next', 'nextPage')\n "}],staticClass:"toolbarButton pageDown vue-pdf-app-icon page-down",attrs:{title:"Next Page",id:"next",tabindex:"14","data-l10n-id":"next"}},[r("span",{attrs:{"data-l10n-id":"next_label"}},[e._v("Next")])])]),r("input",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.pageNumber","pageNumber"),expression:"\n showElem(\n 'toolbar.toolbarViewerLeft.pageNumber',\n 'pageNumber'\n )\n "}],staticClass:"toolbarField pageNumber",attrs:{type:"number",id:"pageNumber",title:"Page",value:"1",size:"4",min:"1",tabindex:"15","data-l10n-id":"page",autocomplete:"off"}}),r("span",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.pageNumber","numPages"),expression:"\n showElem('toolbar.toolbarViewerLeft.pageNumber', 'numPages')\n "}],staticClass:"toolbarLabel",attrs:{id:"numPages"}}),e._t("toolbar-left-append",null,null,e.slotProps)],2),r("div",{attrs:{id:"toolbarViewerRight"}},[e._t("toolbar-right-prepend",null,null,e.slotProps),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.presentationMode","presentationMode"),expression:"\n showElem(\n 'toolbar.toolbarViewerRight.presentationMode',\n 'presentationMode'\n )\n "}],staticClass:"toolbarButton presentationMode hiddenLargeView vue-pdf-app-icon presentation-mode",attrs:{id:"presentationMode",title:"Switch to Presentation Mode",tabindex:"31","data-l10n-id":"presentation_mode"}},[r("span",{attrs:{"data-l10n-id":"presentation_mode_label"}},[e._v("Presentation Mode")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.openFile","openFile"),expression:"\n showElem('toolbar.toolbarViewerRight.openFile', 'openFile')\n "}],staticClass:"toolbarButton openFile hiddenLargeView vue-pdf-app-icon open-file",attrs:{id:"openFile",title:"Open File",tabindex:"32","data-l10n-id":"open_file"},on:{"~click":function(t){return e.bindOpenHandler(t)}}},[r("span",{attrs:{"data-l10n-id":"open_file_label"}},[e._v("Open")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.print","print"),expression:"showElem('toolbar.toolbarViewerRight.print', 'print')"}],staticClass:"toolbarButton print hiddenMediumView vue-pdf-app-icon print-button",attrs:{id:"print",title:"Print",tabindex:"33","data-l10n-id":"print"}},[r("span",{attrs:{"data-l10n-id":"print_label"}},[e._v("Print")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.download","download"),expression:"\n showElem('toolbar.toolbarViewerRight.download', 'download')\n "}],staticClass:"toolbarButton download hiddenMediumView vue-pdf-app-icon download-button",attrs:{id:"download",title:"Download",tabindex:"34","data-l10n-id":"download"}},[r("span",{attrs:{"data-l10n-id":"download_label"}},[e._v("Download")])]),r("a",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.viewBookmark","viewBookmark"),expression:"\n showElem(\n 'toolbar.toolbarViewerRight.viewBookmark',\n 'viewBookmark'\n )\n "}],staticClass:"toolbarButton bookmark hiddenSmallView vue-pdf-app-icon bookmark-button",attrs:{href:"#",id:"viewBookmark",title:"Current view (copy or open in new window)",tabindex:"35","data-l10n-id":"bookmark"}},[r("span",{attrs:{"data-l10n-id":"bookmark_label"}},[e._v("Current View")])]),e.showElem("secondaryToolbar")?r("div",{staticClass:"verticalToolbarSeparator hiddenSmallView"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar"),expression:"showElem('secondaryToolbar')"}],staticClass:"toolbarButton vue-pdf-app-icon secondary-toolbar-toggle",attrs:{id:"secondaryToolbarToggle",title:"Tools",tabindex:"36","data-l10n-id":"tools"}},[r("span",{attrs:{"data-l10n-id":"tools_label"}},[e._v("Tools")])]),e._t("toolbar-right-append",null,null,e.slotProps)],2),r("div",{attrs:{id:"toolbarViewerMiddle"}},[e._t("toolbar-middle-prepend",null,null,e.slotProps),r("div",{staticClass:"splitToolbarButton"},[r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerMiddle.zoomOut","zoomOut"),expression:"\n showElem('toolbar.toolbarViewerMiddle.zoomOut', 'zoomOut')\n "}],staticClass:"toolbarButton zoomOut vue-pdf-app-icon zoom-out",attrs:{id:"zoomOut",title:"Zoom Out",tabindex:"21","data-l10n-id":"zoom_out"}},[r("span",{attrs:{"data-l10n-id":"zoom_out_label"}},[e._v("Zoom Out")])]),e.showElem("toolbar.toolbarViewerMiddle.zoomIn","zoomIn")&&e.showElem("toolbar.toolbarViewerMiddle.zoomOut","zoomOut")?r("div",{staticClass:"splitToolbarButtonSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerMiddle.zoomIn","zoomIn"),expression:"\n showElem('toolbar.toolbarViewerMiddle.zoomIn', 'zoomIn')\n "}],staticClass:"toolbarButton zoomIn vue-pdf-app-icon zoom-in",attrs:{id:"zoomIn",title:"Zoom In",tabindex:"22","data-l10n-id":"zoom_in"}},[r("span",{attrs:{"data-l10n-id":"zoom_in_label"}},[e._v("Zoom In")])])]),r("span",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerMiddle.scaleSelectContainer"),expression:"\n showElem('toolbar.toolbarViewerMiddle.scaleSelectContainer')\n "}],staticClass:"dropdownToolbarButton vue-pdf-app-icon dropdown-toolbar-button",attrs:{id:"scaleSelectContainer"}},[r("select",{attrs:{id:"scaleSelect",title:"Zoom",tabindex:"23","data-l10n-id":"zoom"}},[r("option",{attrs:{id:"pageAutoOption",title:"",value:"auto",selected:"selected","data-l10n-id":"page_scale_auto"}},[e._v(" Automatic Zoom ")]),r("option",{attrs:{id:"pageActualOption",title:"",value:"page-actual","data-l10n-id":"page_scale_actual"}},[e._v(" Actual Size ")]),r("option",{attrs:{id:"pageFitOption",title:"",value:"page-fit","data-l10n-id":"page_scale_fit"}},[e._v(" Page Fit ")]),r("option",{attrs:{id:"pageWidthOption",title:"",value:"page-width","data-l10n-id":"page_scale_width"}},[e._v(" Page Width ")]),r("option",{attrs:{id:"customScaleOption",title:"",value:"custom",disabled:"disabled",hidden:"true"}}),r("option",{attrs:{"data-l10n-args":e.getScale(50),value:"0.5","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 50% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(75),value:"0.75","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 75% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(100),value:"1","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 100% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(125),value:"1.25","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 125% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(150),value:"1.5","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 150% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(200),value:"2","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 200% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(300),value:"3","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 300% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(400),value:"4","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 400% ")])])]),e._t("toolbar-middle-append",null,null,e.slotProps)],2)])])]),e._m(4),r("menu",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"context",id:"viewerContextMenu"}},[r("menuitem",{attrs:{id:"contextFirstPage",label:"First Page","data-l10n-id":"first_page"}}),r("menuitem",{attrs:{id:"contextLastPage",label:"Last Page","data-l10n-id":"last_page"}}),r("menuitem",{attrs:{id:"contextPageRotateCw",label:"Rotate Clockwise","data-l10n-id":"page_rotate_cw"}}),r("menuitem",{attrs:{id:"contextPageRotateCcw",label:"Rotate Counter-Clockwise","data-l10n-id":"page_rotate_ccw"}})]),e._t("viewer-header",null,null,e.slotProps),e._t("viewer-prepend",null,null,e.slotProps),r("div",{class:[e.isToolbarHidden],attrs:{id:"viewerContainer",tabindex:"0"}},[r("div",{staticClass:"pdfViewer",attrs:{id:"viewer"}})]),e._t("viewer-append",null,null,e.slotProps),e._t("viewer-footer",null,null,e.slotProps),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("errorWrapper"),expression:"showElem('errorWrapper')"}],attrs:{id:"errorWrapper",hidden:"true"}},[e._m(5),e._m(6),r("div",{staticClass:"clearBoth"}),r("textarea",{attrs:{id:"errorMoreInfo",hidden:"true",readonly:"readonly"}})])],2),e._m(7)]),e._t("footer",null,null,e.slotProps)],2)},s=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"findbarInputContainer"}},[r("input",{staticClass:"toolbarField",attrs:{id:"findInput",title:"Find",placeholder:"Find in document…",tabindex:"91","data-l10n-id":"find_input"}}),r("div",{staticClass:"splitToolbarButton"},[r("button",{staticClass:"toolbarButton findPrevious vue-pdf-app-icon find-previous",attrs:{id:"findPrevious",title:"Find the previous occurrence of the phrase",tabindex:"92","data-l10n-id":"find_previous"}},[r("span",{attrs:{"data-l10n-id":"find_previous_label"}},[e._v("Previous")])]),r("div",{staticClass:"splitToolbarButtonSeparator"}),r("button",{staticClass:"toolbarButton findNext vue-pdf-app-icon find-next",attrs:{id:"findNext",title:"Find the next occurrence of the phrase",tabindex:"93","data-l10n-id":"find_next"}},[r("span",{attrs:{"data-l10n-id":"find_next_label"}},[e._v("Next")])])])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"findbarOptionsOneContainer"}},[r("input",{staticClass:"toolbarField",attrs:{type:"checkbox",id:"findHighlightAll",tabindex:"94"}}),r("label",{staticClass:"toolbarLabel",attrs:{for:"findHighlightAll","data-l10n-id":"find_highlight"}},[e._v("Highlight all")]),r("input",{staticClass:"toolbarField",attrs:{type:"checkbox",id:"findMatchCase",tabindex:"95"}}),r("label",{staticClass:"toolbarLabel",attrs:{for:"findMatchCase","data-l10n-id":"find_match_case_label"}},[e._v("Match case")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"findbarOptionsTwoContainer"}},[r("input",{staticClass:"toolbarField",attrs:{type:"checkbox",id:"findEntireWord",tabindex:"96"}}),r("label",{staticClass:"toolbarLabel",attrs:{for:"findEntireWord","data-l10n-id":"find_entire_word_label"}},[e._v("Whole words")]),r("span",{staticClass:"toolbarLabel hidden",attrs:{id:"findResultsCount"}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"findbarMessageContainer"}},[r("span",{staticClass:"toolbarLabel",attrs:{id:"findMsg"}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"loadingBar"}},[r("div",{staticClass:"progress"},[r("div",{staticClass:"glimmer"})])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"errorMessageLeft"}},[r("span",{attrs:{id:"errorMessage"}}),r("button",{attrs:{id:"errorShowMore","data-l10n-id":"error_more_info"}},[e._v(" More Information ")]),r("button",{attrs:{id:"errorShowLess","data-l10n-id":"error_less_info",hidden:"true"}},[e._v(" Less Information ")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"errorMessageRight"}},[r("button",{attrs:{id:"errorClose","data-l10n-id":"error_close"}},[e._v("Close")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"hidden",attrs:{id:"overlayContainer"}},[r("div",{staticClass:"container hidden",attrs:{id:"passwordOverlay"}},[r("div",{staticClass:"dialog"},[r("div",{staticClass:"row"},[r("p",{attrs:{id:"passwordText","data-l10n-id":"password_label"}},[e._v(" Enter the password to open this PDF file: ")])]),r("div",{staticClass:"row"},[r("input",{staticClass:"toolbarField",attrs:{type:"password",id:"password"}})]),r("div",{staticClass:"buttonRow"},[r("button",{staticClass:"overlayButton",attrs:{id:"passwordCancel"}},[r("span",{attrs:{"data-l10n-id":"password_cancel"}},[e._v("Cancel")])]),r("button",{staticClass:"overlayButton",attrs:{id:"passwordSubmit"}},[r("span",{attrs:{"data-l10n-id":"password_ok"}},[e._v("OK")])])])])]),r("div",{staticClass:"container hidden",attrs:{id:"documentPropertiesOverlay"}},[r("div",{staticClass:"dialog"},[r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_file_name"}},[e._v("File name:")]),r("p",{attrs:{id:"fileNameField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_file_size"}},[e._v("File size:")]),r("p",{attrs:{id:"fileSizeField"}},[e._v("-")])]),r("div",{staticClass:"separator"}),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_title"}},[e._v("Title:")]),r("p",{attrs:{id:"titleField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_author"}},[e._v("Author:")]),r("p",{attrs:{id:"authorField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_subject"}},[e._v("Subject:")]),r("p",{attrs:{id:"subjectField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_keywords"}},[e._v("Keywords:")]),r("p",{attrs:{id:"keywordsField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_creation_date"}},[e._v("Creation Date:")]),r("p",{attrs:{id:"creationDateField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_modification_date"}},[e._v("Modification Date:")]),r("p",{attrs:{id:"modificationDateField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_creator"}},[e._v("Creator:")]),r("p",{attrs:{id:"creatorField"}},[e._v("-")])]),r("div",{staticClass:"separator"}),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_producer"}},[e._v("PDF Producer:")]),r("p",{attrs:{id:"producerField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_version"}},[e._v("PDF Version:")]),r("p",{attrs:{id:"versionField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_page_count"}},[e._v("Page Count:")]),r("p",{attrs:{id:"pageCountField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_page_size"}},[e._v("Page Size:")]),r("p",{attrs:{id:"pageSizeField"}},[e._v("-")])]),r("div",{staticClass:"separator"}),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_linearized"}},[e._v("Fast Web View:")]),r("p",{attrs:{id:"linearizedField"}},[e._v("-")])]),r("div",{staticClass:"buttonRow"},[r("button",{staticClass:"overlayButton",attrs:{id:"documentPropertiesClose"}},[r("span",{attrs:{"data-l10n-id":"document_properties_close"}},[e._v("Close")])])])])]),r("div",{staticClass:"container hidden",attrs:{id:"printServiceOverlay"}},[r("div",{staticClass:"dialog"},[r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"print_progress_message"}},[e._v("Preparing document for printing…")])]),r("div",{staticClass:"row"},[r("progress",{attrs:{value:"0",max:"100"}}),r("span",{staticClass:"relative-progress",attrs:{"data-l10n-id":"print_progress_percent","data-l10n-args":'{ "progress": 0 }'}},[e._v("0%")])]),r("div",{staticClass:"buttonRow"},[r("button",{staticClass:"overlayButton",attrs:{id:"printCancel"}},[r("span",{attrs:{"data-l10n-id":"print_progress_close"}},[e._v("Cancel")])])])])])])}];r("caad"),r("c19f"),r("a9e3"),r("d3b7"),r("ac1f"),r("5319"),r("96cf"),r("e6cf");function l(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function c(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 u(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 h(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(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("4ae1"),r("3410");function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}r("25f0");function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("3ca3"),r("ddb0");function m(e){return m="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},m(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?b(e):t}function w(e){var t=v();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 y(this,r)}}
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */function _(e,t,r,n){var a,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}var k=r("8bbf"),x=r.n(k);
|
||
/**
|
||
* vue-class-component v7.2.5
|
||
* (c) 2015-present Evan You
|
||
* @license MIT
|
||
*/
|
||
function S(e){return S="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){return P(e)||T(e)||E()}function P(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function T(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function R(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function I(e,t){O(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(r){O(e.prototype,t.prototype,r)})),Object.getOwnPropertyNames(t).forEach((function(r){O(e,t,r)}))}function O(e,t,r){var n=r?Reflect.getOwnMetadataKeys(t,r):Reflect.getOwnMetadataKeys(t);n.forEach((function(n){var a=r?Reflect.getOwnMetadata(n,t,r):Reflect.getOwnMetadata(n,t);r?Reflect.defineMetadata(n,a,e,r):Reflect.defineMetadata(n,a,e)}))}var L={__proto__:[]},F=L instanceof Array;function M(e){return function(t,r,n){var a="function"===typeof t?t:t.constructor;a.__decorators__||(a.__decorators__=[]),"number"!==typeof n&&(n=void 0),a.__decorators__.push((function(t){return e(t,r,n)}))}}function D(e){var t=S(e);return null==e||"object"!==t&&"function"!==t}function N(e,t){var r=t.prototype._init;t.prototype._init=function(){var t=this,r=Object.getOwnPropertyNames(e);if(e.$options.props)for(var n in e.$options.props)e.hasOwnProperty(n)||r.push(n);r.forEach((function(r){Object.defineProperty(t,r,{get:function(){return e[r]},set:function(t){e[r]=t},configurable:!0})}))};var n=new t;t.prototype._init=r;var a={};return Object.keys(n).forEach((function(e){void 0!==n[e]&&(a[e]=n[e])})),a}var B=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var r=e.prototype;Object.getOwnPropertyNames(r).forEach((function(e){if("constructor"!==e)if(B.indexOf(e)>-1)t[e]=r[e];else{var n=Object.getOwnPropertyDescriptor(r,e);void 0!==n.value?"function"===typeof n.value?(t.methods||(t.methods={}))[e]=n.value:(t.mixins||(t.mixins=[])).push({data:function(){return A({},e,n.value)}}):(n.get||n.set)&&((t.computed||(t.computed={}))[e]={get:n.get,set:n.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return N(this,e)}});var n=e.__decorators__;n&&(n.forEach((function(e){return e(t)})),delete e.__decorators__);var a=Object.getPrototypeOf(e.prototype),i=a instanceof x.a?a.constructor:x.a,o=i.extend(t);return q(o,e,i),R()&&I(o,e),o}var j={prototype:!0,arguments:!0,callee:!0,caller:!0};function q(e,t,r){Object.getOwnPropertyNames(t).forEach((function(n){if(!j[n]){var a=Object.getOwnPropertyDescriptor(e,n);if(!a||a.configurable){var i=Object.getOwnPropertyDescriptor(t,n);if(!F){if("cid"===n)return;var o=Object.getOwnPropertyDescriptor(r,n);if(!D(i.value)&&o&&o.value===i.value)return}0,Object.defineProperty(e,n,i)}}}))}function z(e){return"function"===typeof e?U(e):function(t){return U(t,e)}}z.registerHooks=function(e){B.push.apply(B,C(e))};var V=z;var W="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function H(e,t,r){if(W&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var n=Reflect.getMetadata("design:type",t,r);n!==Object&&(e.type=n)}}function G(e){return void 0===e&&(e={}),function(t,r){H(e,t,r),M((function(t,r){(t.props||(t.props={}))[r]=e}))(t,r)}}function Y(e,t){void 0===t&&(t={});var r=t.deep,n=void 0!==r&&r,a=t.immediate,i=void 0!==a&&a;return M((function(t,r){"object"!==typeof t.watch&&(t.watch=Object.create(null));var a=t.watch;"object"!==typeof a[e]||Array.isArray(a[e])?"undefined"===typeof a[e]&&(a[e]=[]):a[e]=[a[e]],a[e].push({handler:r,deep:n,immediate:i})}))}r("8750");var X=r("ead8"),K=r("04d0"),Z=(r("e2c3"),r("ced1"),r("6d7c"),r("85c3"),"pdfFileInput"),J=document.getElementById.bind(document),Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{appContainer:J("pdf"),mainContainer:J("viewerContainer"),viewerContainer:J("viewer"),eventBus:null,toolbar:{container:J("toolbarViewer"),numPages:J(e.numPages||"numPages"),pageNumber:J(e.pageNumber||"pageNumber"),scaleSelectContainer:J("scaleSelectContainer"),scaleSelect:J("scaleSelect"),customScaleOption:J("customScaleOption"),previous:J(e.previousPage||"previous"),next:J(e.nextPage||"next"),zoomIn:J(e.zoomIn||"zoomIn"),zoomOut:J(e.zoomOut||"zoomOut"),viewFind:J(e.toggleFindbar||"viewFind"),openFile:J(e.openFile||"openFile"),print:J(e.print||"print"),presentationModeButton:J(e.presentationMode||"presentationMode"),download:J(e.download||"download"),viewBookmark:J(e.viewBookmark||"viewBookmark")},secondaryToolbar:{toolbar:J("secondaryToolbar"),toggleButton:J("secondaryToolbarToggle"),toolbarButtonContainer:J("secondaryToolbarButtonContainer"),presentationModeButton:J("secondaryPresentationMode"),openFileButton:J("secondaryOpenFile"),printButton:J("secondaryPrint"),downloadButton:J("secondaryDownload"),viewBookmarkButton:J("secondaryViewBookmark"),firstPageButton:J(e.firstPage||"firstPage"),lastPageButton:J(e.lastPage||"lastPage"),pageRotateCwButton:J(e.pageRotateCw||"pageRotateCw"),pageRotateCcwButton:J(e.pageRotateCcw||"pageRotateCcw"),cursorSelectToolButton:J(e.cursorSelectTool||"cursorSelectTool"),cursorHandToolButton:J(e.cursorHandTool||"cursorHandTool"),scrollVerticalButton:J(e.scrollVertical||"scrollVertical"),scrollHorizontalButton:J(e.scrollHorizontal||"scrollHorizontal"),scrollWrappedButton:J(e.scrollWrapped||"scrollWrapped"),spreadNoneButton:J(e.spreadNone||"spreadNone"),spreadOddButton:J(e.spreadOdd||"spreadOdd"),spreadEvenButton:J(e.spreadEven||"spreadEven"),documentPropertiesButton:J(e.documentProperties||"documentProperties")},fullscreen:{contextFirstPage:J("contextFirstPage"),contextLastPage:J("contextLastPage"),contextPageRotateCw:J("contextPageRotateCw"),contextPageRotateCcw:J("contextPageRotateCcw")},sidebar:{outerContainer:J("outerContainer"),viewerContainer:J("viewerContainer"),toggleButton:J(e.sidebarToggle||"sidebarToggle"),thumbnailButton:J(e.viewThumbnail||"viewThumbnail"),outlineButton:J(e.viewOutline||"viewOutline"),attachmentsButton:J(e.viewAttachments||"viewAttachments"),thumbnailView:J("thumbnailView"),outlineView:J("outlineView"),attachmentsView:J("attachmentsView")},sidebarResizer:{outerContainer:J("outerContainer"),resizer:J("sidebarResizer")},findBar:{bar:J(e.findbar||"findbar"),toggleButton:J(e.toggleFindbar||"viewFind"),findField:J(e.findInput||"findInput"),highlightAllCheckbox:J(e.findHighlightAll||"findHighlightAll"),caseSensitiveCheckbox:J(e.findMatchCase||"findMatchCase"),entireWordCheckbox:J(e.findEntireWord||"findEntireWord"),findMsg:J(e.findMessage||"findMsg"),findResultsCount:J(e.findResultsCount||"findResultsCount"),findPreviousButton:J(e.findPrevious||"findPrevious"),findNextButton:J(e.findNext||"findNext")},passwordOverlay:{overlayName:"passwordOverlay",container:J("passwordOverlay"),label:J("passwordText"),input:J("password"),submitButton:J("passwordSubmit"),cancelButton:J("passwordCancel")},documentProperties:{overlayName:"documentPropertiesOverlay",container:J("documentPropertiesOverlay"),closeButton:J("documentPropertiesClose"),fields:{fileName:J("fileNameField"),fileSize:J("fileSizeField"),title:J("titleField"),author:J("authorField"),subject:J("subjectField"),keywords:J("keywordsField"),creationDate:J("creationDateField"),modificationDate:J("modificationDateField"),creator:J("creatorField"),producer:J("producerField"),version:J("versionField"),pageCount:J("pageCountField"),pageSize:J("pageSizeField"),linearized:J("linearizedField")}},errorWrapper:{container:J("errorWrapper"),errorMessage:J("errorMessage"),closeButton:J("errorClose"),errorMoreInfo:J("errorMoreInfo"),moreInfoButton:J("errorShowMore"),lessInfoButton:J("errorShowLess")},printContainer:J("printContainer"),openFileInputName:Z}},$={default_locale:"en",locales:{en:{annotation_date_string:{textContent:"{{date}}, {{time}}"},attachments_label:{textContent:"Attachments"},attachments:{title:"Show Attachments"},bookmark_label:{textContent:"Current View"},bookmark:{title:"Current view (copy or open in new window)"},cursor_hand_tool_label:{textContent:"Hand Tool"},cursor_hand_tool:{title:"Enable Hand Tool"},cursor_text_select_tool_label:{textContent:"Text Selection Tool"},cursor_text_select_tool:{title:"Enable Text Selection Tool"},document_outline_label:{textContent:"Document Outline"},document_outline:{title:"Show Document Outline (double-click to expand/collapse all items)"},document_properties_author:{textContent:"Author:"},document_properties_close:{textContent:"Close"},document_properties_creation_date:{textContent:"Creation Date:"},document_properties_creator:{textContent:"Creator:"},document_properties_date_string:{textContent:"{{date}}, {{time}}"},document_properties_file_name:{textContent:"File name:"},document_properties_file_size:{textContent:"File size:"},document_properties_kb:{textContent:"{{size_kb}} KB ({{size_b}} bytes)"},document_properties_keywords:{textContent:"Keywords:"},document_properties_label:{textContent:"Document Properties…"},document_properties_linearized_no:{textContent:"No"},document_properties_linearized_yes:{textContent:"Yes"},document_properties_linearized:{textContent:"Fast Web View:"},document_properties_mb:{textContent:"{{size_mb}} MB ({{size_b}} bytes)"},document_properties_modification_date:{textContent:"Modification Date:"},document_properties_page_count:{textContent:"Page Count:"},document_properties_page_size_dimension_name_string:{textContent:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})"},document_properties_page_size_dimension_string:{textContent:"{{width}} × {{height}} {{unit}} ({{orientation}})"},document_properties_page_size_name_a3:{textContent:"A3"},document_properties_page_size_name_a4:{textContent:"A4"},document_properties_page_size_name_legal:{textContent:"Legal"},document_properties_page_size_name_letter:{textContent:"Letter"},document_properties_page_size_orientation_landscape:{textContent:"landscape"},document_properties_page_size_orientation_portrait:{textContent:"portrait"},document_properties_page_size_unit_inches:{textContent:"in"},document_properties_page_size_unit_millimeters:{textContent:"mm"},document_properties_page_size:{textContent:"Page Size:"},document_properties_producer:{textContent:"PDF Producer:"},document_properties_subject:{textContent:"Subject:"},document_properties_title:{textContent:"Title:"},document_properties_version:{textContent:"PDF Version:"},document_properties:{title:"Document Properties…"},download_label:{textContent:"Download"},download:{title:"Download"},error_close:{textContent:"Close"},error_file:{textContent:"File: {{file}}"},error_less_info:{textContent:"Less Information"},error_line:{textContent:"Line: {{line}}"},error_message:{textContent:"Message: {{message}}"},error_more_info:{textContent:"More Information"},error_stack:{textContent:"Stack: {{stack}}"},error_version_info:{textContent:"PDF.js v{{version}} (build: {{build}})"},find_entire_word_label:{textContent:"Whole words"},find_highlight:{textContent:"Highlight all"},find_input:{placeholder:"Find in document…",title:"Find"},find_match_case_label:{textContent:"Match case"},"find_match_count_limit[few]":{textContent:"More than {{limit}} matches"},"find_match_count_limit[many]":{textContent:"More than {{limit}} matches"},"find_match_count_limit[one]":{textContent:"More than {{limit}} match"},"find_match_count_limit[other]":{textContent:"More than {{limit}} matches"},"find_match_count_limit[two]":{textContent:"More than {{limit}} matches"},"find_match_count_limit[zero]":{textContent:"More than {{limit}} matches"},find_match_count_limit:{textContent:"{[ plural(limit) ]}"},"find_match_count[few]":{textContent:"{{current}} of {{total}} matches"},"find_match_count[many]":{textContent:"{{current}} of {{total}} matches"},"find_match_count[one]":{textContent:"{{current}} of {{total}} match"},"find_match_count[other]":{textContent:"{{current}} of {{total}} matches"},"find_match_count[two]":{textContent:"{{current}} of {{total}} matches"},find_match_count:{textContent:"{[ plural(total) ]}"},find_next_label:{textContent:"Next"},find_next:{title:"Find the next occurrence of the phrase"},find_not_found:{textContent:"Phrase not found"},find_previous_label:{textContent:"Previous"},find_previous:{title:"Find the previous occurrence of the phrase"},find_reached_bottom:{textContent:"Reached end of document, continued from top"},find_reached_top:{textContent:"Reached top of document, continued from bottom"},findbar_label:{textContent:"Find"},findbar:{title:"Find in Document"},first_page_label:{textContent:"Go to First Page"},first_page:{label:"Go to First Page",title:"Go to First Page"},invalid_file_error:{textContent:"Invalid or corrupted PDF file."},last_page_label:{textContent:"Go to Last Page"},last_page:{title:"Go to Last Page"},loading_error_indicator:{textContent:"Error"},loading_error:{textContent:"An error occurred while loading the PDF."},missing_file_error:{textContent:"Missing PDF file."},next_label:{textContent:"Next"},next:{title:"Next Page"},of_pages:{textContent:"of {{pagesCount}}"},open_file_label:{textContent:"Open"},open_file:{title:"Open File"},page_canvas:{textContent:"Page {{page}}"},page_of_pages:{textContent:"({{pageNumber}} of {{pagesCount}})"},page_rotate_ccw_label:{textContent:"Rotate Counterclockwise"},page_rotate_ccw:{label:"Rotate Counterclockwise",title:"Rotate Counterclockwise"},page_rotate_cw_label:{textContent:"Rotate Clockwise"},page_rotate_cw:{label:"Rotate Clockwise",title:"Rotate Clockwise"},page_scale_actual:{textContent:"Actual Size"},page_scale_auto:{textContent:"Automatic Zoom"},page_scale_fit:{textContent:"Page Fit"},page_scale_percent:{textContent:"{{scale}}%"},page_scale_width:{textContent:"Page Width"},page:{title:"Page"},password_cancel:{textContent:"Cancel"},password_invalid:{textContent:"Invalid password. Please try again."},password_label:{textContent:"Enter the password to open this PDF file."},password_ok:{textContent:"OK"},presentation_mode_label:{textContent:"Presentation Mode"},presentation_mode:{title:"Switch to Presentation Mode"},previous_label:{textContent:"Previous"},previous:{title:"Previous Page"},print_label:{textContent:"Print"},print_progress_close:{textContent:"Cancel"},print_progress_message:{textContent:"Preparing document for printing…"},print_progress_percent:{textContent:"{{progress}}%"},print:{title:"Print"},printing_not_ready:{textContent:"Warning: The PDF is not fully loaded for printing."},printing_not_supported:{textContent:"Warning: Printing is not fully supported by this browser."},rendering_error:{textContent:"An error occurred while rendering the page."},scroll_horizontal_label:{textContent:"Horizontal Scrolling"},scroll_horizontal:{title:"Use Horizontal Scrolling"},scroll_vertical_label:{textContent:"Vertical Scrolling"},scroll_vertical:{title:"Use Vertical Scrolling"},scroll_wrapped_label:{textContent:"Wrapped Scrolling"},scroll_wrapped:{title:"Use Wrapped Scrolling"},spread_even_label:{textContent:"Even Spreads"},spread_even:{title:"Join page spreads starting with even-numbered pages"},spread_none_label:{textContent:"No Spreads"},spread_none:{title:"Do not join page spreads"},spread_odd_label:{textContent:"Odd Spreads"},spread_odd:{title:"Join page spreads starting with odd-numbered pages"},text_annotation_type:{alt:"[{{type}} Annotation]"},thumb_page_canvas:{textContent:"Thumbnail of Page {{page}}"},thumb_page_title:{textContent:"Page {{page}}"},thumbs_label:{textContent:"Thumbnails"},thumbs:{title:"Show Thumbnails"},toggle_sidebar_label:{textContent:"Toggle Sidebar"},toggle_sidebar_notification:{title:"Toggle Sidebar (document contains outline/attachments)"},toggle_sidebar:{title:"Toggle Sidebar"},tools_label:{textContent:"Tools"},tools:{title:"Tools"},unexpected_response_error:{textContent:"Unexpected server response."},web_fonts_disabled:{textContent:"Web fonts are disabled: unable to use embedded PDF fonts."},zoom_in_label:{textContent:"Zoom In"},zoom_in:{title:"Zoom In"},zoom_out_label:{textContent:"Zoom Out"},zoom_out:{title:"Zoom Out"},zoom:{title:"Zoom"}}}},ee=(r("1276"),{sidebar:{viewThumbnail:!0,viewOutline:!0,viewAttachments:!0},secondaryToolbar:{secondaryPresentationMode:!0,secondaryOpenFile:!0,secondaryPrint:!0,secondaryDownload:!0,secondaryViewBookmark:!0,firstPage:!0,lastPage:!0,pageRotateCw:!0,pageRotateCcw:!0,cursorSelectTool:!0,cursorHandTool:!0,scrollVertical:!0,scrollHorizontal:!0,scrollWrapped:!0,spreadNone:!0,spreadOdd:!0,spreadEven:!0,documentProperties:!0},toolbar:{toolbarViewerLeft:{findbar:!0,previous:!0,next:!0,pageNumber:!0},toolbarViewerRight:{presentationMode:!0,openFile:!0,print:!0,download:!0,viewBookmark:!0},toolbarViewerMiddle:{zoomOut:!0,zoomIn:!0,scaleSelectContainer:!0}},errorWrapper:!0}),te=function(e,t){for(var r=t.split("."),n=e[r[0]],a=1;a<r.length;a++){if("object"!==m(n))break;n=n[r[a]]}return n};K["AppOptions"]&&K["AppOptions"].set("defaultUrl",null);var re="vue-pdf-app-theme",ne=console.error.bind(console),ae=window.print.bind(window);window.print=window.__nativePrint__||ae;var ie=function(e){p(r,e);var t=w(r);function r(){var e;return u(this,r),e=t.apply(this,arguments),e.defaultLocale=JSON.stringify($),e.isOpenHandlerBinded=!1,e.isSidebarHidden=!0,e.isFindbarHidden=!0,e.cacheTheme=window.localStorage.getItem(re),e}return h(r,[{key:"beforeDestroy",value:function(){this.destroyPdf()}},{key:"created",value:function(){window.print=ae,X["PDFViewerApplication"].isViewerEmbedded=!this.title,this.$emit("after-created",X["PDFViewerApplication"])}},{key:"mounted",value:function(){this.addPrintContainer();var e=Q(this.idConfig);X["PDFViewerApplication"]&&(X["PDFViewerApplication"].run(e),X["PDFViewerApplication"].initializedPromise.then(this.setDefaultPageScale.bind(this)).then(this.open.bind(this)).then(this.bindSidebarToggleEvents.bind(this)).then(this.bindFindbarToggleEvents.bind(this)).catch(ne))}},{key:"bindSidebarToggleEvents",value:function(){var e=Q(this.idConfig),t=e.sidebar.toggleButton,r=this.checkSidebarVisibility.bind(this);null===t||void 0===t||t.addEventListener("click",r),this.$once("hook:beforeDestroy",(function(){null===t||void 0===t||t.removeEventListener("click",r)}))}},{key:"bindFindbarToggleEvents",value:function(){var e=Q(this.idConfig),t=e.findBar.toggleButton,r=this.checkFindbarVisibility.bind(this);null===t||void 0===t||t.addEventListener("click",r),this.$once("hook:beforeDestroy",(function(){null===t||void 0===t||t.removeEventListener("click",r)}))}},{key:"bindOpenHandler",value:function(){var e=this;if(!this.isOpenHandlerBinded){var t=document.getElementById(Z),r=function(){var t=c(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,null===(r=X["PDFViewerApplication"].pdfLoadingTask)||void 0===r?void 0:r.promise;case 2:e.openDocument();case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();null===t||void 0===t||t.addEventListener("change",r),this.$once("hook:beforeDestroy",(function(){null===t||void 0===t||t.removeEventListener("change",r)})),this.isOpenHandlerBinded=!0}}},{key:"open",value:function(){var e=this;this.clearCacheTimeout(),X["PDFViewerApplication"]&&(this.pdf?X["PDFViewerApplication"].open(this.pdf).then((function(){var e;return null===(e=X["PDFViewerApplication"].pdfDocument)||void 0===e?void 0:e.getMetadata()})).then((function(t){X["PDFViewerApplication"].contentDispositionFilename=e.fileName||t.contentDispositionFilename})).then(this.openDocument.bind(this)).catch(ne):X["PDFViewerApplication"].close())}},{key:"openDocument",value:function(){var e=c(regeneratorRuntime.mark((function e(){var t,r,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.resetLoadingBar(),this.$emit("open",X["PDFViewerApplication"]),!(null===(t=X["PDFViewerApplication"])||void 0===t||null===(r=t.pdfViewer)||void 0===r?void 0:r.pagesPromise)){e.next=9;break}return e.next=5,X["PDFViewerApplication"].pdfViewer.pagesPromise.catch(ne);case 5:this.pageNumber&&setTimeout((function(){return X["PDFViewerApplication"].page=n.pageNumber})),this.checkSidebarVisibility(),this.checkFindbarVisibility(),this.$emit("pages-rendered",X["PDFViewerApplication"]);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"checkSidebarVisibility",value:function(){var e,t=null===(e=X["PDFViewerApplication"])||void 0===e?void 0:e.pdfSidebar;this.isSidebarHidden=!(t&&t.isOpen)}},{key:"checkFindbarVisibility",value:function(){var e,t=null===(e=X["PDFViewerApplication"])||void 0===e?void 0:e.findBar;this.isFindbarHidden=!(t&&t.opened)}},{key:"addPrintContainer",value:function(){var e="printContainer",t=document.createElement("div");t.id=e,document.body.appendChild(t);var r=document.createElement("style");r.type="text/css",r.innerHTML="\n @media print {\n body > *:not(#printContainer) {\n display: none !important; \n }\n }",document.head.appendChild(r),this.$once("hook:beforeDestroy",(function(){document.body.removeChild(t),document.head.removeChild(r)}))}},{key:"destroyPdf",value:function(){var e;this.clearCacheTimeout(),X["PDFViewerApplication"].unbindEvents(),X["PDFViewerApplication"].unbindWindowEvents(),null===(e=X["PDFViewerApplication"].pdfDocument)||void 0===e||e.destroy();var t=document.getElementById(Z);t&&t.remove(),window.print=window.__nativePrint__||window.print}},{key:"toggleTheme",value:function(){var e="dark"===this.localTheme?"light":"dark";this.$emit("update:theme",e),this.cacheTheme=e,window.localStorage.setItem(re,e)}},{key:"clearCacheTimeout",value:function(){var e,t=null===(e=X["PDFViewerApplication"].pdfRenderingQueue)||void 0===e?void 0:e.idleTimeout;clearTimeout(t)}},{key:"getScale",value:function(e){return'{ "scale": '.concat(e," }")}},{key:"showElem",value:function(e,t){return t&&this.idConfig?!this.idConfig[t]:!(!1===te(this.config,e))}},{key:"setDefaultPageScale",value:function(){this.pageScale&&K["AppOptions"].set("defaultZoomValue",this.pageScale)}},{key:"resetLoadingBar",value:function(){X["PDFViewerApplication"].loadingBar.show(),X["PDFViewerApplication"].loadingBar.percent=0}},{key:"pdfChangeHandler",value:function(){this.open()}},{key:"isSidebarToolbarHidden",get:function(){var e,t,r,n=(null===(e=this.idConfig)||void 0===e?void 0:e.viewAttachments)&&(null===(t=this.idConfig)||void 0===t?void 0:t.viewOutline)&&(null===(r=this.idConfig)||void 0===r?void 0:r.viewThumbnail);return n||!this.config.sidebar}},{key:"isToolbarHidden",get:function(){return!1===this.config.toolbar?"zero-top":""}},{key:"localTheme",get:function(){if(this.theme)return this.theme;if(this.cacheTheme)return this.cacheTheme;var e=window.getComputedStyle(document.documentElement).getPropertyValue("content").replace(/"/g,"");return["light","dark"].includes(e)?e:"dark"}},{key:"slotProps",get:function(){return{toggleTheme:this.toggleTheme,isSidebarHidden:this.isSidebarHidden,isFindbarHidden:this.isFindbarHidden}}}]),r}(x.a);_([G({required:!1,default:function(){return ee},type:Object})],ie.prototype,"config",void 0),_([G({required:!1,type:Boolean,default:function(){return!1}})],ie.prototype,"title",void 0),_([G({required:!1,type:[String,ArrayBuffer]})],ie.prototype,"pdf",void 0),_([G({required:!1,type:String})],ie.prototype,"theme",void 0),_([G({required:!1,type:String})],ie.prototype,"fileName",void 0),_([G({required:!1,type:Object})],ie.prototype,"idConfig",void 0),_([G({required:!1,type:[Number,String]})],ie.prototype,"pageScale",void 0),_([G({required:!1,type:Number})],ie.prototype,"pageNumber",void 0),_([Y("pdf")],ie.prototype,"pdfChangeHandler",null),ie=_([V],ie);var oe=ie,se=oe;r("bfa5"),r("317c");function le(e,t,r,n,a,i,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var ce=le(se,o,s,!1,null,"4aaa9b0d",null),ue=ce.exports;t["default"]=ue},fb2c:function(e,t,r){var n=r("74e8");n("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},fb6a:function(e,t,r){"use strict";var n=r("23e7"),a=r("861d"),i=r("e8b5"),o=r("23cb"),s=r("50c4"),l=r("fc6a"),c=r("8418"),u=r("b622"),d=r("1dde"),h=r("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),v=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var r,n,u,d=l(this),h=s(d.length),f=o(e,h),p=o(void 0===t?h:t,h);if(i(d)&&(r=d.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?a(r)&&(r=r[g],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return v.call(d,f,p);for(n=new(void 0===r?Array:r)(m(p-f,0)),u=0;f<p;f++,u++)f in d&&c(n,u,d[f]);return n.length=u,n}})},fc6a:function(e,t,r){var n=r("44ad"),a=r("1d80");e.exports=function(e){return n(a(e))}},fd87:function(e,t,r){var n=r("74e8");n("Int8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,r){var n=r("4930");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe36:function(e,t,r){"use strict";
|
||
/**
|
||
* @licstart The following is the entire license notice for the
|
||
* Javascript code in this page
|
||
*
|
||
* Copyright 2020 Mozilla Foundation
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
* @licend The above is the entire license notice for the
|
||
* Javascript code in this page
|
||
*/var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPresentationMode=void 0;var i=r("0496"),o=1500,s=3e3,l="pdfPresentationMode",c="pdfPresentationModeControls",u=50,d=.1,h=50,f=Math.PI/6,p=function(){function e(t){var r=this,a=t.container,i=t.pdfViewer,o=t.eventBus,s=t.contextMenuItems,l=void 0===s?null:s;n(this,e),this.container=a,this.pdfViewer=i,this.eventBus=o,this.active=!1,this.args=null,this.contextMenuOpen=!1,this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0,this.touchSwipeState=null,l&&(l.contextFirstPage.addEventListener("click",(function(){r.contextMenuOpen=!1,r.eventBus.dispatch("firstpage",{source:r})})),l.contextLastPage.addEventListener("click",(function(){r.contextMenuOpen=!1,r.eventBus.dispatch("lastpage",{source:r})})),l.contextPageRotateCw.addEventListener("click",(function(){r.contextMenuOpen=!1,r.eventBus.dispatch("rotatecw",{source:r})})),l.contextPageRotateCcw.addEventListener("click",(function(){r.contextMenuOpen=!1,r.eventBus.dispatch("rotateccw",{source:r})})))}return a(e,[{key:"request",value:function(){if(this.switchInProgress||this.active||!this.pdfViewer.pagesCount)return!1;if(this._addFullscreenChangeListeners(),this._setSwitchInProgress(),this._notifyStateChange(),this.container.requestFullscreen)this.container.requestFullscreen();else if(this.container.mozRequestFullScreen)this.container.mozRequestFullScreen();else if(this.container.webkitRequestFullscreen)this.container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);else{if(!this.container.msRequestFullscreen)return!1;this.container.msRequestFullscreen()}return this.args={page:this.pdfViewer.currentPageNumber,previousScale:this.pdfViewer.currentScaleValue},!0}},{key:"_mouseWheel",value:function(e){if(this.active){e.preventDefault();var t=(0,i.normalizeWheelEventDelta)(e),r=(new Date).getTime(),n=this.mouseScrollTimeStamp;if(!(r>n&&r-n<u)&&((this.mouseScrollDelta>0&&t<0||this.mouseScrollDelta<0&&t>0)&&this._resetMouseScrollState(),this.mouseScrollDelta+=t,Math.abs(this.mouseScrollDelta)>=d)){var a=this.mouseScrollDelta;this._resetMouseScrollState();var o=a>0?this._goToPreviousPage():this._goToNextPage();o&&(this.mouseScrollTimeStamp=r)}}}},{key:"_goToPreviousPage",value:function(){var e=this.pdfViewer.currentPageNumber;return!(e<=1)&&(this.pdfViewer.currentPageNumber=e-1,!0)}},{key:"_goToNextPage",value:function(){var e=this.pdfViewer.currentPageNumber;return!(e>=this.pdfViewer.pagesCount)&&(this.pdfViewer.currentPageNumber=e+1,!0)}},{key:"_notifyStateChange",value:function(){this.eventBus.dispatch("presentationmodechanged",{source:this,active:this.active,switchInProgress:!!this.switchInProgress})}},{key:"_setSwitchInProgress",value:function(){var e=this;this.switchInProgress&&clearTimeout(this.switchInProgress),this.switchInProgress=setTimeout((function(){e._removeFullscreenChangeListeners(),delete e.switchInProgress,e._notifyStateChange()}),o)}},{key:"_resetSwitchInProgress",value:function(){this.switchInProgress&&(clearTimeout(this.switchInProgress),delete this.switchInProgress)}},{key:"_enter",value:function(){var e=this;this.active=!0,this._resetSwitchInProgress(),this._notifyStateChange(),this.container.classList.add(l),setTimeout((function(){e.pdfViewer.currentPageNumber=e.args.page,e.pdfViewer.currentScaleValue="page-fit"}),0),this._addWindowListeners(),this._showControls(),this.contextMenuOpen=!1,this.container.setAttribute("contextmenu","viewerContextMenu"),window.getSelection().removeAllRanges()}},{key:"_exit",value:function(){var e=this,t=this.pdfViewer.currentPageNumber;this.container.classList.remove(l),setTimeout((function(){e.active=!1,e._removeFullscreenChangeListeners(),e._notifyStateChange(),e.pdfViewer.currentScaleValue=e.args.previousScale,e.pdfViewer.currentPageNumber=t,e.args=null}),0),this._removeWindowListeners(),this._hideControls(),this._resetMouseScrollState(),this.container.removeAttribute("contextmenu"),this.contextMenuOpen=!1}},{key:"_mouseDown",value:function(e){if(this.contextMenuOpen)return this.contextMenuOpen=!1,void e.preventDefault();if(0===e.button){var t=e.target.href&&e.target.classList.contains("internalLink");t||(e.preventDefault(),e.shiftKey?this._goToPreviousPage():this._goToNextPage())}}},{key:"_contextMenu",value:function(){this.contextMenuOpen=!0}},{key:"_showControls",value:function(){var e=this;this.controlsTimeout?clearTimeout(this.controlsTimeout):this.container.classList.add(c),this.controlsTimeout=setTimeout((function(){e.container.classList.remove(c),delete e.controlsTimeout}),s)}},{key:"_hideControls",value:function(){this.controlsTimeout&&(clearTimeout(this.controlsTimeout),this.container.classList.remove(c),delete this.controlsTimeout)}},{key:"_resetMouseScrollState",value:function(){this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0}},{key:"_touchSwipe",value:function(e){if(this.active)if(e.touches.length>1)this.touchSwipeState=null;else switch(e.type){case"touchstart":this.touchSwipeState={startX:e.touches[0].pageX,startY:e.touches[0].pageY,endX:e.touches[0].pageX,endY:e.touches[0].pageY};break;case"touchmove":if(null===this.touchSwipeState)return;this.touchSwipeState.endX=e.touches[0].pageX,this.touchSwipeState.endY=e.touches[0].pageY,e.preventDefault();break;case"touchend":if(null===this.touchSwipeState)return;var t=0,r=this.touchSwipeState.endX-this.touchSwipeState.startX,n=this.touchSwipeState.endY-this.touchSwipeState.startY,a=Math.abs(Math.atan2(n,r));Math.abs(r)>h&&(a<=f||a>=Math.PI-f)?t=r:Math.abs(n)>h&&Math.abs(a-Math.PI/2)<=f&&(t=n),t>0?this._goToPreviousPage():t<0&&this._goToNextPage();break}}},{key:"_addWindowListeners",value:function(){this.showControlsBind=this._showControls.bind(this),this.mouseDownBind=this._mouseDown.bind(this),this.mouseWheelBind=this._mouseWheel.bind(this),this.resetMouseScrollStateBind=this._resetMouseScrollState.bind(this),this.contextMenuBind=this._contextMenu.bind(this),this.touchSwipeBind=this._touchSwipe.bind(this),window.addEventListener("mousemove",this.showControlsBind),window.addEventListener("mousedown",this.mouseDownBind),window.addEventListener("wheel",this.mouseWheelBind),window.addEventListener("keydown",this.resetMouseScrollStateBind),window.addEventListener("contextmenu",this.contextMenuBind),window.addEventListener("touchstart",this.touchSwipeBind),window.addEventListener("touchmove",this.touchSwipeBind),window.addEventListener("touchend",this.touchSwipeBind)}},{key:"_removeWindowListeners",value:function(){window.removeEventListener("mousemove",this.showControlsBind),window.removeEventListener("mousedown",this.mouseDownBind),window.removeEventListener("wheel",this.mouseWheelBind),window.removeEventListener("keydown",this.resetMouseScrollStateBind),window.removeEventListener("contextmenu",this.contextMenuBind),window.removeEventListener("touchstart",this.touchSwipeBind),window.removeEventListener("touchmove",this.touchSwipeBind),window.removeEventListener("touchend",this.touchSwipeBind),delete this.showControlsBind,delete this.mouseDownBind,delete this.mouseWheelBind,delete this.resetMouseScrollStateBind,delete this.contextMenuBind,delete this.touchSwipeBind}},{key:"_fullscreenChange",value:function(){this.isFullscreen?this._enter():this._exit()}},{key:"_addFullscreenChangeListeners",value:function(){this.fullscreenChangeBind=this._fullscreenChange.bind(this),window.addEventListener("fullscreenchange",this.fullscreenChangeBind),window.addEventListener("mozfullscreenchange",this.fullscreenChangeBind),window.addEventListener("webkitfullscreenchange",this.fullscreenChangeBind),window.addEventListener("MSFullscreenChange",this.fullscreenChangeBind)}},{key:"_removeFullscreenChangeListeners",value:function(){window.removeEventListener("fullscreenchange",this.fullscreenChangeBind),window.removeEventListener("mozfullscreenchange",this.fullscreenChangeBind),window.removeEventListener("webkitfullscreenchange",this.fullscreenChangeBind),window.removeEventListener("MSFullscreenChange",this.fullscreenChangeBind),delete this.fullscreenChangeBind}},{key:"isFullscreen",get:function(){return!!(document.fullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement)}}]),e}();t.PDFPresentationMode=p},fea9:function(e,t,r){var n=r("da84");e.exports=n.Promise}})["default"]}))},69430:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div")},a=[],i={name:"postpone",props:{comment:{type:String,default:""}},computed:{comment1:{get(){return this.comment},set(e){this.$emit("comm",e)}}}},o=i,s=r(43736),l=(0,s.Z)(o,n,a,!1,null,null,null),c=l.exports},94752:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Kr}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("work-task-ass-project",{attrs:{cards:e.$options.name,tabProj:e.tabProj,chatview:e.chatview,message:e.message,title:"Проект "+e.project.name},on:{listchangetab:function(t){e.tab="0"},createnewTask:e.createnewTask,allCard:e.allCard,comm:e.comm},scopedSlots:e._u([{key:"spisok",fn:function(){return[r("left-list",{attrs:{level:1},on:{confirmation:e.confirmation,rout:e.rout,showuserinfo:e.showuserinfo}}),r("v-tabs",{staticClass:"flex-grow-0",on:{change:e.changetabProject},model:{value:e.tabProj,callback:function(t){e.tabProj=t},expression:"tabProj"}},[r("v-tab",{staticClass:"pa-0 tabproject",attrs:{href:"#1"}},[r("MyIco",{attrs:{icons:"mdi-home-map-marker",size:"large"}})],1),r("v-tab",{staticClass:"pa-0 tabproject",attrs:{href:"#2"}},[r("MyIco",{attrs:{icons:"mdi-wallet-travel",size:"large"}})],1),r("v-col",{staticClass:"flex-grow-0"},[r("MyIco",{attrs:{size:"large",icons:"mdi-chart-gantt"},on:{click:e.gantviewer}})],1)],1),r("v-slide-x-reverse-transition",[r("v-card",{directives:[{name:"show",rawName:"v-show",value:e.gantview,expression:"gantview"}],staticClass:"gantPosition"},[r("Gant",{ref:"gantproject",attrs:{tasksOR:e.project.task},on:{saver:e.addTask,changegantview:function(t){e.gantview=!1}}})],1)],1)]},proxy:!0},{key:"informations",fn:function(){return[r("project-informationorder",{ref:"pifo",attrs:{chat:e.activedCh,chatview:e.chatview},on:{saveproject:e.saveproject,switch_mode:e.switch_mode,chatviewer:e.chatviewer,createtabchat:e.createtabchat,changestatus:e.changestatus}}),r("div",[r("v-dialog",{attrs:{width:"75vw"},model:{value:e.show_change_dialog,callback:function(t){e.show_change_dialog=t},expression:"show_change_dialog"}},[r("project-stepper-pattern",{on:{closes:function(t){e.show_change_dialog=!e.show_change_dialog},newproject:e.newproject,showuserinfo:e.showuserinfo}})],1)],1)]},proxy:!0},{key:"projdocs",fn:function(){return[r("ProjectDocks",{ref:"projectdoc",attrs:{documents:e.documents},on:{savedock:e.savedock}})]},proxy:!0},{key:"chat",fn:function(){return[r("mMessegeListRight",{ref:"mychat",staticClass:"box2",attrs:{chatplace:"rightchat",header:!1,chat:e.activedCh,waiter:e.waiter},on:{waiting:function(t){e.waiter=!0}}})]},proxy:!0},{key:"filess",fn:function(){return[r("filelist",{attrs:{statid:e.statid,files:e.project.project_files,level:1,status:e.project.status.id,currentid:e.project.id},on:{uploadfile:e.uploadfile,deletefile:e.deletefile,VisSwitcher:e.VisSwitcher}})]},proxy:!0},{key:"graphic",fn:function(){return[r("work-pie-chart",{attrs:{title:"Статусы задач в проекте",data:e.task_statuses_calc}})]},proxy:!0}])})},a=[],i=r(87941),o=r(56922),s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-col",{staticClass:"pa-0 flex-col d-flex fonback"},[r("v-tabs",{staticClass:"flex-grow-0 px-1 pl-2 pr-0 pt-2 ",attrs:{color:"transparent","background-color":"transparent"},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[e._l(e.docktype,(function(t,n){return r("v-tab",{key:n,staticClass:"relax_item mr-2 flex-col d-flex",attrs:{"active-class":"select_item",ripple:!1},on:{click:function(t){e.dialogtheme.title=n}}},[e._v(" "+e._s(n)+" ")])})),r("div",{staticClass:"ml-auto mt-auto pr-2 "},[r("v-btn",{attrs:{title:" новый",textbtn:"text-uppercase",color:"open_icons"},on:{click:function(t){e.docktype[e.dialogtheme.title].createnew?e.dialogger():e.dialogNo()}}},[e._v(" Создать ")]),r("v-btn",{staticClass:"ml-4",attrs:{title:"",textbtn:"text-uppercase",color:"primary"},on:{click:function(t){e.docktype[e.dialogtheme.title].createnew?e.uploader():e.dialogNo()}}},[e._v(" Загрузить ")])],1)],2),r("v-tabs-items",{staticClass:"flex-grow-1 flex-col d-flex bgtrans",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.docktype,(function(t,n){return r("v-tab-item",{key:"tabitem"+n,staticClass:"flex-grow-1"},[r("v-card",{staticClass:"flex-col d-flex",attrs:{color:"transparent pa-2",flat:""}},[r("v-data-table",{staticClass:"elevation-1 h-100",attrs:{height:"719","items-per-page":-1,headers:e.headers,items:t.data,"hide-default-footer":""},on:{"dblclick:row":e.clickRow},scopedSlots:e._u([{key:"item.approved",fn:function(t){var n=t.item;return[1==n.approved&&n.approver.id==e.getUser.id?r("span",[e._v("Требуется ваше участие")]):1==n.approved?r("span",[e._v("На утверждении")]):2==n.approved?r("span",[e._v("Отклонено")]):3==n.approved?r("span",[e._v("Утверждено")]):e._e()]}},{key:"item.accepters",fn:function(t){var n=t.item;return[n.accepters.length>0&&n.accepters[0].accepted>0?r("v-progress-linear",{attrs:{value:e.calculateaccepted(n.accepters)/n.accepters.length*100,height:"15","buffer-value":"100"}},[r("strong",[e._v(" "+e._s(e.calculateaccepted(n.accepters))+"/"+e._s(n.accepters.length)+" ")])]):e._e()]}}],null,!0)})],1)],1)})),1),r("v-dialog",{attrs:{width:"600"},model:{value:e.notbuilddock,callback:function(t){e.notbuilddock=t},expression:"notbuilddock"}},[r("v-card",{attrs:{elevation:"2",outlined:""}},[r("v-card-title",{staticClass:"pt-0 px-0"},[r("v-alert",{staticClass:"flex-grow-1",attrs:{border:"top",color:"red lighten-2",dark:""}},[e._v(" Документ "+e._s(e.dialogtheme.title)+" ")])],1),r("v-card-text",[r("div",[e._v(" К сожалению, "+e._s(e.docktype[e.dialogtheme.title].previous)+" проекта "+e._s(e.getProject().name)+" ")]),r("div",[r("strong",[e._v("НЕ УТРВЕЖДЕН"+e._s("Распоряжение"==e.docktype[e.dialogtheme.title].previous?"О":""))])]),r("div",[e._v(" Заполнение формы документа невозможно. ")]),r("div",[e._v(" вы можете скачать шаблон ")])]),r("v-card-actions")],1)],1),r("v-dialog",{attrs:{width:"600"},model:{value:e.uploaddialog,callback:function(t){e.uploaddialog=t},expression:"uploaddialog"}},[r("v-card",{attrs:{elevation:"2",outlined:""}},[r("v-card-title",[e._v(" Подгружаем файл ("+e._s(e.dialogtheme.title)+") ")]),r("v-card-text",[r("div",[e._v(" Для прикрепления документа, необходимо заполнить некоторые поля ")]),r("div",[r("v-text-field",{attrs:{label:"Номер документа","hide-details":"auto"},model:{value:e.docnumber,callback:function(t){e.docnumber=t},expression:"docnumber"}})],1),r("div",[r("v-file-input",{attrs:{"show-size":"","truncate-length":"15"},model:{value:e.chosenFile,callback:function(t){e.chosenFile=t},expression:"chosenFile"}})],1),r("div",[r("v-autocomplete",{attrs:{items:e.getprojectuniquePersons(),"return-object":"","item-text":"fullname",label:"Кто подписывал/будет подписывать"},scopedSlots:e._u([{key:"item",fn:function(t){return[r("v-list-item-content",[e._v(" "+e._s(t.item.fullname)+" ("+e._s(t.item.position.name)+") ")])]}}]),model:{value:e.dialogtheme.data.approver,callback:function(t){e.$set(e.dialogtheme.data,"approver",t)},expression:"dialogtheme.data.approver"}})],1),r("div",[r("v-select",{attrs:{items:e.Selectapprov,label:"Подписан или нет"},model:{value:e.Selectapprovmodel,callback:function(t){e.Selectapprovmodel=t},expression:"Selectapprovmodel"}})],1)]),r("v-card-actions",[r("v-btn",{attrs:{size:"small",color:"passiv_text"},on:{click:e.sendfile}},[e._v(" Загрузить ")])],1)],1)],1),r("v-dialog",{attrs:{fullscreen:"","hide-overlay":"",transition:"scale-transition","content-class":e.dialog?"flex-col d-flex":""},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[r("Cards",{attrs:{color:e.$vuetify.theme.dark?"auchdark":"auchlight"},scopedSlots:e._u([{key:"cards",fn:function(){return[r("v-toolbar",{staticClass:"flex-grow-0 flex-col d-flex rounded",attrs:{dark:"",color:"main_theme",height:"35"}},[r("v-toolbar-title",{staticClass:"flex-grow-1 flex-col d-flex px-2"},[r("v-row",[r("v-col",{staticClass:"align-self-center inyand2--text",attrs:{xl:"3"}},[e._v(" "+e._s(e.dialogtheme.tophead)+" ")]),r("v-col",{staticClass:"align-self-center pl-0 inyand2--text font-weight-light body-2 flex-row",attrs:{xl:"4"}},[r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",light:!e.$vuetify.theme.dark,disabled:e.disableEdition},on:{click:e.saver}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"open_icons"}},[e._v(" mdi-content-save ")])],1)]}}])},[r("span",[e._v("Сохранить (недоступно после отправки на согласование или утверждение)")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",light:!e.$vuetify.theme.dark,disabled:e.disableEdition},on:{click:e.reeditabler}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-file-find ")])],1)]}}])},[r("span",[e._v("Режим просмотра/редактирования")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{disabled:"path"in e.dialogtheme.data&&!(null===e.dialogtheme.data.path)&&e.dialogtheme.data.path.length>0,icon:"",light:!e.$vuetify.theme.dark},on:{click:e.copydock}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-text-box-multiple-outline ")])],1)]}}])},[r("span",[e._v("Новый документ на основе этого")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",color:"primary"},on:{click:function(t){return e.dialogger()}}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-text-box-plus-outline ")])],1)]}}])},[r("span",[e._v("Новый документ")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[e.pathfile()?r("v-btn",e._g(e._b({attrs:{light:!e.$vuetify.theme.dark,icon:"",id:e.idConfig.download}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-file-download-outline ")])],1):r("v-btn",e._g(e._b({attrs:{disabled:"id"in e.dialogtheme.data==0,icon:"",light:!e.$vuetify.theme.dark},on:{click:function(t){return e.downloadacceptlist(!1)}}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-file-download-outline ")])],1)]}}])},[r("span",[e._v("Скачать")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",disabled:0==e.dialogtheme.data.accepters.length,light:!e.$vuetify.theme.dark},on:{click:function(t){return e.downloadacceptlist(!0)}}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-format-list-checks ")])],1)]}}])},[r("span",[e._v("Скачать лист согласования")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",light:!e.$vuetify.theme.dark,disabled:e.disableEdition||!("id"in e.dialogtheme.data)||e.dialogtheme.data.approved>0||e.dialogtheme.data.accepters.length>0&&e.dialogtheme.data.accepters[0].accepted>0},on:{click:e.deleter}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-delete-forever-outline ")])],1)]}}])},[r("span",[e._v("Удалить документ (недоступно после отправки на согласование или утверждение)")])]),e.pathfile()?r("pdf-toolbar",{ref:"pdftoolbar"}):e._e()],1),r("v-col",{staticClass:"align-self-center text-end"},[r("MyIco",{attrs:{size:"small",icons:"mdi-close-thick",color:"passiv_text"},on:{click:function(t){e.dialog=!1}}})],1)],1)],1)],1),r("Cards",{staticClass:"mt-3",scopedSlots:e._u([{key:"cards",fn:function(){return[r("v-row",[r("v-col",{staticClass:"d-flex flex-col",attrs:{xl:"10"}},[r("v-row",{staticClass:"justify-center"},[r("v-col",{staticClass:"d-flex flex-col",attrs:{xl:e.pathfile()||["План-график","Отчет"].includes(e.dialogtheme.title)?12:["Итог"].includes(e.dialogtheme.title)?9:5}},["data"in e.dialogtheme&&"path"in e.dialogtheme.data&&null!==e.dialogtheme.data.path&&e.dialogtheme.data.path.length>0?r("Cards",{attrs:{color:"inyand"},scopedSlots:e._u([{key:"cards",fn:function(){return["pdf"==e.dialogtheme.data.path.substr(e.dialogtheme.data.path.length-3)?r("vue-pdf-app",{attrs:{config:e.config,pageScale:100,"id-config":e.idConfig,pdf:e.srcstring()},scopedSlots:e._u([{key:"viewer-prepend",fn:function(){return[r("div",{staticClass:"viewer-prepend"})]},proxy:!0}],null,!1,681282677)}):r("v-img",{attrs:{src:e.srcstring()}})]},proxy:!0}],null,!1,2867771683)}):r("Cards",{attrs:{color:"inyand",ma:"mr-0 mb-3"},scopedSlots:e._u([{key:"cards",fn:function(){return[r("Cards",{staticClass:"overflow-x-auto",attrs:{color:"inyand",height:"0",elevation:0},scopedSlots:e._u([{key:"cards",fn:function(){return[r("div",[["Приказ","Распоряжение"].includes(e.dialogtheme.title)?r("dockhead",{attrs:{title:e.dialogtheme.title.toUpperCase(),editable:e.editable}}):e._e(),"Приказ"==e.dialogtheme.title?r("order",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):"План-график"==e.dialogtheme.title?r("planks",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):"Распоряжение"==e.dialogtheme.title?r("disposition",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):"Отчет"==e.dialogtheme.title?r("report",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):"Итог"==e.dialogtheme.title?r("final-report",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):e._e()],1)]},proxy:!0}])})]},proxy:!0}])})],1)],1)],1),r("v-col",{staticClass:"d-flex flex-col",attrs:{cols:"2"}},[r("Cards",{scopedSlots:e._u([{key:"cards",fn:function(){return[r("v-row",{staticClass:"flex-grow-0"},[r("v-col",{staticClass:"d-flex flex-col pb-0"},[r("v-autocomplete",{staticClass:"inputext iconsh",attrs:{items:e.getprojectuniquePersons(),"item-text":"id",dense:"","return-object":"",disabled:e.disableEdition,label:0==e.dialogtheme.data.approved?"Утвердить с:":"Утверждает"},scopedSlots:e._u([{key:"selection",fn:function(t){return[r("v-list-item-content",[e._v(" "+e._s(t.item.fullname)+" ")])]}},{key:"item",fn:function(t){return[r("v-list-item-content",[e._v(" "+e._s(t.item.fullname)+" ("+e._s(t.item.position.name)+") ")])]}}]),model:{value:e.dialogtheme.data.approver,callback:function(t){e.$set(e.dialogtheme.data,"approver",t)},expression:"dialogtheme.data.approver"}})],1)],1),e.dialogtheme.data.approved>1?r("v-row",{staticClass:"flex-grow-0"},[r("v-col",[e._v(" "+e._s(e.approvertext(e.dialogtheme.data.approved))+" ")])],1):e._e(),e.dialogtheme.data.approved>1?r("v-row",{staticClass:"flex-grow-0"},[r("v-col",[e.dialogtheme.data.comment?r("v-menu",{attrs:{"close-on-content-click":!1,"nudge-width":200,left:"","offset-x":""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-list-item-subtitle",e._g(e._b({},"v-list-item-subtitle",a,!1),n),[r("v-icon",{attrs:{"x-small":""}},[e._v(" mdi-message-outline ")]),e._v(" "+e._s(e.dialogtheme.data.comment.length>30?e.dialogtheme.data.comment.substring(0,30)+"...":e.dialogtheme.data.comment)+" ")],1)]}}],null,!1,1992627740)},[r("v-card",[e._v(" "+e._s(e.dialogtheme.data.comment)+" ")])],1):e._e()],1)],1):e._e(),r("v-row",{staticClass:"flex-grow-0"},[r("v-col",{staticClass:"py-0"},[e._v(" "+e._s(e.dialogtheme.data.accepters.length&&"accepted"in e.dialogtheme.data.accepters[0]&&0!=e.dialogtheme.data.accepters[0].accepted?"Согласование":"Согласовать с:")+" ")]),e.dialogtheme.data.accepters.length&&"accepted"in e.dialogtheme.data.accepters[0]&&0!=e.dialogtheme.data.accepters[0].accepted?e._e():r("v-col",{staticClass:"py-0 text-end"},[r("SelectUserLite",{attrs:{selectedUs:e.dialogtheme.data.accepters,excludeUsers:null===e.dialogtheme.data.approver?[]:[e.dialogtheme.data.approver]}})],1)],1),r("v-row",[r("v-col",{staticClass:"d-flex flex-col py-0"},[r("InputText",{staticClass:"maxHi",scopedSlots:e._u([{key:"insert",fn:function(){return[e.dialogtheme.data.accepters.length?e.dialogtheme.data.accepters.length?r("div",{staticClass:"pa-0 pt-1"},e._l(e.dialogtheme.data.accepters,(function(t,n){return r("v-list",{key:"list"+n,staticClass:"pa-0 rounded-lg mb-2",attrs:{dense:""}},[r("v-list-item",[r("v-list-item-content",{staticClass:"pa-0"},[r("v-list-item-title",{staticClass:"pa-0"},[e._v(" "+e._s(t.fullname)+" ")]),r("v-list-item-subtitle",[r("strong",[e._v(" "+e._s(e.acceptortext(t.accepted))+" ")])]),t.comment?r("v-menu",{attrs:{"close-on-content-click":!1,"nudge-width":200,left:"","offset-x":""}},[r("v-card",[e._v(" "+e._s(t.comment)+" ")])],1):e._e()],1)],1)],1)})),1):e._e():r("div",[e._v(" Не выбраны ")])]},proxy:!0}])})],1)],1),r("v-row",{staticClass:"flex-grow-0 mb-0"},[r("v-col",{staticClass:"pb-0"},[e.dialogtheme.data.accepters.length&&0==e.dialogtheme.data.accepters[0].accepted?r("BtnsOut",{attrs:{title:"На согласование",block:!0},on:{click:function(t){return e.saver("toaccept")}}}):e._e()],1)],1),e.dialogtheme.data.approver&&"id"in e.dialogtheme.data.approver&&0==e.dialogtheme.data.approved?r("v-row",{staticClass:"flex-grow-0 my-0"},[r("v-col",{staticClass:"pb-0"},[r("BtnsOut",{attrs:{title:"На утверждение",block:!0},on:{click:function(t){return e.saver("toapprover")}}})],1)],1):e._e(),e.responser.view?r("v-row",{staticClass:"flex-grow-0 my-0"},[r("v-col",{staticClass:"py-0"},["approver"==e.responser.ta_model?r("v-textarea",{model:{value:e.dialogtheme.data.comment,callback:function(t){e.$set(e.dialogtheme.data,"comment",t)},expression:"dialogtheme.data.comment"}}):"accepters"==e.responser.ta_model?r("v-textarea",{model:{value:e.dialogtheme.data.accepters[e.responser.index].comment,callback:function(t){e.$set(e.dialogtheme.data.accepters[e.responser.index],"comment",t)},expression:"dialogtheme.data.accepters[responser.index].comment"}}):e._e()],1)],1):e._e(),e.responser.view?r("v-row",{staticClass:"flex-grow-0"},[r("v-col",{staticClass:"py-0"},[r("BtnsOut",{attrs:{title:"Принять"},on:{click:function(t){return e.confirmOrNot(3)}}})],1),r("v-col",{staticClass:"pt-0"},[r("BtnsOut",{attrs:{title:"Отклонить"},on:{click:function(t){return e.confirmOrNot(2)}}})],1)],1):e._e()]},proxy:!0}])})],1)],1)]},proxy:!0}])})]},proxy:!0}])})],1)],1)},l=[],c=r(62506),u=r.n(c),d=r(30381),h=r.n(d),f=r(20629),p=r(45296),g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"flex-grow-1"},[r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.zoomOut,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-magnify-minus-cursor ")])],1)]}}])},[r("span",[e._v("Отдалить")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.zoomIn,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-magnify-plus-cursor ")])],1)]}}])},[r("span",[e._v("Приблизить")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.previousPage,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-step-backward ")])],1)]}}])},[r("span",[e._v("На предыдущую страницу")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.nextPage,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-step-forward ")])],1)]}}])},[r("span",[e._v("На следующую страницу")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.presentationMode,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-fullscreen ")])],1)]}}])},[r("span",[e._v("На весь экран")])])],1)},v=[],m={name:"pdf-toolbar",data(){return{idConfig:{zoomIn:"zoomInId",zoomOut:"zoomOutId",download:"downloadId",presentationMode:"presentationModeId",previousPage:"previousPage",nextPage:"nextPageId"},scale:100,page:1}}},b=m,y=r(43736),w=r(43453),_=r.n(w),k=r(16190),x=r(4324),S=r(82082),A=(0,y.Z)(b,g,v,!1,null,null,null),C=A.exports;_()(A,{VBtn:k.Z,VIcon:x.Z,VTooltip:S.Z});var P=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0"},[r("v-col",[r("v-row",{staticClass:"styck"}),r("v-row",{staticClass:"justify-space-between ma-0"},[r("v-col",{staticClass:" pa-0",attrs:{xl:"2"}},[e.editable?r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"pt-1 mb-2 inputext",attrs:{dense:"",value:e.formatDate(e.orderdock.orderdate),type:"date-local",placeholder:"дд.мм.гггг","hide-details":""},on:{input:function(t){return e.oninputnostore(t,["orderdock","orderdate"],e.orderdock.datestart)}}},"v-text-field",a,!1),n))]}}],null,!1,869261645),model:{value:e.picker0,callback:function(t){e.picker0=t},expression:"picker0"}},[r("v-date-picker",{attrs:{"first-day-of-week":1,max:e.orderdock.datestart},model:{value:e.orderdock.orderdate,callback:function(t){e.$set(e.orderdock,"orderdate",t)},expression:"orderdock.orderdate"}})],1):r("v-col",{staticClass:"text-nowrap px-0"},[e._v("от "+e._s(e.momentext(e.orderdock.orderdate))+" года")])],1),r("v-col",{staticClass:"text-end"},[e._v(" N ")]),r("v-col",{staticClass:"flex-grow-0 text-nowrap w-75 pa-0 align-self-center",attrs:{xl:"3"}},[e.editable?r("v-text-field",{attrs:{"hide-details":"auto",dense:""},model:{value:e.orderdock.docnumber,callback:function(t){e.$set(e.orderdock,"docnumber",t)},expression:"orderdock.docnumber"}}):r("span",[e._v(e._s(e.orderdock.docnumber))])],1)],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" Об организации Проекта "),r("br"),e._v(' "'+e._s(e.orderdock.longname)+'" ')])],1),r("v-row",[r("v-col",{staticClass:"px-0"},[r("p",{class:e.editable?"passiv_text--text":""},[e._v(' В целях контроля реализации направлений деятельности ФНС России в сфере "'+e._s(e.orderdock.info.project_sphere)+'", приказываю: ')])])],1),r("v-row",[r("v-col",{staticClass:"px-0"},[r("p",{class:e.editable?"passiv_text--text":""},[e._v(' 1.Провести Проект "'+e._s(e.orderdock.longname)+'" ')]),r("p",{class:e.editable?"passiv_text--text":""},[e._v(" 2. Установить период проведения Проекта "+e._s(e.momentext(e.orderdock.datestart))+" - "+e._s(e.momentext(e.orderdock.dateend))+" ")]),r("p",{class:e.editable?"passiv_text--text":""},[e._v(" 3. Назначить директором Проекта "+e._s(e.fullname(e.orderdock.users.find((function(e){return 1==e.role.id}))))+" ")]),r("p",{class:e.editable?"passiv_text--text":""},[e._v(" 4. Назначить руководителем Проекта "+e._s(e.fullname(e.orderdock.users.find((function(e){return 2==e.role.id}))))+", координатором Проекта "+e._s(e.fullname(e.orderdock.users.find((function(e){return 4==e.role.id}))))+" ")]),r("p",{},[e._v(" 5. Директору проекта утвердить паспорт проекта в срок не позднее "),e.editable?r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"pt-1 mb-2 inputext inpcent ma-0 align-self-start ",attrs:{dense:"",value:e.formatDate(e.orderdock.info.passport_last_date),type:"date-local",placeholder:"Введите дату утверждения паспорта","hide-details":""},on:{input:function(t){return e.oninputnostore(t,["orderdock","confirmation"],e.orderdock.datestart)}}},"v-text-field",a,!1),n))]}}],null,!1,3068018130),model:{value:e.picker,callback:function(t){e.picker=t},expression:"picker"}},[r("v-date-picker",{attrs:{"first-day-of-week":1,min:e.getProject.datestart},model:{value:e.orderdock.info.passport_last_date,callback:function(t){e.$set(e.orderdock.info,"passport_last_date",t)},expression:"orderdock.info.passport_last_date"}})],1):r("span",[e._v(e._s(e.momentext(e.orderdock.info.passport_last_date)))])],1),r("p",{},[e._v(" 6. Финансовое обеспечение расходных обязательств, связанных с реализацией настоящего приказа, осуществляется "+e._s(e.orderdock.info.financial_support)+" ")]),r("p",{},[e._v(" 7. Контроль за исполнением настоящего приказа возложить на "),e.editable?r("v-autocomplete",{staticClass:"inputext inpcent iconsh",attrs:{items:e.getprojectuniquePersons,"item-text":"fullname",dense:"","return-object":"",placeholder:"Выберите ответсвенное лицо"},model:{value:e.orderdock.info.controller,callback:function(t){e.$set(e.orderdock.info,"controller",t)},expression:"orderdock.info.controller"}}):r("span",[e._v(e._s("controller"in e.orderdock.info?e.orderdock.info.controller.fullname:""))])],1)])],1),r("v-row",{staticClass:"mt-0"},["approver"in e.orderdock?r("v-col",{staticClass:"text-end pa-0"},[e._v(" "+e._s(e.position(e.orderdock.approver))+" "),r("br"),e._v(e._s(e.initial(e.orderdock.approver))+e._s(e.orderdock.approver.sn)+" ")]):r("v-col",{staticClass:"text-end pa-0"},[e._v(" "+e._s(e.position(e.approver))+" "),r("br"),e._v(e._s(e.initial(e.approver))+e._s(e.approver&&"sn"in e.approver?e.approver.sn:"")+" ")])],1)],1)],1)},T=[],E=r(35241);const R=(0,f._p)("projectstate");var I={name:"Order",mixins:[E.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{picker0:!1,picker:!1,orderdock:{orderdate:h()().format("YYYY-MM-DD"),users:[{role:{id:0},user:{id:0,fullname:""}}],info:{docnumber:""}}}},computed:{...R.mapGetters(["getProject","getprojectuniquePersons"])},mounted(){this.orderdock=JSON.parse(JSON.stringify(this.getProject)),this.orderdock.orderdate=h()().format("YYYY-MM-DD"),"docnumber"in this.orderdock.info||(this.orderdock.docnumber=""),"id"in this.dialogdata&&(this.orderdock=this.dialogdata.vrersion),this.obcleaner()},watch:{dialogdata:function(e,t){console.log(e,t,"CHANGED"),"id"in e?(console.log("ИД ИН ВАЛ"),this.orderdock=e.vrersion):(this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:""},this.obcleaner(),console.log("НОВЫЯ ШТУКА",this.orderdock))}},methods:{obcleaner(){for(let e of["history","author","datachat","difficult","project_files","status","tasks","project_checkpoint"])delete this.orderdock[e];for(let e in this.orderdock.info)["criteria","dop_info","grounds","influence","interactions","result","risks","target"].includes(e)&&delete this.orderdock.info[e];console.log("НОВЫЯ ШТУКА",this.orderdock)},fullname(e){try{return`${e.user.fullname}`}catch(t){console.log(t)}},position(e){try{return e.position.name}catch{return""}},initial(e){try{let t=e.givenName.split(" ");return`${t[0][0]}.${t[1][0]}. `}catch{return""}},momentext(e){if(e)return h()(e).locale("Ru").format("DD MMMM YYYY")},oninputnostore(e,t,r){let n=!1;r.length&&(n=!0,r=h()(r));try{let a=this.formatDateRev(e);const i=h()(a);i.isValid()&&n?i<=r&&(this[t[0]][t[1]]=a):i.isValid()&&!n&&(this[t[0]][t[1]]=a)}catch(a){console.log(a)}}}},O=I,L=r(344),F=r(60266),M=r(71030),D=r(44568),N=r(11713),B=r(17808),U=(0,y.Z)(O,P,T,!1,null,null,null),j=U.exports;_()(U,{VAutocomplete:L.Z,VCol:F.Z,VDatePicker:M.Z,VMenu:D.Z,VRow:N.Z,VTextField:B.Z});var q=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"flex-grow-0 pt-4"},[r("v-col",[r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" МИНФИН РОССИИ ")])],1),r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" ФЕДЕРАЛЬНАЯ НАЛОГОВАЯ СЛУЖБА "),r("br"),e._v(" (ФНС России) ")])],1),r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.title.toUpperCase())+" ")])],1)],1)],1)},z=[],V={name:"Dockhead",props:{title:{type:String,default:"Приказ"},editable:{type:Boolean,default:!1}}},W=V,H=(0,y.Z)(W,q,z,!1,null,null,null),G=H.exports;_()(H,{VCol:F.Z,VRow:N.Z});var Y=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-menu",{attrs:{"close-on-content-click":!1,"nudge-width":250,"max-height":"350",left:"","offset-x":""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("div",e._g(e._b({},"div",a,!1),n),[r("BtnsOut",{attrs:{widthi:97,icon:!0,title:e.selectedUs.length?"Изменить":"Добавить"},scopedSlots:e._u([{key:"icons",fn:function(){return[r("MyIco",{attrs:{size:"large",icons:"mdi-account-plus"}})]},proxy:!0}],null,!0)})],1)]}}])},[r("v-card",[r("v-card-title",{},[e._v(" На согласование ")]),r("v-card-text",[r("v-data-table",{staticClass:"elevation-1 menusH overflow-y-auto",attrs:{search:e.search,"hide-default-footer":"","custom-filter":e.filterme,dense:"",headers:e.headers,items:e.allusers,"item-key":"id","sort-by":"sn"},scopedSlots:e._u([{key:"header.involve",fn:function(){return[e.allusers.length?r("MyIco",{attrs:{size:"small",color:e.allusers.length==e.selectedUs.length&&e.selectedUs.length>0?"green":"primaryicons",icons:e.selectedUs.length>0&&(e.allusers.length==e.selectedUs.length||e.allusers[0].involve)?"mdi-minus-box-multiple-outline":"mdi-plus-box-multiple"},on:{click:function(t){return e.involvall()}}}):e._e()]},proxy:!0},{key:"top",fn:function(){return[r("v-text-field",{staticClass:"mx-4",attrs:{label:"Поиск"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})]},proxy:!0},{key:"item.involve",fn:function(t){var n=t.item;return[r("MyIco",{attrs:{size:"small",color:null!==n.involve?n.involve?"green":"primaryicons":"",icons:null!==n.involve?n.involve?"mdi-check":"mdi-plus":""},on:{click:function(t){return e.involving(n)}}})]}}],null,!0)})],1)],1)],1)},X=[],K=r(27114);const Z=(0,f._p)("projectstate");var J={data(){return{search:"",headers:[{text:"ФИО ",value:"fullname"},{text:"Должность",value:"position.name"},{text:"",value:"involve",sortable:!1}]}},props:{selectedUs:{type:Array,default:[]},excludeUsers:{type:Array,default:[]}},components:{MyIco:K.Z},computed:{allusers(){let e=[],t=[];this.excludeUsers.forEach((e=>{t.push(e.id)})),this.getprojectuniquePersons().forEach((t=>{let r=void 0!=this.selectedUs.find((e=>e.id==t.id));e.push(Object.assign({involve:r,accepted:0},t))}));let r=0;while(r<e.length)t.includes(e[r].id)&&(e[r].involve=null),r++;r=0;while(r<this.selectedUs.length)t.includes(this.selectedUs[r].id)?this.selectedUs.splice(r,1):r++;return e}},methods:{...Z.mapGetters(["getprojectuniquePersons"]),involvall(){let e=null===this.allusers[0].involve||!this.allusers[0].involve;this.allusers.forEach((t=>{t.involve=e;let r=this.selectedUs.findIndex((e=>e.id==t.id));this.selectedUs.splice(r,1)})),e&&this.allusers.forEach((e=>{null!==e.involve&&this.selectedUs.push(e)}))},filterme(e,t,r){return null!=e&&null!=t&&"string"===typeof e&&-1!==e.toString().toLocaleUpperCase().indexOf(t.toLocaleUpperCase())},involving(e){if(null!==e.involve)if(e.involve=!e.involve,e.involve)this.selectedUs.push(e);else{let t=this.selectedUs.findIndex((t=>t.id==e.id));this.selectedUs.splice(t,1)}}}},Q=J,$=r(34145),ee=r(54886),te=r(50629),re=(0,y.Z)(Q,Y,X,!1,null,"1e7c37d2",null),ne=re.exports;_()(re,{VCard:$.Z,VCardText:ee.ZB,VCardTitle:ee.EB,VDataTable:te.Z,VMenu:D.Z,VTextField:B.Z});var ae=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0 "},[r("v-col",{staticClass:"flex-col"},[r("v-row",{staticClass:"flex-grow-0 align-self-center py-5"},[e._v(" ПЛАН-ГРАФИК ПРОЕКТА ")]),r("v-row",{staticClass:"flex-grow-0 align-self-end text-end pb-5 flex-col"},[r("v-col",{staticClass:"pb-0"},[e._v(" "+e._s(e.approvedtext[e.approved].toUpperCase())+" ")]),"approver"in e.orderdock?r("v-col",{staticClass:"text-end py-0"},[e._v(" "+e._s(e.position(e.orderdock.approver))+" "),r("br"),e._v(e._s(e.initial(e.orderdock.approver))+e._s(e.orderdock.approver.sn)+" ")]):r("v-col",{staticClass:"text-end py-0"},[e._v(" "+e._s(e.approver&&"sn"in e.approver?e.position(e.approver):"_______________________")+" "),r("br"),e._v(e._s(e.initial(e.approver))+e._s(e.approver&&"sn"in e.approver?e.approver.sn:"_______________________")+" ")]),e.orderdock.orderdate?r("v-col",{staticClass:"py-0"},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate,e.format="DD MMMM YYYY"))+" г. ")]):e._e()],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("v-simple-table",{scopedSlots:e._u([{key:"default",fn:function(){return[r("tr",[r("th",{staticClass:"pa-1 text-center",attrs:{colspan:"9"}},[e._v(" "+e._s(e.orderdock.longname)+" ")])]),r("tr",[r("th",{staticClass:" pa-2",staticStyle:{width:"3%"},attrs:{rowspan:"2"}},[e._v("N п/п")]),r("th",{staticClass:" pa-2",staticStyle:{width:"15%"},attrs:{rowspan:"2"}},[e._v("Наименование задачи/контрольного события")]),r("th",{staticClass:" pa-2",staticStyle:{width:"8%"},attrs:{rowspan:"2"}},[e._v("Ответсвенный исполнитель")]),r("th",{staticClass:"pa-2",staticStyle:{width:"25%"},attrs:{rowspan:"2"}},[e._v("Ожидаемый результат реализации мероприятия")]),r("th",{staticClass:"pa-2",staticStyle:{width:"7%"},attrs:{rowspan:"2"}},[e._v("Начало")]),r("th",{staticClass:" pa-2",staticStyle:{width:"7%"},attrs:{rowspan:"2"}},[e._v("Окончание")]),r("th",{staticClass:" pa-2",staticStyle:{width:"10%"},attrs:{colspan:"2"}},[e._v("Объем ресурсного обеспечения")]),r("th",{staticClass:"pa-2",attrs:{rowspan:"2"}},[e._v("Примечание")])]),r("tr",[r("td",{staticClass:"text-center pa-1"},[e._v("единица измерения")]),r("td",{staticClass:" text-center pa-1"},[e._v("значение")])]),r("tr",[r("th",{staticClass:"font-weight-regular pa-1"}),e._l(8,(function(t){return r("th",{key:t,staticClass:"font-weight-regular pa-1"},[e._v(e._s(t+1))])}))],2),e._l(e.orderdock.tasks,(function(t,n){return r("tbody",{key:n},[r("tr",[r("td",{staticClass:"text-center"},[e._v(e._s(n+1))]),r("td",{staticClass:"font-weight-bold pa-1"},[e._v(" "+e._s(t.name)+" ")]),r("td",{staticClass:"r pa-1"},[e._v(" "+e._s(e.getPersonShortFromId(t.responsible.id)))]),r("td",[r("v-textarea",{staticClass:"text-center ",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"<Документ>":""},model:{value:e.orderdock.tasks[n].expected_result,callback:function(t){e.$set(e.orderdock.tasks[n],"expected_result",t)},expression:"orderdock.tasks[key].expected_result"}})],1),r("td",{staticClass:"pa-1 text-center"},[e._v(e._s(e.momentext(t.datestart)))]),r("td",{staticClass:"pa-1 text-center"},[e._v(e._s(e.momentext(t.dateend)))]),r("td",{staticClass:"pa-1"},[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].unit_measurement,callback:function(t){e.$set(e.orderdock.tasks[n],"unit_measurement",t)},expression:"orderdock.tasks[key].unit_measurement"}})],1),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].meaning,callback:function(t){e.$set(e.orderdock.tasks[n],"meaning",t)},expression:"orderdock.tasks[key].meaning"}})],1),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].remark,callback:function(t){e.$set(e.orderdock.tasks[n],"remark",t)},expression:"orderdock.tasks[key].remark"}})],1)]),e._l(t.task_work,(function(t,a){return r("tr",{key:a},[r("td",{staticClass:"px-1"},[e._v(e._s(n+1)+"."+e._s(a+1))]),r("td",{staticClass:"pa-1"},[e._v(e._s(t.name))]),r("td",{staticClass:"pa-1"},[e._v(e._s(e.getPersonShortFromId(t.responsible.id)))]),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"<Документ>":""},model:{value:e.orderdock.tasks[n].task_work[a].expected_result,callback:function(t){e.$set(e.orderdock.tasks[n].task_work[a],"expected_result",t)},expression:"orderdock.tasks[key].task_work[k].expected_result"}})],1),r("td",{staticClass:"pa-1 text-center"},[e._v(e._s(e.momentext(t.datestart)))]),r("td",{staticClass:"pa-1 text-center"},[e._v(e._s(e.momentext(t.dateend)))]),r("td",{staticClass:"pa-1",staticStyle:{"max-width":"0px"}},[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].task_work[a].unit_measurement,callback:function(t){e.$set(e.orderdock.tasks[n].task_work[a],"unit_measurement",t)},expression:"orderdock.tasks[key].task_work[k].unit_measurement"}})],1),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].task_work[a].meaning,callback:function(t){e.$set(e.orderdock.tasks[n].task_work[a],"meaning",t)},expression:"orderdock.tasks[key].task_work[k].meaning"}})],1),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].task_work[a].remark,callback:function(t){e.$set(e.orderdock.tasks[n].task_work[a],"remark",t)},expression:"orderdock.tasks[key].task_work[k].remark"}})],1)])}))],2)}))]},proxy:!0}])})],1)],1)],1)],1)},ie=[],oe=r(18241);const se=(0,f._p)("projectstate");var le={name:"Planks",mixins:[oe.Z,E.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{approvedtext:["_______________________","На утверждении","Отклонено","Утверждено"],approved:0,picker0:!1,picker:!1,orderdock:{orderdate:h()().format("YYYY-MM-DD"),...this.getProject},headers:[]}},computed:{...se.mapGetters(["getProject","getprojectuniquePersons"])},mounted(){this.orderdock=JSON.parse(JSON.stringify(this.getProject)),this.orderdock.orderdate=h()().format("YYYY-MM-DD"),"docnumber"in this.orderdock.info||(this.orderdock.docnumber=""),"id"in this.dialogdata&&(this.orderdock=this.dialogdata.vrersion),this.obcleaner()},watch:{dialogdata:function(e,t){console.log(e,t,"CHANGED"),"id"in e?(console.log("!!!!!!!!!!!!!!"),this.orderdock=e.vrersion,this.approver=e.approver,this.approved=e.approved):(this.approved=0,this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:""},this.obcleaner(),console.log("НОВЫЯ ШТУКА",this.orderdock))}},methods:{obcleaner(){this.orderdock={longname:this.orderdock.longname,tasks:this.orderdock.tasks,orderdate:this.orderdock.orderdate},console.log("НОВЫЯ ШТУКА",this.orderdock)},position(e){try{return e.position.name}catch{return""}},initial(e){try{let t=e.givenName.split(" ");return`${t[0][0]}.${t[1][0]}. `}catch{return""}},momentext(e,t="DD.MM.YYYY"){if(e)return h()(e).locale("Ru").format(t)},oninputnostore(e,t,r){let n=!1;r.length&&(n=!0,r=h()(r));try{let a=this.formatDateRev(e);const i=h()(a);i.isValid()&&n?i<=r&&(this[t[0]][t[1]]=a):i.isValid()&&!n&&(this[t[0]][t[1]]=a)}catch(a){console.log(a)}}}},ce=le,ue=r(9449),de=r(92648),he=(0,y.Z)(ce,ae,ie,!1,null,null,null),fe=he.exports;_()(he,{VCol:F.Z,VRow:N.Z,VSimpleTable:ue.Z,VTextarea:de.Z});var pe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0 "},[r("v-col",{staticClass:"flex-col "},[r("v-row",{staticClass:"align-self-center py-2"},[e._v(" ФНС России ")]),r("v-row",{staticClass:"flex-grow-0 align-self-center text-center py-2 font-weight-bold"},[e._v(" "+e._s(e.orderdock.longname)+" ")]),r("v-row",{staticClass:"flex-grow-0 align-self-center text-center py-2"},[e._v(" Отчет о статусе проекта "),r("br"),e._v(" на "),e._v(" "+e._s(e.momentext(e.orderdock.orderdate))+" ")]),r("v-row",{staticClass:"flex-grow-0 align-self-center text-center pb-5 pt-2"},[e._v(" Исполнение контрольных событий ")]),e.orderdock.tasks[0].length>0?r("v-row",{staticClass:"flex-grow-0 pl-3"}):e._e(),r("report-top-table",{attrs:{editable:e.editable,"disable-sort":"",headers:e.headerstop.headers,toptable:e.orderdock.tasks[0]},on:{changepicker:e.changepicker}},[e._v(" Статус исполнения контрольных событий")]),r("report-top-table",{staticClass:"mt-3",attrs:{"disable-sort":"",editable:e.editable,headers:e.headerstop.headersprognoz,toptable:e.orderdock.tasks[1]},on:{changepicker:e.changepicker}},[e._v(" Прогноз исполнения контрольных событий на ближайшие 3 месяца")]),r("report-bot-table",{attrs:{editable:e.editable,headers:e.headersbottom.headerRisk,items:e.problemsrisks},on:{remove:e.remove,addrows:e.addrows}},[e._v(" Прочие проблемы и риски ")]),r("hr"),r("report-bot-table",{attrs:{editable:e.editable,headers:e.headersbottom.headerPlanresult,items:e.planresult},on:{addrows:e.addrowsKR,remove:e.removeKR}},[e._v(" Ключевые результаты, не вошедшие в план ")])],1)],1)},ge=[],ve=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-card",{staticClass:"mt-3"},[r("v-card-title",[e._t("default"),r("v-spacer"),e.editable?r("v-btn",{staticClass:"mb-2",attrs:{color:"primary",dark:""},on:{click:function(t){return e.$emit("addrows","")}}},[e._v(" Добавить ")]):e._e()],2),r("v-data-table",{attrs:{"hide-default-footer":"",headers:e.headers,items:e.items},scopedSlots:e._u([{key:"item.index",fn:function(t){var r=t.item;return[e._v(" "+e._s(e.items.indexOf(r)+1)+" ")]}},{key:"item.problem",fn:function(t){return[r("v-edit-dialog",{attrs:{"return-value":t.item.name},on:{"update:returnValue":function(r){return e.$set(t.item,"name",r)},"update:return-value":function(r){return e.$set(t.item,"name",r)}},scopedSlots:e._u([e.editable?{key:"input",fn:function(){return[r("v-textarea",{attrs:{"auto-grow":"",rows:"3",label:"Изменение",counter:""},model:{value:t.item.problem,callback:function(r){e.$set(t.item,"problem",r)},expression:"props.item.problem"}})]},proxy:!0}:null],null,!0)},["problem"in t.item&&t.item.problem.length>0?r("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v(" "+e._s(t.item.problem))]):r("div",[e._v("Введите текст...")])])]}},{key:"item.comment",fn:function(t){return[r("v-edit-dialog",{attrs:{"return-value":t.item.name},on:{"update:returnValue":function(r){return e.$set(t.item,"name",r)},"update:return-value":function(r){return e.$set(t.item,"name",r)}},scopedSlots:e._u([e.editable?{key:"input",fn:function(){return[r("v-textarea",{attrs:{"auto-grow":"",rows:"3",label:"Изменение",counter:""},model:{value:t.item.comment,callback:function(r){e.$set(t.item,"comment",r)},expression:"props.item.comment"}})]},proxy:!0}:null],null,!0)},["comment"in t.item&&t.item.comment.length>0?r("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v(" "+e._s(t.item.comment))]):r("div",[e._v("Введите текст...")])])]}},e.editable?{key:"item.actions",fn:function(t){var n=t.item;return[r("v-icon",{attrs:{small:""},on:{click:function(t){e.$emit("remove",e.items.indexOf(n))}}},[e._v(" mdi-delete ")])]}}:null],null,!0)})],1)},me=[],be={name:"report-bot-table",props:{items:{type:Array,default:()=>[]},headers:{type:Array,default:()=>[]},editable:{type:Boolean,default:!1}}},ye=be,we=r(96401),_e=r(96669),ke=r(75352),xe=r(76656),Se=r(16325),Ae=r(67678),Ce=(0,Ae.Z)(we.Z,_e.Z).extend({name:"v-edit-dialog",props:{cancelText:{default:"Cancel"},large:Boolean,eager:Boolean,persistent:Boolean,saveText:{default:"Save"},transition:{type:String,default:"slide-x-reverse-transition"}},data(){return{isActive:!1}},watch:{isActive(e){e?(this.$emit("open"),setTimeout(this.focus,50)):this.$emit("close")}},methods:{cancel(){this.isActive=!1,this.$emit("cancel")},focus(){const e=this.$refs.content.querySelector("input");e&&e.focus()},genButton(e,t){return this.$createElement(xe.Z,{props:{text:!0,color:"primary",light:!0},on:{click:e}},t)},genActions(){return this.$createElement("div",{class:"v-small-dialog__actions"},[this.genButton(this.cancel,this.cancelText),this.genButton((()=>{this.save(this.returnValue),this.$emit("save")}),this.saveText)])},genContent(){return this.$createElement("div",{staticClass:"v-small-dialog__content",on:{keydown:e=>{e.keyCode===ke.Do.esc&&this.cancel(),e.keyCode===ke.Do.enter&&(this.save(this.returnValue),this.$emit("save"))}},ref:"content"},[this.$slots.input])}},render(e){return e(Se.Z,{staticClass:"v-small-dialog",class:this.themeClasses,props:{contentClass:"v-small-dialog__menu-content",transition:this.transition,origin:"top right",right:!0,value:this.isActive,closeOnClick:!this.persistent,closeOnContentClick:!1,eager:this.eager,light:this.light,dark:this.dark},on:{input:e=>this.isActive=e},scopedSlots:{activator:({on:t})=>e("div",{staticClass:"v-small-dialog__activator",on:t},[e("span",{staticClass:"v-small-dialog__activator__content"},this.$slots.default)])}},[this.genContent(),this.large?this.genActions():null])}}),Pe=r(13687),Te=(0,y.Z)(ye,ve,me,!1,null,null,null),Ee=Te.exports;_()(Te,{VBtn:k.Z,VCard:$.Z,VCardTitle:ee.EB,VDataTable:te.Z,VEditDialog:Ce,VIcon:x.Z,VSpacer:Pe.Z,VTextarea:de.Z});var Re=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-card",[r("v-card-title",[e._t("default"),r("v-spacer"),r("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],2),r("v-data-table",{staticClass:"elevation-2",attrs:{"hide-default-footer":"",headers:e.headers,items:e.toptable,"item-class":e.fontweight,dense:"",search:e.search},scopedSlots:e._u([{key:"item.dateend",fn:function(t){return[r("span",[e._v(" "+e._s(e.momentext(t.item.dateend,"DD.MM.YYYY")))])]}},{key:"item.planning",fn:function(t){return[r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on,i=n.attrs;return[r("v-text-field",e._g(e._b({staticClass:"ma-0 align-self-center",attrs:{readonly:!e.editable,dense:"",value:e.formatDate(t.item.planning),type:"date-local",placeholder:"дд.мм.гггг",flat:"",solo:"","hide-details":""},on:{input:function(r){return t.item.planning=e.oninputnostore(r)}}},"v-text-field",i,!1),a))]}}],null,!0),model:{value:t.item.picker,callback:function(r){e.$set(t.item,"picker",r)},expression:"props.item.picker"}},[e.editable?r("v-date-picker",{attrs:{"first-day-of-week":1,min:e.momentext(new Date,"YYYY-MM-DD")},on:{change:function(r){return e.$emit("changepicker",t.item)}},model:{value:t.item.planning,callback:function(r){e.$set(t.item,"planning",r)},expression:"props.item.planning"}}):e._e()],1)]}},{key:"item.responsible",fn:function(t){return[e._v(" "+e._s(e.getPersonShortFromId(t.item.responsible.id))+" ")]}},{key:"item.comment",fn:function(t){return[r("span",{class:e.editable?"text--disabled":""},[e._v("(Статус - "+e._s(t.item.status.name)+")")]),r("v-edit-dialog",{attrs:{"return-value":t.item.name},on:{"update:returnValue":function(r){return e.$set(t.item,"name",r)},"update:return-value":function(r){return e.$set(t.item,"name",r)}},scopedSlots:e._u([e.editable?{key:"input",fn:function(){return[r("v-textarea",{attrs:{"auto-grow":"",rows:"3",label:"Изменение",counter:""},model:{value:t.item.comment.text,callback:function(r){e.$set(t.item.comment,"text",r)},expression:"props.item.comment.text"}})]},proxy:!0}:null],null,!0)},[r("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v(" "+e._s(t.item.comment.text))])])]}}],null,!0)})],1)},Ie=[];const Oe=(0,f._p)("projectstate");var Le={name:"report-top-table",mixins:[oe.Z,E.Z],props:{toptable:{type:Array,default:()=>[]},headers:{type:Array,default:()=>[]},editable:{type:Boolean,default:!1}},data(){return{picker:!1,search:""}},computed:{...Oe.mapGetters(["getProject"])},methods:{oninputnostore(e){try{let t=this.formatDateRev(e);console.log(t);const r=h()(t);if(r.isValid())return t}catch(t){console.log(t)}},fontweight(e){return String(e.keyy).includes(".")?"":"font-weight-bold"}}},Fe=Le,Me=(0,y.Z)(Fe,Re,Ie,!1,null,null,null),De=Me.exports;_()(Me,{VCard:$.Z,VCardTitle:ee.EB,VDataTable:te.Z,VDatePicker:M.Z,VEditDialog:Ce,VMenu:D.Z,VSpacer:Pe.Z,VTextField:B.Z,VTextarea:de.Z});const Ne=(0,f._p)("projectstate");var Be={components:{reportTopTable:De,reportBotTable:Ee},name:"Report",mixins:[E.Z,oe.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{selectedtask:"",toptable:[],beforew:e=>this.isbefore(e.dateend)||5==e.status.id,afterew:e=>!this.isbefore(e.dateend)&&e.status.id<5,lastdock:null,approvedtext:["_______________________","На утверждении","Отклонено","Утверждено"],flagnew:!1,approved:0,orderdock:{orderdate:h()().format("YYYY-MM-DD"),confirmation:"",name:"",datestart:"",dateend:"",tasks:[[],[]],problemsrisks:[],planresult:[]},problemsrisks:[],planresult:[],dialog:!1}},mounted(){"id"in this.dialogdata?(this.approved=this.dialogdata.approved,this.orderdock=this.dialogdata.vrersion,this.orderdock.tasks.sort(((e,t)=>new Date(e.dateend)>new Date(t.dateend)?1:new Date(t.dateend)>new Date(e.dateend)?-1:0)),this.problemsrisks=this.orderdock.problemsrisks,this.planresult=this.orderdock.planresult,this.flagnew=!0):(console.log("ORDERDOCK"),this.problemsrisks=[],this.orderdock=JSON.parse(JSON.stringify(this.getProject)),this.orderdock.tasks.sort(((e,t)=>new Date(e.dateend)>new Date(t.dateend)?1:new Date(t.dateend)>new Date(e.dateend)?-1:0)),this.orderdock.orderdate=h()().format("YYYY-MM-DD"),this.preparing(),this.toptablemaker(),this.obcleaner())},watch:{dialogdata:async function(e,t){console.log(e,t,"CHANGED"),"id"in e?(this.orderdock=e.vrersion,this.problemsrisks=this.orderdock.problemsrisks,this.planresult=this.orderdock.planresult,this.approver=e.approver,this.approved=e.approved):(this.orderdock={},this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:""},this.orderdock.tasks.sort(((e,t)=>new Date(e.dateend)>new Date(t.dateend)?1:new Date(t.dateend)>new Date(e.dateend)?-1:0)),this.problemsrisks=[],this.planresult=[],this.preparing(),this.toptablemaker(),this.obcleaner())}},computed:{...Ne.mapGetters(["getProject"]),planr(){return this.planresult.some((e=>e.length>0))},selectTasks(){return console.log(this.orderdock),["1"]},headerstop(){return{headers:[{text:"№",align:"start",value:"keyy",cellClass:this.editable?"text--disabled":"",width:"5%"},{text:"Блок/контрольное событие",value:"name",cellClass:this.editable?"text--disabled":""},{text:"Плановый срок",value:"dateend",cellClass:this.editable?"text--disabled":"",width:"9%"},{text:"Факт/прогноз",value:"planning",width:"9%"},{text:"Ответсвенный",value:"responsible",cellClass:this.editable?"text--disabled":"",width:"15%"},{text:"Комментарий",value:"comment",width:"40%"}],headersprognoz:[{text:"№",align:"start",value:"keyy",cellClass:this.editable?"text--disabled":"",width:"5%"},{text:"Блок/контрольное событие",value:"name",cellClass:this.editable?"text--disabled":""},{text:"Плановый срок",value:"dateend",cellClass:this.editable?"text--disabled":"",width:"9%"},{text:"Прогнозный срок",value:"planning",width:"9%"},{text:"Ответсвенный",value:"responsible",cellClass:this.editable?"text--disabled":"",width:"15%"},{text:"Комментарий",value:"comment",width:"40%"}]}},headersbottom(){let e={text:"Удаление",value:"actions",width:"5%"},t=[{text:"№",align:"start",value:"index",cellClass:this.editable?"text--disabled":"",width:"5%"},{text:"Наименование проблемы/риска",value:"problem",cellClass:this.editable?"text--disabled":"",width:"45%"},{text:"Комментарий",value:"comment",cellClass:this.editable?"text--disabled":"",width:"45%"}],r=[{text:"№",align:"start",value:"index",cellClass:this.editable?"text--disabled":"",width:"5%"},{text:"Ключевые достигнутые результаты",value:"problem",cellClass:this.editable?"text--disabled":"",width:"45%"},{text:"Ключевые запланированные результаты",value:"comment",cellClass:this.editable?"text--disabled":"",width:"45%"}];return this.editable&&(t.push(e),r.push(e)),{headerRisk:t,headerPlanresult:r}}},methods:{obcleaner(){this.orderdock={longname:this.orderdock.longname,tasks:this.orderdock.tasks,orderdate:this.orderdock.orderdate},console.log("НОВЫЯ ШТУКА",this.orderdock)},preparing(){this.orderdock.tasks.forEach((e=>{let t=this.getProject.history.find((t=>7==t.action.id&&2==t.level&&null==t.work&&t.task==e.id));console.log(t),t=void 0==t?{text:"Не предоставлен",datet:""}:{text:t.comment,datet:t.crerateddate,author:t.author},e.comment=t;let r=this.getProject.history.find((t=>4==t.action.id&&2==t.level&&null==t.work&&t.task==e.id&&5==t.info.status.id&&t.info.status.id==e.status.id));console.log(r),r=void 0===r?h()(e.dateend).isAfter()?e.dateend:void 0:r.createdate.split(" ")[0],e["planning"]=r,console.log(e.planning,r,"planning",e.dateend),e.task_work.forEach((t=>{let r=this.getProject.history.find((e=>7==e.action.id&&3==e.level&&e.work==t.id));r=void 0==r?{text:"Не предоставлен",datet:""}:{text:r.comment,datet:r.creratedate,author:r.author},t.comment=r;let n=this.getProject.history.find((r=>4==r.action.id&&3==r.level&&r.work==t.id&&r.task==e.id&&5==r.info.status.id&&r.info.status.id==t.status.id));console.log(n,"planningw"),n=void 0===n?h()(t.dateend).isAfter()?t.dateend:void 0:n.createdate.split(" ")[0],t.planning=n}))}))},toptablemaker(){let e=[],t=[];this.orderdock.tasks.filter((e=>this.isbefore(e.dateend)||5==e.status.id||e.task_work.some(this.beforew))).forEach(((t,r)=>{e.push({...t,keyy:r+1,picker:!1}),t.task_work.filter((e=>this.isbefore(e.dateend)||5==e.status.id)).forEach(((t,n)=>{e.push({...t,keyy:`${r+1}.${n+1}`,picker:!1})}))})),this.orderdock.tasks.filter((e=>!this.isbefore(e.dateend)&&e.status.id<5||e.task_work.some(this.afterew))).forEach(((e,r)=>{t.push({...e,keyy:r+1,picker:!1}),e.task_work.filter((e=>this.thremonth(e.dateend)&&e.status.id<5)).forEach(((e,n)=>{t.push({...e,keyy:`${r+1}.${n+1}`,picker:!1})}))})),this.orderdock.tasks=[e,t]},changepicker(e){if("task_work"in e){let t=this.orderdock.tasks.findIndex((t=>t.id==e.id));this.orderdock.tasks[t].planning=e.planning;for(let r=0;r<2;r++)try{this.toptable[r][this.toptable[r].findIndex((t=>t.id==e.id&&"task_work"in t))].planning=e.planning}catch{}}else{let t=this.orderdock.tasks.findIndex((t=>t.id==e.parent.id)),r=this.orderdock.tasks[t].task_work.findIndex((t=>t.id==e.id));this.orderdock.tasks[t].task_work[r].planning=e.planning}},remove(e){this.problemsrisks.splice(e,1)},removeKR(e){this.planresult.splice(e,1)},addrows(){this.problemsrisks.push({problem:"",comment:""})},addrowsKR(){this.planresult.push({problem:"",comment:""})},thremonth(e){return!this.isbefore(e)&&h()().diff(h()(e),"days")<90},isbefore(e){return h()(e).isBefore()},position(e){try{return e.position.name}catch{return""}}}},Ue=Be,je=(0,y.Z)(Ue,pe,ge,!1,null,null,null),qe=je.exports;_()(je,{VCol:F.Z,VRow:N.Z});var ze=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0 "},[r("v-col",{staticClass:"flex-col"},[r("v-row",{staticClass:"flex-grow-0 align-self-center text-center py-5"},[e._v(" ИТОГОВЫЙ ОТЧЕТ"),r("br"),e._v(" по проекту/этапу проекта ")]),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("table",{staticClass:"inmpline"},[r("tr",[r("td",{staticClass:"font-weight-regular pa-2",staticStyle:{width:"20%"}},[e._v("Наименование проекта/этапа проекта")]),r("td",{staticClass:"font-weight-regular pa-2",staticStyle:{width:"80%"}},[e.editable?r("v-textarea",{attrs:{rows:"3",placeholder:"Наименование проекта в случае завершения всего проекта или наименование проекта и этапа проекта в случае завершения этапа проекта"},model:{value:e.orderdock.longname,callback:function(t){e.$set(e.orderdock,"longname",t)},expression:"orderdock.longname"}}):r("span",[e._v(e._s(e.orderdock.longname))])],1)]),e._l(["Директор","Руководитель"],(function(t,n){return r("tr",{key:t},[r("td",{staticClass:"font-weight-regular pa-2",staticStyle:{width:"20%"}},[e._v(e._s(t)+" проекта")]),r("td",{staticClass:"font-weight-regular pa-2",staticStyle:{width:"80%"}},[e._v(e._s(e.getProject.users.find((function(e){return e.role.id==n+1})).user.fullname))])])}))],2)])],1),"result"in e.orderdock&&e.orderdock.result.length>0?r("div",[r("h4",{staticClass:"my-3"},[e._v("Достижение результатов проекта/этапа проекта")]),r("v-data-table",{attrs:{headers:e.result_headers,items:e.orderdock.result,"disable-pagination":"","hide-default-footer":""},scopedSlots:e._u([{key:"item.index",fn:function(t){var r=t.index;return[e._v(" "+e._s(r+1)+" ")]}},{key:"item.status",fn:function(t){return[e.editable?r("v-select",{attrs:{items:e.result_select,placeholder:"Выберите...",dense:"",rules:[function(e){return!(null===e)||"Обязательно для заполнения"}]},on:{change:function(t){return e.changeresult("result")}},model:{value:t.item.status,callback:function(r){e.$set(t.item,"status",r)},expression:"props.item.status"}}):r("div",[e._v(e._s(t.item.status))])]}},{key:"item.comment",fn:function(t){return[e.editable?r("v-textarea",{attrs:{rows:"3",placeholder:'Для статусов, отличающихся от "Получен", привести комментарий, объясняющий недостижение результата ',dense:""},model:{value:t.item.comment,callback:function(r){e.$set(t.item,"comment",r)},expression:"props.item.comment"}}):r("div",[e._v(e._s(t.item.comment))])]}},{key:"footer",fn:function(){return[r("v-row",[r("v-col",[e._v("Итого достигнуто результатов:")]),r("v-col",{attrs:{cols:"3"}},[e.editable&&e.orderdock.result.filter((function(e){return"Получен частично"==e.status})).length>0?r("v-row",[r("v-col",[r("v-text-field",{staticClass:"mt-0 pt-0",attrs:{dense:"",rules:e.rules.resultrules,type:"number"},model:{value:e.orderdock.result_description.result.count,callback:function(t){e.$set(e.orderdock.result_description.result,"count",t)},expression:"orderdock.result_description.result.count"}})],1),r("v-col",[r("v-text-field",{staticClass:"mt-0 pt-0",attrs:{dense:"",rules:e.rules.percentrules,prefix:"(",type:"number",suffix:"%)"},model:{value:e.orderdock.result_description.result.percent,callback:function(t){e.$set(e.orderdock.result_description.result,"percent",t)},expression:"orderdock.result_description.result.percent"}})],1)],1):r("span",[e._v(e._s(e.orderdock.result_description.result.count)+"("+e._s(e.orderdock.result_description.result.percent)+"%)")])],1),r("v-col",[e.editable&&e.orderdock.result.filter((function(e){return"Получен частично"==e.status})).length>0?r("v-textarea",{attrs:{rows:"3",placeholder:"В случае частичного получения некоторых результатов, необходимо привести комментарий, как вычислялось итоговое количество и процент",dense:""},model:{value:e.orderdock.result_description.result.comment,callback:function(t){e.$set(e.orderdock.result_description.result,"comment",t)},expression:"orderdock.result_description.result.comment"}}):r("p",[e._v(e._s(e.orderdock.result_description.result.comment))])],1)],1)]},proxy:!0}],null,!0)})],1):e._e(),"criteria"in e.orderdock&&e.orderdock.criteria.length>0?r("div",[r("h4",{staticClass:"my-3"},[e._v("Достижение качества результатов проекта/этапа проекта")]),r("v-data-table",{attrs:{headers:e.success_headers,items:e.orderdock.criteria,"disable-pagination":"","hide-default-footer":""},scopedSlots:e._u([{key:"item.index",fn:function(t){var r=t.index;return[e._v(" "+e._s(r+1)+" ")]}},{key:"item.status",fn:function(t){return[e.editable?r("v-select",{attrs:{items:e.success_select,placeholder:"Выберите...",dense:"",rules:[function(e){return!(null===e)||"Обязательно для заполнения"}]},on:{change:function(t){return e.changeresult("criteria")}},model:{value:t.item.status,callback:function(r){e.$set(t.item,"status",r)},expression:"props.item.status"}}):r("div",[e._v(e._s(t.item.status))])]}},{key:"item.comment",fn:function(t){return[e.editable?r("v-textarea",{attrs:{rows:"3",placeholder:'Для статусов, отличающихся от "Достигнут", привести комментарий, объясняющий несоответствие критерию успеха ',dense:""},model:{value:t.item.comment,callback:function(r){e.$set(t.item,"comment",r)},expression:"props.item.comment"}}):r("div",[e._v(e._s(t.item.comment))])]}},{key:"footer",fn:function(){return[r("v-row",[r("v-col",[e._v("Итого достигнуто результатов:")]),r("v-col",{attrs:{cols:"3"}},[e.editable&&e.orderdock.criteria.filter((function(e){return"Достигнут частично"==e.status})).length>0?r("v-row",[r("v-col",[r("v-text-field",{staticClass:"mt-0 pt-0",attrs:{dense:"",rules:e.rules.resultrules,type:"number"},model:{value:e.orderdock.result_description.criteria.count,callback:function(t){e.$set(e.orderdock.result_description.criteria,"count",t)},expression:"orderdock.result_description.criteria.count"}})],1),r("v-col",[r("v-text-field",{staticClass:"mt-0 pt-0",attrs:{dense:"",rules:e.rules.percentrules,prefix:"(",type:"number",suffix:"%)"},model:{value:e.orderdock.result_description.criteria.percent,callback:function(t){e.$set(e.orderdock.result_description.criteria,"percent",t)},expression:"orderdock.result_description.criteria.percent"}})],1)],1):r("span",[e._v(e._s(e.orderdock.result_description.criteria.count)+"("+e._s(e.orderdock.result_description.criteria.percent)+"%)")])],1),r("v-col",[e.editable&&e.orderdock.criteria.filter((function(e){return"Достигнут частично"==e.status})).length>0?r("v-textarea",{attrs:{rows:"3",placeholder:"В случае частичного недостижения некоторых критериев успеха, необходимо привести комментарий, как вычислялось итоговое количество и процент",dense:""},model:{value:e.orderdock.result_description.criteria.comment,callback:function(t){e.$set(e.orderdock.result_description.criteria,"comment",t)},expression:"orderdock.result_description.criteria.comment"}}):r("p",[e._v(e._s(e.orderdock.result_description.criteria.comment))])],1)],1)]},proxy:!0}],null,!0)})],1):e._e(),r("h4",{staticClass:"my-3"},[e._v("Соблюдение сроков проекта/этапа проекта")]),r("v-simple-table",{scopedSlots:e._u([{key:"default",fn:function(){return[r("thead",[r("tr",[r("th",{staticClass:"text-left"},[e._v(" Плановая длительность проекта/этапа проекта ")]),r("th",{staticClass:"text-left"},[e._v(" Фактическая длительность проекта/этапа проекта ")]),r("th",{staticClass:"text-left"},[e._v(" Отклонение ")])])]),r("tbody",[r("tr",[r("td",[e._v(e._s(e.momentedDay(e.orderdock.datestart)+" - "+e.momentedDay(e.orderdock.dateend)+"/("+e.momentdiff(e.orderdock.datestart,e.orderdock.dateend)+"д.)"))]),r("td",[r("v-row",[r("v-col",[r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"ma-0 align-self-center",attrs:{readonly:!e.editable,dense:"",value:e.formatDate(e.orderdock.srok.fact.datestart),type:"date-local",placeholder:"Факт начало",flat:"",solo:"","hide-details":""},on:{input:function(t){return e.orderdock.srok.fact.datestart=e.oninputnostore(t)}}},"v-text-field",a,!1),n))]}}]),model:{value:e.srokmenu[0],callback:function(t){e.$set(e.srokmenu,0,t)},expression:"srokmenu[0]"}},[e.editable?r("v-date-picker",{attrs:{"first-day-of-week":1},model:{value:e.orderdock.srok.fact.datestart,callback:function(t){e.$set(e.orderdock.srok.fact,"datestart",t)},expression:"orderdock.srok.fact.datestart"}}):e._e()],1)],1),r("v-col",[r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"ma-0 align-self-center",attrs:{readonly:!e.editable,dense:"",value:e.formatDate(e.orderdock.srok.fact.dateend),type:"date-local",placeholder:"Факт окончания",flat:"",solo:"","hide-details":""},on:{input:function(t){return e.orderdock.srok.fact.dateend=e.oninputnostore(t)}}},"v-text-field",a,!1),n))]}}]),model:{value:e.srokmenu[1],callback:function(t){e.$set(e.srokmenu,1,t)},expression:"srokmenu[1]"}},[e.editable?r("v-date-picker",{attrs:{"first-day-of-week":1},model:{value:e.orderdock.srok.fact.dateend,callback:function(t){e.$set(e.orderdock.srok.fact,"dateend",t)},expression:"orderdock.srok.fact.dateend"}}):e._e()],1)],1)],1),r("span",[e._v("("+e._s(e.momentdiff(e.orderdock.srok.fact.datestart,e.orderdock.srok.fact.dateend))+"д.)")])],1),r("td",[e._v(e._s((100*(e.momentdiff(e.orderdock.srok.fact.datestart,e.orderdock.srok.fact.dateend)-e.momentdiff(e.orderdock.datestart,e.orderdock.dateend))/e.momentdiff(e.orderdock.datestart,e.orderdock.dateend)).toFixed(2))+" %")])]),r("tr",[r("th",{attrs:{colspan:"3"}},[e._v(" Дополнительные комментарии к соблюдению сроков завершения проекта ")])]),r("tr",[r("td",{attrs:{colspan:"3"}},[e.editable?r("v-textarea",{attrs:{rows:"3",placeholder:"Указать дополнительные комментарии к соблюдению сроков завершения проекта в случае необходимост, например, указав зафиксированные сроки начала и завершения проекта или причины отклонения",dense:""},model:{value:e.orderdock.srok.comment,callback:function(t){e.$set(e.orderdock.srok,"comment",t)},expression:"orderdock.srok.comment"}}):e._e()],1)])])]},proxy:!0}])})],1)],1)},Ve=[];const We=(0,f._p)("projectstate");var He={name:"FinalReport",mixins:[oe.Z,E.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{srokmenu:[!1,!1],approvedtext:["_______________________","На утверждении","Отклонено","Утверждено"],rules:{resultrules:[e=>e<=this.orderdock.result.length||"Количество полуенных результатов не может превышать их количество в паспорте",e=>e>=0||"Количество полуенных результатов не может быть меньше 0"],percentrules:[e=>e>=0&&e<=100||"Процент должен быть между значениями 0 и 100"]},approved:0,orderdock:{orderdate:h()().format("YYYY-MM-DD"),confirmation:"",...this.getProject,tabler:{docnumber:"",approvedtime:""},result:[],srok:{comment:"",fact:{datestart:"",dateend:""}}},result_select:["Получен","Не получен","Получен частично"],success_select:["Достигнут","Не достигнут","Достигнут частично"],result_headers:[{text:"№",align:"start",sortable:!1,value:"index"},{text:"Запланированные результаты",value:"name"},{text:"Окончательный статус",value:"status"},{text:"Комментарий",value:"comment"}],success_headers:[{text:"№",align:"start",sortable:!1,value:"index"},{text:"Установленные критерии успеха",value:"name"},{text:"Окончательный статус",value:"status"},{text:"Комментарий",value:"comment"}]}},mounted(){h().locales("ru"),"id"in this.dialogdata?(this.approved=this.dialogdata.approved,this.orderdock=this.dialogdata.vrersion):(this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:"",srok:{comment:"",fact:{datestart:this.getProject.datestart,dateend:this.getProject.dateend}}},this.getresultobj())},watch:{dialogdata:function(e,t){console.log(e,t,"CHANGED"),"id"in e?(this.orderdock=e.vrersion,this.approver=e.approver,this.approved=e.approved,this.orderdock["tabler"]={docnumber:e.docnumber}):(this.approved=0,this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:"",srok:{comment:"",fact:{datestart:this.getProject.datestart,dateend:this.getProject.dateend}}},this.getresultobj())}},computed:{...We.mapGetters(["getProject","getprojectuniquePersons"])},methods:{momentdiff(e,t){return h()(t).diff(h()(e),"days")},changeresult(e="result"){let t="result"==e?"Получен":"Достигнут";this.orderdock.result_description[e].count=this.orderdock[e].filter((e=>e.status==t)).length,this.orderdock.result_description[e].percent=100*this.orderdock.result_description[e].count/this.orderdock[e].length},oninputnostore(e){try{let t=this.formatDateRev(e);console.log(t);const r=h()(t);if(r.isValid())return t}catch(t){console.log(t)}},obcleaner(){for(let e in this.orderdock)["users","datestart","dateend","result","criteria","result_description","name","longname","info","srok"].includes(e)||delete this.orderdock[e];for(let e in this.orderdock.info)["criteria","result"].includes(e)||delete this.orderdock.info[e]},getresultobj(){console.log("ORDERDOCK"),console.log(this.orderdock);let e=[],t=[];this.orderdock.result_description={result:{count:0,percent:0,comment:""},criteria:{count:0,percent:0,comment:""}},this.orderdock.info.result.forEach((e=>t.push({name:e,status:null,comment:"",index:t.length+1}))),this.orderdock.info.criteria.forEach((t=>e.push({name:t,status:null,comment:"",index:e.length+1}))),this.orderdock.result=t,this.orderdock.criteria=e,this.obcleaner(),this.changeresult()},position(e){try{return e.position.name}catch{return""}},initial(e){try{let t=e.givenName.split(" ");return`${t[0][0]}.${t[1][0]}. `}catch{return""}},momentext(e){if(e)return h()(e).locale("Ru").format("DD MMMM YYYY")},oninputnostore(e,t,r){let n=!1;r.length&&(n=!0,r=h()(r));try{let a=this.formatDateRev(e);const i=h()(a);i.isValid()&&n?i<=r&&(this[t[0]][t[1]]=a):i.isValid()&&!n&&(this[t[0]][t[1]]=a)}catch(a){console.log(a)}}}},Ge=He,Ye=r(57135),Xe=(0,y.Z)(Ge,ze,Ve,!1,null,null,null),Ke=Xe.exports;_()(Xe,{VCol:F.Z,VDataTable:te.Z,VDatePicker:M.Z,VMenu:D.Z,VRow:N.Z,VSelect:Ye.Z,VSimpleTable:ue.Z,VTextField:B.Z,VTextarea:de.Z});var Ze=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0 disposition"},[r("v-col",[r("v-row",{staticClass:"justify-space-between ma-0"},[r("v-col",{staticClass:" pa-0",attrs:{xl:"2"}},[e.editable?r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"pt-1 mb-2 inputext",attrs:{dense:"",value:e.formatDate(e.orderdock.orderdate),type:"date-local",placeholder:"дд.мм.гггг","hide-details":""},on:{input:function(t){return e.oninputnostore(t,["orderdock","orderdate"],e.orderdock.datestart)}}},"v-text-field",a,!1),n))]}}],null,!1,869261645),model:{value:e.picker0,callback:function(t){e.picker0=t},expression:"picker0"}},[r("v-date-picker",{attrs:{"first-day-of-week":1,max:e.orderdock.datestart},model:{value:e.orderdock.orderdate,callback:function(t){e.$set(e.orderdock,"orderdate",t)},expression:"orderdock.orderdate"}})],1):r("v-col",{staticClass:"text-nowrap px-0"},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate))+" года ")])],1),r("v-col",{staticClass:"text-end"},[e._v(" N ")]),r("v-col",{staticClass:"flex-grow-0 text-nowrap w-75 pa-0 align-self-center",attrs:{xl:"3"}},[e.editable?r("v-text-field",{attrs:{"hide-details":"auto",dense:""},model:{value:e.orderdock.docnumber,callback:function(t){e.$set(e.orderdock,"docnumber",t)},expression:"orderdock.docnumber"}}):r("span",[e._v(e._s(e.orderdock.docnumber))])],1)],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" Об утверждении"),r("br"),e._v(" Паспорта Проекта, плана контрольных событий Проекта и состава"),r("br"),e._v("Рабочей группы по реализации Проекта "),r("br"),e._v(' "'+e._s(e.orderdock.longname)+'" ')])],1),r("v-row",[r("v-col",{staticClass:"px-0"},[r("p",{staticClass:"test1 mb-0",class:e.editable?"passiv_text--text":""},[e._v(" В целях контроля реализации направлений деятельности ФНС России в сфере "+e._s(e.orderdock.info.project_sphere)+" ")])])],1),r("v-row",[r("v-col",{staticClass:"px-0",class:e.editable?"passiv_text--text":""},[r("p",{staticClass:"test1"},[e._v(" 1. Утвердить: ")]),r("p",{staticClass:"test1"},[e._v(" Паспорт Проекта согласно приложению № 1 к настоящему распоряжению; ")]),r("p",{staticClass:"test1"},[e._v(" План контрольных событий Проекта согласно приложению № 2 к настоящему распоряжению; ")]),r("p",{staticClass:"test1"},[e._v(" состав Рабочей группы по реализации Проекта согласно приложению № 3 к настоящему распоряжению. ")]),r("p",{staticClass:"test1"},[e._v(" 2. Контроль за исполнением настоящего распоряжения оставляю за собой. ")])])],1),"approver"in e.orderdock?r("v-row",{staticClass:"mt-0"},["approver"in e.orderdock?r("v-col",{staticClass:"text-end pa-0"},[e._v(" "+e._s(e.position(e.orderdock.approver))+" "),r("br"),e._v(e._s(e.initial(e.orderdock.approver))+e._s(e.orderdock.approver.sn)+" ")]):r("v-col",{staticClass:"text-end pa-0"},[e._v(" "+e._s(e.position(e.approver))+" "),r("br"),e._v(e._s(e.initial(e.approver))+e._s(e.approver&&"sn"in e.approver?e.approver.sn:"")+" ")])],1):e._e(),r("v-row",{staticClass:"mt-5"},[r("v-col",{staticClass:"text-end",class:e.editable?"passiv_text--text":""},[e._v(" Приложение N 1 ")])],1),r("v-row",{staticClass:"flex-grow-0 align-self-end text-end pb-5 flex-col mt-4"},[r("v-col",{staticClass:"pb-0",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.approvedtext[e.approved].toUpperCase())+" ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" распоряжением ФНС России ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate))+" г. ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" N "+e._s(""==e.orderdock.docnumber||null===e.orderdock.docnumber?"__________________":e.orderdock.docnumber)+" ")])],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" ПАСПОРТ проекта ")])],1),r("v-row",[r("v-col",{staticClass:"pa-0"},[r("p",{staticClass:"test1 mb-0 mt-2",class:e.editable?"passiv_text--text":""},[e._v(" ОСНОВНЫЕ ПОЛОЖЕНИЯ ")])])],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[e.generalposition.length>0?r("table",{staticClass:"inmpline"},e._l(e.generalposition,(function(t,n){return r("p-table",{key:n,attrs:{dat:t,editable:e.editable}},[e._v(e._s(t.text))])})),1):e._e()])],1),r("v-row",[r("v-col",{staticClass:"pa-0"},[r("p",{staticClass:"test1 mb-0 mt-2",class:e.editable?"passiv_text--text":""},[e._v(" СОДЕРЖАНИЕ ПРОЕКТА ")])])],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("table",{staticClass:"inmpline"},e._l(e.projectcontent,(function(t,n){return r("p-table",{key:n,attrs:{dat:t,editable:e.editable}},[e._v(e._s(t.text))])})),1)])],1),r("v-row",{staticClass:"mt-10"},[r("v-col",{staticClass:"text-end",class:e.editable?"passiv_text--text":""},[e._v(" Приложение N 2 ")])],1),r("v-row",{staticClass:"flex-grow-0 align-self-end text-end pb-5 flex-col mt-4"},[r("v-col",{staticClass:"pb-0",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.approvedtext[e.approved].toUpperCase())+" ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" распоряжением ФНС России ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate))+" г. ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" N "+e._s(""==e.orderdock.docnumber||null===e.orderdock.docnumber?"__________________":e.orderdock.docnumber)+" ")])],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" План контрольных событий проекта ")])],1),r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.orderdock.longname&&e.orderdock.longname.length>0?e.orderdock.longname:e.orderdock.name)+" ")])],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("table",{staticClass:"inmpline",class:e.editable?"passiv_text--text":""},[r("tr",[r("td",{staticClass:"font-weight-regular pa-2 w-7"},[e._v(" № ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Наименование задачи/контрольного события ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Ответственный исполнитель ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Дата решения/наступления контрольного события ")])]),r("tr",e._l(4,(function(t){return r("td",{key:t,staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s(t)+" ")])})),0),e._l(e.taskworks,(function(t,n){return r("tr",{key:n},[r("td",{staticClass:"font-weight-regular pa-2",class:"task_work"in t?"font-weight-bold":""},[e._v(" "+e._s(n+1)+" ")]),r("td",{staticClass:"font-weight-regular pa-2",class:"task_work"in t?"font-weight-bold":""},[e._v(" "+e._s(t.longname&&t.longname.length>0?t.longname:t.name)+" ")]),r("td",{staticClass:"font-weight-regular pa-2",class:"task_work"in t?"font-weight-bold":""},[e._v(" "+e._s(t.responsible.sn)+" ")]),r("td",{staticClass:"font-weight-regular pa-2",class:"task_work"in t?"font-weight-bold":""},[e._v(" "+e._s(e.momentext(t.dateend))+" ")])])}))],2)])],1),r("v-row",{staticClass:"mt-10"},[r("v-col",{staticClass:"text-end",class:e.editable?"passiv_text--text":""},[e._v(" Приложение N 3 ")])],1),r("v-row",{staticClass:"flex-grow-0 align-self-end text-end pb-5 flex-col mt-4"},[r("v-col",{staticClass:"pb-0",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.approvedtext[e.approved].toUpperCase())+" ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" распоряжением ФНС России ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate))+" г. ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" N "+e._s(""==e.orderdock.docnumber||null===e.orderdock.docnumber?"__________________":e.orderdock.docnumber)+" ")])],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" Состав рабочей группы по реализации проекта ")])],1),r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.orderdock.longname)+" ")])],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("table",{staticClass:"inmpline",class:e.editable?"passiv_text--text":""},[r("tr",[r("td",{staticClass:"font-weight-regular pa-2 w-7"},[e._v(" № ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Наименование проектной роли ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Процент загрузки на проекте ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" ФИО должностного лица ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Наименование подразделения и должности ")])]),e._l(e.sortedusers,(function(t,n){return r("tr",{key:n},[r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s(n+1)+" ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s("role"in t?t.role.name:"")+" ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s(t.percent)+" ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s("user"in t?t.user.fullname:t)+" ")]),"user"in t?r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s(t.user.organization.name)),r("br"),e._v(e._s(t.user.department.name)),r("br"),e._v(e._s(t.user.otdel.name)),r("br"),e._v(e._s(t.user.position.name)+" ")]):r("td")])}))],2)])],1)],1)],1)},Je=[],Qe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("tr",[r("td",{staticClass:"font-weight-regular pa-2 w-50"},[r("p",{class:e.editable?"passiv_text--text":""},[e._t("default")],2)]),Array.isArray(e.dat.data)?r("td",{staticClass:"font-weight-regular pa-2"},e._l(e.dat.data,(function(t,n){return r("p",{key:n,class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(t)+" ")])})),0):r("td",{staticClass:"font-weight-regular pa-2"},[r("p",{class:e.editable?"passiv_text--text":""},[e._v(e._s(e.dat.data))])])])},$e=[],et={name:"p-table",props:{dat:{type:Object,default:()=>{}},editable:{type:Boolean,default:!1}}},tt=et,rt=(0,y.Z)(tt,Qe,$e,!1,null,null,null),nt=rt.exports;const at=(0,f._p)("projectstate");var it={components:{pTable:nt},name:"disposition",mixins:[E.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{lastdock:null,approvedtext:["_______________________","На утверждении","Отклонено","Утверждено"],flagnew:!1,approved:0,picker0:!1,picker:!1,involveeRules:[e=>e&&e>0||"Значение должно быть больше 0",e=>e&&e<=100||"Значение должно быть меньше или равно 100"],orderdock:{orderdate:h()().format("YYYY-MM-DD"),confirmation:"",users:[{role:{id:0},user:{percent:0,organization:{name:""},department:{name:""},otdel:{name:""},position:{name:""}}}],info:{grounds:"",project_sphere:""},tasks:[]},generalposition:[],projectcontent:[],dialog:!1}},computed:{...at.mapGetters(["getProject","getprojectuniquePersons"]),taskworks(){let e=[];return this.orderdock.tasks.forEach((t=>{e.push(t),e.push(...t.task_work)})),e},sortedusers(){let e=this.orderdock.users,t=e.sort(((e,t)=>e.user.sn>t.user.sn?1:t.user.sn>e.user.sn?-1:0));return t.sort(((e,t)=>e.role.id>t.role.id?1:t.role.id>e.role.id?-1:0))},projectusersdepartments(){let e=this.orderdock.users.filter((e=>5==e.role.id)),t=new Set;return e.forEach((e=>t.add(e.user.department))),Array.from(t)}},mounted(){this.orderdock=JSON.parse(JSON.stringify(this.getProject)),this.orderdock.orderdate=h()().format("YYYY-MM-DD"),"docnumber"in this.orderdock.info||(this.orderdock.docnumber=""),"id"in this.dialogdata&&(this.orderdock=this.dialogdata.vrersion),this.obcleaner(),this.buildtables()},watch:{dialogdata:async function(e,t){console.log(e,t,"CHANGED"),"id"in e?(console.log("ИД ИН ВАЛ"),this.orderdock=e.vrersion,this.flagnew=!0):(this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:""},this.obcleaner(),console.log("НОВЫЯ ШТУКА",this.orderdock),this.buildtables())}},methods:{obcleaner(){for(let e of["history","author","datachat","difficult","project_files","status","project_checkpoint"])delete this.orderdock[e];console.log("НОВЫЯ ШТУКА",this.orderdock)},buildtables(){this.generalposition=[{text:"Наименование проекта",data:this.orderdock.longname},{text:"Краткое наименование проекта",data:this.orderdock.name},{text:"Директор",data:this.findrole(1)},{text:"Руководитель",data:this.findrole(2)},{text:"Координатор",data:this.findrole(4)},{text:"Секретарь",data:this.findrole(3)},{text:"Участники",data:this.departmentfilter()}],this.projectcontent=[{text:"Основание для инициации проекта",data:this.orderdock.info.grounds},{text:"Цель (цели) проекта",data:this.orderdock.info.target},{text:"Задачи проекта",data:this.orderdock.tasks.map((e=>e.name))},{text:"Результат (результаты) проекта",data:this.orderdock.info.result},{text:"Критерии успеха проекта",data:this.orderdock.info.criteria},{text:"Период реализации проекта",data:`${this.momentext(this.orderdock.datestart)} - ${this.momentext(this.orderdock.dateend)}`},{text:"Риски реализации проекта",data:this.orderdock.info.risks},{text:"Влияние результата проекта",data:this.orderdock.info.influence},{text:"Взаимосвязи с другими проектами и программами",data:this.orderdock.info.interactions},{text:"Дополнительная информация",data:this.orderdock.info.dop_info}]},addRows(e){this.orderdock[e].push("")},remove(e,t){this.orderdock[e].splice(t,1)},departmentfilter(){let e=new Set,t=this.orderdock.users.filter((e=>5==e.role.id));return t.forEach((t=>e.add(t.user.department.name))),console.log(Array.from(e),"DEPS"),Array.from(e)},findrole(e){try{return this.orderdock.users.find((t=>t.role.id==e)).user.fullname}catch(t){return"Не назначен"}},findpos(e){try{return this.orderdock.users.find((t=>t.role.id==e)).user}catch(t){return""}},getPersonShortFromId(e){let t={};this.getprojectuniquePersons.forEach((r=>{r.id==e&&(t=r)}));let r=t.givenName.split(" ");return`${t.sn} ${r[0][0]}.${r[1][0]}.`},position(e){try{return e.position.name}catch{return""}},initial(e){try{let t=e.givenName.split(" ");return`${t[0][0]}.${t[1][0]}. `}catch{return""}},momentext(e){if(e)return h()(e).locale("Ru").format("DD MMMM YYYY")},oninputnostore(e,t,r){let n=!1;r.length&&(n=!0,r=h()(r));try{let a=this.formatDateRev(e);const i=h()(a);i.isValid()&&n?i<=r&&(this[t[0]][t[1]]=a):i.isValid()&&!n&&(this[t[0]][t[1]]=a)}catch(a){console.log(a)}}}},ot=it,st=(0,y.Z)(ot,Ze,Je,!1,null,null,null),lt=st.exports;_()(st,{VCol:F.Z,VDatePicker:M.Z,VMenu:D.Z,VRow:N.Z,VTextField:B.Z});const ct=(0,f._p)("projectstate"),ut=(0,f._p)("auth");var dt={name:"ProjectDocks",components:{Dockhead:G,Order:j,SelectUserLite:ne,Planks:fe,Report:qe,FinalReport:Ke,disposition:lt,PdfToolbar:C,VuePdfApp:u()},props:{documents:{type:Array,default:()=>[]}},data(){return{config:{toolbar:!1},notbuilddock:!1,idConfig:{zoomIn:"zoomInId",zoomOut:"zoomOutId",download:"downloadId",presentationMode:"presentationModeId",previousPage:"previousPage",nextPage:"nextPageId"},chosenFile:null,Selectapprov:["Не подписан","Подписан"],Selectapprovmodel:null,disableEdition:!1,editable:!1,acceptormenu:!1,responser:{view:!1,ta_model:null,index:null},headers:[{text:"Номер",value:"docnumber"},{text:"Создан",value:"created"},{text:"Утвержден",value:"approved"},{text:"Согласование (реакции)",value:"accepters"}],dialog:!1,docktype:{"Приказ":{action:"order",data:[],previous:!1,createnew:!0,disabler:!1},"Распоряжение":{action:"passport",data:[],previous:!1,createnew:!0,disabler:!1},"План-график":{action:"plan_ks",data:[],previous:!1,createnew:!0,disabler:!1},"Отчет":{action:"report",data:[],previous:!1,createnew:!0,disabler:!1},"Итог":{action:"outcome",data:[],previous:!1,createnew:!0,disabler:!1},"Протокол":{action:"protocol",data:[],previous:!1,createnew:!0,disabler:!1}},tab:null,dialogtheme:{tophead:"",title:"Приказ",created:"",data:{approved:0,path:null,approver:{},comment:null,accepters:[{comment:""}]}},uploadPercentage:null,uploaddialog:!1,docnumber:""}},methods:{...ct.mapGetters(["getProject","getprojectuniquePersons"]),pathfile(){return"path"in this.dialogtheme.data&&!(null===this.dialogtheme.data.path)&&this.dialogtheme.data.path.length>0&&"pdf"==this.dialogtheme.data.path.substr(this.dialogtheme.data.path.length-3)},srcstring(){return`http://${p.Jx}/api${this.dialogtheme.data.path}`},async downloadacceptlist(e){let t=await p.be.get(`/project/downloaddock/${this.dialogtheme.data.id}/?confirmationmod=${e}`),r=document.createElement("a");r.href=`data:application/vnd.openxmlformats-officedocument.wordprocessingml.document;base64,${t.data}`,r.download=`${this.dialogtheme.title}${e?"__согласование__":""}.docx`,r.click(),r.remove()},idtonewdock(e){console.log(this.dialogtheme.data,"=================------idtonewdock-----===================="),this.dialogtheme.data.id=e.id;let t=Object.assign({vrersion:e.vrersion},this.dialogtheme.data);this.dialogtheme.data=t},uploader(){this.dialogtheme.data={accepters:[],approver:{},approved:0},this.uploaddialog=!0},async sendfile(){console.log("this.dialogtheme.data.approver",this.dialogtheme.data.approver);let e=new FormData;e.append("file",this.chosenFile),e.append("approver","id"in this.dialogtheme.data.approver?this.dialogtheme.data.approver.id:0),e.append("approved","Подписан"==this.Selectapprov?3:0),e.append("doctype",this.dialogtheme.title),e.append("docnumber",this.docnumber);let t=this.getProject().id,r=await p.rH.post(`/project/${t}/uploaddock`,e);"ok"==r.data.created&&(this.uploaddialog=!1,this.chosenFile=null,this.docnumber="",this.dialogtheme.data={approved:0,path:null,approver:{},comment:null,accepters:[{comment:""}]},this.$emit("savedock",["getprojectdocks",""]))},reeditabler(){this.canIedit()?(this.editable=!this.editable,this.dialogtheme.tophead=this.editable?"Редактирование документа":"Просмотр документа"):(this.editable=!1,this.dialogtheme.tophead="Просмотр документа")},canIedit(){return!(0!=this.dialogtheme.data.approved||(!this.dialogtheme.data.accepters.length||0!=this.dialogtheme.data.accepters[0].accepted)&&this.dialogtheme.data.accepters.length)},calculateaccepted(e){let t=0;return e.forEach((e=>{e.accepted>1&&t++})),t},needtoresponse(){let e=this.getUser.id;if(this.dialogtheme.data.approver&&1==this.dialogtheme.data.approved&&this.dialogtheme.data.approver.id==e)this.responser={view:!0,ta_model:"approver"};else{if(this.dialogtheme.data.accepters.length){let t=[...this.dialogtheme.data.accepters].findIndex((t=>t.id==e));if(t>-1&&1==this.dialogtheme.data.accepters[t].accepted)return void(this.responser={view:!0,ta_model:"accepters",index:t})}this.responser={view:!1,ta_model:null,index:null}}},acceptortext(e){return 0==e?"":1==e?"На согласовании":2==e?"Отклонено":"Согласовано"},approvertext(e){return 0==e?"":1==e?"На утверждении":2==e?"Отклонено":"Согласовано"},confirmOrNot(e){let t={id:this.dialogtheme.data.id};"approver"==this.responser.ta_model?(this.dialogtheme.data.approved=e,t["approved"]=e,t["comment"]=this.dialogtheme.data.comment,t["version"]=this.$refs.mydock.orderdock,t.version["approver"]=this.dialogtheme.data.approver,this.needtoresponse(),this.$emit("savedock",["approver_update",t])):"accepters"==this.responser.ta_model&&(this.dialogtheme.data.accepters[this.responser.index].accepted=e,t["accepters"]=this.dialogtheme.data.accepters[this.responser.index],console.log("conf",t),this.needtoresponse(),this.$emit("savedock",["acceptor_update",t]))},deleter(){this.$emit("savedock",["doc_deleter",{id:this.dialogtheme.data.id,path:this.dialogtheme.data.path}])},saver(e="justsave",t="project_savedock"){"toapprover"==e?(this.dialogtheme.data.approved=1,this.disableEdition=!this.canIedit(),this.editable=!1):"toaccept"==e&&(this.disableEdition=!this.canIedit(),this.dialogtheme.data.accepters.forEach((e=>e.accepted=1)),this.editable=!1),console.log("DIALOG",this.$refs.mydock.orderdock);let r={doctype__name:this.dialogtheme.title,version:null!==this.dialogtheme.data.path&&this.dialogtheme.data.path.length>0?{}:this.$refs.mydock.orderdock,approver:null!==this.dialogtheme.data.approver&&"id"in this.dialogtheme.data.approver?this.dialogtheme.data.approver.id:null,approved:this.dialogtheme.data.approved,comment:this.dialogtheme.data.comment,accepters:this.dialogtheme.data.accepters,actiontype:e};"Отчет"==this.dialogtheme.title&&(r.version.planresult=this.$refs.mydock.planresult,r.version.problemsrisks=this.$refs.mydock.problemsrisks),"id"in this.dialogtheme.data&&(r["id"]=this.dialogtheme.data.id),this.$emit("savedock",[t,r])},async copyrunview(e){let t=await p.be.get(`/getdock/${e}`);this.dialogtheme.data=t.data,this.disableEdition=!this.canIedit(),this.needtoresponse(),this.dialog=!0},copydock(){delete this.dialogtheme.data.id,this.saver("justsave","project__clonedock")},async clickRow(e,t){this.dialogtheme.title=t.item.doctype.name,this.dialogtheme.tophead=this.editable?"Редактирование документа":"Просмотр документа";let r=await p.be.get(`/getdock/${t.item.id}`);this.dialogtheme.data=r.data,console.log(this.dialogtheme.data),this.disableEdition=!this.canIedit(),this.needtoresponse(),this.dialog=!0},async dialogger(){this.dialogtheme.tophead="Создание нового документа",this.dialogtheme.data={accepters:[],approver:{},approved:0,path:null,comment:null},this.responser={view:!1,ta_model:null},this.editable=!0,this.disableEdition=!this.canIedit(),this.dialog=!0},dialogNo(){this.notbuilddock=!0}},computed:{...ut.mapGetters(["getUser"])},watch:{documents(e){console.log("sdddddd");for(let t in this.docktype)if(this.docktype[t].data=[],0!=this.docktype[t].previous){let r=e.findIndex((e=>e.doctype.name==this.docktype[t].previous&&3==e.approved));console.log("indx,this.docktype[key]",r,this.docktype[t]),r>=0?(this.docktype[t].createnew=null===e[r].path,this.docktype[t].disabler=!1):(console.log("key",t),this.docktype[t].createnew=!1,this.docktype[t].disabler=!0)}e.forEach((e=>{e.created=h()(e.created).locale("Ru").format("HH:mm:ss DD MMMM YYYY"),this.docktype[e.doctype.name].data.push(e)})),console.log(this.docktype)}}},ht=dt,ft=r(37359),pt=r(34061),gt=r(31625),vt=r(65495),mt=r(65808),bt=r(54525),yt=r(79500),wt=r(29592),_t=r(10626),kt=r(62165),xt=r(77771),St=r(45085),At=r(96313),Ct=r(97953),Pt=(0,y.Z)(ht,s,l,!1,null,null,null),Tt=Pt.exports;_()(Pt,{VAlert:ft.Z,VAutocomplete:L.Z,VBtn:k.Z,VCard:$.Z,VCardActions:ee.h7,VCardText:ee.ZB,VCardTitle:ee.EB,VCol:F.Z,VDataTable:te.Z,VDialog:pt.Z,VFileInput:gt.Z,VIcon:x.Z,VImg:vt.Z,VList:mt.Z,VListItem:bt.Z,VListItemContent:yt.km,VListItemSubtitle:yt.oZ,VListItemTitle:yt.V9,VMenu:D.Z,VProgressLinear:wt.Z,VRow:N.Z,VSelect:Ye.Z,VTab:_t.Z,VTabItem:kt.Z,VTabs:xt.Z,VTabsItems:St.Z,VTextField:B.Z,VTextarea:de.Z,VToolbar:At.Z,VToolbarTitle:Ct.qW,VTooltip:S.Z});var Et=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"divgant",attrs:{id:"gant"}},[r("div",{staticClass:"gantRef"},[r("DxGantt",{ref:e.ganttRef,attrs:{"start-date-range":e.startDateRange,"end-date-range":e.endDateRange,"first-day-of-week":1,"task-list-width":150,height:350,"scale-type":e.scale,"task-content-template":"taskContentTemplate","task-tooltip-content-template":"TooltipContentTemplate","on-custom-command":e.onCustomCommandClick,"on-context-menu-preparing":e.onContextMenuPreparing},on:{"task-dbl-click":e.onTaskDblClick},scopedSlots:e._u([{key:"TooltipContentTemplate",fn:function(t){var n=t.data;return[r("div",{staticClass:"custom-task-edit-tooltip pa-2"},[r("div",{staticClass:"custom-tooltip-title"},[e._v('"'+e._s(n.title)+'"')]),r("div",[e._v(" Дата начала: "+e._s(n.start.toLocaleDateString())+" ")]),r("div",[e._v("Дата окончания: "+e._s(n.end.toLocaleDateString()))])])]}},{key:"taskContentTemplate",fn:function(t){var n=t.data;return[r("div",{staticClass:"custom-task",class:e.getTaskColor(n.taskData.id),style:{width:n.taskSize.width+"px"}},[r("div",{staticClass:"custom-task-wrapper"},[r("div",{staticClass:"custom-task-row"},[e._v(" "+e._s(n.taskData.title)+" -- "+e._s(n&&"taskResources"in n&&n.taskResources.length?n.taskResources[0].text:""))])])])]}}])},[r("DxContextMenu",{attrs:{items:e.contextMenuItems}}),r("DxScaleTypeRange",{attrs:{min:"days",max:"years"}}),r("DxToolbar",[r("DxItem",{scopedSlots:e._u([{key:"default",fn:function(){return[r("v-btn",{staticClass:"mx-auto px-auto pl-1",attrs:{icon:"","x-small":"",color:"btns"},on:{click:function(t){return t.stopPropagation(),e.$emit("changegantview")}}},[r("v-icon",{attrs:{color:"primary"}},[e._v("mdi-close")])],1)]},proxy:!0}])}),r("DxItem",{attrs:{name:"undo"}}),r("DxItem",{attrs:{name:"redo"}}),r("DxItem",{attrs:{name:"separator"}}),r("DxItem",{attrs:{name:"collapseAll"}}),r("DxItem",{attrs:{name:"expandAll"}}),r("DxItem",{attrs:{name:"separator"}}),r("DxItem",{attrs:{name:"zoomIn"}}),r("DxItem",{attrs:{name:"zoomOut"}}),r("DxItem",{attrs:{name:"fullScreen"}}),r("DxItem",{attrs:{name:"separator"}}),r("DxItem",{scopedSlots:e._u([{key:"default",fn:function(){return[r("v-btn",{staticClass:"inyand--text",attrs:{"x-small":"",color:"btns"},on:{click:function(t){return t.stopPropagation(),e.createnewTask.apply(null,arguments)}}},[e._v(" Создать задачу")])]},proxy:!0}])})],1),r("DxTasks",{attrs:{"data-source":e.tasks}}),r("DxResources",{attrs:{"data-source":e.resources}}),r("DxResourceAssignments",{attrs:{"data-source":e.resourceAssignments}}),r("DxEditing",{attrs:{enabled:!1}}),e._v(" :allow-resource-adding = false :allow-resource-deleting = false "),r("DxColumn",{attrs:{"data-field":"title",caption:"",width:1}})],1)],1),r("v-dialog",{attrs:{"overlay-opacity":".1","max-width":"600px"},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[r("v-card",[r("v-card-title",[r("span",{staticClass:"text-h5"},[e._v(e._s(e.actionmethod.text))])]),r("v-card-text",[r("v-container",[r("v-row",[r("v-col",{attrs:{cols:"12"}},[r("v-text-field",{attrs:{label:"Краткое название",required:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),r("v-col",{attrs:{cols:"12"}},[r("v-text-field",{attrs:{label:"Название",required:""},model:{value:e.longname,callback:function(t){e.longname=t},expression:"longname"}})],1),r("v-col",{attrs:{cols:"12"}},[r("Datepiker",{attrs:{min:e.actionmethod.min,max:e.actionmethod.max,datestartstore:e.actionmethod.datestartstore,dateendstore:e.actionmethod.dateendstore}})],1),r("v-col",{attrs:{cols:"12"}},[r("div",[r("v-select",{attrs:{"item-text":"text","item-value":"id",items:e.resources,label:"Ответственный",required:"","return-object":""},on:{change:e.console},model:{value:e.responsible,callback:function(t){e.responsible=t},expression:"responsible"}}),r("v-row",{staticClass:"flex-grow-0 px-5"},[r("v-col",{staticClass:"pb-0 pt-2 d-flex"},[r("span",{staticClass:"caption"},[e._v("Сложность:")]),e._v(" "),r("v-rating",{staticClass:"pb-2",attrs:{color:"warning","empty-icon":"mdi-star-outline","full-icon":"mdi-star","half-icon":"mdi-star-half-full",hover:"",length:"5",size:"16"},model:{value:e.difficult,callback:function(t){e.difficult=t},expression:"difficult"}})],1)],1),r("v-textarea",{attrs:{rows:"5","no-resize":"",label:"Описание"},model:{value:e.description,callback:function(t){e.description=t},expression:"description"}})],1)])],1)],1)],1),r("v-card-actions",[r("v-spacer"),r("BtnsOut",{attrs:{title:"Отмена"},on:{click:function(t){e.dialog=!1}}}),r("BtnsOut",{attrs:{title:"Сохранить"},on:{click:e.saveit}})],1)],1)],1),r("v-dialog",{attrs:{"overlay-opacity":".1","max-width":"600px"},model:{value:e.deldialog,callback:function(t){e.deldialog=t},expression:"deldialog"}},[r("v-card",[r("v-card-title",[r("span",{staticClass:"text-h5"},[e._v(e._s(e.actionmethod.text))])]),r("v-card-text",[r("v-container",[r("v-row",[r("v-col",{attrs:{cols:"12"}},[e._v(' Вы уверены что хотите удалить "'+e._s(e.name)+'"? Также будут удалены все связанные объекты ')])],1)],1)],1),r("v-card-actions",[r("v-spacer"),r("BtnsOut",{attrs:{title:"Отмена"},on:{click:function(t){e.deldialog=!1}}}),r("BtnsOut",{attrs:{title:"Подтвердить"},on:{click:e.saveit}})],1)],1)],1)],1)},Rt=[],It=r(76811),Ot=r(23575),Lt=r(22233),Ft=r(24624),Mt=r(4646);const Dt="gantt",Nt=(0,f._p)("projectstate"),Bt=(0,f._p)("taskstate"),Ut=(0,f._p)("workstate");var jt={components:{DxScaleTypeRange:Mt.DxScaleTypeRange,Datepiker:It.Z,DxContextMenu:Mt.DxContextMenu,DxGantt:Mt.DxGantt,DxTasks:Mt.DxTasks,DxDependencies:Mt.DxDependencies,DxResources:Mt.DxResources,DxResourceAssignments:Mt.DxResourceAssignments,DxColumn:Mt.DxColumn,DxEditing:Mt.DxEditing,DxToolbar:Mt.DxToolbar,DxItem:Mt.DxItem},mixins:[Ot.Z],data(){return{scale:"year",selectedkey:"",ganttRef:Dt,actionmethod:{method:"addTask",text:"Создание задачи",dateendstore:"",datestartstore:"",min:"",max:"",level:"tasks"},dialog:!1,deldialog:!1,tasks:[],task:[{name:"edittask",text:"Редактировать задачу"},{name:"addwork",text:"Создать Работу"},{name:"deltask",text:"Удалить"}],work:[{name:"editwork",text:"Редактировать работу"},{name:"delwork",text:"Удалить"}],dialoginfo:{},contextMenuItems:[],resourceAssignments:[],disableContextMenu:!1}},created(){(0,Ft.EV)(Lt),(0,Ft.SP)(navigator.language)},mounted(){},computed:{name:{get(){return this[`get${this.actionmethod.level}`]().name},set(e){this[`set${this.actionmethod.level}name`](e)}},longname:{get(){return this[`get${this.actionmethod.level}`]().longname},set(e){console.log(this.actionmethod.level),this[`set${this.actionmethod.level}longname`](e)}},description:{get(){return this[`get${this.actionmethod.level}`]().description},set(e){this[`set${this.actionmethod.level}description`](e)}},difficult:{get(){return this[`get${this.actionmethod.level}`]().difficult},set(e){this[`set${this.actionmethod.level}difficult`](e)}},responsible:{get(){return this[`get${this.actionmethod.level}`]().responsible},set(e){this[`set${this.actionmethod.level}responsible`](e)}},gantt:function(){return this.scale=this.date_watch(this.getProjectdatestart(),this.getProjectdateend()),this.$refs[Dt].instance},resources:{get(){return this.getprojectuniqueusers().filter((e=>6!=e.role.id))}},tasksOR(){return this.getprojectTasks()},startDateRange(){let e=new Date(this.getProjectdatestart());this.tasks.length>0&&e!=this.tasks[0].start&&(this.tasks[0].start=e,this.gantt.refresh());let t=e;return this.tasks.forEach((r=>{t=r.start<e&&0!=r.start.getTime()?r.start:t})),t},endDateRange(){let e=new Date(this.getProjectdateend()),t=e;return t}},watch:{tasksOR(e){try{let t=this.topline(this.getprojectIdName(),this.getProjectdatestart(),this.getProjectdateend());if(this.tasks=[t],this.resourceAssignments=[{id:-1,taskId:`${t.id}`,resourceId:this.getProjectrp().id}],console.log(e,"VAL"),e.length)for(let r=0;r<e.length;r++){this.tasks.push({id:`task-${e[r].id}`,title:e[r].name,parentId:this.tasks[0].id,start:new Date(e[r].datestart),end:new Date(e[r].dateend),status:e[r].status}),this.resourceAssignments.push({id:r,taskId:`task-${e[r].id}`,resourceId:e[r].responsible.id});let t=0;e[r].task_work.forEach((n=>{this.tasks.push({id:`work-${n.id}`,title:n.name,parentId:`task-${e[r].id}`,start:new Date(n.datestart),end:new Date(n.dateend),status:n.status}),this.resourceAssignments.push({id:n.id+7e6,taskId:`work-${n.id}`,resourceId:n.responsible.id}),t++}))}}catch(t){}}},methods:{...Nt.mapGetters(["getprojectuniqueusers","getprojectTasks","getprojectWorks","getProjectdatestart","getProjectdateend","getprojectIdName","getProjectrp"]),...Bt.mapGetters(["getTaskdatestart","getTaskdateend","gettasks"]),...Bt.mapMutations(["setTaskdateend","setTaskdatestart","settasks","settasksresponsible","settasksname","settasksdescription","settaskslongname","settasksdifficult"]),...Ut.mapGetters(["getWorkdatestart","getWorkdateend","getworks"]),...Ut.mapMutations(["setWorkdateend","setWorkdatestart","setWorks","setworksresponsible","setworksname","setworksdescription","setworkslongname","setworksdifficult"]),createnewTask(){this.actionmethod={method:"addTask",level:"tasks",text:"Создание задачи",min:this.getProjectdatestart(),max:this.getProjectdateend(),datestartstore:"Taskdatestart",dateendstore:"Taskdateend"},this.settasks({name:"",parent:this.getprojectIdName().id,datestart:"",dateend:"",responsible:"",status:1,longname:"",difficult:0}),this.dialog=!0},console(e){console.log(e)},onTaskDblClick(e){e.cancel=!0,console.log(e.data,this.$route);let t=this.$route.path;if("parent"!=e.data.id.split("-")[0]){let r=e.data.id.split("-");if("task"==r[0])t+=`/${r[0]}/${r[1]}`;else{let n=e.data.parentId.split("-");t+=`/${n[0]}/${n[1]}/${r[0]}/${r[1]}`}this.$router.push(t)}},getTaskColor(e){let t=e.split("-")[1];const r=Number(t)%6;return`custom-task-color-${r}`},addwork(){let e=this.getprojectTasks();this.settasks(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"task"==this.selectedkey.id.split("-")[0]))]);this.getprojectWorks();console.log(this.selectedkey),this.setWorks({name:"",parent:Number(this.selectedkey.id.split("-")[1]),datestart:"",dateend:"",responsible:"",status:1,longname:"",difficult:0}),this.actionmethod={method:"creatework",level:"works",text:"Создание работы",min:this.getTaskdatestart(),max:this.getTaskdateend(),datestartstore:"Workdatestart",dateendstore:"Workdateend"},this.dialoginfo=this.getworks(),this.dialog=!0},editwork(){let e=this.getprojectTasks();this.settasks(e[e.findIndex((e=>e.id==this.selectedkey.parentId.split("-")[1]&&"task"==this.selectedkey.parentId.split("-")[0]))]);let t=this.getprojectWorks();this.setWorks(t[t.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"work"==this.selectedkey.id.split("-")[0]))]),this.actionmethod={method:"editwork",level:"works",text:"Редактирование работы",min:this.getTaskdatestart(),max:this.getTaskdateend(),datestartstore:"Workdatestart",dateendstore:"Workdateend"},this.dialog=!0,this.dialoginfo=this.getworks()},deltask(){let e=this.getprojectTasks();this.actionmethod={method:"deltask",level:"tasks",text:"Удаление задачи",datestartstore:"Workdatestart",dateendstore:"Workdateend"},this.deldialog=!0,this.settasks(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"task"==this.selectedkey.id.split("-")[0]))]),this.dialoginfo=this.gettasks()},delwork(){let e=this.getprojectWorks();this.setWorks(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"work"==this.selectedkey.id.split("-")[0]))]),this.actionmethod={method:"delwork",level:"works",text:"Удаление работы",datestartstore:"Workdatestart",dateendstore:"Workdateend"},this.deldialog=!0,this.dialoginfo=this.getworks(),console.log(this.selectedkey)},edittask(){let e=this.getprojectTasks();console.log(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"task"==this.selectedkey.id.split("-")[0]))]),this.settasks(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"task"==this.selectedkey.id.split("-")[0]))]),this.actionmethod={method:"updatetask",level:"tasks",text:"Редактирование задачи",min:this.getProjectdatestart(),max:this.getProjectdateend(),datestartstore:"Taskdatestart",dateendstore:"Taskdateend"},this.dialoginfo=this.gettasks(),this.dialog=!0}}},qt=jt,zt=r(82118),Vt=r(73905),Wt=(0,y.Z)(qt,Et,Rt,!1,null,null,null),Ht=Wt.exports;_()(Wt,{VBtn:k.Z,VCard:$.Z,VCardActions:ee.h7,VCardText:ee.ZB,VCardTitle:ee.EB,VCol:F.Z,VContainer:zt.Z,VDialog:pt.Z,VIcon:x.Z,VRating:Vt.Z,VRow:N.Z,VSelect:Ye.Z,VSpacer:Pe.Z,VTextField:B.Z,VTextarea:de.Z});var Gt=r(31451),Yt=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-card-text",{staticClass:"text_card--text d-flex flex-col px-2",class:e.hf},[r("v-row",{class:e.hf},[e.getLoad()?r("v-col",{staticClass:"\r\n pa-0\r\n order-lg-0\r\n order-0\r\n ",class:e.position?"align-self-center":"align-self-end",attrs:{xl:"6",lg:"12",md:"2",sm:"6",cols:"12"}},[r("v-skeleton-loader",{staticClass:"pb-1",attrs:{type:"table-cell"}})],1):r("v-col",{staticClass:"\r\n pa-md-0\r\n pa-0\r\n order-lg-0\r\n order-0\r\n ",class:e.position?"align-self-center":"align-self-end",attrs:{xl:"6",lg:"12",md:"2",sm:"6",cols:"12"}},[e._v(" "+e._s(e.fieldname)+" ")]),e.getLoad()?r("v-col",{staticClass:"\r\n d-flex\r\n flex-col\r\n pa-0\r\n order-lg-1\r\n order-2\r\n \r\n ",class:e.end?"hi":"",attrs:{xl:"12",lg:"12",md:e.mod>0?8:10,sm:"12",cols:"12"}},["Срок"!=e.fieldname?r("v-skeleton-loader",{attrs:{height:e.end?120:22,type:"image"}}):r("div",{staticClass:"flex-row justify-space-between"},[r("v-skeleton-loader",{attrs:{height:"22",width:"107",type:"image"}}),r("v-skeleton-loader",{attrs:{height:"23",width:"107",type:"image"}})],1)],1):r("v-col",{staticClass:"\r\n d-flex\r\n flex-col\r\n pa-0\r\n order-lg-1\r\n order-2\r\n \r\n ",class:e.end?"hi":"",attrs:{xl:"12",lg:"12",md:e.mod>0?8:10,sm:"12",cols:"12"}},[e._t("field")],2),e.mod>0?r("v-col",{staticClass:"\r\n text-xl-end\r\n text-lg-start\r\n text-md-center\r\n text-sm-right\r\n text-start\r\n align-self-md-center\r\n align-self-end\r\n order-lg-0\r\n order-md-3\r\n order-sm-0\r\n order-1\r\n pr-0\r\n pl-0\r\n py-0\r\n ",attrs:{xl:"6",lg:"12",md:"2",sm:"6",cols:"12"}},[e._t("buttons")],2):e._e()],1)],1)},Xt=[];const Kt=(0,f._p)("globalstore");var Zt={name:"Col-Text",props:{fieldname:{type:String,default:"0"},mod:{type:Number,default:0},position:{type:Boolean,default:!1},hf:{type:String,default:"flex-grow-0"},end:{type:Boolean,default:!1}},methods:{...Kt.mapGetters(["getLoad"])}},Jt=Zt,Qt=r(84978),$t=(0,y.Z)(Jt,Yt,Xt,!1,null,null,null),er=$t.exports;_()($t,{VCardText:ee.ZB,VCol:F.Z,VRow:N.Z,VSkeletonLoader:Qt.Z});var tr=r(54355),rr=r(54417),nr=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Cards",{scopedSlots:e._u([{key:"cards",fn:function(){return[r("v-card-actions",[r("v-row",{staticClass:"pa-2"},e._l(e.btns_otchet,(function(e){return r("v-col",{key:e,staticClass:"pa-1 ",attrs:{lg:"6",sm:"6"}},[r("BtnsOut",{attrs:{outlined:!0,block:!0,title:e}})],1)})),1)],1)]},proxy:!0}])})},ar=[],ir=r(37505),or={name:"Cards-Buttons",components:{Cards:ir.Z},props:{btns_otchet:[]}},sr=or,lr=(0,y.Z)(sr,nr,ar,!1,null,null,null),cr=lr.exports;_()(lr,{VCardActions:ee.h7,VCol:F.Z,VRow:N.Z});var ur=r(53502),dr=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"d-flex flex-col flex-grow-1"},[r("div",[r("v-app-bar",{staticClass:"flex-grow-0 ma-0 px-4 mx-2",attrs:{color:"inyand",elevation:"1",dense:""}},[r("v-app-bar-nav-icon",[r("MyIco",{attrs:{icons:"mdi-pencil-box-outline",color:"btns",size:"x-large",tooltip:!0,text_tool:"Редактировать проект"},on:{click:function(t){return e.$emit("switch_mode")}}})],1),r("v-toolbar-title",{attrs:{color:"primary"}},[e._v("Проект")]),r("v-spacer"),[1,6].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-center"},[e.checkRP?r("MyIco",{attrs:{icons:"mdi-arrow-right-drop-circle-outline",color:"open_icons",tooltip:!0,text_tool:"Взять в работу"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:5})}}}):e._e()],1):e._e(),[5].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-end"},[e.checkRP?[r("v-col",{staticClass:"py-2 px-0"},[r("MyIco",{attrs:{icons:"mdi-arrow-right-bold-circle-outline",color:"open_icons",tooltip:!0,text_tool:"Отправить на согласование"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:2})}}})],1),r("v-col",{staticClass:"py-2 px-1"},[r("MyIco",{attrs:{icons:"mdi-pause-circle-outline",color:"paused",tooltip:!0,text_tool:"Приостановить работу"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:6})}}})],1)]:e._e(),!e.checkRP&&e.checkDIR?r("div",[r("v-col",{staticClass:"py-2 pr-1"},[r("MyIco",{attrs:{icons:"mdi-file-outline",color:"btns",tooltip:!0,cursor:!1,text_tool:"В работе"}})],1)],1):e._e()],2):e._e(),[2].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-end"},[e.checkDIR?[r("v-col",{staticClass:"py-2 px-0"},[r("MyIco",{attrs:{icons:"mdi-check",color:"open_icons",tooltip:!0,text_tool:"Утвердить"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:3})}}})],1),r("v-col",{staticClass:"py-2 px-1"},[r("MyIco",{attrs:{icons:"mdi-close",color:"close_icons",tooltip:!0,text_tool:"Отклонить"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:4})}}})],1)]:e._e()],2):e._e(),[3].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-end"},[r("v-col",{staticClass:"py-2 pr-1"},[e.checkDIR?r("MyIco",{attrs:{icons:"mdi-checkbox-marked-outline",color:"open_icons",tooltip:!0,text_tool:"Утвержден. Отправить на завершение"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:7})}}}):e._e()],1)],1):e._e(),[4].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-end"},[r("v-col",{staticClass:"py-2 pr-1"},[e.checkRP?r("MyIco",{attrs:{icons:"mdi-arrow-right-drop-circle-outline",color:"open_icons",tooltip:!0,text_tool:"Взять в работу"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:5})}}}):e._e()],1)],1):e._e(),r("MyIco",{attrs:{icons:"mdi-dots-horizontal",color:"btns",cursor:!1,tooltip:!0,text_tool:e.getProject.status.name}})],1)],1),r("v-row",{staticClass:"h-0 overflow-auto card-text ma-0 mt-2"},[r("v-col",{staticClass:"d-flex flex-col pt-2"},[r("row-pirow",{attrs:{title:"Название:",rowclass:"pb-0 mt-n2",myclass:"pt-2"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("v-textarea",{staticClass:"mt-0 ml-n3 pt-0 nameproject",attrs:{readonly:"",solo:"",value:e.getProject.longname,"auto-grow":"",rows:0,dense:"",flat:"","hide-details":""}})]},proxy:!0}])}),r("row-pirow",{staticClass:"mt-0",attrs:{title:"Краткое название:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("span",[e._v(e._s(e.getProject.name))])]},proxy:!0}])}),r("row-pirow",{staticClass:"mt-0",attrs:{title:"Период:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[e._v(" "+e._s(e.momentedDay(e.getProject.datestart)+" - "+e.momentedDay(e.getProject.dateend)+"/("+e.timediff(e.getProject.dateend)+")")+" ")]},proxy:!0}])}),r("period-info",{attrs:{srok:e.daycalc.fifteen}},[[e.prlin?r("v-progress-linear",{staticClass:"mt-2",staticStyle:{"pointer-events":"none"},attrs:{value:e.daycalc.progress,color:e.daycalc.color,rounded:"",height:"10"}}):e._e()]],2),r("row-pirow",{directives:[{name:"show",rawName:"v-show",value:!isNaN(e.workaccepted),expression:"!isNaN(workaccepted)"}],staticClass:"mt-0",attrs:{title:"Выполнено задач:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[e._v(" "+e._s(e.alltask[1]+"/"+e.alltask[0])+" ")]},proxy:!0}])}),r("v-row",{directives:[{name:"show",rawName:"v-show",value:!isNaN(e.workaccepted),expression:"!isNaN(workaccepted)"}],staticClass:"flex-grow-0 my-0"},[r("v-col",{staticClass:"align-self-center py-0"},[r("v-progress-linear",{staticClass:"mt-0",staticStyle:{"pointer-events":"none"},attrs:{rounded:"",height:"10"},model:{value:e.workaccepted,callback:function(t){e.workaccepted=t},expression:"workaccepted"}})],1),r("v-col",{staticClass:"text-end flex-grow-0 pl-0 py-1"},[r("strong",{staticClass:"ml-auto align-self-center body-2"},[e._v(" "+e._s(Math.ceil(e.workaccepted))+"% ")])])],1),r("row-pirow",{attrs:{title:"Сложность реализации:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("v-rating",{staticClass:" ml-n3 star",attrs:{color:"warning","empty-icon":"mdi-star-outline","full-icon":"mdi-star","half-icon":"mdi-star-half-full",hover:"",length:"5",readonly:"",size:"16",value:e.getProject.difficult}})]},proxy:!0}])}),r("v-divider",{staticClass:"mt-2 mb-1"}),r("row-pirow",{attrs:{title:"Статус:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("span",[e._v(e._s(e.getProject.status.name))])]},proxy:!0}])}),r("row-pirow",{attrs:{title:"Тип:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("span",[e._v(e._s(e.getProject.ptype.name))])]},proxy:!0}])}),r("v-divider",{staticClass:"my-1 mt-3"}),r("roles-single",{attrs:{show:!1},on:{showuserinfo:e.showuserinfo}}),r("v-divider",{staticClass:"mb-0 mt-3 bg_div"}),r("roles-many",{attrs:{roles:5,show:!1},on:{showuserinfo:e.showuserinfo}}),r("v-divider",{staticClass:"mb-n2 mt-5 bg_div"}),r("roles-many",{attrs:{show:!1},on:{showuserinfo:e.showuserinfo}}),r("v-divider",{staticClass:"mt-4 mb-2"}),r("row-pirow",{attrs:{title:"Чат:",rightcolUsed:!0},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("div",{staticClass:"d-flex"},[r("MyIco",{attrs:{size:"small",icons:"mdi-menu",tooltip:!0,text_tool:"Управление чатом"},on:{click:e.dialogger}}),r("span",{staticClass:"ml-4"},[e._v(e._s(Array.isArray(e.chat.users)?"Кол-во участников: "+e.chat.users.length:""))])],1)]},proxy:!0},{key:"rightcol",fn:function(){return["id"in e.chat?r("BtnsOut",{staticClass:"mr-1",attrs:{widthi:97,icon:!0,title:e.chatview?"Скрыть Чат":"Показать чат"},on:{click:function(t){return e.$emit("chatviewer")}},scopedSlots:e._u([{key:"icons",fn:function(){return[r("MyIco",{attrs:{size:"small",icons:e.chatview?"mdi-chevron-double-right":"mdi-chevron-double-left"}})]},proxy:!0}])}):r("BtnsOut",{attrs:{widthi:97,icon:!0,title:"Создать чат"},on:{click:function(t){return e.$emit("createtabchat")}},scopedSlots:e._u([{key:"icons",fn:function(){return[r("MyIco",{attrs:{size:"small",icons:"mdi-chat-outline"}})]},proxy:!0}],null,!1,1586076455)})]},proxy:!0}])}),r("v-divider",{staticClass:"mt-4 mb-3"}),r("exp-panel",{staticClass:"mb-3",attrs:{addremrow:e.addremrow,newproject:e.getProject}}),r("history-min-card",{attrs:{level:1,indx:0},on:{showuserinfo:e.showuserinfo}})],1),r("infousercard",{attrs:{dialogdetail:e.dialogdetail,person:e.person},on:{dialogdetailoff:function(t){e.dialogdetail=!1}}})],1)],1)},hr=[],fr=r(24563),pr=r(69617),gr=r(67761),vr=r(32112),mr=r(55322),br=r(71240),yr=r(60441),wr=r(70606),_r=r(17550);const{mapMutations:kr,mapActions:xr}=(0,f._p)("filterslogic"),Sr=(0,f._p)("projectstate");(0,f._p)("multifilter");var Ar={name:"project-informationorders",mixins:[pr.Z,oe.Z,fr.Z],components:{SelectUserMenu:Gt.Z,rowPirow:gr.Z,rolesSingle:vr.Z,rolesMany:br.Z,infousercard:yr.Z,periodInfo:mr.Z,historyMinCard:wr.Z,ExpPanel:_r.Z},data:()=>({rp:!1,dialogdetail:!1,person:{},addremrow:[{field:"target",text:"Цель (цели) проекта"},{field:"result",text:"Результат (результаты) проекта"},{field:"criteria",text:"Критерии успеха проекта"},{field:"risks",text:"Риски реализации проекта"},{field:"interactions",text:"Взаимосвязи с другими проектами и программами"}],info_helper:{project_sphere:{text:"Сфера",typearr:!1},grounds:{text:"Основания",typearr:!1},target:{text:"Цели",typearr:!0},financial_support:{text:"Финансирование",typearr:!1},result:{text:"Результаты",typearr:!0},criteria:{text:"Критерии успеха",typearr:!0},risks:{text:"Риски",typearr:!0},influence:{text:"Влияние результатов",typearr:!1},interactions:{text:"Взаимосвязь",typearr:!0}}}),props:{chat:{type:Object,default:()=>{}},chatview:{type:Boolean,default:!0}},methods:{...kr(["setFields"]),...xr(["clear","getFilters","addFilter","activefilters"]),...Sr.mapMutations(["setProjectType","setProjectStatus","setProjectname"]),userssearch(e){let t=this.respons(e);return void 0==t?"":" "},showuserinfo(e){this.person=this.searchUser(e,this.allpersons),this.dialogdetail=!0},setpn(e){this.setProjectname(e)},dialogger(){o.$.$emit("chatuserdialog",{place:"rightchat",chat:{id:this.chat.id,level:this.chat.level,parent:this.chat.parent}})}},computed:{...Sr.mapGetters(["getProject","getprojectuniquePersons","allpersons"]),todo(){return this.getProject},alltask(){let e=[],t=this.getProject.tasks.filter((e=>5==e.status.id));return e.push(this.getProject.tasks.length,t.length),e},workaccepted(){return 100*this.alltask[1]/this.alltask[0]},daycalc(){return this.calcdays(this.todo.datestart,this.todo.dateend,this.todo.status,6,7)},checkRP(){let e=!1;return this.getProject.users.filter((t=>{[2].includes(t.role.id)&&t.user.id==this.user&&(e=!0)})),e},checkDIR(){let e=!1;return this.getProject.users.filter((t=>{[1].includes(t.role.id)&&t.user.id==this.user&&(e=!0)})),e},prlin(){return 7!=this.todo.status.id},type1:{get(){return this.getProject.ptype.id},set(e){this.setProjectType(e)}},status1:{get(){return this.getProject.status.id},set(e){this.setProjectStatus(e)}}}},Cr=Ar,Pr=r(15100),Tr=r(42240),Er=r(20144),Rr=Er["default"].extend({name:"v-app-bar-nav-icon",functional:!0,render(e,{slots:t,listeners:r,props:n,data:a}){const i=Object.assign(a,{staticClass:`v-app-bar__nav-icon ${a.staticClass||""}`.trim(),props:{...n,icon:!0},on:r}),o=t().default;return e(k.Z,i,o||[e(Tr.Z,"$menu")])}}),Ir=r(99223),Or=(0,y.Z)(Cr,dr,hr,!1,null,null,null),Lr=Or.exports;_()(Or,{VAppBar:Pr.Z,VAppBarNavIcon:Rr,VCol:F.Z,VDivider:Ir.Z,VProgressLinear:wt.Z,VRating:Vt.Z,VRow:N.Z,VSpacer:Pe.Z,VTextarea:de.Z,VToolbarTitle:Ct.qW});var Fr=r(1313),Mr=r(81689),Dr=r(69430),Nr=r(43803);const Br=(0,f._p)("projectstate"),Ur=(0,f._p)("taskstate"),jr=(0,f._p)("workstate"),qr=(0,f._p)("globalstore"),zr=(0,f._p)("auth"),{mapMutations:Vr,mapActions:Wr}=(0,f._p)("filterslogic");var Hr={name:"project",mixins:[oe.Z,Fr.Z],components:{LeftList:i.Z,ProjectDocks:Tt,Gant:Ht,SelectUserMenu:Gt.Z,ColText:er,CardsButtons:cr,workPieChart:rr.Z,filelist:ur.Z,history:history,projectInformationorder:Lr,Datepiker:It.Z,mMessegeListRight:Nr.Z,WorkTaskAssProject:tr["default"],Postpone:Dr.Z,projectStepperPattern:Mr.Z},data:()=>({show_change_dialog:!1,statid:[1,3,4,5,6],message:{mes:"",show:!1},comment:"",tabProj:null,tasksaccepted:0,gantview:!1,show:!1,menu:null,waiter:!1,chatview:!0,task:{name:"",datestart:"",dateend:"",responsible:{id:""},status:{id:0,name:"",description:""}},activedCh:{},ws:null,documents:[],project:{id:0,name:"",status:{id:1},users:[],ptype:{id:0},datestart:"",tasks:[],author:{id:0}},selectdatafields:{},selectfields:{project__type:{name:"Тип",basefield:"ptype"},project__status:{name:"Статус",basefield:"status"}},userFields:[{text:"Директор",icons:"mdi-account-plus",model:"director",modelrole:1},{text:"Руководитель",icons:"mdi-account-plus",model:"rp",modelrole:2},{text:"Секретарь",icons:"mdi-account-plus",model:"secretary",modelrole:3},{text:"Координатор",icons:"mdi-account-plus",model:"coordinator",modelrole:4}],chalenge:{"ИСУП":[{name:"Карточка задания"},{name:"Всплывающее окно"},{name:"Все дер"}],"УКД":[{name:"Статистика по пользователем"}]}}),computed:{...Br.mapGetters(["getProject","getProjectwatchers","getProjectusers"]),...zr.mapGetters(["getUser"]),history(){return this.getProject.history},checkRP(){let e=!1;return this.projectPopoject.users.filter((t=>{[2].includes(t.role.id)&&t.user.id==this.getUser.id&&(console.log(t,"---------"),e=!0)})),e},task_statuses_calc(){return this.pie_statuses_calc(this.project.tasks)},projectPopoject(){let{name:e,dateend:t,datestart:r,status:n,description:a,comment:i,users:o}={...this.project};return{name:e,dateend:t,datestart:r,status:n,description:a,comment:i,users:o,type:"Проект:",role:"Руководитель проекта:"}}},methods:{...Br.mapMutations(["setProject","setProjectusers","clearProject"]),...Wr(["getFilters"]),...Vr(["setFields"]),...Ur.mapGetters(["gettasks"]),...jr.mapGetters(["getworks"]),...qr.mapGetters(["getLoad"]),...qr.mapMutations(["setLoad"]),newproject(e){console.log("nude",e),this.ws.send({action:"update",payload:e}),this.show_change_dialog=!1},rout(e){this.$router.push({path:`${this.$route.fullPath}/task/${e}`})},comm(e){this.comment=e},showuserinfo(e){this.$refs.pifo.showuserinfo(e)},idtonewdock(e){this.$refs.projectdoc.idtonewdock(e)},filerenew(e){e.forEach(((t,r)=>e[r].visible=t.visible.split(""))),this.project.project_files=e},takeprev(e){this.activedCh.lastmessage.length<20?(this.activedCh.lastmessage=e.res,this.activedCh.lastmessage=this.activedCh.lastmessage):this.activedCh.lastmessage=e.res.concat(this.activedCh.lastmessage),this.waiter=!1},messagedeleted(e){try{let t=this.activedCh.lastmessage.findIndex((t=>t.id==e.id));this.activedCh.lastmessage.splice(t,1)}catch{}},filedeleted(e){let t=this.project.project_files.findIndex((t=>t.id==e.id));this.project.project_files.splice(t,1)},createnewTask(){this.$refs.gantproject.createnewTask()},savedock(e){console.log("PROJECT_SAVEDOCK",e),this.ws.send({action:e[0],payload:e[1]})},VisSwitcher(e){this.ws.send({action:"updateFile",payload:{id:e.id,visible:e.visible.join("")}})},rebuild(){this.ws.send({action:"rebuild",payload:this.project.id})},chatviewer(){this.chatview=!this.chatview},createtabchat(){let e=this.getProject.name,t=1,r=this.getProject.id,n=new Set;this.getProject.users.forEach((e=>{e.role.id<5&&n.add(e.user.id)})),this.chatview=!0,o.$.$emit("supogrammchatcreate",{users:Array.from(n),name:e,level:t,parent:r})},async uploadfile(e){let t={project:this.getProject.id,visible:"1000"};e.append("info",JSON.stringify(t));let r=await p.be.post("/main/uploader",e,{headers:{"Content-Type":"multipart/form-data"}});"created"in r.data&&this.ws.send({action:"fileuploaded",payload:this.getProject.id})},changetabProject(e){"2"==e&&this.ws.send({action:"getprojectdocks",payload:""})},addTask(e){console.log(e,"!!!!!!!!!!!!!!!!!!!!!!!!!"),delete e.val.history,this.ws.send({action:e.am.method,payload:e.val})},clickRow(e,t){this.$router.push(`${this.$route.path}/task/${t.item.id}`)},build(e){e.project_files.forEach(((t,r)=>e.project_files[r].visible=t.visible.split(""))),this.project=e,console.log(this.project,"this.project _2load"),this.setProject(this.project),this.tasksaccepted=100*this.getProject.tasks.filter((e=>5==e.status.id)).length/this.getProject.tasks.length,this.setLoad(!1),"datachat"in e&&(this.activedCh=e.datachat,this.chatview="id"in this.activedCh,this.$refs.mychat.scrollbottom(this.activedCh.lastmessage[this.activedCh.lastmessage.length-1].id))},deluser(e,t){let r=this.getProject.users,n=r.findIndex((r=>r.user.id==e&&r.role.id==t));r.splice(n,1),this.setProjectusers(r)},newmessageincome(e){this.activedCh.lastmessage.push(e),this.$refs.mychat.scrollbottom(e.id)},saveproject(){console.log(this.getProject,"сюда"),this.ws.send({action:"update",payload:this.getProject})},changestatus(e){let t="workstatus",r={id:e.val.id,status:e.action},n=this.getProject;r["project_status_update"]=3==n.status.id,r["task_status_update"]=this.task.status.id<2,this.tab>0&&(r["work_status_update"]=this.work.status.id<2,t="assignmentstatus"),this.ws.send({action:t,payload:r})},switch_mode(){this.show_change_dialog=!this.show_change_dialog},async createtask(){let e=await p.be.get(`/createtask/?parent=${this.project.id}`);this.$router.push(`/task/${e.data.id}`)},buildDocspage(e){this.documents=e},closeDocdialog(e){this.$refs.projectdoc.dialog=!1},async opendoc(e){console.log("JOOOOOOOOOOO"),await this.$refs.projectdoc.copyrunview(e)},gantviewer(){this.gantview=!this.gantview,this.gantview&&this.$refs.gantproject.rebuild()},confirmation(e){this.project.tasks.forEach((e=>{e.menu=!1,e.action_confirm=!1})),this.ws.send({action:"confirmation",payload:e}),this.comment="",this.comment_up=""}},beforeDestroy(){console.log("destroy"),this.clearProject(),this.ws.stop()},mounted(){this.setLoad(!0),this.setFields({role:{module:"mult"},project__type:{module:"mult"}}),this.getFilters([{project__type:{sort:"id",filters:{},exclude:["projects"]}},{role:{name:"role",sort:"id"}}]),this.ws=new this.$pws,this.ws.start(this.$route.fullPath),this.ws.addEvent("onmessage",(e=>{const t=JSON.parse(e.data);if(console.log(t,"все данные"),"mess"in t&&(console.log(t.mess+" - сообщение"),this.message.mes=t.mess,this.message.show=!0),"action"in t)try{this[t.action](t.payload)}catch(r){console.log(r)}}))}},Gr=Hr,Yr=r(77394),Xr=(0,y.Z)(Gr,n,a,!1,null,null,null),Kr=Xr.exports;_()(Xr,{VCard:$.Z,VCol:F.Z,VDialog:pt.Z,VSlideXReverseTransition:Yr.Zy,VTab:_t.Z,VTabs:xt.Z})}}]);
|
||
//# sourceMappingURL=752.0f32cc7f.js.map |