!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeofexports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsDistBuildPdfWorker=t()}(this,function(){returnfunction(e){functiont(r){if(a[r])returna[r].exports;vari=a[r]={i:r,l:!1,exports:{}};e[r].call(i.exports,i,i.exports,t);i.l=!0;returni.exports}vara={};t.m=e;t.c=a;t.i=function(e){returne};t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})};t.n=function(e){vara=e&&e.__esModule?function(){returne.default}:function(){returne};t.d(a,"a",a);returna};t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)};t.p="";returnt(t.s=37)}([function(e,t,a){"use strict";(function(e){functionr(e){ae=e}functioni(){returnae}functionn(e){ae>=$.infos&&console.log("Info: "+e)}functions(e){ae>=$.warnings&&console.log("Warning: "+e)}functiono(e){console.log("Deprecated API usage: "+e)}functionc(e){if(ae>=$.errors){console.log("Error: "+e);console.log(l())}thrownewError(e)}functionl(){try{thrownewError}catch(e){returne.stack?e.stack.split("\n").slice(2).join("\n"):""}}functionh(e,t){e||c(t)}functionu(e,t){try{vara=newURL(e);if(!a.origin||"null"===a.origin)return!1}catch(e){return!1}varr=newURL(t,a);returna.origin===r.origin}functionf(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functiond(e,t){if(!e)returnnull;try{vara=t?newURL(e,t):newURL(e);if(f(a))returna}catch(e){}returnnull}functiong(e,t,a){Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!1});returna}functionm(e){vart;returnfunction(){if(e){t=Object.create(null);e(t);e=null}returnt}}functionp(e){if("string"!=typeofe){s("The argument for removeNullCharacters must be a string.");returne}returne.replace(de,"")}functionb(e){h(null!==e&&"object"==typeofe&&void0!==e.length,"Invalid argument for bytesToString");vart=e.length,a=8192;if(t<a)returnString.fromCharCode.apply(null,e);for(varr=[],i=0;i<t;i+=a){varn=Math.min(i+a,t),s=e.subarray(i,n);r.push(String.fromCharCode.apply(null,s))}returnr.join("")}functionv(e){h("string"==typeofe,"Invalid argument for stringToBytes");for(vart=e.length,a=newUint8Array(t),r=0;r<t;++r)a[r]=255&e.charCodeAt(r);returna}functiony(e){if(void0!==e.length)returne.length;h(void0!==e.byteLength);returne.byteLength}functionk(e){if(1===e.length&&e[0]instanceofUint8Array)returne[0];vart,a,r,i=0,n=e.length;for(t=0;t<n;t++){a=e[t];r=y(a);i+=r}vars=0,o=newUint8Array(i);for(t=0;t<n;t++){a=e[t];ainstanceofUint8Array||(a="string"==typeofa?v(a):newUint8Array(a));r=a.byteLength;o.set(a,s);s+=r}returno}functionw(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionC(e){for(vart=1,a=0;e>t;){t<<=1;a++}returna}functionx(e,t){returne[t]<<24>>24}functionS(e,t){returne[t]<<8|e[t+1]}functionA(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionI(){vare=newUint8Array(2);e[0]=1;return1===newUint16Array(e.buffer)[0]}functionB(){try{newFunction("");return!0}catch(e){return!1}}functionR(e){vart,a=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<a;t+=2)r.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));elsefor(t=0;t<a;++t){vari=ve[e.charCodeAt(t)];r.push(i?String.fromCharCode(i):e.charAt(t))}returnr.join("")}functionT(e){returndecodeURIComponent(escape(e))}functionO(e){returnunescape(encodeURIComponent(e))}functionP(e){for(vartine)return!1;return!0}functionM(e){return"boolean"==typeofe}functionE(e){return"number"==typeofe&&(0|e)===e}functionL(e){return"number"==typeofe}functionD(e){return"string"==typeofe}functionF(e){returneinstanceofArray}functionq(e){return"object"==typeofe&&null!==e&&void0!==e.byteLength}functionU(e){return32===e||9===e||13===e||10===e}functionN(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"==typeofprocess&&process+""=="[o
o("Invalid BlackPoint for "+this.name+", falling back to default");this.XB=this.YB=this.ZB=0}0===this.XB&&0===this.YB&&0===this.ZB||u(this.name+", BlackPoint: XB: "+this.XB+", YB: "+this.YB+", ZB: "+this.ZB+", only default values are supported.");if(this.G<1){o("Invalid Gamma: "+this.G+" for "+this.name+", falling back to default");this.G=1}}functiont(e,t,a,r,i,n){vars=t[a]*n,o=Math.pow(s,e.G),c=e.YW*o,l=0|Math.max(295.8*Math.pow(c,.3333333333333333)-40.8,0);r[i]=l;r[i+1]=l;r[i+2]=l}e.prototype={getRgb:p.prototype.getRgb,getRgbItem:function(e,a,r,i){t(this,e,a,r,i,1)},getRgbBuffer:function(e,a,r,i,n,s,o){for(varc=1/((1<<s)-1),l=0;l<r;++l){t(this,e,a,i,n,c);a+=1;n+=3+o}},getOutputLength:function(e,t){returne*(3+t)},isPassthrough:p.prototype.isPassthrough,fillRgb:p.prototype.fillRgb,isDefaultDecode:function(e){returnp.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0};returne}(),S=function(){functione(e,t,a,r){this.name="CalRGB";this.numComps=3;this.defaultColor=newFloat32Array(this.numComps);e||s("WhitePoint missing - required for color space CalRGB");t=t||newFloat32Array(3);a=a||newFloat32Array([1,1,1]);r=r||newFloat32Array([1,0,0,0,1,0,0,0,1]);vari=e[0],n=e[1],c=e[2];this.whitePoint=e;varl=t[0],h=t[1],u=t[2];this.blackPoint=t;this.GR=a[0];this.GG=a[1];this.GB=a[2];this.MXA=r[0];this.MYA=r[1];this.MZA=r[2];this.MXB=r[3];this.MYB=r[4];this.MZB=r[5];this.MXC=r[6];this.MYC=r[7];this.MZC=r[8];(i<0||c<0||1!==n)&&s("Invalid WhitePoint components for "+this.name+", no fallback available");if(l<0||h<0||u<0){o("Invalid BlackPoint for "+this.name+" ["+l+", "+h+", "+u+"], falling back to default");this.blackPoint=newFloat32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){o("Invalid Gamma ["+this.GR+", "+this.GG+", "+this.GB+"] for "+this.name+", falling back to default");this.GR=this.GG=this.GB=1}if(this.MXA<0||this.MYA<0||this.MZA<0||this.MXB<0||this.MYB<0||this.MZB<0||this.MXC<0||this.MYC<0||this.MZC<0){o("Invalid Matrix for "+this.name+" ["+this.MXA+", "+this.MYA+", "+this.MZA+this.MXB+", "+this.MYB+", "+this.MZB+this.MXC+", "+this.MYC+", "+this.MZC+"], falling back to default");this.MXA=this.MYB=this.MZC=1;this.MXB=this.MYA=this.MZA=this.MXC=this.MYC=this.MZB=0}}functiont(e,t,a){a[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];a[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2];a[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}functiona(e,t,a){a[0]=1*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1*t[2]/e[2]}functionr(e,t,a){varr=1,i=1.08883;a[0]=.95047*t[0]/e[0];a[1]=t[1]*r/e[1];a[2]=t[2]*i/e[2]}functioni(e){returne<=.0031308?n(0,1,12.92*e):n(0,1,1.055*Math.pow(e,1/2.4)-.055)}functionn(e,t,a){returnMath.max(e,Math.min(t,a))}functionc(e){returne<0?-c(-e):e>8?Math.pow((e+16)/116,3):e*w}functionl(e,t,a){if(0!==e[0]||0!==e[1]||0!==e[2]){varr=c(0),i=r,n=c(e[0]),s=r,o=c(e[1]),l=r,h=c(e[2]),u=(1-i)/(1-n),f=1-u,d=(1-s)/(1-o),g=1-d,m=(1-l)/(1-h),p=1-m;a[0]=t[0]*u+f;a[1]=t[1]*d+g;a[2]=t[2]*m+p}else{a[0]=t[0];a[1]=t[1];a[2]=t[2]}}functionh(e,r,i){if(1!==e[0]||1!==e[2]){varn=i;t(d,r,n);vars=v;a(e,n,s);t(g,s,i)}else{i[0]=r[0];i[1]=r[1];i[2]=r[2]}}functionu(e,a,i){varn=i;t(d,a,n);vars=v;r(e,n,s);t(g,s,i)}functionf(e,a,r,s,o,c){varf=n(0,1,a[r]*c),d=n(0,1,a[r+1]*c),g=n(0,1,a[r+2]*c),p=Math.pow(f,e.GR),v=Math.pow(d,e.GG),w=Math.pow(g,e.GB),C=e.MXA*p+e.MXB*v+e.MXC*w,x=e.MYA*p+e.MYB*v+e.MYC*w,S=e.MZA*p+e.MZB*v+e.MZC*w,A=y;A[0]=C;A[1]=x;A[2]=S;varI=k;h(e.whitePoint,A,I);varB=y;l(e.blackPoint,I,B);varR=k;u(b,B,R);varT=y;t(m,R,T);varO=i(T[0]),P=i(T[1]),M=i(T[2]);s[o]=Math.round(255*O);s[o+1]=Math.round(255*P);s[o+2]=Math.round(255*M)}vard=newFloat32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),g=newFloat32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),m=newFloat32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),b=newFloat32Array([1,1,1]),v=newFloat32Array(3),y=newFloat32Array(3),k=newFloat32Array(3),w=Math.pow(24/116,3)/8;e.prototype={getRgb:function(e,t){vara=newUint8Array(3);this.getRgbItem(e,t,a,0);returna},getRgbItem:function(e,t,a,r){f(thi
t=this.nextChar();if(62===t){this.nextChar();returnb.get(">>")}returnb.get(">");case123:this.nextChar();returnb.get("{");case125:this.nextChar();returnb.get("}");case41:this.nextChar();l("Illegal character: "+t)}for(varr=String.fromCharCode(t),i=this.knownCommands,n=i&&void0!==i[r];(t=this.nextChar())>=0&&!a[t];){vars=r+String.fromCharCode(t);if(n&&void0===i[s])break;128===r.length&&l("Command token too long: "+r.length);r=s;n=i&&void0!==i[r]}return"true"===r||"false"!==r&&("null"===r?null:b.get(r))},skipToNextLine:function(){for(vare=this.currentChar;e>=0;){if(13===e){e=this.nextChar();10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}};returne}(),N={create:function(e){functiont(e,t){vara=l.get(e);if(f(a)&&(t?a>=0:a>0))returna;thrownewError('The "'+e+'" parameter in the linearization dictionary is invalid.')}functiona(){vare,t,a=l.get("H");if(u(a)&&(2===(e=a.length)||4===e)){for(varr=0;r<e;r++)if(!(f(t=a[r])&&t>0))thrownewError("Hint ("+r+") in the linearization dictionary is invalid.");returna}thrownewError("Hint array in the linearization dictionary is invalid.")}varr,i,n=newq(newU(e),!1,null),s=n.getObj(),o=n.getObj(),c=n.getObj(),l=n.getObj();if(!(f(s)&&f(o)&&C(c,"obj")&&x(l)&&d(r=l.get("Linearized"))&&r>0))returnnull;if((i=t("L"))!==e.length)thrownewError('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:i,hints:a(),objectNumberFirst:t("O"),endFirst:t("E"),numPages:t("N"),mainXRefEntriesOffset:t("T"),pageFirst:l.has("P")?t("P",!0):0}}};t.Lexer=U;t.Linearization=N;t.Parser=q},function(e,t,a){"use strict";functionr(e){vart;if("object"!=typeofe)return!1;if(u(e))t=e;else{if(!f(e))return!1;t=e.dict}returnt.has("FunctionType")}vari=a(0),n=a(1),s=a(34),o=i.error,c=i.info,l=i.isArray,h=i.isBool,u=n.isDict,f=n.isStream,d=s.PostScriptLexer,g=s.PostScriptParser,m=function(){vare=0,t=2,a=3;return{getSampleArray:function(e,t,a,r){vari,n,s=1;for(i=0,n=e.length;i<n;i++)s*=e[i];s*=t;varo=newArray(s),c=0,l=0,h=1/(Math.pow(2,a)-1),u=r.getBytes((s*a+7)/8),f=0;for(i=0;i<s;i++){for(;c<a;){l<<=8;l|=u[f++];c+=8}c-=a;o[i]=(l>>c)*h;l&=(1<<c)-1}returno},getIR:function(e,t){vara=t.dict;a||(a=t);varr=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],i=a.get("FunctionType"),n=r[i];n||o("Unknown type of function");returnn.call(this,t,a,e)},fromIR:function(r){switch(r[0]){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(!l(t))returnthis.parse(e,t);for(vara=[],r=0,i=t.length;r<i;r++){varn=e.fetchIfRef(t[r]);a.push(m.parse(e,n))}returnfunction(e,t,r,i){for(varn=0,s=a.length;n<s;n++)a[n](e,t,r,i+n)}},constructSampled:function(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"),n=a.getArray("Range");i&&n||o("No domain or range");vars=i.length/2,l=n.length/2;i=r(i);n=r(n);varh=a.get("Size"),u=a.get("BitsPerSample"),f=a.get("Order")||1;1!==f&&c("No support for cubic spline interpolation: "+f);vard=a.getArray("Encode");if(!d){d=[];for(varg=0;g<s;++g){d.push(0);d.push(h[g]-1)}}d=r(d);varm=a.getArray("Decode");m=m?r(m):n;return[e,s,i,d,m,this.getSampleArray(h,l,u,t),h,l,Math.pow(2,u)-1,n]},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],m=e[9],p=1<<c,b=newFloat64Array(p),v=newUint32Array(p);for(o=0;o<p;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<p;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<p;s++)P+=f[v[s]+o]*b[s];P=t(
break;default:s("Unknown charset format")}varf=e;returnnewO(!1,h,u,c.subarray(l,f))},parseEncoding:function(e,t,a,r){functioni(){vart=h[e++];for(o=0;o<t;o++){vari=h[e++],n=(h[e++]<<8)+(255&h[e++]);l[i]=r.indexOf(a.get(n))}}varn,o,c,l=Object.create(null),h=this.bytes,u=!1,f=null;if(0===e||1===e){u=!0;n=e;vard=e?v:b;for(o=0,c=r.length;o<c;o++){varg=d.indexOf(r[o]);g!==-1&&(l[g]=o)}}else{varm=e;n=h[e++];switch(127&n){case0:varp=h[e++];for(o=1;o<=p;o++)l[h[e++]]=o;break;case1:vary=h[e++],k=1;for(o=0;o<y;o++)for(varw=h[e++],C=h[e++],x=w;x<=w+C;x++)l[x]=k++;break;default:s("Unknown encoding format: "+n+" in CFF")}varS=e;if(128&n){h[m]&=127;i()}f=h.subarray(m,S)}n&=127;returnnewP(u,n,l,f)},parseFDSelect:function(e,t){vara,r,i=e,n=this.bytes,o=n[e++],c=[],h=!1;switch(o){case0:for(r=0;r<t;++r){varu=n[e++];c.push(u)}a=n.subarray(i,e);break;case3:varf=n[e++]<<8|n[e++];for(r=0;r<f;++r){varg=n[e++]<<8|n[e++];if(0===r&&0!==g){l("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");h=!0;g=0}for(varm=n[e++],p=n[e]<<8|n[e+1],b=g;b<p;++b)c.push(m)}e+=2;a=n.subarray(i,e);h&&(a[3]=a[4]=0);break;default:s('parseFDSelect: Unknown format "'+o+'".')}d(c.length===t,"parseFDSelect: Invalid font data.");returnnewM(c,a)}};returne}(),C=function(){functione(){this.header=null;this.names=[];this.topDict=null;this.strings=newS;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1}returne}(),x=function(){functione(e,t,a,r){this.major=e;this.minor=t;this.hdrSize=a;this.offSize=r}returne}(),S=function(){functione(){this.strings=[]}e.prototype={get:function(e){returne>=0&&e<=390?k[e]:e-391<=this.strings.length?this.strings[e-391]:k[0]},add:function(e){this.strings.push(e)},getcount(){returnthis.strings.length}};returne}(),A=function(){functione(){this.objects=[];this.length=0}e.prototype={add:function(e){this.length+=e.length;this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length;this.objects[e]=t},get:function(e){returnthis.objects[e]},getcount(){returnthis.objects.length}};returne}(),I=function(){functione(e,t){this.keyToNameMap=e.keyToNameMap;this.nameToKeyMap=e.nameToKeyMap;this.defaults=e.defaults;this.types=e.types;this.opcodes=e.opcodes;this.order=e.order;this.strings=t;this.values=Object.create(null)}e.prototype={setByKey:function(e,t){if(!(einthis.keyToNameMap))return!1;vara=t.length;if(0===a)return!0;for(varr=0;r<a;r++)if(isNaN(t[r])){l('Invalid CFFDict value: "'+t+'" for key "'+e+'".');return!0}vari=this.types[e];"num"!==i&&"sid"!==i&&"offset"!==i||(t=t[0]);this.values[e]=t;return!0},setByName:function(e,t){einthis.nameToKeyMap||s('Invalid dictionary name "'+e+'"');this.values[this.nameToKeyMap[e]]=t},hasName:function(e){returnthis.nameToKeyMap[e]inthis.values},getByName:function(e){einthis.nameToKeyMap||s('Invalid dictionary name "'+e+'"');vart=this.nameToKeyMap[e];returntinthis.values?this.values[t]:this.defaults[t]},removeByName:function(e){deletethis.values[this.nameToKeyMap[e]]}};e.createTables=function(e){for(vart={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},a=0,r=e.length;a<r;++a){vari=e[a],n=h(i[0])?(i[0][0]<<8)+i[0][1]:i[0];t.keyToNameMap[n]=i[1];t.nameToKeyMap[i[1]]=n;t.types[n]=i[2];t.defaults[n]=i[3];t.opcodes[n]=h(i[0])?i[0]:[i[0]];t.order.push(n)}returnt};returne}(),B=function(){functione(e){null===a&&(a=I.createTables(t));I.call(this,a,e);this.privateDict=null}vart=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","n
varr=1<<a.PPx,i=1<<a.PPy,n=0===t.resLevel,s=1<<a.PPx+(n?0:-1),o=1<<a.PPy+(n?0:-1),c=t.trx1>t.trx0?Math.ceil(t.trx1/r)-Math.floor(t.trx0/r):0,l=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,h=c*l;t.precinctParameters={precinctWidth:r,precinctHeight:i,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:s,precinctHeightInSubband:o}}functionf(e,t,a){varr,i,n,s,o=a.xcb_,c=a.ycb_,l=1<<o,h=1<<c,u=t.tbx0>>o,f=t.tby0>>c,d=t.tbx1+l-1>>o,g=t.tby1+h-1>>c,m=t.resolution.precinctParameters,p=[],b=[];for(i=f;i<g;i++)for(r=u;r<d;r++){n={cbx:r,cby:i,tbx0:l*r,tby0:h*i,tbx1:l*(r+1),tby1:h*(i+1)};n.tbx0_=Math.max(t.tbx0,n.tbx0);n.tby0_=Math.max(t.tby0,n.tby0);n.tbx1_=Math.min(t.tbx1,n.tbx1);n.tby1_=Math.min(t.tby1,n.tby1);varv=Math.floor((n.tbx0_-t.tbx0)/m.precinctWidthInSubband),y=Math.floor((n.tby0_-t.tby0)/m.precinctHeightInSubband);s=v+y*m.numprecinctswide;n.precinctNumber=s;n.subbandType=t.type;n.Lblock=3;if(!(n.tbx1_<=n.tbx0_||n.tby1_<=n.tby0_)){p.push(n);vark=b[s];if(void0!==k){r<k.cbxMin?k.cbxMin=r:r>k.cbxMax&&(k.cbxMax=r);i<k.cbyMin?k.cbxMin=i:i>k.cbyMax&&(k.cbyMax=i)}elseb[s]=k={cbxMin:r,cbyMin:i,cbxMax:r,cbyMax:i};n.precinct=k}}t.codeblockParameters={codeblockWidth:o,codeblockHeight:c,numcodeblockwide:d-u+1,numcodeblockhigh:g-f+1};t.codeblocks=p;t.precincts=b}functiond(e,t,a){for(varr=[],i=e.subbands,n=0,s=i.length;n<s;n++)for(varo=i[n],c=o.codeblocks,l=0,h=c.length;l<h;l++){varu=c[l];u.precinctNumber===t&&r.push(u)}return{layerNumber:a,codeblocks:r}}functiong(e){for(vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=0,c=0;c<n;c++)s=Math.max(s,r.components[c].codingStyleParameters.decompositionLevelsCount);varl=0,h=0,u=0,f=0;this.nextPacket=function(){for(;l<i;l++){for(;h<=s;h++){for(;u<n;u++){vare=r.components[u];if(!(h>e.codingStyleParameters.decompositionLevelsCount)){for(vart=e.resolutions[h],a=t.precinctParameters.numprecincts;f<a;){varc=d(t,f,l);f++;returnc}f=0}}u=0}h=0}o("JPX Error: Out of packets")}}functionm(e){for(vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=0,c=0;c<n;c++)s=Math.max(s,r.components[c].codingStyleParameters.decompositionLevelsCount);varl=0,h=0,u=0,f=0;this.nextPacket=function(){for(;l<=s;l++){for(;h<i;h++){for(;u<n;u++){vare=r.components[u];if(!(l>e.codingStyleParameters.decompositionLevelsCount)){for(vart=e.resolutions[l],a=t.precinctParameters.numprecincts;f<a;){varc=d(t,f,h);f++;returnc}f=0}}u=0}h=0}o("JPX Error: Out of packets")}}functionp(e){vart,a,r,i,n=e.SIZ,s=e.currentTile.index,c=e.tiles[s],l=c.codingStyleDefaultParameters.layersCount,h=n.Csiz,u=0;for(r=0;r<h;r++){varf=c.components[r];u=Math.max(u,f.codingStyleParameters.decompositionLevelsCount)}varg=newInt32Array(u+1);for(a=0;a<=u;++a){varm=0;for(r=0;r<h;++r){varp=c.components[r].resolutions;a<p.length&&(m=Math.max(m,p[a].precinctParameters.numprecincts))}g[a]=m}t=0;a=0;r=0;i=0;this.nextPacket=function(){for(;a<=u;a++){for(;i<g[a];i++){for(;r<h;r++){vare=c.components[r];if(!(a>e.codingStyleParameters.decompositionLevelsCount)){varn=e.resolutions[a];if(!(i>=n.precinctParameters.numprecincts)){for(;t<l;){vars=d(n,i,t);t++;returns}t=0}}}r=0}i=0}o("JPX Error: Out of packets")}}functionb(e){vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=k(r),c=s,l=0,h=0,u=0,f=0,g=0;this.nextPacket=function(){for(;g<c.maxNumHigh;g++){for(;f<c.maxNumWide;f++){for(;u<n;u++){for(vare=r.components[u],t=e.codingStyleParameters.decompositionLevelsCount;h<=t;h++){vara=e.resolutions[h],m=s.components[u].resolutions[h],p=y(f,g,m,c,a);if(null!==p){for(;l<i;){varb=d(a,p,l);l++;returnb}l=0}}h=0}u=0}f=0}o("JPX Error: Out of packets")}}functionv(e){vart=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz,s=k(r),c=0,l=0,h=0,u=0,f=0;this.nextPacket=function(){for(;h<n;++h){for(vare=r.components[h],t=s.components[h],a=e.codingStyleParameters.decompositionLevelsCount;f<t.maxNumHigh;f++){for(;u<t.maxNumW
;(k(s)||b(s))&&(i.dest=s)}}elseS('Catalog_parseDestDictionary: "resultObj" must be an object.')}elseS('Catalog_parseDestDictionary: "destDict" must be a dictionary.')};returne}(),z=function(){functione(e,t){this.stream=e;this.pdfManager=t;this.entries=[];this.xrefstms=Object.create(null);this.cache=[];this.stats={streamTypes:[],fontTypes:[]}}e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){vart;if(e){S("Indexing all PDF objects");t=this.indexObjects()}elset=this.readXRef();t.assignXref(this);this.trailer=t;vara=t.get("Encrypt");if(M(a)){varr=t.get("ID"),i=r&&r.length?r[0]:"";a.suppressEncryption=!0;this.encrypt=newF(a,i,this.pdfManager.password)}(this.root=t.get("Root"))||m("Invalid root reference")},processXRefTable:function(e){"tableState"inthis||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});P(this.readXRefTable(e),"trailer")||m("Invalid XRef table: could not find trailer dictionary");vart=e.getObj();!M(t)&&t.dict&&(t=t.dict);M(t)||m("Invalid XRef table: could not parse trailer dictionary");deletethis.tableState;returnt},readXRefTable:function(e){vart=e.lexer.stream,a=this.tableState;t.pos=a.streamPos;e.buf1=a.parserBuf1;e.buf2=a.parserBuf2;for(varr;;){if(!("firstEntryNum"ina&&"entryCount"ina)){if(P(r=e.getObj(),"trailer"))break;a.firstEntryNum=r;a.entryCount=e.getObj()}vari=a.firstEntryNum,n=a.entryCount;y(i)&&y(n)||m("Invalid XRef table: wrong types in subsection header");for(vars=a.entryNum;s<n;s++){a.streamPos=t.pos;a.entryNum=s;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;varo={};o.offset=e.getObj();o.gen=e.getObj();varc=e.getObj();P(c,"f")?o.free=!0:P(c,"n")&&(o.uncompressed=!0);y(o.offset)&&y(o.gen)&&(o.free||o.uncompressed)||m("Invalid entry in XRef subsection: "+i+", "+n);0===s&&o.free&&1===i&&(i=0);this.entries[s+i]||(this.entries[s+i]=o)}a.entryNum=0;a.streamPos=t.pos;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;deletea.firstEntryNum;deletea.entryCount}this.entries[0]&&!this.entries[0].free&&m("Invalid XRef table: unexpected first object");returnr},processXRefStream:function(e){if(!("streamState"inthis)){vart=e.dict,a=t.get("W"),r=t.get("Index");r||(r=[0,t.get("Size")]);this.streamState={entryRanges:r,byteWidths:a,entryNum:0,streamPos:e.pos}}this.readXRefStream(e);deletethis.streamState;returne.dict},readXRefStream:function(e){vart,a,r=this.streamState;e.pos=r.streamPos;for(vari=r.byteWidths,n=i[0],s=i[1],o=i[2],c=r.entryRanges;c.length>0;){varl=c[0],h=c[1];y(l)&&y(h)||m("Invalid XRef range fields: "+l+", "+h);y(n)&&y(s)&&y(o)||m("Invalid XRef entry fields length: "+l+", "+h);for(t=r.entryNum;t<h;++t){r.entryNum=t;r.streamPos=e.pos;varu=0,f=0,d=0;for(a=0;a<n;++a)u=u<<8|e.getByte();0===n&&(u=1);for(a=0;a<s;++a)f=f<<8|e.getByte();for(a=0;a<o;++a)d=d<<8|e.getByte();varg={};g.offset=f;g.gen=d;switch(u){case0:g.free=!0;break;case1:g.uncompressed=!0;break;case2:break;default:m("Invalid XRef entry type: "+u)}this.entries[l+t]||(this.entries[l+t]=g)}r.entryNum=0;r.streamPos=e.pos;c.splice(0,2)}},indexObjects:function(){functione(e,t){for(vara="",n=e[t];n!==r&&n!==i&&n!==o&&!(++t>=e.length);){a+=String.fromCharCode(n);n=e[t]}returna}functiont(e,t,a){for(varr=a.length,i=e.length,n=0;t<i;){for(vars=0;s<r&&e[t+s]===a[s];)++s;if(s>=r)break;t++;n++}returnn}vara=9,r=10,i=13,n=32,s=37,o=60,c=/^(\d+)\s+(\d+)\s+obj\b/,h=newUint8Array([116,114,97,105,108,101,114]),u=newUint8Array([115,116,97,114,116,120,114,101,102]),f=newUint8Array([101,110,100,111,98,106]),d=newUint8Array([47,88,82,101,102]);this.entries.length=0;varg=this.stream;g.pos=0;for(varm=g.getBytes(),p=g.start,b=m.length,v=[],y=[];p<b;){vark=m[p];if(k!==a&&k!==r&&k!==i&&k!==n)if(k!==s){varw,C=e(m,p);if(0!==C.indexOf("xref")||4!==C.length&&!/\s/.test(C[4]))if(w=c.exec(C)){void0===this.entries[w[1]]&&(this.entries[w[1]]={offset:p-g.start,gen:0|w[2],uncompressed:!0});varx=t(m,p,f)+7,S=m.subarray(p,p+x),A=t(S,0,d);if(A<x&&S[A+5]<64){y.push(p-g.start);this.xrefstms[p-g.start]=1}p+=x}elseif(0!==C.indexOf("trailer")||7!==C.length&&!/\s/.test(C[7])
u+=l.pop();r(u,f);A=!0;break;case23:g+=l.length>>1;A=!0;break;case24:for(;l.length>2;){p=u+l.shift();v=f+l.shift();b=p+l.shift();y=v+l.shift();u=b+l.shift();f=y+l.shift();s(p,v,b,y,u,f)}u+=l.shift();f+=l.shift();i(u,f);break;case25:for(;l.length>6;){u+=l.shift();f+=l.shift();i(u,f)}p=u+l.shift();v=f+l.shift();b=p+l.shift();y=v+l.shift();u=b+l.shift();f=y+l.shift();s(p,v,b,y,u,f);break;case26:l.length%2&&(u+=l.shift());for(;l.length>0;){p=u;v=f+l.shift();b=p+l.shift();y=v+l.shift();u=b;f=y+l.shift();s(p,v,b,y,u,f)}break;case27:l.length%2&&(f+=l.shift());for(;l.length>0;){p=u+l.shift();v=f;b=p+l.shift();y=v+l.shift();u=b+l.shift();f=y;s(p,v,b,y,u,f)}break;case28:l.push((e[m]<<24|e[m+1]<<16)>>16);m+=2;break;case29:x=l.pop()+a.gsubrsBias;S=a.gsubrs[x];S&&c(S);break;case30:for(;l.length>0;){p=u;v=f+l.shift();b=p+l.shift();y=v+l.shift();u=b+l.shift();f=y+(1===l.length?l.shift():0);s(p,v,b,y,u,f);if(0===l.length)break;p=u+l.shift();v=f;b=p+l.shift();y=v+l.shift();f=y+l.shift();u=b+(1===l.length?l.shift():0);s(p,v,b,y,u,f)}break;case31:for(;l.length>0;){p=u+l.shift();v=f;b=p+l.shift();y=v+l.shift();f=y+l.shift();u=b+(1===l.length?l.shift():0);s(p,v,b,y,u,f);if(0===l.length)break;p=u;v=f+l.shift();b=p+l.shift();y=v+l.shift();u=b+l.shift();f=y+(1===l.length?l.shift():0);s(p,v,b,y,u,f)}break;default:I<32&&h("unknown operator: "+I);if(I<247)l.push(I-139);elseif(I<251)l.push(256*(I-247)+e[m++]+108);elseif(I<255)l.push(256*-(I-251)-e[m++]-108);else{l.push((e[m]<<24|e[m+1]<<16|e[m+2]<<8|e[m+3])/65536);m+=4}}A&&(l.length=0)}}varl=[],u=0,f=0,g=0;c(e)}functionm(e){this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null);this.fontMatrix=e}functionp(e,t,a){a=a||[488e-6,0,0,488e-6,0,0];m.call(this,a);this.glyphs=e;this.cmap=t}functionb(e,t,a,r){a=a||[.001,0,0,.001,0,0];m.call(this,a);this.glyphs=e.glyphs;this.gsubrs=e.gsubrs||[];this.subrs=e.subrs||[];this.cmap=t;this.glyphNameMap=r||f();this.gsubrsBias=this.gsubrs.length<1240?107:this.gsubrs.length<33900?1131:32768;this.subrsBias=this.subrs.length<1240?107:this.subrs.length<33900?1131:32768}m.prototype={getPathJs:function(e){vart=n(this.cmap,e),a=this.compiledGlyphs[t.glyphId];if(!a){a=this.compileGlyph(this.glyphs[t.glyphId]);this.compiledGlyphs[t.glyphId]=a}void0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId);returna},compileGlyph:function(e){if(!e||0===e.length||14===e[0])return"";vart=[];t.push({cmd:"save"});t.push({cmd:"transform",args:this.fontMatrix.slice()});t.push({cmd:"scale",args:["size","-size"]});this.compileGlyphImpl(e,t);t.push({cmd:"restore"});returnt},compileGlyphImpl:function(){h("Children classes should implement this.")},hasBuiltPath:function(e){vart=n(this.cmap,e);returnvoid0!==this.compiledGlyphs[t.glyphId]&&void0!==this.compiledCharCodeToGlyphId[t.charCode]}};c.inherit(p,m,{compileGlyphImpl:function(e,t){s(e,t,this)}});c.inherit(b,m,{compileGlyphImpl:function(e,t){o(e,t,this)}});return{create:function(n,s){for(varo,c,h,u,f,d,g=newUint8Array(n.data),m=t(g,4),v=0,y=12;v<m;v++,y+=16){vark=l(g.subarray(y,y+4)),w=e(g,y+8),C=e(g,y+12);switch(k){case"cmap":o=a(g,w,w+C);break;case"glyf":c=g.subarray(w,w+C);break;case"loca":h=g.subarray(w,w+C);break;case"head":d=t(g,w+18);f=t(g,w+50);break;case"CFF ":u=r(g,w,w+C,s)}}if(c){varx=d?[1/d,0,0,1/d,0,0]:n.fontMatrix;returnnewp(i(c,h,f),o,x)}returnnewb(u,o,n.fontMatrix,n.glyphNameMap)}}}();t.FontRendererFactory=m},function(e,t,a){"use strict";functionr(e){if(e.fontMatrix&&e.fontMatrix[0]!==b[0]){vart=.001/e.fontMatrix[0],a=e.widths;for(varrina)a[r]*=t;e.defaultWidth*=t}}functioni(e,t){if(!e.hasIncludedToUnicodeMap&&!(e.hasEncoding||t===e.defaultEncoding||e.toUnicodeinstanceofge)){vara=[],r=E();for(variint){varn=t[i],s=W(n,r);s!==-1&&(a[i]=String.fromCharCode(s))}e.toUnicode.amend(a)}}functionn(e,t){switch(e){case"Type1":return"Type1C"===t?v.TYPE1C:v.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?v.CIDFONTTYPE0C:v.CIDFONTTYPE0;case"OpenType":returnv.OPENTYPE;case"TrueType":returnv.TRUETYPE;case"CI
;if(A)for(varI=0,B=A.length;I<B;I++){varR=A[I],T=o.charCodeToGlyphId,M=n(T,w),E=n(T,C);g[R]={baseFontCharCode:M,accentFontCharCode:E,accentOffset:S}}}}a.seacMap=g}varL=1/(a.fontMatrix||b)[0],D=newme("OTTO");D.addTable("CFF ",t.data);D.addTable("OS/2",O(a,o.charCodeToGlyphId));D.addTable("cmap",x(o.charCodeToGlyphId,h));D.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+l(L)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+l(a.descent)+"ÿ"+l(a.ascent)+c(a.italicAngle?2:0)+"\0\0\0\0\0\0\0");D.addTable("hhea","\0\0\0"+l(a.ascent)+l(a.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+l(a.capHeight)+l(Math.tan(a.italicAngle)*a.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+c(h));D.addTable("hmtx",function(){for(vare=t.charstrings,a=t.cff?t.cff.widths:null,r="\0\0\0\0",i=1,n=h;i<n;i++){vars=0;if(e){varo=e[i-1];s="width"ino?o.width:0}elsea&&(s=Math.ceil(a[i]||0));r+=c(s)+c(0)}returnr}());D.addTable("maxp","\0\0P\0"+c(h));D.addTable("name",K(e));D.addTable("post",P(a));returnD.toArray()},getspaceWidth(){if("_shadowWidth"inthis)returnthis._shadowWidth;for(vare,t=["space","minus","one","i","I"],a=0,r=t.length;a<r;a++){vari=t[a];if(iinthis.widths){e=this.widths[i];break}varn=E(),s=n[i],o=0;this.composite&&this.cMap.contains(s)&&(o=this.cMap.lookup(s));!o&&this.toUnicode&&(o=this.toUnicode.charCodeOf(s));o<=0&&(o=s);e=this.widths[o];if(e)break}e=e||this.defaultWidth;this._shadowWidth=e;returne},charToGlyph:function(e,t){vara,r,i,n=e;this.cMap&&this.cMap.contains(e)&&(n=this.cMap.lookup(e));r=this.widths[n];r=A(r)?r:this.defaultWidth;vars=this.vmetrics&&this.vmetrics[n],o=this.toUnicode.get(e)||e;"number"==typeofo&&(o=String.fromCharCode(o));varc=einthis.toFontChar;a=this.toFontChar[e]||e;this.missingFile&&(a=V(a));this.isType3Font&&(i=a);varl=null;if(this.seacMap&&this.seacMap[e]){c=!0;varh=this.seacMap[e];a=h.baseFontCharCode;l={fontChar:String.fromCharCode(h.accentFontCharCode),offset:h.accentOffset}}varu=String.fromCharCode(a),f=this.glyphCache[e];if(!f||!f.matchesForCache(u,o,l,r,s,i,t,c)){f=newfe(u,o,l,r,s,i,t,c);this.glyphCache[e]=f}returnf},charsToGlyphs:function(e){vart,a,r,i=this.charsCache;if(i){t=i[e];if(t)returnt}i||(i=this.charsCache=Object.create(null));t=[];varn,s=e,o=0;if(this.cMap)for(varc=Object.create(null);o<e.length;){this.cMap.readCharCode(e,o,c);r=c.charcode;varl=c.length;o+=l;varh=1===l&&32===e.charCodeAt(o-1);a=this.charToGlyph(r,h);t.push(a)}elsefor(o=0,n=e.length;o<n;++o){r=e.charCodeAt(o);a=this.charToGlyph(r,32===r);t.push(a)}returni[s]=t}};returne}(),ve=function(){functione(e){this.error=e;this.loadedName="g_font_error";this.loading=!1}e.prototype={charsToGlyphs:function(){return[]},exportData:function(){return{error:this.error}}};returne}(),ye=function(){functione(e,t,a){for(varr,i=e.length,n=t.length,s=i-n,o=a,c=!1;o<s;){r=0;for(;r<n&&e[o+r]===t[r];)r++;if(r>=n){o+=r;for(;o<i&&P(e[o]);)o++;c=!0;break}o++}return{found:c,length:o}}functiont(t,a){varr,i,n,s=[101,101,120,101,99],o=t.pos;try{r=t.getBytes(a);i=r.length}catch(e){if(einstanceofO)throwe}if(i===a){n=e(r,s,a-2*s.length);if(n.found&&n.length===a)return{stream:newM(r),length:a}}T('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=o;for(varc,l=2048;;){n=e(t.peekBytes(l),s,0);if(0===n.length)break;t.pos+=n.length;if(n.found){c=t.pos-o;break}}t.pos=o;if(c)return{stream:newM(t.getBytes(c)),length:c};T('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:newM(t.getBytes(a)),length:a}}functiona(e,t){vara=e.getBytes();return{stream:newM(a),length:a.length}}functionr(e,r,i){varn=6,s=i.length1,o=i.length2,c=r.peekBytes(n),l=128===c[0]&&1===c[1];if(l){r.skip(n);s=c[5]<<24|c[4]<<16|c[3]<<8|c[2]}varh=t(r,s);s=h.length;newK(h.stream,!1,le).extractFontHeader(i);if(l){c=r.getBytes(n);o=c[5]<<24|c[4]<<16|c[3]<<8|c[2]}varu=a(r,o);o=u.length;varf=newK(u.stream,!0,le),d=f.extractFontProgram();for(vargind.properties)i[g]=d.properties[g];varm=d.charstrings,p=this.getType2Charstrings(m),b=this.getType2Subrs(d.subrs);this.charstrings=m;this.data=this.wrap(e,p,this.charstrings,b,i);this.sea
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=a(),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]=a()}elsei("JPEG error: DQT - invalid table spec");g[15&A]=I}break;case65472:case65473:case65474:l&&i("JPEG error: Only single frame JPEGs supported");a();l={};l.extended=65473===b;l.progressive=65474===b;l.precision=e[u++];l.scanLines=a();l.samplesPerLine=a();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,M=15&e[u+1];T<P&&(T=P);O<M&&(O=M);varE=e[u+2];k=l.components.push({h:P,v:M,quantizationId:E,quantizationTable:null});l.componentIds[B]=k-1;u+=3}l.maxH=T;l.maxV=O;o(l);break;case65476:varL=a();for(v=2;v<L;){varD=e[u++],F=newUint8Array(16),q=0;for(y=0;y<16;y++,u++)q+=F[y]=e[u];varU=newUint8Array(q);for(y=0;y<q;y++,u++)U[y]=e[u];v+=17+q;(D>>4===0?p:m)[15&D]=t(F,U)}break;case65501:a();h=a();break;case65498:a();varN,j=e[u++],_=[];for(v=0;v<j;v++){varz=l.componentIds[e[u++]];N=l.components[z];varH=e[u++];N.huffmanTableDC=p[H>>4];N.huffmanTableAC=m[15&H];_.push(N)}varG=e[u++],X=e[u++],V=e[u++];u+=r(e,u,l,_,h,G,X,V>>4,15&V);break;case65535:255!==e[u]&&u--;break;default:if(255===e[u-3]&&e[u-2]>=192&&e[u-2]<=254){u-=3;break}i("JPEG error: unknown marker "+b.toString(16))}b=a()}this.width=l.samplesPerLine;this.height=l.scanLines;this.jfif=f;this.adobe=d;this.components=[];for(v=0;v<l.components.length;v++){N=l.components[v];varW=g[N.quantizationId];W&&(N.quantizationTable=W);this.components.push({output:s(l,N),scaleX:N.h/l.maxH,scaleY:N.v/l.maxV,blocksPerLine:N.blocksPerLine,blocksPerColumn:N.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){vara,r,i,n,s,o,c,l,h,u,f,d=this.width/e,g=this.height/t,m=0,p=this.components.length,b=e*t*p,v=newUint8Array(b),y=newUint32Array(e),k=4294967288;for(c=0;c<p;c++){a=this.components[c];r=a.scaleX*d;i=a.scaleY*g;m=c;f=a.output;n=a.blocksPerLine+1<<3;for(s=0;s<e;s++){l=0|s*r;y[s]=(l&k)<<3|7&l}for(o=0;o<t;o++){l=0|o*i;u=n*(l&k)|(7&l)<<3;for(s=0;s<e;s++){v[m]=f[u+y[s]];m+=p}}}varw=this.decodeTransform;if(w)for(c=0;c<b;)for(l=0,h=0;l<p;l++,c++,h+=2)v[c]=(v[c]*w[h]>>8)+w[h+1];returnv},_isColorConversionNeeded:function(){return!(!this.adobe||!this.adobe.transformCode)||(3===this.numComponents?!(!this.adobe&&0===this.colorTransform):!this.adobe&&1===this.colorTransform)},_convertYccToRgb:function(e){for(vart,a,r,i=0,n=e.length;i<n;i+=3){t=e[i];a=e[i+1];r=e[i+2];e[i]=o(t-179.456+1.402*r);e[i+1]=o(t+135.459-.344*a-.714*r);e[i+2]=o(t-226.816+1.772*a)}returne},_convertYcckToRgb:function(e){for(vart,a,r,i,n=0,s=0,c=e.length;s<c;s+=4){t=e[s];a=e[s+1];r=e[s+2];i=e[s+3];varl=-122.67195406894+a*(-660635669420364e-19*a+.000437130475926232*r-54080610064599e-18*t+.00048449797120281*i-.154362151871126)+r*(-.000957964378445773*r+.000817076911346625*t-.00477271405408747*i+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),h=107.268039397724+a*(219927104525741e-19*a-.000640992018297945*r+.000659397001245577*t+.000426105652938837*i-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*t+.000770482631801132*i-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),u=-20.810012546947+a*(-.000570115196973677*a-263409051004589e-19*r+.0020741088115012*t-.00288260236853442*i+.814272968359295)+r*(-153496057440975e-19*r-.000132689043961446*t+.000560833691242812*i-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*i+.116935020465145)+i*(-.0003435
;case123:this.nextChar();returnh.LBRACE;case125:this.nextChar();returnh.RBRACE}vara=this.strBuf;a.length=0;a[0]=String.fromCharCode(t);for(;(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)a.push(String.fromCharCode(t));varr=a.join("");switch(r.toLowerCase()){case"if":returnh.IF;case"ifelse":returnh.IFELSE;default:returnh.getOperator(r)}},getNumber:function(){vare=this.currentChar,t=this.strBuf;t.length=0;t[0]=String.fromCharCode(e);for(;(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));vara=parseFloat(t.join(""));isNaN(a)&&n("Invalid floating point number: "+a);returna}};returne}();t.PostScriptLexer=u;t.PostScriptParser=c},function(e,t,a){"use strict";varr=a(0),i=a(2),n=a(4),s=r.warn,o=r.isSpace,c=i.Stream,l=n.getEncoding,h=!1,u=function(){functione(){this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}vart={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};e.prototype={convert:function(e,a,r){for(vari,n,o,c=e.length,l=!1,u=0;u<c;u++){varf=e[u];if(f<32){12===f&&(f=(f<<8)+e[++u]);switch(f){case1:if(!h){this.stack=[];break}l=this.executeCommand(2,t.hstem);break;case3:if(!h){this.stack=[];break}l=this.executeCommand(2,t.vstem);break;case4:if(this.flexing){if(this.stack.length<1){l=!0;break}vard=this.stack.pop();this.stack.push(0,d);break}l=this.executeCommand(1,t.vmoveto);break;case5:l=this.executeCommand(2,t.rlineto);break;case6:l=this.executeCommand(1,t.hlineto);break;case7:l=this.executeCommand(1,t.vlineto);break;case8:l=this.executeCommand(6,t.rrcurveto);break;case9:this.stack=[];break;case10:if(this.stack.length<1){l=!0;break}o=this.stack.pop();l=this.convert(a[o],a,r);break;case11:returnl;case13:if(this.stack.length<2){l=!0;break}i=this.stack.pop();n=this.stack.pop();this.lsb=n;this.width=i;this.stack.push(i,n);l=this.executeCommand(2,t.hmoveto);break;case14:this.output.push(t.endchar[0]);break;case21:if(this.flexing)break;l=this.executeCommand(2,t.rmoveto);break;case22:if(this.flexing){this.stack.push(0);break}l=this.executeCommand(1,t.hmoveto);break;case30:l=this.executeCommand(4,t.vhcurveto);break;case31:l=this.executeCommand(4,t.hvcurveto);break;case3072:this.stack=[];break;case3073:if(!h){this.stack=[];break}l=this.executeCommand(2,t.vstem);break;case3074:if(!h){this.stack=[];break}l=this.executeCommand(2,t.hstem);break;case3078:if(r){this.seac=this.stack.splice(-4,4);l=this.executeCommand(0,t.endchar)}elsel=this.executeCommand(4,t.endchar);break;case3079:if(this.stack.length<4){l=!0;break}this.stack.pop();i=this.stack.pop();varg=this.stack.pop();n=this.stack.pop();this.lsb=n;this.width=i;this.stack.push(i,n,g);l=this.executeCommand(3,t.rmoveto);break;case3084:if(this.stack.length<2){l=!0;break}varm=this.stack.pop(),p=this.stack.pop();this.stack.push(p/m);break;case3088:if(this.stack.length<2){l=!0;break}o=this.stack.pop();varb=this.stack.pop();if(0===o&&3===b){varv=this.stack.splice(this.stack.length-17,17);this.stack.push(v[2]+v[0],v[3]+v[1],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14]);l=this.executeCommand(13,t.flex,!0);this.flexing=!1;this.stack.push(v[15],v[16])}else1===o&&0===b&&(this.flexing=!0);break;case3089:break;case3105:this.stack=[];break;default:s('Unknown type 1 charstring command of "'+f+'"')}if(l)break}else{f<=246?f-=139:f=f<=250?256*(f-247)+e[++u]+108:f<=254?-(256*(f-251))-e[++u]-108:(255&e[++u])<<24|(255&e[++u])<<16|(255&e[++u])<<8|(255&e[++u])<<0;this.stack.push(f)}}returnl},executeCommand:function(e,t,a){varr=this.stack.length;if(e>r)return!0;for(vari=r-e,n=i;n<r;n++){vars=this.stack[n];if(s===(0|s))this.output.push(28,s>>8&255,255&s);else{s=65536*s|0;this.output.push(255,s>>24&255,s>>16&255,s>>8&255,255&s)}}this.output.push.apply(this.output,t);a?this.stack.splice(i,e):this.stack.length=0;return!1}};returne}(),f=function(){functione(e){returne>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}functiont(e,t,a){if(a>=e.length)ret