!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",[],e):"object"==typeofexports?exports["pdfjs-dist/build/pdf"]=e():t["pdfjs-dist/build/pdf"]=t.pdfjsDistBuildPdf=e()}(this,function(){returnfunction(t){functione(r){if(n[r])returnn[r].exports;vari=n[r]={i:r,l:!1,exports:{}};returnt[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}varn={};returne.m=t,e.c=n,e.i=function(t){returnt},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){varn=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(n,"a",n),n},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=13)}([function(t,e,n){"use strict";(function(t){functionr(t){it=t}functioni(){returnit}functiona(t){it>=et.infos&&console.log("Info: "+t)}functions(t){it>=et.warnings&&console.log("Warning: "+t)}functiono(t){console.log("Deprecated API usage: "+t)}functionc(t){throwit>=et.errors&&(console.log("Error: "+t),console.log(l())),newError(t)}functionl(){try{thrownewError}catch(t){returnt.stack?t.stack.split("\n").slice(2).join("\n"):""}}functionu(t,e){t||c(e)}functionh(t,e){try{varn=newURL(t);if(!n.origin||"null"===n.origin)return!1}catch(t){return!1}varr=newURL(e,n);returnn.origin===r.origin}functiond(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionf(t,e){if(!t)returnnull;try{varn=e?newURL(t,e):newURL(t);if(d(n))returnn}catch(t){}returnnull}functionp(t,e,n){returnObject.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}functiong(t){vare;returnfunction(){returnt&&(e=Object.create(null),t(e),t=null),e}}functionm(t){return"string"!=typeoft?(s("The argument for removeNullCharacters must be a string."),t):t.replace(gt,"")}functionv(t){u(null!==t&&"object"===(void0===t?"undefined":X(t))&&void0!==t.length,"Invalid argument for bytesToString");vare=t.length;if(e<8192)returnString.fromCharCode.apply(null,t);for(varn=[],r=0;r<e;r+=8192){vari=Math.min(r+8192,e),a=t.subarray(r,i);n.push(String.fromCharCode.apply(null,a))}returnn.join("")}functionA(t){u("string"==typeoft,"Invalid argument for stringToBytes");for(vare=t.length,n=newUint8Array(e),r=0;r<e;++r)n[r]=255&t.charCodeAt(r);returnn}functionb(t){returnvoid0!==t.length?t.length:(u(void0!==t.byteLength),t.byteLength)}functiony(t){if(1===t.length&&t[0]instanceofUint8Array)returnt[0];vare,n,r,i=0,a=t.length;for(e=0;e<a;e++)n=t[e],r=b(n),i+=r;vars=0,o=newUint8Array(i);for(e=0;e<a;e++)n=t[e],ninstanceofUint8Array||(n="string"==typeofn?A(n):newUint8Array(n)),r=n.byteLength,o.set(n,s),s+=r;returno}functionS(t){returnString.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}functionx(t){for(vare=1,n=0;t>e;)e<<=1,n++;returnn}functionw(t,e){returnt[e]<<24>>24}functionT(t,e){returnt[e]<<8|t[e+1]}function_(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}functionk(){vart=newUint8Array(4);returnt[0]=1,1===newUint32Array(t.buffer,0,1)[0]}functionC(){try{returnnewFunction(""),!0}catch(t){return!1}}functionP(t){vare,n=t.length,r=[];if("þ"===t[0]&&"ÿ"===t[1])for(e=2;e<n;e+=2)r.push(String.fromCharCode(t.charCodeAt(e)<<8|t.charCodeAt(e+1)));elsefor(e=0;e<n;++e){vari=bt[t.charCodeAt(e)];r.push(i?String.fromCharCode(i):t.charAt(e))}returnr.join("")}functionE(t){returndecodeURIComponent(escape(t))}functionL(t){returnunescape(encodeURIComponent(t))}functionR(t){for(vareint)return!1;return!0}functionO(t){return"boolean"==typeoft}functionI(t){return"number"==typeoft&&(0|t)===t}functionD(t){return"number"==typeoft}functionF(t){return"string"==typeoft}functionM(t){returntinstanceofArray}functionN(t){return"object"===(void0===t?"undefined":X(t))&&null!==t&&void0!==t.byteLength}functionj(t){return32===t||9===t||13===t||10===t}functionU(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"===("undefined"==typeofproce
this.baseTransform=this.ctx.mozCurrentTransform,(0,a.isArray)(e)&&4===e.length){varn=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(t){this.save();vare=this.ctx;t.isolated||(0,a.info)("TODO: Support non-isolated groups."),t.knockout&&(0,a.warn)("Knockout groups not supported.");varn=e.mozCurrentTransform;t.matrix&&e.transform.apply(e,t.matrix),(0,a.assert)(t.bbox,"Bounding box is required.");varr=a.Util.getAxialAlignedBoundingBox(t.bbox,e.mozCurrentTransform),i=[0,0,e.canvas.width,e.canvas.height];r=a.Util.intersect(r,i)||[0,0,0,0];vars=Math.floor(r[0]),o=Math.floor(r[1]),c=Math.max(Math.ceil(r[2])-s,1),l=Math.max(Math.ceil(r[3])-o,1),u=1,h=1;c>4096&&(u=c/4096,c=4096),l>4096&&(h=l/4096,l=4096);varf="groupAt"+this.groupLevel;t.smask&&(f+="_smask_"+this.smaskCounter++%2);varp=this.cachedCanvases.getCanvas(f,c,l,!0),g=p.context;g.scale(1/u,1/h),g.translate(-s,-o),g.transform.apply(g,n),t.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:s,offsetY:o,scaleX:u,scaleY:h,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(s,o),e.scale(u,h)),d(e,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++,this.current.activeSMask=null},endGroup:function(t){this.groupLevel--;vare=this.ctx;this.ctx=this.groupStack.pop(),void0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,t.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(e.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(t,e,n){if(this.save(),f(this.ctx),this.current=newh,(0,a.isArray)(t)&&4===t.length){varr=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],r,i),this.clip(),this.endPath()}this.transform.apply(this,e),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintJpegXObject:function(t,e,n){varr=this.objs.get(t);if(!r)returnvoid(0,a.warn)("Dependent image isn't ready yet");this.save();vari=this.ctx;if(i.scale(1/e,-1/n),i.drawImage(r,0,0,r.width,r.height,0,-n,e,n),this.imageLayer){vars=i.mozCurrentTransformInverse,o=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:t,left:o[0],top:o[1],width:e/s[0],height:n/s[3]})}this.restore()},paintImageMaskXObject:function(t){vare=this.ctx,r=t.width,a=t.height,s=this.current.fillColor,o=this.current.patternFill,c=this.processingType3;if(c&&void0===c.compiled&&(c.compiled=r<=1e3&&a<=1e3?i({data:t.data,width:r,height:a}):null),c&&c.compiled)returnvoidc.compiled(e);varl=this.cachedCanvases.getCanvas("maskCanvas",r,a),u=l.context;u.save(),n(u,t),u.globalCompositeOperation="source-in",u.fillStyle=o?s.getPattern(u,this):s,u.fillRect(0,0,r,a),u.restore(),this.paintInlineImageXObject(l.canvas)},paintImageMaskXObjectRepeat:function(t,e,r,i){vara=t.width,s=t.height,o=this.current.fillColor,c=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",a,s),u=l.context;u.save(),n(u,t),u.globalCompositeOperation="source-in",u.fillStyle=c?o.getPattern(u,this):o,u.fillRect(0,0,a,s),u.restore();for(varh=this.ctx,d=0,f=i.length;d<f;d+=2)h.save(),h.transform(e,0,0,r,i[d],i[d+1]),h.scale(1,-1),h.drawImage(l.canvas,0,0,a,s,0,-1,1,1),h.restore()},paintImageMaskXObjectGroup:function(t){for(vare=this.ctx,r=this.current.fillColor,i=this.current.patternFill,a=0,s=t.length;a<s;a++){varo=t[a],c=o.width,l=o.height,u=this.cachedCanvases.getCanvas("maskCanvas",c,l),h=u.context;h.save(),n(h,o),h.globalCompositeOperation="source-in",h.fillStyle=i?r.getPattern(h,this):r,h.fillRect(0,0,c,l),h.restore(),e.save(),e.transform.apply(e,o.transform),e.scale(1,-1),e.drawImage(u.canvas,0,0,c,l,0,-1,1,1),e.restore()}},paintImageXObject:function(t){vare=this.objs.get(t);if
}),o=e.length,c=[];if(0===o)returni(c),s;for(varl=0,u=e.length;l<u;++l){varh=e[l],d=function(e){returnfunction(n){s._status!==t&&(c[e]=n,0===--o&&i(c))}}(l);r.isPromise(h)?h.then(d,n):d(h)}returns},r.isPromise=function(t){returnt&&"function"==typeoft.then},r.resolve=function(t){returnnewr(function(e){e(t)})},r.reject=function(t){returnnewr(function(e,n){n(t)})},r.prototype={_status:null,_value:null,_handlers:null,_unhandledRejection:null,_updateStatus:function(n,i){if(1!==this._status&&this._status!==t){if(1===n&&r.isPromise(i))returnvoidi.then(this._updateStatus.bind(this,1),this._updateStatus.bind(this,t));this._status=n,this._value=i,n===t&&0===this._handlers.length&&(this._unhandledRejection=!0,e.addUnhandledRejection(this)),e.scheduleHandlers(this)}},_resolve:function(t){this._updateStatus(1,t)},_reject:function(e){this._updateStatus(t,e)},then:function(t,n){vari=newr(function(t,e){this.resolve=t,this.reject=e});returnthis._handlers.push({thisPromise:this,onResolve:t,onReject:n,nextPromise:i}),e.scheduleHandlers(this),i},catch:function(t){returnthis.then(void0,t)}},n.Promise=r}(),function(){functiont(){this.id="$weakmap"+e++}if(!n.WeakMap){vare=0;t.prototype={has:function(t){return!!Object.getOwnPropertyDescriptor(t,this.id)},get:function(t,e){returnthis.has(t)?t[this.id]:e},set:function(t,e){Object.defineProperty(t,this.id,{value:e,enumerable:!1,configurable:!0})},delete:function(t){deletet[this.id]}},n.WeakMap=t}}(),function(){functiont(t){returnvoid0!==d[t]}functionr(){c.call(this),this._isInvalid=!0}functioni(t){return""===t&&r.call(this),t.toLowerCase()}functiona(t){vare=t.charCodeAt(0);returne>32&&e<127&&-1===[34,35,60,62,63,96].indexOf(e)?t:encodeURIComponent(t)}functions(t){vare=t.charCodeAt(0);returne>32&&e<127&&-1===[34,35,60,62,96].indexOf(e)?t:encodeURIComponent(t)}functiono(e,n,o){functionc(t){b.push(t)}varl=n||"scheme start",u=0,h="",v=!1,A=!1,b=[];t:for(;(e[u-1]!==p||0===u)&&!this._isInvalid;){vary=e[u];switch(l){case"scheme start":if(!y||!g.test(y)){if(n){c("Invalid scheme.");breakt}h="",l="no scheme";continue}h+=y.toLowerCase(),l="scheme";break;case"scheme":if(y&&m.test(y))h+=y.toLowerCase();else{if(":"!==y){if(n){if(y===p)breakt;c("Code point not allowed in scheme: "+y);breakt}h="",u=0,l="no scheme";continue}if(this._scheme=h,h="",n)breakt;t(this._scheme)&&(this._isRelative=!0),l="file"===this._scheme?"relative":this._isRelative&&o&&o._scheme===this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"===y?(this._query="?",l="query"):"#"===y?(this._fragment="#",l="fragment"):y!==p&&"\t"!==y&&"\n"!==y&&"\r"!==y&&(this._schemeData+=a(y));break;case"no scheme":if(o&&t(o._scheme)){l="relative";continue}c("Missing scheme."),r.call(this);break;case"relative or authority":if("/"!==y||"/"!==e[u+1]){c("Expected /, got: "+y),l="relative";continue}l="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!==this._scheme&&(this._scheme=o._scheme),y===p){this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query=o._query,this._username=o._username,this._password=o._password;breakt}if("/"===y||"\\"===y)"\\"===y&&c("\\ is an invalid code point."),l="relative slash";elseif("?"===y)this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query="?",this._username=o._username,this._password=o._password,l="query";else{if("#"!==y){varS=e[u+1],x=e[u+2];("file"!==this._scheme||!g.test(y)||":"!==S&&"|"!==S||x!==p&&"/"!==x&&"\\"!==x&&"?"!==x&&"#"!==x)&&(this._host=o._host,this._port=o._port,this._username=o._username,this._password=o._password,this._path=o._path.slice(),this._path.pop()),l="relative path";continue}this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query=o._query,this._fragment="#",this._username=o._username,this._password=o._password,l="fragment"}break;case"relative slash":if("/"!==y&&"\\"!==y){"file"!==this._scheme&&(this._host=o._host,this._port=o._port,this._username=o._username,this._password=o._password),l="relative path";con