PageSourceSearch

https://www.exxactcorp.com/chunk-BCJML5RI.js

js exxactcorp.com collected 2026-09-24 17:54:16 UTC 531,808 bytes, 79 lines download raw bytes

vendor: 4,241 bytes, line 1
1import{a as qu,b as Hu}from"./chunk-HQOOZOIC.js";import"./chunk-GOKBYJDS.js";import{l as Uu}from"./chunk-4KBZXVKG.js";import{$ as j,Aa as Un,B as H,Bb as Ce,Cb as fu,Cc as Us,Db as uu,E as tu,Eb as hu,F as bi,Fb as pu,Gb as du,Gd as zu,H as eu,I as Bs,Ja as La,L as iu,M as Ft,Na as ru,Oa as ou,Pa as au,Ua as zs,Uc as Lu,Vc as Eu,Wb as gu,Xc as Iu,Yb as mu,Yc as Pu,Zb as _u,_ as it,_b as vu,aa as X,ac as xu,ba as _e,ca as gn,da as mn,ea as qe,ec as yu,ed as Tu,ee as ju,fa as De,fc as js,g as Ms,ga as Z,gd as Fu,hd as Ou,ic as wu,k as je,ka,kc as bu,l as Ue,ma as _n,md as Ru,oa as lt,ob as nc,pa as Ke,qa as Yt,qb as su,qc as Su,rc as Cu,t as Xf,tb as lu,uc as Au,v as Jf,vb as rc,wa as nu,wb as cu,wc as ku,wd as Du,x as dr,yd as Mu,z as Qf,za as Na,zc as Nu,zd as Bu}from"./chunk-NAHKF5ON.js";import{a as Me}from"./chunk-FK6H3RFT.js";import{g as li}from"./chunk-RA2WU32H.js";var Ln=Uint8Array,nn=Uint16Array,cc=Int32Array,fc=new Ln([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),uc=new Ln([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Vu=new Ln([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Zu=function(e,i){for(var t=new nn(31),n=0;n<31;++n)t[n]=i+=1<<e[n-1];for(var r=new cc(t[30]),n=1;n<30;++n)for(var o=t[n];o<t[n+1];++o)r[o]=o-t[n]<<5|n;return{b:t,r}},Yu=Zu(fc,2),f1=Yu.b,ac=Yu.r;f1[28]=258,ac[258]=28;var Ku=Zu(uc,0),E_=Ku.b,$u=Ku.r,sc=new nn(32768);for(Ee=0;Ee<32768;++Ee)gr=(Ee&43690)>>1|(Ee&21845)<<1,gr=(gr&52428)>>2|(gr&13107)<<2,gr=(gr&61680)>>4|(gr&3855)<<4,sc[Ee]=((gr&65280)>>8|(gr&255)<<8)>>1;var gr,Ee,Pa=function(e,i,t){for(var n=e.length,r=0,o=new nn(i);r<n;++r)e[r]&&++o[e[r]-1];var c=new nn(i);for(r=1;r<i;++r)c[r]=c[r-1]+o[r-1]<<1;var s;if(t){s=new nn(1<<i);var f=15-i;for(r=0;r<n;++r)if(e[r])for(var h=r<<4|e[r],g=i-e[r],y=c[e[r]-1]++<<g,S=y|(1<<g)-1;y<=S;++y)s[sc[y]>>f]=h}else for(s=new nn(n),r=0;r<n;++r)e[r]&&(s[r]=sc[c[e[r]-1]++]>>15-e[r]);return s},lo=new Ln(288);for(Ee=0;Ee<144;++Ee)lo[Ee]=8;var Ee;for(Ee=144;Ee<256;++Ee)lo[Ee]=9;var Ee;for(Ee=256;Ee<280;++Ee)lo[Ee]=7;var Ee;for(Ee=280;Ee<288;++Ee)lo[Ee]=8;var Ee,qs=new Ln(32);for(Ee=0;Ee<32;++Ee)qs[Ee]=5;var Ee,u1=Pa(lo,9,0);var h1=Pa(qs,5,0);var Xu=function(e){return(e+7)/8|0},p1=function(e,i,t){return(i==null||i<0)&&(i=0),(t==null||t>e.length)&&(t=e.length),new Ln(e.subarray(i,t))};var mr=function(e,i,t){t<<=i&7;var n=i/8|0;e[n]|=t,e[n+1]|=t>>8},Ea=function(e,i,t){t<<=i&7;var n=i/8|0;e[n]|=t,e[n+1]|=t>>8,e[n+2]|=t>>16},oc=function(e,i){for(var t=[],n=0;n<e.length;++n)e[n]&&t.push({s:n,f:e[n]});var r=t.length,o=t.slice();if(!r)return{t:Qu,l:0};if(r==1){var c=new Ln(t[0].s+1);return c[t[0].s]=1,{t:c,l:1}}t.sort(function(ft,bt){return ft.f-bt.f}),t.push({s:-1,f:25001});var s=t[0],f=t[1],h=0,g=1,y=2;for(t[0]={s:-1,f:s.f+f.f,l:s,r:f};g!=r-1;)s=t[t[h].f<t[y].f?h++:y++],f=t[h!=g&&t[h].f<t[y].f?h++:y++],t[g++]={s:-1,f:s.f+f.f,l:s,r:f};for(var S=o[0].s,n=1;n<r;++n)o[n].s>S&&(S=o[n].s);var d=new nn(S+1),O=lc(t[g-1],d,0);if(O>i){var n=0,E=0,D=O-i,N=1<<D;for(o.sort(function(bt,vt){return d[vt.s]-d[bt.s]||bt.f-vt.f});n<r;++n){var Y=o[n].s;if(d[Y]>i)E+=N-(1<<O-d[Y]),d[Y]=i;else break}for(E>>=D;E>0;){var W=o[n].s;d[W]<i?E-=1<<i-d[W]++-1:++n}for(;n>=0&&E;--n){var z=o[n].s;d[z]==i&&(--d[z],++E)}O=i}return{t:new Ln(d),l:O}},lc=function(e,i,t){return e.s==-1?Math.max(lc(e.l,i,t+1),lc(e.r,i,t+1)):i[e.s]=t},Gu=function(e){for(var i=e.length;i&&!e[--i];);for(var t=new nn(++i),n=0,r=e[0],o=1,c=function(f){t[n++]=f},s=1;s<=i;++s)if(e[s]==r&&s!=i)++o;else{if(!r&&o>2){for(;o>138;o-=138)c(32754);o>2&&(c(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(c(r),--o;o>6;o-=6)c(8304);o>2&&(c(o-3<<5|8208),o=0)}for(;o--;)c(r);o=1,r=e[s]}return{c:t.subarray(0,n),n:i}},Ia=function(e,i){for(var t=0,n=0;n<i.length;++n)t+=e[n]*i[n];return t},Ju=function(e,i,t){var n=t.length,r=Xu(i+2);e[r]=n&255,e[r+1]=n>>8,e[r+2]=e[r]^255,e[r+3]=e[r+1]^255;for(var o=0;o<n;++o)e[r+o+4]=t[o];return(r+4+n)*8},Wu=function(e,i,t,n,r,o,c,s,f,h,g){mr(i,g++,t),++r[256];for(var y=oc(r,15),S=y.t,d=y.l,O=oc(o,15),E=O.t,D=O.l,N=Gu(S),Y=N.c,W=N.n,z=Gu(E),ft=z.c,bt=z.n,vt=new nn(19),Q=0;Q<Y.length;++Q)++vt[Y[Q]&31];for(var Q=0;Q<ft.length;++Q)++vt[ft[Q]&31];for(var M=oc(vt,7),ot=M.t,A=M.l,T=19;T>4&&!ot[Vu[T-1]];--T);
1var V=h+5<<3,q=Ia(r,lo)+Ia(o,qs)+c,ct=Ia(r,S)+Ia(o,E)+c+14+3*T+Ia(vt,ot)+2*vt[16]+3*vt[17]+7*vt[18];if(f>=0&&V<=q&&V<=ct)return Ju(i,g,e.subarray(f,f+h));var pt,gt,st,_t;if(mr(i,g,1+(ct<q)),g+=2,ct<q){pt=Pa(S,d,0),gt=S,st=Pa(E,D,0),_t=E;var Et=Pa(ot,A,0);mr(i,g,W-257),mr(i,g+5,bt-1),mr(i,g+10,T-4),g+=14;for(var Q=0;Q<T;++Q)mr(i,g+3*Q,ot[Vu[Q]]);g+=3*T;for(var At=[Y,ft],b=0;b<2;++b)for(var R=At[b],Q=0;Q<R.length;++Q){var B=R[Q]&31;mr(i,g,Et[B]),g+=ot[B],B>15&&(mr(i,g,R[Q]>>5&127),g+=R[Q]>>12)}}else pt=u1,gt=lo,st=h1,_t=qs;for(var Q=0;Q<s;++Q){var $=n[Q];if($>255){var B=$>>18&31;Ea(i,g,pt[B+257]),g+=gt[B+257],B>7&&(mr(i,g,$>>23&31),g+=fc[B]);var J=$&31;Ea(i,g,st[J]),g+=_t[J],J>3&&(Ea(i,g,$>>5&8191),g+=uc[J])}else Ea(i,g,pt[$]),g+=gt[$]}return Ea(i,g,pt[256]),g+gt[256]},d1=new cc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Qu=new Ln(0),g1=function(e,i,t,n,r,o){var c=o.z||e.length,s=new Ln(n+c+5*(1+Math.ceil(c/7e3))+r),f=s.subarray(n,s.length-r),h=o.l,g=(o.r||0)&7;if(i){g&&(f[0]=o.r>>3);for(var y=d1[i-1],S=y>>13,d=y&8191,O=(1<<t)-1,E=o.p||new nn(32768),D=o.h||new nn(O+1),N=Math.ceil(t/3),Y=2*N,W=function(Gt){return(e[Gt]^e[Gt+1]<<N^e[Gt+2]<<Y)&O},z=new cc(25e3),ft=new nn(288),bt=new nn(32),vt=0,Q=0,M=o.i||0,ot=0,A=o.w||0,T=0;M+2<c;++M){var V=W(M),q=M&32767,ct=D[V];if(E[q]=ct,D[V]=q,A<=M){var pt=c-M;if((vt>7e3||ot>24576)&&(pt>423||!h)){g=Wu(e,f,0,z,ft,bt,Q,ot,T,M-T,g),ot=vt=Q=0,T=M;for(var gt=0;gt<286;++gt)ft[gt]=0;for(var gt=0;gt<30;++gt)bt[gt]=0}var st=2,_t=0,Et=d,At=q-ct&32767;if(pt>2&&V==W(M-At))for(var b=Math.min(S,pt)-1,R=Math.min(32767,M),B=Math.min(258,pt);At<=R&&--Et&&q!=ct;){if(e[M+st]==e[M+st-At]){for(var $=0;$<B&&e[M+$]==e[M+$-At];++$);if($>st){if(st=$,_t=At,$>b)break;for(var J=Math.min(At,$-2),nt=0,gt=0;gt<J;++gt){var ut=M-At+gt&32767,ht=E[ut],wt=ut-ht&32767;wt>nt&&(nt=wt,ct=ut)}}}q=ct,ct=E[q],At+=q-ct&32767}if(_t){z[ot++]=268435456|ac[st]<<18|$u[_t];var Lt=ac[st]&31,Ot=$u[_t]&31;Q+=fc[Lt]+uc[Ot],++ft[257+Lt],++bt[Ot],A=M+st,++vt}else z[ot++]=e[M],++ft[e[M]]}}for(M=Math.max(M,A);M<c;++M)z[ot++]=e[M],++ft[e[M]];g=Wu(e,f,h,z,ft,bt,Q,ot,T,M-T,g),h||(o.r=g&7|f[g/8|0]<<3,g-=7,o.h=D,o.p=E,o.i=M,o.w=A)}else{for(var M=o.w||0;M<c+h;M+=65535){var Tt=M+65535;Tt>=c&&(f[g/8|0]=h,Tt=c),g=Ju(f,g+1,e.subarray(M,Tt))}o.i=c}return p1(s,0,n+Xu(g)+r)};var th=function(){var e=1,i=0;return{p:function(t){for(var n=e,r=i,o=t.length|0,c=0;c!=o;){for(var s=Math.min(c+2655,o);c<s;++c)r+=n+=t[c];n=(n&65535)+15*(n>>16),r=(r&65535)+15*(r>>16)}e=n,i=r},d:function(){return e%=65521,i%=65521,(e&255)<<24|(e&65280)<<8|(i&255)<<8|i>>8}}},m1=function(e,i,t,n,r){if(!r&&(r={l:1},i.dictionary)){var o=i.dictionary.subarray(-32768),c=new Ln(o.length+e.length);c.set(o),c.set(e,o.length),e=c,r.w=o.length}return g1(e,i.level==null?6:i.level,i.mem==null?r.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+i.mem,t,n,r)};var eh=function(e,i,t){for(;t;++i)e[i]=t,t>>>=8};var _1=function(e,i){var t=i.level,n=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=n<<6|(i.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,i.dictionary){var r=th();r.p(i.dictionary),eh(e,2,r.d())}};function Hs(e,i){i||(i={});var t=th();t.p(e);var n=m1(e,i,i.dictionary?6:2,4);return _1(n,i),eh(n,n.length-4,t.d()),n}var v1=typeof TextDecoder<"u"&&new TextDecoder,x1=0;try{v1.decode(Qu,{stream:!0}),x1=1}catch{}function ih(e){if(Array.isArray(e))return e}function nh(e,i){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,r,o,c,s=[],f=!0,h=!1;try{if(o=(t=t.call(e)).next,i===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(n=o.call(t)).done)&&(s.push(n.value),s.length!==i);f=!0);}catch(g){h=!0,r=g}finally{try{if(!f&&t.return!=null&&(c=t.return(),Object(c)!==c))return}finally{if(h)throw r}}return s}}function hc(e,i){(i==null||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}function rh(e,i){if(e){if(typeof e=="string")return hc(e,i);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?hc(e,i):void 0}}
1function oh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pc(e,i){return ih(e)||nh(e,i)||rh(e,i)||oh()}function dc(e,i="utf8"){return new TextDecoder(i).decode(e)}var y1=new TextEncoder;function ah(e){return y1.encode(e)}var w1=1024*8,b1=(()=>{let e=new Uint8Array(4),i=new Uint32Array(e.buffer);return!((i[0]=1)&e[0])})(),gc={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},Ta=class e{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(i=w1,t={}){let n=!1;typeof i=="number"?i=new ArrayBuffer(i):(n=!0,this.lastWrittenByte=i.byteLength);let r=t.offset?t.offset>>>0:0,o=i.byteLength-r,c=r;(ArrayBuffer.isView(i)||i instanceof e)&&(i.byteLength!==i.buffer.byteLength&&(c=i.byteOffset+r),i=i.buffer),n?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=i,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(i=1){return this.offset+i<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(i=1){return this.offset+=i,this}back(i=1){return this.offset-=i,this}seek(i){return this.offset=i,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let i=this._marks.pop();if(i===void 0)throw new Error("Mark stack empty");return this.seek(i),this}rewind(){return this.offset=0,this}ensureAvailable(i=1){if(!this.available(i)){let n=(this.offset+i)*2,r=new Uint8Array(n);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(i=1){return this.readArray(i,"uint8")}readArray(i,t){let n=gc[t].BYTES_PER_ELEMENT*i,r=this.byteOffset+this.offset,o=this.buffer.slice(r,r+n);if(this.littleEndian===b1&&t!=="uint8"&&t!=="int8"){let s=new Uint8Array(this.buffer.slice(r,r+n));s.reverse();let f=new gc[t](s.buffer);return this.offset+=n,f.reverse(),f}let c=new gc[t](o);return this.offset+=n,c}readInt16(){let i=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,i}readUint16(){let i=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,i}readInt32(){let i=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,i}readUint32(){let i=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat32(){let i=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat64(){let i=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,i}readBigInt64(){let i=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,i}readBigUint64(){let i=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,i}readChar(){return String.fromCharCode(this.readInt8())}readChars(i=1){let t="";for(let n=0;n<i;n++)t+=this.readChar();return t}readUtf8(i=1){return dc(this.readBytes(i))}decodeText(i=1,t="utf8"){return dc(this.readBytes(i),t)}writeBoolean(i){return this.writeUint8(i?255:0),this}writeInt8(i){return this.ensureAvailable(1),this._data.setInt8(this.offset++,i),this._updateLastWrittenByte(),this}writeUint8(i){return this.ensureAvailable(1),this._data.setUint8(this.offset++,i),this._updateLastWrittenByte(),this}writeByte(i){return this.writeUint8(i)}writeBytes(i){this.ensureAvailable(i.length);for(let t=0;t<i.length;t++)this._data.setUint8(this.offset++,i[t]);return this._updateLastWrittenByte(),this}writeInt16(i){return this.ensureAvailable(2),this._data.setInt16(this.offset,i,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(i){return this.ensureAvailable(2),this._data.setUint16(this.offset,i,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(i){return this.ensureAvailable(4),this._data.setInt32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(i){return this.ensureAvailable(4),this._data.setUint32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(i){return this.ensureAvailable(4),this._data.setFloat32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(i){return this.ensureAvailable(8),this._data.setFloat64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(i){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(i){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(i){return this.writeUint8(i.charCodeAt(0))}writeChars(i){for(let t=0;t<i.length;t++)this.writeUint8(i.charCodeAt(t));return this}writeUtf8(i){return this.writeBytes(ah(i))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function zo(e){let i=e.length;for(;--i>=0;)e[i]=0}
2var S1=0,$h=1,C1=2,A1=3,k1=258,zc=29,Wa=256,za=Wa+1+zc,Do=30,jc=19,Gh=2*za+1,co=15,mc=16,N1=7,Uc=256,Wh=16,Zh=17,Yh=18,Ic=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]),Ys=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]),L1=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Kh=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),E1=512,vr=new Array((za+2)*2);zo(vr);var Da=new Array(Do*2);zo(Da);var ja=new Array(E1);zo(ja);var Ua=new Array(k1-A1+1);zo(Ua);var qc=new Array(zc);zo(qc);var Ks=new Array(Do);zo(Ks);function _c(e,i,t,n,r){this.static_tree=e,this.extra_bits=i,this.extra_base=t,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}var Xh,Jh,Qh;function vc(e,i){this.dyn_tree=e,this.max_code=0,this.stat_desc=i}var tp=e=>e<256?ja[e]:ja[256+(e>>>7)],qa=(e,i)=>{e.pending_buf[e.pending++]=i&255,e.pending_buf[e.pending++]=i>>>8&255},Gi=(e,i,t)=>{e.bi_valid>mc-t?(e.bi_buf|=i<<e.bi_valid&65535,qa(e,e.bi_buf),e.bi_buf=i>>mc-e.bi_valid,e.bi_valid+=t-mc):(e.bi_buf|=i<<e.bi_valid&65535,e.bi_valid+=t)},Hn=(e,i,t)=>{Gi(e,t[i*2],t[i*2+1])},ep=(e,i)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--i>0);return t>>>1},I1=e=>{e.bi_valid===16?(qa(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},P1=(e,i)=>{let t=i.dyn_tree,n=i.max_code,r=i.stat_desc.static_tree,o=i.stat_desc.has_stree,c=i.stat_desc.extra_bits,s=i.stat_desc.extra_base,f=i.stat_desc.max_length,h,g,y,S,d,O,E=0;for(S=0;S<=co;S++)e.bl_count[S]=0;for(t[e.heap[e.heap_max]*2+1]=0,h=e.heap_max+1;h<Gh;h++)g=e.heap[h],S=t[t[g*2+1]*2+1]+1,S>f&&(S=f,E++),t[g*2+1]=S,!(g>n)&&(e.bl_count[S]++,d=0,g>=s&&(d=c[g-s]),O=t[g*2],e.opt_len+=O*(S+d),o&&(e.static_len+=O*(r[g*2+1]+d)));if(E!==0){do{for(S=f-1;e.bl_count[S]===0;)S--;e.bl_count[S]--,e.bl_count[S+1]+=2,e.bl_count[f]--,E-=2}while(E>0);for(S=f;S!==0;S--)for(g=e.bl_count[S];g!==0;)y=e.heap[--h],!(y>n)&&(t[y*2+1]!==S&&(e.opt_len+=(S-t[y*2+1])*t[y*2],t[y*2+1]=S),g--)}},ip=(e,i,t)=>{let n=new Array(co+1),r=0,o,c;for(o=1;o<=co;o++)r=r+t[o-1]<<1,n[o]=r;for(c=0;c<=i;c++){let s=e[c*2+1];s!==0&&(e[c*2]=ep(n[s]++,s))}},T1=()=>{let e,i,t,n,r,o=new Array(co+1);for(t=0,n=0;n<zc-1;n++)for(qc[n]=t,e=0;e<1<<Ic[n];e++)Ua[t++]=n;for(Ua[t-1]=n,r=0,n=0;n<16;n++)for(Ks[n]=r,e=0;e<1<<Ys[n];e++)ja[r++]=n;for(r>>=7;n<Do;n++)for(Ks[n]=r<<7,e=0;e<1<<Ys[n]-7;e++)ja[256+r++]=n;for(i=0;i<=co;i++)o[i]=0;for(e=0;e<=143;)vr[e*2+1]=8,e++,o[8]++;for(;e<=255;)vr[e*2+1]=9,e++,o[9]++;for(;e<=279;)vr[e*2+1]=7,e++,o[7]++;for(;e<=287;)vr[e*2+1]=8,e++,o[8]++;for(ip(vr,za+1,o),e=0;e<Do;e++)Da[e*2+1]=5,Da[e*2]=ep(e,5);Xh=new _c(vr,Ic,Wa+1,za,co),Jh=new _c(Da,Ys,0,Do,co),Qh=new _c(new Array(0),L1,0,jc,N1)},np=e=>{let i;for(i=0;i<za;i++)e.dyn_ltree[i*2]=0;for(i=0;i<Do;i++)e.dyn_dtree[i*2]=0;for(i=0;i<jc;i++)e.bl_tree[i*2]=0;e.dyn_ltree[Uc*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},rp=e=>{e.bi_valid>8?qa(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},sh=(e,i,t,n)=>{let r=i*2,o=t*2;return e[r]<e[o]||e[r]===e[o]&&n[i]<=n[t]},xc=(e,i,t)=>{let n=e.heap[t],r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&sh(i,e.heap[r+1],e.heap[r],e.depth)&&r++,!sh(i,n,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=n},lh=(e,i,t)=>{let n,r,o=0,c,s;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+o++]&255,n+=(e.pending_buf[e.sym_buf+o++]&255)<<8,r=e.pending_buf[e.sym_buf+o++],n===0?Hn(e,r,i):(c=Ua[r],Hn(e,c+Wa+1,i),s=Ic[c],s!==0&&(r-=qc[c],Gi(e,r,s)),n--,c=tp(n),Hn(e,c,t),s=Ys[c],s!==0&&(n-=Ks[c],Gi(e,n,s)));while(o<e.sym_next);Hn(e,Uc,i)},Pc=(e,i)=>{let t=i.dyn_tree,n=i.stat_desc.static_tree,r=i.stat_desc.has_stree,o=i.stat_desc.elems,c,s,f=-1,h;for(e.heap_len=0,e.heap_max=Gh,c=0;c<o;c++)t[c*2]!==0?(e.heap[++e.heap_len]=f=c,e.depth[c]=0):t[c*2+1]=0;for(;e.heap_len<2;)h=e.heap[++e.heap_len]=f<2?++f:0,t[h*2]=1,e.depth[h]=0,e.opt_len--,r&&(e.static_len-=n[h*2+1]);for(i.max_code=f,c=e.heap_len>>1;c>=1;c--)xc(e,t,c);h=o;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],xc(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=s,t[h*2]=t[c*2]+t[s*2],e.depth[h]=(e.depth[c]>=e.depth[s]?e.depth[c]:e.depth[s])+1,t[c*2+1]=t[s*2+1]=h,e.heap[1]=h++,xc(e,t,1);while(e.heap_len>=2);
2e.heap[--e.heap_max]=e.heap[1],P1(e,i),ip(t,f,e.bl_count)},ch=(e,i,t)=>{let n,r=-1,o,c=i[1],s=0,f=7,h=4;for(c===0&&(f=138,h=3),i[(t+1)*2+1]=65535,n=0;n<=t;n++)o=c,c=i[(n+1)*2+1],!(++s<f&&o===c)&&(s<h?e.bl_tree[o*2]+=s:o!==0?(o!==r&&e.bl_tree[o*2]++,e.bl_tree[Wh*2]++):s<=10?e.bl_tree[Zh*2]++:e.bl_tree[Yh*2]++,s=0,r=o,c===0?(f=138,h=3):o===c?(f=6,h=3):(f=7,h=4))},fh=(e,i,t)=>{let n,r=-1,o,c=i[1],s=0,f=7,h=4;for(c===0&&(f=138,h=3),n=0;n<=t;n++)if(o=c,c=i[(n+1)*2+1],!(++s<f&&o===c)){if(s<h)do Hn(e,o,e.bl_tree);while(--s!==0);else o!==0?(o!==r&&(Hn(e,o,e.bl_tree),s--),Hn(e,Wh,e.bl_tree),Gi(e,s-3,2)):s<=10?(Hn(e,Zh,e.bl_tree),Gi(e,s-3,3)):(Hn(e,Yh,e.bl_tree),Gi(e,s-11,7));s=0,r=o,c===0?(f=138,h=3):o===c?(f=6,h=3):(f=7,h=4)}},F1=e=>{let i;for(ch(e,e.dyn_ltree,e.l_desc.max_code),ch(e,e.dyn_dtree,e.d_desc.max_code),Pc(e,e.bl_desc),i=jc-1;i>=3&&e.bl_tree[Kh[i]*2+1]===0;i--);return e.opt_len+=3*(i+1)+5+5+4,i},O1=(e,i,t,n)=>{let r;for(Gi(e,i-257,5),Gi(e,t-1,5),Gi(e,n-4,4),r=0;r<n;r++)Gi(e,e.bl_tree[Kh[r]*2+1],3);fh(e,e.dyn_ltree,i-1),fh(e,e.dyn_dtree,t-1)},R1=e=>{let i=4093624447,t;for(t=0;t<=31;t++,i>>>=1)if(i&1&&e.dyn_ltree[t*2]!==0)return 0;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return 1;for(t=32;t<Wa;t++)if(e.dyn_ltree[t*2]!==0)return 1;return 0},uh=!1,D1=e=>{uh||(T1(),uh=!0),e.l_desc=new vc(e.dyn_ltree,Xh),e.d_desc=new vc(e.dyn_dtree,Jh),e.bl_desc=new vc(e.bl_tree,Qh),e.bi_buf=0,e.bi_valid=0,np(e)},op=(e,i,t,n)=>{Gi(e,(S1<<1)+(n?1:0),3),rp(e),qa(e,t),qa(e,~t),t&&e.pending_buf.set(e.window.subarray(i,i+t),e.pending),e.pending+=t},M1=e=>{Gi(e,$h<<1,3),Hn(e,Uc,vr),I1(e)},B1=(e,i,t,n)=>{let r,o,c=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=R1(e)),Pc(e,e.l_desc),Pc(e,e.d_desc),c=F1(e),r=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=r&&(r=o)):r=o=t+5,t+4<=r&&i!==-1?op(e,i,t,n):e.strategy===4||o===r?(Gi(e,($h<<1)+(n?1:0),3),lh(e,vr,Da)):(Gi(e,(C1<<1)+(n?1:0),3),O1(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),lh(e,e.dyn_ltree,e.dyn_dtree)),np(e),n&&rp(e)},z1=(e,i,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=i,e.pending_buf[e.sym_buf+e.sym_next++]=i>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,i===0?e.dyn_ltree[t*2]++:(e.matches++,i--,e.dyn_ltree[(Ua[t]+Wa+1)*2]++,e.dyn_dtree[tp(i)*2]++),e.sym_next===e.sym_end),j1=D1,U1=op,q1=B1,H1=z1,V1=M1,$1={_tr_init:j1,_tr_stored_block:U1,_tr_flush_block:q1,_tr_tally:H1,_tr_align:V1},G1=(e,i,t,n)=>{let r=e&65535|0,o=e>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do r=r+i[n++]|0,o=o+r|0;while(--c);r%=65521,o%=65521}return r|o<<16|0},Ha=G1,W1=()=>{let e,i=[];for(var t=0;t<256;t++){e=t;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;i[t]=e}return i},Z1=new Uint32Array(W1()),Y1=(e,i,t,n)=>{let r=Z1,o=n+t;e^=-1;for(let c=n;c<o;c++)e=e>>>8^r[(e^i[c])&255];return e^-1},Si=Y1,ho={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"},jo={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},{_tr_init:K1,_tr_stored_block:Tc,_tr_flush_block:X1,_tr_tally:Br,_tr_align:J1}=$1,{Z_NO_FLUSH:zr,Z_PARTIAL_FLUSH:Q1,Z_FULL_FLUSH:t0,Z_FINISH:vn,Z_BLOCK:hh,Z_OK:Pi,Z_STREAM_END:ph,Z_STREAM_ERROR:Vn,Z_DATA_ERROR:e0,Z_BUF_ERROR:yc,Z_DEFAULT_COMPRESSION:i0,Z_FILTERED:n0,Z_HUFFMAN_ONLY:Vs,Z_RLE:r0,Z_FIXED:o0,Z_DEFAULT_STRATEGY:a0,Z_UNKNOWN:s0,Z_DEFLATED:Qs}=jo,l0=9,c0=15,f0=8,u0=29,h0=256,Fc=h0+1+u0,p0=30,d0=19,g0=2*Fc+1,m0=15,be=3,Mr=258,$n=Mr+be+1,_0=32,Mo=42,Hc=57,Oc=69,Rc=73,Dc=91,Mc=103,fo=113,Oa=666,qi=1,Uo=2,po=3,qo=4,v0=3,uo=(e,i)=>(e.msg=ho[i],i),dh=e=>e*2-(e>4?9:0),Dr=e=>{let i=e.length;for(;--i>=0;)e[i]=0},x0=e=>{let i,t,n,r=e.w_size;i=e.hash_size,n=i;do t=e.head[--n],e.head[n]=t>=r?t-r:0;while(--i);i=r,n=i;do t=e.prev[--n],e.prev[n]=t>=r?t-r:0;while(--i)},y0=(e,i,t)=>(i<<e.hash_shift^t)&e.hash_mask,jr=y0,rn=e=>{let i=e.state,t=i.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(i.pending_buf.subarray(i.pending_out,i.pending_out+t),e.next_out),e.next_out+=t,i.pending_out+=t,e.total_out+=t,e.avail_out-=t,i.pending-=t,i.pending===0&&(i.pending_out=0))},on=(e,i)=>{X1(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,i),e.block_start=e.strstart,rn(e.strm)},Ie=(e,i)=>{e.pending_buf[e.pending++]=i},Fa=(e,i)=>{e.pending_buf[e.pending++]=i>>>8&255,e.pending_buf[e.pending++]=i&255},Bc=(e,i,t,n)=>{let r=e.avail_in;return r>n&&(r=n),r===0?0:(e.avail_in-=r,i.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Ha(e.adler,i,r,t):e.state.wrap===2&&(e.adler=Si(e.adler,i,r,t)),e.next_in+=r,e.total_in+=r,r)},ap=(e,i)=>{let t=e.max_chain_length,n=e.strstart,r,o,c=e.prev_length,s=e.nice_match,f=e.strstart>e.w_size-$n?e.strstart-(e.w_size-$n):0,h=e.window,g=e.w_mask,y=e.prev,S=e.strstart+Mr,d=h[n+c-1],O=h[n+c];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=i,!(h[r+c]!==O||h[r+c-1]!==d||h[r]!==h[n]||h[++r]!==h[n+1])){n+=2,r++;do;while(h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&n<S);if(o=Mr-(S-n),n=S-Mr,o>c){if(e.match_start=i,c=o,o>=s)break;d=h[n+c-1],O=h[n+c]}}while((i=y[i&g])>f&&--t!==0);return c<=e.lookahead?c:e.lookahead},Bo=e=>{let i=e.w_size,t,n,r;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-$n)&&(e.window.set(e.window.subarray(i,i+i-n),0),e.match_start-=i,e.strstart-=i,e.block_start-=i,e.insert>e.strstart&&(e.insert=e.strstart),x0(e),n+=i),e.strm.avail_in===0)break;if(t=Bc(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=t,e.lookahead+e.insert>=be)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=jr(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=jr(e,e.ins_h,e.window[r+be-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<be)););}while(e.lookahead<$n&&e.strm.avail_in!==0)},sp=(e,i)=>{let t=e.pending_buf_size-5>
vendor: 6,561 bytes, line 2
2e.w_size?e.w_size:e.pending_buf_size-5,n,r,o,c=0,s=e.strm.avail_in;do{if(n=65535,o=e.bi_valid+42>>3,e.strm.avail_out<o||(o=e.strm.avail_out-o,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>o&&(n=o),n<t&&(n===0&&i!==vn||i===zr||n!==r+e.strm.avail_in)))break;c=i===vn&&n===r+e.strm.avail_in?1:0,Tc(e,0,0,c),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,rn(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Bc(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(c===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),c?qo:i!==zr&&i!==vn&&e.strm.avail_in===0&&e.strstart===e.block_start?Uo:(o=e.window_size-e.strstart,e.strm.avail_in>o&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(Bc(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water<e.strstart&&(e.high_water=e.strstart),o=e.bi_valid+42>>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,t=o>e.w_size?e.w_size:o,r=e.strstart-e.block_start,(r>=t||(r||i===vn)&&i!==zr&&e.strm.avail_in===0&&r<=o)&&(n=r>o?o:r,c=i===vn&&e.strm.avail_in===0&&n===r?1:0,Tc(e,e.block_start,n,c),e.block_start+=n,rn(e.strm)),c?po:qi)},wc=(e,i)=>{let t,n;for(;;){if(e.lookahead<$n){if(Bo(e),e.lookahead<$n&&i===zr)return qi;if(e.lookahead===0)break}if(t=0,e.lookahead>=be&&(e.ins_h=jr(e,e.ins_h,e.window[e.strstart+be-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-$n&&(e.match_length=ap(e,t)),e.match_length>=be)if(n=Br(e,e.strstart-e.match_start,e.match_length-be),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=be){e.match_length--;do e.strstart++,e.ins_h=jr(e,e.ins_h,e.window[e.strstart+be-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=jr(e,e.ins_h,e.window[e.strstart+1]);else n=Br(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(on(e,!1),e.strm.avail_out===0))return qi}return e.insert=e.strstart<be-1?e.strstart:be-1,i===vn?(on(e,!0),e.strm.avail_out===0?po:qo):e.sym_next&&(on(e,!1),e.strm.avail_out===0)?qi:Uo},Oo=(e,i)=>{let t,n,r;for(;;){if(e.lookahead<$n){if(Bo(e),e.lookahead<$n&&i===zr)return qi;if(e.lookahead===0)break}if(t=0,e.lookahead>=be&&(e.ins_h=jr(e,e.ins_h,e.window[e.strstart+be-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=be-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-$n&&(e.match_length=ap(e,t),e.match_length<=5&&(e.strategy===n0||e.match_length===be&&e.strstart-e.match_start>4096)&&(e.match_length=be-1)),e.prev_length>=be&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-be,n=Br(e,e.strstart-1-e.prev_match,e.prev_length-be),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=jr(e,e.ins_h,e.window[e.strstart+be-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=be-1,e.strstart++,n&&(on(e,!1),e.strm.avail_out===0))return qi}else if(e.match_available){if(n=Br(e,0,e.window[e.strstart-1]),n&&on(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return qi}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Br(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<be-1?e.strstart:be-1,i===vn?(on(e,!0),e.strm.avail_out===0?po:qo):e.sym_next&&(on(e,!1),e.strm.avail_out===0)?qi:Uo},w0=(e,i)=>{let t,n,r,o,c=e.window;for(;;){if(e.lookahead<=Mr){if(Bo(e),e.lookahead<=Mr&&i===zr)return qi;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=be&&e.strstart>0&&(r=e.strstart-1,n=c[r],n===c[++r]&&n===c[++r]&&n===c[++r])){o=e.strstart+Mr;do;while(n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&n===c[++r]&&r<o);e.match_length=Mr-(o-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=be?(t=Br(e,1,e.match_length-be),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=Br(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(on(e,!1),e.strm.avail_out===0))return qi}return e.insert=0,i===vn?(on(e,!0),e.strm.avail_out===0?po:qo):e.sym_next&&(on(e,!1),e.strm.avail_out===0)?qi:Uo},b0=(e,i)=>{let t;for(;;){if(e.lookahead===0&&(Bo(e),e.lookahead===0)){if(i===zr)return qi;break}if(e.match_length=0,t=Br(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(on(e,!1),e.strm.avail_out===0))return qi}return e.insert=0,i===vn?(on(e,!0),e.strm.avail_out===0?po:qo):e.sym_next&&(on(e,!1),e.strm.avail_out===0)?qi:Uo};function qn(e,i,t,n,r){this.good_length=e,this.max_lazy=i,this.nice_length=t,this.max_chain=n,this.func=r}var Ra=[new qn(0,0,0,0,sp),new qn(4,4,8,4,wc),new qn(4,5,16,8,wc),new qn(4,6,32,32,wc),new qn(4,4,16,16,Oo),new qn(8,16,32,32,Oo),new qn(8,16,128,128,Oo),new qn(8,32,128,256,Oo),new qn(32,128,258,1024,Oo),new qn(32,258,258,4096,Oo)],S0=e=>{e.window_size=2*e.w_size,Dr(e.head),e.max_lazy_match=Ra[e.level].max_lazy,e.good_match=Ra[e.level].good_length,e.nice_match=Ra[e.level].nice_length,e.max_chain_length=Ra[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=be-1,e.match_available=0,e.ins_h=0};function C0(){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=
2Qs,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(g0*2),this.dyn_dtree=new Uint16Array((2*p0+1)*2),this.bl_tree=new Uint16Array((2*d0+1)*2),Dr(this.dyn_ltree),Dr(this.dyn_dtree),Dr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(m0+1),this.heap=new Uint16Array(2*Fc+1),Dr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Fc+1),Dr(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}var Za=e=>{if(!e)return 1;let i=e.state;return!i||i.strm!==e||i.status!==Mo&&i.status!==Hc&&i.status!==Oc&&i.status!==Rc&&i.status!==Dc&&i.status!==Mc&&i.status!==fo&&i.status!==Oa?1:0},lp=e=>{if(Za(e))return uo(e,Vn);e.total_in=e.total_out=0,e.data_type=s0;let i=e.state;return i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap===2?Hc:i.wrap?Mo:fo,e.adler=i.wrap===2?0:1,i.last_flush=-2,K1(i),Pi},cp=e=>{let i=lp(e);return i===Pi&&S0(e.state),i},A0=(e,i)=>Za(e)||e.state.wrap!==2?Vn:(e.state.gzhead=i,Pi),fp=(e,i,t,n,r,o)=>{if(!e)return Vn;let c=1;if(i===i0&&(i=6),n<0?(c=0,n=-n):n>15&&(c=2,n-=16),r<1||r>l0||t!==Qs||n<8||n>15||i<0||i>9||o<0||o>o0||n===8&&c!==1)return uo(e,Vn);n===8&&(n=9);let s=new C0;return e.state=s,s.strm=e,s.status=Mo,s.wrap=c,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+be-1)/be),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=i,s.strategy=o,s.method=t,cp(e)},k0=(e,i)=>fp(e,i,Qs,c0,f0,a0),N0=(e,i)=>{if(Za(e)||i>hh||i<0)return e?uo(e,Vn):Vn;let t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Oa&&i!==vn)return uo(e,e.avail_out===0?yc:Vn);let n=t.last_flush;if(t.last_flush=i,t.pending!==0){if(rn(e),e.avail_out===0)return t.last_flush=-1,Pi}else if(e.avail_in===0&&dh(i)<=dh(n)&&i!==vn)return uo(e,yc);if(t.status===Oa&&e.avail_in!==0)return uo(e,yc);if(t.status===Mo&&t.wrap===0&&(t.status=fo),t.status===Mo){let r=Qs+(t.w_bits-8<<4)<<8,o=-1;if(t.strategy>=Vs||t.level<2?o=0:t.level<6?o=1:t.level===6?o=2:o=3,r|=o<<6,t.strstart!==0&&(r|=_0),r+=31-r%31,Fa(t,r),t.strstart!==0&&(Fa(t,e.adler>>>16),Fa(t,e.adler&65535)),e.adler=1,t.status=fo,rn(e),t.pending!==0)return t.last_flush=-1,Pi}if(t.status===Hc){if(e.adler=0,Ie(t,31),Ie(t,139),Ie(t,8),t.gzhead)Ie(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),Ie(t,t.gzhead.time&255),Ie(t,t.gzhead.time>>8&255),Ie(t,t.gzhead.time>>16&255),Ie(t,t.gzhead.time>>24&255),Ie(t,t.level===9?2:t.strategy>=Vs||t.level<2?4:0),Ie(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(Ie(t,t.gzhead.extra.length&255),Ie(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=Si(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Oc;else if(Ie(t,0),Ie(t,0),Ie(t,0),Ie(t,0),Ie(t,0),Ie(t,t.level===9?2:t.strategy>=Vs||t.level<2?4:0),Ie(t,v0),t.status=fo,rn(e),t.pending!==0)return t.last_flush=-1,Pi}if(t.status===Oc){if(t.gzhead.extra){let r=t.pending,o=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+o>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=Si(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,rn(e),t.pending!==0)return t.last_flush=-1,Pi;r=0,o-=s}let c=new Uint8Array(t.gzhead.extra);t.pending_buf.set(c.subarray(t.gzindex,t.gzindex+o),t.pending),t.pending+=o,t.gzhead.hcrc&&t.pending>r&&(e.adler=Si(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Rc}if(t.status===Rc){if(t.gzhead.name){let r=t.pending,o;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=Si(e.adler,t.pending_buf,t.pending-r,r)),rn(e),t.pending!==0)return t.last_flush=-1,Pi;r=0}t.gzindex<t.gzhead.name.length?o=t.gzhead.name.charCodeAt(t.gzindex++)&255:o=0,Ie(t,o)}while(o!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=Si(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Dc}if(t.status===Dc){if(t.gzhead.comment){let r=t.pending,o;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=Si(e.adler,t.pending_buf,t.pending-r,r)),rn(e),t.pending!==0)return t.last_flush=-1,Pi;r=0}t.gzindex<t.gzhead.comment.length?o=t.gzhead.comment.charCodeAt(t.gzindex++)&255:o=0,Ie(t,o)}while(o!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=Si(e.adler,t.pending_buf,t.pending-r,r))}t.status=Mc}if(t.status===Mc){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(rn(e),t.pending!==0))return t.last_flush=-1,Pi;Ie(t,e.adler&255),Ie(t,e.adler>>8&255),e.adler=0}if(t.status=fo,rn(e),t.pending!==0)return t.last_flush=-1,Pi}if(e.avail_in!==0||t.lookahead!==0||i!==zr&&t.status!==Oa){let r=t.level===0?sp(t,i):t.strategy===Vs?b0(t,i):t.strategy===r0?w0(t,i):Ra[t.level].func(t,i);if((r===po||r===qo)&&(t.status=Oa),r===qi||r===po)return e.avail_out===0&&(t.last_flush=-1),Pi;if(r===Uo&&(i===Q1?J1(t):i!==hh&&(Tc(t,0,0,!1),i===t0&&(Dr(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),rn(e),e.avail_out===0))return t.last_flush=-1,Pi}return i!==vn?Pi:t.wrap<=0?ph:(t.wrap===2?(Ie(t,e.adler&255),Ie(t,e.adler>>8&255),Ie(t,e.adler>>16&255),Ie(t,e.adler>>24&255),Ie(t,e.total_in&255),Ie(t,e.total_in>>8&255),Ie(t,e.total_in>>16&255),Ie(t,e.total_in>>24&255)):(Fa(t,e.adler>>>16),Fa(t,e.adler&65535)),rn(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?Pi:ph)},L0=e=>{if(Za(e))return Vn;let i=e.state.status;return e.state=null,i===fo?uo(e,e0):Pi},E0=(e,i)=>{let t=i.length;if(Za(e))return Vn;let n=e.state,r=n.wrap;if(r===2||r===1&&n.status!==Mo||n.lookahead)return Vn;
2if(r===1&&(e.adler=Ha(e.adler,i,t,0)),n.wrap=0,t>=n.w_size){r===0&&(Dr(n.head),n.strstart=0,n.block_start=0,n.insert=0);let f=new Uint8Array(n.w_size);f.set(i.subarray(t-n.w_size,t),0),i=f,t=n.w_size}let o=e.avail_in,c=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=i,Bo(n);n.lookahead>=be;){let f=n.strstart,h=n.lookahead-(be-1);do n.ins_h=jr(n,n.ins_h,n.window[f+be-1]),n.prev[f&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=f,f++;while(--h);n.strstart=f,n.lookahead=be-1,Bo(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=be-1,n.match_available=0,e.next_in=c,e.input=s,e.avail_in=o,n.wrap=r,Pi},I0=k0,P0=fp,T0=cp,F0=lp,O0=A0,R0=N0,D0=L0,M0=E0,B0="pako deflate (from Nodeca project)",Ma={deflateInit:I0,deflateInit2:P0,deflateReset:T0,deflateResetKeep:F0,deflateSetHeader:O0,deflate:R0,deflateEnd:D0,deflateSetDictionary:M0,deflateInfo:B0},z0=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),j0=function(e){let i=Array.prototype.slice.call(arguments,1);for(;i.length;){let t=i.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(let n in t)z0(t,n)&&(e[n]=t[n])}}return e},U0=e=>{let i=0;for(let n=0,r=e.length;n<r;n++)i+=e[n].length;let t=new Uint8Array(i);for(let n=0,r=0,o=e.length;n<o;n++){let c=e[n];t.set(c,r),r+=c.length}return t},tl={assign:j0,flattenChunks:U0},up=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{up=!1}var Va=new Uint8Array(256);for(let e=0;e<256;e++)Va[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Va[254]=Va[254]=1;var q0=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let i,t,n,r,o,c=e.length,s=0;for(r=0;r<c;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<c&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(t=65536+(t-55296<<10)+(n-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(i=new Uint8Array(s),o=0,r=0;o<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<c&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(t=65536+(t-55296<<10)+(n-56320),r++)),t<128?i[o++]=t:t<2048?(i[o++]=192|t>>>6,i[o++]=128|t&63):t<65536?(i[o++]=224|t>>>12,i[o++]=128|t>>>6&63,i[o++]=128|t&63):(i[o++]=240|t>>>18,i[o++]=128|t>>>12&63,i[o++]=128|t>>>6&63,i[o++]=128|t&63);return i},H0=(e,i)=>{if(i<65534&&e.subarray&&up)return String.fromCharCode.apply(null,e.length===i?e:e.subarray(0,i));let t="";for(let n=0;n<i;n++)t+=String.fromCharCode(e[n]);return t},V0=(e,i)=>{let t=i||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,i));let n,r,o=new Array(t*2);for(r=0,n=0;n<t;){let c=e[n++];if(c<128){o[r++]=c;continue}let s=Va[c];if(s>4){o[r++]=65533,n+=s-1;continue}for(c&=s===2?31:s===3?15:7;s>1&&n<t;)c=c<<6|e[n++]&63,s--;if(s>1){o[r++]=65533;continue}c<65536?o[r++]=c:(c-=65536,o[r++]=55296|c>>10&1023,o[r++]=56320|c&1023)}return H0(o,r)},$0=(e,i)=>{i=i||e.length,i>e.length&&(i=e.length);let t=i-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?i:t+Va[e[t]]>i?t:i},$a={string2buf:q0,buf2string:V0,utf8border:$0};function G0(){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 hp=G0,pp=Object.prototype.toString,{Z_NO_FLUSH:W0,Z_SYNC_FLUSH:Z0,Z_FULL_FLUSH:Y0,Z_FINISH:K0,Z_OK:Xs,Z_STREAM_END:X0,Z_DEFAULT_COMPRESSION:J0,Z_DEFAULT_STRATEGY:Q0,Z_DEFLATED:t2}=jo;function Ya(e){this.options=tl.assign({level:J0,method:t2,chunkSize:16384,windowBits:15,memLevel:8,strategy:Q0},e||{});let i=this.options;i.raw&&i.windowBits>0?i.windowBits=-i.windowBits:i.gzip&&i.windowBits>0&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new hp,this.strm.avail_out=0;let t=Ma.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(t!==Xs)throw new Error(ho[t]);if(i.header&&Ma.deflateSetHeader(this.strm,i.header),i.dictionary){let n;if(typeof i.dictionary=="string"?n=$a.string2buf(i.dictionary):pp.call(i.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(i.dictionary):n=i.dictionary,t=Ma.deflateSetDictionary(this.strm,n),t!==Xs)throw new Error(ho[t]);this._dict_set=!0}}Ya.prototype.push=function(e,i){let t=this.strm,n=this.options.chunkSize,r,o;if(this.ended)return!1;for(i===~~i?o=i:o=i===!0?K0:W0,typeof e=="string"?t.input=$a.string2buf(e):pp.call(e)==="[object ArrayBuffer]"?t.input=new 
2Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(n),t.next_out=0,t.avail_out=n),(o===Z0||o===Y0)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=Ma.deflate(t,o),r===X0)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=Ma.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Xs;if(t.avail_out===0){this.onData(t.output);continue}if(o>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Ya.prototype.onData=function(e){this.chunks.push(e)};Ya.prototype.onEnd=function(e){e===Xs&&(this.result=tl.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Vc(e,i){let t=new Ya(i);if(t.push(e,!0),t.err)throw t.msg||ho[t.err];return t.result}function e2(e,i){return i=i||{},i.raw=!0,Vc(e,i)}function i2(e,i){return i=i||{},i.gzip=!0,Vc(e,i)}var n2=Ya,r2=Vc,o2=e2,a2=i2,s2=jo,l2={Deflate:n2,deflate:r2,deflateRaw:o2,gzip:a2,constants:s2},$s=16209,c2=16191,f2=function(i,t){let n,r,o,c,s,f,h,g,y,S,d,O,E,D,N,Y,W,z,ft,bt,vt,Q,M,ot,A=i.state;n=i.next_in,M=i.input,r=n+(i.avail_in-5),o=i.next_out,ot=i.output,c=o-(t-i.avail_out),s=o+(i.avail_out-257),f=A.dmax,h=A.wsize,g=A.whave,y=A.wnext,S=A.window,d=A.hold,O=A.bits,E=A.lencode,D=A.distcode,N=(1<<A.lenbits)-1,Y=(1<<A.distbits)-1;t:do{O<15&&(d+=M[n++]<<O,O+=8,d+=M[n++]<<O,O+=8),W=E[d&N];e:for(;;){if(z=W>>>24,d>>>=z,O-=z,z=W>>>16&255,z===0)ot[o++]=W&65535;else if(z&16){ft=W&65535,z&=15,z&&(O<z&&(d+=M[n++]<<O,O+=8),ft+=d&(1<<z)-1,d>>>=z,O-=z),O<15&&(d+=M[n++]<<O,O+=8,d+=M[n++]<<O,O+=8),W=D[d&Y];i:for(;;){if(z=W>>>24,d>>>=z,O-=z,z=W>>>16&255,z&16){if(bt=W&65535,z&=15,O<z&&(d+=M[n++]<<O,O+=8,O<z&&(d+=M[n++]<<O,O+=8)),bt+=d&(1<<z)-1,bt>f){i.msg="invalid distance too far back",A.mode=$s;break t}if(d>>>=z,O-=z,z=o-c,bt>z){if(z=bt-z,z>g&&A.sane){i.msg="invalid distance too far back",A.mode=$s;break t}if(vt=0,Q=S,y===0){if(vt+=h-z,z<ft){ft-=z;do ot[o++]=S[vt++];while(--z);vt=o-bt,Q=ot}}else if(y<z){if(vt+=h+y-z,z-=y,z<ft){ft-=z;do ot[o++]=S[vt++];while(--z);if(vt=0,y<ft){z=y,ft-=z;do ot[o++]=S[vt++];while(--z);vt=o-bt,Q=ot}}}else if(vt+=y-z,z<ft){ft-=z;do ot[o++]=S[vt++];while(--z);vt=o-bt,Q=ot}for(;ft>2;)ot[o++]=Q[vt++],ot[o++]=Q[vt++],ot[o++]=Q[vt++],ft-=3;ft&&(ot[o++]=Q[vt++],ft>1&&(ot[o++]=Q[vt++]))}else{vt=o-bt;do ot[o++]=ot[vt++],ot[o++]=ot[vt++],ot[o++]=ot[vt++],ft-=3;while(ft>2);ft&&(ot[o++]=ot[vt++],ft>1&&(ot[o++]=ot[vt++]))}}else if((z&64)===0){W=D[(W&65535)+(d&(1<<z)-1)];continue i}else{i.msg="invalid distance code",A.mode=$s;break t}break}}else if((z&64)===0){W=E[(W&65535)+(d&(1<<z)-1)];continue e}else if(z&32){A.mode=c2;break t}else{i.msg="invalid literal/length code",A.mode=$s;break t}break}}while(n<r&&o<s);ft=O>>3,n-=ft,O-=ft<<3,d&=(1<<O)-1,i.next_in=n,i.next_out=o,i.avail_in=n<r?5+(r-n):5-(n-r),i.avail_out=o<s?257+(s-o):257-(o-s),A.hold=d,A.bits=O},Ro=15,gh=852,mh=592,_h=0,bc=1,vh=2,u2=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]),h2=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]),p2=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]),d2=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]),g2=(e,i,t,n,r,o,c,s)=>{let f=s.bits,h=0,g=0,y=0,S=0,d=0,O=0,E=0,D=0,N=0,Y=0,W,z,ft,bt,vt,Q=null,M,ot=new Uint16Array(Ro+1),A=new Uint16Array(Ro+1),T=null,V,q,ct;for(h=0;h<=Ro;h++)ot[h]=0;for(g=0;g<n;g++)ot[i[t+g]]++;for(d=f,S=Ro;S>=1&&ot[S]===0;S--);if(d>S&&(d=S),S===0)return r[o++]=1<<24|64<<16|0,r[o++]=1<<24|64<<16|0,s.bits=1,0;for(y=1;y<S&&ot[y]===0;y++);for(d<y&&(d=y),D=1,h=1;h<=Ro;h++)if(D<<=1,D-=ot[h],D<0)return-1;if(D>0&&(e===_h||S!==1))return-1;for(A[1]=0,h=1;h<Ro;h++)A[h+1]=A[h]+ot[h];for(g=0;g<n;g++)i[t+g]!==0&&(c[A[i[t+g]]++]=g);if(e===_h?(Q=T=c,M=20):e===bc?(Q=u2,T=h2,M=257):(Q=p2,T=d2,M=0),Y=0,g=0,h=y,vt=o,O=d,E=0,ft=-1,N=1<<d,bt=N-1,e===bc&&N>gh||e===vh&&N>mh)return 1;for(;;){V=h-E,c[g]+1<M?(q=0,ct=c[g]):c[g]>=M?(q=T[c[g]-M],ct=Q[c[g]-M]):(q=96,ct=0),W=1<<h-E,z=1<<O,y=z;do z-=W,r[vt+(Y>>E)+z]=V<<24|q<<16|ct|0;while(z!==0);for(W=1<<h-1;Y&W;)W>>=1;if(W!==0?(Y&=W-1,Y+=W):Y=0,g++,--ot[h]===0){if(h===S)break;h=i[t+c[g]]}if(h>d&&(Y&bt)!==ft){for(E===0&&(E=d),vt+=y,O=h-E,D=1<<O;O+E<S&&(D-=ot[O+E],!(D<=0));)O++,D<<=1;if(N+=1<<O,e===bc&&N>gh||e===vh&&N>mh)return 1;ft=Y&bt,r[ft]=d<<24|O<<16|vt-o|0}}return Y!==0&&(r[vt+Y]=h-E<<24|64<<16|0),s.bits=d,0},Ba=g2,m2=0,dp=1,gp=2,{Z_FINISH:xh,Z_BLOCK:_2,Z_TREES:Gs,Z_OK:go,Z_STREAM_END:v2,Z_NEED_DICT:x2,Z_STREAM_ERROR:xn,Z_DATA_ERROR:mp,Z_MEM_ERROR:_p,Z_BUF_ER
2ROR:y2,Z_DEFLATED:yh}=jo,el=16180,wh=16181,bh=16182,Sh=16183,Ch=16184,Ah=16185,kh=16186,Nh=16187,Lh=16188,Eh=16189,Js=16190,_r=16191,Sc=16192,Ih=16193,Cc=16194,Ph=16195,Th=16196,Fh=16197,Oh=16198,Ws=16199,Zs=16200,Rh=16201,Dh=16202,Mh=16203,Bh=16204,zh=16205,Ac=16206,jh=16207,Uh=16208,Xe=16209,vp=16210,xp=16211,w2=852,b2=592,S2=15,C2=S2,qh=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function A2(){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}var mo=e=>{if(!e)return 1;let i=e.state;return!i||i.strm!==e||i.mode<el||i.mode>xp?1:0},yp=e=>{if(mo(e))return xn;let i=e.state;return e.total_in=e.total_out=i.total=0,e.msg="",i.wrap&&(e.adler=i.wrap&1),i.mode=el,i.last=0,i.havedict=0,i.flags=-1,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(w2),i.distcode=i.distdyn=new Int32Array(b2),i.sane=1,i.back=-1,go},wp=e=>{if(mo(e))return xn;let i=e.state;return i.wsize=0,i.whave=0,i.wnext=0,yp(e)},bp=(e,i)=>{let t;if(mo(e))return xn;let n=e.state;return i<0?(t=0,i=-i):(t=(i>>4)+5,i<48&&(i&=15)),i&&(i<8||i>15)?xn:(n.window!==null&&n.wbits!==i&&(n.window=null),n.wrap=t,n.wbits=i,wp(e))},Sp=(e,i)=>{if(!e)return xn;let t=new A2;e.state=t,t.strm=e,t.window=null,t.mode=el;let n=bp(e,i);return n!==go&&(e.state=null),n},k2=e=>Sp(e,C2),Hh=!0,kc,Nc,N2=e=>{if(Hh){kc=new Int32Array(512),Nc=new Int32Array(32);let i=0;for(;i<144;)e.lens[i++]=8;for(;i<256;)e.lens[i++]=9;for(;i<280;)e.lens[i++]=7;for(;i<288;)e.lens[i++]=8;for(Ba(dp,e.lens,0,288,kc,0,e.work,{bits:9}),i=0;i<32;)e.lens[i++]=5;Ba(gp,e.lens,0,32,Nc,0,e.work,{bits:5}),Hh=!1}e.lencode=kc,e.lenbits=9,e.distcode=Nc,e.distbits=5},Cp=(e,i,t,n)=>{let r,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(i.subarray(t-o.wsize,t),0),o.wnext=0,o.whave=o.wsize):(r=o.wsize-o.wnext,r>n&&(r=n),o.window.set(i.subarray(t-n,t-n+r),o.wnext),n-=r,n?(o.window.set(i.subarray(t-n,t),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0},L2=(e,i)=>{let t,n,r,o,c,s,f,h,g,y,S,d,O,E,D=0,N,Y,W,z,ft,bt,vt,Q,M=new Uint8Array(4),ot,A,T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(mo(e)||!e.output||!e.input&&e.avail_in!==0)return xn;t=e.state,t.mode===_r&&(t.mode=Sc),c=e.next_out,r=e.output,f=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,h=t.hold,g=t.bits,y=s,S=f,Q=go;t:for(;;)switch(t.mode){case el:if(t.wrap===0){t.mode=Sc;break}for(;g<16;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if(t.wrap&2&&h===35615){t.wbits===0&&(t.wbits=15),t.check=0,M[0]=h&255,M[1]=h>>>8&255,t.check=Si(t.check,M,2,0),h=0,g=0,t.mode=wh;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((h&255)<<8)+(h>>8))%31){e.msg="incorrect header check",t.mode=Xe;break}if((h&15)!==yh){e.msg="unknown compression method",t.mode=Xe;break}if(h>>>=4,g-=4,vt=(h&15)+8,t.wbits===0&&(t.wbits=vt),vt>15||vt>t.wbits){e.msg="invalid window size",t.mode=Xe;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=h&512?Eh:_r,h=0,g=0;break;case wh:for(;g<16;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if(t.flags=h,(t.flags&255)!==yh){e.msg="unknown compression method",t.mode=Xe;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=Xe;break}t.head&&(t.head.text=h>>8&1),t.flags&512&&t.wrap&4&&(M[0]=h&255,M[1]=h>>>8&255,t.check=Si(t.check,M,2,0)),h=0,g=0,t.mode=bh;case bh:for(;g<32;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}t.head&&(t.head.time=h),t.flags&512&&t.wrap&4&&(M[0]=h&255,M[1]=h>>>8&255,M[2]=h>>>16&255,M[3]=h>>>24&255,t.check=Si(t.check,M,4,0)),h=0,g=0,t.mode=Sh;case Sh:for(;g<16;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}t.head&&(t.head.xflags=h&255,t.head.os=h>>8),t.flags&512&&t.wrap&4&&(M[0]=h&255,M[1]=h>>>8&255,t.check=Si(t.check,M,2,0)),h=0,g=0,t.mode=Ch;case Ch:if(t.flags&1024){for(;g<16;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}t.length=h,t.head&&(t.head.extra_len=h),t.flags&512&&t.wrap&4&&(M[0]=h&255,M[1]=h>>>8&255,t.check=Si(t.check,M,2,0)),h=0,g=0}else t.head&&(t.head.extra=null);t.mode=Ah;case Ah:if(t.flags&1024&&(d=t.length,d>s&&(d=s),d&&(t.head&&(vt=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(n.subarray(o,o+d),vt)),t.flags&512&&t.wrap&4&&(t.check=Si(t.check,n,d,o)),s-=d,o+=d,t.length-=d),t.length))break t;t.length=0,t.mode=kh;case kh:if(t.flags&2048){if(s===0)break t;d=0;do vt=n[o+d++],t.head&&vt&&t.length<65536&&(t.head.name+=String.fromCharCode(vt));while(vt&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=Si(t.check,n,d,o)),s-=d,o+=d,vt)break t}else t.head&&(t.head.name=null);t.length=0,t.mode=Nh;case Nh:if(t.flags&4096){if(s===0)break t;d=0;do vt=n[o+d++],t.head&&vt&&t.length<65536&&(t.head.comment+=String.fromCharCode(vt));while(vt&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=Si(t.check,n,d,o)),s-=d,o+=d,vt)break t}else t.head&&(t.head.comment=null);t.mode=Lh;case Lh:if(t.flags&512){for(;g<16;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if(t.wrap&4&&h!==(t.check&65535)){e.msg="header crc mismatch",t.mode=Xe;break}h=0,g=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=_r;break;case Eh:for(;g<32;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}e.adler=t.check=qh(h),h=0,g=0,t.mode=Js;case Js:if(t.havedict===0)return e.next_out=c,e.avail_out=f,e.next_in=o,e.avail_in=s,t.hold=h,t.bits=g,x2;e.adler=t.check=1,t.mode=_r;case _r:if(i===_2||i===Gs)break t;case Sc:if(t.last){h>>>=g&7,g-=g&7,t.mode=Ac;break}for(;g<3;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}switch(t.last=h&1,h>>>=1,g-=1,h&3){case 0:t.mode=Ih;break;case 1:if(N2(t),t.mode=Ws,i===Gs){h>>>=2,g-=2;break t}break;case 2:t.mode=Th;break;case 3:e.msg="invalid block type",t.mode=Xe}h>>>=2,g-=2;break;case Ih:for(h>>>=g&7,g-=g&7;g<32;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if((h&65535)!==(h>>>16^65535)){e.msg="invalid stored block lengths",t.mode=Xe;break}if(t.length=h&65535,h=0,g=0,t.mode=Cc,i===Gs)break t;case Cc:t.mode=Ph;case Ph:if(d=t.length,d){if(d>
vendor: 4,663 bytes, line 2
2s&&(d=s),d>f&&(d=f),d===0)break t;r.set(n.subarray(o,o+d),c),s-=d,o+=d,f-=d,c+=d,t.length-=d;break}t.mode=_r;break;case Th:for(;g<14;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if(t.nlen=(h&31)+257,h>>>=5,g-=5,t.ndist=(h&31)+1,h>>>=5,g-=5,t.ncode=(h&15)+4,h>>>=4,g-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=Xe;break}t.have=0,t.mode=Fh;case Fh:for(;t.have<t.ncode;){for(;g<3;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}t.lens[T[t.have++]]=h&7,h>>>=3,g-=3}for(;t.have<19;)t.lens[T[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,ot={bits:t.lenbits},Q=Ba(m2,t.lens,0,19,t.lencode,0,t.work,ot),t.lenbits=ot.bits,Q){e.msg="invalid code lengths set",t.mode=Xe;break}t.have=0,t.mode=Oh;case Oh:for(;t.have<t.nlen+t.ndist;){for(;D=t.lencode[h&(1<<t.lenbits)-1],N=D>>>24,Y=D>>>16&255,W=D&65535,!(N<=g);){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if(W<16)h>>>=N,g-=N,t.lens[t.have++]=W;else{if(W===16){for(A=N+2;g<A;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if(h>>>=N,g-=N,t.have===0){e.msg="invalid bit length repeat",t.mode=Xe;break}vt=t.lens[t.have-1],d=3+(h&3),h>>>=2,g-=2}else if(W===17){for(A=N+3;g<A;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}h>>>=N,g-=N,vt=0,d=3+(h&7),h>>>=3,g-=3}else{for(A=N+7;g<A;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}h>>>=N,g-=N,vt=0,d=11+(h&127),h>>>=7,g-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=Xe;break}for(;d--;)t.lens[t.have++]=vt}}if(t.mode===Xe)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=Xe;break}if(t.lenbits=9,ot={bits:t.lenbits},Q=Ba(dp,t.lens,0,t.nlen,t.lencode,0,t.work,ot),t.lenbits=ot.bits,Q){e.msg="invalid literal/lengths set",t.mode=Xe;break}if(t.distbits=6,t.distcode=t.distdyn,ot={bits:t.distbits},Q=Ba(gp,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,ot),t.distbits=ot.bits,Q){e.msg="invalid distances set",t.mode=Xe;break}if(t.mode=Ws,i===Gs)break t;case Ws:t.mode=Zs;case Zs:if(s>=6&&f>=258){e.next_out=c,e.avail_out=f,e.next_in=o,e.avail_in=s,t.hold=h,t.bits=g,f2(e,S),c=e.next_out,r=e.output,f=e.avail_out,o=e.next_in,n=e.input,s=e.avail_in,h=t.hold,g=t.bits,t.mode===_r&&(t.back=-1);break}for(t.back=0;D=t.lencode[h&(1<<t.lenbits)-1],N=D>>>24,Y=D>>>16&255,W=D&65535,!(N<=g);){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if(Y&&(Y&240)===0){for(z=N,ft=Y,bt=W;D=t.lencode[bt+((h&(1<<z+ft)-1)>>z)],N=D>>>24,Y=D>>>16&255,W=D&65535,!(z+N<=g);){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}h>>>=z,g-=z,t.back+=z}if(h>>>=N,g-=N,t.back+=N,t.length=W,Y===0){t.mode=zh;break}if(Y&32){t.back=-1,t.mode=_r;break}if(Y&64){e.msg="invalid literal/length code",t.mode=Xe;break}t.extra=Y&15,t.mode=Rh;case Rh:if(t.extra){for(A=t.extra;g<A;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}t.length+=h&(1<<t.extra)-1,h>>>=t.extra,g-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Dh;case Dh:for(;D=t.distcode[h&(1<<t.distbits)-1],N=D>>>24,Y=D>>>16&255,W=D&65535,!(N<=g);){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if((Y&240)===0){for(z=N,ft=Y,bt=W;D=t.distcode[bt+((h&(1<<z+ft)-1)>>z)],N=D>>>24,Y=D>>>16&255,W=D&65535,!(z+N<=g);){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}h>>>=z,g-=z,t.back+=z}if(h>>>=N,g-=N,t.back+=N,Y&64){e.msg="invalid distance code",t.mode=Xe;break}t.offset=W,t.extra=Y&15,t.mode=Mh;case Mh:if(t.extra){for(A=t.extra;g<A;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}t.offset+=h&(1<<t.extra)-1,h>>>=t.extra,g-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=Xe;break}t.mode=Bh;case Bh:if(f===0)break t;if(d=S-f,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=Xe;break}d>t.wnext?(d-=t.wnext,O=t.wsize-d):O=t.wnext-d,d>t.length&&(d=t.length),E=t.window}else E=r,O=c-t.offset,d=t.length;d>f&&(d=f),f-=d,t.length-=d;do r[c++]=E[O++];while(--d);t.length===0&&(t.mode=Zs);break;case zh:if(f===0)break t;r[c++]=t.length,f--,t.mode=Zs;break;case Ac:if(t.wrap){for(;g<32;){if(s===0)break t;s--,h|=n[o++]<<g,g+=8}if(S-=f,e.total_out+=S,t.total+=S,t.wrap&4&&S&&(e.adler=t.check=t.flags?Si(t.check,r,S,c-S):Ha(t.check,r,S,c-S)),S=f,t.wrap&4&&(t.flags?h:qh(h))!==t.check){e.msg="incorrect data check",t.mode=Xe;break}h=0,g=0}t.mode=jh;case jh:if(t.wrap&&t.flags){for(;g<32;){if(s===0)break t;s--,h+=n[o++]<<g,g+=8}if(t.wrap&4&&h!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=Xe;break}h=0,g=0}t.mode=Uh;case Uh:Q=v2;break t;case Xe:Q=mp;break t;case vp:return _p;case xp:default:return xn}return e.next_out=c,e.avail_out=f,e.next_in=o,e.avail_in=s,t.hold=h,t.bits=g,(t.wsize||S!==e.avail_out&&t.mode<Xe&&(t.mode<Ac||i!==xh))&&Cp(e,e.output,e.next_out,S-e.avail_out),y-=e.avail_in,S-=e.avail_out,e.total_in+=y,e.total_out+=S,t.total+=S,t.wrap&4&&S&&(e.adler=t.check=t.flags?
2Si(t.check,r,S,e.next_out-S):Ha(t.check,r,S,e.next_out-S)),e.data_type=t.bits+(t.last?64:0)+(t.mode===_r?128:0)+(t.mode===Ws||t.mode===Cc?256:0),(y===0&&S===0||i===xh)&&Q===go&&(Q=y2),Q},E2=e=>{if(mo(e))return xn;let i=e.state;return i.window&&(i.window=null),e.state=null,go},I2=(e,i)=>{if(mo(e))return xn;let t=e.state;return(t.wrap&2)===0?xn:(t.head=i,i.done=!1,go)},P2=(e,i)=>{let t=i.length,n,r,o;return mo(e)||(n=e.state,n.wrap!==0&&n.mode!==Js)?xn:n.mode===Js&&(r=1,r=Ha(r,i,t,0),r!==n.check)?mp:(o=Cp(e,i,t,t),o?(n.mode=vp,_p):(n.havedict=1,go))},T2=wp,F2=bp,O2=yp,R2=k2,D2=Sp,M2=L2,B2=E2,z2=I2,j2=P2,U2="pako inflate (from Nodeca project)",xr={inflateReset:T2,inflateReset2:F2,inflateResetKeep:O2,inflateInit:R2,inflateInit2:D2,inflate:M2,inflateEnd:B2,inflateGetHeader:z2,inflateSetDictionary:j2,inflateInfo:U2};function q2(){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 H2=q2,Ap=Object.prototype.toString,{Z_NO_FLUSH:V2,Z_FINISH:$2,Z_OK:Ga,Z_STREAM_END:Lc,Z_NEED_DICT:Ec,Z_STREAM_ERROR:G2,Z_DATA_ERROR:Vh,Z_MEM_ERROR:W2}=jo;function Ka(e){this.options=tl.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),i.windowBits>=0&&i.windowBits<16&&!(e&&e.windowBits)&&(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&(i.windowBits&15)===0&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new hp,this.strm.avail_out=0;let t=xr.inflateInit2(this.strm,i.windowBits);if(t!==Ga)throw new Error(ho[t]);if(this.header=new H2,xr.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=$a.string2buf(i.dictionary):Ap.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(t=xr.inflateSetDictionary(this.strm,i.dictionary),t!==Ga)))throw new Error(ho[t])}Ka.prototype.push=function(e,i){let t=this.strm,n=this.options.chunkSize,r=this.options.dictionary,o,c,s;if(this.ended)return!1;for(i===~~i?c=i:c=i===!0?$2:V2,Ap.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(n),t.next_out=0,t.avail_out=n),o=xr.inflate(t,c),o===Ec&&r&&(o=xr.inflateSetDictionary(t,r),o===Ga?o=xr.inflate(t,c):o===Vh&&(o=Ec));t.avail_in>0&&o===Lc&&t.state.wrap>0&&e[t.next_in]!==0;)xr.inflateReset(t),o=xr.inflate(t,c);switch(o){case G2:case Vh:case Ec:case W2:return this.onEnd(o),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||o===Lc))if(this.options.to==="string"){let f=$a.utf8border(t.output,t.next_out),h=t.next_out-f,g=$a.buf2string(t.output,f);t.next_out=h,t.avail_out=n-h,h&&t.output.set(t.output.subarray(f,f+h),0),this.onData(g)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(o===Ga&&s===0)){if(o===Lc)return o=xr.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Ka.prototype.onData=function(e){this.chunks.push(e)};Ka.prototype.onEnd=function(e){e===Ga&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=tl.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function $c(e,i){let t=new Ka(i);if(t.push(e),t.err)throw t.msg||ho[t.err];return t.result}function Z2(e,i){return i=i||{},i.raw=!0,$c(e,i)}var Y2=Ka,K2=$c,X2=Z2,J2=$c,Q2=jo,tg={Inflate:Y2,inflate:K2,inflateRaw:X2,ungzip:J2,constants:Q2},{Deflate:$_,deflate:G_,deflateRaw:W_,gzip:Z_}=l2,{Inflate:eg,inflate:ig,inflateRaw:Y_,ungzip:K_}=tg;var Gc=eg,kp=ig;var Lp=[];for(let e=0;e<256;e++){let i=e;for(let t=0;t<8;t++)i&1?i=3988292384^i>>>1:i=i>>>1;Lp[e]=i}var Np=4294967295;function ng(e,i,t){let n=e;for(let r=0;r<t;r++)n=Lp[(n^i[r])&255]^n>>>8;return n}function rg(e,i){return(ng(Np,e,i)^Np)>>>0}function Wc(e,i,t){let n=e.readUint32(),r=rg(new Uint8Array(e.buffer,e.byteOffset+e.offset-i-4,i),i);if(r!==n)throw new Error(`CRC mismatch for chunk ${t}. Expected ${n}, found ${r}`)}function il(e,i,t){for(let n=0;n<t;n++)i[n]=e[n]}function nl(e,i,t,n){let r=0;for(;r<n;r++)i[r]=e[r];for(;r<t;r++)i[r]=e[r]+i[r-n]&255}function rl(e,i,t,n){let r=0;if(t.length===0)for(;r<n;r++)i[r]=e[r];else for(;r<n;r++)i[r]=e[r]+t[r]&255}function ol(e,i,t,n,r){let o=0;if(t.length===0){for(;o<r;o++)i[o]=e[o];for(;o<n;o++)i[o]=e[o]+(i[o-r]>>1)&255}else{for(;o<r;o++)i[o]=e[o]+(t[o]>>1)&255;for(;o<n;o++)i[o]=e[o]+(i[o-r]+t[o]>>1)&255}}function al(e,i,t,n,r){let o=0;if(t.length===0){for(;o<r;o++)i[o]=e[o];for(;o<n;o++)i[o]=e[o]+i[o-r]&255}else{for(;o<r;o++)i[o]=e[o]+t[o]&255;for(;o<n;o++)i[o]=e[o]+og(i[o-r],t[o],t[o-r])&255}}function og(e,i,t){let n=e+i-t,r=Math.abs(n-e),o=Math.abs(n-i),c=Math.abs(n-t);return r<=o&&r<=c?e:o<=c?i:t}function Ep(e,i,t,n,r,o){switch(e){case 0:il(i,t,r);break;case 1:nl(i,t,r,o);break;case 2:rl(i,t,n,r);break;case 3:ol(i,t,n,r,o);break;case 4:al(i,t,n,r,o);break;default:throw new Error(`Unsupported filter: ${e}`)}}var ag=new Uint16Array([255]),sg=new Uint8Array(ag.buffer),lg=sg[0]===255;
2function Ip(e){let{data:i,width:t,height:n,channels:r,depth:o}=e,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}],s=Math.ceil(o/8)*r,f=new Uint8Array(n*t*s),h=0;for(let g=0;g<7;g++){let y=c[g],S=Math.ceil((t-y.x)/y.xStep),d=Math.ceil((n-y.y)/y.yStep);if(S<=0||d<=0)continue;let O=S*s,E=new Uint8Array(O);for(let D=0;D<d;D++){let N=i[h++],Y=i.subarray(h,h+O);h+=O;let W=new Uint8Array(O);Ep(N,Y,W,E,O,s),E.set(W);for(let z=0;z<S;z++){let ft=y.x+z*y.xStep,bt=y.y+D*y.yStep;if(!(ft>=t||bt>=n))for(let vt=0;vt<s;vt++)f[(bt*t+ft)*s+vt]=W[z*s+vt]}}}if(o===16){let g=new Uint16Array(f.buffer);if(lg)for(let y=0;y<g.length;y++)g[y]=cg(g[y]);return g}else return f}function cg(e){return(e&255)<<8|e>>8&255}var fg=new Uint16Array([255]),ug=new Uint8Array(fg.buffer),hg=ug[0]===255,pg=new Uint8Array(0);function Zc(e){let{data:i,width:t,height:n,channels:r,depth:o}=e,c=Math.ceil(o/8)*r,s=Math.ceil(o/8*r*t),f=new Uint8Array(n*s),h=pg,g=0,y,S;for(let d=0;d<n;d++){switch(y=i.subarray(g+1,g+1+s),S=f.subarray(d*s,(d+1)*s),i[g]){case 0:il(y,S,s);break;case 1:nl(y,S,s,c);break;case 2:rl(y,S,h,s);break;case 3:ol(y,S,h,s,c);break;case 4:al(y,S,h,s,c);break;default:throw new Error(`Unsupported filter: ${i[g]}`)}h=S,g+=s+1}if(o===16){let d=new Uint16Array(f.buffer);if(hg)for(let O=0;O<d.length;O++)d[O]=dg(d[O]);return d}else return f}function dg(e){return(e&255)<<8|e>>8&255}var sl=Uint8Array.of(137,80,78,71,13,10,26,10);function Yc(e){if(!Pp(e.readBytes(sl.length)))throw new Error("wrong PNG signature")}function Pp(e){if(e.length<sl.length)return!1;for(let i=0;i<sl.length;i++)if(e[i]!==sl[i])return!1;return!0}var Tp="tEXt",mg=0,Fp=new TextDecoder("latin1");function _g(e){if(xg(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}var vg=/^[\u0000-\u00FF]*$/;function xg(e){if(!vg.test(e))throw new Error("invalid latin1 text")}function Op(e,i,t){let n=Kc(i);e[n]=yg(i,t-n.length-1)}function Kc(e){for(e.mark();e.readByte()!==mg;);let i=e.offset;e.reset();let t=Fp.decode(e.readBytes(i-e.offset-1));return e.skip(1),_g(t),t}function yg(e,i){return Fp.decode(e.readBytes(i))}var Hi={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Xa={UNKNOWN:-1,DEFLATE:0},ll={UNKNOWN:-1,ADAPTIVE:0},Ja={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Qa={NONE:0,BACKGROUND:1,PREVIOUS:2},cl={SOURCE:0,OVER:1};var fl=class extends Ta{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(i,t={}){super(i);let{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new Gc,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=Xa.UNKNOWN,this._filterMethod=ll.UNKNOWN,this._interlaceMethod=Ja.UNKNOWN,this._colorType=Hi.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Yc(this);!this._end;){let i=this.readUint32(),t=this.readChars(4);this.decodeChunk(i,t)}return this.decodeImage(),this._png}decodeApng(){for(Yc(this);!this._end;){let i=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(i,t)}return this.decodeApngImage(),this._apng}decodeChunk(i,t){let n=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(i);break;case"IDAT":this.decodeIDAT(i);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(i);break;case"iCCP":this.decodeiCCP(i);break;case Tp:Op(this._png.text,this,i);break;case"pHYs":this.decodepHYs();break;default:this.skip(i);break}if(this.offset-n!==i)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?Wc(this,i+4,t):this.skip(4)}decodeApngChunk(i,t){let n=this.offset;switch(t!=="fdAT"&&t!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(i);break;default:this.decodeChunk(i,t),this.offset=n+i;break}if(this.offset-n!==i)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?Wc(this,i+4,t):this.skip(4)}decodeIHDR(){let i=this._png;i.width=this.readUint32(),i.height=this.readUint32(),i.depth=wg(this.readUint8());let t=this.readUint8();this._colorType=t;let n;switch(t){case Hi.GREYSCALE:n=1;break;case Hi.TRUECOLOUR:n=3;break;case Hi.INDEXED_COLOUR:n=1;break;case Hi.GREYSCALE_ALPHA:n=2;break;case Hi.TRUECOLOUR_ALPHA:n=4;break;case Hi.UNKNOWN:default:throw new Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==Xa.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(){let i={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(i)}
2decodePLTE(i){if(i%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${i}`);let t=i/3;this._hasPalette=!0;let n=[];this._palette=n;for(let r=0;r<t;r++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(i){this._writingDataChunks=!0;let t=i,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(i)}decodeFDAT(i){this._writingDataChunks=!0;let t=i,n=this.offset+this.byteOffset;if(n+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(i)}decodetRNS(i){switch(this._colorType){case Hi.GREYSCALE:case Hi.TRUECOLOUR:{if(i%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${i}`);if(i/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${i/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(i/2);for(let t=0;t<i/2;t++)this._transparency[t]=this.readUint16();break}case Hi.INDEXED_COLOUR:{if(i>this._palette.length)throw new Error(`tRNS chunk contains more alph
2a values than there are palette colors (${i} vs ${this._palette.length})`);let t=0;for(;t<i;t++){let n=this.readByte();this._palette[t].push(n)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}case Hi.UNKNOWN:case Hi.GREYSCALE_ALPHA:case Hi.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(i){let t=Kc(this),n=this.readUint8();if(n!==Xa.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);let r=this.readBytes(i-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:kp(r)}}decodepHYs(){let i=this.readUint32(),t=this.readUint32(),n=this.readByte();this._png.resolution={x:i,y:t,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let i=0;i<this._numberOfFrames;i++){let t={sequenceNumber:this._frames[i].sequenceNumber,delayNumber:this._frames[i].delayNumber,delayDenominator:this._frames[i].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(i);if(n){if(n.data=Zc({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),i===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)t.data=n.data;else{let r=this._apng.frames.at(i-1);this.disposeFrame(n,r,t),this.addFrameDataToCanvas(t,n)}this._apng.frames.push(t)}}return this._apng}disposeFrame(i,t,n){switch(i.disposeOp){case Qa.NONE:break;case Qa.BACKGROUND:for(let r=0;r<this._png.height;r++)for(let o=0;o<this._png.width;o++){let c=(r*i.width+o)*this._png.channels;for(let s=0;s<this._png.channels;s++)n.data[c+s]=0}break;case Qa.PREVIOUS:n.data.set(t.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(i,t){let n=1<<this._png.depth,r=(o,c)=>{let s=((o+t.yOffset)*this._png.width+t.xOffset+c)*this._png.channels,f=(o*t.width+c)*this._png.channels;return{index:s,frameIndex:f}};switch(t.blendOp){case cl.SOURCE:for(let o=0;o<t.height;o++)for(let c=0;c<t.width;c++){let{index:s,frameIndex:f}=r(o,c);for(let h=0;h<this._png.channels;h++)i.data[s+h]=t.data[f+h]}break;case cl.OVER:for(let o=0;o<t.height;o++)for(let c=0;c<t.width;c++){let{index:s,frameIndex:f}=r(o,c);for(let h=0;h<this._png.channels;h++){let g=t.data[f+this._png.channels-1]/n,y=h%(this._png.channels-1)===0?1:t.data[f+h],S=Math.floor(g*y+(1-g)*i.data[s+h]);i.data[s+h]+=S}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let i=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==ll.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Ja.NO_INTERLACE)this._png.data=Zc({data:i,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Ja.ADAM7)this._png.data=Ip({data:i,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(){let i=this._inflator.result,t=this._frames.at(-1);t?t.data=i:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Qa.NONE,blendOp:cl.SOURCE,data:i}),this._inflator=new Gc,this._writingDataChunks=!1}};function wg(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}function Rp(e,i){return new fl(e,i).decode()}var ie=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Xc(){ie.console&&typeof ie.console.log=="function"&&ie.console.log.apply(ie.console,arguments)}
2var He={log:Xc,warn:function(e){ie.console&&(typeof ie.console.warn=="function"?ie.console.warn.apply(ie.console,arguments):Xc.call(null,arguments))},error:function(e){ie.console&&(typeof ie.console.error=="function"?ie.console.error.apply(ie.console,arguments):Xc(e))}};function Jc(e,i,t){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){_o(n.response,i,t)},n.onerror=function(){He.error("could not download file")},n.send()}function Dp(e){var i=new XMLHttpRequest;i.open("HEAD",e,!1);try{i.send()}catch{}return i.status>=200&&i.status<=299}function ul(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(i)}}var _o=ie.saveAs||((typeof window>"u"?"undefined":Me(window))!=="object"||window!==ie?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,i,t){var n=ie.URL||ie.webkitURL,r=document.createElement("a");i=i||e.name||"download",r.download=i,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Dp(r.href)?Jc(e,i,t):ul(r,r.target="_blank"):ul(r)):(r.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(r.href)},4e4),setTimeout(function(){ul(r)},0))}:"msSaveOrOpenBlob"in navigator?function(e,i,t){if(i=i||e.name||"download",typeof e=="string")if(Dp(e))Jc(e,i,t);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){ul(n)})}else navigator.msSaveOrOpenBlob((function(r,o){return o===void 0?o={autoBom:!1}:Me(o)!=="object"&&(He.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(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r})(e,t),i)}:function(e,i,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return Jc(e,i,t);var r=e.type==="application/octet-stream",o=/constructor/i.test(ie.HTMLElement)||ie.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&o)&&(typeof FileReader>"u"?"undefined":Me(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var g=s.result;g=c?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=g:location=g,n=null},s.readAsDataURL(e)}else{var f=ie.URL||ie.webkitURL,h=f.createObjectURL(e);n?n.location=h:location.href=h,n=null,setTimeout(function(){f.revokeObjectURL(h)},4e4)}});function ad(e){var i;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={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
20",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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<t.length;n++){var r=t[n].re,o=t[n].process,c=r.exec(e);c&&(i=o(c),this.r=i[0],this.g=i[1],this.b=i[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 s=this.r.toString(16),f=this.g.toString(16),h=this.b.toString(16);return s.length==1&&(s="0"+s),f.length==1&&(f="0"+f),h.length==1&&(h="0"+h),"#"+s+f+h}}var gl=ie.atob.bind(ie),Mp=ie.btoa.bind(ie);function Qc(e,i){var t=e[0],n=e[1],r=e[2],o=e[3];t=Oi(t,n,r,o,i[0],7,-680876936),o=Oi(o,t,n,r,i[1],12,-389564586),r=Oi(r,o,t,n,i[2],17,606105819),n=Oi(n,r,o,t,i[3],22,-1044525330),t=Oi(t,n,r,o,i[4],7,-176418897),o=Oi(o,t,n,r,i[5],12,1200080426),r=Oi(r,o,t,n,i[6],17,-1473231341),n=Oi(n,r,o,t,i[7],22,-45705983),t=Oi(t,n,r,o,i[8],7,1770035416),o=Oi(o,t,n,r,i[9],12,-1958414417),r=Oi(r,o,t,n,i[10],17,-42063),n=Oi(n,r,o,t,i[11],22,-1990404162),t=Oi(t,n,r,o,i[12],7,1804603682),o=Oi(o,t,n,r,i[13],12,-40341101),r=Oi(r,o,t,n,i[14],17,-1502002290),t=Ri(t,n=Oi(n,r,o,t,i[15],22,1236535329),r,o,i[1],5,-165796510),o=Ri(o,t,n,r,i[6],9,-1069501632),r=Ri(r,o,t,n,i[11],14,643717713),n=Ri(n,r,o,t,i[0],20,-373897302),t=Ri(t,n,r,o,i[5],5,-701558691),o=Ri(o,t,n,r,i[10],9,38016083),r=Ri(r,o,t,n,i[15],14,-660478335),n=Ri(n,r,o,t,i[4],20,-405537848),t=Ri(t,n,r,o,i[9],5,568446438),o=Ri(o,t,n,r,i[14],9,-1019803690),r=Ri(r,o,t,n,i[3],14,-187363961),n=Ri(n,r,o,t,i[8],20,1163531501),t=Ri(t,n,r,o,i[13],5,-1444681467),o=Ri(o,t,n,r,i[2],9,-51403784),r=Ri(r,o,t,n,i[7],14,1735328473),t=Di(t,n=Ri(n,r,o,t,i[12],20,-1926607734),r,o,i[5],4,-378558),o=Di(o,t,n,r,i[8],11,-2022574463),r=Di(r,o,t,n,i[11],16,1839030562),n=Di(n,r,o,t,i[14],23,-35309556),t=Di(t,n,r,o,i[1],4,-1530992060),o=Di(o,t,n,r,i[4],11,1272893353),r=Di(r,o,t,n,i[7],16,-155497632),n=Di(n,r,o,t,i[10],23,-1094730640),t=Di(t,n,r,o,i[13],4,681279174),o=Di(o,t,n,r,i[0],11,-358537222),r=Di(r,o,t,n,i[3],16,-722521979),n=Di(n,r,o,t,i[6],23,76029189),t=Di(t,n,r,o,i[9],4,-640364487),o=Di(o,t,n,r,i[12],11,-421815835),r=Di(r,o,t,n,i[15],16,530742520),t=Mi(t,n=Di(n,r,o,t,i[2],23,-995338651),r,o,i[0],6,-198630844),o=Mi(o,t,n,r,i[7],10,1126891415),r=Mi(r,o,t,n,i[14],15,-1416354905),n=Mi(n,r,o,t,i[5],21,-57434055),t=Mi(t,n,r,o,i[12],6,1700485571),o=Mi(o,t,n,r,i[3],10,-1894986606),r=Mi(r,o,t,n,i[10],15,-1051523),n=Mi(n,r,o,t,i[1],21,-2054922799),t=Mi(t,n,r,o,i[8],6,1873313359),o=Mi(o,t,n,r,i[15],10,-30611744),r=Mi(r,o,t,n,i[6],15,-1560198380),n=Mi(n,r,o,t,i[13],21,1309151649),t=Mi(t,n,r,o,i[4],6,-145523070),o=Mi(o,t,n,r,i[11],10,-1120210379),r=Mi(r,o,t,n,i[2],
215,718787259),n=Mi(n,r,o,t,i[9],21,-343485551),e[0]=qr(t,e[0]),e[1]=qr(n,e[1]),e[2]=qr(r,e[2]),e[3]=qr(o,e[3])}function bl(e,i,t,n,r,o){return i=qr(qr(i,e),qr(n,o)),qr(i<<r|i>>>32-r,t)}function Oi(e,i,t,n,r,o,c){return bl(i&t|~i&n,e,i,r,o,c)}function Ri(e,i,t,n,r,o,c){return bl(i&n|t&~n,e,i,r,o,c)}function Di(e,i,t,n,r,o,c){return bl(i^t^n,e,i,r,o,c)}function Mi(e,i,t,n,r,o,c){return bl(t^(i|~n),e,i,r,o,c)}function sd(e){var i,t=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=e.length;i+=64)Qc(n,bg(e.substring(i-64,i)));e=e.substring(i-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<e.length;i++)r[i>>2]|=e.charCodeAt(i)<<(i%4<<3);if(r[i>>2]|=128<<(i%4<<3),i>55)for(Qc(n,r),i=0;i<16;i++)r[i]=0;return r[14]=8*t,Qc(n,r),n}function bg(e){var i,t=[];for(i=0;i<64;i+=4)t[i>>2]=e.charCodeAt(i)+(e.charCodeAt(i+1)<<8)+(e.charCodeAt(i+2)<<16)+(e.charCodeAt(i+3)<<24);return t}var Bp="0123456789abcdef".split("");function Sg(e){for(var i="",t=0;t<4;t++)i+=Bp[e>>8*t+4&15]+Bp[e>>8*t&15];return i}function Cg(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function af(e){return sd(e).map(Cg).join("")}var Ag=(function(e){for(var i=0;i<e.length;i++)e[i]=Sg(e[i]);return e.join("")})(sd("hello"))!="5d41402abc4b2a76b9719d911017c592";function qr(e,i){if(Ag){var t=(65535&e)+(65535&i);return(e>>16)+(i>>16)+(t>>16)<<16|65535&t}return e+i&4294967295}function sf(e,i){var t,n,r,o;if(e!==t){for(var c=(r=e,o=1+(256/e.length|0),new Array(o+1).join(r)),s=[],f=0;f<256;f++)s[f]=f;var h=0;for(f=0;f<256;f++){var g=s[f];h=(h+g+c.charCodeAt(f))%256,s[f]=s[h],s[h]=g}t=e,n=s}else s=n;var y=i.length,S=0,d=0,O="";for(f=0;f<y;f++)d=(d+(g=s[S=(S+1)%256]))%256,s[S]=s[d],s[d]=g,c=s[(s[S]+s[d])%256],O+=String.fromCharCode(i.charCodeAt(f)^c);return O}var zp={print:4,modify:8,copy:16,"annot-forms":32};function $o(e,i,t,n){this.v=1,this.r=2;var r=192;e.forEach(function(s){if(zp.perm!==void 0)throw new Error("Invalid permission: "+s);r+=zp[s]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA�\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(i+this.padding).substr(0,32),c=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,c),this.P=-(1+(255^r)),this.encryptionKey=af(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=sf(this.encryptionKey,this.padding)}function Go(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var i="",t=e.length,n=0;n<t;n++){var r=e.charCodeAt(n);i+=r<33||r===35||r===37||r===40||r===41||r===47||r===60||r===62||r===91||r===93||r===123||r===125||r>126?"#"+("0"+r.toString(16)).slice(-2):e[n]}return i}function jp(e){if(Me(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var i={};this.subscribe=function(t,n,r){if(r=r||!1,typeof t!="string"||typeof n!="function"||typeof r!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");i.hasOwnProperty(t)||(i[t]={});var o=Math.random().toString(35);return i[t][o]=[n,!!r],o},this.unsubscribe=function(t){for(var n in i)if(i[n][t])return delete i[n][t],Object.keys(i[n]).length===0&&delete i[n],!0;return!1},this.publish=function(t){if(i.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),r=[];for(var o in i[t]){var c=i[t][o];try{c[0].apply(e,n)}catch(s){ie.console&&He.error("jsPDF PubSub Error",s.message,s)}c[1]&&r.push(o)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return i}}function yl(e){if(!(this instanceof yl))return new yl(e);var i="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&i.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function ld(e,i){this.gState=e,this.matrix=i,this.id="",this.objectNumber=-1}function vo(e,i,t,n,r){if(!(this instanceof vo))return new vo(e,i,t,n,r);this.type=e==="axial"?2:3,this.coords=i,this.colors=t,ld.call(this,n,r)}function Wo(e,i,t,n,r){if(!(this instanceof Wo))return new Wo(e,i,t,n,r);this.boundingBox=e,this.xStep=i,this.yStep=t,this.stream="",this.cloneIndex=0,ld.call(this,n,r)}function Ht(e){var i,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],r=arguments[2],o=arguments[3],c=[],s=1,f=16,h="S",g=null;Me(e=e||{})==="object"&&(t=e.orientation,n=e.unit||n,r=e.format||r,o=e.compress||e.compressPdf||o,(g=e.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(i=e.precision),e.floatPrecision!==void 0&&(f=e.floatPrecision),h=e.defaultPathOperation||"S"),c=e.filters||(o===!0?["FlateEncode"]:c),n=n||"mm",t=(""+(t||"P")).toLowerCase();
2var y=e.putOnlyUsedFonts||!1,S={},d={internal:{},__private__:{}};d.__private__.PubSub=jp;var O="1.3",E=d.__private__.getPdfVersion=function(){return O};d.__private__.setPdfVersion=function(u){O=u};var D={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]};d.__private__.getPageFormats=function(){return D};var N=d.__private__.getPageFormat=function(u){return D[u]};r=r||"a4";var Y="compat",W="advanced",z=Y;function ft(){this.saveGraphicsState(),L(new te(ce,0,0,-ce,0,Jr()*ce).toString()+" cm"),this.setFontSize(this.getFontSize()/ce),h="n",z=W}function bt(){this.restoreGraphicsState(),h="S",z=Y}var vt=d.__private__.combineFontStyleAndFontWeight=function(u,_){if(u=="bold"&&_=="normal"||u=="bold"&&_==400||u=="normal"&&_=="italic"||u=="bold"&&_=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return _&&(u=_==400||_==="normal"?u==="italic"?"italic":"normal":_!=700&&_!=="bold"||u!=="normal"?(_==700?"bold":_)+""+u:"bold"),u};d.advancedAPI=function(u){var _=z===Y;return _&&ft.call(this),typeof u!="function"||(u(this),_&&bt.call(this)),this},d.compatAPI=function(u){var _=z===W;return _&&bt.call(this),typeof u!="function"||(u(this),_&&ft.call(this)),this},d.isAdvancedAPI=function(){return z===W};var Q,M=function(u){if(z!==W)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},ot=d.roundToPrecision=d.__private__.roundToPrecision=function(u,_){var F=i||_;if(isNaN(u)||isNaN(F))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(F).replace(/0+$/,"")};Q=d.hpf=d.__private__.hpf=typeof f=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return ot(u,f)}:f==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return ot(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return ot(u,16)};var A=d.f2=d.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return ot(u,2)},T=d.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return ot(u,3)},V=d.scale=d.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return z===Y?u*ce:z===W?u:void 0},q=function(u){return V((function(_){return z===Y?Jr()-_:z===W?_:void 0})(u))};d.__private__.setPrecision=d.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(i=parseInt(u,10))};var ct,pt="00000000000000000000000000000000",gt=d.__private__.getFileId=function(){return pt},st=d.__private__.setFileId=function(u){return pt=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():pt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(gi=new $o(g.userPermissions,g.userPassword,g.ownerPassword,pt)),pt};d.setFileId=function(u){return st(u),this},d.getFileId=function(){return gt()};var _t=d.__private__.convertDateToPDFDate=function(u){var _=u.getTimezoneOffset(),F=_<0?"+":"-",U=Math.floor(Math.abs(_/60)),tt=Math.abs(_%60),xt=[F,B(U),"'",B(tt),"'"].join("");return["D:",u.getFullYear(),B(u.getMonth()+1),B(u.getDate()),B(u.getHours()),B(u.getMinutes()),B(u.getSeconds()),xt].join("")},Et=d.__private__.convertPDFDateToDate=function(u){var _=parseInt(u.substr(2,4),10),F=parseInt(u.substr(6,2),10)-1,U=parseInt(u.substr(8,2),10),tt=parseInt(u.substr(10,2),10),xt=parseInt(u.substr(12,2),10),St=parseInt(u.substr(14,2),10);return new Date(_,F,U,tt,xt,St,0)},At=d.__private__.setCreationDate=function(u){var _;if(u===void 0&&(u=new Date),u instanceof Date)_=_t(u);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(u))throw new Error("Invalid argument passed to 
2jsPDF.setCreationDate");_=u}return ct=_},b=d.__private__.getCreationDate=function(u){var _=ct;return u==="jsDate"&&(_=Et(ct)),_};d.setCreationDate=function(u){return At(u),this},d.getCreationDate=function(u){return b(u)};var R,B=d.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},$=d.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},J=0,nt=[],ut=[],ht=0,wt=[],Lt=[],Ot=!1,Tt=ut;d.__private__.setCustomOutputDestination=function(u){Ot=!0,Tt=u};var Gt=function(u){Ot||(Tt=u)};d.__private__.resetCustomOutputDestination=function(){Ot=!1,Tt=ut};var L=d.__private__.out=function(u){return u=u.toString(),ht+=u.length+1,Tt.push(u),Tt},Pt=d.__private__.write=function(u){return L(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},pe=d.__private__.getArrayBuffer=function(u){for(var _=u.length,F=new ArrayBuffer(_),U=new Uint8Array(F);_--;)U[_]=u.charCodeAt(_);return F},Xt=[["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]];d.__private__.getStandardFonts=function(){return Xt};var kt=e.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(u){return kt=z===W?u/ce:u,this};var Jt,Dt=d.__private__.getFontSize=d.getFontSize=function(){return z===Y?kt:kt*ce},Kt=e.R2L||!1;d.__private__.setR2L=d.setR2L=function(u){return Kt=u,this},d.__private__.getR2L=d.getR2L=function(){return Kt};var Wt,Pe=d.__private__.setZoomMode=function(u){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))Jt=u;else if(isNaN(u)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(u)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+u+'" is not recognized.');Jt=u}else Jt=parseInt(u,10)};d.__private__.getZoomMode=function(){return Jt};var ve,ae=d.__private__.setPageMode=function(u){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(u)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+u+'" is not recognized.');Wt=u};d.__private__.getPageMode=function(){return Wt};var ye=d.__private__.setLayoutMode=function(u){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(u)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+u+'" is not recognized.');ve=u};d.__private__.getLayoutMode=function(){return ve},d.__private__.setDisplayMode=d.setDisplayMode=function(u,_,F){return Pe(u),ye(_),ae(F),this};var xe={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(u){if(Object.keys(xe).indexOf(u)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xe[u]},d.__private__.getDocumentProperties=function(){return xe},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(u){for(var _ in xe)xe.hasOwnProperty(_)&&u[_]&&(xe[_]=u[_]);return this},d.__private__.setDocumentProperty=function(u,_){if(Object.keys(xe).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xe[u]=_};var Ut,ce,$t,ni,Ae,de={},ge={},Ze=[],Zt={},Ve={},ee={},se={},Ye=null,me=0,Qt=[],Te=new jp(d),Vr=e.hotfixes||[],Ti={},Kn={},Tn=[],te=function u(_,F,U,tt,xt,St){if(!(this instanceof u))return new u(_,F,U,tt,xt,St);isNaN(_)&&(_=1),isNaN(F)&&(F=0),isNaN(U)&&(U=0),isNaN(tt)&&(tt=1),isNaN(xt)&&(xt=0),isNaN(St)&&(St=0),this._matrix=[_,F,U,tt,xt,St]};Object.defineProperty(te.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(te.prototype,"shy",{get:function(){return this._matrix[
21]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(te.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(te.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(te.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(te.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(te.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(te.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(te.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(te.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(te.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(te.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(te.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(te.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(te.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(te.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),te.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Q).join(u)},te.prototype.multiply=function(u){var _=u.sx*this.sx+u.shy*this.shx,F=u.sx*this.shy+u.shy*this.sy,U=u.shx*this.sx+u.sy*this.shx,tt=u.shx*this.shy+u.sy*this.sy,xt=u.tx*this.sx+u.ty*this.shx+this.tx,St=u.tx*this.shy+u.ty*this.sy+this.ty;return new te(_,F,U,tt,xt,St)},te.prototype.decompose=function(){var u=this.sx,_=this.shy,F=this.shx,U=this.sy,tt=this.tx,xt=this.ty,St=Math.sqrt(u*u+_*_),Bt=(u/=St)*F+(_/=St)*U;F-=u*Bt,U-=_*Bt;var qt=Math.sqrt(F*F+U*U);return Bt/=qt,u*(U/=qt)<_*(F/=qt)&&(u=-u,_=-_,Bt=-Bt,St=-St),{scale:new te(St,0,0,qt,0,0),translate:new te(1,0,0,1,tt,xt),rotate:new te(u,_,-_,u,0,0),skew:new te(1,0,Bt,1,0,0)}},te.prototype.toString=function(u){return this.join(" ")},te.prototype.inversed=function(){var u=this.sx,_=this.shy,F=this.shx,U=this.sy,tt=this.tx,xt=this.ty,St=1/(u*U-_*F),Bt=U*St,qt=-_*St,ne=-F*St,fe=u*St;return new te(Bt,qt,ne,fe,-Bt*tt-ne*xt,-qt*tt-fe*xt)},te.prototype.applyToPoint=function(u){var _=u.x*this.sx+u.y*this.shx+this.tx,F=u.x*this.shy+u.y*this.sy+this.ty;return new nr(_,F)},te.prototype.applyToRectangle=function(u){var _=this.applyToPoint(u),F=this.applyToPoint(new nr(u.x+u.w,u.y+u.h));return new aa(_.x,_.y,F.x-_.x,F.y-_.y)},te.prototype.clone=function(){var u=this.sx,_=this.shy,F=this.shx,U=this.sy,tt=this.tx,xt=this.ty;return new te(u,_,F,U,tt,xt)},d.Matrix=te;var Xn=d.matrixMult=function(u,_){return _.multiply(u)},Jn=new te(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Jn;var an=function(u,_){if(!Ve[u]){var F=(_ instanceof vo?"Sh":"P")+(Object.keys(Zt).length+1).toString(10);_.id=F,Ve[u]=F,Zt[F]=_,Te.publish("addPattern",_)}};d.ShadingPattern=vo,d.TilingPattern=Wo,d.addShadingPattern=function(u,_){return M("addShadingPattern()"),an(u,_),this},d.beginTilingPattern=function(u){M("beginTilingPattern()"),sa(u.boundingBox[0],u.boundingBox[1],u.boundingBox[2]-u.boundingBox[0],u.boundingBox[3]-u.boundingBox[1],u.matrix)},d.endTilingPattern=function(u,_){M("endTilingPattern()"),_.stream=Lt[R].join(`
3`),an(u,_),Te.publish("endTilingPattern",_),Tn.pop().restore()};var sn,Qe=d.__private__.newObject=function(){var u=wi();return Ai(u,!0),u},wi=d.__private__.newObjectDeferred=function(){return J++,nt[J]=function(){return ht},J},Ai=function(u,_){return _=typeof _=="boolean"&&_,nt[u]=ht,_&&L(u+" 0 obj"),u},$r=d.__private__.newAdditionalObject=function(){var u={objId:wi(),content:""};return wt.push(u),u},yr=wi(),yn=wi(),Fn=d.__private__.decodeColorString=function(u){var _=u.split(" ");if(_.length!==2||_[1]!=="g"&&_[1]!=="G")_.length!==5||_[4]!=="k"&&_[4]!=="K"||(_=[(1-_[0])*(1-_[3]),(1-_[1])*(1-_[3]),(1-_[2])*(1-_[3]),"r"]);else{var F=parseFloat(_[0]);_=[F,F,F,"r"]}for(var U="#",tt=0;tt<3;tt++)U+=("0"+Math.floor(255*parseFloat(_[tt])).toString(16)).slice(-2);return U},wn=d.__private__.encodeColorString=function(u){var _;typeof u=="string"&&(u={ch1:u});var F=u.ch1,U=u.ch2,tt=u.ch3,xt=u.ch4,St=u.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof F=="string"&&F.charAt(0)!=="#"){var Bt=new ad(F);if(Bt.ok)F=Bt.toHex();else if(!/^\d*\.?\d*$/.test(F))throw new Error('Invalid color "'+F+'" passed to 
3jsPDF.encodeColorString.')}if(typeof F=="string"&&/^#[0-9A-Fa-f]{3}$/.test(F)&&(F="#"+F[1]+F[1]+F[2]+F[2]+F[3]+F[3]),typeof F=="string"&&/^#[0-9A-Fa-f]{6}$/.test(F)){var qt=parseInt(F.substr(1),16);F=qt>>16&255,U=qt>>8&255,tt=255&qt}if(U===void 0||xt===void 0&&F===U&&U===tt)_=typeof F=="string"?F+" "+St[0]:u.precision===2?A(F/255)+" "+St[0]:T(F/255)+" "+St[0];else if(xt===void 0||Me(xt)==="object"){if(xt&&!isNaN(xt.a)&&xt.a===0)return["1.","1.","1.",St[1]].join(" ");_=typeof F=="string"?[F,U,tt,St[1]].join(" "):u.precision===2?[A(F/255),A(U/255),A(tt/255),St[1]].join(" "):[T(F/255),T(U/255),T(tt/255),St[1]].join(" ")}else _=typeof F=="string"?[F,U,tt,xt,St[2]].join(" "):u.precision===2?[A(F),A(U),A(tt),A(xt),St[2]].join(" "):[T(F),T(U),T(tt),T(xt),St[2]].join(" ");return _},bn=d.__private__.getFilters=function(){return c},ln=d.__private__.putStream=function(u){var _=(u=u||{}).data||"",F=u.filters||bn(),U=u.alreadyAppliedFilters||[],tt=u.addLength1||!1,xt=_.length,St=u.objectId,Bt=function(mi){return mi};if(g!==null&&St===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(Bt=gi.encryptor(St,0));var qt={};F===!0&&(F=["FlateEncode"]);var ne=u.additionalKeyValues||[],fe=(qt=Ht.API.processDataByFilters!==void 0?Ht.API.processDataByFilters(_,F):{data:_,reverseChain:[]}).reverseChain+(Array.isArray(U)?U.join(" "):U.toString());if(qt.data.length!==0&&(ne.push({key:"Length",value:qt.data.length}),tt===!0&&ne.push({key:"Length1",value:xt})),fe.length!=0)if(fe.split("/").length-1==1)ne.push({key:"Filter",value:fe});else{ne.push({key:"Filter",value:"["+fe+"]"});for(var ke=0;ke<ne.length;ke+=1)if(ne[ke].key==="DecodeParms"){for(var Je=[],pi=0;pi<qt.reverseChain.split("/").length-1;pi+=1)Je.push("null");Je.push(ne[ke].value),ne[ke].value="["+Je.join(" ")+"]"}}L("<<");for(var $e=0;$e<ne.length;$e++)L("/"+ne[$e].key+" "+ne[$e].value);L(">>"),qt.data.length!==0&&(L("stream"),L(Bt(qt.data)),L("endstream"))},Gr=d.__private__.putPage=function(u){var _=u.number,F=u.data,U=u.objId,tt=u.contentsObjId;Ai(U,!0),L("<</Type /Page"),L("/Parent "+u.rootDictionaryObjId+" 0 R"),L("/Resources "+u.resourceDictionaryObjId+" 0 R"),L("/MediaBox ["+parseFloat(Q(u.mediaBox.bottomLeftX))+" "+parseFloat(Q(u.mediaBox.bottomLeftY))+" "+Q(u.mediaBox.topRightX)+" "+Q(u.mediaBox.topRightY)+"]"),u.cropBox!==null&&L("/CropBox ["+Q(u.cropBox.bottomLeftX)+" "+Q(u.cropBox.bottomLeftY)+" "+Q(u.cropBox.topRightX)+" "+Q(u.cropBox.topRightY)+"]"),u.bleedBox!==null&&L("/BleedBox ["+Q(u.bleedBox.bottomLeftX)+" "+Q(u.bleedBox.bottomLeftY)+" "+Q(u.bleedBox.topRightX)+" "+Q(u.bleedBox.topRightY)+"]"),u.trimBox!==null&&L("/TrimBox ["+Q(u.trimBox.bottomLeftX)+" "+Q(u.trimBox.bottomLeftY)+" "+Q(u.trimBox.topRightX)+" "+Q(u.trimBox.topRightY)+"]"),u.artBox!==null&&L("/ArtBox ["+Q(u.artBox.bottomLeftX)+" "+Q(u.artBox.bottomLeftY)+" "+Q(u.artBox.topRightX)+" "+Q(u.artBox.topRightY)+"]"),typeof u.userUnit=="number"&&u.userUnit!==1&&L("/UserUnit "+u.userUnit),Te.publish("putPage",{objId:U,pageContext:Qt[_],pageNumber:_,page:F}),L("/Contents "+tt+" 0 R"),L(">>"),L("endobj");var xt=F.join(`
4`);return z===W&&(xt+=`
5Q`),Ai(tt,!0),ln({data:xt,filters:bn(),objectId:tt}),L("endobj"),U},On=d.__private__.putPages=function(){var u,_,F=[];for(u=1;u<=me;u++)Qt[u].objId=wi(),Qt[u].contentsObjId=wi();for(u=1;u<=me;u++)F.push(Gr({number:u,data:Lt[u],objId:Qt[u].objId,contentsObjId:Qt[u].contentsObjId,mediaBox:Qt[u].mediaBox,cropBox:Qt[u].cropBox,bleedBox:Qt[u].bleedBox,trimBox:Qt[u].trimBox,artBox:Qt[u].artBox,userUnit:Qt[u].userUnit,rootDictionaryObjId:yr,resourceDictionaryObjId:yn}));Ai(yr,!0),L("<</Type /Pages");var U="/Kids [";for(_=0;_<me;_++)U+=F[_]+" 0 R ";L(U+"]"),L("/Count "+me),L(">>"),L("endobj"),Te.publish("postPutPages")},Wr=function(u){Te.publish("putFont",{font:u,out:L,newObject:Qe,putStream:ln}),u.isAlreadyPutted!==!0&&(u.objectNumber=Qe(),L("<<"),L("/Type /Font"),L("/BaseFont /"+Go(u.postScriptName)),L("/Subtype /Type1"),typeof u.encoding=="string"&&L("/Encoding /"+u.encoding),L("/FirstChar 32"),L("/LastChar 255"),L(">>"),L("endobj"))},wo=function(u){u.objectNumber=Qe();var _=[];_.push({key:"Type",value:"/XObject"}),_.push({key:"Subtype",value:"/Form"}),_.push({key:"BBox",value:"["+[Q(u.x),Q(u.y),Q(u.x+u.width),Q(u.y+u.height)].join(" ")+"]"}),_.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var F=u.pages[1].join(`
6`);ln({data:F,additionalKeyValues:_,objectId:u.objectNumber}),L("endobj")},bo=function(u,_){_||(_=21);var F=Qe(),U=(function(St,Bt){var qt,ne=[],fe=1/(Bt-1);for(qt=0;qt<1;qt+=fe)ne.push(qt);if(ne.push(1),St[0].offset!=0){var ke={offset:0,color:St[0].color};St.unshift(ke)}if(St[St.length-1].offset!=1){var Je={offset:1,color:St[St.length-1].color};St.push(Je)}for(var pi="",$e=0,mi=0;mi<ne.length;mi++){for(qt=ne[mi];qt>St[$e+1].offset;
6)$e++;var di=St[$e].offset,ki=(qt-di)/(St[$e+1].offset-di),ar=St[$e].color,Cn=St[$e+1].color;pi+=$(Math.round((1-ki)*ar[0]+ki*Cn[0]).toString(16))+$(Math.round((1-ki)*ar[1]+ki*Cn[1]).toString(16))+$(Math.round((1-ki)*ar[2]+ki*Cn[2]).toString(16))}return pi.trim()})(u.colors,_),tt=[];tt.push({key:"FunctionType",value:"0"}),tt.push({key:"Domain",value:"[0.0 1.0]"}),tt.push({key:"Size",value:"["+_+"]"}),tt.push({key:"BitsPerSample",value:"8"}),tt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),tt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ln({data:U,additionalKeyValues:tt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:F}),L("endobj"),u.objectNumber=Qe(),L("<< /ShadingType "+u.type),L("/ColorSpace /DeviceRGB");var xt="/Coords ["+Q(parseFloat(u.coords[0]))+" "+Q(parseFloat(u.coords[1]))+" ";u.type===2?xt+=Q(parseFloat(u.coords[2]))+" "+Q(parseFloat(u.coords[3])):xt+=Q(parseFloat(u.coords[2]))+" "+Q(parseFloat(u.coords[3]))+" "+Q(parseFloat(u.coords[4]))+" "+Q(parseFloat(u.coords[5])),L(xt+="]"),u.matrix&&L("/Matrix ["+u.matrix.toString()+"]"),L("/Function "+F+" 0 R"),L("/Extend [true true]"),L(">>"),L("endobj")},So=function(u,_){var F=wi(),U=Qe();_.push({resourcesOid:F,objectOid:U}),u.objectNumber=U;var tt=[];tt.push({key:"Type",value:"/Pattern"}),tt.push({key:"PatternType",value:"1"}),tt.push({key:"PaintType",value:"1"}),tt.push({key:"TilingType",value:"1"}),tt.push({key:"BBox",value:"["+u.boundingBox.map(Q).join(" ")+"]"}),tt.push({key:"XStep",value:Q(u.xStep)}),tt.push({key:"YStep",value:Q(u.yStep)}),tt.push({key:"Resources",value:F+" 0 R"}),u.matrix&&tt.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),ln({data:u.stream,additionalKeyValues:tt,objectId:u.objectNumber}),L("endobj")},Al=function(u){for(var _ in u.objectNumber=Qe(),L("<<"),u)switch(_){case"opacity":L("/ca "+A(u[_]));break;case"stroke-opacity":L("/CA "+A(u[_]))}L(">>"),L("endobj")},Jo=function(u){Ai(u.resourcesOid,!0),L("<<"),L("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var _ in L("/Font <<"),de)de.hasOwnProperty(_)&&(y===!1||y===!0&&S.hasOwnProperty(_))&&L("/"+_+" "+de[_].objectNumber+" 0 R");L(">>")})(),(function(){if(Object.keys(Zt).length>0){for(var _ in L("/Shading <<"),Zt)Zt.hasOwnProperty(_)&&Zt[_]instanceof vo&&Zt[_].objectNumber>=0&&L("/"+_+" "+Zt[_].objectNumber+" 0 R");Te.publish("putShadingPatternDict"),L(">>")}})(),(function(_){if(Object.keys(Zt).length>0){for(var F in L("/Pattern <<"),Zt)Zt.hasOwnProperty(F)&&Zt[F]instanceof d.TilingPattern&&Zt[F].objectNumber>=0&&Zt[F].objectNumber<_&&L("/"+F+" "+Zt[F].objectNumber+" 0 R");Te.publish("putTilingPatternDict"),L(">>")}})(u.objectOid),(function(){if(Object.keys(ee).length>0){var _;for(_ in L("/ExtGState <<"),ee)ee.hasOwnProperty(_)&&ee[_].objectNumber>=0&&L("/"+_+" "+ee[_].objectNumber+" 0 R");Te.publish("putGStateDict"),L(">>")}})(),(function(){for(var _ in L("/XObject <<"),Ti)Ti.hasOwnProperty(_)&&Ti[_].objectNumber>=0&&L("/"+_+" "+Ti[_].objectNumber+" 0 R");Te.publish("putXobjectDict"),L(">>")})(),L(">>"),L("endobj")},es=function(u){ge[u.fontName]=ge[u.fontName]||{},ge[u.fontName][u.fontStyle]=u.id},is=function(u,_,F,U,tt){var xt={id:"F"+(Object.keys(de).length+1).toString(10),postScriptName:u,fontName:_,fontStyle:F,encoding:U,isStandardFont:tt||!1,metadata:{}};return Te.publish("addFont",{font:xt,instance:this}),de[xt.id]=xt,es(xt),xt.id},cn=d.__private__.pdfEscape=d.pdfEscape=function(u,_){return(function(F,U){var tt,xt,St,Bt,qt,ne,fe,ke,Je;if(St=(U=U||{}).sourceEncoding||"Unicode",qt=U.outputEncoding,(U.autoencode||qt)&&de[Ut].metadata&&de[Ut].metadata[St]&&de[Ut].metadata[St].encoding&&(Bt=de[Ut].metadata[St].encoding,!qt&&de[Ut].encoding&&(qt=de[Ut].encoding),!qt&&Bt.codePages&&(qt=Bt.codePages[0]),typeof qt=="string"&&(qt=Bt[qt]),qt)){for(fe=!1,ne=[],tt=0,xt=F.length;tt<xt;tt++)(ke=qt[F.charCodeAt(tt)])?ne.push(String.fromCharCode(ke)):ne.push(F[tt]),ne[tt].charCodeAt(0)>>8&&(fe=!0);F=ne.join("")}for(tt=F.length;fe===void 0&&tt!==0;)F.charCodeAt(tt-1)>>8&&(fe=!0),tt--;if(!fe)return F;for(ne=U.noBOM?[]:[254,255],tt=0,xt=F.length;tt<xt;
6tt++){if((Je=(ke=F.charCodeAt(tt))>>8)>>8)throw new Error("Character at position "+tt+" of string '"+F+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ne.push(Je),ne.push(ke-(Je<<8))}return String.fromCharCode.apply(void 0,ne)})(u,_).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Qo=d.__private__.beginPage=function(u){Lt[++me]=[],Qt[me]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(u[0]),topRightY:Number(u[1])}},rs(me),Gt(Lt[R])},ns=function(u,_){var F,U,tt;switch(t=_||t,typeof u=="string"&&(F=N(u.toLowerCase()),Array.isArray(F)&&(U=F[0],tt=F[1])),Array.isArray(u)&&(U=u[0]*ce,tt=u[1]*ce),isNaN(U)&&(U=r[0],tt=r[1]),(U>14400||tt>14400)&&(He.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),U=Math.min(14400,U),tt=Math.min(14400,tt)),r=[U,tt],t.substr(0,1)){case"l":tt>U&&(r=[tt,U]);break;case"p":U>tt&&(r=[tt,U])}Qo(r),re(ia),L(No),ra!==0&&L(ra+" J"),oa!==0&&L(oa+" j"),Te.publish("addPage",{pageNumber:me})},ta=function(u){u>0&&u<=me&&(Lt.splice(u,1),Qt.splice(u,1),me--,R>me&&(R=me),this.setPage(R))},rs=function(u){u>0&&u<=me&&(R=u)},os=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return Lt.length-1},as=function(u,_,F){var U,tt=void 0;return F=F||{},u=u!==void 0?u:de[Ut].fontName,_=_!==void 0?_:de[Ut].fontStyle,U=u.toLowerCase(),ge[U]!==void 0&&ge[U][_]!==void 0?tt=ge[U][_]:ge[u]!==void 0&&ge[u][_]!==void 0?tt=ge[u][_]:F.disableWarning===!1&&He.warn("Unable to look up font label for font '"+u+"', '"+_+"'. Refer to getFontList() for available fonts."),tt||F.noFallback||(tt=ge.times[_])==null&&(tt=ge.times.normal),tt},Rn=d.__private__.putInfo=function(){var u=Qe(),_=function(U){return U};for(var F in g!==null&&(_=gi.encryptor(u,0)),L("<<"),L("/Producer ("+cn(_("jsPDF "+Ht.version))+")"),xe)xe.hasOwnProperty(F)&&xe[F]&&L("/"+F.substr(0,1).toUpperCase()+F.substr(1)+" ("+cn(_(xe[F]))+")");L("/CreationDate ("+cn(_(ct))+")"),L(">>"),L("endobj")},Co=d.__private__.putCatalog=function(u){var _=(u=u||{}).rootDictionaryObjId||yr;switch(Qe(),L("<<"),L("/Type /Catalog"),L("/Pages "+_+" 0 R"),Jt||(Jt="fullwidth"),Jt){case"fullwidth":L("/OpenAction [3 0 R /FitH null]");break;case"fullheight":L("/OpenAction [3 0 R /FitV null]");break;case"fullpage":L("/OpenAction [3 0 R /Fit]");break;case"original":L("/OpenAction [3 0 R /XYZ null null 1]");break;default:var F=""+Jt;F.substr(F.length-1)==="%"&&(Jt=parseInt(Jt)/100),typeof Jt=="number"&&L("/OpenAction [3 0 R /XYZ null null "+A(Jt)+"]")}switch(ve||(ve="continuous"),ve){case"continuous":L("/PageLayout /OneColumn");break;case"single":L("/PageLayout /SinglePage");break;case"two":case"twoleft":L("/PageLayout /TwoColumnLeft");break;case"tworight":L("/PageLayout /TwoColumnRight")}Wt&&L("/PageMode /"+Wt),Te.publish("putCatalog"),L(">>"),L("endobj")},kl=d.__private__.putTrailer=function(){L("trailer"),L("<<"),L("/Size "+(J+1)),L("/Root "+J+" 0 R"),L("/Info "+(J-1)+" 0 R"),g!==null&&L("/Encrypt "+gi.oid+" 0 R"),L("/ID [ <"+pt+"> <"+pt+"> ]"),L(">>")},hi=d.__private__.putHeader=function(){L("%PDF-"+O),L("%\xBA\xDF\xAC\xE0")},ss=d.__private__.putXRef=function(){var u="0000000000";L("xref"),L("0 "+(J+1)),L("0000000000 65535 f ");for(var _=1;_<=J;_++)typeof nt[_]=="function"?L((u+nt[_]()).slice(-10)+" 00000 n "):nt[_]!==void 0?L((u+nt[_]).slice(-10)+" 00000 n "):L("0000000000 00000 n ")},Dn=d.__private__.buildDocument=function(){var u;J=0,ht=0,ut=[],nt=[],wt=[],yr=wi(),yn=wi(),Gt(ut),Te.publish("buildDocument"),hi(),On(),(function(){Te.publish("putAdditionalObjects");for(var F=0;F<wt.length;F++){var U=wt[F];Ai(U.objId,!0),L(U.content),L("endobj")}Te.publish("postPutAdditionalObjects")})(),u=[],(function(){for(var F in de)de.hasOwnProperty(F)&&(y===!1||y===!0&&S.hasOwnProperty(F))&&Wr(de[F])})(),(function(){var F;for(F in ee)ee.hasOwnProperty(F)&&Al(ee[F])})(),(function(){for(var F in Ti)Ti.hasOwnProperty(F)&&wo(Ti[F])})(),(function(F){var U;for(U in Zt)Zt.hasOwnProperty(U)&&(Zt[U]instanceof vo?bo(Zt[U]):Zt[U]instanceof Wo&&So(Zt[U],F))})(u),Te.publish("putResources"),u.forEach(Jo),Jo({resourcesOid:yn,objectOid:Number.MAX_SAFE_INTEGER}),Te.publish("postPutResources"),g!==null&&(gi.oid=Qe(),L("<<"),L("/Filter /Standard"),L("/V "+gi.v),L("/R "+gi.r),L("/U <"+gi.toHexString(gi.U)+">"),L("/O <"+gi.toHexString(gi.O)+">"),L("/P "+gi.P),L(">>"),L("endobj")),Rn(),Co();var _=ht;return ss(),kl(),L("startxref"),L(""+_),L("%%EOF"),Gt(Lt[R]),ut.join(`
7`)},Ao=d.__private__.getBlob=function(u){return new Blob([pe(u)],{type:"application/pdf"})},ls=d.output=d.__private__.output=(sn=function(u,_){switch(typeof(_=_||{})=="string"?_={filename:_}:_.filename=_.filename||"generated.pdf",u){case void 0:return Dn();case"save":d.save(_.filename);break;case"arraybuffer":return pe(Dn());case"blob":return Ao(Dn());case"bloburi":case"bloburl":if(ie.URL!==void 0&&typeof ie.URL.createObjectURL=="function")return ie.URL&&ie.URL.createObjectURL(Ao(Dn()))||void 0;He.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var F="",U=Dn();try{F=Mp(U)}catch{F=Mp(unescape(encodeURIComponent(U)))}return"data:application/pdf;filename="+_.filename+";base64,"+F;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ie)==="[object Window]"){var tt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",xt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';_.pdfObjectUrl&&(tt=_.pdfObjectUrl,xt="");var St='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+tt+'"'+xt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(_)+");<\/script></body></html>",Bt=ie.open();return Bt!==null&&Bt.document.write(St),Bt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ie)==="[object Window]"){var qt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(_.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+_.filename+'" width="500px" height="400px" /></body></html>',ne=ie.open();if(ne!==null){ne.document.write(qt);var fe=this;ne.document.documentElement.querySelector("#pdfViewer").onload=function(){ne.document.title=_.filename,ne.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(fe.output("bloburl"))}}return ne}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ie)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ke='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",_)+'"></iframe></body></html>',Je=ie.open();if(Je!==null&&(Je.document.write(ke),Je.document.title=_.filename),Je||typeof safari>"u")return Je;break;case"datauri":case"dataurl":return ie.document.location.href=this.output("datauristring",_);default:return null}},sn.foo=function(){try{return sn.apply(this,arguments)}catch(F){var u=F.stack||"";~u.indexOf(" at ")&&(u=u.split(" at ")[1]);var _="Error in function "+u.split(`
8`)[0].split("<")[0]+": "+F.message;if(!ie.console)throw new Error(_);ie.console.error(_,F),ie.alert&&alert(_)}},sn.foo.bar=sn,sn.foo),fn=function(u){return Array.isArray(Vr)===!0&&Vr.indexOf(u)>-1};switch(n){case"pt":ce=1;break;case"mm":ce=72/25.4;break;case"cm":ce=72/2.54;break;case"in":ce=72;break;case"px":ce=fn("px_scaling")==1?.75:96/72;break;case"pc":case"em":ce=12;break;case"ex":ce=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);ce=n}var gi=null;At(),st();var Qn=d.__private__.getPageInfo=d.getPageInfo=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to 
8jsPDF.getPageInfo");return{objId:Qt[u].objId,pageNumber:u,pageContext:Qt[u]}},cs=d.__private__.getPageInfoByObjId=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var _ in Qt)if(Qt[_].objId===u)break;return Qn(_)},Nl=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:Qt[R].objId,pageNumber:R,pageContext:Qt[R]}};d.addPage=function(){return ns.apply(this,arguments),this},d.setPage=function(){return rs.apply(this,arguments),Gt.call(this,Lt[R]),this},d.insertPage=function(u){return this.addPage(),this.movePage(R,u),this},d.movePage=function(u,_){var F,U;if(u>_){F=Lt[u],U=Qt[u];for(var tt=u;tt>_;tt--)Lt[tt]=Lt[tt-1],Qt[tt]=Qt[tt-1];Lt[_]=F,Qt[_]=U,this.setPage(_)}else if(u<_){F=Lt[u],U=Qt[u];for(var xt=u;xt<_;xt++)Lt[xt]=Lt[xt+1],Qt[xt]=Qt[xt+1];Lt[_]=F,Qt[_]=U,this.setPage(_)}return this},d.deletePage=function(){return ta.apply(this,arguments),this},d.__private__.text=d.text=function(u,_,F,U,tt){var xt,St,Bt,qt,ne,fe,ke,Je,pi,$e=(U=U||{}).scope||this;if(typeof u=="number"&&typeof _=="number"&&(typeof F=="string"||Array.isArray(F))){var mi=F;F=_,_=u,u=mi}if(arguments[3]instanceof te==0?(Bt=arguments[4],qt=arguments[5],Me(ke=arguments[3])==="object"&&ke!==null||(typeof Bt=="string"&&(qt=Bt,Bt=null),typeof ke=="string"&&(qt=ke,ke=null),typeof ke=="number"&&(Bt=ke,ke=null),U={flags:ke,angle:Bt,align:qt})):(M("The transform parameter of text() with a Matrix value"),pi=tt),isNaN(_)||isNaN(F)||u==null)throw new Error("Invalid arguments passed to jsPDF.text");if(u.length===0)return $e;var di,ki="",ar=typeof U.lineHeightFactor=="number"?U.lineHeightFactor:Yr,Cn=$e.internal.scaleFactor;function sr(Fe){return Fe=Fe.split("	").join(Array(U.TabLen||9).join(" ")),cn(Fe,ke)}function ca(Fe){for(var Be,oi=Fe.concat(),_i=[],fr=oi.length;fr--;)typeof(Be=oi.shift())=="string"?_i.push(Be):Array.isArray(Fe)&&(Be.length===1||Be[1]===void 0&&Be[2]===void 0)?_i.push(Be[0]):_i.push([Be[0],Be[1],Be[2]]);return _i}function Eo(Fe,Be){var oi;if(typeof Fe=="string")oi=Be(Fe)[0];else if(Array.isArray(Fe)){for(var _i,fr,xa=Fe.concat(),To=[],ys=xa.length;ys--;)typeof(_i=xa.shift())=="string"?To.push(Be(_i)[0]):Array.isArray(_i)&&typeof _i[0]=="string"&&(fr=Be(_i[0],_i[1],_i[2]),To.push([fr[0],fr[1],fr[2]]));oi=To}return oi}var wr=!1,Qr=!0;if(typeof u=="string")wr=!0;else if(Array.isArray(u)){var to=u.concat();St=[];for(var br,Ni=to.length;Ni--;)(typeof(br=to.shift())!="string"||Array.isArray(br)&&typeof br[0]!="string")&&(Qr=!1);wr=Qr}if(wr===!1)throw new Error('Type of text must be string or Array. "'+u+'" is not recognized.');typeof u=="string"&&(u=u.match(/[\r?\n]/)?u.split(/\r\n|\r|\n/g):[u]);var eo=kt/$e.internal.scaleFactor,io=eo*(ar-1);switch(U.baseline){case"bottom":F-=io;break;case"top":F+=eo-io;break;case"hanging":F+=eo-2*io;break;case"middle":F+=eo/2-io}if((fe=U.maxWidth||0)>0&&(typeof u=="string"?u=$e.splitTextToSize(u,fe):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(Fe,Be){return Fe.concat($e.splitTextToSize(Be,fe))},[]))),xt={text:u,x:_,y:F,options:U,mutex:{pdfEscape:cn,activeFontKey:Ut,fonts:de,activeFontSize:kt}},Te.publish("preProcessText",xt),u=xt.text,Bt=(U=xt.options).angle,pi instanceof te==0&&Bt&&typeof Bt=="number"){Bt*=Math.PI/180,U.rotationDirection===0&&(Bt=-Bt),z===W&&(Bt=-Bt);var fa=Math.cos(Bt),ua=Math.sin(Bt);pi=new te(fa,ua,-ua,fa,0,0)}else Bt&&Bt instanceof te&&(pi=Bt);z!==W||pi||(pi=Jn),(ne=U.charSpace||ir)!==void 0&&(ki+=Q(V(ne))+` Tc
9`,this.setCharSpace(this.getCharSpace()||0)),(Je=U.horizontalScale)!==void 0&&(ki+=Q(100*Je)+` Tz
10`),U.lang;var Bi=-1,lr=U.renderingMode!==void 0?U.renderingMode:U.stroke,Io=$e.internal.getCurrentPageInfo().pageContext;switch(lr){case 0:case!1:case"fill":Bi=0;break;case 1:case!0:case"stroke":Bi=1;break;case 2:case"fillThenStroke":Bi=2;break;case 3:case"invisible":Bi=3;break;case 4:case"fillAndAddForClipping":Bi=4;break;case 5:case"strokeAndAddPathForClipping":Bi=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Bi=6;break;case 7:case"addToPathForClipping":Bi=7}var vs=Io.usedRenderingMode!==void 0?Io.usedRenderingMode:-1;Bi!==-1?ki+=Bi+` Tr
11`:vs!==-1&&(ki+=`0 Tr
12`),Bi!==-1&&(Io.usedRenderingMode=Bi),qt=U.align||"left";var un,no=kt*ar,ha=$e.internal.pageSize.getWidth(),pa=de[Ut];ne=U.charSpace||ir,fe=U.maxWidth||0,ke=Object.assign({autoencode:!0,noBOM:!0},U.flags);var Sr=[],ro=function(Fe){return $e.getStringUnitWidth(Fe,{font:pa,charSpace:ne,fontSize:kt,doKerning:!1})*kt/Cn};if(Object.prototype.toString.call(u)==="[object Array]"){var Zi;St=ca(u),qt!=="left"&&(un=St.map(ro));var Yi,Cr=0;if(qt==="right"){_-=un[0],u=[],Ni=St.length;for(var cr=0;cr<Ni;cr++)cr===0?(Yi=tr(_),Zi=er(F)):(Yi=V(Cr-un[cr]),Zi=-no),u.push([St[cr],Yi,Zi]),Cr=un[cr]}else if(qt==="center"){_-=un[0]/2,u=[],Ni=St.length;for(var Ar=0;Ar<Ni;Ar++)Ar===0?(Yi=tr(_),Zi=er(F)):(Yi=V((Cr-un[Ar])/2),Zi=-no),u.push([St[Ar],Yi,Zi]),Cr=un[Ar]}else if(qt==="left"){u=[],Ni=St.length;for(var da=0;da<Ni;da++)u.push(St[da])}else if(qt==="justify"&&pa.encoding==="Identity-H"){u=[],Ni=St.length,fe=fe!==0?fe:ha;for(var Po=0,ri=0;ri<Ni;ri++)if(Zi=ri===0?er(F):-no,Yi=ri===0?tr(_):Po,ri<Ni-1){var xs=V((fe-un[ri])/(St[ri].split(" ").length-1)),Bn=St[ri].split(" ");u.push([Bn[0]+" ",Yi,Zi]),Po=0;for(var zn=1;zn<Bn.length;zn++){var ga=(ro(Bn[zn-1]+" "+Bn[zn])-ro(Bn[zn]))*Cn+xs;zn==Bn.length-1?u.push([Bn[zn],ga,0]):u.push([Bn[zn]+" ",ga,0]),Po-=ga}}else u.push([St[ri],Yi,Zi]);u.push(["",Po,0])}else{if(qt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(u=[],Ni=St.length,fe=fe!==0?fe:ha,ri=0;ri<Ni;ri++){Zi=ri===0?er(F):-no,Yi=ri===0?tr(_):0;var ma=St[ri].split(" ").length-1,_a=ma>0?(fe-un[ri])/ma:0;ri<Ni-1?Sr.push(Q(V(_a))):Sr.push(0),u.push([St[ri],Yi,Zi])}}}(typeof U.R2L=="boolean"?U.R2L:Kt)===!0&&(u=Eo(u,function(Fe,Be,oi){return[Fe.split("").reverse().join(""),Be,oi]}
12)),xt={text:u,x:_,y:F,options:U,mutex:{pdfEscape:cn,activeFontKey:Ut,fonts:de,activeFontSize:kt}},Te.publish("postProcessText",xt),u=xt.text,di=xt.mutex.isHex||!1;var va=de[Ut].encoding;va!=="WinAnsiEncoding"&&va!=="StandardEncoding"||(u=Eo(u,function(Fe,Be,oi){return[sr(Fe),Be,oi]})),St=ca(u),u=[];for(var kr,Nr,Lr,oo=Array.isArray(St[0])?1:0,Er="",ao=function(Fe,Be,oi){var _i="";return oi instanceof te?(oi=typeof U.angle=="number"?Xn(oi,new te(1,0,0,1,Fe,Be)):Xn(new te(1,0,0,1,Fe,Be),oi),z===W&&(oi=Xn(new te(1,0,0,-1,0,0),oi)),_i=oi.join(" ")+` Tm
13`):_i=Q(Fe)+" "+Q(Be)+` Td
14`,_i},hn=0;hn<St.length;hn++){switch(Er="",oo){case 1:Lr=(di?"<":"(")+St[hn][0]+(di?">":")"),kr=parseFloat(St[hn][1]),Nr=parseFloat(St[hn][2]);break;case 0:Lr=(di?"<":"(")+St[hn]+(di?">":")"),kr=tr(_),Nr=er(F)}Sr!==void 0&&Sr[hn]!==void 0&&(Er=Sr[hn]+` Tw
15`),hn===0?u.push(Er+ao(kr,Nr,pi)+Lr):oo===0?u.push(Er+Lr):oo===1&&u.push(Er+ao(kr,Nr,pi)+Lr)}u=oo===0?u.join(` Tj
16T* `):u.join(` Tj
17`),u+=` Tj
18`;var jn=`BT
19/`;return jn+=Ut+" "+kt+` Tf
20`,jn+=Q(kt*ar)+` TL
21`,jn+=Kr+`
22`,jn+=ki,jn+=u,L(jn+="ET"),S[Ut]=!0,$e};var Ll=d.__private__.clip=d.clip=function(u){return L(u==="evenodd"?"W*":"W"),this};d.clipEvenOdd=function(){return Ll("evenodd")},d.__private__.discardPath=d.discardPath=function(){return L("n"),this};var Mn=d.__private__.isValidStyle=function(u){var _=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(u)!==-1&&(_=!0),_};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(u){return Mn(u)&&(h=u),this};var fs=d.__private__.getStyle=d.getStyle=function(u){var _=h;switch(u){case"D":case"S":_="S";break;case"F":_="f";break;case"FD":case"DF":_="B";break;case"f":case"f*":case"B":case"B*":_=u}return _},us=d.close=function(){return L("h"),this};d.stroke=function(){return L("S"),this},d.fill=function(u){return ko("f",u),this},d.fillEvenOdd=function(u){return ko("f*",u),this},d.fillStroke=function(u){return ko("B",u),this},d.fillStrokeEvenOdd=function(u){return ko("B*",u),this};var ko=function(u,_){Me(_)==="object"?Il(_,u):L(u)},Zr=function(u){u===null||z===W&&u===void 0||(u=fs(u),L(u))};function El(u,_,F,U,tt){var xt=new Wo(_||this.boundingBox,F||this.xStep,U||this.yStep,this.gState,tt||this.matrix);xt.stream=this.stream;var St=u+"$$"+this.cloneIndex+++"$$";return an(St,xt),xt}var Il=function(u,_){var F=Ve[u.key],U=Zt[F];if(U instanceof vo)L("q"),L(Pl(_)),U.gState&&d.setGState(U.gState),L(u.matrix.toString()+" cm"),L("/"+F+" sh"),L("Q");else if(U instanceof Wo){var tt=new te(1,0,0,-1,0,Jr());u.matrix&&(tt=tt.multiply(u.matrix||Jn),F=El.call(U,u.key,u.boundingBox,u.xStep,u.yStep,tt).id),L("q"),L("/Pattern cs"),L("/"+F+" scn"),U.gState&&d.setGState(U.gState),L(_),L("Q")}},Pl=function(u){switch(u){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"}},ea=d.moveTo=function(u,_){return L(Q(V(u))+" "+Q(q(_))+" m"),this},hs=d.lineTo=function(u,_){return L(Q(V(u))+" "+Q(q(_))+" l"),this},Sn=d.curveTo=function(u,_,F,U,tt,xt){return L([Q(V(u)),Q(q(_)),Q(V(F)),Q(q(U)),Q(V(tt)),Q(q(xt)),"c"].join(" ")),this};d.__private__.line=d.line=function(u,_,F,U,tt){if(isNaN(u)||isNaN(_)||isNaN(F)||isNaN(U)||!Mn(tt))throw new Error("Invalid arguments passed to jsPDF.line");return z===Y?this.lines([[F-u,U-_]],u,_,[1,1],tt||"S"):this.lines([[F-u,U-_]],u,_,[1,1]).stroke()},d.__private__.lines=d.lines=function(u,_,F,U,tt,xt){var St,Bt,qt,ne,fe,ke,Je,pi,$e,mi,di,ki;if(typeof u=="number"&&(ki=F,F=_,_=u,u=ki),U=U||[1,1],xt=xt||!1,isNaN(_)||isNaN(F)||!Array.isArray(u)||!Array.isArray(U)||!Mn(tt)||typeof xt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ea(_,F),St=U[0],Bt=U[1],ne=u.length,mi=_,di=F,qt=0;qt<ne;qt++)(fe=u[qt]).length===2?(mi=fe[0]*St+mi,di=fe[1]*Bt+di,hs(mi,di)):(ke=fe[0]*St+mi,Je=fe[1]*Bt+di,pi=fe[2]*St+mi,$e=fe[3]*Bt+di,mi=fe[4]*St+mi,di=fe[5]*Bt+di,Sn(ke,Je,pi,$e,mi,di));return xt&&us(),Zr(tt),this},d.path=function(u){for(var _=0;_<u.length;_++){var F=u[_],U=F.c;switch(F.op){case"m":ea(U[0],U[1]);break;case"l":hs(U[0],U[1]);break;case"c":Sn.apply(this,U);break;case"h":us()}}return this},d.__private__.rect=d.rect=function(u,_,F,U,tt){if(isNaN(u)||isNaN(_)||isNaN(F)||isNaN(U)||!Mn(tt))throw new Error("Invalid arguments passed to 
22jsPDF.rect");return z===Y&&(U=-U),L([Q(V(u)),Q(q(_)),Q(V(F)),Q(V(U)),"re"].join(" ")),Zr(tt),this},d.__private__.triangle=d.triangle=function(u,_,F,U,tt,xt,St){if(isNaN(u)||isNaN(_)||isNaN(F)||isNaN(U)||isNaN(tt)||isNaN(xt)||!Mn(St))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[F-u,U-_],[tt-F,xt-U],[u-tt,_-xt]],u,_,[1,1],St,!0),this},d.__private__.roundedRect=d.roundedRect=function(u,_,F,U,tt,xt,St){if(isNaN(u)||isNaN(_)||isNaN(F)||isNaN(U)||isNaN(tt)||isNaN(xt)||!Mn(St))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Bt=4/3*(Math.SQRT2-1);return tt=Math.min(tt,.5*F),xt=Math.min(xt,.5*U),this.lines([[F-2*tt,0],[tt*Bt,0,tt,xt-xt*Bt,tt,xt],[0,U-2*xt],[0,xt*Bt,-tt*Bt,xt,-tt,xt],[2*tt-F,0],[-tt*Bt,0,-tt,-xt*Bt,-tt,-xt],[0,2*xt-U],[0,-xt*Bt,tt*Bt,-xt,tt,-xt]],u+tt,_,[1,1],St,!0),this},d.__private__.ellipse=d.ellipse=function(u,_,F,U,tt){if(isNaN(u)||isNaN(_)||isNaN(F)||isNaN(U)||!Mn(tt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var xt=4/3*(Math.SQRT2-1)*F,St=4/3*(Math.SQRT2-1)*U;return ea(u+F,_),Sn(u+F,_-St,u+xt,_-U,u,_-U),Sn(u-xt,_-U,u-F,_-St,u-F,_),Sn(u-F,_+St,u-xt,_+U,u,_+U),Sn(u+xt,_+U,u+F,_+St,u+F,_),Zr(tt),this},d.__private__.circle=d.circle=function(u,_,F,U){if(isNaN(u)||isNaN(_)||isNaN(F)||!Mn(U))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(u,_,F,F,U)},d.setFont=function(u,_,F){return F&&(_=vt(_,F)),Ut=as(u,_,{disableWarning:!1}),this};var Tl=d.__private__.getFont=d.getFont=function(){return de[as.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var u,_,F={};for(u in ge)if(ge.hasOwnProperty(u))for(_ in F[u]=[],ge[u])ge[u].hasOwnProperty(_)&&F[u].push(_);return F},d.addFont=function(u,_,F,U,tt){var xt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&xt.indexOf(arguments[3])!==-1?tt=arguments[3]:arguments[3]&&xt.indexOf(arguments[3])==-1&&(F=vt(F,U)),is.call(this,u,_,F,tt=tt||"Identity-H")};var Yr,ia=e.lineWidth||.200025,Fl=d.__private__.getLineWidth=d.getLineWidth=function(){return ia},re=d.__private__.setLineWidth=d.setLineWidth=function(u){return ia=u,L(Q(V(u))+" w"),this};d.__private__.setLineDash=Ht.API.setLineDash=Ht.API.setLineDashPattern=function(u,_){if(u=u||[],_=_||0,isNaN(_)||!Array.isArray(u))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return u=u.map(function(F){return Q(V(F))}).join(" "),_=Q(V(_)),L("["+u+"] "+_+" d"),this};var Ol=d.__private__.getLineHeight=d.getLineHeight=function(){return kt*Yr};d.__private__.getLineHeight=d.getLineHeight=function(){return kt*Yr};var Rl=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(u){return typeof(u=u||1.15)=="number"&&(Yr=u),this}
vendor: 4,464 bytes, line 22
22,Dl=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Yr};Rl(e.lineHeight);var tr=d.__private__.getHorizontalCoordinate=function(u){return V(u)},er=d.__private__.getVerticalCoordinate=function(u){return z===W?u:Qt[R].mediaBox.topRightY-Qt[R].mediaBox.bottomLeftY-V(u)},Ml=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(u){return Q(tr(u))},Bl=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(u){return Q(er(u))},No=e.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return Fn(No)},d.__private__.setStrokeColor=d.setDrawColor=function(u,_,F,U){return No=wn({ch1:u,ch2:_,ch3:F,ch4:U,pdfColorType:"draw",precision:2}),L(No),this};var na=e.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return Fn(na)},d.__private__.setFillColor=d.setFillColor=function(u,_,F,U){return na=wn({ch1:u,ch2:_,ch3:F,ch4:U,pdfColorType:"fill",precision:2}),L(na),this};var Kr=e.textColor||"0 g",zl=d.__private__.getTextColor=d.getTextColor=function(){return Fn(Kr)};d.__private__.setTextColor=d.setTextColor=function(u,_,F,U){return Kr=wn({ch1:u,ch2:_,ch3:F,ch4:U,pdfColorType:"text",precision:3}),this};var ir=e.charSpace,jl=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(ir||0)};d.__private__.setCharSpace=d.setCharSpace=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ir=u,this};var ra=0;d.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},d.__private__.setLineCap=d.setLineCap=function(u){var _=d.CapJoinStyles[u];if(_===void 0)throw new Error("Line cap style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ra=_,L(_+" J"),this};var oa=0;d.__private__.setLineJoin=d.setLineJoin=function(u){var _=d.CapJoinStyles[u];if(_===void 0)throw new Error("Line join style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return oa=_,L(_+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(u){if(u=u||0,isNaN(u))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return L(Q(V(u))+" M"),this},d.GState=yl,d.setGState=function(u){(u=typeof u=="string"?ee[se[u]]:ps(null,u)).equals(Ye)||(L("/"+u.id+" gs"),Ye=u)};var ps=function(u,_){if(!u||!se[u]){var F=!1;for(var U in ee)if(ee.hasOwnProperty(U)&&ee[U].equals(_)){F=!0;break}if(F)_=ee[U];else{var tt="GS"+(Object.keys(ee).length+1).toString(10);ee[tt]=_,_.id=tt}return u&&(se[u]=_.id),Te.publish("addGState",_),_}};d.addGState=function(u,_){return ps(u,_),this},d.saveGraphicsState=function(){return L("q"),Ze.push({key:Ut,size:kt,color:Kr}),this},d.restoreGraphicsState=function(){L("Q");var u=Ze.pop();return Ut=u.key,kt=u.size,Kr=u.color,Ye=null,this},d.setCurrentTransformationMatrix=function(u){return L(u.toString()+" cm"),this},d.comment=function(u){return L("#"+u),this};var nr=function(u,_){var F=u||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return F},set:function(xt){isNaN(xt)||(F=parseFloat(xt))}});var U=_||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return U},set:function(xt){isNaN(xt)||(U=parseFloat(xt))}});var tt="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return tt},set:function(xt){tt=xt.toString()}}),this},aa=function(u,_,F,U){nr.call(this,u,_),this.type="rect";var tt=F||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return tt},set:function(St){isNaN(St)||(tt=parseFloat(St))}});var xt=U||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return xt},set:function(St){isNaN(St)||(xt=parseFloat(St))}}),this},Lo=function(){this.page=me,this.currentPage=R,this.pages=Lt.slice(0),this.pagesContext=Qt.slice(0),this.x=$t,this.y=ni,this.matrix=Ae,this.width=la(R),this.height=gs(R),this.outputDestination=Tt,this.id="",this.objectNumber=-1};Lo.prototype.restore=function(){me=this.page,R=this.currentPage,Qt=this.pagesContext,Lt=this.pages,$t=this.x,ni=this.y,Ae=this.matrix,ds(R,this.width),rr(R,this.height),Tt=this.outputDestination};var sa=function(u,_,F,U,tt){Tn.push(new Lo),me=R=0,Lt=[],$t=u,ni=_,Ae=tt,Qo([F,U])};for(var Xr in d.beginFormObject=function(u,_,F,U,tt){return sa(u,_,F,U,tt),this},d.endFormObject=function(u){return(function(_){if(Kn[_])Tn.pop().restore(
22);else{var F=new Lo,U="Xo"+(Object.keys(Ti).length+1).toString(10);F.id=U,Kn[_]=U,Ti[U]=F,Te.publish("addFormObject",F),Tn.pop().restore()}})(u),this},d.doFormObject=function(u,_){var F=Ti[Kn[u]];return L("q"),L(_.toString()+" cm"),L("/"+F.id+" Do"),L("Q"),this},d.getFormObject=function(u){var _=Ti[Kn[u]];return{x:_.x,y:_.y,width:_.width,height:_.height,matrix:_.matrix}},d.save=function(u,_){return u=u||"generated.pdf",(_=_||{}).returnPromise=_.returnPromise||!1,_.returnPromise===!1?(_o(Ao(Dn()),u),typeof _o.unload=="function"&&ie.setTimeout&&setTimeout(_o.unload,911),this):new Promise(function(F,U){try{var tt=_o(Ao(Dn()),u);typeof _o.unload=="function"&&ie.setTimeout&&setTimeout(_o.unload,911),F(tt)}catch(xt){U(xt.message)}})},Ht.API)Ht.API.hasOwnProperty(Xr)&&(Xr==="events"&&Ht.API.events.length?(function(u,_){var F,U,tt;for(tt=_.length-1;tt!==-1;tt--)F=_[tt][0],U=_[tt][1],u.subscribe.apply(u,[F].concat(typeof U=="function"?[U]:U))})(Te,Ht.API.events):d[Xr]=Ht.API[Xr]);function la(u){return Qt[u].mediaBox.topRightX-Qt[u].mediaBox.bottomLeftX}function ds(u,_){Qt[u].mediaBox.topRightX=_+Qt[u].mediaBox.bottomLeftX}function gs(u){return Qt[u].mediaBox.topRightY-Qt[u].mediaBox.bottomLeftY}function rr(u,_){Qt[u].mediaBox.topRightY=_+Qt[u].mediaBox.bottomLeftY}var or=d.getPageWidth=function(u){return la(u=u||R)/ce},ms=d.setPageWidth=function(u,_){ds(u,_*ce)},Jr=d.getPageHeight=function(u){return gs(u=u||R)/ce},_s=d.setPageHeight=function(u,_){rr(u,_*ce)};return d.internal={pdfEscape:cn,getStyle:fs,getFont:Tl,getFontSize:Dt,getCharSpace:jl,getTextColor:zl,getLineHeight:Ol,getLineHeightFactor:Dl,getLineWidth:Fl,write:Pt,getHorizontalCoordinate:tr,getVerticalCoordinate:er,getCoordinateString:Ml,getVerticalCoordinateString:Bl,collections:{},newObject:Qe,newAdditionalObject:$r,newObjectDeferred:wi,newObjectDeferredBegin:Ai,getFilters:bn,putStream:ln,events:Te,scaleFactor:ce,pageSize:{getWidth:function(){return or(R)},setWidth:function(u){ms(R,u)},getHeight:function(){return Jr(R)},setHeight:function(u){_s(R,u)}},encryptionOptions:g,encryption:gi,getEncryptor:function(u){return g!==null?gi.encryptor(u,0):function(_){return _}},output:ls,getNumberOfPages:os,get pages(){return Lt},out:L,f2:A,f3:T,getPageInfo:Qn,getPageInfoByObjId:cs,getCurrentPageInfo:Nl,getPDFVersion:E,Point:nr,Rectangle:aa,Matrix:te,hasHotfix:fn},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return or(R)},set:function(u){ms(R,u)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return Jr(R)},set:function(u){_s(R,u)},enumerable:!0,configurable:!0}),function(u){for(var _=0,F=Xt.length;_<F;_++){var U=is.call(this,u[_][0],u[_][1],u[_][2],Xt[_][3],!0);y===!1&&(S[U]=!0);var tt=u[_][0].split("-");es({id:U,fontName:tt[0],fontStyle:tt[1]||""})}Te.publish("addFonts",{fonts:de,dictionary:ge})}.call(d,Xt),Ut="F1",ns(r,t),Te.publish("initialized"),d}$o.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},$o.prototype.toHexString=function(e){return e.split("").map(function(i){return("0"+(255&i.charCodeAt(0)).toString(16)).slice(-2)}).join("")},$o.prototype.hexToBytes=function(e){for(var i=[],t=0;t<e.length;t+=2)i.push(String.fromCharCode(parseInt(e.substr(t,2),16)));return i.join("")},$o.prototype.processOwnerPassword=function(e,i){return sf(af(i).substr(0,5),e)},$o.prototype.encryptor=function(e,i){var t=af(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&i,i>>8&255)).substr(0,10);return function(n){return sf(t,n)}},yl.prototype.equals=function(e){var i,t="id,objectNumber,equals";if(!e||Me(e)!==Me(this))return!1;var n=0;for(i in this)if(!(t.indexOf(i)>=0)){if(this.hasOwnProperty(i)&&!e.hasOwnProperty(i)||this[i]!==e[i])return!1;n++}for(i in e)e.hasOwnProperty(i)&&t.indexOf(i)<0&&n--;return n===0},Ht.API={events:[]},Ht.version="3.0.4";var ii=Ht.API,ff=1,yo=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ho=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},oe=function(e){return e.toFixed(2)},Ur=function(e){return e.toFixed(5)};ii.__acroform__={};var Wi=function(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e},Up=function(e){return e*ff},Gn=function(e){var i=new fd,t=Mt.internal.getHeight(e)||0,n=Mt.internal.getWidth(e)||0;return i.BBox=[0,0,Number(oe(n)),Number(oe(t))],i},kg=ii.__acroform__.setBit=function(e,i){if(e=e||0,i=i||0,isNaN(e)||isNaN(i))throw new Error("Invalid arguments passed to 
22jsPDF.API.__acroform__.setBit");return e|1<<i},Ng=ii.__acroform__.clearBit=function(e,i){if(e=e||0,i=i||0,isNaN(e)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<i)},Lg=ii.__acroform__.getBit=function(e,i){if(isNaN(e)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<i?1:0},ci=ii.__acroform__.getBitForPdf=function(e,i){if(isNaN(e)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Lg(e,i-1)},fi=ii.__acroform__.setBitForPdf=function(e,i){if(isNaN(e)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return kg(e,i-1)},ui=ii.__acroform__.clearBitForPdf=function(e,i){if(isNaN(e)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ng(e,i-1)},Eg=ii.__acroform__.calculateCoordinates=function(e,i){var t=i.internal.getHorizontalCoordinate,n=i.internal.getVerticalCoordinate,r=e[0],o=e[1],c=e[2],s=e[3],f={};return f.lowerLeft_X=t(r)||0,f.lowerLeft_Y=n(o+s)||0,f.upperRight_X=t(r+c)||0,f.upperRight_Y=n(o)||0,[Number(oe(f.lowerLeft_X)),Number(oe(f.lowerLeft_Y)),Number(oe(f.upperRight_X)),Number(oe(f.upperRight_Y))]},Ig=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var i=[],t=e._V||e.DV,n=lf(e,t),r=e.scope.internal.getFont(e.fontName,e.fontStyle).id;i.push("/Tx BMC"),i.push("q"),i.push("BT"),i.push(e.scope.__private__.encodeColorString(e.color)),i.push("/"+r+" "+oe(n.fontSize)+" Tf"),i.push("1 0 0 1 0 0 Tm"),i.push(n.text),i.push("ET"),i.push("Q"),i.push("EMC");var o=Gn(e);return o.scope=e.scope,o.stream=i.join(`
23`),o}},lf=function(e,i){var t=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},r=(i=(i=i.substr(0,1)=="("?i.substr(1):i).substr(i.length-1)==")"?i.substr(0,i.length-1):i).split(" ");r=e.multiline?r.map(function(A){return A.split(`
24`)}):r.map(function(A){return[A]});var o=t,c=Mt.internal.getHeight(e)||0;c=c<0?-c:c;var s=Mt.internal.getWidth(e)||0;s=s<0?-s:s;var f=function(A,T,V){if(A+1<r.length){var q=T+" "+r[A+1][0];return hl(q,e,V).width<=s-4}return!1};o++;t:for(;o>0;){i="",o--;var h,g,y=hl("3",e,o).height,S=e.multiline?c-o:(c-y)/2,d=S+=2,O=0,E=0,D=0;if(o<=0){i=`(...) Tj
25`,i+="% Width of Text: "+hl(i,e,o=12).width+", FieldWidth:"+s+`
26`;break}for(var N="",Y=0,W=0;W<r.length;W++)if(r.hasOwnProperty(W)){var z=!1;if(r[W].length!==1&&D!==r[W].length-1){if((y+2)*(Y+2)+2>c)continue t;N+=r[W][D],z=!0,E=W,W--}else{N=(N+=r[W][D]+" ").substr(N.length-1)==" "?N.substr(0,N.length-1):N;var ft=parseInt(W),bt=f(ft,N,o),vt=W>=r.length-1;if(bt&&!vt){N+=" ",D=0;continue}if(bt||vt){if(vt)E=ft;else if(e.multiline&&(y+2)*(Y+2)+2>c)continue t}else{if(!e.multiline||(y+2)*(Y+2)+2>c)continue t;E=ft}}for(var Q="",M=O;M<=E;M++){var ot=r[M];if(e.multiline){if(M===E){Q+=ot[D]+" ",D=(D+1)%ot.length;continue}if(M===O){Q+=ot[ot.length-1]+" ";continue}}Q+=ot[0]+" "}switch(Q=Q.substr(Q.length-1)==" "?Q.substr(0,Q.length-1):Q,g=hl(Q,e,o).width,e.textAlign){case"right":h=s-g-2;break;case"center":h=(s-g)/2;break;default:h=2}i+=oe(h)+" "+oe(d)+` Td
27`,i+="("+yo(Q)+`) Tj
28`,i+=-oe(h)+` 0 Td
29`,d=-(o+2),g=0,O=z?E:E+1,Y++,N=""}break}return n.text=i,n.fontSize=o,n},hl=function(e,i,t){var n=i.scope.internal.getFont(i.fontName,i.fontStyle),r=i.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:i.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:r}},Pg={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Tg=function(e,i){var t={type:"reference",object:e};i.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===t.type&&n.object===t.object})===void 0&&i.internal.getPageInfo(e.page).pageContext.annotations.push(t)},Fg=function(e,i){if(i.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(In.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Pg)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ff=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new ud,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];o.objId=void 0,o.hasAnnotation&&Tg(o,t)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(t){(function(n,r){var o=!n;for(var c in n||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(c)){var s=n[c],f=[],h=s.Rect;if(s.Rect&&(s.Rect=Eg(s.Rect,r)),r.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Mt.createDefaultAppearanceStream(s),Me(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(f=s.getKeyValueListForStream()),s.Rect=h,s.hasAppearanceStream&&!s.appearanceStreamContent){var g=Ig(s);f.push({key:"AP",value:"<</N "+g+">>"}),r.internal.acroformPlugin.xForms.push(g)}if(s.appearanceStreamContent){var y="";for(var S in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(S)){var d=s.appearanceStreamContent[S];if(y+="/"+S+" ",y+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var c in d)if(d.hasOwnProperty(c)){var O=d[c];typeof O=="function"&&(O=O.call(r,s)),y+="/"+c+" "+O+" ",r.internal.acroformPlugin.xForms.indexOf(O)>=0||r.internal.acroformPlugin.xForms.push(O)}}else typeof(O=d)=="function"&&(O=O.call(r,s)),y+="/"+c+" "+O,r.internal.acroformPlugin.xForms.indexOf(O)>=0||r.internal.acroformPlugin.xForms.push(O);y+=">>"}f.push({key:"AP",value:`<<
30`+y+">>"})}r.internal.putStream({additionalKeyValues:f,objectId:s.objId}),r.internal.out("endobj")}o&&(function(E,D){for(var N in E)if(E.hasOwnProperty(N)){var Y=N,W=E[N];D.internal.newObjectDeferredBegin(W.objId,!0),Me(W)==="object"&&typeof W.putStream=="function"&&W.putStream(),delete E[Y]}})(r.internal.acroformPlugin.xForms,r)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},cd=ii.__acroform__.arrayToPdfArray=function(e,i,t){var n=function(c){return c};if(Array.isArray(e)){for(var r="[",o=0;o<e.length;o++)switch(o!==0&&(r+=" "),Me(e[o])){case"boolean":case"number":case"object":r+=e[o].toString();break;case"string":e[o].substr(0,1)!=="/"?(i!==void 0&&t&&(n=t.internal.getEncryptor(i)),r+="("+yo(n(e[o].toString()))+")"):r+=e[o].toString()}return r+"]"}
30throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},tf=function(e,i,t){var n=function(r){return r};return i!==void 0&&t&&(n=t.internal.getEncryptor(i)),(e=e||"").toString(),"("+yo(n(e))+")"},Wn=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(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Wn.prototype.toString=function(){return this.objId+" 0 R"},Wn.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Wn.prototype.getKeyValueListForStream=function(){var e=[],i=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var t in i)if(Object.getOwnPropertyDescriptor(this,i[t]).configurable===!1){var n=i[t],r=this[n];r&&(Array.isArray(r)?e.push({key:n,value:cd(r,this.objId,this.scope)}):r instanceof Wn?(r.scope=this.scope,e.push({key:n,value:r.objId+" 0 R"})):typeof r!="function"&&e.push({key:n,value:r}))}return e};var fd=function(){Wn.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 e,i=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Wi(fd,Wn);var ud=function(){Wn.call(this);var e,i=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return i.length>0?i:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return i}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(n){return n};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+yo(t(e))+")"}},set:function(t){e=t}})};Wi(ud,Wn);var In=function e(){Wn.call(this);var i=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return i},set:function(N){if(isNaN(N))throw new Error('Invalid value "'+N+'" for attribute F supplied.');i=N}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!ci(i,3)},set:function(N){N?this.F=fi(i,3):this.F=ui(i,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(N){if(isNaN(N))throw new Error('Invalid value "'+N+'" for attribute Ff supplied.');t=N}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(N){n=N!==void 0?N:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(N){n[0]=N}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(N){n[1]=N}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(N){n[2]=N}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(N){n[3]=N}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(N){switch(N){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=N;break;default:throw new Error('Invalid value "'+N+'" 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 wl)return;o="FieldObject"+e.FieldNum++}var N=function(Y){return Y};return this.scope&&(N=this.scope.internal.getEncryptor(this.objId)),"("+yo(N(o))+")"},set:function(N){o=N.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o}
30,set:function(N){o=N}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(N){c=N}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(N){s=N}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(N){f=N}});var h=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return h===void 0?50/ff:h},set:function(N){h=N}});var g="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return g},set:function(N){g=N}});var y="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!y||this instanceof wl||this instanceof xo))return tf(y,this.objId,this.scope)},set:function(N){N=N.toString(),y=N}});var S=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(S)return this instanceof Ci==0?tf(S,this.objId,this.scope):S},set:function(N){N=N.toString(),S=this instanceof Ci==0?N.substr(0,1)==="("?Ho(N.substr(1,N.length-2)):Ho(N):N}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ci==1?Ho(S.substr(1,S.length-1)):S},set:function(N){N=N.toString(),S=this instanceof Ci==1?"/"+N:N}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(N){this.V=N}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof Ci==0?tf(d,this.objId,this.scope):d},set:function(N){N=N.toString(),d=this instanceof Ci==0?N.substr(0,1)==="("?Ho(N.substr(1,N.length-2)):Ho(N):N}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ci==1?Ho(d.substr(1,d.length-1)):d},set:function(N){N=N.toString(),d=this instanceof Ci==1?"/"+N:N}}),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 O,E=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return E},set:function(N){N=!!N,E=N}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(O)return O},set:function(N){O=N}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,1)},set:function(N){N?this.Ff=fi(this.Ff,1):this.Ff=ui(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,2)},set:function(N){N?this.Ff=fi(this.Ff,2):this.Ff=ui(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,3)},set:function(N){N?this.Ff=fi(this.Ff,3):this.Ff=ui(this.Ff,3)}});var D=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(D!==null)return D},set:function(N){if([0,1,2].indexOf(N)===-1)throw new Error('Invalid value "'+N+'" for attribute Q supplied.');D=N}}),Object.defineProperty(this,"textAlign",{get:function(){var N;switch(D){case 0:default:N="left";break;case 1:N="center";break;case 2:N="right"}return N},configurable:!0,enumerable:!0,set:function(N){switch(N){case"right":case 2:D=2;break;case"center":case 1:D=1;break;default:D=0}}})};Wi(In,Wn);var Zo=function(){In.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var i=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return cd(i,this.objId,this.scope)}
30,set:function(t){var n,r;r=[],typeof(n=t)=="string"&&(r=(function(o,c,s){s||(s=1);for(var f,h=[];f=c.exec(o);)h.push(f[s]);return h})(n,/\((.*?)\)/g)),i=r}}),this.getOptions=function(){return i},this.setOptions=function(t){i=t,this.sort&&i.sort()},this.addOption=function(t){t=(t=t||"").toString(),i.push(t),this.sort&&i.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();i.indexOf(t)!==-1&&(i.splice(i.indexOf(t),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,18)},set:function(t){t?this.Ff=fi(this.Ff,18):this.Ff=ui(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=fi(this.Ff,19):this.Ff=ui(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,20)},set:function(t){t?(this.Ff=fi(this.Ff,20),i.sort()):this.Ff=ui(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,22)},set:function(t){t?this.Ff=fi(this.Ff,22):this.Ff=ui(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,23)},set:function(t){t?this.Ff=fi(this.Ff,23):this.Ff=ui(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,27)},set:function(t){t?this.Ff=fi(this.Ff,27):this.Ff=ui(this.Ff,27)}}),this.hasAppearanceStream=!1};Wi(Zo,In);var Yo=function(){Zo.call(this),this.fontName="helvetica",this.combo=!1};Wi(Yo,Zo);var Ko=function(){Yo.call(this),this.combo=!0};Wi(Ko,Yo);var ml=function(){Ko.call(this),this.edit=!0};Wi(ml,Ko);var Ci=function(){In.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,15)},set:function(t){t?this.Ff=fi(this.Ff,15):this.Ff=ui(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,16)},set:function(t){t?this.Ff=fi(this.Ff,16):this.Ff=ui(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,17)},set:function(t){t?this.Ff=fi(this.Ff,17):this.Ff=ui(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,26)},set:function(t){t?this.Ff=fi(this.Ff,26):this.Ff=ui(this.Ff,26)}});var e,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(o){return o};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(i).length!==0){var n,r=[];for(n in r.push("<<"),i)r.push("/"+n+" ("+yo(t(i[n]))+")");return r.push(">>"),r.join(`
31`)}},set:function(t){Me(t)==="object"&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){typeof t=="string"&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Wi(Ci,In);var _l=function(){Ci.call(this),this.pushButton=!0};Wi(_l,Ci);var Xo=function(){Ci.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(i){e=i!==void 0?i:[]}})};Wi(Xo,Ci);var wl=function(){var e,i;In.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(r){i=r}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(s){return s};this.scope&&(r=this.scope.internal.getEncryptor(this.objId));var o,c=[];for(o in c.push("<<"),n)c.push("/"+o+" ("+yo(r(n[o]))+")");return c.push(">>"),c.join(`
32`)}
vendor: 4,405 bytes, lines 32-34
32,set:function(r){Me(r)==="object"&&(n=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(r){typeof r=="string"&&(n.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(r){t="/"+r}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Wi(wl,In),Xo.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var i in this.Kids)if(this.Kids.hasOwnProperty(i)){var t=this.Kids[i];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},Xo.prototype.createOption=function(e){var i=new wl;return i.Parent=this,i.optionName=e,this.Kids.push(i),Og.call(this.scope,i),i};var vl=function(){Ci.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Mt.CheckBox.createAppearanceStream()};Wi(vl,Ci);var xo=function(){In.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,13)},set:function(i){i?this.Ff=fi(this.Ff,13):this.Ff=ui(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,21)},set:function(i){i?this.Ff=fi(this.Ff,21):this.Ff=ui(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,23)},set:function(i){i?this.Ff=fi(this.Ff,23):this.Ff=ui(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,24)},set:function(i){i?this.Ff=fi(this.Ff,24):this.Ff=ui(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,25)},set:function(i){i?this.Ff=fi(this.Ff,25):this.Ff=ui(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,26)},set:function(i){i?this.Ff=fi(this.Ff,26):this.Ff=ui(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(i){Number.isInteger(i)&&(e=i)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Wi(xo,In);var xl=function(){xo.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!ci(this.Ff,14)},set:function(e){e?this.Ff=fi(this.Ff,14):this.Ff=ui(this.Ff,14)}}),this.password=!0};Wi(xl,xo);var Mt={CheckBox:{createAppearanceStream:function(){return{N:{On:Mt.CheckBox.YesNormal},D:{On:Mt.CheckBox.YesPushDown,Off:Mt.CheckBox.OffPushDown}}},YesPushDown:function(e){var i=Gn(e);i.scope=e.scope;var t=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),o=lf(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+oe(Mt.internal.getWidth(e))+" "+oe(Mt.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+oe(o.fontSize)+" Tf "+r),t.push("BT"),t.push(o.text),t.push("ET"),t.push("Q"),t.push("EMC"),i.stream=t.join(`
33`),i},YesNormal:function(e){var i=Gn(e);i.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),r=[],o=Mt.internal.getHeight(e),c=Mt.internal.getWidth(e),s=lf(e,e.caption);return r.push("1 g"),r.push("0 0 "+oe(c)+" "+oe(o)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+oe(c-1)+" "+oe(o-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+t+" "+oe(s.fontSize)+" Tf "+n),r.push(s.text),r.push("ET"),r.push("Q"),i.stream=r.join(`
34`),i},OffPushDown:function(e){var i=Gn(e);i.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+oe(Mt.internal.getWidth(e))+" "+oe(Mt.internal.getHeight(e))+" re"),t.pu
vendor: 4,648 bytes, lines 34-41
34sh("f"),i.stream=t.join(`
35`),i}},RadioButton:{Circle:{createAppearanceStream:function(e){var i={D:{Off:Mt.RadioButton.Circle.OffPushDown},N:{}};return i.N[e]=Mt.RadioButton.Circle.YesNormal,i.D[e]=Mt.RadioButton.Circle.YesPushDown,i},getCA:function(){return"l"},YesNormal:function(e){var i=Gn(e);i.scope=e.scope;var t=[],n=Mt.internal.getWidth(e)<=Mt.internal.getHeight(e)?Mt.internal.getWidth(e)/4:Mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Mt.internal.Bezier_C,o=Number((n*r).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Ur(Mt.internal.getWidth(e)/2)+" "+Ur(Mt.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),t.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),t.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),t.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),t.push("f"),t.push("Q"),i.stream=t.join(`
36`),i},YesPushDown:function(e){var i=Gn(e);i.scope=e.scope;var t=[],n=Mt.internal.getWidth(e)<=Mt.internal.getHeight(e)?Mt.internal.getWidth(e)/4:Mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Number((2*n).toFixed(5)),o=Number((r*Mt.internal.Bezier_C).toFixed(5)),c=Number((n*Mt.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Ur(Mt.internal.getWidth(e)/2)+" "+Ur(Mt.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),t.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),t.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),t.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+Ur(Mt.internal.getWidth(e)/2)+" "+Ur(Mt.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+c+" "+c+" "+n+" 0 "+n+" c"),t.push("-"+c+" "+n+" -"+n+" "+c+" -"+n+" 0 c"),t.push("-"+n+" -"+c+" -"+c+" -"+n+" 0 -"+n+" c"),t.push(c+" -"+n+" "+n+" -"+c+" "+n+" 0 c"),t.push("f"),t.push("Q"),i.stream=t.join(`
37`),i},OffPushDown:function(e){var i=Gn(e);i.scope=e.scope;var t=[],n=Mt.internal.getWidth(e)<=Mt.internal.getHeight(e)?Mt.internal.getWidth(e)/4:Mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var r=Number((2*n).toFixed(5)),o=Number((r*Mt.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Ur(Mt.internal.getWidth(e)/2)+" "+Ur(Mt.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),t.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),t.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),t.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),t.push("f"),t.push("Q"),i.stream=t.join(`
38`),i}},Cross:{createAppearanceStream:function(e){var i={D:{Off:Mt.RadioButton.Cross.OffPushDown},N:{}};return i.N[e]=Mt.RadioButton.Cross.YesNormal,i.D[e]=Mt.RadioButton.Cross.YesPushDown,i},getCA:function(){return"8"},YesNormal:function(e){var i=Gn(e);i.scope=e.scope;var t=[],n=Mt.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+oe(Mt.internal.getWidth(e)-2)+" "+oe(Mt.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(oe(n.x1.x)+" "+oe(n.x1.y)+" m"),t.push(oe(n.x2.x)+" "+oe(n.x2.y)+" l"),t.push(oe(n.x4.x)+" "+oe(n.x4.y)+" m"),t.push(oe(n.x3.x)+" "+oe(n.x3.y)+" l"),t.push("s"),t.push("Q"),i.stream=t.join(`
39`),i},YesPushDown:function(e){var i=Gn(e);i.scope=e.scope;var t=Mt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+oe(Mt.internal.getWidth(e))+" "+oe(Mt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+oe(Mt.internal.getWidth(e)-2)+" "+oe(Mt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(oe(t.x1.x)+" "+oe(t.x1.y)+" m"),n.push(oe(t.x2.x)+" "+oe(t.x2.y)+" l"),n.push(oe(t.x4.x)+" "+oe(t.x4.y)+" m"),n.push(oe(t.x3.x)+" "+oe(t.x3.y)+" l"),n.push("s"),n.push("Q"),i.stream=n.join(`
40`),i},OffPushDown:function(e){var i=Gn(e);i.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+oe(Mt.internal.getWidth(e))+" "+oe(Mt.internal.getHeight(e))+" re"),t.push("f"),i.stream=t.join(`
41`),i}}},createDefaultAppearanceStream:function(e){var i=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+i+" "+e.fontSize+" Tf "+t}};Mt.internal={Bezier_C:.551915024494,calculateCross:function(e){var i=Mt.internal.getWidth(e),t=Mt.internal.getHeight(e),n=Math.min(i,t);return{x1:{x:(i-n)/2,y:(t-n)/2+n},x2:{x:(i-n)/2+n,y:(t-n)/2},x3:{x:(i-n)/2,y:(t-n)/2},x4:{x:(i-n)/2+n,y:(t-n)/2+n}}}},Mt.internal.getWidth=function(e){var i=0;return Me(e)==="object"&&(i=Up(e.Rect[2])),i},Mt.internal.getHeight=function(e){var i=0;return Me(e)==="object"&&(i=Up(e.Rect[3])),i};var Og=ii.addField=function(e){if(Fg(this,e),!(e instanceof In))throw new Error("Invalid argument passed to 
41jsPDF.addField.");var i;return(i=e).scope.internal.acroformPlugin.printedOut&&(i.scope.internal.acroformPlugin.printedOut=!1,i.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),i.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(i),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};ii.AcroFormChoiceField=Zo,ii.AcroFormListBox=Yo,ii.AcroFormComboBox=Ko,ii.AcroFormEditBox=ml,ii.AcroFormButton=Ci,ii.AcroFormPushButton=_l,ii.AcroFormRadioButton=Xo,ii.AcroFormCheckBox=vl,ii.AcroFormTextField=xo,ii.AcroFormPasswordField=xl,ii.AcroFormAppearance=Mt,ii.AcroForm={ChoiceField:Zo,ListBox:Yo,ComboBox:Ko,EditBox:ml,Button:Ci,PushButton:_l,RadioButton:Xo,CheckBox:vl,TextField:xo,PasswordField:xl,Appearance:Mt},Ht.AcroForm={ChoiceField:Zo,ListBox:Yo,ComboBox:Ko,EditBox:ml,Button:Ci,PushButton:_l,RadioButton:Xo,CheckBox:vl,TextField:xo,PasswordField:xl,Appearance:Mt};var $v=Ht.AcroForm;function hd(e){return e.reduce(function(i,t,n){return i[t]=n,i},{})}(function(e){var i="addImage_";e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(A,T){var V,q,ct,pt,gt,st=t;if((T=T||t)==="RGBA"||A.data!==void 0&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(bt(A))for(gt in n)for(ct=n[gt],V=0;V<ct.length;V+=1){for(pt=!0,q=0;q<ct[V].length;q+=1)if(ct[V][q]!==void 0&&ct[V][q]!==A[q]){pt=!1;break}if(pt===!0){st=gt;break}}else for(gt in n)for(ct=n[gt],V=0;V<ct.length;V+=1){for(pt=!0,q=0;q<ct[V].length;q+=1)if(ct[V][q]!==void 0&&ct[V][q]!==A.charCodeAt(q)){pt=!1;break}if(pt===!0){st=gt;break}}return st===t&&T!==t&&(st=T),st},o=function A(T){for(var V=this.internal.write,q=this.internal.putStream,ct=(0,this.internal.getFilters)();ct.indexOf("FlateEncode")!==-1;)ct.splice(ct.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var pt=[];if(pt.push({key:"Type",value:"/XObject"}),pt.push({key:"Subtype",value:"/Image"}),pt.push({key:"Width",value:T.width}),pt.push({key:"Height",value:T.height}),T.colorSpace===N.INDEXED?pt.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(pt.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===N.DEVICE_CMYK&&pt.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),pt.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&pt.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)&&T.transparency.length>0){for(var gt="",st=0,_t=T.transparency.length;st<_t;st++)gt+=T.transparency[st]+" "+T.transparency[st]+" ";pt.push({key:"Mask",value:"["+gt+"]"})}T.sMask!==void 0&&pt.push({key:"SMask",value:T.objectId+1+" 0 R"});var Et=T.filter!==void 0?["/"+T.filter]:void 0;if(q({data:T.data,additionalKeyValues:pt,alreadyAppliedFilters:Et,objectId:T.objectId}),V("endobj"),"sMask"in T&&T.sMask!==void 0){var At,b=(At=T.sMaskBitsPerComponent)!==null&&At!==void 0?At:T.bitsPerComponent,R={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:b,data:T.sMask};"filter"in T&&(R.decodeParameters="/Predictor ".concat(T.predictor," /Colors 1 /BitsPerComponent ").concat(b," /Columns ").concat(T.width),R.filter=T.filter),A.call(this,R)}if(T.colorSpace===N.INDEXED){var B=this.internal.newObject();q({data:Q(new Uint8Array(T.palette)),objectId:B}),V("endobj")}},c=function(){var A=this.internal.collections[i+"images"];for(var T in A)o.call(this,A[T])},s=function(){var A,T=this.internal.collections[i+"images"],V=this.internal.write;for(var q in T)V("/I"+(A=T[q]).index,A.objectId,"0","R")},f=function(){this.internal.collections[i+"images"]||(this.internal.collections[i+"images"]={},this.internal.events.subscribe("putResources",c),this.internal.events.subscribe("putXobjectDict",s))},h=function(){var A=this.internal.collections[i+"images"];return f.call(this),A},g=function(){return Object.keys(this.internal.collections[i+"images"]).length},y=function(A){return typeof e["process"+A.toUpperCase()]=="function"},S=function(A){return Me(A)==="object"&&A.nodeType===1},d=function(A,T){if(A.nodeName==="IMG"&&A.hasAttribute("src")){var V=""+A.getAttribute("src");if(V.indexOf("data:image/")===0)return gl(unescape(V).split("base64,").pop());var q=e.loadFile(V,!0);if(q!==void 0)return q}if(A.nodeName==="CANVAS"){if(A.width===0||A.height===0)throw new Error("Given canvas must have data. Canvas width: "+A.width+", height: "+A.height);var ct;switch(T){case"PNG":ct="image/png";break;case"WEBP":ct="image/webp";break;default:ct="image/jpeg"}return gl(A.toDataURL(ct,1).split("base64,").pop())}},O=function(A){var T=this.internal.collections[i+"images"];if(T){for(var V in T)if(A===T[V].alias)return T[V]}},E=function(A,T,V){return A||T||(A=-96,T=-96),A<0&&(A=-1*V.width*72/A/this.internal.scaleFactor),T<0&&(T=-1*V.height*72/T/this.internal.scaleFactor),A===0&&(A=T*V.width/V.height),T===0&&(T=A*V.height/V.width),[A,T]},D=function(A,T,V,q,ct,pt){var gt=E.call(this,V,q,ct),st=this.internal.getCoordinateString,_t=this.internal.getVerticalCoordinateString,Et=h.call(this);if(V=gt[0],q=gt[1],Et[ct.index]=ct,pt){pt*=Math.PI/180;var At=Math.cos(pt),b=Math.sin(pt),R=function($){return $.toFixed(4)},B=[R(At),R(b),R(-1*b),R(At),0,0,"cm"]}this.internal.write("q"),pt?(this.internal.write([1,"0","0",1,st(A),_t(T+q),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([st(V),"0","0",st(q),"0","0","cm"].join(" "))):this.internal.write([st(V),"0","0",st(q),st(A),_t(T+q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ct.index+" Do"),this.internal.write("Q")},N=e.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"};e.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 Y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},W=e.__addimage__.sHashCode=function(A){var T,V,q=0;
41if(typeof A=="string")for(V=A.length,T=0;T<V;T++)q=(q<<5)-q+A.charCodeAt(T),q|=0;else if(bt(A))for(V=A.byteLength/2,T=0;T<V;T++)q=(q<<5)-q+A[T],q|=0;return q},z=e.__addimage__.validateStringAsBase64=function(A){(A=A||"").toString().trim();var T=!0;return A.length===0&&(T=!1),A.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))===!1&&(T=!1),T},ft=e.__addimage__.extractImageFromDataUrl=function(A){if(A==null||!(A=A.trim()).startsWith("data:"))return null;var T=A.indexOf(",");return T<0?null:A.substring(0,T).trim().endsWith("base64")?A.substring(T+1):null};e.__addimage__.isArrayBuffer=function(A){return A instanceof ArrayBuffer};var bt=e.__addimage__.isArrayBufferView=function(A){return A instanceof Int8Array||A instanceof Uint8Array||A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array},vt=e.__addimage__.binaryStringToUint8Array=function(A){for(var T=A.length,V=new Uint8Array(T),q=0;q<T;q++)V[q]=A.charCodeAt(q);return V},Q=e.__addimage__.arrayBufferToBinaryString=function(A){for(var T="",V=bt(A)?A:new Uint8Array(A),q=0;q<V.length;q+=8192)T+=String.fromCharCode.apply(null,V.subarray(q,q+8192));return T};e.addImage=function(){var A,T,V,q,ct,pt,gt,st,_t;if(typeof arguments[1]=="number"?(T=t,V=arguments[1],q=arguments[2],ct=arguments[3],pt=arguments[4],gt=arguments[5],st=arguments[6],_t=arguments[7]):(T=arguments[1],V=arguments[2],q=arguments[3],ct=arguments[4],pt=arguments[5],gt=arguments[6],st=arguments[7],_t=arguments[8]),Me(A=arguments[0])==="object"&&!S(A)&&"imageData"in A){var Et=A;A=Et.imageData,T=Et.format||T||t,V=Et.x||V||0,q=Et.y||q||0,ct=Et.w||Et.width||ct,pt=Et.h||Et.height||pt,gt=Et.alias||gt,st=Et.compression||st,_t=Et.rotation||Et.angle||_t}var At=this.internal.getFilters();if(st===void 0&&At.indexOf("FlateEncode")!==-1&&(st="SLOW"),isNaN(V)||isNaN(q))throw new Error("Invalid coordinates passed to jsPDF.addImage");f.call(this);var b=M.call(this,A,T,gt,st);return D.call(this,V,q,ct,pt,b,_t),this};var M=function(A,T,V,q){var ct,pt,gt;if(typeof A=="string"&&r(A)===t){A=unescape(A);var st=ot(A,!1);(st!==""||(st=e.loadFile(A,!0))!==void 0)&&(A=st)}if(S(A)&&(A=d(A,T)),T=r(A,T),!y(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((gt=V)==null||gt.length===0)&&(V=(function(_t){return typeof _t=="string"||bt(_t)?W(_t):bt(_t.data)?W(_t.data):null})(A)),(ct=O.call(this,V))||(A instanceof Uint8Array||T==="RGBA"||(pt=A,A=vt(A)),ct=this["process"+T.toUpperCase()](A,g.call(this),V,(function(_t){return _t&&typeof _t=="string"&&(_t=_t.toUpperCase()),_t in e.image_compression?_t:Y.NONE})(q),pt)),!ct)throw new Error("An unknown error occurred whilst processing the image.");return ct},ot=e.__addimage__.convertBase64ToBinaryString=function(A,T){T=typeof T!="boolean"||T;var V,q="";if(typeof A=="string"){var ct;V=(ct=ft(A))!==null&&ct!==void 0?ct:A;try{q=gl(V)}catch(pt){if(T)throw z(V)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+pt.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return q};e.getImageProperties=function(A){var T,V,q="";if(S(A)&&(A=d(A)),typeof A=="string"&&r(A)===t&&((q=ot(A,!1))===""&&(q=e.loadFile(A)||""),A=q),V=r(A),!y(V))throw new Error("addImage does not support files of type '"+V+"', please ensure that a plugin for '"+V+"' support is added.");if(A instanceof Uint8Array||(A=vt(A)),!(T=this["process"+V.toUpperCase()](A)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=V,T}})(Ht.API),(function(e){var i=function(t){if(t!==void 0&&t!="")return!0};Ht.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var n,r,o,c=this.internal.getCoordinateString,
41s=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(t.objId),h=t.pageContext.annotations,g=!1,y=0;y<h.length&&!g;y++)switch((n=h[y]).type){case"link":(i(n.options.url)||i(n.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var S=0;S<h.length;S++){n=h[S];var d=this.internal.pdfEscape,O=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var E=this.internal.newAdditionalObject(),D=this.internal.newAdditionalObject(),N=this.internal.getEncryptor(E.objId),Y=n.title||"Note";o="<</Type /Annot /Subtype /Text "+(r="/Rect ["+c(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+c(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+d(N(n.contents))+")",o+=" /Popup "+D.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+d(N(Y))+") >>",E.content=o;var W=E.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+c(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+c(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+W,n.open&&(o+=" /Open true"),o+=" >>",D.content=o,this.internal.write(E.objId,"0 R",D.objId,"0 R");break;case"freetext":r="/Rect ["+c(n.bounds.x)+" "+s(n.bounds.y)+" "+c(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var z=n.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+d(O(n.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+z+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(n.options.name){var ft=this.annotations._nameMap[n.options.name];n.options.pageNumber=ft.page,n.options.top=ft.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",o="",n.options.url)o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+d(O(n.options.url))+") >>";else if(n.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,o+=" /FitV "+n.options.left+"]";break;default:var bt=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),o+=" /XYZ "+n.options.left+" "+bt+" "+n.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(t){var n=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":n.pageContext.annotations.push(t)}},e.link=function(t,n,r,o,c){var s=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:f(t),y:h(n),w:f(t+r),h:h(n+o)},options:c,type:"link"})},e.textWithLink=function(t,n,r,o){var c,s,f=this.getTextWidth(t),h=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){s=o.maxWidth;var g=this.splitTextToSize(t,s).length;c=Math.ceil(h*g)}else s=f,c=h;return this.text(t,n,r,o),r+=.2*h,o.align==="center"&&(n-=f/2),o.align==="right"&&(n-=f),this.link(n,r-h,s,c,o),f},e.getTextWidth=function(t){var n=this.internal.getFontSize();return this.getStringUnitWidth(t)*n/this.internal.scaleFactor}})(Ht.API),(function(e){var i={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,652
4166,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]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(E){return i[E.charCodeAt(0)]!==void 0},c=e.__arabicParser__.isArabicLetter=function(E){return typeof E=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(E)},s=e.__arabicParser__.isArabicEndLetter=function(E){return c(E)&&o(E)&&i[E.charCodeAt(0)].length<=2},f=e.__arabicParser__.isArabicAlfLetter=function(E){return c(E)&&r.indexOf(E.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(E){return c(E)&&o(E)&&i[E.charCodeAt(0)].length>=1};var h=e.__arabicParser__.arabicLetterHasFinalForm=function(E){return c(E)&&o(E)&&i[E.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(E){return c(E)&&o(E)&&i[E.charCodeAt(0)].length>=3};var g=e.__arabicParser__.arabicLetterHasMedialForm=function(E){return c(E)&&o(E)&&i[E.charCodeAt(0)].length==4},y=e.__arabicParser__.resolveLigatures=function(E){var D=0,N=t,Y="",W=0;for(D=0;D<E.length;D+=1)N[E.charCodeAt(D)]!==void 0?(W++,typeof(N=N[E.charCodeAt(D)])=="number"&&(Y+=String.fromCharCode(N),N=t,W=0),D===E.length-1&&(N=t,Y+=E.charAt(D-(W-1)),D-=W-1,W=0)):(N=t,Y+=E.charAt(D-W),D-=W,W=0);return Y};e.__arabicParser__.isArabicDiacritic=function(E){return E!==void 0&&n[E.charCodeAt(0)]!==void 0};var S=e.__arabicParser__.getCorrectForm=function(E,D,N){return c(E)?o(E)===!1?-1:!h(E)||!c(D)&&!c(N)||!c(N)&&s(D)||s(E)&&!c(D)||s(E)&&f(D)||s(E)&&s(D)?0:g(E)&&c(D)&&!s(D)&&c(N)&&h(N)?3:s(E)||!c(N)?1:2:-1},d=function(E){var D=0,N=0,Y=0,W="",z="",ft="",bt=(E=E||"").split("\\s+"),vt=[];for(D=0;D<bt.length;D+=1){for(vt.push(""),N=0;N<bt[D].length;N+=1)W=bt[D][N],z=bt[D][N-1],ft=bt[D][N+1],c(W)?(Y=S(W,z,ft),vt[D]+=Y!==-1?String.fromCharCode(i[W.charCodeAt(0)][Y]):W):vt[D]+=W;vt[D]=y(vt[D])}return vt.join(" ")},O=e.__arabicParser__.processArabic=e.processArabic=function(){var E,D=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,N=[];if(Array.isArray(D)){var Y=0;for(N=[],Y=0;Y<D.length;Y+=1)Array.isArray(D[Y])?N.push([d(D[Y][0]),D[Y][1],D[Y][2]]):N.push([d(D[Y])]);E=N}else E=d(D);return typeof arguments[0]=="string"?E:(arguments[0].text=E,arguments[0])};e.events.push(["preProcessText",O])})(Ht.API),Ht.API.autoPrint=function(e){var i;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){i=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 "+i+" 0 R")})),this},(function(e){var i=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(s){t=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o}
41,set:function(s){o=s}});var c={};Object.defineProperty(this,"style",{get:function(){return c},set:function(s){c=s}}),Object.defineProperty(this,"parentNode",{})};i.prototype.getContext=function(t,n){var r;if((t=t||"2d")!=="2d")return null;for(r in n)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=n[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},i.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new i,this.canvas.pdf=this}])})(Ht.API),(function(e){var i={left:0,top:0,bottom:0,right:0},t=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},i),this.internal.__cell__.margins.width=this.getPageWidth(),r.call(this))},r=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(E){f=E}});var h=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return h},set:function(E){h=E}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(E){g=E}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(E){y=E}});var S=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return S},set:function(E){S=E}});var d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(E){d=E}});var O=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return O},set:function(E){O=E}}),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]},e.setHeaderFunction=function(f){return n.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},e.getTextDimensions=function(f,h){n.call(this);var g=(h=h||{}).fontSize||this.getFontSize(),y=h.font||this.getFont(),S=h.scaleFactor||this.internal.scaleFactor,d=0,O=0,E=0,D=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var N=h.maxWidth;N>0?typeof f=="string"?f=this.splitTextToSize(f,N):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(W,z){return W.concat(D.splitTextToSize(z,N))},[])):f=Array.isArray(f)?f:[f];for(var Y=0;Y<f.length;Y++)d<(E=this.getStringUnitWidth(f[Y],{font:y})*g)&&(d=E);return d!==0&&(O=f.length),{w:d/=S,h:Math.max((O*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/S,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var f=this.internal.__cell__.margins||i;return this.internal.__cell__.lastCell=new o(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var c=e.cell=function(){var f;f=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var h=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,y=this.internal.__cell__.margins||i,S=this.internal.__cell__.tableHeaderRow,d=this.internal.__cell__.printHeaders;return h.lineNumber!==void 0&&(h.lineNumber===f.lineNumber?(f.x=(h.x||0)+(h.width||0),f.y=h.y||0):h.y+h.height+f.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=y.top,d&&S&&(this.printHeaderRow(f.lineNumber,!0),f.y+=S[0].height)):f.y=h.y+h.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,t===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-g,f.y+g,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+g,{align:"center",baseline:"top",maxWidth:f.width-g-g}):this.text(f.text,f.x+g,f.y+g,{align:"left",baseline:"top",maxWidth:f.
41width-g-g})),this.internal.__cell__.lastCell=f,this};e.table=function(f,h,g,y,S){if(n.call(this),!g)throw new Error("No data for PDF table.");var d,O,E,D,N=[],Y=[],W=[],z={},ft={},bt=[],vt=[],Q=(S=S||{}).autoSize||!1,M=S.printHeaders!==!1,ot=S.css&&S.css["font-size"]!==void 0?16*S.css["font-size"]:S.fontSize||12,A=S.margins||Object.assign({width:this.getPageWidth()},i),T=typeof S.padding=="number"?S.padding:3,V=S.headerBackgroundColor||"#c8c8c8",q=S.headerTextColor||"#000";if(r.call(this),this.internal.__cell__.printHeaders=M,this.internal.__cell__.margins=A,this.internal.__cell__.table_font_size=ot,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=V,this.internal.__cell__.headerTextColor=q,this.setFontSize(ot),y==null)Y=N=Object.keys(g[0]),W=N.map(function(){return"left"});else if(Array.isArray(y)&&Me(y[0])==="object")for(N=y.map(function(Et){return Et.name}),Y=y.map(function(Et){return Et.prompt||Et.name||""}),W=y.map(function(Et){return Et.align||"left"}),d=0;d<y.length;d+=1)ft[y[d].name]=.7499990551181103*y[d].width;else Array.isArray(y)&&typeof y[0]=="string"&&(Y=N=y,W=N.map(function(){return"left"}));if(Q||Array.isArray(y)&&typeof y[0]=="string")for(d=0;d<N.length;d+=1){for(z[D=N[d]]=g.map(function(Et){return Et[D]}),this.setFont(void 0,"bold"),bt.push(this.getTextDimensions(Y[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),O=z[D],this.setFont(void 0,"normal"),E=0;E<O.length;E+=1)bt.push(this.getTextDimensions(O[E],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ft[D]=Math.max.apply(null,bt)+T+T,bt=[]}if(M){var ct={};for(d=0;d<N.length;d+=1)ct[N[d]]={},ct[N[d]].text=Y[d],ct[N[d]].align=W[d];var pt=s.call(this,ct,ft);vt=N.map(function(Et){return new o(f,h,ft[Et],pt,ct[Et].text,void 0,ct[Et].align)}),this.setTableHeaderRow(vt),this.printHeaderRow(1,!1)}var gt=y.reduce(function(Et,At){return Et[At.name]=At.align,Et},{});for(d=0;d<g.length;
41d+=1){"rowStart"in S&&S.rowStart instanceof Function&&S.rowStart({row:d,data:g[d]},this);var st=s.call(this,g[d],ft);for(E=0;E<N.length;E+=1){var _t=g[d][N[E]];"cellStart"in S&&S.cellStart instanceof Function&&S.cellStart({row:d,col:E,data:_t},this),c.call(this,new o(f,h,ft[N[E]],st,_t,d+2,gt[N[E]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=h,this};var s=function(f,h){var g=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,S=this.internal.scaleFactor;return Object.keys(f).map(function(d){var O=f[d];return this.splitTextToSize(O.hasOwnProperty("text")?O.text:O,h[d]-g-g)},this).map(function(d){return this.getLineHeightFactor()*d.length*y/S+g+g},this).reduce(function(d,O){return Math.max(d,O)},0)};e.setTableHeaderRow=function(f){n.call(this),this.internal.__cell__.tableHeaderRow=f},e.printHeaderRow=function(f,h){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var S=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){g=this.internal.__cell__.tableHeaderRow[d].clone(),h&&(g.y=this.internal.__cell__.margins.top||0,S.push(g)),g.lineNumber=f;var O=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),c.call(this,g),this.setTextColor(O)}S.length>0&&this.setTableHeaderRow(S),this.setFont(void 0,"normal"),t=!1}})(Ht.API);var pd={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dd=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],cf=hd(dd),gd=[100,200,300,400,500,600,700,800,900],Rg=hd(gd);function ef(e){var i=e.family.replace(/"|'/g,"").toLowerCase(),t=(function(o){return pd[o=o||"normal"]?o:"normal"})(e.style),n=(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})(e.weight),r=(function(o){return typeof cf[o=o||"normal"]=="number"?o:"normal"})(e.stretch);return{family:i,style:t,weight:n,stretch:r,src:e.src||[],ref:e.ref||{name:i,style:[r,t,n].join(" ")}}}function qp(e,i,t,n){var r;for(r=t;r>=0&&r<i.length;r+=n)if(e[i[r]])return e[i[r]];for(r=t;r>=0&&r<i.length;r-=n)if(e[i[r]])return e[i[r]]}var Dg={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Hp={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Vp(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function $p(e){return e.trimLeft()}function Mg(e,i){for(var t=0;t<e.length;){if(e.charAt(t)===i)return[e.substring(0,t),e.substring(t+1)];t+=1}return null}function Bg(e){var i=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return i===null?null:[i[0],e.substring(i[0].length)]}var pl,Gp,Wp,Vo,dl,Zp,Yp,Kp,nf=["times"];function Xp(e,i,t,n,r){var o=4,c=Qp;switch(r){case Ht.API.image_compression.FAST:o=1,c=Jp;break;case Ht.API.image_compression.MEDIUM:o=6,c=td;break;case Ht.API.image_compression.SLOW:o=9,c=ed}e=(function(f,h,g,y){for(var S,d=f.length/h,O=new Uint8Array(f.length+d),E=[zg,Jp,Qp,td,ed],D=0;D<d;D+=1){var N=D*h,Y=f.subarray(N,N+h);if(y)O.set(y(Y,g,S),N+D);else{for(var W=E.length,z=[],ft=0;ft<W;ft+=1)z[ft]=E[ft](Y,g,S);var bt=Ug(z.concat());O.set(z[bt],N+D)}S=Y}return O})(e,i,Math.ceil(t*n/8),c);var s=Hs(e,{level:o});return Ht.API.__addimage__.arrayBufferToBinaryString(s)}function zg(e){var i=Array.apply([],e);return i.unshift(0),i}function Jp(e,i){var t=e.length,n=[];n[0]=1;for(var r=0;r<t;r+=1){var o=e[r-i]||0;n[r+1]=e[r]-o+256&255}return n}function Qp(e,i,t){var n=e.length,r=[];r[0]=2;
41for(var o=0;o<n;o+=1){var c=t&&t[o]||0;r[o+1]=e[o]-c+256&255}return r}function td(e,i,t){var n=e.length,r=[];r[0]=3;for(var o=0;o<n;o+=1){var c=e[o-i]||0,s=t&&t[o]||0;r[o+1]=e[o]+256-(c+s>>>1)&255}return r}function ed(e,i,t){var n=e.length,r=[];r[0]=4;for(var o=0;o<n;o+=1){var c=jg(e[o-i]||0,t&&t[o]||0,t&&t[o-i]||0);r[o+1]=e[o]-c+256&255}return r}function jg(e,i,t){if(e===i&&i===t)return e;var n=Math.abs(i-t),r=Math.abs(e-t),o=Math.abs(e+i-t-t);return n<=r&&n<=o?e:r<=o?i:t}function Ug(e){var i=e.map(function(t){return t.reduce(function(n,r){return n+Math.abs(r)},0)});return i.indexOf(Math.min.apply(null,i))}function rf(e,i,t){var n=i*t,r=Math.floor(n/8),o=16-(n-8*r+t),c=(1<<t)-1;return md(e,r)>>o&c}function id(e,i,t,n){var r=t*n,o=Math.floor(r/8),c=16-(r-8*o+n),s=(1<<n)-1,f=(i&s)<<c;(function(h,g,y){if(g+1<h.byteLength)h.setUint16(g,y,!1);else{var S=y>>8&255;h.setUint8(g,S)}})(e,o,md(e,o)&~(s<<c)&65535|f)}function md(e,i){return i+1<e.byteLength?e.getUint16(i,!1):e.getUint8(i)<<8}function qg(e){var i=0;if(e[i++]!==71||e[i++]!==73||e[i++]!==70||e[i++]!==56||(e[i++]+1&253)!=56||e[i++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[i++]|e[i++]<<8,n=e[i++]|e[i++]<<8,r=e[i++],o=r>>7,c=1<<1+(7&r);e[i++],e[i++];var s=null,f=null;o&&(s=i,f=c,i+=3*c);var h=!0,g=[],y=0,S=null,d=0,O=null;for(this.width=t,this.height=n;h&&i<e.length;)switch(e[i++]){case 33:switch(e[i++]){case 255:if(e[i]!==11||e[i+1]==78&&e[i+2]==69&&e[i+3]==84&&e[i+4]==83&&e[i+5]==67&&e[i+6]==65&&e[i+7]==80&&e[i+8]==69&&e[i+9]==50&&e[i+10]==46&&e[i+11]==48&&e[i+12]==3&&e[i+13]==1&&e[i+16]==0)i+=14,O=e[i++]|e[i++]<<8,i++;else for(i+=12;;){if(!((A=e[i++])>=0))throw Error("Invalid block size");if(A===0)break;i+=A}break;case 249:if(e[i++]!==4||e[i+4]!==0)throw new Error("Invalid graphics extension block.");var E=e[i++];y=e[i++]|e[i++]<<8,S=e[i++],1&E||(S=null),d=E>>2&7,i++;break;case 254:for(;;){if(!((A=e[i++])>=0))throw Error("Invalid block size");if(A===0)break;i+=A}break;default:throw new Error("Unknown graphic control label: 0x"+e[i-1].toString(16))}break;case 44:var D=e[i++]|e[i++]<<8,N=e[i++]|e[i++]<<8,Y=e[i++]|e[i++]<<8,W=e[i++]|e[i++]<<8,z=e[i++],ft=z>>6&1,bt=1<<1+(7&z),vt=s,Q=f,M=!1;z>>7&&(M=!0,vt=i,Q=bt,i+=3*bt);var ot=i;for(i++;;){var A;if(!((A=e[i++])>=0))throw Error("Invalid block size");if(A===0)break;i+=A}g.push({x:D,y:N,width:Y,height:W,has_local_palette:M,palette_offset:vt,palette_size:Q,data_offset:ot,data_length:i-ot,transparent_index:S,interlaced:!!ft,delay:y,disposal:d});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+e[i-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return O},this.frameInfo=function(T){if(T<0||T>=g.length)throw new Error("Frame index out of range.");return g[T]},this.decodeAndBlitFrameBGRA=function(T,V){var q=this.frameInfo(T),ct=q.width*q.height,pt=new Uint8Array(ct);nd(e,q.data_offset,pt,ct);var gt=q.palette_offset,st=q.transparent_index;st===null&&(st=256);var _t=q.width,Et=t-_t,At=_t,b=4*(q.y*t+q.x),R=4*((q.y+q.height)*t+q.x),B=b,$=4*Et;q.interlaced===!0&&($+=4*t*7);for(var J=8,nt=0,ut=pt.length;nt<ut;++nt){var ht=pt[nt];if(At===0&&(At=_t,(B+=$)>=R&&($=4*Et+4*t*(J-1),B=b+(_t+Et)*(J<<1),J>>=1)),ht===st)B+=4;else{var wt=e[gt+3*ht],Lt=e[gt+3*ht+1],Ot=e[gt+3*ht+2];V[B++]=Ot,V[B++]=Lt,V[B++]=wt,V[B++]=255}--At}},this.decodeAndBlitFrameRGBA=function(T,V){var q=this.frameInfo(T),ct=q.width*q.height,pt=new Uint8Array(ct);nd(e,q.data_offset,pt,ct);var gt=q.palette_offset,st=q.transparent_index;st===null&&(st=256);var _t=q.width,Et=t-_t,At=_t,b=4*(q.y*t+q.x),R=4*((q.y+q.height)*t+q.x),B=b,$=4*Et;q.interlaced===!0&&($+=4*t*7);for(var J=8,nt=0,ut=pt.length;nt<ut;++nt){var ht=pt[nt];if(At===0&&(At=_t,(B+=$)>=R&&($=4*Et+4*t*(J-1),B=b+(_t+Et)*(J<<1),J>>=1)),ht===st)B+=4;else{var wt=e[gt+3*ht],Lt=e[gt+3*ht+1],Ot=e[gt+3*ht+2];V[B++]=wt,V[B++]=Lt,V[B++]=Ot,V[B++]=255}--At}}}function nd(e,i,t,n){for(var r=e[i++],o=1<<r,c=o+1,s=c+1,f=r+1,h=(1<<f)-1,g=0,y=0,S=0,d=e[i++],O=new Int32Array(4096),E=null;;){for(;g<16&&d!==0;)y|=e[i++]<<g,g+=8,d===1?d=e[i++]:--d;if(g<f)break;var D=y&h;if(y>>=f,g-=f,D!==o){if(D===c)break;for(var N=D<s?D:E,Y=0,W=N;W>o;)W=O[W]>>8,++Y;var z=W;if(S+Y+(N!==D?1:0)>n)return void He.log("Warning, gif stream longer than expected.");t[S++]=z;var ft=S+=Y;for(N!==D&&(t[S++]=z),W=N;Y--;)W=O[W],t[--ft]=255&W,W>>=8;E!==null&&s<4096&&(O[s++]=E<<8|z,s>=h+1&&f<12&&(++f,h=h<<1|1)),E=D}else s=c+1,h=(1<<(f=r+1))-1,E=null}return S!==n&&He.log("Warning, gif stream shorter than expected."),t}function of(e){var i,t,n,r,o,c=Math.floor,s=new Array(64),f=new Array(64),h=new Array(64),g=new Array(64),y=new Array(65535),S=new Array(65535),d=new Array(64),O=new Array(64),E=[],D=0,N=7,Y=new Array(64),W=new Array(64),z=new Array(64),ft=new Array(256),bt=new Array(2048),vt=[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],Q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],M=[0,1,2,3,4,5,6,7,8,9,10,11],ot=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],A=[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],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],V=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ct=[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 pt(b,R){for(var B=0,$=0,J=new Array,nt=1;nt<=16;nt++){for(var ut=1;ut<=b[nt];ut++)J[R[$]]=[],J[R[$]][0]=B,J[R[$]][1]=nt,$++,B++;B*=2}return J}function gt(b){for(var R=b[0],B=b[1]-1;B>=0;)R&1<<B&&(D|=1<<N),B--,--N<0&&(D==255?(st(255),st(0)):st(D),N=7,D=0)}function st(b){E.push(b)}function _t(b){st(b>>8&255),st(255&b)}function Et(b,R,B,$,J){for(var nt,ut=J[0],ht=J[240],wt=(function(kt,Jt){var Dt,Kt,Wt,Pe,ve,ae,ye,xe,Ut,ce,$t=0;for(Ut=0;Ut<8;++Ut){Dt=kt[$t],Kt=kt[$t+1],Wt=kt[$t+2],Pe=kt[$t+3],ve=kt[$t+4],ae=kt[$t+5],ye=kt[$t+6];var ni=Dt+(xe=kt[$t+7]),Ae=Dt-xe,de=Kt+ye,ge=Kt-ye,Ze=Wt+ae,Zt=Wt-ae,Ve=Pe+ve,ee=Pe-ve,se=ni+Ve,Ye=ni-Ve,me=de+Ze,Qt=de-Ze;kt[$t]=se+me,kt[$t+4]=se-me;var Te=.707106781*(Qt+Ye);kt[$t+2]=Ye+Te,kt[$t+6]=Ye-Te;var Vr=.382683433*((se=ee+Zt)-(Qt=ge+Ae)),Ti=.5411961*se+Vr,Kn=1.306562965*Qt+Vr,Tn=.707106781*(me=Zt+ge),te=Ae+Tn,Xn=Ae-Tn;kt[$t+5]=Xn+Ti,kt[$t+3]=Xn-Ti,kt[$t+1]=te+Kn,kt[$t+7]=te-Kn,$t+=8}for($t=0,Ut=0;Ut<8;++Ut){Dt=kt[$t],Kt=kt[$t+8],Wt=kt[$t+16],Pe=kt[$t+24],ve=kt[$t+32],ae=kt[$t+40],ye=kt[$t+48];var Jn=Dt+(xe=kt[$t+56]),an=Dt-xe,sn=Kt+ye,Qe=Kt-ye,wi=Wt+ae,Ai=Wt-ae,$r=Pe+ve,yr=Pe-ve,yn=Jn+$r,Fn=Jn-$r,wn=sn+wi,bn=sn-wi;kt[$t]=yn+wn,kt[$t+32]=yn-wn;var ln=.707106781*(bn+Fn);kt[$t+16]=Fn+ln,kt[$t+48]=Fn-ln;var Gr=.382683433*((yn=yr+Ai)-(bn=Qe+an)),On=.5411961*yn+Gr,Wr=1.306562965*bn+Gr,wo=.707106781*(wn=Ai+Qe),bo=an+wo,So=an-wo;kt[$t+40]=So+On,kt[$t+24]=So-On,kt[$t+8]=bo+Wr,kt[$t+56]=bo-Wr,$t++}for(Ut=0;Ut<64;++Ut)ce=kt[Ut]*Jt[Ut],d[Ut]=ce>0?ce+.5|0:ce-.5|0;return d})(b,R),Lt=0;Lt<64;++Lt)O[vt[Lt]]=wt[Lt];var Ot=O[0]-B;B=O[0],Ot==0?gt($[0]):(gt($[S[nt=32767+Ot]]),gt(y[nt]));for(var Tt=63;Tt>0&&O[Tt]==0;)Tt--;if(Tt==0)return gt(ut),B;for(var Gt,L=1;L<=Tt;){for(var Pt=L;O[L]==0&&L<=Tt;)++L;var pe=L-Pt;if(pe>=16){Gt=pe>>4;for(var Xt=1;Xt<=Gt;++Xt)gt(ht);pe&=15}nt=32767+O[L],gt(J[(pe<<4)+S[nt]]),gt(y[nt]),L++}return Tt!=63&&gt(ut),B}function At(b){b=Math.min(Math.max(b,1),100),o!=b&&((function(R){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],$=0;$<64;$++){var J=c((B[$]*R+50)/100);J=Math.min(Math.max(J,1),255),s[vt[$]]=J}for(var nt=[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],ut=0;ut<64;ut++){var ht=c((nt[ut]*R+50)/100);ht=Math.min(Math.max(ht,1),255),f[vt[ut]]=ht}for(var wt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Lt=0,Ot=0;Ot<8;Ot++)for(var Tt=0;Tt<8;Tt++)h[Lt]=1/(s[vt[Lt]]*wt[Ot]*wt[Tt]*8),g[Lt]=1/(f[vt[Lt]]*wt[Ot]*wt[Tt]*8),Lt++})(b<50?Math.floor(5e3/b):Math.floor(200-2*b)),o=b)}
41this.encode=function(b,R){R&&At(R),E=new Array,D=0,N=7,_t(65496),_t(65504),_t(16),st(74),st(70),st(73),st(70),st(0),st(1),st(1),st(0),_t(1),_t(1),st(0),st(0),(function(){_t(65499),_t(132),st(0);for(var Kt=0;Kt<64;Kt++)st(s[Kt]);st(1);for(var Wt=0;Wt<64;Wt++)st(f[Wt])})(),(function(Kt,Wt){_t(65472),_t(17),st(8),_t(Wt),_t(Kt),st(3),st(1),st(17),st(0),st(2),st(17),st(1),st(3),st(17),st(1)})(b.width,b.height),(function(){_t(65476),_t(418),st(0);for(var Kt=0;Kt<16;Kt++)st(Q[Kt+1]);for(var Wt=0;Wt<=11;Wt++)st(M[Wt]);st(16);for(var Pe=0;Pe<16;Pe++)st(ot[Pe+1]);for(var ve=0;ve<=161;ve++)st(A[ve]);st(1);for(var ae=0;ae<16;ae++)st(T[ae+1]);for(var ye=0;ye<=11;ye++)st(V[ye]);st(17);for(var xe=0;xe<16;xe++)st(q[xe+1]);for(var Ut=0;Ut<=161;Ut++)st(ct[Ut])})(),_t(65498),_t(12),st(3),st(1),st(0),st(2),st(17),st(3),st(17),st(0),st(63),st(0);var B=0,$=0,J=0;D=0,N=7,this.encode.displayName="_encode_";for(var nt,ut,ht,wt,Lt,Ot,Tt,Gt,L,Pt=b.data,pe=b.width,Xt=b.height,kt=4*pe,Jt=0;Jt<Xt;){for(nt=0;nt<kt;){for(Lt=kt*Jt+nt,Tt=-1,Gt=0,L=0;L<64;L++)Ot=Lt+(Gt=L>>3)*kt+(Tt=4*(7&L)),Jt+Gt>=Xt&&(Ot-=kt*(Jt+1+Gt-Xt)),nt+Tt>=kt&&(Ot-=nt+Tt-kt+4),ut=Pt[Ot++],ht=Pt[Ot++],wt=Pt[Ot++],Y[L]=(bt[ut]+bt[ht+256|0]+bt[wt+512|0]>>16)-128,W[L]=(bt[ut+768|0]+bt[ht+1024|0]+bt[wt+1280|0]>>16)-128,z[L]=(bt[ut+1280|0]+bt[ht+1536|0]+bt[wt+1792|0]>>16)-128;B=Et(Y,h,B,i,n),$=Et(W,g,$,t,r),J=Et(z,g,J,t,r),nt+=32}Jt+=8}if(N>=0){var Dt=[];Dt[1]=N+1,Dt[0]=(1<<N+1)-1,gt(Dt)}return _t(65497),new Uint8Array(E)},e=e||50,(function(){for(var b=String.fromCharCode,R=0;R<256;R++)ft[R]=b(R)})(),i=pt(Q,M),t=pt(T,V),n=pt(ot,A),r=pt(q,ct),(function(){for(var b=1,R=2,B=1;B<=15;B++){for(var $=b;$<R;$++)S[32767+$]=B,y[32767+$]=[],y[32767+$][1]=B,y[32767+$][0]=$;for(var J=-(R-1);J<=-b;J++)S[32767+J]=B,y[32767+J]=[],y[32767+J][1]=B,y[32767+J][0]=R-1+J;b<<=1,R<<=1}})(),(function(){for(var b=0;b<256;b++)bt[b]=19595*b,bt[b+256|0]=38470*b,bt[b+512|0]=7471*b+32768,bt[b+768|0]=-11059*b,bt[b+1024|0]=-21709*b,bt[b+1280|0]=32768*b+8421375,bt[b+1536|0]=-27439*b,bt[b+1792|0]=-5329*b})(),At(e)}function En(e,i){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!i,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 rd(e){function i(M){if(!M)throw Error("assert :P")}function t(M,ot,A){for(var T=0;4>T;T++)if(M[ot+T]!=A.charCodeAt(T))return!0;return!1}function n(M,ot,A,T,V){for(var q=0;q<V;q++)M[ot+q]=A[T+q]}function r(M,ot,A,T){for(var V=0;V<T;V++)M[ot+V]=A}function o(M){return new Int32Array(M)}function c(M,ot){for(var A=[],T=0;T<M;T++)A.push(new ot);return A}function s(M,ot){var A=[];return(function T(V,q,ct){for(var pt=ct[q],gt=0;gt<pt&&(V.push(ct.length>q+1?[]:new ot),!(ct.length<q+1));gt++)T(V[gt],q+1,ct)})(A,0,M),A}var f=function(){var M=this;function ot(a,l){for(var p=1<<l-1>>>0;a&p;)p>>>=1;return p?(a&p-1)+p:a}function A(a,l,p,m,v){i(!(m%p));do a[l+(m-=p)]=v;while(0<m)}function T(a,l,p,m,v){if(i(2328>=v),512>=v)var x=o(512);else if((x=o(v))==null)return 0;return(function(w,C,k,I,G,at){var P,K,et=C,dt=1<<k,rt=o(16),mt=o(16);for(i(G!=0),i(I!=null),i(w!=null),i(0<k),K=0;K<G;++K){if(15<I[K])return 0;++rt[I[K]]}if(rt[0]==G)return 0;for(mt[1]=0,P=1;15>P;++P){if(rt[P]>1<<P)return 0;mt[P+1]=mt[P]+rt[P]}for(K=0;K<G;++K)P=I[K],0<I[K]&&(at[mt[P]++]=K);if(mt[15]==1)return(I=new V).g=0,I.value=at[0],A(w,et,1,dt,I),dt;var yt,Nt=-1,Ct=dt-1,Vt=0,Rt=1,ue=1,zt=1<<k;for(K=0,P=1,G=2;P<=k;++P,G<<=1){if(Rt+=ue<<=1,0>(ue-=rt[P]))return 0;for(;0<rt[P];--rt[P])(I=new V).g=P,I.value=at[K++],A(w,et+Vt,G,zt,I),Vt=ot(Vt,P)}for(P=k+1,G=2;15>=P;++P,G<<=1){if(Rt+=ue<<=1,0>(ue-=rt[P]))return 0;for(;0<rt[P];--rt[P]){if(I=new V,(Vt&Ct)!=Nt){for(et+=zt,yt=1<<(Nt=P)-k;15>Nt&&!(0>=(yt-=rt[Nt]));)++Nt,yt<<=1;
vendor: 4,450 bytes, line 41
41dt+=zt=1<<(yt=Nt-k),w[C+(Nt=Vt&Ct)].g=yt+k,w[C+Nt].value=et-C-Nt}I.g=P-k,I.value=at[K++],A(w,et+(Vt>>k),G,zt,I),Vt=ot(Vt,P)}}return Rt!=2*mt[15]-1?0:dt})(a,l,p,m,v,x)}function V(){this.value=this.g=0}function q(){this.value=this.g=0}function ct(){this.G=c(5,V),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(ro,q)}function pt(a,l,p,m){i(a!=null),i(l!=null),i(2147483648>m),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=l,a.pa=p,a.Jd=l,a.Yc=p+m,a.Zc=4<=m?p+m-4+1:p,ut(a)}function gt(a,l){for(var p=0;0<l--;)p|=wt(a,128)<<l;return p}function st(a,l){var p=gt(a,l);return ht(a)?-p:p}function _t(a,l,p,m){var v,x=0;for(i(a!=null),i(l!=null),i(4294967288>m),a.Sb=m,a.Ra=0,a.u=0,a.h=0,4<m&&(m=4),v=0;v<m;++v)x+=l[p+v]<<8*v;a.Ra=x,a.bb=m,a.oa=l,a.pa=p}function Et(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<Cr-8>>>0,++a.bb,a.u-=8;$(a)&&(a.h=1,a.u=0)}function At(a,l){if(i(0<=l),!a.h&&l<=Yi){var p=B(a)&Zi[l];return a.u+=l,Et(a),p}return a.h=1,a.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(a){return a.Ra>>>(a.u&Cr-1)>>>0}function $(a){return i(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>Cr}function J(a,l){a.u=l,a.h=$(a)}function nt(a){a.u>=cr&&(i(a.u>=cr),Et(a))}function ut(a){i(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(i(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function ht(a){return gt(a,1)}function wt(a,l){var p=a.Ca;0>a.b&&ut(a);var m=a.b,v=p*l>>>8,x=(a.I>>>m>v)+0;for(x?(p-=v,a.I-=v+1<<m>>>0):p=v+1,m=p,v=0;256<=m;)v+=8,m>>=8;return m=7^v+Ar[m],a.b-=m,a.Ca=(p<<m)-1,x}function Lt(a,l,p){a[l+0]=p>>24&255,a[l+1]=p>>16&255,a[l+2]=p>>8&255,a[l+3]=255&p}function Ot(a,l){return a[l+0]|a[l+1]<<8}function Tt(a,l){return Ot(a,l)|a[l+2]<<16}function Gt(a,l){return Ot(a,l)|Ot(a,l+2)<<16}function L(a,l){var p=1<<l;return i(a!=null),i(0<l),a.X=o(p),a.X==null?0:(a.Mb=32-l,a.Xa=l,1)}function Pt(a,l){i(a!=null),i(l!=null),i(a.Xa==l.Xa),n(l.X,0,a.X,0,1<<l.Xa)}function pe(){this.X=[],this.Xa=this.Mb=0}function Xt(a,l,p,m){i(p!=null),i(m!=null);var v=p[0],x=m[0];return v==0&&(v=(a*x+l/2)/l),x==0&&(x=(l*v+a/2)/a),0>=v||0>=x?0:(p[0]=v,m[0]=x,1)}function kt(a,l){return a+(1<<l)-1>>>l}function Jt(a,l){return((4278255360&a)+(4278255360&l)>>>0&4278255360)+((16711935&a)+(16711935&l)>>>0&16711935)>>>0}function Dt(a,l){M[l]=function(p,m,v,x,w,C,k){var I;for(I=0;I<w;++I){var G=M[a](C[k+I-1],v,x+I);C[k+I]=Jt(p[m+I],G)}}}function Kt(){this.ud=this.hd=this.jd=0}function Wt(a,l){return((4278124286&(a^l))>>>1)+(a&l)>>>0}function Pe(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function ve(a,l){return Pe(a+(a-l+.5>>1))}function ae(a,l,p){return Math.abs(l-p)-Math.abs(a-p)}function ye(a,l,p,m,v,x,w){for(m=x[w-1],p=0;p<v;++p)x[w+p]=m=Jt(a[l+p],m)}function xe(a,l,p,m,v){var x;for(x=0;x<p;++x){var w=a[l+x],C=w>>8&255,k=16711935&(k=(k=16711935&w)+((C<<16)+C));m[v+x]=(4278255360&w)+k>>>0}}function Ut(a,l){l.jd=255&a,l.hd=a>>8&255,l.ud=a>>16&255}function ce(a,l,p,m,v,x){var w;for(w=0;w<m;++w){var C=l[p+w],k=C>>>8,I=C,G=255&(G=(G=C>>>16)+((a.jd<<24>>24)*(k<<24>>24)>>>5));I=255&(I=(I+=(a.hd<<24>>24)*(k<<24>>24)>>>5)+((a.ud<<24>>24)*(G<<24>>24)>>>5)),v[x+w]=(4278255360&C)+(G<<16)+I}}function $t(a,l,p,m,v){M[l]=function(x,w,C,k,I,G,at,P,K){for(k=at;k<P;++k)for(at=0;at<K;++at)I[G++]=v(C[m(x[w++])])},M[a]=function(x,w,C,k,I,G,at){var P=8>>x.b,K=x.Ea,et=x.K[0],dt=x.w;if(8>P)for(x=(1<<x.b)-1,dt=(1<<P)-1;w<C;++w){var rt,mt=0;for(rt=0;rt<K;++rt)rt&x||(mt=m(k[I++])),G[at++]=v(et[mt&dt]),mt>>=P}else M["VP8LMapColor"+p](k,I,et,dt,G,at,w,C,K)}}function ni(a,l,p,m,v){for(p=l+p;l<p;){var x=a[l++];m[v++]=x>>16&255,m[v++]=x>>8&255,m[v++]=255&x}}function Ae(a,l,p,m,v){for(p=l+p;l<p;){var x=a[l++];m[v++]=x>>16&255,m[v++]=x>>8&255,m[v++]=255&x,m[v++]=x>>24&255}}function de(a,l,p,m,v){for(p=l+p;l<p;){var x=(w=a[l++])>>16&240|w>>12&15,w=240&w|w>>28&15;m[v++]=x,m[v++]=w}}function ge(a,l,p,m,v){for(p=l+p;l<p;){var x=(w=a[l++])>>16&248|w>>13&7,w=w>>5&224|w>>3&31;m[v++]=x,m[v++]=w}}function Ze(a,l,p,m,v){for(p=l+p;l<p;){var x=a[l++];m[v++]=255&x,m[v++]=x>>8&255,m[v++]=x>>16&255}}function Zt(a,l,p,m,v,x){if(x==0)for(p=l+p;l<p;)Lt(m,((x=a[l++])[0]>>24|x[1]>>8&65280|x[2]<<8&16711680|x[3]<<24)>>>0),v+=32;else n(m,v,a,l,p)}function Ve(a,l){M[l][0]=M[a+"0"],M[l][1]=M[a+"1"],M[l][2]=M[a+"2"],M[l][3]=M[a+"3"],M[l][4]=M[a+"4"],M[l][5
vendor: 4,466 bytes, line 41
41]=M[a+"5"],M[l][6]=M[a+"6"],M[l][7]=M[a+"7"],M[l][8]=M[a+"8"],M[l][9]=M[a+"9"],M[l][10]=M[a+"10"],M[l][11]=M[a+"11"],M[l][12]=M[a+"12"],M[l][13]=M[a+"13"],M[l][14]=M[a+"0"],M[l][15]=M[a+"0"]}function ee(a){return a==Hl||a==Vl||a==ks||a==$l}function se(){this.eb=[],this.size=this.A=this.fb=0}function Ye(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function me(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new se,this.f.kb=new Ye,this.sd=null}function Qt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Te(){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 Vr(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function Ti(a,l){var p=a.T,m=l.ba.f.RGBA,v=m.eb,x=m.fb+a.ka*m.A,w=dn[l.ba.S],C=a.y,k=a.O,I=a.f,G=a.N,at=a.ea,P=a.W,K=l.cc,et=l.dc,dt=l.Mc,rt=l.Nc,mt=a.ka,yt=a.ka+a.T,Nt=a.U,Ct=Nt+1>>1;for(mt==0?w(C,k,null,null,I,G,at,P,I,G,at,P,v,x,null,null,Nt):(w(l.ec,l.fc,C,k,K,et,dt,rt,I,G,at,P,v,x-m.A,v,x,Nt),++p);mt+2<yt;mt+=2)K=I,et=G,dt=at,rt=P,G+=a.Rc,P+=a.Rc,x+=2*m.A,w(C,(k+=2*a.fa)-a.fa,C,k,K,et,dt,rt,I,G,at,P,v,x-m.A,v,x,Nt);return k+=a.fa,a.j+yt<a.o?(n(l.ec,l.fc,C,k,Nt),n(l.cc,l.dc,I,G,Ct),n(l.Mc,l.Nc,at,P,Ct),p--):1&yt||w(C,k,null,null,I,G,at,P,I,G,at,P,v,x+m.A,null,null,Nt),p}function Kn(a,l,p){var m=a.F,v=[a.J];if(m!=null){var x=a.U,w=l.ba.S,C=w==As||w==ks;l=l.ba.f.RGBA;var k=[0],I=a.ka;k[0]=a.T,a.Kb&&(I==0?--k[0]:(--I,v[0]-=a.width),a.j+a.ka+a.T==a.o&&(k[0]=a.o-a.j-I));var G=l.eb;I=l.fb+I*l.A,a=yf(m,v[0],a.width,x,k,G,I+(C?0:3),l.A),i(p==k),a&&ee(w)&&ya(G,I,C,x,k,l.A)}return 0}function Tn(a){var l=a.ma,p=l.ba.S,m=11>p,v=p==Ss||p==Cs||p==As||p==ql||p==12||ee(p);if(l.memory=null,l.Ib=null,l.Jb=null,l.Nd=null,!ha(l.Oa,a,v?11:12))return 0;if(v&&ee(p)&&ca(),a.da)alert("todo:use_scaling");else{if(m){if(l.Ib=Vr,a.Kb){if(p=a.U+1>>1,l.memory=o(a.U+2*p),l.memory==null)return 0;l.ec=l.memory,l.fc=0,l.cc=l.ec,l.dc=l.fc+a.U,l.Mc=l.cc,l.Nc=l.dc+p,l.Ib=Ti,ca()}}else alert("todo:EmitYUV");v&&(l.Jb=Kn,m&&Cn())}if(m&&!Mf){for(a=0;256>a;++a)$d[a]=89858*(a-128)+Ls>>Ns,Zd[a]=-22014*(a-128)+Ls,Wd[a]=-45773*(a-128),Gd[a]=113618*(a-128)+Ls>>Ns;for(a=ba;a<Zl;++a)l=76283*(a-16)+Ls>>Ns,Yd[a-ba]=Rn(l,255),Kd[a-ba]=Rn(l+8>>4,15);Mf=1}return 1}function te(a){var l=a.ma,p=a.U,m=a.T;return i(!(1&a.ka)),0>=p||0>=m?0:(p=l.Ib(a,l),l.Jb!=null&&l.Jb(a,l,p),l.Dc+=p,1)}function Xn(a){a.ma.memory=null}function Jn(a,l,p,m){return At(a,8)!=47?0:(l[0]=At(a,14)+1,p[0]=At(a,14)+1,m[0]=At(a,1),At(a,3)!=0?0:!a.h)}function an(a,l){if(4>a)return a+1;var p=a-2>>1;return(2+(1&a)<<p)+At(l,p)+1}function sn(a,l){return 120<l?l-120:1<=(p=((p=Pd[l-1])>>4)*a+(8-(15&p)))?p:1;var p}function Qe(a,l,p){var m=B(p),v=a[l+=255&m].g-8;return 0<v&&(J(p,p.u+8),m=B(p),l+=a[l].value,l+=m&(1<<v)-1),J(p,p.u+a[l].g),a[l].value}function wi(a,l,p){return p.g+=a.g,p.value+=a.value<<l>>>0,i(8>=p.g),a.g}function Ai(a,l,p){var m=a.xc;return i((l=m==0?0:a.vc[a.md*(p>>m)+(l>>m)])<a.Wb),a.Ya[l]}function $r(a,l,p,m){var v=a.ab,x=a.c*l,w=a.C;l=w+l;var C=p,k=m;for(m=a.Ta,p=a.Ua;0<v--;){var I=a.gc[v],G=w,at=l,P=C,K=k,et=(k=m,C=p,I.Ea);switch(i(G<at),i(at<=I.nc),I.hc){case 2:ri(P,K,(at-G)*et,k,C);break;case 0:var dt=G,rt=at,mt=k,yt=C,Nt=(zt=I).Ea;dt==0&&(da(P,K,null,null,1,mt,yt),ye(P,K+1,0,0,Nt-1,mt,yt+1),K+=Nt,yt+=Nt,++dt);for(var Ct=1<<zt.b,Vt=Ct-1,Rt=kt(Nt,zt.b),ue=zt.K,zt=zt.w+(dt>>zt.b)*Rt;dt<rt;){var we=ue,vi=zt,he=1;for(Po(P,K,mt,yt-Nt,1,mt,yt);he<Nt;){var jt=(he&~Vt)+Ct;jt>Nt&&(jt=Nt),(0,ma[we[vi++]>>8&15])(P,K+ +he,mt,yt+he-Nt,jt-he,mt,yt+he),he=jt}K+=Nt,yt+=Nt,++dt&Vt||(zt+=Rt)}at!=I.nc&&n(k,C-et,k,C+(at-G-1)*et,et);break;case 1:for(et=P,rt=K,Nt=(P=I.Ea)-(yt=P&~(mt=(K=1<<I.b)-1)),dt=kt(P,I.b),Ct=I.K,I=I.w+(G>>I.b)*dt;G<at;){for(Vt=Ct,Rt=I,ue=new Kt,zt=rt+yt,we=rt+P;rt<zt;)Ut(Vt[Rt++],ue),_a(ue,et,rt,K,k,C),rt+=K,C+=K;rt<we&&(Ut(Vt[Rt++],ue),_a(ue,et,rt,Nt,k,C),rt+=Nt,C+=Nt),++G&mt||(I+=dt)}break;case 3:if(P==k&&K==C&&0<I.b){for(rt=k,P=et=C+(at-G)*et-(yt=(at-G)*kt(I.Ea,I.b)),K=k,mt=C,dt=[],yt=(Nt=yt)-1;0<=yt;--yt)dt[yt]=K[mt+yt];for(yt=Nt-1;0<=yt;--yt)rt[P+yt]=dt[yt];xs(I,G,at,k,et,k,C)}else xs(I,G,at,P,K,k,C)}C=m,k=p}k!=p&&n(m,p,C,k,x)}function yr(a,l){var p=a.V,m=a.Ba+a.c*a.C,v=l-a.C;if(i(l<=a.l.o),i(16>=v),0<v){var x=a.l,w=a.Ta,C=a.Ua,k=x.width;if($r(a,v,p,m),v=C=[C],i((p=a.C)<(m=l)),i(x.v<x.va),m>x.o&&(m=x.o),p<x.j){var I=x.j-p;p=x.j,v[0]+=I*k}if(p>
41=m?p=0:(v[0]+=4*x.v,x.ka=p-x.j,x.U=x.va-x.v,x.T=m-p,p=1),p){if(C=C[0],11>(p=a.ca).S){var G=p.f.RGBA,at=(m=p.S,v=x.U,x=x.T,I=G.eb,G.A),P=x;for(G=G.fb+a.Ma*G.A;0<P--;){var K=w,et=C,dt=v,rt=I,mt=G;switch(m){case bs:va(K,et,dt,rt,mt);break;case Ss:kr(K,et,dt,rt,mt);break;case Hl:kr(K,et,dt,rt,mt),ya(rt,mt,0,dt,1,0);break;case Nf:oo(K,et,dt,rt,mt);break;case Cs:Zt(K,et,dt,rt,mt,1);break;case Vl:Zt(K,et,dt,rt,mt,1),ya(rt,mt,0,dt,1,0);break;case As:Zt(K,et,dt,rt,mt,0);break;case ks:Zt(K,et,dt,rt,mt,0),ya(rt,mt,1,dt,1,0);break;case ql:Nr(K,et,dt,rt,mt);break;case $l:Nr(K,et,dt,rt,mt),xf(rt,mt,dt,1,0);break;case Lf:Lr(K,et,dt,rt,mt);break;default:i(0)}C+=k,G+=at}a.Ma+=x}else alert("todo:EmitRescaledRowsYUVA");i(a.Ma<=p.height)}}a.C=l,i(a.C<=a.i)}function yn(a){var l;if(0<a.ua)return 0;for(l=0;l<a.Wb;++l){var p=a.Ya[l].G,m=a.Ya[l].H;if(0<p[1][m[1]+0].g||0<p[2][m[2]+0].g||0<p[3][m[3]+0].g)return 0}return 1}function Fn(a,l,p,m,v,x){if(a.Z!=0){var w=a.qd,C=a.rd;for(i(Pr[a.Z]!=null);l<p;++l)Pr[a.Z](w,C,m,v,m,v,x),w=m,C=v,v+=x;a.qd=w,a.rd=C}}function wn(a,l){var p=a.l.ma,m=p.Z==0||p.Z==1?a.l.j:a.C;if(m=a.C<m?m:a.C,i(l<=a.l.o),l>m){var v=a.l.width,x=p.ca,w=p.tb+v*m,C=a.V,k=a.Ba+a.c*m,I=a.gc;i(a.ab==1),i(I[0].hc==3),zn(I[0],m,l,C,k,x,w),Fn(p,m,l,x,w,v)}a.C=a.Ma=l}function bn(a,l,p,m,v,x,w){var C=a.$/m,k=a.$%m,I=a.m,G=a.s,at=p+a.$,P=at;v=p+m*v;var K=p+m*x,et=280+G.ua,dt=a.Pb?C:16777216,rt=0<G.ua?G.Wa:null,mt=G.wc,yt=at<K?Ai(G,k,C):null;i(a.C<x),i(K<=v);var Nt=!1;t:for(;;){for(;Nt||at<K;){var Ct=0;if(C>=dt){var Vt=at-p;i((dt=a).Pb),dt.wd=dt.m,dt.xd=Vt,0<dt.s.ua&&Pt(dt.s.Wa,dt.s.vb),dt=C+Fd}if(k&mt||(yt=Ai(G,k,C)),i(yt!=null),yt.Qb&&(l[at]=yt.qb,Nt=!0),!Nt)if(nt(I),yt.jc){Ct=I,Vt=l;var Rt=at,ue=yt.pd[B(Ct)&ro-1];i(yt.jc),256>ue.g?(J(Ct,Ct.u+ue.g),Vt[Rt]=ue.value,Ct=0):(J(Ct,Ct.u+ue.g-256),i(256<=ue.value),Ct=ue.value),Ct==0&&(Nt=!0)}else Ct=Qe(yt.G[0],yt.H[0],I);if(I.h)break;if(Nt||256>Ct){if(!Nt)if(yt.nd)l[at]=(yt.qb|Ct<<8)>>>0;else{if(nt(I),Nt=Qe(yt.G[1],yt.H[1],I),nt(I),Vt=Qe(yt.G[2],yt.H[2],I),Rt=Qe(yt.G[3],yt.H[3],I),I.h)break;l[at]=(Rt<<24|Nt<<16|Ct<<8|Vt)>>>0}if(Nt=!1,++at,++k>=m&&(k=0,++C,w!=null&&C<=x&&!(C%16)&&w(a,C),rt!=null))for(;P<at;)Ct=l[P++],rt.X[(506832829*Ct&4294967295)>>>rt.Mb]=Ct}else if(280>Ct){if(Ct=an(Ct-256,I),Vt=Qe(yt.G[4],yt.H[4],I),nt(I),Vt=sn(m,Vt=an(Vt,I)),I.h)break;if(at-p<Vt||v-at<Ct)break t;for(Rt=0;Rt<Ct;++Rt)l[at+Rt]=l[at+Rt-Vt];for(at+=Ct,k+=Ct;k>=m;)k-=m,++C,w!=null&&C<=x&&!(C%16)&&w(a,C);if(i(at<=v),k&mt&&(yt=Ai(G,k,C)),rt!=null)for(;P<at;)Ct=l[P++],rt.X[(506832829*Ct&4294967295)>>>rt.Mb]=Ct}else{if(!(Ct<et))break t;for(Nt=Ct-280,i(rt!=null);P<at;)Ct=l[P++],rt.X[(506832829*Ct&4294967295)>>>rt.Mb]=Ct;Ct=at,i(!(Nt>>>(Vt=rt).Xa)),l[Ct]=Vt.X[Nt],Nt=!0}Nt||i(I.h==$(I))}if(a.Pb&&I.h&&at<v)i(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&Pt(a.s.vb,a.s.Wa);else{if(I.h)break t;w?.(a,C>x?x:C),a.a=0,a.$=at-p}return 1}return a.a=3,0}function ln(a){i(a!=null),a.vc=null,a.yc=null,a.Ya=null;var l=a.Wa;l!=null&&(l.X=null),a.vb=null,i(a!=null)}function Gr(){var a=new ne;return a==null?null:(a.a=0,a.xb=Pf,Ve("Predictor","VP8LPredictors"),Ve("Predictor","VP8LPredictors_C"),Ve("PredictorAdd","VP8LPredictorsAdd"),Ve("PredictorAdd","VP8LPredictorsAdd_C"),ri=xe,_a=ce,va=ni,kr=Ae,Nr=de,Lr=ge,oo=Ze,M.VP8LMapColor32b=Bn,M.VP8LMapColor8b=ga,a)}function On(a,l,p,m,v){var x=1,w=[a],C=[l],k=m.m,I=m.s,G=null,at=0;t:for(;;){if(p)for(;x&&At(k,1);){var P=w,K=C,et=m,dt=1,rt=et.m,mt=et.gc[et.ab],yt=At(rt,2);if(et.Oc&1<<yt)x=0;else{switch(et.Oc|=1<<yt,mt.hc=yt,mt.Ea=P[0],mt.nc=K[0],mt.K=[null],++et.ab,i(4>=et.ab),yt){case 0:case 1:mt.b=At(rt,3)+2,dt=On(kt(mt.Ea,mt.b),kt(mt.nc,mt.b),0,et,mt.K),mt.K=mt.K[0];break;case 3:var Nt,Ct=At(rt,8)+1,Vt=16<Ct?0:4<Ct?1:2<Ct?2:3;if(P[0]=kt(mt.Ea,Vt),mt.b=Vt,Nt=dt=On(Ct,1,0,et,mt.K)){var Rt,ue=Ct,zt=mt,we=1<<(8>>zt.b),vi=o(we);if(vi==null)Nt=0;else{var he=zt.K[0],jt=zt.w;for(vi[0]=zt.K[0][0],Rt=1;Rt<1*ue;++Rt)vi[Rt]=Jt(he[jt+Rt],vi[Rt-1]);for(;Rt<4*we;++Rt)vi[Rt]=0;zt.K[0]=null,zt.K[0]=vi,Nt=1}}dt=Nt;break;case 2:break;default:i(0)}x=dt}}if(w=w[0],C=C[0],x&&At(k,1)&&!(x=1<=(at=At(k,4))&&11>=at)){m.a=3;break t}var It;if(It=x)e:{var ai,le,Se,We=m,Li=w,zi=C,ti=at,Fi=p,ji=We.m,xi=We.s,Ne=[null],Oe=1,ei=0,Re=Td[ti];i:for(;;){if(Fi&&At(ji,1)){var Ei=At(ji,3)+2,kn=kt(Li,Ei),si=kt(zi,Ei),Vi=kn*si;if(!On(kn,si,0,We,Ne))break i;for(Ne=Ne[0],xi.xc=Ei,ai=0;ai<Vi;++ai){var ze=Ne[ai]>>8&65535;Ne[ai]=ze,ze>=Oe&&(Oe=ze+1)}}if(ji.h)break i;for(le=0;5>le;++le){var yi=Ef[le];!le&&0<ti&&(yi+=1<<ti),ei<yi&&(ei=yi)}var Xi=c(Oe*Re,V),Ui=Oe,Ji=c(Ui,ct);if(Ji==null)var Qi=null;else i(65536>=Ui),Qi=Ji;var $i=o(ei);if(Qi==null||$i==null||Xi==null){We.a=1;break i}var tn=Xi;for(ai=Se=0;ai<Oe;++ai){var Ge=Qi[ai],en=Ge.G,Nn=Ge.H,so=0,hr=1,Ii=0;for(le=0;5>le;++le){yi=Ef[le],en[le]=tn,Nn[le]=Se,!le&&0<ti&&(yi+=1<<ti);
41r:{var Is,Yl=yi,Ps=We,Sa=$i,Qd=tn,t1=Se,Kl=0,Tr=Ps.m,e1=At(Tr,1);if(r(Sa,0,0,Yl),e1){var i1=At(Tr,1)+1,n1=At(Tr,1),jf=At(Tr,n1==0?1:8);Sa[jf]=1,i1==2&&(Sa[jf=At(Tr,8)]=1);var Ts=1}else{var Uf=o(19),qf=At(Tr,4)+4;if(19<qf){Ps.a=3;var Fs=0;break r}for(Is=0;Is<qf;++Is)Uf[Id[Is]]=At(Tr,3);var Xl=void 0,Ca=void 0,Hf=Ps,r1=Uf,Os=Yl,Vf=Sa,Jl=0,Fr=Hf.m,$f=8,Gf=c(128,V);n:for(;T(Gf,0,7,r1,19);){if(At(Fr,1)){var o1=2+2*At(Fr,3);if((Xl=2+At(Fr,o1))>Os)break n}else Xl=Os;for(Ca=0;Ca<Os&&Xl--;){nt(Fr);var Wf=Gf[0+(127&B(Fr))];J(Fr,Fr.u+Wf.g);var Fo=Wf.value;if(16>Fo)Vf[Ca++]=Fo,Fo!=0&&($f=Fo);else{var a1=Fo==16,Zf=Fo-16,s1=Ld[Zf],Yf=At(Fr,Nd[Zf])+s1;if(Ca+Yf>Os)break n;for(var l1=a1?$f:0;0<Yf--;)Vf[Ca++]=l1}}Jl=1;break n}Jl||(Hf.a=3),Ts=Jl}(Ts=Ts&&!Tr.h)&&(Kl=T(Qd,t1,8,Sa,Yl)),Ts&&Kl!=0?Fs=Kl:(Ps.a=3,Fs=0)}if(Fs==0)break i;if(hr&&Ed[le]==1&&(hr=tn[Se].g==0),so+=tn[Se].g,Se+=Fs,3>=le){var Aa,Ql=$i[0];for(Aa=1;Aa<yi;++Aa)$i[Aa]>Ql&&(Ql=$i[Aa]);Ii+=Ql}}if(Ge.nd=hr,Ge.Qb=0,hr&&(Ge.qb=(en[3][Nn[3]+0].value<<24|en[1][Nn[1]+0].value<<16|en[2][Nn[2]+0].value)>>>0,so==0&&256>en[0][Nn[0]+0].value&&(Ge.Qb=1,Ge.qb+=en[0][Nn[0]+0].value<<8)),Ge.jc=!Ge.Qb&&6>Ii,Ge.jc){var Rs,pr=Ge;for(Rs=0;Rs<ro;++Rs){var Or=Rs,Rr=pr.pd[Or],Ds=pr.G[0][pr.H[0]+Or];256<=Ds.value?(Rr.g=Ds.g+256,Rr.value=Ds.value):(Rr.g=0,Rr.value=0,Or>>=wi(Ds,8,Rr),Or>>=wi(pr.G[1][pr.H[1]+Or],16,Rr),Or>>=wi(pr.G[2][pr.H[2]+Or],0,Rr),wi(pr.G[3][pr.H[3]+Or],24,Rr))}}}xi.vc=Ne,xi.Wb=Oe,xi.Ya=Qi,xi.yc=Xi,It=1;break e}It=0}if(!(x=It)){m.a=3;break t}if(0<at){if(I.ua=1<<at,!L(I.Wa,at)){m.a=1,x=0;break t}}else I.ua=0;var tc=m,Kf=w,c1=C,ec=tc.s,ic=ec.xc;if(tc.c=Kf,tc.i=c1,ec.md=kt(Kf,ic),ec.wc=ic==0?-1:(1<<ic)-1,p){m.xb=jd;break t}if((G=o(w*C))==null){m.a=1,x=0;break t}x=(x=bn(m,G,0,w,C,C,null))&&!k.h;break t}return x?(v!=null?v[0]=G:(i(G==null),i(p)),m.$=0,p||ln(I)):ln(I),x}function Wr(a,l){var p=a.c*a.i,m=p+l+16*l;return i(a.c<=l),a.V=o(m),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+p+l,1)}function wo(a,l){var p=a.C,m=l-p,v=a.V,x=a.Ba+a.c*p;for(i(l<=a.l.o);0<m;){var w=16<m?16:m,C=a.l.ma,k=a.l.width,I=k*w,G=C.ca,at=C.tb+k*p,P=a.Ta,K=a.Ua;$r(a,w,v,x),wf(P,K,G,at,I),Fn(C,p,p+w,G,at,k),m-=w,v+=w*a.c,p+=w}i(p==l),a.C=a.Ma=l}function bo(){this.ub=this.yd=this.td=this.Rb=0}function So(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Al(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Jo(){this.Yb=(function(){var a=[];return(function l(p,m,v){for(var x=v[m],w=0;w<x&&(p.push(v.length>m+1?[]:0),!(v.length<m+1));w++)l(p[w],m+1,v)})(a,0,[3,11]),a})()}function es(){this.jb=o(3),this.Wc=s([4,8],Jo),this.Xc=s([4,17],Jo)}function is(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function cn(){this.ld=this.La=this.dd=this.tc=0}function Qo(){this.Na=this.la=0}function ns(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ta(){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 rs(){this.uc=this.M=this.Nb=0,this.wa=Array(new cn),this.Y=0,this.ya=Array(new ta),this.aa=0,this.l=new Co}function os(){this.y=o(16),this.f=o(8),this.ea=o(8)}function as(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new bo,this.Kc=new So,this.ed=new is,this.Qa=new Al,this.Ic=this.$c=this.Aa=0,this.D=new rs,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=c(8,b),this.ia=0,this.pb=c(4,ns),this.Pa=new es,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new os),this.Hd=0,this.rb=Array(new Qo),this.sb=0,this.wa=Array(new cn),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 ta),this.L=this.aa=0,this.gd=s([4,2],cn),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 Rn(a,l){return 0>a?0:a>l?l:a}function Co(){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 kl(){var a=new as;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,wa||(wa=Ao)),a}function hi(a,l,p){return a.a==0&&(a.a=l,a.sc=p,a.cb=0),0}function ss(a,l,p){return 3<=p&&a[l+0]==157&&a[l+1]==1&&a[l+2]==42}function Dn(a,l){if(a==null)return 0;if(a.a=0,a.sc="OK",l==null)return hi(a,2,"null VP8Io passed to VP8GetHeaders()");var p=l.data,m=l.w,v=l.ha;if(4>v)return hi(a,7,"Truncated header.");var x=p[m+0]|p[m+1]<<8|p[m+2]<<16,w=a.Od;if(w.Rb=!(1&x),w.td=x>>1&7,w.yd=x>>4&1,w.ub=x>>5,3<w.td)return hi(a,3,"Incorrect keyframe parameters.");if(!w.yd)return hi(a,4,"Frame not displayable.");m+=3,v-=3;var C=a.Kc;
vendor: 11,586 bytes, line 41
41if(w.Rb){if(7>v)return hi(a,7,"cannot parse picture header");if(!ss(p,m,v))return hi(a,3,"Bad code word");C.c=16383&(p[m+4]<<8|p[m+3]),C.Td=p[m+4]>>6,C.i=16383&(p[m+6]<<8|p[m+5]),C.Ud=p[m+6]>>6,m+=7,v-=7,a.za=C.c+15>>4,a.Ub=C.i+15>>4,l.width=C.c,l.height=C.i,l.Da=0,l.j=0,l.v=0,l.va=l.width,l.o=l.height,l.da=0,l.ib=l.width,l.hb=l.height,l.U=l.width,l.T=l.height,r((x=a.Pa).jb,0,255,x.jb.length),i((x=a.Qa)!=null),x.Cb=0,x.Bb=0,x.Fb=1,r(x.Zb,0,0,x.Zb.length),r(x.Lb,0,0,x.Lb)}if(w.ub>v)return hi(a,7,"bad partition length");pt(x=a.m,p,m,w.ub),m+=w.ub,v-=w.ub,w.Rb&&(C.Ld=ht(x),C.Kd=ht(x)),C=a.Qa;var k,I=a.Pa;if(i(x!=null),i(C!=null),C.Cb=ht(x),C.Cb){if(C.Bb=ht(x),ht(x)){for(C.Fb=ht(x),k=0;4>k;++k)C.Zb[k]=ht(x)?st(x,7):0;for(k=0;4>k;++k)C.Lb[k]=ht(x)?st(x,6):0}if(C.Bb)for(k=0;3>k;++k)I.jb[k]=ht(x)?gt(x,8):255}else C.Bb=0;if(x.Ka)return hi(a,3,"cannot parse segment header");if((C=a.ed).zd=ht(x),C.Tb=gt(x,6),C.wb=gt(x,3),C.Pc=ht(x),C.Pc&&ht(x)){for(I=0;4>I;++I)ht(x)&&(C.vd[I]=st(x,6));for(I=0;4>I;++I)ht(x)&&(C.od[I]=st(x,6))}if(a.L=C.Tb==0?0:C.zd?1:2,x.Ka)return hi(a,3,"cannot parse filter header");var G=v;if(v=k=m,m=k+G,C=G,a.Xb=(1<<gt(a.m,2))-1,G<3*(I=a.Xb))p=7;else{for(k+=3*I,C-=3*I,G=0;G<I;++G){var at=p[v+0]|p[v+1]<<8|p[v+2]<<16;at>C&&(at=C),pt(a.Jc[+G],p,k,at),k+=at,C-=at,v+=3}pt(a.Jc[+I],p,k,C),p=k<m?0:5}if(p!=0)return hi(a,p,"cannot parse partitions");for(p=gt(k=a.m,7),v=ht(k)?st(k,4):0,m=ht(k)?st(k,4):0,C=ht(k)?st(k,4):0,I=ht(k)?st(k,4):0,k=ht(k)?st(k,4):0,G=a.Qa,at=0;4>at;++at){if(G.Cb){var P=G.Zb[at];G.Fb||(P+=p)}else{if(0<at){a.pb[at]=a.pb[0];continue}P=p}var K=a.pb[at];K.Sc[0]=Gl[Rn(P+v,127)],K.Sc[1]=Wl[Rn(P+0,127)],K.Eb[0]=2*Gl[Rn(P+m,127)],K.Eb[1]=101581*Wl[Rn(P+C,127)]>>16,8>K.Eb[1]&&(K.Eb[1]=8),K.Qc[0]=Gl[Rn(P+I,117)],K.Qc[1]=Wl[Rn(P+k,127)],K.lc=P+k}if(!w.Rb)return hi(a,4,"Not a key frame.");for(ht(x),w=a.Pa,p=0;4>p;++p){for(v=0;8>v;++v)for(m=0;3>m;++m)for(C=0;11>C;++C)I=wt(x,Bd[p][v][m][C])?gt(x,8):Dd[p][v][m][C],w.Wc[p][v].Yb[m][C]=I;for(v=0;17>v;++v)w.Xc[p][v]=w.Wc[p][zd[v]]}return a.kc=ht(x),a.kc&&(a.Bd=gt(x,8)),a.cb=1}function Ao(a,l,p,m,v,x,w){var C=l[v].Yb[p];for(p=0;16>v;++v){if(!wt(a,C[p+0]))return v;for(;!wt(a,C[p+1]);)if(C=l[++v].Yb[0],p=0,v==16)return 16;var k=l[v+1].Yb;if(wt(a,C[p+2])){var I=a,G=0;if(wt(I,(P=C)[(at=p)+3]))if(wt(I,P[at+6])){for(C=0,at=2*(G=wt(I,P[at+8]))+(P=wt(I,P[at+9+G])),G=0,P=Od[at];P[C];++C)G+=G+wt(I,P[C]);G+=3+(8<<at)}else wt(I,P[at+7])?(G=7+2*wt(I,165),G+=wt(I,145)):G=5+wt(I,159);else G=wt(I,P[at+4])?3+wt(I,P[at+5]):2;C=k[2]}else G=1,C=k[1];k=w+Rd[v],0>(I=a).b&&ut(I);var at,P=I.b,K=(at=I.Ca>>1)-(I.I>>P)>>31;--I.b,I.Ca+=K,I.Ca|=1,I.I-=(at+1&K)<<P,x[k]=((G^K)-K)*m[(0<v)+0]}return 16}function ls(a){var l=a.rb[a.sb-1];l.la=0,l.Na=0,r(a.zc,0,0,a.zc.length),a.ja=0}function fn(a,l,p,m,v){v=a[l+p+32*m]+(v>>3),a[l+p+32*m]=-256&v?0>v?0:255:v}function gi(a,l,p,m,v,x){fn(a,l,0,p,m+v),fn(a,l,1,p,m+x),fn(a,l,2,p,m-x),fn(a,l,3,p,m-v)}function Qn(a){return(20091*a>>16)+a}function cs(a,l,p,m){var v,x=0,w=o(16);for(v=0;4>v;++v){var C=a[l+0]+a[l+8],k=a[l+0]-a[l+8],I=(35468*a[l+4]>>16)-Qn(a[l+12]),G=Qn(a[l+4])+(35468*a[l+12]>>16);w[x+0]=C+G,w[x+1]=k+I,w[x+2]=k-I,w[x+3]=C-G,x+=4,l++}for(v=x=0;4>v;++v)C=(a=w[x+0]+4)+w[x+8],k=a-w[x+8],I=(35468*w[x+4]>>16)-Qn(w[x+12]),fn(p,m,0,0,C+(G=Qn(w[x+4])+(35468*w[x+12]>>16))),fn(p,m,1,0,k+I),fn(p,m,2,0,k-I),fn(p,m,3,0,C-G),x++,m+=32}function Nl(a,l,p,m){var v=a[l+0]+4,x=35468*a[l+4]>>16,w=Qn(a[l+4]),C=35468*a[l+1]>>16;gi(p,m,0,v+w,a=Qn(a[l+1]),C),gi(p,m,1,v+x,a,C),gi(p,m,2,v-x,a,C),gi(p,m,3,v-w,a,C)}function Ll(a,l,p,m,v){cs(a,l,p,m),v&&cs(a,l+16,p,m+4)}function Mn(a,l,p,m){ao(a,l+0,p,m,1),ao(a,l+32,p,m+128,1)}function fs(a,l,p,m){var v;for(a=a[l+0]+4,v=0;4>v;++v)for(l=0;4>l;++l)fn(p,m,l,v,a)}function us(a,l,p,m){a[l+0]&&Fe(a,l+0,p,m),a[l+16]&&Fe(a,l+16,p,m+4),a[l+32]&&Fe(a,l+32,p,m+128),a[l+48]&&Fe(a,l+48,p,m+128+4)}function ko(a,l,p,m){var v,x=o(16);for(v=0;4>v;++v){var w=a[l+0+v]+a[l+12+v],C=a[l+4+v]+a[l+8+v],k=a[l+4+v]-a[l+8+v],I=a[l+0+v]-a[l+12+v];x[0+v]=w+C,x[8+v]=w-C,x[4+v]=I+k,x[12+v]=I-k}for(v=0;4>v;++v)w=(a=x[0+4*v]+3)+x[3+4*v],C=x[1+4*v]+x[2+4*v],k=x[1+4*v]-x[2+4*v],I=a-x[3+4*v],p[m+0]=w+C>>3,p[m+16]=I+k>>3,p[m+32]=w-C>>3,p[m+48]=I-k>>3,m+=64}function Zr(a,l,p){var m,v=l-32,x=Ki,w=255-a[v-1];for(m=0;m<p;++m){var C,k=x,I=w+a[l-1];for(C=0;C<p;++C)a[l+C]=k[I+a[v+C]];l+=32}}function El(a,l){Zr(a,l,4)}function Il(a,l){Zr(a,l,8)}function Pl(a,l){Zr(a,l,16)}function ea(a,l){var p;for(p=0;16>p;++p)n(a,l+32*p,a,l-32,16)}function hs(a,l){var p;for(p=16;0<p;--p)r(a,l,a[l-1],16),l+=32}function Sn(a,l,p){var m;for(m=0;16>m;++m)r(l,p+32*m,a,16)}function Tl(a,l){var p,m=16;for(p=0;16>p;++p)m+=a[l-1+32*p]+a[l+p-32];Sn(m>>5,a,l)}function Yr(a,l){var p,m=8;for(p=0;16>p;++p)m+=a[l-1+32*p];Sn(m>>4,a,l)}function ia(a,l){var p,m=8;for(p=0;16>p;++p)m+=a[l+p-32];Sn(m>>4,a,l)}function Fl(a,l){Sn(128,a,l)}function re(a,l,p){return a+2*l+p+2>>2}function Ol(a,l){var p,m=l-32;for(m=new Uint8Array([re(a[m-1],a[m+0],a[m+1]),re(a[m+0],a[m+1],a[m+2]),re(a[m+1],a[m+2],a[m+3]),re(a[m+2],a[m+3],a[m+4])]),p=0;4>p;++p)n(a,l+32*p,m,0,m.length)}function Rl(a,l){var p=a[l-1],m=a[l-1+32],v=a[l-1+64],x=a[l-1+96];Lt(a,l+0,16843009*re(a[l-1-32],p,m)),Lt(a,l+32,16843009*re(p,m,v)),Lt(a,l+64,16843009*re(m,v,x)),Lt(a,l+96,16843009*re(v,x,x))}function Dl(a,l){var p,m=4;for(p=0;4>p;++p)m+=a[l+p-32]+a[l-1+32*p];for(m>>=3,p=0;4>p;++p)r(a,l+32*p,m,4)}function tr(a,l){var p=a[l-1+0],m=a[l-1+32],v=a[l-1+64],x=a[l-1-32],w=a[l+0-32],C=a[l+1-32],k=a[l+2-32],I=a[l+3-32];a[l+0+96]=re(m,v,a[l-1+96]),a[l+1+96]=a[l+0+64]=re(p,m,v),a[l+2+96]=a[l+1+64]=a[l+0+32]=re(x,p,m),a[l+3+96]=a[l+2+64]=a[l+1+32]=a[l+0+0]=re(w,x,p),a[l+3+64]=a[l+2+32]=a[l+1+0]=re(C,w,x),a[l+3+32]=a[l+2+0]=re(k,C,w),a[l+3+0]=re(I,k,C)}function er(a,l){var p=a[l+1-32],m=a[l+2-32],v=a[l+3-32],x=a[l+4-32],w=a[l+5-32],C=a[l+6-32],k=a[l+7-32];a[l+0+0]=re(a[l+0-32],p,m),a[l+1+0]=a[l+0+32]=re(p,m,v),a[l+2+0]=a[l+1+32]=a[l+0+64]=re(m,v,x),a[l+3+0]=a[l+2+32]=a[l+1+64]=a[l+0+96]=re(v,x,w),a[l+3+32]=a[l+2+64]=a[l+1+96]=re(x,w,C),a[l+3+64]=a[l+2+96]=re(w,C,k),a[l+3+96]=re(C,k,k)}function Ml(a,l){var p=a[l-1+0],m=a[l-1+32],v=a[l-1+64],x=a[l-1-32],w=a[l+0-32],C=a[l+1-32],k=a[l+2-32],I=a[l+3-32];a[l+0+0]=a[l+1+64]=x+w+1>>1,a[l+1+0]=a[l+2+64]=w+C+1>>1,a[l+2+0]=a[l+3+64]=C+k+1>>1,a[l+3+0]=k+I+1>>1,a[l+0+96]=re(v,m,p),a[l+0+64]=re(m,p,x),a[l+0+32]=a[l+1+96]=re(p,x,w),a[l+1+32]=a[l+2+96]=re(x,w,C),a[l+2+32]=a[l+3+96]=re(w,C,k),a[l+3+32]=re(C,k,I)}function Bl(a,l){var p=a[l+0-32],m=a[l+1-32],v=a[l+2-32],x=a[l+3-32],w=a[l+4-32],C=a[l+5-32],k=a[l+6-32],I=a[l+7-32];a[l+0+0]=p+m+1>>1,a[l+1+0]=a[l+0+64]=m+v+1>>1,a[l+2+0]=a[l+1+64]=v+x+1>>1,a[l+3+0]=a[l+2+64]=x+w+1>>1,a[l+0+32]=re(p,m,v),a[l+1+32]=a[l+0+96]=re(m,v,x),a[l+2+32]=a[l+1+96]=re(v,x,w),a[l+3+32]=a[l+2+96]=re(x,w,C),a[l+3+64]=re(w,C,k),a[l+3+96]=re(C,k,I)}function No(a,l){var p=a[l-1+0],m=a[l-1+32],v=a[l-1+64],x=a[l-1+96];a[l+0+0]=p+m+1>>1,a[l+2+0]=a[l+0+32]=m+v+1>>1,a[l+2+32]=a[l+0+64]=v+x+1>>1,a[l+1+0]=re(p,m,v),a[l+3+0]=a[l+1+32]=re(m,v,x),a[l+3+32]=a[l+1+64]=re(v,x,x),a[l+3+64]=a[l+2+64]=a[l+0+96]=a[l+1+96]=a[l+2+96]=a[l+3+96]=x}function na(a,l){var p=a[l-1+0],m=a[l-1+32],v=a[l-1+64],x=a[l-1+96],w=a[l-1-32],C=a[l+0-32],k=a[l+1-32],I=a[l+2-32];a[l+0+0]=a[l+2+32]=p+w+1>>1,a[l+0+32]=a[l+2+64]=m+p+1>>1,a[l+0+64]=a[l+2+96]=v+m+1>>1,a[l+0+96]=x+v+1>>1,a[l+3+0]=re(C,k,I),a[l+2+0]=re(w,C,k),a[l+1+0]=a[l+3+32]=re(p,w,C),a[l+1+32]=a[l+3+64]=re(m,p,w),a[l+1+64]=a[l+3+96]=re(v,m,p),a[l+1+96]=re(x,v,m)}function Kr(a,l){var p;for(p=0;8>p;++p)n(a,l+32*p,a,l-32,8)}function zl(a,l){var p;for(p=0;8>p;++p)r(a,l,a[l-1],8),l+=32}function ir(a,l,p){var m;for(m=0;8>m;++m)r(l,p+32*m,a,8)}function jl(a,l){var p,m=8;for(p=0;8>p;++p)m+=a[l+p-32]+a[l-1+32*p];ir(m>>4,a,l)}function ra(a,l){var p,m=4;for(p=0;8>p;++p)m+=a[l+p-32];ir(m>>3,a,l)}function oa(a,l){var p,m=4;for(p=0;8>p;++p)m+=a[l-1+32*p];ir(m>>3,a,l)}function ps(a,l){ir(128,a,l)}function nr(a,l,p){var m=a[l-p],v=a[l+0],x=3*(v-m)+Ul[1020+a[l-2*p]-a[l+p]],w=ws[112+(x+4>>3)];a[l-p]=Ki[255+m+ws[112+(x+3>>3)]],a[l+0]=Ki[255+v-w]}function aa(a,l,p,m){var v=a[l+0],x=a[l+p];return pn[255+a[l-2*p]-a[l-p]]>m||pn[255+x-v]>m}function Lo(a,l,p,m){return 4*pn[255+a[l-p]-a[l+0]]+pn[255+a[l-2*p]-a[l+p]]<=m}function sa(a,l,p,m,v){var x=a[l-3*p],w=a[l-2*p],C=a[l-p],k=a[l+0],I=a[l+p],G=a[l+2*p],at=a[l+3*p];return 4*pn[255+C-k]+pn[255+w-I]>m?0:pn[255+a[l-4*p]-x]<=v&&pn[255+x-w]<=v&&pn[255+w-C]<=v&&pn[255+at-G]<=v&&pn[255+G-I]<=v&&pn[255+I-k]<=v}function Xr(a,l,p,m){var v=2*m+1;for(m=0;16>m;++m)Lo(a,l+m,p,v)&&nr(a,l+m,p)}function la(a,l,p,m){var v=2*m+1;for(m=0;16>m;++m)Lo(a,l+m*p,1,v)&&nr(a,l+m*p,1)}function ds(a,l,p,m){var v;for(v=3;0<v;--v)Xr(a,l+=4*p,p,m)}function gs(a,l,p,m){var v;for(v=3;0<v;--v)la(a,l+=4,p,m)}function rr(a,l,p,m,v,x,w,C){for(x=2*x+1;0<v--;){if(sa(a,l,p,x,w))if(aa(a,l,p,C))nr(a,l,p);else{var k=a,I=l,G=p,at=k[I-2*G],P=k[I-G],K=k[I+0],et=k[I+G],dt=k[I+2*G],rt=27*(yt=Ul[1020+3*(K-P)+Ul[1020+at-et]])+63>>7,mt=18*yt+63>>7,yt=9*yt+63>>7;k[I-3*G]=Ki[255+k[I-3*G]+yt],k[I-2*G]=Ki[255+at+mt],k[I-G]=Ki[255+P+rt],k[I+0]=Ki[255+K-rt],k[I+G]=Ki[255+et-mt],k[I+2*G]=Ki[255+dt-yt]}l+=m}}function or(a,l,p,m,v,x,w,C){for(x=2*x+1;0<v--;){if(sa(a,l,p,x,w))if(aa(a,l,p,C))nr(a,l,p);else{var k=a,I=l,G=p,at=k[I-G],P=k[I+0],K=k[I+G],et=ws[112+(4+(dt=3*(P-at))>>3)],dt=ws[112+(dt+3>>3)],rt=et+1>>1;k[I-2*G]=Ki[255+k[I-2*G]+rt],k[I-G]=Ki[255+at+dt],k[I+0]=Ki[255+P-et],k[I+G]=Ki[255+K-rt]}l+=m}}function ms(a,l,p,m,v,x){rr(a,l,p,1,16,m,v,x)}function Jr(a,l,p,m,v,x){rr(a,l,1,p,16,m,v,x)}function _s(a,l,p,m,v,x){var w;for(w=3;0<w;--w)or(a,l+=4*p,p,1,16,m,v,x)}function u(a,l,p,m,v,x){var w;for(w=3;0<w;--w)or(a,l+=4,1,p,16,m,v,x)}function _(a,l,p,m,v,x,w,C){rr(a,l,v,1,8,x,w,C),rr(p,m,v,1,8,x,w,C)}function F(a,l,p,m,v,x,w,C){rr(a,l,1,v,8,x,w,C),rr(p,m,1,v,8,x,w,C)}function U(a,l,p,m,v,x,w,C){or(a,l+4*v,v,1,8,x,w,C),or(p,m+4*v,v,1,8,x,w,C)}function tt(a,l,p,m,v,x,w,C){or(a,l+4,1,v,8,x,w,C),or(p,m+4,1,v,8,x,w,C)}function xt(){this.ba=new me,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Te,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function St(){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 Bt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function qt(){this.ua=0,this.Wa=new pe,this.vb=new pe,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ct,this.yc=new V}function ne(){this.xb=this.a=0,this.l=new Co,this.ca=new me,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new R,this.Pb=0,this.wd=new R,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new qt,this.ab=0,this.gc=c(4,Bt),this.Oc=0}function fe(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Co,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ke(a,l,p,m,v,x,w){for(a=a==null?0:a[l+0],l=0;l<w;++l)v[x+l]=a+p[m+l]&255,a=v[x+l]}function Je(a,l,p,m,v,x,w){var C;if(a==null)ke(null,null,p,m,v,x,w);else for(C=0;C<w;++C)v[x+C]=a[l+C]+p[m+C]&255}function pi(a,l,p,m,v,x,w){if(a==null)ke(null,null,p,m,v,x,w);else{var C,k=a[l+0],I=k,G=k;for(C=0;C<w;++C)I=G+(k=a[l+C])-I,G=p[m+C]+(-256&I?0>I?0:255:I)&255,I=k,v[x+C]=G}}function $e(a,l,p,m){var v=l.width,x=l.o;if(i(a!=null&&l!=null),0>p||0>=m||p+m>x)return null;if(!a.Cc){if(a.ga==null){var w;if(a.ga=new fe,(w=a.ga==null)||(w=l.width*l.o,i(a.Gb.length==0),a.Gb=o(w),a.Uc=0,a.Gb==null?w=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,w=1),w=!w),!w){w=a.ga;var C=a.Fa,k=a.P,I=a.qc,G=a.mb,at=a.nb,P=k+1,K=I-1,et=w.l;if(i(C!=null&&G!=null&&l!=null),Pr[0]=null,Pr[1]=ke,Pr[2]=Je,Pr[3]=pi,w.ca=G,w.tb=at,w.c=l.width,w.i=l.he
41ight,i(0<w.c&&0<w.i),1>=I)l=0;else if(w.$a=3&C[k+0],w.Z=C[k+0]>>2&3,w.Lc=C[k+0]>>4&3,k=C[k+0]>>6&3,0>w.$a||1<w.$a||4<=w.Z||1<w.Lc||k)l=0;else if(et.put=te,et.ac=Tn,et.bc=Xn,et.ma=w,et.width=l.width,et.height=l.height,et.Da=l.Da,et.v=l.v,et.va=l.va,et.j=l.j,et.o=l.o,w.$a)t:{i(w.$a==1),l=Gr();e:for(;;){if(l==null){l=0;break t}if(i(w!=null),w.mc=l,l.c=w.c,l.i=w.i,l.l=w.l,l.l.ma=w,l.l.width=w.c,l.l.height=w.i,l.a=0,_t(l.m,C,P,K),!On(w.c,w.i,1,l,null)||(l.ab==1&&l.gc[0].hc==3&&yn(l.s)?(w.ic=1,C=l.c*l.i,l.Ta=null,l.Ua=0,l.V=o(C),l.Ba=0,l.V==null?(l.a=1,l=0):l=1):(w.ic=0,l=Wr(l,w.c)),!l))break e;l=1;break t}w.mc=null,l=0}else l=K>=w.c*w.i;w=!l}if(w)return null;a.ga.Lc!=1?a.Ga=0:m=x-p}i(a.ga!=null),i(p+m<=x);t:{if(l=(C=a.ga).c,x=C.l.o,C.$a==0){if(P=a.rc,K=a.Vc,et=a.Fa,k=a.P+1+p*l,I=a.mb,G=a.nb+p*l,i(k<=a.P+a.qc),C.Z!=0)for(i(Pr[C.Z]!=null),w=0;w<m;++w)Pr[C.Z](P,K,et,k,I,G,l),P=I,K=G,G+=l,k+=l;else for(w=0;w<m;++w)n(I,G,et,k,l),P=I,K=G,G+=l,k+=l;a.rc=P,a.Vc=K}else{if(i(C.mc!=null),l=p+m,i((w=C.mc)!=null),i(l<=w.i),w.C>=l)l=1;else if(C.ic||Cn(),C.ic){C=w.V,P=w.Ba,K=w.c;var dt=w.i,rt=(et=1,k=w.$/K,I=w.$%K,G=w.m,at=w.s,w.$),mt=K*dt,yt=K*l,Nt=at.wc,Ct=rt<yt?Ai(at,I,k):null;i(rt<=mt),i(l<=dt),i(yn(at));e:for(;;){for(;!G.h&&rt<yt;){if(I&Nt||(Ct=Ai(at,I,k)),i(Ct!=null),nt(G),256>(dt=Qe(Ct.G[0],Ct.H[0],G)))C[P+rt]=dt,++rt,++I>=K&&(I=0,++k<=l&&!(k%16)&&wn(w,k));else{if(!(280>dt)){et=0;break e}dt=an(dt-256,G);var Vt,Rt=Qe(Ct.G[4],Ct.H[4],G);if(nt(G),!(rt>=(Rt=sn(K,Rt=an(Rt,G)))&&mt-rt>=dt)){et=0;break e}for(Vt=0;Vt<dt;++Vt)C[P+rt+Vt]=C[P+rt+Vt-Rt];for(rt+=dt,I+=dt;I>=K;)I-=K,++k<=l&&!(k%16)&&wn(w,k);rt<yt&&I&Nt&&(Ct=Ai(at,I,k))}i(G.h==$(G))}wn(w,k>l?l:k);break e}!et||G.h&&rt<mt?(et=0,w.a=G.h?5:3):w.$=rt,l=et}else l=bn(w,w.V,w.Ba,w.c,w.i,l,wo);if(!l){m=0;break t}}p+m>=x&&(a.Cc=1),m=1}if(!m)return null;if(a.Cc&&((m=a.ga)!=null&&(m.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+p*v}function mi(a,l,p,m,v,x){for(;0<v--;){var w,C=a,k=l+(p?1:0),I=a,G=l+(p?0:3);for(w=0;w<m;++w){var at=I[G+4*w];at!=255&&(at*=32897,C[k+4*w+0]=C[k+4*w+0]*at>>23,C[k+4*w+1]=C[k+4*w+1]*at>>23,C[k+4*w+2]=C[k+4*w+2]*at>>23)}l+=x}}function di(a,l,p,m,v){for(;0<m--;){var x;for(x=0;x<p;++x){var w=a[l+2*x+0],C=15&(I=a[l+2*x+1]),k=4369*C,I=(240&I|I>>4)*k>>16;a[l+2*x+0]=(240&w|w>>4)*k>>16&240|(15&w|w<<4)*k>>16>>4&15,a[l+2*x+1]=240&I|C}l+=v}}function ki(a,l,p,m,v,x,w,C){var k,I,G=255;for(I=0;I<v;++I){for(k=0;k<m;++k){var at=a[l+k];x[w+4*k]=at,G&=at}l+=p,w+=C}return G!=255}function ar(a,l,p,m,v){var x;for(x=0;x<v;++x)p[m+x]=a[l+x]>>8}function Cn(){ya=mi,xf=di,yf=ki,wf=ar}function sr(a,l,p){M[a]=function(m,v,x,w,C,k,I,G,at,P,K,et,dt,rt,mt,yt,Nt){var Ct,Vt=Nt-1>>1,Rt=C[k+0]|I[G+0]<<16,ue=at[P+0]|K[et+0]<<16;i(m!=null);var zt=3*Rt+ue+131074>>2;for(l(m[v+0],255&zt,zt>>16,dt,rt),x!=null&&(zt=3*ue+Rt+131074>>2,l(x[w+0],255&zt,zt>>16,mt,yt)),Ct=1;Ct<=Vt;++Ct){var we=C[k+Ct]|I[G+Ct]<<16,vi=at[P+Ct]|K[et+Ct]<<16,he=Rt+we+ue+vi+524296,jt=he+2*(we+ue)>>3;zt=jt+Rt>>1,Rt=(he=he+2*(Rt+vi)>>3)+we>>1,l(m[v+2*Ct-1],255&zt,zt>>16,dt,rt+(2*Ct-1)*p),l(m[v+2*Ct-0],255&Rt,Rt>>16,dt,rt+(2*Ct-0)*p),x!=null&&(zt=he+ue>>1,Rt=jt+vi>>1,l(x[w+2*Ct-1],255&zt,zt>>16,mt,yt+(2*Ct-1)*p),l(x[w+2*Ct+0],255&Rt,Rt>>
4116,mt,yt+(2*Ct+0)*p)),Rt=we,ue=vi}1&Nt||(zt=3*Rt+ue+131074>>2,l(m[v+Nt-1],255&zt,zt>>16,dt,rt+(Nt-1)*p),x!=null&&(zt=3*ue+Rt+131074>>2,l(x[w+Nt-1],255&zt,zt>>16,mt,yt+(Nt-1)*p)))}}function ca(){dn[bs]=Ud,dn[Ss]=Tf,dn[Nf]=qd,dn[Cs]=Ff,dn[As]=Of,dn[ql]=Rf,dn[Lf]=Hd,dn[Hl]=Tf,dn[Vl]=Ff,dn[ks]=Of,dn[$l]=Rf}function Eo(a){return a&~Vd?0>a?0:255:a>>Df}function wr(a,l){return Eo((19077*a>>8)+(26149*l>>8)-14234)}function Qr(a,l,p){return Eo((19077*a>>8)-(6419*l>>8)-(13320*p>>8)+8708)}function to(a,l){return Eo((19077*a>>8)+(33050*l>>8)-17685)}function br(a,l,p,m,v){m[v+0]=wr(a,p),m[v+1]=Qr(a,l,p),m[v+2]=to(a,l)}function Ni(a,l,p,m,v){m[v+0]=to(a,l),m[v+1]=Qr(a,l,p),m[v+2]=wr(a,p)}function eo(a,l,p,m,v){var x=Qr(a,l,p);l=x<<3&224|to(a,l)>>3,m[v+0]=248&wr(a,p)|x>>5,m[v+1]=l}function io(a,l,p,m,v){var x=240&to(a,l)|15;m[v+0]=240&wr(a,p)|Qr(a,l,p)>>4,m[v+1]=x}function fa(a,l,p,m,v){m[v+0]=255,br(a,l,p,m,v+1)}function ua(a,l,p,m,v){Ni(a,l,p,m,v),m[v+3]=255}function Bi(a,l,p,m,v){br(a,l,p,m,v),m[v+3]=255}function lr(a,l,p){M[a]=function(m,v,x,w,C,k,I,G,at){for(var P=G+(-2&at)*p;G!=P;)l(m[v+0],x[w+0],C[k+0],I,G),l(m[v+1],x[w+0],C[k+0],I,G+p),v+=2,++w,++k,G+=2*p;1&at&&l(m[v+0],x[w+0],C[k+0],I,G)}}function Io(a,l,p){return p==0?a==0?l==0?6:5:l==0?4:0:p}function vs(a,l,p,m,v){switch(a>>>30){case 3:ao(l,p,m,v,0);break;case 2:hn(l,p,m,v);break;case 1:Fe(l,p,m,v)}}function un(a,l){var p,m,v=l.M,x=l.Nb,w=a.oc,C=a.pc+40,k=a.oc,I=a.pc+584,G=a.oc,at=a.pc+600;for(p=0;16>p;++p)w[C+32*p-1]=129;for(p=0;8>p;++p)k[I+32*p-1]=129,G[at+32*p-1]=129;for(0<v?w[C-1-32]=k[I-1-32]=G[at-1-32]=129:(r(w,C-32-1,127,21),r(k,I-32-1,127,9),r(G,at-32-1,127,9)),m=0;m<a.za;++m){var P=l.ya[l.aa+m];if(0<m){for(p=-1;16>p;++p)n(w,C+32*p-4,w,C+32*p+12,4);for(p=-1;8>p;++p)n(k,I+32*p-4,k,I+32*p+4,4),n(G,at+32*p-4,G,at+32*p+4,4)}var K=a.Gd,et=a.Hd+m,dt=P.ad,rt=P.Hc;if(0<v&&(n(w,C-32,K[et].y,0,16),n(k,I-32,K[et].f,0,8),n(G,at-32,K[et].ea,0,8)),P.Za){var mt=w,yt=C-32+16;for(0<v&&(m>=a.za-1?r(mt,yt,K[et].y[15],4):n(mt,yt,K[et+1].y,0,4)),p=0;4>p;p++)mt[yt+128+p]=mt[yt+256+p]=mt[yt+384+p]=mt[yt+0+p];for(p=0;16>p;++p,rt<<=2)mt=w,yt=C+Bf[p],An[P.Ob[p]](mt,yt),vs(rt,dt,16*+p,mt,yt)}else if(mt=Io(m,v,P.Ob[0]),Ir[mt](w,C),rt!=0)for(p=0;16>p;++p,rt<<=2)vs(rt,dt,16*+p,w,C+Bf[p]);for(p=P.Gc,mt=Io(m,v,P.Dd),ur[mt](k,I),ur[mt](G,at),rt=dt,mt=k,yt=I,255&(P=0|p)&&(170&P?jn(rt,256,mt,yt):Be(rt,256,mt,yt)),P=G,rt=at,255&(p>>=8)&&(170&p?jn(dt,320,P,rt):Be(dt,320,P,rt)),v<a.Ub-1&&(n(K[et].y,0,w,C+480,16),n(K[et].f,0,k,I+224,8),n(K[et].ea,0,G,at+224,8)),p=8*x*a.B,K=a.sa,et=a.ta+16*m+16*x*a.R,dt=a.qa,P=a.ra+8*m+p,rt=a.Ha,mt=a.Ia+8*m+p,p=0;16>p;++p)n(K,et+p*a.R,w,C+32*p,16);for(p=0;8>p;++p)n(dt,P+p*a.B,k,I+32*p,8),n(rt,mt+p*a.B,G,at+32*p,8)}}function no(a,l,p,m,v,x,w,C,k){var I=[0],G=[0],at=0,P=k!=null?k.kd:0,K=k??new St;if(a==null||12>p)return 7;K.data=a,K.w=l,K.ha=p,l=[l],p=[p],K.gb=[K.gb];t:{var et=l,dt=p,rt=K.gb;if(i(a!=null),i(dt!=null),i(rt!=null),rt[0]=0,12<=dt[0]&&!t(a,et[0],"RIFF")){if(t(a,et[0]+8,"WEBP")){rt=3;break t}var mt=Gt(a,et[0]+4);if(12>mt||4294967286<mt){rt=3;break t}if(P&&mt>dt[0]-8){rt=7;break t}rt[0]=mt,et[0]+=12,dt[0]-=12}rt=0}if(rt!=0)return rt;for(mt=0<K.gb[0],p=p[0];;){t:{var yt=a;dt=l,rt=p;var Nt=I,Ct=G,Vt=et=[0];if((zt=at=[at])[0]=0,8>rt[0])rt=7;else{if(!t(yt,dt[0],"VP8X")){if(Gt(yt,dt[0]+4)!=10){rt=3;break t}if(18>rt[0]){rt=7;break t}var Rt=Gt(yt,dt[0]+8),ue=1+Tt(yt,dt[0]+12);if(2147483648<=ue*(yt=1+Tt(yt,dt[0]+15))){rt=3;break t}Vt!=null&&(Vt[0]=Rt),Nt!=null&&(Nt[0]=ue),Ct!=null&&(Ct[0]=yt),dt[0]+=18,rt[0]-=18,zt[0]=1}rt=0}}if(at=at[0],et=et[0],rt!=0)return rt;if(dt=!!(2&et),!mt&&at)return 3;if(x!=null&&(x[0]=!!(16&et)),w!=null&&(w[0]=dt),C!=null&&(C[0]=0),w=I[0],et=G[0],at&&dt&&k==null){rt=0;break}if(4>p){rt=7;break}if(mt&&at||!mt&&!at&&!t(a,l[0],"ALPH")){p=[p],K.na=[K.na],K.P=[K.P],K.Sa=[K.Sa];t:{Rt=a,rt=l,mt=p;var zt=K.gb;Nt=K.na,Ct=K.P,Vt=K.Sa,ue=22,i(Rt!=null),i(mt!=null),yt=rt[0];var we=mt[0];for(i(Nt!=null),i(Vt!=null),Nt[0]=null,Ct[0]=null,Vt[0]=0;;){if(rt[0]=yt,mt[0]=we,8>we){rt=7;break t}var vi=Gt(Rt,yt+4);if(4294967286<vi){rt=3;break t}var he=8+vi+1&-2;if(ue+=he,0<zt&&ue>zt){rt=3;break t}if(!t(Rt,yt,"VP8 ")||!t(Rt,yt,"VP8L")){rt=0;break t}if(we[0]<he){rt=7;break t}
41t(Rt,yt,"ALPH")||(Nt[0]=Rt,Ct[0]=yt+8,Vt[0]=vi),yt+=he,we-=he}}if(p=p[0],K.na=K.na[0],K.P=K.P[0],K.Sa=K.Sa[0],rt!=0)break}p=[p],K.Ja=[K.Ja],K.xa=[K.xa];t:if(zt=a,rt=l,mt=p,Nt=K.gb[0],Ct=K.Ja,Vt=K.xa,Rt=rt[0],yt=!t(zt,Rt,"VP8 "),ue=!t(zt,Rt,"VP8L"),i(zt!=null),i(mt!=null),i(Ct!=null),i(Vt!=null),8>mt[0])rt=7;else{if(yt||ue){if(zt=Gt(zt,Rt+4),12<=Nt&&zt>Nt-12){rt=3;break t}if(P&&zt>mt[0]-8){rt=7;break t}Ct[0]=zt,rt[0]+=8,mt[0]-=8,Vt[0]=ue}else Vt[0]=5<=mt[0]&&zt[Rt+0]==47&&!(zt[Rt+4]>>5),Ct[0]=mt[0];rt=0}if(p=p[0],K.Ja=K.Ja[0],K.xa=K.xa[0],l=l[0],rt!=0)break;if(4294967286<K.Ja)return 3;if(C==null||dt||(C[0]=K.xa?2:1),w=[w],et=[et],K.xa){if(5>p){rt=7;break}C=w,P=et,dt=x,a==null||5>p?a=0:5<=p&&a[l+0]==47&&!(a[l+4]>>5)?(mt=[0],zt=[0],Nt=[0],_t(Ct=new R,a,l,p),Jn(Ct,mt,zt,Nt)?(C!=null&&(C[0]=mt[0]),P!=null&&(P[0]=zt[0]),dt!=null&&(dt[0]=Nt[0]),a=1):a=0):a=0}else{if(10>p){rt=7;break}C=et,a==null||10>p||!ss(a,l+3,p-3)?a=0:(P=a[l+0]|a[l+1]<<8|a[l+2]<<16,dt=16383&(a[l+7]<<8|a[l+6]),a=16383&(a[l+9]<<8|a[l+8]),1&P||3<(P>>1&7)||!(P>>4&1)||P>>5>=K.Ja||!dt||!a?a=0:(w&&(w[0]=dt),C&&(C[0]=a),a=1))}if(!a||(w=w[0],et=et[0],at&&(I[0]!=w||G[0]!=et)))return 3;k!=null&&(k[0]=K,k.offset=l-k.w,i(4294967286>l-k.w),i(k.offset==k.ha-p));break}return rt==0||rt==7&&at&&k==null?(x!=null&&(x[0]|=K.na!=null&&0<K.na.length),m!=null&&(m[0]=w),v!=null&&(v[0]=et),0):rt}function ha(a,l,p){var m=l.width,v=l.height,x=0,w=0,C=m,k=v;if(l.Da=a!=null&&0<a.Da,l.Da&&(C=a.cd,k=a.bd,x=a.v,w=a.j,11>p||(x&=-2,w&=-2),0>x||0>w||0>=C||0>=k||x+C>m||w+k>v))return 0;if(l.v=x,l.j=w,l.va=x+C,l.o=w+k,l.U=C,l.T=k,l.da=a!=null&&0<a.da,l.da){if(!Xt(C,k,p=[a.ib],x=[a.hb]))return 0;l.ib=p[0],l.hb=x[0]}return l.ob=a!=null&&a.ob,l.Kb=a==null||!a.Sd,l.da&&(l.ob=l.ib<3*m/4&&l.hb<3*v/4,l.Kb=0),1}function pa(a){if(a==null)return 2;if(11>a.S){var l=a.f.RGBA;l.fb+=(a.height-1)*l.A,l.A=-l.A}else l=a.f.kb,a=a.height,l.O+=(a-1)*l.fa,l.fa=-l.fa,l.N+=(a-1>>1)*l.Ab,l.Ab=-l.Ab,l.W+=(a-1>>1)*l.Db,l.Db=-l.Db,l.F!=null&&(l.J+=(a-1)*l.lb,l.lb=-l.lb);return 0}function Sr(a,l,p,m){if(m==null||0>=a||0>=l)return 2;if(p!=null){if(p.Da){var v=p.cd,x=p.bd,w=-2&p.v,C=-2&p.j;if(0>w||0>C||0>=v||0>=x||w+v>a||C+x>l)return 2;a=v,l=x}if(p.da){if(!Xt(a,l,v=[p.ib],x=[p.hb]))return 2;a=v[0],l=x[0]}}m.width=a,m.height=l;t:{var k=m.width,I=m.height;if(a=m.S,0>=k||0>=I||!(a>=bs&&13>a))a=2;else{if(0>=m.Rd&&m.sd==null){w=x=v=l=0;var G=(C=k*zf[a])*I;if(11>a||(x=(I+1)/2*(l=(k+1)/2),a==12&&(w=(v=k)*I)),(I=o(G+2*x+w))==null){a=1;break t}m.sd=I,11>a?((k=m.f.RGBA).eb=I,k.fb=0,k.A=C,k.size=G):((k=m.f.kb).y=I,k.O=0,k.fa=C,k.Fd=G,k.f=I,k.N=0+G,k.Ab=l,k.Cd=x,k.ea=I,k.W=0+G+x,k.Db=l,k.Ed=x,a==12&&(k.F=I,k.J=0+G+2*x),k.Tc=w,k.lb=v)}if(l=1,v=m.S,x=m.width,w=m.height,v>=bs&&13>v)if(11>v)a=m.f.RGBA,l&=(C=Math.abs(a.A))*(w-1)+x<=a.size,l&=C>=x*zf[v],l&=a.eb!=null;else{a=m.f.kb,C=(x+1)/2,G=(w+1)/2,k=Math.abs(a.fa),I=Math.abs(a.Ab);var at=Math.abs(a.Db),P=Math.abs(a.lb),K=P*(w-1)+x;l&=k*(w-1)+x<=a.Fd,l&=I*(G-1)+C<=a.Cd,l=(l&=at*(G-1)+C<=a.Ed)&k>=x&I>=C&at>=C,l&=a.y!=null,l&=a.f!=null,l&=a.ea!=null,v==12&&(l&=P>=x,l&=K<=a.Tc,l&=a.F!=null)}else l=0;a=l?0:2}}return a!=0||p!=null&&p.fd&&(a=pa(m)),a}var ro=64,Zi=[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],Yi=24,Cr=32,cr=8,Ar=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Dt("Predictor0","PredictorAdd0"),M.Predictor0=function(){return 4278190080},M.Predictor1=function(a){return a},M.Predictor2=function(a,l,p){return l[p+0]},M.Predictor3=function(a,l,p){return l[p+1]},M.Predictor4=function(a,l,p){return l[p-1]},M.Predictor5=function(a,l,p){return Wt(Wt(a,l[p+1]),l[p+0])},M.Predictor6=function(a,l,p){return Wt(a,l[p-1])},M.Predictor7=function(a,l,p){return Wt(a,l[p+0])},M.Predictor8=function(a,l,p){return Wt(l[p-1],l[p+0])},M.Predictor9=function(a,l,p){return Wt(l[p+0],l[p+1])},M.Predictor10=function(a,l,p){return Wt(Wt(a,l[p-1]),Wt(l[p+0],l[p+1]))},M.Predictor11=function(a,l,p){var m=l[p+0];return 0>=ae(m>>24&255,a>>
vendor: 4,126 bytes, line 41
4124&255,(l=l[p-1])>>24&255)+ae(m>>16&255,a>>16&255,l>>16&255)+ae(m>>8&255,a>>8&255,l>>8&255)+ae(255&m,255&a,255&l)?m:a},M.Predictor12=function(a,l,p){var m=l[p+0];return(Pe((a>>24&255)+(m>>24&255)-((l=l[p-1])>>24&255))<<24|Pe((a>>16&255)+(m>>16&255)-(l>>16&255))<<16|Pe((a>>8&255)+(m>>8&255)-(l>>8&255))<<8|Pe((255&a)+(255&m)-(255&l)))>>>0},M.Predictor13=function(a,l,p){var m=l[p-1];return(ve((a=Wt(a,l[p+0]))>>24&255,m>>24&255)<<24|ve(a>>16&255,m>>16&255)<<16|ve(a>>8&255,m>>8&255)<<8|ve(255&a,255&m))>>>0};var da=M.PredictorAdd0;M.PredictorAdd1=ye,Dt("Predictor2","PredictorAdd2"),Dt("Predictor3","PredictorAdd3"),Dt("Predictor4","PredictorAdd4"),Dt("Predictor5","PredictorAdd5"),Dt("Predictor6","PredictorAdd6"),Dt("Predictor7","PredictorAdd7"),Dt("Predictor8","PredictorAdd8"),Dt("Predictor9","PredictorAdd9"),Dt("Predictor10","PredictorAdd10"),Dt("Predictor11","PredictorAdd11"),Dt("Predictor12","PredictorAdd12"),Dt("Predictor13","PredictorAdd13");var Po=M.PredictorAdd2;$t("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),$t("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var ri,xs=M.ColorIndexInverseTransform,Bn=M.MapARGB,zn=M.VP8LColorIndexInverseTransformAlpha,ga=M.MapAlpha,ma=M.VP8LPredictorsAdd=[];ma.length=16,(M.VP8LPredictors=[]).length=16,(M.VP8LPredictorsAdd_C=[]).length=16,(M.VP8LPredictors_C=[]).length=16;var _a,va,kr,Nr,Lr,oo,Er,ao,hn,jn,Fe,Be,oi,_i,fr,xa,To,ys,pf,df,gf,mf,_f,vf,ya,xf,yf,wf,bf=o(511),Sf=o(2041),Cf=o(225),Af=o(767),kf=0,Ul=Sf,ws=Cf,Ki=Af,pn=bf,bs=0,Ss=1,Nf=2,Cs=3,As=4,ql=5,Lf=6,Hl=7,Vl=8,ks=9,$l=10,Nd=[2,3,7],Ld=[3,3,11],Ef=[280,256,256,256,40],Ed=[0,1,1,1,0],Id=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Pd=[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],Td=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Fd=8,Gl=[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],Wl=[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],wa=null,Od=[[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]],Rd=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],If=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Dd=[[[[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,25
415,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Md=[[[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,25
415,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Bd=[[[[255,255,255,255,255,255,255,255,255,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
415,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]]]],zd=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ir=[],An=[],ur=[],jd=1,Pf=2,Pr=[],dn=[];sr("UpsampleRgbLinePair",br,3),sr("UpsampleBgrLinePair",Ni,3),sr("UpsampleRgbaLinePair",Bi,4),sr("UpsampleBgraLinePair",ua,4),sr("UpsampleArgbLinePair",fa,4),sr("UpsampleRgba4444LinePair",io,2),sr("UpsampleRgb565LinePair",eo,2);var Ud=M.UpsampleRgbLinePair,qd=M.UpsampleBgrLinePair,Tf=M.UpsampleRgbaLinePair,Ff=M.UpsampleBgraLinePair,Of=M.UpsampleArgbLinePair,Rf=M.UpsampleRgba4444LinePair,Hd=M.UpsampleRgb565LinePair,Ns=16,Ls=1<<Ns-1,ba=-227,Zl=482,Df=6,Vd=(256<<Df)-1,Mf=0,$d=o(256),Gd=o(256),Wd=o(256),Zd=o(256),Yd=o(Zl-ba),Kd=o(Zl-ba);lr("YuvToRgbRow",br,3),lr("YuvToBgrRow",Ni,3),lr("YuvToRgbaRow",Bi,4),lr("YuvToBgraRow",ua,4),lr("YuvToArgbRow",fa,4),lr("YuvToRgba4444Row",io,2),lr("YuvToRgb565Row",eo,2);var Bf=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Es=[0,2,8],Xd=[8,7,6,4,4,2,2,2,1,1,1,1],Jd=1;this.WebPDecodeRGBA=function(a,l,p,m,v){var x=Ss,w=new xt,C=new me;w.ba=C,C.S=x,C.width=[C.width],C.height=[C.height];var k=C.width,I=C.height,G=new Qt;if(G==null||a==null)var at=2;else i(G!=null),at=no(a,l,p,G.width,G.height,G.Pd,G.Qd,G.format,null);if(at!=0?k=0:(k!=null&&(k[0]=G.width[0]),I!=null&&(I[0]=G.height[0]),k=1),k){C.width=C.width[0],C.height=C.height[0],m!=null&&(m[0]=C.width),v!=null&&(v[0]=C.height);t:{if(m=new Co,(v=new St).data=a,v.w=l,v.ha=p,v.kd=1,l=[0],i(v!=null),((a=no(v.data,v.w,v.ha,null,null,null,l,null,v))==0||a==7)&&l[0]&&(a=4),(l=a)==0){if(i(w!=null),m.data=v.data,m.w=v.w+v.offset,m.ha=v.ha-v.offset,m.put=te,m.ac=Tn,m.bc=Xn,m.ma=w,v.xa){if((a=Gr())==null){w=1;break t}if((function(P,K){var et=[0],dt=[0],rt=[0];e:for(;;){if(P==null)return 0;if(K==null)return P.a=2,0;if(P.l=K,P.a=0,_t(P.m,K.data,K.w,K.ha),!Jn(P.m,et,dt,rt)){P.a=3;break e}if(P.xb=Pf,K.width=et[0],K.height=dt[0],!On(et[0],dt[0],1,P,null))break e;return 1}return i(P.a!=0),0})(a,m)){if(m=(l=Sr(m.width,m.height,w.Oa,w.ba))==0){e:{m=a;i:for(;;){if(m==null){m=0;break e}if(i(m.s.yc!=null),i(m.s.Ya!=null),i(0<m.s.Wb),i((p=m.l)!=null),i((v=p.ma)!=null),m.xb!=0){if(m.ca=v.ba,m.tb=v.tb,i(m.ca!=null),!ha(v.Oa,p,Cs)){m.a=2;break i}if(!Wr(m,p.width)||p.da)break i;if((p.da||ee(m.ca.S))&&Cn(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&Cn()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!L(m.s.vb,m.s.Wa.Xa)){m.a=1;break i}m.xb=0}if(!bn(m,m.V,m.Ba,m.c,m.i,p.o,yr))break i;v.Dc=m.Ma,m=1;break e}i(m.a!=0),m=0}m=!m}m&&(l=a.a)}else l=a.a}else{if((a=new kl)==null){w=1;break t}if(a.Fa=v.na,a.P=v.P,a.qc=v.Sa,Dn(a,m)){if((l=Sr(m.width,m.height,w.Oa,w.ba))==0){if(a.Aa=0,p=w.Oa,i((v=a)!=null),p!=null){if(0<(k=0>(k=p.Md)?0:100<k?255:255*k/100)){for(I=G=0;4>I;++I)12>(at=v.pb[I]).lc&&(at.ia=k*Xd[0>at.lc?0:at.lc]>>3),G|=at.ia;G&&(alert("todo:VP8InitRandom"),v.ia=1)}v.Ga=p.Id,100<v.Ga?v.Ga=100:0>v.Ga&&(v.Ga=0)}(function(P,K){if(P==null)return 0;if(K==null)return hi(P,2,"NULL VP8Io parameter in VP8Decode().");if(!P.cb&&!Dn(P,K))return 0;if(i(P.cb),K.ac==null||K.ac(K)){K.ob&&(P.L=0);var et=Es[P.L];if(P.L==2?(P.yb=0,P.zb=0):(P.yb=K.v-et>>4,P.zb=K.j-et>>4,0>P.yb&&(P.yb=0),0>P.zb&&(P.zb=0)),P.Va=K.o+15+et>>4,P.Hb=K.va+15+et>>4,P.Hb>P.za&&(P.Hb=P.za),P.Va>P.Ub&&(P.Va=P.Ub),0<P.L){var dt=P.ed;for(et=0;4>et;++et){var rt;if(P.Qa.Cb){var mt=P.Qa.Lb[et];P.Qa.Fb||(mt+=dt.Tb)}else mt=dt.Tb;for(rt=0;1>=rt;++rt){var yt=P.gd[et][rt],Nt=mt;if(dt.Pc&&(Nt+=dt.vd[0],rt&&(Nt+=dt.od[0])),0<(Nt=0>Nt?0:63<Nt?63:Nt)){var Ct=Nt;0<dt.wb&&(Ct=4<dt.wb?Ct>>2:Ct>>1)>9-dt.wb&&(Ct=9-dt.wb),1>Ct&&(Ct=1),yt.dd=Ct,yt.tc=2*Nt+Ct,yt.ld=40<=Nt?2:15<=Nt?1:0}else yt.tc=0;yt.La=rt}}}et=0}else hi(P,6,"Frame setup failed"),et=P.a;if(et=et==0){if(et){P.$c=0,0<P.Aa||(P.Ic=Jd);e:{et=P.Ic,dt=4*(Ct=P.za);var Vt=32*Ct,Rt=Ct+1,ue=0<P.L?Ct*(0<P.Aa?2:1):0,zt=(P.Aa==2?2:1)*Ct;if((yt=dt+832+(rt=3*(16*et+Es[P.L])/2*Vt)+(mt=P.Fa!=null&&0<P.Fa.length?P.Kc.c*P.Kc.i:0))!=yt)et=0;else{if(yt>P.Vb){if(P.Vb=0,P.Ec=o(yt),P.Fc=0,P.Ec==null){et=hi(P,1,"no memory during frame initialization.");break e}P.Vb=yt}yt=P.Ec,Nt=P.Fc,P.Ac=yt,P.Bc=Nt,Nt+=dt,P.Gd=c(Vt,os),P.Hd=0,P.rb=c(Rt+1,Qo),P.sb=1,P.wa=ue?c(ue,cn):null,P.Y=0,P.D.Nb=0,P.D.wa=P.wa,P.D.Y=P.Y,0<P.Aa&&(P.D.Y+=Ct),i(!0),P.oc=yt,P.pc=Nt,Nt+=832,P.ya=c(zt,ta),P.aa=0,P.D.ya=P.ya,P.D.aa=P.aa,P.Aa==2&&(P.D.aa+=Ct),P.R=16*Ct,P.B=8*Ct,Ct=(Vt=Es[P.L])*P.R,Vt=Vt/2*P.B,P.sa=yt,P.ta=Nt+Ct,P.qa=P.sa,P.ra=P.ta+16*et*P.R+Vt,P.Ha=P.qa,P.Ia=P.ra+8*et*P.B+Vt,P.$c=0,Nt+=rt,P.mb=mt?yt:null,P.nb=mt?Nt:null,i(Nt+mt<=P.Fc+P.Vb),ls(P),r(P.A
41c,P.Bc,0,dt),et=1}}if(et){if(K.ka=0,K.y=P.sa,K.O=P.ta,K.f=P.qa,K.N=P.ra,K.ea=P.Ha,K.Vd=P.Ia,K.fa=P.R,K.Rc=P.B,K.F=null,K.J=0,!kf){for(et=-255;255>=et;++et)bf[255+et]=0>et?-et:et;for(et=-1020;1020>=et;++et)Sf[1020+et]=-128>et?-128:127<et?127:et;for(et=-112;112>=et;++et)Cf[112+et]=-16>et?-16:15<et?15:et;for(et=-255;510>=et;++et)Af[255+et]=0>et?0:255<et?255:et;kf=1}Er=ko,ao=Ll,jn=Mn,Fe=fs,Be=us,hn=Nl,oi=ms,_i=Jr,fr=_,xa=F,To=_s,ys=u,pf=U,df=tt,gf=Xr,mf=la,_f=ds,vf=gs,An[0]=Dl,An[1]=El,An[2]=Ol,An[3]=Rl,An[4]=tr,An[5]=Ml,An[6]=er,An[7]=Bl,An[8]=na,An[9]=No,Ir[0]=Tl,Ir[1]=Pl,Ir[2]=ea,Ir[3]=hs,Ir[4]=Yr,Ir[5]=ia,Ir[6]=Fl,ur[0]=jl,ur[1]=Il,ur[2]=Kr,ur[3]=zl,ur[4]=oa,ur[5]=ra,ur[6]=ps,et=1}else et=0}et&&(et=(function(we,vi){for(we.M=0;we.M<we.Va;++we.M){var he,jt=we.Jc[we.M&we.Xb],It=we.m,ai=we;for(he=0;he<ai.za;++he){var le=It,Se=ai,We=Se.Ac,Li=Se.Bc+4*he,zi=Se.zc,ti=Se.ya[Se.aa+he];if(Se.Qa.Bb?ti.$b=wt(le,Se.Pa.jb[0])?2+wt(le,Se.Pa.jb[2]):wt(le,Se.Pa.jb[1]):ti.$b=0,Se.kc&&(ti.Ad=wt(le,Se.Bd)),ti.Za=!wt(le,145)+0,ti.Za){var Fi=ti.Ob,ji=0;for(Se=0;4>Se;++Se){var xi,Ne=zi[0+Se];for(xi=0;4>xi;++xi){Ne=Md[We[Li+xi]][Ne];for(var Oe=If[wt(le,Ne[0])];0<Oe;)Oe=If[2*Oe+wt(le,Ne[Oe])];Ne=-Oe,We[Li+xi]=Ne}n(Fi,ji,We,Li,4),ji+=4,zi[0+Se]=Ne}}else Ne=wt(le,156)?wt(le,128)?1:3:wt(le,163)?2:0,ti.Ob[0]=Ne,r(We,Li,Ne,4),r(zi,0,Ne,4);ti.Dd=wt(le,142)?wt(le,114)?wt(le,183)?1:3:2:0}if(ai.m.Ka)return hi(we,7,"Premature end-of-partition0 encountered.");for(;we.ja<we.za;++we.ja){if(ai=jt,le=(It=we).rb[It.sb-1],We=It.rb[It.sb+It.ja],he=It.ya[It.aa+It.ja],Li=It.kc?he.Ad:0)le.la=We.la=0,he.Za||(le.Na=We.Na=0),he.Hc=0,he.Gc=0,he.ia=0;else{var ei,Re;if(le=We,We=ai,Li=It.Pa.Xc,zi=It.ya[It.aa+It.ja],ti=It.pb[zi.$b],Se=zi.ad,Fi=0,ji=It.rb[It.sb-1],Ne=xi=0,r(Se,Fi,0,384),zi.Za)var Ei=0,kn=Li[3];else{Oe=o(16);var si=le.Na+ji.Na;if(si=wa(We,Li[1],si,ti.Eb,0,Oe,0),le.Na=ji.Na=(0<si)+0,1<si)Er(Oe,0,Se,Fi);else{var Vi=Oe[0]+3>>3;for(Oe=0;256>Oe;Oe+=16)Se[Fi+Oe]=Vi}Ei=1,kn=Li[0]}var ze=15&le.la,yi=15&ji.la;for(Oe=0;4>Oe;++Oe){var Xi=1&yi;for(Vi=Re=0;4>Vi;++Vi)ze=ze>>1|(Xi=(si=wa(We,kn,si=Xi+(1&ze),ti.Sc,Ei,Se,Fi))>Ei)<<7,Re=Re<<2|(3<si?3:1<si?2:Se[Fi+0]!=0),Fi+=16;ze>>=4,yi=yi>>1|Xi<<7,xi=(xi<<8|Re)>>>0}for(kn=ze,Ei=yi>>4,ei=0;4>ei;ei+=2){for(Re=0,ze=le.la>>4+ei,yi=ji.la>>4+ei,Oe=0;2>Oe;++Oe){for(Xi=1&yi,Vi=0;2>Vi;++Vi)si=Xi+(1&ze),ze=ze>>1|(Xi=0<(si=wa(We,Li[2],si,ti.Qc,0,Se,Fi)))<<3,Re=Re<<2|(3<si?3:1<si?2:Se[Fi+0]!=0),Fi+=16;ze>>=2,yi=yi>>1|Xi<<5}Ne|=Re<<4*ei,kn|=ze<<4<<ei,Ei|=(240&yi)<<ei}le.la=kn,ji.la=Ei,zi.Hc=xi,zi.Gc=Ne,zi.ia=43690&Ne?0:ti.ia,Li=!(xi|Ne)}if(0<It.L&&(It.wa[It.Y+It.ja]=It.gd[he.$b][he.Za],It.wa[It.Y+It.ja].La|=!Li),ai.Ka)return hi(we,7,"Premature end-of-file encountered.")}if(ls(we),It=vi,ai=1,he=(jt=we).D,le=0<jt.L&&jt.M>=jt.zb&&jt.M<=jt.Va,jt.Aa==0)e:{if(he.M=jt.M,he.uc=le,un(jt,he),ai=1,he=(Re=jt.D).Nb,le=(Ne=Es[jt.L])*jt.R,We=Ne/2*jt.B,Oe=16*he*jt.R,Vi=8*he*jt.B,Li=jt.sa,zi=jt.ta-le+Oe,ti=jt.qa,Se=jt.ra-We+Vi,Fi=jt.Ha,ji=jt.Ia-We+Vi,yi=(ze=Re.M)==0,xi=ze>=jt.Va-1,jt.Aa==2&&un(jt,Re),Re.uc)for(Xi=(si=jt).D.M,i(si.D.uc),Re=si.yb;Re<si.Hb;++Re){Ei=Re,kn=Xi;var Ui=(Ji=(Ii=si).D).Nb;ei=Ii.R;var Ji=Ji.wa[Ji.Y+Ei],Qi=Ii.sa,$i=Ii.ta+16*Ui*ei+16*Ei,tn=Ji.dd,Ge=Ji.tc;if(Ge!=0)if(i(3<=Ge),Ii.L==1)0<Ei&&mf(Qi,$i,ei,Ge+4),Ji.La&&vf(Qi,$i,ei,Ge),0<kn&&gf(Qi,$i,ei,Ge+4),Ji.La&&_f(Qi,$i,ei,Ge);else{var en=Ii.B,Nn=Ii.qa,so=Ii.ra+8*Ui*en+8*Ei,hr=Ii.Ha,Ii=Ii.Ia+8*Ui*en+8*Ei;Ui=Ji.ld,0<Ei&&(_i(Qi,$i,ei,Ge+4,tn,Ui),xa(Nn,so,hr,Ii,en,Ge+4,tn,Ui)),Ji.La&&(ys(Qi,$i,ei,Ge,tn,Ui),df(Nn,so,hr,Ii,en,Ge,tn,Ui)),0<kn&&(oi(Qi,$i,ei,Ge+4,tn,Ui),fr(Nn,so,hr,Ii,en,Ge+4,tn,Ui)),Ji.La&&(To(Qi,$i,ei,Ge,tn,Ui),pf(Nn,so,hr,Ii,en,Ge,tn,Ui))}}if(jt.ia&&alert("todo:DitherRow"),It.put!=null){if(Re=16*ze,ze=16*(ze+1),yi?(It.y=jt.sa,It.O=jt.ta+Oe,It.f=jt.qa,It.N=jt.ra+Vi,It.ea=jt.Ha,It.W=jt.Ia+Vi):(Re-=Ne,It.y=Li,It.O=zi,It.f=ti,It.N=Se,It.ea=Fi,It.W=ji),xi||(ze-=Ne),ze>It.o&&(ze=It.o),It.F=null,It.J=null,jt.Fa!=null&&0<jt.Fa.length&&Re<ze&&(It.J=$e(jt,It,Re,ze-Re),It.F=jt.mb,It.F==null&&It.F.length==0)){ai=hi(jt,3,"Could not decode alpha data.");break e}Re<It.j&&(Ne=It.j-Re,Re=It.j,i(!(1&Ne)),It.O+=jt.R*Ne,It.N+=jt.B*(Ne>>1),It.W+=jt.B*(Ne>>1),It.F!=null&&(It.J+=It.width*Ne)),Re<ze&&(It.O+=It.v,It.N+=It.v>>1,It.W+=It.v>>1,It.F!=null&&(It.J+=It.v),It.ka=Re-It.j,It.U=It.va-It.v,It.T=ze-Re,ai=It.put(It))}he+1!=jt.Ic||xi||(n(jt.sa,jt.ta-le,Li,zi+16*jt.R,le),n(jt.qa,jt.ra-We,ti,Se+8*jt.B,We),n(jt.Ha,jt.Ia-We,Fi,ji+8*jt.B,We))}if(!ai)return hi(we,6,"Output aborted.")}return 1})(P,K)),K.bc!=null&&K.bc(K),et&=1}return et?(P.cb=0,et):0})(a,m)||(l=a.a)}}else l=a.a}l==0&&w.Oa!=null&&w.Oa.fd&&(l=pa(w.ba))}w=l}x=w!=0?null:11>x?C.f.RGBA.eb:C.f.kb.y}else x=null;return x};var zf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function h(M,ot){for(var A="",T=0;T<4;T++)A+=String.fromCharCode(M[ot++]);return A}function g(M,ot){return M[ot+0]|M[ot+1]<<8}
41function y(M,ot){return(M[ot+0]|M[ot+1]<<8|M[ot+2]<<16)>>>0}function S(M,ot){return(M[ot+0]|M[ot+1]<<8|M[ot+2]<<16|M[ot+3]<<24)>>>0}new f;var d=[0],O=[0],E=[],D=new f,N=e,Y=(function(M,ot){var A={},T=0,V=!1,q=0,ct=0;if(A.frames=[],!(function(b,R){for(var B=0;B<4;B++)if(b[R+B]!="RIFF".charCodeAt(B))return!0;return!1})(M,ot)){for(S(M,ot+=4),ot+=8;ot<M.length;){var pt=h(M,ot),gt=S(M,ot+=4);ot+=4;var st=gt+(1&gt);switch(pt){case"VP8 ":case"VP8L":A.frames[T]===void 0&&(A.frames[T]={}),(At=A.frames[T]).src_off=V?ct:ot-8,At.src_size=q+gt+8,T++,V&&(V=!1,q=0,ct=0);break;case"VP8X":(At=A.header={}).feature_flags=M[ot];var _t=ot+4;At.canvas_width=1+y(M,_t),_t+=3,At.canvas_height=1+y(M,_t),_t+=3;break;case"ALPH":V=!0,q=st+8,ct=ot-8;break;case"ANIM":(At=A.header).bgcolor=S(M,ot),_t=ot+4,At.loop_count=g(M,_t),_t+=2;break;case"ANMF":var Et,At;(At=A.frames[T]={}).offset_x=2*y(M,ot),ot+=3,At.offset_y=2*y(M,ot),ot+=3,At.width=1+y(M,ot),ot+=3,At.height=1+y(M,ot),ot+=3,At.duration=y(M,ot),ot+=3,Et=M[ot++],At.dispose=1&Et,At.blend=Et>>1&1}pt!="ANMF"&&(ot+=st)}return A}})(N,0);Y.response=N,Y.rgbaoutput=!0,Y.dataurl=!1;var W=Y.header?Y.header:null,z=Y.frames?Y.frames:null;if(W){W.loop_counter=W.loop_count,d=[W.canvas_height],O=[W.canvas_width];for(var ft=0;ft<z.length&&z[ft].blend!=0;ft++);}var bt=z[0],vt=D.WebPDecodeRGBA(N,bt.src_off,bt.src_size,O,d);bt.rgba=vt,bt.imgwidth=O[0],bt.imgheight=d[0];for(var Q=0;Q<O[0]*d[0]*4;Q++)E[Q]=vt[Q];return this.width=O,this.height=d,this.data=E,this}(function(e){var i,t,n,r,o,c,s,f,h,g=function(b){return b=b||{},this.isStrokeTransparent=b.isStrokeTransparent||!1,this.strokeOpacity=b.strokeOpacity||1,this.strokeStyle=b.strokeStyle||"#000000",this.fillStyle=b.fillStyle||"#000000",this.isFillTransparent=b.isFillTransparent||!1,this.fillOpacity=b.fillOpacity||1,this.font=b.font||"10px sans-serif",this.textBaseline=b.textBaseline||"alphabetic",this.textAlign=b.textAlign||"left",this.lineWidth=b.lineWidth||1,this.lineJoin=b.lineJoin||"miter",this.lineCap=b.lineCap||"butt",this.path=b.path||[],this.transform=b.transform!==void 0?b.transform.clone():new f,this.globalCompositeOperation=b.globalCompositeOperation||"normal",this.globalAlpha=b.globalAlpha||1,this.clip_path=b.clip_path||[],this.currentPoint=b.currentPoint||new c,this.miterLimit=b.miterLimit||10,this.lastPoint=b.lastPoint||new c,this.lineDashOffset=b.lineDashOffset||0,this.lineDash=b.lineDash||[],this.margin=b.margin||[0,0,0,0],this.prevPageLastElemOffset=b.prevPageLastElemOffset||0,this.ignoreClearRect=typeof b.ignoreClearRect!="boolean"||b.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new y(this),i=this.internal.f2,t=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,r=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,c=this.internal.Point,s=this.internal.Rectangle,f=this.internal.Matrix,h=new g}]);var y=function(b){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=b;Object.defineProperty(this,"pdf",{get:function(){return R}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(L){B=!!L}});var $=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $},set:function(L){$=!!L}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(L){isNaN(L)||(J=L)}});var nt=0;Object.defineProperty(this,"posY",{get:function(){return nt},set:function(L){isNaN(L)||(nt=L)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(L){var Pt;typeof L=="number"?Pt=[L,L,L,L]:((Pt=new Array(4))[0]=L[0],Pt[1]=L.length>=2?L[1]:Pt[0],Pt[2]=L.length>=3?L[2]:Pt[0],Pt[3]=L.length>=4?L[3]:Pt[1]),h.margin=Pt}});var ut=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ut},set:function(L){ut=L}});var ht=0;Object.defineProperty(this,"lastBreak",{get:function(){return ht},set:function(L){ht=L}});var wt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wt},set:function(L){wt=L}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(L){L instanceof g&&(h=L)}}),Object.defineProperty(this,"path",{get:function(){return h.path}
41,set:function(L){h.path=L}});var Lt=[];Object.defineProperty(this,"ctxStack",{get:function(){return Lt},set:function(L){Lt=L}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(L){var Pt;Pt=S(L),this.ctx.fillStyle=Pt.style,this.ctx.isFillTransparent=Pt.a===0,this.ctx.fillOpacity=Pt.a,this.pdf.setFillColor(Pt.r,Pt.g,Pt.b,{a:Pt.a}),this.pdf.setTextColor(Pt.r,Pt.g,Pt.b,{a:Pt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(L){var Pt=S(L);this.ctx.strokeStyle=Pt.style,this.ctx.isStrokeTransparent=Pt.a===0,this.ctx.strokeOpacity=Pt.a,Pt.a===0?this.pdf.setDrawColor(255,255,255):(Pt.a,this.pdf.setDrawColor(Pt.r,Pt.g,Pt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(L){["butt","round","square"].indexOf(L)!==-1&&(this.ctx.lineCap=L,this.pdf.setLineCap(L))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(L){isNaN(L)||(this.ctx.lineWidth=L,this.pdf.setLineWidth(L))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(L){["bevel","round","miter"].indexOf(L)!==-1&&(this.ctx.lineJoin=L,this.pdf.setLineJoin(L))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(L){isNaN(L)||(this.ctx.miterLimit=L,this.pdf.setMiterLimit(L))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(L){this.ctx.textBaseline=L}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(L){["right","end","center","left","start"].indexOf(L)!==-1&&(this.ctx.textAlign=L)}});var Ot=null,Tt=null,Gt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Gt},set:function(L){Ot=null,Tt=null,Gt=L}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(L){var Pt;if(this.ctx.font=L,(Pt=/^\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(L))!==null){var pe=Pt[1];Pt[2];var Xt=Pt[3],kt=Pt[4];Pt[5];var Jt=Pt[6],Dt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(kt)[2];kt=Math.floor(Dt==="px"?parseFloat(kt)*this.pdf.internal.scaleFactor:Dt==="em"?parseFloat(kt)*this.pdf.getFontSize():parseFloat(kt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(kt);var Kt=(function($t){var ni,Ae,de=[],ge=$t.trim();if(ge==="")return nf;if(ge in Hp)return[Hp[ge]];for(;ge!=="";){switch(Ae=null,ni=(ge=$p(ge)).charAt(0)){case'"':case"'":Ae=Mg(ge.substring(1),ni);break;default:Ae=Bg(ge)}if(Ae===null||(de.push(Ae[0]),(ge=$p(Ae[1]))!==""&&ge.charAt(0)!==","))return nf;ge=ge.replace(/^,/,"")}return de})(Jt);if(this.fontFaces){var Wt=(function($t,ni){var Ae=$t.getFontList(),de=JSON.stringify(Ae);if(Ot===null||Tt!==de){var ge=(function(Ze){var Zt=[];return Object.keys(Ze).forEach(function(Ve){Ze[Ve].forEach(function(ee){var se=null;switch(ee){case"bold":se={family:Ve,weight:"bold"};break;case"italic":se={family:Ve,style:"italic"};break;case"bolditalic":se={family:Ve,weight:"bold",style:"italic"};break;case"":case"normal":se={family:Ve}}se!==null&&(se.ref={name:Ve,style:ee},Zt.push(se))})}),Zt})(Ae);Ot=(function(Ze){for(var Zt={},Ve=0;Ve<Ze.length;++Ve){var ee=ef(Ze[Ve]),se=ee.family,Ye=ee.stretch,me=ee.style,Qt=ee.weight;Zt[se]=Zt[se]||{},Zt[se][Ye]=Zt[se][Ye]||{},Zt[se][Ye][me]=Zt[se][Ye][me]||{},Zt[se][Ye][me][Qt]=ee}return Zt})(ge.concat(ni)),Tt=de}return Ot})(this.pdf,this.fontFaces),Pe=Kt.map(function($t){return{family:$t,stretch:"normal",weight:Xt,style:pe}}),ve=(function($t,ni,Ae){for(var de=(Ae=Ae||{}).defaultFontFamily||"times",ge=Object.assign({},Dg,Ae.genericFontFamilies||{}),Ze=null,Zt=null,Ve=0;Ve<ni.length;++Ve)if(ge[(Ze=ef(ni[Ve])).family]&&(Ze.family=ge[Ze.family]),$t.hasOwnProperty(Ze.family)){Zt=$t[Ze.family];break}if(!(Zt=Zt||$t[de]))throw new Error("Could not find a font-family for the rule '"+Vp(Ze)+"' and default family '"+de+"'.");if(Zt=(function(ee,se){if(se[ee])return se[ee];var Ye=cf[ee],me=Ye<=cf.normal?-1:1,Qt=qp(se,dd,Ye,me);if(!Qt)throw new Error("Could not find a matching font-stretch value for "+ee);return Qt})(Ze.stretch,Zt),Zt=(function(ee,se){if(se[ee])return se[ee];for(var Ye=pd[ee],me=0;me<Ye.length;++me)if(se[Ye[me]])return se[Ye[me]];throw new Error("Could not find a matching font-style for "+ee)}
41)(Ze.style,Zt),!(Zt=(function(ee,se){if(se[ee])return se[ee];if(ee===400&&se[500])return se[500];if(ee===500&&se[400])return se[400];var Ye=Rg[ee],me=qp(se,gd,Ye,ee<400?-1:1);if(!me)throw new Error("Could not find a matching font-weight for value "+ee);return me})(Ze.weight,Zt)))throw new Error("Failed to resolve a font for the rule '"+Vp(Ze)+"'.");return Zt})(Wt,Pe);this.pdf.setFont(ve.ref.name,ve.ref.style)}else{var ae="";(Xt==="bold"||parseInt(Xt,10)>=700||pe==="bold")&&(ae="bold"),pe==="italic"&&(ae+="italic"),ae.length===0&&(ae="normal");for(var ye="",xe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ut=0;Ut<Kt.length;Ut++){if(this.pdf.internal.getFont(Kt[Ut],ae,{noFallback:!0,disableWarning:!0})!==void 0){ye=Kt[Ut];break}if(ae==="bolditalic"&&this.pdf.internal.getFont(Kt[Ut],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ye=Kt[Ut],ae="bold";else if(this.pdf.internal.getFont(Kt[Ut],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ye=Kt[Ut],ae="normal";break}}if(ye===""){for(var ce=0;ce<Kt.length;ce++)if(xe[Kt[ce]]){ye=xe[Kt[ce]];break}}ye=ye===""?"Times":ye,this.pdf.setFont(ye,ae)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(L){this.ctx.globalCompositeOperation=L}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(L){this.ctx.globalAlpha=L}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(L){this.ctx.lineDashOffset=L,At.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(L){this.ctx.lineDash=L,At.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(L){this.ctx.ignoreClearRect=!!L}})};y.prototype.setLineDash=function(b){this.lineDash=b},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){z.call(this,"fill",!1)},y.prototype.stroke=function(){z.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(b,R){if(isNaN(b)||isNaN(R))throw He.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new c(b,R));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new c(b,R)},y.prototype.closePath=function(){var b=new c(0,0),R=0;for(R=this.path.length-1;R!==-1;R--)if(this.path[R].type==="begin"&&Me(this.path[R+1])==="object"&&typeof this.path[R+1].x=="number"){b=new c(this.path[R+1].x,this.path[R+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(b.x,b.y)},y.prototype.lineTo=function(b,R){if(isNaN(b)||isNaN(R))throw He.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new c(b,R));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new c(B.x,B.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),z.call(this,null,!0)},y.prototype.quadraticCurveTo=function(b,R,B,$){if(isNaN(B)||isNaN($)||isNaN(b)||isNaN(R))throw He.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new c(B,$)),nt=this.ctx.transform.applyToPoint(new c(b,R));this.path.push({type:"qct",x1:nt.x,y1:nt.y,x:J.x,y:J.y}),this.ctx.lastPoint=new c(J.x,J.y)},y.prototype.bezierCurveTo=function(b,R,B,$,J,nt){if(isNaN(J)||isNaN(nt)||isNaN(b)||isNaN(R)||isNaN(B)||isNaN($))throw He.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ut=this.ctx.transform.applyToPoint(new c(J,nt)),ht=this.ctx.transform.applyToPoint(new c(b,R)),wt=this.ctx.transform.applyToPoint(new c(B,$));this.path.push({type:"bct",x1:ht.x,y1:ht.y,x2:wt.x,y2:wt.y,x:ut.x,y:ut.y}),this.ctx.lastPoint=new c(ut.x,ut.y)},y.prototype.arc=function(b,R,B,$,J,nt){if(isNaN(b)||isNaN(R)||isNaN(B)||isNaN($)||isNaN(J))throw He.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to 
41jsPDF.context2d.arc");if(nt=!!nt,!this.ctx.transform.isIdentity){var ut=this.ctx.transform.applyToPoint(new c(b,R));b=ut.x,R=ut.y;var ht=this.ctx.transform.applyToPoint(new c(0,B)),wt=this.ctx.transform.applyToPoint(new c(0,0));B=Math.sqrt(Math.pow(ht.x-wt.x,2)+Math.pow(ht.y-wt.y,2))}Math.abs(J-$)>=2*Math.PI&&($=0,J=2*Math.PI),this.path.push({type:"arc",x:b,y:R,radius:B,startAngle:$,endAngle:J,counterclockwise:nt})},y.prototype.arcTo=function(b,R,B,$,J){throw new Error("arcTo not implemented.")},y.prototype.rect=function(b,R,B,$){if(isNaN(b)||isNaN(R)||isNaN(B)||isNaN($))throw He.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(b,R),this.lineTo(b+B,R),this.lineTo(b+B,R+$),this.lineTo(b,R+$),this.lineTo(b,R),this.lineTo(b+B,R),this.lineTo(b,R)},y.prototype.fillRect=function(b,R,B,$){if(isNaN(b)||isNaN(R)||isNaN(B)||isNaN($))throw He.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(b,R,B,$),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},y.prototype.strokeRect=function(b,R,B,$){if(isNaN(b)||isNaN(R)||isNaN(B)||isNaN($))throw He.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");O.call(this)||(this.beginPath(),this.rect(b,R,B,$),this.stroke())},y.prototype.clearRect=function(b,R,B,$){if(isNaN(b)||isNaN(R)||isNaN(B)||isNaN($))throw He.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(b,R,B,$))},y.prototype.save=function(b){b=typeof b!="boolean"||b;for(var R=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(R),b){this.ctx.fontSize=this.pdf.internal.getFontSize();var $=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=$}},y.prototype.restore=function(b){b=typeof b!="boolean"||b;for(var R=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(R),b&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var S=function(b){var R,B,$,J;if(b.isCanvasGradient===!0&&(b=b.getColor()),!b)return{r:0,g:0,b:0,a:0,style:b};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(b))R=0,B=0,$=0,J=0;else{var nt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(b);if(nt!==null)R=parseInt(nt[1]),B=parseInt(nt[2]),$=parseInt(nt[3]),J=1;else if((nt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(b))!==null)R=parseInt(nt[1]),B=parseInt(nt[2]),$=parseInt(nt[3]),J=parseFloat(nt[4]);else{if(J=1,typeof b=="string"&&b.charAt(0)!=="#"){var ut=new ad(b);b=ut.ok?ut.toHex():"#000000"}b.length===4?(R=b.substring(1,2),R+=R,B=b.substring(2,3),B+=B,$=b.substring(3,4),$+=$):(R=b.substring(1,3),B=b.substring(3,5),$=b.substring(5,7)),R=parseInt(R,16),B=parseInt(B,16),$=parseInt($,16)}}return{r:R,g:B,b:$,a:J,style:b}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},O=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(b,R,B,$){if(isNaN(R)||isNaN(B)||typeof b!="string")throw He.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to 
41jsPDF.context2d.fillText");if($=isNaN($)?void 0:$,!d.call(this)){var J=st(this.ctx.transform.rotation),nt=this.ctx.transform.scaleX;T.call(this,{text:b,x:R,y:B,scale:nt,angle:J,align:this.textAlign,maxWidth:$})}},y.prototype.strokeText=function(b,R,B,$){if(isNaN(R)||isNaN(B)||typeof b!="string")throw He.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!O.call(this)){$=isNaN($)?void 0:$;var J=st(this.ctx.transform.rotation),nt=this.ctx.transform.scaleX;T.call(this,{text:b,x:R,y:B,scale:nt,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:$})}},y.prototype.measureText=function(b){if(typeof b!="string")throw He.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var R=this.pdf,B=this.pdf.internal.scaleFactor,$=R.internal.getFontSize(),J=R.getStringUnitWidth(b)*$/R.internal.scaleFactor;return new function(nt){var ut=(nt=nt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ut}}),this}({width:J*=Math.round(96*B/72*1e4)/1e4})},y.prototype.scale=function(b,R){if(isNaN(b)||isNaN(R))throw He.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new f(b,0,0,R,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.rotate=function(b){if(isNaN(b))throw He.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var R=new f(Math.cos(b),Math.sin(b),-Math.sin(b),Math.cos(b),0,0);this.ctx.transform=this.ctx.transform.multiply(R)},y.prototype.translate=function(b,R){if(isNaN(b)||isNaN(R))throw He.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new f(1,0,0,1,b,R);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.transform=function(b,R,B,$,J,nt){if(isNaN(b)||isNaN(R)||isNaN(B)||isNaN($)||isNaN(J)||isNaN(nt))throw He.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ut=new f(b,R,B,$,J,nt);this.ctx.transform=this.ctx.transform.multiply(ut)},y.prototype.setTransform=function(b,R,B,$,J,nt){b=isNaN(b)?1:b,R=isNaN(R)?0:R,B=isNaN(B)?0:B,$=isNaN($)?1:$,J=isNaN(J)?0:J,nt=isNaN(nt)?0:nt,this.ctx.transform=new f(b,R,B,$,J,nt)};var E=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(b,R,B,$,J,nt,ut,ht,wt){var Lt=this.pdf.getImageProperties(b),Ot=1,Tt=1,Gt=1,L=1;$!==void 0&&ht!==void 0&&(Gt=ht/$,L=wt/J,Ot=Lt.width/$*ht/$,Tt=Lt.height/J*wt/J),nt===void 0&&(nt=R,ut=B,R=0,B=0),$!==void 0&&ht===void 0&&(ht=$,wt=J),$===void 0&&ht===void 0&&(ht=Lt.width,wt=Lt.height);var Pt=this.ctx.transform.decompose(),pe=st(Pt.rotate.shx),Xt=new f,kt=(Xt=(Xt=(Xt=Xt.multiply(Pt.translate)).multiply(Pt.skew)).multiply(Pt.scale)).applyToRectangle(new s(nt-R*Gt,ut-B*L,$*Ot,J*Tt));if(this.autoPaging){for(var Jt,Dt=D.call(this,kt),Kt=[],Wt=0;Wt<Dt.length;Wt+=1)Kt.indexOf(Dt[Wt])===-1&&Kt.push(Dt[Wt]);W(Kt);for(var Pe=Kt[0],ve=Kt[Kt.length-1],ae=Pe;ae<ve+1;ae++){this.pdf.setPage(ae);var ye=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],xe=ae===1?this.posY+this.margin[0]:this.margin[0],Ut=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ce=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],$t=ae===1?0:Ut+(ae-2)*ce;if(this.ctx.clip_path.length!==0){var ni=this.path;Jt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Y(Jt,this.posX+this.margin[3],-$t+xe+this.ctx.prevPageLastElemOffset),ft.call(this,"fill",!0),this.path=ni}var Ae=JSON.parse(JSON.stringify(kt));Ae=Y([Ae],this.posX+this.margin[3],-$t+xe+this.ctx.prevPageLastElemOffset)[0];var de=(ae>Pe||ae<ve)&&E.call(this);de&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ye,ce,null).clip().discardPath()),this.pdf.addImage(b,"JPEG",Ae.x,Ae.y,Ae.w,Ae.h,null,
vendor: 8,328 bytes, line 41
41null,pe),de&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(b,"JPEG",kt.x,kt.y,kt.w,kt.h,null,null,pe)};var D=function(b,R,B){var $=[];R=R||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(b.type){default:case"mt":case"lt":$.push(Math.floor((b.y+J)/B)+1);break;case"arc":$.push(Math.floor((b.y+J-b.radius)/B)+1),$.push(Math.floor((b.y+J+b.radius)/B)+1);break;case"qct":var nt=_t(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x,b.y);$.push(Math.floor((nt.y+J)/B)+1),$.push(Math.floor((nt.y+nt.h+J)/B)+1);break;case"bct":var ut=Et(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x2,b.y2,b.x,b.y);$.push(Math.floor((ut.y+J)/B)+1),$.push(Math.floor((ut.y+ut.h+J)/B)+1);break;case"rect":$.push(Math.floor((b.y+J)/B)+1),$.push(Math.floor((b.y+b.h+J)/B)+1)}for(var ht=0;ht<$.length;ht+=1)for(;this.pdf.internal.getNumberOfPages()<$[ht];)N.call(this);return $},N=function(){var b=this.fillStyle,R=this.strokeStyle,B=this.font,$=this.lineCap,J=this.lineWidth,nt=this.lineJoin;this.pdf.addPage(),this.fillStyle=b,this.strokeStyle=R,this.font=B,this.lineCap=$,this.lineWidth=J,this.lineJoin=nt},Y=function(b,R,B){for(var $=0;$<b.length;$++)switch(b[$].type){case"bct":b[$].x2+=R,b[$].y2+=B;case"qct":b[$].x1+=R,b[$].y1+=B;default:b[$].x+=R,b[$].y+=B}return b},W=function(b){return b.sort(function(R,B){return R-B})},z=function(b,R){var B=this.fillStyle,$=this.strokeStyle,J=this.lineCap,nt=this.lineWidth,ut=Math.abs(nt*this.ctx.transform.scaleX),ht=this.lineJoin;if(this.autoPaging){for(var wt,Lt,Ot=JSON.parse(JSON.stringify(this.path)),Tt=JSON.parse(JSON.stringify(this.path)),Gt=[],L=0;L<Tt.length;L++)if(Tt[L].x!==void 0)for(var Pt=D.call(this,Tt[L]),pe=0;pe<Pt.length;pe+=1)Gt.indexOf(Pt[pe])===-1&&Gt.push(Pt[pe]);for(var Xt=0;Xt<Gt.length;Xt++)for(;this.pdf.internal.getNumberOfPages()<Gt[Xt];)N.call(this);W(Gt);for(var kt=Gt[0],Jt=Gt[Gt.length-1],Dt=kt;Dt<Jt+1;Dt++){this.pdf.setPage(Dt),this.fillStyle=B,this.strokeStyle=$,this.lineCap=J,this.lineWidth=ut,this.lineJoin=ht;var Kt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Wt=Dt===1?this.posY+this.margin[0]:this.margin[0],Pe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ve=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ae=Dt===1?0:Pe+(Dt-2)*ve;if(this.ctx.clip_path.length!==0){var ye=this.path;wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Y(wt,this.posX+this.margin[3],-ae+Wt+this.ctx.prevPageLastElemOffset),ft.call(this,b,!0),this.path=ye}if(Lt=JSON.parse(JSON.stringify(Ot)),this.path=Y(Lt,this.posX+this.margin[3],-ae+Wt+this.ctx.prevPageLastElemOffset),R===!1||Dt===0){var xe=(Dt>kt||Dt<Jt)&&E.call(this);xe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Kt,ve,null).clip().discardPath()),ft.call(this,b,R),xe&&this.pdf.restoreGraphicsState()}this.lineWidth=nt}this.path=Ot}else this.lineWidth=ut,ft.call(this,b,R),this.lineWidth=nt},ft=function(b,R){if((b!=="stroke"||R||!O.call(this))&&(b==="stroke"||R||!d.call(this))){for(var B,$,J=[],nt=this.path,ut=0;ut<nt.length;ut++){var ht=nt[ut];switch(ht.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:ht,deltas:[],abs:[]});break;case"lt":var wt=J.length;if(nt[ut-1]&&!isNaN(nt[ut-1].x)&&(B=[ht.x-nt[ut-1].x,ht.y-nt[ut-1].y],wt>0)){for(;wt>=0;wt--)if(J[wt-1].close!==!0&&J[wt-1].begin!==!0){J[wt-1].deltas.push(B),J[wt-1].abs.push(ht);break}}break;case"bct":B=[ht.x1-nt[ut-1].x,ht.y1-nt[ut-1].y,ht.x2-nt[ut-1].x,ht.y2-nt[ut-1].y,ht.x-nt[ut-1].x,ht.y-nt[ut-1].y],J[J.length-1].deltas.push(B);break;case"qct":var Lt=nt[ut-1].x+2/3*(ht.x1-nt[ut-1].x),Ot=nt[ut-1].y+2/3*(ht.y1-nt[ut-1].y),Tt=ht.x+2/3*(ht.x1-ht.x),Gt=ht.y+2/3*(ht.y1-ht.y),L=ht.x,Pt=ht.y;B=[Lt-nt[ut-1].x,Ot-nt[ut-1].y,Tt-nt[ut-1].x,Gt-nt[ut-1].y,L-nt[ut-1].x,Pt-nt[ut-1].y],J[J.length-1].deltas.push(B);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(ht)}}$=R?null:b==="stroke"?"stroke":"fill";for(var pe=!1,Xt=0;Xt<J.length;Xt++)if(J[Xt].arc)for(var kt=J[Xt].abs,Jt=0;Jt<kt.length;Jt++){var Dt=kt[Jt];Dt.type==="arc"?Q.call(this,Dt.x,Dt.y,Dt.radius,Dt.startAngle,Dt.endAngle,Dt.counterclockwise,void 0,R,!pe):V.call(this,Dt.x,Dt.y),pe=!0}else if(J[Xt].close===!0)this.pdf.internal.out("h"),pe=!1;else if(J[Xt].begin!==!0){var Kt=J[Xt].start.x,Wt=J[Xt].start.y;q.call(this,J[Xt].deltas,Kt,Wt),pe=!0}$&&M.call(this,$),R&&ot.call(this)}},bt=function(b){var R=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=R*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return b-B;case"top":return b+R-B;case"hanging":return b+R-2*B;case"middle":return b+R/2-B;default:return b}},vt=function(b){return b+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var b=function(){};return b.colorStops=[],b.addColorStop=function(R,B){this.colorStops.push([R,B])},b.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},b.isCanvasGradient=!0,b},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Q=function(b,R,B,$,J,nt,ut,ht,wt){for(var Lt=pt.call(this,B,$,J,nt),Ot=0;Ot<Lt.length;Ot++){var Tt=Lt[Ot];Ot===0&&(wt?A.call(this,Tt.x1+b,Tt.y1+R):V.call(this,Tt.x1+b,Tt.y1+R)),ct.call(this,b,R,Tt.x2,Tt.y2,Tt.x3,Tt.y3,Tt.x4,Tt.y4)}ht?ot.call(this):M.call(this,ut)},M=function(b){switch(b){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ot=function(){this.pdf.clip(),this.pdf.discardPath()},A=function(b,R){this.pdf.internal.out(t(b)+" "+n(R)+" m")},T=function(b){var R;switch(b.align){case"right":case"end":R="right";break;case"center":R="center";break;default:R="left"}var B,$,J,nt=this.pdf.getTextDimensions(b.text),ut=bt.call(this,b.y),ht=vt.call(this,ut)-nt.h,wt=this.ctx.transform.applyToPoint(new c(b.x,ut));if(this.autoPaging){var Lt=this.ctx.transform.decompose(),Ot=new f;Ot=(Ot=(Ot=Ot.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale);for(var Tt=this.ctx.transform.applyToRectangle(new s(b.x,ut,nt.w,nt.h)),Gt=Ot.applyToRectangle(new s(b.x,ht,nt.w,nt.h)),L=D.call(this,Gt),Pt=[],pe=0;pe<L.length;pe+=1)Pt.indexOf(L[pe])===-1&&Pt.push(L[pe]);W(Pt);for(var Xt=Pt[0],kt=Pt[Pt.length-1],Jt=Xt;Jt<kt+1;Jt++){this.pdf.setPage(Jt);var Dt=Jt===1?this.posY+this.margin[0]:this.margin[0],Kt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Wt=this.pdf.internal.pageSize.height-this.margin[2],Pe=Wt-this.margin[0],ve=this.pdf.internal.pageSize.width-this.margin[1],ae=ve-this.margin[3],ye=Jt===1?0:Kt+(Jt-2)*Pe;if(this.ctx.clip_path.length!==0){var xe=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Y(B,this.posX+this.margin[3],-1*ye+Dt),ft.call(this,"fill",!0),this.path=xe}var Ut=Y([JSON.parse(JSON.stringify(Gt))],this.posX+this.margin[3],-ye+Dt+this.ctx.prevPageLastElemOffset)[0];b.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*b.scale),J=this.lineWidth,this.lineWidth=J*b.scale);var ce=this.autoPaging!=="text";if(ce||Ut.y+Ut.h<=Wt){if(ce||Ut.y>=Dt&&Ut.x<=ve){var $t=ce?b.text:this.pdf.splitTextToSize(b.text,b.maxWidth||ve-Ut.x)[0],ni=Y([JSON.parse(JSON.stringify(Tt))],this.posX+this.margin[3],-ye+Dt+this.ctx.prevPageLastElemOffset)[0],Ae=ce&&(Jt>Xt||Jt<kt)&&E.call(this);Ae&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ae,Pe,null).clip().discardPath()),this.pdf.text($t,ni.x,ni.y,{angle:b.angle,align:R,renderingMode:b.renderingMode}),Ae&&this.pdf.restoreGraphicsState()}}else Ut.y<Wt&&(this.ctx.prevPageLastElemOffset+=Wt-Ut.y);b.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=J)}}else b.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*b.scale),J=this.lineWidth,this.lineWidth=J*b.scale),this.pdf.text(b.text,wt.x+this.posX,wt.y+this.posY,{angle:b.angle,align:R,renderingMode:b.renderingMode,maxWidth:b.maxWidth}),b.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=J)},V=function(b,R,B,$){B=B||0,$=$||0,this.pdf.internal.out(t(b+B)+" "+n(R+$)+" l")}
41,q=function(b,R,B){return this.pdf.lines(b,R,B,null,null)},ct=function(b,R,B,$,J,nt,ut,ht){this.pdf.internal.out([i(r(B+b)),i(o($+R)),i(r(J+b)),i(o(nt+R)),i(r(ut+b)),i(o(ht+R)),"c"].join(" "))},pt=function(b,R,B,$){for(var J=2*Math.PI,nt=Math.PI/2;R>B;)R-=J;var ut=Math.abs(B-R);ut<J&&$&&(ut=J-ut);for(var ht=[],wt=$?-1:1,Lt=R;ut>1e-5;){var Ot=Lt+wt*Math.min(ut,nt);ht.push(gt.call(this,b,Lt,Ot)),ut-=Math.abs(Ot-Lt),Lt=Ot}return ht},gt=function(b,R,B){var $=(B-R)/2,J=b*Math.cos($),nt=b*Math.sin($),ut=J,ht=-nt,wt=ut*ut+ht*ht,Lt=wt+ut*J+ht*nt,Ot=4/3*(Math.sqrt(2*wt*Lt)-Lt)/(ut*nt-ht*J),Tt=ut-Ot*ht,Gt=ht+Ot*ut,L=Tt,Pt=-Gt,pe=$+R,Xt=Math.cos(pe),kt=Math.sin(pe);return{x1:b*Math.cos(R),y1:b*Math.sin(R),x2:Tt*Xt-Gt*kt,y2:Tt*kt+Gt*Xt,x3:L*Xt-Pt*kt,y3:L*kt+Pt*Xt,x4:b*Math.cos(B),y4:b*Math.sin(B)}},st=function(b){return 180*b/Math.PI},_t=function(b,R,B,$,J,nt){var ut=b+.5*(B-b),ht=R+.5*($-R),wt=J+.5*(B-J),Lt=nt+.5*($-nt),Ot=Math.min(b,J,ut,wt),Tt=Math.max(b,J,ut,wt),Gt=Math.min(R,nt,ht,Lt),L=Math.max(R,nt,ht,Lt);return new s(Ot,Gt,Tt-Ot,L-Gt)},Et=function(b,R,B,$,J,nt,ut,ht){var wt,Lt,Ot,Tt,Gt,L,Pt,pe,Xt,kt,Jt,Dt,Kt,Wt,Pe=B-b,ve=$-R,ae=J-B,ye=nt-$,xe=ut-J,Ut=ht-nt;for(Lt=0;Lt<41;Lt++)Xt=(Pt=(Ot=b+(wt=Lt/40)*Pe)+wt*((Gt=B+wt*ae)-Ot))+wt*(Gt+wt*(J+wt*xe-Gt)-Pt),kt=(pe=(Tt=R+wt*ve)+wt*((L=$+wt*ye)-Tt))+wt*(L+wt*(nt+wt*Ut-L)-pe),Lt==0?(Jt=Xt,Dt=kt,Kt=Xt,Wt=kt):(Jt=Math.min(Jt,Xt),Dt=Math.min(Dt,kt),Kt=Math.max(Kt,Xt),Wt=Math.max(Wt,kt));return new s(Math.round(Jt),Math.round(Dt),Math.round(Kt-Jt),Math.round(Wt-Dt))},At=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var b,R,B=(b=this.ctx.lineDash,R=this.ctx.lineDashOffset,JSON.stringify({lineDash:b,lineDashOffset:R}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(Ht.API),(function(e){var i=function(c){var s,f,h,g,y,S,d,O,E,D;for(/[^\x00-\xFF]/.test(c),f=[],h=0,g=(c+=s="\0\0\0\0".slice(c.length%4||4)).length;g>h;h+=4)(y=(c.charCodeAt(h)<<24)+(c.charCodeAt(h+1)<<16)+(c.charCodeAt(h+2)<<8)+c.charCodeAt(h+3))!==0?(S=(y=((y=((y=((y=(y-(D=y%85))/85)-(E=y%85))/85)-(O=y%85))/85)-(d=y%85))/85)%85,f.push(S+33,d+33,O+33,E+33,D+33)):f.push(122);return(function(N,Y){for(var W=Y;W>0;W--)N.pop()})(f,s.length),String.fromCharCode.apply(String,f)+"~>"},t=function(c){var s,f,h,g,y,S=String,d="length",O=255,E="charCodeAt",D="slice",N="replace";for(c[D](-2),c=c[D](0,-2)[N](/\s/g,"")[N]("z","!!!!!"),h=[],g=0,y=(c+=s="uuuuu"[D](c[d]%5||5))[d];y>g;g+=5)f=52200625*(c[E](g)-33)+614125*(c[E](g+1)-33)+7225*(c[E](g+2)-33)+85*(c[E](g+3)-33)+(c[E](g+4)-33),h.push(O&f>>24,O&f>>16,O&f>>8,O&f);return(function(Y,W){for(var z=W;z>0;z--)Y.pop()})(h,s[d]),S.fromCharCode.apply(S,h)},n=function(c){return c.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},r=function(c){var s=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"),s.test(c)===!1)return"";for(var f="",h=0;h<c.length;h+=2)f+=String.fromCharCode("0x"+(c[h]+c[h+1]));return f},o=function(c){for(var s=new Uint8Array(c.length),f=c.length;f--;)s[f]=c.charCodeAt(f);return(s=Hs(s)).reduce(function(h,g){return h+String.fromCharCode(g)},"")};e.processDataByFilters=function(c,s){var f=0,h=c||"",g=[];for(typeof(s=s||[])=="string"&&(s=[s]),f=0;f<s.length;f+=1)switch(s[f]){case"ASCII85Decode":case"/ASCII85Decode":h=t(h),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":h=i(h),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":h=r(h),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":h=n(h),g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":h=o(h),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[f]+'" is not implemented')}return{data:h,reverseChain:g.reverse().join(" ")}}})(Ht.API),(function(e){e.loadFile=function(i,t,n){return(function(r,o,c){o=o!==!1,c=typeof c=="function"?c:function(){};var s=void 0;try{s=(function(f,h,g){var y=new XMLHttpRequest,S=0,d=function(O){var E=O.length,D=[],N=String.fromCharCode;for(S=0;S<E;S+=1)D.push(N(255&O.charCodeAt(S)));return D.join("")};if(y.open("GET",f,!h),y.overrideMimeType("text/plain;
41 charset=x-user-defined"),h===!1&&(y.onload=function(){y.status===200?g(d(this.responseText)):g(void 0)}),y.send(null),h&&y.status===200)return d(y.responseText)})(r,o,c)}catch{}return s})(i,t,n)},e.loadImageFile=e.loadFile})(Ht.API),(function(e){function i(){return(ie.html2canvas?Promise.resolve(ie.html2canvas):import("./chunk-YJV27OED.js")).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function t(){return(ie.DOMPurify?Promise.resolve(ie.DOMPurify):import("./chunk-XWJ7XWFQ.js")).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var n=function(s){var f=Me(s);return f==="undefined"?"undefined":f==="string"||s instanceof String?"string":f==="number"||s instanceof Number?"number":f==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":f==="object"?"object":"unknown"},r=function(s,f){var h=document.createElement(s);for(var g in f.className&&(h.className=f.className),f.innerHTML&&f.dompurify&&(h.innerHTML=f.dompurify.sanitize(f.innerHTML)),f.style)h.style[g]=f.style[g];return h},o=function s(f,h){for(var g=f.nodeType===3?document.createTextNode(f.nodeValue):f.cloneNode(!1),y=f.firstChild;y;y=y.nextSibling)h!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||g.appendChild(s(y,h));return f.nodeType===1&&(f.nodeName==="CANVAS"?(g.width=f.width,g.height=f.height,g.getContext("2d").drawImage(f,0,0)):f.nodeName!=="TEXTAREA"&&f.nodeName!=="SELECT"||(g.value=f.value),g.addEventListener("load",function(){g.scrollTop=f.scrollTop,g.scrollLeft=f.scrollLeft},!0)),g},c=function s(f){var h=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),g=s.convert(Promise.resolve(),h);return(g=g.setProgress(1,s,1,[s])).set(f)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(s,f){return s.__proto__=f||c.prototype,s},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(s,f){return this.then(function(){switch(f=f||(function(h){switch(n(h)){case"string":return"string";case"element":return h.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(s),f){case"string":return this.then(t).then(function(h){return this.set({src:r("div",{innerHTML:s,dompurify:h})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},c.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},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 s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},f=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);f.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=r("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=r("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(f),this.prop.container.firstChild.appendChild(r("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 s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(i).then(function(f){var h=Object.assign({},this.opt.html2canvas);return delete h.onrendered,f(this.prop.container,h)}).then(function(f){(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(i).then(function(f){var h=this.opt.jsPDF,g=this.opt.fontFaces,y=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,S=Object.assign({async:!0,allowTaint:!0,scale:y,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete S.onrendered,h.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,h.context2d.posX=this.opt.x,h.context2d.posY=this.opt.y,h.context2d.margin=this.opt.margin,h.context2d.fontFaces=g,g)for(var d=0;d<g.length;++d){var O=g[d],E=O.src.find(function(D){return D.format==="truetype"});E&&h.addFont(E.url,O.ref.name,O.ref.style)}
41return S.windowHeight=S.windowHeight||0,S.windowHeight=S.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):S.windowHeight,h.context2d.save(!0),f(this.prop.container,S)}).then(function(f){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},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(s,f,h){return(h=h||"pdf").toLowerCase()==="img"||h.toLowerCase()==="image"?this.outputImg(s,f):this.outputPdf(s,f)},c.prototype.outputPdf=function(s,f){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,f)})},c.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},c.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},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(s){if(n(s)!=="object")return this;var f=Object.keys(s||{}).map(function(h){if(h in c.template.prop)return function(){this.prop[h]=s[h]};switch(h){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[h]=s[h]}}},this);return this.then(function(){return this.thenList(f)})},c.prototype.get=function(s,f){return this.then(function(){var h=s in c.template.prop?this.prop[s]:this.opt[s];return f?f(h):h})},c.prototype.setMargin=function(s){return this.then(function(){switch(n(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},c.prototype.setPageSize=function(s){function f(h,g){return Math.floor(h*g/72*96)}return this.then(function(){(s=s||Ht.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:f(s.inner.width,s.k),height:f(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},c.prototype.setProgress=function(s,f,h,g){return s!=null&&(this.progress.val=s),f!=null&&(this.progress.state=f),h!=null&&(this.progress.n=h),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(s,f,h,g){return this.setProgress(s?this.progress.val+s:null,f||null,h?this.progress.n+h:null,g?this.progress.stack.concat(g):null)},c.prototype.then=function(s,f){var h=this;return this.thenCore(s,f,function(g,y){return h.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(S){return h.updateProgress(null,g),S}).then(g,y).then(function(S){return h.updateProgress(1),S})})},c.prototype.thenCore=function(s,f,h){h=h||Promise.prototype.then;var g=this;s&&(s=s.bind(g)),f&&(f=f.bind(g));var y=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?g:c.convert(Object.assign({},g),Promise.prototype),S=h.call(y,s,f);return c.convert(S,g.__proto__)},c.prototype.thenExternal=function(s,f){return Promise.prototype.then.call(this,s,f)},c.prototype.thenList=function(s){var f=this;
41return s.forEach(function(h){f=f.thenCore(h)}),f},c.prototype.catch=function(s){s&&(s=s.bind(this));var f=Promise.prototype.catch.call(this,s);return c.convert(f,this)},c.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},c.prototype.error=function(s){return this.then(function(){throw new Error(s)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,Ht.getPageSize=function(s,f,h){if(Me(s)==="object"){var g=s;s=g.orientation,f=g.unit||f,h=g.format||h}f=f||"mm",h=h||"a4",s=(""+(s||"P")).toLowerCase();var y,S=(""+h).toLowerCase(),d={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(f){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+f}var O,E=0,D=0;if(d.hasOwnProperty(S))E=d[S][1]/y,D=d[S][0]/y;else try{E=h[1],D=h[0]}catch{throw new Error("Invalid format: "+h)}if(s==="p"||s==="portrait")s="p",D>E&&(O=D,D=E,E=O);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",E>D&&(O=D,D=E,E=O)}return{width:D,height:E,unit:f,k:y,orientation:s}},e.html=function(s,f){(f=f||{}).callback=f.callback||function(){},f.html2canvas=f.html2canvas||{},f.html2canvas.canvas=f.html2canvas.canvas||this.canvas,f.jsPDF=f.jsPDF||this,f.fontFaces=f.fontFaces?f.fontFaces.map(ef):null;var h=new c(f);return f.worker?h:h.from(s).doCallback()}})(Ht.API),Ht.API.addJS=function(e){return Wp=e,this.internal.events.subscribe("postPutResources",function(){pl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(pl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Gp=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Wp+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){pl!==void 0&&Gp!==void 0&&this.internal.out("/Names <</JavaScript "+pl+" 0 R>>")}),this},(function(e){var i;e.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=t.outline.render().split(/\r\n/),o=0;o<r.length;o++){var c=r[o],s=n.exec(c);if(s!=null){var f=s[1];t.internal.newObjectDeferredBegin(f,!1)}t.internal.write(c)}if(this.outline.createNamedDestinations){var h=this.internal.pages.length,g=[];for(o=0;o<h;o++){var y=t.internal.newObject();g.push(y);var S=t.internal.getPageInfo(o+1);t.internal.write("<< /D["+S.objId+" 0 R /XYZ null null null]>> endobj")}var d=t.internal.newObject();for(t.internal.write("<< /Names [ "),o=0;o<g.length;o++)t.internal.write("(page_"+(o+1)+")"+g[o]+" 0 R");t.internal.write(" ] >>","endobj"),i=t.internal.newObject(),t.internal.write("<< /Dests "+d+" 0 R"),t.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+i+" 0 R"))}]),e.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(n,r,o){var c={title:r,options:o,children:[]};return n==null&&(n=this.root),n.children.push(c),c},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(n){n.id=t.internal.newObjectDeferred();for(var r=0;r<n.children.length;r++)this.genIds_r(n.children[r])},t.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},t.outline.renderItems=function(n){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<n.children.length;o++){var c=n.children[o];this.objStart(c),this.line("/Title "+this.makeString(c.title)),this.line("/Parent "+this.makeRef(n)),o>0&&this.line("/Prev "+this.makeRef(n.children[o-1])),o<n.children.length-1&&this.line("/Next "+this.makeRef(n.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 s=this.count=this.count_r({count:0},c);if(s>0&&this.line("/Count "+s),c.options&&c.options.pageNumber){var f=t.internal.getPageInfo(c.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var h=0;h<n.children.length;h++)this.renderItems(n.children[h])},t.outline.line=function(n){this.ctx.val+=n+`\r
42`},t.outline.makeRef=function(n){return n.id+" 0 R"},t.outline.makeString=function(n){return"("+t.internal.pdfEscape(n)+")"},t.outline.objStart=function(n){this.ctx.val+=`\r
43`+n.id+` 0 obj\r
44<<\r
45`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
46endobj\r
47`},t.outline.count_r=function(n,r){for(var o=0;o<r.children.length;o++)n.count++,this.count_r(n,r.children[o]);return n.count}}])})(Ht.API),(function(e){var i=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,n,r,o,c,s){var f,h=this.decode.DCT_DECODE,g=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=c||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,f=(function(y){for(var S,d=256*y.charCodeAt(4)+y.charCodeAt(5),O=y.length,E={width:0,height:0,numcomponents:1},D=4;D<O;D+=2){if(D+=d,i.indexOf(y.charCodeAt(D+1))!==-1){S=256*y.charCodeAt(D+5)+y.charCodeAt(D+6),E={width:256*y.charCodeAt(D+7)+y.charCodeAt(D+8),height:S,numcomponents:y.charCodeAt(D+9)};break}d=256*y.charCodeAt(D+2)+y.charCodeAt(D+3)}return E})(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),f.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}g={data:t,width:f.width,height:f.height,colorSpace:s,bitsPerComponent:8,filter:h,index:n,alias:r}}return g}})(Ht.API),Ht.API.processPNG=function(e,i,t,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var r,o=Rp(e,{checkCrc:!0}),c=o.width,s=o.height,f=o.channels,h=o.palette,g=o.depth;r=h&&f===1?(function(Q){for(var M=Q.width,ot=Q.height,A=Q.data,T=Q.palette,V=Q.depth,q=!1,ct=[],pt=[],gt=void 0,st=!1,_t=0,Et=0;Et<T.length;Et++){var At=pc(T[Et],4),b=At[0],R=At[1],B=At[2],$=At[3];ct.push(b,R,B),$!=null&&($===0?(_t++,pt.length<1&&pt.push(Et)):$<255&&(st=!0))}if(st||_t>1){q=!0,pt=void 0;var J=M*ot;
47gt=new Uint8Array(J);for(var nt=new DataView(A.buffer),ut=0;ut<J;ut++){var ht=rf(nt,ut,V),wt=pc(T[ht],4)[3];gt[ut]=wt}}else _t===0&&(pt=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:q?8:void 0,colorBytes:A,alphaBytes:gt,needSMask:q,palette:ct,mask:pt}})(o):f===2||f===4?(function(Q){for(var M=Q.data,ot=Q.width,A=Q.height,T=Q.channels,V=Q.depth,q=T===2?"DeviceGray":"DeviceRGB",ct=T-1,pt=ot*A,gt=ct,st=pt*gt,_t=1*pt,Et=Math.ceil(st*V/8),At=Math.ceil(_t*V/8),b=new Uint8Array(Et),R=new Uint8Array(At),B=new DataView(M.buffer),$=new DataView(b.buffer),J=new DataView(R.buffer),nt=!1,ut=0;ut<pt;ut++){for(var ht=ut*T,wt=0;wt<gt;wt++)id($,rf(B,ht+wt,V),ut*gt+wt,V);var Lt=rf(B,ht+gt,V);Lt<(1<<V)-1&&(nt=!0),id(J,Lt,1*ut,V)}return{colorSpace:q,colorsPerPixel:ct,sMaskBitsPerComponent:nt?V:void 0,colorBytes:b,alphaBytes:R,needSMask:nt}})(o):(function(Q){var M=Q.data,ot=Q.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:ot,colorsPerPixel:ot==="DeviceGray"?1:3,colorBytes:M instanceof Uint16Array?(function(A){for(var T=A.length,V=new Uint8Array(2*T),q=new DataView(V.buffer,V.byteOffset,V.byteLength),ct=0;ct<T;ct++)q.setUint16(2*ct,A[ct],!1);return V})(M):M,needSMask:!1}})(o);var y,S,d,O=r,E=O.colorSpace,D=O.colorsPerPixel,N=O.sMaskBitsPerComponent,Y=O.colorBytes,W=O.alphaBytes,z=O.needSMask,ft=O.palette,bt=O.mask,vt=null;return n!==Ht.API.image_compression.NONE&&typeof Hs=="function"?(vt=(function(Q){var M;switch(Q){case Ht.API.image_compression.FAST:M=11;break;case Ht.API.image_compression.MEDIUM:M=13;break;case Ht.API.image_compression.SLOW:M=14;break;default:M=12}return M})(n),y=this.decode.FLATE_DECODE,S="/Predictor ".concat(vt," /Colors ").concat(D," /BitsPerComponent ").concat(g," /Columns ").concat(c),e=Xp(Y,Math.ceil(c*D*g/8),D,g,n),z&&(d=Xp(W,Math.ceil(c*N/8),1,N,n))):(y=void 0,S=void 0,e=Y,z&&(d=W)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:t,data:e,index:i,filter:y,decodeParameters:S,transparency:bt,palette:ft,sMask:d,predictor:vt,width:c,height:s,bitsPerComponent:g,sMaskBitsPerComponent:N,colorSpace:E}}},(function(e){e.processGIF89A=function(i,t,n,r){var o=new qg(i),c=o.width,s=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var h={data:f,width:c,height:s},g=new of(100).encode(h,100);return e.processJPEG.call(this,g,t,n,r)},e.processGIF87A=e.processGIF89A})(Ht.API),En.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 e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var i=0;i<e;i++){var t=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[i]={red:r,green:n,blue:t,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},En.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,i=this.width*this.height*4;this.data=new Uint8Array(i),this[e]()}catch(t){He.log("bit decode error:"+t)}},En.prototype.bit1=function(){var e,i=Math.ceil(this.width/8),t=i%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<i;r++)for(var o=this.datav.getUint8(this.pos++,!0),c=n*this.width*4+8*r*4,s=0;s<8&&8*r+s<this.width;s++){var f=this.palette[o>>7-s&1];this.data[c+4*s]=f.blue,this.data[c+4*s+1]=f.green,this.data[c+4*s+2]=f.red,this.data[c+4*s+3]=255}t!==0&&(this.pos+=4-t)}},En.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),i=e%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<e;r++){var o=this.datav.getUint8(this.pos++,!0),c=n*this.width*4+2*r*4,s=o>>4,f=15&o,h=this.palette[s];if(this.data[c]=h.blue,this.data[c+1]=h.green,this.data[c+2]=h.red,this.data[c+3]=255,2*r+1>=this.width)break;h=this.palette[f],this.data[c+4]=h.blue,this.data[c+4+1]=h.green,this.data[c+4+2]=h.red,this.data[c+4+3]=255}i!==0&&(this.pos+=4-i)}},En.prototype.bit8=function(){for(var e=this.width%4,i=this.height-1;i>=0;i--){for(var t=this.bottom_up?i:this.height-1-i,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;if(r<this.palette.length){var c=this.palette[r];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}e!==0&&(this.pos+=4-e)}},En.prototype.bit15=function(){for(var e=this.width%3,i=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(o&i)/i*255|0,s=(o>>5&i)/i*255|0,f=(o>>10&i)/i*255|0,h=o>>15?255:0,g=n*this.width*4+4*r;this.data[g]=f,this.data[g+1]=s,this.data[g+2]=c,this.data[g+3]=h}this.pos+=e}},En.prototype.bit16=function(){for(var e=this.width%3,i=parseInt("11111",2),t=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var c=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(c&i)/i*255|0,f=(c>>5&t)/t*255|0,h=(c>>11)/i*255|0,g=r*this.width*4+4*o;this.data[g]=h,this.data[g+1]=f,this.data[g+2]=s,this.data[g+3]=255}this.pos+=e}},En.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=i*this.width*4+4*t;this.data[c]=o,this.data[c+1]=r,this.data[c+2]=n,this.data[c+3]=255}this.pos+=this.width%4}},En.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var i=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+4*t;this.data[s]=o,this.data[s+1]=r,this.data[s+2]=n,this.data[s+3]=c}},En.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(i,t,n,r){var o=new En(i,!1),c=o.width,s=o.height,f={data:o.getData(),width:c,height:s},h=new of(100).encode(f,100);return e.processJPEG.call(this,h,t,n,r)}})(Ht.API),rd.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(i,t,n,r){var o=new rd(i),c=o.width,s=o.height,f={data:o.getData(),width:c,height:s},h=new of(100).encode(f,100);return e.processJPEG.call(this,h,t,n,r)}})(Ht.API),Ht.API.processRGBA=function(e,i,t){for(var n=e.data,r=n.length,o=new Uint8Array(r/4*3),c=new Uint8Array(r/4),s=0,f=0,h=0;h<r;h+=4){var g=n[h],y=n[h+1],S=n[h+2],d=n[h+3];o[s++]=g,o[s++]=y,o[s++]=S,c[f++]=d}var O=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(c),data:O,index:i,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Ht.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq
47:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,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},Vo=Ht.API,dl=Vo.getCharWidthsArray=function(e,i){var t,n,r=(i=i||{}).font||this.internal.getFont(),o=i.fontSize||this.internal.getFontSize(),c=i.charSpace||this.internal.getCharSpace(),s=i.widths?i.widths:r.metadata.Unicode.widths,f=s.fof?s.fof:1,h=i.kerning?i.kerning:r.metadata.Unicode.kerning,g=h.fof?h.fof:1,y=i.doKerning!==!1,S=0,d=e.length,O=0,E=s[0]||f,D=[];for(t=0;t<d;
47t++)n=e.charCodeAt(t),typeof r.metadata.widthOfString=="function"?D.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(n))+c*(1e3/o)||0)/1e3):(S=y&&Me(h[n])==="object"&&!isNaN(parseInt(h[n][O],10))?h[n][O]/g:0,D.push((s[n]||E)/f+S)),O=n;return D},Zp=Vo.getStringUnitWidth=function(e,i){var t=(i=i||{}).fontSize||this.internal.getFontSize(),n=i.font||this.internal.getFont(),r=i.charSpace||this.internal.getCharSpace();return Vo.processArabic&&(e=Vo.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,t,r)/t:dl.apply(this,arguments).reduce(function(o,c){return o+c},0)},Yp=function(e,i,t,n){for(var r=[],o=0,c=e.length,s=0;o!==c&&s+i[o]<t;)s+=i[o],o++;r.push(e.slice(0,o));var f=o;for(s=0;o!==c;)s+i[o]>n&&(r.push(e.slice(f,o)),s=0,f=o),s+=i[o],o++;return f!==o&&r.push(e.slice(f,o)),r},Kp=function(e,i,t){t||(t={});var n,r,o,c,s,f,h,g=[],y=[g],S=t.textIndent||0,d=0,O=0,E=e.split(" "),D=dl.apply(this,[" ",t])[0];if(f=t.lineIndent===-1?E[0].length+2:t.lineIndent||0){var N=Array(f).join(" "),Y=[];E.map(function(z){(z=z.split(/\s*\n/)).length>1?Y=Y.concat(z.map(function(ft,bt){return(bt&&ft.length?`
48`:"")+ft})):Y.push(z[0])}),E=Y,f=Zp.apply(this,[N,t])}for(o=0,c=E.length;o<c;o++){var W=0;if(n=E[o],f&&n[0]==`
49`&&(n=n.substr(1),W=1),S+d+(O=(r=dl.apply(this,[n,t])).reduce(function(z,ft){return z+ft},0))>i||W){if(O>i){for(s=Yp.apply(this,[n,r,i-(S+d),i]),g.push(s.shift()),g=[s.pop()];s.length;)y.push([s.shift()]);O=r.slice(n.length-(g[0]?g[0].length:0)).reduce(function(z,ft){return z+ft},0)}else g=[n];y.push(g),S=O+f,d=D}else g.push(n),S+=d+O,d=D}return h=f?function(z,ft){return(ft?N:"")+z.join(" ")}:function(z){return z.join(" ")},y.map(h)},Vo.splitTextToSize=function(e,i,t){var n,r=(t=t||{}).fontSize||this.internal.getFontSize(),o=function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var y=this.internal.getFont(g.fontName,g.fontStyle),S="Unicode";return y.metadata[S]?{widths:y.metadata[S].widths||{0:1},kerning:y.metadata[S].kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var c=1*this.internal.scaleFactor*i/r;o.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/r:0,o.lineIndent=t.lineIndent;var s,f,h=[];for(s=0,f=n.length;s<f;s++)h=h.concat(Kp.apply(this,[n[s],c,o]));return h},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var i="0123456789abcdef",t="klmnopqrstuvwxyz",n={},r={},o=0;o<16;o++)n[t[o]]=i[o],r[i[o]]=t[o];var c=function(S){return"0x"+parseInt(S,10).toString(16)},s=e.__fontmetrics__.compress=function(S){var d,O,E,D,N=["{"];for(var Y in S){if(d=S[Y],isNaN(parseInt(Y,10))?O="'"+Y+"'":(Y=parseInt(Y,10),O=(O=c(Y).slice(2)).slice(0,-1)+r[O.slice(-1)]),typeof d=="number")d<0?(E=c(d).slice(3),D="-"):(E=c(d).slice(2),D=""),E=D+E.slice(0,-1)+r[E.slice(-1)];else{if(Me(d)!=="object")throw new Error("Don't know what to do with value type "+Me(d)+".");E=s(d)}N.push(O+E)}return N.push("}"),N.join("")},f=e.__fontmetrics__.uncompress=function(S){if(typeof S!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,O,E,D,N={},Y=1,W=N,z=[],ft="",bt="",vt=S.length-1,Q=1;Q<vt;Q+=1)(D=S[Q])=="'"?d?(E=d.join(""),d=void 0):d=[]:d?d.push(D):D=="{"?(z.push([W,E]),W={},E=void 0):D=="}"?((O=z.pop())[0][O[1]]=W,E=void 0,W=O[0]):D=="-"?Y=-1:E===void 0?n.hasOwnProperty(D)?(ft+=n[D],E=parseInt(ft,16)*Y,Y=1,ft=""):ft+=D:n.hasOwnProperty(D)?(bt+=n[D],W[E]=parseInt(bt,16)*Y,Y=1,E=void 0,bt=""):bt+=D;return N},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},y={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3me
49k3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
49dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":f("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
49dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
49dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":f("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}
49fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":f("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
49dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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}}}")}};e.events.push(["addFont",function(S){var d=S.font,O=y.Unicode[d.postScriptName];O&&(d.metadata.Unicode={},d.metadata.Unicode.widths=O.widths,d.metadata.Unicode.kerning=O.kerning);var E=g.Unicode[d.postScriptName];E&&(d.metadata.Unicode.encoding=E,d.encoding=E.codePages[0])}])})(Ht.API),(function(e){var i=function(t){for(var n=t.length,r=new Uint8Array(n),o=0;o<n;o++)r[o]=t.charCodeAt(o);return r};e.API.events.push(["addFont",function(t){var n=void 0,r=t.font,o=t.instance;if(!r.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if(typeof(n=o.existsFileInVFS(r.postScriptName)===!1?o.loadFile(r.postScriptName):o.getFileFromVFS(r.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");(function(c,s){s=/^\x00\x01\x00\x00/.test(s)?i(s):i(gl(s)),c.metadata=e.API.TTFFont.open(s),c.metadata.Unicode=c.metadata.Unicode||{encoding:{},kerning:{},widths:[]},c.metadata.glyIdsUsed=[0]})(r,n)}}])})(Ht),Ht.API.addSvgAsImage=function(e,i,t,n,r,o,c,s){if(isNaN(i)||isNaN(t))throw He.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(r))throw He.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=n,f.height=r;var h=f.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,f.width,f.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},y=this;return(ie.canvg?Promise.resolve(ie.canvg):import("./chunk-C5DI4I5H.js")).catch(function(S){return Promise.reject(new Error("Could not load canvg: "+S))}).then(function(S){return S.default?S.default:S}).then(function(S){return S.fromString(h,e,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(S){return S.render(g)}).then(function(){y.addImage(f.toDataURL("image/jpeg",1),i,t,n,r,c,s)})},Ht.API.putTotalPages=function(e){var i,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(i=new RegExp(e,"g"),t=this.internal.getNumberOfPages()):(i=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var r=0;r<this.internal.pages[n].length;r++)this.internal.pages[n][r]=this.internal.pages[n][r].replace(i,t);return this},Ht.API.viewerPreferences=function(e,i){var t;e=e||{},i=i||!1;var n,r,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}},s=Object.keys(c),f=[],h=0,g=0,y=0;function S(O,E){var D,N=!1;for(D=0;D<O.length;D+=1)O[D]===E&&(N=!0);return N}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(c)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,e==="reset"||i===!0){var d=s.length;for(y=0;y<d;y+=1)t[s[y]].value=t[s[y]].defaultValue,t[s[y]].explicitSet=!1}if(Me(e)==="object"){for(r in e)if(o=e[r],S(s,r)&&o!==void 0){if(t[r].type==="boolean"&&typeof o=="boolean")t[r].value=o;else if(t[r].type==="name"&&S(t[r].valueSet,o))t[r].value=o;else if(t[r].type==="integer"&&Number.isInteger(o))t[r].value=o;else if(t[r].type==="array"){for(h=0;h<o.length;h+=1)if(n=!0,o[h].length===1&&typeof o[h][0]=="number")f.push(String(o[h]-1));else if(o[h].length>1){for(g=0;g<o[h].length;g+=1)typeof o[h][g]!="number"&&(n=!1);n===!0&&f.push([o[h][0]-1,o[h][1]-1].join(" "))}t[r].value="["+f.join(" ")+"]"}else t[r].value=t[r].defaultValue;t[r].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var O,E=[];for(O in t)t[O].explicitSet===!0&&(t[O].type==="name"?E.push("/"+O+" /"+t[O].value):E.push("/"+O+" "+t[O].value));E.length!==0&&this.internal.write(`/ViewerPreferences
50<<
51`+E.join(`
52`)+`
53>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},(function(e){var i=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',r=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(n)),c=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),h=o.length+c.length+s.length+r.length+f.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+h+" >>"),this.internal.write("stream"),this.internal.write(r+o+c+s+f),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,r){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",i)),this}})(Ht.API),(function(e){var i=e.API,t=i.pdfEscape16=function(o,c){for(var s,f=c.metadata.Unicode.widths,h=["","0","00","000","0000"],g=[""],y=0,S=o.length;y<S;
53++y){if(s=c.metadata.characterToGlyph(o.charCodeAt(y)),c.metadata.glyIdsUsed.push(s),c.metadata.toUnicode[s]=o.charCodeAt(y),f.indexOf(s)==-1&&(f.push(s),f.push([parseInt(c.metadata.widthOfGlyph(s),10)])),s=="0")return g.join("");s=s.toString(16),g.push(h[4-s.length],s)}return g.join("")},n=function(o){var c,s,f,h,g,y,S;for(g=`/CIDInit /ProcSet findresource begin
5412 dict begin
55begincmap
56/CIDSystemInfo <<
57  /Registry (Adobe)
58  /Ordering (UCS)
59  /Supplement 0
60>> def
61/CMapName /Adobe-Identity-UCS def
62/CMapType 2 def
631 begincodespacerange
64<0000><ffff>
65endcodespacerange`,f=[],y=0,S=(s=Object.keys(o).sort(function(d,O){return d-O})).length;y<S;y++)c=s[y],f.length>=100&&(g+=`
66`+f.length+` beginbfchar
67`+f.join(`
68`)+`
69endbfchar`,f=[]),o[c]!==void 0&&o[c]!==null&&typeof o[c].toString=="function"&&(h=("0000"+o[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),f.push("<"+c+"><"+h+">"));return f.length&&(g+=`
70`+f.length+` beginbfchar
71`+f.join(`
72`)+`
73endbfchar
74`),g+`endcmap
75CMapName currentdict /CMap defineresource pop
76end
77end`};i.events.push(["putFont",function(o){(function(c){var s=c.font,f=c.out,h=c.newObject,g=c.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var y=s.metadata.Unicode.widths,S=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),d="",O=0;O<S.length;O++)d+=String.fromCharCode(S[O]);var E=h();g({data:d,addLength1:!0,objectId:E}),f("endobj");var D=h();g({data:n(s.metadata.toUnicode),addLength1:!0,objectId:D}),f("endobj");var N=h();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+Go(s.fontName)),f("/FontFile2 "+E+" 0 R"),f("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),f("/Flags "+s.metadata.flags),f("/StemV "+s.metadata.stemV),f("/ItalicAngle "+s.metadata.italicAngle),f("/Ascent "+s.metadata.ascender),f("/Descent "+s.metadata.decender),f("/CapHeight "+s.metadata.capHeight),f(">>"),f("endobj");var Y=h();f("<<"),f("/Type /Font"),f("/BaseFont /"+Go(s.fontName)),f("/FontDescriptor "+N+" 0 R"),f("/W "+e.API.PDFObject.convert(y)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+s.encoding+")"),f(">>"),f(">>"),f("endobj"),s.objectNumber=h(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+D+" 0 R"),f("/BaseFont /"+Go(s.fontName)),f("/Encoding /"+s.encoding),f("/DescendantFonts ["+Y+" 0 R]"),f(">>"),f("endobj"),s.isAlreadyPutted=!0}})(o)}]),i.events.push(["putFont",function(o){(function(c){var s=c.font,f=c.out,h=c.newObject,g=c.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var y=s.metadata.rawData,S="",d=0;d<y.length;d++)S+=String.fromCharCode(y[d]);var O=h();g({data:S,addLength1:!0,objectId:O}),f("endobj");var E=h();g({data:n(s.metadata.toUnicode),addLength1:!0,objectId:E}),f("endobj");var D=h();f("<<"),f("/Descent "+s.metadata.decender),f("/CapHeight "+s.metadata.capHeight),f("/StemV "+s.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+O+" 0 R"),f("/Flags 96"),f("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),f("/FontName /"+Go(s.fontName)),f("/ItalicAngle "+s.metadata.italicAngle),f("/Ascent "+s.metadata.ascender),f(">>"),f("endobj"),s.objectNumber=h();for(var N=0;N<s.metadata.hmtx.widths.length;N++)s.metadata.hmtx.widths[N]=parseInt(s.metadata.hmtx.widths[N]*(1e3/s.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+E+" 0 R/BaseFont/"+Go(s.fontName)+"/FontDescriptor "+D+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),f("endobj"),s.isAlreadyPutted=!0}})(o)}]);var r=function(o){var c,s=o.text||"",f=o.x,h=o.y,g=o.options||{},y=o.mutex||{},S=y.pdfEscape,d=y.activeFontKey,O=y.fonts,E=d,D="",N=0,Y="",W=O[E].encoding;if(O[E].encoding!=="Identity-H")return{text:s,x:f,y:h,options:g,mutex:y};for(Y=s,E=d,Array.isArray(s)&&(Y=s[0]),N=0;N<Y.length;N+=1)O[E].metadata.hasOwnProperty("cmap")&&(c=O[E].metadata.cmap.unicode.codeMap[Y[N].charCodeAt(0)]),c||Y[N].charCodeAt(0)<256&&O[E].metadata.hasOwnProperty("Unicode")?D+=Y[N]:D+="";var z="";return parseInt(E.slice(1))<14||W==="WinAnsiEncoding"?z=S(D,E).split("").map(function(ft){return ft.charCodeAt(0).toString(16)}).join(""):W==="Identity-H"&&(z=t(D,O[E])),y.isHex=!0,{text:z,x:f,y:h,options:g,mutex:y}};i.events.push(["postProcessText",function(o){var c=o.text||"",s=[],f={text:c,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(c)){var h=0;for(h=0;h<c.length;h+=1)Array.isArray(c[h])&&c[h].length===3?s.push([r(Object.assign({},f,{text:c[h][0]})).text,c[h][1],c[h][2]]):s.push(r(Object.assign({},f,{text:c[h]})).text);o.text=s}else o.text=r(Object.assign({},f,{text:c})).text}])})(Ht),(function(e){var i=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return i.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,n){return i.call(this),this.internal.vFS[t]=n,this},e.getFileFromVFS=function(t){return i.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}})(Ht.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var r,o,c,s,f,h,g,y=i,S=[[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]],d=[[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]],O={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},E={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},D=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],N=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)$/),Y=!1,W=0;this.__bidiEngine__={};var z=function(A){var T=A.charCodeAt(),V=T>>8,q=E[V];return q!==void 0?y[256*q+(255&T)]:V===252||V===253?"AL":N.test(V)?"L":V===8?"R":"N"},ft=function(A){for(var T,V=0;V<A.length;V++){if((T=z(A.charAt(V)))==="L")return!1;if(T==="R")return!0}return!1},bt=function(A,T,V,q){var ct,pt,gt,st,_t=T[q];switch(_t){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Y=!1;break;case"N":case"AN":break;case"EN":Y&&(_t="AN");break;case"AL":Y=!0,_t="R";break;case"WS":case"BN":_t="N";break;case"CS":q<1||q+1>=T.length||(ct=V[q-1])!=="EN"&&ct!=="AN"||(pt=T[q+1])!=="EN"&&pt!=="AN"?_t="N":Y&&(pt="AN"),_t=pt===ct?pt:"N";break;case"ES":_t=(ct=q>0?V[q-1]:"B")==="EN"&&q+1<T.length&&T[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&V[q-1]==="EN"){_t="EN";break}if(Y){_t="N";break}for(gt=q+1,st=T.length;gt<st&&T[gt]==="ET";)gt++;_t=gt<st&&T[gt]==="EN"?"EN":"N";break;case"NSM":if(c&&!s){for(st=T.length,gt=q+1;gt<st&&T[gt]==="NSM";)gt++;if(gt<st){var Et=A[q],At=Et>=1425&&Et<=2303||Et===64286;if(ct=T[gt],At&&(ct==="R"||ct==="AL")){_t="R";break}}}_t=q<1||(ct=T[q-1])==="B"?"N":V[q-1];break;case"B":Y=!1,r=!0,_t=W;break;case"S":o=!0,_t="N"}return _t},vt=function(A,T,V){var q=A.split("");return V&&Q(q,V,{hiLevel:W}),q.reverse(),T&&T.reverse(),q.join("")},Q=function(A,T,V){var q,ct,pt,gt,st,_t=-1,Et=A.length,At=0,b=[],R=W?d:S,B=[];for(Y=!1,r=!1,o=!1,ct=0;ct<Et;ct++)B[ct]=z(A[ct]);for(pt=0;pt<Et;pt++){if(st=At,b[pt]=bt(A,B,b,pt),q=240&(At=R[st][O[b[pt]]]),At&=15,T[pt]=gt=R[At][5],q>0)if(q===16){for(ct=_t;ct<pt;ct++)T[ct]=1;_t=-1}else _t=-1;if(R[At][6])_t===-1&&(_t=pt);else if(_t>-1){for(ct=_t;ct<pt;ct++)T[ct]=gt;_t=-1}B[pt]==="B"&&(T[pt]=0),V.hiLevel|=gt}o&&(function($,J,nt){for(var ut=0;ut<nt;ut++)if($[ut]==="S"){J[ut]=W;
77for(var ht=ut-1;ht>=0&&$[ht]==="WS";ht--)J[ht]=W}})(B,T,Et)},M=function(A,T,V,q,ct){if(!(ct.hiLevel<A)){if(A===1&&W===1&&!r)return T.reverse(),void(V&&V.reverse());for(var pt,gt,st,_t,Et=T.length,At=0;At<Et;){if(q[At]>=A){for(st=At+1;st<Et&&q[st]>=A;)st++;for(_t=At,gt=st-1;_t<gt;_t++,gt--)pt=T[_t],T[_t]=T[gt],T[gt]=pt,V&&(pt=V[_t],V[_t]=V[gt],V[gt]=pt);At=st}At++}}},ot=function(A,T,V){var q=A.split(""),ct={hiLevel:W};return V||(V=[]),Q(q,V,ct),(function(pt,gt,st){if(st.hiLevel!==0&&g)for(var _t,Et=0;Et<pt.length;Et++)gt[Et]===1&&(_t=D.indexOf(pt[Et]))>=0&&(pt[Et]=D[_t+1])})(q,V,ct),M(2,q,T,V,ct),M(1,q,T,V,ct),q.join("")};return this.__bidiEngine__.doBidiReorder=function(A,T,V){if((function(ct,pt){if(pt)for(var gt=0;gt<ct.length;gt++)pt[gt]=gt;s===void 0&&(s=ft(ct)),h===void 0&&(h=ft(ct))})(A,T),c||!f||h)if(c&&f&&s^h)W=s?1:0,A=vt(A,T,V);else if(!c&&f&&h)W=s?1:0,A=ot(A,T,V),A=vt(A,T);else if(!c||s||f||h){if(c&&!f&&s^h)A=vt(A,T),s?(W=0,A=ot(A,T,V)):(W=1,A=ot(A,T,V),A=vt(A,T));else if(c&&s&&!f&&h)W=1,A=ot(A,T,V),A=vt(A,T);else if(!c&&!f&&s^h){var q=g;s?(W=1,A=ot(A,T,V),W=0,g=!1,A=ot(A,T,V),g=q):(W=0,A=ot(A,T,V),A=vt(A,T),W=1,g=!1,A=ot(A,T,V),g=q,A=vt(A,T))}}else W=0,A=ot(A,T,V);else W=s?1:0,A=ot(A,T,V);return A},this.__bidiEngine__.setOptions=function(A){A&&(c=A.isInputVisual,f=A.isOutputVisual,s=A.isInputRtl,h=A.isOutputRtl,g=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var i=["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"],t=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var r=n.text;n.x,n.y;var o=n.options||{};
77n.mutex,o.lang;var c=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,t.setOptions(o),Object.prototype.toString.call(r)==="[object Array]"){var s=0;for(c=[],s=0;s<r.length;s+=1)Object.prototype.toString.call(r[s])==="[object Array]"?c.push([t.doBidiReorder(r[s][0]),r[s][1],r[s][2]]):c.push([t.doBidiReorder(r[s])]);n.text=c}else n.text=t.doBidiReorder(r);t.setOptions({isInputVisual:!0})}])})(Ht),Ht.API.TTFFont=(function(){function e(i){var t;if(this.rawData=i,t=this.contents=new Hr(i),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new n5(this),this.registerTTF()}return e.open=function(i){return new e(i)},e.prototype.parse=function(){return this.directory=new Hg(this.contents),this.head=new $g(this),this.name=new Kg(this),this.cmap=new _d(this),this.toUnicode={},this.hhea=new Gg(this),this.maxp=new Xg(this),this.hmtx=new Jg(this),this.post=new Zg(this),this.os2=new Wg(this),this.loca=new i5(this),this.glyf=new Qg(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]},e.prototype.registerTTF=function(){var i,t,n,r,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var c,s,f,h;for(h=[],c=0,s=(f=this.bbox).length;c<s;c++)i=f[c],h.push(Math.round(i*this.scaleFactor));return h}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(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")},e.prototype.characterToGlyph=function(i){var t;return((t=this.cmap.unicode)!=null?t.codeMap[i]:void 0)||0},e.prototype.widthOfGlyph=function(i){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(i).advance*t},e.prototype.widthOfString=function(i,t,n){var r,o,c,s;for(c=0,o=0,s=(i=""+i).length;0<=s?o<s:o>s;o=0<=s?++o:--o)r=i.charCodeAt(o),c+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return c*(t/1e3)},e.prototype.lineHeight=function(i,t){var n;return t==null&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*i},e})();var Pn,Hr=(function(){function e(i){this.data=i??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(i){return this.data[this.pos++]=i},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(i){return this.writeByte(i>>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},e.prototype.readInt32=function(){var i;return(i=this.readUInt32())>=2147483648?i-4294967296:i},e.prototype.writeInt32=function(i){return i<0&&(i+=4294967296),this.writeUInt32(i)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(i){return this.writeByte(i>>8&255),this.writeByte(255&i)},e.prototype.readInt16=function(){var i;return(i=this.readUInt16())>=32768?i-65536:i},e.prototype.writeInt16=function(i){return i<0&&(i+=65536),this.writeUInt16(i)},e.prototype.readString=function(i){var t,n;for(n=[],t=0;0<=i?t<i:t>i;t=0<=i?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(i){var t,n,r;for(r=[],t=0,n=i.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(i.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(i){return this.writeInt16(i)},e.prototype.readLongLong=function(){var i,t,n,r,o,c,s,f;return i=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),o=this.readByte(),c=this.readByte(),s=this.readByte(),f=this.readByte(),128&i?-1*(72057594037927940*(255^i)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^o)+65536*(255^c)+256*(255^s)+(255^f)+1):72057594037927940*i+281474976710656*t+1099511627776*n+4294967296*r+16777216*o+65536*c+256*s+f},e.prototype.writeLongLong=function(i){var t,n;return t=Math.floor(i/4294967296),n=4294967295&i,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(i){return this.writeInt32(i)},e.prototype.read=function(i){var t,n;for(t=[],n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(i){var t,n,r,o;for(o=[],n=0,r=i.length;n<r;n++)t=i[n],o.push(this.writeByte(t));return o},e})(),Hg=(function(){var e;function i(t){var n,r,o;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,o=this.tableCount;0<=o?r<o:r>o;r=0<=o?++r:--r)n={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[n.tag]=n}return i.prototype.encode=function(t){var n,r,o,c,s,f,h,g,y,S,d,O,E;for(E in d=Object.keys(t).length,f=Math.log(2),y=16*Math.floor(Math.log(d)/f),c=Math.floor(y/f),g=16*d-y,(r=new Hr).writeInt(this.scalarType),r.writeShort(d),r.writeShort(y),r.writeShort(c),r.writeShort(g),o=16*d,h=r.pos+o,s=null,O=[],t)for(S=t[E],r.writeString(E),r.writeInt(e(S)),r.writeInt(h),r.writeInt(S.length),O=O.concat(S),E==="head"&&(s=h),h+=S.length;h%4;)O.push(0),h++;return r.write(O),n=2981146554-e(r.data),r.pos=s+8,r.writeUInt32(n),r.data},e=function(t){var n,r,o,c;for(t=vd.call(t);t.length%4;)t.push(0);for(o=new Hr(t),r=0,n=0,c=t.length;n<c;n=n+=4)r+=o.readUInt32();return 4294967295&r},i})(),Vg={}
77.hasOwnProperty,Zn=function(e,i){for(var t in i)Vg.call(i,t)&&(e[t]=i[t]);function n(){this.constructor=e}return n.prototype=i.prototype,e.prototype=new n,e.__super__=i.prototype,e};Pn=(function(){function e(i){var t;this.file=i,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var $g=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="head",e.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.revision=i.readInt(),this.checkSumAdjustment=i.readInt(),this.magicNumber=i.readInt(),this.flags=i.readShort(),this.unitsPerEm=i.readShort(),this.created=i.readLongLong(),this.modified=i.readLongLong(),this.xMin=i.readShort(),this.yMin=i.readShort(),this.xMax=i.readShort(),this.yMax=i.readShort(),this.macStyle=i.readShort(),this.lowestRecPPEM=i.readShort(),this.fontDirectionHint=i.readShort(),this.indexToLocFormat=i.readShort(),this.glyphDataFormat=i.readShort()},e.prototype.encode=function(i){var t;return(t=new Hr).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(i),t.writeShort(this.glyphDataFormat),t.data},e})(),od=(function(){function e(i,t){var n,r,o,c,s,f,h,g,y,S,d,O,E,D,N,Y,W;switch(this.platformID=i.readUInt16(),this.encodingID=i.readShort(),this.offset=t+i.readInt(),y=i.pos,i.pos=this.offset,this.format=i.readUInt16(),this.length=i.readUInt16(),this.language=i.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(f=0;f<256;++f)this.codeMap[f]=i.readByte();break;case 4:for(d=i.readUInt16(),S=d/2,i.pos+=6,o=(function(){var z,ft;for(ft=[],f=z=0;0<=S?z<S:z>S;f=0<=S?++z:--z)ft.push(i.readUInt16());return ft})(),i.pos+=2,E=(function(){var z,ft;for(ft=[],f=z=0;0<=S?z<S:z>S;f=0<=S?++z:--z)ft.push(i.readUInt16());return ft})(),h=(function(){var z,ft;for(ft=[],f=z=0;0<=S?z<S:z>S;f=0<=S?++z:--z)ft.push(i.readUInt16());return ft})(),g=(function(){var z,ft;for(ft=[],f=z=0;0<=S?z<S:z>S;f=0<=S?++z:--z)ft.push(i.readUInt16());return ft})(),r=(this.length-i.pos+this.offset)/2,s=(function(){var z,ft;for(ft=[],f=z=0;0<=r?z<r:z>r;f=0<=r?++z:--z)ft.push(i.readUInt16());return ft})(),f=N=0,W=o.length;N<W;f=++N)for(D=o[f],n=Y=O=E[f];O<=D?Y<=D:Y>=D;n=O<=D?++Y:--Y)g[f]===0?c=n+h[f]:(c=s[g[f]/2+(n-O)-(S-f)]||0)!==0&&(c+=h[f]),this.codeMap[n]=65535&c}i.pos=y}return e.encode=function(i,t){var n,r,o,c,s,f,h,g,y,S,d,O,E,D,N,Y,W,z,ft,bt,vt,Q,M,ot,A,T,V,q,ct,pt,gt,st,_t,Et,At,b,R,B,$,J,nt,ut,ht,wt,Lt,Ot;switch(q=new Hr,c=Object.keys(i).sort(function(Tt,Gt){return Tt-Gt}),t){case"macroman":for(E=0,D=(function(){var Tt=[];for(O=0;O<256;++O)Tt.push(0);return Tt})(),Y={0:0},o={},ct=0,_t=c.length;ct<_t;ct++)Y[ht=i[r=c[ct]]]==null&&(Y[ht]=++E),o[r]={old:i[r],new:Y[i[r]]},D[r]=Y[i[r]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(D),{charMap:o,subtable:q.data,maxGlyphID:E+1};case"unicode":for(T=[],y=[],W=0,Y={},n={},N=h=null,pt=0,Et=c.length;pt<Et;pt++)Y[ft=i[r=c[pt]]]==null&&(Y[ft]=++W),n[r]={old:ft,new:Y[ft]},s=Y[ft]-r,N!=null&&s===h||(N&&y.push(N),T.push(r),h=s),N=r;for(N&&y.push(N),y.push(65535),T.push(65535),ot=2*(M=T.length),Q=2*Math.pow(Math.log(M)/Math.LN2,2),S=Math.log(Q/2)/Math.LN2,vt=2*M-Q,f=[],bt=[],d=[],O=gt=0,At=T.length;gt<At;O=++gt){if(A=T[O],g=y[O],A===65535){f.push(0),bt.push(0);break}if(A-(V=n[A].new)>=32768)for(f.push(0),bt.push(2*(d.length+M-O)),r=st=A;A<=g?st<=g:st>=g;r=A<=g?++st:--st)d.push(n[r].new);else f.push(V-A),bt.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*M+2*d.length),q.writeUInt16(0),q.writeUInt16(ot),q.writeUInt16(Q),q.writeUInt16(S),q.writeUInt16(vt),nt=0,b=y.length;nt<b;nt++)r=y[nt],q.writeUInt16(r);for(q.writeUInt16(0),ut=0,R=T.length;ut<R;ut++)r=T[ut],q.writeUInt16(r);for(wt=0,B=f.length;wt<B;wt++)s=f[wt],q.writeUInt16(s);for(Lt=0,$=bt.length;
77Lt<$;Lt++)z=bt[Lt],q.writeUInt16(z);for(Ot=0,J=d.length;Ot<J;Ot++)E=d[Ot],q.writeUInt16(E);return{charMap:n,subtable:q.data,maxGlyphID:W+1}}},e})(),_d=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="cmap",e.prototype.parse=function(i){var t,n,r;for(i.pos=this.offset,this.version=i.readUInt16(),r=i.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new od(i,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},e.encode=function(i,t){var n,r;return t==null&&(t="macroman"),n=od.encode(i,t),(r=new Hr).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e})(),Gg=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="hhea",e.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.ascender=i.readShort(),this.decender=i.readShort(),this.lineGap=i.readShort(),this.advanceWidthMax=i.readShort(),this.minLeftSideBearing=i.readShort(),this.minRightSideBearing=i.readShort(),this.xMaxExtent=i.readShort(),this.caretSlopeRise=i.readShort(),this.caretSlopeRun=i.readShort(),this.caretOffset=i.readShort(),i.pos+=8,this.metricDataFormat=i.readShort(),this.numberOfMetrics=i.readUInt16()},e})(),Wg=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="OS/2",e.prototype.parse=function(i){if(i.pos=this.offset,this.version=i.readUInt16(),this.averageCharWidth=i.readShort(),this.weightClass=i.readUInt16(),this.widthClass=i.readUInt16(),this.type=i.readShort(),this.ySubscriptXSize=i.readShort(),this.ySubscriptYSize=i.readShort(),this.ySubscriptXOffset=i.readShort(),this.ySubscriptYOffset=i.readShort(),this.ySuperscriptXSize=i.readShort(),this.ySuperscriptYSize=i.readShort(),this.ySuperscriptXOffset=i.readShort(),this.ySuperscriptYOffset=i.readShort(),this.yStrikeoutSize=i.readShort(),this.yStrikeoutPosition=i.readShort(),this.familyClass=i.readShort(),this.panose=(function(){var t,n;for(n=[],t=0;t<10;++t)n.push(i.readByte());return n})(),this.charRange=(function(){var t,n;for(n=[],t=0;t<4;++t)n.push(i.readInt());return n})(),this.vendorID=i.readString(4),this.selection=i.readShort(),this.firstCharIndex=i.readShort(),this.lastCharIndex=i.readShort(),this.version>0&&(this.ascent=i.readShort(),this.descent=i.readShort(),this.lineGap=i.readShort(),this.winAscent=i.readShort(),this.winDescent=i.readShort(),this.codePageRange=(function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(i.readInt());return n})(),this.version>1))return this.xHeight=i.readShort(),this.capHeight=i.readShort(),this.defaultChar=i.readShort(),this.breakChar=i.readShort(),this.maxContext=i.readShort()},e})(),Zg=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="post",e.prototype.parse=function(i){var t,n,r;switch(i.pos=this.offset,this.format=i.readInt(),this.italicAngle=i.readInt(),this.underlinePosition=i.readShort(),this.underlineThickness=i.readShort(),this.isFixedPitch=i.readInt(),this.minMemType42=i.readInt(),this.maxMemType42=i.readInt(),this.minMemType1=i.readInt(),this.maxMemType1=i.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(n=i.readUInt16(),this.glyphNameIndex=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)this.glyphNameIndex.push(i.readUInt16());for(this.names=[],r=[];i.pos<this.offset+this.length;)t=i.readByte(),r.push(this.names.push(i.readString(t)));return r;case 151552:return n=i.readUInt16(),this.offsets=i.read(n);case 262144:return this.map=function(){var c,s,f;for(f=[],o=c=0,s=this.file.maxp.numGlyphs;0<=s?c<s:c>s;o=0<=s?++c:--c)f.push(i.readUInt32());return f}.call(this)}},e})(),Yg=function(e,i){this.raw=e,this.length=e.length,this.platformID=i.platformID,this.encodingID=i.encodingID,this.languageID=i.languageID},Kg=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="name",e.prototype.parse=function(i){var t,n,r,o,c,s,f,h,g,y,S;for(i.pos=this.offset,i.readShort(),t=i.readShort(),s=i.readShort(),n=[],o=0;0<=t?o<t:o>t;o=0<=t?++o:--o)n.push({platformID:i.readShort(),encodingID:i.readShort(),languageID:i.readShort(),nameID:i.readShort(),length:i.readShort(),offset:this.offset+s+i.readShort()});for(f={},o=g=0,y=n.length;g<y;o=++g)r=n[o],i.pos=r.offset,h=i.readString(r.length),c=new Yg(h,r),f[S=r.nameID]==null&&(f[S]=[]),f[r.nameID].push(c);this.strings=f,this.copyright=f[0],this.fontFamily=f[1],this.fontSubfam
77ily=f[2],this.uniqueSubfamily=f[3],this.fontName=f[4],this.version=f[5];try{this.postscriptName=f[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=f[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=f[7],this.manufacturer=f[8],this.designer=f[9],this.description=f[10],this.vendorUrl=f[11],this.designerUrl=f[12],this.license=f[13],this.licenseUrl=f[14],this.preferredFamily=f[15],this.preferredSubfamily=f[17],this.compatibleFull=f[18],this.sampleText=f[19]},e})(),Xg=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="maxp",e.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.numGlyphs=i.readUInt16(),this.maxPoints=i.readUInt16(),this.maxContours=i.readUInt16(),this.maxCompositePoints=i.readUInt16(),this.maxComponentContours=i.readUInt16(),this.maxZones=i.readUInt16(),this.maxTwilightPoints=i.readUInt16(),this.maxStorage=i.readUInt16(),this.maxFunctionDefs=i.readUInt16(),this.maxInstructionDefs=i.readUInt16(),this.maxStackElements=i.readUInt16(),this.maxSizeOfInstructions=i.readUInt16(),this.maxComponentElements=i.readUInt16(),this.maxComponentDepth=i.readUInt16()},e})(),Jg=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="hmtx",e.prototype.parse=function(i){var t,n,r,o,c,s,f;for(i.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++t:--t)this.metrics.push({advance:i.readUInt16(),lsb:i.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var h,g;for(g=[],t=h=0;0<=r?h<r:h>r;t=0<=r?++h:--h)g.push(i.readInt16());return g})(),this.widths=function(){var h,g,y,S;for(S=[],h=0,g=(y=this.metrics).length;h<g;h++)o=y[h],S.push(o.advance);return S}.call(this),n=this.widths[this.widths.length-1],f=[],t=c=0;0<=r?c<r:c>r;t=0<=r?++c:--c)f.push(this.widths.push(n));return f},e.prototype.forGlyph=function(i){return i in this.metrics?this.metrics[i]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[i-this.metrics.length]}},e})(),vd=[].slice,Qg=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(i){var t,n,r,o,c,s,f,h,g,y;return i in this.cache?this.cache[i]:(o=this.file.loca,t=this.file.contents,n=o.indexOf(i),(r=o.lengthOf(i))===0?this.cache[i]=null:(t.pos=this.offset+n,c=(s=new Hr(t.read(r))).readShort(),h=s.readShort(),y=s.readShort(),f=s.readShort(),g=s.readShort(),this.cache[i]=c===-1?new e5(s,h,y,f,g):new t5(s,c,h,y,f,g),this.cache[i]))},e.prototype.encode=function(i,t,n){var r,o,c,s,f;for(c=[],o=[],s=0,f=t.length;s<f;s++)r=i[t[s]],o.push(c.length),r&&(c=c.concat(r.encode(n)));return o.push(c.length),{table:c,offsets:o}},e})(),t5=(function(){function e(i,t,n,r,o,c){this.raw=i,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=o,this.yMax=c,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),e5=(function(){function e(i,t,n,r,o){var c,s;for(this.raw=i,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],c=this.raw;s=c.readShort(),this.glyphOffsets.push(c.pos),this.glyphIDs.push(c.readUInt16()),32&s;)c.pos+=1&s?4:2,128&s?c.pos+=8:64&s?c.pos+=4:8&s&&(c.pos+=2)}return e.prototype.encode=function(){var i,t,n;for(t=new Hr(vd.call(this.raw.data)),i=0,n=this.glyphIDs.length;i<n;++i)t.pos=this.glyphOffsets[i];return t.data},e})(),i5=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zn(e,Pn),e.prototype.tag="loca",e.prototype.parse=function(i){var t,n;return i.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?function(){var r,o;for(o=[],n=0,r=this.length;n<r;n+=2)o.push(2*i.readUInt16());return o}.call(this):function(){var r,o;for(o=[],n=0,r=this.length;n<r;n+=4)o.push(i.readUInt32());return o}.call(this)},e.prototype.indexOf=function(i){return this.offsets[i]},e.prototype.lengthOf=function(i){return this.offsets[i+1]-this.offsets[i]},e.prototype.encode=function(i,t){for(var n=new Uint32Array(this.offsets.length),r=0,o=0,c=0;c<n.length;++c)if(n[c]=r,o<t.length&&t[o]==c){++o,n[c]=r;var s=this.offsets[c],f=this.offsets[c+1]-s;f>0&&(r+=f)}for(var h=new Array(4*n.length),g=0;g<n.length;++g)h[4*g+3]=255&n[g],h[4*g+2]=(65280&n[g])>>8,h[4*g+1]=(16711680&n[g])>>16,h[4*g]=(4278190080&n[g])>>24;return h},e})(),n5=(function(){function e(i){this.font=i,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var i,t,n,r,o;for(t in r=this.font.cmap.tables[0].codeMap,i={},o=this.subset)n=o[t],i[t]=r[n];return i},e.prototype.glyphsFor=function(i){var t,n,r,o,c,s,f;for(r={},c=0,s=i.length;c<s;c++)r[o=i[c]]=this.font.glyf.glyphFor(o);
77for(o in t=[],r)(n=r[o])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(o in f=this.glyphsFor(t))n=f[o],r[o]=n;return r},e.prototype.encode=function(i,t){var n,r,o,c,s,f,h,g,y,S,d,O,E,D,N;for(r in n=_d.encode(this.generateCmap(),"unicode"),c=this.glyphsFor(i),d={0:0},N=n.charMap)d[(f=N[r]).old]=f.new;for(O in S=n.maxGlyphID,c)O in d||(d[O]=S++);return g=(function(Y){var W,z;for(W in z={},Y)z[Y[W]]=W;return z})(d),y=Object.keys(g).sort(function(Y,W){return Y-W}),E=(function(){var Y,W,z;for(z=[],Y=0,W=y.length;Y<W;Y++)s=y[Y],z.push(g[s]);return z})(),o=this.font.glyf.encode(c,E,d),h=this.font.loca.encode(o.offsets,E),D={cmap:this.font.cmap.raw(),glyf:o.table,loca:h,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(t)},this.font.os2.exists&&(D["OS/2"]=this.font.os2.raw()),this.font.directory.encode(D)},e})();Ht.API.PDFObject=(function(){var e;function i(){}return e=function(t,n){return(Array(n+1).join("0")+t).slice(-n)},i.convert=function(t){var n,r,o,c;if(Array.isArray(t))return"["+(function(){var s,f,h;for(h=[],s=0,f=t.length;s<f;s++)n=t[s],h.push(i.convert(n));return h})().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t?.isString)return"("+t+")";if(t instanceof Date)return"(D:"+e(t.getUTCFullYear(),4)+e(t.getUTCMonth(),2)+e(t.getUTCDate(),2)+e(t.getUTCHours(),2)+e(t.getUTCMinutes(),2)+e(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(r in o=["<<"],t)c=t[r],o.push("/"+r+" "+i.convert(c));return o.push(">>"),o.join(`
78`)}return""+t},i})();var r5=su.isFinite,o5=Math.min;function a5(e){var i=Math[e];return function(t,n){if(t=yu(t),n=n==null?0:o5(js(n),292),n&&r5(t)){var r=(rc(t)+"e").split("e"),o=i(r[0]+"e"+(+r[1]+n));return r=(rc(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return i(t)}}var xd=a5;var s5=xd("floor"),Sl=s5;var l5=Object.prototype,c5=l5.hasOwnProperty,f5=bu(function(e,i,t){c5.call(e,t)?e[t].push(i):mu(e,t,[i])}),uf=f5;var u5=Math.max;function h5(e,i,t){var n=e==null?0:e.length;if(!n)return-1;var r=t==null?0:js(t);return r<0&&(r=u5(n+r,0)),pu(e,i,r)}var hf=h5;function p5(e,i,t){for(var n=-1,r=e.length;++n<r;){var o=e[n],c=i(o);if(c!=null&&(s===void 0?c===c&&!lu(c):t(c,s)))var s=c,f=o}return f}var yd=p5;function d5(e,i){return e<i}var wd=d5;function g5(e){return e&&e.length?yd(e,du,wd):void 0}var bd=g5;var m5=1,_5=4;function v5(e){return _u(e,m5|_5)}var Yn=v5;var x5=()=>({text:"Continue Order",type:"primary",class:"align-self-center"}),y5=()=>({text:"Edit configuration",type:"tiny-primary"}),Cl=e=>[e,"note"],ts=e=>[e,"options"],Cd=()=>[];function w5(e,i){e&1&&(j(0,"div",5),_e(1,"mat-spinner",6),X())}function b5(e,i){if(e&1&&(j(0,"h2",109),lt(1),X()),e&2){let t=Z(5);H(),Ke(t.configuration==null?null:t.configuration.type)}}function S5(e,i){if(e&1&&(j(0,"h5",110),lt(1),X()),e&2){let t=Z(5);H(),Ke(t.configuration==null?null:t.configuration.mpn)}}function C5(e,i){if(e&1&&(j(0,"p",121),lt(1),X()),e&2){let t=Z().$implicit;H(),Yt("",t==null?null:t.quantity,"x")}}function A5(e,i){if(e&1&&(gn(0),j(1,"p"),lt(2),X(),mn()),e&2){let t=i.$implicit,n=i.last;H(),_n("mb-halfbase",!n),H(),Ke(t)}}function k5(e,i){if(e&1&&(j(0,"div")(1,"div",118),Ft(2,C5,2,1,"p",119),j(3,"span",120),Ft(4,A5,3,3,"ng-container",116),X()()()),e&2){let t=i.$implicit;H(2),it("ngIf",(t==null?null:t.quantity)>=1),H(2),it("ngForOf",t.name.split(";"))}}function N5(e,i){e&1&&(j(0,"div",118)(1,"div",121)(2,"p",122),lt(3,"--"),X()(),j(4,"div",118)(5,"p",123),lt(6,"*None"),X()()())}function L5(e,i){if(e&1&&(j(0,"div",113)(1,"div",114)(2,"p",115),lt(3),X()(),Ft(4,k5,5,2,"div",116)(5,N5,7,0,"div",117),X()),e&2){let t=i.$implicit,n=Z(6);H(3),Ke(t),H(),it("ngForOf",n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t]),H(),it("ngIf",(n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference].category[t]==null?null:n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks)&&n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t].length==0)}}function E5(e,i){if(e&1&&(j(0,"div",111),Ft(1,L5,6,3,"div",112),X()),e&2){let t=Z(5);H(),it("ngForOf",t.renderedCategories)("ngForTrackBy",t.trackByCategory)}}function I5(e,i){if(e&1&&(j(0,"div",124)(1,"span",125),_e(2,"mat-icon",126),lt(3),j(4,"p",127),lt(5,"GB Memory"),X()(),j(6,"span",125),_e(7,"mat-icon",128),lt(8),j(9,"p",127),lt(10,"Watts"),X()(),j(11,"span",125),_e(12,"mat-icon",129),lt(13),j(14,"p",127),lt(15,"BTU/Hr"),X()()()),e&2){let t=Z(5);H(3),Yt(" ",t.specTotals==null?null:t.specTotals.memory," "),H(5),Yt(" ",t.specTotals==null?null:t.specTotals.wattage," "),H(5),Yt(" ",t.isNarrow?t.specTotals==null?null:t.specTotals.btu.toFixed(0):t.specTotals==null?null:t.specTotals.btu," ")}}function P5(e,i){if(e&1){let t=qe();j(0,"div",90)(1,"div",91)(2,"div")(3,"div",92),Ft(4,b5,2,1,"h2",93)(5,S5,2,1,"h5",94),j(6,"div",95),_e(7,"img",96),X()(),j(8,"div",97)(9,"p",98),lt(10,"Configured price"),X(),j(11,"h2",99),lt(12),X()(),j(13,"div",100)(14,"p",101),lt(15,"Shipping & Sales Tax"),X(),j(16,"p",101),lt(17,"TBD after system validation"),X()(),j(18,"div",102)(19,"p",103),lt(20,"Review your order"),X(),j(21,"button",104),De("click",function(){je(t);let r=Z(4);return Ue(r.selectedPane=!r.selectedPane)}),j(22,"p",105),lt(23,"Edit"),X()()(),_e(24,"div"),j(25,"div",106),Ft(26,E5,2,2,"div",107),X()(),Ft(27,I5,16,3,"div",108),X()()}if(e&2){let t=Z(4);H(4),it("ngIf",t.configuration==null?null:t.configuration.type),H(),it("ngIf",t.configuration==null?null:t.configuration.mpn),H(2),it("src",t.getWebpImg(t.configuration==null?null:t.configuration.imgUrl),dr),H(5),Ke(t.configuration.optimizedConfigurations[t.activeReference].priceTotal),H(14),it("ngIf",t.data[0]),H(),it("ngIf",(t.specTotals==null?null:t.specTotals.memory)||(t.specTotals==null?null:t.specTotals.wattage)||(t.specTotals==null?null:t.specTotals.btu))}}function T5(e,i){if(e&1){let t=qe();j(0,"lib-marketo-form",130),De("formSubmittedEmitter",function(r){je(t);let o=Z(4);return Ue(o.saveConfiguration(r))}),X()}if(e&2){let t=Z(4);it("formId",t.formId)("configuratorSystemPrice",t.configuration.optimizedConfigurations[t.activeReference].priceTotal)("configuratorData",t.configFormattedData)("saveConfiguratorInformation",t.configurationUrlData==null?null:t.configurationUrlData.url)}}function F5(e,i){if(e&1&&(j(0,"h2",145),lt(1),X()),e&2){let t=Z(5);H(),Ke(t.configuration.type)}}function O5(e,i){if(e&1&&(j(0,"h5",146),lt(1),X()),e&2){let t=Z(5);H(),Ke(t.configuration.mpn)}}function R5(e,i){if(e&1&&(gn(0),j(1,"p"),lt(2),X(),mn()),e&2){let t=i.$implicit,n=i.last;H(),_n("mb-halfbase",!n),H(),Ke(t)}}function D5(e,i){if(e&1&&(j(0,"div")(1,"div",154)(2,"div",155)(3,"p",156),lt(4),X()(),j(5,"div",157)(6,"span",120),Ft(7,R5,3,3,"ng-container",116),X()()()()),e&2){let t=i.$implicit;H(4),Yt("",t==null?null:t.quantity,"x"),H(3),it("ngForOf",t.name.split(";"))}}function M5(e,i){e&1&&(j(0,"div",154)(1,"div",155)(2,"p",156),lt(3,"--"),X()(),j(4,"div",157)(5,"p",123),lt(6,"*None"),X()()())}function B5(e,i){if(e&1&&(j(0,"div",147)(1,"div",148)(2,"div",149)(3,"div",150)(4,"p",151),lt(5),X()(),j(6,"div",152),Ft(7,D5,8,2,"div",116)(8,M5,7,0,"div",153),X()()()()),e&2){let t=i.$implicit,n=Z(5);H(5),Ke(t),H(2),it("ngForOf",n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t]),H(),it("ngIf",(n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference].category[t]==null?null:n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks)&&n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t].length==0)}}function z5(e,i){if(e&1&&(j(0,"div",124)(1,"span",125),_e(2,"mat-icon",126),lt(3),j(4,"p",158),lt(5,"GB Memory"),X()(),j(6,"span",125),_e(7,"mat-icon",128),lt(8),j(9,"p",158),lt(10,"Watts"),X()(),j(11,"span",125),_e(12,"mat-icon",129),lt(13),j(14,"p",158),lt(15,"BTU/Hr"),X()()()),e&2){let t=Z(5);H(3),Yt(" ",t.specTotals==null?null:t.specTotals.memory," "),H(5),Yt(" ",t.specTotals==null?null:t.specTotals.wattage," "),H(5),Yt(" ",t.specTotals==null?null:t.specTotals.btu," ")}}function j5(e,i){if(e&1){let t=qe();j(0,"div",131)(1,"div",132)(2,"div",133),Ft(3,F5,2,1,"h2",134)(4,O5,2,1,"h5",135),j(5,"p",136),lt(6,"Configured price"),X(),j(7,"h2",137),lt(8),X(),j(9,"p",138),lt(10,"Shipping & Sales Tax"),X(),j(11,"p",139),lt(12,"TBD after system validation"),X(),_e(13,"hr",140),j(14,"h4",141),lt(15,"Review your order"),X(),j(16,"div",142)(17,"button-component",143),De("click",function(){je(t);let r=Z(4);return Ue(r.selectedPane=!r.selectedPane)}),X()()(),j(18,"div",106)(19,"div",111),Ft(20,B5,9,3,"div",144),X()(),Ft(21,z5,16,3,"div",108),X()()}if(e&2){let t=Z(4);H(3),it("ngIf",t.configuration==null?null:t.configuration.type),H(),it("ngIf",t.configuration==null?null:t.configuration.mpn),H(4),Yt(" ",t.configuration.optimizedConfigurations[t.activeReference].priceTotal," "),H(9),it("buttonOptions",Na(7,y5)),H(3),it("ngForOf",t.renderedCategories)("ngForTrackBy",t.trackByCategory),H(),it("ngIf",(t.specTotals==null?null:t.specTotals.memory)||(t.specTotals==null?null:t.specTotals.wattage)||(t.specTotals==null?null:t.specTotals.btu))}}function U5(e,i){if(e&1&&(j(0,"p",169),lt(1),X()),e&2){let t=Z().$implicit;H(),Yt("",t==null?null:t.quantity,"x")}}function q5(e,i){if(e&1&&(gn(0),j(1,"p"),lt(2),X(),mn()),e&2){let t=i.$implicit,n=i.last;H(),_n("mb-halfbase",!n),H(),Ke(t)}}function H5(e,i){if(e&1&&(j(0,"p",170),Ft(1,q5,3,3,"ng-container",116),X()),e&2){let t=Z().$implicit;H(),it("ngForOf",t.name.split(";"))}}function V5(e,i){if(e&1&&(j(0,"div")(1,"div",63)(2,"div",165),Ft(3,U5,2,1,"p",166),X(),j(4,"div",167),Ft(5,H5,2,1,"p",168),X()()()),e&2){let t=i.$implicit;H(3),it("ngIf",t==null?null:t.quantity),H(2),it("ngIf",t==null?null:t.name)}}function $5(e,i){e&1&&(j(0,"div",63)(1,"div",165)(2,"p",169),lt(3,"---"),X()(),j(4,"div",167)(5,"p",170),lt(6,"None"),X()()())}function G5(e,i){if(e&1&&(j(0,"div",161)(1,"div",62)(2,"p",162),lt(3),X()(),j(4,"div",163),Ft(5,V5,6,2,"div",116)(6,$5,7,0,"div",164),X()()),e&2){let t=Z().$implicit,n=Z(4);H(3),Ke(t),H(2),it("ngForOf",n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t]),H(),it("ngIf",!n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t].length)}}function W5(e,i){e&1&&_e(0,"hr")}function Z5(e,i){if(e&1&&(j(0,"div",159),Ft(1,G5,7,3,"div",160)(2,W5,1,0,"hr",17),X()),e&2){let t=i.$implicit,n=Z(4);H(),it("ngIf",n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t].length>0||(n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks==null?null:n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks.name)),H(),it("ngIf",n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t].length>0||(n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks==null?null:n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks.name))}}function Y5(e,i){if(e&1&&(j(0,"div",43)(1,"div",44),Ft(2,P5,28,6,"div",45),j(3,"div",46),Ft(4,T5,1,4,"lib-marketo-form",47),X(),Ft(5,j5,22,8,"div",48),X(),j(6,"div",49)(7,"span")(8,"span",50)(9,"div",51),_e(10,"img",52),j(11,"p",53),lt(12),X()(),j(13,"div",54)(14,"p"),lt(15,"Exxact Corporation"),X(),j(16,"p"),lt(17,"46221 Landing Pkwy"),X(),j(18,"p"),lt(19,"Fremont, CA 94538"),X(),j(20,"p",55),lt(21,"www.exxactcorp.com"),X()()(),j(22,"div",56)(23,"p",57),lt(24," NOT AN OFFICIAL QUOTE - PLEASE CONTACT SALES FOR SPECIAL PRICING AND APPLICABLE DISCOUNTS "),X(),j(25,"p"),lt(26,"Pricing and Availability Subject to Change Without Notice."),X()(),j(27,"h3",58),lt(28),X(),j(29,"span",59)(30,"div",60)(31,"p",61),lt(32,"Item"),X()(),j(33,"div",62)(34,"div")(35,"div",63)(36,"div",64)(37,"p",65),lt(38,"Qty"),X()(),j(39,"div",66)(40,"p",65),lt(41,"Item Description"),X()()()()()(),j(42,"span",67),Ft(43,Z5,3,2,"div",68),X(),j(44,"div",69)(45,"span",70)(46,"span",71),_e(47,"img",72),lt(48),j(49,"p",73),lt(50,"Watts"),X()(),j(51,"span",71),_e(52,"img",74),lt(53),j(54,"p",73),lt(55,"BTU/Hr"),X()(),j(56,"span",75),_e(57,"img",76),lt(58),j(59,"p",73),lt(60,"GB Memory"),X()()(),j(61,"div",77)(62,"div",78)(63,"p"),lt(64,"Configured Price"),X(),j(65,"p",79),lt(66),X()(),j(67,"div",80)(68,"p"),lt(69,"Shipping & Sales Tax"),X(),j(70,"p",81),lt(71,"TBD after system validation"),X()()()()(),j(72,"div",82)(73,"div",83)(74,"p",84),lt(75,"Sales"),X(),j(76,"p",85),_e(77,"img",86),lt(78," 510.226.7366 "),X(),j(79,"p",87),_e(80,"img",88),lt(81," [email protected] "),X()(),j(82,"div",89)(83,"p"),lt(84," This document is strictly private, confidential and personal to its recipients and should not be copied, distributed, or reproduced in whole or in part, nor passed to any third party. "),X()()()()()),e&2){let t=Z(3);H(2),it("ngIf",t.isNarrow),H(2),it("ngIf",t.configuration.optimizedConfigurations&&t.rightFormActive),H(),it("ngIf",!t.isNarrow),H(5),it("src",t.getBaseUrl()+"/assets/images/exxact_logo.jpg",dr),H(2),Ke(t.currentDate),H(16),Ke(t.configuration==null?null:t.configuration.mpn),H(15),it("ngForOf",t.categoryKeys)("ngForTrackBy",t.trackByCategory),H(4),it("src",t.getBaseUrl()+"/assets/images/watts.png",dr),H(),Yt(" ",t.specTotals==null?null:t.specTotals.wattage," "),H(4),it("src",t.getBaseUrl()+"/assets/images/btu.png",dr),H(),Yt(" ",t.specTotals==null?null:t.specTotals.btu," "),H(4),it("src",t.getBaseUrl()+"/assets/images/memory.png",dr),H(),Yt(" ",t.specTotals==null?null:t.specTotals.memory," "),H(8),Ke(t.configuration.optimizedConfigurations[t.activeReference].priceTotal),H(11),it("src",t.getBaseUrl()+"/assets/images/phone.png",dr),H(3),it("src",t.getBaseUrl()+"/assets/images/mail.png",dr)}}function K5(e,i){if(e&1&&(j(0,"h2"),lt(1),X()),e&2){let t=Z(3);H(),Ke(t.configuration==null?null:t.configuration.type)}}function X5(e,i){if(e&1&&(j(0,"h5",171),lt(1),X()),e&2){let t=Z(3);it("ngClass",t.isNarrow?"d-flex justify-content-center":""),H(),Yt(" ",t.configuration==null?null:t.configuration.mpn," ")}}function J5(e,i){if(e&1){let t=qe();j(0,"div",172)(1,"div",173),De("click",function(){je(t);let r=Z(3);return Ue(r.saveSelectedData(!0))}),j(2,"p",174),lt(3,"Save PDF"),X(),j(4,"mat-icon",175),lt(5,"chevron_right"),X()(),j(6,"div",154)(7,"button",176),_e(8,"mat-icon",177),j(9,"span",178),lt(10,"Ask about Edu / Gov discounts"),X()()()()}}function Q5(e,i){e&1&&(j(0,"div",179)(1,"button",180),_e(2,"mat-icon",181),j(3,"span",182),lt(4,"Ask about Edu / Gov discounts"),X()()())}function tm(e,i){e&1&&(j(0,"h2"),lt(1,"Configure your System"),X())}function em(e,i){e&1&&(j(0,"h5",156),lt(1,"Essential"),X())}function im(e,i){if(e&1&&(j(0,"h5",156),lt(1),X()),e&2){let t=Z(4);H(),Yt(" ",t.configuration==null||t.configuration.optimizedConfigurations.good==null?null:t.configuration.optimizedConfigurations.good.title," ")}}function nm(e,i){if(e&1){let t=qe();j(0,"a",183),De("click",function(){je(t);let r=Z(3);return Ue(r.selectReference("good"))}),j(1,"div",184),Ft(2,em,2,0,"h5",185)(3,im,2,1,"h5",185),X(),j(4,"h4",186),lt(5),X()()}if(e&2){let t=Z(3);it("ngClass",t.activeReference=="good"?"active":""),H(2),it("ngIf",!t.configuration.optimizedConfigurations.good.title),H(),it("ngIf",t.configuration.optimizedConfigurations.good.title),H(2),Ke(t.configuration.optimizedConfigurations.good.priceTotal)}}function rm(e,i){e&1&&(j(0,"h5",156),lt(1,"Professional"),X())}function om(e,i){if(e&1&&(j(0,"h5",156),lt(1),X()),e&2){let t=Z(4);H(),Yt(" ",t.configuration==null||t.configuration.optimizedConfigurations.better==null?null:t.configuration.optimizedConfigurations.better.title," ")}}function am(e,i){if(e&1){let t=qe();j(0,"a",183),De("click",function(){je(t);let r=Z(3);return Ue(r.selectReference("better"))}),j(1,"div",184),Ft(2,rm,2,0,"h5",185)(3,om,2,1,"h5",185),X(),j(4,"h4",186),lt(5),X()()}if(e&2){let t=Z(3);it("ngClass",t.activeReference=="better"?"active":""),H(2),it("ngIf",!t.configuration.optimizedConfigurations.better.title),H(),it("ngIf",t.configuration.optimized
78Configurations.better.title),H(2),Ke(t.configuration.optimizedConfigurations.better.priceTotal)}}function sm(e,i){e&1&&(j(0,"h5",156),lt(1,"Premium"),X())}function lm(e,i){if(e&1&&(j(0,"h5",156),lt(1),X()),e&2){let t=Z(4);H(),Yt(" ",t.configuration==null||t.configuration.optimizedConfigurations.best==null?null:t.configuration.optimizedConfigurations.best.title," ")}}function cm(e,i){if(e&1){let t=qe();j(0,"a",183),De("click",function(){je(t);let r=Z(3);return Ue(r.selectReference("best"))}),j(1,"div",187),Ft(2,sm,2,0,"h5",185)(3,lm,2,1,"h5",185),X(),j(4,"h4",186),lt(5),X()()}if(e&2){let t=Z(3);it("ngClass",t.activeReference=="best"?"active":""),H(2),it("ngIf",!t.configuration.optimizedConfigurations.best.title),H(),it("ngIf",t.configuration.optimizedConfigurations.best.title),H(2),Ke(t.configuration.optimizedConfigurations.best.priceTotal)}}function fm(e,i){if(e&1){let t=qe();j(0,"span",198),De("click",function(){je(t),Z();let r=ka(5),o=Z(4);return Ue(o.openModal(r))}),lt(1,"See what's inside each EMLI package "),j(2,"mat-icon"),lt(3,"chevron_right"),X()()}}function um(e,i){if(e&1){let t=qe();j(0,"emli-table-inner-content",199),De("close",function(){je(t);let r=Z(5);return Ue(r.closeModal())}),X()}}function hm(e,i){if(e&1&&(j(0,"div",200)(1,"div",201),_e(2,"mat-icon",202),j(3,"p",203),lt(4),X()()()),e&2){let t=Z(2).$implicit,n=Z(3);H(4),Yt(" ",n.get(n.configuration.category,Un(1,Cl,t),"")," ")}}function pm(e,i){if(e&1&&(j(0,"div",205),_e(1,"mat-icon",202),j(2,"p",203),lt(3),X()()),e&2){let t=Z(6);H(3),Ke(t.gpuData.nvLinkMessage)}}function dm(e,i){if(e&1&&(j(0,"div",204)(1,"div",205),_e(2,"mat-icon",202),j(3,"p",203),lt(4," NVLinks only applies to pairs (2) of the same type of GPU "),X()(),Ft(5,pm,4,1,"div",206),X()),e&2){let t=Z(5);H(5),it("ngIf",t.gpuData.nvLinkMessage)}}function gm(e,i){if(e&1&&(j(0,"div")(1,"div",207),_e(2,"mat-icon",208),lt(3," Missing parts for this category. "),X()()),e&2){let t=Z(3).$implicit,n=Z(3);H(),_n("show",n.hasErrorCategory(t))}}function mm(e,i){if(e&1&&(j(0,"div")(1,"div",207),_e(2,"mat-icon",208),lt(3," Too many parts selected. "),X()()),e&2){let t=Z(3).$implicit,n=Z(3);H(),_n("show",n.hasErrorSelectMultiple(t))}}function _m(e,i){if(e&1&&(j(0,"div"),Ft(1,gm,4,2,"div",17)(2,mm,4,2,"div",17),X()),e&2){let t=Z(2).$implicit,n=Z(3);H(),it("ngIf",n.hasErrorCategory(t)),H(),it("ngIf",n.hasErrorSelectMultiple(t))}}function vm(e,i){e&1&&(j(0,"div",204)(1,"div",205),_e(2,"mat-icon",202),j(3,"p",203),lt(4," An operating system can be selected once a drive is added to the configuration "),X()()())}function xm(e,i){e&1&&(j(0,"div",204)(1,"div",205),_e(2,"mat-icon",202),j(3,"p",203),lt(4," Software can be selected once a drive and supported OS is added to the configuration "),X()()())}function ym(e,i){if(e&1){let t=qe();j(0,"div",209),De("click",function(){je(t);let r=Z(2).$implicit,o=Z(3);return Ue(o.selectNoThanks(r))}),j(1,"p"),lt(2),X(),j(3,"p",210),lt(4),X()()}if(e&2){let t=Z(2).$implicit,n=Z(3);it("ngClass",(n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference]==null?null:n.configuration.optimizedConfigurations[n.activeReference].selectedSpecs[t].length)==0?"active":""),H(2),Yt(" ",n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t]==null?null:n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks.name," "),H(),it("ngClass",n.calcDiff(t,n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t]==null?null:n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks)=="Included"?"calc-diff":""),H(),Yt(" ",n.calcDiff(t,n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t]==null?null:n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks)," ")}}function wm(e,i){if(e&1&&(j(0,"div",213)(1,"span",214),lt(2),X()()),e&2){let t=Z().$implicit;H(2),Ke(t)}}function bm(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).$implicit,o=Z(3).$implicit,c=Z(4).$implicit,s=Z(3);return s.updateProductQuantity(r,c,o,!1),Ue(s.updateGpuData(c,s.configuration==null?null:s.configuration.optimizedConfigurations[s.activeReference].selectedSpecs))}),lt(1),X()}if(e&2){let t=i.$implicit;it("value",t),H(),Yt(" ",t+"x"," ")}}function Sm(e,i){if(e&1&&(j(0,"mat-select",226),Ft(1,bm,2,2,"mat-option",227),X()),e&2){let t=Z(2).$implicit,n=Z(4).$implicit,r=Z(3);it("value",t==null?null:t.quantity)("disabled",(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1)("ngClass",(r.includesProducts(n,t)?"highlight":"")+" "+((t==null?null:t.quantity)>9?"mat-select-value-offset":"")+" "+((r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1?"no-select":"selectable")+" "+(r.isNarrow?"narrow-quantity":"")+" "+(n==="Network Cable"&&t.connectorType!==r.networkingData.activeConnectorType?"color-gray-400 disabled-arrow":"")),H(),it("ngForOf",r.get(r.configuration==null?null:r.configuration.category,Un(4,ts,n),""))}}function Cm(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).index,o=Z(4).$implicit,c=Z(4).$implicit,s=Z(3);return s.updateProductQuantity(r+1,c,o,!1),Ue(s.updateGpuData(c,s.configuration==null?null:s.configuration.optimizedConfigurations[s.activeReference].selectedSpecs))}),lt(1),X()}if(e&2){let t=i.index;it("value",t+1),H(),Yt(" ",t+1+"x"," ")}}function Am(e,i){if(e&1&&(gn(0),Ft(1,Cm,2,2,"mat-option",227),mn()),e&2){let t=Z(3).$implicit,n=Z(7);H(),it("ngForOf",Na(1,Cd).constructor(n.calcMaxGPUQty(t.slotSpace,n.gpuData)))}}function km(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).$implicit,o=Z(4).$implicit,c=Z(4).$implicit,s=Z(3);return s.updateProductQuantity(r,c,o,!1),Ue(s.updateGpuData(c,s.configuration==null?null:s.configuration.optimizedConfigurations[s.activeReference].selectedSpecs))}),lt(1),X()}if(e&2){let t=i.$implicit;it("value",t),H(),Yt(" ",t+"x"," ")}}function Nm(e,i){if(e&1&&Ft(0,km,2,2,"mat-option",227),e&2){let t=Z(7).$implicit,n=Z(3);it("ngForOf",n.get(n.configuration==null?null:n.configuration.category,Un(1,ts,t),""))}}function Lm(e,i){if(e&1&&(j(0,"mat-select",226),Ft(1,Am,2,2,"ng-container",229)(2,Nm,1,3,"
78ng-template",null,1,La),X()),e&2){let t=ka(3),n=Z(2).$implicit,r=Z(4).$implicit,o=Z(3);it("value",n==null?null:n.quantity)("disabled",(o.configuration==null||o.configuration.category[r]==null||o.configuration.category[r].options==null?null:o.configuration.category[r].options.length)==1)("ngClass",(o.includesProducts(r,n)?"highlight":"")+" "+((n==null?null:n.quantity)>9?"mat-select-value-offset":"")+((o.configuration==null||o.configuration.category[r]==null||o.configuration.category[r].options==null?null:o.configuration.category[r].options.length)==1?"no-select":"selectable")+" "+(o.isNarrow?"narrow-quantity":"")),H(),it("ngIf",n.slotSpace&&o.configuration.maxGPUSlots)("ngIfElse",t)}}function Em(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).$implicit,o=Z(3).$implicit,c=Z(4).$implicit,s=Z(3);return Ue(s.updateProductQuantity(r,c,o,!1))}),lt(1),X()}if(e&2){let t=i.$implicit;it("value",t),H(),Yt(" ",t+"x"," ")}}function Im(e,i){if(e&1&&(j(0,"mat-select",226),Ft(1,Em,2,2,"mat-option",227),X()),e&2){let t=Z(2).$implicit,n=Z(4).$implicit,r=Z(3);it("value",t==null?null:t.quantity)("disabled",(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1||n==="Network Cable"&&t.connectorType!==r.networkingData.activeConnectorType)("ngClass",(r.includesProducts(n,t)?"highlight":"")+" "+((t==null?null:t.quantity)>9?"mat-select-value-offset":"")+" "+((r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1?"no-select":"selectable")+" "+(r.isNarrow?"narrow-quantity":"")+" "),H(),it("ngForOf",r.networkingData.numPorts)}}function Pm(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).$implicit,o=Z(4).$implicit,c=Z(4).$implicit,s=Z(3);return Ue(s.updateProductQuantity(r,c,o,!1))}),lt(1),X()}if(e&2){let t=i.$implicit;it("value",t),H(),Yt(" ",t+"x"," ")}}function Tm(e,i){if(e&1&&(gn(0),Ft(1,Pm,2,2,"mat-option",227),mn()),e&2){let t=Z(3).$implicit,n=Z(7);H(),it("ngForOf",n.calculateMemoryQuantity(t))}}function Fm(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).$implicit,o=Z(4).$implicit,c=Z(4).$implicit,s=Z(3);return s.updateProductQuantity(r,c,o,!1),Ue(s.updateGpuData(c,s.configuration==null?null:s.configuration.optimizedConfigurations[s.activeReference].selectedSpecs))}),lt(1),X()}if(e&2){let t=i.$implicit;it("value",t),H(),Yt(" ",t+"x"," ")}}function Om(e,i){if(e&1&&Ft(0,Fm,2,2,"mat-option",227),e&2){let t=Z(7).$implicit,n=Z(3);it("ngForOf",n.get(n.configuration==null?null:n.configuration.category,Un(1,ts,t),""))}}function Rm(e,i){if(e&1&&(j(0,"mat-select",226),Ft(1,Tm,2,1,"ng-container",229)(2,Om,1,3,"ng-template",null,2,La),X()),e&2){let t=ka(3),n=Z(2).$implicit,r=Z(4).$implicit,o=Z(3);it("value",n==null?null:n.quantity)("disabled",(o.configuration==null||o.configuration.category[r]==null||o.configuration.category[r].options==null?null:o.configuration.category[r].options.length)==1)("ngClass",(o.includesProducts(r,n)?"highlight":"")+" "+((n==null?null:n.quantity)>9?"mat-select-value-offset":"")+((o.configuration==null||o.configuration.category[r]==null||o.configuration.category[r].options==null?null:o.configuration.category[r].options.length)==1?"no-select":"selectable")+" "+(o.isNarrow?"narrow-quantity":"")),H(),it("ngIf",o.configuration.minTotalMemory&&n.memory)("ngIfElse",t)}}function Dm(e,i){if(e&1&&(j(0,"span",224),Ft(1,Sm,2,6,"mat-select",225)(2,Lm,4,5,"mat-select",225)(3,Im,2,4,"mat-select",225)(4,Rm,4,5,"mat-select",225),X()),e&2){let t=Z().$implicit,n=Z(4).$implicit,r=Z(3);it("ngClass",(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1?"wide-margin-right":"mr-1"),H(),it("ngIf",n!="GPU"&&n!="Network Cable"&&n!="Memory"),H(),it("ngIf",n=="GPU"),H(),it("ngIf",n=="Network Cable"&&r.networkingData.activeNetworkCard&&t.connectorType==r.networkingData.activeConnectorType),H(),it("ngIf",n=="Memory")}}
78function Mm(e,i){if(e&1&&(j(0,"div",224)(1,"div",230),lt(2),X()()),e&2){let t=Z().$implicit,n=Z(4).$implicit,r=Z(3);it("ngClass",(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1?"wide-margin-right":"mr-1"),H(),it("ngClass",(r.includesProducts(n,t)?"highlight":"")+" "+((t==null?null:t.quantity)>9?"mat-select-value-offset":"")+((r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1?"no-select":"selectable")+" "+(r.isNarrow?"narrow-quantity":"")),H(),Yt(" ",r.configuration==null||r.configuration.category[n]==null?null:r.configuration.category[n].options[0],"x ")}}function Bm(e,i){if(e&1&&(j(0,"div",231),lt(1),X()),e&2){let t=Z(5).$implicit,n=Z(3);H(),Yt(" ",n.configuration==null||n.configuration.category[t]==null?null:n.configuration.category[t].options[0],"x ")}}function zm(e,i){if(e&1&&(gn(0),j(1,"p",224),lt(2),X(),mn()),e&2){let t=i.$implicit,n=i.last,r=Z(5).$implicit,o=Z(3);H(),_n("mb-halfbase",!n),it("ngClass",r==="Software"&&o.softwareDisabled||""+r=="OS"&&o.osDisabled?"color-gray-400":""),H(),Yt(" ",t," ")}}function jm(e,i){if(e&1&&(j(0,"span",232),lt(1),X()),e&2){let t=Z().$implicit,n=Z(4).$implicit,r=Z(3);it("ngClass",r.includesProducts(n,t)?"bold":""),H(),Yt(" ",t.memory*t.quantity," GB total ")}}function Um(e,i){if(e&1&&(gn(0),lt(1),mn()),e&2){let t=Z().$implicit,n=Z(4).$implicit,r=Z(3);H(),Yt(" ",r.calcDiff(n,t)," ")}}function qm(e,i){if(e&1&&(gn(0),lt(1),mn()),e&2){let t=Z().$implicit,n=Z(4).$implicit,r=Z(3);H(),Yt(" ",n==="Software"&&r.softwareDisabled?"Not Supported":r.calcDiff(n,t)," ")}}function Hm(e,i){if(e&1&&(gn(0),lt(1),mn()),e&2){let t=Z().$implicit,n=Z(4).$implicit,r=Z(3);H(),Yt(" ",n==="OS"&&r.osDisabled?"Not Supported":r.calcDiff(n,t)," ")}}function Vm(e,i){if(e&1&&(j(0,"span",233),lt(1),X()),e&2){let t=Z().$implicit,n=Z(4).$implicit,r=Z(3);it("ngClass",r.includesProducts(n,t)?"bold":"weight-400"),H(),Yt(" ",t.memory*t.quantity," GB total ")}}function $m(e,i){if(e&1){let t=qe();j(0,"div",216),Ft(1,Dm,5,5,"span",217)(2,Mm,3,3,"div",217),j(3,"div",218),De("click",function(){let r=je(t).$implicit,o=Z(4).$implicit,c=Z(3);return o==="Software"&&c.softwareDisabled||o==="OS"&&c.osDisabled||c.selectProduct(o,r),Ue(c.updateGpuData(o,c.configuration==null?null:c.configuration.optimizedConfigurations[c.activeReference].selectedSpecs))}),Ft(4,Bm,2,1,"div",219),j(5,"span",220)(6,"span",27),Ft(7,zm,3,4,"ng-container",116),X(),Ft(8,jm,2,2,"span",221),X(),j(9,"p",222),Ft(10,Um,2,1,"ng-container",17)(11,qm,2,1,"ng-container",17)(12,Hm,2,1,"ng-container",17)(13,Vm,2,2,"span",223),X()()()}if(e&2){let t=i.$implicit,n=Z(4).$implicit,r=Z(3);_n("hide",n=="Network Cable"&&t.connectorType!==r.networkingData.activeConnectorType),H(),it("ngIf",(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)!=1&&(t.type!=="GPU"||r.calcMaxGPUQty(t.slotSpace,r.gpuData)!=1)),H(),it("ngIf",!r.isNarrow&&(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1&&(r.configuration==null||r.configuration.category[n]==null?null:r.configuration.category[n].options[0])!==1),H(),it("ngClass",r.includesProducts(n,t)?"active":""+(n==="Softw
78are"&&r.softwareDisabled)||""+n=="OS"&&r.osDisabled?"color-gray-400":""),H(),it("ngIf",r.isNarrow&&(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1&&(r.configuration==null||r.configuration.category[n]==null?null:r.configuration.category[n].options[0])!==1),H(),it("ngClass",n==="Software"&&r.softwareDisabled||""+n=="OS"&&r.osDisabled?"color-gray-400":""),H(2),it("ngForOf",t.name.split(";")),H(),it("ngIf",n=="Memory"&&!r.isNarrow),H(),it("ngClass",r.calcDiff(n,t)=="Included"?"calc-diff":""+n=="Software"&&r.softwareDisabled||""+n=="OS"&&r.osDisabled?"color-gray-400":""),H(),it("ngIf",n!=="Software"&&n!="OS"),H(),it("ngIf",n=="Software"),H(),it("ngIf",n==="OS"),H(),it("ngIf",n=="Memory"&&r.isNarrow)}}function Gm(e,i){if(e&1&&(gn(0),Ft(1,$m,14,14,"div",215),mn()),e&2){let t=Z().$implicit,n=Z(2).$implicit,r=Z(3);H(),it("ngForOf",r.configuration==null?null:r.configuration.optimizedConfigurations[r.activeReference].category[n].productLines[t])}}function Wm(e,i){if(e&1&&(j(0,"p",238),lt(1),X()),e&2){let t=Z(7);H(),Yt("",t.gpuData.totalLinks,"x NVLink")}}function Zm(e,i){if(e&1){let t=qe();j(0,"div",209),De("click",function(){je(t);let r=Z().$implicit,o=Z(2).$implicit,c=Z(3);return Ue(c.gpuData.isSupported&&c.gpuData.totalLinks?c.selectProduct(o,c.configuration==null?null:c.configuration.optimizedConfigurations[c.activeReference].category[o].productLines[r][0]):null)}),j(1,"span",234)(2,"p",235),lt(3,"Yes please."),X(),Ft(4,Wm,2,1,"p",236),X(),j(5,"p",237),lt(6),X()()}if(e&2){let t=Z().$implicit,n=Z(2).$implicit,r=Z(3);it("ngClass",r.includesProducts(n,r.configuration==null?null:r.configuration.optimizedConfigurations[r.activeReference].category[n].productLines[t][0])?"active":" "+r.gpuData.isSupported&&r.gpuData.totalLinks?"":"color-gray-400"),H(4),it("ngIf",r.gpuData.totalLinks),H(),it("ngClass",r.calcDiff(n,r.configuration==null?null:r.configuration.optimizedConfigurations[r.activeReference].category[n].productLines[t][0])=="Included"?"calc-diff color-green-300":" "+r.gpuData.isSupported&&r.gpuData.totalLinks?"":"color-gray-400"),H(),Yt(" ",r.gpuData.isSupported&&r.gpuData.totalLinks?r.calcDiff(n,r.configuration==null?null:r.configuration.optimizedConfigurations[r.activeReference].category[n].productLines[t][0]):"Not Supported"," ")}}function Ym(e,i){if(e&1&&(j(0,"div",211),Ft(1,wm,3,1,"div",212)(2,Gm,2,1,"ng-container",17)(3,Zm,7,4,"div",196),X()),e&2){let t=i.$implicit,n=Z(2).$implicit,r=Z(3);_n("hide",n=="Network Cable"&&!r.networkingData.activeCableProductLines.includes(t)),H(),it("ngIf",t!="null"&&t!=""),H(),it("ngIf",n!="NVIDIA NVLink"),H(),it("ngIf",n=="NVIDIA NVLink")}}function Km(e,i){if(e&1&&(j(0,"div",191)(1,"h5",192),lt(2),X(),Ft(3,fm,4,0,"span",193)(4,um,1,0,"ng-template",null,0,La)(6,hm,5,3,"div",194)(7,dm,6,1,"div",195)(8,_m,3,2,"div",17)(9,vm,5,0,"div",195)(10,xm,5,0,"div",195),j(11,"div"),Ft(12,ym,5,4,"div",196)(13,Ym,4,5,"div",197),X()()),e&2){let t=Z().$implicit,n=Z(3);it("id",nu(t)),H(2),Ke(t),H(),it("ngIf",t==="Software"),H(3),it("ngIf",n.get(n.configuration.category,Un(11,Cl,t),"")),H(),it("ngIf",t=="NVIDIA NVLink"),H(),it("ngIf",n.checkError(t)),H(),it("ngIf",t=="OS"&&n.osDisabled),H(),it("ngIf",t=="Software"&&n.osDisabled),H(2),it("ngIf",n.configuration==null||n.configuration.optimizedConfigurations[n.activeReference]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t]==null||n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks==null?null:n.configuration.optimizedConfigurations[n.activeReference].category[t].noThanks.name),H(),it("ngForOf",n.configuration==null||n.configuration.category[t]==null?null:n.configuration.category[t].productLineKeys)}}function Xm(e,i){if(e&1&&(j(0,"div",24),lt(1),X()),e&2){let t=Z().$implicit,n=Z(5);H(),Yt(" ",n.combineSharedRuleCategoryLabels(t,"min/max")," ")}}function Jm(e,i){if(e&1&&(j(0,"div",200)(1,"div",201),_e(2,"mat-icon",202),j(3,"p",203),lt(4),X()()()),e&2){let t=Z().$implicit,n=Z(5);H(4),Yt(" ",n.get(n.configuration.category,Un(1,Cl,t),"")," ")}}function Qm(e,i){if(e&1&&(j(0,"div",242),_e(1,"mat-icon",243),lt(2," Shared quantity is either greater than max or less than min. "),X()),e&2){let t=Z().$implicit,n=Z(5);_n("show",n.checkErrorSharedRule(t,"min/max"))}}function t_(e,i){if(e&1&&(j(0,"div")(1,"div",207),_e(2,"mat-icon",208),lt(3," Missing parts for this category. "),X()()),e&2){let t=Z(2).$implicit,n=Z(5);H(),_n("show",n.hasErrorCategory(t))}}function e_(e,i){if(e&1&&(j(0,"div")(1,"div",207),_e(2,"mat-icon",208),lt(3," Too many parts selected. "),X()()),e&2){let t=Z(2).$implicit,n=Z(5);H(),_n("show",n.hasErrorSelectMultiple(t))}}function i_(e,i){if(e&1&&(j(0,"div"),Ft(1,t_,4,2,"div",17)(2,e_,4,2,"div",17),X()),e&2){let t=Z().$implicit,n=Z(5);H(),it("ngIf",n.hasErrorCategory(t)),H(),it("ngIf",n.hasErrorSelectMultiple(t))}}function n_(e,i){if(e&1&&(j(0,"div"),Ft(1,Xm,2,1,"div",240)(2,Jm,5,3,"div",194)(3,Qm,3,2,"div",241)(4,i_,3,2,"div",17),X()),e&2){let t=i.$implicit,n=Z(5);H(),it("ngIf",n.isSharedRuleAnchor(t,"min/max")),H(),it("ngIf",n.get(n.configuration.category,Un(4,Cl,t),"")),H(),it("ngIf",n.checkErrorSharedRule(t,"min/max")&&n.isSharedRuleAnchor(t,"min/max")),H(),it("ngIf",n.checkError(t))}}function r_(e,i){if(e&1&&(j(0,"span",248),lt(1),X()),e&2){let t=Z(2).$implicit;H(),Ke(t)}}function o_(e,i){if(e&1&&(j(0,"span",248),lt(1),X()),e&2){let t=Z().$implicit;H(),Ke(t)}}function a_(e,i){if(e&1){let t=qe();j(0,"div",209),De("click",function(){je(t);let r=Z(2).$implicit,o=Z(5);return Ue(o.selectNoThanks(r))}),j(1,"p"),lt(2),X(),j(3,"p",210),lt(4),X()()}if(e&2){let t=Z(2).$implicit,n=Z(5);it("ngClass",((n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference]==null?null:(n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference].selectedSpecs)[t].length==0?"active":""),H(2),Yt(" ",((n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference]==null?null:(n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference].category)[t]==null?null:((n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference]==null?null:(n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference].category)[t].noThanks.name," "),H(),it("ngClass",n.calcDiff(t,((n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference]==null?null:(n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference].category)[t]==null?null:((n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference]==null?null:(n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference].category)[t].noThanks)=="Included"?"calc-diff":""),H(),Yt(" ",n.calcDiff(t,((n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference]==null?null:(n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference].category)[t]==null?null:((n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference]==null?null:(n.configuration==null?null:n.configuration.optimizedConfigurations)[n.activeReference].category)[t].noThanks)," ")}}function s_(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).$implicit,o=Z(3).$implicit,c=Z(2).$implicit,s=Z(5);return s.updateProductQuantity(r,c,o,!1),Ue(s.updateGpuData(c,s.configuration==null?null:s.configuration.optimizedConfigurations[s.activeReference].selectedSpecs))}),lt(1),X()}if(e&2){let t=i.$implicit;it("value",t),H(),Yt(" ",t+"x"," ")}}function l_(e,i){if(e&1&&(j(0,"mat-select",226),Ft(1,s_,2,2,"mat-option",227),X()),e&2){let t=Z(2).$implicit,n=Z(2).$implicit,r=Z(5);it("value",t==null?null:t.quantity)("disabled",(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1)("ngClass",(r.includesProducts(n,t)?"highlight":"")+" "+((t==null?null:t.quantity)>9?"mat-select-value-offset":"")+((r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1?"no-select":"selectable")+" "+(r.isNarrow?"narrow-quantity":"")),H(),it("ngForOf",r.get(r.configuration==null?null:r.configuration.category,Un(4,ts,n),""))}}function c_(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).index,o=Z(4).$implicit,c=Z(2).$implicit,s=Z(5);return s.updateProductQuantity(r+1,c,o,!1),Ue(s.updateGpuData(c,s.configuration==null?null:s.configuration.optimizedConfigurations[s.activeReference].selectedSpecs))}),lt(1),X()}if(e&2){let t=i.index;it("value",t+1),H(),Yt(" ",t+1+"x"," ")}}function f_(e,i){if(e&1&&(gn(0),Ft(1,c_,2,2,"mat-option",227),mn()),e&2){let t=Z(3).$implicit,n=Z(7);H(),it("ngForOf",Na(1,Cd).constructor(n.calcMaxGPUQty(t.slotSpace,n.gpuData)))}}function u_(e,i){if(e&1){let t=qe();j(0,"mat-option",228),De("click",function(){let r=je(t).$implicit,o=Z(4).$implicit,c=Z(2).$implicit,s=Z(5);return s.updateProductQuantity(r,c,o,!1),Ue(s.updateGpuData(c,s.configuration==null?null:s.configuration.optimizedConfigurations[s.activeReference].selectedSpecs))}),lt(1),X()}if(e&2){let t=i.$implicit;it("value",t),H(),Yt(" ",t+"x"," ")}}
78function h_(e,i){if(e&1&&Ft(0,u_,2,2,"mat-option",227),e&2){let t=Z(5).$implicit,n=Z(5);it("ngForOf",n.get(n.configuration==null?null:n.configuration.category,Un(1,ts,t),""))}}function p_(e,i){if(e&1&&(j(0,"mat-select",226),Ft(1,f_,2,2,"ng-container",229)(2,h_,1,3,"ng-template",null,1,La),X()),e&2){let t=ka(3),n=Z(2).$implicit,r=Z(2).$implicit,o=Z(5);it("value",n==null?null:n.quantity)("disabled",(o.configuration==null||o.configuration.category[r]==null||o.configuration.category[r].options==null?null:o.configuration.category[r].options.length)==1)("ngClass",(o.includesProducts(r,n)?"highlight":"")+" "+((n==null?null:n.quantity)>9?"mat-select-value-offset":"")+((o.configuration==null||o.configuration.category[r]==null||o.configuration.category[r].options==null?null:o.configuration.category[r].options.length)==1?"no-select":"selectable")+" "+(o.isNarrow?"narrow-quantity":"")),H(),it("ngIf",n.slotSpace&&o.configuration.maxGPUSlots)("ngIfElse",t)}}function d_(e,i){if(e&1&&(j(0,"span",224),Ft(1,l_,2,6,"mat-select",225)(2,p_,4,5,"mat-select",225),X()),e&2){let t=Z(3).$implicit,n=Z(5);it("ngClass",(n.configuration==null||n.configuration.category[t]==null||n.configuration.category[t].options==null?null:n.configuration.category[t].options.length)==1?"wide-margin-right":"mr-1"),H(),it("ngIf",t!="GPU"),H(),it("ngIf",t=="GPU")}}function g_(e,i){if(e&1&&(j(0,"div",224)(1,"div",230),lt(2),X()()),e&2){let t=Z().$implicit,n=Z(2).$implicit,r=Z(5);it("ngClass",(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1?"wide-margin-right":"mr-1"),H(),it("ngClass",(r.includesProducts(n,t)?"highlight":"")+" "+((t==null?null:t.quantity)>9?"mat-select-value-offset":"")+((r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1?"no-select":"selectable")+" "+(r.isNarrow?"narrow-quantity":"")),H(),Yt(" ",r.configuration==null||r.configuration.category[n]==null?null:r.configuration.category[n].options[0],"x ")}}function m_(e,i){if(e&1&&(j(0,"div",231),lt(1),X()),e&2){let t=Z(3).$implicit,n=Z(5);H(),Yt(" ",n.configuration==null||n.configuration.category[t]==null?null:n.configuration.category[t].options[0],"x ")}}function __(e,i){if(e&1&&(j(0,"span",251),lt(1),X()),e&2){let t=Z().$implicit;H(),Yt(" ",t.memory*t.quantity," GB total ")}}function v_(e,i){if(e&1){let t=qe();j(0,"div",216),Ft(1,d_,3,3,"span",217)(2,g_,3,3,"div",217),j(3,"div",218),De("click",function(){let r=je(t).$implicit,o=Z(2).$implicit,c=Z(5);return c.selectProduct(o,r),Ue(c.updateGpuData(o,c.configuration==null?null:c.configuration.optimizedConfigurations[c.activeReference].selectedSpecs))}),Ft(4,m_,2,1,"div",219),j(5,"p",27),lt(6),Ft(7,__,2,1,"span",249),X(),j(8,"p",250),lt(9),X()()()}if(e&2){let t=i.$implicit,n=Z(2).$implicit,r=Z(5);H(),it("ngIf",(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)!=1&&(t.type!=="GPU"||r.calcMaxGPUQty(t.slotSpace,r.gpuData)!=1)),H(),it("ngIf",!r.isNarrow&&(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1&&(r.configuration==null||r.configuration.category[n]==null?null:r.configuration.category[n].options[0])!==1),H(),it("ngClass",r.includesProducts(n,t)?"active":""),H(),it("ngIf",r.isNarrow&&(r.configuration==null||r.configuration.category[n]==null||r.configuration.category[n].options==null?null:r.configuration.category[n].options.length)==1&&(r.configuration==null||r.configuration.category[n]==null?null:r.configuration.category[n].options[0])!==1),H(2),Yt(" ",t.name," "),H(),it("ngIf",n=="Memory"),H(),it("ngClass",r.calcDiff(n,t)=="Included"?"calc-diff":""),H(),Yt(" ",r.calcDiff(n,t)," ")}}function x_(e,i){if(e&1&&(j(0,"div")(1,"div",245),Ft(2,r_,2,1,"span",246)(3,o_,2,1,"span",246),X(),Ft(4,a_,5,4,"div",196)(5,v_,10,8,"div",247),X()),e&2){let t=i.$implicit,n=Z().$implicit,r=Z(5);H(2),it("ngIf",!t||t==" "||t=="null"),H(),it("ngIf",t!="null"),H(),it("ngIf",((r.configuration==null?null:r.configuration.optimizedConfigurations)[r.activeReference]==null?null:(r.configuration==null?null:r.configuration.optimizedConfigurations)[r.activeReference].category)[n]==null||((r.configuration==null?null:r.configuration.optimizedConfigurations)[r.activeReference]==null?null:(r.configuration==null?null:r.configuration.optimizedConfigurations)[r.activeReference].category)[n].noThanks==null?null:((r.configuration==null?null:r.configuration.optimizedConfigurations)[r.activeReference]==null?null:(r.configuration==null?null:r.configuration.optimizedConfigurations)[r.activeReference].category)[n].noThanks.name),H(),it("ngForOf",r.configuration==null?null:r.configuration.optimizedConfigurations[r.activeReference].category[n].productLines[t])}}function y_(e,i){if(e&1&&(j(0,"div")(1,"div",244),Ft(2,x_,6,4,"div",116),X()()),e&2){let t=i.$implicit,n=Z(5);H(2),it("ngForOf",(n.configuration==null?null:n.configuration.category)[t]==null?null:(n.configuration==null?null:n.configuration.category)[t].productLineKeys)}}function w_(e,i){if(e&1&&(j(0,"div",239),Ft(1,n_,5,6,"div",116)(2,y_,3,1,"div",116),X()),e&2){let t=Z().$implicit,n=Z(3);H(),it("ngForOf",n.getUsedCategoriesForSharedRuleAnchor(t,"min/max")),H(),it("ngForOf",n.getUsedCategoriesForSharedRuleAnchor(t,"min/max"))}}function b_(e,i){if(e&1&&(j(0,"div",188),Ft(1,Km,14,13,"div",189)(2,w_,3,2,"div",190),X()),e&2){let t=i.$implicit,n=Z(3);H(),it("ngIf",!n.isEmpty(n.get(n.configuration.products,t,""))&&(n.configuration==null||n.configuration.category[t]==null?null:n.configuration.category[t].isRequired)&&!n.hasSharedRule(t,"min/max")&&!n.hideNetworkCables(t)),H(),it("ngIf",n.hasSharedRule(t,"min/max")&&n.isSharedRuleAnchor(t,"min/max"))}}function S_(e,i){if(e&1){let t=qe();j(0,"div",252)(1,"div",253)(2,"a",254),De("click",function(){je(t);let r=Z(3);return Ue(r.saveSelectedData(!0))}),j(3,"p",255),lt(4,"Save Specs"),X(),j(5,"mat-icon",256),lt(6,"chevron_right"),X()()()()}}function C_(e,i){if(e&1){let t=qe();j(0,"button",257),De("click",function(){je(t);let r=Z(3);return Ue(r.bottomTabToggled=!r.bottomTabToggled)}),j(1,"p",258),lt(2,"Hide system details"),X(),j(3,"mat-icon",259),lt(4,"chevron_right"),X()()}if(e&2){let t=Z(3);H(3),it("ngClass",t.bottomTabToggled?"":"flip-chevron")}}function A_(e,i){if(e&1&&(j(0,"div",260)(1,"span",125),_e(2,"mat-icon",126),lt(3),j(4,"span",158),lt(5,"GB Memory"),X()(),j(6,"span",125),_e(7,"mat-icon",128),lt(8),j(9,"span",158),lt(10,"Watts"),X()(),j(11,"span",125),_e(12,"mat-icon",129),lt(13),j(14,"span",158),lt(15,"BTU/Hr"),X()()()),e&2){let t=Z(3);H(3),Yt(" ",t.specTotals==null?null:t.specTotals.memory," "),H(5),Yt(" ",t.specTotals==null?null:t.specTotals.wattage," "),H(5),Yt(" ",t.isNarrow?t.specTotals==null?null:t.specTotals.btu.toFixed(0):t.specTotals==null?null:t.specTotals.btu," ")}}function k_(e,i){if(e&1){let t=qe();j(0,"app-slide-panel",10),Ft(1,Y5,85,17,"div",11),j(2,"div",12)(3,"div",13)(4,"div",14)(5,"div",15)(6,"div",16)(7,"div"),Ft(8,K5,2,1,"h2",17)(9,X5,2,2,"h5",18)(10,J5,11,0,"div",19),X(),j(11,"div")(12,"div",20),_e(13,"img",21),X()(),Ft(14,Q5,5,0,"div",22),X()(),j(15,"div",23)(16,"section"),Ft(17,tm,2,0,"h2",17),j(18,"p",24),lt(19,"Optimized Configurations"),X()(),j(20,"section",25),Ft(21,nm,6,4,"a",26)(22,am,6,4,"a",26)(23,cm,6,4,"a",26),X(),j(24,"section",27),Ft(25,b_,3,2,"div",28),X()(),Ft(26,S_,7,0,"div",29),X()(),j(27,"span",30)(28,"div",31)(29,"div",32),Ft(30,C_,5,1,"button",33),j(31,"div",34)(32,"div",35),Ft(33,A_,16,3,"div",36),X(),_e(34,"div",37),j(35,"div",38)(36,"span",39)(37,"p",40),lt(38,"Configured price"),X(),j(39,"h2",41),lt(40),X()(),j(41,"button-component",42),De("click",function(){je(t);let r=Z(2);
78return r.saveSelectedData(!1),Ue(r.getSpecTotals())}),X()()()()()()()()}if(e&2){let t=Z(2);it("activePane",t.selectedPane?"right":"left"),H(),it("ngIf",t.delayedDoneLoading),H(7),it("ngIf",t.configuration.type),H(),it("ngIf",t.configuration.mpn),H(),it("ngIf",!t.isNarrow),H(3),it("ngClass",t.isNarrow?"narrow-solution-img":"")("src",t.getWebpImg(t.configuration==null?null:t.configuration.imgUrl),dr),H(),it("ngIf",t.isNarrow),H(),it("ngClass",t.isNarrow?"":"mb-5"),H(2),it("ngIf",!t.isNarrow),H(4),it("ngIf",(t.configuration==null||t.configuration.optimizedConfigurations.good==null?null:t.configuration.optimizedConfigurations.good.costTotal)!="0.00"||t.activeReference=="good"),H(),it("ngIf",(t.configuration==null||t.configuration.optimizedConfigurations.better==null?null:t.configuration.optimizedConfigurations.better.costTotal)!="0.00"||t.activeReference=="better"),H(),it("ngIf",(t.configuration==null||t.configuration.optimizedConfigurations.best==null?null:t.configuration.optimizedConfigurations.best.costTotal)!="0.00"||t.activeReference=="best"),H(2),it("ngForOf",t.categoryKeys)("ngForTrackBy",t.trackByCategory),H(),it("ngIf",t.isNarrow),H(4),it("ngIf",(t.specTotals==null?null:t.specTotals.memory)||(t.specTotals==null?null:t.specTotals.wattage)||(t.specTotals==null?null:t.specTotals.btu)),H(),it("ngClass",t.specTotals!=null&&t.specTotals.memory||t.specTotals!=null&&t.specTotals.wattage||t.specTotals!=null&&t.specTotals.btu?"":"floating-text-no-totals"),H(2),it("ngIf",((t.specTotals==null?null:t.specTotals.memory)||(t.specTotals==null?null:t.specTotals.wattage)||(t.specTotals==null?null:t.specTotals.btu))&&(!t.isNarrow||t.bottomTabToggled)),H(7),Yt(" ",t.configuration.optimizedConfigurations[t.activeReference].priceTotal," "),H(),it("buttonOptions",Na(21,x5))}}function N_(e,i){if(e&1&&(j(0,"div",7),Ft(1,k_,42,22,"app-slide-panel",8),_e(2,"a",9),X()),e&2){let t=Z();H(),it("ngIf",t.configuration.optimizedConfigurations)}}var Le="configurator.component",Ad=(()=>{class e extends fu{onTouchMove(){if(!this.isBrowser||!this.isNarrow)return;let t=(document.documentElement.scrollTop||document.body.scrollTop)+document.documentElement.offsetHeight,n=document.documentElement.scrollHeight-676;this.isVisible=t<n}constructor(t,n,r,o,c,s,f,h,g,y,S,d,O,E,D,N,Y){super({dependencies:{platformId:n,breakpointObserver:r,dialog:g,routerService:y,marketoService:S,metaService:d,environment:t}}),this.platformId=n,this.formBuilder=o,this.configuratorService=c,this.sharedRuleService=s,this.savedConfigurationService=f,this.webstoreProductService=h,this.dialog=g,this.routerService=y,this.marketoService=S,this.metaService=d,this.toastr=E,this.renderer=N,this.transferState=Y,this.categoryMap=new Map,this.data={},this.isSaving=!1,this.isVisible=!1,this.filteredProducts=[],this.errors={},this.configuration={},this.activeReference="good",this.selectedPane=!1,this.contentDataURL="",this.categoryKeys=["Platform","CPU","CPU Heatsink","Memory","M.2 Drive","U.2/U.3 NVME Drive","Hard Drive / SSD","Optical Drive","5.25\u201D Bay","GPU","Advanced Cooling","NVIDIA NVLink","Video Devices","Controller Card","Battery Backup","Network Card ","Network Cable","I/O Module \u2013 Networking","PCI-Express Storage Card","Storage Cables","Sound Cards","Trusted Platform Module (TPM)","Riser Card","Power Supply","Cables","Mounting Rails","OS","Software","Warranty","Monitor","Peripherals","Power Protection","NAS"],this.driveKeys=["M.2 Drive","U.2/U.3 NVME Drive","Hard Drive / SSD"],this.optimizedConfigurations={good:{selectedSpecs:{}},better:{selectedSpecs:{}},best:{selectedSpecs:{}}},this.names=[],this.specTotals={wattage:null,btu:null,memory:null},this.gpuData={isSupported:null,totalLinks:0,nvLinkMessage:null,maxSlots:null,slotWidth:null,slotLimits:null,availableSlots:0},this.minTotalMemory=null,this.sharedRules=[],this.sharedRulesErrors=[],this.softwareDisabled=!1,this.osDisabled=!1,this.networkingData={activeNetworkCard:null,activeConnectorType:"",activeCableProductLines:[],numPorts:[]},this.bottomTabToggled=!0,this.rightFormActive=!0,this.doneLoading=!1,this.delayedDoneLoading=!1,this.currentDate=new Date(Date.now()).toLocaleStr
78ing("en"),this.variantWhitelist=["ANS","SCH","CPS"],this.xsBreakpointObserver=this.breakpointObserver.observe(hu.XSmall),this.trackByIndex=W=>W,this.trackByCategory=(W,z)=>z,this.trackByProduct=(W,z)=>z?.mpn||z?.key||W,this.trackByLine=(W,z)=>z,this.trackByPort=(W,z)=>z?.value||W,this.isBrowser=zs(this.platformId),this.getWebpImg=W=>D.getWebpImg(W),this.modalService=O,zs(this.platformId)&&(window.onbeforeunload=()=>{this.doneLoading=!1})}ngOnInit(){return li(this,null,function*(){!this.isBrowser&&this.hasProductDataInTransferState()&&(this.doneLoading=!0,this.delayedDoneLoading=!0),this.addFixedClasses(),this.sendBreadcrumb(),this.initForm(),yield this.initConfiguration().then(()=>{this.doneLoading=!0,setTimeout(()=>{this.delayedDoneLoading=!0},500)}),this.isBrowser&&this.isNarrow&&(this.isVisible=!0)})}ngOnDestroy(){Object.keys(this.errors).forEach(n=>{this.errors[n]&&this.toastr.clear(this.errors[n])}),this.removeFixedClasses()}getBaseUrl(){return this.routerService.baseUrl=="http://localhost:8080"?"http://localhost:4200":this.routerService.baseUrl}hasProductDataInTransferState(){let t="product";return this.transferState.hasKey(t)}sendBreadcrumb(){return li(this,null,function*(){try{if(!this.isBrowser||!localStorage)return;yield this.marketoService.init();let t=localStorage.getItem("breadcrumb");t&&t.includes(this.routerService.url.parts[0])?this.marketoService.sendConfigurator(t+"/configurator"):this.marketoService.sendConfigurator(t+this.routerService.url.parts.join(","))}catch(t){console.error(...new Ce(923842,Le,t).stamp())}})}addFixedClasses(){if(!this.isBrowser)return;let t=document.getElementById("header"),n=document.getElementById("footer");t&&this.renderer.addClass(t,"fixed-header"),n&&this.renderer.addClass(n,"fixed-footer")}removeFixedClasses(){if(!this.isBrowser)return;let t=document.getElementById("header"),n=document.getElementById("footer");t&&this.renderer.removeClass(t,"fixed-header"),n&&this.renderer.removeClass(n,"fixed-footer")}initForm(){try{this.productsForm=this.formBuilder.group({productCategory:["",{validators:[Us.required]}],productName:[""],productCost:["",{validators:[Us.required]}],productQuantity:["",{validators:[Us.required]}]}),this.categories=this.formBuilder.group({categoryName:[""],maxQuantity:[""],minQuantity:[""],setsOf:[""]}),this.maxForm=this.formBuilder.group({maxQuantity:[""]}),this.minForm=this.formBuilder.group({minQuantity:[""]}),this.setsOfForm=this.formBuilder.group({setsOf:[""]})}catch(t){console.error(...new Ce(116422,Le,t).stamp())}}hasErrorCategory(t){if(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t]){let n=0;return this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].forEach(o=>{n+=o.quantity}),n<this.configuration.category[t].minQuantity&&this.configuration.category[t]&&this.configuration.category[t].isRequired}}hasErrorSelectMultiple(t){if(this.configuration.category[t]){let n=0;return this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].forEach(o=>{n+=o.quantity}),n>this.configuration.category[t].maxQuantity}}hasErrorGpuLimits(t){let n={hasError:!1,msg:""},r=this.configuration.category["Network Card "]?.sharedSlots,o=this.configuration.category["PCI-Express Storage Card"]?.sharedSlots;return(t=="GPU"||t=="Network Card "&&r||t=="PCI-Express Storage Card"&&o)&&this.configuration.maxGPUSlots&&this.gpuData.availableSlots<0&&(n.hasError=!0,n.msg="Too many GPUs",r&&(n.msg+=" / Network Cards"),o&&(n.msg+=" / PCI-Express Storage Cards"),n.msg+=" selected for this system"),n}hasErrorMinMaxSharedRule(t){let n=this.getSharedRules(t,"min/max");n.length&&n.forEach(r=>{if(r.name==="min/max"){let o=this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs,c=r.rule.minQuantity,s=r.rule.maxQuantity,f=0;r.categories.forEach(h=>{o[h].forEach(g=>{f+=g.quantity})}),f>s||f<c?this.checkErrorSharedRule(t,"min/max")||this.sharedRulesErrors.push({type:"min/max",categories:r.categories}):this.sharedRulesErrors.forEach((h,g)=>{h.type==="min/max"&&h.categories===r.categories&&this.sharedRulesErrors.splice(g,1)})}})}createToast(t,n){let r=this.toastr.show(t,null,{toastComponent:Bu,disableTimeOut:!0,tapToDismiss:!1});r.toastRef.componentInstance.category=n,this.errors[n]=r.toastId}checkError(t){let n=this.hasErrorCategory(t),r=this.hasErrorSelectMultiple(t),o=this.hasErrorGpuLimits(t),c=this.checkErrorSharedRule(t,"min/max"),s=n||r||o.hasError,f=t in this.errors,h=(t=="GPU"||t=="Network Card "&&this.configuration.category["Network Card "]?.sharedSlots||t=="PCI-Express Storage Card"&&this.configuration.category["PCI-Express Storage Card"]?.sharedSlots)&&"Slot Limits"in this.errors;if((n||r||o.hasError||c)&&!f&&!h){let g=this.configuration.category[t].maxQuantity,y=0;this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].forEach(d=>{y+=d.quantity});let S="";n?S=`${t} must have at least one selected`:r?S=`${t} max qty ${g} (${y} selected)`:o.hasError?S=o.msg:c&&(S=`${t} has a shared quantity error`),o.hasError?this.createToast(S,"Slot Limits"):this.createToast(S,t)}else if(!(n||r||o.hasError||c)&&(f||h)){this.toastr.clear(this.errors[t]),delete this.errors[t],h&&(this.toastr.clear(this.errors["Slot Limits"]),delete this.errors["Slot Limits"]);let g=Object.keys(this.errors);g.length===1&&g[0]==="hasErrors"&&(this.toastr.clear(this.errors.hasErrors),delete this.errors.hasErrors)}return s}checkErrorSharedRule(t,n){let r=!1;return this.sharedRulesErrors.length&&this.sharedRulesErrors.forEac
78h(o=>{o.type===n&&o.categories.has(t)&&(r=!0)}),r}openPdfGatedBootstrapMarketoDialog(){return li(this,null,function*(){try{this.rightFormActive=!1;let t=yield this.savedConfigurationService.createSavedConfiguration(this.configuration._id,this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs),n={data:{action:"display",marketoFormId:"mktoForm_2612",configuratorSystemPrice:this.configuration.optimizedConfigurations[this.activeReference].priceTotal,configuratorData:this.configFormattedData,saveConfiguratorInformation:t.data.url}};this.modalRef=this.modalService.show(Pu,{animated:!0,class:"modal-marketo-form modal-dialog-centered",initialState:n}),this.modalRef.content.closeBtnName="Close",this.modalRef.content.formSubmittedEmitter.subscribe(r=>li(this,null,function*(){if(r.success){let o=yield this.savedConfigurationService.addCustomerDataToSavedConfiguration(t.data,r.customerData);this.savedConfigurationService.saveSavedConfiguration(o),this.savePdf()}})),this.modalRef.content.reloadEventEmitter.subscribe(()=>{this.doneLoading=!1,this.delayedDoneLoading=!1}),this.modalRef.onHide.subscribe(()=>{this.rightFormActive=!0})}catch(t){console.error(...new Ce(969695,Le,t).stamp())}})}initConfiguration(){return li(this,null,function*(){try{this.formId="mktoForm_2347",this.configuration.mpn=this.configuration.name=this.routerService.url.current.replace("/configurator","");let t=this.webstoreProductService.getProductByMpnComponentConfig(this.configuration.mpn),n=this.configuration.mpn.replace("/","");this.variantWhitelist.includes(this.configuration.mpn.split("-")[2])||(this.configuration.mpn=this.configuration.mpn.split("-")[0]+"-"+this.configuration.mpn.split("-")[1]),this.configuration.mpn=this.configuration.mpn.split("?")[0],this.configuratorService.getConfigurationByUrlComponent("exx",this.configuration.mpn,null,null,null,!0).then(r=>{(!r||!Su(r[0]))&&this.routerService.router.navigateByUrl("/");let o=Yn(r[0]);this.configuration=this.convertConfigV2ToV1(o),this.gpuData.maxSlots=this.configuration.maxGPUSlots,this.gpuData.slotWidth=this.configuration.slotWidth?this.configuration.slotWidth:2,this.minTotalMemory=this.configuration.minTotalMemory?this.configuration.minTotalMemory:null,this.initGpuLimits(),["best","better","good"].forEach(s=>{this.selectReference(s)}),this.data=this.getSelectedSpecs(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs),this.configuration.type&&(n=this.configuration.type),this.initSpecs(),this.calculateMarkupPercent(this.configuration.markupPercent),this.maintainReferenceBombs(),this.maintainReferenceProducts(),this.sortSelectedSpecs(),this.sharedRuleService.findSharedRule(this.configuration._id).then(s=>{this.sharedRules=this.parseRuleResponse(s.data)}),this.routerService.url.params&&this.routerService.url.params.state&&this.savedConfigurationService.findSavedConfiguration(r[0]._id,this.routerService.url.params.state).then(s=>{s.data.length&&(this.configuration.optimizedConfigurations.good.selectedSpecs=s.data[0].selectedSpecs,this.selectReference("good"),this.savedConfigurationService.createSavedConfiguration(this.configuration._id,this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs).then(f=>{this.configurationUrlData=f.data}))})}),t.then(r=>{r&&this.metaService.add({title:` ${r.description} | Configurator | ${this.environment.siteName}`,description:`Customize your ${n} with our online configuration tool. Inquire today and find out more regarding EDU and government discounts from Exxact.`})})}catch(t){console.error(...new Ce(116423,Le,t).stamp())}})}convertConfigV2ToV1(t){let n=new Map,r={_id:t._id,mpn:t.mpn,name:t.name,imgUrl:t.imgUrl,markupPercent:t.markupPercent,markupAmount:t.markupAmount,notes:t.notes,maxGPUSlots:t.maxGPUSlots,slotWidth:t.slotWidth,minTotalMemory:t.minTotalMemory,categoryNames:this.categoryKeys,category:{},products:{},optimizedConfigurations:{good:{selectedSpecs:{},category:{},costTotal:t.optimizedConfigurations.good.costTotal,priceTotal:t.optimizedConfigurations.good.priceTotal,products:{},title:t.optimizedConfigurations.good.title},better:{selectedSpecs:{},category:{},costTotal:t.optimizedConfigurations.better.costTotal,priceTotal:t.optimizedConfigurations.better.priceTotal,products:{},title:t.optimizedConfigurations.better.title},best:{selectedSpecs:{},category:{},costTotal:t.optimizedConfigurations.best.costTotal,priceTotal:t.optimizedConfigurations.best.priceTotal,products:{},title:t.optimizedConfigurations.best.title}}};
78t.categories.forEach(s=>{this.categoryMap.set(s.category,s)}),t.products.forEach(s=>{n.set(s._id,s)});let o={name:"No, thanks.",type:"",quantity:1,cost:0,price:0,productLine:""};return n.set("61049d1a6c78f86de9ff939d",o),t.categories.forEach(s=>{r.category[s.category]={setsOf:s.setsOf,productLineKeys:s.productLines,isRequired:s.isRequired,isMultiple:s.isMultiple,minQuantity:s.minQuantity,maxQuantity:s.maxQuantity,note:s.note,sharedSlots:s.sharedSlots},r.category[s.category].options=Array.from({length:r.category[s.category].maxQuantity},(f,h)=>h+1).filter(f=>r.category[s.category].setsOf?f%r.category[s.category].setsOf==0&&f>=r.category[s.category].minQuantity:f>=r.category[s.category].minQuantity),s.products.forEach(f=>{let h=Yn(n.get(f));h.productLine==""&&(h.productLine=null),r.category[s.category].productLines||(r.category[s.category].productLines={}),r.category[s.category].productLines[h.productLine]||(r.category[s.category].productLines[h.productLine]=[]),r.category[s.category].productLines[h.productLine].push(Yn(h)),r.products[s.category]||(r.products[s.category]=[]),r.products[s.category].push(Yn(h))})}),["good","better","best"].forEach(s=>{t.optimizedConfigurations[s].selectedSpecs.forEach(f=>{r.optimizedConfigurations[s].category[f.category]=Yn(r.category[f.category]),r.optimizedConfigurations[s].category[f.category].minQuantity==0&&(r.optimizedConfigurations[s].category[f.category].noThanks=n.get("61049d1a6c78f86de9ff939d")),r.optimizedConfigurations[s].products[f.category]=Yn(r.products[f.category]),r.optimizedConfigurations[s].selectedSpecs[f.category]||(r.optimizedConfigurations[s].selectedSpecs[f.category]=[]),f.products.forEach(h=>{let g=Yn(Object.assign(n.get(h._id),{quantity:h.quantity}));r.optimizedConfigurations[s].selectedSpecs[f.category].push(Yn(g))})})}),r}maintainReferenceProducts(){let t=Object.keys(this.configuration.optimizedConfigurations);this.configuration.categoryNames.forEach(n=>{for(let r of t){if(!this.configuration.optimizedConfigurations[r].category[n])return;this.configuration.optimizedConfigurations[r].category[n].productLineKeys=Object.keys(uf(this.configuration.optimizedConfigurations[r].products[n],"productLine")),this.configuration.optimizedConfigurations[r].category[n].productLineKeys.sort((o,c)=>o.length-c.length),this.configuration.optimizedConfigurations[r].category[n].productLines=uf(this.configuration.optimizedConfigurations[r].products[n],"productLine")}})}addProductFromList(t){return li(this,null,function*(){try{if(!t)return;yield this.createCategory(t.type,1,1),this.configuration.products[t.type].find(r=>{if(t.name==r.name)return r})||this.configuration.products[t.type].push(t)}catch(n){console.error(...new Ce(996438,Le,n).stamp())}})}selectNoThanks(t){this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t]=[],this.hasErrorMinMaxSharedRule(t),this.driveKeys.includes(t)&&this.checkForNoDrivesSelected(),t==="OS"&&this.checkForIncompatibleSoftware(),this.maintainReferenceBombs(),this.sortSelectedSpecs(),(t=="GPU"||t=="Network Card "&&this.configuration.category["Network Card "]?.sharedSlots||t=="PCI-Express Storage Card"&&this.configuration.category["PCI-Express Storage Card"]?.sharedSlots)&&(this.getGpuLimitsFromSelected(),this.checkError(t)),t=="Network Card "&&this.updateNetworkingData(null)}createCategory(t,n,r){return li(this,null,function*(){try{if(this.configuration.categoryNames.includes(`${t}`))return;this.configuration.products[`${t}`]=[],this.configuration.category[`${t}`]={},this.configuration.category[t].minQuantity=n,this.configuration.category[t].maxQuantity=r,this.configuration.category[t].options=Array.from({length:r},(c,s)=>s+1),this.configuration.categoryNames.push(t);let o=Object.keys(this.configuration.optimizedConfigurations);for(let c of o)this.configuration.optimizedConfigurations[c].selectedSpecs[t]=[];yield this.maintainReferenceBombs()}catch(o){console.error(...new Ce(996436,Le,o).stamp())}})}initSpecs(){return li(this,null,function*(){try{if(!this.configuration.optimizedConfigurations)return;let t=Object.keys(this.configuration.optimizedConfigurations);
78for(let n of t)this.configuration.categoryNames.forEach(r=>{this.configuration.optimizedConfigurations[n].selectedSpecs[r]||(this.configuration.optimizedConfigurations[n].selectedSpecs[r]=[])})}catch(t){console.error(...new Ce(116425,Le,t).stamp())}})}calculateMarkupAmount(t){return li(this,null,function*(){try{this.configuration.markupPercent=0,this.configuration.markupAmount=t;let n=Object.keys(this.configuration.products),r=Object.keys(this.configuration.optimizedConfigurations),o=t/qu(n);for(let c of n)this.configuration.products[c].forEach(s=>{s.price=(s.cost+o).toFixed(2),s.price=parseFloat(s.price)});for(let c of r)for(let s of n)this.configuration.optimizedConfigurations[c].selectedSpecs[s].price&&(this.configuration.optimizedConfigurations[c].selectedSpecs[s].price=(this.configuration.optimizedConfigurations[c].selectedSpecs[s].price+o).toFixed(2),this.configuration.optimizedConfigurations[c].selectedSpecs[s].price=parseFloat(this.configuration.optimizedConfigurations[c].selectedSpecs[s].price));yield this.maintainReferenceBombs()}catch(n){console.error(...new Ce(116427,Le,n).stamp())}})}calculateMarkupPercent(t){return li(this,null,function*(){try{this.configuration.markupPercent=t,this.configuration.markupAmount=0;let n=Object.keys(this.configuration.products),r=Object.keys(this.configuration.optimizedConfigurations);for(let o of n)this.configuration.products[o].forEach(c=>{c.price=(c.cost*(1+this.configuration.markupPercent/100)).toFixed(2),c.price=parseFloat(c.price)});for(let o of r)for(let c of n){for(let s of this.configuration.optimizedConfigurations[o].products[c])s.price=(s.cost*(1+this.configuration.markupPercent/100)).toFixed(2),s.price=parseFloat(s.price);this.configuration.optimizedConfigurations[o].selectedSpecs[c].forEach((s,f,h)=>{s.price=(s.cost*(1+this.configuration.markupPercent/100)).toFixed(2),s.price=parseFloat(s.price)})}yield this.maintainReferenceBombs()}catch(n){console.error(...new Ce(996428,Le,n).stamp())}})}calcDiff(t,n){try{if(n.name=="No, thanks."){let c=0;return this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].forEach(s=>{c+=s.price}),c==0&&this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].length==0?"Included":c==0?0:"-"+this.formatNumbers(c)}let r=n.price,o=this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].find(function(c){return c._id==n._id});return!this.configuration.category[t].isMultiple&&this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t][0]?(r=n.price-this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t][0].price,r=r.toFixed(2)):o?r=(-n.price).toFixed(2):r=n.price.toFixed(2),parseFloat(r)==0?o?"Included":0:parseFloat(r)>0?"+"+this.formatNumbers(r):"-"+this.formatNumbers(-r)}catch(r){console.error(...new Ce(996429,Le,r).stamp())}}selectReference(t){return li(this,null,function*(){try{this.activeReference=t,this.configuration.activeReference=t,this.updateGpuData("GPU",this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs),this.maintainReferenceBombs(),this.data=this.getSelectedSpecs(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs),this.get
78SelectedProductQuantity(),this.checkForIncompatibleSoftware(),this.checkForNoDrivesSelected(),this.sortSelectedSpecs()}catch(n){console.error(...new Ce(116430,Le,n).stamp())}})}selectProduct(t,n){try{if(n.name=="No, thanks.")if(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t][0].name!=n.name){this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t]=[n],this.hasErrorMinMaxSharedRule(t),this.maintainReferenceBombs(),this.sortSelectedSpecs();return}else{this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t]=[],this.hasErrorMinMaxSharedRule(t),this.maintainReferenceBombs(),this.sortSelectedSpecs();return}if(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].filter(o=>n._id==o._id).length>0){let o=this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].find(s=>s._id==n._id),c=hf(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t],o);this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].splice(c,1),this.hasErrorMinMaxSharedRule(t),this.maintainReferenceBombs(),(t=="GPU"||t=="Network Card "&&this.configuration.category["Network Card "]?.sharedSlots||t=="PCI-Express Storage Card"&&this.configuration.category["PCI-Express Storage Card"]?.sharedSlots)&&(this.getGpuLimitsFromSelected(),this.checkError(t)),t=="OS"&&this.checkForIncompatibleSoftware(),this.driveKeys.includes(t)&&this.checkForNoDrivesSelected(),t=="Network Card "&&this.updateNetworkingData(null),this.sortSelectedSpecs();return}this.configuration.category[t].isMultiple?this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].push(n):this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t]=[n],this.hasErrorMinMaxSharedRule(t),this.maintainReferenceBombs(),(t=="GPU"||t=="Network Card "&&this.configuration.category["Network Card "]?.sharedSlots||t=="PCI-Express Storage Card"&&this.configuration.category["PCI-Express Storage Card"]?.sharedSlots)&&(this.getGpuLimitsFromSelected(),this.checkError(t)),t=="OS"&&this.checkForIncompatibleSoftware(),this.driveKeys.includes(t)&&this.checkForNoDrivesSelected(),t=="Network Card "&&this.updateNetworkingData(n),this.sortSelectedSpecs()}catch(r){console.error(...new Ce(996431,Le,r).stamp())}}includesProducts(t,n){try{return this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].filter(o=>o._id==n._id).length>0}catch(r){console.error(...new Ce(995760,Le,r).stamp())}}parseFloat(t){return parseFloat(t)}formatNumbers(t){try{return t==null?void 0:(typeof t!="string"&&(t=t.toFixed(2)),"$"+t.replace(/\B(?=(\d{3})+(?!\d))/g,","))}catch(n){console.error(...new Ce(934260,Le,n).stamp())}}maintainReferenceBombs(){return li(this,null,function*(){try{let t=this.configuration.optimizedConfigurations.good.selectedSpecs;this.configuration.optimizedConfigurations.good.costTotal=this.formatNumbers(this.getTotalCost(t).toFixed(2)),this.configuration.optimizedConfigurations.good.priceTotal=this.formatNumbers(this.getTotalPrice(t).toFixed(2));let n=this.configuration.optimizedConfigurations.better.selectedSpecs;this.configuration.optimizedConfigurations.better.costTotal=this.formatNumbers(this.getTotalCost(n).toFixed(2)),this.configuration.optimizedConfigurations.better.priceTotal=this.formatNumbers(this.getTotalPrice(n).toFixed(2));let r=this.configuration.optimizedConfigurations.best.selectedSpecs;this.configuration.optimizedConfigurations.best.costTotal=this.formatNumbers(this.getTotalCost(r).toFixed(2)),this.configuration.optimizedConfigurations.best.priceTotal=this.formatNumbers(this.getTotalPrice(r).toFixed(2)),this.get
78SpecTotals()}catch(t){console.error(...new Ce(996432,Le,t).stamp())}})}getTotalCost(t){try{let n=0,r=Object.keys(t);for(let o of r)t[o].forEach(c=>{n+=c.cost});return n}catch(n){console.error(...new Ce(996433,Le,n).stamp())}}getTotalPrice(t){try{let n=0,r=Object.keys(t);for(let o of r)t[o].forEach(c=>{n+=c.price});return n}catch(n){console.error(...new Ce(996434,Le,n).stamp())}}getSpecTotals(){return li(this,null,function*(){try{let{selectedSpecs:t}=this.configuration.optimizedConfigurations[this.activeReference];this.specTotals.wattage=yield this.getTotalWattage(t),this.specTotals.btu=this.calculateBTU(this.specTotals.wattage),this.specTotals.memory=this.getTotalMemory(t)}catch(t){console.error(...new Ce(996445,Le,t).stamp())}})}getTotalWattage(t){return li(this,null,function*(){try{let n=0,r=Object.keys(t);for(let o of r)t[o].forEach(c=>{c.wattage&&(n+=c.wattage*c.quantity)});return n}catch(n){console.error(...new Ce(996444,Le,n).stamp())}})}calculateBTU(t){return parseFloat((t*3.412141633).toFixed(2))}getTotalMemory(t){try{let n=0;return t.Memory.forEach(r=>{r.memory&&(n+=r.memory*r.quantity)}),n}catch(n){console.error(...new Ce(996446,Le,n).stamp())}}updateGpuData(t,n){try{t=="GPU"&&(this.gpuData.isSupported=!1,this.gpuData.totalLinks=0,this.gpuData.nvLinkMessage=null,n.GPU.forEach(r=>{r.nvLinkSupported&&(this.gpuData.isSupported=!0,this.gpuData.totalLinks+=Sl(r.quantity/2)*r.nvLinksPerPair,r.quantity%2!=0&&(this.gpuData.nvLinkMessage="One GPU will not have NVLink"))}),this.gpuData.isSupported?this.gpuData.totalLinks==0&&(this.gpuData.nvLinkMessage="NVLink requires at least 1 GPU pair",this.selectNoThanks("NVIDIA NVLink")):(this.gpuData.nvLinkMessage="NVLink not supported by selected GPU",this.selectNoThanks("NVIDIA NVLink")),this.gpuData.totalLinks&&this.updateProductQuantity(this.gpuData.totalLinks,"NVIDIA NVLink",this.configuration.optimizedConfigurations[this.activeReference].category["NVIDIA NVLink"].productLines[null][0],!1))}catch(r){console.error(...new Ce(996447,Le,r).stamp())}}calcMaxGPUQty(t,n){return bd([Sl(n.maxSlots*n.slotWidth/t),n.maxSlots,t>n.slotWidth?Sl(n.maxSlots/(t-(n.slotWidth+1))):null,this.configuration.category.GPU?.maxQuantity??null])}initGpuLimits(){try{this.gpuData.slotLimits=[{name:"Single Slot",max:this.calcMaxGPUQty(1,this.gpuData),current:0,space:1},{name:"Double Slot",max:this.calcMaxGPUQty(2,this.gpuData),current:0,space:2},{name:"Triple Slot",max:this.calcMaxGPUQty(3,this.gpuData),current:0,space:3},{name:"Quadruple Slot",max:this.calcMaxGPUQty(4,this.gpuData),current:0,space:4}]}catch(t){console.error(...new Ce(996448,Le,t).stamp())}}getGpuLimitsFromSelected(){this.resetGpuLimits();let{selectedSpecs:t}=this.configuration.optimizedConfigurations[this.activeReference];t.GPU.forEach(n=>{this.updateGpuLimits(n.slotSpace,!0,n.quantity)}),this.configuration.category["Network Card "]?.sharedSlots&&t["Network Card "].forEach(n=>{this.updateGpuLimits(1,!0,n.quantity)}),this.configuration.category["PCI-Express Storage Card"]?.sharedSlots&&t["PCI-Express Storage Card"].forEach(n=>{this.updateGpuLimits(1,!0,n.quantity)}),this.updateAvailableGpuSlots()}updateGpuLimits(t,n,r){this.gpuData.slotLimits&&t&&(n?this.gpuData.slotLimits[t-1].current+=r:this.gpuData.slotLimits[t-1].current-=r)}resetGpuLimits(){this.gpuData.slotLimits&&this.gpuData.slotLimits.forEach(t=>{t.current=0})}updateAvailableGpuSlots(){try{let t=this.gpuData.maxSlots*this.gpuData.slotWidth;this.gpuData.slotLimits.forEach(n=>{n.space<this.gpuData.slotWidth?t-=n.current*this.gpuData.slotWidth:t-=n.current*n.space}),this.gpuData.availableSlots=t}catch(t){console.error(...new Ce(996458,Le,t).stamp())}}updateNetworkingData(t){this.networkingData.activeCableProductLines=[],t?(this.configuration.products["Network Cable"]&&this.updateProductQuantity(1,"Network Cable",t,!1),this.networkingData.activeConnectorType!==t.connectorType&&this.selectNoThanks("Network Cable"),this.networkingData.activeNetworkCard=Yn(t),this.networkingData.numPorts=Array.from({length:this.networkingData.activeNetworkCard.numPorts},(n,r)=>r+1),this.networkingData.activeConnectorType=t.connectorType,this.configuration.products["Network Cable"].forEach(n=>
78{n.connectorType==this.networkingData.activeConnectorType&&!this.networkingData.activeCableProductLines.includes(n.productLine)&&this.networkingData.activeCableProductLines.push(n.productLine)})):(this.networkingData.activeNetworkCard=null,this.networkingData.activeConnectorType=null,this.selectNoThanks("Network Cable"))}hideNetworkCables(t){return t=="Network Cable"&&!this.networkingData.activeNetworkCard}calculateMemoryQuantity(t){let n=this.configuration.category.Memory.minQuantity,r=this.configuration.category.Memory.maxQuantity,o=this.configuration.category.Memory.setsOf,c=this.minTotalMemory/t.memory,s=[];for(let f=n;f<=r;f+=o)f>=c&&s.push(f);return s}getSelectedSpecs(t){try{let n=[],r=Object.keys(t);for(let c of r)t[c].forEach(s=>{n.push({category:c,product:{_id:s._id,name:s.name,quantity:s.quantity}})}),this.configuration.optimizedConfigurations[this.activeReference].category[c]&&this.configuration.optimizedConfigurations[this.activeReference].category[c].noThanks&&this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[c].length==0&&n.push({category:c,product:{name:"*None",quantity:"--"}});n.sort((c,s)=>this.categoryKeys.indexOf(c.category)-this.categoryKeys.indexOf(s.category));let o={title:this.configuration.mpn,products:{}};return o.products=n,this.configFormattedData=JSON.stringify(o),n}catch(n){console.error(...new Ce(116434,Le,n).stamp())}}sortSelectedSpecs(){this.renderedCategories=Object.keys(this.configuration.optimizedConfigurations[this.activeReference].category),this.renderedCategories.sort((t,n)=>this.categoryKeys.indexOf(t)-this.categoryKeys.indexOf(n))}checkIsRequired(){return li(this,null,function*(){try{for(let t in this.configuration.category)if(this.configuration.category[t].isRequired&&this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t]){let n=0;if(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].forEach(r=>{n+=r.quantity}),n<this.configuration.category[t].minQuantity){if(zs(this.platformId)){let r=document.getElementById(t);r&&r.scrollIntoView({block:"center",behavior:"smooth"})}return!0}}return!1}catch(t){console.error(...new Ce(920312,Le,t).stamp())}})}checkMultipleProducts(){return li(this,null,function*(){try{for(let t in this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs)if(Object.prototype.hasOwnProperty.call(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs,t)){let n=0;if(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[t].forEach(r=>{n+=r.quantity}),!this.configuration.category[t])continue;if(n>this.configuration.category[t].maxQuantity)return!0}return!1}catch(t){console.error(...new Ce(996550,Le,t).stamp())}})}saveReferenceSpecs(){return li(this,null,function*(){try{return this.isSaving=!0,(yield this.checkIsRequired())||(yield this.checkMultipleProducts())?!1:(this.isSaving=!1,this.data=this.getSelectedSpecs(this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs),!0)}catch(t){console.error(...new Ce(903212,Le,t).stamp())}})}checkFormErrors(){let t=Object.keys(this.errors);return t.length>0?t.length===1&&t[0]==="hasErrors"?(this.toastr.clear(this.errors.hasErrors),delete this.errors.hasErrors,!1):(this.errors.hasErrors||this.createToast("Categories contain errors","hasErrors"),!0):!1}saveSelectedData(t){return li(this,null,function*(){try{if(!this.isBrowser||this.checkFormErrors())return;this.saveReferenceSpecs().then(r=>{}),t?this.openPdfGatedBootstrapMarketoDialog():(this.savedConfigurationService.createSavedConfiguration(this.configuration._id,this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs).then(r=>{this.configurationUrlData=r.data}),this.rightFormActive=!0,this.selectedPane=!this.selectedPane)}catch(n){console.error(...new Ce(116437,Le,n).stamp())}})}saveConfiguration(t){return li(this,null,function*(){let n=yield this.savedConfigurationService.addCustomerDataToSavedConfiguration(this.configurationUrlData,t);this.savedConfigurationService.saveSavedConfiguration(n)})}savePdf(){return li(this,null,function*(){if(!this.isBrowser)return;
78this.currentDate=new Date(Date.now()).toLocaleString("en");let t=document.querySelector(".hidden-specs-marketo"),n=document.querySelector("#category-container");t.style.display="flex";let r=new Ht({orientation:"p",unit:"px",format:"letter",hotfixes:["px_scaling"]}),o=48,c=42,s=r.internal.pageSize.getWidth()-o*2,f=r.internal.pageSize.getHeight()-c*2;t.style.width=`${s}px`,t.style.height=`${f}px`,n.offsetHeight>500&&(t.style.height=`${f*2}px`),r.html(t,{autoPaging:"text",callback:h=>{n.offsetHeight<=500?h.deletePage(2):h.deletePage(3);let g=new Date().toLocaleDateString();h.save(`${g}-${cu(this.configuration,"mpn","")}`),t.style.display="none"},margin:[c,o,c,o]})})}updateProductQuantity(t,n,r,o){try{let c=t/r.quantity,s=this.configuration.optimizedConfigurations[this.activeReference].products[n],f=s.find(g=>g._id==r._id);this.configuration.category[n].isMultiple||n=="Memory"&&!o?(f.quantity=t,f.price*=c,f.cost*=c):n=="Memory"&&o?s.forEach(g=>{let y=this.calculateMemoryQuantity(g),S=y.includes(t)?t:y[0],d=S/g.quantity;g.quantity=S,g.price*=d,g.cost*=d}):s.forEach(g=>{let y=t/g.quantity;if(n!=="GPU")g.quantity=t;else{let S=this.calcMaxGPUQty(g.slotSpace,this.gpuData);S&&t>S?(y=S/g.quantity,g.quantity=S):g.quantity=t}g.price*=y,g.cost*=y});let h=this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[n].find(g=>g._id==r._id);if(!h&&n!="NVIDIA NVLink")this.selectProduct(n,r);else{let g=this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[n];this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs[n][hf(g,h)]=f}(n=="GPU"||n=="Network Card "&&this.configuration.category["Network Card "]?.sharedSlots||n=="PCI-Express Storage Card"&&this.configuration.category["PCI-Express Storage Card"]?.sharedSlots)&&(this.getGpuLimitsFromSelected(),this.checkError(n)),this.hasErrorMinMaxSharedRule(n),this.maintainReferenceBombs()}catch(c){console.error(...new Ce(996441,Le,c).stamp())}}getSelectedProductQuantity(){try{let t=this.configuration.optimizedConfigurations[this.activeReference].products,n=this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs;t&&Object.keys(t).forEach(r=>{t[r]&&t[r].forEach(o=>{Object.keys(n).forEach(c=>{n[c].forEach(s=>{s._id==o._id&&this.updateProductQuantity(s.quantity,c,o,!0)})})})})}catch(t){console.error(...new Ce(996500,Le,t).stamp())}}showDropDown(t){try{return this.configuration.category[t].minQuantity||this.configuration.category[t].maxQuantity}catch(n){console.error(...new Ce(236441,Le,n).stamp())}}openModal(t){this.modalRef=this.modalService.show(t,{class:"modal-xl modal-dialog-scrollable"})}closeModal(){this.modalRef.hide()}parseRuleResponse(t){for(let n=0;n<t.length;n++)t[n].categories=new Set(t[n].categories);return t}getSharedRules(t,n){return this.sharedRules.filter(r=>r.categories.has(t)&&r.name==n&&!r.delete)}hasSharedRule(t,n){let r=!1;return this.sharedRules.forEach(o=>{o.categories.has(t)&&o.name===n&&!o.delete&&(r=!0)}),r}getAnchoredSharedRule(t,n){let r=null;return this.sharedRules.forEach(o=>{Array.from(o.categories)[0]==t&&o.name==n&&!o.delete&&(r=o)}),r}isSharedRuleAnchor(t,n){let r=this.getSharedRules(t,"min/max");return r=r[0],Array.from(r.categories)[0]==t}getUsedCategoriesForSharedRuleAnchor(t,n){let r=this.getAnchoredSharedRule(t,n);return r?Array.from(r.categories):[]}combineSharedRuleCategoryLabels(t,n){if(this.isSharedRuleAnchor(t,"min/max")){let r=this.getSharedRules(t,"min/max");r=r[0];let o="";return r.categories.forEach(c=>{o+=c+" / "}),o.slice(0,-3)}else return null}checkForIncompatibleSoftware(){try{let t=this.configuration.optimizedConfigurations[this.activeReference].selectedSpecs.OS;t?.length?t[0]?._id=="61049e086c78f86de9ff93a0"||this.osDisabled?(this.softwareDisabled=!0,this.selectNoThanks("Software")):this.softwareDisabled=!1:(this.softwareDisabled=!0,this.selectNoThanks("Software"))}catch(t){console.error(...new Ce(996501,Le,t).stamp())}}checkForNoDrivesSelected(){try{let t=this.configuration.optimizedConfigurations[this.activeReference],n=!1;this.driveKeys.forEach(r=>{t?.selectedSpecs[r]?.length&&(n=!0)}),this.osDisabled=!n,this.osDisabled&&(this.selectNoThanks("OS"),this.selectNoThanks("Software"))}catch(t){console.error(...new Ce(996502,Le,t).stamp())}}static{this.\u0275fac=function(n){return new(n||e)(bi("environment"),bi(Xf),bi(uu),bi(Lu),bi(Cu),bi(Du),bi(Hu),bi(ju),bi(Tu),bi(gu),bi(Nu),bi(vu),bi(Au),bi(Ru),bi(xu),bi(tu),bi(Jf))}}static{this.\u0275cmp=eu({type:e,selectors:[["app-configurator"]],hostBindings:function(n,r){n&1&&De("scroll",function(){return r.onTouchMove()},Qf)("touchmove",function(){return r.onTouchMove()})("touchstart",function(){return r.onTouchMove()})},standalone:!1,features:[iu],decls:2,vars:2,consts:[["EMLIModal",""],["gpu_fallback_quantity",""],["memory_fallback_quantity",""],["class","configurator-loading d-flex align-items-center justify-content-center",4,"ngIf"],["id","scroll-div",4,"ngIf"],[1,"configurator-loading","d-flex","align-items-center","justify-content-center"],["diameter","25","color","accent"],["id","scroll-div"],["id","parent-panel",3,"activePane",4,"ngIf"],["id","link"],["id","parent-panel",3,"activePane"],["rightPane","","class","configurator-container gradient-background-left fx-wrap fx-row-h-center","id","rightPane",4,"ngIf"],["leftPane","","id","leftPane",1,"fx-wrap","configurator"],[1,"fx-row","configurator-container"],[1,"fx-row","fx-wrap","fx-row-container"],[1,"review-configuration","col-md-2_5","col-sm-12"],[1,"review-configuration-container","fx-col"],[4,"ngIf"],["class","configuration-mpn font-lg",3,"ngClass",4,"ngIf"],["class","review-save pt-3",4,"ngIf"],[1,"img-container"],["alt","Solution image",3,"ngClass","src"],["class","d-flex justify-content-center",4,"ngIf"],[1,"configure-system","col-md-6","col-offset-md-1","col-sm-12",3,"ngClass"],[1,"title"],[1,"featured-system-container","fx-row","fx-row-v-center","pt-2"],["class","button-references fx-col fx-col-h-center fx-col-v-ce
78nter",3,"ngClass","click",4,"ngIf"],[1,"fx-col"],["class","category",4,"ngFor","ngForOf","ngForTrackBy"],["class","review-save py-3 col-sm-12",4,"ngIf"],[1,"footer-tab-wrapper"],[1,"footer-tab-inner-wrapper"],[1,"footer-tab"],["class","footer-tab-toggle justify-content-center align-items-center w-100",3,"click",4,"ngIf"],["id","config-floating-text-button",1,"fx-row","fx-row-v-center","fx-row-h-center",3,"ngClass"],[1,"col-xl-12","col-lg-6","p-0"],["class","spec-totals d-flex flex-col",4,"ngIf"],[1,"spacer"],[1,"cta-wrapper","d-flex","flex-row","col-xl-6","col-lg-7"],[1,"pricing-wrapper"],[1,"m-0","bold","copy-sm","mb-base","lh-1"],[1,"m-0","font-lg","lh-1"],["id","cta",3,"click","buttonOptions"],["rightPane","","id","rightPane",1,"configurator-container","gradient-background-left","fx-wrap","fx-row-h-center"],["id","contact-container",1,"fx-row","fx-wrap","fx-row-container"],["class","marketo-specs col-lg-2_5 col-xs-12","id","narrow-data",4,"ngIf"],["id","configure-system-container",1,"col-md-5","col-xs-12"],["class","configure-system col-md-12 col-xs-12",3,"formId","configuratorSystemPrice","configuratorData","saveConfiguratorInformation","formSubmittedEmitter",4,"ngIf"],["id","marketo-specs-selector-wide","class","marketo-specs col-md-7 col-sm-12",4,"ngIf"],["id","wide-data",1,"hidden-specs-marketo"],[1,"top-wrapper","d-flex","fx-row","fx-row-h-space-between"],[1,"d-flex","fx-col","fx-col-h-flex-start"],["alt","exx-logo",1,"exxact-logo","mb-1",3,"src"],[1,""],[1,"pdf-contact-info","d-flex","fx-col","fx-col-h-right"],[1,"mb-3"],[1,"top-quote-warning","p-2","mb-3"],[1,"quote-bold","bold","mb-base"],[1,"mpn","font-md","mb-3","mt-0"],[1,"grid-descriptors","fx-row"],[1,"descriptor-item","p-0"],[1,"bold"],[1,"p-0"],[1,"fx-row","mb-0"],[1,"descriptor-qty","d-flex","justify-content-start","p-0","ml-1","mr-base"],[1,"fx-col-h-left","bold"],[1,"descriptor-desc","product","fx-row","pr-0"],["id","category-container"],["class","fx-col summary-row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"pdf-totals-wrapper","d-flex","fx-row","fx-row-h-space-between","mt-3"],[1,"pdf-spec-totals","d-flex","fx-col"],[1,"spec-totals-amount","d-flex","flex-row","align-items-center","bold","font-xs","mb-base"],["alt","watts",1,"mr-1",3,"src"],[1,"spec-totals-unit","ml-1"],["alt","btu",1,"mr-1",3,"src"],[1,"spec-totals-amount","d-flex","flex-row","align-items-center","bold","font-xs"],["alt","memory",1,"mr-1",3,"src"],[1,"pdf-price-totals","d-flex","fx-col"],[1,"d-flex","fx-row","fx-row-h-space-between","mb-base"],[1,"pdf-price","bold"],[1,"d-flex","fx-row","fx-row-h-space-between"],[1,"pdf-ship-tax"],[1,"bottom-wrapper","d-flex","fx-row","fx-row-h-space-between"],[1,"pdf-bottom-left"],[1,"sales-p","bold","mb-1"],[1,"sales-sub-p","d-flex","fx-row","fx-row-v-center","mb-base"],["alt","phone",1,"pdf-icon-bottom","d-flex","mr-1",3,"src"],[1,"sales-sub-p","d-flex","fx-row","fx-row-v-center"],["alt","mail",1,"pdf-icon-bottom","d-flex","mr-1",3,"src"],[1,"pdf-bottom-right"],["id","narrow-data",1,"marketo-specs","col-lg-2_5","col-xs-12"],[1,"fx-col-v-space-between"],[1,"fx-col","fx-col-h-center"],["class","mt-5",4,"ngIf"],["class","mt-3 bold font-lg",4,"ngIf"],[1,"img-marketo","pt-4"],["alt","Solution image",1,"narrow-solution-img",3,"src"],[1,"d-flex","justify-content-between","mb-base","mt-4"],[1,"m-0","d-flex","align-items-end","lh-1","font-sm"],[1,"m-0","font-xl"],[1,"d-flex","justify-content-between","mb-base"],[1,"m-0","font-sm"],[1,"d-flex","justify-content-between","pb-2","mb-2","mt-3","edit-btn-wrapper"],[1,"m-0","bold","font-md"],[1,"fx-row","save","fx-row-v-center","edit-btn",3,"click"],[1,"m-0","bold","edit-config"],[1,"review-save"],["id","show-specs-marketo","class","fx-col",4,"ngIf"],["class","spec-totals d-flex flex-col justify-content-between",4,"ngIf"],[1,"mt-5"],[1,"mt-3","bold","font-lg"],["id","show-specs-marketo",1,"fx-col"],["class","fx-col light-bkg-padding",4,"ngFor","ngForOf","ngForTrackBy"],[1,"fx-col","light-bkg-padding"],[1,"col-xs-12","col-sm-12","p-0"],[1,"green350","bold","font-md","mb-1"],[4,"ngFor","ngForOf"],["class","col-xs-12 col-sm-12 p-0 product fx-row",4,"ngIf"],[1,"col-xs-12","col-sm-12","p-0","product","fx-row"],["class","fx-col-h-left mr-3",4,"ngIf"],[1,"fx-col","pr-0"],[1,"fx-col-h-left","mr-3"],[1,"text-nowrap"],[1,"fx-col-h-left"],[1,"spec-totals","d-flex","flex-col","justify-content-between"],[1,"d-flex","flex-row","align-items-center"],["svgIcon","ram"],[1,"spec-totals-unit","mt-0","lh-base"],["svgIcon","lightning"],["svgIcon","fire"],[1,"configure-system","col-md-12","col-xs-12",3,"formSubmittedEmitter","formId","configuratorSystemPrice","configuratorData","saveConfiguratorInformation"],["id","marketo-specs-selector-wide",1,"marketo-specs","col-md-7","col-sm-12"],[1,"fx-col-v-space-between","config-spec-container"],[1,"grid","fx-row-h-space-between","marketo-specs-title","pb-2"],["class","m-0 g-col-12",4,"ngIf"],["class","m-0 g-col-12 font-xl mb-3",4,"ngIf"],[1,"m-0","g-col-6","align-self-end","font-sm"],[1,"m-0","g-col-6","
78justify-self-end"],[1,"m-0","g-col-6","font-sm"],[1,"m-0","g-col-6","font-sm","justify-self-end","white"],[1,"mb-4","g-col-12"],[1,"m-0","g-col-6","font-lg"],[1,"g-col-6","justify-self-end"],[3,"click","buttonOptions"],["class","fx-row light-bkg-padding",4,"ngFor","ngForOf","ngForTrackBy"],[1,"m-0","g-col-12"],[1,"m-0","g-col-12","font-xl","mb-3"],[1,"fx-row","light-bkg-padding"],[1,"fx-col","col-xs-12","p-0"],[1,"fx-row","col-sm-12","p-0"],[1,"col-sm-2","p-0"],[1,"category","font-md","bold"],[1,"col-sm-12","p-0"],["class","fx-row",4,"ngIf"],[1,"fx-row"],[1,"col-sm-1","p-0"],[1,"text-center"],[1,"col-sm-11","product","fx-row","pr-0"],[1,"spec-totals-unit","m-0"],[1,"fx-col","summary-row"],["class","fx-row p-0",4,"ngIf"],[1,"fx-row","p-0"],[1,"category","bold"],[1,"pdf-products","p-0"],["class","fx-row mb-0",4,"ngIf"],[1,"d-flex","justify-content-center","p-0","ml-1"],["class","pdf-item-quantity fx-col-h-left",4,"ngIf"],[1,"product","fx-row","pr-0"],["class","pdf-item-name fx-col-h-left",4,"ngIf"],[1,"pdf-item-quantity","fx-col-h-left"],[1,"pdf-item-name","fx-col-h-left"],[1,"configuration-mpn","font-lg",3,"ngClass"],[1,"review-save","pt-3"],[1,"fx-row",3,"click"],[1,"m-0","blue-link"],[1,"blue-link"],[1,"discount-button","fx-row","fx-row-h-space-around"],["svgIcon","price-tag",1,"mr-1","fx-row"],[1,"font-xxs","bold"],[1,"d-flex","justify-content-center"],[1,"button-tag","fx-row-h-space-around","discount-button"],["svgIcon","price-tag",1,"mr-1"],[1,"font-xxs"],[1,"button-references","fx-col","fx-col-h-center","fx-col-v-center",3,"click","ngClass"],[1,"col-sm-9","p-0"],["class","text-center",4,"ngIf"],[1,"m-0"],[1,"col-sm-6","p-0"],[1,"category"],["class","mt-4",3,"id",4,"ngIf"],["class","category mt-4",4,"ngIf"],[1,"mt-4",3,"id"],[1,"title","mb-base"],["class","copy-sm emli-text mt-0 mb-1",3,"click",4,"ngIf"],["class","fx-row fx-row-v-center",4,"ngIf"],["class","fx-col fx-col-v-center",4,"ngIf"],["class","select-parts-container fx-row fx-row-h-space-between fx-row-v-center mt-1",3,"ngClass","click",4,"ngIf"],["class","draggable-container",3,"hide",4,"ngFor","ngForOf"],[1,"copy-sm","emli-text","mt-0","mb-1",3,"click"],[3,"close"],[1,"fx-row","fx-row-v-center"],[1,"fx-row","alert-container","mt-1","align-items-center"],["svgIcon","alert-circle",1,"pr-1","alert-circle-note","d-flex"],[1,"config-note","fx-row","align-items-center"],[1,"fx-col","fx-col-v-center"],[1,"fx-row","alert-container","mt-1","w-fit-content","align-items-center"],["class","fx-row alert-container mt-1 w-fit-content align-items-center",4,"ngIf"],[1,"form-error","fx-row","fx-row-v-center","error-padding","mt-1"],["svgIcon","alert-triangle",1,"pr-1"],[1,"select-parts-container","fx-row","fx-row-h-space-between","fx-row-v-center","mt-1",3,"click","ngClass"],[1,"ml-2","bold",3,"ngClass"],[1,"draggable-container"],["class","fx-row fx-row-v-center line-container m-0",4,"ngIf"],[1,"fx-row","fx-row-v-center","line-container","m-0"],[1,"mt-2","productline-title"],["class","draggable fx-row fx-row-h-space-between",3,"hide",4,"ngFor","ngForOf"],[1,"draggable","fx-row","fx-row-h-space-between"],[3,"ngClass",4,"ngIf"],[1,"select-parts-container","fx-row","fx-row-h-space-between","fx-row-v-center",3,"click","ngClass"],["class","single-option-quantity h-100 d-flex align-items-start bold mr-2 mb",4,"ngIf"],[1,"w-100","fx-row","justify-content-between",3,"ngClass"],["class","memory-totals color-gray-500 font-xs",3,"ngClass",4,"ngIf"],[1,"ml-1","bold","pricing","h-100","d-flex","flex-column","align-items-end","justify-content-start",3,"ngClass"],["class","color-gray-500 font-xs mt-base",3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"value","disabled","ngClass",4,"ngIf"],[3,"value","disabled","ngClass"],[3,"value","click",4,"ngFor","ngForOf"],[3,"click","value"],[4,"ngIf","ngIfElse"],[1,"single-quantity-container","font-sm","bold",3,"ngClass"],[1,"single-option-quantity","h-100","d-flex","align-items-start","bold","mr-2","mb"],[1,"memory-totals","color-gray-500","font-xs",3,"ngClass"],[1,"color-gray-500","font-xs","mt-base",3,"ngClass"],[1,"d-flex","flex-column","color-inherit"],[1,"color-inherit"],["class","p-nvLink",4,"ngIf"],[1,"ml-2","bold","pricing","h-100","d-flex","align-items-start","justify-content-end",3,"ngClass"],[1,"p-nvLink"],[1,"category","mt-4"],["class","title",4,"ngIf"],["class","form-error error-padding fx-row fx-row-v-center my-1",3,"show",4,"ngIf"],[1,"form-error","error-padding","fx-row","fx-row-v-center","my-1"],["svgIcon","alert-circle",1,"pr-1"],[1,"mt-0"],[1,"fx-row","fx-row-v-center","m-0","line-container"],["class","productline-title mt-2",4,"ngIf"],["class","draggable fx-row fx-row-h-space-between",4,"ngFor","ngForOf"],[1,"productline-title","mt-2"],["class","weight-400 color-gray-500 font-xs",4,"ngIf"],[1,"ml-1","bold","pricing","h-100","d-flex","align-items-center","justify-content-end",3,"ngClass"],[1,"weight-400","color-gray-500","font-xs"],[1,"review-save","py-3","col-sm-12"],[1,"pb-2"],[1,"fx-row","save",3,"click"],[1,"lh-1","d-flex","align-items-center","align-self-center","m-0","save-text"],[1,"d-flex","align-items-center","color-btn-blue"],[1,"footer-tab-toggle","justify-content-center","align-items-center","w-100",3,"click"],[1,"m-0","font-sm","bold"],[1,"m-0",3,"ngClass"],[1,"spec-totals","d-flex","flex-col"]],template:function(n,r){n&1&&Ft(0,w5,2,0,"div",3)(1,N_,3,1,"div",4),n&2&&(it("ngIf",!r.doneLoading),H(),it("ngIf",r.doneLoading))},dependencies:[zu,wu,ru,ou,au,ku,Eu,Ou,Fu,Mu,Iu],styles:[`.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.mb-halfbase{margin-bottom:2px!important}.m-base{margin:4px!important}.mt-base,.my-base{margin-top:4px!important}.mr-base,.mx-base{margin-right:4px!important}.mb-base,.my-base{margin-bottom:4px!important}.ml-base,.mx-base{margin-left:4px!important}.m-1{margin:8px!important}.mt-1,.my-1{margin-top:8px!important}.mr-1,.mx-1{margin-right:8px!important}.mb-1,.my-1{margin-bottom:8px!important}.ml-1,.mx-1{margin-left:8px!important}.m-2{margin:16px!important}.mt-2,.my-2{margin-top:16px!important}.mr-2,.mx-2{margin-right:16px!important}.mb-2,.my-2{margin-bottom:16px!important}.ml-2,.mx-2{margin-left:16px!important}.m-2x2{margin:32px!important}.mt-2x2,.my-2x2{margin-top:32px!important}.mr-2x2,.mx-2x2{margin-right:32px!important}.mb-2x2,.my-2x2{margin-bottom:32px!important}.ml-2x2,.mx-2x2{margin-left:32px!important}.m-3{margin:24px!important}.mt-3,.my-3{margin-top:24px!important}.mr-3,.mx-3{margin-right:24px!important}.mb-3,.my-3{margin-bottom:24px!important}.ml-3,.mx-3{margin-left:24px!important}.m-4{margin:48px!important}.mt-4,.my-4{margin-top:48px!important}.mr-4,.mx-4{margin-right:48px!important}.mb-4,.my-4{margin-bottom:48px!important}.ml-4,.mx-4{margin-left:48px!important}.m-5{margin:64px!important}.mt-5,.my-5{margin-top:64px!important}.mr-5,.mx-5{margin-right:64px!important}.mb-5,.my-5{margin-bottom:64px!important}.ml-5,.mx-5{margin-left:64px!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-base{margin:4px!important}.pt-base,.py-base{margin-top:4px!important}.pr-base,.px-base{margin-right:4px!important}.pb-base,.py-base{margin-bottom:4px!important}.pl-base,.px-base{margin-left:4px!important}.p-1{padding:8px!important}.pt-1,.py-1{padding-top:8px!important}.pr-1,.px-1{padding-right:8px!important}.pb-1,.py-1{padding-bottom:8px!important}.pl-1,.px-1{padding-left:8px!important}.p-2{padding:16px!important}.pt-2,.py-2{padding-top:16px!important}.pr-2,.px-2{padding-right:16px!important}.pb-2,.py-2{padding-bottom:16px!important}.pl-2,.px-2{padding-left:16px!important}.p-3{padding:24px!important}.pt-3,.py-3{padding-top:24px!important}.pr-3,.px-3{padding-right:24px!important}.pb-3,.py-3{padding-bottom:24px!important}.pl-3,.px-3{padding-left:24px!important}.p-4{padding:48px!important}.pt-4,.py-4{padding-top:48px!important}.pr-4,.px-4{padding-right:48px!important}.pb-4,.py-4{padding-bottom:48px!important}.pl-4,.px-4{padding-left:48px!important}.p-5{padding:64px!important}.pt-5,.py-5{padding-top:64px!important}.pr-5,.px-5{padding-right:64px!important}.pb-5,.py-5{padding-bottom:64px!important}.pl-5,.px-5{padding-left:64px!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}.color-inherit{color:inherit!important}.color-gray-400{color:#93a6c1!important}.color-gray-500{color:#687aa0}.color-gray-600{color:#4c5f7f}.color-green-300{color:#4ae6ce}.color-btn-blue{color:#4285f4}#scroll-div{overflow-x:hidden;display:flex;max-height:calc(100vh - 60px);height:fit-content}#parent-panel{display:flex;width:fit-content}.emli-text{display:inline-flex;align-items:center;color:#4285f4;font-weight:600;cursor:pointer}#rightPane,#leftPane{display:flex}.modal-dialog-scrollable{overflow:auto;border-radius:8px}
78.modal-dialog-scrollable .modal-content{overflow:scroll}.alert-container{border-radius:4px;padding:8px 12px;background-color:#e3f4f8}.fixed-footer{display:none}.gradient-background-left{width:100%;max-height:0}@media only screen and (min-width:1100px){.gradient-background-left{background:linear-gradient(270deg,#fff0 40%,#fff 40%),linear-gradient(180deg,#021b85 0% .01%,#1a2045)}}.form-error,.form-messages{line-height:.75rem;font-size:.75rem;font-weight:400;color:#ff6201;background-color:#fff0e6;width:fit-content;border-radius:4px;opacity:0;transition:height .4s ease-in-out,opacity .4s ease-in-out}.form-error.show,.form-messages.show{opacity:.8}.form-error .error-padding,.form-messages .error-padding{padding:5px 16px}.error-padding{padding:7px 14px}.marketo-specs{background:linear-gradient(180deg,#021b85 0% .01%,#1a2045);background-color:#09152f;padding-bottom:48px}.marketo-specs .blue200-small{color:#91c3ff;font-size:.875rem}.marketo-specs .edit-btn-wrapper{border-bottom:1px solid #4c5f7f}.marketo-specs .edit-btn-wrapper .edit-btn{background-color:#4285f4;padding:4px 16px;border:none;border-radius:10px}.marketo-specs .edit-btn-wrapper .edit-btn .edit-config{color:#fff;padding:0 6px}.marketo-specs .config-spec-container{text-align:left;justify-content:left;margin-top:110px;padding-top:89px}.marketo-specs .config-spec-container .button-secondary{color:#fff}.marketo-specs .config-spec-container .marketo-specs-title{border-bottom:1px solid #93a6c1}.marketo-specs .config-spec-container .marketo-specs-title .justify-self-end{justify-self:flex-end}.marketo-specs .config-spec-container .marketo-specs-title hr{height:1px;color:#687aa0}.marketo-specs .config-spec-container .marketo-specs-title .white,.marketo-specs h2,.marketo-specs h4,.marketo-specs p{color:#fff}.marketo-specs .button-secondary{background:#fff;background-color:#4285f4;border:#4285f4;padding:4px 16px}.marketo-specs .button-secondary .edit-config{color:#fff;padding:0 6px}.marketo-specs mat-icon{color:#0f35ac;width:30px;height:30px;line-height:30px;cursor:pointer}.marketo-specs .img-marketo img{max-height:200px}.marketo-specs #show-specs-marketo{padding-bottom:12px}.marketo-specs #show-specs-marketo .light-bkg-padding:nth-child(odd){background-color:#ffffff1a}.marketo-specs #show-specs-marketo .light-bkg-padding{padding:8px}.marketo-specs #show-specs-marketo p{margin:0;padding:0;text-align:left;font-size:.875rem;line-height:1.125rem;color:#fff}.marketo-specs #show-specs-marketo .green350{color:#2ed6c9}.marketo-specs #show-specs-marketo .category{line-height:.875rem;color:#2ed6c9}.marketo-specs #show-specs-marketo .category .quantity-field-margin-right{margin-right:34px}.marketo-specs #show-specs-marketo .product{color:#fff}@media only screen and (min-width:1100px){.marketo-specs{padding-left:88px}.marketo-specs .spec-totals{font-size:1.25rem;font-weight:600}.marketo-specs .spec-totals mat-icon{height:40px;width:40px}.marketo-specs .spec-totals .spec-totals-unit{align-self:center;font-size:.875rem;font-weight:600}#scroll-div{max-height:100vh}.fixed-header{position:fixed!important;top:0}.marketo-form{max-height:95%}.gradient-background-left{height:fit-content;max-height:unset}#configure-system-container{margin-top:110px;padding-top:60px}}.hidden-specs-marketo{display:none;width:816px;height:1056px;flex-direction:column;justify-content:space-between;font-family:Helvetica,sans-serif}.hidden-specs-marketo .top-wrapper div>p{color:#687aa0}.hidden-specs-marketo .top-wrapper .pdf-contact-info p{padding-right:1px;width:200px;text-align:right}.hidden-specs-marketo .top-quote-warning{background-color:#c6fff9}.hidden-specs-marketo .top-quote-warning .quote-bold{font-size:13px;font-weight:700}.hidden-specs-marketo .top-quote-warning p{color:#4c5f7f}.hidden-specs-marketo .grid-descriptors{width:720px;padding-bottom:6px;margin-bottom:8px;border-bottom:1px solid #93a6c1}.hidden-specs-marketo .grid-descriptors .descriptor-item{width:102.81px}.hidden-specs-marketo .grid-descriptors .descriptor-qty{width:50.72px}.hidden-specs-marketo .grid-descriptors .descriptor-desc{width:558.47px}.hidden-specs-marketo .grid-descriptors p{font-weight:700;color:#4c5f7f}.hidden-specs-marketo .pdf-totals-wrapper .pdf-spec-totals .spec-totals-amount{color:#4c5f7f;font-weight:700}.hidden-specs-marketo .pdf-totals-wrapper .pdf-spec-totals .spec-totals-unit{color:#687aa0}.hidden-specs-marketo .pdf-totals-wrapper .pdf-price-totals{width:280px;padding-top:12px;border-top:1px solid #93a6c1}.hidden-specs-marketo .pdf-totals-wrapper .pdf-price-totals p{color:#4c5f7f}.hidden-specs-marketo .pdf-totals-wrapper .pdf-price{padding-right:1px;width:190.61px;text-align:right;font-size:1.25rem;font-weight:700}.hidden-specs-marketo .pdf-totals-wrapper .pdf-ship-tax{padding-right:1px;width:166.81px;text-align:right}.hidden-specs-marketo .bottom-wrapper{width:720px;margin-top:auto;margin-bottom:1px}.hidden-specs-marketo .bottom-wrapper .pdf-bottom-left{margin-right:40px}.hidden-specs-marketo .bottom-wrapper .pdf-bottom-left .sales-p{color:#4285f4;font-weight:700}.hidden-specs-marketo .bottom-wrapper .pdf-bottom-left .sales-sub-p{height:14px}.hidden-specs-marketo .bottom-wrapper .pdf-bottom-right{width:580px;display:flex;align-items:flex-end;line-height:14px}.hidden-specs-marketo .bottom-wrapper .pdf-icon-bottom{width:14px;color:#42babc}.hidden-specs-marketo hr{height:1px;background-color:#e6eff7}.hidden-specs-marketo .exxact-logo{height:24px;width:114px}.hidden-specs-marketo .mpn{color:#4c5f7f;font-weight:700}.hidden-specs-marketo .summary-row{width:720px;color:#e6eff7}.hidden-specs-marketo p{color:#687aa0;font-size:12px;line-height:16px;margin:0;text-align:left}.hidden-specs-marketo #category-container .category{width:102.81px;color:#4c5f7f;font-weight:700}.hidden-specs-marketo #category-container .pdf-products .pdf-item-quantity{width:50.72px;color:#4c5f7f}.hidden-specs-marketo #category-container .pdf-products .pdf-item-name{width:534.47px;color:#4c5f7f}.hidden-specs-marketo .price-grid{display:grid;width:100%;grid-template-columns:1fr 1fr;grid-template-rows:1fr}.hidden-specs-marketo .price-grid .top{align-self:flex-end}.hidden-specs-marketo .price-grid .bottom{align-self:flex-start}.hidden-specs-marketo .price-grid .left{color:#4285f4;justify-self:flex-start}.hidden-specs-marketo .price-grid .right{color:#4c5f7f;justify-self:flex-end}.spec-totals{color:#fff;font-size:1rem;font-weight:600}.spec-totals mat-icon{cursor:default;height:20px;width:20px}.spec-totals span{gap:8px}.spec-totals .spec-totals-unit{align-self:flex-end;margin-bottom:1px;color:#4285f4;font-size:.75rem;font-weight:400}.configurator .configurator-container .review-configuration{padding:24px;background-color:#0f35ac;background-image:url(https://assets.exxactcorp.com/img/exx/configurator/configurator-gradient-branding-bg.svg);background-size:cover}.configurator .configurator-container .review-configuration h2,.configurator .configurator-container .review-configuration h4,.configurator .configurator-container .review-configuration p{color:#fff}.configurator .configurator-container .review-configuration .img-container{height:25vh;display:flex;justify-content:center;align-items:center;margin:48px 16px 0}.configurator .configurator-container .review-configuration .img-container img{max-height:100%}.configurator .configurator-container .review-configuration .price-continue-order p{color:#91c3ff}.configurator .configurator-container .review-configuration .price-continue-order .continue-order{background-color:#4ae6ce;border:none;
78color:#1a2045}.configurator .configurator-container .review-configuration .price-continue-order .continue-order:hover{background-color:#00c5c2}.configurator .configurator-container .review-configuration .configuration-mpn{color:#4ae6ce}.configurator .configurator-container .review-configuration .discount-button{border:none;display:flex;align-items:center;background-color:#c3cfe2;margin-top:24px;padding:4px 8px;border-radius:6px;cursor:default}.configurator .configurator-container .review-configuration .discount-button span{color:#1a2045}.configurator .configurator-container .review-configuration .discount-button mat-icon{color:#1a2045;width:12px;height:15px}.configurator .configurator-container .review-save .review,.configurator .configurator-container .review-save .save{justify-content:center;padding:10px 0;cursor:pointer;border:2px solid #4285f4;border-radius:24px}.configurator .configurator-container .review-save .review .review-text,.configurator .configurator-container .review-save .save .save-text{height:20px;color:#4285f4}.configurator .configurator-container .configure-system{padding:16px}.configurator .configurator-container .configure-system .featured-system-container{flex-direction:column}.configurator .configurator-container .configure-system .draggable-container :last-child{margin-bottom:0}.configurator .configurator-container .configure-system .title{margin:0;color:#293963;font-weight:600}.configurator .configurator-container .configure-system .productline-title{font-weight:400;font-size:12px;color:#4c5f7f}.configurator .configurator-container .configure-system .config-note{color:#0097af;font-size:.75rem;margin:0;padding:0;min-height:16px;line-height:16px}.configurator .configurator-container .configure-system .alert-circle-note{color:#0097af;max-height:16px}.configurator .configurator-container .configure-system mat-select{border:1px solid #c3cfe2;border-radius:4px;color:#4c5f7f;font-weight:600}.configurator .configurator-container .configure-system mat-select .mat-mdc-select-trigger{padding:4px 8px;font-size:.875rem}.configurator .configurator-container .configure-system .mat-select-trigger{display:flex;justify-content:space-around;align-items:center;align-content:center}.configurator .configurator-container .configure-system .draggable{margin-top:8px}.configurator .configurator-container .configure-system .draggable .narrow-quantity{padding:12px 0}.configurator .configurator-container .configure-system .draggable .highlight{outline:solid 2px #2ed6c9!important;outline-offset:-2px;font-weight:700}.configurator .configurator-container .configure-system .hide{display:none!important}.configurator .configurator-container .configure-system .mat-select-arrow{border:solid #4c5f7f;border-width:0 2px 2px 0;padding:3px;margin-bottom:2px;margin-left:4px;transform:rotate(45deg);-webkit-transform:rotate(45deg)}.configurator .configurator-container .configure-system .mat-select-value{margin-top:1px;color:#4c5f7f;font-weight:600;max-width:unset;width:unset}.configurator .configurator-container .configure-system .mat-select-value-offset{padding:0 4px}.configurator .configurator-container .configure-system .mat-select-disabled .mat-select-arrow{border:none;display:contents}.configurator .configurator-container .configure-system .mat-select-arrow-wrapper{display:contents}.configurator .configurator-container .configure-system .click-disable{pointer-events:none}.configurator .configurator-container .configure-system .single-quantity-container{margin-right:-12px;padding:2px 3px;border:1px solid #93a6c1;border-radius:4px;color:#687aa0;text-align:center}.configurator .configurator-container .configure-system .select-parts-container{cursor:pointer;border:1px solid #c3cfe2;padding:16px;box-sizing:border-box;border-radius:4px;width:100%;min-height:26px}.configurator .configurator-container .configure-system .select-parts-container .single-option-quantity{margin-top:-6px;color:#4c5f7f}.configurator .configurator-container .configure-system .select-parts-container p{padding:0;margin:0;color:#4c5f7f;font-size:.875rem;line-height:18px;align-self:flex-start}.configurator .configurator-container .configure-system .select-parts-container .truncate-ellipsis{-webkit-line-clamp:1}.configurator .configurator-container .configure-system .select-parts-container .pricing{text-wrap:nowrap;min-width:80px;text-align:end}.configurator .configurator-container .configure-system .select-parts-container.active{outline:solid 2px #2ed6c9;outline-offset:-2px}.configurator .configurator-container .configure-system .select-parts-container.active p{font-weight:700}.configurator .configurator-container .configure-system .select-parts-container.active .p-nvLink{font-weight:400}.configurator .configurator-container .configure-system .select-parts-container.active span{font-weight:600}.configurator .configurator-container .configure-system .select-parts-container.active .calc-diff{color:#4ae6ce}.configurator .configurator-container .configure-system .select-parts-container .memory-totals{border-right:1px solid #c3cfe2;padding:0 12px}.configurator .configurator-container .configure-system .mat-select-value-text span{font-family:proxima-nova,sans-serif}.configurator .configurator-container .configure-system .wide-margin-right{margin-right:33px}.configurator .configurator-container .configure-system .no-select{width:32px}.configurator .configurator-container .configure-system .selectable{padding:0;display:flex;align-items:center;justify-content:center;width:57px}.configurator .configurator-container .configure-system .button-references{cursor:pointer;width:100%;padding:16px;margin-bottom:8px;background:#fff;border:1px solid #e6eff7;box-sizing:border-box;box-shadow:0 2px 2px #2939630f,0 2px 4px #2939630f;border-radius:10px}.configurator .configurator-container .configure-system .button-references h5{font-size:.875rem}.configurator .configurator-container .configure-system .button-references.active{outline:solid 2px #2ed6c9;outline-offset:-2px}.configurator .configurator-container .configure-system .notes{margin:24px 0}.configurator .configurator-container .configure-system .notes textarea{height:234px;width:100%;border:1px solid #c3cfe2;border-radius:5px;color:#4c5f7f}.configurator .footer-tab-wrapper{width:100%;position:sticky;bottom:0;background-color:#fff}.configurator .footer-tab-wrapper .footer-tab-inner-wrapper{max-width:1650px}.configurator .footer-tab-wrapper .footer-tab{height:100%;width:98.85%}.configurator .footer-tab-wrapper .footer-tab .footer-tab-toggle{display:none;color:#4285f4;background-color:#e6eff7;border:none;padding:7px 0}.configurator .footer-tab-wrapper .footer-tab .footer-tab-toggle mat-icon{transform:rotate(90deg)}.configurator .footer-tab-wrapper .footer-tab .footer-tab-toggle .flip-chevron{transform:rotate(-90deg)}.configurator .footer-tab-wrapper .footer-tab .footer-tab-toggle p{color:#4285f4}.configurator #config-floating-text-button{flex-direction:column;z-index:2;width:100%;height:100%;box-shadow:none;padding:4px 8px 8px}.configurator #config-floating-text-button .spacer{display:none;height:50px;border-left:1px solid #c3cfe2}.configurator #config-floating-text-button .copy-sm{color:#4285f4}.configurator #config-floating-text-button h2{color:#687aa0}.configurator #config-floating-text-button .button-base{min-width:170px}.configurator #config-floating-text-button mat-select{border:1px solid #c3cfe2;border-radius:4px;color:#293963}.configurator #config-floating-text-button mat-select .mat-mdc-select-trigger{width:80px;padding:8px 13px;font-size:1.25rem}.configurator #config-floating-text-button input{border:1px solid #e6eff7;border-radius:24px;text-align:center;font-size:.875rem;color:#687aa0}.configurator #config-floating-text-button .spec-totals{padding:0 10px;color:#687aa0;justify-content:space-between}.configurator #config-floating-text-button .spec-totals span{margin:0;font-size:1rem}
78.configurator #config-floating-text-button .spec-totals mat-icon{height:20px;width:20px}.configurator #config-floating-text-button .spec-totals .spec-totals-unit{align-self:center;font-size:.75rem;font-weight:400}.configurator #config-floating-text-button .cta-wrapper{margin:8px 0;padding:0 10px;justify-content:space-between}.configurator #config-floating-text-button .cta-wrapper #cta{max-width:200px;min-width:160px}.configurator #config-floating-text-button input::-webkit-outer-spin-button,.configurator #config-floating-text-button input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.configurator #config-floating-text-button input[type=number]{-moz-appearance:textfield}@media only screen and (max-width:768px){.configurator .footer-tab-wrapper{position:relative}.configurator .footer-tab-wrapper .footer-tab .footer-tab-toggle{display:flex}}@media only screen and (min-width:769px){.configurator .footer-tab-wrapper{box-shadow:0 0 8px #0003}.configurator #config-floating-text-button{flex-direction:row;padding:16px 0;height:9vh}.configurator #config-floating-text-button .spacer{display:unset}.configurator #config-floating-text-button .spec-totals{justify-content:center}.configurator #config-floating-text-button .spec-totals span{margin:0 16px;font-size:1.25rem}.configurator #config-floating-text-button .spec-totals mat-icon{height:30px;width:30px}.configurator #config-floating-text-button .spec-totals .spec-totals-unit{align-self:center;font-size:.875rem;font-weight:600}.configurator #config-floating-text-button .cta-wrapper{margin:0;padding-right:24px}
78.configurator #config-floating-text-button .cta-wrapper #cta{width:unset}.configurator #config-floating-text-button .pricing-wrapper,.configurator #config-floating-text-button #cta{margin-left:16px}.configurator .configurator-container .configure-system .select-parts-container{padding:4px 16px}.configurator .configurator-container .configure-system .featured-system-container{flex-direction:row}.configurator .configurator-container .configure-system .button-references{height:129px}.configurator .configurator-container .configure-system .selectable{height:100%}.configurator .configurator-container .configure-system .productline-title{color:#293963}}@media only screen and (min-width:1100px){.configurator{min-height:100%}.configurator #configure-system-container{margin-top:110px}.configurator .line-container{font-size:.75rem;font-weight:400;margin:16px 0 12px;color:#4c5f7f}.configurator .configurator-container{width:100%}.configurator .configurator-container .fx-row-container{max-width:1650px;margin:0;justify-content:unset}.configurator .configurator-container .review-configuration{max-height:91vh;min-height:91vh;position:sticky;top:0;padding:64px 30px 64px 60px;background-position:-350px 100px;background-repeat:no-repeat;background-image:url(https://assets.exxactcorp.com/img/exx/configurator/configurator-gradient-branding-bg.svg);background-size:unset}.configurator .configurator-container .review-configuration .review-configuration-container{min-height:600px;margin-top:80px;max-width:355px;margin-left:auto}.configurator .configurator-container .review-configuration .review-configuration-container .blue-link{color:#4285f4;cursor:pointer}.configurator .configurator-container .review-configuration .review-configuration-container .img-container{margin-top:48px;width:436px;height:35vh;justify-content:flex-end;margin-bottom:30px}.configurator .configurator-container .configure-system{margin-top:110px;padding-top:48px}.configurator .configurator-container .configure-system .button-references{margin-bottom:0;margin-right:16px;width:160px}.configurator .configurator-container .configure-system .notes{margin:48px 0}.configurator #config-floating-text-button{flex-direction:row}.configurator #config-floating-text-button .spec-totals{justify-content:center}.configurator #config-floating-text-button .spec-totals span{margin:0 24px;font-size:1.25rem}.configurator #config-floating-text-button .spec-totals mat-icon{height:30px;width:30px}.configurator #config-floating-text-button .spec-totals .spec-totals-unit{align-self:center;font-size:.875rem;font-weight:600}.configurator #config-floating-text-button .cta-wrapper{width:fit-content;justify-content:flex-end}.configurator #config-floating-text-button .pricing-wrapper{width:105px;margin-left:68px}.configurator #config-floating-text-button #cta{margin-left:68px}}.configurator-loading{height:calc(100vh - 110px);width:100vw}.mat-spinner ::ng-deep circle{stroke:#4285f4}
79`],encapsulation:2,changeDetection:0})}}return e})();var L_=[{path:"",component:Ad}],kd=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Bs({type:e})}static{this.\u0275inj=Ms({imports:[nc.forChild(L_),nc]})}}return e})();var _3=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Bs({type:e})}static{this.\u0275inj=Ms({imports:[kd,Uu]})}}return e})();export{_3 as ConfiguratorModule};

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.