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.h;z=S.v;for(I=0;I<z;I++)for(B=0;B<_;B++)w(S,T,N,I,B)}N++}L=0;j=e[t]<<8|e[t+1];for(;0===e[t]&&t<e.length-1;){t++;j=e[t]<<8|e[t+1]}j<=65280&&a("JPEG error: marker was not found");if(!(j>=65488&&j<=65495))break;t+=2}returnt-E}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(varE=0;E<8;++E){k=r[E];w=r[E+8];C=r[E+16];x=r[E+24];S=r[E+32];A=r[E+40];I=r[E+48];B=r[E+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+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=p*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}}}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++){q=e.components[r];vari=Math.ceil(Math.ceil(e.samplesPerLine/8)*q.h/e.maxH),n=Math.ceil(Math.ceil(e.scanLines/8)*q.v/e.maxV),s=t*q.h,o=a*q.v,c=64*o*(s+1);q.blockData=newInt16Array(c);q.blocksPerLine=i;q.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=e[u++];
returnthis.stack.pop()},copy:function(e){this.stack.length+e>=t&&n("PostScript function stack overflow.");for(vara=this.stack,r=a.length-e,i=e-1;i>=0;i--,r++)a.push(a[r])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){vara,r,i,n=this.stack,s=n.length-e,o=n.length-1,c=s+(t-Math.floor(t/e)*e);for(a=s,r=o;a<r;a++,r--){i=n[a];n[a]=n[r];n[r]=i}for(a=s,r=c-1;a<r;a++,r--){i=n[a];n[a]=n[r];n[r]=i}for(a=c,r=o;a<r;a++,r--){i=n[a];n[a]=n[r];n[r]=i}}};returne}(),p=function(){functione(e){this.operators=e}e.prototype={execute:function(e){for(vart,a,r,i=newg(e),s=0,o=this.operators,l=o.length;s<l;){t=o[s++];if("number"!=typeoft)switch(t){case"jz":r=i.pop();a=i.pop();a||(s=r);break;case"j":a=i.pop();s=a;break;case"abs":a=i.pop();i.push(Math.abs(a));break;case"add":r=i.pop();a=i.pop();i.push(a+r);break;case"and":r=i.pop();a=i.pop();c(a)&&c(r)?i.push(a&&r):i.push(a&r);break;case"atan":a=i.pop();i.push(Math.atan(a));break;case"bitshift":r=i.pop();a=i.pop();a>0?i.push(a<<r):i.push(a>>r);break;case"ceiling":a=i.pop();i.push(Math.ceil(a));break;case"copy":a=i.pop();i.copy(a);break;case"cos":a=i.pop();i.push(Math.cos(a));break;case"cvi":a=0|i.pop();i.push(a);break;case"cvr":break;case"div":r=i.pop();a=i.pop();i.push(a/r);break;case"dup":i.copy(1);break;case"eq":r=i.pop();a=i.pop();i.push(a===r);break;case"exch":i.roll(2,1);break;case"exp":r=i.pop();a=i.pop();i.push(Math.pow(a,r));break;case"false":i.push(!1);break;case"floor":a=i.pop();i.push(Math.floor(a));break;case"ge":r=i.pop();a=i.pop();i.push(a>=r);break;case"gt":r=i.pop();a=i.pop();i.push(a>r);break;case"idiv":r=i.pop();a=i.pop();i.push(a/r|0);break;case"index":a=i.pop();i.index(a);break;case"le":r=i.pop();a=i.pop();i.push(a<=r);break;case"ln":a=i.pop();i.push(Math.log(a));break;case"log":a=i.pop();i.push(Math.log(a)/Math.LN10);break;case"lt":r=i.pop();a=i.pop();i.push(a<r);break;case"mod":r=i.pop();a=i.pop();i.push(a%r);break;case"mul":r=i.pop();a=i.pop();i.push(a*r);break;case"ne":r=i.pop();a=i.pop();i.push(a!==r);break;case"neg":a=i.pop();i.push(-a);break;case"not":a=i.pop();c(a)?i.push(!a):i.push(~a);break;case"or":r=i.pop();a=i.pop();c(a)&&c(r)?i.push(a||r):i.push(a|r);break;case"pop":i.pop();break;case"roll":r=i.pop();a=i.pop();i.roll(a,r);break;case"round":a=i.pop();i.push(Math.round(a));break;case"sin":a=i.pop();i.push(Math.sin(a));break;case"sqrt":a=i.pop();i.push(Math.sqrt(a));break;case"sub":r=i.pop();a=i.pop();i.push(a-r);break;case"true":i.push(!0);break;case"truncate":a=i.pop();a=a<0?Math.ceil(a):Math.floor(a);i.push(a);break;case"xor":r=i.pop();a=i.pop();c(a)&&c(r)?i.push(a!==r):i.push(a^r);break;default:n("Unknown operator "+t)}elsei.push(t)}returni.stack}};returne}(),m=function(){functione(e){this.type=e}functiont(t,a,r){e.call(this,"args");this.index=t;this.min=a;this.max=r}functiona(t){e.call(this,"literal");this.number=t;this.min=t;this.max=t}functionr(t,a,r,i,n){e.call(this,"binary");this.op=t;this.arg1=a;this.arg2=r;this.min=i;this.max=n}functioni(t,a){e.call(this,"max");this.arg=t;this.min=t.min;this.max=a}functionn(t,a,r){e.call(this,"var");this.index=t;this.min=a;this.max=r}functions(t,a){e.call(this,"definition");this.variable=t;this.arg=a}functiono(){this.parts=[]}functionc(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?newa(e.number+t.number):newr("+",e,t,e.min+t.min,e.max+t.max)}functionl(e,t){if("literal"===t.type){if(0===t.number)returnnewa(0);if(1===t.number)returne;if("literal"===e.type)returnnewa(e.number*t.number)}if("literal"===e.type){if(0===e.number)returnnewa(0);if(1===e.number)returnt}vari=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),n=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);returnnewr("*",e,t,i,n)}functionh(e,t){if("literal"===t.type){if(0===t.number)returne;if("literal"===e.type)returnnewa(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:newr("-",e,t,e.min-t.max,e.max-t.min)}fu
},contains:function(e){returnl(e)&&e<=65535},forEach:function(e){for(vart=0;t<=65535;t++)e(t,t)},charCodeOf:function(e){returnl(e)&&e<=65535?e:-1},getMap:function(){for(vare=newArray(65536),t=0;t<=65535;t++)e[t]=t;returne},readCharCode:y.prototype.readCharCode,getlength(){return65536},getisIdentityCMap(){c("should not access .isIdentityCMap")}};returne}(),w=function(){functione(e){returnnewPromise(function(t,a){varr=newXMLHttpRequest;r.open("GET",e,!0);r.responseType="arraybuffer";r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&(!r.response||200!==r.status&&0!==r.status?a(newError("Unable to get binary cMap at: "+e)):t(newUint8Array(r.response)))};r.send(null)})}functiont(e,t){for(vara=0,r=0;r<=t;r++)a=a<<8|e[r];returna>>>0}functiona(e,t){return1===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))}functionr(e,t,a){for(varr=0,i=a;i>=0;i--){r+=e[i]+t[i];e[i]=255&r;r>>=8}}functioni(e,t){for(vara=1,r=t;r>=0&&a>0;r--){a+=e[r];e[r]=255&a;a>>=8}}functionn(e){this.buffer=e;this.pos=0;this.end=e.length;this.tmpBuf=newUint8Array(u)}functiono(o,l,u){returne(o).then(function(e){varo=newn(e),f=o.readByte();l.vertical=!!(1&f);for(vard,g,p=null,m=newUint8Array(h),b=newUint8Array(h),v=newUint8Array(h),y=newUint8Array(h),k=newUint8Array(h);(g=o.readByte())>=0;){varw=g>>5;if(7!==w){varC=!!(16&g),x=15&g;s(x+1<=h);varS,A=1,I=o.readNumber();switch(w){case0:o.readHex(m,x);o.readHexNumber(b,x);r(b,m,x);l.addCodespaceRange(x+1,t(m,x),t(b,x));for(S=1;S<I;S++){i(b,x);o.readHexNumber(m,x);r(m,b,x);o.readHexNumber(b,x);r(b,m,x);l.addCodespaceRange(x+1,t(m,x),t(b,x))}break;case1:o.readHex(m,x);o.readHexNumber(b,x);r(b,m,x);d=o.readNumber();for(S=1;S<I;S++){i(b,x);o.readHexNumber(m,x);r(m,b,x);o.readHexNumber(b,x);r(b,m,x);d=o.readNumber()}break;case2:o.readHex(v,x);d=o.readNumber();l.mapOne(t(v,x),d);for(S=1;S<I;S++){i(v,x);if(!C){o.readHexNumber(k,x);r(v,k,x)}d=o.readSigned()+(d+1);l.mapOne(t(v,x),d)}break;case3:o.readHex(m,x);o.readHexNumber(b,x);r(b,m,x);d=o.readNumber();l.mapCidRange(t(m,x),t(b,x),d);for(S=1;S<I;S++){i(b,x);if(C)m.set(b);else{o.readHexNumber(m,x);r(m,b,x)}o.readHexNumber(b,x);r(b,m,x);d=o.readNumber();l.mapCidRange(t(m,x),t(b,x),d)}break;case4:o.readHex(v,A);o.readHex(y,x);l.mapOne(t(v,A),a(y,x));for(S=1;S<I;S++){i(v,A);if(!C){o.readHexNumber(k,A);r(v,k,A)}i(y,x);o.readHexSigned(k,x);r(y,k,x);l.mapOne(t(v,A),a(y,x))}break;case5:o.readHex(m,A);o.readHexNumber(b,A);r(b,m,A);o.readHex(y,x);l.mapBfRange(t(m,A),t(b,A),a(y,x));for(S=1;S<I;S++){i(b,A);if(C)m.set(b);else{o.readHexNumber(m,A);r(m,b,A)}o.readHexNumber(b,A);r(b,m,A);o.readHex(y,x);l.mapBfRange(t(m,A),t(b,A),a(y,x))}break;default:c("Unknown type: "+w)}}elseswitch(31&g){case0:o.readString();break;case1:p=o.readString()}}returnp?u(p):l})}functionl(){}varh=16,u=19;n.prototype={readByte:function(){returnthis.pos>=this.end?-1:this.buffer[this.pos++]},readNumber:function(){vare,t=0;do{vara=this.readByte();a<0&&c("unexpected EOF in bcmap");e=!(128&a);t=t<<7|127&a}while(!e);returnt},readSigned:function(){vare=this.readNumber();return1&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){vara,r=this.tmpBuf,i=0;do{varn=this.readByte();n<0&&c("unexpected EOF in bcmap");a=!(128&n);r[i++]=127&n}while(!a);for(vars=t,o=0,l=0;s>=0;){for(;l<8&&r.length>0;){o=r[--i]<<l|o;l+=7}e[s]=255&o;s--;o>>=8;l-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(vara=1&e[t]?255:0,r=0,i=0;i<=t;i++){r=(1&r)<<8|e[i];e[i]=r>>1^a}},readString:function(){for(vare=this.readNumber(),t="",a=0;a<e;a++)t+=String.fromCharCode(this.readNumber());returnt}};l.prototype={read:o};returnl}(),C=function(){functione(e){for(vart=0,a=0;a<e.length;a++)t=t<<8|e.charCodeAt(a);returnt>>>0}functiont(e){h(e)||c("Malformed CMap: expected string.")}functiona(e){l(e)||c("Malformed CMap: expected int.")}functionr(a,r){for(;;){vari=r.getObj();if(f(i))break;if(g(i,"endbfchar"))r
"CIDFontType0"===h&&(c(t)?f="CIDFontType0":o(t)?h=f="OpenType":f="CIDFontType0C");varp;switch(h){case"MMType1":w("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";varm="Type1C"===f||"CIDFontType0C"===f?newye(t,a):newve(e,t,a);u(a);p=this.convert(e,m,a);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";p=this.checkAndRepair(e,t,a);if(this.isOpenType){u(a);h="OpenType"}break;default:k("Font "+h+" is not supported")}this.data=p;this.fontType=d(h,f);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;varv=e.replace(/[,_]/g,"-"),y=N(),C=_(),x=!!y[v]||!(!C[v]||!y[C[v]]);v=y[v]||C[v]||v;this.bold=v.search(/bold/gi)!==-1;this.italic=v.search(/oblique/gi)!==-1||v.search(/italic/gi)!==-1;this.black=e.search(/Black/g)!==-1;this.remeasure=Object.keys(this.widths).length>0;if(x&&"CIDFontType2"===h&&0===a.cidEncoding.indexOf("Identity-")){varS=z(),A=[];for(rinS)A[+r]=S[r];if(/Arial-?Black/i.test(e)){varI=H();for(rinI)A[+r]=I[r]}varB=this.toUnicodeinstanceofde;B||this.toUnicode.forEach(function(e,t){A[+e]=t});this.toFontChar=A;this.toUnicode=newfe(A)}elseif(/Symbol/i.test(v))this.toFontChar=l(U,E(),a.differences);elseif(/Dingbats/i.test(v)){/Wingdings/i.test(e)&&R("Non-embedded Wingdings font, falling back to ZapfDingbats.");this.toFontChar=l(j,M(),a.differences)}elseif(x)this.toFontChar=l(a.defaultEncoding,E(),a.differences);else{g=E();this.toUnicode.forEach(function(e,t){if(!this.composite){i=a.differences[e]||a.defaultEncoding[e];n=W(i,g);n!==-1&&(t=n)}this.toFontChar[e]=t}.bind(this))}this.loadedName=v.split("-")[0];this.loading=!1;this.fontType=d(h,f)}}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"===y(t)}functionc(e){vart=e.peekBytes(2);return37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}functionl(e,t,a){for(varr,i=[],n=0,s=e.length;n<s;n++){r=W(e[n],t);r!==-1&&(i[n]=r)}for(varoina){r=W(a[o],t);r!==-1&&(i[+o]=r)}returni}functionh(e){for(vart=0,a=pe.length-1;t<a;){varr=t+a+1>>1;e<pe[r]?a=r-1:t=r}return!(1&t)}functionp(e,t){vara=t.toUnicode,r=!!(t.flags&le.Symbolic),i=t.toUnicodeinstanceofde,n=Object.create(null),s=[],o=[],c=ie;for(varline){l|=0;varu=e[l],f=l,d=!1;if(!i&&a.has(l)){d=!0;varg=a.get(f);1===g.length&&(f=g.charCodeAt(0))}if((void0!==o[f]||h(f)||r&&!d)&&c<=ne)do{f=c++;if(se&&61440===f){f=61472;c=f+1}}while(void0!==o[f]&&c<=ne);n[f]=u;s[l]=f;o[f]=!0}return{toFontChar:s,charCodeToGlyphId:n,nextAvailableFontCharCode:c}}functionC(e,t){vara=[];for(varrine)e[r]>=t||a.push({fontCharCode:0|r,glyphId:e[r]});a.sort(function(e,t){returne.fontCharCode-t.fontCharCode});for(vari=[],n=a.length,s=0;s<n;){varo=a[s].fontCharCode,c=[a[s].glyphId];++s;for(varl=o;s<n&&l+1===a[s].fontCharCode;){c.push(a[s].glyphId);++l;++s;if(65535===l)break}i.push([o,l,c])}returni}functionx(e,t){vara,r,n,s,o=C(e,t),c=o[o.length-1][1]>65535?2:1,l="\0\0"+i(c)+"\0\0"+B(4+8*c);for(a=o.length-1;a>=0&&!(o[a][0]<=65535);--a);varh=a+1;o[a][0]<65535&&65535===o[a][1]&&(o[a][1]=65534);varu,f,d,g,p=o[a][1]<65535?1:0,m=h+p,b=ge.getSearchParams(m,2),v="",y="",k="",w="",x="",S=0;for(a=0,r=h;a<r;a++){u=o[a];f=u[0];d=u[1];v+=i(f);y+=i(d);g=u[2];varA=!0;for(n=1,s=g.length;n<s;++n)if(g[n]!==g[n-1]+1){A=!1;break}if(A){varI=g[0];k+=i(I-f&65535);w+=i(0)}else{varR=2*(m-a)+2*S;S+=d-f+1;k+=i(0);w+=i(R);for(n=0,s=g.length;n<s;++n)x+=i(g[n])}}if(p>0){y+="ÿÿ";v+="ÿÿ";k+="\0";w+="\0\
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,E=a.isRefsEqual,M=a.isStream,L=r.CipherTransformFactory,D=i.Lexer,F=i.Parser,U=n.ChunkedStream,j=s.ColorSpace,q=function(){functione(e,t,a){this.pdfManager=e;this.xref=t;this.catDict=t.getCatalogObj();this.fontCache=newB;h(O(this.catDict),"catalog object is not a dictionary");this.pageFactory=a;this.pagePromises=[]}e.prototype={getmetadata(){vare=this.catDict.getRaw("Metadata");if(!P(e))returny(this,"metadata",null);vart,a=!!this.xref.encrypt&&this.xref.encrypt.encryptMetadata,r=this.xref.fetch(e,!a);if(r&&O(r.dict)){vari=r.dict.get("Type"),n=r.dict.get("Subtype");if(R(i,"Metadata")&&R(n,"XML"))try{t=w(u(r.getBytes()))}catch(e){g("Skipping invalid metadata.")}}returny(this,"metadata",t)},gettoplevelPagesDict(){vare=this.catDict.get("Pages");h(O(e),"invalid top-level pages dictionary");returny(this,"toplevelPagesDict",e)},getdocumentOutline(){vare=null;try{e=this.readDocumentOutline()}catch(e){if(einstanceofc)throwe;C("Unable to read document outline")}returny(this,"documentOutline",e)},readDocumentOutline:function(){vart=this.catDict.get("Outlines");if(!O(t))returnnull;t=t.getRaw("First");if(!P(t))returnnull;vara={items:[]},r=[{obj:t,parent:a}],i=newI;i.p
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"inI)){vare={},t={log:function(){vare=Array.prototype.slice.call(arguments);I.postMessage({targetName:"main",action:"console_log",data:e})},error:function(){vare=Array.prototype.slice.call(arguments);I.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||y("Unknown timer name "+t);this.log("Timer:",t,Date.now()-a)}};I.console=t}vara=newl("worker","main",self);T.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.UnknownErrorException,g=t.XRefParseException,p=t.arrayByteLength,m=t.arraysToBytes,b=t.assert,v=t.createPromiseCapability,y=t.error,k=t.info,w=t.warn,C=t.setVerbosityLevel,x=a.Ref,S=r.LocalPdfManager,A=r.NetworkPdfManager,I=t.globalScope,B=function(){functione(e){this.name=e;this.terminated=!1;this._capability=v()}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}(),R=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){this._stream=e;this._begin=t;this._end=a;this._queuedChunk=null;this._requests=[];this._done=!1;this.onProgress=null}e.prototype={_onReceiveData:function(e){if(void0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e.chunk):this._queuedChunks.push(e.chunk);else{vart=this._rangeReaders.some(function(t){if(t._begin!==e.begin)return!1;t._enqueue(e.chunk);return!0});b(t)}},_onProgress:function(e){if(this._rangeReaders.length>0){vart=this._rangeReaders[0];t.onProgress&&t.onProgress({loaded:e.loaded})}},_removeRangeReader:function(e){vart=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)},getFullReader:function(){b(!this._fullRequestReader);vare=this._queuedChunks;this._queuedChunks=null;returnnewt(this,e)},getRangeReader:function(e,t){varr=newa(this,e,t);this._msgHandler.send("RequestDataRange",{begin:e,end:t});this._rangeReaders.push(r);returnr},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);vart=this._rangeReaders.slice(0);t.forEach(function(t){t.cancel(e)})}};t.prototype={_enqueue:function(e){if(!this._done)if(this._requests.length>0){vart=this._requests.shift();t.resolve({value:e,done:!1})}elsethis._queuedChunks.push(e)},getheadersReady(){returnthis._headersReady},getisRangeSupported(){returnthis._stream._isRangeSupported},getisStreamingSupported(){returnthis._stream._isStreamingSupported},getcontentLength(){returnthis._stream._contentLength},read:function(){if(this._queuedChunks.length>0){vare=this