@ianicdev/datatables2 0.9.9 → 0.10.0

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.
Files changed (37) hide show
  1. package/dist/{Columns-DxucHH-j.js → Columns-BVivQbA1.js} +1 -1
  2. package/dist/{Columns-CDLnbOfE.cjs → Columns-uuugU4i9.cjs} +1 -1
  3. package/dist/{Comparison-CHjrrN3c.cjs → Comparison-BNSlLRqf.cjs} +1 -1
  4. package/dist/{Comparison-CslFerQQ.js → Comparison-D6zByMKH.js} +1 -1
  5. package/dist/{Datepicker-CxvPF0zZ.cjs → Datepicker-B8PS_dQ1.cjs} +1 -1
  6. package/dist/{Datepicker-D8vwZ38h.js → Datepicker-DXbpHltW.js} +49 -49
  7. package/dist/{Download-DgYOV8mb.js → Download-BSWYh8Kp.js} +2 -2
  8. package/dist/{Download-D-ndjQ67.cjs → Download-CnCzctX1.cjs} +1 -1
  9. package/dist/{Options-D6Z-3lah.js → Options-1LMo1jYF.js} +1 -1
  10. package/dist/{Options-C-W6qrj1.cjs → Options-CB6BQtI-.cjs} +1 -1
  11. package/dist/{RefreshTable-c_tkU3fk.js → RefreshTable-DEXlcdI0.js} +2 -2
  12. package/dist/{RefreshTable-CPF3Vp4b.cjs → RefreshTable-DIwWSpaJ.cjs} +1 -1
  13. package/dist/{Search-CeLm1eyI.cjs → Search-BNaYhckX.cjs} +1 -1
  14. package/dist/{Search-Bx2AzB7t.js → Search-BsWYytSk.js} +2 -2
  15. package/dist/{Table-Z_rmozuI.js → Table-BMwdrPuC.js} +2 -2
  16. package/dist/{Table-CNmE3KW2.cjs → Table-CGDzgkKx.cjs} +1 -1
  17. package/dist/{TableServer-CBTrJ0vo.js → TableServer-DaBF1vxr.js} +3 -3
  18. package/dist/{TableServer-DNTtDYDl.cjs → TableServer-ZDSaEYRy.cjs} +1 -1
  19. package/dist/{cellRender-BViDgos4.js → cellRender-BuLj_AFK.js} +825 -813
  20. package/dist/cellRender-CYGQmmZC.cjs +1 -0
  21. package/dist/{dataTables-CMgBvCIf.js → dataTables-CxEnAUfF.js} +21 -22
  22. package/dist/{dataTables-DQ_kHodz.cjs → dataTables-P7hOrFAn.cjs} +1 -1
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/datatables2.css +1 -1
  26. package/dist/{index-CMZixazT.js → index-Bc0AtRk2.js} +1 -1
  27. package/dist/{index-MpbTiTYw.js → index-BjcvkMIS.js} +1470 -1653
  28. package/dist/index-DfTO4Zx6.cjs +1 -0
  29. package/dist/{index-DTbAXhZ7.cjs → index-VkGoAdXo.cjs} +1 -1
  30. package/dist/{index.es-DbLPWyn6.cjs → index.es-Ciudu1vj.cjs} +2 -2
  31. package/dist/{index.es-BXudRhtE.js → index.es-eRsZ1LFr.js} +10 -6
  32. package/dist/jspdf-B3ZoDzKb.cjs +79 -0
  33. package/dist/{jspdf-Dt---f5Z.js → jspdf-ooxm5O8S.js} +3905 -3893
  34. package/package.json +6 -6
  35. package/dist/cellRender-FnwSkEIM.cjs +0 -1
  36. package/dist/index-C3mP-9-I.cjs +0 -1
  37. package/dist/jspdf-DQdhUPLM.cjs +0 -79
