PageSourceSearch

https://onequext.com/assets/jspdf.es.min-BUp7Pb-N.js

js onequext.com collected 2026-10-03 19:53:40 UTC 409,549 bytes, 170 lines download raw bytes

vendor: 8,918 bytes, lines 1-3
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-ZSxWLqdt.js","assets/index-DWFhj9Zq.js","assets/index-BHTHN9zG.css","assets/browser-Mn9bJN7n.js"])))=>i.map(i=>d[i]);
2var Mf=Object.defineProperty;var Df=(t,n,e)=>n in t?Mf(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var Ae=(t,n,e)=>Df(t,typeof n!="symbol"?n+"":n,e);import{aF as nl}from"./index-DWFhj9Zq.js";import{z as El}from"./browser-Mn9bJN7n.js";function Ne(t){"@babel/helpers - typeof";return Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ne(t)}function qf(t){if(Array.isArray(t))return t}function Uf(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,a,o,c,l=[],u=!0,d=!1;try{if(o=(e=e.call(t)).next,n!==0)for(;!(u=(i=o.call(e)).done)&&(l.push(i.value),l.length!==n);u=!0);}catch(m){d=!0,a=m}finally{try{if(!u&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function jh(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function zf(t,n){if(t){if(typeof t=="string")return jh(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?jh(t,n):void 0}}function Hf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Th(t,n){return qf(t)||Uf(t,n)||zf(t,n)||Hf()}function Rh(t,n="utf8"){return new TextDecoder(n).decode(t)}const Wf=new TextEncoder;function Gf(t){return Wf.encode(t)}const Vf=1024*8,Zf=(()=>{const t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),il={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 Hl{constructor(n=Vf,e={}){Ae(this,"buffer");Ae(this,"byteLength");Ae(this,"byteOffset");Ae(this,"length");Ae(this,"offset");Ae(this,"lastWrittenByte");Ae(this,"littleEndian");Ae(this,"_data");Ae(this,"_mark");Ae(this,"_marks");let i=!1;typeof n=="number"?n=new ArrayBuffer(n):(i=!0,this.lastWrittenByte=n.byteLength);const a=e.offset?e.offset>>>0:0,o=n.byteLength-a;let c=a;(ArrayBuffer.isView(n)||n instanceof Hl)&&(n.byteLength!==n.buffer.byteLength&&(c=n.byteOffset+a),n=n.buffer),i?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=n,this.length=o,this.byteLength=o,this.byteOffset=c,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,c,o),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,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 n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){const i=(this.offset+n)*2,a=new Uint8Array(i);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=i,this.byteLength=i,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(n=1){return this.readArray(n,"uint8")}readArray(n,e){const i=il[e].BYTES_PER_ELEMENT*n,a=this.byteOffset+this.offset,o=this.buffer.slice(a,a+i);if(this.littleEndian===Zf&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(a,a+i));l.reverse();const u=new il[e](l.buffer);return this.offset+=i,u.reverse(),u}const c=new il[e](o);return this.offset+=i,c}readInt16(){const n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){const n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){const n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){const n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){const n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){const n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){const n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){const n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let i=0;i<n;i++)e+=this.readChar();return e}readUtf8(n=1){return Rh(this.readBytes(n))}decodeText(n=1,e="utf8"){return Rh(this.readBytes(n),e)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let e=0;e<n.length;e++)this._data.setUint8(this.offset++,n[e]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let e=0;e<n.length;e++)this.writeUint8(n.charCodeAt(e));return this}writeUtf8(n){return this.writeBytes(Gf(n))}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)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Yf=4,Bh=0,Mh=1,$f=2;function La(t){let n=t.length;for(;--n>=0;)t[n]=0}const Kf=0,Jc=1,Xf=2,Jf=3,Qf=258,Wl=29,bo=256,so=bo+1+Wl,ya=30,Gl=19,Qc=2*so+1,jr=15,rl=16,t1=7,Vl=256,tu=16,eu=17,nu=18,Il=new Uint8Array([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]),cs=new Uint8Array([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]),e1=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),iu=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),n1=512,Ui=new Array((so+2)*2);La(Ui);const to=new Array(ya*2);La(to);const lo=new Array(n1);La(lo);const ho=new Array(Qf-Jf+1);La(ho);const Zl=new Array(Wl);La(Zl);const ds=new Array(ya);La(ds);function al(t,n,e,i,a){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=i,this.max_length=a,this.has_stree=t&&t.length}let ru,au,ou;function ol(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}const su=t=>t<256?lo[t]:lo[256+(t>>>7)],co=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},Cn=(t,n,e)=>{t.bi_valid>rl-e?(t.bi_buf|=n<<t.bi_valid&65535,co(t,t.bi_buf),t.bi_buf=n>>rl-t.bi_valid,t.bi_valid+=e-rl):(t.bi_buf|=n<<t.bi_valid&65535,t.bi_valid+=e)},yi=(t,n,e)=>{Cn(t,e[n*2],e[n*2+1])},lu=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},i1=t=>{t.bi_valid===16?(co(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>
vendor: 39,599 bytes, line 3
3=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},r1=(t,n)=>{const e=n.dyn_tree,i=n.max_code,a=n.stat_desc.static_tree,o=n.stat_desc.has_stree,c=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,u=n.stat_desc.max_length;let d,m,A,L,p,j,O=0;for(L=0;L<=jr;L++)t.bl_count[L]=0;for(e[t.heap[t.heap_max]*2+1]=0,d=t.heap_max+1;d<Qc;d++)m=t.heap[d],L=e[e[m*2+1]*2+1]+1,L>u&&(L=u,O++),e[m*2+1]=L,!(m>i)&&(t.bl_count[L]++,p=0,m>=l&&(p=c[m-l]),j=e[m*2],t.opt_len+=j*(L+p),o&&(t.static_len+=j*(a[m*2+1]+p)));if(O!==0){do{for(L=u-1;t.bl_count[L]===0;)L--;t.bl_count[L]--,t.bl_count[L+1]+=2,t.bl_count[u]--,O-=2}while(O>0);for(L=u;L!==0;L--)for(m=t.bl_count[L];m!==0;)A=t.heap[--d],!(A>i)&&(e[A*2+1]!==L&&(t.opt_len+=(L-e[A*2+1])*e[A*2],e[A*2+1]=L),m--)}},hu=(t,n,e)=>{const i=new Array(jr+1);let a=0,o,c;for(o=1;o<=jr;o++)a=a+e[o-1]<<1,i[o]=a;for(c=0;c<=n;c++){let l=t[c*2+1];l!==0&&(t[c*2]=lu(i[l]++,l))}},a1=()=>{let t,n,e,i,a;const o=new Array(jr+1);for(e=0,i=0;i<Wl-1;i++)for(Zl[i]=e,t=0;t<1<<Il[i];t++)ho[e++]=i;for(ho[e-1]=i,a=0,i=0;i<16;i++)for(ds[i]=a,t=0;t<1<<cs[i];t++)lo[a++]=i;for(a>>=7;i<ya;i++)for(ds[i]=a<<7,t=0;t<1<<cs[i]-7;t++)lo[256+a++]=i;for(n=0;n<=jr;n++)o[n]=0;for(t=0;t<=143;)Ui[t*2+1]=8,t++,o[8]++;for(;t<=255;)Ui[t*2+1]=9,t++,o[9]++;for(;t<=279;)Ui[t*2+1]=7,t++,o[7]++;for(;t<=287;)Ui[t*2+1]=8,t++,o[8]++;for(hu(Ui,so+1,o),t=0;t<ya;t++)to[t*2+1]=5,to[t*2]=lu(t,5);ru=new al(Ui,Il,bo+1,so,jr),au=new al(to,cs,0,ya,jr),ou=new al(new Array(0),e1,0,Gl,t1)},cu=t=>{let n;for(n=0;n<so;n++)t.dyn_ltree[n*2]=0;for(n=0;n<ya;n++)t.dyn_dtree[n*2]=0;for(n=0;n<Gl;n++)t.bl_tree[n*2]=0;t.dyn_ltree[Vl*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},uu=t=>{t.bi_valid>8?co(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Dh=(t,n,e,i)=>{const a=n*2,o=e*2;return t[a]<t[o]||t[a]===t[o]&&i[n]<=i[e]},sl=(t,n,e)=>{const i=t.heap[e];let a=e<<1;for(;a<=t.heap_len&&(a<t.heap_len&&Dh(n,t.heap[a+1],t.heap[a],t.depth)&&a++,!Dh(n,i,t.heap[a],t.depth));)t.heap[e]=t.heap[a],e=a,a<<=1;t.heap[e]=i},qh=(t,n,e)=>{let i,a,o=0,c,l;if(t.sym_next!==0)do i=t.pending_buf[t.sym_buf+o++]&255,i+=(t.pending_buf[t.sym_buf+o++]&255)<<8,a=t.pending_buf[t.sym_buf+o++],i===0?yi(t,a,n):(c=ho[a],yi(t,c+bo+1,n),l=Il[c],l!==0&&(a-=Zl[c],Cn(t,a,l)),i--,c=su(i),yi(t,c,e),l=cs[c],l!==0&&(i-=ds[c],Cn(t,i,l)));while(o<t.sym_next);yi(t,Vl,n)},Fl=(t,n)=>{const e=n.dyn_tree,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,o=n.stat_desc.elems;let c,l,u=-1,d;for(t.heap_len=0,t.heap_max=Qc,c=0;c<o;c++)e[c*2]!==0?(t.heap[++t.heap_len]=u=c,t.depth[c]=0):e[c*2+1]=0;for(;t.heap_len<2;)d=t.heap[++t.heap_len]=u<2?++u:0,e[d*2]=1,t.depth[d]=0,t.opt_len--,a&&(t.static_len-=i[d*2+1]);for(n.max_code=u,c=t.heap_len>>1;c>=1;c--)sl(t,e,c);d=o;do c=t.heap[1],t.heap[1]=t.heap[t.heap_len--],sl(t,e,1),l=t.heap[1],t.heap[--t.heap_max]=c,t.heap[--t.heap_max]=l,e[d*2]=e[c*2]+e[l*2],t.depth[d]=(t.depth[c]>=t.depth[l]?t.depth[c]:t.depth[l])+1,e[c*2+1]=e[l*2+1]=d,t.heap[1]=d++,sl(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],r1(t,n),hu(e,u,t.bl_count)},Uh=(t,n,e)=>{let i,a=-1,o,c=n[0*2+1],l=0,u=7,d=4;for(c===0&&(u=138,d=3),n[(e+1)*2+1]=65535,i=0;i<=e;i++)o=c,c=n[(i+1)*2+1],!(++l<u&&o===c)&&(l<d?t.bl_tree[o*2]+=l:o!==0?(o!==a&&t.bl_tree[o*2]++,t.bl_tree[tu*2]++):l<=10?t.bl_tree[eu*2]++:t.bl_tree[nu*2]++,l=0,a=o,c===0?(u=138,d=3):o===c?(u=6,d=3):(u=7,d=4))},zh=(t,n,e)=>{let i,a=-1,o,c=n[0*2+1],l=0,u=7,d=4;for(c===0&&(u=138,d=3),i=0;i<=e;i++)if(o=c,c=n[(i+1)*2+1],!(++l<u&&o===c)){if(l<d)do yi(t,o,t.bl_tree);while(--l!==0);else o!==0?(o!==a&&(yi(t,o,t.bl_tree),l--),yi(t,tu,t.bl_tree),Cn(t,l-3,2)):l<=10?(yi(t,eu,t.bl_tree),Cn(t,l-3,3)):(yi(t,nu,t.bl_tree),Cn(t,l-11,7));l=0,a=o,c===0?(u=138,d=3):o===c?(u=6,d=3):(u=7,d=4)}},o1=t=>{let n;for(Uh(t,t.dyn_ltree,t.l_desc.max_code),Uh(t,t.dyn_dtree,t.d_desc.max_code),Fl(t,t.bl_desc),n=Gl-1;n>=3&&t.bl_tree[iu[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},s1=(t,n,e,i)=>{let a;for(Cn(t,n-257,5),Cn(t,e-1,5),Cn(t,i-4,4),a=0;a<i;a++)Cn(t,t.bl_tree[iu[a]*2+1],3);zh(t,t.dyn_ltree,n-1),zh(t,t.dyn_dtree,e-1)},l1=t=>{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return Bh;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Mh;for(e=32;e<bo;e++)if(t.dyn_ltree[e*2]!==0)return Mh;return Bh};let Hh=!1;const h1=t=>{Hh||(a1(),Hh=!0),t.l_desc=new ol(t.dyn_ltree,ru),t.d_desc=new ol(t.dyn_dtree,au),t.bl_desc=new ol(t.bl_tree,ou),t.bi_buf=0,t.bi_valid=0,cu(t)},fu=(t,n,e,i)=>{Cn(t,(Kf<<1)+(i?1:0),3),uu(t),co(t,e),co(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},c1=t=>{Cn(t,Jc<<1,3),yi(t,Vl,Ui),i1(t)},u1=(t,n,e,i)=>{let a,o,c=0;t.level>0?(t.strm.data_type===$f&&(t.strm.data_type=l1(t)),Fl(t,t.l_desc),Fl(t,t.d_desc),c=o1(t),a=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=a&&(a=o)):a=o=e+5,e+4<=a&&n!==-1?fu(t,n,e,i):t.strategy===Yf||o===a?(Cn(t,(Jc<<1)+(i?1:0),3),qh(t,Ui,to)):(Cn(t,(Xf<<1)+(i?1:0),3),s1(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),qh(t,t.dyn_ltree,t.dyn_dtree)),cu(t),i&&uu(t)},f1=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(ho[e]+bo+1)*2]++,t.dyn_dtree[su(n)*2]++),t.sym_next===t.sym_end);var d1=h1,p1=fu,g1=u1,m1=f1,b1=c1,v1={_tr_init:d1,_tr_stored_block:p1,_tr_flush_block:g1,_tr_tally:m1,_tr_align:b1};const w1=(t,n,e,i)=>{let a=t&65535|0,o=t>>>16&65535|0,c=0;for(;e!==0;){c=e>2e3?2e3:e,e-=c;do a=a+n[i++]|0,o=o+a|0;while(--c);a%=65521,o%=65521}return a|o<<16|0};var uo=w1;const _1=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},y1=new Uint32Array(_1()),x1=(t,n,e,i)=>{const a=y1,o=i+e;t^=-1;for(let c=i;c<o;c++)t=t>>>8^a[(t^n[c])&255];return t^-1};var sn=x1,xa={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"},vo={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:A1,_tr_stored_block:Cl,_tr_flush_block:N1,_tr_tally:hr,_tr_align:L1}=v1,{Z_NO_FLUSH:cr,Z_PARTIAL_FLUSH:S1,Z_FULL_FLUSH:k1,Z_FINISH:Xn,Z_BLOCK:Wh,Z_OK:dn,Z_STREAM_END:Gh,Z_STREAM_ERROR:Ai,Z_DATA_ERROR:P1,Z_BUF_ERROR:ll,Z_DEFAULT_COMPRESSION:E1,Z_FILTERED:I1,Z_HUFFMAN_ONLY:es,Z_RLE:F1,Z_FIXED:C1,Z_DEFAULT_STRATEGY:O1,Z_UNKNOWN:j1,Z_DEFLATED:bs}=vo,T1=9,R1=15,B1=8,M1=29,D1=256,Ol=D1+1+M1,q1=30,U1=19,z1=2*Ol+1,H1=15,de=3,sr=258,Ni=sr+de+1,W1=32,Aa=42,Yl=57,jl=69,Tl=73,Rl=91,Bl=103,Tr=113,Ja=666,Pn=1,Sa=2,zr=3,ka=4,G1=3,Rr=(t,n)=>(t.msg=xa[n],n),Vh=t=>t*2-(t>4?9:0),ar=t=>{let n=t.length;for(;--n>=0;)t[n]=0},V1=t=>{let n,e,i,a=t.w_size;n=t.hash_size,i=n;do e=t.head[--i],t.head[i]=e>=a?e-a:0;while(--n);n=a,i=n;do e=t.prev[--i],t.prev[i]=e>=a?e-a:0;while(--n)};let Z1=(t,n,e)=>(n<<t.hash_shift^e)&t.hash_mask,ur=Z1;const zn=t=>{const n=t.state;let e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},Hn=(t,n)=>{N1(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,zn(t.strm)},ve=(t,n)=>{t.pending_buf[t.pending++]=n},Xa=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},Ml=(t,n,e,i)=>{let a=t.avail_in;return a>i&&(a=i),a===0?0:(t.avail_in-=a,n.set(t.input.subarray(t.next_in,t.next_in+a),e),t.state.wrap===1?t.adler=uo(t.adler,n,a,e):t.state.wrap===2&&(t.adler=sn(t.adler,n,a,e)),t.next_in+=a,t.total_in+=a,a)},du=(t,n)=>{let e=t.max_chain_length,i=t.strstart,a,o,c=t.prev_length,l=t.nice_match;const u=t.strstart>t.w_size-Ni?t.strstart-(t.w_size-Ni):0,d=t.window,m=t.w_mask,A=t.prev,L=t.strstart+sr;let p=d[i+c-1],j=d[i+c];t.prev_length>=t.good_match&&(e>>=2),l>t.lookahead&&(l=t.lookahead);do if(a=n,!(d[a+c]!==j||d[a+c-1]!==p||d[a]!==d[i]||d[++a]!==d[i+1])){i+=2,a++;do;while(d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&i<L);if(o=sr-(L-i),i=L-sr,o>c){if(t.match_start=n,c=o,o>=l)break;p=d[i+c-1],j=d[i+c]}}while((n=A[n&m])>u&&--e!==0);return c<=t.lookahead?c:t.lookahead},Na=t=>{const n=t.w_size;let e,i,a;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-Ni)&&(t.window.set(t.window.subarray(n,n+n-i),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),V1(t),i+=n),t.strm.avail_in===0)break;if(e=Ml(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=e,t.lookahead+t.insert>=de)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=ur(t,t.ins_h,t.window[a+1]);t.insert&&(t.ins_h=ur(t,t.ins_h,t.window[a+de-1]),t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<de)););}while(t.lookahead<Ni&&t.strm.avail_in!==0)},pu=(t,n)=>{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i,a,o,c=0,l=t.strm.avail_in;do{if(i=65535,o=t.bi_valid+42>>3,t.strm.avail_out<o||(o=t.strm.avail_out-o,a=t.strstart-t.block_start,i>a+t.strm.avail_in&&(i=a+t.strm.avail_in),i>o&&(i=o),i<e&&(i===0&&n!==Xn||n===cr||i!==a+t.strm.avail_in)))break;c=n===Xn&&i===a+t.strm.avail_in?1:0,Cl(t,0,0,c),t.pending_buf[t.pending-4]=i,t.pending_buf[t.pending-3]=i>>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,zn(t.strm),a&&(a>i&&(a=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,i-=a),i&&(Ml(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(c===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),c?ka:n!==cr&&n!==Xn&&t.strm.avail_in===0&&t.strstart===t.block_start?Sa:(o=t.window_size-t.strstart,t.strm.avail_in>o&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,o+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),o>t.strm.avail_in&&(o=t.strm.avail_in),o&&(Ml(t.strm,t.window,t.strstart,o),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.high_water<t.strstart&&(t.high_water=t.strstart),o=t.bi_valid+42>>3,o=t.pending_buf_size-o>65535?65535:t.pending_buf_size-o,e=o>t.w_size?t.w_size:o,a=t.strstart-t.block_start,(a>=e||(a||n===Xn)&&n!==cr&&t.strm.avail_in===0&&a<=o)&&(i=a>o?o:a,c=n===Xn&&t.strm.avail_in===0&&i===a?1:0,Cl(t,t.block_start,i,c),t.block_start+=i,zn(t.strm)),c?zr:Pn)},hl=(t,n)=>{let e,i;for(;;){if(t.lookahead<Ni){if(Na(t),t.lookahead<Ni&&n===cr)return Pn;if(t.lookahead===0)break}if(e=0,t.lookahead>=de&&(t.ins_h=ur(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),e!==0&&t.strstart-e<=t.w_size-Ni&&(t.match_length=du(t,e)),t.match_length>=de)if(i=hr(t,t.strstart-t.match_start,t.match_length-de),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=de){t.match_length--;do t.strstart++,t.ins_h=ur(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ur(t,t.ins_h,t.window[t.strstart+1]);else i=hr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(Hn(t,!1),t.strm.avail_out===0))return Pn}return t.insert=t.strstart<de-1?t.strstart:de-1,n===Xn?(Hn(t,!0),t.strm.avail_out===0?zr:ka):t.sym_next&&(Hn(t,!1),t.strm.avail_out===0)?Pn:Sa},ga=(t,n)=>{let e,i,a;for(;;){if(t.lookahead<Ni){if(Na(t),t.lookahead<Ni&&n===cr)return Pn;if(t.lookahead===0)break}if(e=0,t.lookahead>=de&&(t.ins_h=ur(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=de-1,e!==0&&t.prev_length<t.max_lazy_match&&t.strstart-e<=t.w_size-Ni&&(t.match_length=du(t,e),t.match_length<=5&&(t.strategy===I1||t.match_length===de&&t.strstart-t.match_start>4096)&&(t.match_length=de-1)),t.prev_length>=de&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-de,i=hr(t,t.strstart-1-t.prev_match,t.prev_length-de),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(t.ins_h=ur(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=de-1,t.strstart++,i&&(Hn(t,!1),t.strm.avail_out===0))return Pn}else if(t.match_available){if(i=hr(t,0,t.window[t.strstart-1]),i&&Hn(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Pn}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=hr(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<de-1?t.strstart:de-1,n===Xn?(Hn(t,!0),t.strm.avail_out===0?zr:ka):t.sym_next&&(Hn(t,!1),t.strm.avail_out===0)?Pn:Sa},Y1=(t,n)=>{let e,i,a,o;const c=t.window;for(;;){if(t.lookahead<=sr){if(Na(t),t.lookahead<=sr&&n===cr)return Pn;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=de&&t.strstart>0&&(a=t.strstart-1,i=c[a],i===c[++a]&&i===c[++a]&&i===c[++a])){o=t.strstart+sr;do;while(i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&i===c[++a]&&a<o);t.match_length=sr-(o-a),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=de?(e=hr(t,1,t.match_length-de),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=hr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(Hn(t,!1),t.strm.avail_out===0))return Pn}return t.insert=0,n===Xn?(Hn(t,!0),t.strm.avail_out===0?zr:ka):t.sym_next&&(Hn(t,!1),t.strm.avail_out===0)?Pn:Sa},$1=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(Na(t),t.lookahead===0)){if(n===cr)return Pn;break}if(t.match_length=0,e=hr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(Hn(t,!1),t.strm.avail_out===0))return Pn}return t.insert=0,n===Xn?(Hn(t,!0),t.strm.avail_out===0?zr:ka):t.sym_next&&(Hn(t,!1),t.strm.avail_out===0)?Pn:Sa};function wi(t,n,e,i,a){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=i,this.func=a}const Qa=[new wi(0,0,0,0,pu),new wi(4,4,8,4,hl),new wi(4,5,16,8,hl),new wi(4,6,32,32,hl),new wi(4,4,16,16,ga),new wi(8,16,32,32,ga),new wi(8,16,128,128,ga),new wi(8,32,128,256,ga),new wi(32,128,258,1024,ga),new wi(32,258,258,4096,ga)],K1=t=>{t.window_size=2*t.w_size,ar(t.head),t.max_lazy_match=Qa[t.level].max_lazy,t.good_match=Qa[t.level].good_length,t.nice_match=Qa[t.level].nice_length,t.max_chain_length=Qa[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=de-1,t.match_available=0,t.ins_h=0};function X1(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=bs,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(z1*2),this.dyn_dtree=new Uint16Array((2*q1+1)*2),this.bl_tree=new Uint16Array((2*U1+1)*2),ar(this.dyn_ltree),ar(this.dyn_dtree),ar(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(H1+1),this.heap=new Uint16Array(2*Ol+1),ar(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ol+1),ar(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const wo=t=>{if(!t)return 1;const n=t.state;return!n||n.strm!==t||n.status!==Aa&&n.status!==Yl&&n.status!==jl&&n.status!==Tl&&n.status!==Rl&&n.status!==Bl&&n.status!==Tr&&n.status!==Ja?1:0},gu=t=>{if(wo(t))return Rr(t,Ai);t.total_in=t.total_out=0,t.data_type=j1;const n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Yl:n.wrap?Aa:Tr,t.adler=n.wrap===2?0:1,n.last_flush=-2,A1(n),dn},mu=t=>{const n=gu(t);return n===dn&&K1(t.state),n},J1=(t,n)=>wo(t)||t.state.wrap!==2?Ai:(t.state.gzhead=n,dn),bu=(t,n,e,i,a,o)=>{if(!t)return Ai;let c=1;if(n===E1&&(n=6),i<0?(c=0,i=-i):i>15&&(c=2,i-=16),a<1||a>T1||e!==bs||i<8||i>15||n<0||n>9||o<0||o>C1||i===8&&c!==1)return Rr(t,Ai);i===8&&(i=9);const l=new X1;return t.state=l,l.strm=t,l.status=Aa,l.wrap=c,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+de-1)/de),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=n,l.strategy=o,l.method=e,mu(t)},Q1=(t,n)=>bu(t,n,bs,R1,B1,O1),t2=(t,n)=>{if(wo(t)||n>Wh||n<0)return t?Rr(t,Ai):Ai;const e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===Ja&&n!==Xn)return Rr(t,t.avail_out===0?ll:Ai);const i=e.last_flush;if(e.last_flush=n,e.pending!==0){if(zn(t),t.avail_out===0)return e.last_flush=-1,dn}else if(t.avail_in===0&&Vh(n)<=Vh(i)&&n!==Xn)return Rr(t,ll);if(e.status===Ja&&t.avail_in!==0)return Rr(t,ll);if(e.status===Aa&&e.wrap===0&&(e.status=Tr),e.status===Aa){let a=bs+(e.w_bits-8<<4)<<8,o=-1;if(e.strategy>=es||e.level<2?o=0:e.level<6?o=1:e.level===6?o=2:o=3,a|=o<<6,e.strstart!==0&&(a|=W1),a+=31-a%31,Xa(e,a),e.strstart!==0&&(Xa(e,t.adler>>>16),Xa(e,t.adler&65535)),t.adler=1,e.status=Tr,zn(t),e.pending!==0)return e.last_flush=-1,dn}if(e.status===Yl){if(t.adler=0,ve(e,31),ve(e,139),ve(e,8),e.gzhead)ve(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),ve(e,e.gzhead.time&255),ve(e,e.gzhead.time>>8&255),ve(e,e.gzhead.time>>16&255),ve(e,e.gzhead.time>>24&255),ve(e,e.level===9?2:e.strategy>=es||e.level<2?4:0),ve(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(ve(e,e.gzhead.extra.length&255),ve(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=sn(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=jl;else if(ve(e,0),ve(e,0),ve(e,0),ve(e,0),ve(e,0),ve(e,e.level===9?2:e.strategy>=es||e.level<2?4:0),ve(e,G1),e.status=Tr,zn(t),e.pending!==0)return e.last_flush=-1,dn}if(e.status===jl){if(e.gzhead.extra){let a=e.pending,o=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+o>e.pending_buf_size;){let l=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+l),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>a&&(t.adler=sn(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex+=l,zn(t),e.pending!==0)return e.last_flush=-1,dn;a=0,o-=l}let c=new Uint8Array(e.gzhead.extra);e.pending_buf.set(c.subarray(e.gzindex,e.gzindex+o),e.pending),e.pending+=o,e.gzhead.hcrc&&e.pending>a&&(t.adler=sn(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Tl}if(e.status===Tl){if(e.gzhead.name){let a=e.pending,o;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=sn(t.adler,e.pending_buf,e.pending-a,a)),zn(t),e.pending!==0)return e.last_flush=-1,dn;a=0}e.gzindex<e.gzhead.name.length?o=e.gzhead.name.charCodeAt(e.gzindex++)&255:o=0,ve(e,o)}while(o!==0);e.gzhead.hcrc&&e.pending>a&&(t.adler=sn(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Rl}if(e.status===Rl){if(e.gzhead.comment){let a=e.pending,o;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=sn(t.adler,e.pending_buf,e.pending-a,a)),zn(t),e.pending!==0)return e.last_flush=-1,dn;a=0}e.gzindex<e.gzhead.comment.length?o=e.gzhead.comment.charCodeAt(e.gzindex++)&255:o=0,ve(e,o)}while(o!==0);e.gzhead.hcrc&&e.pending>a&&(t.adler=sn(t.adler,e.pending_buf,e.pending-a,a))}e.status=Bl}if(e.status===Bl){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(zn(t),e.pending!==0))return e.last_flush=-1,dn;ve(e,t.adler&255),ve(e,t.adler>>8&255),t.adler=0}if(e.status=Tr,zn(t),e.pending!==0)return e.last_flush=-1,dn}if(t.avail_in!==0||e.lookahead!==0||n!==cr&&e.status!==Ja){let a=e.level===0?pu(e,n):e.strategy===es?$1(e,n):e.strategy===F1?Y1(e,n):Qa[e.level].func(e,n);if((a===zr||a===ka)&&(e.status=Ja),a===Pn||a===zr)return t.avail_out===0&&(e.last_flush=-1),dn;if(a===Sa&&(n===S1?L1(e):n!==Wh&&(Cl(e,0,0,!1),n===k1&&(ar(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),zn(t),t.avail_out===0))return e.last_flush=-1,dn}return n!==Xn?dn:e.wrap<=0?Gh:(e.wrap===2?(ve(e,t.adler&255),ve(e,t.adler>>8&255),ve(e,t.adler>>16&255),ve(e,t.adler>>24&255),ve(e,t.total_in&255),ve(e,t.total_in>>8&255),ve(e,t.total_in>>16&255),ve(e,t.total_in>>24&255)):(Xa(e,t.adler>>>16),Xa(e,t.adler&65535)),zn(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?dn:Gh)},e2=t=>{if(wo(t))return Ai;const n=t.state.status;return t.state=null,n===Tr?Rr(t,P1):dn},n2=(t,n)=>{let e=n.length;if(wo(t))return Ai;const i=t.state,a=i.wrap;if(a===2||a===1&&i.status!==Aa||i.lookahead)return Ai;if(a===1&&(t.adler=uo(t.adler,n,e,0)),i.wrap=0,e>=i.w_size){a===0&&(ar(i.head),i.strstart=0,i.block_start=0,i.insert=0);let u=new Uint8Array(i.w_size);u.set(n.subarray(e-i.w_size,e),0),n=u,e=i.w_size}const o=t.avail_in,c=t.next_in,l=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,Na(i);i.lookahead>=de;){let u=i.strstart,d=i.lookahead-(de-1);do i.ins_h=ur(i,i.ins_h,i.window[u+de-1]),i.prev[u&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=u,u++;while(--d);i.strstart=u,i.lookahead=de-1,Na(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=de-1,i.match_available=0,t.next_in=c,t.input=l,t.avail_in=o,i.wrap=a,dn};var i2=Q1,r2=bu,a2=mu,o2=gu,s2=J1,l2=t2,h2=e2,c2=n2,u2="pako deflate (from Nodeca project)",eo={deflateInit:i2,deflateInit2:r2,deflateReset:a2,deflateResetKeep:o2,deflateSetHeader:s2,deflate:l2,deflateEnd:h2,deflateSetDictionary:c2,deflateInfo:u2};const f2=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var d2=function(t){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const i in e)f2(e,i)&&(t[i]=e[i])}}return t},p2=t=>{let n=0;for(let i=0,a=t.length;i<a;i++)n+=t[i].length;const e=new Uint8Array(n);for(let i=0,a=0,o=t.length;i<o;i++){let c=t[i];e.set(c,a),a+=c.length}return e},vs={assign:d2,flattenChunks:p2};let vu=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{vu=!1}const fo=new Uint8Array(256);for(let t=0;t<256;t++)fo[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;fo[254]=fo[254]=1;var g2=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,i,a,o,c=t.length,l=0;for(a=0;a<c;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<c&&(i=t.charCodeAt(a+1),(i&64512)===56320&&(e=65536+(e-55296<<10)+(i-56320),a++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(n=new Uint8Array(l),o=0,a=0;o<l;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<c&&(i=t.charCodeAt(a+1),(i&64512)===56320&&(e=65536+(e-55296<<10)+(i-56320),a++)),e<128?n[o++]=e:e<2048?(n[o++]=192|e>>>6,n[o++]=128|e&63):e<65536?(n[o++]=224|e>>>12,n[o++]=128|e>>>6&63,n[o++]=128|e&63):(n[o++]=240|e>>>18,n[o++]=128|e>>>12&63,n[o++]=128|e>>>6&63,n[o++]=128|e&63);return n};const m2=(t,n)=>{if(n<65534&&t.subarray&&vu)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let i=0;i<n;i++)e+=String.fromCharCode(t[i]);return e};var b2=(t,n)=>{const e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let i,a;const o=new Array(e*2);for(a=0,i=0;i<e;){let c=t[i++];if(c<128){o[a++]=c;continue}let l=fo[c];if(l>4){o[a++]=65533,i+=l-1;continue}for(c&=l===2?31:l===3?15:7;l>1&&i<e;)c=c<<6|t[i++]&63,l--;if(l>1){o[a++]=65533;continue}c<65536?o[a++]=c:(c-=65536,o[a++]=55296|c>>10&1023,o[a++]=56320|c&1023)}return m2(o,a)},v2=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+fo[t[e]]>n?e:n},po={string2buf:g2,buf2string:b2,utf8border:v2};function w2(){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 wu=w2;const _u=Object.prototype.toString,{Z_NO_FLUSH:_2,Z_SYNC_FLUSH:y2,Z_FULL_FLUSH:x2,Z_FINISH:A2,Z_OK:ps,Z_STREAM_END:N2,Z_DEFAULT_COMPRESSION:L2,Z_DEFAULT_STRATEGY:S2,Z_DEFLATED:k2}=vo;function $l(t){this.options=vs.assign({level:L2,method:k2,chunkSize:16384,windowBits:15,memLevel:8,strategy:S2},t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wu,this.strm.avail_out=0;let e=eo.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(e!==ps)throw new Error(xa[e]);if(n.header&&eo.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=po.string2buf(n.dictionary):_u.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,e=eo.deflateSetDictionary(this.strm,i),e!==ps)throw new Error(xa[e]);this._dict_set=!0}}$l.prototype.push=function(t,n){const e=this.strm,i=this.options.chunkSize;let a,o;if(this.ended)return!1;for(n===~~n?o=n:o=n===!0?A2:_2,typeof t=="string"?e.input=po.string2buf(t):_u.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(i),e.next_out=0,e.avail_out=i),(o===y2||o===x2)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(a=eo.deflate(e,o),a===N2)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),a=eo.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ps;if(e.avail_out===0){this.onData(e.output);continue}if(o>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};$l.prototype.onData=function(t){this.chunks.push(t)};$l.prototype.onEnd=function(t){t===ps&&(this.result=vs.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const ns=16209,P2=16191;var E2=function(n,e){let i,a,o,c,l,u,d,m,A,L,p,j,O,R,k,Z,Y,D,lt,_t,mt,tt,z,et;const N=n.state;i=n.next_in,z=n.input,a=i+(n.avail_in-5),o=n.next_out,et=n.output,c=o-(e-n.avail_out),l=o+(n.avail_out-257),u=N.dmax,d=N.wsize,m=N.whave,A=N.wnext,L=N.window,p=N.hold,j=N.bits,O=N.lencode,R=N.distcode,k=(1<<N.lenbits)-1,Z=(1<<N.distbits)-1;t:do{j<15&&(p+=z[i++]<<j,j+=8,p+=z[i++]<<j,j+=8),Y=O[p&k];e:for(;;){if(D=Y>>>24,p>>>=D,j-=D,D=Y>>>16&255,D===0)et[o++]=Y&65535;else if(D&16){lt=Y&65535,D&=15,D&&(j<D&&(p+=z[i++]<<j,j+=8),lt+=p&(1<<D)-1,p>>>=D,j-=D),j<15&&(p+=z[i++]<<j,j+=8,p+=z[i++]<<j,j+=8),Y=R[p&Z];n:for(;;){if(D=Y>>>24,p>>>=D,j-=D,D=Y>>>16&255,D&16){if(_t=Y&65535,D&=15,j<D&&(p+=z[i++]<<j,j+=8,j<D&&(p+=z[i++]<<j,j+=8)),_t+=p&(1<<D)-1,_t>u){n.msg="invalid distance too far back",N.mode=ns;break t}if(p>>>=D,j-=D,D=o-c,_t>D){if(D=_t-D,D>m&&N.sane){n.msg="invalid distance too far back",N.mode=ns;break t}if(mt=0,tt=L,A===0){if(mt+=d-D,D<lt){lt-=D;do et[o++]=L[mt++];while(--D);mt=o-_t,tt=et}}else if(A<D){if(mt+=d+A-D,D-=A,D<lt){lt-=D;do et[o++]=L[mt++];while(--D);if(mt=0,A<lt){D=A,lt-=D;do et[o++]=L[mt++];while(--D);mt=o-_t,tt=et}}}else if(mt+=A-D,D<lt){lt-=D;do et[o++]=L[mt++];while(--D);mt=o-_t,tt=et}for(;lt>2;)et[o++]=tt[mt++],et[o++]=tt[mt++],et[o++]=tt[mt++],lt-=3;lt&&(et[o++]=tt[mt++],lt>1&&(et[o++]=tt[mt++]))}else{mt=o-_t;do et[o++]=et[mt++],et[o++]=et[mt++],et[o++]=et[mt++],lt-=3;while(lt>2);lt&&(et[o++]=et[mt++],lt>1&&(et[o++]=et[mt++]))}}else if(D&64){n.msg="invalid distance code",N.mode=ns;break t}else{Y=R[(Y&65535)+(p&(1<<D)-1)];continue n}break}}else if(D&64)if(D&32){N.mode=P2;break t}else{n.msg="invalid literal/length code",N.mode=ns;break t}else{Y=O[(Y&65535)+(p&(1<<D)-1)];continue e}break}}while(i<a&&o<l);lt=j>>3,i-=lt,j-=lt<<3,p&=(1<<j)-1,n.next_in=i,n.next_out=o,n.avail_in=i<a?5+(a-i):5-(i-a),n.avail_out=o<l?257+(l-o):257-(o-l),N.hold=p,N.bits=j};const ma=15,Zh=852,Yh=592,$h=0,cl=1,Kh=2,I2=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]),F2=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]),C2=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]),O2=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]),j2=(t,n,e,i,a,o,c,l)=>{const u=l.bits;let d=0,m=0,A=0,L=0,p=0,j=0,O=0,R=0,k=0,Z=0,Y,D,lt,_t,mt,tt=null,z;const et=new Uint16Array(ma+1),N=new Uint16Array(ma+1);let C=null,q,U,it;for(d=0;d<=ma;d++)et[d]=0;for(m=0;m<i;m++)et[n[e+m]]++;for(p=u,L=ma;L>=1&&et[L]===0;L--);if(p>L&&(p=L),L===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,l.bits=1,0;for(A=1;A<L&&et[A]===0;A++);for(p<A&&(p=A),R=1,d=1;d<=ma;d++)if(R<<=1,R-=et[d],R<0)return-1;if(R>0&&(t===$h||L!==1))return-1;for(N[1]=0,d=1;d<ma;d++)N[d+1]=N[d]+et[d];for(m=0;m<i;m++)n[e+m]!==0&&(c[N[n[e+m]]++]=m);if(t===$h?(tt=C=c,z=20):t===cl?(tt=I2,C=F2,z=257):(tt=C2,C=O2,z=0),Z=0,m=0,d=A,mt=o,j=p,O=0,lt=-1,k=1<<p,_t=k-1,t===cl&&k>Zh||t===Kh&&k>Yh)return 1;for(;;){q=d-O,c[m]+1<z?(U=0,it=c[m]):c[m]>=z?(U=C[c[m]-z],it=tt[c[m]-z]):(U=96,it=0),Y=1<<d-O,D=1<<j,A=D;do D-=Y,a[mt+(Z>>O)+D]=q<<24|U<<16|it|0;while(D!==0);for(Y=1<<d-1;Z&Y;)Y>>=1;if(Y!==0?(Z&=Y-1,Z+=Y):Z=0,m++,--et[d]===0){if(d===L)break;d=n[e+c[m]]}if(d>p&&(Z&_t)!==lt){for(O===0&&(O=p),mt+=A,j=d-O,R=1<<j;j+O<L&&(R-=et[j+O],!(R<=0));)j++,R<<=1;if(k+=1<<j,t===cl&&k>Zh||t===Kh&&k>Yh)return 1;lt=Z&_t,a[lt]=p<<24|j<<16|mt-o|0}}return Z!==0&&(a[mt+Z]=d-O<<24|64<<16|0),l.bits=p,0};var no=j2;const T2=0,yu=1,xu=2,{Z_FINISH:Xh,Z_BLOCK:R2,Z_TREES:is,Z_OK:Hr,Z_STREAM_END:B2,Z_NEED_DICT:M2,Z_STREAM_ERROR:Jn,Z_DATA_ERROR:Au,Z_MEM_ERROR:Nu,Z_BUF_ERROR:D2,Z_DEFLATED:Jh}=vo,ws=16180,Qh=16181,tc=16182,ec=16183,nc=16184,ic=16185,rc=16186,ac=16187,oc=16188,sc=16189,gs=16190,qi=16191,ul=16192,lc=16193,fl=16194,hc=16195,cc=16196,uc=16197,fc=16198,rs=16199,as=16200,dc=16201,pc=16202,gc=16203,mc=16204,bc=16205,dl=16206,vc=16207,wc=16208,Be=16209,Lu=16210,Su=16211,q2=852,U2=592,z2=15,H2=z2,_c=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function W2(){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 Gr=t=>{if(!t)return 1;const n=t.state;return!n||n.strm!==t||n.mode<ws||n.mode>Su?1:0},ku=t=>{if(Gr(t))return Jn;const n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=ws,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(q2),n.distcode=n.distdyn=new Int32Array(U2),n.sane=1,n.back=-1,Hr},Pu=t=>{if(Gr(t))return Jn;const n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,ku(t)},Eu=(t,n)=>{let e;if(Gr(t))return Jn;const i=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Jn:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=e,i.wbits=n,Pu(t))},Iu=(t,n)=>{if(!t)return Jn;const e=new W2;t.state=e,e.strm=t,e.window=null,e.mode=ws;const i=Eu(t,n);return i!==Hr&&(t.state=null),i},G2=t=>Iu(t,H2);let yc=!0,pl,gl;const V2=t=>{if(yc){pl=new Int32Array(512),gl=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(no(yu,t.lens,0,288,pl,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;no(xu,t.lens,0,32,gl,0,t.work,{bits:5}),yc=!1}t.lencode=pl,t.lenbits=9,t.distcode=gl,t.distbits=5},Fu=(t,n,e,i)=>{let a;const o=t.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),i>=o.wsize?(o.window.set(n.subarray(e-o.wsize,e),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),o.window.set(n.subarray(e-i,e-i+a),o.wnext),i-=a,i?(o.window.set(n.subarray(e-i,e),0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0},Z2=(t,n)=>{let e,i,a,o,c,l,u,d,m,A,L,p,j,O,R=0,k,Z,Y,D,lt,_t,mt,tt;const z=new Uint8Array(4);let et,N;const C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Gr(t)||!t.output||!t.input&&t.avail_in!==0)return Jn;e=t.state,e.mode===qi&&(e.mode=ul),c=t.next_out,a=t.output,u=t.avail_out,o=t.next_in,i=t.input,l=t.avail_in,d=e.hold,m=e.bits,A=l,L=u,tt=Hr;t:for(;;)switch(e.mode){case ws:if(e.wrap===0){e.mode=ul;break}for(;m<16;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(e.wrap&2&&d===35615){e.wbits===0&&(e.wbits=15),e.check=0,z[0]=d&255,z[1]=d>>>8&255,e.check=sn(e.check,z,2,0),d=0,m=0,e.mode=Qh;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((d&255)<<8)+(d>>8))%31){t.msg="incorrect header check",e.mode=Be;break}if((d&15)!==Jh){t.msg="unknown compression method",e.mode=Be;break}if(d>>>=4,m-=4,mt=(d&15)+8,e.wbits===0&&(e.wbits=mt),mt>15||mt>e.wbits){t.msg="invalid window size",e.mode=Be;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=d&512?sc:qi,d=0,m=0;break;case Qh:for(;m<16;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(e.flags=d,(e.flags&255)!==Jh){t.msg="unknown compression method",e.mode=Be;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=Be;break}e.head&&(e.head.text=d>>8&1),e.flags&512&&e.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,e.check=sn(e.check,z,2,0)),d=0,m=0,e.mode=tc;case tc:for(;m<32;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}e.head&&(e.head.time=d),e.flags&512&&e.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,z[2]=d>>>16&255,z[3]=d>>>24&255,e.check=sn(e.check,z,4,0)),d=0,m=0,e.mode=ec;case ec:for(;m<16;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}e.head&&(e.head.xflags=d&255,e.head.os=d>>8),e.flags&512&&e.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,e.check=sn(e.check,z,2,0)),d=0,m=0,e.mode=nc;case nc:if(e.flags&1024){for(;m<16;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}e.length=d,e.head&&(e.head.extra_len=d),e.flags&512&&e.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,e.check=sn(e.check,z,2,0)),d=0,m=0}else e.head&&(e.head.extra=null);e.mode=ic;case ic:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(mt=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(i.subarray(o,o+p),mt)),e.flags&512&&e.wrap&4&&(e.check=sn(e.check,i,p,o)),l-=p,o+=p,e.length-=p),e.length))break t;e.length=0,e.mode=rc;case rc:if(e.flags&2048){if(l===0)break t;p=0;do mt=i[o+p++],e.head&&mt&&e.length<65536&&(e.head.name+=String.fromCharCode(mt));while(mt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=sn(e.check,i,p,o)),l-=p,o+=p,mt)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=ac;case ac:if(e.flags&4096){if(l===0)break t;p=0;do mt=i[o+p++],e.head&&mt&&e.length<65536&&(e.head.comment+=String.fromCharCode(mt));while(mt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=sn(e.check,i,p,o)),l-=p,o+=p,mt)break t}else e.head&&(e.head.comment=null);e.mode=oc;case oc:if(e.flags&512){for(;m<16;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(e.wrap&4&&d!==(e.check&65535)){t.msg="header crc mismatch",e.mode=Be;break}d=0,m=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=qi;break;case sc:for(;m<32;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}t.adler=e.check=_c(d),d=0,m=0,e.mode=gs;case gs:if(e.havedict===0)return t.next_out=c,t.avail_out=u,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=m,M2;t.adler=e.check=1,e.mode=qi;case qi:if(n===R2||n===is)break t;case ul:if(e.last){d>>>=m&7,m-=m&7,e.mode=dl;break}for(;m<3;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}switch(e.last=d&1,d>>>=1,m-=1,d&3){case 0:e.mode=lc;break;case 1:if(V2(e),e.mode=rs,n===is){d>>>=2,m-=2;break t}break;case 2:e.mode=cc;break;case 3:t.msg="invalid block type",e.mode=Be}d>>>=2,m-=2;break;case lc:for(d>>>=m&7,m-=m&7;m<32;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if((d&65535)!==(d>>>16^65535)){t.msg="invalid stored block lengths",e.mode=Be;break}if(e.length=d&65535,d=0,m=0,e.mode=fl,n===is)break t;case fl:e.mode=hc;case hc:if(p=e.length,p){if(p>l&&(p=l),p>u&&(p=u),p===0)break t;a.set(i.subarray(o,o+p),c),l-=p,o+=p,u-=p,c+=p,e.length-=p;break}e.mode=qi;break;case cc:for(;m<14;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(e.nlen=(d&31)+257,d>>>=5,m-=5,e.ndist=(d&31)+1,d>>>=5,m-=5,e.ncode=(d&15)+4,d>>>=4,m-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=Be;break}e.have=0,e.mode=uc;case uc:for(;e.have<e.ncode;){for(;m<3;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}e.lens[C[e.have++]]=d&7,d>>>=3,m-=3}for(;e.have<19;)e.lens[C[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,et={bits:e.lenbits},tt=no(T2,e.lens,0,19,e.lencode,0,e.work,et),e.lenbits=et.bits,tt){t.msg="invalid code lengths set",e.mode=Be;break}e.have=0,e.mode=fc;case fc:for(;e.have<e.nlen+e.ndist;){for(;R=e.lencode[d&(1<<e.lenbits)-1],k=R>>>24,Z=R>>>16&255,Y=R&65535,!(k<=m);){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(Y<16)d>>>=k,m-=k,e.lens[e.have++]=Y;else{if(Y===16){for(N=k+2;m<N;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(d>>>=k,m-=k,e.have===0){t.msg="invalid bit length repeat",e.mode=Be;break}mt=e.lens[e.have-1],p=3+(d&3),d>>>=2,m-=2}else if(Y===17){for(N=k+3;m<N;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}d>>>=k,m-=k,mt=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=k+7;m<N;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}d>>>=k,m-=k,mt=0,p=11+(d&127),d>>>=7,m-=7}if(e.have+p>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=Be;break}for(;p--;)e.lens[e.have++]=mt}}if(e.mode===Be)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=Be;break}if(e.lenbits=9,et={bits:e.lenbits},tt=no(yu,e.lens,0,e.nlen,e.lencode,0,e.work,et),e.lenbits=et.bits,tt){t.msg="invalid literal/lengths set",e.mode=Be;break}if(e.distbits=6,e.distcode=e.distdyn,et={bits:e.distbits}
vendor: 1,908 bytes, line 3
3,tt=no(xu,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,et),e.distbits=et.bits,tt){t.msg="invalid distances set",e.mode=Be;break}if(e.mode=rs,n===is)break t;case rs:e.mode=as;case as:if(l>=6&&u>=258){t.next_out=c,t.avail_out=u,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=m,E2(t,L),c=t.next_out,a=t.output,u=t.avail_out,o=t.next_in,i=t.input,l=t.avail_in,d=e.hold,m=e.bits,e.mode===qi&&(e.back=-1);break}for(e.back=0;R=e.lencode[d&(1<<e.lenbits)-1],k=R>>>24,Z=R>>>16&255,Y=R&65535,!(k<=m);){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(Z&&!(Z&240)){for(D=k,lt=Z,_t=Y;R=e.lencode[_t+((d&(1<<D+lt)-1)>>D)],k=R>>>24,Z=R>>>16&255,Y=R&65535,!(D+k<=m);){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}d>>>=D,m-=D,e.back+=D}if(d>>>=k,m-=k,e.back+=k,e.length=Y,Z===0){e.mode=bc;break}if(Z&32){e.back=-1,e.mode=qi;break}if(Z&64){t.msg="invalid literal/length code",e.mode=Be;break}e.extra=Z&15,e.mode=dc;case dc:if(e.extra){for(N=e.extra;m<N;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}e.length+=d&(1<<e.extra)-1,d>>>=e.extra,m-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=pc;case pc:for(;R=e.distcode[d&(1<<e.distbits)-1],k=R>>>24,Z=R>>>16&255,Y=R&65535,!(k<=m);){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(!(Z&240)){for(D=k,lt=Z,_t=Y;R=e.distcode[_t+((d&(1<<D+lt)-1)>>D)],k=R>>>24,Z=R>>>16&255,Y=R&65535,!(D+k<=m);){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}d>>>=D,m-=D,e.back+=D}if(d>>>=k,m-=k,e.back+=k,Z&64){t.msg="invalid distance code",e.mode=Be;break}e.offset=Y,e.extra=Z&15,e.mode=gc;case gc:if(e.extra){for(N=e.extra;m<N;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}e.offset+=d&(1<<e.extra)-1,d>>>=e.extra,m-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=Be;break}e.mode=mc;case mc:if(u===0)break t;if(p=L-u,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=Be;break}p>e.wnext?(p-=e.wnext,j=e.wsize-p):j=e.wnext-p,p>e.length&&(p=e.length),O=e.window}
vendor: 13,331 bytes, line 3
3else O=a,j=c-e.offset,p=e.length;p>u&&(p=u),u-=p,e.length-=p;do a[c++]=O[j++];while(--p);e.length===0&&(e.mode=as);break;case bc:if(u===0)break t;a[c++]=e.length,u--,e.mode=as;break;case dl:if(e.wrap){for(;m<32;){if(l===0)break t;l--,d|=i[o++]<<m,m+=8}if(L-=u,t.total_out+=L,e.total+=L,e.wrap&4&&L&&(t.adler=e.check=e.flags?sn(e.check,a,L,c-L):uo(e.check,a,L,c-L)),L=u,e.wrap&4&&(e.flags?d:_c(d))!==e.check){t.msg="incorrect data check",e.mode=Be;break}d=0,m=0}e.mode=vc;case vc:if(e.wrap&&e.flags){for(;m<32;){if(l===0)break t;l--,d+=i[o++]<<m,m+=8}if(e.wrap&4&&d!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=Be;break}d=0,m=0}e.mode=wc;case wc:tt=B2;break t;case Be:tt=Au;break t;case Lu:return Nu;case Su:default:return Jn}return t.next_out=c,t.avail_out=u,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=m,(e.wsize||L!==t.avail_out&&e.mode<Be&&(e.mode<dl||n!==Xh))&&Fu(t,t.output,t.next_out,L-t.avail_out),A-=t.avail_in,L-=t.avail_out,t.total_in+=A,t.total_out+=L,e.total+=L,e.wrap&4&&L&&(t.adler=e.check=e.flags?sn(e.check,a,L,t.next_out-L):uo(e.check,a,L,t.next_out-L)),t.data_type=e.bits+(e.last?64:0)+(e.mode===qi?128:0)+(e.mode===rs||e.mode===fl?256:0),(A===0&&L===0||n===Xh)&&tt===Hr&&(tt=D2),tt},Y2=t=>{if(Gr(t))return Jn;let n=t.state;return n.window&&(n.window=null),t.state=null,Hr},$2=(t,n)=>{if(Gr(t))return Jn;const e=t.state;return e.wrap&2?(e.head=n,n.done=!1,Hr):Jn},K2=(t,n)=>{const e=n.length;let i,a,o;return Gr(t)||(i=t.state,i.wrap!==0&&i.mode!==gs)?Jn:i.mode===gs&&(a=1,a=uo(a,n,e,0),a!==i.check)?Au:(o=Fu(t,n,e,e),o?(i.mode=Lu,Nu):(i.havedict=1,Hr))};var X2=Pu,J2=Eu,Q2=ku,t0=G2,e0=Iu,n0=Z2,i0=Y2,r0=$2,a0=K2,o0="pako inflate (from Nodeca project)",zi={inflateReset:X2,inflateReset2:J2,inflateResetKeep:Q2,inflateInit:t0,inflateInit2:e0,inflate:n0,inflateEnd:i0,inflateGetHeader:r0,inflateSetDictionary:a0,inflateInfo:o0};function s0(){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 l0=s0;const Cu=Object.prototype.toString,{Z_NO_FLUSH:h0,Z_FINISH:c0,Z_OK:go,Z_STREAM_END:ml,Z_NEED_DICT:bl,Z_STREAM_ERROR:u0,Z_DATA_ERROR:xc,Z_MEM_ERROR:f0}=vo;function _o(t){this.options=vs.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wu,this.strm.avail_out=0;let e=zi.inflateInit2(this.strm,n.windowBits);if(e!==go)throw new Error(xa[e]);if(this.header=new l0,zi.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=po.string2buf(n.dictionary):Cu.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=zi.inflateSetDictionary(this.strm,n.dictionary),e!==go)))throw new Error(xa[e])}_o.prototype.push=function(t,n){const e=this.strm,i=this.options.chunkSize,a=this.options.dictionary;let o,c,l;if(this.ended)return!1;for(n===~~n?c=n:c=n===!0?c0:h0,Cu.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(i),e.next_out=0,e.avail_out=i),o=zi.inflate(e,c),o===bl&&a&&(o=zi.inflateSetDictionary(e,a),o===go?o=zi.inflate(e,c):o===xc&&(o=bl));e.avail_in>0&&o===ml&&e.state.wrap>0&&t[e.next_in]!==0;)zi.inflateReset(e),o=zi.inflate(e,c);switch(o){case u0:case xc:case bl:case f0:return this.onEnd(o),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||o===ml))if(this.options.to==="string"){let u=po.utf8border(e.output,e.next_out),d=e.next_out-u,m=po.buf2string(e.output,u);e.next_out=d,e.avail_out=i-d,d&&e.output.set(e.output.subarray(u,u+d),0),this.onData(m)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(o===go&&l===0)){if(o===ml)return o=zi.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};_o.prototype.onData=function(t){this.chunks.push(t)};_o.prototype.onEnd=function(t){t===go&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=vs.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Kl(t,n){const e=new _o(n);if(e.push(t),e.err)throw e.msg||xa[e.err];return e.result}function d0(t,n){return n=n||{},n.raw=!0,Kl(t,n)}var p0=_o,g0=Kl,m0=d0,b0=Kl,v0=vo,w0={Inflate:p0,inflate:g0,inflateRaw:m0,ungzip:b0,constants:v0};const{Inflate:_0,inflate:y0,inflateRaw:R5,ungzip:B5}=w0;var Ac=_0,x0=y0;const Ou=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;Ou[t]=n}const Nc=4294967295;function A0(t,n,e){let i=t;for(let a=0;a<e;a++)i=Ou[(i^n[a])&255]^i>>>8;return i}function N0(t,n){return(A0(Nc,t,n)^Nc)>>>0}function Lc(t,n,e){const i=t.readUint32(),a=N0(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(a!==i)throw new Error(`CRC mismatch for chunk ${e}. Expected ${i}, found ${a}`)}function ju(t,n,e){for(let i=0;i<e;i++)n[i]=t[i]}function Tu(t,n,e,i){let a=0;for(;a<i;a++)n[a]=t[a];for(;a<e;a++)n[a]=t[a]+n[a-i]&255}function Ru(t,n,e,i){let a=0;if(e.length===0)for(;a<i;a++)n[a]=t[a];else for(;a<i;a++)n[a]=t[a]+e[a]&255}function Bu(t,n,e,i,a){let o=0;if(e.length===0){for(;o<a;o++)n[o]=t[o];for(;o<i;o++)n[o]=t[o]+(n[o-a]>>1)&255}else{for(;o<a;o++)n[o]=t[o]+(e[o]>>1)&255;for(;o<i;o++)n[o]=t[o]+(n[o-a]+e[o]>>1)&255}}function Mu(t,n,e,i,a){let o=0;if(e.length===0){for(;o<a;o++)n[o]=t[o];for(;o<i;o++)n[o]=t[o]+n[o-a]&255}else{for(;o<a;o++)n[o]=t[o]+e[o]&255;for(;o<i;o++)n[o]=t[o]+L0(n[o-a],e[o],e[o-a])&255}}function L0(t,n,e){const i=t+n-e,a=Math.abs(i-t),o=Math.abs(i-n),c=Math.abs(i-e);return a<=o&&a<=c?t:o<=c?n:e}function S0(t,n,e,i,a,o){switch(t){case 0:ju(n,e,a);break;case 1:Tu(n,e,a,o);break;case 2:Ru(n,e,i,a);break;case 3:Bu(n,e,i,a,o);break;case 4:Mu(n,e,i,a,o);break;default:throw new Error(`Unsupported filter: ${t}`)}}const k0=new Uint16Array([255]),P0=new Uint8Array(k0.buffer),E0=P0[0]===255;function I0(t){const{data:n,width:e,height:i,channels:a,depth:o}=t,c=[{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(o/8)*a,u=new Uint8Array(i*e*l);let d=0;for(let m=0;m<7;m++){const A=c[m],L=Math.ceil((e-A.x)/A.xStep),p=Math.ceil((i-A.y)/A.yStep);if(L<=0||p<=0)continue;const j=L*l,O=new Uint8Array(j);for(let R=0;R<p;R++){const k=n[d++],Z=n.subarray(d,d+j);d+=j;const Y=new Uint8Array(j);S0(k,Z,Y,O,j,l),O.set(Y);for(let D=0;D<L;D++){const lt=A.x+D*A.xStep,_t=A.y+R*A.yStep;if(!(lt>=e||_t>=i))for(let mt=0;mt<l;mt++)u[(_t*e+lt)*l+mt]=Y[D*l+mt]}}}if(o===16){const m=new Uint16Array(u.buffer);if(E0)for(let A=0;A<m.length;A++)m[A]=F0(m[A]);return m}else return u}function F0(t){return(t&255)<<8|t>>8&255}const C0=new Uint16Array([255]),O0=new Uint8Array(C0.buffer),j0=O0[0]===255,T0=new Uint8Array(0);function Sc(t){const{data:n,width:e,height:i,channels:a,depth:o}=t,c=Math.ceil(o/8)*a,l=Math.ceil(o/8*a*e),u=new Uint8Array(i*l);let d=T0,m=0,A,L;for(let p=0;p<i;p++){switch(A=n.subarray(m+1,m+1+l),L=u.subarray(p*l,(p+1)*l),n[m]){case 0:ju(A,L,l);break;case 1:Tu(A,L,l,c);break;case 2:Ru(A,L,d,l);break;case 3:Bu(A,L,d,l,c);break;case 4:Mu(A,L,d,l,c);break;default:throw new Error(`Unsupported filter: ${n[m]}`)}d=L,m+=l+1}if(o===16){const p=new Uint16Array(u.buffer);if(j0)for(let j=0;j<p.length;j++)p[j]=R0(p[j]);return p}else return u}function R0(t){return(t&255)<<8|t>>8&255}const us=Uint8Array.of(137,80,78,71,13,10,26,10);function kc(t){if(!B0(t.readBytes(us.length)))throw new Error("wrong PNG signature")}function B0(t){if(t.length<us.length)return!1;for(let n=0;n<us.length;n++)if(t[n]!==us[n])return!1;return!0}const M0="tEXt",D0=0,Du=new TextDecoder("latin1");function q0(t){if(z0(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const U0=/^[\u0000-\u00FF]*$/;function z0(t){if(!U0.test(t))throw new Error("invalid latin1 text")}function H0(t,n,e){const i=qu(n);t[i]=W0(n,e-i.length-1)}function qu(t){for(t.mark();t.readByte()!==D0;);const n=t.offset;t.reset();const e=Du.decode(t.readBytes(n-t.offset-1));return t.skip(1),q0(e),e}function W0(t,n){return Du.decode(t.readBytes(n))}const Un={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},vl={UNKNOWN:-1,DEFLATE:0},Pc={UNKNOWN:-1,ADAPTIVE:0},wl={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},os={NONE:0,BACKGROUND:1,PREVIOUS:2},_l={SOURCE:0,OVER:1};class G0 extends Hl{constructor(e,i={}){super(e);Ae(this,"_checkCrc");Ae(this,"_inflator");Ae(this,"_png");Ae(this,"_apng");Ae(this,"_end");Ae(this,"_hasPalette");Ae(this,"_palette");Ae(this,"_hasTransparency");Ae(this,"_transparency");Ae(this,"_compressionMethod");Ae(this,"_filterMethod");Ae(this,"_interlaceMethod");Ae(this,"_colorType");Ae(this,"_isAnimated");Ae(this,"_numberOfFrames");Ae(this,"_numberOfPlays");Ae(this,"_frames");Ae(this,"_writingDataChunks");const{checkCrc:a=!1}=i;this._checkCrc=a,this._inflator=new Ac,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=vl.UNKNOWN,this._filterMethod=Pc.UNKNOWN,this._interlaceMethod=wl.UNKNOWN,this._colorType=Un.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(kc(this);!this._end;){const e=this.readUint32(),i=this.readChars(4);this.decodeChunk(e,i)}return this.decodeImage(),this._png}decodeApng(){for(kc(this);!this._end;){const e=this.readUint32(),i=this.readChars(4);this.decodeApngChunk(e,i)}return this.decodeApngImage(),this._apng}decodeChunk(e,i){const a=this.offset;switch(i){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case M0:H0(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-a!==e)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?Lc(this,e+4,i):this.skip(4)}decodeApngChunk(e,i){const a=this.offset;switch(i!=="fdAT"&&i!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),i){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,i),this.offset=a+e;break}if(this.offset-a!==e)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?Lc(this,e+4,i):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=V0(this.readUint8());const i=this.readUint8();this._colorType=i;let a;switch(i){case Un.GREYSCALE:a=1;break;case Un.TRUECOLOUR:a=3;break;case Un.INDEXED_COLOUR:a=1;break;case Un.GREYSCALE_ALPHA:a=2;break;case Un.TRUECOLOUR_ALPHA:a=4;break;case Un.UNKNOWN:default:throw new Error(`Unknown color type: ${i}`)}if(this._png.channels=a,this._compressionMethod=this.readUint8(),this._compressionMethod!==vl.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 e={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(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const i=e/3;this._hasPalette=!0;const a=[];this._palette=a;for(let o=0;o<i;o++)a.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const i=e,a=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,a,i)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let i=e,a=this.offset+this.byteOffset;if(a+=4,i-=4,this._inflator.push(new Uint8Array(this.buffer,a,i)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case Un.GREYSCALE:case Un.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let i=0;i<e/2;i++)this._transparency[i]=this.readUint16();break}case Un.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alph
3a values than there are palette colors (${e} vs ${this._palette.length})`);let i=0;for(;i<e;i++){const a=this.readByte();this._palette[i].push(a)}for(;i<this._palette.length;i++)this._palette[i].push(255);break}case Un.UNKNOWN:case Un.GREYSCALE_ALPHA:case Un.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const i=qu(this),a=this.readUint8();if(a!==vl.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${a}`);const o=this.readBytes(e-i.length-2);this._png.iccEmbeddedProfile={name:i,profile:x0(o)}}decodepHYs(){const e=this.readUint32(),i=this.readUint32(),a=this.readByte();this._png.resolution={x:e,y:i,unit:a}}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 e=0;e<this._numberOfFrames;e++){const i={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].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)},a=this._frames.at(e);if(a){if(a.data=Sc({data:a.data,width:a.width,height:a.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||a.xOffset===0&&a.yOffset===0&&a.width===this._png.width&&a.height===this._png.height)i.data=a.data;else{const o=this._apng.frames.at(e-1);this.disposeFrame(a,o,i),this.addFrameDataToCanvas(i,a)}this._apng.frames.push(i)}}return this._apng}disposeFrame(e,i,a){switch(e.disposeOp){case os.NONE:break;case os.BACKGROUND:for(let o=0;o<this._png.height;o++)for(let c=0;c<this._png.width;c++){const l=(o*e.width+c)*this._png.channels;for(let u=0;u<this._png.channels;u++)a.data[l+u]=0}break;case os.PREVIOUS:a.data.set(i.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,i){const a=1<<this._png.depth,o=(c,l)=>{const u=((c+i.yOffset)*this._png.width+i.xOffset+l)*this._png.channels,d=(c*i.width+l)*this._png.channels;return{index:u,frameIndex:d}};switch(i.blendOp){case _l.SOURCE:for(let c=0;c<i.height;c++)for(let l=0;l<i.width;l++){const{index:u,frameIndex:d}=o(c,l);for(let m=0;m<this._png.channels;m++)e.data[u+m]=i.data[d+m]}break;case _l.OVER:for(let c=0;c<i.height;c++)for(let l=0;l<i.width;l++){const{index:u,frameIndex:d}=o(c,l);for(let m=0;m<this._png.channels;m++){const A=i.data[d+this._png.channels-1]/a,L=m%(this._png.channels-1)===0?1:i.data[d+m],p=Math.floor(A*L+(1-A)*e.data[u+m]);e.data[u+m]+=p}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var i;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?((i=this._frames)==null?void 0:i.at(0)).data:this._inflator.result;if(this._filterMethod!==Pc.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===wl.NO_INTERLACE)this._png.data=Sc({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===wl.ADAM7)this._png.data=I0({data:e,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 e=this._inflator.result,i=this._frames.at(-1);i?i.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:os.NONE,blendOp:_l.SOURCE,data:e}),this._inflator=new Ac,this._writingDataChunks=!1}}function V0(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var Ec;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(Ec||(Ec={}));
vendor: 4,344 bytes, lines 3-8
3function Z0(t,n){return new G0(t,n).decode()}var $t=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function yl(){$t.console&&typeof $t.console.log=="function"&&$t.console.log.apply($t.console,arguments)}var Pe={log:yl,warn:function(t){$t.console&&(typeof $t.console.warn=="function"?$t.console.warn.apply($t.console,arguments):yl.call(null,arguments))},error:function(t){$t.console&&(typeof $t.console.error=="function"?$t.console.error.apply($t.console,arguments):yl(t))}};function xl(t,n,e){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){Or(i.response,n,e)},i.onerror=function(){Pe.error("could not download file")},i.send()}function Ic(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function ss(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var Or=$t.saveAs||((typeof window>"u"?"undefined":Ne(window))!=="object"||window!==$t?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var i=$t.URL||$t.webkitURL,a=document.createElement("a");n=n||t.name||"download",a.download=n,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?Ic(a.href)?xl(t,n,e):ss(a,a.target="_blank"):ss(a)):(a.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(a.href)},4e4),setTimeout(function(){ss(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(Ic(t))xl(t,n,e);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){ss(i)})}else navigator.msSaveOrOpenBlob(function(a,o){return o===void 0?o={autoBom:!1}:Ne(o)!=="object"&&(Pe.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.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}(t,e),n)}:function(t,n,e,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof t=="string")return xl(t,n,e);var a=t.type==="application/octet-stream",o=/constructor/i.test($t.HTMLElement)||$t.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&o)&&(typeof FileReader>"u"?"undefined":Ne(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var m=l.result;m=c?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location=m,i=null},l.readAsDataURL(t)}else{var u=$t.URL||$t.webkitURL,d=u.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});/**
4 * A class to parse color values
5 * @author Stoyan Stefanov <[email protected]>
6 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
7 * @license Use it if you like it
8 */function Uu(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={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:"90ee9
80",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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;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)]}}],i=0;i<e.length;i++){var a=e[i].re,o=e[i].process,c=a.exec(t);c&&(n=o(c),this.r=n[0],this.g=n[1],this.b=n[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),d=this.b.toString(16);return l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),d.length==1&&(d="0"+d),"#"+l+u+d}}var fs=$t.atob.bind($t),Fc=$t.btoa.bind($t);/**
9 * @license
10 * Joseph Myers does not specify a particular license for his work.
11 *
12 * Author: Joseph Myers
13 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
14 *
15 * Modified by: Owen Leong
16 */function Al(t,n){var e=t[0],i=t[1],a=t[2],o=t[3];e=wn(e,i,a,o,n[0],7,-680876936),o=wn(o,e,i,a,n[1],12,-389564586),a=wn(a,o,e,i,n[2],17,606105819),i=wn(i,a,o,e,n[3],22,-1044525330),e=wn(e,i,a,o,n[4],7,-176418897),o=wn(o,e,i,a,n[5],12,1200080426),a=wn(a,o,e,i,n[6],17,-1473231341),i=wn(i,a,o,e,n[7],22,-45705983),e=wn(e,i,a,o,n[8],7,1770035416),o=wn(o,e,i,a,n[9],12,-1958414417),a=wn(a,o,e,i,n[10],17,-42063),i=wn(i,a,o,e,n[11],22,-1990404162),e=wn(e,i,a,o,n[12],7,1804603682),o=wn(o,e,i,a,n[13],12,-40341101),a=wn(a,o,e,i,n[14],17,-1502002290),e=_n(e,i=wn(i,a,o,e,n[15],22,1236535329),a,o,n[1],5,-165796510),o=_n(o,e,i,a,n[6],9,-1069501632),a=_n(a,o,e,i,n[11],14,643717713),i=_n(i,a,o,e,n[0],20,-373897302),e=_n(e,i,a,o,n[5],5,-701558691),o=_n(o,e,i,a,n[10],9,38016083),a=_n(a,o,e,i,n[15],14,-660478335),i=_n(i,a,o,e,n[4],20,-405537848),e=_n(e,i,a,o,n[9],5,568446438),o=_n(o,e,i,a,n[14],9,-1019803690),a=_n(a,o,e,i,n[3],14,-187363961),i=_n(i,a,o,e,n[8],20,1163531501),e=_n(e,i,a,o,n[13],5,-1444681467),o=_n(o,e,i,a,n[2],9,-51403784),a=_n(a,o,e,i,n[7],14,1735328473),e=yn(e,i=_n(i,a,o,e,n[12],20,-1926607734),a,o,n[5],4,-378558),o=yn(o,e,i,a,n[8],11,-2022574463),a=yn(a,o,e,i,n[11],16,1839030562),i=yn(i,a,o,e,n[14],23,-35309556),e=yn(e,i,a,o,n[1],4,-1530992060),o=yn(o,e,i,a,n[4],11,1272893353),a=yn(a,o,e,i,n[7],16,-155497632),i=yn(i,a,o,e,n[10],23,-1094730640),e=yn(e,i,a,o,n[13],4,681279174),o=yn(o,e,i,a,n[0],11,-358537222),a=yn(a,o,e,i,n[3],16,-722521979),i=yn(i,a,o,e,n[6],23,76029189),e=yn(e,i,a,o,n[9],4,-640364487),o=yn(o,e,i,a,n[12],11,-421815835),a=yn(a,o,e,i,n[15],16,530742520),e=xn(e,i=yn(i,a,o,e,n[2],23,-995338651),a,o,n[0],6,-198630844),o=xn(o,e,i,a,n[7],10,1126891415),a=xn(a,o,e,i,n[14],15,-1416354905),i=xn(i,a,o,e,n[5],21,-57434055),e=xn(e,i,a,o,n[12],6,1700485571),o=xn(o,e,i,a,n[3],10,-1894986606),a=xn(a,o,e,i,n[10],15,-1051523),i=xn(i,a,o,e,n[1],21,-2054922799),e=xn(e,i,a,o,n[8],6,1873313359),o=xn(o,e,i,a,n[15],10,-30611744),a=xn(a,o,e,i,n[6],15,-1560198380),i=xn(i,a,o,e,n[13],21,1309151649),e=xn(e,i,a,o,n[4],6,-145523070),o=xn(o,e,i,a,n[11],10,-1120210379),a=xn(a,o,e,i,n[2],15,718787259),i=xn(i,a,o,e,n[9],21,-343485551),t[0]=lr(e,t[0]),t[1]=lr(i,t[1]),t[2]=lr(a,t[2]),t[3]=lr(o,t[3])}function _s(t,n,e,i,a,o){return n=lr(lr(n,t),lr(i,o)),lr(n<<a|n>>>32-a,e)}function wn(t,n,e,i,a,o,c){return _s(n&e|~n&i,t,n,a,o,c)}function _n(t,n,e,i,a,o,c){return _s(n&i|e&~i,t,n,a,o,c)}function yn(t,n,e,i,a,o,c){return _s(n^e^i,t,n,a,o,c)}function xn(t,n,e,i,a,o,c){return _s(e^(n|~i),t,n,a,o,c)}function zu(t){var n,e=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;
vendor: 9,460 bytes, lines 16-33
16n+=64)Al(i,Y0(t.substring(n-64,n)));t=t.substring(n-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)a[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(Al(i,a),n=0;n<16;n++)a[n]=0;return a[14]=8*e,Al(i,a),i}function Y0(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var Cc="0123456789abcdef".split("");function $0(t){for(var n="",e=0;e<4;e++)n+=Cc[t>>8*e+4&15]+Cc[t>>8*e&15];return n}function K0(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Dl(t){return zu(t).map(K0).join("")}var X0=function(t){for(var n=0;n<t.length;n++)t[n]=$0(t[n]);return t.join("")}(zu("hello"))!="5d41402abc4b2a76b9719d911017c592";function lr(t,n){if(X0){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}/**
17 * @license
18 * FPDF is released under a permissive license: there is no usage restriction.
19 * You may embed it freely in your application (commercial or not), with or
20 * without modifications.
21 *
22 * Reference: http://www.fpdf.org/en/script/script37.php
23 */function ql(t,n){var e,i,a,o;if(t!==e){for(var c=(a=t,o=1+(256/t.length|0),new Array(o+1).join(a)),l=[],u=0;u<256;u++)l[u]=u;var d=0;for(u=0;u<256;u++){var m=l[u];d=(d+m+c.charCodeAt(u))%256,l[u]=l[d],l[d]=m}e=t,i=l}else l=i;var A=n.length,L=0,p=0,j="";for(u=0;u<A;u++)p=(p+(m=l[L=(L+1)%256]))%256,l[L]=l[p],l[p]=m,c=l[(l[L]+l[p])%256],j+=String.fromCharCode(n.charCodeAt(u)^c);return j}/**
24 * @license
25 * Licensed under the MIT License.
26 * http://opensource.org/licenses/mit-license
27 * Author: Owen Leong (@owenl131)
28 * Date: 15 Oct 2020
29 * References:
30 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
31 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
32 * http://www.fpdf.org/en/script/script37.php
33 */var Oc={print:4,modify:8,copy:16,"annot-forms":32};function wa(t,n,e,i){this.v=1,this.r=2;var a=192;t.forEach(function(l){if(Oc.perm!==void 0)throw new Error("Invalid permission: "+l);a+=Oc[l]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var o=(n+this.padding).substr(0,32),c=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,c),this.P=-(1+(255^a)),this.encryptionKey=Dl(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=ql(this.encryptionKey,this.padding)}function _a(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,i=0;i<e;i++){var a=t.charCodeAt(i);n+=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):t[i]}return n}function jc(t){if(Ne(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,i,a){if(a=a||!1,typeof e!="string"||typeof i!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var o=Math.random().toString(35);return n[e][o]=[i,!!a],o},this.unsubscribe=function(e){for(var i in n)if(n[i][e])return delete n[i][e],Object.keys(n[i]).length===0&&delete n[i],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var o in n[e]){var c=n[e][o];try{c[0].apply(t,i)}catch(l){$t.console&&Pe.error("jsPDF PubSub Error",l.message,l)}c[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function mo(t){if(!(this instanceof mo))return new mo(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function Hu(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function or(t,n,e,i,a){if(!(this instanceof or))return new or(t,n,e,i,a);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,Hu.call(this,i,a)}function Br(t,n,e,i,a){if(!(this instanceof Br))return new Br(t,n,e,i,a);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,Hu.call(this,i,a)}function Rt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],c=[],l=1,u=16,d="S",m=null;Ne(t=t||{})==="object"&&(e=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,(m=t.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(u=t.floatPrecision),d=t.defaultPathOperation||"S"),c=t.filters||(o===!0?["FlateEncode"]:c),i=i||"mm",e=(""+(e||"P")).toLowerCase();var A=t.putOnlyUsedFonts||!1,L={},p={internal:{},__private__:{}};p.__private__.PubSub=jc;var j="1.3",O=p.__private__.getPdfVersion=function(){return j};p.__private__.setPdfVersion=function(h){j=h};var R={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]};p.__private__.getPageFormats=function(){return R};var k=p.__private__.getPageFormat=function(h){return R[h]};a=a||"a4";var Z="compat",Y="advanced",D=Z;function lt(){this.saveGraphicsState(),P(new Vt(ne,0,0,-ne,0,_r()*ne).toString()+" cm"),this.setFontSize(this.getFontSize()/ne),d="n",D=Y}function _t(){this.restoreGraphicsState(),d="S",D=Z}var mt=p.__private__.combineFontStyleAndFontWeight=function(h,b){if(h=="bold"&&b=="normal"||h=="bold"&&b==400||h=="normal"&&b=="italic"||h=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(h=b==400||b==="normal"?h==="italic"?"italic":"normal":b!=700&&b!=="bold"||h!=="normal"?(b==700?"bold":b)+""+h:"bold"),h};p.advancedAPI=function(h){var b=D===Z;return b&&lt.call(this),typeof h!="function"||(h(this),b&&_t.call(this)),this},p.compatAPI=function(h){var b=D===Y;return b&&_t.call(this),typeof h!="function"||(h(this),b&&lt.call(this)),this},p.isAdvancedAPI=function(){return D===Y};var tt,z=function(h){if(D!==Y)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},et=p.roundToPrecision=p.__private__.roundToPrecision=function(h,b){var E=n||b;if(isNaN(h)||isNaN(E))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(E).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof u=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return et(h,u)}:u==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return et(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return et(h,16)};var N=p.f2=p.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return et(h,2)},C=p.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return et(h,3)},q=p.scale=p.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return D===Z?h*ne:D===Y?h:void 0},U=function(h){return q(function(b){return D===Z?_r()-b:D===Y?b:void 0}(h))};p.__private__.setPrecision=p.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(n=parseInt(h,10))};var it,ut="00000000000000000000000000000000",pt=p.__private__.getFileId=function(){return ut},nt=p.__private__.setFileId=function(h){return ut=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():ut.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(hn=new wa(m.userPermissions,m.userPassword,m.ownerPassword,ut)),ut};p.setFileId=function(h){return nt(h),this},p.getFileId=function(){return pt()};var ft=p.__private__.convertDateToPDFDate=function(h){var b=h.getTimezoneOffset(),E=b<0?"+":"-",M=Math.floor(Math.abs(b/60)),V=Math.abs(b%60),ot=[E,B(M),"'",B(V),"'"].join("");return["D:",h.getFullYear(),B(h.getMonth()+1),B(h.getDate()),B(h.getHours()),B(h.getMinutes()),B(h.getSeconds()),ot].join("")},At=p.__private__.convertPDFDateToDate=function(h){var b=parseInt(h.substr(2,4),10),E=parseInt(h.substr(6,2),10)-1,M=parseInt(h.substr(8,2),10),V=parseInt(h.substr(10,2),10),ot=parseInt(h.substr(12,2),10),gt=parseInt(h.substr(14,2),10);return new Date(b,E,M,V,ot,gt,0)},yt=p.__private__.setCreationDate=function(h){var b;if(h===void 0&&(h=new Date),h instanceof Date)b=ft(h);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(h))throw new Error("Invalid argument passed to 
33jsPDF.setCreationDate");b=h}return it=b},y=p.__private__.getCreationDate=function(h){var b=it;return h==="jsDate"&&(b=At(it)),b};p.setCreationDate=function(h){return yt(h),this},p.getCreationDate=function(h){return y(h)};var T,B=p.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},G=p.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},$=0,Q=[],rt=[],at=0,dt=[],xt=[],St=!1,kt=rt;p.__private__.setCustomOutputDestination=function(h){St=!0,kt=h};var zt=function(h){St||(kt=h)};p.__private__.resetCustomOutputDestination=function(){St=!1,kt=rt};var P=p.__private__.out=function(h){return h=h.toString(),at+=h.length+1,kt.push(h),kt},Lt=p.__private__.write=function(h){return P(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},ae=p.__private__.getArrayBuffer=function(h){for(var b=h.length,E=new ArrayBuffer(b),M=new Uint8Array(E);b--;)M[b]=h.charCodeAt(b);return E},Ht=[["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]];p.__private__.getStandardFonts=function(){return Ht};var vt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(h){return vt=D===Y?h/ne:h,this};var Wt,It=p.__private__.getFontSize=p.getFontSize=function(){return D===Z?vt:vt*ne},Ut=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(h){return Ut=h,this},p.__private__.getR2L=p.getR2L=function(){return Ut};var Dt,we=p.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Wt=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');Wt=h}else Wt=parseInt(h,10)};p.__private__.getZoomMode=function(){return Wt};var he,Jt=p.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');Dt=h};p.__private__.getPageMode=function(){return Dt};var ue=p.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');he=h};p.__private__.getLayoutMode=function(){return he},p.__private__.setDisplayMode=p.setDisplayMode=function(h,b,E){return we(h),ue(b),Jt(E),this};var ce={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(h){if(Object.keys(ce).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ce[h]},p.__private__.getDocumentProperties=function(){return ce},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(h){for(var b in ce)ce.hasOwnProperty(b)&&h[b]&&(ce[b]=h[b]);return this},p.__private__.setDocumentProperty=function(h,b){if(Object.keys(ce).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ce[h]=b};var Tt,ne,Mt,We,me,oe={},se={},Te=[],qt={},Ee={},Zt={},Qt={},Re=null,le=0,Gt=[],_e=new jc(p),pr=t.hotfixes||[],pn={},Si={},hi=[],Vt=function h(b,E,M,V,ot,gt){if(!(this instanceof h))return new h(b,E,M,V,ot,gt);isNaN(b)&&(b=1),isNaN(E)&&(E=0),isNaN(M)&&(M=0),isNaN(V)&&(V=1),isNaN(ot)&&(ot=0),isNaN(gt)&&(gt=0),this._matrix=[b,E,M,V,ot,gt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[
vendor: 17,684 bytes, lines 33-37
331]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(h)},Vt.prototype.multiply=function(h){var b=h.sx*this.sx+h.shy*this.shx,E=h.sx*this.shy+h.shy*this.sy,M=h.shx*this.sx+h.sy*this.shx,V=h.shx*this.shy+h.sy*this.sy,ot=h.tx*this.sx+h.ty*this.shx+this.tx,gt=h.tx*this.shy+h.ty*this.sy+this.ty;return new Vt(b,E,M,V,ot,gt)},Vt.prototype.decompose=function(){var h=this.sx,b=this.shy,E=this.shx,M=this.sy,V=this.tx,ot=this.ty,gt=Math.sqrt(h*h+b*b),Ct=(h/=gt)*E+(b/=gt)*M;E-=h*Ct,M-=b*Ct;var Ft=Math.sqrt(E*E+M*M);return Ct/=Ft,h*(M/=Ft)<b*(E/=Ft)&&(h=-h,b=-b,Ct=-Ct,gt=-gt),{scale:new Vt(gt,0,0,Ft,0,0),translate:new Vt(1,0,0,1,V,ot),rotate:new Vt(h,b,-b,h,0,0),skew:new Vt(1,0,Ct,1,0,0)}},Vt.prototype.toString=function(h){return this.join(" ")},Vt.prototype.inversed=function(){var h=this.sx,b=this.shy,E=this.shx,M=this.sy,V=this.tx,ot=this.ty,gt=1/(h*M-b*E),Ct=M*gt,Ft=-b*gt,Kt=-E*gt,te=h*gt;return new Vt(Ct,Ft,Kt,te,-Ct*V-Kt*ot,-Ft*V-te*ot)},Vt.prototype.applyToPoint=function(h){var b=h.x*this.sx+h.y*this.shx+this.tx,E=h.x*this.shy+h.y*this.sy+this.ty;return new wr(b,E)},Vt.prototype.applyToRectangle=function(h){var b=this.applyToPoint(h),E=this.applyToPoint(new wr(h.x+h.w,h.y+h.h));return new Ra(b.x,b.y,E.x-b.x,E.y-b.y)},Vt.prototype.clone=function(){var h=this.sx,b=this.shy,E=this.shx,M=this.sy,V=this.tx,ot=this.ty;return new Vt(h,b,E,M,V,ot)},p.Matrix=Vt;var ki=p.matrixMult=function(h,b){return b.multiply(h)},Pi=new Vt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Pi;var Wn=function(h,b){if(!Ee[h]){var E=(b instanceof or?"Sh":"P")+(Object.keys(qt).length+1).toString(10);b.id=E,Ee[h]=E,qt[E]=b,_e.publish("addPattern",b)}};p.ShadingPattern=or,p.TilingPattern=Br,p.addShadingPattern=function(h,b){return z("addShadingPattern()"),Wn(h,b),this},p.beginTilingPattern=function(h){z("beginTilingPattern()"),Ba(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix)},p.endTilingPattern=function(h,b){z("endTilingPattern()"),b.stream=xt[T].join(`
34`),Wn(h,b),_e.publish("endTilingPattern",b),hi.pop().restore()};var Gn,qe=p.__private__.newObject=function(){var h=on();return ln(h,!0),h},on=p.__private__.newObjectDeferred=function(){return $++,Q[$]=function(){return at},$},ln=function(h,b){return b=typeof b=="boolean"&&b,Q[h]=at,b&&P(h+" 0 obj"),h},gr=p.__private__.newAdditionalObject=function(){var h={objId:on(),content:""};return dt.push(h),h},Hi=on(),Qn=on(),ci=p.__private__.decodeColorString=function(h){var b=h.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length!==5||b[4]!=="k"&&b[4]!=="K"||(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var E=parseFloat(b[0]);b=[E,E,E,"r"]}for(var M="#",V=0;V<3;V++)M+=("0"+Math.floor(255*parseFloat(b[V])).toString(16)).slice(-2);return M},ti=p.__private__.encodeColorString=function(h){var b;typeof h=="string"&&(h={ch1:h});var E=h.ch1,M=h.ch2,V=h.ch3,ot=h.ch4,gt=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof E=="string"&&E.charAt(0)!=="#"){var Ct=new Uu(E);if(Ct.ok)E=Ct.toHex();else if(!/^\d*\.?\d*$/.test(E))throw new Error('Invalid color "'+E+'" passed to jsPDF.encodeColorString.')}if(typeof E=="string"&&/^#[0-9A-Fa-f]{3}$/.test(E)&&(E="#"+E[1]+E[1]+E[2]+E[2]+E[3]+E[3]),typeof E=="string"&&/^#[0-9A-Fa-f]{6}$/.test(E)){var Ft=parseInt(E.substr(1),16);E=Ft>>16&255,M=Ft>>8&255,V=255&Ft}if(M===void 0||ot===void 0&&E===M&&M===V)b=typeof E=="string"?E+" "+gt[0]:h.precision===2?N(E/255)+" "+gt[0]:C(E/255)+" "+gt[0];else if(ot===void 0||Ne(ot)==="object"){if(ot&&!isNaN(ot.a)&&ot.a===0)return["1.","1.","1.",gt[1]].join(" ");b=typeof E=="string"?[E,M,V,gt[1]].join(" "):h.precision===2?[N(E/255),N(M/255),N(V/255),gt[1]].join(" "):[C(E/255),C(M/255),C(V/255),gt[1]].join(" ")}else b=typeof E=="string"?[E,M,V,ot,gt[2]].join(" "):h.precision===2?[N(E),N(M),N(V),N(ot),gt[2]].join(" "):[C(E),C(M),C(V),C(ot),gt[2]].join(" ");return b},ei=p.__private__.getFilters=function(){return c},Vn=p.__private__.putStream=function(h){var b=(h=h||{}).data||"",E=h.filters||ei(),M=h.alreadyAppliedFilters||[],V=h.addLength1||!1,ot=b.length,gt=h.objectId,Ct=function(Oe){return Oe};if(m!==null&&gt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Ct=hn.encryptor(gt,0));var Ft={};E===!0&&(E=["FlateEncode"]);var Kt=h.additionalKeyValues||[],te=(Ft=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(b,E):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(M)?M.join(" "):M.toString());if(Ft.data.length!==0&&(Kt.push({key:"Length",value:Ft.data.length}),V===!0&&Kt.push({key:"Length1",value:ot})),te.length!=0)if(te.split("/").length-1==1)Kt.push({key:"Filter",value:te});else{Kt.push({key:"Filter",value:"["+te+"]"});for(var pe=0;pe<Kt.length;pe+=1)if(Kt[pe].key==="DecodeParms"){for(var Je=[],Se=0;Se<Ft.reverseChain.split("/").length-1;Se+=1)Je.push("null");Je.push(Kt[pe].value),Kt[pe].value="["+Je.join(" ")+"]"}}P("<<");for(var Le=0;Le<Kt.length;Le++)P("/"+Kt[Le].key+" "+Kt[Le].value);P(">>"),Ft.data.length!==0&&(P("stream"),P(Ct(Ft.data)),P("endstream"))},mr=p.__private__.putPage=function(h){var b=h.number,E=h.data,M=h.objId,V=h.contentsObjId;ln(M,!0),P("<</Type /Page"),P("/Parent "+h.rootDictionaryObjId+" 0 R"),P("/Resources "+h.resourceDictionaryObjId+" 0 R"),P("/MediaBox ["+parseFloat(tt(h.mediaBox.bottomLeftX))+" "+parseFloat(tt(h.mediaBox.bottomLeftY))+" "+tt(h.mediaBox.topRightX)+" "+tt(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&P("/CropBox ["+tt(h.cropBox.bottomLeftX)+" "+tt(h.cropBox.bottomLeftY)+" "+tt(h.cropBox.topRightX)+" "+tt(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&P("/BleedBox ["+tt(h.bleedBox.bottomLeftX)+" "+tt(h.bleedBox.bottomLeftY)+" "+tt(h.bleedBox.topRightX)+" "+tt(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&P("/TrimBox ["+tt(h.trimBox.bottomLeftX)+" "+tt(h.trimBox.bottomLeftY)+" "+tt(h.trimBox.topRightX)+" "+tt(h.trimBox.topRightY)+"]"),h.artBox!==null&&P("/ArtBox ["+tt(h.artBox.bottomLeftX)+" "+tt(h.artBox.bottomLeftY)+" "+tt(h.artBox.topRightX)+" "+tt(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&P("/UserUnit "+h.userUnit),_e.publish("putPage",{objId:M,pageContext:Gt[b],pageNumber:b,page:E}),P("/Contents "+V+" 0 R"),P(">>"),P("endobj");var ot=E.join(`
35`);return D===Y&&(ot+=`
36Q`),ln(V,!0),Vn({data:ot,filters:ei(),objectId:V}),P("endobj"),M},ui=p.__private__.putPages=function(){var h,b,E=[];for(h=1;h<=le;h++)Gt[h].objId=on(),Gt[h].contentsObjId=on();for(h=1;h<=le;h++)E.push(mr({number:h,data:xt[h],objId:Gt[h].objId,contentsObjId:Gt[h].contentsObjId,mediaBox:Gt[h].mediaBox,cropBox:Gt[h].cropBox,bleedBox:Gt[h].bleedBox,trimBox:Gt[h].trimBox,artBox:Gt[h].artBox,userUnit:Gt[h].userUnit,rootDictionaryObjId:Hi,resourceDictionaryObjId:Qn}));ln(Hi,!0),P("<</Type /Pages");var M="/Kids [";for(b=0;b<le;b++)M+=E[b]+" 0 R ";P(M+"]"),P("/Count "+le),P(">>"),P("endobj"),_e.publish("postPutPages")},br=function(h){_e.publish("putFont",{font:h,out:P,newObject:qe,putStream:Vn}),h.isAlreadyPutted!==!0&&(h.objectNumber=qe(),P("<<"),P("/Type /Font"),P("/BaseFont /"+_a(h.postScriptName)),P("/Subtype /Type1"),typeof h.encoding=="string"&&P("/Encoding /"+h.encoding),P("/FirstChar 32"),P("/LastChar 255"),P(">>"),P("endobj"))},Zr=function(h){h.objectNumber=qe();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[tt(h.x),tt(h.y),tt(h.x+h.width),tt(h.y+h.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var E=h.pages[1].join(`
37`);Vn({data:E,additionalKeyValues:b,objectId:h.objectNumber}),P("endobj")},Yr=function(h,b){b||(b=21);var E=qe(),M=function(gt,Ct){var Ft,Kt=[],te=1/(Ct-1);for(Ft=0;Ft<1;Ft+=te)Kt.push(Ft);if(Kt.push(1),gt[0].offset!=0){var pe={offset:0,color:gt[0].color};gt.unshift(pe)}if(gt[gt.length-1].offset!=1){var Je={offset:1,color:gt[gt.length-1].color};gt.push(Je)}for(var Se="",Le=0,Oe=0;Oe<Kt.length;Oe++){for(Ft=Kt[Oe];Ft>gt[Le+1].offset;)Le++;var Me=gt[Le].offset,De=(Ft-Me)/(gt[Le+1].offset-Me),gn=gt[Le].color,ji=gt[Le+1].color;Se+=G(Math.round((1-De)*gn[0]+De*ji[0]).toString(16))+G(Math.round((1-De)*gn[1]+De*ji[1]).toString(16))+G(Math.round((1-De)*gn[2]+De*ji[2]).toString(16))}return Se.trim()}(h.colors,b),V=[];V.push({key:"FunctionType",value:"0"}),V.push({key:"Domain",value:"[0.0 1.0]"}),V.push({key:"Size",value:"["+b+"]"}),V.push({key:"BitsPerSample",value:"8"}),V.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),V.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Vn({data:M,additionalKeyValues:V,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:E}),P("endobj"),h.objectNumber=qe(),P("<< /ShadingType "+h.type),P("/ColorSpace /DeviceRGB");var ot="/Coords ["+tt(parseFloat(h.coords[0]))+" "+tt(parseFloat(h.coords[1]))+" ";h.type===2?ot+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3])):ot+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3]))+" "+tt(parseFloat(h.coords[4]))+" "+tt(parseFloat(h.coords[5])),P(ot+="]"),h.matrix&&P("/Matrix ["+h.matrix.toString()+"]"),P("/Function "+E+" 0 R"),P("/Extend [true true]"),P(">>"),P("endobj")},$r=function(h,b){var E=on(),M=qe();b.push({resourcesOid:E,objectOid:M}),h.objectNumber=M;var V=[];V.push({key:"Type",value:"/Pattern"}),V.push({key:"PatternType",value:"1"}),V.push({key:"PaintType",value:"1"}),V.push({key:"TilingType",value:"1"}),V.push({key:"BBox",value:"["+h.boundingBox.map(tt).join(" ")+"]"}),V.push({key:"XStep",value:tt(h.xStep)}),V.push({key:"YStep",value:tt(h.yStep)}),V.push({key:"Resources",value:E+" 0 R"}),h.matrix&&V.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Vn({data:h.stream,additionalKeyValues:V,objectId:h.objectNumber}),P("endobj")},ys=function(h){for(var b in h.objectNumber=qe(),P("<<"),h)switch(b){case"opacity":P("/ca "+N(h[b]));break;case"stroke-opacity":P("/CA "+N(h[b]))}P(">>"),P("endobj")},Pa=function(h){ln(h.resourcesOid,!0),P("<<"),P("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var b in P("/Font <<"),oe)oe.hasOwnProperty(b)&&(A===!1||A===!0&&L.hasOwnProperty(b))&&P("/"+b+" "+oe[b].objectNumber+" 0 R");P(">>")}(),function(){if(Object.keys(qt).length>0){for(var b in P("/Shading <<"),qt)qt.hasOwnProperty(b)&&qt[b]instanceof or&&qt[b].objectNumber>=0&&P("/"+b+" "+qt[b].objectNumber+" 0 R");_e.publish("putShadingPatternDict"),P(">>")}}(),function(b){if(Object.keys(qt).length>0){for(var E in P("/Pattern <<"),qt)qt.hasOwnProperty(E)&&qt[E]instanceof p.TilingPattern&&qt[E].objectNumber>=0&&qt[E].objectNumber<b&&P("/"+E+" "+qt[E].objectNumber+" 0 R");_e.publish("putTilingPatternDict"),P(">>")}}(h.objectOid),function(){if(Object.keys(Zt).length>0){var b;for(b in P("/ExtGState <<"),Zt)Zt.hasOwnProperty(b)&&Zt[b].objectNumber>=0&&P("/"+b+" "+Zt[b].objectNumber+" 0 R");_e.publish("putGStateDict"),P(">>")}}(),function(){for(var b in P("/XObject <<"),pn)pn.hasOwnProperty(b)&&pn[b].objectNumber>=0&&P("/"+b+" "+pn[b].objectNumber+" 0 R");_e.publish("putXobjectDict"),P(">>")}(),P(">>"),P("endobj")},yo=function(h){se[h.fontName]=se[h.fontName]||{},se[h.fontName][h.fontStyle]=h.id},xo=function(h,b,E,M,V){var ot={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:h,fontName:b,fontStyle:E,encoding:M,isStandardFont:V||!1,metadata:{}};return _e.publish("addFont",{font:ot,instance:this}),oe[ot.id]=ot,yo(ot),ot.id},Zn=p.__private__.pdfEscape=p.pdfEscape=function(h,b){return function(E,M){var V,ot,gt,Ct,Ft,Kt,te,pe,Je;if(gt=(M=M||{}).sourceEncoding||"Unicode",Ft=M.outputEncoding,(M.autoencode||Ft)&&oe[Tt].metadata&&oe[Tt].metadata[gt]&&oe[Tt].metadata[gt].encoding&&(Ct=oe[Tt].metadata[gt].encoding,!Ft&&oe[Tt].encoding&&(Ft=oe[Tt].encoding),!Ft&&Ct.codePages&&(Ft=Ct.codePages[0]),typeof Ft=="string"&&(Ft=Ct[Ft]),Ft)){for(te=!1,Kt=[],V=0,ot=E.length;V<ot;V++)(pe=Ft[E.charCodeAt(V)])?Kt.push(String.fromCharCode(pe)):Kt.push(E[V]),Kt[V].charCodeAt(0)>>8&&(te=!0);E=Kt.join("")}for(V=E.length;te===void 0&&V!==0;)E.charCodeAt(V-1)>>8&&(te=!0),V--;if(!te)return E;for(Kt=M.noBOM?[]:[254,255],V=0,ot=E.length;V<ot;V++){if((Je=(pe=E.charCodeAt(V))>>8)>>8)throw new Error("Character at position "+V+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Kt.push(Je),Kt.push(pe-(Je<<8))}return String.fromCharCode.apply(void 0,Kt)}(h,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ea=p.__private__.beginPage=function(h){xt[++le]=[],Gt[le]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},No(le),zt(xt[T])},Ao=function(h,b){var E,M,V;switch(e=b||e,typeof h=="string"&&(E=k(h.toLowerCase()),Array.isArray(E)&&(M=E[0],V=E[1])),Array.isArray(h)&&(M=h[0]*ne,V=h[1]*ne),isNaN(M)&&(M=a[0],V=a[1]),(M>14400||V>14400)&&(Pe.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),M=Math.min(14400,M),V=Math.min(14400,V)),a=[M,V],e.substr(0,1)){case"l":V>M&&(a=[V,M]);break;case"p":M>V&&(a=[V,M])}Ea(a),Fs(Yt),P(ea),ja!==0&&P(ja+" J"),Vi!==0&&P(Vi+" j"),_e.publish("addPage",{pageNumber:le})},Ia=function(h){h>0&&h<=le&&(xt.splice(h,1),Gt.splice(h,1),le--,T>le&&(T=le),this.setPage(T))},No=function(h){h>0&&h<=le&&(T=h)},Lo=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return xt.length-1},So=function(h,b,E){var M,V=void 0;return E=E||{},h=h!==void 0?h:oe[Tt].fontName,b=b!==void 0?b:oe[Tt].fontStyle,M=h.toLowerCase(),se[M]!==void 0&&se[M][b]!==void 0?V=se[M][b]:se[h]!==void 0&&se[h][b]!==void 0?V=se[h][b]:E.disableWarning===!1&&Pe.warn("Unable to look up font label for font '"+h+"', '"+b+"'. Refer to getFontList() for available fonts."),V||E.noFallback||(V=se.times[b])==null&&(V=se.times.normal),V},fi=p.__private__.putInfo=function(){var h=qe(),b=function(M){return M};for(var E in m!==null&&(b=hn.encryptor(h,0)),P("<<"),P("/Producer ("+Zn(b("jsPDF "+Rt.version))+")"),ce)ce.hasOwnProperty(E)&&ce[E]&&P("/"+E.substr(0,1).toUpperCase()+E.substr(1)+" ("+Zn(b(ce[E]))+")");P("/CreationDate ("+Zn(b(it))+")"),P(">>"),P("endobj")},Kr=p.__private__.putCatalog=function(h){var b=(h=h||{}).rootDictionaryObjId||Hi;switch(qe(),P("<<"),P("/Type /Catalog"),P("/Pages "+b+" 0 R"),Wt||(Wt="fullwidth"),Wt){case"fullwidth":P("/OpenAction [3 0 R /FitH null]");break;case"fullheight":P("/OpenAction [3 0 R /FitV null]");break;case"fullpage":P("/OpenAction [3 0 R /Fit]");break;case"original":P("/OpenAction [3 0 R /XYZ null null 1]");break;default:var E=""+Wt;E.substr(E.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&P("/OpenAction [3 0 R /XYZ null null "+N(Wt)+"]")}switch(he||(he="continuous"),he){case"continuous":P("/PageLayout /OneColumn");break;case"single":P("/PageLayout /SinglePage");break;case"two":case"twoleft":P("/PageLayout /TwoColumnLeft");break;case"tworight":P("/PageLayout /TwoColumnRight")}Dt&&P("/PageMode /"+Dt),_e.publish("putCatalog"),P(">>"),P("endobj")},xs=p.__private__.putTrailer=function(){P("trailer"),P("<<"),P("/Size "+($+1)),P("/Root "+$+" 0 R"),P("/Info "+($-1)+" 0 R"),m!==null&&P("/Encrypt "+hn.oid+" 0 R"),P("/ID [ <"+ut+"> <"+ut+"> ]"),P(">>")},Xe=p.__private__.putHeader=function(){P("%PDF-"+j),P("%ºß¬à")},ko=p.__private__.putXRef=function(){var h="0000000000";P("xref"),P("0 "+($+1)),P("0000000000 65535 f ");for(var b=1;b<=$;b++)typeof Q[b]=="function"?P((h+Q[b]()).slice(-10)+" 00000 n "):Q[b]!==void 0?P((h+Q[b]).slice(-10)+" 00000 n "):P("0000000000 00000 n ")},di=p.__private__.buildDocument=function(){var h;$=0,at=0,rt=[],Q=[],dt=[],Hi=on(),Qn=on(),zt(rt),_e.publish("buildDocument"),Xe(),ui(),function(){_e.publish("putAdditionalObjects");for(var E=0;E<dt.length;E++){var M=dt[E];ln(M.objId,!0),P(M.content),P("endobj")}_e.publish("postPutAdditionalObjects")}(),h=[],function(){for(var E in oe)oe.hasOwnProperty(E)&&(A===!1||A===!0&&L.hasOwnProperty(E))&&br(oe[E])}(),function(){var E;for(E in Zt)Zt.hasOwnProperty(E)&&ys(Zt[E])}(),function(){for(var E in pn)pn.hasOwnProperty(E)&&Zr(pn[E])}(),function(E){var M;
37for(M in qt)qt.hasOwnProperty(M)&&(qt[M]instanceof or?Yr(qt[M]):qt[M]instanceof Br&&$r(qt[M],E))}(h),_e.publish("putResources"),h.forEach(Pa),Pa({resourcesOid:Qn,objectOid:Number.MAX_SAFE_INTEGER}),_e.publish("postPutResources"),m!==null&&(hn.oid=qe(),P("<<"),P("/Filter /Standard"),P("/V "+hn.v),P("/R "+hn.r),P("/U <"+hn.toHexString(hn.U)+">"),P("/O <"+hn.toHexString(hn.O)+">"),P("/P "+hn.P),P(">>"),P("endobj")),fi(),Kr();var b=at;return ko(),xs(),P("startxref"),P(""+b),P("%%EOF"),zt(xt[T]),rt.join(`
38`)},Xr=p.__private__.getBlob=function(h){return new Blob([ae(h)],{type:"application/pdf"})},Fa=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},jn=function(h){var b,E=h.document,M=E.documentElement,V=E.head,ot=E.body;return V||(V=E.createElement("head"),M.appendChild(V)),ot||(ot=E.createElement("body"),M.appendChild(ot)),Fa(V),Fa(ot),(b=E.createElement("style")).appendChild(E.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),V.appendChild(b),{document:E,body:ot}},Jr=p.output=p.__private__.output=(Gn=function(h,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",h){case void 0:return di();case"save":p.save(b.filename);break;case"arraybuffer":return ae(di());case"blob":return Xr(di());case"bloburi":case"bloburl":if($t.URL!==void 0&&typeof $t.URL.createObjectURL=="function")return $t.URL&&$t.URL.createObjectURL(Xr(di()))||void 0;Pe.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var E="",M=di();try{E=Fc(M)}catch{E=Fc(unescape(encodeURIComponent(M)))}return"data:application/pdf;filename="+encodeURIComponent(b.filename)+";base64,"+E;case"pdfobjectnewwindow":if(Object.prototype.toString.call($t)==="[object Window]"){var V="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ot=!b.pdfObjectUrl;ot||(V=b.pdfObjectUrl);var gt=$t.open();if(gt!==null){var Ct=jn(gt),Ft=Ct.document.createElement("script"),Kt=this;Ft.src=V,ot&&(Ft.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ft.crossOrigin="anonymous"),Ft.onload=function(){gt.PDFObject.embed(Kt.output("dataurlstring"),b)},Ct.body.appendChild(Ft)}return gt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call($t)==="[object Window]"){var te=b.pdfJsUrl||"examples/PDF.js/web/viewer.html",pe=$t.open();if(pe!==null){var Je=jn(pe),Se=Je.document.createElement("iframe"),Le=te.indexOf("?")===-1?"?":"&";Kt=this,Se.id="pdfViewer",Se.width="500px",Se.height="400px",Se.src=te+Le+"file=&downloadName="+encodeURIComponent(b.filename),Se.onload=function(){pe.document.title=b.filename,Se.contentWindow.PDFViewerApplication.open(Kt.output("bloburl"))},Je.body.appendChild(Se)}return pe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call($t)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Oe=$t.open();if(Oe!==null){var Me=jn(Oe),De=Me.document.createElement("iframe");De.src=this.output("datauristring",b),Me.body.appendChild(De),Oe.document.title=b.filename}if(Oe||typeof safari>"u")return Oe;break;case"datauri":case"dataurl":return $t.document.location.href=this.output("datauristring",b);default:return null}},Gn.foo=function(){try{return Gn.apply(this,arguments)}catch(E){var h=E.stack||"";~h.indexOf(" at ")&&(h=h.split(" at ")[1]);var b="Error in function "+h.split(`
39`)[0].split("<")[0]+": "+E.message;if(!$t.console)throw new Error(b);$t.console.error(b,E),$t.alert&&alert(b)}},Gn.foo.bar=Gn,Gn.foo),Ei=function(h){return Array.isArray(pr)===!0&&pr.indexOf(h)>-1};switch(i){case"pt":ne=1;break;case"mm":ne=72/25.4;break;case"cm":ne=72/2.54;break;case"in":ne=72;break;case"px":ne=Ei("px_scaling")==1?.75:96/72;break;case"pc":case"em":ne=12;break;case"ex":ne=6;break;default:if(typeof i!="number")throw new Error("Invalid unit: "+i);ne=i}var hn=null;yt(),nt();var Po=p.__private__.getPageInfo=p.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to 
39jsPDF.getPageInfo");return{objId:Gt[h].objId,pageNumber:h,pageContext:Gt[h]}},As=p.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in Gt)if(Gt[b].objId===h)break;return Po(b)},Ns=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Gt[T].objId,pageNumber:T,pageContext:Gt[T]}};p.addPage=function(){return Ao.apply(this,arguments),this},p.setPage=function(){return No.apply(this,arguments),zt.call(this,xt[T]),this},p.insertPage=function(h){return this.addPage(),this.movePage(T,h),this},p.movePage=function(h,b){var E,M;if(h>b){E=xt[h],M=Gt[h];for(var V=h;V>b;V--)xt[V]=xt[V-1],Gt[V]=Gt[V-1];xt[b]=E,Gt[b]=M,this.setPage(b)}else if(h<b){E=xt[h],M=Gt[h];for(var ot=h;ot<b;ot++)xt[ot]=xt[ot+1],Gt[ot]=Gt[ot+1];xt[b]=E,Gt[b]=M,this.setPage(b)}return this},p.deletePage=function(){return Ia.apply(this,arguments),this},p.__private__.text=p.text=function(h,b,E,M,V){var ot,gt,Ct,Ft,Kt,te,pe,Je,Se,Le=(M=M||{}).scope||this;if(typeof h=="number"&&typeof b=="number"&&(typeof E=="string"||Array.isArray(E))){var Oe=E;E=b,b=h,h=Oe}if(arguments[3]instanceof Vt==0?(Ct=arguments[4],Ft=arguments[5],Ne(pe=arguments[3])==="object"&&pe!==null||(typeof Ct=="string"&&(Ft=Ct,Ct=null),typeof pe=="string"&&(Ft=pe,pe=null),typeof pe=="number"&&(Ct=pe,pe=null),M={flags:pe,angle:Ct,align:Ft})):(z("The transform parameter of text() with a Matrix value"),Se=V),isNaN(b)||isNaN(E)||h==null)throw new Error("Invalid arguments passed to jsPDF.text");if(h.length===0)return Le;var Me,De="",gn=typeof M.lineHeightFactor=="number"?M.lineHeightFactor:vr,ji=Le.internal.scaleFactor;function Ma(Ie){return Ie=Ie.split("	").join(Array(M.TabLen||9).join(" ")),Zn(Ie,pe)}function yr(Ie){for(var Fe,Ge=Ie.concat(),tn=[],Ri=Ge.length;Ri--;)typeof(Fe=Ge.shift())=="string"?tn.push(Fe):Array.isArray(Ie)&&(Fe.length===1||Fe[1]===void 0&&Fe[2]===void 0)?tn.push(Fe[0]):tn.push([Fe[0],Fe[1],Fe[2]]);return tn}function xr(Ie,Fe){var Ge;if(typeof Ie=="string")Ge=Fe(Ie)[0];else if(Array.isArray(Ie)){for(var tn,Ri,Wa=Ie.concat(),da=[],Mo=Wa.length;Mo--;)typeof(tn=Wa.shift())=="string"?da.push(Fe(tn)[0]):Array.isArray(tn)&&typeof tn[0]=="string"&&(Ri=Fe(tn[0],tn[1],tn[2]),da.push([Ri[0],Ri[1],Ri[2]]));Ge=da}return Ge}var Zi=!1,Ar=!0;if(typeof h=="string")Zi=!0;else if(Array.isArray(h)){var aa=h.concat();gt=[];for(var oa,mn=aa.length;mn--;)(typeof(oa=aa.shift())!="string"||Array.isArray(oa)&&typeof oa[0]!="string")&&(Ar=!1);Zi=Ar}if(Zi===!1)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');typeof h=="string"&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var Nr=vt/Le.internal.scaleFactor,Lr=Nr*(gn-1);switch(M.baseline){case"bottom":E-=Lr;break;case"top":E+=Nr-Lr;break;case"hanging":E+=Nr-2*Lr;break;case"middle":E+=Nr/2-Lr}if((te=M.maxWidth||0)>0&&(typeof h=="string"?h=Le.splitTextToSize(h,te):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Ie,Fe){return Ie.concat(Le.splitTextToSize(Fe,te))},[]))),ot={text:h,x:b,y:E,options:M,mutex:{pdfEscape:Zn,activeFontKey:Tt,fonts:oe,activeFontSize:vt}},_e.publish("preProcessText",ot),h=ot.text,Ct=(M=ot.options).angle,Se instanceof Vt==0&&Ct&&typeof Ct=="number"){Ct*=Math.PI/180,M.rotationDirection===0&&(Ct=-Ct),D===Y&&(Ct=-Ct);var Da=Math.cos(Ct),mi=Math.sin(Ct);Se=new Vt(Da,mi,-mi,Da,0,0)}else Ct&&Ct instanceof Vt&&(Se=Ct);D!==Y||Se||(Se=Pi),(Kt=M.charSpace||na)!==void 0&&(De+=tt(q(Kt))+` Tc
40`,this.setCharSpace(this.getCharSpace()||0)),(Je=M.horizontalScale)!==void 0&&(De+=tt(100*Je)+` Tz
41`),M.lang;var An=-1,Ro=M.renderingMode!==void 0?M.renderingMode:M.stroke,sa=Le.internal.getCurrentPageInfo().pageContext;switch(Ro){case 0:case!1:case"fill":An=0;break;case 1:case!0:case"stroke":An=1;break;case 2:case"fillThenStroke":An=2;break;case 3:case"invisible":An=3;break;case 4:case"fillAndAddForClipping":An=4;break;case 5:case"strokeAndAddPathForClipping":An=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":An=6;break;case 7:case"addToPathForClipping":An=7}var Bo=sa.usedRenderingMode!==void 0?sa.usedRenderingMode:-1;An!==-1?De+=An+` Tr
42`:Bo!==-1&&(De+=`0 Tr
43`),An!==-1&&(sa.usedRenderingMode=An),Ft=M.align||"left";var Yn,Sr=vt*gn,qa=Le.internal.pageSize.getWidth(),la=oe[Tt];Kt=M.charSpace||na,te=M.maxWidth||0,pe=Object.assign({autoencode:!0,noBOM:!0},M.flags);var kr=[],Ua=function(Ie){return Le.getStringUnitWidth(Ie,{font:la,charSpace:Kt,fontSize:vt,doKerning:!1})*vt/ji};if(Object.prototype.toString.call(h)==="[object Array]"){var Nn;gt=yr(h),Ft!=="left"&&(Yn=gt.map(Ua));var En,ha=0;if(Ft==="right"){b-=Yn[0],h=[],mn=gt.length;for(var Yi=0;Yi<mn;Yi++)Yi===0?(En=Ii(b),Nn=Fi(E)):(En=q(ha-Yn[Yi]),Nn=-Sr),h.push([gt[Yi],En,Nn]),ha=Yn[Yi]}else if(Ft==="center"){b-=Yn[0]/2,h=[],mn=gt.length;for(var $i=0;$i<mn;$i++)$i===0?(En=Ii(b),Nn=Fi(E)):(En=q((ha-Yn[$i])/2),Nn=-Sr),h.push([gt[$i],En,Nn]),ha=Yn[$i]}else if(Ft==="left"){h=[],mn=gt.length;for(var ca=0;ca<mn;ca++)h.push(gt[ca])}else if(Ft==="justify"&&la.encoding==="Identity-H"){h=[],mn=gt.length,te=te!==0?te:qa;for(var Pr=0,Qe=0;Qe<mn;Qe++)if(Nn=Qe===0?Fi(E):-Sr,En=Qe===0?Ii(b):Pr,Qe<mn-1){var Ds=q((te-Yn[Qe])/(gt[Qe].split(" ").length-1)),bi=gt[Qe].split(" ");h.push([bi[0]+" ",En,Nn]),Pr=0;for(var ni=1;ni<bi.length;ni++){var Er=(Ua(bi[ni-1]+" "+bi[ni])-Ua(bi[ni]))*ji+Ds;ni==bi.length-1?h.push([bi[ni],Er,0]):h.push([bi[ni]+" ",Er,0]),Pr-=Er}}else h.push([gt[Qe],En,Nn]);h.push(["",Pr,0])}else{if(Ft!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],mn=gt.length,te=te!==0?te:qa,Qe=0;Qe<mn;Qe++){Nn=Qe===0?Fi(E):-Sr,En=Qe===0?Ii(b):0;var za=gt[Qe].split(" ").length-1,Ha=za>0?(te-Yn[Qe])/za:0;Qe<mn-1?kr.push(tt(q(Ha))):kr.push(0),h.push([gt[Qe],En,Nn])}}}(typeof M.R2L=="boolean"?M.R2L:Ut)===!0&&(h=xr(h,function(Ie,Fe,Ge){return[Ie.split("").reverse().join(""),Fe,Ge]})),ot={text:h,x:b,y:E,options:M,mutex:{pdfEscape:Zn,activeFontKey:Tt,fonts:oe,activeFontSize:vt}},_e.publish("postProcessText",ot),h=ot.text,Me=ot.mutex.isHex||!1;var ua=oe[Tt].encoding;ua!=="WinAnsiEncoding"&&ua!=="StandardEncoding"||(h=xr(h,function(Ie,Fe,Ge){return[Ma(Ie),Fe,Ge]})),gt=yr(h),h=[];for(var Ir,Fr,Ki,Ti=Array.isArray(gt[0])?1:0,Xi="",fa=function(Ie,Fe,Ge){var tn="";return Ge instanceof Vt?(Ge=typeof M.angle=="number"?ki(Ge,new Vt(1,0,0,1,Ie,Fe)):ki(new Vt(1,0,0,1,Ie,Fe),Ge),D===Y&&(Ge=ki(new Vt(1,0,0,-1,0,0),Ge)),tn=Ge.join(" ")+` Tm
44`):tn=tt(Ie)+" "+tt(Fe)+` Td
45`,tn},bn=0;bn<gt.length;bn++){switch(Xi="",Ti){case 1:Ki=(Me?"<":"(")+gt[bn][0]+(Me?">":")"),Ir=parseFloat(gt[bn][1]),Fr=parseFloat(gt[bn][2]);break;case 0:Ki=(Me?"<":"(")+gt[bn]+(Me?">":")"),Ir=Ii(b),Fr=Fi(E)}kr!==void 0&&kr[bn]!==void 0&&(Xi=kr[bn]+` Tw
46`),bn===0?h.push(Xi+fa(Ir,Fr,Se)+Ki):Ti===0?h.push(Xi+Ki):Ti===1&&h.push(Xi+fa(Ir,Fr,Se)+Ki)}h=Ti===0?h.join(` Tj
47T* `):h.join(` Tj
48`),h+=` Tj
49`;var vi=`BT
50/`;return vi+=Tt+" "+vt+` Tf
51`,vi+=tt(vt*gn)+` TL
52`,vi+=gi+`
53`,vi+=De,vi+=h,P(vi+="ET"),L[Tt]=!0,Le};var Ls=p.__private__.clip=p.clip=function(h){return P(h==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Ls("evenodd")},p.__private__.discardPath=p.discardPath=function(){return P("n"),this};var pi=p.__private__.isValidStyle=function(h){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(b=!0),b};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(h){return pi(h)&&(d=h),this};var Eo=p.__private__.getStyle=p.getStyle=function(h){var b=d;switch(h){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=h}return b},Qr=p.close=function(){return P("h"),this};p.stroke=function(){return P("S"),this},p.fill=function(h){return ta("f",h),this},p.fillEvenOdd=function(h){return ta("f*",h),this},p.fillStroke=function(h){return ta("B",h),this},p.fillStrokeEvenOdd=function(h){return ta("B*",h),this};var ta=function(h,b){Ne(b)==="object"?ks(b,h):P(h)},Ca=function(h){h===null||D===Y&&h===void 0||(h=Eo(h),P(h))};function Ss(h,b,E,M,V){var ot=new Br(b||this.boundingBox,E||this.xStep,M||this.yStep,this.gState,V||this.matrix
vendor: 16,226 bytes, lines 53-55
53);ot.stream=this.stream;var gt=h+"$$"+this.cloneIndex+++"$$";return Wn(gt,ot),ot}var ks=function(h,b){var E=Ee[h.key],M=qt[E];if(M instanceof or)P("q"),P(Ps(b)),M.gState&&p.setGState(M.gState),P(h.matrix.toString()+" cm"),P("/"+E+" sh"),P("Q");else if(M instanceof Br){var V=new Vt(1,0,0,-1,0,_r());h.matrix&&(V=V.multiply(h.matrix||Pi),E=Ss.call(M,h.key,h.boundingBox,h.xStep,h.yStep,V).id),P("q"),P("/Pattern cs"),P("/"+E+" scn"),M.gState&&p.setGState(M.gState),P(b),P("Q")}},Ps=function(h){switch(h){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"}},Wi=p.moveTo=function(h,b){return P(tt(q(h))+" "+tt(U(b))+" m"),this},Io=p.lineTo=function(h,b){return P(tt(q(h))+" "+tt(U(b))+" l"),this},Gi=p.curveTo=function(h,b,E,M,V,ot){return P([tt(q(h)),tt(U(b)),tt(q(E)),tt(U(M)),tt(q(V)),tt(U(ot)),"c"].join(" ")),this};p.__private__.line=p.line=function(h,b,E,M,V){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(M)||!pi(V))throw new Error("Invalid arguments passed to jsPDF.line");return D===Z?this.lines([[E-h,M-b]],h,b,[1,1],V||"S"):this.lines([[E-h,M-b]],h,b,[1,1]).stroke()},p.__private__.lines=p.lines=function(h,b,E,M,V,ot){var gt,Ct,Ft,Kt,te,pe,Je,Se,Le,Oe,Me,De;if(typeof h=="number"&&(De=E,E=b,b=h,h=De),M=M||[1,1],ot=ot||!1,isNaN(b)||isNaN(E)||!Array.isArray(h)||!Array.isArray(M)||!pi(V)||typeof ot!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Wi(b,E),gt=M[0],Ct=M[1],Kt=h.length,Oe=b,Me=E,Ft=0;Ft<Kt;Ft++)(te=h[Ft]).length===2?(Oe=te[0]*gt+Oe,Me=te[1]*Ct+Me,Io(Oe,Me)):(pe=te[0]*gt+Oe,Je=te[1]*Ct+Me,Se=te[2]*gt+Oe,Le=te[3]*Ct+Me,Oe=te[4]*gt+Oe,Me=te[5]*Ct+Me,Gi(pe,Je,Se,Le,Oe,Me));return ot&&Qr(),Ca(V),this},p.path=function(h){for(var b=0;b<h.length;b++){var E=h[b],M=E.c;switch(E.op){case"m":Wi(M[0],M[1]);break;case"l":Io(M[0],M[1]);break;case"c":Gi.apply(this,M);break;case"h":Qr()}}return this},p.__private__.rect=p.rect=function(h,b,E,M,V){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(M)||!pi(V))throw new Error("Invalid arguments passed to jsPDF.rect");return D===Z&&(M=-M),P([tt(q(h)),tt(U(b)),tt(q(E)),tt(q(M)),"re"].join(" ")),Ca(V),this},p.__private__.triangle=p.triangle=function(h,b,E,M,V,ot,gt){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(M)||isNaN(V)||isNaN(ot)||!pi(gt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[E-h,M-b],[V-E,ot-M],[h-V,b-ot]],h,b,[1,1],gt,!0),this},p.__private__.roundedRect=p.roundedRect=function(h,b,E,M,V,ot,gt){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(M)||isNaN(V)||isNaN(ot)||!pi(gt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ct=4/3*(Math.SQRT2-1);return V=Math.min(V,.5*E),ot=Math.min(ot,.5*M),this.lines([[E-2*V,0],[V*Ct,0,V,ot-ot*Ct,V,ot],[0,M-2*ot],[0,ot*Ct,-V*Ct,ot,-V,ot],[2*V-E,0],[-V*Ct,0,-V,-ot*Ct,-V,-ot],[0,2*ot-M],[0,-ot*Ct,V*Ct,-ot,V,-ot]],h+V,b,[1,1],gt,!0),this},p.__private__.ellipse=p.ellipse=function(h,b,E,M,V){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(M)||!pi(V))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ot=4/3*(Math.SQRT2-1)*E,gt=4/3*(Math.SQRT2-1)*M;return Wi(h+E,b),Gi(h+E,b-gt,h+ot,b-M,h,b-M),Gi(h-ot,b-M,h-E,b-gt,h-E,b),Gi(h-E,b+gt,h-ot,b+M,h,b+M),Gi(h+ot,b+M,h+E,b+gt,h+E,b),Ca(V),this},p.__private__.circle=p.circle=function(h,b,E,M){if(isNaN(h)||isNaN(b)||isNaN(E)||!pi(M))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,b,E,E,M)},p.setFont=function(h,b,E){return E&&(b=mt(b,E)),Tt=So(h,b,{disableWarning:!1}),this};var Es=p.__private__.getFont=p.getFont=function(){return oe[So.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var h,b,E={};for(h in se)if(se.hasOwnProperty(h))for(b in E[h]=[],se[h])se[h].hasOwnProperty(b)&&E[h].push(b);return E},p.addFont=function(h,b,E,M,V){var ot=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ot.indexOf(arguments[3])!==-1?V=arguments[3]:arguments[3]&&ot.indexOf(arguments[3])==-1&&(E=mt(E,M)),xo.call(this,h,b,E,V=V||"Identity-H")};var vr,Yt=t.lineWidth||.200025,Is=p.__private__.getLineWidth=p.getLineWidth=function(){return Yt},Fs=p.__private__.setLineWidth=p.setLineWidth=function(h){return Yt=h,P(tt(q(h))+" w"),this};p.__private__.setLineDash=Rt.API.setLineDash=Rt.API.setLineDashPattern=function(h,b){if(h=h||[],b=b||0,isNaN(b)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(E){return tt(q(E))}).join(" "),b=tt(q(b)),P("["+h+"] "+b+" d"),this};var Cs=p.__private__.getLineHeight=p.getLineHeight=function(){return vt*vr};p.__private__.getLineHeight=p.getLineHeight=function(){return vt*vr};var Os=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&(vr=h),this},js=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return vr};Os(t.lineHeight);var Ii=p.__private__.getHorizontalCoordinate=function(h){return q(h)},Fi=p.__private__.getVerticalCoordinate=function(h){return D===Y?h:Gt[T].mediaBox.topRightY-Gt[T].mediaBox.bottomLeftY-q(h)},Ts=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(h){return tt(Ii(h))},Rs=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(h){return tt(Fi(h))},ea=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return ci(ea)},p.__private__.setStrokeColor=p.setDrawColor=function(h,b,E,M){return ea=ti({ch1:h,ch2:b,ch3:E,ch4:M,pdfColorType:"draw",precision:2}),P(ea),this};var Oa=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return ci(Oa)},p.__private__.setFillColor=p.setFillColor=function(h,b,E,M){return Oa=ti({ch1:h,ch2:b,ch3:E,ch4:M,pdfColorType:"fill",precision:2}),P(Oa),this};var gi=t.textColor||"0 g",Bs=p.__private__.getTextColor=p.getTextColor=function(){return ci(gi)};p.__private__.setTextColor=p.setTextColor=function(h,b,E,M){return gi=ti({ch1:h,ch2:b,ch3:E,ch4:M,pdfColorType:"text",precision:3}),this};var na=t.charSpace,Ms=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(na||0)};p.__private__.setCharSpace=p.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return na=h,this};var ja=0;p.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},p.__private__.setLineCap=p.setLineCap=function(h){var b=p.CapJoinStyles[h];if(b===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ja=b,P(b+" J"),this};var Vi=0;p.__private__.setLineJoin=p.setLineJoin=function(h){var b=p.CapJoinStyles[h];if(b===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Vi=b,P(b+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return P(tt(q(h))+" M"),this},p.GState=mo,p.setGState=function(h){(h=typeof h=="string"?Zt[Qt[h]]:Ta(null,h)).equals(Re)||(P("/"+h.id+" gs"),Re=h)};var Ta=function(h,b){if(!h||!Qt[h]){var E=!1;for(var M in Zt)if(Zt.hasOwnProperty(M)&&Zt[M].equals(b)){E=!0;break}if(E)b=Zt[M];else{var V="GS"+(Object.keys(Zt).length+1).toString(10);Zt[V]=b,b.id=V}return h&&(Qt[h]=b.id),_e.publish("addGState",b),b}};p.addGState=function(h,b){return Ta(h,b),this},p.saveGraphicsState=function(){return P("q"),Te.push({key:Tt,size:vt,color:gi}),this},p.restoreGraphicsState=function(){P("Q");var h=Te.pop();return Tt=h.key,vt=h.size,gi=h.color,Re=null,this},p.setCurrentTransformationMatrix=function(h){return P(h.toString()+" cm"),this},p.comment=function(h){return P("#"+h),this};var wr=function(h,b){var E=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return E},set:function(ot){isNaN(ot)||(E=parseFloat(ot))}});var M=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return M},set:function(ot){isNaN(ot)||(M=parseFloat(ot))}});var V="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return V},set:function(ot){V=ot.toString()}}),this},Ra=function(h,b,E,M){wr.call(this,h,b),this.type="rect";var V=E||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return V},set:function(gt){isNaN(gt)||(V=parseFloat(gt))}});var ot=M||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ot},set:function(gt){isNaN(gt)||(ot=parseFloat(gt))}}),this},ia=function(){this.page=le,this.currentPage=T,this.pages=xt.slice(0),this.pagesContext=Gt.slice(0),this.x=Mt,this.y=We,this.matrix=me,this.width=Fo(T),this.height=Oi(T),this.outputDestination=kt,this.id="",this.objectNumber=-1};ia.prototype.restore=function(){le=this.page,T=this.currentPage,Gt=this.pagesContext,xt=this.pages,Mt=this.x,We=this.y,me=this.matrix,Ci(T,this.width),Co(T,this.height),kt=this.outputDestination};var Ba=function(h,b,E,M,V){hi.push(new ia),le=T=0,xt=[],Mt=h,We=b,me=V,Ea([E,M])};for(var ra in p.beginFormObject=function(h,b,E,M,V){return Ba(h,b,E,M,V),this},p.endFormObject=function(h){return function(b){if(Si[b])hi.pop().restore();else{var E=new ia,M="Xo"+(Object.keys(pn).length+1).toString(10);E.id=M,Si[b]=M,pn[M]=E,_e.publish("addFormObject",E),hi.pop().restore()}}(h),this},p.doFormObject=function(h,b){var E=pn[Si[h]];return P("q"),P(b.toString()+" cm"),P("/"+E.id+" Do"),P("Q"),this},p.getFormObject=function(h){var b=pn[Si[h]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},p.save=function(h,b){return h=h||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(Or(Xr(di()),h),typeof Or.unload=="function"&&$t.setTimeout&&setTimeout(Or.unload,911),this):new Promise(function(E,M){try{var V=Or(Xr(di()),h);typeof Or.unload=="function"&&$t.setTimeout&&setTimeout(Or.unload,911),E(V)}catch(ot){M(ot.message)}})},Rt.API)Rt.API.hasOwnProperty(ra)&&(ra==="events"&&Rt.API.events.length?function(h,b){var E,M,V;for(V=b.length-1;V!==-1;V--)E=b[V][0],M=b[V][1],h.subscribe.apply(h,[E].concat(typeof M=="function"?[M]:M))}(_e,Rt.API.events):p[ra]=Rt.API[ra]);function Fo(h){return Gt[h].mediaBox.topRightX-Gt[h].mediaBox.bottomLeftX}function Ci(h,b){Gt[h].mediaBox.topRightX=b+Gt[h].mediaBox.bottomLeftX}function Oi(h){return Gt[h].mediaBox.topRightY-Gt[h].mediaBox.bottomLeftY}function Co(h,b){Gt[h].mediaBox.topRightY=b+Gt[h].mediaBox.bottomLeftY}var Oo=p.getPageWidth=function(h){return Fo(h=h||T)/ne},jo=p.setPageWidth=function(h,b){Ci(h,b*ne)},_r=p.getPageHeight=function(h){return Oi(h=h||T)/ne},To=p.setPageHeight=function(h,b){Co(h,b*ne)};return p.internal={pdfEscape:Zn,getStyle:Eo,getFont:Es,getFontSize:It,getCharSpace:Ms,getTextColor:Bs,getLineHeight:Cs,getLineHeightFactor:js,getLineWidth:Is,write:Lt,getHorizontalCoordinate:Ii,getVerticalCoordinate:Fi,getCoordinateString:Ts,getVerticalCoordinateString:Rs,collections:{},newObject:qe,newAdditionalObject:gr,newObjectDeferred:on,newObjectDeferredBegin:ln,getFilters:ei,putStream:Vn,events:_e,scaleFactor:ne,pageSize:{getWidth:function(){return Oo(T)},setWidth:function(h){jo(T,h)},getHeight:function(){return _r(T)},setHeight:function(h){To(T,h)}},encryptionOptions:m,encryption:hn,getEncryptor:function(h){return m!==null?hn.encryptor(h,0):function(b){return b}},output:Jr,getNumberOfPages:Lo,get pages(){return xt},out:P,f2:N,f3:C,getPageInfo:Po,getPageInfoByObjId:As,getCurrentPageInfo:Ns,getPDFVersion:O,Point:wr,Rectangle:Ra,Matrix:Vt,hasHotfix:Ei},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Oo(T)},set:function(h){jo(T,h)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return _r(T)},set:function(h){To(T,h)},enumerable:!0,configurable:!0}),(function(h){for(var b=0,E=Ht.length;b<E;b++){var M=xo.call(this,h[b][0],h[b][1],h[b][2],Ht[b][3],!0);A===!1&&(L[M]=!0);var V=h[b][0].split("-");yo({id:M,fontName:V[0],fontStyle:V[1]||""})}_e.publish("addFonts",{fonts:oe,dictionary:se})}).call(p,Ht),Tt="F1",Ao(a,e),_e.publish("initialized"),p}wa.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},wa.prototype.toHexString=function(t){return t.split("").map(function(n){return("0"+(255&n.charCodeAt(0)).toString(16)).slice(-2)}).join("")},wa.prototype.hexToBytes=function(t){for(var n=[],e=0;e<t.length;e+=2)n.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return n.join("")},wa.prototype.processOwnerPassword=function(t,n){return ql(Dl(n).substr(0,5),t)},wa.prototype.encryptor=function(t,n){var e=Dl(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&n,n>>8&255)).substr(0,10);return function(i){return ql(e,i)}},mo.prototype.equals=function(t){var n,e="id,objectNumber,equals";if(!t||Ne(t)!==Ne(this))return!1;var i=0;for(n in this)if(!(e.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n)||this[n]!==t[n])return!1;i++}for(n in t)t.hasOwnProperty(n)&&e.indexOf(n)<0&&i--;return i===0},Rt.API={events:[]},Rt.version="4.2.1";var He=Rt.API,Xl=1,Vr=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ba=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Wr=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(n){var e=n.charCodeAt(0).toString(16).toUpperCase();return"#"+(e.length===1?"0"+e:e)})},Xt=function(t){return t.toFixed(2)},rr=function(t){return t.toFixed(5)};He.__acroform__={};var On=function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t},Tc=function(t){return t*Xl},_i=function(t){var n=new Gu,e=Et.internal.getHeight(t)||0,i=Et.internal.getWidth(t)||0;return n.BBox=[0,0,Number(Xt(i)),Number(Xt(e))],n},J0=He.__acroform__.setBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<n},Q0=He.__acroform__.clearBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<n)},t5=He.__acroform__.getBit=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<n?1:0},Ye=He.__acroform__.getBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return t5(t,n-1)},$e=He.__acroform__.setBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return J0(t,n-1)},Ke=He.__acroform__.clearBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Q0(t,n-1)},e5=He.__acroform__.calculateCoordinates=function(t,n){var e=n.internal.getHorizontalCoordinate,i=n.internal.getVerticalCoordinate,a=t[0],o=t[1],c=t[2],l=t[3],u={};return u.lowerLeft_X=e(a)||0,u.lowerLeft_Y=i(o+l)||0,u.upperRight_X=e(a+c)||0,u.upperRight_Y=i(o)||0,[Number(Xt(u.lowerLeft_X)),Number(Xt(u.lowerLeft_Y)),Number(Xt(u.upperRight_X)),Number(Xt(u.upperRight_Y))]},n5=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var n=[],e=t._V||t.DV,i=Ul(t,e),a=t.scope.internal.getFont(t.fontName,t.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(t.scope.__private__.encodeColorString(t.color)),n.push("/"+a+" "+Xt(i.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC");var o=_i(t);return o.scope=t.scope,o.stream=n.join(`
54`),o}},Ul=function(t,n){var e=t.fontSize===0?t.maxFontSize:t.fontSize,i={text:"",fontSize:""},a=(n=(n=n.substr(0,1)=="("?n.substr(1):n).substr(n.length-1)==")"?n.substr(0,n.length-1):n).split(" ");a=t.multiline?a.map(function(N){return N.split(`
55`)}):a.map(function(N){return[N]});var o=e,c=Et.internal.getHeight(t)||0;c=c<0?-c:c;var l=Et.internal.getWidth(t)||0;l=l<0?-l:l;var u=function(N,C,q){if(N+1<a.length){var U=C+" "+a[N+1][0];return ls(U,t,q).width<=l-4}return!1};o++;t:for(;o>0;){n="",o--;var d,m,A=ls("3",t,o).height,L=t.multiline?c-o:(c-A)/2,p=L+=2,j=0,O=0,R=0;if(o<=0){n=`(...) Tj
56`,n+="% Width of Text: "+ls(n,t,o=12).width+", FieldWidth:"+l+`
57`;break}for(var k="",Z=0,Y=0;Y<a.length;Y++)if(a.hasOwnProperty(Y)){var D=!1;if(a[Y].length!==1&&R!==a[Y].length-1){if((A+2)*(Z+2)+2>c)continue t;k+=a[Y][R],D=!0,O=Y,Y--}else{k=(k+=a[Y][R]+" ").substr(k.length-1)==" "?k.substr(0,k.length-1):k;var lt=parseInt(Y),_t=u(lt,k,o),mt=Y>=a.length-1;if(_t&&!mt){k+=" ",R=0;continue}if(_t||mt){if(mt)O=lt;else if(t.multiline&&(A+2)*(Z+2)+2>c)continue t}else{if(!t.multiline||(A+2)*(Z+2)+2>c)continue t;O=lt}}for(var tt="",z=j;z<=O;z++){var et=a[z];if(t.multiline){if(z===O){tt+=et[R]+" ",R=(R+1)%et.length;continue}if(z===j){tt+=et[et.length-1]+" ";continue}}tt+=et[0]+" "}switch(tt=tt.substr(tt.length-1)==" "?tt.substr(0,tt.length-1):tt,m=ls(tt,t,o).width,t.textAlign){case"right":d=l-m-2;break;case"center":d=(l-m)/2;break;default:d=2}n+=Xt(d)+" "+Xt(p)+` Td
58`,n+="("+Vr(tt)+`) Tj
59`,n+=-Xt(d)+` 0 Td
60`,p=-(o+2),m=0,j=D?O:O+1,Z++,k=""}break}return i.text=n,i.fontSize=o,i},ls=function(t,n,e){var i=n.scope.internal.getFont(n.fontName,n.fontStyle),a=n.scope.getStringUnitWidth(t,{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:n.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},i5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},r5=function(t,n){var e={type:"reference",object:t};n.internal.getPageInfo(t.page).pageContext.annotations.find(function(i){return i.type===e.type&&i.object===e.object})===void 0&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},a5=function(t,n){if(n.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(si.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(i5)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Xl=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Vu,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.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})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var i=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in i)if(i.hasOwnProperty(a)){var o=i[a];o.objId=void 0,o.hasAnnotation&&r5(o,e)}})(t)}),t.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")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(i,a){var o=!i;for(var c in i||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),i=i||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(i.hasOwnProperty(c)){var l=i[c],u=[],d=l.Rect;if(l.Rect&&(l.Rect=e5(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Et.createDefaultAppearanceStream(l),Ne(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(u=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var m=n5(l);u.push({key:"AP",value:"<</N "+m+">>"}),a.internal.acroformPlugin.xForms.push(m)}if(l.appearanceStreamContent){var A="";for(var L in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(L)){var p=l.appearanceStreamContent[L];if(A+="/"+L+" ",A+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var c in p)if(p.hasOwnProperty(c)){var j=p[c];typeof j=="function"&&(j=j.call(a,l)),A+="/"+c+" "+j+" ",a.internal.acroformPlugin.xForms.indexOf(j)>=0||a.internal.acroformPlugin.xForms.push(j)}}else typeof(j=p)=="function"&&(j=j.call(a,l)),A+="/"+c+" "+j,a.internal.acroformPlugin.xForms.indexOf(j)>=0||a.internal.acroformPlugin.xForms.push(j);A+=">>"}u.push({key:"AP",value:`<<
61`+A+">>"})}a.internal.putStream({additionalKeyValues:u,objectId:l.objId}),a.internal.out("endobj")}o&&function(O,R){for(var k in O)if(O.hasOwnProperty(k)){var Z=k,Y=O[k];R.internal.newObjectDeferredBegin(Y.objId,!0),Ne(Y)==="object"&&typeof Y.putStream=="function"&&Y.putStream(),delete O[Z]}}(a.internal.acroformPlugin.xForms,a)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},Wu=He.__acroform__.arrayToPdfArray=function(t,n,e){var i=function(c){return c};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(o!==0&&(a+=" "),Ne(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":t[o].substr(0,1)==="/"?a+="/"+Wr(t[o].substr(1)):(n!==void 0&&e&&(i=e.internal.getEncryptor(n)),a+="("+Vr(i(t[o].toString()))+")")}return a+"]"}
vendor: 17,106 bytes, lines 61-65
61throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Nl=function(t,n,e){var i=function(a){return a};return n!==void 0&&e&&(i=e.internal.getEncryptor(n)),(t=t||"").toString(),"("+Vr(i(t))+")"},xi=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(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};xi.prototype.toString=function(){return this.objId+" 0 R"},xi.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},xi.prototype.getKeyValueListForStream=function(){var t=[],n=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var e in n)if(Object.getOwnPropertyDescriptor(this,n[e]).configurable===!1){var i=n[e],a=this[i];a&&(Array.isArray(a)?t.push({key:i,value:Wu(a,this.objId,this.scope)}):a instanceof xi?(a.scope=this.scope,t.push({key:i,value:a.objId+" 0 R"})):typeof a!="function"&&t.push({key:i,value:a}))}return t};var Gu=function(){xi.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 t,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};On(Gu,xi);var Vu=function(){xi.call(this);var t,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(i){return i};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Vr(e(t))+")"}},set:function(e){t=e}})};On(Vu,xi);var si=function t(){xi.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute F supplied.');n=k}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ye(n,3)},set:function(k){k?this.F=$e(n,3):this.F=Ke(n,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute Ff supplied.');e=k}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(i.length!==0)return i},set:function(k){i=k!==void 0?k:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(k){i[0]=k}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(k){i[1]=k}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(k){i[2]=k}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(k){i[3]=k}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(k){switch(k){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=k;break;default:throw new Error('Invalid value "'+k+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof ms)return;o="FieldObject"+t.FieldNum++}var k=function(Z){return Z};return this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),"("+Vr(k(o))+")"},set:function(k){o=k.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(k){o=k}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(k){c=k}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(k){l=k}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(k){u=k}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/Xl:d},set:function(k){d=k}});var m="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(k){m=k}});var A="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!A||this instanceof ms||this instanceof fr))return Nl(A,this.objId,this.scope)},set:function(k){k=k.toString(),A=k}});var L=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(L)return this instanceof an==0?Nl(L,this.objId,this.scope):L},set:function(k){k=k.toString(),L=this instanceof an==0?k.substr(0,1)==="("?ba(k.substr(1,k.length-2)):ba(k):k}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof an==1?ba(L.substr(1,L.length-1)):L},set:function(k){k=k.toString(),L=this instanceof an==1?"/"+Wr(k):k}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(k){this.V=k}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof an==0?Nl(p,this.objId,this.scope):p},set:function(k){k=k.toString(),p=this instanceof an==0?k.substr(0,1)==="("?ba(k.substr(1,k.length-2)):ba(k):k}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof an==1?ba(p.substr(1,p.length-1)):p},set:function(k){k=k.toString(),p=this instanceof an==1?"/"+Wr(k):k}}),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 j,O=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return O},set:function(k){k=!!k,O=k}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(j)return j},set:function(k){j=k}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,1)},set:function(k){k?this.Ff=$e(this.Ff,1):this.Ff=Ke(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,2)},set:function(k){k?this.Ff=$e(this.Ff,2):this.Ff=Ke(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,3)},set:function(k){k?this.Ff=$e(this.Ff,3):this.Ff=Ke(this.Ff,3)}});var R=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(R!==null)return R},set:function(k){if([0,1,2].indexOf(k)===-1)throw new Error('Invalid value "'+k+'" for attribute Q supplied.');R=k}}),Object.defineProperty(this,"textAlign",{get:function(){var k;switch(R){case 0:default:k="left";break;case 1:k="center";break;case 2:k="right"}return k},configurable:!0,enumerable:!0,set:function(k){switch(k){case"right":case 2:R=2;break;case"center":case 1:R=1;break;default:R=0}}})};On(si,xi);var Mr=function(){si.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Wu(n,this.objId,this.scope)},set:function(e){var i,a;a=[],typeof(i=e)=="string"&&(a=function(o,c,l){l||(l=1);for(var u,d=[];u=c.exec(o);)d.push(u[l]);return d}(i,/\((.*?)\)/g)),n=a}}),this.getOptions=function(){return n},this.setOptions=function(e){n=e,this.sort&&n.sort()},this.addOption=function(e){e=(e=e||"").toString(),n.push(e),this.sort&&n.sort()},this.removeOption=function(e,i){for(i=i||!1,e=(e=e||"").toString();n.indexOf(e)!==-1&&(n.splice(n.indexOf(e),1),i!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,18)},set:function(e){e?this.Ff=$e(this.Ff,18):this.Ff=Ke(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=$e(this.Ff,19):this.Ff=Ke(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,20)},set:function(e){e?(this.Ff=$e(this.Ff,20),n.sort()):this.Ff=Ke(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,22)},set:function(e){e?this.Ff=$e(this.Ff,22):this.Ff=Ke(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,23)},set:function(e){e?this.Ff=$e(this.Ff,23):this.Ff=Ke(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,27)},set:function(e){e?this.Ff=$e(this.Ff,27):this.Ff=Ke(this.Ff,27)}}),this.hasAppearanceStream=!1};On(Mr,si);var Dr=function(){Mr.call(this),this.fontName="helvetica",this.combo=!1};On(Dr,Mr);var qr=function(){Dr.call(this),this.combo=!0};On(qr,Dr);var io=function(){qr.call(this),this.edit=!0};On(io,qr);var an=function(){si.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,15)},set:function(e){e?this.Ff=$e(this.Ff,15):this.Ff=Ke(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,16)},set:function(e){e?this.Ff=$e(this.Ff,16):this.Ff=Ke(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,17)},set:function(e){e?this.Ff=$e(this.Ff,17):this.Ff=Ke(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,26)},set:function(e){e?this.Ff=$e(this.Ff,26):this.Ff=Ke(this.Ff,26)}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(o){return o};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(n).length!==0){var i,a=[];for(i in a.push("<<"),n)a.push("/"+i+" ("+Vr(e(n[i]))+")");return a.push(">>"),a.join(`
62`)}},set:function(e){Ne(e)==="object"&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){typeof e=="string"&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){var i=e==null?"":e.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),t="/"+Wr(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+Wr(e)}})};On(an,si);var ro=function(){an.call(this),this.pushButton=!0};On(ro,an);var Ur=function(){an.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n!==void 0?n:[]}})};On(Ur,an);var ms=function(){var t,n;si.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(a){t=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(a){n=a}});var e,i={};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 o,c=[];for(o in c.push("<<"),i)c.push("/"+o+" ("+Vr(a(i[o]))+")");return c.push(">>"),c.join(`
63`)},set:function(a){Ne(a)==="object"&&(i=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(a){typeof a=="string"&&(i.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Wr(o)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Wr(o)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Et.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};On(ms,si),Ur.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var e=this.Kids[n];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},Ur.prototype.createOption=function(t){var n=new ms;return n.Parent=this,n.optionName=t,this.Kids.push(n),o5.call(this.scope,n),n};var ao=function(){an.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Et.CheckBox.createAppearanceStream()};On(ao,an);var fr=function(){si.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,13)},set:function(n){n?this.Ff=$e(this.Ff,13):this.Ff=Ke(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,21)},set:function(n){n?this.Ff=$e(this.Ff,21):this.Ff=Ke(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,23)},set:function(n){n?this.Ff=$e(this.Ff,23):this.Ff=Ke(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,24)},set:function(n){n?this.Ff=$e(this.Ff,24):this.Ff=Ke(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,25)},set:function(n){n?this.Ff=$e(this.Ff,25):this.Ff=Ke(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,26)},set:function(n){n?this.Ff=$e(this.Ff,26):this.Ff=Ke(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};On(fr,si);var oo=function(){fr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ye(this.Ff,14)},set:function(t){t?this.Ff=$e(this.Ff,14):this.Ff=Ke(this.Ff,14)}}),this.password=!0};On(oo,fr);var Et={CheckBox:{createAppearanceStream:function(){return{N:{On:Et.CheckBox.YesNormal},D:{On:Et.CheckBox.YesPushDown,Off:Et.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),o=Ul(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+Xt(Et.internal.getWidth(t))+" "+Xt(Et.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+i+" "+Xt(o.fontSize)+" Tf "+a),e.push("BT"),e.push(o.text),e.push("ET"),e.push("Q"),e.push("EMC"),n.stream=e.join(`
64`),n},YesNormal:function(t){var n=_i(t);n.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=[],o=Et.internal.getHeight(t),c=Et.internal.getWidth(t),l=Ul(t,t.caption);return a.push("1 g"),a.push("0 0 "+Xt(c)+" "+Xt(o)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Xt(c-1)+" "+Xt(o-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+Xt(l.fontSize)+" Tf "+i),a.push(l.text),a.push("ET"),a.push("Q"),n.stream=a.join(`
65`),n},OffPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[];
vendor: 3,734 bytes, lines 65-70
65return e.push("0.749023 g"),e.push("0 0 "+Xt(Et.internal.getWidth(t))+" "+Xt(Et.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(`
66`),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:Et.RadioButton.Circle.OffPushDown},N:{}};return n.N[t]=Et.RadioButton.Circle.YesNormal,n.D[t]=Et.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=Et.internal.Bezier_C,o=Number((i*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+rr(Et.internal.getWidth(t)/2)+" "+rr(Et.internal.getHeight(t)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),e.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),e.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),e.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
67`),n},YesPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),o=Number((a*Et.internal.Bezier_C).toFixed(5)),c=Number((i*Et.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+rr(Et.internal.getWidth(t)/2)+" "+rr(Et.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+rr(Et.internal.getWidth(t)/2)+" "+rr(Et.internal.getHeight(t)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+c+" "+c+" "+i+" 0 "+i+" c"),e.push("-"+c+" "+i+" -"+i+" "+c+" -"+i+" 0 c"),e.push("-"+i+" -"+c+" -"+c+" -"+i+" 0 -"+i+" c"),e.push(c+" -"+i+" "+i+" -"+c+" "+i+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
68`),n},OffPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),o=Number((a*Et.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+rr(Et.internal.getWidth(t)/2)+" "+rr(Et.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
69`),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:Et.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=Et.RadioButton.Cross.YesNormal,n.D[t]=Et.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=Et.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Xt(Et.internal.getWidth(t)-2)+" "+Xt(Et.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(i.x1.x)+" "+Xt(i.x1.y)+" m"),e.push(Xt(i.x2.x)+" "+Xt(i.x2.y)+" l"),e.push(Xt(i.x4.x)+" "+Xt(i.x4.y)+" m"),e.push(Xt(i.x3.x)+" "+Xt(i.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(`
70`),n},YesPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=Et.internal.calculateCross(t),i=[];return i.push("0.749023 g"),i.push("0 0 "+Xt(Et.internal.getWidth(t))+" "+Xt(Et.internal.getHeight(t))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+Xt(Et.internal.getWidth(t)-2)+" "+Xt(Et.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),i.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),i.push(Xt(e.x4.x)+" "+Xt(e.x4.y
vendor: 37,018 bytes, lines 70-96
70)+" m"),i.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),i.push("s"),i.push("Q"),n.stream=i.join(`
71`),n},OffPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(Et.internal.getWidth(t))+" "+Xt(Et.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(`
72`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};Et.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=Et.internal.getWidth(t),e=Et.internal.getHeight(t),i=Math.min(n,e);return{x1:{x:(n-i)/2,y:(e-i)/2+i},x2:{x:(n-i)/2+i,y:(e-i)/2},x3:{x:(n-i)/2,y:(e-i)/2},x4:{x:(n-i)/2+i,y:(e-i)/2+i}}}},Et.internal.getWidth=function(t){var n=0;return Ne(t)==="object"&&(n=Tc(t.Rect[2])),n},Et.internal.getHeight=function(t){var n=0;return Ne(t)==="object"&&(n=Tc(t.Rect[3])),n};var o5=He.addField=function(t){if(a5(this,t),!(t instanceof si))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};He.AcroFormChoiceField=Mr,He.AcroFormListBox=Dr,He.AcroFormComboBox=qr,He.AcroFormEditBox=io,He.AcroFormButton=an,He.AcroFormPushButton=ro,He.AcroFormRadioButton=Ur,He.AcroFormCheckBox=ao,He.AcroFormTextField=fr,He.AcroFormPasswordField=oo,He.AcroFormAppearance=Et,He.AcroForm={ChoiceField:Mr,ListBox:Dr,ComboBox:qr,EditBox:io,Button:an,PushButton:ro,RadioButton:Ur,CheckBox:ao,TextField:fr,PasswordField:oo,Appearance:Et},Rt.AcroForm={ChoiceField:Mr,ListBox:Dr,ComboBox:qr,EditBox:io,Button:an,PushButton:ro,RadioButton:Ur,CheckBox:ao,TextField:fr,PasswordField:oo,Appearance:Et};var s5=Rt.AcroForm;function Zu(t){return t.reduce(function(n,e,i){return n[e]=i,n},{})}(function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",i={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=t.__addimage__.getImageFileTypeByImageData=function(N,C){var q,U,it,ut,pt,nt=e;if((C=C||e)==="RGBA"||N.data!==void 0&&N.data instanceof Uint8ClampedArray&&"height"in N&&"width"in N)return"RGBA";if(_t(N))for(pt in i)for(it=i[pt],q=0;q<it.length;q+=1){for(ut=!0,U=0;U<it[q].length;U+=1)if(it[q][U]!==void 0&&it[q][U]!==N[U]){ut=!1;break}if(ut===!0){nt=pt;break}}else for(pt in i)for(it=i[pt],q=0;q<it.length;q+=1){for(ut=!0,U=0;U<it[q].length;U+=1)if(it[q][U]!==void 0&&it[q][U]!==N.charCodeAt(U)){ut=!1;break}if(ut===!0){nt=pt;break}}return nt===e&&C!==e&&(nt=C),nt},o=function N(C){for(var q=this.internal.write,U=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.indexOf("FlateEncode"),1);C.objectId=this.internal.newObject();var ut=[];if(ut.push({key:"Type",value:"/XObject"}),ut.push({key:"Subtype",value:"/Image"}),ut.push({key:"Width",value:C.width}),ut.push({key:"Height",value:C.height}),C.colorSpace===k.INDEXED?ut.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(C.palette.length/3-1)+" "+("sMask"in C&&C.sMask!==void 0?C.objectId+2:C.objectId+1)+" 0 R]"}):(ut.push({key:"ColorSpace",value:"/"+C.colorSpace}),C.colorSpace===k.DEVICE_CMYK&&ut.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ut.push({key:"BitsPerComponent",value:C.bitsPerComponent}),"decodeParameters"in C&&C.decodeParameters!==void 0&&ut.push({key:"DecodeParms",value:"<<"+C.decodeParameters+">>"}),"transparency"in C&&Array.isArray(C.transparency)&&C.transparency.length>0){for(var pt="",nt=0,ft=C.transparency.length;nt<ft;nt++)pt+=C.transparency[nt]+" "+C.transparency[nt]+" ";ut.push({key:"Mask",value:"["+pt+"]"})}C.sMask!==void 0&&ut.push({key:"SMask",value:C.objectId+1+" 0 R"});var At=C.filter!==void 0?["/"+C.filter]:void 0;if(U({data:C.data,additionalKeyValues:ut,alreadyAppliedFilters:At,objectId:C.objectId}),q("endobj"),"sMask"in C&&C.sMask!==void 0){var yt,y=(yt=C.sMaskBitsPerComponent)!==null&&yt!==void 0?yt:C.bitsPerComponent,T={width:C.width,height:C.height,colorSpace:"DeviceGray",bitsPerComponent:y,data:C.sMask};"filter"in C&&(T.decodeParameters="/Predictor ".concat(C.predictor," /Colors 1 /BitsPerComponent ").concat(y," /Columns ").concat(C.width),T.filter=C.filter),N.call(this,T)}if(C.colorSpace===k.INDEXED){var B=this.internal.newObject();U({data:tt(new Uint8Array(C.palette)),objectId:B}),q("endobj")}},c=function(){var N=this.internal.collections[n+"images"];for(var C in N)o.call(this,N[C])},l=function(){var N,C=this.internal.collections[n+"images"],q=this.internal.write;for(var U in C)q("/I"+(N=C[U]).index,N.objectId,"0","R")},u=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",c),this.internal.events.subscribe("putXobjectDict",l))},d=function(){var N=this.internal.collections[n+"images"];return u.call(this),N},m=function(){return Object.keys(this.internal.collections[n+"images"]).length},A=function(N){return typeof t["process"+N.toUpperCase()]=="function"},L=function(N){return Ne(N)==="object"&&N.nodeType===1},p=function(N,C){if(N.nodeName==="IMG"&&N.hasAttribute("src")){var q=""+N.getAttribute("src");if(q.indexOf("data:image/")===0)return fs(unescape(q).split("base64,").pop());var U=t.loadFile(q,!0);if(U!==void 0)return U}if(N.nodeName==="CANVAS"){if(N.width===0||N.height===0)throw new Error("Given canvas must have data. Canvas width: "+N.width+", height: "+N.height);var it;switch(C){case"PNG":it="image/png";break;case"WEBP":it="image/webp";break;default:it="image/jpeg"}return fs(N.toDataURL(it,1).split("base64,").pop())}},j=function(N){var C=this.internal.collections[n+"images"];if(C){for(var q in C)if(N===C[q].alias)return C[q]}},O=function(N,C,q){return N||C||(N=-96,C=-96),N<0&&(N=-1*q.width*72/N/this.internal.scaleFactor),C<0&&(C=-1*q.height*72/C/this.internal.scaleFactor),N===0&&(N=C*q.width/q.height),C===0&&(C=N*q.height/q.width),[N,C]},R=function(N,C,q,U,it,ut){var pt=O.call(this,q,U,it),nt=this.internal.getCoordinateString,ft=this.internal.getVerticalCoordinateString,At=d.call(this);if(q=pt[0],U=pt[1],At[it.index]=it,ut){ut*=Math.PI/180;var yt=Math.cos(ut),y=Math.sin(ut),T=function(G){return G.toFixed(4)},B=[T(yt),T(y),T(-1*y),T(yt),0,0,"cm"]}this.internal.write("q"),ut?(this.internal.write([1,"0","0",1,nt(N),ft(C+U),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([nt(q),"0","0",nt(U),"0","0","cm"].join(" "))):this.internal.write([nt(q),"0","0",nt(U),nt(N),ft(C+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+it.index+" Do"),this.internal.write("Q")},k=t.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"};t.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 Z=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Y=t.__addimage__.sHashCode=function(N){var C,q,U=0;if(typeof N=="string")for(q=N.length,C=0;C<q;C++)U=(U<<5)-U+N.charCodeAt(C),U|=0;else if(_t(N))for(q=N.byteLength/2,C=0;C<q;C++)U=(U<<5)-U+N[C],U|=0;return U},D=t.__addimage__.validateStringAsBase64=function(N){(N=N||"").toString().trim();var C=!0;return N.length===0&&(C=!1),N.length%4!=0&&(C=!1),/^[A-Za-z0-9+/]+$/.test(N.substr(0,N.length-2))===!1&&(C=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(N.substr(-2))===!1&&(C=!1),C},lt=t.__addimage__.extractImageFromDataUrl=function(N){if(N==null||!(N=N.trim()).startsWith("data:"))return null;var C=N.indexOf(",");return C<0?null:N.substring(0,C).trim().endsWith("base64")?N.substring(C+1):null};t.__addimage__.isArrayBuffer=function(N){return N instanceof ArrayBuffer};var _t=t.__addimage__.isArrayBufferView=function(N){return N instanceof Int8Array||N instanceof Uint8Array||N instanceof Uint8ClampedArray||N instanceof Int16Array||N instanceof Uint16Array||N instanceof Int32Array||N instanceof Uint32Array||N instanceof Float32Array||N instanceof Float64Array},mt=t.__addimage__.binaryStringToUint8Array=function(N){for(var C=N.length,q=new Uint8Array(C),U=0;U<C;U++)q[U]=N.charCodeAt(U);return q},tt=t.__addimage__.arrayBufferToBinaryString=function(N){for(var C="",q=_t(N)?N:new Uint8Array(N),U=0;U<q.length;U+=8192)C+=String.fromCharCode.apply(null,q.subarray(U,U+8192));return C};t.addImage=function(){var N,C,q,U,it,ut,pt,nt,ft;if(typeof arguments[1]=="number"?(C=e,q=arguments[1],U=arguments[2],it=arguments[3],ut=arguments[4],pt=arguments[5],nt=arguments[6],ft=arguments[7]):(C=arguments[1],q=arguments[2],U=arguments[3],it=arguments[4],ut=arguments[5],pt=arguments[6],nt=arguments[7],ft=arguments[8]),Ne(N=arguments[0])==="object"&&!L(N)&&"imageData"in N){var At=N;N=At.imageData,C=At.format||C||e,q=At.x||q||0,U=At.y||U||0,it=At.w||At.width||it,ut=At.h||At.height||ut,pt=At.alias||pt,nt=At.compression||nt,ft=At.rotation||At.angle||ft}var yt=this.internal.getFilters();if(nt===void 0&&yt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(q)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var y=z.call(this,N,C,pt,nt);return R.call(this,q,U,it,ut,y,ft),this};var z=function(N,C,q,U){var it,ut,pt;if(typeof N=="string"&&a(N)===e){N=unescape(N);var nt=et(N,!1);(nt!==""||(nt=t.loadFile(N,!0))!==void 0)&&(N=nt)}if(L(N)&&(N=p(N,C)),C=a(N,C),!A(C))throw new Error("addImage does not support files of type '"+C+"', please ensure that a plugin for '"+C+"' support is added.");if(((pt=q)==null||pt.length===0)&&(q=function(ft){return typeof ft=="string"||_t(ft)?Y(ft):_t(ft.data)?Y(ft.data):null}(N)),(it=j.call(this,q))||(N instanceof Uint8Array||C==="RGBA"||(ut=N,N=mt(N)),it=this["process"+C.toUpperCase()](N,m.call(this),q,function(ft){return ft&&typeof ft=="string"&&(ft=ft.toUpperCase()),ft in t.image_compression?ft:Z.NONE}(U),ut)),!it)throw new Error("An unknown error occurred whilst processing the image.");return it},et=t.__addimage__.convertBase64ToBinaryString=function(N,C){C=typeof C!="boolean"||C;var q,U="";if(typeof N=="string"){var it;q=(it=lt(N))!==null&&it!==void 0?it:N;try{U=fs(q)}catch(ut){if(C)throw D(q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ut.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};t.getImageProperties=function(N){var C,q,U="";if(L(N)&&(N=p(N)),typeof N=="string"&&a(N)===e&&((U=et(N,!1))===""&&(U=t.loadFile(N)||""),N=U),q=a(N),!A(q))throw new Error("addImage does not support files of type '"+q+"', please ensure that a plugin for '"+q+"' support is added.");if(N instanceof Uint8Array||(N=mt(N)),!(C=this["process"+q.toUpperCase()](N)))throw new Error("An unknown error occurred whilst processing the image");return C.fileType=q,C}})(Rt.API),function(t){var n=function(e){if(e!==void 0&&e!="")return!0};Rt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var i,a,o,c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(e.objId),d=e.pageContext.annotations,m=!1,A=0;A<d.length&&!m;A++)switch((i=d[A]).type){case"link":(n(i.options.url)||n(i.options.pageNumber))&&(m=!0);break;case"reference":case"text":case"freetext":m=!0}if(m!=0){this.internal.write("/Annots [");for(var L=0;L<d.length;L++){i=d[L];var p=this.internal.pdfEscape,j=this.internal.getEncryptor(e.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var O=this.internal.newAdditionalObject(),R=this.internal.newAdditionalObject(),k=this.internal.getEncryptor(O.objId),Z=i.title||"Note";o="<</Type /Annot /Subtype /Text "+(a="/Rect ["+c(i.bounds.x)+" "+l(i.bounds.y+i.bounds.h)+" "+c(i.bounds.x+i.bounds.w)+" "+l(i.bounds.y)+"] ")+"/Contents ("+p(k(i.contents))+")",o+=" /Popup "+R.objId+" 0 R",o+=" /P "+u.objId+" 0 R",o+=" /T ("+p(k(Z))+") >>",O.content=o;var Y=O.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+c(i.bounds.x+30)+" "+l(i.bounds.y+i.bounds.h)+" "+c(i.bounds.x+i.bounds.w+30)+" "+l(i.bounds.y)+"] ")+" /Parent "+Y,i.open&&(o+=" /Open true"),o+=" >>",R.content=o,this.internal.write(O.objId,"0 R",R.objId,"0 R");break;case"freetext":a="/Rect ["+c(i.bounds.x)+" "+l(i.bounds.y)+" "+c(i.bounds.x+i.bounds.w)+" "+l(i.bounds.y+i.bounds.h)+"] ";var D="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(i.color||"#000000");o="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+p(j(i.contents))+")",o+=" /DS("+p(j(D))+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(i.options.name){var lt=this.annotations._nameMap[i.options.name];i.options.pageNumber=lt.page,i.options.top=lt.y}else i.options.top||(i.options.top=0);if(a="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",o="",i.options.url)o="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+p(j(i.options.url))+") >>";else if(i.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(i.options.pageNumber).objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,o+=" /FitV "+i.options.left+"]";break;default:var _t=l(i.options.top);i.options.left=i.options.left||0,i.options.zoom===void 0&&(i.options.zoom=0),o+=" /XYZ "+i.options.left+" "+_t+" "+i.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var i=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":i.pageContext.annotations.push(e)}},t.link=function(e,i,a,o,c){var l=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:u(e),y:d(i),w:u(e+a),h:d(i+o)},options:c,type:"link"})},t.textWithLink=function(e,i,a,o){var c,l,u=this.getTextWidth(e),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){l=o.maxWidth;var m=this.splitTextToSize(e,l).length;c=Math.ceil(d*m)}else l=u,c=d;return this.text(e,i,a,o),a+=.2*d,o.align==="center"&&(i-=u/2),o.align==="right"&&(i-=u),this.link(i,a-d,l,c,o),u},t.getTextWidth=function(e){var i=this.internal.getFontSize();return this.getStringUnitWidth(e)*i/this.internal.scaleFactor}}(Rt.API),function(t){var n={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}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(O){return n[O.charCodeAt(0)]!==void 0},c=t.__arabicParser__.isArabicLetter=function(O){return typeof O=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(O)},l=t.__arabicParser__.isArabicEndLetter=function(O){return c(O)&&o(O)&&n[O.charCodeAt(0)].length<=2},u=t.__arabicParser__.isArabicAlfLetter=function(O){return c(O)&&a.indexOf(O.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(O){return c(O)&&o(O)&&n[O.charCodeAt(0)].length>=1};var d=t.__arabicParser__.arabicLetterHasFinalForm=function(O){return c(O)&&o(O)&&n[O.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(O){return c(O)&&o(O)&&n[O.charCodeAt(0)].length>=3};var m=t.__arabicParser__.arabicLetterHasMedialForm=function(O){return c(O)&&o(O)&&n[O.charCodeAt(0)].length==4},A=t.__arabicParser__.resolveLigatures=function(O){var R=0,k=e,Z="",Y=0;for(R=0;R<O.length;R+=1)k[O.charCodeAt(R)]!==void 0?(Y++,typeof(k=k[O.charCodeAt(R)])=="number"&&(Z+=String.fromCharCode(k),k=e,Y=0),R===O.length-1&&(k=e,Z+=O.charAt(R-(Y-1)),R-=Y-1,Y=0)):(k=e,Z+=O.charAt(R-Y),R-=Y,Y=0);return Z};t.__arabicParser__.isArabicDiacritic=function(O){return O!==void 0&&i[O.charCodeAt(0)]!==void 0};var L=t.__arabicParser__.getCorrectForm=function(O,R,k){return c(O)?o(O)===!1?-1:!d(O)||!c(R)&&!c(k)||!c(k)&&l(R)||l(O)&&!c(R)||l(O)&&u(R)||l(O)&&l(R)?0:m(O)&&c(R)&&!l(R)&&c(k)&&d(k)?3:l(O)||!c(k)?1:2:-1},p=function(O){var R=0,k=0,Z=0,Y="",D="",lt="",_t=(O=O||"").split("\\s+"),mt=[];for(R=0;R<_t.length;R+=1){for(mt.push(""),k=0;k<_t[R].length;k+=1)Y=_t[R][k],D=_t[R][k-1],lt=_t[R][k+1],c(Y)?(Z=L(Y,D,lt),mt[R]+=Z!==-1?String.fromCharCode(n[Y.charCodeAt(0)][Z]):Y):mt[R]+=Y;mt[R]=A(mt[R])}return mt.join(" ")},j=t.__arabicParser__.processArabic=t.processArabic=function(){var O,R=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,k=[];if(Array.isArray(R)){var Z=0;for(k=[],Z=0;Z<R.length;Z+=1)Array.isArray(R[Z])?k.push([p(R[Z][0]),R[Z][1],R[Z][2]]):k.push([p(R[Z])]);O=k}else O=p(R);return typeof arguments[0]=="string"?O:(arguments[0].text=O,arguments[0])};t.events.push(["preProcessText",j])}(Rt.API),Rt.API.autoPrint=function(t){var n;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=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 "+n+" 0 R")})),this},function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+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 o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(l){o=l}});var c={};Object.defineProperty(this,"style",{get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(e,i){var a;if((e=e||"2d")!=="2d")return null;for(a in i)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=i[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])}(Rt.API),function(t){var n={left:0,top:0,bottom:0,right:0},e=!1,i=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({},n),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(O){u=O}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(O){d=O}});var m=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return m},set:function(O){m=O}});var A=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return A},set:function(O){A=O}});var L=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return L},set:function(O){L=O}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(O){p=O}});var j=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return j},set:function(O){j=O}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(u){return i.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},t.getTextDimensions=function(u,d){i.call(this);var m=(d=d||{}).fontSize||this.getFontSize(),A=d.font||this.getFont(),L=d.scaleFactor||this.internal.scaleFactor,p=0,j=0,O=0,R=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 k=d.maxWidth;k>0?typeof u=="string"?u=this.splitTextToSize(u,k):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(Y,D){return Y.concat(R.splitTextToSize(D,k))},[])):u=Array.isArray(u)?u:[u];for(var Z=0;Z<u.length;Z++)p<(O=this.getStringUnitWidth(u[Z],{font:A})*m)&&(p=O);return p!==0&&(j=u.length),{w:p/=L,h:Math.max((j*m*this.getLineHeightFactor()-m*(this.getLineHeightFactor()-1))/L,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var u=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new o(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var c=t.cell=function(){var u;u=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),i.call(this);var d=this.internal.__cell__.lastCell,m=this.internal.__cell__.padding,A=this.internal.__cell__.margins||n,L=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===u.lineNumber?(u.x=(d.x||0)+(d.width||0),u.y=d.y||0):d.y+d.height+u.height+A.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=A.top,p&&L&&(this.printHeaderRow(u.lineNumber,!0),u.y+=L[0].height)):u.y=d.y+d.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-m,u.y+m,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+m,{align:"center",baseline:"top",maxWidth:u.width-m-m}):this.text(u.text,u.x+m,u.y+m,{align:"left",baseline:"top",maxWidth:u.width-m-m})),this.internal.__cell__.lastCell=u,this};t.table=function(u,d,m,A,L){if(i.call(this),!m)throw new Error("No data for PDF table.");var p,j,O,R,k=[],Z=[],Y=[],D={},lt={},_t=[],mt=[],tt=(L=L||{}).autoSize||!1,z=L.printHeaders!==!1,et=L.css&&L.css["font-size"]!==void 0?16*L.css["font-size"]:L.fontSize||12,N=L.margins||Object.assign({width:this.getPageWidth()},n),C=typeof L.padding=="number"?L.padding:3,q=L.headerBackgroundColor||"#c8c8c8",U=L.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=z,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=et,this.internal.__cell__.padding=C,this.internal.__cell__.headerBackgroundColor=q,this.internal.__cell__.headerTextColor=U,this.setFontSize(et),A==null)Z=k=Object.keys(m[0]),Y=k.map(function(){return"left"});else if(Array.isArray(A)&&Ne(A[0])==="object")for(k=A.map(function(At){return At.name}),Z=A.map(function(At){return At.prompt||At.name||""}),Y=A.map(function(At){return At.align||"left"}),p=0;p<A.length;p+=1)lt[A[p].name]=.7499990551181103*A[p].width;else Array.isArray(A)&&typeof A[0]=="string"&&(Z=k=A,Y=k.map(function(){return"left"}));if(tt||Array.isArray(A)&&typeof A[0]=="string")for(p=0;p<k.length;p+=1){for(D[R=k[p]]=m.map(function(At){return At[R]}),this.setFont(void 0,"bold"),_t.push(this.getTextDimensions(Z[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),j=D[R],this.setFont(void 0,"normal"),O=0;O<j.length;O+=1)_t.push(this.getTextDimensions(j[O],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);lt[R]=Math.max.apply(null,_t)+C+C,_t=[]}if(z){var it={};for(p=0;p<k.length;p+=1)it[k[p]]={},it[k[p]].text=Z[p],it[k[p]].align=Y[p];var ut=l.call(this,it,lt);mt=k.map(function(At){return new o(u,d,lt[At],ut,it[At].text,void 0,it[At].align)}),this.setTableHeaderRow(mt),this.printHeaderRow(1,!1)}var pt=A.reduce(function(At,yt){return At[yt.name]=yt.align,At},{});for(p=0;p<m.length;p+=1){"rowStart"in L&&L.rowStart instanceof Function&&L.rowStart({row:p,data:m[p]},this);var nt=l.call(this,m[p],lt);for(O=0;O<k.length;O+=1){var ft=m[p][k[O]];"cellStart"in L&&L.cellStart instanceof Function&&L.cellStart({row:p,col:O,data:ft},this),c.call(this,new o(u,d,lt[k[O]],nt,ft,p+2,pt[k[O]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=d,this};var l=function(u,d){var m=this.internal.__cell__.padding,A=this.internal.__cell__.table_font_size,L=this.internal.scaleFactor;return Object.keys(u).map(function(p){var j=u[p];return this.splitTextToSize(j.hasOwnProperty("text")?j.text:j,d[p]-m-m)},this).map(function(p){return this.getLineHeightFactor()*p.length*A/L+m+m},this).reduce(function(p,j){return Math.max(p,j)},0)};t.setTableHeaderRow=function(u){i.call(this),this.internal.__cell__.tableHeaderRow=u},t.printHeaderRow=function(u,d){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var m;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var A=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(A[0],A[1],A[2],A[3],void 0,-1)}this.setFont(void 0,"bold");for(var L=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){m=this.internal.__cell__.tableHeaderRow[p].clone(),d&&(m.y=this.internal.__cell__.margins.top||0,L.push(m)),m.lineNumber=u;var j=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),c.call(this,m),this.setTextColor(j)}L.length>0&&this.setTableHeaderRow(L),this.setFont(void 0,"normal"),e=!1}}(Rt.API);var Yu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},$u=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],zl=Zu($u),Ku=[100,200,300,400,500,600,700,800,900],l5=Zu(Ku);function Ll(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=function(o){return Yu[o=o||"normal"]?o:"normal"}(t.style),i=function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400}(t.weight),a=function(o){return typeof zl[o=o||"normal"]=="number"?o:"normal"}(t.stretch);return{family:n,style:e,weight:i,stretch:a,src:t.src||[],ref:t.ref||{name:n,style:[a,e,i].join(" ")}}}function Rc(t,n,e,i){var a;for(a=e;a>=0&&a<n.length;a+=i)if(t[n[a]])return t[n[a]];for(a=e;a>=0&&a<n.length;a-=i)if(t[n[a]])return t[n[a]]}var h5={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Bc={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Mc(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Dc(t){return t.trimLeft()}function c5(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function u5(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}var va,hs,qc,Uc,zc,Sl=["times"];function Hc(t,n,e,i,a){var o=4,c=Gc;switch(a){case Rt.API.image_compression.FAST:o=1,c=Wc;break;case Rt.API.image_compression.MEDIUM:o=6,c=Vc;break;case Rt.API.image_compression.SLOW:o=9,c=Zc}t=function(u,d,m,A){for(var L,p=u.length/d,j=new Uint8Array(u.length+p),O=[f5,Wc,Gc,Vc,Zc],R=0;R<p;R+=1){var k=R*d,Z=u.subarray(k,k+d);if(A)j.set(A(Z,m,L),k+R);else{for(var Y=O.length,D=[],lt=0;lt<Y;lt+=1)D[lt]=O[lt](Z,m,L);var _t=p5(D.concat());j.set(D[_t],k+R)}L=Z}return j}(t,n,Math.ceil(e*i/8),c);var l=El(t,{level:o});return Rt.API.__addimage__.arrayBufferToBinaryString(l)}function f5(t){var n=Array.apply([],t);return n.unshift(0),n}function Wc(t,n){var e=t.length,i=[];i[0]=1;for(var a=0;a<e;a+=1){var o=t[a-n]||0;i[a+1]=t[a]-o+256&255}return i}function Gc(t,n,e){var i=t.length,a=[];a[0]=2;for(var o=0;o<i;o+=1){var c=e&&e[o]||0;a[o+1]=t[o]-c+256&255}return a}function Vc(t,n,e){var i=t.length,a=[];a[0]=3;for(var o=0;o<i;o+=1){var c=t[o-n]||0,l=e&&e[o]||0;a[o+1]=t[o]+256-(c+l>>>1)&255}return a}function Zc(t,n,e){var i=t.length,a=[];a[0]=4;for(var o=0;o<i;o+=1){var c=d5(t[o-n]||0,e&&e[o]||0,e&&e[o-n]||0);a[o+1]=t[o]-c+256&255}return a}function d5(t,n,e){if(t===n&&n===e)return t;var i=Math.abs(n-e),a=Math.abs(t-e),o=Math.abs(t+n-e-e);return i<=a&&i<=o?t:a<=o?n:e}function p5(t){var n=t.map(function(e){return e.reduce(function(i,a){return i+Math.abs(a)},0)});return n.indexOf(Math.min.apply(null,n))}function kl(t,n,e){var i=n*e,a=Math.floor(i/8),o=16-(i-8*a+e),c=(1<<e)-1;return Xu(t,a)>>o&c}function Yc(t,n,e,i){var a=e*i,o=Math.floor(a/8),c=16-(a-8*o+i),l=(1<<i)-1,u=(n&l)<<c;(function(d,m,A){if(m+1<d.byteLength)d.setUint16(m,A,!1);else{var L=A>>8&255;d.setUint8(m,L)}})(t,o,Xu(t,o)&~(l<<c)&65535|u)}function Xu(t,n){return n+1<t.byteLength?t.getUint16(n,!1):t.getUint8(n)<<8}function g5(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,i=t[n++]|t[n++]<<8,a=t[n++],o=a>>7,c=1<<1+(7&a);t[n++],t[n++];var l=null,u=null;o&&(l=n,u=c,n+=3*c);var d=!0,m=[],A=0,L=null,p=0,j=null;for(this.width=e,this.height=i;d&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,j=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((N=t[n++])>=0))throw Error("Invalid block size");if(N===0)break;n+=N}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var O=t[n++];A=t[n++]|t[n++]<<8,L=t[n++],1&O||(L=null),p=O>>2&7,n++;break;case 254:for(;;){if(!((N=t[n++])>=0))throw Error("Invalid block size");if(N===0)break;n+=N}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var R=t[n++]|t[n++]<<8,k=t[n++]|t[n++]<<8,Z=t[n++]|t[n++]<<8,Y=t[n++]|t[n++]<<8,D=t[n++],lt=D>>6&1,_t=1<<1+(7&D),mt=l,tt=u,z=!1;D>>7&&(z=!0,mt=n,tt=_t,n+=3*_t);var et=n;for(n++;;){var N;if(!((N=t[n++])>=0))throw Error("Invalid block size");if(N===0)break;n+=N}m.push({x:R,y:k,width:Z,height:Y,has_local_palette:z,palette_offset:mt,palette_size:tt,data_offset:et,data_length:n-et,transparent_index:L,interlaced:!!lt,delay:A,disposal:p});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return j},this.frameInfo=function(C){if(C<0||C>=m.length)throw new Error("Frame index out of range.");return m[C]},this.decodeAndBlitFrameBGRA=function(C,q){var U=this.frameInfo(C),it=U.width*U.height;if(it>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ut=new Uint8Array(it);$c(t,U.data_offset,ut,it);var pt=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ft=U.width,At=e-ft,yt=ft,y=4*(U.y*e+U.x),T=4*((U.y+U.height)*e+U.x),B=y,G=4*At;U.interlaced===!0&&(G+=4*e*7);for(var $=8,Q=0,rt=ut.length;Q<rt;++Q){var at=ut[Q];if(yt===0&&(yt=ft,(B+=G)>=T&&(G=4*At+4*e*($-1),B=y+(ft+At)*($<<1),$>>=1)),at===nt)B+=4;else{var dt=t[pt+3*at],xt=t[pt+3*at+1],St=t[pt+3*at+2];q[B++]=St,q[B++]=xt,q[B++]=dt,q[B++]=255}--yt}},this.decodeAndBlitFrameRGBA=function(C,q){var U=this.frameInfo(C),it=U.width*U.height;if(it>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ut=new Uint8Array(it);$c(t,U.data_offset,ut,it);var pt=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var ft=U.width,At=e-ft,yt=ft,y=4*(U.y*e+U.x),T=4*((U.y+U.height)*e+U.x),B=y,G=4*At;U.interlaced===!0&&(G+=4*e*7);for(var $=8,Q=0,rt=ut.length;Q<rt;++Q){var at=ut[Q];if(yt===0&&(yt=ft,(B+=G)>=T&&(G=4*At+4*e*($-1),B=y+(ft+At)*($<<1),$>>=1)),at===nt)B+=4;else{var dt=t[pt+3*at],xt=t[pt+3*at+1],St=t[pt+3*at+2];q[B++]=dt,q[B++]=xt,q[B++]=St,q[B++]=255}--yt}}}function $c(t,n,e,i){for(var a=t[n++],o=1<<a,c=o+1,l=c+1,u=a+1,d=(1<<u)-1,m=0,A=0,L=0,p=t[n++],j=new Int32Array(4096),O=null;;){for(;m<16&&p!==0;)A|=t[n++]<<m,m+=8,p===1?p=t[n++]:--p;if(m<u)break;var R=A&d;if(A>>=u,m-=u,R!==o){if(R===c)break;for(var k=R<l?R:O,Z=0,Y=k;Y>o;)Y=j[Y]>>8,++Z;var D=Y;if(L+Z+(k!==R?1:0)>i)return void Pe.log("Warning, gif stream longer than expected.");e[L++]=D;var lt=L+=Z;for(k!==R&&(e[L++]=D),Y=k;Z--;)Y=j[Y],e[--lt]=255&Y,Y>>=8;O!==null&&l<4096&&(j[l++]=O<<8|D,l>=d+1&&u<12&&(++u,d=d<<1|1)),O=R}else l=c+1,d=(1<<(u=a+1))-1,O=null}return L!==i&&Pe.log("Warning, gif stream shorter than expected."),e}/**
73 * @license
74  Copyright (c) 2008, Adobe Systems Incorporated
75  All rights reserved.
76
77  Redistribution and use in source and binary forms, with or without 
78  modification, are permitted provided that the following conditions are
79  met:
80
81  * Redistributions of source code must retain the above copyright notice, 
82    this list of conditions and the following disclaimer.
83  
84  * Redistributions in binary form must reproduce the above copyright
85    notice, this list of conditions and the following disclaimer in the 
86    documentation and/or other materials provided with the distribution.
87  
88  * Neither the name of Adobe Systems Incorporated nor the names of its 
89    contributors may be used to endorse or promote products derived from 
90    this software without specific prior written permission.
91
92  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
93  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
94  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
95  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
96  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
97  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
98  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
99  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
100  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
101  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
102  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103*/function Pl(t){var n,e,i,a,o,c=Math.floor,l=new Array(64),u=new Array(64),d=new Array(64),m=new Array(64),A=new Array(65535),L=new Array(65535),p=new Array(64),j=new Array(64),O=[],R=0,k=7,Z=new Array(64),Y=new Array(64),D=new Array(64),lt=new Array(256),_t=new Array(2048),mt=[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],tt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],et=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],N=[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],C=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],q=[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],it=[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 ut(y,T){for(var B=0,G=0,$=new Array,Q=1;Q<=16;Q++){for(var rt=1;rt<=y[Q];rt++)$[T[G]]=[],$[T[G]][0]=B,$[T[G]][1]=Q,G++,B++;B*=2}return $}function pt(y){for(var T=y[0],B=y[1]-1;B>=0;)T&1<<B&&(R|=1<<k),B--,--k<0&&(R==255?(nt(255),nt(0)):nt(R),k=7,R=0)}function nt(y){O.push(y)}function ft(y){nt(y>>8&255),nt(255&y)}function At(y,T,B,G,$){for(var Q,rt=$[0],at=$[240],dt=function(vt,Wt){var It,Ut,Dt,we,he,Jt,ue,ce,Tt,ne,Mt=0;for(Tt=0;Tt<8;++Tt){It=vt[Mt],Ut=vt[Mt+1],Dt=vt[Mt+2],we=vt[Mt+3],he=vt[Mt+4],Jt=vt[Mt+5],ue=vt[Mt+6];var We=It+(ce=vt[Mt+7]),me=It-ce,oe=Ut+ue,se=Ut-ue,Te=Dt+Jt,qt=Dt-Jt,Ee=we+he,Zt=we-he,Qt=We+Ee,Re=We-Ee,le=oe+Te,Gt=oe-Te;vt[Mt]=Qt+le,vt[Mt+4]=Qt-le;var _e=.707106781*(Gt+Re);vt[Mt+2]=Re+_e,vt[Mt+6]=Re-_e;var pr=.382683433*((Qt=Zt+qt)-(Gt=se+me)),pn=.5411961*Qt+pr,Si=1.306562965*Gt+pr,hi=.707106781*(le=qt+se),Vt=me+hi,ki=me-hi;vt[Mt+5]=ki+pn,vt[Mt+3]=ki-pn,vt[Mt+1]=Vt+Si,vt[Mt+7]=Vt-Si,Mt+=8}for(Mt=0,Tt=0;Tt<8;++Tt){It=vt[Mt],Ut=vt[Mt+8],Dt=vt[Mt+16],we=vt[Mt+24],he=vt[Mt+32],Jt=vt[Mt+40],ue=vt[Mt+48];var Pi=It+(ce=vt[Mt+56]),Wn=It-ce,Gn=Ut+ue,qe=Ut-ue,on=Dt+Jt,ln=Dt-Jt,gr=we+he,Hi=we-he,Qn=Pi+gr,ci=Pi-gr,ti=Gn+on,ei=Gn-on;vt[Mt]=Qn+ti,vt[Mt+32]=Qn-ti;var Vn=.707106781*(ei+ci);vt[Mt+16]=ci+Vn,vt[Mt+48]=ci-Vn;var mr=.382683433*((Qn=Hi+ln)-(ei=qe+Wn)),ui=.5411961*Qn+mr,br=1.306562965*ei+mr,Zr=.707106781*(ti=ln+qe),Yr=Wn+Zr,$r=Wn-Zr;vt[Mt+40]=$r+ui,vt[Mt+24]=$r-ui,vt[Mt+8]=Yr+br,vt[Mt+56]=Yr-br,Mt++}for(Tt=0;Tt<64;++Tt)ne=vt[Tt]*Wt[Tt],p[Tt]=ne>0?ne+.5|0:ne-.5|0;return p}(y,T),xt=0;xt<64;++xt)j[mt[xt]]=dt[xt];var St=j[0]-B;B=j[0],St==0?pt(G[0]):(pt(G[L[Q=32767+St]]),pt(A[Q]));for(var kt=63;kt>0&&j[kt]==0;)kt--;if(kt==0)return pt(rt),B;for(var zt,P=1;P<=kt;){for(var Lt=P;j[P]==0&&P<=kt;)++P;var ae=P-Lt;if(ae>=16){zt=ae>>4;for(var Ht=1;Ht<=zt;++Ht)pt(at);ae&=15}Q=32767+j[P],pt($[(ae<<4)+L[Q]]),pt(A[Q]),P++}return kt!=63&&pt(rt),B}function yt(y){y=Math.min(Math.max(y,1),100),o!=y&&(function(T){for(var B=[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],G=0;G<64;G++){var $=c((B[G]*T+50)/100);$=Math.min(Math.max($,1),255),l[mt[G]]=$}for(var Q=[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],rt=0;rt<64;rt++){var at=c((Q[rt]*T+50)/100);at=Math.min(Math.max(at,1),255),u[mt[rt]]=at}for(var dt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,St=0;St<8;St++)for(var kt=0;kt<8;kt++)d[xt]=1/(l[mt[xt]]*dt[St]*dt[kt]*8),m[xt]=1/(u[mt[xt]]*dt[St]*dt[kt]*8),xt++}(y<50?Math.floor(5e3/y):Math.floor(200-2*y)),o=y)}this.encode=function(y,T){T&&yt(T),O=new Array,R=0,k=7,ft(65496),ft(65504),ft(16),nt(74),nt(70),nt
vendor: 44,496 bytes, lines 103-109
103(73),nt(70),nt(0),nt(1),nt(1),nt(0),ft(1),ft(1),nt(0),nt(0),function(){ft(65499),ft(132),nt(0);for(var Ut=0;Ut<64;Ut++)nt(l[Ut]);nt(1);for(var Dt=0;Dt<64;Dt++)nt(u[Dt])}(),function(Ut,Dt){ft(65472),ft(17),nt(8),ft(Dt),ft(Ut),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)}(y.width,y.height),function(){ft(65476),ft(418),nt(0);for(var Ut=0;Ut<16;Ut++)nt(tt[Ut+1]);for(var Dt=0;Dt<=11;Dt++)nt(z[Dt]);nt(16);for(var we=0;we<16;we++)nt(et[we+1]);for(var he=0;he<=161;he++)nt(N[he]);nt(1);for(var Jt=0;Jt<16;Jt++)nt(C[Jt+1]);for(var ue=0;ue<=11;ue++)nt(q[ue]);nt(17);for(var ce=0;ce<16;ce++)nt(U[ce+1]);for(var Tt=0;Tt<=161;Tt++)nt(it[Tt])}(),ft(65498),ft(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var B=0,G=0,$=0;R=0,k=7,this.encode.displayName="_encode_";for(var Q,rt,at,dt,xt,St,kt,zt,P,Lt=y.data,ae=y.width,Ht=y.height,vt=4*ae,Wt=0;Wt<Ht;){for(Q=0;Q<vt;){for(xt=vt*Wt+Q,kt=-1,zt=0,P=0;P<64;P++)St=xt+(zt=P>>3)*vt+(kt=4*(7&P)),Wt+zt>=Ht&&(St-=vt*(Wt+1+zt-Ht)),Q+kt>=vt&&(St-=Q+kt-vt+4),rt=Lt[St++],at=Lt[St++],dt=Lt[St++],Z[P]=(_t[rt]+_t[at+256|0]+_t[dt+512|0]>>16)-128,Y[P]=(_t[rt+768|0]+_t[at+1024|0]+_t[dt+1280|0]>>16)-128,D[P]=(_t[rt+1280|0]+_t[at+1536|0]+_t[dt+1792|0]>>16)-128;B=At(Z,d,B,n,i),G=At(Y,m,G,e,a),$=At(D,m,$,e,a),Q+=32}Wt+=8}if(k>=0){var It=[];It[1]=k+1,It[0]=(1<<k+1)-1,pt(It)}return ft(65497),new Uint8Array(O)},t=t||50,function(){for(var y=String.fromCharCode,T=0;T<256;T++)lt[T]=y(T)}(),n=ut(tt,z),e=ut(C,q),i=ut(et,N),a=ut(U,it),function(){for(var y=1,T=2,B=1;B<=15;B++){for(var G=y;G<T;G++)L[32767+G]=B,A[32767+G]=[],A[32767+G][1]=B,A[32767+G][0]=G;for(var $=-(T-1);$<=-y;$++)L[32767+$]=B,A[32767+$]=[],A[32767+$][1]=B,A[32767+$][0]=T-1+$;y<<=1,T<<=1}}(),function(){for(var y=0;y<256;y++)_t[y]=19595*y,_t[y+256|0]=38470*y,_t[y+512|0]=7471*y+32768,_t[y+768|0]=-11059*y,_t[y+1024|0]=-21709*y,_t[y+1280|0]=32768*y+8421375,_t[y+1536|0]=-27439*y,_t[y+1792|0]=-5329*y}(),yt(t)}/**
104 * @license
105 * Copyright (c) 2017 Aras Abbasi
106 *
107 * Licensed under the MIT License.
108 * http://opensource.org/licenses/mit-license
109 */function oi(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,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 Kc(t){function n(z){if(!z)throw Error("assert :P")}function e(z,et,N){for(var C=0;4>C;C++)if(z[et+C]!=N.charCodeAt(C))return!0;return!1}function i(z,et,N,C,q){for(var U=0;U<q;U++)z[et+U]=N[C+U]}function a(z,et,N,C){for(var q=0;q<C;q++)z[et+q]=N}function o(z){return new Int32Array(z)}function c(z,et){for(var N=[],C=0;C<z;C++)N.push(new et);return N}function l(z,et){var N=[];return function C(q,U,it){for(var ut=it[U],pt=0;pt<ut&&(q.push(it.length>U+1?[]:new et),!(it.length<U+1));pt++)C(q[pt],U+1,it)}(N,0,z),N}var u=function(){var z=this;function et(r,s){for(var f=1<<s-1>>>0;r&f;)f>>>=1;return f?(r&f-1)+f:r}function N(r,s,f,g,v){n(!(g%f));do r[s+(g-=f)]=v;while(0<g)}function C(r,s,f,g,v){if(n(2328>=v),512>=v)var w=o(512);else if((w=o(v))==null)return 0;return function(_,x,S,I,H,J){var F,W,K=x,st=1<<S,X=o(16),ht=o(16);for(n(H!=0),n(I!=null),n(_!=null),n(0<S),W=0;W<H;++W){if(15<I[W])return 0;++X[I[W]]}if(X[0]==H)return 0;for(ht[1]=0,F=1;15>F;++F){if(X[F]>1<<F)return 0;ht[F+1]=ht[F]+X[F]}for(W=0;W<H;++W)F=I[W],0<I[W]&&(J[ht[F]++]=W);if(ht[15]==1)return(I=new q).g=0,I.value=J[0],N(_,K,1,st,I),st;var ct,wt=-1,bt=st-1,Bt=0,Pt=1,ie=1,Ot=1<<S;for(W=0,F=1,H=2;F<=S;++F,H<<=1){if(Pt+=ie<<=1,0>(ie-=X[F]))return 0;for(;0<X[F];--X[F])(I=new q).g=F,I.value=J[W++],N(_,K+Bt,H,Ot,I),Bt=et(Bt,F)}for(F=S+1,H=2;15>=F;++F,H<<=1){if(Pt+=ie<<=1,0>(ie-=X[F]))return 0;for(;0<X[F];--X[F]){if(I=new q,(Bt&bt)!=wt){for(K+=Ot,ct=1<<(wt=F)-S;15>wt&&!(0>=(ct-=X[wt]));)++wt,ct<<=1;st+=Ot=1<<(ct=wt-S),_[x+(wt=Bt&bt)].g=ct+S,_[x+wt].value=K-x-wt}I.g=F-S,I.value=J[W++],N(_,K+(Bt>>S),H,Ot,I),Bt=et(Bt,F)}}return Pt!=2*ht[15]-1?0:st}(r,s,f,g,v,w)}function q(){this.value=this.g=0}function U(){this.value=this.g=0}function it(){this.G=c(5,q),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(la,U)}function ut(r,s,f,g){n(r!=null),n(s!=null),n(2147483648>g),r.Ca=254,r.I=0,r.b=-8,r.Ka=0,r.oa=s,r.pa=f,r.Jd=s,r.Yc=f+g,r.Zc=4<=g?f+g-4+1:f,rt(r)}function pt(r,s){for(var f=0;0<s--;)f|=dt(r,128)<<s;return f}function nt(r,s){var f=pt(r,s);return at(r)?-f:f}function ft(r,s,f,g){var v,w=0;for(n(r!=null),n(s!=null),n(4294967288>g),r.Sb=g,r.Ra=0,r.u=0,r.h=0,4<g&&(g=4),v=0;v<g;++v)w+=s[f+v]<<8*v;r.Ra=w,r.bb=g,r.oa=s,r.pa=f}function At(r){for(;8<=r.u&&r.bb<r.Sb;)r.Ra>>>=8,r.Ra+=r.oa[r.pa+r.bb]<<Nn-8>>>0,++r.bb,r.u-=8;G(r)&&(r.h=1,r.u=0)}function yt(r,s){if(n(0<=s),!r.h&&s<=Ua){var f=B(r)&kr[s];return r.u+=s,At(r),f}return r.h=1,r.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function T(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(r){return r.Ra>>>(r.u&Nn-1)>>>0}function G(r){return n(r.bb<=r.Sb),r.h||r.bb==r.Sb&&r.u>Nn}function $(r,s){r.u=s,r.h=G(r)}function Q(r){r.u>=En&&(n(r.u>=En),At(r))}function rt(r){n(r!=null&&r.oa!=null),r.pa<r.Zc?(r.I=(r.oa[r.pa++]|r.I<<8)>>>0,r.b+=8):(n(r!=null&&r.oa!=null),r.pa<r.Yc?(r.b+=8,r.I=r.oa[r.pa++]|r.I<<8):r.Ka?r.b=0:(r.I<<=8,r.b+=8,r.Ka=1))}function at(r){return pt(r,1)}function dt(r,s){var f=r.Ca;0>r.b&&rt(r);var g=r.b,v=f*s>>>8,w=(r.I>>>g>v)+0;for(w?(f-=v,r.I-=v+1<<g>>>0):f=v+1,g=f,v=0;256<=g;)v+=8,g>>=8;return g=7^v+ha[g],r.b-=g,r.Ca=(f<<g)-1,w}function xt(r,s,f){r[s+0]=f>>24&255,r[s+1]=f>>16&255,r[s+2]=f>>8&255,r[s+3]=255&f}function St(r,s){return r[s+0]|r[s+1]<<8}function kt(r,s){return St(r,s)|r[s+2]<<16}function zt(r,s){return St(r,s)|St(r,s+2)<<16}function P(r,s){var f=1<<s;return n(r!=null),n(0<s),r.X=o(f),r.X==null?0:(r.Mb=32-s,r.Xa=s,1)}function Lt(r,s){n(r!=null),n(s!=null),n(r.Xa==s.Xa),i(s.X,0,r.X,0,1<<s.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(r,s,f,g){n(f!=null),n(g!=null);var v=f[0],w=g[0];return v==0&&(v=(r*w+s/2)/s),w==0&&(w=(s*v+r/2)/r),0>=v||0>=w?0:(f[0]=v,g[0]=w,1)}function vt(r,s){return r+(1<<s)-1>>>s}function Wt(r,s){return((4278255360&r)+(4278255360&s)>>>0&4278255360)+((16711935&r)+(16711935&s)>>>0&16711935)>>>0}function It(r,s){z[s]=function(f,g,v,w,_,x,S){var I;for(I=0;I<_;++I){var H=z[r](x[S+I-1],v,w+I);x[S+I]=Wt(f[g+I],H)}}}function Ut(){this.ud=this.hd=this.jd=0}function Dt(r,s){return((4278124286&(r^s))>>>1)+(r&s)>>>0}function we(r){return 0<=r&&256>r?r:0>r?0:255<r?255:void 0}function he(r,s){return we(r+(r-s+.5>>1))}function Jt(r,s,f){return Math.abs(s-f)-Math.abs(r-f)}function ue(r,s,f,g,v,w,_){for(g=w[_-1],f=0;f<v;++f)w[_+f]=g=Wt(r[s+f],g)}function ce(r,s,f,g,v){var w;for(w=0;w<f;++w){var _=r[s+w],x=_>>8&255,S=16711935&(S=(S=16711935&_)+((x<<16)+x));g[v+w]=(4278255360&_)+S>>>0}}function Tt(r,s){s.jd=255&r,s.hd=r>>8&255,s.ud=r>>16&255}function ne(r,s,f,g,v,w){var _;for(_=0;_<g;++_){var x=s[f+_],S=x>>>8,I=x,H=255&(H=(H=x>>>16)+((r.jd<<24>>24)*(S<<24>>24)>>>5));I=255&(I=(I+=(r.hd<<24>>24)*(S<<24>>24)>>>5)+((r.ud<<24>>24)*(H<<24>>24)>>>5)),v[w+_]=(4278255360&x)+(H<<16)+I}}function Mt(r,s,f,g,v){z[s]=function(w,_,x,S,I,H,J,F,W){for(S=J;S<F;++S)for(J=0;J<W;++J)I[H++]=v(x[g(w[_++])])},z[r]=function(w,_,x,S,I,H,J){var F=8>>w.b,W=w.Ea,K=w.K[0],st=w.w;if(8>F)for(w=(1<<w.b)-1,st=(1<<F)-1;_<x;++_){var X,ht=0;for(X=0;X<W;++X)X&w||(ht=g(S[I++])),H[J++]=v(K[ht&st]),ht>>=F}else z["VP8LMapColor"+f](S,I,K,st,H,J,_,x,W)}}function We(r,s,f,g,v){for(f=s+f;s<f;){var w=r[s++];g[v++]=w>>16&255,g[v++]=w>>8&255,g[v++]=255&w}}function me(r,s,f,g,v){for(f=s+f;s<f;){var w=r[s++];g[v++]=w>>16&255,g[v++]=w>>8&255,g[v++]=255&w,g[v++]=w>>24&255}}function oe(r,s,f,g,v){for(f=s+f;s<f;){var w=(_=r[s++])>>16&240|_>>12&15,_=240&_|_>>28&15;g[v++]=w,g[v++]=_}}function se(r,s,f,g,v){for(f=s+f;s<f;){var w=(_=r[s++])>>16&248|_>>13&7,_=_>>5&224|_>>3&31;g[v++]=w,g[v++]=_}}function Te(r,s,f,g,v){for(f=s+f;s<f;){var w=r[s++];g[v++]=255&w,g[v++]=w>>8&255,g[v++]=w>>16&255}}function qt(r,s,f,g,v,w){if(w==0)for(f=s+f;s<f;)xt(g,((w=r[s++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),v+=32;else i(g,v,r,s,f)}function Ee(r,s){z[s][0]=z[r+"0"],z[s][1]=z[r+"1"],z[s][2]=z[r+"2"],z[s][3]=z[r+"3"],z[s][4]=z[r+"4"],z[s][5]=z[r+"5"],z[s][6]=z[r+"6"],z[s][7]=z[r+"7"],z[s][8]=z[r+"8"],z[s][9]=z[r+"9"],z[s][10]=z[r+"10"],z[s][11]=z[r+"11"],z[s][12]=z[r+"12"],z[s][13]=z[r+"13"],z[s][14]=z[r+"0"],z[s][15]=z[r+"0"]}function Zt(r){return r==zs||r==Hs||r==Wo||r==Ws}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Re(){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 le(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Re,this.sd=null}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function _e(){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 pr(r){return alert("todo:WebPSamplerProcessPlane"),r.T}function pn(r,s){var f=r.T,g=s.ba.f.RGBA,v=g.eb,w=g.fb+r.ka*g.A,_=Kn[s.ba.S],x=r.y,S=r.O,I=r.f,H=r.N,J=r.ea,F=r.W,W=s.cc,K=s.dc,st=s.Mc,X=s.Nc,ht=r.ka,ct=r.ka+r.T,wt=r.U,bt=wt+1>>1;for(ht==0?_(x,S,null,null,I,H,J,F,I,H,J,F,v,w,null,null,wt):(_(s.ec,s.fc,x,S,W,K,st,X,I,H,J,F,v,w-g.A,v,w,wt),++f);ht+2<ct;ht+=2)W=I,K=H,st=J,X=F,H+=r.Rc,F+=r.Rc,w+=2*g.A,_(x,(S+=2*r.fa)-r.fa,x,S,W,K,st,X,I,H,J,F,v,w-g.A,v,w,wt);return S+=r.fa,r.j+ct<r.o?(i(s.ec,s.fc,x,S,wt),i(s.cc,s.dc,I,H,bt),i(s.Mc,s.Nc,J,F,bt),f--):1&ct||_(x,S,null,null,I,H,J,F,I,H,J,F,v,w+g.A,null,null,wt),f}function Si(r,s,f){var g=r.F,v=[r.J];if(g!=null){var w=r.U,_=s.ba.S,x=_==Ho||_==Wo;s=s.ba.f.RGBA;var S=[0],I=r.ka;S[0]=r.T,r.Kb&&(I==0?--S[0]:(--I,v[0]-=r.width),r.j+r.ka+r.T==r.o&&(S[0]=r.o-r.j-I));var H=s.eb;I=s.fb+I*s.A,r=ih(g,v[0],r.width,w,S,H,I+(x?0:3),s.A),n(f==S),r&&Zt(_)&&Ga(H,I,x,w,S,s.A)}return 0}function hi(r){var s=r.ma,f=s.ba.S,g=11>f,v=f==Uo||f==zo||f==Ho||f==Us||f==12||Zt(f);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!Yn(s.Oa,r,v?11:12))return 0;if(v&&Zt(f)&&ji(),r.da)alert("todo:use_scaling");else{if(g){if(s.Ib=pr,r.Kb){if(f=r.U+1>>1,s.memory=o(r.U+2*f),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+r.U,s.Mc=s.cc,s.Nc=s.dc+f,s.Ib=pn,ji()}}else alert("todo:EmitYUV");v&&(s.Jb=Si,g&&De())}if(g&&!_h){for(r=0;256>r;++r)wf[r]=89858*(r-128)+Vo>>Go,xf[r]=-22014*(r-128)+Vo,yf[r]=-45773*(r-128),_f[r]=113618*(r-128)+Vo>>Go;for(r=Za;r<Zs;++r)s=76283*(r-16)+Vo>>Go,Af[r-Za]=fi(s,255),Nf[r-Za]=fi(s+8>>4,15);_h=1}return 1}function Vt(r){var s=r.ma,f=r.U,g=r.T;return n(!(1&r.ka)),0>=f||0>=g?0:(f=s.Ib(r,s),s.Jb!=null&&s.Jb(r,s,f),s.Dc+=f,1)}function ki(r){r.ma.memory=null}function Pi(r,s,f,g){return yt(r,8)!=47?0:(s[0]=yt(r,14)+1,f[0]=yt(r,14)+1,g[0]=yt(r,1),yt(r,3)!=0?0:!r.h)}function Wn(r,s){if(4>r)return r+1;var f=r-2>>1;return(2+(1&r)<<f)+yt(s,f)+1}function Gn(r,s){return 120<s?s-120:1<=(f=((f=af[s-1])>>4)*r+(8-(15&f)))?f:1;var f}function qe(r,s,f){var g=B(f),v=r[s+=255&g].g-8;return 0<v&&($(f,f.u+8),g=B(f),s+=r[s].value,s+=g&(1<<v)-1),$(f,f.u+r[s].g),r[s].value}function on(r,s,f){return f.g+=r.g,f.value+=r.value<<s>>>0,n(8>=f.g),r.g}function ln(r,s,f){var g=r.xc;return n((s=g==0?0:r.vc[r.md*(f>>g)+(s>>g)])<r.Wb),r.Ya[s]}function gr(r,s,f,g){var v=r.ab,w=r.c*s,_=r.C;s=_+s;var x=f,S=g;for(g=r.Ta,f=r.Ua;0<v--;){var I=r.gc[v],H=_,J=s,F=x,W=S,K=(S=g,x=f,I.Ea);switch(n(H<J),n(J<=I.nc),I.hc){case 2:ca(F,W,(J-H)*K,S,x);break;case 0:var st=H,X=J,ht=S,ct=x,wt=(Ot=I).Ea;st==0&&(Yi(F,W,null,null,1,ht,ct),ue(F,W+1,0,0,wt-1,ht,ct+1),W+=wt,ct+=wt,++st);for(var bt=1<<Ot.b,Bt=bt-1,Pt=vt(wt,Ot.b),ie=Ot.K,Ot=Ot.w+(st>>Ot.b)*Pt;st<X;){var fe=ie,en=Ot,re=1;for($i(F,W,ht,ct-wt,1,ht,ct);re<wt;){var jt=(re&~Bt)+bt;jt>wt&&(jt=wt),(0,ni[fe[en++]>>8&15])(F,W+ +re,ht,ct+re-wt,jt-re,ht,ct+re),re=jt}W+=wt,ct+=wt,++st&Bt||(Ot+=Pt)}J!=I.nc&&i(S,x-K,S,x+(J-H-1)*K,K);break;case 1:for(K=F,X=W,wt=(F=I.Ea)-(ct=F&~(ht=(W=1<<I.b)-1)),st=vt(F,I.b),bt=I.K,I=I.w+(H>>I.b)*st;H<J;){for(Bt=bt,Pt=I,ie=new Ut,Ot=X+ct,fe=X+F;X<Ot;)Tt(Bt[Pt++],ie),Er(ie,K,X,W,S,x),X+=W,x+=W;X<fe&&(Tt(Bt[Pt++],ie),Er(ie,K,X,wt,S,x),X+=wt,x+=wt),++H&ht||(I+=st)}break;case 3:if(F==S&&W==x&&0<I.b){for(X=S,F=K=x+(J-H)*K-(ct=(J-H)*vt(I.Ea,I.b)),W=S,ht=x,st=[],ct=(wt=ct)-1;0<=ct;--ct)st[ct]=W[ht+ct];for(ct=wt-1;0<=ct;--ct)X[F+ct]=st[ct];Pr(I,H,J,S,K,S,x)}else Pr(I,H,J,F,W,S,x)}x=g,S=f}S!=f&&i(g,f,x,S,w)}function Hi(r,s){var f=r.V,g=r.Ba+r.c*r.C,v=s-r.C;if(n(s<=r.l.o),n(16>=v),0<v){var w=r.l,_=r.Ta,x=r.Ua,S=w.width;if(gr(r,v,f,g),v=x=[x],n((f=r.C)<(g=s)),n(w.v<w.va),g>w.o&&(g=w.o),f<w.j){var I=w.j-f;f=w.j,v[0]+=I*S}if(f>=g?f=0:(v[0]+=4*w.v,w.ka=f-w.j,w.U=w.va-w.v,w.T=g-f,f=1),f){if(x=x[0],11>(f=r.ca).S){var H=f.f.RGBA,J=(g=f.S,v=w.U,w=w.T,I=H.eb,H.A),F=w;for(H=H.fb+r.Ma*H.A;0<F--;){var W=_,K=x,st=v,X=I,ht=H;switch(g){case qo:za(W,K,st,X,ht);break;case Uo:Ha(W,K,st,X,ht);break;case zs:Ha(W,K,st,X,ht),Ga(X,ht,0,st,1,0);break;case ch:Fr(W,K,st,X,ht);break;case zo:qt(W,K,st,X,ht,1);break;case Hs:qt(W,K,st,X,ht,1),Ga(X,ht,0,st,1,0);break;case Ho:qt(W,K,st,X,ht,0);break;case Wo:qt(W,K,st,X,ht,0),Ga(X,ht,1,st,1,0);break;case Us:ua(W,K,st,X,ht);break;case Ws:ua(W,K,st,X,ht),nh(X,ht,st,1,0);break;case uh:Ir(W,K,st,X,ht);break;default:n(0)}x+=S,H+=J}r.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");n(r.Ma<=f.height)}}r.C=s,n(r.C<=r.i)}function Qn(r){var s;if(0<r.ua)return 0;for(s=0;s<r.Wb;++s){var f=r.Ya[s].G,g=r.Ya[s].H;if(0<f[1][g[1]+0].g||0<f[2][g[2]+0].g||0<f[3][g[3]+0].g)return 0}return 1}function ci(r,s,f,g,v,w){if(r.Z!=0){var _=r.qd,x=r.rd;for(n(Qi[r.Z]!=null);s<f;++s)Qi[r.Z](_,x,g,v,g,v,w),_=g,x=v,v+=w;r.qd=_,r.rd=x}}function ti(r,s){var f=r.l.ma,g=f.Z==0||f.Z==1?r.l.j:r.C;if(g=r.C<g?g:r.C,n(s<=r.l.o),s>g){var v=r.l.width,w=f.ca,_=f.tb+v*g,x=r.V,S=r.Ba+r.c*g,I=r.gc;n(r.ab==1),n(I[0].hc==3),Ds(I[0],g,s,x,S,w,_),ci(f,g,s,w,_,v)}r.C=r.Ma=s}function ei(r,s,f,g,v,w,_){var x=r.$/g,S=r.$%g,I=r.m,H=r.s,J=f+r.$,F=J;v=f+g*v;var W=f+g*w,K=280+H.ua,st=r.Pb?x:16777216,X=0<H.ua?H.Wa:null,ht=H.wc,ct=J<W?ln(H,S,x):null;n(r.C<w),n(W<=v);var wt=!1;t:for(;;){for(;wt||J<W;){var bt=0;if(x>=st){var Bt=J-f;n((st=r).Pb),st.wd=st.m,st.xd=Bt,0<st.s.ua&&Lt(st.s.Wa,st.s.vb),st=x+sf}if(S&ht||(ct=ln(H,S,x)),n(ct!=null),ct.Qb&&(s[J]=ct.qb,wt=!0),!wt)if(Q(I),ct.jc){bt=I,Bt=s;var Pt=J,ie=ct.pd[B(bt)&la-1];n(ct.jc),256>ie.g?($(bt,bt.u+ie.g),Bt[Pt]=ie.value,bt=0):($(bt,bt.u+ie.g-256),n(256<=ie.value),bt=ie.value),bt==0&&(wt=!0)}else bt=qe(ct.G[0],ct.H[0],I);if(I.h)break;if(wt||256>bt){if(!wt)if(ct.nd)s[J]=(ct.qb|bt<<8)>>>0;else{if(Q(I),wt=qe(ct.G[1],ct.H[1],I),Q(I),Bt=qe(ct.G[2],ct.H[2],I),Pt=qe(ct.G[3],ct.H[3],I),I.h)break;s[J]=(Pt<<24|wt<<16|bt<<8|Bt)>>>0}if(wt=!1,++J,++S>=g&&(S=0,++x,_!=null&&x<=w&&!(x%16)&&_(r,x),X!=null))for(;F<J;)bt=s[F++],X.X[(506832829*bt&4294967295)>>>X.Mb]=bt}else if(280>bt){if(bt=Wn(bt-256,I),Bt=qe(ct.G[4],ct.H[4],I),Q(I),Bt=Gn(g,Bt=Wn(Bt,I)),I.h)break;if(J-f<Bt||v-J<bt)break t;for(Pt=0;Pt<bt;++Pt)s[J+Pt]=s[J+Pt-Bt];for(J+=bt,S+=bt;S>=g;)S-=g,++x,_!=null&&x<=w&&!(x%16)&&_(r,x);if(n(J<=v),S&ht&&(ct=ln(H,S,x)),X!=null)for(;F<J;)bt=s[F++],X.X[(506832829*bt&4294967295)>>>X.Mb]=bt}else{if(!(bt<K))break t;for(wt=bt-280,n(X!=null);F<J;)bt=s[F++],X.X[(506832829*bt&4294967295)>>>X.Mb]=bt;bt=J,n(!(wt>>>(Bt=X).Xa)),s[bt]=Bt.X[wt],wt=!0}wt||n(I.h==G(I))}if(r.Pb&&I.h&&J<v)n(r.m.h),r.a=5,r.m=r.wd,r.$=r.xd,0<r.s.ua&&Lt(r.s.vb,r.s.Wa);else{if(I.h)break t;_!=null&&_(r,x>w?w:x),r.a=0,r.$=J-f}return 1}return r.a=3,0}function Vn(r){n(r!=null),r.vc=null,r.yc=null,r.Ya=null;var s=r.Wa;s!=null&&(s.X=null),r.vb=null,n(r!=null)}function mr(){var r=new Ct;return r==null?null:(r.a=0,r.xb=ph,Ee("Predictor","VP8LPredictors"),Ee("Predictor","VP8LPredictors_C"),Ee("PredictorAdd","VP8LPredictorsAdd"),Ee("PredictorAdd","VP8LPredictorsAdd_C"),ca=ce,Er=ne,za=We,Ha=me,ua=oe,Ir=se,Fr=Te,z.VP8LMapColor32b=Qe,z.VP8LMapColor8b=bi,r)}function ui(r,s,f,g,v){var w=1,_=[r],x=[s],S=g.m,I=g.s,H=null,J=0;t:for(;;){if(f)for(;w&&yt(S,1);){var F=_,W=x,K=g,st=1,X=K.m,ht=K.gc[K.ab],ct=yt(X,2);if(K.Oc&1<<ct)w=0;else{switch(K.Oc|=1<<ct,ht.hc=ct,ht.Ea=F[0],ht.nc=W[0],ht.K=[null],++K.ab,n(4>=K.ab),ct){case 0:case 1:ht.b=yt(X,3)+2,st=ui(vt(ht.Ea,ht.b),vt(ht.nc,ht.b),0,K,ht.K),ht.K=ht.K[0];break;case 3:var wt,bt=yt(X,8)+1,Bt=16<bt?0:4<bt?1:2<bt?2:3;if(F[0]=vt(ht.Ea,Bt),ht.b=Bt,wt=st=ui(bt,1,0,K,ht.K)){var Pt,ie=bt,Ot=ht,fe=1<<(8>>Ot.b),en=o(fe);if(en==null)wt=0;else{var re=Ot.K[0],jt=Ot.w;for(en[0]=Ot.K[0][0],Pt=1;Pt<1*ie;++Pt)en[Pt]=Wt(re[jt+Pt],en[Pt-1]);for(;Pt<4*fe;++Pt)en[Pt]=0;Ot.K[0]=null,Ot.K[0]=en,wt=1}}st=wt;break;case 2:break;default:n(0)}w=st}}if(_=_[0],x=x[0],w&&yt(S,1)&&!(w=1<=(J=yt(S,4))&&11>=J)){g.a=3;break t}var Nt;if(Nt=w)e:{var Ve,ee,ge,je=g,cn=_,Ln=x,Ue=J,vn=f,Sn=je.m,nn=je.s,be=[null],ye=1,ze=0,xe=of[Ue];n:for(;;){if(vn&&yt(Sn,1)){var un=yt(Sn,3)+2,ri=vt(cn,un),Ze=vt(Ln,un),In=ri*Ze;if(!ui(ri,Ze,0,je,be))break n;for(be=be[0],nn.xc=un,Ve=0;Ve<In;++Ve){var ke=be[Ve]>>8&65535;be[Ve]=ke,ke>=ye&&(ye=ke+1)}}if(Sn.h)break n;for(ee=0;5>ee;++ee){var rn=fh[ee];!ee&&0<Ue&&(rn+=1<<Ue),ze<rn&&(ze=rn)}var Rn=c(ye*xe,q),kn=ye,Bn=c(kn,it);if(Bn==null)var Mn=null;else n(65536>=kn),Mn=Bn;var Fn=o(ze);if(Mn==null||Fn==null||Rn==null){je.a=1;break n}var Dn=Rn;for(Ve=ge=0;Ve<ye;++Ve){var Ce=Mn[Ve],qn=Ce.G,ai=Ce.H,Cr=0,Mi=1,fn=0;for(ee=0;5>ee;++ee){rn=fh[ee],qn[ee]=Dn,ai[ee]=ge,!ee&&0<Ue&&(rn+=1<<Ue);r:{var Yo,Ys=rn,$o=je,Ya=Fn,kf=Dn,Pf=ge,$s=0,tr=$o.m,Ef=yt(tr,1);if(a(Ya,0,0,Ys),Ef){var If=yt(tr,1)+1,Ff=yt(tr,1),Ah=yt(tr,Ff==0?1:8);Ya[Ah]=1,If==2&&(Ya[Ah=yt(tr,8)]=1);var Ko=1}else{var Nh=o(19),Lh=yt(tr,4)+4;if(19<Lh){$o.a=3;var Xo=0;break r}for(Yo=0;Yo<Lh;++Yo)Nh[rf[Yo]]=yt(tr,3);var Ks=void 0,$a=void 0,Sh=$o,Cf=Nh,Jo=Ys,kh=Ya,Xs=0,er=Sh.m,Ph=8,Eh=c(128,q);i:for(;C(Eh,0,7,Cf,19);){if(yt(er,1)){var Of=2+2*yt(er,3);if((Ks=2+yt(er,Of))>Jo)break i}else Ks=Jo;for($a=0;$a<Jo&&Ks--;){Q(er);var Ih=Eh[0+(127&B(er))];$(er,er.u+Ih.g);var pa=Ih.value;if(16>pa)kh[$a++]=pa,pa!=0&&(Ph=pa);else{var jf=pa==16,Fh=pa-16,Tf=ef[Fh],Ch=yt(er,tf[Fh])+Tf;if($a+Ch>Jo)break i;for(var Rf=jf?Ph:0;0<Ch--;)kh[$a++]=Rf}}Xs=1;break i}Xs||(Sh.a=3),Ko=Xs}(Ko=Ko&&!tr.h)&&($s=C(kf,Pf,8,Ya,Ys)),Ko&&$s!=0?Xo=$s:($o.a=3,Xo=0)}if(Xo==0)break n;if(Mi&&nf[ee]==1&&(Mi=Dn[ge].g==0),Cr+=Dn[ge].g,ge+=Xo,3>=ee){var Ka,Js=Fn[0];for(Ka=1;Ka<rn;++Ka)Fn[Ka]>Js&&(Js=Fn[Ka]);fn+=Js}}if(Ce.nd=Mi,Ce.Qb=0,Mi&&(Ce.qb=(qn[3][ai[3]+0].value<<24|qn[1][ai[1]+0].value<<16|qn[2][ai[2]+0].value)>>>0,Cr==0&&256>qn[0][ai[0]+0].value&&(Ce.Qb=1,Ce.qb+=qn[0][ai[0]+0].value<<8)),Ce.jc=!Ce.Qb&&6>fn,Ce.jc){var Qo,Di=Ce;for(Qo=0;Qo<la;++Qo){var nr=Qo,ir=Di.pd[nr],ts=Di.G[0][Di.H[0]+nr];256<=ts.value?(ir.g=ts.g+256,ir.value=ts.value):(ir.g=0,ir.value=0,nr>>=on(ts,8,ir),nr>>=on(Di.G[1][Di.H[1]+nr],16,ir),nr>>=on(Di.G[2][Di.H[2]+nr],0,ir),on(Di.G[3][Di.H[3]+nr],24,ir))}}}nn.vc=be,nn.Wb=ye,nn.Ya=Mn,nn.yc=Rn,Nt=1;break e}Nt=0}if(!(w=Nt)){g.a=3;break t}if(0<J){if(I.ua=1<<J,!P(I.Wa,J)){g.a=1,w=0;break t}}else I.ua=0;var Qs=g,Oh=_,Bf=x,tl=Qs.s,el=tl.xc;if(Qs.c=Oh,Qs.i=Bf,tl.md=vt(Oh,el),tl.wc=el==0?-1:(1<<el)-1,f){g.xb=pf;break t}if((H=o(_*x))==null){g.a=1,w=0;break t}w=(w=ei(g,H,0,_,x,x,null))&&!S.h;break t}return w?(v!=null?v[0]=H:(n(H==null),n(f)),g.$=0,f||Vn(I)):Vn(I),w}function br(r,s){var f=r.c*r.i,g=f+s+16*s;return n(r.c<=s),r.V=o(g),r.V==null?(r.Ta=null,r.Ua=0,r.a=1,0):(r.Ta=r.V,r.Ua=r.Ba+f+s,1)}function Zr(r,s){var f=r.C,g=s-f,v=r.V,w=r.Ba+r.c*f;for(n(s<=r.l.o);0<g;){var _=16<g?16:g,x=r.l.ma,S=r.l.width,I=S*_,H=x.ca,J=x.tb+S*f,F=r.Ta,W=r.Ua;gr(r,_,v,w),rh(F,W,H,J,I),ci(x,f,f+_,H,J,S),g-=_,v+=_*r.c,f+=_}n(f==s),r.C=r.Ma=s}function Yr(){this.ub=this.yd=this.td=this.Rb=0}function $r(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ys(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Pa(){this.Yb=function(){var r=[];return function s(f,g,v){for(var w=v[g],_=0;_<w&&(f.push(v.length>g+1?[]:0),!(v.length<g+1));_++)s(f[_],g+1,v)}(r,0,[3,11]),r}()}function yo(){this.jb=o(3),this.Wc=l([4,8],Pa),this.Xc=l([4,17],Pa)}function xo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Zn(){this.ld=this.La=this.dd=this.tc=0}function Ea(){this.Na=this.la=0}function Ao(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ia(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function No(){this.uc=this.M=this.Nb=0,this.wa=Array(new Zn),this.Y=0,this.ya=Array(new Ia),this.aa=0,this.l=new Kr}function Lo(){this.y=o(16),this.f=o(8),this.ea=o(8)}function So(){this.cb=this.a=0,this.sc="",this.m=new y,this.Od=new Yr,this.Kc=new $r,this.ed=new xo,this.Qa=new ys,this.Ic=this.$c=this.Aa=0,this.D=new No,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=c(8,y),this.ia=0,this.pb=c(4,Ao),this.Pa=new yo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Lo),this.Hd=0,this.rb=Array(new Ea),this.sb=0,this.wa=Array(new Zn),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 Ia),this.L=this.aa=0,this.gd=l([4,2],Zn),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 fi(r,s){return 0>r?0:r>s?s:r}function Kr(){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 xs(){var r=new So;return r!=null&&(r.a=0,r.sc="OK",r.cb=0,r.Xb=0,Va||(Va=Xr)),r}function Xe(r,s,f){return r.a==0&&(r.a=s,r.sc=f,r.cb=0),0}function ko(r,s,f){return 3<=f&&r[s+0]==157&&r[s+1]==1&&r[s+2]==42}function di(r,s){if(r==null)return 0;if(r.a=0,r.sc="OK",s==null)return Xe(r,2,"null VP8Io passed to VP8GetHeaders()");var f=s.data,g=s.w,v=s.ha;if(4>v)return Xe(r,7,"Truncated header.");var w=f[g+0]|f[g+1]<<8|f[g+2]<<16,_=r.Od;if(_.Rb=!(1&w),_.td=w>>1&7,_.yd=w>>4&1,_.ub=w>>5,3<_.td)return Xe(r,3,"Incorrect keyframe parameters.");if(!_.yd)return Xe(r,4,"Frame not displayable.");g+=3,v-=3;var x=r.Kc;if(_.Rb){if(7>v)return Xe(r,7,"cannot parse picture header");if(!ko(f,g,v))return Xe(r,3,"Bad code word");x.c=16383&(f[g+4]<<8|f[g+3]),x.Td=f[g+4]>>6,x.i=16383&(f[g+6]<<8|f[g+5]),x.Ud=f[g+6]>>6,g+=7,v-=7,r.za=x.c+15>>4,r.Ub=x.i+15>>4,s.width=x.c,s.height=x.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,a((w=r.Pa).jb,0,255,w.jb.length),n((w=r.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,a(w.Zb,0,0,w.Zb.length),a(w.Lb,0,0,w.Lb)}if(_.ub>v)return Xe(r,7,"bad partition length");ut(w=r.m,f,g,_.ub),g+=_.ub,v-=_.ub,_.Rb&&(x.Ld=at(w),x.Kd=at(w)),x=r.Qa;var S,I=r.Pa;if(n(w!=null),n(x!=null),x.Cb=at(w),x.Cb){if(x.Bb=at(w),at(w)){for(x.Fb=at(w),S=0;4>S;++S)x.Zb[S]=at(w)?nt(w,7):0;for(S=0;4>S;++S)x.Lb[S]=at(w)?nt(w,6):0}if(x.Bb)for(S=0;3>S;++S)I.jb[S]=at(w)?pt(w,8):255}else x.Bb=0;if(w.Ka)return Xe(r,3,"cannot parse segment header");if((x=r.ed).zd=at(w),x.Tb=pt(w,6),x.wb=pt(w,3),x.Pc=at(w),x.Pc&&at(w)){for(I=0;4>I;++I)at(w)&&(x.vd[I]=nt(w,6));for(I=0;4>I;++I)at(w)&&(x.od[I]=nt(w,6))}if(r.L=x.Tb==0?0:x.zd?1:2,w.Ka)return Xe(r,3,"cannot parse filter header");var H=v;if(v=S=g,g=S+H,x=H,r.Xb=(1<<pt(r.m,2))-1,H<3*(I=r.Xb))f=7;else{for(S+=3*I,x-=3*I,H=0;H<I;++H){var J=f[v+0]|f[v+1]<<8|f[v+2]<<16;J>x&&(J=x),ut(r.Jc[+H],f,S,J),S+=J,x-=J,v+=3}ut(r.Jc[+I],f,S,x),f=S<g?0:5}if(f!=0)return Xe(r,f,"cannot parse partitions");for(f=pt(S=r.m,7),v=at(S)?nt(S,4):0,g=at(S)?nt(S,4):0,x=at(S)?nt(S,4):0,I=at(S)?nt(S,4):0,S=at(S)?nt(S,4):0,H=r.Qa,J=0;4>J;++J){if(H.Cb){var F=H.Zb[J];H.Fb||(F+=f)}else{if(0<J){r.pb[J]=r.pb[0];continue}F=f}var W=r.pb[J];W.Sc[0]=Gs[fi(F+v,127)],W.Sc[1]=Vs[fi(F+0,127)],W.Eb[0]=2*Gs[fi(F+g,127)],W.Eb[1]=101581*Vs[fi(F+x,127)]>>16,8>W.Eb[1]&&(W.Eb[1]=8),W.Qc[0]=Gs[fi(F+I,117)],W.Qc[1]=Vs[fi(F+S,127)],W.lc=F+S}if(!_.Rb)return Xe(r,4,"Not a key frame.");for(at(w),_=r.Pa,f=0;4>f;++f){for(v=0;8>v;++v)for(g=0;3>g;++g)for(x=0;11>x;++x)I=dt(w,ff[f][v][g][x])?pt(w,8):cf[f][v][g][x],_.Wc[f][v].Yb[g][x]=I;for(v=0;17>v;++v)_.Xc[f][v]=_.Wc[f][df[v]]}return r.kc=at(w),r.kc&&(r.Bd=pt(w,8)),r.cb=1}function Xr(r,s,f,g,v,w,_){var x=s[v].Yb[f];for(f=0;16>v;++v){if(!dt(r,x[f+0]))return v;for(;!dt(r,x[f+1]);)if(x=s[++v].Yb[0],f=0,v==16)return 16;var S=s[v+1].Yb;if(dt(r,x[f+2])){var I=r,H=0;if(dt(I,(F=x)[(J=f)+3]))if(dt(I,F[J+6])){for(x=0,J=2*(H=dt(I,F[J+8]))+(F=dt(I,F[J+9+H])),H=0,F=lf[J];F[x];++x)H+=H+dt(I,F[x]);H+=3+(8<<J)}else dt(I,F[J+7])?(H=7+2*dt(I,165),H+=dt(I,145)):H=5+dt(I,159);else H=dt(I,F[J+4])?3+dt(I,F[J+5]):2;x=S[2]}else H=1,x=S[1];S=_+hf[v],0>(I=r).b&&rt(I);var J,F=I.b,W=(J=I.Ca>>1)-(I.I>>F)>>31;--I.b,I.Ca+=W,I.Ca|=1,I.I-=(J+1&W)<<F,w[S]=((H^W)-W)*g[(0<v)+0]}return 16}function Fa(r){var s=r.rb[r.sb-1];s.la=0,s.Na=0,a(r.zc,0,0,r.zc.length),r.ja=0}function jn(r,s,f,g,v){v=r[s+f+32*g]+(v>>3),r[s+f+32*g]=-256&v?0>v?0:255:v}function Jr(r,s,f,g,v,w){jn(r,s,0,f,g+v),jn(r,s,1,f,g+w),jn(r,s,2,f,g-w),jn(r,s,3,f,g-v)}function Ei(r){return(20091*r>>16)+r}function hn(r,s,f,g){var v,w=0,_=o(16);for(v=0;4>v;++v){var x=r[s+0]+r[s+8],S=r[s+0]-r[s+8],I=(35468*r[s+4]>>16)-Ei(r[s+12]),H=Ei(r[s+4])+(35468*r[s+12]>>16);_[w+0]=x+H,_[w+1]=S+I,_[w+2]=S-I,_[w+3]=x-H,w+=4,s++}for(v=w=0;4>v;++v)x=(r=_[w+0]+4)+_[w+8],S=r-_[w+8],I=(35468*_[w+4]>>16)-Ei(_[w+12]),jn(f,g,0,0,x+(H=Ei(_[w+4])+(35468*_[w+12]>>16))),jn(f,g,1,0,S+I),jn(f,g,2,0,S-I),jn(f,g,3,0,x-H),w++,g+=32}function Po(r,s,f,g){var v=r[s+0]+4,w=35468*r[s+4]>>16,_=Ei(r[s+4]),x=35468*r[s+1]>>16;Jr(f,g,0,v+_,r=Ei(r[s+1]),x),Jr(f,g,1,v+w,r,x),Jr(f,g,2,v-w,r,x),Jr(f,g,3,v-_,r,x)}function As(r,s,f,g,v){hn(r,s,f,g),v&&hn(r,s+16,f,g+4)}function Ns(r,s,f,g){Ti(r,s+0,f,g,1),Ti(r,s+32,f,g+128,1)}function Ls(r,s,f,g){var v;for(r=r[s+0]+4,v=0;4>v;++v)for(s=0;4>s;++s)jn(f,g,s,v,r)}function pi(r,s,f,g){r[s+0]&&bn(r,s+0,f,g),r[s+16]&&bn(r,s+16,f,g+4),r[s+32]&&bn(r,s+32,f,g+128),r[s+48]&&bn(r,s+48,f,g+128+4)}function Eo(r,s,f,g){var v,w=o(16);for(v=0;4>v;++v){var _=r[s+0+v]+r[s+12+v],x=r[s+4+v]+r[s+8+v],S=r[s+4+v]-r[s+8+v],I=r[s+0+v]-r[s+12+v];w[0+v]=_+x,w[8+v]=_-x,w[4+v]=I+S,w[12+v]=I-S}for(v=0;4>v;++v)_=(r=w[0+4*v]+3)+w[3+4*v],x=w[1+4*v]+w[2+4*v],S=w[1+4*v]-w[2+4*v],I=r-w[3+4*v],f[g+0]=_+x>>3,f[g+16]=I+S>>3,f[g+32]=_-x>>3,f[g+48]=I-S>>3,g+=64}function Qr(r,s,f){var g,v=s-32,w=Tn,_=255-r[v-1];for(g=0;g<f;++g){var x,S=w,I=_+r[s-1];for(x=0;x<f;++x)r[s+x]=S[I+r[v+x]];s+=32}}function ta(r,s){Qr(r,s,4)}function Ca(r,s){Qr(r,s,8)}function Ss(r,s){Qr(r,s,16)}function ks(r,s){var f;for(f=0;16>f;++f)i(r,s+32*f,r,s-32,16)}function Ps(r,s){var f;for(f=16;0<f;--f)a(r,s,r[s-1],16),s+=32}function Wi(r,s,f){var g;for(g=0;16>g;++g)a(s,f+32*g,r,16)}function Io(r,s){var f,g=16;for(f=0;16>f;++f)g+=r[s-1+32*f]+r[s+f-32];Wi(g>>5,r,s)}function Gi(r,s){var f,g=8;for(f=0;16>f;++f)g+=r[s-1+32*f];Wi(g>>4,r,s)}function Es(r,s){var f,g=8;for(f=0;16>f;++f)g+=r[s+f-32];Wi(g>>4,r,s)}function vr(r,s){Wi(128,r,s)}function Yt(r,s,f){return r+2*s+f+2>>2}function Is(r,s){var f,g=s-32;for(g=new Uint8Array([Yt(r[g-1],r[g+0],r[g+1]),Yt(r[g+0],r[g+1],r[g+2]),Yt(r[g+1],r[g+2],r[g+3]),Yt(r[g+2],r[g+3],r[g+4])]),f=0;4>f;++f)i(r,s+32*f,g,0,g.length)}function Fs(r,s){var f=r[s-1],g=r[s-1+32],v=r[s-1+64],w=r[s-1+96];xt(r,s+0,16843009*Yt(r[s-1-32],f,g)),xt(r,s+32,16843009*Yt(f,g,v)),xt(r,s+64,16843009*Yt(g,v,w)),xt(r,s+96,16843009*Yt(v,w,w))}function Cs(r,s){var f,g=4;for(f=0;4>f;++f)g+=r[s+f-32]+r[s-1+32*f];for(g>>=3,f=0;4>f;++f)a(r,s+32*f,g,4)}function Os(r,s){var f=r[s-1+0],g=r[s-1+32],v=r[s-1+64],w=r[s-1-32],_=r[s+0-32],x=r[s+1-32],S=r[s+2-32],I=r[s+3-32];r[s+0+96]=Yt(g,v,r[s-1+96]),r[s+1+96]=r[s+0+64]=Yt(f,g,v),r[s+2+96]=r[s+1+64]=r[s+0+32]=Yt(w,f,g),r[s+3+96]=r[s+2+64]=r[s+1+32]=r[s+0+0]=Yt(_,w,f),r[s+3+64]=r[s+2+32]=r[s+1+0]=Yt(x,_,w),r[s+3+32]=r[s+2+0]=Yt(S,x,_),r[s+3+0]=Yt(I,S,x)}function js(r,s){var f=r[s+1-32],g=r[s+2-32],v=r[s+3-32],w=r[s+4-32],_=r[s+5-32],x=r[s+6-32],S=r[s+7-32];r[s+0+0]=Yt(r[s+0-32],f,g),r[s+1+0]=r[s+0+32]=Yt(f,g,v),r[s+2+0]=r[s+1+32]=r[s+0+64]=Yt(g,v,w),r[s+3+0]=r[s+2+32]=r[s+1+64]=r[s+0+96]=Yt(v,w,_),r[s+3+32]=r[s+2+64]=r[s+1+96]=Yt(w,_,x),r[s+3+64]=r[s+2+96]=Yt(_,x,S),r[s+3+96]=Yt(x,S,S)}function Ii(r,s){var f=r[s-1+0],g=r[s-1+32],v=r[s-1+64],w=r[s-1-32],_=r[s+0-32],x=r[s+1-32],S=r[s+2-32],I=r[s+3-32];r[s+0+0]=r[s+1+64]=w+_+1>>1,r[s+1+0]=r[s+2+64]=_+x+1>>1,r[s+2+0]=r[s+3+64]=x+S+1>>1,r[s+3+0]=S+I+1>>1,r[s+0+96]=Yt(v,g,f),r[s+0+64]=Yt(g,f,w),r[s+0+32]=r[s+1+96]=Yt(f,w,_),r[s+1+32]=r[s+2+96]=Yt(w,_,x),r[s+2+32]=r[s+3+96]=Yt(_,x,S),r[s+3+32]=Yt(x,S,I)}function Fi(r,s){var f=r[s+0-32],g=r[s+1-32],v=r[s+2-32],w=r[s+3-32],_=r[s+4-32],x=r[s+5-32],S=r[s+6-32],I=r[s+7-32];r[s+0+0]=f+g+1>>1,r[s+1+0]=r[s+0+64]=g+v+1>>1,r[s+2+0]=r[s+1+64]=v+w+1>>1,r[s+3+0]=r[s+2+64]=w+_+1>>1,r[s+0+32]=Yt(f,g,v),r[s+1+32]=r[s+0+96]=Yt(g,v,w),r[s+2+32]=r[s+1+96]=Yt(v,w,_),r[s+3+32]=r[s+2+96]=Yt(w,_,x),r[s+3+64]=Yt(_,x,S),r[s+3+96]=Yt(x,S,I)}function Ts(r,s){var f=r[s-1+0],g=r[s-1+32],v=r[s-1+64],w=r[s-1+96];r[s+0+0]=f+g+1>>1,r[s+2+0]=r[s+0+32]=g+v+1>>1,r[s+2+32]=r[s+0+64]=v+w+1>>1,r[s+1+0]=Yt(f,g,v),r[s+3+0]=r[s+1+32]=Yt(g,v,w),r[s+3+32]=r[s+1+64]=Yt(v,w,w),r[s+3+64]=r[s+2+64]=r[s+0+96]=r[s+1+96]=r[s+2+96]=r[s+3+96]=w}function Rs(r,s){var f=r[s-1+0],g=r[s-1+32],v=r[s-1+64],w=r[s-1+96],_=r[s-1-32],x=r[s+0-32],S=r[s+1-32],I=r[s+2-32];r[s+0+0]=r[s+2+32]=f+_+1>>1,r[s+0+32]=r[s+2+64]=g+f+1>>1,r[s+0+64]=r[s+2+96]=v+g+1>>1,r[s+0+96]=w+v+1>>1,r[s+3+0]=Yt(x,S,I),r[s+2+0]=Yt(_,x,S),r[s+1+0]=r[s+3+32]=Yt(f,_,x),r[s+1+32]=r[s+3+64]=Yt(g,f,_),r[s+1+64]=r[s+3+96]=Yt(v,g,f),r[s+1+96]=Yt(w,v,g)}function ea(r,s){var f;for(f=0;8>f;++f)i(r,s+32*f,r,s-32,8)}function Oa(r,s){var f;for(f=0;8>f;++f)a(r,s,r[s-1],8),s+=32}function gi(r,s,f){var g;for(g=0;8>g;++g)a(s,f+32*g,r,8)}function Bs(r,s){var f,g=8;for(f=0;8>f;++f)g+=r[s+f-32]+r[s-1+32*f];gi(g>>4,r,s)}function na(r,s){var f,g=4;for(f=0;8>f;++f)g+=r[s+f-32];gi(g>>3,r,s)}function Ms(r,s){var f,g=4;for(f=0;8>f;++f)g+=r[s-1+32*f];gi(g>>3,r,s)}function ja(r,s){gi(128,r,s)}function Vi(r,s,f){var g=r[s-f],v=r[s+0],w=3*(v-g)+qs[1020+r[s-2*f]-r[s+f]],_=Do[112+(w+4>>3)];r[s-f]=Tn[255+g+Do[112+(w+3>>3)]],r[s+0]=Tn[255+v-_]}function Ta(r,s,f,g){var v=r[s+0],w=r[s+f];return $n[255+r[s-2*f]-r[s-f]]>g||$n[255+w-v]>g}function wr(r,s,f,g){return 4*$n[255+r[s-f]-r[s+0]]+$n[255+r[s-2*f]-r[s+f]]<=g}function Ra(r,s,f,g,v){var w=r[s-3*f],_=r[s-2*f],x=r[s-f],S=r[s+0],I=r[s+f],H=r[s+2*f],J=r[s+3*f];return 4*$n[255+x-S]+$n[255+_-I]>g?0:$n[255+r[s-4*f]-w]<=v&&$n[255+w-_]<=v&&$n[255+_-x]<=v&&$n[255+J-H]<=v&&$n[255+H-I]<=v&&$n[255+I-S]<=v}function ia(r,s,f,g){var v=2*g+1;for(g=0;16>g;++g)wr(r,s+g,f,v)&&Vi(r,s+g,f)}function Ba(r,s,f,g){var v=2*g+1;for(g=0;16>g;++g)wr(r,s+g*f,1,v)&&Vi(r,s+g*f,1)}function ra(r,s,f,g){var v;for(v=3;0<v;--v)ia(r,s+=4*f,f,g)}function Fo(r,s,f,g){var v;for(v=3;0<v;--v)Ba(r,s+=4,f,g)}function Ci(r,s,f,g,v,w,_,x){for(w=2*w+1;0<v--;){if(Ra(r,s,f,w,_))if(Ta(r,s,f,x))Vi(r,s,f);else{var S=r,I=s,H=f,J=S[I-2*H],F=S[I-H],W=S[I+0],K=S[I+H],st=S[I+2*H],X=27*(ct=qs[1020+3*(W-F)+qs[1020+J-K]])+63>>7,ht=18*ct+63>>7,ct=9*ct+63>>7;S[I-3*H]=Tn[255+S[I-3*H]+ct],S[I-2*H]=Tn[255+J+ht],S[I-H]=Tn[255+F+X],S[I+0]=Tn[255+W-X],S[I+H]=Tn[255+K-ht],S[I+2*H]=Tn[255+st-ct]}s+=g}}function Oi(r,s,f,g,v,w,_,x){for(w=2*w+1;0<v--;){if(Ra(r,s,f,w,_))if(Ta(r,s,f,x))Vi(r,s,f);else{var S=r,I=s,H=f,J=S[I-H],F=S[I+0],W=S[I+H],K=Do[112+(4+(st=3*(F-J))>>3)],st=Do[112+(st+3>>3)],X=K+1>>1;S[I-2*H]=Tn[255+S[I-2*H]+X],S[I-H]=Tn[255+J+st],S[I+0]=Tn[255+F-K],S[I+H]=Tn[255+W-X]}s+=g}}function Co(r,s,f,g,v,w){Ci(r,s,f,1,16,g,v,w)}function Oo(r,s,f,g,v,w){Ci(r,s,1,f,16,g,v,w)}function jo(r,s,f,g,v,w){var _;for(_=3;0<_;--_)Oi(r,s+=4*f,f,1,16,g,v,w)}function _r(r,s,f,g,v,w){var _;for(_=3;0<_;--_)Oi(r,s+=4,1,f,16,g,v,w)}function To(r,s,f,g,v,w,_,x){Ci(r,s,v,1,8,w,_,x),Ci(f,g,v,1,8,w,_,x)}function h(r,s,f,g,v,w,_,x){Ci(r,s,1,v,8,w,_,x),Ci(f,g,1,v,8,w,_,x)}function b(r,s,f,g,v,w,_,x){Oi(r,s+4*v,v,1,8,w,_,x),Oi(f,g+4*v,v,1,8,w,_,x)}function E(r,s,f,g,v,w,_,x){Oi(r,s+4,1,v,8,w,_,x),Oi(f,g+4,1,v,8,w,_,x)}function M(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new _e,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function V(){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 ot(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function gt(){this.ua=0,this.Wa=new ae,this.vb=new ae,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new it,this.yc=new q}function Ct(){this.xb=this.a=0,this.l=new Kr,this.ca=new le,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new T,this.Pb=0,this.wd=new T,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new gt,this.ab=0,this.gc=c(4,ot),this.Oc=0}function Ft(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Kr,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Kt(r,s,f,g,v,w,_){for(r=r==null?0:r[s+0],s=0;s<_;++s)v[w+s]=r+f[g+s]&255,r=v[w+s]}function te(r,s,f,g,v,w,_){var x;if(r==null)Kt(null,null,f,g,v,w,_);else for(x=0;x<_;++x)v[w+x]=r[s+x]+f[g+x]&255}function pe(r,s,f,g,v,w,_){if(r==null)Kt(null,null,f,g,v,w,_);else{var x,S=r[s+0],I=S,H=S;for(x=0;x<_;++x)I=H+(S=r[s+x])-I,H=f[g+x]+(-256&I?0>I?0:255:I)&255,I=S,v[w+x]=H}}function Je(r,s,f,g){var v=s.width,w=s.o;if(n(r!=null&&s!=null),0>f||0>=g||f+g>w)return null;if(!r.Cc){if(r.ga==null){var _;if(r.ga=new Ft,(_=r.ga==null)||(_=s.width*s.o,n(r.Gb.length==0),r.Gb=o(_),r.Uc=0,r.Gb==null?_=0:(r.mb=r.Gb,r.nb=r.Uc,r.rc=null,_=1),_=!_),!_){_=r.ga;var x=r.Fa,S=r.P,I=r.qc,H=r.mb,J=r.nb,F=S+1,W=I-1,K=_.l;if(n(x!=null&&H!=null&&s!=null),Qi[0]=null,Qi[1]=Kt,Qi[2]=te,Qi[3]=pe,_.ca=H,_.tb=J,_.c=s.width,_.i=s.height,n(0<_.c&&0<_.i),1>=I)s=0;else if(_.$a=3&x[S+0],_.Z=x[S+0]>>2&3,_.Lc=x[S+0]>>4&3,S=x[S+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||S)s=0;else if(K.put=Vt,K.ac=hi,K.bc=ki,K.ma=_,K.width=s.width,K.height=s.height,K.Da=s.Da,K.v=s.v,K.va=s.va,K.j=s.j,K.o=s.o,_.$a)t:{n(_.$a==1),s=mr();e:for(;;){if(s==null){s=0;break t}if(n(_!=null),_.mc=s,s.c=_.c,s.i=_.i,s.l=_.l,s.l.ma=_,s.l.width=_.c,s.l.height=_.i,s.a=0,ft(s.m,x,F,W),!ui(_.c,_.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&Qn(s.s)?(_.ic=1,x=s.c*s.i,s.Ta=null,s.Ua=0,s.V=o(x),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(_.ic=0,s=br(s,_.c)),!s))break e;s=1;break t}_.mc=null,s=0}else s=W>=_.c*_.i;_=!s}if(_)return null;r.ga.Lc!=1?r.Ga=0:g=w-f}n(r.ga!=null),n(f+g<=w);t:{if(s=(x=r.ga).c,w=x.l.o,x.$a==0){if(F=r.rc,W=r.Vc,K=r.Fa,S=r.P+1+f*s,I=r.mb,H=r.nb+f*s,n(S<=r.P+r.qc),x.Z!=0)for(n(Qi[x.Z]!=null),_=0;_<g;++_)Qi[x.Z](F,W,K,S,I,H,s),F=I,W=H,H+=s,S+=s;else for(_=0;_<g;++_)i(I,H,K,S,s),F=I,W=H,H+=s,S+=s;r.rc=F,r.Vc=W}else{if(n(x.mc!=null),s=f+g,n((_=x.mc)!=null),n(s<=_.i),_.C>=s)s=1;else if(x.ic||De(),x.ic){x=_.V,F=_.Ba,W=_.c;var st=_.i,X=(K=1,S=_.$/W,I=_.$%W,H=_.m,J=_.s,_.$),ht=W*st,ct=W*s,wt=J.wc,bt=X<ct?ln(J,I,S):null;n(X<=ht),n(s<=st),n(Qn(J));e:for(;;){for(;!H.h&&X<ct;){if(I&wt||(bt=ln(J,I,S)),n(bt!=null),Q(H),256>(st=qe(bt.G[0],bt.H[0],H)))x[F+X]=st,++X,++I>=W&&(I=0,++S<=s&&!(S%16)&&ti(_,S));else{if(!(280>st)){K=0;break e}st=Wn(st-256,H);var Bt,Pt=qe(bt.G[4],bt.H[4],H);if(Q(H),!(X>=(Pt=Gn(W,Pt=Wn(Pt,H)))&&ht-X>=st)){K=0;break e}for(Bt=0;Bt<st;++Bt)x[F+X+Bt]=x[F+X+Bt-Pt];for(X+=st,I+=st;I>=W;)I-=W,++S<=s&&!(S%16)&&ti(_,S);X<ct&&I&wt&&(bt=ln(J,I,S))}n(H.h==G(H))}ti(_,S>s?s:S);break e}!K||H.h&&X<ht?(K=0,_.a=H.h?5:3):_.$=X,s=K}else s=ei(_,_.V,_.Ba,_.c,_.i,s,Zr);if(!s){g=0;break t}}f+g>=w&&(r.Cc=1),g=1}if(!g)return null;if(r.Cc&&((g=r.ga)!=null&&(g.mc=null),r.ga=null,0<r.Ga))return alert("todo:WebPDequantizeLevels"),null}return r.nb+f*v}function Se(r,s,f,g,v,w){for(;0<v--;){var _,x=r,S=s+(f?1:0),I=r,H=s+(f?0:3);for(_=0;_<g;++_){var J=I[H+4*_];J!=255&&(J*=32897,x[S+4*_+0]=x[S+4*_+0]*J>>23,x[S+4*_+1]=x[S+4*_+1]*J>>23,x[S+4*_+2]=x[S+4*_+2]*J>>23)}s+=w}}function Le(r,s,f,g,v){for(;0<g--;){var w;for(w=0;w<f;++w){var _=r[s+2*w+0],x=15&(I=r[s+2*w+1]),S=4369*x,I=(240&I|I>>4)*S>>16;r[s+2*w+0]=(240&_|_>>4)*S>>16&240|(15&_|_<<4)*S>>16>>4&15,r[s+2*w+1]=240&I|x}s+=v}}function Oe(r,s,f,g,v,w,_,x){var S,I,H=255;for(I=0;I<v;++I){for(S=0;S<g;++S){var J=r[s+S];w[_+4*S]=J,H&=J}s+=f,_+=x}return H!=255}function Me(r,s,f,g,v){var w;for(w=0;w<v;++w)f[g+w]=r[s+w]>>8}function De(){Ga=Se,nh=Le,ih=Oe,rh=Me}function gn(r,s,f){z[r]=function(g,v,w,_,x,S,I,H,J,F,W,K,st,X,ht,ct,wt){var bt,Bt=wt-1>>1,Pt=x[S+0]|I[H+0]<<16,ie=J[F+0]|W[K+0]<<16;n(g!=null);var Ot=3*Pt+ie+131074>>2;for(s(g[v+0],255&Ot,Ot>>16,st,X),w!=null&&(Ot=3*ie+Pt+131074>>2,s(w[_+0],255&Ot,Ot>>16,ht,ct)),bt=1;bt<=Bt;++bt){var fe=x[S+bt]|I[H+bt]<<16,en=J[F+bt]|W[K+bt]<<16,re=Pt+fe+ie+en+524296,jt=re+2*(fe+ie)>>3;Ot=jt+Pt>>1,Pt=(re=re+2*(Pt+en)>>3)+fe>>1,s(g[v+2*bt-1],255&Ot,Ot>>16,st,X+(2*bt-1)*f),s(g[v+2*bt-0],255&Pt,Pt>>16,st,X+(2*bt-0)*f),w!=null&&(Ot=re+ie>>1,Pt=jt+en>>1,s(w[_+2*bt-1],255&Ot,Ot>>16,ht,ct+(2*bt-1)*f),s(w[_+2*bt+0],255&Pt,Pt>>16,ht,ct+(2*bt+0)*f)),Pt=fe,ie=en}1&wt||(Ot=3*Pt+ie+131074>>2,s(g[v+wt-1],255&Ot,Ot>>16,st,X+(wt-1)*f),w!=null&&(Ot=3*ie+Pt+131074>>2,s(w[_+wt-1],255&Ot,Ot>>16,ht,ct+(wt-1)*f)))}}function ji(){Kn[qo]=gf,Kn[Uo]=gh,Kn[ch]=mf,Kn[zo]=mh,Kn[Ho]=bh,Kn[Us]=vh,Kn[uh]=bf,Kn[zs]=gh,Kn[Hs]=mh,Kn[Wo]=bh,Kn[Ws]=vh}function Ma(r){return r&~vf?0>r?0:255:r>>wh}function yr(r,s){return Ma((19077*r>>8)+(26149*s>>8)-14234)}function xr(r,s,f){return Ma((19077*r>>8)-(6419*s>>8)-(13320*f>>8)+8708)}function Zi(r,s){return Ma((19077*r>>8)+(33050*s>>8)-17685)}function Ar(r,s,f,g,v){g[v+0]=yr(r,f),g[v+1]=xr(r,s,f),g[v+2]=Zi(r,s)}function aa(r,s,f,g,v){g[v+0]=Zi(r,s),g[v+1]=xr(r,s,f),g[v+2]=yr(r,f)}function oa(r,s,f,g,v){var w=xr(r,s,f);s=w<<3&224|Zi(r,s)>>3,g[v+0]=248&yr(r,f)|w>>5,g[v+1]=s}function mn(r,s,f,g,v){var w=240&Zi(r,s)|15;g[v+0]=240&yr(r,f)|xr(r,s,f)>>4,g[v+1]=w}function Nr(r,s,f,g,v){g[v+0]=255,Ar(r,s,f,g,v+1)}function Lr(r,s,f,g,v){aa(r,s,f,g,v),g[v+3]=255}function Da(r,s,f,g,v){Ar(r,s,f,g,v),g[v+3]=255}function mi(r,s,f){z[r]=function(g,v,w,_,x,S,I,H,J){for(var F=H+(-2&J)*f;H!=F;)s(g[v+0],w[_+0],x[S+0],I,H),s(g[v+1],w[_+0],x[S+0],I,H+f),v+=2,++_,++S,H+=2*f;1&J&&s(g[v+0],w[_+0],x[S+0],I,H)}}function An(r,s,f){return f==0?r==0?s==0?6:5:s==0?4:0:f}function Ro(r,s,f,g,v){switch(r>>>30){case 3:Ti(s,f,g,v,0);break;case 2:Xi(s,f,g,v);break;case 1:bn(s,f,g,v)}}function sa(r,s){var f,g,v=s.M,w=s.Nb,_=r.oc,x=r.pc+40,S=r.oc,I=r.pc+584,H=r.oc,J=r.pc+600;for(f=0;16>f;++f)_[x+32*f-1]=129;for(f=0;8>f;++f)S[I+32*f-1]=129,H[J+32*f-1]=129;for(0<v?_[x-1-32]=S[I-1-32]=H[J-1-32]=129:(a(_,x-32-1,127,21),a(S,I-32-1,127,9),a(H,J-32-1,127,9)),g=0;g<r.za;++g){var F=s.ya[s.aa+g];if(0<g){for(f=-1;16>f;++f)i(_,x+32*f-4,_,x+32*f+12,4);for(f=-1;8>f;++f)i(S,I+32*f-4,S,I+32*f+4,4),i(H,J+32*f-4,H,J+32*f+4,4)}var W=r.Gd,K=r.Hd+g,st=F.ad,X=F.Hc;if(0<v&&(i(_,x-32,W[K].y,0,16),i(S,I-32,W[K].f,0,8),i(H,J-32,W[K].ea,0,8)),F.Za){var ht=_,ct=x-32+16;for(0<v&&(g>=r.za-1?a(ht,ct,W[K].y[15],4):i(ht,ct,W[K+1].y,0,4)),f=0;4>f;f++)ht[ct+128+f]=ht[ct+256+f]=ht[ct+384+f]=ht[ct+0+f];for(f=0;16>f;++f,X<<=2)ht=_,ct=x+yh[f],ii[F.Ob[f]](ht,ct),Ro(X,st,16*+f,ht,ct)}else if(ht=An(g,v,F.Ob[0]),Ji[ht](_,x),X!=0)for(f=0;16>f;++f,X<<=2)Ro(X,st,16*+f,_,x+yh[f]);for(f=F.Gc,ht=An(g,v,F.Dd),Bi[ht](S,I),Bi[ht](H,J),X=st,ht=S,ct=I,255&(F=0|f)&&(170&F?fa(X,256,ht,ct):vi(X,256,ht,ct)),F=H,X=J,255&(f>>=8)&&(170&f?fa(st,320,F,X):vi(st,320,F,X)),v<r.Ub-1&&(i(W[K].y,0,_,x+480,16),i(W[K].f,0,S,I+224,8),i(W[K].ea,0,H,J+224,8)),f=8*w*r.B,W=r.sa,K=r.ta+16*g+16*w*r.R,st=r.qa,F=r.ra+8*g+f,X=r.Ha,ht=r.Ia+8*g+f,f=0;16>f;++f)i(W,K+f*r.R,_,x+32*f,16);for(f=0;8>f;++f)i(st,F+f*r.B,S,I+32*f,8),i(X,ht+f*r.B,H,J+32*f,8)}}function Bo(r,s,f,g,v,w,_,x,S){var I=[0],H=[0],J=0,F=S!=null?S.kd:0,W=S??new V;if(r==null||12>f)return 7;W.data=r,W.w=s,W.ha=f,s=[s],f=[f],W.gb=[W.gb];t:{var K=s,st=f,X=W.gb;if(n(r!=null),n(st!=null),n(X!=null),X[0]=0,12<=st[0]&&!e(r,K[0],"RIFF")){if(e(r,K[0]+8,"WEBP")){X=3;break t}var ht=zt(r,K[0]+4);if(12>ht||4294967286<ht){X=3;break t}if(F&&ht>st[0]-8){X=7;break t}X[0]=ht,K[0]+=12,st[0]-=12}X=0}if(X!=0)return X;for(ht=0<W.gb[0],f=f[0];;){t:{var ct=r;st=s,X=f;var wt=I,bt=H,Bt=K=[0];if((Ot=J=[J])[0]=0,8>X[0])X=7;else{if(!e(ct,st[0],"VP8X")){if(zt(ct,st[0]+4)!=10){X=3;break t}if(18>X[0]){X=7;break t}var Pt=zt(ct,st[0]+8),ie=1+kt(ct,st[0]+12);if(2147483648<=ie*(ct=1+kt(ct,st[0]+15))){X=3;break t}Bt!=null&&(Bt[0]=Pt),wt!=null&&(wt[0]=ie),bt!=null&&(bt[0]=ct),st[0]+=18,X[0]-=18,Ot[0]=1}X=0}}if(J=J[0],K=K[0],X!=0)return X;if(st=!!(2&K),!ht&&J)return 3;if(w!=null&&(w[0]=!!(16&K)),_!=null&&(_[0]=st),x!=null&&(x[0]=0),_=I[0],K=H[0],J&&st&&S==null){X=0;break}if(4>f){X=7;break}if(ht&&J||!ht&&!J&&!e(r,s[0],"ALPH")){f=[f],W.na=[W.na],W.P=[W.P],W.Sa=[W.Sa];t:{Pt=r,X=s,ht=f;var Ot=W.gb;wt=W.na,bt=W.P,Bt=W.Sa,ie=22,n(Pt!=null),n(ht!=null),ct=X[0];var fe=ht[0];for(n(wt!=null),n(Bt!=null),wt[0]=null,bt[0]=null,Bt[0]=0;;){if(X[0]=ct,ht[0]=fe,8>fe){X=7;break t}var en=zt(Pt,ct+4);if(4294967286<en){X=3;break t}var re=8+en+1&-2;if(ie+=re,0<Ot&&ie>Ot){X=3;break t}if(!e(Pt,ct,"VP8 ")||!e(Pt,ct,"VP8L")){X=0;break t}if(fe[0]<re){X=7;break t}e(Pt,ct,"ALPH")||(wt[0]=Pt,bt[0]=ct+8,Bt[0]=en),ct+=re,fe-=re}}if(f=f[0],W.na=W.na[0],W.P=W.P[0],W.Sa=W.Sa[0],X!=0)break}f=[f],W.Ja=[W.Ja],W.xa=[W.xa];t:if(Ot=r,X=s,ht=f,wt=W.gb[0],bt=W.Ja,Bt=W.xa,Pt=X[0],ct=!e(Ot,Pt,"VP8 "),ie=!e(Ot,Pt,"VP8L"),n(Ot!=null),n(ht!=null),n(bt!=null),n(Bt!=null),8>ht[0])X=7;else{if(ct||ie){if(Ot=zt(Ot,Pt+4),12<=wt&&Ot>wt-12){X=3;break t}if(F&&Ot>ht[0]-8){X=7;break t}bt[0]=Ot,X[0]+=8,ht[0]-=8,Bt[0]=ie}else Bt[0]=5<=ht[0]&&Ot[Pt+0]==47&&!(Ot[Pt+4]>>5),bt[0]=ht[0];X=0}if(f=f[0],W.Ja=W.Ja[0],W.xa=W.xa[0],s=s[0],X!=0)break;if(4294967286<W.Ja)return 3;if(x==null||st||(x[0]=W.xa?2:1),_=[_],K=[K],W.xa){if(5>f){X=7;break}x=_,F=K,st=w,r==null||5>f?r=0:5<=f&&r[s+0]==47&&!(r[s+4]>>5)?(ht=[0],Ot=[0],wt=[0],ft(bt=new T,r,s,f),Pi(bt,ht,Ot,wt)?(x!=null&&(x[0]=ht[0]),F!=null&&(F[0]=Ot[0]),st!=null&&(st[0]=wt[0]),r=1):r=0):r=0}else{if(10>f){X=7;break}x=K,r==null||10>f||!ko(r,s+3,f-3)?r=0:(F=r[s+0]|r[s+1]<<8|r[s+2]<<16,st=16383&(r[s+7]<<8|r[s+6]),r=16383&(r[s+9]<<8|r[s+8]),1&F||3<(F>>1&7)||!(F>>4&1)||F>>5>=W.Ja||!st||!r?r=0:(_&&(_[0]=st),x&&(x[0]=r),r=1))}if(!r||(_=_[0],K=K[0],J&&(I[0]!=_||H[0]!=K)))return 3;S!=null&&(S[0]=W,S.offset=s-S.w,n(4294967286>s-S.w),n(S.offset==S.ha-f));break}return X==0||X==7&&J&&S==null?(w!=null&&(w[0]|=W.na!=null&&0<W.na.length),g!=null&&(g[0]=_),v!=null&&(v[0]=K),0):X}function Yn(r,s,f){var g=s.width,v=s.height,w=0,_=0,x=g,S=v;if(s.Da=r!=null&&0<r.Da,s.Da&&(x=r.cd,S=r.bd,w=r.v,_=r.j,11>f||(w&=-2,_&=-2),0>w||0>_||0>=x||0>=S||w+x>g||_+S>v))return 0;if(s.v=w,s.j=_,s.va=w+x,s.o=_+S,s.U=x,s.T=S,s.da=r!=null&&0<r.da,s.da){if(!Ht(x,S,f=[r.ib],w=[r.hb]))return 0;s.ib=f[0],s.hb=w[0]}return s.ob=r!=null&&r.ob,s.Kb=r==null||!r.Sd,s.da&&(s.ob=s.ib<3*g/4&&s.hb<3*v/4,s.Kb=0),1}function Sr(r){if(r==null)return 2;if(11>r.S){var s=r.f.RGBA;s.fb+=(r.height-1)*s.A,s.A=-s.A}else s=r.f.kb,r=r.height,s.O+=(r-1)*s.fa,s.fa=-s.fa,s.N+=(r-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(r-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(r-1)*s.lb,s.lb=-s.lb);return 0}function qa(r,s,f,g){if(g==null||0>=r||0>=s)return 2;if(f!=null){if(f.Da){var v=f.cd,w=f.bd,_=-2&f.v,x=-2&f.j;if(0>_||0>x||0>=v||0>=w||_+v>r||x+w>s)return 2;r=v,s=w}if(f.da){if(!Ht(r,s,v=[f.ib],w=[f.hb]))return 2;r=v[0],s=w[0]}}g.width=r,g.height=s;t:{var S=g.width,I=g.height;if(r=g.S,0>=S||0>=I||!(r>=qo&&13>r))r=2;else{if(0>=g.Rd&&g.sd==null){_=w=v=s=0;var H=(x=S*xh[r])*I;if(11>r||(w=(I+1)/2*(s=(S+1)/2),r==12&&(_=(v=S)*I)),(I=o(H+2*w+_))==null){r=1;break t}g.sd=I,11>r?((S=g.f.RGBA).eb=I,S.fb=0,S.A=x,S.size=H):((S=g.f.kb).y=I,S.O=0,S.fa=x,S.Fd=H,S.f=I,S.N=0+H,S.Ab=s,S.Cd=w,S.ea=I,S.W=0+H+w,S.Db=s,S.Ed=w,r==12&&(S.F=I,S.J=0+H+2*w),S.Tc=_,S.lb=v)}if(s=1,v=g.S,w=g.width,_=g.height,v>=qo&&13>v)if(11>v)r=g.f.RGBA,s&=(x=Math.abs(r.A))*(_-1)+w<=r.size,s&=x>=w*xh[v],s&=r.eb!=null;else{r=g.f.kb,x=(w+1)/2,H=(_+1)/2,S=Math.abs(r.fa),I=Math.abs(r.Ab);var J=Math.abs(r.Db),F=Math.abs(r.lb),W=F*(_-1)+w;s&=S*(_-1)+w<=r.Fd,s&=I*(H-1)+x<=r.Cd,s=(s&=J*(H-1)+x<=r.Ed)&S>=w&I>=x&J>=x,s&=r.y!=null,s&=r.f!=null,s&=r.ea!=null,v==12&&(s&=F>=w,s&=W<=r.Tc,s&=r.F!=null)}else s=0;r=s?0:2}}return r!=0||f!=null&&f.fd&&(r=Sr(g)),r}var la=64,kr=[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],Ua=24,Nn=32,En=8,ha=[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,
vendor: 7,287 bytes, line 109
1096,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];It("Predictor0","PredictorAdd0"),z.Predictor0=function(){return 4278190080},z.Predictor1=function(r){return r},z.Predictor2=function(r,s,f){return s[f+0]},z.Predictor3=function(r,s,f){return s[f+1]},z.Predictor4=function(r,s,f){return s[f-1]},z.Predictor5=function(r,s,f){return Dt(Dt(r,s[f+1]),s[f+0])},z.Predictor6=function(r,s,f){return Dt(r,s[f-1])},z.Predictor7=function(r,s,f){return Dt(r,s[f+0])},z.Predictor8=function(r,s,f){return Dt(s[f-1],s[f+0])},z.Predictor9=function(r,s,f){return Dt(s[f+0],s[f+1])},z.Predictor10=function(r,s,f){return Dt(Dt(r,s[f-1]),Dt(s[f+0],s[f+1]))},z.Predictor11=function(r,s,f){var g=s[f+0];return 0>=Jt(g>>24&255,r>>24&255,(s=s[f-1])>>24&255)+Jt(g>>16&255,r>>16&255,s>>16&255)+Jt(g>>8&255,r>>8&255,s>>8&255)+Jt(255&g,255&r,255&s)?g:r},z.Predictor12=function(r,s,f){var g=s[f+0];return(we((r>>24&255)+(g>>24&255)-((s=s[f-1])>>24&255))<<24|we((r>>16&255)+(g>>16&255)-(s>>16&255))<<16|we((r>>8&255)+(g>>8&255)-(s>>8&255))<<8|we((255&r)+(255&g)-(255&s)))>>>0},z.Predictor13=function(r,s,f){var g=s[f-1];return(he((r=Dt(r,s[f+0]))>>24&255,g>>24&255)<<24|he(r>>16&255,g>>16&255)<<16|he(r>>8&255,g>>8&255)<<8|he(255&r,255&g))>>>0};var Yi=z.PredictorAdd0;z.PredictorAdd1=ue,It("Predictor2","PredictorAdd2"),It("Predictor3","PredictorAdd3"),It("Predictor4","PredictorAdd4"),It("Predictor5","PredictorAdd5"),It("Predictor6","PredictorAdd6"),It("Predictor7","PredictorAdd7"),It("Predictor8","PredictorAdd8"),It("Predictor9","PredictorAdd9"),It("Predictor10","PredictorAdd10"),It("Predictor11","PredictorAdd11"),It("Predictor12","PredictorAdd12"),It("Predictor13","PredictorAdd13");var $i=z.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",function(r){return r>>8&255},function(r){return r}),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(r){return r},function(r){return r>>8&255});var ca,Pr=z.ColorIndexInverseTransform,Qe=z.MapARGB,Ds=z.VP8LColorIndexInverseTransformAlpha,bi=z.MapAlpha,ni=z.VP8LPredictorsAdd=[];ni.length=16,(z.VP8LPredictors=[]).length=16,(z.VP8LPredictorsAdd_C=[]).length=16,(z.VP8LPredictors_C=[]).length=16;var Er,za,Ha,ua,Ir,Fr,Ki,Ti,Xi,fa,bn,vi,Ie,Fe,Ge,tn,Ri,Wa,da,Mo,Jl,Ql,th,eh,Ga,nh,ih,rh,ah=o(511),oh=o(2041),sh=o(225),lh=o(767),hh=0,qs=oh,Do=sh,Tn=lh,$n=ah,qo=0,Uo=1,ch=2,zo=3,Ho=4,Us=5,uh=6,zs=7,Hs=8,Wo=9,Ws=10,tf=[2,3,7],ef=[3,3,11],fh=[280,256,256,256,40],nf=[0,1,1,1,0],rf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],af=[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],of=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],sf=8,Gs=[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],Vs=[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],Va=null,lf=[[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]],hf=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],dh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],cf=[[[[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,25
1095,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]]]],uf=[[[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,
1091,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]]],ff=[[[[255,255,255,255,255,255,255,255,255,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,25
vendor: 1,440 bytes, line 109
1095,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]]]],df=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ji=[],ii=[],Bi=[],pf=1,ph=2,Qi=[],Kn=[];gn("UpsampleRgbLinePair",Ar,3),gn("UpsampleBgrLinePair",aa,3),gn("UpsampleRgbaLinePair",Da,4),gn("UpsampleBgraLinePair",Lr,4),gn("UpsampleArgbLinePair",Nr,4),gn("UpsampleRgba4444LinePair",mn,2),gn("UpsampleRgb565LinePair",oa,2);var gf=z.UpsampleRgbLinePair,mf=z.UpsampleBgrLinePair,gh=z.UpsampleRgbaLinePair,mh=z.UpsampleBgraLinePair,bh=z.UpsampleArgbLinePair,vh=z.UpsampleRgba4444LinePair,bf=z.UpsampleRgb565LinePair,Go=16,Vo=1<<Go-1,Za=-227,Zs=482,wh=6,vf=(256<<wh)-1,_h=0,wf=o(256),_f=o(256),yf=o(256),xf=o(256),Af=o(Zs-Za),Nf=o(Zs-
vendor: 23,312 bytes, lines 109-133
109Za);mi("YuvToRgbRow",Ar,3),mi("YuvToBgrRow",aa,3),mi("YuvToRgbaRow",Da,4),mi("YuvToBgraRow",Lr,4),mi("YuvToArgbRow",Nr,4),mi("YuvToRgba4444Row",mn,2),mi("YuvToRgb565Row",oa,2);var yh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Zo=[0,2,8],Lf=[8,7,6,4,4,2,2,2,1,1,1,1],Sf=1;this.WebPDecodeRGBA=function(r,s,f,g,v){var w=Uo,_=new M,x=new le;_.ba=x,x.S=w,x.width=[x.width],x.height=[x.height];var S=x.width,I=x.height,H=new Gt;if(H==null||r==null)var J=2;else n(H!=null),J=Bo(r,s,f,H.width,H.height,H.Pd,H.Qd,H.format,null);if(J!=0?S=0:(S!=null&&(S[0]=H.width[0]),I!=null&&(I[0]=H.height[0]),S=1),S){x.width=x.width[0],x.height=x.height[0],g!=null&&(g[0]=x.width),v!=null&&(v[0]=x.height);t:{if(g=new Kr,(v=new V).data=r,v.w=s,v.ha=f,v.kd=1,s=[0],n(v!=null),((r=Bo(v.data,v.w,v.ha,null,null,null,s,null,v))==0||r==7)&&s[0]&&(r=4),(s=r)==0){if(n(_!=null),g.data=v.data,g.w=v.w+v.offset,g.ha=v.ha-v.offset,g.put=Vt,g.ac=hi,g.bc=ki,g.ma=_,v.xa){if((r=mr())==null){_=1;break t}if(function(F,W){var K=[0],st=[0],X=[0];e:for(;;){if(F==null)return 0;if(W==null)return F.a=2,0;if(F.l=W,F.a=0,ft(F.m,W.data,W.w,W.ha),!Pi(F.m,K,st,X)){F.a=3;break e}if(F.xb=ph,W.width=K[0],W.height=st[0],!ui(K[0],st[0],1,F,null))break e;return 1}return n(F.a!=0),0}(r,g)){if(g=(s=qa(g.width,g.height,_.Oa,_.ba))==0){e:{g=r;n:for(;;){if(g==null){g=0;break e}if(n(g.s.yc!=null),n(g.s.Ya!=null),n(0<g.s.Wb),n((f=g.l)!=null),n((v=f.ma)!=null),g.xb!=0){if(g.ca=v.ba,g.tb=v.tb,n(g.ca!=null),!Yn(v.Oa,f,zo)){g.a=2;break n}if(!br(g,f.width)||f.da)break n;if((f.da||Zt(g.ca.S))&&De(),11>g.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),g.ca.f.kb.F!=null&&De()),g.Pb&&0<g.s.ua&&g.s.vb.X==null&&!P(g.s.vb,g.s.Wa.Xa)){g.a=1;break n}g.xb=0}if(!ei(g,g.V,g.Ba,g.c,g.i,f.o,Hi))break n;v.Dc=g.Ma,g=1;break e}n(g.a!=0),g=0}g=!g}g&&(s=r.a)}else s=r.a}else{if((r=new xs)==null){_=1;break t}if(r.Fa=v.na,r.P=v.P,r.qc=v.Sa,di(r,g)){if((s=qa(g.width,g.height,_.Oa,_.ba))==0){if(r.Aa=0,f=_.Oa,n((v=r)!=null),f!=null){if(0<(S=0>(S=f.Md)?0:100<S?255:255*S/100)){for(I=H=0;4>I;++I)12>(J=v.pb[I]).lc&&(J.ia=S*Lf[0>J.lc?0:J.lc]>>3),H|=J.ia;H&&(alert("todo:VP8InitRandom"),v.ia=1)}v.Ga=f.Id,100<v.Ga?v.Ga=100:0>v.Ga&&(v.Ga=0)}(function(F,W){if(F==null)return 0;if(W==null)return Xe(F,2,"NULL VP8Io parameter in VP8Decode().");if(!F.cb&&!di(F,W))return 0;if(n(F.cb),W.ac==null||W.ac(W)){W.ob&&(F.L=0);var K=Zo[F.L];if(F.L==2?(F.yb=0,F.zb=0):(F.yb=W.v-K>>4,F.zb=W.j-K>>4,0>F.yb&&(F.yb=0),0>F.zb&&(F.zb=0)),F.Va=W.o+15+K>>4,F.Hb=W.va+15+K>>4,F.Hb>F.za&&(F.Hb=F.za),F.Va>F.Ub&&(F.Va=F.Ub),0<F.L){var st=F.ed;for(K=0;4>K;++K){var X;if(F.Qa.Cb){var ht=F.Qa.Lb[K];F.Qa.Fb||(ht+=st.Tb)}else ht=st.Tb;for(X=0;1>=X;++X){var ct=F.gd[K][X],wt=ht;if(st.Pc&&(wt+=st.vd[0],X&&(wt+=st.od[0])),0<(wt=0>wt?0:63<wt?63:wt)){var bt=wt;0<st.wb&&(bt=4<st.wb?bt>>2:bt>>1)>9-st.wb&&(bt=9-st.wb),1>bt&&(bt=1),ct.dd=bt,ct.tc=2*wt+bt,ct.ld=40<=wt?2:15<=wt?1:0}else ct.tc=0;ct.La=X}}}K=0}else Xe(F,6,"Frame setup failed"),K=F.a;if(K=K==0){if(K){F.$c=0,0<F.Aa||(F.Ic=Sf);e:{K=F.Ic,st=4*(bt=F.za);var Bt=32*bt,Pt=bt+1,ie=0<F.L?bt*(0<F.Aa?2:1):0,Ot=(F.Aa==2?2:1)*bt;if((ct=st+832+(X=3*(16*K+Zo[F.L])/2*Bt)+(ht=F.Fa!=null&&0<F.Fa.length?F.Kc.c*F.Kc.i:0))!=ct)K=0;else{if(ct>F.Vb){if(F.Vb=0,F.Ec=o(ct),F.Fc=0,F.Ec==null){K=Xe(F,1,"no memory during frame initialization.");break e}F.Vb=ct}ct=F.Ec,wt=F.Fc,F.Ac=ct,F.Bc=wt,wt+=st,F.Gd=c(Bt,Lo),F.Hd=0,F.rb=c(Pt+1,Ea),F.sb=1,F.wa=ie?c(ie,Zn):null,F.Y=0,F.D.Nb=0,F.D.wa=F.wa,F.D.Y=F.Y,0<F.Aa&&(F.D.Y+=bt),n(!0),F.oc=ct,F.pc=wt,wt+=832,F.ya=c(Ot,Ia),F.aa=0,F.D.ya=F.ya,F.D.aa=F.aa,F.Aa==2&&(F.D.aa+=bt),F.R=16*bt,F.B=8*bt,bt=(Bt=Zo[F.L])*F.R,Bt=Bt/2*F.B,F.sa=ct,F.ta=wt+bt,F.qa=F.sa,F.ra=F.ta+16*K*F.R+Bt,F.Ha=F.qa,F.Ia=F.ra+8*K*F.B+Bt,F.$c=0,wt+=X,F.mb=ht?ct:null,F.nb=ht?wt:null,n(wt+ht<=F.Fc+F.Vb),Fa(F),a(F.Ac,F.Bc,0,st),K=1}}if(K){if(W.ka=0,W.y=F.sa,W.O=F.ta,W.f=F.qa,W.N=F.ra,W.ea=F.Ha,W.Vd=F.Ia,W.fa=F.R,W.Rc=F.B,W.F=null,W.J=0,!hh){for(K=-255;255>=K;++K)ah[255+K]=0>K?-K:K;for(K=-1020;1020>=K;++K)oh[1020+K]=-128>K?-128:127<K?127:K;for(K=-112;112>=K;++K)sh[112+K]=-16>K?-16:15<K?15:K;for(K=-255;510>=K;++K)lh[255+K]=0>K?0:255<K?255:K;hh=1}Ki=Eo,Ti=As,fa=Ns,bn=Ls,vi=pi,Xi=Po,Ie=Co,Fe=Oo,Ge=To,tn=h,Ri=jo,Wa=_r,da=b,Mo=E,Jl=ia,Ql=Ba,th=ra,eh=Fo,ii[0]=Cs,ii[1]=ta,ii[2]=Is,ii[3]=Fs,ii[4]=Os,ii[5]=Ii,ii[6]=js,ii[7]=Fi,ii[8]=Rs,ii[9]=Ts,Ji[0]=Io,Ji[1]=Ss,Ji[2]=ks,Ji[3]=Ps,Ji[4]=Gi,Ji[5]=Es,Ji[6]=vr,Bi[0]=Bs,Bi[1]=Ca,Bi[2]=ea,Bi[3]=Oa,Bi[4]=Ms,Bi[5]=na,Bi[6]=ja,K=1}else K=0}K&&(K=function(fe,en){for(fe.M=0;fe.M<fe.Va;++fe.M){var re,jt=fe.Jc[fe.M&fe.Xb],Nt=fe.m,Ve=fe;for(re=0;re<Ve.za;++re){var ee=Nt,ge=Ve,je=ge.Ac,cn=ge.Bc+4*re,Ln=ge.zc,Ue=ge.ya[ge.aa+re];if(ge.Qa.Bb?Ue.$b=dt(ee,ge.Pa.jb[0])?2+dt(ee,ge.Pa.jb[2]):dt(ee,ge.Pa.jb[1]):Ue.$b=0,ge.kc&&(Ue.Ad=dt(ee,ge.Bd)),Ue.Za=!dt(ee,145)+0,Ue.Za){var vn=Ue.Ob,Sn=0;for(ge=0;4>ge;++ge){var nn,be=Ln[0+ge];for(nn=0;4>nn;++nn){be=uf[je[cn+nn]][be];for(var ye=dh[dt(ee,be[0])];0<ye;)ye=dh[2*ye+dt(ee,be[ye])];be=-ye,je[cn+nn]=be}i(vn,Sn,je,cn,4),Sn+=4,Ln[0+ge]=be}}else be=dt(ee,156)?dt(ee,128)?1:3:dt(ee,163)?2:0,Ue.Ob[0]=be,a(je,cn,be,4),a(Ln,0,be,4);Ue.Dd=dt(ee,142)?dt(ee,114)?dt(ee,183)?1:3:2:0}if(Ve.m.Ka)return Xe(fe,7,"Premature end-of-partition0 encountered.");for(;fe.ja<fe.za;++fe.ja){if(Ve=jt,ee=(Nt=fe).rb[Nt.sb-1],je=Nt.rb[Nt.sb+Nt.ja],re=Nt.ya[Nt.aa+Nt.ja],cn=Nt.kc?re.Ad:0)ee.la=je.la=0,re.Za||(ee.Na=je.Na=0),re.Hc=0,re.Gc=0,re.ia=0;else{var ze,xe;if(ee=je,je=Ve,cn=Nt.Pa.Xc,Ln=Nt.ya[Nt.aa+Nt.ja],Ue=Nt.pb[Ln.$b],ge=Ln.ad,vn=0,Sn=Nt.rb[Nt.sb-1],be=nn=0,a(ge,vn,0,384),Ln.Za)var un=0,ri=cn[3];else{ye=o(16);var Ze=ee.Na+Sn.Na;if(Ze=Va(je,cn[1],Ze,Ue.Eb,0,ye,0),ee.Na=Sn.Na=(0<Ze)+0,1<Ze)Ki(ye,0,ge,vn);else{var In=ye[0]+3>>3;for(ye=0;256>ye;ye+=16)ge[vn+ye]=In}un=1,ri=cn[0]}var ke=15&ee.la,rn=15&Sn.la;for(ye=0;4>ye;++ye){var Rn=1&rn;for(In=xe=0;4>In;++In)ke=ke>>1|(Rn=(Ze=Va(je,ri,Ze=Rn+(1&ke),Ue.Sc,un,ge,vn))>un)<<7,xe=xe<<2|(3<Ze?3:1<Ze?2:ge[vn+0]!=0),vn+=16;ke>>=4,rn=rn>>1|Rn<<7,nn=(nn<<8|xe)>>>0}for(ri=ke,un=rn>>4,ze=0;4>ze;ze+=2){for(xe=0,ke=ee.la>>4+ze,rn=Sn.la>>4+ze,ye=0;2>ye;++ye){for(Rn=1&rn,In=0;2>In;++In)Ze=Rn+(1&ke),ke=ke>>1|(Rn=0<(Ze=Va(je,cn[2],Ze,Ue.Qc,0,ge,vn)))<<3,xe=xe<<2|(3<Ze?3:1<Ze?2:ge[vn+0]!=0),vn+=16;ke>>=2,rn=rn>>1|Rn<<5}be|=xe<<4*ze,ri|=ke<<4<<ze,un|=(240&rn)<<ze}ee.la=ri,Sn.la=un,Ln.Hc=nn,Ln.Gc=be,Ln.ia=43690&be?0:Ue.ia,cn=!(nn|be)}if(0<Nt.L&&(Nt.wa[Nt.Y+Nt.ja]=Nt.gd[re.$b][re.Za],Nt.wa[Nt.Y+Nt.ja].La|=!cn),Ve.Ka)return Xe(fe,7,"Premature end-of-file encountered.")}if(Fa(fe),Nt=en,Ve=1,re=(jt=fe).D,ee=0<jt.L&&jt.M>=jt.zb&&jt.M<=jt.Va,jt.Aa==0)e:{if(re.M=jt.M,re.uc=ee,sa(jt,re),Ve=1,re=(xe=jt.D).Nb,ee=(be=Zo[jt.L])*jt.R,je=be/2*jt.B,ye=16*re*jt.R,In=8*re*jt.B,cn=jt.sa,Ln=jt.ta-ee+ye,Ue=jt.qa,ge=jt.ra-je+In,vn=jt.Ha,Sn=jt.Ia-je+In,rn=(ke=xe.M)==0,nn=ke>=jt.Va-1,jt.Aa==2&&sa(jt,xe),xe.uc)for(Rn=(Ze=jt).D.M,n(Ze.D.uc),xe=Ze.yb;xe<Ze.Hb;++xe){un=xe,ri=Rn;var kn=(Bn=(fn=Ze).D).Nb;ze=fn.R;var Bn=Bn.wa[Bn.Y+un],Mn=fn.sa,Fn=fn.ta+16*kn*ze+16*un,Dn=Bn.dd,Ce=Bn.tc;if(Ce!=0)if(n(3<=Ce),fn.L==1)0<un&&Ql(Mn,Fn,ze,Ce+4),Bn.La&&eh(Mn,Fn,ze,Ce),0<ri&&Jl(Mn,Fn,ze,Ce+4),Bn.La&&th(Mn,Fn,ze,Ce);else{var qn=fn.B,ai=fn.qa,Cr=fn.ra+8*kn*qn+8*un,Mi=fn.Ha,fn=fn.Ia+8*kn*qn+8*un;kn=Bn.ld,0<un&&(Fe(Mn,Fn,ze,Ce+4,Dn,kn),tn(ai,Cr,Mi,fn,qn,Ce+4,Dn,kn)),Bn.La&&(Wa(Mn,Fn,ze,Ce,Dn,kn),Mo(ai,Cr,Mi,fn,qn,Ce,Dn,kn)),0<ri&&(Ie(Mn,Fn,ze,Ce+4,Dn,kn),Ge(ai,Cr,Mi,fn,qn,Ce+4,Dn,kn)),Bn.La&&(Ri(Mn,Fn,ze,Ce,Dn,kn),da(ai,Cr,Mi,fn,qn,Ce,Dn,kn))}}if(jt.ia&&alert("todo:DitherRow"),Nt.put!=null){if(xe=16*ke,ke=16*(ke+1),rn?(Nt.y=jt.sa,Nt.O=jt.ta+ye,Nt.f=jt.qa,Nt.N=jt.ra+In,Nt.ea=jt.Ha,Nt.W=jt.Ia+In):(xe-=be,Nt.y=cn,Nt.O=Ln,Nt.f=Ue,Nt.N=ge,Nt.ea=vn,Nt.W=Sn),nn||(ke-=be),ke>Nt.o&&(ke=Nt.o),Nt.F=null,Nt.J=null,jt.Fa!=null&&0<jt.Fa.length&&xe<ke&&(Nt.J=Je(jt,Nt,xe,ke-xe),Nt.F=jt.mb,Nt.F==null&&Nt.F.length==0)){Ve=Xe(jt,3,"Could not decode alpha data.");break e}xe<Nt.j&&(be=Nt.j-xe,xe=Nt.j,n(!(1&be)),Nt.O+=jt.R*be,Nt.N+=jt.B*(be>>1),Nt.W+=jt.B*(be>>1),Nt.F!=null&&(Nt.J+=Nt.width*be)),xe<ke&&(Nt.O+=Nt.v,Nt.N+=Nt.v>>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=xe-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=ke-xe,Ve=Nt.put(Nt))}re+1!=jt.Ic||nn||(i(jt.sa,jt.ta-ee,cn,Ln+16*jt.R,ee),i(jt.qa,jt.ra-je,Ue,ge+8*jt.B,je),i(jt.Ha,jt.Ia-je,vn,Sn+8*jt.B,je))}if(!Ve)return Xe(fe,6,"Output aborted.")}return 1}(F,W)),W.bc!=null&&W.bc(W),K&=1}return K?(F.cb=0,K):0})(r,g)||(s=r.a)}}else s=r.a}s==0&&_.Oa!=null&&_.Oa.fd&&(s=Sr(_.ba))}_=s}w=_!=0?null:11>w?x.f.RGBA.eb:x.f.kb.y}else w=null;return w};var xh=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(z,et){for(var N="",C=0;C<4;C++)N+=String.fromCharCode(z[et++]);return N}function m(z,et){return z[et+0]|z[et+1]<<8}function A(z,et){return(z[et+0]|z[et+1]<<8|z[et+2]<<16)>>>0}function L(z,et){return(z[et+0]|z[et+1]<<8|z[et+2]<<16|z[et+3]<<24)>>>0}new u;var p=[0],j=[0],O=[],R=new u,k=t,Z=function(z,et){var N={},C=0,q=!1,U=0,it=0;if(N.frames=[],!function(y,T){for(var B=0;B<4;B++)if(y[T+B]!="RIFF".charCodeAt(B))return!0;return!1}(z,et)){for(L(z,et+=4),et+=8;et<z.length;){var ut=d(z,et),pt=L(z,et+=4);et+=4;var nt=pt+(1&pt);switch(ut){case"VP8 ":case"VP8L":N.frames[C]===void 0&&(N.frames[C]={}),(yt=N.frames[C]).src_off=q?it:et-8,yt.src_size=U+pt+8,C++,q&&(q=!1,U=0,it=0);break;case"VP8X":(yt=N.header={}).feature_flags=z[et];var ft=et+4;yt.canvas_width=1+A(z,ft),ft+=3,yt.canvas_height=1+A(z,ft),ft+=3;break;case"ALPH":q=!0,U=nt+8,it=et-8;break;case"ANIM":(yt=N.header).bgcolor=L(z,et),ft=et+4,yt.loop_count=m(z,ft),ft+=2;break;case"ANMF":var At,yt;(yt=N.frames[C]={}).offset_x=2*A(z,et),et+=3,yt.offset_y=2*A(z,et),et+=3,yt.width=1+A(z,et),et+=3,yt.height=1+A(z,et),et+=3,yt.duration=A(z,et),et+=3,At=z[et++],yt.dispose=1&At,yt.blend=At>>1&1}ut!="ANMF"&&(et+=nt)}return N}}(k,0);Z.response=k,Z.rgbaoutput=!0,Z.dataurl=!1;var Y=Z.header?Z.header:null,D=Z.frames?Z.frames:null;if(Y){Y.loop_counter=Y.loop_count,p=[Y.canvas_height],j=[Y.canvas_width];for(var lt=0;lt<D.length&&D[lt].blend!=0;lt++);}var _t=D[0],mt=R.WebPDecodeRGBA(k,_t.src_off,_t.src_size,j,p);_t.rgba=mt,_t.imgwidth=j[0],_t.imgheight=p[0];for(var tt=0;tt<j[0]*p[0]*4;tt++)O[tt]=mt[tt];return this.width=j,this.height=p,this.data=O,this}/** ====================================================================
110 * @license
111 * jsPDF XMP metadata plugin
112 * Copyright (c) 2016 Jussi Utunen, [email protected]
113 *
114 * Permission is hereby granted, free of charge, to any person obtaining
115 * a copy of this software and associated documentation files (the
116 * "Software"), to deal in the Software without restriction, including
117 * without limitation the rights to use, copy, modify, merge, publish,
118 * distribute, sublicense, and/or sell copies of the Software, and to
119 * permit persons to whom the Software is furnished to do so, subject to
120 * the following conditions:
121 *
122 * The above copyright notice and this permission notice shall be
123 * included in all copies or substantial portions of the Software.
124 *
125 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
126 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
127 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
128 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
129 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
130 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
131 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
132 * ====================================================================
133 */function m5(){var t,n=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(n));t=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function b5(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var n,e,i,a,o,c,l,u,d,m=function(y){return y=y||{},this.isStrokeTransparent=y.isStrokeTransparent||!1,this.strokeOpacity=y.strokeOpacity||1,this.strokeStyle=y.strokeStyle||"#000000",this.fillStyle=y.fillStyle||"#000000",this.isFillTransparent=y.isFillTransparent||!1,this.fillOpacity=y.fillOpacity||1,this.font=y.font||"10px sans-serif",this.textBaseline=y.textBaseline||"alphabetic",this.textAlign=y.textAlign||"left",this.lineWidth=y.lineWidth||1,this.lineJoin=y.lineJoin||"miter",this.lineCap=y.lineCap||"butt",this.path=y.path||[],this.transform=y.transform!==void 0?y.transform.clone():new u,this.globalCompositeOperation=y.globalCompositeOperation||"normal",this.globalAlpha=y.globalAlpha||1,this.clip_path=y.clip_path||[],this.currentPoint=y.currentPoint||new c,this.miterLimit=y.miterLimit||10,this.lastPoint=y.lastPoint||new c,this.lineDashOffset=y.lineDashOffset||0,this.lineDash=y.lineDash||[],this.margin=y.margin||[0,0,0,0],this.prevPageLastElemOffset=y.prevPageLastElemOffset||0,this.ignoreClearRect=typeof y.ignoreClearRect!="boolean"||y.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new A(this),n=this.internal.f2,e=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,c=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,d=new m}]);var A=function(y){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var T=y;Object.defineProperty(this,"pdf",{get:function(){return T}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(P){B=!!P}});var G=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return G},set:function(P){G=!!P}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(P){isNaN(P)||($=P)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(P){isNaN(P)||(Q=P)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(P){var Lt;typeof P=="number"?Lt=[P,P,P,P]:((Lt=new Array(4))[0]=P[0],Lt[1]=P.length>=2?P[1]:Lt[0],Lt[2]=P.length>=3?P[2]:Lt[0],Lt[3]=P.length>=4?P[3]:Lt[1]),d.margin=Lt}});var rt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return rt},set:function(P){rt=P}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(P){at=P}});var dt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return dt},set:function(P){dt=P}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(P){P instanceof m&&(d=P)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(P){d.path=P}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(P){xt=P}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(P){var Lt;Lt=L(P),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(P){var Lt=L(P);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(P){["butt","round","square"].indexOf(P)!==-1&&(this.ctx.lineCap=P,this.pdf.setLineCap(P))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(P){isNaN(P)||(this.ctx.lineWidth=P,this.pdf.setLineWidth(P))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(P){["bevel","round","miter"].indexOf(P)!==-1&&(this.ctx.lineJoin=P,this.pdf.setLineJoin(P))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(P){isNaN(P)||(this.ctx.miterLimit=P,this.pdf.setMiterLimit(P))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(P){this.ctx.textBaseline=P}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(P){["right","end","center","left","start"].indexOf(P)!==-1&&(this.ctx.textAlign=P)}});var St=null,kt=null,zt=null;Object.defineProperty(this,"fontFaces",{get:function(){return zt},set:function(P){St=null,kt=null,zt=P}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(P){var Lt;if(this.ctx.font=P,(Lt=/^\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-z0-9]+?)\s*$/i.exec(P))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],vt=Lt[4];Lt[5];var Wt=Lt[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(vt)[2];vt=Math.floor(It==="px"?parseFloat(vt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(vt)*this.pdf.getFontSize():parseFloat(vt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(vt);var Ut=function(Mt){var We,me,oe=[],se=Mt.trim();if(se==="")return Sl;if(se in Bc)return[Bc[se]];for(;se!=="";){switch(me=null,We=(se=Dc(se)).charAt(0)){case'"':case"'":me=c5(se.substring(1),We);break;default:me=u5(se)}if(me===null||(oe.push(me[0]),(se=Dc(me[1]))!==""&&se.charAt(0)!==","))return Sl;se=se.replace(/^,/,"")}return oe}(Wt);if(this.fontFaces){var Dt=function(Mt,We){var me=Mt.getFontList(),oe=JSON.stringify(me);if(St===null||kt!==oe){var se=function(Te){var qt=[];return Object.keys(Te).forEach(function(Ee){Te[Ee].forEach(function(Zt){var Qt=null;switch(Zt){case"bold":Qt={family:Ee,weight:"bold"};break;case"italic":Qt={family:Ee,style:"italic"};break;case"bolditalic":Qt={family:Ee,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:Ee}}Qt!==null&&(Qt.ref={name:Ee,style:Zt},qt.push(Qt))})}),qt}(me);St=function(Te){for(var qt={},Ee=0;Ee<Te.length;++Ee){var Zt=Ll(Te[Ee]),Qt=Zt.family,Re=Zt.stretch,le=Zt.style,Gt=Zt.weight;qt[Qt]=qt[Qt]||{},qt[Qt][Re]=qt[Qt][Re]||{},qt[Qt][Re][le]=qt[Qt][Re][le]||{},qt[Qt][Re][le][Gt]=Zt}return qt}(se.concat(We)),kt=oe}return St}(this.pdf,this.fontFaces),we=Ut.map(function(Mt){return{family:Mt,stretch:"normal",weight:Ht,style:ae}}),he=function(Mt,We,me){for(var oe=(me=me||{}).defaultFontFamily||"times",se=Object.assign({},h5,me.genericFontFamilies||{}),Te=null,qt=null,Ee=0;Ee<We.length;++Ee)if(se[(Te=Ll(We[Ee])).family]&&(Te.family=se[Te.family]),Mt.hasOwnProperty(Te.family)){qt=Mt[Te.family];break}if(!(qt=qt||Mt[oe]))throw new Error("Could not find a font-family for the rule '"+Mc(Te)+"' and default family '"+oe+"'.");if(qt=function(Zt,Qt){if(Qt[Zt])return Qt[Zt];var Re=zl[Zt],le=Re<=zl.normal?-1:1,Gt=Rc(Qt,$u,Re,le);if(!Gt)throw new Error("Could not find a matching font-stretch value for "+Zt);return Gt}(Te.stretch,qt),qt=function(Zt,Qt){if(Qt[Zt])return Qt[Zt];for(var Re=Yu[Zt],le=0;le<Re.length;++le)if(Qt[Re[le]])return Qt[Re[le]];throw new Error("Could not find a matching font-style for "+Zt)}(Te.style,qt),!(qt=function(Zt,Qt){if(Qt[Zt])return Qt[Zt];if(Zt===400&&Qt[500])return Qt[500];if(Zt===500&&Qt[400])return Qt[400];var Re=l5[Zt],le=Rc(Qt,Ku,Re,Zt<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+Zt);return le}(Te.weight,qt)))throw new Error("Failed to resolve a font for the rule '"+Mc(Te)+"'.");return qt}(Dt,we);this.pdf.setFont(he.ref.name,he.ref.style)}else{var Jt="";(Ht==="bold"||parseInt(Ht,10)>=700||ae==="bold")&&(Jt="bold"),ae==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var ue="",ce={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"},Tt=0;Tt<Ut.length;Tt++){if(this.pdf.internal.getFont(Ut[Tt],Jt,{noFallback:!0,disableWarning:!0})!==void 0){ue=Ut[Tt];break}if(Jt==="bolditalic"&&this.pdf.internal.getFont(Ut[Tt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ue=Ut[Tt],Jt="bold";else if(this.pdf.internal.getFont(Ut[Tt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ue=Ut[Tt],Jt="normal";break}}if(ue===""){for(var ne=0;ne<Ut.length;ne++)if(ce[Ut[ne]]){ue=ce[Ut[ne]];break}}ue=ue===""?"Times":ue,this.pdf.setFont(ue,Jt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(P){this.ctx.globalCompositeOperation=P}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(P){this.ctx.globalAlpha=P}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(P){this.ctx.lineDashOffset=P,yt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(P){this.ctx.lineDash=P,yt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(P){this.ctx.ignoreClearRect=!!P}})};A.prototype.setLineDash=function(y){this.lineDash=y},A.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},A.prototype.fill=function(){D.call(this,"fill",!1)},A.prototype.stroke=function(){D.call(this,"stroke",!1)},A.prototype.beginPath=function(){this.path=[{type:"begin"}]},A.prototype.moveTo=function(y,T){if(isNaN(y)||isNaN(T))throw Pe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new c(y,T));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new c(y,T)},A.prototype.closePath=function(){var y=new c(0,0),T=0;for(T=this.path.length-1;T!==-1;T--)if(this.path[T].type==="begin"&&Ne(this.path[T+1])==="object"&&typeof this.path[T+1].x=="number"){y=new c(this.path[T+1].x,this.path[T+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(y.x,y.y)},A.prototype.lineTo=function(y,T){if(isNaN(y)||isNaN(T))throw Pe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new c(y,T));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new c(B.x,B.y)},A.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),D.call(this,null,!0)},A.prototype.quadraticCurveTo=function(y,T,B,G){if(isNaN(B)||isNaN(G)||isNaN(y)||isNaN(T))throw Pe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
133jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new c(B,G)),Q=this.ctx.transform.applyToPoint(new c(y,T));this.path.push({type:"qct",x1:Q.x,y1:Q.y,x:$.x,y:$.y}),this.ctx.lastPoint=new c($.x,$.y)},A.prototype.bezierCurveTo=function(y,T,B,G,$,Q){if(isNaN($)||isNaN(Q)||isNaN(y)||isNaN(T)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var rt=this.ctx.transform.applyToPoint(new c($,Q)),at=this.ctx.transform.applyToPoint(new c(y,T)),dt=this.ctx.transform.applyToPoint(new c(B,G));this.path.push({type:"bct",x1:at.x,y1:at.y,x2:dt.x,y2:dt.y,x:rt.x,y:rt.y}),this.ctx.lastPoint=new c(rt.x,rt.y)},A.prototype.arc=function(y,T,B,G,$,Q){if(isNaN(y)||isNaN(T)||isNaN(B)||isNaN(G)||isNaN($))throw Pe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Q=!!Q,!this.ctx.transform.isIdentity){var rt=this.ctx.transform.applyToPoint(new c(y,T));y=rt.x,T=rt.y;var at=this.ctx.transform.applyToPoint(new c(0,B)),dt=this.ctx.transform.applyToPoint(new c(0,0));B=Math.sqrt(Math.pow(at.x-dt.x,2)+Math.pow(at.y-dt.y,2))}Math.abs($-G)>=2*Math.PI&&(G=0,$=2*Math.PI),this.path.push({type:"arc",x:y,y:T,radius:B,startAngle:G,endAngle:$,counterclockwise:Q})},A.prototype.arcTo=function(y,T,B,G,$){throw new Error("arcTo not implemented.")},A.prototype.rect=function(y,T,B,G){if(isNaN(y)||isNaN(T)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(y,T),this.lineTo(y+B,T),this.lineTo(y+B,T+G),this.lineTo(y,T+G),this.lineTo(y,T),this.lineTo(y+B,T),this.lineTo(y,T)},A.prototype.fillRect=function(y,T,B,G){if(isNaN(y)||isNaN(T)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(y,T,B,G),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},A.prototype.strokeRect=function(y,T,B,G){if(isNaN(y)||isNaN(T)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");j.call(this)||(this.beginPath(),this.rect(y,T,B,G),this.stroke())},A.prototype.clearRect=function(y,T,B,G){if(isNaN(y)||isNaN(T)||isNaN(B)||isNaN(G))throw Pe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(y,T,B,G))},A.prototype.save=function(y){y=typeof y!="boolean"||y;for(var T=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(T),y){this.ctx.fontSize=this.pdf.internal.getFontSize();var G=new m(this.ctx);this.ctxStack.push(this.ctx),this.ctx=G}},A.prototype.restore=function(y){y=typeof y!="boolean"||y;for(var T=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(T),y&&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)},A.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var L=function(y){var T,B,G,$;if(y.isCanvasGradient===!0&&(y=y.getColor()),!y)return{r:0,g:0,b:0,a:0,style:y};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(y))T=0,B=0,G=0,$=0;else{var Q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(y);if(Q!==null)T=parseInt(Q[1]),B=parseInt(Q[2]),G=parseInt(Q[3]),$=1;else if((Q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(y))!==null)T=parseInt(Q[1]),B=parseInt(Q[2]),G=parseInt(Q[3]),$=parseFloat(Q[4]);else{if($=1,typeof y=="string"&&y.charAt(0)!=="#"){var rt=new Uu(y);y=rt.ok?rt.toHex():"#000000"}y.length===4?(T=y.substring(1,2),T+=T,B=y.substring(2,3),B+=B,G=y.substring(3,4),G+=G):(T=y.substring(1,3),B=y.substring(3,5),G=y.substring(5,7)),T=parseInt(T,16),B=parseInt(B,16),G=parseInt(G,16)}}return{r:T,g:B,b:G,a:$,style:y}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},j=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};A.prototype.fillText=function(y,T,B,G){if(isNaN(T)||isNaN(B)||typeof y!="str
133ing")throw Pe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(G=isNaN(G)?void 0:G,!p.call(this)){var $=nt(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;C.call(this,{text:y,x:T,y:B,scale:Q,angle:$,align:this.textAlign,maxWidth:G})}},A.prototype.strokeText=function(y,T,B,G){if(isNaN(T)||isNaN(B)||typeof y!="string")throw Pe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!j.call(this)){G=isNaN(G)?void 0:G;var $=nt(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;C.call(this,{text:y,x:T,y:B,scale:Q,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:G})}},A.prototype.measureText=function(y){if(typeof y!="string")throw Pe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var T=this.pdf,B=this.pdf.internal.scaleFactor,G=T.internal.getFontSize(),$=T.getStringUnitWidth(y)*G/T.internal.scaleFactor;return new function(Q){var rt=(Q=Q||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return rt}}),this}({width:$*=Math.round(96*B/72*1e4)/1e4})},A.prototype.scale=function(y,T){if(isNaN(y)||isNaN(T))throw Pe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new u(y,0,0,T,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},A.prototype.rotate=function(y){if(isNaN(y))throw Pe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var T=new u(Math.cos(y),Math.sin(y),-Math.sin(y),Math.cos(y),0,0);this.ctx.transform=this.ctx.transform.multiply(T)},A.prototype.translate=function(y,T){if(isNaN(y)||isNaN(T))throw Pe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new u(1,0,0,1,y,T);this.ctx.transform=this.ctx.transform.multiply(B)},A.prototype.transform=function(y,T,B,G,$,Q){if(isNaN(y)||isNaN(T)||isNaN(B)||isNaN(G)||isNaN($)||isNaN(Q))throw Pe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var rt=new u(y,T,B,G,$,Q);this.ctx.transform=this.ctx.transform.multiply(rt)},A.prototype.setTransform=function(y,T,B,G,$,Q){y=isNaN(y)?1:y,T=isNaN(T)?0:T,B=isNaN(B)?0:B,G=isNaN(G)?1:G,$=isNaN($)?0:$,Q=isNaN(Q)?0:Q,this.ctx.transform=new u(y,T,B,G,$,Q)};var O=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(y,T,B,G,$,Q,rt,at,dt){var xt=this.pdf.getImageProperties(y),St=1,kt=1,zt=1,P=1;G!==void 0&&at!==void 0&&(zt=at/G,P=dt/$,St=xt.width/G*at/G,kt=xt.height/$*dt/$),Q===void 0&&(Q=T,rt=B,T=0,B=0),G!==void 0&&at===void 0&&(at=G,dt=$),G===void 0&&at===void 0&&(at=xt.width,dt=xt.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new u,vt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new l(Q-T*zt,rt-B*P,G*St,$*kt));if(this.autoPaging){for(var Wt,It=R.call(this,vt),Ut=[],Dt=0;Dt<It.length;Dt+=1)Ut.indexOf(It[Dt])===-1&&Ut.push(It[Dt]);Y(Ut);for(var we=Ut[0],he=Ut[Ut.length-1],Jt=we;Jt<he+1;Jt++){this.pdf.setPage(Jt);var ue=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ce=Jt===1?this.posY+this.margin[0]:this.margin[0],Tt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Mt=Jt===1?0:Tt+(Jt-2)*ne;if(this.ctx.clip_path.length!==0){var We=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Z(Wt,this.posX+this.margin[3],-Mt+ce+this.ctx.prevPageLastElemOffset),lt.call(this,"fill",!0),this.path=We}var me=JSON.parse(JSON.stringify(vt));me=Z([me],this.posX+this.margin[3],-Mt+ce+this.ctx.prevPageLastElemOffset)[0];var oe=(Jt>we||Jt<he)&&O.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ue,ne,null).clip().discardPath()),this.pdf.addImage(y,"JPEG",me.x,me.y,me.w,me.h,null,
vendor: 41,230 bytes, lines 133-139
133null,ae),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(y,"JPEG",vt.x,vt.y,vt.w,vt.h,null,null,ae)};var R=function(y,T,B){var G=[];T=T||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(y.type){default:case"mt":case"lt":G.push(Math.floor((y.y+$)/B)+1);break;case"arc":G.push(Math.floor((y.y+$-y.radius)/B)+1),G.push(Math.floor((y.y+$+y.radius)/B)+1);break;case"qct":var Q=ft(this.ctx.lastPoint.x,this.ctx.lastPoint.y,y.x1,y.y1,y.x,y.y);G.push(Math.floor((Q.y+$)/B)+1),G.push(Math.floor((Q.y+Q.h+$)/B)+1);break;case"bct":var rt=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,y.x1,y.y1,y.x2,y.y2,y.x,y.y);G.push(Math.floor((rt.y+$)/B)+1),G.push(Math.floor((rt.y+rt.h+$)/B)+1);break;case"rect":G.push(Math.floor((y.y+$)/B)+1),G.push(Math.floor((y.y+y.h+$)/B)+1)}for(var at=0;at<G.length;at+=1)for(;this.pdf.internal.getNumberOfPages()<G[at];)k.call(this);return G},k=function(){var y=this.fillStyle,T=this.strokeStyle,B=this.font,G=this.lineCap,$=this.lineWidth,Q=this.lineJoin;this.pdf.addPage(),this.fillStyle=y,this.strokeStyle=T,this.font=B,this.lineCap=G,this.lineWidth=$,this.lineJoin=Q},Z=function(y,T,B){for(var G=0;G<y.length;G++)switch(y[G].type){case"bct":y[G].x2+=T,y[G].y2+=B;case"qct":y[G].x1+=T,y[G].y1+=B;default:y[G].x+=T,y[G].y+=B}return y},Y=function(y){return y.sort(function(T,B){return T-B})},D=function(y,T){var B=this.fillStyle,G=this.strokeStyle,$=this.lineCap,Q=this.lineWidth,rt=Math.abs(Q*this.ctx.transform.scaleX),at=this.lineJoin;if(this.autoPaging){for(var dt,xt,St=JSON.parse(JSON.stringify(this.path)),kt=JSON.parse(JSON.stringify(this.path)),zt=[],P=0;P<kt.length;P++)if(kt[P].x!==void 0)for(var Lt=R.call(this,kt[P]),ae=0;ae<Lt.length;ae+=1)zt.indexOf(Lt[ae])===-1&&zt.push(Lt[ae]);for(var Ht=0;Ht<zt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<zt[Ht];)k.call(this);Y(zt);for(var vt=zt[0],Wt=zt[zt.length-1],It=vt;It<Wt+1;It++){this.pdf.setPage(It),this.fillStyle=B,this.strokeStyle=G,this.lineCap=$,this.lineWidth=rt,this.lineJoin=at;var Ut=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Dt=It===1?this.posY+this.margin[0]:this.margin[0],we=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],he=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Jt=It===1?0:we+(It-2)*he;if(this.ctx.clip_path.length!==0){var ue=this.path;dt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Z(dt,this.posX+this.margin[3],-Jt+Dt+this.ctx.prevPageLastElemOffset),lt.call(this,y,!0),this.path=ue}if(xt=JSON.parse(JSON.stringify(St)),this.path=Z(xt,this.posX+this.margin[3],-Jt+Dt+this.ctx.prevPageLastElemOffset),T===!1||It===0){var ce=(It>vt||It<Wt)&&O.call(this);ce&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ut,he,null).clip().discardPath()),lt.call(this,y,T),ce&&this.pdf.restoreGraphicsState()}this.lineWidth=Q}this.path=St}else this.lineWidth=rt,lt.call(this,y,T),this.lineWidth=Q},lt=function(y,T){if((y!=="stroke"||T||!j.call(this))&&(y==="stroke"||T||!p.call(this))){for(var B,G,$=[],Q=this.path,rt=0;rt<Q.length;rt++){var at=Q[rt];switch(at.type){case"begin":$.push({begin:!0});break;case"close":$.push({close:!0});break;case"mt":$.push({start:at,deltas:[],abs:[]});break;case"lt":var dt=$.length;if(Q[rt-1]&&!isNaN(Q[rt-1].x)&&(B=[at.x-Q[rt-1].x,at.y-Q[rt-1].y],dt>0)){for(;dt>=0;dt--)if($[dt-1].close!==!0&&$[dt-1].begin!==!0){$[dt-1].deltas.push(B),$[dt-1].abs.push(at);break}}break;case"bct":B=[at.x1-Q[rt-1].x,at.y1-Q[rt-1].y,at.x2-Q[rt-1].x,at.y2-Q[rt-1].y,at.x-Q[rt-1].x,at.y-Q[rt-1].y],$[$.length-1].deltas.push(B);break;case"qct":var xt=Q[rt-1].x+2/3*(at.x1-Q[rt-1].x),St=Q[rt-1].y+2/3*(at.y1-Q[rt-1].y),kt=at.x+2/3*(at.x1-at.x),zt=at.y+2/3*(at.y1-at.y),P=at.x,Lt=at.y;B=[xt-Q[rt-1].x,St-Q[rt-1].y,kt-Q[rt-1].x,zt-Q[rt-1].y,P-Q[rt-1].x,Lt-Q[rt-1].y],$[$.length-1].deltas.push(B);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(at)}}G=T?null:y==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<$.length;Ht++)if($[Ht].arc)for(var vt=$[Ht].abs,Wt=0;Wt<vt.length;Wt++){var It=vt[Wt];It.type==="arc"?tt.call(this,It.x,It.y,It.radius,It.startAngle,It.endAngle,It.counterclockwise,void 0,T,!ae):q.call(this,It.x,It.y),ae=!0}else if($[Ht].close===!0)this.pdf.internal.out("h"),ae=!1;else if($[Ht].begin!==!0){var Ut=$[Ht].start.x,Dt=$[Ht].start.y;U.call(this,$[Ht].deltas,Ut,Dt),ae=!0}G&&z.call(this,G),T&&et.call(this)}},_t=function(y){var T=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=T*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return y-B;case"top":return y+T-B;case"hanging":return y+T-2*B;case"middle":return y+T/2-B;default:return y}},mt=function(y){return y+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};A.prototype.createLinearGradient=function(){var y=function(){};return y.colorStops=[],y.addColorStop=function(T,B){this.colorStops.push([T,B])},y.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},y.isCanvasGradient=!0,y},A.prototype.createPattern=function(){return this.createLinearGradient()},A.prototype.createRadialGradient=function(){return this.createLinearGradient()};var tt=function(y,T,B,G,$,Q,rt,at,dt){for(var xt=ut.call(this,B,G,$,Q),St=0;St<xt.length;St++){var kt=xt[St];St===0&&(dt?N.call(this,kt.x1+y,kt.y1+T):q.call(this,kt.x1+y,kt.y1+T)),it.call(this,y,T,kt.x2,kt.y2,kt.x3,kt.y3,kt.x4,kt.y4)}at?et.call(this):z.call(this,rt)},z=function(y){switch(y){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},et=function(){this.pdf.clip(),this.pdf.discardPath()},N=function(y,T){this.pdf.internal.out(e(y)+" "+i(T)+" m")},C=function(y){var T;switch(y.align){case"right":case"end":T="right";break;case"center":T="center";break;default:T="left"}var B,G,$,Q=this.pdf.getTextDimensions(y.text),rt=_t.call(this,y.y),at=mt.call(this,rt)-Q.h,dt=this.ctx.transform.applyToPoint(new c(y.x,rt));if(this.autoPaging){var xt=this.ctx.transform.decompose(),St=new u;St=(St=(St=St.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale);for(var kt=this.ctx.transform.applyToRectangle(new l(y.x,rt,Q.w,Q.h)),zt=St.applyToRectangle(new l(y.x,at,Q.w,Q.h)),P=R.call(this,zt),Lt=[],ae=0;ae<P.length;ae+=1)Lt.indexOf(P[ae])===-1&&Lt.push(P[ae]);Y(Lt);for(var Ht=Lt[0],vt=Lt[Lt.length-1],Wt=Ht;Wt<vt+1;Wt++){this.pdf.setPage(Wt);var It=Wt===1?this.posY+this.margin[0]:this.margin[0],Ut=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Dt=this.pdf.internal.pageSize.height-this.margin[2],we=Dt-this.margin[0],he=this.pdf.internal.pageSize.width-this.margin[1],Jt=he-this.margin[3],ue=Wt===1?0:Ut+(Wt-2)*we;if(this.ctx.clip_path.length!==0){var ce=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Z(B,this.posX+this.margin[3],-1*ue+It),lt.call(this,"fill",!0),this.path=ce}var Tt=Z([JSON.parse(JSON.stringify(zt))],this.posX+this.margin[3],-ue+It+this.ctx.prevPageLastElemOffset)[0];y.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*y.scale),$=this.lineWidth,this.lineWidth=$*y.scale);var ne=this.autoPaging!=="text";if(ne||Tt.y+Tt.h<=Dt){if(ne||Tt.y>=It&&Tt.x<=he){var Mt=ne?y.text:this.pdf.splitTextToSize(y.text,y.maxWidth||he-Tt.x)[0],We=Z([JSON.parse(JSON.stringify(kt))],this.posX+this.margin[3],-ue+It+this.ctx.prevPageLastElemOffset)[0],me=ne&&(Wt>Ht||Wt<vt)&&O.call(this);me&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jt,we,null).clip().discardPath()),this.pdf.text(Mt,We.x,We.y,{angle:y.angle,align:T,renderingMode:y.renderingMode}),me&&this.pdf.restoreGraphicsState()}}else Tt.y<Dt&&(this.ctx.prevPageLastElemOffset+=Dt-Tt.y);y.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=$)}}else y.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*y.scale),$=this.lineWidth,this.lineWidth=$*y.scale),this.pdf.text(y.text,dt.x+this.posX,dt.y+this.posY,{angle:y.angle,align:T,renderingMode:y.renderingMode,maxWidth:y.maxWidth}),y.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=$)},q=function(y,T,B,G){B=B||0,G=G||0,this.pdf.internal.out(e(y+B)+" "+i(T+G)+" l")},U=function(y,T,B){return this.pdf.lines(y,T,B,null,null)},it=function(y,T,B,G,$,Q,rt,at){this.pdf.internal.out([n(a(B+y)),n(o(G+T)),n(a($+y)),n(o(Q+T)),n(a(rt+y)),n(o(at+T)),"c"].join(" "))},ut=function(y,T,B,G){for(var $=2*Math.PI,Q=Math.PI/2;T>B;)T-=$;var rt=Math.abs(B-T);rt<$&&G&&(rt=$-rt);for(var at=[],dt=G?-1:1,xt=T;rt>1e-5;){var St=xt+dt*Math.min(rt,Q);at.push(pt.call(this,y,xt,St)),rt-=Math.abs(St-xt),xt=St}return at},pt=function(y,T,B){var G=(B-T)/2,$=y*Math.cos(G),Q=y*Math.sin(G),rt=$,at=-Q,dt=rt*rt+at*at,xt=dt+rt*$+at*Q,St=4/3*(Math.sqrt(2*dt*xt)-xt)/(rt*Q-at*$),kt=rt-St*at,zt=at+St*rt,P=kt,Lt=-zt,ae=G+T,Ht=Math.cos(ae),vt=Math.sin(ae);return{x1:y*Math.cos(T),y1:y*Math.sin(T),x2:kt*Ht-zt*vt,y2:kt*vt+zt*Ht,x3:P*Ht-Lt*vt,y3:P*vt+Lt*Ht,x4:y*Math.cos(B),y4:y*Math.sin(B)}},nt=function(y){return 180*y/Math.PI},ft=function(y,T,B,G,$,Q){var rt=y+.5*(B-y),at=T+.5*(G-T),dt=$+.5*(B-$),xt=Q+.5*(G-Q),St=Math.min(y,$,rt,dt),kt=Math.max(y,$,rt,dt),zt=Math.min(T,Q,at,xt),P=Math.max(T,Q,at,xt);return new l(St,zt,kt-St,P-zt)},At=function(y,T,B,G,$,Q,rt,at){var dt,xt,St,kt,zt,P,Lt,ae,Ht,vt,Wt,It,Ut,Dt,we=B-y,he=G-T,Jt=$-B,ue=Q-G,ce=rt-$,Tt=at-Q;for(xt=0;xt<41;xt++)Ht=(Lt=(St=y+(dt=xt/40)*we)+dt*((zt=B+dt*Jt)-St))+dt*(zt+dt*($+dt*ce-zt)-Lt),vt=(ae=(kt=T+dt*he)+dt*((P=G+dt*ue)-kt))+dt*(P+dt*(Q+dt*Tt-P)-ae),xt==0?(Wt=Ht,It=vt,Ut=Ht,Dt=vt):(Wt=Math.min(Wt,Ht),It=Math.min(It,vt),Ut=Math.max(Ut,Ht),Dt=Math.max(Dt,vt));return new l(Math.round(Wt),Math.round(It),Math.round(Ut-Wt),Math.round(Dt-It))},yt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var y,T,B=(y=this.ctx.lineDash,T=this.ctx.lineDashOffset,JSON.stringify({lineDash:y,lineDashOffset:T}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(Rt.API),function(t){var n=function(c){var l,u,d,m,A,L,p,j,O,R;for(u=[],d=0,m=(c+=l="\0\0\0\0".slice(c.length%4||4)).length;m>d;d+=4)(A=(c.charCodeAt(d)<<24)+(c.charCodeAt(d+1)<<16)+(c.charCodeAt(d+2)<<8)+c.charCodeAt(d+3))!==0?(L=(A=((A=((A=((A=(A-(R=A%85))/85)-(O=A%85))/85)-(j=A%85))/85)-(p=A%85))/85)%85,u.push(L+33,p+33,j+33,O+33,R+33)):u.push(122);return function(k,Z){for(var Y=Z;Y>0;Y--)k.pop()}(u,l.length),String.fromCharCode.apply(String,u)+"~>"},e=function(c){var l,u,d,m,A,L=String,p="length",j=255,O="charCodeAt",R="slice",k="replace";for(c[R](-2),c=c[R](0,-2)[k](/\s/g,"")[k]("z","!!!!!"),d=[],m=0,A=(c+=l="uuuuu"[R](c[p]%5||5))[p];A>m;m+=5)u=52200625*(c[O](m)-33)+614125*(c[O](m+1)-33)+7225*(c[O](m+2)-33)+85*(c[O](m+3)-33)+(c[O](m+4)-33),d.push(j&u>>24,j&u>>16,j&u>>8,j&u);return function(Z,Y){for(var D=Y;D>0;D--)Z.pop()}(d,l[p]),L.fromCharCode.apply(L,d)},i=function(c){return c.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(c){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((c=c.replace(/\s/g,"")).indexOf(">")!==-1&&(c=c.substr(0,c.indexOf(">"))),c.length%2&&(c+="0"),l.test(c)===!1)return"";for(var u="",d=0;d<c.length;d+=2)u+=String.fromCharCode("0x"+(c[d]+c[d+1]));return u},o=function(c){for(var l=new Uint8Array(c.length),u=c.length;u--;)l[u]=c.charCodeAt(u);return(l=El(l)).reduce(function(d,m){return d+String.fromCharCode(m)},"")};t.processDataByFilters=function(c,l){var u=0,d=c||"",m=[];for(typeof(l=l||[])=="string"&&(l=[l]),u=0;u<l.length;u+=1)switch(l[u]){case"ASCII85Decode":case"/ASCII85Decode":d=e(d),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=n(d),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=a(d),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=i(d),m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=o(d),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[u]+'" is not implemented')}return{data:d,reverseChain:m.reverse().join(" ")}}}(Rt.API),function(t){t.loadFile=function(n,e,i){return function(a,o,c){o=o!==!1,c=typeof c=="function"?c:function(){};var l=void 0;try{l=function(u,d,m){var A=new XMLHttpRequest,L=0,p=function(j){var O=j.length,R=[],k=String.fromCharCode;for(L=0;L<O;L+=1)R.push(k(255&j.charCodeAt(L)));return R.join("")};if(A.open("GET",u,!d),A.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(A.onload=function(){A.status===200?m(p(this.responseText)):m(void 0)}),A.send(null),d&&A.status===200)return p(A.responseText)}(a,o,c)}catch{}return l}(n,e,i)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(Rt.API),function(t){function n(){return($t.html2canvas?Promise.resolve($t.html2canvas):nl(()=>import("./html2canvas.esm-B4goYG9Y.js").then(l=>l.a),[])).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($t.DOMPurify?Promise.resolve($t.DOMPurify):nl(()=>import("./purify.es-dhnUglUx.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var i=function(l){var u=Ne(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 d=document.createElement(l);for(var m in u.className&&(d.className=u.className),u.innerHTML&&u.dompurify&&(d.innerHTML=u.dompurify.sanitize(u.innerHTML)),u.style)d.style[m]=u.style[m];return d},o=function l(u,d){for(var m=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),A=u.firstChild;A;A=A.nextSibling)d!==!0&&A.nodeType===1&&A.nodeName==="SCRIPT"||m.appendChild(l(A,d));return u.nodeType===1&&(u.nodeName==="CANVAS"?(m.width=u.width,m.height=u.height,m.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(m.value=u.value),m.addEventListener("load",function(){m.scrollTop=u.scrollTop,m.scrollLeft=u.scrollLeft},!0)),m},c=function l(u){var d=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),m=l.convert(Promise.resolve(),d);return(m=m.setProgress(1,l,1,[l])).set(u)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(l,u){return l.__proto__=u||c.prototype,l},c.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"}},c.prototype.from=function(l,u){return this.then(function(){switch(u=u||function(d){switch(i(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(l),u){case"string":return this.then(e).then(function(d){return this.set({src:a("div",{innerHTML:l,dompurify:d})})});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.")}})},c.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.")}},c.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=o(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"})},c.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(u){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,u(this.prop.container,d)}).then(function(u){(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(u){var d=this.opt.jsPDF,m=this.opt.fontFaces,A=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,L=Object.assign({async:!0,allowTaint:!0,scale:A,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 L.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;p<m.length;++p){var j=m[p],O=j.src.find(function(R){return R.format==="truetype"});O&&d.addFont(O.url,j.ref.name,j.ref.style)}return L.windowHeight=L.windowHeight||0,L.windowHeight=L.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):L.windowHeight,d.context2d.save(!0),u(this.prop.container,L)}).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)})},c.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})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(l,u,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(l,u):this.outputPdf(l,u)},c.prototype.outputPdf=function(l,u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,u)})},c.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.'}})},c.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)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(l){if(i(l)!=="object")return this;var u=Object.keys(l||{}).map(function(d){if(d in c.template.prop)return function(){this.prop[d]=l[d]};switch(d){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[d]=l[d]}}},this);return this.then(function(){return this.thenList(u)})},c.prototype.get=function(l,u){return this.then(function(){var d=l in c.template.prop?this.prop[l]:this.opt[l];return u?u(d):d})},c.prototype.setMargin=function(l){return this.then(function(){switch(i(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)},c.prototype.setPageSize=function(l){function u(d,m){return Math.floor(d*m/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})},c.prototype.setProgress=function(l,u,d,m){return l!=null&&(this.progress.val=l),u!=null&&(this.progress.state=u),d!=null&&(this.progress.n=d),m!=null&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(l,u,d,m){return this.setProgress(l?this.progress.val+l:null,u||null,d?this.progress.n+d:null,m?this.progress.stack.concat(m):null)},c.prototype.then=function(l,u){var d=this;return this.thenCore(l,u,function(m,A){return d.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(L){return d.updateProgress(null,m),L}).then(m,A).then(function(L){return d.updateProgress(1),L})})},c.prototype.thenCore=function(l,u,d){d=d||Promise.prototype.then;var m=this;l&&(l=l.bind(m)),u&&(u=u.bind(m));var A=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?m:c.convert(Object.assign({},m),Promise.prototype),L=d.call(A,l,u);return c.convert(L,m.__proto__)},c.prototype.thenExternal=function(l,u){return Promise.prototype.then.call(this,l,u)},c.prototype.thenList=function(l){var u=this;return l.forEach(function(d){u=u.thenCore(d)}),u},c.prototype.catch=function(l){l&&(l=l.bind(this));var u=Promise.prototype.catch.call(this,l);return c.convert(u,this)},c.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},c.prototype.error=function(l){return this.then(function(){throw new Error(l)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,Rt.getPageSize=function(l,u,d){if(Ne(l)==="object"){var m=l;l=m.orientation,u=m.unit||u,d=m.format||d}u=u||"mm",d=d||"a4",l=(""+(l||"P")).toLowerCase();var A,L=(""+d).toLowerCase(),p={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":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+u}var j,O=0,R=0;if(p.hasOwnProperty(L))O=p[L][1]/A,R=p[L][0]/A;else try{O=d[1],R=d[0]}catch{throw new Error("Invalid format: "+d)}if(l==="p"||l==="portrait")l="p",R>O&&(j=R,R=O,O=j);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",O>R&&(j=R,R=O,O=j)}return{width:R,height:O,unit:u,k:A,orientation:l}},t.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(Ll):null;var d=new c(u);return u.worker?d:d.from(l).doCallback()}}(Rt.API),Rt.API.addJS=function(t){var n,e,i=function(a){for(var o="",c=0;c<a.length;c++){var l=a[c];if(l==="("||l===")"){for(var u=0,d=c-1;d>=0&&a[d]==="\\";d--)u++;o+=u%2==0?"\\"+l:l}else o+=l}return o}(t);return this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(n+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){n!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+n+" 0 R>>")}),this},function(t){var n;t.events.push(["postPutResources",function(){var e=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),o=0;o<a.length;o++){var c=a[o],l=i.exec(c);if(l!=null){var u=l[1];e.internal.newObjectDeferredBegin(u,!1)}e.internal.write(c)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,m=[];for(o=0;o<d;o++){var A=e.internal.newObject();m.push(A);var L=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+L.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<m.length;o++)e.internal.write("(page_"+(o+1)+")"+m[o]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),t.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 "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(i,a,o){var c={title:a,options:o,children:[]};return i==null&&(i=this.root),i.children.push(c),c},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(i){i.id=e.internal.newObjectDeferred();for(var a=0;a<i.children.length;a++)this.genIds_r(i.children[a])},e.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},e.outline.renderItems=function(i){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<i.children.length;o++){var c=i.children[o];this.objStart(c),this.line("/Title "+this.makeString(c.title)),this.line("/Parent "+this.makeRef(i)),o>0&&this.line("/Prev "+this.makeRef(i.children[o-1])),o<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[o+1])),c.children.length>0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1])));var l=this.count=this.count_r({count:0},c);if(l>0&&this.line("/Count "+l),c.options&&c.options.pageNumber){var u=e.internal.getPageInfo(c.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var d=0;d<i.children.length;d++)this.renderItems(i.children[d])},e.outline.line=function(i){this.ctx.val+=i+`\r
134`},e.outline.makeRef=function(i){return i.id+" 0 R"},e.outline.makeString=function(i){return"("+e.internal.pdfEscape(i)+")"},e.outline.objStart=function(i){this.ctx.val+=`\r
135`+i.id+` 0 obj\r
136<<\r
137`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
138endobj\r
139`},e.outline.count_r=function(i,a){for(var o=0;o<a.children.length;o++)i.count++,this.count_r(i,a.children[o]);return i.count}}])}(Rt.API),function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,i,a,o,c,l){var u,d=this.decode.DCT_DECODE,m=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=c||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,u=function(A){for(var L,p=256*A.charCodeAt(4)+A.charCodeAt(5),j=A.length,O={width:0,height:0,numcomponents:1},R=4;R<j;R+=2){if(R+=p,n.indexOf(A.charCodeAt(R+1))!==-1){L=256*A.charCodeAt(R+5)+A.charCodeAt(R+6),O={width:256*A.charCodeAt(R+7)+A.charCodeAt(R+8),height:L,numcomponents:A.charCodeAt(R+9)};break}p=256*A.charCodeAt(R+2)+A.charCodeAt(R+3)}return O}(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}m={data:e,width:u.width,height:u.height,colorSpace:l,bitsPerComponent:8,filter:d,index:i,alias:a}}return m}}(Rt.API),Rt.API.processPNG=function(t,n,e,i){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var a,o=Z0(t,{checkCrc:!0}),c=o.width,l=o.height,u=o.channels,d=o.palette,m=o.depth;a=d&&u===1?function(tt){for(var z=tt.width,et=tt.height,N=tt.data,C=tt.palette,q=tt.depth,U=!1,it=[],ut=[],pt=void 0,nt=!1,ft=0,At=0;At<C.length;At++){var yt=Th(C[At],4),y=yt[0],T=yt[1],B=yt[2],G=yt[3];it.push(y,T,B),G!=null&&(G===0?(ft++,ut.length<1&&ut.push(At)):G<255&&(nt=!0))}if(nt||ft>1){U=!0,ut=void 0;var $=z*et;pt=new Uint8Array($);for(var Q=new DataView(N.buffer),rt=0;rt<$;rt++){var at=kl(Q,rt,q),dt=Th(C[at],4)[3];pt[rt]=dt}}else ft===0&&(ut=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:N,alphaBytes:pt,needSMask:U,palette:it,mask:ut}}(o):u===2||u===4?function(tt){for(var z=tt.data,et=tt.width,N=tt.height,C=tt.channels,q=tt.depth,U=C===2?"DeviceGray":"DeviceRGB",it=C-1,ut=et*N,pt=it,nt=ut*pt,ft=1*ut,At=Math.ceil(nt*q/8),yt=Math.ceil(ft*q/8),y=new Uint8Array(At),T=new Uint8Array(yt),B=new DataView(z.buffer),G=new DataView(y.buffer),$=new DataView(T.buffer),Q=!1,rt=0;rt<ut;rt++){for(var at=rt*C,dt=0;dt<pt;dt++)Yc(G,kl(B,at+dt,q),rt*pt+dt,q);var xt=kl(B,at+pt,q);xt<(1<<q)-1&&(Q=!0),Yc($,xt,1*rt,q)}return{colorSpace:U,colorsPerPixel:it,sMaskBitsPerComponent:Q?q:void 0,colorBytes:y,alphaBytes:T,needSMask:Q}}(o):function(tt){var z=tt.data,et=tt.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:et,colorsPerPixel:et==="DeviceGray"?1:3,colorBytes:z instanceof Uint16Array?function(N){for(var C=N.length,q=new Uint8Array(2*C),U=new DataView(q.buffer,q.byteOffset,q.byteLength),it=0;it<C;it++)U.setUint16(2*it,N[it],!1);return q}(z):z,needSMask:!1}}(o);var A,L,p,j=a,O=j.colorSpace,R=j.colorsPerPixel,k=j.sMaskBitsPerComponent,Z=j.colorBytes,Y=j.alphaBytes,D=j.needSMask,lt=j.palette,_t=j.mask,mt=null;return i!==Rt.API.image_compression.NONE&&typeof El=="function"?(mt=function(tt){var z;switch(tt){case Rt.API.image_compression.FAST:z=11;break;case Rt.API.image_compression.MEDIUM:z=13;break;case Rt.API.image_compression.SLOW:z=14;break;default:z=12}return z}(i),A=this.decode.FLATE_DECODE,L="/Predictor ".concat(mt," /Colors ").concat(R," /BitsPerComponent ").concat(m," /Columns ").concat(c),t=Hc(Z,Math.ceil(c*R*m/8),R,m,i),D&&(p=Hc(Y,Math.ceil(c*k/8),1,k,i))):(A=void 0,L=void 0,t=Z,D&&(p=Y)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:t,index:n,filter:A,decodeParameters:L,transparency:_t,palette:lt,sMask:p,predictor:mt,width:c,height:l,bitsPerComponent:m,sMaskBitsPerComponent:k,colorSpace:O}}},function(t){t.processGIF89A=function(n,e,i,a){var o=new g5(n),c=o.width,l=o.height,u=[];o.decodeAndBlitFrameRGBA(0,u);var d={data:u,width:c,height:l},m=new Pl(100).encode(d,100);return t.processJPEG.call(this,m,e,i,a)},t.processGIF87A=t.processGIF89A}(Rt.API),oi.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 t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var n=0;n<t;n++){var e=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:a,green:i,blue:e,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},oi.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,n=this.width*this.height*4;if(n>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(n);try{this[t]()}catch(e){Pe.log("bit decode error:"+e)}},oi.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,a=0;a<n;a++)for(var o=this.datav.getUint8(this.pos++,!0),c=i*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var u=this.palette[o>>7-l&1];this.data[c+4*l]=u.blue,this.data[c+4*l+1]=u.green,this.data[c+4*l+2]=u.red,this.data[c+4*l+3]=255}e!==0&&(this.pos+=4-e)}},oi.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,a=0;a<t;a++){var o=this.datav.getUint8(this.pos++,!0),c=i*this.width*4+2*a*4,l=o>>4,u=15&o,d=this.palette[l];if(this.data[c]=d.blue,this.data[c+1]=d.green,this.data[c+2]=d.red,this.data[c+3]=255,2*a+1>=this.width)break;d=this.palette[u],this.data[c+4]=d.blue,this.data[c+4+1]=d.green,this.data[c+4+2]=d.red,this.data[c+4+3]=255}n!==0&&(this.pos+=4-n)}},oi.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*i;if(a<this.palette.length){var c=this.palette[a];this.data[o]=c.red,this.data[o+1]=c.green,this.data[o+2]=c.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}t!==0&&(this.pos+=4-t)}},oi.prototype.bit15=function(){for(var t=this.width%3,n=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(o&n)/n*255|0,l=(o>>5&n)/n*255|0,u=(o>>10&n)/n*255|0,d=o>>15?255:0,m=i*this.width*4+4*a;this.data[m]=u,this.data[m+1]=l,this.data[m+2]=c,this.data[m+3]=d}this.pos+=t}},oi.prototype.bit16=function(){for(var t=this.width%3,n=parseInt("11111",2),e=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var a=this.bottom_up?i:this.height-1-i,o=0;o<this.width;o++){var c=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(c&n)/n*255|0,u=(c>>5&e)/e*255|0,d=(c>>11)/n*255|0,m=a*this.width*4+4*o;this.data[m]=d,this.data[m+1]=u,this.data[m+2]=l,this.data[m+3]=255}this.pos+=t}},oi.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=n*this.width*4+4*e;this.data[c]=o,this.data[c+1]=a,this.data[c+2]=i,this.data[c+3]=255}this.pos+=this.width%4}},oi.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),l=n*this.width*4+4*e;this.data[l]=o,this.data[l+1]=a,this.data[l+2]=i,this.data[l+3]=c}},oi.prototype.getData=function(){return this.data},function(t){t.processBMP=function(n,e,i,a){var o=new oi(n,!1),c=o.width,l=o.height,u={data:o.getData(),width:c,height:l},d=new Pl(100).encode(u,100);return t.processJPEG.call(this,d,e,i,a)}}(Rt.API),Kc.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(n,e,i,a){var o=new Kc(n),c=o.width,l=o.height,u={data:o.getData(),width:c,height:l},d=new Pl(100).encode(u,100);return t.processJPEG.call(this,d,e,i,a)}}(Rt.API),Rt.API.processRGBA=function(t,n,e){for(var i=t.data,a=i.length,o=new Uint8Array(a/4*3),c=new Uint8Array(a/4),l=0,u=0,d=0;d<a;d+=4){var m=i[d],A=i[d+1],L=i[d+2],p=i[d+3];o[l++]=m,o[l++]=A,o[l++]=L,c[u++]=p}var j=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(c),data:j,index:n,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Rt.API.setLanguage=function(t){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:"Rh
139aeto-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"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,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},va=Rt.API,hs=va.getCharWidthsArray=function(t,n){var e,i,a=(n=n||{}).font||this.internal.getFont(),o=n.fontSize||this.internal.getFontSize(),c=n.charSpace||this.internal.getCharSpace(),l=n.widths?n.widths:a.metadata.Unicode.widths,u=l.fof?l.fof:1,d=n.kerning?n.kerning:a.metadata.Unicode.kerning,m=d.fof?d.fof:1,A=n.doKerning!==!1,L=0,p=t.length,j=0,O=l[0]||u,R=[];for(e=0;e<p;e++)i=t.charCodeAt(e),typeof a.metadata.widthOfString=="function"?R.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+c*(1e3/o)||0)/1e3):(L=A&&Ne(d[i])==="object"&&!isNaN(parseInt(d[i][j],10))?d[i][j]/m:0,R.push((l[i]||O)/u+L)),j=i;return R},qc=va.getStringUnitWidth=function(t,n){var e=(n=n||{}).fontSize||this.internal.getFontSize(),i=n.font||this.internal.getFont(),a=n.charSpace||this.internal.getCharSpace();return va.processArabic&&(t=va.processArabic(t)),typeof i.metadata.widthOfString=="function"?i.metadata.widthOfString(t,e,a)/e:hs.apply(this,arguments).reduce(function(o,c){return o+c},0)},Uc=function(t,n,e,i){for(var a=[],o=0,c=t.length,l=0;o!==c&&l+n[o]<e;)l+=n[o],o++;a.push(t.slice(0,o));var u=o;for(l=0;o!==c;)l+n[o]>i&&(a.push(t.slice(u,o)),l=0,u=o),l+=n[o],o++;return u!==o&&a.push(t.slice(u,o)),a},zc=function(t,n,e){e||(e={});var i,a,o,c,l,u,d,m=[],A=[m],L=e.textIndent||0,p=0,j=0,O=t.split(" "),R=hs.apply(this,[" ",e])[0];if(u=e.lineIndent===-1?O[0].length+2:e.lineIndent||0){var k=Array(u).join(" "),Z=[];O.map(function(D){(D=D.split(/\s*\n/)).length>1?Z=Z.concat(D.map(function(lt,_t){return(_t&&lt.length?`
140`:"")+lt})):Z.push(D[0])}),O=Z,u=qc.apply(this,[k,e])}for(o=0,c=O.length;o<c;o++){var Y=0;if(i=O[o],u&&i[0]==`
141`&&(i=i.substr(1),Y=1),L+p+(j=(a=hs.apply(this,[i,e])).reduce(function(D,lt){return D+lt},0))>n||Y){if(j>n){for(l=Uc.apply(this,[i,a,n-(L+p),n]),m.push(l.shift()),m=[l.pop()];l.length;)A.push([l.shift()]);j=a.slice(i.length-(m[0]?m[0].length:0)).reduce(function(D,lt){return D+lt},0)}else m=[i];A.push(m),L=j+u,p=R}else m.push(i),L+=p+j,p=R}return d=u?function(D,lt){return(lt?k:"")+D.join(" ")}:function(D){return D.join(" ")},A.map(d)},va.splitTextToSize=function(t,n,e){var i,a=(e=e||{}).fontSize||this.internal.getFontSize(),o=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var A=this.internal.getFont(m.fontName,m.fontStyle),L="Unicode";return A.metadata[L]?{widths:A.metadata[L].widths||{0:1},kerning:A.metadata[L].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var c=1*this.internal.scaleFactor*n/a;o.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,o.lineIndent=e.lineIndent;var l,u,d=[];for(l=0,u=i.length;l<u;l++)d=d.concat(zc.apply(this,[i[l],c,o]));return d},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",i={},a={},o=0;o<16;o++)i[e[o]]=n[o],a[n[o]]=e[o];var c=function(L){return"0x"+parseInt(L,10).toString(16)},l=t.__fontmetrics__.compress=function(L){var p,j,O,R,k=["{"];for(var Z in L){if(p=L[Z],isNaN(parseInt(Z,10))?j="'"+Z+"'":(Z=parseInt(Z,10),j=(j=c(Z).slice(2)).slice(0,-1)+a[j.slice(-1)]),typeof p=="number")p<0?(O=c(p).slice(3),R="-"):(O=c(p).slice(2),R=""),O=R+O.slice(0,-1)+a[O.slice(-1)];
vendor: 1,109 bytes, line 141
141else{if(Ne(p)!=="object")throw new Error("Don't know what to do with value type "+Ne(p)+".");O=l(p)}k.push(j+O)}return k.push("}"),k.join("")},u=t.__fontmetrics__.uncompress=function(L){if(typeof L!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,j,O,R,k={},Z=1,Y=k,D=[],lt="",_t="",mt=L.length-1,tt=1;tt<mt;tt+=1)(R=L[tt])=="'"?p?(O=p.join(""),p=void 0):p=[]:p?p.push(R):R=="{"?(D.push([Y,O]),Y={},O=void 0):R=="}"?((j=D.pop())[0][j[1]]=Y,O=void 0,Y=j[0]):R=="-"?Z=-1:O===void 0?i.hasOwnProperty(R)?(lt+=i[R],O=parseInt(lt,16)*Z,Z=1,lt=""):lt+=R:i.hasOwnProperty(R)?(_t+=i[R],Y[O]=parseInt(_t,16)*Z,Z=1,O=void 0,_t=""):_t+=R;return k},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},A
vendor: 14,693 bytes, line 141
141={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}}}")}};
vendor: 8,485 bytes, lines 141-169
141t.events.push(["addFont",function(L){var p=L.font,j=A.Unicode[p.postScriptName];j&&(p.metadata.Unicode={},p.metadata.Unicode.widths=j.widths,p.metadata.Unicode.kerning=j.kerning);var O=m.Unicode[p.postScriptName];O&&(p.metadata.Unicode.encoding=O,p.encoding=O.codePages[0])}])}(Rt.API),function(t){var n=function(e){for(var i=e.length,a=new Uint8Array(i),o=0;o<i;o++)a[o]=e.charCodeAt(o);return a};t.API.events.push(["addFont",function(e){var i=void 0,a=e.font,o=e.instance;if(!a.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(i=o.existsFileInVFS(a.postScriptName)===!1?o.loadFile(a.postScriptName):o.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(c,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(fs(l)),c.metadata=t.API.TTFFont.open(l),c.metadata.Unicode=c.metadata.Unicode||{encoding:{},kerning:{},widths:[]},c.metadata.glyIdsUsed=[0]})(a,i)}}])}(Rt),Rt.API.addSvgAsImage=function(t,n,e,i,a,o,c,l){if(isNaN(n)||isNaN(e))throw Pe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Pe.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=i,u.height=a;var d=u.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,u.width,u.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},A=this;return($t.canvg?Promise.resolve($t.canvg):nl(()=>import("./index.es-ZSxWLqdt.js"),__vite__mapDeps([0,1,2,3]))).catch(function(L){return Promise.reject(new Error("Could not load canvg: "+L))}).then(function(L){return L.default?L.default:L}).then(function(L){return L.fromString(d,t,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(L){return L.render(m)}).then(function(){A.addImage(u.toDataURL("image/jpeg",1),n,e,i,a,c,l)})},Rt.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var a=0;a<this.internal.pages[i].length;a++)this.internal.pages[i][a]=this.internal.pages[i][a].replace(n,e);return this},Rt.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var i,a,o,c={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(c),u=[],d=0,m=0,A=0;function L(j,O){var R,k=!1;for(R=0;R<j.length;R+=1)j[R]===O&&(k=!0);return k}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(c)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var p=l.length;for(A=0;A<p;A+=1)e[l[A]].value=e[l[A]].defaultValue,e[l[A]].explicitSet=!1}if(Ne(t)==="object"){for(a in t)if(o=t[a],L(l,a)&&o!==void 0){if(e[a].type==="boolean"&&typeof o=="boolean")e[a].value=o;else if(e[a].type==="name"&&L(e[a].valueSet,o))e[a].value=o;else if(e[a].type==="integer"&&Number.isInteger(o))e[a].value=o;else if(e[a].type==="array"){for(d=0;d<o.length;d+=1)if(i=!0,o[d].length===1&&typeof o[d][0]=="number")u.push(String(o[d]-1));else if(o[d].length>1){for(m=0;m<o[d].length;m+=1)typeof o[d][m]!="number"&&(i=!1);i===!0&&u.push([o[d][0]-1,o[d][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 j,O=[];for(j in e)e[j].explicitSet===!0&&(e[j].type==="name"?O.push("/"+j+" /"+e[j].value):O.push("/"+j+" "+e[j].value));O.length!==0&&this.internal.write(`/ViewerPreferences
142<<
143`+O.join(`
144`)+`
145>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},Rt.API.addMetadata=function(t,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:t,namespaceUri:n??"http://jspdf.default.namespaceuri/",rawXml:typeof n=="boolean"&&n},this.internal.events.subscribe("putCatalog",b5),this.internal.events.subscribe("postPutResources",m5)),this},function(t){var n=t.API,e=n.pdfEscape16=function(o,c){for(var l,u=c.metadata.Unicode.widths,d=["","0","00","000","0000"],m=[""],A=0,L=o.length;A<L;++A){if(l=c.metadata.characterToGlyph(o.charCodeAt(A)),c.metadata.glyIdsUsed.push(l),c.metadata.toUnicode[l]=o.charCodeAt(A),u.indexOf(l)==-1&&(u.push(l),u.push([parseInt(c.metadata.widthOfGlyph(l),10)])),l=="0")return m.join("");l=l.toString(16),m.push(d[4-l.length],l)}return m.join("")},i=function(o){var c,l,u,d,m,A,L;for(m=`/CIDInit /ProcSet findresource begin
14612 dict begin
147begincmap
148/CIDSystemInfo <<
149  /Registry (Adobe)
150  /Ordering (UCS)
151  /Supplement 0
152>> def
153/CMapName /Adobe-Identity-UCS def
154/CMapType 2 def
1551 begincodespacerange
156<0000><ffff>
157endcodespacerange`,u=[],A=0,L=(l=Object.keys(o).sort(function(p,j){return p-j})).length;A<L;A++)c=l[A],u.length>=100&&(m+=`
158`+u.length+` beginbfchar
159`+u.join(`
160`)+`
161endbfchar`,u=[]),o[c]!==void 0&&o[c]!==null&&typeof o[c].toString=="function"&&(d=("0000"+o[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),u.push("<"+c+"><"+d+">"));return u.length&&(m+=`
162`+u.length+` beginbfchar
163`+u.join(`
164`)+`
165endbfchar
166`),m+`endcmap
167CMapName currentdict /CMap defineresource pop
168end
169end`};n.events.push(["putFont",function(o){(function(c){var l=c.font,u=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="Identity-H"){for(var A=l.metadata.Unicode.widths,L=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",j=0;j<L.length;j++)p+=String.fromCharCode(L[j]);var O=d();m({data:p,addLength1:!0,objectId:O}),u("endobj");var R=d();m({data:i(l.metadata.toUnicode),addLength1:!0,objectId:R}),u("endobj");var k=d();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+_a(l.fontName)),u("/FontFile2 "+O+" 0 R"),u("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),u("/Flags "+l.metadata.flags),u("/StemV "+l.metadata.stemV),u("/ItalicAngle "+l.metadata.italicAngle),u("/Asce
169nt "+l.metadata.ascender),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u(">>"),u("endobj");var Z=d();u("<<"),u("/Type /Font"),u("/BaseFont /"+_a(l.fontName)),u("/FontDescriptor "+k+" 0 R"),u("/W "+t.API.PDFObject.convert(A)),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=d(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+R+" 0 R"),u("/BaseFont /"+_a(l.fontName)),u("/Encoding /"+l.encoding),u("/DescendantFonts ["+Z+" 0 R]"),u(">>"),u("endobj"),l.isAlreadyPutted=!0}})(o)}]),n.events.push(["putFont",function(o){(function(c){var l=c.font,u=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var A=l.metadata.rawData,L="",p=0;p<A.length;p++)L+=String.fromCharCode(A[p]);var j=d();m({data:L,addLength1:!0,objectId:j}),u("endobj");var O=d();m({data:i(l.metadata.toUnicode),addLength1:!0,objectId:O}),u("endobj");var R=d();u("<<"),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u("/StemV "+l.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+j+" 0 R"),u("/Flags 96"),u("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),u("/FontName /"+_a(l.fontName)),u("/ItalicAngle "+l.metadata.italicAngle),u("/Asce
169nt "+l.metadata.ascender),u(">>"),u("endobj"),l.objectNumber=d();for(var k=0;k<l.metadata.hmtx.widths.length;k++)l.metadata.hmtx.widths[k]=parseInt(l.metadata.hmtx.widths[k]*(1e3/l.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+O+" 0 R/BaseFont/"+_a(l.fontName)+"/FontDescriptor "+R+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),u("endobj"),l.isAlreadyPutted=!0}})(o)}]);var a=function(o){var c,l=o.text||"",u=o.x,d=o.y,m=o.options||{},A=o.mutex||{},L=A.pdfEscape,p=A.activeFontKey,j=A.fonts,O=p,R="",k=0,Z="",Y=j[O].encoding;if(j[O].encoding!=="Identity-H")return{text:l,x:u,y:d,options:m,mutex:A};for(Z=l,O=p,Array.isArray(l)&&(Z=l[0]),k=0;k<Z.length;k+=1)j[O].metadata.hasOwnProperty("cmap")&&(c=j[O].metadata.cmap.unicode.codeMap[Z[k].charCodeAt(0)]),c||Z[k].charCodeAt(0)<256&&j[O].metadata.hasOwnProperty("Unicode")?R+=Z[k]:R+="";var D="";return parseInt(O.slice(1))<14||Y==="WinAnsiEncoding"?D=L(R,O).split("").map(function(lt){return lt.charCodeAt(0).toString(16)}).join(""):Y==="Identity-H"&&(D=e(R,j[O])),A.isHex=!0,{text:D,x:u,y:d,options:m,mutex:A}};n.events.push(["postProcessText",function(o){var c=o.text||"",l=[],u={text:c,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(c)){var d=0;for(d=0;d<c.length;d+=1)Array.isArray(c[d])&&c[d].length===3?l.push([a(Object.assign({},u,{text:c[d][0]})).text,c[d][1],c[d][2]]):l.push(a(Object.assign({},u,{text:c[d]})).text);o.text=l}else o.text=a(Object.assign({},u,{text:c})).text}])}(Rt),function(t){var n=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,i){return n.call(this),this.internal.vFS[e]=i,this},t.getFileFromVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(Rt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(i){var a,o,c,l,u,d,m,A=n,L=[[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]],p=[[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]],j={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},O={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},R=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],k=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)$/),Z=!1,Y=0;this.__bidiEngine__={};var D=function(N){var C=N.charCodeAt(),q=C>>8,U=O[q];return U!==void 0?A[256*U+(255&C)]:q===252||q===253?"AL":k.test(q)?"L":q===8?"R":"N"},lt=function(N){for(var C,q=0;q<N.length;q++){if((C=D(N.charAt(q)))==="L")return!1;if(C==="R")return!0}return!1},_t=function(N,C,q,U){var it,ut,pt,nt,ft=C[U];switch(ft){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Z=!1;break;case"N":case"AN":break;case"EN":Z&&(ft="AN");break;case"AL":Z=!0,ft="R";break;case"WS":case"BN":ft="N";break;case"CS":U<1||U+1>=C.length||(it=q[U-1])!=="EN"&&it!=="AN"||(ut=C[U+1])!=="EN"&&ut!=="AN"?ft="N":Z&&(ut="AN"),ft=ut===it?ut:"N";break;case"ES":ft=(it=U>0?q[U-1]:"B")==="EN"&&U+1<C.length&&C[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&q[U-1]==="EN"){ft="EN";break}if(Z){ft="N";break}for(pt=U+1,nt=C.length;pt<nt&&C[pt]==="ET";)pt++;ft=pt<nt&&C[pt]==="EN"?"EN":"N";break;case"NSM":if(c&&!l){for(nt=C.length,pt=U+1;pt<nt&&C[pt]==="NSM";)pt++;if(pt<nt){var At=N[U],yt=At>=1425&&At<=2303||At===64286;if(it=C[pt],yt&&(it==="R"||it==="AL")){ft="R";break}}}ft=U<1||(it=C[U-1])==="B"?"N":q[U-1];break;case"B":Z=!1,a=!0,ft=Y;break;case"S":o=!0,ft="N"}return ft},mt=function(N,C,q){var U=N.split("");return q&&tt(U,q,{hiLevel:Y}),U.reverse(),C&&C.reverse(),U.join("")},tt=function(N,C,q){var U,it,ut,pt,nt,ft=-1,At=N.length,yt=0,y=[],T=Y?p:L,B=[];for(Z=!1,a=!1,o=!1,it=0;it<At;it++)B[it]=D(N[it]);for(ut=0;ut<At;ut++){if(nt=yt,y[ut]=_t(N,B,y,ut),U=240&(yt=T[nt][j[y[ut]]]),yt&=15,C[ut]=pt=T[yt][5],U>0)if(U===16){for(it=ft;it<ut;it++)C[it]=1;ft=-1}else ft=-1;if(T[yt][6])ft===-1&&(ft=ut);else if(ft>-1){for(it=ft;it<ut;it++)C[it]=pt;ft=-1}B[ut]==="B"&&(C[ut]=0),q.hiLevel|=pt}o&&function(G,$,Q){for(var rt=0;rt<Q;rt++)if(G[rt]==="S"){$[rt]=Y;for(var at=rt-1;at>=0&&G[at]==="WS";at--)$[at]=Y}}(B,C,At)},z=function(N,C,q,U,it){if(!(it.hiLevel<N)){if(N===1&&Y===1&&!a)return C.reverse(),void(q&&q.reverse());for(var ut,pt,nt,ft,At=C.length,yt=0;yt<At;){if(U[yt]>=N){for(nt=yt+1;nt<At&&U[nt]>=N;)nt++;for(ft=yt,pt=nt-1;ft<pt;
vendor: 33,325 bytes, lines 169-170
169ft++,pt--)ut=C[ft],C[ft]=C[pt],C[pt]=ut,q&&(ut=q[ft],q[ft]=q[pt],q[pt]=ut);yt=nt}yt++}}},et=function(N,C,q){var U=N.split(""),it={hiLevel:Y};return q||(q=[]),tt(U,q,it),function(ut,pt,nt){if(nt.hiLevel!==0&&m)for(var ft,At=0;At<ut.length;At++)pt[At]===1&&(ft=R.indexOf(ut[At]))>=0&&(ut[At]=R[ft+1])}(U,q,it),z(2,U,C,q,it),z(1,U,C,q,it),U.join("")};return this.__bidiEngine__.doBidiReorder=function(N,C,q){if(function(it,ut){if(ut)for(var pt=0;pt<it.length;pt++)ut[pt]=pt;l===void 0&&(l=lt(it)),d===void 0&&(d=lt(it))}(N,C),c||!u||d)if(c&&u&&l^d)Y=l?1:0,N=mt(N,C,q);else if(!c&&u&&d)Y=l?1:0,N=et(N,C,q),N=mt(N,C);else if(!c||l||u||d){if(c&&!u&&l^d)N=mt(N,C),l?(Y=0,N=et(N,C,q)):(Y=1,N=et(N,C,q),N=mt(N,C));else if(c&&l&&!u&&d)Y=1,N=et(N,C,q),N=mt(N,C);else if(!c&&!u&&l^d){var U=m;l?(Y=1,N=et(N,C,q),Y=0,m=!1,N=et(N,C,q),m=U):(Y=0,N=et(N,C,q),N=mt(N,C),Y=1,m=!1,N=et(N,C,q),m=U,N=mt(N,C))}}else Y=0,N=et(N,C,q);else Y=l?1:0,N=et(N,C,q);return N},this.__bidiEngine__.setOptions=function(N){N&&(c=N.isInputVisual,u=N.isOutputVisual,l=N.isInputRtl,d=N.isOutputRtl,m=N.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),this.__bidiEngine__};var n=["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 t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(i){var a=i.text;i.x,i.y;var o=i.options||{};i.mutex,o.lang;var c=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,e.setOptions(o),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(c=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?c.push([e.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):c.push([e.doBidiReorder(a[l])]);i.text=c}else i.text=e.doBidiReorder(a);e.setOptions({isInputVisual:!0})}])}(Rt),Rt.API.TTFFont=function(){function t(n){var e;if(this.rawData=n,e=this.contents=new dr(n),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new C5(this),this.registerTTF()}return t.open=function(n){return new t(n)},t.prototype.parse=function(){return this.directory=new v5(this.contents),this.head=new _5(this),this.name=new L5(this),this.cmap=new Ju(this),this.toUnicode={},this.hhea=new y5(this),this.maxp=new S5(this),this.hmtx=new k5(this),this.post=new A5(this),this.os2=new x5(this),this.loca=new F5(this),this.glyf=new P5(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]},t.prototype.registerTTF=function(){var n,e,i,a,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var c,l,u,d;for(d=[],c=0,l=(u=this.bbox).length;c<l;c++)n=u[c],d.push(Math.round(n*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(i=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+i)):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=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===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")},t.prototype.characterToGlyph=function(n){var e;return((e=this.cmap.unicode)!=null?e.codeMap[n]:void 0)||0},t.prototype.widthOfGlyph=function(n){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*e},t.prototype.widthOfString=function(n,e,i){var a,o,c,l;for(c=0,o=0,l=(n=""+n).length;0<=l?o<l:o>l;o=0<=l?++o:--o)a=n.charCodeAt(o),c+=this.widthOfGlyph(this.characterToGlyph(a))+i*(1e3/e)||0;return c*(e/1e3)},t.prototype.lineHeight=function(n,e){var i;return e==null&&(e=!1),i=e?this.lineGap:0,(this.ascender+i-this.decender)/1e3*n},t}();var li,dr=function(){function t(n){this.data=n??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(n){return this.data[this.pos++]=n},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt32=function(){var n;return(n=this.readUInt32())>=2147483648?n-4294967296:n},t.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt16=function(){var n;return(n=this.readUInt16())>=32768?n-65536:n},t.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},t.prototype.readString=function(n){var e,i;for(i=[],e=0;0<=n?e<n:e>n;e=0<=n?++e:--e)i[e]=String.fromCharCode(this.readByte());return i.join("")},t.prototype.writeString=function(n){var e,i,a;for(a=[],e=0,i=n.length;0<=i?e<i:e>i;e=0<=i?++e:--e)a.push(this.writeByte(n.charCodeAt(e)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(n){return this.writeInt16(n)},t.prototype.readLongLong=function(){var n,e,i,a,o,c,l,u;return n=this.readByte(),e=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),c=this.readByte(),l=this.readByte(),u=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^e)+1099511627776*(255^i)+4294967296*(255^a)+16777216*(255^o)+65536*(255^c)+256*(255^l)+(255^u)+1):72057594037927940*n+281474976710656*e+1099511627776*i+4294967296*a+16777216*o+65536*c+256*l+u},t.prototype.writeLongLong=function(n){var e,i;return e=Math.floor(n/4294967296),i=4294967295&n,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(n){return this.writeInt32(n)},t.prototype.read=function(n){var e,i;for(e=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)e.push(this.readByte());return e},t.prototype.write=function(n){var e,i,a,o;for(o=[],i=0,a=n.length;i<a;i++)e=n[i],o.push(this.writeByte(e));return o},t}(),v5=function(){var t;function n(e){var i,a,o;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,o=this.tableCount;0<=o?a<o:a>o;a=0<=o?++a:--a)i={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[i.tag]=i}return n.prototype.encode=function(e){var i,a,o,c,l,u,d,m,A,L,p,j,O;for(O in p=Object.keys(e).length,u=Math.log(2),A=16*Math.floor(Math.log(p)/u),c=Math.floor(A/u),m=16*p-A,(a=new dr).writeInt(this.scalarType),a.writeShort(p),a.writeShort(A),a.writeShort(c),a.writeShort(m),o=16*p,d=a.pos+o,l=null,j=[],e)for(L=e[O],a.writeString(O),a.writeInt(t(L)),a.writeInt(d),a.writeInt(L.length),j=j.concat(L),O==="head"&&(l=d),d+=L.length;d%4;)j.push(0),d++;return a.write(j),i=2981146554-t(a.data),a.pos=l+8,a.writeUInt32(i),a.data},t=function(e){var i,a,o,c;for(e=Qu.call(e);e.length%4;)e.push(0);for(o=new dr(e),a=0,i=0,c=e.length;i<c;i=i+=4)a+=o.readUInt32();return 4294967295&a},n}(),w5={}.hasOwnProperty,Li=function(t,n){for(var e in n)w5.call(n,e)&&(t[e]=n[e]);function i(){this.constructor=t}return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};li=function(){function t(n){var e;this.file=n,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 t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var _5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="head",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},t.prototype.encode=function(n){var e;return(e=new dr).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(n),e.writeShort(this.glyphDataFormat),e.data},t}(),Xc=function(){function t(n,e){var i,a,o,c,l,u,d,m,A,L,p,j,O,R,k,Z,Y;switch(this.platformID=n.readUInt16(),this.encodingID=n.readShort(),this.offset=e+n.readInt(),A=n.pos,n.pos=this.offset,this.format=n.readUInt16(),this.length=n.readUInt16(),this.language=n.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]=n.readByte();break;case 4:for(p=n.readUInt16(),L=p/2,n.pos+=6,o=function(){var D,lt;for(lt=[],u=D=0;0<=L?D<L:D>L;u=0<=L?++D:--D)lt.push(n.readUInt16());return lt}(),n.pos+=2,O=function(){var D,lt;for(lt=[],u=D=0;0<=L?D<L:D>L;u=0<=L?++D:--D)lt.push(n.readUInt16());return lt}(),d=function(){var D,lt;for(lt=[],u=D=0;0<=L?D<L:D>L;u=0<=L?++D:--D)lt.push(n.readUInt16());return lt}(),m=function(){var D,lt;for(lt=[],u=D=0;0<=L?D<L:D>L;u=0<=L?++D:--D)lt.push(n.readUInt16());return lt}(),a=(this.length-n.pos+this.offset)/2,l=function(){var D,lt;for(lt=[],u=D=0;0<=a?D<a:D>a;u=0<=a?++D:--D)lt.push(n.readUInt16());return lt}(),u=k=0,Y=o.length;k<Y;u=++k)for(R=o[u],i=Z=j=O[u];j<=R?Z<=R:Z>=R;i=j<=R?++Z:--Z)m[u]===0?c=i+d[u]:(c=l[m[u]/2+(i-j)-(L-u)]||0)!==0&&(c+=d[u]),this.codeMap[i]=65535&c}n.pos=A}return t.encode=function(n,e){var i,a,o,c,l,u,d,m,A,L,p,j,O,R,k,Z,Y,D,lt,_t,mt,tt,z,et,N,C,q,U,it,ut,pt,nt,ft,At,yt,y,T,B,G,$,Q,rt,at,dt,xt,St;switch(U=new dr,c=Object.keys(n).sort(function(kt,zt){return kt-zt}),e){case"macroman":for(O=0,R=function(){var kt=[];for(j=0;j<256;++j)kt.push(0);return kt}(),Z={0:0},o={},it=0,ft=c.length;it<ft;it++)Z[at=n[a=c[it]]]==null&&(Z[at]=++O),o[a]={old:n[a],new:Z[n[a]]},R[a]=Z[n[a]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(R),{charMap:o,subtable:U.data,maxGlyphID:O+1};case"unicode":for(C=[],A=[],Y=0,Z={},i={},k=d=null,ut=0,At=c.length;ut<At;ut++)Z[lt=n[a=c[ut]]]==null&&(Z[lt]=++Y),i[a]={old:lt,new:Z[lt]},l=Z[lt]-a,k!=null&&l===d||(k&&A.push(k),C.push(a),d=l),k=a;for(k&&A.push(k),A.push(65535),C.push(65535),et=2*(z=C.length),tt=2*Math.pow(Math.log(z)/Math.LN2,2),L=Math.log(tt/2)/Math.LN2,mt=2*z-tt,u=[],_t=[],p=[],j=pt=0,yt=C.length;pt<yt;j=++pt){if(N=C[j],m=A[j],N===65535){u.push(0),_t.push(0);break}if(N-(q=i[N].new)>=32768)for(u.push(0),_t.push(2*(p.length+z-j)),a=nt=N;N<=m?nt<=m:nt>=m;a=N<=m?++nt:--nt)p.push(i[a].new);else u.push(q-N),_t.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*z+2*p.length),U.writeUInt16(0),U.writeUInt16(et),U.writeUInt16(tt),U.writeUInt16(L),U.writeUInt16(mt),Q=0,y=A.length;Q<y;Q++)a=A[Q],U.writeUInt16(a);for(U.writeUInt16(0),rt=0,T=C.length;rt<T;rt++)a=C[rt],U.writeUInt16(a);for(dt=0,B=u.length;dt<B;dt++)l=u[dt],U.writeUInt16(l);for(xt=0,G=_t.length;xt<G;xt++)D=_t[xt],U.writeUInt16(D);for(St=0,$=p.length;St<$;St++)O=p[St],U.writeUInt16(O);return{charMap:i,subtable:U.data,maxGlyphID:Y+1}}},t}(),Ju=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="cmap",t.prototype.parse=function(n){var e,i,a;for(n.pos=this.offset,this.version=n.readUInt16(),a=n.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)e=new Xc(n,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(n,e){var i,a;return e==null&&(e="macroman"),i=Xc.encode(n,e),(a=new dr).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},t}(),y5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t}(),x5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var e,i;for(i=[],e=0;e<10;++e)i.push(n.readByte());return i}(),this.charRange=function(){var e,i;for(i=[],e=0;e<4;++e)i.push(n.readInt());return i}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var e,i;for(i=[],e=0;e<2;e=++e)i.push(n.readInt());return i}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t}(),A5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="post",t.prototype.parse=function(n){var e,i,a;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(i=n.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?o<i:o>i;o=0<=i?++o:--o)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],a=[];n.pos<this.offset+this.length;)e=n.readByte(),a.push(this.names.push(n.readString(e)));return a;case 151552:return i=n.readUInt16(),this.offsets=n.read(i);case 262144:return this.map=(function(){var c,l,u;for(u=[],o=c=0,l=this.file.maxp.numGlyphs;0<=l?c<l:c>l;o=0<=l?++c:--c)u.push(n.readUInt32());return u}).call(this)}},t}(),N5=function(t,n){this.raw=t,this.length=t.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID},L5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="name",t.prototype.parse=function(n){var e,i,a,o,c,l,u,d,m,A,L;for(n.pos=this.offset,n.readShort(),e=n.readShort(),l=n.readShort(),i=[],o=0;0<=e?o<e:o>e;o=0<=e?++o:--o)i.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+l+n.readShort()});for(u={},o=m=0,A=i.length;m<A;o=++m)a=i[o],n.pos=a.offset,d=n.readString(a.length),c=new N5(d,a),u[L=a.nameID]==null&&(u[L]=[]),u[a.nameID].push(c);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]},t}(),S5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="maxp",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},t}(),k5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="hmtx",t.prototype.parse=function(n){var e,i,a,o,c,l,u;for(n.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:n.readUInt16(),lsb:n.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var d,m;for(m=[],e=d=0;0<=a?d<a:d>a;e=0<=a?++d:--d)m.push(n.readInt16());return m}(),this.widths=(function(){var d,m,A,L;for(L=[],d=0,m=(A=this.metrics).length;d<m;d++)o=A[d],L.push(o.advance);return L}).call(this),i=this.widths[this.widths.length-1],u=[],e=c=0;0<=a?c<a:c>a;e=0<=a?++c:--c)u.push(this.widths.push(i));return u},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t}(),Qu=[].slice,P5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var e,i,a,o,c,l,u,d,m,A;return n in this.cache?this.cache[n]:(o=this.file.loca,e=this.file.contents,i=o.indexOf(n),(a=o.lengthOf(n))===0?this.cache[n]=null:(e.pos=this.offset+i,c=(l=new dr(e.read(a))).readShort(),d=l.readShort(),A=l.readShort(),u=l.readShort(),m=l.readShort(),this.cache[n]=c===-1?new I5(l,d,A,u,m):new E5(l,c,d,A,u,m),this.cache[n]))},t.prototype.encode=function(n,e,i){var a,o,c,l,u;for(c=[],o=[],l=0,u=e.length;l<u;l++)a=n[e[l]],o.push(c.length),a&&(c=c.concat(a.encode(i)));return o.push(c.length),{table:c,offsets:o}},t}(),E5=function(){function t(n,e,i,a,o,c){this.raw=n,this.numberOfContours=e,this.xMin=i,this.yMin=a,this.xMax=o,this.yMax=c,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),I5=function(){function t(n,e,i,a,o){var c,l;for(this.raw=n,this.xMin=e,this.yMin=i,this.xMax=a,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],c=this.raw;l=c.readShort(),this.glyphOffsets.push(c.pos),this.glyphIDs.push(c.readUInt16()),32&l;)c.pos+=1&l?4:2,128&l?c.pos+=8:64&l?c.pos+=4:8&l&&(c.pos+=2)}return t.prototype.encode=function(){var n,e,i;for(e=new dr(Qu.call(this.raw.data)),n=0,i=this.glyphIDs.length;n<i;++n)e.pos=this.glyphOffsets[n];return e.data},t}(),F5=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,li),t.prototype.tag="loca",t.prototype.parse=function(n){var e,i;return n.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=2)o.push(2*n.readUInt16());return o}).call(this):(function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=4)o.push(n.readUInt32());return o}).call(this)},t.prototype.indexOf=function(n){return this.offsets[n]},t.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},t.prototype.encode=function(n,e){for(var i=new Uint32Array(this.offsets.length),a=0,o=0,c=0;c<i.length;++c)if(i[c]=a,o<e.length&&e[o]==c){++o,i[c]=a;var l=this.offsets[c],u=this.offsets[c+1]-l;u>0&&(a+=u)}for(var d=new Array(4*i.length),m=0;m<i.length;++m)d[4*m+3]=255&i[m],d[4*m+2]=(65280&i[m])>>8,d[4*m+1]=(16711680&i[m])>>16,d[4*m]=(4278190080&i[m])>>24;return d},t}(),C5=function(){function t(n){this.font=n,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var n,e,i,a,o;for(e in a=this.font.cmap.tables[0].codeMap,n={},o=this.subset)i=o[e],n[e]=a[i];return n},t.prototype.glyphsFor=function(n){var e,i,a,o,c,l,u;for(a={},c=0,l=n.length;c<l;c++)a[o=n[c]]=this.font.glyf.glyphFor(o);for(o in e=[],a)(i=a[o])!=null&&i.compound&&e.push.apply(e,i.glyphIDs);if(e.length>0)for(o in u=this.glyphsFor(e))i=u[o],a[o]=i;return a},t.prototype.encode=function(n,e){var i,a,o,c,l,u,d,m,A,L,p,j,O,R,k;for(a in i=Ju.encode(this.generateCmap(),"unicode"),c=this.glyphsFor(n),p={0:0},k=i.charMap)p[(u=k[a]).old]=u.new;for(j in L=i.maxGlyphID,c)j in p||(p[j]=L++);return m=function(Z){var Y,D;for(Y in D={},Z)D[Z[Y]]=Y;return D}(p),A=Object.keys(m).sort(function(Z,Y){return Z-Y}),O=function(){var Z,Y,D;for(D=[],Z=0,Y=A.length;Z<Y;Z++)l=A[Z],D.push(m[l]);return D}(),o=this.font.glyf.encode(c,O,p),d=this.font.loca.encode(o.offsets,O),R={cmap:this.font.cmap.raw(),glyf:o.table,loca:d,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&&(R["OS/2"]=this.font.os2.raw()),this.font.directory.encode(R)},t}();Rt.API.PDFObject=function(){var t;function n(){}return t=function(e,i){return(Array(i+1).join("0")+e).slice(-i)},n.convert=function(e){var i,a,o,c;if(Array.isArray(e))return"["+function(){var l,u,d;for(d=[],l=0,u=e.length;l<u;l++)i=e[l],d.push(n.convert(i));return d}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(a in o=["<<"],e)c=e[a],o.push("/"+a+" "+n.convert(c));return o.push(">>"),o.join(`
170`)}return""+e},n}();const M5=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:s5,AcroFormAppearance:Et,AcroFormButton:an,AcroFormCheckBox:ao,AcroFormChoiceField:Mr,AcroFormComboBox:qr,AcroFormEditBox:io,AcroFormListBox:Dr,AcroFormPasswordField:oo,AcroFormPushButton:ro,AcroFormRadioButton:Ur,AcroFormTextField:fr,GState:mo,ShadingPattern:or,TilingPattern:Br,default:Rt,jsPDF:Rt},Symbol.toStringTag,{value:"Module"}));
170export{Ne as _,M5 as j};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.