"undefined"===typeof PDFJS&&(("undefined"!==typeof window?window:this).PDFJS={});PDFJS.version="0.8.505";PDFJS.build="da1c944";
(function(){function G(a){ra>=rb&&(H("Info: "+a),PDFJS.LogManager.notify("info",a))}function B(a){ra>=sa&&(H("Warning: "+a),PDFJS.LogManager.notify("warn",a))}function l(a){if(1<arguments.length){var b=["Error:"];b.push.apply(b,arguments);H.apply(null,b);a=[].join.call(arguments," ")}else H("Error: "+a);var b=H,c;try{throw Error();}catch(d){c=d.stack?d.stack.split("\n").slice(2).join("\n"):""}b(c);PDFJS.LogManager.notify("error",a);throw Error(a);}function L(a){B("TODO: "+a)}function sb(a,b){if(!b)return a;
if(0<=b.indexOf(":"))return b;if("/"==b.charAt(0)){var c=a.indexOf("://"),c=a.indexOf("/",c+3);return a.substring(0,c)+b}var d=a.length,c=a.lastIndexOf("#"),d=0<=c?c:d,c=a.lastIndexOf("?",d),c=a.lastIndexOf("/",0<=c?c:d);return a.substring(0,c+1)+b}function $(a,b){if(!a)return!1;var c=a.indexOf(":");if(0>c)return b;switch(a.substr(0,c)){case "http":case "https":case "ftp":case "mailto":return!0;default:return!1}}function V(a,b,c){Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!1});
return c}function Q(a){var b,c=a.length,d="";if("\u00fe"===a[0]&&"\u00ff"===a[1])for(b=2;b<c;b+=2)d+=String.fromCharCode(a.charCodeAt(b)<<8|a.charCodeAt(b+1));else for(b=0;b<c;++b)var e=tb[a.charCodeAt(b)],d=d+(e?String.fromCharCode(e):a.charAt(b));return d}function I(a){return"boolean"==typeof a}function J(a){return a instanceof Name}function O(a,b){if(!(a instanceof Dict))return!1;if(!b)return!0;var c=a.get("Type");return J(c)&&c.name==b}function E(a){return a instanceof Array}function W(a){return"object"==
typeof a&&null!==a&&void 0!==a&&"getBytes"in a}function ta(a){if("object"!=typeof a)return!1;if(!O(a))if(W(a))a=a.dict;else return!1;return a.has("FunctionType")}function aa(a,b){this.name=a;this.comObj=b;this.callbackIndex=1;var c=this.callbacks={},d=this.actionHandler={};d.console_log=[function(a){H.apply(null,a)}];d.console_error="console"in w?[function(a){w.console.error.apply(null,a)}]:[function(a){H.apply(null,a)}];d._warn=[function(a){B(a)}];b.onmessage=function(a){var f=a.data;if(f.isReply)if(a=
f.callbackId,f.callbackId in c){var g=c[a];delete c[a];g(f.data)}else l("Cannot resolve callback "+a);else f.action in d?(a=d[f.action],f.callbackId?(g=new C,g.then(function(a){b.postMessage({isReply:!0,callbackId:f.callbackId,data:a})}),a[0].call(a[1],f.data,g)):a[0].call(a[1],f.data)):l("Unkown action from worker: "+f.action)}}function ua(a,b){var c=document.createElement("canvas");c.width=a;c.height=b;return c}function va(a){a.mozCurrentTransform||(a._scaleX=a._scaleX||1,a._scaleY=a._scaleY||1,
a._originalSave=a.save,a._originalRestore=a.restore,a._originalRotate=a.rotate,a._originalScale=a.scale,a._originalTranslate=a.translate,a._originalTransform=a.transform,a._originalSetTransform=a.setTransform,a._transformMatrix=[a._scaleX,0,0,a._scaleY,0,0],a._transformStack=[],Object.defineProperty(a,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(a,"mozCurrentTransformInverse",{get:function(){var a=this._transformMatrix,c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],
a=a[5],h=c*f-d*e,j=d*e-c*f;return[f/h,d/j,e/j,c/h,(f*g-e*a)/j,(d*g-c*a)/h]}}),a.save=function(){var a=this._transformMatrix;this._transformStack.push(a);this._transformMatrix=a.slice(0,6);this._originalSave()},a.restore=function(){var a=this._transformStack.pop();a&&(this._transformMatrix=a,this._originalRestore())},a.translate=function(a,c){var d=this._transformMatrix;d[4]=d[0]*a+d[2]*c+d[4];d[5]=d[1]*a+d[3]*c+d[5];this._originalTranslate(a,c)},a.scale=function(a,c){var d=this._transformMatrix;d[0]*=
a;d[1]*=a;d[2]*=c;d[3]*=c;this._originalScale(a,c)},a.transform=function(b,c,d,e,f,g){var h=this._transformMatrix;this._transformMatrix=[h[0]*b+h[2]*c,h[1]*b+h[3]*c,h[0]*d+h[2]*e,h[1]*d+h[3]*e,h[0]*f+h[2]*g+h[4],h[1]*f+h[3]*g+h[5]];a._originalTransform(b,c,d,e,f,g)},a.setTransform=function(b,c,d,e,f,g){this._transformMatrix=[b,c,d,e,f,g];a._originalSetTransform(b,c,d,e,f,g)},a.rotate=function(a){var c=Math.cos(a),d=Math.sin(a),e=this._transformMatrix;this._transformMatrix=[e[0]*c+e[2]*d,e[1]*c+e[3]*
d,e[0]*-d+e[2]*c,e[1]*-d+e[3]*c,e[4],e[5]];this._originalRotate(a)})}var w="undefined"===typeof window?this:window,R="undefined"==typeof window,sa=1,rb=5,ra=sa,ba=[0.0010,0,0,0.0010,0,0];w.PDFJS||(w.PDFJS={});w.PDFJS.pdfBug=!1;var H;H="console"in w&&"log"in w.console?w.console.log.bind(w.console):function(){};PDFJS.isValidUrl=$;var ca=[];PDFJS.LogManager={addLogger:function(a){ca.push(a)},notify:function(a,b){for(var c=0,d=ca.length;c<d;c++){var e=ca[c];if(e[a])e[a](b)}}};var wa=PDFJS.PasswordResponses=
{NEED_PASSWORD:1,INCORRECT_PASSWORD:2},S=function(a){this.message=a};S.prototype=Error();S.prototype.name="NotImplementedException";S.constructor=S;var xa=[1,0,0,1,0,0],ub=PDFJS,q=function(){};q.makeCssRgb=function(a){return"rgb("+a[0]+","+a[1]+","+a[2]+")"};q.makeCssCmyk=function(a){a=t.singletons.cmyk.getRgb(a,0);return q.makeCssRgb(a)};q.transform=function(a,b){return[a[0]*b[0]+a[2]*b[1],a[1]*b[0]+a[3]*b[1],a[0]*b[2]+a[2]*b[3],a[1]*b[2]+a[3]*b[3],a[0]*b[4]+a[2]*b[5]+a[4],a[1]*b[4]+a[3]*b[5]+a[5]]};
q.applyTransform=function(a,b){return[a[0]*b[0]+a[1]*b[2]+b[4],a[0]*b[1]+a[1]*b[3]+b[5]]};q.applyInverseTransform=function(a,b){var c=b[0]*b[3]-b[1]*b[2];return[(a[0]*b[3]-a[1]*b[2]+b[2]*b[5]-b[4]*b[3])/c,(-a[0]*b[1]+a[1]*b[0]+b[4]*b[1]-b[5]*b[0])/c]};q.getAxialAlignedBoundingBox=function(a,b){var c=q.applyTransform(a,b),d=q.applyTransform(a.slice(2,4),b),e=q.applyTransform([a[0],a[3]],b),f=q.applyTransform([a[2],a[1]],b);return[Math.min(c[0],d[0],e[0],f[0]),Math.min(c[1],d[1],e[1],f[1]),Math.max(c[0],
d[0],e[0],f[0]),Math.max(c[1],d[1],e[1],f[1])]};q.inverseTransform=function(a){var b=a[0]*a[3]-a[1]*a[2];return[a[3]/b,-a[1]/b,-a[2]/b,a[0]/b,(a[2]*a[5]-a[4]*a[3])/b,(a[4]*a[1]-a[5]*a[0])/b]};q.apply3dTransform=function(a,b){return[a[0]*b[0]+a[1]*b[1]+a[2]*b[2],a[3]*b[0]+a[4]*b[1]+a[5]*b[2],a[6]*b[0]+a[7]*b[1]+a[8]*b[2]]};q.singularValueDecompose2dScale=function(a){var b=[a[0],a[2],a[1],a[3]],c=a[0]*b[0]+a[1]*b[2],d=a[2]*b[1]+a[3]*b[3],e=(c+d)/2;a=Math.sqrt((c+d)*(c+d)-4*(c*d-(a[2]*b[0]+a[3]*b[2])*
(a[0]*b[1]+a[1]*b[3])))/2;b=e-a||1;return[Math.sqrt(e+a||1),Math.sqrt(b)]};q.normalizeRect=function(a){var b=a.slice(0);a[0]>a[2]&&(b[0]=a[2],b[2]=a[0]);a[1]>a[3]&&(b[1]=a[3],b[3]=a[1]);return b};q.intersect=function(a,b){function c(a,b){return a-b}var d=[a[0],a[2],b[0],b[2]].sort(c),e=[a[1],a[3],b[1],b[3]].sort(c),f=[];a=q.normalizeRect(a);b=q.normalizeRect(b);if(d[0]===a[0]&&d[1]===b[0]||d[0]===b[0]&&d[1]===a[0])f[0]=d[1],f[2]=d[2];else return!1;if(e[0]===a[1]&&e[1]===b[1]||e[0]===b[1]&&e[1]===
a[1])f[1]=e[1],f[3]=e[2];else return!1;return f};q.sign=function(a){return 0>a?-1:1};q.concatenateToArray=function(a,b){Array.prototype.push.apply(a,b)};q.prependToArray=function(a,b){Array.prototype.unshift.apply(a,b)};q.extendObj=function(a,b){for(var c in b)a[c]=b[c]};q.getInheritableProperty=function(a,b){for(;a&&!a.has(b);)a=a.get("Parent");return!a?null:a.get(b)};q.inherit=function(a,b,c){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;for(var d in c)a.prototype[d]=c[d]};q.loadScript=
function(a,b){var c=document.createElement("script"),d=!1;c.setAttribute("src",a);b&&(c.onload=function(){d||b();d=!0});document.getElementsByTagName("head")[0].appendChild(c)};var r=ub.Util=q,vb=PDFJS,da=function(a,b,c,d,e,f){this.viewBox=a;this.scale=b;this.rotation=c;this.offsetX=d;this.offsetY=e;var g=(a[2]+a[0])/2,h=(a[3]+a[1])/2,j,m,k;c%=360;switch(0>c?c+360:c){case 180:c=-1;m=j=0;k=1;break;case 90:c=0;m=j=1;k=0;break;case 270:c=0;m=j=-1;k=0;break;default:c=1,m=j=0,k=-1}f&&(m=-m,k=-k);0===c?
(d=Math.abs(h-a[1])*b+d,e=Math.abs(g-a[0])*b+e,f=Math.abs(a[3]-a[1])*b,a=Math.abs(a[2]-a[0])*b):(d=Math.abs(g-a[0])*b+d,e=Math.abs(h-a[1])*b+e,f=Math.abs(a[2]-a[0])*b,a=Math.abs(a[3]-a[1])*b);this.transform=[c*b,j*b,m*b,k*b,d-c*b*g-m*b*h,e-j*b*g-k*b*h];this.width=f;this.height=a;this.fontScale=b};da.prototype={clone:function(a){a=a||{};var b="scale"in a?a.scale:this.scale,c="rotation"in a?a.rotation:this.rotation;return new da(this.viewBox.slice(),b,c,this.offsetX,this.offsetY,a.dontFlip)},convertToViewportPoint:function(a,
b){return r.applyTransform([a,b],this.transform)},convertToViewportRectangle:function(a){var b=r.applyTransform([a[0],a[1]],this.transform);a=r.applyTransform([a[2],a[3]],this.transform);return[b[0],b[1],a[0],a[1]]},convertToPdfPoint:function(a,b){return r.applyInverseTransform([a,b],this.transform)}};vb.PageViewport=da;var tb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],wb=PDFJS,T=function(){this._status=ya;this._handlers=[]},ya=0,K=2,ea={handlers:[],running:!1,unhandledRejections:[],pendingRejectionCheck:!1,scheduleHandlers:function(a){a._status!=ya&&(this.handlers=this.handlers.concat(a._handlers),a._handlers=[],
this.running||(this.running=!0,setTimeout(this.runHandlers.bind(this),0)))},runHandlers:function(){for(;0<this.handlers.length;){var a=this.handlers.shift(),b=a.thisPromise._status,c=a.thisPromise._value;try{1===b?"function"==typeof a.onResolve&&(c=a.onResolve(c)):"function"===typeof a.onReject&&(c=a.onReject(c),b=1,a.thisPromise._unhandledRejection&&this.removeUnhandeledRejection(a.thisPromise))}catch(d){b=K,c=d}a.nextPromise._updateStatus(b,c)}this.running=!1},addUnhandledRejection:function(a){this.unhandledRejections.push({promise:a,
time:Date.now()});this.scheduleRejectionCheck()},removeUnhandeledRejection:function(a){a._unhandledRejection=!1;for(var b=0;b<this.unhandledRejections.length;b++)this.unhandledRejections[b].promise===a&&(this.unhandledRejections.splice(b),b--)},scheduleRejectionCheck:function(){this.pendingRejectionCheck||(this.pendingRejectionCheck=!0,setTimeout(function(){this.pendingRejectionCheck=!1;for(var a=Date.now(),b=0;b<this.unhandledRejections.length;b++)if(500<a-this.unhandledRejections[b].time){var c=
this.unhandledRejections[b].promise._value,d="Unhandled rejection: "+c;c.stack&&(d+="\n"+c.stack);B(d);this.unhandledRejections.splice(b);b--}this.unhandledRejections.length&&this.scheduleRejectionCheck()}.bind(this),500))}};T.all=function(a){function b(a){c._status!==K&&(e=[],c.reject(a))}var c=new T,d=a.length,e=[];if(0===d)return c.resolve(e),c;for(var f=0,g=a.length;f<g;++f)a[f].then(function(a){return function(b){c._status!==K&&(e[a]=b,d--,0===d&&c.resolve(e))}}(f),b);return c};T.prototype={_status:null,
_value:null,_handlers:null,_unhandledRejection:null,_updateStatus:function(a,b){1===this._status||this._status===K||(1==a&&b&&"function"===typeof b.then?b.then(this._updateStatus.bind(this,1),this._updateStatus.bind(this,K)):(this._status=a,this._value=b,a===K&&0===this._handlers.length&&(this._unhandledRejection=!0,ea.addUnhandledRejection(this)),ea.scheduleHandlers(this)))},get isResolved(){return 1===this._status},get isRejected(){return this._status===K},resolve:function(a){this._updateStatus(1,
a)},reject:function(a){this._updateStatus(K,a)},then:function(a,b){var c=new T;this._handlers.push({thisPromise:this,onResolve:a,onReject:b,nextPromise:c});ea.scheduleHandlers(this);return c}};var C=wb.Promise=T,za=function(){this.started={};this.times=[];this.enabled=!0};za.prototype={time:function(a){this.enabled&&(a in this.started&&B("Timer is already running for "+a),this.started[a]=Date.now())},timeEnd:function(a){this.enabled&&(a in this.started||B("Timer has not been started for "+a),this.times.push({name:a,
start:this.started[a],end:Date.now()}),delete this.started[a])},toString:function(){for(var a=this.times,b="",c=0,d=0,e=a.length;d<e;++d){var f=a[d].name;f.length>c&&(c=f.length)}d=0;for(e=a.length;d<e;++d){for(var g=a[d],f=g.end-g.start,g=g.name;g.length<c;)g+=" ";b+=g+" "+f+"ms\n"}return b}};PDFJS.createBlob=function(a,b){if("function"===typeof Blob)return new Blob([a],{type:b});var c=new MozBlobBuilder;c.append(a);return c.getBlob(b)};aa.prototype={on:function(a,b,c){var d=this.actionHandler;d[a]&&
l('There is already an actionName called "'+a+'"');d[a]=[b,c]},send:function(a,b,c){a={action:a,data:b};c&&(b=this.callbackIndex++,this.callbacks[b]=c,a.callbackId=b);this.comObj.postMessage(a)}};var t,D=function(){l("should not call ColorSpace constructor")};D.prototype={getRgb:function(){l("Should not call ColorSpace.getRgb")},getRgbItem:function(){l("Should not call ColorSpace.getRgbItem")},getRgbBuffer:function(){l("Should not call ColorSpace.getRgbBuffer")},getOutputLength:function(){l("Should not call ColorSpace.getOutputLength")},
isPassthrough:function(){return!1},createRgbBuffer:function(a,b,c,d){if(this.isPassthrough(d))return a.subarray(b);var e=new Uint8Array(3*c),f=1<<d;if(1===this.numComps&&c>f&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var g=8>=d?new Uint8Array(f):new Uint16Array(f),h=0;h<f;h++)g[h]=h;var j=new Uint8Array(3*f);this.getRgbBuffer(g,0,f,j,0,d);for(h=d=0;h<c;++h)f=3*a[b++],e[d++]=j[f],e[d++]=j[f+1],e[d++]=j[f+2];return e}this.getRgbBuffer(a,b,c,e,0,d);return e},usesZeroToOneRange:!0};D.parse=
function(a,b,c){a=D.parseToIR(a,b,c);return a instanceof fa?a:D.fromIR(a)};D.fromIR=function(a){var b=E(a)?a[0]:a;switch(b){case "DeviceGrayCS":return this.singletons.gray;case "DeviceRgbCS":return this.singletons.rgb;case "DeviceCmykCS":return this.singletons.cmyk;case "PatternCS":return(a=a[1])&&(a=D.fromIR(a)),new Aa(a);case "IndexedCS":var b=a[2],c=a[3];return new Ba(D.fromIR(a[1]),b,c);case "AlternateCS":return b=a[3],new fa(a[1],D.fromIR(a[2]),M.fromIR(b));case "LabCS":return new Ca(a[1].WhitePoint,
a[1].BlackPoint,a[1].Range);default:l("Unkown name "+b)}return null};D.parseToIR=function(a,b,c){if(J(a)){var d=c.get("ColorSpace");O(d)&&(d=d.get(a.name))&&(a=d)}a=b.fetchIfRef(a);if(J(a))switch(this.mode=d=a.name,d){case "DeviceGray":case "G":return"DeviceGrayCS";case "DeviceRGB":case "RGB":return"DeviceRgbCS";case "DeviceCMYK":case "CMYK":return"DeviceCmykCS";case "Pattern":return["PatternCS",null];default:l("unrecognized colorspace "+d)}else if(E(a))switch(this.mode=d=a[0].name,d){case "DeviceGray":case "G":return"DeviceGrayCS";
case "DeviceRGB":case "RGB":return"DeviceRgbCS";case "DeviceCMYK":case "CMYK":return"DeviceCmykCS";case "CalGray":return"DeviceGrayCS";case "CalRGB":return"DeviceRgbCS";case "ICCBased":d=b.fetchIfRef(a[1]).dict.get("N");if(1==d)return"DeviceGrayCS";if(3==d)return"DeviceRgbCS";if(4==d)return"DeviceCmykCS";break;case "Pattern":return(a=a[1])&&(a=D.parseToIR(a,b,c)),["PatternCS",a];case "Indexed":case "I":return c=D.parseToIR(a[1],b,c),d=a[2]+1,b=b.fetchIfRef(a[3]),W(b)&&(b=b.getBytes()),["IndexedCS",
c,d,b];case "Separation":case "DeviceN":var e=a[1],d=1;J(e)?d=1:E(e)&&(d=e.length);c=D.parseToIR(a[2],b,c);b=M.getIR(b,b.fetchIfRef(a[3]));return["AlternateCS",d,c,b];case "Lab":return["LabCS",a[1].getAll()];default:l('unimplemented color space object "'+d+'"')}else l('unrecognized color space object: "'+a+'"');return null};D.isDefaultDecode=function(a,b){if(!a)return!0;if(2*b!==a.length)return B("The decode map is not the correct length"),!0;for(var c=0,d=a.length;c<d;c+=2)if(0!==a[c]||1!=a[c+1])return!1;
return!0};D.singletons={get gray(){return V(this,"gray",new Da)},get rgb(){return V(this,"rgb",new Ea)},get cmyk(){return V(this,"cmyk",new Fa)}};t=D;var fa,Ga=function(a,b,c){this.name="Alternate";this.numComps=a;this.defaultColor=new Float32Array(a);for(var d=0;d<a;++d)this.defaultColor[d]=1;this.base=b;this.tintFn=c};Ga.prototype={getRgb:function(a,b){var c=new Uint8Array(3);this.getRgbItem(a,b,c,0);return c},getRgbItem:function(a,b,c,d){a="subarray"in a?a.subarray(b,b+this.numComps):Array.prototype.slice.call(a,
b,b+this.numComps);a=this.tintFn(a);this.base.getRgbItem(a,0,c,d)},getRgbBuffer:function(a,b,c,d,e,f){var g=this.tintFn,h=this.base;f=1/((1<<f)-1);for(var j=h.numComps,m=h.usesZeroToOneRange,k=h.isPassthrough(8)||!m,s=k?e:0,n=k?d:new Uint8Array(j*c),p=this.numComps,u=new Float32Array(p),l=0;l<c;l++){for(var v=0;v<p;v++)u[v]=a[b++]*f;var r=g(u);if(m)for(v=0;v<j;v++)n[s++]=255*r[v];else h.getRgbItem(r,0,n,s),s+=j}k||h.getRgbBuffer(n,0,c,d,e,8)},getOutputLength:function(a){return this.base.getOutputLength(a*
this.base.numComps/this.numComps)},isPassthrough:t.prototype.isPassthrough,createRgbBuffer:t.prototype.createRgbBuffer,isDefaultDecode:function(a){return t.isDefaultDecode(a,this.numComps)},usesZeroToOneRange:!0};fa=Ga;var Aa,Ha=function(a){this.name="Pattern";this.base=a};Ha.prototype={};Aa=Ha;var Ba,Ia=function(a,b,c){this.name="Indexed";this.numComps=1;this.defaultColor=new Uint8Array([0]);this.base=a;this.highVal=b;a=a.numComps*b;var d;if(W(c))d=new Uint8Array(a),c=c.getBytes(a),d.set(c);else if("string"==
typeof c){d=new Uint8Array(a);for(b=0;b<a;++b)d[b]=c.charCodeAt(b)}else c instanceof Uint8Array||c instanceof Array?d=c:l("Unrecognized lookup table: "+c);this.lookup=d};Ia.prototype={getRgb:function(a,b){return this.base.getRgb(this.lookup,a[b]*this.base.numComps)},getRgbItem:function(a,b,c,d){this.base.getRgbItem(this.lookup,a[b]*this.base.numComps,c,d)},getRgbBuffer:function(a,b,c,d,e){for(var f=this.base,g=f.numComps,h=f.getOutputLength(g),j=this.lookup,m=0;m<c;++m){var k=a[b++]*g;f.getRgbBuffer(j,
k,1,d,e,8);e+=h}},getOutputLength:function(a){return this.base.getOutputLength(a*this.base.numComps)},isPassthrough:t.prototype.isPassthrough,createRgbBuffer:t.prototype.createRgbBuffer,isDefaultDecode:function(){return!0},usesZeroToOneRange:!0};Ba=Ia;var Da,Ja=function(){this.name="DeviceGray";this.numComps=1;this.defaultColor=new Float32Array([0])};Ja.prototype={getRgb:function(a,b){var c=new Uint8Array(3);this.getRgbItem(a,b,c,0);return c},getRgbItem:function(a,b,c,d){a=255*a[b]|0;c[d]=c[d+1]=
c[d+2]=0>a?0:255<a?255:a},getRgbBuffer:function(a,b,c,d,e,f){f=255/((1<<f)-1);for(var g=0;g<c;++g){var h=f*a[b++]|0;d[e++]=h;d[e++]=h;d[e++]=h}},getOutputLength:function(a){return 3*a},isPassthrough:t.prototype.isPassthrough,createRgbBuffer:t.prototype.createRgbBuffer,isDefaultDecode:function(a){return t.isDefaultDecode(a,this.numComps)},usesZeroToOneRange:!0};Da=Ja;var Ea,Ka=function(){this.name="DeviceRGB";this.numComps=3;this.defaultColor=new Float32Array([0,0,0])};Ka.prototype={getRgb:function(a,
b){var c=new Uint8Array(3);this.getRgbItem(a,b,c,0);return c},getRgbItem:function(a,b,c,d){var e=255*a[b]|0,f=255*a[b+1]|0;a=255*a[b+2]|0;c[d]=0>e?0:255<e?255:e;c[d+1]=0>f?0:255<f?255:f;c[d+2]=0>a?0:255<a?255:a},getRgbBuffer:function(a,b,c,d,e,f){c*=3;if(8==f)d.set(a.subarray(b,b+c),e);else{f=255/((1<<f)-1);for(var g=0;g<c;++g)d[e++]=f*a[b++]|0}},getOutputLength:function(a){return a},isPassthrough:function(a){return 8==a},createRgbBuffer:t.prototype.createRgbBuffer,isDefaultDecode:function(a){return t.isDefaultDecode(a,
this.numComps)},usesZeroToOneRange:!0};Ea=Ka;var Fa,ga=function(a,b,c,d,e){var f=a[b+0]*c,g=a[b+1]*c,h=a[b+2]*c;c*=a[b+3];a=f*(-4.387332384609988*f+54.48615194189176*g+18.82290502165302*h+212.25662451639585*c+-285.2331026137004)+g*(1.7149763477362134*g-5.6096736904047315*h+-17.873870861415444*c-5.497006427196366)+h*(-2.5217340131683033*h-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747)+255;b=f*(8.841041422036149*f+60.118027045597366*g+6.871425592049007*h+31.159100130055922*
c+-79.2970844816548)+g*(-15.310361306967817*g+17.575251261109482*h+131.35250912493976*c-190.9453302588951)+h*(4.444339102852739*h+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578)+255;f=f*(0.8842522430003296*f+8.078677503112928*g+30.89978309703729*h-0.23883238689178934*c+-14.183576799673286)+g*(10.49593273432072*g+63.02378494754052*h+50.606957656360734*c-112.23884253719248)+h*(0.03296041114873217*h+115.60384449646641*c+-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)+
255;d[e]=255<a?255:0>a?0:a;d[e+1]=255<b?255:0>b?0:b;d[e+2]=255<f?255:0>f?0:f},La=function(){this.name="DeviceCMYK";this.numComps=4;this.defaultColor=new Float32Array([0,0,0,1])};La.prototype={getRgb:function(a,b){var c=new Uint8Array(3);ga(a,b,1,c,0);return c},getRgbItem:function(a,b,c,d){ga(a,b,1,c,d)},getRgbBuffer:function(a,b,c,d,e,f){f=1/((1<<f)-1);for(var g=0;g<c;g++)ga(a,b,f,d,e),b+=4,e+=3},getOutputLength:function(a){return 3*(a>>2)},isPassthrough:t.prototype.isPassthrough,createRgbBuffer:t.prototype.createRgbBuffer,
isDefaultDecode:function(a){return t.isDefaultDecode(a,this.numComps)},usesZeroToOneRange:!0};Fa=La;var Ca,Ma=function(a,b,c){this.name="Lab";this.numComps=3;this.defaultColor=new Float32Array([0,0,0]);a||l("WhitePoint missing - required for color space Lab");b=b||[0,0,0];c=c||[-100,100,-100,100];this.XW=a[0];this.YW=a[1];this.ZW=a[2];this.amin=c[0];this.amax=c[1];this.bmin=c[2];this.bmax=c[3];this.XB=b[0];this.YB=b[1];this.ZB=b[2];(0>this.XW||0>this.ZW||1!==this.YW)&&l("Invalid WhitePoint components, no fallback available");
if(0>this.XB||0>this.YB||0>this.ZB)G("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0;if(this.amin>this.amax||this.bmin>this.bmax)G("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100},ha=function(a){return a>=6/29?a*a*a:108/841*(a-4/29)},ia=function(a,b,c,d,e,f){var g=b[c],h=b[c+1];b=b[c+2];!1!==d&&(g=0+100*g/d,h=a.amin+h*(a.amax-a.amin)/d,b=a.bmin+b*(a.bmax-a.bmin)/d);h=h>a.amax?a.amax:h<a.amin?a.amin:h;b=b>a.bmax?a.bmax:b<
a.bmin?a.bmin:b;d=(g+16)/116;g=d-b/200;h=a.XW*ha(d+h/500);d=a.YW*ha(d);g=a.ZW*ha(g);1>a.ZW?(a=3.1339*h+-1.617*d+-0.4906*g,b=-0.9785*h+1.916*d+0.0333*g,h=0.072*h+-0.229*d+1.4057*g):(a=3.2406*h+-1.5372*d+-0.4986*g,b=-0.9689*h+1.8758*d+0.0415*g,h=0.0557*h+-0.204*d+1.057*g);e[f]=255*Math.sqrt(0>a?0:1<a?1:a);e[f+1]=255*Math.sqrt(0>b?0:1<b?1:b);e[f+2]=255*Math.sqrt(0>h?0:1<h?1:h)};Ma.prototype={getRgb:function(a,b){var c=new Uint8Array(3);ia(this,a,b,!1,c,0);return c},getRgbItem:function(a,b,c,d){ia(this,
a,b,!1,c,d)},getRgbBuffer:function(a,b,c,d,e,f){f=(1<<f)-1;for(var g=0;g<c;g++)ia(this,a,b,f,d,e),b+=3,e+=3},getOutputLength:function(a){return a},isPassthrough:t.prototype.isPassthrough,isDefaultDecode:function(){return!0},usesZeroToOneRange:!1};Ca=Ma;var U=function(){l("should not call Pattern constructor")};U.prototype={getPattern:function(a){l("Should not call Pattern.getStyle: "+a)}};U.shadingFromIR=function(a){return N[a[0]].fromIR(a)};U.parseShading=function(a,b,c,d){a=W(a)?a.dict:a;var e=
a.get("ShadingType");switch(e){case 2:case 3:return new N.RadialAxial(a,b,c,d);default:return L("Unsupported shading type: "+e),new N.Dummy}};var N={SMALL_NUMBER:0.01},xb=N,ja=function(a,b,c,d,e){this.matrix=b;this.coordsArr=a.get("Coords");this.shadingType=a.get("ShadingType");this.type="Pattern";this.ctx=e;b=a.get("ColorSpace","CS");this.cs=b=t.parse(b,c,d);d=0;var f=1;a.has("Domain")&&(e=a.get("Domain"),d=e[0],f=e[1]);var g=e=!1;a.has("Extend")&&(g=a.get("Extend"),e=g[0],g=g[1]);if(3===this.shadingType&&
(!e||!g)){var h=this.coordsArr[0],j=this.coordsArr[1],m=this.coordsArr[2],k=this.coordsArr[3],s=this.coordsArr[4],n=this.coordsArr[5],h=Math.sqrt((h-k)*(h-k)+(j-s)*(j-s));m<=n+h&&n<=m+h&&B("Unsupported radial gradient.")}this.extendStart=e;this.extendEnd=g;m=a.get("Function");if(E(m)){for(var p=[],n=0,h=m.length;n<h;n++)j=c.fetchIfRef(m[n]),ta(j)||l("Invalid function"),p.push(M.parse(c,j));m=function(a){for(var b=[],c=0,d=p.length;c<d;c++)b.push(p[c](a)[0]);return b}}else ta(m)||l("Invalid function"),
m=M.parse(c,m);n=f-d;h=n/10;c=this.colorStops=[];if(d>=f||0>=h)G("Bad shading domain.");else{for(j=d;j<=f;j+=h)k=b.getRgb(m([j]),0),k=r.makeCssRgb(k),c.push([(j-d)/n,k]);d="transparent";a.has("Background")&&(k=b.getRgb(a.get("Background"),0),d=r.makeCssRgb(k));e||(c.unshift([0,d]),c[1][0]+=N.SMALL_NUMBER);g||(c[c.length-1][0]-=N.SMALL_NUMBER,c.push([1,d]));this.colorStops=c}};ja.fromIR=function(a){var b=a[1],c=a[2],d=a[3],e=a[4],f=a[5],g=a[6];return{type:"Pattern",getPattern:function(a){var j;2==
b?j=a.createLinearGradient(d[0],d[1],e[0],e[1]):3==b&&(j=a.createRadialGradient(d[0],d[1],f,e[0],e[1],g));a=0;for(var m=c.length;a<m;++a){var k=c[a];j.addColorStop(k[0],k[1])}return j}}};ja.prototype={getIR:function(){var a=this.coordsArr,b=this.shadingType;if(2==b)var c=[a[0],a[1]],d=[a[2],a[3]],e=null,f=null;else 3==b?(c=[a[0],a[1]],d=[a[3],a[4]],e=a[2],f=a[5]):l("getPattern type unknown: "+b);if(a=this.matrix)c=r.applyTransform(c,a),d=r.applyTransform(d,a);return["RadialAxial",b,this.colorStops,
c,d,e,f]}};xb.RadialAxial=ja;var yb=N,ka=function(){this.type="Pattern"};ka.fromIR=function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}};ka.prototype={getIR:function(){return["Dummy"]}};yb.Dummy=ka;var la=function(a,b,c,d,e,f){this.name=a[1][0].name;this.operatorList=a[2];this.matrix=a[3]||[1,0,0,1,0,0];this.bbox=a[4];this.xstep=a[5];this.ystep=a[6];this.paintType=a[7];this.tilingType=a[8];this.color=b;this.objs=d;this.commonObjs=e;this.baseTransform=f;this.type="Pattern";this.ctx=
c};la.getIR=function(a,b,c){var d=b.get("Matrix"),e=b.get("BBox"),f=b.get("XStep"),g=b.get("YStep"),h=b.get("PaintType");b=b.get("TilingType");return["TilingPattern",c,a,d,e,f,g,h,b]};la.prototype={createPatternCanvas:function(a){var b=this.operatorList,c=this.bbox,d=this.xstep,e=this.ystep,f=this.paintType,g=this.color,h=this.objs,j=this.commonObjs;L("TilingType: "+this.tilingType);var m=c[0],k=c[1],s=c[2],n=c[3],p=[m,k],u=[m+d,k+e],l=u[0]-p[0],u=u[1]-p[1],v=r.singularValueDecompose2dScale(this.matrix),
x=r.singularValueDecompose2dScale(this.baseTransform),v=[v[0]*x[0],v[1]*x[1]],l=Math.min(Math.ceil(Math.abs(l*v[0])),3E3),u=Math.min(Math.ceil(Math.abs(u*v[1])),3E3),v=F.getCanvas("pattern",l,u,!0),x=v.context,h=new ma(x,j,h);h.groupLevel=a.groupLevel;this.setFillAndStrokeStyleToContext(x,f,g);this.setScale(l,u,d,e);this.transformToScale(h);h.transform.apply(h,[1,0,0,1,-p[0],-p[1]]);this.clipBbox(h,c,m,k,s,n);h.executeOperatorList(b);return v.canvas},setScale:function(a,b,c,d){this.scale=[a/c,b/d]},
transformToScale:function(a){var b=this.scale;a.transform.apply(a,[b[0],0,0,b[1],0,0])},scaleToContext:function(){var a=this.scale;this.ctx.scale(1/a[0],1/a[1])},clipBbox:function(a,b,c,d,e,f){b&&(E(b)&&4==b.length)&&(a.rectangle(c,d,e-c,f-d),a.clip(),a.endPath())},setFillAndStrokeStyleToContext:function(a,b,c){switch(b){case 1:b=this.ctx;a.fillStyle=b.fillStyle;a.strokeStyle=b.strokeStyle;break;case 2:b=t.singletons.rgb.getRgb(c,0);b=r.makeCssRgb(b);a.fillStyle=b;a.strokeStyle=b;break;default:l("Unsupported paint type: "+
b)}},getPattern:function(a,b){var c=this.createPatternCanvas(b);a=this.ctx;a.setTransform.apply(a,this.baseTransform);a.transform.apply(a,this.matrix);this.scaleToContext();return a.createPattern(c,"repeat")}};var M;M={getSampleArray:function(a,b,c,d){for(var e=1,f=0,g=a.length;f<g;f++)e*=a[f];e*=b;a=[];var g=b=0,h=1/(Math.pow(2,c)-1);d=d.getBytes((e*c+7)/8);for(var j=0,f=0;f<e;f++){for(;b<c;)g<<=8,g|=d[j++],b+=8;b-=c;a.push((g>>b)*h);g&=(1<<b)-1}return a},getIR:function(a,b){var c=b.dict;c||(c=b);
var d=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript],e=c.get("FunctionType");(d=d[e])||l("Unknown type of function");return d.call(this,b,c,a)},fromIR:function(a){switch(a[0]){case 0:return this.constructSampledFromIR(a);case 2:return this.constructInterpolatedFromIR(a);case 3:return this.constructStichedFromIR(a);default:return this.constructPostScriptFromIR(a)}},parse:function(a,b){var c=this.getIR(a,b);return this.fromIR(c)},constructSampled:function(a,
b){function c(a){for(var b=a.length,c=[],d=0,e=0;e<b;e+=2)c[d]=[a[e],a[e+1]],++d;return c}var d=b.get("Domain"),e=b.get("Range");(!d||!e)&&l("No domain or range");var f=d.length/2,g=e.length/2,d=c(d),e=c(e),h=b.get("Size"),j=b.get("BitsPerSample"),m=b.get("Order")||1;1!==m&&L("No support for cubic spline interpolation: "+m);m=b.get("Encode");if(!m)for(var m=[],k=0;k<f;++k)m.push(0),m.push(h[k]-1);var m=c(m),k=(k=b.get("Decode"))?c(k):e,s=this.getSampleArray(h,g,j,a);return[0,f,d,m,k,s,h,g,Math.pow(2,
j)-1,e]},constructSampledFromIR:function(a){return function(b){var c=a[1],d=a[2],e=a[3],f=a[4],g=a[5],h=a[6],j=a[7],m=a[9];c!=b.length&&l("Incorrect number of arguments: "+c+" != "+b.length);for(var k=1<<c,s=new Float64Array(k),n=new Uint32Array(k),p=0;p<k;p++)s[p]=1;for(var u=j,r=1,v=0;v<c;++v){for(var p=d[v][0],x=d[v][1],t=Math.min(Math.max(b[v],p),x),q=e[v][0]+(t-p)*((e[v][1]-e[v][0])/(x-p)),x=h[v],q=Math.min(Math.max(q,0),x-1),p=q<x-1?Math.floor(q):q-1,t=p+1-q,q=q-p,w=p*u,z=w+u,p=0;p<k;p++)p&
r?(s[p]*=q,n[p]+=z):(s[p]*=t,n[p]+=w);u*=x;r<<=1}b=new Float64Array(j);for(p=0;p<j;++p){for(v=c=0;v<k;v++)c+=g[n[v]+p]*s[v];c=f[p][0]+(c-0)*((f[p][1]-f[p][0])/1);b[p]=Math.min(Math.max(c,m[p][0]),m[p][1])}return b}},constructInterpolated:function(a,b){var c=b.get("C0")||[0],d=b.get("C1")||[1],e=b.get("N");(!E(c)||!E(d))&&l("Illegal dictionary for interpolated function");for(var f=c.length,g=[],h=0;h<f;++h)g.push(d[h]-c[h]);return[2,c,g,e]},constructInterpolatedFromIR:function(a){var b=a[1],c=a[2],
d=a[3],e=c.length;return function(a){a=1==d?a[0]:Math.pow(a[0],d);for(var g=[],h=0;h<e;++h)g.push(b[h]+a*c[h]);return g}},constructStiched:function(a,b,c){(a=b.get("Domain"))||l("No domain");1!=a.length/2&&l("Bad domain for stiched function");for(var d=b.get("Functions"),e=[],f=0,g=d.length;f<g;++f)e.push(M.getIR(c,c.fetchIfRef(d[f])));c=b.get("Bounds");b=b.get("Encode");return[3,a,c,b,e]},constructStichedFromIR:function(a){var b=a[1],c=a[2],d=a[3];a=a[4];for(var e=[],f=0,g=a.length;f<g;f++)e.push(M.fromIR(a[f]));
return function(a){a=a[0];var f=b[0],g=b[1];a>g?a=g:a<f&&(a=f);f=0;for(g=c.length;f<g&&!(a<c[f]);++f);g=b[0];0<f&&(g=c[f-1]);var k=b[1];f<c.length&&(k=c[f]);var s=d[2*f];return e[f]([s+(a-g)*(d[2*f+1]-s)/(k-g)])}},constructPostScript:function(a,b){var c=b.get("Domain"),d=b.get("Range");c||l("No domain.");d||l("No range.");var e=new Na(a),e=(new Oa(e)).parse();return[4,c,d,e]},constructPostScriptFromIR:function(a){var b=a[1],c=a[2],d=c.length/2,e=new Pa(a[3]),f=new Qa;return function(a){for(var h=
[],j=0,m=b.length/2;j<m;++j)h.push(a[j]);a=h.join("_");if(f.has(a))return f.get(a);h=e.execute(h);m=[];for(j=d-1;0<=j;--j){var k=h.pop(),s=2*j;k<c[s]?k=c[s]:k>c[s+1]&&(k=c[s+1]);m[j]=k}f.set(a,m);return m}}};var Qa,Ra=function(){this.cache={};this.total=0};Ra.prototype={has:function(a){return a in this.cache},get:function(a){return this.cache[a]},set:function(a,b){1024>this.total&&(this.cache[a]=b,this.total++)}};Qa=Ra;var Sa=function(a){this.stack=a||[]};Sa.prototype={push:function(a){100<=this.stack.length&&
l("PostScript function stack overflow.");this.stack.push(a)},pop:function(){0>=this.stack.length&&l("PostScript function stack underflow.");return this.stack.pop()},copy:function(a){100<=this.stack.length+a&&l("PostScript function stack overflow.");var b=this.stack,c=b.length-a;for(a-=1;0<=a;a--,c++)b.push(b[c])},index:function(a){this.push(this.stack[this.stack.length-a-1])},roll:function(a,b){var c=this.stack,d=c.length-a,e=c.length-1,f=d+(b-Math.floor(b/a)*a),g,h,j;g=d;for(h=e;g<h;g++,h--)j=c[g],
c[g]=c[h],c[h]=j;g=d;for(h=f-1;g<h;g++,h--)j=c[g],c[g]=c[h],c[h]=j;g=f;for(h=e;g<h;g++,h--)j=c[g],c[g]=c[h],c[h]=j}};var Pa,Ta=function(a,b){this.operators=a;this.operands=b};Ta.prototype={execute:function(a){a=new Sa(a);for(var b=0,c=this.operators,d=c.length,e,f;b<d;)if(e=c[b++],"number"==typeof e)a.push(e);else switch(e){case "jz":f=a.pop();(e=a.pop())||(b=f);break;case "j":b=e=a.pop();break;case "abs":e=a.pop();a.push(Math.abs(e));break;case "add":f=a.pop();e=a.pop();a.push(e+f);break;case "and":f=
a.pop();e=a.pop();I(e)&&I(f)?a.push(e&&f):a.push(e&f);break;case "atan":e=a.pop();a.push(Math.atan(e));break;case "bitshift":f=a.pop();e=a.pop();0<e?a.push(e<<f):a.push(e>>f);break;case "ceiling":e=a.pop();a.push(Math.ceil(e));break;case "copy":e=a.pop();a.copy(e);break;case "cos":e=a.pop();a.push(Math.cos(e));break;case "cvi":e=a.pop()|0;a.push(e);break;case "cvr":break;case "div":f=a.pop();e=a.pop();a.push(e/f);break;case "dup":a.copy(1);break;case "eq":f=a.pop();e=a.pop();a.push(e==f);break;case "exch":a.roll(2,
1);break;case "exp":f=a.pop();e=a.pop();a.push(Math.pow(e,f));break;case "false":a.push(!1);break;case "floor":e=a.pop();a.push(Math.floor(e));break;case "ge":f=a.pop();e=a.pop();a.push(e>=f);break;case "gt":f=a.pop();e=a.pop();a.push(e>f);break;case "idiv":f=a.pop();e=a.pop();a.push(e/f|0);break;case "index":e=a.pop();a.index(e);break;case "le":f=a.pop();e=a.pop();a.push(e<=f);break;case "ln":e=a.pop();a.push(Math.log(e));break;case "log":e=a.pop();a.push(Math.log(e)/Math.LN10);break;case "lt":f=
a.pop();e=a.pop();a.push(e<f);break;case "mod":f=a.pop();e=a.pop();a.push(e%f);break;case "mul":f=a.pop();e=a.pop();a.push(e*f);break;case "ne":f=a.pop();e=a.pop();a.push(e!=f);break;case "neg":a.pop();a.push(-f);break;case "not":e=a.pop();I(e)&&I(f)?a.push(e&&f):a.push(e&f);break;case "or":f=a.pop();e=a.pop();I(e)&&I(f)?a.push(e||f):a.push(e|f);break;case "pop":a.pop();break;case "roll":f=a.pop();e=a.pop();a.roll(e,f);break;case "round":e=a.pop();a.push(Math.round(e));break;case "sin":e=a.pop();
a.push(Math.sin(e));break;case "sqrt":e=a.pop();a.push(Math.sqrt(e));break;case "sub":f=a.pop();e=a.pop();a.push(e-f);break;case "true":a.push(!0);break;case "truncate":e=a.pop();e=0>e?Math.ceil(e):Math.floor(e);a.push(e);break;case "xor":f=a.pop();e=a.pop();I(e)&&I(f)?a.push(e!=f):a.push(e^f);break;default:l("Unknown operator "+e)}return a.stack}};Pa=Ta;var Oa,Ua=function(a){this.lexer=a;this.operators=[];this.prev=this.token=null};Ua.prototype={nextToken:function(){this.prev=this.token;this.token=
this.lexer.getToken()},accept:function(a){return this.token.type==a?(this.nextToken(),!0):!1},expect:function(a){if(this.accept(a))return!0;l("Unexpected symbol: found "+this.token.type+" expected "+a+".")},parse:function(){this.nextToken();this.expect(y.LBRACE);this.parseBlock();this.expect(y.RBRACE);return this.operators},parseBlock:function(){for(;;)if(this.accept(y.NUMBER))this.operators.push(this.prev.value);else if(this.accept(y.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(y.LBRACE))this.parseCondition();
else break},parseCondition:function(){var a=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(y.RBRACE);if(this.accept(y.IF))this.operators[a]=this.operators.length,this.operators[a+1]="jz";else if(this.accept(y.LBRACE)){var b=this.operators.length;this.operators.push(null,null);var c=this.operators.length;this.parseBlock();this.expect(y.RBRACE);this.expect(y.IFELSE);this.operators[b]=this.operators.length;this.operators[b+1]="j";this.operators[a]=c;this.operators[a+
1]="jz"}else l("PS Function: error parsing conditional.")}};Oa=Ua;var y={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},A=function(a,b){this.type=a;this.value=b},Va={};A.getOperator=function(a){var b=Va[a];return b?b:Va[a]=new A(y.OPERATOR,a)};A.LBRACE=new A(y.LBRACE,"{");A.RBRACE=new A(y.RBRACE,"}");A.IF=new A(y.IF,"IF");A.IFELSE=new A(y.IFELSE,"IFELSE");var Na,Wa=function(a){this.stream=a;this.nextChar()};Wa.prototype={nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var a=
!1,b=this.currentChar;;){if(0>b)return EOF;if(a){if(10===b||13===b)a=!1}else if(37==b)a=!0;else if(!Lexer.isSpace(b))break;b=this.nextChar()}switch(b|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new A(y.NUMBER,this.getNumber());case 123:return this.nextChar(),A.LBRACE;case 125:return this.nextChar(),A.RBRACE}for(a=String.fromCharCode(b);0<=(b=this.nextChar())&&(65<=b&&90>=b||97<=b&&122>=b);)a+=String.fromCharCode(b);switch(a.toLowerCase()){case "if":return A.IF;
case "ifelse":return A.IFELSE;default:return A.getOperator(a)}},getNumber:function(){for(var a=this.currentChar,b=String.fromCharCode(a);0<=(a=this.nextChar());)if(48<=a&&57>=a||45===a||46===a)b+=String.fromCharCode(a);else break;a=parseFloat(b);isNaN(a)&&l("Invalid floating point number: "+a);return a}};Na=Wa;var z=function(a){if(a.data)this.data=a.data;else{var b=a.dict;a=this.data={};a.subtype=b.get("Subtype").name;var c=b.get("Rect");a.rect=r.normalizeRect(c);a.annotationFlags=b.get("F");c=b.get("C");
a.color=E(c)&&3===c.length?c:[0,0,0];b.has("BS")?(c=b.get("BS"),a.borderWidth=c.has("W")?c.get("W"):1):(c=b.get("Border")||[0,0,1],a.borderWidth=c[2]||0);var d;c=b.get("AP");O(c)?(c=c.get("N"),O(c)?(b=b.get("AS"))&&c.has(b.name)&&(d=c.get(b.name)):d=c):d=void 0;this.appearance=d;a.hasAppearance=!!this.appearance}};z.prototype={getData:function(){return this.data},hasHtml:function(){return!1},getHtmlElement:function(){throw new S("getHtmlElement() should be implemented in subclass");},getEmptyContainer:function(a,
b){!R||l("getEmptyContainer() should be called from main thread");b=b||this.data.rect;var c=document.createElement(a);c.style.width=Math.ceil(b[2]-b[0])+"px";c.style.height=Math.ceil(b[3]-b[1])+"px";return c},isViewable:function(){var a=this.data;return!(!a||a.annotationFlags&&a.annotationFlags&34||!a.rect)},loadResources:function(a){var b=new C;this.appearance.dict.getAsync("Resources").then(function(c){c?(new ObjectLoader(c.map,a,c.xref)).load().then(function(){b.resolve(c)}):b.resolve()}.bind(this));
return b},getOperatorList:function(a){var b=new C;if(!this.appearance)return b.resolve(new OperatorList),b;var c=this.data,d=this.appearance.dict,e=this.loadResources("ExtGState ColorSpace Pattern Shading XObject Font".split(" ")),f=d.get("BBox")||[0,0,1,1],g=d.get("Matrix")||[1,0,0,1,0,0],h;var d=c.rect,j=r.getAxialAlignedBoundingBox(f,g),f=j[0],m=j[1],k=j[2],j=j[3];f===k||m===j?h=[1,0,0,1,d[0],d[1]]:(k=(d[2]-d[0])/(k-f),j=(d[3]-d[1])/(j-m),h=[k,0,0,j,d[0]-f*k,d[1]-m*j]);e.then(function(d){var e=
new OperatorList;e.addOp("beginAnnotation",[c.rect,h,g]);a.getOperatorList(this.appearance,d,e);e.addOp("endAnnotation",[]);b.resolve(e)}.bind(this));return b}};z.getConstructor=function(a,b){if(a){if("Link"===a)return Xa;if("Text"===a)return Ya;if("Widget"===a){if(b)return"Tx"===b?Za:X}else return z}};z.fromData=function(a){var b=z.getConstructor(a.subtype,a.fieldType);if(b)return new b({data:a})};z.fromRef=function(a,b){var c=a.fetchIfRef(b);if(O(c)){var d=c.get("Subtype");if(d=J(d)?d.name:""){var e=
r.getInheritableProperty(c,"FT"),e=J(e)?e.name:"";if(e=z.getConstructor(d,e)){c=new e({dict:c,ref:b});if(c.isViewable())return c;L("unimplemented annotation type: "+d)}}}};z.appendToOperatorList=function(a,b,c,d){var e=new C;c=[];for(var f=0,g=a.length;f<g;++f)c.push(a[f].getOperatorList(d));C.all(c).then(function(a){b.addOp("beginAnnotations",[]);for(var c=0,d=a.length;c<d;++c)b.addOpList(a[c]);b.addOp("endAnnotations",[]);e.resolve()},function(a){e.reject(a)});return e};PDFJS.Annotation=z;var X,
$a=function(a){z.call(this,a);if(!a.data){var b=a.dict,c=this.data;c.fieldValue=Q(r.getInheritableProperty(b,"V")||"");c.alternativeText=Q(b.get("TU")||"");c.defaultAppearance=r.getInheritableProperty(b,"DA")||"";var d=r.getInheritableProperty(b,"FT");c.fieldType=J(d)?d.name:"";c.fieldFlags=r.getInheritableProperty(b,"Ff")||0;this.fieldResources=r.getInheritableProperty(b,"DR")||new Dict;var d=[],e=b;for(a=a.ref;e;){var b=e.get("Parent"),f=e.getRaw("Parent");if(e=e.get("T"))d.unshift(Q(e));else{var e=
b.get("Kids"),g,h;g=0;for(h=e.length;g<h;g++){var j=e[g];if(j.num==a.num&&j.gen==a.gen)break}d.unshift("`"+g)}e=b;a=f}c.fullName=d.join(".")}},zb=z.prototype;r.inherit($a,z,{isViewable:function(){return"Sig"===this.data.fieldType?(L("unimplemented annotation type: Widget signature"),!1):zb.isViewable.call(this)}});X=$a;var Za,ab=function(a){X.call(this,a);a.data||(this.data.textAlignment=r.getInheritableProperty(a.dict,"Q"))};r.inherit(ab,X,{hasHtml:function(){return!this.data.hasAppearance&&!!this.data.fieldValue},
getHtmlElement:function(a){!R||l("getHtmlElement() shall be called from main thread");var b=this.data,c=this.getEmptyContainer("div");c.style.display="table";var d=document.createElement("div");d.textContent=b.fieldValue;d.style.textAlign=["left","center","right"][b.textAlignment];d.style.verticalAlign="middle";d.style.display="table-cell";a=b.fontRefName?a.getData(b.fontRefName):null;var e=d.style;e.fontSize=b.fontSize+"px";e.direction=0>b.fontDirection?"rtl":"ltr";a&&(e.fontWeight=a.black?a.bold?
"bolder":"bold":a.bold?"bold":"normal",e.fontStyle=a.italic?"italic":"normal",b=a.loadedName,e.fontFamily=(b?'"'+b+'", ':"")+(a.fallbackName||"Helvetica, sans-serif"));c.appendChild(d);return c},getOperatorList:function(a){if(this.appearance)return z.prototype.getOperatorList.call(this,a);var b=new C,c=new OperatorList,d=this.data,e=d.defaultAppearance;if(!e)return b.resolve(c),b;for(var f=Stream,g=e.length,h=new Uint8Array(g),j=0;j<g;++j)h[j]=e.charCodeAt(j)&255;e=new f(h);a.getOperatorList(e,this.fieldResources,
c);a=c.fnArray;e=c.argsArray;d.rgb=[0,0,0];for(f=0;0>f;++f)g=a[f],h=e[f],"setFont"===g?(d.fontRefName=h[0],g=h[1],0>g?(d.fontDirection=-1,d.fontSize=-g):(d.fontDirection=1,d.fontSize=g)):"setFillRGBColor"===g?d.rgb=h:"setFillGray"===g&&(g=255*h[0],d.rgb=[g,g,g]);b.resolve(c);return b}});Za=ab;var Ya,bb=function(a){z.call(this,a);if(!a.data){a=a.dict;var b=this.data,c=a.get("Contents"),d=a.get("T");b.content=Q(c||"");b.title=Q(d||"");b.name=!a.has("Name")?"Note":a.get("Name").name}};r.inherit(bb,z,
{getOperatorList:function(){var a=new C;a.resolve(new OperatorList);return a},hasHtml:function(){return!0},getHtmlElement:function(){!R||l("getHtmlElement() shall be called from main thread");var a=this.data,b=a.rect;10>b[3]-b[1]&&(b[3]=b[1]+10);10>b[2]-b[0]&&(b[2]=b[0]+(b[3]-b[1]));var c=this.getEmptyContainer("section",b);c.className="annotText";var d=document.createElement("img");d.style.height=c.style.height;var e=a.name;d.src=PDFJS.imageResourcesPath+"annotation-"+e.toLowerCase()+".svg";d.alt=
"[{{type}} Annotation]";d.dataset.l10nId="text_annotation_type";d.dataset.l10nArgs=JSON.stringify({type:e});var f=document.createElement("div");f.setAttribute("hidden",!0);var e=document.createElement("h1"),g=document.createElement("p");f.style.left=Math.floor(b[2]-b[0])+"px";f.style.top="0px";e.textContent=a.title;if(!a.content&&!a.title)f.setAttribute("hidden",!0);else{for(var b=document.createElement("span"),a=a.content.split(/(?:\r\n?|\n)/),h=0,j=a.length;h<j;++h)b.appendChild(document.createTextNode(a[h])),
h<j-1&&b.appendChild(document.createElement("br"));g.appendChild(b);b=function(){c.style.zIndex+=1;f.removeAttribute("hidden")};a=function(a){if(a.toElement||a.relatedTarget)c.style.zIndex-=1,f.setAttribute("hidden",!0)};f.addEventListener("mouseover",b,!1);f.addEventListener("mouseout",a,!1);d.addEventListener("mouseover",b,!1);d.addEventListener("mouseout",a,!1)}f.appendChild(e);f.appendChild(g);c.appendChild(d);c.appendChild(f);return c}});Ya=bb;var Xa,cb=function(a){z.call(this,a);if(!a.data){var b=
a.dict;a=this.data;var c=b.get("A");if(c)if(b=c.get("S").name,"URI"===b){var d=c.get("URI");$(d,!1)||(d="");a.url=d}else"GoTo"===b?a.dest=c.get("D"):"GoToR"===b?(b=c.get("F"),O(b)&&(d=b.get("F")||""),$(d,!1)||(d=""),a.url=d,a.dest=c.get("D")):"Named"===b?a.action=c.get("N").name:L("unrecognized link type: "+b);else b.has("Dest")&&(d=b.get("Dest"),a.dest=J(d)?d.name:d)}};r.inherit(cb,z,{hasOperatorList:function(){return!1},hasHtml:function(){return!0},getHtmlElement:function(){var a=this.data.rect,
b=document.createElement("a"),c=this.data.borderWidth;b.style.borderWidth=c+"px";for(var d=this.data.color,e=[],f=0;3>f;++f)e[f]=Math.round(255*d[f]);b.style.borderColor=r.makeCssRgb(e);b.style.borderStyle="solid";d=a[3]-a[1]-2*c;b.style.width=a[2]-a[0]-2*c+"px";b.style.height=d+"px";b.href=this.data.url||"";return b}});Xa=cb;PDFJS.maxImageSize=void 0===PDFJS.maxImageSize?-1:PDFJS.maxImageSize;PDFJS.disableFontFace=void 0===PDFJS.disableFontFace?!1:PDFJS.disableFontFace;PDFJS.getDocument=function(a,
b,c,d){var e,f;"string"===typeof a?a={url:a}:"object"==typeof a&&null!==a&&void 0!==a&&"byteLength"in a?a={data:a}:"object"!==typeof a&&l("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");!a.url&&!a.data&&l("Invalid parameter array, need either .data or .url");var g={};for(e in a)g[e]="url"===e&&"undefined"!==typeof window?sb(window.location.href,a[e]):a[e];a=new PDFJS.Promise;e=new PDFJS.Promise;f=new db(a,e,b,d);a.then(function(){f.passwordCallback=c;f.fetchDocument(g)});
return e};var eb=function(a,b){this.pdfInfo=a;this.transport=b};eb.prototype={get numPages(){return this.pdfInfo.numPages},get fingerprint(){return this.pdfInfo.fingerprint},get embeddedFontsUsed(){return this.transport.embeddedFontsUsed},getPage:function(a){return this.transport.getPage(a)},getDestinations:function(){return this.transport.getDestinations()},getJavaScript:function(){var a=new PDFJS.Promise;a.resolve(this.pdfInfo.javaScript);return a},getOutline:function(){var a=new PDFJS.Promise;
a.resolve(this.pdfInfo.outline);return a},getMetadata:function(){var a=new PDFJS.Promise,b=this.pdfInfo.metadata;a.resolve({info:this.pdfInfo.info,metadata:b?new PDFJS.Metadata(b):null});return a},isEncrypted:function(){var a=new PDFJS.Promise;a.resolve(this.pdfInfo.encrypted);return a},getData:function(){var a=new PDFJS.Promise;this.transport.getData(a);return a},dataLoaded:function(){return this.transport.dataLoaded()},destroy:function(){this.transport.destroy()}};var fb=function(a,b){this.pageInfo=
a;this.transport=b;this.stats=new za;this.stats.enabled=!!w.PDFJS.enableStats;this.commonObjs=b.commonObjs;this.objs=new na;this.pendingDestroy=this.cleanupAfterRender=this.receivingOperatorList=!1;this.renderTasks=[]};fb.prototype={get pageNumber(){return this.pageInfo.pageIndex+1},get rotate(){return this.pageInfo.rotate},get ref(){return this.pageInfo.ref},get view(){return this.pageInfo.view},getViewport:function(a,b){2>arguments.length&&(b=this.rotate);return new PDFJS.PageViewport(this.view,
a,b,0,0)},getAnnotations:function(){if(this.annotationsPromise)return this.annotationsPromise;var a=new PDFJS.Promise;this.annotationsPromise=a;this.transport.getAnnotations(this.pageInfo.pageIndex);return a},render:function(a){function b(a){var b=f.renderTasks.indexOf(d);0<=b&&f.renderTasks.splice(b,1);f.cleanupAfterRender&&(f.pendingDestroy=!0);f._tryDestroy();a?e.reject(a):e.resolve();c.timeEnd("Rendering");c.timeEnd("Overall")}var c=this.stats;c.time("Overall");this.pendingDestroy=!1;this.displayReadyPromise||
(this.receivingOperatorList=!0,this.displayReadyPromise=new C,this.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-1}));var d=new gb(b,a,this.objs,this.commonObjs,this.operatorList,this.pageNumber);this.renderTasks.push(d);var e=new hb(d),f=this;this.displayReadyPromise.then(function(a){f.pendingDestroy?b():(c.time("Rendering"),d.initalizeGraphics(a),d.operatorListChanged())},function(a){b(a)});
return e},getTextContent:function(){var a=new PDFJS.Promise;this.transport.messageHandler.send("GetTextContent",{pageIndex:this.pageNumber-1},function(b){a.resolve(b)});return a},getOperationList:function(){var a=new PDFJS.Promise;a.resolve({dependencyFontsID:null,operatorList:null});return a},destroy:function(){this.pendingDestroy=!0;this._tryDestroy()},_tryDestroy:function(){if(this.pendingDestroy&&!(0!==this.renderTasks.length||this.receivingOperatorList))delete this.operatorList,delete this.displayReadyPromise,
this.objs.clear(),this.pendingDestroy=!1},_startRenderPage:function(a){this.displayReadyPromise.resolve(a)},_renderPageChunk:function(a){r.concatenateToArray(this.operatorList.fnArray,a.fnArray);r.concatenateToArray(this.operatorList.argsArray,a.argsArray);this.operatorList.lastChunk=a.lastChunk;for(var b=0;b<this.renderTasks.length;b++)this.renderTasks[b].operatorListChanged();a.lastChunk&&(this.receivingOperatorList=!1,this._tryDestroy())}};var db,ib=function(a,b,c,d){this.pdfDataRangeTransport=
c;this.workerReadyPromise=b;this.progressCallback=d;this.commonObjs=new na;this.pageCache=[];this.pagePromises=[];this.embeddedFontsUsed=!1;this.passwordCallback=null;if(!w.PDFJS.disableWorker&&"undefined"!==typeof Worker){b=PDFJS.workerSrc;"undefined"===typeof b&&l("No PDFJS.workerSrc specified");try{var e=new Worker(b),f=new aa("main",e);this.messageHandler=f;f.on("test",function(b){b?(this.worker=e,this.setupMessageHandler(f)):(w.PDFJS.disableWorker=!0,this.setupFakeWorker());a.resolve()}.bind(this));
var g=new Uint8Array(1);f.send("test",g);return}catch(h){G("The worker has been disabled.")}}w.PDFJS.disableWorker=!0;this.loadFakeWorkerFiles().then(function(){this.setupFakeWorker();a.resolve()}.bind(this))};ib.prototype={destroy:function(){this.pageCache=[];this.pagePromises=[];var a=this;this.messageHandler.send("Terminate",null,function(){a.worker&&a.worker.terminate()})},loadFakeWorkerFiles:function(){PDFJS.fakeWorkerFilesLoadedPromise||(PDFJS.fakeWorkerFilesLoadedPromise=new C,r.loadScript(PDFJS.workerSrc));
return PDFJS.fakeWorkerFilesLoadedPromise},setupFakeWorker:function(){B("Setting up fake worker.");var a={postMessage:function(b){a.onmessage({data:b})},terminate:function(){}},b=new aa("main",a);this.setupMessageHandler(b);PDFJS.WorkerMessageHandler.setup(b)},setupMessageHandler:function(a){function b(b){a.send("UpdatePassword",b)}this.messageHandler=a;var c=this.pdfDataRangeTransport;c&&(c.addRangeListener(function(b,c){a.send("OnDataRange",{begin:b,chunk:c})}),c.addProgressListener(function(b){a.send("OnDataProgress",
{loaded:b})}),a.on("RequestDataRange",function(a){c.requestDataRange(a.begin,a.end)},this));a.on("GetDoc",function(a){this.pdfDocument=a=new eb(a.pdfInfo,this);this.workerReadyPromise.resolve(a)},this);a.on("NeedPassword",function(a){if(this.passwordCallback)return this.passwordCallback(b,wa.NEED_PASSWORD);this.workerReadyPromise.reject(a.exception.message,a.exception)},this);a.on("IncorrectPassword",function(a){if(this.passwordCallback)return this.passwordCallback(b,wa.INCORRECT_PASSWORD);this.workerReadyPromise.reject(a.exception.message,
a.exception)},this);a.on("InvalidPDF",function(a){this.workerReadyPromise.reject(a.exception.name,a.exception)},this);a.on("MissingPDF",function(a){this.workerReadyPromise.reject(a.exception.message,a.exception)},this);a.on("UnknownError",function(a){this.workerReadyPromise.reject(a.exception.message,a.exception)},this);a.on("GetPage",function(a){a=a.pageInfo;var b=new fb(a,this);this.pageCache[a.pageIndex]=b;this.pagePromises[a.pageIndex].resolve(b)},this);a.on("GetAnnotations",function(a){this.pageCache[a.pageIndex].annotationsPromise.resolve(a.annotations)},
this);a.on("StartRenderPage",function(a){var b=this.pageCache[a.pageIndex];b.stats.timeEnd("Page Request");b._startRenderPage(a.transparency)},this);a.on("RenderPageChunk",function(a){this.pageCache[a.pageIndex]._renderPageChunk(a.operatorList)},this);a.on("commonobj",function(a){var b=a[0],c=a[1];if(!this.commonObjs.hasData(b))switch(c){case "Font":a=a[2];var g;if("error"in a){var h=a.error;B("Error during font loading: "+h);this.commonObjs.resolve(b,h);break}else g=new jb(a);P.bind([g],function(){this.commonObjs.resolve(b,
g)}.bind(this));break;case "FontPath":this.commonObjs.resolve(b,a[2]);break;default:h("Got unknown common object type "+c)}},this);a.on("obj",function(a){var b=a[0],c=a[2],g=this.pageCache[a[1]];if(!g.objs.hasData(b))switch(c){case "JpegStream":a=a[3];var h=g.objs,j=new Image;j.onload=function(){h.resolve(b,j)};j.src="data:image/jpeg;base64,"+window.btoa(a);break;case "Image":a=a[3];g.objs.resolve(b,a);"data"in a&&8E6<a.data.length&&(g.cleanupAfterRender=!0);break;default:l("Got unknown object type "+
c)}},this);a.on("DocProgress",function(a){this.progressCallback&&this.progressCallback({loaded:a.loaded,total:a.total})},this);a.on("DocError",function(a){this.workerReadyPromise.reject(a)},this);a.on("PageError",function(a){var b=this.pageCache[a.pageNum-1];b.displayReadyPromise?b.displayReadyPromise.reject(a.error):l(a.error)},this);a.on("JpegDecode",function(a,b){var c=a[0],g=a[1];3!=g&&1!=g&&l("Only 3 component or 1 component can be returned");var h=new Image;h.onload=function(){var a=h.width,
c=h.height,d=a*c,f=4*d,d=new Uint8Array(d*g),n=ua(a,c).getContext("2d");n.drawImage(h,0,0);n=n.getImageData(0,0,a,c).data;if(3==g)for(var p=0,u=0;p<f;p+=4,u+=3)d[u]=n[p],d[u+1]=n[p+1],d[u+2]=n[p+2];else if(1==g)for(u=p=0;p<f;p+=4,u++)d[u]=n[p];b.resolve({data:d,width:a,height:c})}.bind(this);c="data:image/jpeg;base64,"+window.btoa(c);h.src=c})},fetchDocument:function(a){a.disableAutoFetch=PDFJS.disableAutoFetch;a.chunkedViewerLoading=!!this.pdfDataRangeTransport;this.messageHandler.send("GetDocRequest",
{source:a,disableRange:PDFJS.disableRange,maxImageSize:PDFJS.maxImageSize,disableFontFace:PDFJS.disableFontFace})},getData:function(a){this.messageHandler.send("GetData",null,function(b){a.resolve(b)})},dataLoaded:function(){var a=new PDFJS.Promise;this.messageHandler.send("DataLoaded",null,function(b){a.resolve(b)});return a},getPage:function(a,b){var c=a-1;if(c in this.pagePromises)return this.pagePromises[c];b=new PDFJS.Promise("Page "+a);this.pagePromises[c]=b;this.messageHandler.send("GetPageRequest",
{pageIndex:c});return b},getAnnotations:function(a){this.messageHandler.send("GetAnnotationsRequest",{pageIndex:a})},getDestinations:function(){var a=new PDFJS.Promise;this.messageHandler.send("GetDestinations",null,function(b){a.resolve(b)});return a}};db=ib;var na,kb=function(){this.objs={}};kb.prototype={ensureObj:function(a){if(this.objs[a])return this.objs[a];var b={promise:new C(a),data:null,resolved:!1};return this.objs[a]=b},get:function(a,b){if(b)return this.ensureObj(a).promise.then(b),
null;var c=this.objs[a];(!c||!c.resolved)&&l("Requesting object that isn't resolved yet "+a);return c.data},resolve:function(a,b){var c=this.ensureObj(a);c.resolved=!0;c.data=b;c.promise.resolve(b)},isResolved:function(a){var b=this.objs;return b[a]?b[a].resolved:!1},hasData:function(a){return this.isResolved(a)},getData:function(a){var b=this.objs;return!b[a]||!b[a].resolved?null:b[a].data},clear:function(){this.objs={}}};na=kb;var hb,oa=function(a){this.internalRenderTask=a;C.call(this)};oa.prototype=
Object.create(C.prototype);oa.prototype.cancel=function(){this.internalRenderTask.cancel()};hb=oa;var gb,lb=function(a,b,c,d,e,f){this.callback=a;this.params=b;this.objs=c;this.commonObjs=d;this.operatorListIdx=null;this.operatorList=e;this.pageNumber=f;this.running=!1;this.graphicsReadyCallback=null;this.cancelled=this.graphicsReady=!1};lb.prototype={initalizeGraphics:function(a){if(!this.cancelled){PDFJS.pdfBug&&("StepperManager"in w&&w.StepperManager.enabled)&&(this.stepper=w.StepperManager.create(this.pageNumber-
1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var b=this.params;this.gfx=new ma(b.canvasContext,this.commonObjs,this.objs,b.textLayer,b.imageLayer);this.gfx.beginDrawing(b.viewport,a);this.operatorListIdx=0;this.graphicsReady=!0;this.graphicsReadyCallback&&this.graphicsReadyCallback()}},cancel:function(){this.running=!1;this.cancelled=!0;this.callback("cancelled")},operatorListChanged:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),
this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continue.bind(this))},_continue:function(){this.running=!0;this.cancelled||(this.params.continueCallback?this.params.continueCallback(this._next.bind(this)):this._next())},_next:function(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continue.bind(this),this.stepper),this.operatorListIdx===this.operatorList.fnArray.length&&(this.running=!1,
this.operatorList.lastChunk&&(this.gfx.endDrawing(),this.callback())))}};gb=lb;var Ab=PDFJS,mb=function(a){"string"===typeof a?(a=a.replace(/>\\376\\377([^<]+)/g,function(a,c){for(var d=c.replace(/\\([0-3])([0-7])([0-7])/g,function(a,b,c,d){return String.fromCharCode(64*b+8*c+1*d)}),e="",f=0;f<d.length;f+=2)var g=256*d.charCodeAt(f)+d.charCodeAt(f+1),e=e+("&#x"+(65536+g).toString(16).substring(1)+";");return">"+e}),a=(new DOMParser).parseFromString(a,"application/xml")):a instanceof Document||l("Metadata: Invalid metadata object");
this.metaDocument=a;this.metadata={};this.parse()};mb.prototype={parse:function(){var a=this.metaDocument.documentElement;if("rdf:rdf"!==a.nodeName.toLowerCase())for(a=a.firstChild;a&&"rdf:rdf"!==a.nodeName.toLowerCase();)a=a.nextSibling;var b=a?a.nodeName.toLowerCase():null;if(a&&"rdf:rdf"===b&&a.hasChildNodes()){var a=a.childNodes,c,d,e,f,g,h;e=0;for(g=a.length;e<g;e++)if(b=a[e],"rdf:description"===b.nodeName.toLowerCase()){f=0;for(h=b.childNodes.length;f<h;f++)"#text"!==b.childNodes[f].nodeName.toLowerCase()&&
(c=b.childNodes[f],d=c.nodeName.toLowerCase(),this.metadata[d]=c.textContent.trim())}}},get:function(a){return this.metadata[a]||null},has:function(a){return"undefined"!==typeof this.metadata[a]}};Ab.Metadata=mb;var F,Y={};F={getCanvas:function(a,b,c,d){a in Y?(a=Y[a],a.canvas.width=b,a.canvas.height=c,a.context.setTransform(1,0,0,1,0,0)):(b=ua(b,c),c=b.getContext("2d"),d&&va(c),Y[a]=a={canvas:b,context:c});return a},clear:function(){Y={}}};var pa=function(a){this.alphaIsShape=!1;this.fontSize=0;
this.fontSizeScale=1;this.textMatrix=xa;this.fontMatrix=ba;this.wordSpacing=this.charSpacing=this.lineY=this.lineX=this.y=this.x=this.leading=0;this.textHScale=1;this.textRise=this.textRenderingMode=0;this.fillColorSpace=t.singletons.gray;this.fillColorSpaceObj=null;this.strokeColorSpace=t.singletons.gray;this.strokeColorObj=this.fillColorObj=this.strokeColorSpaceObj=null;this.strokeColor=this.fillColor="#000000";this.lineWidth=this.strokeAlpha=this.fillAlpha=1;this.paintFormXObjectDepth=0;this.old=
a};pa.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(a,b){this.x=a;this.y=b}};var ma,nb=function(a,b,c,d,e){this.ctx=a;this.current=new pa;this.stateStack=[];this.pendingClip=null;this.pendingEOFill=!1;this.xobjs=this.res=null;this.commonObjs=b;this.objs=c;this.textLayer=d;this.imageLayer=e;this.groupStack=[];this.baseTransform=this.processingType3=null;this.baseTransformStack=[];this.groupLevel=0;a&&va(a)},Z=function(a,b){if("undefined"!==typeof ImageData&&b instanceof
ImageData)a.putImageData(b,0,0);else{var c=a.createImageData(b.width,b.height),d=b.data,e=c.data;if("set"in e)e.set(d);else for(var f=0,g=e.length;f<g;f++)e[f]=d[f];a.putImageData(c,0,0)}},Bb=["butt","round","square"],Cb=["miter","round","bevel"],Db={},ob={};nb.prototype={slowCommands:{stroke:!0,closeStroke:!0,fill:!0,eoFill:!0,fillStroke:!0,eoFillStroke:!0,closeFillStroke:!0,closeEOFillStroke:!0,showText:!0,showSpacedText:!0,setStrokeColorSpace:!0,setFillColorSpace:!0,setStrokeColor:!0,setStrokeColorN:!0,
setFillColor:!0,setFillColorN:!0,setStrokeGray:!0,setFillGray:!0,setStrokeRGBColor:!0,setFillRGBColor:!0,setStrokeCMYKColor:!0,setFillCMYKColor:!0,paintJpegXObject:!0,paintImageXObject:!0,paintInlineImageXObject:!0,paintInlineImageXObjectGroup:!0,paintImageMaskXObject:!0,paintImageMaskXObjectGroup:!0,shadingFill:!0},beginDrawing:function(a,b){var c=this.ctx.canvas.width,d=this.ctx.canvas.height;b?this.ctx.clearRect(0,0,c,d):(this.ctx.mozOpaque=!0,this.ctx.save(),this.ctx.fillStyle="rgb(255, 255, 255)",
this.ctx.fillRect(0,0,c,d),this.ctx.restore());c=a.transform;this.baseTransform=c.slice();this.ctx.save();this.ctx.transform.apply(this.ctx,c);this.textLayer&&this.textLayer.beginLayout();this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(a,b,c,d){var e=a.argsArray;a=a.fnArray;b=b||0;var f=e.length;if(f==b)return b;for(var g=Date.now()+15,h=this.commonObjs,j=this.objs,m,k=this.slowCommands;;){if(d&&b===d.nextBreakPoint)return d.breakIt(b,c),b;m=a[b];if("dependency"!==m)this[m].apply(this,
e[b]);else for(var s=e[b],n=0,p=s.length;n<p;n++){var u=s[n],l="g_"==u.substring(0,2);if(!l&&!j.isResolved(u))return j.get(u,c),b;if(l&&!h.isResolved(u))return h.get(u,c),b}b++;if(b==f)return b;if(c&&k[m]&&Date.now()>g)return setTimeout(c,0),b}},endDrawing:function(){this.ctx.restore();F.clear();this.textLayer&&this.textLayer.endLayout();this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(a){this.current.lineWidth=a;this.ctx.lineWidth=a},setLineCap:function(a){this.ctx.lineCap=Bb[a]},
setLineJoin:function(a){this.ctx.lineJoin=Cb[a]},setMiterLimit:function(a){this.ctx.miterLimit=a},setDash:function(a,b){var c=this.ctx;"setLineDash"in c?(c.setLineDash(a),c.lineDashOffset=b):(c.mozDash=a,c.mozDashOffset=b)},setRenderingIntent:function(){},setFlatness:function(){},setGState:function(a){for(var b=0,c=a.length;b<c;b++){var d=a[b],e=d[1];switch(d[0]){case "LW":this.setLineWidth(e);break;case "LC":this.setLineCap(e);break;case "LJ":this.setLineJoin(e);break;case "ML":this.setMiterLimit(e);
break;case "D":this.setDash(e[0],e[1]);break;case "RI":this.setRenderingIntent(e);break;case "FL":this.setFlatness(e);break;case "Font":this.setFont(e[0],e[1]);break;case "CA":this.current.strokeAlpha=d[1];break;case "ca":this.current.fillAlpha=d[1];this.ctx.globalAlpha=d[1];break;case "BM":e&&e.name&&"Normal"!==e.name?(d=e.name.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}).substring(1),this.ctx.globalCompositeOperation=d,this.ctx.globalCompositeOperation!==d&&B('globalCompositeOperation "'+
d+'" is not supported')):this.ctx.globalCompositeOperation="source-over"}}},save:function(){this.ctx.save();var a=this.current;this.stateStack.push(a);this.current=a.clone()},restore:function(){var a=this.stateStack.pop();a&&(this.current=a,this.ctx.restore())},transform:function(a,b,c,d,e,f){this.ctx.transform(a,b,c,d,e,f)},moveTo:function(a,b){this.ctx.moveTo(a,b);this.current.setCurrentPoint(a,b)},lineTo:function(a,b){this.ctx.lineTo(a,b);this.current.setCurrentPoint(a,b)},curveTo:function(a,b,
c,d,e,f){this.ctx.bezierCurveTo(a,b,c,d,e,f);this.current.setCurrentPoint(e,f)},curveTo2:function(a,b,c,d){var e=this.current;this.ctx.bezierCurveTo(e.x,e.y,a,b,c,d);e.setCurrentPoint(c,d)},curveTo3:function(a,b,c,d){this.curveTo(a,b,c,d,c,d);this.current.setCurrentPoint(c,d)},closePath:function(){this.ctx.closePath()},rectangle:function(a,b,c,d){this.ctx.rect(a,b,c,d)},stroke:function(a){a="undefined"!==typeof a?a:!0;var b=this.ctx,c=this.current.strokeColor;0===this.current.lineWidth&&(b.lineWidth=
this.getSinglePixelWidth());b.globalAlpha=this.current.strokeAlpha;c&&c.hasOwnProperty("type")&&"Pattern"===c.type?(b.save(),b.strokeStyle=c.getPattern(b,this),b.stroke(),b.restore()):b.stroke();a&&this.consumePath();b.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath();this.stroke()},fill:function(a){a="undefined"!==typeof a?a:!0;var b=this.ctx,c=this.current.fillColor,d=!1;c&&(c.hasOwnProperty("type")&&"Pattern"===c.type)&&(b.save(),b.fillStyle=c.getPattern(b,this),d=!0);
if(this.pendingEOFill){if("mozFillRule"in this.ctx)this.ctx.mozFillRule="evenodd",this.ctx.fill(),this.ctx.mozFillRule="nonzero";else try{this.ctx.fill("evenodd")}catch(e){this.ctx.fill()}this.pendingEOFill=!1}else this.ctx.fill();d&&b.restore();a&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0;this.fill()},fillStroke:function(){this.fill(!1);this.stroke(!1);this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0;this.fillStroke()},closeFillStroke:function(){this.closePath();
this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0;this.closePath();this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=Db},eoClip:function(){this.pendingClip=ob},beginText:function(){this.current.textMatrix=xa;this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0},endText:function(){if("pendingTextPaths"in this){var a=this.pendingTextPaths,b=this.ctx;b.save();b.beginPath();for(var c=0;c<a.length;c++){var d=a[c];b.setTransform.apply(b,
d.transform);b.translate(d.x,d.y);d.addToPath(b,d.fontSize)}b.restore();b.clip();b.beginPath();delete this.pendingTextPaths}else this.ctx.beginPath()},setCharSpacing:function(a){this.current.charSpacing=a},setWordSpacing:function(a){this.current.wordSpacing=a},setHScale:function(a){this.current.textHScale=a/100},setLeading:function(a){this.current.leading=-a},setFont:function(a,b){var c=this.commonObjs.get(a),d=this.current;c||l("Can't find font for "+a);d.fontMatrix=c.fontMatrix?c.fontMatrix:ba;
(0===d.fontMatrix[0]||0===d.fontMatrix[3])&&B("Invalid font matrix for font "+a);0>b?(b=-b,d.fontDirection=-1):d.fontDirection=1;this.current.font=c;this.current.fontSize=b;if(!c.coded){var d=c.black?c.bold?"bolder":"bold":c.bold?"bold":"normal",e=c.italic?"italic":"normal",c='"'+(c.loadedName||"sans-serif")+'", '+c.fallbackName,f=16<=b?b:16;this.current.fontSizeScale=16!=f?1:b/16;this.ctx.font=e+" "+d+" "+f+"px "+c}},setTextRenderingMode:function(a){this.current.textRenderingMode=a},setTextRise:function(a){this.current.textRise=
a},moveText:function(a,b){this.current.x=this.current.lineX+=a;this.current.y=this.current.lineY+=b},setLeadingMoveText:function(a,b){this.setLeading(-b);this.moveText(a,b)},setTextMatrix:function(a,b,c,d,e,f){this.current.textMatrix=[a,b,c,d,e,f];this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},applyTextTransforms:function(){var a=this.ctx,b=this.current;a.transform.apply(a,b.textMatrix);a.translate(b.x,b.y+b.textRise);
0<b.fontDirection?a.scale(b.textHScale,-1):a.scale(-b.textHScale,1)},createTextGeometry:function(){var a={},b=this.current.font,c=this.ctx.mozCurrentTransform,d=c[0],e=c[1],f=c[2],g=c[3],h=c[4],c=c[5],j=0<=d?Math.sqrt(d*d+e*e):-Math.sqrt(d*d+e*e),f=0<=g?Math.sqrt(f*f+g*g):-Math.sqrt(f*f+g*g),d=Math.atan2(e,d);a.x=h;a.y=c;a.hScale=j;a.vScale=f;a.angle=d;a.spaceWidth=b.spaceWidth;a.fontName=b.loadedName;a.fontFamily=b.fallbackName;a.fontSize=this.current.fontSize;return a},paintChar:function(a,b,c){var d=
this.ctx,e=this.current,f=e.font,g=e.fontSize/e.fontSizeScale,h=e.textRenderingMode,e=h&3,h=!!(h&4),j;if(f.disableFontFace||h)j=f.getPathGenerator(this.commonObjs,a);f.disableFontFace?(d.save(),d.translate(b,c),d.beginPath(),j(d,g),(0===e||2===e)&&d.fill(),(1===e||2===e)&&d.stroke(),d.restore()):((0===e||2===e)&&d.fillText(a,b,c),(1===e||2===e)&&d.strokeText(a,b,c));h&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:d.mozCurrentTransform,x:b,y:c,fontSize:g,addToPath:j})},showText:function(a,
b){var c=this.ctx,d=this.current,e=d.font,f=d.fontSize,g=d.fontSizeScale,h=d.charSpacing,j=d.wordSpacing,m=d.textHScale*d.fontDirection,k=d.fontMatrix||ba,s=a.length,n,p=this.textLayer&&!b?!0:!1,u=0,l=e.vertical,v=e.defaultVMetrics;if(e.coded){c.save();c.transform.apply(c,d.textMatrix);c.translate(d.x,d.y);c.scale(m,1);p&&(this.save(),c.scale(1,-1),n=this.createTextGeometry(),this.restore());for(var x=0;x<s;++x){var q=a[x];if(null===q)this.ctx.translate(j,0),d.x+=j*m;else{this.processingType3=q;this.save();
c.scale(f,f);c.transform.apply(c,k);this.executeOperatorList(q.operatorList);this.restore();var t=(r.applyTransform([q.width,0],k)[0]*f+h)*d.fontDirection;c.translate(t,0);d.x+=t*m;u+=t}}c.restore();this.processingType3=null}else{c.save();this.applyTextTransforms();var x=d.lineWidth,k=d.textMatrix[0],w=d.textMatrix[1],k=Math.sqrt(k*k+w*w),x=0===k||0===x?this.getSinglePixelWidth():x/k;p&&(n=this.createTextGeometry());1!=g&&(c.scale(g,g),x/=g);c.lineWidth=x;for(x=k=0;x<s;++x)if(q=a[x],null===q)k+=d.fontDirection*
j;else{var w=!1,z=q.fontChar,y=q.vmetric||v;if(l)var A=q.vmetric?y[1]:0.5*q.width,A=-A*f*d.fontMatrix[0],D=y[2]*f*d.fontMatrix[0];var t=y?-y[0]:q.width,y=t*f*d.fontMatrix[0]+h*d.fontDirection,B=q.accent,C,E;q.disabled||(l?(q=A/g,C=(k+D)/g):(q=k/g,C=0),e.remeasure&&0<t&&(w=1E3*c.measureText(z).width/d.fontSize*d.fontSizeScale,t/=w,w=!0,c.save(),c.scale(t,1),q/=t,B&&(E/=t)),this.paintChar(z,q,C),B&&(E=q+B.offset.x/g,z=C-B.offset.y/g,this.paintChar(B.fontChar,E,z)));k+=y;u+=y;w&&c.restore()}l?d.y-=k*
m:d.x+=k*m;c.restore()}p&&(n.canvasWidth=u,l&&(n.angle+=Math.PI/2),this.textLayer.appendText(n));return u},showSpacedText:function(a){var b=this.ctx,c=this.current,d=c.fontSize,e=0.0010*c.textHScale*c.fontDirection,f=a.length,g,h=0,j=this.textLayer?!0:!1,m=c.font.vertical,k=0;j&&(b.save(),this.applyTextTransforms(),g=this.createTextGeometry(),b.restore());for(b=0;b<f;++b){var s=a[b];"number"==typeof s?(s=-s*d*e,m?c.y+=s:c.x+=s,j&&(k+=s)):(s=this.showText(s,!0),j&&(h+=k+s,k=0))}j&&(g.canvasWidth=h,
m&&(g.angle+=Math.PI/2),this.textLayer.appendText(g))},nextLineShowText:function(a){this.nextLine();this.showText(a)},nextLineSetSpacingShowText:function(a,b,c){this.setWordSpacing(a);this.setCharSpacing(b);this.nextLineShowText(c)},setCharWidth:function(){},setCharWidthAndBounds:function(a,b,c,d,e,f){this.rectangle(c,d,e-c,f-d);this.clip();this.endPath()},setStrokeColorSpace:function(a){this.current.strokeColorSpace=t.fromIR(a)},setFillColorSpace:function(a){this.current.fillColorSpace=t.fromIR(a)},
setStrokeColor:function(){var a=this.current.strokeColorSpace.getRgb(arguments,0),a=r.makeCssRgb(a);this.ctx.strokeStyle=a;this.current.strokeColor=a},getColorN_Pattern:function(a,b){if("TilingPattern"==a[0]){var c=a[1],d=b.base,e;d&&(e=d.getRgb(c,0));c=new la(a,e,this.ctx,this.objs,this.commonObjs,this.baseTransform)}else"RadialAxial"==a[0]||"Dummy"==a[0]?c=U.shadingFromIR(a):l("Unkown IR type "+a[0]);return c},setStrokeColorN:function(){var a=this.current.strokeColorSpace;"Pattern"==a.name?this.current.strokeColor=
this.getColorN_Pattern(arguments,a):this.setStrokeColor.apply(this,arguments)},setFillColor:function(){var a=this.current.fillColorSpace.getRgb(arguments,0),a=r.makeCssRgb(a);this.ctx.fillStyle=a;this.current.fillColor=a},setFillColorN:function(){var a=this.current.fillColorSpace;"Pattern"==a.name?this.current.fillColor=this.getColorN_Pattern(arguments,a):this.setFillColor.apply(this,arguments)},setStrokeGray:function(a){this.current.strokeColorSpace=t.singletons.gray;var b=this.current.strokeColorSpace.getRgb(arguments,
0),b=r.makeCssRgb(b);this.ctx.strokeStyle=b;this.current.strokeColor=b},setFillGray:function(a){this.current.fillColorSpace=t.singletons.gray;var b=this.current.fillColorSpace.getRgb(arguments,0),b=r.makeCssRgb(b);this.ctx.fillStyle=b;this.current.fillColor=b},setStrokeRGBColor:function(a,b,c){this.current.strokeColorSpace=t.singletons.rgb;var d=this.current.strokeColorSpace.getRgb(arguments,0),d=r.makeCssRgb(d);this.ctx.strokeStyle=d;this.current.strokeColor=d},setFillRGBColor:function(a,b,c){this.current.fillColorSpace=
t.singletons.rgb;var d=this.current.fillColorSpace.getRgb(arguments,0),d=r.makeCssRgb(d);this.ctx.fillStyle=d;this.current.fillColor=d},setStrokeCMYKColor:function(a,b,c,d){this.current.strokeColorSpace=t.singletons.cmyk;var e=r.makeCssCmyk(arguments);this.ctx.strokeStyle=e;this.current.strokeColor=e},setFillCMYKColor:function(a,b,c,d){this.current.fillColorSpace=t.singletons.cmyk;var e=r.makeCssCmyk(arguments);this.ctx.fillStyle=e;this.current.fillColor=e},shadingFill:function(a){var b=this.ctx;
this.save();a=U.shadingFromIR(a);b.fillStyle=a.getPattern(b,this);var c=b.mozCurrentTransformInverse;if(c){var b=b.canvas,d=b.width,e=b.height,b=r.applyTransform([0,0],c);a=r.applyTransform([0,e],c);var f=r.applyTransform([d,0],c),g=r.applyTransform([d,e],c),c=Math.min(b[0],a[0],f[0],g[0]),d=Math.min(b[1],a[1],f[1],g[1]),e=Math.max(b[0],a[0],f[0],g[0]),b=Math.max(b[1],a[1],f[1],g[1]);this.ctx.fillRect(c,d,e-c,b-d)}else this.ctx.fillRect(-1E10,-1E10,2E10,2E10);this.restore()},beginInlineImage:function(){l("Should not call beginInlineImage")},
beginImageData:function(){l("Should not call beginImageData")},paintFormXObjectBegin:function(a,b){this.save();this.current.paintFormXObjectDepth++;this.baseTransformStack.push(this.baseTransform);a&&(E(a)&&6==a.length)&&this.transform.apply(this,a);this.baseTransform=this.ctx.mozCurrentTransform;b&&(E(b)&&4==b.length)&&(this.rectangle(b[0],b[1],b[2]-b[0],b[3]-b[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){var a=this.current.paintFormXObjectDepth;do this.restore();while(this.current.paintFormXObjectDepth>=
a);this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(a){this.save();var b=this.ctx;a.isolated||G("TODO: Support non-isolated groups.");a.knockout&&L("Support knockout groups.");var c=b.mozCurrentTransform;a.matrix&&b.transform.apply(b,a.matrix);a.bbox||l("Bounding box is required.");var d=r.getAxialAlignedBoundingBox(a.bbox,b.mozCurrentTransform);a=Math.max(Math.ceil(d[2]-d[0]),1);var e=Math.max(Math.ceil(d[3]-d[1]),1);a=F.getCanvas("groupAt"+this.groupLevel,a,e,!0).context;e=
d[0];d=d[1];a.translate(-e,-d);a.transform.apply(a,c);b.setTransform(1,0,0,1,0,0);b.translate(e,d);c="strokeStyle fillStyle fillRule globalAlpha lineWidth lineCap lineJoin miterLimit globalCompositeOperation font".split(" ");d=0;for(e=c.length;d<e;d++){var f=c[d];f in b&&(a[f]=b[f])}"setLineDash"in b?(a.setLineDash(b.getLineDash()),a.lineDashOffset=b.lineDashOffset):"mozDash"in b&&(a.mozDash=b.mozDash,a.mozDashOffset=b.mozDashOffset);this.ctx=a;this.setGState([["SMask","None"],["BM","Normal"],["ca",
1],["CA",1]]);this.groupStack.push(b);this.groupLevel++},endGroup:function(){this.groupLevel--;var a=this.ctx;this.ctx=this.groupStack.pop();"imageSmoothingEnabled"in this.ctx?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1;this.ctx.drawImage(a.canvas,0,0);this.restore()},beginAnnotations:function(){this.save();this.current=new pa},endAnnotations:function(){this.restore()},beginAnnotation:function(a,b,c){this.save();a&&(E(a)&&4==a.length)&&(this.rectangle(a[0],a[1],a[2]-a[0],
a[3]-a[1]),this.clip(),this.endPath());this.transform.apply(this,b);this.transform.apply(this,c)},endAnnotation:function(){this.restore()},paintJpegXObject:function(a,b,c){var d=this.objs.get(a);d||l("Dependent image isn't ready yet");this.save();var e=this.ctx;e.scale(1/b,-1/c);e.drawImage(d,0,0,d.width,d.height,0,-c,b,c);this.imageLayer&&(d=e.mozCurrentTransformInverse,e=this.getCanvasPosition(0,0),this.imageLayer.appendImage({objId:a,left:e[0],top:e[1],width:b/d[0],height:c/d[3]}));this.restore()},
paintImageMaskXObject:function(a){var b=this.ctx,c=a.width,d=a.height,e=this.processingType3;if(e&&!("compiled"in e)){var f;if(1E3>=c&&1E3>=d)a:{var g=a.data,h,j,m=c+1,k=new Uint8Array(m*(d+1)),s=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),n=3,p=4*c,l=0;0!==g[3]&&(k[0]=1,++l);for(h=1;h<c;h++)g[n]!==g[n+4]&&(k[h]=g[n]?2:1,++l),n+=4;0!==g[n]&&(k[h]=2,++l);n+=4;for(f=1;f<d;f++){j=f*m;g[n-p]!==g[n]&&(k[j]=g[n]?1:8,++l);var q=(g[n]?4:0)+(g[n-p]?8:0);for(h=1;h<c;h++)q=(q>>2)+(g[n+4]?4:0)+(g[n-p+
4]?8:0),s[q]&&(k[j+h]=s[q],++l),n+=4;g[n-p]!==g[n]&&(k[j+h]=g[n]?2:4,++l);n+=4;if(1E3<l){f=null;break a}}n-=p;j=f*m;0!==g[n]&&(k[j]=8,++l);for(h=1;h<c;h++)g[n]!==g[n+4]&&(k[j+h]=g[n]?4:8,++l),n+=4;0!==g[n]&&(k[j+h]=4,++l);if(1E3<l)f=null;else{var g=new Int32Array([0,m,-1,0,-m,0,0,0,1]),r=[];for(f=0;l&&f<=d;f++){h=f*m;for(j=h+c;h<j&&!k[h];)h++;if(h!==j){j=[h%m,f];s=k[h];n=h;do{p=g[s];do h+=p;while(!k[h]);p=k[h];5!==p&&10!==p?(s=p,k[h]=0):(s=p&51*s>>4,k[h]&=s>>2|s<<2);j.push(h%m);j.push(h/m|0);--l}while(n!==
h);r.push(j);--f}}f=function(a){a.save();a.scale(1/c,-1/d);a.translate(0,-d);a.beginPath();for(var b=0,e=r.length;b<e;b++){var f=r[b];a.moveTo(f[0],f[1]);for(var g=2,h=f.length;g<h;g+=2)a.lineTo(f[g],f[g+1])}a.fill();a.beginPath();a.restore()}}}else f=null;e.compiled=f}e&&e.compiled?e.compiled(b):(b=F.getCanvas("maskCanvas",c,d),e=b.context,e.save(),Z(e,a),e.globalCompositeOperation="source-in",a=this.current.fillColor,e.fillStyle=a&&a.hasOwnProperty("type")&&"Pattern"===a.type?a.getPattern(e,this):
a,e.fillRect(0,0,c,d),e.restore(),this.paintInlineImageXObject(b.canvas))},paintImageMaskXObjectGroup:function(a){for(var b=this.ctx,c=0,d=a.length;c<d;c++){var e=a[c],f=e.width,g=e.height,h=F.getCanvas("maskCanvas",f,g),j=h.context;j.save();Z(j,e);j.globalCompositeOperation="source-in";var m=this.current.fillColor;j.fillStyle=m&&m.hasOwnProperty("type")&&"Pattern"===m.type?m.getPattern(j,this):m;j.fillRect(0,0,f,g);j.restore();b.save();b.transform.apply(b,e.transform);b.scale(1,-1);b.drawImage(h.canvas,
0,0,f,g,0,-1,1,1);b.restore()}},paintImageXObject:function(a){(a=this.objs.get(a))||l("Dependent image isn't ready yet");this.paintInlineImageXObject(a)},paintInlineImageXObject:function(a){var b=a.width,c=a.height,d=this.ctx;this.save();d.scale(1/b,-1/c);var e=d.mozCurrentTransformInverse,f=e[0],g=e[1],f=Math.max(Math.sqrt(f*f+g*g),1),g=e[2],h=e[3],g=Math.max(Math.sqrt(g*g+h*h),1);if(a instanceof HTMLElement)h=a;else{var j=F.getCanvas("inlineImage",b,c),m=j.context;Z(m,a);h=j.canvas}for(var k=b,
l=c,n="prescale1";2<f&&1<k||2<g&&1<l;){var p=k,q=l;2<f&&1<k&&(p=Math.ceil(k/2),f/=k/p);2<g&&1<l&&(q=Math.ceil(l/2),g/=l/q);j=F.getCanvas(n,p,q);m=j.context;m.clearRect(0,0,p,q);m.drawImage(h,0,0,k,l,0,0,p,q);h=j.canvas;k=p;l=q;n="prescale1"===n?"prescale2":"prescale1"}d.drawImage(h,0,0,k,l,0,-c,b,c);this.imageLayer&&(d=this.getCanvasPosition(0,-c),this.imageLayer.appendImage({imgData:a,left:d[0],top:d[1],width:b/e[0],height:c/e[3]}));this.restore()},paintInlineImageXObjectGroup:function(a,b){var c=
this.ctx,d=a.width,e=a.height,f=F.getCanvas("inlineImage",d,e);Z(f.context,a);for(var g=0,h=b.length;g<h;g++){var j=b[g];c.save();c.transform.apply(c,j.transform);c.scale(1,-1);c.drawImage(f.canvas,j.x,j.y,j.w,j.h,0,-1,1,1);this.imageLayer&&(j=this.getCanvasPosition(j.x,j.y),this.imageLayer.appendImage({imgData:a,left:j[0],top:j[1],width:d,height:e}));c.restore()}},markPoint:function(){},markPointProps:function(){},beginMarkedContent:function(){},beginMarkedContentProps:function(){},endMarkedContent:function(){},
beginCompat:function(){},endCompat:function(){},consumePath:function(){if(this.pendingClip){if(this.pendingClip==ob)if("mozFillRule"in this.ctx)this.ctx.mozFillRule="evenodd",this.ctx.clip(),this.ctx.mozFillRule="nonzero";else try{this.ctx.clip("evenodd")}catch(a){this.ctx.clip()}else this.ctx.clip();this.pendingClip=null}this.ctx.beginPath()},getSinglePixelWidth:function(){var a=this.ctx.mozCurrentTransformInverse;return Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3]))},getCanvasPosition:function(a,
b){var c=this.ctx.mozCurrentTransform;return[c[0]*a+c[2]*b+c[4],c[1]*a+c[3]*b+c[5]]}};ma=nb;PDFJS.disableFontFace=!1;var qa;if(R)qa=!1;else{var pb=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(window.navigator.userAgent);qa=pb&&14<=pb[1]?!0:!1}var P={insertRule:function(a){var b=document.getElementById("PDFJS_FONT_STYLE_TAG");b||(b=document.createElement("style"),b.id="PDFJS_FONT_STYLE_TAG",document.documentElement.getElementsByTagName("head")[0].appendChild(b));b=b.sheet;b.insertRule(a,b.cssRules.length)},
get loadTestFont(){return V(this,"loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))},
loadTestFontId:0,loadingContext:{requests:[],nextRequestId:0},isSyncFontLoadingSupported:qa,bind:function(a,b){!R||l("bind() shall be called from main thread");for(var c=[],d=[],e=0,f=a.length;e<f;e++){var g=a[e];if(!(g.attached||!1===g.loading)){g.attached=!0;var h=g.bindDOM();h&&(c.push(h),d.push(g))}}e=P.queueLoadingCallback(b);0<c.length&&!this.isSyncFontLoadingSupported?P.prepareFontLoadEvent(c,d,e):e.complete()},queueLoadingCallback:function(a){var b=P.loadingContext,c={id:"pdfjs-font-loading-"+
b.nextRequestId++,complete:function(){!c.end||l("completeRequest() cannot be called twice");for(c.end=Date.now();0<b.requests.length&&b.requests[0].end;){var a=b.requests.shift();setTimeout(a.callback,0)}},callback:a,started:Date.now()};b.requests.push(c);return c},prepareFontLoadEvent:function(a,b,c){function d(a,b){return a.charCodeAt(b)<<24|a.charCodeAt(b+1)<<16|a.charCodeAt(b+2)<<8|a.charCodeAt(b+3)&255}function e(a,b,c,d){a=k.substr(0,b);b=k.substr(b+c);return a+d+b}function f(a,b){l++;30<l?
(B("Load test font never loaded."),b()):(j.font="30px "+a,j.fillText(".",0,20),0<j.getImageData(0,0,1,1).data[3]?b():setTimeout(f.bind(null,a,b)))}var g,h;a=document.createElement("canvas");a.width=1;a.height=1;var j=a.getContext("2d"),l=0;a="lt"+Date.now()+this.loadTestFontId++;var k=this.loadTestFont,k=e(k,976,a.length,a),q=d(k,16);g=0;for(h=a.length-3;g<h;g+=4)q=q-1482184792+d(a,g)|0;g<a.length&&(q=q-1482184792+d(a+"XXX",g)|0);k=e(k,16,4,String.fromCharCode(q>>24&255)+String.fromCharCode(q>>16&
255)+String.fromCharCode(q>>8&255)+String.fromCharCode(q&255));g="url(data:font/opentype;base64,"+btoa(k)+");";P.insertRule('@font-face { font-family:"'+a+'";src:'+g+"}");q=[];g=0;for(h=b.length;g<h;g++)q.push(b[g].loadedName);q.push(a);var n=document.createElement("div");n.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;");g=0;for(h=q.length;g<h;++g)b=document.createElement("span"),b.textContent="Hi",b.style.fontFamily=q[g],n.appendChild(b);
document.body.appendChild(n);f(a,function(){document.body.removeChild(n);c.complete()})}},jb,qb=function(a,b,c){this.compiledGlyphs={};if(1===arguments.length){var d=arguments[0],e;for(e in d)this[e]=d[e]}};qb.prototype={bindDOM:function(){if(!this.data)return null;if(PDFJS.disableFontFace)return this.disableFontFace=!0,null;for(var a=this.data,b="",c=a.length,d=0;d<c;++d)b+=String.fromCharCode(a[d]);a=this.loadedName;b="url(data:"+this.mimetype+";base64,"+window.btoa(b)+");";a='@font-face { font-family:"'+
a+'";src:'+b+"}";P.insertRule(a);PDFJS.pdfBug&&("FontInspector"in w&&w.FontInspector.enabled)&&w.FontInspector.fontAdded(this,b);return a},getPathGenerator:function(a,b){if(!(b in this.compiledGlyphs)){var c=a.get(this.loadedName+"_path_"+b);this.compiledGlyphs[b]=new Function("c","size",c)}return this.compiledGlyphs[b]}};jb=qb}).call("undefined"===typeof window?this:window);
!PDFJS.workerSrc&&"undefined"!==typeof document&&(PDFJS.workerSrc=function(){var G=(document.body||document.getElementsByTagName("head")[0]).lastChild.src;return G&&G.replace(/\.js$/i,".worker.js")}());
