e.constructor=e;returne}(),oe=function(){functione(e,t){this.begin=e;this.end=t;this.message="Missing data ["+e+", "+t+")"}e.prototype=newError;e.prototype.name="MissingDataException";e.constructor=e;returne}(),ce=function(){functione(e){this.message=e}e.prototype=newError;e.prototype.name="XRefParseException";e.constructor=e;returne}(),le=/\x00/g,he=function(){functione(e,t){this.buffer=e;this.byteLength=e.length;this.length=void0===t?this.byteLength>>2:t;a(this.length)}functiont(e){return{get:function(){vart=this.buffer,a=e<<2;return(t[a]|t[a+1]<<8|t[a+2]<<16|t[a+3]<<24)>>>0},set:function(t){vara=this.buffer,r=e<<2;a[r]=255&t;a[r+1]=t>>8&255;a[r+2]=t>>16&255;a[r+3]=t>>>24&255}}}functiona(a){for(;r<a;){Object.defineProperty(e.prototype,r,t(r));r++}}e.prototype=Object.create(null);varr=0;returne}();e.Uint32ArrayView=he;varue=[1,0,0,1,0,0],fe=function(){functione(){}vart=["rgb(",0,",",0,",",0,")"];e.makeCssRgb=function(e,a,r){t[1]=e;t[3]=a;t[5]=r;returnt.join("")};e.transform=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]]};e.applyTransform=function(e,t){vara=e[0]*t[0]+e[1]*t[2]+t[4],r=e[0]*t[1]+e[1]*t[3]+t[5];return[a,r]};e.applyInverseTransform=function(e,t){vara=t[0]*t[3]-t[1]*t[2],r=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/a,i=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/a;return[r,i]};e.getAxialAlignedBoundingBox=function(t,a){varr=e.applyTransform(t,a),i=e.applyTransform(t.slice(2,4),a),n=e.applyTransform([t[0],t[3]],a),s=e.applyTransform([t[2],t[1]],a);return[Math.min(r[0],i[0],n[0],s[0]),Math.min(r[1],i[1],n[1],s[1]),Math.max(r[0],i[0],n[0],s[0]),Math.max(r[1],i[1],n[1],s[1])]};e.inverseTransform=function(e){vart=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]};e.apply3dTransform=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]]};e.singularValueDecompose2dScale=function(e){vart=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],n=e[2]*t[1]+e[3]*t[3],s=(a+n)/2,o=Math.sqrt((a+n)*(a+n)-4*(a*n-i*r))/2,c=s+o||1,l=s-o||1;return[Math.sqrt(c),Math.sqrt(l)]};e.normalizeRect=function(e){vart=e.slice(0);if(e[0]>e[2]){t[0]=e[2];t[2]=e[0]}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1]}returnt};e.intersect=function(t,a){functionr(e,t){returne-t}vari=[t[0],t[2],a[0],a[2]].sort(r),n=[t[1],t[3],a[1],a[3]].sort(r),s=[];t=e.normalizeRect(t);a=e.normalizeRect(a);if(!(i[0]===t[0]&&i[1]===a[0]||i[0]===a[0]&&i[1]===t[0]))return!1;s[0]=i[1];s[2]=i[2];if(!(n[0]===t[1]&&n[1]===a[1]||n[0]===a[1]&&n[1]===t[1]))return!1;s[1]=n[1];s[3]=n[2];returns};e.sign=function(e){returne<0?-1:1};vara=["","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"];e.toRoman=function(e,t){c(P(e)&&e>0,"The number should be a positive integer.");for(varr,i=[];e>=1e3;){e-=1e3;i.push("M")}r=e/100|0;e%=100;i.push(a[r]);r=e/10|0;e%=10;i.push(a[10+r]);i.push(a[20+e]);varn=i.join("");returnt?n.toLowerCase():n};e.appendToArray=function(e,t){Array.prototype.push.apply(e,t)};e.prependToArray=function(e,t){Array.prototype.unshift.apply(e,t)};e.extendObj=function(e,t){for(varaint)e[a]=t[a]};e.getInheritableProperty=function(e,t,a){for(;e&&!e.has(t);)e=e.get("Parent");returne?a?e.getArray(t):e.get(t):null};e.inherit=function(e,t,a){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;for(varrina)e.prototype[r]=a[r]};e.loadScript=function(e,t){vara=document.createElement("script"),r=!1;a.setAttribute("src",e);t&&(a.onload=function(){r||t();r=!0});document.getElementsByTagName("head")[0].appendChild(a)};returne}(),de=function(){functione(e,t,a,r,i,n){this.viewBox=e;this.scale=t;this.rotation=a;this.offsetX=r;this.offsetY=i;vars,o,c,l,h=(e[2]+e[0])/2,u=(e[3]+e[1])/2;a%=360;a=a<0?a+360:a;switch(a){case180:s=-1;o=0;c=0;l=1;break;case90:s=0;o=1;c=1;l=0;break;case270:s=0;o=-1;c=-1;l=0;bre
t.header=a.obj;t.names=this.parseNameIndex(r.obj);t.strings=this.parseStringIndex(n.obj);t.topDict=c;t.globalSubrIndex=s.obj;this.parsePrivateDict(t.topDict);t.isCIDFont=c.hasName("ROS");varl=c.getByName("CharStrings"),h=this.parseIndex(l).obj,u=c.getByName("FontMatrix");u&&(e.fontMatrix=u);varf=c.getByName("FontBBox");if(f){e.ascent=f[3];e.descent=f[1];e.ascentScaled=!0}vard,g;if(t.isCIDFont){for(varp=this.parseIndex(c.getByName("FDArray")).obj,m=0,b=p.count;m<b;++m){varv=p.get(m),y=this.createDict(A,this.parseDict(v),t.strings);this.parsePrivateDict(y);t.fdArray.push(y)}g=null;d=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!0);t.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),h.count)}else{d=this.parseCharsets(c.getByName("charset"),h.count,t.strings,!1);g=this.parseEncoding(c.getByName("Encoding"),e,t.strings,d.charset)}t.charset=d;t.encoding=g;varw=this.parseCharStrings(h,c.privateDict.subrsIndex,s.obj,t.fdSelect,t.fdArray);t.charStrings=w.charStrings;t.seacs=w.seacs;t.widths=w.widths;returnt},parseHeader:function(){for(vare=this.bytes,t=e.length,a=0;a<t&&1!==e[a];)++a;if(a>=t)i("Invalid CFF header");elseif(0!==a){n("cff data is shifted");e=e.subarray(a);this.bytes=e}varr=e[0],s=e[1],o=e[2],c=e[3],l=neww(r,s,o,c);return{obj:l,endPos:o}},parseDict:function(e){functiont(){vart=e[r++];if(30===t)returna();if(28===t){t=e[r++];t=(t<<24|e[r++]<<16)>>16;returnt}if(29===t){t=e[r++];t=t<<8|e[r++];t=t<<8|e[r++];t=t<<8|e[r++];returnt}if(t>=32&&t<=246)returnt-139;if(t>=247&&t<=250)return256*(t-247)+e[r++]+108;if(t>=251&&t<=254)return-(256*(t-251))-e[r++]-108;o('CFFParser_parseDict: "'+t+'" is a reserved command.');returnNaN}functiona(){for(vart="",a=15,i=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],n=e.length;r<n;){vars=e[r++],o=s>>4,c=15&s;if(o===a)break;t+=i[o];if(c===a)break;t+=i[c]}returnparseFloat(t)}varr=0,i=[],n=[];r=0;for(vars=e.length;r<s;){varc=e[r];if(c<=21){12===c&&(c=c<<8|e[++r]);n.push([c,i]);i=[];++r}elsei.push(t())}returnn},parseIndex:function(e){vart,a,r=newx,i=this.bytes,n=i[e++]<<8|i[e++],s=[],o=e;if(0!==n){varc=i[e++],l=e+(n+1)*c-1;for(t=0,a=n+1;t<a;++t){for(varh=0,u=0;u<c;++u){h<<=8;h+=i[e++]}s.push(l+h)}o=s[n]}for(t=0,a=s.length-1;t<a;++t){varf=s[t],d=s[t+1];r.add(i.subarray(f,d))}return{obj:r,endPos:o}},parseNameIndex:function(e){for(vart=[],a=0,r=e.count;a<r;++a){for(vari=e.get(a),n=Math.min(i.length,127),o=[],c=0;c<n;++c){varl=i[c];(0!==c||0!==l)&&(l<33||l>126||91===l||93===l||40===l||41===l||123===l||125===l||60===l||62===l||47===l||37===l||35===l)?o[c]=95:o[c]=l}t.push(s(o))}returnt},parseStringIndex:function(e){for(vart=newC,a=0,r=e.count;a<r;++a){vari=e.get(a);t.add(s(i))}returnt},createDict:function(e,t,a){for(varr=newe(a),i=0,n=t.length;i<n;++i){vars=t[i],o=s[0],c=s[1];r.setByKey(o,c)}returnr},parseCharString:function(e,r,i,n){if(e.callDepth>b)return!1;for(vars=e.stackSize,c=e.stack,l=r.length,h=0;h<l;){varu=r[h++],f=null;if(12===u){vard=r[h++];if(0===d){r[h-2]=139;r[h-1]=22;s=0}elsef=a[d]}elseif(28===u){c[s]=(r[h]<<24|r[h+1]<<16)>>16;h+=2;s++}elseif(14===u){if(s>=4){s-=4;if(this.seacAnalysisEnabled){e.seac=c.slice(s,s+4);return!1}}f=t[u]}elseif(u>=32&&u<=246){c[s]=u-139;s++}elseif(u>=247&&u<=254){c[s]=u<251?(u-247<<8)+r[h]+108:-(u-251<<8)-r[h]-108;h++;s++}elseif(255===u){c[s]=(r[h]<<24|r[h+1]<<16|r[h+2]<<8|r[h+3])/65536;h+=4;s++}elseif(19===u||20===u){e.hints+=s>>1;h+=e.hints+7>>3;s%=2;f=t[u]}else{if(10===u||29===u){varg;g=10===u?i:n;if(!g){f=t[u];o("Missing subrsIndex for "+f.id);return!1}varp=32768;g.count<1240?p=107:g.count<33900&&(p=1131);varm=c[--s]+p;if(m<0||m>=g.count){f=t[u];o("Out of bounds subrIndex for "+f.id);return!1}e.stackSize=s;e.callDepth++;varv=this.parseCharString(e,g.get(m),i,n);if(!v)return!1;e.callDepth--;s=e.stackSize;continue}if(11===u){e.stackSize=s;return!0}f=t[u]}if(f){f.stem&&(e.hints+=s>>1);if("min"inf&&!e.undefStack&&s<f.min){o("Not enough parameters for "+f.id+"; actual: "+s+", expected: "+f.min);return!1}if(e.firstStackClearing&&f.stackClearing){e.firstStackClearing=!1;
S=n[A];_=S.h;z=S.v;for(I=0;I<z;I++)for(B=0;B<_;B++)w(S,T,N,I,B)}N++}L=0;q=e[t]<<8|e[t+1];for(;0===e[t]&&t<e.length-1;){t++;q=e[t]<<8|e[t+1]}q<=65280&&a("JPEG error: marker was not found");if(!(q>=65488&&q<=65495))break;t+=2}returnt-M}functionn(e,t,r){vari,n,s,o,c,b,v,y,k,w,C,x,S,A,I,B,R,T=e.quantizationTable,O=e.blockData;T||a("JPEG error: missing required Quantization Table.");for(varP=0;P<64;P+=8){k=O[t+P];w=O[t+P+1];C=O[t+P+2];x=O[t+P+3];S=O[t+P+4];A=O[t+P+5];I=O[t+P+6];B=O[t+P+7];k*=T[P];if(0!==(w|C|x|S|A|I|B)){w*=T[P+1];C*=T[P+2];x*=T[P+3];S*=T[P+4];A*=T[P+5];I*=T[P+6];B*=T[P+7];i=p*k+128>>8;n=p*S+128>>8;s=C;o=I;c=m*(w-B)+128>>8;y=m*(w+B)+128>>8;b=x<<4;v=A<<4;i=i+n+1>>1;n=i-n;R=s*g+o*d+128>>8;s=s*d-o*g+128>>8;o=R;c=c+v+1>>1;v=c-v;y=y+b+1>>1;b=y-b;i=i+o+1>>1;o=i-o;n=n+s+1>>1;s=n-s;R=c*f+y*u+2048>>12;c=c*u-y*f+2048>>12;y=R;R=b*h+v*l+2048>>12;b=b*l-v*h+2048>>12;v=R;r[P]=i+y;r[P+7]=i-y;r[P+1]=n+v;r[P+6]=n-v;r[P+2]=s+b;r[P+5]=s-b;r[P+3]=o+c;r[P+4]=o-c}else{R=p*k+512>>10;r[P]=R;r[P+1]=R;r[P+2]=R;r[P+3]=R;r[P+4]=R;r[P+5]=R;r[P+6]=R;r[P+7]=R}}for(varM=0;M<8;++M){k=r[M];w=r[M+8];C=r[M+16];x=r[M+24];S=r[M+32];A=r[M+40];I=r[M+48];B=r[M+56];if(0!==(w|C|x|S|A|I|B)){i=p*k+2048>>12;n=p*S+2048>>12;s=C;o=I;c=m*(w-B)+2048>>12;y=m*(w+B)+2048>>12;b=x;v=A;i=(i+n+1>>1)+4112;n=i-n;R=s*g+o*d+2048>>12;s=s*d-o*g+2048>>12;o=R;c=c+v+1>>1;v=c-v;y=y+b+1>>1;b=y-b;i=i+o+1>>1;o=i-o;n=n+s+1>>1;s=n-s;R=c*f+y*u+2048>>12;c=c*u-y*f+2048>>12;y=R;R=b*h+v*l+2048>>12;b=b*l-v*h+2048>>12;v=R;k=i+y;B=i-y;w=n+v;I=n-v;C=s+b;A=s-b;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+M]=k;O[t+M+8]=w;O[t+M+16]=C;O[t+M+24]=x;O[t+M+32]=S;O[t+M+40]=A;O[t+M+48]=I;O[t+M+56]=B}else{R=p*k+8192>>14;R=R<-2040?0:R>=2024?255:R+2056>>4;O[t+M]=R;O[t+M+8]=R;O[t+M+16]=R;O[t+M+24]=R;O[t+M+32]=R;O[t+M+40]=R;O[t+M+48]=R;O[t+M+56]=R}}}functions(e,t){for(vara=t.blocksPerLine,i=t.blocksPerColumn,s=newInt16Array(64),o=0;o<i;o++)for(varc=0;c<a;c++){varl=r(t,o,c);n(t,l,s)}returnt.blockData}functiono(e){returne<=0?0:e>=255?255:e}varc=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]),l=4017,h=799,u=3406,f=2276,d=1567,g=3784,p=5793,m=2896;e.prototype={parse:function(e){functionr(){vart=e[u]<<8|e[u+1];u+=2;returnt}functionn(){vart=r(),a=e.subarray(u,u+t-2);u+=a.length;returna}functiono(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++){j=e.components[r];vari=Math.ceil(Math.ceil(e.samplesPerLine/8)*j.h/e.maxH),n=Math.ceil(Math.ceil(e.scanLines/8)*j.v/e.maxV),s=t*j.h,o=a*j.v,c=64*o*(s+1);j.blockData=newInt16Array(c);j.blocksPerLine=i;j.blocksPerColumn=n}e.mcusPerLine=t;e.mcusPerColumn=a}varl,h,u=0,f=null,d=null,g=[],p=[],m=[],b=r();65496!==b&&a("JPEG error: SOI not found");b=r();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=n();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=r(),S=x+u-2;u<S;){varA=e[u++],I=newUint16Array(64);if(A>>4===0)for(y=0;y<64;y++){C=c[y];I[C]=e[u++]}elseif(A>>4===1)for(y=0;y<64;y++){C=c[y];I[C]=r()}elsea("JPEG error: DQT - invalid table spec");g[15&A]=I}break;case65472:case65473:case65474:l&&a("JPEG error: Only single frame JPEGs supported");r();l={};l.extended=65473===b;l.progressive=65474===b;l.precision=
}if("RunLengthDecode"===t||"RL"===t){i[s.RL]=!0;returnnewM(e,a)}if("JBIG2Decode"===t){i[s.JBIG]=!0;returnnewI(e,a,e.dict,r)}g('filter "'+t+'" not supported yet');returne}catch(t){if(tinstanceofn)throwt;g('Invalid stream: "'+t+'"');returnnewO(e)}}};returne}(),F=function(){functione(e,t){this.stream=e;this.nextChar();this.strBuf=[];this.knownCommands=t}functiont(e){returne>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?(15&e)+9:-1}vara=[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];e.prototype={nextChar:function(){returnthis.currentChar=this.stream.getByte()},peekChar:function(){returnthis.stream.peekByte()},getNumber:function(){vare=this.currentChar,t=!1,a=0,r=1;if(45===e){r=-1;e=this.nextChar();45===e&&(e=this.nextChar())}else43===e&&(e=this.nextChar());if(46===e){a=10;e=this.nextChar()}if(e<48||e>57){c("Invalid number: "+String.fromCharCode(e));return0}for(vari=e-48,n=0,s=1;(e=this.nextChar())>=0;)if(48<=e&&e<=57){varo=e-48;if(t)n=10*n+o;else{0!==a&&(a*=10);i=10*i+o}}elseif(46===e){if(0!==a)break;a=1}elseif(45===e)g("Badly formatted number");else{if(69!==e&&101!==e)break;e=this.peekChar();if(43===e||45===e){s=45===e?-1:1;this.nextChar()}elseif(e<48||e>57)break;t=!0}0!==a&&(i/=a);t&&(i*=Math.pow(10,s*n));returnr*i},getString:function(){vare=1,t=!1,a=this.strBuf;a.length=0;for(varr=this.nextChar();;){vari=!1;switch(0|r){case-1:g("Unterminated string");t=!0;break;case40:++e;a.push("(");break;case41:if(0===--e){this.nextChar();t=!0}elsea.push(")");break;case92:r=this.nextChar();switch(r){case-1:g("Unterminated string");t=!0;break;case110:a.push("\n");break;case114:a.push("\r");break;case116:a.push("\t");break;case98:a.push("\b");break;case102:a.push("\f");break;case92:case40:case41:a.push(String.fromCharCode(r));break;case48:case49:case50:case51:case52:case53:case54:case55:varn=15&r;r=this.nextChar();i=!0;if(r>=48&&r<=55){n=(n<<3)+(15&r);r=this.nextChar();if(r>=48&&r<=55){i=!1;n=(n<<3)+(15&r)}}a.push(String.fromCharCode(n));break;case13:10===this.peekChar()&&this.nextChar();break;case10:break;default:a.push(String.fromCharCode(r))}break;default:a.push(String.fromCharCode(r))}if(t)break;i||(r=this.nextChar())}returna.join("")},getName:function(){vare,r,i=this.strBuf;i.length=0;for(;(e=this.nextChar())>=0&&!a[e];)if(35===e){e=this.nextChar();if(a[e]){g("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");i.push("#");break}varn=t(e);if(n!==-1){r=e;e=this.nextChar();vars=t(e);if(s===-1){g("Lexer_getName: Illegal digit ("+String.fromCharCode(e)+") in hexadecimal number.");i.push("#",String.fromCharCode(r));if(a[e])break;i.push(String.fromCharCode(e));continue}i.push(String.fromCharCode(n<<4|s))}elsei.push("#",String.fromCharCode(e))}elsei.push(String.fromCharCode(e));i.length>127&&g("name token is longer than allowed by the spec: "+i.length);returnb.get(i.join(""))},getHexString:function(){vare=this.strBuf;e.length=0;for(varr,i,n=this.currentChar,s=!0;;){if(n<0){g("Unterminated hex string");break}if(62===n){this.nextChar();break}if(1!==a[n]){if(s){r=t(n);if(r===-1){g('Ignoring invalid character "'+n+'" in hex string');n=this.nextChar();continue}}else{i=t(n);if(i===-1){g('Ignoring invalid character "'+n+'" in hex string');n=this.nextChar();continue}e.push(String.fromCharCode(r<<4|i))}s=!s;n=this.nextChar()}elsen=this.nextChar()}returne.join("")},getObj:function(){for(vare=!1,t=this.currentChar;;){if(t<0)returnE;if(e)10!==t&&13!==t||(e=!1);elseif(37===t)e=!0;elseif(1!==a[t])break;t=this.nextChar()}switch(0|t){case48:case49:case50:case51:case52:case53:case54:case55:case56:case
p=i;for(l=0;l<g;l++){d=c[l];v[p]=255&d.charCodeAt(0);v[p+1]=255&d.charCodeAt(1);v[p+2]=255&d.charCodeAt(2);v[p+3]=255&d.charCodeAt(3);vark=0;for(h=m[l],u=m[l+1];h<u;h+=4){varw=A(v,h);k=k+w>>>0}t(v,p+4,k);t(v,p+8,m[l]);t(v,p+12,o[d].length);p+=n}returnv},addTable:function(e,t){if(einthis.tables)thrownewError("Table "+e+" already exists");this.tables[e]=t}};returnr}(),pe=newInt32Array([0,32,127,161,173,174,1536,1920,2208,4256,6016,6144,7168,7248,8192,8208,8209,8210,8232,8240,8287,8304,9676,9677,12288,12289,43616,43648,65520,65536]),me=function(){functione(e,t,a){varr,i,n;this.name=e;this.loadedName=a.loadedName;this.isType3Font=a.isType3Font;this.sizes=[];this.missingFile=!1;this.glyphCache=Object.create(null);varh=e.split("+");h=h.length>1?h[1]:h[0];h=h.split(/[-,_]/g)[0];this.isSerifFont=!!(a.flags&le.Serif);this.isSymbolicFont=!!(a.flags&le.Symbolic);this.isMonospace=!!(a.flags&le.FixedPitch);varf=a.type,g=a.subtype;this.type=f;this.fallbackName=this.isMonospace?"monospace":this.isSerifFont?"serif":"sans-serif";this.differences=a.differences;this.widths=a.widths;this.defaultWidth=a.defaultWidth;this.composite=a.composite;this.wideChars=a.wideChars;this.cMap=a.cMap;this.ascent=a.ascent/oe;this.descent=a.descent/oe;this.fontMatrix=a.fontMatrix;this.bbox=a.bbox;this.toUnicode=a.toUnicode;this.toFontChar=[];if("Type3"!==a.type){this.cidEncoding=a.cidEncoding;this.vertical=a.vertical;if(this.vertical){this.vmetrics=a.vmetrics;this.defaultVMetrics=a.defaultVMetrics}varp;if(t&&!t.isEmpty){"Type1C"===g&&("Type1"!==f&&"MMType1"!==f?s(t)?g="TrueType":f="Type1":o(t)&&(f=g="OpenType"));"CIDFontType0C"===g&&"CIDFontType0"!==f&&(f="CIDFontType0");"OpenType"===g&&(f="OpenType");"CIDFontType0"===f&&(c(t)?g="CIDFontType0":o(t)?f=g="OpenType":g="CIDFontType0C");varm;switch(f){case"MMType1":w("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";varv="Type1C"===g||"CIDFontType0C"===g?newye(t,a):newve(e,t,a);u(a);m=this.convert(e,v,a);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";m=this.checkAndRepair(e,t,a);if(this.isOpenType){u(a);f="OpenType"}break;default:k("Font "+f+" is not supported")}this.data=m;this.fontType=d(f,g);this.fontMatrix=a.fontMatrix;this.widths=a.widths;this.defaultWidth=a.defaultWidth;this.toUnicode=a.toUnicode;this.encoding=a.baseEncoding;this.seacMap=a.seacMap;this.loading=!0}else{t&&R('Font file is empty in "'+e+'" ('+this.loadedName+")");this.missingFile=!0;vary=e.replace(/[,_]/g,"-"),C=N(),x=_(),S=!!C[y]||!(!x[y]||!C[x[y]]);y=C[y]||x[y]||y;this.bold=y.search(/bold/gi)!==-1;this.italic=y.search(/oblique/gi)!==-1||y.search(/italic/gi)!==-1;this.black=e.search(/Black/g)!==-1;this.remeasure=Object.keys(this.widths).length>0;if(S&&"CIDFontType2"===f&&0===a.cidEncoding.indexOf("Identity-")){varA=z(),I=[];for(rinA)I[+r]=A[r];if(/Arial-?Black/i.test(e)){varB=H();for(rinB)I[+r]=B[r]}varT=this.toUnicodeinstanceofde;T||this.toUnicode.forEach(function(e,t){I[+e]=t});this.toFontChar=I;this.toUnicode=newfe(I)}elseif(/Symbol/i.test(y))this.toFontChar=l(U,M(),a.differences);elseif(/Dingbats/i.test(y)){/Wingdings/i.test(e)&&R("Non-embedded Wingdings font, falling back to ZapfDingbats.");this.toFontChar=l(q,E(),a.differences)}elseif(S)this.toFontChar=l(a.defaultEncoding,M(),a.differences);else{p=M();this.toUnicode.forEach(function(e,t){if(!this.composite){i=a.differences[e]||a.defaultEncoding[e];n=W(i,p);n!==-1&&(t=n)}this.toFontChar[e]=t}.bind(this))}this.loadedName=y.split("-")[0];this.loading=!1;this.fontType=d(f,g)}}else{for(r=0;r<256;r++)this.toFontChar[r]=this.differences[r]||a.defaultEncoding[r];this.fontType=b.TYPE3}}functiont(e,t){return(e<<8)+t}functiona(e,t){vara=(e<<8)+t;return32768&a?a-65536:a}functionr(e,t,a,r){return(e<<24)+(t<<16)+(a<<8)+r}functioni(e){returnString.fromCharCode(e>>8&255,255&e)}functionn(e){e=e>32767?32767:e<-32768?-32768:e;returnString.fromCharCode(e>>8&255,255&e)}functions(e){vart=e.peekBytes(4);return65536===A(t,0)}functiono(e){vart=e.peekBytes(4);return"OTTO
}(this,function(e,t,a,r){functioni(e){vart;if("object"!=typeofe)return!1;if(l(e))t=e;else{if(!h(e))return!1;t=e.dict}returnt.has("FunctionType")}varn=t.error,s=t.info,o=t.isArray,c=t.isBool,l=a.isDict,h=a.isStream,u=r.PostScriptLexer,f=r.PostScriptParser,d=function(){vare=0,t=2,a=3,r=4;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"),s=r[i];s||n("Unknown type of function");returns.call(this,t,a,e)},fromIR:function(r){vari=r[0];switch(i){casee:returnthis.constructSampledFromIR(r);caset:returnthis.constructInterpolatedFromIR(r);casea:returnthis.constructStichedFromIR(r);default:returnthis.constructPostScriptFromIR(r)}},parse:function(e,t){vara=this.getIR(e,t);returnthis.fromIR(a)},parseArray:function(e,t){if(!o(t))returnthis.parse(e,t);for(vara=[],r=0,i=t.length;r<i;r++){varn=e.fetchIfRef(t[r]);a.push(d.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(t,a){functionr(e){for(vart=e.length,a=[],r=0,i=0;i<t;i+=2){a[r]=[e[i],e[i+1]];++r}returna}vari=a.getArray("Domain"),o=a.getArray("Range");i&&o||n("No domain or range");varc=i.length/2,l=o.length/2;i=r(i);o=r(o);varh=a.get("Size"),u=a.get("BitsPerSample"),f=a.get("Order")||1;1!==f&&s("No support for cubic spline interpolation: "+f);vard=a.getArray("Encode");if(!d){d=[];for(varg=0;g<c;++g){d.push(0);d.push(h[g]-1)}}d=r(d);varp=a.getArray("Decode");p=p?r(p):o;varm=this.getSampleArray(h,l,u,t);return[e,c,i,d,p,m,h,l,Math.pow(2,u)-1,o]},constructSampledFromIR:function(e){functiont(e,t,a,r,i){returnr+(e-t)*((i-r)/(a-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,O=T+y;for(o=0;o<m;o++)if(o&k){b[o]*=R;v[o]+=O}else{b[o]*=B;v[o]+=T}y*=A;k<<=1}for(o=0;o<g;++o){varP=0;for(s=0;s<m;s++)P+=f[v[s]+o]*b[s];P=t(P,0,1,u[o][0],u[o][1]);i[n+o]=Math.min(Math.max(P,p[o][0]),p[o][1])}}},constructInterpolated:function(e,a){varr=a.getArray("C0")||[0],i=a.getArray("C1")||[1],s=a.get("N");o(r)&&o(i)||n("Illegal dictionary for interpolated function");for(varc=r.length,l=[],h=0;h<c;++h)l.push(i[h]-r[h]);return[t,r,l,s]},constructInterpolatedFromIR:function(e){vart=e[1],a=e[2],r=e[3],i=a.length;returnfunction(e,n,s,o){for(varc=1===r?e[n]:Math.pow(e[n],r),l=0;l<i;++l)s[o+l]=t[l]+c*a[l]}},constructStiched:function(e,t,r){vari=t.getArray("Domain");i||n("No domain");vars=i.length/2;1!==s&&n("Bad domain for stiched function");for(varo=t.get("Functions"),c=[],l=0,h=o.length;l<h;++l)c.push(d.getIR(r,r.fetchIfRef(o[l])));varu=t.getArray("Bounds"),f=t.getArray("Encode");return[a,i,u,f,c]},constructStichedFromIR:function(e){for(vart=e[1],a=e[2],r=e[3],i=e[4],n=[],s=newFloat32Array(1),o=0,c=i.length;o<c;o++)n.push(d.fromIR(i[o]));returnfunction(e,i,o,c){for(varl=function(e,t,a){e>a?e=a:e<t&&(e=t);returne},h=l(e[i],t[0],t[1]),u=0,f=a.length;u<f&&!(h<a[u]);++u);vard=t[0];u>0&&(d=a[u-1]);varg=t[1];u<a.length&&(g=a[u]);varp=r[2*u],m=r[2*u+1];s[0]=d===g?p:p+(h-d)*(m-p)/(g-d);n[u](s,0,o,c)}},constructPostScript:function(e,t,a){vari=t.getArray("Domain"),s=t.getArray("Range");i||n("No domain.");s||n("No range.");varo=newu(e),c=newf(o),l=c.parse();return[r,i,s,l]},constructPostScriptFromIR:function(e){vart=e[1],a=e[2],r=e[3],i=(newm).compile(r,t,a);if(i)returnnewFunction("src","srcOffset","dest","destOffset",i);s("Unable to compile PS function");varn=a.length>>1,o=t.length>>1,c=newp(r),l=Object.create(null),h=8192
e[l]=t(e[l],s[h],o[h],c);l++}}elsefor(a=0,r=e.length;a<r;a++)e[a]=+!e[a]},getComponents:function(e){vart=this.bpc;if(8===t)returne;vara,r,i=this.width,n=this.height,s=this.numComps,o=i*n*s,c=0,l=t<=8?newUint8Array(o):t<=16?newUint16Array(o):newUint32Array(o),h=i*s,u=(1<<t)-1,f=0;if(1===t)for(vard,g,p,m=0;m<n;m++){g=f+(h&-8);p=f+h;for(;f<g;){r=e[c++];l[f]=r>>7&1;l[f+1]=r>>6&1;l[f+2]=r>>5&1;l[f+3]=r>>4&1;l[f+4]=r>>3&1;l[f+5]=r>>2&1;l[f+6]=r>>1&1;l[f+7]=1&r;f+=8}if(f<p){r=e[c++];d=128;for(;f<p;){l[f++]=+!!(r&d);d>>=1}}}else{varb=0;r=0;for(f=0,a=o;f<a;++f){if(f%h===0){r=0;b=0}for(;b<t;){r=r<<8|e[c++];b+=8}varv=b-t,y=r>>v;l[f]=y<0?0:y>u?u:y;r&=(1<<v)-1;b=v}}returnl},fillOpacity:function(e,t,i,n,s){varo,l,u,f,d,g,p=this.smask,m=this.mask;if(p){l=p.width;u=p.height;o=newUint8Array(l*u);p.fillGrayBuffer(o);l===t&&u===i||(o=a(o,p.bpc,l,u,t,i))}elseif(m)if(minstanceofr){l=m.width;u=m.height;o=newUint8Array(l*u);m.numComps=1;m.fillGrayBuffer(o);for(f=0,d=l*u;f<d;++f)o[f]=255-o[f];l===t&&u===i||(o=a(o,m.bpc,l,u,t,i))}elseif(h(m)){o=newUint8Array(t*i);varb=this.numComps;for(f=0,d=t*i;f<d;++f){varv=0,y=f*b;for(g=0;g<b;++g){vark=s[y+g],w=2*g;if(k<m[w]||k>m[w+1]){v=255;break}}o[f]=v}}elsec("Unknown mask format.");if(o)for(f=0,g=3,d=t*n;f<d;++f,g+=4)e[g]=o[f];elsefor(f=0,g=3,d=t*n;f<d;++f,g+=4)e[g]=255},undoPreblend:function(e,t,a){varr=this.smask&&this.smask.matte;if(r)for(vari,n,s,o=this.colorSpace.getRgb(r,0),c=o[0],l=o[1],h=o[2],u=t*a*4,f=0;f<u;f+=4){vard=e[f+3];if(0!==d){varg=255/d;i=(e[f]-c)*g+c;n=(e[f+1]-l)*g+l;s=(e[f+2]-h)*g+h;e[f]=i<=0?0:i>=255?255:0|i;e[f+1]=n<=0?0:n>=255?255:0|n;e[f+2]=s<=0?0:s>=255?255:0|s}else{e[f]=255;e[f+1]=255;e[f+2]=255}}},createImageData:function(e){vart,a=this.drawWidth,r=this.drawHeight,i={width:a,height:r},n=this.numComps,c=this.width,l=this.height,h=this.bpc,u=c*n*h+7>>3;if(!e){varf;"DeviceGray"===this.colorSpace.name&&1===h?f=s.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==h||this.needsDecode||(f=s.RGB_24BPP);if(f&&!this.smask&&!this.mask&&a===c&&r===l){i.kind=f;t=this.getImageBytes(l*u);if(this.imageinstanceofp)i.data=t;else{vard=newUint8Array(t.length);d.set(t);i.data=d}if(this.needsDecode){o(f===s.GRAYSCALE_1BPP);for(varg=i.data,b=0,v=g.length;b<v;b++)g[b]^=255}returni}if(this.imageinstanceofm&&!this.smask&&!this.mask&&("DeviceGray"===this.colorSpace.name||"DeviceRGB"===this.colorSpace.name||"DeviceCMYK"===this.colorSpace.name)){i.kind=s.RGB_24BPP;i.data=this.getImageBytes(l*u,a,r,!0);returni}}t=this.getImageBytes(l*u);vary,k,w=0|t.length/u*r/l,C=this.getComponents(t);if(e||this.smask||this.mask){i.kind=s.RGBA_32BPP;i.data=newUint8Array(a*r*4);y=1;k=!0;this.fillOpacity(i.data,a,r,w,C)}else{i.kind=s.RGB_24BPP;i.data=newUint8Array(a*r*3);y=0;k=!1}this.needsDecode&&this.decodeBuffer(C);this.colorSpace.fillRgb(i.data,c,l,a,r,w,h,C,y);k&&this.undoPreblend(i.data,a,w);returni},fillGrayBuffer:function(e){vart=this.numComps;1!==t&&c("Reading gray scale from a color image: "+t);vara,r,i=this.width,n=this.height,s=this.bpc,o=i*t*s+7>>3,l=this.getImageBytes(n*o),h=this.getComponents(l);if(1!==s){this.needsDecode&&this.decodeBuffer(h);r=i*n;varu=255/((1<<s)-1);for(a=0;a<r;++a)e[a]=u*h[a]|0}else{r=i*n;if(this.needsDecode)for(a=0;a<r;++a)e[a]=h[a]-1&255;elsefor(a=0;a<r;++a)e[a]=255&-h[a]}},getImageBytes:function(e,t,a,r){this.image.reset();this.image.drawWidth=t||this.width;this.image.drawHeight=a||this.height;this.image.forceRGB=!!r;returnthis.image.getBytes(e)}};returnr}();e.PDFImage=v});!function(e,t){t(e.pdfjsCoreObj={},e.pdfjsSharedUtil,e.pdfjsCorePrimitives,e.pdfjsCoreCrypto,e.pdfjsCoreParser,e.pdfjsCoreChunkedStream,e.pdfjsCoreColorSpace)}(this,function(e,t,a,r,i,n,s){varo=t.InvalidPDFException,c=t.MissingDataException,l=t.XRefParseException,h=t.assert,u=t.bytesToString,f=t.createPromiseCapability,d=t.error,g=t.info,p=t.isArray,m=t.isBool,b=t.isInt,v=t.isString,y=t.shadow,k=t.stringToPDFString,w=t.stringToUTF8String,C=t.warn,x=t.createValidAbsoluteUrl,S=t.Util,A=a.Ref,I=a.RefSet,B=a.RefSetCache,R=a.isName,T=a.isCmd,O=a.isDict,P=a.isRef,M=a.isR
l[r++]=h[2]}e.colors=l;varu=e.figures;for(t=0,a=u.length;t<a;t++){varf=u[t],d=f.coords,g=f.colors;for(r=0,i=d.length;r<i;r++){d[r]*=2;g[r]*=3}}}functionc(c,u,f,b){l(d(c),"Mesh data is not a stream");varv=c.dict;this.matrix=u;this.shadingType=v.get("ShadingType");this.type="Pattern";this.bbox=v.getArray("BBox");vary=v.get("ColorSpace","CS");y=p.parse(y,f,b);this.cs=y;this.background=v.has("Background")?y.getRgb(v.get("Background"),0):null;vark=v.get("Function"),w=k?g.parseArray(f,k):null;this.coords=[];this.colors=[];this.figures=[];varC={bitsPerCoordinate:v.get("BitsPerCoordinate"),bitsPerComponent:v.get("BitsPerComponent"),bitsPerFlag:v.get("BitsPerFlag"),decode:v.getArray("Decode"),colorFn:w,colorSpace:y,numComps:w?1:y.numComps},x=newe(c,C),S=!1;switch(this.shadingType){casem.FREE_FORM_MESH:t(this,x);break;casem.LATTICE_FORM_MESH:varA=0|v.get("VerticesPerRow");l(A>=2,"Invalid VerticesPerRow");a(this,x,A);break;casem.COONS_PATCH_MESH:i(this,x);S=!0;break;casem.TENSOR_PATCH_MESH:n(this,x);S=!0;break;default:h("Unsupported mesh type.")}if(S){s(this);for(varI=0,B=this.figures.length;I<B;I++)r(this,I)}s(this);o(this)}e.prototype={gethasData(){if(this.stream.end)returnthis.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;vare=this.stream.getByte();if(e<0)return!1;this.buffer=e;this.bufferLength=8;return!0},readBits:function(e){vart=this.buffer,a=this.bufferLength;if(32===e){if(0===a)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();varr=this.stream.getByte();this.buffer=r&(1<<a)-1;return(t<<8-a|(255&r)>>a)>>>0}if(8===e&&0===a)returnthis.stream.getByte();for(;a<e;){t=t<<8|this.stream.getByte();a+=8}a-=e;this.bufferLength=a;this.buffer=t&(1<<a)-1;returnt>>a},align:function(){this.buffer=0;this.bufferLength=0},readFlag:function(){returnthis.readBits(this.context.bitsPerFlag)},readCoordinate:function(){vare=this.context.bitsPerCoordinate,t=this.readBits(e),a=this.readBits(e),r=this.context.decode,i=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*i*(r[1]-r[0])+r[0],a*i*(r[3]-r[2])+r[2]]},readComponents:function(){for(vare=this.context.numComps,t=this.context.bitsPerComponent,a=t<32?1/((1<<t)-1):2.3283064365386963e-10,r=this.context.decode,i=this.tmpCompsBuf,n=0,s=4;n<e;n++,s+=2){varo=this.readBits(t);i[n]=o*a*(r[s+1]-r[s])+r[s]}varc=this.tmpCsCompsBuf;this.context.colorFn&&this.context.colorFn(i,0,c,0);returnthis.context.colorSpace.getRgb(c,0)}};varu=3,f=20,b=20,v=function(){functione(e){for(vart=[],a=0;a<=e;a++){varr=a/e,i=1-r;t.push(newFloat32Array([i*i*i,3*r*i*i,3*r*r*i,r*r*r]))}returnt}vart=[];returnfunction(a){t[a]||(t[a]=e(a));returnt[a]}}();c.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}};returnc}();v.Dummy=function(){functione(){this.type="Pattern"}e.prototype={getIR:function(){return["Dummy"]}};returne}();e.Pattern=b;e.getTilingPatternIR=n});!function(e,t){t(e.pdfjsCoreEvaluator={},e.pdfjsSharedUtil,e.pdfjsCorePrimitives,e.pdfjsCoreStream,e.pdfjsCoreParser,e.pdfjsCoreImage,e.pdfjsCoreColorSpace,e.pdfjsCoreMurmurHash3,e.pdfjsCoreFonts,e.pdfjsCoreFunction,e.pdfjsCorePattern,e.pdfjsCoreCMap,e.pdfjsCoreMetrics,e.pdfjsCoreBidi,e.pdfjsCoreEncodings,e.pdfjsCoreStandardFonts,e.pdfjsCoreUnicode,e.pdfjsCoreGlyphList)}(this,function(e,t,a,r,i,n,s,o,c,l,h,u,f,d,g,p,m,b){varv=t.FONT_IDENTITY_MATRIX,y=t.IDENTITY_MATRIX,k=t.UNSUPPORTED_FEATURES,w=t.ImageKind,C=t.OPS,x=t.TextRenderingMode,S=t.Util,A=t.assert,I=t.createPromiseCapability,B=t.error,R=t.info,T=t.isArray,O=t.isNum,P=t.isString,M=t.getLookupTableFactory,E=t.warn,L=a.Dict,D=a.Name,F=a.isCmd,U=a.isDict,q=a.isName,j=a.isRef,N=a.isStream,_=r.DecodeStream,z=r.JpegStream,H=r.Stream,G=i.Lexer,X=i.Parser,W=i.isEOF,V=n.PDFImage,K=s.ColorSpace,Y=o.MurmurHash3_64,J=c.ErrorFont,Z=c.FontFlags,Q=c.Font,$=c.IdentityToUnicodeMap,ee=c.ToUnicodeMap,te=c.getFontType,ae=l.isPDFFunction,re=l.PDFFunction,i
vari=s.get(t),n=newAe;returne.getOperatorList(i,r,o,n).then(function(){l[t]=n.getIR();a.addDependencies(n.dependencies)},function(e){E('Type3 font resource "'+t+'" is not available');vara=newAe;l[t]=a.getIR()})}.bind(this,c[h]));this.type3Loaded=n.then(function(){i.charProcOperatorList=l});returnthis.type3Loaded}};returne}(),Ae=function(){functione(e){for(vart=[],a=e.fnArray,r=e.argsArray,i=0,n=e.length;i<n;i++)switch(a[i]){caseC.paintInlineImageXObject:caseC.paintInlineImageXObjectGroup:caseC.paintImageMaskXObject:vars=r[i][0];s.cached||t.push(s.data.buffer)}returnt}functiont(e,t,a){this.messageHandler=t;this.fnArray=[];this.argsArray=[];this.dependencies=Object.create(null);this._totalLength=0;this.pageIndex=a;this.intent=e}vara=1e3,r=a-5;t.prototype={getlength(){returnthis.argsArray.length},gettotalLength(){returnthis._totalLength+this.length},addOp:function(e,t){this.fnArray.push(e);this.argsArray.push(t);this.messageHandler&&(this.fnArray.length>=a?this.flush():this.fnArray.length>=r&&(e===C.restore||e===C.endText)&&this.flush())},addDependency:function(e){if(!(einthis.dependencies)){this.dependencies[e]=!0;this.addOp(C.dependency,[e])}},addDependencies:function(e){for(vartine)this.addDependency(t)},addOpList:function(e){S.extendObj(this.dependencies,e.dependencies);for(vart=0,a=e.length;t<a;t++)this.addOp(e.fnArray[t],e.argsArray[t])},getIR:function(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},flush:function(t){"oplist"!==this.intent&&(newOe).optimize(this);vara=e(this),r=this.length;this._totalLength+=r;this.messageHandler.send("RenderPageChunk",{operatorList:{fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,length:r},pageIndex:this.pageIndex,intent:this.intent},a);this.dependencies=Object.create(null);this.fnArray.length=0;this.argsArray.length=0}};returnt}(),Ie=function(){functione(e){this.state=e;this.stateStack=[]}e.prototype={save:function(){vare=this.state;this.stateStack.push(this.state);this.state=e.clone()},restore:function(){vare=this.stateStack.pop();e&&(this.state=e)},transform:function(e){this.state.ctm=S.transform(this.state.ctm,e)}};returne}(),Be=function(){functione(){this.ctm=newFloat32Array(y);this.fontName=null;this.fontSize=0;this.font=null;this.fontMatrix=v;this.textMatrix=y.slice();this.textLineMatrix=y.slice();this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0}e.prototype={setTextMatrix:function(e,t,a,r,i,n){vars=this.textMatrix;s[0]=e;s[1]=t;s[2]=a;s[3]=r;s[4]=i;s[5]=n},setTextLineMatrix:function(e,t,a,r,i,n){vars=this.textLineMatrix;s[0]=e;s[1]=t;s[2]=a;s[3]=r;s[4]=i;s[5]=n},translateTextMatrix:function(e,t){vara=this.textMatrix;a[4]=a[0]*e+a[2]*t+a[4];a[5]=a[1]*e+a[3]*t+a[5]},translateTextLineMatrix:function(e,t){vara=this.textLineMatrix;a[4]=a[0]*e+a[2]*t+a[4];a[5]=a[1]*e+a[3]*t+a[5]},calcTextLineMatrixAdvance:function(e,t,a,r,i,n){vars=this.font;if(!s)returnnull;varo=this.textLineMatrix;if(e!==o[0]||t!==o[1]||a!==o[2]||r!==o[3])returnnull;varc=i-o[4],l=n-o[5];if(s.vertical&&0!==c||!s.vertical&&0!==l)returnnull;varh,u,f=e*r-t*a;if(s.vertical){h=-l*a/f;u=l*e/f}else{h=c*r/f;u=-c*t/f}return{width:h,height:u,value:s.vertical?u:h}},calcRenderMatrix:function(e){vart=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];returnS.transform(e,S.transform(this.textMatrix,t))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading);this.textMatrix=this.textLineMatrix.slice()},clone:function(){vare=Object.create(this);e.textMatrix=this.textMatrix.slice();e.textLineMatrix=this.textLineMatrix.slice();e.fontMatrix=this.fontMatrix.slice();returne}};returne}(),Re=function(){functione(){this.ctm=newFloat32Array(y);this.font=null;this.textRenderingMode=x.FILL;this.fillColorSpace=K.singletons.gray;this.strokeColorSpace=K.singletons.gray}e.prototype={clone:function(){returnObject.create(this)}};returne}(),Te=function(){functione(e,a,r){this.opMap=t();this.parser=newX(newG(e,this.opMap),!1,a);this.stateManager=r;this.nonProcessedArgs=[]}vart=M(funct
returnthis.pdfDocument.cleanup()},ensure:function(e,t,a){returnnewc},requestRange:function(e,t){returnnewc},requestLoadedStream:function(){returnnewc},sendProgressiveData:function(e){returnnewc},updatePassword:function(e){this.pdfDocument.xref.password=this.password=e;this._passwordChangedCapability&&this._passwordChangedCapability.resolve()},passwordChanged:function(){this._passwordChangedCapability=h();returnthis._passwordChangedCapability.promise},terminate:function(){returnnewc}};returne}(),m=function(){functione(e,t,a,r,i){this._docId=e;this._docBaseUrl=i;this.evaluatorOptions=r;varn=newf(t);this.pdfDocument=newg(this,n,a);this._loadedStreamCapability=h();this._loadedStreamCapability.resolve(n)}u.inherit(e,p,{ensure:function(e,t,a){returnnewPromise(function(r,i){try{varn,s=e[t];n="function"==typeofs?s.apply(e,a):s;r(n)}catch(e){i(e)}})},requestRange:function(e,t){returnPromise.resolve()},requestLoadedStream:function(){},onLoadedStream:function(){returnthis._loadedStreamCapability.promise},terminate:function(){}});returne}(),b=function(){functione(e,t,a,r,i){this._docId=e;this._docBaseUrl=i;this.msgHandler=a.msgHandler;this.evaluatorOptions=r;varn={msgHandler:a.msgHandler,url:a.url,length:a.length,disableAutoFetch:a.disableAutoFetch,rangeChunkSize:a.rangeChunkSize};this.streamManager=newd(t,n);this.pdfDocument=newg(this,this.streamManager.getStream(),a.password)}u.inherit(e,p,{ensure:function(e,t,a){varr=this;returnnewPromise(function(i,n){functions(){try{varo,c=e[t];o="function"==typeofc?c.apply(e,a):c;i(o)}catch(e){if(!(einstanceofl)){n(e);return}r.streamManager.requestRange(e.begin,e.end).then(s,n)}}s()})},requestRange:function(e,t){returnthis.streamManager.requestRange(e,t)},requestLoadedStream:function(){this.streamManager.requestAllChunks()},sendProgressiveData:function(e){this.streamManager.onReceiveData({chunk:e})},onLoadedStream:function(){returnthis.streamManager.onLoadedStream()},terminate:function(){this.streamManager.abort()}});returne}();e.LocalPdfManager=m;e.NetworkPdfManager=b});!function(e,t){t(e.pdfjsCoreWorker={},e.pdfjsSharedUtil,e.pdfjsCorePrimitives,e.pdfjsCorePdfManager)}(this,function(e,t,a,r){functioni(e){s=e}functionn(){if(!("console"inB)){vare={},t={log:function(){vare=Array.prototype.slice.call(arguments);B.postMessage({targetName:"main",action:"console_log",data:e})},error:function(){vare=Array.prototype.slice.call(arguments);B.postMessage({targetName:"main",action:"console_error",data:e});throw"pdf.js execution error"},time:function(t){e[t]=Date.now()},timeEnd:function(t){vara=e[t];a||k("Unknown timer name "+t);this.log("Timer:",t,Date.now()-a)}};B.console=t}vara=newl("worker","main",self);O.setup(a,self);a.send("ready",null)}vars,o=t.UNSUPPORTED_FEATURES,c=t.InvalidPDFException,l=t.MessageHandler,h=t.MissingPDFException,u=t.UnexpectedResponseException,f=t.PasswordException,d=t.PasswordResponses,g=t.UnknownErrorException,p=t.XRefParseException,m=t.arrayByteLength,b=t.arraysToBytes,v=t.assert,y=t.createPromiseCapability,k=t.error,w=t.info,C=t.warn,x=t.setVerbosityLevel,S=a.Ref,A=r.LocalPdfManager,I=r.NetworkPdfManager,B=t.globalScope,R=function(){functione(e){this.name=e;this.terminated=!1;this._capability=y()}e.prototype={getfinished(){returnthis._capability.promise},finish:function(){this._capability.resolve()},terminate:function(){this.terminated=!0},ensureNotTerminated:function(){if(this.terminated)thrownewError("Worker task was terminated")}};returne}(),T=function(){functione(e,t){this._queuedChunks=[];vara=e.initialData;a&&a.length>0&&this._queuedChunks.push(a);this._msgHandler=t;this._isRangeSupported=!e.disableRange;this._isStreamingSupported=!e.disableStream;this._contentLength=e.length;this._fullRequestReader=null;this._rangeReaders=[];t.on("OnDataRange",this._onReceiveData.bind(this));t.on("OnDataProgress",this._onProgress.bind(this))}functiont(e,t){this._stream=e;this._done=!1;this._queuedChunks=t||[];this._requests=[];this._headersReady=Promise.resolve();e._fullRequestReader=this;this.onProgress=null}functiona(e,t,a)