-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdf.min.js
190 lines (190 loc) · 97.8 KB
/
pdf.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
"undefined"===typeof PDFJS&&(("undefined"!==typeof window?window:this).PDFJS={});PDFJS.version="1.0.1023";PDFJS.build="72bb48b";
(function(){function M(b){PDFJS.verbosity>=PDFJS.VERBOSITY_LEVELS.infos&&console.log("Info: "+b)}function r(b){PDFJS.verbosity>=PDFJS.VERBOSITY_LEVELS.warnings&&console.log("Warning: "+b)}function A(b){if(1<arguments.length){var a=["Error:"];a.push.apply(a,arguments);console.log.apply(console,a);b=[].join.call(arguments," ")}else console.log("Error: "+b);console.log(ja());Y.notify(ka.unknown);throw Error(b);}function ja(){try{throw Error();}catch(b){return b.stack?b.stack.split("\n").slice(2).join("\n"):
""}}function la(b,a){if(!a)return b;if(/^[a-z][a-z0-9+\-.]*:/i.test(a))return a;var c;if("/"===a.charAt(0))return c=b.indexOf("://"),"/"===a.charAt(1)?++c:c=b.indexOf("/",c+3),b.substring(0,c)+a;var d=b.length;c=b.lastIndexOf("#");d=0<=c?c:d;c=b.lastIndexOf("?",d);c=b.lastIndexOf("/",0<=c?c:d);return b.substring(0,c+1)+a}function Q(b,a,c){Object.defineProperty(b,a,{value:c,enumerable:!0,configurable:!0,writable:!1});return c}function P(b){return b instanceof Array}function K(){var b={};b.promise=
new Promise(function(a,c){b.resolve=a;b.reject=c});return b}function T(b,a){this.name=b;this.comObj=a;this.callbackIndex=1;this.postMessageTransfers=!0;var c=this.callbacksCapabilities={},d=this.actionHandler={};d.console_log=[function(a){console.log.apply(console,a)}];d.console_error=[function(a){console.error.apply(console,a)}];d._unsupported_feature=[function(a){Y.notify(a)}];a.onmessage=function(f){var b=f.data;if(b.isReply)if(f=b.callbackId,b.callbackId in c){var e=c[f];delete c[f];"error"in
b?e.reject(b.error):e.resolve(b.data)}else A("Cannot resolve callback "+f);else if(b.action in d){var l=d[b.action];b.callbackId?Promise.resolve().then(function(){return l[0].call(l[1],b.data)}).then(function(c){a.postMessage({isReply:!0,callbackId:b.callbackId,data:c})},function(c){a.postMessage({isReply:!0,callbackId:b.callbackId,error:c})}):l[0].call(l[1],b.data)}else A("Unknown action from worker: "+b.action)}}function ma(b,a,c){var d=new Image;d.onload=function(){c.resolve(b,d)};d.onerror=function(){c.resolve(b,
null);r("Error during JPEG image loading")};d.src=a}function Z(b,a){var c=document.createElement("canvas");c.width=b;c.height=a;return c}function $(b){b.mozCurrentTransform||(b._scaleX=b._scaleX||1,b._scaleY=b._scaleY||1,b._originalSave=b.save,b._originalRestore=b.restore,b._originalRotate=b.rotate,b._originalScale=b.scale,b._originalTranslate=b.translate,b._originalTransform=b.transform,b._originalSetTransform=b.setTransform,b._transformMatrix=[b._scaleX,0,0,b._scaleY,0,0],b._transformStack=[],Object.defineProperty(b,
"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(b,"mozCurrentTransformInverse",{get:function(){var a=this._transformMatrix,c=a[0],d=a[1],f=a[2],b=a[3],e=a[4],a=a[5],l=c*b-d*f,g=d*f-c*b;return[b/l,d/g,f/g,c/l,(b*e-f*a)/g,(d*e-c*a)/l]}}),b.save=function(){var a=this._transformMatrix;this._transformStack.push(a);this._transformMatrix=a.slice(0,6);this._originalSave()},b.restore=function(){var a=this._transformStack.pop();a&&(this._transformMatrix=a,this._originalRestore())},
b.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)},b.scale=function(a,c){var d=this._transformMatrix;d[0]*=a;d[1]*=a;d[2]*=c;d[3]*=c;this._originalScale(a,c)},b.transform=function(a,c,d,f,h,e){var l=this._transformMatrix;this._transformMatrix=[l[0]*a+l[2]*c,l[1]*a+l[3]*c,l[0]*d+l[2]*f,l[1]*d+l[3]*f,l[0]*h+l[2]*e+l[4],l[1]*h+l[3]*e+l[5]];b._originalTransform(a,c,d,f,h,e)},b.setTransform=function(a,c,d,f,h,e){this._transformMatrix=
[a,c,d,f,h,e];b._originalSetTransform(a,c,d,f,h,e)},b.rotate=function(a){var c=Math.cos(a),d=Math.sin(a),f=this._transformMatrix;this._transformMatrix=[f[0]*c+f[2]*d,f[1]*c+f[3]*d,f[0]*-d+f[2]*c,f[1]*-d+f[3]*c,f[4],f[5]];this._originalRotate(a)})}function na(b){var a=b.width,c=b.height,d,f,h=a+1,e=new Uint8Array(h*(c+1)),l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),g=a+7&-8,k=b.data,m=new Uint8Array(g*c),q=0;b=0;for(d=k.length;b<d;b++){f=128;for(var u=k[b];0<f;)m[q++]=u&f?0:255,f>>=1}q=k=
0;0!==m[q]&&(e[0]=1,++k);for(d=1;d<a;d++)m[q]!==m[q+1]&&(e[d]=m[q]?2:1,++k),q++;0!==m[q]&&(e[d]=2,++k);for(b=1;b<c;b++){q=b*g;f=b*h;m[q-g]!==m[q]&&(e[f]=m[q]?1:8,++k);u=(m[q]?4:0)+(m[q-g]?8:0);for(d=1;d<a;d++)u=(u>>2)+(m[q+1]?4:0)+(m[q-g+1]?8:0),l[u]&&(e[f+d]=l[u],++k),q++;m[q-g]!==m[q]&&(e[f+d]=m[q]?2:4,++k);if(1E3<k)return null}q=g*(c-1);f=b*h;0!==m[q]&&(e[f]=8,++k);for(d=1;d<a;d++)m[q]!==m[q+1]&&(e[f+d]=m[q]?4:8,++k),q++;0!==m[q]&&(e[f+d]=4,++k);if(1E3<k)return null;var l=new Int32Array([0,h,-1,
0,-h,0,0,0,1]),z=[];for(b=0;k&&b<=c;b++){g=b*h;for(m=g+a;g<m&&!e[g];)g++;if(g!==m){m=[g%h,b];q=e[g];d=g;do{f=l[q];do g+=f;while(!e[g]);f=e[g];5!==f&&10!==f?(q=f,e[g]=0):(q=f&51*q>>4,e[g]&=q>>2|q<<2);m.push(g%h);m.push(g/h|0);--k}while(d!==g);z.push(m);--b}}return function(u){u.save();u.scale(1/a,-1/c);u.translate(0,-c);u.beginPath();for(var d=0,q=z.length;d<q;d++){var g=z[d];u.moveTo(g[0],g[1]);for(var f=2,b=g.length;f<b;f+=2)u.lineTo(g[f],g[f+1])}u.fill();u.beginPath();u.restore()}}function aa(b){var a=
U[b[0]];a||A("Unknown IR type: "+b[0]);return a.fromIR(b)}var p="undefined"===typeof window?this:window,V="undefined"===typeof window,R=[.001,0,0,.001,0,0];p.PDFJS||(p.PDFJS={});p.PDFJS.pdfBug=!1;PDFJS.VERBOSITY_LEVELS={errors:0,warnings:1,infos:5};var n=PDFJS.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,
stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,
setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,
beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},ka=PDFJS.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},Y=PDFJS.UnsupportedManager=function(){var b=[];return{listen:function(a){b.push(a)},
notify:function(a){r('Unsupported feature "'+a+'"');for(var c=0,d=b.length;c<d;c++)b[c](a)}}}();PDFJS.isValidUrl=function(b,a){if(!b)return!1;var c=/^[a-z][a-z0-9+\-.]*(?=:)/i.exec(b);if(!c)return a;c=c[0].toLowerCase();switch(c){case "http":case "https":case "ftp":case "mailto":return!0;default:return!1}};var ba=PDFJS.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},W=function(){function b(a,c){this.name="PasswordException";this.message=a;this.code=c}b.prototype=Error();return b.constructor=
b}();PDFJS.PasswordException=W;var ca=function(){function b(a,c){this.name="UnknownErrorException";this.message=a;this.details=c}b.prototype=Error();return b.constructor=b}();PDFJS.UnknownErrorException=ca;var da=function(){function b(a){this.name="InvalidPDFException";this.message=a}b.prototype=Error();return b.constructor=b}();PDFJS.InvalidPDFException=da;var ea=function(){function b(a){this.name="MissingPDFException";this.message=a}b.prototype=Error();return b.constructor=b}();PDFJS.MissingPDFException=
ea;var fa=function(){function b(a,c){this.name="UnexpectedResponseException";this.message=a;this.status=c}b.prototype=Error();return b.constructor=b}();PDFJS.UnexpectedResponseException=fa;(function(){function b(a){this.message=a}b.prototype=Error();b.prototype.name="NotImplementedException";return b.constructor=b})();(function(){function b(a,c){this.begin=a;this.end=c;this.message="Missing data ["+a+", "+c+")"}b.prototype=Error();b.prototype.name="MissingDataException";return b.constructor=b})();
(function(){function b(a){this.message=a}b.prototype=Error();b.prototype.name="XRefParseException";return b.constructor=b})();Object.defineProperty(PDFJS,"isLittleEndian",{configurable:!0,get:function(){var b=PDFJS,a=new Uint8Array(2);a[0]=1;a=new Uint16Array(a.buffer);return Q(b,"isLittleEndian",1===a[0])}});Object.defineProperty(PDFJS,"hasCanvasTypedArrays",{configurable:!0,get:function(){var b=PDFJS,a=document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d").createImageData(1,1);
return Q(b,"hasCanvasTypedArrays","undefined"!==typeof a.data.buffer)}});var oa=function(){function b(d,f){this.buffer=d;this.byteLength=d.length;for(var h=this.length=void 0===f?this.byteLength>>2:f;c<h;)Object.defineProperty(b.prototype,c,a(c)),c++}function a(a){return{get:function(){var c=this.buffer,b=a<<2;return(c[b]|c[b+1]<<8|c[b+2]<<16|c[b+3]<<24)>>>0},set:function(c){var b=this.buffer,e=a<<2;b[e]=c&255;b[e+1]=c>>8&255;b[e+2]=c>>16&255;b[e+3]=c>>>24&255}}}b.prototype=Object.create(null);var c=
0;return b}(),O=[1,0,0,1,0,0],x=PDFJS.Util=function(){function b(){}var a=["rgb(",0,",",0,",",0,")"];b.makeCssRgb=function(c,d,b){a[1]=c;a[3]=d;a[5]=b;return a.join("")};b.transform=function(a,d){return[a[0]*d[0]+a[2]*d[1],a[1]*d[0]+a[3]*d[1],a[0]*d[2]+a[2]*d[3],a[1]*d[2]+a[3]*d[3],a[0]*d[4]+a[2]*d[5]+a[4],a[1]*d[4]+a[3]*d[5]+a[5]]};b.applyTransform=function(a,d){return[a[0]*d[0]+a[1]*d[2]+d[4],a[0]*d[1]+a[1]*d[3]+d[5]]};b.applyInverseTransform=function(a,d){var b=d[0]*d[3]-d[1]*d[2];return[(a[0]*
d[3]-a[1]*d[2]+d[2]*d[5]-d[4]*d[3])/b,(-a[0]*d[1]+a[1]*d[0]+d[4]*d[1]-d[5]*d[0])/b]};b.getAxialAlignedBoundingBox=function(a,d){var f=b.applyTransform(a,d),h=b.applyTransform(a.slice(2,4),d),e=b.applyTransform([a[0],a[3]],d),l=b.applyTransform([a[2],a[1]],d);return[Math.min(f[0],h[0],e[0],l[0]),Math.min(f[1],h[1],e[1],l[1]),Math.max(f[0],h[0],e[0],l[0]),Math.max(f[1],h[1],e[1],l[1])]};b.inverseTransform=function(a){var d=a[0]*a[3]-a[1]*a[2];return[a[3]/d,-a[1]/d,-a[2]/d,a[0]/d,(a[2]*a[5]-a[4]*a[3])/
d,(a[4]*a[1]-a[5]*a[0])/d]};b.apply3dTransform=function(a,d){return[a[0]*d[0]+a[1]*d[1]+a[2]*d[2],a[3]*d[0]+a[4]*d[1]+a[5]*d[2],a[6]*d[0]+a[7]*d[1]+a[8]*d[2]]};b.singularValueDecompose2dScale=function(a){var d=[a[0],a[2],a[1],a[3]],b=a[0]*d[0]+a[1]*d[2],h=a[2]*d[1]+a[3]*d[3],e=(b+h)/2;a=Math.sqrt((b+h)*(b+h)-4*(b*h-(a[2]*d[0]+a[3]*d[2])*(a[0]*d[1]+a[1]*d[3])))/2;d=e-a||1;return[Math.sqrt(e+a||1),Math.sqrt(d)]};b.normalizeRect=function(a){var d=a.slice(0);a[0]>a[2]&&(d[0]=a[2],d[2]=a[0]);a[1]>a[3]&&
(d[1]=a[3],d[3]=a[1]);return d};b.intersect=function(a,d){function f(a,d){return a-d}var h=[a[0],a[2],d[0],d[2]].sort(f),e=[a[1],a[3],d[1],d[3]].sort(f),l=[];a=b.normalizeRect(a);d=b.normalizeRect(d);if(h[0]===a[0]&&h[1]===d[0]||h[0]===d[0]&&h[1]===a[0])l[0]=h[1],l[2]=h[2];else return!1;if(e[0]===a[1]&&e[1]===d[1]||e[0]===d[1]&&e[1]===a[1])l[1]=e[1],l[3]=e[2];else return!1;return l};b.sign=function(a){return 0>a?-1:1};b.appendToArray=function(a,d){Array.prototype.push.apply(a,d)};b.prependToArray=
function(a,d){Array.prototype.unshift.apply(a,d)};b.extendObj=function(a,d){for(var b in d)a[b]=d[b]};b.getInheritableProperty=function(a,d){for(;a&&!a.has(d);)a=a.get("Parent");return a?a.get(d):null};b.inherit=function(a,d,b){a.prototype=Object.create(d.prototype);a.prototype.constructor=a;for(var h in b)a.prototype[h]=b[h]};b.loadScript=function(a,d){var b=document.createElement("script"),h=!1;b.setAttribute("src",a);d&&(b.onload=function(){h||d();h=!0});document.getElementsByTagName("head")[0].appendChild(b)};
return b}();PDFJS.PageViewport=function(){function b(a,c,d,b,h,e){this.viewBox=a;this.scale=c;this.rotation=d;this.offsetX=b;this.offsetY=h;var l=(a[2]+a[0])/2,g=(a[3]+a[1])/2,k,m,q;d%=360;switch(0>d?d+360:d){case 180:d=-1;m=k=0;q=1;break;case 90:d=0;m=k=1;q=0;break;case 270:d=0;m=k=-1;q=0;break;default:d=1,m=k=0,q=-1}e&&(m=-m,q=-q);0===d?(b=Math.abs(g-a[1])*c+b,h=Math.abs(l-a[0])*c+h,e=Math.abs(a[3]-a[1])*c,a=Math.abs(a[2]-a[0])*c):(b=Math.abs(l-a[0])*c+b,h=Math.abs(g-a[1])*c+h,e=Math.abs(a[2]-a[0])*
c,a=Math.abs(a[3]-a[1])*c);this.transform=[d*c,k*c,m*c,q*c,b-d*c*l-m*c*g,h-k*c*l-q*c*g];this.width=e;this.height=a;this.fontScale=c}b.prototype={clone:function(a){a=a||{};var c="scale"in a?a.scale:this.scale,d="rotation"in a?a.rotation:this.rotation;return new b(this.viewBox.slice(),c,d,this.offsetX,this.offsetY,a.dontFlip)},convertToViewportPoint:function(a,c){return x.applyTransform([a,c],this.transform)},convertToViewportRectangle:function(a){var c=x.applyTransform([a[0],a[1]],this.transform);
a=x.applyTransform([a[2],a[3]],this.transform);return[c[0],c[1],a[0],a[1]]},convertToPdfPoint:function(a,c){return x.applyInverseTransform([a,c],this.transform)}};return b}();PDFJS.createPromiseCapability=K;(function(){function b(d){this._status=a;this._handlers=[];try{d.call(this,this._resolve.bind(this),this._reject.bind(this))}catch(c){this._reject(c)}}if(p.Promise)"function"!==typeof p.Promise.all&&(p.Promise.all=function(a){var c=0,b=[],e,l,g=new p.Promise(function(a,d){e=a;l=d});a.forEach(function(a,
d){c++;a.then(function(a){b[d]=a;c--;0===c&&e(b)},l)});0===c&&e(b);return g}),"function"!==typeof p.Promise.resolve&&(p.Promise.resolve=function(a){return new p.Promise(function(c){c(a)})}),"function"!==typeof p.Promise.reject&&(p.Promise.reject=function(a){return new p.Promise(function(c,b){b(a)})}),"function"!==typeof p.Promise.prototype.catch&&(p.Promise.prototype.catch=function(a){return p.Promise.prototype.then(void 0,a)});else{var a=0,c={handlers:[],running:!1,unhandledRejections:[],pendingRejectionCheck:!1,
scheduleHandlers:function(d){d._status!==a&&(this.handlers=this.handlers.concat(d._handlers),d._handlers=[],this.running||(this.running=!0,setTimeout(this.runHandlers.bind(this),0)))},runHandlers:function(){for(var a=Date.now()+1;0<this.handlers.length;){var c=this.handlers.shift(),b=c.thisPromise._status,e=c.thisPromise._value;try{1===b?"function"===typeof c.onResolve&&(e=c.onResolve(e)):"function"===typeof c.onReject&&(e=c.onReject(e),b=1,c.thisPromise._unhandledRejection&&this.removeUnhandeledRejection(c.thisPromise))}catch(l){b=
2,e=l}c.nextPromise._updateStatus(b,e);if(Date.now()>=a)break}0<this.handlers.length?setTimeout(this.runHandlers.bind(this),0):this.running=!1},addUnhandledRejection:function(a){this.unhandledRejections.push({promise:a,time:Date.now()});this.scheduleRejectionCheck()},removeUnhandeledRejection:function(a){a._unhandledRejection=!1;for(var c=0;c<this.unhandledRejections.length;c++)this.unhandledRejections[c].promise===a&&(this.unhandledRejections.splice(c),c--)},scheduleRejectionCheck:function(){this.pendingRejectionCheck||
(this.pendingRejectionCheck=!0,setTimeout(function(){this.pendingRejectionCheck=!1;for(var a=Date.now(),c=0;c<this.unhandledRejections.length;c++)if(500<a-this.unhandledRejections[c].time){var b=this.unhandledRejections[c].promise._value,e="Unhandled rejection: "+b;b.stack&&(e+="\n"+b.stack);r(e);this.unhandledRejections.splice(c);c--}this.unhandledRejections.length&&this.scheduleRejectionCheck()}.bind(this),500))}};b.all=function(a){function c(a){2!==l._status&&(k=[],e(a))}var h,e,l=new b(function(a,
u){h=a;e=u}),g=a.length,k=[];if(0===g)return h(k),l;for(var m=0,q=a.length;m<q;++m){var u=a[m],z=function(a){return function(u){2!==l._status&&(k[a]=u,g--,0===g&&h(k))}}(m);b.isPromise(u)?u.then(z,c):z(u)}return l};b.isPromise=function(a){return a&&"function"===typeof a.then};b.resolve=function(a){return new b(function(c){c(a)})};b.reject=function(a){return new b(function(c,b){b(a)})};b.prototype={_status:null,_value:null,_handlers:null,_unhandledRejection:null,_updateStatus:function(a,f){1!==this._status&&
2!==this._status&&(1===a&&b.isPromise(f)?f.then(this._updateStatus.bind(this,1),this._updateStatus.bind(this,2)):(this._status=a,this._value=f,2===a&&0===this._handlers.length&&(this._unhandledRejection=!0,c.addUnhandledRejection(this)),c.scheduleHandlers(this)))},_resolve:function(a){this._updateStatus(1,a)},_reject:function(a){this._updateStatus(2,a)},then:function(a,f){var h=new b(function(a,c){this.resolve=a;this.reject=c});this._handlers.push({thisPromise:this,onResolve:a,onReject:f,nextPromise:h});
c.scheduleHandlers(this);return h},catch:function(a){return this.then(void 0,a)}};p.Promise=b}})();var pa=function(){function b(){this.started={};this.times=[];this.enabled=!0}b.prototype={time:function(a){this.enabled&&(a in this.started&&r("Timer is already running for "+a),this.started[a]=Date.now())},timeEnd:function(a){this.enabled&&(a in this.started||r("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(){var a,
c,b=this.times,f="",h=0;a=0;for(c=b.length;a<c;++a){var e=b[a].name;e.length>h&&(h=e.length)}a=0;for(c=b.length;a<c;++a){for(var l=b[a],e=l.end-l.start,l=l.name;l.length<h;)l+=" ";f+=l+" "+e+"ms\n"}return f}};return b}();PDFJS.createBlob=function(b,a){if("undefined"!==typeof Blob)return new Blob([b],{type:a});var c=new MozBlobBuilder;c.append(b);return c.getBlob(a)};PDFJS.createObjectURL=function(){return function(b,a){if(!PDFJS.disableCreateObjectURL&&"undefined"!==typeof URL&&URL.createObjectURL){var c=
PDFJS.createBlob(b,a);return URL.createObjectURL(c)}for(var c="data:"+a+";base64,",d=0,f=b.length;d<f;d+=3)var h=b[d]&255,e=b[d+1]&255,l=b[d+2]&255,c=c+("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[h>>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[(h&3)<<4|e>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[d+1<f?(e&15)<<2|l>>6:64]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[d+2<f?l&63:64]);return c}}();T.prototype=
{on:function(b,a,c){var d=this.actionHandler;d[b]&&A('There is already an actionName called "'+b+'"');d[b]=[a,c]},send:function(b,a,c){this.postMessage({action:b,data:a},c)},sendWithPromise:function(b,a,c){var d=this.callbackIndex++;b={action:b,data:a,callbackId:d};a=K();this.callbacksCapabilities[d]=a;try{this.postMessage(b,c)}catch(f){a.reject(f)}return a.promise},postMessage:function(b,a){a&&this.postMessageTransfers?this.comObj.postMessage(b,a):this.comObj.postMessage(b)}};PDFJS.maxImageSize=
void 0===PDFJS.maxImageSize?-1:PDFJS.maxImageSize;PDFJS.cMapUrl=void 0===PDFJS.cMapUrl?null:PDFJS.cMapUrl;PDFJS.cMapPacked=void 0===PDFJS.cMapPacked?!1:PDFJS.cMapPacked;PDFJS.disableFontFace=void 0===PDFJS.disableFontFace?!1:PDFJS.disableFontFace;PDFJS.imageResourcesPath=void 0===PDFJS.imageResourcesPath?"":PDFJS.imageResourcesPath;PDFJS.disableWorker=void 0===PDFJS.disableWorker?!1:PDFJS.disableWorker;PDFJS.workerSrc=void 0===PDFJS.workerSrc?null:PDFJS.workerSrc;PDFJS.disableRange=void 0===PDFJS.disableRange?
!1:PDFJS.disableRange;PDFJS.disableStream=void 0===PDFJS.disableStream?!1:PDFJS.disableStream;PDFJS.disableAutoFetch=void 0===PDFJS.disableAutoFetch?!1:PDFJS.disableAutoFetch;PDFJS.pdfBug=void 0===PDFJS.pdfBug?!1:PDFJS.pdfBug;PDFJS.postMessageTransfers=void 0===PDFJS.postMessageTransfers?!0:PDFJS.postMessageTransfers;PDFJS.disableCreateObjectURL=void 0===PDFJS.disableCreateObjectURL?!1:PDFJS.disableCreateObjectURL;PDFJS.disableWebGL=void 0===PDFJS.disableWebGL?!0:PDFJS.disableWebGL;PDFJS.useOnlyCssZoom=
void 0===PDFJS.useOnlyCssZoom?!1:PDFJS.useOnlyCssZoom;PDFJS.verbosity=void 0===PDFJS.verbosity?PDFJS.VERBOSITY_LEVELS.warnings:PDFJS.verbosity;PDFJS.maxCanvasPixels=void 0===PDFJS.maxCanvasPixels?16777216:PDFJS.maxCanvasPixels;PDFJS.getDocument=function(b,a,c,d){var f,h;"string"===typeof b?b={url:b}:"object"===typeof b&&null!==b&&void 0!==b.byteLength?b={data:b}:"object"!==typeof b&&A("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");b.url||b.data||A("Invalid parameter array, need either .data or .url");
var e={};for(f in b)e[f]="url"===f&&"undefined"!==typeof window?la(window.location.href,b[f]):b[f];b=K();f=K();h=new qa(b,f,a,d);b.promise.then(function(){h.passwordCallback=c;h.fetchDocument(e)});return f.promise};var ra=function(){function b(a,c){this.pdfInfo=a;this.transport=c}b.prototype={get numPages(){return this.pdfInfo.numPages},get fingerprint(){return this.pdfInfo.fingerprint},getPage:function(a){return this.transport.getPage(a)},getPageIndex:function(a){return this.transport.getPageIndex(a)},
getDestinations:function(){return this.transport.getDestinations()},getDestination:function(a){return this.transport.getDestination(a)},getAttachments:function(){return this.transport.getAttachments()},getJavaScript:function(){return this.transport.getJavaScript()},getOutline:function(){return this.transport.getOutline()},getMetadata:function(){return this.transport.getMetadata()},getData:function(){return this.transport.getData()},getDownloadInfo:function(){return this.transport.downloadInfoCapability.promise},
getStats:function(){return this.transport.getStats()},cleanup:function(){this.transport.startCleanup()},destroy:function(){this.transport.destroy()}};return b}(),ua=function(){function b(a,c,b){this.pageIndex=a;this.pageInfo=c;this.transport=b;this.stats=new pa;this.stats.enabled=!!p.PDFJS.enableStats;this.commonObjs=b.commonObjs;this.objs=new ga;this.pendingDestroy=this.cleanupAfterRender=!1;this.intentStates={}}b.prototype={get pageNumber(){return this.pageIndex+1},get rotate(){return this.pageInfo.rotate},
get ref(){return this.pageInfo.ref},get view(){return this.pageInfo.view},getViewport:function(a,c){2>arguments.length&&(c=this.rotate);return new PDFJS.PageViewport(this.view,a,c,0,0)},getAnnotations:function(){if(this.annotationsPromise)return this.annotationsPromise;var a=this.transport.getAnnotations(this.pageIndex);return this.annotationsPromise=a},render:function(a){function c(a){var c=h.renderTasks.indexOf(e);0<=c&&h.renderTasks.splice(c,1);l.cleanupAfterRender&&(l.pendingDestroy=!0);l._tryDestroy();
a?e.capability.reject(a):e.capability.resolve();b.timeEnd("Rendering");b.timeEnd("Overall")}var b=this.stats;b.time("Overall");this.pendingDestroy=!1;var f="print"===a.intent?"print":"display";this.intentStates[f]||(this.intentStates[f]={});var h=this.intentStates[f];h.displayReadyCapability||(h.receivingOperatorList=!0,h.displayReadyCapability=K(),h.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-
1,intent:f}));var e=new sa(c,a,this.objs,this.commonObjs,h.operatorList,this.pageNumber);h.renderTasks||(h.renderTasks=[]);h.renderTasks.push(e);a=new ta(e);var l=this;h.displayReadyCapability.promise.then(function(a){l.pendingDestroy?c():(b.time("Rendering"),e.initalizeGraphics(a),e.operatorListChanged())},function(a){c(a)});return a},getOperatorList:function(){function a(){c.operatorList.lastChunk&&c.opListReadCapability.resolve(c.operatorList)}this.intentStates.oplist||(this.intentStates.oplist=
{});var c=this.intentStates.oplist;if(!c.opListReadCapability){var b={};b.operatorListChanged=a;c.receivingOperatorList=!0;c.opListReadCapability=K();c.renderTasks=[];c.renderTasks.push(b);c.operatorList={fnArray:[],argsArray:[],lastChunk:!1};this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageIndex,intent:"oplist"})}return c.opListReadCapability.promise},getTextContent:function(){return this.transport.messageHandler.sendWithPromise("GetTextContent",{pageIndex:this.pageNumber-
1})},destroy:function(){this.pendingDestroy=!0;this._tryDestroy()},_tryDestroy:function(){this.pendingDestroy&&!Object.keys(this.intentStates).some(function(a){a=this.intentStates[a];return 0!==a.renderTasks.length||a.receivingOperatorList},this)&&(Object.keys(this.intentStates).forEach(function(a){delete this.intentStates[a]},this),this.objs.clear(),this.annotationsPromise=null,this.pendingDestroy=!1)},_startRenderPage:function(a,c){var b=this.intentStates[c];b.displayReadyCapability&&b.displayReadyCapability.resolve(a)},
_renderPageChunk:function(a,c){var b=this.intentStates[c],f,h;f=0;for(h=a.length;f<h;f++)b.operatorList.fnArray.push(a.fnArray[f]),b.operatorList.argsArray.push(a.argsArray[f]);b.operatorList.lastChunk=a.lastChunk;for(f=0;f<b.renderTasks.length;f++)b.renderTasks[f].operatorListChanged();a.lastChunk&&(b.receivingOperatorList=!1,this._tryDestroy())}};return b}(),qa=function(){function b(a,c,b,f){this.pdfDataRangeTransport=b;this.workerInitializedCapability=a;this.workerReadyCapability=c;this.progressCallback=
f;this.commonObjs=new ga;this.pageCache=[];this.pagePromises=[];this.downloadInfoCapability=K();this.passwordCallback=null;if(!p.PDFJS.disableWorker&&"undefined"!==typeof Worker){(c=PDFJS.workerSrc)||A("No PDFJS.workerSrc specified");try{var h=new Worker(c),e=new T("main",h);this.messageHandler=e;e.on("test",function(c){c&&c.supportTypedArray?(this.worker=h,c.supportTransfers||(PDFJS.postMessageTransfers=!1),this.setupMessageHandler(e),a.resolve()):this.setupFakeWorker()}.bind(this));var l=new Uint8Array([PDFJS.postMessageTransfers?
255:0]);try{e.send("test",l,[l.buffer])}catch(g){M("Cannot use postMessage transfers"),l[0]=0,e.send("test",l)}return}catch(k){M("The worker has been disabled.")}}this.setupFakeWorker()}b.prototype={destroy:function(){this.pageCache=[];this.pagePromises=[];var a=this;this.messageHandler.sendWithPromise("Terminate",null).then(function(){J.clear();a.worker&&a.worker.terminate()})},setupFakeWorker:function(){p.PDFJS.disableWorker=!0;PDFJS.fakeWorkerFilesLoadedCapability||(PDFJS.fakeWorkerFilesLoadedCapability=
K(),x.loadScript(PDFJS.workerSrc,function(){PDFJS.fakeWorkerFilesLoadedCapability.resolve()}));PDFJS.fakeWorkerFilesLoadedCapability.promise.then(function(){r("Setting up fake worker.");var a={postMessage:function(c){a.onmessage({data:c})},terminate:function(){}},c=new T("main",a);this.setupMessageHandler(c);PDFJS.WorkerMessageHandler.setup(c);this.workerInitializedCapability.resolve()}.bind(this))},setupMessageHandler:function(a){function c(c){a.send("UpdatePassword",c)}this.messageHandler=a;var b=
this.pdfDataRangeTransport;b&&(b.addRangeListener(function(c,b){a.send("OnDataRange",{begin:c,chunk:b})}),b.addProgressListener(function(c){a.send("OnDataProgress",{loaded:c})}),b.addProgressiveReadListener(function(c){a.send("OnDataRange",{chunk:c})}),a.on("RequestDataRange",function(a){b.requestDataRange(a.begin,a.end)},this));a.on("GetDoc",function(a){var c=a.pdfInfo;this.numPages=a.pdfInfo.numPages;this.pdfDocument=a=new ra(c,this);this.workerReadyCapability.resolve(a)},this);a.on("NeedPassword",
function(a){if(this.passwordCallback)return this.passwordCallback(c,ba.NEED_PASSWORD);this.workerReadyCapability.reject(new W(a.message,a.code))},this);a.on("IncorrectPassword",function(a){if(this.passwordCallback)return this.passwordCallback(c,ba.INCORRECT_PASSWORD);this.workerReadyCapability.reject(new W(a.message,a.code))},this);a.on("InvalidPDF",function(a){this.workerReadyCapability.reject(new da(a.message))},this);a.on("MissingPDF",function(a){this.workerReadyCapability.reject(new ea(a.message))},
this);a.on("UnexpectedResponse",function(a){this.workerReadyCapability.reject(new fa(a.message,a.status))},this);a.on("UnknownError",function(a){this.workerReadyCapability.reject(new ca(a.message,a.details))},this);a.on("DataLoaded",function(a){this.downloadInfoCapability.resolve(a)},this);a.on("PDFManagerReady",function(a){this.pdfDataRangeTransport&&this.pdfDataRangeTransport.transportReady()},this);a.on("StartRenderPage",function(a){var c=this.pageCache[a.pageIndex];c.stats.timeEnd("Page Request");
c._startRenderPage(a.transparency,a.intent)},this);a.on("RenderPageChunk",function(a){this.pageCache[a.pageIndex]._renderPageChunk(a.operatorList,a.intent)},this);a.on("commonobj",function(a){var c=a[0],b=a[1];if(!this.commonObjs.hasData(c))switch(b){case "Font":a=a[2];var d;if("error"in a){var g=a.error;r("Error during font loading: "+g);this.commonObjs.resolve(c,g);break}else d=new va(a);J.bind([d],function(a){this.commonObjs.resolve(c,d)}.bind(this));break;case "FontPath":this.commonObjs.resolve(c,
a[2]);break;default:g("Got unknown common object type "+b)}},this);a.on("obj",function(a){var c=a[0],b=a[2],d=this.pageCache[a[1]];if(!d.objs.hasData(c))switch(b){case "JpegStream":a=a[3];ma(c,a,d.objs);break;case "Image":a=a[3];d.objs.resolve(c,a);a&&"data"in a&&8E6<a.data.length&&(d.cleanupAfterRender=!0);break;default:A("Got unknown object type "+b)}},this);a.on("DocProgress",function(a){this.progressCallback&&this.progressCallback({loaded:a.loaded,total:a.total})},this);a.on("PageError",function(a){var c=
this.pageCache[a.pageNum-1].intentStates[a.intent];c.displayReadyCapability?c.displayReadyCapability.reject(a.error):A(a.error)},this);a.on("JpegDecode",function(a){var c=a[0],b=a[1];return 3!==b&&1!==b?Promise.reject(Error("Only 3 components or 1 component can be returned")):new Promise(function(a,d){var k=new Image;k.onload=function(){var c=k.width,q=k.height,u=c*q,d=4*u,u=new Uint8Array(u*b),g=Z(c,q).getContext("2d");g.drawImage(k,0,0);var g=g.getImageData(0,0,c,q).data,s,f;if(3===b)for(f=s=0;s<
d;s+=4,f+=3)u[f]=g[s],u[f+1]=g[s+1],u[f+2]=g[s+2];else if(1===b)for(f=s=0;s<d;s+=4,f++)u[f]=g[s];a({data:u,width:c,height:q})};k.onerror=function(){d(Error("JpegDecode failed to load image"))};k.src=c})})},fetchDocument:function(a){a.disableAutoFetch=PDFJS.disableAutoFetch;a.disableStream=PDFJS.disableStream;a.chunkedViewerLoading=!!this.pdfDataRangeTransport;this.messageHandler.send("GetDocRequest",{source:a,disableRange:PDFJS.disableRange,maxImageSize:PDFJS.maxImageSize,cMapUrl:PDFJS.cMapUrl,cMapPacked:PDFJS.cMapPacked,
disableFontFace:PDFJS.disableFontFace,disableCreateObjectURL:PDFJS.disableCreateObjectURL,verbosity:PDFJS.verbosity})},getData:function(){return this.messageHandler.sendWithPromise("GetData",null)},getPage:function(a,c){if(0>=a||a>this.numPages||(a|0)!==a)return Promise.reject(Error("Invalid page request"));var b=a-1;if(b in this.pagePromises)return this.pagePromises[b];var f=this.messageHandler.sendWithPromise("GetPage",{pageIndex:b}).then(function(a){a=new ua(b,a,this);return this.pageCache[b]=
a}.bind(this));return this.pagePromises[b]=f},getPageIndex:function(a){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:a})},getAnnotations:function(a){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:a})},getDestinations:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)},getDestination:function(a){return this.messageHandler.sendWithPromise("GetDestination",{id:a})},getAttachments:function(){return this.messageHandler.sendWithPromise("GetAttachments",
null)},getJavaScript:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)},getOutline:function(){return this.messageHandler.sendWithPromise("GetOutline",null)},getMetadata:function(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(a){return{info:a[0],metadata:a[1]?new PDFJS.Metadata(a[1]):null}})},getStats:function(){return this.messageHandler.sendWithPromise("GetStats",null)},startCleanup:function(){this.messageHandler.sendWithPromise("Cleanup",
null).then(function(){for(var a=0,c=this.pageCache.length;a<c;a++){var b=this.pageCache[a];b&&b.destroy()}this.commonObjs.clear();J.clear()}.bind(this))}};return b}(),ga=function(){function b(){this.objs={}}b.prototype={ensureObj:function(a){if(this.objs[a])return this.objs[a];var c={capability:K(),data:null,resolved:!1};return this.objs[a]=c},get:function(a,c){if(c)return this.ensureObj(a).capability.promise.then(c),null;var b=this.objs[a];b&&b.resolved||A("Requesting object that isn't resolved yet "+
a);return b.data},resolve:function(a,c){var b=this.ensureObj(a);b.resolved=!0;b.data=c;b.capability.resolve(c)},isResolved:function(a){var c=this.objs;return c[a]?c[a].resolved:!1},hasData:function(a){return this.isResolved(a)},getData:function(a){var c=this.objs;return c[a]&&c[a].resolved?c[a].data:null},clear:function(){this.objs={}}};return b}(),ta=function(){function b(a){this.internalRenderTask=a;this.promise=this.internalRenderTask.capability.promise}b.prototype={cancel:function(){this.internalRenderTask.cancel()},
then:function(a,c){return this.promise.then(a,c)}};return b}(),sa=function(){function b(a,c,b,f,h,e){this.callback=a;this.params=c;this.objs=b;this.commonObjs=f;this.operatorListIdx=null;this.operatorList=h;this.pageNumber=e;this.running=!1;this.graphicsReadyCallback=null;this.cancelled=this.graphicsReady=!1;this.capability=K();this._continueBound=this._continue.bind(this);this._scheduleNextBound=this._scheduleNext.bind(this);this._nextBound=this._next.bind(this)}b.prototype={initalizeGraphics:function(a){if(!this.cancelled){PDFJS.pdfBug&&
"StepperManager"in p&&p.StepperManager.enabled&&(this.stepper=p.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var c=this.params;this.gfx=new ha(c.canvasContext,this.commonObjs,this.objs,c.imageLayer);this.gfx.beginDrawing(c.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._continueBound)},_continue:function(){this.running=!0;this.cancelled||(this.params.continueCallback?this.params.continueCallback(this._scheduleNextBound):this._scheduleNext())},_scheduleNext:function(){window.requestAnimationFrame(this._nextBound)},_next:function(){this.cancelled||(this.operatorListIdx=
this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this.callback())))}};return b}();PDFJS.Metadata=function(){function b(a){return a.replace(/>\\376\\377([^<]+)/g,function(a,b){for(var c=b.replace(/\\([0-3])([0-7])([0-7])/g,function(a,c,b,u){return String.fromCharCode(64*c+8*b+1*u)}),e="",l=0;l<c.length;l+=2)var g=256*c.charCodeAt(l)+
c.charCodeAt(l+1),e=e+("&#x"+(65536+g).toString(16).substring(1)+";");return">"+e})}function a(a){"string"===typeof a?(a=b(a),a=(new DOMParser).parseFromString(a,"application/xml")):a instanceof Document||A("Metadata: Invalid metadata object");this.metaDocument=a;this.metadata={};this.parse()}a.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,f,h,e,l,g,k;e=0;for(g=a.length;e<g;e++)if(b=a[e],"rdf:description"===b.nodeName.toLowerCase())for(l=0,k=b.childNodes.length;l<k;l++)"#text"!==b.childNodes[l].nodeName.toLowerCase()&&(f=b.childNodes[l],h=f.nodeName.toLowerCase(),this.metadata[h]=f.textContent.trim())}},get:function(a){return this.metadata[a]||null},has:function(a){return"undefined"!==typeof this.metadata[a]}};return a}();var H=function(){var b={};return{getCanvas:function(a,
c,d,f){void 0!==b[a]?(a=b[a],a.canvas.width=c,a.canvas.height=d,a.context.setTransform(1,0,0,1,0,0)):(c=Z(c,d),d=c.getContext("2d"),f&&$(d),b[a]=a={canvas:c,context:d});return a},clear:function(){for(var a in b){var c=b[a];c.canvas.width=0;c.canvas.height=0;delete b[a]}}}}(),ia=function(){function b(a){this.alphaIsShape=!1;this.fontSize=0;this.fontSizeScale=1;this.textMatrix=O;this.textMatrixScale=1;this.fontMatrix=R;this.wordSpacing=this.charSpacing=this.lineY=this.lineX=this.y=this.x=this.leading=
0;this.textHScale=1;this.textRise=this.textRenderingMode=0;this.strokeColor=this.fillColor="#000000";this.patternFill=!1;this.lineWidth=this.strokeAlpha=this.fillAlpha=1;this.activeSMask=null;this.old=a}b.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(a,b){this.x=a;this.y=b}};return b}(),ha=function(){function b(a,b,c,g){this.ctx=a;this.current=new ia;this.stateStack=[];this.pendingClip=null;this.pendingEOFill=!1;this.xobjs=this.res=null;this.commonObjs=b;this.objs=
c;this.imageLayer=g;this.groupStack=[];this.baseTransform=this.processingType3=null;this.baseTransformStack=[];this.groupLevel=0;this.smaskStack=[];this.smaskCounter=0;this.tempSMask=null;a&&$(a);this.cachedGetSinglePixelWidth=null}function a(a,b){if("undefined"!==typeof ImageData&&b instanceof ImageData)a.putImageData(b,0,0);else{var c=b.height,g=b.width,d=c%16,c=(c-d)/16,k=0===d?c:c+1,m=a.createImageData(g,16),e=0,f,l=b.data,h=m.data,v,w,n;if(1===b.kind){var E=l.byteLength,h=PDFJS.hasCanvasTypedArrays?
new Uint32Array(h.buffer):new oa(h),B=h.length,C=g+7>>3,y=PDFJS.isLittleEndian||!PDFJS.hasCanvasTypedArrays?4278190080:255;for(v=0;v<k;v++){n=v<c?16:d;for(w=f=0;w<n;w++){for(var p=E-e,x=0,p=p>C?g:8*p-7,G=p&-8,F=0,I=0;x<G;x+=8)I=l[e++],h[f++]=I&128?4294967295:y,h[f++]=I&64?4294967295:y,h[f++]=I&32?4294967295:y,h[f++]=I&16?4294967295:y,h[f++]=I&8?4294967295:y,h[f++]=I&4?4294967295:y,h[f++]=I&2?4294967295:y,h[f++]=I&1?4294967295:y;for(;x<p;x++)0===F&&(I=l[e++],F=128),h[f++]=I&F?4294967295:y,F>>=1}for(;f<
B;)h[f++]=0;a.putImageData(m,0,16*v)}}else if(3===b.kind){w=0;n=64*g;for(v=0;v<c;v++)h.set(l.subarray(e,e+n)),e+=n,a.putImageData(m,0,w),w+=16;v<k&&(h.set(l.subarray(e,e+g*d*4)),a.putImageData(m,0,w))}else if(2===b.kind)for(n=16*g,v=0;v<k;v++){v>=c&&(n=d,n*=g);f=0;for(w=n;w--;)h[f++]=l[e++],h[f++]=l[e++],h[f++]=l[e++],h[f++]=255;a.putImageData(m,0,16*v)}else A("bad image kind: "+b.kind)}}function c(a,b){for(var c=b.height,g=b.width,d=c%16,c=(c-d)/16,k=0===d?c:c+1,m=a.createImageData(g,16),e=0,f=b.data,
l=m.data,h=0;h<k;h++){for(var v=h<c?16:d,w=3,n=0;n<v;n++)for(var E=0,B=0;B<g;B++){if(!E)var C=f[e++],E=128;l[w]=C&E?0:255;w+=4;E>>=1}a.putImageData(m,0,16*h)}}function d(a,b){for(var c="strokeStyle fillStyle fillRule globalAlpha lineWidth lineCap lineJoin miterLimit globalCompositeOperation font".split(" "),g=0,d=c.length;g<d;g++){var k=c[g];void 0!==a[k]&&(b[k]=a[k])}void 0!==a.setLineDash?(b.setLineDash(a.getLineDash()),b.lineDashOffset=a.lineDashOffset):void 0!==a.mozDashOffset&&(b.mozDash=a.mozDash,
b.mozDashOffset=a.mozDashOffset)}function f(a,b){for(var c=a.length,g=1/255,d=3;d<c;d+=4)b[d]=b[d]*a[d]*g|0}function h(a,b){for(var c=a.length,g=3;g<c;g+=4)b[g]=b[g]*(77*a[g-3]+152*a[g-2]+28*a[g-1])>>16}var e=["butt","round","square"],l=["miter","round","bevel"],g={},k={};b.prototype={beginDrawing:function(a,b){var c=this.ctx.canvas.width,g=this.ctx.canvas.height;b?this.ctx.clearRect(0,0,c,g):(this.ctx.mozOpaque=!0,this.ctx.save(),this.ctx.fillStyle="rgb(255, 255, 255)",this.ctx.fillRect(0,0,c,g),
this.ctx.restore());c=a.transform;this.ctx.save();this.ctx.transform.apply(this.ctx,c);this.baseTransform=this.ctx.mozCurrentTransform.slice();this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(a,b,c,g){var d=a.argsArray;a=a.fnArray;b=b||0;var k=d.length;if(k===b)return b;for(var m=10<k-b&&"function"===typeof c,e=m?Date.now()+15:0,f=0,l=this.commonObjs,h=this.objs,v;;){if(void 0!==g&&b===g.nextBreakPoint)return g.breakIt(b,c),b;v=a[b];if(v!==n.dependency)this[v].apply(this,
d[b]);else{v=d[b];for(var w=0,p=v.length;w<p;w++){var E=v[w],B="g"===E[0]&&"_"===E[1]?l:h;if(!B.isResolved(E))return B.get(E,c),b}}b++;if(b===k)return b;if(m&&10<++f){if(Date.now()>e)return c(),b;f=0}}},endDrawing:function(){this.ctx.restore();H.clear();S.clear();this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(a){this.current.lineWidth=a;this.ctx.lineWidth=a},setLineCap:function(a){this.ctx.lineCap=e[a]},setLineJoin:function(a){this.ctx.lineJoin=l[a]},setMiterLimit:function(a){this.ctx.miterLimit=
a},setDash:function(a,b){var c=this.ctx;void 0!==c.setLineDash?(c.setLineDash(a),c.lineDashOffset=b):(c.mozDash=a,c.mozDashOffset=b)},setRenderingIntent:function(a){},setFlatness:function(a){},setGState:function(a){for(var b=0,c=a.length;b<c;b++){var g=a[b],d=g[1];switch(g[0]){case "LW":this.setLineWidth(d);break;case "LC":this.setLineCap(d);break;case "LJ":this.setLineJoin(d);break;case "ML":this.setMiterLimit(d);break;case "D":this.setDash(d[0],d[1]);break;case "RI":this.setRenderingIntent(d);break;
case "FL":this.setFlatness(d);break;case "Font":this.setFont(d[0],d[1]);break;case "CA":this.current.strokeAlpha=g[1];break;case "ca":this.current.fillAlpha=g[1];this.ctx.globalAlpha=g[1];break;case "BM":d&&d.name&&"Normal"!==d.name?(g=d.name.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()}).substring(1),this.ctx.globalCompositeOperation=g,this.ctx.globalCompositeOperation!==g&&r('globalCompositeOperation "'+g+'" is not supported')):this.ctx.globalCompositeOperation="source-over";break;case "SMask":this.current.activeSMask&&
this.endSMaskGroup(),this.current.activeSMask=d?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var a=this.current.activeSMask,b=H.getCanvas("smaskGroupAt"+this.groupLevel,a.canvas.width,a.canvas.height,!0),c=this.ctx,g=c.mozCurrentTransform;this.ctx.save();b=b.context;b.scale(1/a.scaleX,1/a.scaleY);b.translate(-a.offsetX,-a.offsetY);b.transform.apply(b,g);d(c,b);this.ctx=b;this.setGState([["BM","Normal"],["ca",1],["CA",1]]);this.groupStack.push(c);
this.groupLevel++},endSMaskGroup:function(){var a=this.ctx;this.groupLevel--;this.ctx=this.groupStack.pop();var b=this.ctx,c=this.current.activeSMask,g=c.canvas,d=c.context;b.setTransform(c.scaleX,0,0,c.scaleY,c.offsetX,c.offsetY);var k=c.backdrop||null;if(S.isEnabled)a=S.composeSMask(a.canvas,g,{subtype:c.subtype,backdrop:k}),b.setTransform(1,0,0,1,0,0),b.drawImage(a,c.offsetX,c.offsetY);else{for(var m=g.width,e=g.height,l=!!k,n=l?k[0]:0,wa=l?k[1]:0,k=l?k[2]:0,c="Luminosity"===c.subtype?h:f,v=Math.min(e,
Math.ceil(1048576/m)),w=0;w<e;w+=v){var p=Math.min(v,e-w),E=d.getImageData(0,w,m,p),p=a.getImageData(0,w,m,p);if(l)for(var B=E.data,C=n,y=wa,x=k,A=B.length,G=3;G<A;G+=4){var F=B[G];if(0===F)B[G-3]=C,B[G-2]=y,B[G-1]=x;else if(255>F){var I=255-F;B[G-3]=B[G-3]*F+C*I>>8;B[G-2]=B[G-2]*F+y*I>>8;B[G-1]=B[G-1]*F+x*I>>8}}c(E.data,p.data);d.putImageData(p,0,w)}b.drawImage(g,0,0)}this.ctx.restore()},save:function(){this.ctx.save();var a=this.current;this.stateStack.push(a);this.current=a.clone();this.current.activeSMask=
null},restore:function(){0!==this.stateStack.length&&(null!==this.current.activeSMask&&this.endSMaskGroup(),this.current=this.stateStack.pop(),this.ctx.restore(),this.cachedGetSinglePixelWidth=null)},transform:function(a,b,c,g,d,k){this.ctx.transform(a,b,c,g,d,k);this.cachedGetSinglePixelWidth=null},constructPath:function(a,b){for(var c=this.ctx,g=this.current,d=g.x,k=g.y,m=0,e=0,f=a.length;m<f;m++)switch(a[m]|0){case n.rectangle:var d=b[e++],k=b[e++],l=b[e++],h=b[e++];0===l&&(l=this.getSinglePixelWidth());
0===h&&(h=this.getSinglePixelWidth());l=d+l;h=k+h;this.ctx.moveTo(d,k);this.ctx.lineTo(l,k);this.ctx.lineTo(l,h);this.ctx.lineTo(d,h);this.ctx.lineTo(d,k);this.ctx.closePath();break;case n.moveTo:d=b[e++];k=b[e++];c.moveTo(d,k);break;case n.lineTo:d=b[e++];k=b[e++];c.lineTo(d,k);break;case n.curveTo:d=b[e+4];k=b[e+5];c.bezierCurveTo(b[e],b[e+1],b[e+2],b[e+3],d,k);e+=6;break;case n.curveTo2:c.bezierCurveTo(d,k,b[e],b[e+1],b[e+2],b[e+3]);d=b[e+2];k=b[e+3];e+=4;break;case n.curveTo3:d=b[e+2];k=b[e+3];
c.bezierCurveTo(b[e],b[e+1],d,k,d,k);e+=4;break;case n.closePath:c.closePath()}g.setCurrentPoint(d,k)},closePath:function(){this.ctx.closePath()},stroke:function(a){a="undefined"!==typeof a?a:!0;var b=this.ctx,c=this.current.strokeColor;b.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth);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,g=!1;this.current.patternFill&&(b.save(),b.fillStyle=c.getPattern(b,this),g=!0);if(this.pendingEOFill){if(void 0!==b.mozFillRule)b.mozFillRule="evenodd",b.fill(),b.mozFillRule="nonzero";else try{b.fill("evenodd")}catch(d){b.fill()}this.pendingEOFill=!1}else b.fill();g&&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=g},eoClip:function(){this.pendingClip=k},beginText:function(){this.current.textMatrix=O;this.current.textMatrixScale=1;this.current.x=
this.current.lineX=0;this.current.y=this.current.lineY=0},endText:function(){var a=this.pendingTextPaths,b=this.ctx;if(void 0===a)b.beginPath();else{b.save();b.beginPath();for(var c=0;c<a.length;c++){var g=a[c];b.setTransform.apply(b,g.transform);b.translate(g.x,g.y);g.addToPath(b,g.fontSize)}b.restore();b.clip();b.beginPath();delete this.pendingTextPaths}},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),g=this.current;c||A("Can't find font for "+a);g.fontMatrix=c.fontMatrix?c.fontMatrix:R;0!==g.fontMatrix[0]&&0!==g.fontMatrix[3]||r("Invalid font matrix for font "+a);0>b?(b=-b,g.fontDirection=-1):g.fontDirection=1;this.current.font=c;this.current.fontSize=b;if(!c.isType3Font){var g=c.black?c.bold?"bolder":"bold":c.bold?"bold":"normal",d=c.italic?"italic":"normal",c='"'+(c.loadedName||"sans-serif")+
'", '+c.fallbackName,k=16>b?16:100<b?100:b;this.current.fontSizeScale=b/k;this.ctx.font=d+" "+g+" "+k+"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,g,d,k){this.current.textMatrix=[a,b,c,g,d,k];this.current.textMatrixScale=
Math.sqrt(a*a+b*b);this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(a,b,c){var g=this.ctx,d=this.current,k=d.font,m=d.textRenderingMode,d=d.fontSize/d.fontSizeScale,e=m&3,m=!!(m&4),f;if(k.disableFontFace||m)f=k.getPathGenerator(this.commonObjs,a);k.disableFontFace?(g.save(),g.translate(b,c),g.beginPath(),f(g,d),0!==e&&2!==e||g.fill(),1!==e&&2!==e||g.stroke(),g.restore()):(0!==e&&2!==e||g.fillText(a,
b,c),1!==e&&2!==e||g.strokeText(a,b,c));m&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:g.mozCurrentTransform,x:b,y:c,fontSize:d,addToPath:f})},get isFontSubpixelAAEnabled(){var a=document.createElement("canvas").getContext("2d");a.scale(1.5,1);a.fillText("I",0,10);for(var a=a.getImageData(0,0,10,10).data,b=!1,c=3;c<a.length;c+=4)if(0<a[c]&&255>a[c]){b=!0;break}return Q(this,"isFontSubpixelAAEnabled",b)},showText:function(a){var b=this.current,c=b.font;if(c.isType3Font)return this.showType3Text(a);
var g=b.fontSize;if(0!==g){var d=this.ctx,k=b.fontSizeScale,m=b.charSpacing,e=b.wordSpacing,f=b.fontDirection,l=b.textHScale*f,h=a.length,v=c.vertical,n=c.defaultVMetrics,p=g*b.fontMatrix[0],E=0===b.textRenderingMode&&!c.disableFontFace;d.save();d.transform.apply(d,b.textMatrix);d.translate(b.x,b.y+b.textRise);0<f?d.scale(l,-1):d.scale(l,1);var B=b.lineWidth,C=b.textMatrixScale;if(0===C||0===B){if(C=b.textRenderingMode&3,1===C||2===C)this.cachedGetSinglePixelWidth=null,B=.65*this.getSinglePixelWidth()}else B/=
C;1!==k&&(d.scale(k,k),B/=k);d.lineWidth=B;for(C=B=0;C<h;++C){var y=a[C];if(null===y)B+=f*e;else if("number"===typeof y)B+=-y*g*.001;else{var x=!1,A=y.fontChar,G=y.accent,F,I=y.width;if(v){var r;F=y.vmetric||n;r=y.vmetric?F[1]:.5*I;r=-r*p;y=F[2]*p;I=F?-F[0]:I;F=r/k;y=(B+y)/k}else F=B/k,y=0;c.remeasure&&0<I&&this.isFontSubpixelAAEnabled&&(x=1E3*d.measureText(A).width/g*k,r=I/x,x=!0,d.save(),d.scale(r,1),F/=r);E&&!G?d.fillText(A,F,y):(this.paintChar(A,F,y),G&&(A=F+G.offset.x/k,F=y-G.offset.y/k,this.paintChar(G.fontChar,
A,F)));B+=I*p+m*f;x&&d.restore()}}v?b.y-=B*l:b.x+=B*l;d.restore()}},showType3Text:function(a){var b=this.ctx,c=this.current,g=c.font,d=c.fontSize,k=c.fontDirection,m=c.charSpacing,e=c.wordSpacing,f=c.textHScale*k,l=c.fontMatrix||R,h=a.length,v;if(3!==c.textRenderingMode&&0!==d){b.save();b.transform.apply(b,c.textMatrix);b.translate(c.x,c.y);b.scale(f,k);for(k=0;k<h;++k)if(v=a[k],null===v)this.ctx.translate(e,0),c.x+=e*f;else if("number"===typeof v)v=.001*-v*d,this.ctx.translate(v,0),c.x+=v*f;else{var n=
g.charProcOperatorList[v.operatorListId];n?(this.processingType3=v,this.save(),b.scale(d,d),b.transform.apply(b,l),this.executeOperatorList(n),this.restore(),v=x.applyTransform([v.width,0],l)[0]*d+m,b.translate(v,0),c.x+=v*f):r('Type3 character "'+v.operatorListId+'" is not available')}b.restore();this.processingType3=null}},setCharWidth:function(a,b){},setCharWidthAndBounds:function(a,b,c,g,d,k){this.ctx.rect(c,g,d-c,k-g);this.clip();this.endPath()},getColorN_Pattern:function(a){return"TilingPattern"===
a[0]?new xa(a,a[1],this.ctx,this.objs,this.commonObjs,this.baseTransform):aa(a)},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments);this.current.patternFill=!0},setStrokeRGBColor:function(a,b,c){a=x.makeCssRgb(a,b,c);this.ctx.strokeStyle=a;this.current.strokeColor=a},setFillRGBColor:function(a,b,c){a=x.makeCssRgb(a,b,c);this.ctx.fillStyle=a;this.current.fillColor=a;this.current.patternFill=
!1},shadingFill:function(a){var b=this.ctx;this.save();a=aa(a);b.fillStyle=a.getPattern(b,this,!0);var c=b.mozCurrentTransformInverse;if(c){var b=b.canvas,g=b.width,d=b.height,b=x.applyTransform([0,0],c);a=x.applyTransform([0,d],c);var k=x.applyTransform([g,0],c),m=x.applyTransform([g,d],c),c=Math.min(b[0],a[0],k[0],m[0]),g=Math.min(b[1],a[1],k[1],m[1]),d=Math.max(b[0],a[0],k[0],m[0]),b=Math.max(b[1],a[1],k[1],m[1]);this.ctx.fillRect(c,g,d-c,b-g)}else this.ctx.fillRect(-1E10,-1E10,2E10,2E10);this.restore()},
beginInlineImage:function(){A("Should not call beginInlineImage")},beginImageData:function(){A("Should not call beginImageData")},paintFormXObjectBegin:function(a,b){this.save();this.baseTransformStack.push(this.baseTransform);P(a)&&6===a.length&&this.transform.apply(this,a);this.baseTransform=this.ctx.mozCurrentTransform;P(b)&&4===b.length&&(this.ctx.rect(b[0],b[1],b[2]-b[0],b[3]-b[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){this.restore();this.baseTransform=this.baseTransformStack.pop()},
beginGroup:function(a){this.save();var b=this.ctx;a.isolated||M("TODO: Support non-isolated groups.");a.knockout&&r("Knockout groups not supported.");var c=b.mozCurrentTransform;a.matrix&&b.transform.apply(b,a.matrix);a.bbox||A("Bounding box is required.");var g=x.getAxialAlignedBoundingBox(a.bbox,b.mozCurrentTransform),g=x.intersect(g,[0,0,b.canvas.width,b.canvas.height])||[0,0,0,0],k=Math.floor(g[0]),m=Math.floor(g[1]),e=Math.max(Math.ceil(g[2])-k,1),f=Math.max(Math.ceil(g[3])-m,1),l=g=1;4096<e&&
(g=e/4096,e=4096);4096<f&&(l=f/4096,f=4096);var h="groupAt"+this.groupLevel;a.smask&&(h+="_smask_"+this.smaskCounter++%2);e=H.getCanvas(h,e,f,!0);f=e.context;f.scale(1/g,1/l);f.translate(-k,-m);f.transform.apply(f,c);a.smask?this.smaskStack.push({canvas:e.canvas,context:f,offsetX:k,offsetY:m,scaleX:g,scaleY:l,subtype:a.smask.subtype,backdrop:a.smask.backdrop}):(b.setTransform(1,0,0,1,0,0),b.translate(k,m),b.scale(g,l));d(b,f);this.ctx=f;this.setGState([["BM","Normal"],["ca",1],["CA",1]]);this.groupStack.push(b);
this.groupLevel++},endGroup:function(a){this.groupLevel--;var b=this.ctx;this.ctx=this.groupStack.pop();void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1;a.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(b.canvas,0,0);this.restore()},beginAnnotations:function(){this.save();this.current=new ia},endAnnotations:function(){this.restore()},beginAnnotation:function(a,b,c){this.save();P(a)&&4===a.length&&(this.ctx.rect(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 g=this.objs.get(a);if(g){this.save();var d=this.ctx;d.scale(1/b,-1/c);d.drawImage(g,0,0,g.width,g.height,0,-c,b,c);this.imageLayer&&(g=d.mozCurrentTransformInverse,d=this.getCanvasPosition(0,0),this.imageLayer.appendImage({objId:a,left:d[0],top:d[1],width:b/g[0],height:c/g[3]}));this.restore()}else r("Dependent image isn't ready yet")},
paintImageMaskXObject:function(a){var b=this.ctx,g=a.width,d=a.height,k=this.current.fillColor,m=this.current.patternFill,e=this.processingType3;e&&void 0===e.compiled&&(e.compiled=1E3>=g&&1E3>=d?na({data:a.data,width:g,height:d}):null);e&&e.compiled?e.compiled(b):(b=H.getCanvas("maskCanvas",g,d),e=b.context,e.save(),c(e,a),e.globalCompositeOperation="source-in",e.fillStyle=m?k.getPattern(e,this):k,e.fillRect(0,0,g,d),e.restore(),this.paintInlineImageXObject(b.canvas))},paintImageMaskXObjectRepeat:function(a,
b,g,d){var k=a.width,m=a.height,e=this.current.fillColor,f=this.current.patternFill,l=H.getCanvas("maskCanvas",k,m),h=l.context;h.save();c(h,a);h.globalCompositeOperation="source-in";h.fillStyle=f?e.getPattern(h,this):e;h.fillRect(0,0,k,m);h.restore();a=this.ctx;e=0;for(f=d.length;e<f;e+=2)a.save(),a.transform(b,0,0,g,d[e],d[e+1]),a.scale(1,-1),a.drawImage(l.canvas,0,0,k,m,0,-1,1,1),a.restore()},paintImageMaskXObjectGroup:function(a){for(var b=this.ctx,g=this.current.fillColor,d=this.current.patternFill,
k=0,m=a.length;k<m;k++){var e=a[k],f=e.width,l=e.height,h=H.getCanvas("maskCanvas",f,l),n=h.context;n.save();c(n,e);n.globalCompositeOperation="source-in";n.fillStyle=d?g.getPattern(n,this):g;n.fillRect(0,0,f,l);n.restore();b.save();b.transform.apply(b,e.transform);b.scale(1,-1);b.drawImage(h.canvas,0,0,f,l,0,-1,1,1);b.restore()}},paintImageXObject:function(a){(a=this.objs.get(a))?this.paintInlineImageXObject(a):r("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(a,b,c,g){if(a=
this.objs.get(a)){for(var d=a.width,k=a.height,e=[],m=0,f=g.length;m<f;m+=2)e.push({transform:[b,0,0,c,g[m],g[m+1]],x:0,y:0,w:d,h:k});this.paintInlineImageXObjectGroup(a,e)}else r("Dependent image isn't ready yet")},paintInlineImageXObject:function(b){var c=b.width,g=b.height,d=this.ctx;this.save();d.scale(1/c,-1/g);var k=d.mozCurrentTransformInverse,m=k[0],e=k[1],m=Math.max(Math.sqrt(m*m+e*e),1),e=k[2],f=k[3],e=Math.max(Math.sqrt(e*e+f*f),1),l;if(b instanceof HTMLElement||!b.data)f=b;else{l=H.getCanvas("inlineImage",
c,g);var h=l.context;a(h,b);f=l.canvas}for(var n=c,v=g,w="prescale1";2<m&&1<n||2<e&&1<v;){var p=n,E=v;2<m&&1<n&&(p=Math.ceil(n/2),m/=n/p);2<e&&1<v&&(E=Math.ceil(v/2),e/=v/E);l=H.getCanvas(w,p,E);h=l.context;h.clearRect(0,0,p,E);h.drawImage(f,0,0,n,v,0,0,p,E);f=l.canvas;n=p;v=E;w="prescale1"===w?"prescale2":"prescale1"}d.drawImage(f,0,0,n,v,0,-g,c,g);this.imageLayer&&(d=this.getCanvasPosition(0,-g),this.imageLayer.appendImage({imgData:b,left:d[0],top:d[1],width:c/k[0],height:g/k[3]}));this.restore()},
paintInlineImageXObjectGroup:function(b,c){var g=this.ctx,d=b.width,k=b.height,e=H.getCanvas("inlineImage",d,k);a(e.context,b);for(var m=0,f=c.length;m<f;m++){var l=c[m];g.save();g.transform.apply(g,l.transform);g.scale(1,-1);g.drawImage(e.canvas,l.x,l.y,l.w,l.h,0,-1,1,1);this.imageLayer&&(l=this.getCanvasPosition(l.x,l.y),this.imageLayer.appendImage({imgData:b,left:l[0],top:l[1],width:d,height:k}));g.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},markPoint:function(a){},
markPointProps:function(a,b){},beginMarkedContent:function(a){},beginMarkedContentProps:function(a,b){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var a=this.ctx;if(this.pendingClip){if(this.pendingClip===k)if(void 0!==a.mozFillRule)a.mozFillRule="evenodd",a.clip(),a.mozFillRule="nonzero";else try{a.clip("evenodd")}catch(b){a.clip()}else a.clip();this.pendingClip=null}a.beginPath()},getSinglePixelWidth:function(a){null===this.cachedGetSinglePixelWidth&&
(a=this.ctx.mozCurrentTransformInverse,this.cachedGetSinglePixelWidth=Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])));return this.cachedGetSinglePixelWidth},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]]}};for(var m in n)b.prototype[n[m]]=b.prototype[m];return b}(),S=function(){function b(a,b,c){c=a.createShader(c);a.shaderSource(c,b);a.compileShader(c);if(!a.getShaderParameter(c,a.COMPILE_STATUS))throw a=a.getShaderInfoLog(c),
Error("Error during shader compilation: "+a);return c}function a(a,b){for(var c=a.createProgram(),d=0,e=b.length;d<e;++d)a.attachShader(c,b[d]);a.linkProgram(c);if(!a.getProgramParameter(c,a.LINK_STATUS))throw c=a.getProgramInfoLog(c),Error("Error during program linking: "+c);return c}function c(a,b,c){a.activeTexture(c);c=a.createTexture();a.bindTexture(a.TEXTURE_2D,c);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,
a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);return c}function d(){f||(h=document.createElement("canvas"),f=h.getContext("webgl",{premultipliedalpha:!1}))}var f,h,e=null,l=null;return{get isEnabled(){if(PDFJS.disableWebGL)return!1;var a=!1;try{d(),a=!!f}catch(b){}return Q(this,"isEnabled",a)},composeSMask:function(g,k,m){var l=g.width,u=g.height;if(!e){var z,t;d();z=h;h=null;t=f;f=null;var s=
b(t," attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",
t.VERTEX_SHADER),N=b(t," precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",
t.FRAGMENT_SHADER),n=a(t,[s,N]);t.useProgram(n);s={};s.gl=t;s.canvas=z;s.resolutionLocation=t.getUniformLocation(n,"u_resolution");s.positionLocation=t.getAttribLocation(n,"a_position");s.backdropLocation=t.getUniformLocation(n,"u_backdrop");s.subtypeLocation=t.getUniformLocation(n,"u_subtype");z=t.getAttribLocation(n,"a_texCoord");var N=t.getUniformLocation(n,"u_image"),n=t.getUniformLocation(n,"u_mask"),p=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,p);t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,
0,1,0,0,1,0,1,1,0,1,1]),t.STATIC_DRAW);t.enableVertexAttribArray(z);t.vertexAttribPointer(z,2,t.FLOAT,!1,0,0);t.uniform1i(N,0);t.uniform1i(n,1);e=s}t=e;s=t.canvas;z=t.gl;s.width=l;s.height=u;z.viewport(0,0,z.drawingBufferWidth,z.drawingBufferHeight);z.uniform2f(t.resolutionLocation,l,u);m.backdrop?z.uniform4f(t.resolutionLocation,m.backdrop[0],m.backdrop[1],m.backdrop[2],1):z.uniform4f(t.resolutionLocation,0,0,0,0);z.uniform1i(t.subtypeLocation,"Luminosity"===m.subtype?1:0);g=c(z,g,z.TEXTURE0);k=
c(z,k,z.TEXTURE1);m=z.createBuffer();z.bindBuffer(z.ARRAY_BUFFER,m);z.bufferData(z.ARRAY_BUFFER,new Float32Array([0,0,l,0,0,u,0,u,l,0,l,u]),z.STATIC_DRAW);z.enableVertexAttribArray(t.positionLocation);z.vertexAttribPointer(t.positionLocation,2,z.FLOAT,!1,0,0);z.clearColor(0,0,0,0);z.enable(z.BLEND);z.blendFunc(z.ONE,z.ONE_MINUS_SRC_ALPHA);z.clear(z.COLOR_BUFFER_BIT);z.drawArrays(z.TRIANGLES,0,6);z.flush();z.deleteTexture(g);z.deleteTexture(k);z.deleteBuffer(m);return s},drawFigures:function(c,k,e,
q,u){if(!l){var z,t;d();z=h;h=null;t=f;f=null;var s=b(t," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",
t.VERTEX_SHADER),n=b(t," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",t.FRAGMENT_SHADER),s=a(t,[s,
n]);t.useProgram(s);n={};n.gl=t;n.canvas=z;n.resolutionLocation=t.getUniformLocation(s,"u_resolution");n.scaleLocation=t.getUniformLocation(s,"u_scale");n.offsetLocation=t.getUniformLocation(s,"u_offset");n.positionLocation=t.getAttribLocation(s,"a_position");n.colorLocation=t.getAttribLocation(s,"a_color");l=n}z=l;t=z.canvas;s=z.gl;t.width=c;t.height=k;s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight);s.uniform2f(z.resolutionLocation,c,k);c=0;var p,x,D;p=0;for(x=q.length;p<x;p++)switch(q[p].type){case "lattice":D=
q[p].coords.length/q[p].verticesPerRow|0;c+=(D-1)*(q[p].verticesPerRow-1)*6;break;case "triangles":c+=q[p].coords.length}n=new Float32Array(2*c);k=new Uint8Array(3*c);var A=u.coords,r=u.colors,v=0,w=0;p=0;for(x=q.length;p<x;p++){D=q[p];var L=D.coords,E=D.colors;switch(D.type){case "lattice":var B=D.verticesPerRow;D=L.length/B|0;for(var C=1;C<D;C++)for(var y=C*B+1,H=1;H<B;H++,y++)n[v]=A[L[y-B-1]],n[v+1]=A[L[y-B-1]+1],n[v+2]=A[L[y-B]],n[v+3]=A[L[y-B]+1],n[v+4]=A[L[y-1]],n[v+5]=A[L[y-1]+1],k[w]=r[E[y-
B-1]],k[w+1]=r[E[y-B-1]+1],k[w+2]=r[E[y-B-1]+2],k[w+3]=r[E[y-B]],k[w+4]=r[E[y-B]+1],k[w+5]=r[E[y-B]+2],k[w+6]=r[E[y-1]],k[w+7]=r[E[y-1]+1],k[w+8]=r[E[y-1]+2],n[v+6]=n[v+2],n[v+7]=n[v+3],n[v+8]=n[v+4],n[v+9]=n[v+5],n[v+10]=A[L[y]],n[v+11]=A[L[y]+1],k[w+9]=k[w+3],k[w+10]=k[w+4],k[w+11]=k[w+5],k[w+12]=k[w+6],k[w+13]=k[w+7],k[w+14]=k[w+8],k[w+15]=r[E[y]],k[w+16]=r[E[y]+1],k[w+17]=r[E[y]+2],v+=12,w+=18;break;case "triangles":for(D=0,B=L.length;D<B;D++)n[v]=A[L[D]],n[v+1]=A[L[D]+1],k[w]=r[E[p]],k[w+1]=
r[E[D]+1],k[w+2]=r[E[D]+2],v+=2,w+=3}}e?s.clearColor(e[0]/255,e[1]/255,e[2]/255,1):s.clearColor(0,0,0,0);s.clear(s.COLOR_BUFFER_BIT);e=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,e);s.bufferData(s.ARRAY_BUFFER,n,s.STATIC_DRAW);s.enableVertexAttribArray(z.positionLocation);s.vertexAttribPointer(z.positionLocation,2,s.FLOAT,!1,0,0);q=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,q);s.bufferData(s.ARRAY_BUFFER,k,s.STATIC_DRAW);s.enableVertexAttribArray(z.colorLocation);s.vertexAttribPointer(z.colorLocation,
3,s.UNSIGNED_BYTE,!1,0,0);s.uniform2f(z.scaleLocation,u.scaleX,u.scaleY);s.uniform2f(z.offsetLocation,u.offsetX,u.offsetY);s.drawArrays(s.TRIANGLES,0,c);s.flush();s.deleteBuffer(e);s.deleteBuffer(q);return t},clear:function(){e&&e.canvas&&(e.canvas.width=0,e.canvas.height=0);l&&l.canvas&&(l.canvas.width=0,l.canvas.height=0);l=e=null}}}(),U={RadialAxial:{fromIR:function(b){var a=b[1],c=b[2],d=b[3],f=b[4],h=b[5],e=b[6];return{type:"Pattern",getPattern:function(b){var g;"axial"===a?g=b.createLinearGradient(d[0],
d[1],f[0],f[1]):"radial"===a&&(g=b.createRadialGradient(d[0],d[1],h,f[0],f[1],e));b=0;for(var k=c.length;b<k;++b){var m=c[b];g.addColorStop(m[0],m[1])}return g}}}}},ya=function(){function b(a,b,d,f,h,e,l,g){var k=b.coords,m=b.colors,q=a.data;a=4*a.width;var u;k[d+1]>k[f+1]&&(u=d,d=f,f=u,u=e,e=l,l=u);k[f+1]>k[h+1]&&(u=f,f=h,h=u,u=l,l=g,g=u);k[d+1]>k[f+1]&&(u=d,d=f,f=u,u=e,e=l,l=u);u=(k[d]+b.offsetX)*b.scaleX;d=(k[d+1]+b.offsetY)*b.scaleY;var n=(k[f]+b.offsetX)*b.scaleX;f=(k[f+1]+b.offsetY)*b.scaleY;
var t=(k[h]+b.offsetX)*b.scaleX;b=(k[h+1]+b.offsetY)*b.scaleY;if(!(d>=b)){h=m[e];k=m[e+1];e=m[e+2];var s=m[l],N=m[l+1];l=m[l+2];var p=m[g],x=m[g+1];g=m[g+2];for(var D=Math.round(d),m=Math.round(b),r,A,v,w,H,E,B,C,y=D;y<=m;y++){y<f?(C=y<d?0:d===f?1:(d-y)/(d-f),D=u-(u-n)*C,r=h-(h-s)*C,A=k-(k-N)*C,v=e-(e-l)*C):(C=y>b?1:f===b?0:(f-y)/(f-b),D=n-(n-t)*C,r=s-(s-p)*C,A=N-(N-x)*C,v=l-(l-g)*C);C=y<d?0:y>b?1:(d-y)/(d-b);w=u-(u-t)*C;H=h-(h-p)*C;E=k-(k-x)*C;B=e-(e-g)*C;C=Math.round(Math.min(D,w));for(var K=Math.round(Math.max(D,
w)),J=a*y+4*C,G=C;G<=K;G++)C=(D-G)/(D-w),C=0>C?0:1<C?1:C,q[J++]=r-(r-H)*C|0,q[J++]=A-(A-E)*C|0,q[J++]=v-(v-B)*C|0,q[J++]=255}}}return function(a,c,d,f,h,e){var l=Math.floor(a[0]),g=Math.floor(a[1]),k=Math.ceil(a[2])-l;a=Math.ceil(a[3])-g;var m=Math.min(Math.ceil(Math.abs(k*c[0]*1.1)),3E3),q=Math.min(Math.ceil(Math.abs(a*c[1]*1.1)),3E3),k=k/m;a/=q;f={coords:d,colors:f,offsetX:-l,offsetY:-g,scaleX:1/k,scaleY:1/a};var u;if(S.isEnabled)h=S.drawFigures(m,q,e,h,f),d=H.getCanvas("mesh",m,q,!1),d.context.drawImage(h,
0,0);else{d=H.getCanvas("mesh",m,q,!1);c=d.context;q=c.createImageData(m,q);if(e){var n=q.data,m=0;for(u=n.length;m<u;m+=4)n[m]=e[0],n[m+1]=e[1],n[m+2]=e[2],n[m+3]=255}for(m=0;m<h.length;m++){e=q;var t=h[m];u=f;var n=t.coords,s=t.colors,p=void 0,r=void 0;switch(t.type){case "lattice":for(var t=t.verticesPerRow,r=Math.floor(n.length/t)-1,x=t-1,p=0;p<r;p++)for(var D=p*t,J=0;J<x;J++,D++)b(e,u,n[D],n[D+1],n[D+t],s[D],s[D+1],s[D+t]),b(e,u,n[D+t+1],n[D+1],n[D+t],s[D+t+1],s[D+1],s[D+t]);break;case "triangles":p=
0;for(r=n.length;p<r;p+=3)b(e,u,n[p],n[p+1],n[p+2],s[p],s[p+1],s[p+2]);break;default:A("illigal figure")}}c.putImageData(q,0,0)}h=d.canvas;return{canvas:h,offsetX:l,offsetY:g,scaleX:k,scaleY:a}}}();U.Mesh={fromIR:function(b){var a=b[2],c=b[3],d=b[4],f=b[5],h=b[6],e=b[8];return{type:"Pattern",getPattern:function(b,g,k){var m;if(k)m=x.singularValueDecompose2dScale(b.mozCurrentTransform);else if(m=x.singularValueDecompose2dScale(g.baseTransform),h){var q=x.singularValueDecompose2dScale(h);m=[m[0]*q[0],
m[1]*q[1]]}m=ya(f,m,a,c,d,k?null:e);k||(b.setTransform.apply(b,g.baseTransform),h&&b.transform.apply(b,h));b.translate(m.offsetX,m.offsetY);b.scale(m.scaleX,m.scaleY);return b.createPattern(m.canvas,"no-repeat")}}}};U.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var xa=function(){function b(a,b,d,f,h,e){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=f;this.commonObjs=h;this.baseTransform=e;this.type="Pattern";this.ctx=d}b.prototype={createPatternCanvas:function(a){var b=this.operatorList,d=this.bbox,f=this.xstep,h=this.ystep,e=this.paintType,l=this.color,g=this.objs,k=this.commonObjs;M("TilingType: "+this.tilingType);var m=d[0],q=d[1],u=d[2],n=d[3],t=[m,q],s=[m+f,q+h],p=s[0]-t[0],s=s[1]-t[1],r=x.singularValueDecompose2dScale(this.matrix),A=x.singularValueDecompose2dScale(this.baseTransform),r=[r[0]*A[0],r[1]*A[1]],p=Math.min(Math.ceil(Math.abs(p*
r[0])),3E3),s=Math.min(Math.ceil(Math.abs(s*r[1])),3E3),r=H.getCanvas("pattern",p,s,!0),A=r.context,g=new ha(A,k,g);g.groupLevel=a.groupLevel;this.setFillAndStrokeStyleToContext(A,e,l);this.setScale(p,s,f,h);this.transformToScale(g);g.transform.apply(g,[1,0,0,1,-t[0],-t[1]]);this.clipBbox(g,d,m,q,u,n);g.executeOperatorList(b);return r.canvas},setScale:function(a,b,d,f){this.scale=[a/d,b/f]},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,d,f,h,e){b&&P(b)&&4===b.length&&(a.ctx.rect(d,f,h-d,e-f),a.clip(),a.endPath())},setFillAndStrokeStyleToContext:function(a,b,d){switch(b){case 1:b=this.ctx;a.fillStyle=b.fillStyle;a.strokeStyle=b.strokeStyle;break;case 2:b=x.makeCssRgb(d[0],d[1],d[2]);a.fillStyle=b;a.strokeStyle=b;break;default:A("Unsupported paint type: "+b)}},getPattern:function(a,b){var d=this.createPatternCanvas(b);a=this.ctx;a.setTransform.apply(a,this.baseTransform);
a.transform.apply(a,this.matrix);this.scaleToContext();return a.createPattern(d,"repeat")}};return b}();PDFJS.disableFontFace=!1;var J={insertRule:function(b){var a=document.getElementById("PDFJS_FONT_STYLE_TAG");a||(a=document.createElement("style"),a.id="PDFJS_FONT_STYLE_TAG",document.documentElement.getElementsByTagName("head")[0].appendChild(a));a=a.sheet;a.insertRule(b,a.cssRules.length)},clear:function(){var b=document.getElementById("PDFJS_FONT_STYLE_TAG");b&&b.parentNode.removeChild(b);this.nativeFontFaces.forEach(function(a){document.fonts.delete(a)});
this.nativeFontFaces.length=0},get loadTestFont(){return Q(this,"loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))},
loadTestFontId:0,loadingContext:{requests:[],nextRequestId:0},isSyncFontLoadingSupported:function(){if(V)return!1;var b=window.navigator.userAgent,a=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(b);return a&&14<=a[1]||"node"===b?!0:!1}(),nativeFontFaces:[],isFontLoadingAPISupported:!V&&!!document.fonts,addNativeFontFace:function(b){this.nativeFontFaces.push(b);document.fonts.add(b)},bind:function(b,a){V&&A("bind() shall be called from main thread");for(var c=[],d=[],f=[],h=0,e=b.length;h<e;h++){var l=b[h];
if(!l.attached&&!1!==l.loading)if(l.attached=!0,this.isFontLoadingAPISupported)(l=l.createNativeFontFace())&&f.push(l.loaded);else{var g=l.bindDOM();g&&(c.push(g),d.push(l))}}var k=J.queueLoadingCallback(a);this.isFontLoadingAPISupported?Promise.all(d).then(function(){k.complete()}):0<c.length&&!this.isSyncFontLoadingSupported?J.prepareFontLoadEvent(c,d,k):k.complete()},queueLoadingCallback:function(b){var a=J.loadingContext,c={id:"pdfjs-font-loading-"+a.nextRequestId++,complete:function(){c.end&&
A("completeRequest() cannot be called twice");for(c.end=Date.now();0<a.requests.length&&a.requests[0].end;){var b=a.requests.shift();setTimeout(b.callback,0)}},callback:b,started:Date.now()};a.requests.push(c);return c},prepareFontLoadEvent:function(b,a,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 f(a,b,c,d){var g=a.substr(0,b);a=a.substr(b+c);return g+d+a}function h(a,b){k++;30<k?(r("Load test font never loaded."),b()):(g.font=
"30px "+a,g.fillText(".",0,20),0<g.getImageData(0,0,1,1).data[3]?b():setTimeout(h.bind(null,a,b)))}var e,l;b=document.createElement("canvas");b.width=1;b.height=1;var g=b.getContext("2d"),k=0;b="lt"+Date.now()+this.loadTestFontId++;var m=this.loadTestFont,m=f(m,976,b.length,b),q=d(m,16);e=0;for(l=b.length-3;e<l;e+=4)q=q-1482184792+d(b,e)|0;e<b.length&&(q=q-1482184792+d(b+"XXX",e)|0);m=f(m,16,4,String.fromCharCode(q>>24&255,q>>16&255,q>>8&255,q&255));e="url(data:font/opentype;base64,"+btoa(m)+");";
J.insertRule('@font-face { font-family:"'+b+'";src:'+e+"}");m=[];e=0;for(l=a.length;e<l;e++)m.push(a[e].loadedName);m.push(b);var u=document.createElement("div");u.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;");e=0;for(l=m.length;e<l;++e)a=document.createElement("span"),a.textContent="Hi",a.style.fontFamily=m[e],u.appendChild(a);document.body.appendChild(u);h(b,function(){document.body.removeChild(u);c.complete()})}},va=function(){function b(a,
b,d){this.compiledGlyphs={};if(1===arguments.length){var f=arguments[0],h;for(h in f)this[h]=f[h]}}b.prototype={createNativeFontFace:function(){if(!this.data)return null;if(PDFJS.disableFontFace)return this.disableFontFace=!0,null;var a=new FontFace(this.loadedName,this.data,{});J.addNativeFontFace(a);PDFJS.pdfBug&&"FontInspector"in p&&p.FontInspector.enabled&&p.FontInspector.fontAdded(this);return a},bindDOM:function(){if(!this.data)return null;if(PDFJS.disableFontFace)return this.disableFontFace=
!0,null;var a;var b=new Uint8Array(this.data);a=b.length;if(8192>a)a=String.fromCharCode.apply(null,b);else{for(var d=[],f=0;f<a;f+=8192){var h=Math.min(f+8192,a),h=b.subarray(f,h);d.push(String.fromCharCode.apply(null,h))}a=d.join("")}b=this.loadedName;a="url(data:"+this.mimetype+";base64,"+window.btoa(a)+");";b='@font-face { font-family:"'+b+'";src:'+a+"}";J.insertRule(b);PDFJS.pdfBug&&"FontInspector"in p&&p.FontInspector.enabled&&p.FontInspector.fontAdded(this,a);return b},getPathGenerator:function(a,
b){if(!(b in this.compiledGlyphs)){var d=a.get(this.loadedName+"_path_"+b);this.compiledGlyphs[b]=new Function("c","size",d)}return this.compiledGlyphs[b]}};return b}(),X=function(){function b(a,b){var f=document.createElement("section"),h=f.style,e=a.rect[2]-a.rect[0],l=a.rect[3]-a.rect[1],g=a.borderWidth||0;g&&(e-=2*g,l-=2*g,h.borderWidth=g+"px",g=a.color,b&&g&&(h.borderStyle="solid",h.borderColor=x.makeCssRgb(Math.round(255*g[0]),Math.round(255*g[1]),Math.round(255*g[2]))));h.width=e+"px";h.height=
l+"px";h=document.createElement("div");h.className="annotationHighlight";h.style.left=h.style.top="-4px";h.style.right=h.style.bottom="-4px";h.setAttribute("hidden",!0);a.highlightElement=h;f.appendChild(a.highlightElement);return f}function a(a){var d=a.rect;10>d[3]-d[1]&&(d[3]=d[1]+10);10>d[2]-d[0]&&(d[2]=d[0]+(d[3]-d[1]));var f=b(a,!1);f.className="annotText";var h=document.createElement("img");h.style.height=f.style.height;h.style.width=f.style.width;var e=a.name;h.src=PDFJS.imageResourcesPath+
"annotation-"+e.toLowerCase()+".svg";h.alt="[{{type}} Annotation]";h.dataset.l10nId="text_annotation_type";h.dataset.l10nArgs=JSON.stringify({type:e});e=document.createElement("div");e.className="annotTextContentWrapper";e.style.left=Math.floor(d[2]-d[0]+5)+"px";e.style.top="-10px";var l=document.createElement("div");l.className="annotTextContent";l.setAttribute("hidden",!0);var g;a.hasBgColor&&(d=a.color,l.style.backgroundColor=x.makeCssRgb(255*(.7*(1-d[0])+d[0])|0,255*(.7*(1-d[1])+d[1])|0,255*(.7*
(1-d[2])+d[2])|0));var d=document.createElement("h1"),k=document.createElement("p");d.textContent=a.title;if(a.content||a.title){var m=document.createElement("span"),q=a.content.split(/(?:\r\n?|\n)/);a=0;for(g=q.length;a<g;++a)m.appendChild(document.createTextNode(q[a])),a<g-1&&m.appendChild(document.createElement("br"));k.appendChild(m);var u=!1,n=function(a){a&&(u=!0);l.hasAttribute("hidden")&&(f.style.zIndex+=1,l.removeAttribute("hidden"))},t=function(a){a&&(u=!1);l.hasAttribute("hidden")||u||
(f.style.zIndex-=1,l.setAttribute("hidden",!0))};h.addEventListener("click",function(){u?t(!0):n(!0)},!1);h.addEventListener("mouseover",function(){n()},!1);h.addEventListener("mouseout",function(){t()},!1);l.addEventListener("click",function(){t(!0)},!1)}else l.setAttribute("hidden",!0);l.appendChild(d);l.appendChild(k);e.appendChild(l);f.appendChild(h);f.appendChild(e);return f}return{getHtmlElement:function(c,d){switch(c.annotationType){case 1:var f=document.createElement("div"),h=c.rect[3]-c.rect[1];
f.style.width=c.rect[2]-c.rect[0]+"px";f.style.height=h+"px";f.style.display="table";h=document.createElement("div");h.textContent=c.fieldValue;h.style.textAlign=["left","center","right"][c.textAlignment];h.style.verticalAlign="middle";h.style.display="table-cell";var e=c.fontRefName?d.getData(c.fontRefName):null,l=h.style;l.fontSize=c.fontSize+"px";l.direction=0>c.fontDirection?"rtl":"ltr";if(e){l.fontWeight=e.black?e.bold?"bolder":"bold":e.bold?"bold":"normal";l.fontStyle=e.italic?"italic":"normal";
var g=e.loadedName;l.fontFamily=(g?'"'+g+'", ':"")+(e.fallbackName||"Helvetica, sans-serif")}f.appendChild(h);return f;case 2:return a(c);case 3:return f=b(c,!0),f.className="annotLink",h=document.createElement("a"),h.href=h.title=c.url||"",f.appendChild(h),f;default:throw Error("Unsupported annotationType: "+c.annotationType);}}}}();PDFJS.AnnotationUtils=X;var za=function(){function b(a,b,d,k){var m=k,f=b.length;d[m]=f>>24&255;d[m+1]=f>>16&255;d[m+2]=f>>8&255;d[m+3]=f&255;m+=4;d[m]=a.charCodeAt(0)&
255;d[m+1]=a.charCodeAt(1)&255;d[m+2]=a.charCodeAt(2)&255;d[m+3]=a.charCodeAt(3)&255;m+=4;d.set(b,m);m+=b.length;a=-1;for(k+=4;k<m;k++)a=a>>>8^c[(a^d[k])&255];k=a^-1;d[m]=k>>24&255;d[m+1]=k>>16&255;d[m+2]=k>>8&255;d[m+3]=k&255}for(var a=new Uint8Array([137,80,78,71,13,10,26,10]),c=new Int32Array(256),d=0;256>d;d++){for(var f=d,h=0;8>h;h++)f=f&1?3988292384^f>>1&2147483647:f>>1&2147483647;c[d]=f}return function(c){var d=void 0===c.kind?1:c.kind,g=c.width,k=c.height,m,f,h,n=c.data;switch(d){case 1:f=
0;m=1;h=g+7>>3;break;case 2:f=2;m=8;h=3*g;break;case 3:f=6;m=8;h=4*g;break;default:throw Error("invalid format");}c=new Uint8Array((1+h)*k);var t=0,s=0,p;for(p=0;p<k;++p)c[t++]=0,c.set(n.subarray(s,s+h),t),s+=h,t+=h;if(1===d)for(p=t=0;p<k;p++)for(t++,d=0;d<h;d++)c[t++]^=255;g=new Uint8Array([g>>24&255,g>>16&255,g>>8&255,g&255,k>>24&255,k>>16&255,k>>8&255,k&255,m,f,0,0,0]);m=c.length;k=Math.ceil(m/65535);k=new Uint8Array(2+m+5*k+4);d=0;k[d++]=120;k[d++]=156;for(f=0;65535<m;)k[d++]=0,k[d++]=255,k[d++]=
255,k[d++]=0,k[d++]=0,k.set(c.subarray(f,f+65535),d),d+=65535,f+=65535,m-=65535;k[d++]=1;k[d++]=m&255;k[d++]=m>>8&255;k[d++]=~m&255;k[d++]=(~m&65535)>>8&255;k.set(c.subarray(f),d);d+=c.length-f;m=1;for(h=f=0;h<c.length;++h)m=(m+(c[h]&255))%65521,f=(f+m)%65521;c=f<<16|m;k[d++]=c>>24&255;k[d++]=c>>16&255;k[d++]=c>>8&255;k[d++]=c&255;c=new Uint8Array(a.length+36+g.length+k.length);d=0;c.set(a,d);d+=a.length;b("IHDR",g,c,d);d+=12+g.length;b("IDATA",k,c,d);d+=12+k.length;b("IEND",new Uint8Array(0),c,d);
return PDFJS.createObjectURL(c,"image/png")}}(),Aa=function(){function b(){this.fontSizeScale=1;this.fontWeight="normal";this.fontSize=0;this.textMatrix=O;this.fontMatrix=R;this.wordSpacing=this.charSpacing=this.lineY=this.lineX=this.y=this.x=this.leading=0;this.textHScale=1;this.textRise=0;this.strokeColor=this.fillColor="#000000";this.lineWidth=this.strokeAlpha=this.fillAlpha=1;this.lineCap=this.lineJoin="";this.miterLimit=0;this.dashArray=[];this.dashPhase=0;this.dependencies=[];this.clipId="";
this.pendingClip=!1;this.maskId=""}b.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(a,b){this.x=a;this.y=b}};return b}(),X=function(){function b(a,b){var c=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");c.setAttributeNS(null,"version","1.1");c.setAttributeNS(null,"width",a+"px");c.setAttributeNS(null,"height",b+"px");c.setAttributeNS(null,"viewBox","0 0 "+a+" "+b);return c}function a(a){if(a===(a|0))return a.toString();a=a.toFixed(10);var b=a.length-
1;if("0"!==a[b])return a;do b--;while("0"===a[b]);return a.substr(0,"."===a[b]?b:b+1)}function c(b){if(0===b[4]&&0===b[5]){if(0===b[1]&&0===b[2])return 1===b[0]&&1===b[3]?"":"scale("+a(b[0])+" "+a(b[3])+")";if(b[0]===b[3]&&b[1]===-b[2])return b=180*Math.acos(b[0])/Math.PI,"rotate("+a(b)+")"}else if(1===b[0]&&0===b[1]&&0===b[2]&&1===b[3])return"translate("+a(b[4])+" "+a(b[5])+")";return"matrix("+a(b[0])+" "+a(b[1])+" "+a(b[2])+" "+a(b[3])+" "+a(b[4])+" "+a(b[5])+")"}function d(a,b){this.current=new Aa;
this.transformMatrix=O;this.transformStack=[];this.extraStack=[];this.commonObjs=a;this.objs=b;this.embedFonts=this.pendingEOFill=!1;this.embeddedFonts={};this.cssStyle=null}var f=["butt","round","square"],h=["miter","round","bevel"],e=0,l=0;d.prototype={save:function(){this.transformStack.push(this.transformMatrix);var a=this.current;this.extraStack.push(a);this.current=a.clone()},restore:function(){this.transformMatrix=this.transformStack.pop();this.current=this.extraStack.pop();this.tgrp=document.createElementNS("http://www.w3.org/2000/svg",
"svg:g");this.tgrp.setAttributeNS(null,"transform",c(this.transformMatrix));this.pgrp.appendChild(this.tgrp)},group:function(a){this.save();this.executeOpTree(a);this.restore()},loadDependencies:function(a){var b=a.fnArray,c=b.length;a=a.argsArray;for(var d=this,e=0;e<c;e++)if(n.dependency===b[e])for(var f=a[e],h=0,l=f.length;h<l;h++){var p=f[h],r;r="g_"===p.substring(0,2)?new Promise(function(a){d.commonObjs.get(p,a)}):new Promise(function(a){d.objs.get(p,a)});this.current.dependencies.push(r)}return Promise.all(this.current.dependencies)},
transform:function(a,b,d,e,f,h){this.transformMatrix=PDFJS.Util.transform(this.transformMatrix,[a,b,d,e,f,h]);this.tgrp=document.createElementNS("http://www.w3.org/2000/svg","svg:g");this.tgrp.setAttributeNS(null,"transform",c(this.transformMatrix))},getSVG:function(a,d){this.svg=b(d.width,d.height);this.viewport=d;return this.loadDependencies(a).then(function(){this.transformMatrix=O;this.pgrp=document.createElementNS("http://www.w3.org/2000/svg","svg:g");this.pgrp.setAttributeNS(null,"transform",
c(d.transform));this.tgrp=document.createElementNS("http://www.w3.org/2000/svg","svg:g");this.tgrp.setAttributeNS(null,"transform",c(this.transformMatrix));this.defs=document.createElementNS("http://www.w3.org/2000/svg","svg:defs");this.pgrp.appendChild(this.defs);this.pgrp.appendChild(this.tgrp);this.svg.appendChild(this.pgrp);var b=this.convertOpList(a);this.executeOpTree(b);return this.svg}.bind(this))},convertOpList:function(a){var b=a.argsArray,c=a.fnArray,d=c.length,e=[];a=[];for(var f in n)e[n[f]]=
f;for(f=0;f<d;f++){var h=c[f];a.push({fnId:h,fn:e[h],args:b[f]})}b=[];c=[];d=a.length;for(e=0;e<d;e++)"save"===a[e].fn?(b.push({fnId:92,fn:"group",items:[]}),c.push(b),b=b[b.length-1].items):"restore"===a[e].fn?b=c.pop():b.push(a[e]);return b},executeOpTree:function(a){for(var b=a.length,c=0;c<b;c++){var d=a[c].fn,e=a[c].args;switch(a[c].fnId|0){case n.beginText:this.beginText();break;case n.setLeading:this.setLeading(e);break;case n.setLeadingMoveText:this.setLeadingMoveText(e[0],e[1]);break;case n.setFont:this.setFont(e);
break;case n.showText:this.showText(e[0]);break;case n.showSpacedText:this.showText(e[0]);break;case n.endText:this.endText();break;case n.moveText:this.moveText(e[0],e[1]);break;case n.setCharSpacing:this.setCharSpacing(e[0]);break;case n.setWordSpacing:this.setWordSpacing(e[0]);break;case n.setTextMatrix:this.setTextMatrix(e[0],e[1],e[2],e[3],e[4],e[5]);break;case n.setLineWidth:this.setLineWidth(e[0]);break;case n.setLineJoin:this.setLineJoin(e[0]);break;case n.setLineCap:this.setLineCap(e[0]);
break;case n.setMiterLimit:this.setMiterLimit(e[0]);break;case n.setFillRGBColor:this.setFillRGBColor(e[0],e[1],e[2]);break;case n.setStrokeRGBColor:this.setStrokeRGBColor(e[0],e[1],e[2]);break;case n.setDash:this.setDash(e[0],e[1]);break;case n.setGState:this.setGState(e[0]);break;case n.fill:this.fill();break;case n.eoFill:this.eoFill();break;case n.stroke:this.stroke();break;case n.fillStroke:this.fillStroke();break;case n.eoFillStroke:this.eoFillStroke();break;case n.clip:this.clip("nonzero");
break;case n.eoClip:this.clip("evenodd");break;case n.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case n.paintJpegXObject:this.paintJpegXObject(e[0],e[1],e[2]);break;case n.paintImageXObject:this.paintImageXObject(e[0]);break;case n.paintInlineImageXObject:this.paintInlineImageXObject(e[0]);break;case n.paintImageMaskXObject:this.paintImageMaskXObject(e[0]);break;case n.paintFormXObjectBegin:this.paintFormXObjectBegin(e[0],e[1]);break;case n.paintFormXObjectEnd:this.paintFormXObjectEnd();
break;case n.closePath:this.closePath();break;case n.closeStroke:this.closeStroke();break;case n.closeFillStroke:this.closeFillStroke();break;case n.nextLine:this.nextLine();break;case n.transform:this.transform(e[0],e[1],e[2],e[3],e[4],e[5]);break;case n.constructPath:this.constructPath(e[0],e[1]);break;case n.endPath:this.endPath();break;case 92:this.group(a[c].items);break;default:r("Unimplemented method "+d)}}},setWordSpacing:function(a){this.current.wordSpacing=a},setCharSpacing:function(a){this.current.charSpacing=
a},nextLine:function(){this.moveText(0,this.current.leading)},setTextMatrix:function(b,c,d,e,f,h){var l=this.current;this.current.textMatrix=this.current.lineMatrix=[b,c,d,e,f,h];this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0;l.xcoords=[];l.tspan=document.createElementNS("http://www.w3.org/2000/svg","svg:tspan");l.tspan.setAttributeNS(null,"font-family",l.fontFamily);l.tspan.setAttributeNS(null,"font-size",a(l.fontSize)+"px");l.tspan.setAttributeNS(null,"y",a(-l.y));l.txtElement=
document.createElementNS("http://www.w3.org/2000/svg","svg:text");l.txtElement.appendChild(l.tspan)},beginText:function(){this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0;this.current.textMatrix=O;this.current.lineMatrix=O;this.current.tspan=document.createElementNS("http://www.w3.org/2000/svg","svg:tspan");this.current.txtElement=document.createElementNS("http://www.w3.org/2000/svg","svg:text");this.current.txtgrp=document.createElementNS("http://www.w3.org/2000/svg","svg:g");
this.current.xcoords=[]},moveText:function(b,c){var d=this.current;this.current.x=this.current.lineX+=b;this.current.y=this.current.lineY+=c;d.xcoords=[];d.tspan=document.createElementNS("http://www.w3.org/2000/svg","svg:tspan");d.tspan.setAttributeNS(null,"font-family",d.fontFamily);d.tspan.setAttributeNS(null,"font-size",a(d.fontSize)+"px");d.tspan.setAttributeNS(null,"y",a(-d.y))},showText:function(b){var d=this.current,e=d.font,f=d.fontSize;if(0!==f){var h=d.charSpacing,l=d.wordSpacing,n=d.fontDirection,
p=d.textHScale*n,r=b.length,e=e.vertical,A=f*d.fontMatrix[0],x=0,D;for(D=0;D<r;++D){var H=b[D];if(null===H)x+=n*l;else if("number"===typeof H)x+=-H*f*.001;else{d.xcoords.push(d.x+x*p);var J=H.fontChar,x=x+(H.width*A+h*n);d.tspan.textContent+=J}}e?d.y-=x*p:d.x+=x*p;d.tspan.setAttributeNS(null,"x",d.xcoords.map(a).join(" "));d.tspan.setAttributeNS(null,"y",a(-d.y));d.tspan.setAttributeNS(null,"font-family",d.fontFamily);d.tspan.setAttributeNS(null,"font-size",a(d.fontSize)+"px");"normal"!==d.fontStyle&&
d.tspan.setAttributeNS(null,"font-style",d.fontStyle);"normal"!==d.fontWeight&&d.tspan.setAttributeNS(null,"font-weight",d.fontWeight);"#000000"!==d.fillColor&&d.tspan.setAttributeNS(null,"fill",d.fillColor);d.txtElement.setAttributeNS(null,"transform",c(d.textMatrix)+" scale(1, -1)");d.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");d.txtElement.appendChild(d.tspan);d.txtgrp.appendChild(d.txtElement);this.tgrp.appendChild(d.txtElement)}},setLeadingMoveText:function(a,
b){this.setLeading(-b);this.moveText(a,b)},addFontStyle:function(a){this.cssStyle||(this.cssStyle=document.createElementNS("http://www.w3.org/2000/svg","svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var b=PDFJS.createObjectURL(a.data,a.mimetype);this.cssStyle.textContent+='@font-face { font-family: "'+a.loadedName+'"; src: url('+b+"); }\n"},setFont:function(b){var c=this.current,d=this.commonObjs.get(b[0]);b=b[1];this.current.font=d;this.embedFonts&&
d.data&&!this.embeddedFonts[d.loadedName]&&(this.addFontStyle(d),this.embeddedFonts[d.loadedName]=d);c.fontMatrix=d.fontMatrix?d.fontMatrix:R;var e=d.black?d.bold?"bolder":"bold":d.bold?"bold":"normal",f=d.italic?"italic":"normal";0>b?(b=-b,c.fontDirection=-1):c.fontDirection=1;c.fontSize=b;c.fontFamily=d.loadedName;c.fontWeight=e;c.fontStyle=f;c.tspan=document.createElementNS("http://www.w3.org/2000/svg","svg:tspan");c.tspan.setAttributeNS(null,"y",a(-c.y));c.xcoords=[]},endText:function(){this.current.pendingClip?
(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp);this.tgrp=document.createElementNS("http://www.w3.org/2000/svg","svg:g");this.tgrp.setAttributeNS(null,"transform",c(this.transformMatrix))},setLineWidth:function(a){this.current.lineWidth=a},setLineCap:function(a){this.current.lineCap=f[a]},setLineJoin:function(a){this.current.lineJoin=h[a]},setMiterLimit:function(a){this.current.miterLimit=a},setStrokeRGBColor:function(a,b,c){a=x.makeCssRgb(a,b,
c);this.current.strokeColor=a},setFillRGBColor:function(a,b,c){a=x.makeCssRgb(a,b,c);this.current.fillColor=a;this.current.tspan=document.createElementNS("http://www.w3.org/2000/svg","svg:tspan");this.current.xcoords=[]},setDash:function(a,b){this.current.dashArray=a;this.current.dashPhase=b},constructPath:function(b,c){var d=this.current,e=d.x,f=d.y;d.path=document.createElementNS("http://www.w3.org/2000/svg","svg:path");for(var h=[],l=b.length,p=0,r=0;p<l;p++)switch(b[p]|0){case n.rectangle:var e=
c[r++],f=c[r++],x=c[r++],A=c[r++],x=e+x,A=f+A;h.push("M",a(e),a(f),"L",a(x),a(f),"L",a(x),a(A),"L",a(e),a(A),"Z");break;case n.moveTo:e=c[r++];f=c[r++];h.push("M",a(e),a(f));break;case n.lineTo:e=c[r++];f=c[r++];h.push("L",a(e),a(f));break;case n.curveTo:e=c[r+4];f=c[r+5];h.push("C",a(c[r]),a(c[r+1]),a(c[r+2]),a(c[r+3]),a(e),a(f));r+=6;break;case n.curveTo2:e=c[r+2];f=c[r+3];h.push("C",a(e),a(f),a(c[r]),a(c[r+1]),a(c[r+2]),a(c[r+3]));r+=4;break;case n.curveTo3:e=c[r+2];f=c[r+3];h.push("C",a(c[r]),
a(c[r+1]),a(e),a(f),a(e),a(f));r+=4;break;case n.closePath:h.push("Z")}d.path.setAttributeNS(null,"d",h.join(" "));d.path.setAttributeNS(null,"stroke-miterlimit",a(d.miterLimit));d.path.setAttributeNS(null,"stroke-linecap",d.lineCap);d.path.setAttributeNS(null,"stroke-linejoin",d.lineJoin);d.path.setAttributeNS(null,"stroke-width",a(d.lineWidth)+"px");d.path.setAttributeNS(null,"stroke-dasharray",d.dashArray.map(a).join(" "));d.path.setAttributeNS(null,"stroke-dashoffset",a(d.dashPhase)+"px");d.path.setAttributeNS(null,
"fill","none");this.tgrp.appendChild(d.path);d.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp);d.element=d.path;d.setCurrentPoint(e,f)},endPath:function(){this.current.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp);this.tgrp=document.createElementNS("http://www.w3.org/2000/svg","svg:g");this.tgrp.setAttributeNS(null,"transform",c(this.transformMatrix))},clip:function(a){var b=
this.current;b.clipId="clippath"+e;e++;this.clippath=document.createElementNS("http://www.w3.org/2000/svg","svg:clipPath");this.clippath.setAttributeNS(null,"id",b.clipId);var d=b.element.cloneNode();"evenodd"===a?d.setAttributeNS(null,"clip-rule","evenodd"):d.setAttributeNS(null,"clip-rule","nonzero");this.clippath.setAttributeNS(null,"transform",c(this.transformMatrix));this.clippath.appendChild(d);this.defs.appendChild(this.clippath);b.pendingClip=!0;this.cgrp=document.createElementNS("http://www.w3.org/2000/svg",
"svg:g");this.cgrp.setAttributeNS(null,"clip-path","url(#"+b.clipId+")");this.pgrp.appendChild(this.cgrp)},closePath:function(){var a=this.current,b=a.path.getAttributeNS(null,"d");a.path.setAttributeNS(null,"d",b+"Z")},setLeading:function(a){this.current.leading=-a},setTextRise:function(a){this.current.textRise=a},setHScale:function(a){this.current.textHScale=a/100},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 "Font":this.setFont(e)}}},fill:function(){var a=this.current;a.element.setAttributeNS(null,"fill",a.fillColor)},stroke:function(){var a=this.current;a.element.setAttributeNS(null,"stroke",a.strokeColor);a.element.setAttributeNS(null,"fill","none")},eoFill:function(){var a=this.current;a.element.setAttributeNS(null,"fill",a.fillColor);a.element.setAttributeNS(null,"fill-rule",
"evenodd")},fillStroke:function(){this.stroke();this.fill()},eoFillStroke:function(){this.current.element.setAttributeNS(null,"fill-rule","evenodd");this.fillStroke()},closeStroke:function(){this.closePath();this.stroke()},closeFillStroke:function(){this.closePath();this.fillStroke()},paintSolidColorImageMask:function(){var a=this.current,b=document.createElementNS("http://www.w3.org/2000/svg","svg:rect");b.setAttributeNS(null,"x","0");b.setAttributeNS(null,"y","0");b.setAttributeNS(null,"width",
"1px");b.setAttributeNS(null,"height","1px");b.setAttributeNS(null,"fill",a.fillColor);this.tgrp.appendChild(b)},paintJpegXObject:function(b,c,d){var e=this.current;b=this.objs.get(b);var f=document.createElementNS("http://www.w3.org/2000/svg","svg:image");f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",b.src);f.setAttributeNS(null,"width",b.width+"px");f.setAttributeNS(null,"height",b.height+"px");f.setAttributeNS(null,"x","0");f.setAttributeNS(null,"y",a(-d));f.setAttributeNS(null,
"transform","scale("+a(1/c)+" "+a(-1/d)+")");this.tgrp.appendChild(f);e.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp)},paintImageXObject:function(a){(a=this.objs.get(a))?this.paintInlineImageXObject(a):r("Dependent image isn't ready yet")},paintInlineImageXObject:function(b,c){var d=this.current,e=b.width,f=b.height,h=za(b),l=document.createElementNS("http://www.w3.org/2000/svg","svg:rect");l.setAttributeNS(null,"x","0");l.setAttributeNS(null,
"y","0");l.setAttributeNS(null,"width",a(e));l.setAttributeNS(null,"height",a(f));d.element=l;this.clip("nonzero");l=document.createElementNS("http://www.w3.org/2000/svg","svg:image");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);l.setAttributeNS(null,"x","0");l.setAttributeNS(null,"y",a(-f));l.setAttributeNS(null,"width",a(e)+"px");l.setAttributeNS(null,"height",a(f)+"px");l.setAttributeNS(null,"transform","scale("+a(1/e)+" "+a(-1/f)+")");c?c.appendChild(l):this.tgrp.appendChild(l);
d.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp)},paintImageMaskXObject:function(b){var c=this.current,d=b.width,e=b.height,f=c.fillColor;c.maskId="mask"+l++;var h=document.createElementNS("http://www.w3.org/2000/svg","svg:mask");h.setAttributeNS(null,"id",c.maskId);var n=document.createElementNS("http://www.w3.org/2000/svg","svg:rect");n.setAttributeNS(null,"x","0");n.setAttributeNS(null,"y","0");n.setAttributeNS(null,"width",a(d));
n.setAttributeNS(null,"height",a(e));n.setAttributeNS(null,"fill",f);n.setAttributeNS(null,"mask","url(#"+c.maskId+")");this.defs.appendChild(h);this.tgrp.appendChild(n);this.paintInlineImageXObject(b,h)},paintFormXObjectBegin:function(b,c){this.save();P(b)&&6===b.length&&this.transform(b[0],b[1],b[2],b[3],b[4],b[5]);if(P(c)&&4===c.length){var d=c[2]-c[0],e=c[3]-c[1],f=document.createElementNS("http://www.w3.org/2000/svg","svg:rect");f.setAttributeNS(null,"x",c[0]);f.setAttributeNS(null,"y",c[1]);
f.setAttributeNS(null,"width",a(d));f.setAttributeNS(null,"height",a(e));this.current.element=f;this.clip("nonzero");this.endPath()}},paintFormXObjectEnd:function(){this.restore()}};return d}();PDFJS.SVGGraphics=X}).call("undefined"===typeof window?this:window);PDFJS.workerSrc||"undefined"===typeof document||(PDFJS.workerSrc=function(){var M=(document.body||document.getElementsByTagName("head")[0]).lastChild.src;return M&&M.replace(/\.js$/i,".worker.js")}());