!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeofexports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsDistBuildPdfWorker=t()}(this,function(){returnfunction(e){functiont(r){if(a[r])returna[r].exports;vari=a[r]={i:r,l:!1,exports:{}};e[r].call(i.exports,i,i.exports,t);i.l=!0;returni.exports}vara={};t.m=e;t.c=a;t.i=function(e){returne};t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})};t.n=function(e){vara=e&&e.__esModule?function(){returne.default}:function(){returne};t.d(a,"a",a);returna};t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)};t.p="";returnt(t.s=36)}([function(e,t,a){"use strict";(function(e){functionr(e){re=e}functioni(){returnre}functionn(e){re>=ee.infos&&console.log("Info: "+e)}functions(e){re>=ee.warnings&&console.log("Warning: "+e)}functiono(e){console.log("Deprecated API usage: "+e)}functionc(e){if(re>=ee.errors){console.log("Error: "+e);console.log(l())}thrownewError(e)}functionl(){try{thrownewError}catch(e){returne.stack?e.stack.split("\n").slice(2).join("\n"):""}}functionh(e,t){e||c(t)}functionu(e,t){try{vara=newURL(e);if(!a.origin||"null"===a.origin)return!1}catch(e){return!1}varr=newURL(t,a);returna.origin===r.origin}functionf(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functiond(e,t){if(!e)returnnull;try{vara=t?newURL(e,t):newURL(e);if(f(a))returna}catch(e){}returnnull}functiong(e,t,a){Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!1});returna}functionp(e){vart;returnfunction(){if(e){t=Object.create(null);e(t);e=null}returnt}}functionm(e){if("string"!=typeofe){s("The argument for removeNullCharacters must be a string.");returne}returne.replace(ge,"")}functionb(e){h(null!==e&&"object"===(void0===e?"undefined":H(e))&&void0!==e.length,"Invalid argument for bytesToString");vart=e.length;if(t<8192)returnString.fromCharCode.apply(null,e);for(vara=[],r=0;r<t;r+=8192){vari=Math.min(r+8192,t),n=e.subarray(r,i);a.push(String.fromCharCode.apply(null,n))}returna.join("")}functionv(e){h("string"==typeofe,"Invalid argument for stringToBytes");for(vart=e.length,a=newUint8Array(t),r=0;r<t;++r)a[r]=255&e.charCodeAt(r);returna}functiony(e){if(void0!==e.length)returne.length;h(void0!==e.byteLength);returne.byteLength}functionk(e){if(1===e.length&&e[0]instanceofUint8Array)returne[0];vart,a,r,i=0,n=e.length;for(t=0;t<n;t++){a=e[t];r=y(a);i+=r}vars=0,o=newUint8Array(i);for(t=0;t<n;t++){a=e[t];ainstanceofUint8Array||(a="string"==typeofa?v(a):newUint8Array(a));r=a.byteLength;o.set(a,s);s+=r}returno}functionw(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionC(e){for(vart=1,a=0;e>t;){t<<=1;a++}returna}functionx(e,t){returne[t]<<24>>24}functionS(e,t){returne[t]<<8|e[t+1]}functionA(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionI(){vare=newUint8Array(4);e[0]=1;return1===newUint32Array(e.buffer,0,1)[0]}functionB(){try{newFunction("");return!0}catch(e){return!1}}functionR(e){vart,a=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<a;t+=2)r.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));elsefor(t=0;t<a;++t){vari=ve[e.charCodeAt(t)];r.push(i?String.fromCharCode(i):e.charAt(t))}returnr.join("")}functionT(e){returndecodeURIComponent(escape(e))}functionO(e){returnunescape(encodeURIComponent(e))}functionP(e){for(vartine)return!1;return!0}functionE(e){return"boolean"==typeofe}functionM(e){return"number"==typeofe&&(0|e)===e}functionL(e){return"number"==typeofe}functionD(e){return"string"==typeofe}functionF(e){returneinstanceofArray}functionq(e){return"object"===(void0===e?"undefined":H(e))&&null!==e&&void0!==e.byteLength}functionU(e){return32===e||9===e||13===e||10===e}functionN(){return"undefined"==typeof__pdfjsdev_
o("Invalid BlackPoint for "+this.name+", falling back to default");this.XB=this.YB=this.ZB=0}0===this.XB&&0===this.YB&&0===this.ZB||u(this.name+", BlackPoint: XB: "+this.XB+", YB: "+this.YB+", ZB: "+this.ZB+", only default values are supported.");if(this.G<1){o("Invalid Gamma: "+this.G+" for "+this.name+", falling back to default");this.G=1}}functiont(e,t,a,r,i,n){vars=t[a]*n,o=Math.pow(s,e.G),c=e.YW*o,l=0|Math.max(295.8*Math.pow(c,.3333333333333333)-40.8,0);r[i]=l;r[i+1]=l;r[i+2]=l}e.prototype={getRgb:m.prototype.getRgb,getRgbItem:function(e,a,r,i){t(this,e,a,r,i,1)},getRgbBuffer:function(e,a,r,i,n,s,o){for(varc=1/((1<<s)-1),l=0;l<r;++l){t(this,e,a,i,n,c);a+=1;n+=3+o}},getOutputLength:function(e,t){returne*(3+t)},isPassthrough:m.prototype.isPassthrough,fillRgb:m.prototype.fillRgb,isDefaultDecode:function(e){returnm.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0};returne}(),S=function(){functione(e,t,a,r){this.name="CalRGB";this.numComps=3;this.defaultColor=newFloat32Array(this.numComps);e||s("WhitePoint missing - required for color space CalRGB");t=t||newFloat32Array(3);a=a||newFloat32Array([1,1,1]);r=r||newFloat32Array([1,0,0,0,1,0,0,0,1]);vari=e[0],n=e[1],c=e[2];this.whitePoint=e;varl=t[0],h=t[1],u=t[2];this.blackPoint=t;this.GR=a[0];this.GG=a[1];this.GB=a[2];this.MXA=r[0];this.MYA=r[1];this.MZA=r[2];this.MXB=r[3];this.MYB=r[4];this.MZB=r[5];this.MXC=r[6];this.MYC=r[7];this.MZC=r[8];(i<0||c<0||1!==n)&&s("Invalid WhitePoint components for "+this.name+", no fallback available");if(l<0||h<0||u<0){o("Invalid BlackPoint for "+this.name+" ["+l+", "+h+", "+u+"], falling back to default");this.blackPoint=newFloat32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){o("Invalid Gamma ["+this.GR+", "+this.GG+", "+this.GB+"] for "+this.name+", falling back to default");this.GR=this.GG=this.GB=1}if(this.MXA<0||this.MYA<0||this.MZA<0||this.MXB<0||this.MYB<0||this.MZB<0||this.MXC<0||this.MYC<0||this.MZC<0){o("Invalid Matrix for "+this.name+" ["+this.MXA+", "+this.MYA+", "+this.MZA+this.MXB+", "+this.MYB+", "+this.MZB+this.MXC+", "+this.MYC+", "+this.MZC+"], falling back to default");this.MXA=this.MYB=this.MZC=1;this.MXB=this.MYA=this.MZA=this.MXC=this.MYC=this.MZB=0}}functiont(e,t,a){a[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];a[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2];a[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}functiona(e,t,a){a[0]=1*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1*t[2]/e[2]}functionr(e,t,a){a[0]=.95047*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1.08883*t[2]/e[2]}functioni(e){returne<=.0031308?n(0,1,12.92*e):n(0,1,1.055*Math.pow(e,1/2.4)-.055)}functionn(e,t,a){returnMath.max(e,Math.min(t,a))}functionc(e){returne<0?-c(-e):e>8?Math.pow((e+16)/116,3):e*w}functionl(e,t,a){if(0!==e[0]||0!==e[1]||0!==e[2]){varr=c(0),i=r,n=c(e[0]),s=r,o=c(e[1]),l=r,h=c(e[2]),u=(1-i)/(1-n),f=1-u,d=(1-s)/(1-o),g=1-d,p=(1-l)/(1-h),m=1-p;a[0]=t[0]*u+f;a[1]=t[1]*d+g;a[2]=t[2]*p+m}else{a[0]=t[0];a[1]=t[1];a[2]=t[2]}}functionh(e,r,i){if(1!==e[0]||1!==e[2]){varn=i;t(d,r,n);vars=v;a(e,n,s);t(g,s,i)}else{i[0]=r[0];i[1]=r[1];i[2]=r[2]}}functionu(e,a,i){varn=i;t(d,a,n);vars=v;r(e,n,s);t(g,s,i)}functionf(e,a,r,s,o,c){varf=n(0,1,a[r]*c),d=n(0,1,a[r+1]*c),g=n(0,1,a[r+2]*c),m=Math.pow(f,e.GR),v=Math.pow(d,e.GG),w=Math.pow(g,e.GB),C=e.MXA*m+e.MXB*v+e.MXC*w,x=e.MYA*m+e.MYB*v+e.MYC*w,S=e.MZA*m+e.MZB*v+e.MZC*w,A=y;A[0]=C;A[1]=x;A[2]=S;varI=k;h(e.whitePoint,A,I);varB=y;l(e.blackPoint,I,B);varR=k;u(b,B,R);varT=y;t(p,R,T);varO=i(T[0]),P=i(T[1]),E=i(T[2]);s[o]=Math.round(255*O);s[o+1]=Math.round(255*P);s[o+2]=Math.round(255*E)}vard=newFloat32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),g=newFloat32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),p=newFloat32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),b=newFloat32Array([1,1,1]),v=newFloat32Array(3),y=newFloat32Array(3),k=newFloat32Array(3),w=Math.pow(24/116,3)/8;e.prototype={getRgb:function(e,t){vara=newUint8Array(3);this.getRgbItem(e,t,a,0);returna},getRgbItem:function(e,t,a,r){f(this,e,t,a,r,1)
returnb.get(">");case123:this.nextChar();returnb.get("{");case125:this.nextChar();returnb.get("}");case41:this.nextChar();l("Illegal character: "+t)}for(varr=String.fromCharCode(t),i=this.knownCommands,n=i&&void0!==i[r];(t=this.nextChar())>=0&&!a[t];){vars=r+String.fromCharCode(t);if(n&&void0===i[s])break;128===r.length&&l("Command token too long: "+r.length);r=s;n=i&&void0!==i[r]}return"true"===r||"false"!==r&&("null"===r?null:b.get(r))},skipToNextLine:function(){for(vare=this.currentChar;e>=0;){if(13===e){e=this.nextChar();10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}};returne}(),U={create:function(e){functiont(e,t){vara=c.get(e);if(f(a)&&(t?a>=0:a>0))returna;thrownewError('The "'+e+'" parameter in the linearization dictionary is invalid.')}vara,r,i=newF(newq(e),!1,null),n=i.getObj(),s=i.getObj(),o=i.getObj(),c=i.getObj();if(!(f(n)&&f(s)&&C(o,"obj")&&x(c)&&d(a=c.get("Linearized"))&&a>0))returnnull;if((r=t("L"))!==e.length)thrownewError('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:r,hints:function(){vare,t,a=c.get("H");if(u(a)&&(2===(e=a.length)||4===e)){for(varr=0;r<e;r++)if(!(f(t=a[r])&&t>0))thrownewError("Hint ("+r+") in the linearization dictionary is invalid.");returna}thrownewError("Hint array in the linearization dictionary is invalid.")}(),objectNumberFirst:t("O"),endFirst:t("E"),numPages:t("N"),mainXRefEntriesOffset:t("T"),pageFirst:c.has("P")?t("P",!0):0}}};t.Lexer=q;t.Linearization=U;t.Parser=F},function(e,t,a){"use strict";functionr(e){vart;if("object"!==(void0===e?"undefined":i(e)))return!1;if(f(e))t=e;else{if(!d(e))return!1;t=e.dict}returnt.has("FunctionType")}vari="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},n=a(0),s=a(1),o=a(34),c=n.error,l=n.info,h=n.isArray,u=n.isBool,f=s.isDict,d=s.isStream,g=o.PostScriptLexer,p=o.PostScriptParser,m=function(){return{getSampleArray:function(e,t,a,r){vari,n,s=1;for(i=0,n=e.length;i<n;i++)s*=e[i];s*=t;varo=newArray(s),c=0,l=0,h=1/(Math.pow(2,a)-1),u=r.getBytes((s*a+7)/8),f=0;for(i=0;i<s;i++){for(;c<a;){l<<=8;l|=u[f++];c+=8}c-=a;o[i]=(l>>c)*h;l&=(1<<c)-1}returno},getIR:function(e,t){vara=t.dict;a||(a=t);varr=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],i=a.get("FunctionType"),n=r[i];n||c("Unknown type of function");returnn.call(this,t,a,e)},fromIR:function(e){switch(e[0]){case0:returnthis.constructSampledFromIR(e);case2:returnthis.constructInterpolatedFromIR(e);case3:returnthis.constructStichedFromIR(e);default:returnthis.constructPostScriptFromIR(e)}},parse:function(e,t){vara=this.getIR(e,t);returnthis.fromIR(a)},parseArray:function(e,t){if(!h(t))returnthis.parse(e,t);for(vara=[],r=0,i=t.length;r<i;r++){varn=e.fetchIfRef(t[r]);a.push(m.parse(e,n))}returnfunction(e,t,r,i){for(varn=0,s=a.length;n<s;n++)a[n](e,t,r,i+n)}},constructSampled:function(e,t){functiona(e){for(vart=e.length,a=[],r=0,i=0;i<t;i+=2){a[r]=[e[i],e[i+1]];++r}returna}varr=t.getArray("Domain"),i=t.getArray("Range");r&&i||c("No domain or range");varn=r.length/2,s=i.length/2;r=a(r);i=a(i);varo=t.get("Size"),h=t.get("BitsPerSample"),u=t.get("Order")||1;1!==u&&l("No support for cubic spline interpolation: "+u);varf=t.getArray("Encode");if(!f){f=[];for(vard=0;d<n;++d){f.push(0);f.push(o[d]-1)}}f=a(f);varg=t.getArray("Decode");g=g?a(g):i;return[0,n,r,f,g,this.getSampleArray(o,s,h,e),o,s,Math.pow(2,h)-1,i]},constructSampledFromIR:function(e){functiont(e,t,a,r,i){returnr+(i-r)/(a-t)*(e-t)}returnfunction(a,r,i,n){vars,o,c=e[1],l=e[2],h=e[3],u=e[4],f=e[5],d=e[6],g=e[7],p=e[9],m=1<<c,b=newFloat64Array(m),v=newUint32Array(m);for(o=0;o<m;o++)b[o]=1;vary=g,k=1;for(s=0;s<c;++s){varw=l[s][0],C=l[s][1],x=Math.min(Math.max(a[r+s],w),C),S=t(x,w,C,h[s][0],h[s][1]),A=d[s];S=Math.min(Math.max(S,0),A-1);varI=S<A-1?Math.floor(S):S-1,B=I+1-S,R=S-I,T=I*y,
;if(0===c||l>=this.bytes.length)this.emptyPrivateDictionary(e);else{varu=this.parseIndex(l);o.subrsIndex=u.obj}}}}elsee.removeByName("Private")}elsethis.emptyPrivateDictionary(e)},parseCharsets:function(e,t,a,r){if(0===e)returnnewT(!0,R.ISO_ADOBE,g);if(1===e)returnnewT(!0,R.EXPERT,p);if(2===e)returnnewT(!0,R.EXPERT_SUBSET,m);vari,n,o,c=this.bytes,l=e,h=c[e++],u=[".notdef"];t-=1;switch(h){case0:for(o=0;o<t;o++){i=c[e++]<<8|c[e++];u.push(r?i:a.get(i))}break;case1:for(;u.length<=t;){i=c[e++]<<8|c[e++];n=c[e++];for(o=0;o<=n;o++)u.push(r?i++:a.get(i++))}break;case2:for(;u.length<=t;){i=c[e++]<<8|c[e++];n=c[e++]<<8|c[e++];for(o=0;o<=n;o++)u.push(r?i++:a.get(i++))}break;default:s("Unknown charset format")}varf=e,d=c.subarray(l,f);returnnewT(!1,h,u,d)},parseEncoding:function(e,t,a,r){vari,n,o,c=Object.create(null),l=this.bytes,h=!1,u=null;if(0===e||1===e){h=!0;i=e;varf=e?v:b;for(n=0,o=r.length;n<o;n++){vard=f.indexOf(r[n]);-1!==d&&(c[d]=n)}}else{varg=e;i=l[e++];switch(127&i){case0:varp=l[e++];for(n=1;n<=p;n++)c[l[e++]]=n;break;case1:varm=l[e++],y=1;for(n=0;n<m;n++)for(vark=l[e++],w=l[e++],C=k;C<=k+w;C++)c[C]=y++;break;default:s("Unknown encoding format: "+i+" in CFF")}varx=e;if(128&i){l[g]&=127;!function(){vart=l[e++];for(n=0;n<t;n++){vari=l[e++],s=(l[e++]<<8)+(255&l[e++]);c[i]=r.indexOf(a.get(s))}}()}u=l.subarray(g,x)}i&=127;returnnewO(h,i,c,u)},parseFDSelect:function(e,t){vara,r,i=e,n=this.bytes,o=n[e++],c=[],h=!1;switch(o){case0:for(r=0;r<t;++r){varu=n[e++];c.push(u)}a=n.subarray(i,e);break;case3:varf=n[e++]<<8|n[e++];for(r=0;r<f;++r){varg=n[e++]<<8|n[e++];if(0===r&&0!==g){l("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");h=!0;g=0}for(varp=n[e++],m=n[e]<<8|n[e+1],b=g;b<m;++b)c.push(p)}e+=2;a=n.subarray(i,e);h&&(a[3]=a[4]=0);break;default:s('parseFDSelect: Unknown format "'+o+'".')}d(c.length===t,"parseFDSelect: Invalid font data.");returnnewP(c,a)}};returne}(),w=function(){functione(){this.header=null;this.names=[];this.topDict=null;this.strings=newx;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1}returne}(),C=function(){functione(e,t,a,r){this.major=e;this.minor=t;this.hdrSize=a;this.offSize=r}returne}(),x=function(){functione(){this.strings=[]}e.prototype={get:function(e){returne>=0&&e<=390?y[e]:e-391<=this.strings.length?this.strings[e-391]:y[0]},add:function(e){this.strings.push(e)},getcount(){returnthis.strings.length}};returne}(),S=function(){functione(){this.objects=[];this.length=0}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){returnthis.objects[e]},getcount(){returnthis.objects.length}};returne}(),A=function(){functione(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)}e.prototype={setByKey:function(e,t){if(!(einthis.keyToNameMap))return!1;vara=t.length;if(0===a)return!0;for(varr=0;r<a;r++)if(isNaN(t[r])){l('Invalid CFFDict value: "'+t+'" for key "'+e+'".');return!0}vari=this.types[e];"num"!==i&&"sid"!==i&&"offset"!==i||(t=t[0]);this.values[e]=t;return!0},setByName:function(e,t){einthis.nameToKeyMap||s('Invalid dictionary name "'+e+'"');this.values[this.nameToKeyMap[e]]=t},hasName:function(e){returnthis.nameToKeyMap[e]inthis.values},getByName:function(e){einthis.nameToKeyMap||s('Invalid dictionary name "'+e+'"');vart=this.nameToKeyMap[e];returntinthis.values?this.values[t]:this.defaults[t]},removeByName:function(e){deletethis.values[this.nameToKeyMap[e]]}};e.createTables=function(e){for(vart={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},a=0,r=e.length;a<r;++a){vari=e[a],n=h(i[0])?(i[0][0]<<8)+i[0][1]:i[0];t.keyToNameMap[n]=i[1];t.nameToKeyMap[i[1]]=n;t.types[n]=i[2];t.defaults[n]=i[3];t.opcodes[n]=h(i[0])?i[0]:[i[0]];t
if(2===h){varf=l.get("Shading"),d=l.getArray("Matrix");o=oe.parseShading(f,d,this.xref,n,this.handler);e.addOp(t,o.getIR());returnPromise.resolve()}returnPromise.reject(newError("Unknown PatternType: "+h))}e.addOp(t,a);returnPromise.resolve()},getOperatorList:function(e,t,r,i,s){functiono(e){for(vart=0,a=g.savedStatesDepth;t<a;t++)i.addOp(S.restore,[])}varc=this,l=this.xref,h=Object.create(null);R(i);r=r||q.empty;varu=r.get("XObject")||q.empty,f=r.get("Pattern")||q.empty,d=newTe(s||newPe),g=newEe(e,l,d),p=newa;returnnewPromise(functione(a,s){varm=function(t){t.then(function(){try{e(a,s)}catch(e){s(e)}},s)};t.ensureNotTerminated();p.reset();for(varb,v,y,k,w={};!(b=p.check());){w.args=null;if(!g.read(w))break;varC=w.args,x=w.fn;switch(0|x){caseS.paintXObject:if(C[0].code)break;varA=C[0].name;if(!A){F("XObject must be referred to by name.");continue}if(void0!==h[A]){i.addOp(h[A].fn,h[A].args);C=null;continue}varI=u.get(A);if(I){R(G(I),"XObject should be a stream");varB=I.dict.get("Subtype");R(z(B),"XObject should have a Name subtype");if("Form"===B.name){d.save();m(c.buildFormXObject(r,I,null,i,t,d.state.clone()).then(function(){d.restore()}));return}if("Image"===B.name){c.buildPaintImageXObject(r,I,!1,i,A,h);C=null;continue}if("PS"===B.name){P("Ignored XObject subtype PS");continue}O("Unhandled XObject subtype "+B.name)}break;caseS.setFont:varT=C[1];m(c.handleSetFont(r,C,null,i,t,d.state).then(function(e){i.addDependency(e);i.addOp(S.setFont,[e,T])}));return;caseS.endInlineImage:varE=C[0].cacheKey;if(E){varD=h[E];if(void0!==D){i.addOp(D.fn,D.args);C=null;continue}}c.buildPaintImageXObject(r,C[0],!0,i,E,h);C=null;continue;caseS.showText:C[0]=c.handleText(C[0],d.state);break;caseS.showSpacedText:varU=C[0],N=[],j=U.length,H=d.state;for(v=0;v<j;++v){varX=U[v];L(X)?Array.prototype.push.apply(N,c.handleText(X,H)):M(X)&&N.push(X)}C[0]=N;x=S.showText;break;caseS.nextLineShowText:i.addOp(S.nextLine);C[0]=c.handleText(C[0],d.state);x=S.showText;break;caseS.nextLineSetSpacingShowText:i.addOp(S.nextLine);i.addOp(S.setWordSpacing,[C.shift()]);i.addOp(S.setCharSpacing,[C.shift()]);C[0]=c.handleText(C[0],d.state);x=S.showText;break;caseS.setTextRenderingMode:d.state.textRenderingMode=C[0];break;caseS.setFillColorSpace:d.state.fillColorSpace=Z.parse(C[0],l,r);continue;caseS.setStrokeColorSpace:d.state.strokeColorSpace=Z.parse(C[0],l,r);continue;caseS.setFillColor:k=d.state.fillColorSpace;C=k.getRgb(C,0);x=S.setFillRGBColor;break;caseS.setStrokeColor:k=d.state.strokeColorSpace;C=k.getRgb(C,0);x=S.setStrokeRGBColor;break;caseS.setFillGray:d.state.fillColorSpace=Z.singletons.gray;C=Z.singletons.gray.getRgb(C,0);x=S.setFillRGBColor;break;caseS.setStrokeGray:d.state.strokeColorSpace=Z.singletons.gray;C=Z.singletons.gray.getRgb(C,0);x=S.setStrokeRGBColor;break;caseS.setFillCMYKColor:d.state.fillColorSpace=Z.singletons.cmyk;C=Z.singletons.cmyk.getRgb(C,0);x=S.setFillRGBColor;break;caseS.setStrokeCMYKColor:d.state.strokeColorSpace=Z.singletons.cmyk;C=Z.singletons.cmyk.getRgb(C,0);x=S.setStrokeRGBColor;break;caseS.setFillRGBColor:d.state.fillColorSpace=Z.singletons.rgb;C=Z.singletons.rgb.getRgb(C,0);break;caseS.setStrokeRGBColor:d.state.strokeColorSpace=Z.singletons.rgb;C=Z.singletons.rgb.getRgb(C,0);break;caseS.setFillColorN:k=d.state.fillColorSpace;if("Pattern"===k.name){m(c.handleColorN(i,S.setFillColorN,C,k,f,r,t));return}C=k.getRgb(C,0);x=S.setFillRGBColor;break;caseS.setStrokeColorN:k=d.state.strokeColorSpace;if("Pattern"===k.name){m(c.handleColorN(i,S.setStrokeColorN,C,k,f,r,t));return}C=k.getRgb(C,0);x=S.setStrokeRGBColor;break;caseS.shadingFill:varV=r.get("Shading");R(V,"No shading resource found");varW=V.get(C[0].name);R(W,"No shading object found");C=[oe.parseShading(W,null,l,r,c.handler).getIR()];x=S.shadingFill;break;caseS.setGState:varK=C[0],Y=r.get("ExtGState");if(!_(Y)||!Y.has(K.name))break;varJ=Y.get(K.name);m(c.setGState(r,J,i,t,d));return;caseS.moveTo:caseS.lineTo:caseS.curveTo:caseS.curveTo2:caseS.curveTo3:caseS.closePath:caseS.rectangle:c.buildPath(i,x,C);continue;
returnp+1});a.prototype={optimize:function(e){for(vart,a=e.fnArray,i=e.argsArray,n={iCurr:0,fnArray:a,argsArray:i},s=0,o=a.length;s<o;){t=(t||r)[a[s]];if("function"==typeoft){n.iCurr=s;s=t(n);t=void0;o=n.fnArray.length}elses++}}};returna}();t.OperatorList=Re;t.PartialEvaluator=Ie},function(e,t,a){"use strict";varr=a(0),i=a(10),n=r.info,s=r.warn,o=r.error,c=r.log2,l=r.readUint16,h=r.readUint32,u=i.ArithmeticDecoder,f=function(){functione(){this.failOnCorruptedImage=!1}functiont(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}functiona(e,t){for(vara,r=e.SIZ,i=[],n=Math.ceil((r.Xsiz-r.XTOsiz)/r.XTsiz),s=Math.ceil((r.Ysiz-r.YTOsiz)/r.YTsiz),o=0;o<s;o++)for(varc=0;c<n;c++){a={};a.tx0=Math.max(r.XTOsiz+c*r.XTsiz,r.XOsiz);a.ty0=Math.max(r.YTOsiz+o*r.YTsiz,r.YOsiz);a.tx1=Math.min(r.XTOsiz+(c+1)*r.XTsiz,r.Xsiz);a.ty1=Math.min(r.YTOsiz+(o+1)*r.YTsiz,r.Ysiz);a.width=a.tx1-a.tx0;a.height=a.ty1-a.ty0;a.components=[];i.push(a)}e.tiles=i;for(varl=r.Csiz,h=0,u=l;h<u;h++)for(varf=t[h],d=0,g=i.length;d<g;d++){varp={};a=i[d];p.tcx0=Math.ceil(a.tx0/f.XRsiz);p.tcy0=Math.ceil(a.ty0/f.YRsiz);p.tcx1=Math.ceil(a.tx1/f.XRsiz);p.tcy1=Math.ceil(a.ty1/f.YRsiz);p.width=p.tcx1-p.tcx0;p.height=p.tcy1-p.tcy0;a.components[h]=p}}functionr(e,t,a){varr=t.codingStyleParameters,i={};if(r.entropyCoderWithCustomPrecincts){i.PPx=r.precinctsSizes[a].PPx;i.PPy=r.precinctsSizes[a].PPy}else{i.PPx=15;i.PPy=15}i.xcb_=a>0?Math.min(r.xcb,i.PPx-1):Math.min(r.xcb,i.PPx);i.ycb_=a>0?Math.min(r.ycb,i.PPy-1):Math.min(r.ycb,i.PPy);returni}functioni(e,t,a){varr=1<<a.PPx,i=1<<a.PPy,n=0===t.resLevel,s=1<<a.PPx+(n?0:-1),o=1<<a.PPy+(n?0:-1),c=t.trx1>t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,l=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,h=c*l;t.precinctParameters={precinctWidth:r,precinctHeight:i,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:s,precinctHeightInSubband:o}}functionf(e,t,a){varr,i,n,s,o=a.xcb_,c=a.ycb_,l=1<<o,h=1<<c,u=t.tbx0>>o,f=t.tby0>>c,d=t.tbx1+l-1>>o,g=t.tby1+h-1>>c,p=t.resolution.precinctParameters,m=[],b=[];for(i=f;i<g;i++)for(r=u;r<d;r++){n={cbx:r,cby:i,tbx0:l*r,tby0:h*i,tbx1:l*(r+1),tby1:h*(i+1)};n.tbx0_=Math.max(t.tbx0,n.tbx0);n.tby0_=Math.max(t.tby0,n.tby0);n.tbx1_=Math.min(t.tbx1,n.tbx1);n.tby1_=Math.min(t.tby1,n.tby1);varv=Math.floor((n.tbx0_-t.tbx0)/p.precinctWidthInSubband),y=Math.floor((n.tby0_-t.tby0)/p.precinctHeightInSubband);s=v+y*p.numprecinctswide;n.precinctNumber=s;n.subbandType=t.type;n.Lblock=3;if(!(n.tbx1_<=n.tbx0_||n.tby1_<=n.tby0_)){m.push(n);vark=b[s];if(void0!==k){r<k.cbxMin?k.cbxMin=r:r>k.cbxMax&&(k.cbxMax=r);i<k.cbyMin?k.cbxMin=i:i>k.cbyMax&&(k.cbyMax=i)}elseb[s]=k={cbxMin:r,cbyMin:i,cbxMax:r,cbyMax:i};n.precinct=k}}t.codeblockParameters={codeblockWidth:o,codeblockHeight:c,numcodeblockwide:d-u+1,numcodeblockhigh:g-f+1};t.codeblocks=m;t.precincts=b}functiond(e,t,a){for(varr=[],i=e.subbands,n=0,s=i.length;n<s;n++)for(varo=i[n],c=o.codeblocks,l=0,h=c.length;l<h;l++){varu=c[l];u.precinctNumber===t&&r.push(u)}return{layerNumber:a,codeblocks:r}}functiong(e){for(vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=0,c=0;c<n;c++)s=Math.max(s,r.components[c].codingStyleParameters.decompositionLevelsCount);varl=0,h=0,u=0,f=0;this.nextPacket=function(){for(;l<i;l++){for(;h<=s;h++){for(;u<n;u++){vare=r.components[u];if(!(h>e.codingStyleParameters.decompositionLevelsCount)){for(vart=e.resolutions[h],a=t.precinctParameters.numprecincts;f<a;){varc=d(t,f,l);f++;returnc}f=0}}u=0}h=0}o("JPX Error: Out of packets")}}functionp(e){for(vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=0,c=0;c<n;c++)s=Math.max(s,r.components[c].codingStyleParameters.decompositionLevelsCount);varl=0,h=0,u=0,f=0;this.nextPacket=function(){for(;l<=s;l++){for(;h<i;h++){for(;u<n;u++){vare=r.components[u];if(!(l>e.codingStyleParameters.decompositionLevelsCount)){for(vart=e.r
;returnr.promise},getPageIndex:function(e){functiont(t){vara,i=0;returnr.fetchAsync(t).then(function(r){if(F(t,e)&&!L(r,"Page")&&(!L(r)||r.has("Type")||!r.has("Contents")))thrownewError("The reference does not point to a /Page Dict.");if(!r)returnnull;d(L(r),"node must be a Dict.");a=r.getRaw("Parent");returnr.getAsync("Parent")}).then(function(e){if(!e)returnnull;d(L(e),"parent must be a Dict.");returne.getAsync("Kids")}).then(function(e){if(!e)returnnull;for(varn=[],s=!1,o=0;o<e.length;o++){varc=e[o];d(D(c),"kid must be a Ref.");if(c.num===t.num){s=!0;break}n.push(r.fetchAsync(c).then(function(e){if(e.has("Count")){vart=e.get("Count");i+=t}elsei++}))}s||m("kid ref not found in parents kids");returnPromise.all(n).then(function(){return[i,a]})})}functiona(e){returnt(e).then(function(e){if(!e)returni;vart=e[0],r=e[1];i+=t;returna(r)})}varr=this.xref,i=0;returna(e)}};e.parseDestDictionary=function(e){vart=e.destDict;if(L(t)){vara=e.resultObj;if("object"===(void0===a?"undefined":r(a))){vari,n,s=e.docBaseUrl||null,o=t.get("A");if(L(o)){varc=o.get("S").name;switch(c){case"URI":i=o.get("URI");E(i)?i="/"+i.name:w(i)&&(i=function(e){return0===e.indexOf("www.")?"http://"+e:e}(i));break;case"GoTo":n=o.get("D");break;case"Launch":case"GoToR":varl=o.get("F");L(l)?i=l.get("F")||null:w(l)&&(i=l);varh=o.get("D");if(h){E(h)&&(h=h.name);if(w(i)){varu=i.split("#")[0];w(h)?i=u+"#"+(/^\d+$/.test(h)?"nameddest=":"")+h:v(h)&&(i=u+"#"+JSON.stringify(h))}}varf=o.get("NewWindow");y(f)&&(a.newWindow=f);break;case"Named":vard=o.get("N");E(d)&&(a.action=d.name);break;case"JavaScript":varp,m=o.get("JS");q(m)?p=g(m.getBytes()):w(m)&&(p=m);if(p){varb=["app.launchURL","window.open"],k=newRegExp("^\\s*("+b.join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i"),C=k.exec(x(p));if(C&&C[2]){i=C[2];"true"===C[3]&&"app.launchURL"===C[1]&&(a.newWindow=!0);break}}default:A('Catalog_parseDestDictionary: Unrecognized link type "'+c+'".')}}elset.has("Dest")&&(n=t.get("Dest"));if(w(i)){i=function(e){try{returnS(e)}catch(t){returne}}(i);varB=I(i,s);B&&(a.url=B.href);a.unsafeUrl=i}if(n){E(n)&&(n=n.name);(w(n)||v(n))&&(a.dest=n)}}elseA('Catalog_parseDestDictionary: "resultObj" must be an object.')}elseA('Catalog_parseDestDictionary: "destDict" must be a dictionary.')};returne}(),G=function(){functione(e,t){this.stream=e;this.pdfManager=t;this.entries=[];this.xrefstms=Object.create(null);this.cache=[];this.stats={streamTypes:[],fontTypes:[]}}e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){vart;if(e){A("Indexing all PDF objects");t=this.indexObjects()}elset=this.readXRef();t.assignXref(this);this.trailer=t;vara=t.get("Encrypt");if(L(a)){varr=t.get("ID"),i=r&&r.length?r[0]:"";a.suppressEncryption=!0;this.encrypt=newU(a,i,this.pdfManager.password)}(this.root=t.get("Root"))||m("Invalid root reference")},processXRefTable:function(e){"tableState"inthis||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});vart=this.readXRefTable(e);M(t,"trailer")||m("Invalid XRef table: could not find trailer dictionary");vara=e.getObj();!L(a)&&a.dict&&(a=a.dict);L(a)||m("Invalid XRef table: could not parse trailer dictionary");deletethis.tableState;returna},readXRefTable:function(e){vart=e.lexer.stream,a=this.tableState;t.pos=a.streamPos;e.buf1=a.parserBuf1;e.buf2=a.parserBuf2;for(varr;;){if(!("firstEntryNum"ina&&"entryCount"ina)){if(M(r=e.getObj(),"trailer"))break;a.firstEntryNum=r;a.entryCount=e.getObj()}vari=a.firstEntryNum,n=a.entryCount;k(i)&&k(n)||m("Invalid XRef table: wrong types in subsection header");for(vars=a.entryNum;s<n;s++){a.streamPos=t.pos;a.entryNum=s;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;varo={};o.offset=e.getObj();o.gen=e.getObj();varc=e.getObj();M(c,"f")?o.free=!0:M(c,"n")&&(o.uncompressed=!0);k(o.offset)&&k(o.gen)&&(o.free||o.uncompressed)||m("Invalid entry in XRef subsection: "+i+", "+n);0===s&&o.free&&1===i&&(i=0);this.entries[s+i]||(this.entries[s+i]=o)}a.entryNum=0;a.streamPos=t.pos;a.pars
;c=c*g-u*p+2048>>12;u=R;R=l*d+h*f+2048>>12;l=l*f-h*d+2048>>12;h=R;k=r+u;B=r-u;w=i+h;I=i-h;C=n+l;A=n-l;x=o+c;S=o-c;k=k<16?0:k>=4080?255:k>>4;w=w<16?0:w>=4080?255:w>>4;C=C<16?0:C>=4080?255:C>>4;x=x<16?0:x>=4080?255:x>>4;S=S<16?0:S>=4080?255:S>>4;A=A<16?0:A>=4080?255:A>>4;I=I<16?0:I>=4080?255:I>>4;B=B<16?0:B>=4080?255:B>>4;O[t+E]=k;O[t+E+8]=w;O[t+E+16]=C;O[t+E+24]=x;O[t+E+32]=S;O[t+E+40]=A;O[t+E+48]=I;O[t+E+56]=B}else{R=v*k+8192>>14;R=R<-2040?0:R>=2024?255:R+2056>>4;O[t+E]=R;O[t+E+8]=R;O[t+E+16]=R;O[t+E+24]=R;O[t+E+32]=R;O[t+E+40]=R;O[t+E+48]=R;O[t+E+56]=R}}}functionc(e,t){for(varr=t.blocksPerLine,i=t.blocksPerColumn,n=newInt16Array(64),s=0;s<i;s++)for(varc=0;c<r;c++){varl=a(t,s,c);o(t,l,n)}returnt.blockData}functionl(e){returne<=0?0:e>=255?255:e}functionh(e,t,a){functionr(t){returne[t]<<8|e[t+1]}vari=e.length-1,n=a<t?a:t;if(t>=i)returnnull;vars=r(t);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:t};for(varo=r(n);!(o>=65472&&o<=65534);){if(++n>=i)returnnull;o=r(n)}return{invalid:s.toString(16),marker:o,offset:n}}varu=newUint8Array([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]),f=4017,d=799,g=3406,p=2276,m=1567,b=3784,v=5793,y=2896;e.prototype={parse:function(e){functiona(){vart=e[l]<<8|e[l+1];l+=2;returnt}varr,o,l=0,f=null,d=null,g=[],p=[],m=[],b=a();65496!==b&&s("JPEG error: SOI not found");b=a();for(;65497!==b;){varv,y,k;switch(b){case65504:case65505:case65506:case65507:case65508:case65509:case65510:case65511:case65512:case65513:case65514:case65515:case65516:case65517:case65518:case65519:case65534:varw=function(){vart=a(),r=l+t-2,i=h(e,r,l);if(i&&i.invalid){n("readDataBlock - incorrect length, next marker is: "+i.invalid);r=i.offset}vars=e.subarray(l,r);l+=s.length;returns}();65504===b&&74===w[0]&&70===w[1]&&73===w[2]&&70===w[3]&&0===w[4]&&(f={version:{major:w[5],minor:w[6]},densityUnits:w[7],xDensity:w[8]<<8|w[9],yDensity:w[10]<<8|w[11],thumbWidth:w[12],thumbHeight:w[13],thumbData:w.subarray(14,14+3*w[12]*w[13])});65518===b&&65===w[0]&&100===w[1]&&111===w[2]&&98===w[3]&&101===w[4]&&(d={version:w[5]<<8|w[6],flags0:w[7]<<8|w[8],flags1:w[9]<<8|w[10],transformCode:w[11]});break;case65499:for(varC,x=a(),S=x+l-2;l<S;){varA=e[l++],I=newUint16Array(64);if(A>>4==0)for(y=0;y<64;y++){C=u[y];I[C]=e[l++]}elseif(A>>4==1)for(y=0;y<64;y++){C=u[y];I[C]=a()}elses("JPEG error: DQT - invalid table spec");g[15&A]=I}break;case65472:case65473:case65474:r&&s("JPEG error: Only single frame JPEGs supported");a();r={};r.extended=65473===b;r.progressive=65474===b;r.precision=e[l++];r.scanLines=a();r.samplesPerLine=a();r.components=[];r.componentIds={};varB,R=e[l++],T=0,O=0;for(v=0;v<R;v++){B=e[l];varP=e[l+1]>>4,E=15&e[l+1];T<P&&(T=P);O<E&&(O=E);varM=e[l+2];k=r.components.push({h:P,v:E,quantizationId:M,quantizationTable:null});r.componentIds[B]=k-1;l+=3}r.maxH=T;r.maxV=O;!function(e){for(vart=Math.ceil(e.samplesPerLine/8/e.maxH),a=Math.ceil(e.scanLines/8/e.maxV),r=0;r<e.components.length;r++){N=e.components[r];vari=Math.ceil(Math.ceil(e.samplesPerLine/8)*N.h/e.maxH),n=Math.ceil(Math.ceil(e.scanLines/8)*N.v/e.maxV),s=t*N.h,o=a*N.v,c=64*o*(s+1);N.blockData=newInt16Array(c);N.blocksPerLine=i;N.blocksPerColumn=n}e.mcusPerLine=t;e.mcusPerColumn=a}(r);break;case65476:varL=a();for(v=2;v<L;){varD=e[l++],F=newUint8Array(16),q=0;for(y=0;y<16;y++,l++)q+=F[y]=e[l];varU=newUint8Array(q);for(y=0;y<q;y++,l++)U[y]=e[l];v+=17+q;(D>>4==0?m:p)[15&D]=t(F,U)}break;case65501:a();o=a();break;case65498:a();varN,j=e[l++],_=[];for(v=0;v<j;v++){varz=r.componentIds[e[l++]];N=r.components[z];varH=e[l++];N.huffmanTableDC=m[H>>4];N.huffmanTableAC=p[15&H];_.push(N)}varG=e[l++],X=e[l++],V=e[l++],W=i(e,l,r,_,o,G,X,V>>4,15&V);l+=W;break;case65535:255!==e[l]&&l--;break;default:if(255===e[l-3]&&e[l-2]>=192&&e[l-2]<=254){l-=3;break}s("JPEG error: unknown marker "+b.toString(16))}b=a()}this.width=r.samplesPerLine;this.height=r.scanLines;this.jfif=f;this.adobe=d;this.com