@ianicdev/datatables2 0.8.5 → 0.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dataTables-BOwvt8w7.js → dataTables-BYlttZLV.js} +350 -347
- package/dist/dataTables-DGgobN8X.cjs +4 -0
- package/dist/datatables2.css +1 -0
- package/dist/index-CGkK9KsF.js +41088 -0
- package/dist/index-JHYtCAp7.cjs +357 -0
- package/dist/index.cjs +1 -0
- package/dist/{index.es-DUsc-TdR.cjs → index.es-CznHZIM6.cjs} +6 -6
- package/dist/{index.es-Bzj9GCv8.js → index.es-DX6YPV4t.js} +3 -4
- package/dist/index.js +6 -0
- package/package.json +9 -9
- package/dist/dataTables-B4eEvOoG.cjs +0 -4
- package/dist/datatables.cjs +0 -1
- package/dist/datatables.css +0 -1
- package/dist/datatables.js +0 -8
- package/dist/exporttocsv-CUWOZ1Z_.js +0 -88
- package/dist/exporttocsv-RZvZEhmM.cjs +0 -6
- package/dist/filesaver-Deatpm3H.cjs +0 -1
- package/dist/filesaver-K4_fCr7v.js +0 -75
- package/dist/index-BDjxEH7H.js +0 -12137
- package/dist/index-DTvYd6IO.cjs +0 -27
- package/dist/jspdf-BF1VF7Ex.cjs +0 -194
- package/dist/jspdf-VsfW7tvh.js +0 -10979
- package/dist/printjs-BbgDICDe.cjs +0 -1
- package/dist/printjs-kC3Qmb-l.js +0 -689
- package/dist/sortablejs-BhPwT7wS.cjs +0 -6
- package/dist/sortablejs-DSHM8iDp.js +0 -1260
- package/dist/xlsx-BBXALOAs.cjs +0 -128
- package/dist/xlsx-vtl6oPEm.js +0 -15887
package/dist/jspdf-BF1VF7Ex.cjs
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";function me(r){"@babel/helpers - typeof";return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},me(r)}var Qr=Uint8Array,Br=Uint16Array,tl=Int32Array,el=new Qr([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]),rl=new Qr([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]),Jl=new Qr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),gh=function(r,t){for(var e=new Br(31),n=0;n<31;++n)e[n]=t+=1<<r[n-1];for(var a=new tl(e[30]),n=1;n<30;++n)for(var i=e[n];i<e[n+1];++i)a[i]=i-e[n]<<5|n;return{b:e,r:a}},vh=gh(el,2),ac=vh.b,qs=vh.r;ac[28]=258,qs[258]=28;var oc=gh(rl,0),Kl=oc.r,Us=new Br(32768);for(var Ie=0;Ie<32768;++Ie){var $n=(Ie&43690)>>1|(Ie&21845)<<1;$n=($n&52428)>>2|($n&13107)<<2,$n=($n&61680)>>4|($n&3855)<<4,Us[Ie]=(($n&65280)>>8|($n&255)<<8)>>1}var Ca=(function(r,t,e){for(var n=r.length,a=0,i=new Br(t);a<n;++a)r[a]&&++i[r[a]-1];var h=new Br(t);for(a=1;a<t;++a)h[a]=h[a-1]+i[a-1]<<1;var l;if(e){l=new Br(1<<t);var u=15-t;for(a=0;a<n;++a)if(r[a])for(var f=a<<4|r[a],p=t-r[a],y=h[r[a]-1]++<<p,x=y|(1<<p)-1;y<=x;++y)l[Us[y]>>u]=f}else for(l=new Br(n),a=0;a<n;++a)r[a]&&(l[a]=Us[h[r[a]-1]++]>>15-r[a]);return l}),wi=new Qr(288);for(var Ie=0;Ie<144;++Ie)wi[Ie]=8;for(var Ie=144;Ie<256;++Ie)wi[Ie]=9;for(var Ie=256;Ie<280;++Ie)wi[Ie]=7;for(var Ie=280;Ie<288;++Ie)wi[Ie]=8;var So=new Qr(32);for(var Ie=0;Ie<32;++Ie)So[Ie]=5;var sc=Ca(wi,9,0),lc=Ca(So,5,0),mh=function(r){return(r+7)/8|0},uc=function(r,t,e){return(e==null||e>r.length)&&(e=r.length),new Qr(r.subarray(t,e))},In=function(r,t,e){e<<=t&7;var n=t/8|0;r[n]|=e,r[n+1]|=e>>8},ka=function(r,t,e){e<<=t&7;var n=t/8|0;r[n]|=e,r[n+1]|=e>>8,r[n+2]|=e>>16},gs=function(r,t){for(var e=[],n=0;n<r.length;++n)r[n]&&e.push({s:n,f:r[n]});var a=e.length,i=e.slice();if(!a)return{t:yh,l:0};if(a==1){var h=new Qr(e[0].s+1);return h[e[0].s]=1,{t:h,l:1}}e.sort(function(at,mt){return at.f-mt.f}),e.push({s:-1,f:25001});var l=e[0],u=e[1],f=0,p=1,y=2;for(e[0]={s:-1,f:l.f+u.f,l,r:u};p!=a-1;)l=e[e[f].f<e[y].f?f++:y++],u=e[f!=p&&e[f].f<e[y].f?f++:y++],e[p++]={s:-1,f:l.f+u.f,l,r:u};for(var x=i[0].s,n=1;n<a;++n)i[n].s>x&&(x=i[n].s);var g=new Br(x+1),P=zs(e[p-1],g,0);if(P>t){var n=0,C=0,j=P-t,S=1<<j;for(i.sort(function(mt,ot){return g[ot.s]-g[mt.s]||mt.f-ot.f});n<a;++n){var W=i[n].s;if(g[W]>t)C+=S-(1<<P-g[W]),g[W]=t;else break}for(C>>=j;C>0;){var z=i[n].s;g[z]<t?C-=1<<t-g[z]++-1:++n}for(;n>=0&&C;--n){var M=i[n].s;g[M]==t&&(--g[M],++C)}P=t}return{t:new Qr(g),l:P}},zs=function(r,t,e){return r.s==-1?Math.max(zs(r.l,t,e+1),zs(r.r,t,e+1)):t[r.s]=e},$l=function(r){for(var t=r.length;t&&!r[--t];);for(var e=new Br(++t),n=0,a=r[0],i=1,h=function(u){e[n++]=u},l=1;l<=t;++l)if(r[l]==a&&l!=t)++i;else{if(!a&&i>2){for(;i>138;i-=138)h(32754);i>2&&(h(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(h(a),--i;i>6;i-=6)h(8304);i>2&&(h(i-3<<5|8208),i=0)}for(;i--;)h(a);i=1,a=r[l]}return{c:e.subarray(0,n),n:t}},Pa=function(r,t){for(var e=0,n=0;n<t.length;++n)e+=r[n]*t[n];return e},bh=function(r,t,e){var n=e.length,a=mh(t+2);r[a]=n&255,r[a+1]=n>>8,r[a+2]=r[a]^255,r[a+3]=r[a+1]^255;for(var i=0;i<n;++i)r[a+i+4]=e[i];return(a+4+n)*8},Xl=function(r,t,e,n,a,i,h,l,u,f,p){In(t,p++,e),++a[256];for(var y=gs(a,15),x=y.t,g=y.l,P=gs(i,15),C=P.t,j=P.l,S=$l(x),W=S.c,z=S.n,M=$l(C),at=M.c,mt=M.n,ot=new Br(19),$=0;$<W.length;++$)++ot[W[$]&31];for(var $=0;$<at.length;++$)++ot[at[$]&31];for(var T=gs(ot,7),et=T.t,L=T.l,O=19;O>4&&!et[Jl[O-1]];--O);var G=f+5<<3,U=Pa(a,wi)+Pa(i,So)+h,nt=Pa(a,x)+Pa(i,C)+h+14+3*O+Pa(ot,et)+2*ot[16]+3*ot[17]+7*ot[18];if(u>=0&&G<=U&&G<=nt)return bh(t,p,r.subarray(u,u+f));var ht,dt,rt,ft;if(In(t,p,1+(nt<U)),p+=2,nt<U){ht=Ca(x,g,0),dt=x,rt=Ca(C,j,0),ft=C;var Nt=Ca(et,L,0);In(t,p,z-257),In(t,p+5,mt-1),In(t,p+10,O-4),p+=14;for(var $=0;$<O;++$)In(t,p+3*$,et[Jl[$]]);p+=3*O;for(var wt=[W,at],_=0;_<2;++_)for(var B=wt[_],$=0;$<B.length;++$){var R=B[$]&31;In(t,p,Nt[R]),p+=et[R],R>15&&(In(t,p,B[$]>>5&127),p+=B[$]>>12)}}else ht=sc,dt=wi,rt=lc,ft=So;for(var $=0;$<l;++$){var V=n[$];if(V>255){var R=V>>18&31;ka(t,p,ht[R+257]),p+=dt[R+257],R>7&&(In(t,p,V>>23&31),p+=el[R]);var J=V&31;ka(t,p,rt[J]),p+=ft[J],J>3&&(ka(t,p,V>>5&8191),p+=rl[J])}else ka(t,p,ht[V]),p+=dt[V]}return ka(t,p,ht[256]),p+dt[256]},hc=new tl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),yh=new Qr(0),fc=function(r,t,e,n,a,i){var h=i.z||r.length,l=new Qr(n+h+5*(1+Math.ceil(h/7e3))+a),u=l.subarray(n,l.length-a),f=i.l,p=(i.r||0)&7;if(t){p&&(u[0]=i.r>>3);for(var y=hc[t-1],x=y>>13,g=y&8191,P=(1<<e)-1,C=i.p||new Br(32768),j=i.h||new Br(P+1),S=Math.ceil(e/3),W=2*S,z=function(st){return(r[st]^r[st+1]<<S^r[st+2]<<W)&P},M=new tl(25e3),at=new Br(288),mt=new Br(32),ot=0,$=0,T=i.i||0,et=0,L=i.w||0,O=0;T+2<h;++T){var G=z(T),U=T&32767,nt=j[G];if(C[U]=nt,j[G]=U,L<=T){var ht=h-T;if((ot>7e3||et>24576)&&(ht>423||!f)){p=Xl(r,u,0,M,at,mt,$,et,O,T-O,p),et=ot=$=0,O=T;for(var dt=0;dt<286;++dt)at[dt]=0;for(var dt=0;dt<30;++dt)mt[dt]=0}var rt=2,ft=0,Nt=g,wt=U-nt&32767;if(ht>2&&G==z(T-wt))for(var _=Math.min(x,ht)-1,B=Math.min(32767,T),R=Math.min(258,ht);wt<=B&&--Nt&&U!=nt;){if(r[T+rt]==r[T+rt-wt]){for(var V=0;V<R&&r[T+V]==r[T+V-wt];++V);if(V>rt){if(rt=V,ft=wt,V>_)break;for(var J=Math.min(wt,V-2),Z=0,dt=0;dt<J;++dt){var lt=T-wt+dt&32767,it=C[lt],vt=lt-it&32767;vt>Z&&(Z=vt,nt=lt)}}}U=nt,nt=C[U],wt+=U-nt&32767}if(ft){M[et++]=268435456|qs[rt]<<18|Kl[ft];var _t=qs[rt]&31,kt=Kl[ft]&31;$+=el[_t]+rl[kt],++at[257+_t],++mt[kt],L=T+rt,++ot}else M[et++]=r[T],++at[r[T]]}}for(T=Math.max(T,L);T<h;++T)M[et++]=r[T],++at[r[T]];p=Xl(r,u,f,M,at,mt,$,et,O,T-O,p),f||(i.r=p&7|u[p/8|0]<<3,p-=7,i.h=j,i.p=C,i.i=T,i.w=L)}else{for(var T=i.w||0;T<h+f;T+=65535){var Pt=T+65535;Pt>=h&&(u[p/8|0]=f,Pt=h),p=bh(u,p+1,r.subarray(T,Pt))}i.i=h}return uc(l,0,n+mh(p)+a)},wh=function(){var r=1,t=0;return{p:function(e){for(var n=r,a=t,i=e.length|0,h=0;h!=i;){for(var l=Math.min(h+2655,i);h<l;++h)a+=n+=e[h];n=(n&65535)+15*(n>>16),a=(a&65535)+15*(a>>16)}r=n,t=a},d:function(){return r%=65521,t%=65521,(r&255)<<24|(r&65280)<<8|(t&255)<<8|t>>8}}},cc=function(r,t,e,n,a){if(!a&&(a={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),h=new Qr(i.length+r.length);h.set(i),h.set(r,i.length),r=h,a.w=i.length}return fc(r,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+t.mem,e,n,a)},xh=function(r,t,e){for(;e;++t)r[t]=e,e>>>=8},dc=function(r,t){var e=t.level,n=e==0?0:e<6?1:e==9?3:2;if(r[0]=120,r[1]=n<<6|(t.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,t.dictionary){var a=wh();a.p(t.dictionary),xh(r,2,a.d())}};function Hs(r,t){t||(t={});var e=wh();e.p(r);var n=cc(r,t,t.dictionary?6:2,4);return dc(n,t),xh(n,n.length-4,e.d()),n}var pc=typeof TextDecoder<"u"&&new TextDecoder,gc=0;try{pc.decode(yh,{stream:!0}),gc=1}catch{}function vc(r){if(Array.isArray(r))return r}function mc(r,t){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var n,a,i,h,l=[],u=!0,f=!1;try{if(i=(e=e.call(r)).next,t!==0)for(;!(u=(n=i.call(e)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(p){f=!0,a=p}finally{try{if(!u&&e.return!=null&&(h=e.return(),Object(h)!==h))return}finally{if(f)throw a}}return l}}function Zl(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=Array(t);e<t;e++)n[e]=r[e];return n}function bc(r,t){if(r){if(typeof r=="string")return Zl(r,t);var e={}.toString.call(r).slice(8,-1);return e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set"?Array.from(r):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Zl(r,t):void 0}}function yc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ql(r,t){return vc(r)||mc(r,t)||bc(r,t)||yc()}function tu(r,t="utf8"){return new TextDecoder(t).decode(r)}const wc=new TextEncoder;function xc(r){return wc.encode(r)}const Ac=1024*8,_c=(()=>{const r=new Uint8Array(4),t=new Uint32Array(r.buffer);return!((t[0]=1)&r[0])})(),vs={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class nl{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=Ac,e={}){let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const a=e.offset?e.offset>>>0:0,i=t.byteLength-a;let h=a;(ArrayBuffer.isView(t)||t instanceof nl)&&(t.byteLength!==t.buffer.byteLength&&(h=t.byteOffset+a),t=t.buffer),n?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=h,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,h,i),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,a=new Uint8Array(n);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,e){const n=vs[e].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,i=this.buffer.slice(a,a+n);if(this.littleEndian===_c&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(a,a+n));l.reverse();const u=new vs[e](l.buffer);return this.offset+=n,u.reverse(),u}const h=new vs[e](i);return this.offset+=n,h}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let n=0;n<t;n++)e+=this.readChar();return e}readUtf8(t=1){return tu(this.readBytes(t))}decodeText(t=1,e="utf8"){return tu(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(xc(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Zi(r){let t=r.length;for(;--t>=0;)r[t]=0}const Nc=3,Lc=258,Ah=29,Sc=256,kc=Sc+1+Ah,_h=30,Pc=512,Cc=new Array((kc+2)*2);Zi(Cc);const Fc=new Array(_h*2);Zi(Fc);const Ic=new Array(Pc);Zi(Ic);const Ec=new Array(Lc-Nc+1);Zi(Ec);const Oc=new Array(Ah);Zi(Oc);const jc=new Array(_h);Zi(jc);const Bc=(r,t,e,n)=>{let a=r&65535|0,i=r>>>16&65535|0,h=0;for(;e!==0;){h=e>2e3?2e3:e,e-=h;do a=a+t[n++]|0,i=i+a|0;while(--h);a%=65521,i%=65521}return a|i<<16|0};var Ws=Bc;const Dc=()=>{let r,t=[];for(var e=0;e<256;e++){r=e;for(var n=0;n<8;n++)r=r&1?3988292384^r>>>1:r>>>1;t[e]=r}return t},Rc=new Uint32Array(Dc()),Tc=(r,t,e,n)=>{const a=Rc,i=n+e;r^=-1;for(let h=n;h<i;h++)r=r>>>8^a[(r^t[h])&255];return r^-1};var dn=Tc,Gs={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"},Nh={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Mc=(r,t)=>Object.prototype.hasOwnProperty.call(r,t);var qc=function(r){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const n in e)Mc(e,n)&&(r[n]=e[n])}}return r},Uc=r=>{let t=0;for(let n=0,a=r.length;n<a;n++)t+=r[n].length;const e=new Uint8Array(t);for(let n=0,a=0,i=r.length;n<i;n++){let h=r[n];e.set(h,a),a+=h.length}return e},Lh={assign:qc,flattenChunks:Uc};let Sh=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Sh=!1}const Ea=new Uint8Array(256);for(let r=0;r<256;r++)Ea[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;Ea[254]=Ea[254]=1;var zc=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let t,e,n,a,i,h=r.length,l=0;for(a=0;a<h;a++)e=r.charCodeAt(a),(e&64512)===55296&&a+1<h&&(n=r.charCodeAt(a+1),(n&64512)===56320&&(e=65536+(e-55296<<10)+(n-56320),a++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(l),i=0,a=0;i<l;a++)e=r.charCodeAt(a),(e&64512)===55296&&a+1<h&&(n=r.charCodeAt(a+1),(n&64512)===56320&&(e=65536+(e-55296<<10)+(n-56320),a++)),e<128?t[i++]=e:e<2048?(t[i++]=192|e>>>6,t[i++]=128|e&63):e<65536?(t[i++]=224|e>>>12,t[i++]=128|e>>>6&63,t[i++]=128|e&63):(t[i++]=240|e>>>18,t[i++]=128|e>>>12&63,t[i++]=128|e>>>6&63,t[i++]=128|e&63);return t};const Hc=(r,t)=>{if(t<65534&&r.subarray&&Sh)return String.fromCharCode.apply(null,r.length===t?r:r.subarray(0,t));let e="";for(let n=0;n<t;n++)e+=String.fromCharCode(r[n]);return e};var Wc=(r,t)=>{const e=t||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,t));let n,a;const i=new Array(e*2);for(a=0,n=0;n<e;){let h=r[n++];if(h<128){i[a++]=h;continue}let l=Ea[h];if(l>4){i[a++]=65533,n+=l-1;continue}for(h&=l===2?31:l===3?15:7;l>1&&n<e;)h=h<<6|r[n++]&63,l--;if(l>1){i[a++]=65533;continue}h<65536?i[a++]=h:(h-=65536,i[a++]=55296|h>>10&1023,i[a++]=56320|h&1023)}return Hc(i,a)},Gc=(r,t)=>{t=t||r.length,t>r.length&&(t=r.length);let e=t-1;for(;e>=0&&(r[e]&192)===128;)e--;return e<0||e===0?t:e+Ea[r[e]]>t?e:t},Vs={string2buf:zc,buf2string:Wc,utf8border:Gc};function Vc(){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}var Yc=Vc;const ho=16209,Jc=16191;var Kc=function(t,e){let n,a,i,h,l,u,f,p,y,x,g,P,C,j,S,W,z,M,at,mt,ot,$,T,et;const L=t.state;n=t.next_in,T=t.input,a=n+(t.avail_in-5),i=t.next_out,et=t.output,h=i-(e-t.avail_out),l=i+(t.avail_out-257),u=L.dmax,f=L.wsize,p=L.whave,y=L.wnext,x=L.window,g=L.hold,P=L.bits,C=L.lencode,j=L.distcode,S=(1<<L.lenbits)-1,W=(1<<L.distbits)-1;t:do{P<15&&(g+=T[n++]<<P,P+=8,g+=T[n++]<<P,P+=8),z=C[g&S];e:for(;;){if(M=z>>>24,g>>>=M,P-=M,M=z>>>16&255,M===0)et[i++]=z&65535;else if(M&16){at=z&65535,M&=15,M&&(P<M&&(g+=T[n++]<<P,P+=8),at+=g&(1<<M)-1,g>>>=M,P-=M),P<15&&(g+=T[n++]<<P,P+=8,g+=T[n++]<<P,P+=8),z=j[g&W];r:for(;;){if(M=z>>>24,g>>>=M,P-=M,M=z>>>16&255,M&16){if(mt=z&65535,M&=15,P<M&&(g+=T[n++]<<P,P+=8,P<M&&(g+=T[n++]<<P,P+=8)),mt+=g&(1<<M)-1,mt>u){t.msg="invalid distance too far back",L.mode=ho;break t}if(g>>>=M,P-=M,M=i-h,mt>M){if(M=mt-M,M>p&&L.sane){t.msg="invalid distance too far back",L.mode=ho;break t}if(ot=0,$=x,y===0){if(ot+=f-M,M<at){at-=M;do et[i++]=x[ot++];while(--M);ot=i-mt,$=et}}else if(y<M){if(ot+=f+y-M,M-=y,M<at){at-=M;do et[i++]=x[ot++];while(--M);if(ot=0,y<at){M=y,at-=M;do et[i++]=x[ot++];while(--M);ot=i-mt,$=et}}}else if(ot+=y-M,M<at){at-=M;do et[i++]=x[ot++];while(--M);ot=i-mt,$=et}for(;at>2;)et[i++]=$[ot++],et[i++]=$[ot++],et[i++]=$[ot++],at-=3;at&&(et[i++]=$[ot++],at>1&&(et[i++]=$[ot++]))}else{ot=i-mt;do et[i++]=et[ot++],et[i++]=et[ot++],et[i++]=et[ot++],at-=3;while(at>2);at&&(et[i++]=et[ot++],at>1&&(et[i++]=et[ot++]))}}else if((M&64)===0){z=j[(z&65535)+(g&(1<<M)-1)];continue r}else{t.msg="invalid distance code",L.mode=ho;break t}break}}else if((M&64)===0){z=C[(z&65535)+(g&(1<<M)-1)];continue e}else if(M&32){L.mode=Jc;break t}else{t.msg="invalid literal/length code",L.mode=ho;break t}break}}while(n<a&&i<l);at=P>>3,n-=at,P-=at<<3,g&=(1<<P)-1,t.next_in=n,t.next_out=i,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=i<l?257+(l-i):257-(i-l),L.hold=g,L.bits=P};const Ui=15,eu=852,ru=592,nu=0,ms=1,iu=2,$c=new Uint16Array([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]),Xc=new Uint8Array([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]),Zc=new Uint16Array([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]),Qc=new Uint8Array([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]),t1=(r,t,e,n,a,i,h,l)=>{const u=l.bits;let f=0,p=0,y=0,x=0,g=0,P=0,C=0,j=0,S=0,W=0,z,M,at,mt,ot,$=null,T;const et=new Uint16Array(Ui+1),L=new Uint16Array(Ui+1);let O=null,G,U,nt;for(f=0;f<=Ui;f++)et[f]=0;for(p=0;p<n;p++)et[t[e+p]]++;for(g=u,x=Ui;x>=1&&et[x]===0;x--);if(g>x&&(g=x),x===0)return a[i++]=1<<24|64<<16|0,a[i++]=1<<24|64<<16|0,l.bits=1,0;for(y=1;y<x&&et[y]===0;y++);for(g<y&&(g=y),j=1,f=1;f<=Ui;f++)if(j<<=1,j-=et[f],j<0)return-1;if(j>0&&(r===nu||x!==1))return-1;for(L[1]=0,f=1;f<Ui;f++)L[f+1]=L[f]+et[f];for(p=0;p<n;p++)t[e+p]!==0&&(h[L[t[e+p]]++]=p);if(r===nu?($=O=h,T=20):r===ms?($=$c,O=Xc,T=257):($=Zc,O=Qc,T=0),W=0,p=0,f=y,ot=i,P=g,C=0,at=-1,S=1<<g,mt=S-1,r===ms&&S>eu||r===iu&&S>ru)return 1;for(;;){G=f-C,h[p]+1<T?(U=0,nt=h[p]):h[p]>=T?(U=O[h[p]-T],nt=$[h[p]-T]):(U=96,nt=0),z=1<<f-C,M=1<<P,y=M;do M-=z,a[ot+(W>>C)+M]=G<<24|U<<16|nt|0;while(M!==0);for(z=1<<f-1;W&z;)z>>=1;if(z!==0?(W&=z-1,W+=z):W=0,p++,--et[f]===0){if(f===x)break;f=t[e+h[p]]}if(f>g&&(W&mt)!==at){for(C===0&&(C=g),ot+=y,P=f-C,j=1<<P;P+C<x&&(j-=et[P+C],!(j<=0));)P++,j<<=1;if(S+=1<<P,r===ms&&S>eu||r===iu&&S>ru)return 1;at=W&mt,a[at]=g<<24|P<<16|ot-i|0}}return W!==0&&(a[ot+W]=f-C<<24|64<<16|0),l.bits=g,0};var Fa=t1;const e1=0,kh=1,Ph=2,{Z_FINISH:au,Z_BLOCK:r1,Z_TREES:fo,Z_OK:xi,Z_STREAM_END:n1,Z_NEED_DICT:i1,Z_STREAM_ERROR:Hr,Z_DATA_ERROR:Ch,Z_MEM_ERROR:Fh,Z_BUF_ERROR:a1,Z_DEFLATED:ou}=Nh,Eo=16180,su=16181,lu=16182,uu=16183,hu=16184,fu=16185,cu=16186,du=16187,pu=16188,gu=16189,ko=16190,En=16191,bs=16192,vu=16193,ys=16194,mu=16195,bu=16196,yu=16197,wu=16198,co=16199,po=16200,xu=16201,Au=16202,_u=16203,Nu=16204,Lu=16205,ws=16206,Su=16207,ku=16208,Ee=16209,Ih=16210,Eh=16211,o1=852,s1=592,l1=15,u1=l1,Pu=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function h1(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ai=r=>{if(!r)return 1;const t=r.state;return!t||t.strm!==r||t.mode<Eo||t.mode>Eh?1:0},Oh=r=>{if(Ai(r))return Hr;const t=r.state;return r.total_in=r.total_out=t.total=0,r.msg="",t.wrap&&(r.adler=t.wrap&1),t.mode=Eo,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(o1),t.distcode=t.distdyn=new Int32Array(s1),t.sane=1,t.back=-1,xi},jh=r=>{if(Ai(r))return Hr;const t=r.state;return t.wsize=0,t.whave=0,t.wnext=0,Oh(r)},Bh=(r,t)=>{let e;if(Ai(r))return Hr;const n=r.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Hr:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=e,n.wbits=t,jh(r))},Dh=(r,t)=>{if(!r)return Hr;const e=new h1;r.state=e,e.strm=r,e.window=null,e.mode=Eo;const n=Bh(r,t);return n!==xi&&(r.state=null),n},f1=r=>Dh(r,u1);let Cu=!0,xs,As;const c1=r=>{if(Cu){xs=new Int32Array(512),As=new Int32Array(32);let t=0;for(;t<144;)r.lens[t++]=8;for(;t<256;)r.lens[t++]=9;for(;t<280;)r.lens[t++]=7;for(;t<288;)r.lens[t++]=8;for(Fa(kh,r.lens,0,288,xs,0,r.work,{bits:9}),t=0;t<32;)r.lens[t++]=5;Fa(Ph,r.lens,0,32,As,0,r.work,{bits:5}),Cu=!1}r.lencode=xs,r.lenbits=9,r.distcode=As,r.distbits=5},Rh=(r,t,e,n)=>{let a;const i=r.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),n>=i.wsize?(i.window.set(t.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(a=i.wsize-i.wnext,a>n&&(a=n),i.window.set(t.subarray(e-n,e-n+a),i.wnext),n-=a,n?(i.window.set(t.subarray(e-n,e),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0},d1=(r,t)=>{let e,n,a,i,h,l,u,f,p,y,x,g,P,C,j=0,S,W,z,M,at,mt,ot,$;const T=new Uint8Array(4);let et,L;const O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ai(r)||!r.output||!r.input&&r.avail_in!==0)return Hr;e=r.state,e.mode===En&&(e.mode=bs),h=r.next_out,a=r.output,u=r.avail_out,i=r.next_in,n=r.input,l=r.avail_in,f=e.hold,p=e.bits,y=l,x=u,$=xi;t:for(;;)switch(e.mode){case Eo:if(e.wrap===0){e.mode=bs;break}for(;p<16;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(e.wrap&2&&f===35615){e.wbits===0&&(e.wbits=15),e.check=0,T[0]=f&255,T[1]=f>>>8&255,e.check=dn(e.check,T,2,0),f=0,p=0,e.mode=su;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((f&255)<<8)+(f>>8))%31){r.msg="incorrect header check",e.mode=Ee;break}if((f&15)!==ou){r.msg="unknown compression method",e.mode=Ee;break}if(f>>>=4,p-=4,ot=(f&15)+8,e.wbits===0&&(e.wbits=ot),ot>15||ot>e.wbits){r.msg="invalid window size",e.mode=Ee;break}e.dmax=1<<e.wbits,e.flags=0,r.adler=e.check=1,e.mode=f&512?gu:En,f=0,p=0;break;case su:for(;p<16;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(e.flags=f,(e.flags&255)!==ou){r.msg="unknown compression method",e.mode=Ee;break}if(e.flags&57344){r.msg="unknown header flags set",e.mode=Ee;break}e.head&&(e.head.text=f>>8&1),e.flags&512&&e.wrap&4&&(T[0]=f&255,T[1]=f>>>8&255,e.check=dn(e.check,T,2,0)),f=0,p=0,e.mode=lu;case lu:for(;p<32;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}e.head&&(e.head.time=f),e.flags&512&&e.wrap&4&&(T[0]=f&255,T[1]=f>>>8&255,T[2]=f>>>16&255,T[3]=f>>>24&255,e.check=dn(e.check,T,4,0)),f=0,p=0,e.mode=uu;case uu:for(;p<16;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}e.head&&(e.head.xflags=f&255,e.head.os=f>>8),e.flags&512&&e.wrap&4&&(T[0]=f&255,T[1]=f>>>8&255,e.check=dn(e.check,T,2,0)),f=0,p=0,e.mode=hu;case hu:if(e.flags&1024){for(;p<16;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}e.length=f,e.head&&(e.head.extra_len=f),e.flags&512&&e.wrap&4&&(T[0]=f&255,T[1]=f>>>8&255,e.check=dn(e.check,T,2,0)),f=0,p=0}else e.head&&(e.head.extra=null);e.mode=fu;case fu:if(e.flags&1024&&(g=e.length,g>l&&(g=l),g&&(e.head&&(ot=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(n.subarray(i,i+g),ot)),e.flags&512&&e.wrap&4&&(e.check=dn(e.check,n,g,i)),l-=g,i+=g,e.length-=g),e.length))break t;e.length=0,e.mode=cu;case cu:if(e.flags&2048){if(l===0)break t;g=0;do ot=n[i+g++],e.head&&ot&&e.length<65536&&(e.head.name+=String.fromCharCode(ot));while(ot&&g<l);if(e.flags&512&&e.wrap&4&&(e.check=dn(e.check,n,g,i)),l-=g,i+=g,ot)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=du;case du:if(e.flags&4096){if(l===0)break t;g=0;do ot=n[i+g++],e.head&&ot&&e.length<65536&&(e.head.comment+=String.fromCharCode(ot));while(ot&&g<l);if(e.flags&512&&e.wrap&4&&(e.check=dn(e.check,n,g,i)),l-=g,i+=g,ot)break t}else e.head&&(e.head.comment=null);e.mode=pu;case pu:if(e.flags&512){for(;p<16;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(e.wrap&4&&f!==(e.check&65535)){r.msg="header crc mismatch",e.mode=Ee;break}f=0,p=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),r.adler=e.check=0,e.mode=En;break;case gu:for(;p<32;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}r.adler=e.check=Pu(f),f=0,p=0,e.mode=ko;case ko:if(e.havedict===0)return r.next_out=h,r.avail_out=u,r.next_in=i,r.avail_in=l,e.hold=f,e.bits=p,i1;r.adler=e.check=1,e.mode=En;case En:if(t===r1||t===fo)break t;case bs:if(e.last){f>>>=p&7,p-=p&7,e.mode=ws;break}for(;p<3;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}switch(e.last=f&1,f>>>=1,p-=1,f&3){case 0:e.mode=vu;break;case 1:if(c1(e),e.mode=co,t===fo){f>>>=2,p-=2;break t}break;case 2:e.mode=bu;break;case 3:r.msg="invalid block type",e.mode=Ee}f>>>=2,p-=2;break;case vu:for(f>>>=p&7,p-=p&7;p<32;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if((f&65535)!==(f>>>16^65535)){r.msg="invalid stored block lengths",e.mode=Ee;break}if(e.length=f&65535,f=0,p=0,e.mode=ys,t===fo)break t;case ys:e.mode=mu;case mu:if(g=e.length,g){if(g>l&&(g=l),g>u&&(g=u),g===0)break t;a.set(n.subarray(i,i+g),h),l-=g,i+=g,u-=g,h+=g,e.length-=g;break}e.mode=En;break;case bu:for(;p<14;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(e.nlen=(f&31)+257,f>>>=5,p-=5,e.ndist=(f&31)+1,f>>>=5,p-=5,e.ncode=(f&15)+4,f>>>=4,p-=4,e.nlen>286||e.ndist>30){r.msg="too many length or distance symbols",e.mode=Ee;break}e.have=0,e.mode=yu;case yu:for(;e.have<e.ncode;){for(;p<3;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}e.lens[O[e.have++]]=f&7,f>>>=3,p-=3}for(;e.have<19;)e.lens[O[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,et={bits:e.lenbits},$=Fa(e1,e.lens,0,19,e.lencode,0,e.work,et),e.lenbits=et.bits,$){r.msg="invalid code lengths set",e.mode=Ee;break}e.have=0,e.mode=wu;case wu:for(;e.have<e.nlen+e.ndist;){for(;j=e.lencode[f&(1<<e.lenbits)-1],S=j>>>24,W=j>>>16&255,z=j&65535,!(S<=p);){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(z<16)f>>>=S,p-=S,e.lens[e.have++]=z;else{if(z===16){for(L=S+2;p<L;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(f>>>=S,p-=S,e.have===0){r.msg="invalid bit length repeat",e.mode=Ee;break}ot=e.lens[e.have-1],g=3+(f&3),f>>>=2,p-=2}else if(z===17){for(L=S+3;p<L;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}f>>>=S,p-=S,ot=0,g=3+(f&7),f>>>=3,p-=3}else{for(L=S+7;p<L;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}f>>>=S,p-=S,ot=0,g=11+(f&127),f>>>=7,p-=7}if(e.have+g>e.nlen+e.ndist){r.msg="invalid bit length repeat",e.mode=Ee;break}for(;g--;)e.lens[e.have++]=ot}}if(e.mode===Ee)break;if(e.lens[256]===0){r.msg="invalid code -- missing end-of-block",e.mode=Ee;break}if(e.lenbits=9,et={bits:e.lenbits},$=Fa(kh,e.lens,0,e.nlen,e.lencode,0,e.work,et),e.lenbits=et.bits,$){r.msg="invalid literal/lengths set",e.mode=Ee;break}if(e.distbits=6,e.distcode=e.distdyn,et={bits:e.distbits},$=Fa(Ph,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,et),e.distbits=et.bits,$){r.msg="invalid distances set",e.mode=Ee;break}if(e.mode=co,t===fo)break t;case co:e.mode=po;case po:if(l>=6&&u>=258){r.next_out=h,r.avail_out=u,r.next_in=i,r.avail_in=l,e.hold=f,e.bits=p,Kc(r,x),h=r.next_out,a=r.output,u=r.avail_out,i=r.next_in,n=r.input,l=r.avail_in,f=e.hold,p=e.bits,e.mode===En&&(e.back=-1);break}for(e.back=0;j=e.lencode[f&(1<<e.lenbits)-1],S=j>>>24,W=j>>>16&255,z=j&65535,!(S<=p);){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(W&&(W&240)===0){for(M=S,at=W,mt=z;j=e.lencode[mt+((f&(1<<M+at)-1)>>M)],S=j>>>24,W=j>>>16&255,z=j&65535,!(M+S<=p);){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}f>>>=M,p-=M,e.back+=M}if(f>>>=S,p-=S,e.back+=S,e.length=z,W===0){e.mode=Lu;break}if(W&32){e.back=-1,e.mode=En;break}if(W&64){r.msg="invalid literal/length code",e.mode=Ee;break}e.extra=W&15,e.mode=xu;case xu:if(e.extra){for(L=e.extra;p<L;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}e.length+=f&(1<<e.extra)-1,f>>>=e.extra,p-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Au;case Au:for(;j=e.distcode[f&(1<<e.distbits)-1],S=j>>>24,W=j>>>16&255,z=j&65535,!(S<=p);){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if((W&240)===0){for(M=S,at=W,mt=z;j=e.distcode[mt+((f&(1<<M+at)-1)>>M)],S=j>>>24,W=j>>>16&255,z=j&65535,!(M+S<=p);){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}f>>>=M,p-=M,e.back+=M}if(f>>>=S,p-=S,e.back+=S,W&64){r.msg="invalid distance code",e.mode=Ee;break}e.offset=z,e.extra=W&15,e.mode=_u;case _u:if(e.extra){for(L=e.extra;p<L;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}e.offset+=f&(1<<e.extra)-1,f>>>=e.extra,p-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){r.msg="invalid distance too far back",e.mode=Ee;break}e.mode=Nu;case Nu:if(u===0)break t;if(g=x-u,e.offset>g){if(g=e.offset-g,g>e.whave&&e.sane){r.msg="invalid distance too far back",e.mode=Ee;break}g>e.wnext?(g-=e.wnext,P=e.wsize-g):P=e.wnext-g,g>e.length&&(g=e.length),C=e.window}else C=a,P=h-e.offset,g=e.length;g>u&&(g=u),u-=g,e.length-=g;do a[h++]=C[P++];while(--g);e.length===0&&(e.mode=po);break;case Lu:if(u===0)break t;a[h++]=e.length,u--,e.mode=po;break;case ws:if(e.wrap){for(;p<32;){if(l===0)break t;l--,f|=n[i++]<<p,p+=8}if(x-=u,r.total_out+=x,e.total+=x,e.wrap&4&&x&&(r.adler=e.check=e.flags?dn(e.check,a,x,h-x):Ws(e.check,a,x,h-x)),x=u,e.wrap&4&&(e.flags?f:Pu(f))!==e.check){r.msg="incorrect data check",e.mode=Ee;break}f=0,p=0}e.mode=Su;case Su:if(e.wrap&&e.flags){for(;p<32;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(e.wrap&4&&f!==(e.total&4294967295)){r.msg="incorrect length check",e.mode=Ee;break}f=0,p=0}e.mode=ku;case ku:$=n1;break t;case Ee:$=Ch;break t;case Ih:return Fh;case Eh:default:return Hr}return r.next_out=h,r.avail_out=u,r.next_in=i,r.avail_in=l,e.hold=f,e.bits=p,(e.wsize||x!==r.avail_out&&e.mode<Ee&&(e.mode<ws||t!==au))&&Rh(r,r.output,r.next_out,x-r.avail_out),y-=r.avail_in,x-=r.avail_out,r.total_in+=y,r.total_out+=x,e.total+=x,e.wrap&4&&x&&(r.adler=e.check=e.flags?dn(e.check,a,x,r.next_out-x):Ws(e.check,a,x,r.next_out-x)),r.data_type=e.bits+(e.last?64:0)+(e.mode===En?128:0)+(e.mode===co||e.mode===ys?256:0),(y===0&&x===0||t===au)&&$===xi&&($=a1),$},p1=r=>{if(Ai(r))return Hr;let t=r.state;return t.window&&(t.window=null),r.state=null,xi},g1=(r,t)=>{if(Ai(r))return Hr;const e=r.state;return(e.wrap&2)===0?Hr:(e.head=t,t.done=!1,xi)},v1=(r,t)=>{const e=t.length;let n,a,i;return Ai(r)||(n=r.state,n.wrap!==0&&n.mode!==ko)?Hr:n.mode===ko&&(a=1,a=Ws(a,t,e,0),a!==n.check)?Ch:(i=Rh(r,t,e,e),i?(n.mode=Ih,Fh):(n.havedict=1,xi))};var m1=jh,b1=Bh,y1=Oh,w1=f1,x1=Dh,A1=d1,_1=p1,N1=g1,L1=v1,S1="pako inflate (from Nodeca project)",On={inflateReset:m1,inflateReset2:b1,inflateResetKeep:y1,inflateInit:w1,inflateInit2:x1,inflate:A1,inflateEnd:_1,inflateGetHeader:N1,inflateSetDictionary:L1,inflateInfo:S1};function k1(){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}var P1=k1;const Th=Object.prototype.toString,{Z_NO_FLUSH:C1,Z_FINISH:F1,Z_OK:Oa,Z_STREAM_END:_s,Z_NEED_DICT:Ns,Z_STREAM_ERROR:I1,Z_DATA_ERROR:Fu,Z_MEM_ERROR:E1}=Nh;function ja(r){this.options=Lh.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(r&&r.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Yc,this.strm.avail_out=0;let e=On.inflateInit2(this.strm,t.windowBits);if(e!==Oa)throw new Error(Gs[e]);if(this.header=new P1,On.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Vs.string2buf(t.dictionary):Th.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=On.inflateSetDictionary(this.strm,t.dictionary),e!==Oa)))throw new Error(Gs[e])}ja.prototype.push=function(r,t){const e=this.strm,n=this.options.chunkSize,a=this.options.dictionary;let i,h,l;if(this.ended)return!1;for(t===~~t?h=t:h=t===!0?F1:C1,Th.call(r)==="[object ArrayBuffer]"?e.input=new Uint8Array(r):e.input=r,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(n),e.next_out=0,e.avail_out=n),i=On.inflate(e,h),i===Ns&&a&&(i=On.inflateSetDictionary(e,a),i===Oa?i=On.inflate(e,h):i===Fu&&(i=Ns));e.avail_in>0&&i===_s&&e.state.wrap>0&&r[e.next_in]!==0;)On.inflateReset(e),i=On.inflate(e,h);switch(i){case I1:case Fu:case Ns:case E1:return this.onEnd(i),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||i===_s))if(this.options.to==="string"){let u=Vs.utf8border(e.output,e.next_out),f=e.next_out-u,p=Vs.buf2string(e.output,u);e.next_out=f,e.avail_out=n-f,f&&e.output.set(e.output.subarray(u,u+f),0),this.onData(p)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===Oa&&l===0)){if(i===_s)return i=On.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};ja.prototype.onData=function(r){this.chunks.push(r)};ja.prototype.onEnd=function(r){r===Oa&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Lh.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function O1(r,t){const e=new ja(t);if(e.push(r),e.err)throw e.msg||Gs[e.err];return e.result}var j1=ja,B1=O1,D1={Inflate:j1,inflate:B1};const{Inflate:R1,inflate:T1}=D1;var Iu=R1,M1=T1;const Mh=[];for(let r=0;r<256;r++){let t=r;for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t=t>>>1;Mh[r]=t}const Eu=4294967295;function q1(r,t,e){let n=r;for(let a=0;a<e;a++)n=Mh[(n^t[a])&255]^n>>>8;return n}function U1(r,t){return(q1(Eu,r,t)^Eu)>>>0}function Ou(r,t,e){const n=r.readUint32(),a=U1(new Uint8Array(r.buffer,r.byteOffset+r.offset-t-4,t),t);if(a!==n)throw new Error(`CRC mismatch for chunk ${e}. Expected ${n}, found ${a}`)}function qh(r,t,e){for(let n=0;n<e;n++)t[n]=r[n]}function Uh(r,t,e,n){let a=0;for(;a<n;a++)t[a]=r[a];for(;a<e;a++)t[a]=r[a]+t[a-n]&255}function zh(r,t,e,n){let a=0;if(e.length===0)for(;a<n;a++)t[a]=r[a];else for(;a<n;a++)t[a]=r[a]+e[a]&255}function Hh(r,t,e,n,a){let i=0;if(e.length===0){for(;i<a;i++)t[i]=r[i];for(;i<n;i++)t[i]=r[i]+(t[i-a]>>1)&255}else{for(;i<a;i++)t[i]=r[i]+(e[i]>>1)&255;for(;i<n;i++)t[i]=r[i]+(t[i-a]+e[i]>>1)&255}}function Wh(r,t,e,n,a){let i=0;if(e.length===0){for(;i<a;i++)t[i]=r[i];for(;i<n;i++)t[i]=r[i]+t[i-a]&255}else{for(;i<a;i++)t[i]=r[i]+e[i]&255;for(;i<n;i++)t[i]=r[i]+z1(t[i-a],e[i],e[i-a])&255}}function z1(r,t,e){const n=r+t-e,a=Math.abs(n-r),i=Math.abs(n-t),h=Math.abs(n-e);return a<=i&&a<=h?r:i<=h?t:e}function H1(r,t,e,n,a,i){switch(r){case 0:qh(t,e,a);break;case 1:Uh(t,e,a,i);break;case 2:zh(t,e,n,a);break;case 3:Hh(t,e,n,a,i);break;case 4:Wh(t,e,n,a,i);break;default:throw new Error(`Unsupported filter: ${r}`)}}const W1=new Uint16Array([255]),G1=new Uint8Array(W1.buffer),V1=G1[0]===255;function Y1(r){const{data:t,width:e,height:n,channels:a,depth:i}=r,h=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(i/8)*a,u=new Uint8Array(n*e*l);let f=0;for(let p=0;p<7;p++){const y=h[p],x=Math.ceil((e-y.x)/y.xStep),g=Math.ceil((n-y.y)/y.yStep);if(x<=0||g<=0)continue;const P=x*l,C=new Uint8Array(P);for(let j=0;j<g;j++){const S=t[f++],W=t.subarray(f,f+P);f+=P;const z=new Uint8Array(P);H1(S,W,z,C,P,l),C.set(z);for(let M=0;M<x;M++){const at=y.x+M*y.xStep,mt=y.y+j*y.yStep;if(!(at>=e||mt>=n))for(let ot=0;ot<l;ot++)u[(mt*e+at)*l+ot]=z[M*l+ot]}}}if(i===16){const p=new Uint16Array(u.buffer);if(V1)for(let y=0;y<p.length;y++)p[y]=J1(p[y]);return p}else return u}function J1(r){return(r&255)<<8|r>>8&255}const K1=new Uint16Array([255]),$1=new Uint8Array(K1.buffer),X1=$1[0]===255,Z1=new Uint8Array(0);function ju(r){const{data:t,width:e,height:n,channels:a,depth:i}=r,h=Math.ceil(i/8)*a,l=Math.ceil(i/8*a*e),u=new Uint8Array(n*l);let f=Z1,p=0,y,x;for(let g=0;g<n;g++){switch(y=t.subarray(p+1,p+1+l),x=u.subarray(g*l,(g+1)*l),t[p]){case 0:qh(y,x,l);break;case 1:Uh(y,x,l,h);break;case 2:zh(y,x,f,l);break;case 3:Hh(y,x,f,l,h);break;case 4:Wh(y,x,f,l,h);break;default:throw new Error(`Unsupported filter: ${t[p]}`)}f=x,p+=l+1}if(i===16){const g=new Uint16Array(u.buffer);if(X1)for(let P=0;P<g.length;P++)g[P]=Q1(g[P]);return g}else return u}function Q1(r){return(r&255)<<8|r>>8&255}const wo=Uint8Array.of(137,80,78,71,13,10,26,10);function Bu(r){if(!t2(r.readBytes(wo.length)))throw new Error("wrong PNG signature")}function t2(r){if(r.length<wo.length)return!1;for(let t=0;t<wo.length;t++)if(r[t]!==wo[t])return!1;return!0}const e2="tEXt",r2=0,Gh=new TextDecoder("latin1");function n2(r){if(a2(r),r.length===0||r.length>79)throw new Error("keyword length must be between 1 and 79")}const i2=/^[\u0000-\u00FF]*$/;function a2(r){if(!i2.test(r))throw new Error("invalid latin1 text")}function o2(r,t,e){const n=Vh(t);r[n]=s2(t,e-n.length-1)}function Vh(r){for(r.mark();r.readByte()!==r2;);const t=r.offset;r.reset();const e=Gh.decode(r.readBytes(t-r.offset-1));return r.skip(1),n2(e),e}function s2(r,t){return Gh.decode(r.readBytes(t))}const jr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Ls={UNKNOWN:-1,DEFLATE:0},Du={UNKNOWN:-1,ADAPTIVE:0},Ss={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},go={NONE:0,BACKGROUND:1,PREVIOUS:2},ks={SOURCE:0,OVER:1};class l2 extends nl{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,e={}){super(t);const{checkCrc:n=!1}=e;this._checkCrc=n,this._inflator=new Iu,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Ls.UNKNOWN,this._filterMethod=Du.UNKNOWN,this._interlaceMethod=Ss.UNKNOWN,this._colorType=jr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Bu(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeChunk(t,e)}return this.decodeImage(),this._png}decodeApng(){for(Bu(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(t,e)}return this.decodeApngImage(),this._apng}decodeChunk(t,e){const n=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case e2:o2(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Ou(this,t+4,e):this.skip(4)}decodeApngChunk(t,e){const n=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,e),this.offset=n+t;break}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Ou(this,t+4,e):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=u2(this.readUint8());const e=this.readUint8();this._colorType=e;let n;switch(e){case jr.GREYSCALE:n=1;break;case jr.TRUECOLOUR:n=3;break;case jr.INDEXED_COLOUR:n=1;break;case jr.GREYSCALE_ALPHA:n=2;break;case jr.TRUECOLOUR_ALPHA:n=4;break;case jr.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==Ls.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const e=t/3;this._hasPalette=!0;const n=[];this._palette=n;for(let a=0;a<e;a++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const e=t,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let e=t,n=this.offset+this.byteOffset;if(n+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,n,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case jr.GREYSCALE:case jr.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let e=0;e<t/2;e++)this._transparency[e]=this.readUint16();break}case jr.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let e=0;for(;e<t;e++){const n=this.readByte();this._palette[e].push(n)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case jr.UNKNOWN:case jr.GREYSCALE_ALPHA:case jr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const e=Vh(this),n=this.readUint8();if(n!==Ls.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const a=this.readBytes(t-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:M1(a)}}decodepHYs(){const t=this.readUint32(),e=this.readUint32(),n=this.readByte();this._png.resolution={x:t,y:e,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const e={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(t);if(n){if(n.data=ju({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)e.data=n.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(n,a,e),this.addFrameDataToCanvas(e,n)}this._apng.frames.push(e)}}return this._apng}disposeFrame(t,e,n){switch(t.disposeOp){case go.NONE:break;case go.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let i=0;i<this._png.width;i++){const h=(a*t.width+i)*this._png.channels;for(let l=0;l<this._png.channels;l++)n.data[h+l]=0}break;case go.PREVIOUS:n.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,e){const n=1<<this._png.depth,a=(i,h)=>{const l=((i+e.yOffset)*this._png.width+e.xOffset+h)*this._png.channels,u=(i*e.width+h)*this._png.channels;return{index:l,frameIndex:u}};switch(e.blendOp){case ks.SOURCE:for(let i=0;i<e.height;i++)for(let h=0;h<e.width;h++){const{index:l,frameIndex:u}=a(i,h);for(let f=0;f<this._png.channels;f++)t.data[l+f]=e.data[u+f]}break;case ks.OVER:for(let i=0;i<e.height;i++)for(let h=0;h<e.width;h++){const{index:l,frameIndex:u}=a(i,h);for(let f=0;f<this._png.channels;f++){const p=e.data[u+this._png.channels-1]/n,y=f%(this._png.channels-1)===0?1:e.data[u+f],x=Math.floor(p*y+(1-p)*t.data[l+f]);t.data[l+f]+=x}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Du.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Ss.NO_INTERLACE)this._png.data=ju({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Ss.ADAM7)this._png.data=Y1({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,e=this._frames.at(-1);e?e.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:go.NONE,blendOp:ks.SOURCE,data:t}),this._inflator=new Iu,this._writingDataChunks=!1}}function u2(r){if(r!==1&&r!==2&&r!==4&&r!==8&&r!==16)throw new Error(`invalid bit depth: ${r}`);return r}var Ru;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.METRE=1]="METRE"})(Ru||(Ru={}));function h2(r,t){return new l2(r,t).decode()}/** @license
|
|
3
|
-
*
|
|
4
|
-
* jsPDF - PDF Document creation from JavaScript
|
|
5
|
-
* Version 3.0.2 Built on 2025-08-26T11:48:30.930Z
|
|
6
|
-
* CommitID 00000000
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|
9
|
-
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|
10
|
-
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|
11
|
-
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|
12
|
-
* 2010 Aaron Spike, https://github.com/acspike
|
|
13
|
-
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
14
|
-
* 2012 Pablo Hess, https://github.com/pablohess
|
|
15
|
-
* 2012 Florian Jenett, https://github.com/fjenett
|
|
16
|
-
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|
17
|
-
* 2013 Youssef Beddad, https://github.com/lifof
|
|
18
|
-
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|
19
|
-
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|
20
|
-
* 2013 Jeremy Morel, https://github.com/jmorel
|
|
21
|
-
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|
22
|
-
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|
23
|
-
* 2014 James Makes, https://github.com/dollaruw
|
|
24
|
-
* 2014 Diego Casorran, https://github.com/diegocr
|
|
25
|
-
* 2014 Steven Spungin, https://github.com/Flamenco
|
|
26
|
-
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|
27
|
-
*
|
|
28
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
|
29
|
-
* a copy of this software and associated documentation files (the
|
|
30
|
-
* "Software"), to deal in the Software without restriction, including
|
|
31
|
-
* without limitation the rights to use, copy, modify, merge, publish,
|
|
32
|
-
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
33
|
-
* permit persons to whom the Software is furnished to do so, subject to
|
|
34
|
-
* the following conditions:
|
|
35
|
-
*
|
|
36
|
-
* The above copyright notice and this permission notice shall be
|
|
37
|
-
* included in all copies or substantial portions of the Software.
|
|
38
|
-
*
|
|
39
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
40
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
41
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
42
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
43
|
-
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
44
|
-
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
45
|
-
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
46
|
-
*
|
|
47
|
-
* Contributor(s):
|
|
48
|
-
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
49
|
-
* kim3er, mfo, alnorth, Flamenco
|
|
50
|
-
*/var Yt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Ps(){Yt.console&&typeof Yt.console.log=="function"&&Yt.console.log.apply(Yt.console,arguments)}var Le={log:Ps,warn:function(r){Yt.console&&(typeof Yt.console.warn=="function"?Yt.console.warn.apply(Yt.console,arguments):Ps.call(null,arguments))},error:function(r){Yt.console&&(typeof Yt.console.error=="function"?Yt.console.error.apply(Yt.console,arguments):Ps(r))}};function Cs(r,t,e){var n=new XMLHttpRequest;n.open("GET",r),n.responseType="blob",n.onload=function(){mi(n.response,t,e)},n.onerror=function(){Le.error("could not download file")},n.send()}function Tu(r){var t=new XMLHttpRequest;t.open("HEAD",r,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function vo(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(t)}}var mi=Yt.saveAs||((typeof window>"u"?"undefined":me(window))!=="object"||window!==Yt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,t,e){var n=Yt.URL||Yt.webkitURL,a=document.createElement("a");t=t||r.name||"download",a.download=t,a.rel="noopener",typeof r=="string"?(a.href=r,a.origin!==location.origin?Tu(a.href)?Cs(r,t,e):vo(a,a.target="_blank"):vo(a)):(a.href=n.createObjectURL(r),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){vo(a)},0))}:"msSaveOrOpenBlob"in navigator?function(r,t,e){if(t=t||r.name||"download",typeof r=="string")if(Tu(r))Cs(r,t,e);else{var n=document.createElement("a");n.href=r,n.target="_blank",setTimeout(function(){vo(n)})}else navigator.msSaveOrOpenBlob((function(a,i){return i===void 0?i={autoBom:!1}:me(i)!=="object"&&(Le.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(r,e),t)}:function(r,t,e,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof r=="string")return Cs(r,t,e);var a=r.type==="application/octet-stream",i=/constructor/i.test(Yt.HTMLElement)||Yt.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||a&&i)&&(typeof FileReader>"u"?"undefined":me(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var p=l.result;p=h?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=p:location=p,n=null},l.readAsDataURL(r)}else{var u=Yt.URL||Yt.webkitURL,f=u.createObjectURL(r);n?n.location=f:location.href=f,n=null,setTimeout(function(){u.revokeObjectURL(f)},4e4)}});/**
|
|
51
|
-
* A class to parse color values
|
|
52
|
-
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
53
|
-
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
54
|
-
* @license Use it if you like it
|
|
55
|
-
*/function Yh(r){var t;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={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"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;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(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],n=0;n<e.length;n++){var a=e[n].re,i=e[n].process,h=a.exec(r);h&&(t=i(h),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 l=this.r.toString(16),u=this.g.toString(16),f=this.b.toString(16);return l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),f.length==1&&(f="0"+f),"#"+l+u+f}}var xo=Yt.atob.bind(Yt),Mu=Yt.btoa.bind(Yt);/**
|
|
56
|
-
* @license
|
|
57
|
-
* Joseph Myers does not specify a particular license for his work.
|
|
58
|
-
*
|
|
59
|
-
* Author: Joseph Myers
|
|
60
|
-
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|
61
|
-
*
|
|
62
|
-
* Modified by: Owen Leong
|
|
63
|
-
*/function Fs(r,t){var e=r[0],n=r[1],a=r[2],i=r[3];e=dr(e,n,a,i,t[0],7,-680876936),i=dr(i,e,n,a,t[1],12,-389564586),a=dr(a,i,e,n,t[2],17,606105819),n=dr(n,a,i,e,t[3],22,-1044525330),e=dr(e,n,a,i,t[4],7,-176418897),i=dr(i,e,n,a,t[5],12,1200080426),a=dr(a,i,e,n,t[6],17,-1473231341),n=dr(n,a,i,e,t[7],22,-45705983),e=dr(e,n,a,i,t[8],7,1770035416),i=dr(i,e,n,a,t[9],12,-1958414417),a=dr(a,i,e,n,t[10],17,-42063),n=dr(n,a,i,e,t[11],22,-1990404162),e=dr(e,n,a,i,t[12],7,1804603682),i=dr(i,e,n,a,t[13],12,-40341101),a=dr(a,i,e,n,t[14],17,-1502002290),e=pr(e,n=dr(n,a,i,e,t[15],22,1236535329),a,i,t[1],5,-165796510),i=pr(i,e,n,a,t[6],9,-1069501632),a=pr(a,i,e,n,t[11],14,643717713),n=pr(n,a,i,e,t[0],20,-373897302),e=pr(e,n,a,i,t[5],5,-701558691),i=pr(i,e,n,a,t[10],9,38016083),a=pr(a,i,e,n,t[15],14,-660478335),n=pr(n,a,i,e,t[4],20,-405537848),e=pr(e,n,a,i,t[9],5,568446438),i=pr(i,e,n,a,t[14],9,-1019803690),a=pr(a,i,e,n,t[3],14,-187363961),n=pr(n,a,i,e,t[8],20,1163531501),e=pr(e,n,a,i,t[13],5,-1444681467),i=pr(i,e,n,a,t[2],9,-51403784),a=pr(a,i,e,n,t[7],14,1735328473),e=gr(e,n=pr(n,a,i,e,t[12],20,-1926607734),a,i,t[5],4,-378558),i=gr(i,e,n,a,t[8],11,-2022574463),a=gr(a,i,e,n,t[11],16,1839030562),n=gr(n,a,i,e,t[14],23,-35309556),e=gr(e,n,a,i,t[1],4,-1530992060),i=gr(i,e,n,a,t[4],11,1272893353),a=gr(a,i,e,n,t[7],16,-155497632),n=gr(n,a,i,e,t[10],23,-1094730640),e=gr(e,n,a,i,t[13],4,681279174),i=gr(i,e,n,a,t[0],11,-358537222),a=gr(a,i,e,n,t[3],16,-722521979),n=gr(n,a,i,e,t[6],23,76029189),e=gr(e,n,a,i,t[9],4,-640364487),i=gr(i,e,n,a,t[12],11,-421815835),a=gr(a,i,e,n,t[15],16,530742520),e=vr(e,n=gr(n,a,i,e,t[2],23,-995338651),a,i,t[0],6,-198630844),i=vr(i,e,n,a,t[7],10,1126891415),a=vr(a,i,e,n,t[14],15,-1416354905),n=vr(n,a,i,e,t[5],21,-57434055),e=vr(e,n,a,i,t[12],6,1700485571),i=vr(i,e,n,a,t[3],10,-1894986606),a=vr(a,i,e,n,t[10],15,-1051523),n=vr(n,a,i,e,t[1],21,-2054922799),e=vr(e,n,a,i,t[8],6,1873313359),i=vr(i,e,n,a,t[15],10,-30611744),a=vr(a,i,e,n,t[6],15,-1560198380),n=vr(n,a,i,e,t[13],21,1309151649),e=vr(e,n,a,i,t[4],6,-145523070),i=vr(i,e,n,a,t[11],10,-1120210379),a=vr(a,i,e,n,t[2],15,718787259),n=vr(n,a,i,e,t[9],21,-343485551),r[0]=Zn(e,r[0]),r[1]=Zn(n,r[1]),r[2]=Zn(a,r[2]),r[3]=Zn(i,r[3])}function Oo(r,t,e,n,a,i){return t=Zn(Zn(t,r),Zn(n,i)),Zn(t<<a|t>>>32-a,e)}function dr(r,t,e,n,a,i,h){return Oo(t&e|~t&n,r,t,a,i,h)}function pr(r,t,e,n,a,i,h){return Oo(t&n|e&~n,r,t,a,i,h)}function gr(r,t,e,n,a,i,h){return Oo(t^e^n,r,t,a,i,h)}function vr(r,t,e,n,a,i,h){return Oo(e^(t|~n),r,t,a,i,h)}function Jh(r){var t,e=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=r.length;t+=64)Fs(n,f2(r.substring(t-64,t)));r=r.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r.length;t++)a[t>>2]|=r.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(Fs(n,a),t=0;t<16;t++)a[t]=0;return a[14]=8*e,Fs(n,a),n}function f2(r){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=r.charCodeAt(t)+(r.charCodeAt(t+1)<<8)+(r.charCodeAt(t+2)<<16)+(r.charCodeAt(t+3)<<24);return e}var qu="0123456789abcdef".split("");function c2(r){for(var t="",e=0;e<4;e++)t+=qu[r>>8*e+4&15]+qu[r>>8*e&15];return t}function d2(r){return String.fromCharCode(255&r,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Ys(r){return Jh(r).map(d2).join("")}var p2=(function(r){for(var t=0;t<r.length;t++)r[t]=c2(r[t]);return r.join("")})(Jh("hello"))!="5d41402abc4b2a76b9719d911017c592";function Zn(r,t){if(p2){var e=(65535&r)+(65535&t);return(r>>16)+(t>>16)+(e>>16)<<16|65535&e}return r+t&4294967295}/**
|
|
64
|
-
* @license
|
|
65
|
-
* FPDF is released under a permissive license: there is no usage restriction.
|
|
66
|
-
* You may embed it freely in your application (commercial or not), with or
|
|
67
|
-
* without modifications.
|
|
68
|
-
*
|
|
69
|
-
* Reference: http://www.fpdf.org/en/script/script37.php
|
|
70
|
-
*/function Js(r,t){var e,n,a,i;if(r!==e){for(var h=(a=r,i=1+(256/r.length|0),new Array(i+1).join(a)),l=[],u=0;u<256;u++)l[u]=u;var f=0;for(u=0;u<256;u++){var p=l[u];f=(f+p+h.charCodeAt(u))%256,l[u]=l[f],l[f]=p}e=r,n=l}else l=n;var y=t.length,x=0,g=0,P="";for(u=0;u<y;u++)g=(g+(p=l[x=(x+1)%256]))%256,l[x]=l[g],l[g]=p,h=l[(l[x]+l[g])%256],P+=String.fromCharCode(t.charCodeAt(u)^h);return P}/**
|
|
71
|
-
* @license
|
|
72
|
-
* Licensed under the MIT License.
|
|
73
|
-
* http://opensource.org/licenses/mit-license
|
|
74
|
-
* Author: Owen Leong (@owenl131)
|
|
75
|
-
* Date: 15 Oct 2020
|
|
76
|
-
* References:
|
|
77
|
-
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
78
|
-
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
79
|
-
* http://www.fpdf.org/en/script/script37.php
|
|
80
|
-
*/var Uu={print:4,modify:8,copy:16,"annot-forms":32};function Wi(r,t,e,n){this.v=1,this.r=2;var a=192;r.forEach(function(l){if(Uu.perm!==void 0)throw new Error("Invalid permission: "+l);a+=Uu[l]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),h=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,h),this.P=-(1+(255^a)),this.encryptionKey=Ys(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Js(this.encryptionKey,this.padding)}function Gi(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var t="",e=r.length,n=0;n<e;n++){var a=r.charCodeAt(n);t+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):r[n]}return t}function zu(r){if(me(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,a){if(a=a||!1,typeof e!="string"||typeof n!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!a],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var i in t[e]){var h=t[e][i];try{h[0].apply(r,n)}catch(l){Yt.console&&Le.error("jsPDF PubSub Error",l.message,l)}h[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Po(r){if(!(this instanceof Po))return new Po(r);var t="opacity,stroke-opacity".split(",");for(var e in r)r.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=r[e]);this.id="",this.objectNumber=-1}function Kh(r,t){this.gState=r,this.matrix=t,this.id="",this.objectNumber=-1}function bi(r,t,e,n,a){if(!(this instanceof bi))return new bi(r,t,e,n,a);this.type=r==="axial"?2:3,this.coords=t,this.colors=e,Kh.call(this,n,a)}function Vi(r,t,e,n,a){if(!(this instanceof Vi))return new Vi(r,t,e,n,a);this.boundingBox=r,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,Kh.call(this,n,a)}function Rt(r){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],a=arguments[2],i=arguments[3],h=[],l=1,u=16,f="S",p=null;me(r=r||{})==="object"&&(e=r.orientation,n=r.unit||n,a=r.format||a,i=r.compress||r.compressPdf||i,(p=r.encryption||null)!==null&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),l=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(t=r.precision),r.floatPrecision!==void 0&&(u=r.floatPrecision),f=r.defaultPathOperation||"S"),h=r.filters||(i===!0?["FlateEncode"]:h),n=n||"mm",e=(""+(e||"P")).toLowerCase();var y=r.putOnlyUsedFonts||!1,x={},g={internal:{},__private__:{}};g.__private__.PubSub=zu;var P="1.3",C=g.__private__.getPdfVersion=function(){return P};g.__private__.setPdfVersion=function(c){P=c};var j={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]};g.__private__.getPageFormats=function(){return j};var S=g.__private__.getPageFormat=function(c){return j[c]};a=a||"a4";var W="compat",z="advanced",M=W;function at(){this.saveGraphicsState(),D(new Wt(Gt,0,0,-Gt,0,Sr()*Gt).toString()+" cm"),this.setFontSize(this.getFontSize()/Gt),f="n",M=z}function mt(){this.restoreGraphicsState(),f="S",M=W}var ot=g.__private__.combineFontStyleAndFontWeight=function(c,b){if(c=="bold"&&b=="normal"||c=="bold"&&b==400||c=="normal"&&b=="italic"||c=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(c=b==400||b==="normal"?c==="italic"?"italic":"normal":b!=700&&b!=="bold"||c!=="normal"?(b==700?"bold":b)+""+c:"bold"),c};g.advancedAPI=function(c){var b=M===W;return b&&at.call(this),typeof c!="function"||(c(this),b&&mt.call(this)),this},g.compatAPI=function(c){var b=M===z;return b&&mt.call(this),typeof c!="function"||(c(this),b&&at.call(this)),this},g.isAdvancedAPI=function(){return M===z};var $,T=function(c){if(M!==z)throw new Error(c+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},et=g.roundToPrecision=g.__private__.roundToPrecision=function(c,b){var E=t||b;if(isNaN(c)||isNaN(E))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return c.toFixed(E).replace(/0+$/,"")};$=g.hpf=g.__private__.hpf=typeof u=="number"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return et(c,u)}:u==="smart"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return et(c,c>-1&&c<1?16:5)}:function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return et(c,16)};var L=g.f2=g.__private__.f2=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f2");return et(c,2)},O=g.__private__.f3=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f3");return et(c,3)},G=g.scale=g.__private__.scale=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.scale");return M===W?c*Gt:M===z?c:void 0},U=function(c){return G((function(b){return M===W?Sr()-b:M===z?b:void 0})(c))};g.__private__.setPrecision=g.setPrecision=function(c){typeof parseInt(c,10)=="number"&&(t=parseInt(c,10))};var nt,ht="00000000000000000000000000000000",dt=g.__private__.getFileId=function(){return ht},rt=g.__private__.setFileId=function(c){return ht=c!==void 0&&/^[a-fA-F0-9]{32}$/.test(c)?c.toUpperCase():ht.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),p!==null&&(Me=new Wi(p.userPermissions,p.userPassword,p.ownerPassword,ht)),ht};g.setFileId=function(c){return rt(c),this},g.getFileId=function(){return dt()};var ft=g.__private__.convertDateToPDFDate=function(c){var b=c.getTimezoneOffset(),E=b<0?"+":"-",q=Math.floor(Math.abs(b/60)),K=Math.abs(b%60),pt=[E,R(q),"'",R(K),"'"].join("");return["D:",c.getFullYear(),R(c.getMonth()+1),R(c.getDate()),R(c.getHours()),R(c.getMinutes()),R(c.getSeconds()),pt].join("")},Nt=g.__private__.convertPDFDateToDate=function(c){var b=parseInt(c.substr(2,4),10),E=parseInt(c.substr(6,2),10)-1,q=parseInt(c.substr(8,2),10),K=parseInt(c.substr(10,2),10),pt=parseInt(c.substr(12,2),10),yt=parseInt(c.substr(14,2),10);return new Date(b,E,q,K,pt,yt,0)},wt=g.__private__.setCreationDate=function(c){var b;if(c===void 0&&(c=new Date),c instanceof Date)b=ft(c);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(c))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=c}return nt=b},_=g.__private__.getCreationDate=function(c){var b=nt;return c==="jsDate"&&(b=Nt(nt)),b};g.setCreationDate=function(c){return wt(c),this},g.getCreationDate=function(c){return _(c)};var B,R=g.__private__.padd2=function(c){return("0"+parseInt(c)).slice(-2)},V=g.__private__.padd2Hex=function(c){return("00"+(c=c.toString())).substr(c.length)},J=0,Z=[],lt=[],it=0,vt=[],_t=[],kt=!1,Pt=lt;g.__private__.setCustomOutputDestination=function(c){kt=!0,Pt=c};var st=function(c){kt||(Pt=c)};g.__private__.resetCustomOutputDestination=function(){kt=!1,Pt=lt};var D=g.__private__.out=function(c){return c=c.toString(),it+=c.length+1,Pt.push(c),Pt},le=g.__private__.write=function(c){return D(arguments.length===1?c.toString():Array.prototype.join.call(arguments," "))},re=g.__private__.getArrayBuffer=function(c){for(var b=c.length,E=new ArrayBuffer(b),q=new Uint8Array(E);b--;)q[b]=c.charCodeAt(b);return E},zt=[["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]];g.__private__.getStandardFonts=function(){return zt};var At=r.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(c){return At=M===z?c/Gt:c,this};var Tt,St=g.__private__.getFontSize=g.getFontSize=function(){return M===W?At:At*Gt},ne=r.R2L||!1;g.__private__.setR2L=g.setR2L=function(c){return ne=c,this},g.__private__.getR2L=g.getR2L=function(){return ne};var Ut,de=g.__private__.setZoomMode=function(c){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(c))Tt=c;else if(isNaN(c)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(c)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+c+'" is not recognized.');Tt=c}else Tt=parseInt(c,10)};g.__private__.getZoomMode=function(){return Tt};var Xt,Zt=g.__private__.setPageMode=function(c){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(c)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+c+'" is not recognized.');Ut=c};g.__private__.getPageMode=function(){return Ut};var we=g.__private__.setLayoutMode=function(c){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(c)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+c+'" is not recognized.');Xt=c};g.__private__.getLayoutMode=function(){return Xt},g.__private__.setDisplayMode=g.setDisplayMode=function(c,b,E){return de(c),we(b),Zt(E),this};var ie={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(c){if(Object.keys(ie).indexOf(c)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ie[c]},g.__private__.getDocumentProperties=function(){return ie},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(c){for(var b in ie)ie.hasOwnProperty(b)&&c[b]&&(ie[b]=c[b]);return this},g.__private__.setDocumentProperty=function(c,b){if(Object.keys(ie).indexOf(c)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ie[c]=b};var Mt,Gt,qt,Se,pe,Bt={},Qt={},Ae=[],Ht={},ue={},te={},Te={},Xe=null,_e=0,Jt=[],ve=new zu(g),ti=r.hotfixes||[],fr={},mn={},rn=[],Wt=function c(b,E,q,K,pt,yt){if(!(this instanceof c))return new c(b,E,q,K,pt,yt);isNaN(b)&&(b=1),isNaN(E)&&(E=0),isNaN(q)&&(q=0),isNaN(K)&&(K=1),isNaN(pt)&&(pt=0),isNaN(yt)&&(yt=0),this._matrix=[b,E,q,K,pt,yt]};Object.defineProperty(Wt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Wt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Wt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Wt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Wt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Wt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Wt.prototype,"a",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Wt.prototype,"b",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Wt.prototype,"c",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Wt.prototype,"d",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Wt.prototype,"e",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Wt.prototype,"f",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Wt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Wt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Wt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Wt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Wt.prototype.join=function(c){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map($).join(c)},Wt.prototype.multiply=function(c){var b=c.sx*this.sx+c.shy*this.shx,E=c.sx*this.shy+c.shy*this.sy,q=c.shx*this.sx+c.sy*this.shx,K=c.shx*this.shy+c.sy*this.sy,pt=c.tx*this.sx+c.ty*this.shx+this.tx,yt=c.tx*this.shy+c.ty*this.sy+this.ty;return new Wt(b,E,q,K,pt,yt)},Wt.prototype.decompose=function(){var c=this.sx,b=this.shy,E=this.shx,q=this.sy,K=this.tx,pt=this.ty,yt=Math.sqrt(c*c+b*b),It=(c/=yt)*E+(b/=yt)*q;E-=c*It,q-=b*It;var jt=Math.sqrt(E*E+q*q);return It/=jt,c*(q/=jt)<b*(E/=jt)&&(c=-c,b=-b,It=-It,yt=-yt),{scale:new Wt(yt,0,0,jt,0,0),translate:new Wt(1,0,0,1,K,pt),rotate:new Wt(c,b,-b,c,0,0),skew:new Wt(1,0,It,1,0,0)}},Wt.prototype.toString=function(c){return this.join(" ")},Wt.prototype.inversed=function(){var c=this.sx,b=this.shy,E=this.shx,q=this.sy,K=this.tx,pt=this.ty,yt=1/(c*q-b*E),It=q*yt,jt=-b*yt,Vt=-E*yt,ae=c*yt;return new Wt(It,jt,Vt,ae,-It*K-Vt*pt,-jt*K-ae*pt)},Wt.prototype.applyToPoint=function(c){var b=c.x*this.sx+c.y*this.shx+this.tx,E=c.x*this.shy+c.y*this.sy+this.ty;return new hi(b,E)},Wt.prototype.applyToRectangle=function(c){var b=this.applyToPoint(c),E=this.applyToPoint(new hi(c.x+c.w,c.y+c.h));return new ua(b.x,b.y,E.x-b.x,E.y-b.y)},Wt.prototype.clone=function(){var c=this.sx,b=this.shy,E=this.shx,q=this.sy,K=this.tx,pt=this.ty;return new Wt(c,b,E,q,K,pt)},g.Matrix=Wt;var bn=g.matrixMult=function(c,b){return b.multiply(c)},yn=new Wt(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=yn;var Dr=function(c,b){if(!ue[c]){var E=(b instanceof bi?"Sh":"P")+(Object.keys(Ht).length+1).toString(10);b.id=E,ue[c]=E,Ht[E]=b,ve.publish("addPattern",b)}};g.ShadingPattern=bi,g.TilingPattern=Vi,g.addShadingPattern=function(c,b){return T("addShadingPattern()"),Dr(c,b),this},g.beginTilingPattern=function(c){T("beginTilingPattern()"),ha(c.boundingBox[0],c.boundingBox[1],c.boundingBox[2]-c.boundingBox[0],c.boundingBox[3]-c.boundingBox[1],c.matrix)},g.endTilingPattern=function(c,b){T("endTilingPattern()"),b.stream=_t[B].join(`
|
|
81
|
-
`),Dr(c,b),ve.publish("endTilingPattern",b),rn.pop().restore()};var Rr,je=g.__private__.newObject=function(){var c=nr();return or(c,!0),c},nr=g.__private__.newObjectDeferred=function(){return J++,Z[J]=function(){return it},J},or=function(c,b){return b=typeof b=="boolean"&&b,Z[c]=it,b&&D(c+" 0 obj"),c},ei=g.__private__.newAdditionalObject=function(){var c={objId:nr(),content:""};return vt.push(c),c},Dn=nr(),Wr=nr(),nn=g.__private__.decodeColorString=function(c){var b=c.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length!==5||b[4]!=="k"&&b[4]!=="K"||(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var E=parseFloat(b[0]);b=[E,E,E,"r"]}for(var q="#",K=0;K<3;K++)q+=("0"+Math.floor(255*parseFloat(b[K])).toString(16)).slice(-2);return q},Gr=g.__private__.encodeColorString=function(c){var b;typeof c=="string"&&(c={ch1:c});var E=c.ch1,q=c.ch2,K=c.ch3,pt=c.ch4,yt=c.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof E=="string"&&E.charAt(0)!=="#"){var It=new Yh(E);if(It.ok)E=It.toHex();else if(!/^\d*\.?\d*$/.test(E))throw new Error('Invalid color "'+E+'" passed to jsPDF.encodeColorString.')}if(typeof E=="string"&&/^#[0-9A-Fa-f]{3}$/.test(E)&&(E="#"+E[1]+E[1]+E[2]+E[2]+E[3]+E[3]),typeof E=="string"&&/^#[0-9A-Fa-f]{6}$/.test(E)){var jt=parseInt(E.substr(1),16);E=jt>>16&255,q=jt>>8&255,K=255&jt}if(q===void 0||pt===void 0&&E===q&&q===K)b=typeof E=="string"?E+" "+yt[0]:c.precision===2?L(E/255)+" "+yt[0]:O(E/255)+" "+yt[0];else if(pt===void 0||me(pt)==="object"){if(pt&&!isNaN(pt.a)&&pt.a===0)return["1.","1.","1.",yt[1]].join(" ");b=typeof E=="string"?[E,q,K,yt[1]].join(" "):c.precision===2?[L(E/255),L(q/255),L(K/255),yt[1]].join(" "):[O(E/255),O(q/255),O(K/255),yt[1]].join(" ")}else b=typeof E=="string"?[E,q,K,pt,yt[2]].join(" "):c.precision===2?[L(E),L(q),L(K),L(pt),yt[2]].join(" "):[O(E),O(q),O(K),O(pt),yt[2]].join(" ");return b},Vr=g.__private__.getFilters=function(){return h},Tr=g.__private__.putStream=function(c){var b=(c=c||{}).data||"",E=c.filters||Vr(),q=c.alreadyAppliedFilters||[],K=c.addLength1||!1,pt=b.length,yt=c.objectId,It=function(Ze){return Ze};if(p!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");p!==null&&(It=Me.encryptor(yt,0));var jt={};E===!0&&(E=["FlateEncode"]);var Vt=c.additionalKeyValues||[],ae=(jt=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(b,E):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(jt.data.length!==0&&(Vt.push({key:"Length",value:jt.data.length}),K===!0&&Vt.push({key:"Length1",value:pt})),ae.length!=0)if(ae.split("/").length-1==1)Vt.push({key:"Filter",value:ae});else{Vt.push({key:"Filter",value:"["+ae+"]"});for(var ge=0;ge<Vt.length;ge+=1)if(Vt[ge].key==="DecodeParms"){for(var Oe=[],Ke=0;Ke<jt.reverseChain.split("/").length-1;Ke+=1)Oe.push("null");Oe.push(Vt[ge].value),Vt[ge].value="["+Oe.join(" ")+"]"}}D("<<");for(var xe=0;xe<Vt.length;xe++)D("/"+Vt[xe].key+" "+Vt[xe].value);D(">>"),jt.data.length!==0&&(D("stream"),D(It(jt.data)),D("endstream"))},ri=g.__private__.putPage=function(c){var b=c.number,E=c.data,q=c.objId,K=c.contentsObjId;or(q,!0),D("<</Type /Page"),D("/Parent "+c.rootDictionaryObjId+" 0 R"),D("/Resources "+c.resourceDictionaryObjId+" 0 R"),D("/MediaBox ["+parseFloat($(c.mediaBox.bottomLeftX))+" "+parseFloat($(c.mediaBox.bottomLeftY))+" "+$(c.mediaBox.topRightX)+" "+$(c.mediaBox.topRightY)+"]"),c.cropBox!==null&&D("/CropBox ["+$(c.cropBox.bottomLeftX)+" "+$(c.cropBox.bottomLeftY)+" "+$(c.cropBox.topRightX)+" "+$(c.cropBox.topRightY)+"]"),c.bleedBox!==null&&D("/BleedBox ["+$(c.bleedBox.bottomLeftX)+" "+$(c.bleedBox.bottomLeftY)+" "+$(c.bleedBox.topRightX)+" "+$(c.bleedBox.topRightY)+"]"),c.trimBox!==null&&D("/TrimBox ["+$(c.trimBox.bottomLeftX)+" "+$(c.trimBox.bottomLeftY)+" "+$(c.trimBox.topRightX)+" "+$(c.trimBox.topRightY)+"]"),c.artBox!==null&&D("/ArtBox ["+$(c.artBox.bottomLeftX)+" "+$(c.artBox.bottomLeftY)+" "+$(c.artBox.topRightX)+" "+$(c.artBox.topRightY)+"]"),typeof c.userUnit=="number"&&c.userUnit!==1&&D("/UserUnit "+c.userUnit),ve.publish("putPage",{objId:q,pageContext:Jt[b],pageNumber:b,page:E}),D("/Contents "+K+" 0 R"),D(">>"),D("endobj");var pt=E.join(`
|
|
82
|
-
`);return M===z&&(pt+=`
|
|
83
|
-
Q`),or(K,!0),Tr({data:pt,filters:Vr(),objectId:K}),D("endobj"),q},an=g.__private__.putPages=function(){var c,b,E=[];for(c=1;c<=_e;c++)Jt[c].objId=nr(),Jt[c].contentsObjId=nr();for(c=1;c<=_e;c++)E.push(ri({number:c,data:_t[c],objId:Jt[c].objId,contentsObjId:Jt[c].contentsObjId,mediaBox:Jt[c].mediaBox,cropBox:Jt[c].cropBox,bleedBox:Jt[c].bleedBox,trimBox:Jt[c].trimBox,artBox:Jt[c].artBox,userUnit:Jt[c].userUnit,rootDictionaryObjId:Dn,resourceDictionaryObjId:Wr}));or(Dn,!0),D("<</Type /Pages");var q="/Kids [";for(b=0;b<_e;b++)q+=E[b]+" 0 R ";D(q+"]"),D("/Count "+_e),D(">>"),D("endobj"),ve.publish("postPutPages")},ni=function(c){ve.publish("putFont",{font:c,out:D,newObject:je,putStream:Tr}),c.isAlreadyPutted!==!0&&(c.objectNumber=je(),D("<<"),D("/Type /Font"),D("/BaseFont /"+Gi(c.postScriptName)),D("/Subtype /Type1"),typeof c.encoding=="string"&&D("/Encoding /"+c.encoding),D("/FirstChar 32"),D("/LastChar 255"),D(">>"),D("endobj"))},Ni=function(c){c.objectNumber=je();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[$(c.x),$(c.y),$(c.x+c.width),$(c.y+c.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+c.matrix.toString()+"]"});var E=c.pages[1].join(`
|
|
84
|
-
`);Tr({data:E,additionalKeyValues:b,objectId:c.objectNumber}),D("endobj")},Li=function(c,b){b||(b=21);var E=je(),q=(function(yt,It){var jt,Vt=[],ae=1/(It-1);for(jt=0;jt<1;jt+=ae)Vt.push(jt);if(Vt.push(1),yt[0].offset!=0){var ge={offset:0,color:yt[0].color};yt.unshift(ge)}if(yt[yt.length-1].offset!=1){var Oe={offset:1,color:yt[yt.length-1].color};yt.push(Oe)}for(var Ke="",xe=0,Ze=0;Ze<Vt.length;Ze++){for(jt=Vt[Ze];jt>yt[xe+1].offset;)xe++;var $e=yt[xe].offset,sr=(jt-$e)/(yt[xe+1].offset-$e),_n=yt[xe].color,Mn=yt[xe+1].color;Ke+=V(Math.round((1-sr)*_n[0]+sr*Mn[0]).toString(16))+V(Math.round((1-sr)*_n[1]+sr*Mn[1]).toString(16))+V(Math.round((1-sr)*_n[2]+sr*Mn[2]).toString(16))}return Ke.trim()})(c.colors,b),K=[];K.push({key:"FunctionType",value:"0"}),K.push({key:"Domain",value:"[0.0 1.0]"}),K.push({key:"Size",value:"["+b+"]"}),K.push({key:"BitsPerSample",value:"8"}),K.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),K.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Tr({data:q,additionalKeyValues:K,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:E}),D("endobj"),c.objectNumber=je(),D("<< /ShadingType "+c.type),D("/ColorSpace /DeviceRGB");var pt="/Coords ["+$(parseFloat(c.coords[0]))+" "+$(parseFloat(c.coords[1]))+" ";c.type===2?pt+=$(parseFloat(c.coords[2]))+" "+$(parseFloat(c.coords[3])):pt+=$(parseFloat(c.coords[2]))+" "+$(parseFloat(c.coords[3]))+" "+$(parseFloat(c.coords[4]))+" "+$(parseFloat(c.coords[5])),D(pt+="]"),c.matrix&&D("/Matrix ["+c.matrix.toString()+"]"),D("/Function "+E+" 0 R"),D("/Extend [true true]"),D(">>"),D("endobj")},Si=function(c,b){var E=nr(),q=je();b.push({resourcesOid:E,objectOid:q}),c.objectNumber=q;var K=[];K.push({key:"Type",value:"/Pattern"}),K.push({key:"PatternType",value:"1"}),K.push({key:"PaintType",value:"1"}),K.push({key:"TilingType",value:"1"}),K.push({key:"BBox",value:"["+c.boundingBox.map($).join(" ")+"]"}),K.push({key:"XStep",value:$(c.xStep)}),K.push({key:"YStep",value:$(c.yStep)}),K.push({key:"Resources",value:E+" 0 R"}),c.matrix&&K.push({key:"Matrix",value:"["+c.matrix.toString()+"]"}),Tr({data:c.stream,additionalKeyValues:K,objectId:c.objectNumber}),D("endobj")},Bo=function(c){for(var b in c.objectNumber=je(),D("<<"),c)switch(b){case"opacity":D("/ca "+L(c[b]));break;case"stroke-opacity":D("/CA "+L(c[b]))}D(">>"),D("endobj")},Qi=function(c){or(c.resourcesOid,!0),D("<<"),D("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var b in D("/Font <<"),Bt)Bt.hasOwnProperty(b)&&(y===!1||y===!0&&x.hasOwnProperty(b))&&D("/"+b+" "+Bt[b].objectNumber+" 0 R");D(">>")})(),(function(){if(Object.keys(Ht).length>0){for(var b in D("/Shading <<"),Ht)Ht.hasOwnProperty(b)&&Ht[b]instanceof bi&&Ht[b].objectNumber>=0&&D("/"+b+" "+Ht[b].objectNumber+" 0 R");ve.publish("putShadingPatternDict"),D(">>")}})(),(function(b){if(Object.keys(Ht).length>0){for(var E in D("/Pattern <<"),Ht)Ht.hasOwnProperty(E)&&Ht[E]instanceof g.TilingPattern&&Ht[E].objectNumber>=0&&Ht[E].objectNumber<b&&D("/"+E+" "+Ht[E].objectNumber+" 0 R");ve.publish("putTilingPatternDict"),D(">>")}})(c.objectOid),(function(){if(Object.keys(te).length>0){var b;for(b in D("/ExtGState <<"),te)te.hasOwnProperty(b)&&te[b].objectNumber>=0&&D("/"+b+" "+te[b].objectNumber+" 0 R");ve.publish("putGStateDict"),D(">>")}})(),(function(){for(var b in D("/XObject <<"),fr)fr.hasOwnProperty(b)&&fr[b].objectNumber>=0&&D("/"+b+" "+fr[b].objectNumber+" 0 R");ve.publish("putXobjectDict"),D(">>")})(),D(">>"),D("endobj")},Ba=function(c){Qt[c.fontName]=Qt[c.fontName]||{},Qt[c.fontName][c.fontStyle]=c.id},Da=function(c,b,E,q,K){var pt={id:"F"+(Object.keys(Bt).length+1).toString(10),postScriptName:c,fontName:b,fontStyle:E,encoding:q,isStandardFont:K||!1,metadata:{}};return ve.publish("addFont",{font:pt,instance:this}),Bt[pt.id]=pt,Ba(pt),pt.id},Mr=g.__private__.pdfEscape=g.pdfEscape=function(c,b){return(function(E,q){var K,pt,yt,It,jt,Vt,ae,ge,Oe;if(yt=(q=q||{}).sourceEncoding||"Unicode",jt=q.outputEncoding,(q.autoencode||jt)&&Bt[Mt].metadata&&Bt[Mt].metadata[yt]&&Bt[Mt].metadata[yt].encoding&&(It=Bt[Mt].metadata[yt].encoding,!jt&&Bt[Mt].encoding&&(jt=Bt[Mt].encoding),!jt&&It.codePages&&(jt=It.codePages[0]),typeof jt=="string"&&(jt=It[jt]),jt)){for(ae=!1,Vt=[],K=0,pt=E.length;K<pt;K++)(ge=jt[E.charCodeAt(K)])?Vt.push(String.fromCharCode(ge)):Vt.push(E[K]),Vt[K].charCodeAt(0)>>8&&(ae=!0);E=Vt.join("")}for(K=E.length;ae===void 0&&K!==0;)E.charCodeAt(K-1)>>8&&(ae=!0),K--;if(!ae)return E;for(Vt=q.noBOM?[]:[254,255],K=0,pt=E.length;K<pt;K++){if((Oe=(ge=E.charCodeAt(K))>>8)>>8)throw new Error("Character at position "+K+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Vt.push(Oe),Vt.push(ge-(Oe<<8))}return String.fromCharCode.apply(void 0,Vt)})(c,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ta=g.__private__.beginPage=function(c){_t[++_e]=[],Jt[_e]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(c[0]),topRightY:Number(c[1])}},Ta(_e),st(_t[B])},Ra=function(c,b){var E,q,K;switch(e=b||e,typeof c=="string"&&(E=S(c.toLowerCase()),Array.isArray(E)&&(q=E[0],K=E[1])),Array.isArray(c)&&(q=c[0]*Gt,K=c[1]*Gt),isNaN(q)&&(q=a[0],K=a[1]),(q>14400||K>14400)&&(Le.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),q=Math.min(14400,q),K=Math.min(14400,K)),a=[q,K],e.substr(0,1)){case"l":K>q&&(a=[K,q]);break;case"p":q>K&&(a=[K,q])}ta(a),Wo(aa),D(Pi),sa!==0&&D(sa+" J"),la!==0&&D(la+" j"),ve.publish("addPage",{pageNumber:_e})},ea=function(c){c>0&&c<=_e&&(_t.splice(c,1),Jt.splice(c,1),_e--,B>_e&&(B=_e),this.setPage(B))},Ta=function(c){c>0&&c<=_e&&(B=c)},Ma=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return _t.length-1},qa=function(c,b,E){var q,K=void 0;return E=E||{},c=c!==void 0?c:Bt[Mt].fontName,b=b!==void 0?b:Bt[Mt].fontStyle,q=c.toLowerCase(),Qt[q]!==void 0&&Qt[q][b]!==void 0?K=Qt[q][b]:Qt[c]!==void 0&&Qt[c][b]!==void 0?K=Qt[c][b]:E.disableWarning===!1&&Le.warn("Unable to look up font label for font '"+c+"', '"+b+"'. Refer to getFontList() for available fonts."),K||E.noFallback||(K=Qt.times[b])==null&&(K=Qt.times.normal),K},ki=g.__private__.putInfo=function(){var c=je(),b=function(q){return q};for(var E in p!==null&&(b=Me.encryptor(c,0)),D("<<"),D("/Producer ("+Mr(b("jsPDF "+Rt.version))+")"),ie)ie.hasOwnProperty(E)&&ie[E]&&D("/"+E.substr(0,1).toUpperCase()+E.substr(1)+" ("+Mr(b(ie[E]))+")");D("/CreationDate ("+Mr(b(nt))+")"),D(">>"),D("endobj")},Do=g.__private__.putCatalog=function(c){var b=(c=c||{}).rootDictionaryObjId||Dn;switch(je(),D("<<"),D("/Type /Catalog"),D("/Pages "+b+" 0 R"),Tt||(Tt="fullwidth"),Tt){case"fullwidth":D("/OpenAction [3 0 R /FitH null]");break;case"fullheight":D("/OpenAction [3 0 R /FitV null]");break;case"fullpage":D("/OpenAction [3 0 R /Fit]");break;case"original":D("/OpenAction [3 0 R /XYZ null null 1]");break;default:var E=""+Tt;E.substr(E.length-1)==="%"&&(Tt=parseInt(Tt)/100),typeof Tt=="number"&&D("/OpenAction [3 0 R /XYZ null null "+L(Tt)+"]")}switch(Xt||(Xt="continuous"),Xt){case"continuous":D("/PageLayout /OneColumn");break;case"single":D("/PageLayout /SinglePage");break;case"two":case"twoleft":D("/PageLayout /TwoColumnLeft");break;case"tworight":D("/PageLayout /TwoColumnRight")}Ut&&D("/PageMode /"+Ut),ve.publish("putCatalog"),D(">>"),D("endobj")},Je=g.__private__.putTrailer=function(){D("trailer"),D("<<"),D("/Size "+(J+1)),D("/Root "+J+" 0 R"),D("/Info "+(J-1)+" 0 R"),p!==null&&D("/Encrypt "+Me.oid+" 0 R"),D("/ID [ <"+ht+"> <"+ht+"> ]"),D(">>")},Ua=g.__private__.putHeader=function(){D("%PDF-"+P),D("%ºß¬à")},za=g.__private__.putXRef=function(){var c="0000000000";D("xref"),D("0 "+(J+1)),D("0000000000 65535 f ");for(var b=1;b<=J;b++)typeof Z[b]=="function"?D((c+Z[b]()).slice(-10)+" 00000 n "):Z[b]!==void 0?D((c+Z[b]).slice(-10)+" 00000 n "):D("0000000000 00000 n ")},wn=g.__private__.buildDocument=function(){var c;J=0,it=0,lt=[],Z=[],vt=[],Dn=nr(),Wr=nr(),st(lt),ve.publish("buildDocument"),Ua(),an(),(function(){ve.publish("putAdditionalObjects");for(var E=0;E<vt.length;E++){var q=vt[E];or(q.objId,!0),D(q.content),D("endobj")}ve.publish("postPutAdditionalObjects")})(),c=[],(function(){for(var E in Bt)Bt.hasOwnProperty(E)&&(y===!1||y===!0&&x.hasOwnProperty(E))&&ni(Bt[E])})(),(function(){var E;for(E in te)te.hasOwnProperty(E)&&Bo(te[E])})(),(function(){for(var E in fr)fr.hasOwnProperty(E)&&Ni(fr[E])})(),(function(E){var q;for(q in Ht)Ht.hasOwnProperty(q)&&(Ht[q]instanceof bi?Li(Ht[q]):Ht[q]instanceof Vi&&Si(Ht[q],E))})(c),ve.publish("putResources"),c.forEach(Qi),Qi({resourcesOid:Wr,objectOid:Number.MAX_SAFE_INTEGER}),ve.publish("postPutResources"),p!==null&&(Me.oid=je(),D("<<"),D("/Filter /Standard"),D("/V "+Me.v),D("/R "+Me.r),D("/U <"+Me.toHexString(Me.U)+">"),D("/O <"+Me.toHexString(Me.O)+">"),D("/P "+Me.P),D(">>"),D("endobj")),ki(),Do();var b=it;return za(),Je(),D("startxref"),D(""+b),D("%%EOF"),st(_t[B]),lt.join(`
|
|
85
|
-
`)},ii=g.__private__.getBlob=function(c){return new Blob([re(c)],{type:"application/pdf"})},Yr=g.output=g.__private__.output=(Rr=function(c,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",c){case void 0:return wn();case"save":g.save(b.filename);break;case"arraybuffer":return re(wn());case"blob":return ii(wn());case"bloburi":case"bloburl":if(Yt.URL!==void 0&&typeof Yt.URL.createObjectURL=="function")return Yt.URL&&Yt.URL.createObjectURL(ii(wn()))||void 0;Le.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var E="",q=wn();try{E=Mu(q)}catch{E=Mu(unescape(encodeURIComponent(q)))}return"data:application/pdf;filename="+b.filename+";base64,"+E;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var K="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",pt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(K=b.pdfObjectUrl,pt="");var yt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+K+'"'+pt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(b)+");<\/script></body></html>",It=Yt.open();return It!==null&&It.document.write(yt),It}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var jt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(b.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+b.filename+'" width="500px" height="400px" /></body></html>',Vt=Yt.open();if(Vt!==null){Vt.document.write(jt);var ae=this;Vt.document.documentElement.querySelector("#pdfViewer").onload=function(){Vt.document.title=b.filename,Vt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ae.output("bloburl"))}}return Vt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Yt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ge='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",b)+'"></iframe></body></html>',Oe=Yt.open();if(Oe!==null&&(Oe.document.write(ge),Oe.document.title=b.filename),Oe||typeof safari>"u")return Oe;break;case"datauri":case"dataurl":return Yt.document.location.href=this.output("datauristring",b);default:return null}},Rr.foo=function(){try{return Rr.apply(this,arguments)}catch(E){var c=E.stack||"";~c.indexOf(" at ")&&(c=c.split(" at ")[1]);var b="Error in function "+c.split(`
|
|
86
|
-
`)[0].split("<")[0]+": "+E.message;if(!Yt.console)throw new Error(b);Yt.console.error(b,E),Yt.alert&&alert(b)}},Rr.foo.bar=Rr,Rr.foo),ai=function(c){return Array.isArray(ti)===!0&&ti.indexOf(c)>-1};switch(n){case"pt":Gt=1;break;case"mm":Gt=72/25.4;break;case"cm":Gt=72/2.54;break;case"in":Gt=72;break;case"px":Gt=ai("px_scaling")==1?.75:96/72;break;case"pc":case"em":Gt=12;break;case"ex":Gt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);Gt=n}var Me=null;wt(),rt();var ra=g.__private__.getPageInfo=g.getPageInfo=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Jt[c].objId,pageNumber:c,pageContext:Jt[c]}},Ro=g.__private__.getPageInfoByObjId=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in Jt)if(Jt[b].objId===c)break;return ra(b)},To=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:Jt[B].objId,pageNumber:B,pageContext:Jt[B]}};g.addPage=function(){return Ra.apply(this,arguments),this},g.setPage=function(){return Ta.apply(this,arguments),st.call(this,_t[B]),this},g.insertPage=function(c){return this.addPage(),this.movePage(B,c),this},g.movePage=function(c,b){var E,q;if(c>b){E=_t[c],q=Jt[c];for(var K=c;K>b;K--)_t[K]=_t[K-1],Jt[K]=Jt[K-1];_t[b]=E,Jt[b]=q,this.setPage(b)}else if(c<b){E=_t[c],q=Jt[c];for(var pt=c;pt<b;pt++)_t[pt]=_t[pt+1],Jt[pt]=Jt[pt+1];_t[b]=E,Jt[b]=q,this.setPage(b)}return this},g.deletePage=function(){return ea.apply(this,arguments),this},g.__private__.text=g.text=function(c,b,E,q,K){var pt,yt,It,jt,Vt,ae,ge,Oe,Ke,xe=(q=q||{}).scope||this;if(typeof c=="number"&&typeof b=="number"&&(typeof E=="string"||Array.isArray(E))){var Ze=E;E=b,b=c,c=Ze}if(arguments[3]instanceof Wt==0?(It=arguments[4],jt=arguments[5],me(ge=arguments[3])==="object"&&ge!==null||(typeof It=="string"&&(jt=It,It=null),typeof ge=="string"&&(jt=ge,ge=null),typeof ge=="number"&&(It=ge,ge=null),q={flags:ge,angle:It,align:jt})):(T("The transform parameter of text() with a Matrix value"),Ke=K),isNaN(b)||isNaN(E)||c==null)throw new Error("Invalid arguments passed to jsPDF.text");if(c.length===0)return xe;var $e,sr="",_n=typeof q.lineHeightFactor=="number"?q.lineHeightFactor:si,Mn=xe.internal.scaleFactor;function Xo(ke){return ke=ke.split(" ").join(Array(q.TabLen||9).join(" ")),Mr(ke,ge)}function Ga(ke){for(var Pe,Ue=ke.concat(),ze=[],kn=Ue.length;kn--;)typeof(Pe=Ue.shift())=="string"?ze.push(Pe):Array.isArray(ke)&&(Pe.length===1||Pe[1]===void 0&&Pe[2]===void 0)?ze.push(Pe[0]):ze.push([Pe[0],Pe[1],Pe[2]]);return ze}function ci(ke,Pe){var Ue;if(typeof ke=="string")Ue=Pe(ke)[0];else if(Array.isArray(ke)){for(var ze,kn,Mi=ke.concat(),cn=[],wa=Mi.length;wa--;)typeof(ze=Mi.shift())=="string"?cn.push(Pe(ze)[0]):Array.isArray(ze)&&typeof ze[0]=="string"&&(kn=Pe(ze[0],ze[1],ze[2]),cn.push([kn[0],kn[1],kn[2]]));Ue=cn}return Ue}var Jr=!1,da=!0;if(typeof c=="string")Jr=!0;else if(Array.isArray(c)){var Ei=c.concat();yt=[];for(var qn,ir=Ei.length;ir--;)(typeof(qn=Ei.shift())!="string"||Array.isArray(qn)&&typeof qn[0]!="string")&&(da=!1);Jr=da}if(Jr===!1)throw new Error('Type of text must be string or Array. "'+c+'" is not recognized.');typeof c=="string"&&(c=c.match(/[\r?\n]/)?c.split(/\r\n|\r|\n/g):[c]);var Nn=At/xe.internal.scaleFactor,Ln=Nn*(_n-1);switch(q.baseline){case"bottom":E-=Ln;break;case"top":E+=Nn-Ln;break;case"hanging":E+=Nn-2*Ln;break;case"middle":E+=Nn/2-Ln}if((ae=q.maxWidth||0)>0&&(typeof c=="string"?c=xe.splitTextToSize(c,ae):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(ke,Pe){return ke.concat(xe.splitTextToSize(Pe,ae))},[]))),pt={text:c,x:b,y:E,options:q,mutex:{pdfEscape:Mr,activeFontKey:Mt,fonts:Bt,activeFontSize:At}},ve.publish("preProcessText",pt),c=pt.text,It=(q=pt.options).angle,Ke instanceof Wt==0&&It&&typeof It=="number"){It*=Math.PI/180,q.rotationDirection===0&&(It=-It),M===z&&(It=-It);var Oi=Math.cos(It),pa=Math.sin(It);Ke=new Wt(Oi,pa,-pa,Oi,0,0)}else It&&It instanceof Wt&&(Ke=It);M!==z||Ke||(Ke=yn),(Vt=q.charSpace||Fi)!==void 0&&(sr+=$(G(Vt))+` Tc
|
|
87
|
-
`,this.setCharSpace(this.getCharSpace()||0)),(Oe=q.horizontalScale)!==void 0&&(sr+=$(100*Oe)+` Tz
|
|
88
|
-
`),q.lang;var mr=-1,Va=q.renderingMode!==void 0?q.renderingMode:q.stroke,ji=xe.internal.getCurrentPageInfo().pageContext;switch(Va){case 0:case!1:case"fill":mr=0;break;case 1:case!0:case"stroke":mr=1;break;case 2:case"fillThenStroke":mr=2;break;case 3:case"invisible":mr=3;break;case 4:case"fillAndAddForClipping":mr=4;break;case 5:case"strokeAndAddPathForClipping":mr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":mr=6;break;case 7:case"addToPathForClipping":mr=7}var Ya=ji.usedRenderingMode!==void 0?ji.usedRenderingMode:-1;mr!==-1?sr+=mr+` Tr
|
|
89
|
-
`:Ya!==-1&&(sr+=`0 Tr
|
|
90
|
-
`),mr!==-1&&(ji.usedRenderingMode=mr),jt=q.align||"left";var Qe,qr=At*_n,ga=xe.internal.pageSize.getWidth(),va=Bt[Mt];Vt=q.charSpace||Fi,ae=q.maxWidth||0,ge=Object.assign({autoencode:!0,noBOM:!0},q.flags);var Un=[],Bi=function(ke){return xe.getStringUnitWidth(ke,{font:va,charSpace:Vt,fontSize:At,doKerning:!1})*At/Mn};if(Object.prototype.toString.call(c)==="[object Array]"){var xr;yt=Ga(c),jt!=="left"&&(Qe=yt.map(Bi));var Ar,di=0;if(jt==="right"){b-=Qe[0],c=[],ir=yt.length;for(var ln=0;ln<ir;ln++)ln===0?(Ar=xn(b),xr=An(E)):(Ar=G(di-Qe[ln]),xr=-qr),c.push([yt[ln],Ar,xr]),di=Qe[ln]}else if(jt==="center"){b-=Qe[0]/2,c=[],ir=yt.length;for(var zn=0;zn<ir;zn++)zn===0?(Ar=xn(b),xr=An(E)):(Ar=G((di-Qe[zn])/2),xr=-qr),c.push([yt[zn],Ar,xr]),di=Qe[zn]}else if(jt==="left"){c=[],ir=yt.length;for(var ma=0;ma<ir;ma++)c.push(yt[ma])}else if(jt==="justify"&&va.encoding==="Identity-H"){c=[],ir=yt.length,ae=ae!==0?ae:ga;for(var Hn=0,qe=0;qe<ir;qe++)if(xr=qe===0?An(E):-qr,Ar=qe===0?xn(b):Hn,qe<ir-1){var Zo=G((ae-Qe[qe])/(yt[qe].split(" ").length-1)),un=yt[qe].split(" ");c.push([un[0]+" ",Ar,xr]),Hn=0;for(var hn=1;hn<un.length;hn++){var Di=(Bi(un[hn-1]+" "+un[hn])-Bi(un[hn]))*Mn+Zo;hn==un.length-1?c.push([un[hn],Di,0]):c.push([un[hn]+" ",Di,0]),Hn-=Di}}else c.push([yt[qe],Ar,xr]);c.push(["",Hn,0])}else{if(jt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(c=[],ir=yt.length,ae=ae!==0?ae:ga,qe=0;qe<ir;qe++)xr=qe===0?An(E):-qr,Ar=qe===0?xn(b):0,qe<ir-1?Un.push($(G((ae-Qe[qe])/(yt[qe].split(" ").length-1)))):Un.push(0),c.push([yt[qe],Ar,xr])}}(typeof q.R2L=="boolean"?q.R2L:ne)===!0&&(c=ci(c,function(ke,Pe,Ue){return[ke.split("").reverse().join(""),Pe,Ue]})),pt={text:c,x:b,y:E,options:q,mutex:{pdfEscape:Mr,activeFontKey:Mt,fonts:Bt,activeFontSize:At}},ve.publish("postProcessText",pt),c=pt.text,$e=pt.mutex.isHex||!1;var ba=Bt[Mt].encoding;ba!=="WinAnsiEncoding"&&ba!=="StandardEncoding"||(c=ci(c,function(ke,Pe,Ue){return[Xo(ke),Pe,Ue]})),yt=Ga(c),c=[];for(var Ri,Ti,pi,gi=Array.isArray(yt[0])?1:0,Sn="",ya=function(ke,Pe,Ue){var ze="";return Ue instanceof Wt?(Ue=typeof q.angle=="number"?bn(Ue,new Wt(1,0,0,1,ke,Pe)):bn(new Wt(1,0,0,1,ke,Pe),Ue),M===z&&(Ue=bn(new Wt(1,0,0,-1,0,0),Ue)),ze=Ue.join(" ")+` Tm
|
|
91
|
-
`):ze=$(ke)+" "+$(Pe)+` Td
|
|
92
|
-
`,ze},kr=0;kr<yt.length;kr++){switch(Sn="",gi){case 1:pi=($e?"<":"(")+yt[kr][0]+($e?">":")"),Ri=parseFloat(yt[kr][1]),Ti=parseFloat(yt[kr][2]);break;case 0:pi=($e?"<":"(")+yt[kr]+($e?">":")"),Ri=xn(b),Ti=An(E)}Un!==void 0&&Un[kr]!==void 0&&(Sn=Un[kr]+` Tw
|
|
93
|
-
`),kr===0?c.push(Sn+ya(Ri,Ti,Ke)+pi):gi===0?c.push(Sn+pi):gi===1&&c.push(Sn+ya(Ri,Ti,Ke)+pi)}c=gi===0?c.join(` Tj
|
|
94
|
-
T* `):c.join(` Tj
|
|
95
|
-
`),c+=` Tj
|
|
96
|
-
`;var fn=`BT
|
|
97
|
-
/`;return fn+=Mt+" "+At+` Tf
|
|
98
|
-
`,fn+=$(At*_n)+` TL
|
|
99
|
-
`,fn+=li+`
|
|
100
|
-
`,fn+=sr,fn+=c,D(fn+="ET"),x[Mt]=!0,xe};var Mo=g.__private__.clip=g.clip=function(c){return D(c==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return Mo("evenodd")},g.__private__.discardPath=g.discardPath=function(){return D("n"),this};var on=g.__private__.isValidStyle=function(c){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(c)!==-1&&(b=!0),b};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(c){return on(c)&&(f=c),this};var Ha=g.__private__.getStyle=g.getStyle=function(c){var b=f;switch(c){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=c}return b},Wa=g.close=function(){return D("h"),this};g.stroke=function(){return D("S"),this},g.fill=function(c){return Rn("f",c),this},g.fillEvenOdd=function(c){return Rn("f*",c),this},g.fillStroke=function(c){return Rn("B",c),this},g.fillStrokeEvenOdd=function(c){return Rn("B*",c),this};var Rn=function(c,b){me(b)==="object"?Uo(b,c):D(c)},na=function(c){c===null||M===z&&c===void 0||(c=Ha(c),D(c))};function qo(c,b,E,q,K){var pt=new Vi(b||this.boundingBox,E||this.xStep,q||this.yStep,this.gState,K||this.matrix);pt.stream=this.stream;var yt=c+"$$"+this.cloneIndex+++"$$";return Dr(yt,pt),pt}var Uo=function(c,b){var E=ue[c.key],q=Ht[E];if(q instanceof bi)D("q"),D(zo(b)),q.gState&&g.setGState(q.gState),D(c.matrix.toString()+" cm"),D("/"+E+" sh"),D("Q");else if(q instanceof Vi){var K=new Wt(1,0,0,-1,0,Sr());c.matrix&&(K=K.multiply(c.matrix||yn),E=qo.call(q,c.key,c.boundingBox,c.xStep,c.yStep,K).id),D("q"),D("/Pattern cs"),D("/"+E+" scn"),q.gState&&g.setGState(q.gState),D(b),D("Q")}},zo=function(c){switch(c){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},ia=g.moveTo=function(c,b){return D($(G(c))+" "+$(U(b))+" m"),this},oi=g.lineTo=function(c,b){return D($(G(c))+" "+$(U(b))+" l"),this},Tn=g.curveTo=function(c,b,E,q,K,pt){return D([$(G(c)),$(U(b)),$(G(E)),$(U(q)),$(G(K)),$(U(pt)),"c"].join(" ")),this};g.__private__.line=g.line=function(c,b,E,q,K){if(isNaN(c)||isNaN(b)||isNaN(E)||isNaN(q)||!on(K))throw new Error("Invalid arguments passed to jsPDF.line");return M===W?this.lines([[E-c,q-b]],c,b,[1,1],K||"S"):this.lines([[E-c,q-b]],c,b,[1,1]).stroke()},g.__private__.lines=g.lines=function(c,b,E,q,K,pt){var yt,It,jt,Vt,ae,ge,Oe,Ke,xe,Ze,$e,sr;if(typeof c=="number"&&(sr=E,E=b,b=c,c=sr),q=q||[1,1],pt=pt||!1,isNaN(b)||isNaN(E)||!Array.isArray(c)||!Array.isArray(q)||!on(K)||typeof pt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ia(b,E),yt=q[0],It=q[1],Vt=c.length,Ze=b,$e=E,jt=0;jt<Vt;jt++)(ae=c[jt]).length===2?(Ze=ae[0]*yt+Ze,$e=ae[1]*It+$e,oi(Ze,$e)):(ge=ae[0]*yt+Ze,Oe=ae[1]*It+$e,Ke=ae[2]*yt+Ze,xe=ae[3]*It+$e,Ze=ae[4]*yt+Ze,$e=ae[5]*It+$e,Tn(ge,Oe,Ke,xe,Ze,$e));return pt&&Wa(),na(K),this},g.path=function(c){for(var b=0;b<c.length;b++){var E=c[b],q=E.c;switch(E.op){case"m":ia(q[0],q[1]);break;case"l":oi(q[0],q[1]);break;case"c":Tn.apply(this,q);break;case"h":Wa()}}return this},g.__private__.rect=g.rect=function(c,b,E,q,K){if(isNaN(c)||isNaN(b)||isNaN(E)||isNaN(q)||!on(K))throw new Error("Invalid arguments passed to jsPDF.rect");return M===W&&(q=-q),D([$(G(c)),$(U(b)),$(G(E)),$(G(q)),"re"].join(" ")),na(K),this},g.__private__.triangle=g.triangle=function(c,b,E,q,K,pt,yt){if(isNaN(c)||isNaN(b)||isNaN(E)||isNaN(q)||isNaN(K)||isNaN(pt)||!on(yt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[E-c,q-b],[K-E,pt-q],[c-K,b-pt]],c,b,[1,1],yt,!0),this},g.__private__.roundedRect=g.roundedRect=function(c,b,E,q,K,pt,yt){if(isNaN(c)||isNaN(b)||isNaN(E)||isNaN(q)||isNaN(K)||isNaN(pt)||!on(yt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var It=4/3*(Math.SQRT2-1);return K=Math.min(K,.5*E),pt=Math.min(pt,.5*q),this.lines([[E-2*K,0],[K*It,0,K,pt-pt*It,K,pt],[0,q-2*pt],[0,pt*It,-K*It,pt,-K,pt],[2*K-E,0],[-K*It,0,-K,-pt*It,-K,-pt],[0,2*pt-q],[0,-pt*It,K*It,-pt,K,-pt]],c+K,b,[1,1],yt,!0),this},g.__private__.ellipse=g.ellipse=function(c,b,E,q,K){if(isNaN(c)||isNaN(b)||isNaN(E)||isNaN(q)||!on(K))throw new Error("Invalid arguments passed to jsPDF.ellipse");var pt=4/3*(Math.SQRT2-1)*E,yt=4/3*(Math.SQRT2-1)*q;return ia(c+E,b),Tn(c+E,b-yt,c+pt,b-q,c,b-q),Tn(c-pt,b-q,c-E,b-yt,c-E,b),Tn(c-E,b+yt,c-pt,b+q,c,b+q),Tn(c+pt,b+q,c+E,b+yt,c+E,b),na(K),this},g.__private__.circle=g.circle=function(c,b,E,q){if(isNaN(c)||isNaN(b)||isNaN(E)||!on(q))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(c,b,E,E,q)},g.setFont=function(c,b,E){return E&&(b=ot(b,E)),Mt=qa(c,b,{disableWarning:!1}),this};var Ho=g.__private__.getFont=g.getFont=function(){return Bt[qa.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var c,b,E={};for(c in Qt)if(Qt.hasOwnProperty(c))for(b in E[c]=[],Qt[c])Qt[c].hasOwnProperty(b)&&E[c].push(b);return E},g.addFont=function(c,b,E,q,K){var pt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&pt.indexOf(arguments[3])!==-1?K=arguments[3]:arguments[3]&&pt.indexOf(arguments[3])==-1&&(E=ot(E,q)),Da.call(this,c,b,E,K=K||"Identity-H")};var si,aa=r.lineWidth||.200025,Kt=g.__private__.getLineWidth=g.getLineWidth=function(){return aa},Wo=g.__private__.setLineWidth=g.setLineWidth=function(c){return aa=c,D($(G(c))+" w"),this};g.__private__.setLineDash=Rt.API.setLineDash=Rt.API.setLineDashPattern=function(c,b){if(c=c||[],b=b||0,isNaN(b)||!Array.isArray(c))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return c=c.map(function(E){return $(G(E))}).join(" "),b=$(G(b)),D("["+c+"] "+b+" d"),this};var Go=g.__private__.getLineHeight=g.getLineHeight=function(){return At*si};g.__private__.getLineHeight=g.getLineHeight=function(){return At*si};var Vo=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(c){return typeof(c=c||1.15)=="number"&&(si=c),this},Yo=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return si};Vo(r.lineHeight);var xn=g.__private__.getHorizontalCoordinate=function(c){return G(c)},An=g.__private__.getVerticalCoordinate=function(c){return M===z?c:Jt[B].mediaBox.topRightY-Jt[B].mediaBox.bottomLeftY-G(c)},Jo=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(c){return $(xn(c))},Ko=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(c){return $(An(c))},Pi=r.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return nn(Pi)},g.__private__.setStrokeColor=g.setDrawColor=function(c,b,E,q){return Pi=Gr({ch1:c,ch2:b,ch3:E,ch4:q,pdfColorType:"draw",precision:2}),D(Pi),this};var oa=r.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return nn(oa)},g.__private__.setFillColor=g.setFillColor=function(c,b,E,q){return oa=Gr({ch1:c,ch2:b,ch3:E,ch4:q,pdfColorType:"fill",precision:2}),D(oa),this};var li=r.textColor||"0 g",Ci=g.__private__.getTextColor=g.getTextColor=function(){return nn(li)};g.__private__.setTextColor=g.setTextColor=function(c,b,E,q){return li=Gr({ch1:c,ch2:b,ch3:E,ch4:q,pdfColorType:"text",precision:3}),this};var Fi=r.charSpace,$o=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(Fi||0)};g.__private__.setCharSpace=g.setCharSpace=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Fi=c,this};var sa=0;g.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},g.__private__.setLineCap=g.setLineCap=function(c){var b=g.CapJoinStyles[c];if(b===void 0)throw new Error("Line cap style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return sa=b,D(b+" J"),this};var la=0;g.__private__.setLineJoin=g.setLineJoin=function(c){var b=g.CapJoinStyles[c];if(b===void 0)throw new Error("Line join style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return la=b,D(b+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(c){if(c=c||0,isNaN(c))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return D($(G(c))+" M"),this},g.GState=Po,g.setGState=function(c){(c=typeof c=="string"?te[Te[c]]:ui(null,c)).equals(Xe)||(D("/"+c.id+" gs"),Xe=c)};var ui=function(c,b){if(!c||!Te[c]){var E=!1;for(var q in te)if(te.hasOwnProperty(q)&&te[q].equals(b)){E=!0;break}if(E)b=te[q];else{var K="GS"+(Object.keys(te).length+1).toString(10);te[K]=b,b.id=K}return c&&(Te[c]=b.id),ve.publish("addGState",b),b}};g.addGState=function(c,b){return ui(c,b),this},g.saveGraphicsState=function(){return D("q"),Ae.push({key:Mt,size:At,color:li}),this},g.restoreGraphicsState=function(){D("Q");var c=Ae.pop();return Mt=c.key,At=c.size,li=c.color,Xe=null,this},g.setCurrentTransformationMatrix=function(c){return D(c.toString()+" cm"),this},g.comment=function(c){return D("#"+c),this};var hi=function(c,b){var E=c||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return E},set:function(pt){isNaN(pt)||(E=parseFloat(pt))}});var q=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return q},set:function(pt){isNaN(pt)||(q=parseFloat(pt))}});var K="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return K},set:function(pt){K=pt.toString()}}),this},ua=function(c,b,E,q){hi.call(this,c,b),this.type="rect";var K=E||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return K},set:function(yt){isNaN(yt)||(K=parseFloat(yt))}});var pt=q||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pt},set:function(yt){isNaN(yt)||(pt=parseFloat(yt))}}),this},Ii=function(){this.page=_e,this.currentPage=B,this.pages=_t.slice(0),this.pagesContext=Jt.slice(0),this.x=qt,this.y=Se,this.matrix=pe,this.width=fa(B),this.height=Sr(B),this.outputDestination=Pt,this.id="",this.objectNumber=-1};Ii.prototype.restore=function(){_e=this.page,B=this.currentPage,Jt=this.pagesContext,_t=this.pages,qt=this.x,Se=this.y,pe=this.matrix,ca(B,this.width),sn(B,this.height),Pt=this.outputDestination};var ha=function(c,b,E,q,K){rn.push(new Ii),_e=B=0,_t=[],qt=c,Se=b,pe=K,ta([E,q])};for(var fi in g.beginFormObject=function(c,b,E,q,K){return ha(c,b,E,q,K),this},g.endFormObject=function(c){return(function(b){if(mn[b])rn.pop().restore();else{var E=new Ii,q="Xo"+(Object.keys(fr).length+1).toString(10);E.id=q,mn[b]=q,fr[q]=E,ve.publish("addFormObject",E),rn.pop().restore()}})(c),this},g.doFormObject=function(c,b){var E=fr[mn[c]];return D("q"),D(b.toString()+" cm"),D("/"+E.id+" Do"),D("Q"),this},g.getFormObject=function(c){var b=fr[mn[c]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},g.save=function(c,b){return c=c||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(mi(ii(wn()),c),typeof mi.unload=="function"&&Yt.setTimeout&&setTimeout(mi.unload,911),this):new Promise(function(E,q){try{var K=mi(ii(wn()),c);typeof mi.unload=="function"&&Yt.setTimeout&&setTimeout(mi.unload,911),E(K)}catch(pt){q(pt.message)}})},Rt.API)Rt.API.hasOwnProperty(fi)&&(fi==="events"&&Rt.API.events.length?(function(c,b){var E,q,K;for(K=b.length-1;K!==-1;K--)E=b[K][0],q=b[K][1],c.subscribe.apply(c,[E].concat(typeof q=="function"?[q]:q))})(ve,Rt.API.events):g[fi]=Rt.API[fi]);var fa=g.getPageWidth=function(c){return(Jt[c=c||B].mediaBox.topRightX-Jt[c].mediaBox.bottomLeftX)/Gt},ca=g.setPageWidth=function(c,b){Jt[c].mediaBox.topRightX=b*Gt+Jt[c].mediaBox.bottomLeftX},Sr=g.getPageHeight=function(c){return(Jt[c=c||B].mediaBox.topRightY-Jt[c].mediaBox.bottomLeftY)/Gt},sn=g.setPageHeight=function(c,b){Jt[c].mediaBox.topRightY=b*Gt+Jt[c].mediaBox.bottomLeftY};return g.internal={pdfEscape:Mr,getStyle:Ha,getFont:Ho,getFontSize:St,getCharSpace:$o,getTextColor:Ci,getLineHeight:Go,getLineHeightFactor:Yo,getLineWidth:Kt,write:le,getHorizontalCoordinate:xn,getVerticalCoordinate:An,getCoordinateString:Jo,getVerticalCoordinateString:Ko,collections:{},newObject:je,newAdditionalObject:ei,newObjectDeferred:nr,newObjectDeferredBegin:or,getFilters:Vr,putStream:Tr,events:ve,scaleFactor:Gt,pageSize:{getWidth:function(){return fa(B)},setWidth:function(c){ca(B,c)},getHeight:function(){return Sr(B)},setHeight:function(c){sn(B,c)}},encryptionOptions:p,encryption:Me,getEncryptor:function(c){return p!==null?Me.encryptor(c,0):function(b){return b}},output:Yr,getNumberOfPages:Ma,pages:_t,out:D,f2:L,f3:O,getPageInfo:ra,getPageInfoByObjId:Ro,getCurrentPageInfo:To,getPDFVersion:C,Point:hi,Rectangle:ua,Matrix:Wt,hasHotfix:ai},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return fa(B)},set:function(c){ca(B,c)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return Sr(B)},set:function(c){sn(B,c)},enumerable:!0,configurable:!0}),(function(c){for(var b=0,E=zt.length;b<E;b++){var q=Da.call(this,c[b][0],c[b][1],c[b][2],zt[b][3],!0);y===!1&&(x[q]=!0);var K=c[b][0].split("-");Ba({id:q,fontName:K[0],fontStyle:K[1]||""})}ve.publish("addFonts",{fonts:Bt,dictionary:Qt})}).call(g,zt),Mt="F1",Ra(a,e),ve.publish("initialized"),g}Wi.prototype.lsbFirstWord=function(r){return String.fromCharCode(255&r,r>>8&255,r>>16&255,r>>24&255)},Wi.prototype.toHexString=function(r){return r.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Wi.prototype.hexToBytes=function(r){for(var t=[],e=0;e<r.length;e+=2)t.push(String.fromCharCode(parseInt(r.substr(e,2),16)));return t.join("")},Wi.prototype.processOwnerPassword=function(r,t){return Js(Ys(t).substr(0,5),r)},Wi.prototype.encryptor=function(r,t){var e=Ys(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return Js(e,n)}},Po.prototype.equals=function(r){var t,e="id,objectNumber,equals";if(!r||me(r)!==me(this))return!1;var n=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!r.hasOwnProperty(t)||this[t]!==r[t])return!1;n++}for(t in r)r.hasOwnProperty(t)&&e.indexOf(t)<0&&n--;return n===0},Rt.API={events:[]},Rt.version="3.0.2";var Re=Rt.API,il=1,_i=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},zi=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},$t=function(r){return r.toFixed(2)},Xn=function(r){return r.toFixed(5)};Re.__acroform__={};var Lr=function(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r},Hu=function(r){return r*il},pn=function(r){var t=new Xh,e=Ft.internal.getHeight(r)||0,n=Ft.internal.getWidth(r)||0;return t.BBox=[0,0,Number($t(n)),Number($t(e))],t},g2=Re.__acroform__.setBit=function(r,t){if(r=r||0,t=t||0,isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|1<<t},v2=Re.__acroform__.clearBit=function(r,t){if(r=r||0,t=t||0,isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&~(1<<t)},m2=Re.__acroform__.getBit=function(r,t){if(isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return r&1<<t?1:0},Ge=Re.__acroform__.getBitForPdf=function(r,t){if(isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return m2(r,t-1)},Ve=Re.__acroform__.setBitForPdf=function(r,t){if(isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return g2(r,t-1)},Ye=Re.__acroform__.clearBitForPdf=function(r,t){if(isNaN(r)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return v2(r,t-1)},b2=Re.__acroform__.calculateCoordinates=function(r,t){var e=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,a=r[0],i=r[1],h=r[2],l=r[3],u={};return u.lowerLeft_X=e(a)||0,u.lowerLeft_Y=n(i+l)||0,u.upperRight_X=e(a+h)||0,u.upperRight_Y=n(i)||0,[Number($t(u.lowerLeft_X)),Number($t(u.lowerLeft_Y)),Number($t(u.upperRight_X)),Number($t(u.upperRight_Y))]},y2=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var t=[],e=r._V||r.DV,n=Ks(r,e),a=r.scope.internal.getFont(r.fontName,r.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(r.scope.__private__.encodeColorString(r.color)),t.push("/"+a+" "+$t(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=pn(r);return i.scope=r.scope,i.stream=t.join(`
|
|
101
|
-
`),i}},Ks=function(r,t){var e=r.fontSize===0?r.maxFontSize:r.fontSize,n={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=r.multiline?a.map(function(L){return L.split(`
|
|
102
|
-
`)}):a.map(function(L){return[L]});var i=e,h=Ft.internal.getHeight(r)||0;h=h<0?-h:h;var l=Ft.internal.getWidth(r)||0;l=l<0?-l:l;var u=function(L,O,G){if(L+1<a.length){var U=O+" "+a[L+1][0];return mo(U,r,G).width<=l-4}return!1};i++;t:for(;i>0;){t="",i--;var f,p,y=mo("3",r,i).height,x=r.multiline?h-i:(h-y)/2,g=x+=2,P=0,C=0,j=0;if(i<=0){t=`(...) Tj
|
|
103
|
-
`,t+="% Width of Text: "+mo(t,r,i=12).width+", FieldWidth:"+l+`
|
|
104
|
-
`;break}for(var S="",W=0,z=0;z<a.length;z++)if(a.hasOwnProperty(z)){var M=!1;if(a[z].length!==1&&j!==a[z].length-1){if((y+2)*(W+2)+2>h)continue t;S+=a[z][j],M=!0,C=z,z--}else{S=(S+=a[z][j]+" ").substr(S.length-1)==" "?S.substr(0,S.length-1):S;var at=parseInt(z),mt=u(at,S,i),ot=z>=a.length-1;if(mt&&!ot){S+=" ",j=0;continue}if(mt||ot){if(ot)C=at;else if(r.multiline&&(y+2)*(W+2)+2>h)continue t}else{if(!r.multiline||(y+2)*(W+2)+2>h)continue t;C=at}}for(var $="",T=P;T<=C;T++){var et=a[T];if(r.multiline){if(T===C){$+=et[j]+" ",j=(j+1)%et.length;continue}if(T===P){$+=et[et.length-1]+" ";continue}}$+=et[0]+" "}switch($=$.substr($.length-1)==" "?$.substr(0,$.length-1):$,p=mo($,r,i).width,r.textAlign){case"right":f=l-p-2;break;case"center":f=(l-p)/2;break;default:f=2}t+=$t(f)+" "+$t(g)+` Td
|
|
105
|
-
`,t+="("+_i($)+`) Tj
|
|
106
|
-
`,t+=-$t(f)+` 0 Td
|
|
107
|
-
`,g=-(i+2),p=0,P=M?C:C+1,W++,S=""}break}return n.text=t,n.fontSize=i,n},mo=function(r,t,e){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(r,{font:n,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},w2={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},x2=function(r,t){var e={type:"reference",object:r};t.internal.getPageInfo(r.page).pageContext.annotations.find(function(n){return n.type===e.type&&n.object===e.object})===void 0&&t.internal.getPageInfo(r.page).pageContext.annotations.push(e)},A2=function(r,t){if(t.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(tn.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(w2)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");il=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new Zh,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.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})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in n)if(n.hasOwnProperty(a)){var i=n[a];i.objId=void 0,i.hasAnnotation&&x2(i,e)}})(r)}),r.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")})(r)}),r.internal.events.subscribe("postPutPages",function(e){(function(n,a){var i=!n;for(var h in n||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(h)){var l=n[h],u=[],f=l.Rect;if(l.Rect&&(l.Rect=b2(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Ft.createDefaultAppearanceStream(l),me(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(u=l.getKeyValueListForStream()),l.Rect=f,l.hasAppearanceStream&&!l.appearanceStreamContent){var p=y2(l);u.push({key:"AP",value:"<</N "+p+">>"}),a.internal.acroformPlugin.xForms.push(p)}if(l.appearanceStreamContent){var y="";for(var x in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(x)){var g=l.appearanceStreamContent[x];if(y+="/"+x+" ",y+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var h in g)if(g.hasOwnProperty(h)){var P=g[h];typeof P=="function"&&(P=P.call(a,l)),y+="/"+h+" "+P+" ",a.internal.acroformPlugin.xForms.indexOf(P)>=0||a.internal.acroformPlugin.xForms.push(P)}}else typeof(P=g)=="function"&&(P=P.call(a,l)),y+="/"+h+" "+P,a.internal.acroformPlugin.xForms.indexOf(P)>=0||a.internal.acroformPlugin.xForms.push(P);y+=">>"}u.push({key:"AP",value:`<<
|
|
108
|
-
`+y+">>"})}a.internal.putStream({additionalKeyValues:u,objectId:l.objId}),a.internal.out("endobj")}i&&(function(C,j){for(var S in C)if(C.hasOwnProperty(S)){var W=S,z=C[S];j.internal.newObjectDeferredBegin(z.objId,!0),me(z)==="object"&&typeof z.putStream=="function"&&z.putStream(),delete C[W]}})(a.internal.acroformPlugin.xForms,a)})(e,r)}),r.internal.acroformPlugin.isInitialized=!0}},$h=Re.__acroform__.arrayToPdfArray=function(r,t,e){var n=function(h){return h};if(Array.isArray(r)){for(var a="[",i=0;i<r.length;i++)switch(i!==0&&(a+=" "),me(r[i])){case"boolean":case"number":case"object":a+=r[i].toString();break;case"string":r[i].substr(0,1)!=="/"?(t!==void 0&&e&&(n=e.internal.getEncryptor(t)),a+="("+_i(n(r[i].toString()))+")"):a+=r[i].toString()}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Is=function(r,t,e){var n=function(a){return a};return t!==void 0&&e&&(n=e.internal.getEncryptor(t)),(r=r||"").toString(),"("+_i(n(r))+")"},gn=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(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};gn.prototype.toString=function(){return this.objId+" 0 R"},gn.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},gn.prototype.getKeyValueListForStream=function(){var r=[],t=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var n=t[e],a=this[n];a&&(Array.isArray(a)?r.push({key:n,value:$h(a,this.objId,this.scope)}):a instanceof gn?(a.scope=this.scope,r.push({key:n,value:a.objId+" 0 R"})):typeof a!="function"&&r.push({key:n,value:a}))}return r};var Xh=function(){gn.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 r,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){r=e.trim()},get:function(){return r||null}})};Lr(Xh,gn);var Zh=function(){gn.call(this);var r,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(r){var e=function(n){return n};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+_i(e(r))+")"}},set:function(e){r=e}})};Lr(Zh,gn);var tn=function r(){gn.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(S){if(isNaN(S))throw new Error('Invalid value "'+S+'" for attribute F supplied.');t=S}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ge(t,3)},set:function(S){S?this.F=Ve(t,3):this.F=Ye(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(S){if(isNaN(S))throw new Error('Invalid value "'+S+'" for attribute Ff supplied.');e=S}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(S){n=S!==void 0?S:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(S){n[0]=S}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(S){n[1]=S}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(S){n[2]=S}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(S){n[3]=S}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(S){switch(S){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=S;break;default:throw new Error('Invalid value "'+S+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Co)return;i="FieldObject"+r.FieldNum++}var S=function(W){return W};return this.scope&&(S=this.scope.internal.getEncryptor(this.objId)),"("+_i(S(i))+")"},set:function(S){i=S.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(S){i=S}});var h="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return h},set:function(S){h=S}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(S){l=S}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(S){u=S}});var f=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return f===void 0?50/il:f},set:function(S){f=S}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(S){p=S}});var y="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!y||this instanceof Co||this instanceof yi))return Is(y,this.objId,this.scope)},set:function(S){S=S.toString(),y=S}});var x=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(x)return this instanceof ar==0?Is(x,this.objId,this.scope):x},set:function(S){S=S.toString(),x=this instanceof ar==0?S.substr(0,1)==="("?zi(S.substr(1,S.length-2)):zi(S):S}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ar==1?zi(x.substr(1,x.length-1)):x},set:function(S){S=S.toString(),x=this instanceof ar==1?"/"+S:S}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(S){this.V=S}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof ar==0?Is(g,this.objId,this.scope):g},set:function(S){S=S.toString(),g=this instanceof ar==0?S.substr(0,1)==="("?zi(S.substr(1,S.length-2)):zi(S):S}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ar==1?zi(g.substr(1,g.length-1)):g},set:function(S){S=S.toString(),g=this instanceof ar==1?"/"+S:S}}),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 P,C=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return C},set:function(S){S=!!S,C=S}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(P)return P},set:function(S){P=S}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,1)},set:function(S){S?this.Ff=Ve(this.Ff,1):this.Ff=Ye(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,2)},set:function(S){S?this.Ff=Ve(this.Ff,2):this.Ff=Ye(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,3)},set:function(S){S?this.Ff=Ve(this.Ff,3):this.Ff=Ye(this.Ff,3)}});var j=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(j!==null)return j},set:function(S){if([0,1,2].indexOf(S)===-1)throw new Error('Invalid value "'+S+'" for attribute Q supplied.');j=S}}),Object.defineProperty(this,"textAlign",{get:function(){var S;switch(j){case 0:default:S="left";break;case 1:S="center";break;case 2:S="right"}return S},configurable:!0,enumerable:!0,set:function(S){switch(S){case"right":case 2:j=2;break;case"center":case 1:j=1;break;default:j=0}}})};Lr(tn,gn);var Yi=function(){tn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){r=e}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return $h(t,this.objId,this.scope)},set:function(e){var n,a;a=[],typeof(n=e)=="string"&&(a=(function(i,h,l){l||(l=1);for(var u,f=[];u=h.exec(i);)f.push(u[l]);return f})(n,/\((.*?)\)/g)),t=a}}),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,n){for(n=n||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,18)},set:function(e){e?this.Ff=Ve(this.Ff,18):this.Ff=Ye(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Ve(this.Ff,19):this.Ff=Ye(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,20)},set:function(e){e?(this.Ff=Ve(this.Ff,20),t.sort()):this.Ff=Ye(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,22)},set:function(e){e?this.Ff=Ve(this.Ff,22):this.Ff=Ye(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,23)},set:function(e){e?this.Ff=Ve(this.Ff,23):this.Ff=Ye(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,27)},set:function(e){e?this.Ff=Ve(this.Ff,27):this.Ff=Ye(this.Ff,27)}}),this.hasAppearanceStream=!1};Lr(Yi,tn);var Ji=function(){Yi.call(this),this.fontName="helvetica",this.combo=!1};Lr(Ji,Yi);var Ki=function(){Ji.call(this),this.combo=!0};Lr(Ki,Ji);var Ao=function(){Ki.call(this),this.edit=!0};Lr(Ao,Ki);var ar=function(){tn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,15)},set:function(e){e?this.Ff=Ve(this.Ff,15):this.Ff=Ye(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,16)},set:function(e){e?this.Ff=Ve(this.Ff,16):this.Ff=Ye(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,17)},set:function(e){e?this.Ff=Ve(this.Ff,17):this.Ff=Ye(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,26)},set:function(e){e?this.Ff=Ve(this.Ff,26):this.Ff=Ye(this.Ff,26)}});var r,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,a=[];for(n in a.push("<<"),t)a.push("/"+n+" ("+_i(e(t[n]))+")");return a.push(">>"),a.join(`
|
|
109
|
-
`)}},set:function(e){me(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 r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}})};Lr(ar,tn);var _o=function(){ar.call(this),this.pushButton=!0};Lr(_o,ar);var $i=function(){ar.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t!==void 0?t:[]}})};Lr($i,ar);var Co=function(){var r,t;tn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(a){r=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var e,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var i,h=[];for(i in h.push("<<"),n)h.push("/"+i+" ("+_i(a(n[i]))+")");return h.push(">>"),h.join(`
|
|
110
|
-
`)},set:function(a){me(a)==="object"&&(n=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(a){typeof a=="string"&&(n.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){e=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){e="/"+a}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ft.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Lr(Co,tn),$i.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))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=r.createAppearanceStream(e.optionName),e.caption=r.getCA()}},$i.prototype.createOption=function(r){var t=new Co;return t.Parent=this,t.optionName=r,this.Kids.push(t),_2.call(this.scope,t),t};var No=function(){ar.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ft.CheckBox.createAppearanceStream()};Lr(No,ar);var yi=function(){tn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,13)},set:function(t){t?this.Ff=Ve(this.Ff,13):this.Ff=Ye(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,21)},set:function(t){t?this.Ff=Ve(this.Ff,21):this.Ff=Ye(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,23)},set:function(t){t?this.Ff=Ve(this.Ff,23):this.Ff=Ye(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,24)},set:function(t){t?this.Ff=Ve(this.Ff,24):this.Ff=Ye(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,25)},set:function(t){t?this.Ff=Ve(this.Ff,25):this.Ff=Ye(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,26)},set:function(t){t?this.Ff=Ve(this.Ff,26):this.Ff=Ye(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){Number.isInteger(t)&&(r=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Lr(yi,tn);var Lo=function(){yi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ge(this.Ff,14)},set:function(r){r?this.Ff=Ve(this.Ff,14):this.Ff=Ye(this.Ff,14)}}),this.password=!0};Lr(Lo,yi);var Ft={CheckBox:{createAppearanceStream:function(){return{N:{On:Ft.CheckBox.YesNormal},D:{On:Ft.CheckBox.YesPushDown,Off:Ft.CheckBox.OffPushDown}}},YesPushDown:function(r){var t=pn(r);t.scope=r.scope;var e=[],n=r.scope.internal.getFont(r.fontName,r.fontStyle).id,a=r.scope.__private__.encodeColorString(r.color),i=Ks(r,r.caption);return e.push("0.749023 g"),e.push("0 0 "+$t(Ft.internal.getWidth(r))+" "+$t(Ft.internal.getHeight(r))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+n+" "+$t(i.fontSize)+" Tf "+a),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join(`
|
|
111
|
-
`),t},YesNormal:function(r){var t=pn(r);t.scope=r.scope;var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color),a=[],i=Ft.internal.getHeight(r),h=Ft.internal.getWidth(r),l=Ks(r,r.caption);return a.push("1 g"),a.push("0 0 "+$t(h)+" "+$t(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+$t(h-1)+" "+$t(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+$t(l.fontSize)+" Tf "+n),a.push(l.text),a.push("ET"),a.push("Q"),t.stream=a.join(`
|
|
112
|
-
`),t},OffPushDown:function(r){var t=pn(r);t.scope=r.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+$t(Ft.internal.getWidth(r))+" "+$t(Ft.internal.getHeight(r))+" re"),e.push("f"),t.stream=e.join(`
|
|
113
|
-
`),t}},RadioButton:{Circle:{createAppearanceStream:function(r){var t={D:{Off:Ft.RadioButton.Circle.OffPushDown},N:{}};return t.N[r]=Ft.RadioButton.Circle.YesNormal,t.D[r]=Ft.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(r){var t=pn(r);t.scope=r.scope;var e=[],n=Ft.internal.getWidth(r)<=Ft.internal.getHeight(r)?Ft.internal.getWidth(r)/4:Ft.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var a=Ft.internal.Bezier_C,i=Number((n*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+Xn(Ft.internal.getWidth(r)/2)+" "+Xn(Ft.internal.getHeight(r)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
|
|
114
|
-
`),t},YesPushDown:function(r){var t=pn(r);t.scope=r.scope;var e=[],n=Ft.internal.getWidth(r)<=Ft.internal.getHeight(r)?Ft.internal.getWidth(r)/4:Ft.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*Ft.internal.Bezier_C).toFixed(5)),h=Number((n*Ft.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Xn(Ft.internal.getWidth(r)/2)+" "+Xn(Ft.internal.getHeight(r)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),e.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),e.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),e.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+Xn(Ft.internal.getWidth(r)/2)+" "+Xn(Ft.internal.getHeight(r)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+h+" "+h+" "+n+" 0 "+n+" c"),e.push("-"+h+" "+n+" -"+n+" "+h+" -"+n+" 0 c"),e.push("-"+n+" -"+h+" -"+h+" -"+n+" 0 -"+n+" c"),e.push(h+" -"+n+" "+n+" -"+h+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
|
|
115
|
-
`),t},OffPushDown:function(r){var t=pn(r);t.scope=r.scope;var e=[],n=Ft.internal.getWidth(r)<=Ft.internal.getHeight(r)?Ft.internal.getWidth(r)/4:Ft.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*Ft.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Xn(Ft.internal.getWidth(r)/2)+" "+Xn(Ft.internal.getHeight(r)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),e.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),e.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),e.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
|
|
116
|
-
`),t}},Cross:{createAppearanceStream:function(r){var t={D:{Off:Ft.RadioButton.Cross.OffPushDown},N:{}};return t.N[r]=Ft.RadioButton.Cross.YesNormal,t.D[r]=Ft.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(r){var t=pn(r);t.scope=r.scope;var e=[],n=Ft.internal.calculateCross(r);return e.push("q"),e.push("1 1 "+$t(Ft.internal.getWidth(r)-2)+" "+$t(Ft.internal.getHeight(r)-2)+" re"),e.push("W"),e.push("n"),e.push($t(n.x1.x)+" "+$t(n.x1.y)+" m"),e.push($t(n.x2.x)+" "+$t(n.x2.y)+" l"),e.push($t(n.x4.x)+" "+$t(n.x4.y)+" m"),e.push($t(n.x3.x)+" "+$t(n.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join(`
|
|
117
|
-
`),t},YesPushDown:function(r){var t=pn(r);t.scope=r.scope;var e=Ft.internal.calculateCross(r),n=[];return n.push("0.749023 g"),n.push("0 0 "+$t(Ft.internal.getWidth(r))+" "+$t(Ft.internal.getHeight(r))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+$t(Ft.internal.getWidth(r)-2)+" "+$t(Ft.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push($t(e.x1.x)+" "+$t(e.x1.y)+" m"),n.push($t(e.x2.x)+" "+$t(e.x2.y)+" l"),n.push($t(e.x4.x)+" "+$t(e.x4.y)+" m"),n.push($t(e.x3.x)+" "+$t(e.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
|
|
118
|
-
`),t},OffPushDown:function(r){var t=pn(r);t.scope=r.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+$t(Ft.internal.getWidth(r))+" "+$t(Ft.internal.getHeight(r))+" re"),e.push("f"),t.stream=e.join(`
|
|
119
|
-
`),t}}},createDefaultAppearanceStream:function(r){var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,e=r.scope.__private__.encodeColorString(r.color);return"/"+t+" "+r.fontSize+" Tf "+e}};Ft.internal={Bezier_C:.551915024494,calculateCross:function(r){var t=Ft.internal.getWidth(r),e=Ft.internal.getHeight(r),n=Math.min(t,e);return{x1:{x:(t-n)/2,y:(e-n)/2+n},x2:{x:(t-n)/2+n,y:(e-n)/2},x3:{x:(t-n)/2,y:(e-n)/2},x4:{x:(t-n)/2+n,y:(e-n)/2+n}}}},Ft.internal.getWidth=function(r){var t=0;return me(r)==="object"&&(t=Hu(r.Rect[2])),t},Ft.internal.getHeight=function(r){var t=0;return me(r)==="object"&&(t=Hu(r.Rect[3])),t};var _2=Re.addField=function(r){if(A2(this,r),!(r instanceof tn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=r).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};Re.AcroFormChoiceField=Yi,Re.AcroFormListBox=Ji,Re.AcroFormComboBox=Ki,Re.AcroFormEditBox=Ao,Re.AcroFormButton=ar,Re.AcroFormPushButton=_o,Re.AcroFormRadioButton=$i,Re.AcroFormCheckBox=No,Re.AcroFormTextField=yi,Re.AcroFormPasswordField=Lo,Re.AcroFormAppearance=Ft,Re.AcroForm={ChoiceField:Yi,ListBox:Ji,ComboBox:Ki,EditBox:Ao,Button:ar,PushButton:_o,RadioButton:$i,CheckBox:No,TextField:yi,PasswordField:Lo,Appearance:Ft},Rt.AcroForm={ChoiceField:Yi,ListBox:Ji,ComboBox:Ki,EditBox:Ao,Button:ar,PushButton:_o,RadioButton:$i,CheckBox:No,TextField:yi,PasswordField:Lo,Appearance:Ft};Rt.AcroForm;function Qh(r){return r.reduce(function(t,e,n){return t[e]=n,t},{})}(function(r){var t="addImage_";r.__addimage__={};var e="UNKNOWN",n={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]]},a=r.__addimage__.getImageFileTypeByImageData=function(L,O){var G,U,nt,ht,dt,rt=e;if((O=O||e)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(mt(L))for(dt in n)for(nt=n[dt],G=0;G<nt.length;G+=1){for(ht=!0,U=0;U<nt[G].length;U+=1)if(nt[G][U]!==void 0&&nt[G][U]!==L[U]){ht=!1;break}if(ht===!0){rt=dt;break}}else for(dt in n)for(nt=n[dt],G=0;G<nt.length;G+=1){for(ht=!0,U=0;U<nt[G].length;U+=1)if(nt[G][U]!==void 0&&nt[G][U]!==L.charCodeAt(U)){ht=!1;break}if(ht===!0){rt=dt;break}}return rt===e&&O!==e&&(rt=O),rt},i=function L(O){for(var G=this.internal.write,U=this.internal.putStream,nt=(0,this.internal.getFilters)();nt.indexOf("FlateEncode")!==-1;)nt.splice(nt.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var ht=[];if(ht.push({key:"Type",value:"/XObject"}),ht.push({key:"Subtype",value:"/Image"}),ht.push({key:"Width",value:O.width}),ht.push({key:"Height",value:O.height}),O.colorSpace===S.INDEXED?ht.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(ht.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===S.DEVICE_CMYK&&ht.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ht.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&ht.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)){for(var dt="",rt=0,ft=O.transparency.length;rt<ft;rt++)dt+=O.transparency[rt]+" "+O.transparency[rt]+" ";ht.push({key:"Mask",value:"["+dt+"]"})}O.sMask!==void 0&&ht.push({key:"SMask",value:O.objectId+1+" 0 R"});var Nt=O.filter!==void 0?["/"+O.filter]:void 0;if(U({data:O.data,additionalKeyValues:ht,alreadyAppliedFilters:Nt,objectId:O.objectId}),G("endobj"),"sMask"in O&&O.sMask!==void 0){var wt=(O.predictor!=null?"/Predictor "+O.predictor:"")+" /Colors 1 /BitsPerComponent 8 /Columns "+O.width,_={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:O.bitsPerComponent,decodeParameters:wt,data:O.sMask};"filter"in O&&(_.filter=O.filter),L.call(this,_)}if(O.colorSpace===S.INDEXED){var B=this.internal.newObject();U({data:$(new Uint8Array(O.palette)),objectId:B}),G("endobj")}},h=function(){var L=this.internal.collections[t+"images"];for(var O in L)i.call(this,L[O])},l=function(){var L,O=this.internal.collections[t+"images"],G=this.internal.write;for(var U in O)G("/I"+(L=O[U]).index,L.objectId,"0","R")},u=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",l))},f=function(){var L=this.internal.collections[t+"images"];return u.call(this),L},p=function(){return Object.keys(this.internal.collections[t+"images"]).length},y=function(L){return typeof r["process"+L.toUpperCase()]=="function"},x=function(L){return me(L)==="object"&&L.nodeType===1},g=function(L,O){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var G=""+L.getAttribute("src");if(G.indexOf("data:image/")===0)return xo(unescape(G).split("base64,").pop());var U=r.loadFile(G,!0);if(U!==void 0)return U}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var nt;switch(O){case"PNG":nt="image/png";break;case"WEBP":nt="image/webp";break;default:nt="image/jpeg"}return xo(L.toDataURL(nt,1).split("base64,").pop())}},P=function(L){var O=this.internal.collections[t+"images"];if(O){for(var G in O)if(L===O[G].alias)return O[G]}},C=function(L,O,G){return L||O||(L=-96,O=-96),L<0&&(L=-1*G.width*72/L/this.internal.scaleFactor),O<0&&(O=-1*G.height*72/O/this.internal.scaleFactor),L===0&&(L=O*G.width/G.height),O===0&&(O=L*G.height/G.width),[L,O]},j=function(L,O,G,U,nt,ht){var dt=C.call(this,G,U,nt),rt=this.internal.getCoordinateString,ft=this.internal.getVerticalCoordinateString,Nt=f.call(this);if(G=dt[0],U=dt[1],Nt[nt.index]=nt,ht){ht*=Math.PI/180;var wt=Math.cos(ht),_=Math.sin(ht),B=function(V){return V.toFixed(4)},R=[B(wt),B(_),B(-1*_),B(wt),0,0,"cm"]}this.internal.write("q"),ht?(this.internal.write([1,"0","0",1,rt(L),ft(O+U),"cm"].join(" ")),this.internal.write(R.join(" ")),this.internal.write([rt(G),"0","0",rt(U),"0","0","cm"].join(" "))):this.internal.write([rt(G),"0","0",rt(U),rt(L),ft(O+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+nt.index+" Do"),this.internal.write("Q")},S=r.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"};r.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 W=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},z=r.__addimage__.sHashCode=function(L){var O,G,U=0;if(typeof L=="string")for(G=L.length,O=0;O<G;O++)U=(U<<5)-U+L.charCodeAt(O),U|=0;else if(mt(L))for(G=L.byteLength/2,O=0;O<G;O++)U=(U<<5)-U+L[O],U|=0;return U},M=r.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var O=!0;return L.length===0&&(O=!1),L.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(O=!1),O},at=r.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var O=L.indexOf(",");return O<0?null:L.substring(0,O).trim().endsWith("base64")?L.substring(O+1):null};r.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var mt=r.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},ot=r.__addimage__.binaryStringToUint8Array=function(L){for(var O=L.length,G=new Uint8Array(O),U=0;U<O;U++)G[U]=L.charCodeAt(U);return G},$=r.__addimage__.arrayBufferToBinaryString=function(L){for(var O="",G=mt(L)?L:new Uint8Array(L),U=0;U<G.length;U+=8192)O+=String.fromCharCode.apply(null,G.subarray(U,U+8192));return O};r.addImage=function(){var L,O,G,U,nt,ht,dt,rt,ft;if(typeof arguments[1]=="number"?(O=e,G=arguments[1],U=arguments[2],nt=arguments[3],ht=arguments[4],dt=arguments[5],rt=arguments[6],ft=arguments[7]):(O=arguments[1],G=arguments[2],U=arguments[3],nt=arguments[4],ht=arguments[5],dt=arguments[6],rt=arguments[7],ft=arguments[8]),me(L=arguments[0])==="object"&&!x(L)&&"imageData"in L){var Nt=L;L=Nt.imageData,O=Nt.format||O||e,G=Nt.x||G||0,U=Nt.y||U||0,nt=Nt.w||Nt.width||nt,ht=Nt.h||Nt.height||ht,dt=Nt.alias||dt,rt=Nt.compression||rt,ft=Nt.rotation||Nt.angle||ft}var wt=this.internal.getFilters();if(rt===void 0&&wt.indexOf("FlateEncode")!==-1&&(rt="SLOW"),isNaN(G)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var _=T.call(this,L,O,dt,rt);return j.call(this,G,U,nt,ht,_,ft),this};var T=function(L,O,G,U){var nt,ht,dt;if(typeof L=="string"&&a(L)===e){L=unescape(L);var rt=et(L,!1);(rt!==""||(rt=r.loadFile(L,!0))!==void 0)&&(L=rt)}if(x(L)&&(L=g(L,O)),O=a(L,O),!y(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((dt=G)==null||dt.length===0)&&(G=(function(ft){return typeof ft=="string"||mt(ft)?z(ft):mt(ft.data)?z(ft.data):null})(L)),(nt=P.call(this,G))||(L instanceof Uint8Array||O==="RGBA"||(ht=L,L=ot(L)),nt=this["process"+O.toUpperCase()](L,p.call(this),G,(function(ft){return ft&&typeof ft=="string"&&(ft=ft.toUpperCase()),ft in r.image_compression?ft:W.NONE})(U),ht)),!nt)throw new Error("An unknown error occurred whilst processing the image.");return nt},et=r.__addimage__.convertBase64ToBinaryString=function(L,O){O=typeof O!="boolean"||O;var G,U="";if(typeof L=="string"){var nt;G=(nt=at(L))!==null&&nt!==void 0?nt:L;try{U=xo(G)}catch(ht){if(O)throw M(G)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ht.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};r.getImageProperties=function(L){var O,G,U="";if(x(L)&&(L=g(L)),typeof L=="string"&&a(L)===e&&((U=et(L,!1))===""&&(U=r.loadFile(L)||""),L=U),G=a(L),!y(G))throw new Error("addImage does not support files of type '"+G+"', please ensure that a plugin for '"+G+"' support is added.");if(L instanceof Uint8Array||(L=ot(L)),!(O=this["process"+G.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=G,O}})(Rt.API),(function(r){var t=function(e){if(e!==void 0&&e!="")return!0};Rt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(e){for(var n,a,i,h=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(e.objId),f=e.pageContext.annotations,p=!1,y=0;y<f.length&&!p;y++)switch((n=f[y]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(p=!0);break;case"reference":case"text":case"freetext":p=!0}if(p!=0){this.internal.write("/Annots [");for(var x=0;x<f.length;x++){n=f[x];var g=this.internal.pdfEscape,P=this.internal.getEncryptor(e.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var C=this.internal.newAdditionalObject(),j=this.internal.newAdditionalObject(),S=this.internal.getEncryptor(C.objId),W=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(a="/Rect ["+h(n.bounds.x)+" "+l(n.bounds.y+n.bounds.h)+" "+h(n.bounds.x+n.bounds.w)+" "+l(n.bounds.y)+"] ")+"/Contents ("+g(S(n.contents))+")",i+=" /Popup "+j.objId+" 0 R",i+=" /P "+u.objId+" 0 R",i+=" /T ("+g(S(W))+") >>",C.content=i;var z=C.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+h(n.bounds.x+30)+" "+l(n.bounds.y+n.bounds.h)+" "+h(n.bounds.x+n.bounds.w+30)+" "+l(n.bounds.y)+"] ")+" /Parent "+z,n.open&&(i+=" /Open true"),i+=" >>",j.content=i,this.internal.write(C.objId,"0 R",j.objId,"0 R");break;case"freetext":a="/Rect ["+h(n.bounds.x)+" "+l(n.bounds.y)+" "+h(n.bounds.x+n.bounds.w)+" "+l(n.bounds.y+n.bounds.h)+"] ";var M=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+g(P(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+M+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var at=this.annotations._nameMap[n.options.name];n.options.pageNumber=at.page,n.options.top=at.y}else n.options.top||(n.options.top=0);if(a="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+g(P(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;default:var mt=l(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+mt+" "+n.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),r.createAnnotation=function(e){var n=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":n.pageContext.annotations.push(e)}},r.link=function(e,n,a,i,h){var l=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,f=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:u(e),y:f(n),w:u(e+a),h:f(n+i)},options:h,type:"link"})},r.textWithLink=function(e,n,a,i){var h,l,u=this.getTextWidth(e),f=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){l=i.maxWidth;var p=this.splitTextToSize(e,l).length;h=Math.ceil(f*p)}else l=u,h=f;return this.text(e,n,a,i),a+=.2*f,i.align==="center"&&(n-=u/2),i.align==="right"&&(n-=u),this.link(n,a-f,l,h,i),u},r.getTextWidth=function(e){var n=this.internal.getFontSize();return this.getStringUnitWidth(e)*n/this.internal.scaleFactor}})(Rt.API),(function(r){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}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];r.__arabicParser__={};var i=r.__arabicParser__.isInArabicSubstitutionA=function(C){return t[C.charCodeAt(0)]!==void 0},h=r.__arabicParser__.isArabicLetter=function(C){return typeof C=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(C)},l=r.__arabicParser__.isArabicEndLetter=function(C){return h(C)&&i(C)&&t[C.charCodeAt(0)].length<=2},u=r.__arabicParser__.isArabicAlfLetter=function(C){return h(C)&&a.indexOf(C.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(C){return h(C)&&i(C)&&t[C.charCodeAt(0)].length>=1};var f=r.__arabicParser__.arabicLetterHasFinalForm=function(C){return h(C)&&i(C)&&t[C.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(C){return h(C)&&i(C)&&t[C.charCodeAt(0)].length>=3};var p=r.__arabicParser__.arabicLetterHasMedialForm=function(C){return h(C)&&i(C)&&t[C.charCodeAt(0)].length==4},y=r.__arabicParser__.resolveLigatures=function(C){var j=0,S=e,W="",z=0;for(j=0;j<C.length;j+=1)S[C.charCodeAt(j)]!==void 0?(z++,typeof(S=S[C.charCodeAt(j)])=="number"&&(W+=String.fromCharCode(S),S=e,z=0),j===C.length-1&&(S=e,W+=C.charAt(j-(z-1)),j-=z-1,z=0)):(S=e,W+=C.charAt(j-z),j-=z,z=0);return W};r.__arabicParser__.isArabicDiacritic=function(C){return C!==void 0&&n[C.charCodeAt(0)]!==void 0};var x=r.__arabicParser__.getCorrectForm=function(C,j,S){return h(C)?i(C)===!1?-1:!f(C)||!h(j)&&!h(S)||!h(S)&&l(j)||l(C)&&!h(j)||l(C)&&u(j)||l(C)&&l(j)?0:p(C)&&h(j)&&!l(j)&&h(S)&&f(S)?3:l(C)||!h(S)?1:2:-1},g=function(C){var j=0,S=0,W=0,z="",M="",at="",mt=(C=C||"").split("\\s+"),ot=[];for(j=0;j<mt.length;j+=1){for(ot.push(""),S=0;S<mt[j].length;S+=1)z=mt[j][S],M=mt[j][S-1],at=mt[j][S+1],h(z)?(W=x(z,M,at),ot[j]+=W!==-1?String.fromCharCode(t[z.charCodeAt(0)][W]):z):ot[j]+=z;ot[j]=y(ot[j])}return ot.join(" ")},P=r.__arabicParser__.processArabic=r.processArabic=function(){var C,j=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,S=[];if(Array.isArray(j)){var W=0;for(S=[],W=0;W<j.length;W+=1)Array.isArray(j[W])?S.push([g(j[W][0]),j[W][1],j[W][2]]):S.push([g(j[W])]);C=S}else C=g(j);return typeof arguments[0]=="string"?C:(arguments[0].text=C,arguments[0])};r.events.push(["preProcessText",P])})(Rt.API),Rt.API.autoPrint=function(r){var t;return(r=r||{}).variant=r.variant||"non-conform",r.variant==="javascript"?this.addJS("print({});"):(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")})),this},(function(r){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(l){n=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(l){i=l}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(l){h=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,n){var a;if((e=e||"2d")!=="2d")return null;for(a in n)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=n[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(Rt.API),(function(r){var t={left:0,top:0,bottom:0,right:0},e=!1,n=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(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(C){u=C}});var f=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return f},set:function(C){f=C}});var p=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return p},set:function(C){p=C}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(C){y=C}});var x=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return x},set:function(C){x=C}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(C){g=C}});var P=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return P},set:function(C){P=C}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(u){return n.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},r.getTextDimensions=function(u,f){n.call(this);var p=(f=f||{}).fontSize||this.getFontSize(),y=f.font||this.getFont(),x=f.scaleFactor||this.internal.scaleFactor,g=0,P=0,C=0,j=this;if(!Array.isArray(u)&&typeof u!="string"){if(typeof u!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");u=String(u)}var S=f.maxWidth;S>0?typeof u=="string"?u=this.splitTextToSize(u,S):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(z,M){return z.concat(j.splitTextToSize(M,S))},[])):u=Array.isArray(u)?u:[u];for(var W=0;W<u.length;W++)g<(C=this.getStringUnitWidth(u[W],{font:y})*p)&&(g=C);return g!==0&&(P=u.length),{w:g/=x,h:Math.max((P*p*this.getLineHeightFactor()-p*(this.getLineHeightFactor()-1))/x,0)}},r.cellAddPage=function(){n.call(this),this.addPage();var u=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var h=r.cell=function(){var u;u=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var f=this.internal.__cell__.lastCell,p=this.internal.__cell__.padding,y=this.internal.__cell__.margins||t,x=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return f.lineNumber!==void 0&&(f.lineNumber===u.lineNumber?(u.x=(f.x||0)+(f.width||0),u.y=f.y||0):f.y+f.height+u.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=y.top,g&&x&&(this.printHeaderRow(u.lineNumber,!0),u.y+=x[0].height)):u.y=f.y+f.height||u.y),u.text[0]!==void 0&&(this.rect(u.x,u.y,u.width,u.height,e===!0?"FD":void 0),u.align==="right"?this.text(u.text,u.x+u.width-p,u.y+p,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+p,{align:"center",baseline:"top",maxWidth:u.width-p-p}):this.text(u.text,u.x+p,u.y+p,{align:"left",baseline:"top",maxWidth:u.width-p-p})),this.internal.__cell__.lastCell=u,this};r.table=function(u,f,p,y,x){if(n.call(this),!p)throw new Error("No data for PDF table.");var g,P,C,j,S=[],W=[],z=[],M={},at={},mt=[],ot=[],$=(x=x||{}).autoSize||!1,T=x.printHeaders!==!1,et=x.css&&x.css["font-size"]!==void 0?16*x.css["font-size"]:x.fontSize||12,L=x.margins||Object.assign({width:this.getPageWidth()},t),O=typeof x.padding=="number"?x.padding:3,G=x.headerBackgroundColor||"#c8c8c8",U=x.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=T,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=et,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=U,this.setFontSize(et),y==null)W=S=Object.keys(p[0]),z=S.map(function(){return"left"});else if(Array.isArray(y)&&me(y[0])==="object")for(S=y.map(function(Nt){return Nt.name}),W=y.map(function(Nt){return Nt.prompt||Nt.name||""}),z=y.map(function(Nt){return Nt.align||"left"}),g=0;g<y.length;g+=1)at[y[g].name]=.7499990551181103*y[g].width;else Array.isArray(y)&&typeof y[0]=="string"&&(W=S=y,z=S.map(function(){return"left"}));if($||Array.isArray(y)&&typeof y[0]=="string")for(g=0;g<S.length;g+=1){for(M[j=S[g]]=p.map(function(Nt){return Nt[j]}),this.setFont(void 0,"bold"),mt.push(this.getTextDimensions(W[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),P=M[j],this.setFont(void 0,"normal"),C=0;C<P.length;C+=1)mt.push(this.getTextDimensions(P[C],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);at[j]=Math.max.apply(null,mt)+O+O,mt=[]}if(T){var nt={};for(g=0;g<S.length;g+=1)nt[S[g]]={},nt[S[g]].text=W[g],nt[S[g]].align=z[g];var ht=l.call(this,nt,at);ot=S.map(function(Nt){return new i(u,f,at[Nt],ht,nt[Nt].text,void 0,nt[Nt].align)}),this.setTableHeaderRow(ot),this.printHeaderRow(1,!1)}var dt=y.reduce(function(Nt,wt){return Nt[wt.name]=wt.align,Nt},{});for(g=0;g<p.length;g+=1){"rowStart"in x&&x.rowStart instanceof Function&&x.rowStart({row:g,data:p[g]},this);var rt=l.call(this,p[g],at);for(C=0;C<S.length;C+=1){var ft=p[g][S[C]];"cellStart"in x&&x.cellStart instanceof Function&&x.cellStart({row:g,col:C,data:ft},this),h.call(this,new i(u,f,at[S[C]],rt,ft,g+2,dt[S[C]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=f,this};var l=function(u,f){var p=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,x=this.internal.scaleFactor;return Object.keys(u).map(function(g){var P=u[g];return this.splitTextToSize(P.hasOwnProperty("text")?P.text:P,f[g]-p-p)},this).map(function(g){return this.getLineHeightFactor()*g.length*y/x+p+p},this).reduce(function(g,P){return Math.max(g,P)},0)};r.setTableHeaderRow=function(u){n.call(this),this.internal.__cell__.tableHeaderRow=u},r.printHeaderRow=function(u,f){if(n.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 y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var x=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){p=this.internal.__cell__.tableHeaderRow[g].clone(),f&&(p.y=this.internal.__cell__.margins.top||0,x.push(p)),p.lineNumber=u;var P=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,p),this.setTextColor(P)}x.length>0&&this.setTableHeaderRow(x),this.setFont(void 0,"normal"),e=!1}})(Rt.API);var tf={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ef=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],$s=Qh(ef),rf=[100,200,300,400,500,600,700,800,900],N2=Qh(rf);function Es(r){var t=r.family.replace(/"|'/g,"").toLowerCase(),e=(function(i){return tf[i=i||"normal"]?i:"normal"})(r.style),n=(function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400})(r.weight),a=(function(i){return typeof $s[i=i||"normal"]=="number"?i:"normal"})(r.stretch);return{family:t,style:e,weight:n,stretch:a,src:r.src||[],ref:r.ref||{name:t,style:[a,e,n].join(" ")}}}function Wu(r,t,e,n){var a;for(a=e;a>=0&&a<t.length;a+=n)if(r[t[a]])return r[t[a]];for(a=e;a>=0&&a<t.length;a-=n)if(r[t[a]])return r[t[a]]}var L2={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Gu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Vu(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function Yu(r){return r.trimLeft()}function S2(r,t){for(var e=0;e<r.length;){if(r.charAt(e)===t)return[r.substring(0,e),r.substring(e+1)];e+=1}return null}function k2(r){var t=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],r.substring(t[0].length)]}var bo,Ju,Ku,Hi,yo,$u,Xu,Zu,Os=["times"];function Qu(r,t,e,n){var a=4,i=eh;switch(n){case Rt.API.image_compression.FAST:a=1,i=th;break;case Rt.API.image_compression.MEDIUM:a=6,i=rh;break;case Rt.API.image_compression.SLOW:a=9,i=nh}r=(function(l,u,f,p){for(var y,x=l.length/u,g=new Uint8Array(l.length+x),P=[P2,th,eh,rh,nh],C=0;C<x;C+=1){var j=C*u,S=l.subarray(j,j+u);if(p)g.set(p(S,f,y),j+C);else{for(var W=P.length,z=[],M=0;M<W;M+=1)z[M]=P[M](S,f,y);var at=F2(z.concat());g.set(z[at],j+C)}y=S}return g})(r,t,e,i);var h=Hs(r,{level:a});return Rt.API.__addimage__.arrayBufferToBinaryString(h)}function P2(r){var t=Array.apply([],r);return t.unshift(0),t}function th(r,t){var e=r.length,n=[];n[0]=1;for(var a=0;a<e;a+=1){var i=r[a-t]||0;n[a+1]=r[a]-i+256&255}return n}function eh(r,t,e){var n=r.length,a=[];a[0]=2;for(var i=0;i<n;i+=1){var h=e&&e[i]||0;a[i+1]=r[i]-h+256&255}return a}function rh(r,t,e){var n=r.length,a=[];a[0]=3;for(var i=0;i<n;i+=1){var h=r[i-t]||0,l=e&&e[i]||0;a[i+1]=r[i]+256-(h+l>>>1)&255}return a}function nh(r,t,e){var n=r.length,a=[];a[0]=4;for(var i=0;i<n;i+=1){var h=C2(r[i-t]||0,e&&e[i]||0,e&&e[i-t]||0);a[i+1]=r[i]-h+256&255}return a}function C2(r,t,e){if(r===t&&t===e)return r;var n=Math.abs(t-e),a=Math.abs(r-e),i=Math.abs(r+t-e-e);return n<=a&&n<=i?r:a<=i?t:e}function F2(r){var t=r.map(function(e){return e.reduce(function(n,a){return n+Math.abs(a)},0)});return t.indexOf(Math.min.apply(null,t))}function js(r,t,e){var n=t*e,a=Math.floor(n/8),i=16-(n-8*a+e),h=(1<<e)-1;return nf(r,a)>>i&h}function ih(r,t,e,n){var a=e*n,i=Math.floor(a/8),h=16-(a-8*i+n),l=(1<<n)-1,u=(t&l)<<h;(function(f,p,y){if(p+1<f.byteLength)f.setUint16(p,y,!1);else{var x=y>>8&255;f.setUint8(p,x)}})(r,i,nf(r,i)&~(l<<h)&65535|u)}function nf(r,t){return t+1<r.byteLength?r.getUint16(t,!1):r.getUint8(t)<<8}function I2(r){var t=0;if(r[t++]!==71||r[t++]!==73||r[t++]!==70||r[t++]!==56||(r[t++]+1&253)!=56||r[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=r[t++]|r[t++]<<8,n=r[t++]|r[t++]<<8,a=r[t++],i=a>>7,h=1<<1+(7&a);r[t++],r[t++];var l=null,u=null;i&&(l=t,u=h,t+=3*h);var f=!0,p=[],y=0,x=null,g=0,P=null;for(this.width=e,this.height=n;f&&t<r.length;)switch(r[t++]){case 33:switch(r[t++]){case 255:if(r[t]!==11||r[t+1]==78&&r[t+2]==69&&r[t+3]==84&&r[t+4]==83&&r[t+5]==67&&r[t+6]==65&&r[t+7]==80&&r[t+8]==69&&r[t+9]==50&&r[t+10]==46&&r[t+11]==48&&r[t+12]==3&&r[t+13]==1&&r[t+16]==0)t+=14,P=r[t++]|r[t++]<<8,t++;else for(t+=12;;){if(!((L=r[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;case 249:if(r[t++]!==4||r[t+4]!==0)throw new Error("Invalid graphics extension block.");var C=r[t++];y=r[t++]|r[t++]<<8,x=r[t++],1&C||(x=null),g=C>>2&7,t++;break;case 254:for(;;){if(!((L=r[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+r[t-1].toString(16))}break;case 44:var j=r[t++]|r[t++]<<8,S=r[t++]|r[t++]<<8,W=r[t++]|r[t++]<<8,z=r[t++]|r[t++]<<8,M=r[t++],at=M>>6&1,mt=1<<1+(7&M),ot=l,$=u,T=!1;M>>7&&(T=!0,ot=t,$=mt,t+=3*mt);var et=t;for(t++;;){var L;if(!((L=r[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}p.push({x:j,y:S,width:W,height:z,has_local_palette:T,palette_offset:ot,palette_size:$,data_offset:et,data_length:t-et,transparent_index:x,interlaced:!!at,delay:y,disposal:g});break;case 59:f=!1;break;default:throw new Error("Unknown gif block: 0x"+r[t-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return P},this.frameInfo=function(O){if(O<0||O>=p.length)throw new Error("Frame index out of range.");return p[O]},this.decodeAndBlitFrameBGRA=function(O,G){var U=this.frameInfo(O),nt=U.width*U.height,ht=new Uint8Array(nt);ah(r,U.data_offset,ht,nt);var dt=U.palette_offset,rt=U.transparent_index;rt===null&&(rt=256);var ft=U.width,Nt=e-ft,wt=ft,_=4*(U.y*e+U.x),B=4*((U.y+U.height)*e+U.x),R=_,V=4*Nt;U.interlaced===!0&&(V+=4*e*7);for(var J=8,Z=0,lt=ht.length;Z<lt;++Z){var it=ht[Z];if(wt===0&&(wt=ft,(R+=V)>=B&&(V=4*Nt+4*e*(J-1),R=_+(ft+Nt)*(J<<1),J>>=1)),it===rt)R+=4;else{var vt=r[dt+3*it],_t=r[dt+3*it+1],kt=r[dt+3*it+2];G[R++]=kt,G[R++]=_t,G[R++]=vt,G[R++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(O,G){var U=this.frameInfo(O),nt=U.width*U.height,ht=new Uint8Array(nt);ah(r,U.data_offset,ht,nt);var dt=U.palette_offset,rt=U.transparent_index;rt===null&&(rt=256);var ft=U.width,Nt=e-ft,wt=ft,_=4*(U.y*e+U.x),B=4*((U.y+U.height)*e+U.x),R=_,V=4*Nt;U.interlaced===!0&&(V+=4*e*7);for(var J=8,Z=0,lt=ht.length;Z<lt;++Z){var it=ht[Z];if(wt===0&&(wt=ft,(R+=V)>=B&&(V=4*Nt+4*e*(J-1),R=_+(ft+Nt)*(J<<1),J>>=1)),it===rt)R+=4;else{var vt=r[dt+3*it],_t=r[dt+3*it+1],kt=r[dt+3*it+2];G[R++]=vt,G[R++]=_t,G[R++]=kt,G[R++]=255}--wt}}}function ah(r,t,e,n){for(var a=r[t++],i=1<<a,h=i+1,l=h+1,u=a+1,f=(1<<u)-1,p=0,y=0,x=0,g=r[t++],P=new Int32Array(4096),C=null;;){for(;p<16&&g!==0;)y|=r[t++]<<p,p+=8,g===1?g=r[t++]:--g;if(p<u)break;var j=y&f;if(y>>=u,p-=u,j!==i){if(j===h)break;for(var S=j<l?j:C,W=0,z=S;z>i;)z=P[z]>>8,++W;var M=z;if(x+W+(S!==j?1:0)>n)return void Le.log("Warning, gif stream longer than expected.");e[x++]=M;var at=x+=W;for(S!==j&&(e[x++]=M),z=S;W--;)z=P[z],e[--at]=255&z,z>>=8;C!==null&&l<4096&&(P[l++]=C<<8|M,l>=f+1&&u<12&&(++u,f=f<<1|1)),C=j}else l=h+1,f=(1<<(u=a+1))-1,C=null}return x!==n&&Le.log("Warning, gif stream shorter than expected."),e}/**
|
|
120
|
-
* @license
|
|
121
|
-
Copyright (c) 2008, Adobe Systems Incorporated
|
|
122
|
-
All rights reserved.
|
|
123
|
-
|
|
124
|
-
Redistribution and use in source and binary forms, with or without
|
|
125
|
-
modification, are permitted provided that the following conditions are
|
|
126
|
-
met:
|
|
127
|
-
|
|
128
|
-
* Redistributions of source code must retain the above copyright notice,
|
|
129
|
-
this list of conditions and the following disclaimer.
|
|
130
|
-
|
|
131
|
-
* Redistributions in binary form must reproduce the above copyright
|
|
132
|
-
notice, this list of conditions and the following disclaimer in the
|
|
133
|
-
documentation and/or other materials provided with the distribution.
|
|
134
|
-
|
|
135
|
-
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
136
|
-
contributors may be used to endorse or promote products derived from
|
|
137
|
-
this software without specific prior written permission.
|
|
138
|
-
|
|
139
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
140
|
-
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
141
|
-
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
142
|
-
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
143
|
-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
144
|
-
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
145
|
-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
146
|
-
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
147
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
148
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
149
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
150
|
-
*/function Bs(r){var t,e,n,a,i,h=Math.floor,l=new Array(64),u=new Array(64),f=new Array(64),p=new Array(64),y=new Array(65535),x=new Array(65535),g=new Array(64),P=new Array(64),C=[],j=0,S=7,W=new Array(64),z=new Array(64),M=new Array(64),at=new Array(256),mt=new Array(2048),ot=[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],$=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],et=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[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],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],nt=[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 ht(_,B){for(var R=0,V=0,J=new Array,Z=1;Z<=16;Z++){for(var lt=1;lt<=_[Z];lt++)J[B[V]]=[],J[B[V]][0]=R,J[B[V]][1]=Z,V++,R++;R*=2}return J}function dt(_){for(var B=_[0],R=_[1]-1;R>=0;)B&1<<R&&(j|=1<<S),R--,--S<0&&(j==255?(rt(255),rt(0)):rt(j),S=7,j=0)}function rt(_){C.push(_)}function ft(_){rt(_>>8&255),rt(255&_)}function Nt(_,B,R,V,J){for(var Z,lt=J[0],it=J[240],vt=(function(At,Tt){var St,ne,Ut,de,Xt,Zt,we,ie,Mt,Gt,qt=0;for(Mt=0;Mt<8;++Mt){St=At[qt],ne=At[qt+1],Ut=At[qt+2],de=At[qt+3],Xt=At[qt+4],Zt=At[qt+5],we=At[qt+6];var Se=St+(ie=At[qt+7]),pe=St-ie,Bt=ne+we,Qt=ne-we,Ae=Ut+Zt,Ht=Ut-Zt,ue=de+Xt,te=de-Xt,Te=Se+ue,Xe=Se-ue,_e=Bt+Ae,Jt=Bt-Ae;At[qt]=Te+_e,At[qt+4]=Te-_e;var ve=.707106781*(Jt+Xe);At[qt+2]=Xe+ve,At[qt+6]=Xe-ve;var ti=.382683433*((Te=te+Ht)-(Jt=Qt+pe)),fr=.5411961*Te+ti,mn=1.306562965*Jt+ti,rn=.707106781*(_e=Ht+Qt),Wt=pe+rn,bn=pe-rn;At[qt+5]=bn+fr,At[qt+3]=bn-fr,At[qt+1]=Wt+mn,At[qt+7]=Wt-mn,qt+=8}for(qt=0,Mt=0;Mt<8;++Mt){St=At[qt],ne=At[qt+8],Ut=At[qt+16],de=At[qt+24],Xt=At[qt+32],Zt=At[qt+40],we=At[qt+48];var yn=St+(ie=At[qt+56]),Dr=St-ie,Rr=ne+we,je=ne-we,nr=Ut+Zt,or=Ut-Zt,ei=de+Xt,Dn=de-Xt,Wr=yn+ei,nn=yn-ei,Gr=Rr+nr,Vr=Rr-nr;At[qt]=Wr+Gr,At[qt+32]=Wr-Gr;var Tr=.707106781*(Vr+nn);At[qt+16]=nn+Tr,At[qt+48]=nn-Tr;var ri=.382683433*((Wr=Dn+or)-(Vr=je+Dr)),an=.5411961*Wr+ri,ni=1.306562965*Vr+ri,Ni=.707106781*(Gr=or+je),Li=Dr+Ni,Si=Dr-Ni;At[qt+40]=Si+an,At[qt+24]=Si-an,At[qt+8]=Li+ni,At[qt+56]=Li-ni,qt++}for(Mt=0;Mt<64;++Mt)Gt=At[Mt]*Tt[Mt],g[Mt]=Gt>0?Gt+.5|0:Gt-.5|0;return g})(_,B),_t=0;_t<64;++_t)P[ot[_t]]=vt[_t];var kt=P[0]-R;R=P[0],kt==0?dt(V[0]):(dt(V[x[Z=32767+kt]]),dt(y[Z]));for(var Pt=63;Pt>0&&P[Pt]==0;)Pt--;if(Pt==0)return dt(lt),R;for(var st,D=1;D<=Pt;){for(var le=D;P[D]==0&&D<=Pt;)++D;var re=D-le;if(re>=16){st=re>>4;for(var zt=1;zt<=st;++zt)dt(it);re&=15}Z=32767+P[D],dt(J[(re<<4)+x[Z]]),dt(y[Z]),D++}return Pt!=63&&dt(lt),R}function wt(_){_=Math.min(Math.max(_,1),100),i!=_&&((function(B){for(var R=[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],V=0;V<64;V++){var J=h((R[V]*B+50)/100);J=Math.min(Math.max(J,1),255),l[ot[V]]=J}for(var Z=[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],lt=0;lt<64;lt++){var it=h((Z[lt]*B+50)/100);it=Math.min(Math.max(it,1),255),u[ot[lt]]=it}for(var vt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_t=0,kt=0;kt<8;kt++)for(var Pt=0;Pt<8;Pt++)f[_t]=1/(l[ot[_t]]*vt[kt]*vt[Pt]*8),p[_t]=1/(u[ot[_t]]*vt[kt]*vt[Pt]*8),_t++})(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),i=_)}this.encode=function(_,B){B&&wt(B),C=new Array,j=0,S=7,ft(65496),ft(65504),ft(16),rt(74),rt(70),rt(73),rt(70),rt(0),rt(1),rt(1),rt(0),ft(1),ft(1),rt(0),rt(0),(function(){ft(65499),ft(132),rt(0);for(var ne=0;ne<64;ne++)rt(l[ne]);rt(1);for(var Ut=0;Ut<64;Ut++)rt(u[Ut])})(),(function(ne,Ut){ft(65472),ft(17),rt(8),ft(Ut),ft(ne),rt(3),rt(1),rt(17),rt(0),rt(2),rt(17),rt(1),rt(3),rt(17),rt(1)})(_.width,_.height),(function(){ft(65476),ft(418),rt(0);for(var ne=0;ne<16;ne++)rt($[ne+1]);for(var Ut=0;Ut<=11;Ut++)rt(T[Ut]);rt(16);for(var de=0;de<16;de++)rt(et[de+1]);for(var Xt=0;Xt<=161;Xt++)rt(L[Xt]);rt(1);for(var Zt=0;Zt<16;Zt++)rt(O[Zt+1]);for(var we=0;we<=11;we++)rt(G[we]);rt(17);for(var ie=0;ie<16;ie++)rt(U[ie+1]);for(var Mt=0;Mt<=161;Mt++)rt(nt[Mt])})(),ft(65498),ft(12),rt(3),rt(1),rt(0),rt(2),rt(17),rt(3),rt(17),rt(0),rt(63),rt(0);var R=0,V=0,J=0;j=0,S=7,this.encode.displayName="_encode_";for(var Z,lt,it,vt,_t,kt,Pt,st,D,le=_.data,re=_.width,zt=_.height,At=4*re,Tt=0;Tt<zt;){for(Z=0;Z<At;){for(_t=At*Tt+Z,Pt=-1,st=0,D=0;D<64;D++)kt=_t+(st=D>>3)*At+(Pt=4*(7&D)),Tt+st>=zt&&(kt-=At*(Tt+1+st-zt)),Z+Pt>=At&&(kt-=Z+Pt-At+4),lt=le[kt++],it=le[kt++],vt=le[kt++],W[D]=(mt[lt]+mt[it+256|0]+mt[vt+512|0]>>16)-128,z[D]=(mt[lt+768|0]+mt[it+1024|0]+mt[vt+1280|0]>>16)-128,M[D]=(mt[lt+1280|0]+mt[it+1536|0]+mt[vt+1792|0]>>16)-128;R=Nt(W,f,R,t,n),V=Nt(z,p,V,e,a),J=Nt(M,p,J,e,a),Z+=32}Tt+=8}if(S>=0){var St=[];St[1]=S+1,St[0]=(1<<S+1)-1,dt(St)}return ft(65497),new Uint8Array(C)},r=r||50,(function(){for(var _=String.fromCharCode,B=0;B<256;B++)at[B]=_(B)})(),t=ht($,T),e=ht(O,G),n=ht(et,L),a=ht(U,nt),(function(){for(var _=1,B=2,R=1;R<=15;R++){for(var V=_;V<B;V++)x[32767+V]=R,y[32767+V]=[],y[32767+V][1]=R,y[32767+V][0]=V;for(var J=-(B-1);J<=-_;J++)x[32767+J]=R,y[32767+J]=[],y[32767+J][1]=R,y[32767+J][0]=B-1+J;_<<=1,B<<=1}})(),(function(){for(var _=0;_<256;_++)mt[_]=19595*_,mt[_+256|0]=38470*_,mt[_+512|0]=7471*_+32768,mt[_+768|0]=-11059*_,mt[_+1024|0]=-21709*_,mt[_+1280|0]=32768*_+8421375,mt[_+1536|0]=-27439*_,mt[_+1792|0]=-5329*_})(),wt(r)}/**
|
|
151
|
-
* @license
|
|
152
|
-
* Copyright (c) 2017 Aras Abbasi
|
|
153
|
-
*
|
|
154
|
-
* Licensed under the MIT License.
|
|
155
|
-
* http://opensource.org/licenses/mit-license
|
|
156
|
-
*/function Zr(r,t){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.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 oh(r){function t(T){if(!T)throw Error("assert :P")}function e(T,et,L){for(var O=0;4>O;O++)if(T[et+O]!=L.charCodeAt(O))return!0;return!1}function n(T,et,L,O,G){for(var U=0;U<G;U++)T[et+U]=L[O+U]}function a(T,et,L,O){for(var G=0;G<O;G++)T[et+G]=L}function i(T){return new Int32Array(T)}function h(T,et){for(var L=[],O=0;O<T;O++)L.push(new et);return L}function l(T,et){var L=[];return(function O(G,U,nt){for(var ht=nt[U],dt=0;dt<ht&&(G.push(nt.length>U+1?[]:new et),!(nt.length<U+1));dt++)O(G[dt],U+1,nt)})(L,0,T),L}var u=function(){var T=this;function et(o,s){for(var d=1<<s-1>>>0;o&d;)d>>>=1;return d?(o&d-1)+d:o}function L(o,s,d,v,m){t(!(v%d));do o[s+(v-=d)]=m;while(0<v)}function O(o,s,d,v,m){if(t(2328>=m),512>=m)var w=i(512);else if((w=i(m))==null)return 0;return(function(A,N,k,F,H,tt){var I,Y,X=N,ut=1<<k,Q=i(16),ct=i(16);for(t(H!=0),t(F!=null),t(A!=null),t(0<k),Y=0;Y<H;++Y){if(15<F[Y])return 0;++Q[F[Y]]}if(Q[0]==H)return 0;for(ct[1]=0,I=1;15>I;++I){if(Q[I]>1<<I)return 0;ct[I+1]=ct[I]+Q[I]}for(Y=0;Y<H;++Y)I=F[Y],0<F[Y]&&(tt[ct[I]++]=Y);if(ct[15]==1)return(F=new G).g=0,F.value=tt[0],L(A,X,1,ut,F),ut;var gt,xt=-1,bt=ut-1,Dt=0,Ct=1,oe=1,Et=1<<k;for(Y=0,I=1,H=2;I<=k;++I,H<<=1){if(Ct+=oe<<=1,0>(oe-=Q[I]))return 0;for(;0<Q[I];--Q[I])(F=new G).g=I,F.value=tt[Y++],L(A,X+Dt,H,Et,F),Dt=et(Dt,I)}for(I=k+1,H=2;15>=I;++I,H<<=1){if(Ct+=oe<<=1,0>(oe-=Q[I]))return 0;for(;0<Q[I];--Q[I]){if(F=new G,(Dt&bt)!=xt){for(X+=Et,gt=1<<(xt=I)-k;15>xt&&!(0>=(gt-=Q[xt]));)++xt,gt<<=1;ut+=Et=1<<(gt=xt-k),A[N+(xt=Dt&bt)].g=gt+k,A[N+xt].value=X-N-xt}F.g=I-k,F.value=tt[Y++],L(A,X+(Dt>>k),H,Et,F),Dt=et(Dt,I)}}return Ct!=2*ct[15]-1?0:ut})(o,s,d,v,m,w)}function G(){this.value=this.g=0}function U(){this.value=this.g=0}function nt(){this.G=h(5,G),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(ln,U)}function ht(o,s,d,v){t(o!=null),t(s!=null),t(2147483648>v),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=s,o.pa=d,o.Jd=s,o.Yc=d+v,o.Zc=4<=v?d+v-4+1:d,lt(o)}function dt(o,s){for(var d=0;0<s--;)d|=vt(o,128)<<s;return d}function rt(o,s){var d=dt(o,s);return it(o)?-d:d}function ft(o,s,d,v){var m,w=0;for(t(o!=null),t(s!=null),t(4294967288>v),o.Sb=v,o.Ra=0,o.u=0,o.h=0,4<v&&(v=4),m=0;m<v;++m)w+=s[d+m]<<8*m;o.Ra=w,o.bb=v,o.oa=s,o.pa=d}function Nt(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<Hn-8>>>0,++o.bb,o.u-=8;V(o)&&(o.h=1,o.u=0)}function wt(o,s){if(t(0<=s),!o.h&&s<=ma){var d=R(o)&zn[s];return o.u+=s,Nt(o),d}return o.h=1,o.u=0}function _(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function B(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function R(o){return o.Ra>>>(o.u&Hn-1)>>>0}function V(o){return t(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>Hn}function J(o,s){o.u=s,o.h=V(o)}function Z(o){o.u>=qe&&(t(o.u>=qe),Nt(o))}function lt(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 dt(o,1)}function vt(o,s){var d=o.Ca;0>o.b&<(o);var v=o.b,m=d*s>>>8,w=(o.I>>>v>m)+0;for(w?(d-=m,o.I-=m+1<<v>>>0):d=m+1,v=d,m=0;256<=v;)m+=8,v>>=8;return v=7^m+Zo[v],o.b-=v,o.Ca=(d<<v)-1,w}function _t(o,s,d){o[s+0]=d>>24&255,o[s+1]=d>>16&255,o[s+2]=d>>8&255,o[s+3]=255&d}function kt(o,s){return o[s+0]|o[s+1]<<8}function Pt(o,s){return kt(o,s)|o[s+2]<<16}function st(o,s){return kt(o,s)|kt(o,s+2)<<16}function D(o,s){var d=1<<s;return t(o!=null),t(0<s),o.X=i(d),o.X==null?0:(o.Mb=32-s,o.Xa=s,1)}function le(o,s){t(o!=null),t(s!=null),t(o.Xa==s.Xa),n(s.X,0,o.X,0,1<<s.Xa)}function re(){this.X=[],this.Xa=this.Mb=0}function zt(o,s,d,v){t(d!=null),t(v!=null);var m=d[0],w=v[0];return m==0&&(m=(o*w+s/2)/s),w==0&&(w=(s*m+o/2)/o),0>=m||0>=w?0:(d[0]=m,v[0]=w,1)}function At(o,s){return o+(1<<s)-1>>>s}function Tt(o,s){return((4278255360&o)+(4278255360&s)>>>0&4278255360)+((16711935&o)+(16711935&s)>>>0&16711935)>>>0}function St(o,s){T[s]=function(d,v,m,w,A,N,k){var F;for(F=0;F<A;++F){var H=T[o](N[k+F-1],m,w+F);N[k+F]=Tt(d[v+F],H)}}}function ne(){this.ud=this.hd=this.jd=0}function Ut(o,s){return((4278124286&(o^s))>>>1)+(o&s)>>>0}function de(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function Xt(o,s){return de(o+(o-s+.5>>1))}function Zt(o,s,d){return Math.abs(s-d)-Math.abs(o-d)}function we(o,s,d,v,m,w,A){for(v=w[A-1],d=0;d<m;++d)w[A+d]=v=Tt(o[s+d],v)}function ie(o,s,d,v,m){var w;for(w=0;w<d;++w){var A=o[s+w],N=A>>8&255,k=16711935&(k=(k=16711935&A)+((N<<16)+N));v[m+w]=(4278255360&A)+k>>>0}}function Mt(o,s){s.jd=255&o,s.hd=o>>8&255,s.ud=o>>16&255}function Gt(o,s,d,v,m,w){var A;for(A=0;A<v;++A){var N=s[d+A],k=N>>>8,F=N,H=255&(H=(H=N>>>16)+((o.jd<<24>>24)*(k<<24>>24)>>>5));F=255&(F=(F+=(o.hd<<24>>24)*(k<<24>>24)>>>5)+((o.ud<<24>>24)*(H<<24>>24)>>>5)),m[w+A]=(4278255360&N)+(H<<16)+F}}function qt(o,s,d,v,m){T[s]=function(w,A,N,k,F,H,tt,I,Y){for(k=tt;k<I;++k)for(tt=0;tt<Y;++tt)F[H++]=m(N[v(w[A++])])},T[o]=function(w,A,N,k,F,H,tt){var I=8>>w.b,Y=w.Ea,X=w.K[0],ut=w.w;if(8>I)for(w=(1<<w.b)-1,ut=(1<<I)-1;A<N;++A){var Q,ct=0;for(Q=0;Q<Y;++Q)Q&w||(ct=v(k[F++])),H[tt++]=m(X[ct&ut]),ct>>=I}else T["VP8LMapColor"+d](k,F,X,ut,H,tt,A,N,Y)}}function Se(o,s,d,v,m){for(d=s+d;s<d;){var w=o[s++];v[m++]=w>>16&255,v[m++]=w>>8&255,v[m++]=255&w}}function pe(o,s,d,v,m){for(d=s+d;s<d;){var w=o[s++];v[m++]=w>>16&255,v[m++]=w>>8&255,v[m++]=255&w,v[m++]=w>>24&255}}function Bt(o,s,d,v,m){for(d=s+d;s<d;){var w=(A=o[s++])>>16&240|A>>12&15,A=240&A|A>>28&15;v[m++]=w,v[m++]=A}}function Qt(o,s,d,v,m){for(d=s+d;s<d;){var w=(A=o[s++])>>16&248|A>>13&7,A=A>>5&224|A>>3&31;v[m++]=w,v[m++]=A}}function Ae(o,s,d,v,m){for(d=s+d;s<d;){var w=o[s++];v[m++]=255&w,v[m++]=w>>8&255,v[m++]=w>>16&255}}function Ht(o,s,d,v,m,w){if(w==0)for(d=s+d;s<d;)_t(v,((w=o[s++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),m+=32;else n(v,m,o,s,d)}function ue(o,s){T[s][0]=T[o+"0"],T[s][1]=T[o+"1"],T[s][2]=T[o+"2"],T[s][3]=T[o+"3"],T[s][4]=T[o+"4"],T[s][5]=T[o+"5"],T[s][6]=T[o+"6"],T[s][7]=T[o+"7"],T[s][8]=T[o+"8"],T[s][9]=T[o+"9"],T[s][10]=T[o+"10"],T[s][11]=T[o+"11"],T[s][12]=T[o+"12"],T[s][13]=T[o+"13"],T[s][14]=T[o+"0"],T[s][15]=T[o+"0"]}function te(o){return o==es||o==rs||o==Qa||o==ns}function Te(){this.eb=[],this.size=this.A=this.fb=0}function Xe(){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 _e(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Te,this.f.kb=new Xe,this.sd=null}function Jt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ve(){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 ti(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function fr(o,s){var d=o.T,v=s.ba.f.RGBA,m=v.eb,w=v.fb+o.ka*v.A,A=zr[s.ba.S],N=o.y,k=o.O,F=o.f,H=o.N,tt=o.ea,I=o.W,Y=s.cc,X=s.dc,ut=s.Mc,Q=s.Nc,ct=o.ka,gt=o.ka+o.T,xt=o.U,bt=xt+1>>1;for(ct==0?A(N,k,null,null,F,H,tt,I,F,H,tt,I,m,w,null,null,xt):(A(s.ec,s.fc,N,k,Y,X,ut,Q,F,H,tt,I,m,w-v.A,m,w,xt),++d);ct+2<gt;ct+=2)Y=F,X=H,ut=tt,Q=I,H+=o.Rc,I+=o.Rc,w+=2*v.A,A(N,(k+=2*o.fa)-o.fa,N,k,Y,X,ut,Q,F,H,tt,I,m,w-v.A,m,w,xt);return k+=o.fa,o.j+gt<o.o?(n(s.ec,s.fc,N,k,xt),n(s.cc,s.dc,F,H,bt),n(s.Mc,s.Nc,tt,I,bt),d--):1>||A(N,k,null,null,F,H,tt,I,F,H,tt,I,m,w+v.A,null,null,xt),d}function mn(o,s,d){var v=o.F,m=[o.J];if(v!=null){var w=o.U,A=s.ba.S,N=A==Za||A==Qa;s=s.ba.f.RGBA;var k=[0],F=o.ka;k[0]=o.T,o.Kb&&(F==0?--k[0]:(--F,m[0]-=o.width),o.j+o.ka+o.T==o.o&&(k[0]=o.o-o.j-F));var H=s.eb;F=s.fb+F*s.A,o=bl(v,m[0],o.width,w,k,H,F+(N?0:3),s.A),t(d==k),o&&te(A)&&xa(H,F,N,w,k,s.A)}return 0}function rn(o){var s=o.ma,d=s.ba.S,v=11>d,m=d==$a||d==Xa||d==Za||d==ts||d==12||te(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!xr(s.Oa,o,m?11:12))return 0;if(m&&te(d)&&da(),o.da)alert("todo:use_scaling");else{if(v){if(s.Ib=ti,o.Kb){if(d=o.U+1>>1,s.memory=i(o.U+2*d),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+o.U,s.Mc=s.cc,s.Nc=s.dc+d,s.Ib=fr,da()}}else alert("todo:EmitYUV");m&&(s.Jb=mn,v&&ci())}if(v&&!jl){for(o=0;256>o;++o)qf[o]=89858*(o-128)+eo>>to,Hf[o]=-22014*(o-128)+eo,zf[o]=-45773*(o-128),Uf[o]=113618*(o-128)+eo>>to;for(o=_a;o<os;++o)s=76283*(o-16)+eo>>to,Wf[o-_a]=Qe(s,255),Gf[o-_a]=Qe(s+8>>4,15);jl=1}return 1}function Wt(o){var s=o.ma,d=o.U,v=o.T;return t(!(1&o.ka)),0>=d||0>=v?0:(d=s.Ib(o,s),s.Jb!=null&&s.Jb(o,s,d),s.Dc+=d,1)}function bn(o){o.ma.memory=null}function yn(o,s,d,v){return wt(o,8)!=47?0:(s[0]=wt(o,14)+1,d[0]=wt(o,14)+1,v[0]=wt(o,1),wt(o,3)!=0?0:!o.h)}function Dr(o,s){if(4>o)return o+1;var d=o-2>>1;return(2+(1&o)<<d)+wt(s,d)+1}function Rr(o,s){return 120<s?s-120:1<=(d=((d=Sf[s-1])>>4)*o+(8-(15&d)))?d:1;var d}function je(o,s,d){var v=R(d),m=o[s+=255&v].g-8;return 0<m&&(J(d,d.u+8),v=R(d),s+=o[s].value,s+=v&(1<<m)-1),J(d,d.u+o[s].g),o[s].value}function nr(o,s,d){return d.g+=o.g,d.value+=o.value<<s>>>0,t(8>=d.g),o.g}function or(o,s,d){var v=o.xc;return t((s=v==0?0:o.vc[o.md*(d>>v)+(s>>v)])<o.Wb),o.Ya[s]}function ei(o,s,d,v){var m=o.ab,w=o.c*s,A=o.C;s=A+s;var N=d,k=v;for(v=o.Ta,d=o.Ua;0<m--;){var F=o.gc[m],H=A,tt=s,I=N,Y=k,X=(k=v,N=d,F.Ea);switch(t(H<tt),t(tt<=F.nc),F.hc){case 2:Di(I,Y,(tt-H)*X,k,N);break;case 0:var ut=H,Q=tt,ct=k,gt=N,xt=(Et=F).Ea;ut==0&&(un(I,Y,null,null,1,ct,gt),we(I,Y+1,0,0,xt-1,ct,gt+1),Y+=xt,gt+=xt,++ut);for(var bt=1<<Et.b,Dt=bt-1,Ct=At(xt,Et.b),oe=Et.K,Et=Et.w+(ut>>Et.b)*Ct;ut<Q;){var he=oe,tr=Et,se=1;for(hn(I,Y,ct,gt-xt,1,ct,gt);se<xt;){var Ot=(se&~Dt)+bt;Ot>xt&&(Ot=xt),(0,gi[he[tr++]>>8&15])(I,Y+ +se,ct,gt+se-xt,Ot-se,ct,gt+se),se=Ot}Y+=xt,gt+=xt,++ut&Dt||(Et+=Ct)}tt!=F.nc&&n(k,N-X,k,N+(tt-H-1)*X,X);break;case 1:for(X=I,Q=Y,xt=(I=F.Ea)-(gt=I&~(ct=(Y=1<<F.b)-1)),ut=At(I,F.b),bt=F.K,F=F.w+(H>>F.b)*ut;H<tt;){for(Dt=bt,Ct=F,oe=new ne,Et=Q+gt,he=Q+I;Q<Et;)Mt(Dt[Ct++],oe),Sn(oe,X,Q,Y,k,N),Q+=Y,N+=Y;Q<he&&(Mt(Dt[Ct++],oe),Sn(oe,X,Q,xt,k,N),Q+=xt,N+=xt),++H&ct||(F+=ut)}break;case 3:if(I==k&&Y==N&&0<F.b){for(Q=k,I=X=N+(tt-H)*X-(gt=(tt-H)*At(F.Ea,F.b)),Y=k,ct=N,ut=[],gt=(xt=gt)-1;0<=gt;--gt)ut[gt]=Y[ct+gt];for(gt=xt-1;0<=gt;--gt)Q[I+gt]=ut[gt];ba(F,H,tt,k,X,k,N)}else ba(F,H,tt,I,Y,k,N)}N=v,k=d}k!=d&&n(v,d,N,k,w)}function Dn(o,s){var d=o.V,v=o.Ba+o.c*o.C,m=s-o.C;if(t(s<=o.l.o),t(16>=m),0<m){var w=o.l,A=o.Ta,N=o.Ua,k=w.width;if(ei(o,m,d,v),m=N=[N],t((d=o.C)<(v=s)),t(w.v<w.va),v>w.o&&(v=w.o),d<w.j){var F=w.j-d;d=w.j,m[0]+=F*k}if(d>=v?d=0:(m[0]+=4*w.v,w.ka=d-w.j,w.U=w.va-w.v,w.T=v-d,d=1),d){if(N=N[0],11>(d=o.ca).S){var H=d.f.RGBA,tt=(v=d.S,m=w.U,w=w.T,F=H.eb,H.A),I=w;for(H=H.fb+o.Ma*H.A;0<I--;){var Y=A,X=N,ut=m,Q=F,ct=H;switch(v){case Ka:ya(Y,X,ut,Q,ct);break;case $a:kr(Y,X,ut,Q,ct);break;case es:kr(Y,X,ut,Q,ct),xa(Q,ct,0,ut,1,0);break;case Ll:Pe(Y,X,ut,Q,ct);break;case Xa:Ht(Y,X,ut,Q,ct,1);break;case rs:Ht(Y,X,ut,Q,ct,1),xa(Q,ct,0,ut,1,0);break;case Za:Ht(Y,X,ut,Q,ct,0);break;case Qa:Ht(Y,X,ut,Q,ct,0),xa(Q,ct,1,ut,1,0);break;case ts:fn(Y,X,ut,Q,ct);break;case ns:fn(Y,X,ut,Q,ct),ml(Q,ct,ut,1,0);break;case Sl:ke(Y,X,ut,Q,ct);break;default:t(0)}N+=k,H+=tt}o.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");t(o.Ma<=d.height)}}o.C=s,t(o.C<=o.i)}function Wr(o){var s;if(0<o.ua)return 0;for(s=0;s<o.Wb;++s){var d=o.Ya[s].G,v=o.Ya[s].H;if(0<d[1][v[1]+0].g||0<d[2][v[2]+0].g||0<d[3][v[3]+0].g)return 0}return 1}function nn(o,s,d,v,m,w){if(o.Z!=0){var A=o.qd,N=o.rd;for(t(Gn[o.Z]!=null);s<d;++s)Gn[o.Z](A,N,v,m,v,m,w),A=v,N=m,m+=w;o.qd=A,o.rd=N}}function Gr(o,s){var d=o.l.ma,v=d.Z==0||d.Z==1?o.l.j:o.C;if(v=o.C<v?v:o.C,t(s<=o.l.o),s>v){var m=o.l.width,w=d.ca,A=d.tb+m*v,N=o.V,k=o.Ba+o.c*v,F=o.gc;t(o.ab==1),t(F[0].hc==3),Ti(F[0],v,s,N,k,w,A),nn(d,v,s,w,A,m)}o.C=o.Ma=s}function Vr(o,s,d,v,m,w,A){var N=o.$/v,k=o.$%v,F=o.m,H=o.s,tt=d+o.$,I=tt;m=d+v*m;var Y=d+v*w,X=280+H.ua,ut=o.Pb?N:16777216,Q=0<H.ua?H.Wa:null,ct=H.wc,gt=tt<Y?or(H,k,N):null;t(o.C<w),t(Y<=m);var xt=!1;t:for(;;){for(;xt||tt<Y;){var bt=0;if(N>=ut){var Dt=tt-d;t((ut=o).Pb),ut.wd=ut.m,ut.xd=Dt,0<ut.s.ua&&le(ut.s.Wa,ut.s.vb),ut=N+Pf}if(k&ct||(gt=or(H,k,N)),t(gt!=null),gt.Qb&&(s[tt]=gt.qb,xt=!0),!xt)if(Z(F),gt.jc){bt=F,Dt=s;var Ct=tt,oe=gt.pd[R(bt)&ln-1];t(gt.jc),256>oe.g?(J(bt,bt.u+oe.g),Dt[Ct]=oe.value,bt=0):(J(bt,bt.u+oe.g-256),t(256<=oe.value),bt=oe.value),bt==0&&(xt=!0)}else bt=je(gt.G[0],gt.H[0],F);if(F.h)break;if(xt||256>bt){if(!xt)if(gt.nd)s[tt]=(gt.qb|bt<<8)>>>0;else{if(Z(F),xt=je(gt.G[1],gt.H[1],F),Z(F),Dt=je(gt.G[2],gt.H[2],F),Ct=je(gt.G[3],gt.H[3],F),F.h)break;s[tt]=(Ct<<24|xt<<16|bt<<8|Dt)>>>0}if(xt=!1,++tt,++k>=v&&(k=0,++N,A!=null&&N<=w&&!(N%16)&&A(o,N),Q!=null))for(;I<tt;)bt=s[I++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else if(280>bt){if(bt=Dr(bt-256,F),Dt=je(gt.G[4],gt.H[4],F),Z(F),Dt=Rr(v,Dt=Dr(Dt,F)),F.h)break;if(tt-d<Dt||m-tt<bt)break t;for(Ct=0;Ct<bt;++Ct)s[tt+Ct]=s[tt+Ct-Dt];for(tt+=bt,k+=bt;k>=v;)k-=v,++N,A!=null&&N<=w&&!(N%16)&&A(o,N);if(t(tt<=m),k&ct&&(gt=or(H,k,N)),Q!=null)for(;I<tt;)bt=s[I++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else{if(!(bt<X))break t;for(xt=bt-280,t(Q!=null);I<tt;)bt=s[I++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;bt=tt,t(!(xt>>>(Dt=Q).Xa)),s[bt]=Dt.X[xt],xt=!0}xt||t(F.h==V(F))}if(o.Pb&&F.h&&tt<m)t(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&le(o.s.vb,o.s.Wa);else{if(F.h)break t;A?.(o,N>w?w:N),o.a=0,o.$=tt-d}return 1}return o.a=3,0}function Tr(o){t(o!=null),o.vc=null,o.yc=null,o.Ya=null;var s=o.Wa;s!=null&&(s.X=null),o.vb=null,t(o!=null)}function ri(){var o=new Oe;return o==null?null:(o.a=0,o.xb=Cl,ue("Predictor","VP8LPredictors"),ue("Predictor","VP8LPredictors_C"),ue("PredictorAdd","VP8LPredictorsAdd"),ue("PredictorAdd","VP8LPredictorsAdd_C"),Di=ie,Sn=Gt,ya=Se,kr=pe,fn=Bt,ke=Qt,Pe=Ae,T.VP8LMapColor32b=Ri,T.VP8LMapColor8b=pi,o)}function an(o,s,d,v,m){var w=1,A=[o],N=[s],k=v.m,F=v.s,H=null,tt=0;t:for(;;){if(d)for(;w&&wt(k,1);){var I=A,Y=N,X=v,ut=1,Q=X.m,ct=X.gc[X.ab],gt=wt(Q,2);if(X.Oc&1<<gt)w=0;else{switch(X.Oc|=1<<gt,ct.hc=gt,ct.Ea=I[0],ct.nc=Y[0],ct.K=[null],++X.ab,t(4>=X.ab),gt){case 0:case 1:ct.b=wt(Q,3)+2,ut=an(At(ct.Ea,ct.b),At(ct.nc,ct.b),0,X,ct.K),ct.K=ct.K[0];break;case 3:var xt,bt=wt(Q,8)+1,Dt=16<bt?0:4<bt?1:2<bt?2:3;if(I[0]=At(ct.Ea,Dt),ct.b=Dt,xt=ut=an(bt,1,0,X,ct.K)){var Ct,oe=bt,Et=ct,he=1<<(8>>Et.b),tr=i(he);if(tr==null)xt=0;else{var se=Et.K[0],Ot=Et.w;for(tr[0]=Et.K[0][0],Ct=1;Ct<1*oe;++Ct)tr[Ct]=Tt(se[Ot+Ct],tr[Ct-1]);for(;Ct<4*he;++Ct)tr[Ct]=0;Et.K[0]=null,Et.K[0]=tr,xt=1}}ut=xt;break;case 2:break;default:t(0)}w=ut}}if(A=A[0],N=N[0],w&&wt(k,1)&&!(w=1<=(tt=wt(k,4))&&11>=tt)){v.a=3;break t}var Lt;if(Lt=w)e:{var He,ee,fe,Fe=v,lr=A,br=N,Be=tt,cr=d,yr=Fe.m,er=Fe.s,ce=[null],be=1,De=0,ye=kf[Be];r:for(;;){if(cr&&wt(yr,1)){var ur=wt(yr,3)+2,$r=At(lr,ur),We=At(br,ur),_r=$r*We;if(!an($r,We,0,Fe,ce))break r;for(ce=ce[0],er.xc=ur,He=0;He<_r;++He){var Ne=ce[He]>>8&65535;ce[He]=Ne,Ne>=be&&(be=Ne+1)}}if(yr.h)break r;for(ee=0;5>ee;++ee){var rr=kl[ee];!ee&&0<Be&&(rr+=1<<Be),De<rr&&(De=rr)}var Cr=h(be*ye,G),wr=be,Fr=h(wr,nt);if(Fr==null)var Ir=null;else t(65536>=wr),Ir=Fr;var Nr=i(De);if(Ir==null||Nr==null||Cr==null){Fe.a=1;break r}var Er=Cr;for(He=fe=0;He<be;++He){var Ce=Ir[He],Or=Ce.G,Xr=Ce.H,vi=0,Cn=1,hr=0;for(ee=0;5>ee;++ee){rr=kl[ee],Or[ee]=Er,Xr[ee]=fe,!ee&&0<Be&&(rr+=1<<Be);i:{var no,ss=rr,io=Fe,Na=Nr,Jf=Er,Kf=fe,ls=0,Vn=io.m,$f=wt(Vn,1);if(a(Na,0,0,ss),$f){var Xf=wt(Vn,1)+1,Zf=wt(Vn,1),Rl=wt(Vn,Zf==0?1:8);Na[Rl]=1,Xf==2&&(Na[Rl=wt(Vn,8)]=1);var ao=1}else{var Tl=i(19),Ml=wt(Vn,4)+4;if(19<Ml){io.a=3;var oo=0;break i}for(no=0;no<Ml;++no)Tl[Lf[no]]=wt(Vn,3);var us=void 0,La=void 0,ql=io,Qf=Tl,so=ss,Ul=Na,hs=0,Yn=ql.m,zl=8,Hl=h(128,G);n:for(;O(Hl,0,7,Qf,19);){if(wt(Yn,1)){var tc=2+2*wt(Yn,3);if((us=2+wt(Yn,tc))>so)break n}else us=so;for(La=0;La<so&&us--;){Z(Yn);var Wl=Hl[0+(127&R(Yn))];J(Yn,Yn.u+Wl.g);var qi=Wl.value;if(16>qi)Ul[La++]=qi,qi!=0&&(zl=qi);else{var ec=qi==16,Gl=qi-16,rc=_f[Gl],Vl=wt(Yn,Af[Gl])+rc;if(La+Vl>so)break n;for(var nc=ec?zl:0;0<Vl--;)Ul[La++]=nc}}hs=1;break n}hs||(ql.a=3),ao=hs}(ao=ao&&!Vn.h)&&(ls=O(Jf,Kf,8,Na,ss)),ao&&ls!=0?oo=ls:(io.a=3,oo=0)}if(oo==0)break r;if(Cn&&Nf[ee]==1&&(Cn=Er[fe].g==0),vi+=Er[fe].g,fe+=oo,3>=ee){var Sa,fs=Nr[0];for(Sa=1;Sa<rr;++Sa)Nr[Sa]>fs&&(fs=Nr[Sa]);hr+=fs}}if(Ce.nd=Cn,Ce.Qb=0,Cn&&(Ce.qb=(Or[3][Xr[3]+0].value<<24|Or[1][Xr[1]+0].value<<16|Or[2][Xr[2]+0].value)>>>0,vi==0&&256>Or[0][Xr[0]+0].value&&(Ce.Qb=1,Ce.qb+=Or[0][Xr[0]+0].value<<8)),Ce.jc=!Ce.Qb&&6>hr,Ce.jc){var lo,Fn=Ce;for(lo=0;lo<ln;++lo){var Jn=lo,Kn=Fn.pd[Jn],uo=Fn.G[0][Fn.H[0]+Jn];256<=uo.value?(Kn.g=uo.g+256,Kn.value=uo.value):(Kn.g=0,Kn.value=0,Jn>>=nr(uo,8,Kn),Jn>>=nr(Fn.G[1][Fn.H[1]+Jn],16,Kn),Jn>>=nr(Fn.G[2][Fn.H[2]+Jn],0,Kn),nr(Fn.G[3][Fn.H[3]+Jn],24,Kn))}}}er.vc=ce,er.Wb=be,er.Ya=Ir,er.yc=Cr,Lt=1;break e}Lt=0}if(!(w=Lt)){v.a=3;break t}if(0<tt){if(F.ua=1<<tt,!D(F.Wa,tt)){v.a=1,w=0;break t}}else F.ua=0;var cs=v,Yl=A,ic=N,ds=cs.s,ps=ds.xc;if(cs.c=Yl,cs.i=ic,ds.md=At(Yl,ps),ds.wc=ps==0?-1:(1<<ps)-1,d){v.xb=Bf;break t}if((H=i(A*N))==null){v.a=1,w=0;break t}w=(w=Vr(v,H,0,A,N,N,null))&&!k.h;break t}return w?(m!=null?m[0]=H:(t(H==null),t(d)),v.$=0,d||Tr(F)):Tr(F),w}function ni(o,s){var d=o.c*o.i,v=d+s+16*s;return t(o.c<=s),o.V=i(v),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+d+s,1)}function Ni(o,s){var d=o.C,v=s-d,m=o.V,w=o.Ba+o.c*d;for(t(s<=o.l.o);0<v;){var A=16<v?16:v,N=o.l.ma,k=o.l.width,F=k*A,H=N.ca,tt=N.tb+k*d,I=o.Ta,Y=o.Ua;ei(o,A,m,w),yl(I,Y,H,tt,F),nn(N,d,d+A,H,tt,k),v-=A,m+=A*o.c,d+=A}t(d==s),o.C=o.Ma=s}function Li(){this.ub=this.yd=this.td=this.Rb=0}function Si(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Bo(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Qi(){this.Yb=(function(){var o=[];return(function s(d,v,m){for(var w=m[v],A=0;A<w&&(d.push(m.length>v+1?[]:0),!(m.length<v+1));A++)s(d[A],v+1,m)})(o,0,[3,11]),o})()}function Ba(){this.jb=i(3),this.Wc=l([4,8],Qi),this.Xc=l([4,17],Qi)}function Da(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Mr(){this.ld=this.La=this.dd=this.tc=0}function ta(){this.Na=this.la=0}function Ra(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ea(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ta(){this.uc=this.M=this.Nb=0,this.wa=Array(new Mr),this.Y=0,this.ya=Array(new ea),this.aa=0,this.l=new ki}function Ma(){this.y=i(16),this.f=i(8),this.ea=i(8)}function qa(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Li,this.Kc=new Si,this.ed=new Da,this.Qa=new Bo,this.Ic=this.$c=this.Aa=0,this.D=new Ta,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,_),this.ia=0,this.pb=h(4,Ra),this.Pa=new Ba,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ma),this.Hd=0,this.rb=Array(new ta),this.sb=0,this.wa=Array(new Mr),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 ea),this.L=this.aa=0,this.gd=l([4,2],Mr),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 ki(){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 Do(){var o=new qa;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Aa||(Aa=wn)),o}function Je(o,s,d){return o.a==0&&(o.a=s,o.sc=d,o.cb=0),0}function Ua(o,s,d){return 3<=d&&o[s+0]==157&&o[s+1]==1&&o[s+2]==42}function za(o,s){if(o==null)return 0;if(o.a=0,o.sc="OK",s==null)return Je(o,2,"null VP8Io passed to VP8GetHeaders()");var d=s.data,v=s.w,m=s.ha;if(4>m)return Je(o,7,"Truncated header.");var w=d[v+0]|d[v+1]<<8|d[v+2]<<16,A=o.Od;if(A.Rb=!(1&w),A.td=w>>1&7,A.yd=w>>4&1,A.ub=w>>5,3<A.td)return Je(o,3,"Incorrect keyframe parameters.");if(!A.yd)return Je(o,4,"Frame not displayable.");v+=3,m-=3;var N=o.Kc;if(A.Rb){if(7>m)return Je(o,7,"cannot parse picture header");if(!Ua(d,v,m))return Je(o,3,"Bad code word");N.c=16383&(d[v+4]<<8|d[v+3]),N.Td=d[v+4]>>6,N.i=16383&(d[v+6]<<8|d[v+5]),N.Ud=d[v+6]>>6,v+=7,m-=7,o.za=N.c+15>>4,o.Ub=N.i+15>>4,s.width=N.c,s.height=N.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,a((w=o.Pa).jb,0,255,w.jb.length),t((w=o.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,a(w.Zb,0,0,w.Zb.length),a(w.Lb,0,0,w.Lb)}if(A.ub>m)return Je(o,7,"bad partition length");ht(w=o.m,d,v,A.ub),v+=A.ub,m-=A.ub,A.Rb&&(N.Ld=it(w),N.Kd=it(w)),N=o.Qa;var k,F=o.Pa;if(t(w!=null),t(N!=null),N.Cb=it(w),N.Cb){if(N.Bb=it(w),it(w)){for(N.Fb=it(w),k=0;4>k;++k)N.Zb[k]=it(w)?rt(w,7):0;for(k=0;4>k;++k)N.Lb[k]=it(w)?rt(w,6):0}if(N.Bb)for(k=0;3>k;++k)F.jb[k]=it(w)?dt(w,8):255}else N.Bb=0;if(w.Ka)return Je(o,3,"cannot parse segment header");if((N=o.ed).zd=it(w),N.Tb=dt(w,6),N.wb=dt(w,3),N.Pc=it(w),N.Pc&&it(w)){for(F=0;4>F;++F)it(w)&&(N.vd[F]=rt(w,6));for(F=0;4>F;++F)it(w)&&(N.od[F]=rt(w,6))}if(o.L=N.Tb==0?0:N.zd?1:2,w.Ka)return Je(o,3,"cannot parse filter header");var H=m;if(m=k=v,v=k+H,N=H,o.Xb=(1<<dt(o.m,2))-1,H<3*(F=o.Xb))d=7;else{for(k+=3*F,N-=3*F,H=0;H<F;++H){var tt=d[m+0]|d[m+1]<<8|d[m+2]<<16;tt>N&&(tt=N),ht(o.Jc[+H],d,k,tt),k+=tt,N-=tt,m+=3}ht(o.Jc[+F],d,k,N),d=k<v?0:5}if(d!=0)return Je(o,d,"cannot parse partitions");for(d=dt(k=o.m,7),m=it(k)?rt(k,4):0,v=it(k)?rt(k,4):0,N=it(k)?rt(k,4):0,F=it(k)?rt(k,4):0,k=it(k)?rt(k,4):0,H=o.Qa,tt=0;4>tt;++tt){if(H.Cb){var I=H.Zb[tt];H.Fb||(I+=d)}else{if(0<tt){o.pb[tt]=o.pb[0];continue}I=d}var Y=o.pb[tt];Y.Sc[0]=is[Qe(I+m,127)],Y.Sc[1]=as[Qe(I+0,127)],Y.Eb[0]=2*is[Qe(I+v,127)],Y.Eb[1]=101581*as[Qe(I+N,127)]>>16,8>Y.Eb[1]&&(Y.Eb[1]=8),Y.Qc[0]=is[Qe(I+F,117)],Y.Qc[1]=as[Qe(I+k,127)],Y.lc=I+k}if(!A.Rb)return Je(o,4,"Not a key frame.");for(it(w),A=o.Pa,d=0;4>d;++d){for(m=0;8>m;++m)for(v=0;3>v;++v)for(N=0;11>N;++N)F=vt(w,Of[d][m][v][N])?dt(w,8):If[d][m][v][N],A.Wc[d][m].Yb[v][N]=F;for(m=0;17>m;++m)A.Xc[d][m]=A.Wc[d][jf[m]]}return o.kc=it(w),o.kc&&(o.Bd=dt(w,8)),o.cb=1}function wn(o,s,d,v,m,w,A){var N=s[m].Yb[d];for(d=0;16>m;++m){if(!vt(o,N[d+0]))return m;for(;!vt(o,N[d+1]);)if(N=s[++m].Yb[0],d=0,m==16)return 16;var k=s[m+1].Yb;if(vt(o,N[d+2])){var F=o,H=0;if(vt(F,(I=N)[(tt=d)+3]))if(vt(F,I[tt+6])){for(N=0,tt=2*(H=vt(F,I[tt+8]))+(I=vt(F,I[tt+9+H])),H=0,I=Cf[tt];I[N];++N)H+=H+vt(F,I[N]);H+=3+(8<<tt)}else vt(F,I[tt+7])?(H=7+2*vt(F,165),H+=vt(F,145)):H=5+vt(F,159);else H=vt(F,I[tt+4])?3+vt(F,I[tt+5]):2;N=k[2]}else H=1,N=k[1];k=A+Ff[m],0>(F=o).b&<(F);var tt,I=F.b,Y=(tt=F.Ca>>1)-(F.I>>I)>>31;--F.b,F.Ca+=Y,F.Ca|=1,F.I-=(tt+1&Y)<<I,w[k]=((H^Y)-Y)*v[(0<m)+0]}return 16}function ii(o){var s=o.rb[o.sb-1];s.la=0,s.Na=0,a(o.zc,0,0,o.zc.length),o.ja=0}function Yr(o,s,d,v,m){m=o[s+d+32*v]+(m>>3),o[s+d+32*v]=-256&m?0>m?0:255:m}function ai(o,s,d,v,m,w){Yr(o,s,0,d,v+m),Yr(o,s,1,d,v+w),Yr(o,s,2,d,v-w),Yr(o,s,3,d,v-m)}function Me(o){return(20091*o>>16)+o}function ra(o,s,d,v){var m,w=0,A=i(16);for(m=0;4>m;++m){var N=o[s+0]+o[s+8],k=o[s+0]-o[s+8],F=(35468*o[s+4]>>16)-Me(o[s+12]),H=Me(o[s+4])+(35468*o[s+12]>>16);A[w+0]=N+H,A[w+1]=k+F,A[w+2]=k-F,A[w+3]=N-H,w+=4,s++}for(m=w=0;4>m;++m)N=(o=A[w+0]+4)+A[w+8],k=o-A[w+8],F=(35468*A[w+4]>>16)-Me(A[w+12]),Yr(d,v,0,0,N+(H=Me(A[w+4])+(35468*A[w+12]>>16))),Yr(d,v,1,0,k+F),Yr(d,v,2,0,k-F),Yr(d,v,3,0,N-H),w++,v+=32}function Ro(o,s,d,v){var m=o[s+0]+4,w=35468*o[s+4]>>16,A=Me(o[s+4]),N=35468*o[s+1]>>16;ai(d,v,0,m+A,o=Me(o[s+1]),N),ai(d,v,1,m+w,o,N),ai(d,v,2,m-w,o,N),ai(d,v,3,m-A,o,N)}function To(o,s,d,v,m){ra(o,s,d,v),m&&ra(o,s+16,d,v+4)}function Mo(o,s,d,v){ze(o,s+0,d,v,1),ze(o,s+32,d,v+128,1)}function on(o,s,d,v){var m;for(o=o[s+0]+4,m=0;4>m;++m)for(s=0;4>s;++s)Yr(d,v,s,m,o)}function Ha(o,s,d,v){o[s+0]&&cn(o,s+0,d,v),o[s+16]&&cn(o,s+16,d,v+4),o[s+32]&&cn(o,s+32,d,v+128),o[s+48]&&cn(o,s+48,d,v+128+4)}function Wa(o,s,d,v){var m,w=i(16);for(m=0;4>m;++m){var A=o[s+0+m]+o[s+12+m],N=o[s+4+m]+o[s+8+m],k=o[s+4+m]-o[s+8+m],F=o[s+0+m]-o[s+12+m];w[0+m]=A+N,w[8+m]=A-N,w[4+m]=F+k,w[12+m]=F-k}for(m=0;4>m;++m)A=(o=w[0+4*m]+3)+w[3+4*m],N=w[1+4*m]+w[2+4*m],k=w[1+4*m]-w[2+4*m],F=o-w[3+4*m],d[v+0]=A+N>>3,d[v+16]=F+k>>3,d[v+32]=A-N>>3,d[v+48]=F-k>>3,v+=64}function Rn(o,s,d){var v,m=s-32,w=Pr,A=255-o[m-1];for(v=0;v<d;++v){var N,k=w,F=A+o[s-1];for(N=0;N<d;++N)o[s+N]=k[F+o[m+N]];s+=32}}function na(o,s){Rn(o,s,4)}function qo(o,s){Rn(o,s,8)}function Uo(o,s){Rn(o,s,16)}function zo(o,s){var d;for(d=0;16>d;++d)n(o,s+32*d,o,s-32,16)}function ia(o,s){var d;for(d=16;0<d;--d)a(o,s,o[s-1],16),s+=32}function oi(o,s,d){var v;for(v=0;16>v;++v)a(s,d+32*v,o,16)}function Tn(o,s){var d,v=16;for(d=0;16>d;++d)v+=o[s-1+32*d]+o[s+d-32];oi(v>>5,o,s)}function Ho(o,s){var d,v=8;for(d=0;16>d;++d)v+=o[s-1+32*d];oi(v>>4,o,s)}function si(o,s){var d,v=8;for(d=0;16>d;++d)v+=o[s+d-32];oi(v>>4,o,s)}function aa(o,s){oi(128,o,s)}function Kt(o,s,d){return o+2*s+d+2>>2}function Wo(o,s){var d,v=s-32;for(v=new Uint8Array([Kt(o[v-1],o[v+0],o[v+1]),Kt(o[v+0],o[v+1],o[v+2]),Kt(o[v+1],o[v+2],o[v+3]),Kt(o[v+2],o[v+3],o[v+4])]),d=0;4>d;++d)n(o,s+32*d,v,0,v.length)}function Go(o,s){var d=o[s-1],v=o[s-1+32],m=o[s-1+64],w=o[s-1+96];_t(o,s+0,16843009*Kt(o[s-1-32],d,v)),_t(o,s+32,16843009*Kt(d,v,m)),_t(o,s+64,16843009*Kt(v,m,w)),_t(o,s+96,16843009*Kt(m,w,w))}function Vo(o,s){var d,v=4;for(d=0;4>d;++d)v+=o[s+d-32]+o[s-1+32*d];for(v>>=3,d=0;4>d;++d)a(o,s+32*d,v,4)}function Yo(o,s){var d=o[s-1+0],v=o[s-1+32],m=o[s-1+64],w=o[s-1-32],A=o[s+0-32],N=o[s+1-32],k=o[s+2-32],F=o[s+3-32];o[s+0+96]=Kt(v,m,o[s-1+96]),o[s+1+96]=o[s+0+64]=Kt(d,v,m),o[s+2+96]=o[s+1+64]=o[s+0+32]=Kt(w,d,v),o[s+3+96]=o[s+2+64]=o[s+1+32]=o[s+0+0]=Kt(A,w,d),o[s+3+64]=o[s+2+32]=o[s+1+0]=Kt(N,A,w),o[s+3+32]=o[s+2+0]=Kt(k,N,A),o[s+3+0]=Kt(F,k,N)}function xn(o,s){var d=o[s+1-32],v=o[s+2-32],m=o[s+3-32],w=o[s+4-32],A=o[s+5-32],N=o[s+6-32],k=o[s+7-32];o[s+0+0]=Kt(o[s+0-32],d,v),o[s+1+0]=o[s+0+32]=Kt(d,v,m),o[s+2+0]=o[s+1+32]=o[s+0+64]=Kt(v,m,w),o[s+3+0]=o[s+2+32]=o[s+1+64]=o[s+0+96]=Kt(m,w,A),o[s+3+32]=o[s+2+64]=o[s+1+96]=Kt(w,A,N),o[s+3+64]=o[s+2+96]=Kt(A,N,k),o[s+3+96]=Kt(N,k,k)}function An(o,s){var d=o[s-1+0],v=o[s-1+32],m=o[s-1+64],w=o[s-1-32],A=o[s+0-32],N=o[s+1-32],k=o[s+2-32],F=o[s+3-32];o[s+0+0]=o[s+1+64]=w+A+1>>1,o[s+1+0]=o[s+2+64]=A+N+1>>1,o[s+2+0]=o[s+3+64]=N+k+1>>1,o[s+3+0]=k+F+1>>1,o[s+0+96]=Kt(m,v,d),o[s+0+64]=Kt(v,d,w),o[s+0+32]=o[s+1+96]=Kt(d,w,A),o[s+1+32]=o[s+2+96]=Kt(w,A,N),o[s+2+32]=o[s+3+96]=Kt(A,N,k),o[s+3+32]=Kt(N,k,F)}function Jo(o,s){var d=o[s+0-32],v=o[s+1-32],m=o[s+2-32],w=o[s+3-32],A=o[s+4-32],N=o[s+5-32],k=o[s+6-32],F=o[s+7-32];o[s+0+0]=d+v+1>>1,o[s+1+0]=o[s+0+64]=v+m+1>>1,o[s+2+0]=o[s+1+64]=m+w+1>>1,o[s+3+0]=o[s+2+64]=w+A+1>>1,o[s+0+32]=Kt(d,v,m),o[s+1+32]=o[s+0+96]=Kt(v,m,w),o[s+2+32]=o[s+1+96]=Kt(m,w,A),o[s+3+32]=o[s+2+96]=Kt(w,A,N),o[s+3+64]=Kt(A,N,k),o[s+3+96]=Kt(N,k,F)}function Ko(o,s){var d=o[s-1+0],v=o[s-1+32],m=o[s-1+64],w=o[s-1+96];o[s+0+0]=d+v+1>>1,o[s+2+0]=o[s+0+32]=v+m+1>>1,o[s+2+32]=o[s+0+64]=m+w+1>>1,o[s+1+0]=Kt(d,v,m),o[s+3+0]=o[s+1+32]=Kt(v,m,w),o[s+3+32]=o[s+1+64]=Kt(m,w,w),o[s+3+64]=o[s+2+64]=o[s+0+96]=o[s+1+96]=o[s+2+96]=o[s+3+96]=w}function Pi(o,s){var d=o[s-1+0],v=o[s-1+32],m=o[s-1+64],w=o[s-1+96],A=o[s-1-32],N=o[s+0-32],k=o[s+1-32],F=o[s+2-32];o[s+0+0]=o[s+2+32]=d+A+1>>1,o[s+0+32]=o[s+2+64]=v+d+1>>1,o[s+0+64]=o[s+2+96]=m+v+1>>1,o[s+0+96]=w+m+1>>1,o[s+3+0]=Kt(N,k,F),o[s+2+0]=Kt(A,N,k),o[s+1+0]=o[s+3+32]=Kt(d,A,N),o[s+1+32]=o[s+3+64]=Kt(v,d,A),o[s+1+64]=o[s+3+96]=Kt(m,v,d),o[s+1+96]=Kt(w,m,v)}function oa(o,s){var d;for(d=0;8>d;++d)n(o,s+32*d,o,s-32,8)}function li(o,s){var d;for(d=0;8>d;++d)a(o,s,o[s-1],8),s+=32}function Ci(o,s,d){var v;for(v=0;8>v;++v)a(s,d+32*v,o,8)}function Fi(o,s){var d,v=8;for(d=0;8>d;++d)v+=o[s+d-32]+o[s-1+32*d];Ci(v>>4,o,s)}function $o(o,s){var d,v=4;for(d=0;8>d;++d)v+=o[s+d-32];Ci(v>>3,o,s)}function sa(o,s){var d,v=4;for(d=0;8>d;++d)v+=o[s-1+32*d];Ci(v>>3,o,s)}function la(o,s){Ci(128,o,s)}function ui(o,s,d){var v=o[s-d],m=o[s+0],w=3*(m-v)+Qo[1020+o[s-2*d]-o[s+d]],A=Ja[112+(w+4>>3)];o[s-d]=Pr[255+v+Ja[112+(w+3>>3)]],o[s+0]=Pr[255+m-A]}function hi(o,s,d,v){var m=o[s+0],w=o[s+d];return Ur[255+o[s-2*d]-o[s-d]]>v||Ur[255+w-m]>v}function ua(o,s,d,v){return 4*Ur[255+o[s-d]-o[s+0]]+Ur[255+o[s-2*d]-o[s+d]]<=v}function Ii(o,s,d,v,m){var w=o[s-3*d],A=o[s-2*d],N=o[s-d],k=o[s+0],F=o[s+d],H=o[s+2*d],tt=o[s+3*d];return 4*Ur[255+N-k]+Ur[255+A-F]>v?0:Ur[255+o[s-4*d]-w]<=m&&Ur[255+w-A]<=m&&Ur[255+A-N]<=m&&Ur[255+tt-H]<=m&&Ur[255+H-F]<=m&&Ur[255+F-k]<=m}function ha(o,s,d,v){var m=2*v+1;for(v=0;16>v;++v)ua(o,s+v,d,m)&&ui(o,s+v,d)}function fi(o,s,d,v){var m=2*v+1;for(v=0;16>v;++v)ua(o,s+v*d,1,m)&&ui(o,s+v*d,1)}function fa(o,s,d,v){var m;for(m=3;0<m;--m)ha(o,s+=4*d,d,v)}function ca(o,s,d,v){var m;for(m=3;0<m;--m)fi(o,s+=4,d,v)}function Sr(o,s,d,v,m,w,A,N){for(w=2*w+1;0<m--;){if(Ii(o,s,d,w,A))if(hi(o,s,d,N))ui(o,s,d);else{var k=o,F=s,H=d,tt=k[F-2*H],I=k[F-H],Y=k[F+0],X=k[F+H],ut=k[F+2*H],Q=27*(gt=Qo[1020+3*(Y-I)+Qo[1020+tt-X]])+63>>7,ct=18*gt+63>>7,gt=9*gt+63>>7;k[F-3*H]=Pr[255+k[F-3*H]+gt],k[F-2*H]=Pr[255+tt+ct],k[F-H]=Pr[255+I+Q],k[F+0]=Pr[255+Y-Q],k[F+H]=Pr[255+X-ct],k[F+2*H]=Pr[255+ut-gt]}s+=v}}function sn(o,s,d,v,m,w,A,N){for(w=2*w+1;0<m--;){if(Ii(o,s,d,w,A))if(hi(o,s,d,N))ui(o,s,d);else{var k=o,F=s,H=d,tt=k[F-H],I=k[F+0],Y=k[F+H],X=Ja[112+(4+(ut=3*(I-tt))>>3)],ut=Ja[112+(ut+3>>3)],Q=X+1>>1;k[F-2*H]=Pr[255+k[F-2*H]+Q],k[F-H]=Pr[255+tt+ut],k[F+0]=Pr[255+I-X],k[F+H]=Pr[255+Y-Q]}s+=v}}function c(o,s,d,v,m,w){Sr(o,s,d,1,16,v,m,w)}function b(o,s,d,v,m,w){Sr(o,s,1,d,16,v,m,w)}function E(o,s,d,v,m,w){var A;for(A=3;0<A;--A)sn(o,s+=4*d,d,1,16,v,m,w)}function q(o,s,d,v,m,w){var A;for(A=3;0<A;--A)sn(o,s+=4,1,d,16,v,m,w)}function K(o,s,d,v,m,w,A,N){Sr(o,s,m,1,8,w,A,N),Sr(d,v,m,1,8,w,A,N)}function pt(o,s,d,v,m,w,A,N){Sr(o,s,1,m,8,w,A,N),Sr(d,v,1,m,8,w,A,N)}function yt(o,s,d,v,m,w,A,N){sn(o,s+4*m,m,1,8,w,A,N),sn(d,v+4*m,m,1,8,w,A,N)}function It(o,s,d,v,m,w,A,N){sn(o,s+4,1,m,8,w,A,N),sn(d,v+4,1,m,8,w,A,N)}function jt(){this.ba=new _e,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ve,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Vt(){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 ae(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ge(){this.ua=0,this.Wa=new re,this.vb=new re,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new nt,this.yc=new G}function Oe(){this.xb=this.a=0,this.l=new ki,this.ca=new _e,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new B,this.Pb=0,this.wd=new B,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ge,this.ab=0,this.gc=h(4,ae),this.Oc=0}function Ke(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ki,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function xe(o,s,d,v,m,w,A){for(o=o==null?0:o[s+0],s=0;s<A;++s)m[w+s]=o+d[v+s]&255,o=m[w+s]}function Ze(o,s,d,v,m,w,A){var N;if(o==null)xe(null,null,d,v,m,w,A);else for(N=0;N<A;++N)m[w+N]=o[s+N]+d[v+N]&255}function $e(o,s,d,v,m,w,A){if(o==null)xe(null,null,d,v,m,w,A);else{var N,k=o[s+0],F=k,H=k;for(N=0;N<A;++N)F=H+(k=o[s+N])-F,H=d[v+N]+(-256&F?0>F?0:255:F)&255,F=k,m[w+N]=H}}function sr(o,s,d,v){var m=s.width,w=s.o;if(t(o!=null&&s!=null),0>d||0>=v||d+v>w)return null;if(!o.Cc){if(o.ga==null){var A;if(o.ga=new Ke,(A=o.ga==null)||(A=s.width*s.o,t(o.Gb.length==0),o.Gb=i(A),o.Uc=0,o.Gb==null?A=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,A=1),A=!A),!A){A=o.ga;var N=o.Fa,k=o.P,F=o.qc,H=o.mb,tt=o.nb,I=k+1,Y=F-1,X=A.l;if(t(N!=null&&H!=null&&s!=null),Gn[0]=null,Gn[1]=xe,Gn[2]=Ze,Gn[3]=$e,A.ca=H,A.tb=tt,A.c=s.width,A.i=s.height,t(0<A.c&&0<A.i),1>=F)s=0;else if(A.$a=3&N[k+0],A.Z=N[k+0]>>2&3,A.Lc=N[k+0]>>4&3,k=N[k+0]>>6&3,0>A.$a||1<A.$a||4<=A.Z||1<A.Lc||k)s=0;else if(X.put=Wt,X.ac=rn,X.bc=bn,X.ma=A,X.width=s.width,X.height=s.height,X.Da=s.Da,X.v=s.v,X.va=s.va,X.j=s.j,X.o=s.o,A.$a)t:{t(A.$a==1),s=ri();e:for(;;){if(s==null){s=0;break t}if(t(A!=null),A.mc=s,s.c=A.c,s.i=A.i,s.l=A.l,s.l.ma=A,s.l.width=A.c,s.l.height=A.i,s.a=0,ft(s.m,N,I,Y),!an(A.c,A.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&Wr(s.s)?(A.ic=1,N=s.c*s.i,s.Ta=null,s.Ua=0,s.V=i(N),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(A.ic=0,s=ni(s,A.c)),!s))break e;s=1;break t}A.mc=null,s=0}else s=Y>=A.c*A.i;A=!s}if(A)return null;o.ga.Lc!=1?o.Ga=0:v=w-d}t(o.ga!=null),t(d+v<=w);t:{if(s=(N=o.ga).c,w=N.l.o,N.$a==0){if(I=o.rc,Y=o.Vc,X=o.Fa,k=o.P+1+d*s,F=o.mb,H=o.nb+d*s,t(k<=o.P+o.qc),N.Z!=0)for(t(Gn[N.Z]!=null),A=0;A<v;++A)Gn[N.Z](I,Y,X,k,F,H,s),I=F,Y=H,H+=s,k+=s;else for(A=0;A<v;++A)n(F,H,X,k,s),I=F,Y=H,H+=s,k+=s;o.rc=I,o.Vc=Y}else{if(t(N.mc!=null),s=d+v,t((A=N.mc)!=null),t(s<=A.i),A.C>=s)s=1;else if(N.ic||ci(),N.ic){N=A.V,I=A.Ba,Y=A.c;var ut=A.i,Q=(X=1,k=A.$/Y,F=A.$%Y,H=A.m,tt=A.s,A.$),ct=Y*ut,gt=Y*s,xt=tt.wc,bt=Q<gt?or(tt,F,k):null;t(Q<=ct),t(s<=ut),t(Wr(tt));e:for(;;){for(;!H.h&&Q<gt;){if(F&xt||(bt=or(tt,F,k)),t(bt!=null),Z(H),256>(ut=je(bt.G[0],bt.H[0],H)))N[I+Q]=ut,++Q,++F>=Y&&(F=0,++k<=s&&!(k%16)&&Gr(A,k));else{if(!(280>ut)){X=0;break e}ut=Dr(ut-256,H);var Dt,Ct=je(bt.G[4],bt.H[4],H);if(Z(H),!(Q>=(Ct=Rr(Y,Ct=Dr(Ct,H)))&&ct-Q>=ut)){X=0;break e}for(Dt=0;Dt<ut;++Dt)N[I+Q+Dt]=N[I+Q+Dt-Ct];for(Q+=ut,F+=ut;F>=Y;)F-=Y,++k<=s&&!(k%16)&&Gr(A,k);Q<gt&&F&xt&&(bt=or(tt,F,k))}t(H.h==V(H))}Gr(A,k>s?s:k);break e}!X||H.h&&Q<ct?(X=0,A.a=H.h?5:3):A.$=Q,s=X}else s=Vr(A,A.V,A.Ba,A.c,A.i,s,Ni);if(!s){v=0;break t}}d+v>=w&&(o.Cc=1),v=1}if(!v)return null;if(o.Cc&&((v=o.ga)!=null&&(v.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+d*m}function _n(o,s,d,v,m,w){for(;0<m--;){var A,N=o,k=s+(d?1:0),F=o,H=s+(d?0:3);for(A=0;A<v;++A){var tt=F[H+4*A];tt!=255&&(tt*=32897,N[k+4*A+0]=N[k+4*A+0]*tt>>23,N[k+4*A+1]=N[k+4*A+1]*tt>>23,N[k+4*A+2]=N[k+4*A+2]*tt>>23)}s+=w}}function Mn(o,s,d,v,m){for(;0<v--;){var w;for(w=0;w<d;++w){var A=o[s+2*w+0],N=15&(F=o[s+2*w+1]),k=4369*N,F=(240&F|F>>4)*k>>16;o[s+2*w+0]=(240&A|A>>4)*k>>16&240|(15&A|A<<4)*k>>16>>4&15,o[s+2*w+1]=240&F|N}s+=m}}function Xo(o,s,d,v,m,w,A,N){var k,F,H=255;for(F=0;F<m;++F){for(k=0;k<v;++k){var tt=o[s+k];w[A+4*k]=tt,H&=tt}s+=d,A+=N}return H!=255}function Ga(o,s,d,v,m){var w;for(w=0;w<m;++w)d[v+w]=o[s+w]>>8}function ci(){xa=_n,ml=Mn,bl=Xo,yl=Ga}function Jr(o,s,d){T[o]=function(v,m,w,A,N,k,F,H,tt,I,Y,X,ut,Q,ct,gt,xt){var bt,Dt=xt-1>>1,Ct=N[k+0]|F[H+0]<<16,oe=tt[I+0]|Y[X+0]<<16;t(v!=null);var Et=3*Ct+oe+131074>>2;for(s(v[m+0],255&Et,Et>>16,ut,Q),w!=null&&(Et=3*oe+Ct+131074>>2,s(w[A+0],255&Et,Et>>16,ct,gt)),bt=1;bt<=Dt;++bt){var he=N[k+bt]|F[H+bt]<<16,tr=tt[I+bt]|Y[X+bt]<<16,se=Ct+he+oe+tr+524296,Ot=se+2*(he+oe)>>3;Et=Ot+Ct>>1,Ct=(se=se+2*(Ct+tr)>>3)+he>>1,s(v[m+2*bt-1],255&Et,Et>>16,ut,Q+(2*bt-1)*d),s(v[m+2*bt-0],255&Ct,Ct>>16,ut,Q+(2*bt-0)*d),w!=null&&(Et=se+oe>>1,Ct=Ot+tr>>1,s(w[A+2*bt-1],255&Et,Et>>16,ct,gt+(2*bt-1)*d),s(w[A+2*bt+0],255&Ct,Ct>>16,ct,gt+(2*bt+0)*d)),Ct=he,oe=tr}1&xt||(Et=3*Ct+oe+131074>>2,s(v[m+xt-1],255&Et,Et>>16,ut,Q+(xt-1)*d),w!=null&&(Et=3*oe+Ct+131074>>2,s(w[A+xt-1],255&Et,Et>>16,ct,gt+(xt-1)*d)))}}function da(){zr[Ka]=Df,zr[$a]=Fl,zr[Ll]=Rf,zr[Xa]=Il,zr[Za]=El,zr[ts]=Ol,zr[Sl]=Tf,zr[es]=Fl,zr[rs]=Il,zr[Qa]=El,zr[ns]=Ol}function Ei(o){return o&-16384?0>o?0:255:o>>Mf}function qn(o,s){return Ei((19077*o>>8)+(26149*s>>8)-14234)}function ir(o,s,d){return Ei((19077*o>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function Nn(o,s){return Ei((19077*o>>8)+(33050*s>>8)-17685)}function Ln(o,s,d,v,m){v[m+0]=qn(o,d),v[m+1]=ir(o,s,d),v[m+2]=Nn(o,s)}function Oi(o,s,d,v,m){v[m+0]=Nn(o,s),v[m+1]=ir(o,s,d),v[m+2]=qn(o,d)}function pa(o,s,d,v,m){var w=ir(o,s,d);s=w<<3&224|Nn(o,s)>>3,v[m+0]=248&qn(o,d)|w>>5,v[m+1]=s}function mr(o,s,d,v,m){var w=240&Nn(o,s)|15;v[m+0]=240&qn(o,d)|ir(o,s,d)>>4,v[m+1]=w}function Va(o,s,d,v,m){v[m+0]=255,Ln(o,s,d,v,m+1)}function ji(o,s,d,v,m){Oi(o,s,d,v,m),v[m+3]=255}function Ya(o,s,d,v,m){Ln(o,s,d,v,m),v[m+3]=255}function Qe(o,s){return 0>o?0:o>s?s:o}function qr(o,s,d){T[o]=function(v,m,w,A,N,k,F,H,tt){for(var I=H+(-2&tt)*d;H!=I;)s(v[m+0],w[A+0],N[k+0],F,H),s(v[m+1],w[A+0],N[k+0],F,H+d),m+=2,++A,++k,H+=2*d;1&tt&&s(v[m+0],w[A+0],N[k+0],F,H)}}function ga(o,s,d){return d==0?o==0?s==0?6:5:s==0?4:0:d}function va(o,s,d,v,m){switch(o>>>30){case 3:ze(s,d,v,m,0);break;case 2:kn(s,d,v,m);break;case 1:cn(s,d,v,m)}}function Un(o,s){var d,v,m=s.M,w=s.Nb,A=o.oc,N=o.pc+40,k=o.oc,F=o.pc+584,H=o.oc,tt=o.pc+600;for(d=0;16>d;++d)A[N+32*d-1]=129;for(d=0;8>d;++d)k[F+32*d-1]=129,H[tt+32*d-1]=129;for(0<m?A[N-1-32]=k[F-1-32]=H[tt-1-32]=129:(a(A,N-32-1,127,21),a(k,F-32-1,127,9),a(H,tt-32-1,127,9)),v=0;v<o.za;++v){var I=s.ya[s.aa+v];if(0<v){for(d=-1;16>d;++d)n(A,N+32*d-4,A,N+32*d+12,4);for(d=-1;8>d;++d)n(k,F+32*d-4,k,F+32*d+4,4),n(H,tt+32*d-4,H,tt+32*d+4,4)}var Y=o.Gd,X=o.Hd+v,ut=I.ad,Q=I.Hc;if(0<m&&(n(A,N-32,Y[X].y,0,16),n(k,F-32,Y[X].f,0,8),n(H,tt-32,Y[X].ea,0,8)),I.Za){var ct=A,gt=N-32+16;for(0<m&&(v>=o.za-1?a(ct,gt,Y[X].y[15],4):n(ct,gt,Y[X+1].y,0,4)),d=0;4>d;d++)ct[gt+128+d]=ct[gt+256+d]=ct[gt+384+d]=ct[gt+0+d];for(d=0;16>d;++d,Q<<=2)ct=A,gt=N+Bl[d],Kr[I.Ob[d]](ct,gt),va(Q,ut,16*+d,ct,gt)}else if(ct=ga(v,m,I.Ob[0]),Wn[ct](A,N),Q!=0)for(d=0;16>d;++d,Q<<=2)va(Q,ut,16*+d,A,N+Bl[d]);for(d=I.Gc,ct=ga(v,m,I.Dd),Pn[ct](k,F),Pn[ct](H,tt),Q=ut,ct=k,gt=F,255&(I=0|d)&&(170&I?Mi(Q,256,ct,gt):wa(Q,256,ct,gt)),I=H,Q=tt,255&(d>>=8)&&(170&d?Mi(ut,320,I,Q):wa(ut,320,I,Q)),m<o.Ub-1&&(n(Y[X].y,0,A,N+480,16),n(Y[X].f,0,k,F+224,8),n(Y[X].ea,0,H,tt+224,8)),d=8*w*o.B,Y=o.sa,X=o.ta+16*v+16*w*o.R,ut=o.qa,I=o.ra+8*v+d,Q=o.Ha,ct=o.Ia+8*v+d,d=0;16>d;++d)n(Y,X+d*o.R,A,N+32*d,16);for(d=0;8>d;++d)n(ut,I+d*o.B,k,F+32*d,8),n(Q,ct+d*o.B,H,tt+32*d,8)}}function Bi(o,s,d,v,m,w,A,N,k){var F=[0],H=[0],tt=0,I=k!=null?k.kd:0,Y=k??new Vt;if(o==null||12>d)return 7;Y.data=o,Y.w=s,Y.ha=d,s=[s],d=[d],Y.gb=[Y.gb];t:{var X=s,ut=d,Q=Y.gb;if(t(o!=null),t(ut!=null),t(Q!=null),Q[0]=0,12<=ut[0]&&!e(o,X[0],"RIFF")){if(e(o,X[0]+8,"WEBP")){Q=3;break t}var ct=st(o,X[0]+4);if(12>ct||4294967286<ct){Q=3;break t}if(I&&ct>ut[0]-8){Q=7;break t}Q[0]=ct,X[0]+=12,ut[0]-=12}Q=0}if(Q!=0)return Q;for(ct=0<Y.gb[0],d=d[0];;){t:{var gt=o;ut=s,Q=d;var xt=F,bt=H,Dt=X=[0];if((Et=tt=[tt])[0]=0,8>Q[0])Q=7;else{if(!e(gt,ut[0],"VP8X")){if(st(gt,ut[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Ct=st(gt,ut[0]+8),oe=1+Pt(gt,ut[0]+12);if(2147483648<=oe*(gt=1+Pt(gt,ut[0]+15))){Q=3;break t}Dt!=null&&(Dt[0]=Ct),xt!=null&&(xt[0]=oe),bt!=null&&(bt[0]=gt),ut[0]+=18,Q[0]-=18,Et[0]=1}Q=0}}if(tt=tt[0],X=X[0],Q!=0)return Q;if(ut=!!(2&X),!ct&&tt)return 3;if(w!=null&&(w[0]=!!(16&X)),A!=null&&(A[0]=ut),N!=null&&(N[0]=0),A=F[0],X=H[0],tt&&ut&&k==null){Q=0;break}if(4>d){Q=7;break}if(ct&&tt||!ct&&!tt&&!e(o,s[0],"ALPH")){d=[d],Y.na=[Y.na],Y.P=[Y.P],Y.Sa=[Y.Sa];t:{Ct=o,Q=s,ct=d;var Et=Y.gb;xt=Y.na,bt=Y.P,Dt=Y.Sa,oe=22,t(Ct!=null),t(ct!=null),gt=Q[0];var he=ct[0];for(t(xt!=null),t(Dt!=null),xt[0]=null,bt[0]=null,Dt[0]=0;;){if(Q[0]=gt,ct[0]=he,8>he){Q=7;break t}var tr=st(Ct,gt+4);if(4294967286<tr){Q=3;break t}var se=8+tr+1&-2;if(oe+=se,0<Et&&oe>Et){Q=3;break t}if(!e(Ct,gt,"VP8 ")||!e(Ct,gt,"VP8L")){Q=0;break t}if(he[0]<se){Q=7;break t}e(Ct,gt,"ALPH")||(xt[0]=Ct,bt[0]=gt+8,Dt[0]=tr),gt+=se,he-=se}}if(d=d[0],Y.na=Y.na[0],Y.P=Y.P[0],Y.Sa=Y.Sa[0],Q!=0)break}d=[d],Y.Ja=[Y.Ja],Y.xa=[Y.xa];t:if(Et=o,Q=s,ct=d,xt=Y.gb[0],bt=Y.Ja,Dt=Y.xa,Ct=Q[0],gt=!e(Et,Ct,"VP8 "),oe=!e(Et,Ct,"VP8L"),t(Et!=null),t(ct!=null),t(bt!=null),t(Dt!=null),8>ct[0])Q=7;else{if(gt||oe){if(Et=st(Et,Ct+4),12<=xt&&Et>xt-12){Q=3;break t}if(I&&Et>ct[0]-8){Q=7;break t}bt[0]=Et,Q[0]+=8,ct[0]-=8,Dt[0]=oe}else Dt[0]=5<=ct[0]&&Et[Ct+0]==47&&!(Et[Ct+4]>>5),bt[0]=ct[0];Q=0}if(d=d[0],Y.Ja=Y.Ja[0],Y.xa=Y.xa[0],s=s[0],Q!=0)break;if(4294967286<Y.Ja)return 3;if(N==null||ut||(N[0]=Y.xa?2:1),A=[A],X=[X],Y.xa){if(5>d){Q=7;break}N=A,I=X,ut=w,o==null||5>d?o=0:5<=d&&o[s+0]==47&&!(o[s+4]>>5)?(ct=[0],Et=[0],xt=[0],ft(bt=new B,o,s,d),yn(bt,ct,Et,xt)?(N!=null&&(N[0]=ct[0]),I!=null&&(I[0]=Et[0]),ut!=null&&(ut[0]=xt[0]),o=1):o=0):o=0}else{if(10>d){Q=7;break}N=X,o==null||10>d||!Ua(o,s+3,d-3)?o=0:(I=o[s+0]|o[s+1]<<8|o[s+2]<<16,ut=16383&(o[s+7]<<8|o[s+6]),o=16383&(o[s+9]<<8|o[s+8]),1&I||3<(I>>1&7)||!(I>>4&1)||I>>5>=Y.Ja||!ut||!o?o=0:(A&&(A[0]=ut),N&&(N[0]=o),o=1))}if(!o||(A=A[0],X=X[0],tt&&(F[0]!=A||H[0]!=X)))return 3;k!=null&&(k[0]=Y,k.offset=s-k.w,t(4294967286>s-k.w),t(k.offset==k.ha-d));break}return Q==0||Q==7&&tt&&k==null?(w!=null&&(w[0]|=Y.na!=null&&0<Y.na.length),v!=null&&(v[0]=A),m!=null&&(m[0]=X),0):Q}function xr(o,s,d){var v=s.width,m=s.height,w=0,A=0,N=v,k=m;if(s.Da=o!=null&&0<o.Da,s.Da&&(N=o.cd,k=o.bd,w=o.v,A=o.j,11>d||(w&=-2,A&=-2),0>w||0>A||0>=N||0>=k||w+N>v||A+k>m))return 0;if(s.v=w,s.j=A,s.va=w+N,s.o=A+k,s.U=N,s.T=k,s.da=o!=null&&0<o.da,s.da){if(!zt(N,k,d=[o.ib],w=[o.hb]))return 0;s.ib=d[0],s.hb=w[0]}return s.ob=o!=null&&o.ob,s.Kb=o==null||!o.Sd,s.da&&(s.ob=s.ib<3*v/4&&s.hb<3*m/4,s.Kb=0),1}function Ar(o){if(o==null)return 2;if(11>o.S){var s=o.f.RGBA;s.fb+=(o.height-1)*s.A,s.A=-s.A}else s=o.f.kb,o=o.height,s.O+=(o-1)*s.fa,s.fa=-s.fa,s.N+=(o-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(o-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(o-1)*s.lb,s.lb=-s.lb);return 0}function di(o,s,d,v){if(v==null||0>=o||0>=s)return 2;if(d!=null){if(d.Da){var m=d.cd,w=d.bd,A=-2&d.v,N=-2&d.j;if(0>A||0>N||0>=m||0>=w||A+m>o||N+w>s)return 2;o=m,s=w}if(d.da){if(!zt(o,s,m=[d.ib],w=[d.hb]))return 2;o=m[0],s=w[0]}}v.width=o,v.height=s;t:{var k=v.width,F=v.height;if(o=v.S,0>=k||0>=F||!(o>=Ka&&13>o))o=2;else{if(0>=v.Rd&&v.sd==null){A=w=m=s=0;var H=(N=k*Dl[o])*F;if(11>o||(w=(F+1)/2*(s=(k+1)/2),o==12&&(A=(m=k)*F)),(F=i(H+2*w+A))==null){o=1;break t}v.sd=F,11>o?((k=v.f.RGBA).eb=F,k.fb=0,k.A=N,k.size=H):((k=v.f.kb).y=F,k.O=0,k.fa=N,k.Fd=H,k.f=F,k.N=0+H,k.Ab=s,k.Cd=w,k.ea=F,k.W=0+H+w,k.Db=s,k.Ed=w,o==12&&(k.F=F,k.J=0+H+2*w),k.Tc=A,k.lb=m)}if(s=1,m=v.S,w=v.width,A=v.height,m>=Ka&&13>m)if(11>m)o=v.f.RGBA,s&=(N=Math.abs(o.A))*(A-1)+w<=o.size,s&=N>=w*Dl[m],s&=o.eb!=null;else{o=v.f.kb,N=(w+1)/2,H=(A+1)/2,k=Math.abs(o.fa),F=Math.abs(o.Ab);var tt=Math.abs(o.Db),I=Math.abs(o.lb),Y=I*(A-1)+w;s&=k*(A-1)+w<=o.Fd,s&=F*(H-1)+N<=o.Cd,s=(s&=tt*(H-1)+N<=o.Ed)&k>=w&F>=N&tt>=N,s&=o.y!=null,s&=o.f!=null,s&=o.ea!=null,m==12&&(s&=I>=w,s&=Y<=o.Tc,s&=o.F!=null)}else s=0;o=s?0:2}}return o!=0||d!=null&&d.fd&&(o=Ar(v)),o}var ln=64,zn=[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],ma=24,Hn=32,qe=8,Zo=[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"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(o){return o},T.Predictor2=function(o,s,d){return s[d+0]},T.Predictor3=function(o,s,d){return s[d+1]},T.Predictor4=function(o,s,d){return s[d-1]},T.Predictor5=function(o,s,d){return Ut(Ut(o,s[d+1]),s[d+0])},T.Predictor6=function(o,s,d){return Ut(o,s[d-1])},T.Predictor7=function(o,s,d){return Ut(o,s[d+0])},T.Predictor8=function(o,s,d){return Ut(s[d-1],s[d+0])},T.Predictor9=function(o,s,d){return Ut(s[d+0],s[d+1])},T.Predictor10=function(o,s,d){return Ut(Ut(o,s[d-1]),Ut(s[d+0],s[d+1]))},T.Predictor11=function(o,s,d){var v=s[d+0];return 0>=Zt(v>>24&255,o>>24&255,(s=s[d-1])>>24&255)+Zt(v>>16&255,o>>16&255,s>>16&255)+Zt(v>>8&255,o>>8&255,s>>8&255)+Zt(255&v,255&o,255&s)?v:o},T.Predictor12=function(o,s,d){var v=s[d+0];return(de((o>>24&255)+(v>>24&255)-((s=s[d-1])>>24&255))<<24|de((o>>16&255)+(v>>16&255)-(s>>16&255))<<16|de((o>>8&255)+(v>>8&255)-(s>>8&255))<<8|de((255&o)+(255&v)-(255&s)))>>>0},T.Predictor13=function(o,s,d){var v=s[d-1];return(Xt((o=Ut(o,s[d+0]))>>24&255,v>>24&255)<<24|Xt(o>>16&255,v>>16&255)<<16|Xt(o>>8&255,v>>8&255)<<8|Xt(255&o,255&v))>>>0};var un=T.PredictorAdd0;T.PredictorAdd1=we,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 hn=T.PredictorAdd2;qt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),qt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var Di,ba=T.ColorIndexInverseTransform,Ri=T.MapARGB,Ti=T.VP8LColorIndexInverseTransformAlpha,pi=T.MapAlpha,gi=T.VP8LPredictorsAdd=[];gi.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var Sn,ya,kr,fn,ke,Pe,Ue,ze,kn,Mi,cn,wa,al,ol,sl,ll,ul,hl,fl,cl,dl,pl,gl,vl,xa,ml,bl,yl,wl=i(511),xl=i(2041),Al=i(225),_l=i(767),Nl=0,Qo=xl,Ja=Al,Pr=_l,Ur=wl,Ka=0,$a=1,Ll=2,Xa=3,Za=4,ts=5,Sl=6,es=7,rs=8,Qa=9,ns=10,Af=[2,3,7],_f=[3,3,11],kl=[280,256,256,256,40],Nf=[0,1,1,1,0],Lf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Sf=[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],kf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Pf=8,is=[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],as=[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],Aa=null,Cf=[[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]],Ff=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Pl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],If=[[[[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]]]],Ef=[[[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]]],Of=[[[[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]]]],jf=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Wn=[],Kr=[],Pn=[],Bf=1,Cl=2,Gn=[],zr=[];Jr("UpsampleRgbLinePair",Ln,3),Jr("UpsampleBgrLinePair",Oi,3),Jr("UpsampleRgbaLinePair",Ya,4),Jr("UpsampleBgraLinePair",ji,4),Jr("UpsampleArgbLinePair",Va,4),Jr("UpsampleRgba4444LinePair",mr,2),Jr("UpsampleRgb565LinePair",pa,2);var Df=T.UpsampleRgbLinePair,Rf=T.UpsampleBgrLinePair,Fl=T.UpsampleRgbaLinePair,Il=T.UpsampleBgraLinePair,El=T.UpsampleArgbLinePair,Ol=T.UpsampleRgba4444LinePair,Tf=T.UpsampleRgb565LinePair,to=16,eo=1<<to-1,_a=-227,os=482,Mf=6,jl=0,qf=i(256),Uf=i(256),zf=i(256),Hf=i(256),Wf=i(os-_a),Gf=i(os-_a);qr("YuvToRgbRow",Ln,3),qr("YuvToBgrRow",Oi,3),qr("YuvToRgbaRow",Ya,4),qr("YuvToBgraRow",ji,4),qr("YuvToArgbRow",Va,4),qr("YuvToRgba4444Row",mr,2),qr("YuvToRgb565Row",pa,2);var Bl=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ro=[0,2,8],Vf=[8,7,6,4,4,2,2,2,1,1,1,1],Yf=1;this.WebPDecodeRGBA=function(o,s,d,v,m){var w=$a,A=new jt,N=new _e;A.ba=N,N.S=w,N.width=[N.width],N.height=[N.height];var k=N.width,F=N.height,H=new Jt;if(H==null||o==null)var tt=2;else t(H!=null),tt=Bi(o,s,d,H.width,H.height,H.Pd,H.Qd,H.format,null);if(tt!=0?k=0:(k!=null&&(k[0]=H.width[0]),F!=null&&(F[0]=H.height[0]),k=1),k){N.width=N.width[0],N.height=N.height[0],v!=null&&(v[0]=N.width),m!=null&&(m[0]=N.height);t:{if(v=new ki,(m=new Vt).data=o,m.w=s,m.ha=d,m.kd=1,s=[0],t(m!=null),((o=Bi(m.data,m.w,m.ha,null,null,null,s,null,m))==0||o==7)&&s[0]&&(o=4),(s=o)==0){if(t(A!=null),v.data=m.data,v.w=m.w+m.offset,v.ha=m.ha-m.offset,v.put=Wt,v.ac=rn,v.bc=bn,v.ma=A,m.xa){if((o=ri())==null){A=1;break t}if((function(I,Y){var X=[0],ut=[0],Q=[0];e:for(;;){if(I==null)return 0;if(Y==null)return I.a=2,0;if(I.l=Y,I.a=0,ft(I.m,Y.data,Y.w,Y.ha),!yn(I.m,X,ut,Q)){I.a=3;break e}if(I.xb=Cl,Y.width=X[0],Y.height=ut[0],!an(X[0],ut[0],1,I,null))break e;return 1}return t(I.a!=0),0})(o,v)){if(v=(s=di(v.width,v.height,A.Oa,A.ba))==0){e:{v=o;r:for(;;){if(v==null){v=0;break e}if(t(v.s.yc!=null),t(v.s.Ya!=null),t(0<v.s.Wb),t((d=v.l)!=null),t((m=d.ma)!=null),v.xb!=0){if(v.ca=m.ba,v.tb=m.tb,t(v.ca!=null),!xr(m.Oa,d,Xa)){v.a=2;break r}if(!ni(v,d.width)||d.da)break r;if((d.da||te(v.ca.S))&&ci(),11>v.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),v.ca.f.kb.F!=null&&ci()),v.Pb&&0<v.s.ua&&v.s.vb.X==null&&!D(v.s.vb,v.s.Wa.Xa)){v.a=1;break r}v.xb=0}if(!Vr(v,v.V,v.Ba,v.c,v.i,d.o,Dn))break r;m.Dc=v.Ma,v=1;break e}t(v.a!=0),v=0}v=!v}v&&(s=o.a)}else s=o.a}else{if((o=new Do)==null){A=1;break t}if(o.Fa=m.na,o.P=m.P,o.qc=m.Sa,za(o,v)){if((s=di(v.width,v.height,A.Oa,A.ba))==0){if(o.Aa=0,d=A.Oa,t((m=o)!=null),d!=null){if(0<(k=0>(k=d.Md)?0:100<k?255:255*k/100)){for(F=H=0;4>F;++F)12>(tt=m.pb[F]).lc&&(tt.ia=k*Vf[0>tt.lc?0:tt.lc]>>3),H|=tt.ia;H&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=d.Id,100<m.Ga?m.Ga=100:0>m.Ga&&(m.Ga=0)}(function(I,Y){if(I==null)return 0;if(Y==null)return Je(I,2,"NULL VP8Io parameter in VP8Decode().");if(!I.cb&&!za(I,Y))return 0;if(t(I.cb),Y.ac==null||Y.ac(Y)){Y.ob&&(I.L=0);var X=ro[I.L];if(I.L==2?(I.yb=0,I.zb=0):(I.yb=Y.v-X>>4,I.zb=Y.j-X>>4,0>I.yb&&(I.yb=0),0>I.zb&&(I.zb=0)),I.Va=Y.o+15+X>>4,I.Hb=Y.va+15+X>>4,I.Hb>I.za&&(I.Hb=I.za),I.Va>I.Ub&&(I.Va=I.Ub),0<I.L){var ut=I.ed;for(X=0;4>X;++X){var Q;if(I.Qa.Cb){var ct=I.Qa.Lb[X];I.Qa.Fb||(ct+=ut.Tb)}else ct=ut.Tb;for(Q=0;1>=Q;++Q){var gt=I.gd[X][Q],xt=ct;if(ut.Pc&&(xt+=ut.vd[0],Q&&(xt+=ut.od[0])),0<(xt=0>xt?0:63<xt?63:xt)){var bt=xt;0<ut.wb&&(bt=4<ut.wb?bt>>2:bt>>1)>9-ut.wb&&(bt=9-ut.wb),1>bt&&(bt=1),gt.dd=bt,gt.tc=2*xt+bt,gt.ld=40<=xt?2:15<=xt?1:0}else gt.tc=0;gt.La=Q}}}X=0}else Je(I,6,"Frame setup failed"),X=I.a;if(X=X==0){if(X){I.$c=0,0<I.Aa||(I.Ic=Yf);e:{X=I.Ic,ut=4*(bt=I.za);var Dt=32*bt,Ct=bt+1,oe=0<I.L?bt*(0<I.Aa?2:1):0,Et=(I.Aa==2?2:1)*bt;if((gt=ut+832+(Q=3*(16*X+ro[I.L])/2*Dt)+(ct=I.Fa!=null&&0<I.Fa.length?I.Kc.c*I.Kc.i:0))!=gt)X=0;else{if(gt>I.Vb){if(I.Vb=0,I.Ec=i(gt),I.Fc=0,I.Ec==null){X=Je(I,1,"no memory during frame initialization.");break e}I.Vb=gt}gt=I.Ec,xt=I.Fc,I.Ac=gt,I.Bc=xt,xt+=ut,I.Gd=h(Dt,Ma),I.Hd=0,I.rb=h(Ct+1,ta),I.sb=1,I.wa=oe?h(oe,Mr):null,I.Y=0,I.D.Nb=0,I.D.wa=I.wa,I.D.Y=I.Y,0<I.Aa&&(I.D.Y+=bt),t(!0),I.oc=gt,I.pc=xt,xt+=832,I.ya=h(Et,ea),I.aa=0,I.D.ya=I.ya,I.D.aa=I.aa,I.Aa==2&&(I.D.aa+=bt),I.R=16*bt,I.B=8*bt,bt=(Dt=ro[I.L])*I.R,Dt=Dt/2*I.B,I.sa=gt,I.ta=xt+bt,I.qa=I.sa,I.ra=I.ta+16*X*I.R+Dt,I.Ha=I.qa,I.Ia=I.ra+8*X*I.B+Dt,I.$c=0,xt+=Q,I.mb=ct?gt:null,I.nb=ct?xt:null,t(xt+ct<=I.Fc+I.Vb),ii(I),a(I.Ac,I.Bc,0,ut),X=1}}if(X){if(Y.ka=0,Y.y=I.sa,Y.O=I.ta,Y.f=I.qa,Y.N=I.ra,Y.ea=I.Ha,Y.Vd=I.Ia,Y.fa=I.R,Y.Rc=I.B,Y.F=null,Y.J=0,!Nl){for(X=-255;255>=X;++X)wl[255+X]=0>X?-X:X;for(X=-1020;1020>=X;++X)xl[1020+X]=-128>X?-128:127<X?127:X;for(X=-112;112>=X;++X)Al[112+X]=-16>X?-16:15<X?15:X;for(X=-255;510>=X;++X)_l[255+X]=0>X?0:255<X?255:X;Nl=1}Ue=Wa,ze=To,Mi=Mo,cn=on,wa=Ha,kn=Ro,al=c,ol=b,sl=K,ll=pt,ul=E,hl=q,fl=yt,cl=It,dl=ha,pl=fi,gl=fa,vl=ca,Kr[0]=Vo,Kr[1]=na,Kr[2]=Wo,Kr[3]=Go,Kr[4]=Yo,Kr[5]=An,Kr[6]=xn,Kr[7]=Jo,Kr[8]=Pi,Kr[9]=Ko,Wn[0]=Tn,Wn[1]=Uo,Wn[2]=zo,Wn[3]=ia,Wn[4]=Ho,Wn[5]=si,Wn[6]=aa,Pn[0]=Fi,Pn[1]=qo,Pn[2]=oa,Pn[3]=li,Pn[4]=sa,Pn[5]=$o,Pn[6]=la,X=1}else X=0}X&&(X=(function(he,tr){for(he.M=0;he.M<he.Va;++he.M){var se,Ot=he.Jc[he.M&he.Xb],Lt=he.m,He=he;for(se=0;se<He.za;++se){var ee=Lt,fe=He,Fe=fe.Ac,lr=fe.Bc+4*se,br=fe.zc,Be=fe.ya[fe.aa+se];if(fe.Qa.Bb?Be.$b=vt(ee,fe.Pa.jb[0])?2+vt(ee,fe.Pa.jb[2]):vt(ee,fe.Pa.jb[1]):Be.$b=0,fe.kc&&(Be.Ad=vt(ee,fe.Bd)),Be.Za=!vt(ee,145)+0,Be.Za){var cr=Be.Ob,yr=0;for(fe=0;4>fe;++fe){var er,ce=br[0+fe];for(er=0;4>er;++er){ce=Ef[Fe[lr+er]][ce];for(var be=Pl[vt(ee,ce[0])];0<be;)be=Pl[2*be+vt(ee,ce[be])];ce=-be,Fe[lr+er]=ce}n(cr,yr,Fe,lr,4),yr+=4,br[0+fe]=ce}}else ce=vt(ee,156)?vt(ee,128)?1:3:vt(ee,163)?2:0,Be.Ob[0]=ce,a(Fe,lr,ce,4),a(br,0,ce,4);Be.Dd=vt(ee,142)?vt(ee,114)?vt(ee,183)?1:3:2:0}if(He.m.Ka)return Je(he,7,"Premature end-of-partition0 encountered.");for(;he.ja<he.za;++he.ja){if(He=Ot,ee=(Lt=he).rb[Lt.sb-1],Fe=Lt.rb[Lt.sb+Lt.ja],se=Lt.ya[Lt.aa+Lt.ja],lr=Lt.kc?se.Ad:0)ee.la=Fe.la=0,se.Za||(ee.Na=Fe.Na=0),se.Hc=0,se.Gc=0,se.ia=0;else{var De,ye;if(ee=Fe,Fe=He,lr=Lt.Pa.Xc,br=Lt.ya[Lt.aa+Lt.ja],Be=Lt.pb[br.$b],fe=br.ad,cr=0,yr=Lt.rb[Lt.sb-1],ce=er=0,a(fe,cr,0,384),br.Za)var ur=0,$r=lr[3];else{be=i(16);var We=ee.Na+yr.Na;if(We=Aa(Fe,lr[1],We,Be.Eb,0,be,0),ee.Na=yr.Na=(0<We)+0,1<We)Ue(be,0,fe,cr);else{var _r=be[0]+3>>3;for(be=0;256>be;be+=16)fe[cr+be]=_r}ur=1,$r=lr[0]}var Ne=15&ee.la,rr=15&yr.la;for(be=0;4>be;++be){var Cr=1&rr;for(_r=ye=0;4>_r;++_r)Ne=Ne>>1|(Cr=(We=Aa(Fe,$r,We=Cr+(1&Ne),Be.Sc,ur,fe,cr))>ur)<<7,ye=ye<<2|(3<We?3:1<We?2:fe[cr+0]!=0),cr+=16;Ne>>=4,rr=rr>>1|Cr<<7,er=(er<<8|ye)>>>0}for($r=Ne,ur=rr>>4,De=0;4>De;De+=2){for(ye=0,Ne=ee.la>>4+De,rr=yr.la>>4+De,be=0;2>be;++be){for(Cr=1&rr,_r=0;2>_r;++_r)We=Cr+(1&Ne),Ne=Ne>>1|(Cr=0<(We=Aa(Fe,lr[2],We,Be.Qc,0,fe,cr)))<<3,ye=ye<<2|(3<We?3:1<We?2:fe[cr+0]!=0),cr+=16;Ne>>=2,rr=rr>>1|Cr<<5}ce|=ye<<4*De,$r|=Ne<<4<<De,ur|=(240&rr)<<De}ee.la=$r,yr.la=ur,br.Hc=er,br.Gc=ce,br.ia=43690&ce?0:Be.ia,lr=!(er|ce)}if(0<Lt.L&&(Lt.wa[Lt.Y+Lt.ja]=Lt.gd[se.$b][se.Za],Lt.wa[Lt.Y+Lt.ja].La|=!lr),He.Ka)return Je(he,7,"Premature end-of-file encountered.")}if(ii(he),Lt=tr,He=1,se=(Ot=he).D,ee=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(se.M=Ot.M,se.uc=ee,Un(Ot,se),He=1,se=(ye=Ot.D).Nb,ee=(ce=ro[Ot.L])*Ot.R,Fe=ce/2*Ot.B,be=16*se*Ot.R,_r=8*se*Ot.B,lr=Ot.sa,br=Ot.ta-ee+be,Be=Ot.qa,fe=Ot.ra-Fe+_r,cr=Ot.Ha,yr=Ot.Ia-Fe+_r,rr=(Ne=ye.M)==0,er=Ne>=Ot.Va-1,Ot.Aa==2&&Un(Ot,ye),ye.uc)for(Cr=(We=Ot).D.M,t(We.D.uc),ye=We.yb;ye<We.Hb;++ye){ur=ye,$r=Cr;var wr=(Fr=(hr=We).D).Nb;De=hr.R;var Fr=Fr.wa[Fr.Y+ur],Ir=hr.sa,Nr=hr.ta+16*wr*De+16*ur,Er=Fr.dd,Ce=Fr.tc;if(Ce!=0)if(t(3<=Ce),hr.L==1)0<ur&&pl(Ir,Nr,De,Ce+4),Fr.La&&vl(Ir,Nr,De,Ce),0<$r&&dl(Ir,Nr,De,Ce+4),Fr.La&&gl(Ir,Nr,De,Ce);else{var Or=hr.B,Xr=hr.qa,vi=hr.ra+8*wr*Or+8*ur,Cn=hr.Ha,hr=hr.Ia+8*wr*Or+8*ur;wr=Fr.ld,0<ur&&(ol(Ir,Nr,De,Ce+4,Er,wr),ll(Xr,vi,Cn,hr,Or,Ce+4,Er,wr)),Fr.La&&(hl(Ir,Nr,De,Ce,Er,wr),cl(Xr,vi,Cn,hr,Or,Ce,Er,wr)),0<$r&&(al(Ir,Nr,De,Ce+4,Er,wr),sl(Xr,vi,Cn,hr,Or,Ce+4,Er,wr)),Fr.La&&(ul(Ir,Nr,De,Ce,Er,wr),fl(Xr,vi,Cn,hr,Or,Ce,Er,wr))}}if(Ot.ia&&alert("todo:DitherRow"),Lt.put!=null){if(ye=16*Ne,Ne=16*(Ne+1),rr?(Lt.y=Ot.sa,Lt.O=Ot.ta+be,Lt.f=Ot.qa,Lt.N=Ot.ra+_r,Lt.ea=Ot.Ha,Lt.W=Ot.Ia+_r):(ye-=ce,Lt.y=lr,Lt.O=br,Lt.f=Be,Lt.N=fe,Lt.ea=cr,Lt.W=yr),er||(Ne-=ce),Ne>Lt.o&&(Ne=Lt.o),Lt.F=null,Lt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&ye<Ne&&(Lt.J=sr(Ot,Lt,ye,Ne-ye),Lt.F=Ot.mb,Lt.F==null&&Lt.F.length==0)){He=Je(Ot,3,"Could not decode alpha data.");break e}ye<Lt.j&&(ce=Lt.j-ye,ye=Lt.j,t(!(1&ce)),Lt.O+=Ot.R*ce,Lt.N+=Ot.B*(ce>>1),Lt.W+=Ot.B*(ce>>1),Lt.F!=null&&(Lt.J+=Lt.width*ce)),ye<Ne&&(Lt.O+=Lt.v,Lt.N+=Lt.v>>1,Lt.W+=Lt.v>>1,Lt.F!=null&&(Lt.J+=Lt.v),Lt.ka=ye-Lt.j,Lt.U=Lt.va-Lt.v,Lt.T=Ne-ye,He=Lt.put(Lt))}se+1!=Ot.Ic||er||(n(Ot.sa,Ot.ta-ee,lr,br+16*Ot.R,ee),n(Ot.qa,Ot.ra-Fe,Be,fe+8*Ot.B,Fe),n(Ot.Ha,Ot.Ia-Fe,cr,yr+8*Ot.B,Fe))}if(!He)return Je(he,6,"Output aborted.")}return 1})(I,Y)),Y.bc!=null&&Y.bc(Y),X&=1}return X?(I.cb=0,X):0})(o,v)||(s=o.a)}}else s=o.a}s==0&&A.Oa!=null&&A.Oa.fd&&(s=Ar(A.ba))}A=s}w=A!=0?null:11>w?N.f.RGBA.eb:N.f.kb.y}else w=null;return w};var Dl=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function f(T,et){for(var L="",O=0;O<4;O++)L+=String.fromCharCode(T[et++]);return L}function p(T,et){return T[et+0]|T[et+1]<<8}function y(T,et){return(T[et+0]|T[et+1]<<8|T[et+2]<<16)>>>0}function x(T,et){return(T[et+0]|T[et+1]<<8|T[et+2]<<16|T[et+3]<<24)>>>0}new u;var g=[0],P=[0],C=[],j=new u,S=r,W=(function(T,et){var L={},O=0,G=!1,U=0,nt=0;if(L.frames=[],!(function(_,B){for(var R=0;R<4;R++)if(_[B+R]!="RIFF".charCodeAt(R))return!0;return!1})(T,et)){for(x(T,et+=4),et+=8;et<T.length;){var ht=f(T,et),dt=x(T,et+=4);et+=4;var rt=dt+(1&dt);switch(ht){case"VP8 ":case"VP8L":L.frames[O]===void 0&&(L.frames[O]={}),(wt=L.frames[O]).src_off=G?nt:et-8,wt.src_size=U+dt+8,O++,G&&(G=!1,U=0,nt=0);break;case"VP8X":(wt=L.header={}).feature_flags=T[et];var ft=et+4;wt.canvas_width=1+y(T,ft),ft+=3,wt.canvas_height=1+y(T,ft),ft+=3;break;case"ALPH":G=!0,U=rt+8,nt=et-8;break;case"ANIM":(wt=L.header).bgcolor=x(T,et),ft=et+4,wt.loop_count=p(T,ft),ft+=2;break;case"ANMF":var Nt,wt;(wt=L.frames[O]={}).offset_x=2*y(T,et),et+=3,wt.offset_y=2*y(T,et),et+=3,wt.width=1+y(T,et),et+=3,wt.height=1+y(T,et),et+=3,wt.duration=y(T,et),et+=3,Nt=T[et++],wt.dispose=1&Nt,wt.blend=Nt>>1&1}ht!="ANMF"&&(et+=rt)}return L}})(S,0);W.response=S,W.rgbaoutput=!0,W.dataurl=!1;var z=W.header?W.header:null,M=W.frames?W.frames:null;if(z){z.loop_counter=z.loop_count,g=[z.canvas_height],P=[z.canvas_width];for(var at=0;at<M.length&&M[at].blend!=0;at++);}var mt=M[0],ot=j.WebPDecodeRGBA(S,mt.src_off,mt.src_size,P,g);mt.rgba=ot,mt.imgwidth=P[0],mt.imgheight=g[0];for(var $=0;$<P[0]*g[0]*4;$++)C[$]=ot[$];return this.width=P,this.height=g,this.data=C,this}(function(r){var t,e,n,a,i,h,l,u,f,p=function(_){return _=_||{},this.isStrokeTransparent=_.isStrokeTransparent||!1,this.strokeOpacity=_.strokeOpacity||1,this.strokeStyle=_.strokeStyle||"#000000",this.fillStyle=_.fillStyle||"#000000",this.isFillTransparent=_.isFillTransparent||!1,this.fillOpacity=_.fillOpacity||1,this.font=_.font||"10px sans-serif",this.textBaseline=_.textBaseline||"alphabetic",this.textAlign=_.textAlign||"left",this.lineWidth=_.lineWidth||1,this.lineJoin=_.lineJoin||"miter",this.lineCap=_.lineCap||"butt",this.path=_.path||[],this.transform=_.transform!==void 0?_.transform.clone():new u,this.globalCompositeOperation=_.globalCompositeOperation||"normal",this.globalAlpha=_.globalAlpha||1,this.clip_path=_.clip_path||[],this.currentPoint=_.currentPoint||new h,this.miterLimit=_.miterLimit||10,this.lastPoint=_.lastPoint||new h,this.lineDashOffset=_.lineDashOffset||0,this.lineDash=_.lineDash||[],this.margin=_.margin||[0,0,0,0],this.prevPageLastElemOffset=_.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _.ignoreClearRect!="boolean"||_.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new y(this),t=this.internal.f2,e=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,h=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,f=new p}]);var y=function(_){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var B=_;Object.defineProperty(this,"pdf",{get:function(){return B}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(st){R=!!st}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(st){V=!!st}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(st){isNaN(st)||(J=st)}});var Z=0;Object.defineProperty(this,"posY",{get:function(){return Z},set:function(st){isNaN(st)||(Z=st)}}),Object.defineProperty(this,"margin",{get:function(){return f.margin},set:function(st){var D;typeof st=="number"?D=[st,st,st,st]:((D=new Array(4))[0]=st[0],D[1]=st.length>=2?st[1]:D[0],D[2]=st.length>=3?st[2]:D[0],D[3]=st.length>=4?st[3]:D[1]),f.margin=D}});var lt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return lt},set:function(st){lt=st}});var it=0;Object.defineProperty(this,"lastBreak",{get:function(){return it},set:function(st){it=st}});var vt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return vt},set:function(st){vt=st}}),Object.defineProperty(this,"ctx",{get:function(){return f},set:function(st){st instanceof p&&(f=st)}}),Object.defineProperty(this,"path",{get:function(){return f.path},set:function(st){f.path=st}});var _t=[];Object.defineProperty(this,"ctxStack",{get:function(){return _t},set:function(st){_t=st}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(st){var D;D=x(st),this.ctx.fillStyle=D.style,this.ctx.isFillTransparent=D.a===0,this.ctx.fillOpacity=D.a,this.pdf.setFillColor(D.r,D.g,D.b,{a:D.a}),this.pdf.setTextColor(D.r,D.g,D.b,{a:D.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(st){var D=x(st);this.ctx.strokeStyle=D.style,this.ctx.isStrokeTransparent=D.a===0,this.ctx.strokeOpacity=D.a,D.a===0?this.pdf.setDrawColor(255,255,255):(D.a,this.pdf.setDrawColor(D.r,D.g,D.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(st){["butt","round","square"].indexOf(st)!==-1&&(this.ctx.lineCap=st,this.pdf.setLineCap(st))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(st){isNaN(st)||(this.ctx.lineWidth=st,this.pdf.setLineWidth(st))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(st){["bevel","round","miter"].indexOf(st)!==-1&&(this.ctx.lineJoin=st,this.pdf.setLineJoin(st))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(st){isNaN(st)||(this.ctx.miterLimit=st,this.pdf.setMiterLimit(st))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(st){this.ctx.textBaseline=st}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(st){["right","end","center","left","start"].indexOf(st)!==-1&&(this.ctx.textAlign=st)}});var kt=null,Pt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Pt},set:function(st){kt=null,Pt=st}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(st){var D;if(this.ctx.font=st,(D=/^\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(st))!==null){var le=D[1];D[2];var re=D[3],zt=D[4];D[5];var At=D[6],Tt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(zt)[2];zt=Math.floor(Tt==="px"?parseFloat(zt)*this.pdf.internal.scaleFactor:Tt==="em"?parseFloat(zt)*this.pdf.getFontSize():parseFloat(zt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(zt);var St=(function(Gt){var qt,Se,pe=[],Bt=Gt.trim();if(Bt==="")return Os;if(Bt in Gu)return[Gu[Bt]];for(;Bt!=="";){switch(Se=null,qt=(Bt=Yu(Bt)).charAt(0)){case'"':case"'":Se=S2(Bt.substring(1),qt);break;default:Se=k2(Bt)}if(Se===null||(pe.push(Se[0]),(Bt=Yu(Se[1]))!==""&&Bt.charAt(0)!==","))return Os;Bt=Bt.replace(/^,/,"")}return pe})(At);if(this.fontFaces){var ne=(function(Gt,qt){if(kt===null){var Se=(function(pe){var Bt=[];return Object.keys(pe).forEach(function(Qt){pe[Qt].forEach(function(Ae){var Ht=null;switch(Ae){case"bold":Ht={family:Qt,weight:"bold"};break;case"italic":Ht={family:Qt,style:"italic"};break;case"bolditalic":Ht={family:Qt,weight:"bold",style:"italic"};break;case"":case"normal":Ht={family:Qt}}Ht!==null&&(Ht.ref={name:Qt,style:Ae},Bt.push(Ht))})}),Bt})(Gt.getFontList());kt=(function(pe){for(var Bt={},Qt=0;Qt<pe.length;++Qt){var Ae=Es(pe[Qt]),Ht=Ae.family,ue=Ae.stretch,te=Ae.style,Te=Ae.weight;Bt[Ht]=Bt[Ht]||{},Bt[Ht][ue]=Bt[Ht][ue]||{},Bt[Ht][ue][te]=Bt[Ht][ue][te]||{},Bt[Ht][ue][te][Te]=Ae}return Bt})(Se.concat(qt))}return kt})(this.pdf,this.fontFaces),Ut=St.map(function(Gt){return{family:Gt,stretch:"normal",weight:re,style:le}}),de=(function(Gt,qt,Se){for(var pe=(Se=Se||{}).defaultFontFamily||"times",Bt=Object.assign({},L2,Se.genericFontFamilies||{}),Qt=null,Ae=null,Ht=0;Ht<qt.length;++Ht)if(Bt[(Qt=Es(qt[Ht])).family]&&(Qt.family=Bt[Qt.family]),Gt.hasOwnProperty(Qt.family)){Ae=Gt[Qt.family];break}if(!(Ae=Ae||Gt[pe]))throw new Error("Could not find a font-family for the rule '"+Vu(Qt)+"' and default family '"+pe+"'.");if(Ae=(function(ue,te){if(te[ue])return te[ue];var Te=$s[ue],Xe=Te<=$s.normal?-1:1,_e=Wu(te,ef,Te,Xe);if(!_e)throw new Error("Could not find a matching font-stretch value for "+ue);return _e})(Qt.stretch,Ae),Ae=(function(ue,te){if(te[ue])return te[ue];for(var Te=tf[ue],Xe=0;Xe<Te.length;++Xe)if(te[Te[Xe]])return te[Te[Xe]];throw new Error("Could not find a matching font-style for "+ue)})(Qt.style,Ae),!(Ae=(function(ue,te){if(te[ue])return te[ue];if(ue===400&&te[500])return te[500];if(ue===500&&te[400])return te[400];var Te=N2[ue],Xe=Wu(te,rf,Te,ue<400?-1:1);if(!Xe)throw new Error("Could not find a matching font-weight for value "+ue);return Xe})(Qt.weight,Ae)))throw new Error("Failed to resolve a font for the rule '"+Vu(Qt)+"'.");return Ae})(ne,Ut);this.pdf.setFont(de.ref.name,de.ref.style)}else{var Xt="";(re==="bold"||parseInt(re,10)>=700||le==="bold")&&(Xt="bold"),le==="italic"&&(Xt+="italic"),Xt.length===0&&(Xt="normal");for(var Zt="",we={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<St.length;ie++){if(this.pdf.internal.getFont(St[ie],Xt,{noFallback:!0,disableWarning:!0})!==void 0){Zt=St[ie];break}if(Xt==="bolditalic"&&this.pdf.internal.getFont(St[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Zt=St[ie],Xt="bold";else if(this.pdf.internal.getFont(St[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Zt=St[ie],Xt="normal";break}}if(Zt===""){for(var Mt=0;Mt<St.length;Mt++)if(we[St[Mt]]){Zt=we[St[Mt]];break}}Zt=Zt===""?"Times":Zt,this.pdf.setFont(Zt,Xt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(st){this.ctx.globalCompositeOperation=st}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(st){this.ctx.globalAlpha=st}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(st){this.ctx.lineDashOffset=st,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(st){this.ctx.lineDash=st,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(st){this.ctx.ignoreClearRect=!!st}})};y.prototype.setLineDash=function(_){this.lineDash=_},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){M.call(this,"fill",!1)},y.prototype.stroke=function(){M.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(_,B){if(isNaN(_)||isNaN(B))throw Le.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var R=this.ctx.transform.applyToPoint(new h(_,B));this.path.push({type:"mt",x:R.x,y:R.y}),this.ctx.lastPoint=new h(_,B)},y.prototype.closePath=function(){var _=new h(0,0),B=0;for(B=this.path.length-1;B!==-1;B--)if(this.path[B].type==="begin"&&me(this.path[B+1])==="object"&&typeof this.path[B+1].x=="number"){_=new h(this.path[B+1].x,this.path[B+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(_.x,_.y)},y.prototype.lineTo=function(_,B){if(isNaN(_)||isNaN(B))throw Le.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var R=this.ctx.transform.applyToPoint(new h(_,B));this.path.push({type:"lt",x:R.x,y:R.y}),this.ctx.lastPoint=new h(R.x,R.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),M.call(this,null,!0)},y.prototype.quadraticCurveTo=function(_,B,R,V){if(isNaN(R)||isNaN(V)||isNaN(_)||isNaN(B))throw Le.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new h(R,V)),Z=this.ctx.transform.applyToPoint(new h(_,B));this.path.push({type:"qct",x1:Z.x,y1:Z.y,x:J.x,y:J.y}),this.ctx.lastPoint=new h(J.x,J.y)},y.prototype.bezierCurveTo=function(_,B,R,V,J,Z){if(isNaN(J)||isNaN(Z)||isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var lt=this.ctx.transform.applyToPoint(new h(J,Z)),it=this.ctx.transform.applyToPoint(new h(_,B)),vt=this.ctx.transform.applyToPoint(new h(R,V));this.path.push({type:"bct",x1:it.x,y1:it.y,x2:vt.x,y2:vt.y,x:lt.x,y:lt.y}),this.ctx.lastPoint=new h(lt.x,lt.y)},y.prototype.arc=function(_,B,R,V,J,Z){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V)||isNaN(J))throw Le.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Z=!!Z,!this.ctx.transform.isIdentity){var lt=this.ctx.transform.applyToPoint(new h(_,B));_=lt.x,B=lt.y;var it=this.ctx.transform.applyToPoint(new h(0,R)),vt=this.ctx.transform.applyToPoint(new h(0,0));R=Math.sqrt(Math.pow(it.x-vt.x,2)+Math.pow(it.y-vt.y,2))}Math.abs(J-V)>=2*Math.PI&&(V=0,J=2*Math.PI),this.path.push({type:"arc",x:_,y:B,radius:R,startAngle:V,endAngle:J,counterclockwise:Z})},y.prototype.arcTo=function(_,B,R,V,J){throw new Error("arcTo not implemented.")},y.prototype.rect=function(_,B,R,V){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(_,B),this.lineTo(_+R,B),this.lineTo(_+R,B+V),this.lineTo(_,B+V),this.lineTo(_,B),this.lineTo(_+R,B),this.lineTo(_,B)},y.prototype.fillRect=function(_,B,R,V){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(_,B,R,V),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},y.prototype.strokeRect=function(_,B,R,V){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");P.call(this)||(this.beginPath(),this.rect(_,B,R,V),this.stroke())},y.prototype.clearRect=function(_,B,R,V){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(_,B,R,V))},y.prototype.save=function(_){_=typeof _!="boolean"||_;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("q");if(this.pdf.setPage(B),_){this.ctx.fontSize=this.pdf.internal.getFontSize();var V=new p(this.ctx);this.ctxStack.push(this.ctx),this.ctx=V}},y.prototype.restore=function(_){_=typeof _!="boolean"||_;for(var B=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("Q");this.pdf.setPage(B),_&&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)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var x=function(_){var B,R,V,J;if(_.isCanvasGradient===!0&&(_=_.getColor()),!_)return{r:0,g:0,b:0,a:0,style:_};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_))B=0,R=0,V=0,J=0;else{var Z=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(Z!==null)B=parseInt(Z[1]),R=parseInt(Z[2]),V=parseInt(Z[3]),J=1;else if((Z=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)B=parseInt(Z[1]),R=parseInt(Z[2]),V=parseInt(Z[3]),J=parseFloat(Z[4]);else{if(J=1,typeof _=="string"&&_.charAt(0)!=="#"){var lt=new Yh(_);_=lt.ok?lt.toHex():"#000000"}_.length===4?(B=_.substring(1,2),B+=B,R=_.substring(2,3),R+=R,V=_.substring(3,4),V+=V):(B=_.substring(1,3),R=_.substring(3,5),V=_.substring(5,7)),B=parseInt(B,16),R=parseInt(R,16),V=parseInt(V,16)}}return{r:B,g:R,b:V,a:J,style:_}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},P=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(_,B,R,V){if(isNaN(B)||isNaN(R)||typeof _!="string")throw Le.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(V=isNaN(V)?void 0:V,!g.call(this)){var J=rt(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;O.call(this,{text:_,x:B,y:R,scale:Z,angle:J,align:this.textAlign,maxWidth:V})}},y.prototype.strokeText=function(_,B,R,V){if(isNaN(B)||isNaN(R)||typeof _!="string")throw Le.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!P.call(this)){V=isNaN(V)?void 0:V;var J=rt(this.ctx.transform.rotation),Z=this.ctx.transform.scaleX;O.call(this,{text:_,x:B,y:R,scale:Z,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:V})}},y.prototype.measureText=function(_){if(typeof _!="string")throw Le.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var B=this.pdf,R=this.pdf.internal.scaleFactor,V=B.internal.getFontSize(),J=B.getStringUnitWidth(_)*V/B.internal.scaleFactor;return new function(Z){var lt=(Z=Z||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return lt}}),this}({width:J*=Math.round(96*R/72*1e4)/1e4})},y.prototype.scale=function(_,B){if(isNaN(_)||isNaN(B))throw Le.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var R=new u(_,0,0,B,0,0);this.ctx.transform=this.ctx.transform.multiply(R)},y.prototype.rotate=function(_){if(isNaN(_))throw Le.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var B=new u(Math.cos(_),Math.sin(_),-Math.sin(_),Math.cos(_),0,0);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.translate=function(_,B){if(isNaN(_)||isNaN(B))throw Le.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var R=new u(1,0,0,1,_,B);this.ctx.transform=this.ctx.transform.multiply(R)},y.prototype.transform=function(_,B,R,V,J,Z){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V)||isNaN(J)||isNaN(Z))throw Le.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var lt=new u(_,B,R,V,J,Z);this.ctx.transform=this.ctx.transform.multiply(lt)},y.prototype.setTransform=function(_,B,R,V,J,Z){_=isNaN(_)?1:_,B=isNaN(B)?0:B,R=isNaN(R)?0:R,V=isNaN(V)?1:V,J=isNaN(J)?0:J,Z=isNaN(Z)?0:Z,this.ctx.transform=new u(_,B,R,V,J,Z)};var C=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(_,B,R,V,J,Z,lt,it,vt){var _t=this.pdf.getImageProperties(_),kt=1,Pt=1,st=1,D=1;V!==void 0&&it!==void 0&&(st=it/V,D=vt/J,kt=_t.width/V*it/V,Pt=_t.height/J*vt/J),Z===void 0&&(Z=B,lt=R,B=0,R=0),V!==void 0&&it===void 0&&(it=V,vt=J),V===void 0&&it===void 0&&(it=_t.width,vt=_t.height);for(var le,re=this.ctx.transform.decompose(),zt=rt(re.rotate.shx),At=new u,Tt=(At=(At=(At=At.multiply(re.translate)).multiply(re.skew)).multiply(re.scale)).applyToRectangle(new l(Z-B*st,lt-R*D,V*kt,J*Pt)),St=j.call(this,Tt),ne=[],Ut=0;Ut<St.length;Ut+=1)ne.indexOf(St[Ut])===-1&&ne.push(St[Ut]);if(z(ne),this.autoPaging)for(var de=ne[0],Xt=ne[ne.length-1],Zt=de;Zt<Xt+1;Zt++){this.pdf.setPage(Zt);var we=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ie=Zt===1?this.posY+this.margin[0]:this.margin[0],Mt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],qt=Zt===1?0:Mt+(Zt-2)*Gt;if(this.ctx.clip_path.length!==0){var Se=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(le,this.posX+this.margin[3],-qt+ie+this.ctx.prevPageLastElemOffset),at.call(this,"fill",!0),this.path=Se}var pe=JSON.parse(JSON.stringify(Tt));pe=W([pe],this.posX+this.margin[3],-qt+ie+this.ctx.prevPageLastElemOffset)[0];var Bt=(Zt>de||Zt<Xt)&&C.call(this);Bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],we,Gt,null).clip().discardPath()),this.pdf.addImage(_,"JPEG",pe.x,pe.y,pe.w,pe.h,null,null,zt),Bt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(_,"JPEG",Tt.x,Tt.y,Tt.w,Tt.h,null,null,zt)};var j=function(_,B,R){var V=[];B=B||this.pdf.internal.pageSize.width,R=R||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(_.type){default:case"mt":case"lt":V.push(Math.floor((_.y+J)/R)+1);break;case"arc":V.push(Math.floor((_.y+J-_.radius)/R)+1),V.push(Math.floor((_.y+J+_.radius)/R)+1);break;case"qct":var Z=ft(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);V.push(Math.floor((Z.y+J)/R)+1),V.push(Math.floor((Z.y+Z.h+J)/R)+1);break;case"bct":var lt=Nt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);V.push(Math.floor((lt.y+J)/R)+1),V.push(Math.floor((lt.y+lt.h+J)/R)+1);break;case"rect":V.push(Math.floor((_.y+J)/R)+1),V.push(Math.floor((_.y+_.h+J)/R)+1)}for(var it=0;it<V.length;it+=1)for(;this.pdf.internal.getNumberOfPages()<V[it];)S.call(this);return V},S=function(){var _=this.fillStyle,B=this.strokeStyle,R=this.font,V=this.lineCap,J=this.lineWidth,Z=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=B,this.font=R,this.lineCap=V,this.lineWidth=J,this.lineJoin=Z},W=function(_,B,R){for(var V=0;V<_.length;V++)switch(_[V].type){case"bct":_[V].x2+=B,_[V].y2+=R;case"qct":_[V].x1+=B,_[V].y1+=R;default:_[V].x+=B,_[V].y+=R}return _},z=function(_){return _.sort(function(B,R){return B-R})},M=function(_,B){for(var R,V,J=this.fillStyle,Z=this.strokeStyle,lt=this.lineCap,it=this.lineWidth,vt=Math.abs(it*this.ctx.transform.scaleX),_t=this.lineJoin,kt=JSON.parse(JSON.stringify(this.path)),Pt=JSON.parse(JSON.stringify(this.path)),st=[],D=0;D<Pt.length;D++)if(Pt[D].x!==void 0)for(var le=j.call(this,Pt[D]),re=0;re<le.length;re+=1)st.indexOf(le[re])===-1&&st.push(le[re]);for(var zt=0;zt<st.length;zt++)for(;this.pdf.internal.getNumberOfPages()<st[zt];)S.call(this);if(z(st),this.autoPaging)for(var At=st[0],Tt=st[st.length-1],St=At;St<Tt+1;St++){this.pdf.setPage(St),this.fillStyle=J,this.strokeStyle=Z,this.lineCap=lt,this.lineWidth=vt,this.lineJoin=_t;var ne=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=St===1?this.posY+this.margin[0]:this.margin[0],de=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Xt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Zt=St===1?0:de+(St-2)*Xt;if(this.ctx.clip_path.length!==0){var we=this.path;R=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(R,this.posX+this.margin[3],-Zt+Ut+this.ctx.prevPageLastElemOffset),at.call(this,_,!0),this.path=we}if(V=JSON.parse(JSON.stringify(kt)),this.path=W(V,this.posX+this.margin[3],-Zt+Ut+this.ctx.prevPageLastElemOffset),B===!1||St===0){var ie=(St>At||St<Tt)&&C.call(this);ie&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ne,Xt,null).clip().discardPath()),at.call(this,_,B),ie&&this.pdf.restoreGraphicsState()}this.lineWidth=it}else this.lineWidth=vt,at.call(this,_,B),this.lineWidth=it;this.path=kt},at=function(_,B){if((_!=="stroke"||B||!P.call(this))&&(_==="stroke"||B||!g.call(this))){for(var R,V,J=[],Z=this.path,lt=0;lt<Z.length;lt++){var it=Z[lt];switch(it.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:it,deltas:[],abs:[]});break;case"lt":var vt=J.length;if(Z[lt-1]&&!isNaN(Z[lt-1].x)&&(R=[it.x-Z[lt-1].x,it.y-Z[lt-1].y],vt>0)){for(;vt>=0;vt--)if(J[vt-1].close!==!0&&J[vt-1].begin!==!0){J[vt-1].deltas.push(R),J[vt-1].abs.push(it);break}}break;case"bct":R=[it.x1-Z[lt-1].x,it.y1-Z[lt-1].y,it.x2-Z[lt-1].x,it.y2-Z[lt-1].y,it.x-Z[lt-1].x,it.y-Z[lt-1].y],J[J.length-1].deltas.push(R);break;case"qct":var _t=Z[lt-1].x+2/3*(it.x1-Z[lt-1].x),kt=Z[lt-1].y+2/3*(it.y1-Z[lt-1].y),Pt=it.x+2/3*(it.x1-it.x),st=it.y+2/3*(it.y1-it.y),D=it.x,le=it.y;R=[_t-Z[lt-1].x,kt-Z[lt-1].y,Pt-Z[lt-1].x,st-Z[lt-1].y,D-Z[lt-1].x,le-Z[lt-1].y],J[J.length-1].deltas.push(R);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(it)}}V=B?null:_==="stroke"?"stroke":"fill";for(var re=!1,zt=0;zt<J.length;zt++)if(J[zt].arc)for(var At=J[zt].abs,Tt=0;Tt<At.length;Tt++){var St=At[Tt];St.type==="arc"?$.call(this,St.x,St.y,St.radius,St.startAngle,St.endAngle,St.counterclockwise,void 0,B,!re):G.call(this,St.x,St.y),re=!0}else if(J[zt].close===!0)this.pdf.internal.out("h"),re=!1;else if(J[zt].begin!==!0){var ne=J[zt].start.x,Ut=J[zt].start.y;U.call(this,J[zt].deltas,ne,Ut),re=!0}V&&T.call(this,V),B&&et.call(this)}},mt=function(_){var B=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,R=B*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _-R;case"top":return _+B-R;case"hanging":return _+B-2*R;case"middle":return _+B/2-R;default:return _}},ot=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var _=function(){};return _.colorStops=[],_.addColorStop=function(B,R){this.colorStops.push([B,R])},_.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},_.isCanvasGradient=!0,_},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var $=function(_,B,R,V,J,Z,lt,it,vt){for(var _t=ht.call(this,R,V,J,Z),kt=0;kt<_t.length;kt++){var Pt=_t[kt];kt===0&&(vt?L.call(this,Pt.x1+_,Pt.y1+B):G.call(this,Pt.x1+_,Pt.y1+B)),nt.call(this,_,B,Pt.x2,Pt.y2,Pt.x3,Pt.y3,Pt.x4,Pt.y4)}it?et.call(this):T.call(this,lt)},T=function(_){switch(_){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},et=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(_,B){this.pdf.internal.out(e(_)+" "+n(B)+" m")},O=function(_){var B;switch(_.align){case"right":case"end":B="right";break;case"center":B="center";break;default:B="left"}var R=this.pdf.getTextDimensions(_.text),V=mt.call(this,_.y),J=ot.call(this,V)-R.h,Z=this.ctx.transform.applyToPoint(new h(_.x,V)),lt=this.ctx.transform.decompose(),it=new u;it=(it=(it=it.multiply(lt.translate)).multiply(lt.skew)).multiply(lt.scale);for(var vt,_t,kt,Pt=this.ctx.transform.applyToRectangle(new l(_.x,V,R.w,R.h)),st=it.applyToRectangle(new l(_.x,J,R.w,R.h)),D=j.call(this,st),le=[],re=0;re<D.length;re+=1)le.indexOf(D[re])===-1&&le.push(D[re]);if(z(le),this.autoPaging)for(var zt=le[0],At=le[le.length-1],Tt=zt;Tt<At+1;Tt++){this.pdf.setPage(Tt);var St=Tt===1?this.posY+this.margin[0]:this.margin[0],ne=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ut=this.pdf.internal.pageSize.height-this.margin[2],de=Ut-this.margin[0],Xt=this.pdf.internal.pageSize.width-this.margin[1],Zt=Xt-this.margin[3],we=Tt===1?0:ne+(Tt-2)*de;if(this.ctx.clip_path.length!==0){var ie=this.path;vt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(vt,this.posX+this.margin[3],-1*we+St),at.call(this,"fill",!0),this.path=ie}var Mt=W([JSON.parse(JSON.stringify(st))],this.posX+this.margin[3],-we+St+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(_t=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_t*_.scale),kt=this.lineWidth,this.lineWidth=kt*_.scale);var Gt=this.autoPaging!=="text";if(Gt||Mt.y+Mt.h<=Ut){if(Gt||Mt.y>=St&&Mt.x<=Xt){var qt=Gt?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||Xt-Mt.x)[0],Se=W([JSON.parse(JSON.stringify(Pt))],this.posX+this.margin[3],-we+St+this.ctx.prevPageLastElemOffset)[0],pe=Gt&&(Tt>zt||Tt<At)&&C.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zt,de,null).clip().discardPath()),this.pdf.text(qt,Se.x,Se.y,{angle:_.angle,align:B,renderingMode:_.renderingMode}),pe&&this.pdf.restoreGraphicsState()}}else Mt.y<Ut&&(this.ctx.prevPageLastElemOffset+=Ut-Mt.y);_.scale>=.01&&(this.pdf.setFontSize(_t),this.lineWidth=kt)}else _.scale>=.01&&(_t=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_t*_.scale),kt=this.lineWidth,this.lineWidth=kt*_.scale),this.pdf.text(_.text,Z.x+this.posX,Z.y+this.posY,{angle:_.angle,align:B,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(_t),this.lineWidth=kt)},G=function(_,B,R,V){R=R||0,V=V||0,this.pdf.internal.out(e(_+R)+" "+n(B+V)+" l")},U=function(_,B,R){return this.pdf.lines(_,B,R,null,null)},nt=function(_,B,R,V,J,Z,lt,it){this.pdf.internal.out([t(a(R+_)),t(i(V+B)),t(a(J+_)),t(i(Z+B)),t(a(lt+_)),t(i(it+B)),"c"].join(" "))},ht=function(_,B,R,V){for(var J=2*Math.PI,Z=Math.PI/2;B>R;)B-=J;var lt=Math.abs(R-B);lt<J&&V&&(lt=J-lt);for(var it=[],vt=V?-1:1,_t=B;lt>1e-5;){var kt=_t+vt*Math.min(lt,Z);it.push(dt.call(this,_,_t,kt)),lt-=Math.abs(kt-_t),_t=kt}return it},dt=function(_,B,R){var V=(R-B)/2,J=_*Math.cos(V),Z=_*Math.sin(V),lt=J,it=-Z,vt=lt*lt+it*it,_t=vt+lt*J+it*Z,kt=4/3*(Math.sqrt(2*vt*_t)-_t)/(lt*Z-it*J),Pt=lt-kt*it,st=it+kt*lt,D=Pt,le=-st,re=V+B,zt=Math.cos(re),At=Math.sin(re);return{x1:_*Math.cos(B),y1:_*Math.sin(B),x2:Pt*zt-st*At,y2:Pt*At+st*zt,x3:D*zt-le*At,y3:D*At+le*zt,x4:_*Math.cos(R),y4:_*Math.sin(R)}},rt=function(_){return 180*_/Math.PI},ft=function(_,B,R,V,J,Z){var lt=_+.5*(R-_),it=B+.5*(V-B),vt=J+.5*(R-J),_t=Z+.5*(V-Z),kt=Math.min(_,J,lt,vt),Pt=Math.max(_,J,lt,vt),st=Math.min(B,Z,it,_t),D=Math.max(B,Z,it,_t);return new l(kt,st,Pt-kt,D-st)},Nt=function(_,B,R,V,J,Z,lt,it){var vt,_t,kt,Pt,st,D,le,re,zt,At,Tt,St,ne,Ut,de=R-_,Xt=V-B,Zt=J-R,we=Z-V,ie=lt-J,Mt=it-Z;for(_t=0;_t<41;_t++)zt=(le=(kt=_+(vt=_t/40)*de)+vt*((st=R+vt*Zt)-kt))+vt*(st+vt*(J+vt*ie-st)-le),At=(re=(Pt=B+vt*Xt)+vt*((D=V+vt*we)-Pt))+vt*(D+vt*(Z+vt*Mt-D)-re),_t==0?(Tt=zt,St=At,ne=zt,Ut=At):(Tt=Math.min(Tt,zt),St=Math.min(St,At),ne=Math.max(ne,zt),Ut=Math.max(Ut,At));return new l(Math.round(Tt),Math.round(St),Math.round(ne-Tt),Math.round(Ut-St))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _,B,R=(_=this.ctx.lineDash,B=this.ctx.lineDashOffset,JSON.stringify({lineDash:_,lineDashOffset:B}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(Rt.API),(function(r){var t=function(h){var l,u,f,p,y,x,g,P,C,j;for(u=[],f=0,p=(h+=l="\0\0\0\0".slice(h.length%4||4)).length;p>f;f+=4)(y=(h.charCodeAt(f)<<24)+(h.charCodeAt(f+1)<<16)+(h.charCodeAt(f+2)<<8)+h.charCodeAt(f+3))!==0?(x=(y=((y=((y=((y=(y-(j=y%85))/85)-(C=y%85))/85)-(P=y%85))/85)-(g=y%85))/85)%85,u.push(x+33,g+33,P+33,C+33,j+33)):u.push(122);return(function(S,W){for(var z=W;z>0;z--)S.pop()})(u,l.length),String.fromCharCode.apply(String,u)+"~>"},e=function(h){var l,u,f,p,y,x=String,g="length",P=255,C="charCodeAt",j="slice",S="replace";for(h[j](-2),h=h[j](0,-2)[S](/\s/g,"")[S]("z","!!!!!"),f=[],p=0,y=(h+=l="uuuuu"[j](h[g]%5||5))[g];y>p;p+=5)u=52200625*(h[C](p)-33)+614125*(h[C](p+1)-33)+7225*(h[C](p+2)-33)+85*(h[C](p+3)-33)+(h[C](p+4)-33),f.push(P&u>>24,P&u>>16,P&u>>8,P&u);return(function(W,z){for(var M=z;M>0;M--)W.pop()})(f,l[g]),x.fromCharCode.apply(x,f)},n=function(h){return h.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(h){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((h=h.replace(/\s/g,"")).indexOf(">")!==-1&&(h=h.substr(0,h.indexOf(">"))),h.length%2&&(h+="0"),l.test(h)===!1)return"";for(var u="",f=0;f<h.length;f+=2)u+=String.fromCharCode("0x"+(h[f]+h[f+1]));return u},i=function(h){for(var l=new Uint8Array(h.length),u=h.length;u--;)l[u]=h.charCodeAt(u);return(l=Hs(l)).reduce(function(f,p){return f+String.fromCharCode(p)},"")};r.processDataByFilters=function(h,l){var u=0,f=h||"",p=[];for(typeof(l=l||[])=="string"&&(l=[l]),u=0;u<l.length;u+=1)switch(l[u]){case"ASCII85Decode":case"/ASCII85Decode":f=e(f),p.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=t(f),p.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=a(f),p.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=n(f),p.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=i(f),p.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[u]+'" is not implemented')}return{data:f,reverseChain:p.reverse().join(" ")}}})(Rt.API),(function(r){r.loadFile=function(t,e,n){return(function(a,i,h){i=i!==!1,h=typeof h=="function"?h:function(){};var l=void 0;try{l=(function(u,f,p){var y=new XMLHttpRequest,x=0,g=function(P){var C=P.length,j=[],S=String.fromCharCode;for(x=0;x<C;x+=1)j.push(S(255&P.charCodeAt(x)));return j.join("")};if(y.open("GET",u,!f),y.overrideMimeType("text/plain; charset=x-user-defined"),f===!1&&(y.onload=function(){y.status===200?p(g(this.responseText)):p(void 0)}),y.send(null),f&&y.status===200)return g(y.responseText)})(a,i,h)}catch{}return l})(t,e,n)},r.loadImageFile=r.loadFile})(Rt.API),(function(r){function t(){return(Yt.html2canvas?Promise.resolve(Yt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-CUkZERmf.cjs"))).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return(Yt.DOMPurify?Promise.resolve(Yt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-D1I7B1hP.cjs"))).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var n=function(l){var u=me(l);return u==="undefined"?"undefined":u==="string"||l instanceof String?"string":u==="number"||l instanceof Number?"number":u==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":u==="object"?"object":"unknown"},a=function(l,u){var f=document.createElement(l);for(var p in u.className&&(f.className=u.className),u.innerHTML&&u.dompurify&&(f.innerHTML=u.dompurify.sanitize(u.innerHTML)),u.style)f.style[p]=u.style[p];return f},i=function l(u,f){for(var p=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),y=u.firstChild;y;y=y.nextSibling)f!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||p.appendChild(l(y,f));return u.nodeType===1&&(u.nodeName==="CANVAS"?(p.width=u.width,p.height=u.height,p.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(p.value=u.value),p.addEventListener("load",function(){p.scrollTop=u.scrollTop,p.scrollLeft=u.scrollLeft},!0)),p},h=function l(u){var f=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),p=l.convert(Promise.resolve(),f);return(p=p.setProgress(1,l,1,[l])).set(u)};(h.prototype=Object.create(Promise.prototype)).constructor=h,h.convert=function(l,u){return l.__proto__=u||h.prototype,l},h.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"}},h.prototype.from=function(l,u){return this.then(function(){switch(u=u||(function(f){switch(n(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),u){case"string":return this.then(e).then(function(f){return this.set({src:a("div",{innerHTML:l,dompurify:f})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},h.prototype.to=function(l){switch(l){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.")}},h.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 l={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},u=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);u.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(u),this.prop.container.firstChild.appendChild(a("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"})},h.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(u){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,u(this.prop.container,f)}).then(function(u){(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},h.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(u){var f=this.opt.jsPDF,p=this.opt.fontFaces,y=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,x=Object.assign({async:!0,allowTaint:!0,scale:y,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 x.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=p,p)for(var g=0;g<p.length;++g){var P=p[g],C=P.src.find(function(j){return j.format==="truetype"});C&&f.addFont(C.url,P.ref.name,P.ref.style)}return x.windowHeight=x.windowHeight||0,x.windowHeight=x.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):x.windowHeight,f.context2d.save(!0),u(this.prop.container,x)}).then(function(u){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},h.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},h.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},h.prototype.output=function(l,u,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(l,u):this.outputPdf(l,u)},h.prototype.outputPdf=function(l,u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,u)})},h.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},h.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},h.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},h.prototype.set=function(l){if(n(l)!=="object")return this;var u=Object.keys(l||{}).map(function(f){if(f in h.template.prop)return function(){this.prop[f]=l[f]};switch(f){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[f]=l[f]}}},this);return this.then(function(){return this.thenList(u)})},h.prototype.get=function(l,u){return this.then(function(){var f=l in h.template.prop?this.prop[l]:this.opt[l];return u?u(f):f})},h.prototype.setMargin=function(l){return this.then(function(){switch(n(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},h.prototype.setPageSize=function(l){function u(f,p){return Math.floor(f*p/72*96)}return this.then(function(){(l=l||Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:u(l.inner.width,l.k),height:u(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},h.prototype.setProgress=function(l,u,f,p){return l!=null&&(this.progress.val=l),u!=null&&(this.progress.state=u),f!=null&&(this.progress.n=f),p!=null&&(this.progress.stack=p),this.progress.ratio=this.progress.val/this.progress.state,this},h.prototype.updateProgress=function(l,u,f,p){return this.setProgress(l?this.progress.val+l:null,u||null,f?this.progress.n+f:null,p?this.progress.stack.concat(p):null)},h.prototype.then=function(l,u){var f=this;return this.thenCore(l,u,function(p,y){return f.updateProgress(null,null,1,[p]),Promise.prototype.then.call(this,function(x){return f.updateProgress(null,p),x}).then(p,y).then(function(x){return f.updateProgress(1),x})})},h.prototype.thenCore=function(l,u,f){f=f||Promise.prototype.then;var p=this;l&&(l=l.bind(p)),u&&(u=u.bind(p));var y=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?p:h.convert(Object.assign({},p),Promise.prototype),x=f.call(y,l,u);return h.convert(x,p.__proto__)},h.prototype.thenExternal=function(l,u){return Promise.prototype.then.call(this,l,u)},h.prototype.thenList=function(l){var u=this;return l.forEach(function(f){u=u.thenCore(f)}),u},h.prototype.catch=function(l){l&&(l=l.bind(this));var u=Promise.prototype.catch.call(this,l);return h.convert(u,this)},h.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},h.prototype.error=function(l){return this.then(function(){throw new Error(l)})},h.prototype.using=h.prototype.set,h.prototype.saveAs=h.prototype.save,h.prototype.export=h.prototype.output,h.prototype.run=h.prototype.then,Rt.getPageSize=function(l,u,f){if(me(l)==="object"){var p=l;l=p.orientation,u=p.unit||u,f=p.format||f}u=u||"mm",f=f||"a4",l=(""+(l||"P")).toLowerCase();var y,x=(""+f).toLowerCase(),g={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(u){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+u}var P,C=0,j=0;if(g.hasOwnProperty(x))C=g[x][1]/y,j=g[x][0]/y;else try{C=f[1],j=f[0]}catch{throw new Error("Invalid format: "+f)}if(l==="p"||l==="portrait")l="p",j>C&&(P=j,j=C,C=P);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",C>j&&(P=j,j=C,C=P)}return{width:j,height:C,unit:u,k:y,orientation:l}},r.html=function(l,u){(u=u||{}).callback=u.callback||function(){},u.html2canvas=u.html2canvas||{},u.html2canvas.canvas=u.html2canvas.canvas||this.canvas,u.jsPDF=u.jsPDF||this,u.fontFaces=u.fontFaces?u.fontFaces.map(Es):null;var f=new h(u);return u.worker?f:f.from(l).doCallback()}})(Rt.API),Rt.API.addJS=function(r){return Ku=r,this.internal.events.subscribe("postPutResources",function(){bo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(bo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ju=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ku+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){bo!==void 0&&Ju!==void 0&&this.internal.out("/Names <</JavaScript "+bo+" 0 R>>")}),this},(function(r){var t;r.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),i=0;i<a.length;i++){var h=a[i],l=n.exec(h);if(l!=null){var u=l[1];e.internal.newObjectDeferredBegin(u,!1)}e.internal.write(h)}if(this.outline.createNamedDestinations){var f=this.internal.pages.length,p=[];for(i=0;i<f;i++){var y=e.internal.newObject();p.push(y);var x=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+x.objId+" 0 R /XYZ null null null]>> endobj")}var g=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<p.length;i++)e.internal.write("(page_"+(i+1)+")"+p[i]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+g+" 0 R"),e.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),r.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(n,a,i){var h={title:a,options:i,children:[]};return n==null&&(n=this.root),n.children.push(h),h},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(n){n.id=e.internal.newObjectDeferred();for(var a=0;a<n.children.length;a++)this.genIds_r(n.children[a])},e.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},e.outline.renderItems=function(n){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<n.children.length;i++){var h=n.children[i];this.objStart(h),this.line("/Title "+this.makeString(h.title)),this.line("/Parent "+this.makeRef(n)),i>0&&this.line("/Prev "+this.makeRef(n.children[i-1])),i<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[i+1])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var l=this.count=this.count_r({count:0},h);if(l>0&&this.line("/Count "+l),h.options&&h.options.pageNumber){var u=e.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var f=0;f<n.children.length;f++)this.renderItems(n.children[f])},e.outline.line=function(n){this.ctx.val+=n+`\r
|
|
157
|
-
`},e.outline.makeRef=function(n){return n.id+" 0 R"},e.outline.makeString=function(n){return"("+e.internal.pdfEscape(n)+")"},e.outline.objStart=function(n){this.ctx.val+=`\r
|
|
158
|
-
`+n.id+` 0 obj\r
|
|
159
|
-
<<\r
|
|
160
|
-
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
161
|
-
endobj\r
|
|
162
|
-
`},e.outline.count_r=function(n,a){for(var i=0;i<a.children.length;i++)n.count++,this.count_r(n,a.children[i]);return n.count}}])})(Rt.API),(function(r){var t=[192,193,194,195,196,197,198,199];r.processJPEG=function(e,n,a,i,h,l){var u,f=this.decode.DCT_DECODE,p=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=h||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,u=(function(y){for(var x,g=256*y.charCodeAt(4)+y.charCodeAt(5),P=y.length,C={width:0,height:0,numcomponents:1},j=4;j<P;j+=2){if(j+=g,t.indexOf(y.charCodeAt(j+1))!==-1){x=256*y.charCodeAt(j+5)+y.charCodeAt(j+6),C={width:256*y.charCodeAt(j+7)+y.charCodeAt(j+8),height:x,numcomponents:y.charCodeAt(j+9)};break}g=256*y.charCodeAt(j+2)+y.charCodeAt(j+3)}return C})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),u.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}p={data:e,width:u.width,height:u.height,colorSpace:l,bitsPerComponent:8,filter:f,index:n,alias:a}}return p}})(Rt.API),Rt.API.processPNG=function(r,t,e,n){if(this.__addimage__.isArrayBuffer(r)&&(r=new Uint8Array(r)),this.__addimage__.isArrayBufferView(r)){var a,i=h2(r,{checkCrc:!0}),h=i.width,l=i.height,u=i.channels,f=i.palette,p=i.depth;a=f&&u===1?(function(ot){for(var $=ot.width,T=ot.height,et=ot.data,L=ot.palette,O=ot.depth,G=!1,U=[],nt=[],ht=void 0,dt=!1,rt=0,ft=0;ft<L.length;ft++){var Nt=Ql(L[ft],4),wt=Nt[0],_=Nt[1],B=Nt[2],R=Nt[3];U.push(wt,_,B),R!=null&&(R===0?(rt++,nt.length<1&&nt.push(ft)):R<255&&(dt=!0))}if(dt||rt>1){G=!0,nt=void 0;var V=$*T;ht=new Uint8Array(V);for(var J=new DataView(et.buffer),Z=0;Z<V;Z++){var lt=js(J,Z,O),it=Ql(L[lt],4)[3];ht[Z]=it}}return{colorSpace:"Indexed",colorsPerPixel:1,colorBytes:et,alphaBytes:ht,needSMask:G,palette:U,mask:nt}})(i):u===2||u===4?(function(ot){for(var $=ot.data,T=ot.width,et=ot.height,L=ot.channels,O=ot.depth,G=L===2?"DeviceGray":"DeviceRGB",U=L-1,nt=T*et,ht=U,dt=nt*ht,rt=1*nt,ft=Math.ceil(dt*O/8),Nt=Math.ceil(rt*O/8),wt=new Uint8Array(ft),_=new Uint8Array(Nt),B=new DataView($.buffer),R=new DataView(wt.buffer),V=new DataView(_.buffer),J=!1,Z=0;Z<nt;Z++){for(var lt=Z*L,it=0;it<ht;it++)ih(R,js(B,lt+it,O),Z*ht+it,O);var vt=js(B,lt+ht,O);vt<(1<<O)-1&&(J=!0),ih(V,vt,1*Z,O)}return{colorSpace:G,colorsPerPixel:U,colorBytes:wt,alphaBytes:_,needSMask:J}})(i):(function(ot){var $=ot.data,T=ot.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:T,colorsPerPixel:T==="DeviceGray"?1:3,colorBytes:$ instanceof Uint8Array?$:new Uint8Array($.buffer),needSMask:!1}})(i);var y,x,g,P=a,C=P.colorSpace,j=P.colorsPerPixel,S=P.colorBytes,W=P.alphaBytes,z=P.needSMask,M=P.palette,at=P.mask,mt=null;return n!==Rt.API.image_compression.NONE&&typeof Hs=="function"?(mt=(function(ot){var $;switch(ot){case Rt.API.image_compression.FAST:$=11;break;case Rt.API.image_compression.MEDIUM:$=13;break;case Rt.API.image_compression.SLOW:$=14;break;default:$=12}return $})(n),y=this.decode.FLATE_DECODE,x="/Predictor ".concat(mt," "),r=Qu(S,h*j,j,n),z&&(g=Qu(W,h,1,n))):(y=void 0,x="",r=S,z&&(g=W)),x+="/Colors ".concat(j," /BitsPerComponent ").concat(p," /Columns ").concat(h),(this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r))&&(r=this.__addimage__.arrayBufferToBinaryString(r)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:e,data:r,index:t,filter:y,decodeParameters:x,transparency:at,palette:M,sMask:g,predictor:mt,width:h,height:l,bitsPerComponent:p,colorSpace:C}}},(function(r){r.processGIF89A=function(t,e,n,a){var i=new I2(t),h=i.width,l=i.height,u=[];i.decodeAndBlitFrameRGBA(0,u);var f={data:u,width:h,height:l},p=new Bs(100).encode(f,100);return r.processJPEG.call(this,p,e,n,a)},r.processGIF87A=r.processGIF89A})(Rt.API),Zr.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 r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var t=0;t<r;t++){var e=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:n,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Zr.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[r]()}catch(e){Le.log("bit decode error:"+e)}},Zr.prototype.bit1=function(){var r,t=Math.ceil(this.width/8),e=t%4;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<t;a++)for(var i=this.datav.getUint8(this.pos++,!0),h=n*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var u=this.palette[i>>7-l&1];this.data[h+4*l]=u.blue,this.data[h+4*l+1]=u.green,this.data[h+4*l+2]=u.red,this.data[h+4*l+3]=255}e!==0&&(this.pos+=4-e)}},Zr.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),t=r%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<r;a++){var i=this.datav.getUint8(this.pos++,!0),h=n*this.width*4+2*a*4,l=i>>4,u=15&i,f=this.palette[l];if(this.data[h]=f.blue,this.data[h+1]=f.green,this.data[h+2]=f.red,this.data[h+3]=255,2*a+1>=this.width)break;f=this.palette[u],this.data[h+4]=f.blue,this.data[h+4+1]=f.green,this.data[h+4+2]=f.red,this.data[h+4+3]=255}t!==0&&(this.pos+=4-t)}},Zr.prototype.bit8=function(){for(var r=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*n;if(a<this.palette.length){var h=this.palette[a];this.data[i]=h.red,this.data[i+1]=h.green,this.data[i+2]=h.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}r!==0&&(this.pos+=4-r)}},Zr.prototype.bit15=function(){for(var r=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(i&t)/t*255|0,l=(i>>5&t)/t*255|0,u=(i>>10&t)/t*255|0,f=i>>15?255:0,p=n*this.width*4+4*a;this.data[p]=u,this.data[p+1]=l,this.data[p+2]=h,this.data[p+3]=f}this.pos+=r}},Zr.prototype.bit16=function(){for(var r=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var h=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(h&t)/t*255|0,u=(h>>5&e)/e*255|0,f=(h>>11)/t*255|0,p=a*this.width*4+4*i;this.data[p]=f,this.data[p+1]=u,this.data[p+2]=l,this.data[p+3]=255}this.pos+=r}},Zr.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var t=this.bottom_up?r:this.height-1-r,e=0;e<this.width;e++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),h=t*this.width*4+4*e;this.data[h]=i,this.data[h+1]=a,this.data[h+2]=n,this.data[h+3]=255}this.pos+=this.width%4}},Zr.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var t=this.bottom_up?r:this.height-1-r,e=0;e<this.width;e++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*e;this.data[l]=i,this.data[l+1]=a,this.data[l+2]=n,this.data[l+3]=h}},Zr.prototype.getData=function(){return this.data},(function(r){r.processBMP=function(t,e,n,a){var i=new Zr(t,!1),h=i.width,l=i.height,u={data:i.getData(),width:h,height:l},f=new Bs(100).encode(u,100);return r.processJPEG.call(this,f,e,n,a)}})(Rt.API),oh.prototype.getData=function(){return this.data},(function(r){r.processWEBP=function(t,e,n,a){var i=new oh(t),h=i.width,l=i.height,u={data:i.getData(),width:h,height:l},f=new Bs(100).encode(u,100);return r.processJPEG.call(this,f,e,n,a)}})(Rt.API),Rt.API.processRGBA=function(r,t,e){for(var n=r.data,a=n.length,i=new Uint8Array(a/4*3),h=new Uint8Array(a/4),l=0,u=0,f=0;f<a;f+=4){var p=n[f],y=n[f+1],x=n[f+2],g=n[f+3];i[l++]=p,i[l++]=y,i[l++]=x,h[u++]=g}var P=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(h),data:P,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},Rt.API.setLanguage=function(r){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"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,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},Hi=Rt.API,yo=Hi.getCharWidthsArray=function(r,t){var e,n,a=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),h=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:a.metadata.Unicode.widths,u=l.fof?l.fof:1,f=t.kerning?t.kerning:a.metadata.Unicode.kerning,p=f.fof?f.fof:1,y=t.doKerning!==!1,x=0,g=r.length,P=0,C=l[0]||u,j=[];for(e=0;e<g;e++)n=r.charCodeAt(e),typeof a.metadata.widthOfString=="function"?j.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(n))+h*(1e3/i)||0)/1e3):(x=y&&me(f[n])==="object"&&!isNaN(parseInt(f[n][P],10))?f[n][P]/p:0,j.push((l[n]||C)/u+x)),P=n;return j},$u=Hi.getStringUnitWidth=function(r,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return Hi.processArabic&&(r=Hi.processArabic(r)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(r,e,a)/e:yo.apply(this,arguments).reduce(function(i,h){return i+h},0)},Xu=function(r,t,e,n){for(var a=[],i=0,h=r.length,l=0;i!==h&&l+t[i]<e;)l+=t[i],i++;a.push(r.slice(0,i));var u=i;for(l=0;i!==h;)l+t[i]>n&&(a.push(r.slice(u,i)),l=0,u=i),l+=t[i],i++;return u!==i&&a.push(r.slice(u,i)),a},Zu=function(r,t,e){e||(e={});var n,a,i,h,l,u,f,p=[],y=[p],x=e.textIndent||0,g=0,P=0,C=r.split(" "),j=yo.apply(this,[" ",e])[0];if(u=e.lineIndent===-1?C[0].length+2:e.lineIndent||0){var S=Array(u).join(" "),W=[];C.map(function(M){(M=M.split(/\s*\n/)).length>1?W=W.concat(M.map(function(at,mt){return(mt&&at.length?`
|
|
163
|
-
`:"")+at})):W.push(M[0])}),C=W,u=$u.apply(this,[S,e])}for(i=0,h=C.length;i<h;i++){var z=0;if(n=C[i],u&&n[0]==`
|
|
164
|
-
`&&(n=n.substr(1),z=1),x+g+(P=(a=yo.apply(this,[n,e])).reduce(function(M,at){return M+at},0))>t||z){if(P>t){for(l=Xu.apply(this,[n,a,t-(x+g),t]),p.push(l.shift()),p=[l.pop()];l.length;)y.push([l.shift()]);P=a.slice(n.length-(p[0]?p[0].length:0)).reduce(function(M,at){return M+at},0)}else p=[n];y.push(p),x=P+u,g=j}else p.push(n),x+=g+P,g=j}return f=u?function(M,at){return(at?S:"")+M.join(" ")}:function(M){return M.join(" ")},y.map(f)},Hi.splitTextToSize=function(r,t,e){var n,a=(e=e||{}).fontSize||this.internal.getFontSize(),i=(function(p){if(p.widths&&p.kerning)return{widths:p.widths,kerning:p.kerning};var y=this.internal.getFont(p.fontName,p.fontStyle),x="Unicode";return y.metadata[x]?{widths:y.metadata[x].widths||{0:1},kerning:y.metadata[x].kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);n=Array.isArray(r)?r:String(r).split(/\r?\n/);var h=1*this.internal.scaleFactor*t/a;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,i.lineIndent=e.lineIndent;var l,u,f=[];for(l=0,u=n.length;l<u;l++)f=f.concat(Zu.apply(this,[n[l],h,i]));return f},(function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var t="0123456789abcdef",e="klmnopqrstuvwxyz",n={},a={},i=0;i<16;i++)n[e[i]]=t[i],a[t[i]]=e[i];var h=function(x){return"0x"+parseInt(x,10).toString(16)},l=r.__fontmetrics__.compress=function(x){var g,P,C,j,S=["{"];for(var W in x){if(g=x[W],isNaN(parseInt(W,10))?P="'"+W+"'":(W=parseInt(W,10),P=(P=h(W).slice(2)).slice(0,-1)+a[P.slice(-1)]),typeof g=="number")g<0?(C=h(g).slice(3),j="-"):(C=h(g).slice(2),j=""),C=j+C.slice(0,-1)+a[C.slice(-1)];else{if(me(g)!=="object")throw new Error("Don't know what to do with value type "+me(g)+".");C=l(g)}S.push(P+C)}return S.push("}"),S.join("")},u=r.__fontmetrics__.uncompress=function(x){if(typeof x!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,P,C,j,S={},W=1,z=S,M=[],at="",mt="",ot=x.length-1,$=1;$<ot;$+=1)(j=x[$])=="'"?g?(C=g.join(""),g=void 0):g=[]:g?g.push(j):j=="{"?(M.push([z,C]),z={},C=void 0):j=="}"?((P=M.pop())[0][P[1]]=z,C=void 0,z=P[0]):j=="-"?W=-1:C===void 0?n.hasOwnProperty(j)?(at+=n[j],C=parseInt(at,16)*W,W=1,at=""):at+=j:n.hasOwnProperty(j)?(mt+=n[j],z[C]=parseInt(mt,16)*W,W=1,C=void 0,mt=""):mt+=j;return S},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},p={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},y={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'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":u("{'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:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'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:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'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":u("{'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:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'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":u("{'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":u("{'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}}}")}};r.events.push(["addFont",function(x){var g=x.font,P=y.Unicode[g.postScriptName];P&&(g.metadata.Unicode={},g.metadata.Unicode.widths=P.widths,g.metadata.Unicode.kerning=P.kerning);var C=p.Unicode[g.postScriptName];C&&(g.metadata.Unicode.encoding=C,g.encoding=C.codePages[0])}])})(Rt.API),(function(r){var t=function(e){for(var n=e.length,a=new Uint8Array(n),i=0;i<n;i++)a[i]=e.charCodeAt(i);return a};r.API.events.push(["addFont",function(e){var n=void 0,a=e.font,i=e.instance;if(!a.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(n=i.existsFileInVFS(a.postScriptName)===!1?i.loadFile(a.postScriptName):i.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(h,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(xo(l)),h.metadata=r.API.TTFFont.open(l),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(a,n)}}])})(Rt),Rt.API.addSvgAsImage=function(r,t,e,n,a,i,h,l){if(isNaN(t)||isNaN(e))throw Le.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(a))throw Le.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=n,u.height=a;var f=u.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,u.width,u.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},y=this;return(Yt.canvg?Promise.resolve(Yt.canvg):Promise.resolve().then(()=>require("./index.es-DUsc-TdR.cjs"))).catch(function(x){return Promise.reject(new Error("Could not load canvg: "+x))}).then(function(x){return x.default?x.default:x}).then(function(x){return x.fromString(f,r,p)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(x){return x.render(p)}).then(function(){y.addImage(u.toDataURL("image/jpeg",1),t,e,n,a,h,l)})},Rt.API.putTotalPages=function(r){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(r,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var a=0;a<this.internal.pages[n].length;a++)this.internal.pages[n][a]=this.internal.pages[n][a].replace(t,e);return this},Rt.API.viewerPreferences=function(r,t){var e;r=r||{},t=t||!1;var n,a,i,h={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}},l=Object.keys(h),u=[],f=0,p=0,y=0;function x(P,C){var j,S=!1;for(j=0;j<P.length;j+=1)P[j]===C&&(S=!0);return S}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,r==="reset"||t===!0){var g=l.length;for(y=0;y<g;y+=1)e[l[y]].value=e[l[y]].defaultValue,e[l[y]].explicitSet=!1}if(me(r)==="object"){for(a in r)if(i=r[a],x(l,a)&&i!==void 0){if(e[a].type==="boolean"&&typeof i=="boolean")e[a].value=i;else if(e[a].type==="name"&&x(e[a].valueSet,i))e[a].value=i;else if(e[a].type==="integer"&&Number.isInteger(i))e[a].value=i;else if(e[a].type==="array"){for(f=0;f<i.length;f+=1)if(n=!0,i[f].length===1&&typeof i[f][0]=="number")u.push(String(i[f]-1));else if(i[f].length>1){for(p=0;p<i[f].length;p+=1)typeof i[f][p]!="number"&&(n=!1);n===!0&&u.push([i[f][0]-1,i[f][1]-1].join(" "))}e[a].value="["+u.join(" ")+"]"}else e[a].value=e[a].defaultValue;e[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var P,C=[];for(P in e)e[P].explicitSet===!0&&(e[P].type==="name"?C.push("/"+P+" /"+e[P].value):C.push("/"+P+" "+e[P].value));C.length!==0&&this.internal.write(`/ViewerPreferences
|
|
165
|
-
<<
|
|
166
|
-
`+C.join(`
|
|
167
|
-
`)+`
|
|
168
|
-
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},(function(r){var t=function(){var n='<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>',a=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(n)),h=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),u=unescape(encodeURIComponent("</x:xmpmeta>")),f=i.length+h.length+l.length+a.length+u.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+f+" >>"),this.internal.write("stream"),this.internal.write(a+i+h+l+u),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")};r.addMetadata=function(n,a){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:a||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",t)),this}})(Rt.API),(function(r){var t=r.API,e=t.pdfEscape16=function(i,h){for(var l,u=h.metadata.Unicode.widths,f=["","0","00","000","0000"],p=[""],y=0,x=i.length;y<x;++y){if(l=h.metadata.characterToGlyph(i.charCodeAt(y)),h.metadata.glyIdsUsed.push(l),h.metadata.toUnicode[l]=i.charCodeAt(y),u.indexOf(l)==-1&&(u.push(l),u.push([parseInt(h.metadata.widthOfGlyph(l),10)])),l=="0")return p.join("");l=l.toString(16),p.push(f[4-l.length],l)}return p.join("")},n=function(i){var h,l,u,f,p,y,x;for(p=`/CIDInit /ProcSet findresource begin
|
|
169
|
-
12 dict begin
|
|
170
|
-
begincmap
|
|
171
|
-
/CIDSystemInfo <<
|
|
172
|
-
/Registry (Adobe)
|
|
173
|
-
/Ordering (UCS)
|
|
174
|
-
/Supplement 0
|
|
175
|
-
>> def
|
|
176
|
-
/CMapName /Adobe-Identity-UCS def
|
|
177
|
-
/CMapType 2 def
|
|
178
|
-
1 begincodespacerange
|
|
179
|
-
<0000><ffff>
|
|
180
|
-
endcodespacerange`,u=[],y=0,x=(l=Object.keys(i).sort(function(g,P){return g-P})).length;y<x;y++)h=l[y],u.length>=100&&(p+=`
|
|
181
|
-
`+u.length+` beginbfchar
|
|
182
|
-
`+u.join(`
|
|
183
|
-
`)+`
|
|
184
|
-
endbfchar`,u=[]),i[h]!==void 0&&i[h]!==null&&typeof i[h].toString=="function"&&(f=("0000"+i[h].toString(16)).slice(-4),h=("0000"+(+h).toString(16)).slice(-4),u.push("<"+h+"><"+f+">"));return u.length&&(p+=`
|
|
185
|
-
`+u.length+` beginbfchar
|
|
186
|
-
`+u.join(`
|
|
187
|
-
`)+`
|
|
188
|
-
endbfchar
|
|
189
|
-
`),p+`endcmap
|
|
190
|
-
CMapName currentdict /CMap defineresource pop
|
|
191
|
-
end
|
|
192
|
-
end`};t.events.push(["putFont",function(i){(function(h){var l=h.font,u=h.out,f=h.newObject,p=h.putStream;if(l.metadata instanceof r.API.TTFFont&&l.encoding==="Identity-H"){for(var y=l.metadata.Unicode.widths,x=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),g="",P=0;P<x.length;P++)g+=String.fromCharCode(x[P]);var C=f();p({data:g,addLength1:!0,objectId:C}),u("endobj");var j=f();p({data:n(l.metadata.toUnicode),addLength1:!0,objectId:j}),u("endobj");var S=f();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+Gi(l.fontName)),u("/FontFile2 "+C+" 0 R"),u("/FontBBox "+r.API.PDFObject.convert(l.metadata.bbox)),u("/Flags "+l.metadata.flags),u("/StemV "+l.metadata.stemV),u("/ItalicAngle "+l.metadata.italicAngle),u("/Ascent "+l.metadata.ascender),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u(">>"),u("endobj");var W=f();u("<<"),u("/Type /Font"),u("/BaseFont /"+Gi(l.fontName)),u("/FontDescriptor "+S+" 0 R"),u("/W "+r.API.PDFObject.convert(y)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+l.encoding+")"),u(">>"),u(">>"),u("endobj"),l.objectNumber=f(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+j+" 0 R"),u("/BaseFont /"+Gi(l.fontName)),u("/Encoding /"+l.encoding),u("/DescendantFonts ["+W+" 0 R]"),u(">>"),u("endobj"),l.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(h){var l=h.font,u=h.out,f=h.newObject,p=h.putStream;if(l.metadata instanceof r.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var y=l.metadata.rawData,x="",g=0;g<y.length;g++)x+=String.fromCharCode(y[g]);var P=f();p({data:x,addLength1:!0,objectId:P}),u("endobj");var C=f();p({data:n(l.metadata.toUnicode),addLength1:!0,objectId:C}),u("endobj");var j=f();u("<<"),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u("/StemV "+l.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+P+" 0 R"),u("/Flags 96"),u("/FontBBox "+r.API.PDFObject.convert(l.metadata.bbox)),u("/FontName /"+Gi(l.fontName)),u("/ItalicAngle "+l.metadata.italicAngle),u("/Ascent "+l.metadata.ascender),u(">>"),u("endobj"),l.objectNumber=f();for(var S=0;S<l.metadata.hmtx.widths.length;S++)l.metadata.hmtx.widths[S]=parseInt(l.metadata.hmtx.widths[S]*(1e3/l.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+C+" 0 R/BaseFont/"+Gi(l.fontName)+"/FontDescriptor "+j+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),u("endobj"),l.isAlreadyPutted=!0}})(i)}]);var a=function(i){var h,l=i.text||"",u=i.x,f=i.y,p=i.options||{},y=i.mutex||{},x=y.pdfEscape,g=y.activeFontKey,P=y.fonts,C=g,j="",S=0,W="",z=P[C].encoding;if(P[C].encoding!=="Identity-H")return{text:l,x:u,y:f,options:p,mutex:y};for(W=l,C=g,Array.isArray(l)&&(W=l[0]),S=0;S<W.length;S+=1)P[C].metadata.hasOwnProperty("cmap")&&(h=P[C].metadata.cmap.unicode.codeMap[W[S].charCodeAt(0)]),h||W[S].charCodeAt(0)<256&&P[C].metadata.hasOwnProperty("Unicode")?j+=W[S]:j+="";var M="";return parseInt(C.slice(1))<14||z==="WinAnsiEncoding"?M=x(j,C).split("").map(function(at){return at.charCodeAt(0).toString(16)}).join(""):z==="Identity-H"&&(M=e(j,P[C])),y.isHex=!0,{text:M,x:u,y:f,options:p,mutex:y}};t.events.push(["postProcessText",function(i){var h=i.text||"",l=[],u={text:h,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(h)){var f=0;for(f=0;f<h.length;f+=1)Array.isArray(h[f])&&h[f].length===3?l.push([a(Object.assign({},u,{text:h[f][0]})).text,h[f][1],h[f][2]]):l.push(a(Object.assign({},u,{text:h[f]})).text);i.text=l}else i.text=a(Object.assign({},u,{text:h})).text}])})(Rt),(function(r){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},r.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},r.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(Rt.API),(function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(n){var a,i,h,l,u,f,p,y=t,x=[[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]],g=[[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]],P={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},C={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},j=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],S=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)$/),W=!1,z=0;this.__bidiEngine__={};var M=function(L){var O=L.charCodeAt(),G=O>>8,U=C[G];return U!==void 0?y[256*U+(255&O)]:G===252||G===253?"AL":S.test(G)?"L":G===8?"R":"N"},at=function(L){for(var O,G=0;G<L.length;G++){if((O=M(L.charAt(G)))==="L")return!1;if(O==="R")return!0}return!1},mt=function(L,O,G,U){var nt,ht,dt,rt,ft=O[U];switch(ft){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":W=!1;break;case"N":case"AN":break;case"EN":W&&(ft="AN");break;case"AL":W=!0,ft="R";break;case"WS":case"BN":ft="N";break;case"CS":U<1||U+1>=O.length||(nt=G[U-1])!=="EN"&&nt!=="AN"||(ht=O[U+1])!=="EN"&&ht!=="AN"?ft="N":W&&(ht="AN"),ft=ht===nt?ht:"N";break;case"ES":ft=(nt=U>0?G[U-1]:"B")==="EN"&&U+1<O.length&&O[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&G[U-1]==="EN"){ft="EN";break}if(W){ft="N";break}for(dt=U+1,rt=O.length;dt<rt&&O[dt]==="ET";)dt++;ft=dt<rt&&O[dt]==="EN"?"EN":"N";break;case"NSM":if(h&&!l){for(rt=O.length,dt=U+1;dt<rt&&O[dt]==="NSM";)dt++;if(dt<rt){var Nt=L[U],wt=Nt>=1425&&Nt<=2303||Nt===64286;if(nt=O[dt],wt&&(nt==="R"||nt==="AL")){ft="R";break}}}ft=U<1||(nt=O[U-1])==="B"?"N":G[U-1];break;case"B":W=!1,a=!0,ft=z;break;case"S":i=!0,ft="N"}return ft},ot=function(L,O,G){var U=L.split("");return G&&$(U,G,{hiLevel:z}),U.reverse(),O&&O.reverse(),U.join("")},$=function(L,O,G){var U,nt,ht,dt,rt,ft=-1,Nt=L.length,wt=0,_=[],B=z?g:x,R=[];for(W=!1,a=!1,i=!1,nt=0;nt<Nt;nt++)R[nt]=M(L[nt]);for(ht=0;ht<Nt;ht++){if(rt=wt,_[ht]=mt(L,R,_,ht),U=240&(wt=B[rt][P[_[ht]]]),wt&=15,O[ht]=dt=B[wt][5],U>0)if(U===16){for(nt=ft;nt<ht;nt++)O[nt]=1;ft=-1}else ft=-1;if(B[wt][6])ft===-1&&(ft=ht);else if(ft>-1){for(nt=ft;nt<ht;nt++)O[nt]=dt;ft=-1}R[ht]==="B"&&(O[ht]=0),G.hiLevel|=dt}i&&(function(V,J,Z){for(var lt=0;lt<Z;lt++)if(V[lt]==="S"){J[lt]=z;for(var it=lt-1;it>=0&&V[it]==="WS";it--)J[it]=z}})(R,O,Nt)},T=function(L,O,G,U,nt){if(!(nt.hiLevel<L)){if(L===1&&z===1&&!a)return O.reverse(),void(G&&G.reverse());for(var ht,dt,rt,ft,Nt=O.length,wt=0;wt<Nt;){if(U[wt]>=L){for(rt=wt+1;rt<Nt&&U[rt]>=L;)rt++;for(ft=wt,dt=rt-1;ft<dt;ft++,dt--)ht=O[ft],O[ft]=O[dt],O[dt]=ht,G&&(ht=G[ft],G[ft]=G[dt],G[dt]=ht);wt=rt}wt++}}},et=function(L,O,G){var U=L.split(""),nt={hiLevel:z};return G||(G=[]),$(U,G,nt),(function(ht,dt,rt){if(rt.hiLevel!==0&&p)for(var ft,Nt=0;Nt<ht.length;Nt++)dt[Nt]===1&&(ft=j.indexOf(ht[Nt]))>=0&&(ht[Nt]=j[ft+1])})(U,G,nt),T(2,U,O,G,nt),T(1,U,O,G,nt),U.join("")};return this.__bidiEngine__.doBidiReorder=function(L,O,G){if((function(nt,ht){if(ht)for(var dt=0;dt<nt.length;dt++)ht[dt]=dt;l===void 0&&(l=at(nt)),f===void 0&&(f=at(nt))})(L,O),h||!u||f)if(h&&u&&l^f)z=l?1:0,L=ot(L,O,G);else if(!h&&u&&f)z=l?1:0,L=et(L,O,G),L=ot(L,O);else if(!h||l||u||f){if(h&&!u&&l^f)L=ot(L,O),l?(z=0,L=et(L,O,G)):(z=1,L=et(L,O,G),L=ot(L,O));else if(h&&l&&!u&&f)z=1,L=et(L,O,G),L=ot(L,O);else if(!h&&!u&&l^f){var U=p;l?(z=1,L=et(L,O,G),z=0,p=!1,L=et(L,O,G),p=U):(z=0,L=et(L,O,G),L=ot(L,O),z=1,p=!1,L=et(L,O,G),p=U,L=ot(L,O))}}else z=0,L=et(L,O,G);else z=l?1:0,L=et(L,O,G);return L},this.__bidiEngine__.setOptions=function(L){L&&(h=L.isInputVisual,u=L.isOutputVisual,l=L.isInputRtl,f=L.isOutputRtl,p=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),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 r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(n){var a=n.text;n.x,n.y;var i=n.options||{};n.mutex,i.lang;var h=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(h=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?h.push([e.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):h.push([e.doBidiReorder(a[l])]);n.text=h}else n.text=e.doBidiReorder(a);e.setOptions({isInputVisual:!0})}])})(Rt),Rt.API.TTFFont=(function(){function r(t){var e;if(this.rawData=t,e=this.contents=new Qn(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new V2(this),this.registerTTF()}return r.open=function(t){return new r(t)},r.prototype.parse=function(){return this.directory=new E2(this.contents),this.head=new j2(this),this.name=new M2(this),this.cmap=new af(this),this.toUnicode={},this.hhea=new B2(this),this.maxp=new q2(this),this.hmtx=new U2(this),this.post=new R2(this),this.os2=new D2(this),this.loca=new G2(this),this.glyf=new z2(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]},r.prototype.registerTTF=function(){var t,e,n,a,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var h,l,u,f;for(f=[],h=0,l=(u=this.bbox).length;h<l;h++)t=u[h],f.push(Math.round(t*this.scaleFactor));return f}).call(this),this.stemV=0,this.post.exists?(n=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):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=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===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")},r.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},r.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},r.prototype.widthOfString=function(t,e,n){var a,i,h,l;for(h=0,i=0,l=(t=""+t).length;0<=l?i<l:i>l;i=0<=l?++i:--i)a=t.charCodeAt(i),h+=this.widthOfGlyph(this.characterToGlyph(a))+n*(1e3/e)||0;return h*(e/1e3)},r.prototype.lineHeight=function(t,e){var n;return e==null&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},r})();var en,Qn=(function(){function r(t){this.data=t??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(t){return this.data[this.pos++]=t},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},r.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},r.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},r.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},r.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},r.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},r.prototype.writeString=function(t){var e,n,a;for(a=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)a.push(this.writeByte(t.charCodeAt(e)));return a},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(t){return this.writeInt16(t)},r.prototype.readLongLong=function(){var t,e,n,a,i,h,l,u;return t=this.readByte(),e=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),h=this.readByte(),l=this.readByte(),u=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^a)+16777216*(255^i)+65536*(255^h)+256*(255^l)+(255^u)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*a+16777216*i+65536*h+256*l+u},r.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(t){return this.writeInt32(t)},r.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},r.prototype.write=function(t){var e,n,a,i;for(i=[],n=0,a=t.length;n<a;n++)e=t[n],i.push(this.writeByte(e));return i},r})(),E2=(function(){var r;function t(e){var n,a,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},a=0,i=this.tableCount;0<=i?a<i:a>i;a=0<=i?++a:--a)n={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(e){var n,a,i,h,l,u,f,p,y,x,g,P,C;for(C in g=Object.keys(e).length,u=Math.log(2),y=16*Math.floor(Math.log(g)/u),h=Math.floor(y/u),p=16*g-y,(a=new Qn).writeInt(this.scalarType),a.writeShort(g),a.writeShort(y),a.writeShort(h),a.writeShort(p),i=16*g,f=a.pos+i,l=null,P=[],e)for(x=e[C],a.writeString(C),a.writeInt(r(x)),a.writeInt(f),a.writeInt(x.length),P=P.concat(x),C==="head"&&(l=f),f+=x.length;f%4;)P.push(0),f++;return a.write(P),n=2981146554-r(a.data),a.pos=l+8,a.writeUInt32(n),a.data},r=function(e){var n,a,i,h;for(e=of.call(e);e.length%4;)e.push(0);for(i=new Qn(e),a=0,n=0,h=e.length;n<h;n=n+=4)a+=i.readUInt32();return 4294967295&a},t})(),O2={}.hasOwnProperty,vn=function(r,t){for(var e in t)O2.call(t,e)&&(r[e]=t[e]);function n(){this.constructor=r}return n.prototype=t.prototype,r.prototype=new n,r.__super__=t.prototype,r};en=(function(){function r(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 r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r})();var j2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="head",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},r.prototype.encode=function(t){var e;return(e=new Qn).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},r})(),sh=(function(){function r(t,e){var n,a,i,h,l,u,f,p,y,x,g,P,C,j,S,W,z;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),y=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(u=0;u<256;++u)this.codeMap[u]=t.readByte();break;case 4:for(g=t.readUInt16(),x=g/2,t.pos+=6,i=(function(){var M,at;for(at=[],u=M=0;0<=x?M<x:M>x;u=0<=x?++M:--M)at.push(t.readUInt16());return at})(),t.pos+=2,C=(function(){var M,at;for(at=[],u=M=0;0<=x?M<x:M>x;u=0<=x?++M:--M)at.push(t.readUInt16());return at})(),f=(function(){var M,at;for(at=[],u=M=0;0<=x?M<x:M>x;u=0<=x?++M:--M)at.push(t.readUInt16());return at})(),p=(function(){var M,at;for(at=[],u=M=0;0<=x?M<x:M>x;u=0<=x?++M:--M)at.push(t.readUInt16());return at})(),a=(this.length-t.pos+this.offset)/2,l=(function(){var M,at;for(at=[],u=M=0;0<=a?M<a:M>a;u=0<=a?++M:--M)at.push(t.readUInt16());return at})(),u=S=0,z=i.length;S<z;u=++S)for(j=i[u],n=W=P=C[u];P<=j?W<=j:W>=j;n=P<=j?++W:--W)p[u]===0?h=n+f[u]:(h=l[p[u]/2+(n-P)-(x-u)]||0)!==0&&(h+=f[u]),this.codeMap[n]=65535&h}t.pos=y}return r.encode=function(t,e){var n,a,i,h,l,u,f,p,y,x,g,P,C,j,S,W,z,M,at,mt,ot,$,T,et,L,O,G,U,nt,ht,dt,rt,ft,Nt,wt,_,B,R,V,J,Z,lt,it,vt,_t,kt;switch(U=new Qn,h=Object.keys(t).sort(function(Pt,st){return Pt-st}),e){case"macroman":for(C=0,j=(function(){var Pt=[];for(P=0;P<256;++P)Pt.push(0);return Pt})(),W={0:0},i={},nt=0,ft=h.length;nt<ft;nt++)W[it=t[a=h[nt]]]==null&&(W[it]=++C),i[a]={old:t[a],new:W[t[a]]},j[a]=W[t[a]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(j),{charMap:i,subtable:U.data,maxGlyphID:C+1};case"unicode":for(O=[],y=[],z=0,W={},n={},S=f=null,ht=0,Nt=h.length;ht<Nt;ht++)W[at=t[a=h[ht]]]==null&&(W[at]=++z),n[a]={old:at,new:W[at]},l=W[at]-a,S!=null&&l===f||(S&&y.push(S),O.push(a),f=l),S=a;for(S&&y.push(S),y.push(65535),O.push(65535),et=2*(T=O.length),$=2*Math.pow(Math.log(T)/Math.LN2,2),x=Math.log($/2)/Math.LN2,ot=2*T-$,u=[],mt=[],g=[],P=dt=0,wt=O.length;dt<wt;P=++dt){if(L=O[P],p=y[P],L===65535){u.push(0),mt.push(0);break}if(L-(G=n[L].new)>=32768)for(u.push(0),mt.push(2*(g.length+T-P)),a=rt=L;L<=p?rt<=p:rt>=p;a=L<=p?++rt:--rt)g.push(n[a].new);else u.push(G-L),mt.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*T+2*g.length),U.writeUInt16(0),U.writeUInt16(et),U.writeUInt16($),U.writeUInt16(x),U.writeUInt16(ot),Z=0,_=y.length;Z<_;Z++)a=y[Z],U.writeUInt16(a);for(U.writeUInt16(0),lt=0,B=O.length;lt<B;lt++)a=O[lt],U.writeUInt16(a);for(vt=0,R=u.length;vt<R;vt++)l=u[vt],U.writeUInt16(l);for(_t=0,V=mt.length;_t<V;_t++)M=mt[_t],U.writeUInt16(M);for(kt=0,J=g.length;kt<J;kt++)C=g[kt],U.writeUInt16(C);return{charMap:n,subtable:U.data,maxGlyphID:z+1}}},r})(),af=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="cmap",r.prototype.parse=function(t){var e,n,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=a?n<a:n>a;n=0<=a?++n:--n)e=new sh(t,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},r.encode=function(t,e){var n,a;return e==null&&(e="macroman"),n=sh.encode(t,e),(a=new Qn).writeUInt16(0),a.writeUInt16(1),n.table=a.data.concat(n.subtable),n},r})(),B2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="hhea",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},r})(),D2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="OS/2",r.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n})(),this.charRange=(function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},r})(),R2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="post",r.prototype.parse=function(t){var e,n,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)e=t.readByte(),a.push(this.names.push(t.readString(e)));return a;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=(function(){var h,l,u;for(u=[],i=h=0,l=this.file.maxp.numGlyphs;0<=l?h<l:h>l;i=0<=l?++h:--h)u.push(t.readUInt32());return u}).call(this)}},r})(),T2=function(r,t){this.raw=r,this.length=r.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},M2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="name",r.prototype.parse=function(t){var e,n,a,i,h,l,u,f,p,y,x;for(t.pos=this.offset,t.readShort(),e=t.readShort(),l=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+l+t.readShort()});for(u={},i=p=0,y=n.length;p<y;i=++p)a=n[i],t.pos=a.offset,f=t.readString(a.length),h=new T2(f,a),u[x=a.nameID]==null&&(u[x]=[]),u[a.nameID].push(h);this.strings=u,this.copyright=u[0],this.fontFamily=u[1],this.fontSubfamily=u[2],this.uniqueSubfamily=u[3],this.fontName=u[4],this.version=u[5];try{this.postscriptName=u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=u[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=u[7],this.manufacturer=u[8],this.designer=u[9],this.description=u[10],this.vendorUrl=u[11],this.designerUrl=u[12],this.license=u[13],this.licenseUrl=u[14],this.preferredFamily=u[15],this.preferredSubfamily=u[17],this.compatibleFull=u[18],this.sampleText=u[19]},r})(),q2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="maxp",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},r})(),U2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="hmtx",r.prototype.parse=function(t){var e,n,a,i,h,l,u;for(t.pos=this.offset,this.metrics=[],e=0,l=this.file.hhea.numberOfMetrics;0<=l?e<l:e>l;e=0<=l?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var f,p;for(p=[],e=f=0;0<=a?f<a:f>a;e=0<=a?++f:--f)p.push(t.readInt16());return p})(),this.widths=(function(){var f,p,y,x;for(x=[],f=0,p=(y=this.metrics).length;f<p;f++)i=y[f],x.push(i.advance);return x}).call(this),n=this.widths[this.widths.length-1],u=[],e=h=0;0<=a?h<a:h>a;e=0<=a?++h:--h)u.push(this.widths.push(n));return u},r.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},r})(),of=[].slice,z2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="glyf",r.prototype.parse=function(){return this.cache={}},r.prototype.glyphFor=function(t){var e,n,a,i,h,l,u,f,p,y;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),(a=i.lengthOf(t))===0?this.cache[t]=null:(e.pos=this.offset+n,h=(l=new Qn(e.read(a))).readShort(),f=l.readShort(),y=l.readShort(),u=l.readShort(),p=l.readShort(),this.cache[t]=h===-1?new W2(l,f,y,u,p):new H2(l,h,f,y,u,p),this.cache[t]))},r.prototype.encode=function(t,e,n){var a,i,h,l,u;for(h=[],i=[],l=0,u=e.length;l<u;l++)a=t[e[l]],i.push(h.length),a&&(h=h.concat(a.encode(n)));return i.push(h.length),{table:h,offsets:i}},r})(),H2=(function(){function r(t,e,n,a,i,h){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=a,this.xMax=i,this.yMax=h,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r})(),W2=(function(){function r(t,e,n,a,i){var h,l;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],h=this.raw;l=h.readShort(),this.glyphOffsets.push(h.pos),this.glyphIDs.push(h.readUInt16()),32&l;)h.pos+=1&l?4:2,128&l?h.pos+=8:64&l?h.pos+=4:8&l&&(h.pos+=2)}return r.prototype.encode=function(){var t,e,n;for(e=new Qn(of.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},r})(),G2=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return vn(r,en),r.prototype.tag="loca",r.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var a,i;for(i=[],n=0,a=this.length;n<a;n+=2)i.push(2*t.readUInt16());return i}).call(this):(function(){var a,i;for(i=[],n=0,a=this.length;n<a;n+=4)i.push(t.readUInt32());return i}).call(this)},r.prototype.indexOf=function(t){return this.offsets[t]},r.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},r.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),a=0,i=0,h=0;h<n.length;++h)if(n[h]=a,i<e.length&&e[i]==h){++i,n[h]=a;var l=this.offsets[h],u=this.offsets[h+1]-l;u>0&&(a+=u)}for(var f=new Array(4*n.length),p=0;p<n.length;++p)f[4*p+3]=255&n[p],f[4*p+2]=(65280&n[p])>>8,f[4*p+1]=(16711680&n[p])>>16,f[4*p]=(4278190080&n[p])>>24;return f},r})(),V2=(function(){function r(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var t,e,n,a,i;for(e in a=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=a[n];return t},r.prototype.glyphsFor=function(t){var e,n,a,i,h,l,u;for(a={},h=0,l=t.length;h<l;h++)a[i=t[h]]=this.font.glyf.glyphFor(i);for(i in e=[],a)(n=a[i])!=null&&n.compound&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in u=this.glyphsFor(e))n=u[i],a[i]=n;return a},r.prototype.encode=function(t,e){var n,a,i,h,l,u,f,p,y,x,g,P,C,j,S;for(a in n=af.encode(this.generateCmap(),"unicode"),h=this.glyphsFor(t),g={0:0},S=n.charMap)g[(u=S[a]).old]=u.new;for(P in x=n.maxGlyphID,h)P in g||(g[P]=x++);return p=(function(W){var z,M;for(z in M={},W)M[W[z]]=z;return M})(g),y=Object.keys(p).sort(function(W,z){return W-z}),C=(function(){var W,z,M;for(M=[],W=0,z=y.length;W<z;W++)l=y[W],M.push(p[l]);return M})(),i=this.font.glyf.encode(h,C,g),f=this.font.loca.encode(i.offsets,C),j={cmap:this.font.cmap.raw(),glyf:i.table,loca:f,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&&(j["OS/2"]=this.font.os2.raw()),this.font.directory.encode(j)},r})();Rt.API.PDFObject=(function(){var r;function t(){}return r=function(e,n){return(Array(n+1).join("0")+e).slice(-n)},t.convert=function(e){var n,a,i,h;if(Array.isArray(e))return"["+(function(){var l,u,f;for(f=[],l=0,u=e.length;l<u;l++)n=e[l],f.push(t.convert(n));return f})().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e?.isString)return"("+e+")";if(e instanceof Date)return"(D:"+r(e.getUTCFullYear(),4)+r(e.getUTCMonth(),2)+r(e.getUTCDate(),2)+r(e.getUTCHours(),2)+r(e.getUTCMinutes(),2)+r(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(a in i=["<<"],e)h=e[a],i.push("/"+a+" "+t.convert(h));return i.push(">>"),i.join(`
|
|
193
|
-
`)}return""+e},t})();function sf(r,t,e,n,a){n=n||{};var i=1.15,h=a.internal.scaleFactor,l=a.internal.getFontSize()/h,u=a.getLineHeightFactor?a.getLineHeightFactor():i,f=l*u,p=/\r\n|\r|\n/g,y="",x=1;if((n.valign==="middle"||n.valign==="bottom"||n.halign==="center"||n.halign==="right")&&(y=typeof r=="string"?r.split(p):r,x=y.length||1),e+=l*(2-i),n.valign==="middle"?e-=x/2*f:n.valign==="bottom"&&(e-=x*f),n.halign==="center"||n.halign==="right"){var g=l;if(n.halign==="center"&&(g*=.5),y&&x>=1){for(var P=0;P<y.length;P++)a.text(y[P],t-a.getStringUnitWidth(y[P])*g,e),e+=f;return a}t-=a.getStringUnitWidth(r)*g}return n.halign==="justify"?a.text(r,t,e,{maxWidth:n.maxWidth||100,align:"justify"}):a.text(r,t,e),a}var lh={},Xi=(function(){function r(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return r.setDefaults=function(t,e){e===void 0&&(e=null),e?e.__autoTableDocumentDefaults=t:lh=t},r.unifyColor=function(t){return Array.isArray(t)?t:typeof t=="number"?[t,t,t]:typeof t=="string"?[t]:null},r.prototype.applyStyles=function(t,e){var n,a,i;e===void 0&&(e=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var h=this.jsPDFDocument.internal.getFont(),l=h.fontStyle,u=h.fontName;if(t.font&&(u=t.font),t.fontStyle){l=t.fontStyle;var f=this.getFontList()[u];f&&f.indexOf(l)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(f[0]),l=f[0])}if(this.jsPDFDocument.setFont(u,l),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!e){var p=r.unifyColor(t.fillColor);p&&(n=this.jsPDFDocument).setFillColor.apply(n,p),p=r.unifyColor(t.textColor),p&&(a=this.jsPDFDocument).setTextColor.apply(a,p),p=r.unifyColor(t.lineColor),p&&(i=this.jsPDFDocument).setDrawColor.apply(i,p),typeof t.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},r.prototype.splitTextToSize=function(t,e,n){return this.jsPDFDocument.splitTextToSize(t,e,n)},r.prototype.rect=function(t,e,n,a,i){return this.jsPDFDocument.rect(t,e,n,a,i)},r.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},r.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},r.prototype.getDocument=function(){return this.jsPDFDocument},r.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},r.prototype.addPage=function(){return this.jsPDFDocument.addPage()},r.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},r.prototype.getGlobalOptions=function(){return lh||{}},r.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},r.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return t.width==null&&(t={width:t.getWidth(),height:t.getHeight()}),t},r.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},r.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},r.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},r.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},r})(),Xs=function(r,t){return Xs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Xs(r,t)};function lf(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Xs(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var uf=(function(r){lf(t,r);function t(e){var n=r.call(this)||this;return n._element=e,n}return t})(Array);function Y2(r){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/r,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function J2(r){var t={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return t[r]}function Fo(r,t,e){e.applyStyles(t,!0);var n=Array.isArray(r)?r:[r],a=n.map(function(i){return e.getTextWidth(i)}).reduce(function(i,h){return Math.max(i,h)},0);return a}function hf(r,t,e,n){var a=t.settings.tableLineWidth,i=t.settings.tableLineColor;r.applyStyles({lineWidth:a,lineColor:i});var h=ff(a,!1);h&&r.rect(e.x,e.y,t.getWidth(r.pageSize().width),n.y-e.y,h)}function ff(r,t){var e=r>0,n=t||t===0;return e&&n?"DF":e?"S":n?"F":null}function jo(r,t){var e,n,a,i;if(r=r||t,Array.isArray(r)){if(r.length>=4)return{top:r[0],right:r[1],bottom:r[2],left:r[3]};if(r.length===3)return{top:r[0],right:r[1],bottom:r[2],left:r[1]};if(r.length===2)return{top:r[0],right:r[1],bottom:r[0],left:r[1]};r.length===1?r=r[0]:r=t}return typeof r=="object"?(typeof r.vertical=="number"&&(r.top=r.vertical,r.bottom=r.vertical),typeof r.horizontal=="number"&&(r.right=r.horizontal,r.left=r.horizontal),{left:(e=r.left)!==null&&e!==void 0?e:t,top:(n=r.top)!==null&&n!==void 0?n:t,right:(a=r.right)!==null&&a!==void 0?a:t,bottom:(i=r.bottom)!==null&&i!==void 0?i:t}):(typeof r!="number"&&(r=t),{top:r,right:r,bottom:r,left:r})}function cf(r,t){var e=jo(t.settings.margin,0);return r.pageSize().width-(e.left+e.right)}function K2(r,t,e,n,a){var i={},h=1.3333333333333333,l=Ds(t,function(z){return a.getComputedStyle(z).backgroundColor});l!=null&&(i.fillColor=l);var u=Ds(t,function(z){return a.getComputedStyle(z).color});u!=null&&(i.textColor=u);var f=X2(n,e);f&&(i.cellPadding=f);var p="borderTopColor",y=h*e,x=n.borderTopWidth;if(n.borderBottomWidth===x&&n.borderRightWidth===x&&n.borderLeftWidth===x){var g=(parseFloat(x)||0)/y;g&&(i.lineWidth=g)}else i.lineWidth={top:(parseFloat(n.borderTopWidth)||0)/y,right:(parseFloat(n.borderRightWidth)||0)/y,bottom:(parseFloat(n.borderBottomWidth)||0)/y,left:(parseFloat(n.borderLeftWidth)||0)/y},i.lineWidth.top||(i.lineWidth.right?p="borderRightColor":i.lineWidth.bottom?p="borderBottomColor":i.lineWidth.left&&(p="borderLeftColor"));var P=Ds(t,function(z){return a.getComputedStyle(z)[p]});P!=null&&(i.lineColor=P);var C=["left","right","center","justify"];C.indexOf(n.textAlign)!==-1&&(i.halign=n.textAlign),C=["middle","bottom","top"],C.indexOf(n.verticalAlign)!==-1&&(i.valign=n.verticalAlign);var j=parseInt(n.fontSize||"");isNaN(j)||(i.fontSize=j/h);var S=$2(n);S&&(i.fontStyle=S);var W=(n.fontFamily||"").toLowerCase();return r.indexOf(W)!==-1&&(i.font=W),i}function $2(r){var t="";return(r.fontWeight==="bold"||r.fontWeight==="bolder"||parseInt(r.fontWeight)>=700)&&(t="bold"),(r.fontStyle==="italic"||r.fontStyle==="oblique")&&(t+="italic"),t}function Ds(r,t){var e=df(r,t);if(!e)return null;var n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!n||!Array.isArray(n))return null;var a=[parseInt(n[1]),parseInt(n[2]),parseInt(n[3])],i=parseInt(n[4]);return i===0||isNaN(a[0])||isNaN(a[1])||isNaN(a[2])?null:a}function df(r,t){var e=t(r);return e==="rgba(0, 0, 0, 0)"||e==="transparent"||e==="initial"||e==="inherit"?r.parentElement==null?null:df(r.parentElement,t):e}function X2(r,t){var e=[r.paddingTop,r.paddingRight,r.paddingBottom,r.paddingLeft],n=96/(72/t),a=(parseInt(r.lineHeight)-parseInt(r.fontSize))/t/2,i=e.map(function(l){return parseInt(l||"0")/n}),h=jo(i,0);return a>h.top&&(h.top=a),a>h.bottom&&(h.bottom=a),h}function pf(r,t,e,n,a){var i,h;n===void 0&&(n=!1),a===void 0&&(a=!1);var l;typeof t=="string"?l=e.document.querySelector(t):l=t;var u=Object.keys(r.getFontList()),f=r.scaleFactor(),p=[],y=[],x=[];if(!l)return console.error("Html table could not be found with input: ",t),{head:p,body:y,foot:x};for(var g=0;g<l.rows.length;g++){var P=l.rows[g],C=(h=(i=P?.parentElement)===null||i===void 0?void 0:i.tagName)===null||h===void 0?void 0:h.toLowerCase(),j=Z2(u,f,e,P,n,a);j&&(C==="thead"?p.push(j):C==="tfoot"?x.push(j):y.push(j))}return{head:p,body:y,foot:x}}function Z2(r,t,e,n,a,i){for(var h=new uf(n),l=0;l<n.cells.length;l++){var u=n.cells[l],f=e.getComputedStyle(u);if(a||f.display!=="none"){var p=void 0;i&&(p=K2(r,u,t,f,e)),h.push({rowSpan:u.rowSpan,colSpan:u.colSpan,styles:p,_element:u,content:Q2(u)})}}var y=e.getComputedStyle(n);if(h.length>0&&(a||y.display!=="none"))return h}function Q2(r){var t=r.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map(function(e){return e.trim()}).join(`
|
|
194
|
-
`),t.innerText||t.textContent||""}function t5(r,t,e){for(var n=0,a=[r,t,e];n<a.length;n++){var i=a[n];i&&typeof i!="object"&&console.error("The options parameter should be of type object, is: "+typeof i),i.startY&&typeof i.startY!="number"&&(console.error("Invalid value for startY option",i.startY),delete i.startY)}}function jn(r,t,e,n,a){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(r),h=1;h<arguments.length;h++){var l=arguments[h];if(l!=null)for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i}function gf(r,t){var e=new Xi(r),n=e.getDocumentOptions(),a=e.getGlobalOptions();t5(a,n,t);var i=jn({},a,n,t),h;typeof window<"u"&&(h=window);var l=e5(a,n,t),u=r5(a,n,t),f=n5(e,i),p=a5(e,i,h);return{id:t.tableId,content:p,hooks:u,styles:l,settings:f}}function e5(r,t,e){for(var n={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(u){if(u==="columnStyles"){var f=r[u],p=t[u],y=e[u];n.columnStyles=jn({},f,p,y)}else{var x=[r,t,e],g=x.map(function(P){return P[u]||{}});n[u]=jn({},g[0],g[1],g[2])}},i=0,h=Object.keys(n);i<h.length;i++){var l=h[i];a(l)}return n}function r5(r,t,e){for(var n=[r,t,e],a={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},i=0,h=n;i<h.length;i++){var l=h[i];l.didParseCell&&a.didParseCell.push(l.didParseCell),l.willDrawCell&&a.willDrawCell.push(l.willDrawCell),l.didDrawCell&&a.didDrawCell.push(l.didDrawCell),l.willDrawPage&&a.willDrawPage.push(l.willDrawPage),l.didDrawPage&&a.didDrawPage.push(l.didDrawPage)}return a}function n5(r,t){var e,n,a,i,h,l,u,f,p,y,x,g,P=jo(t.margin,40/r.scaleFactor()),C=(e=i5(r,t.startY))!==null&&e!==void 0?e:P.top,j;t.showFoot===!0?j="everyPage":t.showFoot===!1?j="never":j=(n=t.showFoot)!==null&&n!==void 0?n:"everyPage";var S;t.showHead===!0?S="everyPage":t.showHead===!1?S="never":S=(a=t.showHead)!==null&&a!==void 0?a:"everyPage";var W=(i=t.useCss)!==null&&i!==void 0?i:!1,z=t.theme||(W?"plain":"striped"),M=!!t.horizontalPageBreak,at=(h=t.horizontalPageBreakRepeat)!==null&&h!==void 0?h:null;return{includeHiddenHtml:(l=t.includeHiddenHtml)!==null&&l!==void 0?l:!1,useCss:W,theme:z,startY:C,margin:P,pageBreak:(u=t.pageBreak)!==null&&u!==void 0?u:"auto",rowPageBreak:(f=t.rowPageBreak)!==null&&f!==void 0?f:"auto",tableWidth:(p=t.tableWidth)!==null&&p!==void 0?p:"auto",showHead:S,showFoot:j,tableLineWidth:(y=t.tableLineWidth)!==null&&y!==void 0?y:0,tableLineColor:(x=t.tableLineColor)!==null&&x!==void 0?x:200,horizontalPageBreak:M,horizontalPageBreakRepeat:at,horizontalPageBreakBehaviour:(g=t.horizontalPageBreakBehaviour)!==null&&g!==void 0?g:"afterAllRows"}}function i5(r,t){var e=r.getLastAutoTable(),n=r.scaleFactor(),a=r.pageNumber(),i=!1;if(e&&e.startPageNumber){var h=e.startPageNumber+e.pageNumber-1;i=h===a}return typeof t=="number"?t:(t==null||t===!1)&&i&&e?.finalY!=null?e.finalY+20/n:null}function a5(r,t,e){var n=t.head||[],a=t.body||[],i=t.foot||[];if(t.html){var h=t.includeHiddenHtml;if(e){var l=pf(r,t.html,e,h,t.useCss)||{};n=l.head||n,a=l.body||n,i=l.foot||n}else console.error("Cannot parse html in non browser environment")}var u=t.columns||o5(n,a,i);return{columns:u,head:n,body:a,foot:i}}function o5(r,t,e){var n=r[0]||t[0]||e[0]||[],a=[];return Object.keys(n).filter(function(i){return i!=="_element"}).forEach(function(i){var h=1,l;Array.isArray(n)?l=n[parseInt(i)]:l=n[i],typeof l=="object"&&!Array.isArray(l)&&(h=l?.colSpan||1);for(var u=0;u<h;u++){var f=void 0;Array.isArray(n)?f=a.length:f=i+(u>0?"_".concat(u):"");var p={dataKey:f};a.push(p)}}),a}var Zs=(function(){function r(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()}return r})(),s5=(function(r){lf(t,r);function t(e,n,a,i,h,l){var u=r.call(this,e,n,l)||this;return u.cell=a,u.row=i,u.column=h,u.section=i.section,u}return t})(Zs),l5=(function(){function r(t,e){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return r.prototype.getHeadHeight=function(t){return this.head.reduce(function(e,n){return e+n.getMaxCellHeight(t)},0)},r.prototype.getFootHeight=function(t){return this.foot.reduce(function(e,n){return e+n.getMaxCellHeight(t)},0)},r.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},r.prototype.callCellHooks=function(t,e,n,a,i,h){for(var l=0,u=e;l<u.length;l++){var f=u[l],p=new s5(t,this,n,a,i,h),y=f(p)===!1;if(n.text=Array.isArray(n.text)?n.text:[n.text],y)return!1}return!0},r.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var n=0,a=this.hooks.didDrawPage;n<a.length;n++){var i=a[n];i(new Zs(t,this,e))}},r.prototype.callWillDrawPageHooks=function(t,e){for(var n=0,a=this.hooks.willDrawPage;n<a.length;n++){var i=a[n];i(new Zs(t,this,e))}},r.prototype.getWidth=function(t){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var e=this.columns.reduce(function(a,i){return a+i.wrappedWidth},0);return e}else{var n=this.settings.margin;return t-n.left-n.right}},r})(),vf=(function(){function r(t,e,n,a,i){i===void 0&&(i=!1),this.height=0,this.raw=t,t instanceof uf&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=n,this.cells=a,this.spansMultiplePages=i}return r.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce(function(n,a){var i;return Math.max(n,((i=e.cells[a.index])===null||i===void 0?void 0:i.height)||0)},0)},r.prototype.hasRowSpan=function(t){var e=this;return t.filter(function(n){var a=e.cells[n.index];return a?a.rowSpan>1:!1}).length>0},r.prototype.canEntireRowFit=function(t,e){return this.getMaxCellHeight(e)<=t},r.prototype.getMinimumRowHeight=function(t,e){var n=this;return t.reduce(function(a,i){var h=n.cells[i.index];if(!h)return 0;var l=e.getLineHeight(h.styles.fontSize),u=h.padding("vertical"),f=u+l;return f>a?f:a},0)},r})(),mf=(function(){function r(t,e,n){var a;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=n,this.raw=t;var i=t;t!=null&&typeof t=="object"&&!Array.isArray(t)?(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,i=(a=t.content)!==null&&a!==void 0?a:t,t._element&&(this.raw=t._element)):(this.rowSpan=1,this.colSpan=1);var h=i!=null?""+i:"",l=/\r\n|\r|\n/g;this.text=h.split(l)}return r.prototype.getTextPos=function(){var t;if(this.styles.valign==="top")t=this.y+this.padding("top");else if(this.styles.valign==="bottom")t=this.y+this.height-this.padding("bottom");else{var e=this.height-this.padding("vertical");t=this.y+e/2+this.padding("top")}var n;if(this.styles.halign==="right")n=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var a=this.width-this.padding("horizontal");n=this.x+a/2+this.padding("left")}else n=this.x+this.padding("left");return{x:n,y:t}},r.prototype.getContentHeight=function(t,e){e===void 0&&(e=1.15);var n=Array.isArray(this.text)?this.text.length:1,a=this.styles.fontSize/t*e,i=n*a+this.padding("vertical");return Math.max(i,this.styles.minCellHeight)},r.prototype.padding=function(t){var e=jo(this.styles.cellPadding,0);return t==="vertical"?e.top+e.bottom:t==="horizontal"?e.left+e.right:e[t]},r})(),u5=(function(){function r(t,e,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=n}return r.prototype.getMaxCustomCellWidth=function(t){for(var e=0,n=0,a=t.allRows();n<a.length;n++){var i=a[n],h=i.cells[this.index];h&&typeof h.styles.cellWidth=="number"&&(e=Math.max(e,h.styles.cellWidth))}return e},r})();function h5(r,t){f5(r,t);var e=[],n=0;t.columns.forEach(function(i){var h=i.getMaxCustomCellWidth(t);h?i.width=h:(i.width=i.wrappedWidth,e.push(i)),n+=i.width});var a=t.getWidth(r.pageSize().width)-n;a&&(a=Qs(e,a,function(i){return Math.max(i.minReadableWidth,i.minWidth)})),a&&(a=Qs(e,a,function(i){return i.minWidth})),a=Math.abs(a),!t.settings.horizontalPageBreak&&a>.1/r.scaleFactor()&&(a=a<1?a:Math.round(a),console.warn("Of the table content, ".concat(a," units width could not fit page"))),d5(t),p5(t,r),c5(t)}function f5(r,t){var e=r.scaleFactor(),n=t.settings.horizontalPageBreak,a=cf(r,t);t.allRows().forEach(function(i){for(var h=0,l=t.columns;h<l.length;h++){var u=l[h],f=i.cells[u.index];if(f){var p=t.hooks.didParseCell;t.callCellHooks(r,p,f,i,u,null);var y=f.padding("horizontal");f.contentWidth=Fo(f.text,f.styles,r)+y;var x=Fo(f.text.join(" ").split(/[^\S\u00A0]+/),f.styles,r);if(f.minReadableWidth=x+f.padding("horizontal"),typeof f.styles.cellWidth=="number")f.minWidth=f.styles.cellWidth,f.wrappedWidth=f.styles.cellWidth;else if(f.styles.cellWidth==="wrap"||n===!0)f.contentWidth>a?(f.minWidth=a,f.wrappedWidth=a):(f.minWidth=f.contentWidth,f.wrappedWidth=f.contentWidth);else{var g=10/e;f.minWidth=f.styles.minCellWidth||g,f.wrappedWidth=f.contentWidth,f.minWidth>f.wrappedWidth&&(f.wrappedWidth=f.minWidth)}}}}),t.allRows().forEach(function(i){for(var h=0,l=t.columns;h<l.length;h++){var u=l[h],f=i.cells[u.index];if(f&&f.colSpan===1)u.wrappedWidth=Math.max(u.wrappedWidth,f.wrappedWidth),u.minWidth=Math.max(u.minWidth,f.minWidth),u.minReadableWidth=Math.max(u.minReadableWidth,f.minReadableWidth);else{var p=t.styles.columnStyles[u.dataKey]||t.styles.columnStyles[u.index]||{},y=p.cellWidth||p.minCellWidth;y&&typeof y=="number"&&(u.minWidth=y,u.wrappedWidth=y)}f&&(f.colSpan>1&&!u.minWidth&&(u.minWidth=f.minWidth),f.colSpan>1&&!u.wrappedWidth&&(u.wrappedWidth=f.minWidth))}})}function Qs(r,t,e){for(var n=t,a=r.reduce(function(g,P){return g+P.wrappedWidth},0),i=0;i<r.length;i++){var h=r[i],l=h.wrappedWidth/a,u=n*l,f=h.width+u,p=e(h),y=f<p?p:f;t-=y-h.width,h.width=y}if(t=Math.round(t*1e10)/1e10,t){var x=r.filter(function(g){return t<0?g.width>e(g):!0});x.length&&(t=Qs(x,t,e))}return t}function c5(r){for(var t={},e=1,n=r.allRows(),a=0;a<n.length;a++)for(var i=n[a],h=0,l=r.columns;h<l.length;h++){var u=l[h],f=t[u.index];if(e>1)e--,delete i.cells[u.index];else if(f)f.cell.height+=i.height,e=f.cell.colSpan,delete i.cells[u.index],f.left--,f.left<=1&&delete t[u.index];else{var p=i.cells[u.index];if(!p)continue;if(p.height=i.height,p.rowSpan>1){var y=n.length-a,x=p.rowSpan>y?y:p.rowSpan;t[u.index]={cell:p,left:x,row:i}}}}}function d5(r){for(var t=r.allRows(),e=0;e<t.length;e++)for(var n=t[e],a=null,i=0,h=0,l=0;l<r.columns.length;l++){var u=r.columns[l];if(h-=1,h>1&&r.columns[l+1])i+=u.width,delete n.cells[u.index];else if(a){var f=a;delete n.cells[u.index],a=null,f.width=u.width+i}else{var f=n.cells[u.index];if(!f)continue;if(h=f.colSpan,i=0,f.colSpan>1){a=f,i+=u.width;continue}f.width=u.width+i}}}function p5(r,t){for(var e={count:0,height:0},n=0,a=r.allRows();n<a.length;n++){for(var i=a[n],h=0,l=r.columns;h<l.length;h++){var u=l[h],f=i.cells[u.index];if(f){t.applyStyles(f.styles,!0);var p=f.width-f.padding("horizontal");if(f.styles.overflow==="linebreak")f.text=t.splitTextToSize(f.text,p+1/t.scaleFactor(),{fontSize:f.styles.fontSize});else if(f.styles.overflow==="ellipsize")f.text=uh(f.text,p,f.styles,t,"...");else if(f.styles.overflow==="hidden")f.text=uh(f.text,p,f.styles,t,"");else if(typeof f.styles.overflow=="function"){var y=f.styles.overflow(f.text,p);typeof y=="string"?f.text=[y]:f.text=y}f.contentHeight=f.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var x=f.contentHeight/f.rowSpan;f.rowSpan>1&&e.count*e.height<x*f.rowSpan?e={height:x,count:f.rowSpan}:e&&e.count>0&&e.height>x&&(x=e.height),x>i.height&&(i.height=x)}}e.count--}}function uh(r,t,e,n,a){return r.map(function(i){return g5(i,t,e,n,a)})}function g5(r,t,e,n,a){var i=1e4*n.scaleFactor();if(t=Math.ceil(t*i)/i,t>=Fo(r,e,n))return r;for(;t<Fo(r+a,e,n)&&!(r.length<=1);)r=r.substring(0,r.length-1);return r.trim()+a}function bf(r,t){var e=new Xi(r),n=v5(t,e.scaleFactor()),a=new l5(t,n);return h5(e,a),e.applyStyles(e.userStyles),a}function v5(r,t){var e=r.content,n=b5(e.columns);if(e.head.length===0){var a=hh(n,"head");a&&e.head.push(a)}if(e.foot.length===0){var a=hh(n,"foot");a&&e.foot.push(a)}var i=r.settings.theme,h=r.styles;return{columns:n,head:Rs("head",e.head,n,h,i,t),body:Rs("body",e.body,n,h,i,t),foot:Rs("foot",e.foot,n,h,i,t)}}function Rs(r,t,e,n,a,i){var h={},l=t.map(function(u,f){for(var p=0,y={},x=0,g=0,P=0,C=e;P<C.length;P++){var j=C[P];if(h[j.index]==null||h[j.index].left===0)if(g===0){var S=void 0;Array.isArray(u)?S=u[j.index-x-p]:S=u[j.dataKey];var W={};typeof S=="object"&&!Array.isArray(S)&&(W=S?.styles||{});var z=y5(r,j,f,a,n,i,W),M=new mf(S,z,r);y[j.dataKey]=M,y[j.index]=M,g=M.colSpan-1,h[j.index]={left:M.rowSpan-1,times:g}}else g--,x++;else h[j.index].left--,g=h[j.index].times,p++}return new vf(u,f,r,y)});return l}function hh(r,t){var e={};return r.forEach(function(n){if(n.raw!=null){var a=m5(t,n.raw);a!=null&&(e[n.dataKey]=a)}}),Object.keys(e).length>0?e:null}function m5(r,t){if(r==="head"){if(typeof t=="object")return t.header||null;if(typeof t=="string"||typeof t=="number")return t}else if(r==="foot"&&typeof t=="object")return t.footer;return null}function b5(r){return r.map(function(t,e){var n,a;return typeof t=="object"?a=(n=t.dataKey)!==null&&n!==void 0?n:e:a=e,new u5(a,t,e)})}function y5(r,t,e,n,a,i,h){var l=J2(n),u;r==="head"?u=a.headStyles:r==="body"?u=a.bodyStyles:r==="foot"&&(u=a.footStyles);var f=jn({},l.table,l[r],a.styles,u),p=a.columnStyles[t.dataKey]||a.columnStyles[t.index]||{},y=r==="body"?p:{},x=r==="body"&&e%2===0?jn({},l.alternateRow,a.alternateRowStyles):{},g=Y2(i),P=jn({},g,f,x,y);return jn(P,h)}function w5(r,t,e){var n;e===void 0&&(e={});var a=cf(r,t),i=new Map,h=[],l=[],u=[];Array.isArray(t.settings.horizontalPageBreakRepeat)?u=t.settings.horizontalPageBreakRepeat:(typeof t.settings.horizontalPageBreakRepeat=="string"||typeof t.settings.horizontalPageBreakRepeat=="number")&&(u=[t.settings.horizontalPageBreakRepeat]),u.forEach(function(x){var g=t.columns.find(function(P){return P.dataKey===x||P.index===x});g&&!i.has(g.index)&&(i.set(g.index,!0),h.push(g.index),l.push(t.columns[g.index]),a-=g.wrappedWidth)});for(var f=!0,p=(n=e?.start)!==null&&n!==void 0?n:0;p<t.columns.length;){if(i.has(p)){p++;continue}var y=t.columns[p].wrappedWidth;if(f||a>=y)f=!1,h.push(p),l.push(t.columns[p]),a-=y;else break;p++}return{colIndexes:h,columns:l,lastIndex:p-1}}function x5(r,t){for(var e=[],n=0;n<t.columns.length;n++){var a=w5(r,t,{start:n});a.columns.length&&(e.push(a),n=a.lastIndex)}return e}function yf(r,t){var e=t.settings,n=e.startY,a=e.margin,i={x:a.left,y:n},h=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),l=n+a.bottom+h;if(e.pageBreak==="avoid"){var u=t.body,f=u.reduce(function(x,g){return x+g.height},0);l+=f}var p=new Xi(r);(e.pageBreak==="always"||e.startY!=null&&l>p.pageSize().height)&&(xf(p),i.y=a.top),t.callWillDrawPageHooks(p,i);var y=jn({},i);t.startPageNumber=p.pageNumber(),e.horizontalPageBreak?A5(p,t,y,i):(p.applyStyles(p.userStyles),(e.showHead==="firstPage"||e.showHead==="everyPage")&&t.head.forEach(function(x){return Bn(p,t,x,i,t.columns)}),p.applyStyles(p.userStyles),t.body.forEach(function(x,g){var P=g===t.body.length-1;Io(p,t,x,P,y,i,t.columns)}),p.applyStyles(p.userStyles),(e.showFoot==="lastPage"||e.showFoot==="everyPage")&&t.foot.forEach(function(x){return Bn(p,t,x,i,t.columns)})),hf(p,t,y,i),t.callEndPageHooks(p,i),t.finalY=i.y,r.lastAutoTable=t,p.applyStyles(p.userStyles)}function A5(r,t,e,n){var a=x5(r,t),i=t.settings;if(i.horizontalPageBreakBehaviour==="afterAllRows")a.forEach(function(f,p){r.applyStyles(r.userStyles),p>0?Ia(r,t,e,n,f.columns,!0):fh(r,t,n,f.columns),_5(r,t,e,n,f.columns),Ts(r,t,n,f.columns)});else for(var h=-1,l=a[0],u=function(){var f=h;if(l){r.applyStyles(r.userStyles);var p=l.columns;h>=0?Ia(r,t,e,n,p,!0):fh(r,t,n,p),f=ch(r,t,h+1,n,p),Ts(r,t,n,p)}var y=f-h;a.slice(1).forEach(function(x){r.applyStyles(r.userStyles),Ia(r,t,e,n,x.columns,!0),ch(r,t,h+1,n,x.columns,y),Ts(r,t,n,x.columns)}),h=f};h<t.body.length-1;)u()}function fh(r,t,e,n){var a=t.settings;r.applyStyles(r.userStyles),(a.showHead==="firstPage"||a.showHead==="everyPage")&&t.head.forEach(function(i){return Bn(r,t,i,e,n)})}function _5(r,t,e,n,a){r.applyStyles(r.userStyles),t.body.forEach(function(i,h){var l=h===t.body.length-1;Io(r,t,i,l,e,n,a)})}function ch(r,t,e,n,a,i){r.applyStyles(r.userStyles),i=i??t.body.length;var h=Math.min(e+i,t.body.length),l=-1;return t.body.slice(e,h).forEach(function(u,f){var p=e+f===t.body.length-1,y=wf(r,t,p,n);u.canEntireRowFit(y,a)&&(Bn(r,t,u,n,a),l=e+f)}),l}function Ts(r,t,e,n){var a=t.settings;r.applyStyles(r.userStyles),(a.showFoot==="lastPage"||a.showFoot==="everyPage")&&t.foot.forEach(function(i){return Bn(r,t,i,e,n)})}function N5(r,t,e){var n=e.getLineHeight(r.styles.fontSize),a=r.padding("vertical"),i=Math.floor((t-a)/n);return Math.max(0,i)}function L5(r,t,e,n){var a={};r.spansMultiplePages=!0,r.height=0;for(var i=0,h=0,l=e.columns;h<l.length;h++){var u=l[h],f=r.cells[u.index];if(f){Array.isArray(f.text)||(f.text=[f.text]);var p=new mf(f.raw,f.styles,f.section);p=jn(p,f),p.text=[];var y=N5(f,t,n);f.text.length>y&&(p.text=f.text.splice(y,f.text.length));var x=n.scaleFactor(),g=n.getLineHeightFactor();f.contentHeight=f.getContentHeight(x,g),f.contentHeight>=t&&(f.contentHeight=t,p.styles.minCellHeight-=t),f.contentHeight>r.height&&(r.height=f.contentHeight),p.contentHeight=p.getContentHeight(x,g),p.contentHeight>i&&(i=p.contentHeight),a[u.index]=p}}var P=new vf(r.raw,-1,r.section,a,!0);P.height=i;for(var C=0,j=e.columns;C<j.length;C++){var u=j[C],p=P.cells[u.index];p&&(p.height=P.height);var f=r.cells[u.index];f&&(f.height=r.height)}return P}function S5(r,t,e,n){var a=r.pageSize().height,i=n.settings.margin,h=i.top+i.bottom,l=a-h;t.section==="body"&&(l-=n.getHeadHeight(n.columns)+n.getFootHeight(n.columns));var u=t.getMinimumRowHeight(n.columns,r),f=u<e;if(u>l)return console.error("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!f)return!1;var p=t.hasRowSpan(n.columns),y=t.getMaxCellHeight(n.columns)>l;return y?(p&&console.error("The content of row ".concat(t.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(p||n.settings.rowPageBreak==="avoid")}function Io(r,t,e,n,a,i,h){var l=wf(r,t,n,i);if(e.canEntireRowFit(l,h))Bn(r,t,e,i,h);else if(S5(r,e,l,t)){var u=L5(e,l,t,r);Bn(r,t,e,i,h),Ia(r,t,a,i,h),Io(r,t,u,n,a,i,h)}else Ia(r,t,a,i,h),Io(r,t,e,n,a,i,h)}function Bn(r,t,e,n,a){n.x=t.settings.margin.left;for(var i=0,h=a;i<h.length;i++){var l=h[i],u=e.cells[l.index];if(!u){n.x+=l.width;continue}r.applyStyles(u.styles),u.x=n.x,u.y=n.y;var f=t.callCellHooks(r,t.hooks.willDrawCell,u,e,l,n);if(f===!1){n.x+=l.width;continue}k5(r,u,n);var p=u.getTextPos();sf(u.text,p.x,p.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},r.getDocument()),t.callCellHooks(r,t.hooks.didDrawCell,u,e,l,n),n.x+=l.width}n.y+=e.height}function k5(r,t,e){var n=t.styles;if(r.getDocument().setFillColor(r.getDocument().getFillColor()),typeof n.lineWidth=="number"){var a=ff(n.lineWidth,n.fillColor);a&&r.rect(t.x,e.y,t.width,t.height,a)}else typeof n.lineWidth=="object"&&(n.fillColor&&r.rect(t.x,e.y,t.width,t.height,"F"),P5(r,t,e,n.lineWidth))}function P5(r,t,e,n){var a,i,h,l;n.top&&(a=e.x,i=e.y,h=e.x+t.width,l=e.y,n.right&&(h+=.5*n.right),n.left&&(a-=.5*n.left),u(n.top,a,i,h,l)),n.bottom&&(a=e.x,i=e.y+t.height,h=e.x+t.width,l=e.y+t.height,n.right&&(h+=.5*n.right),n.left&&(a-=.5*n.left),u(n.bottom,a,i,h,l)),n.left&&(a=e.x,i=e.y,h=e.x,l=e.y+t.height,n.top&&(i-=.5*n.top),n.bottom&&(l+=.5*n.bottom),u(n.left,a,i,h,l)),n.right&&(a=e.x+t.width,i=e.y,h=e.x+t.width,l=e.y+t.height,n.top&&(i-=.5*n.top),n.bottom&&(l+=.5*n.bottom),u(n.right,a,i,h,l));function u(f,p,y,x,g){r.getDocument().setLineWidth(f),r.getDocument().line(p,y,x,g,"S")}}function wf(r,t,e,n){var a=t.settings.margin.bottom,i=t.settings.showFoot;return(i==="everyPage"||i==="lastPage"&&e)&&(a+=t.getFootHeight(t.columns)),r.pageSize().height-n.y-a}function Ia(r,t,e,n,a,i){a===void 0&&(a=[]),i===void 0&&(i=!1),r.applyStyles(r.userStyles),t.settings.showFoot==="everyPage"&&!i&&t.foot.forEach(function(l){return Bn(r,t,l,n,a)}),t.callEndPageHooks(r,n);var h=t.settings.margin;hf(r,t,e,n),xf(r),t.pageNumber++,n.x=h.left,n.y=h.top,e.y=h.top,t.callWillDrawPageHooks(r,n),t.settings.showHead==="everyPage"&&(t.head.forEach(function(l){return Bn(r,t,l,n,a)}),r.applyStyles(r.userStyles))}function xf(r){var t=r.pageNumber();r.setPage(t+1);var e=r.pageNumber();return e===t?(r.addPage(),!0):!1}function C5(r){r.API.autoTable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],a=gf(this,n),i=bf(this,a);return yf(this,i),this},r.API.lastAutoTable=!1,r.API.autoTableText=function(t,e,n,a){sf(t,e,n,a,this)},r.API.autoTableSetDefaults=function(t){return Xi.setDefaults(t,this),this},r.autoTableSetDefaults=function(t,e){Xi.setDefaults(t,e)},r.API.autoTableHtmlToJson=function(t,e){var n;if(e===void 0&&(e=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var a=new Xi(this),i=pf(a,t,window,e,!1),h=i.head,l=i.body,u=((n=h[0])===null||n===void 0?void 0:n.map(function(f){return f.content}))||[];return{columns:u,rows:l,data:l}}}var Ms;function F5(r,t){var e=gf(r,t),n=bf(r,e);yf(r,n)}try{if(typeof window<"u"&&window){var dh=window,ph=dh.jsPDF||((Ms=dh.jspdf)===null||Ms===void 0?void 0:Ms.jsPDF);ph&&C5(ph)}}catch(r){console.error("Could not apply autoTable plugin",r)}exports.E=Rt;exports._typeof=me;exports.autoTable=F5;
|