this.end=t,this.message="Missing data ["+e+", "+t+")"}returne.prototype=newError,e.prototype.name="MissingDataException",e.constructor=e,e}(),le=function(){functione(e){this.message=e}returne.prototype=newError,e.prototype.name="XRefParseException",e.constructor=e,e}(),he=/\x00/g,ue=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}();t.Uint32ArrayView=ue;varfe=[1,0,0,1,0,0],de=function(){functione(){}vart=["rgb(",0,",",0,",",0,")"];e.makeCssRgb=function(e,a,r){returnt[1]=e,t[3]=a,t[5]=r,t.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);returne[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},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=[];returnt=e.normalizeRect(t),a=e.normalizeRect(a),(i[0]===t[0]&&i[1]===a[0]||i[0]===a[0]&&i[1]===t[0])&&(s[0]=i[1],s[2]=i[2],(n[0]===t[1]&&n[1]===a[1]||n[0]===a[1]&&n[1]===t[1])&&(s[1]=n[1],s[3]=n[2],s))},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"];returne.toRoman=function(e,t){l(E(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)},e}(),ge=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;switch(a%=360,a=a<0?a+360: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;break;default:s=1,o=0,c=0,l=-1}n&&(c=-c,l=-l);varf,d,g,p;0===s?(f=Math.abs(u-e[1])*t+r,d=Math.abs(h-
u&&(e.fontMatrix=u);varf=c.getByName("FontBBox");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)}elsed=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);returnt.charStrings=w.charStrings,t.seacs=w.seacs,t.widths=w.widths,t},parseHeader:function(){for(vare=this.bytes,t=e.length,a=0;a<t&&1!==e[a];)++a;a>=t?i("Invalid CFF header"):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++];return30===t?a():28===t?(t=e[r++],t=(t<<24|e[r++]<<16)>>16):29===t?(t=e[r++],t=t<<8|e[r++],t=t<<8|e[r++],t=t<<8|e[r++]):t>=32&&t<=246?t-139:t>=247&&t<=250?256*(t-247)+e[r++]+108:t>=251&&t<=254?-(256*(t-251))-e[r++]-108:(o('CFFParser_parseDict: "'+t+'" is a reserved command.'),NaN)}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;if(t+=i[o],c===a)break;t+=i[c]}returnparseFloat(t)}varr=0,i=[],n=[];r=0;for(vars=e.length;r<s;){varc=e[r];c<=21?(12===c&&(c=c<<8|e[++r]),n.push([c,i]),i=[],++r):i.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++];0===d?(r[h-2]=139,r[h-1]=22,s=0):f=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,this.seacAnalysisEnabled))returne.seac=c.slice(s,s+4),!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;if(g=10===u?i:n,!g)returnf=t[u],o("Missing subrsIndex for "+f.id),!1;varp=32768;g.count<1240?p=107:g.count<33900&&(p=1131);varm=c[--s]+p;if(m<0||m>=g.count)returnf=t[u],o("Out of bounds subrIndex for "+f.id),!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)returne.stackSize=s,!0;f=t[u]}if(f){if(f.stem&&(e.hints+=s>>1),"min"inf&&!e.undefStack&&s<f.min)returno("Not enough parameters for "+f.id+"; actual: "+s+", expected: "+f.min),!1;e.firstStackClearing&&f.stackClearing&&(e.firstStackClearing=!1,s-=f.min,s>=2&&f.stem?s%=2:s>1&&o("Found too many parameters for stack-clearing command"),s>0&&c[s-1]>=0&&(e.width=c[s-1])),"stackDelta"inf?("stackFn"inf&&f.stackFn(c,s),s+=f.stackDelta):f.stackClearing?s=0:f.resetStack?(s=0,e.undefStack=!1):f.undefStack&&(s=0,e.undefStack=!0,e.firstStackClearing=!1)}}returne.stackSize=s,!0},parseCharStrings:function(e,t,a,r,i)
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):(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],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):(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;returne.prototype={parse:function(e){functionr(){vart=e[u]<<8|e[u+1];returnu+=2,t}functionn(){vart=r(),a=e.subarray(u,u+t-2);returnu+=a.length,a}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();for(65496!==b&&a("JPEG error: SOI not found"),b=r();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++],l.scanLines=r(),l.samplesPerLine=r(),l.components=[],l.componentIds={};varB,R=e[u++],T=0,O=0;for(v=0;v<R;v++){B=e[u];varP=e[u+1]>>4,E=15&e[u+1];T<P&&(T=P),O<E&&(O=E);varM=e[u+2];k=l.components.push({h:P,v:E,quantizationId:M,quantizationTable:null}),l.componentIds[B]=k-1,u+=3}l.maxH=T,l.maxV=O,o(l);break;case65476:varL=r();for(v=2;v<L;){varD=e[u++],F=newUint8Array(16),U=0;for(y=0;y<16;y++,u++)U+=F[y]=e[u];varj=newUint8Array(U);for(y=0;y<U;y++,u++)j[y]=e[u];v+=17+U,(D>>4===0?m:p)[15&D]=t(F,j)}break;case65501:r(),h=r();bre
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:for(o.readHex(m,x),o.readHexNumber(b,x),r(b,m,x),l.addCodespaceRange(x+1,t(m,x),t(b,x)),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:for(o.readHex(m,x),o.readHexNumber(b,x),r(b,m,x),d=o.readNumber(),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:for(o.readHex(v,x),d=o.readNumber(),l.mapOne(t(v,x),d),S=1;S<I;S++)i(v,x),C||(o.readHexNumber(k,x),r(v,k,x)),d=o.readSigned()+(d+1),l.mapOne(t(v,x),d);break;case3:for(o.readHex(m,x),o.readHexNumber(b,x),r(b,m,x),d=o.readNumber(),l.mapCidRange(t(m,x),t(b,x),d),S=1;S<I;S++)i(b,x),C?m.set(b):(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:for(o.readHex(v,A),o.readHex(y,x),l.mapOne(t(v,A),a(y,x)),S=1;S<I;S++)i(v,A),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:for(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)),S=1;S<I;S++)i(b,A),C?m.set(b):(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;returnn.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},l}(),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"))return;t(i);varn=e(i);i=r.getObj(),t(i);vars=i;a.mapOne(n,s)}}functioni(a,r){for(;;){vari=r.getObj();if(f(i))break;if(g(i,"endbfrange"))return;t(i);varn=e(i);i=r.getObj(),t(i);vars=e(i);if(i=r.getObj(),l(i)||h(i)){varo=l(i)?String.fromCharCode(i):i;a.mapBfRange(n,s,o)}else{if(!g(i,"["))break;i=r.getObj();for(varu=[];!g(i,"]")&&!f(i);)u.push(i),i=r.getObj();a.mapBfRangeToArray(n,s,u)}}c("Invalidbfra
A||this.toUnicode.forEach(function(e,t){x[+e]=t}),this.toFontChar=x,this.toUnicode=newfe(x)}else/Symbol/i.test(p)?this.toFontChar=l(U,E(),a.differences):/Dingbats/i.test(p)?(/Wingdings/i.test(e)&&R("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=l(j,M(),a.differences)):y?this.toFontChar=l(a.defaultEncoding,E(),a.differences):(g=E(),this.toUnicode.forEach(function(e,t){this.composite||(i=a.differences[e]||a.defaultEncoding[e],n=W(i,g),n!==-1&&(t=n)),this.toFontChar[e]=t}.bind(this)));returnthis.loadedName=p.split("-")[0],this.loading=!1,void(this.fontType=d(h,f))}"Type1C"===f&&("Type1"!==h&&"MMType1"!==h?s(t)?f="TrueType":h="Type1":o(t)&&(h=f="OpenType")),"CIDFontType0C"===f&&"CIDFontType0"!==h&&(h="CIDFontType0"),"OpenType"===f&&(h="OpenType"),"CIDFontType0"===h&&(c(t)?f="CIDFontType0":o(t)?h=f="OpenType":f="CIDFontType0C");varI;switch(h){case"MMType1":w("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";varB="Type1C"===f||"CIDFontType0C"===f?newye(t,a):newve(e,t,a);u(a),I=this.convert(e,B,a);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",I=this.checkAndRepair(e,t,a),this.isOpenType&&(u(a),h="OpenType");break;default:k("Font "+h+" is not supported")}this.data=I,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}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){returne=e>32767?32767:e<-32768?-32768:e,String.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)dof=c++,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,65535!==l););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;for(S+=d-f+1,k+=i(0),w+=i(R),n=0,s=g.length;n<s;++n)x+=i(g[n])}}p>0&&(y+="ÿÿ",v+="ÿÿ",k+="\0",w+="\0\0");varT="\0\0"+i(2*m)+i(b.range)+i(b.entry)+i(b.rangeShift)+y+"\0\0"+v+k+w+x,O="",P="";if(c>1){for(l+="\0\0\n"+B(4+8*c+4+T.length),O="",a=0,r=o.length;a<r;a++){u=o[a],f=u[0],g=u[2];varE=g[0];for(n=1,s=g.length;n<s;++n)g[n]!==g[n-1]+1&&(d=u[0]+n-1,O+=B(f)+B(d)+B(E),f=d+1,E=g[n]);O+=B(f)+B(u[1])+B(E)}P="\0\f\0\0"+B(O.length+16)+"\0\0\0\0"+B(O.length/12)}returnl+"\0"+i(T.length+4)+T+P+O}functionT(e){vart=newP(e.data),a=t.getUint16();t.getBytes(60);varr=t.getUint16();if(a<4&&768&r)return!1
if(!e){varf;if("DeviceGray"===this.colorSpace.name&&1===h?f=s.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==h||this.needsDecode||(f=s.RGB_24BPP),f&&!this.smask&&!this.mask&&a===c&&r===l){if(i.kind=f,t=this.getImageBytes(l*u),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))returni.kind=s.RGB_24BPP,i.data=this.getImageBytes(l*u,a,r,!0),i}t=this.getImageBytes(l*u);vary,k,w=0|t.length/u*r/l,C=this.getComponents(t);returne||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)):(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),i},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}elseif(r=i*n,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){returnthis.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=a||this.height,this.image.forceRGB=!!r,this.image.getBytes(e)}},r}();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=[]}returne.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");returnh(O(e),"invalid top-level pages dictionary"),y(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;if(t=t.getRaw("First"),!P(t))returnnull;vara={items:[]},r=[{obj:t,parent:a}],i=newI;i.put(t);for(varn=this.xref,s=newUint8Array(3);r.length>0;){varo=r.shift(),c=n.fetchIfRef(o.obj);if(null!==c){h(c.has("Title"),"Invalid outline item");varl={url:null,dest:null};e.parseDestDictionary({destDict:c,resultObj:l,docBaseUrl:this.pdfManager.docBaseUrl});varu=c.get("Title"),f=c.get("F")||0,d=c.getArray("C"),g=s;!p(d)||3!==d.length||0===d[0]&&0===d[1]&&0===d[2]||(g=j.singletons.rgb.getRgb(d,0));varm={dest:l.dest,url:l.url,unsafeUrl:l.unsafeUrl,newWindow:l.newWindow,title:k(u),color:g,count:c.get("Count"),bold:!!(2&f),italic:!!(1&f),items:[]};o.parent.items.push(m),t=c.getRaw("First"),P(t)&&!i.has(t)&&(r.push({obj:t,parent:m}),i.put(t)),t=c.getRaw("Next"),P
B.postMessage({targetName:"main",action:"console_log",data:e})},error:function(){vare=Array.prototype.slice.call(arguments);throwB.postMessage({targetName:"main",action:"console_error",data:e}),"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=newh("worker","main",self);O.setup(a,self),a.send("ready",null)}varo,c=t.UNSUPPORTED_FEATURES,l=t.InvalidPDFException,h=t.MessageHandler,u=t.MissingPDFException,f=t.UnexpectedResponseException,d=t.PasswordException,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=r.Ref,A=i.LocalPdfManager,I=i.NetworkPdfManager,B=t.globalScope,R=function(){functione(e){this.name=e,this.terminated=!1,this._capability=y()}returne.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")}},e}(),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){this._stream=e,this._begin=t,this._end=a,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}returne.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){returnt._begin===e.begin&&(t._enqueue(e.chunk),!0)});v(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(){v(!this._fullRequestReader);vare=this._queuedChunks;returnthis._queuedChunks=null,newt(this,e)},getRangeReader:function(e,t){varr=newa(this,e,t);returnthis._msgHandler.send("RequestDataRange",{begin:e,end:t}),this._rangeReaders.push(r),r},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();returnvoidt.resolve({value:e,done:!1})}this._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._queuedChunks.shift();returnPromise.resolve({value:e,done:!1})}if(this._done)returnPromise.resolve({value:void0,done:!0});vart=y();returnthis._requests.push(t),t.promise},cancel:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void0,done:!0})}),this._requests=[]}},a.prototype={_enqueue:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{vart=this._requests.shift();t.resolve({value:e,done:!1}),this._requests.forEach(function(e){e.resolve({value:void0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}},getisStreamingSupported(){return!1},read:function(){if(this._queuedChunk)returnPromise.resolve({value:this._queuedChunk,done:!1});if(this._done)returnPromise.resolve({value:void0,done:!0});vare=y();retu