try{let pr=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Nl=new pr.Error().stack;Nl&&(pr._sentryDebugIds=pr._sentryDebugIds||{},pr._sentryDebugIds[Nl]="5ef6c533-788d-40ea-a1e5-3ec36a8b5977",pr._sentryDebugIdIdentifier="sentry-dbid-5ef6c533-788d-40ea-a1e5-3ec36a8b5977")}catch(pr){}{let pr=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};pr.SENTRY_RELEASE={id:"22.14.12"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[976],{42360:(pr,ja,Rn)=>{Rn.r(ja),Rn.d(ja,{BwsImgCmp:()=>on,JsPdf:()=>Zt,JsZip:()=>ja});var mu={81(a,t,e){var r=e(2e3),i=e(6392),n=e(5845),s=e(398);function f(h,g,p,u,c){this.compressedSize=h,this.uncompressedSize=g,this.crc32=p,this.compression=u,this.compressedContent=c}f.prototype={getContentWorker:function(){var h=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),g=this;return h.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},f.createWorkerFrom=function(h,g,p){return h.pipe(new n).pipe(new s("uncompressedSize")).pipe(g.compressWorker(p)).pipe(new s("compressedSize")).withStreamInfo("compression",g)},a.exports=f},113(a,t,e){var r=e(3536);function i(n){r.call(this,n);for(var s=0;s=0;--p)if(this.data[p]===s&&this.data[p+1]===f&&this.data[p+2]===h&&this.data[p+3]===g)return p-this.zero;return-1},i.prototype.readAndCheckSignature=function(n){var s=n.charCodeAt(0),f=n.charCodeAt(1),h=n.charCodeAt(2),g=n.charCodeAt(3),p=this.readData(4);return s===p[0]&&f===p[1]&&h===p[2]&&g===p[3]},i.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var s=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,s},a.exports=i},176(a){a.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},269(a,t,e){var r=e(7817),i=e(2051),n=e(4762),s=e(8291),f=e(1344),h=e(3464),g=e(176),p=Object.prototype.toString;function u(l){if(!(this instanceof u))return new u(l);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},l||{});var m=this.options;m.raw&&m.windowBits>=0&&m.windowBits<16&&(m.windowBits=-m.windowBits,m.windowBits===0&&(m.windowBits=-15)),!(m.windowBits>=0&&m.windowBits<16)||l&&l.windowBits||(m.windowBits+=32),m.windowBits>15&&m.windowBits<48&&(15&m.windowBits||(m.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var A=r.inflateInit2(this.strm,m.windowBits);if(A!==s.Z_OK)throw new Error(f[A]);if(this.header=new g,r.inflateGetHeader(this.strm,this.header),m.dictionary&&(typeof m.dictionary=="string"?m.dictionary=n.string2buf(m.dictionary):p.call(m.dictionary)==="[object ArrayBuffer]"&&(m.dictionary=new Uint8Array(m.dictionary)),m.raw&&(A=r.inflateSetDictionary(this.strm,m.dictionary))!==s.Z_OK))throw new Error(f[A])}u.prototype.push=function(l,m){var A=this.strm,C=this.options.chunkSize,L=this.options.dictionary,D,k,O,_,R,V=!1;if(this.ended)return!1;k=m===~~m?m:m===!0?s.Z_FINISH:s.Z_NO_FLUSH,typeof l=="string"?A.input=n.binstring2buf(l):p.call(l)==="[object ArrayBuffer]"?A.input=new Uint8Array(l):A.input=l,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new i.Buf8(C),A.next_out=0,A.avail_out=C),(D=r.inflate(A,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&L&&(D=r.inflateSetDictionary(this.strm,L)),D===s.Z_BUF_ERROR&&V===!0&&(D=s.Z_OK,V=!1),D!==s.Z_STREAM_END&&D!==s.Z_OK)return this.onEnd(D),this.ended=!0,!1;A.next_out&&(A.avail_out===0||D===s.Z_STREAM_END||A.avail_in===0&&(k===s.Z_FINISH||k===s.Z_SYNC_FLUSH))&&(this.options.to==="string"?(O=n.utf8border(A.output,A.next_out),_=A.next_out-O,R=n.buf2string(A.output,O),A.next_out=_,A.avail_out=C-_,_&&i.arraySet(A.output,A.output,O,_,0),this.onData(R)):this.onData(i.shrinkBuf(A.output,A.next_out))),A.avail_in===0&&A.avail_out===0&&(V=!0)}while((A.avail_in>0||A.avail_out===0)&&D!==s.Z_STREAM_END);return D===s.Z_STREAM_END&&(k=s.Z_FINISH),k===s.Z_FINISH?(D=r.inflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===s.Z_OK):(k===s.Z_SYNC_FLUSH&&(this.onEnd(s.Z_OK),A.avail_out=0),!0)},u.prototype.onData=function(l){this.chunks.push(l)},u.prototype.onEnd=function(l){l===s.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=l,this.msg=this.strm.msg};function c(l,m){var A=new u(m);if(A.push(l,!0),A.err)throw A.msg||f[A.err];return A.result}t.Inflate=u,t.inflate=c,t.inflateRaw=function(l,m){return(m=m||{}).raw=!0,c(l,m)},t.ungzip=c},398(a,t,e){var r=e(7402),i=e(7519);function n(s){i.call(this,"DataLengthProbe for "+s),this.propName=s,this.withStreamInfo(s,0)}r.inherits(n,i),n.prototype.processChunk=function(s){if(s){var f=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=f+s.data.length}i.prototype.processChunk.call(this,s)},a.exports=n},1344(a){a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},1392(a,t,e){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",t.nodebuffer=typeof Buffer<"u",t.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")t.blob=!1;else{var r=new ArrayBuffer(0);try{t.blob=new Blob([r],{type:"application/zip"}).size===0}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),t.blob=i.getBlob("application/zip").size===0}catch(s){t.blob=!1}}}try{t.nodestream=!!e(4725).Readable}catch(n){t.nodestream=!1}},1439(a,t,e){var r=e(7964),i=e(3100);t.generateWorker=function(n,s,f){var h=new i(s.streamFiles,f,s.platform,s.encodeFileName),g=0;try{n.forEach(function(p,u){g++;var c=function(C,L){var D=C||L,k=r[D];if(!k)throw new Error(D+" is not a valid compression method !");return k}(u.options.compression,s.compression),l=u.options.compressionOptions||s.compressionOptions||{},m=u.dir,A=u.date;u._compressWorker(c,l).withStreamInfo("file",{name:p,dir:m,date:A,comment:u.comment||"",unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions}).pipe(h)}),h.entriesCount=g}catch(p){h.error(p)}return h}},1631(a,t,e){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var i=new r;for(var n in this)typeof this[n]!="function"&&(i[n]=this[n]);return i}}r.prototype=e(9216),r.prototype.loadAsync=e(5471),r.support=e(1392),r.defaults=e(2057),r.version="3.10.1",r.loadAsync=function(i,n){return new r().loadAsync(i,n)},r.external=e(2e3),a.exports=r},1804(a,t,e){var r=e(2051),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(h,g,p,u,c,l,m,A){var C=A.bits,L=0,D=0,k=0,O=0,_=0,R=0,V=0,N=0,j=0,v=0,S,x,y,F,Y,E=null,T=0,Q,J=new r.Buf16(16),B=new r.Buf16(16),tt=null,P=0,q,z,H;for(L=0;L<=15;L++)J[L]=0;for(D=0;D=1&&J[O]===0;O--);if(_>O&&(_=O),O===0)return c[l++]=20971520,c[l++]=20971520,A.bits=1,0;for(k=1;k0&&(h===0||O!==1))return-1;for(B[1]=0,L=1;L<15;L++)B[L+1]=B[L]+J[L];for(D=0;D852||h===2&&j>592)return 1;for(;;){q=L-V,m[D]Q?(z=tt[P+m[D]],H=E[T+m[D]]):(z=96,H=0),S=1<>V)+(x-=S)]=q<<24|z<<16|H;while(x!==0);for(S=1<>=1;if(S!==0?(v&=S-1,v+=S):v=0,D++,--J[L]===0){if(L===O)break;L=g[p+m[D]]}if(L>_&&(v&F)!==y){for(V===0&&(V=_),Y+=k,N=1<<(R=L-V);R+V852||h===2&&j>592)return 1;c[y=v&F]=_<<24|R<<16|Y-l}}return v!==0&&(c[Y+v]=L-V<<24|64<<16),A.bits=_,0}},2e3(a,t,e){var r;r=typeof Promise<"u"?Promise:e(4725),a.exports={Promise:r}},2031(a,t,e){var r=e(9986),i=e(6392),n=e(3040),s=e(81),f=e(7519),h=function(c,l,m){this.name=c,this.dir=m.dir,this.date=m.date,this.comment=m.comment,this.unixPermissions=m.unixPermissions,this.dosPermissions=m.dosPermissions,this._data=l,this._dataBinary=m.binary,this.options={compression:m.compression,compressionOptions:m.compressionOptions}};h.prototype={internalStream:function(c){var l=null,m="string";try{if(!c)throw new Error("No output type specified.");var A=(m=c.toLowerCase())==="string"||m==="text";m!=="binarystring"&&m!=="text"||(m="string"),l=this._decompressWorker();var C=!this._dataBinary;C&&!A&&(l=l.pipe(new n.Utf8EncodeWorker)),!C&&A&&(l=l.pipe(new n.Utf8DecodeWorker))}catch(L){(l=new f("error")).error(L)}return new r(l,m,"")},async:function(c,l){return this.internalStream(c).accumulate(l)},nodeStream:function(c,l){return this.internalStream(c||"nodebuffer").toNodejsStream(l)},_compressWorker:function(c,l){if(this._data instanceof s&&this._data.compression.magic===c.magic)return this._data.getCompressedWorker();var m=this._decompressWorker();return this._dataBinary||(m=m.pipe(new n.Utf8EncodeWorker)),s.createWorkerFrom(m,c,l)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof f?this._data:new i(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;f[254]=f[254]=1,t.utf8encode=function(u){return i.nodebuffer?n.newBufferFrom(u,"utf-8"):function(c){var l,m,A,C,L,D=c.length,k=0;for(C=0;C>>6,l[L++]=128|63&m):m<65536?(l[L++]=224|m>>>12,l[L++]=128|m>>>6&63,l[L++]=128|63&m):(l[L++]=240|m>>>18,l[L++]=128|m>>>12&63,l[L++]=128|m>>>6&63,l[L++]=128|63&m);return l}(u)},t.utf8decode=function(u){return i.nodebuffer?r.transformTo("nodebuffer",u).toString("utf-8"):function(c){var l,m,A,C,L=c.length,D=new Array(2*L);for(m=0,l=0;l4)D[m++]=65533,l+=C-1;else{for(A&=C===2?31:C===3?15:7;C>1&&l1?D[m++]=65533:A<65536?D[m++]=A:(A-=65536,D[m++]=55296|A>>10&1023,D[m++]=56320|1023&A)}return D.length!==m&&(D.subarray?D=D.subarray(0,m):D.length=m),r.applyFromCharCode(D)}(u=r.transformTo(i.uint8array?"uint8array":"array",u))};function g(){s.call(this,"utf-8 decode"),this.leftOver=null}r.inherits(g,s),g.prototype.processChunk=function(u){var c=r.transformTo(i.uint8array?"uint8array":"array",u.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var l=c;(c=new Uint8Array(l.length+this.leftOver.length)).set(this.leftOver,0),c.set(l,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var m=function(C,L){var D;for((L=L||C.length)>C.length&&(L=C.length),D=L-1;D>=0&&(192&C[D])==128;)D--;return D<0||D===0?L:D+f[C[D]]>L?D:L}(c),A=c;m!==c.length&&(i.uint8array?(A=c.subarray(0,m),this.leftOver=c.subarray(m,c.length)):(A=c.slice(0,m),this.leftOver=c.slice(m,c.length))),this.push({data:t.utf8decode(A),meta:u.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=g;function p(){s.call(this,"utf-8 encode")}r.inherits(p,s),p.prototype.processChunk=function(u){this.push({data:t.utf8encode(u.data),meta:u.meta})},t.Utf8EncodeWorker=p},3093(a,t,e){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=e(9970),n=e(7402),s=e(7519),f=r?"uint8array":"array";t.magic="\b\0";function h(g,p){s.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=p,this.meta={}}n.inherits(h,s),h.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(f,g.data),!1)},h.prototype.flush=function(){s.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(p){g.push({data:p,meta:g.meta})}},t.compressWorker=function(g){return new h("Deflate",g)},t.uncompressWorker=function(){return new h("Inflate",{})}},3100(a,t,e){var r=e(7402),i=e(7519),n=e(3040),s=e(6032),f=e(4329),h=function(c,l){var m,A="";for(m=0;m>>=8;return A},g=function(c,l,m,A,C,L){var D,k,O=c.file,_=c.compression,R=L!==n.utf8encode,V=r.transformTo("string",L(O.name)),N=r.transformTo("string",n.utf8encode(O.name)),j=O.comment,v=r.transformTo("string",L(j)),S=r.transformTo("string",n.utf8encode(j)),x=N.length!==O.name.length,y=S.length!==j.length,F="",Y="",E="",T=O.dir,Q=O.date,J={crc32:0,compressedSize:0,uncompressedSize:0};(!l||m)&&(J.crc32=c.crc32,J.compressedSize=c.compressedSize,J.uncompressedSize=c.uncompressedSize);var B=0;l&&(B|=8),R||!x&&!y||(B|=2048);var tt=0,P=0;T&&(tt|=16),C==="UNIX"?(P=798,tt|=function(z,H){var K=z;return z||(K=H?16893:33204),(65535&K)<<16}(O.unixPermissions,T)):(P=20,tt|=63&(O.dosPermissions||0)),D=Q.getUTCHours(),D<<=6,D|=Q.getUTCMinutes(),D<<=5,D|=Q.getUTCSeconds()/2,k=Q.getUTCFullYear()-1980,k<<=4,k|=Q.getUTCMonth()+1,k<<=5,k|=Q.getUTCDate(),x&&(Y=h(1,1)+h(s(V),4)+N,F+="up"+h(Y.length,2)+Y),y&&(E=h(1,1)+h(s(v),4)+S,F+="uc"+h(E.length,2)+E);var q="";return q+="\n\0",q+=h(B,2),q+=_.magic,q+=h(D,2),q+=h(k,2),q+=h(J.crc32,4),q+=h(J.compressedSize,4),q+=h(J.uncompressedSize,4),q+=h(V.length,2),q+=h(F.length,2),{fileRecord:f.LOCAL_FILE_HEADER+q+V+F,dirRecord:f.CENTRAL_FILE_HEADER+h(P,2)+q+h(v.length,2)+"\0\0\0\0"+h(tt,4)+h(A,4)+V+F+v}},p=function(c){return f.DATA_DESCRIPTOR+h(c.crc32,4)+h(c.compressedSize,4)+h(c.uncompressedSize,4)};function u(c,l,m,A){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=l,this.zipPlatform=m,this.encodeFileName=A,this.streamFiles=c,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(u,i),u.prototype.push=function(c){var l=c.meta.percent||0,m=this.entriesCount,A=this._sources.length;this.accumulate?this.contentBuffer.push(c):(this.bytesWritten+=c.data.length,i.prototype.push.call(this,{data:c.data,meta:{currentFile:this.currentFile,percent:m?(l+100*(m-A-1))/m:100}}))},u.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var l=this.streamFiles&&!c.file.dir;if(l){var m=g(c,l,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(c){this.accumulate=!1;var l=this.streamFiles&&!c.file.dir,m=g(c,l,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),l)this.push({data:p(c),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var c=this.bytesWritten,l=0;l=this.index;s--)f=(f<<8)+this.byteAt(s);return this.index+=n,f},readString:function(n){return r.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},a.exports=i},4061(a,t,e){(function(r){if(!r.setImmediate){var i=1,n={},s=!1,f=r.document,h,g=Object.getPrototypeOf&&Object.getPrototypeOf(r);g=g&&g.setTimeout?g:r,{}.toString.call(r.process)==="[object process]"?h=function(l){process.nextTick(function(){c(l)})}:function(){if(r.postMessage&&!r.importScripts){var l=!0,m=r.onmessage;return r.onmessage=function(){l=!1},r.postMessage("","*"),r.onmessage=m,l}}()?function(){var l="setImmediate$"+Math.random()+"$",m=function(A){A.source===r&&typeof A.data=="string"&&A.data.indexOf(l)===0&&c(+A.data.slice(l.length))};r.addEventListener?r.addEventListener("message",m,!1):r.attachEvent("onmessage",m),h=function(A){r.postMessage(l+A,"*")}}():r.MessageChannel?function(){var l=new MessageChannel;l.port1.onmessage=function(m){c(m.data)},h=function(m){l.port2.postMessage(m)}}():f&&"onreadystatechange"in f.createElement("script")?(p=f.documentElement,h=function(l){var m=f.createElement("script");m.onreadystatechange=function(){c(l),m.onreadystatechange=null,p.removeChild(m),m=null},p.appendChild(m)}):h=function(l){setTimeout(c,0,l)};var p;g.setImmediate=function(l){typeof l!="function"&&(l=new Function(""+l));for(var m=new Array(arguments.length-1),A=0;A"u"?e.g===void 0?this:e.g:self)},4237(a,t,e){var r=e(9105),i=e(2051),n=e(4762),s=e(1344),f=e(3464),h=Object.prototype.toString;function g(u){if(!(this instanceof g))return new g(u);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},u||{});var c=this.options;c.raw&&c.windowBits>0?c.windowBits=-c.windowBits:c.gzip&&c.windowBits>0&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var l=r.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(l!==0)throw new Error(s[l]);if(c.header&&r.deflateSetHeader(this.strm,c.header),c.dictionary){var m;if(m=typeof c.dictionary=="string"?n.string2buf(c.dictionary):h.call(c.dictionary)==="[object ArrayBuffer]"?new Uint8Array(c.dictionary):c.dictionary,(l=r.deflateSetDictionary(this.strm,m))!==0)throw new Error(s[l]);this._dict_set=!0}}g.prototype.push=function(u,c){var l=this.strm,m=this.options.chunkSize,A,C;if(this.ended)return!1;C=c===~~c?c:c===!0?4:0,typeof u=="string"?l.input=n.string2buf(u):h.call(u)==="[object ArrayBuffer]"?l.input=new Uint8Array(u):l.input=u,l.next_in=0,l.avail_in=l.input.length;do{if(l.avail_out===0&&(l.output=new i.Buf8(m),l.next_out=0,l.avail_out=m),(A=r.deflate(l,C))!==1&&A!==0)return this.onEnd(A),this.ended=!0,!1;l.avail_out!==0&&(l.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(i.shrinkBuf(l.output,l.next_out))):this.onData(i.shrinkBuf(l.output,l.next_out)))}while((l.avail_in>0||l.avail_out===0)&&A!==1);return C===4?(A=r.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===0):(C===2&&(this.onEnd(0),l.avail_out=0),!0)},g.prototype.onData=function(u){this.chunks.push(u)},g.prototype.onEnd=function(u){u===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg};function p(u,c){var l=new g(c);if(l.push(u,!0),l.err)throw l.msg||s[l.err];return l.result}t.Deflate=g,t.deflate=p,t.deflateRaw=function(u,c){return(c=c||{}).raw=!0,p(u,c)},t.gzip=function(u,c){return(c=c||{}).gzip=!0,p(u,c)}},4329(a,t){t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\x07\b"},4725(a){a.exports=void 0},4762(a,t,e){var r=e(2051),i=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(g){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(g){n=!1}for(var s=new r.Buf8(256),f=0;f<256;f++)s[f]=f>=252?6:f>=248?5:f>=240?4:f>=224?3:f>=192?2:1;s[254]=s[254]=1,t.string2buf=function(g){var p,u,c,l,m,A=g.length,C=0;for(l=0;l>>6,p[m++]=128|63&u):u<65536?(p[m++]=224|u>>>12,p[m++]=128|u>>>6&63,p[m++]=128|63&u):(p[m++]=240|u>>>18,p[m++]=128|u>>>12&63,p[m++]=128|u>>>6&63,p[m++]=128|63&u);return p};function h(g,p){if(p<65534&&(g.subarray&&n||!g.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(g,p));for(var u="",c=0;c4)C[c++]=65533,u+=m-1;else{for(l&=m===2?31:m===3?15:7;m>1&&u1?C[c++]=65533:l<65536?C[c++]=l:(l-=65536,C[c++]=55296|l>>10&1023,C[c++]=56320|1023&l)}return h(C,c)},t.utf8border=function(g,p){var u;for((p=p||g.length)>g.length&&(p=g.length),u=p-1;u>=0&&(192&g[u])==128;)u--;return u<0||u===0?p:u+s[g[u]]>p?u:p}},5471(a,t,e){var r=e(7402),i=e(2e3),n=e(3040),s=e(9490),f=e(5845),h=e(7807);function g(p){return new i.Promise(function(u,c){var l=p.decompressed.getContentWorker().pipe(new f);l.on("error",function(m){c(m)}).on("end",function(){l.streamInfo.crc32!==p.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):u()}).resume()})}a.exports=function(p,u){var c=this;return u=r.extend(u||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),h.isNode&&h.isStream(p)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",p,!0,u.optimizedBinaryString,u.base64).then(function(l){var m=new s(u);return m.load(l),m}).then(function(l){var m=[i.Promise.resolve(l)],A=l.files;if(u.checkCRC32)for(var C=0;C>>1:n>>>1;s[f]=n}return s}();a.exports=function(n,s){return n!==void 0&&n.length?r.getTypeOf(n)!=="string"?function(f,h,g){var p=i,u=0+g;f^=-1;for(var c=0;c>>8^p[255&(f^h[c])];return-1^f}(0|s,n,n.length):function(f,h,g){var p=i,u=0+g;f^=-1;for(var c=0;c>>8^p[255&(f^h.charCodeAt(c))];return-1^f}(0|s,n,n.length):0}},6223(a){a.exports=function(t,e){var r,i,n,s,f,h,g,p,u,c,l,m,A,C,L,D,k,O,_,R,V,N,j,v,S;r=t.state,i=t.next_in,v=t.input,n=i+(t.avail_in-5),s=t.next_out,S=t.output,f=s-(e-t.avail_out),h=s+(t.avail_out-257),g=r.dmax,p=r.wsize,u=r.whave,c=r.wnext,l=r.window,m=r.hold,A=r.bits,C=r.lencode,L=r.distcode,D=(1<>>=_=O>>>24,A-=_,(_=O>>>16&255)==0)S[s++]=65535&O;else{if(!(16&_)){if(64&_){if(32&_){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}O=C[(65535&O)+(m&(1<<_)-1)];continue e}for(R=65535&O,(_&=15)&&(A<_&&(m+=v[i++]<>>=_,A-=_),A<15&&(m+=v[i++]<>>=_=O>>>24,A-=_,16&(_=O>>>16&255)){if(V=65535&O,A<(_&=15)&&(m+=v[i++]<g){t.msg="invalid distance too far back",r.mode=30;break t}if(m>>>=_,A-=_,V>(_=s-f)){if((_=V-_)>u&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(N=0,j=l,c===0){if(N+=p-_,_2;)S[s++]=j[N++],S[s++]=j[N++],S[s++]=j[N++],R-=3;R&&(S[s++]=j[N++],R>1&&(S[s++]=j[N++]))}else{N=s-V;do S[s++]=S[N++],S[s++]=S[N++],S[s++]=S[N++],R-=3;while(R>2);R&&(S[s++]=S[N++],R>1&&(S[s++]=S[N++]))}break}if(64&_){t.msg="invalid distance code",r.mode=30;break t}O=L[(65535&O)+(m&(1<<_)-1)]}}break}}while(i>3,m&=(1<<(A-=R<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i=this.max)return this.end();switch(this.type){case"string":s=this.data.substring(this.index,f);break;case"uint8array":s=this.data.subarray(this.index,f);break;case"array":case"nodebuffer":s=this.data.slice(this.index,f)}return this.index=f,this.push({data:s,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=n},6635(a){a.exports=function(t,e,r,i){for(var n=65535&t,s=t>>>16&65535,f=0;r!==0;){r-=f=r>2e3?2e3:r;do s=s+(n=n+e[i++]|0)|0;while(--f);n%=65521,s%=65521}return n|s<<16}},6717(a){var t=function(){for(var e,r=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;r[i]=e}return r}();a.exports=function(e,r,i,n){var s=t,f=n+i;e^=-1;for(var h=n;h>>8^s[255&(e^r[h])];return-1^e}},6880(a,t,e){var r=e(7402),i=e(1392),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(s){for(var f=[],h,g,p,u,c,l,m,A=0,C=s.length,L=C,D=r.getTypeOf(s)!=="string";A>2,c=(3&h)<<4|g>>4,l=L>1?(15&g)<<2|p>>6:64,m=L>2?63&p:64,f.push(n.charAt(u)+n.charAt(c)+n.charAt(l)+n.charAt(m));return f.join("")},t.decode=function(s){var f,h,g,p,u,c,l=0,m=0;if(s.substr(0,5)==="data:")throw new Error("Invalid base64 input, it looks like a data url.");var A=3*(s=s.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(s.charAt(s.length-1)===n.charAt(64)&&A--,s.charAt(s.length-2)===n.charAt(64)&&A--,A%1!=0)throw new Error("Invalid base64 input, bad content length.");var C;for(C=i.uint8array?new Uint8Array(0|A):new Array(0|A);l>4,h=(15&p)<<4|(u=n.indexOf(s.charAt(l++)))>>2,g=(3&u)<<6|(c=n.indexOf(s.charAt(l++))),C[m++]=f,u!==64&&(C[m++]=h),c!==64&&(C[m++]=g);return C}},7402(a,t,e){var r=e(1392),i=e(6880),n=e(7807),s=e(2e3);e(4061),t.newBlob=function(l,m){t.checkSupport("blob");try{return new Blob([l],{type:m})}catch(C){try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(l),A.getBlob(m)}catch(L){throw new Error("Bug : can't construct the Blob.")}}};function f(l){return l}function h(l,m){for(var A=0;A1;)try{return g.stringifyByChunk(l,A,m)}catch(L){m=Math.floor(m/2)}return g.stringifyByChar(l)}t.applyFromCharCode=p;function u(l,m){for(var A=0;A "+e:e}},a.exports=t},7687(a,t,e){var r=e(7402),i=e(7519);function n(s,f){i.call(this,"Nodejs stream input adapter for "+s),this._upstreamEnded=!1,this._bindStream(f)}r.inherits(n,i),n.prototype._bindStream=function(s){var f=this;this._stream=s,s.pause(),s.on("data",function(h){f.push({data:h,meta:{percent:0}})}).on("error",function(h){f.isPaused?this.generatedError=h:f.error(h)}).on("end",function(){f.isPaused?f._upstreamEnded=!0:f.end()})},n.prototype.pause=function(){return i.prototype.pause.call(this)?(this._stream.pause(),!0):!1},n.prototype.resume=function(){return i.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1},a.exports=n},7698(a,t,e){var r=e(3465);function i(n){r.call(this,n)}e(7402).inherits(i,r),i.prototype.readData=function(n){this.checkOffset(n);var s=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,s},a.exports=i},7807(a){a.exports={isNode:typeof Buffer<"u",newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if(typeof t=="number")throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&typeof t.on=="function"&&typeof t.pause=="function"&&typeof t.resume=="function"}}},7817(a,t,e){var r=e(2051),i=e(6635),n=e(6717),s=e(6223),f=e(1804);function h(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(k){var O;return!k||!k.state?-2:(O=k.state,k.total_in=k.total_out=O.total=0,k.msg="",O.wrap&&(k.adler=1&O.wrap),O.mode=1,O.last=0,O.havedict=0,O.dmax=32768,O.head=null,O.hold=0,O.bits=0,O.lencode=O.lendyn=new r.Buf32(852),O.distcode=O.distdyn=new r.Buf32(592),O.sane=1,O.back=-1,0)}function u(k){var O;return!k||!k.state?-2:((O=k.state).wsize=0,O.whave=0,O.wnext=0,p(k))}function c(k,O){var _,R;return!k||!k.state||(R=k.state,O<0?(_=0,O=-O):(_=1+(O>>4),O<48&&(O&=15)),O&&(O<8||O>15))?-2:(R.window!==null&&R.wbits!==O&&(R.window=null),R.wrap=_,R.wbits=O,u(k))}function l(k,O){var _,R;return k?(R=new g,k.state=R,R.window=null,(_=c(k,O))!==0&&(k.state=null),_):-2}var m=!0,A,C;function L(k){if(m){var O;for(A=new r.Buf32(512),C=new r.Buf32(32),O=0;O<144;)k.lens[O++]=8;for(;O<256;)k.lens[O++]=9;for(;O<280;)k.lens[O++]=7;for(;O<288;)k.lens[O++]=8;for(f(1,k.lens,0,288,A,0,k.work,{bits:9}),O=0;O<32;)k.lens[O++]=5;f(2,k.lens,0,32,C,0,k.work,{bits:5}),m=!1}k.lencode=A,k.lenbits=9,k.distcode=C,k.distbits=5}function D(k,O,_,R){var V,N=k.state;return N.window===null&&(N.wsize=1<=N.wsize?(r.arraySet(N.window,O,_-N.wsize,N.wsize,0),N.wnext=0,N.whave=N.wsize):((V=N.wsize-N.wnext)>R&&(V=R),r.arraySet(N.window,O,_-R,V,N.wnext),(R-=V)?(r.arraySet(N.window,O,_-R,R,0),N.wnext=R,N.whave=N.wsize):(N.wnext+=V,N.wnext===N.wsize&&(N.wnext=0),N.whave>>8&255,_.check=n(_.check,it,2,0),x=0,y=0,_.mode=2;break}if(_.flags=0,_.head&&(_.head.done=!1),!(1&_.wrap)||(((255&x)<<8)+(x>>8))%31){k.msg="incorrect header check",_.mode=30;break}if((15&x)!=8){k.msg="unknown compression method",_.mode=30;break}if(y-=4,K=8+(15&(x>>>=4)),_.wbits===0)_.wbits=K;else if(K>_.wbits){k.msg="invalid window size",_.mode=30;break}_.dmax=1<>8&1),512&_.flags&&(it[0]=255&x,it[1]=x>>>8&255,_.check=n(_.check,it,2,0)),x=0,y=0,_.mode=3;case 3:for(;y<32;){if(v===0)break t;v--,x+=R[N++]<>>8&255,it[2]=x>>>16&255,it[3]=x>>>24&255,_.check=n(_.check,it,4,0)),x=0,y=0,_.mode=4;case 4:for(;y<16;){if(v===0)break t;v--,x+=R[N++]<>8),512&_.flags&&(it[0]=255&x,it[1]=x>>>8&255,_.check=n(_.check,it,2,0)),x=0,y=0,_.mode=5;case 5:if(1024&_.flags){for(;y<16;){if(v===0)break t;v--,x+=R[N++]<>>8&255,_.check=n(_.check,it,2,0)),x=0,y=0}else _.head&&(_.head.extra=null);_.mode=6;case 6:if(1024&_.flags&&((E=_.length)>v&&(E=v),E&&(_.head&&(K=_.head.extra_len-_.length,_.head.extra||(_.head.extra=new Array(_.head.extra_len)),r.arraySet(_.head.extra,R,N,E,K)),512&_.flags&&(_.check=n(_.check,R,E,N)),v-=E,N+=E,_.length-=E),_.length))break t;_.length=0,_.mode=7;case 7:if(2048&_.flags){if(v===0)break t;E=0;do K=R[N+E++],_.head&&K&&_.length<65536&&(_.head.name+=String.fromCharCode(K));while(K&&E>9&1,_.head.done=!0),k.adler=_.check=0,_.mode=12;break;case 10:for(;y<32;){if(v===0)break t;v--,x+=R[N++]<>>=7&y,y-=7&y,_.mode=27;break}for(;y<3;){if(v===0)break t;v--,x+=R[N++]<>>=1)){case 0:_.mode=14;break;case 1:if(L(_),_.mode=20,O===6){x>>>=2,y-=2;break t}break;case 2:_.mode=17;break;case 3:k.msg="invalid block type",_.mode=30}x>>>=2,y-=2;break;case 14:for(x>>>=7&y,y-=7&y;y<32;){if(v===0)break t;v--,x+=R[N++]<>>16^65535)){k.msg="invalid stored block lengths",_.mode=30;break}if(_.length=65535&x,x=0,y=0,_.mode=15,O===6)break t;case 15:_.mode=16;case 16:if(E=_.length){if(E>v&&(E=v),E>S&&(E=S),E===0)break t;r.arraySet(V,R,N,E,j),v-=E,N+=E,S-=E,j+=E,_.length-=E;break}_.mode=12;break;case 17:for(;y<14;){if(v===0)break t;v--,x+=R[N++]<>>=5,y-=5,_.ndist=1+(31&x),x>>>=5,y-=5,_.ncode=4+(15&x),x>>>=4,y-=4,_.nlen>286||_.ndist>30){k.msg="too many length or distance symbols",_.mode=30;break}_.have=0,_.mode=18;case 18:for(;_.have<_.ncode;){for(;y<3;){if(v===0)break t;v--,x+=R[N++]<>>=3,y-=3}for(;_.have<19;)_.lens[mt[_.have++]]=0;if(_.lencode=_.lendyn,_.lenbits=7,at={bits:_.lenbits},rt=f(0,_.lens,0,19,_.lencode,0,_.work,at),_.lenbits=at.bits,rt){k.msg="invalid code lengths set",_.mode=30;break}_.have=0,_.mode=19;case 19:for(;_.have<_.nlen+_.ndist;){for(;tt=(J=_.lencode[x&(1<<_.lenbits)-1])>>>16&255,P=65535&J,!((B=J>>>24)<=y);){if(v===0)break t;v--,x+=R[N++]<>>=B,y-=B,_.lens[_.have++]=P;else{if(P===16){for(gt=B+2;y>>=B,y-=B,_.have===0){k.msg="invalid bit length repeat",_.mode=30;break}K=_.lens[_.have-1],E=3+(3&x),x>>>=2,y-=2}else if(P===17){for(gt=B+3;y>>=B)),x>>>=3,y-=3}else{for(gt=B+7;y>>=B)),x>>>=7,y-=7}if(_.have+E>_.nlen+_.ndist){k.msg="invalid bit length repeat",_.mode=30;break}for(;E--;)_.lens[_.have++]=K}}if(_.mode===30)break;if(_.lens[256]===0){k.msg="invalid code -- missing end-of-block",_.mode=30;break}if(_.lenbits=9,at={bits:_.lenbits},rt=f(1,_.lens,0,_.nlen,_.lencode,0,_.work,at),_.lenbits=at.bits,rt){k.msg="invalid literal/lengths set",_.mode=30;break}if(_.distbits=6,_.distcode=_.distdyn,at={bits:_.distbits},rt=f(2,_.lens,_.nlen,_.ndist,_.distcode,0,_.work,at),_.distbits=at.bits,rt){k.msg="invalid distances set",_.mode=30;break}if(_.mode=20,O===6)break t;case 20:_.mode=21;case 21:if(v>=6&&S>=258){k.next_out=j,k.avail_out=S,k.next_in=N,k.avail_in=v,_.hold=x,_.bits=y,s(k,Y),j=k.next_out,V=k.output,S=k.avail_out,N=k.next_in,R=k.input,v=k.avail_in,x=_.hold,y=_.bits,_.mode===12&&(_.back=-1);break}for(_.back=0;tt=(J=_.lencode[x&(1<<_.lenbits)-1])>>>16&255,P=65535&J,!((B=J>>>24)<=y);){if(v===0)break t;v--,x+=R[N++]<>q)])>>>16&255,P=65535&J,!(q+(B=J>>>24)<=y);){if(v===0)break t;v--,x+=R[N++]<>>=q,y-=q,_.back+=q}if(x>>>=B,y-=B,_.back+=B,_.length=P,tt===0){_.mode=26;break}if(32&tt){_.back=-1,_.mode=12;break}if(64&tt){k.msg="invalid literal/length code",_.mode=30;break}_.extra=15&tt,_.mode=22;case 22:if(_.extra){for(gt=_.extra;y>>=_.extra,y-=_.extra,_.back+=_.extra}_.was=_.length,_.mode=23;case 23:for(;tt=(J=_.distcode[x&(1<<_.distbits)-1])>>>16&255,P=65535&J,!((B=J>>>24)<=y);){if(v===0)break t;v--,x+=R[N++]<>q)])>>>16&255,P=65535&J,!(q+(B=J>>>24)<=y);){if(v===0)break t;v--,x+=R[N++]<>>=q,y-=q,_.back+=q}if(x>>>=B,y-=B,_.back+=B,64&tt){k.msg="invalid distance code",_.mode=30;break}_.offset=P,_.extra=15&tt,_.mode=24;case 24:if(_.extra){for(gt=_.extra;y>>=_.extra,y-=_.extra,_.back+=_.extra}if(_.offset>_.dmax){k.msg="invalid distance too far back",_.mode=30;break}_.mode=25;case 25:if(S===0)break t;if(E=Y-S,_.offset>E){if((E=_.offset-E)>_.whave&&_.sane){k.msg="invalid distance too far back",_.mode=30;break}E>_.wnext?(E-=_.wnext,T=_.wsize-E):T=_.wnext-E,E>_.length&&(E=_.length),Q=_.window}else Q=V,T=j-_.offset,E=_.length;E>S&&(E=S),S-=E,_.length-=E;do V[j++]=Q[T++];while(--E);_.length===0&&(_.mode=21);break;case 26:if(S===0)break t;V[j++]=_.length,S--,_.mode=21;break;case 27:if(_.wrap){for(;y<32;){if(v===0)break t;v--,x|=R[N++]<=0;)B[tt]=0}var n=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],g=new Array(576);i(g);var p=new Array(60);i(p);var u=new Array(512);i(u);var c=new Array(256);i(c);var l=new Array(29);i(l);var m=new Array(30);i(m);function A(B,tt,P,q,z){this.static_tree=B,this.extra_bits=tt,this.extra_base=P,this.elems=q,this.max_length=z,this.has_stree=B&&B.length}var C,L,D;function k(B,tt){this.dyn_tree=B,this.max_code=0,this.stat_desc=tt}function O(B){return B<256?u[B]:u[256+(B>>>7)]}function _(B,tt){B.pending_buf[B.pending++]=255&tt,B.pending_buf[B.pending++]=tt>>>8&255}function R(B,tt,P){B.bi_valid>16-P?(B.bi_buf|=tt<>16-B.bi_valid,B.bi_valid+=P-16):(B.bi_buf|=tt<>>=1,P<<=1;while(--tt>0);return P>>>1}function j(B,tt,P){var q=new Array(16),z=0,H,K;for(H=1;H<=15;H++)q[H]=z=z+P[H-1]<<1;for(K=0;K<=tt;K++){var rt=B[2*K+1];rt!==0&&(B[2*K]=N(q[rt]++,rt))}}function v(B){var tt;for(tt=0;tt<286;tt++)B.dyn_ltree[2*tt]=0;for(tt=0;tt<30;tt++)B.dyn_dtree[2*tt]=0;for(tt=0;tt<19;tt++)B.bl_tree[2*tt]=0;B.dyn_ltree[512]=1,B.opt_len=B.static_len=0,B.last_lit=B.matches=0}function S(B){B.bi_valid>8?_(B,B.bi_buf):B.bi_valid>0&&(B.pending_buf[B.pending++]=B.bi_buf),B.bi_buf=0,B.bi_valid=0}function x(B,tt,P,q){var z=2*tt,H=2*P;return B[z]>1;K>=1;K--)y(B,P,K);at=H;do K=B.heap[1],B.heap[1]=B.heap[B.heap_len--],y(B,P,1),rt=B.heap[1],B.heap[--B.heap_max]=K,B.heap[--B.heap_max]=rt,P[2*at]=P[2*K]+P[2*rt],B.depth[at]=(B.depth[K]>=B.depth[rt]?B.depth[K]:B.depth[rt])+1,P[2*K+1]=P[2*rt+1]=at,B.heap[1]=at++,y(B,P,1);while(B.heap_len>=2);B.heap[--B.heap_max]=B.heap[1],function(gt,mt){var Nt=mt.dyn_tree,Ct=mt.max_code,Mt=mt.stat_desc.static_tree,pt=mt.stat_desc.has_stree,nt=mt.stat_desc.extra_bits,Tt=mt.stat_desc.extra_base,It=mt.stat_desc.max_length,yt,St,Pt,xt,Et,Dt,Ut=0;for(xt=0;xt<=15;xt++)gt.bl_count[xt]=0;for(Nt[2*gt.heap[gt.heap_max]+1]=0,yt=gt.heap_max+1;yt<573;yt++)(xt=Nt[2*Nt[2*(St=gt.heap[yt])+1]+1]+1)>It&&(xt=It,Ut++),Nt[2*St+1]=xt,St>Ct||(gt.bl_count[xt]++,Et=0,St>=Tt&&(Et=nt[St-Tt]),Dt=Nt[2*St],gt.opt_len+=Dt*(xt+Et),pt&&(gt.static_len+=Dt*(Mt[2*St+1]+Et)));if(Ut!==0){do{for(xt=It-1;gt.bl_count[xt]===0;)xt--;gt.bl_count[xt]--,gt.bl_count[xt+1]+=2,gt.bl_count[It]--,Ut-=2}while(Ut>0);for(xt=It;xt!==0;xt--)for(St=gt.bl_count[xt];St!==0;)(Pt=gt.heap[--yt])>Ct||(Nt[2*Pt+1]!==xt&&(gt.opt_len+=(xt-Nt[2*Pt+1])*Nt[2*Pt],Nt[2*Pt+1]=xt),St--)}}(B,tt),j(P,it,B.bl_count)}function E(B,tt,P){var q,z=-1,H,K=tt[1],rt=0,it=7,at=4;for(K===0&&(it=138,at=3),tt[2*(P+1)+1]=65535,q=0;q<=P;q++)H=K,K=tt[2*(q+1)+1],++rt>=7;z<30;z++)for(m[z]=H<<7,tt=0;tt<1<0?(B.strm.data_type===2&&(B.strm.data_type=function(rt){var it=4093624447,at;for(at=0;at<=31;at++,it>>>=1)if(1&it&&rt.dyn_ltree[2*at]!==0)return 0;if(rt.dyn_ltree[18]!==0||rt.dyn_ltree[20]!==0||rt.dyn_ltree[26]!==0)return 1;for(at=32;at<256;at++)if(rt.dyn_ltree[2*at]!==0)return 1;return 0}(B)),Y(B,B.l_desc),Y(B,B.d_desc),K=function(rt){var it;for(E(rt,rt.dyn_ltree,rt.l_desc.max_code),E(rt,rt.dyn_dtree,rt.d_desc.max_code),Y(rt,rt.bl_desc),it=18;it>=3&&rt.bl_tree[2*h[it]+1]===0;it--);return rt.opt_len+=3*(it+1)+5+5+4,it}(B),z=B.opt_len+3+7>>>3,(H=B.static_len+3+7>>>3)<=z&&(z=H)):z=H=P+5,P+4<=z&&tt!==-1?J(B,tt,P,q):B.strategy===4||H===z?(R(B,2+(q?1:0),3),F(B,g,p)):(R(B,4+(q?1:0),3),function(rt,it,at,gt){var mt;for(R(rt,it-257,5),R(rt,at-1,5),R(rt,gt-4,4),mt=0;mt>>8&255,B.pending_buf[B.d_buf+2*B.last_lit+1]=255&tt,B.pending_buf[B.l_buf+B.last_lit]=255&P,B.last_lit++,tt===0?B.dyn_ltree[2*P]++:(B.matches++,tt--,B.dyn_ltree[2*(c[P]+256+1)]++,B.dyn_dtree[2*O(tt)]++),B.last_lit===B.lit_bufsize-1},t._tr_align=function(B){R(B,2,3),V(B,256,g),function(tt){tt.bi_valid===16?(_(tt,tt.bi_buf),tt.bi_buf=0,tt.bi_valid=0):tt.bi_valid>=8&&(tt.pending_buf[tt.pending++]=255&tt.bi_buf,tt.bi_buf>>=8,tt.bi_valid-=8)}(B)}},8291(a){a.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9105(a,t,e){var r=e(2051),i=e(8043),n=e(6635),s=e(6717),f=e(1344);function h(v,S){return v.msg=f[S],S}function g(v){return(v<<1)-(v>4?9:0)}function p(v){for(var S=v.length;--S>=0;)v[S]=0}function u(v){var S=v.state,x=S.pending;x>v.avail_out&&(x=v.avail_out),x!==0&&(r.arraySet(v.output,S.pending_buf,S.pending_out,x,v.next_out),v.next_out+=x,S.pending_out+=x,v.total_out+=x,v.avail_out-=x,S.pending-=x,S.pending===0&&(S.pending_out=0))}function c(v,S){i._tr_flush_block(v,v.block_start>=0?v.block_start:-1,v.strstart-v.block_start,S),v.block_start=v.strstart,u(v.strm)}function l(v,S){v.pending_buf[v.pending++]=S}function m(v,S){v.pending_buf[v.pending++]=S>>>8&255,v.pending_buf[v.pending++]=255&S}function A(v,S,x,y){var F=v.avail_in;return F>y&&(F=y),F===0?0:(v.avail_in-=F,r.arraySet(S,v.input,v.next_in,F,x),v.state.wrap===1?v.adler=n(v.adler,S,F,x):v.state.wrap===2&&(v.adler=s(v.adler,S,F,x)),v.next_in+=F,v.total_in+=F,F)}function C(v,S){var x=v.max_chain_length,y=v.strstart,F,Y,E=v.prev_length,T=v.nice_match,Q=v.strstart>v.w_size-262?v.strstart-(v.w_size-262):0,J=v.window,B=v.w_mask,tt=v.prev,P=v.strstart+258,q=J[y+E-1],z=J[y+E];v.prev_length>=v.good_match&&(x>>=2),T>v.lookahead&&(T=v.lookahead);do if(J[(F=S)+E]===z&&J[F+E-1]===q&&J[F]===J[y]&&J[++F]===J[y+1]){y+=2,F++;do;while(J[++y]===J[++F]&&J[++y]===J[++F]&&J[++y]===J[++F]&&J[++y]===J[++F]&&J[++y]===J[++F]&&J[++y]===J[++F]&&J[++y]===J[++F]&&J[++y]===J[++F]&&yE){if(v.match_start=S,E=Y,Y>=T)break;q=J[y+E-1],z=J[y+E]}}while((S=tt[S&B])>Q&&--x!==0);return E<=v.lookahead?E:v.lookahead}function L(v){var S=v.w_size,x,y,F,Y,E;do{if(Y=v.window_size-v.lookahead-v.strstart,v.strstart>=S+(S-262)){r.arraySet(v.window,v.window,S,S,0),v.match_start-=S,v.strstart-=S,v.block_start-=S,x=y=v.hash_size;do F=v.head[--x],v.head[x]=F>=S?F-S:0;while(--y);x=y=S;do F=v.prev[--x],v.prev[x]=F>=S?F-S:0;while(--y);Y+=S}if(v.strm.avail_in===0)break;if(y=A(v.strm,v.window,v.strstart+v.lookahead,Y),v.lookahead+=y,v.lookahead+v.insert>=3)for(E=v.strstart-v.insert,v.ins_h=v.window[E],v.ins_h=(v.ins_h<=3&&(v.ins_h=(v.ins_h<=3)if(y=i._tr_tally(v,v.strstart-v.match_start,v.match_length-3),v.lookahead-=v.match_length,v.match_length<=v.max_lazy_match&&v.lookahead>=3){v.match_length--;do v.strstart++,v.ins_h=(v.ins_h<=3&&(v.ins_h=(v.ins_h<4096)&&(v.match_length=2)),v.prev_length>=3&&v.match_length<=v.prev_length){F=v.strstart+v.lookahead-3,y=i._tr_tally(v,v.strstart-1-v.prev_match,v.prev_length-3),v.lookahead-=v.prev_length-1,v.prev_length-=2;do++v.strstart<=F&&(v.ins_h=(v.ins_h<v.pending_buf_size-5&&(x=v.pending_buf_size-5);;){if(v.lookahead<=1){if(L(v),v.lookahead===0&&S===0)return 1;if(v.lookahead===0)break}v.strstart+=v.lookahead,v.lookahead=0;var y=v.block_start+x;if((v.strstart===0||v.strstart>=y)&&(v.lookahead=v.strstart-y,v.strstart=y,c(v,!1),v.strm.avail_out===0)||v.strstart-v.block_start>=v.w_size-262&&(c(v,!1),v.strm.avail_out===0))return 1}return v.insert=0,S===4?(c(v,!0),v.strm.avail_out===0?3:4):(v.strstart>v.block_start&&(c(v,!1),v.strm.avail_out===0),1)}),new O(4,4,8,4,D),new O(4,5,16,8,D),new O(4,6,32,32,D),new O(4,4,16,16,k),new O(8,16,32,32,k),new O(8,16,128,128,k),new O(8,32,128,256,k),new O(32,128,258,1024,k),new O(32,258,258,4096,k)];function R(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),p(this.dyn_ltree),p(this.dyn_dtree),p(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),p(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),p(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(v){var S;return!v||!v.state?h(v,-2):(v.total_in=v.total_out=0,v.data_type=2,(S=v.state).pending=0,S.pending_out=0,S.wrap<0&&(S.wrap=-S.wrap),S.status=S.wrap?42:113,v.adler=S.wrap===2?0:1,S.last_flush=0,i._tr_init(S),0)}function N(v){var S=V(v);return S===0&&function(x){x.window_size=2*x.w_size,p(x.head),x.max_lazy_match=_[x.level].max_lazy,x.good_match=_[x.level].good_length,x.nice_match=_[x.level].nice_length,x.max_chain_length=_[x.level].max_chain,x.strstart=0,x.block_start=0,x.lookahead=0,x.insert=0,x.match_length=x.prev_length=2,x.match_available=0,x.ins_h=0}(v.state),S}function j(v,S,x,y,F,Y){if(!v)return-2;var E=1;if(S===-1&&(S=6),y<0?(E=0,y=-y):y>15&&(E=2,y-=16),F<1||F>9||x!==8||y<8||y>15||S<0||S>9||Y<0||Y>4)return h(v,-2);y===8&&(y=9);var T=new R;return v.state=T,T.strm=v,T.wrap=E,T.gzhead=null,T.w_bits=y,T.w_size=1<5||S<0)return v?h(v,-2):-2;if(y=v.state,!v.output||!v.input&&v.avail_in!==0||y.status===666&&S!==4)return h(v,v.avail_out===0?-5:-2);if(y.strm=v,x=y.last_flush,y.last_flush=S,y.status===42)if(y.wrap===2)v.adler=0,l(y,31),l(y,139),l(y,8),y.gzhead?(l(y,(y.gzhead.text?1:0)+(y.gzhead.hcrc?2:0)+(y.gzhead.extra?4:0)+(y.gzhead.name?8:0)+(y.gzhead.comment?16:0)),l(y,255&y.gzhead.time),l(y,y.gzhead.time>>8&255),l(y,y.gzhead.time>>16&255),l(y,y.gzhead.time>>24&255),l(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),l(y,255&y.gzhead.os),y.gzhead.extra&&y.gzhead.extra.length&&(l(y,255&y.gzhead.extra.length),l(y,y.gzhead.extra.length>>8&255)),y.gzhead.hcrc&&(v.adler=s(v.adler,y.pending_buf,y.pending,0)),y.gzindex=0,y.status=69):(l(y,0),l(y,0),l(y,0),l(y,0),l(y,0),l(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),l(y,3),y.status=113);else{var E=8+(y.w_bits-8<<4)<<8;E|=(y.strategy>=2||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6,y.strstart!==0&&(E|=32),E+=31-E%31,y.status=113,m(y,E),y.strstart!==0&&(m(y,v.adler>>>16),m(y,65535&v.adler)),v.adler=1}if(y.status===69)if(y.gzhead.extra){for(F=y.pending;y.gzindex<(65535&y.gzhead.extra.length)&&!(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>F&&(v.adler=s(v.adler,y.pending_buf,y.pending-F,F)),u(v),F=y.pending,y.pending===y.pending_buf_size));)l(y,255&y.gzhead.extra[y.gzindex]),y.gzindex++;y.gzhead.hcrc&&y.pending>F&&(v.adler=s(v.adler,y.pending_buf,y.pending-F,F)),y.gzindex===y.gzhead.extra.length&&(y.gzindex=0,y.status=73)}else y.status=73;if(y.status===73)if(y.gzhead.name){F=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>F&&(v.adler=s(v.adler,y.pending_buf,y.pending-F,F)),u(v),F=y.pending,y.pending===y.pending_buf_size)){Y=1;break}Y=y.gzindexF&&(v.adler=s(v.adler,y.pending_buf,y.pending-F,F)),Y===0&&(y.gzindex=0,y.status=91)}else y.status=91;if(y.status===91)if(y.gzhead.comment){F=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>F&&(v.adler=s(v.adler,y.pending_buf,y.pending-F,F)),u(v),F=y.pending,y.pending===y.pending_buf_size)){Y=1;break}Y=y.gzindexF&&(v.adler=s(v.adler,y.pending_buf,y.pending-F,F)),Y===0&&(y.status=103)}else y.status=103;if(y.status===103&&(y.gzhead.hcrc?(y.pending+2>y.pending_buf_size&&u(v),y.pending+2<=y.pending_buf_size&&(l(y,255&v.adler),l(y,v.adler>>8&255),v.adler=0,y.status=113)):y.status=113),y.pending!==0){if(u(v),v.avail_out===0)return y.last_flush=-1,0}else if(v.avail_in===0&&g(S)<=g(x)&&S!==4)return h(v,-5);if(y.status===666&&v.avail_in!==0)return h(v,-5);if(v.avail_in!==0||y.lookahead!==0||S!==0&&y.status!==666){var T=y.strategy===2?function(Q,J){for(var B;;){if(Q.lookahead===0&&(L(Q),Q.lookahead===0)){if(J===0)return 1;break}if(Q.match_length=0,B=i._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,B&&(c(Q,!1),Q.strm.avail_out===0))return 1}return Q.insert=0,J===4?(c(Q,!0),Q.strm.avail_out===0?3:4):Q.last_lit&&(c(Q,!1),Q.strm.avail_out===0)?1:2}(y,S):y.strategy===3?function(Q,J){for(var B,tt,P,q,z=Q.window;;){if(Q.lookahead<=258){if(L(Q),Q.lookahead<=258&&J===0)return 1;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=3&&Q.strstart>0&&(tt=z[P=Q.strstart-1])===z[++P]&&tt===z[++P]&&tt===z[++P]){q=Q.strstart+258;do;while(tt===z[++P]&&tt===z[++P]&&tt===z[++P]&&tt===z[++P]&&tt===z[++P]&&tt===z[++P]&&tt===z[++P]&&tt===z[++P]&&PQ.lookahead&&(Q.match_length=Q.lookahead)}if(Q.match_length>=3?(B=i._tr_tally(Q,1,Q.match_length-3),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0):(B=i._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++),B&&(c(Q,!1),Q.strm.avail_out===0))return 1}return Q.insert=0,J===4?(c(Q,!0),Q.strm.avail_out===0?3:4):Q.last_lit&&(c(Q,!1),Q.strm.avail_out===0)?1:2}(y,S):_[y.level].func(y,S);if(T!==3&&T!==4||(y.status=666),T===1||T===3)return v.avail_out===0&&(y.last_flush=-1),0;if(T===2&&(S===1?i._tr_align(y):S!==5&&(i._tr_stored_block(y,0,0,!1),S===3&&(p(y.head),y.lookahead===0&&(y.strstart=0,y.block_start=0,y.insert=0))),u(v),v.avail_out===0))return y.last_flush=-1,0}return S!==4?0:y.wrap<=0?1:(y.wrap===2?(l(y,255&v.adler),l(y,v.adler>>8&255),l(y,v.adler>>16&255),l(y,v.adler>>24&255),l(y,255&v.total_in),l(y,v.total_in>>8&255),l(y,v.total_in>>16&255),l(y,v.total_in>>24&255)):(m(y,v.adler>>>16),m(y,65535&v.adler)),u(v),y.wrap>0&&(y.wrap=-y.wrap),y.pending!==0?0:1)},t.deflateEnd=function(v){var S;return!v||!v.state?-2:(S=v.state.status)!==42&&S!==69&&S!==73&&S!==91&&S!==103&&S!==113&&S!==666?h(v,-2):(v.state=null,S===113?h(v,-3):0)},t.deflateSetDictionary=function(v,S){var x=S.length,y,F,Y,E,T,Q,J,B;if(!v||!v.state||(E=(y=v.state).wrap)===2||E===1&&y.status!==42||y.lookahead)return-2;for(E===1&&(v.adler=n(v.adler,S,x,0)),y.wrap=0,x>=y.w_size&&(E===0&&(p(y.head),y.strstart=0,y.block_start=0,y.insert=0),B=new r.Buf8(y.w_size),r.arraySet(B,S,x-y.w_size,y.w_size,0),S=B,x=y.w_size),T=v.avail_in,Q=v.next_in,J=v.input,v.avail_in=x,v.next_in=0,v.input=S,L(y);y.lookahead>=3;){F=y.strstart,Y=y.lookahead-2;do y.ins_h=(y.ins_h<0?k.substring(0,O):""},A=function(k){return k.slice(-1)!=="/"&&(k+="/"),k},C=function(k,O){return O=O!==void 0?O:f.createFolders,k=A(k),this.files[k]||l.call(this,k,null,{dir:!0,createFolders:O}),this.files[k]};function L(k){return Object.prototype.toString.call(k)==="[object RegExp]"}var D={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(k){var O,_,R;for(O in this.files)R=this.files[O],(_=O.slice(this.root.length,O.length))&&O.slice(0,this.root.length)===this.root&&k(_,R)},filter:function(k){var O=[];return this.forEach(function(_,R){k(_,R)&&O.push(R)}),O},file:function(k,O,_){if(arguments.length===1){if(L(k)){var R=k;return this.filter(function(N,j){return!j.dir&&R.test(N)})}var V=this.files[this.root+k];return V&&!V.dir?V:null}return k=this.root+k,l.call(this,k,O,_),this},folder:function(k){if(!k)return this;if(L(k))return this.filter(function(V,N){return N.dir&&k.test(V)});var O=this.root+k,_=C.call(this,O),R=this.clone();return R.root=_.name,R},remove:function(k){k=this.root+k;var O=this.files[k];if(O||(k.slice(-1)!=="/"&&(k+="/"),O=this.files[k]),O&&!O.dir)delete this.files[k];else for(var _=this.filter(function(V,N){return N.name.slice(0,k.length)===k}),R=0;R<_.length;R++)delete this.files[_[R].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(k){var O,_={};try{if((_=i.extend(k||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");i.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var R=_.comment||this.comment||"";O=p.generateWorker(this,_,R)}catch(V){(O=new n("error")).error(V)}return new s(O,_.type||"string",_.mimeType)},generateAsync:function(k,O){return this.generateInternalStream(k).accumulate(O)},generateNodeStream:function(k,O){return(k=k||{}).type||(k.type="nodebuffer"),this.generateInternalStream(k).toNodejsStream(O)}};a.exports=D},9413(a,t,e){var r=e(7519),i=e(7402);function n(s){r.call(this,"ConvertWorker to "+s),this.destType=s}i.inherits(n,r),n.prototype.processChunk=function(s){this.push({data:i.transformTo(this.destType,s.data),meta:s.meta})},a.exports=n},9433(a,t,e){var r=e(7402),i=e(1392),n=e(113),s=e(3293),f=e(7698),h=e(3465);a.exports=function(g){var p=r.getTypeOf(g);return r.checkSupport(p),p!=="string"||i.uint8array?p==="nodebuffer"?new f(g):i.uint8array?new h(r.transformTo("uint8array",g)):new n(r.transformTo("array",g)):new s(g)}},9470(a,t,e){var r=e(9433),i=e(7402),n=e(81),s=e(6032),f=e(3040),h=e(7964),g=e(1392);function p(u,c){this.options=u,this.loadOptions=c}p.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(u){var c,l;if(u.skip(22),this.fileNameLength=u.readInt(2),l=u.readInt(2),this.fileName=u.readData(this.fileNameLength),u.skip(l),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((c=function(m){for(var A in h)if(Object.prototype.hasOwnProperty.call(h,A)&&h[A].magic===m)return h[A];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,c,u.readData(this.compressedSize))},readCentralPart:function(u){this.versionMadeBy=u.readInt(2),u.skip(2),this.bitFlag=u.readInt(2),this.compressionMethod=u.readString(2),this.date=u.readDate(),this.crc32=u.readInt(4),this.compressedSize=u.readInt(4),this.uncompressedSize=u.readInt(4);var c=u.readInt(2);if(this.extraFieldsLength=u.readInt(2),this.fileCommentLength=u.readInt(2),this.diskNumberStart=u.readInt(2),this.internalFileAttributes=u.readInt(2),this.externalFileAttributes=u.readInt(4),this.localHeaderOffset=u.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");u.skip(c),this.readExtraFields(u),this.parseZIP64ExtraField(u),this.fileComment=u.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var u=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),u===0&&(this.dosPermissions=63&this.externalFileAttributes),u===3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var c,l,m,A=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+41)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,p;for(g=0;g0)this.isSignature(p,n.CENTRAL_FILE_HEADER)||(this.reader.zero=c);else if(c<0)throw new Error("Corrupted zip: missing "+Math.abs(c)+" bytes.")},prepareReader:function(g){this.reader=r(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=h},9970(a,t,e){var r={};(0,e(2051).assign)(r,e(4237),e(269),e(8291)),a.exports=r},9986(a,t,e){var r=e(7402),i=e(9413),n=e(7519),s=e(6880),f=e(1392),h=e(2e3),g=null;if(f.nodestream)try{g=e(5582)}catch(u){}function p(u,c,l){var m=c;switch(c){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=c,this._mimeType=l,r.checkSupport(m),this._worker=u.pipe(new i(m)),u.lock()}catch(A){this._worker=new n("error"),this._worker.error(A)}}p.prototype={accumulate:function(u){return c=this,l=u,new h.Promise(function(m,A){var C=[],L=c._internalType,D=c._outputType,k=c._mimeType;c.on("data",function(O,_){C.push(O),l&&l(_)}).on("error",function(O){C=[],A(O)}).on("end",function(){try{var O=function(_,R,V){switch(_){case"blob":return r.newBlob(r.transformTo("arraybuffer",R),V);case"base64":return s.encode(R);default:return r.transformTo(_,R)}}(D,function(_,R){var V,N=0,j=null,v=0;for(V=0;V>1|(Ne&21845)<<1;Nr=(Nr&52428)>>2|(Nr&13107)<<2,Nr=(Nr&61680)>>4|(Nr&3855)<<4,ea[Ne]=((Nr&65280)>>8|(Nr&255)<<8)>>1}for(var kn=function(a,t,e){for(var r=a.length,i=0,n=new fn(t);i>h]=g}else for(f=new fn(r),i=0;i>15-a[i]);return f},gr=new pe(288),Ne=0;Ne<144;++Ne)gr[Ne]=8;for(var Ne=144;Ne<256;++Ne)gr[Ne]=9;for(var Ne=256;Ne<280;++Ne)gr[Ne]=7;for(var Ne=280;Ne<288;++Ne)gr[Ne]=8;for(var ui=new pe(32),Ne=0;Ne<32;++Ne)ui[Ne]=5;var Ol=kn(gr,9,0),Bl=kn(gr,9,1),Dl=kn(ui,5,0),Tl=kn(ui,5,1),za=function(a){for(var t=a[0],e=1;et&&(t=a[e]);return t},Pn=function(a,t,e){var r=t/8|0;return(a[r]|a[r+1]<<8)>>(t&7)&e},Ma=function(a,t){var e=t/8|0;return(a[e]|a[e+1]<<8|a[e+2]<<16)>>(t&7)},na=function(a){return(a+7)/8|0},kr=function(a,t,e){return(t==null||t<0)&&(t=0),(e==null||e>a.length)&&(e=a.length),new pe(a.subarray(t,e))},ic={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},jl=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],le=function(a,t,e){var r=new Error(t||jl[a]);if(r.code=a,Error.captureStackTrace&&Error.captureStackTrace(r,le),!e)throw r;return r},Ua=function(a,t,e,r){var i=a.length,n=r?r.length:0;if(!i||t.f&&!t.l)return e||new pe(0);var s=!e,f=s||t.i!=2,h=t.i;s&&(e=new pe(i*3));var g=function(mt){var Nt=e.length;if(mt>Nt){var Ct=new pe(Math.max(Nt*2,mt));Ct.set(e),e=Ct}},p=t.f||0,u=t.p||0,c=t.b||0,l=t.l,m=t.d,A=t.m,C=t.n,L=i*8;do{if(!l){p=Pn(a,u,1);var D=Pn(a,u+1,3);if(u+=3,D)if(D==1)l=Bl,m=Tl,A=9,C=5;else if(D==2){var R=Pn(a,u,31)+257,V=Pn(a,u+10,15)+4,N=R+Pn(a,u+5,31)+1;u+=14;for(var j=new pe(N),v=new pe(19),S=0;S>4;if(k<16)j[S++]=k;else{var E=0,T=0;for(k==16?(T=3+Pn(a,u,3),u+=2,E=j[S-1]):k==17?(T=3+Pn(a,u,7),u+=3):k==18&&(T=11+Pn(a,u,127),u+=7);T--;)j[S++]=E}}var Q=j.subarray(0,R),J=j.subarray(R);A=za(Q),C=za(J),l=kn(Q,A,1),m=kn(J,C,1)}else le(1);else{var k=na(u)+4,O=a[k-4]|a[k-3]<<8,_=k+O;if(_>i){h&&le(0);break}f&&g(c+O),e.set(a.subarray(k,_),c),t.b=c+=O,t.p=u=_*8,t.f=p;continue}if(u>L){h&&le(0);break}}f&&g(c+131072);for(var B=(1<>4;if(u+=E&15,u>L){h&&le(0);break}if(E||le(2),q<256)e[c++]=q;else if(q==256){P=u,l=null;break}else{var z=q-254;if(q>264){var S=q-257,H=li[S];z=Pn(a,u,(1<>4;K||le(3),u+=K&15;var J=El[rt];if(rt>3){var H=fi[rt];J+=Ma(a,u)&(1<L){h&&le(0);break}f&&g(c+131072);var it=c+z;if(c>8},hi=function(a,t,e){e<<=t&7;var r=t/8|0;a[r]|=e,a[r+1]|=e>>8,a[r+2]|=e>>16},qa=function(a,t){for(var e=[],r=0;rc&&(c=n[r].s);var l=new fn(c+1),m=Ha(e[p-1],l,0);if(m>t){var r=0,A=0,C=m-t,L=1<t)A+=L-(1<>=C;A>0;){var k=n[r].s;l[k]=0&&A;--r){var O=n[r].s;l[O]==t&&(--l[O],++A)}m=t}return{t:new pe(l),l:m}},Ha=function(a,t,e){return a.s==-1?Math.max(Ha(a.l,t,e+1),Ha(a.r,t,e+1)):t[a.s]=e},us=function(a){for(var t=a.length;t&&!a[--t];);for(var e=new fn(++t),r=0,i=a[0],n=1,s=function(h){e[r++]=h},f=1;f<=t;++f)if(a[f]==i&&f!=t)++n;else{if(!i&&n>2){for(;n>138;n-=138)s(32754);n>2&&(s(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(s(i),--n;n>6;n-=6)s(8304);n>2&&(s(n-3<<5|8208),n=0)}for(;n--;)s(i);n=1,i=a[f]}return{c:e.subarray(0,r),n:t}},ci=function(a,t){for(var e=0,r=0;r>8,a[i+2]=a[i]^255,a[i+3]=a[i+1]^255;for(var n=0;n4&&!v[ta[x-1]];--x);var y=g+5<<3,F=ci(i,gr)+ci(n,ui)+s,Y=ci(i,c)+ci(n,A)+s+14+3*x+ci(V,v)+2*V[16]+3*V[17]+7*V[18];if(h>=0&&y<=F&&y<=Y)return hs(t,p,a.subarray(h,h+g));var E,T,Q,J;if($n(t,p,1+(Y15&&($n(t,p,q[N]>>5&127),p+=q[N]>>12)}}else E=Ol,T=gr,Q=Dl,J=ui;for(var N=0;N255){var z=H>>18&31;hi(t,p,E[z+257]),p+=T[z+257],z>7&&($n(t,p,H>>23&31),p+=li[z]);var K=H&31;hi(t,p,Q[K]),p+=J[K],K>3&&(hi(t,p,H>>5&8191),p+=fi[K])}else hi(t,p,E[H]),p+=T[H]}return hi(t,p,E[256]),p+T[256]},Rl=new $i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ds=new pe(0),zl=function(a,t,e,r,i,n){var s=n.z||a.length,f=new pe(r+s+5*(1+Math.ceil(s/7e3))+i),h=f.subarray(r,f.length-i),g=n.l,p=(n.r||0)&7;if(t){p&&(h[0]=n.r>>3);for(var u=Rl[t-1],c=u>>13,l=u&8191,m=(1<7e3||v>24576)&&(E>423||!g)){p=cs(a,h,0,O,_,R,N,v,x,j-x,p),v=V=N=0,x=j;for(var T=0;T<286;++T)_[T]=0;for(var T=0;T<30;++T)R[T]=0}var Q=2,J=0,B=l,tt=F-Y&32767;if(E>2&&y==k(j-tt))for(var P=Math.min(c,E)-1,q=Math.min(32767,j),z=Math.min(258,E);tt<=q&&--B&&F!=Y;){if(a[j+Q]==a[j+Q-tt]){for(var H=0;HQ){if(Q=H,J=tt,H>P)break;for(var K=Math.min(tt,H-2),rt=0,T=0;Trt&&(rt=gt,Y=it)}}}F=Y,Y=A[F],tt+=F-Y&32767}if(J){O[v++]=268435456|Ra[Q]<<18|fs[J];var mt=Ra[Q]&31,Nt=fs[J]&31;N+=li[mt]+fi[Nt],++_[257+mt],++R[Nt],S=j+Q,++V}else O[v++]=a[j],++_[a[j]]}}for(j=Math.max(j,S);j=s&&(h[p/8|0]=g,Ct=s),p=hs(h,p+1,a.subarray(j,Ct))}n.i=s}return kr(f,0,r+na(p)+i)},Ml=null,Wa=function(){var a=-1;return{p:function(t){for(var e=a,r=0;r>>8;a=e},d:function(){return~a}}},ps=function(){var a=1,t=0;return{p:function(e){for(var r=a,i=t,n=e.length|0,s=0;s!=n;){for(var f=Math.min(s+2655,n);s>16),i=(i&65535)+15*(i>>16)}a=r,t=i},d:function(){return a%=65521,t%=65521,(a&255)<<24|(a&65280)<<8|(t&255)<<8|t>>8}}},Ga=function(a,t,e,r,i){if(!i&&(i={l:1},t.dictionary)){var n=t.dictionary.subarray(-32768),s=new pe(n.length+a.length);s.set(n),s.set(a,n.length),a=s,i.w=n.length}return zl(a,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(a.length)))*1.5):20:12+t.mem,e,r,i)},Va=function(a,t){var e={};for(var r in a)e[r]=a[r];for(var r in t)e[r]=t[r];return e},Ul=function(a,t,e){for(var r=a(),i=a.toString(),n=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s>>0},bs=function(a,t){return Ke(a,t)+Ke(a,t+4)*4294967296},Pe=function(a,t,e){for(;e;++t)a[t]=e,e>>>=8},Hl=function(a,t){var e=t.filename;if(a[0]=31,a[1]=139,a[2]=8,a[8]=t.level<2?4:t.level==9?2:0,a[9]=3,t.mtime!=0&&Pe(a,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),e){a[3]=8;for(var r=0;r<=e.length;++r)a[r+10]=e.charCodeAt(r)}},Wl=function(a){(a[0]!=31||a[1]!=139||a[2]!=8)&&le(6,"invalid gzip data");var t=a[3],e=10;t&4&&(e+=(a[10]|a[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!a[e++]);return e+(t&2)},Gl=function(a){var t=a.length;return(a[t-4]|a[t-3]<<8|a[t-2]<<16|a[t-1]<<24)>>>0},Vl=function(a){return 10+(a.filename?a.filename.length+1:0)},Zl=function(a,t){var e=t.level,r=e==0?0:e<6?1:e==9?3:2;if(a[0]=120,a[1]=r<<6|(t.dictionary&&32),a[1]|=31-(a[0]<<8|a[1])%31,t.dictionary){var i=ps();i.p(t.dictionary),Pe(a,2,i.d())}},Yl=function(a,t){return((a[0]&15)!=8||a[0]>>4>7||(a[0]<<8|a[1])%31)&&le(6,"invalid zlib data"),(a[1]>>5&1)==+!t&&le(6,"invalid zlib data: "+(a[1]&32?"need":"unexpected")+" dictionary"),(a[1]>>3&4)+2};function sc(a,t){return typeof a=="function"&&(t=a,a={}),this.ondata=t,a}var lc=null,fc=null;function Su(a,t,e){return e||(e=t,t={}),typeof e!="function"&&le(7),di(a,t,[vs],function(r){return Pr(Ya(r.data[0],r.data[1]))},0,e)}function Ya(a,t){return Ga(a,t||{},0,0)}var uc=null,hc=null;function Jl(a,t,e){return e||(e=t,t={}),typeof e!="function"&&le(7),di(a,t,[gs],function(r){return Pr(ra(r.data[0],ms(r.data[1])))},1,e)}function ra(a,t){return Ua(a,{i:2},t&&t.out,t&&t.dictionary)}var cc=null,dc=null;function pc(a,t,e){return e||(e=t,t={}),typeof e!="function"&&le(7),di(a,t,[vs,wu,function(){return[Ql]}],function(r){return Pr(Ql(r.data[0],r.data[1]))},2,e)}function Ql(a,t){t||(t={});var e=Wa(),r=a.length;e.p(a);var i=Ga(a,t,Vl(t),8),n=i.length;return Hl(i,t),Pe(i,n-8,e.d()),Pe(i,n-4,r),i}var gc=null,vc=null;function Lu(a,t,e){return e||(e=t,t={}),typeof e!="function"&&le(7),di(a,t,[gs,Au,function(){return[ys]}],function(r){return Pr(ys(r.data[0],r.data[1]))},3,e)}function ys(a,t){var e=Wl(a);return e+8>a.length&&le(6,"invalid gzip data"),Ua(a.subarray(e,-8),{i:2},t&&t.out||new pe(Gl(a)),t&&t.dictionary)}var mc=null,bc=null;function yc(a,t,e){return e||(e=t,t={}),typeof e!="function"&&le(7),di(a,t,[vs,_u,function(){return[ia]}],function(r){return Pr(ia(r.data[0],r.data[1]))},4,e)}function ia(a,t){t||(t={});var e=ps();e.p(a);var r=Ga(a,t,t.dictionary?6:2,4);return Zl(r,t),Pe(r,r.length-4,e.d()),r}var wc=null,Ac=null;function Nu(a,t,e){return e||(e=t,t={}),typeof e!="function"&&le(7),di(a,t,[gs,xu,function(){return[Ja]}],function(r){return Pr(Ja(r.data[0],ms(r.data[1])))},5,e)}function Ja(a,t){return Ua(a.subarray(Yl(a,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var _c=null,xc=null;function Sc(a,t,e){return e||(e=t,t={}),typeof e!="function"&&le(7),a[0]==31&&a[1]==139&&a[2]==8?Lu(a,t,e):(a[0]&15)!=8||a[0]>>4>7||(a[0]<<8|a[1])%31?Jl(a,t,e):Nu(a,t,e)}function Lc(a,t){return a[0]==31&&a[1]==139&&a[2]==8?ys(a,t):(a[0]&15)!=8||a[0]>>4>7||(a[0]<<8|a[1])%31?ra(a,t):Ja(a,t)}var ws=function(a,t,e,r){for(var i in a){var n=a[i],s=t+i,f=r;Array.isArray(n)&&(f=Va(r,n[1]),n=n[0]),n instanceof pe?e[s]=[n,f]:(e[s+="/"]=[new pe(0),f],ws(n,s,e,r))}},Xl=typeof TextEncoder<"u"&&new TextEncoder,As=typeof TextDecoder<"u"&&new TextDecoder,ku=0;try{As.decode(ds,{stream:!0}),ku=1}catch(a){}var Pu=function(a){for(var t="",e=0;;){var r=a[e++],i=(r>127)+(r>223)+(r>239);if(e+i>a.length)return{s:t,r:kr(a,e-1)};i?i==3?(r=((r&15)<<18|(a[e++]&63)<<12|(a[e++]&63)<<6|a[e++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|a[e++]&63):t+=String.fromCharCode((r&15)<<12|(a[e++]&63)<<6|a[e++]&63):t+=String.fromCharCode(r)}},Nc=null,kc=null;function Qa(a,t){if(t){for(var e=new pe(a.length),r=0;r>1)),s=0,f=function(p){n[s++]=p},r=0;rn.length){var h=new pe(s+8+(i-r<<1));h.set(n),n=h}var g=a.charCodeAt(r);g<128||t?f(g):g<2048?(f(192|g>>6),f(128|g&63)):g>55295&&g<57344?(g=65536+(g&1047552)|a.charCodeAt(++r)&1023,f(240|g>>18),f(128|g>>12&63),f(128|g>>6&63),f(128|g&63)):(f(224|g>>12),f(128|g>>6&63),f(128|g&63))}return kr(n,0,s)}function Iu(a,t){if(t){for(var e="",r=0;r65535&&le(9),t+=r+4}return t},Xa=function(a,t,e,r,i,n,s,f){var h=r.length,g=e.extra,p=f&&f.length,u=aa(g);Pe(a,t,s!=null?33639248:67324752),t+=4,s!=null&&(a[t++]=20,a[t++]=e.os),a[t]=20,t+=2,a[t++]=e.flag<<1|(n<0&&8),a[t++]=i&&8,a[t++]=e.compression&255,a[t++]=e.compression>>8;var c=new Date(e.mtime==null?Date.now():e.mtime),l=c.getFullYear()-1980;if((l<0||l>119)&&le(10),Pe(a,t,l<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),t+=4,n!=-1&&(Pe(a,t,e.crc),Pe(a,t+4,n<0?-n-2:n),Pe(a,t+8,e.size)),Pe(a,t+12,h),Pe(a,t+14,u),t+=16,s!=null&&(Pe(a,t,p),Pe(a,t+6,e.attrs),Pe(a,t+10,s),t+=14),a.set(r,t),t+=h,u)for(var m in g){var A=g[m],C=A.length;Pe(a,t,+m),Pe(a,t+2,C),a.set(A,t+4),t+=4+C}return p&&(a.set(f,t),t+=p),t},tf=function(a,t,e,r,i){Pe(a,t,101010256),Pe(a,t+8,e),Pe(a,t+10,e),Pe(a,t+12,r),Pe(a,t+16,i)},Ic=null,Cc=null,Fc=null,Ec=null;function Oc(a,t,e){e||(e=t,t={}),typeof e!="function"&&le(7);var r={};ws(a,"",r,t);var i=Object.keys(r),n=i.length,s=0,f=0,h=n,g=new Array(n),p=[],u=function(){for(var C=0;C65535&&F(le(11,0,1),null),!y)F(null,k);else if(R<16e4)try{F(null,Ya(k,O))}catch(Y){F(Y,null)}else p.push(Su(k,O,F))},A=0;A65535&&le(11);var L=p?Ya(h,g):h,D=L.length,k=Wa();k.p(h),r.push(Va(g,{size:h.length,crc:k.d(),c:L,f:u,m,u:c!=s.length||m&&l.length!=A,o:i,compression:p})),i+=30+c+C+D,n+=76+2*(c+C)+(A||0)+D}for(var O=new pe(n+22),_=i,R=n-i,V=0;V65558)return s(le(13,0,1),null),i;var h=zn(a,f+8);if(h){var g=h,p=Ke(a,f+16),u=p==4294967295||g==65535;if(u){var c=Ke(a,f-12);u=Ke(a,c)==101075792,u&&(g=h=Ke(a,c+32),p=Ke(a,c+48))}for(var l=t&&t.filter,m=function(C){var L=$l(a,p,u),D=L[0],k=L[1],O=L[2],_=L[3],R=L[4],V=L[5],N=Kl(a,V);p=R;var j=function(S,x){S?(i(),s(S,null)):(x&&(n[_]=x),--h||s(null,n))};if(!l||l({name:_,size:k,originalSize:O,compression:D}))if(!D)j(null,kr(a,N,N+k));else if(D==8){var v=a.subarray(N,N+k);if(O<524288||k>.8*O)try{j(null,ra(v,{out:new pe(O)}))}catch(S){j(S,null)}else r.push(Jl(v,{size:O},j))}else j(le(14,"unknown compression type "+D,1),null);else j(null,null)},A=0;A65558)&&le(13);var i=zn(a,r+8);if(!i)return{};var n=Ke(a,r+16),s=n==4294967295||i==65535;if(s){var f=Ke(a,r-12);s=Ke(a,f)==101075792,s&&(i=Ke(a,f+32),n=Ke(a,f+48))}for(var h=t&&t.filter,g=0;g, https://github.com/MrRio/jsPDF * 2015-2021 yWorks GmbH, http://www.yworks.com * 2015-2021 Lukas Holländer , https://github.com/HackbrettXXX * 2016-2018 Aras Abbasi * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, https://github.com/willowsystems * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */var Jt=function(){return typeof window<"u"?window:typeof Rn.g<"u"?Rn.g:typeof self<"u"?self:this}();function _s(){Jt.console&&typeof Jt.console.log=="function"&&Jt.console.log.apply(Jt.console,arguments)}var _e={log:_s,warn:function(a){Jt.console&&(typeof Jt.console.warn=="function"?Jt.console.warn.apply(Jt.console,arguments):_s.call(null,arguments))},error:function(a){Jt.console&&(typeof Jt.console.error=="function"?Jt.console.error.apply(Jt.console,arguments):_s(a))}};function xs(a,t,e){var r=new XMLHttpRequest;r.open("GET",a),r.responseType="blob",r.onload=function(){Vr(r.response,t,e)},r.onerror=function(){_e.error("could not download file")},r.send()}function ef(a){var t=new XMLHttpRequest;t.open("HEAD",a,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function $a(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(e){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(t)}}var oa,Ss,Vr=Jt.saveAs||((typeof window>"u"?"undefined":(0,Ae.A)(window))!=="object"||window!==Jt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(a,t,e){var r=Jt.URL||Jt.webkitURL,i=document.createElement("a");t=t||a.name||"download",i.download=t,i.rel="noopener",typeof a=="string"?(i.href=a,i.origin!==location.origin?ef(i.href)?xs(a,t,e):$a(i,i.target="_blank"):$a(i)):(i.href=r.createObjectURL(a),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){$a(i)},0))}:"msSaveOrOpenBlob"in navigator?function(a,t,e){if(t=t||a.name||"download",typeof a=="string")if(ef(a))xs(a,t,e);else{var r=document.createElement("a");r.href=a,r.target="_blank",setTimeout(function(){$a(r)})}else navigator.msSaveOrOpenBlob(function(i,n){return n===void 0?n={autoBom:!1}:(0,Ae.A)(n)!=="object"&&(_e.warn("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(a,e),t)}:function(a,t,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof a=="string")return xs(a,t,e);var i=a.type==="application/octet-stream",n=/constructor/i.test(Jt.HTMLElement)||Jt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&n)&&(typeof FileReader>"u"?"undefined":(0,Ae.A)(FileReader))==="object"){var f=new FileReader;f.onloadend=function(){var p=f.result;p=s?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=p:location=p,r=null},f.readAsDataURL(a)}else{var h=Jt.URL||Jt.webkitURL,g=h.createObjectURL(a);r?r.location=g:location.href=g,r=null,setTimeout(function(){h.revokeObjectURL(g)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function nf(a){var t;a=a||"",this.ok=!1,a.charAt(0)=="#"&&(a=a.substr(1,6)),a={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[a=(a=a.replace(/ /g,"")).toLowerCase()]||a;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(f){return[parseInt(f[1]),parseInt(f[2]),parseInt(f[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(f){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(f){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var f=this.r.toString(16),h=this.g.toString(16),g=this.b.toString(16);return f.length==1&&(f="0"+f),h.length==1&&(h="0"+h),g.length==1&&(g="0"+g),"#"+f+h+g}}/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function Ls(a,t){var e=a[0],r=a[1],i=a[2],n=a[3];e=en(e,r,i,n,t[0],7,-680876936),n=en(n,e,r,i,t[1],12,-389564586),i=en(i,n,e,r,t[2],17,606105819),r=en(r,i,n,e,t[3],22,-1044525330),e=en(e,r,i,n,t[4],7,-176418897),n=en(n,e,r,i,t[5],12,1200080426),i=en(i,n,e,r,t[6],17,-1473231341),r=en(r,i,n,e,t[7],22,-45705983),e=en(e,r,i,n,t[8],7,1770035416),n=en(n,e,r,i,t[9],12,-1958414417),i=en(i,n,e,r,t[10],17,-42063),r=en(r,i,n,e,t[11],22,-1990404162),e=en(e,r,i,n,t[12],7,1804603682),n=en(n,e,r,i,t[13],12,-40341101),i=en(i,n,e,r,t[14],17,-1502002290),e=nn(e,r=en(r,i,n,e,t[15],22,1236535329),i,n,t[1],5,-165796510),n=nn(n,e,r,i,t[6],9,-1069501632),i=nn(i,n,e,r,t[11],14,643717713),r=nn(r,i,n,e,t[0],20,-373897302),e=nn(e,r,i,n,t[5],5,-701558691),n=nn(n,e,r,i,t[10],9,38016083),i=nn(i,n,e,r,t[15],14,-660478335),r=nn(r,i,n,e,t[4],20,-405537848),e=nn(e,r,i,n,t[9],5,568446438),n=nn(n,e,r,i,t[14],9,-1019803690),i=nn(i,n,e,r,t[3],14,-187363961),r=nn(r,i,n,e,t[8],20,1163531501),e=nn(e,r,i,n,t[13],5,-1444681467),n=nn(n,e,r,i,t[2],9,-51403784),i=nn(i,n,e,r,t[7],14,1735328473),e=rn(e,r=nn(r,i,n,e,t[12],20,-1926607734),i,n,t[5],4,-378558),n=rn(n,e,r,i,t[8],11,-2022574463),i=rn(i,n,e,r,t[11],16,1839030562),r=rn(r,i,n,e,t[14],23,-35309556),e=rn(e,r,i,n,t[1],4,-1530992060),n=rn(n,e,r,i,t[4],11,1272893353),i=rn(i,n,e,r,t[7],16,-155497632),r=rn(r,i,n,e,t[10],23,-1094730640),e=rn(e,r,i,n,t[13],4,681279174),n=rn(n,e,r,i,t[0],11,-358537222),i=rn(i,n,e,r,t[3],16,-722521979),r=rn(r,i,n,e,t[6],23,76029189),e=rn(e,r,i,n,t[9],4,-640364487),n=rn(n,e,r,i,t[12],11,-421815835),i=rn(i,n,e,r,t[15],16,530742520),e=an(e,r=rn(r,i,n,e,t[2],23,-995338651),i,n,t[0],6,-198630844),n=an(n,e,r,i,t[7],10,1126891415),i=an(i,n,e,r,t[14],15,-1416354905),r=an(r,i,n,e,t[5],21,-57434055),e=an(e,r,i,n,t[12],6,1700485571),n=an(n,e,r,i,t[3],10,-1894986606),i=an(i,n,e,r,t[10],15,-1051523),r=an(r,i,n,e,t[1],21,-2054922799),e=an(e,r,i,n,t[8],6,1873313359),n=an(n,e,r,i,t[15],10,-30611744),i=an(i,n,e,r,t[6],15,-1560198380),r=an(r,i,n,e,t[13],21,1309151649),e=an(e,r,i,n,t[4],6,-145523070),n=an(n,e,r,i,t[11],10,-1120210379),i=an(i,n,e,r,t[2],15,718787259),r=an(r,i,n,e,t[9],21,-343485551),a[0]=Ir(e,a[0]),a[1]=Ir(r,a[1]),a[2]=Ir(i,a[2]),a[3]=Ir(n,a[3])}function to(a,t,e,r,i,n){return t=Ir(Ir(t,a),Ir(r,n)),Ir(t<>>32-i,e)}function en(a,t,e,r,i,n,s){return to(t&e|~t&r,a,t,i,n,s)}function nn(a,t,e,r,i,n,s){return to(t&r|e&~r,a,t,i,n,s)}function rn(a,t,e,r,i,n,s){return to(t^e^r,a,t,i,n,s)}function an(a,t,e,r,i,n,s){return to(e^(t|~r),a,t,i,n,s)}function rf(a){var t,e=a.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=a.length;t+=64)Ls(r,Fu(a.substring(t-64,t)));a=a.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=a.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(Ls(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*e,Ls(r,i),r}function Fu(a){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=a.charCodeAt(t)+(a.charCodeAt(t+1)<<8)+(a.charCodeAt(t+2)<<16)+(a.charCodeAt(t+3)<<24);return e}oa=Jt.atob.bind(Jt),Ss=Jt.btoa.bind(Jt);var af="0123456789abcdef".split("");function Eu(a){for(var t="",e=0;e<4;e++)t+=af[a>>8*e+4&15]+af[a>>8*e&15];return t}function Ou(a){return String.fromCharCode((255&a)>>0,(65280&a)>>8,(16711680&a)>>16,(4278190080&a)>>24)}function Ns(a){return rf(a).map(Ou).join("")}var Bu=function(a){for(var t=0;t>16)+(t>>16)+(e>>16)<<16|65535&e}return a+t&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function ks(a,t){var e,r,i,n;if(a!==e){for(var s=(i=a,n=1+(256/a.length>>0),new Array(n+1).join(i)),f=[],h=0;h<256;h++)f[h]=h;var g=0;for(h=0;h<256;h++){var p=f[h];g=(g+p+s.charCodeAt(h))%256,f[h]=f[g],f[g]=p}e=a,r=f}else f=r;var u=t.length,c=0,l=0,m="";for(h=0;h\x80/\f\xA9\xFEdSiz";var n=(t+this.padding).substr(0,32),s=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(n,s),this.P=-(1+(255^i)),this.encryptionKey=Ns(n+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=ks(this.encryptionKey,this.padding)}function gi(a){if(/[^\u0000-\u00ff]/.test(a))throw new Error("Invalid PDF Name Object: "+a+", Only accept ASCII characters.");for(var t="",e=a.length,r=0;r126?t+="#"+("0"+i.toString(16)).slice(-2):t+=a[r]}return t}function sf(a){if((0,Ae.A)(a)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,i){if(i=i||!1,typeof e!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var n=Math.random().toString(35);return t[e][n]=[r,!!i],n},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var n in t[e]){var s=t[e][n];try{s[0].apply(a,r)}catch(f){Jt.console&&_e.error("jsPDF PubSub Error",f.message,f)}s[1]&&i.push(n)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function eo(a){if(!(this instanceof eo))return new eo(a);var t="opacity,stroke-opacity".split(",");for(var e in a)a.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=a[e]);this.id="",this.objectNumber=-1}function lf(a,t){this.gState=a,this.matrix=t,this.id="",this.objectNumber=-1}function Zr(a,t,e,r,i){if(!(this instanceof Zr))return new Zr(a,t,e,r,i);this.type=a==="axial"?2:3,this.coords=t,this.colors=e,lf.call(this,r,i)}function vi(a,t,e,r,i){if(!(this instanceof vi))return new vi(a,t,e,r,i);this.boundingBox=a,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,lf.call(this,r,i)}function Zt(a){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],n=arguments[3],s=[],f=1,h=16,g="S",p=null;(0,Ae.A)(a=a||{})==="object"&&(e=a.orientation,r=a.unit||r,i=a.format||i,n=a.compress||a.compressPdf||n,(p=a.encryption||null)!==null&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),f=typeof a.userUnit=="number"?Math.abs(a.userUnit):1,a.precision!==void 0&&(t=a.precision),a.floatPrecision!==void 0&&(h=a.floatPrecision),g=a.defaultPathOperation||"S"),s=a.filters||(n===!0?["FlateEncode"]:s),r=r||"mm",e=(""+(e||"P")).toLowerCase();var u=a.putOnlyUsedFonts||!1,c={},l={internal:{},__private__:{}};l.__private__.PubSub=sf;var m="1.3",A=l.__private__.getPdfVersion=function(){return m};l.__private__.setPdfVersion=function(b){m=b};var C={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};l.__private__.getPageFormats=function(){return C};var L=l.__private__.getPageFormat=function(b){return C[b]};i=i||"a4";var D={COMPAT:"compat",ADVANCED:"advanced"},k=D.COMPAT;function O(){this.saveGraphicsState(),nt(new Yt(Ft,0,0,-Ft,0,Br()*Ft).toString()+" cm"),this.setFontSize(this.getFontSize()/Ft),g="n",k=D.ADVANCED}function _(){this.restoreGraphicsState(),g="S",k=D.COMPAT}var R=l.__private__.combineFontStyleAndFontWeight=function(b,U){if(b=="bold"&&U=="normal"||b=="bold"&&U==400||b=="normal"&&U=="italic"||b=="bold"&&U=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return U&&(b=U==400||U==="normal"?b==="italic"?"italic":"normal":U!=700&&U!=="bold"||b!=="normal"?(U==700?"bold":U)+""+b:"bold"),b};l.advancedAPI=function(b){var U=k===D.COMPAT;return U&&O.call(this),typeof b!="function"||(b(this),U&&_.call(this)),this},l.compatAPI=function(b){var U=k===D.ADVANCED;return U&&_.call(this),typeof b!="function"||(b(this),U&&O.call(this)),this},l.isAdvancedAPI=function(){return k===D.ADVANCED};var V,N=function(b){if(k!==D.ADVANCED)throw new Error(b+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},j=l.roundToPrecision=l.__private__.roundToPrecision=function(b,U){var et=t||U;if(isNaN(b)||isNaN(et))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return b.toFixed(et).replace(/0+$/,"")};V=l.hpf=l.__private__.hpf=typeof h=="number"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return j(b,h)}:h==="smart"?function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return j(b,b>-1&&b<1?16:5)}:function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.hpf");return j(b,16)};var v=l.f2=l.__private__.f2=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f2");return j(b,2)},S=l.__private__.f3=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.f3");return j(b,3)},x=l.scale=l.__private__.scale=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.scale");return k===D.COMPAT?b*Ft:k===D.ADVANCED?b:void 0},y=function(b){return k===D.COMPAT?Br()-b:k===D.ADVANCED?b:void 0},F=function(b){return x(y(b))};l.__private__.setPrecision=l.setPrecision=function(b){typeof parseInt(b,10)=="number"&&(t=parseInt(b,10))};var Y,E="00000000000000000000000000000000",T=l.__private__.getFileId=function(){return E},Q=l.__private__.setFileId=function(b){return E=b!==void 0&&/^[a-fA-F0-9]{32}$/.test(b)?b.toUpperCase():E.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),p!==null&&(sn=new pi(p.userPermissions,p.userPassword,p.ownerPassword,E)),E};l.setFileId=function(b){return Q(b),this},l.getFileId=function(){return T()};var J=l.__private__.convertDateToPDFDate=function(b){var U=b.getTimezoneOffset(),et=U<0?"+":"-",ot=Math.floor(Math.abs(U/60)),ht=Math.abs(U%60),bt=[et,z(ot),"'",z(ht),"'"].join("");return["D:",b.getFullYear(),z(b.getMonth()+1),z(b.getDate()),z(b.getHours()),z(b.getMinutes()),z(b.getSeconds()),bt].join("")},B=l.__private__.convertPDFDateToDate=function(b){var U=parseInt(b.substr(2,4),10),et=parseInt(b.substr(6,2),10)-1,ot=parseInt(b.substr(8,2),10),ht=parseInt(b.substr(10,2),10),bt=parseInt(b.substr(12,2),10),kt=parseInt(b.substr(14,2),10);return new Date(U,et,ot,ht,bt,kt,0)},tt=l.__private__.setCreationDate=function(b){var U;if(b===void 0&&(b=new Date),b instanceof Date)U=J(b);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(b))throw new Error("Invalid argument passed to jsPDF.setCreationDate");U=b}return Y=U},P=l.__private__.getCreationDate=function(b){var U=Y;return b==="jsDate"&&(U=B(Y)),U};l.setCreationDate=function(b){return tt(b),this},l.getCreationDate=function(b){return P(b)};var q,z=l.__private__.padd2=function(b){return("0"+parseInt(b)).slice(-2)},H=l.__private__.padd2Hex=function(b){return("00"+(b=b.toString())).substr(b.length)},K=0,rt=[],it=[],at=0,gt=[],mt=[],Nt=!1,Ct=it,Mt=function(){K=0,at=0,it=[],rt=[],gt=[],vr=Me(),Gn=Me()};l.__private__.setCustomOutputDestination=function(b){Nt=!0,Ct=b};var pt=function(b){Nt||(Ct=b)};l.__private__.resetCustomOutputDestination=function(){Nt=!1,Ct=it};var nt=l.__private__.out=function(b){return b=b.toString(),at+=b.length+1,Ct.push(b),Ct},Tt=l.__private__.write=function(b){return nt(arguments.length===1?b.toString():Array.prototype.join.call(arguments," "))},It=l.__private__.getArrayBuffer=function(b){for(var U=b.length,et=new ArrayBuffer(U),ot=new Uint8Array(et);U--;)ot[U]=b.charCodeAt(U);return et},yt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];l.__private__.getStandardFonts=function(){return yt};var St=a.fontSize||16;l.__private__.setFontSize=l.setFontSize=function(b){return St=k===D.ADVANCED?b/Ft:b,this};var Pt,xt=l.__private__.getFontSize=l.getFontSize=function(){return k===D.COMPAT?St:St*Ft},Et=a.R2L||!1;l.__private__.setR2L=l.setR2L=function(b){return Et=b,this},l.__private__.getR2L=l.getR2L=function(){return Et};var Dt,Ut=l.__private__.setZoomMode=function(b){var U=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(b))Pt=b;else if(isNaN(b)){if(U.indexOf(b)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+b+'" is not recognized.');Pt=b}else Pt=parseInt(b,10)};l.__private__.getZoomMode=function(){return Pt};var Qt,ie=l.__private__.setPageMode=function(b){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(b)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+b+'" is not recognized.');Dt=b};l.__private__.getPageMode=function(){return Dt};var Xt=l.__private__.setLayoutMode=function(b){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(b)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+b+'" is not recognized.');Qt=b};l.__private__.getLayoutMode=function(){return Qt},l.__private__.setDisplayMode=l.setDisplayMode=function(b,U,et){return Ut(b),Xt(U),ie(et),this};var qt={title:"",subject:"",author:"",keywords:"",creator:""};l.__private__.getDocumentProperty=function(b){if(Object.keys(qt).indexOf(b)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return qt[b]},l.__private__.getDocumentProperties=function(){return qt},l.__private__.setDocumentProperties=l.setProperties=l.setDocumentProperties=function(b){for(var U in qt)qt.hasOwnProperty(U)&&b[U]&&(qt[U]=b[U]);return this},l.__private__.setDocumentProperty=function(b,U){if(Object.keys(qt).indexOf(b)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return qt[b]=U};var Wt,Ft,ge,ne,Fe,se={},be={},In=[],fe={},ir={},ye={},An={},Ze=null,ce=0,Vt=[],ae=new sf(l),ar=a.hotfixes||[],ke={},Ye={},or=[],Yt=function b(U,et,ot,ht,bt,kt){if(!(this instanceof b))return new b(U,et,ot,ht,bt,kt);isNaN(U)&&(U=1),isNaN(et)&&(et=0),isNaN(ot)&&(ot=0),isNaN(ht)&&(ht=1),isNaN(bt)&&(bt=0),isNaN(kt)&&(kt=0),this._matrix=[U,et,ot,ht,bt,kt]};Object.defineProperty(Yt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(Yt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(Yt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(Yt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(Yt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(Yt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(Yt.prototype,"a",{get:function(){return this._matrix[0]},set:function(b){this._matrix[0]=b}}),Object.defineProperty(Yt.prototype,"b",{get:function(){return this._matrix[1]},set:function(b){this._matrix[1]=b}}),Object.defineProperty(Yt.prototype,"c",{get:function(){return this._matrix[2]},set:function(b){this._matrix[2]=b}}),Object.defineProperty(Yt.prototype,"d",{get:function(){return this._matrix[3]},set:function(b){this._matrix[3]=b}}),Object.defineProperty(Yt.prototype,"e",{get:function(){return this._matrix[4]},set:function(b){this._matrix[4]=b}}),Object.defineProperty(Yt.prototype,"f",{get:function(){return this._matrix[5]},set:function(b){this._matrix[5]=b}}),Object.defineProperty(Yt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Yt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Yt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Yt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Yt.prototype.join=function(b){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(V).join(b)},Yt.prototype.multiply=function(b){var U=b.sx*this.sx+b.shy*this.shx,et=b.sx*this.shy+b.shy*this.sy,ot=b.shx*this.sx+b.sy*this.shx,ht=b.shx*this.shy+b.sy*this.sy,bt=b.tx*this.sx+b.ty*this.shx+this.tx,kt=b.tx*this.shy+b.ty*this.sy+this.ty;return new Yt(U,et,ot,ht,bt,kt)},Yt.prototype.decompose=function(){var b=this.sx,U=this.shy,et=this.shx,ot=this.sy,ht=this.tx,bt=this.ty,kt=Math.sqrt(b*b+U*U),jt=(b/=kt)*et+(U/=kt)*ot;et-=b*jt,ot-=U*jt;var Ht=Math.sqrt(et*et+ot*ot);return jt/=Ht,b*(ot/=Ht)>16&255,ot=Ht>>8&255,ht=255&Ht}if(ot===void 0||bt===void 0&&et===ot&&ot===ht)if(typeof et=="string")U=et+" "+kt[0];else switch(b.precision){case 2:U=v(et/255)+" "+kt[0];break;case 3:default:U=S(et/255)+" "+kt[0]}else if(bt===void 0||(0,Ae.A)(bt)==="object"){if(bt&&!isNaN(bt.a)&&bt.a===0)return U=["1.","1.","1.",kt[1]].join(" ");if(typeof et=="string")U=[et,ot,ht,kt[1]].join(" ");else switch(b.precision){case 2:U=[v(et/255),v(ot/255),v(ht/255),kt[1]].join(" ");break;default:case 3:U=[S(et/255),S(ot/255),S(ht/255),kt[1]].join(" ")}}else if(typeof et=="string")U=[et,ot,ht,bt,kt[2]].join(" ");else switch(b.precision){case 2:U=[v(et),v(ot),v(ht),v(bt),kt[2]].join(" ");break;case 3:default:U=[S(et),S(ot),S(ht),S(bt),kt[2]].join(" ")}return U},lr=l.__private__.getFilters=function(){return s},Cn=l.__private__.putStream=function(b){var U=(b=b||{}).data||"",et=b.filters||lr(),ot=b.alreadyAppliedFilters||[],ht=b.addLength1||!1,bt=U.length,kt=b.objectId,jt=function(ln){return ln};if(p!==null&&kt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");p!==null&&(jt=sn.encryptor(kt,0));var Ht={};et===!0&&(et=["FlateEncode"]);var ee=b.additionalKeyValues||[],te=(Ht=Zt.API.processDataByFilters!==void 0?Zt.API.processDataByFilters(U,et):{data:U,reverseChain:[]}).reverseChain+(Array.isArray(ot)?ot.join(" "):ot.toString());if(Ht.data.length!==0&&(ee.push({key:"Length",value:Ht.data.length}),ht===!0&&ee.push({key:"Length1",value:bt})),te.length!=0)if(te.split("/").length-1==1)ee.push({key:"Filter",value:te});else{ee.push({key:"Filter",value:"["+te+"]"});for(var ue=0;ue>"),Ht.data.length!==0&&(nt("stream"),nt(jt(Ht.data)),nt("endstream"))},fr=l.__private__.putPage=function(b){var U=b.number,et=b.data,ot=b.objId,ht=b.contentsObjId;_n(ot,!0),nt("<>"),nt("endobj");var bt=et.join("\n");return k===D.ADVANCED&&(bt+="\nQ"),_n(ht,!0),Cn({data:bt,filters:lr(),objectId:ht}),nt("endobj"),ot},Xr=l.__private__.putPages=function(){var b,U,et=[];for(b=1;b<=ce;b++)Vt[b].objId=Me(),Vt[b].contentsObjId=Me();for(b=1;b<=ce;b++)et.push(fr({number:b,data:mt[b],objId:Vt[b].objId,contentsObjId:Vt[b].contentsObjId,mediaBox:Vt[b].mediaBox,cropBox:Vt[b].cropBox,bleedBox:Vt[b].bleedBox,trimBox:Vt[b].trimBox,artBox:Vt[b].artBox,userUnit:Vt[b].userUnit,rootDictionaryObjId:vr,resourceDictionaryObjId:Gn}));_n(vr,!0),nt("<>"),nt("endobj"),ae.publish("postPutPages")},Li=function(b){ae.publish("putFont",{font:b,out:nt,newObject:We,putStream:Cn}),b.isAlreadyPutted!==!0&&(b.objectNumber=We(),nt("<<"),nt("/Type /Font"),nt("/BaseFont /"+gi(b.postScriptName)),nt("/Subtype /Type1"),typeof b.encoding=="string"&&nt("/Encoding /"+b.encoding),nt("/FirstChar 32"),nt("/LastChar 255"),nt(">>"),nt("endobj"))},Ni=function(){for(var b in se)se.hasOwnProperty(b)&&(u===!1||u===!0&&c.hasOwnProperty(b))&&Li(se[b])},ki=function(b){b.objectNumber=We();var U=[];U.push({key:"Type",value:"/XObject"}),U.push({key:"Subtype",value:"/Form"}),U.push({key:"BBox",value:"["+[V(b.x),V(b.y),V(b.x+b.width),V(b.y+b.height)].join(" ")+"]"}),U.push({key:"Matrix",value:"["+b.matrix.toString()+"]"});var et=b.pages[1].join("\n");Cn({data:et,additionalKeyValues:U,objectId:b.objectNumber}),nt("endobj")},Pi=function(){for(var b in ke)ke.hasOwnProperty(b)&&ki(ke[b])},mo=function(b,U){var et,ot=[],ht=1/(U-1);for(et=0;et<1;et+=ht)ot.push(et);if(ot.push(1),b[0].offset!=0){var bt={offset:0,color:b[0].color};b.unshift(bt)}if(b[b.length-1].offset!=1){var kt={offset:1,color:b[b.length-1].color};b.push(kt)}for(var jt="",Ht=0,ee=0;eeb[Ht+1].offset;)Ht++;var te=b[Ht].offset,ue=(et-te)/(b[Ht+1].offset-te),Ie=b[Ht].color,Ee=b[Ht+1].color;jt+=H(Math.round((1-ue)*Ie[0]+ue*Ee[0]).toString(16))+H(Math.round((1-ue)*Ie[1]+ue*Ee[1]).toString(16))+H(Math.round((1-ue)*Ie[2]+ue*Ee[2]).toString(16))}return jt.trim()},Rs=function(b,U){U||(U=21);var et=We(),ot=mo(b.colors,U),ht=[];ht.push({key:"FunctionType",value:"0"}),ht.push({key:"Domain",value:"[0.0 1.0]"}),ht.push({key:"Size",value:"["+U+"]"}),ht.push({key:"BitsPerSample",value:"8"}),ht.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ht.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Cn({data:ot,additionalKeyValues:ht,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:et}),nt("endobj"),b.objectNumber=We(),nt("<< /ShadingType "+b.type),nt("/ColorSpace /DeviceRGB");var bt="/Coords ["+V(parseFloat(b.coords[0]))+" "+V(parseFloat(b.coords[1]))+" ";b.type===2?bt+=V(parseFloat(b.coords[2]))+" "+V(parseFloat(b.coords[3])):bt+=V(parseFloat(b.coords[2]))+" "+V(parseFloat(b.coords[3]))+" "+V(parseFloat(b.coords[4]))+" "+V(parseFloat(b.coords[5])),nt(bt+="]"),b.matrix&&nt("/Matrix ["+b.matrix.toString()+"]"),nt("/Function "+et+" 0 R"),nt("/Extend [true true]"),nt(">>"),nt("endobj")},zs=function(b,U){var et=Me(),ot=We();U.push({resourcesOid:et,objectOid:ot}),b.objectNumber=ot;var ht=[];ht.push({key:"Type",value:"/Pattern"}),ht.push({key:"PatternType",value:"1"}),ht.push({key:"PaintType",value:"1"}),ht.push({key:"TilingType",value:"1"}),ht.push({key:"BBox",value:"["+b.boundingBox.map(V).join(" ")+"]"}),ht.push({key:"XStep",value:V(b.xStep)}),ht.push({key:"YStep",value:V(b.yStep)}),ht.push({key:"Resources",value:et+" 0 R"}),b.matrix&&ht.push({key:"Matrix",value:"["+b.matrix.toString()+"]"}),Cn({data:b.stream,additionalKeyValues:ht,objectId:b.objectNumber}),nt("endobj")},Ii=function(b){var U;for(U in fe)fe.hasOwnProperty(U)&&(fe[U]instanceof Zr?Rs(fe[U]):fe[U]instanceof vi&&zs(fe[U],b))},bo=function(b){for(var U in b.objectNumber=We(),nt("<<"),b)switch(U){case"opacity":nt("/ca "+v(b[U]));break;case"stroke-opacity":nt("/CA "+v(b[U]))}nt(">>"),nt("endobj")},Ms=function(){var b;for(b in ye)ye.hasOwnProperty(b)&&bo(ye[b])},sa=function(){for(var b in nt("/XObject <<"),ke)ke.hasOwnProperty(b)&&ke[b].objectNumber>=0&&nt("/"+b+" "+ke[b].objectNumber+" 0 R");ae.publish("putXobjectDict"),nt(">>")},Us=function(){sn.oid=We(),nt("<<"),nt("/Filter /Standard"),nt("/V "+sn.v),nt("/R "+sn.r),nt("/U <"+sn.toHexString(sn.U)+">"),nt("/O <"+sn.toHexString(sn.O)+">"),nt("/P "+sn.P),nt(">>"),nt("endobj")},yo=function(){for(var b in nt("/Font <<"),se)se.hasOwnProperty(b)&&(u===!1||u===!0&&c.hasOwnProperty(b))&&nt("/"+b+" "+se[b].objectNumber+" 0 R");nt(">>")},qs=function(){if(Object.keys(fe).length>0){for(var b in nt("/Shading <<"),fe)fe.hasOwnProperty(b)&&fe[b]instanceof Zr&&fe[b].objectNumber>=0&&nt("/"+b+" "+fe[b].objectNumber+" 0 R");ae.publish("putShadingPatternDict"),nt(">>")}},Ci=function(b){if(Object.keys(fe).length>0){for(var U in nt("/Pattern <<"),fe)fe.hasOwnProperty(U)&&fe[U]instanceof l.TilingPattern&&fe[U].objectNumber>=0&&fe[U].objectNumber>")}},Hs=function(){if(Object.keys(ye).length>0){var b;for(b in nt("/ExtGState <<"),ye)ye.hasOwnProperty(b)&&ye[b].objectNumber>=0&&nt("/"+b+" "+ye[b].objectNumber+" 0 R");ae.publish("putGStateDict"),nt(">>")}},je=function(b){_n(b.resourcesOid,!0),nt("<<"),nt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),yo(),qs(),Ci(b.objectOid),Hs(),sa(),nt(">>"),nt("endobj")},wo=function(){var b=[];Ni(),Ms(),Pi(),Ii(b),ae.publish("putResources"),b.forEach(je),je({resourcesOid:Gn,objectOid:Number.MAX_SAFE_INTEGER}),ae.publish("postPutResources")},Ao=function(){ae.publish("putAdditionalObjects");for(var b=0;b>8&&(Ht=!0);b=jt.join("")}for(et=b.length;Ht===void 0&&et!==0;)b.charCodeAt(et-1)>>8&&(Ht=!0),et--;if(!Ht)return b;for(jt=U.noBOM?[]:[254,255],et=0,ot=b.length;et>8)>>8)throw new Error("Character at position "+et+" of string '"+b+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");jt.push(te),jt.push(ee-(te<<8))}return String.fromCharCode.apply(void 0,jt)},vn=l.__private__.pdfEscape=l.pdfEscape=function(b,U){return Fi(b,U).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},fa=l.__private__.beginPage=function(b){mt[++ce]=[],Vt[ce]={objId:0,contentsObjId:0,userUnit:Number(f),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(b[0]),topRightY:Number(b[1])}},So(ce),pt(mt[q])},xo=function(b,U){var et,ot,ht;switch(e=U||e,typeof b=="string"&&(et=L(b.toLowerCase()),Array.isArray(et)&&(ot=et[0],ht=et[1])),Array.isArray(b)&&(ot=b[0]*Ft,ht=b[1]*Ft),isNaN(ot)&&(ot=i[0],ht=i[1]),(ot>14400||ht>14400)&&(_e.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ot=Math.min(14400,ot),ht=Math.min(14400,ht)),i=[ot,ht],e.substr(0,1)){case"l":ht>ot&&(i=[ht,ot]);break;case"p":ot>ht&&(i=[ht,ot])}fa(i),Co(da),nt(Jn),ga!==0&&nt(ga+" J"),va!==0&&nt(va+" j"),ae.publish("addPage",{pageNumber:ce})},Gs=function(b){b>0&&b<=ce&&(mt.splice(b,1),Vt.splice(b,1),ce--,q>ce&&(q=ce),this.setPage(q))},So=function(b){b>0&&b<=ce&&(q=b)},Vs=l.__private__.getNumberOfPages=l.getNumberOfPages=function(){return mt.length-1},Lo=function(b,U,et){var ot,ht=void 0;return et=et||{},b=b!==void 0?b:se[Wt].fontName,U=U!==void 0?U:se[Wt].fontStyle,ot=b.toLowerCase(),be[ot]!==void 0&&be[ot][U]!==void 0?ht=be[ot][U]:be[b]!==void 0&&be[b][U]!==void 0?ht=be[b][U]:et.disableWarning===!1&&_e.warn("Unable to look up font label for font '"+b+"', '"+U+"'. Refer to getFontList() for available fonts."),ht||et.noFallback||(ht=be.times[U])==null&&(ht=be.times.normal),ht},Zs=l.__private__.putInfo=function(){var b=We(),U=function(ot){return ot};for(var et in p!==null&&(U=sn.encryptor(b,0)),nt("<<"),nt("/Producer ("+vn(U("jsPDF "+Zt.version))+")"),qt)qt.hasOwnProperty(et)&&qt[et]&&nt("/"+et.substr(0,1).toUpperCase()+et.substr(1)+" ("+vn(U(qt[et]))+")");nt("/CreationDate ("+vn(U(Y))+")"),nt(">>"),nt("endobj")},ua=l.__private__.putCatalog=function(b){var U=(b=b||{}).rootDictionaryObjId||vr;switch(We(),nt("<<"),nt("/Type /Catalog"),nt("/Pages "+U+" 0 R"),Pt||(Pt="fullwidth"),Pt){case"fullwidth":nt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":nt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":nt("/OpenAction [3 0 R /Fit]");break;case"original":nt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var et=""+Pt;et.substr(et.length-1)==="%"&&(Pt=parseInt(Pt)/100),typeof Pt=="number"&&nt("/OpenAction [3 0 R /XYZ null null "+v(Pt)+"]")}switch(Qt||(Qt="continuous"),Qt){case"continuous":nt("/PageLayout /OneColumn");break;case"single":nt("/PageLayout /SinglePage");break;case"two":case"twoleft":nt("/PageLayout /TwoColumnLeft");break;case"tworight":nt("/PageLayout /TwoColumnRight")}Dt&&nt("/PageMode /"+Dt),ae.publish("putCatalog"),nt(">>"),nt("endobj")},Ys=l.__private__.putTrailer=function(){nt("trailer"),nt("<<"),nt("/Size "+(K+1)),nt("/Root "+K+" 0 R"),nt("/Info "+(K-1)+" 0 R"),p!==null&&nt("/Encrypt "+sn.oid+" 0 R"),nt("/ID [ <"+E+"> <"+E+"> ]"),nt(">>")},Js=l.__private__.putHeader=function(){nt("%PDF-"+m),nt("%\xBA\xDF\xAC\xE0")},Qs=l.__private__.putXRef=function(){var b="0000000000";nt("xref"),nt("0 "+(K+1)),nt("0000000000 65535 f ");for(var U=1;U<=K;U++)typeof rt[U]=="function"?nt((b+rt[U]()).slice(-10)+" 00000 n "):rt[U]!==void 0?nt((b+rt[U]).slice(-10)+" 00000 n "):nt("0000000000 00000 n ")},mr=l.__private__.buildDocument=function(){Mt(),pt(it),ae.publish("buildDocument"),Js(),Xr(),Ao(),wo(),p!==null&&Us(),Zs(),ua();var b=at;return Qs(),Ys(),nt("startxref"),nt(""+b),nt("%%EOF"),pt(mt[q]),it.join("\n")},Ei=l.__private__.getBlob=function(b){return new Blob([It(b)],{type:"application/pdf"})},Oi=l.output=l.__private__.output=Yn(function(b,U){switch(typeof(U=U||{})=="string"?U={filename:U}:U.filename=U.filename||"generated.pdf",b){case void 0:return mr();case"save":l.save(U.filename);break;case"arraybuffer":return It(mr());case"blob":return Ei(mr());case"bloburi":case"bloburl":if(Jt.URL!==void 0&&typeof Jt.URL.createObjectURL=="function")return Jt.URL&&Jt.URL.createObjectURL(Ei(mr()))||void 0;_e.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var et="",ot=mr();try{et=Ss(ot)}catch(Ee){et=Ss(unescape(encodeURIComponent(ot)))}return"data:application/pdf;filename="+U.filename+";base64,"+et;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var ht="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",bt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';U.pdfObjectUrl&&(ht=U.pdfObjectUrl,bt="");var kt='