@@ -1,79 +0,0 @@
1
- "use strict";function be(r){"@babel/helpers - typeof";return be=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},be(r)}var Zr=Uint8Array,Or=Uint16Array,ol=Int32Array,sl=new Zr([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]),ll=new Zr([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 Zr([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 Or(31),n=0;n<31;++n)e[n]=t+=1<<r[n-1];for(var a=new ol(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(sl,2),ac=vh.b,Vs=vh.r;ac[28]=258,Vs[258]=28;var oc=gh(ll,0),Kl=oc.r,Ys=new Or(32768);for(var Ie=0;Ie<32768;++Ie){var Kn=(Ie&43690)>>1|(Ie&21845)<<1;Kn=(Kn&52428)>>2|(Kn&13107)<<2,Kn=(Kn&61680)>>4|(Kn&3855)<<4,Ys[Ie]=((Kn&65280)>>8|(Kn&255)<<8)>>1}var Ia=(function(r,t,e){for(var n=r.length,a=0,i=new Or(t);a<n;++a)r[a]&&++i[r[a]-1];var h=new Or(t);for(a=1;a<t;++a)h[a]=h[a-1]+i[a-1]<<1;var l;if(e){l=new Or(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],w=h[r[a]-1]++<<p,x=w|(1<<p)-1;w<=x;++w)l[Ys[w]>>u]=f}else for(l=new Or(n),a=0;a<n;++a)r[a]&&(l[a]=Ys[h[r[a]-1]++]>>15-r[a]);return l}),Si=new Zr(288);for(var Ie=0;Ie<144;++Ie)Si[Ie]=8;for(var Ie=144;Ie<256;++Ie)Si[Ie]=9;for(var Ie=256;Ie<280;++Ie)Si[Ie]=7;for(var Ie=280;Ie<288;++Ie)Si[Ie]=8;var jo=new Zr(32);for(var Ie=0;Ie<32;++Ie)jo[Ie]=5;var sc=Ia(Si,9,0),lc=Ia(jo,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 Zr(r.subarray(t,e))},kn=function(r,t,e){e<<=t&7;var n=t/8|0;r[n]|=e,r[n+1]|=e>>8},Ca=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},xs=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:wh,l:0};if(a==1){var h=new Zr(e[0].s+1);return h[e[0].s]=1,{t:h,l:1}}e.sort(function(it,mt){return it.f-mt.f}),e.push({s:-1,f:25001});var l=e[0],u=e[1],f=0,p=1,w=2;for(e[0]={s:-1,f:l.f+u.f,l,r:u};p!=a-1;)l=e[e[f].f<e[w].f?f++:w++],u=e[f!=p&&e[f].f<e[w].f?f++:w++],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 Or(x+1),P=Js(e[p-1],g,0);if(P>t){var n=0,C=0,j=P-t,S=1<<j;for(i.sort(function(mt,pt){return g[pt.s]-g[mt.s]||mt.f-pt.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 G=i[n].s;g[G]<t?C-=1<<t-g[G]++-1:++n}for(;n>=0&&C;--n){var M=i[n].s;g[M]==t&&(--g[M],++C)}P=t}return{t:new Zr(g),l:P}},Js=function(r,t,e){return r.s==-1?Math.max(Js(r.l,t,e+1),Js(r.r,t,e+1)):t[r.s]=e},$l=function(r){for(var t=r.length;t&&!r[--t];);for(var e=new Or(++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}},Fa=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){kn(t,p++,e),++a[256];for(var w=xs(a,15),x=w.t,g=w.l,P=xs(i,15),C=P.t,j=P.l,S=$l(x),W=S.c,G=S.n,M=$l(C),it=M.c,mt=M.n,pt=new Or(19),K=0;K<W.length;++K)++pt[W[K]&31];for(var K=0;K<it.length;++K)++pt[it[K]&31];for(var T=xs(pt,7),Q=T.t,L=T.l,E=19;E>4&&!Q[Jl[E-1]];--E);var z=f+5<<3,U=Fa(a,Si)+Fa(i,jo)+h,nt=Fa(a,x)+Fa(i,C)+h+14+3*E+Fa(pt,Q)+2*pt[16]+3*pt[17]+7*pt[18];if(u>=0&&z<=U&&z<=nt)return bh(t,p,r.subarray(u,u+f));var lt,ht,et,ct;if(kn(t,p,1+(nt<U)),p+=2,nt<U){lt=Ia(x,g,0),ht=x,et=Ia(C,j,0),ct=C;var Nt=Ia(Q,L,0);kn(t,p,G-257),kn(t,p+5,mt-1),kn(t,p+10,E-4),p+=14;for(var K=0;K<E;++K)kn(t,p+3*K,Q[Jl[K]]);p+=3*E;for(var wt=[W,it],_=0;_<2;++_)for(var B=wt[_],K=0;K<B.length;++K){var R=B[K]&31;kn(t,p,Nt[R]),p+=Q[R],R>15&&(kn(t,p,B[K]>>5&127),p+=B[K]>>12)}}else lt=sc,ht=Si,et=lc,ct=jo;for(var K=0;K<l;++K){var V=n[K];if(V>255){var R=V>>18&31;Ca(t,p,lt[R+257]),p+=ht[R+257],R>7&&(kn(t,p,V>>23&31),p+=sl[R]);var J=V&31;Ca(t,p,et[J]),p+=ct[J],J>3&&(Ca(t,p,V>>5&8191),p+=ll[J])}else Ca(t,p,lt[V]),p+=ht[V]}return Ca(t,p,lt[256]),p+ht[256]},hc=new ol([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),wh=new Zr(0),fc=function(r,t,e,n,a,i){var h=i.z||r.length,l=new Zr(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 w=hc[t-1],x=w>>13,g=w&8191,P=(1<<e)-1,C=i.p||new Or(32768),j=i.h||new Or(P+1),S=Math.ceil(e/3),W=2*S,G=function(st){return(r[st]^r[st+1]<<S^r[st+2]<<W)&P},M=new ol(25e3),it=new Or(288),mt=new Or(32),pt=0,K=0,T=i.i||0,Q=0,L=i.w||0,E=0;T+2<h;++T){var z=G(T),U=T&32767,nt=j[z];if(C[U]=nt,j[z]=U,L<=T){var lt=h-T;if((pt>7e3||Q>24576)&&(lt>423||!f)){p=Xl(r,u,0,M,it,mt,K,Q,E,T-E,p),Q=pt=K=0,E=T;for(var ht=0;ht<286;++ht)it[ht]=0;for(var ht=0;ht<30;++ht)mt[ht]=0}var et=2,ct=0,Nt=g,wt=U-nt&32767;if(lt>2&&z==G(T-wt))for(var _=Math.min(x,lt)-1,B=Math.min(32767,T),R=Math.min(258,lt);wt<=B&&--Nt&&U!=nt;){if(r[T+et]==r[T+et-wt]){for(var V=0;V<R&&r[T+V]==r[T+V-wt];++V);if(V>et){if(et=V,ct=wt,V>_)break;for(var J=Math.min(wt,V-2),rt=0,ht=0;ht<J;++ht){var ot=T-wt+ht&32767,at=C[ot],vt=ot-at&32767;vt>rt&&(rt=vt,nt=ot)}}}U=nt,nt=C[U],wt+=U-nt&32767}if(ct){M[Q++]=268435456|Vs[et]<<18|Kl[ct];var At=Vs[et]&31,kt=Kl[ct]&31;K+=sl[At]+ll[kt],++it[257+At],++mt[kt],L=T+et,++pt}else M[Q++]=r[T],++it[r[T]]}}for(T=Math.max(T,L);T<h;++T)M[Q++]=r[T],++it[r[T]];p=Xl(r,u,f,M,it,mt,K,Q,E,T-E,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)},yh=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 Zr(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=yh();a.p(t.dictionary),xh(r,2,a.d())}};function Ks(r,t){t||(t={});var e=yh();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(wh,{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 wc(){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)||wc()}function tu(r,t="utf8"){return new TextDecoder(t).decode(r)}const yc=new TextEncoder;function xc(r){return yc.encode(r)}const Ac=1024*8,_c=(()=>{const r=new Uint8Array(4),t=new Uint32Array(r.buffer);return!((t[0]=1)&r[0])})(),As={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 ul{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 ul)&&(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=As[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 As[e](l.buffer);return this.offset+=n,u.reverse(),u}const h=new As[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 ta(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);ta(Cc);const Fc=new Array(_h*2);ta(Fc);const Ic=new Array(Pc);ta(Ic);const Ec=new Array(Lc-Nc+1);ta(Ec);const Oc=new Array(Ah);ta(Oc);const jc=new Array(_h);ta(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 $s=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 un=Tc,Xs={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 ja=new Uint8Array(256);for(let r=0;r<256;r++)ja[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;ja[254]=ja[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=ja[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+ja[r[e]]>t?e:t},Zs={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 wo=16209,Jc=16191;var Kc=function(t,e){let n,a,i,h,l,u,f,p,w,x,g,P,C,j,S,W,G,M,it,mt,pt,K,T,Q;const L=t.state;n=t.next_in,T=t.input,a=n+(t.avail_in-5),i=t.next_out,Q=t.output,h=i-(e-t.avail_out),l=i+(t.avail_out-257),u=L.dmax,f=L.wsize,p=L.whave,w=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),G=C[g&S];e:for(;;){if(M=G>>>24,g>>>=M,P-=M,M=G>>>16&255,M===0)Q[i++]=G&65535;else if(M&16){it=G&65535,M&=15,M&&(P<M&&(g+=T[n++]<<P,P+=8),it+=g&(1<<M)-1,g>>>=M,P-=M),P<15&&(g+=T[n++]<<P,P+=8,g+=T[n++]<<P,P+=8),G=j[g&W];r:for(;;){if(M=G>>>24,g>>>=M,P-=M,M=G>>>16&255,M&16){if(mt=G&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=wo;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=wo;break t}if(pt=0,K=x,w===0){if(pt+=f-M,M<it){it-=M;do Q[i++]=x[pt++];while(--M);pt=i-mt,K=Q}}else if(w<M){if(pt+=f+w-M,M-=w,M<it){it-=M;do Q[i++]=x[pt++];while(--M);if(pt=0,w<it){M=w,it-=M;do Q[i++]=x[pt++];while(--M);pt=i-mt,K=Q}}}else if(pt+=w-M,M<it){it-=M;do Q[i++]=x[pt++];while(--M);pt=i-mt,K=Q}for(;it>2;)Q[i++]=K[pt++],Q[i++]=K[pt++],Q[i++]=K[pt++],it-=3;it&&(Q[i++]=K[pt++],it>1&&(Q[i++]=K[pt++]))}else{pt=i-mt;do Q[i++]=Q[pt++],Q[i++]=Q[pt++],Q[i++]=Q[pt++],it-=3;while(it>2);it&&(Q[i++]=Q[pt++],it>1&&(Q[i++]=Q[pt++]))}}else if((M&64)===0){G=j[(G&65535)+(g&(1<<M)-1)];continue r}else{t.msg="invalid distance code",L.mode=wo;break t}break}}else if((M&64)===0){G=C[(G&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=wo;break t}break}}while(n<a&&i<l);it=P>>3,n-=it,P-=it<<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 Hi=15,eu=852,ru=592,nu=0,_s=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,w=0,x=0,g=0,P=0,C=0,j=0,S=0,W=0,G,M,it,mt,pt,K=null,T;const Q=new Uint16Array(Hi+1),L=new Uint16Array(Hi+1);let E=null,z,U,nt;for(f=0;f<=Hi;f++)Q[f]=0;for(p=0;p<n;p++)Q[t[e+p]]++;for(g=u,x=Hi;x>=1&&Q[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(w=1;w<x&&Q[w]===0;w++);for(g<w&&(g=w),j=1,f=1;f<=Hi;f++)if(j<<=1,j-=Q[f],j<0)return-1;if(j>0&&(r===nu||x!==1))return-1;for(L[1]=0,f=1;f<Hi;f++)L[f+1]=L[f]+Q[f];for(p=0;p<n;p++)t[e+p]!==0&&(h[L[t[e+p]]++]=p);if(r===nu?(K=E=h,T=20):r===_s?(K=$c,E=Xc,T=257):(K=Zc,E=Qc,T=0),W=0,p=0,f=w,pt=i,P=g,C=0,it=-1,S=1<<g,mt=S-1,r===_s&&S>eu||r===iu&&S>ru)return 1;for(;;){z=f-C,h[p]+1<T?(U=0,nt=h[p]):h[p]>=T?(U=E[h[p]-T],nt=K[h[p]-T]):(U=96,nt=0),G=1<<f-C,M=1<<P,w=M;do M-=G,a[pt+(W>>C)+M]=z<<24|U<<16|nt|0;while(M!==0);for(G=1<<f-1;W&G;)G>>=1;if(G!==0?(W&=G-1,W+=G):W=0,p++,--Q[f]===0){if(f===x)break;f=t[e+h[p]]}if(f>g&&(W&mt)!==it){for(C===0&&(C=g),pt+=w,P=f-C,j=1<<P;P+C<x&&(j-=Q[P+C],!(j<=0));)P++,j<<=1;if(S+=1<<P,r===_s&&S>eu||r===iu&&S>ru)return 1;it=W&mt,a[it]=g<<24|P<<16|pt-i|0}}return W!==0&&(a[pt+W]=f-C<<24|64<<16|0),l.bits=g,0};var Ea=t1;const e1=0,kh=1,Ph=2,{Z_FINISH:au,Z_BLOCK:r1,Z_TREES:yo,Z_OK:ki,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,qo=16180,su=16181,lu=16182,uu=16183,hu=16184,fu=16185,cu=16186,du=16187,pu=16188,gu=16189,Bo=16190,Pn=16191,Ns=16192,vu=16193,Ls=16194,mu=16195,bu=16196,wu=16197,yu=16198,xo=16199,Ao=16200,xu=16201,Au=16202,_u=16203,Nu=16204,Lu=16205,Ss=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 Pi=r=>{if(!r)return 1;const t=r.state;return!t||t.strm!==r||t.mode<qo||t.mode>Eh?1:0},Oh=r=>{if(Pi(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=qo,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,ki},jh=r=>{if(Pi(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(Pi(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=qo;const n=Bh(r,t);return n!==ki&&(r.state=null),n},f1=r=>Dh(r,u1);let Cu=!0,ks,Ps;const c1=r=>{if(Cu){ks=new Int32Array(512),Ps=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(Ea(kh,r.lens,0,288,ks,0,r.work,{bits:9}),t=0;t<32;)r.lens[t++]=5;Ea(Ph,r.lens,0,32,Ps,0,r.work,{bits:5}),Cu=!1}r.lencode=ks,r.lenbits=9,r.distcode=Ps,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,w,x,g,P,C,j=0,S,W,G,M,it,mt,pt,K;const T=new Uint8Array(4);let Q,L;const E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Pi(r)||!r.output||!r.input&&r.avail_in!==0)return Hr;e=r.state,e.mode===Pn&&(e.mode=Ns),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,w=l,x=u,K=ki;t:for(;;)switch(e.mode){case qo:if(e.wrap===0){e.mode=Ns;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=un(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,pt=(f&15)+8,e.wbits===0&&(e.wbits=pt),pt>15||pt>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:Pn,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=un(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=un(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=un(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=un(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&&(pt=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),pt)),e.flags&512&&e.wrap&4&&(e.check=un(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 pt=n[i+g++],e.head&&pt&&e.length<65536&&(e.head.name+=String.fromCharCode(pt));while(pt&&g<l);if(e.flags&512&&e.wrap&4&&(e.check=un(e.check,n,g,i)),l-=g,i+=g,pt)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 pt=n[i+g++],e.head&&pt&&e.length<65536&&(e.head.comment+=String.fromCharCode(pt));while(pt&&g<l);if(e.flags&512&&e.wrap&4&&(e.check=un(e.check,n,g,i)),l-=g,i+=g,pt)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=Pn;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=Bo;case Bo: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=Pn;case Pn:if(t===r1||t===yo)break t;case Ns:if(e.last){f>>>=p&7,p-=p&7,e.mode=Ss;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=xo,t===yo){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=Ls,t===yo)break t;case Ls: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=Pn;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=wu;case wu:for(;e.have<e.ncode;){for(;p<3;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}e.lens[E[e.have++]]=f&7,f>>>=3,p-=3}for(;e.have<19;)e.lens[E[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,Q={bits:e.lenbits},K=Ea(e1,e.lens,0,19,e.lencode,0,e.work,Q),e.lenbits=Q.bits,K){r.msg="invalid code lengths set",e.mode=Ee;break}e.have=0,e.mode=yu;case yu:for(;e.have<e.nlen+e.ndist;){for(;j=e.lencode[f&(1<<e.lenbits)-1],S=j>>>24,W=j>>>16&255,G=j&65535,!(S<=p);){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(G<16)f>>>=S,p-=S,e.lens[e.have++]=G;else{if(G===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}pt=e.lens[e.have-1],g=3+(f&3),f>>>=2,p-=2}else if(G===17){for(L=S+3;p<L;){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}f>>>=S,p-=S,pt=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,pt=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++]=pt}}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,Q={bits:e.lenbits},K=Ea(kh,e.lens,0,e.nlen,e.lencode,0,e.work,Q),e.lenbits=Q.bits,K){r.msg="invalid literal/lengths set",e.mode=Ee;break}if(e.distbits=6,e.distcode=e.distdyn,Q={bits:e.distbits},K=Ea(Ph,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,Q),e.distbits=Q.bits,K){r.msg="invalid distances set",e.mode=Ee;break}if(e.mode=xo,t===yo)break t;case xo:e.mode=Ao;case Ao: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===Pn&&(e.back=-1);break}for(e.back=0;j=e.lencode[f&(1<<e.lenbits)-1],S=j>>>24,W=j>>>16&255,G=j&65535,!(S<=p);){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if(W&&(W&240)===0){for(M=S,it=W,mt=G;j=e.lencode[mt+((f&(1<<M+it)-1)>>M)],S=j>>>24,W=j>>>16&255,G=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=G,W===0){e.mode=Lu;break}if(W&32){e.back=-1,e.mode=Pn;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,G=j&65535,!(S<=p);){if(l===0)break t;l--,f+=n[i++]<<p,p+=8}if((W&240)===0){for(M=S,it=W,mt=G;j=e.distcode[mt+((f&(1<<M+it)-1)>>M)],S=j>>>24,W=j>>>16&255,G=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=G,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=Ao);break;case Lu:if(u===0)break t;a[h++]=e.length,u--,e.mode=Ao;break;case Ss: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?un(e.check,a,x,h-x):$s(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:K=n1;break t;case Ee:K=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<Ss||t!==au))&&Rh(r,r.output,r.next_out,x-r.avail_out),w-=r.avail_in,x-=r.avail_out,r.total_in+=w,r.total_out+=x,e.total+=x,e.wrap&4&&x&&(r.adler=e.check=e.flags?un(e.check,a,x,r.next_out-x):$s(e.check,a,x,r.next_out-x)),r.data_type=e.bits+(e.last?64:0)+(e.mode===Pn?128:0)+(e.mode===xo||e.mode===Ls?256:0),(w===0&&x===0||t===au)&&K===ki&&(K=a1),K},p1=r=>{if(Pi(r))return Hr;let t=r.state;return t.window&&(t.window=null),r.state=null,ki},g1=(r,t)=>{if(Pi(r))return Hr;const e=r.state;return(e.wrap&2)===0?Hr:(e.head=t,t.done=!1,ki)},v1=(r,t)=>{const e=t.length;let n,a,i;return Pi(r)||(n=r.state,n.wrap!==0&&n.mode!==Bo)?Hr:n.mode===Bo&&(a=1,a=$s(a,t,e,0),a!==n.check)?Ch:(i=Rh(r,t,e,e),i?(n.mode=Ih,Fh):(n.havedict=1,ki))};var m1=jh,b1=Bh,w1=Oh,y1=f1,x1=Dh,A1=d1,_1=p1,N1=g1,L1=v1,S1="pako inflate (from Nodeca project)",Cn={inflateReset:m1,inflateReset2:b1,inflateResetKeep:w1,inflateInit:y1,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:Ba,Z_STREAM_END:Cs,Z_NEED_DICT:Fs,Z_STREAM_ERROR:I1,Z_DATA_ERROR:Fu,Z_MEM_ERROR:E1}=Nh;function Da(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=Cn.inflateInit2(this.strm,t.windowBits);if(e!==Ba)throw new Error(Xs[e]);if(this.header=new P1,Cn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Zs.string2buf(t.dictionary):Th.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Cn.inflateSetDictionary(this.strm,t.dictionary),e!==Ba)))throw new Error(Xs[e])}Da.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=Cn.inflate(e,h),i===Fs&&a&&(i=Cn.inflateSetDictionary(e,a),i===Ba?i=Cn.inflate(e,h):i===Fu&&(i=Fs));e.avail_in>0&&i===Cs&&e.state.wrap>0&&r[e.next_in]!==0;)Cn.inflateReset(e),i=Cn.inflate(e,h);switch(i){case I1:case Fu:case Fs:case E1:return this.onEnd(i),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||i===Cs))if(this.options.to==="string"){let u=Zs.utf8border(e.output,e.next_out),f=e.next_out-u,p=Zs.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===Ba&&l===0)){if(i===Cs)return i=Cn.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Da.prototype.onData=function(r){this.chunks.push(r)};Da.prototype.onEnd=function(r){r===Ba&&(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 Da(t);if(e.push(r),e.err)throw e.msg||Xs[e.err];return e.result}var j1=Da,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 w=h[p],x=Math.ceil((e-w.x)/w.xStep),g=Math.ceil((n-w.y)/w.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 G=new Uint8Array(P);H1(S,W,G,C,P,l),C.set(G);for(let M=0;M<x;M++){const it=w.x+M*w.xStep,mt=w.y+j*w.yStep;if(!(it>=e||mt>=n))for(let pt=0;pt<l;pt++)u[(mt*e+it)*l+pt]=G[M*l+pt]}}}if(i===16){const p=new Uint16Array(u.buffer);if(V1)for(let w=0;w<p.length;w++)p[w]=J1(p[w]);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,w,x;for(let g=0;g<n;g++){switch(w=t.subarray(p+1,p+1+l),x=u.subarray(g*l,(g+1)*l),t[p]){case 0:qh(w,x,l);break;case 1:Uh(w,x,l,h);break;case 2:zh(w,x,f,l);break;case 3:Hh(w,x,f,l,h);break;case 4:Wh(w,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 Po=Uint8Array.of(137,80,78,71,13,10,26,10);function Bu(r){if(!t2(r.readBytes(Po.length)))throw new Error("wrong PNG signature")}function t2(r){if(r.length<Po.length)return!1;for(let t=0;t<Po.length;t++)if(r[t]!==Po[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 Er={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Is={UNKNOWN:-1,DEFLATE:0},Du={UNKNOWN:-1,ADAPTIVE:0},Es={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},_o={NONE:0,BACKGROUND:1,PREVIOUS:2},Os={SOURCE:0,OVER:1};class l2 extends ul{_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=Is.UNKNOWN,this._filterMethod=Du.UNKNOWN,this._interlaceMethod=Es.UNKNOWN,this._colorType=Er.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 Er.GREYSCALE:n=1;break;case Er.TRUECOLOUR:n=3;break;case Er.INDEXED_COLOUR:n=1;break;case Er.GREYSCALE_ALPHA:n=2;break;case Er.TRUECOLOUR_ALPHA:n=4;break;case Er.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==Is.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 Er.GREYSCALE:case Er.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 Er.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 Er.UNKNOWN:case Er.GREYSCALE_ALPHA:case Er.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!==Is.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 _o.NONE:break;case _o.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 _o.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 Os.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 Os.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,w=f%(this._png.channels-1)===0?1:e.data[u+f],x=Math.floor(p*w+(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===Es.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===Es.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:_o.NONE,blendOp:Os.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()}var Vt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function js(){Vt.console&&typeof Vt.console.log=="function"&&Vt.console.log.apply(Vt.console,arguments)}var Se={log:js,warn:function(r){Vt.console&&(typeof Vt.console.warn=="function"?Vt.console.warn.apply(Vt.console,arguments):js.call(null,arguments))},error:function(r){Vt.console&&(typeof Vt.console.error=="function"?Vt.console.error.apply(Vt.console,arguments):js(r))}};function Bs(r,t,e){var n=new XMLHttpRequest;n.open("GET",r),n.responseType="blob",n.onload=function(){_i(n.response,t,e)},n.onerror=function(){Se.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 No(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 _i=Vt.saveAs||((typeof window>"u"?"undefined":be(window))!=="object"||window!==Vt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,t,e){var n=Vt.URL||Vt.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)?Bs(r,t,e):No(a,a.target="_blank"):No(a)):(a.href=n.createObjectURL(r),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){No(a)},0))}:"msSaveOrOpenBlob"in navigator?function(r,t,e){if(t=t||r.name||"download",typeof r=="string")if(Tu(r))Bs(r,t,e);else{var n=document.createElement("a");n.href=r,n.target="_blank",setTimeout(function(){No(n)})}else navigator.msSaveOrOpenBlob((function(a,i){return i===void 0?i={autoBom:!1}:be(i)!=="object"&&(Se.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 Bs(r,t,e);var a=r.type==="application/octet-stream",i=/constructor/i.test(Vt.HTMLElement)||Vt.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||a&&i)&&(typeof FileReader>"u"?"undefined":be(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=Vt.URL||Vt.webkitURL,f=u.createObjectURL(r);n?n.location=f:location.href=f,n=null,setTimeout(function(){u.revokeObjectURL(f)},4e4)}});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 Co=Vt.atob.bind(Vt),Mu=Vt.btoa.bind(Vt);function Ds(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]=Xn(e,r[0]),r[1]=Xn(n,r[1]),r[2]=Xn(a,r[2]),r[3]=Xn(i,r[3])}function Uo(r,t,e,n,a,i){return t=Xn(Xn(t,r),Xn(n,i)),Xn(t<<a|t>>>32-a,e)}function dr(r,t,e,n,a,i,h){return Uo(t&e|~t&n,r,t,a,i,h)}function pr(r,t,e,n,a,i,h){return Uo(t&n|e&~n,r,t,a,i,h)}function gr(r,t,e,n,a,i,h){return Uo(t^e^n,r,t,a,i,h)}function vr(r,t,e,n,a,i,h){return Uo(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)Ds(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(Ds(n,a),t=0;t<16;t++)a[t]=0;return a[14]=8*e,Ds(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 Qs(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 Xn(r,t){if(p2){var e=(65535&r)+(65535&t);return(r>>16)+(t>>16)+(e>>16)<<16|65535&e}return r+t&4294967295}function tl(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 w=t.length,x=0,g=0,P="";for(u=0;u<w;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}var Uu={print:4,modify:8,copy:16,"annot-forms":32};function Vi(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^NuŠAd\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=Qs(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=tl(this.encryptionKey,this.padding)}function Yi(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(be(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){Vt.console&&Se.error("jsPDF PubSub Error",l.message,l)}h[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Do(r){if(!(this instanceof Do))return new Do(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 Ni(r,t,e,n,a){if(!(this instanceof Ni))return new Ni(r,t,e,n,a);this.type=r==="axial"?2:3,this.coords=t,this.colors=e,Kh.call(this,n,a)}function Ji(r,t,e,n,a){if(!(this instanceof Ji))return new Ji(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;be(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 w=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",G="advanced",M=W;function it(){this.saveGraphicsState(),D(new Wt(Gt,0,0,-Gt,0,fi()*Gt).toString()+" cm"),this.setFontSize(this.getFontSize()/Gt),f="n",M=G}function mt(){this.restoreGraphicsState(),f="S",M=W}var pt=g.__private__.combineFontStyleAndFontWeight=function(c,m){if(c=="bold"&&m=="normal"||c=="bold"&&m==400||c=="normal"&&m=="italic"||c=="bold"&&m=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return m&&(c=m==400||m==="normal"?c==="italic"?"italic":"normal":m!=700&&m!=="bold"||c!=="normal"?(m==700?"bold":m)+""+c:"bold"),c};g.advancedAPI=function(c){var m=M===W;return m&&it.call(this),typeof c!="function"||(c(this),m&&mt.call(this)),this},g.compatAPI=function(c){var m=M===G;return m&&mt.call(this),typeof c!="function"||(c(this),m&&it.call(this)),this},g.isAdvancedAPI=function(){return M===G};var K,T=function(c){if(M!==G)throw new Error(c+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Q=g.roundToPrecision=g.__private__.roundToPrecision=function(c,m){var O=t||m;if(isNaN(c)||isNaN(O))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return c.toFixed(O).replace(/0+$/,"")};K=g.hpf=g.__private__.hpf=typeof u=="number"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(c,u)}:u==="smart"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(c,c>-1&&c<1?16:5)}:function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(c,16)};var L=g.f2=g.__private__.f2=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f2");return Q(c,2)},E=g.__private__.f3=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f3");return Q(c,3)},z=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===G?c:void 0},U=function(c){return z((function(m){return M===W?fi()-m:M===G?m:void 0})(c))};g.__private__.setPrecision=g.setPrecision=function(c){typeof parseInt(c,10)=="number"&&(t=parseInt(c,10))};var nt,lt="00000000000000000000000000000000",ht=g.__private__.getFileId=function(){return lt},et=g.__private__.setFileId=function(c){return lt=c!==void 0&&/^[a-fA-F0-9]{32}$/.test(c)?c.toUpperCase():lt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),p!==null&&(qe=new Vi(p.userPermissions,p.userPassword,p.ownerPassword,lt)),lt};g.setFileId=function(c){return et(c),this},g.getFileId=function(){return ht()};var ct=g.__private__.convertDateToPDFDate=function(c){var m=c.getTimezoneOffset(),O=m<0?"+":"-",q=Math.floor(Math.abs(m/60)),$=Math.abs(m%60),dt=[O,R(q),"'",R($),"'"].join("");return["D:",c.getFullYear(),R(c.getMonth()+1),R(c.getDate()),R(c.getHours()),R(c.getMinutes()),R(c.getSeconds()),dt].join("")},Nt=g.__private__.convertPDFDateToDate=function(c){var m=parseInt(c.substr(2,4),10),O=parseInt(c.substr(6,2),10)-1,q=parseInt(c.substr(8,2),10),$=parseInt(c.substr(10,2),10),dt=parseInt(c.substr(12,2),10),yt=parseInt(c.substr(14,2),10);return new Date(m,O,q,$,dt,yt,0)},wt=g.__private__.setCreationDate=function(c){var m;if(c===void 0&&(c=new Date),c instanceof Date)m=ct(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");m=c}return nt=m},_=g.__private__.getCreationDate=function(c){var m=nt;return c==="jsDate"&&(m=Nt(nt)),m};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,rt=[],ot=[],at=0,vt=[],At=[],kt=!1,Pt=ot;g.__private__.setCustomOutputDestination=function(c){kt=!0,Pt=c};var st=function(c){kt||(Pt=c)};g.__private__.resetCustomOutputDestination=function(){kt=!1,Pt=ot};var D=g.__private__.out=function(c){return c=c.toString(),at+=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," "))},ne=g.__private__.getArrayBuffer=function(c){for(var m=c.length,O=new ArrayBuffer(m),q=new Uint8Array(O);m--;)q[m]=c.charCodeAt(m);return O},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 _t=r.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(c){return _t=M===G?c/Gt:c,this};var Tt,St=g.__private__.getFontSize=g.getFontSize=function(){return M===W?_t:_t*Gt},ie=r.R2L||!1;g.__private__.setR2L=g.setR2L=function(c){return ie=c,this},g.__private__.getR2L=g.getR2L=function(){return ie};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 Zt,Qt=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 xe=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.');Zt=c};g.__private__.getLayoutMode=function(){return Zt},g.__private__.setDisplayMode=g.setDisplayMode=function(c,m,O){return de(c),xe(m),Qt(O),this};var ae={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(c){if(Object.keys(ae).indexOf(c)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ae[c]},g.__private__.getDocumentProperties=function(){return ae},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(c){for(var m in ae)ae.hasOwnProperty(m)&&c[m]&&(ae[m]=c[m]);return this},g.__private__.setDocumentProperty=function(c,m){if(Object.keys(ae).indexOf(c)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ae[c]=m};var Mt,Gt,qt,ke,pe,Bt={},te={},Ae=[],Ht={},ue={},ee={},Me={},Xe=null,_e=0,Jt=[],ve=new zu(g),Qn=r.hotfixes||[],hr={},dn={},en=[],Wt=function c(m,O,q,$,dt,yt){if(!(this instanceof c))return new c(m,O,q,$,dt,yt);isNaN(m)&&(m=1),isNaN(O)&&(O=0),isNaN(q)&&(q=0),isNaN($)&&($=1),isNaN(dt)&&(dt=0),isNaN(yt)&&(yt=0),this._matrix=[m,O,q,$,dt,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(K).join(c)},Wt.prototype.multiply=function(c){var m=c.sx*this.sx+c.shy*this.shx,O=c.sx*this.shy+c.shy*this.sy,q=c.shx*this.sx+c.sy*this.shx,$=c.shx*this.shy+c.sy*this.sy,dt=c.tx*this.sx+c.ty*this.shx+this.tx,yt=c.tx*this.shy+c.ty*this.sy+this.ty;return new Wt(m,O,q,$,dt,yt)},Wt.prototype.decompose=function(){var c=this.sx,m=this.shy,O=this.shx,q=this.sy,$=this.tx,dt=this.ty,yt=Math.sqrt(c*c+m*m),It=(c/=yt)*O+(m/=yt)*q;O-=c*It,q-=m*It;var jt=Math.sqrt(O*O+q*q);return It/=jt,c*(q/=jt)<m*(O/=jt)&&(c=-c,m=-m,It=-It,yt=-yt),{scale:new Wt(yt,0,0,jt,0,0),translate:new Wt(1,0,0,1,$,dt),rotate:new Wt(c,m,-m,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,m=this.shy,O=this.shx,q=this.sy,$=this.tx,dt=this.ty,yt=1/(c*q-m*O),It=q*yt,jt=-m*yt,Yt=-O*yt,$t=c*yt;return new Wt(It,jt,Yt,$t,-It*$-Yt*dt,-jt*$-$t*dt)},Wt.prototype.applyToPoint=function(c){var m=c.x*this.sx+c.y*this.shx+this.tx,O=c.x*this.shy+c.y*this.sy+this.ty;return new ui(m,O)},Wt.prototype.applyToRectangle=function(c){var m=this.applyToPoint(c),O=this.applyToPoint(new ui(c.x+c.w,c.y+c.h));return new fa(m.x,m.y,O.x-m.x,O.y-m.y)},Wt.prototype.clone=function(){var c=this.sx,m=this.shy,O=this.shx,q=this.sy,$=this.tx,dt=this.ty;return new Wt(c,m,O,q,$,dt)},g.Matrix=Wt;var pn=g.matrixMult=function(c,m){return m.multiply(c)},gn=new Wt(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=gn;var jr=function(c,m){if(!ue[c]){var O=(m instanceof Ni?"Sh":"P")+(Object.keys(Ht).length+1).toString(10);m.id=O,ue[c]=O,Ht[O]=m,ve.publish("addPattern",m)}};g.ShadingPattern=Ni,g.TilingPattern=Ji,g.addShadingPattern=function(c,m){return T("addShadingPattern()"),jr(c,m),this},g.beginTilingPattern=function(c){T("beginTilingPattern()"),ca(c.boundingBox[0],c.boundingBox[1],c.boundingBox[2]-c.boundingBox[0],c.boundingBox[3]-c.boundingBox[1],c.matrix)},g.endTilingPattern=function(c,m){T("endTilingPattern()"),m.stream=At[B].join(`
3
- `),jr(c,m),ve.publish("endTilingPattern",m),en.pop().restore()};var Br,je=g.__private__.newObject=function(){var c=nr();return ar(c,!0),c},nr=g.__private__.newObjectDeferred=function(){return J++,rt[J]=function(){return at},J},ar=function(c,m){return m=typeof m=="boolean"&&m,rt[c]=at,m&&D(c+" 0 obj"),c},ti=g.__private__.newAdditionalObject=function(){var c={objId:nr(),content:""};return vt.push(c),c},En=nr(),Wr=nr(),rn=g.__private__.decodeColorString=function(c){var m=c.split(" ");if(m.length!==2||m[1]!=="g"&&m[1]!=="G")m.length!==5||m[4]!=="k"&&m[4]!=="K"||(m=[(1-m[0])*(1-m[3]),(1-m[1])*(1-m[3]),(1-m[2])*(1-m[3]),"r"]);else{var O=parseFloat(m[0]);m=[O,O,O,"r"]}for(var q="#",$=0;$<3;$++)q+=("0"+Math.floor(255*parseFloat(m[$])).toString(16)).slice(-2);return q},Gr=g.__private__.encodeColorString=function(c){var m;typeof c=="string"&&(c={ch1:c});var O=c.ch1,q=c.ch2,$=c.ch3,dt=c.ch4,yt=c.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof O=="string"&&O.charAt(0)!=="#"){var It=new Yh(O);if(It.ok)O=It.toHex();else if(!/^\d*\.?\d*$/.test(O))throw new Error('Invalid color "'+O+'" passed to jsPDF.encodeColorString.')}if(typeof O=="string"&&/^#[0-9A-Fa-f]{3}$/.test(O)&&(O="#"+O[1]+O[1]+O[2]+O[2]+O[3]+O[3]),typeof O=="string"&&/^#[0-9A-Fa-f]{6}$/.test(O)){var jt=parseInt(O.substr(1),16);O=jt>>16&255,q=jt>>8&255,$=255&jt}if(q===void 0||dt===void 0&&O===q&&q===$)m=typeof O=="string"?O+" "+yt[0]:c.precision===2?L(O/255)+" "+yt[0]:E(O/255)+" "+yt[0];else if(dt===void 0||be(dt)==="object"){if(dt&&!isNaN(dt.a)&&dt.a===0)return["1.","1.","1.",yt[1]].join(" ");m=typeof O=="string"?[O,q,$,yt[1]].join(" "):c.precision===2?[L(O/255),L(q/255),L($/255),yt[1]].join(" "):[E(O/255),E(q/255),E($/255),yt[1]].join(" ")}else m=typeof O=="string"?[O,q,$,dt,yt[2]].join(" "):c.precision===2?[L(O),L(q),L($),L(dt),yt[2]].join(" "):[E(O),E(q),E($),E(dt),yt[2]].join(" ");return m},Vr=g.__private__.getFilters=function(){return h},Dr=g.__private__.putStream=function(c){var m=(c=c||{}).data||"",O=c.filters||Vr(),q=c.alreadyAppliedFilters||[],$=c.addLength1||!1,dt=m.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=qe.encryptor(yt,0));var jt={};O===!0&&(O=["FlateEncode"]);var Yt=c.additionalKeyValues||[],$t=(jt=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(m,O):{data:m,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(jt.data.length!==0&&(Yt.push({key:"Length",value:jt.data.length}),$===!0&&Yt.push({key:"Length1",value:dt})),$t.length!=0)if($t.split("/").length-1==1)Yt.push({key:"Filter",value:$t});else{Yt.push({key:"Filter",value:"["+$t+"]"});for(var ge=0;ge<Yt.length;ge+=1)if(Yt[ge].key==="DecodeParms"){for(var Oe=[],Ke=0;Ke<jt.reverseChain.split("/").length-1;Ke+=1)Oe.push("null");Oe.push(Yt[ge].value),Yt[ge].value="["+Oe.join(" ")+"]"}}D("<<");for(var Pe=0;Pe<Yt.length;Pe++)D("/"+Yt[Pe].key+" "+Yt[Pe].value);D(">>"),jt.data.length!==0&&(D("stream"),D(It(jt.data)),D("endstream"))},ei=g.__private__.putPage=function(c){var m=c.number,O=c.data,q=c.objId,$=c.contentsObjId;ar(q,!0),D("<</Type /Page"),D("/Parent "+c.rootDictionaryObjId+" 0 R"),D("/Resources "+c.resourceDictionaryObjId+" 0 R"),D("/MediaBox ["+parseFloat(K(c.mediaBox.bottomLeftX))+" "+parseFloat(K(c.mediaBox.bottomLeftY))+" "+K(c.mediaBox.topRightX)+" "+K(c.mediaBox.topRightY)+"]"),c.cropBox!==null&&D("/CropBox ["+K(c.cropBox.bottomLeftX)+" "+K(c.cropBox.bottomLeftY)+" "+K(c.cropBox.topRightX)+" "+K(c.cropBox.topRightY)+"]"),c.bleedBox!==null&&D("/BleedBox ["+K(c.bleedBox.bottomLeftX)+" "+K(c.bleedBox.bottomLeftY)+" "+K(c.bleedBox.topRightX)+" "+K(c.bleedBox.topRightY)+"]"),c.trimBox!==null&&D("/TrimBox ["+K(c.trimBox.bottomLeftX)+" "+K(c.trimBox.bottomLeftY)+" "+K(c.trimBox.topRightX)+" "+K(c.trimBox.topRightY)+"]"),c.artBox!==null&&D("/ArtBox ["+K(c.artBox.bottomLeftX)+" "+K(c.artBox.bottomLeftY)+" "+K(c.artBox.topRightX)+" "+K(c.artBox.topRightY)+"]"),typeof c.userUnit=="number"&&c.userUnit!==1&&D("/UserUnit "+c.userUnit),ve.publish("putPage",{objId:q,pageContext:Jt[m],pageNumber:m,page:O}),D("/Contents "+$+" 0 R"),D(">>"),D("endobj");var dt=O.join(`
4
- `);return M===G&&(dt+=`
5
- Q`),ar($,!0),Dr({data:dt,filters:Vr(),objectId:$}),D("endobj"),q},nn=g.__private__.putPages=function(){var c,m,O=[];for(c=1;c<=_e;c++)Jt[c].objId=nr(),Jt[c].contentsObjId=nr();for(c=1;c<=_e;c++)O.push(ei({number:c,data:At[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:En,resourceDictionaryObjId:Wr}));ar(En,!0),D("<</Type /Pages");var q="/Kids [";for(m=0;m<_e;m++)q+=O[m]+" 0 R ";D(q+"]"),D("/Count "+_e),D(">>"),D("endobj"),ve.publish("postPutPages")},ri=function(c){ve.publish("putFont",{font:c,out:D,newObject:je,putStream:Dr}),c.isAlreadyPutted!==!0&&(c.objectNumber=je(),D("<<"),D("/Type /Font"),D("/BaseFont /"+Yi(c.postScriptName)),D("/Subtype /Type1"),typeof c.encoding=="string"&&D("/Encoding /"+c.encoding),D("/FirstChar 32"),D("/LastChar 255"),D(">>"),D("endobj"))},Fi=function(c){c.objectNumber=je();var m=[];m.push({key:"Type",value:"/XObject"}),m.push({key:"Subtype",value:"/Form"}),m.push({key:"BBox",value:"["+[K(c.x),K(c.y),K(c.x+c.width),K(c.y+c.height)].join(" ")+"]"}),m.push({key:"Matrix",value:"["+c.matrix.toString()+"]"});var O=c.pages[1].join(`
6
- `);Dr({data:O,additionalKeyValues:m,objectId:c.objectNumber}),D("endobj")},Ii=function(c,m){m||(m=21);var O=je(),q=(function(yt,It){var jt,Yt=[],$t=1/(It-1);for(jt=0;jt<1;jt+=$t)Yt.push(jt);if(Yt.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="",Pe=0,Ze=0;Ze<Yt.length;Ze++){for(jt=Yt[Ze];jt>yt[Pe+1].offset;)Pe++;var $e=yt[Pe].offset,or=(jt-$e)/(yt[Pe+1].offset-$e),Tr=yt[Pe].color,yr=yt[Pe+1].color;Ke+=V(Math.round((1-or)*Tr[0]+or*yr[0]).toString(16))+V(Math.round((1-or)*Tr[1]+or*yr[1]).toString(16))+V(Math.round((1-or)*Tr[2]+or*yr[2]).toString(16))}return Ke.trim()})(c.colors,m),$=[];$.push({key:"FunctionType",value:"0"}),$.push({key:"Domain",value:"[0.0 1.0]"}),$.push({key:"Size",value:"["+m+"]"}),$.push({key:"BitsPerSample",value:"8"}),$.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Dr({data:q,additionalKeyValues:$,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:O}),D("endobj"),c.objectNumber=je(),D("<< /ShadingType "+c.type),D("/ColorSpace /DeviceRGB");var dt="/Coords ["+K(parseFloat(c.coords[0]))+" "+K(parseFloat(c.coords[1]))+" ";c.type===2?dt+=K(parseFloat(c.coords[2]))+" "+K(parseFloat(c.coords[3])):dt+=K(parseFloat(c.coords[2]))+" "+K(parseFloat(c.coords[3]))+" "+K(parseFloat(c.coords[4]))+" "+K(parseFloat(c.coords[5])),D(dt+="]"),c.matrix&&D("/Matrix ["+c.matrix.toString()+"]"),D("/Function "+O+" 0 R"),D("/Extend [true true]"),D(">>"),D("endobj")},Ei=function(c,m){var O=nr(),q=je();m.push({resourcesOid:O,objectOid:q}),c.objectNumber=q;var $=[];$.push({key:"Type",value:"/Pattern"}),$.push({key:"PatternType",value:"1"}),$.push({key:"PaintType",value:"1"}),$.push({key:"TilingType",value:"1"}),$.push({key:"BBox",value:"["+c.boundingBox.map(K).join(" ")+"]"}),$.push({key:"XStep",value:K(c.xStep)}),$.push({key:"YStep",value:K(c.yStep)}),$.push({key:"Resources",value:O+" 0 R"}),c.matrix&&$.push({key:"Matrix",value:"["+c.matrix.toString()+"]"}),Dr({data:c.stream,additionalKeyValues:$,objectId:c.objectNumber}),D("endobj")},Ho=function(c){for(var m in c.objectNumber=je(),D("<<"),c)switch(m){case"opacity":D("/ca "+L(c[m]));break;case"stroke-opacity":D("/CA "+L(c[m]))}D(">>"),D("endobj")},ea=function(c){ar(c.resourcesOid,!0),D("<<"),D("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var m in D("/Font <<"),Bt)Bt.hasOwnProperty(m)&&(w===!1||w===!0&&x.hasOwnProperty(m))&&D("/"+m+" "+Bt[m].objectNumber+" 0 R");D(">>")})(),(function(){if(Object.keys(Ht).length>0){for(var m in D("/Shading <<"),Ht)Ht.hasOwnProperty(m)&&Ht[m]instanceof Ni&&Ht[m].objectNumber>=0&&D("/"+m+" "+Ht[m].objectNumber+" 0 R");ve.publish("putShadingPatternDict"),D(">>")}})(),(function(m){if(Object.keys(Ht).length>0){for(var O in D("/Pattern <<"),Ht)Ht.hasOwnProperty(O)&&Ht[O]instanceof g.TilingPattern&&Ht[O].objectNumber>=0&&Ht[O].objectNumber<m&&D("/"+O+" "+Ht[O].objectNumber+" 0 R");ve.publish("putTilingPatternDict"),D(">>")}})(c.objectOid),(function(){if(Object.keys(ee).length>0){var m;for(m in D("/ExtGState <<"),ee)ee.hasOwnProperty(m)&&ee[m].objectNumber>=0&&D("/"+m+" "+ee[m].objectNumber+" 0 R");ve.publish("putGStateDict"),D(">>")}})(),(function(){for(var m in D("/XObject <<"),hr)hr.hasOwnProperty(m)&&hr[m].objectNumber>=0&&D("/"+m+" "+hr[m].objectNumber+" 0 R");ve.publish("putXobjectDict"),D(">>")})(),D(">>"),D("endobj")},Ra=function(c){te[c.fontName]=te[c.fontName]||{},te[c.fontName][c.fontStyle]=c.id},Ta=function(c,m,O,q,$){var dt={id:"F"+(Object.keys(Bt).length+1).toString(10),postScriptName:c,fontName:m,fontStyle:O,encoding:q,isStandardFont:$||!1,metadata:{}};return ve.publish("addFont",{font:dt,instance:this}),Bt[dt.id]=dt,Ra(dt),dt.id},Rr=g.__private__.pdfEscape=g.pdfEscape=function(c,m){return(function(O,q){var $,dt,yt,It,jt,Yt,$t,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($t=!1,Yt=[],$=0,dt=O.length;$<dt;$++)(ge=jt[O.charCodeAt($)])?Yt.push(String.fromCharCode(ge)):Yt.push(O[$]),Yt[$].charCodeAt(0)>>8&&($t=!0);O=Yt.join("")}for($=O.length;$t===void 0&&$!==0;)O.charCodeAt($-1)>>8&&($t=!0),$--;if(!$t)return O;for(Yt=q.noBOM?[]:[254,255],$=0,dt=O.length;$<dt;$++){if((Oe=(ge=O.charCodeAt($))>>8)>>8)throw new Error("Character at position "+$+" of string '"+O+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Yt.push(Oe),Yt.push(ge-(Oe<<8))}return String.fromCharCode.apply(void 0,Yt)})(c,m).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ra=g.__private__.beginPage=function(c){At[++_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])}},qa(_e),st(At[B])},Ma=function(c,m){var O,q,$;switch(e=m||e,typeof c=="string"&&(O=S(c.toLowerCase()),Array.isArray(O)&&(q=O[0],$=O[1])),Array.isArray(c)&&(q=c[0]*Gt,$=c[1]*Gt),isNaN(q)&&(q=a[0],$=a[1]),(q>14400||$>14400)&&(Se.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),$=Math.min(14400,$)),a=[q,$],e.substr(0,1)){case"l":$>q&&(a=[$,q]);break;case"p":q>$&&(a=[$,q])}ra(a),Zo(sa),D(ji),ua!==0&&D(ua+" J"),ha!==0&&D(ha+" j"),ve.publish("addPage",{pageNumber:_e})},na=function(c){c>0&&c<=_e&&(At.splice(c,1),Jt.splice(c,1),_e--,B>_e&&(B=_e),this.setPage(B))},qa=function(c){c>0&&c<=_e&&(B=c)},Ua=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return At.length-1},za=function(c,m,O){var q,$=void 0;return O=O||{},c=c!==void 0?c:Bt[Mt].fontName,m=m!==void 0?m:Bt[Mt].fontStyle,q=c.toLowerCase(),te[q]!==void 0&&te[q][m]!==void 0?$=te[q][m]:te[c]!==void 0&&te[c][m]!==void 0?$=te[c][m]:O.disableWarning===!1&&Se.warn("Unable to look up font label for font '"+c+"', '"+m+"'. Refer to getFontList() for available fonts."),$||O.noFallback||($=te.times[m])==null&&($=te.times.normal),$},Oi=g.__private__.putInfo=function(){var c=je(),m=function(q){return q};for(var O in p!==null&&(m=qe.encryptor(c,0)),D("<<"),D("/Producer ("+Rr(m("jsPDF "+Rt.version))+")"),ae)ae.hasOwnProperty(O)&&ae[O]&&D("/"+O.substr(0,1).toUpperCase()+O.substr(1)+" ("+Rr(m(ae[O]))+")");D("/CreationDate ("+Rr(m(nt))+")"),D(">>"),D("endobj")},Wo=g.__private__.putCatalog=function(c){var m=(c=c||{}).rootDictionaryObjId||En;switch(je(),D("<<"),D("/Type /Catalog"),D("/Pages "+m+" 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 O=""+Tt;O.substr(O.length-1)==="%"&&(Tt=parseInt(Tt)/100),typeof Tt=="number"&&D("/OpenAction [3 0 R /XYZ null null "+L(Tt)+"]")}switch(Zt||(Zt="continuous"),Zt){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 "+qe.oid+" 0 R"),D("/ID [ <"+lt+"> <"+lt+"> ]"),D(">>")},Ha=g.__private__.putHeader=function(){D("%PDF-"+P),D("%ºß¬à")},Wa=g.__private__.putXRef=function(){var c="0000000000";D("xref"),D("0 "+(J+1)),D("0000000000 65535 f ");for(var m=1;m<=J;m++)typeof rt[m]=="function"?D((c+rt[m]()).slice(-10)+" 00000 n "):rt[m]!==void 0?D((c+rt[m]).slice(-10)+" 00000 n "):D("0000000000 00000 n ")},vn=g.__private__.buildDocument=function(){var c;J=0,at=0,ot=[],rt=[],vt=[],En=nr(),Wr=nr(),st(ot),ve.publish("buildDocument"),Ha(),nn(),(function(){ve.publish("putAdditionalObjects");for(var O=0;O<vt.length;O++){var q=vt[O];ar(q.objId,!0),D(q.content),D("endobj")}ve.publish("postPutAdditionalObjects")})(),c=[],(function(){for(var O in Bt)Bt.hasOwnProperty(O)&&(w===!1||w===!0&&x.hasOwnProperty(O))&&ri(Bt[O])})(),(function(){var O;for(O in ee)ee.hasOwnProperty(O)&&Ho(ee[O])})(),(function(){for(var O in hr)hr.hasOwnProperty(O)&&Fi(hr[O])})(),(function(O){var q;for(q in Ht)Ht.hasOwnProperty(q)&&(Ht[q]instanceof Ni?Ii(Ht[q]):Ht[q]instanceof Ji&&Ei(Ht[q],O))})(c),ve.publish("putResources"),c.forEach(ea),ea({resourcesOid:Wr,objectOid:Number.MAX_SAFE_INTEGER}),ve.publish("postPutResources"),p!==null&&(qe.oid=je(),D("<<"),D("/Filter /Standard"),D("/V "+qe.v),D("/R "+qe.r),D("/U <"+qe.toHexString(qe.U)+">"),D("/O <"+qe.toHexString(qe.O)+">"),D("/P "+qe.P),D(">>"),D("endobj")),Oi(),Wo();var m=at;return Wa(),Je(),D("startxref"),D(""+m),D("%%EOF"),st(At[B]),ot.join(`
7
- `)},ni=g.__private__.getBlob=function(c){return new Blob([ne(c)],{type:"application/pdf"})},Yr=g.output=g.__private__.output=(Br=function(c,m){switch(typeof(m=m||{})=="string"?m={filename:m}:m.filename=m.filename||"generated.pdf",c){case void 0:return vn();case"save":g.save(m.filename);break;case"arraybuffer":return ne(vn());case"blob":return ni(vn());case"bloburi":case"bloburl":if(Vt.URL!==void 0&&typeof Vt.URL.createObjectURL=="function")return Vt.URL&&Vt.URL.createObjectURL(ni(vn()))||void 0;Se.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var O="",q=vn();try{O=Mu(q)}catch{O=Mu(unescape(encodeURIComponent(q)))}return"data:application/pdf;filename="+m.filename+";base64,"+O;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Vt)==="[object Window]"){var $="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",dt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';m.pdfObjectUrl&&($=m.pdfObjectUrl,dt="");var yt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+$+'"'+dt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(m)+");<\/script></body></html>",It=Vt.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(Vt)==="[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="'+(m.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+m.filename+'" width="500px" height="400px" /></body></html>',Yt=Vt.open();if(Yt!==null){Yt.document.write(jt);var $t=this;Yt.document.documentElement.querySelector("#pdfViewer").onload=function(){Yt.document.title=m.filename,Yt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open($t.output("bloburl"))}}return Yt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Vt)!=="[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",m)+'"></iframe></body></html>',Oe=Vt.open();if(Oe!==null&&(Oe.document.write(ge),Oe.document.title=m.filename),Oe||typeof safari>"u")return Oe;break;case"datauri":case"dataurl":return Vt.document.location.href=this.output("datauristring",m);default:return null}},Br.foo=function(){try{return Br.apply(this,arguments)}catch(O){var c=O.stack||"";~c.indexOf(" at ")&&(c=c.split(" at ")[1]);var m="Error in function "+c.split(`
8
- `)[0].split("<")[0]+": "+O.message;if(!Vt.console)throw new Error(m);Vt.console.error(m,O),Vt.alert&&alert(m)}},Br.foo.bar=Br,Br.foo),ii=function(c){return Array.isArray(Qn)===!0&&Qn.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=ii("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 qe=null;wt(),et();var ia=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]}},Go=g.__private__.getPageInfoByObjId=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var m in Jt)if(Jt[m].objId===c)break;return ia(m)},Vo=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:Jt[B].objId,pageNumber:B,pageContext:Jt[B]}};g.addPage=function(){return Ma.apply(this,arguments),this},g.setPage=function(){return qa.apply(this,arguments),st.call(this,At[B]),this},g.insertPage=function(c){return this.addPage(),this.movePage(B,c),this},g.movePage=function(c,m){var O,q;if(c>m){O=At[c],q=Jt[c];for(var $=c;$>m;$--)At[$]=At[$-1],Jt[$]=Jt[$-1];At[m]=O,Jt[m]=q,this.setPage(m)}else if(c<m){O=At[c],q=Jt[c];for(var dt=c;dt<m;dt++)At[dt]=At[dt+1],Jt[dt]=Jt[dt+1];At[m]=O,Jt[m]=q,this.setPage(m)}return this},g.deletePage=function(){return na.apply(this,arguments),this},g.__private__.text=g.text=function(c,m,O,q,$){var dt,yt,It,jt,Yt,$t,ge,Oe,Ke,Pe=(q=q||{}).scope||this;if(typeof c=="number"&&typeof m=="number"&&(typeof O=="string"||Array.isArray(O))){var Ze=O;O=m,m=c,c=Ze}if(arguments[3]instanceof Wt==0?(It=arguments[4],jt=arguments[5],be(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=$),isNaN(m)||isNaN(O)||c==null)throw new Error("Invalid arguments passed to jsPDF.text");if(c.length===0)return Pe;var $e,or="",Tr=typeof q.lineHeightFactor=="number"?q.lineHeightFactor:oi,yr=Pe.internal.scaleFactor;function Za(me){return me=me.split(" ").join(Array(q.TabLen||9).join(" ")),Rr(me,ge)}function Ti(me){for(var Ne,ze=me.concat(),Qe=[],_n=ze.length;_n--;)typeof(Ne=ze.shift())=="string"?Qe.push(Ne):Array.isArray(me)&&(Ne.length===1||Ne[1]===void 0&&Ne[2]===void 0)?Qe.push(Ne[0]):Qe.push([Ne[0],Ne[1],Ne[2]]);return Qe}function ci(me,Ne){var ze;if(typeof me=="string")ze=Ne(me)[0];else if(Array.isArray(me)){for(var Qe,_n,Aa=me.concat(),Ui=[],eo=Aa.length;eo--;)typeof(Qe=Aa.shift())=="string"?Ui.push(Ne(Qe)[0]):Array.isArray(Qe)&&typeof Qe[0]=="string"&&(_n=Ne(Qe[0],Qe[1],Qe[2]),Ui.push([_n[0],_n[1],_n[2]]));ze=Ui}return ze}var Bn=!1,di=!0;if(typeof c=="string")Bn=!0;else if(Array.isArray(c)){var pi=c.concat();yt=[];for(var gi,fr=pi.length;fr--;)(typeof(gi=pi.shift())!="string"||Array.isArray(gi)&&typeof gi[0]!="string")&&(di=!1);Bn=di}if(Bn===!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 vi=_t/Pe.internal.scaleFactor,mi=vi*(Tr-1);switch(q.baseline){case"bottom":O-=mi;break;case"top":O+=vi-mi;break;case"hanging":O+=vi-2*mi;break;case"middle":O+=vi/2-mi}if(($t=q.maxWidth||0)>0&&(typeof c=="string"?c=Pe.splitTextToSize(c,$t):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(me,Ne){return me.concat(Pe.splitTextToSize(Ne,$t))},[]))),dt={text:c,x:m,y:O,options:q,mutex:{pdfEscape:Rr,activeFontKey:Mt,fonts:Bt,activeFontSize:_t}},ve.publish("preProcessText",dt),c=dt.text,It=(q=dt.options).angle,Ke instanceof Wt==0&&It&&typeof It=="number"){It*=Math.PI/180,q.rotationDirection===0&&(It=-It),M===G&&(It=-It);var da=Math.cos(It),pa=Math.sin(It);Ke=new Wt(da,pa,-pa,da,0,0)}else It&&It instanceof Wt&&(Ke=It);M!==G||Ke||(Ke=gn),(Yt=q.charSpace||Di)!==void 0&&(or+=K(z(Yt))+` Tc
9
- `,this.setCharSpace(this.getCharSpace()||0)),(Oe=q.horizontalScale)!==void 0&&(or+=K(100*Oe)+` Tz
10
- `),q.lang;var Be=-1,xn=q.renderingMode!==void 0?q.renderingMode:q.stroke,Mi=Pe.internal.getCurrentPageInfo().pageContext;switch(xn){case 0:case!1:case"fill":Be=0;break;case 1:case!0:case"stroke":Be=1;break;case 2:case"fillThenStroke":Be=2;break;case 3:case"invisible":Be=3;break;case 4:case"fillAndAddForClipping":Be=4;break;case 5:case"strokeAndAddPathForClipping":Be=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Be=6;break;case 7:case"addToPathForClipping":Be=7}var Qa=Mi.usedRenderingMode!==void 0?Mi.usedRenderingMode:-1;Be!==-1?or+=Be+` Tr
11
- `:Qa!==-1&&(or+=`0 Tr
12
- `),Be!==-1&&(Mi.usedRenderingMode=Be),jt=q.align||"left";var Mr,bi=_t*Tr,ga=Pe.internal.pageSize.getWidth(),va=Bt[Mt];Yt=q.charSpace||Di,$t=q.maxWidth||0,ge=Object.assign({autoencode:!0,noBOM:!0},q.flags);var Dn=[],wi=function(me){return Pe.getStringUnitWidth(me,{font:va,charSpace:Yt,fontSize:_t,doKerning:!1})*_t/yr};if(Object.prototype.toString.call(c)==="[object Array]"){var Nr;yt=Ti(c),jt!=="left"&&(Mr=yt.map(wi));var Lr,Rn=0;if(jt==="right"){m-=Mr[0],c=[],fr=yt.length;for(var An=0;An<fr;An++)An===0?(Lr=mn(m),Nr=bn(O)):(Lr=z(Rn-Mr[An]),Nr=-bi),c.push([yt[An],Lr,Nr]),Rn=Mr[An]}else if(jt==="center"){m-=Mr[0]/2,c=[],fr=yt.length;for(var Tn=0;Tn<fr;Tn++)Tn===0?(Lr=mn(m),Nr=bn(O)):(Lr=z((Rn-Mr[Tn])/2),Nr=-bi),c.push([yt[Tn],Lr,Nr]),Rn=Mr[Tn]}else if(jt==="left"){c=[],fr=yt.length;for(var ma=0;ma<fr;ma++)c.push(yt[ma])}else if(jt==="justify"&&va.encoding==="Identity-H"){c=[],fr=yt.length,$t=$t!==0?$t:ga;for(var qi=0,Ue=0;Ue<fr;Ue++)if(Nr=Ue===0?bn(O):-bi,Lr=Ue===0?mn(m):qi,Ue<fr-1){var to=z(($t-Mr[Ue])/(yt[Ue].split(" ").length-1)),on=yt[Ue].split(" ");c.push([on[0]+" ",Lr,Nr]),qi=0;for(var sn=1;sn<on.length;sn++){var ba=(wi(on[sn-1]+" "+on[sn])-wi(on[sn]))*yr+to;sn==on.length-1?c.push([on[sn],ba,0]):c.push([on[sn]+" ",ba,0]),qi-=ba}}else c.push([yt[Ue],Lr,Nr]);c.push(["",qi,0])}else{if(jt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(c=[],fr=yt.length,$t=$t!==0?$t:ga,Ue=0;Ue<fr;Ue++){Nr=Ue===0?bn(O):-bi,Lr=Ue===0?mn(m):0;var wa=yt[Ue].split(" ").length-1,ya=wa>0?($t-Mr[Ue])/wa:0;Ue<fr-1?Dn.push(K(z(ya))):Dn.push(0),c.push([yt[Ue],Lr,Nr])}}}(typeof q.R2L=="boolean"?q.R2L:ie)===!0&&(c=ci(c,function(me,Ne,ze){return[me.split("").reverse().join(""),Ne,ze]})),dt={text:c,x:m,y:O,options:q,mutex:{pdfEscape:Rr,activeFontKey:Mt,fonts:Bt,activeFontSize:_t}},ve.publish("postProcessText",dt),c=dt.text,$e=dt.mutex.isHex||!1;var xa=Bt[Mt].encoding;xa!=="WinAnsiEncoding"&&xa!=="StandardEncoding"||(c=ci(c,function(me,Ne,ze){return[Za(me),Ne,ze]})),yt=Ti(c),c=[];for(var Mn,qn,Un,yi=Array.isArray(yt[0])?1:0,zn="",xi=function(me,Ne,ze){var Qe="";return ze instanceof Wt?(ze=typeof q.angle=="number"?pn(ze,new Wt(1,0,0,1,me,Ne)):pn(new Wt(1,0,0,1,me,Ne),ze),M===G&&(ze=pn(new Wt(1,0,0,-1,0,0),ze)),Qe=ze.join(" ")+` Tm
13
- `):Qe=K(me)+" "+K(Ne)+` Td
14
- `,Qe},qr=0;qr<yt.length;qr++){switch(zn="",yi){case 1:Un=($e?"<":"(")+yt[qr][0]+($e?">":")"),Mn=parseFloat(yt[qr][1]),qn=parseFloat(yt[qr][2]);break;case 0:Un=($e?"<":"(")+yt[qr]+($e?">":")"),Mn=mn(m),qn=bn(O)}Dn!==void 0&&Dn[qr]!==void 0&&(zn=Dn[qr]+` Tw
15
- `),qr===0?c.push(zn+xi(Mn,qn,Ke)+Un):yi===0?c.push(zn+Un):yi===1&&c.push(zn+xi(Mn,qn,Ke)+Un)}c=yi===0?c.join(` Tj
16
- T* `):c.join(` Tj
17
- `),c+=` Tj
18
- `;var ln=`BT
19
- /`;return ln+=Mt+" "+_t+` Tf
20
- `,ln+=K(_t*Tr)+` TL
21
- `,ln+=si+`
22
- `,ln+=or,ln+=c,D(ln+="ET"),x[Mt]=!0,Pe};var Yo=g.__private__.clip=g.clip=function(c){return D(c==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return Yo("evenodd")},g.__private__.discardPath=g.discardPath=function(){return D("n"),this};var an=g.__private__.isValidStyle=function(c){var m=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(c)!==-1&&(m=!0),m};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(c){return an(c)&&(f=c),this};var Ga=g.__private__.getStyle=g.getStyle=function(c){var m=f;switch(c){case"D":case"S":m="S";break;case"F":m="f";break;case"FD":case"DF":m="B";break;case"f":case"f*":case"B":case"B*":m=c}return m},Va=g.close=function(){return D("h"),this};g.stroke=function(){return D("S"),this},g.fill=function(c){return On("f",c),this},g.fillEvenOdd=function(c){return On("f*",c),this},g.fillStroke=function(c){return On("B",c),this},g.fillStrokeEvenOdd=function(c){return On("B*",c),this};var On=function(c,m){be(m)==="object"?Ko(m,c):D(c)},aa=function(c){c===null||M===G&&c===void 0||(c=Ga(c),D(c))};function Jo(c,m,O,q,$){var dt=new Ji(m||this.boundingBox,O||this.xStep,q||this.yStep,this.gState,$||this.matrix);dt.stream=this.stream;var yt=c+"$$"+this.cloneIndex+++"$$";return jr(yt,dt),dt}var Ko=function(c,m){var O=ue[c.key],q=Ht[O];if(q instanceof Ni)D("q"),D($o(m)),q.gState&&g.setGState(q.gState),D(c.matrix.toString()+" cm"),D("/"+O+" sh"),D("Q");else if(q instanceof Ji){var $=new Wt(1,0,0,-1,0,fi());c.matrix&&($=$.multiply(c.matrix||gn),O=Jo.call(q,c.key,c.boundingBox,c.xStep,c.yStep,$).id),D("q"),D("/Pattern cs"),D("/"+O+" scn"),q.gState&&g.setGState(q.gState),D(m),D("Q")}},$o=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"}},oa=g.moveTo=function(c,m){return D(K(z(c))+" "+K(U(m))+" m"),this},ai=g.lineTo=function(c,m){return D(K(z(c))+" "+K(U(m))+" l"),this},jn=g.curveTo=function(c,m,O,q,$,dt){return D([K(z(c)),K(U(m)),K(z(O)),K(U(q)),K(z($)),K(U(dt)),"c"].join(" ")),this};g.__private__.line=g.line=function(c,m,O,q,$){if(isNaN(c)||isNaN(m)||isNaN(O)||isNaN(q)||!an($))throw new Error("Invalid arguments passed to jsPDF.line");return M===W?this.lines([[O-c,q-m]],c,m,[1,1],$||"S"):this.lines([[O-c,q-m]],c,m,[1,1]).stroke()},g.__private__.lines=g.lines=function(c,m,O,q,$,dt){var yt,It,jt,Yt,$t,ge,Oe,Ke,Pe,Ze,$e,or;if(typeof c=="number"&&(or=O,O=m,m=c,c=or),q=q||[1,1],dt=dt||!1,isNaN(m)||isNaN(O)||!Array.isArray(c)||!Array.isArray(q)||!an($)||typeof dt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(oa(m,O),yt=q[0],It=q[1],Yt=c.length,Ze=m,$e=O,jt=0;jt<Yt;jt++)($t=c[jt]).length===2?(Ze=$t[0]*yt+Ze,$e=$t[1]*It+$e,ai(Ze,$e)):(ge=$t[0]*yt+Ze,Oe=$t[1]*It+$e,Ke=$t[2]*yt+Ze,Pe=$t[3]*It+$e,Ze=$t[4]*yt+Ze,$e=$t[5]*It+$e,jn(ge,Oe,Ke,Pe,Ze,$e));return dt&&Va(),aa($),this},g.path=function(c){for(var m=0;m<c.length;m++){var O=c[m],q=O.c;switch(O.op){case"m":oa(q[0],q[1]);break;case"l":ai(q[0],q[1]);break;case"c":jn.apply(this,q);break;case"h":Va()}}return this},g.__private__.rect=g.rect=function(c,m,O,q,$){if(isNaN(c)||isNaN(m)||isNaN(O)||isNaN(q)||!an($))throw new Error("Invalid arguments passed to jsPDF.rect");return M===W&&(q=-q),D([K(z(c)),K(U(m)),K(z(O)),K(z(q)),"re"].join(" ")),aa($),this},g.__private__.triangle=g.triangle=function(c,m,O,q,$,dt,yt){if(isNaN(c)||isNaN(m)||isNaN(O)||isNaN(q)||isNaN($)||isNaN(dt)||!an(yt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[O-c,q-m],[$-O,dt-q],[c-$,m-dt]],c,m,[1,1],yt,!0),this},g.__private__.roundedRect=g.roundedRect=function(c,m,O,q,$,dt,yt){if(isNaN(c)||isNaN(m)||isNaN(O)||isNaN(q)||isNaN($)||isNaN(dt)||!an(yt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var It=4/3*(Math.SQRT2-1);return $=Math.min($,.5*O),dt=Math.min(dt,.5*q),this.lines([[O-2*$,0],[$*It,0,$,dt-dt*It,$,dt],[0,q-2*dt],[0,dt*It,-$*It,dt,-$,dt],[2*$-O,0],[-$*It,0,-$,-dt*It,-$,-dt],[0,2*dt-q],[0,-dt*It,$*It,-dt,$,-dt]],c+$,m,[1,1],yt,!0),this},g.__private__.ellipse=g.ellipse=function(c,m,O,q,$){if(isNaN(c)||isNaN(m)||isNaN(O)||isNaN(q)||!an($))throw new Error("Invalid arguments passed to jsPDF.ellipse");var dt=4/3*(Math.SQRT2-1)*O,yt=4/3*(Math.SQRT2-1)*q;return oa(c+O,m),jn(c+O,m-yt,c+dt,m-q,c,m-q),jn(c-dt,m-q,c-O,m-yt,c-O,m),jn(c-O,m+yt,c-dt,m+q,c,m+q),jn(c+dt,m+q,c+O,m+yt,c+O,m),aa($),this},g.__private__.circle=g.circle=function(c,m,O,q){if(isNaN(c)||isNaN(m)||isNaN(O)||!an(q))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(c,m,O,O,q)},g.setFont=function(c,m,O){return O&&(m=pt(m,O)),Mt=za(c,m,{disableWarning:!1}),this};var Xo=g.__private__.getFont=g.getFont=function(){return Bt[za.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var c,m,O={};for(c in te)if(te.hasOwnProperty(c))for(m in O[c]=[],te[c])te[c].hasOwnProperty(m)&&O[c].push(m);return O},g.addFont=function(c,m,O,q,$){var dt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&dt.indexOf(arguments[3])!==-1?$=arguments[3]:arguments[3]&&dt.indexOf(arguments[3])==-1&&(O=pt(O,q)),Ta.call(this,c,m,O,$=$||"Identity-H")};var oi,sa=r.lineWidth||.200025,Kt=g.__private__.getLineWidth=g.getLineWidth=function(){return sa},Zo=g.__private__.setLineWidth=g.setLineWidth=function(c){return sa=c,D(K(z(c))+" w"),this};g.__private__.setLineDash=Rt.API.setLineDash=Rt.API.setLineDashPattern=function(c,m){if(c=c||[],m=m||0,isNaN(m)||!Array.isArray(c))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return c=c.map(function(O){return K(z(O))}).join(" "),m=K(z(m)),D("["+c+"] "+m+" d"),this};var Qo=g.__private__.getLineHeight=g.getLineHeight=function(){return _t*oi};g.__private__.getLineHeight=g.getLineHeight=function(){return _t*oi};var ts=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(c){return typeof(c=c||1.15)=="number"&&(oi=c),this},es=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return oi};ts(r.lineHeight);var mn=g.__private__.getHorizontalCoordinate=function(c){return z(c)},bn=g.__private__.getVerticalCoordinate=function(c){return M===G?c:Jt[B].mediaBox.topRightY-Jt[B].mediaBox.bottomLeftY-z(c)},rs=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(c){return K(mn(c))},ns=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(c){return K(bn(c))},ji=r.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return rn(ji)},g.__private__.setStrokeColor=g.setDrawColor=function(c,m,O,q){return ji=Gr({ch1:c,ch2:m,ch3:O,ch4:q,pdfColorType:"draw",precision:2}),D(ji),this};var la=r.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return rn(la)},g.__private__.setFillColor=g.setFillColor=function(c,m,O,q){return la=Gr({ch1:c,ch2:m,ch3:O,ch4:q,pdfColorType:"fill",precision:2}),D(la),this};var si=r.textColor||"0 g",Bi=g.__private__.getTextColor=g.getTextColor=function(){return rn(si)};g.__private__.setTextColor=g.setTextColor=function(c,m,O,q){return si=Gr({ch1:c,ch2:m,ch3:O,ch4:q,pdfColorType:"text",precision:3}),this};var Di=r.charSpace,is=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(Di||0)};g.__private__.setCharSpace=g.setCharSpace=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Di=c,this};var ua=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 m=g.CapJoinStyles[c];if(m===void 0)throw new Error("Line cap style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ua=m,D(m+" J"),this};var ha=0;g.__private__.setLineJoin=g.setLineJoin=function(c){var m=g.CapJoinStyles[c];if(m===void 0)throw new Error("Line join style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ha=m,D(m+" 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(K(z(c))+" M"),this},g.GState=Do,g.setGState=function(c){(c=typeof c=="string"?ee[Me[c]]:li(null,c)).equals(Xe)||(D("/"+c.id+" gs"),Xe=c)};var li=function(c,m){if(!c||!Me[c]){var O=!1;for(var q in ee)if(ee.hasOwnProperty(q)&&ee[q].equals(m)){O=!0;break}if(O)m=ee[q];else{var $="GS"+(Object.keys(ee).length+1).toString(10);ee[$]=m,m.id=$}return c&&(Me[c]=m.id),ve.publish("addGState",m),m}};g.addGState=function(c,m){return li(c,m),this},g.saveGraphicsState=function(){return D("q"),Ae.push({key:Mt,size:_t,color:si}),this},g.restoreGraphicsState=function(){D("Q");var c=Ae.pop();return Mt=c.key,_t=c.size,si=c.color,Xe=null,this},g.setCurrentTransformationMatrix=function(c){return D(c.toString()+" cm"),this},g.comment=function(c){return D("#"+c),this};var ui=function(c,m){var O=c||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return O},set:function(dt){isNaN(dt)||(O=parseFloat(dt))}});var q=m||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return q},set:function(dt){isNaN(dt)||(q=parseFloat(dt))}});var $="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return $},set:function(dt){$=dt.toString()}}),this},fa=function(c,m,O,q){ui.call(this,c,m),this.type="rect";var $=O||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return $},set:function(yt){isNaN(yt)||($=parseFloat(yt))}});var dt=q||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return dt},set:function(yt){isNaN(yt)||(dt=parseFloat(yt))}}),this},Ri=function(){this.page=_e,this.currentPage=B,this.pages=At.slice(0),this.pagesContext=Jt.slice(0),this.x=qt,this.y=ke,this.matrix=pe,this.width=Ya(B),this.height=wn(B),this.outputDestination=Pt,this.id="",this.objectNumber=-1};Ri.prototype.restore=function(){_e=this.page,B=this.currentPage,Jt=this.pagesContext,At=this.pages,qt=this.x,ke=this.y,pe=this.matrix,Ja(B,this.width),yn(B,this.height),Pt=this.outputDestination};var ca=function(c,m,O,q,$){en.push(new Ri),_e=B=0,At=[],qt=c,ke=m,pe=$,ra([O,q])};for(var hi in g.beginFormObject=function(c,m,O,q,$){return ca(c,m,O,q,$),this},g.endFormObject=function(c){return(function(m){if(dn[m])en.pop().restore();else{var O=new Ri,q="Xo"+(Object.keys(hr).length+1).toString(10);O.id=q,dn[m]=q,hr[q]=O,ve.publish("addFormObject",O),en.pop().restore()}})(c),this},g.doFormObject=function(c,m){var O=hr[dn[c]];return D("q"),D(m.toString()+" cm"),D("/"+O.id+" Do"),D("Q"),this},g.getFormObject=function(c){var m=hr[dn[c]];return{x:m.x,y:m.y,width:m.width,height:m.height,matrix:m.matrix}},g.save=function(c,m){return c=c||"generated.pdf",(m=m||{}).returnPromise=m.returnPromise||!1,m.returnPromise===!1?(_i(ni(vn()),c),typeof _i.unload=="function"&&Vt.setTimeout&&setTimeout(_i.unload,911),this):new Promise(function(O,q){try{var $=_i(ni(vn()),c);typeof _i.unload=="function"&&Vt.setTimeout&&setTimeout(_i.unload,911),O($)}catch(dt){q(dt.message)}})},Rt.API)Rt.API.hasOwnProperty(hi)&&(hi==="events"&&Rt.API.events.length?(function(c,m){var O,q,$;for($=m.length-1;$!==-1;$--)O=m[$][0],q=m[$][1],c.subscribe.apply(c,[O].concat(typeof q=="function"?[q]:q))})(ve,Rt.API.events):g[hi]=Rt.API[hi]);function Ya(c){return Jt[c].mediaBox.topRightX-Jt[c].mediaBox.bottomLeftX}function Ja(c,m){Jt[c].mediaBox.topRightX=m+Jt[c].mediaBox.bottomLeftX}function wn(c){return Jt[c].mediaBox.topRightY-Jt[c].mediaBox.bottomLeftY}function yn(c,m){Jt[c].mediaBox.topRightY=m+Jt[c].mediaBox.bottomLeftY}var Ka=g.getPageWidth=function(c){return Ya(c=c||B)/Gt},$a=g.setPageWidth=function(c,m){Ja(c,m*Gt)},fi=g.getPageHeight=function(c){return wn(c=c||B)/Gt},Xa=g.setPageHeight=function(c,m){yn(c,m*Gt)};return g.internal={pdfEscape:Rr,getStyle:Ga,getFont:Xo,getFontSize:St,getCharSpace:is,getTextColor:Bi,getLineHeight:Qo,getLineHeightFactor:es,getLineWidth:Kt,write:le,getHorizontalCoordinate:mn,getVerticalCoordinate:bn,getCoordinateString:rs,getVerticalCoordinateString:ns,collections:{},newObject:je,newAdditionalObject:ti,newObjectDeferred:nr,newObjectDeferredBegin:ar,getFilters:Vr,putStream:Dr,events:ve,scaleFactor:Gt,pageSize:{getWidth:function(){return Ka(B)},setWidth:function(c){$a(B,c)},getHeight:function(){return fi(B)},setHeight:function(c){Xa(B,c)}},encryptionOptions:p,encryption:qe,getEncryptor:function(c){return p!==null?qe.encryptor(c,0):function(m){return m}},output:Yr,getNumberOfPages:Ua,pages:At,out:D,f2:L,f3:E,getPageInfo:ia,getPageInfoByObjId:Go,getCurrentPageInfo:Vo,getPDFVersion:C,Point:ui,Rectangle:fa,Matrix:Wt,hasHotfix:ii},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return Ka(B)},set:function(c){$a(B,c)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return fi(B)},set:function(c){Xa(B,c)},enumerable:!0,configurable:!0}),(function(c){for(var m=0,O=zt.length;m<O;m++){var q=Ta.call(this,c[m][0],c[m][1],c[m][2],zt[m][3],!0);w===!1&&(x[q]=!0);var $=c[m][0].split("-");Ra({id:q,fontName:$[0],fontStyle:$[1]||""})}ve.publish("addFonts",{fonts:Bt,dictionary:te})}).call(g,zt),Mt="F1",Ma(a,e),ve.publish("initialized"),g}Vi.prototype.lsbFirstWord=function(r){return String.fromCharCode(255&r,r>>8&255,r>>16&255,r>>24&255)},Vi.prototype.toHexString=function(r){return r.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Vi.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("")},Vi.prototype.processOwnerPassword=function(r,t){return tl(Qs(t).substr(0,5),r)},Vi.prototype.encryptor=function(r,t){var e=Qs(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return tl(e,n)}},Do.prototype.equals=function(r){var t,e="id,objectNumber,equals";if(!r||be(r)!==be(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.3";var Te=Rt.API,hl=1,Ci=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Wi=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Xt=function(r){return r.toFixed(2)},$n=function(r){return r.toFixed(5)};Te.__acroform__={};var _r=function(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r},Hu=function(r){return r*hl},hn=function(r){var t=new Xh,e=Ft.internal.getHeight(r)||0,n=Ft.internal.getWidth(r)||0;return t.BBox=[0,0,Number(Xt(n)),Number(Xt(e))],t},g2=Te.__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=Te.__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=Te.__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=Te.__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=Te.__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=Te.__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=Te.__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(Xt(u.lowerLeft_X)),Number(Xt(u.lowerLeft_Y)),Number(Xt(u.upperRight_X)),Number(Xt(u.upperRight_Y))]},w2=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var t=[],e=r._V||r.DV,n=el(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+" "+Xt(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=hn(r);return i.scope=r.scope,i.stream=t.join(`
23
- `),i}},el=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(`
24
- `)}):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,E,z){if(L+1<a.length){var U=E+" "+a[L+1][0];return Lo(U,r,z).width<=l-4}return!1};i++;t:for(;i>0;){t="",i--;var f,p,w=Lo("3",r,i).height,x=r.multiline?h-i:(h-w)/2,g=x+=2,P=0,C=0,j=0;if(i<=0){t=`(...) Tj
25
- `,t+="% Width of Text: "+Lo(t,r,i=12).width+", FieldWidth:"+l+`
26
- `;break}for(var S="",W=0,G=0;G<a.length;G++)if(a.hasOwnProperty(G)){var M=!1;if(a[G].length!==1&&j!==a[G].length-1){if((w+2)*(W+2)+2>h)continue t;S+=a[G][j],M=!0,C=G,G--}else{S=(S+=a[G][j]+" ").substr(S.length-1)==" "?S.substr(0,S.length-1):S;var it=parseInt(G),mt=u(it,S,i),pt=G>=a.length-1;if(mt&&!pt){S+=" ",j=0;continue}if(mt||pt){if(pt)C=it;else if(r.multiline&&(w+2)*(W+2)+2>h)continue t}else{if(!r.multiline||(w+2)*(W+2)+2>h)continue t;C=it}}for(var K="",T=P;T<=C;T++){var Q=a[T];if(r.multiline){if(T===C){K+=Q[j]+" ",j=(j+1)%Q.length;continue}if(T===P){K+=Q[Q.length-1]+" ";continue}}K+=Q[0]+" "}switch(K=K.substr(K.length-1)==" "?K.substr(0,K.length-1):K,p=Lo(K,r,i).width,r.textAlign){case"right":f=l-p-2;break;case"center":f=(l-p)/2;break;default:f=2}t+=Xt(f)+" "+Xt(g)+` Td
27
- `,t+="("+Ci(K)+`) Tj
28
- `,t+=-Xt(f)+` 0 Td
29
- `,g=-(i+2),p=0,P=M?C:C+1,W++,S=""}break}return n.text=t,n.fontSize=i,n},Lo=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}},y2={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(Qr.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(y2)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");hl=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),be(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(u=l.getKeyValueListForStream()),l.Rect=f,l.hasAppearanceStream&&!l.appearanceStreamContent){var p=w2(l);u.push({key:"AP",value:"<</N "+p+">>"}),a.internal.acroformPlugin.xForms.push(p)}if(l.appearanceStreamContent){var w="";for(var x in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(x)){var g=l.appearanceStreamContent[x];if(w+="/"+x+" ",w+="<<",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)),w+="/"+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)),w+="/"+h+" "+P,a.internal.acroformPlugin.xForms.indexOf(P)>=0||a.internal.acroformPlugin.xForms.push(P);w+=">>"}u.push({key:"AP",value:`<<
30
- `+w+">>"})}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,G=C[S];j.internal.newObjectDeferredBegin(G.objId,!0),be(G)==="object"&&typeof G.putStream=="function"&&G.putStream(),delete C[W]}})(a.internal.acroformPlugin.xForms,a)})(e,r)}),r.internal.acroformPlugin.isInitialized=!0}},$h=Te.__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+=" "),be(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+="("+Ci(n(r[i].toString()))+")"):a+=r[i].toString()}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Rs=function(r,t,e){var n=function(a){return a};return t!==void 0&&e&&(n=e.internal.getEncryptor(t)),(r=r||"").toString(),"("+Ci(n(r))+")"},fn=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})};fn.prototype.toString=function(){return this.objId+" 0 R"},fn.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},fn.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 fn?(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(){fn.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}})};_r(Xh,fn);var Zh=function(){fn.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)),"("+Ci(e(r))+")"}},set:function(e){r=e}})};_r(Zh,fn);var Qr=function r(){fn.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 Ro)return;i="FieldObject"+r.FieldNum++}var S=function(W){return W};return this.scope&&(S=this.scope.internal.getEncryptor(this.objId)),"("+Ci(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/hl: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 w="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!w||this instanceof Ro||this instanceof Li))return Rs(w,this.objId,this.scope)},set:function(S){S=S.toString(),w=S}});var x=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(x)return this instanceof ir==0?Rs(x,this.objId,this.scope):x},set:function(S){S=S.toString(),x=this instanceof ir==0?S.substr(0,1)==="("?Wi(S.substr(1,S.length-2)):Wi(S):S}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ir==1?Wi(x.substr(1,x.length-1)):x},set:function(S){S=S.toString(),x=this instanceof ir==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 ir==0?Rs(g,this.objId,this.scope):g},set:function(S){S=S.toString(),g=this instanceof ir==0?S.substr(0,1)==="("?Wi(S.substr(1,S.length-2)):Wi(S):S}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ir==1?Wi(g.substr(1,g.length-1)):g},set:function(S){S=S.toString(),g=this instanceof ir==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}}})};_r(Qr,fn);var Ki=function(){Qr.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};_r(Ki,Qr);var $i=function(){Ki.call(this),this.fontName="helvetica",this.combo=!1};_r($i,Ki);var Xi=function(){$i.call(this),this.combo=!0};_r(Xi,$i);var Fo=function(){Xi.call(this),this.edit=!0};_r(Fo,Xi);var ir=function(){Qr.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+" ("+Ci(e(t[n]))+")");return a.push(">>"),a.join(`
31
- `)}},set:function(e){be(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}})};_r(ir,Qr);var Io=function(){ir.call(this),this.pushButton=!0};_r(Io,ir);var Zi=function(){ir.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:[]}})};_r(Zi,ir);var Ro=function(){var r,t;Qr.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+" ("+Ci(a(n[i]))+")");return h.push(">>"),h.join(`
32
- `)},set:function(a){be(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)};_r(Ro,Qr),Zi.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()}},Zi.prototype.createOption=function(r){var t=new Ro;return t.Parent=this,t.optionName=r,this.Kids.push(t),_2.call(this.scope,t),t};var Eo=function(){ir.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ft.CheckBox.createAppearanceStream()};_r(Eo,ir);var Li=function(){Qr.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}})};_r(Li,Qr);var Oo=function(){Li.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};_r(Oo,Li);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=hn(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=el(r,r.caption);return e.push("0.749023 g"),e.push("0 0 "+Xt(Ft.internal.getWidth(r))+" "+Xt(Ft.internal.getHeight(r))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+n+" "+Xt(i.fontSize)+" Tf "+a),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join(`
33
- `),t},YesNormal:function(r){var t=hn(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=el(r,r.caption);return a.push("1 g"),a.push("0 0 "+Xt(h)+" "+Xt(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Xt(h-1)+" "+Xt(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+Xt(l.fontSize)+" Tf "+n),a.push(l.text),a.push("ET"),a.push("Q"),t.stream=a.join(`
34
- `),t},OffPushDown:function(r){var t=hn(r);t.scope=r.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(Ft.internal.getWidth(r))+" "+Xt(Ft.internal.getHeight(r))+" re"),e.push("f"),t.stream=e.join(`
35
- `),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=hn(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 "+$n(Ft.internal.getWidth(r)/2)+" "+$n(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(`
36
- `),t},YesPushDown:function(r){var t=hn(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 "+$n(Ft.internal.getWidth(r)/2)+" "+$n(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 "+$n(Ft.internal.getWidth(r)/2)+" "+$n(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(`
37
- `),t},OffPushDown:function(r){var t=hn(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 "+$n(Ft.internal.getWidth(r)/2)+" "+$n(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(`
38
- `),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=hn(r);t.scope=r.scope;var e=[],n=Ft.internal.calculateCross(r);return e.push("q"),e.push("1 1 "+Xt(Ft.internal.getWidth(r)-2)+" "+Xt(Ft.internal.getHeight(r)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(n.x1.x)+" "+Xt(n.x1.y)+" m"),e.push(Xt(n.x2.x)+" "+Xt(n.x2.y)+" l"),e.push(Xt(n.x4.x)+" "+Xt(n.x4.y)+" m"),e.push(Xt(n.x3.x)+" "+Xt(n.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join(`
39
- `),t},YesPushDown:function(r){var t=hn(r);t.scope=r.scope;var e=Ft.internal.calculateCross(r),n=[];return n.push("0.749023 g"),n.push("0 0 "+Xt(Ft.internal.getWidth(r))+" "+Xt(Ft.internal.getHeight(r))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Xt(Ft.internal.getWidth(r)-2)+" "+Xt(Ft.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),n.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),n.push(Xt(e.x4.x)+" "+Xt(e.x4.y)+" m"),n.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
40
- `),t},OffPushDown:function(r){var t=hn(r);t.scope=r.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(Ft.internal.getWidth(r))+" "+Xt(Ft.internal.getHeight(r))+" re"),e.push("f"),t.stream=e.join(`
41
- `),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 be(r)==="object"&&(t=Hu(r.Rect[2])),t},Ft.internal.getHeight=function(r){var t=0;return be(r)==="object"&&(t=Hu(r.Rect[3])),t};var _2=Te.addField=function(r){if(A2(this,r),!(r instanceof Qr))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};Te.AcroFormChoiceField=Ki,Te.AcroFormListBox=$i,Te.AcroFormComboBox=Xi,Te.AcroFormEditBox=Fo,Te.AcroFormButton=ir,Te.AcroFormPushButton=Io,Te.AcroFormRadioButton=Zi,Te.AcroFormCheckBox=Eo,Te.AcroFormTextField=Li,Te.AcroFormPasswordField=Oo,Te.AcroFormAppearance=Ft,Te.AcroForm={ChoiceField:Ki,ListBox:$i,ComboBox:Xi,EditBox:Fo,Button:ir,PushButton:Io,RadioButton:Zi,CheckBox:Eo,TextField:Li,PasswordField:Oo,Appearance:Ft},Rt.AcroForm={ChoiceField:Ki,ListBox:$i,ComboBox:Xi,EditBox:Fo,Button:ir,PushButton:Io,RadioButton:Zi,CheckBox:Eo,TextField:Li,PasswordField:Oo,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,E){var z,U,nt,lt,ht,et=e;if((E=E||e)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(mt(L))for(ht in n)for(nt=n[ht],z=0;z<nt.length;z+=1){for(lt=!0,U=0;U<nt[z].length;U+=1)if(nt[z][U]!==void 0&&nt[z][U]!==L[U]){lt=!1;break}if(lt===!0){et=ht;break}}else for(ht in n)for(nt=n[ht],z=0;z<nt.length;z+=1){for(lt=!0,U=0;U<nt[z].length;U+=1)if(nt[z][U]!==void 0&&nt[z][U]!==L.charCodeAt(U)){lt=!1;break}if(lt===!0){et=ht;break}}return et===e&&E!==e&&(et=E),et},i=function L(E){for(var z=this.internal.write,U=this.internal.putStream,nt=(0,this.internal.getFilters)();nt.indexOf("FlateEncode")!==-1;)nt.splice(nt.indexOf("FlateEncode"),1);E.objectId=this.internal.newObject();var lt=[];if(lt.push({key:"Type",value:"/XObject"}),lt.push({key:"Subtype",value:"/Image"}),lt.push({key:"Width",value:E.width}),lt.push({key:"Height",value:E.height}),E.colorSpace===S.INDEXED?lt.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(E.palette.length/3-1)+" "+("sMask"in E&&E.sMask!==void 0?E.objectId+2:E.objectId+1)+" 0 R]"}):(lt.push({key:"ColorSpace",value:"/"+E.colorSpace}),E.colorSpace===S.DEVICE_CMYK&&lt.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),lt.push({key:"BitsPerComponent",value:E.bitsPerComponent}),"decodeParameters"in E&&E.decodeParameters!==void 0&&lt.push({key:"DecodeParms",value:"<<"+E.decodeParameters+">>"}),"transparency"in E&&Array.isArray(E.transparency)&&E.transparency.length>0){for(var ht="",et=0,ct=E.transparency.length;et<ct;et++)ht+=E.transparency[et]+" "+E.transparency[et]+" ";lt.push({key:"Mask",value:"["+ht+"]"})}E.sMask!==void 0&&lt.push({key:"SMask",value:E.objectId+1+" 0 R"});var Nt=E.filter!==void 0?["/"+E.filter]:void 0;if(U({data:E.data,additionalKeyValues:lt,alreadyAppliedFilters:Nt,objectId:E.objectId}),z("endobj"),"sMask"in E&&E.sMask!==void 0){var wt,_=(wt=E.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:E.bitsPerComponent,B={width:E.width,height:E.height,colorSpace:"DeviceGray",bitsPerComponent:_,data:E.sMask};"filter"in E&&(B.decodeParameters="/Predictor ".concat(E.predictor," /Colors 1 /BitsPerComponent ").concat(_," /Columns ").concat(E.width),B.filter=E.filter),L.call(this,B)}if(E.colorSpace===S.INDEXED){var R=this.internal.newObject();U({data:K(new Uint8Array(E.palette)),objectId:R}),z("endobj")}},h=function(){var L=this.internal.collections[t+"images"];for(var E in L)i.call(this,L[E])},l=function(){var L,E=this.internal.collections[t+"images"],z=this.internal.write;for(var U in E)z("/I"+(L=E[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},w=function(L){return typeof r["process"+L.toUpperCase()]=="function"},x=function(L){return be(L)==="object"&&L.nodeType===1},g=function(L,E){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var z=""+L.getAttribute("src");if(z.indexOf("data:image/")===0)return Co(unescape(z).split("base64,").pop());var U=r.loadFile(z,!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(E){case"PNG":nt="image/png";break;case"WEBP":nt="image/webp";break;default:nt="image/jpeg"}return Co(L.toDataURL(nt,1).split("base64,").pop())}},P=function(L){var E=this.internal.collections[t+"images"];if(E){for(var z in E)if(L===E[z].alias)return E[z]}},C=function(L,E,z){return L||E||(L=-96,E=-96),L<0&&(L=-1*z.width*72/L/this.internal.scaleFactor),E<0&&(E=-1*z.height*72/E/this.internal.scaleFactor),L===0&&(L=E*z.width/z.height),E===0&&(E=L*z.height/z.width),[L,E]},j=function(L,E,z,U,nt,lt){var ht=C.call(this,z,U,nt),et=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,Nt=f.call(this);if(z=ht[0],U=ht[1],Nt[nt.index]=nt,lt){lt*=Math.PI/180;var wt=Math.cos(lt),_=Math.sin(lt),B=function(V){return V.toFixed(4)},R=[B(wt),B(_),B(-1*_),B(wt),0,0,"cm"]}this.internal.write("q"),lt?(this.internal.write([1,"0","0",1,et(L),ct(E+U),"cm"].join(" ")),this.internal.write(R.join(" ")),this.internal.write([et(z),"0","0",et(U),"0","0","cm"].join(" "))):this.internal.write([et(z),"0","0",et(U),et(L),ct(E+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"},G=r.__addimage__.sHashCode=function(L){var E,z,U=0;if(typeof L=="string")for(z=L.length,E=0;E<z;E++)U=(U<<5)-U+L.charCodeAt(E),U|=0;else if(mt(L))for(z=L.byteLength/2,E=0;E<z;E++)U=(U<<5)-U+L[E],U|=0;return U},M=r.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var E=!0;return L.length===0&&(E=!1),L.length%4!=0&&(E=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(E=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(E=!1),E},it=r.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var E=L.indexOf(",");return E<0?null:L.substring(0,E).trim().endsWith("base64")?L.substring(E+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},pt=r.__addimage__.binaryStringToUint8Array=function(L){for(var E=L.length,z=new Uint8Array(E),U=0;U<E;U++)z[U]=L.charCodeAt(U);return z},K=r.__addimage__.arrayBufferToBinaryString=function(L){for(var E="",z=mt(L)?L:new Uint8Array(L),U=0;U<z.length;U+=8192)E+=String.fromCharCode.apply(null,z.subarray(U,U+8192));return E};r.addImage=function(){var L,E,z,U,nt,lt,ht,et,ct;if(typeof arguments[1]=="number"?(E=e,z=arguments[1],U=arguments[2],nt=arguments[3],lt=arguments[4],ht=arguments[5],et=arguments[6],ct=arguments[7]):(E=arguments[1],z=arguments[2],U=arguments[3],nt=arguments[4],lt=arguments[5],ht=arguments[6],et=arguments[7],ct=arguments[8]),be(L=arguments[0])==="object"&&!x(L)&&"imageData"in L){var Nt=L;L=Nt.imageData,E=Nt.format||E||e,z=Nt.x||z||0,U=Nt.y||U||0,nt=Nt.w||Nt.width||nt,lt=Nt.h||Nt.height||lt,ht=Nt.alias||ht,et=Nt.compression||et,ct=Nt.rotation||Nt.angle||ct}var wt=this.internal.getFilters();if(et===void 0&&wt.indexOf("FlateEncode")!==-1&&(et="SLOW"),isNaN(z)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var _=T.call(this,L,E,ht,et);return j.call(this,z,U,nt,lt,_,ct),this};var T=function(L,E,z,U){var nt,lt,ht;if(typeof L=="string"&&a(L)===e){L=unescape(L);var et=Q(L,!1);(et!==""||(et=r.loadFile(L,!0))!==void 0)&&(L=et)}if(x(L)&&(L=g(L,E)),E=a(L,E),!w(E))throw new Error("addImage does not support files of type '"+E+"', please ensure that a plugin for '"+E+"' support is added.");if(((ht=z)==null||ht.length===0)&&(z=(function(ct){return typeof ct=="string"||mt(ct)?G(ct):mt(ct.data)?G(ct.data):null})(L)),(nt=P.call(this,z))||(L instanceof Uint8Array||E==="RGBA"||(lt=L,L=pt(L)),nt=this["process"+E.toUpperCase()](L,p.call(this),z,(function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in r.image_compression?ct:W.NONE})(U),lt)),!nt)throw new Error("An unknown error occurred whilst processing the image.");return nt},Q=r.__addimage__.convertBase64ToBinaryString=function(L,E){E=typeof E!="boolean"||E;var z,U="";if(typeof L=="string"){var nt;z=(nt=it(L))!==null&&nt!==void 0?nt:L;try{U=Co(z)}catch(lt){if(E)throw M(z)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+lt.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};r.getImageProperties=function(L){var E,z,U="";if(x(L)&&(L=g(L)),typeof L=="string"&&a(L)===e&&((U=Q(L,!1))===""&&(U=r.loadFile(L)||""),L=U),z=a(L),!w(z))throw new Error("addImage does not support files of type '"+z+"', please ensure that a plugin for '"+z+"' support is added.");if(L instanceof Uint8Array||(L=pt(L)),!(E=this["process"+z.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return E.fileType=z,E}})(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,w=0;w<f.length&&!p;w++)switch((n=f[w]).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 G=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 "+G,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 it=this.annotations._nameMap[n.options.name];n.options.pageNumber=it.page,n.options.top=it.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},w=r.__arabicParser__.resolveLigatures=function(C){var j=0,S=e,W="",G=0;for(j=0;j<C.length;j+=1)S[C.charCodeAt(j)]!==void 0?(G++,typeof(S=S[C.charCodeAt(j)])=="number"&&(W+=String.fromCharCode(S),S=e,G=0),j===C.length-1&&(S=e,W+=C.charAt(j-(G-1)),j-=G-1,G=0)):(S=e,W+=C.charAt(j-G),j-=G,G=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,G="",M="",it="",mt=(C=C||"").split("\\s+"),pt=[];for(j=0;j<mt.length;j+=1){for(pt.push(""),S=0;S<mt[j].length;S+=1)G=mt[j][S],M=mt[j][S-1],it=mt[j][S+1],h(G)?(W=x(G,M,it),pt[j]+=W!==-1?String.fromCharCode(t[G.charCodeAt(0)][W]):G):pt[j]+=G;pt[j]=w(pt[j])}return pt.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 w=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return w},set:function(C){w=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(),w=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(G,M){return G.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:w})*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,w=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+w.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=w.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,w,x){if(n.call(this),!p)throw new Error("No data for PDF table.");var g,P,C,j,S=[],W=[],G=[],M={},it={},mt=[],pt=[],K=(x=x||{}).autoSize||!1,T=x.printHeaders!==!1,Q=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),E=typeof x.padding=="number"?x.padding:3,z=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=Q,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=U,this.setFontSize(Q),w==null)W=S=Object.keys(p[0]),G=S.map(function(){return"left"});else if(Array.isArray(w)&&be(w[0])==="object")for(S=w.map(function(Nt){return Nt.name}),W=w.map(function(Nt){return Nt.prompt||Nt.name||""}),G=w.map(function(Nt){return Nt.align||"left"}),g=0;g<w.length;g+=1)it[w[g].name]=.7499990551181103*w[g].width;else Array.isArray(w)&&typeof w[0]=="string"&&(W=S=w,G=S.map(function(){return"left"}));if(K||Array.isArray(w)&&typeof w[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);it[j]=Math.max.apply(null,mt)+E+E,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=G[g];var lt=l.call(this,nt,it);pt=S.map(function(Nt){return new i(u,f,it[Nt],lt,nt[Nt].text,void 0,nt[Nt].align)}),this.setTableHeaderRow(pt),this.printHeaderRow(1,!1)}var ht=w.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 et=l.call(this,p[g],it);for(C=0;C<S.length;C+=1){var ct=p[g][S[C]];"cellStart"in x&&x.cellStart instanceof Function&&x.cellStart({row:g,col:C,data:ct},this),h.call(this,new i(u,f,it[S[C]],et,ct,g+2,ht[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,w=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*w/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 w=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(w[0],w[1],w[2],w[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"],rl=Qh(ef),rf=[100,200,300,400,500,600,700,800,900],N2=Qh(rf);function Ts(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 rl[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 So,Ju,Ku,Gi,ko,$u,Xu,Zu,Ms=["times"];function Qu(r,t,e,n,a){var i=4,h=eh;switch(a){case Rt.API.image_compression.FAST:i=1,h=th;break;case Rt.API.image_compression.MEDIUM:i=6,h=rh;break;case Rt.API.image_compression.SLOW:i=9,h=nh}r=(function(u,f,p,w){for(var x,g=u.length/f,P=new Uint8Array(u.length+g),C=[P2,th,eh,rh,nh],j=0;j<g;j+=1){var S=j*f,W=u.subarray(S,S+f);if(w)P.set(w(W,p,x),S+j);else{for(var G=C.length,M=[],it=0;it<G;it+=1)M[it]=C[it](W,p,x);var mt=F2(M.concat());P.set(M[mt],S+j)}x=W}return P})(r,t,Math.ceil(e*n/8),h);var l=Ks(r,{level:i});return Rt.API.__addimage__.arrayBufferToBinaryString(l)}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 qs(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,w){if(p+1<f.byteLength)f.setUint16(p,w,!1);else{var x=w>>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=[],w=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++];w=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,G=r[t++]|r[t++]<<8,M=r[t++],it=M>>6&1,mt=1<<1+(7&M),pt=l,K=u,T=!1;M>>7&&(T=!0,pt=t,K=mt,t+=3*mt);var Q=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:G,has_local_palette:T,palette_offset:pt,palette_size:K,data_offset:Q,data_length:t-Q,transparent_index:x,interlaced:!!it,delay:w,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(E){if(E<0||E>=p.length)throw new Error("Frame index out of range.");return p[E]},this.decodeAndBlitFrameBGRA=function(E,z){var U=this.frameInfo(E),nt=U.width*U.height,lt=new Uint8Array(nt);ah(r,U.data_offset,lt,nt);var ht=U.palette_offset,et=U.transparent_index;et===null&&(et=256);var ct=U.width,Nt=e-ct,wt=ct,_=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,rt=0,ot=lt.length;rt<ot;++rt){var at=lt[rt];if(wt===0&&(wt=ct,(R+=V)>=B&&(V=4*Nt+4*e*(J-1),R=_+(ct+Nt)*(J<<1),J>>=1)),at===et)R+=4;else{var vt=r[ht+3*at],At=r[ht+3*at+1],kt=r[ht+3*at+2];z[R++]=kt,z[R++]=At,z[R++]=vt,z[R++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(E,z){var U=this.frameInfo(E),nt=U.width*U.height,lt=new Uint8Array(nt);ah(r,U.data_offset,lt,nt);var ht=U.palette_offset,et=U.transparent_index;et===null&&(et=256);var ct=U.width,Nt=e-ct,wt=ct,_=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,rt=0,ot=lt.length;rt<ot;++rt){var at=lt[rt];if(wt===0&&(wt=ct,(R+=V)>=B&&(V=4*Nt+4*e*(J-1),R=_+(ct+Nt)*(J<<1),J>>=1)),at===et)R+=4;else{var vt=r[ht+3*at],At=r[ht+3*at+1],kt=r[ht+3*at+2];z[R++]=vt,z[R++]=At,z[R++]=kt,z[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,w=0,x=0,g=r[t++],P=new Int32Array(4096),C=null;;){for(;p<16&&g!==0;)w|=r[t++]<<p,p+=8,g===1?g=r[t++]:--g;if(p<u)break;var j=w&f;if(w>>=u,p-=u,j!==i){if(j===h)break;for(var S=j<l?j:C,W=0,G=S;G>i;)G=P[G]>>8,++W;var M=G;if(x+W+(S!==j?1:0)>n)return void Se.log("Warning, gif stream longer than expected.");e[x++]=M;var it=x+=W;for(S!==j&&(e[x++]=M),G=S;W--;)G=P[G],e[--it]=255&G,G>>=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&&Se.log("Warning, gif stream shorter than expected."),e}function Us(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),w=new Array(65535),x=new Array(65535),g=new Array(64),P=new Array(64),C=[],j=0,S=7,W=new Array(64),G=new Array(64),M=new Array(64),it=new Array(256),mt=new Array(2048),pt=[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],K=[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],Q=[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],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[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 lt(_,B){for(var R=0,V=0,J=new Array,rt=1;rt<=16;rt++){for(var ot=1;ot<=_[rt];ot++)J[B[V]]=[],J[B[V]][0]=R,J[B[V]][1]=rt,V++,R++;R*=2}return J}function ht(_){for(var B=_[0],R=_[1]-1;R>=0;)B&1<<R&&(j|=1<<S),R--,--S<0&&(j==255?(et(255),et(0)):et(j),S=7,j=0)}function et(_){C.push(_)}function ct(_){et(_>>8&255),et(255&_)}function Nt(_,B,R,V,J){for(var rt,ot=J[0],at=J[240],vt=(function(_t,Tt){var St,ie,Ut,de,Zt,Qt,xe,ae,Mt,Gt,qt=0;for(Mt=0;Mt<8;++Mt){St=_t[qt],ie=_t[qt+1],Ut=_t[qt+2],de=_t[qt+3],Zt=_t[qt+4],Qt=_t[qt+5],xe=_t[qt+6];var ke=St+(ae=_t[qt+7]),pe=St-ae,Bt=ie+xe,te=ie-xe,Ae=Ut+Qt,Ht=Ut-Qt,ue=de+Zt,ee=de-Zt,Me=ke+ue,Xe=ke-ue,_e=Bt+Ae,Jt=Bt-Ae;_t[qt]=Me+_e,_t[qt+4]=Me-_e;var ve=.707106781*(Jt+Xe);_t[qt+2]=Xe+ve,_t[qt+6]=Xe-ve;var Qn=.382683433*((Me=ee+Ht)-(Jt=te+pe)),hr=.5411961*Me+Qn,dn=1.306562965*Jt+Qn,en=.707106781*(_e=Ht+te),Wt=pe+en,pn=pe-en;_t[qt+5]=pn+hr,_t[qt+3]=pn-hr,_t[qt+1]=Wt+dn,_t[qt+7]=Wt-dn,qt+=8}for(qt=0,Mt=0;Mt<8;++Mt){St=_t[qt],ie=_t[qt+8],Ut=_t[qt+16],de=_t[qt+24],Zt=_t[qt+32],Qt=_t[qt+40],xe=_t[qt+48];var gn=St+(ae=_t[qt+56]),jr=St-ae,Br=ie+xe,je=ie-xe,nr=Ut+Qt,ar=Ut-Qt,ti=de+Zt,En=de-Zt,Wr=gn+ti,rn=gn-ti,Gr=Br+nr,Vr=Br-nr;_t[qt]=Wr+Gr,_t[qt+32]=Wr-Gr;var Dr=.707106781*(Vr+rn);_t[qt+16]=rn+Dr,_t[qt+48]=rn-Dr;var ei=.382683433*((Wr=En+ar)-(Vr=je+jr)),nn=.5411961*Wr+ei,ri=1.306562965*Vr+ei,Fi=.707106781*(Gr=ar+je),Ii=jr+Fi,Ei=jr-Fi;_t[qt+40]=Ei+nn,_t[qt+24]=Ei-nn,_t[qt+8]=Ii+ri,_t[qt+56]=Ii-ri,qt++}for(Mt=0;Mt<64;++Mt)Gt=_t[Mt]*Tt[Mt],g[Mt]=Gt>0?Gt+.5|0:Gt-.5|0;return g})(_,B),At=0;At<64;++At)P[pt[At]]=vt[At];var kt=P[0]-R;R=P[0],kt==0?ht(V[0]):(ht(V[x[rt=32767+kt]]),ht(w[rt]));for(var Pt=63;Pt>0&&P[Pt]==0;)Pt--;if(Pt==0)return ht(ot),R;for(var st,D=1;D<=Pt;){for(var le=D;P[D]==0&&D<=Pt;)++D;var ne=D-le;if(ne>=16){st=ne>>4;for(var zt=1;zt<=st;++zt)ht(at);ne&=15}rt=32767+P[D],ht(J[(ne<<4)+x[rt]]),ht(w[rt]),D++}return Pt!=63&&ht(ot),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[pt[V]]=J}for(var rt=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ot=0;ot<64;ot++){var at=h((rt[ot]*B+50)/100);at=Math.min(Math.max(at,1),255),u[pt[ot]]=at}for(var vt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],At=0,kt=0;kt<8;kt++)for(var Pt=0;Pt<8;Pt++)f[At]=1/(l[pt[At]]*vt[kt]*vt[Pt]*8),p[At]=1/(u[pt[At]]*vt[kt]*vt[Pt]*8),At++})(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),i=_)}this.encode=function(_,B){B&&wt(B),C=new Array,j=0,S=7,ct(65496),ct(65504),ct(16),et(74),et(70),et(73),et(70),et(0),et(1),et(1),et(0),ct(1),ct(1),et(0),et(0),(function(){ct(65499),ct(132),et(0);for(var ie=0;ie<64;ie++)et(l[ie]);et(1);for(var Ut=0;Ut<64;Ut++)et(u[Ut])})(),(function(ie,Ut){ct(65472),ct(17),et(8),ct(Ut),ct(ie),et(3),et(1),et(17),et(0),et(2),et(17),et(1),et(3),et(17),et(1)})(_.width,_.height),(function(){ct(65476),ct(418),et(0);for(var ie=0;ie<16;ie++)et(K[ie+1]);for(var Ut=0;Ut<=11;Ut++)et(T[Ut]);et(16);for(var de=0;de<16;de++)et(Q[de+1]);for(var Zt=0;Zt<=161;Zt++)et(L[Zt]);et(1);for(var Qt=0;Qt<16;Qt++)et(E[Qt+1]);for(var xe=0;xe<=11;xe++)et(z[xe]);et(17);for(var ae=0;ae<16;ae++)et(U[ae+1]);for(var Mt=0;Mt<=161;Mt++)et(nt[Mt])})(),ct(65498),ct(12),et(3),et(1),et(0),et(2),et(17),et(3),et(17),et(0),et(63),et(0);var R=0,V=0,J=0;j=0,S=7,this.encode.displayName="_encode_";for(var rt,ot,at,vt,At,kt,Pt,st,D,le=_.data,ne=_.width,zt=_.height,_t=4*ne,Tt=0;Tt<zt;){for(rt=0;rt<_t;){for(At=_t*Tt+rt,Pt=-1,st=0,D=0;D<64;D++)kt=At+(st=D>>3)*_t+(Pt=4*(7&D)),Tt+st>=zt&&(kt-=_t*(Tt+1+st-zt)),rt+Pt>=_t&&(kt-=rt+Pt-_t+4),ot=le[kt++],at=le[kt++],vt=le[kt++],W[D]=(mt[ot]+mt[at+256|0]+mt[vt+512|0]>>16)-128,G[D]=(mt[ot+768|0]+mt[at+1024|0]+mt[vt+1280|0]>>16)-128,M[D]=(mt[ot+1280|0]+mt[at+1536|0]+mt[vt+1792|0]>>16)-128;R=Nt(W,f,R,t,n),V=Nt(G,p,V,e,a),J=Nt(M,p,J,e,a),rt+=32}Tt+=8}if(S>=0){var St=[];St[1]=S+1,St[0]=(1<<S+1)-1,ht(St)}return ct(65497),new Uint8Array(C)},r=r||50,(function(){for(var _=String.fromCharCode,B=0;B<256;B++)it[B]=_(B)})(),t=lt(K,T),e=lt(E,z),n=lt(Q,L),a=lt(U,nt),(function(){for(var _=1,B=2,R=1;R<=15;R++){for(var V=_;V<B;V++)x[32767+V]=R,w[32767+V]=[],w[32767+V][1]=R,w[32767+V][0]=V;for(var J=-(B-1);J<=-_;J++)x[32767+J]=R,w[32767+J]=[],w[32767+J][1]=R,w[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)}function Xr(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,Q,L){for(var E=0;4>E;E++)if(T[Q+E]!=L.charCodeAt(E))return!0;return!1}function n(T,Q,L,E,z){for(var U=0;U<z;U++)T[Q+U]=L[E+U]}function a(T,Q,L,E){for(var z=0;z<E;z++)T[Q+z]=L}function i(T){return new Int32Array(T)}function h(T,Q){for(var L=[],E=0;E<T;E++)L.push(new Q);return L}function l(T,Q){var L=[];return(function E(z,U,nt){for(var lt=nt[U],ht=0;ht<lt&&(z.push(nt.length>U+1?[]:new Q),!(nt.length<U+1));ht++)E(z[ht],U+1,nt)})(L,0,T),L}var u=function(){var T=this;function Q(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,b){t(!(v%d));do o[s+(v-=d)]=b;while(0<v)}function E(o,s,d,v,b){if(t(2328>=b),512>=b)var y=i(512);else if((y=i(b))==null)return 0;return(function(A,N,k,F,H,tt){var I,Y,X=N,ut=1<<k,Z=i(16),ft=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;++Z[F[Y]]}if(Z[0]==H)return 0;for(ft[1]=0,I=1;15>I;++I){if(Z[I]>1<<I)return 0;ft[I+1]=ft[I]+Z[I]}for(Y=0;Y<H;++Y)I=F[Y],0<F[Y]&&(tt[ft[I]++]=Y);if(ft[15]==1)return(F=new z).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-=Z[I]))return 0;for(;0<Z[I];--Z[I])(F=new z).g=I,F.value=tt[Y++],L(A,X+Dt,H,Et,F),Dt=Q(Dt,I)}for(I=k+1,H=2;15>=I;++I,H<<=1){if(Ct+=oe<<=1,0>(oe-=Z[I]))return 0;for(;0<Z[I];--Z[I]){if(F=new z,(Dt&bt)!=xt){for(X+=Et,gt=1<<(xt=I)-k;15>xt&&!(0>=(gt-=Z[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=Q(Dt,I)}}return Ct!=2*ft[15]-1?0:ut})(o,s,d,v,b,y)}function z(){this.value=this.g=0}function U(){this.value=this.g=0}function nt(){this.G=h(5,z),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(wi,U)}function lt(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,ot(o)}function ht(o,s){for(var d=0;0<s--;)d|=vt(o,128)<<s;return d}function et(o,s){var d=ht(o,s);return at(o)?-d:d}function ct(o,s,d,v){var b,y=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),b=0;b<v;++b)y+=s[d+b]<<8*b;o.Ra=y,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]<<Rn-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<=Lr){var d=R(o)&Nr[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&Rn-1)>>>0}function V(o){return t(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>Rn}function J(o,s){o.u=s,o.h=V(o)}function rt(o){o.u>=An&&(t(o.u>=An),Nt(o))}function ot(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 at(o){return ht(o,1)}function vt(o,s){var d=o.Ca;0>o.b&&ot(o);var v=o.b,b=d*s>>>8,y=(o.I>>>v>b)+0;for(y?(d-=b,o.I-=b+1<<v>>>0):d=b+1,v=d,b=0;256<=v;)b+=8,v>>=8;return v=7^b+Tn[v],o.b-=v,o.Ca=(d<<v)-1,y}function At(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 ne(){this.X=[],this.Xa=this.Mb=0}function zt(o,s,d,v){t(d!=null),t(v!=null);var b=d[0],y=v[0];return b==0&&(b=(o*y+s/2)/s),y==0&&(y=(s*b+o/2)/o),0>=b||0>=y?0:(d[0]=b,v[0]=y,1)}function _t(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,b,y,A,N,k){var F;for(F=0;F<A;++F){var H=T[o](N[k+F-1],b,y+F);N[k+F]=Tt(d[v+F],H)}}}function ie(){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 Zt(o,s){return de(o+(o-s+.5>>1))}function Qt(o,s,d){return Math.abs(s-d)-Math.abs(o-d)}function xe(o,s,d,v,b,y,A){for(v=y[A-1],d=0;d<b;++d)y[A+d]=v=Tt(o[s+d],v)}function ae(o,s,d,v,b){var y;for(y=0;y<d;++y){var A=o[s+y],N=A>>8&255,k=16711935&(k=(k=16711935&A)+((N<<16)+N));v[b+y]=(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,b,y){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)),b[y+A]=(4278255360&N)+(H<<16)+F}}function qt(o,s,d,v,b){T[s]=function(y,A,N,k,F,H,tt,I,Y){for(k=tt;k<I;++k)for(tt=0;tt<Y;++tt)F[H++]=b(N[v(y[A++])])},T[o]=function(y,A,N,k,F,H,tt){var I=8>>y.b,Y=y.Ea,X=y.K[0],ut=y.w;if(8>I)for(y=(1<<y.b)-1,ut=(1<<I)-1;A<N;++A){var Z,ft=0;for(Z=0;Z<Y;++Z)Z&y||(ft=v(k[F++])),H[tt++]=b(X[ft&ut]),ft>>=I}else T["VP8LMapColor"+d](k,F,X,ut,H,tt,A,N,Y)}}function ke(o,s,d,v,b){for(d=s+d;s<d;){var y=o[s++];v[b++]=y>>16&255,v[b++]=y>>8&255,v[b++]=255&y}}function pe(o,s,d,v,b){for(d=s+d;s<d;){var y=o[s++];v[b++]=y>>16&255,v[b++]=y>>8&255,v[b++]=255&y,v[b++]=y>>24&255}}function Bt(o,s,d,v,b){for(d=s+d;s<d;){var y=(A=o[s++])>>16&240|A>>12&15,A=240&A|A>>28&15;v[b++]=y,v[b++]=A}}function te(o,s,d,v,b){for(d=s+d;s<d;){var y=(A=o[s++])>>16&248|A>>13&7,A=A>>5&224|A>>3&31;v[b++]=y,v[b++]=A}}function Ae(o,s,d,v,b){for(d=s+d;s<d;){var y=o[s++];v[b++]=255&y,v[b++]=y>>8&255,v[b++]=y>>16&255}}function Ht(o,s,d,v,b,y){if(y==0)for(d=s+d;s<d;)At(v,((y=o[s++])[0]>>24|y[1]>>8&65280|y[2]<<8&16711680|y[3]<<24)>>>0),b+=32;else n(v,b,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 ee(o){return o==ss||o==ls||o==so||o==us}function Me(){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 Me,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 Qn(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function hr(o,s){var d=o.T,v=s.ba.f.RGBA,b=v.eb,y=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,Z=s.Nc,ft=o.ka,gt=o.ka+o.T,xt=o.U,bt=xt+1>>1;for(ft==0?A(N,k,null,null,F,H,tt,I,F,H,tt,I,b,y,null,null,xt):(A(s.ec,s.fc,N,k,Y,X,ut,Z,F,H,tt,I,b,y-v.A,b,y,xt),++d);ft+2<gt;ft+=2)Y=F,X=H,ut=tt,Z=I,H+=o.Rc,I+=o.Rc,y+=2*v.A,A(N,(k+=2*o.fa)-o.fa,N,k,Y,X,ut,Z,F,H,tt,I,b,y-v.A,b,y,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&gt||A(N,k,null,null,F,H,tt,I,F,H,tt,I,b,y+v.A,null,null,xt),d}function dn(o,s,d){var v=o.F,b=[o.J];if(v!=null){var y=o.U,A=s.ba.S,N=A==oo||A==so;s=s.ba.f.RGBA;var k=[0],F=o.ka;k[0]=o.T,o.Kb&&(F==0?--k[0]:(--F,b[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,b[0],o.width,y,k,H,F+(N?0:3),s.A),t(d==k),o&&ee(A)&&_a(H,F,N,y,k,s.A)}return 0}function en(o){var s=o.ma,d=s.ba.S,v=11>d,b=d==io||d==ao||d==oo||d==os||d==12||ee(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!ga(s.Oa,o,b?11:12))return 0;if(b&&ee(d)&&Za(),o.da)alert("todo:use_scaling");else{if(v){if(s.Ib=Qn,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=hr,Za()}}else alert("todo:EmitYUV");b&&(s.Jb=dn,v&&Tr())}if(v&&!jl){for(o=0;256>o;++o)qf[o]=89858*(o-128)+uo>>lo,Hf[o]=-22014*(o-128)+uo,zf[o]=-45773*(o-128),Uf[o]=113618*(o-128)+uo>>lo;for(o=La;o<cs;++o)s=76283*(o-16)+uo>>lo,Wf[o-La]=Be(s,255),Gf[o-La]=Be(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 pn(o){o.ma.memory=null}function gn(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 jr(o,s){if(4>o)return o+1;var d=o-2>>1;return(2+(1&o)<<d)+wt(s,d)+1}function Br(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),b=o[s+=255&v].g-8;return 0<b&&(J(d,d.u+8),v=R(d),s+=o[s].value,s+=v&(1<<b)-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 ar(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 ti(o,s,d,v){var b=o.ab,y=o.c*s,A=o.C;s=A+s;var N=d,k=v;for(v=o.Ta,d=o.Ua;0<b--;){var F=o.gc[b],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:Ue(I,Y,(tt-H)*X,k,N);break;case 0:var ut=H,Z=tt,ft=k,gt=N,xt=(Et=F).Ea;ut==0&&(ma(I,Y,null,null,1,ft,gt),xe(I,Y+1,0,0,xt-1,ft,gt+1),Y+=xt,gt+=xt,++ut);for(var bt=1<<Et.b,Dt=bt-1,Ct=_t(xt,Et.b),oe=Et.K,Et=Et.w+(ut>>Et.b)*Ct;ut<Z;){var he=oe,tr=Et,se=1;for(qi(I,Y,ft,gt-xt,1,ft,gt);se<xt;){var Ot=(se&~Dt)+bt;Ot>xt&&(Ot=xt),(0,wa[he[tr++]>>8&15])(I,Y+ +se,ft,gt+se-xt,Ot-se,ft,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,Z=Y,xt=(I=F.Ea)-(gt=I&~(ft=(Y=1<<F.b)-1)),ut=_t(I,F.b),bt=F.K,F=F.w+(H>>F.b)*ut;H<tt;){for(Dt=bt,Ct=F,oe=new ie,Et=Z+gt,he=Z+I;Z<Et;)Mt(Dt[Ct++],oe),ya(oe,X,Z,Y,k,N),Z+=Y,N+=Y;Z<he&&(Mt(Dt[Ct++],oe),ya(oe,X,Z,xt,k,N),Z+=xt,N+=xt),++H&ft||(F+=ut)}break;case 3:if(I==k&&Y==N&&0<F.b){for(Z=k,I=X=N+(tt-H)*X-(gt=(tt-H)*_t(F.Ea,F.b)),Y=k,ft=N,ut=[],gt=(xt=gt)-1;0<=gt;--gt)ut[gt]=Y[ft+gt];for(gt=xt-1;0<=gt;--gt)Z[I+gt]=ut[gt];to(F,H,tt,k,X,k,N)}else to(F,H,tt,I,Y,k,N)}N=v,k=d}k!=d&&n(v,d,N,k,y)}function En(o,s){var d=o.V,v=o.Ba+o.c*o.C,b=s-o.C;if(t(s<=o.l.o),t(16>=b),0<b){var y=o.l,A=o.Ta,N=o.Ua,k=y.width;if(ti(o,b,d,v),b=N=[N],t((d=o.C)<(v=s)),t(y.v<y.va),v>y.o&&(v=y.o),d<y.j){var F=y.j-d;d=y.j,b[0]+=F*k}if(d>=v?d=0:(b[0]+=4*y.v,y.ka=d-y.j,y.U=y.va-y.v,y.T=v-d,d=1),d){if(N=N[0],11>(d=o.ca).S){var H=d.f.RGBA,tt=(v=d.S,b=y.U,y=y.T,F=H.eb,H.A),I=y;for(H=H.fb+o.Ma*H.A;0<I--;){var Y=A,X=N,ut=b,Z=F,ft=H;switch(v){case no:xa(Y,X,ut,Z,ft);break;case io:Mn(Y,X,ut,Z,ft);break;case ss:Mn(Y,X,ut,Z,ft),_a(Z,ft,0,ut,1,0);break;case Ll:yi(Y,X,ut,Z,ft);break;case ao:Ht(Y,X,ut,Z,ft,1);break;case ls:Ht(Y,X,ut,Z,ft,1),_a(Z,ft,0,ut,1,0);break;case oo:Ht(Y,X,ut,Z,ft,0);break;case so:Ht(Y,X,ut,Z,ft,0),_a(Z,ft,1,ut,1,0);break;case os:qn(Y,X,ut,Z,ft);break;case us:qn(Y,X,ut,Z,ft),ml(Z,ft,ut,1,0);break;case Sl:Un(Y,X,ut,Z,ft);break;default:t(0)}N+=k,H+=tt}o.Ma+=y}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 rn(o,s,d,v,b,y){if(o.Z!=0){var A=o.qd,N=o.rd;for(t(Wn[o.Z]!=null);s<d;++s)Wn[o.Z](A,N,v,b,v,b,y),A=v,N=b,b+=y;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 b=o.l.width,y=d.ca,A=d.tb+b*v,N=o.V,k=o.Ba+o.c*v,F=o.gc;t(o.ab==1),t(F[0].hc==3),sn(F[0],v,s,N,k,y,A),rn(d,v,s,y,A,b)}o.C=o.Ma=s}function Vr(o,s,d,v,b,y,A){var N=o.$/v,k=o.$%v,F=o.m,H=o.s,tt=d+o.$,I=tt;b=d+v*b;var Y=d+v*y,X=280+H.ua,ut=o.Pb?N:16777216,Z=0<H.ua?H.Wa:null,ft=H.wc,gt=tt<Y?ar(H,k,N):null;t(o.C<y),t(Y<=b);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&ft||(gt=ar(H,k,N)),t(gt!=null),gt.Qb&&(s[tt]=gt.qb,xt=!0),!xt)if(rt(F),gt.jc){bt=F,Dt=s;var Ct=tt,oe=gt.pd[R(bt)&wi-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(rt(F),xt=je(gt.G[1],gt.H[1],F),rt(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<=y&&!(N%16)&&A(o,N),Z!=null))for(;I<tt;)bt=s[I++],Z.X[(506832829*bt&4294967295)>>>Z.Mb]=bt}else if(280>bt){if(bt=jr(bt-256,F),Dt=je(gt.G[4],gt.H[4],F),rt(F),Dt=Br(v,Dt=jr(Dt,F)),F.h)break;if(tt-d<Dt||b-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<=y&&!(N%16)&&A(o,N);if(t(tt<=b),k&ft&&(gt=ar(H,k,N)),Z!=null)for(;I<tt;)bt=s[I++],Z.X[(506832829*bt&4294967295)>>>Z.Mb]=bt}else{if(!(bt<X))break t;for(xt=bt-280,t(Z!=null);I<tt;)bt=s[I++],Z.X[(506832829*bt&4294967295)>>>Z.Mb]=bt;bt=tt,t(!(xt>>>(Dt=Z).Xa)),s[bt]=Dt.X[xt],xt=!0}xt||t(F.h==V(F))}if(o.Pb&&F.h&&tt<b)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>y?y:N),o.a=0,o.$=tt-d}return 1}return o.a=3,0}function Dr(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 ei(){var o=new jt;return o==null?null:(o.a=0,o.xb=Cl,ue("Predictor","VP8LPredictors"),ue("Predictor","VP8LPredictors_C"),ue("PredictorAdd","VP8LPredictorsAdd"),ue("PredictorAdd","VP8LPredictorsAdd_C"),Ue=ae,ya=Gt,xa=ke,Mn=pe,qn=Bt,Un=te,yi=Ae,T.VP8LMapColor32b=on,T.VP8LMapColor8b=ba,o)}function nn(o,s,d,v,b){var y=1,A=[o],N=[s],k=v.m,F=v.s,H=null,tt=0;t:for(;;){if(d)for(;y&&wt(k,1);){var I=A,Y=N,X=v,ut=1,Z=X.m,ft=X.gc[X.ab],gt=wt(Z,2);if(X.Oc&1<<gt)y=0;else{switch(X.Oc|=1<<gt,ft.hc=gt,ft.Ea=I[0],ft.nc=Y[0],ft.K=[null],++X.ab,t(4>=X.ab),gt){case 0:case 1:ft.b=wt(Z,3)+2,ut=nn(_t(ft.Ea,ft.b),_t(ft.nc,ft.b),0,X,ft.K),ft.K=ft.K[0];break;case 3:var xt,bt=wt(Z,8)+1,Dt=16<bt?0:4<bt?1:2<bt?2:3;if(I[0]=_t(ft.Ea,Dt),ft.b=Dt,xt=ut=nn(bt,1,0,X,ft.K)){var Ct,oe=bt,Et=ft,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)}y=ut}}if(A=A[0],N=N[0],y&&wt(k,1)&&!(y=1<=(tt=wt(k,4))&&11>=tt)){v.a=3;break t}var Lt;if(Lt=y)e:{var He,re,fe,Fe=v,sr=A,mr=N,De=tt,cr=d,br=Fe.m,er=Fe.s,ce=[null],we=1,Re=0,ye=kf[De];r:for(;;){if(cr&&wt(br,1)){var lr=wt(br,3)+2,Kr=_t(sr,lr),We=_t(mr,lr),xr=Kr*We;if(!nn(Kr,We,0,Fe,ce))break r;for(ce=ce[0],er.xc=lr,He=0;He<xr;++He){var Le=ce[He]>>8&65535;ce[He]=Le,Le>=we&&(we=Le+1)}}if(br.h)break r;for(re=0;5>re;++re){var rr=kl[re];!re&&0<De&&(rr+=1<<De),Re<rr&&(Re=rr)}var kr=h(we*ye,z),wr=we,Pr=h(wr,nt);if(Pr==null)var Cr=null;else t(65536>=wr),Cr=Pr;var Ar=i(Re);if(Cr==null||Ar==null||kr==null){Fe.a=1;break r}var Fr=kr;for(He=fe=0;He<we;++He){var Ce=Cr[He],Ir=Ce.G,$r=Ce.H,Ai=0,Ln=1,ur=0;for(re=0;5>re;++re){rr=kl[re],Ir[re]=Fr,$r[re]=fe,!re&&0<De&&(rr+=1<<De);i:{var fo,ds=rr,co=Fe,Sa=Ar,Jf=Fr,Kf=fe,ps=0,Gn=co.m,$f=wt(Gn,1);if(a(Sa,0,0,ds),$f){var Xf=wt(Gn,1)+1,Zf=wt(Gn,1),Rl=wt(Gn,Zf==0?1:8);Sa[Rl]=1,Xf==2&&(Sa[Rl=wt(Gn,8)]=1);var po=1}else{var Tl=i(19),Ml=wt(Gn,4)+4;if(19<Ml){co.a=3;var go=0;break i}for(fo=0;fo<Ml;++fo)Tl[Lf[fo]]=wt(Gn,3);var gs=void 0,ka=void 0,ql=co,Qf=Tl,vo=ds,Ul=Sa,vs=0,Vn=ql.m,zl=8,Hl=h(128,z);n:for(;E(Hl,0,7,Qf,19);){if(wt(Vn,1)){var tc=2+2*wt(Vn,3);if((gs=2+wt(Vn,tc))>vo)break n}else gs=vo;for(ka=0;ka<vo&&gs--;){rt(Vn);var Wl=Hl[0+(127&R(Vn))];J(Vn,Vn.u+Wl.g);var zi=Wl.value;if(16>zi)Ul[ka++]=zi,zi!=0&&(zl=zi);else{var ec=zi==16,Gl=zi-16,rc=_f[Gl],Vl=wt(Vn,Af[Gl])+rc;if(ka+Vl>vo)break n;for(var nc=ec?zl:0;0<Vl--;)Ul[ka++]=nc}}vs=1;break n}vs||(ql.a=3),po=vs}(po=po&&!Gn.h)&&(ps=E(Jf,Kf,8,Sa,ds)),po&&ps!=0?go=ps:(co.a=3,go=0)}if(go==0)break r;if(Ln&&Nf[re]==1&&(Ln=Fr[fe].g==0),Ai+=Fr[fe].g,fe+=go,3>=re){var Pa,ms=Ar[0];for(Pa=1;Pa<rr;++Pa)Ar[Pa]>ms&&(ms=Ar[Pa]);ur+=ms}}if(Ce.nd=Ln,Ce.Qb=0,Ln&&(Ce.qb=(Ir[3][$r[3]+0].value<<24|Ir[1][$r[1]+0].value<<16|Ir[2][$r[2]+0].value)>>>0,Ai==0&&256>Ir[0][$r[0]+0].value&&(Ce.Qb=1,Ce.qb+=Ir[0][$r[0]+0].value<<8)),Ce.jc=!Ce.Qb&&6>ur,Ce.jc){var mo,Sn=Ce;for(mo=0;mo<wi;++mo){var Yn=mo,Jn=Sn.pd[Yn],bo=Sn.G[0][Sn.H[0]+Yn];256<=bo.value?(Jn.g=bo.g+256,Jn.value=bo.value):(Jn.g=0,Jn.value=0,Yn>>=nr(bo,8,Jn),Yn>>=nr(Sn.G[1][Sn.H[1]+Yn],16,Jn),Yn>>=nr(Sn.G[2][Sn.H[2]+Yn],0,Jn),nr(Sn.G[3][Sn.H[3]+Yn],24,Jn))}}}er.vc=ce,er.Wb=we,er.Ya=Cr,er.yc=kr,Lt=1;break e}Lt=0}if(!(y=Lt)){v.a=3;break t}if(0<tt){if(F.ua=1<<tt,!D(F.Wa,tt)){v.a=1,y=0;break t}}else F.ua=0;var bs=v,Yl=A,ic=N,ws=bs.s,ys=ws.xc;if(bs.c=Yl,bs.i=ic,ws.md=_t(Yl,ys),ws.wc=ys==0?-1:(1<<ys)-1,d){v.xb=Bf;break t}if((H=i(A*N))==null){v.a=1,y=0;break t}y=(y=Vr(v,H,0,A,N,N,null))&&!k.h;break t}return y?(b!=null?b[0]=H:(t(H==null),t(d)),v.$=0,d||Dr(F)):Dr(F),y}function ri(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 Fi(o,s){var d=o.C,v=s-d,b=o.V,y=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;ti(o,A,b,y),wl(I,Y,H,tt,F),rn(N,d,d+A,H,tt,k),v-=A,b+=A*o.c,d+=A}t(d==s),o.C=o.Ma=s}function Ii(){this.ub=this.yd=this.td=this.Rb=0}function Ei(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ho(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function ea(){this.Yb=(function(){var o=[];return(function s(d,v,b){for(var y=b[v],A=0;A<y&&(d.push(b.length>v+1?[]:0),!(b.length<v+1));A++)s(d[A],v+1,b)})(o,0,[3,11]),o})()}function Ra(){this.jb=i(3),this.Wc=l([4,8],ea),this.Xc=l([4,17],ea)}function Ta(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Rr(){this.ld=this.La=this.dd=this.tc=0}function ra(){this.Na=this.la=0}function Ma(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function na(){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 qa(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rr),this.Y=0,this.ya=Array(new na),this.aa=0,this.l=new Oi}function Ua(){this.y=i(16),this.f=i(8),this.ea=i(8)}function za(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Ii,this.Kc=new Ei,this.ed=new Ta,this.Qa=new Ho,this.Ic=this.$c=this.Aa=0,this.D=new qa,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,Ma),this.Pa=new Ra,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ua),this.Hd=0,this.rb=Array(new ra),this.sb=0,this.wa=Array(new Rr),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 na),this.L=this.aa=0,this.gd=l([4,2],Rr),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 Oi(){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 Wo(){var o=new za;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Na||(Na=vn)),o}function Je(o,s,d){return o.a==0&&(o.a=s,o.sc=d,o.cb=0),0}function Ha(o,s,d){return 3<=d&&o[s+0]==157&&o[s+1]==1&&o[s+2]==42}function Wa(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,b=s.ha;if(4>b)return Je(o,7,"Truncated header.");var y=d[v+0]|d[v+1]<<8|d[v+2]<<16,A=o.Od;if(A.Rb=!(1&y),A.td=y>>1&7,A.yd=y>>4&1,A.ub=y>>5,3<A.td)return Je(o,3,"Incorrect keyframe parameters.");if(!A.yd)return Je(o,4,"Frame not displayable.");v+=3,b-=3;var N=o.Kc;if(A.Rb){if(7>b)return Je(o,7,"cannot parse picture header");if(!Ha(d,v,b))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,b-=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((y=o.Pa).jb,0,255,y.jb.length),t((y=o.Qa)!=null),y.Cb=0,y.Bb=0,y.Fb=1,a(y.Zb,0,0,y.Zb.length),a(y.Lb,0,0,y.Lb)}if(A.ub>b)return Je(o,7,"bad partition length");lt(y=o.m,d,v,A.ub),v+=A.ub,b-=A.ub,A.Rb&&(N.Ld=at(y),N.Kd=at(y)),N=o.Qa;var k,F=o.Pa;if(t(y!=null),t(N!=null),N.Cb=at(y),N.Cb){if(N.Bb=at(y),at(y)){for(N.Fb=at(y),k=0;4>k;++k)N.Zb[k]=at(y)?et(y,7):0;for(k=0;4>k;++k)N.Lb[k]=at(y)?et(y,6):0}if(N.Bb)for(k=0;3>k;++k)F.jb[k]=at(y)?ht(y,8):255}else N.Bb=0;if(y.Ka)return Je(o,3,"cannot parse segment header");if((N=o.ed).zd=at(y),N.Tb=ht(y,6),N.wb=ht(y,3),N.Pc=at(y),N.Pc&&at(y)){for(F=0;4>F;++F)at(y)&&(N.vd[F]=et(y,6));for(F=0;4>F;++F)at(y)&&(N.od[F]=et(y,6))}if(o.L=N.Tb==0?0:N.zd?1:2,y.Ka)return Je(o,3,"cannot parse filter header");var H=b;if(b=k=v,v=k+H,N=H,o.Xb=(1<<ht(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[b+0]|d[b+1]<<8|d[b+2]<<16;tt>N&&(tt=N),lt(o.Jc[+H],d,k,tt),k+=tt,N-=tt,b+=3}lt(o.Jc[+F],d,k,N),d=k<v?0:5}if(d!=0)return Je(o,d,"cannot parse partitions");for(d=ht(k=o.m,7),b=at(k)?et(k,4):0,v=at(k)?et(k,4):0,N=at(k)?et(k,4):0,F=at(k)?et(k,4):0,k=at(k)?et(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]=hs[Be(I+b,127)],Y.Sc[1]=fs[Be(I+0,127)],Y.Eb[0]=2*hs[Be(I+v,127)],Y.Eb[1]=101581*fs[Be(I+N,127)]>>16,8>Y.Eb[1]&&(Y.Eb[1]=8),Y.Qc[0]=hs[Be(I+F,117)],Y.Qc[1]=fs[Be(I+k,127)],Y.lc=I+k}if(!A.Rb)return Je(o,4,"Not a key frame.");for(at(y),A=o.Pa,d=0;4>d;++d){for(b=0;8>b;++b)for(v=0;3>v;++v)for(N=0;11>N;++N)F=vt(y,Of[d][b][v][N])?ht(y,8):If[d][b][v][N],A.Wc[d][b].Yb[v][N]=F;for(b=0;17>b;++b)A.Xc[d][b]=A.Wc[d][jf[b]]}return o.kc=at(y),o.kc&&(o.Bd=ht(y,8)),o.cb=1}function vn(o,s,d,v,b,y,A){var N=s[b].Yb[d];for(d=0;16>b;++b){if(!vt(o,N[d+0]))return b;for(;!vt(o,N[d+1]);)if(N=s[++b].Yb[0],d=0,b==16)return 16;var k=s[b+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[b],0>(F=o).b&&ot(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,y[k]=((H^Y)-Y)*v[(0<b)+0]}return 16}function ni(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,b){b=o[s+d+32*v]+(b>>3),o[s+d+32*v]=-256&b?0>b?0:255:b}function ii(o,s,d,v,b,y){Yr(o,s,0,d,v+b),Yr(o,s,1,d,v+y),Yr(o,s,2,d,v-y),Yr(o,s,3,d,v-b)}function qe(o){return(20091*o>>16)+o}function ia(o,s,d,v){var b,y=0,A=i(16);for(b=0;4>b;++b){var N=o[s+0]+o[s+8],k=o[s+0]-o[s+8],F=(35468*o[s+4]>>16)-qe(o[s+12]),H=qe(o[s+4])+(35468*o[s+12]>>16);A[y+0]=N+H,A[y+1]=k+F,A[y+2]=k-F,A[y+3]=N-H,y+=4,s++}for(b=y=0;4>b;++b)N=(o=A[y+0]+4)+A[y+8],k=o-A[y+8],F=(35468*A[y+4]>>16)-qe(A[y+12]),Yr(d,v,0,0,N+(H=qe(A[y+4])+(35468*A[y+12]>>16))),Yr(d,v,1,0,k+F),Yr(d,v,2,0,k-F),Yr(d,v,3,0,N-H),y++,v+=32}function Go(o,s,d,v){var b=o[s+0]+4,y=35468*o[s+4]>>16,A=qe(o[s+4]),N=35468*o[s+1]>>16;ii(d,v,0,b+A,o=qe(o[s+1]),N),ii(d,v,1,b+y,o,N),ii(d,v,2,b-y,o,N),ii(d,v,3,b-A,o,N)}function Vo(o,s,d,v,b){ia(o,s,d,v),b&&ia(o,s+16,d,v+4)}function Yo(o,s,d,v){xi(o,s+0,d,v,1),xi(o,s+32,d,v+128,1)}function an(o,s,d,v){var b;for(o=o[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)Yr(d,v,s,b,o)}function Ga(o,s,d,v){o[s+0]&&me(o,s+0,d,v),o[s+16]&&me(o,s+16,d,v+4),o[s+32]&&me(o,s+32,d,v+128),o[s+48]&&me(o,s+48,d,v+128+4)}function Va(o,s,d,v){var b,y=i(16);for(b=0;4>b;++b){var A=o[s+0+b]+o[s+12+b],N=o[s+4+b]+o[s+8+b],k=o[s+4+b]-o[s+8+b],F=o[s+0+b]-o[s+12+b];y[0+b]=A+N,y[8+b]=A-N,y[4+b]=F+k,y[12+b]=F-k}for(b=0;4>b;++b)A=(o=y[0+4*b]+3)+y[3+4*b],N=y[1+4*b]+y[2+4*b],k=y[1+4*b]-y[2+4*b],F=o-y[3+4*b],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 On(o,s,d){var v,b=s-32,y=Sr,A=255-o[b-1];for(v=0;v<d;++v){var N,k=y,F=A+o[s-1];for(N=0;N<d;++N)o[s+N]=k[F+o[b+N]];s+=32}}function aa(o,s){On(o,s,4)}function Jo(o,s){On(o,s,8)}function Ko(o,s){On(o,s,16)}function $o(o,s){var d;for(d=0;16>d;++d)n(o,s+32*d,o,s-32,16)}function oa(o,s){var d;for(d=16;0<d;--d)a(o,s,o[s-1],16),s+=32}function ai(o,s,d){var v;for(v=0;16>v;++v)a(s,d+32*v,o,16)}function jn(o,s){var d,v=16;for(d=0;16>d;++d)v+=o[s-1+32*d]+o[s+d-32];ai(v>>5,o,s)}function Xo(o,s){var d,v=8;for(d=0;16>d;++d)v+=o[s-1+32*d];ai(v>>4,o,s)}function oi(o,s){var d,v=8;for(d=0;16>d;++d)v+=o[s+d-32];ai(v>>4,o,s)}function sa(o,s){ai(128,o,s)}function Kt(o,s,d){return o+2*s+d+2>>2}function Zo(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 Qo(o,s){var d=o[s-1],v=o[s-1+32],b=o[s-1+64],y=o[s-1+96];At(o,s+0,16843009*Kt(o[s-1-32],d,v)),At(o,s+32,16843009*Kt(d,v,b)),At(o,s+64,16843009*Kt(v,b,y)),At(o,s+96,16843009*Kt(b,y,y))}function ts(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 es(o,s){var d=o[s-1+0],v=o[s-1+32],b=o[s-1+64],y=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,b,o[s-1+96]),o[s+1+96]=o[s+0+64]=Kt(d,v,b),o[s+2+96]=o[s+1+64]=o[s+0+32]=Kt(y,d,v),o[s+3+96]=o[s+2+64]=o[s+1+32]=o[s+0+0]=Kt(A,y,d),o[s+3+64]=o[s+2+32]=o[s+1+0]=Kt(N,A,y),o[s+3+32]=o[s+2+0]=Kt(k,N,A),o[s+3+0]=Kt(F,k,N)}function mn(o,s){var d=o[s+1-32],v=o[s+2-32],b=o[s+3-32],y=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,b),o[s+2+0]=o[s+1+32]=o[s+0+64]=Kt(v,b,y),o[s+3+0]=o[s+2+32]=o[s+1+64]=o[s+0+96]=Kt(b,y,A),o[s+3+32]=o[s+2+64]=o[s+1+96]=Kt(y,A,N),o[s+3+64]=o[s+2+96]=Kt(A,N,k),o[s+3+96]=Kt(N,k,k)}function bn(o,s){var d=o[s-1+0],v=o[s-1+32],b=o[s-1+64],y=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]=y+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(b,v,d),o[s+0+64]=Kt(v,d,y),o[s+0+32]=o[s+1+96]=Kt(d,y,A),o[s+1+32]=o[s+2+96]=Kt(y,A,N),o[s+2+32]=o[s+3+96]=Kt(A,N,k),o[s+3+32]=Kt(N,k,F)}function rs(o,s){var d=o[s+0-32],v=o[s+1-32],b=o[s+2-32],y=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+b+1>>1,o[s+2+0]=o[s+1+64]=b+y+1>>1,o[s+3+0]=o[s+2+64]=y+A+1>>1,o[s+0+32]=Kt(d,v,b),o[s+1+32]=o[s+0+96]=Kt(v,b,y),o[s+2+32]=o[s+1+96]=Kt(b,y,A),o[s+3+32]=o[s+2+96]=Kt(y,A,N),o[s+3+64]=Kt(A,N,k),o[s+3+96]=Kt(N,k,F)}function ns(o,s){var d=o[s-1+0],v=o[s-1+32],b=o[s-1+64],y=o[s-1+96];o[s+0+0]=d+v+1>>1,o[s+2+0]=o[s+0+32]=v+b+1>>1,o[s+2+32]=o[s+0+64]=b+y+1>>1,o[s+1+0]=Kt(d,v,b),o[s+3+0]=o[s+1+32]=Kt(v,b,y),o[s+3+32]=o[s+1+64]=Kt(b,y,y),o[s+3+64]=o[s+2+64]=o[s+0+96]=o[s+1+96]=o[s+2+96]=o[s+3+96]=y}function ji(o,s){var d=o[s-1+0],v=o[s-1+32],b=o[s-1+64],y=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]=b+v+1>>1,o[s+0+96]=y+b+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(b,v,d),o[s+1+96]=Kt(y,b,v)}function la(o,s){var d;for(d=0;8>d;++d)n(o,s+32*d,o,s-32,8)}function si(o,s){var d;for(d=0;8>d;++d)a(o,s,o[s-1],8),s+=32}function Bi(o,s,d){var v;for(v=0;8>v;++v)a(s,d+32*v,o,8)}function Di(o,s){var d,v=8;for(d=0;8>d;++d)v+=o[s+d-32]+o[s-1+32*d];Bi(v>>4,o,s)}function is(o,s){var d,v=4;for(d=0;8>d;++d)v+=o[s+d-32];Bi(v>>3,o,s)}function ua(o,s){var d,v=4;for(d=0;8>d;++d)v+=o[s-1+32*d];Bi(v>>3,o,s)}function ha(o,s){Bi(128,o,s)}function li(o,s,d){var v=o[s-d],b=o[s+0],y=3*(b-v)+as[1020+o[s-2*d]-o[s+d]],A=ro[112+(y+4>>3)];o[s-d]=Sr[255+v+ro[112+(y+3>>3)]],o[s+0]=Sr[255+b-A]}function ui(o,s,d,v){var b=o[s+0],y=o[s+d];return Ur[255+o[s-2*d]-o[s-d]]>v||Ur[255+y-b]>v}function fa(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 Ri(o,s,d,v,b){var y=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]-y]<=b&&Ur[255+y-A]<=b&&Ur[255+A-N]<=b&&Ur[255+tt-H]<=b&&Ur[255+H-F]<=b&&Ur[255+F-k]<=b}function ca(o,s,d,v){var b=2*v+1;for(v=0;16>v;++v)fa(o,s+v,d,b)&&li(o,s+v,d)}function hi(o,s,d,v){var b=2*v+1;for(v=0;16>v;++v)fa(o,s+v*d,1,b)&&li(o,s+v*d,1)}function Ya(o,s,d,v){var b;for(b=3;0<b;--b)ca(o,s+=4*d,d,v)}function Ja(o,s,d,v){var b;for(b=3;0<b;--b)hi(o,s+=4,d,v)}function wn(o,s,d,v,b,y,A,N){for(y=2*y+1;0<b--;){if(Ri(o,s,d,y,A))if(ui(o,s,d,N))li(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],Z=27*(gt=as[1020+3*(Y-I)+as[1020+tt-X]])+63>>7,ft=18*gt+63>>7,gt=9*gt+63>>7;k[F-3*H]=Sr[255+k[F-3*H]+gt],k[F-2*H]=Sr[255+tt+ft],k[F-H]=Sr[255+I+Z],k[F+0]=Sr[255+Y-Z],k[F+H]=Sr[255+X-ft],k[F+2*H]=Sr[255+ut-gt]}s+=v}}function yn(o,s,d,v,b,y,A,N){for(y=2*y+1;0<b--;){if(Ri(o,s,d,y,A))if(ui(o,s,d,N))li(o,s,d);else{var k=o,F=s,H=d,tt=k[F-H],I=k[F+0],Y=k[F+H],X=ro[112+(4+(ut=3*(I-tt))>>3)],ut=ro[112+(ut+3>>3)],Z=X+1>>1;k[F-2*H]=Sr[255+k[F-2*H]+Z],k[F-H]=Sr[255+tt+ut],k[F+0]=Sr[255+I-X],k[F+H]=Sr[255+Y-Z]}s+=v}}function Ka(o,s,d,v,b,y){wn(o,s,d,1,16,v,b,y)}function $a(o,s,d,v,b,y){wn(o,s,1,d,16,v,b,y)}function fi(o,s,d,v,b,y){var A;for(A=3;0<A;--A)yn(o,s+=4*d,d,1,16,v,b,y)}function Xa(o,s,d,v,b,y){var A;for(A=3;0<A;--A)yn(o,s+=4,1,d,16,v,b,y)}function c(o,s,d,v,b,y,A,N){wn(o,s,b,1,8,y,A,N),wn(d,v,b,1,8,y,A,N)}function m(o,s,d,v,b,y,A,N){wn(o,s,1,b,8,y,A,N),wn(d,v,1,b,8,y,A,N)}function O(o,s,d,v,b,y,A,N){yn(o,s+4*b,b,1,8,y,A,N),yn(d,v+4*b,b,1,8,y,A,N)}function q(o,s,d,v,b,y,A,N){yn(o,s+4,1,b,8,y,A,N),yn(d,v+4,1,b,8,y,A,N)}function $(){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 dt(){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 yt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function It(){this.ua=0,this.Wa=new ne,this.vb=new ne,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new nt,this.yc=new z}function jt(){this.xb=this.a=0,this.l=new Oi,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 It,this.ab=0,this.gc=h(4,yt),this.Oc=0}function Yt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Oi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function $t(o,s,d,v,b,y,A){for(o=o==null?0:o[s+0],s=0;s<A;++s)b[y+s]=o+d[v+s]&255,o=b[y+s]}function ge(o,s,d,v,b,y,A){var N;if(o==null)$t(null,null,d,v,b,y,A);else for(N=0;N<A;++N)b[y+N]=o[s+N]+d[v+N]&255}function Oe(o,s,d,v,b,y,A){if(o==null)$t(null,null,d,v,b,y,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,b[y+N]=H}}function Ke(o,s,d,v){var b=s.width,y=s.o;if(t(o!=null&&s!=null),0>d||0>=v||d+v>y)return null;if(!o.Cc){if(o.ga==null){var A;if(o.ga=new Yt,(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),Wn[0]=null,Wn[1]=$t,Wn[2]=ge,Wn[3]=Oe,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=en,X.bc=pn,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=ei();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,ct(s.m,N,I,Y),!nn(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=ri(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=y-d}t(o.ga!=null),t(d+v<=y);t:{if(s=(N=o.ga).c,y=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(Wn[N.Z]!=null),A=0;A<v;++A)Wn[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||Tr(),N.ic){N=A.V,I=A.Ba,Y=A.c;var ut=A.i,Z=(X=1,k=A.$/Y,F=A.$%Y,H=A.m,tt=A.s,A.$),ft=Y*ut,gt=Y*s,xt=tt.wc,bt=Z<gt?ar(tt,F,k):null;t(Z<=ft),t(s<=ut),t(Wr(tt));e:for(;;){for(;!H.h&&Z<gt;){if(F&xt||(bt=ar(tt,F,k)),t(bt!=null),rt(H),256>(ut=je(bt.G[0],bt.H[0],H)))N[I+Z]=ut,++Z,++F>=Y&&(F=0,++k<=s&&!(k%16)&&Gr(A,k));else{if(!(280>ut)){X=0;break e}ut=jr(ut-256,H);var Dt,Ct=je(bt.G[4],bt.H[4],H);if(rt(H),!(Z>=(Ct=Br(Y,Ct=jr(Ct,H)))&&ft-Z>=ut)){X=0;break e}for(Dt=0;Dt<ut;++Dt)N[I+Z+Dt]=N[I+Z+Dt-Ct];for(Z+=ut,F+=ut;F>=Y;)F-=Y,++k<=s&&!(k%16)&&Gr(A,k);Z<gt&&F&xt&&(bt=ar(tt,F,k))}t(H.h==V(H))}Gr(A,k>s?s:k);break e}!X||H.h&&Z<ft?(X=0,A.a=H.h?5:3):A.$=Z,s=X}else s=Vr(A,A.V,A.Ba,A.c,A.i,s,Fi);if(!s){v=0;break t}}d+v>=y&&(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*b}function Pe(o,s,d,v,b,y){for(;0<b--;){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+=y}}function Ze(o,s,d,v,b){for(;0<v--;){var y;for(y=0;y<d;++y){var A=o[s+2*y+0],N=15&(F=o[s+2*y+1]),k=4369*N,F=(240&F|F>>4)*k>>16;o[s+2*y+0]=(240&A|A>>4)*k>>16&240|(15&A|A<<4)*k>>16>>4&15,o[s+2*y+1]=240&F|N}s+=b}}function $e(o,s,d,v,b,y,A,N){var k,F,H=255;for(F=0;F<b;++F){for(k=0;k<v;++k){var tt=o[s+k];y[A+4*k]=tt,H&=tt}s+=d,A+=N}return H!=255}function or(o,s,d,v,b){var y;for(y=0;y<b;++y)d[v+y]=o[s+y]>>8}function Tr(){_a=Pe,ml=Ze,bl=$e,wl=or}function yr(o,s,d){T[o]=function(v,b,y,A,N,k,F,H,tt,I,Y,X,ut,Z,ft,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[b+0],255&Et,Et>>16,ut,Z),y!=null&&(Et=3*oe+Ct+131074>>2,s(y[A+0],255&Et,Et>>16,ft,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[b+2*bt-1],255&Et,Et>>16,ut,Z+(2*bt-1)*d),s(v[b+2*bt-0],255&Ct,Ct>>16,ut,Z+(2*bt-0)*d),y!=null&&(Et=se+oe>>1,Ct=Ot+tr>>1,s(y[A+2*bt-1],255&Et,Et>>16,ft,gt+(2*bt-1)*d),s(y[A+2*bt+0],255&Ct,Ct>>16,ft,gt+(2*bt+0)*d)),Ct=he,oe=tr}1&xt||(Et=3*Ct+oe+131074>>2,s(v[b+xt-1],255&Et,Et>>16,ut,Z+(xt-1)*d),y!=null&&(Et=3*oe+Ct+131074>>2,s(y[A+xt-1],255&Et,Et>>16,ft,gt+(xt-1)*d)))}}function Za(){zr[no]=Df,zr[io]=Fl,zr[Ll]=Rf,zr[ao]=Il,zr[oo]=El,zr[os]=Ol,zr[Sl]=Tf,zr[ss]=Fl,zr[ls]=Il,zr[so]=El,zr[us]=Ol}function Ti(o){return o&-16384?0>o?0:255:o>>Mf}function ci(o,s){return Ti((19077*o>>8)+(26149*s>>8)-14234)}function Bn(o,s,d){return Ti((19077*o>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function di(o,s){return Ti((19077*o>>8)+(33050*s>>8)-17685)}function pi(o,s,d,v,b){v[b+0]=ci(o,d),v[b+1]=Bn(o,s,d),v[b+2]=di(o,s)}function gi(o,s,d,v,b){v[b+0]=di(o,s),v[b+1]=Bn(o,s,d),v[b+2]=ci(o,d)}function fr(o,s,d,v,b){var y=Bn(o,s,d);s=y<<3&224|di(o,s)>>3,v[b+0]=248&ci(o,d)|y>>5,v[b+1]=s}function vi(o,s,d,v,b){var y=240&di(o,s)|15;v[b+0]=240&ci(o,d)|Bn(o,s,d)>>4,v[b+1]=y}function mi(o,s,d,v,b){v[b+0]=255,pi(o,s,d,v,b+1)}function da(o,s,d,v,b){gi(o,s,d,v,b),v[b+3]=255}function pa(o,s,d,v,b){pi(o,s,d,v,b),v[b+3]=255}function Be(o,s){return 0>o?0:o>s?s:o}function xn(o,s,d){T[o]=function(v,b,y,A,N,k,F,H,tt){for(var I=H+(-2&tt)*d;H!=I;)s(v[b+0],y[A+0],N[k+0],F,H),s(v[b+1],y[A+0],N[k+0],F,H+d),b+=2,++A,++k,H+=2*d;1&tt&&s(v[b+0],y[A+0],N[k+0],F,H)}}function Mi(o,s,d){return d==0?o==0?s==0?6:5:s==0?4:0:d}function Qa(o,s,d,v,b){switch(o>>>30){case 3:xi(s,d,v,b,0);break;case 2:qr(s,d,v,b);break;case 1:me(s,d,v,b)}}function Mr(o,s){var d,v,b=s.M,y=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<b?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,Z=I.Hc;if(0<b&&(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 ft=A,gt=N-32+16;for(0<b&&(v>=o.za-1?a(ft,gt,Y[X].y[15],4):n(ft,gt,Y[X+1].y,0,4)),d=0;4>d;d++)ft[gt+128+d]=ft[gt+256+d]=ft[gt+384+d]=ft[gt+0+d];for(d=0;16>d;++d,Z<<=2)ft=A,gt=N+Bl[d],Jr[I.Ob[d]](ft,gt),Qa(Z,ut,16*+d,ft,gt)}else if(ft=Mi(v,b,I.Ob[0]),Hn[ft](A,N),Z!=0)for(d=0;16>d;++d,Z<<=2)Qa(Z,ut,16*+d,A,N+Bl[d]);for(d=I.Gc,ft=Mi(v,b,I.Dd),Nn[ft](k,F),Nn[ft](H,tt),Z=ut,ft=k,gt=F,255&(I=0|d)&&(170&I?ln(Z,256,ft,gt):Ne(Z,256,ft,gt)),I=H,Z=tt,255&(d>>=8)&&(170&d?ln(ut,320,I,Z):Ne(ut,320,I,Z)),b<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*y*o.B,Y=o.sa,X=o.ta+16*v+16*y*o.R,ut=o.qa,I=o.ra+8*v+d,Z=o.Ha,ft=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(Z,ft+d*o.B,H,tt+32*d,8)}}function bi(o,s,d,v,b,y,A,N,k){var F=[0],H=[0],tt=0,I=k!=null?k.kd:0,Y=k??new dt;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,Z=Y.gb;if(t(o!=null),t(ut!=null),t(Z!=null),Z[0]=0,12<=ut[0]&&!e(o,X[0],"RIFF")){if(e(o,X[0]+8,"WEBP")){Z=3;break t}var ft=st(o,X[0]+4);if(12>ft||4294967286<ft){Z=3;break t}if(I&&ft>ut[0]-8){Z=7;break t}Z[0]=ft,X[0]+=12,ut[0]-=12}Z=0}if(Z!=0)return Z;for(ft=0<Y.gb[0],d=d[0];;){t:{var gt=o;ut=s,Z=d;var xt=F,bt=H,Dt=X=[0];if((Et=tt=[tt])[0]=0,8>Z[0])Z=7;else{if(!e(gt,ut[0],"VP8X")){if(st(gt,ut[0]+4)!=10){Z=3;break t}if(18>Z[0]){Z=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))){Z=3;break t}Dt!=null&&(Dt[0]=Ct),xt!=null&&(xt[0]=oe),bt!=null&&(bt[0]=gt),ut[0]+=18,Z[0]-=18,Et[0]=1}Z=0}}if(tt=tt[0],X=X[0],Z!=0)return Z;if(ut=!!(2&X),!ft&&tt)return 3;if(y!=null&&(y[0]=!!(16&X)),A!=null&&(A[0]=ut),N!=null&&(N[0]=0),A=F[0],X=H[0],tt&&ut&&k==null){Z=0;break}if(4>d){Z=7;break}if(ft&&tt||!ft&&!tt&&!e(o,s[0],"ALPH")){d=[d],Y.na=[Y.na],Y.P=[Y.P],Y.Sa=[Y.Sa];t:{Ct=o,Z=s,ft=d;var Et=Y.gb;xt=Y.na,bt=Y.P,Dt=Y.Sa,oe=22,t(Ct!=null),t(ft!=null),gt=Z[0];var he=ft[0];for(t(xt!=null),t(Dt!=null),xt[0]=null,bt[0]=null,Dt[0]=0;;){if(Z[0]=gt,ft[0]=he,8>he){Z=7;break t}var tr=st(Ct,gt+4);if(4294967286<tr){Z=3;break t}var se=8+tr+1&-2;if(oe+=se,0<Et&&oe>Et){Z=3;break t}if(!e(Ct,gt,"VP8 ")||!e(Ct,gt,"VP8L")){Z=0;break t}if(he[0]<se){Z=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],Z!=0)break}d=[d],Y.Ja=[Y.Ja],Y.xa=[Y.xa];t:if(Et=o,Z=s,ft=d,xt=Y.gb[0],bt=Y.Ja,Dt=Y.xa,Ct=Z[0],gt=!e(Et,Ct,"VP8 "),oe=!e(Et,Ct,"VP8L"),t(Et!=null),t(ft!=null),t(bt!=null),t(Dt!=null),8>ft[0])Z=7;else{if(gt||oe){if(Et=st(Et,Ct+4),12<=xt&&Et>xt-12){Z=3;break t}if(I&&Et>ft[0]-8){Z=7;break t}bt[0]=Et,Z[0]+=8,ft[0]-=8,Dt[0]=oe}else Dt[0]=5<=ft[0]&&Et[Ct+0]==47&&!(Et[Ct+4]>>5),bt[0]=ft[0];Z=0}if(d=d[0],Y.Ja=Y.Ja[0],Y.xa=Y.xa[0],s=s[0],Z!=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){Z=7;break}N=A,I=X,ut=y,o==null||5>d?o=0:5<=d&&o[s+0]==47&&!(o[s+4]>>5)?(ft=[0],Et=[0],xt=[0],ct(bt=new B,o,s,d),gn(bt,ft,Et,xt)?(N!=null&&(N[0]=ft[0]),I!=null&&(I[0]=Et[0]),ut!=null&&(ut[0]=xt[0]),o=1):o=0):o=0}else{if(10>d){Z=7;break}N=X,o==null||10>d||!Ha(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 Z==0||Z==7&&tt&&k==null?(y!=null&&(y[0]|=Y.na!=null&&0<Y.na.length),v!=null&&(v[0]=A),b!=null&&(b[0]=X),0):Z}function ga(o,s,d){var v=s.width,b=s.height,y=0,A=0,N=v,k=b;if(s.Da=o!=null&&0<o.Da,s.Da&&(N=o.cd,k=o.bd,y=o.v,A=o.j,11>d||(y&=-2,A&=-2),0>y||0>A||0>=N||0>=k||y+N>v||A+k>b))return 0;if(s.v=y,s.j=A,s.va=y+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],y=[o.hb]))return 0;s.ib=d[0],s.hb=y[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*b/4,s.Kb=0),1}function va(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 Dn(o,s,d,v){if(v==null||0>=o||0>=s)return 2;if(d!=null){if(d.Da){var b=d.cd,y=d.bd,A=-2&d.v,N=-2&d.j;if(0>A||0>N||0>=b||0>=y||A+b>o||N+y>s)return 2;o=b,s=y}if(d.da){if(!zt(o,s,b=[d.ib],y=[d.hb]))return 2;o=b[0],s=y[0]}}v.width=o,v.height=s;t:{var k=v.width,F=v.height;if(o=v.S,0>=k||0>=F||!(o>=no&&13>o))o=2;else{if(0>=v.Rd&&v.sd==null){A=y=b=s=0;var H=(N=k*Dl[o])*F;if(11>o||(y=(F+1)/2*(s=(k+1)/2),o==12&&(A=(b=k)*F)),(F=i(H+2*y+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=y,k.ea=F,k.W=0+H+y,k.Db=s,k.Ed=y,o==12&&(k.F=F,k.J=0+H+2*y),k.Tc=A,k.lb=b)}if(s=1,b=v.S,y=v.width,A=v.height,b>=no&&13>b)if(11>b)o=v.f.RGBA,s&=(N=Math.abs(o.A))*(A-1)+y<=o.size,s&=N>=y*Dl[b],s&=o.eb!=null;else{o=v.f.kb,N=(y+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)+y;s&=k*(A-1)+y<=o.Fd,s&=F*(H-1)+N<=o.Cd,s=(s&=tt*(H-1)+N<=o.Ed)&k>=y&F>=N&tt>=N,s&=o.y!=null,s&=o.f!=null,s&=o.ea!=null,b==12&&(s&=I>=y,s&=Y<=o.Tc,s&=o.F!=null)}else s=0;o=s?0:2}}return o!=0||d!=null&&d.fd&&(o=va(v)),o}var wi=64,Nr=[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],Lr=24,Rn=32,An=8,Tn=[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>=Qt(v>>24&255,o>>24&255,(s=s[d-1])>>24&255)+Qt(v>>16&255,o>>16&255,s>>16&255)+Qt(v>>8&255,o>>8&255,s>>8&255)+Qt(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(Zt((o=Ut(o,s[d+0]))>>24&255,v>>24&255)<<24|Zt(o>>16&255,v>>16&255)<<16|Zt(o>>8&255,v>>8&255)<<8|Zt(255&o,255&v))>>>0};var ma=T.PredictorAdd0;T.PredictorAdd1=xe,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 qi=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 Ue,to=T.ColorIndexInverseTransform,on=T.MapARGB,sn=T.VP8LColorIndexInverseTransformAlpha,ba=T.MapAlpha,wa=T.VP8LPredictorsAdd=[];wa.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var ya,xa,Mn,qn,Un,yi,zn,xi,qr,ln,me,Ne,ze,Qe,_n,Aa,Ui,eo,fl,cl,dl,pl,gl,vl,_a,ml,bl,wl,yl=i(511),xl=i(2041),Al=i(225),_l=i(767),Nl=0,as=xl,ro=Al,Sr=_l,Ur=yl,no=0,io=1,Ll=2,ao=3,oo=4,os=5,Sl=6,ss=7,ls=8,so=9,us=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,hs=[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],fs=[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],Na=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],Hn=[],Jr=[],Nn=[],Bf=1,Cl=2,Wn=[],zr=[];yr("UpsampleRgbLinePair",pi,3),yr("UpsampleBgrLinePair",gi,3),yr("UpsampleRgbaLinePair",pa,4),yr("UpsampleBgraLinePair",da,4),yr("UpsampleArgbLinePair",mi,4),yr("UpsampleRgba4444LinePair",vi,2),yr("UpsampleRgb565LinePair",fr,2);var Df=T.UpsampleRgbLinePair,Rf=T.UpsampleBgrLinePair,Fl=T.UpsampleRgbaLinePair,Il=T.UpsampleBgraLinePair,El=T.UpsampleArgbLinePair,Ol=T.UpsampleRgba4444LinePair,Tf=T.UpsampleRgb565LinePair,lo=16,uo=1<<lo-1,La=-227,cs=482,Mf=6,jl=0,qf=i(256),Uf=i(256),zf=i(256),Hf=i(256),Wf=i(cs-La),Gf=i(cs-La);xn("YuvToRgbRow",pi,3),xn("YuvToBgrRow",gi,3),xn("YuvToRgbaRow",pa,4),xn("YuvToBgraRow",da,4),xn("YuvToArgbRow",mi,4),xn("YuvToRgba4444Row",vi,2),xn("YuvToRgb565Row",fr,2);var Bl=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ho=[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,b){var y=io,A=new $,N=new _e;A.ba=N,N.S=y,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),b!=null&&(b[0]=N.height);t:{if(v=new Oi,(b=new dt).data=o,b.w=s,b.ha=d,b.kd=1,s=[0],t(b!=null),((o=bi(b.data,b.w,b.ha,null,null,null,s,null,b))==0||o==7)&&s[0]&&(o=4),(s=o)==0){if(t(A!=null),v.data=b.data,v.w=b.w+b.offset,v.ha=b.ha-b.offset,v.put=Wt,v.ac=en,v.bc=pn,v.ma=A,b.xa){if((o=ei())==null){A=1;break t}if((function(I,Y){var X=[0],ut=[0],Z=[0];e:for(;;){if(I==null)return 0;if(Y==null)return I.a=2,0;if(I.l=Y,I.a=0,ct(I.m,Y.data,Y.w,Y.ha),!gn(I.m,X,ut,Z)){I.a=3;break e}if(I.xb=Cl,Y.width=X[0],Y.height=ut[0],!nn(X[0],ut[0],1,I,null))break e;return 1}return t(I.a!=0),0})(o,v)){if(v=(s=Dn(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((b=d.ma)!=null),v.xb!=0){if(v.ca=b.ba,v.tb=b.tb,t(v.ca!=null),!ga(b.Oa,d,ao)){v.a=2;break r}if(!ri(v,d.width)||d.da)break r;if((d.da||ee(v.ca.S))&&Tr(),11>v.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),v.ca.f.kb.F!=null&&Tr()),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,En))break r;b.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 Wo)==null){A=1;break t}if(o.Fa=b.na,o.P=b.P,o.qc=b.Sa,Wa(o,v)){if((s=Dn(v.width,v.height,A.Oa,A.ba))==0){if(o.Aa=0,d=A.Oa,t((b=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=b.pb[F]).lc&&(tt.ia=k*Vf[0>tt.lc?0:tt.lc]>>3),H|=tt.ia;H&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=d.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.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&&!Wa(I,Y))return 0;if(t(I.cb),Y.ac==null||Y.ac(Y)){Y.ob&&(I.L=0);var X=ho[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 Z;if(I.Qa.Cb){var ft=I.Qa.Lb[X];I.Qa.Fb||(ft+=ut.Tb)}else ft=ut.Tb;for(Z=0;1>=Z;++Z){var gt=I.gd[X][Z],xt=ft;if(ut.Pc&&(xt+=ut.vd[0],Z&&(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=Z}}}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+(Z=3*(16*X+ho[I.L])/2*Dt)+(ft=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,Ua),I.Hd=0,I.rb=h(Ct+1,ra),I.sb=1,I.wa=oe?h(oe,Rr):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,na),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=ho[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+=Z,I.mb=ft?gt:null,I.nb=ft?xt:null,t(xt+ft<=I.Fc+I.Vb),ni(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)yl[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}zn=Va,xi=Vo,ln=Yo,me=an,Ne=Ga,qr=Go,ze=Ka,Qe=$a,_n=c,Aa=m,Ui=fi,eo=Xa,fl=O,cl=q,dl=ca,pl=hi,gl=Ya,vl=Ja,Jr[0]=ts,Jr[1]=aa,Jr[2]=Zo,Jr[3]=Qo,Jr[4]=es,Jr[5]=bn,Jr[6]=mn,Jr[7]=rs,Jr[8]=ji,Jr[9]=ns,Hn[0]=jn,Hn[1]=Ko,Hn[2]=$o,Hn[3]=oa,Hn[4]=Xo,Hn[5]=oi,Hn[6]=sa,Nn[0]=Di,Nn[1]=Jo,Nn[2]=la,Nn[3]=si,Nn[4]=ua,Nn[5]=is,Nn[6]=ha,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 re=Lt,fe=He,Fe=fe.Ac,sr=fe.Bc+4*se,mr=fe.zc,De=fe.ya[fe.aa+se];if(fe.Qa.Bb?De.$b=vt(re,fe.Pa.jb[0])?2+vt(re,fe.Pa.jb[2]):vt(re,fe.Pa.jb[1]):De.$b=0,fe.kc&&(De.Ad=vt(re,fe.Bd)),De.Za=!vt(re,145)+0,De.Za){var cr=De.Ob,br=0;for(fe=0;4>fe;++fe){var er,ce=mr[0+fe];for(er=0;4>er;++er){ce=Ef[Fe[sr+er]][ce];for(var we=Pl[vt(re,ce[0])];0<we;)we=Pl[2*we+vt(re,ce[we])];ce=-we,Fe[sr+er]=ce}n(cr,br,Fe,sr,4),br+=4,mr[0+fe]=ce}}else ce=vt(re,156)?vt(re,128)?1:3:vt(re,163)?2:0,De.Ob[0]=ce,a(Fe,sr,ce,4),a(mr,0,ce,4);De.Dd=vt(re,142)?vt(re,114)?vt(re,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,re=(Lt=he).rb[Lt.sb-1],Fe=Lt.rb[Lt.sb+Lt.ja],se=Lt.ya[Lt.aa+Lt.ja],sr=Lt.kc?se.Ad:0)re.la=Fe.la=0,se.Za||(re.Na=Fe.Na=0),se.Hc=0,se.Gc=0,se.ia=0;else{var Re,ye;if(re=Fe,Fe=He,sr=Lt.Pa.Xc,mr=Lt.ya[Lt.aa+Lt.ja],De=Lt.pb[mr.$b],fe=mr.ad,cr=0,br=Lt.rb[Lt.sb-1],ce=er=0,a(fe,cr,0,384),mr.Za)var lr=0,Kr=sr[3];else{we=i(16);var We=re.Na+br.Na;if(We=Na(Fe,sr[1],We,De.Eb,0,we,0),re.Na=br.Na=(0<We)+0,1<We)zn(we,0,fe,cr);else{var xr=we[0]+3>>3;for(we=0;256>we;we+=16)fe[cr+we]=xr}lr=1,Kr=sr[0]}var Le=15&re.la,rr=15&br.la;for(we=0;4>we;++we){var kr=1&rr;for(xr=ye=0;4>xr;++xr)Le=Le>>1|(kr=(We=Na(Fe,Kr,We=kr+(1&Le),De.Sc,lr,fe,cr))>lr)<<7,ye=ye<<2|(3<We?3:1<We?2:fe[cr+0]!=0),cr+=16;Le>>=4,rr=rr>>1|kr<<7,er=(er<<8|ye)>>>0}for(Kr=Le,lr=rr>>4,Re=0;4>Re;Re+=2){for(ye=0,Le=re.la>>4+Re,rr=br.la>>4+Re,we=0;2>we;++we){for(kr=1&rr,xr=0;2>xr;++xr)We=kr+(1&Le),Le=Le>>1|(kr=0<(We=Na(Fe,sr[2],We,De.Qc,0,fe,cr)))<<3,ye=ye<<2|(3<We?3:1<We?2:fe[cr+0]!=0),cr+=16;Le>>=2,rr=rr>>1|kr<<5}ce|=ye<<4*Re,Kr|=Le<<4<<Re,lr|=(240&rr)<<Re}re.la=Kr,br.la=lr,mr.Hc=er,mr.Gc=ce,mr.ia=43690&ce?0:De.ia,sr=!(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|=!sr),He.Ka)return Je(he,7,"Premature end-of-file encountered.")}if(ni(he),Lt=tr,He=1,se=(Ot=he).D,re=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(se.M=Ot.M,se.uc=re,Mr(Ot,se),He=1,se=(ye=Ot.D).Nb,re=(ce=ho[Ot.L])*Ot.R,Fe=ce/2*Ot.B,we=16*se*Ot.R,xr=8*se*Ot.B,sr=Ot.sa,mr=Ot.ta-re+we,De=Ot.qa,fe=Ot.ra-Fe+xr,cr=Ot.Ha,br=Ot.Ia-Fe+xr,rr=(Le=ye.M)==0,er=Le>=Ot.Va-1,Ot.Aa==2&&Mr(Ot,ye),ye.uc)for(kr=(We=Ot).D.M,t(We.D.uc),ye=We.yb;ye<We.Hb;++ye){lr=ye,Kr=kr;var wr=(Pr=(ur=We).D).Nb;Re=ur.R;var Pr=Pr.wa[Pr.Y+lr],Cr=ur.sa,Ar=ur.ta+16*wr*Re+16*lr,Fr=Pr.dd,Ce=Pr.tc;if(Ce!=0)if(t(3<=Ce),ur.L==1)0<lr&&pl(Cr,Ar,Re,Ce+4),Pr.La&&vl(Cr,Ar,Re,Ce),0<Kr&&dl(Cr,Ar,Re,Ce+4),Pr.La&&gl(Cr,Ar,Re,Ce);else{var Ir=ur.B,$r=ur.qa,Ai=ur.ra+8*wr*Ir+8*lr,Ln=ur.Ha,ur=ur.Ia+8*wr*Ir+8*lr;wr=Pr.ld,0<lr&&(Qe(Cr,Ar,Re,Ce+4,Fr,wr),Aa($r,Ai,Ln,ur,Ir,Ce+4,Fr,wr)),Pr.La&&(eo(Cr,Ar,Re,Ce,Fr,wr),cl($r,Ai,Ln,ur,Ir,Ce,Fr,wr)),0<Kr&&(ze(Cr,Ar,Re,Ce+4,Fr,wr),_n($r,Ai,Ln,ur,Ir,Ce+4,Fr,wr)),Pr.La&&(Ui(Cr,Ar,Re,Ce,Fr,wr),fl($r,Ai,Ln,ur,Ir,Ce,Fr,wr))}}if(Ot.ia&&alert("todo:DitherRow"),Lt.put!=null){if(ye=16*Le,Le=16*(Le+1),rr?(Lt.y=Ot.sa,Lt.O=Ot.ta+we,Lt.f=Ot.qa,Lt.N=Ot.ra+xr,Lt.ea=Ot.Ha,Lt.W=Ot.Ia+xr):(ye-=ce,Lt.y=sr,Lt.O=mr,Lt.f=De,Lt.N=fe,Lt.ea=cr,Lt.W=br),er||(Le-=ce),Le>Lt.o&&(Le=Lt.o),Lt.F=null,Lt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&ye<Le&&(Lt.J=Ke(Ot,Lt,ye,Le-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<Le&&(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=Le-ye,He=Lt.put(Lt))}se+1!=Ot.Ic||er||(n(Ot.sa,Ot.ta-re,sr,mr+16*Ot.R,re),n(Ot.qa,Ot.ra-Fe,De,fe+8*Ot.B,Fe),n(Ot.Ha,Ot.Ia-Fe,cr,br+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=va(A.ba))}A=s}y=A!=0?null:11>y?N.f.RGBA.eb:N.f.kb.y}else y=null;return y};var Dl=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function f(T,Q){for(var L="",E=0;E<4;E++)L+=String.fromCharCode(T[Q++]);return L}function p(T,Q){return T[Q+0]|T[Q+1]<<8}function w(T,Q){return(T[Q+0]|T[Q+1]<<8|T[Q+2]<<16)>>>0}function x(T,Q){return(T[Q+0]|T[Q+1]<<8|T[Q+2]<<16|T[Q+3]<<24)>>>0}new u;var g=[0],P=[0],C=[],j=new u,S=r,W=(function(T,Q){var L={},E=0,z=!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,Q)){for(x(T,Q+=4),Q+=8;Q<T.length;){var lt=f(T,Q),ht=x(T,Q+=4);Q+=4;var et=ht+(1&ht);switch(lt){case"VP8 ":case"VP8L":L.frames[E]===void 0&&(L.frames[E]={}),(wt=L.frames[E]).src_off=z?nt:Q-8,wt.src_size=U+ht+8,E++,z&&(z=!1,U=0,nt=0);break;case"VP8X":(wt=L.header={}).feature_flags=T[Q];var ct=Q+4;wt.canvas_width=1+w(T,ct),ct+=3,wt.canvas_height=1+w(T,ct),ct+=3;break;case"ALPH":z=!0,U=et+8,nt=Q-8;break;case"ANIM":(wt=L.header).bgcolor=x(T,Q),ct=Q+4,wt.loop_count=p(T,ct),ct+=2;break;case"ANMF":var Nt,wt;(wt=L.frames[E]={}).offset_x=2*w(T,Q),Q+=3,wt.offset_y=2*w(T,Q),Q+=3,wt.width=1+w(T,Q),Q+=3,wt.height=1+w(T,Q),Q+=3,wt.duration=w(T,Q),Q+=3,Nt=T[Q++],wt.dispose=1&Nt,wt.blend=Nt>>1&1}lt!="ANMF"&&(Q+=et)}return L}})(S,0);W.response=S,W.rgbaoutput=!0,W.dataurl=!1;var G=W.header?W.header:null,M=W.frames?W.frames:null;if(G){G.loop_counter=G.loop_count,g=[G.canvas_height],P=[G.canvas_width];for(var it=0;it<M.length&&M[it].blend!=0;it++);}var mt=M[0],pt=j.WebPDecodeRGBA(S,mt.src_off,mt.src_size,P,g);mt.rgba=pt,mt.imgwidth=P[0],mt.imgheight=g[0];for(var K=0;K<P[0]*g[0]*4;K++)C[K]=pt[K];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 w(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 w=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 rt=0;Object.defineProperty(this,"posY",{get:function(){return rt},set:function(st){isNaN(st)||(rt=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 ot=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ot},set:function(st){ot=st}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(st){at=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 At=[];Object.defineProperty(this,"ctxStack",{get:function(){return At},set:function(st){At=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 ne=D[3],zt=D[4];D[5];var _t=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,ke,pe=[],Bt=Gt.trim();if(Bt==="")return Ms;if(Bt in Gu)return[Gu[Bt]];for(;Bt!=="";){switch(ke=null,qt=(Bt=Yu(Bt)).charAt(0)){case'"':case"'":ke=S2(Bt.substring(1),qt);break;default:ke=k2(Bt)}if(ke===null||(pe.push(ke[0]),(Bt=Yu(ke[1]))!==""&&Bt.charAt(0)!==","))return Ms;Bt=Bt.replace(/^,/,"")}return pe})(_t);if(this.fontFaces){var ie=(function(Gt,qt){if(kt===null){var ke=(function(pe){var Bt=[];return Object.keys(pe).forEach(function(te){pe[te].forEach(function(Ae){var Ht=null;switch(Ae){case"bold":Ht={family:te,weight:"bold"};break;case"italic":Ht={family:te,style:"italic"};break;case"bolditalic":Ht={family:te,weight:"bold",style:"italic"};break;case"":case"normal":Ht={family:te}}Ht!==null&&(Ht.ref={name:te,style:Ae},Bt.push(Ht))})}),Bt})(Gt.getFontList());kt=(function(pe){for(var Bt={},te=0;te<pe.length;++te){var Ae=Ts(pe[te]),Ht=Ae.family,ue=Ae.stretch,ee=Ae.style,Me=Ae.weight;Bt[Ht]=Bt[Ht]||{},Bt[Ht][ue]=Bt[Ht][ue]||{},Bt[Ht][ue][ee]=Bt[Ht][ue][ee]||{},Bt[Ht][ue][ee][Me]=Ae}return Bt})(ke.concat(qt))}return kt})(this.pdf,this.fontFaces),Ut=St.map(function(Gt){return{family:Gt,stretch:"normal",weight:ne,style:le}}),de=(function(Gt,qt,ke){for(var pe=(ke=ke||{}).defaultFontFamily||"times",Bt=Object.assign({},L2,ke.genericFontFamilies||{}),te=null,Ae=null,Ht=0;Ht<qt.length;++Ht)if(Bt[(te=Ts(qt[Ht])).family]&&(te.family=Bt[te.family]),Gt.hasOwnProperty(te.family)){Ae=Gt[te.family];break}if(!(Ae=Ae||Gt[pe]))throw new Error("Could not find a font-family for the rule '"+Vu(te)+"' and default family '"+pe+"'.");if(Ae=(function(ue,ee){if(ee[ue])return ee[ue];var Me=rl[ue],Xe=Me<=rl.normal?-1:1,_e=Wu(ee,ef,Me,Xe);if(!_e)throw new Error("Could not find a matching font-stretch value for "+ue);return _e})(te.stretch,Ae),Ae=(function(ue,ee){if(ee[ue])return ee[ue];for(var Me=tf[ue],Xe=0;Xe<Me.length;++Xe)if(ee[Me[Xe]])return ee[Me[Xe]];throw new Error("Could not find a matching font-style for "+ue)})(te.style,Ae),!(Ae=(function(ue,ee){if(ee[ue])return ee[ue];if(ue===400&&ee[500])return ee[500];if(ue===500&&ee[400])return ee[400];var Me=N2[ue],Xe=Wu(ee,rf,Me,ue<400?-1:1);if(!Xe)throw new Error("Could not find a matching font-weight for value "+ue);return Xe})(te.weight,Ae)))throw new Error("Failed to resolve a font for the rule '"+Vu(te)+"'.");return Ae})(ie,Ut);this.pdf.setFont(de.ref.name,de.ref.style)}else{var Zt="";(ne==="bold"||parseInt(ne,10)>=700||le==="bold")&&(Zt="bold"),le==="italic"&&(Zt+="italic"),Zt.length===0&&(Zt="normal");for(var Qt="",xe={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"},ae=0;ae<St.length;ae++){if(this.pdf.internal.getFont(St[ae],Zt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=St[ae];break}if(Zt==="bolditalic"&&this.pdf.internal.getFont(St[ae],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=St[ae],Zt="bold";else if(this.pdf.internal.getFont(St[ae],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=St[ae],Zt="normal";break}}if(Qt===""){for(var Mt=0;Mt<St.length;Mt++)if(xe[St[Mt]]){Qt=xe[St[Mt]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Zt)}}}}),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}})};w.prototype.setLineDash=function(_){this.lineDash=_},w.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},w.prototype.fill=function(){M.call(this,"fill",!1)},w.prototype.stroke=function(){M.call(this,"stroke",!1)},w.prototype.beginPath=function(){this.path=[{type:"begin"}]},w.prototype.moveTo=function(_,B){if(isNaN(_)||isNaN(B))throw Se.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)},w.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"&&be(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)},w.prototype.lineTo=function(_,B){if(isNaN(_)||isNaN(B))throw Se.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)},w.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),M.call(this,null,!0)},w.prototype.quadraticCurveTo=function(_,B,R,V){if(isNaN(R)||isNaN(V)||isNaN(_)||isNaN(B))throw Se.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)),rt=this.ctx.transform.applyToPoint(new h(_,B));this.path.push({type:"qct",x1:rt.x,y1:rt.y,x:J.x,y:J.y}),this.ctx.lastPoint=new h(J.x,J.y)},w.prototype.bezierCurveTo=function(_,B,R,V,J,rt){if(isNaN(J)||isNaN(rt)||isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Se.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ot=this.ctx.transform.applyToPoint(new h(J,rt)),at=this.ctx.transform.applyToPoint(new h(_,B)),vt=this.ctx.transform.applyToPoint(new h(R,V));this.path.push({type:"bct",x1:at.x,y1:at.y,x2:vt.x,y2:vt.y,x:ot.x,y:ot.y}),this.ctx.lastPoint=new h(ot.x,ot.y)},w.prototype.arc=function(_,B,R,V,J,rt){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V)||isNaN(J))throw Se.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(rt=!!rt,!this.ctx.transform.isIdentity){var ot=this.ctx.transform.applyToPoint(new h(_,B));_=ot.x,B=ot.y;var at=this.ctx.transform.applyToPoint(new h(0,R)),vt=this.ctx.transform.applyToPoint(new h(0,0));R=Math.sqrt(Math.pow(at.x-vt.x,2)+Math.pow(at.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:rt})},w.prototype.arcTo=function(_,B,R,V,J){throw new Error("arcTo not implemented.")},w.prototype.rect=function(_,B,R,V){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Se.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)},w.prototype.fillRect=function(_,B,R,V){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Se.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)}},w.prototype.strokeRect=function(_,B,R,V){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Se.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())},w.prototype.clearRect=function(_,B,R,V){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V))throw Se.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))},w.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}},w.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)},w.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 rt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(rt!==null)B=parseInt(rt[1]),R=parseInt(rt[2]),V=parseInt(rt[3]),J=1;else if((rt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)B=parseInt(rt[1]),R=parseInt(rt[2]),V=parseInt(rt[3]),J=parseFloat(rt[4]);else{if(J=1,typeof _=="string"&&_.charAt(0)!=="#"){var ot=new Yh(_);_=ot.ok?ot.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)};w.prototype.fillText=function(_,B,R,V){if(isNaN(B)||isNaN(R)||typeof _!="string")throw Se.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=et(this.ctx.transform.rotation),rt=this.ctx.transform.scaleX;E.call(this,{text:_,x:B,y:R,scale:rt,angle:J,align:this.textAlign,maxWidth:V})}},w.prototype.strokeText=function(_,B,R,V){if(isNaN(B)||isNaN(R)||typeof _!="string")throw Se.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=et(this.ctx.transform.rotation),rt=this.ctx.transform.scaleX;E.call(this,{text:_,x:B,y:R,scale:rt,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:V})}},w.prototype.measureText=function(_){if(typeof _!="string")throw Se.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(rt){var ot=(rt=rt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ot}}),this}({width:J*=Math.round(96*R/72*1e4)/1e4})},w.prototype.scale=function(_,B){if(isNaN(_)||isNaN(B))throw Se.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)},w.prototype.rotate=function(_){if(isNaN(_))throw Se.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)},w.prototype.translate=function(_,B){if(isNaN(_)||isNaN(B))throw Se.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)},w.prototype.transform=function(_,B,R,V,J,rt){if(isNaN(_)||isNaN(B)||isNaN(R)||isNaN(V)||isNaN(J)||isNaN(rt))throw Se.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ot=new u(_,B,R,V,J,rt);this.ctx.transform=this.ctx.transform.multiply(ot)},w.prototype.setTransform=function(_,B,R,V,J,rt){_=isNaN(_)?1:_,B=isNaN(B)?0:B,R=isNaN(R)?0:R,V=isNaN(V)?1:V,J=isNaN(J)?0:J,rt=isNaN(rt)?0:rt,this.ctx.transform=new u(_,B,R,V,J,rt)};var C=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};w.prototype.drawImage=function(_,B,R,V,J,rt,ot,at,vt){var At=this.pdf.getImageProperties(_),kt=1,Pt=1,st=1,D=1;V!==void 0&&at!==void 0&&(st=at/V,D=vt/J,kt=At.width/V*at/V,Pt=At.height/J*vt/J),rt===void 0&&(rt=B,ot=R,B=0,R=0),V!==void 0&&at===void 0&&(at=V,vt=J),V===void 0&&at===void 0&&(at=At.width,vt=At.height);for(var le,ne=this.ctx.transform.decompose(),zt=et(ne.rotate.shx),_t=new u,Tt=(_t=(_t=(_t=_t.multiply(ne.translate)).multiply(ne.skew)).multiply(ne.scale)).applyToRectangle(new l(rt-B*st,ot-R*D,V*kt,J*Pt)),St=j.call(this,Tt),ie=[],Ut=0;Ut<St.length;Ut+=1)ie.indexOf(St[Ut])===-1&&ie.push(St[Ut]);if(G(ie),this.autoPaging)for(var de=ie[0],Zt=ie[ie.length-1],Qt=de;Qt<Zt+1;Qt++){this.pdf.setPage(Qt);var xe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ae=Qt===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=Qt===1?0:Mt+(Qt-2)*Gt;if(this.ctx.clip_path.length!==0){var ke=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(le,this.posX+this.margin[3],-qt+ae+this.ctx.prevPageLastElemOffset),it.call(this,"fill",!0),this.path=ke}var pe=JSON.parse(JSON.stringify(Tt));pe=W([pe],this.posX+this.margin[3],-qt+ae+this.ctx.prevPageLastElemOffset)[0];var Bt=(Qt>de||Qt<Zt)&&C.call(this);Bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xe,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 rt=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);V.push(Math.floor((rt.y+J)/R)+1),V.push(Math.floor((rt.y+rt.h+J)/R)+1);break;case"bct":var ot=Nt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);V.push(Math.floor((ot.y+J)/R)+1),V.push(Math.floor((ot.y+ot.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 at=0;at<V.length;at+=1)for(;this.pdf.internal.getNumberOfPages()<V[at];)S.call(this);return V},S=function(){var _=this.fillStyle,B=this.strokeStyle,R=this.font,V=this.lineCap,J=this.lineWidth,rt=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=B,this.font=R,this.lineCap=V,this.lineWidth=J,this.lineJoin=rt},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 _},G=function(_){return _.sort(function(B,R){return B-R})},M=function(_,B){for(var R,V,J=this.fillStyle,rt=this.strokeStyle,ot=this.lineCap,at=this.lineWidth,vt=Math.abs(at*this.ctx.transform.scaleX),At=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]),ne=0;ne<le.length;ne+=1)st.indexOf(le[ne])===-1&&st.push(le[ne]);for(var zt=0;zt<st.length;zt++)for(;this.pdf.internal.getNumberOfPages()<st[zt];)S.call(this);if(G(st),this.autoPaging)for(var _t=st[0],Tt=st[st.length-1],St=_t;St<Tt+1;St++){this.pdf.setPage(St),this.fillStyle=J,this.strokeStyle=rt,this.lineCap=ot,this.lineWidth=vt,this.lineJoin=At;var ie=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],Zt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qt=St===1?0:de+(St-2)*Zt;if(this.ctx.clip_path.length!==0){var xe=this.path;R=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(R,this.posX+this.margin[3],-Qt+Ut+this.ctx.prevPageLastElemOffset),it.call(this,_,!0),this.path=xe}if(V=JSON.parse(JSON.stringify(kt)),this.path=W(V,this.posX+this.margin[3],-Qt+Ut+this.ctx.prevPageLastElemOffset),B===!1||St===0){var ae=(St>_t||St<Tt)&&C.call(this);ae&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,Zt,null).clip().discardPath()),it.call(this,_,B),ae&&this.pdf.restoreGraphicsState()}this.lineWidth=at}else this.lineWidth=vt,it.call(this,_,B),this.lineWidth=at;this.path=kt},it=function(_,B){if((_!=="stroke"||B||!P.call(this))&&(_==="stroke"||B||!g.call(this))){for(var R,V,J=[],rt=this.path,ot=0;ot<rt.length;ot++){var at=rt[ot];switch(at.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:at,deltas:[],abs:[]});break;case"lt":var vt=J.length;if(rt[ot-1]&&!isNaN(rt[ot-1].x)&&(R=[at.x-rt[ot-1].x,at.y-rt[ot-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(at);break}}break;case"bct":R=[at.x1-rt[ot-1].x,at.y1-rt[ot-1].y,at.x2-rt[ot-1].x,at.y2-rt[ot-1].y,at.x-rt[ot-1].x,at.y-rt[ot-1].y],J[J.length-1].deltas.push(R);break;case"qct":var At=rt[ot-1].x+2/3*(at.x1-rt[ot-1].x),kt=rt[ot-1].y+2/3*(at.y1-rt[ot-1].y),Pt=at.x+2/3*(at.x1-at.x),st=at.y+2/3*(at.y1-at.y),D=at.x,le=at.y;R=[At-rt[ot-1].x,kt-rt[ot-1].y,Pt-rt[ot-1].x,st-rt[ot-1].y,D-rt[ot-1].x,le-rt[ot-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(at)}}V=B?null:_==="stroke"?"stroke":"fill";for(var ne=!1,zt=0;zt<J.length;zt++)if(J[zt].arc)for(var _t=J[zt].abs,Tt=0;Tt<_t.length;Tt++){var St=_t[Tt];St.type==="arc"?K.call(this,St.x,St.y,St.radius,St.startAngle,St.endAngle,St.counterclockwise,void 0,B,!ne):z.call(this,St.x,St.y),ne=!0}else if(J[zt].close===!0)this.pdf.internal.out("h"),ne=!1;else if(J[zt].begin!==!0){var ie=J[zt].start.x,Ut=J[zt].start.y;U.call(this,J[zt].deltas,ie,Ut),ne=!0}V&&T.call(this,V),B&&Q.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 _}},pt=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};w.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,_},w.prototype.createPattern=function(){return this.createLinearGradient()},w.prototype.createRadialGradient=function(){return this.createLinearGradient()};var K=function(_,B,R,V,J,rt,ot,at,vt){for(var At=lt.call(this,R,V,J,rt),kt=0;kt<At.length;kt++){var Pt=At[kt];kt===0&&(vt?L.call(this,Pt.x1+_,Pt.y1+B):z.call(this,Pt.x1+_,Pt.y1+B)),nt.call(this,_,B,Pt.x2,Pt.y2,Pt.x3,Pt.y3,Pt.x4,Pt.y4)}at?Q.call(this):T.call(this,ot)},T=function(_){switch(_){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Q=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(_,B){this.pdf.internal.out(e(_)+" "+n(B)+" m")},E=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=pt.call(this,V)-R.h,rt=this.ctx.transform.applyToPoint(new h(_.x,V)),ot=this.ctx.transform.decompose(),at=new u;at=(at=(at=at.multiply(ot.translate)).multiply(ot.skew)).multiply(ot.scale);for(var vt,At,kt,Pt=this.ctx.transform.applyToRectangle(new l(_.x,V,R.w,R.h)),st=at.applyToRectangle(new l(_.x,J,R.w,R.h)),D=j.call(this,st),le=[],ne=0;ne<D.length;ne+=1)le.indexOf(D[ne])===-1&&le.push(D[ne]);if(G(le),this.autoPaging)for(var zt=le[0],_t=le[le.length-1],Tt=zt;Tt<_t+1;Tt++){this.pdf.setPage(Tt);var St=Tt===1?this.posY+this.margin[0]:this.margin[0],ie=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],Zt=this.pdf.internal.pageSize.width-this.margin[1],Qt=Zt-this.margin[3],xe=Tt===1?0:ie+(Tt-2)*de;if(this.ctx.clip_path.length!==0){var ae=this.path;vt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(vt,this.posX+this.margin[3],-1*xe+St),it.call(this,"fill",!0),this.path=ae}var Mt=W([JSON.parse(JSON.stringify(st))],this.posX+this.margin[3],-xe+St+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(At=this.pdf.internal.getFontSize(),this.pdf.setFontSize(At*_.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<=Zt){var qt=Gt?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||Zt-Mt.x)[0],ke=W([JSON.parse(JSON.stringify(Pt))],this.posX+this.margin[3],-xe+St+this.ctx.prevPageLastElemOffset)[0],pe=Gt&&(Tt>zt||Tt<_t)&&C.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Qt,de,null).clip().discardPath()),this.pdf.text(qt,ke.x,ke.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(At),this.lineWidth=kt)}else _.scale>=.01&&(At=this.pdf.internal.getFontSize(),this.pdf.setFontSize(At*_.scale),kt=this.lineWidth,this.lineWidth=kt*_.scale),this.pdf.text(_.text,rt.x+this.posX,rt.y+this.posY,{angle:_.angle,align:B,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(At),this.lineWidth=kt)},z=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,rt,ot,at){this.pdf.internal.out([t(a(R+_)),t(i(V+B)),t(a(J+_)),t(i(rt+B)),t(a(ot+_)),t(i(at+B)),"c"].join(" "))},lt=function(_,B,R,V){for(var J=2*Math.PI,rt=Math.PI/2;B>R;)B-=J;var ot=Math.abs(R-B);ot<J&&V&&(ot=J-ot);for(var at=[],vt=V?-1:1,At=B;ot>1e-5;){var kt=At+vt*Math.min(ot,rt);at.push(ht.call(this,_,At,kt)),ot-=Math.abs(kt-At),At=kt}return at},ht=function(_,B,R){var V=(R-B)/2,J=_*Math.cos(V),rt=_*Math.sin(V),ot=J,at=-rt,vt=ot*ot+at*at,At=vt+ot*J+at*rt,kt=4/3*(Math.sqrt(2*vt*At)-At)/(ot*rt-at*J),Pt=ot-kt*at,st=at+kt*ot,D=Pt,le=-st,ne=V+B,zt=Math.cos(ne),_t=Math.sin(ne);return{x1:_*Math.cos(B),y1:_*Math.sin(B),x2:Pt*zt-st*_t,y2:Pt*_t+st*zt,x3:D*zt-le*_t,y3:D*_t+le*zt,x4:_*Math.cos(R),y4:_*Math.sin(R)}},et=function(_){return 180*_/Math.PI},ct=function(_,B,R,V,J,rt){var ot=_+.5*(R-_),at=B+.5*(V-B),vt=J+.5*(R-J),At=rt+.5*(V-rt),kt=Math.min(_,J,ot,vt),Pt=Math.max(_,J,ot,vt),st=Math.min(B,rt,at,At),D=Math.max(B,rt,at,At);return new l(kt,st,Pt-kt,D-st)},Nt=function(_,B,R,V,J,rt,ot,at){var vt,At,kt,Pt,st,D,le,ne,zt,_t,Tt,St,ie,Ut,de=R-_,Zt=V-B,Qt=J-R,xe=rt-V,ae=ot-J,Mt=at-rt;for(At=0;At<41;At++)zt=(le=(kt=_+(vt=At/40)*de)+vt*((st=R+vt*Qt)-kt))+vt*(st+vt*(J+vt*ae-st)-le),_t=(ne=(Pt=B+vt*Zt)+vt*((D=V+vt*xe)-Pt))+vt*(D+vt*(rt+vt*Mt-D)-ne),At==0?(Tt=zt,St=_t,ie=zt,Ut=_t):(Tt=Math.min(Tt,zt),St=Math.min(St,_t),ie=Math.max(ie,zt),Ut=Math.max(Ut,_t));return new l(Math.round(Tt),Math.round(St),Math.round(ie-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,w,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)(w=(h.charCodeAt(f)<<24)+(h.charCodeAt(f+1)<<16)+(h.charCodeAt(f+2)<<8)+h.charCodeAt(f+3))!==0?(x=(w=((w=((w=((w=(w-(j=w%85))/85)-(C=w%85))/85)-(P=w%85))/85)-(g=w%85))/85)%85,u.push(x+33,g+33,P+33,C+33,j+33)):u.push(122);return(function(S,W){for(var G=W;G>0;G--)S.pop()})(u,l.length),String.fromCharCode.apply(String,u)+"~>"},e=function(h){var l,u,f,p,w,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,w=(h+=l="uuuuu"[j](h[g]%5||5))[g];w>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,G){for(var M=G;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=Ks(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 w=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(w.open("GET",u,!f),w.overrideMimeType("text/plain; charset=x-user-defined"),f===!1&&(w.onload=function(){w.status===200?p(g(this.responseText)):p(void 0)}),w.send(null),f&&w.status===200)return g(w.responseText)})(a,i,h)}catch{}return l})(t,e,n)},r.loadImageFile=r.loadFile})(Rt.API),(function(r){function t(){return(Vt.html2canvas?Promise.resolve(Vt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-CNmnTSlr.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(Vt.DOMPurify?Promise.resolve(Vt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-ClceE12G.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=be(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),w=u.firstChild;w;w=w.nextSibling)f!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||p.appendChild(l(w,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,w=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:w,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,w){return f.updateProgress(null,null,1,[p]),Promise.prototype.then.call(this,function(x){return f.updateProgress(null,p),x}).then(p,w).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 w=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?p:h.convert(Object.assign({},p),Promise.prototype),x=f.call(w,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(be(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 w,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":w=1;break;case"mm":w=72/25.4;break;case"cm":w=72/2.54;break;case"in":w=72;break;case"px":w=.75;break;case"pc":case"em":w=12;break;case"ex":w=6;break;default:throw"Invalid unit: "+u}var P,C=0,j=0;if(g.hasOwnProperty(x))C=g[x][1]/w,j=g[x][0]/w;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:w,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(Ts):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(){So=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(So+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(){So!==void 0&&Ju!==void 0&&this.internal.out("/Names <</JavaScript "+So+" 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 w=e.internal.newObject();p.push(w);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
42
- `},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
43
- `+n.id+` 0 obj\r
44
- <<\r
45
- `},e.outline.objEnd=function(){this.ctx.val+=`>> \r
46
- endobj\r
47
- `},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(w){for(var x,g=256*w.charCodeAt(4)+w.charCodeAt(5),P=w.length,C={width:0,height:0,numcomponents:1},j=4;j<P;j+=2){if(j+=g,t.indexOf(w.charCodeAt(j+1))!==-1){x=256*w.charCodeAt(j+5)+w.charCodeAt(j+6),C={width:256*w.charCodeAt(j+7)+w.charCodeAt(j+8),height:x,numcomponents:w.charCodeAt(j+9)};break}g=256*w.charCodeAt(j+2)+w.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(K){for(var T=K.width,Q=K.height,L=K.data,E=K.palette,z=K.depth,U=!1,nt=[],lt=[],ht=void 0,et=!1,ct=0,Nt=0;Nt<E.length;Nt++){var wt=Ql(E[Nt],4),_=wt[0],B=wt[1],R=wt[2],V=wt[3];nt.push(_,B,R),V!=null&&(V===0?(ct++,lt.length<1&&lt.push(Nt)):V<255&&(et=!0))}if(et||ct>1){U=!0,lt=void 0;var J=T*Q;ht=new Uint8Array(J);for(var rt=new DataView(L.buffer),ot=0;ot<J;ot++){var at=qs(rt,ot,z),vt=Ql(E[at],4)[3];ht[ot]=vt}}else ct===0&&(lt=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:L,alphaBytes:ht,needSMask:U,palette:nt,mask:lt}})(i):u===2||u===4?(function(K){for(var T=K.data,Q=K.width,L=K.height,E=K.channels,z=K.depth,U=E===2?"DeviceGray":"DeviceRGB",nt=E-1,lt=Q*L,ht=nt,et=lt*ht,ct=1*lt,Nt=Math.ceil(et*z/8),wt=Math.ceil(ct*z/8),_=new Uint8Array(Nt),B=new Uint8Array(wt),R=new DataView(T.buffer),V=new DataView(_.buffer),J=new DataView(B.buffer),rt=!1,ot=0;ot<lt;ot++){for(var at=ot*E,vt=0;vt<ht;vt++)ih(V,qs(R,at+vt,z),ot*ht+vt,z);var At=qs(R,at+ht,z);At<(1<<z)-1&&(rt=!0),ih(J,At,1*ot,z)}return{colorSpace:U,colorsPerPixel:nt,sMaskBitsPerComponent:rt?z:void 0,colorBytes:_,alphaBytes:B,needSMask:rt}})(i):(function(K){var T=K.data,Q=K.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Q,colorsPerPixel:Q==="DeviceGray"?1:3,colorBytes:T instanceof Uint16Array?(function(L){for(var E=L.length,z=new Uint8Array(2*E),U=new DataView(z.buffer,z.byteOffset,z.byteLength),nt=0;nt<E;nt++)U.setUint16(2*nt,L[nt],!1);return z})(T):T,needSMask:!1}})(i);var w,x,g,P=a,C=P.colorSpace,j=P.colorsPerPixel,S=P.sMaskBitsPerComponent,W=P.colorBytes,G=P.alphaBytes,M=P.needSMask,it=P.palette,mt=P.mask,pt=null;return n!==Rt.API.image_compression.NONE&&typeof Ks=="function"?(pt=(function(K){var T;switch(K){case Rt.API.image_compression.FAST:T=11;break;case Rt.API.image_compression.MEDIUM:T=13;break;case Rt.API.image_compression.SLOW:T=14;break;default:T=12}return T})(n),w=this.decode.FLATE_DECODE,x="/Predictor ".concat(pt," /Colors ").concat(j," /BitsPerComponent ").concat(p," /Columns ").concat(h),r=Qu(W,Math.ceil(h*j*p/8),j,p,n),M&&(g=Qu(G,Math.ceil(h*S/8),1,S,n))):(w=void 0,x=void 0,r=W,M&&(g=G)),(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:w,decodeParameters:x,transparency:mt,palette:it,sMask:g,predictor:pt,width:h,height:l,bitsPerComponent:p,sMaskBitsPerComponent:S,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 Us(100).encode(f,100);return r.processJPEG.call(this,p,e,n,a)},r.processGIF87A=r.processGIF89A})(Rt.API),Xr.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)},Xr.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){Se.log("bit decode error:"+e)}},Xr.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)}},Xr.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)}},Xr.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)}},Xr.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}},Xr.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}},Xr.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}},Xr.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}},Xr.prototype.getData=function(){return this.data},(function(r){r.processBMP=function(t,e,n,a){var i=new Xr(t,!1),h=i.width,l=i.height,u={data:i.getData(),width:h,height:l},f=new Us(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 Us(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],w=n[f+1],x=n[f+2],g=n[f+3];i[l++]=p,i[l++]=w,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},Gi=Rt.API,ko=Gi.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,w=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=w&&be(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=Gi.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 Gi.processArabic&&(r=Gi.processArabic(r)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(r,e,a)/e:ko.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=[],w=[p],x=e.textIndent||0,g=0,P=0,C=r.split(" "),j=ko.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(it,mt){return(mt&&it.length?`
48
- `:"")+it})):W.push(M[0])}),C=W,u=$u.apply(this,[S,e])}for(i=0,h=C.length;i<h;i++){var G=0;if(n=C[i],u&&n[0]==`
49
- `&&(n=n.substr(1),G=1),x+g+(P=(a=ko.apply(this,[n,e])).reduce(function(M,it){return M+it},0))>t||G){if(P>t){for(l=Xu.apply(this,[n,a,t-(x+g),t]),p.push(l.shift()),p=[l.pop()];l.length;)w.push([l.shift()]);P=a.slice(n.length-(p[0]?p[0].length:0)).reduce(function(M,it){return M+it},0)}else p=[n];w.push(p),x=P+u,g=j}else p.push(n),x+=g+P,g=j}return f=u?function(M,it){return(it?S:"")+M.join(" ")}:function(M){return M.join(" ")},w.map(f)},Gi.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 w=this.internal.getFont(p.fontName,p.fontStyle),x="Unicode";return w.metadata[x]?{widths:w.metadata[x].widths||{0:1},kerning:w.metadata[x].kerning||{}}:{font:w.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(be(g)!=="object")throw new Error("Don't know what to do with value type "+be(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,G=S,M=[],it="",mt="",pt=x.length-1,K=1;K<pt;K+=1)(j=x[K])=="'"?g?(C=g.join(""),g=void 0):g=[]:g?g.push(j):j=="{"?(M.push([G,C]),G={},C=void 0):j=="}"?((P=M.pop())[0][P[1]]=G,C=void 0,G=P[0]):j=="-"?W=-1:C===void 0?n.hasOwnProperty(j)?(it+=n[j],C=parseInt(it,16)*W,W=1,it=""):it+=j:n.hasOwnProperty(j)?(mt+=n[j],G[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}},w={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=w.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(Co(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 Se.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(a))throw Se.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},w=this;return(Vt.canvg?Promise.resolve(Vt.canvg):Promise.resolve().then(()=>require("./index.es-DbLPWyn6.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(){w.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,w=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(w=0;w<g;w+=1)e[l[w]].value=e[l[w]].defaultValue,e[l[w]].explicitSet=!1}if(be(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
50
- <<
51
- `+C.join(`
52
- `)+`
53
- >>`)}),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=[""],w=0,x=i.length;w<x;++w){if(l=h.metadata.characterToGlyph(i.charCodeAt(w)),h.metadata.glyIdsUsed.push(l),h.metadata.toUnicode[l]=i.charCodeAt(w),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,w,x;for(p=`/CIDInit /ProcSet findresource begin
54
- 12 dict begin
55
- begincmap
56
- /CIDSystemInfo <<
57
- /Registry (Adobe)
58
- /Ordering (UCS)
59
- /Supplement 0
60
- >> def
61
- /CMapName /Adobe-Identity-UCS def
62
- /CMapType 2 def
63
- 1 begincodespacerange
64
- <0000><ffff>
65
- endcodespacerange`,u=[],w=0,x=(l=Object.keys(i).sort(function(g,P){return g-P})).length;w<x;w++)h=l[w],u.length>=100&&(p+=`
66
- `+u.length+` beginbfchar
67
- `+u.join(`
68
- `)+`
69
- 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+=`
70
- `+u.length+` beginbfchar
71
- `+u.join(`
72
- `)+`
73
- endbfchar
74
- `),p+`endcmap
75
- CMapName currentdict /CMap defineresource pop
76
- end
77
- 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 w=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 /"+Yi(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 /"+Yi(l.fontName)),u("/FontDescriptor "+S+" 0 R"),u("/W "+r.API.PDFObject.convert(w)),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 /"+Yi(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 w=l.metadata.rawData,x="",g=0;g<w.length;g++)x+=String.fromCharCode(w[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 /"+Yi(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/"+Yi(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||{},w=i.mutex||{},x=w.pdfEscape,g=w.activeFontKey,P=w.fonts,C=g,j="",S=0,W="",G=P[C].encoding;if(P[C].encoding!=="Identity-H")return{text:l,x:u,y:f,options:p,mutex:w};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||G==="WinAnsiEncoding"?M=x(j,C).split("").map(function(it){return it.charCodeAt(0).toString(16)}).join(""):G==="Identity-H"&&(M=e(j,P[C])),w.isHex=!0,{text:M,x:u,y:f,options:p,mutex:w}};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,w=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,G=0;this.__bidiEngine__={};var M=function(L){var E=L.charCodeAt(),z=E>>8,U=C[z];return U!==void 0?w[256*U+(255&E)]:z===252||z===253?"AL":S.test(z)?"L":z===8?"R":"N"},it=function(L){for(var E,z=0;z<L.length;z++){if((E=M(L.charAt(z)))==="L")return!1;if(E==="R")return!0}return!1},mt=function(L,E,z,U){var nt,lt,ht,et,ct=E[U];switch(ct){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&&(ct="AN");break;case"AL":W=!0,ct="R";break;case"WS":case"BN":ct="N";break;case"CS":U<1||U+1>=E.length||(nt=z[U-1])!=="EN"&&nt!=="AN"||(lt=E[U+1])!=="EN"&&lt!=="AN"?ct="N":W&&(lt="AN"),ct=lt===nt?lt:"N";break;case"ES":ct=(nt=U>0?z[U-1]:"B")==="EN"&&U+1<E.length&&E[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&z[U-1]==="EN"){ct="EN";break}if(W){ct="N";break}for(ht=U+1,et=E.length;ht<et&&E[ht]==="ET";)ht++;ct=ht<et&&E[ht]==="EN"?"EN":"N";break;case"NSM":if(h&&!l){for(et=E.length,ht=U+1;ht<et&&E[ht]==="NSM";)ht++;if(ht<et){var Nt=L[U],wt=Nt>=1425&&Nt<=2303||Nt===64286;if(nt=E[ht],wt&&(nt==="R"||nt==="AL")){ct="R";break}}}ct=U<1||(nt=E[U-1])==="B"?"N":z[U-1];break;case"B":W=!1,a=!0,ct=G;break;case"S":i=!0,ct="N"}return ct},pt=function(L,E,z){var U=L.split("");return z&&K(U,z,{hiLevel:G}),U.reverse(),E&&E.reverse(),U.join("")},K=function(L,E,z){var U,nt,lt,ht,et,ct=-1,Nt=L.length,wt=0,_=[],B=G?g:x,R=[];for(W=!1,a=!1,i=!1,nt=0;nt<Nt;nt++)R[nt]=M(L[nt]);for(lt=0;lt<Nt;lt++){if(et=wt,_[lt]=mt(L,R,_,lt),U=240&(wt=B[et][P[_[lt]]]),wt&=15,E[lt]=ht=B[wt][5],U>0)if(U===16){for(nt=ct;nt<lt;nt++)E[nt]=1;ct=-1}else ct=-1;if(B[wt][6])ct===-1&&(ct=lt);else if(ct>-1){for(nt=ct;nt<lt;nt++)E[nt]=ht;ct=-1}R[lt]==="B"&&(E[lt]=0),z.hiLevel|=ht}i&&(function(V,J,rt){for(var ot=0;ot<rt;ot++)if(V[ot]==="S"){J[ot]=G;for(var at=ot-1;at>=0&&V[at]==="WS";at--)J[at]=G}})(R,E,Nt)},T=function(L,E,z,U,nt){if(!(nt.hiLevel<L)){if(L===1&&G===1&&!a)return E.reverse(),void(z&&z.reverse());for(var lt,ht,et,ct,Nt=E.length,wt=0;wt<Nt;){if(U[wt]>=L){for(et=wt+1;et<Nt&&U[et]>=L;)et++;for(ct=wt,ht=et-1;ct<ht;ct++,ht--)lt=E[ct],E[ct]=E[ht],E[ht]=lt,z&&(lt=z[ct],z[ct]=z[ht],z[ht]=lt);wt=et}wt++}}},Q=function(L,E,z){var U=L.split(""),nt={hiLevel:G};return z||(z=[]),K(U,z,nt),(function(lt,ht,et){if(et.hiLevel!==0&&p)for(var ct,Nt=0;Nt<lt.length;Nt++)ht[Nt]===1&&(ct=j.indexOf(lt[Nt]))>=0&&(lt[Nt]=j[ct+1])})(U,z,nt),T(2,U,E,z,nt),T(1,U,E,z,nt),U.join("")};return this.__bidiEngine__.doBidiReorder=function(L,E,z){if((function(nt,lt){if(lt)for(var ht=0;ht<nt.length;ht++)lt[ht]=ht;l===void 0&&(l=it(nt)),f===void 0&&(f=it(nt))})(L,E),h||!u||f)if(h&&u&&l^f)G=l?1:0,L=pt(L,E,z);else if(!h&&u&&f)G=l?1:0,L=Q(L,E,z),L=pt(L,E);else if(!h||l||u||f){if(h&&!u&&l^f)L=pt(L,E),l?(G=0,L=Q(L,E,z)):(G=1,L=Q(L,E,z),L=pt(L,E));else if(h&&l&&!u&&f)G=1,L=Q(L,E,z),L=pt(L,E);else if(!h&&!u&&l^f){var U=p;l?(G=1,L=Q(L,E,z),G=0,p=!1,L=Q(L,E,z),p=U):(G=0,L=Q(L,E,z),L=pt(L,E),G=1,p=!1,L=Q(L,E,z),p=U,L=pt(L,E))}}else G=0,L=Q(L,E,z);else G=l?1:0,L=Q(L,E,z);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 Zn(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 tn,Zn=(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,w,x,g,P,C;for(C in g=Object.keys(e).length,u=Math.log(2),w=16*Math.floor(Math.log(g)/u),h=Math.floor(w/u),p=16*g-w,(a=new Zn).writeInt(this.scalarType),a.writeShort(g),a.writeShort(w),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 Zn(e),a=0,n=0,h=e.length;n<h;n=n+=4)a+=i.readUInt32();return 4294967295&a},t})(),O2={}.hasOwnProperty,cn=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};tn=(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 cn(r,tn),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 Zn).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,w,x,g,P,C,j,S,W,G;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),w=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,it;for(it=[],u=M=0;0<=x?M<x:M>x;u=0<=x?++M:--M)it.push(t.readUInt16());return it})(),t.pos+=2,C=(function(){var M,it;for(it=[],u=M=0;0<=x?M<x:M>x;u=0<=x?++M:--M)it.push(t.readUInt16());return it})(),f=(function(){var M,it;for(it=[],u=M=0;0<=x?M<x:M>x;u=0<=x?++M:--M)it.push(t.readUInt16());return it})(),p=(function(){var M,it;for(it=[],u=M=0;0<=x?M<x:M>x;u=0<=x?++M:--M)it.push(t.readUInt16());return it})(),a=(this.length-t.pos+this.offset)/2,l=(function(){var M,it;for(it=[],u=M=0;0<=a?M<a:M>a;u=0<=a?++M:--M)it.push(t.readUInt16());return it})(),u=S=0,G=i.length;S<G;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=w}return r.encode=function(t,e){var n,a,i,h,l,u,f,p,w,x,g,P,C,j,S,W,G,M,it,mt,pt,K,T,Q,L,E,z,U,nt,lt,ht,et,ct,Nt,wt,_,B,R,V,J,rt,ot,at,vt,At,kt;switch(U=new Zn,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,ct=h.length;nt<ct;nt++)W[at=t[a=h[nt]]]==null&&(W[at]=++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(E=[],w=[],G=0,W={},n={},S=f=null,lt=0,Nt=h.length;lt<Nt;lt++)W[it=t[a=h[lt]]]==null&&(W[it]=++G),n[a]={old:it,new:W[it]},l=W[it]-a,S!=null&&l===f||(S&&w.push(S),E.push(a),f=l),S=a;for(S&&w.push(S),w.push(65535),E.push(65535),Q=2*(T=E.length),K=2*Math.pow(Math.log(T)/Math.LN2,2),x=Math.log(K/2)/Math.LN2,pt=2*T-K,u=[],mt=[],g=[],P=ht=0,wt=E.length;ht<wt;P=++ht){if(L=E[P],p=w[P],L===65535){u.push(0),mt.push(0);break}if(L-(z=n[L].new)>=32768)for(u.push(0),mt.push(2*(g.length+T-P)),a=et=L;L<=p?et<=p:et>=p;a=L<=p?++et:--et)g.push(n[a].new);else u.push(z-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(Q),U.writeUInt16(K),U.writeUInt16(x),U.writeUInt16(pt),rt=0,_=w.length;rt<_;rt++)a=w[rt],U.writeUInt16(a);for(U.writeUInt16(0),ot=0,B=E.length;ot<B;ot++)a=E[ot],U.writeUInt16(a);for(vt=0,R=u.length;vt<R;vt++)l=u[vt],U.writeUInt16(l);for(At=0,V=mt.length;At<V;At++)M=mt[At],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:G+1}}},r})(),af=(function(){function r(){return r.__super__.constructor.apply(this,arguments)}return cn(r,tn),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 Zn).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 cn(r,tn),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 cn(r,tn),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 cn(r,tn),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 cn(r,tn),r.prototype.tag="name",r.prototype.parse=function(t){var e,n,a,i,h,l,u,f,p,w,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,w=n.length;p<w;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 cn(r,tn),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 cn(r,tn),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,w,x;for(x=[],f=0,p=(w=this.metrics).length;f<p;f++)i=w[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 cn(r,tn),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,w;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 Zn(e.read(a))).readShort(),f=l.readShort(),w=l.readShort(),u=l.readShort(),p=l.readShort(),this.cache[t]=h===-1?new W2(l,f,w,u,p):new H2(l,h,f,w,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 Zn(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 cn(r,tn),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,w,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 G,M;for(G in M={},W)M[W[G]]=G;return M})(g),w=Object.keys(p).sort(function(W,G){return W-G}),C=(function(){var W,G,M;for(M=[],W=0,G=w.length;W<G;W++)l=w[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(`
78
- `)}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,w="",x=1;if((n.valign==="middle"||n.valign==="bottom"||n.halign==="center"||n.halign==="right")&&(w=typeof r=="string"?r.split(p):r,x=w.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),w&&x>=1){for(var P=0;P<w.length;P++)a.text(w[P],t-a.getStringUnitWidth(w[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={},Qi=(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})(),nl=function(r,t){return nl=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])},nl(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");nl(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 To(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 zo(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=zo(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=zs(t,function(G){return a.getComputedStyle(G).backgroundColor});l!=null&&(i.fillColor=l);var u=zs(t,function(G){return a.getComputedStyle(G).color});u!=null&&(i.textColor=u);var f=X2(n,e);f&&(i.cellPadding=f);var p="borderTopColor",w=h*e,x=n.borderTopWidth;if(n.borderBottomWidth===x&&n.borderRightWidth===x&&n.borderLeftWidth===x){var g=(parseFloat(x)||0)/w;g&&(i.lineWidth=g)}else i.lineWidth={top:(parseFloat(n.borderTopWidth)||0)/w,right:(parseFloat(n.borderRightWidth)||0)/w,bottom:(parseFloat(n.borderBottomWidth)||0)/w,left:(parseFloat(n.borderLeftWidth)||0)/w},i.lineWidth.top||(i.lineWidth.right?p="borderRightColor":i.lineWidth.bottom?p="borderBottomColor":i.lineWidth.left&&(p="borderLeftColor"));var P=zs(t,function(G){return a.getComputedStyle(G)[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 zs(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=zo(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=[],w=[],x=[];if(!l)return console.error("Html table could not be found with input: ",t),{head:p,body:w,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):w.push(j))}return{head:p,body:w,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 w=e.getComputedStyle(n);if(h.length>0&&(a||w.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(`
79
- `),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 Fn(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 Qi(r),n=e.getDocumentOptions(),a=e.getGlobalOptions();t5(a,n,t);var i=Fn({},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],w=e[u];n.columnStyles=Fn({},f,p,w)}else{var x=[r,t,e],g=x.map(function(P){return P[u]||{}});n[u]=Fn({},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,w,x,g,P=zo(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,G=t.theme||(W?"plain":"striped"),M=!!t.horizontalPageBreak,it=(h=t.horizontalPageBreakRepeat)!==null&&h!==void 0?h:null;return{includeHiddenHtml:(l=t.includeHiddenHtml)!==null&&l!==void 0?l:!1,useCss:W,theme:G,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:(w=t.tableLineWidth)!==null&&w!==void 0?w:0,tableLineColor:(x=t.tableLineColor)!==null&&x!==void 0?x:200,horizontalPageBreak:M,horizontalPageBreakRepeat:it,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 il=(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})(il),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),w=f(p)===!1;if(n.text=Array.isArray(n.text)?n.text:[n.text],w)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 il(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 il(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=zo(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=al(e,a,function(i){return Math.max(i.minReadableWidth,i.minWidth)})),a&&(a=al(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 w=f.padding("horizontal");f.contentWidth=To(f.text,f.styles,r)+w;var x=To(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]||{},w=p.cellWidth||p.minCellWidth;w&&typeof w=="number"&&(u.minWidth=w,u.wrappedWidth=w)}f&&(f.colSpan>1&&!u.minWidth&&(u.minWidth=f.minWidth),f.colSpan>1&&!u.wrappedWidth&&(u.wrappedWidth=f.minWidth))}})}function al(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),w=f<p?p:f;t-=w-h.width,h.width=w}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=al(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 w=n.length-a,x=p.rowSpan>w?w: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 w=f.styles.overflow(f.text,p);typeof w=="string"?f.text=[w]:f.text=w}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>=To(r,e,n))return r;for(;t<To(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 Qi(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:Hs("head",e.head,n,h,i,t),body:Hs("body",e.body,n,h,i,t),foot:Hs("foot",e.foot,n,h,i,t)}}function Hs(r,t,e,n,a,i){var h={},l=t.map(function(u,f){for(var p=0,w={},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 G=w5(r,j,f,a,n,i,W),M=new mf(S,G,r);w[j.dataKey]=M,w[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,w)});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 w5(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=Fn({},l.table,l[r],a.styles,u),p=a.columnStyles[t.dataKey]||a.columnStyles[t.index]||{},w=r==="body"?p:{},x=r==="body"&&e%2===0?Fn({},l.alternateRow,a.alternateRowStyles):{},g=Y2(i),P=Fn({},g,f,x,w);return Fn(P,h)}function y5(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 w=t.columns[p].wrappedWidth;if(f||a>=w)f=!1,h.push(p),l.push(t.columns[p]),a-=w;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=y5(r,t,{start:n});a.columns.length&&(e.push(a),n=a.lastIndex)}return e}function wf(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 Qi(r);(e.pageBreak==="always"||e.startY!=null&&l>p.pageSize().height)&&(xf(p),i.y=a.top),t.callWillDrawPageHooks(p,i);var w=Fn({},i);t.startPageNumber=p.pageNumber(),e.horizontalPageBreak?A5(p,t,w,i):(p.applyStyles(p.userStyles),(e.showHead==="firstPage"||e.showHead==="everyPage")&&t.head.forEach(function(x){return In(p,t,x,i,t.columns)}),p.applyStyles(p.userStyles),t.body.forEach(function(x,g){var P=g===t.body.length-1;Mo(p,t,x,P,w,i,t.columns)}),p.applyStyles(p.userStyles),(e.showFoot==="lastPage"||e.showFoot==="everyPage")&&t.foot.forEach(function(x){return In(p,t,x,i,t.columns)})),hf(p,t,w,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?Oa(r,t,e,n,f.columns,!0):fh(r,t,n,f.columns),_5(r,t,e,n,f.columns),Ws(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?Oa(r,t,e,n,p,!0):fh(r,t,n,p),f=ch(r,t,h+1,n,p),Ws(r,t,n,p)}var w=f-h;a.slice(1).forEach(function(x){r.applyStyles(r.userStyles),Oa(r,t,e,n,x.columns,!0),ch(r,t,h+1,n,x.columns,w),Ws(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 In(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;Mo(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,w=yf(r,t,p,n);u.canEntireRowFit(w,a)&&(In(r,t,u,n,a),l=e+f)}),l}function Ws(r,t,e,n){var a=t.settings;r.applyStyles(r.userStyles),(a.showFoot==="lastPage"||a.showFoot==="everyPage")&&t.foot.forEach(function(i){return In(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=Fn(p,f),p.text=[];var w=N5(f,t,n);f.text.length>w&&(p.text=f.text.splice(w,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),w=t.getMaxCellHeight(n.columns)>l;return w?(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 Mo(r,t,e,n,a,i,h){var l=yf(r,t,n,i);if(e.canEntireRowFit(l,h))In(r,t,e,i,h);else if(S5(r,e,l,t)){var u=L5(e,l,t,r);In(r,t,e,i,h),Oa(r,t,a,i,h),Mo(r,t,u,n,a,i,h)}else Oa(r,t,a,i,h),Mo(r,t,e,n,a,i,h)}function In(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,w,x,g){r.getDocument().setLineWidth(f),r.getDocument().line(p,w,x,g,"S")}}function yf(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 Oa(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 In(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 In(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 wf(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 Qi.setDefaults(t,this),this},r.autoTableSetDefaults=function(t,e){Qi.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 Qi(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 Gs;function F5(r,t){var e=gf(r,t),n=bf(r,e);wf(r,n)}try{if(typeof window<"u"&&window){var dh=window,ph=dh.jsPDF||((Gs=dh.jspdf)===null||Gs===void 0?void 0:Gs.jsPDF);ph&&C5(ph)}}catch(r){console.error("Could not apply autoTable plugin",r)}exports.E=Rt;exports._typeof=be;exports.autoTable=F5;