Files
smartmate/docs/design/HTML/mb-proto2/lazy-lib-dl-0ea48090ca0ce65e4d98.js
2026-02-01 22:09:59 +08:00

169 lines
503 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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<this.data.length;s++)n[s]=255&n[s]}e(7402).inherits(i,r),i.prototype.byteAt=function(n){return this.data[this.zero+n]},i.prototype.lastIndexOfSignature=function(n){for(var s=n.charCodeAt(0),f=n.charCodeAt(1),h=n.charCodeAt(2),g=n.charCodeAt(3),p=this.length-4;p>=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<u;D++)J[g[p+D]]++;for(_=C,O=15;O>=1&&J[O]===0;O--);if(_>O&&(_=O),O===0)return c[l++]=20971520,c[l++]=20971520,A.bits=1,0;for(k=1;k<O&&J[k]===0;k++);for(_<k&&(_=k),N=1,L=1;L<=15;L++)if(N<<=1,(N-=J[L])<0)return-1;if(N>0&&(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;D<u;D++)g[p+D]!==0&&(m[B[g[p+D]]++]=D);if(h===0?(E=tt=m,Q=19):h===1?(E=i,T-=257,tt=n,P-=257,Q=256):(E=s,tt=f,Q=-1),v=0,D=0,L=k,Y=l,R=_,V=0,y=-1,F=(j=1<<_)-1,h===1&&j>852||h===2&&j>592)return 1;for(;;){q=L-V,m[D]<Q?(z=0,H=m[D]):m[D]>Q?(z=tt[P+m[D]],H=E[T+m[D]]):(z=96,H=0),S=1<<L-V,k=x=1<<R;do c[Y+(v>>V)+(x-=S)]=q<<24|z<<16|H;while(x!==0);for(S=1<<L-1;v&S;)S>>=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+V<O&&!((N-=J[R+V])<=0);)R++,N<<=1;if(j+=1<<R,h===1&&j>852||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<g.length;u++)h.prototype[g[u]]=p;a.exports=h},2051(a,t){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,f){return Object.prototype.hasOwnProperty.call(s,f)}t.assign=function(s){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var h=f.shift();if(h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(var g in h)r(h,g)&&(s[g]=h[g])}}return s},t.shrinkBuf=function(s,f){return s.length===f?s:s.subarray?s.subarray(0,f):(s.length=f,s)};var i={arraySet:function(s,f,h,g,p){if(f.subarray&&s.subarray)s.set(f.subarray(h,h+g),p);else for(var u=0;u<g;u++)s[p+u]=f[h+u]},flattenChunks:function(s){var f,h,g,p,u,c;for(g=0,f=0,h=s.length;f<h;f++)g+=s[f].length;for(c=new Uint8Array(g),p=0,f=0,h=s.length;f<h;f++)u=s[f],c.set(u,p),p+=u.length;return c}},n={arraySet:function(s,f,h,g,p){for(var u=0;u<g;u++)s[p+u]=f[h+u]},flattenChunks:function(s){return[].concat.apply([],s)}};t.setTyped=function(s){s?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,n))},t.setTyped(e)},2057(a,t){t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},3040(a,t,e){for(var r=e(7402),i=e(1392),n=e(7807),s=e(7519),f=new Array(256),h=0;h<256;h++)f[h]=h>=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<D;C++)(64512&(m=c.charCodeAt(C)))==55296&&C+1<D&&(64512&(A=c.charCodeAt(C+1)))==56320&&(m=65536+(m-55296<<10)+(A-56320),C++),k+=m<128?1:m<2048?2:m<65536?3:4;for(l=i.uint8array?new Uint8Array(k):new Array(k),L=0,C=0;L<k;C++)(64512&(m=c.charCodeAt(C)))==55296&&C+1<D&&(64512&(A=c.charCodeAt(C+1)))==56320&&(m=65536+(m-55296<<10)+(A-56320),C++),m<128?l[L++]=m:m<2048?(l[L++]=192|m>>>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;l<L;)if((A=c[l++])<128)D[m++]=A;else if((C=f[A])>4)D[m++]=65533,l+=C-1;else{for(A&=C===2?31:C===3?15:7;C>1&&l<L;)A=A<<6|63&c[l++],C--;C>1?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<l;m++)A+=String.fromCharCode(255&c),c>>>=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.dirRecords.length;l++)this.push({data:this.dirRecords[l],meta:{percent:100}});var m=this.bytesWritten-c,A=function(C,L,D,k,O){var _=r.transformTo("string",O(k));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+h(C,2)+h(C,2)+h(L,4)+h(D,4)+h(_.length,2)+_}(this.dirRecords.length,m,c,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(c){this._sources.push(c);var l=this;return c.on("data",function(m){l.processChunk(m)}),c.on("end",function(){l.closedSource(l.previous.streamInfo),l._sources.length?l.prepareNextSource():l.end()}),c.on("error",function(m){l.error(m)}),this},u.prototype.resume=function(){if(!i.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0},u.prototype.error=function(c){var l=this._sources;if(!i.prototype.error.call(this,c))return!1;for(var m=0;m<l.length;m++)try{l[m].error(c)}catch(A){}return!0},u.prototype.lock=function(){i.prototype.lock.call(this);for(var c=this._sources,l=0;l<c.length;l++)c[l].lock()},a.exports=u},3293(a,t,e){var r=e(3536);function i(n){r.call(this,n)}e(7402).inherits(i,r),i.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},i.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},i.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},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},3464(a){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},3465(a,t,e){var r=e(113);function i(n){r.call(this,n)}e(7402).inherits(i,r),i.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var s=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,s},a.exports=i},3536(a,t,e){var r=e(7402);function i(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var s,f=0;for(this.checkOffset(n),s=this.index+n-1;s>=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<m.length;A++)m[A]=arguments[A+1];var C={callback:l,args:m};return n[i]=C,h(i),i++},g.clearImmediate=u}function u(l){delete n[l]}function c(l){if(s)setTimeout(c,0,l);else{var m=n[l];if(m){s=!0;try{(function(A){var C=A.callback,L=A.args;switch(L.length){case 0:C();break;case 1:C(L[0]);break;case 2:C(L[0],L[1]);break;case 3:C(L[0],L[1],L[2]);break;default:C.apply(void 0,L)}})(m)}finally{u(l),s=!1}}}}})(typeof self>"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<A;l++)(64512&(u=g.charCodeAt(l)))==55296&&l+1<A&&(64512&(c=g.charCodeAt(l+1)))==56320&&(u=65536+(u-55296<<10)+(c-56320),l++),C+=u<128?1:u<2048?2:u<65536?3:4;for(p=new r.Buf8(C),m=0,l=0;m<C;l++)(64512&(u=g.charCodeAt(l)))==55296&&l+1<A&&(64512&(c=g.charCodeAt(l+1)))==56320&&(u=65536+(u-55296<<10)+(c-56320),l++),u<128?p[m++]=u:u<2048?(p[m++]=192|u>>>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;c<p;c++)u+=String.fromCharCode(g[c]);return u}t.buf2binstring=function(g){return h(g,g.length)},t.binstring2buf=function(g){for(var p=new r.Buf8(g.length),u=0,c=p.length;u<c;u++)p[u]=g.charCodeAt(u);return p},t.buf2string=function(g,p){var u,c,l,m,A=p||g.length,C=new Array(2*A);for(c=0,u=0;u<A;)if((l=g[u++])<128)C[c++]=l;else if((m=s[l])>4)C[c++]=65533,u+=m-1;else{for(l&=m===2?31:m===3?15:7;m>1&&u<A;)l=l<<6|63&g[u++],m--;m>1?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<A.length;C++)m.push(g(A[C]));return i.Promise.all(m)}).then(function(l){for(var m=l.shift(),A=m.files,C=0;C<A.length;C++){var L=A[C],D=L.fileNameStr,k=r.resolve(L.fileNameStr);c.file(k,L.decompressed,{binary:!0,optimizedBinaryString:!0,date:L.date,dir:L.dir,comment:L.fileCommentStr.length?L.fileCommentStr:null,unixPermissions:L.unixPermissions,dosPermissions:L.dosPermissions,createFolders:u.createFolders}),L.dir||(c.file(k).unsafeOriginalName=D)}return m.zipComment.length&&(c.comment=m.zipComment),c})}},5582(a,t,e){var r=e(4725).Readable;e(7402).inherits(i,r);function i(n,s,f){r.call(this,s),this._helper=n;var h=this;n.on("data",function(g,p){h.push(g)||h._helper.pause(),f&&f(p)}).on("error",function(g){h.emit("error",g)}).on("end",function(){h.push(null)})}i.prototype._read=function(){this._helper.resume()},a.exports=i},5845(a,t,e){var r=e(7519),i=e(6032);function n(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e(7402).inherits(n,r),n.prototype.processChunk=function(s){this.streamInfo.crc32=i(s.data,this.streamInfo.crc32||0),this.push(s)},a.exports=n},6032(a,t,e){var r=e(7402),i=function(){for(var n,s=[],f=0;f<256;f++){n=f;for(var h=0;h<8;h++)n=1&n?3988292384^n>>>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<u;c++)f=f>>>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<u;c++)f=f>>>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<<r.lenbits)-1,k=(1<<r.distbits)-1;t:do{A<15&&(m+=v[i++]<<A,A+=8,m+=v[i++]<<A,A+=8),O=C[m&D];e:for(;;){if(m>>>=_=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+=8),R+=m&(1<<_)-1,m>>>=_,A-=_),A<15&&(m+=v[i++]<<A,A+=8,m+=v[i++]<<A,A+=8),O=L[m&k];;){if(m>>>=_=O>>>24,A-=_,16&(_=O>>>16&255)){if(V=65535&O,A<(_&=15)&&(m+=v[i++]<<A,(A+=8)<_&&(m+=v[i++]<<A,A+=8)),(V+=m&(1<<_)-1)>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-_,_<R){R-=_;do S[s++]=l[N++];while(--_);N=s-V,j=S}}else if(c<_){if(N+=p+c-_,(_-=c)<R){R-=_;do S[s++]=l[N++];while(--_);if(N=0,c<R){R-=_=c;do S[s++]=l[N++];while(--_);N=s-V,j=S}}}else if(N+=c-_,_<R){R-=_;do S[s++]=l[N++];while(--_);N=s-V,j=S}for(;R>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<n&&s<h);i-=R=A>>3,m&=(1<<(A-=R<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i<n?n-i+5:5-(i-n),t.avail_out=s<h?h-s+257:257-(s-h),r.hold=m,r.bits=A}},6392(a,t,e){var r=e(7402),i=e(7519);function n(s){i.call(this,"DataWorker");var f=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,s.then(function(h){f.dataIsReady=!0,f.data=h,f.max=h&&h.length||0,f.type=r.getTypeOf(h),f.isPaused||f._tickAndRepeat()},function(h){f.error(h)})}r.inherits(n,i),n.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return i.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0):!1},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!this.isPaused&&!this.isFinished&&(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var s=null,f=Math.min(this.max,this.index+16384);if(this.index>=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<f;h++)e=e>>>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<s.length;)L=C-A,D?(h=s[A++],g=A<C?s[A++]:0,p=A<C?s[A++]:0):(h=s.charCodeAt(A++),g=A<C?s.charCodeAt(A++):0,p=A<C?s.charCodeAt(A++):0),u=h>>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<s.length;)f=n.indexOf(s.charAt(l++))<<2|(p=n.indexOf(s.charAt(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;A<l.length;++A)m[A]=255&l.charCodeAt(A);return m}var g={stringifyByChunk:function(l,m,A){var C=[],L=0,D=l.length;if(D<=A)return String.fromCharCode.apply(null,l);for(;L<D;)m==="array"||m==="nodebuffer"?C.push(String.fromCharCode.apply(null,l.slice(L,Math.min(L+A,D)))):C.push(String.fromCharCode.apply(null,l.subarray(L,Math.min(L+A,D)))),L+=A;return C.join("")},stringifyByChar:function(l){for(var m="",A=0;A<l.length;A++)m+=String.fromCharCode(l[A]);return m},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(l){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch(l){return!1}}()}};function p(l){var m=65536,A=t.getTypeOf(l),C=!0;if(A==="uint8array"?C=g.applyCanBeUsed.uint8array:A==="nodebuffer"&&(C=g.applyCanBeUsed.nodebuffer),C)for(;m>1;)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<l.length;A++)m[A]=l[A];return m}var c={};c.string={string:f,array:function(l){return h(l,new Array(l.length))},arraybuffer:function(l){return c.string.uint8array(l).buffer},uint8array:function(l){return h(l,new Uint8Array(l.length))},nodebuffer:function(l){return h(l,n.allocBuffer(l.length))}},c.array={string:p,array:f,arraybuffer:function(l){return new Uint8Array(l).buffer},uint8array:function(l){return new Uint8Array(l)},nodebuffer:function(l){return n.newBufferFrom(l)}},c.arraybuffer={string:function(l){return p(new Uint8Array(l))},array:function(l){return u(new Uint8Array(l),new Array(l.byteLength))},arraybuffer:f,uint8array:function(l){return new Uint8Array(l)},nodebuffer:function(l){return n.newBufferFrom(new Uint8Array(l))}},c.uint8array={string:p,array:function(l){return u(l,new Array(l.length))},arraybuffer:function(l){return l.buffer},uint8array:f,nodebuffer:function(l){return n.newBufferFrom(l)}},c.nodebuffer={string:p,array:function(l){return u(l,new Array(l.length))},arraybuffer:function(l){return c.nodebuffer.uint8array(l).buffer},uint8array:function(l){return u(l,new Uint8Array(l.length))},nodebuffer:f},t.transformTo=function(l,m){if(m||(m=""),!l)return m;t.checkSupport(l);var A=t.getTypeOf(m);return c[A][l](m)},t.resolve=function(l){for(var m=l.split("/"),A=[],C=0;C<m.length;C++){var L=m[C];L==="."||L===""&&C!==0&&C!==m.length-1||(L===".."?A.pop():A.push(L))}return A.join("/")},t.getTypeOf=function(l){return typeof l=="string"?"string":Object.prototype.toString.call(l)==="[object Array]"?"array":r.nodebuffer&&n.isBuffer(l)?"nodebuffer":r.uint8array&&l instanceof Uint8Array?"uint8array":r.arraybuffer&&l instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(l){if(!r[l.toLowerCase()])throw new Error(l+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(l){var m,A,C="";for(A=0;A<(l||"").length;A++)C+="\\x"+((m=l.charCodeAt(A))<16?"0":"")+m.toString(16).toUpperCase();return C},t.delay=function(l,m,A){setImmediate(function(){l.apply(A||null,m||[])})},t.inherits=function(l,m){var A=function(){};A.prototype=m.prototype,l.prototype=new A},t.extend=function(){var l,m,A={};for(l=0;l<arguments.length;l++)for(m in arguments[l])Object.prototype.hasOwnProperty.call(arguments[l],m)&&A[m]===void 0&&(A[m]=arguments[l][m]);return A},t.prepareContent=function(l,m,A,C,L){return s.Promise.resolve(m).then(function(D){return r.blob&&(D instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(D))!==-1)&&typeof FileReader<"u"?new s.Promise(function(k,O){var _=new FileReader;_.onload=function(R){k(R.target.result)},_.onerror=function(R){O(R.target.error)},_.readAsArrayBuffer(D)}):D}).then(function(D){var k=t.getTypeOf(D);if(!k)return s.Promise.reject(new Error("Can't read the data of '"+l+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));k==="arraybuffer"?D=t.transformTo("uint8array",D):k==="string"&&(L?D=i.decode(D):A&&C!==!0&&(D=h(O=D,r.uint8array?new Uint8Array(O.length):new Array(O.length))));var O;return D})}},7519(a){function t(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}t.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,r){return this._listeners[e].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,r){if(this._listeners[e])for(var i=0;i<this._listeners[e].length;i++)this._listeners[e][i].call(this,r)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var r=this;return e.on("data",function(i){r.processChunk(i)}),e.on("end",function(){r.end()}),e.on("error",function(i){r.error(i)}),this},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,r){return this.extraStreamInfo[e]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+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.wbits,N.wnext=0,N.whave=0,N.window=new r.Buf8(N.wsize)),R>=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<N.wsize&&(N.whave+=V))),0}t.inflateReset=u,t.inflateReset2=c,t.inflateResetKeep=p,t.inflateInit=function(k){return l(k,15)},t.inflateInit2=l,t.inflate=function(k,O){var _,R,V,N,j,v,S,x,y,F,Y,E,T,Q,J=0,B,tt,P,q,z,H,K,rt,it=new r.Buf8(4),at,gt,mt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return-2;(_=k.state).mode===12&&(_.mode=13),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,F=v,Y=S,rt=0;t:for(;;)switch(_.mode){case 1:if(_.wrap===0){_.mode=13;break}for(;y<16;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}if(2&_.wrap&&x===35615){_.check=0,it[0]=255&x,it[1]=x>>>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<<K,k.adler=_.check=1,_.mode=512&x?10:12,x=0,y=0;break;case 2:for(;y<16;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}if(_.flags=x,(255&_.flags)!=8){k.msg="unknown compression method",_.mode=30;break}if(57344&_.flags){k.msg="unknown header flags set",_.mode=30;break}_.head&&(_.head.text=x>>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++]<<y,y+=8}_.head&&(_.head.time=x),512&_.flags&&(it[0]=255&x,it[1]=x>>>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++]<<y,y+=8}_.head&&(_.head.xflags=255&x,_.head.os=x>>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++]<<y,y+=8}_.length=x,_.head&&(_.head.extra_len=x),512&_.flags&&(it[0]=255&x,it[1]=x>>>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<v);if(512&_.flags&&(_.check=n(_.check,R,E,N)),v-=E,N+=E,K)break t}else _.head&&(_.head.name=null);_.length=0,_.mode=8;case 8:if(4096&_.flags){if(v===0)break t;E=0;do K=R[N+E++],_.head&&K&&_.length<65536&&(_.head.comment+=String.fromCharCode(K));while(K&&E<v);if(512&_.flags&&(_.check=n(_.check,R,E,N)),v-=E,N+=E,K)break t}else _.head&&(_.head.comment=null);_.mode=9;case 9:if(512&_.flags){for(;y<16;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}if(x!==(65535&_.check)){k.msg="header crc mismatch",_.mode=30;break}x=0,y=0}_.head&&(_.head.hcrc=_.flags>>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++]<<y,y+=8}k.adler=_.check=h(x),x=0,y=0,_.mode=11;case 11:if(_.havedict===0)return k.next_out=j,k.avail_out=S,k.next_in=N,k.avail_in=v,_.hold=x,_.bits=y,2;k.adler=_.check=1,_.mode=12;case 12:if(O===5||O===6)break t;case 13:if(_.last){x>>>=7&y,y-=7&y,_.mode=27;break}for(;y<3;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}switch(_.last=1&x,y-=1,3&(x>>>=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++]<<y,y+=8}if((65535&x)!=(x>>>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++]<<y,y+=8}if(_.nlen=257+(31&x),x>>>=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++]<<y,y+=8}_.lens[mt[_.have++]]=7&x,x>>>=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++]<<y,y+=8}if(P<16)x>>>=B,y-=B,_.lens[_.have++]=P;else{if(P===16){for(gt=B+2;y<gt;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}if(x>>>=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<gt;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}y-=B,K=0,E=3+(7&(x>>>=B)),x>>>=3,y-=3}else{for(gt=B+7;y<gt;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}y-=B,K=0,E=11+(127&(x>>>=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++]<<y,y+=8}if(tt&&!(240&tt)){for(q=B,z=tt,H=P;tt=(J=_.lencode[H+((x&(1<<q+z)-1)>>q)])>>>16&255,P=65535&J,!(q+(B=J>>>24)<=y);){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}x>>>=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<gt;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}_.length+=x&(1<<_.extra)-1,x>>>=_.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++]<<y,y+=8}if(!(240&tt)){for(q=B,z=tt,H=P;tt=(J=_.distcode[H+((x&(1<<q+z)-1)>>q)])>>>16&255,P=65535&J,!(q+(B=J>>>24)<=y);){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}x>>>=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<gt;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}_.offset+=x&(1<<_.extra)-1,x>>>=_.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++]<<y,y+=8}if(Y-=S,k.total_out+=Y,_.total+=Y,Y&&(k.adler=_.check=_.flags?n(_.check,V,Y,j-Y):i(_.check,V,Y,j-Y)),Y=S,(_.flags?x:h(x))!==_.check){k.msg="incorrect data check",_.mode=30;break}x=0,y=0}_.mode=28;case 28:if(_.wrap&&_.flags){for(;y<32;){if(v===0)break t;v--,x+=R[N++]<<y,y+=8}if(x!==(4294967295&_.total)){k.msg="incorrect length check",_.mode=30;break}x=0,y=0}_.mode=29;case 29:rt=1;break t;case 30:rt=-3;break t;case 31:return-4;default:return-2}return k.next_out=j,k.avail_out=S,k.next_in=N,k.avail_in=v,_.hold=x,_.bits=y,(_.wsize||Y!==k.avail_out&&_.mode<30&&(_.mode<27||O!==4))&&D(k,k.output,k.next_out,Y-k.avail_out)?(_.mode=31,-4):(F-=k.avail_in,Y-=k.avail_out,k.total_in+=F,k.total_out+=Y,_.total+=Y,_.wrap&&Y&&(k.adler=_.check=_.flags?n(_.check,V,Y,k.next_out-Y):i(_.check,V,Y,k.next_out-Y)),k.data_type=_.bits+(_.last?64:0)+(_.mode===12?128:0)+(_.mode===20||_.mode===15?256:0),(F===0&&Y===0||O===4)&&rt===0&&(rt=-5),rt)},t.inflateEnd=function(k){if(!k||!k.state)return-2;var O=k.state;return O.window&&(O.window=null),k.state=null,0},t.inflateGetHeader=function(k,O){var _;return!k||!k.state||!(2&(_=k.state).wrap)?-2:(_.head=O,O.done=!1,0)},t.inflateSetDictionary=function(k,O){var _=O.length,R;return!k||!k.state||(R=k.state).wrap!==0&&R.mode!==11?-2:R.mode===11&&i(1,O,_,0)!==R.check?-3:D(k,O,_,_)?(R.mode=31,-4):(R.havedict=1,0)},t.inflateInfo="pako inflate (from Nodeca project)"},7964(a,t,e){var r=e(7519);t.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},t.DEFLATE=e(3093)},8043(a,t,e){var r=e(2051);function i(B){for(var tt=B.length;--tt>=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<<B.bi_valid&65535,_(B,B.bi_buf),B.bi_buf=tt>>16-B.bi_valid,B.bi_valid+=P-16):(B.bi_buf|=tt<<B.bi_valid&65535,B.bi_valid+=P)}function V(B,tt,P){R(B,P[2*tt],P[2*tt+1])}function N(B,tt){var P=0;do P|=1&B,B>>>=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]<B[H]||B[z]===B[H]&&q[tt]<=q[P]}function y(B,tt,P){for(var q=B.heap[P],z=P<<1;z<=B.heap_len&&(z<B.heap_len&&x(tt,B.heap[z+1],B.heap[z],B.depth)&&z++,!x(tt,q,B.heap[z],B.depth));)B.heap[P]=B.heap[z],P=z,z<<=1;B.heap[P]=q}function F(B,tt,P){var q,z,H=0,K,rt;if(B.last_lit!==0)do q=B.pending_buf[B.d_buf+2*H]<<8|B.pending_buf[B.d_buf+2*H+1],z=B.pending_buf[B.l_buf+H],H++,q===0?V(B,z,tt):(V(B,(K=c[z])+256+1,tt),(rt=n[K])!==0&&R(B,z-=l[K],rt),V(B,K=O(--q),P),(rt=s[K])!==0&&R(B,q-=m[K],rt));while(H<B.last_lit);V(B,256,tt)}function Y(B,tt){var P=tt.dyn_tree,q=tt.stat_desc.static_tree,z=tt.stat_desc.has_stree,H=tt.stat_desc.elems,K,rt,it=-1,at;for(B.heap_len=0,B.heap_max=573,K=0;K<H;K++)P[2*K]!==0?(B.heap[++B.heap_len]=it=K,B.depth[K]=0):P[2*K+1]=0;for(;B.heap_len<2;)P[2*(at=B.heap[++B.heap_len]=it<2?++it:0)]=1,B.depth[at]=0,B.opt_len--,z&&(B.static_len-=q[2*at+1]);for(tt.max_code=it,K=B.heap_len>>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<it&&H===K||(rt<at?B.bl_tree[2*H]+=rt:H!==0?(H!==z&&B.bl_tree[2*H]++,B.bl_tree[32]++):rt<=10?B.bl_tree[34]++:B.bl_tree[36]++,rt=0,z=H,K===0?(it=138,at=3):H===K?(it=6,at=3):(it=7,at=4))}function T(B,tt,P){var q,z=-1,H,K=tt[1],rt=0,it=7,at=4;for(K===0&&(it=138,at=3),q=0;q<=P;q++)if(H=K,K=tt[2*(q+1)+1],!(++rt<it&&H===K)){if(rt<at)do V(B,H,B.bl_tree);while(--rt!==0);else H!==0?(H!==z&&(V(B,H,B.bl_tree),rt--),V(B,16,B.bl_tree),R(B,rt-3,2)):rt<=10?(V(B,17,B.bl_tree),R(B,rt-3,3)):(V(B,18,B.bl_tree),R(B,rt-11,7));rt=0,z=H,K===0?(it=138,at=3):H===K?(it=6,at=3):(it=7,at=4)}}var Q=!1;function J(B,tt,P,q){R(B,0+(q?1:0),3),function(z,H,K){S(z),_(z,K),_(z,~K),r.arraySet(z.pending_buf,z.window,H,K,z.pending),z.pending+=K}(B,tt,P)}t._tr_init=function(B){Q||(function(){var tt,P,q,z,H,K=new Array(16);for(q=0,z=0;z<28;z++)for(l[z]=q,tt=0;tt<1<<n[z];tt++)c[q++]=z;for(c[q-1]=z,H=0,z=0;z<16;z++)for(m[z]=H,tt=0;tt<1<<s[z];tt++)u[H++]=z;for(H>>=7;z<30;z++)for(m[z]=H<<7,tt=0;tt<1<<s[z]-7;tt++)u[256+H++]=z;for(P=0;P<=15;P++)K[P]=0;for(tt=0;tt<=143;)g[2*tt+1]=8,tt++,K[8]++;for(;tt<=255;)g[2*tt+1]=9,tt++,K[9]++;for(;tt<=279;)g[2*tt+1]=7,tt++,K[7]++;for(;tt<=287;)g[2*tt+1]=8,tt++,K[8]++;for(j(g,287,K),tt=0;tt<30;tt++)p[2*tt+1]=5,p[2*tt]=N(tt,5);C=new A(g,n,257,286,15),L=new A(p,s,0,30,15),D=new A(new Array(0),f,0,19,7)}(),Q=!0),B.l_desc=new k(B.dyn_ltree,C),B.d_desc=new k(B.dyn_dtree,L),B.bl_desc=new k(B.bl_tree,D),B.bi_buf=0,B.bi_valid=0,v(B)},t._tr_stored_block=J,t._tr_flush_block=function(B,tt,P,q){var z,H,K=0;B.level>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<gt;mt++)R(rt,rt.bl_tree[2*h[mt]+1],3);T(rt,rt.dyn_ltree,it-1),T(rt,rt.dyn_dtree,at-1)}(B,B.l_desc.max_code+1,B.d_desc.max_code+1,K+1),F(B,B.dyn_ltree,B.dyn_dtree)),v(B),q&&S(B)},t._tr_tally=function(B,tt,P){return B.pending_buf[B.d_buf+2*B.last_lit]=tt>>>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]&&y<P);if(Y=258-(P-y),y=P-258,Y>E){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<<v.hash_shift^v.window[E+1])&v.hash_mask;v.insert&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[E+3-1])&v.hash_mask,v.prev[E&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=E,E++,v.insert--,!(v.lookahead+v.insert<3)););}while(v.lookahead<262&&v.strm.avail_in!==0)}function D(v,S){for(var x,y;;){if(v.lookahead<262){if(L(v),v.lookahead<262&&S===0)return 1;if(v.lookahead===0)break}if(x=0,v.lookahead>=3&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,x=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart),x!==0&&v.strstart-x<=v.w_size-262&&(v.match_length=C(v,x)),v.match_length>=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<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,x=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart;while(--v.match_length!==0);v.strstart++}else v.strstart+=v.match_length,v.match_length=0,v.ins_h=v.window[v.strstart],v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+1])&v.hash_mask;else y=i._tr_tally(v,0,v.window[v.strstart]),v.lookahead--,v.strstart++;if(y&&(c(v,!1),v.strm.avail_out===0))return 1}return v.insert=v.strstart<2?v.strstart:2,S===4?(c(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(c(v,!1),v.strm.avail_out===0)?1:2}function k(v,S){for(var x,y,F;;){if(v.lookahead<262){if(L(v),v.lookahead<262&&S===0)return 1;if(v.lookahead===0)break}if(x=0,v.lookahead>=3&&(v.ins_h=(v.ins_h<<v.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,x=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart),v.prev_length=v.match_length,v.prev_match=v.match_start,v.match_length=2,x!==0&&v.prev_length<v.max_lazy_match&&v.strstart-x<=v.w_size-262&&(v.match_length=C(v,x),v.match_length<=5&&(v.strategy===1||v.match_length===3&&v.strstart-v.match_start>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.hash_shift^v.window[v.strstart+3-1])&v.hash_mask,x=v.prev[v.strstart&v.w_mask]=v.head[v.ins_h],v.head[v.ins_h]=v.strstart);while(--v.prev_length!==0);if(v.match_available=0,v.match_length=2,v.strstart++,y&&(c(v,!1),v.strm.avail_out===0))return 1}else if(v.match_available){if((y=i._tr_tally(v,0,v.window[v.strstart-1]))&&c(v,!1),v.strstart++,v.lookahead--,v.strm.avail_out===0)return 1}else v.match_available=1,v.strstart++,v.lookahead--}return v.match_available&&(y=i._tr_tally(v,0,v.window[v.strstart-1]),v.match_available=0),v.insert=v.strstart<2?v.strstart:2,S===4?(c(v,!0),v.strm.avail_out===0?3:4):v.last_lit&&(c(v,!1),v.strm.avail_out===0)?1:2}function O(v,S,x,y,F){this.good_length=v,this.max_lazy=S,this.nice_length=x,this.max_chain=y,this.func=F}var _;_=[new O(0,0,0,0,function(v,S){var x=65535;for(x>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<<T.w_bits,T.w_mask=T.w_size-1,T.hash_bits=F+7,T.hash_size=1<<T.hash_bits,T.hash_mask=T.hash_size-1,T.hash_shift=~~((T.hash_bits+3-1)/3),T.window=new r.Buf8(2*T.w_size),T.head=new r.Buf16(T.hash_size),T.prev=new r.Buf16(T.w_size),T.lit_bufsize=1<<F+6,T.pending_buf_size=4*T.lit_bufsize,T.pending_buf=new r.Buf8(T.pending_buf_size),T.d_buf=1*T.lit_bufsize,T.l_buf=3*T.lit_bufsize,T.level=S,T.strategy=Y,T.method=x,N(v)}t.deflateInit=function(v,S){return j(v,S,8,15,8,0)},t.deflateInit2=j,t.deflateReset=N,t.deflateResetKeep=V,t.deflateSetHeader=function(v,S){return!v||!v.state||v.state.wrap!==2?-2:(v.state.gzhead=S,0)},t.deflate=function(v,S){var x,y,F,Y;if(!v||!v.state||S>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.gzindex<y.gzhead.name.length?255&y.gzhead.name.charCodeAt(y.gzindex++):0,l(y,Y)}while(Y!==0);y.gzhead.hcrc&&y.pending>F&&(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.gzindex<y.gzhead.comment.length?255&y.gzhead.comment.charCodeAt(y.gzindex++):0,l(y,Y)}while(Y!==0);y.gzhead.hcrc&&y.pending>F&&(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]&&P<q);Q.match_length=258-(q-P),Q.match_length>Q.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<<y.hash_shift^y.window[F+3-1])&y.hash_mask,y.prev[F&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=F,F++;while(--Y);y.strstart=F,y.lookahead=2,L(y)}return y.strstart+=y.lookahead,y.block_start=y.strstart,y.insert=y.lookahead,y.lookahead=0,y.match_length=y.prev_length=2,y.match_available=0,v.next_in=Q,v.input=J,v.avail_in=T,y.wrap=E,0},t.deflateInfo="pako deflate (from Nodeca project)"},9216(a,t,e){var r=e(3040),i=e(7402),n=e(7519),s=e(9986),f=e(2057),h=e(81),g=e(2031),p=e(1439),u=e(7807),c=e(7687),l=function(k,O,_){var R,V=i.getTypeOf(O),N=i.extend(_||{},f);N.date=N.date||new Date,N.compression!==null&&(N.compression=N.compression.toUpperCase()),typeof N.unixPermissions=="string"&&(N.unixPermissions=parseInt(N.unixPermissions,8)),N.unixPermissions&&16384&N.unixPermissions&&(N.dir=!0),N.dosPermissions&&16&N.dosPermissions&&(N.dir=!0),N.dir&&(k=A(k)),N.createFolders&&(R=m(k))&&C.call(this,R,!0);var j=V==="string"&&N.binary===!1&&N.base64===!1;_&&_.binary!==void 0||(N.binary=!j),(O instanceof h&&O.uncompressedSize===0||N.dir||!O||O.length===0)&&(N.base64=!1,N.binary=!0,O="",N.compression="STORE",V="string");var v;v=O instanceof h||O instanceof n?O:u.isNode&&u.isStream(O)?new c(k,O):i.prepareContent(k,O,N.binary,N.optimizedBinaryString,N.base64);var S=new g(k,v,N);this.files[k]=S},m=function(k){k.slice(-1)==="/"&&(k=k.substring(0,k.length-1));var O=k.lastIndexOf("/");return O>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+4<A;)c=u.readInt(2),l=u.readInt(2),m=u.readData(l),this.extraFields[c]={id:c,length:l,value:m};u.setIndex(A)},handleUTF8:function(){var u=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f.utf8decode(this.fileName),this.fileCommentStr=f.utf8decode(this.fileComment);else{var c=this.findExtraFieldUnicodePath();if(c!==null)this.fileNameStr=c;else{var l=i.transformTo(u,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(l)}var m=this.findExtraFieldUnicodeComment();if(m!==null)this.fileCommentStr=m;else{var A=i.transformTo(u,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(A)}}},findExtraFieldUnicodePath:function(){var u=this.extraFields[28789];if(u){var c=r(u.value);return c.readInt(1)!==1||s(this.fileName)!==c.readInt(4)?null:f.utf8decode(c.readData(u.length-5))}return null},findExtraFieldUnicodeComment:function(){var u=this.extraFields[25461];if(u){var c=r(u.value);return c.readInt(1)!==1||s(this.fileComment)!==c.readInt(4)?null:f.utf8decode(c.readData(u.length-5))}return null}},a.exports=p},9490(a,t,e){var r=e(9433),i=e(7402),n=e(4329),s=e(9470),f=e(1392);function h(g){this.files=[],this.loadOptions=g}h.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var p=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(p)+", expected "+i.pretty(g)+")")}},isSignature:function(g,p){var u=this.reader.index;this.reader.setIndex(g);var c=this.reader.readString(4)===p;return this.reader.setIndex(u),c},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var g=this.reader.readData(this.zipCommentLength),p=f.uint8array?"uint8array":"array",u=i.transformTo(p,g);this.zipComment=this.loadOptions.decodeFileName(u)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var g,p,u,c=this.zip64EndOfCentralSize-44;0<c;)g=this.reader.readInt(2),p=this.reader.readInt(4),u=this.reader.readData(p),this.zip64ExtensibleData[g]={id:g,length:p,value:u}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,p;for(g=0;g<this.files.length;g++)p=this.files[g],this.reader.setIndex(p.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),p.readLocalPart(this.reader),p.handleUTF8(),p.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(g=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var g=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(g);var p=g;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var u=this.centralDirOffset+this.centralDirSize;this.zip64&&(u+=20,u+=12+this.zip64EndOfCentralSize);var c=p-u;if(c>0)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<R.length;V++)v+=R[V].length;switch(_){case"string":return R.join("");case"array":return Array.prototype.concat.apply([],R);case"uint8array":for(j=new Uint8Array(v),V=0;V<R.length;V++)j.set(R[V],N),N+=R[V].length;return j;case"nodebuffer":return Buffer.concat(R);default:throw new Error("concat : unsupported type '"+_+"'")}}(L,C),k);m(O)}catch(_){A(_)}C=[]}).resume()});var c,l},on:function(u,c){var l=this;return u==="data"?this._worker.on(u,function(m){c.call(l,m.data,m.meta)}):this._worker.on(u,function(){r.delay(c,arguments,l)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(u){if(r.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:this._outputType!=="nodebuffer"},u)}},a.exports=p}},kl={};function ss(a){var t=kl[a];if(t!==void 0)return t.exports;var e=kl[a]={exports:{}};return mu[a].call(e.exports,e,e.exports,ss),e.exports}ss.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}();var ja=ss(1631),Ae=Rn(91834),Pl={},bu=function(a,t,e,r,i){var n=new Worker(Pl[t]||(Pl[t]=URL.createObjectURL(new Blob([a+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return n.onmessage=function(s){var f=s.data,h=f.$e$;if(h){var g=new Error(h[0]);g.code=h[1],g.stack=h[2],i(g,null)}else i(null,f)},n.postMessage(e,r),n},pe=Uint8Array,fn=Uint16Array,$i=Int32Array,li=new pe([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,0,0,0]),fi=new pe([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,0,0]),ta=new pe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Il=function(a,t){for(var e=new fn(31),r=0;r<31;++r)e[r]=t+=1<<a[r-1];for(var i=new $i(e[30]),r=1;r<30;++r)for(var n=e[r];n<e[r+1];++n)i[n]=n-e[r]<<5|r;return{b:e,r:i}},Cl=Il(li,2),ls=Cl.b,Ra=Cl.r;ls[28]=258,Ra[258]=28;for(var Fl=Il(fi,0),El=Fl.b,fs=Fl.r,ea=new fn(32768),Ne=0;Ne<32768;++Ne){var Nr=(Ne&43690)>>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<r;++i)a[i]&&++n[a[i]-1];var s=new fn(t);for(i=1;i<t;++i)s[i]=s[i-1]+n[i-1]<<1;var f;if(e){f=new fn(1<<t);var h=15-t;for(i=0;i<r;++i)if(a[i])for(var g=i<<4|a[i],p=t-a[i],u=s[a[i]-1]++<<p,c=u|(1<<p)-1;u<=c;++u)f[ea[u]>>h]=g}else for(f=new fn(r),i=0;i<r;++i)a[i]&&(f[i]=ea[s[a[i]-1]++]>>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;e<a.length;++e)a[e]>t&&(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<V;++S)v[ta[S]]=Pn(a,u+S*3,7);u+=V*3;for(var x=za(v),y=(1<<x)-1,F=kn(v,x,1),S=0;S<N;){var Y=F[Pn(a,u,y)];u+=Y&15;var k=Y>>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<<A)-1,tt=(1<<C)-1,P=u;;P=u){var E=l[Ma(a,u)&B],q=E>>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<<H)-1)+ls[S],u+=H}var K=m[Ma(a,u)&tt],rt=K>>4;K||le(3),u+=K&15;var J=El[rt];if(rt>3){var H=fi[rt];J+=Ma(a,u)&(1<<H)-1,u+=H}if(u>L){h&&le(0);break}f&&g(c+131072);var it=c+z;if(c<J){var at=n-J,gt=Math.min(J,it);for(at+c<0&&le(3);c<gt;++c)e[c]=r[at+c]}for(;c<it;++c)e[c]=e[c-J]}}t.l=l,t.p=P,t.b=c,t.f=p,l&&(p=1,t.m=A,t.d=m,t.n=C)}while(!p);return c!=e.length&&s?kr(e,0,c):e.subarray(0,c)},$n=function(a,t,e){e<<=t&7;var r=t/8|0;a[r]|=e,a[r+1]|=e>>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;r<a.length;++r)a[r]&&e.push({s:r,f:a[r]});var i=e.length,n=e.slice();if(!i)return{t:ds,l:0};if(i==1){var s=new pe(e[0].s+1);return s[e[0].s]=1,{t:s,l:1}}e.sort(function(_,R){return _.f-R.f}),e.push({s:-1,f:25001});var f=e[0],h=e[1],g=0,p=1,u=2;for(e[0]={s:-1,f:f.f+h.f,l:f,r:h};p!=i-1;)f=e[e[g].f<e[u].f?g++:u++],h=e[g!=p&&e[g].f<e[u].f?g++:u++],e[p++]={s:-1,f:f.f+h.f,l:f,r:h};for(var c=n[0].s,r=1;r<i;++r)n[r].s>c&&(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<<C;for(n.sort(function(R,V){return l[V.s]-l[R.s]||R.f-V.f});r<i;++r){var D=n[r].s;if(l[D]>t)A+=L-(1<<m-l[D]),l[D]=t;else break}for(A>>=C;A>0;){var k=n[r].s;l[k]<t?A-=1<<t-l[k]++-1:++r}for(;r>=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<t.length;++r)e+=a[r]*t[r];return e},hs=function(a,t,e){var r=e.length,i=na(t+2);a[i]=r&255,a[i+1]=r>>8,a[i+2]=a[i]^255,a[i+3]=a[i+1]^255;for(var n=0;n<r;++n)a[i+n+4]=e[n];return(i+4+r)*8},cs=function(a,t,e,r,i,n,s,f,h,g,p){$n(t,p++,e),++i[256];for(var u=qa(i,15),c=u.t,l=u.l,m=qa(n,15),A=m.t,C=m.l,L=us(c),D=L.c,k=L.n,O=us(A),_=O.c,R=O.n,V=new fn(19),N=0;N<D.length;++N)++V[D[N]&31];for(var N=0;N<_.length;++N)++V[_[N]&31];for(var j=qa(V,7),v=j.t,S=j.l,x=19;x>4&&!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+(Y<F)),p+=2,Y<F){E=kn(c,l,0),T=c,Q=kn(A,C,0),J=A;var B=kn(v,S,0);$n(t,p,k-257),$n(t,p+5,R-1),$n(t,p+10,x-4),p+=14;for(var N=0;N<x;++N)$n(t,p+3*N,v[ta[N]]);p+=3*x;for(var tt=[D,_],P=0;P<2;++P)for(var q=tt[P],N=0;N<q.length;++N){var z=q[N]&31;$n(t,p,B[z]),p+=v[z],z>15&&($n(t,p,q[N]>>5&127),p+=q[N]>>12)}}else E=Ol,T=gr,Q=Dl,J=ui;for(var N=0;N<f;++N){var H=r[N];if(H>255){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<<e)-1,A=n.p||new fn(32768),C=n.h||new fn(m+1),L=Math.ceil(e/3),D=2*L,k=function(Mt){return(a[Mt]^a[Mt+1]<<L^a[Mt+2]<<D)&m},O=new $i(25e3),_=new fn(288),R=new fn(32),V=0,N=0,j=n.i||0,v=0,S=n.w||0,x=0;j+2<s;++j){var y=k(j),F=j&32767,Y=C[y];if(A[F]=Y,C[y]=F,S<=j){var E=s-j;if((V>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;H<z&&a[j+H]==a[j+H-tt];++H);if(H>Q){if(Q=H,J=tt,H>P)break;for(var K=Math.min(tt,H-2),rt=0,T=0;T<K;++T){var it=j-tt+T&32767,at=A[it],gt=it-at&32767;gt>rt&&(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;++j)O[v++]=a[j],++_[a[j]];p=cs(a,h,g,O,_,R,N,v,x,j-x,p),g||(n.r=p&7|h[p/8|0]<<3,p-=7,n.h=C,n.p=A,n.i=j,n.w=S)}else{for(var j=n.w||0;j<s+g;j+=65535){var Ct=j+65535;Ct>=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<t.length;++r)e=Ml[e&255^t[r]]^e>>>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<f;++s)i+=r+=e[s];r=(r&65535)+15*(r>>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<r.length;++s){var f=r[s],h=n[s];if(typeof f=="function"){t+=";"+h+"=";var g=f.toString();if(f.prototype)if(g.indexOf("[native code]")!=-1){var p=g.indexOf(" ",8)+1;t+=g.slice(p,g.indexOf("(",p))}else{t+=g;for(var u in f.prototype)t+=";"+h+".prototype."+u+"="+f.prototype[u].toString()}else t+=g}else e[h]=f}return t},Za=null,yu=function(a){var t=[];for(var e in a)a[e].buffer&&t.push((a[e]=new a[e].constructor(a[e])).buffer);return t},ql=function(a,t,e,r){if(!Za[e]){for(var i="",n={},s=a.length-1,f=0;f<s;++f)i=Ul(a[f],i,n);Za[e]={c:Ul(a[s],i,n),e:n}}var h=Va({},Za[e].e);return bu(Za[e].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",e,h,yu(h),r)},gs=function(){return[pe,fn,$i,li,fi,ta,ls,El,Bl,Tl,ea,jl,kn,za,Pn,Ma,na,kr,le,Ua,ra,Pr,ms]},vs=function(){return[pe,fn,$i,li,fi,ta,Ra,fs,Ol,gr,Dl,ui,ea,Rl,ds,kn,$n,hi,qa,Ha,us,ci,hs,cs,na,kr,zl,Ga,Ya,Pr]},wu=function(){return[Hl,Vl,Pe,Wa,Ml]},Au=function(){return[Wl,Gl]},_u=function(){return[Zl,Pe,ps]},xu=function(){return[Yl]},Pr=function(a){return postMessage(a,[a.buffer])},ms=function(a){return a&&{out:a.size&&new pe(a.size),dictionary:a.dictionary}},di=function(a,t,e,r,i,n){var s=ql(e,r,i,function(f,h){s.terminate(),n(f,h)});return s.postMessage([a,t],t.consume?[a.buffer]:[]),function(){s.terminate()}},ac=function(a){return a.ondata=function(t,e){return postMessage([t,e],[t.buffer])},function(t){t.data.length?(a.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):a.flush()}},oc=function(a,t,e,r,i,n,s){var f,h=ql(a,r,i,function(g,p){g?(h.terminate(),t.ondata.call(t,g)):Array.isArray(p)?p.length==1?(t.queuedSize-=p[0],t.ondrain&&t.ondrain(p[0])):(p[1]&&h.terminate(),t.ondata.call(t,g,p[0],p[1])):s(p)});h.postMessage(e),t.queuedSize=0,t.push=function(g,p){t.ondata||le(5),f&&t.ondata(le(4,0,1),null,!!p),t.queuedSize+=g.length,h.postMessage([g,f=p],[g.buffer])},t.terminate=function(){h.terminate()},n&&(t.flush=function(){h.postMessage([])})},zn=function(a,t){return a[t]|a[t+1]<<8},Ke=function(a,t){return(a[t]|a[t+1]<<8|a[t+2]<<16|a[t+3]<<24)>>>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<a.length;++r)e[r]=a.charCodeAt(r);return e}if(Xl)return Xl.encode(a);for(var i=a.length,n=new pe(a.length+(a.length>>1)),s=0,f=function(p){n[s++]=p},r=0;r<i;++r){if(s+5>n.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;r<a.length;r+=16384)e+=String.fromCharCode.apply(null,a.subarray(r,r+16384));return e}else{if(As)return As.decode(a);var i=Pu(a),n=i.s,e=i.r;return e.length&&le(8),n}}var Pc=function(a){return a==1?3:a<6?2:a==9?1:0},Kl=function(a,t){return t+30+zn(a,t+26)+zn(a,t+28)},$l=function(a,t,e){var r=zn(a,t+28),i=Iu(a.subarray(t+46,t+46+r),!(zn(a,t+8)&2048)),n=t+46+r,s=Ke(a,t+20),f=e&&s==4294967295?Cu(a,n):[s,Ke(a,t+24),Ke(a,t+42)],h=f[0],g=f[1],p=f[2];return[zn(a,t+10),h,g,i,n+zn(a,t+30)+zn(a,t+32),p]},Cu=function(a,t){for(;zn(a,t)!=1;t+=4+zn(a,t+2));return[bs(a,t+12),bs(a,t+4),bs(a,t+20)]},aa=function(a){var t=0;if(a)for(var e in a){var r=a[e].length;r>65535&&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;C<p.length;++C)p[C]()},c=function(C,L){Ka(function(){e(C,L)})};Ka(function(){c=e});var l=function(){var C=new pe(f+22),L=s,D=f-s;f=0;for(var k=0;k<h;++k){var O=g[k];try{var _=O.c.length;Xa(C,f,O,O.f,O.u,_);var R=30+O.f.length+aa(O.extra),V=f+R;C.set(O.c,V),Xa(C,s,O,O.f,O.u,_,f,O.m),s+=16+R+(O.m?O.m.length:0),f=V+_}catch(N){return c(N,null)}}tf(C,s,g.length,D,L),c(null,C)};n||l();for(var m=function(C){var L=i[C],D=r[L],k=D[0],O=D[1],_=Wa(),R=k.length;_.p(k);var V=Qa(L),N=V.length,j=O.comment,v=j&&Qa(j),S=v&&v.length,x=aa(O.extra),y=O.level==0?0:8,F=function(Y,E){if(Y)u(),c(Y,null);else{var T=E.length;g[C]=Va(O,{size:R,crc:_.d(),c:E,f:V,m:v,u:N!=L.length||v&&j.length!=S,compression:y}),s+=30+N+x+T,f+=76+2*(N+x)+(S||0)+T,--n||l()}};if(N>65535&&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;A<h;++A)m(A);return u}function Bc(a,t){t||(t={});var e={},r=[];ws(a,"",e,t);var i=0,n=0;for(var s in e){var f=e[s],h=f[0],g=f[1],p=g.level==0?0:8,u=Qa(s),c=u.length,l=g.comment,m=l&&Qa(l),A=m&&m.length,C=aa(g.extra);c>65535&&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;V<r.length;++V){var u=r[V];Xa(O,u.o,u,u.f,u.u,u.c.length);var N=30+u.f.length+aa(u.extra);O.set(u.c,u.o+N),Xa(O,i,u,u.f,u.u,u.c.length,u.o,u.m),i+=16+N+(u.m?u.m.length:0)}return tf(O,i,r.length,R,_),O}var Dc=null,Tc=null,jc=null,Rc=null,Ka=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(a){a()};function zc(a,t,e){e||(e=t,t={}),typeof e!="function"&&le(7);var r=[],i=function(){for(var C=0;C<r.length;++C)r[C]()},n={},s=function(C,L){Ka(function(){e(C,L)})};Ka(function(){s=e});for(var f=a.length-22;Ke(a,f)!=101010256;--f)if(!f||a.length-f>65558)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;A<g;++A)m(A)}else s(null,{});return i}function Mc(a,t){for(var e={},r=a.length-22;Ke(a,r)!=101010256;--r)(!r||a.length-r>65558)&&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<i;++g){var p=$l(a,n,s),u=p[0],c=p[1],l=p[2],m=p[3],A=p[4],C=p[5],L=Kl(a,C);n=A,(!h||h({name:m,size:c,originalSize:l,compression:u}))&&(u?u==8?e[m]=ra(a.subarray(L,L+c),{out:new pe(l)}):le(14,"unknown compression type "+u):e[m]=kr(a,L,L+c))}return e}/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 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 <sstoo@gmail.com>
* {@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;r<e.length;r++){var i=e[r].re,n=e[r].process,s=i.exec(a);s&&(t=n(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?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<<i|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<a.length;t++)i[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<a.length;t++)a[t]=Eu(a[t]);return a.join("")}(rf("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ir(a,t){if(Bu){var e=(65535&a)+(65535&t);return(a>>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<u;h++)l=(l+(p=f[c=(c+1)%256]))%256,f[c]=f[l],f[l]=p,s=f[(f[c]+f[l])%256],m+=String.fromCharCode(t.charCodeAt(h)^s);return m}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var of={print:4,modify:8,copy:16,"annot-forms":32};function pi(a,t,e,r){this.v=1,this.r=2;var i=192;a.forEach(function(f){if(of.perm!==void 0)throw new Error("Invalid permission: "+f);i+=of[f]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\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;r<e;r++){var i=a.charCodeAt(r);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?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)<U*(et/=Ht)&&(b=-b,U=-U,jt=-jt,kt=-kt),{scale:new Yt(kt,0,0,Ht,0,0),translate:new Yt(1,0,0,1,ht,bt),rotate:new Yt(b,U,-U,b,0,0),skew:new Yt(1,0,jt,1,0,0)}},Yt.prototype.toString=function(b){return this.join(" ")},Yt.prototype.inversed=function(){var b=this.sx,U=this.shy,et=this.shx,ot=this.sy,ht=this.tx,bt=this.ty,kt=1/(b*ot-U*et),jt=ot*kt,Ht=-U*kt,ee=-et*kt,te=b*kt;return new Yt(jt,Ht,ee,te,-jt*ht-ee*bt,-Ht*ht-te*bt)},Yt.prototype.applyToPoint=function(b){var U=b.x*this.sx+b.y*this.shx+this.tx,et=b.x*this.shy+b.y*this.sy+this.ty;return new ji(U,et)},Yt.prototype.applyToRectangle=function(b){var U=this.applyToPoint(b),et=this.applyToPoint(new ji(b.x+b.w,b.y+b.h));return new ma(U.x,U.y,et.x-U.x,et.y-U.y)},Yt.prototype.clone=function(){var b=this.sx,U=this.shy,et=this.shx,ot=this.sy,ht=this.tx,bt=this.ty;return new Yt(b,U,et,ot,ht,bt)},l.Matrix=Yt;var Wn=l.matrixMult=function(b,U){return U.multiply(b)},sr=new Yt(1,0,0,1,0,0);l.unitMatrix=l.identityMatrix=sr;var gn=function(b,U){if(!ir[b]){var et=(U instanceof Zr?"Sh":"P")+(Object.keys(fe).length+1).toString(10);U.id=et,ir[b]=et,fe[et]=U,ae.publish("addPattern",U)}};l.ShadingPattern=Zr,l.TilingPattern=vi,l.addShadingPattern=function(b,U){return N("addShadingPattern()"),gn(b,U),this},l.beginTilingPattern=function(b){N("beginTilingPattern()"),Do(b.boundingBox[0],b.boundingBox[1],b.boundingBox[2]-b.boundingBox[0],b.boundingBox[3]-b.boundingBox[1],b.matrix)},l.endTilingPattern=function(b,U){N("endTilingPattern()"),U.stream=mt[q].join("\n"),gn(b,U),ae.publish("endTilingPattern",U),or.pop().restore()};var We=l.__private__.newObject=function(){var b=Me();return _n(b,!0),b},Me=l.__private__.newObjectDeferred=function(){return K++,rt[K]=function(){return at},K},_n=function(b,U){return U=typeof U=="boolean"&&U,rt[b]=at,U&&nt(b+" 0 obj"),b},Si=l.__private__.newAdditionalObject=function(){var b={objId:Me(),content:""};return gt.push(b),b},vr=Me(),Gn=Me(),Vn=l.__private__.decodeColorString=function(b){var U=b.split(" ");if(U.length!==2||U[1]!=="g"&&U[1]!=="G")U.length===5&&(U[4]==="k"||U[4]==="K")&&(U=[(1-U[0])*(1-U[3]),(1-U[1])*(1-U[3]),(1-U[2])*(1-U[3]),"r"]);else{var et=parseFloat(U[0]);U=[et,et,et,"r"]}for(var ot="#",ht=0;ht<3;ht++)ot+=("0"+Math.floor(255*parseFloat(U[ht])).toString(16)).slice(-2);return ot},Zn=l.__private__.encodeColorString=function(b){var U;typeof b=="string"&&(b={ch1:b});var et=b.ch1,ot=b.ch2,ht=b.ch3,bt=b.ch4,kt=b.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof et=="string"&&et.charAt(0)!=="#"){var jt=new nf(et);if(jt.ok)et=jt.toHex();else if(!/^\d*\.?\d*$/.test(et))throw new Error('Invalid color "'+et+'" passed to jsPDF.encodeColorString.')}if(typeof et=="string"&&/^#[0-9A-Fa-f]{3}$/.test(et)&&(et="#"+et[1]+et[1]+et[2]+et[2]+et[3]+et[3]),typeof et=="string"&&/^#[0-9A-Fa-f]{6}$/.test(et)){var Ht=parseInt(et.substr(1),16);et=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<ee.length;ue+=1)if(ee[ue].key==="DecodeParms"){for(var Ie=[],Ee=0;Ee<Ht.reverseChain.split("/").length-1;Ee+=1)Ie.push("null");Ie.push(ee[ue].value),ee[ue].value="["+Ie.join(" ")+"]"}}nt("<<");for(var Ue=0;Ue<ee.length;Ue++)nt("/"+ee[Ue].key+" "+ee[Ue].value);nt(">>"),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("<</Type /Page"),nt("/Parent "+b.rootDictionaryObjId+" 0 R"),nt("/Resources "+b.resourceDictionaryObjId+" 0 R"),nt("/MediaBox ["+parseFloat(V(b.mediaBox.bottomLeftX))+" "+parseFloat(V(b.mediaBox.bottomLeftY))+" "+V(b.mediaBox.topRightX)+" "+V(b.mediaBox.topRightY)+"]"),b.cropBox!==null&&nt("/CropBox ["+V(b.cropBox.bottomLeftX)+" "+V(b.cropBox.bottomLeftY)+" "+V(b.cropBox.topRightX)+" "+V(b.cropBox.topRightY)+"]"),b.bleedBox!==null&&nt("/BleedBox ["+V(b.bleedBox.bottomLeftX)+" "+V(b.bleedBox.bottomLeftY)+" "+V(b.bleedBox.topRightX)+" "+V(b.bleedBox.topRightY)+"]"),b.trimBox!==null&&nt("/TrimBox ["+V(b.trimBox.bottomLeftX)+" "+V(b.trimBox.bottomLeftY)+" "+V(b.trimBox.topRightX)+" "+V(b.trimBox.topRightY)+"]"),b.artBox!==null&&nt("/ArtBox ["+V(b.artBox.bottomLeftX)+" "+V(b.artBox.bottomLeftY)+" "+V(b.artBox.topRightX)+" "+V(b.artBox.topRightY)+"]"),typeof b.userUnit=="number"&&b.userUnit!==1&&nt("/UserUnit "+b.userUnit),ae.publish("putPage",{objId:ot,pageContext:Vt[U],pageNumber:U,page:et}),nt("/Contents "+ht+" 0 R"),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("<</Type /Pages");var ot="/Kids [";for(U=0;U<ce;U++)ot+=et[U]+" 0 R ";nt(ot+"]"),nt("/Count "+ce),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;ee<ot.length;ee++){for(et=ot[ee];et>b[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<b&&nt("/"+U+" "+fe[U].objectNumber+" 0 R");ae.publish("putTilingPatternDict"),nt(">>")}},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<gt.length;b++){var U=gt[b];_n(U.objId,!0),nt(U.content),nt("endobj")}ae.publish("postPutAdditionalObjects")},_o=function(b){be[b.fontName]=be[b.fontName]||{},be[b.fontName][b.fontStyle]=b.id},la=function(b,U,et,ot,ht){var bt={id:"F"+(Object.keys(se).length+1).toString(10),postScriptName:b,fontName:U,fontStyle:et,encoding:ot,isStandardFont:ht||!1,metadata:{}};return ae.publish("addFont",{font:bt,instance:this}),se[bt.id]=bt,_o(bt),bt.id},Ws=function(b){for(var U=0,et=yt.length;U<et;U++){var ot=la.call(this,b[U][0],b[U][1],b[U][2],yt[U][3],!0);u===!1&&(c[ot]=!0);var ht=b[U][0].split("-");_o({id:ot,fontName:ht[0],fontStyle:ht[1]||""})}ae.publish("addFonts",{fonts:se,dictionary:be})},Yn=function(b){return b.foo=function(){try{return b.apply(this,arguments)}catch(ot){var U=ot.stack||"";~U.indexOf(" at ")&&(U=U.split(" at ")[1]);var et="Error in function "+U.split("\n")[0].split("<")[0]+": "+ot.message;if(!Jt.console)throw new Error(et);Jt.console.error(et,ot),Jt.alert&&alert(et)}},b.foo.bar=b,b.foo},Fi=function(b,U){var et,ot,ht,bt,kt,jt,Ht,ee,te;if(ht=(U=U||{}).sourceEncoding||"Unicode",kt=U.outputEncoding,(U.autoencode||kt)&&se[Wt].metadata&&se[Wt].metadata[ht]&&se[Wt].metadata[ht].encoding&&(bt=se[Wt].metadata[ht].encoding,!kt&&se[Wt].encoding&&(kt=se[Wt].encoding),!kt&&bt.codePages&&(kt=bt.codePages[0]),typeof kt=="string"&&(kt=bt[kt]),kt)){for(Ht=!1,jt=[],et=0,ot=b.length;et<ot;et++)(ee=kt[b.charCodeAt(et)])?jt.push(String.fromCharCode(ee)):jt.push(b[et]),jt[et].charCodeAt(0)>>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<ot;et++){if((te=(ee=b.charCodeAt(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='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ht+'"'+bt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(U)+");<\/script></body></html>",jt=Jt.open();return jt!==null&&jt.document.write(kt),jt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Jt)==="[object Window]"){var Ht='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(U.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+U.filename+'" width="500px" height="400px" /></body></html>',ee=Jt.open();if(ee!==null){ee.document.write(Ht);var te=this;ee.document.documentElement.querySelector("#pdfViewer").onload=function(){ee.document.title=U.filename,ee.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(te.output("bloburl"))}}return ee}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Jt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ue='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",U)+'"></iframe></body></html>',Ie=Jt.open();if(Ie!==null&&(Ie.document.write(ue),Ie.document.title=U.filename),Ie||typeof safari>"u")return Ie;break;case"datauri":case"dataurl":return Jt.document.location.href=this.output("datauristring",U);default:return null}}),No=function(b){return Array.isArray(ar)===!0&&ar.indexOf(b)>-1};switch(r){case"pt":Ft=1;break;case"mm":Ft=72/25.4;break;case"cm":Ft=72/2.54;break;case"in":Ft=72;break;case"px":Ft=No("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ft=12;break;case"ex":Ft=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Ft=r}var sn=null;tt(),Q();var Xs=function(b){return p!==null?sn.encryptor(b,0):function(U){return U}},ko=l.__private__.getPageInfo=l.getPageInfo=function(b){if(isNaN(b)||b%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Vt[b].objId,pageNumber:b,pageContext:Vt[b]}},Kt=l.__private__.getPageInfoByObjId=function(b){if(isNaN(b)||b%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var U in Vt)if(Vt[U].objId===b)break;return ko(U)},Ks=l.__private__.getCurrentPageInfo=l.getCurrentPageInfo=function(){return{objId:Vt[q].objId,pageNumber:q,pageContext:Vt[q]}};l.addPage=function(){return xo.apply(this,arguments),this},l.setPage=function(){return So.apply(this,arguments),pt.call(this,mt[q]),this},l.insertPage=function(b){return this.addPage(),this.movePage(q,b),this},l.movePage=function(b,U){var et,ot;if(b>U){et=mt[b],ot=Vt[b];for(var ht=b;ht>U;ht--)mt[ht]=mt[ht-1],Vt[ht]=Vt[ht-1];mt[U]=et,Vt[U]=ot,this.setPage(U)}else if(b<U){et=mt[b],ot=Vt[b];for(var bt=b;bt<U;bt++)mt[bt]=mt[bt+1],Vt[bt]=Vt[bt+1];mt[U]=et,Vt[U]=ot,this.setPage(U)}return this},l.deletePage=function(){return Gs.apply(this,arguments),this},l.__private__.text=l.text=function(b,U,et,ot,ht){var bt,kt,jt,Ht,ee,te,ue,Ie,Ee,Ue=(ot=ot||{}).scope||this;if(typeof b=="number"&&typeof U=="number"&&(typeof et=="string"||Array.isArray(et))){var ln=et;et=U,U=b,b=ln}if(arguments[3]instanceof Yt?(N("The transform parameter of text() with a Matrix value"),Ee=ht):(jt=arguments[4],Ht=arguments[5],(0,Ae.A)(ue=arguments[3])==="object"&&ue!==null||(typeof jt=="string"&&(Ht=jt,jt=null),typeof ue=="string"&&(Ht=ue,ue=null),typeof ue=="number"&&(jt=ue,ue=null),ot={flags:ue,angle:jt,align:Ht})),isNaN(U)||isNaN(et)||b==null)throw new Error("Invalid arguments passed to jsPDF.text");if(b.length===0)return Ue;var Je="",Qn=!1,xn=typeof ot.lineHeightFactor=="number"?ot.lineHeightFactor:$r,cr=Ue.internal.scaleFactor;function To(Se){return Se=Se.split(" ").join(Array(ot.TabLen||9).join(" ")),vn(Se,ue)}function Aa(Se){for(var Le,ze=Se.concat(),Ge=[],_r=ze.length;_r--;)typeof(Le=ze.shift())=="string"?Ge.push(Le):Array.isArray(Se)&&(Le.length===1||Le[1]===void 0&&Le[2]===void 0)?Ge.push(Le[0]):Ge.push([Le[0],Le[1],Le[2]]);return Ge}function _a(Se,Le){var ze;if(typeof Se=="string")ze=Le(Se)[0];else if(Array.isArray(Se)){for(var Ge,_r,Ca=Se.concat(),Yi=[],Uo=Ca.length;Uo--;)typeof(Ge=Ca.shift())=="string"?Yi.push(Le(Ge)[0]):Array.isArray(Ge)&&typeof Ge[0]=="string"&&(_r=Le(Ge[0],Ge[1],Ge[2]),Yi.push([_r[0],_r[1],_r[2]]));ze=Yi}return ze}var zi=!1,xa=!0;if(typeof b=="string")zi=!0;else if(Array.isArray(b)){var Sa=b.concat();kt=[];for(var Mi,$e=Sa.length;$e--;)(typeof(Mi=Sa.shift())!="string"||Array.isArray(Mi)&&typeof Mi[0]!="string")&&(xa=!1);zi=xa}if(zi===!1)throw new Error('Type of text must be string or Array. "'+b+'" is not recognized.');typeof b=="string"&&(b=b.match(/[\r?\n]/)?b.split(/\r\n|\r|\n/g):[b]);var Ui=St/Ue.internal.scaleFactor,qi=Ui*(xn-1);switch(ot.baseline){case"bottom":et-=qi;break;case"top":et+=Ui-qi;break;case"hanging":et+=Ui-2*qi;break;case"middle":et+=Ui/2-qi}if((te=ot.maxWidth||0)>0&&(typeof b=="string"?b=Ue.splitTextToSize(b,te):Object.prototype.toString.call(b)==="[object Array]"&&(b=b.reduce(function(Se,Le){return Se.concat(Ue.splitTextToSize(Le,te))},[]))),bt={text:b,x:U,y:et,options:ot,mutex:{pdfEscape:vn,activeFontKey:Wt,fonts:se,activeFontSize:St}},ae.publish("preProcessText",bt),b=bt.text,jt=(ot=bt.options).angle,!(Ee instanceof Yt)&&jt&&typeof jt=="number"){jt*=Math.PI/180,ot.rotationDirection===0&&(jt=-jt),k===D.ADVANCED&&(jt=-jt);var Hi=Math.cos(jt),La=Math.sin(jt);Ee=new Yt(Hi,La,-La,Hi,0,0)}else jt&&jt instanceof Yt&&(Ee=jt);k!==D.ADVANCED||Ee||(Ee=sr),(ee=ot.charSpace||Ti)!==void 0&&(Je+=V(x(ee))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),(Ie=ot.horizontalScale)!==void 0&&(Je+=V(100*Ie)+" Tz\n"),ot.lang;var mn=-1,ll=ot.renderingMode!==void 0?ot.renderingMode:ot.stroke,Na=Ue.internal.getCurrentPageInfo().pageContext;switch(ll){case 0:case!1:case"fill":mn=0;break;case 1:case!0:case"stroke":mn=1;break;case 2:case"fillThenStroke":mn=2;break;case 3:case"invisible":mn=3;break;case 4:case"fillAndAddForClipping":mn=4;break;case 5:case"strokeAndAddPathForClipping":mn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":mn=6;break;case 7:case"addToPathForClipping":mn=7}var jo=Na.usedRenderingMode!==void 0?Na.usedRenderingMode:-1;mn!==-1?Je+=mn+" Tr\n":jo!==-1&&(Je+="0 Tr\n"),mn!==-1&&(Na.usedRenderingMode=mn),Ht=ot.align||"left";var Fn,Wi=St*xn,Ro=Ue.internal.pageSize.getWidth(),zo=se[Wt];ee=ot.charSpace||Ti,te=ot.maxWidth||0,ue=Object.assign({autoencode:!0,noBOM:!0},ot.flags);var Dr=[],ni=function(Se){return Ue.getStringUnitWidth(Se,{font:zo,charSpace:ee,fontSize:St,doKerning:!1})*St/cr};if(Object.prototype.toString.call(b)==="[object Array]"){var bn;kt=Aa(b),Ht!=="left"&&(Fn=kt.map(ni));var un,Tr=0;if(Ht==="right"){U-=Fn[0],b=[],$e=kt.length;for(var yr=0;yr<$e;yr++)yr===0?(un=hr(U),bn=br(et)):(un=x(Tr-Fn[yr]),bn=-Wi),b.push([kt[yr],un,bn]),Tr=Fn[yr]}else if(Ht==="center"){U-=Fn[0]/2,b=[],$e=kt.length;for(var wr=0;wr<$e;wr++)wr===0?(un=hr(U),bn=br(et)):(un=x((Tr-Fn[wr])/2),bn=-Wi),b.push([kt[wr],un,bn]),Tr=Fn[wr]}else if(Ht==="left"){b=[],$e=kt.length;for(var Gi=0;Gi<$e;Gi++)b.push(kt[Gi])}else if(Ht==="justify"&&zo.encoding==="Identity-H"){b=[],$e=kt.length,te=te!==0?te:Ro;for(var Ar=0,Re=0;Re<$e;Re++)if(bn=Re===0?br(et):-Wi,un=Re===0?hr(U):Ar,Re<$e-1){var ka=x((te-Fn[Re])/(kt[Re].split(" ").length-1)),hn=kt[Re].split(" ");b.push([hn[0]+" ",un,bn]),Ar=0;for(var En=1;En<hn.length;En++){var Vi=(ni(hn[En-1]+" "+hn[En])-ni(hn[En]))*cr+ka;En==hn.length-1?b.push([hn[En],Vi,0]):b.push([hn[En]+" ",Vi,0]),Ar-=Vi}}else b.push([kt[Re],un,bn]);b.push(["",Ar,0])}else{if(Ht!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(b=[],$e=kt.length,te=te!==0?te:Ro,Re=0;Re<$e;Re++)bn=Re===0?br(et):-Wi,un=Re===0?hr(U):0,Re<$e-1?Dr.push(V(x((te-Fn[Re])/(kt[Re].split(" ").length-1)))):Dr.push(0),b.push([kt[Re],un,bn])}}var Mo=typeof ot.R2L=="boolean"?ot.R2L:Et;Mo===!0&&(b=_a(b,function(Se,Le,ze){return[Se.split("").reverse().join(""),Le,ze]})),bt={text:b,x:U,y:et,options:ot,mutex:{pdfEscape:vn,activeFontKey:Wt,fonts:se,activeFontSize:St}},ae.publish("postProcessText",bt),b=bt.text,Qn=bt.mutex.isHex||!1;var Pa=se[Wt].encoding;Pa!=="WinAnsiEncoding"&&Pa!=="StandardEncoding"||(b=_a(b,function(Se,Le,ze){return[To(Se),Le,ze]})),kt=Aa(b),b=[];for(var ri,ii,jr,ai=0,Zi=1,oi=Array.isArray(kt[0])?Zi:ai,Rr="",Ia=function(Se,Le,ze){var Ge="";return ze instanceof Yt?(ze=typeof ot.angle=="number"?Wn(ze,new Yt(1,0,0,1,Se,Le)):Wn(new Yt(1,0,0,1,Se,Le),ze),k===D.ADVANCED&&(ze=Wn(new Yt(1,0,0,-1,0,0),ze)),Ge=ze.join(" ")+" Tm\n"):Ge=V(Se)+" "+V(Le)+" Td\n",Ge},On=0;On<kt.length;On++){switch(Rr="",oi){case Zi:jr=(Qn?"<":"(")+kt[On][0]+(Qn?">":")"),ri=parseFloat(kt[On][1]),ii=parseFloat(kt[On][2]);break;case ai:jr=(Qn?"<":"(")+kt[On]+(Qn?">":")"),ri=hr(U),ii=br(et)}Dr!==void 0&&Dr[On]!==void 0&&(Rr=Dr[On]+" Tw\n"),On===0?b.push(Rr+Ia(ri,ii,Ee)+jr):oi===ai?b.push(Rr+jr):oi===Zi&&b.push(Rr+Ia(ri,ii,Ee)+jr)}b=oi===ai?b.join(" Tj\nT* "):b.join(" Tj\n"),b+=" Tj\n";var Bn="BT\n/";return Bn+=Wt+" "+St+" Tf\n",Bn+=V(St*xn)+" TL\n",Bn+=ti+"\n",Bn+=Je,Bn+=b,nt(Bn+="ET"),c[Wt]=!0,Ue};var $s=l.__private__.clip=l.clip=function(b){return nt(b==="evenodd"?"W*":"W"),this};l.clipEvenOdd=function(){return $s("evenodd")},l.__private__.discardPath=l.discardPath=function(){return nt("n"),this};var ur=l.__private__.isValidStyle=function(b){var U=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(b)!==-1&&(U=!0),U};l.__private__.setDefaultPathOperation=l.setDefaultPathOperation=function(b){return ur(b)&&(g=b),this};var Po=l.__private__.getStyle=l.getStyle=function(b){var U=g;switch(b){case"D":case"S":U="S";break;case"F":U="f";break;case"FD":case"DF":U="B";break;case"f":case"f*":case"B":case"B*":U=b}return U},Io=l.close=function(){return nt("h"),this};l.stroke=function(){return nt("S"),this},l.fill=function(b){return Bi("f",b),this},l.fillEvenOdd=function(b){return Bi("f*",b),this},l.fillStroke=function(b){return Bi("B",b),this},l.fillStrokeEvenOdd=function(b){return Bi("B*",b),this};var Bi=function(b,U){(0,Ae.A)(U)==="object"?el(U,b):nt(b)},ha=function(b){b===null||k===D.ADVANCED&&b===void 0||(b=Po(b),nt(b))};function tl(b,U,et,ot,ht){var bt=new vi(U||this.boundingBox,et||this.xStep,ot||this.yStep,this.gState,ht||this.matrix);bt.stream=this.stream;var kt=b+"$$"+this.cloneIndex+++"$$";return gn(kt,bt),bt}var el=function(b,U){var et=ir[b.key],ot=fe[et];if(ot instanceof Zr)nt("q"),nt(nl(U)),ot.gState&&l.setGState(ot.gState),nt(b.matrix.toString()+" cm"),nt("/"+et+" sh"),nt("Q");else if(ot instanceof vi){var ht=new Yt(1,0,0,-1,0,Br());b.matrix&&(ht=ht.multiply(b.matrix||sr),et=tl.call(ot,b.key,b.boundingBox,b.xStep,b.yStep,ht).id),nt("q"),nt("/Pattern cs"),nt("/"+et+" scn"),ot.gState&&l.setGState(ot.gState),nt(U),nt("Q")}},nl=function(b){switch(b){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ca=l.moveTo=function(b,U){return nt(V(x(b))+" "+V(F(U))+" m"),this},Kr=l.lineTo=function(b,U){return nt(V(x(b))+" "+V(F(U))+" l"),this},Er=l.curveTo=function(b,U,et,ot,ht,bt){return nt([V(x(b)),V(F(U)),V(x(et)),V(F(ot)),V(x(ht)),V(F(bt)),"c"].join(" ")),this};l.__private__.line=l.line=function(b,U,et,ot,ht){if(isNaN(b)||isNaN(U)||isNaN(et)||isNaN(ot)||!ur(ht))throw new Error("Invalid arguments passed to jsPDF.line");return k===D.COMPAT?this.lines([[et-b,ot-U]],b,U,[1,1],ht||"S"):this.lines([[et-b,ot-U]],b,U,[1,1]).stroke()},l.__private__.lines=l.lines=function(b,U,et,ot,ht,bt){var kt,jt,Ht,ee,te,ue,Ie,Ee,Ue,ln,Je,Qn;if(typeof b=="number"&&(Qn=et,et=U,U=b,b=Qn),ot=ot||[1,1],bt=bt||!1,isNaN(U)||isNaN(et)||!Array.isArray(b)||!Array.isArray(ot)||!ur(ht)||typeof bt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ca(U,et),kt=ot[0],jt=ot[1],ee=b.length,ln=U,Je=et,Ht=0;Ht<ee;Ht++)(te=b[Ht]).length===2?(ln=te[0]*kt+ln,Je=te[1]*jt+Je,Kr(ln,Je)):(ue=te[0]*kt+ln,Ie=te[1]*jt+Je,Ee=te[2]*kt+ln,Ue=te[3]*jt+Je,ln=te[4]*kt+ln,Je=te[5]*jt+Je,Er(ue,Ie,Ee,Ue,ln,Je));return bt&&Io(),ha(ht),this},l.path=function(b){for(var U=0;U<b.length;U++){var et=b[U],ot=et.c;switch(et.op){case"m":ca(ot[0],ot[1]);break;case"l":Kr(ot[0],ot[1]);break;case"c":Er.apply(this,ot);break;case"h":Io()}}return this},l.__private__.rect=l.rect=function(b,U,et,ot,ht){if(isNaN(b)||isNaN(U)||isNaN(et)||isNaN(ot)||!ur(ht))throw new Error("Invalid arguments passed to jsPDF.rect");return k===D.COMPAT&&(ot=-ot),nt([V(x(b)),V(F(U)),V(x(et)),V(x(ot)),"re"].join(" ")),ha(ht),this},l.__private__.triangle=l.triangle=function(b,U,et,ot,ht,bt,kt){if(isNaN(b)||isNaN(U)||isNaN(et)||isNaN(ot)||isNaN(ht)||isNaN(bt)||!ur(kt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[et-b,ot-U],[ht-et,bt-ot],[b-ht,U-bt]],b,U,[1,1],kt,!0),this},l.__private__.roundedRect=l.roundedRect=function(b,U,et,ot,ht,bt,kt){if(isNaN(b)||isNaN(U)||isNaN(et)||isNaN(ot)||isNaN(ht)||isNaN(bt)||!ur(kt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var jt=4/3*(Math.SQRT2-1);return ht=Math.min(ht,.5*et),bt=Math.min(bt,.5*ot),this.lines([[et-2*ht,0],[ht*jt,0,ht,bt-bt*jt,ht,bt],[0,ot-2*bt],[0,bt*jt,-ht*jt,bt,-ht,bt],[2*ht-et,0],[-ht*jt,0,-ht,-bt*jt,-ht,-bt],[0,2*bt-ot],[0,-bt*jt,ht*jt,-bt,ht,-bt]],b+ht,U,[1,1],kt,!0),this},l.__private__.ellipse=l.ellipse=function(b,U,et,ot,ht){if(isNaN(b)||isNaN(U)||isNaN(et)||isNaN(ot)||!ur(ht))throw new Error("Invalid arguments passed to jsPDF.ellipse");var bt=4/3*(Math.SQRT2-1)*et,kt=4/3*(Math.SQRT2-1)*ot;return ca(b+et,U),Er(b+et,U-kt,b+bt,U-ot,b,U-ot),Er(b-bt,U-ot,b-et,U-kt,b-et,U),Er(b-et,U+kt,b-bt,U+ot,b,U+ot),Er(b+bt,U+ot,b+et,U+kt,b+et,U),ha(ht),this},l.__private__.circle=l.circle=function(b,U,et,ot){if(isNaN(b)||isNaN(U)||isNaN(et)||!ur(ot))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(b,U,et,et,ot)},l.setFont=function(b,U,et){return et&&(U=R(U,et)),Wt=Lo(b,U,{disableWarning:!1}),this};var rl=l.__private__.getFont=l.getFont=function(){return se[Lo.apply(l,arguments)]};l.__private__.getFontList=l.getFontList=function(){var b,U,et={};for(b in be)if(be.hasOwnProperty(b))for(U in et[b]=[],be[b])be[b].hasOwnProperty(U)&&et[b].push(U);return et},l.addFont=function(b,U,et,ot,ht){var bt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&bt.indexOf(arguments[3])!==-1?ht=arguments[3]:arguments[3]&&bt.indexOf(arguments[3])==-1&&(et=R(et,ot)),ht=ht||"Identity-H",la.call(this,b,U,et,ht)};var $r,da=a.lineWidth||.200025,Di=l.__private__.getLineWidth=l.getLineWidth=function(){return da},Co=l.__private__.setLineWidth=l.setLineWidth=function(b){return da=b,nt(V(x(b))+" w"),this};l.__private__.setLineDash=Zt.API.setLineDash=Zt.API.setLineDashPattern=function(b,U){if(b=b||[],U=U||0,isNaN(U)||!Array.isArray(b))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return b=b.map(function(et){return V(x(et))}).join(" "),U=V(x(U)),nt("["+b+"] "+U+" d"),this};var Fo=l.__private__.getLineHeight=l.getLineHeight=function(){return St*$r};l.__private__.getLineHeight=l.getLineHeight=function(){return St*$r};var Eo=l.__private__.setLineHeightFactor=l.setLineHeightFactor=function(b){return typeof(b=b||1.15)=="number"&&($r=b),this},Oo=l.__private__.getLineHeightFactor=l.getLineHeightFactor=function(){return $r};Eo(a.lineHeight);var hr=l.__private__.getHorizontalCoordinate=function(b){return x(b)},br=l.__private__.getVerticalCoordinate=function(b){return k===D.ADVANCED?b:Vt[q].mediaBox.topRightY-Vt[q].mediaBox.bottomLeftY-x(b)},il=l.__private__.getHorizontalCoordinateString=l.getHorizontalCoordinateString=function(b){return V(hr(b))},Or=l.__private__.getVerticalCoordinateString=l.getVerticalCoordinateString=function(b){return V(br(b))},Jn=a.strokeColor||"0 G";l.__private__.getStrokeColor=l.getDrawColor=function(){return Vn(Jn)},l.__private__.setStrokeColor=l.setDrawColor=function(b,U,et,ot){return Jn=Zn({ch1:b,ch2:U,ch3:et,ch4:ot,pdfColorType:"draw",precision:2}),nt(Jn),this};var pa=a.fillColor||"0 g";l.__private__.getFillColor=l.getFillColor=function(){return Vn(pa)},l.__private__.setFillColor=l.setFillColor=function(b,U,et,ot){return pa=Zn({ch1:b,ch2:U,ch3:et,ch4:ot,pdfColorType:"fill",precision:2}),nt(pa),this};var ti=a.textColor||"0 g",al=l.__private__.getTextColor=l.getTextColor=function(){return Vn(ti)};l.__private__.setTextColor=l.setTextColor=function(b,U,et,ot){return ti=Zn({ch1:b,ch2:U,ch3:et,ch4:ot,pdfColorType:"text",precision:3}),this};var Ti=a.charSpace,ol=l.__private__.getCharSpace=l.getCharSpace=function(){return parseFloat(Ti||0)};l.__private__.setCharSpace=l.setCharSpace=function(b){if(isNaN(b))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ti=b,this};var ga=0;l.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},l.__private__.setLineCap=l.setLineCap=function(b){var U=l.CapJoinStyles[b];if(U===void 0)throw new Error("Line cap style of '"+b+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ga=U,nt(U+" J"),this};var va=0;l.__private__.setLineJoin=l.setLineJoin=function(b){var U=l.CapJoinStyles[b];if(U===void 0)throw new Error("Line join style of '"+b+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return va=U,nt(U+" j"),this},l.__private__.setLineMiterLimit=l.__private__.setMiterLimit=l.setLineMiterLimit=l.setMiterLimit=function(b){if(b=b||0,isNaN(b))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return nt(V(x(b))+" M"),this},l.GState=eo,l.setGState=function(b){(b=typeof b=="string"?ye[An[b]]:Bo(null,b)).equals(Ze)||(nt("/"+b.id+" gs"),Ze=b)};var Bo=function(b,U){if(!b||!An[b]){var et=!1;for(var ot in ye)if(ye.hasOwnProperty(ot)&&ye[ot].equals(U)){et=!0;break}if(et)U=ye[ot];else{var ht="GS"+(Object.keys(ye).length+1).toString(10);ye[ht]=U,U.id=ht}return b&&(An[b]=U.id),ae.publish("addGState",U),U}};l.addGState=function(b,U){return Bo(b,U),this},l.saveGraphicsState=function(){return nt("q"),In.push({key:Wt,size:St,color:ti}),this},l.restoreGraphicsState=function(){nt("Q");var b=In.pop();return Wt=b.key,St=b.size,ti=b.color,Ze=null,this},l.setCurrentTransformationMatrix=function(b){return nt(b.toString()+" cm"),this},l.comment=function(b){return nt("#"+b),this};var ji=function(b,U){var et=b||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return et},set:function(bt){isNaN(bt)||(et=parseFloat(bt))}});var ot=U||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ot},set:function(bt){isNaN(bt)||(ot=parseFloat(bt))}});var ht="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ht},set:function(bt){ht=bt.toString()}}),this},ma=function(b,U,et,ot){ji.call(this,b,U),this.type="rect";var ht=et||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ht},set:function(kt){isNaN(kt)||(ht=parseFloat(kt))}});var bt=ot||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return bt},set:function(kt){isNaN(kt)||(bt=parseFloat(kt))}}),this},ba=function(){this.page=ce,this.currentPage=q,this.pages=mt.slice(0),this.pagesContext=Vt.slice(0),this.x=ge,this.y=ne,this.matrix=Fe,this.width=ei(q),this.height=Br(q),this.outputDestination=Ct,this.id="",this.objectNumber=-1};ba.prototype.restore=function(){ce=this.page,q=this.currentPage,Vt=this.pagesContext,mt=this.pages,ge=this.x,ne=this.y,Fe=this.matrix,ya(q,this.width),wa(q,this.height),Ct=this.outputDestination};var Do=function(b,U,et,ot,ht){or.push(new ba),ce=q=0,mt=[],ge=b,ne=U,Fe=ht,fa([et,ot])},sl=function(b){if(Ye[b])or.pop().restore();else{var U=new ba,et="Xo"+(Object.keys(ke).length+1).toString(10);U.id=et,Ye[b]=et,ke[et]=U,ae.publish("addFormObject",U),or.pop().restore()}};for(var Ri in l.beginFormObject=function(b,U,et,ot,ht){return Do(b,U,et,ot,ht),this},l.endFormObject=function(b){return sl(b),this},l.doFormObject=function(b,U){var et=ke[Ye[b]];return nt("q"),nt(U.toString()+" cm"),nt("/"+et.id+" Do"),nt("Q"),this},l.getFormObject=function(b){var U=ke[Ye[b]];return{x:U.x,y:U.y,width:U.width,height:U.height,matrix:U.matrix}},l.save=function(b,U){return b=b||"generated.pdf",(U=U||{}).returnPromise=U.returnPromise||!1,U.returnPromise===!1?(Vr(Ei(mr()),b),typeof Vr.unload=="function"&&Jt.setTimeout&&setTimeout(Vr.unload,911),this):new Promise(function(et,ot){try{var ht=Vr(Ei(mr()),b);typeof Vr.unload=="function"&&Jt.setTimeout&&setTimeout(Vr.unload,911),et(ht)}catch(bt){ot(bt.message)}})},Zt.API)Zt.API.hasOwnProperty(Ri)&&(Ri==="events"&&Zt.API.events.length?function(b,U){var et,ot,ht;for(ht=U.length-1;ht!==-1;ht--)et=U[ht][0],ot=U[ht][1],b.subscribe.apply(b,[et].concat(typeof ot=="function"?[ot]:ot))}(ae,Zt.API.events):l[Ri]=Zt.API[Ri]);var ei=l.getPageWidth=function(b){return(Vt[b=b||q].mediaBox.topRightX-Vt[b].mediaBox.bottomLeftX)/Ft},ya=l.setPageWidth=function(b,U){Vt[b].mediaBox.topRightX=U*Ft+Vt[b].mediaBox.bottomLeftX},Br=l.getPageHeight=function(b){return(Vt[b=b||q].mediaBox.topRightY-Vt[b].mediaBox.bottomLeftY)/Ft},wa=l.setPageHeight=function(b,U){Vt[b].mediaBox.topRightY=U*Ft+Vt[b].mediaBox.bottomLeftY};return l.internal={pdfEscape:vn,getStyle:Po,getFont:rl,getFontSize:xt,getCharSpace:ol,getTextColor:al,getLineHeight:Fo,getLineHeightFactor:Oo,getLineWidth:Di,write:Tt,getHorizontalCoordinate:hr,getVerticalCoordinate:br,getCoordinateString:il,getVerticalCoordinateString:Or,collections:{},newObject:We,newAdditionalObject:Si,newObjectDeferred:Me,newObjectDeferredBegin:_n,getFilters:lr,putStream:Cn,events:ae,scaleFactor:Ft,pageSize:{getWidth:function(){return ei(q)},setWidth:function(b){ya(q,b)},getHeight:function(){return Br(q)},setHeight:function(b){wa(q,b)}},encryptionOptions:p,encryption:sn,getEncryptor:Xs,output:Oi,getNumberOfPages:Vs,pages:mt,out:nt,f2:v,f3:S,getPageInfo:ko,getPageInfoByObjId:Kt,getCurrentPageInfo:Ks,getPDFVersion:A,Point:ji,Rectangle:ma,Matrix:Yt,hasHotfix:No},Object.defineProperty(l.internal.pageSize,"width",{get:function(){return ei(q)},set:function(b){ya(q,b)},enumerable:!0,configurable:!0}),Object.defineProperty(l.internal.pageSize,"height",{get:function(){return Br(q)},set:function(b){wa(q,b)},enumerable:!0,configurable:!0}),Ws.call(l,yt),Wt="F1",xo(i,e),ae.publish("initialized"),l}pi.prototype.lsbFirstWord=function(a){return String.fromCharCode(a>>0&255,a>>8&255,a>>16&255,a>>24&255)},pi.prototype.toHexString=function(a){return a.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},pi.prototype.hexToBytes=function(a){for(var t=[],e=0;e<a.length;e+=2)t.push(String.fromCharCode(parseInt(a.substr(e,2),16)));return t.join("")},pi.prototype.processOwnerPassword=function(a,t){return ks(Ns(t).substr(0,5),a)},pi.prototype.encryptor=function(a,t){var e=Ns(this.encryptionKey+String.fromCharCode(255&a,a>>8&255,a>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return ks(e,r)}},eo.prototype.equals=function(a){var t,e="id,objectNumber,equals";if(!a||(0,Ae.A)(a)!==(0,Ae.A)(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!a.hasOwnProperty(t)||this[t]!==a[t])return!1;r++}for(t in a)a.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return r===0},Zt.API={events:[]},Zt.version="2.5.2";var Ce=Zt.API,Ps=1,Yr=function(a){return a.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},mi=function(a){return a.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},$t=function(a){return a.toFixed(2)},Cr=function(a){return a.toFixed(5)};Ce.__acroform__={};var dn=function(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a},ff=function(a){return a*Ps},tr=function(a){var t=new hf,e=zt.internal.getHeight(a)||0,r=zt.internal.getWidth(a)||0;return t.BBox=[0,0,Number($t(r)),Number($t(e))],t},Du=Ce.__acroform__.setBit=function(a,t){if(a=a||0,t=t||0,isNaN(a)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return a|=1<<t},Tu=Ce.__acroform__.clearBit=function(a,t){if(a=a||0,t=t||0,isNaN(a)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return a&=~(1<<t)},ju=Ce.__acroform__.getBit=function(a,t){if(isNaN(a)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(a&1<<t)==0?0:1},Be=Ce.__acroform__.getBitForPdf=function(a,t){if(isNaN(a)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return ju(a,t-1)},De=Ce.__acroform__.setBitForPdf=function(a,t){if(isNaN(a)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Du(a,t-1)},Te=Ce.__acroform__.clearBitForPdf=function(a,t){if(isNaN(a)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Tu(a,t-1)},Ru=Ce.__acroform__.calculateCoordinates=function(a,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=a[0],n=a[1],s=a[2],f=a[3],h={};return h.lowerLeft_X=e(i)||0,h.lowerLeft_Y=r(n+f)||0,h.upperRight_X=e(i+s)||0,h.upperRight_Y=r(n)||0,[Number($t(h.lowerLeft_X)),Number($t(h.lowerLeft_Y)),Number($t(h.upperRight_X)),Number($t(h.upperRight_Y))]},zu=function(a){if(a.appearanceStreamContent)return a.appearanceStreamContent;if(a.V||a.DV){var t=[],e=a._V||a.DV,r=Is(a,e),i=a.scope.internal.getFont(a.fontName,a.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(a.scope.__private__.encodeColorString(a.color)),t.push("/"+i+" "+$t(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var n=tr(a);return n.scope=a.scope,n.stream=t.join("\n"),n}},Is=function(a,t){var e=a.fontSize===0?a.maxFontSize:a.fontSize,r={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=a.multiline?i.map(function(S){return S.split("\n")}):i.map(function(S){return[S]});var n=e,s=zt.internal.getHeight(a)||0;s=s<0?-s:s;var f=zt.internal.getWidth(a)||0;f=f<0?-f:f;var h=function(S,x,y){if(S+1<i.length){var F=x+" "+i[S+1][0];return no(F,a,y).width<=f-4}return!1};n++;t:for(;n>0;){t="",n--;var g,p,u=no("3",a,n).height,c=a.multiline?s-n:(s-u)/2,l=c+=2,m=0,A=0,C=0;if(n<=0){t="(...) Tj\n",t+="% Width of Text: "+no(t,a,n=12).width+", FieldWidth:"+f+"\n";break}for(var L="",D=0,k=0;k<i.length;k++)if(i.hasOwnProperty(k)){var O=!1;if(i[k].length!==1&&C!==i[k].length-1){if((u+2)*(D+2)+2>s)continue t;L+=i[k][C],O=!0,A=k,k--}else{L=(L+=i[k][C]+" ").substr(L.length-1)==" "?L.substr(0,L.length-1):L;var _=parseInt(k),R=h(_,L,n),V=k>=i.length-1;if(R&&!V){L+=" ",C=0;continue}if(R||V){if(V)A=_;else if(a.multiline&&(u+2)*(D+2)+2>s)continue t}else{if(!a.multiline||(u+2)*(D+2)+2>s)continue t;A=_}}for(var N="",j=m;j<=A;j++){var v=i[j];if(a.multiline){if(j===A){N+=v[C]+" ",C=(C+1)%v.length;continue}if(j===m){N+=v[v.length-1]+" ";continue}}N+=v[0]+" "}switch(N=N.substr(N.length-1)==" "?N.substr(0,N.length-1):N,p=no(N,a,n).width,a.textAlign){case"right":g=f-p-2;break;case"center":g=(f-p)/2;break;case"left":default:g=2}t+=$t(g)+" "+$t(l)+" Td\n",t+="("+Yr(N)+") Tj\n",t+=-$t(g)+" 0 Td\n",l=-(n+2),p=0,m=O?A:A+1,D++,L=""}break}return r.text=t,r.fontSize=n,r},no=function(a,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(a,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:i}},Mu={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Uu=function(a,t){var e={type:"reference",object:a};t.internal.getPageInfo(a.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&t.internal.getPageInfo(a.page).pageContext.annotations.push(e)},qu=function(a,t){for(var e in a)if(a.hasOwnProperty(e)){var r=e,i=a[e];t.internal.newObjectDeferredBegin(i.objId,!0),(0,Ae.A)(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete a[r]}},Hu=function(a,t){if(t.scope=a,a.internal!==void 0&&(a.internal.acroformPlugin===void 0||a.internal.acroformPlugin.isInitialized===!1)){if(Mn.FieldNum=0,a.internal.acroformPlugin=JSON.parse(JSON.stringify(Mu)),a.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ps=a.internal.scaleFactor,a.internal.acroformPlugin.acroFormDictionaryRoot=new cf,a.internal.acroformPlugin.acroFormDictionaryRoot.scope=a,a.internal.acroformPlugin.acroFormDictionaryRoot._eventID=a.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(a)}),a.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var n=r[i];n.objId=void 0,n.hasAnnotation&&Uu(n,e)}})(a)}),a.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(a)}),a.internal.events.subscribe("postPutPages",function(e){(function(r,i){var n=!r;for(var s in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var f=r[s],h=[],g=f.Rect;if(f.Rect&&(f.Rect=Ru(f.Rect,i)),i.internal.newObjectDeferredBegin(f.objId,!0),f.DA=zt.createDefaultAppearanceStream(f),(0,Ae.A)(f)==="object"&&typeof f.getKeyValueListForStream=="function"&&(h=f.getKeyValueListForStream()),f.Rect=g,f.hasAppearanceStream&&!f.appearanceStreamContent){var p=zu(f);h.push({key:"AP",value:"<</N "+p+">>"}),i.internal.acroformPlugin.xForms.push(p)}if(f.appearanceStreamContent){var u="";for(var c in f.appearanceStreamContent)if(f.appearanceStreamContent.hasOwnProperty(c)){var l=f.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var s in l)if(l.hasOwnProperty(s)){var m=l[s];typeof m=="function"&&(m=m.call(i,f)),u+="/"+s+" "+m+" ",i.internal.acroformPlugin.xForms.indexOf(m)>=0||i.internal.acroformPlugin.xForms.push(m)}}else typeof(m=l)=="function"&&(m=m.call(i,f)),u+="/"+s+" "+m,i.internal.acroformPlugin.xForms.indexOf(m)>=0||i.internal.acroformPlugin.xForms.push(m);u+=">>"}h.push({key:"AP",value:"<<\n"+u+">>"})}i.internal.putStream({additionalKeyValues:h,objectId:f.objId}),i.internal.out("endobj")}n&&qu(i.internal.acroformPlugin.xForms,i)})(e,a)}),a.internal.acroformPlugin.isInitialized=!0}},uf=Ce.__acroform__.arrayToPdfArray=function(a,t,e){var r=function(s){return s};if(Array.isArray(a)){for(var i="[",n=0;n<a.length;n++)switch(n!==0&&(i+=" "),(0,Ae.A)(a[n])){case"boolean":case"number":case"object":i+=a[n].toString();break;case"string":a[n].substr(0,1)!=="/"?(t!==void 0&&e&&(r=e.internal.getEncryptor(t)),i+="("+Yr(r(a[n].toString()))+")"):i+=a[n].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Cs=function(a,t,e){var r=function(i){return i};return t!==void 0&&e&&(r=e.internal.getEncryptor(t)),(a=a||"").toString(),a="("+Yr(r(a))+")"},er=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(a){this._objId=a}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};er.prototype.toString=function(){return this.objId+" 0 R"},er.prototype.putStream=function(){var a=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:a,objectId:this.objId}),this.scope.internal.out("endobj")},er.prototype.getKeyValueListForStream=function(){var a=[],t=Object.getOwnPropertyNames(this).filter(function(n){return n!="content"&&n!="appearanceStreamContent"&&n!="scope"&&n!="objId"&&n.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var r=t[e],i=this[r];i&&(Array.isArray(i)?a.push({key:r,value:uf(i,this.objId,this.scope)}):i instanceof er?(i.scope=this.scope,a.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&a.push({key:r,value:i}))}return a};var hf=function(){er.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var a,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){a=e.trim()},get:function(){return a||null}})};dn(hf,er);var cf=function(){er.call(this);var a,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(a){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Yr(e(a))+")"}},set:function(e){a=e}})};dn(cf,er);var Mn=function a(){er.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(L){if(isNaN(L))throw new Error('Invalid value "'+L+'" for attribute F supplied.');t=L}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Be(t,3)},set:function(L){L?this.F=De(t,3):this.F=Te(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(L){if(isNaN(L))throw new Error('Invalid value "'+L+'" for attribute Ff supplied.');e=L}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(L){r=L!==void 0?L:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(L){r[0]=L}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(L){r[1]=L}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(L){r[2]=L}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(L){r[3]=L}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(L){switch(L){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=L;break;default:throw new Error('Invalid value "'+L+'" for attribute FT supplied.')}}});var n=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!n||n.length<1){if(this instanceof ao)return;n="FieldObject"+a.FieldNum++}var L=function(D){return D};return this.scope&&(L=this.scope.internal.getEncryptor(this.objId)),"("+Yr(L(n))+")"},set:function(L){n=L.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return n},set:function(L){n=L}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(L){s=L}});var f="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return f},set:function(L){f=L}});var h=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return h},set:function(L){h=L}});var g=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return g===void 0?50/Ps:g},set:function(L){g=L}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(L){p=L}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof ao||this instanceof Jr))return Cs(u,this.objId,this.scope)},set:function(L){L=L.toString(),u=L}});var c=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(c)return this instanceof Ve?c:Cs(c,this.objId,this.scope)},set:function(L){L=L.toString(),c=this instanceof Ve?L:L.substr(0,1)==="("?mi(L.substr(1,L.length-2)):mi(L)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ve?mi(c.substr(1,c.length-1)):c},set:function(L){L=L.toString(),c=this instanceof Ve?"/"+L:L}});var l=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(l)return l},set:function(L){this.V=L}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(l)return this instanceof Ve?l:Cs(l,this.objId,this.scope)},set:function(L){L=L.toString(),l=this instanceof Ve?L:L.substr(0,1)==="("?mi(L.substr(1,L.length-2)):mi(L)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ve?mi(l.substr(1,l.length-1)):l},set:function(L){L=L.toString(),l=this instanceof Ve?"/"+L:L}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var m,A=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return A},set:function(L){L=!!L,A=L}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(L){m=L}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,1)},set:function(L){L?this.Ff=De(this.Ff,1):this.Ff=Te(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,2)},set:function(L){L?this.Ff=De(this.Ff,2):this.Ff=Te(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,3)},set:function(L){L?this.Ff=De(this.Ff,3):this.Ff=Te(this.Ff,3)}});var C=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(C!==null)return C},set:function(L){if([0,1,2].indexOf(L)===-1)throw new Error('Invalid value "'+L+'" for attribute Q supplied.');C=L}}),Object.defineProperty(this,"textAlign",{get:function(){var L;switch(C){case 0:default:L="left";break;case 1:L="center";break;case 2:L="right"}return L},configurable:!0,enumerable:!0,set:function(L){switch(L){case"right":case 2:C=2;break;case"center":case 1:C=1;break;case"left":case 0:default:C=0}}})};dn(Mn,er);var bi=function(){Mn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var a=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return a},set:function(e){a=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return uf(t,this.objId,this.scope)},set:function(e){var r,i;i=[],typeof(r=e)=="string"&&(i=function(n,s,f){f||(f=1);for(var h,g=[];h=s.exec(n);)g.push(h[f]);return g}(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,18)},set:function(e){e?this.Ff=De(this.Ff,18):this.Ff=Te(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=De(this.Ff,19):this.Ff=Te(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,20)},set:function(e){e?(this.Ff=De(this.Ff,20),t.sort()):this.Ff=Te(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,22)},set:function(e){e?this.Ff=De(this.Ff,22):this.Ff=Te(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,23)},set:function(e){e?this.Ff=De(this.Ff,23):this.Ff=Te(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,27)},set:function(e){e?this.Ff=De(this.Ff,27):this.Ff=Te(this.Ff,27)}}),this.hasAppearanceStream=!1};dn(bi,Mn);var yi=function(){bi.call(this),this.fontName="helvetica",this.combo=!1};dn(yi,bi);var wi=function(){yi.call(this),this.combo=!0};dn(wi,yi);var ro=function(){wi.call(this),this.edit=!0};dn(ro,wi);var Ve=function(){Mn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,15)},set:function(e){e?this.Ff=De(this.Ff,15):this.Ff=Te(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,16)},set:function(e){e?this.Ff=De(this.Ff,16):this.Ff=Te(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,17)},set:function(e){e?this.Ff=De(this.Ff,17):this.Ff=Te(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,26)},set:function(e){e?this.Ff=De(this.Ff,26):this.Ff=Te(this.Ff,26)}});var a,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(n){return n};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+Yr(e(t[r]))+")");return i.push(">>"),i.join("\n")}},set:function(e){(0,Ae.A)(e)==="object"&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){typeof e=="string"&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return a},set:function(e){a=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return a.substr(1,a.length-1)},set:function(e){a="/"+e}})};dn(Ve,Mn);var io=function(){Ve.call(this),this.pushButton=!0};dn(io,Ve);var Ai=function(){Ve.call(this),this.radio=!0,this.pushButton=!1;var a=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return a},set:function(t){a=t!==void 0?t:[]}})};dn(Ai,Ve);var ao=function(){var a,t;Mn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return a},set:function(i){a=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(f){return f};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var n,s=[];for(n in s.push("<<"),r)s.push("/"+n+" ("+Yr(i(r[n]))+")");return s.push(">>"),s.join("\n")},set:function(i){(0,Ae.A)(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(i){e="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=zt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};dn(ao,Mn),Ai.prototype.setAppearance=function(a){if(!("createAppearanceStream"in a)||!("getCA"in a))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=a.createAppearanceStream(e.optionName),e.caption=a.getCA()}},Ai.prototype.createOption=function(a){var t=new ao;return t.Parent=this,t.optionName=a,this.Kids.push(t),Wu.call(this.scope,t),t};var oo=function(){Ve.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=zt.CheckBox.createAppearanceStream()};dn(oo,Ve);var Jr=function(){Mn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,13)},set:function(t){t?this.Ff=De(this.Ff,13):this.Ff=Te(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,21)},set:function(t){t?this.Ff=De(this.Ff,21):this.Ff=Te(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,23)},set:function(t){t?this.Ff=De(this.Ff,23):this.Ff=Te(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,24)},set:function(t){t?this.Ff=De(this.Ff,24):this.Ff=Te(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,25)},set:function(t){t?this.Ff=De(this.Ff,25):this.Ff=Te(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,26)},set:function(t){t?this.Ff=De(this.Ff,26):this.Ff=Te(this.Ff,26)}});var a=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return a},set:function(t){a=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){Number.isInteger(t)&&(a=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};dn(Jr,Mn);var so=function(){Jr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Be(this.Ff,14)},set:function(a){a?this.Ff=De(this.Ff,14):this.Ff=Te(this.Ff,14)}}),this.password=!0};dn(so,Jr);var zt={CheckBox:{createAppearanceStream:function(){return{N:{On:zt.CheckBox.YesNormal},D:{On:zt.CheckBox.YesPushDown,Off:zt.CheckBox.OffPushDown}}},YesPushDown:function(a){var t=tr(a);t.scope=a.scope;var e=[],r=a.scope.internal.getFont(a.fontName,a.fontStyle).id,i=a.scope.__private__.encodeColorString(a.color),n=Is(a,a.caption);return e.push("0.749023 g"),e.push("0 0 "+$t(zt.internal.getWidth(a))+" "+$t(zt.internal.getHeight(a))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+$t(n.fontSize)+" Tf "+i),e.push("BT"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join("\n"),t},YesNormal:function(a){var t=tr(a);t.scope=a.scope;var e=a.scope.internal.getFont(a.fontName,a.fontStyle).id,r=a.scope.__private__.encodeColorString(a.color),i=[],n=zt.internal.getHeight(a),s=zt.internal.getWidth(a),f=Is(a,a.caption);return i.push("1 g"),i.push("0 0 "+$t(s)+" "+$t(n)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+$t(s-1)+" "+$t(n-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+e+" "+$t(f.fontSize)+" Tf "+r),i.push(f.text),i.push("ET"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(a){var t=tr(a);t.scope=a.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+$t(zt.internal.getWidth(a))+" "+$t(zt.internal.getHeight(a))+" re"),e.push("f"),t.stream=e.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(a){var t={D:{Off:zt.RadioButton.Circle.OffPushDown},N:{}};return t.N[a]=zt.RadioButton.Circle.YesNormal,t.D[a]=zt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(a){var t=tr(a);t.scope=a.scope;var e=[],r=zt.internal.getWidth(a)<=zt.internal.getHeight(a)?zt.internal.getWidth(a)/4:zt.internal.getHeight(a)/4;r=Number((.9*r).toFixed(5));var i=zt.internal.Bezier_C,n=Number((r*i).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+Cr(zt.internal.getWidth(a)/2)+" "+Cr(zt.internal.getHeight(a)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+n+" "+n+" "+r+" 0 "+r+" c"),e.push("-"+n+" "+r+" -"+r+" "+n+" -"+r+" 0 c"),e.push("-"+r+" -"+n+" -"+n+" -"+r+" 0 -"+r+" c"),e.push(n+" -"+r+" "+r+" -"+n+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(a){var t=tr(a);t.scope=a.scope;var e=[],r=zt.internal.getWidth(a)<=zt.internal.getHeight(a)?zt.internal.getWidth(a)/4:zt.internal.getHeight(a)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),n=Number((i*zt.internal.Bezier_C).toFixed(5)),s=Number((r*zt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Cr(zt.internal.getWidth(a)/2)+" "+Cr(zt.internal.getHeight(a)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+n+" "+n+" "+i+" 0 "+i+" c"),e.push("-"+n+" "+i+" -"+i+" "+n+" -"+i+" 0 c"),e.push("-"+i+" -"+n+" -"+n+" -"+i+" 0 -"+i+" c"),e.push(n+" -"+i+" "+i+" -"+n+" "+i+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+Cr(zt.internal.getWidth(a)/2)+" "+Cr(zt.internal.getHeight(a)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),e.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),e.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),e.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},OffPushDown:function(a){var t=tr(a);t.scope=a.scope;var e=[],r=zt.internal.getWidth(a)<=zt.internal.getHeight(a)?zt.internal.getWidth(a)/4:zt.internal.getHeight(a)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),n=Number((i*zt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Cr(zt.internal.getWidth(a)/2)+" "+Cr(zt.internal.getHeight(a)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+n+" "+n+" "+i+" 0 "+i+" c"),e.push("-"+n+" "+i+" -"+i+" "+n+" -"+i+" 0 c"),e.push("-"+i+" -"+n+" -"+n+" -"+i+" 0 -"+i+" c"),e.push(n+" -"+i+" "+i+" -"+n+" "+i+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t}},Cross:{createAppearanceStream:function(a){var t={D:{Off:zt.RadioButton.Cross.OffPushDown},N:{}};return t.N[a]=zt.RadioButton.Cross.YesNormal,t.D[a]=zt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(a){var t=tr(a);t.scope=a.scope;var e=[],r=zt.internal.calculateCross(a);return e.push("q"),e.push("1 1 "+$t(zt.internal.getWidth(a)-2)+" "+$t(zt.internal.getHeight(a)-2)+" re"),e.push("W"),e.push("n"),e.push($t(r.x1.x)+" "+$t(r.x1.y)+" m"),e.push($t(r.x2.x)+" "+$t(r.x2.y)+" l"),e.push($t(r.x4.x)+" "+$t(r.x4.y)+" m"),e.push($t(r.x3.x)+" "+$t(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(a){var t=tr(a);t.scope=a.scope;var e=zt.internal.calculateCross(a),r=[];return r.push("0.749023 g"),r.push("0 0 "+$t(zt.internal.getWidth(a))+" "+$t(zt.internal.getHeight(a))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+$t(zt.internal.getWidth(a)-2)+" "+$t(zt.internal.getHeight(a)-2)+" re"),r.push("W"),r.push("n"),r.push($t(e.x1.x)+" "+$t(e.x1.y)+" m"),r.push($t(e.x2.x)+" "+$t(e.x2.y)+" l"),r.push($t(e.x4.x)+" "+$t(e.x4.y)+" m"),r.push($t(e.x3.x)+" "+$t(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(a){var t=tr(a);t.scope=a.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+$t(zt.internal.getWidth(a))+" "+$t(zt.internal.getHeight(a))+" re"),e.push("f"),t.stream=e.join("\n"),t}}},createDefaultAppearanceStream:function(a){var t=a.scope.internal.getFont(a.fontName,a.fontStyle).id,e=a.scope.__private__.encodeColorString(a.color);return"/"+t+" "+a.fontSize+" Tf "+e}};zt.internal={Bezier_C:.551915024494,calculateCross:function(a){var t=zt.internal.getWidth(a),e=zt.internal.getHeight(a),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},zt.internal.getWidth=function(a){var t=0;return(0,Ae.A)(a)==="object"&&(t=ff(a.Rect[2])),t},zt.internal.getHeight=function(a){var t=0;return(0,Ae.A)(a)==="object"&&(t=ff(a.Rect[3])),t};var Wu=Ce.addField=function(a){if(Hu(this,a),!(a instanceof Mn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=a).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),a.page=a.scope.internal.getCurrentPageInfo().pageNumber,this};Ce.AcroFormChoiceField=bi,Ce.AcroFormListBox=yi,Ce.AcroFormComboBox=wi,Ce.AcroFormEditBox=ro,Ce.AcroFormButton=Ve,Ce.AcroFormPushButton=io,Ce.AcroFormRadioButton=Ai,Ce.AcroFormCheckBox=oo,Ce.AcroFormTextField=Jr,Ce.AcroFormPasswordField=so,Ce.AcroFormAppearance=zt,Ce.AcroForm={ChoiceField:bi,ListBox:yi,ComboBox:wi,EditBox:ro,Button:Ve,PushButton:io,RadioButton:Ai,CheckBox:oo,TextField:Jr,PasswordField:so,Appearance:zt},Zt.AcroForm={ChoiceField:bi,ListBox:yi,ComboBox:wi,EditBox:ro,Button:Ve,PushButton:io,RadioButton:Ai,CheckBox:oo,TextField:Jr,PasswordField:so,Appearance:zt};var Uc=Zt.AcroForm;function df(a){return a.reduce(function(t,e,r){return t[e]=r,t},{})}(function(a){a.__addimage__={};var t="UNKNOWN",e={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=a.__addimage__.getImageFileTypeByImageData=function(S,x){var y,F,Y,E,T,Q=t;if((x=x||t)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(R(S))for(T in e)for(Y=e[T],y=0;y<Y.length;y+=1){for(E=!0,F=0;F<Y[y].length;F+=1)if(Y[y][F]!==void 0&&Y[y][F]!==S[F]){E=!1;break}if(E===!0){Q=T;break}}else for(T in e)for(Y=e[T],y=0;y<Y.length;y+=1){for(E=!0,F=0;F<Y[y].length;F+=1)if(Y[y][F]!==void 0&&Y[y][F]!==S.charCodeAt(F)){E=!1;break}if(E===!0){Q=T;break}}return Q===t&&x!==t&&(Q=x),Q},i=function S(x){for(var y=this.internal.write,F=this.internal.putStream,Y=(0,this.internal.getFilters)();Y.indexOf("FlateEncode")!==-1;)Y.splice(Y.indexOf("FlateEncode"),1);x.objectId=this.internal.newObject();var E=[];if(E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Image"}),E.push({key:"Width",value:x.width}),E.push({key:"Height",value:x.height}),x.colorSpace===C.INDEXED?E.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(x.palette.length/3-1)+" "+("sMask"in x&&x.sMask!==void 0?x.objectId+2:x.objectId+1)+" 0 R]"}):(E.push({key:"ColorSpace",value:"/"+x.colorSpace}),x.colorSpace===C.DEVICE_CMYK&&E.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),E.push({key:"BitsPerComponent",value:x.bitsPerComponent}),"decodeParameters"in x&&x.decodeParameters!==void 0&&E.push({key:"DecodeParms",value:"<<"+x.decodeParameters+">>"}),"transparency"in x&&Array.isArray(x.transparency)){for(var T="",Q=0,J=x.transparency.length;Q<J;Q++)T+=x.transparency[Q]+" "+x.transparency[Q]+" ";E.push({key:"Mask",value:"["+T+"]"})}x.sMask!==void 0&&E.push({key:"SMask",value:x.objectId+1+" 0 R"});var B=x.filter!==void 0?["/"+x.filter]:void 0;if(F({data:x.data,additionalKeyValues:E,alreadyAppliedFilters:B,objectId:x.objectId}),y("endobj"),"sMask"in x&&x.sMask!==void 0){var tt="/Predictor "+x.predictor+" /Colors 1 /BitsPerComponent "+x.bitsPerComponent+" /Columns "+x.width,P={width:x.width,height:x.height,colorSpace:"DeviceGray",bitsPerComponent:x.bitsPerComponent,decodeParameters:tt,data:x.sMask};"filter"in x&&(P.filter=x.filter),S.call(this,P)}if(x.colorSpace===C.INDEXED){var q=this.internal.newObject();F({data:N(new Uint8Array(x.palette)),objectId:q}),y("endobj")}},n=function(){var S=this.internal.collections.addImage_images;for(var x in S)i.call(this,S[x])},s=function(){var S,x=this.internal.collections.addImage_images,y=this.internal.write;for(var F in x)y("/I"+(S=x[F]).index,S.objectId,"0","R")},f=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",n),this.internal.events.subscribe("putXobjectDict",s))},h=function(){var S=this.internal.collections.addImage_images;return f.call(this),S},g=function(){return Object.keys(this.internal.collections.addImage_images).length},p=function(S){return typeof a["process"+S.toUpperCase()]=="function"},u=function(S){return(0,Ae.A)(S)==="object"&&S.nodeType===1},c=function(S,x){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var y=""+S.getAttribute("src");if(y.indexOf("data:image/")===0)return oa(unescape(y).split("base64,").pop());var F=a.loadFile(y,!0);if(F!==void 0)return F}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var Y;switch(x){case"PNG":Y="image/png";break;case"WEBP":Y="image/webp";break;case"JPEG":case"JPG":default:Y="image/jpeg"}return oa(S.toDataURL(Y,1).split("base64,").pop())}},l=function(S){var x=this.internal.collections.addImage_images;if(x){for(var y in x)if(S===x[y].alias)return x[y]}},m=function(S,x,y){return S||x||(S=-96,x=-96),S<0&&(S=-1*y.width*72/S/this.internal.scaleFactor),x<0&&(x=-1*y.height*72/x/this.internal.scaleFactor),S===0&&(S=x*y.width/y.height),x===0&&(x=S*y.height/y.width),[S,x]},A=function(S,x,y,F,Y,E){var T=m.call(this,y,F,Y),Q=this.internal.getCoordinateString,J=this.internal.getVerticalCoordinateString,B=h.call(this);if(y=T[0],F=T[1],B[Y.index]=Y,E){E*=Math.PI/180;var tt=Math.cos(E),P=Math.sin(E),q=function(H){return H.toFixed(4)},z=[q(tt),q(P),q(-1*P),q(tt),0,0,"cm"]}this.internal.write("q"),E?(this.internal.write([1,"0","0",1,Q(S),J(x+F),"cm"].join(" ")),this.internal.write(z.join(" ")),this.internal.write([Q(y),"0","0",Q(F),"0","0","cm"].join(" "))):this.internal.write([Q(y),"0","0",Q(F),Q(S),J(x+F),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Y.index+" Do"),this.internal.write("Q")},C=a.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};a.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var L=a.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},D=a.__addimage__.sHashCode=function(S){var x,y,F=0;if(typeof S=="string")for(y=S.length,x=0;x<y;x++)F=(F<<5)-F+S.charCodeAt(x),F|=0;else if(R(S))for(y=S.byteLength/2,x=0;x<y;x++)F=(F<<5)-F+S[x],F|=0;return F},k=a.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var x=!0;return S.length===0&&(x=!1),S.length%4!=0&&(x=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(x=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(x=!1),x},O=a.__addimage__.extractImageFromDataUrl=function(S){var x=(S=S||"").split("base64,"),y=null;if(x.length===2){var F=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(x[0]);Array.isArray(F)&&(y={mimeType:F[1],charset:F[2],data:x[1]})}return y},_=a.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};a.__addimage__.isArrayBuffer=function(S){return _()&&S instanceof ArrayBuffer};var R=a.__addimage__.isArrayBufferView=function(S){return _()&&typeof Uint32Array<"u"&&(S instanceof Int8Array||S instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array)},V=a.__addimage__.binaryStringToUint8Array=function(S){for(var x=S.length,y=new Uint8Array(x),F=0;F<x;F++)y[F]=S.charCodeAt(F);return y},N=a.__addimage__.arrayBufferToBinaryString=function(S){for(var x="",y=R(S)?S:new Uint8Array(S),F=0;F<y.length;F+=8192)x+=String.fromCharCode.apply(null,y.subarray(F,F+8192));return x};a.addImage=function(){var S,x,y,F,Y,E,T,Q,J;if(typeof arguments[1]=="number"?(x=t,y=arguments[1],F=arguments[2],Y=arguments[3],E=arguments[4],T=arguments[5],Q=arguments[6],J=arguments[7]):(x=arguments[1],y=arguments[2],F=arguments[3],Y=arguments[4],E=arguments[5],T=arguments[6],Q=arguments[7],J=arguments[8]),(0,Ae.A)(S=arguments[0])==="object"&&!u(S)&&"imageData"in S){var B=S;S=B.imageData,x=B.format||x||t,y=B.x||y||0,F=B.y||F||0,Y=B.w||B.width||Y,E=B.h||B.height||E,T=B.alias||T,Q=B.compression||Q,J=B.rotation||B.angle||J}var tt=this.internal.getFilters();if(Q===void 0&&tt.indexOf("FlateEncode")!==-1&&(Q="SLOW"),isNaN(y)||isNaN(F))throw new Error("Invalid coordinates passed to jsPDF.addImage");f.call(this);var P=j.call(this,S,x,T,Q);return A.call(this,y,F,Y,E,P,J),this};var j=function(S,x,y,F){var Y,E,T;if(typeof S=="string"&&r(S)===t){S=unescape(S);var Q=v(S,!1);(Q!==""||(Q=a.loadFile(S,!0))!==void 0)&&(S=Q)}if(u(S)&&(S=c(S,x)),x=r(S,x),!p(x))throw new Error("addImage does not support files of type '"+x+"', please ensure that a plugin for '"+x+"' support is added.");if(((T=y)==null||T.length===0)&&(y=function(J){return typeof J=="string"||R(J)?D(J):R(J.data)?D(J.data):null}(S)),(Y=l.call(this,y))||(_()&&(S instanceof Uint8Array||x==="RGBA"||(E=S,S=V(S))),Y=this["process"+x.toUpperCase()](S,g.call(this),y,function(J){return J&&typeof J=="string"&&(J=J.toUpperCase()),J in a.image_compression?J:L.NONE}(F),E)),!Y)throw new Error("An unknown error occurred whilst processing the image.");return Y},v=a.__addimage__.convertBase64ToBinaryString=function(S,x){var y;x=typeof x!="boolean"||x;var F,Y="";if(typeof S=="string"){F=(y=O(S))!==null?y.data:S;try{Y=oa(F)}catch(E){if(x)throw k(F)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+E.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Y};a.getImageProperties=function(S){var x,y,F="";if(u(S)&&(S=c(S)),typeof S=="string"&&r(S)===t&&((F=v(S,!1))===""&&(F=a.loadFile(S)||""),S=F),y=r(S),!p(y))throw new Error("addImage does not support files of type '"+y+"', please ensure that a plugin for '"+y+"' support is added.");if(!_()||S instanceof Uint8Array||(S=V(S)),!(x=this["process"+y.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return x.fileType=y,x}})(Zt.API),function(a){var t=function(e){if(e!==void 0&&e!="")return!0};Zt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),a.events.push(["putPage",function(e){for(var r,i,n,s=this.internal.getCoordinateString,f=this.internal.getVerticalCoordinateString,h=this.internal.getPageInfoByObjId(e.objId),g=e.pageContext.annotations,p=!1,u=0;u<g.length&&!p;u++)switch((r=g[u]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(p=!0);break;case"reference":case"text":case"freetext":p=!0}if(p!=0){this.internal.write("/Annots [");for(var c=0;c<g.length;c++){r=g[c];var l=this.internal.pdfEscape,m=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var A=this.internal.newAdditionalObject(),C=this.internal.newAdditionalObject(),L=this.internal.getEncryptor(A.objId),D=r.title||"Note";n="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(r.bounds.x)+" "+f(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+f(r.bounds.y)+"] ")+"/Contents ("+l(L(r.contents))+")",n+=" /Popup "+C.objId+" 0 R",n+=" /P "+h.objId+" 0 R",n+=" /T ("+l(L(D))+") >>",A.content=n;var k=A.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(r.bounds.x+30)+" "+f(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+f(r.bounds.y)+"] ")+" /Parent "+k,r.open&&(n+=" /Open true"),n+=" >>",C.content=n,this.internal.write(A.objId,"0 R",C.objId,"0 R");break;case"freetext":i="/Rect ["+s(r.bounds.x)+" "+f(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+f(r.bounds.y+r.bounds.h)+"] ";var O=r.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+l(m(r.contents))+")",n+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+O+")",n+=" /Border [0 0 0]",n+=" >>",this.internal.write(n);break;case"link":if(r.options.name){var _=this.annotations._nameMap[r.options.name];r.options.pageNumber=_.page,r.options.top=_.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",n="",r.options.url)n="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+l(m(r.options.url))+") >>";else if(r.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,n+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var R=f(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),n+=" /XYZ "+r.options.left+" "+R+" "+r.options.zoom+"]"}n!=""&&(n+=" >>",this.internal.write(n))}}this.internal.write("]")}}]),a.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},a.link=function(e,r,i,n,s){var f=this.internal.getCurrentPageInfo(),h=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;f.pageContext.annotations.push({finalBounds:{x:h(e),y:g(r),w:h(e+i),h:g(r+n)},options:s,type:"link"})},a.textWithLink=function(e,r,i,n){var s,f,h=this.getTextWidth(e),g=this.internal.getLineHeight()/this.internal.scaleFactor;if(n.maxWidth!==void 0){f=n.maxWidth;var p=this.splitTextToSize(e,f).length;s=Math.ceil(g*p)}else f=h,s=g;return this.text(e,r,i,n),i+=.2*g,n.align==="center"&&(r-=h/2),n.align==="right"&&(r-=h),this.link(r,i-g,f,s,n),h},a.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}}(Zt.API),function(a){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];a.__arabicParser__={};var n=a.__arabicParser__.isInArabicSubstitutionA=function(A){return t[A.charCodeAt(0)]!==void 0},s=a.__arabicParser__.isArabicLetter=function(A){return typeof A=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(A)},f=a.__arabicParser__.isArabicEndLetter=function(A){return s(A)&&n(A)&&t[A.charCodeAt(0)].length<=2},h=a.__arabicParser__.isArabicAlfLetter=function(A){return s(A)&&i.indexOf(A.charCodeAt(0))>=0};a.__arabicParser__.arabicLetterHasIsolatedForm=function(A){return s(A)&&n(A)&&t[A.charCodeAt(0)].length>=1};var g=a.__arabicParser__.arabicLetterHasFinalForm=function(A){return s(A)&&n(A)&&t[A.charCodeAt(0)].length>=2};a.__arabicParser__.arabicLetterHasInitialForm=function(A){return s(A)&&n(A)&&t[A.charCodeAt(0)].length>=3};var p=a.__arabicParser__.arabicLetterHasMedialForm=function(A){return s(A)&&n(A)&&t[A.charCodeAt(0)].length==4},u=a.__arabicParser__.resolveLigatures=function(A){var C=0,L=e,D="",k=0;for(C=0;C<A.length;C+=1)L[A.charCodeAt(C)]!==void 0?(k++,typeof(L=L[A.charCodeAt(C)])=="number"&&(D+=String.fromCharCode(L),L=e,k=0),C===A.length-1&&(L=e,D+=A.charAt(C-(k-1)),C-=k-1,k=0)):(L=e,D+=A.charAt(C-k),C-=k,k=0);return D};a.__arabicParser__.isArabicDiacritic=function(A){return A!==void 0&&r[A.charCodeAt(0)]!==void 0};var c=a.__arabicParser__.getCorrectForm=function(A,C,L){return s(A)?n(A)===!1?-1:!g(A)||!s(C)&&!s(L)||!s(L)&&f(C)||f(A)&&!s(C)||f(A)&&h(C)||f(A)&&f(C)?0:p(A)&&s(C)&&!f(C)&&s(L)&&g(L)?3:f(A)||!s(L)?1:2:-1},l=function(A){var C=0,L=0,D=0,k="",O="",_="",R=(A=A||"").split("\\s+"),V=[];for(C=0;C<R.length;C+=1){for(V.push(""),L=0;L<R[C].length;L+=1)k=R[C][L],O=R[C][L-1],_=R[C][L+1],s(k)?(D=c(k,O,_),V[C]+=D!==-1?String.fromCharCode(t[k.charCodeAt(0)][D]):k):V[C]+=k;V[C]=u(V[C])}return V.join(" ")},m=a.__arabicParser__.processArabic=a.processArabic=function(){var A,C=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,L=[];if(Array.isArray(C)){var D=0;for(L=[],D=0;D<C.length;D+=1)Array.isArray(C[D])?L.push([l(C[D][0]),C[D][1],C[D][2]]):L.push([l(C[D])]);A=L}else A=l(C);return typeof arguments[0]=="string"?A:(arguments[0].text=A,arguments[0])};a.events.push(["preProcessText",m])}(Zt.API),Zt.API.autoPrint=function(a){var t;switch((a=a||{}).variant=a.variant||"non-conform",a.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(a){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(f){e=f}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(f){r=isNaN(f)||Number.isInteger(f)===!1||f<0?150:f,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(f){i=isNaN(f)||Number.isInteger(f)===!1||f<0?300:f,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(f){n=f}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(f){s=f}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,r){var i;if((e=e||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},a.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Zt.API),function(a){var t={left:0,top:0,bottom:0,right:0},e=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new n,this.internal.__cell__.pages=1},n=function(){var h=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return h},set:function(A){h=A}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(A){g=A}});var p=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return p},set:function(A){p=A}});var u=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return u},set:function(A){u=A}});var c=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return c},set:function(A){c=A}});var l=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return l},set:function(A){l=A}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(A){m=A}}),this};n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},n.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},a.setHeaderFunction=function(h){return r.call(this),this.internal.__cell__.headerFunction=typeof h=="function"?h:void 0,this},a.getTextDimensions=function(h,g){r.call(this);var p=(g=g||{}).fontSize||this.getFontSize(),u=g.font||this.getFont(),c=g.scaleFactor||this.internal.scaleFactor,l=0,m=0,A=0,C=this;if(!Array.isArray(h)&&typeof h!="string"){if(typeof h!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");h=String(h)}var L=g.maxWidth;L>0?typeof h=="string"?h=this.splitTextToSize(h,L):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(k,O){return k.concat(C.splitTextToSize(O,L))},[])):h=Array.isArray(h)?h:[h];for(var D=0;D<h.length;D++)l<(A=this.getStringUnitWidth(h[D],{font:u})*p)&&(l=A);return l!==0&&(m=h.length),{w:l/=c,h:Math.max((m*p*this.getLineHeightFactor()-p*(this.getLineHeightFactor()-1))/c,0)}},a.cellAddPage=function(){r.call(this),this.addPage();var h=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new n(h.left,h.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=a.cell=function(){var h;h=arguments[0]instanceof n?arguments[0]:new n(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var g=this.internal.__cell__.lastCell,p=this.internal.__cell__.padding,u=this.internal.__cell__.margins||t,c=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return g.lineNumber!==void 0&&(g.lineNumber===h.lineNumber?(h.x=(g.x||0)+(g.width||0),h.y=g.y||0):g.y+g.height+h.height+u.bottom>this.getPageHeight()?(this.cellAddPage(),h.y=u.top,l&&c&&(this.printHeaderRow(h.lineNumber,!0),h.y+=c[0].height)):h.y=g.y+g.height||h.y),h.text[0]!==void 0&&(this.rect(h.x,h.y,h.width,h.height,e===!0?"FD":void 0),h.align==="right"?this.text(h.text,h.x+h.width-p,h.y+p,{align:"right",baseline:"top"}):h.align==="center"?this.text(h.text,h.x+h.width/2,h.y+p,{align:"center",baseline:"top",maxWidth:h.width-p-p}):this.text(h.text,h.x+p,h.y+p,{align:"left",baseline:"top",maxWidth:h.width-p-p})),this.internal.__cell__.lastCell=h,this};a.table=function(h,g,p,u,c){if(r.call(this),!p)throw new Error("No data for PDF table.");var l,m,A,C,L=[],D=[],k=[],O={},_={},R=[],V=[],N=(c=c||{}).autoSize||!1,j=c.printHeaders!==!1,v=c.css&&c.css["font-size"]!==void 0?16*c.css["font-size"]:c.fontSize||12,S=c.margins||Object.assign({width:this.getPageWidth()},t),x=typeof c.padding=="number"?c.padding:3,y=c.headerBackgroundColor||"#c8c8c8",F=c.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=j,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=v,this.internal.__cell__.padding=x,this.internal.__cell__.headerBackgroundColor=y,this.internal.__cell__.headerTextColor=F,this.setFontSize(v),u==null)D=L=Object.keys(p[0]),k=L.map(function(){return"left"});else if(Array.isArray(u)&&(0,Ae.A)(u[0])==="object")for(L=u.map(function(B){return B.name}),D=u.map(function(B){return B.prompt||B.name||""}),k=u.map(function(B){return B.align||"left"}),l=0;l<u.length;l+=1)_[u[l].name]=u[l].width*(19.049976/25.4);else Array.isArray(u)&&typeof u[0]=="string"&&(D=L=u,k=L.map(function(){return"left"}));if(N||Array.isArray(u)&&typeof u[0]=="string")for(l=0;l<L.length;l+=1){for(O[C=L[l]]=p.map(function(B){return B[C]}),this.setFont(void 0,"bold"),R.push(this.getTextDimensions(D[l],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),m=O[C],this.setFont(void 0,"normal"),A=0;A<m.length;A+=1)R.push(this.getTextDimensions(m[A],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);_[C]=Math.max.apply(null,R)+x+x,R=[]}if(j){var Y={};for(l=0;l<L.length;l+=1)Y[L[l]]={},Y[L[l]].text=D[l],Y[L[l]].align=k[l];var E=f.call(this,Y,_);V=L.map(function(B){return new n(h,g,_[B],E,Y[B].text,void 0,Y[B].align)}),this.setTableHeaderRow(V),this.printHeaderRow(1,!1)}var T=u.reduce(function(B,tt){return B[tt.name]=tt.align,B},{});for(l=0;l<p.length;l+=1){"rowStart"in c&&c.rowStart instanceof Function&&c.rowStart({row:l,data:p[l]},this);var Q=f.call(this,p[l],_);for(A=0;A<L.length;A+=1){var J=p[l][L[A]];"cellStart"in c&&c.cellStart instanceof Function&&c.cellStart({row:l,col:A,data:J},this),s.call(this,new n(h,g,_[L[A]],Q,J,l+2,T[L[A]]))}}return this.internal.__cell__.table_x=h,this.internal.__cell__.table_y=g,this};var f=function(h,g){var p=this.internal.__cell__.padding,u=this.internal.__cell__.table_font_size,c=this.internal.scaleFactor;return Object.keys(h).map(function(l){var m=h[l];return this.splitTextToSize(m.hasOwnProperty("text")?m.text:m,g[l]-p-p)},this).map(function(l){return this.getLineHeightFactor()*l.length*u/c+p+p},this).reduce(function(l,m){return Math.max(l,m)},0)};a.setTableHeaderRow=function(h){r.call(this),this.internal.__cell__.tableHeaderRow=h},a.printHeaderRow=function(h,g){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var p;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var u=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new n(u[0],u[1],u[2],u[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){p=this.internal.__cell__.tableHeaderRow[l].clone(),g&&(p.y=this.internal.__cell__.margins.top||0,c.push(p)),p.lineNumber=h;var m=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,p),this.setTextColor(m)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),e=!1}}(Zt.API);var pf={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},gf=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Fs=df(gf),vf=[100,200,300,400,500,600,700,800,900],Gu=df(vf);function Es(a){var t=a.family.replace(/"|'/g,"").toLowerCase(),e=function(n){return pf[n=n||"normal"]?n:"normal"}(a.style),r=function(n){if(!n)return 400;if(typeof n=="number")return n>=100&&n<=900&&n%100==0?n:400;if(/^\d00$/.test(n))return parseInt(n);switch(n){case"bold":return 700;case"normal":default:return 400}}(a.weight),i=function(n){return typeof Fs[n=n||"normal"]=="number"?n:"normal"}(a.stretch);return{family:t,style:e,weight:r,stretch:i,src:a.src||[],ref:a.ref||{name:t,style:[i,e,r].join(" ")}}}function mf(a,t,e,r){var i;for(i=e;i>=0&&i<t.length;i+=r)if(a[t[i]])return a[t[i]];for(i=e;i>=0&&i<t.length;i-=r)if(a[t[i]])return a[t[i]]}var Vu={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},bf={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function yf(a){return[a.stretch,a.style,a.weight,a.family].join(" ")}function Zu(a,t,e){for(var r=(e=e||{}).defaultFontFamily||"times",i=Object.assign({},Vu,e.genericFontFamilies||{}),n=null,s=null,f=0;f<t.length;++f)if(i[(n=Es(t[f])).family]&&(n.family=i[n.family]),a.hasOwnProperty(n.family)){s=a[n.family];break}if(!(s=s||a[r]))throw new Error("Could not find a font-family for the rule '"+yf(n)+"' and default family '"+r+"'.");if(s=function(h,g){if(g[h])return g[h];var p=Fs[h],u=p<=Fs.normal?-1:1,c=mf(g,gf,p,u);if(!c)throw new Error("Could not find a matching font-stretch value for "+h);return c}(n.stretch,s),s=function(h,g){if(g[h])return g[h];for(var p=pf[h],u=0;u<p.length;++u)if(g[p[u]])return g[p[u]];throw new Error("Could not find a matching font-style for "+h)}(n.style,s),!(s=function(h,g){if(g[h])return g[h];if(h===400&&g[500])return g[500];if(h===500&&g[400])return g[400];var p=Gu[h],u=mf(g,vf,p,h<400?-1:1);if(!u)throw new Error("Could not find a matching font-weight for value "+h);return u}(n.weight,s)))throw new Error("Failed to resolve a font for the rule '"+yf(n)+"'.");return s}function wf(a){return a.trimLeft()}function Yu(a,t){for(var e=0;e<a.length;){if(a.charAt(e)===t)return[a.substring(0,e),a.substring(e+1)];e+=1}return null}function Ju(a){var t=a.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],a.substring(t[0].length)]}var lo,Af,_f,Os=["times"];(function(a){var t,e,r,i,n,s,f,h,g,p=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new h,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new s,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new s,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.ignoreClearRect,this};a.events.push(["initialized",function(){this.context2d=new u(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,s=this.internal.Point,f=this.internal.Rectangle,h=this.internal.Matrix,g=new p}]);var u=function(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var q=P;Object.defineProperty(this,"pdf",{get:function(){return q}});var z=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return z},set:function(pt){z=!!pt}});var H=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(pt){H=!!pt}});var K=0;Object.defineProperty(this,"posX",{get:function(){return K},set:function(pt){isNaN(pt)||(K=pt)}});var rt=0;Object.defineProperty(this,"posY",{get:function(){return rt},set:function(pt){isNaN(pt)||(rt=pt)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(pt){var nt;typeof pt=="number"?nt=[pt,pt,pt,pt]:((nt=new Array(4))[0]=pt[0],nt[1]=pt.length>=2?pt[1]:nt[0],nt[2]=pt.length>=3?pt[2]:nt[0],nt[3]=pt.length>=4?pt[3]:nt[1]),g.margin=nt}});var it=!1;Object.defineProperty(this,"autoPaging",{get:function(){return it},set:function(pt){it=pt}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(pt){at=pt}});var gt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gt},set:function(pt){gt=pt}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(pt){pt instanceof p&&(g=pt)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(pt){g.path=pt}});var mt=[];Object.defineProperty(this,"ctxStack",{get:function(){return mt},set:function(pt){mt=pt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(pt){var nt;nt=c(pt),this.ctx.fillStyle=nt.style,this.ctx.isFillTransparent=nt.a===0,this.ctx.fillOpacity=nt.a,this.pdf.setFillColor(nt.r,nt.g,nt.b,{a:nt.a}),this.pdf.setTextColor(nt.r,nt.g,nt.b,{a:nt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(pt){var nt=c(pt);this.ctx.strokeStyle=nt.style,this.ctx.isStrokeTransparent=nt.a===0,this.ctx.strokeOpacity=nt.a,nt.a===0?this.pdf.setDrawColor(255,255,255):(nt.a,this.pdf.setDrawColor(nt.r,nt.g,nt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(pt){["butt","round","square"].indexOf(pt)!==-1&&(this.ctx.lineCap=pt,this.pdf.setLineCap(pt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(pt){isNaN(pt)||(this.ctx.lineWidth=pt,this.pdf.setLineWidth(pt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(pt){["bevel","round","miter"].indexOf(pt)!==-1&&(this.ctx.lineJoin=pt,this.pdf.setLineJoin(pt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(pt){isNaN(pt)||(this.ctx.miterLimit=pt,this.pdf.setMiterLimit(pt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(pt){this.ctx.textBaseline=pt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(pt){["right","end","center","left","start"].indexOf(pt)!==-1&&(this.ctx.textAlign=pt)}});var Nt=null;function Ct(pt,nt){if(Nt===null){var Tt=function(It){var yt=[];return Object.keys(It).forEach(function(St){It[St].forEach(function(Pt){var xt=null;switch(Pt){case"bold":xt={family:St,weight:"bold"};break;case"italic":xt={family:St,style:"italic"};break;case"bolditalic":xt={family:St,weight:"bold",style:"italic"};break;case"":case"normal":xt={family:St}}xt!==null&&(xt.ref={name:St,style:Pt},yt.push(xt))})}),yt}(pt.getFontList());Nt=function(It){for(var yt={},St=0;St<It.length;++St){var Pt=Es(It[St]),xt=Pt.family,Et=Pt.stretch,Dt=Pt.style,Ut=Pt.weight;yt[xt]=yt[xt]||{},yt[xt][Et]=yt[xt][Et]||{},yt[xt][Et][Dt]=yt[xt][Et][Dt]||{},yt[xt][Et][Dt][Ut]=Pt}return yt}(Tt.concat(nt))}return Nt}var Mt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Mt},set:function(pt){Nt=null,Mt=pt}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(pt){var nt;if(this.ctx.font=pt,(nt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(pt))!==null){var Tt=nt[1],It=(nt[2],nt[3]),yt=nt[4],St=(nt[5],nt[6]),Pt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yt)[2];yt=Math.floor(Pt==="px"?parseFloat(yt)*this.pdf.internal.scaleFactor:Pt==="em"?parseFloat(yt)*this.pdf.getFontSize():parseFloat(yt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yt);var xt=function(qt){var Wt,Ft,ge=[],ne=qt.trim();if(ne==="")return Os;if(ne in bf)return[bf[ne]];for(;ne!=="";){switch(Ft=null,Wt=(ne=wf(ne)).charAt(0)){case'"':case"'":Ft=Yu(ne.substring(1),Wt);break;default:Ft=Ju(ne)}if(Ft===null||(ge.push(Ft[0]),(ne=wf(Ft[1]))!==""&&ne.charAt(0)!==","))return Os;ne=ne.replace(/^,/,"")}return ge}(St);if(this.fontFaces){var Et=Zu(Ct(this.pdf,this.fontFaces),xt.map(function(qt){return{family:qt,stretch:"normal",weight:It,style:Tt}}));this.pdf.setFont(Et.ref.name,Et.ref.style)}else{var Dt="";(It==="bold"||parseInt(It,10)>=700||Tt==="bold")&&(Dt="bold"),Tt==="italic"&&(Dt+="italic"),Dt.length===0&&(Dt="normal");for(var Ut="",Qt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ie=0;ie<xt.length;ie++){if(this.pdf.internal.getFont(xt[ie],Dt,{noFallback:!0,disableWarning:!0})!==void 0){Ut=xt[ie];break}if(Dt==="bolditalic"&&this.pdf.internal.getFont(xt[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ut=xt[ie],Dt="bold";else if(this.pdf.internal.getFont(xt[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ut=xt[ie],Dt="normal";break}}if(Ut===""){for(var Xt=0;Xt<xt.length;Xt++)if(Qt[xt[Xt]]){Ut=Qt[xt[Xt]];break}}Ut=Ut===""?"Times":Ut,this.pdf.setFont(Ut,Dt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(pt){this.ctx.globalCompositeOperation=pt}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(pt){this.ctx.globalAlpha=pt}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(pt){this.ctx.lineDashOffset=pt,tt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(pt){this.ctx.lineDash=pt,tt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(pt){this.ctx.ignoreClearRect=!!pt}})};u.prototype.setLineDash=function(P){this.lineDash=P},u.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},u.prototype.fill=function(){O.call(this,"fill",!1)},u.prototype.stroke=function(){O.call(this,"stroke",!1)},u.prototype.beginPath=function(){this.path=[{type:"begin"}]},u.prototype.moveTo=function(P,q){if(isNaN(P)||isNaN(q))throw _e.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var z=this.ctx.transform.applyToPoint(new s(P,q));this.path.push({type:"mt",x:z.x,y:z.y}),this.ctx.lastPoint=new s(P,q)},u.prototype.closePath=function(){var P=new s(0,0),q=0;for(q=this.path.length-1;q!==-1;q--)if(this.path[q].type==="begin"&&(0,Ae.A)(this.path[q+1])==="object"&&typeof this.path[q+1].x=="number"){P=new s(this.path[q+1].x,this.path[q+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(P.x,P.y)},u.prototype.lineTo=function(P,q){if(isNaN(P)||isNaN(q))throw _e.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var z=this.ctx.transform.applyToPoint(new s(P,q));this.path.push({type:"lt",x:z.x,y:z.y}),this.ctx.lastPoint=new s(z.x,z.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),O.call(this,null,!0)},u.prototype.quadraticCurveTo=function(P,q,z,H){if(isNaN(z)||isNaN(H)||isNaN(P)||isNaN(q))throw _e.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var K=this.ctx.transform.applyToPoint(new s(z,H)),rt=this.ctx.transform.applyToPoint(new s(P,q));this.path.push({type:"qct",x1:rt.x,y1:rt.y,x:K.x,y:K.y}),this.ctx.lastPoint=new s(K.x,K.y)},u.prototype.bezierCurveTo=function(P,q,z,H,K,rt){if(isNaN(K)||isNaN(rt)||isNaN(P)||isNaN(q)||isNaN(z)||isNaN(H))throw _e.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var it=this.ctx.transform.applyToPoint(new s(K,rt)),at=this.ctx.transform.applyToPoint(new s(P,q)),gt=this.ctx.transform.applyToPoint(new s(z,H));this.path.push({type:"bct",x1:at.x,y1:at.y,x2:gt.x,y2:gt.y,x:it.x,y:it.y}),this.ctx.lastPoint=new s(it.x,it.y)},u.prototype.arc=function(P,q,z,H,K,rt){if(isNaN(P)||isNaN(q)||isNaN(z)||isNaN(H)||isNaN(K))throw _e.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(rt=!!rt,!this.ctx.transform.isIdentity){var it=this.ctx.transform.applyToPoint(new s(P,q));P=it.x,q=it.y;var at=this.ctx.transform.applyToPoint(new s(0,z)),gt=this.ctx.transform.applyToPoint(new s(0,0));z=Math.sqrt(Math.pow(at.x-gt.x,2)+Math.pow(at.y-gt.y,2))}Math.abs(K-H)>=2*Math.PI&&(H=0,K=2*Math.PI),this.path.push({type:"arc",x:P,y:q,radius:z,startAngle:H,endAngle:K,counterclockwise:rt})},u.prototype.arcTo=function(P,q,z,H,K){throw new Error("arcTo not implemented.")},u.prototype.rect=function(P,q,z,H){if(isNaN(P)||isNaN(q)||isNaN(z)||isNaN(H))throw _e.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,q),this.lineTo(P+z,q),this.lineTo(P+z,q+H),this.lineTo(P,q+H),this.lineTo(P,q),this.lineTo(P+z,q),this.lineTo(P,q)},u.prototype.fillRect=function(P,q,z,H){if(isNaN(P)||isNaN(q)||isNaN(z)||isNaN(H))throw _e.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!l.call(this)){var K={};this.lineCap!=="butt"&&(K.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(K.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(P,q,z,H),this.fill(),K.hasOwnProperty("lineCap")&&(this.lineCap=K.lineCap),K.hasOwnProperty("lineJoin")&&(this.lineJoin=K.lineJoin)}},u.prototype.strokeRect=function(P,q,z,H){if(isNaN(P)||isNaN(q)||isNaN(z)||isNaN(H))throw _e.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(P,q,z,H),this.stroke())},u.prototype.clearRect=function(P,q,z,H){if(isNaN(P)||isNaN(q)||isNaN(z)||isNaN(H))throw _e.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,q,z,H))},u.prototype.save=function(P){P=typeof P!="boolean"||P;for(var q=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("q");if(this.pdf.setPage(q),P){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new p(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H}},u.prototype.restore=function(P){P=typeof P!="boolean"||P;for(var q=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("Q");this.pdf.setPage(q),P&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},u.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var c=function(P){var q,z,H,K;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))q=0,z=0,H=0,K=0;else{var rt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);if(rt!==null)q=parseInt(rt[1]),z=parseInt(rt[2]),H=parseInt(rt[3]),K=1;else if((rt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(P))!==null)q=parseInt(rt[1]),z=parseInt(rt[2]),H=parseInt(rt[3]),K=parseFloat(rt[4]);else{if(K=1,typeof P=="string"&&P.charAt(0)!=="#"){var it=new nf(P);P=it.ok?it.toHex():"#000000"}P.length===4?(q=P.substring(1,2),q+=q,z=P.substring(2,3),z+=z,H=P.substring(3,4),H+=H):(q=P.substring(1,3),z=P.substring(3,5),H=P.substring(5,7)),q=parseInt(q,16),z=parseInt(z,16),H=parseInt(H,16)}}return{r:q,g:z,b:H,a:K,style:P}},l=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};u.prototype.fillText=function(P,q,z,H){if(isNaN(q)||isNaN(z)||typeof P!="string")throw _e.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(H=isNaN(H)?void 0:H,!l.call(this)){var K=Q(this.ctx.transform.rotation),rt=this.ctx.transform.scaleX;x.call(this,{text:P,x:q,y:z,scale:rt,angle:K,align:this.textAlign,maxWidth:H})}},u.prototype.strokeText=function(P,q,z,H){if(isNaN(q)||isNaN(z)||typeof P!="string")throw _e.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){H=isNaN(H)?void 0:H;var K=Q(this.ctx.transform.rotation),rt=this.ctx.transform.scaleX;x.call(this,{text:P,x:q,y:z,scale:rt,renderingMode:"stroke",angle:K,align:this.textAlign,maxWidth:H})}},u.prototype.measureText=function(P){if(typeof P!="string")throw _e.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var q=this.pdf,z=this.pdf.internal.scaleFactor,H=q.internal.getFontSize(),K=q.getStringUnitWidth(P)*H/q.internal.scaleFactor,rt=function(it){var at=(it=it||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this};return new rt({width:K*=Math.round(96*z/72*1e4)/1e4})},u.prototype.scale=function(P,q){if(isNaN(P)||isNaN(q))throw _e.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var z=new h(P,0,0,q,0,0);this.ctx.transform=this.ctx.transform.multiply(z)},u.prototype.rotate=function(P){if(isNaN(P))throw _e.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var q=new h(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(q)},u.prototype.translate=function(P,q){if(isNaN(P)||isNaN(q))throw _e.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var z=new h(1,0,0,1,P,q);this.ctx.transform=this.ctx.transform.multiply(z)},u.prototype.transform=function(P,q,z,H,K,rt){if(isNaN(P)||isNaN(q)||isNaN(z)||isNaN(H)||isNaN(K)||isNaN(rt))throw _e.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var it=new h(P,q,z,H,K,rt);this.ctx.transform=this.ctx.transform.multiply(it)},u.prototype.setTransform=function(P,q,z,H,K,rt){P=isNaN(P)?1:P,q=isNaN(q)?0:q,z=isNaN(z)?0:z,H=isNaN(H)?1:H,K=isNaN(K)?0:K,rt=isNaN(rt)?0:rt,this.ctx.transform=new h(P,q,z,H,K,rt)};var A=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(P,q,z,H,K,rt,it,at,gt){var mt=this.pdf.getImageProperties(P),Nt=1,Ct=1,Mt=1,pt=1;H!==void 0&&at!==void 0&&(Mt=at/H,pt=gt/K,Nt=mt.width/H*at/H,Ct=mt.height/K*gt/K),rt===void 0&&(rt=q,it=z,q=0,z=0),H!==void 0&&at===void 0&&(at=H,gt=K),H===void 0&&at===void 0&&(at=mt.width,gt=mt.height);for(var nt,Tt=this.ctx.transform.decompose(),It=Q(Tt.rotate.shx),yt=new h,St=(yt=(yt=(yt=yt.multiply(Tt.translate)).multiply(Tt.skew)).multiply(Tt.scale)).applyToRectangle(new f(rt-q*Mt,it-z*pt,H*Nt,K*Ct)),Pt=C.call(this,St),xt=[],Et=0;Et<Pt.length;Et+=1)xt.indexOf(Pt[Et])===-1&&xt.push(Pt[Et]);if(k(xt),this.autoPaging)for(var Dt=xt[0],Ut=xt[xt.length-1],Qt=Dt;Qt<Ut+1;Qt++){this.pdf.setPage(Qt);var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Xt=Qt===1?this.posY+this.margin[0]:this.margin[0],qt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Wt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ft=Qt===1?0:qt+(Qt-2)*Wt;if(this.ctx.clip_path.length!==0){var ge=this.path;nt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(nt,this.posX+this.margin[3],-Ft+Xt+this.ctx.prevPageLastElemOffset),_.call(this,"fill",!0),this.path=ge}var ne=JSON.parse(JSON.stringify(St));ne=D([ne],this.posX+this.margin[3],-Ft+Xt+this.ctx.prevPageLastElemOffset)[0];var Fe=(Qt>Dt||Qt<Ut)&&A.call(this);Fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,Wt,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",ne.x,ne.y,ne.w,ne.h,null,null,It),Fe&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(P,"JPEG",St.x,St.y,St.w,St.h,null,null,It)};var C=function(P,q,z){var H=[];q=q||this.pdf.internal.pageSize.width,z=z||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var K=this.posY+this.ctx.prevPageLastElemOffset;switch(P.type){default:case"mt":case"lt":H.push(Math.floor((P.y+K)/z)+1);break;case"arc":H.push(Math.floor((P.y+K-P.radius)/z)+1),H.push(Math.floor((P.y+K+P.radius)/z)+1);break;case"qct":var rt=J(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.y);H.push(Math.floor((rt.y+K)/z)+1),H.push(Math.floor((rt.y+rt.h+K)/z)+1);break;case"bct":var it=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);H.push(Math.floor((it.y+K)/z)+1),H.push(Math.floor((it.y+it.h+K)/z)+1);break;case"rect":H.push(Math.floor((P.y+K)/z)+1),H.push(Math.floor((P.y+P.h+K)/z)+1)}for(var at=0;at<H.length;at+=1)for(;this.pdf.internal.getNumberOfPages()<H[at];)L.call(this);return H},L=function(){var P=this.fillStyle,q=this.strokeStyle,z=this.font,H=this.lineCap,K=this.lineWidth,rt=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=q,this.font=z,this.lineCap=H,this.lineWidth=K,this.lineJoin=rt},D=function(P,q,z){for(var H=0;H<P.length;H++)switch(P[H].type){case"bct":P[H].x2+=q,P[H].y2+=z;case"qct":P[H].x1+=q,P[H].y1+=z;case"mt":case"lt":case"arc":default:P[H].x+=q,P[H].y+=z}return P},k=function(P){return P.sort(function(q,z){return q-z})},O=function(P,q){for(var z,H,K=this.fillStyle,rt=this.strokeStyle,it=this.lineCap,at=this.lineWidth,gt=Math.abs(at*this.ctx.transform.scaleX),mt=this.lineJoin,Nt=JSON.parse(JSON.stringify(this.path)),Ct=JSON.parse(JSON.stringify(this.path)),Mt=[],pt=0;pt<Ct.length;pt++)if(Ct[pt].x!==void 0)for(var nt=C.call(this,Ct[pt]),Tt=0;Tt<nt.length;Tt+=1)Mt.indexOf(nt[Tt])===-1&&Mt.push(nt[Tt]);for(var It=0;It<Mt.length;It++)for(;this.pdf.internal.getNumberOfPages()<Mt[It];)L.call(this);if(k(Mt),this.autoPaging)for(var yt=Mt[0],St=Mt[Mt.length-1],Pt=yt;Pt<St+1;Pt++){this.pdf.setPage(Pt),this.fillStyle=K,this.strokeStyle=rt,this.lineCap=it,this.lineWidth=gt,this.lineJoin=mt;var xt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Et=Pt===1?this.posY+this.margin[0]:this.margin[0],Dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ut=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qt=Pt===1?0:Dt+(Pt-2)*Ut;if(this.ctx.clip_path.length!==0){var ie=this.path;z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(z,this.posX+this.margin[3],-Qt+Et+this.ctx.prevPageLastElemOffset),_.call(this,P,!0),this.path=ie}if(H=JSON.parse(JSON.stringify(Nt)),this.path=D(H,this.posX+this.margin[3],-Qt+Et+this.ctx.prevPageLastElemOffset),q===!1||Pt===0){var Xt=(Pt>yt||Pt<St)&&A.call(this);Xt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xt,Ut,null).clip().discardPath()),_.call(this,P,q),Xt&&this.pdf.restoreGraphicsState()}this.lineWidth=at}else this.lineWidth=gt,_.call(this,P,q),this.lineWidth=at;this.path=Nt},_=function(P,q){if((P!=="stroke"||q||!m.call(this))&&(P==="stroke"||q||!l.call(this))){for(var z,H,K=[],rt=this.path,it=0;it<rt.length;it++){var at=rt[it];switch(at.type){case"begin":K.push({begin:!0});break;case"close":K.push({close:!0});break;case"mt":K.push({start:at,deltas:[],abs:[]});break;case"lt":var gt=K.length;if(rt[it-1]&&!isNaN(rt[it-1].x)&&(z=[at.x-rt[it-1].x,at.y-rt[it-1].y],gt>0)){for(;gt>=0;gt--)if(K[gt-1].close!==!0&&K[gt-1].begin!==!0){K[gt-1].deltas.push(z),K[gt-1].abs.push(at);break}}break;case"bct":z=[at.x1-rt[it-1].x,at.y1-rt[it-1].y,at.x2-rt[it-1].x,at.y2-rt[it-1].y,at.x-rt[it-1].x,at.y-rt[it-1].y],K[K.length-1].deltas.push(z);break;case"qct":var mt=rt[it-1].x+2/3*(at.x1-rt[it-1].x),Nt=rt[it-1].y+2/3*(at.y1-rt[it-1].y),Ct=at.x+2/3*(at.x1-at.x),Mt=at.y+2/3*(at.y1-at.y),pt=at.x,nt=at.y;z=[mt-rt[it-1].x,Nt-rt[it-1].y,Ct-rt[it-1].x,Mt-rt[it-1].y,pt-rt[it-1].x,nt-rt[it-1].y],K[K.length-1].deltas.push(z);break;case"arc":K.push({deltas:[],abs:[],arc:!0}),Array.isArray(K[K.length-1].abs)&&K[K.length-1].abs.push(at)}}H=q?null:P==="stroke"?"stroke":"fill";for(var Tt=!1,It=0;It<K.length;It++)if(K[It].arc)for(var yt=K[It].abs,St=0;St<yt.length;St++){var Pt=yt[St];Pt.type==="arc"?N.call(this,Pt.x,Pt.y,Pt.radius,Pt.startAngle,Pt.endAngle,Pt.counterclockwise,void 0,q,!Tt):y.call(this,Pt.x,Pt.y),Tt=!0}else if(K[It].close===!0)this.pdf.internal.out("h"),Tt=!1;else if(K[It].begin!==!0){var xt=K[It].start.x,Et=K[It].start.y;F.call(this,K[It].deltas,xt,Et),Tt=!0}H&&j.call(this,H),q&&v.call(this)}},R=function(P){var q=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,z=q*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-z;case"top":return P+q-z;case"hanging":return P+q-2*z;case"middle":return P+q/2-z;case"ideographic":return P;case"alphabetic":default:return P}},V=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};u.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(q,z){this.colorStops.push([q,z])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var N=function(P,q,z,H,K,rt,it,at,gt){for(var mt=E.call(this,z,H,K,rt),Nt=0;Nt<mt.length;Nt++){var Ct=mt[Nt];Nt===0&&(gt?S.call(this,Ct.x1+P,Ct.y1+q):y.call(this,Ct.x1+P,Ct.y1+q)),Y.call(this,P,q,Ct.x2,Ct.y2,Ct.x3,Ct.y3,Ct.x4,Ct.y4)}at?v.call(this):j.call(this,it)},j=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},v=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(P,q){this.pdf.internal.out(e(P)+" "+r(q)+" m")},x=function(P){var q;switch(P.align){case"right":case"end":q="right";break;case"center":q="center";break;case"left":case"start":default:q="left"}var z=this.pdf.getTextDimensions(P.text),H=R.call(this,P.y),K=V.call(this,H)-z.h,rt=this.ctx.transform.applyToPoint(new s(P.x,H)),it=this.ctx.transform.decompose(),at=new h;at=(at=(at=at.multiply(it.translate)).multiply(it.skew)).multiply(it.scale);for(var gt,mt,Nt,Ct=this.ctx.transform.applyToRectangle(new f(P.x,H,z.w,z.h)),Mt=at.applyToRectangle(new f(P.x,K,z.w,z.h)),pt=C.call(this,Mt),nt=[],Tt=0;Tt<pt.length;Tt+=1)nt.indexOf(pt[Tt])===-1&&nt.push(pt[Tt]);if(k(nt),this.autoPaging)for(var It=nt[0],yt=nt[nt.length-1],St=It;St<yt+1;St++){this.pdf.setPage(St);var Pt=St===1?this.posY+this.margin[0]:this.margin[0],xt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[2],Dt=Et-this.margin[0],Ut=this.pdf.internal.pageSize.width-this.margin[1],Qt=Ut-this.margin[3],ie=St===1?0:xt+(St-2)*Dt;if(this.ctx.clip_path.length!==0){var Xt=this.path;gt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(gt,this.posX+this.margin[3],-1*ie+Pt),_.call(this,"fill",!0),this.path=Xt}var qt=D([JSON.parse(JSON.stringify(Mt))],this.posX+this.margin[3],-ie+Pt+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(mt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(mt*P.scale),Nt=this.lineWidth,this.lineWidth=Nt*P.scale);var Wt=this.autoPaging!=="text";if(Wt||qt.y+qt.h<=Et){if(Wt||qt.y>=Pt&&qt.x<=Ut){var Ft=Wt?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||Ut-qt.x)[0],ge=D([JSON.parse(JSON.stringify(Ct))],this.posX+this.margin[3],-ie+Pt+this.ctx.prevPageLastElemOffset)[0],ne=Wt&&(St>It||St<yt)&&A.call(this);ne&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Qt,Dt,null).clip().discardPath()),this.pdf.text(Ft,ge.x,ge.y,{angle:P.angle,align:q,renderingMode:P.renderingMode}),ne&&this.pdf.restoreGraphicsState()}}else qt.y<Et&&(this.ctx.prevPageLastElemOffset+=Et-qt.y);P.scale>=.01&&(this.pdf.setFontSize(mt),this.lineWidth=Nt)}else P.scale>=.01&&(mt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(mt*P.scale),Nt=this.lineWidth,this.lineWidth=Nt*P.scale),this.pdf.text(P.text,rt.x+this.posX,rt.y+this.posY,{angle:P.angle,align:q,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(mt),this.lineWidth=Nt)},y=function(P,q,z,H){z=z||0,H=H||0,this.pdf.internal.out(e(P+z)+" "+r(q+H)+" l")},F=function(P,q,z){return this.pdf.lines(P,q,z,null,null)},Y=function(P,q,z,H,K,rt,it,at){this.pdf.internal.out([t(i(z+P)),t(n(H+q)),t(i(K+P)),t(n(rt+q)),t(i(it+P)),t(n(at+q)),"c"].join(" "))},E=function(P,q,z,H){for(var K=2*Math.PI,rt=Math.PI/2;q>z;)q-=K;var it=Math.abs(z-q);it<K&&H&&(it=K-it);for(var at=[],gt=H?-1:1,mt=q;it>1e-5;){var Nt=mt+gt*Math.min(it,rt);at.push(T.call(this,P,mt,Nt)),it-=Math.abs(Nt-mt),mt=Nt}return at},T=function(P,q,z){var H=(z-q)/2,K=P*Math.cos(H),rt=P*Math.sin(H),it=K,at=-rt,gt=it*it+at*at,mt=gt+it*K+at*rt,Nt=4/3*(Math.sqrt(2*gt*mt)-mt)/(it*rt-at*K),Ct=it-Nt*at,Mt=at+Nt*it,pt=Ct,nt=-Mt,Tt=H+q,It=Math.cos(Tt),yt=Math.sin(Tt);return{x1:P*Math.cos(q),y1:P*Math.sin(q),x2:Ct*It-Mt*yt,y2:Ct*yt+Mt*It,x3:pt*It-nt*yt,y3:pt*yt+nt*It,x4:P*Math.cos(z),y4:P*Math.sin(z)}},Q=function(P){return 180*P/Math.PI},J=function(P,q,z,H,K,rt){var it=P+.5*(z-P),at=q+.5*(H-q),gt=K+.5*(z-K),mt=rt+.5*(H-rt),Nt=Math.min(P,K,it,gt),Ct=Math.max(P,K,it,gt),Mt=Math.min(q,rt,at,mt),pt=Math.max(q,rt,at,mt);return new f(Nt,Mt,Ct-Nt,pt-Mt)},B=function(P,q,z,H,K,rt,it,at){var gt,mt,Nt,Ct,Mt,pt,nt,Tt,It,yt,St,Pt,xt,Et,Dt=z-P,Ut=H-q,Qt=K-z,ie=rt-H,Xt=it-K,qt=at-rt;for(mt=0;mt<41;mt++)It=(nt=(Nt=P+(gt=mt/40)*Dt)+gt*((Mt=z+gt*Qt)-Nt))+gt*(Mt+gt*(K+gt*Xt-Mt)-nt),yt=(Tt=(Ct=q+gt*Ut)+gt*((pt=H+gt*ie)-Ct))+gt*(pt+gt*(rt+gt*qt-pt)-Tt),mt==0?(St=It,Pt=yt,xt=It,Et=yt):(St=Math.min(St,It),Pt=Math.min(Pt,yt),xt=Math.max(xt,It),Et=Math.max(Et,yt));return new f(Math.round(St),Math.round(Pt),Math.round(xt-St),Math.round(Et-Pt))},tt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,q,z=(P=this.ctx.lineDash,q=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:q}));this.prevLineDash!==z&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=z)}}})(Zt.API),function(a){var t=function(n){var s,f,h,g,p,u,c,l,m,A;for(/[^\x00-\xFF]/.test(n),f=[],h=0,g=(n+=s="\0\0\0\0".slice(n.length%4||4)).length;g>h;h+=4)(p=(n.charCodeAt(h)<<24)+(n.charCodeAt(h+1)<<16)+(n.charCodeAt(h+2)<<8)+n.charCodeAt(h+3))!==0?(u=(p=((p=((p=((p=(p-(A=p%85))/85)-(m=p%85))/85)-(l=p%85))/85)-(c=p%85))/85)%85,f.push(u+33,c+33,l+33,m+33,A+33)):f.push(122);return function(C,L){for(var D=L;D>0;D--)C.pop()}(f,s.length),String.fromCharCode.apply(String,f)+"~>"},e=function(n){var s,f,h,g,p,u=String,c="length",l=255,m="charCodeAt",A="slice",C="replace";for(n[A](-2),n=n[A](0,-2)[C](/\s/g,"")[C]("z","!!!!!"),h=[],g=0,p=(n+=s="uuuuu"[A](n[c]%5||5))[c];p>g;g+=5)f=52200625*(n[m](g)-33)+614125*(n[m](g+1)-33)+7225*(n[m](g+2)-33)+85*(n[m](g+3)-33)+(n[m](g+4)-33),h.push(l&f>>24,l&f>>16,l&f>>8,l&f);return function(L,D){for(var k=D;k>0;k--)L.pop()}(h,s[c]),u.fromCharCode.apply(u,h)},r=function(n){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((n=n.replace(/\s/g,"")).indexOf(">")!==-1&&(n=n.substr(0,n.indexOf(">"))),n.length%2&&(n+="0"),s.test(n)===!1)return"";for(var f="",h=0;h<n.length;h+=2)f+=String.fromCharCode("0x"+(n[h]+n[h+1]));return f},i=function(n){for(var s=new Uint8Array(n.length),f=n.length;f--;)s[f]=n.charCodeAt(f);return n=(s=ia(s)).reduce(function(h,g){return h+String.fromCharCode(g)},"")};a.processDataByFilters=function(n,s){var f=0,h=n||"",g=[];for(typeof(s=s||[])=="string"&&(s=[s]),f=0;f<s.length;f+=1)switch(s[f]){case"ASCII85Decode":case"/ASCII85Decode":h=e(h),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":h=t(h),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":h=r(h),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":h=h.split("").map(function(p){return("0"+p.charCodeAt().toString(16)).slice(-2)}).join("")+">",g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":h=i(h),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[f]+'" is not implemented')}return{data:h,reverseChain:g.reverse().join(" ")}}}(Zt.API),function(a){a.loadFile=function(t,e,r){return function(i,n,s){n=n!==!1,s=typeof s=="function"?s:function(){};var f=void 0;try{f=function(h,g,p){var u=new XMLHttpRequest,c=0,l=function(m){var A=m.length,C=[],L=String.fromCharCode;for(c=0;c<A;c+=1)C.push(L(255&m.charCodeAt(c)));return C.join("")};if(u.open("GET",h,!g),u.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(u.onload=function(){u.status===200?p(l(this.responseText)):p(void 0)}),u.send(null),g&&u.status===200)return l(u.responseText)}(i,n,s)}catch(h){}return f}(t,e,r)},a.loadImageFile=a.loadFile}(Zt.API),function(a){function t(){return(Jt.html2canvas?Promise.resolve(Jt.html2canvas):Promise.resolve().then(Rn.t.bind(Rn,9820,23))).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function e(){return(Jt.DOMPurify?Promise.resolve(Jt.DOMPurify):Promise.resolve().then(Rn.t.bind(Rn,94994,23))).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var f=(0,Ae.A)(s);return f==="undefined"?"undefined":f==="string"||s instanceof String?"string":f==="number"||s instanceof Number?"number":f==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":f==="object"?"object":"unknown"},i=function(s,f){var h=document.createElement(s);for(var g in f.className&&(h.className=f.className),f.innerHTML&&f.dompurify&&(h.innerHTML=f.dompurify.sanitize(f.innerHTML)),f.style)h.style[g]=f.style[g];return h},n=function s(f){var h=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),g=s.convert(Promise.resolve(),h);return g=(g=g.setProgress(1,s,1,[s])).set(f)};(n.prototype=Object.create(Promise.prototype)).constructor=n,n.convert=function(s,f){return s.__proto__=f||n.prototype,s},n.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},n.prototype.from=function(s,f){return this.then(function(){switch(f=f||function(h){switch(r(h)){case"string":return"string";case"element":return h.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(e).then(function(h){return this.set({src:i("div",{innerHTML:s,dompurify:h})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},n.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},n.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},f=function h(g,p){for(var u=g.nodeType===3?document.createTextNode(g.nodeValue):g.cloneNode(!1),c=g.firstChild;c;c=c.nextSibling)p!==!0&&c.nodeType===1&&c.nodeName==="SCRIPT"||u.appendChild(h(c,p));return g.nodeType===1&&(g.nodeName==="CANVAS"?(u.width=g.width,u.height=g.height,u.getContext("2d").drawImage(g,0,0)):g.nodeName!=="TEXTAREA"&&g.nodeName!=="SELECT"||(u.value=g.value),u.addEventListener("load",function(){u.scrollTop=g.scrollTop,u.scrollLeft=g.scrollLeft},!0)),u}(this.prop.src,this.opt.html2canvas.javascriptEnabled);f.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(f),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},n.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(f){var h=Object.assign({},this.opt.html2canvas);return delete h.onrendered,f(this.prop.container,h)}).then(function(f){(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},n.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(f){var h=this.opt.jsPDF,g=this.opt.fontFaces,p=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,u=Object.assign({async:!0,allowTaint:!0,scale:p,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete u.onrendered,h.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,h.context2d.posX=this.opt.x,h.context2d.posY=this.opt.y,h.context2d.margin=this.opt.margin,h.context2d.fontFaces=g,g)for(var c=0;c<g.length;++c){var l=g[c],m=l.src.find(function(A){return A.format==="truetype"});m&&h.addFont(m.url,l.ref.name,l.ref.style)}return u.windowHeight=u.windowHeight||0,u.windowHeight=u.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):u.windowHeight,h.context2d.save(!0),f(this.prop.container,u)}).then(function(f){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},n.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},n.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},n.prototype.output=function(s,f,h){return(h=h||"pdf").toLowerCase()==="img"||h.toLowerCase()==="image"?this.outputImg(s,f):this.outputPdf(s,f)},n.prototype.outputPdf=function(s,f){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,f)})},n.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},n.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},n.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},n.prototype.set=function(s){if(r(s)!=="object")return this;var f=Object.keys(s||{}).map(function(h){if(h in n.template.prop)return function(){this.prop[h]=s[h]};switch(h){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[h]=s[h]}}},this);return this.then(function(){return this.thenList(f)})},n.prototype.get=function(s,f){return this.then(function(){var h=s in n.template.prop?this.prop[s]:this.opt[s];return f?f(h):h})},n.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},n.prototype.setPageSize=function(s){function f(h,g){return Math.floor(h*g/72*96)}return this.then(function(){(s=s||Zt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:f(s.inner.width,s.k),height:f(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},n.prototype.setProgress=function(s,f,h,g){return s!=null&&(this.progress.val=s),f!=null&&(this.progress.state=f),h!=null&&(this.progress.n=h),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},n.prototype.updateProgress=function(s,f,h,g){return this.setProgress(s?this.progress.val+s:null,f||null,h?this.progress.n+h:null,g?this.progress.stack.concat(g):null)},n.prototype.then=function(s,f){var h=this;return this.thenCore(s,f,function(g,p){return h.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(u){return h.updateProgress(null,g),u}).then(g,p).then(function(u){return h.updateProgress(1),u})})},n.prototype.thenCore=function(s,f,h){h=h||Promise.prototype.then,s&&(s=s.bind(this)),f&&(f=f.bind(this));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:n.convert(Object.assign({},this),Promise.prototype),p=h.call(g,s,f);return n.convert(p,this.__proto__)},n.prototype.thenExternal=function(s,f){return Promise.prototype.then.call(this,s,f)},n.prototype.thenList=function(s){var f=this;return s.forEach(function(h){f=f.thenCore(h)}),f},n.prototype.catch=function(s){s&&(s=s.bind(this));var f=Promise.prototype.catch.call(this,s);return n.convert(f,this)},n.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},n.prototype.error=function(s){return this.then(function(){throw new Error(s)})},n.prototype.using=n.prototype.set,n.prototype.saveAs=n.prototype.save,n.prototype.export=n.prototype.output,n.prototype.run=n.prototype.then,Zt.getPageSize=function(s,f,h){if((0,Ae.A)(s)==="object"){var g=s;s=g.orientation,f=g.unit||f,h=g.format||h}f=f||"mm",h=h||"a4",s=(""+(s||"P")).toLowerCase();var p,u=(""+h).toLowerCase(),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]};switch(f){case"pt":p=1;break;case"mm":p=72/25.4;break;case"cm":p=72/2.54;break;case"in":p=72;break;case"px":p=.75;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+f}var l,m=0,A=0;if(c.hasOwnProperty(u))m=c[u][1]/p,A=c[u][0]/p;else try{m=h[1],A=h[0]}catch(C){throw new Error("Invalid format: "+h)}if(s==="p"||s==="portrait")s="p",A>m&&(l=A,A=m,m=l);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",m>A&&(l=A,A=m,m=l)}return{width:A,height:m,unit:f,k:p,orientation:s}},a.html=function(s,f){(f=f||{}).callback=f.callback||function(){},f.html2canvas=f.html2canvas||{},f.html2canvas.canvas=f.html2canvas.canvas||this.canvas,f.jsPDF=f.jsPDF||this,f.fontFaces=f.fontFaces?f.fontFaces.map(Es):null;var h=new n(f);return f.worker?h:h.from(s).doCallback()}}(Zt.API),Zt.API.addJS=function(a){return _f=a,this.internal.events.subscribe("postPutResources",function(){lo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(lo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Af=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+_f+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){lo!==void 0&&Af!==void 0&&this.internal.out("/Names <</JavaScript "+lo+" 0 R>>")}),this},function(a){var t;a.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=e.outline.render().split(/\r\n/),n=0;n<i.length;n++){var s=i[n],f=r.exec(s);if(f!=null){var h=f[1];e.internal.newObjectDeferredBegin(h,!1)}e.internal.write(s)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,p=[];for(n=0;n<g;n++){var u=e.internal.newObject();p.push(u);var c=e.internal.getPageInfo(n+1);e.internal.write("<< /D["+c.objId+" 0 R /XYZ null null null]>> endobj")}var l=e.internal.newObject();for(e.internal.write("<< /Names [ "),n=0;n<p.length;n++)e.internal.write("(page_"+(n+1)+")"+p[n]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+l+" 0 R"),e.internal.write(">>","endobj")}}]),a.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),a.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,i,n){var s={title:i,options:n,children:[]};return r==null&&(r=this.root),r.children.push(s),s},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<r.children.length;n++){var s=r.children[n];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),n>0&&this.line("/Prev "+this.makeRef(r.children[n-1])),n<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[n+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var f=this.count=this.count_r({count:0},s);if(f>0&&this.line("/Count "+f),s.options&&s.options.pageNumber){var h=e.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+h.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var g=0;g<r.children.length;g++)this.renderItems(r.children[g])},e.outline.line=function(r){this.ctx.val+=r+"\r\n"},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+="\r\n"+r.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(r,i){for(var n=0;n<i.children.length;n++)r.count++,this.count_r(r,i.children[n]);return r.count}}])}(Zt.API),function(a){var t=[192,193,194,195,196,197,198,199];a.processJPEG=function(e,r,i,n,s,f){var h,g=this.decode.DCT_DECODE,p=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=s||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(h=function(u){for(var c,l=256*u.charCodeAt(4)+u.charCodeAt(5),m=u.length,A={width:0,height:0,numcomponents:1},C=4;C<m;C+=2){if(C+=l,t.indexOf(u.charCodeAt(C+1))!==-1){c=256*u.charCodeAt(C+5)+u.charCodeAt(C+6),A={width:256*u.charCodeAt(C+7)+u.charCodeAt(C+8),height:c,numcomponents:u.charCodeAt(C+9)};break}l=256*u.charCodeAt(C+2)+u.charCodeAt(C+3)}return A}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:f=this.color_spaces.DEVICE_GRAY;break;case 4:f=this.color_spaces.DEVICE_CMYK;break;case 3:f=this.color_spaces.DEVICE_RGB}p={data:e,width:h.width,height:h.height,colorSpace:f,bitsPerComponent:8,filter:g,index:r,alias:i}}return p}}(Zt.API);var _i,fo,xf,Sf,Lf,Qu=function(){var a,t,e;function r(n){var s,f,h,g,p,u,c,l,m,A,C,L,D,k;for(this.data=n,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},u=null;;){switch(s=this.readUInt32(),m=(function(){var O,_;for(_=[],O=0;O<4;++O)_.push(String.fromCharCode(this.data[this.pos++]));return _}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(s);break;case"fcTL":u&&this.animation.frames.push(u),this.pos+=4,u={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},p=this.readUInt16(),g=this.readUInt16()||100,u.delay=1e3*p/g,u.disposeOp=this.data[this.pos++],u.blendOp=this.data[this.pos++],u.data=[];break;case"IDAT":case"fdAT":for(m==="fdAT"&&(this.pos+=4,s-=4),n=(u!=null?u.data:void 0)||this.imgData,L=0;0<=s?L<s:L>s;0<=s?++L:--L)n.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(h=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>h)throw new Error("More transparent colors than palette size");if((A=h-this.transparency.indexed.length)>0)for(D=0;0<=A?D<A:D>A;0<=A?++D:--D)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":c=(C=this.read(s)).indexOf(0),l=String.fromCharCode.apply(String,C.slice(0,c)),this.text[l]=String.fromCharCode.apply(String,C.slice(c+1));break;case"IEND":return u&&this.animation.frames.push(u),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(k=this.colorType)===4||k===6,f=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*f,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(n){var s,f;for(f=[],s=0;0<=n?s<n:s>n;0<=n?++s:--s)f.push(this.data[this.pos++]);return f},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(n){var s=this.pixelBitlength/8,f=new Uint8Array(this.width*this.height*s),h=0,g=this;if(n==null&&(n=this.imgData),n.length===0)return new Uint8Array(0);function p(u,c,l,m){var A,C,L,D,k,O,_,R,V,N,j,v,S,x,y,F,Y,E,T,Q,J,B=Math.ceil((g.width-u)/l),tt=Math.ceil((g.height-c)/m),P=g.width==B&&g.height==tt;for(x=s*B,v=P?f:new Uint8Array(x*tt),O=n.length,S=0,C=0;S<tt&&h<O;){switch(n[h++]){case 0:for(D=Y=0;Y<x;D=Y+=1)v[C++]=n[h++];break;case 1:for(D=E=0;E<x;D=E+=1)A=n[h++],k=D<s?0:v[C-s],v[C++]=(A+k)%256;break;case 2:for(D=T=0;T<x;D=T+=1)A=n[h++],L=(D-D%s)/s,y=S&&v[(S-1)*x+L*s+D%s],v[C++]=(y+A)%256;break;case 3:for(D=Q=0;Q<x;D=Q+=1)A=n[h++],L=(D-D%s)/s,k=D<s?0:v[C-s],y=S&&v[(S-1)*x+L*s+D%s],v[C++]=(A+Math.floor((k+y)/2))%256;break;case 4:for(D=J=0;J<x;D=J+=1)A=n[h++],L=(D-D%s)/s,k=D<s?0:v[C-s],S===0?y=F=0:(y=v[(S-1)*x+L*s+D%s],F=L&&v[(S-1)*x+(L-1)*s+D%s]),_=k+y-F,R=Math.abs(_-k),N=Math.abs(_-y),j=Math.abs(_-F),V=R<=N&&R<=j?k:N<=j?y:F,v[C++]=(A+V)%256;break;default:throw new Error("Invalid filter algorithm: "+n[h-1])}if(!P){var q=((c+S*m)*g.width+u)*s,z=S*x;for(D=0;D<B;D+=1){for(var H=0;H<s;H+=1)f[q++]=v[z++];q+=(l-1)*s}}S++}}return n=Ja(n),g.interlaceMethod==1?(p(0,0,8,8),p(4,0,8,8),p(0,4,4,8),p(2,0,4,4),p(0,2,2,4),p(1,0,2,2),p(0,1,1,2)):p(0,0,1,1),f},r.prototype.decodePalette=function(){var n,s,f,h,g,p,u,c,l;for(f=this.palette,p=this.transparency.indexed||[],g=new Uint8Array((p.length||0)+f.length),h=0,n=0,s=u=0,c=f.length;u<c;s=u+=3)g[h++]=f[s],g[h++]=f[s+1],g[h++]=f[s+2],g[h++]=(l=p[n++])!=null?l:255;return g},r.prototype.copyToImageData=function(n,s){var f,h,g,p,u,c,l,m,A,C,L;if(h=this.colors,A=null,f=this.hasAlphaChannel,this.palette.length&&(A=(L=this._decodedPalette)!=null?L:this._decodedPalette=this.decodePalette(),h=4,f=!0),m=(g=n.data||n).length,u=A||s,p=c=0,h===1)for(;p<m;)l=A?4*s[p/4]:c,C=u[l++],g[p++]=C,g[p++]=C,g[p++]=C,g[p++]=f?u[l++]:255,c=l;else for(;p<m;)l=A?4*s[p/4]:c,g[p++]=u[l++],g[p++]=u[l++],g[p++]=u[l++],g[p++]=f?u[l++]:255,c=l},r.prototype.decode=function(){var n;return n=new Uint8Array(this.width*this.height*4),this.copyToImageData(n,this.decodePixels()),n};var i=function(){if(Object.prototype.toString.call(Jt)==="[object Window]"){try{t=Jt.document.createElement("canvas"),e=t.getContext("2d")}catch(n){return!1}return!0}return!1};return i(),a=function(n){var s;if(i()===!0)return e.width=n.width,e.height=n.height,e.clearRect(0,0,n.width,n.height),e.putImageData(n,0,0),(s=new Image).src=t.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(n){var s,f,h,g,p,u,c,l;if(this.animation){for(l=[],f=p=0,u=(c=this.animation.frames).length;p<u;f=++p)s=c[f],h=n.createImageData(s.width,s.height),g=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(h,g),s.imageData=h,l.push(s.image=a(h));return l}},r.prototype.renderFrame=function(n,s){var f,h,g;return f=(h=this.animation.frames)[s],g=h[s-1],s===0&&n.clearRect(0,0,this.width,this.height),(g!=null?g.disposeOp:void 0)===1?n.clearRect(g.xOffset,g.yOffset,g.width,g.height):(g!=null?g.disposeOp:void 0)===2&&n.putImageData(g.imageData,g.xOffset,g.yOffset),f.blendOp===0&&n.clearRect(f.xOffset,f.yOffset,f.width,f.height),n.drawImage(f.image,f.xOffset,f.yOffset)},r.prototype.animate=function(n){var s,f,h,g,p,u,c=this;return f=0,u=this.animation,g=u.numFrames,h=u.frames,p=u.numPlays,(s=function(){var l,m;if(l=f++%g,m=h[l],c.renderFrame(n,l),g>1&&f/g<p)return c.animation._timeout=setTimeout(s,m.delay)})()},r.prototype.stopAnimation=function(){var n;return clearTimeout((n=this.animation)!=null?n._timeout:void 0)},r.prototype.render=function(n){var s,f;return n._png&&n._png.stopAnimation(),n._png=this,n.width=this.width,n.height=this.height,s=n.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(f=s.createImageData(this.width,this.height),this.copyToImageData(f,this.decodePixels()),s.putImageData(f,0,0))},r}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* 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.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* 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.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function Xu(a){var t=0;if(a[t++]!==71||a[t++]!==73||a[t++]!==70||a[t++]!==56||(a[t++]+1&253)!=56||a[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=a[t++]|a[t++]<<8,r=a[t++]|a[t++]<<8,i=a[t++],n=i>>7,s=1<<(7&i)+1;a[t++],a[t++];var f=null,h=null;n&&(f=t,h=s,t+=3*s);var g=!0,p=[],u=0,c=null,l=0,m=null;for(this.width=e,this.height=r;g&&t<a.length;)switch(a[t++]){case 33:switch(a[t++]){case 255:if(a[t]!==11||a[t+1]==78&&a[t+2]==69&&a[t+3]==84&&a[t+4]==83&&a[t+5]==67&&a[t+6]==65&&a[t+7]==80&&a[t+8]==69&&a[t+9]==50&&a[t+10]==46&&a[t+11]==48&&a[t+12]==3&&a[t+13]==1&&a[t+16]==0)t+=14,m=a[t++]|a[t++]<<8,t++;else for(t+=12;;){if(!((S=a[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}break;case 249:if(a[t++]!==4||a[t+4]!==0)throw new Error("Invalid graphics extension block.");var A=a[t++];u=a[t++]|a[t++]<<8,c=a[t++],(1&A)==0&&(c=null),l=A>>2&7,t++;break;case 254:for(;;){if(!((S=a[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}break;default:throw new Error("Unknown graphic control label: 0x"+a[t-1].toString(16))}break;case 44:var C=a[t++]|a[t++]<<8,L=a[t++]|a[t++]<<8,D=a[t++]|a[t++]<<8,k=a[t++]|a[t++]<<8,O=a[t++],_=O>>6&1,R=1<<(7&O)+1,V=f,N=h,j=!1;O>>7&&(j=!0,V=t,N=R,t+=3*R);var v=t;for(t++;;){var S;if(!((S=a[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}p.push({x:C,y:L,width:D,height:k,has_local_palette:j,palette_offset:V,palette_size:N,data_offset:v,data_length:t-v,transparent_index:c,interlaced:!!_,delay:u,disposal:l});break;case 59:g=!1;break;default:throw new Error("Unknown gif block: 0x"+a[t-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return m},this.frameInfo=function(x){if(x<0||x>=p.length)throw new Error("Frame index out of range.");return p[x]},this.decodeAndBlitFrameBGRA=function(x,y){var F=this.frameInfo(x),Y=F.width*F.height,E=new Uint8Array(Y);Nf(a,F.data_offset,E,Y);var T=F.palette_offset,Q=F.transparent_index;Q===null&&(Q=256);var J=F.width,B=e-J,tt=J,P=4*(F.y*e+F.x),q=4*((F.y+F.height)*e+F.x),z=P,H=4*B;F.interlaced===!0&&(H+=4*e*7);for(var K=8,rt=0,it=E.length;rt<it;++rt){var at=E[rt];if(tt===0&&(tt=J,(z+=H)>=q&&(H=4*B+4*e*(K-1),z=P+(J+B)*(K<<1),K>>=1)),at===Q)z+=4;else{var gt=a[T+3*at],mt=a[T+3*at+1],Nt=a[T+3*at+2];y[z++]=Nt,y[z++]=mt,y[z++]=gt,y[z++]=255}--tt}},this.decodeAndBlitFrameRGBA=function(x,y){var F=this.frameInfo(x),Y=F.width*F.height,E=new Uint8Array(Y);Nf(a,F.data_offset,E,Y);var T=F.palette_offset,Q=F.transparent_index;Q===null&&(Q=256);var J=F.width,B=e-J,tt=J,P=4*(F.y*e+F.x),q=4*((F.y+F.height)*e+F.x),z=P,H=4*B;F.interlaced===!0&&(H+=4*e*7);for(var K=8,rt=0,it=E.length;rt<it;++rt){var at=E[rt];if(tt===0&&(tt=J,(z+=H)>=q&&(H=4*B+4*e*(K-1),z=P+(J+B)*(K<<1),K>>=1)),at===Q)z+=4;else{var gt=a[T+3*at],mt=a[T+3*at+1],Nt=a[T+3*at+2];y[z++]=gt,y[z++]=mt,y[z++]=Nt,y[z++]=255}--tt}}}function Nf(a,t,e,r){for(var i=a[t++],n=1<<i,s=n+1,f=s+1,h=i+1,g=(1<<h)-1,p=0,u=0,c=0,l=a[t++],m=new Int32Array(4096),A=null;;){for(;p<16&&l!==0;)u|=a[t++]<<p,p+=8,l===1?l=a[t++]:--l;if(p<h)break;var C=u&g;if(u>>=h,p-=h,C!==n){if(C===s)break;for(var L=C<f?C:A,D=0,k=L;k>n;)k=m[k]>>8,++D;var O=k;if(c+D+(L!==C?1:0)>r)return void _e.log("Warning, gif stream longer than expected.");e[c++]=O;var _=c+=D;for(L!==C&&(e[c++]=O),k=L;D--;)k=m[k],e[--_]=255&k,k>>=8;A!==null&&f<4096&&(m[f++]=A<<8|O,f>=g+1&&h<12&&(++h,g=g<<1|1)),A=C}else f=s+1,g=(1<<(h=i+1))-1,A=null}return c!==r&&_e.log("Warning, gif stream shorter than expected."),e}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function Bs(a){var t,e,r,i,n,s=Math.floor,f=new Array(64),h=new Array(64),g=new Array(64),p=new Array(64),u=new Array(65535),c=new Array(65535),l=new Array(64),m=new Array(64),A=[],C=0,L=7,D=new Array(64),k=new Array(64),O=new Array(64),_=new Array(256),R=new Array(2048),V=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],N=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],j=[0,1,2,3,4,5,6,7,8,9,10,11],v=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],x=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],y=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Y=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function E(P,q){for(var z=0,H=0,K=new Array,rt=1;rt<=16;rt++){for(var it=1;it<=P[rt];it++)K[q[H]]=[],K[q[H]][0]=z,K[q[H]][1]=rt,H++,z++;z*=2}return K}function T(P){for(var q=P[0],z=P[1]-1;z>=0;)q&1<<z&&(C|=1<<L),z--,--L<0&&(C==255?(Q(255),Q(0)):Q(C),L=7,C=0)}function Q(P){A.push(P)}function J(P){Q(P>>8&255),Q(255&P)}function B(P,q,z,H,K){for(var rt,it=K[0],at=K[240],gt=function(yt,St){var Pt,xt,Et,Dt,Ut,Qt,ie,Xt,qt,Wt,Ft=0;for(qt=0;qt<8;++qt){Pt=yt[Ft],xt=yt[Ft+1],Et=yt[Ft+2],Dt=yt[Ft+3],Ut=yt[Ft+4],Qt=yt[Ft+5],ie=yt[Ft+6];var ge=Pt+(Xt=yt[Ft+7]),ne=Pt-Xt,Fe=xt+ie,se=xt-ie,be=Et+Qt,In=Et-Qt,fe=Dt+Ut,ir=Dt-Ut,ye=ge+fe,An=ge-fe,Ze=Fe+be,ce=Fe-be;yt[Ft]=ye+Ze,yt[Ft+4]=ye-Ze;var Vt=.707106781*(ce+An);yt[Ft+2]=An+Vt,yt[Ft+6]=An-Vt;var ae=.382683433*((ye=ir+In)-(ce=se+ne)),ar=.5411961*ye+ae,ke=1.306562965*ce+ae,Ye=.707106781*(Ze=In+se),or=ne+Ye,Yt=ne-Ye;yt[Ft+5]=Yt+ar,yt[Ft+3]=Yt-ar,yt[Ft+1]=or+ke,yt[Ft+7]=or-ke,Ft+=8}for(Ft=0,qt=0;qt<8;++qt){Pt=yt[Ft],xt=yt[Ft+8],Et=yt[Ft+16],Dt=yt[Ft+24],Ut=yt[Ft+32],Qt=yt[Ft+40],ie=yt[Ft+48];var Wn=Pt+(Xt=yt[Ft+56]),sr=Pt-Xt,gn=xt+ie,We=xt-ie,Me=Et+Qt,_n=Et-Qt,Si=Dt+Ut,vr=Dt-Ut,Gn=Wn+Si,Vn=Wn-Si,Zn=gn+Me,lr=gn-Me;yt[Ft]=Gn+Zn,yt[Ft+32]=Gn-Zn;var Cn=.707106781*(lr+Vn);yt[Ft+16]=Vn+Cn,yt[Ft+48]=Vn-Cn;var fr=.382683433*((Gn=vr+_n)-(lr=We+sr)),Xr=.5411961*Gn+fr,Li=1.306562965*lr+fr,Ni=.707106781*(Zn=_n+We),ki=sr+Ni,Pi=sr-Ni;yt[Ft+40]=Pi+Xr,yt[Ft+24]=Pi-Xr,yt[Ft+8]=ki+Li,yt[Ft+56]=ki-Li,Ft++}for(qt=0;qt<64;++qt)Wt=yt[qt]*St[qt],l[qt]=Wt>0?Wt+.5|0:Wt-.5|0;return l}(P,q),mt=0;mt<64;++mt)m[V[mt]]=gt[mt];var Nt=m[0]-z;z=m[0],Nt==0?T(H[0]):(T(H[c[rt=32767+Nt]]),T(u[rt]));for(var Ct=63;Ct>0&&m[Ct]==0;)Ct--;if(Ct==0)return T(it),z;for(var Mt,pt=1;pt<=Ct;){for(var nt=pt;m[pt]==0&&pt<=Ct;)++pt;var Tt=pt-nt;if(Tt>=16){Mt=Tt>>4;for(var It=1;It<=Mt;++It)T(at);Tt&=15}rt=32767+m[pt],T(K[(Tt<<4)+c[rt]]),T(u[rt]),pt++}return Ct!=63&&T(it),z}function tt(P){P=Math.min(Math.max(P,1),100),n!=P&&(function(q){for(var z=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],H=0;H<64;H++){var K=s((z[H]*q+50)/100);K=Math.min(Math.max(K,1),255),f[V[H]]=K}for(var rt=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],it=0;it<64;it++){var at=s((rt[it]*q+50)/100);at=Math.min(Math.max(at,1),255),h[V[it]]=at}for(var gt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],mt=0,Nt=0;Nt<8;Nt++)for(var Ct=0;Ct<8;Ct++)g[mt]=1/(f[V[mt]]*gt[Nt]*gt[Ct]*8),p[mt]=1/(h[V[mt]]*gt[Nt]*gt[Ct]*8),mt++}(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),n=P)}this.encode=function(P,q){q&&tt(q),A=new Array,C=0,L=7,J(65496),J(65504),J(16),Q(74),Q(70),Q(73),Q(70),Q(0),Q(1),Q(1),Q(0),J(1),J(1),Q(0),Q(0),function(){J(65499),J(132),Q(0);for(var xt=0;xt<64;xt++)Q(f[xt]);Q(1);for(var Et=0;Et<64;Et++)Q(h[Et])}(),function(xt,Et){J(65472),J(17),Q(8),J(Et),J(xt),Q(3),Q(1),Q(17),Q(0),Q(2),Q(17),Q(1),Q(3),Q(17),Q(1)}(P.width,P.height),function(){J(65476),J(418),Q(0);for(var xt=0;xt<16;xt++)Q(N[xt+1]);for(var Et=0;Et<=11;Et++)Q(j[Et]);Q(16);for(var Dt=0;Dt<16;Dt++)Q(v[Dt+1]);for(var Ut=0;Ut<=161;Ut++)Q(S[Ut]);Q(1);for(var Qt=0;Qt<16;Qt++)Q(x[Qt+1]);for(var ie=0;ie<=11;ie++)Q(y[ie]);Q(17);for(var Xt=0;Xt<16;Xt++)Q(F[Xt+1]);for(var qt=0;qt<=161;qt++)Q(Y[qt])}(),J(65498),J(12),Q(3),Q(1),Q(0),Q(2),Q(17),Q(3),Q(17),Q(0),Q(63),Q(0);var z=0,H=0,K=0;C=0,L=7,this.encode.displayName="_encode_";for(var rt,it,at,gt,mt,Nt,Ct,Mt,pt,nt=P.data,Tt=P.width,It=P.height,yt=4*Tt,St=0;St<It;){for(rt=0;rt<yt;){for(mt=yt*St+rt,Ct=-1,Mt=0,pt=0;pt<64;pt++)Nt=mt+(Mt=pt>>3)*yt+(Ct=4*(7&pt)),St+Mt>=It&&(Nt-=yt*(St+1+Mt-It)),rt+Ct>=yt&&(Nt-=rt+Ct-yt+4),it=nt[Nt++],at=nt[Nt++],gt=nt[Nt++],D[pt]=(R[it]+R[at+256>>0]+R[gt+512>>0]>>16)-128,k[pt]=(R[it+768>>0]+R[at+1024>>0]+R[gt+1280>>0]>>16)-128,O[pt]=(R[it+1280>>0]+R[at+1536>>0]+R[gt+1792>>0]>>16)-128;z=B(D,g,z,t,r),H=B(k,p,H,e,i),K=B(O,p,K,e,i),rt+=32}St+=8}if(L>=0){var Pt=[];Pt[1]=L+1,Pt[0]=(1<<L+1)-1,T(Pt)}return J(65497),new Uint8Array(A)},a=a||50,function(){for(var P=String.fromCharCode,q=0;q<256;q++)_[q]=P(q)}(),t=E(N,j),e=E(x,y),r=E(v,S),i=E(F,Y),function(){for(var P=1,q=2,z=1;z<=15;z++){for(var H=P;H<q;H++)c[32767+H]=z,u[32767+H]=[],u[32767+H][1]=z,u[32767+H][0]=H;for(var K=-(q-1);K<=-P;K++)c[32767+K]=z,u[32767+K]=[],u[32767+K][1]=z,u[32767+K][0]=q-1+K;P<<=1,q<<=1}}(),function(){for(var P=0;P<256;P++)R[P]=19595*P,R[P+256>>0]=38470*P,R[P+512>>0]=7471*P+32768,R[P+768>>0]=-11059*P,R[P+1024>>0]=-21709*P,R[P+1280>>0]=32768*P+8421375,R[P+1536>>0]=-27439*P,R[P+1792>>0]=-5329*P}(),tt(a)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Un(a,t){if(this.pos=0,this.buffer=a,this.datav=new DataView(a.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function kf(a){function t(N){if(!N)throw Error("assert :P")}function e(N,j,v){for(var S=0;4>S;S++)if(N[j+S]!=v.charCodeAt(S))return!0;return!1}function r(N,j,v,S,x){for(var y=0;y<x;y++)N[j+y]=v[S+y]}function i(N,j,v,S){for(var x=0;x<S;x++)N[j+x]=v}function n(N){return new Int32Array(N)}function s(N,j){for(var v=[],S=0;S<N;S++)v.push(new j);return v}function f(N,j){var v=[];return function S(x,y,F){for(var Y=F[y],E=0;E<Y&&(x.push(F.length>y+1?[]:new j),!(F.length<y+1));E++)S(x[E],y+1,F)}(v,0,N),v}var h=function(){var N=this;function j(o,d){for(var w=1<<d-1>>>0;o&w;)w>>>=1;return w?(o&w-1)+w:o}function v(o,d,w,I,M){t(!(I%w));do o[d+(I-=w)]=M;while(0<I)}function S(o,d,w,I,M){if(t(2328>=M),512>=M)var W=n(512);else if((W=n(M))==null)return 0;return function(G,Z,X,$,st,ct){var dt,ut,_t=Z,vt=1<<X,lt=n(16),ft=n(16);for(t(st!=0),t($!=null),t(G!=null),t(0<X),ut=0;ut<st;++ut){if(15<$[ut])return 0;++lt[$[ut]]}if(lt[0]==st)return 0;for(ft[1]=0,dt=1;15>dt;++dt){if(lt[dt]>1<<dt)return 0;ft[dt+1]=ft[dt]+lt[dt]}for(ut=0;ut<st;++ut)dt=$[ut],0<$[ut]&&(ct[ft[dt]++]=ut);if(ft[15]==1)return($=new x).g=0,$.value=ct[0],v(G,_t,1,vt,$),vt;var wt,Lt=-1,At=vt-1,Rt=0,Ot=1,Gt=1,Bt=1<<X;for(ut=0,dt=1,st=2;dt<=X;++dt,st<<=1){if(Ot+=Gt<<=1,0>(Gt-=lt[dt]))return 0;for(;0<lt[dt];--lt[dt])($=new x).g=dt,$.value=ct[ut++],v(G,_t+Rt,st,Bt,$),Rt=j(Rt,dt)}for(dt=X+1,st=2;15>=dt;++dt,st<<=1){if(Ot+=Gt<<=1,0>(Gt-=lt[dt]))return 0;for(;0<lt[dt];--lt[dt]){if($=new x,(Rt&At)!=Lt){for(_t+=Bt,wt=1<<(Lt=dt)-X;15>Lt&&!(0>=(wt-=lt[Lt]));)++Lt,wt<<=1;vt+=Bt=1<<(wt=Lt-X),G[Z+(Lt=Rt&At)].g=wt+X,G[Z+Lt].value=_t-Z-Lt}$.g=dt-X,$.value=ct[ut++],v(G,_t+(Rt>>X),st,Bt,$),Rt=j(Rt,dt)}}return Ot!=2*ft[15]-1?0:vt}(o,d,w,I,M,W)}function x(){this.value=this.g=0}function y(){this.value=this.g=0}function F(){this.G=s(5,x),this.H=n(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s($e,y)}function Y(o,d,w,I){t(o!=null),t(d!=null),t(2147483648>I),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=d,o.pa=w,o.Jd=d,o.Yc=w+I,o.Zc=4<=I?w+I-4+1:w,rt(o)}function E(o,d){for(var w=0;0<d--;)w|=at(o,128)<<d;return w}function T(o,d){var w=E(o,d);return it(o)?-w:w}function Q(o,d,w,I){var M,W=0;for(t(o!=null),t(d!=null),t(4294967288>I),o.Sb=I,o.Ra=0,o.u=0,o.h=0,4<I&&(I=4),M=0;M<I;++M)W+=d[w+M]<<8*M;o.Ra=W,o.bb=I,o.oa=d,o.pa=w}function J(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<Hi-8>>>0,++o.bb,o.u-=8;z(o)&&(o.h=1,o.u=0)}function B(o,d){if(t(0<=d),!o.h&&d<=qi){var w=q(o)&Ui[d];return o.u+=d,J(o),w}return o.h=1,o.u=0}function tt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function P(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function q(o){return o.Ra>>>(o.u&Hi-1)>>>0}function z(o){return t(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>Hi}function H(o,d){o.u=d,o.h=z(o)}function K(o){o.u>=La&&(t(o.u>=La),J(o))}function rt(o){t(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(t(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function it(o){return E(o,1)}function at(o,d){var w=o.Ca;0>o.b&&rt(o);var I=o.b,M=w*d>>>8,W=(o.I>>>I>M)+0;for(W?(w-=M,o.I-=M+1<<I>>>0):w=M+1,I=w,M=0;256<=I;)M+=8,I>>=8;return I=7^M+mn[I],o.b-=I,o.Ca=(w<<I)-1,W}function gt(o,d,w){o[d+0]=w>>24&255,o[d+1]=w>>16&255,o[d+2]=w>>8&255,o[d+3]=w>>0&255}function mt(o,d){return o[d+0]<<0|o[d+1]<<8}function Nt(o,d){return mt(o,d)|o[d+2]<<16}function Ct(o,d){return mt(o,d)|mt(o,d+2)<<16}function Mt(o,d){var w=1<<d;return t(o!=null),t(0<d),o.X=n(w),o.X==null?0:(o.Mb=32-d,o.Xa=d,1)}function pt(o,d){t(o!=null),t(d!=null),t(o.Xa==d.Xa),r(d.X,0,o.X,0,1<<d.Xa)}function nt(){this.X=[],this.Xa=this.Mb=0}function Tt(o,d,w,I){t(w!=null),t(I!=null);var M=w[0],W=I[0];return M==0&&(M=(o*W+d/2)/d),W==0&&(W=(d*M+o/2)/o),0>=M||0>=W?0:(w[0]=M,I[0]=W,1)}function It(o,d){return o+(1<<d)-1>>>d}function yt(o,d){return((4278255360&o)+(4278255360&d)>>>0&4278255360)+((16711935&o)+(16711935&d)>>>0&16711935)>>>0}function St(o,d){N[d]=function(w,I,M,W,G,Z,X){var $;for($=0;$<G;++$){var st=N[o](Z[X+$-1],M,W+$);Z[X+$]=yt(w[I+$],st)}}}function Pt(){this.ud=this.hd=this.jd=0}function xt(o,d){return((4278124286&(o^d))>>>1)+(o&d)>>>0}function Et(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function Dt(o,d){return Et(o+(o-d+.5>>1))}function Ut(o,d,w){return Math.abs(d-w)-Math.abs(o-w)}function Qt(o,d,w,I,M,W,G){for(I=W[G-1],w=0;w<M;++w)W[G+w]=I=yt(o[d+w],I)}function ie(o,d,w,I,M){var W;for(W=0;W<w;++W){var G=o[d+W],Z=G>>8&255,X=16711935&(X=(X=16711935&G)+((Z<<16)+Z));I[M+W]=(4278255360&G)+X>>>0}}function Xt(o,d){d.jd=o>>0&255,d.hd=o>>8&255,d.ud=o>>16&255}function qt(o,d,w,I,M,W){var G;for(G=0;G<I;++G){var Z=d[w+G],X=Z>>>8,$=Z,st=255&(st=(st=Z>>>16)+((o.jd<<24>>24)*(X<<24>>24)>>>5));$=255&($=($=$+((o.hd<<24>>24)*(X<<24>>24)>>>5))+((o.ud<<24>>24)*(st<<24>>24)>>>5)),M[W+G]=(4278255360&Z)+(st<<16)+$}}function Wt(o,d,w,I,M){N[d]=function(W,G,Z,X,$,st,ct,dt,ut){for(X=ct;X<dt;++X)for(ct=0;ct<ut;++ct)$[st++]=M(Z[I(W[G++])])},N[o]=function(W,G,Z,X,$,st,ct){var dt=8>>W.b,ut=W.Ea,_t=W.K[0],vt=W.w;if(8>dt)for(W=(1<<W.b)-1,vt=(1<<dt)-1;G<Z;++G){var lt,ft=0;for(lt=0;lt<ut;++lt)lt&W||(ft=I(X[$++])),st[ct++]=M(_t[ft&vt]),ft>>=dt}else N["VP8LMapColor"+w](X,$,_t,vt,st,ct,G,Z,ut)}}function Ft(o,d,w,I,M){for(w=d+w;d<w;){var W=o[d++];I[M++]=W>>16&255,I[M++]=W>>8&255,I[M++]=W>>0&255}}function ge(o,d,w,I,M){for(w=d+w;d<w;){var W=o[d++];I[M++]=W>>16&255,I[M++]=W>>8&255,I[M++]=W>>0&255,I[M++]=W>>24&255}}function ne(o,d,w,I,M){for(w=d+w;d<w;){var W=(G=o[d++])>>16&240|G>>12&15,G=G>>0&240|G>>28&15;I[M++]=W,I[M++]=G}}function Fe(o,d,w,I,M){for(w=d+w;d<w;){var W=(G=o[d++])>>16&248|G>>13&7,G=G>>5&224|G>>3&31;I[M++]=W,I[M++]=G}}function se(o,d,w,I,M){for(w=d+w;d<w;){var W=o[d++];I[M++]=W>>0&255,I[M++]=W>>8&255,I[M++]=W>>16&255}}function be(o,d,w,I,M,W){if(W==0)for(w=d+w;d<w;)gt(I,((W=o[d++])[0]>>24|W[1]>>8&65280|W[2]<<8&16711680|W[3]<<24)>>>0),M+=32;else r(I,M,o,d,w)}function In(o,d){N[d][0]=N[o+"0"],N[d][1]=N[o+"1"],N[d][2]=N[o+"2"],N[d][3]=N[o+"3"],N[d][4]=N[o+"4"],N[d][5]=N[o+"5"],N[d][6]=N[o+"6"],N[d][7]=N[o+"7"],N[d][8]=N[o+"8"],N[d][9]=N[o+"9"],N[d][10]=N[o+"10"],N[d][11]=N[o+"11"],N[d][12]=N[o+"12"],N[d][13]=N[o+"13"],N[d][14]=N[o+"0"],N[d][15]=N[o+"0"]}function fe(o){return o==hl||o==cl||o==Zo||o==dl}function ir(){this.eb=[],this.size=this.A=this.fb=0}function ye(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function An(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ir,this.f.kb=new ye,this.sd=null}function Ze(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ce(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Vt(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function ae(o,d){var w=o.T,I=d.ba.f.RGBA,M=I.eb,W=I.fb+o.ka*I.A,G=Tn[d.ba.S],Z=o.y,X=o.O,$=o.f,st=o.N,ct=o.ea,dt=o.W,ut=d.cc,_t=d.dc,vt=d.Mc,lt=d.Nc,ft=o.ka,wt=o.ka+o.T,Lt=o.U,At=Lt+1>>1;for(ft==0?G(Z,X,null,null,$,st,ct,dt,$,st,ct,dt,M,W,null,null,Lt):(G(d.ec,d.fc,Z,X,ut,_t,vt,lt,$,st,ct,dt,M,W-I.A,M,W,Lt),++w);ft+2<wt;ft+=2)ut=$,_t=st,vt=ct,lt=dt,st+=o.Rc,dt+=o.Rc,W+=2*I.A,G(Z,(X+=2*o.fa)-o.fa,Z,X,ut,_t,vt,lt,$,st,ct,dt,M,W-I.A,M,W,Lt);return X+=o.fa,o.j+wt<o.o?(r(d.ec,d.fc,Z,X,Lt),r(d.cc,d.dc,$,st,At),r(d.Mc,d.Nc,ct,dt,At),w--):1&wt||G(Z,X,null,null,$,st,ct,dt,$,st,ct,dt,M,W+I.A,null,null,Lt),w}function ar(o,d,w){var I=o.F,M=[o.J];if(I!=null){var W=o.U,G=d.ba.S,Z=G==Vo||G==Zo;d=d.ba.f.RGBA;var X=[0],$=o.ka;X[0]=o.T,o.Kb&&($==0?--X[0]:(--$,M[0]-=o.width),o.j+o.ka+o.T==o.o&&(X[0]=o.o-o.j-$));var st=d.eb;$=d.fb+$*d.A,o=Le(I,M[0],o.width,W,X,st,$+(Z?0:3),d.A),t(w==X),o&&fe(G)&&Bn(st,$,Z,W,X,d.A)}return 0}function ke(o){var d=o.ma,w=d.ba.S,I=11>w,M=w==Wo||w==Go||w==Vo||w==ul||w==12||fe(w);if(d.memory=null,d.Ib=null,d.Jb=null,d.Nd=null,!xa(d.Oa,o,M?11:12))return 0;if(M&&fe(w)&&kt(),o.da)alert("todo:use_scaling");else{if(I){if(d.Ib=Vt,o.Kb){if(w=o.U+1>>1,d.memory=n(o.U+2*w),d.memory==null)return 0;d.ec=d.memory,d.fc=0,d.cc=d.ec,d.dc=d.fc+o.U,d.Mc=d.cc,d.Nc=d.dc+w,d.Ib=ae,kt()}}else alert("todo:EmitYUV");M&&(d.Jb=ar,I&&ht())}if(I&&!$f){for(o=0;256>o;++o)zh[o]=89858*(o-128)+Jo>>Yo,qh[o]=-22014*(o-128)+Jo,Uh[o]=-45773*(o-128),Mh[o]=113618*(o-128)+Jo>>Yo;for(o=Ea;o<vl;++o)d=76283*(o-16)+Jo>>Yo,Hh[o-Ea]=xn(d,255),Wh[o-Ea]=xn(d+8>>4,15);$f=1}return 1}function Ye(o){var d=o.ma,w=o.U,I=o.T;return t(!(1&o.ka)),0>=w||0>=I?0:(w=d.Ib(o,d),d.Jb!=null&&d.Jb(o,d,w),d.Dc+=w,1)}function or(o){o.ma.memory=null}function Yt(o,d,w,I){return B(o,8)!=47?0:(d[0]=B(o,14)+1,w[0]=B(o,14)+1,I[0]=B(o,1),B(o,3)!=0?0:!o.h)}function Wn(o,d){if(4>o)return o+1;var w=o-2>>1;return(2+(1&o)<<w)+B(d,w)+1}function sr(o,d){return 120<d?d-120:1<=(w=((w=Lh[d-1])>>4)*o+(8-(15&w)))?w:1;var w}function gn(o,d,w){var I=q(w),M=o[d+=255&I].g-8;return 0<M&&(H(w,w.u+8),I=q(w),d+=o[d].value,d+=I&(1<<M)-1),H(w,w.u+o[d].g),o[d].value}function We(o,d,w){return w.g+=o.g,w.value+=o.value<<d>>>0,t(8>=w.g),o.g}function Me(o,d,w){var I=o.xc;return t((d=I==0?0:o.vc[o.md*(w>>I)+(d>>I)])<o.Wb),o.Ya[d]}function _n(o,d,w,I){var M=o.ab,W=o.c*d,G=o.C;d=G+d;var Z=w,X=I;for(I=o.Ta,w=o.Ua;0<M--;){var $=o.gc[M],st=G,ct=d,dt=Z,ut=X,_t=(X=I,Z=w,$.Ea);switch(t(st<ct),t(ct<=$.nc),$.hc){case 2:jo(dt,ut,(ct-st)*_t,X,Z);break;case 0:var vt=st,lt=ct,ft=X,wt=Z,Lt=(Bt=$).Ea;vt==0&&(ll(dt,ut,null,null,1,ft,wt),Qt(dt,ut+1,0,0,Lt-1,ft,wt+1),ut+=Lt,wt+=Lt,++vt);for(var At=1<<Bt.b,Rt=At-1,Ot=It(Lt,Bt.b),Gt=Bt.K,Bt=Bt.w+(vt>>Bt.b)*Ot;vt<lt;){var de=Gt,ve=Bt,he=1;for(Na(dt,ut,ft,wt-Lt,1,ft,wt);he<Lt;){var oe=(he&~Rt)+At;oe>Lt&&(oe=Lt),(0,Dr[de[ve++]>>8&15])(dt,ut+ +he,ft,wt+he-Lt,oe-he,ft,wt+he),he=oe}ut+=Lt,wt+=Lt,++vt&Rt||(Bt+=Ot)}ct!=$.nc&&r(X,Z-_t,X,Z+(ct-st-1)*_t,_t);break;case 1:for(_t=dt,lt=ut,Lt=(dt=$.Ea)-(wt=dt&~(ft=(ut=1<<$.b)-1)),vt=It(dt,$.b),At=$.K,$=$.w+(st>>$.b)*vt;st<ct;){for(Rt=At,Ot=$,Gt=new Pt,Bt=lt+wt,de=lt+dt;lt<Bt;)Xt(Rt[Ot++],Gt),ni(Gt,_t,lt,ut,X,Z),lt+=ut,Z+=ut;lt<de&&(Xt(Rt[Ot++],Gt),ni(Gt,_t,lt,Lt,X,Z),lt+=Lt,Z+=Lt),++st&ft||($+=vt)}break;case 3:if(dt==X&&ut==Z&&0<$.b){for(lt=X,dt=_t=Z+(ct-st)*_t-(wt=(ct-st)*It($.Ea,$.b)),ut=X,ft=Z,vt=[],wt=(Lt=wt)-1;0<=wt;--wt)vt[wt]=ut[ft+wt];for(wt=Lt-1;0<=wt;--wt)lt[dt+wt]=vt[wt];Fn($,st,ct,X,_t,X,Z)}else Fn($,st,ct,dt,ut,X,Z)}Z=I,X=w}X!=w&&r(I,w,Z,X,W)}function Si(o,d){var w=o.V,I=o.Ba+o.c*o.C,M=d-o.C;if(t(d<=o.l.o),t(16>=M),0<M){var W=o.l,G=o.Ta,Z=o.Ua,X=W.width;if(_n(o,M,w,I),M=Z=[Z],t((w=o.C)<(I=d)),t(W.v<W.va),I>W.o&&(I=W.o),w<W.j){var $=W.j-w;w=W.j,M[0]+=$*X}if(w>=I?w=0:(M[0]+=4*W.v,W.ka=w-W.j,W.U=W.va-W.v,W.T=I-w,w=1),w){if(Z=Z[0],11>(w=o.ca).S){var st=w.f.RGBA,ct=(I=w.S,M=W.U,W=W.T,$=st.eb,st.A),dt=W;for(st=st.fb+o.Ma*st.A;0<dt--;){var ut=G,_t=Z,vt=M,lt=$,ft=st;switch(I){case Ho:bn(ut,_t,vt,lt,ft);break;case Wo:un(ut,_t,vt,lt,ft);break;case hl:un(ut,_t,vt,lt,ft),Bn(lt,ft,0,vt,1,0);break;case Hf:wr(ut,_t,vt,lt,ft);break;case Go:be(ut,_t,vt,lt,ft,1);break;case cl:be(ut,_t,vt,lt,ft,1),Bn(lt,ft,0,vt,1,0);break;case Vo:be(ut,_t,vt,lt,ft,0);break;case Zo:be(ut,_t,vt,lt,ft,0),Bn(lt,ft,1,vt,1,0);break;case ul:Tr(ut,_t,vt,lt,ft);break;case dl:Tr(ut,_t,vt,lt,ft),Se(lt,ft,vt,1,0);break;case Wf:yr(ut,_t,vt,lt,ft);break;default:t(0)}Z+=X,st+=ct}o.Ma+=W}else alert("todo:EmitRescaledRowsYUVA");t(o.Ma<=w.height)}}o.C=d,t(o.C<=o.i)}function vr(o){var d;if(0<o.ua)return 0;for(d=0;d<o.Wb;++d){var w=o.Ya[d].G,I=o.Ya[d].H;if(0<w[1][I[1]+0].g||0<w[2][I[2]+0].g||0<w[3][I[3]+0].g)return 0}return 1}function Gn(o,d,w,I,M,W){if(o.Z!=0){var G=o.qd,Z=o.rd;for(t(Mr[o.Z]!=null);d<w;++d)Mr[o.Z](G,Z,I,M,I,M,W),G=I,Z=M,M+=W;o.qd=G,o.rd=Z}}function Vn(o,d){var w=o.l.ma,I=w.Z==0||w.Z==1?o.l.j:o.C;if(I=o.C<I?I:o.C,t(d<=o.l.o),d>I){var M=o.l.width,W=w.ca,G=w.tb+M*I,Z=o.V,X=o.Ba+o.c*I,$=o.gc;t(o.ab==1),t($[0].hc==3),Ro($[0],I,d,Z,X,W,G),Gn(w,I,d,W,G,M)}o.C=o.Ma=d}function Zn(o,d,w,I,M,W,G){var Z=o.$/I,X=o.$%I,$=o.m,st=o.s,ct=w+o.$,dt=ct;M=w+I*M;var ut=w+I*W,_t=280+st.ua,vt=o.Pb?Z:16777216,lt=0<st.ua?st.Wa:null,ft=st.wc,wt=ct<ut?Me(st,X,Z):null;t(o.C<W),t(ut<=M);var Lt=!1;t:for(;;){for(;Lt||ct<ut;){var At=0;if(Z>=vt){var Rt=ct-w;t((vt=o).Pb),vt.wd=vt.m,vt.xd=Rt,0<vt.s.ua&&pt(vt.s.Wa,vt.s.vb),vt=Z+kh}if(X&ft||(wt=Me(st,X,Z)),t(wt!=null),wt.Qb&&(d[ct]=wt.qb,Lt=!0),!Lt)if(K($),wt.jc){At=$,Rt=d;var Ot=ct,Gt=wt.pd[q(At)&$e-1];t(wt.jc),256>Gt.g?(H(At,At.u+Gt.g),Rt[Ot]=Gt.value,At=0):(H(At,At.u+Gt.g-256),t(256<=Gt.value),At=Gt.value),At==0&&(Lt=!0)}else At=gn(wt.G[0],wt.H[0],$);if($.h)break;if(Lt||256>At){if(!Lt)if(wt.nd)d[ct]=(wt.qb|At<<8)>>>0;else{if(K($),Lt=gn(wt.G[1],wt.H[1],$),K($),Rt=gn(wt.G[2],wt.H[2],$),Ot=gn(wt.G[3],wt.H[3],$),$.h)break;d[ct]=(Ot<<24|Lt<<16|At<<8|Rt)>>>0}if(Lt=!1,++ct,++X>=I&&(X=0,++Z,G!=null&&Z<=W&&!(Z%16)&&G(o,Z),lt!=null))for(;dt<ct;)At=d[dt++],lt.X[(506832829*At&4294967295)>>>lt.Mb]=At}else if(280>At){if(At=Wn(At-256,$),Rt=gn(wt.G[4],wt.H[4],$),K($),Rt=sr(I,Rt=Wn(Rt,$)),$.h)break;if(ct-w<Rt||M-ct<At)break t;for(Ot=0;Ot<At;++Ot)d[ct+Ot]=d[ct+Ot-Rt];for(ct+=At,X+=At;X>=I;)X-=I,++Z,G!=null&&Z<=W&&!(Z%16)&&G(o,Z);if(t(ct<=M),X&ft&&(wt=Me(st,X,Z)),lt!=null)for(;dt<ct;)At=d[dt++],lt.X[(506832829*At&4294967295)>>>lt.Mb]=At}else{if(!(At<_t))break t;for(Lt=At-280,t(lt!=null);dt<ct;)At=d[dt++],lt.X[(506832829*At&4294967295)>>>lt.Mb]=At;At=ct,t(!(Lt>>>(Rt=lt).Xa)),d[At]=Rt.X[Lt],Lt=!0}Lt||t($.h==z($))}if(o.Pb&&$.h&&ct<M)t(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&pt(o.s.vb,o.s.Wa);else{if($.h)break t;G!=null&&G(o,Z>W?W:Z),o.a=0,o.$=ct-w}return 1}return o.a=3,0}function lr(o){t(o!=null),o.vc=null,o.yc=null,o.Ya=null;var d=o.Wa;d!=null&&(d.X=null),o.vb=null,t(o!=null)}function Cn(){var o=new sl;return o==null?null:(o.a=0,o.xb=Zf,In("Predictor","VP8LPredictors"),In("Predictor","VP8LPredictors_C"),In("PredictorAdd","VP8LPredictorsAdd"),In("PredictorAdd","VP8LPredictorsAdd_C"),jo=ie,ni=qt,bn=Ft,un=ge,Tr=ne,yr=Fe,wr=se,N.VP8LMapColor32b=Wi,N.VP8LMapColor8b=zo,o)}function fr(o,d,w,I,M){var W=1,G=[o],Z=[d],X=I.m,$=I.s,st=null,ct=0;t:for(;;){if(w)for(;W&&B(X,1);){var dt=G,ut=Z,_t=I,vt=1,lt=_t.m,ft=_t.gc[_t.ab],wt=B(lt,2);if(_t.Oc&1<<wt)W=0;else{switch(_t.Oc|=1<<wt,ft.hc=wt,ft.Ea=dt[0],ft.nc=ut[0],ft.K=[null],++_t.ab,t(4>=_t.ab),wt){case 0:case 1:ft.b=B(lt,3)+2,vt=fr(It(ft.Ea,ft.b),It(ft.nc,ft.b),0,_t,ft.K),ft.K=ft.K[0];break;case 3:var Lt,At=B(lt,8)+1,Rt=16<At?0:4<At?1:2<At?2:3;if(dt[0]=It(ft.Ea,Rt),ft.b=Rt,Lt=vt=fr(At,1,0,_t,ft.K)){var Ot,Gt=At,Bt=ft,de=1<<(8>>Bt.b),ve=n(de);if(ve==null)Lt=0;else{var he=Bt.K[0],oe=Bt.w;for(ve[0]=Bt.K[0][0],Ot=1;Ot<1*Gt;++Ot)ve[Ot]=yt(he[oe+Ot],ve[Ot-1]);for(;Ot<4*de;++Ot)ve[Ot]=0;Bt.K[0]=null,Bt.K[0]=ve,Lt=1}}vt=Lt;break;case 2:break;default:t(0)}W=vt}}if(G=G[0],Z=Z[0],W&&B(X,1)&&!(W=1<=(ct=B(X,4))&&11>=ct)){I.a=3;break t}var xe;if(xe=W)e:{var we,re,qe,yn=I,He=G,wn=Z,me=ct,Ln=w,Nn=yn.m,Qe=yn.s,tn=[null],cn=1,jn=0,dr=Nh[me];n:for(;;){if(Ln&&B(Nn,1)){var Xe=B(Nn,3)+2,Sr=It(He,Xe),si=It(wn,Xe),Ji=Sr*si;if(!fr(Sr,si,0,yn,tn))break n;for(tn=tn[0],Qe.xc=Xe,we=0;we<Ji;++we){var Ur=tn[we]>>8&65535;tn[we]=Ur,Ur>=cn&&(cn=Ur+1)}}if(Nn.h)break n;for(re=0;5>re;++re){var Oe=Gf[re];!re&&0<me&&(Oe+=1<<me),jn<Oe&&(jn=Oe)}var ml=s(cn*dr,x),nu=cn,ru=s(nu,F);if(ru==null)var Xo=null;else t(65536>=nu),Xo=ru;var Oa=n(jn);if(Xo==null||Oa==null||ml==null){yn.a=1;break n}var Ko=ml;for(we=qe=0;we<cn;++we){var Kn=Xo[we],Qi=Kn.G,Xi=Kn.H,iu=0,$o=1,au=0;for(re=0;5>re;++re){Oe=Gf[re],Qi[re]=Ko,Xi[re]=qe,!re&&0<me&&(Oe+=1<<me);i:{var ts,bl=Oe,es=yn,Ba=Oa,Zh=Ko,Yh=qe,yl=0,qr=es.m,Jh=B(qr,1);if(i(Ba,0,0,bl),Jh){var Qh=B(qr,1)+1,Xh=B(qr,1),ou=B(qr,Xh==0?1:8);Ba[ou]=1,Qh==2&&(Ba[ou=B(qr,8)]=1);var ns=1}else{var su=n(19),lu=B(qr,4)+4;if(19<lu){es.a=3;var rs=0;break i}for(ts=0;ts<lu;++ts)su[Sh[ts]]=B(qr,3);var wl=void 0,Da=void 0,fu=es,Kh=su,is=bl,uu=Ba,Al=0,Hr=fu.m,hu=8,cu=s(128,x);r:for(;S(cu,0,7,Kh,19);){if(B(Hr,1)){var $h=2+2*B(Hr,3);if((wl=2+B(Hr,$h))>is)break r}else wl=is;for(Da=0;Da<is&&wl--;){K(Hr);var du=cu[0+(127&q(Hr))];H(Hr,Hr.u+du.g);var Ki=du.value;if(16>Ki)uu[Da++]=Ki,Ki!=0&&(hu=Ki);else{var tc=Ki==16,pu=Ki-16,ec=_h[pu],gu=B(Hr,Ah[pu])+ec;if(Da+gu>is)break r;for(var nc=tc?hu:0;0<gu--;)uu[Da++]=nc}}Al=1;break r}Al||(fu.a=3),ns=Al}(ns=ns&&!qr.h)&&(yl=S(Zh,Yh,8,Ba,bl)),ns&&yl!=0?rs=yl:(es.a=3,rs=0)}if(rs==0)break n;if($o&&xh[re]==1&&($o=Ko[qe].g==0),iu+=Ko[qe].g,qe+=rs,3>=re){var Ta,_l=Oa[0];for(Ta=1;Ta<Oe;++Ta)Oa[Ta]>_l&&(_l=Oa[Ta]);au+=_l}}if(Kn.nd=$o,Kn.Qb=0,$o&&(Kn.qb=(Qi[3][Xi[3]+0].value<<24|Qi[1][Xi[1]+0].value<<16|Qi[2][Xi[2]+0].value)>>>0,iu==0&&256>Qi[0][Xi[0]+0].value&&(Kn.Qb=1,Kn.qb+=Qi[0][Xi[0]+0].value<<8)),Kn.jc=!Kn.Qb&&6>au,Kn.jc){var as,Lr=Kn;for(as=0;as<$e;++as){var Wr=as,Gr=Lr.pd[Wr],os=Lr.G[0][Lr.H[0]+Wr];256<=os.value?(Gr.g=os.g+256,Gr.value=os.value):(Gr.g=0,Gr.value=0,Wr>>=We(os,8,Gr),Wr>>=We(Lr.G[1][Lr.H[1]+Wr],16,Gr),Wr>>=We(Lr.G[2][Lr.H[2]+Wr],0,Gr),We(Lr.G[3][Lr.H[3]+Wr],24,Gr))}}}Qe.vc=tn,Qe.Wb=cn,Qe.Ya=Xo,Qe.yc=ml,xe=1;break e}xe=0}if(!(W=xe)){I.a=3;break t}if(0<ct){if($.ua=1<<ct,!Mt($.Wa,ct)){I.a=1,W=0;break t}}else $.ua=0;var xl=I,vu=G,rc=Z,Sl=xl.s,Ll=Sl.xc;if(xl.c=vu,xl.i=rc,Sl.md=It(vu,Ll),Sl.wc=Ll==0?-1:(1<<Ll)-1,w){I.xb=Bh;break t}if((st=n(G*Z))==null){I.a=1,W=0;break t}W=(W=Zn(I,st,0,G,Z,Z,null))&&!X.h;break t}return W?(M!=null?M[0]=st:(t(st==null),t(w)),I.$=0,w||lr($)):lr($),W}function Xr(o,d){var w=o.c*o.i,I=w+d+16*d;return t(o.c<=d),o.V=n(I),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+w+d,1)}function Li(o,d){var w=o.C,I=d-w,M=o.V,W=o.Ba+o.c*w;for(t(d<=o.l.o);0<I;){var G=16<I?16:I,Z=o.l.ma,X=o.l.width,$=X*G,st=Z.ca,ct=Z.tb+X*w,dt=o.Ta,ut=o.Ua;_n(o,G,M,W),ze(dt,ut,st,ct,$),Gn(Z,w,w+G,st,ct,X),I-=G,M+=G*o.c,w+=G}t(w==d),o.C=o.Ma=d}function Ni(){this.ub=this.yd=this.td=this.Rb=0}function ki(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Pi(){this.Fb=this.Bb=this.Cb=0,this.Zb=n(4),this.Lb=n(4)}function mo(){this.Yb=function(){var o=[];return function d(w,I,M){for(var W=M[I],G=0;G<W&&(w.push(M.length>I+1?[]:0),!(M.length<I+1));G++)d(w[G],I+1,M)}(o,0,[3,11]),o}()}function Rs(){this.jb=n(3),this.Wc=f([4,8],mo),this.Xc=f([4,17],mo)}function zs(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new n(4),this.od=new n(4)}function Ii(){this.ld=this.La=this.dd=this.tc=0}function bo(){this.Na=this.la=0}function Ms(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function sa(){this.ad=n(384),this.Za=0,this.Ob=n(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Us(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ii),this.Y=0,this.ya=Array(new sa),this.aa=0,this.l=new Ci}function yo(){this.y=n(16),this.f=n(8),this.ea=n(8)}function qs(){this.cb=this.a=0,this.sc="",this.m=new tt,this.Od=new Ni,this.Kc=new ki,this.ed=new zs,this.Qa=new Pi,this.Ic=this.$c=this.Aa=0,this.D=new Us,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,tt),this.ia=0,this.pb=s(4,Ms),this.Pa=new Rs,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new yo),this.Hd=0,this.rb=Array(new bo),this.sb=0,this.wa=Array(new Ii),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new sa),this.L=this.aa=0,this.gd=f([4,2],Ii),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ci(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Hs(){var o=new qs;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Fa||(Fa=_o)),o}function je(o,d,w){return o.a==0&&(o.a=d,o.sc=w,o.cb=0),0}function wo(o,d,w){return 3<=w&&o[d+0]==157&&o[d+1]==1&&o[d+2]==42}function Ao(o,d){if(o==null)return 0;if(o.a=0,o.sc="OK",d==null)return je(o,2,"null VP8Io passed to VP8GetHeaders()");var w=d.data,I=d.w,M=d.ha;if(4>M)return je(o,7,"Truncated header.");var W=w[I+0]|w[I+1]<<8|w[I+2]<<16,G=o.Od;if(G.Rb=!(1&W),G.td=W>>1&7,G.yd=W>>4&1,G.ub=W>>5,3<G.td)return je(o,3,"Incorrect keyframe parameters.");if(!G.yd)return je(o,4,"Frame not displayable.");I+=3,M-=3;var Z=o.Kc;if(G.Rb){if(7>M)return je(o,7,"cannot parse picture header");if(!wo(w,I,M))return je(o,3,"Bad code word");Z.c=16383&(w[I+4]<<8|w[I+3]),Z.Td=w[I+4]>>6,Z.i=16383&(w[I+6]<<8|w[I+5]),Z.Ud=w[I+6]>>6,I+=7,M-=7,o.za=Z.c+15>>4,o.Ub=Z.i+15>>4,d.width=Z.c,d.height=Z.i,d.Da=0,d.j=0,d.v=0,d.va=d.width,d.o=d.height,d.da=0,d.ib=d.width,d.hb=d.height,d.U=d.width,d.T=d.height,i((W=o.Pa).jb,0,255,W.jb.length),t((W=o.Qa)!=null),W.Cb=0,W.Bb=0,W.Fb=1,i(W.Zb,0,0,W.Zb.length),i(W.Lb,0,0,W.Lb)}if(G.ub>M)return je(o,7,"bad partition length");Y(W=o.m,w,I,G.ub),I+=G.ub,M-=G.ub,G.Rb&&(Z.Ld=it(W),Z.Kd=it(W)),Z=o.Qa;var X,$=o.Pa;if(t(W!=null),t(Z!=null),Z.Cb=it(W),Z.Cb){if(Z.Bb=it(W),it(W)){for(Z.Fb=it(W),X=0;4>X;++X)Z.Zb[X]=it(W)?T(W,7):0;for(X=0;4>X;++X)Z.Lb[X]=it(W)?T(W,6):0}if(Z.Bb)for(X=0;3>X;++X)$.jb[X]=it(W)?E(W,8):255}else Z.Bb=0;if(W.Ka)return je(o,3,"cannot parse segment header");if((Z=o.ed).zd=it(W),Z.Tb=E(W,6),Z.wb=E(W,3),Z.Pc=it(W),Z.Pc&&it(W)){for($=0;4>$;++$)it(W)&&(Z.vd[$]=T(W,6));for($=0;4>$;++$)it(W)&&(Z.od[$]=T(W,6))}if(o.L=Z.Tb==0?0:Z.zd?1:2,W.Ka)return je(o,3,"cannot parse filter header");var st=M;if(M=X=I,I=X+st,Z=st,o.Xb=(1<<E(o.m,2))-1,st<3*($=o.Xb))w=7;else{for(X+=3*$,Z-=3*$,st=0;st<$;++st){var ct=w[M+0]|w[M+1]<<8|w[M+2]<<16;ct>Z&&(ct=Z),Y(o.Jc[+st],w,X,ct),X+=ct,Z-=ct,M+=3}Y(o.Jc[+$],w,X,Z),w=X<I?0:5}if(w!=0)return je(o,w,"cannot parse partitions");for(w=E(X=o.m,7),M=it(X)?T(X,4):0,I=it(X)?T(X,4):0,Z=it(X)?T(X,4):0,$=it(X)?T(X,4):0,X=it(X)?T(X,4):0,st=o.Qa,ct=0;4>ct;++ct){if(st.Cb){var dt=st.Zb[ct];st.Fb||(dt+=w)}else{if(0<ct){o.pb[ct]=o.pb[0];continue}dt=w}var ut=o.pb[ct];ut.Sc[0]=pl[xn(dt+M,127)],ut.Sc[1]=gl[xn(dt+0,127)],ut.Eb[0]=2*pl[xn(dt+I,127)],ut.Eb[1]=101581*gl[xn(dt+Z,127)]>>16,8>ut.Eb[1]&&(ut.Eb[1]=8),ut.Qc[0]=pl[xn(dt+$,117)],ut.Qc[1]=gl[xn(dt+X,127)],ut.lc=dt+X}if(!G.Rb)return je(o,4,"Not a key frame.");for(it(W),G=o.Pa,w=0;4>w;++w){for(M=0;8>M;++M)for(I=0;3>I;++I)for(Z=0;11>Z;++Z)$=at(W,Eh[w][M][I][Z])?E(W,8):Ch[w][M][I][Z],G.Wc[w][M].Yb[I][Z]=$;for(M=0;17>M;++M)G.Xc[w][M]=G.Wc[w][Oh[M]]}return o.kc=it(W),o.kc&&(o.Bd=E(W,8)),o.cb=1}function _o(o,d,w,I,M,W,G){var Z=d[M].Yb[w];for(w=0;16>M;++M){if(!at(o,Z[w+0]))return M;for(;!at(o,Z[w+1]);)if(Z=d[++M].Yb[0],w=0,M==16)return 16;var X=d[M+1].Yb;if(at(o,Z[w+2])){var $=o,st=0;if(at($,(dt=Z)[(ct=w)+3]))if(at($,dt[ct+6])){for(Z=0,ct=2*(st=at($,dt[ct+8]))+(dt=at($,dt[ct+9+st])),st=0,dt=Ph[ct];dt[Z];++Z)st+=st+at($,dt[Z]);st+=3+(8<<ct)}else at($,dt[ct+7])?(st=7+2*at($,165),st+=at($,145)):st=5+at($,159);else st=at($,dt[ct+4])?3+at($,dt[ct+5]):2;Z=X[2]}else st=1,Z=X[1];X=G+Ih[M],0>($=o).b&&rt($);var ct,dt=$.b,ut=(ct=$.Ca>>1)-($.I>>dt)>>31;--$.b,$.Ca+=ut,$.Ca|=1,$.I-=(ct+1&ut)<<dt,W[X]=((st^ut)-ut)*I[(0<M)+0]}return 16}function la(o){var d=o.rb[o.sb-1];d.la=0,d.Na=0,i(o.zc,0,0,o.zc.length),o.ja=0}function Ws(o,d){if(o==null)return 0;if(d==null)return je(o,2,"NULL VP8Io parameter in VP8Decode().");if(!o.cb&&!Ao(o,d))return 0;if(t(o.cb),d.ac==null||d.ac(d)){d.ob&&(o.L=0);var w=Qo[o.L];if(o.L==2?(o.yb=0,o.zb=0):(o.yb=d.v-w>>4,o.zb=d.j-w>>4,0>o.yb&&(o.yb=0),0>o.zb&&(o.zb=0)),o.Va=d.o+15+w>>4,o.Hb=d.va+15+w>>4,o.Hb>o.za&&(o.Hb=o.za),o.Va>o.Ub&&(o.Va=o.Ub),0<o.L){var I=o.ed;for(w=0;4>w;++w){var M;if(o.Qa.Cb){var W=o.Qa.Lb[w];o.Qa.Fb||(W+=I.Tb)}else W=I.Tb;for(M=0;1>=M;++M){var G=o.gd[w][M],Z=W;if(I.Pc&&(Z+=I.vd[0],M&&(Z+=I.od[0])),0<(Z=0>Z?0:63<Z?63:Z)){var X=Z;0<I.wb&&(X=4<I.wb?X>>2:X>>1)>9-I.wb&&(X=9-I.wb),1>X&&(X=1),G.dd=X,G.tc=2*Z+X,G.ld=40<=Z?2:15<=Z?1:0}else G.tc=0;G.La=M}}}w=0}else je(o,6,"Frame setup failed"),w=o.a;if(w=w==0){if(w){o.$c=0,0<o.Aa||(o.Ic=Vh);t:{w=o.Ic,I=4*(X=o.za);var $=32*X,st=X+1,ct=0<o.L?X*(0<o.Aa?2:1):0,dt=(o.Aa==2?2:1)*X;if((G=I+832+(M=3*(16*w+Qo[o.L])/2*$)+(W=o.Fa!=null&&0<o.Fa.length?o.Kc.c*o.Kc.i:0))!=G)w=0;else{if(G>o.Vb){if(o.Vb=0,o.Ec=n(G),o.Fc=0,o.Ec==null){w=je(o,1,"no memory during frame initialization.");break t}o.Vb=G}G=o.Ec,Z=o.Fc,o.Ac=G,o.Bc=Z,Z+=I,o.Gd=s($,yo),o.Hd=0,o.rb=s(st+1,bo),o.sb=1,o.wa=ct?s(ct,Ii):null,o.Y=0,o.D.Nb=0,o.D.wa=o.wa,o.D.Y=o.Y,0<o.Aa&&(o.D.Y+=X),t(!0),o.oc=G,o.pc=Z,Z+=832,o.ya=s(dt,sa),o.aa=0,o.D.ya=o.ya,o.D.aa=o.aa,o.Aa==2&&(o.D.aa+=X),o.R=16*X,o.B=8*X,X=($=Qo[o.L])*o.R,$=$/2*o.B,o.sa=G,o.ta=Z+X,o.qa=o.sa,o.ra=o.ta+16*w*o.R+$,o.Ha=o.qa,o.Ia=o.ra+8*w*o.B+$,o.$c=0,Z+=M,o.mb=W?G:null,o.nb=W?Z:null,t(Z+W<=o.Fc+o.Vb),la(o),i(o.Ac,o.Bc,0,I),w=1}}if(w){if(d.ka=0,d.y=o.sa,d.O=o.ta,d.f=o.qa,d.N=o.ra,d.ea=o.Ha,d.Vd=o.Ia,d.fa=o.R,d.Rc=o.B,d.F=null,d.J=0,!Uo){for(w=-255;255>=w;++w)Ge[255+w]=0>w?-w:w;for(w=-1020;1020>=w;++w)_r[1020+w]=-128>w?-128:127<w?127:w;for(w=-112;112>=w;++w)Ca[112+w]=-16>w?-16:15<w?15:w;for(w=-255;510>=w;++w)Yi[255+w]=0>w?0:255<w?255:w;Uo=1}Gi=Zs,Ar=Gs,ka=So,hn=Vs,En=Lo,Re=xo,Vi=pa,Mo=ti,Pa=ol,ri=ga,ii=al,jr=Ti,ai=va,Zi=Bo,oi=Oo,Rr=hr,Ia=br,On=il,Xn[0]=ur,Xn[1]=Ys,Xn[2]=Ks,Xn[3]=$s,Xn[4]=Po,Xn[5]=Bi,Xn[6]=Io,Xn[7]=ha,Xn[8]=el,Xn[9]=tl,zr[0]=No,zr[1]=Qs,zr[2]=mr,zr[3]=Ei,zr[4]=sn,zr[5]=Xs,zr[6]=ko,xr[0]=Er,xr[1]=Js,xr[2]=nl,xr[3]=ca,xr[4]=$r,xr[5]=rl,xr[6]=da,w=1}else w=0}w&&(w=function(ut,_t){for(ut.M=0;ut.M<ut.Va;++ut.M){var vt,lt=ut.Jc[ut.M&ut.Xb],ft=ut.m,wt=ut;for(vt=0;vt<wt.za;++vt){var Lt=ft,At=wt,Rt=At.Ac,Ot=At.Bc+4*vt,Gt=At.zc,Bt=At.ya[At.aa+vt];if(At.Qa.Bb?Bt.$b=at(Lt,At.Pa.jb[0])?2+at(Lt,At.Pa.jb[2]):at(Lt,At.Pa.jb[1]):Bt.$b=0,At.kc&&(Bt.Ad=at(Lt,At.Bd)),Bt.Za=!at(Lt,145)+0,Bt.Za){var de=Bt.Ob,ve=0;for(At=0;4>At;++At){var he,oe=Gt[0+At];for(he=0;4>he;++he){oe=Fh[Rt[Ot+he]][oe];for(var xe=Vf[at(Lt,oe[0])];0<xe;)xe=Vf[2*xe+at(Lt,oe[xe])];oe=-xe,Rt[Ot+he]=oe}r(de,ve,Rt,Ot,4),ve+=4,Gt[0+At]=oe}}else oe=at(Lt,156)?at(Lt,128)?1:3:at(Lt,163)?2:0,Bt.Ob[0]=oe,i(Rt,Ot,oe,4),i(Gt,0,oe,4);Bt.Dd=at(Lt,142)?at(Lt,114)?at(Lt,183)?1:3:2:0}if(wt.m.Ka)return je(ut,7,"Premature end-of-partition0 encountered.");for(;ut.ja<ut.za;++ut.ja){if(wt=lt,Lt=(ft=ut).rb[ft.sb-1],Rt=ft.rb[ft.sb+ft.ja],vt=ft.ya[ft.aa+ft.ja],Ot=ft.kc?vt.Ad:0)Lt.la=Rt.la=0,vt.Za||(Lt.Na=Rt.Na=0),vt.Hc=0,vt.Gc=0,vt.ia=0;else{var we,re;if(Lt=Rt,Rt=wt,Ot=ft.Pa.Xc,Gt=ft.ya[ft.aa+ft.ja],Bt=ft.pb[Gt.$b],At=Gt.ad,de=0,ve=ft.rb[ft.sb-1],oe=he=0,i(At,de,0,384),Gt.Za)var qe=0,yn=Ot[3];else{xe=n(16);var He=Lt.Na+ve.Na;if(He=Fa(Rt,Ot[1],He,Bt.Eb,0,xe,0),Lt.Na=ve.Na=(0<He)+0,1<He)Gi(xe,0,At,de);else{var wn=xe[0]+3>>3;for(xe=0;256>xe;xe+=16)At[de+xe]=wn}qe=1,yn=Ot[0]}var me=15&Lt.la,Ln=15&ve.la;for(xe=0;4>xe;++xe){var Nn=1&Ln;for(wn=re=0;4>wn;++wn)me=me>>1|(Nn=(He=Fa(Rt,yn,He=Nn+(1&me),Bt.Sc,qe,At,de))>qe)<<7,re=re<<2|(3<He?3:1<He?2:At[de+0]!=0),de+=16;me>>=4,Ln=Ln>>1|Nn<<7,he=(he<<8|re)>>>0}for(yn=me,qe=Ln>>4,we=0;4>we;we+=2){for(re=0,me=Lt.la>>4+we,Ln=ve.la>>4+we,xe=0;2>xe;++xe){for(Nn=1&Ln,wn=0;2>wn;++wn)He=Nn+(1&me),me=me>>1|(Nn=0<(He=Fa(Rt,Ot[2],He,Bt.Qc,0,At,de)))<<3,re=re<<2|(3<He?3:1<He?2:At[de+0]!=0),de+=16;me>>=2,Ln=Ln>>1|Nn<<5}oe|=re<<4*we,yn|=me<<4<<we,qe|=(240&Ln)<<we}Lt.la=yn,ve.la=qe,Gt.Hc=he,Gt.Gc=oe,Gt.ia=43690&oe?0:Bt.ia,Ot=!(he|oe)}if(0<ft.L&&(ft.wa[ft.Y+ft.ja]=ft.gd[vt.$b][vt.Za],ft.wa[ft.Y+ft.ja].La|=!Ot),wt.Ka)return je(ut,7,"Premature end-of-file encountered.")}if(la(ut),ft=_t,wt=1,vt=(lt=ut).D,Lt=0<lt.L&&lt.M>=lt.zb&&lt.M<=lt.Va,lt.Aa==0)t:{if(vt.M=lt.M,vt.uc=Lt,_a(lt,vt),wt=1,vt=(re=lt.D).Nb,Lt=(oe=Qo[lt.L])*lt.R,Rt=oe/2*lt.B,xe=16*vt*lt.R,wn=8*vt*lt.B,Ot=lt.sa,Gt=lt.ta-Lt+xe,Bt=lt.qa,At=lt.ra-Rt+wn,de=lt.Ha,ve=lt.Ia-Rt+wn,Ln=(me=re.M)==0,he=me>=lt.Va-1,lt.Aa==2&&_a(lt,re),re.uc)for(Nn=(He=lt).D.M,t(He.D.uc),re=He.yb;re<He.Hb;++re){qe=re,yn=Nn;var Qe=(tn=(Oe=He).D).Nb;we=Oe.R;var tn=tn.wa[tn.Y+qe],cn=Oe.sa,jn=Oe.ta+16*Qe*we+16*qe,dr=tn.dd,Xe=tn.tc;if(Xe!=0)if(t(3<=Xe),Oe.L==1)0<qe&&Rr(cn,jn,we,Xe+4),tn.La&&On(cn,jn,we,Xe),0<yn&&oi(cn,jn,we,Xe+4),tn.La&&Ia(cn,jn,we,Xe);else{var Sr=Oe.B,si=Oe.qa,Ji=Oe.ra+8*Qe*Sr+8*qe,Ur=Oe.Ha,Oe=Oe.Ia+8*Qe*Sr+8*qe;Qe=tn.ld,0<qe&&(Mo(cn,jn,we,Xe+4,dr,Qe),ri(si,Ji,Ur,Oe,Sr,Xe+4,dr,Qe)),tn.La&&(jr(cn,jn,we,Xe,dr,Qe),Zi(si,Ji,Ur,Oe,Sr,Xe,dr,Qe)),0<yn&&(Vi(cn,jn,we,Xe+4,dr,Qe),Pa(si,Ji,Ur,Oe,Sr,Xe+4,dr,Qe)),tn.La&&(ii(cn,jn,we,Xe,dr,Qe),ai(si,Ji,Ur,Oe,Sr,Xe,dr,Qe))}}if(lt.ia&&alert("todo:DitherRow"),ft.put!=null){if(re=16*me,me=16*(me+1),Ln?(ft.y=lt.sa,ft.O=lt.ta+xe,ft.f=lt.qa,ft.N=lt.ra+wn,ft.ea=lt.Ha,ft.W=lt.Ia+wn):(re-=oe,ft.y=Ot,ft.O=Gt,ft.f=Bt,ft.N=At,ft.ea=de,ft.W=ve),he||(me-=oe),me>ft.o&&(me=ft.o),ft.F=null,ft.J=null,lt.Fa!=null&&0<lt.Fa.length&&re<me&&(ft.J=wa(lt,ft,re,me-re),ft.F=lt.mb,ft.F==null&&ft.F.length==0)){wt=je(lt,3,"Could not decode alpha data.");break t}re<ft.j&&(oe=ft.j-re,re=ft.j,t(!(1&oe)),ft.O+=lt.R*oe,ft.N+=lt.B*(oe>>1),ft.W+=lt.B*(oe>>1),ft.F!=null&&(ft.J+=ft.width*oe)),re<me&&(ft.O+=ft.v,ft.N+=ft.v>>1,ft.W+=ft.v>>1,ft.F!=null&&(ft.J+=ft.v),ft.ka=re-ft.j,ft.U=ft.va-ft.v,ft.T=me-re,wt=ft.put(ft))}vt+1!=lt.Ic||he||(r(lt.sa,lt.ta-Lt,Ot,Gt+16*lt.R,Lt),r(lt.qa,lt.ra-Rt,Bt,At+8*lt.B,Rt),r(lt.Ha,lt.Ia-Rt,de,ve+8*lt.B,Rt))}if(!wt)return je(ut,6,"Output aborted.")}return 1}(o,d)),d.bc!=null&&d.bc(d),w&=1}return w?(o.cb=0,w):0}function Yn(o,d,w,I,M){M=o[d+w+32*I]+(M>>3),o[d+w+32*I]=-256&M?0>M?0:255:M}function Fi(o,d,w,I,M,W){Yn(o,d,0,w,I+M),Yn(o,d,1,w,I+W),Yn(o,d,2,w,I-W),Yn(o,d,3,w,I-M)}function vn(o){return(20091*o>>16)+o}function fa(o,d,w,I){var M,W=0,G=n(16);for(M=0;4>M;++M){var Z=o[d+0]+o[d+8],X=o[d+0]-o[d+8],$=(35468*o[d+4]>>16)-vn(o[d+12]),st=vn(o[d+4])+(35468*o[d+12]>>16);G[W+0]=Z+st,G[W+1]=X+$,G[W+2]=X-$,G[W+3]=Z-st,W+=4,d++}for(M=W=0;4>M;++M)Z=(o=G[W+0]+4)+G[W+8],X=o-G[W+8],$=(35468*G[W+4]>>16)-vn(G[W+12]),Yn(w,I,0,0,Z+(st=vn(G[W+4])+(35468*G[W+12]>>16))),Yn(w,I,1,0,X+$),Yn(w,I,2,0,X-$),Yn(w,I,3,0,Z-st),W++,I+=32}function xo(o,d,w,I){var M=o[d+0]+4,W=35468*o[d+4]>>16,G=vn(o[d+4]),Z=35468*o[d+1]>>16;Fi(w,I,0,M+G,o=vn(o[d+1]),Z),Fi(w,I,1,M+W,o,Z),Fi(w,I,2,M-W,o,Z),Fi(w,I,3,M-G,o,Z)}function Gs(o,d,w,I,M){fa(o,d,w,I),M&&fa(o,d+16,w,I+4)}function So(o,d,w,I){Ar(o,d+0,w,I,1),Ar(o,d+32,w,I+128,1)}function Vs(o,d,w,I){var M;for(o=o[d+0]+4,M=0;4>M;++M)for(d=0;4>d;++d)Yn(w,I,d,M,o)}function Lo(o,d,w,I){o[d+0]&&hn(o,d+0,w,I),o[d+16]&&hn(o,d+16,w,I+4),o[d+32]&&hn(o,d+32,w,I+128),o[d+48]&&hn(o,d+48,w,I+128+4)}function Zs(o,d,w,I){var M,W=n(16);for(M=0;4>M;++M){var G=o[d+0+M]+o[d+12+M],Z=o[d+4+M]+o[d+8+M],X=o[d+4+M]-o[d+8+M],$=o[d+0+M]-o[d+12+M];W[0+M]=G+Z,W[8+M]=G-Z,W[4+M]=$+X,W[12+M]=$-X}for(M=0;4>M;++M)G=(o=W[0+4*M]+3)+W[3+4*M],Z=W[1+4*M]+W[2+4*M],X=W[1+4*M]-W[2+4*M],$=o-W[3+4*M],w[I+0]=G+Z>>3,w[I+16]=$+X>>3,w[I+32]=G-Z>>3,w[I+48]=$-X>>3,I+=64}function ua(o,d,w){var I,M=d-32,W=Sn,G=255-o[M-1];for(I=0;I<w;++I){var Z,X=W,$=G+o[d-1];for(Z=0;Z<w;++Z)o[d+Z]=X[$+o[M+Z]];d+=32}}function Ys(o,d){ua(o,d,4)}function Js(o,d){ua(o,d,8)}function Qs(o,d){ua(o,d,16)}function mr(o,d){var w;for(w=0;16>w;++w)r(o,d+32*w,o,d-32,16)}function Ei(o,d){var w;for(w=16;0<w;--w)i(o,d,o[d-1],16),d+=32}function Oi(o,d,w){var I;for(I=0;16>I;++I)i(d,w+32*I,o,16)}function No(o,d){var w,I=16;for(w=0;16>w;++w)I+=o[d-1+32*w]+o[d+w-32];Oi(I>>5,o,d)}function sn(o,d){var w,I=8;for(w=0;16>w;++w)I+=o[d-1+32*w];Oi(I>>4,o,d)}function Xs(o,d){var w,I=8;for(w=0;16>w;++w)I+=o[d+w-32];Oi(I>>4,o,d)}function ko(o,d){Oi(128,o,d)}function Kt(o,d,w){return o+2*d+w+2>>2}function Ks(o,d){var w,I=d-32;for(I=new Uint8Array([Kt(o[I-1],o[I+0],o[I+1]),Kt(o[I+0],o[I+1],o[I+2]),Kt(o[I+1],o[I+2],o[I+3]),Kt(o[I+2],o[I+3],o[I+4])]),w=0;4>w;++w)r(o,d+32*w,I,0,I.length)}function $s(o,d){var w=o[d-1],I=o[d-1+32],M=o[d-1+64],W=o[d-1+96];gt(o,d+0,16843009*Kt(o[d-1-32],w,I)),gt(o,d+32,16843009*Kt(w,I,M)),gt(o,d+64,16843009*Kt(I,M,W)),gt(o,d+96,16843009*Kt(M,W,W))}function ur(o,d){var w,I=4;for(w=0;4>w;++w)I+=o[d+w-32]+o[d-1+32*w];for(I>>=3,w=0;4>w;++w)i(o,d+32*w,I,4)}function Po(o,d){var w=o[d-1+0],I=o[d-1+32],M=o[d-1+64],W=o[d-1-32],G=o[d+0-32],Z=o[d+1-32],X=o[d+2-32],$=o[d+3-32];o[d+0+96]=Kt(I,M,o[d-1+96]),o[d+1+96]=o[d+0+64]=Kt(w,I,M),o[d+2+96]=o[d+1+64]=o[d+0+32]=Kt(W,w,I),o[d+3+96]=o[d+2+64]=o[d+1+32]=o[d+0+0]=Kt(G,W,w),o[d+3+64]=o[d+2+32]=o[d+1+0]=Kt(Z,G,W),o[d+3+32]=o[d+2+0]=Kt(X,Z,G),o[d+3+0]=Kt($,X,Z)}function Io(o,d){var w=o[d+1-32],I=o[d+2-32],M=o[d+3-32],W=o[d+4-32],G=o[d+5-32],Z=o[d+6-32],X=o[d+7-32];o[d+0+0]=Kt(o[d+0-32],w,I),o[d+1+0]=o[d+0+32]=Kt(w,I,M),o[d+2+0]=o[d+1+32]=o[d+0+64]=Kt(I,M,W),o[d+3+0]=o[d+2+32]=o[d+1+64]=o[d+0+96]=Kt(M,W,G),o[d+3+32]=o[d+2+64]=o[d+1+96]=Kt(W,G,Z),o[d+3+64]=o[d+2+96]=Kt(G,Z,X),o[d+3+96]=Kt(Z,X,X)}function Bi(o,d){var w=o[d-1+0],I=o[d-1+32],M=o[d-1+64],W=o[d-1-32],G=o[d+0-32],Z=o[d+1-32],X=o[d+2-32],$=o[d+3-32];o[d+0+0]=o[d+1+64]=W+G+1>>1,o[d+1+0]=o[d+2+64]=G+Z+1>>1,o[d+2+0]=o[d+3+64]=Z+X+1>>1,o[d+3+0]=X+$+1>>1,o[d+0+96]=Kt(M,I,w),o[d+0+64]=Kt(I,w,W),o[d+0+32]=o[d+1+96]=Kt(w,W,G),o[d+1+32]=o[d+2+96]=Kt(W,G,Z),o[d+2+32]=o[d+3+96]=Kt(G,Z,X),o[d+3+32]=Kt(Z,X,$)}function ha(o,d){var w=o[d+0-32],I=o[d+1-32],M=o[d+2-32],W=o[d+3-32],G=o[d+4-32],Z=o[d+5-32],X=o[d+6-32],$=o[d+7-32];o[d+0+0]=w+I+1>>1,o[d+1+0]=o[d+0+64]=I+M+1>>1,o[d+2+0]=o[d+1+64]=M+W+1>>1,o[d+3+0]=o[d+2+64]=W+G+1>>1,o[d+0+32]=Kt(w,I,M),o[d+1+32]=o[d+0+96]=Kt(I,M,W),o[d+2+32]=o[d+1+96]=Kt(M,W,G),o[d+3+32]=o[d+2+96]=Kt(W,G,Z),o[d+3+64]=Kt(G,Z,X),o[d+3+96]=Kt(Z,X,$)}function tl(o,d){var w=o[d-1+0],I=o[d-1+32],M=o[d-1+64],W=o[d-1+96];o[d+0+0]=w+I+1>>1,o[d+2+0]=o[d+0+32]=I+M+1>>1,o[d+2+32]=o[d+0+64]=M+W+1>>1,o[d+1+0]=Kt(w,I,M),o[d+3+0]=o[d+1+32]=Kt(I,M,W),o[d+3+32]=o[d+1+64]=Kt(M,W,W),o[d+3+64]=o[d+2+64]=o[d+0+96]=o[d+1+96]=o[d+2+96]=o[d+3+96]=W}function el(o,d){var w=o[d-1+0],I=o[d-1+32],M=o[d-1+64],W=o[d-1+96],G=o[d-1-32],Z=o[d+0-32],X=o[d+1-32],$=o[d+2-32];o[d+0+0]=o[d+2+32]=w+G+1>>1,o[d+0+32]=o[d+2+64]=I+w+1>>1,o[d+0+64]=o[d+2+96]=M+I+1>>1,o[d+0+96]=W+M+1>>1,o[d+3+0]=Kt(Z,X,$),o[d+2+0]=Kt(G,Z,X),o[d+1+0]=o[d+3+32]=Kt(w,G,Z),o[d+1+32]=o[d+3+64]=Kt(I,w,G),o[d+1+64]=o[d+3+96]=Kt(M,I,w),o[d+1+96]=Kt(W,M,I)}function nl(o,d){var w;for(w=0;8>w;++w)r(o,d+32*w,o,d-32,8)}function ca(o,d){var w;for(w=0;8>w;++w)i(o,d,o[d-1],8),d+=32}function Kr(o,d,w){var I;for(I=0;8>I;++I)i(d,w+32*I,o,8)}function Er(o,d){var w,I=8;for(w=0;8>w;++w)I+=o[d+w-32]+o[d-1+32*w];Kr(I>>4,o,d)}function rl(o,d){var w,I=4;for(w=0;8>w;++w)I+=o[d+w-32];Kr(I>>3,o,d)}function $r(o,d){var w,I=4;for(w=0;8>w;++w)I+=o[d-1+32*w];Kr(I>>3,o,d)}function da(o,d){Kr(128,o,d)}function Di(o,d,w){var I=o[d-w],M=o[d+0],W=3*(M-I)+fl[1020+o[d-2*w]-o[d+w]],G=qo[112+(W+4>>3)];o[d-w]=Sn[255+I+qo[112+(W+3>>3)]],o[d+0]=Sn[255+M-G]}function Co(o,d,w,I){var M=o[d+0],W=o[d+w];return Dn[255+o[d-2*w]-o[d-w]]>I||Dn[255+W-M]>I}function Fo(o,d,w,I){return 4*Dn[255+o[d-w]-o[d+0]]+Dn[255+o[d-2*w]-o[d+w]]<=I}function Eo(o,d,w,I,M){var W=o[d-3*w],G=o[d-2*w],Z=o[d-w],X=o[d+0],$=o[d+w],st=o[d+2*w],ct=o[d+3*w];return 4*Dn[255+Z-X]+Dn[255+G-$]>I?0:Dn[255+o[d-4*w]-W]<=M&&Dn[255+W-G]<=M&&Dn[255+G-Z]<=M&&Dn[255+ct-st]<=M&&Dn[255+st-$]<=M&&Dn[255+$-X]<=M}function Oo(o,d,w,I){var M=2*I+1;for(I=0;16>I;++I)Fo(o,d+I,w,M)&&Di(o,d+I,w)}function hr(o,d,w,I){var M=2*I+1;for(I=0;16>I;++I)Fo(o,d+I*w,1,M)&&Di(o,d+I*w,1)}function br(o,d,w,I){var M;for(M=3;0<M;--M)Oo(o,d+=4*w,w,I)}function il(o,d,w,I){var M;for(M=3;0<M;--M)hr(o,d+=4,w,I)}function Or(o,d,w,I,M,W,G,Z){for(W=2*W+1;0<M--;){if(Eo(o,d,w,W,G))if(Co(o,d,w,Z))Di(o,d,w);else{var X=o,$=d,st=w,ct=X[$-2*st],dt=X[$-st],ut=X[$+0],_t=X[$+st],vt=X[$+2*st],lt=27*(wt=fl[1020+3*(ut-dt)+fl[1020+ct-_t]])+63>>7,ft=18*wt+63>>7,wt=9*wt+63>>7;X[$-3*st]=Sn[255+X[$-3*st]+wt],X[$-2*st]=Sn[255+ct+ft],X[$-st]=Sn[255+dt+lt],X[$+0]=Sn[255+ut-lt],X[$+st]=Sn[255+_t-ft],X[$+2*st]=Sn[255+vt-wt]}d+=I}}function Jn(o,d,w,I,M,W,G,Z){for(W=2*W+1;0<M--;){if(Eo(o,d,w,W,G))if(Co(o,d,w,Z))Di(o,d,w);else{var X=o,$=d,st=w,ct=X[$-st],dt=X[$+0],ut=X[$+st],_t=qo[112+((vt=3*(dt-ct))+4>>3)],vt=qo[112+(vt+3>>3)],lt=_t+1>>1;X[$-2*st]=Sn[255+X[$-2*st]+lt],X[$-st]=Sn[255+ct+vt],X[$+0]=Sn[255+dt-_t],X[$+st]=Sn[255+ut-lt]}d+=I}}function pa(o,d,w,I,M,W){Or(o,d,w,1,16,I,M,W)}function ti(o,d,w,I,M,W){Or(o,d,1,w,16,I,M,W)}function al(o,d,w,I,M,W){var G;for(G=3;0<G;--G)Jn(o,d+=4*w,w,1,16,I,M,W)}function Ti(o,d,w,I,M,W){var G;for(G=3;0<G;--G)Jn(o,d+=4,1,w,16,I,M,W)}function ol(o,d,w,I,M,W,G,Z){Or(o,d,M,1,8,W,G,Z),Or(w,I,M,1,8,W,G,Z)}function ga(o,d,w,I,M,W,G,Z){Or(o,d,1,M,8,W,G,Z),Or(w,I,1,M,8,W,G,Z)}function va(o,d,w,I,M,W,G,Z){Jn(o,d+4*M,M,1,8,W,G,Z),Jn(w,I+4*M,M,1,8,W,G,Z)}function Bo(o,d,w,I,M,W,G,Z){Jn(o,d+4,1,M,8,W,G,Z),Jn(w,I+4,1,M,8,W,G,Z)}function ji(){this.ba=new An,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ce,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ma(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ba(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Do(){this.ua=0,this.Wa=new nt,this.vb=new nt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new F,this.yc=new x}function sl(){this.xb=this.a=0,this.l=new Ci,this.ca=new An,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new P,this.Pb=0,this.wd=new P,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Do,this.ab=0,this.gc=s(4,ba),this.Oc=0}function Ri(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ci,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ei(o,d,w,I,M,W,G){for(o=o==null?0:o[d+0],d=0;d<G;++d)M[W+d]=o+w[I+d]&255,o=M[W+d]}function ya(o,d,w,I,M,W,G){var Z;if(o==null)ei(null,null,w,I,M,W,G);else for(Z=0;Z<G;++Z)M[W+Z]=o[d+Z]+w[I+Z]&255}function Br(o,d,w,I,M,W,G){if(o==null)ei(null,null,w,I,M,W,G);else{var Z,X=o[d+0],$=X,st=X;for(Z=0;Z<G;++Z)$=st+(X=o[d+Z])-$,st=w[I+Z]+(-256&$?0>$?0:255:$)&255,$=X,M[W+Z]=st}}function wa(o,d,w,I){var M=d.width,W=d.o;if(t(o!=null&&d!=null),0>w||0>=I||w+I>W)return null;if(!o.Cc){if(o.ga==null){var G;if(o.ga=new Ri,(G=o.ga==null)||(G=d.width*d.o,t(o.Gb.length==0),o.Gb=n(G),o.Uc=0,o.Gb==null?G=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,G=1),G=!G),!G){G=o.ga;var Z=o.Fa,X=o.P,$=o.qc,st=o.mb,ct=o.nb,dt=X+1,ut=$-1,_t=G.l;if(t(Z!=null&&st!=null&&d!=null),Mr[0]=null,Mr[1]=ei,Mr[2]=ya,Mr[3]=Br,G.ca=st,G.tb=ct,G.c=d.width,G.i=d.height,t(0<G.c&&0<G.i),1>=$)d=0;else if(G.$a=Z[X+0]>>0&3,G.Z=Z[X+0]>>2&3,G.Lc=Z[X+0]>>4&3,X=Z[X+0]>>6&3,0>G.$a||1<G.$a||4<=G.Z||1<G.Lc||X)d=0;else if(_t.put=Ye,_t.ac=ke,_t.bc=or,_t.ma=G,_t.width=d.width,_t.height=d.height,_t.Da=d.Da,_t.v=d.v,_t.va=d.va,_t.j=d.j,_t.o=d.o,G.$a)t:{t(G.$a==1),d=Cn();e:for(;;){if(d==null){d=0;break t}if(t(G!=null),G.mc=d,d.c=G.c,d.i=G.i,d.l=G.l,d.l.ma=G,d.l.width=G.c,d.l.height=G.i,d.a=0,Q(d.m,Z,dt,ut),!fr(G.c,G.i,1,d,null)||(d.ab==1&&d.gc[0].hc==3&&vr(d.s)?(G.ic=1,Z=d.c*d.i,d.Ta=null,d.Ua=0,d.V=n(Z),d.Ba=0,d.V==null?(d.a=1,d=0):d=1):(G.ic=0,d=Xr(d,G.c)),!d))break e;d=1;break t}G.mc=null,d=0}else d=ut>=G.c*G.i;G=!d}if(G)return null;o.ga.Lc!=1?o.Ga=0:I=W-w}t(o.ga!=null),t(w+I<=W);t:{if(d=(Z=o.ga).c,W=Z.l.o,Z.$a==0){if(dt=o.rc,ut=o.Vc,_t=o.Fa,X=o.P+1+w*d,$=o.mb,st=o.nb+w*d,t(X<=o.P+o.qc),Z.Z!=0)for(t(Mr[Z.Z]!=null),G=0;G<I;++G)Mr[Z.Z](dt,ut,_t,X,$,st,d),dt=$,ut=st,st+=d,X+=d;else for(G=0;G<I;++G)r($,st,_t,X,d),dt=$,ut=st,st+=d,X+=d;o.rc=dt,o.Vc=ut}else{if(t(Z.mc!=null),d=w+I,t((G=Z.mc)!=null),t(d<=G.i),G.C>=d)d=1;else if(Z.ic||ht(),Z.ic){Z=G.V,dt=G.Ba,ut=G.c;var vt=G.i,lt=(_t=1,X=G.$/ut,$=G.$%ut,st=G.m,ct=G.s,G.$),ft=ut*vt,wt=ut*d,Lt=ct.wc,At=lt<wt?Me(ct,$,X):null;t(lt<=ft),t(d<=vt),t(vr(ct));e:for(;;){for(;!st.h&&lt<wt;){if($&Lt||(At=Me(ct,$,X)),t(At!=null),K(st),256>(vt=gn(At.G[0],At.H[0],st)))Z[dt+lt]=vt,++lt,++$>=ut&&($=0,++X<=d&&!(X%16)&&Vn(G,X));else{if(!(280>vt)){_t=0;break e}vt=Wn(vt-256,st);var Rt,Ot=gn(At.G[4],At.H[4],st);if(K(st),!(lt>=(Ot=sr(ut,Ot=Wn(Ot,st)))&&ft-lt>=vt)){_t=0;break e}for(Rt=0;Rt<vt;++Rt)Z[dt+lt+Rt]=Z[dt+lt+Rt-Ot];for(lt+=vt,$+=vt;$>=ut;)$-=ut,++X<=d&&!(X%16)&&Vn(G,X);lt<wt&&$&Lt&&(At=Me(ct,$,X))}t(st.h==z(st))}Vn(G,X>d?d:X);break e}!_t||st.h&&lt<ft?(_t=0,G.a=st.h?5:3):G.$=lt,d=_t}else d=Zn(G,G.V,G.Ba,G.c,G.i,d,Li);if(!d){I=0;break t}}w+I>=W&&(o.Cc=1),I=1}if(!I)return null;if(o.Cc&&((I=o.ga)!=null&&(I.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+w*M}function b(o,d,w,I,M,W){for(;0<M--;){var G,Z=o,X=d+(w?1:0),$=o,st=d+(w?0:3);for(G=0;G<I;++G){var ct=$[st+4*G];ct!=255&&(ct*=32897,Z[X+4*G+0]=Z[X+4*G+0]*ct>>23,Z[X+4*G+1]=Z[X+4*G+1]*ct>>23,Z[X+4*G+2]=Z[X+4*G+2]*ct>>23)}d+=W}}function U(o,d,w,I,M){for(;0<I--;){var W;for(W=0;W<w;++W){var G=o[d+2*W+0],Z=15&($=o[d+2*W+1]),X=4369*Z,$=(240&$|$>>4)*X>>16;o[d+2*W+0]=(240&G|G>>4)*X>>16&240|(15&G|G<<4)*X>>16>>4&15,o[d+2*W+1]=240&$|Z}d+=M}}function et(o,d,w,I,M,W,G,Z){var X,$,st=255;for($=0;$<M;++$){for(X=0;X<I;++X){var ct=o[d+X];W[G+4*X]=ct,st&=ct}d+=w,G+=Z}return st!=255}function ot(o,d,w,I,M){var W;for(W=0;W<M;++W)w[I+W]=o[d+W]>>8}function ht(){Bn=b,Se=U,Le=et,ze=ot}function bt(o,d,w){N[o]=function(I,M,W,G,Z,X,$,st,ct,dt,ut,_t,vt,lt,ft,wt,Lt){var At,Rt=Lt-1>>1,Ot=Z[X+0]|$[st+0]<<16,Gt=ct[dt+0]|ut[_t+0]<<16;t(I!=null);var Bt=3*Ot+Gt+131074>>2;for(d(I[M+0],255&Bt,Bt>>16,vt,lt),W!=null&&(Bt=3*Gt+Ot+131074>>2,d(W[G+0],255&Bt,Bt>>16,ft,wt)),At=1;At<=Rt;++At){var de=Z[X+At]|$[st+At]<<16,ve=ct[dt+At]|ut[_t+At]<<16,he=Ot+de+Gt+ve+524296,oe=he+2*(de+Gt)>>3;Bt=oe+Ot>>1,Ot=(he=he+2*(Ot+ve)>>3)+de>>1,d(I[M+2*At-1],255&Bt,Bt>>16,vt,lt+(2*At-1)*w),d(I[M+2*At-0],255&Ot,Ot>>16,vt,lt+(2*At-0)*w),W!=null&&(Bt=he+Gt>>1,Ot=oe+ve>>1,d(W[G+2*At-1],255&Bt,Bt>>16,ft,wt+(2*At-1)*w),d(W[G+2*At+0],255&Ot,Ot>>16,ft,wt+(2*At+0)*w)),Ot=de,Gt=ve}1&Lt||(Bt=3*Ot+Gt+131074>>2,d(I[M+Lt-1],255&Bt,Bt>>16,vt,lt+(Lt-1)*w),W!=null&&(Bt=3*Gt+Ot+131074>>2,d(W[G+Lt-1],255&Bt,Bt>>16,ft,wt+(Lt-1)*w)))}}function kt(){Tn[Ho]=Dh,Tn[Wo]=Yf,Tn[Hf]=Th,Tn[Go]=Jf,Tn[Vo]=Qf,Tn[ul]=Xf,Tn[Wf]=jh,Tn[hl]=Yf,Tn[cl]=Jf,Tn[Zo]=Qf,Tn[dl]=Xf}function jt(o){return o&~Rh?0>o?0:255:o>>Kf}function Ht(o,d){return jt((19077*o>>8)+(26149*d>>8)-14234)}function ee(o,d,w){return jt((19077*o>>8)-(6419*d>>8)-(13320*w>>8)+8708)}function te(o,d){return jt((19077*o>>8)+(33050*d>>8)-17685)}function ue(o,d,w,I,M){I[M+0]=Ht(o,w),I[M+1]=ee(o,d,w),I[M+2]=te(o,d)}function Ie(o,d,w,I,M){I[M+0]=te(o,d),I[M+1]=ee(o,d,w),I[M+2]=Ht(o,w)}function Ee(o,d,w,I,M){var W=ee(o,d,w);d=W<<3&224|te(o,d)>>3,I[M+0]=248&Ht(o,w)|W>>5,I[M+1]=d}function Ue(o,d,w,I,M){var W=240&te(o,d)|15;I[M+0]=240&Ht(o,w)|ee(o,d,w)>>4,I[M+1]=W}function ln(o,d,w,I,M){I[M+0]=255,ue(o,d,w,I,M+1)}function Je(o,d,w,I,M){Ie(o,d,w,I,M),I[M+3]=255}function Qn(o,d,w,I,M){ue(o,d,w,I,M),I[M+3]=255}function xn(o,d){return 0>o?0:o>d?d:o}function cr(o,d,w){N[o]=function(I,M,W,G,Z,X,$,st,ct){for(var dt=st+(-2&ct)*w;st!=dt;)d(I[M+0],W[G+0],Z[X+0],$,st),d(I[M+1],W[G+0],Z[X+0],$,st+w),M+=2,++G,++X,st+=2*w;1&ct&&d(I[M+0],W[G+0],Z[X+0],$,st)}}function To(o,d,w){return w==0?o==0?d==0?6:5:d==0?4:0:w}function Aa(o,d,w,I,M){switch(o>>>30){case 3:Ar(d,w,I,M,0);break;case 2:Re(d,w,I,M);break;case 1:hn(d,w,I,M)}}function _a(o,d){var w,I,M=d.M,W=d.Nb,G=o.oc,Z=o.pc+40,X=o.oc,$=o.pc+584,st=o.oc,ct=o.pc+600;for(w=0;16>w;++w)G[Z+32*w-1]=129;for(w=0;8>w;++w)X[$+32*w-1]=129,st[ct+32*w-1]=129;for(0<M?G[Z-1-32]=X[$-1-32]=st[ct-1-32]=129:(i(G,Z-32-1,127,21),i(X,$-32-1,127,9),i(st,ct-32-1,127,9)),I=0;I<o.za;++I){var dt=d.ya[d.aa+I];if(0<I){for(w=-1;16>w;++w)r(G,Z+32*w-4,G,Z+32*w+12,4);for(w=-1;8>w;++w)r(X,$+32*w-4,X,$+32*w+4,4),r(st,ct+32*w-4,st,ct+32*w+4,4)}var ut=o.Gd,_t=o.Hd+I,vt=dt.ad,lt=dt.Hc;if(0<M&&(r(G,Z-32,ut[_t].y,0,16),r(X,$-32,ut[_t].f,0,8),r(st,ct-32,ut[_t].ea,0,8)),dt.Za){var ft=G,wt=Z-32+16;for(0<M&&(I>=o.za-1?i(ft,wt,ut[_t].y[15],4):r(ft,wt,ut[_t+1].y,0,4)),w=0;4>w;w++)ft[wt+128+w]=ft[wt+256+w]=ft[wt+384+w]=ft[wt+0+w];for(w=0;16>w;++w,lt<<=2)ft=G,wt=Z+tu[w],Xn[dt.Ob[w]](ft,wt),Aa(lt,vt,16*+w,ft,wt)}else if(ft=To(I,M,dt.Ob[0]),zr[ft](G,Z),lt!=0)for(w=0;16>w;++w,lt<<=2)Aa(lt,vt,16*+w,G,Z+tu[w]);for(w=dt.Gc,ft=To(I,M,dt.Dd),xr[ft](X,$),xr[ft](st,ct),lt=vt,ft=X,wt=$,255&(dt=w>>0)&&(170&dt?ka(lt,256,ft,wt):En(lt,256,ft,wt)),dt=st,lt=ct,255&(w>>=8)&&(170&w?ka(vt,320,dt,lt):En(vt,320,dt,lt)),M<o.Ub-1&&(r(ut[_t].y,0,G,Z+480,16),r(ut[_t].f,0,X,$+224,8),r(ut[_t].ea,0,st,ct+224,8)),w=8*W*o.B,ut=o.sa,_t=o.ta+16*I+16*W*o.R,vt=o.qa,dt=o.ra+8*I+w,lt=o.Ha,ft=o.Ia+8*I+w,w=0;16>w;++w)r(ut,_t+w*o.R,G,Z+32*w,16);for(w=0;8>w;++w)r(vt,dt+w*o.B,X,$+32*w,8),r(lt,ft+w*o.B,st,ct+32*w,8)}}function zi(o,d,w,I,M,W,G,Z,X){var $=[0],st=[0],ct=0,dt=X!=null?X.kd:0,ut=X!=null?X:new ma;if(o==null||12>w)return 7;ut.data=o,ut.w=d,ut.ha=w,d=[d],w=[w],ut.gb=[ut.gb];t:{var _t=d,vt=w,lt=ut.gb;if(t(o!=null),t(vt!=null),t(lt!=null),lt[0]=0,12<=vt[0]&&!e(o,_t[0],"RIFF")){if(e(o,_t[0]+8,"WEBP")){lt=3;break t}var ft=Ct(o,_t[0]+4);if(12>ft||4294967286<ft){lt=3;break t}if(dt&&ft>vt[0]-8){lt=7;break t}lt[0]=ft,_t[0]+=12,vt[0]-=12}lt=0}if(lt!=0)return lt;for(ft=0<ut.gb[0],w=w[0];;){t:{var wt=o;vt=d,lt=w;var Lt=$,At=st,Rt=_t=[0];if((Bt=ct=[ct])[0]=0,8>lt[0])lt=7;else{if(!e(wt,vt[0],"VP8X")){if(Ct(wt,vt[0]+4)!=10){lt=3;break t}if(18>lt[0]){lt=7;break t}var Ot=Ct(wt,vt[0]+8),Gt=1+Nt(wt,vt[0]+12);if(2147483648<=Gt*(wt=1+Nt(wt,vt[0]+15))){lt=3;break t}Rt!=null&&(Rt[0]=Ot),Lt!=null&&(Lt[0]=Gt),At!=null&&(At[0]=wt),vt[0]+=18,lt[0]-=18,Bt[0]=1}lt=0}}if(ct=ct[0],_t=_t[0],lt!=0)return lt;if(vt=!!(2&_t),!ft&&ct)return 3;if(W!=null&&(W[0]=!!(16&_t)),G!=null&&(G[0]=vt),Z!=null&&(Z[0]=0),G=$[0],_t=st[0],ct&&vt&&X==null){lt=0;break}if(4>w){lt=7;break}if(ft&&ct||!ft&&!ct&&!e(o,d[0],"ALPH")){w=[w],ut.na=[ut.na],ut.P=[ut.P],ut.Sa=[ut.Sa];t:{Ot=o,lt=d,ft=w;var Bt=ut.gb;Lt=ut.na,At=ut.P,Rt=ut.Sa,Gt=22,t(Ot!=null),t(ft!=null),wt=lt[0];var de=ft[0];for(t(Lt!=null),t(Rt!=null),Lt[0]=null,At[0]=null,Rt[0]=0;;){if(lt[0]=wt,ft[0]=de,8>de){lt=7;break t}var ve=Ct(Ot,wt+4);if(4294967286<ve){lt=3;break t}var he=8+ve+1&-2;if(Gt+=he,0<Bt&&Gt>Bt){lt=3;break t}if(!e(Ot,wt,"VP8 ")||!e(Ot,wt,"VP8L")){lt=0;break t}if(de[0]<he){lt=7;break t}e(Ot,wt,"ALPH")||(Lt[0]=Ot,At[0]=wt+8,Rt[0]=ve),wt+=he,de-=he}}if(w=w[0],ut.na=ut.na[0],ut.P=ut.P[0],ut.Sa=ut.Sa[0],lt!=0)break}w=[w],ut.Ja=[ut.Ja],ut.xa=[ut.xa];t:if(Bt=o,lt=d,ft=w,Lt=ut.gb[0],At=ut.Ja,Rt=ut.xa,Ot=lt[0],wt=!e(Bt,Ot,"VP8 "),Gt=!e(Bt,Ot,"VP8L"),t(Bt!=null),t(ft!=null),t(At!=null),t(Rt!=null),8>ft[0])lt=7;else{if(wt||Gt){if(Bt=Ct(Bt,Ot+4),12<=Lt&&Bt>Lt-12){lt=3;break t}if(dt&&Bt>ft[0]-8){lt=7;break t}At[0]=Bt,lt[0]+=8,ft[0]-=8,Rt[0]=Gt}else Rt[0]=5<=ft[0]&&Bt[Ot+0]==47&&!(Bt[Ot+4]>>5),At[0]=ft[0];lt=0}if(w=w[0],ut.Ja=ut.Ja[0],ut.xa=ut.xa[0],d=d[0],lt!=0)break;if(4294967286<ut.Ja)return 3;if(Z==null||vt||(Z[0]=ut.xa?2:1),G=[G],_t=[_t],ut.xa){if(5>w){lt=7;break}Z=G,dt=_t,vt=W,o==null||5>w?o=0:5<=w&&o[d+0]==47&&!(o[d+4]>>5)?(ft=[0],Bt=[0],Lt=[0],Q(At=new P,o,d,w),Yt(At,ft,Bt,Lt)?(Z!=null&&(Z[0]=ft[0]),dt!=null&&(dt[0]=Bt[0]),vt!=null&&(vt[0]=Lt[0]),o=1):o=0):o=0}else{if(10>w){lt=7;break}Z=_t,o==null||10>w||!wo(o,d+3,w-3)?o=0:(dt=o[d+0]|o[d+1]<<8|o[d+2]<<16,vt=16383&(o[d+7]<<8|o[d+6]),o=16383&(o[d+9]<<8|o[d+8]),1&dt||3<(dt>>1&7)||!(dt>>4&1)||dt>>5>=ut.Ja||!vt||!o?o=0:(G&&(G[0]=vt),Z&&(Z[0]=o),o=1))}if(!o||(G=G[0],_t=_t[0],ct&&($[0]!=G||st[0]!=_t)))return 3;X!=null&&(X[0]=ut,X.offset=d-X.w,t(4294967286>d-X.w),t(X.offset==X.ha-w));break}return lt==0||lt==7&&ct&&X==null?(W!=null&&(W[0]|=ut.na!=null&&0<ut.na.length),I!=null&&(I[0]=G),M!=null&&(M[0]=_t),0):lt}function xa(o,d,w){var I=d.width,M=d.height,W=0,G=0,Z=I,X=M;if(d.Da=o!=null&&0<o.Da,d.Da&&(Z=o.cd,X=o.bd,W=o.v,G=o.j,11>w||(W&=-2,G&=-2),0>W||0>G||0>=Z||0>=X||W+Z>I||G+X>M))return 0;if(d.v=W,d.j=G,d.va=W+Z,d.o=G+X,d.U=Z,d.T=X,d.da=o!=null&&0<o.da,d.da){if(!Tt(Z,X,w=[o.ib],W=[o.hb]))return 0;d.ib=w[0],d.hb=W[0]}return d.ob=o!=null&&o.ob,d.Kb=o==null||!o.Sd,d.da&&(d.ob=d.ib<3*I/4&&d.hb<3*M/4,d.Kb=0),1}function Sa(o){if(o==null)return 2;if(11>o.S){var d=o.f.RGBA;d.fb+=(o.height-1)*d.A,d.A=-d.A}else d=o.f.kb,o=o.height,d.O+=(o-1)*d.fa,d.fa=-d.fa,d.N+=(o-1>>1)*d.Ab,d.Ab=-d.Ab,d.W+=(o-1>>1)*d.Db,d.Db=-d.Db,d.F!=null&&(d.J+=(o-1)*d.lb,d.lb=-d.lb);return 0}function Mi(o,d,w,I){if(I==null||0>=o||0>=d)return 2;if(w!=null){if(w.Da){var M=w.cd,W=w.bd,G=-2&w.v,Z=-2&w.j;if(0>G||0>Z||0>=M||0>=W||G+M>o||Z+W>d)return 2;o=M,d=W}if(w.da){if(!Tt(o,d,M=[w.ib],W=[w.hb]))return 2;o=M[0],d=W[0]}}I.width=o,I.height=d;t:{var X=I.width,$=I.height;if(o=I.S,0>=X||0>=$||!(o>=Ho&&13>o))o=2;else{if(0>=I.Rd&&I.sd==null){G=W=M=d=0;var st=(Z=X*eu[o])*$;if(11>o||(W=($+1)/2*(d=(X+1)/2),o==12&&(G=(M=X)*$)),($=n(st+2*W+G))==null){o=1;break t}I.sd=$,11>o?((X=I.f.RGBA).eb=$,X.fb=0,X.A=Z,X.size=st):((X=I.f.kb).y=$,X.O=0,X.fa=Z,X.Fd=st,X.f=$,X.N=0+st,X.Ab=d,X.Cd=W,X.ea=$,X.W=0+st+W,X.Db=d,X.Ed=W,o==12&&(X.F=$,X.J=0+st+2*W),X.Tc=G,X.lb=M)}if(d=1,M=I.S,W=I.width,G=I.height,M>=Ho&&13>M)if(11>M)o=I.f.RGBA,d&=(Z=Math.abs(o.A))*(G-1)+W<=o.size,d&=Z>=W*eu[M],d&=o.eb!=null;else{o=I.f.kb,Z=(W+1)/2,st=(G+1)/2,X=Math.abs(o.fa),$=Math.abs(o.Ab);var ct=Math.abs(o.Db),dt=Math.abs(o.lb),ut=dt*(G-1)+W;d&=X*(G-1)+W<=o.Fd,d&=$*(st-1)+Z<=o.Cd,d=(d&=ct*(st-1)+Z<=o.Ed)&X>=W&$>=Z&ct>=Z,d&=o.y!=null,d&=o.f!=null,d&=o.ea!=null,M==12&&(d&=dt>=W,d&=ut<=o.Tc,d&=o.F!=null)}else d=0;o=d?0:2}}return o!=0||w!=null&&w.fd&&(o=Sa(I)),o}var $e=64,Ui=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],qi=24,Hi=32,La=8,mn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];St("Predictor0","PredictorAdd0"),N.Predictor0=function(){return 4278190080},N.Predictor1=function(o){return o},N.Predictor2=function(o,d,w){return d[w+0]},N.Predictor3=function(o,d,w){return d[w+1]},N.Predictor4=function(o,d,w){return d[w-1]},N.Predictor5=function(o,d,w){return xt(xt(o,d[w+1]),d[w+0])},N.Predictor6=function(o,d,w){return xt(o,d[w-1])},N.Predictor7=function(o,d,w){return xt(o,d[w+0])},N.Predictor8=function(o,d,w){return xt(d[w-1],d[w+0])},N.Predictor9=function(o,d,w){return xt(d[w+0],d[w+1])},N.Predictor10=function(o,d,w){return xt(xt(o,d[w-1]),xt(d[w+0],d[w+1]))},N.Predictor11=function(o,d,w){var I=d[w+0];return 0>=Ut(I>>24&255,o>>24&255,(d=d[w-1])>>24&255)+Ut(I>>16&255,o>>16&255,d>>16&255)+Ut(I>>8&255,o>>8&255,d>>8&255)+Ut(255&I,255&o,255&d)?I:o},N.Predictor12=function(o,d,w){var I=d[w+0];return(Et((o>>24&255)+(I>>24&255)-((d=d[w-1])>>24&255))<<24|Et((o>>16&255)+(I>>16&255)-(d>>16&255))<<16|Et((o>>8&255)+(I>>8&255)-(d>>8&255))<<8|Et((255&o)+(255&I)-(255&d)))>>>0},N.Predictor13=function(o,d,w){var I=d[w-1];return(Dt((o=xt(o,d[w+0]))>>24&255,I>>24&255)<<24|Dt(o>>16&255,I>>16&255)<<16|Dt(o>>8&255,I>>8&255)<<8|Dt(o>>0&255,I>>0&255))>>>0};var ll=N.PredictorAdd0;N.PredictorAdd1=Qt,St("Predictor2","PredictorAdd2"),St("Predictor3","PredictorAdd3"),St("Predictor4","PredictorAdd4"),St("Predictor5","PredictorAdd5"),St("Predictor6","PredictorAdd6"),St("Predictor7","PredictorAdd7"),St("Predictor8","PredictorAdd8"),St("Predictor9","PredictorAdd9"),St("Predictor10","PredictorAdd10"),St("Predictor11","PredictorAdd11"),St("Predictor12","PredictorAdd12"),St("Predictor13","PredictorAdd13");var Na=N.PredictorAdd2;Wt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),Wt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var jo,Fn=N.ColorIndexInverseTransform,Wi=N.MapARGB,Ro=N.VP8LColorIndexInverseTransformAlpha,zo=N.MapAlpha,Dr=N.VP8LPredictorsAdd=[];Dr.length=16,(N.VP8LPredictors=[]).length=16,(N.VP8LPredictorsAdd_C=[]).length=16,(N.VP8LPredictors_C=[]).length=16;var ni,bn,un,Tr,yr,wr,Gi,Ar,Re,ka,hn,En,Vi,Mo,Pa,ri,ii,jr,ai,Zi,oi,Rr,Ia,On,Bn,Se,Le,ze,Ge=n(511),_r=n(2041),Ca=n(225),Yi=n(767),Uo=0,fl=_r,qo=Ca,Sn=Yi,Dn=Ge,Ho=0,Wo=1,Hf=2,Go=3,Vo=4,ul=5,Wf=6,hl=7,cl=8,Zo=9,dl=10,Ah=[2,3,7],_h=[3,3,11],Gf=[280,256,256,256,40],xh=[0,1,1,1,0],Sh=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Lh=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Nh=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],kh=8,pl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],gl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Fa=null,Ph=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Ih=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Vf=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Ch=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Fh=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Eh=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Oh=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zr=[],Xn=[],xr=[],Bh=1,Zf=2,Mr=[],Tn=[];bt("UpsampleRgbLinePair",ue,3),bt("UpsampleBgrLinePair",Ie,3),bt("UpsampleRgbaLinePair",Qn,4),bt("UpsampleBgraLinePair",Je,4),bt("UpsampleArgbLinePair",ln,4),bt("UpsampleRgba4444LinePair",Ue,2),bt("UpsampleRgb565LinePair",Ee,2);var Dh=N.UpsampleRgbLinePair,Th=N.UpsampleBgrLinePair,Yf=N.UpsampleRgbaLinePair,Jf=N.UpsampleBgraLinePair,Qf=N.UpsampleArgbLinePair,Xf=N.UpsampleRgba4444LinePair,jh=N.UpsampleRgb565LinePair,Yo=16,Jo=1<<Yo-1,Ea=-227,vl=482,Kf=6,Rh=(256<<Kf)-1,$f=0,zh=n(256),Mh=n(256),Uh=n(256),qh=n(256),Hh=n(vl-Ea),Wh=n(vl-Ea);cr("YuvToRgbRow",ue,3),cr("YuvToBgrRow",Ie,3),cr("YuvToRgbaRow",Qn,4),cr("YuvToBgraRow",Je,4),cr("YuvToArgbRow",ln,4),cr("YuvToRgba4444Row",Ue,2),cr("YuvToRgb565Row",Ee,2);var tu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Qo=[0,2,8],Gh=[8,7,6,4,4,2,2,2,1,1,1,1],Vh=1;this.WebPDecodeRGBA=function(o,d,w,I,M){var W=Wo,G=new ji,Z=new An;G.ba=Z,Z.S=W,Z.width=[Z.width],Z.height=[Z.height];var X=Z.width,$=Z.height,st=new Ze;if(st==null||o==null)var ct=2;else t(st!=null),ct=zi(o,d,w,st.width,st.height,st.Pd,st.Qd,st.format,null);if(ct!=0?X=0:(X!=null&&(X[0]=st.width[0]),$!=null&&($[0]=st.height[0]),X=1),X){Z.width=Z.width[0],Z.height=Z.height[0],I!=null&&(I[0]=Z.width),M!=null&&(M[0]=Z.height);t:{if(I=new Ci,(M=new ma).data=o,M.w=d,M.ha=w,M.kd=1,d=[0],t(M!=null),((o=zi(M.data,M.w,M.ha,null,null,null,d,null,M))==0||o==7)&&d[0]&&(o=4),(d=o)==0){if(t(G!=null),I.data=M.data,I.w=M.w+M.offset,I.ha=M.ha-M.offset,I.put=Ye,I.ac=ke,I.bc=or,I.ma=G,M.xa){if((o=Cn())==null){G=1;break t}if(function(dt,ut){var _t=[0],vt=[0],lt=[0];e:for(;;){if(dt==null)return 0;if(ut==null)return dt.a=2,0;if(dt.l=ut,dt.a=0,Q(dt.m,ut.data,ut.w,ut.ha),!Yt(dt.m,_t,vt,lt)){dt.a=3;break e}if(dt.xb=Zf,ut.width=_t[0],ut.height=vt[0],!fr(_t[0],vt[0],1,dt,null))break e;return 1}return t(dt.a!=0),0}(o,I)){if(I=(d=Mi(I.width,I.height,G.Oa,G.ba))==0){e:{I=o;n:for(;;){if(I==null){I=0;break e}if(t(I.s.yc!=null),t(I.s.Ya!=null),t(0<I.s.Wb),t((w=I.l)!=null),t((M=w.ma)!=null),I.xb!=0){if(I.ca=M.ba,I.tb=M.tb,t(I.ca!=null),!xa(M.Oa,w,Go)){I.a=2;break n}if(!Xr(I,w.width)||w.da)break n;if((w.da||fe(I.ca.S))&&ht(),11>I.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),I.ca.f.kb.F!=null&&ht()),I.Pb&&0<I.s.ua&&I.s.vb.X==null&&!Mt(I.s.vb,I.s.Wa.Xa)){I.a=1;break n}I.xb=0}if(!Zn(I,I.V,I.Ba,I.c,I.i,w.o,Si))break n;M.Dc=I.Ma,I=1;break e}t(I.a!=0),I=0}I=!I}I&&(d=o.a)}else d=o.a}else{if((o=new Hs)==null){G=1;break t}if(o.Fa=M.na,o.P=M.P,o.qc=M.Sa,Ao(o,I)){if((d=Mi(I.width,I.height,G.Oa,G.ba))==0){if(o.Aa=0,w=G.Oa,t((M=o)!=null),w!=null){if(0<(X=0>(X=w.Md)?0:100<X?255:255*X/100)){for($=st=0;4>$;++$)12>(ct=M.pb[$]).lc&&(ct.ia=X*Gh[0>ct.lc?0:ct.lc]>>3),st|=ct.ia;st&&(alert("todo:VP8InitRandom"),M.ia=1)}M.Ga=w.Id,100<M.Ga?M.Ga=100:0>M.Ga&&(M.Ga=0)}Ws(o,I)||(d=o.a)}}else d=o.a}d==0&&G.Oa!=null&&G.Oa.fd&&(d=Sa(G.ba))}G=d}W=G!=0?null:11>W?Z.f.RGBA.eb:Z.f.kb.y}else W=null;return W};var eu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(N,j){for(var v="",S=0;S<4;S++)v+=String.fromCharCode(N[j++]);return v}function p(N,j){return(N[j+0]<<0|N[j+1]<<8|N[j+2]<<16)>>>0}function u(N,j){return(N[j+0]<<0|N[j+1]<<8|N[j+2]<<16|N[j+3]<<24)>>>0}new h;var c=[0],l=[0],m=[],A=new h,C=a,L=function(N,j){var v={},S=0,x=!1,y=0,F=0;if(v.frames=[],!function(q,z,H,K){for(var rt=0;rt<K;rt++)if(q[z+rt]!=H.charCodeAt(rt))return!0;return!1}(N,j,"RIFF",4)){var Y,E;for(u(N,j+=4),j+=8;j<N.length;){var T=g(N,j),Q=u(N,j+=4);j+=4;var J=Q+(1&Q);switch(T){case"VP8 ":case"VP8L":v.frames[S]===void 0&&(v.frames[S]={}),(P=v.frames[S]).src_off=x?F:j-8,P.src_size=y+Q+8,S++,x&&(x=!1,y=0,F=0);break;case"VP8X":(P=v.header={}).feature_flags=N[j];var B=j+4;P.canvas_width=1+p(N,B),B+=3,P.canvas_height=1+p(N,B),B+=3;break;case"ALPH":x=!0,y=J+8,F=j-8;break;case"ANIM":(P=v.header).bgcolor=u(N,j),B=j+4,P.loop_count=(Y=N)[(E=B)+0]<<0|Y[E+1]<<8,B+=2;break;case"ANMF":var tt,P;(P=v.frames[S]={}).offset_x=2*p(N,j),j+=3,P.offset_y=2*p(N,j),j+=3,P.width=1+p(N,j),j+=3,P.height=1+p(N,j),j+=3,P.duration=p(N,j),j+=3,tt=N[j++],P.dispose=1&tt,P.blend=tt>>1&1}T!="ANMF"&&(j+=J)}return v}}(C,0);L.response=C,L.rgbaoutput=!0,L.dataurl=!1;var D=L.header?L.header:null,k=L.frames?L.frames:null;if(D){D.loop_counter=D.loop_count,c=[D.canvas_height],l=[D.canvas_width];for(var O=0;O<k.length&&k[O].blend!=0;O++);}var _=k[0],R=A.WebPDecodeRGBA(C,_.src_off,_.src_size,l,c);_.rgba=R,_.imgwidth=l[0],_.imgheight=c[0];for(var V=0;V<l[0]*c[0]*4;V++)m[V]=R[V];return this.width=l,this.height=c,this.data=m,this}(function(a){var t=function(){return typeof ia=="function"},e=function(c,l,m,A){var C=4,L=s;switch(A){case a.image_compression.FAST:C=1,L=n;break;case a.image_compression.MEDIUM:C=6,L=f;break;case a.image_compression.SLOW:C=9,L=h}c=r(c,l,m,L);var D=ia(c,{level:C});return a.__addimage__.arrayBufferToBinaryString(D)},r=function(c,l,m,A){for(var C,L,D,k=c.length/l,O=new Uint8Array(c.length+k),_=p(),R=0;R<k;R+=1){if(D=R*l,C=c.subarray(D,D+l),A)O.set(A(C,m,L),D+R);else{for(var V,N=_.length,j=[];V<N;V+=1)j[V]=_[V](C,m,L);var v=u(j.concat());O.set(j[v],D+R)}L=C}return O},i=function(c){var l=Array.apply([],c);return l.unshift(0),l},n=function(c,l){var m,A=[],C=c.length;A[0]=1;for(var L=0;L<C;L+=1)m=c[L-l]||0,A[L+1]=c[L]-m+256&255;return A},s=function(c,l,m){var A,C=[],L=c.length;C[0]=2;for(var D=0;D<L;D+=1)A=m&&m[D]||0,C[D+1]=c[D]-A+256&255;return C},f=function(c,l,m){var A,C,L=[],D=c.length;L[0]=3;for(var k=0;k<D;k+=1)A=c[k-l]||0,C=m&&m[k]||0,L[k+1]=c[k]+256-(A+C>>>1)&255;return L},h=function(c,l,m){var A,C,L,D,k=[],O=c.length;k[0]=4;for(var _=0;_<O;_+=1)A=c[_-l]||0,C=m&&m[_]||0,L=m&&m[_-l]||0,D=g(A,C,L),k[_+1]=c[_]-D+256&255;return k},g=function(c,l,m){if(c===l&&l===m)return c;var A=Math.abs(l-m),C=Math.abs(c-m),L=Math.abs(c+l-m-m);return A<=C&&A<=L?c:C<=L?l:m},p=function(){return[i,n,s,f,h]},u=function(c){var l=c.map(function(m){return m.reduce(function(A,C){return A+Math.abs(C)},0)});return l.indexOf(Math.min.apply(null,l))};a.processPNG=function(c,l,m,A){var C,L,D,k,O,_,R,V,N,j,v,S,x,y,F,Y=this.decode.FLATE_DECODE,E="";if(this.__addimage__.isArrayBuffer(c)&&(c=new Uint8Array(c)),this.__addimage__.isArrayBufferView(c)){if(c=(D=new Qu(c)).imgData,L=D.bits,C=D.colorSpace,O=D.colors,[4,6].indexOf(D.colorType)!==-1){if(D.bits===8){N=(V=D.pixelBitlength==32?new Uint32Array(D.decodePixels().buffer):D.pixelBitlength==16?new Uint16Array(D.decodePixels().buffer):new Uint8Array(D.decodePixels().buffer)).length,v=new Uint8Array(N*D.colors),j=new Uint8Array(N);var T,Q=D.pixelBitlength-D.bits;for(y=0,F=0;y<N;y++){for(x=V[y],T=0;T<Q;)v[F++]=x>>>T&255,T+=D.bits;j[y]=x>>>T&255}}if(D.bits===16){N=(V=new Uint32Array(D.decodePixels().buffer)).length,v=new Uint8Array(N*(32/D.pixelBitlength)*D.colors),j=new Uint8Array(N*(32/D.pixelBitlength)),S=D.colors>1,y=0,F=0;for(var J=0;y<N;)x=V[y++],v[F++]=x>>>0&255,S&&(v[F++]=x>>>16&255,x=V[y++],v[F++]=x>>>0&255),j[J++]=x>>>16&255;L=8}A!==a.image_compression.NONE&&t()?(c=e(v,D.width*D.colors,D.colors,A),R=e(j,D.width,1,A)):(c=v,R=j,Y=void 0)}if(D.colorType===3&&(C=this.color_spaces.INDEXED,_=D.palette,D.transparency.indexed)){var B=D.transparency.indexed,tt=0;for(y=0,N=B.length;y<N;++y)tt+=B[y];if((tt/=255)===N-1&&B.indexOf(0)!==-1)k=[B.indexOf(0)];else if(tt!==N){for(V=D.decodePixels(),j=new Uint8Array(V.length),y=0,N=V.length;y<N;y++)j[y]=B[V[y]];R=e(j,D.width,1)}}var P=function(q){var z;switch(q){case a.image_compression.FAST:z=11;break;case a.image_compression.MEDIUM:z=13;break;case a.image_compression.SLOW:z=14;break;default:z=12}return z}(A);return Y===this.decode.FLATE_DECODE&&(E="/Predictor "+P+" "),E+="/Colors "+O+" /BitsPerComponent "+L+" /Columns "+D.width,(this.__addimage__.isArrayBuffer(c)||this.__addimage__.isArrayBufferView(c))&&(c=this.__addimage__.arrayBufferToBinaryString(c)),(R&&this.__addimage__.isArrayBuffer(R)||this.__addimage__.isArrayBufferView(R))&&(R=this.__addimage__.arrayBufferToBinaryString(R)),{alias:m,data:c,index:l,filter:Y,decodeParameters:E,transparency:k,palette:_,sMask:R,predictor:P,width:D.width,height:D.height,bitsPerComponent:L,colorSpace:C}}}})(Zt.API),function(a){a.processGIF89A=function(t,e,r,i){var n=new Xu(t),s=n.width,f=n.height,h=[];n.decodeAndBlitFrameRGBA(0,h);var g={data:h,width:s,height:f},p=new Bs(100).encode(g,100);return a.processJPEG.call(this,p,e,r,i)},a.processGIF87A=a.processGIF89A}(Zt.API),Un.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var a=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(a);for(var t=0;t<a;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:e,quad:n}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Un.prototype.parseBGR=function(){this.pos=this.offset;try{var a="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[a]()}catch(e){_e.log("bit decode error:"+e)}},Un.prototype.bit1=function(){var a,t=Math.ceil(this.width/8),e=t%4;for(a=this.height-1;a>=0;a--){for(var r=this.bottom_up?a:this.height-1-a,i=0;i<t;i++)for(var n=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*i*4,f=0;f<8&&8*i+f<this.width;f++){var h=this.palette[n>>7-f&1];this.data[s+4*f]=h.blue,this.data[s+4*f+1]=h.green,this.data[s+4*f+2]=h.red,this.data[s+4*f+3]=255}e!==0&&(this.pos+=4-e)}},Un.prototype.bit4=function(){for(var a=Math.ceil(this.width/2),t=a%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<a;i++){var n=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*i*4,f=n>>4,h=15&n,g=this.palette[f];if(this.data[s]=g.blue,this.data[s+1]=g.green,this.data[s+2]=g.red,this.data[s+3]=255,2*i+1>=this.width)break;g=this.palette[h],this.data[s+4]=g.blue,this.data[s+4+1]=g.green,this.data[s+4+2]=g.red,this.data[s+4+3]=255}t!==0&&(this.pos+=4-t)}},Un.prototype.bit8=function(){for(var a=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),n=e*this.width*4+4*r;if(i<this.palette.length){var s=this.palette[i];this.data[n]=s.red,this.data[n+1]=s.green,this.data[n+2]=s.blue,this.data[n+3]=255}else this.data[n]=255,this.data[n+1]=255,this.data[n+2]=255,this.data[n+3]=255}a!==0&&(this.pos+=4-a)}},Un.prototype.bit15=function(){for(var a=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var n=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(n&t)/t*255|0,f=(n>>5&t)/t*255|0,h=(n>>10&t)/t*255|0,g=n>>15?255:0,p=r*this.width*4+4*i;this.data[p]=h,this.data[p+1]=f,this.data[p+2]=s,this.data[p+3]=g}this.pos+=a}},Un.prototype.bit16=function(){for(var a=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var f=(s&t)/t*255|0,h=(s>>5&e)/e*255|0,g=(s>>11)/t*255|0,p=i*this.width*4+4*n;this.data[p]=g,this.data[p+1]=h,this.data[p+2]=f,this.data[p+3]=255}this.pos+=a}},Un.prototype.bit24=function(){for(var a=this.height-1;a>=0;a--){for(var t=this.bottom_up?a:this.height-1-a,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*e;this.data[s]=n,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},Un.prototype.bit32=function(){for(var a=this.height-1;a>=0;a--)for(var t=this.bottom_up?a:this.height-1-a,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),f=t*this.width*4+4*e;this.data[f]=n,this.data[f+1]=i,this.data[f+2]=r,this.data[f+3]=s}},Un.prototype.getData=function(){return this.data},function(a){a.processBMP=function(t,e,r,i){var n=new Un(t,!1),s=n.width,f=n.height,h={data:n.getData(),width:s,height:f},g=new Bs(100).encode(h,100);return a.processJPEG.call(this,g,e,r,i)}}(Zt.API),kf.prototype.getData=function(){return this.data},function(a){a.processWEBP=function(t,e,r,i){var n=new kf(t,!1),s=n.width,f=n.height,h={data:n.getData(),width:s,height:f},g=new Bs(100).encode(h,100);return a.processJPEG.call(this,g,e,r,i)}}(Zt.API),Zt.API.processRGBA=function(a,t,e){for(var r=a.data,i=r.length,n=new Uint8Array(i/4*3),s=new Uint8Array(i/4),f=0,h=0,g=0;g<i;g+=4){var p=r[g],u=r[g+1],c=r[g+2],l=r[g+3];n[f++]=p,n[f++]=u,n[f++]=c,s[h++]=l}var m=this.__addimage__.arrayBufferToBinaryString(n);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:m,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:a.width,height:a.height}},Zt.API.setLanguage=function(a){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[a]!==void 0&&(this.internal.languageSettings.languageCode=a,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},_i=Zt.API,fo=_i.getCharWidthsArray=function(a,t){var e,r,i=(t=t||{}).font||this.internal.getFont(),n=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),f=t.widths?t.widths:i.metadata.Unicode.widths,h=f.fof?f.fof:1,g=t.kerning?t.kerning:i.metadata.Unicode.kerning,p=g.fof?g.fof:1,u=t.doKerning!==!1,c=0,l=a.length,m=0,A=f[0]||h,C=[];for(e=0;e<l;e++)r=a.charCodeAt(e),typeof i.metadata.widthOfString=="function"?C.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/n)||0)/1e3):(c=u&&(0,Ae.A)(g[r])==="object"&&!isNaN(parseInt(g[r][m],10))?g[r][m]/p:0,C.push((f[r]||A)/h+c)),m=r;return C},xf=_i.getStringUnitWidth=function(a,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return _i.processArabic&&(a=_i.processArabic(a)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(a,e,i)/e:fo.apply(this,arguments).reduce(function(n,s){return n+s},0)},Sf=function(a,t,e,r){for(var i=[],n=0,s=a.length,f=0;n!==s&&f+t[n]<e;)f+=t[n],n++;i.push(a.slice(0,n));var h=n;for(f=0;n!==s;)f+t[n]>r&&(i.push(a.slice(h,n)),f=0,h=n),f+=t[n],n++;return h!==n&&i.push(a.slice(h,n)),i},Lf=function(a,t,e){e||(e={});var r,i,n,s,f,h,g,p=[],u=[p],c=e.textIndent||0,l=0,m=0,A=a.split(" "),C=fo.apply(this,[" ",e])[0];if(h=e.lineIndent===-1?A[0].length+2:e.lineIndent||0){var L=Array(h).join(" "),D=[];A.map(function(O){(O=O.split(/\s*\n/)).length>1?D=D.concat(O.map(function(_,R){return(R&&_.length?"\n":"")+_})):D.push(O[0])}),A=D,h=xf.apply(this,[L,e])}for(n=0,s=A.length;n<s;n++){var k=0;if(r=A[n],h&&r[0]=="\n"&&(r=r.substr(1),k=1),c+l+(m=(i=fo.apply(this,[r,e])).reduce(function(O,_){return O+_},0))>t||k){if(m>t){for(f=Sf.apply(this,[r,i,t-(c+l),t]),p.push(f.shift()),p=[f.pop()];f.length;)u.push([f.shift()]);m=i.slice(r.length-(p[0]?p[0].length:0)).reduce(function(O,_){return O+_},0)}else p=[r];u.push(p),c=m+h,l=C}else p.push(r),c+=l+m,l=C}return g=h?function(O,_){return(_?L:"")+O.join(" ")}:function(O){return O.join(" ")},u.map(g)},_i.splitTextToSize=function(a,t,e){var r,i=(e=e||{}).fontSize||this.internal.getFontSize(),n=(function(p){if(p.widths&&p.kerning)return{widths:p.widths,kerning:p.kerning};var u=this.internal.getFont(p.fontName,p.fontStyle);return u.metadata.Unicode?{widths:u.metadata.Unicode.widths||{0:1},kerning:u.metadata.Unicode.kerning||{}}:{font:u.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(a)?a:String(a).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/i;n.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/i:0,n.lineIndent=e.lineIndent;var f,h,g=[];for(f=0,h=r.length;f<h;f++)g=g.concat(Lf.apply(this,[r[f],s,n]));return g},function(a){a.__fontmetrics__=a.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",e={},r={},i=0;i<t.length;i++)e[t[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=t[i];var n=function(u){return"0x"+parseInt(u,10).toString(16)},s=a.__fontmetrics__.compress=function(u){var c,l,m,A,C=["{"];for(var L in u){if(c=u[L],isNaN(parseInt(L,10))?l="'"+L+"'":(L=parseInt(L,10),l=(l=n(L).slice(2)).slice(0,-1)+r[l.slice(-1)]),typeof c=="number")c<0?(m=n(c).slice(3),A="-"):(m=n(c).slice(2),A=""),m=A+m.slice(0,-1)+r[m.slice(-1)];else{if((0,Ae.A)(c)!=="object")throw new Error("Don't know what to do with value type "+(0,Ae.A)(c)+".");m=s(c)}C.push(l+m)}return C.push("}"),C.join("")},f=a.__fontmetrics__.uncompress=function(u){if(typeof u!="string")throw new Error("Invalid argument passed to uncompress.");for(var c,l,m,A,C={},L=1,D=C,k=[],O="",_="",R=u.length-1,V=1;V<R;V+=1)(A=u[V])=="'"?c?(m=c.join(""),c=void 0):c=[]:c?c.push(A):A=="{"?(k.push([D,m]),D={},m=void 0):A=="}"?((l=k.pop())[0][l[1]]=D,m=void 0,D=l[0]):A=="-"?L=-1:m===void 0?e.hasOwnProperty(A)?(O+=e[A],m=parseInt(O,16)*L,L=1,O=""):O+=A:e.hasOwnProperty(A)?(_+=e[A],D[m]=parseInt(_,16)*L,L=1,m=void 0,_=""):_+=A;return C},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},p={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":f("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":f("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":f("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};a.events.push(["addFont",function(u){var c=u.font,l=p.Unicode[c.postScriptName];l&&(c.metadata.Unicode={},c.metadata.Unicode.widths=l.widths,c.metadata.Unicode.kerning=l.kerning);var m=g.Unicode[c.postScriptName];m&&(c.metadata.Unicode.encoding=m,c.encoding=m.codePages[0])}])}(Zt.API),function(a){var t=function(e){for(var r=e.length,i=new Uint8Array(r),n=0;n<r;n++)i[n]=e.charCodeAt(n);return i};a.API.events.push(["addFont",function(e){var r=void 0,i=e.font,n=e.instance;if(!i.isStandardFont){if(n===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=n.existsFileInVFS(i.postScriptName)===!1?n.loadFile(i.postScriptName):n.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(s,f){f=/^\x00\x01\x00\x00/.test(f)?t(f):t(oa(f)),s.metadata=a.API.TTFFont.open(f),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,r)}}])}(Zt),function(a){function t(){return(Jt.canvg?Promise.resolve(Jt.canvg):Promise.resolve().then(Rn.t.bind(Rn,16700,23))).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}Zt.API.addSvgAsImage=function(e,r,i,n,s,f,h,g){if(isNaN(r)||isNaN(i))throw _e.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(s))throw _e.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var p=document.createElement("canvas");p.width=n,p.height=s;var u=p.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,p.width,p.height);var c={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},l=this;return t().then(function(m){return m.fromString(u,e,c)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(c)}).then(function(){l.addImage(p.toDataURL("image/jpeg",1),r,i,n,s,h,g)})}}(),Zt.API.putTotalPages=function(a){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(a,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(a,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,e);return this},Zt.API.viewerPreferences=function(a,t){var e;a=a||{},t=t||!1;var r,i,n,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},f=Object.keys(s),h=[],g=0,p=0,u=0;function c(m,A){var C,L=!1;for(C=0;C<m.length;C+=1)m[C]===A&&(L=!0);return L}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,a==="reset"||t===!0){var l=f.length;for(u=0;u<l;u+=1)e[f[u]].value=e[f[u]].defaultValue,e[f[u]].explicitSet=!1}if((0,Ae.A)(a)==="object"){for(i in a)if(n=a[i],c(f,i)&&n!==void 0){if(e[i].type==="boolean"&&typeof n=="boolean")e[i].value=n;else if(e[i].type==="name"&&c(e[i].valueSet,n))e[i].value=n;else if(e[i].type==="integer"&&Number.isInteger(n))e[i].value=n;else if(e[i].type==="array"){for(g=0;g<n.length;g+=1)if(r=!0,n[g].length===1&&typeof n[g][0]=="number")h.push(String(n[g]-1));else if(n[g].length>1){for(p=0;p<n[g].length;p+=1)typeof n[g][p]!="number"&&(r=!1);r===!0&&h.push([n[g][0]-1,n[g][1]-1].join(" "))}e[i].value="["+h.join(" ")+"]"}else e[i].value=e[i].defaultValue;e[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var m,A=[];for(m in e)e[m].explicitSet===!0&&(e[m].type==="name"?A.push("/"+m+" /"+e[m].value):A.push("/"+m+" "+e[m].value));A.length!==0&&this.internal.write("/ViewerPreferences\n<<\n"+A.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(a){var t=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(r)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),f=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),h=unescape(encodeURIComponent("</x:xmpmeta>")),g=n.length+s.length+f.length+i.length+h.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+g+" >>"),this.internal.write("stream"),this.internal.write(i+n+s+f+h),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};a.addMetadata=function(r,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",t)),this}}(Zt.API),function(a){var t=a.API,e=t.pdfEscape16=function(n,s){for(var f,h=s.metadata.Unicode.widths,g=["","0","00","000","0000"],p=[""],u=0,c=n.length;u<c;++u){if(f=s.metadata.characterToGlyph(n.charCodeAt(u)),s.metadata.glyIdsUsed.push(f),s.metadata.toUnicode[f]=n.charCodeAt(u),h.indexOf(f)==-1&&(h.push(f),h.push([parseInt(s.metadata.widthOfGlyph(f),10)])),f=="0")return p.join("");f=f.toString(16),p.push(g[4-f.length],f)}return p.join("")},r=function(n){var s,f,h,g,p,u,c;for(p="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",h=[],u=0,c=(f=Object.keys(n).sort(function(l,m){return l-m})).length;u<c;u++)s=f[u],h.length>=100&&(p+="\n"+h.length+" beginbfchar\n"+h.join("\n")+"\nendbfchar",h=[]),n[s]!==void 0&&n[s]!==null&&typeof n[s].toString=="function"&&(g=("0000"+n[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),h.push("<"+s+"><"+g+">"));return h.length&&(p+="\n"+h.length+" beginbfchar\n"+h.join("\n")+"\nendbfchar\n"),p+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(n){(function(s){var f=s.font,h=s.out,g=s.newObject,p=s.putStream;if(f.metadata instanceof a.API.TTFFont&&f.encoding==="Identity-H"){for(var u=f.metadata.Unicode.widths,c=f.metadata.subset.encode(f.metadata.glyIdsUsed,1),l="",m=0;m<c.length;m++)l+=String.fromCharCode(c[m]);var A=g();p({data:l,addLength1:!0,objectId:A}),h("endobj");var C=g();p({data:r(f.metadata.toUnicode),addLength1:!0,objectId:C}),h("endobj");var L=g();h("<<"),h("/Type /FontDescriptor"),h("/FontName /"+gi(f.fontName)),h("/FontFile2 "+A+" 0 R"),h("/FontBBox "+a.API.PDFObject.convert(f.metadata.bbox)),h("/Flags "+f.metadata.flags),h("/StemV "+f.metadata.stemV),h("/ItalicAngle "+f.metadata.italicAngle),h("/Ascent "+f.metadata.ascender),h("/Descent "+f.metadata.decender),h("/CapHeight "+f.metadata.capHeight),h(">>"),h("endobj");var D=g();h("<<"),h("/Type /Font"),h("/BaseFont /"+gi(f.fontName)),h("/FontDescriptor "+L+" 0 R"),h("/W "+a.API.PDFObject.convert(u)),h("/CIDToGIDMap /Identity"),h("/DW 1000"),h("/Subtype /CIDFontType2"),h("/CIDSystemInfo"),h("<<"),h("/Supplement 0"),h("/Registry (Adobe)"),h("/Ordering ("+f.encoding+")"),h(">>"),h(">>"),h("endobj"),f.objectNumber=g(),h("<<"),h("/Type /Font"),h("/Subtype /Type0"),h("/ToUnicode "+C+" 0 R"),h("/BaseFont /"+gi(f.fontName)),h("/Encoding /"+f.encoding),h("/DescendantFonts ["+D+" 0 R]"),h(">>"),h("endobj"),f.isAlreadyPutted=!0}})(n)}]),t.events.push(["putFont",function(n){(function(s){var f=s.font,h=s.out,g=s.newObject,p=s.putStream;if(f.metadata instanceof a.API.TTFFont&&f.encoding==="WinAnsiEncoding"){for(var u=f.metadata.rawData,c="",l=0;l<u.length;l++)c+=String.fromCharCode(u[l]);var m=g();p({data:c,addLength1:!0,objectId:m}),h("endobj");var A=g();p({data:r(f.metadata.toUnicode),addLength1:!0,objectId:A}),h("endobj");var C=g();h("<<"),h("/Descent "+f.metadata.decender),h("/CapHeight "+f.metadata.capHeight),h("/StemV "+f.metadata.stemV),h("/Type /FontDescriptor"),h("/FontFile2 "+m+" 0 R"),h("/Flags 96"),h("/FontBBox "+a.API.PDFObject.convert(f.metadata.bbox)),h("/FontName /"+gi(f.fontName)),h("/ItalicAngle "+f.metadata.italicAngle),h("/Ascent "+f.metadata.ascender),h(">>"),h("endobj"),f.objectNumber=g();for(var L=0;L<f.metadata.hmtx.widths.length;L++)f.metadata.hmtx.widths[L]=parseInt(f.metadata.hmtx.widths[L]*(1e3/f.metadata.head.unitsPerEm));h("<</Subtype/TrueType/Type/Font/ToUnicode "+A+" 0 R/BaseFont/"+gi(f.fontName)+"/FontDescriptor "+C+" 0 R/Encoding/"+f.encoding+" /FirstChar 29 /LastChar 255 /Widths "+a.API.PDFObject.convert(f.metadata.hmtx.widths)+">>"),h("endobj"),f.isAlreadyPutted=!0}})(n)}]);var i=function(n){var s,f=n.text||"",h=n.x,g=n.y,p=n.options||{},u=n.mutex||{},c=u.pdfEscape,l=u.activeFontKey,m=u.fonts,A=l,C="",L=0,D="",k=m[A].encoding;if(m[A].encoding!=="Identity-H")return{text:f,x:h,y:g,options:p,mutex:u};for(D=f,A=l,Array.isArray(f)&&(D=f[0]),L=0;L<D.length;L+=1)m[A].metadata.hasOwnProperty("cmap")&&(s=m[A].metadata.cmap.unicode.codeMap[D[L].charCodeAt(0)]),s||D[L].charCodeAt(0)<256&&m[A].metadata.hasOwnProperty("Unicode")?C+=D[L]:C+="";var O="";return parseInt(A.slice(1))<14||k==="WinAnsiEncoding"?O=c(C,A).split("").map(function(_){return _.charCodeAt(0).toString(16)}).join(""):k==="Identity-H"&&(O=e(C,m[A])),u.isHex=!0,{text:O,x:h,y:g,options:p,mutex:u}};t.events.push(["postProcessText",function(n){var s=n.text||"",f=[],h={text:s,x:n.x,y:n.y,options:n.options,mutex:n.mutex};if(Array.isArray(s)){var g=0;for(g=0;g<s.length;g+=1)Array.isArray(s[g])&&s[g].length===3?f.push([i(Object.assign({},h,{text:s[g][0]})).text,s[g][1],s[g][2]]):f.push(i(Object.assign({},h,{text:s[g]})).text);n.text=f}else n.text=i(Object.assign({},h,{text:s})).text}])}(Zt),function(a){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};a.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},a.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},a.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(Zt.API),function(a){a.__bidiEngine__=a.prototype.__bidiEngine__=function(r){var i,n,s,f,h,g,p,u=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],m={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},A={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},C=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],L=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),D=!1,k=0;this.__bidiEngine__={};var O=function(S){var x=S.charCodeAt(),y=x>>8,F=A[y];return F!==void 0?u[256*F+(255&x)]:y===252||y===253?"AL":L.test(y)?"L":y===8?"R":"N"},_=function(S){for(var x,y=0;y<S.length;y++){if((x=O(S.charAt(y)))==="L")return!1;if(x==="R")return!0}return!1},R=function(S,x,y,F){var Y,E,T,Q,J=x[F];switch(J){case"L":case"R":D=!1;break;case"N":case"AN":break;case"EN":D&&(J="AN");break;case"AL":D=!0,J="R";break;case"WS":J="N";break;case"CS":F<1||F+1>=x.length||(Y=y[F-1])!=="EN"&&Y!=="AN"||(E=x[F+1])!=="EN"&&E!=="AN"?J="N":D&&(E="AN"),J=E===Y?E:"N";break;case"ES":J=(Y=F>0?y[F-1]:"B")==="EN"&&F+1<x.length&&x[F+1]==="EN"?"EN":"N";break;case"ET":if(F>0&&y[F-1]==="EN"){J="EN";break}if(D){J="N";break}for(T=F+1,Q=x.length;T<Q&&x[T]==="ET";)T++;J=T<Q&&x[T]==="EN"?"EN":"N";break;case"NSM":if(s&&!f){for(Q=x.length,T=F+1;T<Q&&x[T]==="NSM";)T++;if(T<Q){var B=S[F],tt=B>=1425&&B<=2303||B===64286;if(Y=x[T],tt&&(Y==="R"||Y==="AL")){J="R";break}}}J=F<1||(Y=x[F-1])==="B"?"N":y[F-1];break;case"B":D=!1,i=!0,J=k;break;case"S":n=!0,J="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":D=!1;break;case"BN":J="N"}return J},V=function(S,x,y){var F=S.split("");return y&&N(F,y,{hiLevel:k}),F.reverse(),x&&x.reverse(),F.join("")},N=function(S,x,y){var F,Y,E,T,Q,J=-1,B=S.length,tt=0,P=[],q=k?l:c,z=[];for(D=!1,i=!1,n=!1,Y=0;Y<B;Y++)z[Y]=O(S[Y]);for(E=0;E<B;E++){if(Q=tt,P[E]=R(S,z,P,E),F=240&(tt=q[Q][m[P[E]]]),tt&=15,x[E]=T=q[tt][5],F>0)if(F===16){for(Y=J;Y<E;Y++)x[Y]=1;J=-1}else J=-1;if(q[tt][6])J===-1&&(J=E);else if(J>-1){for(Y=J;Y<E;Y++)x[Y]=T;J=-1}z[E]==="B"&&(x[E]=0),y.hiLevel|=T}n&&function(H,K,rt){for(var it=0;it<rt;it++)if(H[it]==="S"){K[it]=k;for(var at=it-1;at>=0&&H[at]==="WS";at--)K[at]=k}}(z,x,B)},j=function(S,x,y,F,Y){if(!(Y.hiLevel<S)){if(S===1&&k===1&&!i)return x.reverse(),void(y&&y.reverse());for(var E,T,Q,J,B=x.length,tt=0;tt<B;){if(F[tt]>=S){for(Q=tt+1;Q<B&&F[Q]>=S;)Q++;for(J=tt,T=Q-1;J<T;J++,T--)E=x[J],x[J]=x[T],x[T]=E,y&&(E=y[J],y[J]=y[T],y[T]=E);tt=Q}tt++}}},v=function(S,x,y){var F=S.split(""),Y={hiLevel:k};return y||(y=[]),N(F,y,Y),function(E,T,Q){if(Q.hiLevel!==0&&p)for(var J,B=0;B<E.length;B++)T[B]===1&&(J=C.indexOf(E[B]))>=0&&(E[B]=C[J+1])}(F,y,Y),j(2,F,x,y,Y),j(1,F,x,y,Y),F.join("")};return this.__bidiEngine__.doBidiReorder=function(S,x,y){if(function(Y,E){if(E)for(var T=0;T<Y.length;T++)E[T]=T;f===void 0&&(f=_(Y)),g===void 0&&(g=_(Y))}(S,x),s||!h||g)if(s&&h&&f^g)k=f?1:0,S=V(S,x,y);else if(!s&&h&&g)k=f?1:0,S=v(S,x,y),S=V(S,x);else if(!s||f||h||g){if(s&&!h&&f^g)S=V(S,x),f?(k=0,S=v(S,x,y)):(k=1,S=v(S,x,y),S=V(S,x));else if(s&&f&&!h&&g)k=1,S=v(S,x,y),S=V(S,x);else if(!s&&!h&&f^g){var F=p;f?(k=1,S=v(S,x,y),k=0,p=!1,S=v(S,x,y),p=F):(k=0,S=v(S,x,y),S=V(S,x),k=1,p=!1,S=v(S,x,y),p=F,S=V(S,x))}}else k=0,S=v(S,x,y);else k=f?1:0,S=v(S,x,y);return S},this.__bidiEngine__.setOptions=function(S){S&&(s=S.isInputVisual,h=S.isOutputVisual,f=S.isInputRtl,g=S.isOutputRtl,p=S.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new a.__bidiEngine__({isInputVisual:!0});a.API.events.push(["postProcessText",function(r){var i=r.text,n=(r.x,r.y,r.options||{}),s=(r.mutex,n.lang,[]);if(n.isInputVisual=typeof n.isInputVisual!="boolean"||n.isInputVisual,e.setOptions(n),Object.prototype.toString.call(i)==="[object Array]"){var f=0;for(s=[],f=0;f<i.length;f+=1)Object.prototype.toString.call(i[f])==="[object Array]"?s.push([e.doBidiReorder(i[f][0]),i[f][1],i[f][2]]):s.push([e.doBidiReorder(i[f])]);r.text=s}else r.text=e.doBidiReorder(i);e.setOptions({isInputVisual:!0})}])}(Zt),Zt.API.TTFFont=function(){function a(t){var e;if(this.rawData=t,e=this.contents=new Fr(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new ch(this),this.registerTTF()}return a.open=function(t){return new a(t)},a.prototype.parse=function(){return this.directory=new Ku(this.contents),this.head=new th(this),this.name=new ah(this),this.cmap=new If(this),this.toUnicode={},this.hhea=new eh(this),this.maxp=new oh(this),this.hmtx=new sh(this),this.post=new rh(this),this.os2=new nh(this),this.loca=new hh(this),this.glyf=new lh(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},a.prototype.registerTTF=function(){var t,e,r,i,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,f,h,g;for(g=[],s=0,f=(h=this.bbox).length;s<f;s++)t=h[s],g.push(Math.round(t*this.scaleFactor));return g}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),(32768&(e=i>>16))!=0&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(n=this.familyClass)===1||n===2||n===3||n===4||n===5||n===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},a.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},a.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},a.prototype.widthOfString=function(t,e,r){var i,n,s,f;for(s=0,n=0,f=(t=""+t).length;0<=f?n<f:n>f;n=0<=f?++n:--n)i=t.charCodeAt(n),s+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/e)||0;return s*(e/1e3)},a.prototype.lineHeight=function(t,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},a}();var qn,Fr=function(){function a(t){this.data=t!=null?t:[],this.pos=0,this.length=this.data.length}return a.prototype.readByte=function(){return this.data[this.pos++]},a.prototype.writeByte=function(t){return this.data[this.pos++]=t},a.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},a.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},a.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},a.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},a.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},a.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},a.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},a.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},a.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},a.prototype.writeString=function(t){var e,r,i;for(i=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)i.push(this.writeByte(t.charCodeAt(e)));return i},a.prototype.readShort=function(){return this.readInt16()},a.prototype.writeShort=function(t){return this.writeInt16(t)},a.prototype.readLongLong=function(){var t,e,r,i,n,s,f,h;return t=this.readByte(),e=this.readByte(),r=this.readByte(),i=this.readByte(),n=this.readByte(),s=this.readByte(),f=this.readByte(),h=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^n)+65536*(255^s)+256*(255^f)+(255^h)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*i+16777216*n+65536*s+256*f+h},a.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},a.prototype.readInt=function(){return this.readInt32()},a.prototype.writeInt=function(t){return this.writeInt32(t)},a.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},a.prototype.write=function(t){var e,r,i,n;for(n=[],r=0,i=t.length;r<i;r++)e=t[r],n.push(this.writeByte(e));return n},a}(),Ku=function(){var a;function t(e){var r,i,n;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},i=0,n=this.tableCount;0<=n?i<n:i>n;i=0<=n?++i:--i)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(e){var r,i,n,s,f,h,g,p,u,c,l,m,A;for(A in l=Object.keys(e).length,h=Math.log(2),u=16*Math.floor(Math.log(l)/h),s=Math.floor(u/h),p=16*l-u,(i=new Fr).writeInt(this.scalarType),i.writeShort(l),i.writeShort(u),i.writeShort(s),i.writeShort(p),n=16*l,g=i.pos+n,f=null,m=[],e)for(c=e[A],i.writeString(A),i.writeInt(a(c)),i.writeInt(g),i.writeInt(c.length),m=m.concat(c),A==="head"&&(f=g),g+=c.length;g%4;)m.push(0),g++;return i.write(m),r=2981146554-a(i.data),i.pos=f+8,i.writeUInt32(r),i.data},a=function(e){var r,i,n,s;for(e=Cf.call(e);e.length%4;)e.push(0);for(n=new Fr(e),i=0,r=0,s=e.length;r<s;r=r+=4)i+=n.readUInt32();return 4294967295&i},t}(),$u={}.hasOwnProperty,nr=function(a,t){for(var e in t)$u.call(t,e)&&(a[e]=t[e]);function r(){this.constructor=a}return r.prototype=t.prototype,a.prototype=new r,a.__super__=t.prototype,a};qn=function(){function a(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return a.prototype.parse=function(){},a.prototype.encode=function(){},a.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},a}();var th=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var r;return(r=new Fr).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(e),r.writeShort(this.glyphDataFormat),r.data},t}(),Pf=function(){function a(t,e){var r,i,n,s,f,h,g,p,u,c,l,m,A,C,L,D,k;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),u=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(h=0;h<256;++h)this.codeMap[h]=t.readByte();break;case 4:for(l=t.readUInt16(),c=l/2,t.pos+=6,n=function(){var O,_;for(_=[],h=O=0;0<=c?O<c:O>c;h=0<=c?++O:--O)_.push(t.readUInt16());return _}(),t.pos+=2,A=function(){var O,_;for(_=[],h=O=0;0<=c?O<c:O>c;h=0<=c?++O:--O)_.push(t.readUInt16());return _}(),g=function(){var O,_;for(_=[],h=O=0;0<=c?O<c:O>c;h=0<=c?++O:--O)_.push(t.readUInt16());return _}(),p=function(){var O,_;for(_=[],h=O=0;0<=c?O<c:O>c;h=0<=c?++O:--O)_.push(t.readUInt16());return _}(),i=(this.length-t.pos+this.offset)/2,f=function(){var O,_;for(_=[],h=O=0;0<=i?O<i:O>i;h=0<=i?++O:--O)_.push(t.readUInt16());return _}(),h=L=0,k=n.length;L<k;h=++L)for(C=n[h],r=D=m=A[h];m<=C?D<=C:D>=C;r=m<=C?++D:--D)p[h]===0?s=r+g[h]:(s=f[p[h]/2+(r-m)-(c-h)]||0)!==0&&(s+=g[h]),this.codeMap[r]=65535&s}t.pos=u}return a.encode=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,x,y,F,Y,E,T,Q,J,B,tt,P,q,z,H,K,rt,it,at,gt,mt,Nt;switch(F=new Fr,s=Object.keys(t).sort(function(Ct,Mt){return Ct-Mt}),e){case"macroman":for(A=0,C=function(){var Ct=[];for(m=0;m<256;++m)Ct.push(0);return Ct}(),D={0:0},n={},Y=0,J=s.length;Y<J;Y++)D[at=t[i=s[Y]]]==null&&(D[at]=++A),n[i]={old:t[i],new:D[t[i]]},C[i]=D[t[i]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(C),{charMap:n,subtable:F.data,maxGlyphID:A+1};case"unicode":for(x=[],u=[],k=0,D={},r={},L=g=null,E=0,B=s.length;E<B;E++)D[_=t[i=s[E]]]==null&&(D[_]=++k),r[i]={old:_,new:D[_]},f=D[_]-i,L!=null&&f===g||(L&&u.push(L),x.push(i),g=f),L=i;for(L&&u.push(L),u.push(65535),x.push(65535),v=2*(j=x.length),N=2*Math.pow(Math.log(j)/Math.LN2,2),c=Math.log(N/2)/Math.LN2,V=2*j-N,h=[],R=[],l=[],m=T=0,tt=x.length;T<tt;m=++T){if(S=x[m],p=u[m],S===65535){h.push(0),R.push(0);break}if(S-(y=r[S].new)>=32768)for(h.push(0),R.push(2*(l.length+j-m)),i=Q=S;S<=p?Q<=p:Q>=p;i=S<=p?++Q:--Q)l.push(r[i].new);else h.push(y-S),R.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*j+2*l.length),F.writeUInt16(0),F.writeUInt16(v),F.writeUInt16(N),F.writeUInt16(c),F.writeUInt16(V),rt=0,P=u.length;rt<P;rt++)i=u[rt],F.writeUInt16(i);for(F.writeUInt16(0),it=0,q=x.length;it<q;it++)i=x[it],F.writeUInt16(i);for(gt=0,z=h.length;gt<z;gt++)f=h[gt],F.writeUInt16(f);for(mt=0,H=R.length;mt<H;mt++)O=R[mt],F.writeUInt16(O);for(Nt=0,K=l.length;Nt<K;Nt++)A=l[Nt],F.writeUInt16(A);return{charMap:r,subtable:F.data,maxGlyphID:k+1}}},a}(),If=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="cmap",t.prototype.parse=function(e){var r,i,n;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)r=new Pf(e,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},t.encode=function(e,r){var i,n;return r==null&&(r="macroman"),i=Pf.encode(e,r),(n=new Fr).writeUInt16(0),n.writeUInt16(1),i.table=n.data.concat(i.subtable),i},t}(),eh=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),nh=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var r,i;for(i=[],r=0;r<10;++r)i.push(e.readByte());return i}(),this.charRange=function(){var r,i;for(i=[],r=0;r<4;++r)i.push(e.readInt());return i}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var r,i;for(i=[],r=0;r<2;r=++r)i.push(e.readInt());return i}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),rh=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="post",t.prototype.parse=function(e){var r,i,n;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var s;for(i=e.readUInt16(),this.glyphNameIndex=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],n=[];e.pos<this.offset+this.length;)r=e.readByte(),n.push(this.names.push(e.readString(r)));return n;case 151552:return i=e.readUInt16(),this.offsets=e.read(i);case 196608:break;case 262144:return this.map=(function(){var f,h,g;for(g=[],s=f=0,h=this.file.maxp.numGlyphs;0<=h?f<h:f>h;s=0<=h?++f:--f)g.push(e.readUInt32());return g}).call(this)}},t}(),ih=function(a,t){this.raw=a,this.length=a.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},ah=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="name",t.prototype.parse=function(e){var r,i,n,s,f,h,g,p,u,c,l;for(e.pos=this.offset,e.readShort(),r=e.readShort(),h=e.readShort(),i=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)i.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+h+e.readShort()});for(g={},s=u=0,c=i.length;u<c;s=++u)n=i[s],e.pos=n.offset,p=e.readString(n.length),f=new ih(p,n),g[l=n.nameID]==null&&(g[l]=[]),g[n.nameID].push(f);this.strings=g,this.copyright=g[0],this.fontFamily=g[1],this.fontSubfamily=g[2],this.uniqueSubfamily=g[3],this.fontName=g[4],this.version=g[5];try{this.postscriptName=g[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(m){this.postscriptName=g[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=g[7],this.manufacturer=g[8],this.designer=g[9],this.description=g[10],this.vendorUrl=g[11],this.designerUrl=g[12],this.license=g[13],this.licenseUrl=g[14],this.preferredFamily=g[15],this.preferredSubfamily=g[17],this.compatibleFull=g[18],this.sampleText=g[19]},t}(),oh=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),sh=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="hmtx",t.prototype.parse=function(e){var r,i,n,s,f,h,g;for(e.pos=this.offset,this.metrics=[],r=0,h=this.file.hhea.numberOfMetrics;0<=h?r<h:r>h;r=0<=h?++r:--r)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var p,u;for(u=[],r=p=0;0<=n?p<n:p>n;r=0<=n?++p:--p)u.push(e.readInt16());return u}(),this.widths=(function(){var p,u,c,l;for(l=[],p=0,u=(c=this.metrics).length;p<u;p++)s=c[p],l.push(s.advance);return l}).call(this),i=this.widths[this.widths.length-1],g=[],r=f=0;0<=n?f<n:f>n;r=0<=n?++f:--f)g.push(this.widths.push(i));return g},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),Cf=[].slice,lh=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var r,i,n,s,f,h,g,p,u,c;return e in this.cache?this.cache[e]:(s=this.file.loca,r=this.file.contents,i=s.indexOf(e),(n=s.lengthOf(e))===0?this.cache[e]=null:(r.pos=this.offset+i,f=(h=new Fr(r.read(n))).readShort(),p=h.readShort(),c=h.readShort(),g=h.readShort(),u=h.readShort(),this.cache[e]=f===-1?new uh(h,p,c,g,u):new fh(h,f,p,c,g,u),this.cache[e]))},t.prototype.encode=function(e,r,i){var n,s,f,h,g;for(f=[],s=[],h=0,g=r.length;h<g;h++)n=e[r[h]],s.push(f.length),n&&(f=f.concat(n.encode(i)));return s.push(f.length),{table:f,offsets:s}},t}(),fh=function(){function a(t,e,r,i,n,s){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=i,this.xMax=n,this.yMax=s,this.compound=!1}return a.prototype.encode=function(){return this.raw.data},a}(),uh=function(){function a(t,e,r,i,n){var s,f;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=i,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;f=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&f;)s.pos+=1&f?4:2,128&f?s.pos+=8:64&f?s.pos+=4:8&f&&(s.pos+=2)}return a.prototype.encode=function(){var t,e,r;for(e=new Fr(Cf.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},a}(),hh=function(a){function t(){return t.__super__.constructor.apply(this,arguments)}return nr(t,qn),t.prototype.tag="loca",t.prototype.parse=function(e){var r,i;return e.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var n,s;for(s=[],i=0,n=this.length;i<n;i+=2)s.push(2*e.readUInt16());return s}).call(this):(function(){var n,s;for(s=[],i=0,n=this.length;i<n;i+=4)s.push(e.readUInt32());return s}).call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,r){for(var i=new Uint32Array(this.offsets.length),n=0,s=0,f=0;f<i.length;++f)if(i[f]=n,s<r.length&&r[s]==f){++s,i[f]=n;var h=this.offsets[f],g=this.offsets[f+1]-h;g>0&&(n+=g)}for(var p=new Array(4*i.length),u=0;u<i.length;++u)p[4*u+3]=255&i[u],p[4*u+2]=(65280&i[u])>>8,p[4*u+1]=(16711680&i[u])>>16,p[4*u]=(4278190080&i[u])>>24;return p},t}(),ch=function(){function a(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return a.prototype.generateCmap=function(){var t,e,r,i,n;for(e in i=this.font.cmap.tables[0].codeMap,t={},n=this.subset)r=n[e],t[e]=i[r];return t},a.prototype.glyphsFor=function(t){var e,r,i,n,s,f,h;for(i={},s=0,f=t.length;s<f;s++)i[n=t[s]]=this.font.glyf.glyphFor(n);for(n in e=[],i)(r=i[n])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(n in h=this.glyphsFor(e))r=h[n],i[n]=r;return i},a.prototype.encode=function(t,e){var r,i,n,s,f,h,g,p,u,c,l,m,A,C,L;for(i in r=If.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),l={0:0},L=r.charMap)l[(h=L[i]).old]=h.new;for(m in c=r.maxGlyphID,s)m in l||(l[m]=c++);return p=function(D){var k,O;for(k in O={},D)O[D[k]]=k;return O}(l),u=Object.keys(p).sort(function(D,k){return D-k}),A=function(){var D,k,O;for(O=[],D=0,k=u.length;D<k;D++)f=u[D],O.push(p[f]);return O}(),n=this.font.glyf.encode(s,A,l),g=this.font.loca.encode(n.offsets,A),C={cmap:this.font.cmap.raw(),glyf:n.table,loca:g,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(C["OS/2"]=this.font.os2.raw()),this.font.directory.encode(C)},a}();Zt.API.PDFObject=function(){var a;function t(){}return a=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},t.convert=function(e){var r,i,n,s;if(Array.isArray(e))return"["+function(){var f,h,g;for(g=[],f=0,h=e.length;f<h;f++)r=e[f],g.push(t.convert(r));return g}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+a(e.getUTCFullYear(),4)+a(e.getUTCMonth(),2)+a(e.getUTCDate(),2)+a(e.getUTCHours(),2)+a(e.getUTCMinutes(),2)+a(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(i in n=["<<"],e)s=e[i],n.push("/"+i+" "+t.convert(s));return n.push(">>"),n.join("\n")}return""+e},t}();const qc=null;function dh(a,t){return t.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(r){if(r!=="default"&&!(r in a)){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}})}),Object.freeze(a)}function Ff(a,t){return new Promise(function(e,r){let i;return ph(a).then(function(n){try{return i=n,e(new Blob([t.slice(0,2),i,t.slice(2)],{type:"image/jpeg"}))}catch(s){return r(s)}},r)})}const ph=a=>new Promise((t,e)=>{const r=new FileReader;r.addEventListener("load",i=>{let{target:{result:n}}=i;const s=new DataView(n);let f=0;if(s.getUint16(f)!==65496)return e("not a valid JPEG");for(f+=2;;){const h=s.getUint16(f);if(h===65498)break;const g=s.getUint16(f+2);if(h===65505&&s.getUint32(f+4)===1165519206){const p=f+10;let u;switch(s.getUint16(p)){case 18761:u=!0;break;case 19789:u=!1;break;default:return e("TIFF header contains invalid endian")}if(s.getUint16(p+2,u)!==42)return e("TIFF header contains invalid version");const c=s.getUint32(p+4,u),l=p+c+2+12*s.getUint16(p+c,u);for(let m=p+c+2;m<l;m+=12)if(s.getUint16(m,u)==274){if(s.getUint16(m+2,u)!==3)return e("Orientation data type is invalid");if(s.getUint32(m+4,u)!==1)return e("Orientation data count is invalid");s.setUint16(m+8,1,u);break}return t(n.slice(f,f+2+g))}f+=2+g}return t(new Blob)}),r.readAsArrayBuffer(a)});var uo={},gh={get exports(){return uo},set exports(a){uo=a}};(function(a){var t,e,r={};gh.exports=r,r.parse=function(i,n){for(var s=r.bin.readUshort,f=r.bin.readUint,h=0,g={},p=new Uint8Array(i),u=p.length-4;f(p,u)!=101010256;)u--;h=u,h+=4;var c=s(p,h+=4);s(p,h+=2);var l=f(p,h+=2),m=f(p,h+=4);h+=4,h=m;for(var A=0;A<c;A++){f(p,h),h+=4,h+=4,h+=4,f(p,h+=4),l=f(p,h+=4);var C=f(p,h+=4),L=s(p,h+=4),D=s(p,h+2),k=s(p,h+4);h+=6;var O=f(p,h+=8);h+=4,h+=L+D+k,r._readLocal(p,O,g,l,C,n)}return g},r._readLocal=function(i,n,s,f,h,g){var p=r.bin.readUshort,u=r.bin.readUint;u(i,n),p(i,n+=4),p(i,n+=2);var c=p(i,n+=2);u(i,n+=2),u(i,n+=4),n+=4;var l=p(i,n+=8),m=p(i,n+=2);n+=2;var A=r.bin.readUTF8(i,n,l);if(n+=l,n+=m,g)s[A]={size:h,csize:f};else{var C=new Uint8Array(i.buffer,n);if(c==0)s[A]=new Uint8Array(C.buffer.slice(n,n+f));else{if(c!=8)throw"unknown compression method: "+c;var L=new Uint8Array(h);r.inflateRaw(C,L),s[A]=L}}},r.inflateRaw=function(i,n){return r.F.inflate(i,n)},r.inflate=function(i,n){return i[0],i[1],r.inflateRaw(new Uint8Array(i.buffer,i.byteOffset+2,i.length-6),n)},r.deflate=function(i,n){n==null&&(n={level:6});var s=0,f=new Uint8Array(50+Math.floor(1.1*i.length));f[s]=120,f[s+1]=156,s+=2,s=r.F.deflateRaw(i,f,s,n.level);var h=r.adler(i,0,i.length);return f[s+0]=h>>>24&255,f[s+1]=h>>>16&255,f[s+2]=h>>>8&255,f[s+3]=h>>>0&255,new Uint8Array(f.buffer,0,s+4)},r.deflateRaw=function(i,n){n==null&&(n={level:6});var s=new Uint8Array(50+Math.floor(1.1*i.length)),f=r.F.deflateRaw(i,s,f,n.level);return new Uint8Array(s.buffer,0,f)},r.encode=function(i,n){n==null&&(n=!1);var s=0,f=r.bin.writeUint,h=r.bin.writeUshort,g={};for(var p in i){var u=!r._noNeed(p)&&!n,c=i[p],l=r.crc.crc(c,0,c.length);g[p]={cpr:u,usize:c.length,crc:l,file:u?r.deflateRaw(c):c}}for(var p in g)s+=g[p].file.length+30+46+2*r.bin.sizeUTF8(p);s+=22;var m=new Uint8Array(s),A=0,C=[];for(var p in g){var L=g[p];C.push(A),A=r._writeHeader(m,A,p,L,0)}var D=0,k=A;for(var p in g)L=g[p],C.push(A),A=r._writeHeader(m,A,p,L,1,C[D++]);var O=A-k;return f(m,A,101010256),A+=4,h(m,A+=4,D),h(m,A+=2,D),f(m,A+=2,O),f(m,A+=4,k),A+=4,A+=2,m.buffer},r._noNeed=function(i){var n=i.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(n)!=-1},r._writeHeader=function(i,n,s,f,h,g){var p=r.bin.writeUint,u=r.bin.writeUshort,c=f.file;return p(i,n,h==0?67324752:33639248),n+=4,h==1&&(n+=2),u(i,n,20),u(i,n+=2,0),u(i,n+=2,f.cpr?8:0),p(i,n+=2,0),p(i,n+=4,f.crc),p(i,n+=4,c.length),p(i,n+=4,f.usize),u(i,n+=4,r.bin.sizeUTF8(s)),u(i,n+=2,0),n+=2,h==1&&(n+=2,n+=2,p(i,n+=6,g),n+=4),n+=r.bin.writeUTF8(i,n,s),h==0&&(i.set(c,n),n+=c.length),n},r.crc={table:function(){for(var i=new Uint32Array(256),n=0;n<256;n++){for(var s=n,f=0;f<8;f++)1&s?s=3988292384^s>>>1:s>>>=1;i[n]=s}return i}(),update:function(i,n,s,f){for(var h=0;h<f;h++)i=r.crc.table[255&(i^n[s+h])]^i>>>8;return i},crc:function(i,n,s){return 4294967295^r.crc.update(4294967295,i,n,s)}},r.adler=function(i,n,s){for(var f=1,h=0,g=n,p=n+s;g<p;){for(var u=Math.min(g+5552,p);g<u;)h+=f+=i[g++];f%=65521,h%=65521}return h<<16|f},r.bin={readUshort:function(i,n){return i[n]|i[n+1]<<8},writeUshort:function(i,n,s){i[n]=255&s,i[n+1]=s>>8&255},readUint:function(i,n){return 16777216*i[n+3]+(i[n+2]<<16|i[n+1]<<8|i[n])},writeUint:function(i,n,s){i[n]=255&s,i[n+1]=s>>8&255,i[n+2]=s>>16&255,i[n+3]=s>>24&255},readASCII:function(i,n,s){for(var f="",h=0;h<s;h++)f+=String.fromCharCode(i[n+h]);return f},writeASCII:function(i,n,s){for(var f=0;f<s.length;f++)i[n+f]=s.charCodeAt(f)},pad:function(i){return i.length<2?"0"+i:i},readUTF8:function(i,n,s){for(var f,h="",g=0;g<s;g++)h+="%"+r.bin.pad(i[n+g].toString(16));try{f=decodeURIComponent(h)}catch(p){return r.bin.readASCII(i,n,s)}return f},writeUTF8:function(i,n,s){for(var f=s.length,h=0,g=0;g<f;g++){var p=s.charCodeAt(g);if((4294967168&p)==0)i[n+h]=p,h++;else if((4294965248&p)==0)i[n+h]=192|p>>6,i[n+h+1]=128|p>>0&63,h+=2;else if((4294901760&p)==0)i[n+h]=224|p>>12,i[n+h+1]=128|p>>6&63,i[n+h+2]=128|p>>0&63,h+=3;else{if((4292870144&p)!=0)throw"e";i[n+h]=240|p>>18,i[n+h+1]=128|p>>12&63,i[n+h+2]=128|p>>6&63,i[n+h+3]=128|p>>0&63,h+=4}}return h},sizeUTF8:function(i){for(var n=i.length,s=0,f=0;f<n;f++){var h=i.charCodeAt(f);if((4294967168&h)==0)s++;else if((4294965248&h)==0)s+=2;else if((4294901760&h)==0)s+=3;else{if((4292870144&h)!=0)throw"e";s+=4}}return s}},r.F={},r.F.deflateRaw=function(i,n,s,f){var h=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][f],g=r.F.U,p=r.F._goodIndex;r.F._hash;var u=r.F._putsE,c=0,l=s<<3,m=0,A=i.length;if(f==0){for(;c<A;)u(n,l,c+(S=Math.min(65535,A-c))==A?1:0),l=r.F._copyExact(i,c,S,n,l+8),c+=S;return l>>>3}var C=g.lits,L=g.strt,D=g.prev,k=0,O=0,_=0,R=0,V=0,N=0;for(A>2&&(L[N=r.F._hash(i,0)]=0),c=0;c<A;c++){if(V=N,c+1<A-2){N=r.F._hash(i,c+1);var j=c+1&32767;D[j]=L[N],L[N]=j}if(m<=c){(k>14e3||O>26697)&&A-c>100&&(m<c&&(C[k]=c-m,k+=2,m=c),l=r.F._writeBlock(c==A-1||m==A?1:0,C,k,R,i,_,c-_,n,l),k=O=R=0,_=c);var v=0;c<A-2&&(v=r.F._bestMatch(i,c,D,V,Math.min(h[2],A-c),h[3]));var S=v>>>16,x=65535&v;if(v!=0){x=65535&v;var y=p(S=v>>>16,g.of0);g.lhst[257+y]++;var F=p(x,g.df0);g.dhst[F]++,R+=g.exb[y]+g.dxb[F],C[k]=S<<23|c-m,C[k+1]=x<<16|y<<8|F,k+=2,m=c+S}else g.lhst[i[c]]++;O++}}for(_==c&&i.length!=0||(m<c&&(C[k]=c-m,k+=2,m=c),l=r.F._writeBlock(1,C,k,R,i,_,c-_,n,l),k=0,O=0,k=O=R=0,_=c);(7&l)!=0;)l++;return l>>>3},r.F._bestMatch=function(i,n,s,f,h,g){var p=32767&n,u=s[p],c=p-u+32768&32767;if(u==p||f!=r.F._hash(i,n-c))return 0;for(var l=0,m=0,A=Math.min(32767,n);c<=A&&--g!=0&&u!=p;){if(l==0||i[n+l]==i[n+l-c]){var C=r.F._howLong(i,n,c);if(C>l){if(m=c,(l=C)>=h)break;c+2<C&&(C=c+2);for(var L=0,D=0;D<C-2;D++){var k=n-c+D+32768&32767,O=k-s[k]+32768&32767;O>L&&(L=O,u=k)}}}c+=(p=u)-(u=s[p])+32768&32767}return l<<16|m},r.F._howLong=function(i,n,s){if(i[n]!=i[n-s]||i[n+1]!=i[n+1-s]||i[n+2]!=i[n+2-s])return 0;var f=n,h=Math.min(i.length,n+258);for(n+=3;n<h&&i[n]==i[n-s];)n++;return n-f},r.F._hash=function(i,n){return(i[n]<<8|i[n+1])+(i[n+2]<<4)&65535},r.saved=0,r.F._writeBlock=function(i,n,s,f,h,g,p,u,c){var l,m,A,C,L,D,k,O,_,R=r.F.U,V=r.F._putsF,N=r.F._putsE;R.lhst[256]++,m=(l=r.F.getTrees())[0],A=l[1],C=l[2],L=l[3],D=l[4],k=l[5],O=l[6],_=l[7];var j=32+((c+3&7)==0?0:8-(c+3&7))+(p<<3),v=f+r.F.contSize(R.fltree,R.lhst)+r.F.contSize(R.fdtree,R.dhst),S=f+r.F.contSize(R.ltree,R.lhst)+r.F.contSize(R.dtree,R.dhst);S+=14+3*k+r.F.contSize(R.itree,R.ihst)+(2*R.ihst[16]+3*R.ihst[17]+7*R.ihst[18]);for(var x=0;x<286;x++)R.lhst[x]=0;for(x=0;x<30;x++)R.dhst[x]=0;for(x=0;x<19;x++)R.ihst[x]=0;var y=j<v&&j<S?0:v<S?1:2;if(V(u,c,i),V(u,c+1,y),c+=3,y==0){for(;(7&c)!=0;)c++;c=r.F._copyExact(h,g,p,u,c)}else{var F,Y;if(y==1&&(F=R.fltree,Y=R.fdtree),y==2){r.F.makeCodes(R.ltree,m),r.F.revCodes(R.ltree,m),r.F.makeCodes(R.dtree,A),r.F.revCodes(R.dtree,A),r.F.makeCodes(R.itree,C),r.F.revCodes(R.itree,C),F=R.ltree,Y=R.dtree,N(u,c,L-257),N(u,c+=5,D-1),N(u,c+=5,k-4),c+=4;for(var E=0;E<k;E++)N(u,c+3*E,R.itree[1+(R.ordr[E]<<1)]);c+=3*k,c=r.F._codeTiny(O,R.itree,u,c),c=r.F._codeTiny(_,R.itree,u,c)}for(var T=g,Q=0;Q<s;Q+=2){for(var J=n[Q],B=J>>>23,tt=T+(8388607&J);T<tt;)c=r.F._writeLit(h[T++],F,u,c);if(B!=0){var P=n[Q+1],q=P>>16,z=P>>8&255,H=255&P;N(u,c=r.F._writeLit(257+z,F,u,c),B-R.of0[z]),c+=R.exb[z],V(u,c=r.F._writeLit(H,Y,u,c),q-R.df0[H]),c+=R.dxb[H],T+=B}}c=r.F._writeLit(256,F,u,c)}return c},r.F._copyExact=function(i,n,s,f,h){var g=h>>>3;return f[g]=s,f[g+1]=s>>>8,f[g+2]=255-f[g],f[g+3]=255-f[g+1],g+=4,f.set(new Uint8Array(i.buffer,n,s),g),h+(s+4<<3)},r.F.getTrees=function(){for(var i=r.F.U,n=r.F._hufTree(i.lhst,i.ltree,15),s=r.F._hufTree(i.dhst,i.dtree,15),f=[],h=r.F._lenCodes(i.ltree,f),g=[],p=r.F._lenCodes(i.dtree,g),u=0;u<f.length;u+=2)i.ihst[f[u]]++;for(u=0;u<g.length;u+=2)i.ihst[g[u]]++;for(var c=r.F._hufTree(i.ihst,i.itree,7),l=19;l>4&&i.itree[1+(i.ordr[l-1]<<1)]==0;)l--;return[n,s,c,h,p,l,f,g]},r.F.getSecond=function(i){for(var n=[],s=0;s<i.length;s+=2)n.push(i[s+1]);return n},r.F.nonZero=function(i){for(var n="",s=0;s<i.length;s+=2)i[s+1]!=0&&(n+=(s>>1)+",");return n},r.F.contSize=function(i,n){for(var s=0,f=0;f<n.length;f++)s+=n[f]*i[1+(f<<1)];return s},r.F._codeTiny=function(i,n,s,f){for(var h=0;h<i.length;h+=2){var g=i[h],p=i[h+1];f=r.F._writeLit(g,n,s,f);var u=g==16?2:g==17?3:7;g>15&&(r.F._putsE(s,f,p,u),f+=u)}return f},r.F._lenCodes=function(i,n){for(var s=i.length;s!=2&&i[s-1]==0;)s-=2;for(var f=0;f<s;f+=2){var h=i[f+1],g=f+3<s?i[f+3]:-1,p=f+5<s?i[f+5]:-1,u=f==0?-1:i[f-1];if(h==0&&g==h&&p==h){for(var c=f+5;c+2<s&&i[c+2]==h;)c+=2;(l=Math.min(c+1-f>>>1,138))<11?n.push(17,l-3):n.push(18,l-11),f+=2*l-2}else if(h==u&&g==h&&p==h){for(c=f+5;c+2<s&&i[c+2]==h;)c+=2;var l=Math.min(c+1-f>>>1,6);n.push(16,l-3),f+=2*l-2}else n.push(h,0)}return s>>>1},r.F._hufTree=function(i,n,s){var f=[],h=i.length,g=n.length,p=0;for(p=0;p<g;p+=2)n[p]=0,n[p+1]=0;for(p=0;p<h;p++)i[p]!=0&&f.push({lit:p,f:i[p]});var u=f.length,c=f.slice(0);if(u==0)return 0;if(u==1){var l=f[0].lit;return c=l==0?1:0,n[1+(l<<1)]=1,n[1+(c<<1)]=1,1}f.sort(function(O,_){return O.f-_.f});var m=f[0],A=f[1],C=0,L=1,D=2;for(f[0]={lit:-1,f:m.f+A.f,l:m,r:A,d:0};L!=u-1;)m=C!=L&&(D==u||f[C].f<f[D].f)?f[C++]:f[D++],A=C!=L&&(D==u||f[C].f<f[D].f)?f[C++]:f[D++],f[L++]={lit:-1,f:m.f+A.f,l:m,r:A};var k=r.F.setDepth(f[L-1],0);for(k>s&&(r.F.restrictDepth(c,s,k),k=s),p=0;p<u;p++)n[1+(c[p].lit<<1)]=c[p].d;return k},r.F.setDepth=function(i,n){return i.lit!=-1?(i.d=n,n):Math.max(r.F.setDepth(i.l,n+1),r.F.setDepth(i.r,n+1))},r.F.restrictDepth=function(i,n,s){var f=0,h=1<<s-n,g=0;for(i.sort(function(u,c){return c.d==u.d?u.f-c.f:c.d-u.d}),f=0;f<i.length&&i[f].d>n;f++){var p=i[f].d;i[f].d=n,g+=h-(1<<s-p)}for(g>>>=s-n;g>0;)(p=i[f].d)<n?(i[f].d++,g-=1<<n-p-1):f++;for(;f>=0;f--)i[f].d==n&&g<0&&(i[f].d--,g++);g!=0&&console.log("debt left")},r.F._goodIndex=function(i,n){var s=0;return n[16|s]<=i&&(s|=16),n[8|s]<=i&&(s|=8),n[4|s]<=i&&(s|=4),n[2|s]<=i&&(s|=2),n[1|s]<=i&&(s|=1),s},r.F._writeLit=function(i,n,s,f){return r.F._putsF(s,f,n[i<<1]),f+n[1+(i<<1)]},r.F.inflate=function(i,n){var s=Uint8Array;if(i[0]==3&&i[1]==0)return n||new s(0);var f=r.F,h=f._bitsF,g=f._bitsE,p=f._decodeTiny,u=f.makeCodes,c=f.codes2map,l=f._get17,m=f.U,A=n==null;A&&(n=new s(i.length>>>2<<3));for(var C,L,D=0,k=0,O=0,_=0,R=0,V=0,N=0,j=0,v=0;D==0;)if(D=h(i,v,1),k=h(i,v+1,2),v+=3,k!=0){if(A&&(n=r.F._check(n,j+(1<<17))),k==1&&(C=m.flmap,L=m.fdmap,V=511,N=31),k==2){O=g(i,v,5)+257,_=g(i,v+5,5)+1,R=g(i,v+10,4)+4,v+=14;for(var S=0;S<38;S+=2)m.itree[S]=0,m.itree[S+1]=0;var x=1;for(S=0;S<R;S++){var y=g(i,v+3*S,3);m.itree[1+(m.ordr[S]<<1)]=y,y>x&&(x=y)}v+=3*R,u(m.itree,x),c(m.itree,x,m.imap),C=m.lmap,L=m.dmap,v=p(m.imap,(1<<x)-1,O+_,i,v,m.ttree);var F=f._copyOut(m.ttree,0,O,m.ltree);V=(1<<F)-1;var Y=f._copyOut(m.ttree,O,_,m.dtree);N=(1<<Y)-1,u(m.ltree,F),c(m.ltree,F,C),u(m.dtree,Y),c(m.dtree,Y,L)}for(;;){var E=C[l(i,v)&V];v+=15&E;var T=E>>>4;if(!(T>>>8))n[j++]=T;else{if(T==256)break;var Q=j+T-254;if(T>264){var J=m.ldef[T-257];Q=j+(J>>>3)+g(i,v,7&J),v+=7&J}var B=L[l(i,v)&N];v+=15&B;var tt=B>>>4,P=m.ddef[tt],q=(P>>>4)+h(i,v,15&P);for(v+=15&P,A&&(n=r.F._check(n,j+(1<<17)));j<Q;)n[j]=n[j++-q],n[j]=n[j++-q],n[j]=n[j++-q],n[j]=n[j++-q];j=Q}}}else{(7&v)!=0&&(v+=8-(7&v));var z=4+(v>>>3),H=i[z-4]|i[z-3]<<8;A&&(n=r.F._check(n,j+H)),n.set(new s(i.buffer,i.byteOffset+z,H),j),v=z+H<<3,j+=H}return n.length==j?n:n.slice(0,j)},r.F._check=function(i,n){var s=i.length;if(n<=s)return i;var f=new Uint8Array(Math.max(s<<1,n));return f.set(i,0),f},r.F._decodeTiny=function(i,n,s,f,h,g){for(var p=r.F._bitsE,u=r.F._get17,c=0;c<s;){var l=i[u(f,h)&n];h+=15&l;var m=l>>>4;if(m<=15)g[c]=m,c++;else{var A=0,C=0;m==16?(C=3+p(f,h,2),h+=2,A=g[c-1]):m==17?(C=3+p(f,h,3),h+=3):m==18&&(C=11+p(f,h,7),h+=7);for(var L=c+C;c<L;)g[c]=A,c++}}return h},r.F._copyOut=function(i,n,s,f){for(var h=0,g=0,p=f.length>>>1;g<s;){var u=i[g+n];f[g<<1]=0,f[1+(g<<1)]=u,u>h&&(h=u),g++}for(;g<p;)f[g<<1]=0,f[1+(g<<1)]=0,g++;return h},r.F.makeCodes=function(i,n){for(var s,f,h,g,p=r.F.U,u=i.length,c=p.bl_count,l=0;l<=n;l++)c[l]=0;for(l=1;l<u;l+=2)c[i[l]]++;var m=p.next_code;for(s=0,c[0]=0,f=1;f<=n;f++)s=s+c[f-1]<<1,m[f]=s;for(h=0;h<u;h+=2)(g=i[h+1])!=0&&(i[h]=m[g],m[g]++)},r.F.codes2map=function(i,n,s){for(var f=i.length,h=r.F.U.rev15,g=0;g<f;g+=2)if(i[g+1]!=0)for(var p=g>>1,u=i[g+1],c=p<<4|u,l=n-u,m=i[g]<<l,A=m+(1<<l);m!=A;)s[h[m]>>>15-n]=c,m++},r.F.revCodes=function(i,n){for(var s=r.F.U.rev15,f=15-n,h=0;h<i.length;h+=2){var g=i[h]<<n-i[h+1];i[h]=s[g]>>>f}},r.F._putsE=function(i,n,s){s<<=7&n;var f=n>>>3;i[f]|=s,i[f+1]|=s>>>8},r.F._putsF=function(i,n,s){s<<=7&n;var f=n>>>3;i[f]|=s,i[f+1]|=s>>>8,i[f+2]|=s>>>16},r.F._bitsE=function(i,n,s){return(i[n>>>3]|i[1+(n>>>3)]<<8)>>>(7&n)&(1<<s)-1},r.F._bitsF=function(i,n,s){return(i[n>>>3]|i[1+(n>>>3)]<<8|i[2+(n>>>3)]<<16)>>>(7&n)&(1<<s)-1},r.F._get17=function(i,n){return(i[n>>>3]|i[1+(n>>>3)]<<8|i[2+(n>>>3)]<<16)>>>(7&n)},r.F._get25=function(i,n){return(i[n>>>3]|i[1+(n>>>3)]<<8|i[2+(n>>>3)]<<16|i[3+(n>>>3)]<<24)>>>(7&n)},r.F.U=(t=Uint16Array,e=Uint32Array,{next_code:new t(16),bl_count:new t(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[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,999,999,999],exb:[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,0,0,0],ldef:new t(32),df0:[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,65535,65535],dxb:[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,0,0],ddef:new e(32),flmap:new t(512),fltree:[],fdmap:new t(32),fdtree:[],lmap:new t(32768),ltree:[],ttree:[],dmap:new t(32768),dtree:[],imap:new t(512),itree:[],rev15:new t(32768),lhst:new e(286),dhst:new e(30),ihst:new e(19),lits:new e(15e3),strt:new t(65536),prev:new t(32768)}),function(){for(var i=r.F.U,n=0;n<32768;n++){var s=n;s=(4278255360&(s=(4042322160&(s=(3435973836&(s=(2863311530&s)>>>1|(1431655765&s)<<1))>>>2|(858993459&s)<<2))>>>4|(252645135&s)<<4))>>>8|(16711935&s)<<8,i.rev15[n]=(s>>>16|s<<16)>>>17}function f(h,g,p){for(;g--!=0;)h.push(0,p)}for(n=0;n<32;n++)i.ldef[n]=i.of0[n]<<3|i.exb[n],i.ddef[n]=i.df0[n]<<4|i.dxb[n];f(i.fltree,144,8),f(i.fltree,112,9),f(i.fltree,24,7),f(i.fltree,8,8),r.F.makeCodes(i.fltree,9),r.F.codes2map(i.fltree,9,i.flmap),r.F.revCodes(i.fltree,9),f(i.fdtree,32,5),r.F.makeCodes(i.fdtree,5),r.F.codes2map(i.fdtree,5,i.fdmap),r.F.revCodes(i.fdtree,5),f(i.itree,19,0),f(i.ltree,286,0),f(i.dtree,30,0),f(i.ttree,320,0)}()})();var vh=dh({__proto__:null,default:uo},[uo]);const Hn=function(){var a={nextZero(p,u){for(;p[u]!=0;)u++;return u},readUshort:(p,u)=>p[u]<<8|p[u+1],writeUshort(p,u,c){p[u]=c>>8&255,p[u+1]=255&c},readUint:(p,u)=>16777216*p[u]+(p[u+1]<<16|p[u+2]<<8|p[u+3]),writeUint(p,u,c){p[u]=c>>24&255,p[u+1]=c>>16&255,p[u+2]=c>>8&255,p[u+3]=255&c},readASCII(p,u,c){let l="";for(let m=0;m<c;m++)l+=String.fromCharCode(p[u+m]);return l},writeASCII(p,u,c){for(let l=0;l<c.length;l++)p[u+l]=c.charCodeAt(l)},readBytes(p,u,c){const l=[];for(let m=0;m<c;m++)l.push(p[u+m]);return l},pad:p=>p.length<2?"0"+p:p,readUTF8(p,u,c){let l,m="";for(let A=0;A<c;A++)m+="%"+a.pad(p[u+A].toString(16));try{l=decodeURIComponent(m)}catch(A){return a.readASCII(p,u,c)}return l}};function t(p,u,c,l){const m=u*c,A=n(l),C=Math.ceil(u*A/8),L=new Uint8Array(4*m),D=new Uint32Array(L.buffer),{ctype:k}=l,{depth:O}=l,_=a.readUshort;if(k==6){const J=m<<2;if(O==8)for(var R=0;R<J;R+=4)L[R]=p[R],L[R+1]=p[R+1],L[R+2]=p[R+2],L[R+3]=p[R+3];if(O==16)for(R=0;R<J;R++)L[R]=p[R<<1]}else if(k==2){const J=l.tabs.tRNS;if(J==null){if(O==8)for(R=0;R<m;R++){var V=3*R;D[R]=255<<24|p[V+2]<<16|p[V+1]<<8|p[V]}if(O==16)for(R=0;R<m;R++)V=6*R,D[R]=255<<24|p[V+4]<<16|p[V+2]<<8|p[V]}else{var N=J[0];const B=J[1],tt=J[2];if(O==8)for(R=0;R<m;R++){var j=R<<2;V=3*R,D[R]=255<<24|p[V+2]<<16|p[V+1]<<8|p[V],p[V]==N&&p[V+1]==B&&p[V+2]==tt&&(L[j+3]=0)}if(O==16)for(R=0;R<m;R++)j=R<<2,V=6*R,D[R]=255<<24|p[V+4]<<16|p[V+2]<<8|p[V],_(p,V)==N&&_(p,V+2)==B&&_(p,V+4)==tt&&(L[j+3]=0)}}else if(k==3){const J=l.tabs.PLTE,B=l.tabs.tRNS,tt=B?B.length:0;if(O==1)for(var v=0;v<c;v++){var S=v*C,x=v*u;for(R=0;R<u;R++){j=x+R<<2;var y=3*(F=p[S+(R>>3)]>>7-((7&R)<<0)&1);L[j]=J[y],L[j+1]=J[y+1],L[j+2]=J[y+2],L[j+3]=F<tt?B[F]:255}}if(O==2)for(v=0;v<c;v++)for(S=v*C,x=v*u,R=0;R<u;R++)j=x+R<<2,y=3*(F=p[S+(R>>2)]>>6-((3&R)<<1)&3),L[j]=J[y],L[j+1]=J[y+1],L[j+2]=J[y+2],L[j+3]=F<tt?B[F]:255;if(O==4)for(v=0;v<c;v++)for(S=v*C,x=v*u,R=0;R<u;R++)j=x+R<<2,y=3*(F=p[S+(R>>1)]>>4-((1&R)<<2)&15),L[j]=J[y],L[j+1]=J[y+1],L[j+2]=J[y+2],L[j+3]=F<tt?B[F]:255;if(O==8)for(R=0;R<m;R++){var F;j=R<<2,y=3*(F=p[R]),L[j]=J[y],L[j+1]=J[y+1],L[j+2]=J[y+2],L[j+3]=F<tt?B[F]:255}}else if(k==4){if(O==8)for(R=0;R<m;R++){j=R<<2;var Y=p[E=R<<1];L[j]=Y,L[j+1]=Y,L[j+2]=Y,L[j+3]=p[E+1]}if(O==16)for(R=0;R<m;R++){var E;j=R<<2,Y=p[E=R<<2],L[j]=Y,L[j+1]=Y,L[j+2]=Y,L[j+3]=p[E+2]}}else if(k==0)for(N=l.tabs.tRNS?l.tabs.tRNS:-1,v=0;v<c;v++){const J=v*C,B=v*u;if(O==1)for(var T=0;T<u;T++){var Q=(Y=255*(p[J+(T>>>3)]>>>7-(7&T)&1))==255*N?0:255;D[B+T]=Q<<24|Y<<16|Y<<8|Y}else if(O==2)for(T=0;T<u;T++)Q=(Y=85*(p[J+(T>>>2)]>>>6-((3&T)<<1)&3))==85*N?0:255,D[B+T]=Q<<24|Y<<16|Y<<8|Y;else if(O==4)for(T=0;T<u;T++)Q=(Y=17*(p[J+(T>>>1)]>>>4-((1&T)<<2)&15))==17*N?0:255,D[B+T]=Q<<24|Y<<16|Y<<8|Y;else if(O==8)for(T=0;T<u;T++)Q=(Y=p[J+T])==N?0:255,D[B+T]=Q<<24|Y<<16|Y<<8|Y;else if(O==16)for(T=0;T<u;T++)Y=p[J+(T<<1)],Q=_(p,J+(T<<1))==N?0:255,D[B+T]=Q<<24|Y<<16|Y<<8|Y}return L}function e(p,u,c,l){const m=n(p),A=Math.ceil(c*m/8),C=new Uint8Array((A+1+p.interlace)*l);return u=p.tabs.CgBI?i(u,C):r(u,C),p.interlace==0?u=s(u,p,0,c,l):p.interlace==1&&(u=function(D,k){const O=k.width,_=k.height,R=n(k),V=R>>3,N=Math.ceil(O*R/8),j=new Uint8Array(_*N);let v=0;const S=[0,0,4,0,2,0,1],x=[0,4,0,2,0,1,0],y=[8,8,8,4,4,2,2],F=[8,8,4,4,2,2,1];let Y=0;for(;Y<7;){const T=y[Y],Q=F[Y];let J=0,B=0,tt=S[Y];for(;tt<_;)tt+=T,B++;let P=x[Y];for(;P<O;)P+=Q,J++;const q=Math.ceil(J*R/8);s(D,k,v,J,B);let z=0,H=S[Y];for(;H<_;){let K=x[Y],rt=v+z*q<<3;for(;K<O;){var E;if(R==1&&(E=(E=D[rt>>3])>>7-(7&rt)&1,j[H*N+(K>>3)]|=E<<7-((7&K)<<0)),R==2&&(E=(E=D[rt>>3])>>6-(7&rt)&3,j[H*N+(K>>2)]|=E<<6-((3&K)<<1)),R==4&&(E=(E=D[rt>>3])>>4-(7&rt)&15,j[H*N+(K>>1)]|=E<<4-((1&K)<<2)),R>=8){const it=H*N+K*V;for(let at=0;at<V;at++)j[it+at]=D[(rt>>3)+at]}rt+=R,K+=Q}z++,H+=T}J*B!=0&&(v+=B*(1+q)),Y+=1}return j}(u,p)),u}function r(p,u){return i(new Uint8Array(p.buffer,2,p.length-6),u)}var i=function(){const p={H:{}};return p.H.N=function(u,c){const l=Uint8Array;let m,A,C=0,L=0,D=0,k=0,O=0,_=0,R=0,V=0,N=0;if(u[0]==3&&u[1]==0)return c||new l(0);const j=p.H,v=j.b,S=j.e,x=j.R,y=j.n,F=j.A,Y=j.Z,E=j.m,T=c==null;for(T&&(c=new l(u.length>>>2<<5));C==0;)if(C=v(u,N,1),L=v(u,N+1,2),N+=3,L!=0){if(T&&(c=p.H.W(c,V+(1<<17))),L==1&&(m=E.J,A=E.h,_=511,R=31),L==2){D=S(u,N,5)+257,k=S(u,N+5,5)+1,O=S(u,N+10,4)+4,N+=14;let J=1;for(var Q=0;Q<38;Q+=2)E.Q[Q]=0,E.Q[Q+1]=0;for(Q=0;Q<O;Q++){const P=S(u,N+3*Q,3);E.Q[1+(E.X[Q]<<1)]=P,P>J&&(J=P)}N+=3*O,y(E.Q,J),F(E.Q,J,E.u),m=E.w,A=E.d,N=x(E.u,(1<<J)-1,D+k,u,N,E.v);const B=j.V(E.v,0,D,E.C);_=(1<<B)-1;const tt=j.V(E.v,D,k,E.D);R=(1<<tt)-1,y(E.C,B),F(E.C,B,m),y(E.D,tt),F(E.D,tt,A)}for(;;){const J=m[Y(u,N)&_];N+=15&J;const B=J>>>4;if(!(B>>>8))c[V++]=B;else{if(B==256)break;{let tt=V+B-254;if(B>264){const K=E.q[B-257];tt=V+(K>>>3)+S(u,N,7&K),N+=7&K}const P=A[Y(u,N)&R];N+=15&P;const q=P>>>4,z=E.c[q],H=(z>>>4)+v(u,N,15&z);for(N+=15&z;V<tt;)c[V]=c[V++-H],c[V]=c[V++-H],c[V]=c[V++-H],c[V]=c[V++-H];V=tt}}}}else{(7&N)!=0&&(N+=8-(7&N));const J=4+(N>>>3),B=u[J-4]|u[J-3]<<8;T&&(c=p.H.W(c,V+B)),c.set(new l(u.buffer,u.byteOffset+J,B),V),N=J+B<<3,V+=B}return c.length==V?c:c.slice(0,V)},p.H.W=function(u,c){const l=u.length;if(c<=l)return u;const m=new Uint8Array(l<<1);return m.set(u,0),m},p.H.R=function(u,c,l,m,A,C){const L=p.H.e,D=p.H.Z;let k=0;for(;k<l;){const O=u[D(m,A)&c];A+=15&O;const _=O>>>4;if(_<=15)C[k]=_,k++;else{let R=0,V=0;_==16?(V=3+L(m,A,2),A+=2,R=C[k-1]):_==17?(V=3+L(m,A,3),A+=3):_==18&&(V=11+L(m,A,7),A+=7);const N=k+V;for(;k<N;)C[k]=R,k++}}return A},p.H.V=function(u,c,l,m){let A=0,C=0;const L=m.length>>>1;for(;C<l;){const D=u[C+c];m[C<<1]=0,m[1+(C<<1)]=D,D>A&&(A=D),C++}for(;C<L;)m[C<<1]=0,m[1+(C<<1)]=0,C++;return A},p.H.n=function(u,c){const l=p.H.m,m=u.length;let A,C,L,D;const k=l.j;for(var O=0;O<=c;O++)k[O]=0;for(O=1;O<m;O+=2)k[u[O]]++;const _=l.K;for(A=0,k[0]=0,C=1;C<=c;C++)A=A+k[C-1]<<1,_[C]=A;for(L=0;L<m;L+=2)D=u[L+1],D!=0&&(u[L]=_[D],_[D]++)},p.H.A=function(u,c,l){const m=u.length,A=p.H.m.r;for(let C=0;C<m;C+=2)if(u[C+1]!=0){const L=C>>1,D=u[C+1],k=L<<4|D,O=c-D;let _=u[C]<<O;const R=_+(1<<O);for(;_!=R;)l[A[_]>>>15-c]=k,_++}},p.H.l=function(u,c){const l=p.H.m.r,m=15-c;for(let A=0;A<u.length;A+=2){const C=u[A]<<c-u[A+1];u[A]=l[C]>>>m}},p.H.M=function(u,c,l){l<<=7&c;const m=c>>>3;u[m]|=l,u[m+1]|=l>>>8},p.H.I=function(u,c,l){l<<=7&c;const m=c>>>3;u[m]|=l,u[m+1]|=l>>>8,u[m+2]|=l>>>16},p.H.e=function(u,c,l){return(u[c>>>3]|u[1+(c>>>3)]<<8)>>>(7&c)&(1<<l)-1},p.H.b=function(u,c,l){return(u[c>>>3]|u[1+(c>>>3)]<<8|u[2+(c>>>3)]<<16)>>>(7&c)&(1<<l)-1},p.H.Z=function(u,c){return(u[c>>>3]|u[1+(c>>>3)]<<8|u[2+(c>>>3)]<<16)>>>(7&c)},p.H.i=function(u,c){return(u[c>>>3]|u[1+(c>>>3)]<<8|u[2+(c>>>3)]<<16|u[3+(c>>>3)]<<24)>>>(7&c)},p.H.m=function(){const u=Uint16Array,c=Uint32Array;return{K:new u(16),j:new u(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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,0,0,0],q:new u(32),p:[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,65535,65535],z:[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,0,0],c:new c(32),J:new u(512),_:[],h:new u(32),$:[],w:new u(32768),C:[],v:[],d:new u(32768),D:[],u:new u(512),Q:[],r:new u(32768),s:new c(286),Y:new c(30),a:new c(19),t:new c(15e3),k:new u(65536),g:new u(32768)}}(),function(){const u=p.H.m;for(var c=0;c<32768;c++){let m=c;m=(2863311530&m)>>>1|(1431655765&m)<<1,m=(3435973836&m)>>>2|(858993459&m)<<2,m=(4042322160&m)>>>4|(252645135&m)<<4,m=(4278255360&m)>>>8|(16711935&m)<<8,u.r[c]=(m>>>16|m<<16)>>>17}function l(m,A,C){for(;A--!=0;)m.push(0,C)}for(c=0;c<32;c++)u.q[c]=u.S[c]<<3|u.T[c],u.c[c]=u.p[c]<<4|u.z[c];l(u._,144,8),l(u._,112,9),l(u._,24,7),l(u._,8,8),p.H.n(u._,9),p.H.A(u._,9,u.J),p.H.l(u._,9),l(u.$,32,5),p.H.n(u.$,5),p.H.A(u.$,5,u.h),p.H.l(u.$,5),l(u.Q,19,0),l(u.C,286,0),l(u.D,30,0),l(u.v,320,0)}(),p.H.N}();function n(p){return[1,null,3,1,2,null,4][p.ctype]*p.depth}function s(p,u,c,l,m){let A=n(u);const C=Math.ceil(l*A/8);let L,D;A=Math.ceil(A/8);let k=p[c],O=0;if(k>1&&(p[c]=[0,0,1][k-2]),k==3)for(O=A;O<C;O++)p[O+1]=p[O+1]+(p[O+1-A]>>>1)&255;for(let _=0;_<m;_++)if(L=c+_*C,D=L+_+1,k=p[D-1],O=0,k==0)for(;O<C;O++)p[L+O]=p[D+O];else if(k==1){for(;O<A;O++)p[L+O]=p[D+O];for(;O<C;O++)p[L+O]=p[D+O]+p[L+O-A]}else if(k==2)for(;O<C;O++)p[L+O]=p[D+O]+p[L+O-C];else if(k==3){for(;O<A;O++)p[L+O]=p[D+O]+(p[L+O-C]>>>1);for(;O<C;O++)p[L+O]=p[D+O]+(p[L+O-C]+p[L+O-A]>>>1)}else{for(;O<A;O++)p[L+O]=p[D+O]+f(0,p[L+O-C],0);for(;O<C;O++)p[L+O]=p[D+O]+f(p[L+O-A],p[L+O-C],p[L+O-A-C])}return p}function f(p,u,c){const l=p+u-c,m=l-p,A=l-u,C=l-c;return m*m<=A*A&&m*m<=C*C?p:A*A<=C*C?u:c}function h(p,u,c){c.width=a.readUint(p,u),u+=4,c.height=a.readUint(p,u),u+=4,c.depth=p[u],u++,c.ctype=p[u],u++,c.compress=p[u],u++,c.filter=p[u],u++,c.interlace=p[u],u++}function g(p,u,c,l,m,A,C,L,D){const k=Math.min(u,m),O=Math.min(c,A);let _=0,R=0;for(let Y=0;Y<O;Y++)for(let E=0;E<k;E++)if(C>=0&&L>=0?(_=Y*u+E<<2,R=(L+Y)*m+C+E<<2):(_=(-L+Y)*u-C+E<<2,R=Y*m+E<<2),D==0)l[R]=p[_],l[R+1]=p[_+1],l[R+2]=p[_+2],l[R+3]=p[_+3];else if(D==1){var V=p[_+3]*.00392156862745098,N=p[_]*V,j=p[_+1]*V,v=p[_+2]*V,S=l[R+3]*(1/255),x=l[R]*S,y=l[R+1]*S,F=l[R+2]*S;const T=1-V,Q=V+S*T,J=Q==0?0:1/Q;l[R+3]=255*Q,l[R+0]=(N+x*T)*J,l[R+1]=(j+y*T)*J,l[R+2]=(v+F*T)*J}else if(D==2)V=p[_+3],N=p[_],j=p[_+1],v=p[_+2],S=l[R+3],x=l[R],y=l[R+1],F=l[R+2],V==S&&N==x&&j==y&&v==F?(l[R]=0,l[R+1]=0,l[R+2]=0,l[R+3]=0):(l[R]=N,l[R+1]=j,l[R+2]=v,l[R+3]=V);else if(D==3){if(V=p[_+3],N=p[_],j=p[_+1],v=p[_+2],S=l[R+3],x=l[R],y=l[R+1],F=l[R+2],V==S&&N==x&&j==y&&v==F)continue;if(V<220&&S>20)return!1}return!0}return{decode:function(u){const c=new Uint8Array(u);let l=8;const m=a,A=m.readUshort,C=m.readUint,L={tabs:{},frames:[]},D=new Uint8Array(c.length);let k,O=0,_=0;const R=[137,80,78,71,13,10,26,10];for(var V=0;V<8;V++)if(c[V]!=R[V])throw"The input is not a PNG file!";for(;l<c.length;){const Y=m.readUint(c,l);l+=4;const E=m.readASCII(c,l,4);if(l+=4,E=="IHDR")h(c,l,L);else if(E=="iCCP"){for(var N=l;c[N]!=0;)N++;m.readASCII(c,l,N-l),c[N+1];const T=c.slice(N+2,l+Y);let Q=null;try{Q=r(T)}catch(J){Q=i(T)}L.tabs[E]=Q}else if(E=="CgBI")L.tabs[E]=c.slice(l,l+4);else if(E=="IDAT"){for(V=0;V<Y;V++)D[O+V]=c[l+V];O+=Y}else if(E=="acTL")L.tabs[E]={num_frames:C(c,l),num_plays:C(c,l+4)},k=new Uint8Array(c.length);else if(E=="fcTL"){_!=0&&((F=L.frames[L.frames.length-1]).data=e(L,k.slice(0,_),F.rect.width,F.rect.height),_=0);const T={x:C(c,l+12),y:C(c,l+16),width:C(c,l+4),height:C(c,l+8)};let Q=A(c,l+22);Q=A(c,l+20)/(Q==0?100:Q);const J={rect:T,delay:Math.round(1e3*Q),dispose:c[l+24],blend:c[l+25]};L.frames.push(J)}else if(E=="fdAT"){for(V=0;V<Y-4;V++)k[_+V]=c[l+V+4];_+=Y-4}else if(E=="pHYs")L.tabs[E]=[m.readUint(c,l),m.readUint(c,l+4),c[l+8]];else if(E=="cHRM")for(L.tabs[E]=[],V=0;V<8;V++)L.tabs[E].push(m.readUint(c,l+4*V));else if(E=="tEXt"||E=="zTXt"){L.tabs[E]==null&&(L.tabs[E]={});var j=m.nextZero(c,l),v=m.readASCII(c,l,j-l),S=l+Y-j-1;if(E=="tEXt")y=m.readASCII(c,j+1,S);else{var x=r(c.slice(j+2,j+2+S));y=m.readUTF8(x,0,x.length)}L.tabs[E][v]=y}else if(E=="iTXt"){L.tabs[E]==null&&(L.tabs[E]={}),j=0,N=l,j=m.nextZero(c,N),v=m.readASCII(c,N,j-N);const T=c[N=j+1];var y;c[N+1],N+=2,j=m.nextZero(c,N),m.readASCII(c,N,j-N),N=j+1,j=m.nextZero(c,N),m.readUTF8(c,N,j-N),S=Y-((N=j+1)-l),T==0?y=m.readUTF8(c,N,S):(x=r(c.slice(N,N+S)),y=m.readUTF8(x,0,x.length)),L.tabs[E][v]=y}else if(E=="PLTE")L.tabs[E]=m.readBytes(c,l,Y);else if(E=="hIST"){const T=L.tabs.PLTE.length/3;for(L.tabs[E]=[],V=0;V<T;V++)L.tabs[E].push(A(c,l+2*V))}else if(E=="tRNS")L.ctype==3?L.tabs[E]=m.readBytes(c,l,Y):L.ctype==0?L.tabs[E]=A(c,l):L.ctype==2&&(L.tabs[E]=[A(c,l),A(c,l+2),A(c,l+4)]);else if(E=="gAMA")L.tabs[E]=m.readUint(c,l)/1e5;else if(E=="sRGB")L.tabs[E]=c[l];else if(E=="bKGD")L.ctype==0||L.ctype==4?L.tabs[E]=[A(c,l)]:L.ctype==2||L.ctype==6?L.tabs[E]=[A(c,l),A(c,l+2),A(c,l+4)]:L.ctype==3&&(L.tabs[E]=c[l]);else if(E=="IEND")break;l+=Y,m.readUint(c,l),l+=4}var F;return _!=0&&((F=L.frames[L.frames.length-1]).data=e(L,k.slice(0,_),F.rect.width,F.rect.height)),L.data=e(L,D,L.width,L.height),delete L.compress,delete L.interlace,delete L.filter,L},toRGBA8:function(u){const c=u.width,l=u.height;if(u.tabs.acTL==null)return[t(u.data,c,l,u).buffer];const m=[];u.frames[0].data==null&&(u.frames[0].data=u.data);const A=c*l*4,C=new Uint8Array(A),L=new Uint8Array(A),D=new Uint8Array(A);for(let O=0;O<u.frames.length;O++){const _=u.frames[O],R=_.rect.x,V=_.rect.y,N=_.rect.width,j=_.rect.height,v=t(_.data,N,j,u);if(O!=0)for(var k=0;k<A;k++)D[k]=C[k];if(_.blend==0?g(v,N,j,C,c,l,R,V,0):_.blend==1&&g(v,N,j,C,c,l,R,V,1),m.push(C.buffer.slice(0)),_.dispose!=0){if(_.dispose==1)g(L,N,j,C,c,l,R,V,0);else if(_.dispose==2)for(k=0;k<A;k++)C[k]=D[k]}}return m},_paeth:f,_copyTile:g,_bin:a}}();(function(){const{_copyTile:a}=Hn,{_bin:t}=Hn,e=Hn._paeth;var r={table:function(){const N=new Uint32Array(256);for(let j=0;j<256;j++){let v=j;for(let S=0;S<8;S++)1&v?v=3988292384^v>>>1:v>>>=1;N[j]=v}return N}(),update(N,j,v,S){for(let x=0;x<S;x++)N=r.table[255&(N^j[v+x])]^N>>>8;return N},crc:(N,j,v)=>4294967295^r.update(4294967295,N,j,v)};function i(N,j,v,S){j[v]+=N[0]*S>>4,j[v+1]+=N[1]*S>>4,j[v+2]+=N[2]*S>>4,j[v+3]+=N[3]*S>>4}function n(N){return Math.max(0,Math.min(255,N))}function s(N,j){const v=N[0]-j[0],S=N[1]-j[1],x=N[2]-j[2],y=N[3]-j[3];return v*v+S*S+x*x+y*y}function f(N,j,v,S,x,y,F){F==null&&(F=1);const Y=S.length,E=[];for(var T=0;T<Y;T++){const H=S[T];E.push([H>>>0&255,H>>>8&255,H>>>16&255,H>>>24&255])}for(T=0;T<Y;T++){let H=4294967295;for(var Q=0,J=0;J<Y;J++){var B=s(E[T],E[J]);J!=T&&B<H&&(H=B,Q=J)}}const tt=new Uint32Array(x.buffer),P=new Int16Array(j*v*4),q=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(T=0;T<q.length;T++)q[T]=255*((q[T]+.5)/16-.5);for(let H=0;H<v;H++)for(let K=0;K<j;K++){var z;T=4*(H*j+K),F!=2?z=[n(N[T]+P[T]),n(N[T+1]+P[T+1]),n(N[T+2]+P[T+2]),n(N[T+3]+P[T+3])]:(B=q[4*(3&H)+(3&K)],z=[n(N[T]+B),n(N[T+1]+B),n(N[T+2]+B),n(N[T+3]+B)]),Q=0;let rt=16777215;for(J=0;J<Y;J++){const gt=s(z,E[J]);gt<rt&&(rt=gt,Q=J)}const it=E[Q],at=[z[0]-it[0],z[1]-it[1],z[2]-it[2],z[3]-it[3]];F==1&&(K!=j-1&&i(at,P,T+4,7),H!=v-1&&(K!=0&&i(at,P,T+4*j-4,3),i(at,P,T+4*j,5),K!=j-1&&i(at,P,T+4*j+4,1))),y[T>>2]=Q,tt[T>>2]=S[Q]}}function h(N,j,v,S,x){x==null&&(x={});const{crc:y}=r,F=t.writeUint,Y=t.writeUshort,E=t.writeASCII;let T=8;const Q=N.frames.length>1;let J,B=!1,tt=33+(Q?20:0);if(x.sRGB!=null&&(tt+=13),x.pHYs!=null&&(tt+=21),x.iCCP!=null&&(J=pako.deflate(x.iCCP),tt+=21+J.length+4),N.ctype==3){for(var P=N.plte.length,q=0;q<P;q++)N.plte[q]>>>24!=255&&(B=!0);tt+=8+3*P+4+(B?8+1*P+4:0)}for(var z=0;z<N.frames.length;z++)Q&&(tt+=38),tt+=(it=N.frames[z]).cimg.length+12,z!=0&&(tt+=4);tt+=12;const H=new Uint8Array(tt),K=[137,80,78,71,13,10,26,10];for(q=0;q<8;q++)H[q]=K[q];if(F(H,T,13),T+=4,E(H,T,"IHDR"),T+=4,F(H,T,j),T+=4,F(H,T,v),T+=4,H[T]=N.depth,T++,H[T]=N.ctype,T++,H[T]=0,T++,H[T]=0,T++,H[T]=0,T++,F(H,T,y(H,T-17,17)),T+=4,x.sRGB!=null&&(F(H,T,1),T+=4,E(H,T,"sRGB"),T+=4,H[T]=x.sRGB,T++,F(H,T,y(H,T-5,5)),T+=4),x.iCCP!=null){const at=13+J.length;F(H,T,at),T+=4,E(H,T,"iCCP"),T+=4,E(H,T,"ICC profile"),T+=11,T+=2,H.set(J,T),T+=J.length,F(H,T,y(H,T-(at+4),at+4)),T+=4}if(x.pHYs!=null&&(F(H,T,9),T+=4,E(H,T,"pHYs"),T+=4,F(H,T,x.pHYs[0]),T+=4,F(H,T,x.pHYs[1]),T+=4,H[T]=x.pHYs[2],T++,F(H,T,y(H,T-13,13)),T+=4),Q&&(F(H,T,8),T+=4,E(H,T,"acTL"),T+=4,F(H,T,N.frames.length),T+=4,F(H,T,x.loop!=null?x.loop:0),T+=4,F(H,T,y(H,T-12,12)),T+=4),N.ctype==3){for(F(H,T,3*(P=N.plte.length)),T+=4,E(H,T,"PLTE"),T+=4,q=0;q<P;q++){const at=3*q,gt=N.plte[q],mt=255&gt,Nt=gt>>>8&255,Ct=gt>>>16&255;H[T+at+0]=mt,H[T+at+1]=Nt,H[T+at+2]=Ct}if(T+=3*P,F(H,T,y(H,T-3*P-4,3*P+4)),T+=4,B){for(F(H,T,P),T+=4,E(H,T,"tRNS"),T+=4,q=0;q<P;q++)H[T+q]=N.plte[q]>>>24&255;T+=P,F(H,T,y(H,T-P-4,P+4)),T+=4}}let rt=0;for(z=0;z<N.frames.length;z++){var it=N.frames[z];Q&&(F(H,T,26),T+=4,E(H,T,"fcTL"),T+=4,F(H,T,rt++),T+=4,F(H,T,it.rect.width),T+=4,F(H,T,it.rect.height),T+=4,F(H,T,it.rect.x),T+=4,F(H,T,it.rect.y),T+=4,Y(H,T,S[z]),T+=2,Y(H,T,1e3),T+=2,H[T]=it.dispose,T++,H[T]=it.blend,T++,F(H,T,y(H,T-30,30)),T+=4);const at=it.cimg;F(H,T,(P=at.length)+(z==0?0:4)),T+=4;const gt=T;E(H,T,z==0?"IDAT":"fdAT"),T+=4,z!=0&&(F(H,T,rt++),T+=4),H.set(at,T),T+=P,F(H,T,y(H,gt,T-gt)),T+=4}return F(H,T,0),T+=4,E(H,T,"IEND"),T+=4,F(H,T,y(H,T-4,4)),T+=4,H.buffer}function g(N,j,v){for(let S=0;S<N.frames.length;S++){const x=N.frames[S];x.rect.width;const y=x.rect.height,F=new Uint8Array(y*x.bpl+y);x.cimg=l(x.img,y,x.bpp,x.bpl,F,j,v)}}function p(N,j,v,S,x){const y=x[0],F=x[1],Y=x[2],E=x[3],T=x[4],Q=x[5];let J=6,B=8,tt=255;for(var P=0;P<N.length;P++){const nt=new Uint8Array(N[P]);for(var q=nt.length,z=0;z<q;z+=4)tt&=nt[z+3]}const H=tt!=255,K=function(Tt,It,yt,St,Pt,xt){const Et=[];for(var Dt=0;Dt<Tt.length;Dt++){const Wt=new Uint8Array(Tt[Dt]),Ft=new Uint32Array(Wt.buffer);var Ut;let ge=0,ne=0,Fe=It,se=yt,be=St?1:0;if(Dt!=0){const In=xt||St||Dt==1||Et[Dt-2].dispose!=0?1:2;let fe=0,ir=1e9;for(let ye=0;ye<In;ye++){var Qt=new Uint8Array(Tt[Dt-1-ye]);const An=new Uint32Array(Tt[Dt-1-ye]);let Ze=It,ce=yt,Vt=-1,ae=-1;for(let ke=0;ke<yt;ke++)for(let Ye=0;Ye<It;Ye++)Ft[Xt=ke*It+Ye]!=An[Xt]&&(Ye<Ze&&(Ze=Ye),Ye>Vt&&(Vt=Ye),ke<ce&&(ce=ke),ke>ae&&(ae=ke));Vt==-1&&(Ze=ce=Vt=ae=0),Pt&&((1&Ze)==1&&Ze--,(1&ce)==1&&ce--);const ar=(Vt-Ze+1)*(ae-ce+1);ar<ir&&(ir=ar,fe=ye,ge=Ze,ne=ce,Fe=Vt-Ze+1,se=ae-ce+1)}Qt=new Uint8Array(Tt[Dt-1-fe]),fe==1&&(Et[Dt-1].dispose=2),Ut=new Uint8Array(Fe*se*4),a(Qt,It,yt,Ut,Fe,se,-ge,-ne,0),be=a(Wt,It,yt,Ut,Fe,se,-ge,-ne,3)?1:0,be==1?c(Wt,It,yt,Ut,{x:ge,y:ne,width:Fe,height:se}):a(Wt,It,yt,Ut,Fe,se,-ge,-ne,0)}else Ut=Wt.slice(0);Et.push({rect:{x:ge,y:ne,width:Fe,height:se},img:Ut,blend:be,dispose:0})}if(St)for(Dt=0;Dt<Et.length;Dt++){if((qt=Et[Dt]).blend==1)continue;const Wt=qt.rect,Ft=Et[Dt-1].rect,ge=Math.min(Wt.x,Ft.x),ne=Math.min(Wt.y,Ft.y),Fe={x:ge,y:ne,width:Math.max(Wt.x+Wt.width,Ft.x+Ft.width)-ge,height:Math.max(Wt.y+Wt.height,Ft.y+Ft.height)-ne};Et[Dt-1].dispose=1,Dt-1!=0&&u(Tt,It,yt,Et,Dt-1,Fe,Pt),u(Tt,It,yt,Et,Dt,Fe,Pt)}let ie=0;if(Tt.length!=1)for(var Xt=0;Xt<Et.length;Xt++){var qt;ie+=(qt=Et[Xt]).rect.width*qt.rect.height}return Et}(N,j,v,y,F,Y),rt={},it=[],at=[];if(S!=0){const nt=[];for(z=0;z<K.length;z++)nt.push(K[z].img.buffer);const Tt=function(Pt){let xt=0;for(var Et=0;Et<Pt.length;Et++)xt+=Pt[Et].byteLength;const Dt=new Uint8Array(xt);let Ut=0;for(Et=0;Et<Pt.length;Et++){const Qt=new Uint8Array(Pt[Et]),ie=Qt.length;for(let Xt=0;Xt<ie;Xt+=4){let qt=Qt[Xt],Wt=Qt[Xt+1],Ft=Qt[Xt+2];const ge=Qt[Xt+3];ge==0&&(qt=Wt=Ft=0),Dt[Ut+Xt]=qt,Dt[Ut+Xt+1]=Wt,Dt[Ut+Xt+2]=Ft,Dt[Ut+Xt+3]=ge}Ut+=ie}return Dt.buffer}(nt),It=A(Tt,S);for(z=0;z<It.plte.length;z++)it.push(It.plte[z].est.rgba);let yt=0;for(z=0;z<K.length;z++){const St=(mt=K[z]).img.length;var gt=new Uint8Array(It.inds.buffer,yt>>2,St>>2);at.push(gt);const Pt=new Uint8Array(It.abuf,yt,St);Q&&f(mt.img,mt.rect.width,mt.rect.height,it,Pt,gt),mt.img.set(Pt),yt+=St}}else for(P=0;P<K.length;P++){var mt=K[P];const nt=new Uint32Array(mt.img.buffer);var Nt=mt.rect.width;for(q=nt.length,gt=new Uint8Array(q),at.push(gt),z=0;z<q;z++){const Tt=nt[z];if(z!=0&&Tt==nt[z-1])gt[z]=gt[z-1];else if(z>Nt&&Tt==nt[z-Nt])gt[z]=gt[z-Nt];else{let It=rt[Tt];if(It==null&&(rt[Tt]=It=it.length,it.push(Tt),it.length>=300))break;gt[z]=It}}}const Ct=it.length;for(Ct<=256&&T==0&&(B=Ct<=2?1:Ct<=4?2:Ct<=16?4:8,B=Math.max(B,E)),P=0;P<K.length;P++){(mt=K[P]).rect.x,mt.rect.y,Nt=mt.rect.width;const nt=mt.rect.height;let Tt=mt.img;new Uint32Array(Tt.buffer);let It=4*Nt,yt=4;if(Ct<=256&&T==0){It=Math.ceil(B*Nt/8);var Mt=new Uint8Array(It*nt);const St=at[P];for(let Pt=0;Pt<nt;Pt++){z=Pt*It;const xt=Pt*Nt;if(B==8)for(var pt=0;pt<Nt;pt++)Mt[z+pt]=St[xt+pt];else if(B==4)for(pt=0;pt<Nt;pt++)Mt[z+(pt>>1)]|=St[xt+pt]<<4-4*(1&pt);else if(B==2)for(pt=0;pt<Nt;pt++)Mt[z+(pt>>2)]|=St[xt+pt]<<6-2*(3&pt);else if(B==1)for(pt=0;pt<Nt;pt++)Mt[z+(pt>>3)]|=St[xt+pt]<<7-1*(7&pt)}Tt=Mt,J=3,yt=1}else if(H==0&&K.length==1){Mt=new Uint8Array(Nt*nt*3);const St=Nt*nt;for(z=0;z<St;z++){const Pt=3*z,xt=4*z;Mt[Pt]=Tt[xt],Mt[Pt+1]=Tt[xt+1],Mt[Pt+2]=Tt[xt+2]}Tt=Mt,J=2,yt=3,It=3*Nt}mt.img=Tt,mt.bpl=It,mt.bpp=yt}return{ctype:J,depth:B,plte:it,frames:K}}function u(N,j,v,S,x,y,F){const Y=Uint8Array,E=Uint32Array,T=new Y(N[x-1]),Q=new E(N[x-1]),J=x+1<N.length?new Y(N[x+1]):null,B=new Y(N[x]),tt=new E(B.buffer);let P=j,q=v,z=-1,H=-1;for(let rt=0;rt<y.height;rt++)for(let it=0;it<y.width;it++){const at=y.x+it,gt=y.y+rt,mt=gt*j+at,Nt=tt[mt];Nt==0||S[x-1].dispose==0&&Q[mt]==Nt&&(J==null||J[4*mt+3]!=0)||(at<P&&(P=at),at>z&&(z=at),gt<q&&(q=gt),gt>H&&(H=gt))}z==-1&&(P=q=z=H=0),F&&((1&P)==1&&P--,(1&q)==1&&q--),y={x:P,y:q,width:z-P+1,height:H-q+1};const K=S[x];K.rect=y,K.blend=1,K.img=new Uint8Array(y.width*y.height*4),S[x-1].dispose==0?(a(T,j,v,K.img,y.width,y.height,-y.x,-y.y,0),c(B,j,v,K.img,y)):a(B,j,v,K.img,y.width,y.height,-y.x,-y.y,0)}function c(N,j,v,S,x){a(N,j,v,S,x.width,x.height,-x.x,-x.y,2)}function l(N,j,v,S,x,y,F){const Y=[];let E,T=[0,1,2,3,4];y!=-1?T=[y]:(j*S>5e5||v==1)&&(T=[0]),F&&(E={level:0});const Q=vh;for(var J=0;J<T.length;J++){for(let P=0;P<j;P++)m(x,N,P,S,v,T[J]);Y.push(Q.deflate(x,E))}let B,tt=1e9;for(J=0;J<Y.length;J++)Y[J].length<tt&&(B=J,tt=Y[J].length);return Y[B]}function m(N,j,v,S,x,y){const F=v*S;let Y=F+v;if(N[Y]=y,Y++,y==0)if(S<500)for(var E=0;E<S;E++)N[Y+E]=j[F+E];else N.set(new Uint8Array(j.buffer,F,S),Y);else if(y==1){for(E=0;E<x;E++)N[Y+E]=j[F+E];for(E=x;E<S;E++)N[Y+E]=j[F+E]-j[F+E-x]+256&255}else if(v==0){for(E=0;E<x;E++)N[Y+E]=j[F+E];if(y==2)for(E=x;E<S;E++)N[Y+E]=j[F+E];if(y==3)for(E=x;E<S;E++)N[Y+E]=j[F+E]-(j[F+E-x]>>1)+256&255;if(y==4)for(E=x;E<S;E++)N[Y+E]=j[F+E]-e(j[F+E-x],0,0)+256&255}else{if(y==2)for(E=0;E<S;E++)N[Y+E]=j[F+E]+256-j[F+E-S]&255;if(y==3){for(E=0;E<x;E++)N[Y+E]=j[F+E]+256-(j[F+E-S]>>1)&255;for(E=x;E<S;E++)N[Y+E]=j[F+E]+256-(j[F+E-S]+j[F+E-x]>>1)&255}if(y==4){for(E=0;E<x;E++)N[Y+E]=j[F+E]+256-e(0,j[F+E-S],0)&255;for(E=x;E<S;E++)N[Y+E]=j[F+E]+256-e(j[F+E-x],j[F+E-S],j[F+E-x-S])&255}}}function A(N,j){const v=new Uint8Array(N),S=v.slice(0),x=new Uint32Array(S.buffer),y=C(S,j),F=y[0],Y=y[1],E=v.length,T=new Uint8Array(E>>2);let Q;if(v.length<2e7)for(var J=0;J<E;J+=4)Q=L(F,B=v[J]*(1/255),tt=v[J+1]*(1/255),P=v[J+2]*(1/255),q=v[J+3]*(1/255)),T[J>>2]=Q.ind,x[J>>2]=Q.est.rgba;else for(J=0;J<E;J+=4){var B=v[J]*.00392156862745098,tt=v[J+1]*(1/255),P=v[J+2]*(1/255),q=v[J+3]*(1/255);for(Q=F;Q.left;)Q=D(Q.est,B,tt,P,q)<=0?Q.left:Q.right;T[J>>2]=Q.ind,x[J>>2]=Q.est.rgba}return{abuf:S.buffer,inds:T,plte:Y}}function C(N,j,v){v==null&&(v=1e-4);const S=new Uint32Array(N.buffer),x={i0:0,i1:N.length,bst:null,est:null,tdst:0,left:null,right:null};x.bst=_(N,x.i0,x.i1),x.est=R(x.bst);const y=[x];for(;y.length<j;){let Y=0,E=0;for(var F=0;F<y.length;F++)y[F].est.L>Y&&(Y=y[F].est.L,E=F);if(Y<v)break;const T=y[E],Q=k(N,S,T.i0,T.i1,T.est.e,T.est.eMq255);if(T.i0>=Q||T.i1<=Q){T.est.L=0;continue}const J={i0:T.i0,i1:Q,bst:null,est:null,tdst:0,left:null,right:null};J.bst=_(N,J.i0,J.i1),J.est=R(J.bst);const B={i0:Q,i1:T.i1,bst:null,est:null,tdst:0,left:null,right:null};for(B.bst={R:[],m:[],N:T.bst.N-J.bst.N},F=0;F<16;F++)B.bst.R[F]=T.bst.R[F]-J.bst.R[F];for(F=0;F<4;F++)B.bst.m[F]=T.bst.m[F]-J.bst.m[F];B.est=R(B.bst),T.left=J,T.right=B,y[E]=J,y.push(B)}for(y.sort((Y,E)=>E.bst.N-Y.bst.N),F=0;F<y.length;F++)y[F].ind=F;return[x,y]}function L(N,j,v,S,x){if(N.left==null)return N.tdst=function(J,B,tt,P,q){const z=B-J[0],H=tt-J[1],K=P-J[2],rt=q-J[3];return z*z+H*H+K*K+rt*rt}(N.est.q,j,v,S,x),N;const y=D(N.est,j,v,S,x);let F=N.left,Y=N.right;y>0&&(F=N.right,Y=N.left);const E=L(F,j,v,S,x);if(E.tdst<=y*y)return E;const T=L(Y,j,v,S,x);return T.tdst<E.tdst?T:E}function D(N,j,v,S,x){const{e:y}=N;return y[0]*j+y[1]*v+y[2]*S+y[3]*x-N.eMq}function k(N,j,v,S,x,y){for(S-=4;v<S;){for(;O(N,v,x)<=y;)v+=4;for(;O(N,S,x)>y;)S-=4;if(v>=S)break;const F=j[v>>2];j[v>>2]=j[S>>2],j[S>>2]=F,v+=4,S-=4}for(;O(N,v,x)>y;)v-=4;return v+4}function O(N,j,v){return N[j]*v[0]+N[j+1]*v[1]+N[j+2]*v[2]+N[j+3]*v[3]}function _(N,j,v){const S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=[0,0,0,0],y=v-j>>2;for(let F=j;F<v;F+=4){const Y=N[F]*.00392156862745098,E=N[F+1]*(1/255),T=N[F+2]*(1/255),Q=N[F+3]*(1/255);x[0]+=Y,x[1]+=E,x[2]+=T,x[3]+=Q,S[0]+=Y*Y,S[1]+=Y*E,S[2]+=Y*T,S[3]+=Y*Q,S[5]+=E*E,S[6]+=E*T,S[7]+=E*Q,S[10]+=T*T,S[11]+=T*Q,S[15]+=Q*Q}return S[4]=S[1],S[8]=S[2],S[9]=S[6],S[12]=S[3],S[13]=S[7],S[14]=S[11],{R:S,m:x,N:y}}function R(N){const{R:j}=N,{m:v}=N,{N:S}=N,x=v[0],y=v[1],F=v[2],Y=v[3],E=S==0?0:1/S,T=[j[0]-x*x*E,j[1]-x*y*E,j[2]-x*F*E,j[3]-x*Y*E,j[4]-y*x*E,j[5]-y*y*E,j[6]-y*F*E,j[7]-y*Y*E,j[8]-F*x*E,j[9]-F*y*E,j[10]-F*F*E,j[11]-F*Y*E,j[12]-Y*x*E,j[13]-Y*y*E,j[14]-Y*F*E,j[15]-Y*Y*E],Q=T,J=V;let B=[Math.random(),Math.random(),Math.random(),Math.random()],tt=0,P=0;if(S!=0)for(let z=0;z<16&&(B=J.multVec(Q,B),P=Math.sqrt(J.dot(B,B)),B=J.sml(1/P,B),!(z!=0&&Math.abs(P-tt)<1e-9));z++)tt=P;const q=[x*E,y*E,F*E,Y*E];return{Cov:T,q,e:B,L:tt,eMq255:J.dot(J.sml(255,q),B),eMq:J.dot(B,q),rgba:(Math.round(255*q[3])<<24|Math.round(255*q[2])<<16|Math.round(255*q[1])<<8|Math.round(255*q[0])<<0)>>>0}}var V={multVec:(N,j)=>[N[0]*j[0]+N[1]*j[1]+N[2]*j[2]+N[3]*j[3],N[4]*j[0]+N[5]*j[1]+N[6]*j[2]+N[7]*j[3],N[8]*j[0]+N[9]*j[1]+N[10]*j[2]+N[11]*j[3],N[12]*j[0]+N[13]*j[1]+N[14]*j[2]+N[15]*j[3]],dot:(N,j)=>N[0]*j[0]+N[1]*j[1]+N[2]*j[2]+N[3]*j[3],sml:(N,j)=>[N*j[0],N*j[1],N*j[2],N*j[3]]};Hn.encode=function(j,v,S,x,y,F,Y){x==null&&(x=0),Y==null&&(Y=!1);const E=p(j,v,S,x,[!1,!1,!1,0,Y,!1]);return g(E,-1),h(E,v,S,y,F)},Hn.encodeLL=function(j,v,S,x,y,F,Y,E){const T={ctype:0+(x==1?0:2)+(y==0?0:4),depth:F,frames:[]},Q=(x+y)*F,J=Q*v;for(let B=0;B<j.length;B++)T.frames.push({rect:{x:0,y:0,width:v,height:S},img:new Uint8Array(j[B]),blend:0,dispose:1,bpp:Math.ceil(Q/8),bpl:Math.ceil(J/8)});return g(T,0,!0),h(T,v,S,Y,E)},Hn.encode.compress=p,Hn.encode.dither=f,Hn.quantize=A,Hn.quantize.getKDtree=C,Hn.quantize.getNearest=L})();const Ef={toArrayBuffer(a,t){const e=a.width,r=a.height,i=e<<2,n=a.getContext("2d").getImageData(0,0,e,r),s=new Uint32Array(n.data.buffer),f=(32*e+31)/32<<2,h=f*r,g=122+h,p=new ArrayBuffer(g),u=new DataView(p),c=1<<20;let l,m,A,C,L=c,D=0,k=0,O=0;function _(N){u.setUint16(k,N,!0),k+=2}function R(N){u.setUint32(k,N,!0),k+=4}function V(N){k+=N}_(19778),R(g),V(4),R(122),R(108),R(e),R(-r>>>0),_(1),_(32),R(3),R(h),R(2835),R(2835),V(8),R(16711680),R(65280),R(255),R(4278190080),R(1466527264),function N(){for(;D<r&&L>0;){for(C=122+D*f,l=0;l<i;)L--,m=s[O++],A=m>>>24,u.setUint32(C+l,m<<8|A),l+=4;D++}O<s.length?(L=c,setTimeout(N,Ef._dly)):t(p)}()},toBlob(a,t){this.toArrayBuffer(a,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var pn={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},mh={[pn.CHROME]:16384,[pn.FIREFOX]:11180,[pn.DESKTOP_SAFARI]:16384,[pn.IE]:8192,[pn.IOS]:4096,[pn.ETC]:8192};const Ds=typeof window<"u",Of=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ho=Ds&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),bh=(Ds||Of)&&(ho&&ho.getOriginalSymbol(window,"File")||typeof File<"u"&&File),Bf=(Ds||Of)&&(ho&&ho.getOriginalSymbol(window,"FileReader")||typeof FileReader<"u"&&FileReader);function Ts(a,t,e){return e===void 0&&(e=Date.now()),new Promise(r=>{const i=a.split(","),n=i[0].match(/:(.*?);/)[1],s=globalThis.atob(i[1]);let f=s.length;const h=new Uint8Array(f);for(;f--;)h[f]=s.charCodeAt(f);const g=new Blob([h],{type:n});g.name=t,g.lastModified=e,r(g)})}function Df(a){return new Promise((t,e)=>{const r=new Bf;r.onload=()=>t(r.result),r.onerror=i=>e(i),r.readAsDataURL(a)})}function Tf(a){return new Promise((t,e)=>{const r=new Image;r.onload=()=>t(r),r.onerror=i=>e(i),r.src=a})}function Qr(){if(Qr.cachedResult!==void 0)return Qr.cachedResult;let a=pn.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?a=pn.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?a=pn.IOS:/Safari/i.test(t)?a=pn.DESKTOP_SAFARI:/Firefox/i.test(t)?a=pn.FIREFOX:(/MSIE/i.test(t)||document.documentMode)&&(a=pn.IE),Qr.cachedResult=a,Qr.cachedResult}function jf(a,t){const e=Qr(),r=mh[e];let i=a,n=t,s=i*n;const f=i>n?n/i:i/n;for(;s>r*r;){const h=(r+i)/2,g=(r+n)/2;h<g?(n=g,i=g*f):(n=h*f,i=h),s=i*n}return{width:i,height:n}}function co(a,t){let e,r;try{if(e=new OffscreenCanvas(a,t),r=e.getContext("2d"),r===null)throw new Error("getContext of OffscreenCanvas returns null")}catch(i){e=document.createElement("canvas"),r=e.getContext("2d")}return e.width=a,e.height=t,[e,r]}function Rf(a,t){const{width:e,height:r}=jf(a.width,a.height),[i,n]=co(e,r);return t&&/jpe?g/.test(t)&&(n.fillStyle="white",n.fillRect(0,0,i.width,i.height)),n.drawImage(a,0,0,i.width,i.height),i}function po(){return po.cachedResult!==void 0||(po.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof document<"u"&&"ontouchend"in document),po.cachedResult}function go(a,t){return t===void 0&&(t={}),new Promise(function(e,r){let i,n;var s=function(){try{return n=Rf(i,t.fileType||a.type),e([i,n])}catch(h){return r(h)}},f=function(h){try{var g=function(p){try{throw p}catch(u){return r(u)}};try{let p;return Df(a).then(function(u){try{return p=u,Tf(p).then(function(c){try{return i=c,function(){try{return s()}catch(l){return r(l)}}()}catch(l){return g(l)}},g)}catch(c){return g(c)}},g)}catch(p){g(p)}}catch(p){return r(p)}};try{if(po()||[pn.DESKTOP_SAFARI,pn.MOBILE_SAFARI].includes(Qr()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(a).then(function(h){try{return i=h,s()}catch(g){return f()}},f)}catch(h){f()}})}function vo(a,t,e,r,i){return i===void 0&&(i=1),new Promise(function(n,s){let f;if(t==="image/png"){let u,c,l;return u=a.getContext("2d"),{data:c}=u.getImageData(0,0,a.width,a.height),l=Hn.encode([c.buffer],a.width,a.height,4096*i),f=new Blob([l],{type:t}),f.name=e,f.lastModified=r,h.call(this)}{let u=function(){return h.call(this)};var g=u;if(t==="image/bmp")return new Promise(c=>Ef.toBlob(a,c)).then((function(c){try{return f=c,f.name=e,f.lastModified=r,u.call(this)}catch(l){return s(l)}}).bind(this),s);{let c=function(){return u.call(this)};var p=c;if(typeof OffscreenCanvas=="function"&&a instanceof OffscreenCanvas)return a.convertToBlob({type:t,quality:i}).then((function(l){try{return f=l,f.name=e,f.lastModified=r,c.call(this)}catch(m){return s(m)}}).bind(this),s);{let l;return l=a.toDataURL(t,i),Ts(l,e,r).then((function(m){try{return f=m,c.call(this)}catch(A){return s(A)}}).bind(this),s)}}}function h(){return n(f)}})}function rr(a){a.width=0,a.height=0}function xi(){return new Promise(function(a,t){let e,r,i,n,s;return xi.cachedResult!==void 0?a(xi.cachedResult):(e="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",Ts("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(f){try{return r=f,go(r).then(function(h){try{return i=h[1],vo(i,r.type,r.name,r.lastModified).then(function(g){try{return n=g,rr(i),go(n).then(function(p){try{return s=p[0],xi.cachedResult=s.width===1&&s.height===2,a(xi.cachedResult)}catch(u){return t(u)}},t)}catch(p){return t(p)}},t)}catch(g){return t(g)}},t)}catch(h){return t(h)}},t))})}function zf(a){return new Promise((t,e)=>{const r=new Bf;r.onload=i=>{const n=new DataView(i.target.result);if(n.getUint16(0,!1)!=65496)return t(-2);const s=n.byteLength;let f=2;for(;f<s;){if(n.getUint16(f+2,!1)<=8)return t(-1);const h=n.getUint16(f,!1);if(f+=2,h==65505){if(n.getUint32(f+=2,!1)!=1165519206)return t(-1);const g=n.getUint16(f+=6,!1)==18761;f+=n.getUint32(f+4,g);const p=n.getUint16(f,g);f+=2;for(let u=0;u<p;u++)if(n.getUint16(f+12*u,g)==274)return t(n.getUint16(f+12*u+8,g))}else{if((65280&h)!=65280)break;f+=n.getUint16(f,!1)}}return t(-1)},r.onerror=i=>e(i),r.readAsArrayBuffer(a)})}function Mf(a,t){const{width:e}=a,{height:r}=a,{maxWidthOrHeight:i}=t;let n,s=a;return isFinite(i)&&(e>i||r>i)&&([s,n]=co(e,r),e>r?(s.width=i,s.height=r/e*i):(s.width=e/r*i,s.height=i),n.drawImage(a,0,0,s.width,s.height),rr(a)),s}function Uf(a,t){const{width:e}=a,{height:r}=a,[i,n]=co(e,r);switch(t>4&&t<9?(i.width=r,i.height=e):(i.width=e,i.height=r),t){case 2:n.transform(-1,0,0,1,e,0);break;case 3:n.transform(-1,0,0,-1,e,r);break;case 4:n.transform(1,0,0,-1,0,r);break;case 5:n.transform(0,1,1,0,0,0);break;case 6:n.transform(0,1,-1,0,r,0);break;case 7:n.transform(0,-1,-1,0,r,e);break;case 8:n.transform(0,-1,1,0,0,e)}return n.drawImage(a,0,0,e,r),rr(a),i}function qf(a,t,e){return e===void 0&&(e=0),new Promise(function(r,i){let n,s,f,h,g,p,u,c,l,m,A,C,L,D,k,O,_,R,V,N;function j(S){if(S===void 0&&(S=5),t.signal&&t.signal.aborted)throw t.signal.reason;n+=S,t.onProgress(Math.min(n,100))}function v(S){if(t.signal&&t.signal.aborted)throw t.signal.reason;n=Math.min(Math.max(S,n),100),t.onProgress(n)}return n=e,s=t.maxIteration||10,f=1024*t.maxSizeMB*1024,j(),go(a,t).then((function(S){try{return[,h]=S,j(),g=Mf(h,t),j(),new Promise(function(x,y){var F;if(!(F=t.exifOrientation))return zf(a).then((function(E){try{return F=E,Y.call(this)}catch(T){return y(T)}}).bind(this),y);function Y(){return x(F)}return Y.call(this)}).then((function(x){try{return p=x,j(),xi().then((function(y){try{return u=y?g:Uf(g,p),j(),c=t.initialQuality||1,l=t.fileType||a.type,vo(u,l,a.name,a.lastModified,c).then((function(F){try{{let Q=function(){if(s--&&(k>f||k>L)){let B,tt;return B=N?.95*V.width:V.width,tt=N?.95*V.height:V.height,[_,R]=co(B,tt),R.drawImage(V,0,0,B,tt),c*=l==="image/png"?.85:.95,vo(_,l,a.name,a.lastModified,c).then(function(P){try{return O=P,rr(V),V=_,k=O.size,v(Math.min(99,Math.floor((D-k)/(D-f)*100))),Q}catch(q){return i(q)}},i)}return[1]},J=function(){return rr(V),rr(_),rr(g),rr(u),rr(h),v(100),r(O)};var E=Q,T=J;if(m=F,j(),A=m.size>f,C=m.size>a.size,!A&&!C)return v(100),r(m);var Y;return L=a.size,D=m.size,k=D,V=u,N=!t.alwaysKeepResolution&&A,(Y=(function(B){for(;B;){if(B.then)return void B.then(Y,i);try{if(B.pop){if(B.length)return B.pop()?J.call(this):B;B=Q}else B=B.call(this)}catch(tt){return i(tt)}}}).bind(this))(Q)}}catch(Q){return i(Q)}}).bind(this),i)}catch(F){return i(F)}}).bind(this),i)}catch(y){return i(y)}}).bind(this),i)}catch(x){return i(x)}}).bind(this),i)})}const yh="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let js;function wh(a,t){return new Promise((e,r)=>{js||(js=function(s){const f=[];return typeof s=="function"?f.push("("+s+")()"):f.push(s),URL.createObjectURL(new Blob(f))}(yh));const i=new Worker(js);i.addEventListener("message",function(s){if(t.signal&&t.signal.aborted)i.terminate();else if(s.data.progress===void 0){if(s.data.error)return r(new Error(s.data.error)),void i.terminate();e(s.data.file),i.terminate()}else t.onProgress(s.data.progress)}),i.addEventListener("error",r),t.signal&&t.signal.addEventListener("abort",()=>{r(t.signal.reason),i.terminate()}),i.postMessage({file:a,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function on(a,t){return new Promise(function(e,r){let i,n,s,f,h,g;if(i={...t},s=0,{onProgress:f}=i,i.maxSizeMB=i.maxSizeMB||Number.POSITIVE_INFINITY,h=typeof i.useWebWorker!="boolean"||i.useWebWorker,delete i.useWebWorker,i.onProgress=l=>{s=l,typeof f=="function"&&f(s)},!(a instanceof Blob||a instanceof bh))return r(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(a.type))return r(new Error("The file given is not an image"));if(g=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!h||typeof Worker!="function"||g)return qf(a,i).then((function(l){try{return n=l,c.call(this)}catch(m){return r(m)}}).bind(this),r);var p=(function(){try{return c.call(this)}catch(l){return r(l)}}).bind(this),u=function(l){try{return qf(a,i).then(function(m){try{return n=m,p()}catch(A){return r(A)}},r)}catch(m){return r(m)}};try{return i.libURL=i.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",wh(a,i).then(function(l){try{return n=l,p()}catch(m){return u()}},u)}catch(l){u()}function c(){try{n.name=a.name,n.lastModified=a.lastModified}catch(l){}try{i.preserveExif&&a.type==="image/jpeg"&&(!i.fileType||i.fileType&&i.fileType===a.type)&&(n=Ff(a,n))}catch(l){}return e(n)}})}on.getDataUrlFromFile=Df,on.getFilefromDataUrl=Ts,on.loadImage=Tf,on.drawImageInCanvas=Rf,on.drawFileInCanvas=go,on.canvasToFile=vo,on.getExifOrientation=zf,on.handleMaxWidthOrHeight=Mf,on.followExifOrientation=Uf,on.cleanupCanvasMemory=rr,on.isAutoOrientationInBrowser=xi,on.approximateBelowMaximumCanvasSizeOfBrowser=jf,on.copyExifWithoutOrientation=Ff,on.getBrowserName=Qr,on.version="2.0.2"}}]);
//# sourceMappingURL=lazy-lib-dl-0ea48090ca0ce65e4d98.js.map