!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",[],t):"object"==typeofexports?exports["pdfjs-dist/build/pdf"]=t():e["pdfjs-dist/build/pdf"]=e.pdfjsDistBuildPdf=t()}(this,function(){returnfunction(e){functiont(n){if(r[n])returnr[n].exports;vari=r[n]={i:n,l:!1,exports:{}};returne[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}varr={};returnt.m=e,t.c=r,t.i=function(e){returne},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){varr=e&&e.__esModule?function(){returne.default}:function(){returne};returnt.d(r,"a",r),r},t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=14)}([function(e,t,r){"use strict";(function(e){functionn(e){se=e}functioni(){returnse}functiona(e){se>=ie.infos&&console.log("Info: "+e)}functiono(e){se>=ie.warnings&&console.log("Warning: "+e)}functions(e){console.log("Deprecated API usage: "+e)}functionl(e){thrownewError(e)}functionc(e,t){e||l(t)}functionu(e,t){try{varr=newURL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}varn=newURL(t,r);returnr.origin===n.origin}functiond(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionh(e,t){if(!e)returnnull;try{varr=t?newURL(e,t):newURL(e);if(d(r))returnr}catch(e){}returnnull}functionf(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}functionp(e){vart;returnfunction(){returne&&(t=Object.create(null),e(t),e=null),t}}functionm(e){return"string"!=typeofe?(o("The argument for removeNullCharacters must be a string."),e):e.replace(ye,"")}functiong(e){c(null!==e&&"object"===(void0===e?"undefined":X(e))&&void0!==e.length,"Invalid argument for bytesToString");vart=e.length;if(t<8192)returnString.fromCharCode.apply(null,e);for(varr=[],n=0;n<t;n+=8192){vari=Math.min(n+8192,t),a=e.subarray(n,i);r.push(String.fromCharCode.apply(null,a))}returnr.join("")}functionv(e){c("string"==typeofe,"Invalid argument for stringToBytes");for(vart=e.length,r=newUint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);returnr}functionb(e){returnvoid0!==e.length?e.length:(c(void0!==e.byteLength),e.byteLength)}functiony(e){if(1===e.length&&e[0]instanceofUint8Array)returne[0];vart,r,n,i=0,a=e.length;for(t=0;t<a;t++)r=e[t],n=b(r),i+=n;varo=0,s=newUint8Array(i);for(t=0;t<a;t++)r=e[t],rinstanceofUint8Array||(r="string"==typeofr?v(r):newUint8Array(r)),n=r.byteLength,s.set(r,o),o+=n;returns}function_(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionA(e){for(vart=1,r=0;e>t;)t<<=1,r++;returnr}functionS(e,t){returne[t]<<24>>24}functionw(e,t){returne[t]<<8|e[t+1]}functionP(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionC(){vare=newUint8Array(4);returne[0]=1,1===newUint32Array(e.buffer,0,1)[0]}functionx(){try{returnnewFunction(""),!0}catch(e){return!1}}functionk(e){vart,r=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<r;t+=2)n.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));elsefor(t=0;t<r;++t){vari=we[e.charCodeAt(t)];n.push(i?String.fromCharCode(i):e.charAt(t))}returnn.join("")}functionT(e){returndecodeURIComponent(escape(e))}functionR(e){returnunescape(encodeURIComponent(e))}functionE(e){for(vartine)return!1;return!0}functionI(e){return"boolean"==typeofe}functionL(e){return"number"==typeofe&&(0|e)===e}functionO(e){return"number"==typeofe}functionj(e){return"string"==typeofe}functionD(e){returneinstanceofArray}functionF(e){return"object"===(void0===e?"undefined":X(e))&&null!==e&&void0!==e.byteLength}functionN(e){return32===e||9===e||13===e||10===e}functionM(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"===("undefined"==typeofprocess?"undefined":X(process))&&process+""=="[object process]")}functionW(){vare={};returne.promise=newPromise(function(t,r){e.resolve=t,e.reject=r}),e}function
;return3!==r&&1!==r?Promise.reject(newError("Only 3 components or 1 component can be returned")):newPromise(function(e,n){vari=newImage;i.onload=function(){vart=i.width,n=i.height,a=t*n,o=4*a,s=newUint8Array(a*r),l=document.createElement("canvas");l.width=t,l.height=n;varc=l.getContext("2d");c.drawImage(i,0,0);varu,d,h=c.getImageData(0,0,t,n).data;if(3===r)for(u=0,d=0;u<o;u+=4,d+=3)s[d]=h[u],s[d+1]=h[u+1],s[d+2]=h[u+2];elseif(1===r)for(u=0,d=0;u<o;u+=4,d++)s[d]=h[u];e({data:s,width:t,height:n})},i.onerror=function(){n(newError("JpegDecode failed to load image"))},i.src=t})},this),e.on("FetchBuiltInCMap",function(e){returnthis.destroyed?Promise.reject(newError("Worker was destroyed")):this.CMapReaderFactory.fetch({name:e.name})},this)},getData:function(){returnthis.messageHandler.sendWithPromise("GetData",null)},getPage:function(e,t){varr=this;if(!(0,c.isInt)(e)||e<=0||e>this.numPages)returnPromise.reject(newError("Invalid page request"));varn=e-1;if(ninthis.pagePromises)returnthis.pagePromises[n];vari=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(e){if(r.destroyed)thrownewError("Transport destroyed");vart=newx(n,e,r);returnr.pageCache[n]=t,t});returnthis.pagePromises[n]=i,i},getPageIndex:function(e){returnthis.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){returnPromise.reject(newError(e))})},getAnnotations:function(e,t){returnthis.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})},getDestinations:function(){returnthis.messageHandler.sendWithPromise("GetDestinations",null)},getDestination:function(e){returnthis.messageHandler.sendWithPromise("GetDestination",{id:e})},getPageLabels:function(){returnthis.messageHandler.sendWithPromise("GetPageLabels",null)},getAttachments:function(){returnthis.messageHandler.sendWithPromise("GetAttachments",null)},getJavaScript:function(){returnthis.messageHandler.sendWithPromise("GetJavaScript",null)},getOutline:function(){returnthis.messageHandler.sendWithPromise("GetOutline",null)},getMetadata:function(){returnthis.messageHandler.sendWithPromise("GetMetadata",null).then(function(e){return{info:e[0],metadata:e[1]?newf.Metadata(e[1]):null}})},getStats:function(){returnthis.messageHandler.sendWithPromise("GetStats",null)},startCleanup:function(){vare=this;this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(vart=0,r=e.pageCache.length;t<r;t++){varn=e.pageCache[t];n&&n.cleanup()}e.commonObjs.clear(),e.fontLoader.clear()})}},e}(),E=function(){functione(){this.objs=Object.create(null)}returne.prototype={ensureObj:function(e){if(this.objs[e])returnthis.objs[e];vart={capability:(0,c.createPromiseCapability)(),data:null,resolved:!1};returnthis.objs[e]=t,t},get:function(e,t){if(t)returnthis.ensureObj(e).capability.promise.then(t),null;varr=this.objs[e];if(!r||!r.resolved)thrownewError("Requesting object that isn't resolved yet "+e);returnr.data},resolve:function(e,t){varr=this.ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)},isResolved:function(e){vart=this.objs;return!!t[e]&&t[e].resolved},hasData:function(e){returnthis.isResolved(e)},getData:function(e){vart=this.objs;returnt[e]&&t[e].resolved?t[e].data:null},clear:function(){this.objs=Object.create(null)}},e}(),I=function(){functione(e){this._internalRenderTask=e,this.onContinue=null}returne.prototype={getpromise(){returnthis._internalRenderTask.capability.promise},cancel:function(){this._internalRenderTask.cancel()},then:function(e,t){returnthis.promise.then.apply(this.promise,arguments)}},e}(),L=function(){functione(e,t,r,n,i,a,o){this.callback=e,this.params=t,this.objs=r,this.commonObjs=n,this.operatorListIdx=null,this.operatorList=i,this.pageNumber=a,this.canvasFactory=o,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this.useRequestAnimationFrame=!1,this.cancelled=!1,this.capability=(0,c.createPromiseCapability)(),this.task=newI(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBo
this._writeRequests=[],this._inFlightWriteRequest=void0,this._closeRequest=void0,this._inFlightCloseRequest=void0,this._pendingAbortRequest=void0,this._backpressure=!1,void0!==t.type)thrownewRangeError("Invalid type is specified");this._writableStreamController=new_e(this,t,i,o),this._writableStreamController.__startSteps()}returnie(e,[{key:"abort",value:function(e){return!1===a(this)?Promise.reject(B("abort")):!0===o(this)?Promise.reject(newTypeError("Cannot abort a stream that already has a writer")):s(this,e)}},{key:"getWriter",value:function(){if(!1===a(this))throwB("getWriter");returni(this)}},{key:"locked",get:function(){if(!1===a(this))throwB("locked");returno(this)}}]),e}();e.exports={AcquireWritableStreamDefaultWriter:i,IsWritableStream:a,IsWritableStreamLocked:o,WritableStream:be,WritableStreamAbort:s,WritableStreamDefaultControllerError:q,WritableStreamDefaultWriterCloseWithErrorPropagation:C,WritableStreamDefaultWriterRelease:R,WritableStreamDefaultWriterWrite:E,WritableStreamCloseQueuedOrInFlight:g};varye=function(){functione(t){if(n(this,e),!1===a(t))thrownewTypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===o(t))thrownewTypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;varr=t._state;if("writable"===r)!1===g(t)&&!0===t._backpressure?K(this):$(this),X(this);elseif("erroring"===r)Z(this,t._storedError),this._readyPromise.catch(function(){}),X(this);elseif("closed"===r)$(this),Y(this);else{de("errored"===r,"state must be errored");vari=t._storedError;Z(this,i),this._readyPromise.catch(function(){}),H(this,i),this._closedPromise.catch(function(){})}}returnie(e,[{key:"abort",value:function(e){return!1===S(this)?Promise.reject(z("abort")):void0===this._ownerWritableStream?Promise.reject(G("abort")):w(this,e)}},{key:"close",value:function(){if(!1===S(this))returnPromise.reject(z("close"));vare=this._ownerWritableStream;returnvoid0===e?Promise.reject(G("close")):!0===g(e)?Promise.reject(newTypeError("cannot close an already-closing stream")):P(this)}},{key:"releaseLock",value:function(){if(!1===S(this))throwz("releaseLock");vare=this._ownerWritableStream;void0!==e&&(de(void0!==e._writer),R(this))}},{key:"write",value:function(e){return!1===S(this)?Promise.reject(z("write")):void0===this._ownerWritableStream?Promise.reject(G("write to")):E(this,e)}},{key:"closed",get:function(){return!1===S(this)?Promise.reject(z("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(!1===S(this))throwz("desiredSize");if(void0===this._ownerWritableStream)throwG("desiredSize");returnT(this)}},{key:"ready",get:function(){return!1===S(this)?Promise.reject(z("ready")):this._readyPromise}}]),e}(),_e=function(){functione(t,r,i,o){if(n(this,e),!1===a(t))thrownewTypeError("WritableStreamDefaultController can only be constructed with a WritableStream instance");if(void0!==t._writableStreamController)thrownewTypeError("WritableStreamDefaultController instances can only be created by the WritableStream constructor");this._controlledWritableStream=t,this._underlyingSink=r,this._queue=void0,this._queueTotalSize=void0,ve(this),this._started=!1;vars=le(i,o);this._strategySize=s.size,this._strategyHWM=s.highWaterMark,A(t,U(this))}returnie(e,[{key:"error",value:function(e){if(!1===D(this))thrownewTypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&q(this,e)}},{key:"__abortSteps",value:function(e){returnse(this._underlyingSink,"abort",[e])}},{key:"__errorSteps",value:function(){ve(this)}},{key:"__startSteps",value:function(){vare=this,t=oe(this._underlyingSink,"start",[this]),r=this._controlledWritableStream;Promise.resolve(t).then(function(){de("writable"===r._state||"erroring"===r._state),e._started=!0,F(e)},function(t){de("writable"===r._state||"erroring"===r._state),e._started=!0,c(r,t)}).catch(he)}}]),e}()},function(e,t,r){varn=r(
t.AcquireWritableStreamDefaultWriter=a.AcquireWritableStreamDefaultWriter,t.IsWritableStream=a.IsWritableStream,t.IsWritableStreamLocked=a.IsWritableStreamLocked,t.WritableStream=a.WritableStream,t.WritableStreamAbort=a.WritableStreamAbort,t.WritableStreamDefaultControllerError=a.WritableStreamDefaultControllerError,t.WritableStreamDefaultWriterCloseWithErrorPropagation=a.WritableStreamDefaultWriterCloseWithErrorPropagation,t.WritableStreamDefaultWriterRelease=a.WritableStreamDefaultWriterRelease,t.WritableStreamDefaultWriterWrite=a.WritableStreamDefaultWriterWrite},function(e,t,r){functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e){if(!0===e._errored)thrownewTypeError("TransformStream is already errored");if(!0===e._readableClosed)thrownewTypeError("Readable side is already closed");s(e)}functiona(e,t){if(!0===e._errored)thrownewTypeError("TransformStream is already errored");if(!0===e._readableClosed)thrownewTypeError("Readable side is already closed");varr=e._readableController;try{R(r,t)}catch(t){throwe._readableClosed=!0,l(e,t),e._storedError}!0==I(r)<=0&&!1===e._backpressure&&d(e,!0)}functiono(e,t){if(!0===e._errored)thrownewTypeError("TransformStream is already errored");c(e,t)}functions(e){_(!1===e._errored),_(!1===e._readableClosed);try{T(e._readableController)}catch(e){_(!1)}e._readableClosed=!0}functionl(e,t){!1===e._errored&&c(e,t)}functionc(e,t){_(!1===e._errored),e._errored=!0,e._storedError=t,!1===e._writableDone&&j(e._writableController,t),!1===e._readableClosed&&E(e._readableController,t)}functionu(e){return_(void0!==e._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),!1===e._backpressure?Promise.resolve():(_(!0===e._backpressure,"_backpressure should have been initialized"),e._backpressureChangePromise)}functiond(e,t){_(e._backpressure!==t,"TransformStreamSetBackpressure() should be called only when backpressure is changed"),void0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(t),e._backpressureChangePromise=newPromise(function(t){e._backpressureChangePromise_resolve=t}),e._backpressureChangePromise.then(function(e){_(e!==t,"_backpressureChangePromise should be fulfilled only when backpressure is changed")}),e._backpressure=t}functionh(e,t){returna(t._controlledTransformStream,e),Promise.resolve()}functionf(e,t){_(!1===e._errored),_(!1===e._transforming),_(!1===e._backpressure),e._transforming=!0;varr=e._transformer,n=e._transformStreamController;returnw(r,"transform",[t,n],h,[t,n]).then(function(){returne._transforming=!1,u(e)},function(t){returnl(e,t),Promise.reject(t)})}functionp(e){return!!C(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}functionm(e){return!!C(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}functiong(e){returnnewTypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}functionv(e){returnnewTypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}varb=function(){functione(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,r,n){returnr&&e(t.prototype,r),n&&e(t,n),t}}(),y=r(1),_=y.assert,A=r(0),S=A.InvokeOrNoop,w=A.PromiseInvokeOrPerformFallback,P=A.PromiseInvokeOrNoop,C=A.typeIsObject,x=r(4),k=x.ReadableStream,T=x.ReadableStreamDefaultControllerClose,R=x.ReadableStreamDefaultControllerEnqueue,E=x.ReadableStreamDefaultControllerError,I=x.ReadableStreamDefaultControllerGetDesiredSize,L=r(2),O=L.WritableStream,j=L.WritableStreamDefaultControllerError,D=function(){functione(t,r){n(this,e),this._transformStream=t,this._startPromise=r}returnb(e,[{key:"start",value:function(e){vart=this._transformStream;returnt._writableController=e,this._startPromise.then(function(){returnu(t)})}},{key:"write",value:function(e){returnf(this._transformStream,e)}},{key:"abort",value:function(
c="file"===this._scheme?"relative":this._isRelative&&s&&s._scheme===this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"===_?(this._query="?",c="query"):"#"===_?(this._fragment="#",c="fragment"):_!==p&&"\t"!==_&&"\n"!==_&&"\r"!==_&&(this._schemeData+=a(_));break;case"no scheme":if(s&&e(s._scheme)){c="relative";continue}l("Missing scheme."),n.call(this);break;case"relative or authority":if("/"!==_||"/"!==t[u+1]){l("Expected /, got: "+_),c="relative";continue}c="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!==this._scheme&&(this._scheme=s._scheme),_===p){this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._username=s._username,this._password=s._password;breake}if("/"===_||"\\"===_)"\\"===_&&l("\\ is an invalid code point."),c="relative slash";elseif("?"===_)this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query="?",this._username=s._username,this._password=s._password,c="query";else{if("#"!==_){varA=t[u+1],S=t[u+2];("file"!==this._scheme||!m.test(_)||":"!==A&&"|"!==A||S!==p&&"/"!==S&&"\\"!==S&&"?"!==S&&"#"!==S)&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password,this._path=s._path.slice(),this._path.pop()),c="relative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment="#",this._username=s._username,this._password=s._password,c="fragment"}break;case"relative slash":if("/"!==_&&"\\"!==_){"file"!==this._scheme&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password),c="relative path";continue}"\\"===_&&l("\\ is an invalid code point."),c="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==_){l("Expected '/', got: "+_),c="authority ignore slashes";continue}c="authority second slash";break;case"authority second slash":if(c="authority ignore slashes","/"!==_){l("Expected '/', got: "+_);continue}break;case"authority ignore slashes":if("/"!==_&&"\\"!==_){c="authority";continue}l("Expected authority, got: "+_);break;case"authority":if("@"===_){v&&(l("@ already seen."),d+="%40"),v=!0;for(varw=0;w<d.length;w++){varP=d[w];if("\t"!==P&&"\n"!==P&&"\r"!==P)if(":"!==P||null!==this._password){varC=a(P);null!==this._password?this._password+=C:this._username+=C}elsethis._password="";elsel("Invalid whitespace in authority.")}d=""}else{if(_===p||"/"===_||"\\"===_||"?"===_||"#"===_){u-=d.length,d="",c="host";continue}d+=_}break;case"file host":if(_===p||"/"===_||"\\"===_||"?"===_||"#"===_){2!==d.length||!m.test(d[0])||":"!==d[1]&&"|"!==d[1]?0===d.length?c="relative path start":(this._host=i.call(this,d),d="",c="relative path start"):c="relative path";continue}"\t"===_||"\n"===_||"\r"===_?l("Invalid whitespace in file host."):d+=_;break;case"host":case"hostname":if(":"!==_||b){if(_===p||"/"===_||"\\"===_||"?"===_||"#"===_){if(this._host=i.call(this,d),d="",c="relative path start",r)breake;continue}"\t"!==_&&"\n"!==_&&"\r"!==_?("["===_?b=!0:"]"===_&&(b=!1),d+=_):l("Invalid code point in host/hostname: "+_)}elseif(this._host=i.call(this,d),d="",c="port","hostname"===r)breake;break;case"port":if(/[0-9]/.test(_))d+=_;else{if(_===p||"/"===_||"\\"===_||"?"===_||"#"===_||r){if(""!==d){varx=parseInt(d,10);x!==h[this._scheme]&&(this._port=x+""),d=""}if(r)breake;c="relative path start";continue}"\t"===_||"\n"===_||"\r"===_?l("Invalid code point in port: "+_):n.call(this)}break;case"relative path start":if("\\"===_&&l("'\\' not allowed in path."),c="relative path","/"!==_&&"\\"!==_)continue;break;case"relative path":if(_!==p&&"/"!==_&&"\\"!==_&&(r||"?"!==_&&"#"!==_))"\t"!==_&&"\n"!==_&&"\r"!==_&&(d+=a(_));else{"\\"===_&&l("\\ not allowed in relative path.");vark;(k=f[d.toLowerCase()])&&(d=k),".."===d?(this._path.pop(),"/"!==_&&"\\"!==_&&this._path.push("")):"."===d&&"/"!==_&&"\\"!==_?this._path.push(""):"."!==d&&("file"===this._scheme&&0===this._path.length&&2===d.length&&m.test(d[0])&&"|"===