@codeplex-sac/data-view 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,173 +0,0 @@
1
- "use strict";const gr=require("react/jsx-runtime"),qp=require("react"),al=require("material-react-table"),hr=require("@mui/material"),E0=require("@mui/icons-material"),zp={language:"es",actions:"Acciones",and:"y",cancel:"Cancelar",changeFilterMode:"Cambiar modo de filtro",changeSearchMode:"Cambiar modo de búsqueda",clearFilter:"Borrar filtro",clearSearch:"Borrar búsqueda",clearSelection:"Borrar selección",clearSort:"Borrar ordenamiento",clickToCopy:"Haga click para copiar",copy:"Copiar",collapse:"Colapsar",collapseAll:"Colapsar todo",columnActions:"Columna de acciones",copiedToClipboard:"Copiado al portapapeles",dropToGroupBy:"Soltar para agrupar por {column}",edit:"Editar",expand:"Expandir",expandAll:"Expandir todo",filterArrIncludes:"Incluye",filterArrIncludesAll:"Incluye todos",filterArrIncludesSome:"Incluye algunos",filterBetween:"Entre",filterBetweenInclusive:"Entre (inclusivo)",filterByColumn:"Filtrar por {column}",filterContains:"Contiene",filterEmpty:"Vacio",filterEndsWith:"Termina con",filterEquals:"Iguales",filterEqualsString:"Iguales",filterFuzzy:"Difuso",filterGreaterThan:"Mas grande que",filterGreaterThanOrEqualTo:"Mas grande que o igual a",filterInNumberRange:"Entre",filterIncludesString:"Contiene",filterIncludesStringSensitive:"Contiene",filterLessThan:"Menos que",filterLessThanOrEqualTo:"Menos que o igual a",filterMode:"Modo de filtro: {filterType}",filterNotEmpty:"No vacio",filterNotEquals:"No iguales",filterStartsWith:"Empieza con",filterWeakEquals:"Iguales",filteringByColumn:"Filtrando por {column} - {filterType} - {filterValue}",goToFirstPage:"Ir a la primera página",goToLastPage:"Ir a la última página",goToNextPage:"Ir a la página siguiente",goToPreviousPage:"Regresar a la pagina anterior",grab:"Agarrar",groupByColumn:"Agrupar por {column}",groupedBy:"Agrupado por",hideAll:"Ocultar todo",hideColumn:"Ocultar {column}",max:"Máximo",min:"Mínimo",move:"Mover",noRecordsToDisplay:"No hay registros para mostrar",noResultsFound:"No se encontraron resultados",of:"de",or:"o",pin:"Anclar",pinToLeft:"Anclar a la izquierda",pinToRight:"Anclar a la derecha",resetColumnSize:"Resetear tamaño de columna",resetOrder:"Resetar orden",rowActions:"Acciones de fila",rowNumber:"#",rowNumbers:"Números de fila",rowsPerPage:"Filas por página",save:"Guardar",search:"Buscar",select:"Seleccionar",selectedCountOfRowCountRowsSelected:"{selectedCount} de {rowCount} fila(s) seleccionada(s)",showAll:"Mostrar todo",showAllColumns:"Mostrar todas las columnas",showHideColumns:"Mostrar/ocultar columnas",showHideFilters:"Mostrar/ocultar filtros",showHideSearch:"Mostrar/ocultar búsqueda",sortByColumnAsc:"Ordenar por {column} ascendente",sortByColumnDesc:"Ordenar por {column} descendente",sortedByColumnAsc:"Ordenar por {column} ascendente",sortedByColumnDesc:"Ordenar por {column} descendente",thenBy:", despues por ",toggleDensity:"Alternar densidad",toggleFullScreen:"Alternar pantalla completa",toggleSelectAll:"Alternar seleccionar todo",toggleSelectRow:"Alternar seleccionar fila",toggleVisibility:"Alternar visibilidad",ungroupByColumn:"Desagrupar por {column}",unpin:"Desanclar",unpinAll:"Desanclar todo"};function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}var xi=Uint8Array,zn=Uint16Array,ih=Int32Array,ah=new xi([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]),sh=new xi([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]),du=new xi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_1=function(t,e){for(var r=new zn(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];for(var i=new ih(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},y1=_1(ah,2),Gp=y1.b,jl=y1.r;Gp[28]=258,jl[258]=28;var Vp=_1(sh,0),pu=Vp.r,Hl=new zn(32768);for(var ur=0;ur<32768;++ur){var Sa=(ur&43690)>>1|(ur&21845)<<1;Sa=(Sa&52428)>>2|(Sa&13107)<<2,Sa=(Sa&61680)>>4|(Sa&3855)<<4,Hl[ur]=((Sa&65280)>>8|(Sa&255)<<8)>>1}var So=(function(t,e,r){for(var n=t.length,i=0,a=new zn(e);i<n;++i)t[i]&&++a[t[i]-1];var s=new zn(e);for(i=1;i<e;++i)s[i]=s[i-1]+a[i-1]<<1;var o;if(r){o=new zn(1<<e);var f=15-e;for(i=0;i<n;++i)if(t[i])for(var l=i<<4|t[i],u=e-t[i],p=s[t[i]-1]++<<u,v=p|(1<<u)-1;p<=v;++p)o[Hl[p]>>f]=l}else for(o=new zn(n),i=0;i<n;++i)t[i]&&(o[i]=Hl[s[t[i]-1]++]>>15-t[i]);return o}),es=new xi(288);for(var ur=0;ur<144;++ur)es[ur]=8;for(var ur=144;ur<256;++ur)es[ur]=9;for(var ur=256;ur<280;++ur)es[ur]=7;for(var ur=280;ur<288;++ur)es[ur]=8;var K0=new xi(32);for(var ur=0;ur<32;++ur)K0[ur]=5;var Xp=So(es,9,0),Yp=So(K0,5,0),b1=function(t){return(t+7)/8|0},Kp=function(t,e,r){return(r==null||r>t.length)&&(r=t.length),new xi(t.subarray(e,r))},Ji=function(t,e,r){r<<=e&7;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8},_o=function(t,e,r){r<<=e&7;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8,t[n+2]|=r>>16},sl=function(t,e){for(var r=[],n=0;n<t.length;++n)t[n]&&r.push({s:n,f:t[n]});var i=r.length,a=r.slice();if(!i)return{t:S1,l:0};if(i==1){var s=new xi(r[0].s+1);return s[r[0].s]=1,{t:s,l:1}}r.sort(function(re,ue){return re.f-ue.f}),r.push({s:-1,f:25001});var o=r[0],f=r[1],l=0,u=1,p=2;for(r[0]={s:-1,f:o.f+f.f,l:o,r:f};u!=i-1;)o=r[r[l].f<r[p].f?l++:p++],f=r[l!=u&&r[l].f<r[p].f?l++:p++],r[u++]={s:-1,f:o.f+f.f,l:o,r:f};for(var v=a[0].s,n=1;n<i;++n)a[n].s>v&&(v=a[n].s);var c=new zn(v+1),w=Wl(r[u-1],c,0);if(w>e){var n=0,m=0,y=w-e,A=1<<y;for(a.sort(function(ue,V){return c[V.s]-c[ue.s]||ue.f-V.f});n<i;++n){var D=a[n].s;if(c[D]>e)m+=A-(1<<w-c[D]),c[D]=e;else break}for(m>>=y;m>0;){var P=a[n].s;c[P]<e?m-=1<<e-c[P]++-1:++n}for(;n>=0&&m;--n){var B=a[n].s;c[B]==e&&(--c[B],++m)}w=e}return{t:new xi(c),l:w}},Wl=function(t,e,r){return t.s==-1?Math.max(Wl(t.l,e,r+1),Wl(t.r,e,r+1)):e[t.s]=r},gu=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new zn(++e),n=0,i=t[0],a=1,s=function(f){r[n++]=f},o=1;o<=e;++o)if(t[o]==i&&o!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[o]}return{c:r.subarray(0,n),n:e}},yo=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},A1=function(t,e,r){var n=r.length,i=b1(e+2);t[i]=n&255,t[i+1]=n>>8,t[i+2]=t[i]^255,t[i+3]=t[i+1]^255;for(var a=0;a<n;++a)t[i+a+4]=r[a];return(i+4+n)*8},vu=function(t,e,r,n,i,a,s,o,f,l,u){Ji(e,u++,r),++i[256];for(var p=sl(i,15),v=p.t,c=p.l,w=sl(a,15),m=w.t,y=w.l,A=gu(v),D=A.c,P=A.n,B=gu(m),re=B.c,ue=B.n,V=new zn(19),z=0;z<D.length;++z)++V[D[z]&31];for(var z=0;z<re.length;++z)++V[re[z]&31];for(var k=sl(V,7),ee=k.t,S=k.l,I=19;I>4&&!ee[du[I-1]];--I);var G=l+5<<3,te=yo(i,es)+yo(a,K0)+s,he=yo(i,v)+yo(a,m)+s+14+3*I+yo(V,ee)+2*V[16]+3*V[17]+7*V[18];if(f>=0&&G<=te&&G<=he)return A1(e,u,t.subarray(f,f+l));var be,ye,pe,Ae;if(Ji(e,u,1+(he<te)),u+=2,he<te){be=So(v,c,0),ye=v,pe=So(m,y,0),Ae=m;var Ue=So(ee,S,0);Ji(e,u,P-257),Ji(e,u+5,ue-1),Ji(e,u+10,I-4),u+=14;for(var z=0;z<I;++z)Ji(e,u+3*z,ee[du[z]]);u+=3*I;for(var ke=[D,re],_=0;_<2;++_)for(var L=ke[_],z=0;z<L.length;++z){var N=L[z]&31;Ji(e,u,Ue[N]),u+=ee[N],N>15&&(Ji(e,u,L[z]>>5&127),u+=L[z]>>12)}}else be=Xp,ye=es,pe=Yp,Ae=K0;for(var z=0;z<o;++z){var F=n[z];if(F>255){var N=F>>18&31;_o(e,u,be[N+257]),u+=ye[N+257],N>7&&(Ji(e,u,F>>23&31),u+=ah[N]);var q=F&31;_o(e,u,pe[q]),u+=Ae[q],q>3&&(_o(e,u,F>>5&8191),u+=sh[q])}else _o(e,u,be[F]),u+=ye[F]}return _o(e,u,be[256]),u+ye[256]},$p=new ih([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),S1=new xi(0),Jp=function(t,e,r,n,i,a){var s=a.z||t.length,o=new xi(n+s+5*(1+Math.ceil(s/7e3))+i),f=o.subarray(n,o.length-i),l=a.l,u=(a.r||0)&7;if(e){u&&(f[0]=a.r>>3);for(var p=$p[e-1],v=p>>13,c=p&8191,w=(1<<r)-1,m=a.p||new zn(32768),y=a.h||new zn(w+1),A=Math.ceil(r/3),D=2*A,P=function(ze){return(t[ze]^t[ze+1]<<A^t[ze+2]<<D)&w},B=new ih(25e3),re=new zn(288),ue=new zn(32),V=0,z=0,k=a.i||0,ee=0,S=a.w||0,I=0;k+2<s;++k){var G=P(k),te=k&32767,he=y[G];if(m[te]=he,y[G]=te,S<=k){var be=s-k;if((V>7e3||ee>24576)&&(be>423||!l)){u=vu(t,f,0,B,re,ue,z,ee,I,k-I,u),ee=V=z=0,I=k;for(var ye=0;ye<286;++ye)re[ye]=0;for(var ye=0;ye<30;++ye)ue[ye]=0}var pe=2,Ae=0,Ue=c,ke=te-he&32767;if(be>2&&G==P(k-ke))for(var _=Math.min(v,be)-1,L=Math.min(32767,k),N=Math.min(258,be);ke<=L&&--Ue&&te!=he;){if(t[k+pe]==t[k+pe-ke]){for(var F=0;F<N&&t[k+F]==t[k+F-ke];++F);if(F>pe){if(pe=F,Ae=ke,F>_)break;for(var q=Math.min(ke,F-2),ne=0,ye=0;ye<q;++ye){var oe=k-ke+ye&32767,se=m[oe],fe=oe-se&32767;fe>ne&&(ne=fe,he=oe)}}}te=he,he=m[te],ke+=te-he&32767}if(Ae){B[ee++]=268435456|jl[pe]<<18|pu[Ae];var Fe=jl[pe]&31,Re=pu[Ae]&31;z+=ah[Fe]+sh[Re],++re[257+Fe],++ue[Re],S=k+pe,++V}else B[ee++]=t[k],++re[t[k]]}}for(k=Math.max(k,S);k<s;++k)B[ee++]=t[k],++re[t[k]];u=vu(t,f,l,B,re,ue,z,ee,I,k-I,u),l||(a.r=u&7|f[u/8|0]<<3,u-=7,a.h=y,a.p=m,a.i=k,a.w=S)}else{for(var k=a.w||0;k<s+l;k+=65535){var qe=k+65535;qe>=s&&(f[u/8|0]=l,qe=s),u=A1(f,u+1,t.subarray(k,qe))}a.i=s}return Kp(o,0,n+b1(u)+i)},E1=function(){var t=1,e=0;return{p:function(r){for(var n=t,i=e,a=r.length|0,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=n+=r[s];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}t=n,e=i},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},Zp=function(t,e,r,n,i){if(!i&&(i={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),s=new xi(a.length+t.length);s.set(a),s.set(t,a.length),t=s,i.w=a.length}return Jp(t,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,r,n,i)},T1=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Qp=function(t,e){var r=e.level,n=r==0?0:r<6?1:r==9?3:2;if(t[0]=120,t[1]=n<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var i=E1();i.p(e.dictionary),T1(t,2,i.d())}};function ql(t,e){e||(e={});var r=E1();r.p(t);var n=Zp(t,e,e.dictionary?6:2,4);return Qp(n,e),T1(n,n.length-4,r.d()),n}var e5=typeof TextDecoder<"u"&&new TextDecoder,t5=0;try{e5.decode(S1,{stream:!0}),t5=1}catch{}function r5(t){if(Array.isArray(t))return t}function n5(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,s,o=[],f=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(f=(n=a.call(r)).done)&&(o.push(n.value),o.length!==e);f=!0);}catch(u){l=!0,i=u}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw i}}return o}}function mu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function i5(t,e){if(t){if(typeof t=="string")return mu(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mu(t,e):void 0}}function a5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xu(t,e){return r5(t)||n5(t,e)||i5(t,e)||a5()}function wu(t,e="utf8"){return new TextDecoder(e).decode(t)}const s5=new TextEncoder;function o5(t){return s5.encode(t)}const f5=1024*8,l5=(()=>{const t=new Uint8Array(4),e=new Uint32Array(t.buffer);return!((e[0]=1)&t[0])})(),ol={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class oh{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=f5,r={}){let n=!1;typeof e=="number"?e=new ArrayBuffer(e):(n=!0,this.lastWrittenByte=e.byteLength);const i=r.offset?r.offset>>>0:0,a=e.byteLength-i;let s=i;(ArrayBuffer.isView(e)||e instanceof oh)&&(e.byteLength!==e.buffer.byteLength&&(s=e.byteOffset+i),e=e.buffer),n?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=e,this.length=a,this.byteLength=a,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,a),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const n=(this.offset+e)*2,i=new Uint8Array(n);i.set(new Uint8Array(this.buffer)),this.buffer=i.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(e=1){return this.readArray(e,"uint8")}readArray(e,r){const n=ol[r].BYTES_PER_ELEMENT*e,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+n);if(this.littleEndian===l5&&r!=="uint8"&&r!=="int8"){const o=new Uint8Array(this.buffer.slice(i,i+n));o.reverse();const f=new ol[r](o.buffer);return this.offset+=n,f.reverse(),f}const s=new ol[r](a);return this.offset+=n,s}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let r="";for(let n=0;n<e;n++)r+=this.readChar();return r}readUtf8(e=1){return wu(this.readBytes(e))}decodeText(e=1,r="utf8"){return wu(this.readBytes(e),r)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let r=0;r<e.length;r++)this._data.setUint8(this.offset++,e[r]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let r=0;r<e.length;r++)this.writeUint8(e.charCodeAt(r));return this}writeUtf8(e){return this.writeBytes(o5(e))}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 qs(t){let e=t.length;for(;--e>=0;)t[e]=0}const h5=3,u5=258,N1=29,c5=256,d5=c5+1+N1,L1=30,p5=512,g5=new Array((d5+2)*2);qs(g5);const v5=new Array(L1*2);qs(v5);const m5=new Array(p5);qs(m5);const x5=new Array(u5-h5+1);qs(x5);const w5=new Array(N1);qs(w5);const _5=new Array(L1);qs(_5);const y5=(t,e,r,n)=>{let i=t&65535|0,a=t>>>16&65535|0,s=0;for(;r!==0;){s=r>2e3?2e3:r,r-=s;do i=i+e[n++]|0,a=a+i|0;while(--s);i%=65521,a%=65521}return i|a<<16|0};var zl=y5;const b5=()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=t&1?3988292384^t>>>1:t>>>1;e[r]=t}return e},A5=new Uint32Array(b5()),S5=(t,e,r,n)=>{const i=A5,a=n+r;t^=-1;for(let s=n;s<a;s++)t=t>>>8^i[(t^e[s])&255];return t^-1};var Li=S5,Gl={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"},F1={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const E5=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var T5=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)E5(r,n)&&(t[n]=r[n])}}return t},N5=t=>{let e=0;for(let n=0,i=t.length;n<i;n++)e+=t[n].length;const r=new Uint8Array(e);for(let n=0,i=0,a=t.length;n<a;n++){let s=t[n];r.set(s,i),i+=s.length}return r},C1={assign:T5,flattenChunks:N5};let k1=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{k1=!1}const Oo=new Uint8Array(256);for(let t=0;t<256;t++)Oo[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Oo[254]=Oo[254]=1;var L5=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,r,n,i,a,s=t.length,o=0;for(i=0;i<s;i++)r=t.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=t.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(o),a=0,i=0;a<o;i++)r=t.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=t.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?e[a++]=r:r<2048?(e[a++]=192|r>>>6,e[a++]=128|r&63):r<65536?(e[a++]=224|r>>>12,e[a++]=128|r>>>6&63,e[a++]=128|r&63):(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63,e[a++]=128|r>>>6&63,e[a++]=128|r&63);return e};const F5=(t,e)=>{if(e<65534&&t.subarray&&k1)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r};var C5=(t,e)=>{const r=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let n,i;const a=new Array(r*2);for(i=0,n=0;n<r;){let s=t[n++];if(s<128){a[i++]=s;continue}let o=Oo[s];if(o>4){a[i++]=65533,n+=o-1;continue}for(s&=o===2?31:o===3?15:7;o>1&&n<r;)s=s<<6|t[n++]&63,o--;if(o>1){a[i++]=65533;continue}s<65536?a[i++]=s:(s-=65536,a[i++]=55296|s>>10&1023,a[i++]=56320|s&1023)}return F5(a,i)},k5=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let r=e-1;for(;r>=0&&(t[r]&192)===128;)r--;return r<0||r===0?e:r+Oo[t[r]]>e?r:e},Vl={string2buf:L5,buf2string:C5,utf8border:k5};function P5(){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 O5=P5;const T0=16209,I5=16191;var D5=function(e,r){let n,i,a,s,o,f,l,u,p,v,c,w,m,y,A,D,P,B,re,ue,V,z,k,ee;const S=e.state;n=e.next_in,k=e.input,i=n+(e.avail_in-5),a=e.next_out,ee=e.output,s=a-(r-e.avail_out),o=a+(e.avail_out-257),f=S.dmax,l=S.wsize,u=S.whave,p=S.wnext,v=S.window,c=S.hold,w=S.bits,m=S.lencode,y=S.distcode,A=(1<<S.lenbits)-1,D=(1<<S.distbits)-1;e:do{w<15&&(c+=k[n++]<<w,w+=8,c+=k[n++]<<w,w+=8),P=m[c&A];t:for(;;){if(B=P>>>24,c>>>=B,w-=B,B=P>>>16&255,B===0)ee[a++]=P&65535;else if(B&16){re=P&65535,B&=15,B&&(w<B&&(c+=k[n++]<<w,w+=8),re+=c&(1<<B)-1,c>>>=B,w-=B),w<15&&(c+=k[n++]<<w,w+=8,c+=k[n++]<<w,w+=8),P=y[c&D];r:for(;;){if(B=P>>>24,c>>>=B,w-=B,B=P>>>16&255,B&16){if(ue=P&65535,B&=15,w<B&&(c+=k[n++]<<w,w+=8,w<B&&(c+=k[n++]<<w,w+=8)),ue+=c&(1<<B)-1,ue>f){e.msg="invalid distance too far back",S.mode=T0;break e}if(c>>>=B,w-=B,B=a-s,ue>B){if(B=ue-B,B>u&&S.sane){e.msg="invalid distance too far back",S.mode=T0;break e}if(V=0,z=v,p===0){if(V+=l-B,B<re){re-=B;do ee[a++]=v[V++];while(--B);V=a-ue,z=ee}}else if(p<B){if(V+=l+p-B,B-=p,B<re){re-=B;do ee[a++]=v[V++];while(--B);if(V=0,p<re){B=p,re-=B;do ee[a++]=v[V++];while(--B);V=a-ue,z=ee}}}else if(V+=p-B,B<re){re-=B;do ee[a++]=v[V++];while(--B);V=a-ue,z=ee}for(;re>2;)ee[a++]=z[V++],ee[a++]=z[V++],ee[a++]=z[V++],re-=3;re&&(ee[a++]=z[V++],re>1&&(ee[a++]=z[V++]))}else{V=a-ue;do ee[a++]=ee[V++],ee[a++]=ee[V++],ee[a++]=ee[V++],re-=3;while(re>2);re&&(ee[a++]=ee[V++],re>1&&(ee[a++]=ee[V++]))}}else if((B&64)===0){P=y[(P&65535)+(c&(1<<B)-1)];continue r}else{e.msg="invalid distance code",S.mode=T0;break e}break}}else if((B&64)===0){P=m[(P&65535)+(c&(1<<B)-1)];continue t}else if(B&32){S.mode=I5;break e}else{e.msg="invalid literal/length code",S.mode=T0;break e}break}}while(n<i&&a<o);re=w>>3,n-=re,w-=re<<3,c&=(1<<w)-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?5+(i-n):5-(n-i),e.avail_out=a<o?257+(o-a):257-(a-o),S.hold=c,S.bits=w};const bs=15,_u=852,yu=592,bu=0,fl=1,Au=2,R5=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]),B5=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]),M5=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]),U5=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]),j5=(t,e,r,n,i,a,s,o)=>{const f=o.bits;let l=0,u=0,p=0,v=0,c=0,w=0,m=0,y=0,A=0,D=0,P,B,re,ue,V,z=null,k;const ee=new Uint16Array(bs+1),S=new Uint16Array(bs+1);let I=null,G,te,he;for(l=0;l<=bs;l++)ee[l]=0;for(u=0;u<n;u++)ee[e[r+u]]++;for(c=f,v=bs;v>=1&&ee[v]===0;v--);if(c>v&&(c=v),v===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,o.bits=1,0;for(p=1;p<v&&ee[p]===0;p++);for(c<p&&(c=p),y=1,l=1;l<=bs;l++)if(y<<=1,y-=ee[l],y<0)return-1;if(y>0&&(t===bu||v!==1))return-1;for(S[1]=0,l=1;l<bs;l++)S[l+1]=S[l]+ee[l];for(u=0;u<n;u++)e[r+u]!==0&&(s[S[e[r+u]]++]=u);if(t===bu?(z=I=s,k=20):t===fl?(z=R5,I=B5,k=257):(z=M5,I=U5,k=0),D=0,u=0,l=p,V=a,w=c,m=0,re=-1,A=1<<c,ue=A-1,t===fl&&A>_u||t===Au&&A>yu)return 1;for(;;){G=l-m,s[u]+1<k?(te=0,he=s[u]):s[u]>=k?(te=I[s[u]-k],he=z[s[u]-k]):(te=96,he=0),P=1<<l-m,B=1<<w,p=B;do B-=P,i[V+(D>>m)+B]=G<<24|te<<16|he|0;while(B!==0);for(P=1<<l-1;D&P;)P>>=1;if(P!==0?(D&=P-1,D+=P):D=0,u++,--ee[l]===0){if(l===v)break;l=e[r+s[u]]}if(l>c&&(D&ue)!==re){for(m===0&&(m=c),V+=p,w=l-m,y=1<<w;w+m<v&&(y-=ee[w+m],!(y<=0));)w++,y<<=1;if(A+=1<<w,t===fl&&A>_u||t===Au&&A>yu)return 1;re=D&ue,i[re]=c<<24|w<<16|V-a|0}}return D!==0&&(i[V+D]=l-m<<24|64<<16|0),o.bits=c,0};var Eo=j5;const H5=0,P1=1,O1=2,{Z_FINISH:Su,Z_BLOCK:W5,Z_TREES:N0,Z_OK:ts,Z_STREAM_END:q5,Z_NEED_DICT:z5,Z_STREAM_ERROR:ti,Z_DATA_ERROR:I1,Z_MEM_ERROR:D1,Z_BUF_ERROR:G5,Z_DEFLATED:Eu}=F1,mf=16180,Tu=16181,Nu=16182,Lu=16183,Fu=16184,Cu=16185,ku=16186,Pu=16187,Ou=16188,Iu=16189,$0=16190,Zi=16191,ll=16192,Du=16193,hl=16194,Ru=16195,Bu=16196,Mu=16197,Uu=16198,L0=16199,F0=16200,ju=16201,Hu=16202,Wu=16203,qu=16204,zu=16205,ul=16206,Gu=16207,Vu=16208,vr=16209,R1=16210,B1=16211,V5=852,X5=592,Y5=15,K5=Y5,Xu=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function $5(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const as=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<mf||e.mode>B1?1:0},M1=t=>{if(as(t))return ti;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=mf,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(V5),e.distcode=e.distdyn=new Int32Array(X5),e.sane=1,e.back=-1,ts},U1=t=>{if(as(t))return ti;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,M1(t)},j1=(t,e)=>{let r;if(as(t))return ti;const n=t.state;return e<0?(r=0,e=-e):(r=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?ti:(n.window!==null&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,U1(t))},H1=(t,e)=>{if(!t)return ti;const r=new $5;t.state=r,r.strm=t,r.window=null,r.mode=mf;const n=j1(t,e);return n!==ts&&(t.state=null),n},J5=t=>H1(t,K5);let Yu=!0,cl,dl;const Z5=t=>{if(Yu){cl=new Int32Array(512),dl=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Eo(P1,t.lens,0,288,cl,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Eo(O1,t.lens,0,32,dl,0,t.work,{bits:5}),Yu=!1}t.lencode=cl,t.lenbits=9,t.distcode=dl,t.distbits=5},W1=(t,e,r,n)=>{let i;const a=t.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),n>=a.wsize?(a.window.set(e.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),a.window.set(e.subarray(r-n,r-n+i),a.wnext),n-=i,n?(a.window.set(e.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Q5=(t,e)=>{let r,n,i,a,s,o,f,l,u,p,v,c,w,m,y=0,A,D,P,B,re,ue,V,z;const k=new Uint8Array(4);let ee,S;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(as(t)||!t.output||!t.input&&t.avail_in!==0)return ti;r=t.state,r.mode===Zi&&(r.mode=ll),s=t.next_out,i=t.output,f=t.avail_out,a=t.next_in,n=t.input,o=t.avail_in,l=r.hold,u=r.bits,p=o,v=f,z=ts;e:for(;;)switch(r.mode){case mf:if(r.wrap===0){r.mode=ll;break}for(;u<16;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if(r.wrap&2&&l===35615){r.wbits===0&&(r.wbits=15),r.check=0,k[0]=l&255,k[1]=l>>>8&255,r.check=Li(r.check,k,2,0),l=0,u=0,r.mode=Tu;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",r.mode=vr;break}if((l&15)!==Eu){t.msg="unknown compression method",r.mode=vr;break}if(l>>>=4,u-=4,V=(l&15)+8,r.wbits===0&&(r.wbits=V),V>15||V>r.wbits){t.msg="invalid window size",r.mode=vr;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=l&512?Iu:Zi,l=0,u=0;break;case Tu:for(;u<16;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if(r.flags=l,(r.flags&255)!==Eu){t.msg="unknown compression method",r.mode=vr;break}if(r.flags&57344){t.msg="unknown header flags set",r.mode=vr;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&r.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,r.check=Li(r.check,k,2,0)),l=0,u=0,r.mode=Nu;case Nu:for(;u<32;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}r.head&&(r.head.time=l),r.flags&512&&r.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,k[2]=l>>>16&255,k[3]=l>>>24&255,r.check=Li(r.check,k,4,0)),l=0,u=0,r.mode=Lu;case Lu:for(;u<16;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&r.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,r.check=Li(r.check,k,2,0)),l=0,u=0,r.mode=Fu;case Fu:if(r.flags&1024){for(;u<16;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&r.wrap&4&&(k[0]=l&255,k[1]=l>>>8&255,r.check=Li(r.check,k,2,0)),l=0,u=0}else r.head&&(r.head.extra=null);r.mode=Cu;case Cu:if(r.flags&1024&&(c=r.length,c>o&&(c=o),c&&(r.head&&(V=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+c),V)),r.flags&512&&r.wrap&4&&(r.check=Li(r.check,n,c,a)),o-=c,a+=c,r.length-=c),r.length))break e;r.length=0,r.mode=ku;case ku:if(r.flags&2048){if(o===0)break e;c=0;do V=n[a+c++],r.head&&V&&r.length<65536&&(r.head.name+=String.fromCharCode(V));while(V&&c<o);if(r.flags&512&&r.wrap&4&&(r.check=Li(r.check,n,c,a)),o-=c,a+=c,V)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Pu;case Pu:if(r.flags&4096){if(o===0)break e;c=0;do V=n[a+c++],r.head&&V&&r.length<65536&&(r.head.comment+=String.fromCharCode(V));while(V&&c<o);if(r.flags&512&&r.wrap&4&&(r.check=Li(r.check,n,c,a)),o-=c,a+=c,V)break e}else r.head&&(r.head.comment=null);r.mode=Ou;case Ou:if(r.flags&512){for(;u<16;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if(r.wrap&4&&l!==(r.check&65535)){t.msg="header crc mismatch",r.mode=vr;break}l=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Zi;break;case Iu:for(;u<32;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}t.adler=r.check=Xu(l),l=0,u=0,r.mode=$0;case $0:if(r.havedict===0)return t.next_out=s,t.avail_out=f,t.next_in=a,t.avail_in=o,r.hold=l,r.bits=u,z5;t.adler=r.check=1,r.mode=Zi;case Zi:if(e===W5||e===N0)break e;case ll:if(r.last){l>>>=u&7,u-=u&7,r.mode=ul;break}for(;u<3;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}switch(r.last=l&1,l>>>=1,u-=1,l&3){case 0:r.mode=Du;break;case 1:if(Z5(r),r.mode=L0,e===N0){l>>>=2,u-=2;break e}break;case 2:r.mode=Bu;break;case 3:t.msg="invalid block type",r.mode=vr}l>>>=2,u-=2;break;case Du:for(l>>>=u&7,u-=u&7;u<32;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){t.msg="invalid stored block lengths",r.mode=vr;break}if(r.length=l&65535,l=0,u=0,r.mode=hl,e===N0)break e;case hl:r.mode=Ru;case Ru:if(c=r.length,c){if(c>o&&(c=o),c>f&&(c=f),c===0)break e;i.set(n.subarray(a,a+c),s),o-=c,a+=c,f-=c,s+=c,r.length-=c;break}r.mode=Zi;break;case Bu:for(;u<14;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if(r.nlen=(l&31)+257,l>>>=5,u-=5,r.ndist=(l&31)+1,l>>>=5,u-=5,r.ncode=(l&15)+4,l>>>=4,u-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=vr;break}r.have=0,r.mode=Mu;case Mu:for(;r.have<r.ncode;){for(;u<3;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}r.lens[I[r.have++]]=l&7,l>>>=3,u-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,ee={bits:r.lenbits},z=Eo(H5,r.lens,0,19,r.lencode,0,r.work,ee),r.lenbits=ee.bits,z){t.msg="invalid code lengths set",r.mode=vr;break}r.have=0,r.mode=Uu;case Uu:for(;r.have<r.nlen+r.ndist;){for(;y=r.lencode[l&(1<<r.lenbits)-1],A=y>>>24,D=y>>>16&255,P=y&65535,!(A<=u);){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if(P<16)l>>>=A,u-=A,r.lens[r.have++]=P;else{if(P===16){for(S=A+2;u<S;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if(l>>>=A,u-=A,r.have===0){t.msg="invalid bit length repeat",r.mode=vr;break}V=r.lens[r.have-1],c=3+(l&3),l>>>=2,u-=2}else if(P===17){for(S=A+3;u<S;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}l>>>=A,u-=A,V=0,c=3+(l&7),l>>>=3,u-=3}else{for(S=A+7;u<S;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}l>>>=A,u-=A,V=0,c=11+(l&127),l>>>=7,u-=7}if(r.have+c>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=vr;break}for(;c--;)r.lens[r.have++]=V}}if(r.mode===vr)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=vr;break}if(r.lenbits=9,ee={bits:r.lenbits},z=Eo(P1,r.lens,0,r.nlen,r.lencode,0,r.work,ee),r.lenbits=ee.bits,z){t.msg="invalid literal/lengths set",r.mode=vr;break}if(r.distbits=6,r.distcode=r.distdyn,ee={bits:r.distbits},z=Eo(O1,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,ee),r.distbits=ee.bits,z){t.msg="invalid distances set",r.mode=vr;break}if(r.mode=L0,e===N0)break e;case L0:r.mode=F0;case F0:if(o>=6&&f>=258){t.next_out=s,t.avail_out=f,t.next_in=a,t.avail_in=o,r.hold=l,r.bits=u,D5(t,v),s=t.next_out,i=t.output,f=t.avail_out,a=t.next_in,n=t.input,o=t.avail_in,l=r.hold,u=r.bits,r.mode===Zi&&(r.back=-1);break}for(r.back=0;y=r.lencode[l&(1<<r.lenbits)-1],A=y>>>24,D=y>>>16&255,P=y&65535,!(A<=u);){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if(D&&(D&240)===0){for(B=A,re=D,ue=P;y=r.lencode[ue+((l&(1<<B+re)-1)>>B)],A=y>>>24,D=y>>>16&255,P=y&65535,!(B+A<=u);){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}l>>>=B,u-=B,r.back+=B}if(l>>>=A,u-=A,r.back+=A,r.length=P,D===0){r.mode=zu;break}if(D&32){r.back=-1,r.mode=Zi;break}if(D&64){t.msg="invalid literal/length code",r.mode=vr;break}r.extra=D&15,r.mode=ju;case ju:if(r.extra){for(S=r.extra;u<S;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Hu;case Hu:for(;y=r.distcode[l&(1<<r.distbits)-1],A=y>>>24,D=y>>>16&255,P=y&65535,!(A<=u);){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if((D&240)===0){for(B=A,re=D,ue=P;y=r.distcode[ue+((l&(1<<B+re)-1)>>B)],A=y>>>24,D=y>>>16&255,P=y&65535,!(B+A<=u);){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}l>>>=B,u-=B,r.back+=B}if(l>>>=A,u-=A,r.back+=A,D&64){t.msg="invalid distance code",r.mode=vr;break}r.offset=P,r.extra=D&15,r.mode=Wu;case Wu:if(r.extra){for(S=r.extra;u<S;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=vr;break}r.mode=qu;case qu:if(f===0)break e;if(c=v-f,r.offset>c){if(c=r.offset-c,c>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=vr;break}c>r.wnext?(c-=r.wnext,w=r.wsize-c):w=r.wnext-c,c>r.length&&(c=r.length),m=r.window}else m=i,w=s-r.offset,c=r.length;c>f&&(c=f),f-=c,r.length-=c;do i[s++]=m[w++];while(--c);r.length===0&&(r.mode=F0);break;case zu:if(f===0)break e;i[s++]=r.length,f--,r.mode=F0;break;case ul:if(r.wrap){for(;u<32;){if(o===0)break e;o--,l|=n[a++]<<u,u+=8}if(v-=f,t.total_out+=v,r.total+=v,r.wrap&4&&v&&(t.adler=r.check=r.flags?Li(r.check,i,v,s-v):zl(r.check,i,v,s-v)),v=f,r.wrap&4&&(r.flags?l:Xu(l))!==r.check){t.msg="incorrect data check",r.mode=vr;break}l=0,u=0}r.mode=Gu;case Gu:if(r.wrap&&r.flags){for(;u<32;){if(o===0)break e;o--,l+=n[a++]<<u,u+=8}if(r.wrap&4&&l!==(r.total&4294967295)){t.msg="incorrect length check",r.mode=vr;break}l=0,u=0}r.mode=Vu;case Vu:z=q5;break e;case vr:z=I1;break e;case R1:return D1;case B1:default:return ti}return t.next_out=s,t.avail_out=f,t.next_in=a,t.avail_in=o,r.hold=l,r.bits=u,(r.wsize||v!==t.avail_out&&r.mode<vr&&(r.mode<ul||e!==Su))&&W1(t,t.output,t.next_out,v-t.avail_out),p-=t.avail_in,v-=t.avail_out,t.total_in+=p,t.total_out+=v,r.total+=v,r.wrap&4&&v&&(t.adler=r.check=r.flags?Li(r.check,i,v,t.next_out-v):zl(r.check,i,v,t.next_out-v)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Zi?128:0)+(r.mode===L0||r.mode===hl?256:0),(p===0&&v===0||e===Su)&&z===ts&&(z=G5),z},eg=t=>{if(as(t))return ti;let e=t.state;return e.window&&(e.window=null),t.state=null,ts},tg=(t,e)=>{if(as(t))return ti;const r=t.state;return(r.wrap&2)===0?ti:(r.head=e,e.done=!1,ts)},rg=(t,e)=>{const r=e.length;let n,i,a;return as(t)||(n=t.state,n.wrap!==0&&n.mode!==$0)?ti:n.mode===$0&&(i=1,i=zl(i,e,r,0),i!==n.check)?I1:(a=W1(t,e,r,r),a?(n.mode=R1,D1):(n.havedict=1,ts))};var ng=U1,ig=j1,ag=M1,sg=J5,og=H1,fg=Q5,lg=eg,hg=tg,ug=rg,cg="pako inflate (from Nodeca project)",Qi={inflateReset:ng,inflateReset2:ig,inflateResetKeep:ag,inflateInit:sg,inflateInit2:og,inflate:fg,inflateEnd:lg,inflateGetHeader:hg,inflateSetDictionary:ug,inflateInfo:cg};function dg(){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 pg=dg;const q1=Object.prototype.toString,{Z_NO_FLUSH:gg,Z_FINISH:vg,Z_OK:Io,Z_STREAM_END:pl,Z_NEED_DICT:gl,Z_STREAM_ERROR:mg,Z_DATA_ERROR:Ku,Z_MEM_ERROR:xg}=F1;function Wo(t){this.options=C1.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new O5,this.strm.avail_out=0;let r=Qi.inflateInit2(this.strm,e.windowBits);if(r!==Io)throw new Error(Gl[r]);if(this.header=new pg,Qi.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Vl.string2buf(e.dictionary):q1.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=Qi.inflateSetDictionary(this.strm,e.dictionary),r!==Io)))throw new Error(Gl[r])}Wo.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let a,s,o;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?vg:gg,q1.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),a=Qi.inflate(r,s),a===gl&&i&&(a=Qi.inflateSetDictionary(r,i),a===Io?a=Qi.inflate(r,s):a===Ku&&(a=gl));r.avail_in>0&&a===pl&&r.state.wrap>0&&t[r.next_in]!==0;)Qi.inflateReset(r),a=Qi.inflate(r,s);switch(a){case mg:case Ku:case gl:case xg:return this.onEnd(a),this.ended=!0,!1}if(o=r.avail_out,r.next_out&&(r.avail_out===0||a===pl))if(this.options.to==="string"){let f=Vl.utf8border(r.output,r.next_out),l=r.next_out-f,u=Vl.buf2string(r.output,f);r.next_out=l,r.avail_out=n-l,l&&r.output.set(r.output.subarray(f,f+l),0),this.onData(u)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(a===Io&&o===0)){if(a===pl)return a=Qi.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Wo.prototype.onData=function(t){this.chunks.push(t)};Wo.prototype.onEnd=function(t){t===Io&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=C1.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function wg(t,e){const r=new Wo(e);if(r.push(t),r.err)throw r.msg||Gl[r.err];return r.result}var _g=Wo,yg=wg,bg={Inflate:_g,inflate:yg};const{Inflate:Ag,inflate:Sg}=bg;var $u=Ag,Eg=Sg;const z1=[];for(let t=0;t<256;t++){let e=t;for(let r=0;r<8;r++)e&1?e=3988292384^e>>>1:e=e>>>1;z1[t]=e}const Ju=4294967295;function Tg(t,e,r){let n=t;for(let i=0;i<r;i++)n=z1[(n^e[i])&255]^n>>>8;return n}function Ng(t,e){return(Tg(Ju,t,e)^Ju)>>>0}function Zu(t,e,r){const n=t.readUint32(),i=Ng(new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e);if(i!==n)throw new Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${i}`)}function G1(t,e,r){for(let n=0;n<r;n++)e[n]=t[n]}function V1(t,e,r,n){let i=0;for(;i<n;i++)e[i]=t[i];for(;i<r;i++)e[i]=t[i]+e[i-n]&255}function X1(t,e,r,n){let i=0;if(r.length===0)for(;i<n;i++)e[i]=t[i];else for(;i<n;i++)e[i]=t[i]+r[i]&255}function Y1(t,e,r,n,i){let a=0;if(r.length===0){for(;a<i;a++)e[a]=t[a];for(;a<n;a++)e[a]=t[a]+(e[a-i]>>1)&255}else{for(;a<i;a++)e[a]=t[a]+(r[a]>>1)&255;for(;a<n;a++)e[a]=t[a]+(e[a-i]+r[a]>>1)&255}}function K1(t,e,r,n,i){let a=0;if(r.length===0){for(;a<i;a++)e[a]=t[a];for(;a<n;a++)e[a]=t[a]+e[a-i]&255}else{for(;a<i;a++)e[a]=t[a]+r[a]&255;for(;a<n;a++)e[a]=t[a]+Lg(e[a-i],r[a],r[a-i])&255}}function Lg(t,e,r){const n=t+e-r,i=Math.abs(n-t),a=Math.abs(n-e),s=Math.abs(n-r);return i<=a&&i<=s?t:a<=s?e:r}function Fg(t,e,r,n,i,a){switch(t){case 0:G1(e,r,i);break;case 1:V1(e,r,i,a);break;case 2:X1(e,r,n,i);break;case 3:Y1(e,r,n,i,a);break;case 4:K1(e,r,n,i,a);break;default:throw new Error(`Unsupported filter: ${t}`)}}const Cg=new Uint16Array([255]),kg=new Uint8Array(Cg.buffer),Pg=kg[0]===255;function Og(t){const{data:e,width:r,height:n,channels:i,depth:a}=t,s=[{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}],o=Math.ceil(a/8)*i,f=new Uint8Array(n*r*o);let l=0;for(let u=0;u<7;u++){const p=s[u],v=Math.ceil((r-p.x)/p.xStep),c=Math.ceil((n-p.y)/p.yStep);if(v<=0||c<=0)continue;const w=v*o,m=new Uint8Array(w);for(let y=0;y<c;y++){const A=e[l++],D=e.subarray(l,l+w);l+=w;const P=new Uint8Array(w);Fg(A,D,P,m,w,o),m.set(P);for(let B=0;B<v;B++){const re=p.x+B*p.xStep,ue=p.y+y*p.yStep;if(!(re>=r||ue>=n))for(let V=0;V<o;V++)f[(ue*r+re)*o+V]=P[B*o+V]}}}if(a===16){const u=new Uint16Array(f.buffer);if(Pg)for(let p=0;p<u.length;p++)u[p]=Ig(u[p]);return u}else return f}function Ig(t){return(t&255)<<8|t>>8&255}const Dg=new Uint16Array([255]),Rg=new Uint8Array(Dg.buffer),Bg=Rg[0]===255,Mg=new Uint8Array(0);function Qu(t){const{data:e,width:r,height:n,channels:i,depth:a}=t,s=Math.ceil(a/8)*i,o=Math.ceil(a/8*i*r),f=new Uint8Array(n*o);let l=Mg,u=0,p,v;for(let c=0;c<n;c++){switch(p=e.subarray(u+1,u+1+o),v=f.subarray(c*o,(c+1)*o),e[u]){case 0:G1(p,v,o);break;case 1:V1(p,v,o,s);break;case 2:X1(p,v,l,o);break;case 3:Y1(p,v,l,o,s);break;case 4:K1(p,v,l,o,s);break;default:throw new Error(`Unsupported filter: ${e[u]}`)}l=v,u+=o+1}if(a===16){const c=new Uint16Array(f.buffer);if(Bg)for(let w=0;w<c.length;w++)c[w]=Ug(c[w]);return c}else return f}function Ug(t){return(t&255)<<8|t>>8&255}const q0=Uint8Array.of(137,80,78,71,13,10,26,10);function ec(t){if(!jg(t.readBytes(q0.length)))throw new Error("wrong PNG signature")}function jg(t){if(t.length<q0.length)return!1;for(let e=0;e<q0.length;e++)if(t[e]!==q0[e])return!1;return!0}const Hg="tEXt",Wg=0,$1=new TextDecoder("latin1");function qg(t){if(Gg(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const zg=/^[\u0000-\u00FF]*$/;function Gg(t){if(!zg.test(t))throw new Error("invalid latin1 text")}function Vg(t,e,r){const n=J1(e);t[n]=Xg(e,r-n.length-1)}function J1(t){for(t.mark();t.readByte()!==Wg;);const e=t.offset;t.reset();const r=$1.decode(t.readBytes(e-t.offset-1));return t.skip(1),qg(r),r}function Xg(t,e){return $1.decode(t.readBytes(e))}const Un={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},vl={UNKNOWN:-1,DEFLATE:0},tc={UNKNOWN:-1,ADAPTIVE:0},ml={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},C0={NONE:0,BACKGROUND:1,PREVIOUS:2},xl={SOURCE:0,OVER:1};class Yg extends oh{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,r={}){super(e);const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new $u,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=vl.UNKNOWN,this._filterMethod=tc.UNKNOWN,this._interlaceMethod=ml.UNKNOWN,this._colorType=Un.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ec(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeChunk(e,r)}return this.decodeImage(),this._png}decodeApng(){for(ec(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(e,r)}return this.decodeApngImage(),this._apng}decodeChunk(e,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case Hg:Vg(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Zu(this,e+4,r):this.skip(4)}decodeApngChunk(e,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,r),this.offset=n+e;break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Zu(this,e+4,r):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=Kg(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case Un.GREYSCALE:n=1;break;case Un.TRUECOLOUR:n=3;break;case Un.INDEXED_COLOUR:n=1;break;case Un.GREYSCALE_ALPHA:n=2;break;case Un.TRUECOLOUR_ALPHA:n=4;break;case Un.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==vl.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const r=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let i=0;i<r;i++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const r=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let r=e,n=this.offset+this.byteOffset;if(n+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case Un.GREYSCALE:case Un.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let r=0;r<e/2;r++)this._transparency[r]=this.readUint16();break}case Un.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let r=0;for(;r<e;r++){const n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case Un.UNKNOWN:case Un.GREYSCALE_ALPHA:case Un.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const r=J1(this),n=this.readUint8();if(n!==vl.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const i=this.readBytes(e-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:Eg(i)}}decodepHYs(){const e=this.readUint32(),r=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:r,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 e=0;e<this._numberOfFrames;e++){const r={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=Qu({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),e===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)r.data=n.data;else{const i=this._apng.frames.at(e-1);this.disposeFrame(n,i,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(e,r,n){switch(e.disposeOp){case C0.NONE:break;case C0.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let a=0;a<this._png.width;a++){const s=(i*e.width+a)*this._png.channels;for(let o=0;o<this._png.channels;o++)n.data[s+o]=0}break;case C0.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,r){const n=1<<this._png.depth,i=(a,s)=>{const o=((a+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,f=(a*r.width+s)*this._png.channels;return{index:o,frameIndex:f}};switch(r.blendOp){case xl.SOURCE:for(let a=0;a<r.height;a++)for(let s=0;s<r.width;s++){const{index:o,frameIndex:f}=i(a,s);for(let l=0;l<this._png.channels;l++)e.data[o+l]=r.data[f+l]}break;case xl.OVER:for(let a=0;a<r.height;a++)for(let s=0;s<r.width;s++){const{index:o,frameIndex:f}=i(a,s);for(let l=0;l<this._png.channels;l++){const u=r.data[f+this._png.channels-1]/n,p=l%(this._png.channels-1)===0?1:r.data[f+l],v=Math.floor(u*p+(1-u)*e.data[o+l]);e.data[o+l]+=v}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==tc.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===ml.NO_INTERLACE)this._png.data=Qu({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===ml.ADAM7)this._png.data=Og({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,r=this._frames.at(-1);r?r.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:C0.NONE,blendOp:xl.SOURCE,data:e}),this._inflator=new $u,this._writingDataChunks=!1}}function Kg(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var rc;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(rc||(rc={}));function $g(t,e){return new Yg(t,e).decode()}var xt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function wl(){xt.console&&typeof xt.console.log=="function"&&xt.console.log.apply(xt.console,arguments)}var ir={log:wl,warn:function(t){xt.console&&(typeof xt.console.warn=="function"?xt.console.warn.apply(xt.console,arguments):wl.call(null,arguments))},error:function(t){xt.console&&(typeof xt.console.error=="function"?xt.console.error.apply(xt.console,arguments):wl(t))}};function _l(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){Ka(n.response,e,r)},n.onerror=function(){ir.error("could not download file")},n.send()}function nc(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function k0(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var Ka=xt.saveAs||((typeof window>"u"?"undefined":Vt(window))!=="object"||window!==xt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=xt.URL||xt.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener",typeof t=="string"?(i.href=t,i.origin!==location.origin?nc(i.href)?_l(t,e,r):k0(i,i.target="_blank"):k0(i)):(i.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){k0(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download",typeof t=="string")if(nc(t))_l(t,e,r);else{var n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){k0(n)})}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:Vt(a)!=="object"&&(ir.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(t,r),e)}:function(t,e,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof t=="string")return _l(t,e,r);var i=t.type==="application/octet-stream",a=/constructor/i.test(xt.HTMLElement)||xt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&a)&&(typeof FileReader>"u"?"undefined":Vt(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var u=o.result;u=s?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},o.readAsDataURL(t)}else{var f=xt.URL||xt.webkitURL,l=f.createObjectURL(t);n?n.location=l:location.href=l,n=null,setTimeout(function(){f.revokeObjectURL(l)},4e4)}});function Z1(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,s=i.exec(t);s&&(e=a(s),this.r=e[0],this.g=e[1],this.b=e[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 o=this.r.toString(16),f=this.g.toString(16),l=this.b.toString(16);return o.length==1&&(o="0"+o),f.length==1&&(f="0"+f),l.length==1&&(l="0"+l),"#"+o+f+l}}var z0=xt.atob.bind(xt),ic=xt.btoa.bind(xt);function yl(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=un(r,n,i,a,e[0],7,-680876936),a=un(a,r,n,i,e[1],12,-389564586),i=un(i,a,r,n,e[2],17,606105819),n=un(n,i,a,r,e[3],22,-1044525330),r=un(r,n,i,a,e[4],7,-176418897),a=un(a,r,n,i,e[5],12,1200080426),i=un(i,a,r,n,e[6],17,-1473231341),n=un(n,i,a,r,e[7],22,-45705983),r=un(r,n,i,a,e[8],7,1770035416),a=un(a,r,n,i,e[9],12,-1958414417),i=un(i,a,r,n,e[10],17,-42063),n=un(n,i,a,r,e[11],22,-1990404162),r=un(r,n,i,a,e[12],7,1804603682),a=un(a,r,n,i,e[13],12,-40341101),i=un(i,a,r,n,e[14],17,-1502002290),r=cn(r,n=un(n,i,a,r,e[15],22,1236535329),i,a,e[1],5,-165796510),a=cn(a,r,n,i,e[6],9,-1069501632),i=cn(i,a,r,n,e[11],14,643717713),n=cn(n,i,a,r,e[0],20,-373897302),r=cn(r,n,i,a,e[5],5,-701558691),a=cn(a,r,n,i,e[10],9,38016083),i=cn(i,a,r,n,e[15],14,-660478335),n=cn(n,i,a,r,e[4],20,-405537848),r=cn(r,n,i,a,e[9],5,568446438),a=cn(a,r,n,i,e[14],9,-1019803690),i=cn(i,a,r,n,e[3],14,-187363961),n=cn(n,i,a,r,e[8],20,1163531501),r=cn(r,n,i,a,e[13],5,-1444681467),a=cn(a,r,n,i,e[2],9,-51403784),i=cn(i,a,r,n,e[7],14,1735328473),r=dn(r,n=cn(n,i,a,r,e[12],20,-1926607734),i,a,e[5],4,-378558),a=dn(a,r,n,i,e[8],11,-2022574463),i=dn(i,a,r,n,e[11],16,1839030562),n=dn(n,i,a,r,e[14],23,-35309556),r=dn(r,n,i,a,e[1],4,-1530992060),a=dn(a,r,n,i,e[4],11,1272893353),i=dn(i,a,r,n,e[7],16,-155497632),n=dn(n,i,a,r,e[10],23,-1094730640),r=dn(r,n,i,a,e[13],4,681279174),a=dn(a,r,n,i,e[0],11,-358537222),i=dn(i,a,r,n,e[3],16,-722521979),n=dn(n,i,a,r,e[6],23,76029189),r=dn(r,n,i,a,e[9],4,-640364487),a=dn(a,r,n,i,e[12],11,-421815835),i=dn(i,a,r,n,e[15],16,530742520),r=pn(r,n=dn(n,i,a,r,e[2],23,-995338651),i,a,e[0],6,-198630844),a=pn(a,r,n,i,e[7],10,1126891415),i=pn(i,a,r,n,e[14],15,-1416354905),n=pn(n,i,a,r,e[5],21,-57434055),r=pn(r,n,i,a,e[12],6,1700485571),a=pn(a,r,n,i,e[3],10,-1894986606),i=pn(i,a,r,n,e[10],15,-1051523),n=pn(n,i,a,r,e[1],21,-2054922799),r=pn(r,n,i,a,e[8],6,1873313359),a=pn(a,r,n,i,e[15],10,-30611744),i=pn(i,a,r,n,e[6],15,-1560198380),n=pn(n,i,a,r,e[13],21,1309151649),r=pn(r,n,i,a,e[4],6,-145523070),a=pn(a,r,n,i,e[11],10,-1120210379),i=pn(i,a,r,n,e[2],15,718787259),n=pn(n,i,a,r,e[9],21,-343485551),t[0]=Na(r,t[0]),t[1]=Na(n,t[1]),t[2]=Na(i,t[2]),t[3]=Na(a,t[3])}function xf(t,e,r,n,i,a){return e=Na(Na(e,t),Na(n,a)),Na(e<<i|e>>>32-i,r)}function un(t,e,r,n,i,a,s){return xf(e&r|~e&n,t,e,i,a,s)}function cn(t,e,r,n,i,a,s){return xf(e&n|r&~n,t,e,i,a,s)}function dn(t,e,r,n,i,a,s){return xf(e^r^n,t,e,i,a,s)}function pn(t,e,r,n,i,a,s){return xf(r^(e|~n),t,e,i,a,s)}function Q1(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)yl(n,Jg(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(yl(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,yl(n,i),n}function Jg(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}var ac="0123456789abcdef".split("");function Zg(t){for(var e="",r=0;r<4;r++)e+=ac[t>>8*r+4&15]+ac[t>>8*r&15];return e}function Qg(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Xl(t){return Q1(t).map(Qg).join("")}var ev=(function(t){for(var e=0;e<t.length;e++)t[e]=Zg(t[e]);return t.join("")})(Q1("hello"))!="5d41402abc4b2a76b9719d911017c592";function Na(t,e){if(ev){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}function Yl(t,e){var r,n,i,a;if(t!==r){for(var s=(i=t,a=1+(256/t.length|0),new Array(a+1).join(i)),o=[],f=0;f<256;f++)o[f]=f;var l=0;for(f=0;f<256;f++){var u=o[f];l=(l+u+s.charCodeAt(f))%256,o[f]=o[l],o[l]=u}r=t,n=o}else o=n;var p=e.length,v=0,c=0,w="";for(f=0;f<p;f++)c=(c+(u=o[v=(v+1)%256]))%256,o[v]=o[c],o[c]=u,s=o[(o[v]+o[c])%256],w+=String.fromCharCode(e.charCodeAt(f)^s);return w}var sc={print:4,modify:8,copy:16,"annot-forms":32};function Ls(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach(function(o){if(sc.perm!==void 0)throw new Error("Invalid permission: "+o);i+=sc[o]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),s=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=Xl(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=Yl(this.encryptionKey,this.padding)}function Fs(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);e+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function oc(t){if(Vt(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var a=Math.random().toString(35);return e[r][a]=[n,!!i],a},this.unsubscribe=function(r){for(var n in e)if(e[n][r])return delete e[n][r],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[r]){var s=e[r][a];try{s[0].apply(t,n)}catch(o){xt.console&&ir.error("jsPDF PubSub Error",o.message,o)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function J0(t){if(!(this instanceof J0))return new J0(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function e2(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function $a(t,e,r,n,i){if(!(this instanceof $a))return new $a(t,e,r,n,i);this.type=t==="axial"?2:3,this.coords=e,this.colors=r,e2.call(this,n,i)}function ks(t,e,r,n,i){if(!(this instanceof ks))return new ks(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,e2.call(this,n,i)}function ht(t){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],s=[],o=1,f=16,l="S",u=null;Vt(t=t||{})==="object"&&(r=t.orientation,n=t.unit||n,i=t.format||i,a=t.compress||t.compressPdf||a,(u=t.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),o=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(f=t.floatPrecision),l=t.defaultPathOperation||"S"),s=t.filters||(a===!0?["FlateEncode"]:s),n=n||"mm",r=(""+(r||"P")).toLowerCase();var p=t.putOnlyUsedFonts||!1,v={},c={internal:{},__private__:{}};c.__private__.PubSub=oc;var w="1.3",m=c.__private__.getPdfVersion=function(){return w};c.__private__.setPdfVersion=function(g){w=g};var y={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]};c.__private__.getPageFormats=function(){return y};var A=c.__private__.getPageFormat=function(g){return y[g]};i=i||"a4";var D="compat",P="advanced",B=D;function re(){this.saveGraphicsState(),W(new gt(yt,0,0,-yt,0,Ua()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),l="n",B=P}function ue(){this.restoreGraphicsState(),l="S",B=D}var V=c.__private__.combineFontStyleAndFontWeight=function(g,E){if(g=="bold"&&E=="normal"||g=="bold"&&E==400||g=="normal"&&E=="italic"||g=="bold"&&E=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return E&&(g=E==400||E==="normal"?g==="italic"?"italic":"normal":E!=700&&E!=="bold"||g!=="normal"?(E==700?"bold":E)+""+g:"bold"),g};c.advancedAPI=function(g){var E=B===D;return E&&re.call(this),typeof g!="function"||(g(this),E&&ue.call(this)),this},c.compatAPI=function(g){var E=B===P;return E&&ue.call(this),typeof g!="function"||(g(this),E&&re.call(this)),this},c.isAdvancedAPI=function(){return B===P};var z,k=function(g){if(B!==P)throw new Error(g+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},ee=c.roundToPrecision=c.__private__.roundToPrecision=function(g,E){var Z=e||E;if(isNaN(g)||isNaN(Z))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return g.toFixed(Z).replace(/0+$/,"")};z=c.hpf=c.__private__.hpf=typeof f=="number"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return ee(g,f)}:f==="smart"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return ee(g,g>-1&&g<1?16:5)}:function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return ee(g,16)};var S=c.f2=c.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f2");return ee(g,2)},I=c.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return ee(g,3)},G=c.scale=c.__private__.scale=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.scale");return B===D?g*yt:B===P?g:void 0},te=function(g){return G((function(E){return B===D?Ua()-E:B===P?E:void 0})(g))};c.__private__.setPrecision=c.setPrecision=function(g){typeof parseInt(g,10)=="number"&&(e=parseInt(g,10))};var he,be="00000000000000000000000000000000",ye=c.__private__.getFileId=function(){return be},pe=c.__private__.setFileId=function(g){return be=g!==void 0&&/^[a-fA-F0-9]{32}$/.test(g)?g.toUpperCase():be.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(Ur=new Ls(u.userPermissions,u.userPassword,u.ownerPassword,be)),be};c.setFileId=function(g){return pe(g),this},c.getFileId=function(){return ye()};var Ae=c.__private__.convertDateToPDFDate=function(g){var E=g.getTimezoneOffset(),Z=E<0?"+":"-",ie=Math.floor(Math.abs(E/60)),ce=Math.abs(E%60),Le=[Z,N(ie),"'",N(ce),"'"].join("");return["D:",g.getFullYear(),N(g.getMonth()+1),N(g.getDate()),N(g.getHours()),N(g.getMinutes()),N(g.getSeconds()),Le].join("")},Ue=c.__private__.convertPDFDateToDate=function(g){var E=parseInt(g.substr(2,4),10),Z=parseInt(g.substr(6,2),10)-1,ie=parseInt(g.substr(8,2),10),ce=parseInt(g.substr(10,2),10),Le=parseInt(g.substr(12,2),10),Ie=parseInt(g.substr(14,2),10);return new Date(E,Z,ie,ce,Le,Ie,0)},ke=c.__private__.setCreationDate=function(g){var E;if(g===void 0&&(g=new Date),g instanceof Date)E=Ae(g);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(g))throw new Error("Invalid argument passed to jsPDF.setCreationDate");E=g}return he=E},_=c.__private__.getCreationDate=function(g){var E=he;return g==="jsDate"&&(E=Ue(he)),E};c.setCreationDate=function(g){return ke(g),this},c.getCreationDate=function(g){return _(g)};var L,N=c.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},F=c.__private__.padd2Hex=function(g){return("00"+(g=g.toString())).substr(g.length)},q=0,ne=[],oe=[],se=0,fe=[],Fe=[],Re=!1,qe=oe;c.__private__.setCustomOutputDestination=function(g){Re=!0,qe=g};var ze=function(g){Re||(qe=g)};c.__private__.resetCustomOutputDestination=function(){Re=!1,qe=oe};var W=c.__private__.out=function(g){return g=g.toString(),se+=g.length+1,qe.push(g),qe},je=c.__private__.write=function(g){return W(arguments.length===1?g.toString():Array.prototype.join.call(arguments," "))},Be=c.__private__.getArrayBuffer=function(g){for(var E=g.length,Z=new ArrayBuffer(E),ie=new Uint8Array(Z);E--;)ie[E]=g.charCodeAt(E);return Z},Qe=[["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]];c.__private__.getStandardFonts=function(){return Qe};var Pe=t.fontSize||16;c.__private__.setFontSize=c.setFontSize=function(g){return Pe=B===P?g/yt:g,this};var st,Je=c.__private__.getFontSize=c.getFontSize=function(){return B===D?Pe:Pe*yt},ut=t.R2L||!1;c.__private__.setR2L=c.setR2L=function(g){return ut=g,this},c.__private__.getR2L=c.getR2L=function(){return ut};var ft,Ft=c.__private__.setZoomMode=function(g){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(g))st=g;else if(isNaN(g)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(g)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+g+'" is not recognized.');st=g}else st=parseInt(g,10)};c.__private__.getZoomMode=function(){return st};var Ct,mt=c.__private__.setPageMode=function(g){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(g)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+g+'" is not recognized.');ft=g};c.__private__.getPageMode=function(){return ft};var Dt=c.__private__.setLayoutMode=function(g){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(g)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+g+'" is not recognized.');Ct=g};c.__private__.getLayoutMode=function(){return Ct},c.__private__.setDisplayMode=c.setDisplayMode=function(g,E,Z){return Ft(g),Dt(E),mt(Z),this};var At={title:"",subject:"",author:"",keywords:"",creator:""};c.__private__.getDocumentProperty=function(g){if(Object.keys(At).indexOf(g)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return At[g]},c.__private__.getDocumentProperties=function(){return At},c.__private__.setDocumentProperties=c.setProperties=c.setDocumentProperties=function(g){for(var E in At)At.hasOwnProperty(E)&&g[E]&&(At[E]=g[E]);return this},c.__private__.setDocumentProperty=function(g,E){if(Object.keys(At).indexOf(g)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return At[g]=E};var rt,yt,at,dr,Rt,Tt={},Nt={},ar=[],ct={},Xt={},pt={},wt={},sr=null,Ot=0,dt=[],Wt=new oc(c),Di=t.hotfixes||[],Vr={},ni={},Vn=[],gt=function g(E,Z,ie,ce,Le,Ie){if(!(this instanceof g))return new g(E,Z,ie,ce,Le,Ie);isNaN(E)&&(E=1),isNaN(Z)&&(Z=0),isNaN(ie)&&(ie=0),isNaN(ce)&&(ce=1),isNaN(Le)&&(Le=0),isNaN(Ie)&&(Ie=0),this._matrix=[E,Z,ie,ce,Le,Ie]};Object.defineProperty(gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(gt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),gt.prototype.join=function(g){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(z).join(g)},gt.prototype.multiply=function(g){var E=g.sx*this.sx+g.shy*this.shx,Z=g.sx*this.shy+g.shy*this.sy,ie=g.shx*this.sx+g.sy*this.shx,ce=g.shx*this.shy+g.sy*this.sy,Le=g.tx*this.sx+g.ty*this.shx+this.tx,Ie=g.tx*this.shy+g.ty*this.sy+this.ty;return new gt(E,Z,ie,ce,Le,Ie)},gt.prototype.decompose=function(){var g=this.sx,E=this.shy,Z=this.shx,ie=this.sy,ce=this.tx,Le=this.ty,Ie=Math.sqrt(g*g+E*E),tt=(g/=Ie)*Z+(E/=Ie)*ie;Z-=g*tt,ie-=E*tt;var ot=Math.sqrt(Z*Z+ie*ie);return tt/=ot,g*(ie/=ot)<E*(Z/=ot)&&(g=-g,E=-E,tt=-tt,Ie=-Ie),{scale:new gt(Ie,0,0,ot,0,0),translate:new gt(1,0,0,1,ce,Le),rotate:new gt(g,E,-E,g,0,0),skew:new gt(1,0,tt,1,0,0)}},gt.prototype.toString=function(g){return this.join(" ")},gt.prototype.inversed=function(){var g=this.sx,E=this.shy,Z=this.shx,ie=this.sy,ce=this.tx,Le=this.ty,Ie=1/(g*ie-E*Z),tt=ie*Ie,ot=-E*Ie,_t=-Z*Ie,Lt=g*Ie;return new gt(tt,ot,_t,Lt,-tt*ce-_t*Le,-ot*ce-Lt*Le)},gt.prototype.applyToPoint=function(g){var E=g.x*this.sx+g.y*this.shx+this.tx,Z=g.x*this.shy+g.y*this.sy+this.ty;return new ji(E,Z)},gt.prototype.applyToRectangle=function(g){var E=this.applyToPoint(g),Z=this.applyToPoint(new ji(g.x+g.w,g.y+g.h));return new Qs(E.x,E.y,Z.x-E.x,Z.y-E.y)},gt.prototype.clone=function(){var g=this.sx,E=this.shy,Z=this.shx,ie=this.sy,ce=this.tx,Le=this.ty;return new gt(g,E,Z,ie,ce,Le)},c.Matrix=gt;var ii=c.matrixMult=function(g,E){return E.multiply(g)},ai=new gt(1,0,0,1,0,0);c.unitMatrix=c.identityMatrix=ai;var ln=function(g,E){if(!Xt[g]){var Z=(E instanceof $a?"Sh":"P")+(Object.keys(ct).length+1).toString(10);E.id=Z,Xt[g]=Z,ct[Z]=E,Wt.publish("addPattern",E)}};c.ShadingPattern=$a,c.TilingPattern=ks,c.addShadingPattern=function(g,E){return k("addShadingPattern()"),ln(g,E),this},c.beginTilingPattern=function(g){k("beginTilingPattern()"),eo(g.boundingBox[0],g.boundingBox[1],g.boundingBox[2]-g.boundingBox[0],g.boundingBox[3]-g.boundingBox[1],g.matrix)},c.endTilingPattern=function(g,E){k("endTilingPattern()"),E.stream=Fe[L].join(`
3
- `),ln(g,E),Wt.publish("endTilingPattern",E),Vn.pop().restore()};var Sn,pr=c.__private__.newObject=function(){var g=kr();return C(g,!0),g},kr=c.__private__.newObjectDeferred=function(){return q++,ne[q]=function(){return se},q},C=function(g,E){return E=typeof E=="boolean"&&E,ne[g]=se,E&&W(g+" 0 obj"),g},K=c.__private__.newAdditionalObject=function(){var g={objId:kr(),content:""};return fe.push(g),g},U=kr(),H=kr(),J=c.__private__.decodeColorString=function(g){var E=g.split(" ");if(E.length!==2||E[1]!=="g"&&E[1]!=="G")E.length!==5||E[4]!=="k"&&E[4]!=="K"||(E=[(1-E[0])*(1-E[3]),(1-E[1])*(1-E[3]),(1-E[2])*(1-E[3]),"r"]);else{var Z=parseFloat(E[0]);E=[Z,Z,Z,"r"]}for(var ie="#",ce=0;ce<3;ce++)ie+=("0"+Math.floor(255*parseFloat(E[ce])).toString(16)).slice(-2);return ie},Q=c.__private__.encodeColorString=function(g){var E;typeof g=="string"&&(g={ch1:g});var Z=g.ch1,ie=g.ch2,ce=g.ch3,Le=g.ch4,Ie=g.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Z=="string"&&Z.charAt(0)!=="#"){var tt=new Z1(Z);if(tt.ok)Z=tt.toHex();else if(!/^\d*\.?\d*$/.test(Z))throw new Error('Invalid color "'+Z+'" passed to jsPDF.encodeColorString.')}if(typeof Z=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Z)&&(Z="#"+Z[1]+Z[1]+Z[2]+Z[2]+Z[3]+Z[3]),typeof Z=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Z)){var ot=parseInt(Z.substr(1),16);Z=ot>>16&255,ie=ot>>8&255,ce=255&ot}if(ie===void 0||Le===void 0&&Z===ie&&ie===ce)E=typeof Z=="string"?Z+" "+Ie[0]:g.precision===2?S(Z/255)+" "+Ie[0]:I(Z/255)+" "+Ie[0];else if(Le===void 0||Vt(Le)==="object"){if(Le&&!isNaN(Le.a)&&Le.a===0)return["1.","1.","1.",Ie[1]].join(" ");E=typeof Z=="string"?[Z,ie,ce,Ie[1]].join(" "):g.precision===2?[S(Z/255),S(ie/255),S(ce/255),Ie[1]].join(" "):[I(Z/255),I(ie/255),I(ce/255),Ie[1]].join(" ")}else E=typeof Z=="string"?[Z,ie,ce,Le,Ie[2]].join(" "):g.precision===2?[S(Z),S(ie),S(ce),S(Le),Ie[2]].join(" "):[I(Z),I(ie),I(ce),I(Le),Ie[2]].join(" ");return E},ge=c.__private__.getFilters=function(){return s},Se=c.__private__.putStream=function(g){var E=(g=g||{}).data||"",Z=g.filters||ge(),ie=g.alreadyAppliedFilters||[],ce=g.addLength1||!1,Le=E.length,Ie=g.objectId,tt=function(jr){return jr};if(u!==null&&Ie===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(tt=Ur.encryptor(Ie,0));var ot={};Z===!0&&(Z=["FlateEncode"]);var _t=g.additionalKeyValues||[],Lt=(ot=ht.API.processDataByFilters!==void 0?ht.API.processDataByFilters(E,Z):{data:E,reverseChain:[]}).reverseChain+(Array.isArray(ie)?ie.join(" "):ie.toString());if(ot.data.length!==0&&(_t.push({key:"Length",value:ot.data.length}),ce===!0&&_t.push({key:"Length1",value:Le})),Lt.length!=0)if(Lt.split("/").length-1==1)_t.push({key:"Filter",value:Lt});else{_t.push({key:"Filter",value:"["+Lt+"]"});for(var jt=0;jt<_t.length;jt+=1)if(_t[jt].key==="DecodeParms"){for(var mr=[],Ir=0;Ir<ot.reverseChain.split("/").length-1;Ir+=1)mr.push("null");mr.push(_t[jt].value),_t[jt].value="["+mr.join(" ")+"]"}}W("<<");for(var or=0;or<_t.length;or++)W("/"+_t[or].key+" "+_t[or].value);W(">>"),ot.data.length!==0&&(W("stream"),W(tt(ot.data)),W("endstream"))},ve=c.__private__.putPage=function(g){var E=g.number,Z=g.data,ie=g.objId,ce=g.contentsObjId;C(ie,!0),W("<</Type /Page"),W("/Parent "+g.rootDictionaryObjId+" 0 R"),W("/Resources "+g.resourceDictionaryObjId+" 0 R"),W("/MediaBox ["+parseFloat(z(g.mediaBox.bottomLeftX))+" "+parseFloat(z(g.mediaBox.bottomLeftY))+" "+z(g.mediaBox.topRightX)+" "+z(g.mediaBox.topRightY)+"]"),g.cropBox!==null&&W("/CropBox ["+z(g.cropBox.bottomLeftX)+" "+z(g.cropBox.bottomLeftY)+" "+z(g.cropBox.topRightX)+" "+z(g.cropBox.topRightY)+"]"),g.bleedBox!==null&&W("/BleedBox ["+z(g.bleedBox.bottomLeftX)+" "+z(g.bleedBox.bottomLeftY)+" "+z(g.bleedBox.topRightX)+" "+z(g.bleedBox.topRightY)+"]"),g.trimBox!==null&&W("/TrimBox ["+z(g.trimBox.bottomLeftX)+" "+z(g.trimBox.bottomLeftY)+" "+z(g.trimBox.topRightX)+" "+z(g.trimBox.topRightY)+"]"),g.artBox!==null&&W("/ArtBox ["+z(g.artBox.bottomLeftX)+" "+z(g.artBox.bottomLeftY)+" "+z(g.artBox.topRightX)+" "+z(g.artBox.topRightY)+"]"),typeof g.userUnit=="number"&&g.userUnit!==1&&W("/UserUnit "+g.userUnit),Wt.publish("putPage",{objId:ie,pageContext:dt[E],pageNumber:E,page:Z}),W("/Contents "+ce+" 0 R"),W(">>"),W("endobj");var Le=Z.join(`
4
- `);return B===P&&(Le+=`
5
- Q`),C(ce,!0),Se({data:Le,filters:ge(),objectId:ce}),W("endobj"),ie},me=c.__private__.putPages=function(){var g,E,Z=[];for(g=1;g<=Ot;g++)dt[g].objId=kr(),dt[g].contentsObjId=kr();for(g=1;g<=Ot;g++)Z.push(ve({number:g,data:Fe[g],objId:dt[g].objId,contentsObjId:dt[g].contentsObjId,mediaBox:dt[g].mediaBox,cropBox:dt[g].cropBox,bleedBox:dt[g].bleedBox,trimBox:dt[g].trimBox,artBox:dt[g].artBox,userUnit:dt[g].userUnit,rootDictionaryObjId:U,resourceDictionaryObjId:H}));C(U,!0),W("<</Type /Pages");var ie="/Kids [";for(E=0;E<Ot;E++)ie+=Z[E]+" 0 R ";W(ie+"]"),W("/Count "+Ot),W(">>"),W("endobj"),Wt.publish("postPutPages")},_e=function(g){Wt.publish("putFont",{font:g,out:W,newObject:pr,putStream:Se}),g.isAlreadyPutted!==!0&&(g.objectNumber=pr(),W("<<"),W("/Type /Font"),W("/BaseFont /"+Fs(g.postScriptName)),W("/Subtype /Type1"),typeof g.encoding=="string"&&W("/Encoding /"+g.encoding),W("/FirstChar 32"),W("/LastChar 255"),W(">>"),W("endobj"))},Me=function(g){g.objectNumber=pr();var E=[];E.push({key:"Type",value:"/XObject"}),E.push({key:"Subtype",value:"/Form"}),E.push({key:"BBox",value:"["+[z(g.x),z(g.y),z(g.x+g.width),z(g.y+g.height)].join(" ")+"]"}),E.push({key:"Matrix",value:"["+g.matrix.toString()+"]"});var Z=g.pages[1].join(`
6
- `);Se({data:Z,additionalKeyValues:E,objectId:g.objectNumber}),W("endobj")},Ge=function(g,E){E||(E=21);var Z=pr(),ie=(function(Ie,tt){var ot,_t=[],Lt=1/(tt-1);for(ot=0;ot<1;ot+=Lt)_t.push(ot);if(_t.push(1),Ie[0].offset!=0){var jt={offset:0,color:Ie[0].color};Ie.unshift(jt)}if(Ie[Ie.length-1].offset!=1){var mr={offset:1,color:Ie[Ie.length-1].color};Ie.push(mr)}for(var Ir="",or=0,jr=0;jr<_t.length;jr++){for(ot=_t[jr];ot>Ie[or+1].offset;)or++;var Dr=Ie[or].offset,Jr=(ot-Dr)/(Ie[or+1].offset-Dr),qi=Ie[or].color,fi=Ie[or+1].color;Ir+=F(Math.round((1-Jr)*qi[0]+Jr*fi[0]).toString(16))+F(Math.round((1-Jr)*qi[1]+Jr*fi[1]).toString(16))+F(Math.round((1-Jr)*qi[2]+Jr*fi[2]).toString(16))}return Ir.trim()})(g.colors,E),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+E+"]"}),ce.push({key:"BitsPerSample",value:"8"}),ce.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ce.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Se({data:ie,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Z}),W("endobj"),g.objectNumber=pr(),W("<< /ShadingType "+g.type),W("/ColorSpace /DeviceRGB");var Le="/Coords ["+z(parseFloat(g.coords[0]))+" "+z(parseFloat(g.coords[1]))+" ";g.type===2?Le+=z(parseFloat(g.coords[2]))+" "+z(parseFloat(g.coords[3])):Le+=z(parseFloat(g.coords[2]))+" "+z(parseFloat(g.coords[3]))+" "+z(parseFloat(g.coords[4]))+" "+z(parseFloat(g.coords[5])),W(Le+="]"),g.matrix&&W("/Matrix ["+g.matrix.toString()+"]"),W("/Function "+Z+" 0 R"),W("/Extend [true true]"),W(">>"),W("endobj")},$e=function(g,E){var Z=kr(),ie=pr();E.push({resourcesOid:Z,objectOid:ie}),g.objectNumber=ie;var ce=[];ce.push({key:"Type",value:"/Pattern"}),ce.push({key:"PatternType",value:"1"}),ce.push({key:"PaintType",value:"1"}),ce.push({key:"TilingType",value:"1"}),ce.push({key:"BBox",value:"["+g.boundingBox.map(z).join(" ")+"]"}),ce.push({key:"XStep",value:z(g.xStep)}),ce.push({key:"YStep",value:z(g.yStep)}),ce.push({key:"Resources",value:Z+" 0 R"}),g.matrix&&ce.push({key:"Matrix",value:"["+g.matrix.toString()+"]"}),Se({data:g.stream,additionalKeyValues:ce,objectId:g.objectNumber}),W("endobj")},We=function(g){for(var E in g.objectNumber=pr(),W("<<"),g)switch(E){case"opacity":W("/ca "+S(g[E]));break;case"stroke-opacity":W("/CA "+S(g[E]))}W(">>"),W("endobj")},Ke=function(g){C(g.resourcesOid,!0),W("<<"),W("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var E in W("/Font <<"),Tt)Tt.hasOwnProperty(E)&&(p===!1||p===!0&&v.hasOwnProperty(E))&&W("/"+E+" "+Tt[E].objectNumber+" 0 R");W(">>")})(),(function(){if(Object.keys(ct).length>0){for(var E in W("/Shading <<"),ct)ct.hasOwnProperty(E)&&ct[E]instanceof $a&&ct[E].objectNumber>=0&&W("/"+E+" "+ct[E].objectNumber+" 0 R");Wt.publish("putShadingPatternDict"),W(">>")}})(),(function(E){if(Object.keys(ct).length>0){for(var Z in W("/Pattern <<"),ct)ct.hasOwnProperty(Z)&&ct[Z]instanceof c.TilingPattern&&ct[Z].objectNumber>=0&&ct[Z].objectNumber<E&&W("/"+Z+" "+ct[Z].objectNumber+" 0 R");Wt.publish("putTilingPatternDict"),W(">>")}})(g.objectOid),(function(){if(Object.keys(pt).length>0){var E;for(E in W("/ExtGState <<"),pt)pt.hasOwnProperty(E)&&pt[E].objectNumber>=0&&W("/"+E+" "+pt[E].objectNumber+" 0 R");Wt.publish("putGStateDict"),W(">>")}})(),(function(){for(var E in W("/XObject <<"),Vr)Vr.hasOwnProperty(E)&&Vr[E].objectNumber>=0&&W("/"+E+" "+Vr[E].objectNumber+" 0 R");Wt.publish("putXobjectDict"),W(">>")})(),W(">>"),W("endobj")},vt=function(g){Nt[g.fontName]=Nt[g.fontName]||{},Nt[g.fontName][g.fontStyle]=g.id},er=function(g,E,Z,ie,ce){var Le={id:"F"+(Object.keys(Tt).length+1).toString(10),postScriptName:g,fontName:E,fontStyle:Z,encoding:ie,isStandardFont:ce||!1,metadata:{}};return Wt.publish("addFont",{font:Le,instance:this}),Tt[Le.id]=Le,vt(Le),Le.id},Bt=c.__private__.pdfEscape=c.pdfEscape=function(g,E){return(function(Z,ie){var ce,Le,Ie,tt,ot,_t,Lt,jt,mr;if(Ie=(ie=ie||{}).sourceEncoding||"Unicode",ot=ie.outputEncoding,(ie.autoencode||ot)&&Tt[rt].metadata&&Tt[rt].metadata[Ie]&&Tt[rt].metadata[Ie].encoding&&(tt=Tt[rt].metadata[Ie].encoding,!ot&&Tt[rt].encoding&&(ot=Tt[rt].encoding),!ot&&tt.codePages&&(ot=tt.codePages[0]),typeof ot=="string"&&(ot=tt[ot]),ot)){for(Lt=!1,_t=[],ce=0,Le=Z.length;ce<Le;ce++)(jt=ot[Z.charCodeAt(ce)])?_t.push(String.fromCharCode(jt)):_t.push(Z[ce]),_t[ce].charCodeAt(0)>>8&&(Lt=!0);Z=_t.join("")}for(ce=Z.length;Lt===void 0&&ce!==0;)Z.charCodeAt(ce-1)>>8&&(Lt=!0),ce--;if(!Lt)return Z;for(_t=ie.noBOM?[]:[254,255],ce=0,Le=Z.length;ce<Le;ce++){if((mr=(jt=Z.charCodeAt(ce))>>8)>>8)throw new Error("Character at position "+ce+" of string '"+Z+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");_t.push(mr),_t.push(jt-(mr<<8))}return String.fromCharCode.apply(void 0,_t)})(g,E).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},xr=c.__private__.beginPage=function(g){Fe[++Ot]=[],dt[Ot]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(g[0]),topRightY:Number(g[1])}},bi(Ot),ze(Fe[L])},yi=function(g,E){var Z,ie,ce;switch(r=E||r,typeof g=="string"&&(Z=A(g.toLowerCase()),Array.isArray(Z)&&(ie=Z[0],ce=Z[1])),Array.isArray(g)&&(ie=g[0]*yt,ce=g[1]*yt),isNaN(ie)&&(ie=i[0],ce=i[1]),(ie>14400||ce>14400)&&(ir.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ie=Math.min(14400,ie),ce=Math.min(14400,ce)),i=[ie,ce],r.substr(0,1)){case"l":ce>ie&&(i=[ce,ie]);break;case"p":ie>ce&&(i=[ce,ie])}xr(i),bt(Ks),W(gs),Js!==0&&W(Js+" J"),Zs!==0&&W(Zs+" j"),Wt.publish("addPage",{pageNumber:Ot})},si=function(g){g>0&&g<=Ot&&(Fe.splice(g,1),dt.splice(g,1),Ot--,L>Ot&&(L=Ot),this.setPage(L))},bi=function(g){g>0&&g<=Ot&&(L=g)},Xn=c.__private__.getNumberOfPages=c.getNumberOfPages=function(){return Fe.length-1},fa=function(g,E,Z){var ie,ce=void 0;return Z=Z||{},g=g!==void 0?g:Tt[rt].fontName,E=E!==void 0?E:Tt[rt].fontStyle,ie=g.toLowerCase(),Nt[ie]!==void 0&&Nt[ie][E]!==void 0?ce=Nt[ie][E]:Nt[g]!==void 0&&Nt[g][E]!==void 0?ce=Nt[g][E]:Z.disableWarning===!1&&ir.warn("Unable to look up font label for font '"+g+"', '"+E+"'. Refer to getFontList() for available fonts."),ce||Z.noFallback||(ce=Nt.times[E])==null&&(ce=Nt.times.normal),ce},Pr=c.__private__.putInfo=function(){var g=pr(),E=function(ie){return ie};for(var Z in u!==null&&(E=Ur.encryptor(g,0)),W("<<"),W("/Producer ("+Bt(E("jsPDF "+ht.version))+")"),At)At.hasOwnProperty(Z)&&At[Z]&&W("/"+Z.substr(0,1).toUpperCase()+Z.substr(1)+" ("+Bt(E(At[Z]))+")");W("/CreationDate ("+Bt(E(he))+")"),W(">>"),W("endobj")},cs=c.__private__.putCatalog=function(g){var E=(g=g||{}).rootDictionaryObjId||U;switch(pr(),W("<<"),W("/Type /Catalog"),W("/Pages "+E+" 0 R"),st||(st="fullwidth"),st){case"fullwidth":W("/OpenAction [3 0 R /FitH null]");break;case"fullheight":W("/OpenAction [3 0 R /FitV null]");break;case"fullpage":W("/OpenAction [3 0 R /Fit]");break;case"original":W("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Z=""+st;Z.substr(Z.length-1)==="%"&&(st=parseInt(st)/100),typeof st=="number"&&W("/OpenAction [3 0 R /XYZ null null "+S(st)+"]")}switch(Ct||(Ct="continuous"),Ct){case"continuous":W("/PageLayout /OneColumn");break;case"single":W("/PageLayout /SinglePage");break;case"two":case"twoleft":W("/PageLayout /TwoColumnLeft");break;case"tworight":W("/PageLayout /TwoColumnRight")}ft&&W("/PageMode /"+ft),Wt.publish("putCatalog"),W(">>"),W("endobj")},Lf=c.__private__.putTrailer=function(){W("trailer"),W("<<"),W("/Size "+(q+1)),W("/Root "+q+" 0 R"),W("/Info "+(q-1)+" 0 R"),u!==null&&W("/Encrypt "+Ur.oid+" 0 R"),W("/ID [ <"+be+"> <"+be+"> ]"),W(">>")},Or=c.__private__.putHeader=function(){W("%PDF-"+w),W("%ºß¬à")},Ko=c.__private__.putXRef=function(){var g="0000000000";W("xref"),W("0 "+(q+1)),W("0000000000 65535 f ");for(var E=1;E<=q;E++)typeof ne[E]=="function"?W((g+ne[E]()).slice(-10)+" 00000 n "):ne[E]!==void 0?W((g+ne[E]).slice(-10)+" 00000 n "):W("0000000000 00000 n ")},Ai=c.__private__.buildDocument=function(){var g;q=0,se=0,oe=[],ne=[],fe=[],U=kr(),H=kr(),ze(oe),Wt.publish("buildDocument"),Or(),me(),(function(){Wt.publish("putAdditionalObjects");for(var Z=0;Z<fe.length;Z++){var ie=fe[Z];C(ie.objId,!0),W(ie.content),W("endobj")}Wt.publish("postPutAdditionalObjects")})(),g=[],(function(){for(var Z in Tt)Tt.hasOwnProperty(Z)&&(p===!1||p===!0&&v.hasOwnProperty(Z))&&_e(Tt[Z])})(),(function(){var Z;for(Z in pt)pt.hasOwnProperty(Z)&&We(pt[Z])})(),(function(){for(var Z in Vr)Vr.hasOwnProperty(Z)&&Me(Vr[Z])})(),(function(Z){var ie;for(ie in ct)ct.hasOwnProperty(ie)&&(ct[ie]instanceof $a?Ge(ct[ie]):ct[ie]instanceof ks&&$e(ct[ie],Z))})(g),Wt.publish("putResources"),g.forEach(Ke),Ke({resourcesOid:H,objectOid:Number.MAX_SAFE_INTEGER}),Wt.publish("postPutResources"),u!==null&&(Ur.oid=pr(),W("<<"),W("/Filter /Standard"),W("/V "+Ur.v),W("/R "+Ur.r),W("/U <"+Ur.toHexString(Ur.U)+">"),W("/O <"+Ur.toHexString(Ur.O)+">"),W("/P "+Ur.P),W(">>"),W("endobj")),Pr(),cs();var E=se;return Ko(),Lf(),W("startxref"),W(""+E),W("%%EOF"),ze(Fe[L]),oe.join(`
7
- `)},ds=c.__private__.getBlob=function(g){return new Blob([Be(g)],{type:"application/pdf"})},$o=c.output=c.__private__.output=(Sn=function(g,E){switch(typeof(E=E||{})=="string"?E={filename:E}:E.filename=E.filename||"generated.pdf",g){case void 0:return Ai();case"save":c.save(E.filename);break;case"arraybuffer":return Be(Ai());case"blob":return ds(Ai());case"bloburi":case"bloburl":if(xt.URL!==void 0&&typeof xt.URL.createObjectURL=="function")return xt.URL&&xt.URL.createObjectURL(ds(Ai()))||void 0;ir.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Z="",ie=Ai();try{Z=ic(ie)}catch{Z=ic(unescape(encodeURIComponent(ie)))}return"data:application/pdf;filename="+E.filename+";base64,"+Z;case"pdfobjectnewwindow":if(Object.prototype.toString.call(xt)==="[object Window]"){var ce="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Le=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';E.pdfObjectUrl&&(ce=E.pdfObjectUrl,Le="");var Ie='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ce+'"'+Le+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(E)+");<\/script></body></html>",tt=xt.open();return tt!==null&&tt.document.write(Ie),tt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(xt)==="[object Window]"){var ot='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(E.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+E.filename+'" width="500px" height="400px" /></body></html>',_t=xt.open();if(_t!==null){_t.document.write(ot);var Lt=this;_t.document.documentElement.querySelector("#pdfViewer").onload=function(){_t.document.title=E.filename,_t.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Lt.output("bloburl"))}}return _t}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(xt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var jt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",E)+'"></iframe></body></html>',mr=xt.open();if(mr!==null&&(mr.document.write(jt),mr.document.title=E.filename),mr||typeof safari>"u")return mr;break;case"datauri":case"dataurl":return xt.document.location.href=this.output("datauristring",E);default:return null}},Sn.foo=function(){try{return Sn.apply(this,arguments)}catch(Z){var g=Z.stack||"";~g.indexOf(" at ")&&(g=g.split(" at ")[1]);var E="Error in function "+g.split(`
8
- `)[0].split("<")[0]+": "+Z.message;if(!xt.console)throw new Error(E);xt.console.error(E,Z),xt.alert&&alert(E)}},Sn.foo.bar=Sn,Sn.foo),Yn=function(g){return Array.isArray(Di)===!0&&Di.indexOf(g)>-1};switch(n){case"pt":yt=1;break;case"mm":yt=72/25.4;break;case"cm":yt=72/2.54;break;case"in":yt=72;break;case"px":yt=Yn("px_scaling")==1?.75:96/72;break;case"pc":case"em":yt=12;break;case"ex":yt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);yt=n}var Ur=null;ke(),pe();var Ri=c.__private__.getPageInfo=c.getPageInfo=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:dt[g].objId,pageNumber:g,pageContext:dt[g]}},Jo=c.__private__.getPageInfoByObjId=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var E in dt)if(dt[E].objId===g)break;return Ri(E)},Ff=c.__private__.getCurrentPageInfo=c.getCurrentPageInfo=function(){return{objId:dt[L].objId,pageNumber:L,pageContext:dt[L]}};c.addPage=function(){return yi.apply(this,arguments),this},c.setPage=function(){return bi.apply(this,arguments),ze.call(this,Fe[L]),this},c.insertPage=function(g){return this.addPage(),this.movePage(L,g),this},c.movePage=function(g,E){var Z,ie;if(g>E){Z=Fe[g],ie=dt[g];for(var ce=g;ce>E;ce--)Fe[ce]=Fe[ce-1],dt[ce]=dt[ce-1];Fe[E]=Z,dt[E]=ie,this.setPage(E)}else if(g<E){Z=Fe[g],ie=dt[g];for(var Le=g;Le<E;Le++)Fe[Le]=Fe[Le+1],dt[Le]=dt[Le+1];Fe[E]=Z,dt[E]=ie,this.setPage(E)}return this},c.deletePage=function(){return si.apply(this,arguments),this},c.__private__.text=c.text=function(g,E,Z,ie,ce){var Le,Ie,tt,ot,_t,Lt,jt,mr,Ir,or=(ie=ie||{}).scope||this;if(typeof g=="number"&&typeof E=="number"&&(typeof Z=="string"||Array.isArray(Z))){var jr=Z;Z=E,E=g,g=jr}if(arguments[3]instanceof gt==0?(tt=arguments[4],ot=arguments[5],Vt(jt=arguments[3])==="object"&&jt!==null||(typeof tt=="string"&&(ot=tt,tt=null),typeof jt=="string"&&(ot=jt,jt=null),typeof jt=="number"&&(tt=jt,jt=null),ie={flags:jt,angle:tt,align:ot})):(k("The transform parameter of text() with a Matrix value"),Ir=ce),isNaN(E)||isNaN(Z)||g==null)throw new Error("Invalid arguments passed to jsPDF.text");if(g.length===0)return or;var Dr,Jr="",qi=typeof ie.lineHeightFactor=="number"?ie.lineHeightFactor:Ra,fi=or.internal.scaleFactor;function zi(Gt){return Gt=Gt.split(" ").join(Array(ie.TabLen||9).join(" ")),Bt(Gt,jt)}function ro(Gt){for(var rr,Er=Gt.concat(),Hr=[],Xi=Er.length;Xi--;)typeof(rr=Er.shift())=="string"?Hr.push(rr):Array.isArray(Gt)&&(rr.length===1||rr[1]===void 0&&rr[2]===void 0)?Hr.push(rr[0]):Hr.push([rr[0],rr[1],rr[2]]);return Hr}function ms(Gt,rr){var Er;if(typeof Gt=="string")Er=rr(Gt)[0];else if(Array.isArray(Gt)){for(var Hr,Xi,co=Gt.concat(),_s=[],f0=co.length;f0--;)typeof(Hr=co.shift())=="string"?_s.push(rr(Hr)[0]):Array.isArray(Hr)&&typeof Hr[0]=="string"&&(Xi=rr(Hr[0],Hr[1],Hr[2]),_s.push([Xi[0],Xi[1],Xi[2]]));Er=_s}return Er}var la=!1,ja=!0;if(typeof g=="string")la=!0;else if(Array.isArray(g)){var Ha=g.concat();Ie=[];for(var ha,Zr=Ha.length;Zr--;)(typeof(ha=Ha.shift())!="string"||Array.isArray(ha)&&typeof ha[0]!="string")&&(ja=!1);la=ja}if(la===!1)throw new Error('Type of text must be string or Array. "'+g+'" is not recognized.');typeof g=="string"&&(g=g.match(/[\r?\n]/)?g.split(/\r\n|\r|\n/g):[g]);var Wa=Pe/or.internal.scaleFactor,qa=Wa*(qi-1);switch(ie.baseline){case"bottom":Z-=qa;break;case"top":Z+=Wa-qa;break;case"hanging":Z+=Wa-2*qa;break;case"middle":Z+=Wa/2-qa}if((Lt=ie.maxWidth||0)>0&&(typeof g=="string"?g=or.splitTextToSize(g,Lt):Object.prototype.toString.call(g)==="[object Array]"&&(g=g.reduce(function(Gt,rr){return Gt.concat(or.splitTextToSize(rr,Lt))},[]))),Le={text:g,x:E,y:Z,options:ie,mutex:{pdfEscape:Bt,activeFontKey:rt,fonts:Tt,activeFontSize:Pe}},Wt.publish("preProcessText",Le),g=Le.text,tt=(ie=Le.options).angle,Ir instanceof gt==0&&tt&&typeof tt=="number"){tt*=Math.PI/180,ie.rotationDirection===0&&(tt=-tt),B===P&&(tt=-tt);var no=Math.cos(tt),io=Math.sin(tt);Ir=new gt(no,io,-io,no,0,0)}else tt&&tt instanceof gt&&(Ir=tt);B!==P||Ir||(Ir=ai),(_t=ie.charSpace||Ui)!==void 0&&(Jr+=z(G(_t))+` Tc
9
- `,this.setCharSpace(this.getCharSpace()||0)),(mr=ie.horizontalScale)!==void 0&&(Jr+=z(100*mr)+` Tz
10
- `),ie.lang;var mn=-1,Gi=ie.renderingMode!==void 0?ie.renderingMode:ie.stroke,xs=or.internal.getCurrentPageInfo().pageContext;switch(Gi){case 0:case!1:case"fill":mn=0;break;case 1:case!0:case"stroke":mn=1;break;case 2:case"fillThenStroke":mn=2;break;case 3:case"invisible":mn=3;break;case 4:case"fillAndAddForClipping":mn=4;break;case 5:case"strokeAndAddPathForClipping":mn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":mn=6;break;case 7:case"addToPathForClipping":mn=7}var s0=xs.usedRenderingMode!==void 0?xs.usedRenderingMode:-1;mn!==-1?Jr+=mn+` Tr
11
- `:s0!==-1&&(Jr+=`0 Tr
12
- `),mn!==-1&&(xs.usedRenderingMode=mn),ot=ie.align||"left";var Kn,za=Pe*qi,ao=or.internal.pageSize.getWidth(),so=Tt[rt];_t=ie.charSpace||Ui,Lt=ie.maxWidth||0,jt=Object.assign({autoencode:!0,noBOM:!0},ie.flags);var ua=[],Ga=function(Gt){return or.getStringUnitWidth(Gt,{font:so,charSpace:_t,fontSize:Pe,doKerning:!1})*Pe/fi};if(Object.prototype.toString.call(g)==="[object Array]"){var kn;Ie=ro(g),ot!=="left"&&(Kn=Ie.map(Ga));var Pn,ca=0;if(ot==="right"){E-=Kn[0],g=[],Zr=Ie.length;for(var Vi=0;Vi<Zr;Vi++)Vi===0?(Pn=Bi(E),kn=Mi(Z)):(Pn=G(ca-Kn[Vi]),kn=-za),g.push([Ie[Vi],Pn,kn]),ca=Kn[Vi]}else if(ot==="center"){E-=Kn[0]/2,g=[],Zr=Ie.length;for(var da=0;da<Zr;da++)da===0?(Pn=Bi(E),kn=Mi(Z)):(Pn=G((ca-Kn[da])/2),kn=-za),g.push([Ie[da],Pn,kn]),ca=Kn[da]}else if(ot==="left"){g=[],Zr=Ie.length;for(var oo=0;oo<Zr;oo++)g.push(Ie[oo])}else if(ot==="justify"&&so.encoding==="Identity-H"){g=[],Zr=Ie.length,Lt=Lt!==0?Lt:ao;for(var ws=0,Sr=0;Sr<Zr;Sr++)if(kn=Sr===0?Mi(Z):-za,Pn=Sr===0?Bi(E):ws,Sr<Zr-1){var o0=G((Lt-Kn[Sr])/(Ie[Sr].split(" ").length-1)),Ei=Ie[Sr].split(" ");g.push([Ei[0]+" ",Pn,kn]),ws=0;for(var Ti=1;Ti<Ei.length;Ti++){var fo=(Ga(Ei[Ti-1]+" "+Ei[Ti])-Ga(Ei[Ti]))*fi+o0;Ti==Ei.length-1?g.push([Ei[Ti],fo,0]):g.push([Ei[Ti]+" ",fo,0]),ws-=fo}}else g.push([Ie[Sr],Pn,kn]);g.push(["",ws,0])}else{if(ot!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(g=[],Zr=Ie.length,Lt=Lt!==0?Lt:ao,Sr=0;Sr<Zr;Sr++){kn=Sr===0?Mi(Z):-za,Pn=Sr===0?Bi(E):0;var lo=Ie[Sr].split(" ").length-1,ho=lo>0?(Lt-Kn[Sr])/lo:0;Sr<Zr-1?ua.push(z(G(ho))):ua.push(0),g.push([Ie[Sr],Pn,kn])}}}(typeof ie.R2L=="boolean"?ie.R2L:ut)===!0&&(g=ms(g,function(Gt,rr,Er){return[Gt.split("").reverse().join(""),rr,Er]})),Le={text:g,x:E,y:Z,options:ie,mutex:{pdfEscape:Bt,activeFontKey:rt,fonts:Tt,activeFontSize:Pe}},Wt.publish("postProcessText",Le),g=Le.text,Dr=Le.mutex.isHex||!1;var uo=Tt[rt].encoding;uo!=="WinAnsiEncoding"&&uo!=="StandardEncoding"||(g=ms(g,function(Gt,rr,Er){return[zi(Gt),rr,Er]})),Ie=ro(g),g=[];for(var pa,ga,va,Va=Array.isArray(Ie[0])?1:0,ma="",Xa=function(Gt,rr,Er){var Hr="";return Er instanceof gt?(Er=typeof ie.angle=="number"?ii(Er,new gt(1,0,0,1,Gt,rr)):ii(new gt(1,0,0,1,Gt,rr),Er),B===P&&(Er=ii(new gt(1,0,0,-1,0,0),Er)),Hr=Er.join(" ")+` Tm
13
- `):Hr=z(Gt)+" "+z(rr)+` Td
14
- `,Hr},$n=0;$n<Ie.length;$n++){switch(ma="",Va){case 1:va=(Dr?"<":"(")+Ie[$n][0]+(Dr?">":")"),pa=parseFloat(Ie[$n][1]),ga=parseFloat(Ie[$n][2]);break;case 0:va=(Dr?"<":"(")+Ie[$n]+(Dr?">":")"),pa=Bi(E),ga=Mi(Z)}ua!==void 0&&ua[$n]!==void 0&&(ma=ua[$n]+` Tw
15
- `),$n===0?g.push(ma+Xa(pa,ga,Ir)+va):Va===0?g.push(ma+va):Va===1&&g.push(ma+Xa(pa,ga,Ir)+va)}g=Va===0?g.join(` Tj
16
- T* `):g.join(` Tj
17
- `),g+=` Tj
18
- `;var Ni=`BT
19
- /`;return Ni+=rt+" "+Pe+` Tf
20
- `,Ni+=z(Pe*qi)+` TL
21
- `,Ni+=Ba+`
22
- `,Ni+=Jr,Ni+=g,W(Ni+="ET"),v[rt]=!0,or};var Cf=c.__private__.clip=c.clip=function(g){return W(g==="evenodd"?"W*":"W"),this};c.clipEvenOdd=function(){return Cf("evenodd")},c.__private__.discardPath=c.discardPath=function(){return W("n"),this};var Si=c.__private__.isValidStyle=function(g){var E=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(g)!==-1&&(E=!0),E};c.__private__.setDefaultPathOperation=c.setDefaultPathOperation=function(g){return Si(g)&&(l=g),this};var Zo=c.__private__.getStyle=c.getStyle=function(g){var E=l;switch(g){case"D":case"S":E="S";break;case"F":E="f";break;case"FD":case"DF":E="B";break;case"f":case"f*":case"B":case"B*":E=g}return E},Qo=c.close=function(){return W("h"),this};c.stroke=function(){return W("S"),this},c.fill=function(g){return ps("f",g),this},c.fillEvenOdd=function(g){return ps("f*",g),this},c.fillStroke=function(g){return ps("B",g),this},c.fillStrokeEvenOdd=function(g){return ps("B*",g),this};var ps=function(g,E){Vt(E)==="object"?Pf(E,g):W(g)},Da=function(g){g===null||B===P&&g===void 0||(g=Zo(g),W(g))};function kf(g,E,Z,ie,ce){var Le=new ks(E||this.boundingBox,Z||this.xStep,ie||this.yStep,this.gState,ce||this.matrix);Le.stream=this.stream;var Ie=g+"$$"+this.cloneIndex+++"$$";return ln(Ie,Le),Le}var Pf=function(g,E){var Z=Xt[g.key],ie=ct[Z];if(ie instanceof $a)W("q"),W(Of(E)),ie.gState&&c.setGState(ie.gState),W(g.matrix.toString()+" cm"),W("/"+Z+" sh"),W("Q");else if(ie instanceof ks){var ce=new gt(1,0,0,-1,0,Ua());g.matrix&&(ce=ce.multiply(g.matrix||ai),Z=kf.call(ie,g.key,g.boundingBox,g.xStep,g.yStep,ce).id),W("q"),W("/Pattern cs"),W("/"+Z+" scn"),ie.gState&&c.setGState(ie.gState),W(E),W("Q")}},Of=function(g){switch(g){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"}},Ys=c.moveTo=function(g,E){return W(z(G(g))+" "+z(te(E))+" m"),this},e0=c.lineTo=function(g,E){return W(z(G(g))+" "+z(te(E))+" l"),this},oi=c.curveTo=function(g,E,Z,ie,ce,Le){return W([z(G(g)),z(te(E)),z(G(Z)),z(te(ie)),z(G(ce)),z(te(Le)),"c"].join(" ")),this};c.__private__.line=c.line=function(g,E,Z,ie,ce){if(isNaN(g)||isNaN(E)||isNaN(Z)||isNaN(ie)||!Si(ce))throw new Error("Invalid arguments passed to jsPDF.line");return B===D?this.lines([[Z-g,ie-E]],g,E,[1,1],ce||"S"):this.lines([[Z-g,ie-E]],g,E,[1,1]).stroke()},c.__private__.lines=c.lines=function(g,E,Z,ie,ce,Le){var Ie,tt,ot,_t,Lt,jt,mr,Ir,or,jr,Dr,Jr;if(typeof g=="number"&&(Jr=Z,Z=E,E=g,g=Jr),ie=ie||[1,1],Le=Le||!1,isNaN(E)||isNaN(Z)||!Array.isArray(g)||!Array.isArray(ie)||!Si(ce)||typeof Le!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ys(E,Z),Ie=ie[0],tt=ie[1],_t=g.length,jr=E,Dr=Z,ot=0;ot<_t;ot++)(Lt=g[ot]).length===2?(jr=Lt[0]*Ie+jr,Dr=Lt[1]*tt+Dr,e0(jr,Dr)):(jt=Lt[0]*Ie+jr,mr=Lt[1]*tt+Dr,Ir=Lt[2]*Ie+jr,or=Lt[3]*tt+Dr,jr=Lt[4]*Ie+jr,Dr=Lt[5]*tt+Dr,oi(jt,mr,Ir,or,jr,Dr));return Le&&Qo(),Da(ce),this},c.path=function(g){for(var E=0;E<g.length;E++){var Z=g[E],ie=Z.c;switch(Z.op){case"m":Ys(ie[0],ie[1]);break;case"l":e0(ie[0],ie[1]);break;case"c":oi.apply(this,ie);break;case"h":Qo()}}return this},c.__private__.rect=c.rect=function(g,E,Z,ie,ce){if(isNaN(g)||isNaN(E)||isNaN(Z)||isNaN(ie)||!Si(ce))throw new Error("Invalid arguments passed to jsPDF.rect");return B===D&&(ie=-ie),W([z(G(g)),z(te(E)),z(G(Z)),z(G(ie)),"re"].join(" ")),Da(ce),this},c.__private__.triangle=c.triangle=function(g,E,Z,ie,ce,Le,Ie){if(isNaN(g)||isNaN(E)||isNaN(Z)||isNaN(ie)||isNaN(ce)||isNaN(Le)||!Si(Ie))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Z-g,ie-E],[ce-Z,Le-ie],[g-ce,E-Le]],g,E,[1,1],Ie,!0),this},c.__private__.roundedRect=c.roundedRect=function(g,E,Z,ie,ce,Le,Ie){if(isNaN(g)||isNaN(E)||isNaN(Z)||isNaN(ie)||isNaN(ce)||isNaN(Le)||!Si(Ie))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var tt=4/3*(Math.SQRT2-1);return ce=Math.min(ce,.5*Z),Le=Math.min(Le,.5*ie),this.lines([[Z-2*ce,0],[ce*tt,0,ce,Le-Le*tt,ce,Le],[0,ie-2*Le],[0,Le*tt,-ce*tt,Le,-ce,Le],[2*ce-Z,0],[-ce*tt,0,-ce,-Le*tt,-ce,-Le],[0,2*Le-ie],[0,-Le*tt,ce*tt,-Le,ce,-Le]],g+ce,E,[1,1],Ie,!0),this},c.__private__.ellipse=c.ellipse=function(g,E,Z,ie,ce){if(isNaN(g)||isNaN(E)||isNaN(Z)||isNaN(ie)||!Si(ce))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Le=4/3*(Math.SQRT2-1)*Z,Ie=4/3*(Math.SQRT2-1)*ie;return Ys(g+Z,E),oi(g+Z,E-Ie,g+Le,E-ie,g,E-ie),oi(g-Le,E-ie,g-Z,E-Ie,g-Z,E),oi(g-Z,E+Ie,g-Le,E+ie,g,E+ie),oi(g+Le,E+ie,g+Z,E+Ie,g+Z,E),Da(ce),this},c.__private__.circle=c.circle=function(g,E,Z,ie){if(isNaN(g)||isNaN(E)||isNaN(Z)||!Si(ie))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(g,E,Z,Z,ie)},c.setFont=function(g,E,Z){return Z&&(E=V(E,Z)),rt=fa(g,E,{disableWarning:!1}),this};var If=c.__private__.getFont=c.getFont=function(){return Tt[fa.apply(c,arguments)]};c.__private__.getFontList=c.getFontList=function(){var g,E,Z={};for(g in Nt)if(Nt.hasOwnProperty(g))for(E in Z[g]=[],Nt[g])Nt[g].hasOwnProperty(E)&&Z[g].push(E);return Z},c.addFont=function(g,E,Z,ie,ce){var Le=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Le.indexOf(arguments[3])!==-1?ce=arguments[3]:arguments[3]&&Le.indexOf(arguments[3])==-1&&(Z=V(Z,ie)),er.call(this,g,E,Z,ce=ce||"Identity-H")};var Ra,Ks=t.lineWidth||.200025,Df=c.__private__.getLineWidth=c.getLineWidth=function(){return Ks},bt=c.__private__.setLineWidth=c.setLineWidth=function(g){return Ks=g,W(z(G(g))+" w"),this};c.__private__.setLineDash=ht.API.setLineDash=ht.API.setLineDashPattern=function(g,E){if(g=g||[],E=E||0,isNaN(E)||!Array.isArray(g))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return g=g.map(function(Z){return z(G(Z))}).join(" "),E=z(G(E)),W("["+g+"] "+E+" d"),this};var Rf=c.__private__.getLineHeight=c.getLineHeight=function(){return Pe*Ra};c.__private__.getLineHeight=c.getLineHeight=function(){return Pe*Ra};var Bf=c.__private__.setLineHeightFactor=c.setLineHeightFactor=function(g){return typeof(g=g||1.15)=="number"&&(Ra=g),this},Mf=c.__private__.getLineHeightFactor=c.getLineHeightFactor=function(){return Ra};Bf(t.lineHeight);var Bi=c.__private__.getHorizontalCoordinate=function(g){return G(g)},Mi=c.__private__.getVerticalCoordinate=function(g){return B===P?g:dt[L].mediaBox.topRightY-dt[L].mediaBox.bottomLeftY-G(g)},Uf=c.__private__.getHorizontalCoordinateString=c.getHorizontalCoordinateString=function(g){return z(Bi(g))},jf=c.__private__.getVerticalCoordinateString=c.getVerticalCoordinateString=function(g){return z(Mi(g))},gs=t.strokeColor||"0 G";c.__private__.getStrokeColor=c.getDrawColor=function(){return J(gs)},c.__private__.setStrokeColor=c.setDrawColor=function(g,E,Z,ie){return gs=Q({ch1:g,ch2:E,ch3:Z,ch4:ie,pdfColorType:"draw",precision:2}),W(gs),this};var $s=t.fillColor||"0 g";c.__private__.getFillColor=c.getFillColor=function(){return J($s)},c.__private__.setFillColor=c.setFillColor=function(g,E,Z,ie){return $s=Q({ch1:g,ch2:E,ch3:Z,ch4:ie,pdfColorType:"fill",precision:2}),W($s),this};var Ba=t.textColor||"0 g",Hf=c.__private__.getTextColor=c.getTextColor=function(){return J(Ba)};c.__private__.setTextColor=c.setTextColor=function(g,E,Z,ie){return Ba=Q({ch1:g,ch2:E,ch3:Z,ch4:ie,pdfColorType:"text",precision:3}),this};var Ui=t.charSpace,Wf=c.__private__.getCharSpace=c.getCharSpace=function(){return parseFloat(Ui||0)};c.__private__.setCharSpace=c.setCharSpace=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ui=g,this};var Js=0;c.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},c.__private__.setLineCap=c.setLineCap=function(g){var E=c.CapJoinStyles[g];if(E===void 0)throw new Error("Line cap style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Js=E,W(E+" J"),this};var Zs=0;c.__private__.setLineJoin=c.setLineJoin=function(g){var E=c.CapJoinStyles[g];if(E===void 0)throw new Error("Line join style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Zs=E,W(E+" j"),this},c.__private__.setLineMiterLimit=c.__private__.setMiterLimit=c.setLineMiterLimit=c.setMiterLimit=function(g){if(g=g||0,isNaN(g))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return W(z(G(g))+" M"),this},c.GState=J0,c.setGState=function(g){(g=typeof g=="string"?pt[wt[g]]:t0(null,g)).equals(sr)||(W("/"+g.id+" gs"),sr=g)};var t0=function(g,E){if(!g||!wt[g]){var Z=!1;for(var ie in pt)if(pt.hasOwnProperty(ie)&&pt[ie].equals(E)){Z=!0;break}if(Z)E=pt[ie];else{var ce="GS"+(Object.keys(pt).length+1).toString(10);pt[ce]=E,E.id=ce}return g&&(wt[g]=E.id),Wt.publish("addGState",E),E}};c.addGState=function(g,E){return t0(g,E),this},c.saveGraphicsState=function(){return W("q"),ar.push({key:rt,size:Pe,color:Ba}),this},c.restoreGraphicsState=function(){W("Q");var g=ar.pop();return rt=g.key,Pe=g.size,Ba=g.color,sr=null,this},c.setCurrentTransformationMatrix=function(g){return W(g.toString()+" cm"),this},c.comment=function(g){return W("#"+g),this};var ji=function(g,E){var Z=g||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Z},set:function(Le){isNaN(Le)||(Z=parseFloat(Le))}});var ie=E||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ie},set:function(Le){isNaN(Le)||(ie=parseFloat(Le))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Le){ce=Le.toString()}}),this},Qs=function(g,E,Z,ie){ji.call(this,g,E),this.type="rect";var ce=Z||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ce},set:function(Ie){isNaN(Ie)||(ce=parseFloat(Ie))}});var Le=ie||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Le},set:function(Ie){isNaN(Ie)||(Le=parseFloat(Ie))}}),this},vs=function(){this.page=Ot,this.currentPage=L,this.pages=Fe.slice(0),this.pagesContext=dt.slice(0),this.x=at,this.y=dr,this.matrix=Rt,this.width=to(L),this.height=n0(L),this.outputDestination=qe,this.id="",this.objectNumber=-1};vs.prototype.restore=function(){Ot=this.page,L=this.currentPage,dt=this.pagesContext,Fe=this.pages,at=this.x,dr=this.y,Rt=this.matrix,r0(L,this.width),Hi(L,this.height),qe=this.outputDestination};var eo=function(g,E,Z,ie,ce){Vn.push(new vs),Ot=L=0,Fe=[],at=g,dr=E,Rt=ce,xr([Z,ie])};for(var Ma in c.beginFormObject=function(g,E,Z,ie,ce){return eo(g,E,Z,ie,ce),this},c.endFormObject=function(g){return(function(E){if(ni[E])Vn.pop().restore();else{var Z=new vs,ie="Xo"+(Object.keys(Vr).length+1).toString(10);Z.id=ie,ni[E]=ie,Vr[ie]=Z,Wt.publish("addFormObject",Z),Vn.pop().restore()}})(g),this},c.doFormObject=function(g,E){var Z=Vr[ni[g]];return W("q"),W(E.toString()+" cm"),W("/"+Z.id+" Do"),W("Q"),this},c.getFormObject=function(g){var E=Vr[ni[g]];return{x:E.x,y:E.y,width:E.width,height:E.height,matrix:E.matrix}},c.save=function(g,E){return g=g||"generated.pdf",(E=E||{}).returnPromise=E.returnPromise||!1,E.returnPromise===!1?(Ka(ds(Ai()),g),typeof Ka.unload=="function"&&xt.setTimeout&&setTimeout(Ka.unload,911),this):new Promise(function(Z,ie){try{var ce=Ka(ds(Ai()),g);typeof Ka.unload=="function"&&xt.setTimeout&&setTimeout(Ka.unload,911),Z(ce)}catch(Le){ie(Le.message)}})},ht.API)ht.API.hasOwnProperty(Ma)&&(Ma==="events"&&ht.API.events.length?(function(g,E){var Z,ie,ce;for(ce=E.length-1;ce!==-1;ce--)Z=E[ce][0],ie=E[ce][1],g.subscribe.apply(g,[Z].concat(typeof ie=="function"?[ie]:ie))})(Wt,ht.API.events):c[Ma]=ht.API[Ma]);function to(g){return dt[g].mediaBox.topRightX-dt[g].mediaBox.bottomLeftX}function r0(g,E){dt[g].mediaBox.topRightX=E+dt[g].mediaBox.bottomLeftX}function n0(g){return dt[g].mediaBox.topRightY-dt[g].mediaBox.bottomLeftY}function Hi(g,E){dt[g].mediaBox.topRightY=E+dt[g].mediaBox.bottomLeftY}var Wi=c.getPageWidth=function(g){return to(g=g||L)/yt},i0=c.setPageWidth=function(g,E){r0(g,E*yt)},Ua=c.getPageHeight=function(g){return n0(g=g||L)/yt},a0=c.setPageHeight=function(g,E){Hi(g,E*yt)};return c.internal={pdfEscape:Bt,getStyle:Zo,getFont:If,getFontSize:Je,getCharSpace:Wf,getTextColor:Hf,getLineHeight:Rf,getLineHeightFactor:Mf,getLineWidth:Df,write:je,getHorizontalCoordinate:Bi,getVerticalCoordinate:Mi,getCoordinateString:Uf,getVerticalCoordinateString:jf,collections:{},newObject:pr,newAdditionalObject:K,newObjectDeferred:kr,newObjectDeferredBegin:C,getFilters:ge,putStream:Se,events:Wt,scaleFactor:yt,pageSize:{getWidth:function(){return Wi(L)},setWidth:function(g){i0(L,g)},getHeight:function(){return Ua(L)},setHeight:function(g){a0(L,g)}},encryptionOptions:u,encryption:Ur,getEncryptor:function(g){return u!==null?Ur.encryptor(g,0):function(E){return E}},output:$o,getNumberOfPages:Xn,get pages(){return Fe},out:W,f2:S,f3:I,getPageInfo:Ri,getPageInfoByObjId:Jo,getCurrentPageInfo:Ff,getPDFVersion:m,Point:ji,Rectangle:Qs,Matrix:gt,hasHotfix:Yn},Object.defineProperty(c.internal.pageSize,"width",{get:function(){return Wi(L)},set:function(g){i0(L,g)},enumerable:!0,configurable:!0}),Object.defineProperty(c.internal.pageSize,"height",{get:function(){return Ua(L)},set:function(g){a0(L,g)},enumerable:!0,configurable:!0}),(function(g){for(var E=0,Z=Qe.length;E<Z;E++){var ie=er.call(this,g[E][0],g[E][1],g[E][2],Qe[E][3],!0);p===!1&&(v[ie]=!0);var ce=g[E][0].split("-");vt({id:ie,fontName:ce[0],fontStyle:ce[1]||""})}Wt.publish("addFonts",{fonts:Tt,dictionary:Nt})}).call(c,Qe),rt="F1",yi(i,r),Wt.publish("initialized"),c}Ls.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},Ls.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ls.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},Ls.prototype.processOwnerPassword=function(t,e){return Yl(Xl(e).substr(0,5),t)},Ls.prototype.encryptor=function(t,e){var r=Xl(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(n){return Yl(r,n)}},J0.prototype.equals=function(t){var e,r="id,objectNumber,equals";if(!t||Vt(t)!==Vt(this))return!1;var n=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;n++}for(e in t)t.hasOwnProperty(e)&&r.indexOf(e)<0&&n--;return n===0},ht.API={events:[]},ht.version="3.0.4";var yr=ht.API,fh=1,ss=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},As=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},St=function(t){return t.toFixed(2)},Ea=function(t){return t.toFixed(5)};yr.__acroform__={};var Cn=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},fc=function(t){return t*fh},Fi=function(t){var e=new r2,r=et.internal.getHeight(t)||0,n=et.internal.getWidth(t)||0;return e.BBox=[0,0,Number(St(n)),Number(St(r))],e},tv=yr.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},rv=yr.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},nv=yr.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},Lr=yr.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return nv(t,e-1)},Fr=yr.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return tv(t,e-1)},Cr=yr.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return rv(t,e-1)},iv=yr.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=t[0],a=t[1],s=t[2],o=t[3],f={};return f.lowerLeft_X=r(i)||0,f.lowerLeft_Y=n(a+o)||0,f.upperRight_X=r(i+s)||0,f.upperRight_Y=n(a)||0,[Number(St(f.lowerLeft_X)),Number(St(f.lowerLeft_Y)),Number(St(f.upperRight_X)),Number(St(f.upperRight_Y))]},av=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=Kl(t,r),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+St(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=Fi(t);return a.scope=t.scope,a.stream=e.join(`
23
- `),a}},Kl=function(t,e){var r=t.fontSize===0?t.maxFontSize:t.fontSize,n={text:"",fontSize:""},i=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map(function(S){return S.split(`
24
- `)}):i.map(function(S){return[S]});var a=r,s=et.internal.getHeight(t)||0;s=s<0?-s:s;var o=et.internal.getWidth(t)||0;o=o<0?-o:o;var f=function(S,I,G){if(S+1<i.length){var te=I+" "+i[S+1][0];return P0(te,t,G).width<=o-4}return!1};a++;e:for(;a>0;){e="",a--;var l,u,p=P0("3",t,a).height,v=t.multiline?s-a:(s-p)/2,c=v+=2,w=0,m=0,y=0;if(a<=0){e=`(...) Tj
25
- `,e+="% Width of Text: "+P0(e,t,a=12).width+", FieldWidth:"+o+`
26
- `;break}for(var A="",D=0,P=0;P<i.length;P++)if(i.hasOwnProperty(P)){var B=!1;if(i[P].length!==1&&y!==i[P].length-1){if((p+2)*(D+2)+2>s)continue e;A+=i[P][y],B=!0,m=P,P--}else{A=(A+=i[P][y]+" ").substr(A.length-1)==" "?A.substr(0,A.length-1):A;var re=parseInt(P),ue=f(re,A,a),V=P>=i.length-1;if(ue&&!V){A+=" ",y=0;continue}if(ue||V){if(V)m=re;else if(t.multiline&&(p+2)*(D+2)+2>s)continue e}else{if(!t.multiline||(p+2)*(D+2)+2>s)continue e;m=re}}for(var z="",k=w;k<=m;k++){var ee=i[k];if(t.multiline){if(k===m){z+=ee[y]+" ",y=(y+1)%ee.length;continue}if(k===w){z+=ee[ee.length-1]+" ";continue}}z+=ee[0]+" "}switch(z=z.substr(z.length-1)==" "?z.substr(0,z.length-1):z,u=P0(z,t,a).width,t.textAlign){case"right":l=o-u-2;break;case"center":l=(o-u)/2;break;default:l=2}e+=St(l)+" "+St(c)+` Td
27
- `,e+="("+ss(z)+`) Tj
28
- `,e+=-St(l)+` 0 Td
29
- `,c=-(a+2),u=0,w=B?m:m+1,D++,A=""}break}return n.text=e,n.fontSize=a,n},P0=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},sv={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ov=function(t,e){var r={type:"reference",object:t};e.internal.getPageInfo(t.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},fv=function(t,e){if(e.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(wi.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(sv)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");fh=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new n2,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&ov(a,r)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(r){(function(n,i){var a=!n;for(var s in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(s)){var o=n[s],f=[],l=o.Rect;if(o.Rect&&(o.Rect=iv(o.Rect,i)),i.internal.newObjectDeferredBegin(o.objId,!0),o.DA=et.createDefaultAppearanceStream(o),Vt(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(f=o.getKeyValueListForStream()),o.Rect=l,o.hasAppearanceStream&&!o.appearanceStreamContent){var u=av(o);f.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(o.appearanceStreamContent){var p="";for(var v in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(v)){var c=o.appearanceStreamContent[v];if(p+="/"+v+" ",p+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var s in c)if(c.hasOwnProperty(s)){var w=c[s];typeof w=="function"&&(w=w.call(i,o)),p+="/"+s+" "+w+" ",i.internal.acroformPlugin.xForms.indexOf(w)>=0||i.internal.acroformPlugin.xForms.push(w)}}else typeof(w=c)=="function"&&(w=w.call(i,o)),p+="/"+s+" "+w,i.internal.acroformPlugin.xForms.indexOf(w)>=0||i.internal.acroformPlugin.xForms.push(w);p+=">>"}f.push({key:"AP",value:`<<
30
- `+p+">>"})}i.internal.putStream({additionalKeyValues:f,objectId:o.objId}),i.internal.out("endobj")}a&&(function(m,y){for(var A in m)if(m.hasOwnProperty(A)){var D=A,P=m[A];y.internal.newObjectDeferredBegin(P.objId,!0),Vt(P)==="object"&&typeof P.putStream=="function"&&P.putStream(),delete m[D]}})(i.internal.acroformPlugin.xForms,i)})(r,t)}),t.internal.acroformPlugin.isInitialized=!0}},t2=yr.__acroform__.arrayToPdfArray=function(t,e,r){var n=function(s){return s};if(Array.isArray(t)){for(var i="[",a=0;a<t.length;a++)switch(a!==0&&(i+=" "),Vt(t[a])){case"boolean":case"number":case"object":i+=t[a].toString();break;case"string":t[a].substr(0,1)!=="/"?(e!==void 0&&r&&(n=r.internal.getEncryptor(e)),i+="("+ss(n(t[a].toString()))+")"):i+=t[a].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},bl=function(t,e,r){var n=function(i){return i};return e!==void 0&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),"("+ss(n(t))+")"},Pi=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Pi.prototype.toString=function(){return this.objId+" 0 R"},Pi.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Pi.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var r in e)if(Object.getOwnPropertyDescriptor(this,e[r]).configurable===!1){var n=e[r],i=this[n];i&&(Array.isArray(i)?t.push({key:n,value:t2(i,this.objId,this.scope)}):i instanceof Pi?(i.scope=this.scope,t.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&t.push({key:n,value:i}))}return t};var r2=function(){Pi.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){t=r.trim()},get:function(){return t||null}})};Cn(r2,Pi);var n2=function(){Pi.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+ss(r(t))+")"}},set:function(r){t=r}})};Cn(n2,Pi);var wi=function t(){Pi.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute F supplied.');e=A}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Lr(e,3)},set:function(A){A?this.F=Fr(e,3):this.F=Cr(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute Ff supplied.');r=A}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(A){n=A!==void 0?A:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(A){n[0]=A}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(A){n[1]=A}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(A){n[2]=A}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(A){n[3]=A}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(A){switch(A){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=A;break;default:throw new Error('Invalid value "'+A+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Z0)return;a="FieldObject"+t.FieldNum++}var A=function(D){return D};return this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),"("+ss(A(a))+")"},set:function(A){a=A.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(A){a=A}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(A){s=A}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(A){o=A}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(A){f=A}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/fh:l},set:function(A){l=A}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(A){u=A}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof Z0||this instanceof Za))return bl(p,this.objId,this.scope)},set:function(A){A=A.toString(),p=A}});var v=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(v)return this instanceof Xr==0?bl(v,this.objId,this.scope):v},set:function(A){A=A.toString(),v=this instanceof Xr==0?A.substr(0,1)==="("?As(A.substr(1,A.length-2)):As(A):A}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xr==1?As(v.substr(1,v.length-1)):v},set:function(A){A=A.toString(),v=this instanceof Xr==1?"/"+A:A}});var c=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(c)return c},set:function(A){this.V=A}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(c)return this instanceof Xr==0?bl(c,this.objId,this.scope):c},set:function(A){A=A.toString(),c=this instanceof Xr==0?A.substr(0,1)==="("?As(A.substr(1,A.length-2)):As(A):A}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xr==1?As(c.substr(1,c.length-1)):c},set:function(A){A=A.toString(),c=this instanceof Xr==1?"/"+A:A}}),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 w,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(A){A=!!A,m=A}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(A){w=A}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,1)},set:function(A){A?this.Ff=Fr(this.Ff,1):this.Ff=Cr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,2)},set:function(A){A?this.Ff=Fr(this.Ff,2):this.Ff=Cr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,3)},set:function(A){A?this.Ff=Fr(this.Ff,3):this.Ff=Cr(this.Ff,3)}});var y=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(y!==null)return y},set:function(A){if([0,1,2].indexOf(A)===-1)throw new Error('Invalid value "'+A+'" for attribute Q supplied.');y=A}}),Object.defineProperty(this,"textAlign",{get:function(){var A;switch(y){case 0:default:A="left";break;case 1:A="center";break;case 2:A="right"}return A},configurable:!0,enumerable:!0,set:function(A){switch(A){case"right":case 2:y=2;break;case"center":case 1:y=1;break;default:y=0}}})};Cn(wi,Pi);var Os=function(){wi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(r){t=r}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return t2(e,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=(function(a,s,o){o||(o=1);for(var f,l=[];f=s.exec(a);)l.push(f[o]);return l})(n,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(r){e=r,this.sort&&e.sort()},this.addOption=function(r){r=(r=r||"").toString(),e.push(r),this.sort&&e.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();e.indexOf(r)!==-1&&(e.splice(e.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,18)},set:function(r){r?this.Ff=Fr(this.Ff,18):this.Ff=Cr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Fr(this.Ff,19):this.Ff=Cr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,20)},set:function(r){r?(this.Ff=Fr(this.Ff,20),e.sort()):this.Ff=Cr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,22)},set:function(r){r?this.Ff=Fr(this.Ff,22):this.Ff=Cr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,23)},set:function(r){r?this.Ff=Fr(this.Ff,23):this.Ff=Cr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,27)},set:function(r){r?this.Ff=Fr(this.Ff,27):this.Ff=Cr(this.Ff,27)}}),this.hasAppearanceStream=!1};Cn(Os,wi);var Is=function(){Os.call(this),this.fontName="helvetica",this.combo=!1};Cn(Is,Os);var Ds=function(){Is.call(this),this.combo=!0};Cn(Ds,Is);var G0=function(){Ds.call(this),this.edit=!0};Cn(G0,Ds);var Xr=function(){wi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,15)},set:function(r){r?this.Ff=Fr(this.Ff,15):this.Ff=Cr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,16)},set:function(r){r?this.Ff=Fr(this.Ff,16):this.Ff=Cr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,17)},set:function(r){r?this.Ff=Fr(this.Ff,17):this.Ff=Cr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,26)},set:function(r){r?this.Ff=Fr(this.Ff,26):this.Ff=Cr(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(a){return a};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var n,i=[];for(n in i.push("<<"),e)i.push("/"+n+" ("+ss(r(e[n]))+")");return i.push(">>"),i.join(`
31
- `)}},set:function(r){Vt(r)==="object"&&(e=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(r){typeof r=="string"&&(e.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}})};Cn(Xr,wi);var V0=function(){Xr.call(this),this.pushButton=!0};Cn(V0,Xr);var Rs=function(){Xr.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e!==void 0?e:[]}})};Cn(Rs,Xr);var Z0=function(){var t,e;wi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(i){e=i}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(o){return o};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,s=[];for(a in s.push("<<"),n)s.push("/"+a+" ("+ss(i(n[a]))+")");return s.push(">>"),s.join(`
32
- `)},set:function(i){Vt(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){r="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=et.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Cn(Z0,wi),Rs.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},Rs.prototype.createOption=function(t){var e=new Z0;return e.Parent=this,e.optionName=t,this.Kids.push(e),lv.call(this.scope,e),e};var X0=function(){Xr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=et.CheckBox.createAppearanceStream()};Cn(X0,Xr);var Za=function(){wi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,13)},set:function(e){e?this.Ff=Fr(this.Ff,13):this.Ff=Cr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,21)},set:function(e){e?this.Ff=Fr(this.Ff,21):this.Ff=Cr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,23)},set:function(e){e?this.Ff=Fr(this.Ff,23):this.Ff=Cr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,24)},set:function(e){e?this.Ff=Fr(this.Ff,24):this.Ff=Cr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,25)},set:function(e){e?this.Ff=Fr(this.Ff,25):this.Ff=Cr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,26)},set:function(e){e?this.Ff=Fr(this.Ff,26):this.Ff=Cr(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Cn(Za,wi);var Y0=function(){Za.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Lr(this.Ff,14)},set:function(t){t?this.Ff=Fr(this.Ff,14):this.Ff=Cr(this.Ff,14)}}),this.password=!0};Cn(Y0,Za);var et={CheckBox:{createAppearanceStream:function(){return{N:{On:et.CheckBox.YesNormal},D:{On:et.CheckBox.YesPushDown,Off:et.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Fi(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=Kl(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+St(et.internal.getWidth(t))+" "+St(et.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+St(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join(`
33
- `),e},YesNormal:function(t){var e=Fi(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=[],a=et.internal.getHeight(t),s=et.internal.getWidth(t),o=Kl(t,t.caption);return i.push("1 g"),i.push("0 0 "+St(s)+" "+St(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+St(s-1)+" "+St(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+St(o.fontSize)+" Tf "+n),i.push(o.text),i.push("ET"),i.push("Q"),e.stream=i.join(`
34
- `),e},OffPushDown:function(t){var e=Fi(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+St(et.internal.getWidth(t))+" "+St(et.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join(`
35
- `),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:et.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=et.RadioButton.Circle.YesNormal,e.D[t]=et.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Fi(t);e.scope=t.scope;var r=[],n=et.internal.getWidth(t)<=et.internal.getHeight(t)?et.internal.getWidth(t)/4:et.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=et.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Ea(et.internal.getWidth(t)/2)+" "+Ea(et.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
36
- `),e},YesPushDown:function(t){var e=Fi(t);e.scope=t.scope;var r=[],n=et.internal.getWidth(t)<=et.internal.getHeight(t)?et.internal.getWidth(t)/4:et.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*et.internal.Bezier_C).toFixed(5)),s=Number((n*et.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ea(et.internal.getWidth(t)/2)+" "+Ea(et.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Ea(et.internal.getWidth(t)/2)+" "+Ea(et.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),r.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),r.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),r.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
37
- `),e},OffPushDown:function(t){var e=Fi(t);e.scope=t.scope;var r=[],n=et.internal.getWidth(t)<=et.internal.getHeight(t)?et.internal.getWidth(t)/4:et.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*et.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ea(et.internal.getWidth(t)/2)+" "+Ea(et.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
38
- `),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:et.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=et.RadioButton.Cross.YesNormal,e.D[t]=et.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Fi(t);e.scope=t.scope;var r=[],n=et.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+St(et.internal.getWidth(t)-2)+" "+St(et.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(St(n.x1.x)+" "+St(n.x1.y)+" m"),r.push(St(n.x2.x)+" "+St(n.x2.y)+" l"),r.push(St(n.x4.x)+" "+St(n.x4.y)+" m"),r.push(St(n.x3.x)+" "+St(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
39
- `),e},YesPushDown:function(t){var e=Fi(t);e.scope=t.scope;var r=et.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+St(et.internal.getWidth(t))+" "+St(et.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+St(et.internal.getWidth(t)-2)+" "+St(et.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(St(r.x1.x)+" "+St(r.x1.y)+" m"),n.push(St(r.x2.x)+" "+St(r.x2.y)+" l"),n.push(St(r.x4.x)+" "+St(r.x4.y)+" m"),n.push(St(r.x3.x)+" "+St(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
40
- `),e},OffPushDown:function(t){var e=Fi(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+St(et.internal.getWidth(t))+" "+St(et.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join(`
41
- `),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};et.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=et.internal.getWidth(t),r=et.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},et.internal.getWidth=function(t){var e=0;return Vt(t)==="object"&&(e=fc(t.Rect[2])),e},et.internal.getHeight=function(t){var e=0;return Vt(t)==="object"&&(e=fc(t.Rect[3])),e};var lv=yr.addField=function(t){if(fv(this,t),!(t instanceof wi))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};yr.AcroFormChoiceField=Os,yr.AcroFormListBox=Is,yr.AcroFormComboBox=Ds,yr.AcroFormEditBox=G0,yr.AcroFormButton=Xr,yr.AcroFormPushButton=V0,yr.AcroFormRadioButton=Rs,yr.AcroFormCheckBox=X0,yr.AcroFormTextField=Za,yr.AcroFormPasswordField=Y0,yr.AcroFormAppearance=et,yr.AcroForm={ChoiceField:Os,ListBox:Is,ComboBox:Ds,EditBox:G0,Button:Xr,PushButton:V0,RadioButton:Rs,CheckBox:X0,TextField:Za,PasswordField:Y0,Appearance:et},ht.AcroForm={ChoiceField:Os,ListBox:Is,ComboBox:Ds,EditBox:G0,Button:Xr,PushButton:V0,RadioButton:Rs,CheckBox:X0,TextField:Za,PasswordField:Y0,Appearance:et};ht.AcroForm;function i2(t){return t.reduce(function(e,r,n){return e[r]=n,e},{})}(function(t){var e="addImage_";t.__addimage__={};var r="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]]},i=t.__addimage__.getImageFileTypeByImageData=function(S,I){var G,te,he,be,ye,pe=r;if((I=I||r)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(ue(S))for(ye in n)for(he=n[ye],G=0;G<he.length;G+=1){for(be=!0,te=0;te<he[G].length;te+=1)if(he[G][te]!==void 0&&he[G][te]!==S[te]){be=!1;break}if(be===!0){pe=ye;break}}else for(ye in n)for(he=n[ye],G=0;G<he.length;G+=1){for(be=!0,te=0;te<he[G].length;te+=1)if(he[G][te]!==void 0&&he[G][te]!==S.charCodeAt(te)){be=!1;break}if(be===!0){pe=ye;break}}return pe===r&&I!==r&&(pe=I),pe},a=function S(I){for(var G=this.internal.write,te=this.internal.putStream,he=(0,this.internal.getFilters)();he.indexOf("FlateEncode")!==-1;)he.splice(he.indexOf("FlateEncode"),1);I.objectId=this.internal.newObject();var be=[];if(be.push({key:"Type",value:"/XObject"}),be.push({key:"Subtype",value:"/Image"}),be.push({key:"Width",value:I.width}),be.push({key:"Height",value:I.height}),I.colorSpace===A.INDEXED?be.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(I.palette.length/3-1)+" "+("sMask"in I&&I.sMask!==void 0?I.objectId+2:I.objectId+1)+" 0 R]"}):(be.push({key:"ColorSpace",value:"/"+I.colorSpace}),I.colorSpace===A.DEVICE_CMYK&&be.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),be.push({key:"BitsPerComponent",value:I.bitsPerComponent}),"decodeParameters"in I&&I.decodeParameters!==void 0&&be.push({key:"DecodeParms",value:"<<"+I.decodeParameters+">>"}),"transparency"in I&&Array.isArray(I.transparency)&&I.transparency.length>0){for(var ye="",pe=0,Ae=I.transparency.length;pe<Ae;pe++)ye+=I.transparency[pe]+" "+I.transparency[pe]+" ";be.push({key:"Mask",value:"["+ye+"]"})}I.sMask!==void 0&&be.push({key:"SMask",value:I.objectId+1+" 0 R"});var Ue=I.filter!==void 0?["/"+I.filter]:void 0;if(te({data:I.data,additionalKeyValues:be,alreadyAppliedFilters:Ue,objectId:I.objectId}),G("endobj"),"sMask"in I&&I.sMask!==void 0){var ke,_=(ke=I.sMaskBitsPerComponent)!==null&&ke!==void 0?ke:I.bitsPerComponent,L={width:I.width,height:I.height,colorSpace:"DeviceGray",bitsPerComponent:_,data:I.sMask};"filter"in I&&(L.decodeParameters="/Predictor ".concat(I.predictor," /Colors 1 /BitsPerComponent ").concat(_," /Columns ").concat(I.width),L.filter=I.filter),S.call(this,L)}if(I.colorSpace===A.INDEXED){var N=this.internal.newObject();te({data:z(new Uint8Array(I.palette)),objectId:N}),G("endobj")}},s=function(){var S=this.internal.collections[e+"images"];for(var I in S)a.call(this,S[I])},o=function(){var S,I=this.internal.collections[e+"images"],G=this.internal.write;for(var te in I)G("/I"+(S=I[te]).index,S.objectId,"0","R")},f=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var S=this.internal.collections[e+"images"];return f.call(this),S},u=function(){return Object.keys(this.internal.collections[e+"images"]).length},p=function(S){return typeof t["process"+S.toUpperCase()]=="function"},v=function(S){return Vt(S)==="object"&&S.nodeType===1},c=function(S,I){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var G=""+S.getAttribute("src");if(G.indexOf("data:image/")===0)return z0(unescape(G).split("base64,").pop());var te=t.loadFile(G,!0);if(te!==void 0)return te}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var he;switch(I){case"PNG":he="image/png";break;case"WEBP":he="image/webp";break;default:he="image/jpeg"}return z0(S.toDataURL(he,1).split("base64,").pop())}},w=function(S){var I=this.internal.collections[e+"images"];if(I){for(var G in I)if(S===I[G].alias)return I[G]}},m=function(S,I,G){return S||I||(S=-96,I=-96),S<0&&(S=-1*G.width*72/S/this.internal.scaleFactor),I<0&&(I=-1*G.height*72/I/this.internal.scaleFactor),S===0&&(S=I*G.width/G.height),I===0&&(I=S*G.height/G.width),[S,I]},y=function(S,I,G,te,he,be){var ye=m.call(this,G,te,he),pe=this.internal.getCoordinateString,Ae=this.internal.getVerticalCoordinateString,Ue=l.call(this);if(G=ye[0],te=ye[1],Ue[he.index]=he,be){be*=Math.PI/180;var ke=Math.cos(be),_=Math.sin(be),L=function(F){return F.toFixed(4)},N=[L(ke),L(_),L(-1*_),L(ke),0,0,"cm"]}this.internal.write("q"),be?(this.internal.write([1,"0","0",1,pe(S),Ae(I+te),"cm"].join(" ")),this.internal.write(N.join(" ")),this.internal.write([pe(G),"0","0",pe(te),"0","0","cm"].join(" "))):this.internal.write([pe(G),"0","0",pe(te),pe(S),Ae(I+te),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+he.index+" Do"),this.internal.write("Q")},A=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var D=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},P=t.__addimage__.sHashCode=function(S){var I,G,te=0;if(typeof S=="string")for(G=S.length,I=0;I<G;I++)te=(te<<5)-te+S.charCodeAt(I),te|=0;else if(ue(S))for(G=S.byteLength/2,I=0;I<G;I++)te=(te<<5)-te+S[I],te|=0;return te},B=t.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var I=!0;return S.length===0&&(I=!1),S.length%4!=0&&(I=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(I=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(I=!1),I},re=t.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var I=S.indexOf(",");return I<0?null:S.substring(0,I).trim().endsWith("base64")?S.substring(I+1):null};t.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var ue=t.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},V=t.__addimage__.binaryStringToUint8Array=function(S){for(var I=S.length,G=new Uint8Array(I),te=0;te<I;te++)G[te]=S.charCodeAt(te);return G},z=t.__addimage__.arrayBufferToBinaryString=function(S){for(var I="",G=ue(S)?S:new Uint8Array(S),te=0;te<G.length;te+=8192)I+=String.fromCharCode.apply(null,G.subarray(te,te+8192));return I};t.addImage=function(){var S,I,G,te,he,be,ye,pe,Ae;if(typeof arguments[1]=="number"?(I=r,G=arguments[1],te=arguments[2],he=arguments[3],be=arguments[4],ye=arguments[5],pe=arguments[6],Ae=arguments[7]):(I=arguments[1],G=arguments[2],te=arguments[3],he=arguments[4],be=arguments[5],ye=arguments[6],pe=arguments[7],Ae=arguments[8]),Vt(S=arguments[0])==="object"&&!v(S)&&"imageData"in S){var Ue=S;S=Ue.imageData,I=Ue.format||I||r,G=Ue.x||G||0,te=Ue.y||te||0,he=Ue.w||Ue.width||he,be=Ue.h||Ue.height||be,ye=Ue.alias||ye,pe=Ue.compression||pe,Ae=Ue.rotation||Ue.angle||Ae}var ke=this.internal.getFilters();if(pe===void 0&&ke.indexOf("FlateEncode")!==-1&&(pe="SLOW"),isNaN(G)||isNaN(te))throw new Error("Invalid coordinates passed to jsPDF.addImage");f.call(this);var _=k.call(this,S,I,ye,pe);return y.call(this,G,te,he,be,_,Ae),this};var k=function(S,I,G,te){var he,be,ye;if(typeof S=="string"&&i(S)===r){S=unescape(S);var pe=ee(S,!1);(pe!==""||(pe=t.loadFile(S,!0))!==void 0)&&(S=pe)}if(v(S)&&(S=c(S,I)),I=i(S,I),!p(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(((ye=G)==null||ye.length===0)&&(G=(function(Ae){return typeof Ae=="string"||ue(Ae)?P(Ae):ue(Ae.data)?P(Ae.data):null})(S)),(he=w.call(this,G))||(S instanceof Uint8Array||I==="RGBA"||(be=S,S=V(S)),he=this["process"+I.toUpperCase()](S,u.call(this),G,(function(Ae){return Ae&&typeof Ae=="string"&&(Ae=Ae.toUpperCase()),Ae in t.image_compression?Ae:D.NONE})(te),be)),!he)throw new Error("An unknown error occurred whilst processing the image.");return he},ee=t.__addimage__.convertBase64ToBinaryString=function(S,I){I=typeof I!="boolean"||I;var G,te="";if(typeof S=="string"){var he;G=(he=re(S))!==null&&he!==void 0?he:S;try{te=z0(G)}catch(be){if(I)throw B(G)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+be.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return te};t.getImageProperties=function(S){var I,G,te="";if(v(S)&&(S=c(S)),typeof S=="string"&&i(S)===r&&((te=ee(S,!1))===""&&(te=t.loadFile(S)||""),S=te),G=i(S),!p(G))throw new Error("addImage does not support files of type '"+G+"', please ensure that a plugin for '"+G+"' support is added.");if(S instanceof Uint8Array||(S=V(S)),!(I=this["process"+G.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return I.fileType=G,I}})(ht.API),(function(t){var e=function(r){if(r!==void 0&&r!="")return!0};ht.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(r){for(var n,i,a,s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(r.objId),l=r.pageContext.annotations,u=!1,p=0;p<l.length&&!u;p++)switch((n=l[p]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var v=0;v<l.length;v++){n=l[v];var c=this.internal.pdfEscape,w=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var m=this.internal.newAdditionalObject(),y=this.internal.newAdditionalObject(),A=this.internal.getEncryptor(m.objId),D=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y)+"] ")+"/Contents ("+c(A(n.contents))+")",a+=" /Popup "+y.objId+" 0 R",a+=" /P "+f.objId+" 0 R",a+=" /T ("+c(A(D))+") >>",m.content=a;var P=m.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(n.bounds.x+30)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w+30)+" "+o(n.bounds.y)+"] ")+" /Parent "+P,n.open&&(a+=" /Open true"),a+=" >>",y.content=a,this.internal.write(m.objId,"0 R",y.objId,"0 R");break;case"freetext":i="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y+n.bounds.h)+"] ";var B=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+c(w(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+B+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var re=this.annotations._nameMap[n.options.name];n.options.pageNumber=re.page,n.options.top=re.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",a="",n.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+c(w(n.options.url))+") >>";else if(n.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/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":a+=" /Fit]";break;case"FitH":a+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,a+=" /FitV "+n.options.left+"]";break;default:var ue=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+ue+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),t.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},t.link=function(r,n,i,a,s){var o=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:f(r),y:l(n),w:f(r+i),h:l(n+a)},options:s,type:"link"})},t.textWithLink=function(r,n,i,a){var s,o,f=this.getTextWidth(r),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){o=a.maxWidth;var u=this.splitTextToSize(r,o).length;s=Math.ceil(l*u)}else o=f,s=l;return this.text(r,n,i,a),i+=.2*l,a.align==="center"&&(n-=f/2),a.align==="right"&&(n-=f),this.link(n,i-l,o,s,a),f},t.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}})(ht.API),(function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={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},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(m){return e[m.charCodeAt(0)]!==void 0},s=t.__arabicParser__.isArabicLetter=function(m){return typeof m=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(m)},o=t.__arabicParser__.isArabicEndLetter=function(m){return s(m)&&a(m)&&e[m.charCodeAt(0)].length<=2},f=t.__arabicParser__.isArabicAlfLetter=function(m){return s(m)&&i.indexOf(m.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return s(m)&&a(m)&&e[m.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(m){return s(m)&&a(m)&&e[m.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(m){return s(m)&&a(m)&&e[m.charCodeAt(0)].length>=3};var u=t.__arabicParser__.arabicLetterHasMedialForm=function(m){return s(m)&&a(m)&&e[m.charCodeAt(0)].length==4},p=t.__arabicParser__.resolveLigatures=function(m){var y=0,A=r,D="",P=0;for(y=0;y<m.length;y+=1)A[m.charCodeAt(y)]!==void 0?(P++,typeof(A=A[m.charCodeAt(y)])=="number"&&(D+=String.fromCharCode(A),A=r,P=0),y===m.length-1&&(A=r,D+=m.charAt(y-(P-1)),y-=P-1,P=0)):(A=r,D+=m.charAt(y-P),y-=P,P=0);return D};t.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&n[m.charCodeAt(0)]!==void 0};var v=t.__arabicParser__.getCorrectForm=function(m,y,A){return s(m)?a(m)===!1?-1:!l(m)||!s(y)&&!s(A)||!s(A)&&o(y)||o(m)&&!s(y)||o(m)&&f(y)||o(m)&&o(y)?0:u(m)&&s(y)&&!o(y)&&s(A)&&l(A)?3:o(m)||!s(A)?1:2:-1},c=function(m){var y=0,A=0,D=0,P="",B="",re="",ue=(m=m||"").split("\\s+"),V=[];for(y=0;y<ue.length;y+=1){for(V.push(""),A=0;A<ue[y].length;A+=1)P=ue[y][A],B=ue[y][A-1],re=ue[y][A+1],s(P)?(D=v(P,B,re),V[y]+=D!==-1?String.fromCharCode(e[P.charCodeAt(0)][D]):P):V[y]+=P;V[y]=p(V[y])}return V.join(" ")},w=t.__arabicParser__.processArabic=t.processArabic=function(){var m,y=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,A=[];if(Array.isArray(y)){var D=0;for(A=[],D=0;D<y.length;D+=1)Array.isArray(y[D])?A.push([c(y[D][0]),y[D][1],y[D][2]]):A.push([c(y[D])]);m=A}else m=c(y);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};t.events.push(["preProcessText",w])})(ht.API),ht.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=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 "+e+" 0 R")})),this},(function(t){var e=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(o){r=o}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(o){i=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(o){a=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(r,n){var i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])})(ht.API),(function(t){var e={left:0,top:0,bottom:0,right:0},r=!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({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(m){f=m}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(m){l=m}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(m){u=m}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(m){p=m}});var v=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return v},set:function(m){v=m}});var c=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return c},set:function(m){c=m}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(m){w=m}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(f){return n.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},t.getTextDimensions=function(f,l){n.call(this);var u=(l=l||{}).fontSize||this.getFontSize(),p=l.font||this.getFont(),v=l.scaleFactor||this.internal.scaleFactor,c=0,w=0,m=0,y=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 A=l.maxWidth;A>0?typeof f=="string"?f=this.splitTextToSize(f,A):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(P,B){return P.concat(y.splitTextToSize(B,A))},[])):f=Array.isArray(f)?f:[f];for(var D=0;D<f.length;D++)c<(m=this.getStringUnitWidth(f[D],{font:p})*u)&&(c=m);return c!==0&&(w=f.length),{w:c/=v,h:Math.max((w*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/v,0)}},t.cellAddPage=function(){n.call(this),this.addPage();var f=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new a(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var f;f=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var l=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,p=this.internal.__cell__.margins||e,v=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===f.lineNumber?(f.x=(l.x||0)+(l.width||0),f.y=l.y||0):l.y+l.height+f.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=p.top,c&&v&&(this.printHeaderRow(f.lineNumber,!0),f.y+=v[0].height)):f.y=l.y+l.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,r===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-u,f.y+u,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+u,{align:"center",baseline:"top",maxWidth:f.width-u-u}):this.text(f.text,f.x+u,f.y+u,{align:"left",baseline:"top",maxWidth:f.width-u-u})),this.internal.__cell__.lastCell=f,this};t.table=function(f,l,u,p,v){if(n.call(this),!u)throw new Error("No data for PDF table.");var c,w,m,y,A=[],D=[],P=[],B={},re={},ue=[],V=[],z=(v=v||{}).autoSize||!1,k=v.printHeaders!==!1,ee=v.css&&v.css["font-size"]!==void 0?16*v.css["font-size"]:v.fontSize||12,S=v.margins||Object.assign({width:this.getPageWidth()},e),I=typeof v.padding=="number"?v.padding:3,G=v.headerBackgroundColor||"#c8c8c8",te=v.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=ee,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=te,this.setFontSize(ee),p==null)D=A=Object.keys(u[0]),P=A.map(function(){return"left"});else if(Array.isArray(p)&&Vt(p[0])==="object")for(A=p.map(function(Ue){return Ue.name}),D=p.map(function(Ue){return Ue.prompt||Ue.name||""}),P=p.map(function(Ue){return Ue.align||"left"}),c=0;c<p.length;c+=1)re[p[c].name]=.7499990551181103*p[c].width;else Array.isArray(p)&&typeof p[0]=="string"&&(D=A=p,P=A.map(function(){return"left"}));if(z||Array.isArray(p)&&typeof p[0]=="string")for(c=0;c<A.length;c+=1){for(B[y=A[c]]=u.map(function(Ue){return Ue[y]}),this.setFont(void 0,"bold"),ue.push(this.getTextDimensions(D[c],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=B[y],this.setFont(void 0,"normal"),m=0;m<w.length;m+=1)ue.push(this.getTextDimensions(w[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);re[y]=Math.max.apply(null,ue)+I+I,ue=[]}if(k){var he={};for(c=0;c<A.length;c+=1)he[A[c]]={},he[A[c]].text=D[c],he[A[c]].align=P[c];var be=o.call(this,he,re);V=A.map(function(Ue){return new a(f,l,re[Ue],be,he[Ue].text,void 0,he[Ue].align)}),this.setTableHeaderRow(V),this.printHeaderRow(1,!1)}var ye=p.reduce(function(Ue,ke){return Ue[ke.name]=ke.align,Ue},{});for(c=0;c<u.length;c+=1){"rowStart"in v&&v.rowStart instanceof Function&&v.rowStart({row:c,data:u[c]},this);var pe=o.call(this,u[c],re);for(m=0;m<A.length;m+=1){var Ae=u[c][A[m]];"cellStart"in v&&v.cellStart instanceof Function&&v.cellStart({row:c,col:m,data:Ae},this),s.call(this,new a(f,l,re[A[m]],pe,Ae,c+2,ye[A[m]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=l,this};var o=function(f,l){var u=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,v=this.internal.scaleFactor;return Object.keys(f).map(function(c){var w=f[c];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,l[c]-u-u)},this).map(function(c){return this.getLineHeightFactor()*c.length*p/v+u+u},this).reduce(function(c,w){return Math.max(c,w)},0)};t.setTableHeaderRow=function(f){n.call(this),this.internal.__cell__.tableHeaderRow=f},t.printHeaderRow=function(f,l){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var v=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){u=this.internal.__cell__.tableHeaderRow[c].clone(),l&&(u.y=this.internal.__cell__.margins.top||0,v.push(u)),u.lineNumber=f;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,u),this.setTextColor(w)}v.length>0&&this.setTableHeaderRow(v),this.setFont(void 0,"normal"),r=!1}})(ht.API);var a2={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},s2=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],$l=i2(s2),o2=[100,200,300,400,500,600,700,800,900],hv=i2(o2);function Al(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=(function(a){return a2[a=a||"normal"]?a:"normal"})(t.style),n=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(t.weight),i=(function(a){return typeof $l[a=a||"normal"]=="number"?a:"normal"})(t.stretch);return{family:e,style:r,weight:n,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,r,n].join(" ")}}}function lc(t,e,r,n){var i;for(i=r;i>=0&&i<e.length;i+=n)if(t[e[i]])return t[e[i]];for(i=r;i>=0&&i<e.length;i-=n)if(t[e[i]])return t[e[i]]}var uv={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},hc={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function uc(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function cc(t){return t.trimLeft()}function cv(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function dv(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var O0,dc,pc,Ss,I0,gc,vc,mc,Sl=["times"];function xc(t,e,r,n,i){var a=4,s=_c;switch(i){case ht.API.image_compression.FAST:a=1,s=wc;break;case ht.API.image_compression.MEDIUM:a=6,s=yc;break;case ht.API.image_compression.SLOW:a=9,s=bc}t=(function(f,l,u,p){for(var v,c=f.length/l,w=new Uint8Array(f.length+c),m=[pv,wc,_c,yc,bc],y=0;y<c;y+=1){var A=y*l,D=f.subarray(A,A+l);if(p)w.set(p(D,u,v),A+y);else{for(var P=m.length,B=[],re=0;re<P;re+=1)B[re]=m[re](D,u,v);var ue=vv(B.concat());w.set(B[ue],A+y)}v=D}return w})(t,e,Math.ceil(r*n/8),s);var o=ql(t,{level:a});return ht.API.__addimage__.arrayBufferToBinaryString(o)}function pv(t){var e=Array.apply([],t);return e.unshift(0),e}function wc(t,e){var r=t.length,n=[];n[0]=1;for(var i=0;i<r;i+=1){var a=t[i-e]||0;n[i+1]=t[i]-a+256&255}return n}function _c(t,e,r){var n=t.length,i=[];i[0]=2;for(var a=0;a<n;a+=1){var s=r&&r[a]||0;i[a+1]=t[a]-s+256&255}return i}function yc(t,e,r){var n=t.length,i=[];i[0]=3;for(var a=0;a<n;a+=1){var s=t[a-e]||0,o=r&&r[a]||0;i[a+1]=t[a]+256-(s+o>>>1)&255}return i}function bc(t,e,r){var n=t.length,i=[];i[0]=4;for(var a=0;a<n;a+=1){var s=gv(t[a-e]||0,r&&r[a]||0,r&&r[a-e]||0);i[a+1]=t[a]-s+256&255}return i}function gv(t,e,r){if(t===e&&e===r)return t;var n=Math.abs(e-r),i=Math.abs(t-r),a=Math.abs(t+e-r-r);return n<=i&&n<=a?t:i<=a?e:r}function vv(t){var e=t.map(function(r){return r.reduce(function(n,i){return n+Math.abs(i)},0)});return e.indexOf(Math.min.apply(null,e))}function El(t,e,r){var n=e*r,i=Math.floor(n/8),a=16-(n-8*i+r),s=(1<<r)-1;return f2(t,i)>>a&s}function Ac(t,e,r,n){var i=r*n,a=Math.floor(i/8),s=16-(i-8*a+n),o=(1<<n)-1,f=(e&o)<<s;(function(l,u,p){if(u+1<l.byteLength)l.setUint16(u,p,!1);else{var v=p>>8&255;l.setUint8(u,v)}})(t,a,f2(t,a)&~(o<<s)&65535|f)}function f2(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function mv(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,i=t[e++],a=i>>7,s=1<<1+(7&i);t[e++],t[e++];var o=null,f=null;a&&(o=e,f=s,e+=3*s);var l=!0,u=[],p=0,v=null,c=0,w=null;for(this.width=r,this.height=n;l&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,w=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((S=t[e++])>=0))throw Error("Invalid block size");if(S===0)break;e+=S}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var m=t[e++];p=t[e++]|t[e++]<<8,v=t[e++],1&m||(v=null),c=m>>2&7,e++;break;case 254:for(;;){if(!((S=t[e++])>=0))throw Error("Invalid block size");if(S===0)break;e+=S}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var y=t[e++]|t[e++]<<8,A=t[e++]|t[e++]<<8,D=t[e++]|t[e++]<<8,P=t[e++]|t[e++]<<8,B=t[e++],re=B>>6&1,ue=1<<1+(7&B),V=o,z=f,k=!1;B>>7&&(k=!0,V=e,z=ue,e+=3*ue);var ee=e;for(e++;;){var S;if(!((S=t[e++])>=0))throw Error("Invalid block size");if(S===0)break;e+=S}u.push({x:y,y:A,width:D,height:P,has_local_palette:k,palette_offset:V,palette_size:z,data_offset:ee,data_length:e-ee,transparent_index:v,interlaced:!!re,delay:p,disposal:c});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return w},this.frameInfo=function(I){if(I<0||I>=u.length)throw new Error("Frame index out of range.");return u[I]},this.decodeAndBlitFrameBGRA=function(I,G){var te=this.frameInfo(I),he=te.width*te.height,be=new Uint8Array(he);Sc(t,te.data_offset,be,he);var ye=te.palette_offset,pe=te.transparent_index;pe===null&&(pe=256);var Ae=te.width,Ue=r-Ae,ke=Ae,_=4*(te.y*r+te.x),L=4*((te.y+te.height)*r+te.x),N=_,F=4*Ue;te.interlaced===!0&&(F+=4*r*7);for(var q=8,ne=0,oe=be.length;ne<oe;++ne){var se=be[ne];if(ke===0&&(ke=Ae,(N+=F)>=L&&(F=4*Ue+4*r*(q-1),N=_+(Ae+Ue)*(q<<1),q>>=1)),se===pe)N+=4;else{var fe=t[ye+3*se],Fe=t[ye+3*se+1],Re=t[ye+3*se+2];G[N++]=Re,G[N++]=Fe,G[N++]=fe,G[N++]=255}--ke}},this.decodeAndBlitFrameRGBA=function(I,G){var te=this.frameInfo(I),he=te.width*te.height,be=new Uint8Array(he);Sc(t,te.data_offset,be,he);var ye=te.palette_offset,pe=te.transparent_index;pe===null&&(pe=256);var Ae=te.width,Ue=r-Ae,ke=Ae,_=4*(te.y*r+te.x),L=4*((te.y+te.height)*r+te.x),N=_,F=4*Ue;te.interlaced===!0&&(F+=4*r*7);for(var q=8,ne=0,oe=be.length;ne<oe;++ne){var se=be[ne];if(ke===0&&(ke=Ae,(N+=F)>=L&&(F=4*Ue+4*r*(q-1),N=_+(Ae+Ue)*(q<<1),q>>=1)),se===pe)N+=4;else{var fe=t[ye+3*se],Fe=t[ye+3*se+1],Re=t[ye+3*se+2];G[N++]=fe,G[N++]=Fe,G[N++]=Re,G[N++]=255}--ke}}}function Sc(t,e,r,n){for(var i=t[e++],a=1<<i,s=a+1,o=s+1,f=i+1,l=(1<<f)-1,u=0,p=0,v=0,c=t[e++],w=new Int32Array(4096),m=null;;){for(;u<16&&c!==0;)p|=t[e++]<<u,u+=8,c===1?c=t[e++]:--c;if(u<f)break;var y=p&l;if(p>>=f,u-=f,y!==a){if(y===s)break;for(var A=y<o?y:m,D=0,P=A;P>a;)P=w[P]>>8,++D;var B=P;if(v+D+(A!==y?1:0)>n)return void ir.log("Warning, gif stream longer than expected.");r[v++]=B;var re=v+=D;for(A!==y&&(r[v++]=B),P=A;D--;)P=w[P],r[--re]=255&P,P>>=8;m!==null&&o<4096&&(w[o++]=m<<8|B,o>=l+1&&f<12&&(++f,l=l<<1|1)),m=y}else o=s+1,l=(1<<(f=i+1))-1,m=null}return v!==n&&ir.log("Warning, gif stream shorter than expected."),r}function Tl(t){var e,r,n,i,a,s=Math.floor,o=new Array(64),f=new Array(64),l=new Array(64),u=new Array(64),p=new Array(65535),v=new Array(65535),c=new Array(64),w=new Array(64),m=[],y=0,A=7,D=new Array(64),P=new Array(64),B=new Array(64),re=new Array(256),ue=new Array(2048),V=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],z=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],ee=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],te=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],he=[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 be(_,L){for(var N=0,F=0,q=new Array,ne=1;ne<=16;ne++){for(var oe=1;oe<=_[ne];oe++)q[L[F]]=[],q[L[F]][0]=N,q[L[F]][1]=ne,F++,N++;N*=2}return q}function ye(_){for(var L=_[0],N=_[1]-1;N>=0;)L&1<<N&&(y|=1<<A),N--,--A<0&&(y==255?(pe(255),pe(0)):pe(y),A=7,y=0)}function pe(_){m.push(_)}function Ae(_){pe(_>>8&255),pe(255&_)}function Ue(_,L,N,F,q){for(var ne,oe=q[0],se=q[240],fe=(function(Pe,st){var Je,ut,ft,Ft,Ct,mt,Dt,At,rt,yt,at=0;for(rt=0;rt<8;++rt){Je=Pe[at],ut=Pe[at+1],ft=Pe[at+2],Ft=Pe[at+3],Ct=Pe[at+4],mt=Pe[at+5],Dt=Pe[at+6];var dr=Je+(At=Pe[at+7]),Rt=Je-At,Tt=ut+Dt,Nt=ut-Dt,ar=ft+mt,ct=ft-mt,Xt=Ft+Ct,pt=Ft-Ct,wt=dr+Xt,sr=dr-Xt,Ot=Tt+ar,dt=Tt-ar;Pe[at]=wt+Ot,Pe[at+4]=wt-Ot;var Wt=.707106781*(dt+sr);Pe[at+2]=sr+Wt,Pe[at+6]=sr-Wt;var Di=.382683433*((wt=pt+ct)-(dt=Nt+Rt)),Vr=.5411961*wt+Di,ni=1.306562965*dt+Di,Vn=.707106781*(Ot=ct+Nt),gt=Rt+Vn,ii=Rt-Vn;Pe[at+5]=ii+Vr,Pe[at+3]=ii-Vr,Pe[at+1]=gt+ni,Pe[at+7]=gt-ni,at+=8}for(at=0,rt=0;rt<8;++rt){Je=Pe[at],ut=Pe[at+8],ft=Pe[at+16],Ft=Pe[at+24],Ct=Pe[at+32],mt=Pe[at+40],Dt=Pe[at+48];var ai=Je+(At=Pe[at+56]),ln=Je-At,Sn=ut+Dt,pr=ut-Dt,kr=ft+mt,C=ft-mt,K=Ft+Ct,U=Ft-Ct,H=ai+K,J=ai-K,Q=Sn+kr,ge=Sn-kr;Pe[at]=H+Q,Pe[at+32]=H-Q;var Se=.707106781*(ge+J);Pe[at+16]=J+Se,Pe[at+48]=J-Se;var ve=.382683433*((H=U+C)-(ge=pr+ln)),me=.5411961*H+ve,_e=1.306562965*ge+ve,Me=.707106781*(Q=C+pr),Ge=ln+Me,$e=ln-Me;Pe[at+40]=$e+me,Pe[at+24]=$e-me,Pe[at+8]=Ge+_e,Pe[at+56]=Ge-_e,at++}for(rt=0;rt<64;++rt)yt=Pe[rt]*st[rt],c[rt]=yt>0?yt+.5|0:yt-.5|0;return c})(_,L),Fe=0;Fe<64;++Fe)w[V[Fe]]=fe[Fe];var Re=w[0]-N;N=w[0],Re==0?ye(F[0]):(ye(F[v[ne=32767+Re]]),ye(p[ne]));for(var qe=63;qe>0&&w[qe]==0;)qe--;if(qe==0)return ye(oe),N;for(var ze,W=1;W<=qe;){for(var je=W;w[W]==0&&W<=qe;)++W;var Be=W-je;if(Be>=16){ze=Be>>4;for(var Qe=1;Qe<=ze;++Qe)ye(se);Be&=15}ne=32767+w[W],ye(q[(Be<<4)+v[ne]]),ye(p[ne]),W++}return qe!=63&&ye(oe),N}function ke(_){_=Math.min(Math.max(_,1),100),a!=_&&((function(L){for(var N=[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],F=0;F<64;F++){var q=s((N[F]*L+50)/100);q=Math.min(Math.max(q,1),255),o[V[F]]=q}for(var ne=[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],oe=0;oe<64;oe++){var se=s((ne[oe]*L+50)/100);se=Math.min(Math.max(se,1),255),f[V[oe]]=se}for(var fe=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Fe=0,Re=0;Re<8;Re++)for(var qe=0;qe<8;qe++)l[Fe]=1/(o[V[Fe]]*fe[Re]*fe[qe]*8),u[Fe]=1/(f[V[Fe]]*fe[Re]*fe[qe]*8),Fe++})(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),a=_)}this.encode=function(_,L){L&&ke(L),m=new Array,y=0,A=7,Ae(65496),Ae(65504),Ae(16),pe(74),pe(70),pe(73),pe(70),pe(0),pe(1),pe(1),pe(0),Ae(1),Ae(1),pe(0),pe(0),(function(){Ae(65499),Ae(132),pe(0);for(var ut=0;ut<64;ut++)pe(o[ut]);pe(1);for(var ft=0;ft<64;ft++)pe(f[ft])})(),(function(ut,ft){Ae(65472),Ae(17),pe(8),Ae(ft),Ae(ut),pe(3),pe(1),pe(17),pe(0),pe(2),pe(17),pe(1),pe(3),pe(17),pe(1)})(_.width,_.height),(function(){Ae(65476),Ae(418),pe(0);for(var ut=0;ut<16;ut++)pe(z[ut+1]);for(var ft=0;ft<=11;ft++)pe(k[ft]);pe(16);for(var Ft=0;Ft<16;Ft++)pe(ee[Ft+1]);for(var Ct=0;Ct<=161;Ct++)pe(S[Ct]);pe(1);for(var mt=0;mt<16;mt++)pe(I[mt+1]);for(var Dt=0;Dt<=11;Dt++)pe(G[Dt]);pe(17);for(var At=0;At<16;At++)pe(te[At+1]);for(var rt=0;rt<=161;rt++)pe(he[rt])})(),Ae(65498),Ae(12),pe(3),pe(1),pe(0),pe(2),pe(17),pe(3),pe(17),pe(0),pe(63),pe(0);var N=0,F=0,q=0;y=0,A=7,this.encode.displayName="_encode_";for(var ne,oe,se,fe,Fe,Re,qe,ze,W,je=_.data,Be=_.width,Qe=_.height,Pe=4*Be,st=0;st<Qe;){for(ne=0;ne<Pe;){for(Fe=Pe*st+ne,qe=-1,ze=0,W=0;W<64;W++)Re=Fe+(ze=W>>3)*Pe+(qe=4*(7&W)),st+ze>=Qe&&(Re-=Pe*(st+1+ze-Qe)),ne+qe>=Pe&&(Re-=ne+qe-Pe+4),oe=je[Re++],se=je[Re++],fe=je[Re++],D[W]=(ue[oe]+ue[se+256|0]+ue[fe+512|0]>>16)-128,P[W]=(ue[oe+768|0]+ue[se+1024|0]+ue[fe+1280|0]>>16)-128,B[W]=(ue[oe+1280|0]+ue[se+1536|0]+ue[fe+1792|0]>>16)-128;N=Ue(D,l,N,e,n),F=Ue(P,u,F,r,i),q=Ue(B,u,q,r,i),ne+=32}st+=8}if(A>=0){var Je=[];Je[1]=A+1,Je[0]=(1<<A+1)-1,ye(Je)}return Ae(65497),new Uint8Array(m)},t=t||50,(function(){for(var _=String.fromCharCode,L=0;L<256;L++)re[L]=_(L)})(),e=be(z,k),r=be(I,G),n=be(ee,S),i=be(te,he),(function(){for(var _=1,L=2,N=1;N<=15;N++){for(var F=_;F<L;F++)v[32767+F]=N,p[32767+F]=[],p[32767+F][1]=N,p[32767+F][0]=F;for(var q=-(L-1);q<=-_;q++)v[32767+q]=N,p[32767+q]=[],p[32767+q][1]=N,p[32767+q][0]=L-1+q;_<<=1,L<<=1}})(),(function(){for(var _=0;_<256;_++)ue[_]=19595*_,ue[_+256|0]=38470*_,ue[_+512|0]=7471*_+32768,ue[_+768|0]=-11059*_,ue[_+1024|0]=-21709*_,ue[_+1280|0]=32768*_+8421375,ue[_+1536|0]=-27439*_,ue[_+1792|0]=-5329*_})(),ke(t)}function ci(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,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 Ec(t){function e(k){if(!k)throw Error("assert :P")}function r(k,ee,S){for(var I=0;4>I;I++)if(k[ee+I]!=S.charCodeAt(I))return!0;return!1}function n(k,ee,S,I,G){for(var te=0;te<G;te++)k[ee+te]=S[I+te]}function i(k,ee,S,I){for(var G=0;G<I;G++)k[ee+G]=S}function a(k){return new Int32Array(k)}function s(k,ee){for(var S=[],I=0;I<k;I++)S.push(new ee);return S}function o(k,ee){var S=[];return(function I(G,te,he){for(var be=he[te],ye=0;ye<be&&(G.push(he.length>te+1?[]:new ee),!(he.length<te+1));ye++)I(G[ye],te+1,he)})(S,0,k),S}var f=function(){var k=this;function ee(h,d){for(var x=1<<d-1>>>0;h&x;)x>>>=1;return x?(h&x-1)+x:h}function S(h,d,x,b,T){e(!(b%x));do h[d+(b-=x)]=T;while(0<b)}function I(h,d,x,b,T){if(e(2328>=T),512>=T)var O=a(512);else if((O=a(T))==null)return 0;return(function(R,M,j,X,ae,we){var Y,le,de=M,Te=1<<j,xe=a(16),Ne=a(16);for(e(ae!=0),e(X!=null),e(R!=null),e(0<j),le=0;le<ae;++le){if(15<X[le])return 0;++xe[X[le]]}if(xe[0]==ae)return 0;for(Ne[1]=0,Y=1;15>Y;++Y){if(xe[Y]>1<<Y)return 0;Ne[Y+1]=Ne[Y]+xe[Y]}for(le=0;le<ae;++le)Y=X[le],0<X[le]&&(we[Ne[Y]++]=le);if(Ne[15]==1)return(X=new G).g=0,X.value=we[0],S(R,de,1,Te,X),Te;var Ce,He=-1,De=Te-1,lt=0,Ze=1,kt=1,nt=1<<j;for(le=0,Y=1,ae=2;Y<=j;++Y,ae<<=1){if(Ze+=kt<<=1,0>(kt-=xe[Y]))return 0;for(;0<xe[Y];--xe[Y])(X=new G).g=Y,X.value=we[le++],S(R,de+lt,ae,nt,X),lt=ee(lt,Y)}for(Y=j+1,ae=2;15>=Y;++Y,ae<<=1){if(Ze+=kt<<=1,0>(kt-=xe[Y]))return 0;for(;0<xe[Y];--xe[Y]){if(X=new G,(lt&De)!=He){for(de+=nt,Ce=1<<(He=Y)-j;15>He&&!(0>=(Ce-=xe[He]));)++He,Ce<<=1;Te+=nt=1<<(Ce=He-j),R[M+(He=lt&De)].g=Ce+j,R[M+He].value=de-M-He}X.g=Y-j,X.value=we[le++],S(R,de+(lt>>j),ae,nt,X),lt=ee(lt,Y)}}return Ze!=2*Ne[15]-1?0:Te})(h,d,x,b,T,O)}function G(){this.value=this.g=0}function te(){this.value=this.g=0}function he(){this.G=s(5,G),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Ga,te)}function be(h,d,x,b){e(h!=null),e(d!=null),e(2147483648>b),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=d,h.pa=x,h.Jd=d,h.Yc=x+b,h.Zc=4<=b?x+b-4+1:x,oe(h)}function ye(h,d){for(var x=0;0<d--;)x|=fe(h,128)<<d;return x}function pe(h,d){var x=ye(h,d);return se(h)?-x:x}function Ae(h,d,x,b){var T,O=0;for(e(h!=null),e(d!=null),e(4294967288>b),h.Sb=b,h.Ra=0,h.u=0,h.h=0,4<b&&(b=4),T=0;T<b;++T)O+=d[x+T]<<8*T;h.Ra=O,h.bb=b,h.oa=d,h.pa=x}function Ue(h){for(;8<=h.u&&h.bb<h.Sb;)h.Ra>>>=8,h.Ra+=h.oa[h.pa+h.bb]<<ca-8>>>0,++h.bb,h.u-=8;F(h)&&(h.h=1,h.u=0)}function ke(h,d){if(e(0<=d),!h.h&&d<=Pn){var x=N(h)&kn[d];return h.u+=d,Ue(h),x}return h.h=1,h.u=0}function _(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function L(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function N(h){return h.Ra>>>(h.u&ca-1)>>>0}function F(h){return e(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>ca}function q(h,d){h.u=d,h.h=F(h)}function ne(h){h.u>=Vi&&(e(h.u>=Vi),Ue(h))}function oe(h){e(h!=null&&h.oa!=null),h.pa<h.Zc?(h.I=(h.oa[h.pa++]|h.I<<8)>>>0,h.b+=8):(e(h!=null&&h.oa!=null),h.pa<h.Yc?(h.b+=8,h.I=h.oa[h.pa++]|h.I<<8):h.Ka?h.b=0:(h.I<<=8,h.b+=8,h.Ka=1))}function se(h){return ye(h,1)}function fe(h,d){var x=h.Ca;0>h.b&&oe(h);var b=h.b,T=x*d>>>8,O=(h.I>>>b>T)+0;for(O?(x-=T,h.I-=T+1<<b>>>0):x=T+1,b=x,T=0;256<=b;)T+=8,b>>=8;return b=7^T+da[b],h.b-=b,h.Ca=(x<<b)-1,O}function Fe(h,d,x){h[d+0]=x>>24&255,h[d+1]=x>>16&255,h[d+2]=x>>8&255,h[d+3]=255&x}function Re(h,d){return h[d+0]|h[d+1]<<8}function qe(h,d){return Re(h,d)|h[d+2]<<16}function ze(h,d){return Re(h,d)|Re(h,d+2)<<16}function W(h,d){var x=1<<d;return e(h!=null),e(0<d),h.X=a(x),h.X==null?0:(h.Mb=32-d,h.Xa=d,1)}function je(h,d){e(h!=null),e(d!=null),e(h.Xa==d.Xa),n(d.X,0,h.X,0,1<<d.Xa)}function Be(){this.X=[],this.Xa=this.Mb=0}function Qe(h,d,x,b){e(x!=null),e(b!=null);var T=x[0],O=b[0];return T==0&&(T=(h*O+d/2)/d),O==0&&(O=(d*T+h/2)/h),0>=T||0>=O?0:(x[0]=T,b[0]=O,1)}function Pe(h,d){return h+(1<<d)-1>>>d}function st(h,d){return((4278255360&h)+(4278255360&d)>>>0&4278255360)+((16711935&h)+(16711935&d)>>>0&16711935)>>>0}function Je(h,d){k[d]=function(x,b,T,O,R,M,j){var X;for(X=0;X<R;++X){var ae=k[h](M[j+X-1],T,O+X);M[j+X]=st(x[b+X],ae)}}}function ut(){this.ud=this.hd=this.jd=0}function ft(h,d){return((4278124286&(h^d))>>>1)+(h&d)>>>0}function Ft(h){return 0<=h&&256>h?h:0>h?0:255<h?255:void 0}function Ct(h,d){return Ft(h+(h-d+.5>>1))}function mt(h,d,x){return Math.abs(d-x)-Math.abs(h-x)}function Dt(h,d,x,b,T,O,R){for(b=O[R-1],x=0;x<T;++x)O[R+x]=b=st(h[d+x],b)}function At(h,d,x,b,T){var O;for(O=0;O<x;++O){var R=h[d+O],M=R>>8&255,j=16711935&(j=(j=16711935&R)+((M<<16)+M));b[T+O]=(4278255360&R)+j>>>0}}function rt(h,d){d.jd=255&h,d.hd=h>>8&255,d.ud=h>>16&255}function yt(h,d,x,b,T,O){var R;for(R=0;R<b;++R){var M=d[x+R],j=M>>>8,X=M,ae=255&(ae=(ae=M>>>16)+((h.jd<<24>>24)*(j<<24>>24)>>>5));X=255&(X=(X+=(h.hd<<24>>24)*(j<<24>>24)>>>5)+((h.ud<<24>>24)*(ae<<24>>24)>>>5)),T[O+R]=(4278255360&M)+(ae<<16)+X}}function at(h,d,x,b,T){k[d]=function(O,R,M,j,X,ae,we,Y,le){for(j=we;j<Y;++j)for(we=0;we<le;++we)X[ae++]=T(M[b(O[R++])])},k[h]=function(O,R,M,j,X,ae,we){var Y=8>>O.b,le=O.Ea,de=O.K[0],Te=O.w;if(8>Y)for(O=(1<<O.b)-1,Te=(1<<Y)-1;R<M;++R){var xe,Ne=0;for(xe=0;xe<le;++xe)xe&O||(Ne=b(j[X++])),ae[we++]=T(de[Ne&Te]),Ne>>=Y}else k["VP8LMapColor"+x](j,X,de,Te,ae,we,R,M,le)}}function dr(h,d,x,b,T){for(x=d+x;d<x;){var O=h[d++];b[T++]=O>>16&255,b[T++]=O>>8&255,b[T++]=255&O}}function Rt(h,d,x,b,T){for(x=d+x;d<x;){var O=h[d++];b[T++]=O>>16&255,b[T++]=O>>8&255,b[T++]=255&O,b[T++]=O>>24&255}}function Tt(h,d,x,b,T){for(x=d+x;d<x;){var O=(R=h[d++])>>16&240|R>>12&15,R=240&R|R>>28&15;b[T++]=O,b[T++]=R}}function Nt(h,d,x,b,T){for(x=d+x;d<x;){var O=(R=h[d++])>>16&248|R>>13&7,R=R>>5&224|R>>3&31;b[T++]=O,b[T++]=R}}function ar(h,d,x,b,T){for(x=d+x;d<x;){var O=h[d++];b[T++]=255&O,b[T++]=O>>8&255,b[T++]=O>>16&255}}function ct(h,d,x,b,T,O){if(O==0)for(x=d+x;d<x;)Fe(b,((O=h[d++])[0]>>24|O[1]>>8&65280|O[2]<<8&16711680|O[3]<<24)>>>0),T+=32;else n(b,T,h,d,x)}function Xt(h,d){k[d][0]=k[h+"0"],k[d][1]=k[h+"1"],k[d][2]=k[h+"2"],k[d][3]=k[h+"3"],k[d][4]=k[h+"4"],k[d][5]=k[h+"5"],k[d][6]=k[h+"6"],k[d][7]=k[h+"7"],k[d][8]=k[h+"8"],k[d][9]=k[h+"9"],k[d][10]=k[h+"10"],k[d][11]=k[h+"11"],k[d][12]=k[h+"12"],k[d][13]=k[h+"13"],k[d][14]=k[h+"0"],k[d][15]=k[h+"0"]}function pt(h){return h==Gf||h==Vf||h==p0||h==Xf}function wt(){this.eb=[],this.size=this.A=this.fb=0}function sr(){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 Ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new wt,this.f.kb=new sr,this.sd=null}function dt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Wt(){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 Di(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function Vr(h,d){var x=h.T,b=d.ba.f.RGBA,T=b.eb,O=b.fb+h.ka*b.A,R=Zn[d.ba.S],M=h.y,j=h.O,X=h.f,ae=h.N,we=h.ea,Y=h.W,le=d.cc,de=d.dc,Te=d.Mc,xe=d.Nc,Ne=h.ka,Ce=h.ka+h.T,He=h.U,De=He+1>>1;for(Ne==0?R(M,j,null,null,X,ae,we,Y,X,ae,we,Y,T,O,null,null,He):(R(d.ec,d.fc,M,j,le,de,Te,xe,X,ae,we,Y,T,O-b.A,T,O,He),++x);Ne+2<Ce;Ne+=2)le=X,de=ae,Te=we,xe=Y,ae+=h.Rc,Y+=h.Rc,O+=2*b.A,R(M,(j+=2*h.fa)-h.fa,M,j,le,de,Te,xe,X,ae,we,Y,T,O-b.A,T,O,He);return j+=h.fa,h.j+Ce<h.o?(n(d.ec,d.fc,M,j,He),n(d.cc,d.dc,X,ae,De),n(d.Mc,d.Nc,we,Y,De),x--):1&Ce||R(M,j,null,null,X,ae,we,Y,X,ae,we,Y,T,O+b.A,null,null,He),x}function ni(h,d,x){var b=h.F,T=[h.J];if(b!=null){var O=h.U,R=d.ba.S,M=R==d0||R==p0;d=d.ba.f.RGBA;var j=[0],X=h.ka;j[0]=h.T,h.Kb&&(X==0?--j[0]:(--X,T[0]-=h.width),h.j+h.ka+h.T==h.o&&(j[0]=h.o-h.j-X));var ae=d.eb;X=d.fb+X*d.A,h=Bh(b,T[0],h.width,O,j,ae,X+(M?0:3),d.A),e(x==j),h&&pt(R)&&po(ae,X,M,O,j,d.A)}return 0}function Vn(h){var d=h.ma,x=d.ba.S,b=11>x,T=x==u0||x==c0||x==d0||x==zf||x==12||pt(x);if(d.memory=null,d.Ib=null,d.Jb=null,d.Nd=null,!ao(d.Oa,h,T?11:12))return 0;if(T&&pt(x)&&ro(),h.da)alert("todo:use_scaling");else{if(b){if(d.Ib=Di,h.Kb){if(x=h.U+1>>1,d.memory=a(h.U+2*x),d.memory==null)return 0;d.ec=d.memory,d.fc=0,d.cc=d.ec,d.dc=d.fc+h.U,d.Mc=d.cc,d.Nc=d.dc+x,d.Ib=Vr,ro()}}else alert("todo:EmitYUV");T&&(d.Jb=ni,b&&fi())}if(b&&!Qh){for(h=0;256>h;++h)Sp[h]=89858*(h-128)+v0>>g0,Np[h]=-22014*(h-128)+v0,Tp[h]=-45773*(h-128),Ep[h]=113618*(h-128)+v0>>g0;for(h=vo;h<$f;++h)d=76283*(h-16)+v0>>g0,Lp[h-vo]=Pr(d,255),Fp[h-vo]=Pr(d+8>>4,15);Qh=1}return 1}function gt(h){var d=h.ma,x=h.U,b=h.T;return e(!(1&h.ka)),0>=x||0>=b?0:(x=d.Ib(h,d),d.Jb!=null&&d.Jb(h,d,x),d.Dc+=x,1)}function ii(h){h.ma.memory=null}function ai(h,d,x,b){return ke(h,8)!=47?0:(d[0]=ke(h,14)+1,x[0]=ke(h,14)+1,b[0]=ke(h,1),ke(h,3)!=0?0:!h.h)}function ln(h,d){if(4>h)return h+1;var x=h-2>>1;return(2+(1&h)<<x)+ke(d,x)+1}function Sn(h,d){return 120<d?d-120:1<=(x=((x=hp[d-1])>>4)*h+(8-(15&x)))?x:1;var x}function pr(h,d,x){var b=N(x),T=h[d+=255&b].g-8;return 0<T&&(q(x,x.u+8),b=N(x),d+=h[d].value,d+=b&(1<<T)-1),q(x,x.u+h[d].g),h[d].value}function kr(h,d,x){return x.g+=h.g,x.value+=h.value<<d>>>0,e(8>=x.g),h.g}function C(h,d,x){var b=h.xc;return e((d=b==0?0:h.vc[h.md*(x>>b)+(d>>b)])<h.Wb),h.Ya[d]}function K(h,d,x,b){var T=h.ab,O=h.c*d,R=h.C;d=R+d;var M=x,j=b;for(b=h.Ta,x=h.Ua;0<T--;){var X=h.gc[T],ae=R,we=d,Y=M,le=j,de=(j=b,M=x,X.Ea);switch(e(ae<we),e(we<=X.nc),X.hc){case 2:Sr(Y,le,(we-ae)*de,j,M);break;case 0:var Te=ae,xe=we,Ne=j,Ce=M,He=(nt=X).Ea;Te==0&&(oo(Y,le,null,null,1,Ne,Ce),Dt(Y,le+1,0,0,He-1,Ne,Ce+1),le+=He,Ce+=He,++Te);for(var De=1<<nt.b,lt=De-1,Ze=Pe(He,nt.b),kt=nt.K,nt=nt.w+(Te>>nt.b)*Ze;Te<xe;){var Mt=kt,Wr=nt,Pt=1;for(ws(Y,le,Ne,Ce-He,1,Ne,Ce);Pt<He;){var it=(Pt&~lt)+De;it>He&&(it=He),(0,lo[Mt[Wr++]>>8&15])(Y,le+ +Pt,Ne,Ce+Pt-He,it-Pt,Ne,Ce+Pt),Pt=it}le+=He,Ce+=He,++Te&lt||(nt+=Ze)}we!=X.nc&&n(j,M-de,j,M+(we-ae-1)*de,de);break;case 1:for(de=Y,xe=le,He=(Y=X.Ea)-(Ce=Y&~(Ne=(le=1<<X.b)-1)),Te=Pe(Y,X.b),De=X.K,X=X.w+(ae>>X.b)*Te;ae<we;){for(lt=De,Ze=X,kt=new ut,nt=xe+Ce,Mt=xe+Y;xe<nt;)rt(lt[Ze++],kt),ho(kt,de,xe,le,j,M),xe+=le,M+=le;xe<Mt&&(rt(lt[Ze++],kt),ho(kt,de,xe,He,j,M),xe+=He,M+=He),++ae&Ne||(X+=Te)}break;case 3:if(Y==j&&le==M&&0<X.b){for(xe=j,Y=de=M+(we-ae)*de-(Ce=(we-ae)*Pe(X.Ea,X.b)),le=j,Ne=M,Te=[],Ce=(He=Ce)-1;0<=Ce;--Ce)Te[Ce]=le[Ne+Ce];for(Ce=He-1;0<=Ce;--Ce)xe[Y+Ce]=Te[Ce];o0(X,ae,we,j,de,j,M)}else o0(X,ae,we,Y,le,j,M)}M=b,j=x}j!=x&&n(b,x,M,j,O)}function U(h,d){var x=h.V,b=h.Ba+h.c*h.C,T=d-h.C;if(e(d<=h.l.o),e(16>=T),0<T){var O=h.l,R=h.Ta,M=h.Ua,j=O.width;if(K(h,T,x,b),T=M=[M],e((x=h.C)<(b=d)),e(O.v<O.va),b>O.o&&(b=O.o),x<O.j){var X=O.j-x;x=O.j,T[0]+=X*j}if(x>=b?x=0:(T[0]+=4*O.v,O.ka=x-O.j,O.U=O.va-O.v,O.T=b-x,x=1),x){if(M=M[0],11>(x=h.ca).S){var ae=x.f.RGBA,we=(b=x.S,T=O.U,O=O.T,X=ae.eb,ae.A),Y=O;for(ae=ae.fb+h.Ma*ae.A;0<Y--;){var le=R,de=M,Te=T,xe=X,Ne=ae;switch(b){case h0:uo(le,de,Te,xe,Ne);break;case u0:pa(le,de,Te,xe,Ne);break;case Gf:pa(le,de,Te,xe,Ne),po(xe,Ne,0,Te,1,0);break;case zh:Va(le,de,Te,xe,Ne);break;case c0:ct(le,de,Te,xe,Ne,1);break;case Vf:ct(le,de,Te,xe,Ne,1),po(xe,Ne,0,Te,1,0);break;case d0:ct(le,de,Te,xe,Ne,0);break;case p0:ct(le,de,Te,xe,Ne,0),po(xe,Ne,1,Te,1,0);break;case zf:ga(le,de,Te,xe,Ne);break;case Xf:ga(le,de,Te,xe,Ne),Rh(xe,Ne,Te,1,0);break;case Gh:va(le,de,Te,xe,Ne);break;default:e(0)}M+=j,ae+=we}h.Ma+=O}else alert("todo:EmitRescaledRowsYUVA");e(h.Ma<=x.height)}}h.C=d,e(h.C<=h.i)}function H(h){var d;if(0<h.ua)return 0;for(d=0;d<h.Wb;++d){var x=h.Ya[d].G,b=h.Ya[d].H;if(0<x[1][b[1]+0].g||0<x[2][b[2]+0].g||0<x[3][b[3]+0].g)return 0}return 1}function J(h,d,x,b,T,O){if(h.Z!=0){var R=h.qd,M=h.rd;for(e(wa[h.Z]!=null);d<x;++d)wa[h.Z](R,M,b,T,b,T,O),R=b,M=T,T+=O;h.qd=R,h.rd=M}}function Q(h,d){var x=h.l.ma,b=x.Z==0||x.Z==1?h.l.j:h.C;if(b=h.C<b?b:h.C,e(d<=h.l.o),d>b){var T=h.l.width,O=x.ca,R=x.tb+T*b,M=h.V,j=h.Ba+h.c*b,X=h.gc;e(h.ab==1),e(X[0].hc==3),Ti(X[0],b,d,M,j,O,R),J(x,b,d,O,R,T)}h.C=h.Ma=d}function ge(h,d,x,b,T,O,R){var M=h.$/b,j=h.$%b,X=h.m,ae=h.s,we=x+h.$,Y=we;T=x+b*T;var le=x+b*O,de=280+ae.ua,Te=h.Pb?M:16777216,xe=0<ae.ua?ae.Wa:null,Ne=ae.wc,Ce=we<le?C(ae,j,M):null;e(h.C<O),e(le<=T);var He=!1;e:for(;;){for(;He||we<le;){var De=0;if(M>=Te){var lt=we-x;e((Te=h).Pb),Te.wd=Te.m,Te.xd=lt,0<Te.s.ua&&je(Te.s.Wa,Te.s.vb),Te=M+cp}if(j&Ne||(Ce=C(ae,j,M)),e(Ce!=null),Ce.Qb&&(d[we]=Ce.qb,He=!0),!He)if(ne(X),Ce.jc){De=X,lt=d;var Ze=we,kt=Ce.pd[N(De)&Ga-1];e(Ce.jc),256>kt.g?(q(De,De.u+kt.g),lt[Ze]=kt.value,De=0):(q(De,De.u+kt.g-256),e(256<=kt.value),De=kt.value),De==0&&(He=!0)}else De=pr(Ce.G[0],Ce.H[0],X);if(X.h)break;if(He||256>De){if(!He)if(Ce.nd)d[we]=(Ce.qb|De<<8)>>>0;else{if(ne(X),He=pr(Ce.G[1],Ce.H[1],X),ne(X),lt=pr(Ce.G[2],Ce.H[2],X),Ze=pr(Ce.G[3],Ce.H[3],X),X.h)break;d[we]=(Ze<<24|He<<16|De<<8|lt)>>>0}if(He=!1,++we,++j>=b&&(j=0,++M,R!=null&&M<=O&&!(M%16)&&R(h,M),xe!=null))for(;Y<we;)De=d[Y++],xe.X[(506832829*De&4294967295)>>>xe.Mb]=De}else if(280>De){if(De=ln(De-256,X),lt=pr(Ce.G[4],Ce.H[4],X),ne(X),lt=Sn(b,lt=ln(lt,X)),X.h)break;if(we-x<lt||T-we<De)break e;for(Ze=0;Ze<De;++Ze)d[we+Ze]=d[we+Ze-lt];for(we+=De,j+=De;j>=b;)j-=b,++M,R!=null&&M<=O&&!(M%16)&&R(h,M);if(e(we<=T),j&Ne&&(Ce=C(ae,j,M)),xe!=null)for(;Y<we;)De=d[Y++],xe.X[(506832829*De&4294967295)>>>xe.Mb]=De}else{if(!(De<de))break e;for(He=De-280,e(xe!=null);Y<we;)De=d[Y++],xe.X[(506832829*De&4294967295)>>>xe.Mb]=De;De=we,e(!(He>>>(lt=xe).Xa)),d[De]=lt.X[He],He=!0}He||e(X.h==F(X))}if(h.Pb&&X.h&&we<T)e(h.m.h),h.a=5,h.m=h.wd,h.$=h.xd,0<h.s.ua&&je(h.s.vb,h.s.Wa);else{if(X.h)break e;R?.(h,M>O?O:M),h.a=0,h.$=we-x}return 1}return h.a=3,0}function Se(h){e(h!=null),h.vc=null,h.yc=null,h.Ya=null;var d=h.Wa;d!=null&&(d.X=null),h.vb=null,e(h!=null)}function ve(){var h=new _t;return h==null?null:(h.a=0,h.xb=Yh,Xt("Predictor","VP8LPredictors"),Xt("Predictor","VP8LPredictors_C"),Xt("PredictorAdd","VP8LPredictorsAdd"),Xt("PredictorAdd","VP8LPredictorsAdd_C"),Sr=At,ho=yt,uo=dr,pa=Rt,ga=Tt,va=Nt,Va=ar,k.VP8LMapColor32b=Ei,k.VP8LMapColor8b=fo,h)}function me(h,d,x,b,T){var O=1,R=[h],M=[d],j=b.m,X=b.s,ae=null,we=0;e:for(;;){if(x)for(;O&&ke(j,1);){var Y=R,le=M,de=b,Te=1,xe=de.m,Ne=de.gc[de.ab],Ce=ke(xe,2);if(de.Oc&1<<Ce)O=0;else{switch(de.Oc|=1<<Ce,Ne.hc=Ce,Ne.Ea=Y[0],Ne.nc=le[0],Ne.K=[null],++de.ab,e(4>=de.ab),Ce){case 0:case 1:Ne.b=ke(xe,3)+2,Te=me(Pe(Ne.Ea,Ne.b),Pe(Ne.nc,Ne.b),0,de,Ne.K),Ne.K=Ne.K[0];break;case 3:var He,De=ke(xe,8)+1,lt=16<De?0:4<De?1:2<De?2:3;if(Y[0]=Pe(Ne.Ea,lt),Ne.b=lt,He=Te=me(De,1,0,de,Ne.K)){var Ze,kt=De,nt=Ne,Mt=1<<(8>>nt.b),Wr=a(Mt);if(Wr==null)He=0;else{var Pt=nt.K[0],it=nt.w;for(Wr[0]=nt.K[0][0],Ze=1;Ze<1*kt;++Ze)Wr[Ze]=st(Pt[it+Ze],Wr[Ze-1]);for(;Ze<4*Mt;++Ze)Wr[Ze]=0;nt.K[0]=null,nt.K[0]=Wr,He=1}}Te=He;break;case 2:break;default:e(0)}O=Te}}if(R=R[0],M=M[0],O&&ke(j,1)&&!(O=1<=(we=ke(j,4))&&11>=we)){b.a=3;break e}var Ye;if(Ye=O)t:{var Tr,Et,Ut,lr=b,Qr=R,xn=M,wr=we,hn=x,wn=lr.m,qr=lr.s,Ht=[null],Yt=1,_r=0,Kt=up[wr];r:for(;;){if(hn&&ke(wn,1)){var en=ke(wn,3)+2,hi=Pe(Qr,en),Nr=Pe(xn,en),En=hi*Nr;if(!me(hi,Nr,0,lr,Ht))break r;for(Ht=Ht[0],qr.xc=en,Tr=0;Tr<En;++Tr){var nr=Ht[Tr]>>8&65535;Ht[Tr]=nr,nr>=Yt&&(Yt=nr+1)}}if(wn.h)break r;for(Et=0;5>Et;++Et){var zr=Vh[Et];!Et&&0<wr&&(zr+=1<<wr),_r<zr&&(_r=zr)}var In=s(Yt*Kt,G),_n=Yt,Dn=s(_n,he);if(Dn==null)var Rn=null;else e(65536>=_n),Rn=Dn;var Tn=a(_r);if(Rn==null||Tn==null||In==null){lr.a=1;break r}var Bn=In;for(Tr=Ut=0;Tr<Yt;++Tr){var fr=Rn[Tr],Mn=fr.G,ui=fr.H,Ya=0,Ki=1,tn=0;for(Et=0;5>Et;++Et){zr=Vh[Et],Mn[Et]=Bn,ui[Et]=Ut,!Et&&0<wr&&(zr+=1<<wr);i:{var x0,Jf=zr,w0=lr,mo=Tn,Pp=Bn,Op=Ut,Zf=0,_a=w0.m,Ip=ke(_a,1);if(i(mo,0,0,Jf),Ip){var Dp=ke(_a,1)+1,Rp=ke(_a,1),ru=ke(_a,Rp==0?1:8);mo[ru]=1,Dp==2&&(mo[ru=ke(_a,8)]=1);var _0=1}else{var nu=a(19),iu=ke(_a,4)+4;if(19<iu){w0.a=3;var y0=0;break i}for(x0=0;x0<iu;++x0)nu[lp[x0]]=ke(_a,3);var Qf=void 0,xo=void 0,au=w0,Bp=nu,b0=Jf,su=mo,el=0,ya=au.m,ou=8,fu=s(128,G);n:for(;I(fu,0,7,Bp,19);){if(ke(ya,1)){var Mp=2+2*ke(ya,3);if((Qf=2+ke(ya,Mp))>b0)break n}else Qf=b0;for(xo=0;xo<b0&&Qf--;){ne(ya);var lu=fu[0+(127&N(ya))];q(ya,ya.u+lu.g);var ys=lu.value;if(16>ys)su[xo++]=ys,ys!=0&&(ou=ys);else{var Up=ys==16,hu=ys-16,jp=op[hu],uu=ke(ya,sp[hu])+jp;if(xo+uu>b0)break n;for(var Hp=Up?ou:0;0<uu--;)su[xo++]=Hp}}el=1;break n}el||(au.a=3),_0=el}(_0=_0&&!_a.h)&&(Zf=I(Pp,Op,8,mo,Jf)),_0&&Zf!=0?y0=Zf:(w0.a=3,y0=0)}if(y0==0)break r;if(Ki&&fp[Et]==1&&(Ki=Bn[Ut].g==0),Ya+=Bn[Ut].g,Ut+=y0,3>=Et){var wo,tl=Tn[0];for(wo=1;wo<zr;++wo)Tn[wo]>tl&&(tl=Tn[wo]);tn+=tl}}if(fr.nd=Ki,fr.Qb=0,Ki&&(fr.qb=(Mn[3][ui[3]+0].value<<24|Mn[1][ui[1]+0].value<<16|Mn[2][ui[2]+0].value)>>>0,Ya==0&&256>Mn[0][ui[0]+0].value&&(fr.Qb=1,fr.qb+=Mn[0][ui[0]+0].value<<8)),fr.jc=!fr.Qb&&6>tn,fr.jc){var A0,$i=fr;for(A0=0;A0<Ga;++A0){var ba=A0,Aa=$i.pd[ba],S0=$i.G[0][$i.H[0]+ba];256<=S0.value?(Aa.g=S0.g+256,Aa.value=S0.value):(Aa.g=0,Aa.value=0,ba>>=kr(S0,8,Aa),ba>>=kr($i.G[1][$i.H[1]+ba],16,Aa),ba>>=kr($i.G[2][$i.H[2]+ba],0,Aa),kr($i.G[3][$i.H[3]+ba],24,Aa))}}}qr.vc=Ht,qr.Wb=Yt,qr.Ya=Rn,qr.yc=In,Ye=1;break t}Ye=0}if(!(O=Ye)){b.a=3;break e}if(0<we){if(X.ua=1<<we,!W(X.Wa,we)){b.a=1,O=0;break e}}else X.ua=0;var rl=b,cu=R,Wp=M,nl=rl.s,il=nl.xc;if(rl.c=cu,rl.i=Wp,nl.md=Pe(cu,il),nl.wc=il==0?-1:(1<<il)-1,x){b.xb=wp;break e}if((ae=a(R*M))==null){b.a=1,O=0;break e}O=(O=ge(b,ae,0,R,M,M,null))&&!j.h;break e}return O?(T!=null?T[0]=ae:(e(ae==null),e(x)),b.$=0,x||Se(X)):Se(X),O}function _e(h,d){var x=h.c*h.i,b=x+d+16*d;return e(h.c<=d),h.V=a(b),h.V==null?(h.Ta=null,h.Ua=0,h.a=1,0):(h.Ta=h.V,h.Ua=h.Ba+x+d,1)}function Me(h,d){var x=h.C,b=d-x,T=h.V,O=h.Ba+h.c*x;for(e(d<=h.l.o);0<b;){var R=16<b?16:b,M=h.l.ma,j=h.l.width,X=j*R,ae=M.ca,we=M.tb+j*x,Y=h.Ta,le=h.Ua;K(h,R,T,O),Mh(Y,le,ae,we,X),J(M,x,x+R,ae,we,j),b-=R,T+=R*h.c,x+=R}e(x==d),h.C=h.Ma=d}function Ge(){this.ub=this.yd=this.td=this.Rb=0}function $e(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function We(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Ke(){this.Yb=(function(){var h=[];return(function d(x,b,T){for(var O=T[b],R=0;R<O&&(x.push(T.length>b+1?[]:0),!(T.length<b+1));R++)d(x[R],b+1,T)})(h,0,[3,11]),h})()}function vt(){this.jb=a(3),this.Wc=o([4,8],Ke),this.Xc=o([4,17],Ke)}function er(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Bt(){this.ld=this.La=this.dd=this.tc=0}function xr(){this.Na=this.la=0}function yi(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function si(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function bi(){this.uc=this.M=this.Nb=0,this.wa=Array(new Bt),this.Y=0,this.ya=Array(new si),this.aa=0,this.l=new cs}function Xn(){this.y=a(16),this.f=a(8),this.ea=a(8)}function fa(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Ge,this.Kc=new $e,this.ed=new er,this.Qa=new We,this.Ic=this.$c=this.Aa=0,this.D=new bi,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,_),this.ia=0,this.pb=s(4,yi),this.Pa=new vt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Xn),this.Hd=0,this.rb=Array(new xr),this.sb=0,this.wa=Array(new Bt),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 si),this.L=this.aa=0,this.gd=o([4,2],Bt),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 Pr(h,d){return 0>h?0:h>d?d:h}function cs(){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 Lf(){var h=new fa;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,go||(go=ds)),h}function Or(h,d,x){return h.a==0&&(h.a=d,h.sc=x,h.cb=0),0}function Ko(h,d,x){return 3<=x&&h[d+0]==157&&h[d+1]==1&&h[d+2]==42}function Ai(h,d){if(h==null)return 0;if(h.a=0,h.sc="OK",d==null)return Or(h,2,"null VP8Io passed to VP8GetHeaders()");var x=d.data,b=d.w,T=d.ha;if(4>T)return Or(h,7,"Truncated header.");var O=x[b+0]|x[b+1]<<8|x[b+2]<<16,R=h.Od;if(R.Rb=!(1&O),R.td=O>>1&7,R.yd=O>>4&1,R.ub=O>>5,3<R.td)return Or(h,3,"Incorrect keyframe parameters.");if(!R.yd)return Or(h,4,"Frame not displayable.");b+=3,T-=3;var M=h.Kc;if(R.Rb){if(7>T)return Or(h,7,"cannot parse picture header");if(!Ko(x,b,T))return Or(h,3,"Bad code word");M.c=16383&(x[b+4]<<8|x[b+3]),M.Td=x[b+4]>>6,M.i=16383&(x[b+6]<<8|x[b+5]),M.Ud=x[b+6]>>6,b+=7,T-=7,h.za=M.c+15>>4,h.Ub=M.i+15>>4,d.width=M.c,d.height=M.i,d.Da=0,d.j=0,d.v=0,d.va=d.width,d.o=d.height,d.da=0,d.ib=d.width,d.hb=d.height,d.U=d.width,d.T=d.height,i((O=h.Pa).jb,0,255,O.jb.length),e((O=h.Qa)!=null),O.Cb=0,O.Bb=0,O.Fb=1,i(O.Zb,0,0,O.Zb.length),i(O.Lb,0,0,O.Lb)}if(R.ub>T)return Or(h,7,"bad partition length");be(O=h.m,x,b,R.ub),b+=R.ub,T-=R.ub,R.Rb&&(M.Ld=se(O),M.Kd=se(O)),M=h.Qa;var j,X=h.Pa;if(e(O!=null),e(M!=null),M.Cb=se(O),M.Cb){if(M.Bb=se(O),se(O)){for(M.Fb=se(O),j=0;4>j;++j)M.Zb[j]=se(O)?pe(O,7):0;for(j=0;4>j;++j)M.Lb[j]=se(O)?pe(O,6):0}if(M.Bb)for(j=0;3>j;++j)X.jb[j]=se(O)?ye(O,8):255}else M.Bb=0;if(O.Ka)return Or(h,3,"cannot parse segment header");if((M=h.ed).zd=se(O),M.Tb=ye(O,6),M.wb=ye(O,3),M.Pc=se(O),M.Pc&&se(O)){for(X=0;4>X;++X)se(O)&&(M.vd[X]=pe(O,6));for(X=0;4>X;++X)se(O)&&(M.od[X]=pe(O,6))}if(h.L=M.Tb==0?0:M.zd?1:2,O.Ka)return Or(h,3,"cannot parse filter header");var ae=T;if(T=j=b,b=j+ae,M=ae,h.Xb=(1<<ye(h.m,2))-1,ae<3*(X=h.Xb))x=7;else{for(j+=3*X,M-=3*X,ae=0;ae<X;++ae){var we=x[T+0]|x[T+1]<<8|x[T+2]<<16;we>M&&(we=M),be(h.Jc[+ae],x,j,we),j+=we,M-=we,T+=3}be(h.Jc[+X],x,j,M),x=j<b?0:5}if(x!=0)return Or(h,x,"cannot parse partitions");for(x=ye(j=h.m,7),T=se(j)?pe(j,4):0,b=se(j)?pe(j,4):0,M=se(j)?pe(j,4):0,X=se(j)?pe(j,4):0,j=se(j)?pe(j,4):0,ae=h.Qa,we=0;4>we;++we){if(ae.Cb){var Y=ae.Zb[we];ae.Fb||(Y+=x)}else{if(0<we){h.pb[we]=h.pb[0];continue}Y=x}var le=h.pb[we];le.Sc[0]=Yf[Pr(Y+T,127)],le.Sc[1]=Kf[Pr(Y+0,127)],le.Eb[0]=2*Yf[Pr(Y+b,127)],le.Eb[1]=101581*Kf[Pr(Y+M,127)]>>16,8>le.Eb[1]&&(le.Eb[1]=8),le.Qc[0]=Yf[Pr(Y+X,117)],le.Qc[1]=Kf[Pr(Y+j,127)],le.lc=Y+j}if(!R.Rb)return Or(h,4,"Not a key frame.");for(se(O),R=h.Pa,x=0;4>x;++x){for(T=0;8>T;++T)for(b=0;3>b;++b)for(M=0;11>M;++M)X=fe(O,mp[x][T][b][M])?ye(O,8):gp[x][T][b][M],R.Wc[x][T].Yb[b][M]=X;for(T=0;17>T;++T)R.Xc[x][T]=R.Wc[x][xp[T]]}return h.kc=se(O),h.kc&&(h.Bd=ye(O,8)),h.cb=1}function ds(h,d,x,b,T,O,R){var M=d[T].Yb[x];for(x=0;16>T;++T){if(!fe(h,M[x+0]))return T;for(;!fe(h,M[x+1]);)if(M=d[++T].Yb[0],x=0,T==16)return 16;var j=d[T+1].Yb;if(fe(h,M[x+2])){var X=h,ae=0;if(fe(X,(Y=M)[(we=x)+3]))if(fe(X,Y[we+6])){for(M=0,we=2*(ae=fe(X,Y[we+8]))+(Y=fe(X,Y[we+9+ae])),ae=0,Y=dp[we];Y[M];++M)ae+=ae+fe(X,Y[M]);ae+=3+(8<<we)}else fe(X,Y[we+7])?(ae=7+2*fe(X,165),ae+=fe(X,145)):ae=5+fe(X,159);else ae=fe(X,Y[we+4])?3+fe(X,Y[we+5]):2;M=j[2]}else ae=1,M=j[1];j=R+pp[T],0>(X=h).b&&oe(X);var we,Y=X.b,le=(we=X.Ca>>1)-(X.I>>Y)>>31;--X.b,X.Ca+=le,X.Ca|=1,X.I-=(we+1&le)<<Y,O[j]=((ae^le)-le)*b[(0<T)+0]}return 16}function $o(h){var d=h.rb[h.sb-1];d.la=0,d.Na=0,i(h.zc,0,0,h.zc.length),h.ja=0}function Yn(h,d,x,b,T){T=h[d+x+32*b]+(T>>3),h[d+x+32*b]=-256&T?0>T?0:255:T}function Ur(h,d,x,b,T,O){Yn(h,d,0,x,b+T),Yn(h,d,1,x,b+O),Yn(h,d,2,x,b-O),Yn(h,d,3,x,b-T)}function Ri(h){return(20091*h>>16)+h}function Jo(h,d,x,b){var T,O=0,R=a(16);for(T=0;4>T;++T){var M=h[d+0]+h[d+8],j=h[d+0]-h[d+8],X=(35468*h[d+4]>>16)-Ri(h[d+12]),ae=Ri(h[d+4])+(35468*h[d+12]>>16);R[O+0]=M+ae,R[O+1]=j+X,R[O+2]=j-X,R[O+3]=M-ae,O+=4,d++}for(T=O=0;4>T;++T)M=(h=R[O+0]+4)+R[O+8],j=h-R[O+8],X=(35468*R[O+4]>>16)-Ri(R[O+12]),Yn(x,b,0,0,M+(ae=Ri(R[O+4])+(35468*R[O+12]>>16))),Yn(x,b,1,0,j+X),Yn(x,b,2,0,j-X),Yn(x,b,3,0,M-ae),O++,b+=32}function Ff(h,d,x,b){var T=h[d+0]+4,O=35468*h[d+4]>>16,R=Ri(h[d+4]),M=35468*h[d+1]>>16;Ur(x,b,0,T+R,h=Ri(h[d+1]),M),Ur(x,b,1,T+O,h,M),Ur(x,b,2,T-O,h,M),Ur(x,b,3,T-R,h,M)}function Cf(h,d,x,b,T){Jo(h,d,x,b),T&&Jo(h,d+16,x,b+4)}function Si(h,d,x,b){Xa(h,d+0,x,b,1),Xa(h,d+32,x,b+128,1)}function Zo(h,d,x,b){var T;for(h=h[d+0]+4,T=0;4>T;++T)for(d=0;4>d;++d)Yn(x,b,d,T,h)}function Qo(h,d,x,b){h[d+0]&&Gt(h,d+0,x,b),h[d+16]&&Gt(h,d+16,x,b+4),h[d+32]&&Gt(h,d+32,x,b+128),h[d+48]&&Gt(h,d+48,x,b+128+4)}function ps(h,d,x,b){var T,O=a(16);for(T=0;4>T;++T){var R=h[d+0+T]+h[d+12+T],M=h[d+4+T]+h[d+8+T],j=h[d+4+T]-h[d+8+T],X=h[d+0+T]-h[d+12+T];O[0+T]=R+M,O[8+T]=R-M,O[4+T]=X+j,O[12+T]=X-j}for(T=0;4>T;++T)R=(h=O[0+4*T]+3)+O[3+4*T],M=O[1+4*T]+O[2+4*T],j=O[1+4*T]-O[2+4*T],X=h-O[3+4*T],x[b+0]=R+M>>3,x[b+16]=X+j>>3,x[b+32]=R-M>>3,x[b+48]=X-j>>3,b+=64}function Da(h,d,x){var b,T=d-32,O=On,R=255-h[T-1];for(b=0;b<x;++b){var M,j=O,X=R+h[d-1];for(M=0;M<x;++M)h[d+M]=j[X+h[T+M]];d+=32}}function kf(h,d){Da(h,d,4)}function Pf(h,d){Da(h,d,8)}function Of(h,d){Da(h,d,16)}function Ys(h,d){var x;for(x=0;16>x;++x)n(h,d+32*x,h,d-32,16)}function e0(h,d){var x;for(x=16;0<x;--x)i(h,d,h[d-1],16),d+=32}function oi(h,d,x){var b;for(b=0;16>b;++b)i(d,x+32*b,h,16)}function If(h,d){var x,b=16;for(x=0;16>x;++x)b+=h[d-1+32*x]+h[d+x-32];oi(b>>5,h,d)}function Ra(h,d){var x,b=8;for(x=0;16>x;++x)b+=h[d-1+32*x];oi(b>>4,h,d)}function Ks(h,d){var x,b=8;for(x=0;16>x;++x)b+=h[d+x-32];oi(b>>4,h,d)}function Df(h,d){oi(128,h,d)}function bt(h,d,x){return h+2*d+x+2>>2}function Rf(h,d){var x,b=d-32;for(b=new Uint8Array([bt(h[b-1],h[b+0],h[b+1]),bt(h[b+0],h[b+1],h[b+2]),bt(h[b+1],h[b+2],h[b+3]),bt(h[b+2],h[b+3],h[b+4])]),x=0;4>x;++x)n(h,d+32*x,b,0,b.length)}function Bf(h,d){var x=h[d-1],b=h[d-1+32],T=h[d-1+64],O=h[d-1+96];Fe(h,d+0,16843009*bt(h[d-1-32],x,b)),Fe(h,d+32,16843009*bt(x,b,T)),Fe(h,d+64,16843009*bt(b,T,O)),Fe(h,d+96,16843009*bt(T,O,O))}function Mf(h,d){var x,b=4;for(x=0;4>x;++x)b+=h[d+x-32]+h[d-1+32*x];for(b>>=3,x=0;4>x;++x)i(h,d+32*x,b,4)}function Bi(h,d){var x=h[d-1+0],b=h[d-1+32],T=h[d-1+64],O=h[d-1-32],R=h[d+0-32],M=h[d+1-32],j=h[d+2-32],X=h[d+3-32];h[d+0+96]=bt(b,T,h[d-1+96]),h[d+1+96]=h[d+0+64]=bt(x,b,T),h[d+2+96]=h[d+1+64]=h[d+0+32]=bt(O,x,b),h[d+3+96]=h[d+2+64]=h[d+1+32]=h[d+0+0]=bt(R,O,x),h[d+3+64]=h[d+2+32]=h[d+1+0]=bt(M,R,O),h[d+3+32]=h[d+2+0]=bt(j,M,R),h[d+3+0]=bt(X,j,M)}function Mi(h,d){var x=h[d+1-32],b=h[d+2-32],T=h[d+3-32],O=h[d+4-32],R=h[d+5-32],M=h[d+6-32],j=h[d+7-32];h[d+0+0]=bt(h[d+0-32],x,b),h[d+1+0]=h[d+0+32]=bt(x,b,T),h[d+2+0]=h[d+1+32]=h[d+0+64]=bt(b,T,O),h[d+3+0]=h[d+2+32]=h[d+1+64]=h[d+0+96]=bt(T,O,R),h[d+3+32]=h[d+2+64]=h[d+1+96]=bt(O,R,M),h[d+3+64]=h[d+2+96]=bt(R,M,j),h[d+3+96]=bt(M,j,j)}function Uf(h,d){var x=h[d-1+0],b=h[d-1+32],T=h[d-1+64],O=h[d-1-32],R=h[d+0-32],M=h[d+1-32],j=h[d+2-32],X=h[d+3-32];h[d+0+0]=h[d+1+64]=O+R+1>>1,h[d+1+0]=h[d+2+64]=R+M+1>>1,h[d+2+0]=h[d+3+64]=M+j+1>>1,h[d+3+0]=j+X+1>>1,h[d+0+96]=bt(T,b,x),h[d+0+64]=bt(b,x,O),h[d+0+32]=h[d+1+96]=bt(x,O,R),h[d+1+32]=h[d+2+96]=bt(O,R,M),h[d+2+32]=h[d+3+96]=bt(R,M,j),h[d+3+32]=bt(M,j,X)}function jf(h,d){var x=h[d+0-32],b=h[d+1-32],T=h[d+2-32],O=h[d+3-32],R=h[d+4-32],M=h[d+5-32],j=h[d+6-32],X=h[d+7-32];h[d+0+0]=x+b+1>>1,h[d+1+0]=h[d+0+64]=b+T+1>>1,h[d+2+0]=h[d+1+64]=T+O+1>>1,h[d+3+0]=h[d+2+64]=O+R+1>>1,h[d+0+32]=bt(x,b,T),h[d+1+32]=h[d+0+96]=bt(b,T,O),h[d+2+32]=h[d+1+96]=bt(T,O,R),h[d+3+32]=h[d+2+96]=bt(O,R,M),h[d+3+64]=bt(R,M,j),h[d+3+96]=bt(M,j,X)}function gs(h,d){var x=h[d-1+0],b=h[d-1+32],T=h[d-1+64],O=h[d-1+96];h[d+0+0]=x+b+1>>1,h[d+2+0]=h[d+0+32]=b+T+1>>1,h[d+2+32]=h[d+0+64]=T+O+1>>1,h[d+1+0]=bt(x,b,T),h[d+3+0]=h[d+1+32]=bt(b,T,O),h[d+3+32]=h[d+1+64]=bt(T,O,O),h[d+3+64]=h[d+2+64]=h[d+0+96]=h[d+1+96]=h[d+2+96]=h[d+3+96]=O}function $s(h,d){var x=h[d-1+0],b=h[d-1+32],T=h[d-1+64],O=h[d-1+96],R=h[d-1-32],M=h[d+0-32],j=h[d+1-32],X=h[d+2-32];h[d+0+0]=h[d+2+32]=x+R+1>>1,h[d+0+32]=h[d+2+64]=b+x+1>>1,h[d+0+64]=h[d+2+96]=T+b+1>>1,h[d+0+96]=O+T+1>>1,h[d+3+0]=bt(M,j,X),h[d+2+0]=bt(R,M,j),h[d+1+0]=h[d+3+32]=bt(x,R,M),h[d+1+32]=h[d+3+64]=bt(b,x,R),h[d+1+64]=h[d+3+96]=bt(T,b,x),h[d+1+96]=bt(O,T,b)}function Ba(h,d){var x;for(x=0;8>x;++x)n(h,d+32*x,h,d-32,8)}function Hf(h,d){var x;for(x=0;8>x;++x)i(h,d,h[d-1],8),d+=32}function Ui(h,d,x){var b;for(b=0;8>b;++b)i(d,x+32*b,h,8)}function Wf(h,d){var x,b=8;for(x=0;8>x;++x)b+=h[d+x-32]+h[d-1+32*x];Ui(b>>4,h,d)}function Js(h,d){var x,b=4;for(x=0;8>x;++x)b+=h[d+x-32];Ui(b>>3,h,d)}function Zs(h,d){var x,b=4;for(x=0;8>x;++x)b+=h[d-1+32*x];Ui(b>>3,h,d)}function t0(h,d){Ui(128,h,d)}function ji(h,d,x){var b=h[d-x],T=h[d+0],O=3*(T-b)+qf[1020+h[d-2*x]-h[d+x]],R=l0[112+(O+4>>3)];h[d-x]=On[255+b+l0[112+(O+3>>3)]],h[d+0]=On[255+T-R]}function Qs(h,d,x,b){var T=h[d+0],O=h[d+x];return Jn[255+h[d-2*x]-h[d-x]]>b||Jn[255+O-T]>b}function vs(h,d,x,b){return 4*Jn[255+h[d-x]-h[d+0]]+Jn[255+h[d-2*x]-h[d+x]]<=b}function eo(h,d,x,b,T){var O=h[d-3*x],R=h[d-2*x],M=h[d-x],j=h[d+0],X=h[d+x],ae=h[d+2*x],we=h[d+3*x];return 4*Jn[255+M-j]+Jn[255+R-X]>b?0:Jn[255+h[d-4*x]-O]<=T&&Jn[255+O-R]<=T&&Jn[255+R-M]<=T&&Jn[255+we-ae]<=T&&Jn[255+ae-X]<=T&&Jn[255+X-j]<=T}function Ma(h,d,x,b){var T=2*b+1;for(b=0;16>b;++b)vs(h,d+b,x,T)&&ji(h,d+b,x)}function to(h,d,x,b){var T=2*b+1;for(b=0;16>b;++b)vs(h,d+b*x,1,T)&&ji(h,d+b*x,1)}function r0(h,d,x,b){var T;for(T=3;0<T;--T)Ma(h,d+=4*x,x,b)}function n0(h,d,x,b){var T;for(T=3;0<T;--T)to(h,d+=4,x,b)}function Hi(h,d,x,b,T,O,R,M){for(O=2*O+1;0<T--;){if(eo(h,d,x,O,R))if(Qs(h,d,x,M))ji(h,d,x);else{var j=h,X=d,ae=x,we=j[X-2*ae],Y=j[X-ae],le=j[X+0],de=j[X+ae],Te=j[X+2*ae],xe=27*(Ce=qf[1020+3*(le-Y)+qf[1020+we-de]])+63>>7,Ne=18*Ce+63>>7,Ce=9*Ce+63>>7;j[X-3*ae]=On[255+j[X-3*ae]+Ce],j[X-2*ae]=On[255+we+Ne],j[X-ae]=On[255+Y+xe],j[X+0]=On[255+le-xe],j[X+ae]=On[255+de-Ne],j[X+2*ae]=On[255+Te-Ce]}d+=b}}function Wi(h,d,x,b,T,O,R,M){for(O=2*O+1;0<T--;){if(eo(h,d,x,O,R))if(Qs(h,d,x,M))ji(h,d,x);else{var j=h,X=d,ae=x,we=j[X-ae],Y=j[X+0],le=j[X+ae],de=l0[112+(4+(Te=3*(Y-we))>>3)],Te=l0[112+(Te+3>>3)],xe=de+1>>1;j[X-2*ae]=On[255+j[X-2*ae]+xe],j[X-ae]=On[255+we+Te],j[X+0]=On[255+Y-de],j[X+ae]=On[255+le-xe]}d+=b}}function i0(h,d,x,b,T,O){Hi(h,d,x,1,16,b,T,O)}function Ua(h,d,x,b,T,O){Hi(h,d,1,x,16,b,T,O)}function a0(h,d,x,b,T,O){var R;for(R=3;0<R;--R)Wi(h,d+=4*x,x,1,16,b,T,O)}function g(h,d,x,b,T,O){var R;for(R=3;0<R;--R)Wi(h,d+=4,1,x,16,b,T,O)}function E(h,d,x,b,T,O,R,M){Hi(h,d,T,1,8,O,R,M),Hi(x,b,T,1,8,O,R,M)}function Z(h,d,x,b,T,O,R,M){Hi(h,d,1,T,8,O,R,M),Hi(x,b,1,T,8,O,R,M)}function ie(h,d,x,b,T,O,R,M){Wi(h,d+4*T,T,1,8,O,R,M),Wi(x,b+4*T,T,1,8,O,R,M)}function ce(h,d,x,b,T,O,R,M){Wi(h,d+4,1,T,8,O,R,M),Wi(x,b+4,1,T,8,O,R,M)}function Le(){this.ba=new Ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Wt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ie(){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 tt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ot(){this.ua=0,this.Wa=new Be,this.vb=new Be,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new he,this.yc=new G}function _t(){this.xb=this.a=0,this.l=new cs,this.ca=new Ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new L,this.Pb=0,this.wd=new L,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ot,this.ab=0,this.gc=s(4,tt),this.Oc=0}function Lt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new cs,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function jt(h,d,x,b,T,O,R){for(h=h==null?0:h[d+0],d=0;d<R;++d)T[O+d]=h+x[b+d]&255,h=T[O+d]}function mr(h,d,x,b,T,O,R){var M;if(h==null)jt(null,null,x,b,T,O,R);else for(M=0;M<R;++M)T[O+M]=h[d+M]+x[b+M]&255}function Ir(h,d,x,b,T,O,R){if(h==null)jt(null,null,x,b,T,O,R);else{var M,j=h[d+0],X=j,ae=j;for(M=0;M<R;++M)X=ae+(j=h[d+M])-X,ae=x[b+M]+(-256&X?0>X?0:255:X)&255,X=j,T[O+M]=ae}}function or(h,d,x,b){var T=d.width,O=d.o;if(e(h!=null&&d!=null),0>x||0>=b||x+b>O)return null;if(!h.Cc){if(h.ga==null){var R;if(h.ga=new Lt,(R=h.ga==null)||(R=d.width*d.o,e(h.Gb.length==0),h.Gb=a(R),h.Uc=0,h.Gb==null?R=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,R=1),R=!R),!R){R=h.ga;var M=h.Fa,j=h.P,X=h.qc,ae=h.mb,we=h.nb,Y=j+1,le=X-1,de=R.l;if(e(M!=null&&ae!=null&&d!=null),wa[0]=null,wa[1]=jt,wa[2]=mr,wa[3]=Ir,R.ca=ae,R.tb=we,R.c=d.width,R.i=d.height,e(0<R.c&&0<R.i),1>=X)d=0;else if(R.$a=3&M[j+0],R.Z=M[j+0]>>2&3,R.Lc=M[j+0]>>4&3,j=M[j+0]>>6&3,0>R.$a||1<R.$a||4<=R.Z||1<R.Lc||j)d=0;else if(de.put=gt,de.ac=Vn,de.bc=ii,de.ma=R,de.width=d.width,de.height=d.height,de.Da=d.Da,de.v=d.v,de.va=d.va,de.j=d.j,de.o=d.o,R.$a)e:{e(R.$a==1),d=ve();t:for(;;){if(d==null){d=0;break e}if(e(R!=null),R.mc=d,d.c=R.c,d.i=R.i,d.l=R.l,d.l.ma=R,d.l.width=R.c,d.l.height=R.i,d.a=0,Ae(d.m,M,Y,le),!me(R.c,R.i,1,d,null)||(d.ab==1&&d.gc[0].hc==3&&H(d.s)?(R.ic=1,M=d.c*d.i,d.Ta=null,d.Ua=0,d.V=a(M),d.Ba=0,d.V==null?(d.a=1,d=0):d=1):(R.ic=0,d=_e(d,R.c)),!d))break t;d=1;break e}R.mc=null,d=0}else d=le>=R.c*R.i;R=!d}if(R)return null;h.ga.Lc!=1?h.Ga=0:b=O-x}e(h.ga!=null),e(x+b<=O);e:{if(d=(M=h.ga).c,O=M.l.o,M.$a==0){if(Y=h.rc,le=h.Vc,de=h.Fa,j=h.P+1+x*d,X=h.mb,ae=h.nb+x*d,e(j<=h.P+h.qc),M.Z!=0)for(e(wa[M.Z]!=null),R=0;R<b;++R)wa[M.Z](Y,le,de,j,X,ae,d),Y=X,le=ae,ae+=d,j+=d;else for(R=0;R<b;++R)n(X,ae,de,j,d),Y=X,le=ae,ae+=d,j+=d;h.rc=Y,h.Vc=le}else{if(e(M.mc!=null),d=x+b,e((R=M.mc)!=null),e(d<=R.i),R.C>=d)d=1;else if(M.ic||fi(),M.ic){M=R.V,Y=R.Ba,le=R.c;var Te=R.i,xe=(de=1,j=R.$/le,X=R.$%le,ae=R.m,we=R.s,R.$),Ne=le*Te,Ce=le*d,He=we.wc,De=xe<Ce?C(we,X,j):null;e(xe<=Ne),e(d<=Te),e(H(we));t:for(;;){for(;!ae.h&&xe<Ce;){if(X&He||(De=C(we,X,j)),e(De!=null),ne(ae),256>(Te=pr(De.G[0],De.H[0],ae)))M[Y+xe]=Te,++xe,++X>=le&&(X=0,++j<=d&&!(j%16)&&Q(R,j));else{if(!(280>Te)){de=0;break t}Te=ln(Te-256,ae);var lt,Ze=pr(De.G[4],De.H[4],ae);if(ne(ae),!(xe>=(Ze=Sn(le,Ze=ln(Ze,ae)))&&Ne-xe>=Te)){de=0;break t}for(lt=0;lt<Te;++lt)M[Y+xe+lt]=M[Y+xe+lt-Ze];for(xe+=Te,X+=Te;X>=le;)X-=le,++j<=d&&!(j%16)&&Q(R,j);xe<Ce&&X&He&&(De=C(we,X,j))}e(ae.h==F(ae))}Q(R,j>d?d:j);break t}!de||ae.h&&xe<Ne?(de=0,R.a=ae.h?5:3):R.$=xe,d=de}else d=ge(R,R.V,R.Ba,R.c,R.i,d,Me);if(!d){b=0;break e}}x+b>=O&&(h.Cc=1),b=1}if(!b)return null;if(h.Cc&&((b=h.ga)!=null&&(b.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+x*T}function jr(h,d,x,b,T,O){for(;0<T--;){var R,M=h,j=d+(x?1:0),X=h,ae=d+(x?0:3);for(R=0;R<b;++R){var we=X[ae+4*R];we!=255&&(we*=32897,M[j+4*R+0]=M[j+4*R+0]*we>>23,M[j+4*R+1]=M[j+4*R+1]*we>>23,M[j+4*R+2]=M[j+4*R+2]*we>>23)}d+=O}}function Dr(h,d,x,b,T){for(;0<b--;){var O;for(O=0;O<x;++O){var R=h[d+2*O+0],M=15&(X=h[d+2*O+1]),j=4369*M,X=(240&X|X>>4)*j>>16;h[d+2*O+0]=(240&R|R>>4)*j>>16&240|(15&R|R<<4)*j>>16>>4&15,h[d+2*O+1]=240&X|M}d+=T}}function Jr(h,d,x,b,T,O,R,M){var j,X,ae=255;for(X=0;X<T;++X){for(j=0;j<b;++j){var we=h[d+j];O[R+4*j]=we,ae&=we}d+=x,R+=M}return ae!=255}function qi(h,d,x,b,T){var O;for(O=0;O<T;++O)x[b+O]=h[d+O]>>8}function fi(){po=jr,Rh=Dr,Bh=Jr,Mh=qi}function zi(h,d,x){k[h]=function(b,T,O,R,M,j,X,ae,we,Y,le,de,Te,xe,Ne,Ce,He){var De,lt=He-1>>1,Ze=M[j+0]|X[ae+0]<<16,kt=we[Y+0]|le[de+0]<<16;e(b!=null);var nt=3*Ze+kt+131074>>2;for(d(b[T+0],255&nt,nt>>16,Te,xe),O!=null&&(nt=3*kt+Ze+131074>>2,d(O[R+0],255&nt,nt>>16,Ne,Ce)),De=1;De<=lt;++De){var Mt=M[j+De]|X[ae+De]<<16,Wr=we[Y+De]|le[de+De]<<16,Pt=Ze+Mt+kt+Wr+524296,it=Pt+2*(Mt+kt)>>3;nt=it+Ze>>1,Ze=(Pt=Pt+2*(Ze+Wr)>>3)+Mt>>1,d(b[T+2*De-1],255&nt,nt>>16,Te,xe+(2*De-1)*x),d(b[T+2*De-0],255&Ze,Ze>>16,Te,xe+(2*De-0)*x),O!=null&&(nt=Pt+kt>>1,Ze=it+Wr>>1,d(O[R+2*De-1],255&nt,nt>>16,Ne,Ce+(2*De-1)*x),d(O[R+2*De+0],255&Ze,Ze>>16,Ne,Ce+(2*De+0)*x)),Ze=Mt,kt=Wr}1&He||(nt=3*Ze+kt+131074>>2,d(b[T+He-1],255&nt,nt>>16,Te,xe+(He-1)*x),O!=null&&(nt=3*kt+Ze+131074>>2,d(O[R+He-1],255&nt,nt>>16,Ne,Ce+(He-1)*x)))}}function ro(){Zn[h0]=_p,Zn[u0]=Kh,Zn[zh]=yp,Zn[c0]=$h,Zn[d0]=Jh,Zn[zf]=Zh,Zn[Gh]=bp,Zn[Gf]=Kh,Zn[Vf]=$h,Zn[p0]=Jh,Zn[Xf]=Zh}function ms(h){return h&-16384?0>h?0:255:h>>Ap}function la(h,d){return ms((19077*h>>8)+(26149*d>>8)-14234)}function ja(h,d,x){return ms((19077*h>>8)-(6419*d>>8)-(13320*x>>8)+8708)}function Ha(h,d){return ms((19077*h>>8)+(33050*d>>8)-17685)}function ha(h,d,x,b,T){b[T+0]=la(h,x),b[T+1]=ja(h,d,x),b[T+2]=Ha(h,d)}function Zr(h,d,x,b,T){b[T+0]=Ha(h,d),b[T+1]=ja(h,d,x),b[T+2]=la(h,x)}function Wa(h,d,x,b,T){var O=ja(h,d,x);d=O<<3&224|Ha(h,d)>>3,b[T+0]=248&la(h,x)|O>>5,b[T+1]=d}function qa(h,d,x,b,T){var O=240&Ha(h,d)|15;b[T+0]=240&la(h,x)|ja(h,d,x)>>4,b[T+1]=O}function no(h,d,x,b,T){b[T+0]=255,ha(h,d,x,b,T+1)}function io(h,d,x,b,T){Zr(h,d,x,b,T),b[T+3]=255}function mn(h,d,x,b,T){ha(h,d,x,b,T),b[T+3]=255}function Gi(h,d,x){k[h]=function(b,T,O,R,M,j,X,ae,we){for(var Y=ae+(-2&we)*x;ae!=Y;)d(b[T+0],O[R+0],M[j+0],X,ae),d(b[T+1],O[R+0],M[j+0],X,ae+x),T+=2,++R,++j,ae+=2*x;1&we&&d(b[T+0],O[R+0],M[j+0],X,ae)}}function xs(h,d,x){return x==0?h==0?d==0?6:5:d==0?4:0:x}function s0(h,d,x,b,T){switch(h>>>30){case 3:Xa(d,x,b,T,0);break;case 2:$n(d,x,b,T);break;case 1:Gt(d,x,b,T)}}function Kn(h,d){var x,b,T=d.M,O=d.Nb,R=h.oc,M=h.pc+40,j=h.oc,X=h.pc+584,ae=h.oc,we=h.pc+600;for(x=0;16>x;++x)R[M+32*x-1]=129;for(x=0;8>x;++x)j[X+32*x-1]=129,ae[we+32*x-1]=129;for(0<T?R[M-1-32]=j[X-1-32]=ae[we-1-32]=129:(i(R,M-32-1,127,21),i(j,X-32-1,127,9),i(ae,we-32-1,127,9)),b=0;b<h.za;++b){var Y=d.ya[d.aa+b];if(0<b){for(x=-1;16>x;++x)n(R,M+32*x-4,R,M+32*x+12,4);for(x=-1;8>x;++x)n(j,X+32*x-4,j,X+32*x+4,4),n(ae,we+32*x-4,ae,we+32*x+4,4)}var le=h.Gd,de=h.Hd+b,Te=Y.ad,xe=Y.Hc;if(0<T&&(n(R,M-32,le[de].y,0,16),n(j,X-32,le[de].f,0,8),n(ae,we-32,le[de].ea,0,8)),Y.Za){var Ne=R,Ce=M-32+16;for(0<T&&(b>=h.za-1?i(Ne,Ce,le[de].y[15],4):n(Ne,Ce,le[de+1].y,0,4)),x=0;4>x;x++)Ne[Ce+128+x]=Ne[Ce+256+x]=Ne[Ce+384+x]=Ne[Ce+0+x];for(x=0;16>x;++x,xe<<=2)Ne=R,Ce=M+eu[x],li[Y.Ob[x]](Ne,Ce),s0(xe,Te,16*+x,Ne,Ce)}else if(Ne=xs(b,T,Y.Ob[0]),xa[Ne](R,M),xe!=0)for(x=0;16>x;++x,xe<<=2)s0(xe,Te,16*+x,R,M+eu[x]);for(x=Y.Gc,Ne=xs(b,T,Y.Dd),Yi[Ne](j,X),Yi[Ne](ae,we),xe=Te,Ne=j,Ce=X,255&(Y=0|x)&&(170&Y?Ni(xe,256,Ne,Ce):rr(xe,256,Ne,Ce)),Y=ae,xe=we,255&(x>>=8)&&(170&x?Ni(Te,320,Y,xe):rr(Te,320,Y,xe)),T<h.Ub-1&&(n(le[de].y,0,R,M+480,16),n(le[de].f,0,j,X+224,8),n(le[de].ea,0,ae,we+224,8)),x=8*O*h.B,le=h.sa,de=h.ta+16*b+16*O*h.R,Te=h.qa,Y=h.ra+8*b+x,xe=h.Ha,Ne=h.Ia+8*b+x,x=0;16>x;++x)n(le,de+x*h.R,R,M+32*x,16);for(x=0;8>x;++x)n(Te,Y+x*h.B,j,X+32*x,8),n(xe,Ne+x*h.B,ae,we+32*x,8)}}function za(h,d,x,b,T,O,R,M,j){var X=[0],ae=[0],we=0,Y=j!=null?j.kd:0,le=j??new Ie;if(h==null||12>x)return 7;le.data=h,le.w=d,le.ha=x,d=[d],x=[x],le.gb=[le.gb];e:{var de=d,Te=x,xe=le.gb;if(e(h!=null),e(Te!=null),e(xe!=null),xe[0]=0,12<=Te[0]&&!r(h,de[0],"RIFF")){if(r(h,de[0]+8,"WEBP")){xe=3;break e}var Ne=ze(h,de[0]+4);if(12>Ne||4294967286<Ne){xe=3;break e}if(Y&&Ne>Te[0]-8){xe=7;break e}xe[0]=Ne,de[0]+=12,Te[0]-=12}xe=0}if(xe!=0)return xe;for(Ne=0<le.gb[0],x=x[0];;){e:{var Ce=h;Te=d,xe=x;var He=X,De=ae,lt=de=[0];if((nt=we=[we])[0]=0,8>xe[0])xe=7;else{if(!r(Ce,Te[0],"VP8X")){if(ze(Ce,Te[0]+4)!=10){xe=3;break e}if(18>xe[0]){xe=7;break e}var Ze=ze(Ce,Te[0]+8),kt=1+qe(Ce,Te[0]+12);if(2147483648<=kt*(Ce=1+qe(Ce,Te[0]+15))){xe=3;break e}lt!=null&&(lt[0]=Ze),He!=null&&(He[0]=kt),De!=null&&(De[0]=Ce),Te[0]+=18,xe[0]-=18,nt[0]=1}xe=0}}if(we=we[0],de=de[0],xe!=0)return xe;if(Te=!!(2&de),!Ne&&we)return 3;if(O!=null&&(O[0]=!!(16&de)),R!=null&&(R[0]=Te),M!=null&&(M[0]=0),R=X[0],de=ae[0],we&&Te&&j==null){xe=0;break}if(4>x){xe=7;break}if(Ne&&we||!Ne&&!we&&!r(h,d[0],"ALPH")){x=[x],le.na=[le.na],le.P=[le.P],le.Sa=[le.Sa];e:{Ze=h,xe=d,Ne=x;var nt=le.gb;He=le.na,De=le.P,lt=le.Sa,kt=22,e(Ze!=null),e(Ne!=null),Ce=xe[0];var Mt=Ne[0];for(e(He!=null),e(lt!=null),He[0]=null,De[0]=null,lt[0]=0;;){if(xe[0]=Ce,Ne[0]=Mt,8>Mt){xe=7;break e}var Wr=ze(Ze,Ce+4);if(4294967286<Wr){xe=3;break e}var Pt=8+Wr+1&-2;if(kt+=Pt,0<nt&&kt>nt){xe=3;break e}if(!r(Ze,Ce,"VP8 ")||!r(Ze,Ce,"VP8L")){xe=0;break e}if(Mt[0]<Pt){xe=7;break e}r(Ze,Ce,"ALPH")||(He[0]=Ze,De[0]=Ce+8,lt[0]=Wr),Ce+=Pt,Mt-=Pt}}if(x=x[0],le.na=le.na[0],le.P=le.P[0],le.Sa=le.Sa[0],xe!=0)break}x=[x],le.Ja=[le.Ja],le.xa=[le.xa];e:if(nt=h,xe=d,Ne=x,He=le.gb[0],De=le.Ja,lt=le.xa,Ze=xe[0],Ce=!r(nt,Ze,"VP8 "),kt=!r(nt,Ze,"VP8L"),e(nt!=null),e(Ne!=null),e(De!=null),e(lt!=null),8>Ne[0])xe=7;else{if(Ce||kt){if(nt=ze(nt,Ze+4),12<=He&&nt>He-12){xe=3;break e}if(Y&&nt>Ne[0]-8){xe=7;break e}De[0]=nt,xe[0]+=8,Ne[0]-=8,lt[0]=kt}else lt[0]=5<=Ne[0]&&nt[Ze+0]==47&&!(nt[Ze+4]>>5),De[0]=Ne[0];xe=0}if(x=x[0],le.Ja=le.Ja[0],le.xa=le.xa[0],d=d[0],xe!=0)break;if(4294967286<le.Ja)return 3;if(M==null||Te||(M[0]=le.xa?2:1),R=[R],de=[de],le.xa){if(5>x){xe=7;break}M=R,Y=de,Te=O,h==null||5>x?h=0:5<=x&&h[d+0]==47&&!(h[d+4]>>5)?(Ne=[0],nt=[0],He=[0],Ae(De=new L,h,d,x),ai(De,Ne,nt,He)?(M!=null&&(M[0]=Ne[0]),Y!=null&&(Y[0]=nt[0]),Te!=null&&(Te[0]=He[0]),h=1):h=0):h=0}else{if(10>x){xe=7;break}M=de,h==null||10>x||!Ko(h,d+3,x-3)?h=0:(Y=h[d+0]|h[d+1]<<8|h[d+2]<<16,Te=16383&(h[d+7]<<8|h[d+6]),h=16383&(h[d+9]<<8|h[d+8]),1&Y||3<(Y>>1&7)||!(Y>>4&1)||Y>>5>=le.Ja||!Te||!h?h=0:(R&&(R[0]=Te),M&&(M[0]=h),h=1))}if(!h||(R=R[0],de=de[0],we&&(X[0]!=R||ae[0]!=de)))return 3;j!=null&&(j[0]=le,j.offset=d-j.w,e(4294967286>d-j.w),e(j.offset==j.ha-x));break}return xe==0||xe==7&&we&&j==null?(O!=null&&(O[0]|=le.na!=null&&0<le.na.length),b!=null&&(b[0]=R),T!=null&&(T[0]=de),0):xe}function ao(h,d,x){var b=d.width,T=d.height,O=0,R=0,M=b,j=T;if(d.Da=h!=null&&0<h.Da,d.Da&&(M=h.cd,j=h.bd,O=h.v,R=h.j,11>x||(O&=-2,R&=-2),0>O||0>R||0>=M||0>=j||O+M>b||R+j>T))return 0;if(d.v=O,d.j=R,d.va=O+M,d.o=R+j,d.U=M,d.T=j,d.da=h!=null&&0<h.da,d.da){if(!Qe(M,j,x=[h.ib],O=[h.hb]))return 0;d.ib=x[0],d.hb=O[0]}return d.ob=h!=null&&h.ob,d.Kb=h==null||!h.Sd,d.da&&(d.ob=d.ib<3*b/4&&d.hb<3*T/4,d.Kb=0),1}function so(h){if(h==null)return 2;if(11>h.S){var d=h.f.RGBA;d.fb+=(h.height-1)*d.A,d.A=-d.A}else d=h.f.kb,h=h.height,d.O+=(h-1)*d.fa,d.fa=-d.fa,d.N+=(h-1>>1)*d.Ab,d.Ab=-d.Ab,d.W+=(h-1>>1)*d.Db,d.Db=-d.Db,d.F!=null&&(d.J+=(h-1)*d.lb,d.lb=-d.lb);return 0}function ua(h,d,x,b){if(b==null||0>=h||0>=d)return 2;if(x!=null){if(x.Da){var T=x.cd,O=x.bd,R=-2&x.v,M=-2&x.j;if(0>R||0>M||0>=T||0>=O||R+T>h||M+O>d)return 2;h=T,d=O}if(x.da){if(!Qe(h,d,T=[x.ib],O=[x.hb]))return 2;h=T[0],d=O[0]}}b.width=h,b.height=d;e:{var j=b.width,X=b.height;if(h=b.S,0>=j||0>=X||!(h>=h0&&13>h))h=2;else{if(0>=b.Rd&&b.sd==null){R=O=T=d=0;var ae=(M=j*tu[h])*X;if(11>h||(O=(X+1)/2*(d=(j+1)/2),h==12&&(R=(T=j)*X)),(X=a(ae+2*O+R))==null){h=1;break e}b.sd=X,11>h?((j=b.f.RGBA).eb=X,j.fb=0,j.A=M,j.size=ae):((j=b.f.kb).y=X,j.O=0,j.fa=M,j.Fd=ae,j.f=X,j.N=0+ae,j.Ab=d,j.Cd=O,j.ea=X,j.W=0+ae+O,j.Db=d,j.Ed=O,h==12&&(j.F=X,j.J=0+ae+2*O),j.Tc=R,j.lb=T)}if(d=1,T=b.S,O=b.width,R=b.height,T>=h0&&13>T)if(11>T)h=b.f.RGBA,d&=(M=Math.abs(h.A))*(R-1)+O<=h.size,d&=M>=O*tu[T],d&=h.eb!=null;else{h=b.f.kb,M=(O+1)/2,ae=(R+1)/2,j=Math.abs(h.fa),X=Math.abs(h.Ab);var we=Math.abs(h.Db),Y=Math.abs(h.lb),le=Y*(R-1)+O;d&=j*(R-1)+O<=h.Fd,d&=X*(ae-1)+M<=h.Cd,d=(d&=we*(ae-1)+M<=h.Ed)&j>=O&X>=M&we>=M,d&=h.y!=null,d&=h.f!=null,d&=h.ea!=null,T==12&&(d&=Y>=O,d&=le<=h.Tc,d&=h.F!=null)}else d=0;h=d?0:2}}return h!=0||x!=null&&x.fd&&(h=so(b)),h}var Ga=64,kn=[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],Pn=24,ca=32,Vi=8,da=[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];Je("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(h){return h},k.Predictor2=function(h,d,x){return d[x+0]},k.Predictor3=function(h,d,x){return d[x+1]},k.Predictor4=function(h,d,x){return d[x-1]},k.Predictor5=function(h,d,x){return ft(ft(h,d[x+1]),d[x+0])},k.Predictor6=function(h,d,x){return ft(h,d[x-1])},k.Predictor7=function(h,d,x){return ft(h,d[x+0])},k.Predictor8=function(h,d,x){return ft(d[x-1],d[x+0])},k.Predictor9=function(h,d,x){return ft(d[x+0],d[x+1])},k.Predictor10=function(h,d,x){return ft(ft(h,d[x-1]),ft(d[x+0],d[x+1]))},k.Predictor11=function(h,d,x){var b=d[x+0];return 0>=mt(b>>24&255,h>>24&255,(d=d[x-1])>>24&255)+mt(b>>16&255,h>>16&255,d>>16&255)+mt(b>>8&255,h>>8&255,d>>8&255)+mt(255&b,255&h,255&d)?b:h},k.Predictor12=function(h,d,x){var b=d[x+0];return(Ft((h>>24&255)+(b>>24&255)-((d=d[x-1])>>24&255))<<24|Ft((h>>16&255)+(b>>16&255)-(d>>16&255))<<16|Ft((h>>8&255)+(b>>8&255)-(d>>8&255))<<8|Ft((255&h)+(255&b)-(255&d)))>>>0},k.Predictor13=function(h,d,x){var b=d[x-1];return(Ct((h=ft(h,d[x+0]))>>24&255,b>>24&255)<<24|Ct(h>>16&255,b>>16&255)<<16|Ct(h>>8&255,b>>8&255)<<8|Ct(255&h,255&b))>>>0};var oo=k.PredictorAdd0;k.PredictorAdd1=Dt,Je("Predictor2","PredictorAdd2"),Je("Predictor3","PredictorAdd3"),Je("Predictor4","PredictorAdd4"),Je("Predictor5","PredictorAdd5"),Je("Predictor6","PredictorAdd6"),Je("Predictor7","PredictorAdd7"),Je("Predictor8","PredictorAdd8"),Je("Predictor9","PredictorAdd9"),Je("Predictor10","PredictorAdd10"),Je("Predictor11","PredictorAdd11"),Je("Predictor12","PredictorAdd12"),Je("Predictor13","PredictorAdd13");var ws=k.PredictorAdd2;at("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),at("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var Sr,o0=k.ColorIndexInverseTransform,Ei=k.MapARGB,Ti=k.VP8LColorIndexInverseTransformAlpha,fo=k.MapAlpha,lo=k.VP8LPredictorsAdd=[];lo.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var ho,uo,pa,ga,va,Va,ma,Xa,$n,Ni,Gt,rr,Er,Hr,Xi,co,_s,f0,Ch,kh,Ph,Oh,Ih,Dh,po,Rh,Bh,Mh,Uh=a(511),jh=a(2041),Hh=a(225),Wh=a(767),qh=0,qf=jh,l0=Hh,On=Wh,Jn=Uh,h0=0,u0=1,zh=2,c0=3,d0=4,zf=5,Gh=6,Gf=7,Vf=8,p0=9,Xf=10,sp=[2,3,7],op=[3,3,11],Vh=[280,256,256,256,40],fp=[0,1,1,1,0],lp=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],hp=[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],up=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],cp=8,Yf=[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],Kf=[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],go=null,dp=[[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]],pp=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Xh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],gp=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],vp=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],mp=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],xp=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],xa=[],li=[],Yi=[],wp=1,Yh=2,wa=[],Zn=[];zi("UpsampleRgbLinePair",ha,3),zi("UpsampleBgrLinePair",Zr,3),zi("UpsampleRgbaLinePair",mn,4),zi("UpsampleBgraLinePair",io,4),zi("UpsampleArgbLinePair",no,4),zi("UpsampleRgba4444LinePair",qa,2),zi("UpsampleRgb565LinePair",Wa,2);var _p=k.UpsampleRgbLinePair,yp=k.UpsampleBgrLinePair,Kh=k.UpsampleRgbaLinePair,$h=k.UpsampleBgraLinePair,Jh=k.UpsampleArgbLinePair,Zh=k.UpsampleRgba4444LinePair,bp=k.UpsampleRgb565LinePair,g0=16,v0=1<<g0-1,vo=-227,$f=482,Ap=6,Qh=0,Sp=a(256),Ep=a(256),Tp=a(256),Np=a(256),Lp=a($f-vo),Fp=a($f-vo);Gi("YuvToRgbRow",ha,3),Gi("YuvToBgrRow",Zr,3),Gi("YuvToRgbaRow",mn,4),Gi("YuvToBgraRow",io,4),Gi("YuvToArgbRow",no,4),Gi("YuvToRgba4444Row",qa,2),Gi("YuvToRgb565Row",Wa,2);var eu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],m0=[0,2,8],Cp=[8,7,6,4,4,2,2,2,1,1,1,1],kp=1;this.WebPDecodeRGBA=function(h,d,x,b,T){var O=u0,R=new Le,M=new Ot;R.ba=M,M.S=O,M.width=[M.width],M.height=[M.height];var j=M.width,X=M.height,ae=new dt;if(ae==null||h==null)var we=2;else e(ae!=null),we=za(h,d,x,ae.width,ae.height,ae.Pd,ae.Qd,ae.format,null);if(we!=0?j=0:(j!=null&&(j[0]=ae.width[0]),X!=null&&(X[0]=ae.height[0]),j=1),j){M.width=M.width[0],M.height=M.height[0],b!=null&&(b[0]=M.width),T!=null&&(T[0]=M.height);e:{if(b=new cs,(T=new Ie).data=h,T.w=d,T.ha=x,T.kd=1,d=[0],e(T!=null),((h=za(T.data,T.w,T.ha,null,null,null,d,null,T))==0||h==7)&&d[0]&&(h=4),(d=h)==0){if(e(R!=null),b.data=T.data,b.w=T.w+T.offset,b.ha=T.ha-T.offset,b.put=gt,b.ac=Vn,b.bc=ii,b.ma=R,T.xa){if((h=ve())==null){R=1;break e}if((function(Y,le){var de=[0],Te=[0],xe=[0];t:for(;;){if(Y==null)return 0;if(le==null)return Y.a=2,0;if(Y.l=le,Y.a=0,Ae(Y.m,le.data,le.w,le.ha),!ai(Y.m,de,Te,xe)){Y.a=3;break t}if(Y.xb=Yh,le.width=de[0],le.height=Te[0],!me(de[0],Te[0],1,Y,null))break t;return 1}return e(Y.a!=0),0})(h,b)){if(b=(d=ua(b.width,b.height,R.Oa,R.ba))==0){t:{b=h;r:for(;;){if(b==null){b=0;break t}if(e(b.s.yc!=null),e(b.s.Ya!=null),e(0<b.s.Wb),e((x=b.l)!=null),e((T=x.ma)!=null),b.xb!=0){if(b.ca=T.ba,b.tb=T.tb,e(b.ca!=null),!ao(T.Oa,x,c0)){b.a=2;break r}if(!_e(b,x.width)||x.da)break r;if((x.da||pt(b.ca.S))&&fi(),11>b.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),b.ca.f.kb.F!=null&&fi()),b.Pb&&0<b.s.ua&&b.s.vb.X==null&&!W(b.s.vb,b.s.Wa.Xa)){b.a=1;break r}b.xb=0}if(!ge(b,b.V,b.Ba,b.c,b.i,x.o,U))break r;T.Dc=b.Ma,b=1;break t}e(b.a!=0),b=0}b=!b}b&&(d=h.a)}else d=h.a}else{if((h=new Lf)==null){R=1;break e}if(h.Fa=T.na,h.P=T.P,h.qc=T.Sa,Ai(h,b)){if((d=ua(b.width,b.height,R.Oa,R.ba))==0){if(h.Aa=0,x=R.Oa,e((T=h)!=null),x!=null){if(0<(j=0>(j=x.Md)?0:100<j?255:255*j/100)){for(X=ae=0;4>X;++X)12>(we=T.pb[X]).lc&&(we.ia=j*Cp[0>we.lc?0:we.lc]>>3),ae|=we.ia;ae&&(alert("todo:VP8InitRandom"),T.ia=1)}T.Ga=x.Id,100<T.Ga?T.Ga=100:0>T.Ga&&(T.Ga=0)}(function(Y,le){if(Y==null)return 0;if(le==null)return Or(Y,2,"NULL VP8Io parameter in VP8Decode().");if(!Y.cb&&!Ai(Y,le))return 0;if(e(Y.cb),le.ac==null||le.ac(le)){le.ob&&(Y.L=0);var de=m0[Y.L];if(Y.L==2?(Y.yb=0,Y.zb=0):(Y.yb=le.v-de>>4,Y.zb=le.j-de>>4,0>Y.yb&&(Y.yb=0),0>Y.zb&&(Y.zb=0)),Y.Va=le.o+15+de>>4,Y.Hb=le.va+15+de>>4,Y.Hb>Y.za&&(Y.Hb=Y.za),Y.Va>Y.Ub&&(Y.Va=Y.Ub),0<Y.L){var Te=Y.ed;for(de=0;4>de;++de){var xe;if(Y.Qa.Cb){var Ne=Y.Qa.Lb[de];Y.Qa.Fb||(Ne+=Te.Tb)}else Ne=Te.Tb;for(xe=0;1>=xe;++xe){var Ce=Y.gd[de][xe],He=Ne;if(Te.Pc&&(He+=Te.vd[0],xe&&(He+=Te.od[0])),0<(He=0>He?0:63<He?63:He)){var De=He;0<Te.wb&&(De=4<Te.wb?De>>2:De>>1)>9-Te.wb&&(De=9-Te.wb),1>De&&(De=1),Ce.dd=De,Ce.tc=2*He+De,Ce.ld=40<=He?2:15<=He?1:0}else Ce.tc=0;Ce.La=xe}}}de=0}else Or(Y,6,"Frame setup failed"),de=Y.a;if(de=de==0){if(de){Y.$c=0,0<Y.Aa||(Y.Ic=kp);t:{de=Y.Ic,Te=4*(De=Y.za);var lt=32*De,Ze=De+1,kt=0<Y.L?De*(0<Y.Aa?2:1):0,nt=(Y.Aa==2?2:1)*De;if((Ce=Te+832+(xe=3*(16*de+m0[Y.L])/2*lt)+(Ne=Y.Fa!=null&&0<Y.Fa.length?Y.Kc.c*Y.Kc.i:0))!=Ce)de=0;else{if(Ce>Y.Vb){if(Y.Vb=0,Y.Ec=a(Ce),Y.Fc=0,Y.Ec==null){de=Or(Y,1,"no memory during frame initialization.");break t}Y.Vb=Ce}Ce=Y.Ec,He=Y.Fc,Y.Ac=Ce,Y.Bc=He,He+=Te,Y.Gd=s(lt,Xn),Y.Hd=0,Y.rb=s(Ze+1,xr),Y.sb=1,Y.wa=kt?s(kt,Bt):null,Y.Y=0,Y.D.Nb=0,Y.D.wa=Y.wa,Y.D.Y=Y.Y,0<Y.Aa&&(Y.D.Y+=De),e(!0),Y.oc=Ce,Y.pc=He,He+=832,Y.ya=s(nt,si),Y.aa=0,Y.D.ya=Y.ya,Y.D.aa=Y.aa,Y.Aa==2&&(Y.D.aa+=De),Y.R=16*De,Y.B=8*De,De=(lt=m0[Y.L])*Y.R,lt=lt/2*Y.B,Y.sa=Ce,Y.ta=He+De,Y.qa=Y.sa,Y.ra=Y.ta+16*de*Y.R+lt,Y.Ha=Y.qa,Y.Ia=Y.ra+8*de*Y.B+lt,Y.$c=0,He+=xe,Y.mb=Ne?Ce:null,Y.nb=Ne?He:null,e(He+Ne<=Y.Fc+Y.Vb),$o(Y),i(Y.Ac,Y.Bc,0,Te),de=1}}if(de){if(le.ka=0,le.y=Y.sa,le.O=Y.ta,le.f=Y.qa,le.N=Y.ra,le.ea=Y.Ha,le.Vd=Y.Ia,le.fa=Y.R,le.Rc=Y.B,le.F=null,le.J=0,!qh){for(de=-255;255>=de;++de)Uh[255+de]=0>de?-de:de;for(de=-1020;1020>=de;++de)jh[1020+de]=-128>de?-128:127<de?127:de;for(de=-112;112>=de;++de)Hh[112+de]=-16>de?-16:15<de?15:de;for(de=-255;510>=de;++de)Wh[255+de]=0>de?0:255<de?255:de;qh=1}ma=ps,Xa=Cf,Ni=Si,Gt=Zo,rr=Qo,$n=Ff,Er=i0,Hr=Ua,Xi=E,co=Z,_s=a0,f0=g,Ch=ie,kh=ce,Ph=Ma,Oh=to,Ih=r0,Dh=n0,li[0]=Mf,li[1]=kf,li[2]=Rf,li[3]=Bf,li[4]=Bi,li[5]=Uf,li[6]=Mi,li[7]=jf,li[8]=$s,li[9]=gs,xa[0]=If,xa[1]=Of,xa[2]=Ys,xa[3]=e0,xa[4]=Ra,xa[5]=Ks,xa[6]=Df,Yi[0]=Wf,Yi[1]=Pf,Yi[2]=Ba,Yi[3]=Hf,Yi[4]=Zs,Yi[5]=Js,Yi[6]=t0,de=1}else de=0}de&&(de=(function(Mt,Wr){for(Mt.M=0;Mt.M<Mt.Va;++Mt.M){var Pt,it=Mt.Jc[Mt.M&Mt.Xb],Ye=Mt.m,Tr=Mt;for(Pt=0;Pt<Tr.za;++Pt){var Et=Ye,Ut=Tr,lr=Ut.Ac,Qr=Ut.Bc+4*Pt,xn=Ut.zc,wr=Ut.ya[Ut.aa+Pt];if(Ut.Qa.Bb?wr.$b=fe(Et,Ut.Pa.jb[0])?2+fe(Et,Ut.Pa.jb[2]):fe(Et,Ut.Pa.jb[1]):wr.$b=0,Ut.kc&&(wr.Ad=fe(Et,Ut.Bd)),wr.Za=!fe(Et,145)+0,wr.Za){var hn=wr.Ob,wn=0;for(Ut=0;4>Ut;++Ut){var qr,Ht=xn[0+Ut];for(qr=0;4>qr;++qr){Ht=vp[lr[Qr+qr]][Ht];for(var Yt=Xh[fe(Et,Ht[0])];0<Yt;)Yt=Xh[2*Yt+fe(Et,Ht[Yt])];Ht=-Yt,lr[Qr+qr]=Ht}n(hn,wn,lr,Qr,4),wn+=4,xn[0+Ut]=Ht}}else Ht=fe(Et,156)?fe(Et,128)?1:3:fe(Et,163)?2:0,wr.Ob[0]=Ht,i(lr,Qr,Ht,4),i(xn,0,Ht,4);wr.Dd=fe(Et,142)?fe(Et,114)?fe(Et,183)?1:3:2:0}if(Tr.m.Ka)return Or(Mt,7,"Premature end-of-partition0 encountered.");for(;Mt.ja<Mt.za;++Mt.ja){if(Tr=it,Et=(Ye=Mt).rb[Ye.sb-1],lr=Ye.rb[Ye.sb+Ye.ja],Pt=Ye.ya[Ye.aa+Ye.ja],Qr=Ye.kc?Pt.Ad:0)Et.la=lr.la=0,Pt.Za||(Et.Na=lr.Na=0),Pt.Hc=0,Pt.Gc=0,Pt.ia=0;else{var _r,Kt;if(Et=lr,lr=Tr,Qr=Ye.Pa.Xc,xn=Ye.ya[Ye.aa+Ye.ja],wr=Ye.pb[xn.$b],Ut=xn.ad,hn=0,wn=Ye.rb[Ye.sb-1],Ht=qr=0,i(Ut,hn,0,384),xn.Za)var en=0,hi=Qr[3];else{Yt=a(16);var Nr=Et.Na+wn.Na;if(Nr=go(lr,Qr[1],Nr,wr.Eb,0,Yt,0),Et.Na=wn.Na=(0<Nr)+0,1<Nr)ma(Yt,0,Ut,hn);else{var En=Yt[0]+3>>3;for(Yt=0;256>Yt;Yt+=16)Ut[hn+Yt]=En}en=1,hi=Qr[0]}var nr=15&Et.la,zr=15&wn.la;for(Yt=0;4>Yt;++Yt){var In=1&zr;for(En=Kt=0;4>En;++En)nr=nr>>1|(In=(Nr=go(lr,hi,Nr=In+(1&nr),wr.Sc,en,Ut,hn))>en)<<7,Kt=Kt<<2|(3<Nr?3:1<Nr?2:Ut[hn+0]!=0),hn+=16;nr>>=4,zr=zr>>1|In<<7,qr=(qr<<8|Kt)>>>0}for(hi=nr,en=zr>>4,_r=0;4>_r;_r+=2){for(Kt=0,nr=Et.la>>4+_r,zr=wn.la>>4+_r,Yt=0;2>Yt;++Yt){for(In=1&zr,En=0;2>En;++En)Nr=In+(1&nr),nr=nr>>1|(In=0<(Nr=go(lr,Qr[2],Nr,wr.Qc,0,Ut,hn)))<<3,Kt=Kt<<2|(3<Nr?3:1<Nr?2:Ut[hn+0]!=0),hn+=16;nr>>=2,zr=zr>>1|In<<5}Ht|=Kt<<4*_r,hi|=nr<<4<<_r,en|=(240&zr)<<_r}Et.la=hi,wn.la=en,xn.Hc=qr,xn.Gc=Ht,xn.ia=43690&Ht?0:wr.ia,Qr=!(qr|Ht)}if(0<Ye.L&&(Ye.wa[Ye.Y+Ye.ja]=Ye.gd[Pt.$b][Pt.Za],Ye.wa[Ye.Y+Ye.ja].La|=!Qr),Tr.Ka)return Or(Mt,7,"Premature end-of-file encountered.")}if($o(Mt),Ye=Wr,Tr=1,Pt=(it=Mt).D,Et=0<it.L&&it.M>=it.zb&&it.M<=it.Va,it.Aa==0)t:{if(Pt.M=it.M,Pt.uc=Et,Kn(it,Pt),Tr=1,Pt=(Kt=it.D).Nb,Et=(Ht=m0[it.L])*it.R,lr=Ht/2*it.B,Yt=16*Pt*it.R,En=8*Pt*it.B,Qr=it.sa,xn=it.ta-Et+Yt,wr=it.qa,Ut=it.ra-lr+En,hn=it.Ha,wn=it.Ia-lr+En,zr=(nr=Kt.M)==0,qr=nr>=it.Va-1,it.Aa==2&&Kn(it,Kt),Kt.uc)for(In=(Nr=it).D.M,e(Nr.D.uc),Kt=Nr.yb;Kt<Nr.Hb;++Kt){en=Kt,hi=In;var _n=(Dn=(tn=Nr).D).Nb;_r=tn.R;var Dn=Dn.wa[Dn.Y+en],Rn=tn.sa,Tn=tn.ta+16*_n*_r+16*en,Bn=Dn.dd,fr=Dn.tc;if(fr!=0)if(e(3<=fr),tn.L==1)0<en&&Oh(Rn,Tn,_r,fr+4),Dn.La&&Dh(Rn,Tn,_r,fr),0<hi&&Ph(Rn,Tn,_r,fr+4),Dn.La&&Ih(Rn,Tn,_r,fr);else{var Mn=tn.B,ui=tn.qa,Ya=tn.ra+8*_n*Mn+8*en,Ki=tn.Ha,tn=tn.Ia+8*_n*Mn+8*en;_n=Dn.ld,0<en&&(Hr(Rn,Tn,_r,fr+4,Bn,_n),co(ui,Ya,Ki,tn,Mn,fr+4,Bn,_n)),Dn.La&&(f0(Rn,Tn,_r,fr,Bn,_n),kh(ui,Ya,Ki,tn,Mn,fr,Bn,_n)),0<hi&&(Er(Rn,Tn,_r,fr+4,Bn,_n),Xi(ui,Ya,Ki,tn,Mn,fr+4,Bn,_n)),Dn.La&&(_s(Rn,Tn,_r,fr,Bn,_n),Ch(ui,Ya,Ki,tn,Mn,fr,Bn,_n))}}if(it.ia&&alert("todo:DitherRow"),Ye.put!=null){if(Kt=16*nr,nr=16*(nr+1),zr?(Ye.y=it.sa,Ye.O=it.ta+Yt,Ye.f=it.qa,Ye.N=it.ra+En,Ye.ea=it.Ha,Ye.W=it.Ia+En):(Kt-=Ht,Ye.y=Qr,Ye.O=xn,Ye.f=wr,Ye.N=Ut,Ye.ea=hn,Ye.W=wn),qr||(nr-=Ht),nr>Ye.o&&(nr=Ye.o),Ye.F=null,Ye.J=null,it.Fa!=null&&0<it.Fa.length&&Kt<nr&&(Ye.J=or(it,Ye,Kt,nr-Kt),Ye.F=it.mb,Ye.F==null&&Ye.F.length==0)){Tr=Or(it,3,"Could not decode alpha data.");break t}Kt<Ye.j&&(Ht=Ye.j-Kt,Kt=Ye.j,e(!(1&Ht)),Ye.O+=it.R*Ht,Ye.N+=it.B*(Ht>>1),Ye.W+=it.B*(Ht>>1),Ye.F!=null&&(Ye.J+=Ye.width*Ht)),Kt<nr&&(Ye.O+=Ye.v,Ye.N+=Ye.v>>1,Ye.W+=Ye.v>>1,Ye.F!=null&&(Ye.J+=Ye.v),Ye.ka=Kt-Ye.j,Ye.U=Ye.va-Ye.v,Ye.T=nr-Kt,Tr=Ye.put(Ye))}Pt+1!=it.Ic||qr||(n(it.sa,it.ta-Et,Qr,xn+16*it.R,Et),n(it.qa,it.ra-lr,wr,Ut+8*it.B,lr),n(it.Ha,it.Ia-lr,hn,wn+8*it.B,lr))}if(!Tr)return Or(Mt,6,"Output aborted.")}return 1})(Y,le)),le.bc!=null&&le.bc(le),de&=1}return de?(Y.cb=0,de):0})(h,b)||(d=h.a)}}else d=h.a}d==0&&R.Oa!=null&&R.Oa.fd&&(d=so(R.ba))}R=d}O=R!=0?null:11>O?M.f.RGBA.eb:M.f.kb.y}else O=null;return O};var tu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(k,ee){for(var S="",I=0;I<4;I++)S+=String.fromCharCode(k[ee++]);return S}function u(k,ee){return k[ee+0]|k[ee+1]<<8}function p(k,ee){return(k[ee+0]|k[ee+1]<<8|k[ee+2]<<16)>>>0}function v(k,ee){return(k[ee+0]|k[ee+1]<<8|k[ee+2]<<16|k[ee+3]<<24)>>>0}new f;var c=[0],w=[0],m=[],y=new f,A=t,D=(function(k,ee){var S={},I=0,G=!1,te=0,he=0;if(S.frames=[],!(function(_,L){for(var N=0;N<4;N++)if(_[L+N]!="RIFF".charCodeAt(N))return!0;return!1})(k,ee)){for(v(k,ee+=4),ee+=8;ee<k.length;){var be=l(k,ee),ye=v(k,ee+=4);ee+=4;var pe=ye+(1&ye);switch(be){case"VP8 ":case"VP8L":S.frames[I]===void 0&&(S.frames[I]={}),(ke=S.frames[I]).src_off=G?he:ee-8,ke.src_size=te+ye+8,I++,G&&(G=!1,te=0,he=0);break;case"VP8X":(ke=S.header={}).feature_flags=k[ee];var Ae=ee+4;ke.canvas_width=1+p(k,Ae),Ae+=3,ke.canvas_height=1+p(k,Ae),Ae+=3;break;case"ALPH":G=!0,te=pe+8,he=ee-8;break;case"ANIM":(ke=S.header).bgcolor=v(k,ee),Ae=ee+4,ke.loop_count=u(k,Ae),Ae+=2;break;case"ANMF":var Ue,ke;(ke=S.frames[I]={}).offset_x=2*p(k,ee),ee+=3,ke.offset_y=2*p(k,ee),ee+=3,ke.width=1+p(k,ee),ee+=3,ke.height=1+p(k,ee),ee+=3,ke.duration=p(k,ee),ee+=3,Ue=k[ee++],ke.dispose=1&Ue,ke.blend=Ue>>1&1}be!="ANMF"&&(ee+=pe)}return S}})(A,0);D.response=A,D.rgbaoutput=!0,D.dataurl=!1;var P=D.header?D.header:null,B=D.frames?D.frames:null;if(P){P.loop_counter=P.loop_count,c=[P.canvas_height],w=[P.canvas_width];for(var re=0;re<B.length&&B[re].blend!=0;re++);}var ue=B[0],V=y.WebPDecodeRGBA(A,ue.src_off,ue.src_size,w,c);ue.rgba=V,ue.imgwidth=w[0],ue.imgheight=c[0];for(var z=0;z<w[0]*c[0]*4;z++)m[z]=V[z];return this.width=w,this.height=c,this.data=m,this}(function(t){var e,r,n,i,a,s,o,f,l,u=function(_){return _=_||{},this.isStrokeTransparent=_.isStrokeTransparent||!1,this.strokeOpacity=_.strokeOpacity||1,this.strokeStyle=_.strokeStyle||"#000000",this.fillStyle=_.fillStyle||"#000000",this.isFillTransparent=_.isFillTransparent||!1,this.fillOpacity=_.fillOpacity||1,this.font=_.font||"10px sans-serif",this.textBaseline=_.textBaseline||"alphabetic",this.textAlign=_.textAlign||"left",this.lineWidth=_.lineWidth||1,this.lineJoin=_.lineJoin||"miter",this.lineCap=_.lineCap||"butt",this.path=_.path||[],this.transform=_.transform!==void 0?_.transform.clone():new f,this.globalCompositeOperation=_.globalCompositeOperation||"normal",this.globalAlpha=_.globalAlpha||1,this.clip_path=_.clip_path||[],this.currentPoint=_.currentPoint||new s,this.miterLimit=_.miterLimit||10,this.lastPoint=_.lastPoint||new s,this.lineDashOffset=_.lineDashOffset||0,this.lineDash=_.lineDash||[],this.margin=_.margin||[0,0,0,0],this.prevPageLastElemOffset=_.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _.ignoreClearRect!="boolean"||_.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),e=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,f=this.internal.Matrix,l=new u}]);var p=function(_){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var L=_;Object.defineProperty(this,"pdf",{get:function(){return L}});var N=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return N},set:function(W){N=!!W}});var F=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return F},set:function(W){F=!!W}});var q=0;Object.defineProperty(this,"posX",{get:function(){return q},set:function(W){isNaN(W)||(q=W)}});var ne=0;Object.defineProperty(this,"posY",{get:function(){return ne},set:function(W){isNaN(W)||(ne=W)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(W){var je;typeof W=="number"?je=[W,W,W,W]:((je=new Array(4))[0]=W[0],je[1]=W.length>=2?W[1]:je[0],je[2]=W.length>=3?W[2]:je[0],je[3]=W.length>=4?W[3]:je[1]),l.margin=je}});var oe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return oe},set:function(W){oe=W}});var se=0;Object.defineProperty(this,"lastBreak",{get:function(){return se},set:function(W){se=W}});var fe=[];Object.defineProperty(this,"pageBreaks",{get:function(){return fe},set:function(W){fe=W}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(W){W instanceof u&&(l=W)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(W){l.path=W}});var Fe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Fe},set:function(W){Fe=W}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(W){var je;je=v(W),this.ctx.fillStyle=je.style,this.ctx.isFillTransparent=je.a===0,this.ctx.fillOpacity=je.a,this.pdf.setFillColor(je.r,je.g,je.b,{a:je.a}),this.pdf.setTextColor(je.r,je.g,je.b,{a:je.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(W){var je=v(W);this.ctx.strokeStyle=je.style,this.ctx.isStrokeTransparent=je.a===0,this.ctx.strokeOpacity=je.a,je.a===0?this.pdf.setDrawColor(255,255,255):(je.a,this.pdf.setDrawColor(je.r,je.g,je.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(W){["butt","round","square"].indexOf(W)!==-1&&(this.ctx.lineCap=W,this.pdf.setLineCap(W))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(W){isNaN(W)||(this.ctx.lineWidth=W,this.pdf.setLineWidth(W))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(W){["bevel","round","miter"].indexOf(W)!==-1&&(this.ctx.lineJoin=W,this.pdf.setLineJoin(W))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(W){isNaN(W)||(this.ctx.miterLimit=W,this.pdf.setMiterLimit(W))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(W){this.ctx.textBaseline=W}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(W){["right","end","center","left","start"].indexOf(W)!==-1&&(this.ctx.textAlign=W)}});var Re=null,qe=null,ze=null;Object.defineProperty(this,"fontFaces",{get:function(){return ze},set:function(W){Re=null,qe=null,ze=W}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(W){var je;if(this.ctx.font=W,(je=/^\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(W))!==null){var Be=je[1];je[2];var Qe=je[3],Pe=je[4];je[5];var st=je[6],Je=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Pe)[2];Pe=Math.floor(Je==="px"?parseFloat(Pe)*this.pdf.internal.scaleFactor:Je==="em"?parseFloat(Pe)*this.pdf.getFontSize():parseFloat(Pe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Pe);var ut=(function(at){var dr,Rt,Tt=[],Nt=at.trim();if(Nt==="")return Sl;if(Nt in hc)return[hc[Nt]];for(;Nt!=="";){switch(Rt=null,dr=(Nt=cc(Nt)).charAt(0)){case'"':case"'":Rt=cv(Nt.substring(1),dr);break;default:Rt=dv(Nt)}if(Rt===null||(Tt.push(Rt[0]),(Nt=cc(Rt[1]))!==""&&Nt.charAt(0)!==","))return Sl;Nt=Nt.replace(/^,/,"")}return Tt})(st);if(this.fontFaces){var ft=(function(at,dr){var Rt=at.getFontList(),Tt=JSON.stringify(Rt);if(Re===null||qe!==Tt){var Nt=(function(ar){var ct=[];return Object.keys(ar).forEach(function(Xt){ar[Xt].forEach(function(pt){var wt=null;switch(pt){case"bold":wt={family:Xt,weight:"bold"};break;case"italic":wt={family:Xt,style:"italic"};break;case"bolditalic":wt={family:Xt,weight:"bold",style:"italic"};break;case"":case"normal":wt={family:Xt}}wt!==null&&(wt.ref={name:Xt,style:pt},ct.push(wt))})}),ct})(Rt);Re=(function(ar){for(var ct={},Xt=0;Xt<ar.length;++Xt){var pt=Al(ar[Xt]),wt=pt.family,sr=pt.stretch,Ot=pt.style,dt=pt.weight;ct[wt]=ct[wt]||{},ct[wt][sr]=ct[wt][sr]||{},ct[wt][sr][Ot]=ct[wt][sr][Ot]||{},ct[wt][sr][Ot][dt]=pt}return ct})(Nt.concat(dr)),qe=Tt}return Re})(this.pdf,this.fontFaces),Ft=ut.map(function(at){return{family:at,stretch:"normal",weight:Qe,style:Be}}),Ct=(function(at,dr,Rt){for(var Tt=(Rt=Rt||{}).defaultFontFamily||"times",Nt=Object.assign({},uv,Rt.genericFontFamilies||{}),ar=null,ct=null,Xt=0;Xt<dr.length;++Xt)if(Nt[(ar=Al(dr[Xt])).family]&&(ar.family=Nt[ar.family]),at.hasOwnProperty(ar.family)){ct=at[ar.family];break}if(!(ct=ct||at[Tt]))throw new Error("Could not find a font-family for the rule '"+uc(ar)+"' and default family '"+Tt+"'.");if(ct=(function(pt,wt){if(wt[pt])return wt[pt];var sr=$l[pt],Ot=sr<=$l.normal?-1:1,dt=lc(wt,s2,sr,Ot);if(!dt)throw new Error("Could not find a matching font-stretch value for "+pt);return dt})(ar.stretch,ct),ct=(function(pt,wt){if(wt[pt])return wt[pt];for(var sr=a2[pt],Ot=0;Ot<sr.length;++Ot)if(wt[sr[Ot]])return wt[sr[Ot]];throw new Error("Could not find a matching font-style for "+pt)})(ar.style,ct),!(ct=(function(pt,wt){if(wt[pt])return wt[pt];if(pt===400&&wt[500])return wt[500];if(pt===500&&wt[400])return wt[400];var sr=hv[pt],Ot=lc(wt,o2,sr,pt<400?-1:1);if(!Ot)throw new Error("Could not find a matching font-weight for value "+pt);return Ot})(ar.weight,ct)))throw new Error("Failed to resolve a font for the rule '"+uc(ar)+"'.");return ct})(ft,Ft);this.pdf.setFont(Ct.ref.name,Ct.ref.style)}else{var mt="";(Qe==="bold"||parseInt(Qe,10)>=700||Be==="bold")&&(mt="bold"),Be==="italic"&&(mt+="italic"),mt.length===0&&(mt="normal");for(var Dt="",At={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"},rt=0;rt<ut.length;rt++){if(this.pdf.internal.getFont(ut[rt],mt,{noFallback:!0,disableWarning:!0})!==void 0){Dt=ut[rt];break}if(mt==="bolditalic"&&this.pdf.internal.getFont(ut[rt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Dt=ut[rt],mt="bold";else if(this.pdf.internal.getFont(ut[rt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Dt=ut[rt],mt="normal";break}}if(Dt===""){for(var yt=0;yt<ut.length;yt++)if(At[ut[yt]]){Dt=At[ut[yt]];break}}Dt=Dt===""?"Times":Dt,this.pdf.setFont(Dt,mt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(W){this.ctx.globalCompositeOperation=W}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(W){this.ctx.globalAlpha=W}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(W){this.ctx.lineDashOffset=W,ke.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(W){this.ctx.lineDash=W,ke.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(W){this.ctx.ignoreClearRect=!!W}})};p.prototype.setLineDash=function(_){this.lineDash=_},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){B.call(this,"fill",!1)},p.prototype.stroke=function(){B.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(_,L){if(isNaN(_)||isNaN(L))throw ir.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var N=this.ctx.transform.applyToPoint(new s(_,L));this.path.push({type:"mt",x:N.x,y:N.y}),this.ctx.lastPoint=new s(_,L)},p.prototype.closePath=function(){var _=new s(0,0),L=0;for(L=this.path.length-1;L!==-1;L--)if(this.path[L].type==="begin"&&Vt(this.path[L+1])==="object"&&typeof this.path[L+1].x=="number"){_=new s(this.path[L+1].x,this.path[L+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(_.x,_.y)},p.prototype.lineTo=function(_,L){if(isNaN(_)||isNaN(L))throw ir.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var N=this.ctx.transform.applyToPoint(new s(_,L));this.path.push({type:"lt",x:N.x,y:N.y}),this.ctx.lastPoint=new s(N.x,N.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),B.call(this,null,!0)},p.prototype.quadraticCurveTo=function(_,L,N,F){if(isNaN(N)||isNaN(F)||isNaN(_)||isNaN(L))throw ir.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var q=this.ctx.transform.applyToPoint(new s(N,F)),ne=this.ctx.transform.applyToPoint(new s(_,L));this.path.push({type:"qct",x1:ne.x,y1:ne.y,x:q.x,y:q.y}),this.ctx.lastPoint=new s(q.x,q.y)},p.prototype.bezierCurveTo=function(_,L,N,F,q,ne){if(isNaN(q)||isNaN(ne)||isNaN(_)||isNaN(L)||isNaN(N)||isNaN(F))throw ir.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var oe=this.ctx.transform.applyToPoint(new s(q,ne)),se=this.ctx.transform.applyToPoint(new s(_,L)),fe=this.ctx.transform.applyToPoint(new s(N,F));this.path.push({type:"bct",x1:se.x,y1:se.y,x2:fe.x,y2:fe.y,x:oe.x,y:oe.y}),this.ctx.lastPoint=new s(oe.x,oe.y)},p.prototype.arc=function(_,L,N,F,q,ne){if(isNaN(_)||isNaN(L)||isNaN(N)||isNaN(F)||isNaN(q))throw ir.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ne=!!ne,!this.ctx.transform.isIdentity){var oe=this.ctx.transform.applyToPoint(new s(_,L));_=oe.x,L=oe.y;var se=this.ctx.transform.applyToPoint(new s(0,N)),fe=this.ctx.transform.applyToPoint(new s(0,0));N=Math.sqrt(Math.pow(se.x-fe.x,2)+Math.pow(se.y-fe.y,2))}Math.abs(q-F)>=2*Math.PI&&(F=0,q=2*Math.PI),this.path.push({type:"arc",x:_,y:L,radius:N,startAngle:F,endAngle:q,counterclockwise:ne})},p.prototype.arcTo=function(_,L,N,F,q){throw new Error("arcTo not implemented.")},p.prototype.rect=function(_,L,N,F){if(isNaN(_)||isNaN(L)||isNaN(N)||isNaN(F))throw ir.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(_,L),this.lineTo(_+N,L),this.lineTo(_+N,L+F),this.lineTo(_,L+F),this.lineTo(_,L),this.lineTo(_+N,L),this.lineTo(_,L)},p.prototype.fillRect=function(_,L,N,F){if(isNaN(_)||isNaN(L)||isNaN(N)||isNaN(F))throw ir.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!c.call(this)){var q={};this.lineCap!=="butt"&&(q.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(q.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(_,L,N,F),this.fill(),q.hasOwnProperty("lineCap")&&(this.lineCap=q.lineCap),q.hasOwnProperty("lineJoin")&&(this.lineJoin=q.lineJoin)}},p.prototype.strokeRect=function(_,L,N,F){if(isNaN(_)||isNaN(L)||isNaN(N)||isNaN(F))throw ir.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(_,L,N,F),this.stroke())},p.prototype.clearRect=function(_,L,N,F){if(isNaN(_)||isNaN(L)||isNaN(N)||isNaN(F))throw ir.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(_,L,N,F))},p.prototype.save=function(_){_=typeof _!="boolean"||_;for(var L=this.pdf.internal.getCurrentPageInfo().pageNumber,N=0;N<this.pdf.internal.getNumberOfPages();N++)this.pdf.setPage(N+1),this.pdf.internal.out("q");if(this.pdf.setPage(L),_){this.ctx.fontSize=this.pdf.internal.getFontSize();var F=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=F}},p.prototype.restore=function(_){_=typeof _!="boolean"||_;for(var L=this.pdf.internal.getCurrentPageInfo().pageNumber,N=0;N<this.pdf.internal.getNumberOfPages();N++)this.pdf.setPage(N+1),this.pdf.internal.out("Q");this.pdf.setPage(L),_&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var v=function(_){var L,N,F,q;if(_.isCanvasGradient===!0&&(_=_.getColor()),!_)return{r:0,g:0,b:0,a:0,style:_};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_))L=0,N=0,F=0,q=0;else{var ne=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(ne!==null)L=parseInt(ne[1]),N=parseInt(ne[2]),F=parseInt(ne[3]),q=1;else if((ne=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)L=parseInt(ne[1]),N=parseInt(ne[2]),F=parseInt(ne[3]),q=parseFloat(ne[4]);else{if(q=1,typeof _=="string"&&_.charAt(0)!=="#"){var oe=new Z1(_);_=oe.ok?oe.toHex():"#000000"}_.length===4?(L=_.substring(1,2),L+=L,N=_.substring(2,3),N+=N,F=_.substring(3,4),F+=F):(L=_.substring(1,3),N=_.substring(3,5),F=_.substring(5,7)),L=parseInt(L,16),N=parseInt(N,16),F=parseInt(F,16)}}return{r:L,g:N,b:F,a:q,style:_}},c=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(_,L,N,F){if(isNaN(L)||isNaN(N)||typeof _!="string")throw ir.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(F=isNaN(F)?void 0:F,!c.call(this)){var q=pe(this.ctx.transform.rotation),ne=this.ctx.transform.scaleX;I.call(this,{text:_,x:L,y:N,scale:ne,angle:q,align:this.textAlign,maxWidth:F})}},p.prototype.strokeText=function(_,L,N,F){if(isNaN(L)||isNaN(N)||typeof _!="string")throw ir.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){F=isNaN(F)?void 0:F;var q=pe(this.ctx.transform.rotation),ne=this.ctx.transform.scaleX;I.call(this,{text:_,x:L,y:N,scale:ne,renderingMode:"stroke",angle:q,align:this.textAlign,maxWidth:F})}},p.prototype.measureText=function(_){if(typeof _!="string")throw ir.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var L=this.pdf,N=this.pdf.internal.scaleFactor,F=L.internal.getFontSize(),q=L.getStringUnitWidth(_)*F/L.internal.scaleFactor;return new function(ne){var oe=(ne=ne||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return oe}}),this}({width:q*=Math.round(96*N/72*1e4)/1e4})},p.prototype.scale=function(_,L){if(isNaN(_)||isNaN(L))throw ir.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var N=new f(_,0,0,L,0,0);this.ctx.transform=this.ctx.transform.multiply(N)},p.prototype.rotate=function(_){if(isNaN(_))throw ir.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var L=new f(Math.cos(_),Math.sin(_),-Math.sin(_),Math.cos(_),0,0);this.ctx.transform=this.ctx.transform.multiply(L)},p.prototype.translate=function(_,L){if(isNaN(_)||isNaN(L))throw ir.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var N=new f(1,0,0,1,_,L);this.ctx.transform=this.ctx.transform.multiply(N)},p.prototype.transform=function(_,L,N,F,q,ne){if(isNaN(_)||isNaN(L)||isNaN(N)||isNaN(F)||isNaN(q)||isNaN(ne))throw ir.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var oe=new f(_,L,N,F,q,ne);this.ctx.transform=this.ctx.transform.multiply(oe)},p.prototype.setTransform=function(_,L,N,F,q,ne){_=isNaN(_)?1:_,L=isNaN(L)?0:L,N=isNaN(N)?0:N,F=isNaN(F)?1:F,q=isNaN(q)?0:q,ne=isNaN(ne)?0:ne,this.ctx.transform=new f(_,L,N,F,q,ne)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(_,L,N,F,q,ne,oe,se,fe){var Fe=this.pdf.getImageProperties(_),Re=1,qe=1,ze=1,W=1;F!==void 0&&se!==void 0&&(ze=se/F,W=fe/q,Re=Fe.width/F*se/F,qe=Fe.height/q*fe/q),ne===void 0&&(ne=L,oe=N,L=0,N=0),F!==void 0&&se===void 0&&(se=F,fe=q),F===void 0&&se===void 0&&(se=Fe.width,fe=Fe.height);var je=this.ctx.transform.decompose(),Be=pe(je.rotate.shx),Qe=new f,Pe=(Qe=(Qe=(Qe=Qe.multiply(je.translate)).multiply(je.skew)).multiply(je.scale)).applyToRectangle(new o(ne-L*ze,oe-N*W,F*Re,q*qe));if(this.autoPaging){for(var st,Je=y.call(this,Pe),ut=[],ft=0;ft<Je.length;ft+=1)ut.indexOf(Je[ft])===-1&&ut.push(Je[ft]);P(ut);for(var Ft=ut[0],Ct=ut[ut.length-1],mt=Ft;mt<Ct+1;mt++){this.pdf.setPage(mt);var Dt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],At=mt===1?this.posY+this.margin[0]:this.margin[0],rt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],yt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],at=mt===1?0:rt+(mt-2)*yt;if(this.ctx.clip_path.length!==0){var dr=this.path;st=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(st,this.posX+this.margin[3],-at+At+this.ctx.prevPageLastElemOffset),re.call(this,"fill",!0),this.path=dr}var Rt=JSON.parse(JSON.stringify(Pe));Rt=D([Rt],this.posX+this.margin[3],-at+At+this.ctx.prevPageLastElemOffset)[0];var Tt=(mt>Ft||mt<Ct)&&m.call(this);Tt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Dt,yt,null).clip().discardPath()),this.pdf.addImage(_,"JPEG",Rt.x,Rt.y,Rt.w,Rt.h,null,null,Be),Tt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(_,"JPEG",Pe.x,Pe.y,Pe.w,Pe.h,null,null,Be)};var y=function(_,L,N){var F=[];L=L||this.pdf.internal.pageSize.width,N=N||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var q=this.posY+this.ctx.prevPageLastElemOffset;switch(_.type){default:case"mt":case"lt":F.push(Math.floor((_.y+q)/N)+1);break;case"arc":F.push(Math.floor((_.y+q-_.radius)/N)+1),F.push(Math.floor((_.y+q+_.radius)/N)+1);break;case"qct":var ne=Ae(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);F.push(Math.floor((ne.y+q)/N)+1),F.push(Math.floor((ne.y+ne.h+q)/N)+1);break;case"bct":var oe=Ue(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);F.push(Math.floor((oe.y+q)/N)+1),F.push(Math.floor((oe.y+oe.h+q)/N)+1);break;case"rect":F.push(Math.floor((_.y+q)/N)+1),F.push(Math.floor((_.y+_.h+q)/N)+1)}for(var se=0;se<F.length;se+=1)for(;this.pdf.internal.getNumberOfPages()<F[se];)A.call(this);return F},A=function(){var _=this.fillStyle,L=this.strokeStyle,N=this.font,F=this.lineCap,q=this.lineWidth,ne=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=L,this.font=N,this.lineCap=F,this.lineWidth=q,this.lineJoin=ne},D=function(_,L,N){for(var F=0;F<_.length;F++)switch(_[F].type){case"bct":_[F].x2+=L,_[F].y2+=N;case"qct":_[F].x1+=L,_[F].y1+=N;default:_[F].x+=L,_[F].y+=N}return _},P=function(_){return _.sort(function(L,N){return L-N})},B=function(_,L){var N=this.fillStyle,F=this.strokeStyle,q=this.lineCap,ne=this.lineWidth,oe=Math.abs(ne*this.ctx.transform.scaleX),se=this.lineJoin;if(this.autoPaging){for(var fe,Fe,Re=JSON.parse(JSON.stringify(this.path)),qe=JSON.parse(JSON.stringify(this.path)),ze=[],W=0;W<qe.length;W++)if(qe[W].x!==void 0)for(var je=y.call(this,qe[W]),Be=0;Be<je.length;Be+=1)ze.indexOf(je[Be])===-1&&ze.push(je[Be]);for(var Qe=0;Qe<ze.length;Qe++)for(;this.pdf.internal.getNumberOfPages()<ze[Qe];)A.call(this);P(ze);for(var Pe=ze[0],st=ze[ze.length-1],Je=Pe;Je<st+1;Je++){this.pdf.setPage(Je),this.fillStyle=N,this.strokeStyle=F,this.lineCap=q,this.lineWidth=oe,this.lineJoin=se;var ut=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ft=Je===1?this.posY+this.margin[0]:this.margin[0],Ft=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ct=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],mt=Je===1?0:Ft+(Je-2)*Ct;if(this.ctx.clip_path.length!==0){var Dt=this.path;fe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(fe,this.posX+this.margin[3],-mt+ft+this.ctx.prevPageLastElemOffset),re.call(this,_,!0),this.path=Dt}if(Fe=JSON.parse(JSON.stringify(Re)),this.path=D(Fe,this.posX+this.margin[3],-mt+ft+this.ctx.prevPageLastElemOffset),L===!1||Je===0){var At=(Je>Pe||Je<st)&&m.call(this);At&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ut,Ct,null).clip().discardPath()),re.call(this,_,L),At&&this.pdf.restoreGraphicsState()}this.lineWidth=ne}this.path=Re}else this.lineWidth=oe,re.call(this,_,L),this.lineWidth=ne},re=function(_,L){if((_!=="stroke"||L||!w.call(this))&&(_==="stroke"||L||!c.call(this))){for(var N,F,q=[],ne=this.path,oe=0;oe<ne.length;oe++){var se=ne[oe];switch(se.type){case"begin":q.push({begin:!0});break;case"close":q.push({close:!0});break;case"mt":q.push({start:se,deltas:[],abs:[]});break;case"lt":var fe=q.length;if(ne[oe-1]&&!isNaN(ne[oe-1].x)&&(N=[se.x-ne[oe-1].x,se.y-ne[oe-1].y],fe>0)){for(;fe>=0;fe--)if(q[fe-1].close!==!0&&q[fe-1].begin!==!0){q[fe-1].deltas.push(N),q[fe-1].abs.push(se);break}}break;case"bct":N=[se.x1-ne[oe-1].x,se.y1-ne[oe-1].y,se.x2-ne[oe-1].x,se.y2-ne[oe-1].y,se.x-ne[oe-1].x,se.y-ne[oe-1].y],q[q.length-1].deltas.push(N);break;case"qct":var Fe=ne[oe-1].x+2/3*(se.x1-ne[oe-1].x),Re=ne[oe-1].y+2/3*(se.y1-ne[oe-1].y),qe=se.x+2/3*(se.x1-se.x),ze=se.y+2/3*(se.y1-se.y),W=se.x,je=se.y;N=[Fe-ne[oe-1].x,Re-ne[oe-1].y,qe-ne[oe-1].x,ze-ne[oe-1].y,W-ne[oe-1].x,je-ne[oe-1].y],q[q.length-1].deltas.push(N);break;case"arc":q.push({deltas:[],abs:[],arc:!0}),Array.isArray(q[q.length-1].abs)&&q[q.length-1].abs.push(se)}}F=L?null:_==="stroke"?"stroke":"fill";for(var Be=!1,Qe=0;Qe<q.length;Qe++)if(q[Qe].arc)for(var Pe=q[Qe].abs,st=0;st<Pe.length;st++){var Je=Pe[st];Je.type==="arc"?z.call(this,Je.x,Je.y,Je.radius,Je.startAngle,Je.endAngle,Je.counterclockwise,void 0,L,!Be):G.call(this,Je.x,Je.y),Be=!0}else if(q[Qe].close===!0)this.pdf.internal.out("h"),Be=!1;else if(q[Qe].begin!==!0){var ut=q[Qe].start.x,ft=q[Qe].start.y;te.call(this,q[Qe].deltas,ut,ft),Be=!0}F&&k.call(this,F),L&&ee.call(this)}},ue=function(_){var L=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,N=L*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _-N;case"top":return _+L-N;case"hanging":return _+L-2*N;case"middle":return _+L/2-N;default:return _}},V=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var _=function(){};return _.colorStops=[],_.addColorStop=function(L,N){this.colorStops.push([L,N])},_.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},_.isCanvasGradient=!0,_},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var z=function(_,L,N,F,q,ne,oe,se,fe){for(var Fe=be.call(this,N,F,q,ne),Re=0;Re<Fe.length;Re++){var qe=Fe[Re];Re===0&&(fe?S.call(this,qe.x1+_,qe.y1+L):G.call(this,qe.x1+_,qe.y1+L)),he.call(this,_,L,qe.x2,qe.y2,qe.x3,qe.y3,qe.x4,qe.y4)}se?ee.call(this):k.call(this,oe)},k=function(_){switch(_){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ee=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(_,L){this.pdf.internal.out(r(_)+" "+n(L)+" m")},I=function(_){var L;switch(_.align){case"right":case"end":L="right";break;case"center":L="center";break;default:L="left"}var N,F,q,ne=this.pdf.getTextDimensions(_.text),oe=ue.call(this,_.y),se=V.call(this,oe)-ne.h,fe=this.ctx.transform.applyToPoint(new s(_.x,oe));if(this.autoPaging){var Fe=this.ctx.transform.decompose(),Re=new f;Re=(Re=(Re=Re.multiply(Fe.translate)).multiply(Fe.skew)).multiply(Fe.scale);for(var qe=this.ctx.transform.applyToRectangle(new o(_.x,oe,ne.w,ne.h)),ze=Re.applyToRectangle(new o(_.x,se,ne.w,ne.h)),W=y.call(this,ze),je=[],Be=0;Be<W.length;Be+=1)je.indexOf(W[Be])===-1&&je.push(W[Be]);P(je);for(var Qe=je[0],Pe=je[je.length-1],st=Qe;st<Pe+1;st++){this.pdf.setPage(st);var Je=st===1?this.posY+this.margin[0]:this.margin[0],ut=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ft=this.pdf.internal.pageSize.height-this.margin[2],Ft=ft-this.margin[0],Ct=this.pdf.internal.pageSize.width-this.margin[1],mt=Ct-this.margin[3],Dt=st===1?0:ut+(st-2)*Ft;if(this.ctx.clip_path.length!==0){var At=this.path;N=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=D(N,this.posX+this.margin[3],-1*Dt+Je),re.call(this,"fill",!0),this.path=At}var rt=D([JSON.parse(JSON.stringify(ze))],this.posX+this.margin[3],-Dt+Je+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(F=this.pdf.internal.getFontSize(),this.pdf.setFontSize(F*_.scale),q=this.lineWidth,this.lineWidth=q*_.scale);var yt=this.autoPaging!=="text";if(yt||rt.y+rt.h<=ft){if(yt||rt.y>=Je&&rt.x<=Ct){var at=yt?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||Ct-rt.x)[0],dr=D([JSON.parse(JSON.stringify(qe))],this.posX+this.margin[3],-Dt+Je+this.ctx.prevPageLastElemOffset)[0],Rt=yt&&(st>Qe||st<Pe)&&m.call(this);Rt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],mt,Ft,null).clip().discardPath()),this.pdf.text(at,dr.x,dr.y,{angle:_.angle,align:L,renderingMode:_.renderingMode}),Rt&&this.pdf.restoreGraphicsState()}}else rt.y<ft&&(this.ctx.prevPageLastElemOffset+=ft-rt.y);_.scale>=.01&&(this.pdf.setFontSize(F),this.lineWidth=q)}}else _.scale>=.01&&(F=this.pdf.internal.getFontSize(),this.pdf.setFontSize(F*_.scale),q=this.lineWidth,this.lineWidth=q*_.scale),this.pdf.text(_.text,fe.x+this.posX,fe.y+this.posY,{angle:_.angle,align:L,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(F),this.lineWidth=q)},G=function(_,L,N,F){N=N||0,F=F||0,this.pdf.internal.out(r(_+N)+" "+n(L+F)+" l")},te=function(_,L,N){return this.pdf.lines(_,L,N,null,null)},he=function(_,L,N,F,q,ne,oe,se){this.pdf.internal.out([e(i(N+_)),e(a(F+L)),e(i(q+_)),e(a(ne+L)),e(i(oe+_)),e(a(se+L)),"c"].join(" "))},be=function(_,L,N,F){for(var q=2*Math.PI,ne=Math.PI/2;L>N;)L-=q;var oe=Math.abs(N-L);oe<q&&F&&(oe=q-oe);for(var se=[],fe=F?-1:1,Fe=L;oe>1e-5;){var Re=Fe+fe*Math.min(oe,ne);se.push(ye.call(this,_,Fe,Re)),oe-=Math.abs(Re-Fe),Fe=Re}return se},ye=function(_,L,N){var F=(N-L)/2,q=_*Math.cos(F),ne=_*Math.sin(F),oe=q,se=-ne,fe=oe*oe+se*se,Fe=fe+oe*q+se*ne,Re=4/3*(Math.sqrt(2*fe*Fe)-Fe)/(oe*ne-se*q),qe=oe-Re*se,ze=se+Re*oe,W=qe,je=-ze,Be=F+L,Qe=Math.cos(Be),Pe=Math.sin(Be);return{x1:_*Math.cos(L),y1:_*Math.sin(L),x2:qe*Qe-ze*Pe,y2:qe*Pe+ze*Qe,x3:W*Qe-je*Pe,y3:W*Pe+je*Qe,x4:_*Math.cos(N),y4:_*Math.sin(N)}},pe=function(_){return 180*_/Math.PI},Ae=function(_,L,N,F,q,ne){var oe=_+.5*(N-_),se=L+.5*(F-L),fe=q+.5*(N-q),Fe=ne+.5*(F-ne),Re=Math.min(_,q,oe,fe),qe=Math.max(_,q,oe,fe),ze=Math.min(L,ne,se,Fe),W=Math.max(L,ne,se,Fe);return new o(Re,ze,qe-Re,W-ze)},Ue=function(_,L,N,F,q,ne,oe,se){var fe,Fe,Re,qe,ze,W,je,Be,Qe,Pe,st,Je,ut,ft,Ft=N-_,Ct=F-L,mt=q-N,Dt=ne-F,At=oe-q,rt=se-ne;for(Fe=0;Fe<41;Fe++)Qe=(je=(Re=_+(fe=Fe/40)*Ft)+fe*((ze=N+fe*mt)-Re))+fe*(ze+fe*(q+fe*At-ze)-je),Pe=(Be=(qe=L+fe*Ct)+fe*((W=F+fe*Dt)-qe))+fe*(W+fe*(ne+fe*rt-W)-Be),Fe==0?(st=Qe,Je=Pe,ut=Qe,ft=Pe):(st=Math.min(st,Qe),Je=Math.min(Je,Pe),ut=Math.max(ut,Qe),ft=Math.max(ft,Pe));return new o(Math.round(st),Math.round(Je),Math.round(ut-st),Math.round(ft-Je))},ke=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _,L,N=(_=this.ctx.lineDash,L=this.ctx.lineDashOffset,JSON.stringify({lineDash:_,lineDashOffset:L}));this.prevLineDash!==N&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=N)}}})(ht.API),(function(t){var e=function(s){var o,f,l,u,p,v,c,w,m,y;for(f=[],l=0,u=(s+=o="\0\0\0\0".slice(s.length%4||4)).length;u>l;l+=4)(p=(s.charCodeAt(l)<<24)+(s.charCodeAt(l+1)<<16)+(s.charCodeAt(l+2)<<8)+s.charCodeAt(l+3))!==0?(v=(p=((p=((p=((p=(p-(y=p%85))/85)-(m=p%85))/85)-(w=p%85))/85)-(c=p%85))/85)%85,f.push(v+33,c+33,w+33,m+33,y+33)):f.push(122);return(function(A,D){for(var P=D;P>0;P--)A.pop()})(f,o.length),String.fromCharCode.apply(String,f)+"~>"},r=function(s){var o,f,l,u,p,v=String,c="length",w=255,m="charCodeAt",y="slice",A="replace";for(s[y](-2),s=s[y](0,-2)[A](/\s/g,"")[A]("z","!!!!!"),l=[],u=0,p=(s+=o="uuuuu"[y](s[c]%5||5))[c];p>u;u+=5)f=52200625*(s[m](u)-33)+614125*(s[m](u+1)-33)+7225*(s[m](u+2)-33)+85*(s[m](u+3)-33)+(s[m](u+4)-33),l.push(w&f>>24,w&f>>16,w&f>>8,w&f);return(function(D,P){for(var B=P;B>0;B--)D.pop()})(l,o[c]),v.fromCharCode.apply(v,l)},n=function(s){return s.split("").map(function(o){return("0"+o.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(s){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),o.test(s)===!1)return"";for(var f="",l=0;l<s.length;l+=2)f+=String.fromCharCode("0x"+(s[l]+s[l+1]));return f},a=function(s){for(var o=new Uint8Array(s.length),f=s.length;f--;)o[f]=s.charCodeAt(f);return(o=ql(o)).reduce(function(l,u){return l+String.fromCharCode(u)},"")};t.processDataByFilters=function(s,o){var f=0,l=s||"",u=[];for(typeof(o=o||[])=="string"&&(o=[o]),f=0;f<o.length;f+=1)switch(o[f]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=i(l),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=n(l),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=a(l),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[f]+'" is not implemented')}return{data:l,reverseChain:u.reverse().join(" ")}}})(ht.API),(function(t){t.loadFile=function(e,r,n){return(function(i,a,s){a=a!==!1,s=typeof s=="function"?s:function(){};var o=void 0;try{o=(function(f,l,u){var p=new XMLHttpRequest,v=0,c=function(w){var m=w.length,y=[],A=String.fromCharCode;for(v=0;v<m;v+=1)y.push(A(255&w.charCodeAt(v)));return y.join("")};if(p.open("GET",f,!l),p.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(p.onload=function(){p.status===200?u(c(this.responseText)):u(void 0)}),p.send(null),l&&p.status===200)return c(p.responseText)})(i,a,s)}catch{}return o})(e,r,n)},t.loadImageFile=t.loadFile})(ht.API),(function(t){function e(){return(xt.html2canvas?Promise.resolve(xt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-B5qzocYs.cjs"))).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function r(){return(xt.DOMPurify?Promise.resolve(xt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-DSa7RKfV.cjs"))).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var n=function(o){var f=Vt(o);return f==="undefined"?"undefined":f==="string"||o instanceof String?"string":f==="number"||o instanceof Number?"number":f==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":f==="object"?"object":"unknown"},i=function(o,f){var l=document.createElement(o);for(var u in f.className&&(l.className=f.className),f.innerHTML&&f.dompurify&&(l.innerHTML=f.dompurify.sanitize(f.innerHTML)),f.style)l.style[u]=f.style[u];return l},a=function o(f,l){for(var u=f.nodeType===3?document.createTextNode(f.nodeValue):f.cloneNode(!1),p=f.firstChild;p;p=p.nextSibling)l!==!0&&p.nodeType===1&&p.nodeName==="SCRIPT"||u.appendChild(o(p,l));return f.nodeType===1&&(f.nodeName==="CANVAS"?(u.width=f.width,u.height=f.height,u.getContext("2d").drawImage(f,0,0)):f.nodeName!=="TEXTAREA"&&f.nodeName!=="SELECT"||(u.value=f.value),u.addEventListener("load",function(){u.scrollTop=f.scrollTop,u.scrollLeft=f.scrollLeft},!0)),u},s=function o(f){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),u=o.convert(Promise.resolve(),l);return(u=u.setProgress(1,o,1,[o])).set(f)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(o,f){return o.__proto__=f||s.prototype,o},s.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"}},s.prototype.from=function(o,f){return this.then(function(){switch(f=f||(function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(o),f){case"string":return this.then(r).then(function(l){return this.set({src:i("div",{innerHTML:o,dompurify:l})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},s.prototype.to=function(o){switch(o){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.")}},s.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 o={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=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);f.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(f),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(f){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,f(this.prop.container,l)}).then(function(f){(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(f){var l=this.opt.jsPDF,u=this.opt.fontFaces,p=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,v=Object.assign({async:!0,allowTaint:!0,scale:p,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete v.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=u,u)for(var c=0;c<u.length;++c){var w=u[c],m=w.src.find(function(y){return y.format==="truetype"});m&&l.addFont(m.url,w.ref.name,w.ref.style)}return v.windowHeight=v.windowHeight||0,v.windowHeight=v.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):v.windowHeight,l.context2d.save(!0),f(this.prop.container,v)}).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)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(o,f,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,f):this.outputPdf(o,f)},s.prototype.outputPdf=function(o,f){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,f)})},s.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){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 "'+o+'" is not supported.'}})},s.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(o){if(n(o)!=="object")return this;var f=Object.keys(o||{}).map(function(l){if(l in s.template.prop)return function(){this.prop[l]=o[l]};switch(l){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[l]=o[l]}}},this);return this.then(function(){return this.thenList(f)})},s.prototype.get=function(o,f){return this.then(function(){var l=o in s.template.prop?this.prop[o]:this.opt[o];return f?f(l):l})},s.prototype.setMargin=function(o){return this.then(function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},s.prototype.setPageSize=function(o){function f(l,u){return Math.floor(l*u/72*96)}return this.then(function(){(o=o||ht.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:f(o.inner.width,o.k),height:f(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},s.prototype.setProgress=function(o,f,l,u){return o!=null&&(this.progress.val=o),f!=null&&(this.progress.state=f),l!=null&&(this.progress.n=l),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(o,f,l,u){return this.setProgress(o?this.progress.val+o:null,f||null,l?this.progress.n+l:null,u?this.progress.stack.concat(u):null)},s.prototype.then=function(o,f){var l=this;return this.thenCore(o,f,function(u,p){return l.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(v){return l.updateProgress(null,u),v}).then(u,p).then(function(v){return l.updateProgress(1),v})})},s.prototype.thenCore=function(o,f,l){l=l||Promise.prototype.then;var u=this;o&&(o=o.bind(u)),f&&(f=f.bind(u));var p=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?u:s.convert(Object.assign({},u),Promise.prototype),v=l.call(p,o,f);return s.convert(v,u.__proto__)},s.prototype.thenExternal=function(o,f){return Promise.prototype.then.call(this,o,f)},s.prototype.thenList=function(o){var f=this;return o.forEach(function(l){f=f.thenCore(l)}),f},s.prototype.catch=function(o){o&&(o=o.bind(this));var f=Promise.prototype.catch.call(this,o);return s.convert(f,this)},s.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},s.prototype.error=function(o){return this.then(function(){throw new Error(o)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,ht.getPageSize=function(o,f,l){if(Vt(o)==="object"){var u=o;o=u.orientation,f=u.unit||f,l=u.format||l}f=f||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var p,v=(""+l).toLowerCase(),c={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(f){case"pt":p=1;break;case"mm":p=72/25.4;break;case"cm":p=72/2.54;break;case"in":p=72;break;case"px":p=.75;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+f}var w,m=0,y=0;if(c.hasOwnProperty(v))m=c[v][1]/p,y=c[v][0]/p;else try{m=l[1],y=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",y>m&&(w=y,y=m,m=w);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",m>y&&(w=y,y=m,m=w)}return{width:y,height:m,unit:f,k:p,orientation:o}},t.html=function(o,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(Al):null;var l=new s(f);return f.worker?l:l.from(o).doCallback()}})(ht.API),ht.API.addJS=function(t){return pc=t,this.internal.events.subscribe("postPutResources",function(){O0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(O0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),dc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+pc+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){O0!==void 0&&dc!==void 0&&this.internal.out("/Names <</JavaScript "+O0+" 0 R>>")}),this},(function(t){var e;t.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=r.outline.render().split(/\r\n/),a=0;a<i.length;a++){var s=i[a],o=n.exec(s);if(o!=null){var f=o[1];r.internal.newObjectDeferredBegin(f,!1)}r.internal.write(s)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(a=0;a<l;a++){var p=r.internal.newObject();u.push(p);var v=r.internal.getPageInfo(a+1);r.internal.write("<< /D["+v.objId+" 0 R /XYZ null null null]>> endobj")}var c=r.internal.newObject();for(r.internal.write("<< /Names [ "),a=0;a<u.length;a++)r.internal.write("(page_"+(a+1)+")"+u[a]+" 0 R");r.internal.write(" ] >>","endobj"),e=r.internal.newObject(),r.internal.write("<< /Dests "+c+" 0 R"),r.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var r=this;r.outline.root.children.length>0&&(r.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&r.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,i,a){var s={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(s),s},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},r.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()},r.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var s=n.children[a];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(n)),a>0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[a+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var f=r.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var l=0;l<n.children.length;l++)this.renderItems(n.children[l])},r.outline.line=function(n){this.ctx.val+=n+`\r
42
- `},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
43
- `+n.id+` 0 obj\r
44
- <<\r
45
- `},r.outline.objEnd=function(){this.ctx.val+=`>> \r
46
- endobj\r
47
- `},r.outline.count_r=function(n,i){for(var a=0;a<i.children.length;a++)n.count++,this.count_r(n,i.children[a]);return n.count}}])})(ht.API),(function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(r,n,i,a,s,o){var f,l=this.decode.DCT_DECODE,u=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=s||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,f=(function(p){for(var v,c=256*p.charCodeAt(4)+p.charCodeAt(5),w=p.length,m={width:0,height:0,numcomponents:1},y=4;y<w;y+=2){if(y+=c,e.indexOf(p.charCodeAt(y+1))!==-1){v=256*p.charCodeAt(y+5)+p.charCodeAt(y+6),m={width:256*p.charCodeAt(y+7)+p.charCodeAt(y+8),height:v,numcomponents:p.charCodeAt(y+9)};break}c=256*p.charCodeAt(y+2)+p.charCodeAt(y+3)}return m})(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r),f.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}u={data:r,width:f.width,height:f.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:i}}return u}})(ht.API),ht.API.processPNG=function(t,e,r,n){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var i,a=$g(t,{checkCrc:!0}),s=a.width,o=a.height,f=a.channels,l=a.palette,u=a.depth;i=l&&f===1?(function(z){for(var k=z.width,ee=z.height,S=z.data,I=z.palette,G=z.depth,te=!1,he=[],be=[],ye=void 0,pe=!1,Ae=0,Ue=0;Ue<I.length;Ue++){var ke=xu(I[Ue],4),_=ke[0],L=ke[1],N=ke[2],F=ke[3];he.push(_,L,N),F!=null&&(F===0?(Ae++,be.length<1&&be.push(Ue)):F<255&&(pe=!0))}if(pe||Ae>1){te=!0,be=void 0;var q=k*ee;ye=new Uint8Array(q);for(var ne=new DataView(S.buffer),oe=0;oe<q;oe++){var se=El(ne,oe,G),fe=xu(I[se],4)[3];ye[oe]=fe}}else Ae===0&&(be=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:te?8:void 0,colorBytes:S,alphaBytes:ye,needSMask:te,palette:he,mask:be}})(a):f===2||f===4?(function(z){for(var k=z.data,ee=z.width,S=z.height,I=z.channels,G=z.depth,te=I===2?"DeviceGray":"DeviceRGB",he=I-1,be=ee*S,ye=he,pe=be*ye,Ae=1*be,Ue=Math.ceil(pe*G/8),ke=Math.ceil(Ae*G/8),_=new Uint8Array(Ue),L=new Uint8Array(ke),N=new DataView(k.buffer),F=new DataView(_.buffer),q=new DataView(L.buffer),ne=!1,oe=0;oe<be;oe++){for(var se=oe*I,fe=0;fe<ye;fe++)Ac(F,El(N,se+fe,G),oe*ye+fe,G);var Fe=El(N,se+ye,G);Fe<(1<<G)-1&&(ne=!0),Ac(q,Fe,1*oe,G)}return{colorSpace:te,colorsPerPixel:he,sMaskBitsPerComponent:ne?G:void 0,colorBytes:_,alphaBytes:L,needSMask:ne}})(a):(function(z){var k=z.data,ee=z.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:ee,colorsPerPixel:ee==="DeviceGray"?1:3,colorBytes:k instanceof Uint16Array?(function(S){for(var I=S.length,G=new Uint8Array(2*I),te=new DataView(G.buffer,G.byteOffset,G.byteLength),he=0;he<I;he++)te.setUint16(2*he,S[he],!1);return G})(k):k,needSMask:!1}})(a);var p,v,c,w=i,m=w.colorSpace,y=w.colorsPerPixel,A=w.sMaskBitsPerComponent,D=w.colorBytes,P=w.alphaBytes,B=w.needSMask,re=w.palette,ue=w.mask,V=null;return n!==ht.API.image_compression.NONE&&typeof ql=="function"?(V=(function(z){var k;switch(z){case ht.API.image_compression.FAST:k=11;break;case ht.API.image_compression.MEDIUM:k=13;break;case ht.API.image_compression.SLOW:k=14;break;default:k=12}return k})(n),p=this.decode.FLATE_DECODE,v="/Predictor ".concat(V," /Colors ").concat(y," /BitsPerComponent ").concat(u," /Columns ").concat(s),t=xc(D,Math.ceil(s*y*u/8),y,u,n),B&&(c=xc(P,Math.ceil(s*A/8),1,A,n))):(p=void 0,v=void 0,t=D,B&&(c=P)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(c&&this.__addimage__.isArrayBuffer(c)||this.__addimage__.isArrayBufferView(c))&&(c=this.__addimage__.arrayBufferToBinaryString(c)),{alias:r,data:t,index:e,filter:p,decodeParameters:v,transparency:ue,palette:re,sMask:c,predictor:V,width:s,height:o,bitsPerComponent:u,sMaskBitsPerComponent:A,colorSpace:m}}},(function(t){t.processGIF89A=function(e,r,n,i){var a=new mv(e),s=a.width,o=a.height,f=[];a.decodeAndBlitFrameRGBA(0,f);var l={data:f,width:s,height:o},u=new Tl(100).encode(l,100);return t.processJPEG.call(this,u,r,n,i)},t.processGIF87A=t.processGIF89A})(ht.API),ci.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ci.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(r){ir.log("bit decode error:"+r)}},ci.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*i*4,o=0;o<8&&8*i+o<this.width;o++){var f=this.palette[a>>7-o&1];this.data[s+4*o]=f.blue,this.data[s+4*o+1]=f.green,this.data[s+4*o+2]=f.red,this.data[s+4*o+3]=255}r!==0&&(this.pos+=4-r)}},ci.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*i*4,o=a>>4,f=15&a,l=this.palette[o];if(this.data[s]=l.blue,this.data[s+1]=l.green,this.data[s+2]=l.red,this.data[s+3]=255,2*i+1>=this.width)break;l=this.palette[f],this.data[s+4]=l.blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}e!==0&&(this.pos+=4-e)}},ci.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var s=this.palette[i];this.data[a]=s.red,this.data[a+1]=s.green,this.data[a+2]=s.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}t!==0&&(this.pos+=4-t)}},ci.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,o=(a>>5&e)/e*255|0,f=(a>>10&e)/e*255|0,l=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=f,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=l}this.pos+=t}},ci.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&e)/e*255|0,f=(s>>5&r)/r*255|0,l=(s>>11)/e*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=f,this.data[u+2]=o,this.data[u+3]=255}this.pos+=t}},ci.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},ci.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=s}},ci.prototype.getData=function(){return this.data},(function(t){t.processBMP=function(e,r,n,i){var a=new ci(e,!1),s=a.width,o=a.height,f={data:a.getData(),width:s,height:o},l=new Tl(100).encode(f,100);return t.processJPEG.call(this,l,r,n,i)}})(ht.API),Ec.prototype.getData=function(){return this.data},(function(t){t.processWEBP=function(e,r,n,i){var a=new Ec(e),s=a.width,o=a.height,f={data:a.getData(),width:s,height:o},l=new Tl(100).encode(f,100);return t.processJPEG.call(this,l,r,n,i)}})(ht.API),ht.API.processRGBA=function(t,e,r){for(var n=t.data,i=n.length,a=new Uint8Array(i/4*3),s=new Uint8Array(i/4),o=0,f=0,l=0;l<i;l+=4){var u=n[l],p=n[l+1],v=n[l+2],c=n[l+3];a[o++]=u,a[o++]=p,a[o++]=v,s[f++]=c}var w=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:w,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},ht.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"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"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ss=ht.API,I0=Ss.getCharWidthsArray=function(t,e){var r,n,i=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),o=e.widths?e.widths:i.metadata.Unicode.widths,f=o.fof?o.fof:1,l=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,p=e.doKerning!==!1,v=0,c=t.length,w=0,m=o[0]||f,y=[];for(r=0;r<c;r++)n=t.charCodeAt(r),typeof i.metadata.widthOfString=="function"?y.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+s*(1e3/a)||0)/1e3):(v=p&&Vt(l[n])==="object"&&!isNaN(parseInt(l[n][w],10))?l[n][w]/u:0,y.push((o[n]||m)/f+v)),w=n;return y},gc=Ss.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Ss.processArabic&&(t=Ss.processArabic(t)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(t,r,i)/r:I0.apply(this,arguments).reduce(function(a,s){return a+s},0)},vc=function(t,e,r,n){for(var i=[],a=0,s=t.length,o=0;a!==s&&o+e[a]<r;)o+=e[a],a++;i.push(t.slice(0,a));var f=a;for(o=0;a!==s;)o+e[a]>n&&(i.push(t.slice(f,a)),o=0,f=a),o+=e[a],a++;return f!==a&&i.push(t.slice(f,a)),i},mc=function(t,e,r){r||(r={});var n,i,a,s,o,f,l,u=[],p=[u],v=r.textIndent||0,c=0,w=0,m=t.split(" "),y=I0.apply(this,[" ",r])[0];if(f=r.lineIndent===-1?m[0].length+2:r.lineIndent||0){var A=Array(f).join(" "),D=[];m.map(function(B){(B=B.split(/\s*\n/)).length>1?D=D.concat(B.map(function(re,ue){return(ue&&re.length?`
48
- `:"")+re})):D.push(B[0])}),m=D,f=gc.apply(this,[A,r])}for(a=0,s=m.length;a<s;a++){var P=0;if(n=m[a],f&&n[0]==`
49
- `&&(n=n.substr(1),P=1),v+c+(w=(i=I0.apply(this,[n,r])).reduce(function(B,re){return B+re},0))>e||P){if(w>e){for(o=vc.apply(this,[n,i,e-(v+c),e]),u.push(o.shift()),u=[o.pop()];o.length;)p.push([o.shift()]);w=i.slice(n.length-(u[0]?u[0].length:0)).reduce(function(B,re){return B+re},0)}else u=[n];p.push(u),v=w+f,c=y}else u.push(n),v+=c+w,c=y}return l=f?function(B,re){return(re?A:"")+B.join(" ")}:function(B){return B.join(" ")},p.map(l)},Ss.splitTextToSize=function(t,e,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var p=this.internal.getFont(u.fontName,u.fontStyle),v="Unicode";return p.metadata[v]?{widths:p.metadata[v].widths||{0:1},kerning:p.metadata[v].kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/i;a.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var o,f,l=[];for(o=0,f=n.length;o<f;o++)l=l.concat(mc.apply(this,[n[o],s,a]));return l},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",r="klmnopqrstuvwxyz",n={},i={},a=0;a<16;a++)n[r[a]]=e[a],i[e[a]]=r[a];var s=function(v){return"0x"+parseInt(v,10).toString(16)},o=t.__fontmetrics__.compress=function(v){var c,w,m,y,A=["{"];for(var D in v){if(c=v[D],isNaN(parseInt(D,10))?w="'"+D+"'":(D=parseInt(D,10),w=(w=s(D).slice(2)).slice(0,-1)+i[w.slice(-1)]),typeof c=="number")c<0?(m=s(c).slice(3),y="-"):(m=s(c).slice(2),y=""),m=y+m.slice(0,-1)+i[m.slice(-1)];else{if(Vt(c)!=="object")throw new Error("Don't know what to do with value type "+Vt(c)+".");m=o(c)}A.push(w+m)}return A.push("}"),A.join("")},f=t.__fontmetrics__.uncompress=function(v){if(typeof v!="string")throw new Error("Invalid argument passed to uncompress.");for(var c,w,m,y,A={},D=1,P=A,B=[],re="",ue="",V=v.length-1,z=1;z<V;z+=1)(y=v[z])=="'"?c?(m=c.join(""),c=void 0):c=[]:c?c.push(y):y=="{"?(B.push([P,m]),P={},m=void 0):y=="}"?((w=B.pop())[0][w[1]]=P,m=void 0,P=w[0]):y=="-"?D=-1:m===void 0?n.hasOwnProperty(y)?(re+=n[y],m=parseInt(re,16)*D,D=1,re=""):re+=y:n.hasOwnProperty(y)?(ue+=n[y],P[m]=parseInt(ue,16)*D,D=1,m=void 0,ue=""):ue+=y;return A},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},p={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":f("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":f("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":f("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(v){var c=v.font,w=p.Unicode[c.postScriptName];w&&(c.metadata.Unicode={},c.metadata.Unicode.widths=w.widths,c.metadata.Unicode.kerning=w.kerning);var m=u.Unicode[c.postScriptName];m&&(c.metadata.Unicode.encoding=m,c.encoding=m.codePages[0])}])})(ht.API),(function(t){var e=function(r){for(var n=r.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=r.charCodeAt(a);return i};t.API.events.push(["addFont",function(r){var n=void 0,i=r.font,a=r.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(s,o){o=/^\x00\x01\x00\x00/.test(o)?e(o):e(z0(o)),s.metadata=t.API.TTFFont.open(o),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,n)}}])})(ht),ht.API.addSvgAsImage=function(t,e,r,n,i,a,s,o){if(isNaN(e)||isNaN(r))throw ir.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(i))throw ir.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=i;var l=f.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,f.width,f.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(xt.canvg?Promise.resolve(xt.canvg):Promise.resolve().then(()=>require("./index.es-B-uJN-5u.cjs"))).catch(function(v){return Promise.reject(new Error("Could not load canvg: "+v))}).then(function(v){return v.default?v.default:v}).then(function(v){return v.fromString(l,t,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(v){return v.render(u)}).then(function(){p.addImage(f.toDataURL("image/jpeg",1),e,r,n,i,s,o)})},ht.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},ht.API.viewerPreferences=function(t,e){var r;t=t||{},e=e||!1;var n,i,a,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(s),f=[],l=0,u=0,p=0;function v(w,m){var y,A=!1;for(y=0;y<w.length;y+=1)w[y]===m&&(A=!0);return A}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var c=o.length;for(p=0;p<c;p+=1)r[o[p]].value=r[o[p]].defaultValue,r[o[p]].explicitSet=!1}if(Vt(t)==="object"){for(i in t)if(a=t[i],v(o,i)&&a!==void 0){if(r[i].type==="boolean"&&typeof a=="boolean")r[i].value=a;else if(r[i].type==="name"&&v(r[i].valueSet,a))r[i].value=a;else if(r[i].type==="integer"&&Number.isInteger(a))r[i].value=a;else if(r[i].type==="array"){for(l=0;l<a.length;l+=1)if(n=!0,a[l].length===1&&typeof a[l][0]=="number")f.push(String(a[l]-1));else if(a[l].length>1){for(u=0;u<a[l].length;u+=1)typeof a[l][u]!="number"&&(n=!1);n===!0&&f.push([a[l][0]-1,a[l][1]-1].join(" "))}r[i].value="["+f.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,m=[];for(w in r)r[w].explicitSet===!0&&(r[w].type==="name"?m.push("/"+w+" /"+r[w].value):m.push("/"+w+" "+r[w].value));m.length!==0&&this.internal.write(`/ViewerPreferences
50
- <<
51
- `+m.join(`
52
- `)+`
53
- >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},(function(t){var e=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>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),a=unescape(encodeURIComponent(n)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),l=a.length+s.length+o.length+i.length+f.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+l+" >>"),this.internal.write("stream"),this.internal.write(i+a+s+o+f),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(n,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}})(ht.API),(function(t){var e=t.API,r=e.pdfEscape16=function(a,s){for(var o,f=s.metadata.Unicode.widths,l=["","0","00","000","0000"],u=[""],p=0,v=a.length;p<v;++p){if(o=s.metadata.characterToGlyph(a.charCodeAt(p)),s.metadata.glyIdsUsed.push(o),s.metadata.toUnicode[o]=a.charCodeAt(p),f.indexOf(o)==-1&&(f.push(o),f.push([parseInt(s.metadata.widthOfGlyph(o),10)])),o=="0")return u.join("");o=o.toString(16),u.push(l[4-o.length],o)}return u.join("")},n=function(a){var s,o,f,l,u,p,v;for(u=`/CIDInit /ProcSet findresource begin
54
- 12 dict begin
55
- begincmap
56
- /CIDSystemInfo <<
57
- /Registry (Adobe)
58
- /Ordering (UCS)
59
- /Supplement 0
60
- >> def
61
- /CMapName /Adobe-Identity-UCS def
62
- /CMapType 2 def
63
- 1 begincodespacerange
64
- <0000><ffff>
65
- endcodespacerange`,f=[],p=0,v=(o=Object.keys(a).sort(function(c,w){return c-w})).length;p<v;p++)s=o[p],f.length>=100&&(u+=`
66
- `+f.length+` beginbfchar
67
- `+f.join(`
68
- `)+`
69
- endbfchar`,f=[]),a[s]!==void 0&&a[s]!==null&&typeof a[s].toString=="function"&&(l=("0000"+a[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),f.push("<"+s+"><"+l+">"));return f.length&&(u+=`
70
- `+f.length+` beginbfchar
71
- `+f.join(`
72
- `)+`
73
- endbfchar
74
- `),u+`endcmap
75
- CMapName currentdict /CMap defineresource pop
76
- end
77
- end`};e.events.push(["putFont",function(a){(function(s){var o=s.font,f=s.out,l=s.newObject,u=s.putStream;if(o.metadata instanceof t.API.TTFFont&&o.encoding==="Identity-H"){for(var p=o.metadata.Unicode.widths,v=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),c="",w=0;w<v.length;w++)c+=String.fromCharCode(v[w]);var m=l();u({data:c,addLength1:!0,objectId:m}),f("endobj");var y=l();u({data:n(o.metadata.toUnicode),addLength1:!0,objectId:y}),f("endobj");var A=l();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+Fs(o.fontName)),f("/FontFile2 "+m+" 0 R"),f("/FontBBox "+t.API.PDFObject.convert(o.metadata.bbox)),f("/Flags "+o.metadata.flags),f("/StemV "+o.metadata.stemV),f("/ItalicAngle "+o.metadata.italicAngle),f("/Ascent "+o.metadata.ascender),f("/Descent "+o.metadata.decender),f("/CapHeight "+o.metadata.capHeight),f(">>"),f("endobj");var D=l();f("<<"),f("/Type /Font"),f("/BaseFont /"+Fs(o.fontName)),f("/FontDescriptor "+A+" 0 R"),f("/W "+t.API.PDFObject.convert(p)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+o.encoding+")"),f(">>"),f(">>"),f("endobj"),o.objectNumber=l(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+y+" 0 R"),f("/BaseFont /"+Fs(o.fontName)),f("/Encoding /"+o.encoding),f("/DescendantFonts ["+D+" 0 R]"),f(">>"),f("endobj"),o.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(s){var o=s.font,f=s.out,l=s.newObject,u=s.putStream;if(o.metadata instanceof t.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var p=o.metadata.rawData,v="",c=0;c<p.length;c++)v+=String.fromCharCode(p[c]);var w=l();u({data:v,addLength1:!0,objectId:w}),f("endobj");var m=l();u({data:n(o.metadata.toUnicode),addLength1:!0,objectId:m}),f("endobj");var y=l();f("<<"),f("/Descent "+o.metadata.decender),f("/CapHeight "+o.metadata.capHeight),f("/StemV "+o.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+w+" 0 R"),f("/Flags 96"),f("/FontBBox "+t.API.PDFObject.convert(o.metadata.bbox)),f("/FontName /"+Fs(o.fontName)),f("/ItalicAngle "+o.metadata.italicAngle),f("/Ascent "+o.metadata.ascender),f(">>"),f("endobj"),o.objectNumber=l();for(var A=0;A<o.metadata.hmtx.widths.length;A++)o.metadata.hmtx.widths[A]=parseInt(o.metadata.hmtx.widths[A]*(1e3/o.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+m+" 0 R/BaseFont/"+Fs(o.fontName)+"/FontDescriptor "+y+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),f("endobj"),o.isAlreadyPutted=!0}})(a)}]);var i=function(a){var s,o=a.text||"",f=a.x,l=a.y,u=a.options||{},p=a.mutex||{},v=p.pdfEscape,c=p.activeFontKey,w=p.fonts,m=c,y="",A=0,D="",P=w[m].encoding;if(w[m].encoding!=="Identity-H")return{text:o,x:f,y:l,options:u,mutex:p};for(D=o,m=c,Array.isArray(o)&&(D=o[0]),A=0;A<D.length;A+=1)w[m].metadata.hasOwnProperty("cmap")&&(s=w[m].metadata.cmap.unicode.codeMap[D[A].charCodeAt(0)]),s||D[A].charCodeAt(0)<256&&w[m].metadata.hasOwnProperty("Unicode")?y+=D[A]:y+="";var B="";return parseInt(m.slice(1))<14||P==="WinAnsiEncoding"?B=v(y,m).split("").map(function(re){return re.charCodeAt(0).toString(16)}).join(""):P==="Identity-H"&&(B=r(y,w[m])),p.isHex=!0,{text:B,x:f,y:l,options:u,mutex:p}};e.events.push(["postProcessText",function(a){var s=a.text||"",o=[],f={text:s,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(s)){var l=0;for(l=0;l<s.length;l+=1)Array.isArray(s[l])&&s[l].length===3?o.push([i(Object.assign({},f,{text:s[l][0]})).text,s[l][1],s[l][2]]):o.push(i(Object.assign({},f,{text:s[l]})).text);a.text=o}else a.text=i(Object.assign({},f,{text:s})).text}])})(ht),(function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0},t.addFileToVFS=function(r,n){return e.call(this),this.internal.vFS[r]=n,this},t.getFileFromVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}})(ht.API),(function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(n){var i,a,s,o,f,l,u,p=e,v=[[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]],c=[[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]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},m={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},y=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],A=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),D=!1,P=0;this.__bidiEngine__={};var B=function(S){var I=S.charCodeAt(),G=I>>8,te=m[G];return te!==void 0?p[256*te+(255&I)]:G===252||G===253?"AL":A.test(G)?"L":G===8?"R":"N"},re=function(S){for(var I,G=0;G<S.length;G++){if((I=B(S.charAt(G)))==="L")return!1;if(I==="R")return!0}return!1},ue=function(S,I,G,te){var he,be,ye,pe,Ae=I[te];switch(Ae){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":D=!1;break;case"N":case"AN":break;case"EN":D&&(Ae="AN");break;case"AL":D=!0,Ae="R";break;case"WS":case"BN":Ae="N";break;case"CS":te<1||te+1>=I.length||(he=G[te-1])!=="EN"&&he!=="AN"||(be=I[te+1])!=="EN"&&be!=="AN"?Ae="N":D&&(be="AN"),Ae=be===he?be:"N";break;case"ES":Ae=(he=te>0?G[te-1]:"B")==="EN"&&te+1<I.length&&I[te+1]==="EN"?"EN":"N";break;case"ET":if(te>0&&G[te-1]==="EN"){Ae="EN";break}if(D){Ae="N";break}for(ye=te+1,pe=I.length;ye<pe&&I[ye]==="ET";)ye++;Ae=ye<pe&&I[ye]==="EN"?"EN":"N";break;case"NSM":if(s&&!o){for(pe=I.length,ye=te+1;ye<pe&&I[ye]==="NSM";)ye++;if(ye<pe){var Ue=S[te],ke=Ue>=1425&&Ue<=2303||Ue===64286;if(he=I[ye],ke&&(he==="R"||he==="AL")){Ae="R";break}}}Ae=te<1||(he=I[te-1])==="B"?"N":G[te-1];break;case"B":D=!1,i=!0,Ae=P;break;case"S":a=!0,Ae="N"}return Ae},V=function(S,I,G){var te=S.split("");return G&&z(te,G,{hiLevel:P}),te.reverse(),I&&I.reverse(),te.join("")},z=function(S,I,G){var te,he,be,ye,pe,Ae=-1,Ue=S.length,ke=0,_=[],L=P?c:v,N=[];for(D=!1,i=!1,a=!1,he=0;he<Ue;he++)N[he]=B(S[he]);for(be=0;be<Ue;be++){if(pe=ke,_[be]=ue(S,N,_,be),te=240&(ke=L[pe][w[_[be]]]),ke&=15,I[be]=ye=L[ke][5],te>0)if(te===16){for(he=Ae;he<be;he++)I[he]=1;Ae=-1}else Ae=-1;if(L[ke][6])Ae===-1&&(Ae=be);else if(Ae>-1){for(he=Ae;he<be;he++)I[he]=ye;Ae=-1}N[be]==="B"&&(I[be]=0),G.hiLevel|=ye}a&&(function(F,q,ne){for(var oe=0;oe<ne;oe++)if(F[oe]==="S"){q[oe]=P;for(var se=oe-1;se>=0&&F[se]==="WS";se--)q[se]=P}})(N,I,Ue)},k=function(S,I,G,te,he){if(!(he.hiLevel<S)){if(S===1&&P===1&&!i)return I.reverse(),void(G&&G.reverse());for(var be,ye,pe,Ae,Ue=I.length,ke=0;ke<Ue;){if(te[ke]>=S){for(pe=ke+1;pe<Ue&&te[pe]>=S;)pe++;for(Ae=ke,ye=pe-1;Ae<ye;Ae++,ye--)be=I[Ae],I[Ae]=I[ye],I[ye]=be,G&&(be=G[Ae],G[Ae]=G[ye],G[ye]=be);ke=pe}ke++}}},ee=function(S,I,G){var te=S.split(""),he={hiLevel:P};return G||(G=[]),z(te,G,he),(function(be,ye,pe){if(pe.hiLevel!==0&&u)for(var Ae,Ue=0;Ue<be.length;Ue++)ye[Ue]===1&&(Ae=y.indexOf(be[Ue]))>=0&&(be[Ue]=y[Ae+1])})(te,G,he),k(2,te,I,G,he),k(1,te,I,G,he),te.join("")};return this.__bidiEngine__.doBidiReorder=function(S,I,G){if((function(he,be){if(be)for(var ye=0;ye<he.length;ye++)be[ye]=ye;o===void 0&&(o=re(he)),l===void 0&&(l=re(he))})(S,I),s||!f||l)if(s&&f&&o^l)P=o?1:0,S=V(S,I,G);else if(!s&&f&&l)P=o?1:0,S=ee(S,I,G),S=V(S,I);else if(!s||o||f||l){if(s&&!f&&o^l)S=V(S,I),o?(P=0,S=ee(S,I,G)):(P=1,S=ee(S,I,G),S=V(S,I));else if(s&&o&&!f&&l)P=1,S=ee(S,I,G),S=V(S,I);else if(!s&&!f&&o^l){var te=u;o?(P=1,S=ee(S,I,G),P=0,u=!1,S=ee(S,I,G),u=te):(P=0,S=ee(S,I,G),S=V(S,I),P=1,u=!1,S=ee(S,I,G),u=te,S=V(S,I))}}else P=0,S=ee(S,I,G);else P=o?1:0,S=ee(S,I,G);return S},this.__bidiEngine__.setOptions=function(S){S&&(s=S.isInputVisual,f=S.isOutputVisual,o=S.isInputRtl,l=S.isOutputRtl,u=S.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var e=["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"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(n){var i=n.text;n.x,n.y;var a=n.options||{};n.mutex,a.lang;var s=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,r.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var o=0;for(s=[],o=0;o<i.length;o+=1)Object.prototype.toString.call(i[o])==="[object Array]"?s.push([r.doBidiReorder(i[o][0]),i[o][1],i[o][2]]):s.push([r.doBidiReorder(i[o])]);n.text=s}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])})(ht),ht.API.TTFFont=(function(){function t(e){var r;if(this.rawData=e,r=this.contents=new Ca(e),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new Pv(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new xv(this.contents),this.head=new _v(this),this.name=new Ev(this),this.cmap=new l2(this),this.toUnicode={},this.hhea=new yv(this),this.maxp=new Tv(this),this.hmtx=new Nv(this),this.post=new Av(this),this.os2=new bv(this),this.loca=new kv(this),this.glyf=new Lv(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var e,r,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,o,f,l;for(l=[],s=0,o=(f=this.bbox).length;s<o;s++)e=f[s],l.push(Math.round(e*this.scaleFactor));return l}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),32768&(r=i>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+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=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var r;return((r=this.cmap.unicode)!=null?r.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*r},t.prototype.widthOfString=function(e,r,n){var i,a,s,o;for(s=0,a=0,o=(e=""+e).length;0<=o?a<o:a>o;a=0<=o?++a:--a)i=e.charCodeAt(a),s+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/r)||0;return s*(r/1e3)},t.prototype.lineHeight=function(e,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},t})();var _i,Ca=(function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var r,n;for(n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(e){var r,n,i;for(i=[],r=0,n=e.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(e.charCodeAt(r)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,r,n,i,a,s,o,f;return e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),f=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^s)+256*(255^o)+(255^f)+1):72057594037927940*e+281474976710656*r+1099511627776*n+4294967296*i+16777216*a+65536*s+256*o+f},t.prototype.writeLongLong=function(e){var r,n;return r=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var r,n;for(r=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)r.push(this.readByte());return r},t.prototype.write=function(e){var r,n,i,a;for(a=[],n=0,i=e.length;n<i;n++)r=e[n],a.push(this.writeByte(r));return a},t})(),xv=(function(){var t;function e(r){var n,i,a;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return e.prototype.encode=function(r){var n,i,a,s,o,f,l,u,p,v,c,w,m;for(m in c=Object.keys(r).length,f=Math.log(2),p=16*Math.floor(Math.log(c)/f),s=Math.floor(p/f),u=16*c-p,(i=new Ca).writeInt(this.scalarType),i.writeShort(c),i.writeShort(p),i.writeShort(s),i.writeShort(u),a=16*c,l=i.pos+a,o=null,w=[],r)for(v=r[m],i.writeString(m),i.writeInt(t(v)),i.writeInt(l),i.writeInt(v.length),w=w.concat(v),m==="head"&&(o=l),l+=v.length;l%4;)w.push(0),l++;return i.write(w),n=2981146554-t(i.data),i.pos=o+8,i.writeUInt32(n),i.data},t=function(r){var n,i,a,s;for(r=h2.call(r);r.length%4;)r.push(0);for(a=new Ca(r),i=0,n=0,s=r.length;n<s;n=n+=4)i+=a.readUInt32();return 4294967295&i},e})(),wv={}.hasOwnProperty,Ii=function(t,e){for(var r in e)wv.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};_i=(function(){function t(e){var r;this.file=e,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t})();var _v=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var r;return(r=new Ca).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(e),r.writeShort(this.glyphDataFormat),r.data},t})(),Tc=(function(){function t(e,r){var n,i,a,s,o,f,l,u,p,v,c,w,m,y,A,D,P;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=r+e.readInt(),p=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.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]=e.readByte();break;case 4:for(c=e.readUInt16(),v=c/2,e.pos+=6,a=(function(){var B,re;for(re=[],f=B=0;0<=v?B<v:B>v;f=0<=v?++B:--B)re.push(e.readUInt16());return re})(),e.pos+=2,m=(function(){var B,re;for(re=[],f=B=0;0<=v?B<v:B>v;f=0<=v?++B:--B)re.push(e.readUInt16());return re})(),l=(function(){var B,re;for(re=[],f=B=0;0<=v?B<v:B>v;f=0<=v?++B:--B)re.push(e.readUInt16());return re})(),u=(function(){var B,re;for(re=[],f=B=0;0<=v?B<v:B>v;f=0<=v?++B:--B)re.push(e.readUInt16());return re})(),i=(this.length-e.pos+this.offset)/2,o=(function(){var B,re;for(re=[],f=B=0;0<=i?B<i:B>i;f=0<=i?++B:--B)re.push(e.readUInt16());return re})(),f=A=0,P=a.length;A<P;f=++A)for(y=a[f],n=D=w=m[f];w<=y?D<=y:D>=y;n=w<=y?++D:--D)u[f]===0?s=n+l[f]:(s=o[u[f]/2+(n-w)-(v-f)]||0)!==0&&(s+=l[f]),this.codeMap[n]=65535&s}e.pos=p}return t.encode=function(e,r){var n,i,a,s,o,f,l,u,p,v,c,w,m,y,A,D,P,B,re,ue,V,z,k,ee,S,I,G,te,he,be,ye,pe,Ae,Ue,ke,_,L,N,F,q,ne,oe,se,fe,Fe,Re;switch(te=new Ca,s=Object.keys(e).sort(function(qe,ze){return qe-ze}),r){case"macroman":for(m=0,y=(function(){var qe=[];for(w=0;w<256;++w)qe.push(0);return qe})(),D={0:0},a={},he=0,Ae=s.length;he<Ae;he++)D[se=e[i=s[he]]]==null&&(D[se]=++m),a[i]={old:e[i],new:D[e[i]]},y[i]=D[e[i]];return te.writeUInt16(1),te.writeUInt16(0),te.writeUInt32(12),te.writeUInt16(0),te.writeUInt16(262),te.writeUInt16(0),te.write(y),{charMap:a,subtable:te.data,maxGlyphID:m+1};case"unicode":for(I=[],p=[],P=0,D={},n={},A=l=null,be=0,Ue=s.length;be<Ue;be++)D[re=e[i=s[be]]]==null&&(D[re]=++P),n[i]={old:re,new:D[re]},o=D[re]-i,A!=null&&o===l||(A&&p.push(A),I.push(i),l=o),A=i;for(A&&p.push(A),p.push(65535),I.push(65535),ee=2*(k=I.length),z=2*Math.pow(Math.log(k)/Math.LN2,2),v=Math.log(z/2)/Math.LN2,V=2*k-z,f=[],ue=[],c=[],w=ye=0,ke=I.length;ye<ke;w=++ye){if(S=I[w],u=p[w],S===65535){f.push(0),ue.push(0);break}if(S-(G=n[S].new)>=32768)for(f.push(0),ue.push(2*(c.length+k-w)),i=pe=S;S<=u?pe<=u:pe>=u;i=S<=u?++pe:--pe)c.push(n[i].new);else f.push(G-S),ue.push(0)}for(te.writeUInt16(3),te.writeUInt16(1),te.writeUInt32(12),te.writeUInt16(4),te.writeUInt16(16+8*k+2*c.length),te.writeUInt16(0),te.writeUInt16(ee),te.writeUInt16(z),te.writeUInt16(v),te.writeUInt16(V),ne=0,_=p.length;ne<_;ne++)i=p[ne],te.writeUInt16(i);for(te.writeUInt16(0),oe=0,L=I.length;oe<L;oe++)i=I[oe],te.writeUInt16(i);for(fe=0,N=f.length;fe<N;fe++)o=f[fe],te.writeUInt16(o);for(Fe=0,F=ue.length;Fe<F;Fe++)B=ue[Fe],te.writeUInt16(B);for(Re=0,q=c.length;Re<q;Re++)m=c[Re],te.writeUInt16(m);return{charMap:n,subtable:te.data,maxGlyphID:P+1}}},t})(),l2=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="cmap",t.prototype.parse=function(e){var r,n,i;for(e.pos=this.offset,this.version=e.readUInt16(),i=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new Tc(e,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},t.encode=function(e,r){var n,i;return r==null&&(r="macroman"),n=Tc.encode(e,r),(i=new Ca).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},t})(),yv=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t})(),bv=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=(function(){var r,n;for(n=[],r=0;r<10;++r)n.push(e.readByte());return n})(),this.charRange=(function(){var r,n;for(n=[],r=0;r<4;++r)n.push(e.readInt());return n})(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=(function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(e.readInt());return n})(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t})(),Av=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="post",t.prototype.parse=function(e){var r,n,i;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(n=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],i=[];e.pos<this.offset+this.length;)r=e.readByte(),i.push(this.names.push(e.readString(r)));return i;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=(function(){var s,o,f;for(f=[],a=s=0,o=this.file.maxp.numGlyphs;0<=o?s<o:s>o;a=0<=o?++s:--s)f.push(e.readUInt32());return f}).call(this)}},t})(),Sv=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Ev=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="name",t.prototype.parse=function(e){var r,n,i,a,s,o,f,l,u,p,v;for(e.pos=this.offset,e.readShort(),r=e.readShort(),o=e.readShort(),n=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(f={},a=u=0,p=n.length;u<p;a=++u)i=n[a],e.pos=i.offset,l=e.readString(i.length),s=new Sv(l,i),f[v=i.nameID]==null&&(f[v]=[]),f[i.nameID].push(s);this.strings=f,this.copyright=f[0],this.fontFamily=f[1],this.fontSubfamily=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]},t})(),Tv=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t})(),Nv=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="hmtx",t.prototype.parse=function(e){var r,n,i,a,s,o,f;for(e.pos=this.offset,this.metrics=[],r=0,o=this.file.hhea.numberOfMetrics;0<=o?r<o:r>o;r=0<=o?++r:--r)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var l,u;for(u=[],r=l=0;0<=i?l<i:l>i;r=0<=i?++l:--l)u.push(e.readInt16());return u})(),this.widths=(function(){var l,u,p,v;for(v=[],l=0,u=(p=this.metrics).length;l<u;l++)a=p[l],v.push(a.advance);return v}).call(this),n=this.widths[this.widths.length-1],f=[],r=s=0;0<=i?s<i:s>i;r=0<=i?++s:--s)f.push(this.widths.push(n));return f},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t})(),h2=[].slice,Lv=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var r,n,i,a,s,o,f,l,u,p;return e in this.cache?this.cache[e]:(a=this.file.loca,r=this.file.contents,n=a.indexOf(e),(i=a.lengthOf(e))===0?this.cache[e]=null:(r.pos=this.offset+n,s=(o=new Ca(r.read(i))).readShort(),l=o.readShort(),p=o.readShort(),f=o.readShort(),u=o.readShort(),this.cache[e]=s===-1?new Cv(o,l,p,f,u):new Fv(o,s,l,p,f,u),this.cache[e]))},t.prototype.encode=function(e,r,n){var i,a,s,o,f;for(s=[],a=[],o=0,f=r.length;o<f;o++)i=e[r[o]],a.push(s.length),i&&(s=s.concat(i.encode(n)));return a.push(s.length),{table:s,offsets:a}},t})(),Fv=(function(){function t(e,r,n,i,a,s){this.raw=e,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t})(),Cv=(function(){function t(e,r,n,i,a){var s,o;for(this.raw=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;o=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&o;)s.pos+=1&o?4:2,128&o?s.pos+=8:64&o?s.pos+=4:8&o&&(s.pos+=2)}return t.prototype.encode=function(){var e,r,n;for(r=new Ca(h2.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)r.pos=this.glyphOffsets[e];return r.data},t})(),kv=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Ii(t,_i),t.prototype.tag="loca",t.prototype.parse=function(e){var r,n;return e.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*e.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(e.readUInt32());return a}).call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,r){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,s=0;s<n.length;++s)if(n[s]=i,a<r.length&&r[a]==s){++a,n[s]=i;var o=this.offsets[s],f=this.offsets[s+1]-o;f>0&&(i+=f)}for(var l=new Array(4*n.length),u=0;u<n.length;++u)l[4*u+3]=255&n[u],l[4*u+2]=(65280&n[u])>>8,l[4*u+1]=(16711680&n[u])>>16,l[4*u]=(4278190080&n[u])>>24;return l},t})(),Pv=(function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,r,n,i,a;for(r in i=this.font.cmap.tables[0].codeMap,e={},a=this.subset)n=a[r],e[r]=i[n];return e},t.prototype.glyphsFor=function(e){var r,n,i,a,s,o,f;for(i={},s=0,o=e.length;s<o;s++)i[a=e[s]]=this.font.glyf.glyphFor(a);for(a in r=[],i)(n=i[a])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(a in f=this.glyphsFor(r))n=f[a],i[a]=n;return i},t.prototype.encode=function(e,r){var n,i,a,s,o,f,l,u,p,v,c,w,m,y,A;for(i in n=l2.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(e),c={0:0},A=n.charMap)c[(f=A[i]).old]=f.new;for(w in v=n.maxGlyphID,s)w in c||(c[w]=v++);return u=(function(D){var P,B;for(P in B={},D)B[D[P]]=P;return B})(c),p=Object.keys(u).sort(function(D,P){return D-P}),m=(function(){var D,P,B;for(B=[],D=0,P=p.length;D<P;D++)o=p[D],B.push(u[o]);return B})(),a=this.font.glyf.encode(s,m,c),l=this.font.loca.encode(a.offsets,m),y={cmap:this.font.cmap.raw(),glyf:a.table,loca:l,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(r)},this.font.os2.exists&&(y["OS/2"]=this.font.os2.raw()),this.font.directory.encode(y)},t})();ht.API.PDFObject=(function(){var t;function e(){}return t=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},e.convert=function(r){var n,i,a,s;if(Array.isArray(r))return"["+(function(){var o,f,l;for(l=[],o=0,f=r.length;o<f;o++)n=r[o],l.push(e.convert(n));return l})().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r?.isString)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(i in a=["<<"],r)s=r[i],a.push("/"+i+" "+e.convert(s));return a.push(">>"),a.join(`
78
- `)}return""+r},e})();function u2(t,e,r,n,i){n=n||{};var a=1.15,s=i.internal.scaleFactor,o=i.internal.getFontSize()/s,f=i.getLineHeightFactor?i.getLineHeightFactor():a,l=o*f,u=/\r\n|\r|\n/g,p="",v=1;if((n.valign==="middle"||n.valign==="bottom"||n.halign==="center"||n.halign==="right")&&(p=typeof t=="string"?t.split(u):t,v=p.length||1),r+=o*(2-a),n.valign==="middle"?r-=v/2*l:n.valign==="bottom"&&(r-=v*l),n.halign==="center"||n.halign==="right"){var c=o;if(n.halign==="center"&&(c*=.5),p&&v>=1){for(var w=0;w<p.length;w++)i.text(p[w],e-i.getStringUnitWidth(p[w])*c,r),r+=l;return i}e-=i.getStringUnitWidth(t)*c}return n.halign==="justify"?i.text(t,e,r,{maxWidth:n.maxWidth||100,align:"justify"}):i.text(t,e,r),i}var Nc={},Bs=(function(){function t(e){this.jsPDFDocument=e,this.userStyles={textColor:e.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:e.internal.getFontSize(),fontStyle:e.internal.getFont().fontStyle,font:e.internal.getFont().fontName,lineWidth:e.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:e.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return t.setDefaults=function(e,r){r===void 0&&(r=null),r?r.__autoTableDocumentDefaults=e:Nc=e},t.unifyColor=function(e){return Array.isArray(e)?e:typeof e=="number"?[e,e,e]:typeof e=="string"?[e]:null},t.prototype.applyStyles=function(e,r){var n,i,a;r===void 0&&(r=!1),e.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(e.fontStyle);var s=this.jsPDFDocument.internal.getFont(),o=s.fontStyle,f=s.fontName;if(e.font&&(f=e.font),e.fontStyle){o=e.fontStyle;var l=this.getFontList()[f];l&&l.indexOf(o)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(l[0]),o=l[0])}if(this.jsPDFDocument.setFont(f,o),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!r){var u=t.unifyColor(e.fillColor);u&&(n=this.jsPDFDocument).setFillColor.apply(n,u),u=t.unifyColor(e.textColor),u&&(i=this.jsPDFDocument).setTextColor.apply(i,u),u=t.unifyColor(e.lineColor),u&&(a=this.jsPDFDocument).setDrawColor.apply(a,u),typeof e.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(e.lineWidth)}},t.prototype.splitTextToSize=function(e,r,n){return this.jsPDFDocument.splitTextToSize(e,r,n)},t.prototype.rect=function(e,r,n,i,a){return this.jsPDFDocument.rect(e,r,n,i,a)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(e){return this.jsPDFDocument.getTextWidth(e)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(e){this.jsPDFDocument.setPage(e)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return Nc||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var e=this.jsPDFDocument.internal.pageSize;return e.width==null&&(e={width:e.getWidth(),height:e.getHeight()}),e},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.getLineHeightFactor=function(){var e=this.jsPDFDocument;return e.getLineHeightFactor?e.getLineHeightFactor():1.15},t.prototype.getLineHeight=function(e){return e/this.scaleFactor()*this.getLineHeightFactor()},t.prototype.pageNumber=function(){var e=this.jsPDFDocument.internal.getCurrentPageInfo();return e?e.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t})(),Jl=function(t,e){return Jl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Jl(t,e)};function c2(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Jl(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var d2=(function(t){c2(e,t);function e(r){var n=t.call(this)||this;return n._element=r,n}return e})(Array);function Ov(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function Iv(t){var e={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return e[t]}function Q0(t,e,r){r.applyStyles(e,!0);var n=Array.isArray(t)?t:[t],i=n.map(function(a){return r.getTextWidth(a)}).reduce(function(a,s){return Math.max(a,s)},0);return i}function p2(t,e,r,n){var i=e.settings.tableLineWidth,a=e.settings.tableLineColor;t.applyStyles({lineWidth:i,lineColor:a});var s=g2(i,!1);s&&t.rect(r.x,r.y,e.getWidth(t.pageSize().width),n.y-r.y,s)}function g2(t,e){var r=t>0,n=e||e===0;return r&&n?"DF":r?"S":n?"F":null}function wf(t,e){var r,n,i,a;if(t=t||e,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(t.length===3)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(t.length===2)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t.length===1?t=t[0]:t=e}return typeof t=="object"?(typeof t.vertical=="number"&&(t.top=t.vertical,t.bottom=t.vertical),typeof t.horizontal=="number"&&(t.right=t.horizontal,t.left=t.horizontal),{left:(r=t.left)!==null&&r!==void 0?r:e,top:(n=t.top)!==null&&n!==void 0?n:e,right:(i=t.right)!==null&&i!==void 0?i:e,bottom:(a=t.bottom)!==null&&a!==void 0?a:e}):(typeof t!="number"&&(t=e),{top:t,right:t,bottom:t,left:t})}function v2(t,e){var r=wf(e.settings.margin,0);return t.pageSize().width-(r.left+r.right)}function Dv(t,e,r,n,i){var a={},s=1.3333333333333333,o=Nl(e,function(P){return i.getComputedStyle(P).backgroundColor});o!=null&&(a.fillColor=o);var f=Nl(e,function(P){return i.getComputedStyle(P).color});f!=null&&(a.textColor=f);var l=Bv(n,r);l&&(a.cellPadding=l);var u="borderTopColor",p=s*r,v=n.borderTopWidth;if(n.borderBottomWidth===v&&n.borderRightWidth===v&&n.borderLeftWidth===v){var c=(parseFloat(v)||0)/p;c&&(a.lineWidth=c)}else a.lineWidth={top:(parseFloat(n.borderTopWidth)||0)/p,right:(parseFloat(n.borderRightWidth)||0)/p,bottom:(parseFloat(n.borderBottomWidth)||0)/p,left:(parseFloat(n.borderLeftWidth)||0)/p},a.lineWidth.top||(a.lineWidth.right?u="borderRightColor":a.lineWidth.bottom?u="borderBottomColor":a.lineWidth.left&&(u="borderLeftColor"));var w=Nl(e,function(P){return i.getComputedStyle(P)[u]});w!=null&&(a.lineColor=w);var m=["left","right","center","justify"];m.indexOf(n.textAlign)!==-1&&(a.halign=n.textAlign),m=["middle","bottom","top"],m.indexOf(n.verticalAlign)!==-1&&(a.valign=n.verticalAlign);var y=parseInt(n.fontSize||"");isNaN(y)||(a.fontSize=y/s);var A=Rv(n);A&&(a.fontStyle=A);var D=(n.fontFamily||"").toLowerCase();return t.indexOf(D)!==-1&&(a.font=D),a}function Rv(t){var e="";return(t.fontWeight==="bold"||t.fontWeight==="bolder"||parseInt(t.fontWeight)>=700)&&(e="bold"),(t.fontStyle==="italic"||t.fontStyle==="oblique")&&(e+="italic"),e}function Nl(t,e){var r=m2(t,e);if(!r)return null;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!n||!Array.isArray(n))return null;var i=[parseInt(n[1]),parseInt(n[2]),parseInt(n[3])],a=parseInt(n[4]);return a===0||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function m2(t,e){var r=e(t);return r==="rgba(0, 0, 0, 0)"||r==="transparent"||r==="initial"||r==="inherit"?t.parentElement==null?null:m2(t.parentElement,e):r}function Bv(t,e){var r=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],n=96/(72/e),i=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,a=r.map(function(o){return parseInt(o||"0")/n}),s=wf(a,0);return i>s.top&&(s.top=i),i>s.bottom&&(s.bottom=i),s}function x2(t,e,r,n,i){var a,s;n===void 0&&(n=!1),i===void 0&&(i=!1);var o;typeof e=="string"?o=r.document.querySelector(e):o=e;var f=Object.keys(t.getFontList()),l=t.scaleFactor(),u=[],p=[],v=[];if(!o)return console.error("Html table could not be found with input: ",e),{head:u,body:p,foot:v};for(var c=0;c<o.rows.length;c++){var w=o.rows[c],m=(s=(a=w?.parentElement)===null||a===void 0?void 0:a.tagName)===null||s===void 0?void 0:s.toLowerCase(),y=Mv(f,l,r,w,n,i);y&&(m==="thead"?u.push(y):m==="tfoot"?v.push(y):p.push(y))}return{head:u,body:p,foot:v}}function Mv(t,e,r,n,i,a){for(var s=new d2(n),o=0;o<n.cells.length;o++){var f=n.cells[o],l=r.getComputedStyle(f);if(i||l.display!=="none"){var u=void 0;a&&(u=Dv(t,f,e,l,r)),s.push({rowSpan:f.rowSpan,colSpan:f.colSpan,styles:u,_element:f,content:Uv(f)})}}var p=r.getComputedStyle(n);if(s.length>0&&(i||p.display!=="none"))return s}function Uv(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split(/<br.*?>/).map(function(r){return r.trim()}).join(`
79
- `),e.innerText||e.textContent||""}function jv(t,e,r){for(var n=0,i=[t,e,r];n<i.length;n++){var a=i[n];a&&typeof a!="object"&&console.error("The options parameter should be of type object, is: "+typeof a),a.startY&&typeof a.startY!="number"&&(console.error("Invalid value for startY option",a.startY),delete a.startY)}}function ea(t,e,r,n,i){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var a=Object(t),s=1;s<arguments.length;s++){var o=arguments[s];if(o!=null)for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(a[f]=o[f])}return a}function w2(t,e){var r=new Bs(t),n=r.getDocumentOptions(),i=r.getGlobalOptions();jv(i,n,e);var a=ea({},i,n,e),s;typeof window<"u"&&(s=window);var o=Hv(i,n,e),f=Wv(i,n,e),l=qv(r,a),u=Gv(r,a,s);return{id:e.tableId,content:u,hooks:f,styles:o,settings:l}}function Hv(t,e,r){for(var n={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},i=function(f){if(f==="columnStyles"){var l=t[f],u=e[f],p=r[f];n.columnStyles=ea({},l,u,p)}else{var v=[t,e,r],c=v.map(function(w){return w[f]||{}});n[f]=ea({},c[0],c[1],c[2])}},a=0,s=Object.keys(n);a<s.length;a++){var o=s[a];i(o)}return n}function Wv(t,e,r){for(var n=[t,e,r],i={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},a=0,s=n;a<s.length;a++){var o=s[a];o.didParseCell&&i.didParseCell.push(o.didParseCell),o.willDrawCell&&i.willDrawCell.push(o.willDrawCell),o.didDrawCell&&i.didDrawCell.push(o.didDrawCell),o.willDrawPage&&i.willDrawPage.push(o.willDrawPage),o.didDrawPage&&i.didDrawPage.push(o.didDrawPage)}return i}function qv(t,e){var r,n,i,a,s,o,f,l,u,p,v,c,w=wf(e.margin,40/t.scaleFactor()),m=(r=zv(t,e.startY))!==null&&r!==void 0?r:w.top,y;e.showFoot===!0?y="everyPage":e.showFoot===!1?y="never":y=(n=e.showFoot)!==null&&n!==void 0?n:"everyPage";var A;e.showHead===!0?A="everyPage":e.showHead===!1?A="never":A=(i=e.showHead)!==null&&i!==void 0?i:"everyPage";var D=(a=e.useCss)!==null&&a!==void 0?a:!1,P=e.theme||(D?"plain":"striped"),B=!!e.horizontalPageBreak,re=(s=e.horizontalPageBreakRepeat)!==null&&s!==void 0?s:null;return{includeHiddenHtml:(o=e.includeHiddenHtml)!==null&&o!==void 0?o:!1,useCss:D,theme:P,startY:m,margin:w,pageBreak:(f=e.pageBreak)!==null&&f!==void 0?f:"auto",rowPageBreak:(l=e.rowPageBreak)!==null&&l!==void 0?l:"auto",tableWidth:(u=e.tableWidth)!==null&&u!==void 0?u:"auto",showHead:A,showFoot:y,tableLineWidth:(p=e.tableLineWidth)!==null&&p!==void 0?p:0,tableLineColor:(v=e.tableLineColor)!==null&&v!==void 0?v:200,horizontalPageBreak:B,horizontalPageBreakRepeat:re,horizontalPageBreakBehaviour:(c=e.horizontalPageBreakBehaviour)!==null&&c!==void 0?c:"afterAllRows"}}function zv(t,e){var r=t.getLastAutoTable(),n=t.scaleFactor(),i=t.pageNumber(),a=!1;if(r&&r.startPageNumber){var s=r.startPageNumber+r.pageNumber-1;a=s===i}return typeof e=="number"?e:(e==null||e===!1)&&a&&r?.finalY!=null?r.finalY+20/n:null}function Gv(t,e,r){var n=e.head||[],i=e.body||[],a=e.foot||[];if(e.html){var s=e.includeHiddenHtml;if(r){var o=x2(t,e.html,r,s,e.useCss)||{};n=o.head||n,i=o.body||n,a=o.foot||n}else console.error("Cannot parse html in non browser environment")}var f=e.columns||Vv(n,i,a);return{columns:f,head:n,body:i,foot:a}}function Vv(t,e,r){var n=t[0]||e[0]||r[0]||[],i=[];return Object.keys(n).filter(function(a){return a!=="_element"}).forEach(function(a){var s=1,o;Array.isArray(n)?o=n[parseInt(a)]:o=n[a],typeof o=="object"&&!Array.isArray(o)&&(s=o?.colSpan||1);for(var f=0;f<s;f++){var l=void 0;Array.isArray(n)?l=i.length:l=a+(f>0?"_".concat(f):"");var u={dataKey:l};i.push(u)}}),i}var Zl=(function(){function t(e,r,n){this.table=r,this.pageNumber=r.pageNumber,this.settings=r.settings,this.cursor=n,this.doc=e.getDocument()}return t})(),Xv=(function(t){c2(e,t);function e(r,n,i,a,s,o){var f=t.call(this,r,n,o)||this;return f.cell=i,f.row=a,f.column=s,f.section=a.section,f}return e})(Zl),Yv=(function(){function t(e,r){this.pageNumber=1,this.id=e.id,this.settings=e.settings,this.styles=e.styles,this.hooks=e.hooks,this.columns=r.columns,this.head=r.head,this.body=r.body,this.foot=r.foot}return t.prototype.getHeadHeight=function(e){return this.head.reduce(function(r,n){return r+n.getMaxCellHeight(e)},0)},t.prototype.getFootHeight=function(e){return this.foot.reduce(function(r,n){return r+n.getMaxCellHeight(e)},0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(e,r,n,i,a,s){for(var o=0,f=r;o<f.length;o++){var l=f[o],u=new Xv(e,this,n,i,a,s),p=l(u)===!1;if(n.text=Array.isArray(n.text)?n.text:[n.text],p)return!1}return!0},t.prototype.callEndPageHooks=function(e,r){e.applyStyles(e.userStyles);for(var n=0,i=this.hooks.didDrawPage;n<i.length;n++){var a=i[n];a(new Zl(e,this,r))}},t.prototype.callWillDrawPageHooks=function(e,r){for(var n=0,i=this.hooks.willDrawPage;n<i.length;n++){var a=i[n];a(new Zl(e,this,r))}},t.prototype.getWidth=function(e){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var r=this.columns.reduce(function(i,a){return i+a.wrappedWidth},0);return r}else{var n=this.settings.margin;return e-n.left-n.right}},t})(),_2=(function(){function t(e,r,n,i,a){a===void 0&&(a=!1),this.height=0,this.raw=e,e instanceof d2&&(this.raw=e._element,this.element=e._element),this.index=r,this.section=n,this.cells=i,this.spansMultiplePages=a}return t.prototype.getMaxCellHeight=function(e){var r=this;return e.reduce(function(n,i){var a;return Math.max(n,((a=r.cells[i.index])===null||a===void 0?void 0:a.height)||0)},0)},t.prototype.hasRowSpan=function(e){var r=this;return e.filter(function(n){var i=r.cells[n.index];return i?i.rowSpan>1:!1}).length>0},t.prototype.canEntireRowFit=function(e,r){return this.getMaxCellHeight(r)<=e},t.prototype.getMinimumRowHeight=function(e,r){var n=this;return e.reduce(function(i,a){var s=n.cells[a.index];if(!s)return 0;var o=r.getLineHeight(s.styles.fontSize),f=s.padding("vertical"),l=f+o;return l>i?l:i},0)},t})(),y2=(function(){function t(e,r,n){var i;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=r,this.section=n,this.raw=e;var a=e;e!=null&&typeof e=="object"&&!Array.isArray(e)?(this.rowSpan=e.rowSpan||1,this.colSpan=e.colSpan||1,a=(i=e.content)!==null&&i!==void 0?i:e,e._element&&(this.raw=e._element)):(this.rowSpan=1,this.colSpan=1);var s=a!=null?""+a:"",o=/\r\n|\r|\n/g;this.text=s.split(o)}return t.prototype.getTextPos=function(){var e;if(this.styles.valign==="top")e=this.y+this.padding("top");else if(this.styles.valign==="bottom")e=this.y+this.height-this.padding("bottom");else{var r=this.height-this.padding("vertical");e=this.y+r/2+this.padding("top")}var n;if(this.styles.halign==="right")n=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var i=this.width-this.padding("horizontal");n=this.x+i/2+this.padding("left")}else n=this.x+this.padding("left");return{x:n,y:e}},t.prototype.getContentHeight=function(e,r){r===void 0&&(r=1.15);var n=Array.isArray(this.text)?this.text.length:1,i=this.styles.fontSize/e*r,a=n*i+this.padding("vertical");return Math.max(a,this.styles.minCellHeight)},t.prototype.padding=function(e){var r=wf(this.styles.cellPadding,0);return e==="vertical"?r.top+r.bottom:e==="horizontal"?r.left+r.right:r[e]},t})(),Kv=(function(){function t(e,r,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=e,this.raw=r,this.index=n}return t.prototype.getMaxCustomCellWidth=function(e){for(var r=0,n=0,i=e.allRows();n<i.length;n++){var a=i[n],s=a.cells[this.index];s&&typeof s.styles.cellWidth=="number"&&(r=Math.max(r,s.styles.cellWidth))}return r},t})();function $v(t,e){Jv(t,e);var r=[],n=0;e.columns.forEach(function(a){var s=a.getMaxCustomCellWidth(e);s?a.width=s:(a.width=a.wrappedWidth,r.push(a)),n+=a.width});var i=e.getWidth(t.pageSize().width)-n;i&&(i=Ql(r,i,function(a){return Math.max(a.minReadableWidth,a.minWidth)})),i&&(i=Ql(r,i,function(a){return a.minWidth})),i=Math.abs(i),!e.settings.horizontalPageBreak&&i>.1/t.scaleFactor()&&(i=i<1?i:Math.round(i),console.warn("Of the table content, ".concat(i," units width could not fit page"))),Qv(e),em(e,t),Zv(e)}function Jv(t,e){var r=t.scaleFactor(),n=e.settings.horizontalPageBreak,i=v2(t,e);e.allRows().forEach(function(a){for(var s=0,o=e.columns;s<o.length;s++){var f=o[s],l=a.cells[f.index];if(l){var u=e.hooks.didParseCell;e.callCellHooks(t,u,l,a,f,null);var p=l.padding("horizontal");l.contentWidth=Q0(l.text,l.styles,t)+p;var v=Q0(l.text.join(" ").split(/[^\S\u00A0]+/),l.styles,t);if(l.minReadableWidth=v+l.padding("horizontal"),typeof l.styles.cellWidth=="number")l.minWidth=l.styles.cellWidth,l.wrappedWidth=l.styles.cellWidth;else if(l.styles.cellWidth==="wrap"||n===!0)l.contentWidth>i?(l.minWidth=i,l.wrappedWidth=i):(l.minWidth=l.contentWidth,l.wrappedWidth=l.contentWidth);else{var c=10/r;l.minWidth=l.styles.minCellWidth||c,l.wrappedWidth=l.contentWidth,l.minWidth>l.wrappedWidth&&(l.wrappedWidth=l.minWidth)}}}}),e.allRows().forEach(function(a){for(var s=0,o=e.columns;s<o.length;s++){var f=o[s],l=a.cells[f.index];if(l&&l.colSpan===1)f.wrappedWidth=Math.max(f.wrappedWidth,l.wrappedWidth),f.minWidth=Math.max(f.minWidth,l.minWidth),f.minReadableWidth=Math.max(f.minReadableWidth,l.minReadableWidth);else{var u=e.styles.columnStyles[f.dataKey]||e.styles.columnStyles[f.index]||{},p=u.cellWidth||u.minCellWidth;p&&typeof p=="number"&&(f.minWidth=p,f.wrappedWidth=p)}l&&(l.colSpan>1&&!f.minWidth&&(f.minWidth=l.minWidth),l.colSpan>1&&!f.wrappedWidth&&(f.wrappedWidth=l.minWidth))}})}function Ql(t,e,r){for(var n=e,i=t.reduce(function(c,w){return c+w.wrappedWidth},0),a=0;a<t.length;a++){var s=t[a],o=s.wrappedWidth/i,f=n*o,l=s.width+f,u=r(s),p=l<u?u:l;e-=p-s.width,s.width=p}if(e=Math.round(e*1e10)/1e10,e){var v=t.filter(function(c){return e<0?c.width>r(c):!0});v.length&&(e=Ql(v,e,r))}return e}function Zv(t){for(var e={},r=1,n=t.allRows(),i=0;i<n.length;i++)for(var a=n[i],s=0,o=t.columns;s<o.length;s++){var f=o[s],l=e[f.index];if(r>1)r--,delete a.cells[f.index];else if(l)l.cell.height+=a.height,r=l.cell.colSpan,delete a.cells[f.index],l.left--,l.left<=1&&delete e[f.index];else{var u=a.cells[f.index];if(!u)continue;if(u.height=a.height,u.rowSpan>1){var p=n.length-i,v=u.rowSpan>p?p:u.rowSpan;e[f.index]={cell:u,left:v,row:a}}}}}function Qv(t){for(var e=t.allRows(),r=0;r<e.length;r++)for(var n=e[r],i=null,a=0,s=0,o=0;o<t.columns.length;o++){var f=t.columns[o];if(s-=1,s>1&&t.columns[o+1])a+=f.width,delete n.cells[f.index];else if(i){var l=i;delete n.cells[f.index],i=null,l.width=f.width+a}else{var l=n.cells[f.index];if(!l)continue;if(s=l.colSpan,a=0,l.colSpan>1){i=l,a+=f.width;continue}l.width=f.width+a}}}function em(t,e){for(var r={count:0,height:0},n=0,i=t.allRows();n<i.length;n++){for(var a=i[n],s=0,o=t.columns;s<o.length;s++){var f=o[s],l=a.cells[f.index];if(l){e.applyStyles(l.styles,!0);var u=l.width-l.padding("horizontal");if(l.styles.overflow==="linebreak")l.text=e.splitTextToSize(l.text,u+1/e.scaleFactor(),{fontSize:l.styles.fontSize});else if(l.styles.overflow==="ellipsize")l.text=Lc(l.text,u,l.styles,e,"...");else if(l.styles.overflow==="hidden")l.text=Lc(l.text,u,l.styles,e,"");else if(typeof l.styles.overflow=="function"){var p=l.styles.overflow(l.text,u);typeof p=="string"?l.text=[p]:l.text=p}l.contentHeight=l.getContentHeight(e.scaleFactor(),e.getLineHeightFactor());var v=l.contentHeight/l.rowSpan;l.rowSpan>1&&r.count*r.height<v*l.rowSpan?r={height:v,count:l.rowSpan}:r&&r.count>0&&r.height>v&&(v=r.height),v>a.height&&(a.height=v)}}r.count--}}function Lc(t,e,r,n,i){return t.map(function(a){return tm(a,e,r,n,i)})}function tm(t,e,r,n,i){var a=1e4*n.scaleFactor();if(e=Math.ceil(e*a)/a,e>=Q0(t,r,n))return t;for(;e<Q0(t+i,r,n)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+i}function b2(t,e){var r=new Bs(t),n=rm(e,r.scaleFactor()),i=new Yv(e,n);return $v(r,i),r.applyStyles(r.userStyles),i}function rm(t,e){var r=t.content,n=im(r.columns);if(r.head.length===0){var i=Fc(n,"head");i&&r.head.push(i)}if(r.foot.length===0){var i=Fc(n,"foot");i&&r.foot.push(i)}var a=t.settings.theme,s=t.styles;return{columns:n,head:Ll("head",r.head,n,s,a,e),body:Ll("body",r.body,n,s,a,e),foot:Ll("foot",r.foot,n,s,a,e)}}function Ll(t,e,r,n,i,a){var s={},o=e.map(function(f,l){for(var u=0,p={},v=0,c=0,w=0,m=r;w<m.length;w++){var y=m[w];if(s[y.index]==null||s[y.index].left===0)if(c===0){var A=void 0;Array.isArray(f)?A=f[y.index-v-u]:A=f[y.dataKey];var D={};typeof A=="object"&&!Array.isArray(A)&&(D=A?.styles||{});var P=am(t,y,l,i,n,a,D),B=new y2(A,P,t);p[y.dataKey]=B,p[y.index]=B,c=B.colSpan-1,s[y.index]={left:B.rowSpan-1,times:c}}else c--,v++;else s[y.index].left--,c=s[y.index].times,u++}return new _2(f,l,t,p)});return o}function Fc(t,e){var r={};return t.forEach(function(n){if(n.raw!=null){var i=nm(e,n.raw);i!=null&&(r[n.dataKey]=i)}}),Object.keys(r).length>0?r:null}function nm(t,e){if(t==="head"){if(typeof e=="object")return e.header||null;if(typeof e=="string"||typeof e=="number")return e}else if(t==="foot"&&typeof e=="object")return e.footer;return null}function im(t){return t.map(function(e,r){var n,i;return typeof e=="object"?i=(n=e.dataKey)!==null&&n!==void 0?n:r:i=r,new Kv(i,e,r)})}function am(t,e,r,n,i,a,s){var o=Iv(n),f;t==="head"?f=i.headStyles:t==="body"?f=i.bodyStyles:t==="foot"&&(f=i.footStyles);var l=ea({},o.table,o[t],i.styles,f),u=i.columnStyles[e.dataKey]||i.columnStyles[e.index]||{},p=t==="body"?u:{},v=t==="body"&&r%2===0?ea({},o.alternateRow,i.alternateRowStyles):{},c=Ov(a),w=ea({},c,l,v,p);return ea(w,s)}function sm(t,e,r){var n;r===void 0&&(r={});var i=v2(t,e),a=new Map,s=[],o=[],f=[];Array.isArray(e.settings.horizontalPageBreakRepeat)?f=e.settings.horizontalPageBreakRepeat:(typeof e.settings.horizontalPageBreakRepeat=="string"||typeof e.settings.horizontalPageBreakRepeat=="number")&&(f=[e.settings.horizontalPageBreakRepeat]),f.forEach(function(v){var c=e.columns.find(function(w){return w.dataKey===v||w.index===v});c&&!a.has(c.index)&&(a.set(c.index,!0),s.push(c.index),o.push(e.columns[c.index]),i-=c.wrappedWidth)});for(var l=!0,u=(n=r?.start)!==null&&n!==void 0?n:0;u<e.columns.length;){if(a.has(u)){u++;continue}var p=e.columns[u].wrappedWidth;if(l||i>=p)l=!1,s.push(u),o.push(e.columns[u]),i-=p;else break;u++}return{colIndexes:s,columns:o,lastIndex:u-1}}function om(t,e){for(var r=[],n=0;n<e.columns.length;n++){var i=sm(t,e,{start:n});i.columns.length&&(r.push(i),n=i.lastIndex)}return r}function A2(t,e){var r=e.settings,n=r.startY,i=r.margin,a={x:i.left,y:n},s=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),o=n+i.bottom+s;if(r.pageBreak==="avoid"){var f=e.body,l=f.reduce(function(v,c){return v+c.height},0);o+=l}var u=new Bs(t);(r.pageBreak==="always"||r.startY!=null&&o>u.pageSize().height)&&(E2(u),a.y=i.top),e.callWillDrawPageHooks(u,a);var p=ea({},a);e.startPageNumber=u.pageNumber(),r.horizontalPageBreak?fm(u,e,p,a):(u.applyStyles(u.userStyles),(r.showHead==="firstPage"||r.showHead==="everyPage")&&e.head.forEach(function(v){return ia(u,e,v,a,e.columns)}),u.applyStyles(u.userStyles),e.body.forEach(function(v,c){var w=c===e.body.length-1;ef(u,e,v,w,p,a,e.columns)}),u.applyStyles(u.userStyles),(r.showFoot==="lastPage"||r.showFoot==="everyPage")&&e.foot.forEach(function(v){return ia(u,e,v,a,e.columns)})),p2(u,e,p,a),e.callEndPageHooks(u,a),e.finalY=a.y,t.lastAutoTable=e,u.applyStyles(u.userStyles)}function fm(t,e,r,n){var i=om(t,e),a=e.settings;if(a.horizontalPageBreakBehaviour==="afterAllRows")i.forEach(function(l,u){t.applyStyles(t.userStyles),u>0?To(t,e,r,n,l.columns,!0):Cc(t,e,n,l.columns),lm(t,e,r,n,l.columns),Fl(t,e,n,l.columns)});else for(var s=-1,o=i[0],f=function(){var l=s;if(o){t.applyStyles(t.userStyles);var u=o.columns;s>=0?To(t,e,r,n,u,!0):Cc(t,e,n,u),l=kc(t,e,s+1,n,u),Fl(t,e,n,u)}var p=l-s;i.slice(1).forEach(function(v){t.applyStyles(t.userStyles),To(t,e,r,n,v.columns,!0),kc(t,e,s+1,n,v.columns,p),Fl(t,e,n,v.columns)}),s=l};s<e.body.length-1;)f()}function Cc(t,e,r,n){var i=e.settings;t.applyStyles(t.userStyles),(i.showHead==="firstPage"||i.showHead==="everyPage")&&e.head.forEach(function(a){return ia(t,e,a,r,n)})}function lm(t,e,r,n,i){t.applyStyles(t.userStyles),e.body.forEach(function(a,s){var o=s===e.body.length-1;ef(t,e,a,o,r,n,i)})}function kc(t,e,r,n,i,a){t.applyStyles(t.userStyles),a=a??e.body.length;var s=Math.min(r+a,e.body.length),o=-1;return e.body.slice(r,s).forEach(function(f,l){var u=r+l===e.body.length-1,p=S2(t,e,u,n);f.canEntireRowFit(p,i)&&(ia(t,e,f,n,i),o=r+l)}),o}function Fl(t,e,r,n){var i=e.settings;t.applyStyles(t.userStyles),(i.showFoot==="lastPage"||i.showFoot==="everyPage")&&e.foot.forEach(function(a){return ia(t,e,a,r,n)})}function hm(t,e,r){var n=r.getLineHeight(t.styles.fontSize),i=t.padding("vertical"),a=Math.floor((e-i)/n);return Math.max(0,a)}function um(t,e,r,n){var i={};t.spansMultiplePages=!0,t.height=0;for(var a=0,s=0,o=r.columns;s<o.length;s++){var f=o[s],l=t.cells[f.index];if(l){Array.isArray(l.text)||(l.text=[l.text]);var u=new y2(l.raw,l.styles,l.section);u=ea(u,l),u.text=[];var p=hm(l,e,n);l.text.length>p&&(u.text=l.text.splice(p,l.text.length));var v=n.scaleFactor(),c=n.getLineHeightFactor();l.contentHeight=l.getContentHeight(v,c),l.contentHeight>=e&&(l.contentHeight=e,u.styles.minCellHeight-=e),l.contentHeight>t.height&&(t.height=l.contentHeight),u.contentHeight=u.getContentHeight(v,c),u.contentHeight>a&&(a=u.contentHeight),i[f.index]=u}}var w=new _2(t.raw,-1,t.section,i,!0);w.height=a;for(var m=0,y=r.columns;m<y.length;m++){var f=y[m],u=w.cells[f.index];u&&(u.height=w.height);var l=t.cells[f.index];l&&(l.height=t.height)}return w}function cm(t,e,r,n){var i=t.pageSize().height,a=n.settings.margin,s=a.top+a.bottom,o=i-s;e.section==="body"&&(o-=n.getHeadHeight(n.columns)+n.getFootHeight(n.columns));var f=e.getMinimumRowHeight(n.columns,t),l=f<r;if(f>o)return console.error("Will not be able to print row ".concat(e.index," correctly since it's minimum height is larger than page height")),!0;if(!l)return!1;var u=e.hasRowSpan(n.columns),p=e.getMaxCellHeight(n.columns)>o;return p?(u&&console.error("The content of row ".concat(e.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(u||n.settings.rowPageBreak==="avoid")}function ef(t,e,r,n,i,a,s){var o=S2(t,e,n,a);if(r.canEntireRowFit(o,s))ia(t,e,r,a,s);else if(cm(t,r,o,e)){var f=um(r,o,e,t);ia(t,e,r,a,s),To(t,e,i,a,s),ef(t,e,f,n,i,a,s)}else To(t,e,i,a,s),ef(t,e,r,n,i,a,s)}function ia(t,e,r,n,i){n.x=e.settings.margin.left;for(var a=0,s=i;a<s.length;a++){var o=s[a],f=r.cells[o.index];if(!f){n.x+=o.width;continue}t.applyStyles(f.styles),f.x=n.x,f.y=n.y;var l=e.callCellHooks(t,e.hooks.willDrawCell,f,r,o,n);if(l===!1){n.x+=o.width;continue}dm(t,f,n);var u=f.getTextPos();u2(f.text,u.x,u.y,{halign:f.styles.halign,valign:f.styles.valign,maxWidth:Math.ceil(f.width-f.padding("left")-f.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,f,r,o,n),n.x+=o.width}n.y+=r.height}function dm(t,e,r){var n=e.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),typeof n.lineWidth=="number"){var i=g2(n.lineWidth,n.fillColor);i&&t.rect(e.x,r.y,e.width,e.height,i)}else typeof n.lineWidth=="object"&&(n.fillColor&&t.rect(e.x,r.y,e.width,e.height,"F"),pm(t,e,r,n.lineWidth))}function pm(t,e,r,n){var i,a,s,o;n.top&&(i=r.x,a=r.y,s=r.x+e.width,o=r.y,n.right&&(s+=.5*n.right),n.left&&(i-=.5*n.left),f(n.top,i,a,s,o)),n.bottom&&(i=r.x,a=r.y+e.height,s=r.x+e.width,o=r.y+e.height,n.right&&(s+=.5*n.right),n.left&&(i-=.5*n.left),f(n.bottom,i,a,s,o)),n.left&&(i=r.x,a=r.y,s=r.x,o=r.y+e.height,n.top&&(a-=.5*n.top),n.bottom&&(o+=.5*n.bottom),f(n.left,i,a,s,o)),n.right&&(i=r.x+e.width,a=r.y,s=r.x+e.width,o=r.y+e.height,n.top&&(a-=.5*n.top),n.bottom&&(o+=.5*n.bottom),f(n.right,i,a,s,o));function f(l,u,p,v,c){t.getDocument().setLineWidth(l),t.getDocument().line(u,p,v,c,"S")}}function S2(t,e,r,n){var i=e.settings.margin.bottom,a=e.settings.showFoot;return(a==="everyPage"||a==="lastPage"&&r)&&(i+=e.getFootHeight(e.columns)),t.pageSize().height-n.y-i}function To(t,e,r,n,i,a){i===void 0&&(i=[]),a===void 0&&(a=!1),t.applyStyles(t.userStyles),e.settings.showFoot==="everyPage"&&!a&&e.foot.forEach(function(o){return ia(t,e,o,n,i)}),e.callEndPageHooks(t,n);var s=e.settings.margin;p2(t,e,r,n),E2(t),e.pageNumber++,n.x=s.left,n.y=s.top,r.y=s.top,e.callWillDrawPageHooks(t,n),e.settings.showHead==="everyPage"&&(e.head.forEach(function(o){return ia(t,e,o,n,i)}),t.applyStyles(t.userStyles))}function E2(t){var e=t.pageNumber();t.setPage(e+1);var r=t.pageNumber();return r===e?(t.addPage(),!0):!1}function gm(t){t.API.autoTable=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[0],i=w2(this,n),a=b2(this,i);return A2(this,a),this},t.API.lastAutoTable=!1,t.API.autoTableText=function(e,r,n,i){u2(e,r,n,i,this)},t.API.autoTableSetDefaults=function(e){return Bs.setDefaults(e,this),this},t.autoTableSetDefaults=function(e,r){Bs.setDefaults(e,r)},t.API.autoTableHtmlToJson=function(e,r){var n;if(r===void 0&&(r=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var i=new Bs(this),a=x2(i,e,window,r,!1),s=a.head,o=a.body,f=((n=s[0])===null||n===void 0?void 0:n.map(function(l){return l.content}))||[];return{columns:f,rows:o,data:o}}}var Cl;function vm(t,e){var r=w2(t,e),n=b2(t,r);A2(t,n)}try{if(typeof window<"u"&&window){var Pc=window,Oc=Pc.jsPDF||((Cl=Pc.jspdf)===null||Cl===void 0?void 0:Cl.jsPDF);Oc&&gm(Oc)}}catch(t){console.error("Could not apply autoTable plugin",t)}var tf={};tf.version="0.18.5";var T2=1252,mm=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],N2=function(t){mm.indexOf(t)!=-1&&(T2=t)};function xm(){N2(1252)}var Do=function(t){N2(t)};function wm(){Do(1200),xm()}var D0=function(e){return String.fromCharCode(e)},Ic=function(e){return String.fromCharCode(e)},rf,La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ro(t){for(var e="",r=0,n=0,i=0,a=0,s=0,o=0,f=0,l=0;l<t.length;)r=t.charCodeAt(l++),a=r>>2,n=t.charCodeAt(l++),s=(r&3)<<4|n>>4,i=t.charCodeAt(l++),o=(n&15)<<2|i>>6,f=i&63,isNaN(n)?o=f=64:isNaN(i)&&(f=64),e+=La.charAt(a)+La.charAt(s)+La.charAt(o)+La.charAt(f);return e}function aa(t){var e="",r=0,n=0,i=0,a=0,s=0,o=0,f=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<t.length;)a=La.indexOf(t.charAt(l++)),s=La.indexOf(t.charAt(l++)),r=a<<2|s>>4,e+=String.fromCharCode(r),o=La.indexOf(t.charAt(l++)),n=(s&15)<<4|o>>2,o!==64&&(e+=String.fromCharCode(n)),f=La.indexOf(t.charAt(l++)),i=(o&3)<<6|f,f!==64&&(e+=String.fromCharCode(i));return e}var zt=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),oa=(function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}})();function rs(t){return zt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function Dc(t){return zt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var gi=function(e){return zt?oa(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)&255})};function _f(t){if(typeof ArrayBuffer>"u")return gi(t);for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),n=0;n!=t.length;++n)r[n]=t.charCodeAt(n)&255;return e}function qo(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var e=[],r=0;r<t.length;++r)e[r]=String.fromCharCode(t[r]);return e.join("")}function _m(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}var an=zt?function(t){return Buffer.concat(t.map(function(e){return Buffer.isBuffer(e)?e:oa(e)}))}:function(t){if(typeof Uint8Array<"u"){var e=0,r=0;for(e=0;e<t.length;++e)r+=t[e].length;var n=new Uint8Array(r),i=0;for(e=0,r=0;e<t.length;r+=i,++e)if(i=t[e].length,t[e]instanceof Uint8Array)n.set(t[e],r);else{if(typeof t[e]=="string")throw"wtf";n.set(new Uint8Array(t[e]),r)}return n}return[].concat.apply([],t.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function ym(t){for(var e=[],r=0,n=t.length+250,i=rs(t.length+255),a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s<128)i[r++]=s;else if(s<2048)i[r++]=192|s>>6&31,i[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=t.charCodeAt(++a)&1023;i[r++]=240|s>>8&7,i[r++]=128|s>>2&63,i[r++]=128|o>>6&15|(s&3)<<4,i[r++]=128|o&63}else i[r++]=224|s>>12&15,i[r++]=128|s>>6&63,i[r++]=128|s&63;r>n&&(e.push(i.slice(0,r)),r=0,i=rs(65535),n=65530)}return e.push(i.slice(0,r)),an(e)}var No=/\u0000/g,R0=/[\u0001-\u0006]/g;function Ms(t){for(var e="",r=t.length-1;r>=0;)e+=t.charAt(r--);return e}function vi(t,e){var r=""+t;return r.length>=e?r:br("0",e-r.length)+r}function lh(t,e){var r=""+t;return r.length>=e?r:br(" ",e-r.length)+r}function nf(t,e){var r=""+t;return r.length>=e?r:r+br(" ",e-r.length)}function bm(t,e){var r=""+Math.round(t);return r.length>=e?r:br("0",e-r.length)+r}function Am(t,e){var r=""+t;return r.length>=e?r:br("0",e-r.length)+r}var Rc=Math.pow(2,32);function Es(t,e){if(t>Rc||t<-Rc)return bm(t,e);var r=Math.round(t);return Am(r,e)}function af(t,e){return e=e||0,t.length>=7+e&&(t.charCodeAt(e)|32)===103&&(t.charCodeAt(e+1)|32)===101&&(t.charCodeAt(e+2)|32)===110&&(t.charCodeAt(e+3)|32)===101&&(t.charCodeAt(e+4)|32)===114&&(t.charCodeAt(e+5)|32)===97&&(t.charCodeAt(e+6)|32)===108}var Bc=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],kl=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Sm(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}var Ar={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Mc={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Em={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function sf(t,e,r){for(var n=t<0?-1:1,i=t*n,a=0,s=1,o=0,f=1,l=0,u=0,p=Math.floor(i);l<e&&(p=Math.floor(i),o=p*s+a,u=p*l+f,!(i-p<5e-8));)i=1/(i-p),a=s,s=o,f=l,l=u;if(u>e&&(l>e?(u=f,o=a):(u=l,o=s)),!r)return[0,n*o,u];var v=Math.floor(n*o/u);return[v,n*o-v*u,u]}function B0(t,e,r){if(t>2958465||t<0)return null;var n=t|0,i=Math.floor(86400*(t-n)),a=0,s=[],o={D:n,T:i,u:86400*(t-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),e&&e.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++i==86400&&(o.T=i=0,++n,++o.D)),n===60)s=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var f=new Date(1900,0,1);f.setDate(f.getDate()+n-1),s=[f.getFullYear(),f.getMonth()+1,f.getDate()],a=f.getDay(),n<60&&(a=(a+6)%7),r&&(a=Pm(f,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var L2=new Date(1899,11,31,0,0,0),Tm=L2.getTime(),Nm=new Date(1900,2,1,0,0,0);function F2(t,e){var r=t.getTime();return e?r-=1461*24*60*60*1e3:t>=Nm&&(r+=1440*60*1e3),(r-(Tm+(t.getTimezoneOffset()-L2.getTimezoneOffset())*6e4))/(1440*60*1e3)}function hh(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Lm(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Fm(t){var e=t<0?12:11,r=hh(t.toFixed(12));return r.length<=e||(r=t.toPrecision(10),r.length<=e)?r:t.toExponential(5)}function Cm(t){var e=hh(t.toFixed(11));return e.length>(t<0?12:11)||e==="0"||e==="-0"?t.toPrecision(6):e}function km(t){var e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),r;return e>=-4&&e<=-1?r=t.toPrecision(10+e):Math.abs(e)<=9?r=Fm(t):e===10?r=t.toFixed(10).substr(0,12):r=Cm(t),hh(Lm(r.toUpperCase()))}function eh(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):km(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return ka(14,F2(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function Pm(t,e){e[0]-=581;var r=t.getDay();return t<60&&(r=(r+6)%7),r}function Om(t,e,r,n){var i="",a=0,s=0,o=r.y,f,l=0;switch(t){case 98:o=r.y+543;case 121:switch(e.length){case 1:case 2:f=o%100,l=2;break;default:f=o%1e4,l=4;break}break;case 109:switch(e.length){case 1:case 2:f=r.m,l=e.length;break;case 3:return kl[r.m-1][1];case 5:return kl[r.m-1][0];default:return kl[r.m-1][2]}break;case 100:switch(e.length){case 1:case 2:f=r.d,l=e.length;break;case 3:return Bc[r.q][0];default:return Bc[r.q][1]}break;case 104:switch(e.length){case 1:case 2:f=1+(r.H+11)%12,l=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:f=r.H,l=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:f=r.M,l=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return r.u===0&&(e=="s"||e=="ss")?vi(r.S,e.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(r.S+r.u)),a>=60*s&&(a=0),e==="s"?a===0?"0":""+a/s:(i=vi(a,2+n),e==="ss"?i.substr(0,2):"."+i.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":f=r.D*24+r.H;break;case"[m]":case"[mm]":f=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":f=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+e}l=e.length===3?1:2;break;case 101:f=o,l=1;break}var u=l>0?vi(f,l):"";return u}function Fa(t){var e=3;if(t.length<=e)return t;for(var r=t.length%e,n=t.substr(0,r);r!=t.length;r+=e)n+=(n.length>0?",":"")+t.substr(r,e);return n}var C2=/%/g;function Im(t,e,r){var n=e.replace(C2,""),i=e.length-n.length;return ta(t,n,r*Math.pow(10,2*i))+br("%",i)}function Dm(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return ta(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function k2(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+k2(t,-e);var i=t.indexOf(".");i===-1&&(i=t.indexOf("E"));var a=Math.floor(Math.log(e)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(e/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var s=Math.floor(Math.log(e)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,f,l,u){return f+l+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var P2=/# (\?+)( ?)\/( ?)(\d+)/;function Rm(t,e,r){var n=parseInt(t[4],10),i=Math.round(e*n),a=Math.floor(i/n),s=i-a*n,o=n;return r+(a===0?"":""+a)+" "+(s===0?br(" ",t[1].length+1+t[4].length):lh(s,t[1].length)+t[2]+"/"+t[3]+vi(o,t[4].length))}function Bm(t,e,r){return r+(e===0?"":""+e)+br(" ",t[1].length+2+t[4].length)}var O2=/^#*0*\.([0#]+)/,I2=/\).*[0#]/,D2=/\(###\) ###\\?-####/;function yn(t){for(var e="",r,n=0;n!=t.length;++n)switch(r=t.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(r)}return e}function Uc(t,e){var r=Math.pow(10,e);return""+Math.round(t*r)/r}function jc(t,e){var r=t-Math.floor(t),n=Math.pow(10,e);return e<(""+Math.round(r*n)).length?0:Math.round(r*n)}function Mm(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}function Um(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function Qn(t,e,r){if(t.charCodeAt(0)===40&&!e.match(I2)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Qn("n",n,r):"("+Qn("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return Dm(t,e,r);if(e.indexOf("%")!==-1)return Im(t,e,r);if(e.indexOf("E")!==-1)return k2(e,r);if(e.charCodeAt(0)===36)return"$"+Qn(t,e.substr(e.charAt(1)==" "?2:1),r);var i,a,s,o,f=Math.abs(r),l=r<0?"-":"";if(e.match(/^00+$/))return l+Es(f,e.length);if(e.match(/^[#?]+$/))return i=Es(r,0),i==="0"&&(i=""),i.length>e.length?i:yn(e.substr(0,e.length-i.length))+i;if(a=e.match(P2))return Rm(a,f,l);if(e.match(/^#+0+$/))return l+Es(f,e.length-e.indexOf("0"));if(a=e.match(O2))return i=Uc(r,a[1].length).replace(/^([^\.]+)$/,"$1."+yn(a[1])).replace(/\.$/,"."+yn(a[1])).replace(/\.(\d*)$/,function(w,m){return"."+m+br("0",yn(a[1]).length-m.length)}),e.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),a=e.match(/^(0*)\.(#*)$/))return l+Uc(f,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=e.match(/^#{1,3},##0(\.?)$/))return l+Fa(Es(f,0));if(a=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Qn(t,e,-r):Fa(""+(Math.floor(r)+Mm(r,a[1].length)))+"."+vi(jc(r,a[1].length),a[1].length);if(a=e.match(/^#,#*,#0/))return Qn(t,e.replace(/^#,#*,/,""),r);if(a=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Ms(Qn(t,e.replace(/[\\-]/g,""),r)),s=0,Ms(Ms(e.replace(/\\/g,"")).replace(/[0#]/g,function(w){return s<i.length?i.charAt(s++):w==="0"?"0":""}));if(e.match(D2))return i=Qn(t,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=sf(f,Math.pow(10,s)-1,!1),i=""+l,u=ta("n",a[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=nf(o[2],s),u.length<a[4].length&&(u=yn(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=sf(f,Math.pow(10,s)-1,!0),l+(o[0]||(o[1]?"":"0"))+" "+(o[1]?lh(o[1],s)+a[2]+"/"+a[3]+nf(o[2],s):br(" ",2*s+1+a[2].length+a[3].length));if(a=e.match(/^[#0?]+$/))return i=Es(r,0),e.length<=i.length?i:yn(e.substr(0,e.length-i.length))+i;if(a=e.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=e.indexOf(".")-s,v=e.length-i.length-p;return yn(e.substr(0,p)+i+e.substr(e.length-v))}if(a=e.match(/^00,000\.([#0]*0)$/))return s=jc(r,a[1].length),r<0?"-"+Qn(t,e,-r):Fa(Um(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(w){return"00,"+(w.length<3?vi(0,3-w.length):"")+w})+"."+vi(s,a[1].length);switch(e){case"###,##0.00":return Qn(t,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var c=Fa(Es(f,0));return c!=="0"?l+c:"";case"###,###.00":return Qn(t,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Qn(t,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function jm(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return ta(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function Hm(t,e,r){var n=e.replace(C2,""),i=e.length-n.length;return ta(t,n,r*Math.pow(10,2*i))+br("%",i)}function R2(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+R2(t,-e);var i=t.indexOf(".");i===-1&&(i=t.indexOf("E"));var a=Math.floor(Math.log(e)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(e/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!r.match(/[Ee]/)){var s=Math.floor(Math.log(e)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,f,l,u){return f+l+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Ci(t,e,r){if(t.charCodeAt(0)===40&&!e.match(I2)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ci("n",n,r):"("+Ci("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return jm(t,e,r);if(e.indexOf("%")!==-1)return Hm(t,e,r);if(e.indexOf("E")!==-1)return R2(e,r);if(e.charCodeAt(0)===36)return"$"+Ci(t,e.substr(e.charAt(1)==" "?2:1),r);var i,a,s,o,f=Math.abs(r),l=r<0?"-":"";if(e.match(/^00+$/))return l+vi(f,e.length);if(e.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>e.length?i:yn(e.substr(0,e.length-i.length))+i;if(a=e.match(P2))return Bm(a,f,l);if(e.match(/^#+0+$/))return l+vi(f,e.length-e.indexOf("0"));if(a=e.match(O2))return i=(""+r).replace(/^([^\.]+)$/,"$1."+yn(a[1])).replace(/\.$/,"."+yn(a[1])),i=i.replace(/\.(\d*)$/,function(w,m){return"."+m+br("0",yn(a[1]).length-m.length)}),e.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),a=e.match(/^(0*)\.(#*)$/))return l+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=e.match(/^#{1,3},##0(\.?)$/))return l+Fa(""+f);if(a=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ci(t,e,-r):Fa(""+r)+"."+br("0",a[1].length);if(a=e.match(/^#,#*,#0/))return Ci(t,e.replace(/^#,#*,/,""),r);if(a=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Ms(Ci(t,e.replace(/[\\-]/g,""),r)),s=0,Ms(Ms(e.replace(/\\/g,"")).replace(/[0#]/g,function(w){return s<i.length?i.charAt(s++):w==="0"?"0":""}));if(e.match(D2))return i=Ci(t,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=sf(f,Math.pow(10,s)-1,!1),i=""+l,u=ta("n",a[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=nf(o[2],s),u.length<a[4].length&&(u=yn(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=sf(f,Math.pow(10,s)-1,!0),l+(o[0]||(o[1]?"":"0"))+" "+(o[1]?lh(o[1],s)+a[2]+"/"+a[3]+nf(o[2],s):br(" ",2*s+1+a[2].length+a[3].length));if(a=e.match(/^[#0?]+$/))return i=""+r,e.length<=i.length?i:yn(e.substr(0,e.length-i.length))+i;if(a=e.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=e.indexOf(".")-s,v=e.length-i.length-p;return yn(e.substr(0,p)+i+e.substr(e.length-v))}if(a=e.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Ci(t,e,-r):Fa(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(w){return"00,"+(w.length<3?vi(0,3-w.length):"")+w})+"."+vi(0,a[1].length);switch(e){case"###,###":case"##,###":case"#,###":var c=Fa(""+f);return c!=="0"?l+c:"";default:if(e.match(/\.[0#?]*$/))return Ci(t,e.slice(0,e.lastIndexOf(".")),r)+yn(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function ta(t,e,r){return(r|0)===r?Ci(t,e,r):Qn(t,e,r)}function Wm(t){for(var e=[],r=!1,n=0,i=0;n<t.length;++n)switch(t.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:e[e.length]=t.substr(i,n-i),i=n+1}if(e[e.length]=t.substr(i),r===!0)throw new Error("Format |"+t+"| unterminated string ");return e}var B2=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function M2(t){for(var e=0,r="",n="";e<t.length;)switch(r=t.charAt(e)){case"G":af(t,e)&&(e+=6),e++;break;case'"':for(;t.charCodeAt(++e)!==34&&e<t.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if(t.charAt(e+1)==="1"||t.charAt(e+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(t.substr(e,3).toUpperCase()==="A/P"||t.substr(e,5).toUpperCase()==="AM/PM"||t.substr(e,5).toUpperCase()==="上午/下午")return!0;++e;break;case"[":for(n=r;t.charAt(e++)!=="]"&&e<t.length;)n+=t.charAt(e);if(n.match(B2))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(r=t.charAt(++e))>-1||r=="\\"&&t.charAt(e+1)=="-"&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===r;);break;case"*":++e,(t.charAt(e)==" "||t.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;case" ":++e;break;default:++e;break}return!1}function qm(t,e,r,n){for(var i=[],a="",s=0,o="",f="t",l,u,p,v="H";s<t.length;)switch(o=t.charAt(s)){case"G":if(!af(t,s))throw new Error("unrecognized character "+o+" in "+t);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(p=t.charCodeAt(++s))!==34&&s<t.length;)a+=String.fromCharCode(p);i[i.length]={t:"t",v:a},++s;break;case"\\":var c=t.charAt(++s),w=c==="("||c===")"?c:"t";i[i.length]={t:w,v:c},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:e},++s;break;case"B":case"b":if(t.charAt(s+1)==="1"||t.charAt(s+1)==="2"){if(l==null&&(l=B0(e,r,t.charAt(s+1)==="2"),l==null))return"";i[i.length]={t:"X",v:t.substr(s,2)},f=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0||l==null&&(l=B0(e,r),l==null))return"";for(a=o;++s<t.length&&t.charAt(s).toLowerCase()===o;)a+=o;o==="m"&&f.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=v),i[i.length]={t:o,v:a},f=o;break;case"A":case"a":case"上":var m={t:o,v:o};if(l==null&&(l=B0(e,r)),t.substr(s,3).toUpperCase()==="A/P"?(l!=null&&(m.v=l.H>=12?"P":"A"),m.t="T",v="h",s+=3):t.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(m.v=l.H>=12?"PM":"AM"),m.t="T",s+=5,v="h"):t.substr(s,5).toUpperCase()==="上午/下午"?(l!=null&&(m.v=l.H>=12?"下午":"上午"),m.t="T",s+=5,v="h"):(m.t="t",++s),l==null&&m.t==="T")return"";i[i.length]=m,f=o;break;case"[":for(a=o;t.charAt(s++)!=="]"&&s<t.length;)a+=t.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(B2)){if(l==null&&(l=B0(e,r),l==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},f=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",M2(t)||(i[i.length]={t:"t",v:a}));break;case".":if(l!=null){for(a=o;++s<t.length&&(o=t.charAt(s))==="0";)a+=o;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=o;++s<t.length&&"0#?.,E+-%".indexOf(o=t.charAt(s))>-1;)a+=o;i[i.length]={t:"n",v:a};break;case"?":for(a=o;t.charAt(++s)===o;)a+=o;i[i.length]={t:o,v:a},f=o;break;case"*":++s,(t.charAt(s)==" "||t.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=o;s<t.length&&"0123456789".indexOf(t.charAt(++s))>-1;)a+=t.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:o,v:o},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+t);i[i.length]={t:"t",v:o},++s;break}var y=0,A=0,D;for(s=i.length-1,f="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=v,f="h",y<1&&(y=1);break;case"s":(D=i[s].v.match(/\.0+$/))&&(A=Math.max(A,D[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":f=i[s].t;break;case"m":f==="s"&&(i[s].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&i[s].v.match(/[Hh]/)&&(y=1),y<2&&i[s].v.match(/[Mm]/)&&(y=2),y<3&&i[s].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var P="",B;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=Om(i[s].t.charCodeAt(0),i[s].v,l,A),i[s].t="t";break;case"n":case"?":for(B=s+1;i[B]!=null&&((o=i[B].t)==="?"||o==="D"||(o===" "||o==="t")&&i[B+1]!=null&&(i[B+1].t==="?"||i[B+1].t==="t"&&i[B+1].v==="/")||i[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(i[B].v==="/"||i[B].v===" "&&i[B+1]!=null&&i[B+1].t=="?"));)i[s].v+=i[B].v,i[B]={v:"",t:";"},++B;P+=i[s].v,s=B-1;break;case"G":i[s].t="t",i[s].v=eh(e,r);break}var re="",ue,V;if(P.length>0){P.charCodeAt(0)==40?(ue=e<0&&P.charCodeAt(0)===45?-e:e,V=ta("n",P,ue)):(ue=e<0&&n>1?-e:e,V=ta("n",P,ue),ue<0&&i[0]&&i[0].t=="t"&&(V=V.substr(1),i[0].v="-"+i[0].v)),B=V.length-1;var z=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){z=s;break}var k=i.length;if(z===i.length&&V.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(B>=i[s].v.length-1?(B-=i[s].v.length,i[s].v=V.substr(B+1,i[s].v.length)):B<0?i[s].v="":(i[s].v=V.substr(0,B+1),B=-1),i[s].t="t",k=s);B>=0&&k<i.length&&(i[k].v=V.substr(0,B+1)+i[k].v)}else if(z!==i.length&&V.indexOf("E")===-1){for(B=V.indexOf(".")-1,s=z;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(u=i[s].v.indexOf(".")>-1&&s===z?i[s].v.indexOf(".")-1:i[s].v.length-1,re=i[s].v.substr(u+1);u>=0;--u)B>=0&&(i[s].v.charAt(u)==="0"||i[s].v.charAt(u)==="#")&&(re=V.charAt(B--)+re);i[s].v=re,i[s].t="t",k=s}for(B>=0&&k<i.length&&(i[k].v=V.substr(0,B+1)+i[k].v),B=V.indexOf(".")+1,s=z;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==z)){for(u=i[s].v.indexOf(".")>-1&&s===z?i[s].v.indexOf(".")+1:0,re=i[s].v.substr(0,u);u<i[s].v.length;++u)B<V.length&&(re+=V.charAt(B++));i[s].v=re,i[s].t="t",k=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(ue=n>1&&e<0&&s>0&&i[s-1].v==="-"?-e:e,i[s].v=ta(i[s].t,i[s].v,ue),i[s].t="t");var ee="";for(s=0;s!==i.length;++s)i[s]!=null&&(ee+=i[s].v);return ee}var Hc=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Wc(t,e){if(e==null)return!1;var r=parseFloat(e[2]);switch(e[1]){case"=":if(t==r)return!0;break;case">":if(t>r)return!0;break;case"<":if(t<r)return!0;break;case"<>":if(t!=r)return!0;break;case">=":if(t>=r)return!0;break;case"<=":if(t<=r)return!0;break}return!1}function zm(t,e){var r=Wm(t),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof e!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var a=e>0?r[0]:e<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(Hc),o=r[1].match(Hc);return Wc(e,s)?[n,r[0]]:Wc(e,o)?[n,r[1]]:[n,r[s!=null&&o!=null?2:1]]}return[n,a]}function ka(t,e,r){r==null&&(r={});var n="";switch(typeof t){case"string":t=="m/d/yy"&&r.dateNF?n=r.dateNF:n=t;break;case"number":t==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Ar)[t],n==null&&(n=r.table&&r.table[Mc[t]]||Ar[Mc[t]]),n==null&&(n=Em[t]||"General");break}if(af(n,0))return eh(e,r);e instanceof Date&&(e=F2(e,r.date1904));var i=zm(n,e);if(af(i[1]))return eh(e,r);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return qm(i[1],e,r,i[0])}function U2(t,e){if(typeof e!="number"){e=+e||-1;for(var r=0;r<392;++r){if(Ar[r]==null){e<0&&(e=r);continue}if(Ar[r]==t){e=r;break}}e<0&&(e=391)}return Ar[e]=t,e}function yf(t){for(var e=0;e!=392;++e)t[e]!==void 0&&U2(t[e],e)}function bf(){Ar=Sm()}var j2=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Gm(t){var e=typeof t=="number"?Ar[t]:t;return e=e.replace(j2,"(\\d+)"),new RegExp("^"+e+"$")}function Vm(t,e,r){var n=-1,i=-1,a=-1,s=-1,o=-1,f=-1;(e.match(j2)||[]).forEach(function(p,v){var c=parseInt(r[v+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=c;break;case"d":a=c;break;case"h":s=c;break;case"s":f=c;break;case"m":s>=0?o=c:i=c;break}}),f>=0&&o==-1&&i>=0&&(o=i,i=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);return s==-1&&o==-1&&f==-1?l:n==-1&&i==-1&&a==-1?u:l+"T"+u}var Xm=(function(){var t={};t.version="1.2.0";function e(){for(var V=0,z=new Array(256),k=0;k!=256;++k)V=k,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,V=V&1?-306674912^V>>>1:V>>>1,z[k]=V;return typeof Int32Array<"u"?new Int32Array(z):z}var r=e();function n(V){var z=0,k=0,ee=0,S=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(ee=0;ee!=256;++ee)S[ee]=V[ee];for(ee=0;ee!=256;++ee)for(k=V[ee],z=256+ee;z<4096;z+=256)k=S[z]=k>>>8^V[k&255];var I=[];for(ee=1;ee!=16;++ee)I[ee-1]=typeof Int32Array<"u"?S.subarray(ee*256,ee*256+256):S.slice(ee*256,ee*256+256);return I}var i=n(r),a=i[0],s=i[1],o=i[2],f=i[3],l=i[4],u=i[5],p=i[6],v=i[7],c=i[8],w=i[9],m=i[10],y=i[11],A=i[12],D=i[13],P=i[14];function B(V,z){for(var k=z^-1,ee=0,S=V.length;ee<S;)k=k>>>8^r[(k^V.charCodeAt(ee++))&255];return~k}function re(V,z){for(var k=z^-1,ee=V.length-15,S=0;S<ee;)k=P[V[S++]^k&255]^D[V[S++]^k>>8&255]^A[V[S++]^k>>16&255]^y[V[S++]^k>>>24]^m[V[S++]]^w[V[S++]]^c[V[S++]]^v[V[S++]]^p[V[S++]]^u[V[S++]]^l[V[S++]]^f[V[S++]]^o[V[S++]]^s[V[S++]]^a[V[S++]]^r[V[S++]];for(ee+=15;S<ee;)k=k>>>8^r[(k^V[S++])&255];return~k}function ue(V,z){for(var k=z^-1,ee=0,S=V.length,I=0,G=0;ee<S;)I=V.charCodeAt(ee++),I<128?k=k>>>8^r[(k^I)&255]:I<2048?(k=k>>>8^r[(k^(192|I>>6&31))&255],k=k>>>8^r[(k^(128|I&63))&255]):I>=55296&&I<57344?(I=(I&1023)+64,G=V.charCodeAt(ee++)&1023,k=k>>>8^r[(k^(240|I>>8&7))&255],k=k>>>8^r[(k^(128|I>>2&63))&255],k=k>>>8^r[(k^(128|G>>6&15|(I&3)<<4))&255],k=k>>>8^r[(k^(128|G&63))&255]):(k=k>>>8^r[(k^(224|I>>12&15))&255],k=k>>>8^r[(k^(128|I>>6&63))&255],k=k>>>8^r[(k^(128|I&63))&255]);return~k}return t.table=r,t.bstr=B,t.buf=re,t.str=ue,t})(),tr=(function(){var e={};e.version="1.2.1";function r(C,K){for(var U=C.split("/"),H=K.split("/"),J=0,Q=0,ge=Math.min(U.length,H.length);J<ge;++J){if(Q=U[J].length-H[J].length)return Q;if(U[J]!=H[J])return U[J]<H[J]?-1:1}return U.length-H.length}function n(C){if(C.charAt(C.length-1)=="/")return C.slice(0,-1).indexOf("/")===-1?C:n(C.slice(0,-1));var K=C.lastIndexOf("/");return K===-1?C:C.slice(0,K+1)}function i(C){if(C.charAt(C.length-1)=="/")return i(C.slice(0,-1));var K=C.lastIndexOf("/");return K===-1?C:C.slice(K+1)}function a(C,K){typeof K=="string"&&(K=new Date(K));var U=K.getHours();U=U<<6|K.getMinutes(),U=U<<5|K.getSeconds()>>>1,C.write_shift(2,U);var H=K.getFullYear()-1980;H=H<<4|K.getMonth()+1,H=H<<5|K.getDate(),C.write_shift(2,H)}function s(C){var K=C.read_shift(2)&65535,U=C.read_shift(2)&65535,H=new Date,J=U&31;U>>>=5;var Q=U&15;U>>>=4,H.setMilliseconds(0),H.setFullYear(U+1980),H.setMonth(Q-1),H.setDate(J);var ge=K&31;K>>>=5;var Se=K&63;return K>>>=6,H.setHours(K),H.setMinutes(Se),H.setSeconds(ge<<1),H}function o(C){Hn(C,0);for(var K={},U=0;C.l<=C.length-4;){var H=C.read_shift(2),J=C.read_shift(2),Q=C.l+J,ge={};H===21589&&(U=C.read_shift(1),U&1&&(ge.mtime=C.read_shift(4)),J>5&&(U&2&&(ge.atime=C.read_shift(4)),U&4&&(ge.ctime=C.read_shift(4))),ge.mtime&&(ge.mt=new Date(ge.mtime*1e3))),C.l=Q,K[H]=ge}return K}var f;function l(){return f||(f={})}function u(C,K){if(C[0]==80&&C[1]==75)return wt(C,K);if((C[0]|32)==109&&(C[1]|32)==105)return gt(C,K);if(C.length<512)throw new Error("CFB file size "+C.length+" < 512");var U=3,H=512,J=0,Q=0,ge=0,Se=0,ve=0,me=[],_e=C.slice(0,512);Hn(_e,0);var Me=p(_e);switch(U=Me[0],U){case 3:H=512;break;case 4:H=4096;break;case 0:if(Me[1]==0)return wt(C,K);default:throw new Error("Major Version: Expected 3 or 4 saw "+U)}H!==512&&(_e=C.slice(0,H),Hn(_e,28));var Ge=C.slice(0,H);v(_e,U);var $e=_e.read_shift(4,"i");if(U===3&&$e!==0)throw new Error("# Directory Sectors: Expected 0 saw "+$e);_e.l+=4,ge=_e.read_shift(4,"i"),_e.l+=4,_e.chk("00100000","Mini Stream Cutoff Size: "),Se=_e.read_shift(4,"i"),J=_e.read_shift(4,"i"),ve=_e.read_shift(4,"i"),Q=_e.read_shift(4,"i");for(var We=-1,Ke=0;Ke<109&&(We=_e.read_shift(4,"i"),!(We<0));++Ke)me[Ke]=We;var vt=c(C,H);y(ve,Q,vt,H,me);var er=D(vt,ge,me,H);er[ge].name="!Directory",J>0&&Se!==G&&(er[Se].name="!MiniFAT"),er[me[0]].name="!FAT",er.fat_addrs=me,er.ssz=H;var Bt={},xr=[],yi=[],si=[];P(ge,er,vt,xr,J,Bt,yi,Se),w(yi,si,xr),xr.shift();var bi={FileIndex:yi,FullPaths:si};return K&&K.raw&&(bi.raw={header:Ge,sectors:vt}),bi}function p(C){if(C[C.l]==80&&C[C.l+1]==75)return[0,0];C.chk(te,"Header Signature: "),C.l+=16;var K=C.read_shift(2,"u");return[C.read_shift(2,"u"),K]}function v(C,K){var U=9;switch(C.l+=2,U=C.read_shift(2)){case 9:if(K!=3)throw new Error("Sector Shift: Expected 9 saw "+U);break;case 12:if(K!=4)throw new Error("Sector Shift: Expected 12 saw "+U);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+U)}C.chk("0600","Mini Sector Shift: "),C.chk("000000000000","Reserved: ")}function c(C,K){for(var U=Math.ceil(C.length/K)-1,H=[],J=1;J<U;++J)H[J-1]=C.slice(J*K,(J+1)*K);return H[U-1]=C.slice(U*K),H}function w(C,K,U){for(var H=0,J=0,Q=0,ge=0,Se=0,ve=U.length,me=[],_e=[];H<ve;++H)me[H]=_e[H]=H,K[H]=U[H];for(;Se<_e.length;++Se)H=_e[Se],J=C[H].L,Q=C[H].R,ge=C[H].C,me[H]===H&&(J!==-1&&me[J]!==J&&(me[H]=me[J]),Q!==-1&&me[Q]!==Q&&(me[H]=me[Q])),ge!==-1&&(me[ge]=H),J!==-1&&H!=me[H]&&(me[J]=me[H],_e.lastIndexOf(J)<Se&&_e.push(J)),Q!==-1&&H!=me[H]&&(me[Q]=me[H],_e.lastIndexOf(Q)<Se&&_e.push(Q));for(H=1;H<ve;++H)me[H]===H&&(Q!==-1&&me[Q]!==Q?me[H]=me[Q]:J!==-1&&me[J]!==J&&(me[H]=me[J]));for(H=1;H<ve;++H)if(C[H].type!==0){if(Se=H,Se!=me[Se])do Se=me[Se],K[H]=K[Se]+"/"+K[H];while(Se!==0&&me[Se]!==-1&&Se!=me[Se]);me[H]=-1}for(K[0]+="/",H=1;H<ve;++H)C[H].type!==2&&(K[H]+="/")}function m(C,K,U){for(var H=C.start,J=C.size,Q=[],ge=H;U&&J>0&&ge>=0;)Q.push(K.slice(ge*I,ge*I+I)),J-=I,ge=Ja(U,ge*4);return Q.length===0?Ee(0):an(Q).slice(0,C.size)}function y(C,K,U,H,J){var Q=G;if(C===G){if(K!==0)throw new Error("DIFAT chain shorter than expected")}else if(C!==-1){var ge=U[C],Se=(H>>>2)-1;if(!ge)return;for(var ve=0;ve<Se&&(Q=Ja(ge,ve*4))!==G;++ve)J.push(Q);y(Ja(ge,H-4),K-1,U,H,J)}}function A(C,K,U,H,J){var Q=[],ge=[];J||(J=[]);var Se=H-1,ve=0,me=0;for(ve=K;ve>=0;){J[ve]=!0,Q[Q.length]=ve,ge.push(C[ve]);var _e=U[Math.floor(ve*4/H)];if(me=ve*4&Se,H<4+me)throw new Error("FAT boundary crossed: "+ve+" 4 "+H);if(!C[_e])break;ve=Ja(C[_e],me)}return{nodes:Q,data:$c([ge])}}function D(C,K,U,H){var J=C.length,Q=[],ge=[],Se=[],ve=[],me=H-1,_e=0,Me=0,Ge=0,$e=0;for(_e=0;_e<J;++_e)if(Se=[],Ge=_e+K,Ge>=J&&(Ge-=J),!ge[Ge]){ve=[];var We=[];for(Me=Ge;Me>=0;){We[Me]=!0,ge[Me]=!0,Se[Se.length]=Me,ve.push(C[Me]);var Ke=U[Math.floor(Me*4/H)];if($e=Me*4&me,H<4+$e)throw new Error("FAT boundary crossed: "+Me+" 4 "+H);if(!C[Ke]||(Me=Ja(C[Ke],$e),We[Me]))break}Q[Ge]={nodes:Se,data:$c([ve])}}return Q}function P(C,K,U,H,J,Q,ge,Se){for(var ve=0,me=H.length?2:0,_e=K[C].data,Me=0,Ge=0,$e;Me<_e.length;Me+=128){var We=_e.slice(Me,Me+128);Hn(We,64),Ge=We.read_shift(2),$e=gh(We,0,Ge-me),H.push($e);var Ke={name:$e,type:We.read_shift(1),color:We.read_shift(1),L:We.read_shift(4,"i"),R:We.read_shift(4,"i"),C:We.read_shift(4,"i"),clsid:We.read_shift(16),state:We.read_shift(4,"i"),start:0,size:0},vt=We.read_shift(2)+We.read_shift(2)+We.read_shift(2)+We.read_shift(2);vt!==0&&(Ke.ct=B(We,We.l-8));var er=We.read_shift(2)+We.read_shift(2)+We.read_shift(2)+We.read_shift(2);er!==0&&(Ke.mt=B(We,We.l-8)),Ke.start=We.read_shift(4,"i"),Ke.size=We.read_shift(4,"i"),Ke.size<0&&Ke.start<0&&(Ke.size=Ke.type=0,Ke.start=G,Ke.name=""),Ke.type===5?(ve=Ke.start,J>0&&ve!==G&&(K[ve].name="!StreamData")):Ke.size>=4096?(Ke.storage="fat",K[Ke.start]===void 0&&(K[Ke.start]=A(U,Ke.start,K.fat_addrs,K.ssz)),K[Ke.start].name=Ke.name,Ke.content=K[Ke.start].data.slice(0,Ke.size)):(Ke.storage="minifat",Ke.size<0?Ke.size=0:ve!==G&&Ke.start!==G&&K[ve]&&(Ke.content=m(Ke,K[ve].data,(K[Se]||{}).data))),Ke.content&&Hn(Ke.content,0),Q[$e]=Ke,ge.push(Ke)}}function B(C,K){return new Date((qn(C,K+4)/1e7*Math.pow(2,32)+qn(C,K)/1e7-11644473600)*1e3)}function re(C,K){return l(),u(f.readFileSync(C),K)}function ue(C,K){var U=K&&K.type;switch(U||zt&&Buffer.isBuffer(C)&&(U="buffer"),U||"base64"){case"file":return re(C,K);case"base64":return u(gi(aa(C)),K);case"binary":return u(gi(C),K)}return u(C,K)}function V(C,K){var U=K||{},H=U.root||"Root Entry";if(C.FullPaths||(C.FullPaths=[]),C.FileIndex||(C.FileIndex=[]),C.FullPaths.length!==C.FileIndex.length)throw new Error("inconsistent CFB structure");C.FullPaths.length===0&&(C.FullPaths[0]=H+"/",C.FileIndex[0]={name:H,type:5}),U.CLSID&&(C.FileIndex[0].clsid=U.CLSID),z(C)}function z(C){var K="Sh33tJ5";if(!tr.find(C,"/"+K)){var U=Ee(4);U[0]=55,U[1]=U[3]=50,U[2]=54,C.FileIndex.push({name:K,type:2,content:U,size:4,L:69,R:69,C:69}),C.FullPaths.push(C.FullPaths[0]+K),k(C)}}function k(C,K){V(C);for(var U=!1,H=!1,J=C.FullPaths.length-1;J>=0;--J){var Q=C.FileIndex[J];switch(Q.type){case 0:H?U=!0:(C.FileIndex.pop(),C.FullPaths.pop());break;case 1:case 2:case 5:H=!0,isNaN(Q.R*Q.L*Q.C)&&(U=!0),Q.R>-1&&Q.L>-1&&Q.R==Q.L&&(U=!0);break;default:U=!0;break}}if(!(!U&&!K)){var ge=new Date(1987,1,19),Se=0,ve=Object.create?Object.create(null):{},me=[];for(J=0;J<C.FullPaths.length;++J)ve[C.FullPaths[J]]=!0,C.FileIndex[J].type!==0&&me.push([C.FullPaths[J],C.FileIndex[J]]);for(J=0;J<me.length;++J){var _e=n(me[J][0]);H=ve[_e],H||(me.push([_e,{name:i(_e).replace("/",""),type:1,clsid:be,ct:ge,mt:ge,content:null}]),ve[_e]=!0)}for(me.sort(function($e,We){return r($e[0],We[0])}),C.FullPaths=[],C.FileIndex=[],J=0;J<me.length;++J)C.FullPaths[J]=me[J][0],C.FileIndex[J]=me[J][1];for(J=0;J<me.length;++J){var Me=C.FileIndex[J],Ge=C.FullPaths[J];if(Me.name=i(Ge).replace("/",""),Me.L=Me.R=Me.C=-(Me.color=1),Me.size=Me.content?Me.content.length:0,Me.start=0,Me.clsid=Me.clsid||be,J===0)Me.C=me.length>1?1:-1,Me.size=0,Me.type=5;else if(Ge.slice(-1)=="/"){for(Se=J+1;Se<me.length&&n(C.FullPaths[Se])!=Ge;++Se);for(Me.C=Se>=me.length?-1:Se,Se=J+1;Se<me.length&&n(C.FullPaths[Se])!=n(Ge);++Se);Me.R=Se>=me.length?-1:Se,Me.type=1}else n(C.FullPaths[J+1]||"")==n(Ge)&&(Me.R=J+1),Me.type=2}}}function ee(C,K){var U=K||{};if(U.fileType=="mad")return ii(C,U);if(k(C),U.fileType==="zip")return Ot(C,U);var H=(function($e){for(var We=0,Ke=0,vt=0;vt<$e.FileIndex.length;++vt){var er=$e.FileIndex[vt];if(er.content){var Bt=er.content.length;Bt>0&&(Bt<4096?We+=Bt+63>>6:Ke+=Bt+511>>9)}}for(var xr=$e.FullPaths.length+3>>2,yi=We+7>>3,si=We+127>>7,bi=yi+Ke+xr+si,Xn=bi+127>>7,fa=Xn<=109?0:Math.ceil((Xn-109)/127);bi+Xn+fa+127>>7>Xn;)fa=++Xn<=109?0:Math.ceil((Xn-109)/127);var Pr=[1,fa,Xn,si,xr,Ke,We,0];return $e.FileIndex[0].size=We<<6,Pr[7]=($e.FileIndex[0].start=Pr[0]+Pr[1]+Pr[2]+Pr[3]+Pr[4]+Pr[5])+(Pr[6]+7>>3),Pr})(C),J=Ee(H[7]<<9),Q=0,ge=0;{for(Q=0;Q<8;++Q)J.write_shift(1,he[Q]);for(Q=0;Q<8;++Q)J.write_shift(2,0);for(J.write_shift(2,62),J.write_shift(2,3),J.write_shift(2,65534),J.write_shift(2,9),J.write_shift(2,6),Q=0;Q<3;++Q)J.write_shift(2,0);for(J.write_shift(4,0),J.write_shift(4,H[2]),J.write_shift(4,H[0]+H[1]+H[2]+H[3]-1),J.write_shift(4,0),J.write_shift(4,4096),J.write_shift(4,H[3]?H[0]+H[1]+H[2]-1:G),J.write_shift(4,H[3]),J.write_shift(-4,H[1]?H[0]-1:G),J.write_shift(4,H[1]),Q=0;Q<109;++Q)J.write_shift(-4,Q<H[2]?H[1]+Q:-1)}if(H[1])for(ge=0;ge<H[1];++ge){for(;Q<236+ge*127;++Q)J.write_shift(-4,Q<H[2]?H[1]+Q:-1);J.write_shift(-4,ge===H[1]-1?G:ge+1)}var Se=function($e){for(ge+=$e;Q<ge-1;++Q)J.write_shift(-4,Q+1);$e&&(++Q,J.write_shift(-4,G))};for(ge=Q=0,ge+=H[1];Q<ge;++Q)J.write_shift(-4,ye.DIFSECT);for(ge+=H[2];Q<ge;++Q)J.write_shift(-4,ye.FATSECT);Se(H[3]),Se(H[4]);for(var ve=0,me=0,_e=C.FileIndex[0];ve<C.FileIndex.length;++ve)_e=C.FileIndex[ve],_e.content&&(me=_e.content.length,!(me<4096)&&(_e.start=ge,Se(me+511>>9)));for(Se(H[6]+7>>3);J.l&511;)J.write_shift(-4,ye.ENDOFCHAIN);for(ge=Q=0,ve=0;ve<C.FileIndex.length;++ve)_e=C.FileIndex[ve],_e.content&&(me=_e.content.length,!(!me||me>=4096)&&(_e.start=ge,Se(me+63>>6)));for(;J.l&511;)J.write_shift(-4,ye.ENDOFCHAIN);for(Q=0;Q<H[4]<<2;++Q){var Me=C.FullPaths[Q];if(!Me||Me.length===0){for(ve=0;ve<17;++ve)J.write_shift(4,0);for(ve=0;ve<3;++ve)J.write_shift(4,-1);for(ve=0;ve<12;++ve)J.write_shift(4,0);continue}_e=C.FileIndex[Q],Q===0&&(_e.start=_e.size?_e.start-1:G);var Ge=Q===0&&U.root||_e.name;if(me=2*(Ge.length+1),J.write_shift(64,Ge,"utf16le"),J.write_shift(2,me),J.write_shift(1,_e.type),J.write_shift(1,_e.color),J.write_shift(-4,_e.L),J.write_shift(-4,_e.R),J.write_shift(-4,_e.C),_e.clsid)J.write_shift(16,_e.clsid,"hex");else for(ve=0;ve<4;++ve)J.write_shift(4,0);J.write_shift(4,_e.state||0),J.write_shift(4,0),J.write_shift(4,0),J.write_shift(4,0),J.write_shift(4,0),J.write_shift(4,_e.start),J.write_shift(4,_e.size),J.write_shift(4,0)}for(Q=1;Q<C.FileIndex.length;++Q)if(_e=C.FileIndex[Q],_e.size>=4096)if(J.l=_e.start+1<<9,zt&&Buffer.isBuffer(_e.content))_e.content.copy(J,J.l,0,_e.size),J.l+=_e.size+511&-512;else{for(ve=0;ve<_e.size;++ve)J.write_shift(1,_e.content[ve]);for(;ve&511;++ve)J.write_shift(1,0)}for(Q=1;Q<C.FileIndex.length;++Q)if(_e=C.FileIndex[Q],_e.size>0&&_e.size<4096)if(zt&&Buffer.isBuffer(_e.content))_e.content.copy(J,J.l,0,_e.size),J.l+=_e.size+63&-64;else{for(ve=0;ve<_e.size;++ve)J.write_shift(1,_e.content[ve]);for(;ve&63;++ve)J.write_shift(1,0)}if(zt)J.l=J.length;else for(;J.l<J.length;)J.write_shift(1,0);return J}function S(C,K){var U=C.FullPaths.map(function(ve){return ve.toUpperCase()}),H=U.map(function(ve){var me=ve.split("/");return me[me.length-(ve.slice(-1)=="/"?2:1)]}),J=!1;K.charCodeAt(0)===47?(J=!0,K=U[0].slice(0,-1)+K):J=K.indexOf("/")!==-1;var Q=K.toUpperCase(),ge=J===!0?U.indexOf(Q):H.indexOf(Q);if(ge!==-1)return C.FileIndex[ge];var Se=!Q.match(R0);for(Q=Q.replace(No,""),Se&&(Q=Q.replace(R0,"!")),ge=0;ge<U.length;++ge)if((Se?U[ge].replace(R0,"!"):U[ge]).replace(No,"")==Q||(Se?H[ge].replace(R0,"!"):H[ge]).replace(No,"")==Q)return C.FileIndex[ge];return null}var I=64,G=-2,te="d0cf11e0a1b11ae1",he=[208,207,17,224,161,177,26,225],be="00000000000000000000000000000000",ye={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:G,FREESECT:-1,HEADER_SIGNATURE:te,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:be,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function pe(C,K,U){l();var H=ee(C,U);f.writeFileSync(K,H)}function Ae(C){for(var K=new Array(C.length),U=0;U<C.length;++U)K[U]=String.fromCharCode(C[U]);return K.join("")}function Ue(C,K){var U=ee(C,K);switch(K&&K.type||"buffer"){case"file":return l(),f.writeFileSync(K.filename,U),U;case"binary":return typeof U=="string"?U:Ae(U);case"base64":return Ro(typeof U=="string"?U:Ae(U));case"buffer":if(zt)return Buffer.isBuffer(U)?U:oa(U);case"array":return typeof U=="string"?gi(U):U}return U}var ke;function _(C){try{var K=C.InflateRaw,U=new K;if(U._processChunk(new Uint8Array([3,0]),U._finishFlushFlag),U.bytesRead)ke=C;else throw new Error("zlib does not expose bytesRead")}catch(H){console.error("cannot use native zlib: "+(H.message||H))}}function L(C,K){if(!ke)return Xt(C,K);var U=ke.InflateRaw,H=new U,J=H._processChunk(C.slice(C.l),H._finishFlushFlag);return C.l+=H.bytesRead,J}function N(C){return ke?ke.deflateRawSync(C):yt(C)}var F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=[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],ne=[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];function oe(C){var K=(C<<1|C<<11)&139536|(C<<5|C<<15)&558144;return(K>>16|K>>8|K)&255}for(var se=typeof Uint8Array<"u",fe=se?new Uint8Array(256):[],Fe=0;Fe<256;++Fe)fe[Fe]=oe(Fe);function Re(C,K){var U=fe[C&255];return K<=8?U>>>8-K:(U=U<<8|fe[C>>8&255],K<=16?U>>>16-K:(U=U<<8|fe[C>>16&255],U>>>24-K))}function qe(C,K){var U=K&7,H=K>>>3;return(C[H]|(U<=6?0:C[H+1]<<8))>>>U&3}function ze(C,K){var U=K&7,H=K>>>3;return(C[H]|(U<=5?0:C[H+1]<<8))>>>U&7}function W(C,K){var U=K&7,H=K>>>3;return(C[H]|(U<=4?0:C[H+1]<<8))>>>U&15}function je(C,K){var U=K&7,H=K>>>3;return(C[H]|(U<=3?0:C[H+1]<<8))>>>U&31}function Be(C,K){var U=K&7,H=K>>>3;return(C[H]|(U<=1?0:C[H+1]<<8))>>>U&127}function Qe(C,K,U){var H=K&7,J=K>>>3,Q=(1<<U)-1,ge=C[J]>>>H;return U<8-H||(ge|=C[J+1]<<8-H,U<16-H)||(ge|=C[J+2]<<16-H,U<24-H)||(ge|=C[J+3]<<24-H),ge&Q}function Pe(C,K,U){var H=K&7,J=K>>>3;return H<=5?C[J]|=(U&7)<<H:(C[J]|=U<<H&255,C[J+1]=(U&7)>>8-H),K+3}function st(C,K,U){var H=K&7,J=K>>>3;return U=(U&1)<<H,C[J]|=U,K+1}function Je(C,K,U){var H=K&7,J=K>>>3;return U<<=H,C[J]|=U&255,U>>>=8,C[J+1]=U,K+8}function ut(C,K,U){var H=K&7,J=K>>>3;return U<<=H,C[J]|=U&255,U>>>=8,C[J+1]=U&255,C[J+2]=U>>>8,K+16}function ft(C,K){var U=C.length,H=2*U>K?2*U:K+5,J=0;if(U>=K)return C;if(zt){var Q=Dc(H);if(C.copy)C.copy(Q);else for(;J<C.length;++J)Q[J]=C[J];return Q}else if(se){var ge=new Uint8Array(H);if(ge.set)ge.set(C);else for(;J<U;++J)ge[J]=C[J];return ge}return C.length=H,C}function Ft(C){for(var K=new Array(C),U=0;U<C;++U)K[U]=0;return K}function Ct(C,K,U){var H=1,J=0,Q=0,ge=0,Se=0,ve=C.length,me=se?new Uint16Array(32):Ft(32);for(Q=0;Q<32;++Q)me[Q]=0;for(Q=ve;Q<U;++Q)C[Q]=0;ve=C.length;var _e=se?new Uint16Array(ve):Ft(ve);for(Q=0;Q<ve;++Q)me[J=C[Q]]++,H<J&&(H=J),_e[Q]=0;for(me[0]=0,Q=1;Q<=H;++Q)me[Q+16]=Se=Se+me[Q-1]<<1;for(Q=0;Q<ve;++Q)Se=C[Q],Se!=0&&(_e[Q]=me[Se+16]++);var Me=0;for(Q=0;Q<ve;++Q)if(Me=C[Q],Me!=0)for(Se=Re(_e[Q],H)>>H-Me,ge=(1<<H+4-Me)-1;ge>=0;--ge)K[Se|ge<<Me]=Me&15|Q<<4;return H}var mt=se?new Uint16Array(512):Ft(512),Dt=se?new Uint16Array(32):Ft(32);if(!se){for(var At=0;At<512;++At)mt[At]=0;for(At=0;At<32;++At)Dt[At]=0}(function(){for(var C=[],K=0;K<32;K++)C.push(5);Ct(C,Dt,32);var U=[];for(K=0;K<=143;K++)U.push(8);for(;K<=255;K++)U.push(9);for(;K<=279;K++)U.push(7);for(;K<=287;K++)U.push(8);Ct(U,mt,288)})();var rt=(function(){for(var K=se?new Uint8Array(32768):[],U=0,H=0;U<ne.length-1;++U)for(;H<ne[U+1];++H)K[H]=U;for(;H<32768;++H)K[H]=29;var J=se?new Uint8Array(259):[];for(U=0,H=0;U<q.length-1;++U)for(;H<q[U+1];++H)J[H]=U;function Q(Se,ve){for(var me=0;me<Se.length;){var _e=Math.min(65535,Se.length-me),Me=me+_e==Se.length;for(ve.write_shift(1,+Me),ve.write_shift(2,_e),ve.write_shift(2,~_e&65535);_e-- >0;)ve[ve.l++]=Se[me++]}return ve.l}function ge(Se,ve){for(var me=0,_e=0,Me=se?new Uint16Array(32768):[];_e<Se.length;){var Ge=Math.min(65535,Se.length-_e);if(Ge<10){for(me=Pe(ve,me,+(_e+Ge==Se.length)),me&7&&(me+=8-(me&7)),ve.l=me/8|0,ve.write_shift(2,Ge),ve.write_shift(2,~Ge&65535);Ge-- >0;)ve[ve.l++]=Se[_e++];me=ve.l*8;continue}me=Pe(ve,me,+(_e+Ge==Se.length)+2);for(var $e=0;Ge-- >0;){var We=Se[_e];$e=($e<<5^We)&32767;var Ke=-1,vt=0;if((Ke=Me[$e])&&(Ke|=_e&-32768,Ke>_e&&(Ke-=32768),Ke<_e))for(;Se[Ke+vt]==Se[_e+vt]&&vt<250;)++vt;if(vt>2){We=J[vt],We<=22?me=Je(ve,me,fe[We+1]>>1)-1:(Je(ve,me,3),me+=5,Je(ve,me,fe[We-23]>>5),me+=3);var er=We<8?0:We-4>>2;er>0&&(ut(ve,me,vt-q[We]),me+=er),We=K[_e-Ke],me=Je(ve,me,fe[We]>>3),me-=3;var Bt=We<4?0:We-2>>1;Bt>0&&(ut(ve,me,_e-Ke-ne[We]),me+=Bt);for(var xr=0;xr<vt;++xr)Me[$e]=_e&32767,$e=($e<<5^Se[_e])&32767,++_e;Ge-=vt-1}else We<=143?We=We+48:me=st(ve,me,1),me=Je(ve,me,fe[We]),Me[$e]=_e&32767,++_e}me=Je(ve,me,0)-1}return ve.l=(me+7)/8|0,ve.l}return function(ve,me){return ve.length<8?Q(ve,me):ge(ve,me)}})();function yt(C){var K=Ee(50+Math.floor(C.length*1.1)),U=rt(C,K);return K.slice(0,U)}var at=se?new Uint16Array(32768):Ft(32768),dr=se?new Uint16Array(32768):Ft(32768),Rt=se?new Uint16Array(128):Ft(128),Tt=1,Nt=1;function ar(C,K){var U=je(C,K)+257;K+=5;var H=je(C,K)+1;K+=5;var J=W(C,K)+4;K+=4;for(var Q=0,ge=se?new Uint8Array(19):Ft(19),Se=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ve=1,me=se?new Uint8Array(8):Ft(8),_e=se?new Uint8Array(8):Ft(8),Me=ge.length,Ge=0;Ge<J;++Ge)ge[F[Ge]]=Q=ze(C,K),ve<Q&&(ve=Q),me[Q]++,K+=3;var $e=0;for(me[0]=0,Ge=1;Ge<=ve;++Ge)_e[Ge]=$e=$e+me[Ge-1]<<1;for(Ge=0;Ge<Me;++Ge)($e=ge[Ge])!=0&&(Se[Ge]=_e[$e]++);var We=0;for(Ge=0;Ge<Me;++Ge)if(We=ge[Ge],We!=0){$e=fe[Se[Ge]]>>8-We;for(var Ke=(1<<7-We)-1;Ke>=0;--Ke)Rt[$e|Ke<<We]=We&7|Ge<<3}var vt=[];for(ve=1;vt.length<U+H;)switch($e=Rt[Be(C,K)],K+=$e&7,$e>>>=3){case 16:for(Q=3+qe(C,K),K+=2,$e=vt[vt.length-1];Q-- >0;)vt.push($e);break;case 17:for(Q=3+ze(C,K),K+=3;Q-- >0;)vt.push(0);break;case 18:for(Q=11+Be(C,K),K+=7;Q-- >0;)vt.push(0);break;default:vt.push($e),ve<$e&&(ve=$e);break}var er=vt.slice(0,U),Bt=vt.slice(U);for(Ge=U;Ge<286;++Ge)er[Ge]=0;for(Ge=H;Ge<30;++Ge)Bt[Ge]=0;return Tt=Ct(er,at,286),Nt=Ct(Bt,dr,30),K}function ct(C,K){if(C[0]==3&&!(C[1]&3))return[rs(K),2];for(var U=0,H=0,J=Dc(K||1<<18),Q=0,ge=J.length>>>0,Se=0,ve=0;(H&1)==0;){if(H=ze(C,U),U+=3,H>>>1)H>>1==1?(Se=9,ve=5):(U=ar(C,U),Se=Tt,ve=Nt);else{U&7&&(U+=8-(U&7));var me=C[U>>>3]|C[(U>>>3)+1]<<8;if(U+=32,me>0)for(!K&&ge<Q+me&&(J=ft(J,Q+me),ge=J.length);me-- >0;)J[Q++]=C[U>>>3],U+=8;continue}for(;;){!K&&ge<Q+32767&&(J=ft(J,Q+32767),ge=J.length);var _e=Qe(C,U,Se),Me=H>>>1==1?mt[_e]:at[_e];if(U+=Me&15,Me>>>=4,(Me>>>8&255)===0)J[Q++]=Me;else{if(Me==256)break;Me-=257;var Ge=Me<8?0:Me-4>>2;Ge>5&&(Ge=0);var $e=Q+q[Me];Ge>0&&($e+=Qe(C,U,Ge),U+=Ge),_e=Qe(C,U,ve),Me=H>>>1==1?Dt[_e]:dr[_e],U+=Me&15,Me>>>=4;var We=Me<4?0:Me-2>>1,Ke=ne[Me];for(We>0&&(Ke+=Qe(C,U,We),U+=We),!K&&ge<$e&&(J=ft(J,$e+100),ge=J.length);Q<$e;)J[Q]=J[Q-Ke],++Q}}}return K?[J,U+7>>>3]:[J.slice(0,Q),U+7>>>3]}function Xt(C,K){var U=C.slice(C.l||0),H=ct(U,K);return C.l+=H[1],H[0]}function pt(C,K){if(C)typeof console<"u"&&console.error(K);else throw new Error(K)}function wt(C,K){var U=C;Hn(U,0);var H=[],J=[],Q={FileIndex:H,FullPaths:J};V(Q,{root:K.root});for(var ge=U.length-4;(U[ge]!=80||U[ge+1]!=75||U[ge+2]!=5||U[ge+3]!=6)&&ge>=0;)--ge;U.l=ge+4,U.l+=4;var Se=U.read_shift(2);U.l+=6;var ve=U.read_shift(4);for(U.l=ve,ge=0;ge<Se;++ge){U.l+=20;var me=U.read_shift(4),_e=U.read_shift(4),Me=U.read_shift(2),Ge=U.read_shift(2),$e=U.read_shift(2);U.l+=8;var We=U.read_shift(4),Ke=o(U.slice(U.l+Me,U.l+Me+Ge));U.l+=Me+Ge+$e;var vt=U.l;U.l=We+4,sr(U,me,_e,Q,Ke),U.l=vt}return Q}function sr(C,K,U,H,J){C.l+=2;var Q=C.read_shift(2),ge=C.read_shift(2),Se=s(C);if(Q&8257)throw new Error("Unsupported ZIP encryption");for(var ve=C.read_shift(4),me=C.read_shift(4),_e=C.read_shift(4),Me=C.read_shift(2),Ge=C.read_shift(2),$e="",We=0;We<Me;++We)$e+=String.fromCharCode(C[C.l++]);if(Ge){var Ke=o(C.slice(C.l,C.l+Ge));(Ke[21589]||{}).mt&&(Se=Ke[21589].mt),((J||{})[21589]||{}).mt&&(Se=J[21589].mt)}C.l+=Ge;var vt=C.slice(C.l,C.l+me);switch(ge){case 8:vt=L(C,_e);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ge)}var er=!1;Q&8&&(ve=C.read_shift(4),ve==134695760&&(ve=C.read_shift(4),er=!0),me=C.read_shift(4),_e=C.read_shift(4)),me!=K&&pt(er,"Bad compressed size: "+K+" != "+me),_e!=U&&pt(er,"Bad uncompressed size: "+U+" != "+_e),ln(H,$e,vt,{unsafe:!0,mt:Se})}function Ot(C,K){var U=K||{},H=[],J=[],Q=Ee(1),ge=U.compression?8:0,Se=0,ve=0,me=0,_e=0,Me=0,Ge=C.FullPaths[0],$e=Ge,We=C.FileIndex[0],Ke=[],vt=0;for(ve=1;ve<C.FullPaths.length;++ve)if($e=C.FullPaths[ve].slice(Ge.length),We=C.FileIndex[ve],!(!We.size||!We.content||$e=="Sh33tJ5")){var er=_e,Bt=Ee($e.length);for(me=0;me<$e.length;++me)Bt.write_shift(1,$e.charCodeAt(me)&127);Bt=Bt.slice(0,Bt.l),Ke[Me]=Xm.buf(We.content,0);var xr=We.content;ge==8&&(xr=N(xr)),Q=Ee(30),Q.write_shift(4,67324752),Q.write_shift(2,20),Q.write_shift(2,Se),Q.write_shift(2,ge),We.mt?a(Q,We.mt):Q.write_shift(4,0),Q.write_shift(-4,Ke[Me]),Q.write_shift(4,xr.length),Q.write_shift(4,We.content.length),Q.write_shift(2,Bt.length),Q.write_shift(2,0),_e+=Q.length,H.push(Q),_e+=Bt.length,H.push(Bt),_e+=xr.length,H.push(xr),Q=Ee(46),Q.write_shift(4,33639248),Q.write_shift(2,0),Q.write_shift(2,20),Q.write_shift(2,Se),Q.write_shift(2,ge),Q.write_shift(4,0),Q.write_shift(-4,Ke[Me]),Q.write_shift(4,xr.length),Q.write_shift(4,We.content.length),Q.write_shift(2,Bt.length),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(4,0),Q.write_shift(4,er),vt+=Q.l,J.push(Q),vt+=Bt.length,J.push(Bt),++Me}return Q=Ee(22),Q.write_shift(4,101010256),Q.write_shift(2,0),Q.write_shift(2,0),Q.write_shift(2,Me),Q.write_shift(2,Me),Q.write_shift(4,vt),Q.write_shift(4,_e),Q.write_shift(2,0),an([an(H),an(J),Q])}var dt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Wt(C,K){if(C.ctype)return C.ctype;var U=C.name||"",H=U.match(/\.([^\.]+)$/);return H&&dt[H[1]]||K&&(H=(U=K).match(/[\.\\]([^\.\\])+$/),H&&dt[H[1]])?dt[H[1]]:"application/octet-stream"}function Di(C){for(var K=Ro(C),U=[],H=0;H<K.length;H+=76)U.push(K.slice(H,H+76));return U.join(`\r
80
- `)+`\r
81
- `}function Vr(C){var K=C.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(me){var _e=me.charCodeAt(0).toString(16).toUpperCase();return"="+(_e.length==1?"0"+_e:_e)});K=K.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),K.charAt(0)==`
82
- `&&(K="=0D"+K.slice(1)),K=K.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
83
- =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var U=[],H=K.split(`\r
84
- `),J=0;J<H.length;++J){var Q=H[J];if(Q.length==0){U.push("");continue}for(var ge=0;ge<Q.length;){var Se=76,ve=Q.slice(ge,ge+Se);ve.charAt(Se-1)=="="?Se--:ve.charAt(Se-2)=="="?Se-=2:ve.charAt(Se-3)=="="&&(Se-=3),ve=Q.slice(ge,ge+Se),ge+=Se,ge<Q.length&&(ve+="="),U.push(ve)}}return U.join(`\r
85
- `)}function ni(C){for(var K=[],U=0;U<C.length;++U){for(var H=C[U];U<=C.length&&H.charAt(H.length-1)=="=";)H=H.slice(0,H.length-1)+C[++U];K.push(H)}for(var J=0;J<K.length;++J)K[J]=K[J].replace(/[=][0-9A-Fa-f]{2}/g,function(Q){return String.fromCharCode(parseInt(Q.slice(1),16))});return gi(K.join(`\r
86
- `))}function Vn(C,K,U){for(var H="",J="",Q="",ge,Se=0;Se<10;++Se){var ve=K[Se];if(!ve||ve.match(/^\s*$/))break;var me=ve.match(/^(.*?):\s*([^\s].*)$/);if(me)switch(me[1].toLowerCase()){case"content-location":H=me[2].trim();break;case"content-type":Q=me[2].trim();break;case"content-transfer-encoding":J=me[2].trim();break}}switch(++Se,J.toLowerCase()){case"base64":ge=gi(aa(K.slice(Se).join("")));break;case"quoted-printable":ge=ni(K.slice(Se));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+J)}var _e=ln(C,H.slice(U.length),ge,{unsafe:!0});Q&&(_e.ctype=Q)}function gt(C,K){if(Ae(C.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var U=K&&K.root||"",H=(zt&&Buffer.isBuffer(C)?C.toString("binary"):Ae(C)).split(`\r
87
- `),J=0,Q="";for(J=0;J<H.length;++J)if(Q=H[J],!!/^Content-Location:/i.test(Q)&&(Q=Q.slice(Q.indexOf("file")),U||(U=Q.slice(0,Q.lastIndexOf("/")+1)),Q.slice(0,U.length)!=U))for(;U.length>0&&(U=U.slice(0,U.length-1),U=U.slice(0,U.lastIndexOf("/")+1),Q.slice(0,U.length)!=U););var ge=(H[1]||"").match(/boundary="(.*?)"/);if(!ge)throw new Error("MAD cannot find boundary");var Se="--"+(ge[1]||""),ve=[],me=[],_e={FileIndex:ve,FullPaths:me};V(_e);var Me,Ge=0;for(J=0;J<H.length;++J){var $e=H[J];$e!==Se&&$e!==Se+"--"||(Ge++&&Vn(_e,H.slice(Me,J),U),Me=J)}return _e}function ii(C,K){var U=K||{},H=U.boundary||"SheetJS";H="------="+H;for(var J=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+H.slice(2)+'"',"","",""],Q=C.FullPaths[0],ge=Q,Se=C.FileIndex[0],ve=1;ve<C.FullPaths.length;++ve)if(ge=C.FullPaths[ve].slice(Q.length),Se=C.FileIndex[ve],!(!Se.size||!Se.content||ge=="Sh33tJ5")){ge=ge.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(vt){return"_x"+vt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(vt){return"_u"+vt.charCodeAt(0).toString(16)+"_"});for(var me=Se.content,_e=zt&&Buffer.isBuffer(me)?me.toString("binary"):Ae(me),Me=0,Ge=Math.min(1024,_e.length),$e=0,We=0;We<=Ge;++We)($e=_e.charCodeAt(We))>=32&&$e<128&&++Me;var Ke=Me>=Ge*4/5;J.push(H),J.push("Content-Location: "+(U.root||"file:///C:/SheetJS/")+ge),J.push("Content-Transfer-Encoding: "+(Ke?"quoted-printable":"base64")),J.push("Content-Type: "+Wt(Se,ge)),J.push(""),J.push(Ke?Vr(_e):Di(_e))}return J.push(H+`--\r
88
- `),J.join(`\r
89
- `)}function ai(C){var K={};return V(K,C),K}function ln(C,K,U,H){var J=H&&H.unsafe;J||V(C);var Q=!J&&tr.find(C,K);if(!Q){var ge=C.FullPaths[0];K.slice(0,ge.length)==ge?ge=K:(ge.slice(-1)!="/"&&(ge+="/"),ge=(ge+K).replace("//","/")),Q={name:i(K),type:2},C.FileIndex.push(Q),C.FullPaths.push(ge),J||tr.utils.cfb_gc(C)}return Q.content=U,Q.size=U?U.length:0,H&&(H.CLSID&&(Q.clsid=H.CLSID),H.mt&&(Q.mt=H.mt),H.ct&&(Q.ct=H.ct)),Q}function Sn(C,K){V(C);var U=tr.find(C,K);if(U){for(var H=0;H<C.FileIndex.length;++H)if(C.FileIndex[H]==U)return C.FileIndex.splice(H,1),C.FullPaths.splice(H,1),!0}return!1}function pr(C,K,U){V(C);var H=tr.find(C,K);if(H){for(var J=0;J<C.FileIndex.length;++J)if(C.FileIndex[J]==H)return C.FileIndex[J].name=i(U),C.FullPaths[J]=U,!0}return!1}function kr(C){k(C,!0)}return e.find=S,e.read=ue,e.parse=u,e.write=Ue,e.writeFile=pe,e.utils={cfb_new:ai,cfb_add:ln,cfb_del:Sn,cfb_mov:pr,cfb_gc:kr,ReadShift:Fo,CheckField:id,prep_blob:Hn,bconcat:an,use_zlib:_,_deflateRaw:yt,_inflateRaw:Xt,consts:ye},e})();function Ym(t){return typeof t=="string"?_f(t):Array.isArray(t)?_m(t):t}function zo(t,e,r){if(typeof Deno<"u"){if(r&&typeof e=="string")switch(r){case"utf8":e=new TextEncoder(r).encode(e);break;case"binary":e=_f(e);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(t,e)}var n=r=="utf8"?Mo(e):e;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var i=new Blob([Ym(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,t);if(typeof saveAs<"u")return saveAs(i,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:t,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=t,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var o=File(t);return o.open("w"),o.encoding="binary",Array.isArray(e)&&(e=qo(e)),o.write(e),o.close(),e}catch(f){if(!f.message||!f.message.match(/onstruct/))throw f}throw new Error("cannot save file "+t)}function fn(t){for(var e=Object.keys(t),r=[],n=0;n<e.length;++n)Object.prototype.hasOwnProperty.call(t,e[n])&&r.push(e[n]);return r}function qc(t,e){for(var r=[],n=fn(t),i=0;i!==n.length;++i)r[t[n[i]][e]]==null&&(r[t[n[i]][e]]=n[i]);return r}function uh(t){for(var e=[],r=fn(t),n=0;n!==r.length;++n)e[t[r[n]]]=r[n];return e}function Af(t){for(var e=[],r=fn(t),n=0;n!==r.length;++n)e[t[r[n]]]=parseInt(r[n],10);return e}function Km(t){for(var e=[],r=fn(t),n=0;n!==r.length;++n)e[t[r[n]]]==null&&(e[t[r[n]]]=[]),e[t[r[n]]].push(r[n]);return e}var of=new Date(1899,11,30,0,0,0);function Ln(t,e){var r=t.getTime(),n=of.getTime()+(t.getTimezoneOffset()-of.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var H2=new Date,$m=of.getTime()+(H2.getTimezoneOffset()-of.getTimezoneOffset())*6e4,zc=H2.getTimezoneOffset();function W2(t){var e=new Date;return e.setTime(t*24*60*60*1e3+$m),e.getTimezoneOffset()!==zc&&e.setTime(e.getTime()+(e.getTimezoneOffset()-zc)*6e4),e}var Gc=new Date("2017-02-19T19:06:09.000Z"),q2=isNaN(Gc.getFullYear())?new Date("2/19/17"):Gc,Jm=q2.getFullYear()==2017;function An(t,e){var r=new Date(t);if(Jm)return e>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):e<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(t instanceof Date)return t;if(q2.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return t.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=t.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return t.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function Sf(t,e){if(zt&&Buffer.isBuffer(t))return t.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=t.length;++i)n.push(String.fromCharCode(t[i]));return n.join("")}function Fn(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=Fn(t[r]));return e}function br(t,e){for(var r="";r.length<e;)r+=t;return r}function ra(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var r=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(e=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return r=-r,a}),!isNaN(e=Number(n)))?e/r:e}var Zm=["january","february","march","april","may","june","july","august","september","october","november","december"];function Bo(t){var e=new Date(t),r=new Date(NaN),n=e.getYear(),i=e.getMonth(),a=e.getDate();if(isNaN(a))return r;var s=t.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&Zm.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?e:t.match(/[^-0-9:,\/\\]/)?r:e}function It(t,e,r){if(t.FullPaths){if(typeof r=="string"){var n;return zt?n=oa(r):n=ym(r),tr.utils.cfb_add(t,e,n)}tr.utils.cfb_add(t,e,r)}else t.file(e,r)}function ch(){return tr.utils.cfb_new()}var Mr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
90
- `,Qm={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},dh=uh(Qm),ph=/[&<>'"]/g,ex=/[\u0000-\u0008\u000b-\u001f]/g;function Zt(t){var e=t+"";return e.replace(ph,function(r){return dh[r]}).replace(ex,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Vc(t){return Zt(t).replace(/ /g,"_x0020_")}var z2=/[\u0000-\u001f]/g;function tx(t){var e=t+"";return e.replace(ph,function(r){return dh[r]}).replace(/\n/g,"<br/>").replace(z2,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function rx(t){var e=t+"";return e.replace(ph,function(r){return dh[r]}).replace(z2,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function nx(t){return t.replace(/(\r\n|[\r\n])/g,"&#10;")}function ix(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Pl(t){for(var e="",r=0,n=0,i=0,a=0,s=0,o=0;r<t.length;){if(n=t.charCodeAt(r++),n<128){e+=String.fromCharCode(n);continue}if(i=t.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=i&63,e+=String.fromCharCode(s);continue}if(a=t.charCodeAt(r++),n<240){e+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=t.charCodeAt(r++),o=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,e+=String.fromCharCode(55296+(o>>>10&1023)),e+=String.fromCharCode(56320+(o&1023))}return e}function Xc(t){var e=rs(2*t.length),r,n,i=1,a=0,s=0,o;for(n=0;n<t.length;n+=i)i=1,(o=t.charCodeAt(n))<128?r=o:o<224?(r=(o&31)*64+(t.charCodeAt(n+1)&63),i=2):o<240?(r=(o&15)*4096+(t.charCodeAt(n+1)&63)*64+(t.charCodeAt(n+2)&63),i=3):(i=4,r=(o&7)*262144+(t.charCodeAt(n+1)&63)*4096+(t.charCodeAt(n+2)&63)*64+(t.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(e[a++]=s&255,e[a++]=s>>>8,s=0),e[a++]=r%256,e[a++]=r>>>8;return e.slice(0,a).toString("ucs2")}function Yc(t){return oa(t,"binary").toString("utf8")}var M0="foo bar baz☃🍣",Lo=zt&&(Yc(M0)==Pl(M0)&&Yc||Xc(M0)==Pl(M0)&&Xc)||Pl,Mo=zt?function(t){return oa(t,"utf8").toString("binary")}:function(t){for(var e=[],r=0,n=0,i=0;r<t.length;)switch(n=t.charCodeAt(r++),!0){case n<128:e.push(String.fromCharCode(n));break;case n<2048:e.push(String.fromCharCode(192+(n>>6))),e.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=t.charCodeAt(r++)-56320+(n<<10),e.push(String.fromCharCode(240+(i>>18&7))),e.push(String.fromCharCode(144+(i>>12&63))),e.push(String.fromCharCode(128+(i>>6&63))),e.push(String.fromCharCode(128+(i&63)));break;default:e.push(String.fromCharCode(224+(n>>12))),e.push(String.fromCharCode(128+(n>>6&63))),e.push(String.fromCharCode(128+(n&63)))}return e.join("")},ax=(function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
91
- `).replace(/<[^>]*>/g,""),i=0;i<t.length;++i)n=n.replace(t[i][0],t[i][1]);return n}})(),G2=/(^\s|\s$|\n)/;function sn(t,e){return"<"+t+(e.match(G2)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function Uo(t){return fn(t).map(function(e){return" "+e+'="'+t[e]+'"'}).join("")}function Ve(t,e,r){return"<"+t+(r!=null?Uo(r):"")+(e!=null?(e.match(G2)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function th(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(r){if(e)throw r}return""}function sx(t,e){switch(typeof t){case"string":var r=Ve("vt:lpwstr",Zt(t));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return Ve((t|0)==t?"vt:i4":"vt:r8",Zt(String(t)));case"boolean":return Ve("vt:bool",t?"true":"false")}if(t instanceof Date)return Ve("vt:filetime",th(t));throw new Error("Unable to serialize "+t)}var Yr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},zs=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Wn={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function ox(t,e){for(var r=1-2*(t[e+7]>>>7),n=((t[e+7]&127)<<4)+(t[e+6]>>>4&15),i=t[e+6]&15,a=5;a>=0;--a)i=i*256+t[e+a];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function fx(t,e,r){var n=(e<0||1/e==-1/0?1:0)<<7,i=0,a=0,s=n?-e:e;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(e)?26985:0);for(var o=0;o<=5;++o,a/=256)t[r+o]=a&255;t[r+6]=(i&15)<<4|a&15,t[r+7]=i>>4|n}var Kc=function(t){for(var e=[],r=10240,n=0;n<t[0].length;++n)if(t[0][n])for(var i=0,a=t[0][n].length;i<a;i+=r)e.push.apply(e,t[0][n].slice(i,i+r));return e},$c=zt?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(e){return Buffer.isBuffer(e)?e:oa(e)})):Kc(t)}:Kc,Jc=function(t,e,r){for(var n=[],i=e;i<r;i+=2)n.push(String.fromCharCode(Ao(t,i)));return n.join("").replace(No,"")},gh=zt?function(t,e,r){return Buffer.isBuffer(t)?t.toString("utf16le",e,r).replace(No,""):Jc(t,e,r)}:Jc,Zc=function(t,e,r){for(var n=[],i=e;i<e+r;++i)n.push(("0"+t[i].toString(16)).slice(-2));return n.join("")},V2=zt?function(t,e,r){return Buffer.isBuffer(t)?t.toString("hex",e,e+r):Zc(t,e,r)}:Zc,Qc=function(t,e,r){for(var n=[],i=e;i<r;i++)n.push(String.fromCharCode(Cs(t,i)));return n.join("")},Go=zt?function(e,r,n){return Buffer.isBuffer(e)?e.toString("utf8",r,n):Qc(e,r,n)}:Qc,X2=function(t,e){var r=qn(t,e);return r>0?Go(t,e+4,e+4+r-1):""},Y2=X2,K2=function(t,e){var r=qn(t,e);return r>0?Go(t,e+4,e+4+r-1):""},$2=K2,J2=function(t,e){var r=2*qn(t,e);return r>0?Go(t,e+4,e+4+r-1):""},Z2=J2,Q2=function(e,r){var n=qn(e,r);return n>0?gh(e,r+4,r+4+n):""},ed=Q2,td=function(t,e){var r=qn(t,e);return r>0?Go(t,e+4,e+4+r):""},rd=td,nd=function(t,e){return ox(t,e)},ff=nd,vh=function(e){return Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array};zt&&(Y2=function(e,r){if(!Buffer.isBuffer(e))return X2(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},$2=function(e,r){if(!Buffer.isBuffer(e))return K2(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},Z2=function(e,r){if(!Buffer.isBuffer(e))return J2(e,r);var n=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n-1)},ed=function(e,r){if(!Buffer.isBuffer(e))return Q2(e,r);var n=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n)},rd=function(e,r){if(!Buffer.isBuffer(e))return td(e,r);var n=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+n)},ff=function(e,r){return Buffer.isBuffer(e)?e.readDoubleLE(r):nd(e,r)},vh=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array});var Cs=function(t,e){return t[e]},Ao=function(t,e){return t[e+1]*256+t[e]},lx=function(t,e){var r=t[e+1]*256+t[e];return r<32768?r:(65535-r+1)*-1},qn=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},Ja=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},hx=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function Fo(t,e){var r="",n,i,a=[],s,o,f,l;switch(e){case"dbcs":if(l=this.l,zt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*t).toString("utf16le");else for(f=0;f<t;++f)r+=String.fromCharCode(Ao(this,l)),l+=2;t*=2;break;case"utf8":r=Go(this,this.l,this.l+t);break;case"utf16le":t*=2,r=gh(this,this.l,this.l+t);break;case"wstr":return Fo.call(this,t,"dbcs");case"lpstr-ansi":r=Y2(this,this.l),t=4+qn(this,this.l);break;case"lpstr-cp":r=$2(this,this.l),t=4+qn(this,this.l);break;case"lpwstr":r=Z2(this,this.l),t=4+2*qn(this,this.l);break;case"lpp4":t=4+qn(this,this.l),r=ed(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+qn(this,this.l),r=rd(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,r="";(s=Cs(this,this.l+t++))!==0;)a.push(D0(s));r=a.join("");break;case"_wstr":for(t=0,r="";(s=Ao(this,this.l+t))!==0;)a.push(D0(s)),t+=2;t+=2,r=a.join("");break;case"dbcs-cont":for(r="",l=this.l,f=0;f<t;++f){if(this.lens&&this.lens.indexOf(l)!==-1)return s=Cs(this,l),this.l=l+1,o=Fo.call(this,t-f,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(D0(Ao(this,l))),l+=2}r=a.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(r="",l=this.l,f=0;f!=t;++f){if(this.lens&&this.lens.indexOf(l)!==-1)return s=Cs(this,l),this.l=l+1,o=Fo.call(this,t-f,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(D0(Cs(this,l))),l+=1}r=a.join("");break;default:switch(t){case 1:return n=Cs(this,this.l),this.l++,n;case 2:return n=(e==="i"?lx:Ao)(this,this.l),this.l+=2,n;case 4:case-4:return e==="i"||(this[this.l+3]&128)===0?(n=(t>0?Ja:hx)(this,this.l),this.l+=4,n):(i=qn(this,this.l),this.l+=4,i);case 8:case-8:if(e==="f")return t==8?i=ff(this,this.l):i=ff([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;t=8;case 16:r=V2(this,this.l,t);break}}return this.l+=t,r}var ux=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24&255},cx=function(t,e,r){t[r]=e&255,t[r+1]=e>>8&255,t[r+2]=e>>16&255,t[r+3]=e>>24&255},dx=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255};function px(t,e,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=e.length;++i)dx(this,e.charCodeAt(i),this.l+2*i);n=2*e.length}else if(r==="sbcs"){for(e=e.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=e.length;++i)this[this.l+i]=e.charCodeAt(i)&255;n=e.length}else if(r==="hex"){for(;i<t;++i)this[this.l++]=parseInt(e.slice(2*i,2*i+2),16)||0;return this}else if(r==="utf16le"){var a=Math.min(this.l+t,this.length);for(i=0;i<Math.min(e.length,t);++i){var s=e.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(t){case 1:n=1,this[this.l]=e&255;break;case 2:n=2,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255;break;case 3:n=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:n=4,ux(this,e,this.l);break;case 8:if(n=8,r==="f"){fx(this,e,this.l);break}case 16:break;case-4:n=4,cx(this,e,this.l);break}return this.l+=n,this}function id(t,e){var r=V2(this,this.l,t.length>>1);if(r!==t)throw new Error(e+"Expected "+t+" saw "+r);this.l+=t.length>>1}function Hn(t,e){t.l=e,t.read_shift=Fo,t.chk=id,t.write_shift=px}function Oi(t,e){t.l+=e}function Ee(t){var e=rs(t);return Hn(e,0),e}function Nn(){var t=[],e=zt?256:2048,r=function(l){var u=Ee(l);return Hn(u,0),u},n=r(e),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&t.push(n),n=null)},a=function(l){return n&&l<n.length-n.l?n:(i(),n=r(Math.max(l+1,e)))},s=function(){return i(),an(t)},o=function(l){i(),n=l,n.l==null&&(n.l=n.length),a(e)};return{next:a,push:o,end:s,_bufs:t}}function Oe(t,e,r,n){var i=+e,a;if(!isNaN(i)){n||(n=o6[i].p||(r||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=t.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var o=0;o!=4;++o)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&vh(r)&&t.push(r)}}function Co(t,e,r){var n=Fn(t);if(e.s?(n.cRel&&(n.c+=e.s.c),n.rRel&&(n.r+=e.s.r)):(n.cRel&&(n.c+=e.c),n.rRel&&(n.r+=e.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function e1(t,e,r){var n=Fn(t);return n.s=Co(n.s,e.s,r),n.e=Co(n.e,e.s,r),n}function ko(t,e){if(t.cRel&&t.c<0)for(t=Fn(t);t.c<0;)t.c+=e>8?16384:256;if(t.rRel&&t.r<0)for(t=Fn(t);t.r<0;)t.r+=e>8?1048576:e>5?65536:16384;var r=Qt(t);return!t.cRel&&t.cRel!=null&&(r=mx(r)),!t.rRel&&t.rRel!=null&&(r=gx(r)),r}function Ol(t,e){return t.s.r==0&&!t.s.rRel&&t.e.r==(e.biff>=12?1048575:e.biff>=8?65536:16384)&&!t.e.rRel?(t.s.cRel?"":"$")+gn(t.s.c)+":"+(t.e.cRel?"":"$")+gn(t.e.c):t.s.c==0&&!t.s.cRel&&t.e.c==(e.biff>=12?16383:255)&&!t.e.cRel?(t.s.rRel?"":"$")+on(t.s.r)+":"+(t.e.rRel?"":"$")+on(t.e.r):ko(t.s,e.biff)+":"+ko(t.e,e.biff)}function mh(t){return parseInt(vx(t),10)-1}function on(t){return""+(t+1)}function gx(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function vx(t){return t.replace(/\$(\d+)$/,"$1")}function xh(t){for(var e=xx(t),r=0,n=0;n!==e.length;++n)r=26*r+e.charCodeAt(n)-64;return r-1}function gn(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function mx(t){return t.replace(/^([A-Z])/,"$$$1")}function xx(t){return t.replace(/^\$([A-Z])/,"$1")}function wx(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Kr(t){for(var e=0,r=0,n=0;n<t.length;++n){var i=t.charCodeAt(n);i>=48&&i<=57?e=10*e+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:e-1}}function Qt(t){for(var e=t.c+1,r="";e;e=(e-1)/26|0)r=String.fromCharCode((e-1)%26+65)+r;return r+(t.r+1)}function Gn(t){var e=t.indexOf(":");return e==-1?{s:Kr(t),e:Kr(t)}:{s:Kr(t.slice(0,e)),e:Kr(t.slice(e+1))}}function Br(t,e){return typeof e>"u"||typeof e=="number"?Br(t.s,t.e):(typeof t!="string"&&(t=Qt(t)),typeof e!="string"&&(e=Qt(e)),t==e?t:t+":"+e)}function cr(t){var e={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=t.length;for(r=0;n<a&&!((i=t.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(e.s.c=--r,r=0;n<a&&!((i=t.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(e.s.r=--r,n===a||i!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++n,r=0;n!=a&&!((i=t.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(e.e.c=--r,r=0;n!=a&&!((i=t.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return e.e.r=--r,e}function t1(t,e){var r=t.t=="d"&&e instanceof Date;if(t.z!=null)try{return t.w=ka(t.z,r?Ln(e):e)}catch{}try{return t.w=ka((t.XF||{}).numFmtId||(r?14:0),r?Ln(e):e)}catch{return""+e}}function sa(t,e,r){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&r&&r.dateNF&&(t.z=r.dateNF),t.t=="e"?Vo[t.v]||t.v:e==null?t1(t,t.v):t1(t,e))}function os(t,e){var r=e&&e.sheet?e.sheet:"Sheet1",n={};return n[r]=t,{SheetNames:[r],Sheets:n}}function ad(t,e,r){var n=r||{},i=t?Array.isArray(t):n.dense,a=t||(i?[]:{}),s=0,o=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var f=typeof n.origin=="string"?Kr(n.origin):n.origin;s=f.r,o=f.c}a["!ref"]||(a["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=cr(a["!ref"]);l.s.c=u.s.c,l.s.r=u.s.r,l.e.c=Math.max(l.e.c,u.e.c),l.e.r=Math.max(l.e.r,u.e.r),s==-1&&(l.e.r=s=u.e.r+1)}for(var p=0;p!=e.length;++p)if(e[p]){if(!Array.isArray(e[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var v=0;v!=e[p].length;++v)if(!(typeof e[p][v]>"u")){var c={v:e[p][v]},w=s+p,m=o+v;if(l.s.r>w&&(l.s.r=w),l.s.c>m&&(l.s.c=m),l.e.r<w&&(l.e.r=w),l.e.c<m&&(l.e.c=m),e[p][v]&&typeof e[p][v]=="object"&&!Array.isArray(e[p][v])&&!(e[p][v]instanceof Date))c=e[p][v];else if(Array.isArray(c.v)&&(c.f=e[p][v][1],c.v=c.v[0]),c.v===null)if(c.f)c.t="n";else if(n.nullError)c.t="e",c.v=0;else if(n.sheetStubs)c.t="z";else continue;else typeof c.v=="number"?c.t="n":typeof c.v=="boolean"?c.t="b":c.v instanceof Date?(c.z=n.dateNF||Ar[14],n.cellDates?(c.t="d",c.w=ka(c.z,Ln(c.v))):(c.t="n",c.v=Ln(c.v),c.w=ka(c.z,c.v))):c.t="s";if(i)a[w]||(a[w]=[]),a[w][m]&&a[w][m].z&&(c.z=a[w][m].z),a[w][m]=c;else{var y=Qt({c:m,r:w});a[y]&&a[y].z&&(c.z=a[y].z),a[y]=c}}}return l.s.c<1e7&&(a["!ref"]=Br(l)),a}function Gs(t,e){return ad(null,t,e)}function _x(t){return t.read_shift(4,"i")}function mi(t,e){return e||(e=Ee(4)),e.write_shift(4,t),e}function vn(t){var e=t.read_shift(4);return e===0?"":t.read_shift(e,"dbcs")}function $r(t,e){var r=!1;return e==null&&(r=!0,e=Ee(4+2*t.length)),e.write_shift(4,t.length),t.length>0&&e.write_shift(0,t,"dbcs"),r?e.slice(0,e.l):e}function yx(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function bx(t,e){return e||(e=Ee(4)),e.write_shift(2,0),e.write_shift(2,0),e}function wh(t,e){var r=t.l,n=t.read_shift(1),i=vn(t),a=[],s={t:i,h:i};if((n&1)!==0){for(var o=t.read_shift(4),f=0;f!=o;++f)a.push(yx(t));s.r=a}else s.r=[{ich:0,ifnt:0}];return t.l=r+e,s}function Ax(t,e){var r=!1;return e==null&&(r=!0,e=Ee(15+4*t.t.length)),e.write_shift(1,0),$r(t.t,e),r?e.slice(0,e.l):e}var Sx=wh;function Ex(t,e){var r=!1;return e==null&&(r=!0,e=Ee(23+4*t.t.length)),e.write_shift(1,1),$r(t.t,e),e.write_shift(4,1),bx({},e),r?e.slice(0,e.l):e}function ri(t){var e=t.read_shift(4),r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:r}}function fs(t,e){return e==null&&(e=Ee(8)),e.write_shift(-4,t.c),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}function ls(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}function hs(t,e){return e==null&&(e=Ee(4)),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}var Tx=vn,sd=$r;function _h(t){var e=t.read_shift(4);return e===0||e===4294967295?"":t.read_shift(e,"dbcs")}function lf(t,e){var r=!1;return e==null&&(r=!0,e=Ee(127)),e.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&e.write_shift(0,t,"dbcs"),r?e.slice(0,e.l):e}var Nx=vn,rh=_h,yh=lf;function od(t){var e=t.slice(t.l,t.l+4),r=e[0]&1,n=e[0]&2;t.l+=4;var i=n===0?ff([0,0,0,0,e[0]&252,e[1],e[2],e[3]],0):Ja(e,0)>>2;return r?i/100:i}function fd(t,e){e==null&&(e=Ee(4));var r=0,n=0,i=t*100;if(t==(t|0)&&t>=-536870912&&t<1<<29?n=1:i==(i|0)&&i>=-536870912&&i<1<<29&&(n=1,r=1),n)e.write_shift(-4,((r?i:t)<<2)+(r+2));else throw new Error("unsupported RkNumber "+t)}function ld(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}function Lx(t,e){return e||(e=Ee(16)),e.write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e}var us=ld,Vs=Lx;function Xs(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function ns(t,e){return(e||Ee(8)).write_shift(8,t,"f")}function Fx(t){var e={},r=t.read_shift(1),n=r>>>1,i=t.read_shift(1),a=t.read_shift(2,"i"),s=t.read_shift(1),o=t.read_shift(1),f=t.read_shift(1);switch(t.l++,n){case 0:e.auto=1;break;case 1:e.index=i;var l=Mx[i];l&&(e.rgb=c1(l));break;case 2:e.rgb=c1([s,o,f]);break;case 3:e.theme=i;break}return a!=0&&(e.tint=a>0?a/32767:a/32768),e}function hf(t,e){if(e||(e=Ee(8)),!t||t.auto)return e.write_shift(4,0),e.write_shift(4,0),e;t.index!=null?(e.write_shift(1,2),e.write_shift(1,t.index)):t.theme!=null?(e.write_shift(1,6),e.write_shift(1,t.theme)):(e.write_shift(1,5),e.write_shift(1,0));var r=t.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),e.write_shift(2,r),!t.rgb||t.theme!=null)e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);else{var n=t.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),e.write_shift(1,parseInt(n.slice(0,2),16)),e.write_shift(1,parseInt(n.slice(2,4),16)),e.write_shift(1,parseInt(n.slice(4,6),16)),e.write_shift(1,255)}return e}function Cx(t){var e=t.read_shift(1);t.l++;var r={fBold:e&1,fItalic:e&2,fUnderline:e&4,fStrikeout:e&8,fOutline:e&16,fShadow:e&32,fCondense:e&64,fExtend:e&128};return r}function kx(t,e){e||(e=Ee(2));var r=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);return e.write_shift(1,r),e.write_shift(1,0),e}var hd=2,jn=3,U0=11,uf=19,j0=64,Px=65,Ox=71,Ix=4108,Dx=4126,nn=80,r1={1:{n:"CodePage",t:hd},2:{n:"Category",t:nn},3:{n:"PresentationFormat",t:nn},4:{n:"ByteCount",t:jn},5:{n:"LineCount",t:jn},6:{n:"ParagraphCount",t:jn},7:{n:"SlideCount",t:jn},8:{n:"NoteCount",t:jn},9:{n:"HiddenCount",t:jn},10:{n:"MultimediaClipCount",t:jn},11:{n:"ScaleCrop",t:U0},12:{n:"HeadingPairs",t:Ix},13:{n:"TitlesOfParts",t:Dx},14:{n:"Manager",t:nn},15:{n:"Company",t:nn},16:{n:"LinksUpToDate",t:U0},17:{n:"CharacterCount",t:jn},19:{n:"SharedDoc",t:U0},22:{n:"HyperlinksChanged",t:U0},23:{n:"AppVersion",t:jn,p:"version"},24:{n:"DigSig",t:Px},26:{n:"ContentType",t:nn},27:{n:"ContentStatus",t:nn},28:{n:"Language",t:nn},29:{n:"Version",t:nn},255:{},2147483648:{n:"Locale",t:uf},2147483651:{n:"Behavior",t:uf},1919054434:{}},n1={1:{n:"CodePage",t:hd},2:{n:"Title",t:nn},3:{n:"Subject",t:nn},4:{n:"Author",t:nn},5:{n:"Keywords",t:nn},6:{n:"Comments",t:nn},7:{n:"Template",t:nn},8:{n:"LastAuthor",t:nn},9:{n:"RevNumber",t:nn},10:{n:"EditTime",t:j0},11:{n:"LastPrinted",t:j0},12:{n:"CreatedDate",t:j0},13:{n:"ModifiedDate",t:j0},14:{n:"PageCount",t:jn},15:{n:"WordCount",t:jn},16:{n:"CharCount",t:jn},17:{n:"Thumbnail",t:Ox},18:{n:"Application",t:nn},19:{n:"DocSecurity",t:jn},255:{},2147483648:{n:"Locale",t:uf},2147483651:{n:"Behavior",t:uf},1919054434:{}};function Rx(t){return t.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var Bx=Rx([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Mx=Fn(Bx),Vo={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Ux={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},H0={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function ud(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function cd(t,e){var r=Km(Ux),n=[],i;n[n.length]=Mr,n[n.length]=Ve("Types",null,{xmlns:Yr.CT,"xmlns:xsd":Yr.xsd,"xmlns:xsi":Yr.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(f){return Ve("Default",null,{Extension:f[0],ContentType:f[1]})}));var a=function(f){t[f]&&t[f].length>0&&(i=t[f][0],n[n.length]=Ve("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:H0[f][e.bookType]||H0[f].xlsx}))},s=function(f){(t[f]||[]).forEach(function(l){n[n.length]=Ve("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:H0[f][e.bookType]||H0[f].xlsx})})},o=function(f){(t[f]||[]).forEach(function(l){n[n.length]=Ve("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:r[f][0]})})};return a("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var qt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function dd(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function Us(t){var e=[Mr,Ve("Relationships",null,{xmlns:Yr.RELS})];return fn(t["!id"]).forEach(function(r){e[e.length]=Ve("Relationship",null,t["!id"][r])}),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function Jt(t,e,r,n,i,a){if(i||(i={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,i.Id="rId"+e,i.Type=n,i.Target=r,[qt.HLINK,qt.XPATH,qt.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),t["!id"][i.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][i.Id]=i,t[("/"+i.Target).replace("//","/")]=i,e}function jx(t){var e=[Mr];e.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
92
- `),e.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
93
- `);for(var r=0;r<t.length;++r)e.push(' <manifest:file-entry manifest:full-path="'+t[r][0]+'" manifest:media-type="'+t[r][1]+`"/>
94
- `);return e.push("</manifest:manifest>"),e.join("")}function i1(t,e,r){return[' <rdf:Description rdf:about="'+t+`">
95
- `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+e+`"/>
96
- `,` </rdf:Description>
97
- `].join("")}function Hx(t,e){return[' <rdf:Description rdf:about="'+t+`">
98
- `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e+`"/>
99
- `,` </rdf:Description>
100
- `].join("")}function Wx(t){var e=[Mr];e.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
101
- `);for(var r=0;r!=t.length;++r)e.push(i1(t[r][0],t[r][1])),e.push(Hx("",t[r][0]));return e.push(i1("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function pd(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+tf.version+"</meta:generator></office:meta></office:document-meta>"}var Qa=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Il(t,e,r,n,i){i[t]!=null||e==null||e===""||(i[t]=e,e=Zt(e),n[n.length]=r?Ve(t,e,r):sn(t,e))}function gd(t,e){var r=e||{},n=[Mr,Ve("cp:coreProperties",null,{"xmlns:cp":Yr.CORE_PROPS,"xmlns:dc":Yr.dc,"xmlns:dcterms":Yr.dcterms,"xmlns:dcmitype":Yr.dcmitype,"xmlns:xsi":Yr.xsi})],i={};if(!t&&!r.Props)return n.join("");t&&(t.CreatedDate!=null&&Il("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:th(t.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),t.ModifiedDate!=null&&Il("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:th(t.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=Qa.length;++a){var s=Qa[a],o=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:t?t[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&Il(s[0],o,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var js=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],vd=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function md(t){var e=[],r=Ve;return t||(t={}),t.Application="SheetJS",e[e.length]=Mr,e[e.length]=Ve("Properties",null,{xmlns:Yr.EXT_PROPS,"xmlns:vt":Yr.vt}),js.forEach(function(n){if(t[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Zt(String(t[n[1]]));break;case"bool":i=t[n[1]]?"true":"false";break}i!==void 0&&(e[e.length]=r(n[0],i))}}),e[e.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=r("TitlesOfParts",r("vt:vector",t.SheetNames.map(function(n){return"<vt:lpstr>"+Zt(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function xd(t){var e=[Mr,Ve("Properties",null,{xmlns:Yr.CUST_PROPS,"xmlns:vt":Yr.vt})];if(!t)return e.join("");var r=1;return fn(t).forEach(function(i){++r,e[e.length]=Ve("property",sx(t[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Zt(i)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var a1={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function qx(t,e){var r=[];return fn(a1).map(function(n){for(var i=0;i<Qa.length;++i)if(Qa[i][1]==n)return Qa[i];for(i=0;i<js.length;++i)if(js[i][1]==n)return js[i];throw n}).forEach(function(n){if(t[n[1]]!=null){var i=e&&e.Props&&e.Props[n[1]]!=null?e.Props[n[1]]:t[n[1]];n[2]==="date"&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"Z")),typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(sn(a1[n[1]]||n[1],i))}}),Ve("DocumentProperties",r.join(""),{xmlns:Wn.o})}function zx(t,e){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return t&&fn(t).forEach(function(a){if(Object.prototype.hasOwnProperty.call(t,a)){for(var s=0;s<Qa.length;++s)if(a==Qa[s][1])return;for(s=0;s<js.length;++s)if(a==js[s][1])return;for(s=0;s<r.length;++s)if(a==r[s])return;var o=t[a],f="string";typeof o=="number"?(f="float",o=String(o)):o===!0||o===!1?(f="boolean",o=o?"1":"0"):o=String(o),i.push(Ve(Vc(a),o,{"dt:dt":f}))}}),e&&fn(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)&&!(t&&Object.prototype.hasOwnProperty.call(t,a))){var s=e[a],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s instanceof Date?(o="dateTime.tz",s=s.toISOString()):s=String(s),i.push(Ve(Vc(a),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+Wn.o+'">'+i.join("")+"</"+n+">"}function Gx(t){var e=typeof t=="string"?new Date(Date.parse(t)):t,r=e.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var s=Ee(8);return s.write_shift(4,n),s.write_shift(4,i),s}function s1(t,e){var r=Ee(4),n=Ee(4);switch(r.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,e);break;case 5:n=Ee(8),n.write_shift(8,e,"f");break;case 11:n.write_shift(4,e?1:0);break;case 64:n=Gx(e);break;case 31:case 80:for(n=Ee(4+2*(e.length+1)+(e.length%2?0:2)),n.write_shift(4,e.length+1),n.write_shift(0,e,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return an([r,n])}var wd=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Vx(t){switch(typeof t){case"boolean":return 11;case"number":return(t|0)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function o1(t,e,r){var n=Ee(8),i=[],a=[],s=8,o=0,f=Ee(8),l=Ee(8);if(f.write_shift(4,2),f.write_shift(4,1200),l.write_shift(4,1),a.push(f),i.push(l),s+=8+f.length,!e){l=Ee(8),l.write_shift(4,0),i.unshift(l);var u=[Ee(4)];for(u[0].write_shift(4,t.length),o=0;o<t.length;++o){var p=t[o][0];for(f=Ee(8+2*(p.length+1)+(p.length%2?0:2)),f.write_shift(4,o+2),f.write_shift(4,p.length+1),f.write_shift(0,p,"dbcs");f.l!=f.length;)f.write_shift(1,0);u.push(f)}f=an(u),a.unshift(f),s+=8+f.length}for(o=0;o<t.length;++o)if(!(e&&!e[t[o][0]])&&!(wd.indexOf(t[o][0])>-1||vd.indexOf(t[o][0])>-1)&&t[o][1]!=null){var v=t[o][1],c=0;if(e){c=+e[t[o][0]];var w=r[c];if(w.p=="version"&&typeof v=="string"){var m=v.split(".");v=(+m[0]<<16)+(+m[1]||0)}f=s1(w.t,v)}else{var y=Vx(v);y==-1&&(y=31,v=String(v)),f=s1(y,v)}a.push(f),l=Ee(8),l.write_shift(4,e?c:2+o),i.push(l),s+=8+f.length}var A=8*(a.length+1);for(o=0;o<a.length;++o)i[o].write_shift(4,A),A+=a[o].length;return n.write_shift(4,s),n.write_shift(4,a.length),an([n].concat(i).concat(a))}function f1(t,e,r,n,i,a){var s=Ee(i?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,tr.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,e,"hex"),s.write_shift(4,i?68:48);var f=o1(t,r,n);if(o.push(f),i){var l=o1(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+f.length),o.push(l)}return an(o)}function Xx(t,e){e||(e=Ee(t));for(var r=0;r<t;++r)e.write_shift(1,0);return e}function Yx(t,e){return t.read_shift(e)===1}function bn(t,e){return e||(e=Ee(2)),e.write_shift(2,+!!t),e}function _d(t){return t.read_shift(2,"u")}function ei(t,e){return e||(e=Ee(2)),e.write_shift(2,t),e}function yd(t,e,r){return r||(r=Ee(2)),r.write_shift(1,e=="e"?+t:+!!t),r.write_shift(1,e=="e"?1:0),r}function bd(t,e,r){var n=t.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var a=t.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var s=n?t.read_shift(n,i):"";return s}function Kx(t){var e=t.t||"",r=Ee(3);r.write_shift(2,e.length),r.write_shift(1,1);var n=Ee(2*e.length);n.write_shift(2*e.length,e,"utf16le");var i=[r,n];return an(i)}function $x(t,e,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return t.read_shift(e,"cpstr");if(r.biff>=12)return t.read_shift(e,"dbcs-cont")}var i=t.read_shift(1);return i===0?n=t.read_shift(e,"sbcs-cont"):n=t.read_shift(e,"dbcs-cont"),n}function Jx(t,e,r){var n=t.read_shift(r&&r.biff==2?1:2);return n===0?(t.l++,""):$x(t,n,r)}function Zx(t,e,r){if(r.biff>5)return Jx(t,e,r);var n=t.read_shift(1);return n===0?(t.l++,""):t.read_shift(n,r.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function Ad(t,e,r){return r||(r=Ee(3+2*t.length)),r.write_shift(2,t.length),r.write_shift(1,1),r.write_shift(31,t,"utf16le"),r}function l1(t,e){e||(e=Ee(6+t.length*2)),e.write_shift(4,1+t.length);for(var r=0;r<t.length;++r)e.write_shift(2,t.charCodeAt(r));return e.write_shift(2,0),e}function Qx(t){var e=Ee(512),r=0,n=t.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}e.write_shift(4,2),e.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)e.write_shift(4,s[r]);if(a==28)n=n.slice(1),l1(n,e);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)e.write_shift(1,parseInt(s[r],16));var o=i>-1?n.slice(0,i):n;for(e.write_shift(4,2*(o.length+1)),r=0;r<o.length;++r)e.write_shift(2,o.charCodeAt(r));e.write_shift(2,0),a&8&&l1(i>-1?n.slice(i+1):"",e)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)e.write_shift(1,parseInt(s[r],16));for(var f=0;n.slice(f*3,f*3+3)=="../"||n.slice(f*3,f*3+3)=="..\\";)++f;for(e.write_shift(2,f),e.write_shift(4,n.length-3*f+1),r=0;r<n.length-3*f;++r)e.write_shift(1,n.charCodeAt(r+3*f)&255);for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),r=0;r<6;++r)e.write_shift(4,0)}return e.slice(0,e.l)}function is(t,e,r,n){return n||(n=Ee(6)),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(2,r||0),n}function e4(t,e,r){var n=r.biff>8?4:2,i=t.read_shift(n),a=t.read_shift(n,"i"),s=t.read_shift(n,"i");return[i,a,s]}function t4(t){var e=t.read_shift(2),r=t.read_shift(2),n=t.read_shift(2),i=t.read_shift(2);return{s:{c:n,r:e},e:{c:i,r}}}function Sd(t,e){return e||(e=Ee(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function bh(t,e,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=Ee(i);return a.write_shift(2,n),a.write_shift(2,e),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function r4(t,e){var r=!e||e.biff==8,n=Ee(r?112:54);for(n.write_shift(e.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function n4(t,e){var r=!e||e.biff>=8?2:1,n=Ee(8+r*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),e.biff>=8&&n.write_shift(1,1),n.write_shift(r*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function i4(t,e){var r=Ee(8);r.write_shift(4,t.Count),r.write_shift(4,t.Unique);for(var n=[],i=0;i<t.length;++i)n[i]=Kx(t[i]);var a=an([r].concat(n));return a.parts=[r.length].concat(n.map(function(s){return s.length})),a}function a4(){var t=Ee(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function s4(t){var e=Ee(18),r=1718;return t&&t.RTL&&(r|=64),e.write_shift(2,r),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function o4(t,e){var r=t.name||"Arial",n=e&&e.biff==5,i=n?15+r.length:16+2*r.length,a=Ee(i);return a.write_shift(2,t.sz*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}function f4(t,e,r,n){var i=Ee(10);return is(t,e,n,i),i.write_shift(4,r),i}function l4(t,e,r,n,i){var a=!i||i.biff==8,s=Ee(8+ +a+(1+a)*r.length);return is(t,e,n,s),s.write_shift(2,r.length),a&&s.write_shift(1,1),s.write_shift((1+a)*r.length,r,a?"utf16le":"sbcs"),s}function h4(t,e,r,n){var i=r&&r.biff==5;n||(n=Ee(i?3+e.length:5+2*e.length)),n.write_shift(2,t),n.write_shift(i?1:2,e.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*e.length,e,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function u4(t,e){var r=e.biff==8||!e.biff?4:2,n=Ee(2*r+6);return n.write_shift(r,t.s.r),n.write_shift(r,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}function h1(t,e,r,n){var i=r&&r.biff==5;n||(n=Ee(i?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,e<<4));var a=0;return t.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function c4(t){var e=Ee(8);return e.write_shift(4,0),e.write_shift(2,0),e.write_shift(2,0),e}function d4(t,e,r,n,i,a){var s=Ee(8);return is(t,e,n,s),yd(r,a,s),s}function p4(t,e,r,n){var i=Ee(14);return is(t,e,n,i),ns(r,i),i}function g4(t,e,r){if(r.biff<8)return v4(t,e,r);for(var n=[],i=t.l+e,a=t.read_shift(r.biff>8?4:2);a--!==0;)n.push(e4(t,r.biff>8?12:6,r));if(t.l!=i)throw new Error("Bad ExternSheet: "+t.l+" != "+i);return n}function v4(t,e,r){t[t.l+1]==3&&t[t.l]++;var n=bd(t,e,r);return n.charCodeAt(0)==3?n.slice(1):n}function m4(t){var e=Ee(2+t.length*8);e.write_shift(2,t.length);for(var r=0;r<t.length;++r)Sd(t[r],e);return e}function x4(t){var e=Ee(24),r=Kr(t[0]);e.write_shift(2,r.r),e.write_shift(2,r.r),e.write_shift(2,r.c),e.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)e.write_shift(1,parseInt(n[i],16));return an([e,Qx(t[1])])}function w4(t){var e=t[1].Tooltip,r=Ee(10+2*(e.length+1));r.write_shift(2,2048);var n=Kr(t[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<e.length;++i)r.write_shift(2,e.charCodeAt(i));return r.write_shift(2,0),r}function _4(t){return t||(t=Ee(4)),t.write_shift(2,1),t.write_shift(2,1),t}function y4(t,e,r){if(!r.cellStyles)return Oi(t,e);var n=r&&r.biff>=12?4:2,i=t.read_shift(n),a=t.read_shift(n),s=t.read_shift(n),o=t.read_shift(n),f=t.read_shift(2);n==2&&(t.l+=2);var l={s:i,e:a,w:s,ixfe:o,flags:f};return(r.biff>=5||!r.biff)&&(l.level=f>>8&7),l}function b4(t,e){var r=Ee(12);r.write_shift(2,e),r.write_shift(2,e),r.write_shift(2,t.width*256),r.write_shift(2,0);var n=0;return t.hidden&&(n|=1),r.write_shift(1,n),n=t.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function A4(t){for(var e=Ee(2*t),r=0;r<t;++r)e.write_shift(2,r+1);return e}function S4(t,e,r){var n=Ee(15);return Yo(n,t,e),n.write_shift(8,r,"f"),n}function E4(t,e,r){var n=Ee(9);return Yo(n,t,e),n.write_shift(2,r),n}var T4=(function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=uh({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(o,f){var l=[],u=rs(1);switch(f.type){case"base64":u=gi(aa(o));break;case"binary":u=gi(o);break;case"buffer":case"array":u=o;break}Hn(u,0);var p=u.read_shift(1),v=!!(p&136),c=!1,w=!1;switch(p){case 2:break;case 3:break;case 48:c=!0,v=!0;break;case 49:c=!0,v=!0;break;case 131:break;case 139:break;case 140:w=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+p.toString(16))}var m=0,y=521;p==2&&(m=u.read_shift(2)),u.l+=3,p!=2&&(m=u.read_shift(4)),m>1048576&&(m=1e6),p!=2&&(y=u.read_shift(2));var A=u.read_shift(2),D=f.codepage||1252;p!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(D=t[u[u.l]]),u.l+=1,u.l+=2),w&&(u.l+=36);for(var P=[],B={},re=Math.min(u.length,p==2?521:y-10-(c?264:0)),ue=w?32:11;u.l<re&&u[u.l]!=13;)switch(B={},B.name=rf.utils.decode(D,u.slice(u.l,u.l+ue)).replace(/[\u0000\r\n].*$/g,""),u.l+=ue,B.type=String.fromCharCode(u.read_shift(1)),p!=2&&!w&&(B.offset=u.read_shift(4)),B.len=u.read_shift(1),p==2&&(B.offset=u.read_shift(2)),B.dec=u.read_shift(1),B.name.length&&P.push(B),p!=2&&(u.l+=w?13:14),B.type){case"B":(!c||B.len!=8)&&f.WTF&&console.log("Skipping "+B.name+":"+B.type);break;case"G":case"P":f.WTF&&console.log("Skipping "+B.name+":"+B.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+B.type)}if(u[u.l]!==13&&(u.l=y-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=y;var V=0,z=0;for(l[0]=[],z=0;z!=P.length;++z)l[0][z]=P[z].name;for(;m-- >0;){if(u[u.l]===42){u.l+=A;continue}for(++u.l,l[++V]=[],z=0,z=0;z!=P.length;++z){var k=u.slice(u.l,u.l+P[z].len);u.l+=P[z].len,Hn(k,0);var ee=rf.utils.decode(D,k);switch(P[z].type){case"C":ee.trim().length&&(l[V][z]=ee.replace(/\s+$/,""));break;case"D":ee.length===8?l[V][z]=new Date(+ee.slice(0,4),+ee.slice(4,6)-1,+ee.slice(6,8)):l[V][z]=ee;break;case"F":l[V][z]=parseFloat(ee.trim());break;case"+":case"I":l[V][z]=w?k.read_shift(-4,"i")^2147483648:k.read_shift(4,"i");break;case"L":switch(ee.trim().toUpperCase()){case"Y":case"T":l[V][z]=!0;break;case"N":case"F":l[V][z]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+ee+"|")}break;case"M":if(!v)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));l[V][z]="##MEMO##"+(w?parseInt(ee.trim(),10):k.read_shift(4));break;case"N":ee=ee.replace(/\u0000/g,"").trim(),ee&&ee!="."&&(l[V][z]=+ee||0);break;case"@":l[V][z]=new Date(k.read_shift(-8,"f")-621356832e5);break;case"T":l[V][z]=new Date((k.read_shift(4)-2440588)*864e5+k.read_shift(4));break;case"Y":l[V][z]=k.read_shift(4,"i")/1e4+k.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[V][z]=-k.read_shift(-8,"f");break;case"B":if(c&&P[z].len==8){l[V][z]=k.read_shift(8,"f");break}case"G":case"P":k.l+=P[z].len;break;case"0":if(P[z].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+P[z].type)}}}if(p!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return f&&f.sheetRows&&(l=l.slice(0,f.sheetRows)),f.DBF=P,l}function n(o,f){var l=f||{};l.dateNF||(l.dateNF="yyyymmdd");var u=Gs(r(o,l),l);return u["!cols"]=l.DBF.map(function(p){return{wch:p.len,DBF:p}}),delete l.DBF,u}function i(o,f){try{return os(n(o,f),f)}catch(l){if(f&&f.WTF)throw l}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,f){var l=f||{};if(+l.codepage>=0&&Do(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var u=Nn(),p=vf(o,{header:1,raw:!0,cellDates:!0}),v=p[0],c=p.slice(1),w=o["!cols"]||[],m=0,y=0,A=0,D=1;for(m=0;m<v.length;++m){if(((w[m]||{}).DBF||{}).name){v[m]=w[m].DBF.name,++A;continue}if(v[m]!=null){if(++A,typeof v[m]=="number"&&(v[m]=v[m].toString(10)),typeof v[m]!="string")throw new Error("DBF Invalid column name "+v[m]+" |"+typeof v[m]+"|");if(v.indexOf(v[m])!==m){for(y=0;y<1024;++y)if(v.indexOf(v[m]+"_"+y)==-1){v[m]+="_"+y;break}}}}var P=cr(o["!ref"]),B=[],re=[],ue=[];for(m=0;m<=P.e.c-P.s.c;++m){var V="",z="",k=0,ee=[];for(y=0;y<c.length;++y)c[y][m]!=null&&ee.push(c[y][m]);if(ee.length==0||v[m]==null){B[m]="?";continue}for(y=0;y<ee.length;++y){switch(typeof ee[y]){case"number":z="B";break;case"string":z="C";break;case"boolean":z="L";break;case"object":z=ee[y]instanceof Date?"D":"C";break;default:z="C"}k=Math.max(k,String(ee[y]).length),V=V&&V!=z?"C":z}k>250&&(k=250),z=((w[m]||{}).DBF||{}).type,z=="C"&&w[m].DBF.len>k&&(k=w[m].DBF.len),V=="B"&&z=="N"&&(V="N",ue[m]=w[m].DBF.dec,k=w[m].DBF.len),re[m]=V=="C"||z=="N"?k:a[V]||0,D+=re[m],B[m]=V}var S=u.next(32);for(S.write_shift(4,318902576),S.write_shift(4,c.length),S.write_shift(2,296+32*A),S.write_shift(2,D),m=0;m<4;++m)S.write_shift(4,0);for(S.write_shift(4,0|(+e[T2]||3)<<8),m=0,y=0;m<v.length;++m)if(v[m]!=null){var I=u.next(32),G=(v[m].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);I.write_shift(1,G,"sbcs"),I.write_shift(1,B[m]=="?"?"C":B[m],"sbcs"),I.write_shift(4,y),I.write_shift(1,re[m]||a[B[m]]||0),I.write_shift(1,ue[m]||0),I.write_shift(1,2),I.write_shift(4,0),I.write_shift(1,0),I.write_shift(4,0),I.write_shift(4,0),y+=re[m]||a[B[m]]||0}var te=u.next(264);for(te.write_shift(4,13),m=0;m<65;++m)te.write_shift(4,0);for(m=0;m<c.length;++m){var he=u.next(D);for(he.write_shift(1,0),y=0;y<v.length;++y)if(v[y]!=null)switch(B[y]){case"L":he.write_shift(1,c[m][y]==null?63:c[m][y]?84:70);break;case"B":he.write_shift(8,c[m][y]||0,"f");break;case"N":var be="0";for(typeof c[m][y]=="number"&&(be=c[m][y].toFixed(ue[y]||0)),A=0;A<re[y]-be.length;++A)he.write_shift(1,32);he.write_shift(1,be,"sbcs");break;case"D":c[m][y]?(he.write_shift(4,("0000"+c[m][y].getFullYear()).slice(-4),"sbcs"),he.write_shift(2,("00"+(c[m][y].getMonth()+1)).slice(-2),"sbcs"),he.write_shift(2,("00"+c[m][y].getDate()).slice(-2),"sbcs")):he.write_shift(8,"00000000","sbcs");break;case"C":var ye=String(c[m][y]!=null?c[m][y]:"").slice(0,re[y]);for(he.write_shift(1,ye,"sbcs"),A=0;A<re[y]-ye.length;++A)he.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}})(),N4=(function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+fn(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(v,c){var w=t[c];return typeof w=="number"?Ic(w):w},n=function(v,c,w){var m=c.charCodeAt(0)-32<<4|w.charCodeAt(0)-48;return m==59?v:Ic(m)};t["|"]=254;function i(v,c){switch(c.type){case"base64":return a(aa(v),c);case"binary":return a(v,c);case"buffer":return a(zt&&Buffer.isBuffer(v)?v.toString("binary"):qo(v),c);case"array":return a(Sf(v),c)}throw new Error("Unrecognized type "+c.type)}function a(v,c){var w=v.split(/[\n\r]+/),m=-1,y=-1,A=0,D=0,P=[],B=[],re=null,ue={},V=[],z=[],k=[],ee=0,S;for(+c.codepage>=0&&Do(+c.codepage);A!==w.length;++A){ee=0;var I=w[A].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(e,r),G=I.replace(/;;/g,"\0").split(";").map(function(F){return F.replace(/\u0000/g,";")}),te=G[0],he;if(I.length>0)switch(te){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":G[1].charAt(0)=="P"&&B.push(I.slice(3).replace(/;;/g,";"));break;case"C":var be=!1,ye=!1,pe=!1,Ae=!1,Ue=-1,ke=-1;for(D=1;D<G.length;++D)switch(G[D].charAt(0)){case"A":break;case"X":y=parseInt(G[D].slice(1))-1,ye=!0;break;case"Y":for(m=parseInt(G[D].slice(1))-1,ye||(y=0),S=P.length;S<=m;++S)P[S]=[];break;case"K":he=G[D].slice(1),he.charAt(0)==='"'?he=he.slice(1,he.length-1):he==="TRUE"?he=!0:he==="FALSE"?he=!1:isNaN(ra(he))?isNaN(Bo(he).getDate())||(he=An(he)):(he=ra(he),re!==null&&M2(re)&&(he=W2(he))),be=!0;break;case"E":Ae=!0;var _=E3(G[D].slice(1),{r:m,c:y});P[m][y]=[P[m][y],_];break;case"S":pe=!0,P[m][y]=[P[m][y],"S5S"];break;case"G":break;case"R":Ue=parseInt(G[D].slice(1))-1;break;case"C":ke=parseInt(G[D].slice(1))-1;break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+I)}if(be&&(P[m][y]&&P[m][y].length==2?P[m][y][0]=he:P[m][y]=he,re=null),pe){if(Ae)throw new Error("SYLK shared formula cannot have own formula");var L=Ue>-1&&P[Ue][ke];if(!L||!L[1])throw new Error("SYLK shared formula cannot find base");P[m][y][1]=T3(L[1],{r:m-Ue,c:y-ke})}break;case"F":var N=0;for(D=1;D<G.length;++D)switch(G[D].charAt(0)){case"X":y=parseInt(G[D].slice(1))-1,++N;break;case"Y":for(m=parseInt(G[D].slice(1))-1,S=P.length;S<=m;++S)P[S]=[];break;case"M":ee=parseInt(G[D].slice(1))/20;break;case"F":break;case"G":break;case"P":re=B[parseInt(G[D].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(k=G[D].slice(1).split(" "),S=parseInt(k[0],10);S<=parseInt(k[1],10);++S)ee=parseInt(k[2],10),z[S-1]=ee===0?{hidden:!0}:{wch:ee},Ah(z[S-1]);break;case"C":y=parseInt(G[D].slice(1))-1,z[y]||(z[y]={});break;case"R":m=parseInt(G[D].slice(1))-1,V[m]||(V[m]={}),ee>0?(V[m].hpt=ee,V[m].hpx=Fd(ee)):ee===0&&(V[m].hidden=!0);break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+I)}N<1&&(re=null);break;default:if(c&&c.WTF)throw new Error("SYLK bad record "+I)}}return V.length>0&&(ue["!rows"]=V),z.length>0&&(ue["!cols"]=z),c&&c.sheetRows&&(P=P.slice(0,c.sheetRows)),[P,ue]}function s(v,c){var w=i(v,c),m=w[0],y=w[1],A=Gs(m,c);return fn(y).forEach(function(D){A[D]=y[D]}),A}function o(v,c){return os(s(v,c),c)}function f(v,c,w,m){var y="C;Y"+(w+1)+";X"+(m+1)+";K";switch(v.t){case"n":y+=v.v||0,v.f&&!v.F&&(y+=";E"+Eh(v.f,{r:w,c:m}));break;case"b":y+=v.v?"TRUE":"FALSE";break;case"e":y+=v.w||v.v;break;case"d":y+='"'+(v.w||v.v)+'"';break;case"s":y+='"'+v.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return y}function l(v,c){c.forEach(function(w,m){var y="F;W"+(m+1)+" "+(m+1)+" ";w.hidden?y+="0":(typeof w.width=="number"&&!w.wpx&&(w.wpx=cf(w.width)),typeof w.wpx=="number"&&!w.wch&&(w.wch=df(w.wpx)),typeof w.wch=="number"&&(y+=Math.round(w.wch))),y.charAt(y.length-1)!=" "&&v.push(y)})}function u(v,c){c.forEach(function(w,m){var y="F;";w.hidden?y+="M0;":w.hpt?y+="M"+20*w.hpt+";":w.hpx&&(y+="M"+20*pf(w.hpx)+";"),y.length>2&&v.push(y+"R"+(m+1))})}function p(v,c){var w=["ID;PWXL;N;E"],m=[],y=cr(v["!ref"]),A,D=Array.isArray(v),P=`\r
102
- `;w.push("P;PGeneral"),w.push("F;P0;DG0G8;M255"),v["!cols"]&&l(w,v["!cols"]),v["!rows"]&&u(w,v["!rows"]),w.push("B;Y"+(y.e.r-y.s.r+1)+";X"+(y.e.c-y.s.c+1)+";D"+[y.s.c,y.s.r,y.e.c,y.e.r].join(" "));for(var B=y.s.r;B<=y.e.r;++B)for(var re=y.s.c;re<=y.e.c;++re){var ue=Qt({r:B,c:re});A=D?(v[B]||[])[re]:v[ue],!(!A||A.v==null&&(!A.f||A.F))&&m.push(f(A,v,B,re))}return w.join(P)+P+m.join(P)+P+"E"+P}return{to_workbook:o,to_sheet:s,from_sheet:p}})(),L4=(function(){function t(a,s){switch(s.type){case"base64":return e(aa(a),s);case"binary":return e(a,s);case"buffer":return e(zt&&Buffer.isBuffer(a)?a.toString("binary"):qo(a),s);case"array":return e(Sf(a),s)}throw new Error("Unrecognized type "+s.type)}function e(a,s){for(var o=a.split(`
103
- `),f=-1,l=-1,u=0,p=[];u!==o.length;++u){if(o[u].trim()==="BOT"){p[++f]=[],l=0;continue}if(!(f<0)){var v=o[u].trim().split(","),c=v[0],w=v[1];++u;for(var m=o[u]||"";(m.match(/["]/g)||[]).length&1&&u<o.length-1;)m+=`
104
- `+o[++u];switch(m=m.trim(),+c){case-1:if(m==="BOT"){p[++f]=[],l=0;continue}else if(m!=="EOD")throw new Error("Unrecognized DIF special command "+m);break;case 0:m==="TRUE"?p[f][l]=!0:m==="FALSE"?p[f][l]=!1:isNaN(ra(w))?isNaN(Bo(w).getDate())?p[f][l]=w:p[f][l]=An(w):p[f][l]=ra(w),++l;break;case 1:m=m.slice(1,m.length-1),m=m.replace(/""/g,'"'),m&&m.match(/^=".*"$/)&&(m=m.slice(2,-1)),p[f][l++]=m!==""?m:null;break}if(m==="EOD")break}}return s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),p}function r(a,s){return Gs(t(a,s),s)}function n(a,s){return os(r(a,s),s)}var i=(function(){var a=function(f,l,u,p,v){f.push(l),f.push(u+","+p),f.push('"'+v.replace(/"/g,'""')+'"')},s=function(f,l,u,p){f.push(l+","+u),f.push(l==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(f){var l=[],u=cr(f["!ref"]),p,v=Array.isArray(f);a(l,"TABLE",0,1,"sheetjs"),a(l,"VECTORS",0,u.e.r-u.s.r+1,""),a(l,"TUPLES",0,u.e.c-u.s.c+1,""),a(l,"DATA",0,0,"");for(var c=u.s.r;c<=u.e.r;++c){s(l,-1,0,"BOT");for(var w=u.s.c;w<=u.e.c;++w){var m=Qt({r:c,c:w});if(p=v?(f[c]||[])[w]:f[m],!p){s(l,1,0,"");continue}switch(p.t){case"n":var y=p.w;!y&&p.v!=null&&(y=p.v),y==null?p.f&&!p.F?s(l,1,0,"="+p.f):s(l,1,0,""):s(l,0,y,"V");break;case"b":s(l,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":s(l,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=ka(p.z||Ar[14],Ln(An(p.v)))),s(l,0,p.w,"V");break;default:s(l,1,0,"")}}}s(l,-1,0,"EOD");var A=`\r
105
- `,D=l.join(A);return D}})();return{to_workbook:n,to_sheet:r,from_sheet:i}})(),Ed=(function(){function t(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
106
- `)}function e(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(p,v){for(var c=p.split(`
107
- `),w=-1,m=-1,y=0,A=[];y!==c.length;++y){var D=c[y].trim().split(":");if(D[0]==="cell"){var P=Kr(D[1]);if(A.length<=P.r)for(w=A.length;w<=P.r;++w)A[w]||(A[w]=[]);switch(w=P.r,m=P.c,D[2]){case"t":A[w][m]=t(D[3]);break;case"v":A[w][m]=+D[3];break;case"vtf":var B=D[D.length-1];case"vtc":D[3]==="nl"?A[w][m]=!!+D[4]:A[w][m]=+D[4],D[2]=="vtf"&&(A[w][m]=[A[w][m],B])}}}return v&&v.sheetRows&&(A=A.slice(0,v.sheetRows)),A}function n(p,v){return Gs(r(p,v),v)}function i(p,v){return os(n(p,v),v)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
108
- `),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
109
- `)+`
110
- `,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
111
- `),f="--SocialCalcSpreadsheetControlSave--";function l(p){if(!p||!p["!ref"])return"";for(var v=[],c=[],w,m="",y=Gn(p["!ref"]),A=Array.isArray(p),D=y.s.r;D<=y.e.r;++D)for(var P=y.s.c;P<=y.e.c;++P)if(m=Qt({r:D,c:P}),w=A?(p[D]||[])[P]:p[m],!(!w||w.v==null||w.t==="z")){switch(c=["cell",m,"t"],w.t){case"s":case"str":c.push(e(w.v));break;case"n":w.f?(c[2]="vtf",c[3]="n",c[4]=w.v,c[5]=e(w.f)):(c[2]="v",c[3]=w.v);break;case"b":c[2]="vt"+(w.f?"f":"c"),c[3]="nl",c[4]=w.v?"1":"0",c[5]=e(w.f||(w.v?"TRUE":"FALSE"));break;case"d":var B=Ln(An(w.v));c[2]="vtc",c[3]="nd",c[4]=""+B,c[5]=w.w||ka(w.z||Ar[14],B);break;case"e":continue}v.push(c.join(":"))}return v.push("sheet:c:"+(y.e.c-y.s.c+1)+":r:"+(y.e.r-y.s.r+1)+":tvf:1"),v.push("valueformat:1:text-wiki"),v.join(`
112
- `)}function u(p){return[a,s,o,s,l(p),f].join(`
113
- `)}return{to_workbook:i,to_sheet:n,from_sheet:u}})(),F4=(function(){function t(u,p,v,c,w){w.raw?p[v][c]=u:u===""||(u==="TRUE"?p[v][c]=!0:u==="FALSE"?p[v][c]=!1:isNaN(ra(u))?isNaN(Bo(u).getDate())?p[v][c]=u:p[v][c]=An(u):p[v][c]=ra(u))}function e(u,p){var v=p||{},c=[];if(!u||u.length===0)return c;for(var w=u.split(/[\r\n]/),m=w.length-1;m>=0&&w[m].length===0;)--m;for(var y=10,A=0,D=0;D<=m;++D)A=w[D].indexOf(" "),A==-1?A=w[D].length:A++,y=Math.max(y,A);for(D=0;D<=m;++D){c[D]=[];var P=0;for(t(w[D].slice(0,y).trim(),c,D,P,v),P=1;P<=(w[D].length-y)/10+1;++P)t(w[D].slice(y+(P-1)*10,y+P*10).trim(),c,D,P,v)}return v.sheetRows&&(c=c.slice(0,v.sheetRows)),c}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(u){for(var p={},v=!1,c=0,w=0;c<u.length;++c)(w=u.charCodeAt(c))==34?v=!v:!v&&w in r&&(p[w]=(p[w]||0)+1);w=[];for(c in p)Object.prototype.hasOwnProperty.call(p,c)&&w.push([p[c],c]);if(!w.length){p=n;for(c in p)Object.prototype.hasOwnProperty.call(p,c)&&w.push([p[c],c])}return w.sort(function(m,y){return m[0]-y[0]||n[m[1]]-n[y[1]]}),r[w.pop()[1]]||44}function a(u,p){var v=p||{},c="",w=v.dense?[]:{},m={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(c=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(c=u.charAt(4),u=u.slice(6)):c=i(u.slice(0,1024)):v&&v.FS?c=v.FS:c=i(u.slice(0,1024));var y=0,A=0,D=0,P=0,B=0,re=c.charCodeAt(0),ue=!1,V=0,z=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
114
- `);var k=v.dateNF!=null?Gm(v.dateNF):null;function ee(){var S=u.slice(P,B),I={};if(S.charAt(0)=='"'&&S.charAt(S.length-1)=='"'&&(S=S.slice(1,-1).replace(/""/g,'"')),S.length===0)I.t="z";else if(v.raw)I.t="s",I.v=S;else if(S.trim().length===0)I.t="s",I.v=S;else if(S.charCodeAt(0)==61)S.charCodeAt(1)==34&&S.charCodeAt(S.length-1)==34?(I.t="s",I.v=S.slice(2,-1).replace(/""/g,'"')):N3(S)?(I.t="n",I.f=S.slice(1)):(I.t="s",I.v=S);else if(S=="TRUE")I.t="b",I.v=!0;else if(S=="FALSE")I.t="b",I.v=!1;else if(!isNaN(D=ra(S)))I.t="n",v.cellText!==!1&&(I.w=S),I.v=D;else if(!isNaN(Bo(S).getDate())||k&&S.match(k)){I.z=v.dateNF||Ar[14];var G=0;k&&S.match(k)&&(S=Vm(S,v.dateNF,S.match(k)||[]),G=1),v.cellDates?(I.t="d",I.v=An(S,G)):(I.t="n",I.v=Ln(An(S,G))),v.cellText!==!1&&(I.w=ka(I.z,I.v instanceof Date?Ln(I.v):I.v)),v.cellNF||delete I.z}else I.t="s",I.v=S;if(I.t=="z"||(v.dense?(w[y]||(w[y]=[]),w[y][A]=I):w[Qt({c:A,r:y})]=I),P=B+1,z=u.charCodeAt(P),m.e.c<A&&(m.e.c=A),m.e.r<y&&(m.e.r=y),V==re)++A;else if(A=0,++y,v.sheetRows&&v.sheetRows<=y)return!0}e:for(;B<u.length;++B)switch(V=u.charCodeAt(B)){case 34:z===34&&(ue=!ue);break;case re:case 10:case 13:if(!ue&&ee())break e;break}return B-P>0&&ee(),w["!ref"]=Br(m),w}function s(u,p){return!(p&&p.PRN)||p.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?a(u,p):Gs(e(u,p),p)}function o(u,p){var v="",c=p.type=="string"?[0,0,0,0]:H6(u,p);switch(p.type){case"base64":v=aa(u);break;case"binary":v=u;break;case"buffer":p.codepage==65001?v=u.toString("utf8"):p.codepage&&typeof rf<"u"||(v=zt&&Buffer.isBuffer(u)?u.toString("binary"):qo(u));break;case"array":v=Sf(u);break;case"string":v=u;break;default:throw new Error("Unrecognized type "+p.type)}return c[0]==239&&c[1]==187&&c[2]==191?v=Lo(v.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?v=Lo(v):p.type=="binary"&&typeof rf<"u",v.slice(0,19)=="socialcalc:version:"?Ed.to_sheet(p.type=="string"?v:Lo(v),p):s(v,p)}function f(u,p){return os(o(u,p),p)}function l(u){for(var p=[],v=cr(u["!ref"]),c,w=Array.isArray(u),m=v.s.r;m<=v.e.r;++m){for(var y=[],A=v.s.c;A<=v.e.c;++A){var D=Qt({r:m,c:A});if(c=w?(u[m]||[])[A]:u[D],!c||c.v==null){y.push(" ");continue}for(var P=(c.w||(sa(c),c.w)||"").slice(0,10);P.length<10;)P+=" ";y.push(P+(A===0?" ":""))}p.push(y.join(""))}return p.join(`
115
- `)}return{to_workbook:f,to_sheet:o,from_sheet:l}})(),u1=(function(){function t(_,L,N){if(_){Hn(_,_.l||0);for(var F=N.Enum||Ue;_.l<_.length;){var q=_.read_shift(2),ne=F[q]||F[65535],oe=_.read_shift(2),se=_.l+oe,fe=ne.f&&ne.f(_,oe,N);if(_.l=se,L(fe,ne,q))return}}}function e(_,L){switch(L.type){case"base64":return r(gi(aa(_)),L);case"binary":return r(gi(_),L);case"buffer":case"array":return r(_,L)}throw"Unsupported type "+L.type}function r(_,L){if(!_)return _;var N=L||{},F=N.dense?[]:{},q="Sheet1",ne="",oe=0,se={},fe=[],Fe=[],Re={s:{r:0,c:0},e:{r:0,c:0}},qe=N.sheetRows||0;if(_[2]==0&&(_[3]==8||_[3]==9)&&_.length>=16&&_[14]==5&&_[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(_[2]==2)N.Enum=Ue,t(_,function(Be,Qe,Pe){switch(Pe){case 0:N.vers=Be,Be>=4096&&(N.qpro=!0);break;case 6:Re=Be;break;case 204:Be&&(ne=Be);break;case 222:ne=Be;break;case 15:case 51:N.qpro||(Be[1].v=Be[1].v.slice(1));case 13:case 14:case 16:Pe==14&&(Be[2]&112)==112&&(Be[2]&15)>1&&(Be[2]&15)<15&&(Be[1].z=N.dateNF||Ar[14],N.cellDates&&(Be[1].t="d",Be[1].v=W2(Be[1].v))),N.qpro&&Be[3]>oe&&(F["!ref"]=Br(Re),se[q]=F,fe.push(q),F=N.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},oe=Be[3],q=ne||"Sheet"+(oe+1),ne="");var st=N.dense?(F[Be[0].r]||[])[Be[0].c]:F[Qt(Be[0])];if(st){st.t=Be[1].t,st.v=Be[1].v,Be[1].z!=null&&(st.z=Be[1].z),Be[1].f!=null&&(st.f=Be[1].f);break}N.dense?(F[Be[0].r]||(F[Be[0].r]=[]),F[Be[0].r][Be[0].c]=Be[1]):F[Qt(Be[0])]=Be[1];break}},N);else if(_[2]==26||_[2]==14)N.Enum=ke,_[2]==14&&(N.qpro=!0,_.l=0),t(_,function(Be,Qe,Pe){switch(Pe){case 204:q=Be;break;case 22:Be[1].v=Be[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Be[3]>oe&&(F["!ref"]=Br(Re),se[q]=F,fe.push(q),F=N.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},oe=Be[3],q="Sheet"+(oe+1)),qe>0&&Be[0].r>=qe)break;N.dense?(F[Be[0].r]||(F[Be[0].r]=[]),F[Be[0].r][Be[0].c]=Be[1]):F[Qt(Be[0])]=Be[1],Re.e.c<Be[0].c&&(Re.e.c=Be[0].c),Re.e.r<Be[0].r&&(Re.e.r=Be[0].r);break;case 27:Be[14e3]&&(Fe[Be[14e3][0]]=Be[14e3][1]);break;case 1537:Fe[Be[0]]=Be[1],Be[0]==oe&&(q=Be[1]);break}},N);else throw new Error("Unrecognized LOTUS BOF "+_[2]);if(F["!ref"]=Br(Re),se[ne||q]=F,fe.push(ne||q),!Fe.length)return{SheetNames:fe,Sheets:se};for(var ze={},W=[],je=0;je<Fe.length;++je)se[fe[je]]?(W.push(Fe[je]||fe[je]),ze[Fe[je]]=se[Fe[je]]||se[fe[je]]):(W.push(Fe[je]),ze[Fe[je]]={"!ref":"A1"});return{SheetNames:W,Sheets:ze}}function n(_,L){var N=L||{};if(+N.codepage>=0&&Do(+N.codepage),N.type=="string")throw new Error("Cannot write WK1 to JS string");var F=Nn(),q=cr(_["!ref"]),ne=Array.isArray(_),oe=[];Xe(F,0,a(1030)),Xe(F,6,f(q));for(var se=Math.min(q.e.r,8191),fe=q.s.r;fe<=se;++fe)for(var Fe=on(fe),Re=q.s.c;Re<=q.e.c;++Re){fe===q.s.r&&(oe[Re]=gn(Re));var qe=oe[Re]+Fe,ze=ne?(_[fe]||[])[Re]:_[qe];if(!(!ze||ze.t=="z"))if(ze.t=="n")(ze.v|0)==ze.v&&ze.v>=-32768&&ze.v<=32767?Xe(F,13,c(fe,Re,ze.v)):Xe(F,14,m(fe,Re,ze.v));else{var W=sa(ze);Xe(F,15,p(fe,Re,W.slice(0,239)))}}return Xe(F,1),F.end()}function i(_,L){var N=L||{};if(+N.codepage>=0&&Do(+N.codepage),N.type=="string")throw new Error("Cannot write WK3 to JS string");var F=Nn();Xe(F,0,s(_));for(var q=0,ne=0;q<_.SheetNames.length;++q)(_.Sheets[_.SheetNames[q]]||{})["!ref"]&&Xe(F,27,Ae(_.SheetNames[q],ne++));var oe=0;for(q=0;q<_.SheetNames.length;++q){var se=_.Sheets[_.SheetNames[q]];if(!(!se||!se["!ref"])){for(var fe=cr(se["!ref"]),Fe=Array.isArray(se),Re=[],qe=Math.min(fe.e.r,8191),ze=fe.s.r;ze<=qe;++ze)for(var W=on(ze),je=fe.s.c;je<=fe.e.c;++je){ze===fe.s.r&&(Re[je]=gn(je));var Be=Re[je]+W,Qe=Fe?(se[ze]||[])[je]:se[Be];if(!(!Qe||Qe.t=="z"))if(Qe.t=="n")Xe(F,23,ee(ze,je,oe,Qe.v));else{var Pe=sa(Qe);Xe(F,22,V(ze,je,oe,Pe.slice(0,239)))}}++oe}}return Xe(F,1),F.end()}function a(_){var L=Ee(2);return L.write_shift(2,_),L}function s(_){var L=Ee(26);L.write_shift(2,4096),L.write_shift(2,4),L.write_shift(4,0);for(var N=0,F=0,q=0,ne=0;ne<_.SheetNames.length;++ne){var oe=_.SheetNames[ne],se=_.Sheets[oe];if(!(!se||!se["!ref"])){++q;var fe=Gn(se["!ref"]);N<fe.e.r&&(N=fe.e.r),F<fe.e.c&&(F=fe.e.c)}}return N>8191&&(N=8191),L.write_shift(2,N),L.write_shift(1,q),L.write_shift(1,F),L.write_shift(2,0),L.write_shift(2,0),L.write_shift(1,1),L.write_shift(1,2),L.write_shift(4,0),L.write_shift(4,0),L}function o(_,L,N){var F={s:{c:0,r:0},e:{c:0,r:0}};return L==8&&N.qpro?(F.s.c=_.read_shift(1),_.l++,F.s.r=_.read_shift(2),F.e.c=_.read_shift(1),_.l++,F.e.r=_.read_shift(2),F):(F.s.c=_.read_shift(2),F.s.r=_.read_shift(2),L==12&&N.qpro&&(_.l+=2),F.e.c=_.read_shift(2),F.e.r=_.read_shift(2),L==12&&N.qpro&&(_.l+=2),F.s.c==65535&&(F.s.c=F.e.c=F.s.r=F.e.r=0),F)}function f(_){var L=Ee(8);return L.write_shift(2,_.s.c),L.write_shift(2,_.s.r),L.write_shift(2,_.e.c),L.write_shift(2,_.e.r),L}function l(_,L,N){var F=[{c:0,r:0},{t:"n",v:0},0,0];return N.qpro&&N.vers!=20768?(F[0].c=_.read_shift(1),F[3]=_.read_shift(1),F[0].r=_.read_shift(2),_.l+=2):(F[2]=_.read_shift(1),F[0].c=_.read_shift(2),F[0].r=_.read_shift(2)),F}function u(_,L,N){var F=_.l+L,q=l(_,L,N);if(q[1].t="s",N.vers==20768){_.l++;var ne=_.read_shift(1);return q[1].v=_.read_shift(ne,"utf8"),q}return N.qpro&&_.l++,q[1].v=_.read_shift(F-_.l,"cstr"),q}function p(_,L,N){var F=Ee(7+N.length);F.write_shift(1,255),F.write_shift(2,L),F.write_shift(2,_),F.write_shift(1,39);for(var q=0;q<F.length;++q){var ne=N.charCodeAt(q);F.write_shift(1,ne>=128?95:ne)}return F.write_shift(1,0),F}function v(_,L,N){var F=l(_,L,N);return F[1].v=_.read_shift(2,"i"),F}function c(_,L,N){var F=Ee(7);return F.write_shift(1,255),F.write_shift(2,L),F.write_shift(2,_),F.write_shift(2,N,"i"),F}function w(_,L,N){var F=l(_,L,N);return F[1].v=_.read_shift(8,"f"),F}function m(_,L,N){var F=Ee(13);return F.write_shift(1,255),F.write_shift(2,L),F.write_shift(2,_),F.write_shift(8,N,"f"),F}function y(_,L,N){var F=_.l+L,q=l(_,L,N);if(q[1].v=_.read_shift(8,"f"),N.qpro)_.l=F;else{var ne=_.read_shift(2);B(_.slice(_.l,_.l+ne),q),_.l+=ne}return q}function A(_,L,N){var F=L&32768;return L&=-32769,L=(F?_:0)+(L>=8192?L-16384:L),(F?"":"$")+(N?gn(L):on(L))}var D={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},P=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function B(_,L){Hn(_,0);for(var N=[],F=0,q="",ne="",oe="",se="";_.l<_.length;){var fe=_[_.l++];switch(fe){case 0:N.push(_.read_shift(8,"f"));break;case 1:ne=A(L[0].c,_.read_shift(2),!0),q=A(L[0].r,_.read_shift(2),!1),N.push(ne+q);break;case 2:{var Fe=A(L[0].c,_.read_shift(2),!0),Re=A(L[0].r,_.read_shift(2),!1);ne=A(L[0].c,_.read_shift(2),!0),q=A(L[0].r,_.read_shift(2),!1),N.push(Fe+Re+":"+ne+q)}break;case 3:if(_.l<_.length){console.error("WK1 premature formula end");return}break;case 4:N.push("("+N.pop()+")");break;case 5:N.push(_.read_shift(2));break;case 6:{for(var qe="";fe=_[_.l++];)qe+=String.fromCharCode(fe);N.push('"'+qe.replace(/"/g,'""')+'"')}break;case 8:N.push("-"+N.pop());break;case 23:N.push("+"+N.pop());break;case 22:N.push("NOT("+N.pop()+")");break;case 20:case 21:se=N.pop(),oe=N.pop(),N.push(["AND","OR"][fe-20]+"("+oe+","+se+")");break;default:if(fe<32&&P[fe])se=N.pop(),oe=N.pop(),N.push(oe+P[fe]+se);else if(D[fe]){if(F=D[fe][1],F==69&&(F=_[_.l++]),F>N.length){console.error("WK1 bad formula parse 0x"+fe.toString(16)+":|"+N.join("|")+"|");return}var ze=N.slice(-F);N.length-=F,N.push(D[fe][0]+"("+ze.join(",")+")")}else return fe<=7?console.error("WK1 invalid opcode "+fe.toString(16)):fe<=24?console.error("WK1 unsupported op "+fe.toString(16)):fe<=30?console.error("WK1 invalid opcode "+fe.toString(16)):fe<=115?console.error("WK1 unsupported function opcode "+fe.toString(16)):console.error("WK1 unrecognized opcode "+fe.toString(16))}}N.length==1?L[1].f=""+N[0]:console.error("WK1 bad formula parse |"+N.join("|")+"|")}function re(_){var L=[{c:0,r:0},{t:"n",v:0},0];return L[0].r=_.read_shift(2),L[3]=_[_.l++],L[0].c=_[_.l++],L}function ue(_,L){var N=re(_);return N[1].t="s",N[1].v=_.read_shift(L-4,"cstr"),N}function V(_,L,N,F){var q=Ee(6+F.length);q.write_shift(2,_),q.write_shift(1,N),q.write_shift(1,L),q.write_shift(1,39);for(var ne=0;ne<F.length;++ne){var oe=F.charCodeAt(ne);q.write_shift(1,oe>=128?95:oe)}return q.write_shift(1,0),q}function z(_,L){var N=re(_);N[1].v=_.read_shift(2);var F=N[1].v>>1;if(N[1].v&1)switch(F&7){case 0:F=(F>>3)*5e3;break;case 1:F=(F>>3)*500;break;case 2:F=(F>>3)/20;break;case 3:F=(F>>3)/200;break;case 4:F=(F>>3)/2e3;break;case 5:F=(F>>3)/2e4;break;case 6:F=(F>>3)/16;break;case 7:F=(F>>3)/64;break}return N[1].v=F,N}function k(_,L){var N=re(_),F=_.read_shift(4),q=_.read_shift(4),ne=_.read_shift(2);if(ne==65535)return F===0&&q===3221225472?(N[1].t="e",N[1].v=15):F===0&&q===3489660928?(N[1].t="e",N[1].v=42):N[1].v=0,N;var oe=ne&32768;return ne=(ne&32767)-16446,N[1].v=(1-oe*2)*(q*Math.pow(2,ne+32)+F*Math.pow(2,ne)),N}function ee(_,L,N,F){var q=Ee(14);if(q.write_shift(2,_),q.write_shift(1,N),q.write_shift(1,L),F==0)return q.write_shift(4,0),q.write_shift(4,0),q.write_shift(2,65535),q;var ne=0,oe=0,se=0,fe=0;return F<0&&(ne=1,F=-F),oe=Math.log2(F)|0,F/=Math.pow(2,oe-31),fe=F>>>0,(fe&2147483648)==0&&(F/=2,++oe,fe=F>>>0),F-=fe,fe|=2147483648,fe>>>=0,F*=Math.pow(2,32),se=F>>>0,q.write_shift(4,se),q.write_shift(4,fe),oe+=16383+(ne?32768:0),q.write_shift(2,oe),q}function S(_,L){var N=k(_);return _.l+=L-14,N}function I(_,L){var N=re(_),F=_.read_shift(4);return N[1].v=F>>6,N}function G(_,L){var N=re(_),F=_.read_shift(8,"f");return N[1].v=F,N}function te(_,L){var N=G(_);return _.l+=L-10,N}function he(_,L){return _[_.l+L-1]==0?_.read_shift(L,"cstr"):""}function be(_,L){var N=_[_.l++];N>L-1&&(N=L-1);for(var F="";F.length<N;)F+=String.fromCharCode(_[_.l++]);return F}function ye(_,L,N){if(!(!N.qpro||L<21)){var F=_.read_shift(1);_.l+=17,_.l+=1,_.l+=2;var q=_.read_shift(L-21,"cstr");return[F,q]}}function pe(_,L){for(var N={},F=_.l+L;_.l<F;){var q=_.read_shift(2);if(q==14e3){for(N[q]=[0,""],N[q][0]=_.read_shift(2);_[_.l];)N[q][1]+=String.fromCharCode(_[_.l]),_.l++;_.l++}}return N}function Ae(_,L){var N=Ee(5+_.length);N.write_shift(2,14e3),N.write_shift(2,L);for(var F=0;F<_.length;++F){var q=_.charCodeAt(F);N[N.l++]=q>127?95:q}return N[N.l++]=0,N}var Ue={0:{n:"BOF",f:_d},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:v},14:{n:"NUMBER",f:w},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:y},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:he},222:{n:"SHEETNAMELP",f:be},65535:{n:""}},ke={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:ue},23:{n:"NUMBER17",f:k},24:{n:"NUMBER18",f:z},25:{n:"FORMULA19",f:S},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:pe},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:I},38:{n:"??"},39:{n:"NUMBER27",f:G},40:{n:"FORMULA28",f:te},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:he},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:ye},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:e}})(),C4=/^\s|\s$|[\t\n\r]/;function Td(t,e){if(!e.bookSST)return"";var r=[Mr];r[r.length]=Ve("sst",null,{xmlns:zs[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var i=t[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(C4)&&(a+=' xml:space="preserve"'),a+=">"+Zt(i.t)+"</t>"),a+="</si>",r[r.length]=a}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function k4(t){return[t.read_shift(4),t.read_shift(4)]}function P4(t,e){return e||(e=Ee(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}var O4=Ax;function I4(t){var e=Nn();Oe(e,159,P4(t));for(var r=0;r<t.length;++r)Oe(e,19,O4(t[r]));return Oe(e,160),e.end()}function D4(t){for(var e=[],r=t.split(""),n=0;n<r.length;++n)e[n]=r[n].charCodeAt(0);return e}function Nd(t){var e=0,r,n=D4(t),i=n.length+1,a,s,o,f,l;for(r=rs(i),r[0]=n.length,a=1;a!=i;++a)r[a]=n[a-1];for(a=i-1;a>=0;--a)s=r[a],o=(e&16384)===0?0:1,f=e<<1&32767,l=o|f,e=l^s;return e^52811}var R4=(function(){function t(i,a){switch(a.type){case"base64":return e(aa(i),a);case"binary":return e(i,a);case"buffer":return e(zt&&Buffer.isBuffer(i)?i.toString("binary"):qo(i),a);case"array":return e(Sf(i),a)}throw new Error("Unrecognized type "+a.type)}function e(i,a){var s=a||{},o=s.dense?[]:{},f=i.match(/\\trowd.*?\\row\b/g);if(!f.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:f.length-1}};return f.forEach(function(u,p){Array.isArray(o)&&(o[p]=[]);for(var v=/\\\w+\b/g,c=0,w,m=-1;w=v.exec(u);){switch(w[0]){case"\\cell":var y=u.slice(c,v.lastIndex-w[0].length);if(y[0]==" "&&(y=y.slice(1)),++m,y.length){var A={v:y,t:"s"};Array.isArray(o)?o[p][m]=A:o[Qt({r:p,c:m})]=A}break}c=v.lastIndex}m>l.e.c&&(l.e.c=m)}),o["!ref"]=Br(l),o}function r(i,a){return os(t(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=cr(i["!ref"]),o,f=Array.isArray(i),l=s.s.r;l<=s.e.r;++l){a.push("\\trowd\\trautofit1");for(var u=s.s.c;u<=s.e.c;++u)a.push("\\cellx"+(u+1));for(a.push("\\pard\\intbl"),u=s.s.c;u<=s.e.c;++u){var p=Qt({r:l,c:u});o=f?(i[l]||[])[u]:i[p],!(!o||o.v==null&&(!o.f||o.F))&&(a.push(" "+(o.w||(sa(o),o.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:n}})();function c1(t){for(var e=0,r=1;e!=3;++e)r=r*256+(t[e]>255?255:t[e]<0?0:t[e]);return r.toString(16).toUpperCase().slice(1)}var B4=6,na=B4;function cf(t){return Math.floor((t+Math.round(128/na)/256)*na)}function df(t){return Math.floor((t-5)/na*100+.5)/100}function nh(t){return Math.round((t*na+5)/na*256)/256}function Ah(t){t.width?(t.wpx=cf(t.width),t.wch=df(t.wpx),t.MDW=na):t.wpx?(t.wch=df(t.wpx),t.width=nh(t.wch),t.MDW=na):typeof t.wch=="number"&&(t.width=nh(t.wch),t.wpx=cf(t.width),t.MDW=na),t.customWidth&&delete t.customWidth}var M4=96,Ld=M4;function pf(t){return t*96/Ld}function Fd(t){return t*Ld/96}function U4(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)t[n]!=null&&(e[e.length]=Ve("numFmt",null,{numFmtId:n,formatCode:Zt(t[n])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=Ve("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function j4(t){var e=[];return e[e.length]=Ve("cellXfs",null),t.forEach(function(r){e[e.length]=Ve("xf",null,r)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=Ve("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function Cd(t,e){var r=[Mr,Ve("styleSheet",null,{xmlns:zs[0],"xmlns:vt":Yr.vt})],n;return t.SSF&&(n=U4(t.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=j4(e.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function H4(t,e){var r=t.read_shift(2),n=vn(t);return[r,n]}function W4(t,e,r){r||(r=Ee(6+4*e.length)),r.write_shift(2,t),$r(e,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function q4(t,e,r){var n={};n.sz=t.read_shift(2)/20;var i=Cx(t);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=t.read_shift(2);switch(a===700&&(n.bold=1),t.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=t.read_shift(1);s!=0&&(n.underline=s);var o=t.read_shift(1);o>0&&(n.family=o);var f=t.read_shift(1);switch(f>0&&(n.charset=f),t.l++,n.color=Fx(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=vn(t),n}function z4(t,e){e||(e=Ee(153)),e.write_shift(2,t.sz*20),kx(t,e),e.write_shift(2,t.bold?700:400);var r=0;t.vertAlign=="superscript"?r=1:t.vertAlign=="subscript"&&(r=2),e.write_shift(2,r),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),hf(t.color,e);var n=0;return n=2,e.write_shift(1,n),$r(t.name,e),e.length>e.l?e.slice(0,e.l):e}var G4=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Dl,V4=Oi;function d1(t,e){e||(e=Ee(84)),Dl||(Dl=uh(G4));var r=Dl[t.patternType];r==null&&(r=40),e.write_shift(4,r);var n=0;if(r!=40)for(hf({auto:1},e),hf({auto:1},e);n<12;++n)e.write_shift(4,0);else{for(;n<4;++n)e.write_shift(4,0);for(;n<12;++n)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function X4(t,e){var r=t.l+e,n=t.read_shift(2),i=t.read_shift(2);return t.l=r,{ixfe:n,numFmtId:i}}function kd(t,e,r){r||(r=Ee(16)),r.write_shift(2,e||0),r.write_shift(2,t.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function bo(t,e){return e||(e=Ee(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var Y4=Oi;function K4(t,e){return e||(e=Ee(51)),e.write_shift(1,0),bo(null,e),bo(null,e),bo(null,e),bo(null,e),bo(null,e),e.length>e.l?e.slice(0,e.l):e}function $4(t,e){return e||(e=Ee(52)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,0),e.write_shift(1,0),lf(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}function J4(t,e,r){var n=Ee(2052);return n.write_shift(4,t),lf(e,n),lf(r,n),n.length>n.l?n.slice(0,n.l):n}function Z4(t,e){if(e){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)e[i]!=null&&++r}),r!=0&&(Oe(t,615,mi(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)e[i]!=null&&Oe(t,44,W4(i,e[i]))}),Oe(t,616))}}function Q4(t){var e=1;Oe(t,611,mi(e)),Oe(t,43,z4({sz:12,color:{theme:1},name:"Calibri",family:2})),Oe(t,612)}function e3(t){var e=2;Oe(t,603,mi(e)),Oe(t,45,d1({patternType:"none"})),Oe(t,45,d1({patternType:"gray125"})),Oe(t,604)}function t3(t){var e=1;Oe(t,613,mi(e)),Oe(t,46,K4()),Oe(t,614)}function r3(t){var e=1;Oe(t,626,mi(e)),Oe(t,47,kd({numFmtId:0},65535)),Oe(t,627)}function n3(t,e){Oe(t,617,mi(e.length)),e.forEach(function(r){Oe(t,47,kd(r,0))}),Oe(t,618)}function i3(t){var e=1;Oe(t,619,mi(e)),Oe(t,48,$4({xfId:0,name:"Normal"})),Oe(t,620)}function a3(t){var e=0;Oe(t,505,mi(e)),Oe(t,506)}function s3(t){var e=0;Oe(t,508,J4(e,"TableStyleMedium9","PivotStyleMedium4")),Oe(t,509)}function o3(t,e){var r=Nn();return Oe(r,278),Z4(r,t.SSF),Q4(r),e3(r),t3(r),r3(r),n3(r,e.cellXfs),i3(r),a3(r),s3(r),Oe(r,279),r.end()}function Pd(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var r=[Mr];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function f3(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:vn(t)}}function l3(t){var e=Ee(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),$r(t.name,e),e.slice(0,e.l)}function h3(t){for(var e=[],r=t.read_shift(4);r-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}function u3(t){var e=Ee(4+8*t.length);e.write_shift(4,t.length);for(var r=0;r<t.length;++r)e.write_shift(4,t[r][0]),e.write_shift(4,t[r][1]);return e}function c3(t,e){var r=Ee(8+2*e.length);return r.write_shift(4,t),$r(e,r),r.slice(0,r.l)}function d3(t){return t.l+=4,t.read_shift(4)!=0}function p3(t,e){var r=Ee(8);return r.write_shift(4,t),r.write_shift(4,1),r}function g3(){var t=Nn();return Oe(t,332),Oe(t,334,mi(1)),Oe(t,335,l3({name:"XLDAPR",version:12e4,flags:3496657072})),Oe(t,336),Oe(t,339,c3(1,"XLDAPR")),Oe(t,52),Oe(t,35,mi(514)),Oe(t,4096,mi(0)),Oe(t,4097,ei(1)),Oe(t,36),Oe(t,53),Oe(t,340),Oe(t,337,p3(1)),Oe(t,51,u3([[1,0]])),Oe(t,338),Oe(t,333),t.end()}function Od(){var t=[Mr];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
116
- <metadataTypes count="1">
117
- <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
118
- </metadataTypes>
119
- <futureMetadata name="XLDAPR" count="1">
120
- <bk>
121
- <extLst>
122
- <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
123
- <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
124
- </ext>
125
- </extLst>
126
- </bk>
127
- </futureMetadata>
128
- <cellMetadata count="1">
129
- <bk>
130
- <rc t="1" v="0"/>
131
- </bk>
132
- </cellMetadata>
133
- </metadata>`),t.join("")}function v3(t){var e={};e.i=t.read_shift(4);var r={};r.r=t.read_shift(4),r.c=t.read_shift(4),e.r=Qt(r);var n=t.read_shift(1);return n&2&&(e.l="1"),n&8&&(e.a="1"),e}var Ps=1024;function Id(t,e){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[Ve("xml",null,{"xmlns:v":Wn.v,"xmlns:o":Wn.o,"xmlns:x":Wn.x,"xmlns:mv":Wn.mv}).replace(/\/>/,">"),Ve("o:shapelayout",Ve("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Ve("v:shapetype",[Ve("v:stroke",null,{joinstyle:"miter"}),Ve("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Ps<t*1e3;)Ps+=1e3;return e.forEach(function(a){var s=Kr(a[0]),o={color2:"#BEFF82",type:"gradient"};o.type=="gradient"&&(o.angle="-180");var f=o.type=="gradient"?Ve("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=Ve("v:fill",f,o),u={on:"t",obscured:"t"};++Ps,i=i.concat(["<v:shape"+Uo({id:"_x0000_s"+Ps,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,Ve("v:shadow",null,u),Ve("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",sn("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),sn("x:AutoFill","False"),sn("x:Row",String(s.r)),sn("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function Dd(t){var e=[Mr,Ve("comments",null,{xmlns:zs[0]})],r=[];return e.push("<authors>"),t.forEach(function(n){n[1].forEach(function(i){var a=Zt(i.a);r.indexOf(a)==-1&&(r.push(a),e.push("<author>"+a+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),e.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(f){f.a&&(i=r.indexOf(Zt(f.a))),a.push(f.t||"")}),e.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)e.push(sn("t",Zt(a[0]||"")));else{for(var s=`Comment:
134
- `+a[0]+`
135
- `,o=1;o<a.length;++o)s+=`Reply:
136
- `+a[o]+`
137
- `;e.push(sn("t",Zt(s)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function m3(t,e,r){var n=[Mr,Ve("ThreadedComments",null,{xmlns:Yr.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&e.indexOf(s.a)==-1&&e.push(s.a);var f={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};o==0?a=f.id:f.parentId=a,s.ID=f.id,s.a&&(f.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(s.a)).slice(-12)+"}"),n.push(Ve("threadedComment",sn("text",s.t||""),f))})}),n.push("</ThreadedComments>"),n.join("")}function x3(t){var e=[Mr,Ve("personList",null,{xmlns:Yr.TCMNT,"xmlns:x":zs[0]}).replace(/[\/]>/,">")];return t.forEach(function(r,n){e.push(Ve("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),e.push("</personList>"),e.join("")}function w3(t){var e={};e.iauthor=t.read_shift(4);var r=us(t);return e.rfx=r.s,e.ref=Qt(r.s),t.l+=16,e}function _3(t,e){return e==null&&(e=Ee(36)),e.write_shift(4,t[1].iauthor),Vs(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var y3=vn;function b3(t){return $r(t.slice(0,54))}function A3(t){var e=Nn(),r=[];return Oe(e,628),Oe(e,630),t.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),Oe(e,632,b3(i.a)))})}),Oe(e,631),Oe(e,633),t.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:Kr(n[0]),e:Kr(n[0])};Oe(e,635,_3([a,i])),i.t&&i.t.length>0&&Oe(e,637,Ex(i)),Oe(e,636),delete i.iauthor})}),Oe(e,634),Oe(e,629),e.end()}function S3(t,e){e.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&tr.utils.cfb_add(t,i,e.FileIndex[n].content)}})}var Rd=["xlsb","xlsm","xlam","biff8","xla"],E3=(function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function r(n,i,a,s){var o=!1,f=!1;a.length==0?f=!0:a.charAt(0)=="["&&(f=!0,a=a.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var l=a.length>0?parseInt(a,10)|0:0,u=s.length>0?parseInt(s,10)|0:0;return o?u+=e.c:--u,f?l+=e.r:--l,i+(o?"":"$")+gn(u)+(f?"":"$")+on(l)}return function(i,a){return e=a,i.replace(t,r)}})(),Sh=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Eh=(function(){return function(e,r){return e.replace(Sh,function(n,i,a,s,o,f){var l=xh(s)-(a?0:r.c),u=mh(f)-(o?0:r.r),p=u==0?"":o?u+1:"["+u+"]",v=l==0?"":a?l+1:"["+l+"]";return i+"R"+p+"C"+v})}})();function T3(t,e){return t.replace(Sh,function(r,n,i,a,s,o){return n+(i=="$"?i+a:gn(xh(a)+e.c))+(s=="$"?s+o:on(mh(o)+e.r))})}function N3(t){return t.length!=1}function Rr(t){t.l+=1}function Pa(t,e){var r=t.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function Bd(t,e,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Md(t);r.biff==12&&(n=4)}var i=t.read_shift(n),a=t.read_shift(n),s=Pa(t),o=Pa(t);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function Md(t){var e=Pa(t),r=Pa(t),n=t.read_shift(1),i=t.read_shift(1);return{s:{r:e[0],c:n,cRel:e[1],rRel:e[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function L3(t,e,r){if(r.biff<8)return Md(t);var n=t.read_shift(r.biff==12?4:2),i=t.read_shift(r.biff==12?4:2),a=Pa(t),s=Pa(t);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Ud(t,e,r){if(r&&r.biff>=2&&r.biff<=5)return F3(t);var n=t.read_shift(r&&r.biff==12?4:2),i=Pa(t);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function F3(t){var e=Pa(t),r=t.read_shift(1);return{r:e[0],c:r,cRel:e[1],rRel:e[2]}}function C3(t){var e=t.read_shift(2),r=t.read_shift(2);return{r:e,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function k3(t,e,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return P3(t);var i=t.read_shift(n>=12?4:2),a=t.read_shift(2),s=(a&16384)>>14,o=(a&32768)>>15;if(a&=16383,o==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:o}}function P3(t){var e=t.read_shift(2),r=t.read_shift(1),n=(e&32768)>>15,i=(e&16384)>>14;return e&=16383,n==1&&e>=8192&&(e=e-16384),i==1&&r>=128&&(r=r-256),{r:e,c:r,cRel:i,rRel:n}}function O3(t,e,r){var n=(t[t.l++]&96)>>5,i=Bd(t,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function I3(t,e,r){var n=(t[t.l++]&96)>>5,i=t.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:t.l+=12,a=6;break;case 12:a=12;break}var s=Bd(t,a,r);return[n,i,s]}function D3(t,e,r){var n=(t[t.l++]&96)>>5;return t.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function R3(t,e,r){var n=(t[t.l++]&96)>>5,i=t.read_shift(2),a=8;if(r)switch(r.biff){case 5:t.l+=12,a=6;break;case 12:a=12;break}return t.l+=a,[n,i]}function B3(t,e,r){var n=(t[t.l++]&96)>>5,i=L3(t,e-1,r);return[n,i]}function M3(t,e,r){var n=(t[t.l++]&96)>>5;return t.l+=r.biff==2?6:r.biff==12?14:7,[n]}function p1(t){var e=t[t.l+1]&1,r=1;return t.l+=4,[e,r]}function U3(t,e,r){t.l+=2;for(var n=t.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(t.read_shift(r&&r.biff==2?1:2));return i}function j3(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(r&&r.biff==2?1:2)]}function H3(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(r&&r.biff==2?1:2)]}function W3(t){var e=t[t.l+1]&255?1:0;return t.l+=2,[e,t.read_shift(2)]}function q3(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=r&&r.biff==2?3:4,[n]}function jd(t){var e=t.read_shift(1),r=t.read_shift(1);return[e,r]}function z3(t){return t.read_shift(2),jd(t)}function G3(t){return t.read_shift(2),jd(t)}function V3(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var i=Ud(t,0,r);return[n,i]}function X3(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var i=k3(t,0,r);return[n,i]}function Y3(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var i=t.read_shift(2);r&&r.biff==5&&(t.l+=12);var a=Ud(t,0,r);return[n,i,a]}function K3(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var i=t.read_shift(r&&r.biff<=3?1:2);return[Kw[i],qd[i],n]}function $3(t,e,r){var n=t[t.l++],i=t.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,t.read_shift(1)]:J3(t);return[i,(a[0]===0?qd:Yw)[a[1]]]}function J3(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function Z3(t,e,r){t.l+=r&&r.biff==2?3:4}function Q3(t,e,r){if(t.l++,r&&r.biff==12)return[t.read_shift(4,"i"),0];var n=t.read_shift(2),i=t.read_shift(r&&r.biff==2?1:2);return[n,i]}function ew(t){return t.l++,Vo[t.read_shift(1)]}function tw(t){return t.l++,t.read_shift(2)}function rw(t){return t.l++,t.read_shift(1)!==0}function nw(t){return t.l++,Xs(t)}function iw(t,e,r){return t.l++,bd(t,e-1,r)}function aw(t,e){var r=[t.read_shift(1)];if(e==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Yx(t,1)?"TRUE":"FALSE",e!=12&&(t.l+=7);break;case 37:case 16:r[1]=Vo[t[t.l]],t.l+=e==12?4:8;break;case 0:t.l+=8;break;case 1:r[1]=Xs(t);break;case 2:r[1]=Zx(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function sw(t,e,r){for(var n=t.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?us:t4)(t));return i}function ow(t,e,r){var n=0,i=0;r.biff==12?(n=t.read_shift(4),i=t.read_shift(4)):(i=1+t.read_shift(1),n=1+t.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=aw(t,r.biff);return s}function fw(t,e,r){var n=t.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=t.read_shift(i);switch(r.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[n,0,a]}function lw(t,e,r){if(r.biff==5)return hw(t);var n=t.read_shift(1)>>>5&3,i=t.read_shift(2),a=t.read_shift(4);return[n,i,a]}function hw(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[e,r,n]}function uw(t,e,r){var n=t.read_shift(1)>>>5&3;t.l+=r&&r.biff==2?3:4;var i=t.read_shift(r&&r.biff==2?1:2);return[n,i]}function cw(t,e,r){var n=t.read_shift(1)>>>5&3,i=t.read_shift(r&&r.biff==2?1:2);return[n,i]}function dw(t,e,r){var n=t.read_shift(1)>>>5&3;return t.l+=4,r.biff<8&&t.l--,r.biff==12&&(t.l+=2),[n]}function pw(t,e,r){var n=(t[t.l++]&96)>>5,i=t.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return t.l+=a,[n,i]}var gw=Oi,vw=Oi,mw=Oi;function Xo(t,e,r){return t.l+=2,[C3(t)]}function Th(t){return t.l+=6,[]}var xw=Xo,ww=Th,_w=Th,yw=Xo;function Hd(t){return t.l+=2,[_d(t),t.read_shift(2)&1]}var bw=Xo,Aw=Hd,Sw=Th,Ew=Xo,Tw=Xo,Nw=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Lw(t){t.l+=2;var e=t.read_shift(2),r=t.read_shift(2),n=t.read_shift(4),i=t.read_shift(2),a=t.read_shift(2),s=Nw[r>>2&31];return{ixti:e,coltype:r&3,rt:s,idx:n,c:i,C:a}}function Fw(t){return t.l+=2,[t.read_shift(4)]}function Cw(t,e,r){return t.l+=5,t.l+=2,t.l+=r.biff==2?1:4,["PTGSHEET"]}function kw(t,e,r){return t.l+=r.biff==2?4:5,["PTGENDSHEET"]}function Pw(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function Ow(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function Iw(t){return t.l+=4,[0,0]}var g1={1:{n:"PtgExp",f:Q3},2:{n:"PtgTbl",f:mw},3:{n:"PtgAdd",f:Rr},4:{n:"PtgSub",f:Rr},5:{n:"PtgMul",f:Rr},6:{n:"PtgDiv",f:Rr},7:{n:"PtgPower",f:Rr},8:{n:"PtgConcat",f:Rr},9:{n:"PtgLt",f:Rr},10:{n:"PtgLe",f:Rr},11:{n:"PtgEq",f:Rr},12:{n:"PtgGe",f:Rr},13:{n:"PtgGt",f:Rr},14:{n:"PtgNe",f:Rr},15:{n:"PtgIsect",f:Rr},16:{n:"PtgUnion",f:Rr},17:{n:"PtgRange",f:Rr},18:{n:"PtgUplus",f:Rr},19:{n:"PtgUminus",f:Rr},20:{n:"PtgPercent",f:Rr},21:{n:"PtgParen",f:Rr},22:{n:"PtgMissArg",f:Rr},23:{n:"PtgStr",f:iw},26:{n:"PtgSheet",f:Cw},27:{n:"PtgEndSheet",f:kw},28:{n:"PtgErr",f:ew},29:{n:"PtgBool",f:rw},30:{n:"PtgInt",f:tw},31:{n:"PtgNum",f:nw},32:{n:"PtgArray",f:M3},33:{n:"PtgFunc",f:K3},34:{n:"PtgFuncVar",f:$3},35:{n:"PtgName",f:fw},36:{n:"PtgRef",f:V3},37:{n:"PtgArea",f:O3},38:{n:"PtgMemArea",f:uw},39:{n:"PtgMemErr",f:gw},40:{n:"PtgMemNoMem",f:vw},41:{n:"PtgMemFunc",f:cw},42:{n:"PtgRefErr",f:dw},43:{n:"PtgAreaErr",f:D3},44:{n:"PtgRefN",f:X3},45:{n:"PtgAreaN",f:B3},46:{n:"PtgMemAreaN",f:Pw},47:{n:"PtgMemNoMemN",f:Ow},57:{n:"PtgNameX",f:lw},58:{n:"PtgRef3d",f:Y3},59:{n:"PtgArea3d",f:I3},60:{n:"PtgRefErr3d",f:pw},61:{n:"PtgAreaErr3d",f:R3},255:{}},Dw={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Rw={1:{n:"PtgElfLel",f:Hd},2:{n:"PtgElfRw",f:Ew},3:{n:"PtgElfCol",f:xw},6:{n:"PtgElfRwV",f:Tw},7:{n:"PtgElfColV",f:yw},10:{n:"PtgElfRadical",f:bw},11:{n:"PtgElfRadicalS",f:Sw},13:{n:"PtgElfColS",f:ww},15:{n:"PtgElfColSV",f:_w},16:{n:"PtgElfRadicalLel",f:Aw},25:{n:"PtgList",f:Lw},29:{n:"PtgSxName",f:Fw},255:{}},Bw={0:{n:"PtgAttrNoop",f:Iw},1:{n:"PtgAttrSemi",f:q3},2:{n:"PtgAttrIf",f:H3},4:{n:"PtgAttrChoose",f:U3},8:{n:"PtgAttrGoto",f:j3},16:{n:"PtgAttrSum",f:Z3},32:{n:"PtgAttrBaxcel",f:p1},33:{n:"PtgAttrBaxcel",f:p1},64:{n:"PtgAttrSpace",f:z3},65:{n:"PtgAttrSpaceSemi",f:G3},128:{n:"PtgAttrIfError",f:W3},255:{}};function Mw(t,e,r,n){if(n.biff<8)return Oi(t,e);for(var i=t.l+e,a=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=ow(t,0,n),a.push(r[s][1]);break;case"PtgMemArea":r[s][2]=sw(t,r[s][1],n),a.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=t.read_shift(4),a.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return e=i-t.l,e!==0&&a.push(Oi(t,e)),a}function Uw(t,e,r){for(var n=t.l+e,i,a,s=[];n!=t.l;)e=n-t.l,a=t[t.l],i=g1[a]||g1[Dw[a]],(a===24||a===25)&&(i=(a===24?Rw:Bw)[t[t.l+1]]),!i||!i.f?Oi(t,e):s.push([i.n,i.f(t,e,r)]);return s}function jw(t){for(var e=[],r=0;r<t.length;++r){for(var n=t[r],i=[],a=0;a<n.length;++a){var s=n[a];s?s[0]===2?i.push('"'+s[1].replace(/"/g,'""')+'"'):i.push(s[1]):i.push("")}e.push(i.join(","))}return e.join(";")}var Hw={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Ww(t,e){if(!t&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function Wd(t,e,r){if(!t)return"SH33TJSERR0";if(r.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[e];if(r.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":t.XTI[e-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(t[n[0]][0]){case 357:return i=n[1]==-1?"#REF":t.SheetNames[n[1]],n[1]==n[2]?i:i+":"+t.SheetNames[n[2]];case 358:return r.SID!=null?t.SheetNames[r.SID]:"SH33TJSSAME"+t[n[0]][0];default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return t[n[0]][0][3]?(i=n[1]==-1?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function v1(t,e,r){var n=Wd(t,e,r);return n=="#REF"?n:Ww(n,r)}function Ws(t,e,r,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0}},o=[],f,l,u,p=0,v=0,c,w="";if(!t[0]||!t[0][0])return"";for(var m=-1,y="",A=0,D=t[0].length;A<D;++A){var P=t[0][A];switch(P[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(f=o.pop(),l=o.pop(),m>=0){switch(t[0][m][1][0]){case 0:y=br(" ",t[0][m][1][1]);break;case 1:y=br("\r",t[0][m][1][1]);break;default:if(y="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}l=l+y,m=-1}o.push(l+Hw[P[0]]+f);break;case"PtgIsect":f=o.pop(),l=o.pop(),o.push(l+" "+f);break;case"PtgUnion":f=o.pop(),l=o.pop(),o.push(l+","+f);break;case"PtgRange":f=o.pop(),l=o.pop(),o.push(l+":"+f);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Co(P[1][1],s,i),o.push(ko(u,a));break;case"PtgRefN":u=r?Co(P[1][1],r,i):P[1][1],o.push(ko(u,a));break;case"PtgRef3d":p=P[1][1],u=Co(P[1][2],s,i),w=v1(n,p,i),o.push(w+"!"+ko(u,a));break;case"PtgFunc":case"PtgFuncVar":var B=P[1][0],re=P[1][1];B||(B=0),B&=127;var ue=B==0?[]:o.slice(-B);o.length-=B,re==="User"&&(re=ue.shift()),o.push(re+"("+ue.join(",")+")");break;case"PtgBool":o.push(P[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(P[1]);break;case"PtgNum":o.push(String(P[1]));break;case"PtgStr":o.push('"'+P[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(P[1]);break;case"PtgAreaN":c=e1(P[1][1],r?{s:r}:s,i),o.push(Ol(c,i));break;case"PtgArea":c=e1(P[1][1],s,i),o.push(Ol(c,i));break;case"PtgArea3d":p=P[1][1],c=P[1][2],w=v1(n,p,i),o.push(w+"!"+Ol(c,i));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":v=P[1][2];var V=(n.names||[])[v-1]||(n[0]||[])[v],z=V?V.Name:"SH33TJSNAME"+String(v);z&&z.slice(0,6)=="_xlfn."&&!i.xlfn&&(z=z.slice(6)),o.push(z);break;case"PtgNameX":var k=P[1][1];v=P[1][2];var ee;if(i.biff<=5)k<0&&(k=-k),n[k]&&(ee=n[k][v]);else{var S="";if(((n[k]||[])[0]||[])[0]==14849||(((n[k]||[])[0]||[])[0]==1025?n[k][v]&&n[k][v].itab>0&&(S=n.SheetNames[n[k][v].itab-1]+"!"):S=n.SheetNames[v-1]+"!"),n[k]&&n[k][v])S+=n[k][v].Name;else if(n[0]&&n[0][v])S+=n[0][v].Name;else{var I=(Wd(n,k,i)||"").split(";;");I[v-1]?S=I[v-1]:S+="SH33TJSERRX"}o.push(S);break}ee||(ee={Name:"SH33TJSERRY"}),o.push(ee.Name);break;case"PtgParen":var G="(",te=")";if(m>=0){switch(y="",t[0][m][1][0]){case 2:G=br(" ",t[0][m][1][1])+G;break;case 3:G=br("\r",t[0][m][1][1])+G;break;case 4:te=br(" ",t[0][m][1][1])+te;break;case 5:te=br("\r",t[0][m][1][1])+te;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}m=-1}o.push(G+o.pop()+te);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":u={c:P[1][1],r:P[1][0]};var he={c:r.c,r:r.r};if(n.sharedf[Qt(u)]){var be=n.sharedf[Qt(u)];o.push(Ws(be,s,he,n,i))}else{var ye=!1;for(f=0;f!=n.arrayf.length;++f)if(l=n.arrayf[f],!(u.c<l[0].s.c||u.c>l[0].e.c)&&!(u.r<l[0].s.r||u.r>l[0].e.r)){o.push(Ws(l[1],s,he,n,i)),ye=!0;break}ye||o.push(P[1])}break;case"PtgArray":o.push("{"+jw(P[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=A;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+P[1].idx+"[#"+P[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(P));default:throw new Error("Unrecognized Formula Token: "+String(P))}var pe=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&m>=0&&pe.indexOf(t[0][A][0])==-1){P=t[0][m];var Ae=!0;switch(P[1][0]){case 4:Ae=!1;case 0:y=br(" ",P[1][1]);break;case 5:Ae=!1;case 1:y=br("\r",P[1][1]);break;default:if(y="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+P[1][0])}o.push((Ae?y:"")+o.pop()+(Ae?"":y)),m=-1}}if(o.length>1&&i.WTF)throw new Error("bad formula stack");return o[0]}function qw(t){if(t==null){var e=Ee(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}else if(typeof t=="number")return ns(t);return ns(0)}function zw(t,e,r,n,i){var a=is(e,r,i),s=qw(t.v),o=Ee(6),f=33;o.write_shift(2,f),o.write_shift(4,0);for(var l=Ee(t.bf.length),u=0;u<t.bf.length;++u)l[u]=t.bf[u];var p=an([a,s,o,l]);return p}function Ef(t,e,r){var n=t.read_shift(4),i=Uw(t,n,r),a=t.read_shift(4),s=a>0?Mw(t,a,i,r):null;return[i,s]}var Gw=Ef,Tf=Ef,Vw=Ef,Xw=Ef,Yw={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},qd={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Kw={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function $w(t){var e="of:="+t.replace(Sh,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function Jw(t){return t.replace(/\./,"!")}var Po=typeof Map<"u";function Nh(t,e,r){var n=0,i=t.length;if(r){if(Po?r.has(e):Object.prototype.hasOwnProperty.call(r,e)){for(var a=Po?r.get(e):r[e];n<a.length;++n)if(t[a[n]].t===e)return t.Count++,a[n]}}else for(;n<i;++n)if(t[n].t===e)return t.Count++,n;return t[i]={t:e},t.Count++,t.Unique++,r&&(Po?(r.has(e)||r.set(e,[]),r.get(e).push(i)):(Object.prototype.hasOwnProperty.call(r,e)||(r[e]=[]),r[e].push(i))),i}function Nf(t,e){var r={min:t+1,max:t+1},n=-1;return e.MDW&&(na=e.MDW),e.width!=null?r.customWidth=1:e.wpx!=null?n=df(e.wpx):e.wch!=null&&(n=e.wch),n>-1?(r.width=nh(n),r.customWidth=1):e.width!=null&&(r.width=e.width),e.hidden&&(r.hidden=!0),e.level!=null&&(r.outlineLevel=r.level=e.level),r}function zd(t,e){if(t){var r=[.7,.7,.75,.75,.3,.3];t.left==null&&(t.left=r[0]),t.right==null&&(t.right=r[1]),t.top==null&&(t.top=r[2]),t.bottom==null&&(t.bottom=r[3]),t.header==null&&(t.header=r[4]),t.footer==null&&(t.footer=r[5])}}function Ia(t,e,r){var n=r.revssf[e.z!=null?e.z:"General"],i=60,a=t.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){U2(e.z,i),r.ssf[i]=e.z,r.revssf[e.z]=n=i;break}}for(i=0;i!=a;++i)if(t[i].numFmtId===n)return i;return t[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function Zw(t,e,r){if(t&&t["!ref"]){var n=cr(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+t["!ref"])}}function Qw(t){if(t.length===0)return"";for(var e='<mergeCells count="'+t.length+'">',r=0;r!=t.length;++r)e+='<mergeCell ref="'+Br(t[r])+'"/>';return e+"</mergeCells>"}function e_(t,e,r,n,i){var a=!1,s={},o=null;if(n.bookType!=="xlsx"&&e.vbaraw){var f=e.SheetNames[r];try{e.Workbook&&(f=e.Workbook.Sheets[r].CodeName||f)}catch{}a=!0,s.codeName=Mo(Zt(f))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),o=(o||"")+Ve("outlinePr",null,l)}!a&&!o||(i[i.length]=Ve("sheetPr",o,s))}var t_=["objects","scenarios","selectLockedCells","selectUnlockedCells"],r_=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function n_(t){var e={sheet:1};return t_.forEach(function(r){t[r]!=null&&t[r]&&(e[r]="1")}),r_.forEach(function(r){t[r]!=null&&!t[r]&&(e[r]="0")}),t.password&&(e.password=Nd(t.password).toString(16).toUpperCase()),Ve("sheetProtection",null,e)}function i_(t){return zd(t),Ve("pageMargins",null,t)}function a_(t,e){for(var r=["<cols>"],n,i=0;i!=e.length;++i)(n=e[i])&&(r[r.length]=Ve("col",null,Nf(i,n)));return r[r.length]="</cols>",r.join("")}function s_(t,e,r,n){var i=typeof t.ref=="string"?t.ref:Br(t.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=Gn(i);s.s.r==s.e.r&&(s.e.r=Gn(e["!ref"]).e.r,i=Br(s));for(var o=0;o<a.length;++o){var f=a[o];if(f.Name=="_xlnm._FilterDatabase"&&f.Sheet==n){f.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),Ve("autoFilter",null,{ref:i})}function o_(t,e,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ve("sheetViews",Ve("sheetView",null,i),{})}function f_(t,e,r,n){if(t.c&&r["!comments"].push([e,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var i="",a=t.t,s=t.v;if(t.t!=="z")switch(t.t){case"b":i=t.v?"1":"0";break;case"n":i=""+t.v;break;case"e":i=Vo[t.v];break;case"d":n&&n.cellDates?i=An(t.v,-1).toISOString():(t=Fn(t),t.t="n",i=""+(t.v=Ln(An(t.v)))),typeof t.z>"u"&&(t.z=Ar[14]);break;default:i=t.v;break}var o=sn("v",Zt(i)),f={r:e},l=Ia(n.cellXfs,t,n);switch(l!==0&&(f.s=l),t.t){case"n":break;case"d":f.t="d";break;case"b":f.t="b";break;case"e":f.t="e";break;case"z":break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){o=sn("v",""+Nh(n.Strings,t.v,n.revStrings)),f.t="s";break}f.t="str";break}if(t.t!=a&&(t.t=a,t.v=s),typeof t.f=="string"&&t.f){var u=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;o=Ve("f",Zt(t.f),u)+(t.v!=null?o:"")}return t.l&&r["!links"].push([e,t.l]),t.D&&(f.cm=1),Ve("c",o,f)}function l_(t,e,r,n){var i=[],a=[],s=cr(t["!ref"]),o="",f,l="",u=[],p=0,v=0,c=t["!rows"],w=Array.isArray(t),m={r:l},y,A=-1;for(v=s.s.c;v<=s.e.c;++v)u[v]=gn(v);for(p=s.s.r;p<=s.e.r;++p){for(a=[],l=on(p),v=s.s.c;v<=s.e.c;++v){f=u[v]+l;var D=w?(t[p]||[])[v]:t[f];D!==void 0&&(o=f_(D,f,t,e))!=null&&a.push(o)}(a.length>0||c&&c[p])&&(m={r:l},c&&c[p]&&(y=c[p],y.hidden&&(m.hidden=1),A=-1,y.hpx?A=pf(y.hpx):y.hpt&&(A=y.hpt),A>-1&&(m.ht=A,m.customHeight=1),y.level&&(m.outlineLevel=y.level)),i[i.length]=Ve("row",a.join(""),m))}if(c)for(;p<c.length;++p)c&&c[p]&&(m={r:p+1},y=c[p],y.hidden&&(m.hidden=1),A=-1,y.hpx?A=pf(y.hpx):y.hpt&&(A=y.hpt),A>-1&&(m.ht=A,m.customHeight=1),y.level&&(m.outlineLevel=y.level),i[i.length]=Ve("row","",m));return i.join("")}function Gd(t,e,r,n){var i=[Mr,Ve("worksheet",null,{xmlns:zs[0],"xmlns:r":Yr.r})],a=r.SheetNames[t],s=0,o="",f=r.Sheets[a];f==null&&(f={});var l=f["!ref"]||"A1",u=cr(l);if(u.e.c>16383||u.e.r>1048575){if(e.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),l=Br(u)}n||(n={}),f["!comments"]=[];var p=[];e_(f,r,t,e,i),i[i.length]=Ve("dimension",null,{ref:l}),i[i.length]=o_(f,e,t,r),e.sheetFormat&&(i[i.length]=Ve("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),f["!cols"]!=null&&f["!cols"].length>0&&(i[i.length]=a_(f,f["!cols"])),i[s=i.length]="<sheetData/>",f["!links"]=[],f["!ref"]!=null&&(o=l_(f,e),o.length>0&&(i[i.length]=o)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),f["!protect"]&&(i[i.length]=n_(f["!protect"])),f["!autofilter"]!=null&&(i[i.length]=s_(f["!autofilter"],f,r,t)),f["!merges"]!=null&&f["!merges"].length>0&&(i[i.length]=Qw(f["!merges"]));var v=-1,c,w=-1;return f["!links"].length>0&&(i[i.length]="<hyperlinks>",f["!links"].forEach(function(m){m[1].Target&&(c={ref:m[0]},m[1].Target.charAt(0)!="#"&&(w=Jt(n,-1,Zt(m[1].Target).replace(/#.*$/,""),qt.HLINK),c["r:id"]="rId"+w),(v=m[1].Target.indexOf("#"))>-1&&(c.location=Zt(m[1].Target.slice(v+1))),m[1].Tooltip&&(c.tooltip=Zt(m[1].Tooltip)),i[i.length]=Ve("hyperlink",null,c))}),i[i.length]="</hyperlinks>"),delete f["!links"],f["!margins"]!=null&&(i[i.length]=i_(f["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(i[i.length]=sn("ignoredErrors",Ve("ignoredError",null,{numberStoredAsText:1,sqref:l}))),p.length>0&&(w=Jt(n,-1,"../drawings/drawing"+(t+1)+".xml",qt.DRAW),i[i.length]=Ve("drawing",null,{"r:id":"rId"+w}),f["!drawing"]=p),f["!comments"].length>0&&(w=Jt(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",qt.VML),i[i.length]=Ve("legacyDrawing",null,{"r:id":"rId"+w}),f["!legacy"]=w),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function h_(t,e){var r={},n=t.l+e;r.r=t.read_shift(4),t.l+=4;var i=t.read_shift(2);t.l+=1;var a=t.read_shift(1);return t.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}function u_(t,e,r){var n=Ee(145),i=(r["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var a=320;i.hpx?a=pf(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,f=n.l;n.l+=4;for(var l={r:t,c:0},u=0;u<16;++u)if(!(e.s.c>u+1<<10||e.e.c<u<<10)){for(var p=-1,v=-1,c=u<<10;c<u+1<<10;++c){l.c=c;var w=Array.isArray(r)?(r[l.r]||[])[l.c]:r[Qt(l)];w&&(p<0&&(p=c),v=c)}p<0||(++o,n.write_shift(4,p),n.write_shift(4,v))}var m=n.l;return n.l=f,n.write_shift(4,o),n.l=m,n.length>n.l?n.slice(0,n.l):n}function c_(t,e,r,n){var i=u_(n,r,e);(i.length>17||(e["!rows"]||[])[n])&&Oe(t,0,i)}var d_=us,p_=Vs;function g_(){}function v_(t,e){var r={},n=t[t.l];return++t.l,r.above=!(n&64),r.left=!(n&128),t.l+=18,r.name=Tx(t),r}function m_(t,e,r){r==null&&(r=Ee(84+4*t.length));var n=192;e&&(e.above&&(n&=-65),e.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return hf({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),sd(t,r),r.slice(0,r.l)}function x_(t){var e=ri(t);return[e]}function w_(t,e,r){return r==null&&(r=Ee(8)),fs(e,r)}function __(t){var e=ls(t);return[e]}function y_(t,e,r){return r==null&&(r=Ee(4)),hs(e,r)}function b_(t){var e=ri(t),r=t.read_shift(1);return[e,r,"b"]}function A_(t,e,r){return r==null&&(r=Ee(9)),fs(e,r),r.write_shift(1,t.v?1:0),r}function S_(t){var e=ls(t),r=t.read_shift(1);return[e,r,"b"]}function E_(t,e,r){return r==null&&(r=Ee(5)),hs(e,r),r.write_shift(1,t.v?1:0),r}function T_(t){var e=ri(t),r=t.read_shift(1);return[e,r,"e"]}function N_(t,e,r){return r==null&&(r=Ee(9)),fs(e,r),r.write_shift(1,t.v),r}function L_(t){var e=ls(t),r=t.read_shift(1);return[e,r,"e"]}function F_(t,e,r){return r==null&&(r=Ee(8)),hs(e,r),r.write_shift(1,t.v),r.write_shift(2,0),r.write_shift(1,0),r}function C_(t){var e=ri(t),r=t.read_shift(4);return[e,r,"s"]}function k_(t,e,r){return r==null&&(r=Ee(12)),fs(e,r),r.write_shift(4,e.v),r}function P_(t){var e=ls(t),r=t.read_shift(4);return[e,r,"s"]}function O_(t,e,r){return r==null&&(r=Ee(8)),hs(e,r),r.write_shift(4,e.v),r}function I_(t){var e=ri(t),r=Xs(t);return[e,r,"n"]}function D_(t,e,r){return r==null&&(r=Ee(16)),fs(e,r),ns(t.v,r),r}function R_(t){var e=ls(t),r=Xs(t);return[e,r,"n"]}function B_(t,e,r){return r==null&&(r=Ee(12)),hs(e,r),ns(t.v,r),r}function M_(t){var e=ri(t),r=od(t);return[e,r,"n"]}function U_(t,e,r){return r==null&&(r=Ee(12)),fs(e,r),fd(t.v,r),r}function j_(t){var e=ls(t),r=od(t);return[e,r,"n"]}function H_(t,e,r){return r==null&&(r=Ee(8)),hs(e,r),fd(t.v,r),r}function W_(t){var e=ri(t),r=wh(t);return[e,r,"is"]}function q_(t){var e=ri(t),r=vn(t);return[e,r,"str"]}function z_(t,e,r){return r==null&&(r=Ee(12+4*t.v.length)),fs(e,r),$r(t.v,r),r.length>r.l?r.slice(0,r.l):r}function G_(t){var e=ls(t),r=vn(t);return[e,r,"str"]}function V_(t,e,r){return r==null&&(r=Ee(8+4*t.v.length)),hs(e,r),$r(t.v,r),r.length>r.l?r.slice(0,r.l):r}function X_(t,e,r){var n=t.l+e,i=ri(t);i.r=r["!row"];var a=t.read_shift(1),s=[i,a,"b"];if(r.cellFormula){t.l+=2;var o=Tf(t,n-t.l,r);s[3]=Ws(o,null,i,r.supbooks,r)}else t.l=n;return s}function Y_(t,e,r){var n=t.l+e,i=ri(t);i.r=r["!row"];var a=t.read_shift(1),s=[i,a,"e"];if(r.cellFormula){t.l+=2;var o=Tf(t,n-t.l,r);s[3]=Ws(o,null,i,r.supbooks,r)}else t.l=n;return s}function K_(t,e,r){var n=t.l+e,i=ri(t);i.r=r["!row"];var a=Xs(t),s=[i,a,"n"];if(r.cellFormula){t.l+=2;var o=Tf(t,n-t.l,r);s[3]=Ws(o,null,i,r.supbooks,r)}else t.l=n;return s}function $_(t,e,r){var n=t.l+e,i=ri(t);i.r=r["!row"];var a=vn(t),s=[i,a,"str"];if(r.cellFormula){t.l+=2;var o=Tf(t,n-t.l,r);s[3]=Ws(o,null,i,r.supbooks,r)}else t.l=n;return s}var J_=us,Z_=Vs;function Q_(t,e){return e==null&&(e=Ee(4)),e.write_shift(4,t),e}function ey(t,e){var r=t.l+e,n=us(t),i=_h(t),a=vn(t),s=vn(t),o=vn(t);t.l=r;var f={rfx:n,relId:i,loc:a,display:o};return s&&(f.Tooltip=s),f}function ty(t,e){var r=Ee(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));Vs({s:Kr(t[0]),e:Kr(t[0])},r),yh("rId"+e,r);var n=t[1].Target.indexOf("#"),i=n==-1?"":t[1].Target.slice(n+1);return $r(i||"",r),$r(t[1].Tooltip||"",r),$r("",r),r.slice(0,r.l)}function ry(){}function ny(t,e,r){var n=t.l+e,i=ld(t),a=t.read_shift(1),s=[i];if(s[2]=a,r.cellFormula){var o=Gw(t,n-t.l,r);s[1]=o}else t.l=n;return s}function iy(t,e,r){var n=t.l+e,i=us(t),a=[i];if(r.cellFormula){var s=Xw(t,n-t.l,r);a[1]=s,t.l=n}else t.l=n;return a}function ay(t,e,r){r==null&&(r=Ee(18));var n=Nf(t,e);r.write_shift(-4,t),r.write_shift(-4,t),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return e.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),e.level&&(i|=e.level<<8),r.write_shift(2,i),r}var Vd=["left","right","top","bottom","header","footer"];function sy(t){var e={};return Vd.forEach(function(r){e[r]=Xs(t)}),e}function oy(t,e){return e==null&&(e=Ee(48)),zd(t),Vd.forEach(function(r){ns(t[r],e)}),e}function fy(t){var e=t.read_shift(2);return t.l+=28,{RTL:e&32}}function ly(t,e,r){r==null&&(r=Ee(30));var n=924;return(((e||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function hy(t){var e=Ee(24);return e.write_shift(4,4),e.write_shift(4,1),Vs(t,e),e}function uy(t,e){return e==null&&(e=Ee(66)),e.write_shift(2,t.password?Nd(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?e.write_shift(4,t[r[0]]!=null&&!t[r[0]]?1:0):e.write_shift(4,t[r[0]]!=null&&t[r[0]]?0:1)}),e}function cy(){}function dy(){}function py(t,e,r,n,i,a,s){if(e.v===void 0)return!1;var o="";switch(e.t){case"b":o=e.v?"1":"0";break;case"d":e=Fn(e),e.z=e.z||Ar[14],e.v=Ln(An(e.v)),e.t="n";break;case"n":case"e":o=""+e.v;break;default:o=e.v;break}var f={r,c:n};switch(f.s=Ia(i.cellXfs,e,i),e.l&&a["!links"].push([Qt(f),e.l]),e.c&&a["!comments"].push([Qt(f),e.c]),e.t){case"s":case"str":return i.bookSST?(o=Nh(i.Strings,e.v,i.revStrings),f.t="s",f.v=o,s?Oe(t,18,O_(e,f)):Oe(t,7,k_(e,f))):(f.t="str",s?Oe(t,17,V_(e,f)):Oe(t,6,z_(e,f))),!0;case"n":return e.v==(e.v|0)&&e.v>-1e3&&e.v<1e3?s?Oe(t,13,H_(e,f)):Oe(t,2,U_(e,f)):s?Oe(t,16,B_(e,f)):Oe(t,5,D_(e,f)),!0;case"b":return f.t="b",s?Oe(t,15,E_(e,f)):Oe(t,4,A_(e,f)),!0;case"e":return f.t="e",s?Oe(t,14,F_(e,f)):Oe(t,3,N_(e,f)),!0}return s?Oe(t,12,y_(e,f)):Oe(t,1,w_(e,f)),!0}function gy(t,e,r,n){var i=cr(e["!ref"]||"A1"),a,s="",o=[];Oe(t,145);var f=Array.isArray(e),l=i.e.r;e["!rows"]&&(l=Math.max(i.e.r,e["!rows"].length-1));for(var u=i.s.r;u<=l;++u){s=on(u),c_(t,e,i,u);var p=!1;if(u<=i.e.r)for(var v=i.s.c;v<=i.e.c;++v){u===i.s.r&&(o[v]=gn(v)),a=o[v]+s;var c=f?(e[u]||[])[v]:e[a];if(!c){p=!1;continue}p=py(t,c,u,v,n,e,p)}}Oe(t,146)}function vy(t,e){!e||!e["!merges"]||(Oe(t,177,Q_(e["!merges"].length)),e["!merges"].forEach(function(r){Oe(t,176,Z_(r))}),Oe(t,178))}function my(t,e){!e||!e["!cols"]||(Oe(t,390),e["!cols"].forEach(function(r,n){r&&Oe(t,60,ay(n,r))}),Oe(t,391))}function xy(t,e){!e||!e["!ref"]||(Oe(t,648),Oe(t,649,hy(cr(e["!ref"]))),Oe(t,650))}function wy(t,e,r){e["!links"].forEach(function(n){if(n[1].Target){var i=Jt(r,-1,n[1].Target.replace(/#.*$/,""),qt.HLINK);Oe(t,494,ty(n,i))}}),delete e["!links"]}function _y(t,e,r,n){if(e["!comments"].length>0){var i=Jt(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",qt.VML);Oe(t,551,yh("rId"+i)),e["!legacy"]=i}}function yy(t,e,r,n){if(e["!autofilter"]){var i=e["!autofilter"],a=typeof i.ref=="string"?i.ref:Br(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,o=Gn(a);o.s.r==o.e.r&&(o.e.r=Gn(e["!ref"]).e.r,a=Br(o));for(var f=0;f<s.length;++f){var l=s[f];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+a;break}}f==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),Oe(t,161,Vs(cr(a))),Oe(t,162)}}function by(t,e,r){Oe(t,133),Oe(t,137,ly(e,r)),Oe(t,138),Oe(t,134)}function Ay(t,e){e["!protect"]&&Oe(t,535,uy(e["!protect"]))}function Sy(t,e,r,n){var i=Nn(),a=r.SheetNames[t],s=r.Sheets[a]||{},o=a;try{r&&r.Workbook&&(o=r.Workbook.Sheets[t].CodeName||o)}catch{}var f=cr(s["!ref"]||"A1");if(f.e.c>16383||f.e.r>1048575){if(e.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Oe(i,129),(r.vbaraw||s["!outline"])&&Oe(i,147,m_(o,s["!outline"])),Oe(i,148,p_(f)),by(i,s,r.Workbook),my(i,s),gy(i,s,t,e),Ay(i,s),yy(i,s,r,t),vy(i,s),wy(i,s,n),s["!margins"]&&Oe(i,476,oy(s["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&xy(i,s),_y(i,s,t,n),Oe(i,130),i.end()}function Ey(t,e){t.l+=10;var r=vn(t);return{name:r}}var Ty=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function Ny(t){return!t.Workbook||!t.Workbook.WBProps?"false":ix(t.Workbook.WBProps.date1904)?"true":"false"}var Ly="][*?/\\".split("");function Xd(t,e){if(t.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return Ly.forEach(function(n){if(t.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function Fy(t,e,r){t.forEach(function(n,i){Xd(n);for(var a=0;a<i;++a)if(n==t[a])throw new Error("Duplicate Sheet Name: "+n);if(r){var s=e&&e[i]&&e[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function Cy(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];Fy(t.SheetNames,e,!!t.vbaraw);for(var r=0;r<t.SheetNames.length;++r)Zw(t.Sheets[t.SheetNames[r]],t.SheetNames[r],r)}function Yd(t){var e=[Mr];e[e.length]=Ve("workbook",null,{xmlns:zs[0],"xmlns:r":Yr.r});var r=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(Ty.forEach(function(o){t.Workbook.WBProps[o[0]]!=null&&t.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=t.Workbook.WBProps[o[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),e[e.length]=Ve("workbookPr",null,n);var i=t.Workbook&&t.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(e[e.length]="<bookViews>",a=0;a!=t.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==t.SheetNames.length&&(a=0),e[e.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",a=0;a!=t.SheetNames.length;++a){var s={name:Zt(t.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}e[e.length]=Ve("sheet",null,s)}return e[e.length]="</sheets>",r&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(o){var f={name:o.Name};o.Comment&&(f.comment=o.Comment),o.Sheet!=null&&(f.localSheetId=""+o.Sheet),o.Hidden&&(f.hidden="1"),o.Ref&&(e[e.length]=Ve("definedName",Zt(o.Ref),f))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function ky(t,e){var r={};return r.Hidden=t.read_shift(4),r.iTabID=t.read_shift(4),r.strRelID=rh(t),r.name=vn(t),r}function Py(t,e){return e||(e=Ee(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),yh(t.strRelID,e),$r(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function Oy(t,e){var r={},n=t.read_shift(4);r.defaultThemeVersion=t.read_shift(4);var i=e>8?vn(t):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function Iy(t,e){e||(e=Ee(72));var r=0;return t&&t.filterPrivacy&&(r|=8),e.write_shift(4,r),e.write_shift(4,0),sd(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function Dy(t,e,r){var n=t.l+e;t.l+=4,t.l+=1;var i=t.read_shift(4),a=Nx(t),s=Vw(t,0,r),o=_h(t);t.l=n;var f={Name:a,Ptg:s};return i<268435455&&(f.Sheet=i),o&&(f.Comment=o),f}function Ry(t,e){Oe(t,143);for(var r=0;r!=e.SheetNames.length;++r){var n=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[r]&&e.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:e.SheetNames[r]};Oe(t,156,Py(i))}Oe(t,144)}function By(t,e){e||(e=Ee(127));for(var r=0;r!=4;++r)e.write_shift(4,0);return $r("SheetJS",e),$r(tf.version,e),$r(tf.version,e),$r("7262",e),e.length>e.l?e.slice(0,e.l):e}function My(t,e){e||(e=Ee(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t);var r=120;return e.write_shift(1,r),e.length>e.l?e.slice(0,e.l):e}function Uy(t,e){if(!(!e.Workbook||!e.Workbook.Sheets)){for(var r=e.Workbook.Sheets,n=0,i=-1,a=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&a==-1&&(a=n);a>i||(Oe(t,135),Oe(t,158,My(i)),Oe(t,136))}}function jy(t,e){var r=Nn();return Oe(r,131),Oe(r,128,By()),Oe(r,153,Iy(t.Workbook&&t.Workbook.WBProps||null)),Uy(r,t),Ry(r,t),Oe(r,132),r.end()}function Hy(t,e,r){return(e.slice(-4)===".bin"?jy:Yd)(t)}function Wy(t,e,r,n,i){return(e.slice(-4)===".bin"?Sy:Gd)(t,r,n,i)}function qy(t,e,r){return(e.slice(-4)===".bin"?o3:Cd)(t,r)}function zy(t,e,r){return(e.slice(-4)===".bin"?I4:Td)(t,r)}function Gy(t,e,r){return(e.slice(-4)===".bin"?A3:Dd)(t)}function Vy(t){return(t.slice(-4)===".bin"?g3:Od)()}function Xy(t,e){var r=[];return t.Props&&r.push(qx(t.Props,e)),t.Custprops&&r.push(zx(t.Props,t.Custprops)),r.join("")}function Yy(){return""}function Ky(t,e){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach(function(n,i){var a=[];a.push(Ve("NumberFormat",null,{"ss:Format":Zt(Ar[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};r.push(Ve("Style",a.join(""),s))}),Ve("Styles",r.join(""))}function Kd(t){return Ve("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+Eh(t.Ref,{r:0,c:0})})}function $y(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,r=[],n=0;n<e.length;++n){var i=e[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(Kd(i)))}return Ve("Names",r.join(""))}function Jy(t,e,r,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var o=i[s];o.Sheet==r&&(o.Name.match(/^_xlfn\./)||a.push(Kd(o)))}return a.join("")}function Zy(t,e,r,n){if(!t)return"";var i=[];if(t["!margins"]&&(i.push("<PageSetup>"),t["!margins"].header&&i.push(Ve("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&i.push(Ve("Footer",null,{"x:Margin":t["!margins"].footer})),i.push(Ve("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(Ve("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<r&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),t["!protect"]&&(i.push(sn("ProtectContents","True")),t["!protect"].objects&&i.push(sn("ProtectObjects","True")),t["!protect"].scenarios&&i.push(sn("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?i.push(sn("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&i.push(sn("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){t["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":Ve("WorksheetOptions",i.join(""),{xmlns:Wn.x})}function Qy(t){return t.map(function(e){var r=nx(e.t||""),n=Ve("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ve("Comment",n,{"ss:Author":e.a})}).join("")}function e6(t,e,r,n,i,a,s){if(!t||t.v==null&&t.f==null)return"";var o={};if(t.f&&(o["ss:Formula"]="="+Zt(Eh(t.f,s))),t.F&&t.F.slice(0,e.length)==e){var f=Kr(t.F.slice(e.length+1));o["ss:ArrayRange"]="RC:R"+(f.r==s.r?"":"["+(f.r-s.r)+"]")+"C"+(f.c==s.c?"":"["+(f.c-s.c)+"]")}if(t.l&&t.l.Target&&(o["ss:HRef"]=Zt(t.l.Target),t.l.Tooltip&&(o["x:HRefScreenTip"]=Zt(t.l.Tooltip))),r["!merges"])for(var l=r["!merges"],u=0;u!=l.length;++u)l[u].s.c!=s.c||l[u].s.r!=s.r||(l[u].e.c>l[u].s.c&&(o["ss:MergeAcross"]=l[u].e.c-l[u].s.c),l[u].e.r>l[u].s.r&&(o["ss:MergeDown"]=l[u].e.r-l[u].s.r));var p="",v="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",v=String(t.v);break;case"b":p="Boolean",v=t.v?"1":"0";break;case"e":p="Error",v=Vo[t.v];break;case"d":p="DateTime",v=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Ar[14]);break;case"s":p="String",v=rx(t.v||"");break}var c=Ia(n.cellXfs,t,n);o["ss:StyleID"]="s"+(21+c),o["ss:Index"]=s.c+1;var w=t.v!=null?v:"",m=t.t=="z"?"":'<Data ss:Type="'+p+'">'+w+"</Data>";return(t.c||[]).length>0&&(m+=Qy(t.c)),Ve("Cell",m,o)}function t6(t,e){var r='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=Fd(e.hpt)),e.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(r+=' ss:Hidden="1"')),r+">"}function r6(t,e,r,n){if(!t["!ref"])return"";var i=cr(t["!ref"]),a=t["!merges"]||[],s=0,o=[];t["!cols"]&&t["!cols"].forEach(function(y,A){Ah(y);var D=!!y.width,P=Nf(A,y),B={"ss:Index":A+1};D&&(B["ss:Width"]=cf(P.width)),y.hidden&&(B["ss:Hidden"]="1"),o.push(Ve("Column",null,B))});for(var f=Array.isArray(t),l=i.s.r;l<=i.e.r;++l){for(var u=[t6(l,(t["!rows"]||[])[l])],p=i.s.c;p<=i.e.c;++p){var v=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>p)&&!(a[s].s.r>l)&&!(a[s].e.c<p)&&!(a[s].e.r<l)){(a[s].s.c!=p||a[s].s.r!=l)&&(v=!0);break}if(!v){var c={r:l,c:p},w=Qt(c),m=f?(t[l]||[])[p]:t[w];u.push(e6(m,w,t,e,r,n,c))}}u.push("</Row>"),u.length>2&&o.push(u.join(""))}return o.join("")}function n6(t,e,r){var n=[],i=r.SheetNames[t],a=r.Sheets[i],s=a?Jy(a,e,t,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?r6(a,e,t,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(Zy(a,e,t,r)),n.join("")}function i6(t,e){e||(e={}),t.SSF||(t.SSF=Fn(Ar)),t.SSF&&(bf(),yf(t.SSF),e.revssf=Af(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],Ia(e.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(Xy(t,e)),r.push(Yy()),r.push(""),r.push("");for(var n=0;n<t.SheetNames.length;++n)r.push(Ve("Worksheet",n6(n,e,t),{"ss:Name":Zt(t.SheetNames[n])}));return r[2]=Ky(t,e),r[3]=$y(t),Mr+Ve("Workbook",r.join(""),{xmlns:Wn.ss,"xmlns:o":Wn.o,"xmlns:x":Wn.x,"xmlns:ss":Wn.ss,"xmlns:dt":Wn.dt,"xmlns:html":Wn.html})}var Rl={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function a6(t,e){var r=[],n=[],i=[],a=0,s,o=qc(r1,"n"),f=qc(n1,"n");if(t.Props)for(s=fn(t.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(o,s[a])?r:Object.prototype.hasOwnProperty.call(f,s[a])?n:i).push([s[a],t.Props[s[a]]]);if(t.Custprops)for(s=fn(t.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(t.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(o,s[a])?r:Object.prototype.hasOwnProperty.call(f,s[a])?n:i).push([s[a],t.Custprops[s[a]]]);var l=[];for(a=0;a<i.length;++a)wd.indexOf(i[a][0])>-1||vd.indexOf(i[a][0])>-1||i[a][1]!=null&&l.push(i[a]);n.length&&tr.utils.cfb_add(e,"/SummaryInformation",f1(n,Rl.SI,f,n1)),(r.length||l.length)&&tr.utils.cfb_add(e,"/DocumentSummaryInformation",f1(r,Rl.DSI,o,r1,l.length?l:null,Rl.UDI))}function s6(t,e){var r=e||{},n=tr.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return tr.utils.cfb_add(n,i,$d(t,r)),r.biff==8&&(t.Props||t.Custprops)&&a6(t,n),r.biff==8&&t.vbaraw&&S3(n,tr.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var o6={0:{f:h_},1:{f:x_},2:{f:M_},3:{f:T_},4:{f:b_},5:{f:I_},6:{f:q_},7:{f:C_},8:{f:$_},9:{f:K_},10:{f:X_},11:{f:Y_},12:{f:__},13:{f:j_},14:{f:L_},15:{f:S_},16:{f:R_},17:{f:G_},18:{f:P_},19:{f:wh},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:Dy},40:{},42:{},43:{f:q4},44:{f:H4},45:{f:V4},46:{f:Y4},47:{f:X4},48:{},49:{f:_x},50:{},51:{f:h3},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:y4},62:{f:W_},63:{f:v3},64:{f:cy},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Oi,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:fy},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:v_},148:{f:d_,p:16},151:{f:ry},152:{},153:{f:Oy},154:{},155:{},156:{f:ky},157:{},158:{},159:{T:1,f:k4},160:{T:-1},161:{T:1,f:us},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:J_},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:f3},336:{T:-1},337:{f:d3,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:rh},357:{},358:{},359:{},360:{T:1},361:{},362:{f:g4},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:ny},427:{f:iy},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:sy},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:g_},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:ey},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:rh},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:y3},633:{T:1},634:{T:-1},635:{T:1,f:w3},636:{T:-1},637:{f:Sx},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Ey},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:dy},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Xe(t,e,r,n){var i=e;if(!isNaN(i)){var a=n||(r||[]).length||0,s=t.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&vh(r)&&t.push(r)}}function f6(t,e,r,n){var i=(r||[]).length||0;if(i<=8224)return Xe(t,e,r,i);var a=e;if(!isNaN(a)){for(var s=r.parts||[],o=0,f=0,l=0;l+(s[o]||8224)<=8224;)l+=s[o]||8224,o++;var u=t.next(4);for(u.write_shift(2,a),u.write_shift(2,l),t.push(r.slice(f,f+l)),f+=l;f<i;){for(u=t.next(4),u.write_shift(2,60),l=0;l+(s[o]||8224)<=8224;)l+=s[o]||8224,o++;u.write_shift(2,l),t.push(r.slice(f,f+l)),f+=l}}}function Yo(t,e,r){return t||(t=Ee(7)),t.write_shift(2,e),t.write_shift(2,r),t.write_shift(2,0),t.write_shift(1,0),t}function l6(t,e,r,n){var i=Ee(9);return Yo(i,t,e),yd(r,n||"b",i),i}function h6(t,e,r){var n=Ee(8+2*r.length);return Yo(n,t,e),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function u6(t,e,r,n){if(e.v!=null)switch(e.t){case"d":case"n":var i=e.t=="d"?Ln(An(e.v)):e.v;i==(i|0)&&i>=0&&i<65536?Xe(t,2,E4(r,n,i)):Xe(t,3,S4(r,n,i));return;case"b":case"e":Xe(t,5,l6(r,n,e.v,e.t));return;case"s":case"str":Xe(t,4,h6(r,n,(e.v||"").slice(0,255)));return}Xe(t,1,Yo(null,r,n))}function c6(t,e,r,n){var i=Array.isArray(e),a=cr(e["!ref"]||"A1"),s,o="",f=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=Br(a)}for(var l=a.s.r;l<=a.e.r;++l){o=on(l);for(var u=a.s.c;u<=a.e.c;++u){l===a.s.r&&(f[u]=gn(u)),s=f[u]+o;var p=i?(e[l]||[])[u]:e[s];p&&u6(t,p,l,u)}}}function d6(t,e){for(var r=e||{},n=Nn(),i=0,a=0;a<t.SheetNames.length;++a)t.SheetNames[a]==r.sheet&&(i=a);if(i==0&&r.sheet&&t.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return Xe(n,r.biff==4?1033:r.biff==3?521:9,bh(t,16,r)),c6(n,t.Sheets[t.SheetNames[i]],i,r),Xe(n,10),n.end()}function p6(t,e,r){Xe(t,49,o4({sz:12,name:"Arial"},r))}function g6(t,e,r){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)e[i]!=null&&Xe(t,1054,h4(i,e[i],r))})}function v6(t,e){var r=Ee(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),Xe(t,2151,r),r=Ee(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),Sd(cr(e["!ref"]||"A1"),r),r.write_shift(4,4),Xe(t,2152,r)}function m6(t,e){for(var r=0;r<16;++r)Xe(t,224,h1({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(n){Xe(t,224,h1(n,0,e))})}function x6(t,e){for(var r=0;r<e["!links"].length;++r){var n=e["!links"][r];Xe(t,440,x4(n)),n[1].Tooltip&&Xe(t,2048,w4(n))}delete e["!links"]}function w6(t,e){if(e){var r=0;e.forEach(function(n,i){++r<=256&&n&&Xe(t,125,b4(Nf(i,n),i))})}}function _6(t,e,r,n,i){var a=16+Ia(i.cellXfs,e,i);if(e.v==null&&!e.bf){Xe(t,513,is(r,n,a));return}if(e.bf)Xe(t,6,zw(e,r,n,i,a));else switch(e.t){case"d":case"n":var s=e.t=="d"?Ln(An(e.v)):e.v;Xe(t,515,p4(r,n,s,a));break;case"b":case"e":Xe(t,517,d4(r,n,e.v,a,i,e.t));break;case"s":case"str":if(i.bookSST){var o=Nh(i.Strings,e.v,i.revStrings);Xe(t,253,f4(r,n,o,a))}else Xe(t,516,l4(r,n,(e.v||"").slice(0,255),a,i));break;default:Xe(t,513,is(r,n,a))}}function y6(t,e,r){var n=Nn(),i=r.SheetNames[t],a=r.Sheets[i]||{},s=(r||{}).Workbook||{},o=(s.Sheets||[])[t]||{},f=Array.isArray(a),l=e.biff==8,u,p="",v=[],c=cr(a["!ref"]||"A1"),w=l?65536:16384;if(c.e.c>255||c.e.r>=w){if(e.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");c.e.c=Math.min(c.e.c,255),c.e.r=Math.min(c.e.c,w-1)}Xe(n,2057,bh(r,16,e)),Xe(n,13,ei(1)),Xe(n,12,ei(100)),Xe(n,15,bn(!0)),Xe(n,17,bn(!1)),Xe(n,16,ns(.001)),Xe(n,95,bn(!0)),Xe(n,42,bn(!1)),Xe(n,43,bn(!1)),Xe(n,130,ei(1)),Xe(n,128,c4()),Xe(n,131,bn(!1)),Xe(n,132,bn(!1)),l&&w6(n,a["!cols"]),Xe(n,512,u4(c,e)),l&&(a["!links"]=[]);for(var m=c.s.r;m<=c.e.r;++m){p=on(m);for(var y=c.s.c;y<=c.e.c;++y){m===c.s.r&&(v[y]=gn(y)),u=v[y]+p;var A=f?(a[m]||[])[y]:a[u];A&&(_6(n,A,m,y,e),l&&A.l&&a["!links"].push([u,A.l]))}}var D=o.CodeName||o.name||i;return l&&Xe(n,574,s4((s.Views||[])[0])),l&&(a["!merges"]||[]).length&&Xe(n,229,m4(a["!merges"])),l&&x6(n,a),Xe(n,442,Ad(D)),l&&v6(n,a),Xe(n,10),n.end()}function b6(t,e,r){var n=Nn(),i=(t||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},o=r.biff==8,f=r.biff==5;if(Xe(n,2057,bh(t,5,r)),r.bookType=="xla"&&Xe(n,135),Xe(n,225,o?ei(1200):null),Xe(n,193,Xx(2)),f&&Xe(n,191),f&&Xe(n,192),Xe(n,226),Xe(n,92,r4("SheetJS",r)),Xe(n,66,ei(o?1200:1252)),o&&Xe(n,353,ei(0)),o&&Xe(n,448),Xe(n,317,A4(t.SheetNames.length)),o&&t.vbaraw&&Xe(n,211),o&&t.vbaraw){var l=s.CodeName||"ThisWorkbook";Xe(n,442,Ad(l))}Xe(n,156,ei(17)),Xe(n,25,bn(!1)),Xe(n,18,bn(!1)),Xe(n,19,ei(0)),o&&Xe(n,431,bn(!1)),o&&Xe(n,444,ei(0)),Xe(n,61,a4()),Xe(n,64,bn(!1)),Xe(n,141,ei(0)),Xe(n,34,bn(Ny(t)=="true")),Xe(n,14,bn(!0)),o&&Xe(n,439,bn(!1)),Xe(n,218,ei(0)),p6(n,t,r),g6(n,t.SSF,r),m6(n,r),o&&Xe(n,352,bn(!1));var u=n.end(),p=Nn();o&&Xe(p,140,_4()),o&&r.Strings&&f6(p,252,i4(r.Strings)),Xe(p,10);var v=p.end(),c=Nn(),w=0,m=0;for(m=0;m<t.SheetNames.length;++m)w+=(o?12:11)+(o?2:1)*t.SheetNames[m].length;var y=u.length+w+v.length;for(m=0;m<t.SheetNames.length;++m){var A=a[m]||{};Xe(c,133,n4({pos:y,hs:A.Hidden||0,dt:0,name:t.SheetNames[m]},r)),y+=e[m].length}var D=c.end();if(w!=D.length)throw new Error("BS8 "+w+" != "+D.length);var P=[];return u.length&&P.push(u),D.length&&P.push(D),v.length&&P.push(v),an(P)}function A6(t,e){var r=e||{},n=[];t&&!t.SSF&&(t.SSF=Fn(Ar)),t&&t.SSF&&(bf(),yf(t.SSF),r.revssf=Af(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Lh(r),r.cellXfs=[],Ia(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var i=0;i<t.SheetNames.length;++i)n[n.length]=y6(i,r,t);return n.unshift(b6(t,n,r)),an(n)}function $d(t,e){for(var r=0;r<=t.SheetNames.length;++r){var n=t.Sheets[t.SheetNames[r]];if(!(!n||!n["!ref"])){var i=Gn(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var a=e||{};switch(a.biff||2){case 8:case 5:return A6(t,e);case 4:case 3:case 2:return d6(t,e)}throw new Error("invalid type "+a.bookType+" for BIFF")}function S6(t,e,r,n){for(var i=t["!merges"]||[],a=[],s=e.s.c;s<=e.e.c;++s){for(var o=0,f=0,l=0;l<i.length;++l)if(!(i[l].s.r>r||i[l].s.c>s)&&!(i[l].e.r<r||i[l].e.c<s)){if(i[l].s.r<r||i[l].s.c<s){o=-1;break}o=i[l].e.r-i[l].s.r+1,f=i[l].e.c-i[l].s.c+1;break}if(!(o<0)){var u=Qt({r,c:s}),p=n.dense?(t[r]||[])[s]:t[u],v=p&&p.v!=null&&(p.h||tx(p.w||(sa(p),p.w)||""))||"",c={};o>1&&(c.rowspan=o),f>1&&(c.colspan=f),n.editable?v='<span contenteditable="true">'+v+"</span>":p&&(c["data-t"]=p&&p.t||"z",p.v!=null&&(c["data-v"]=p.v),p.z!=null&&(c["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(v='<a href="'+p.l.Target+'">'+v+"</a>")),c.id=(n.id||"sjs")+"-"+u,a.push(Ve("td",v,c))}}var w="<tr>";return w+a.join("")+"</tr>"}var E6='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',T6="</body></html>";function N6(t,e,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function Jd(t,e){var r=e||{},n=r.header!=null?r.header:E6,i=r.footer!=null?r.footer:T6,a=[n],s=Gn(t["!ref"]);r.dense=Array.isArray(t),a.push(N6(t,s,r));for(var o=s.s.r;o<=s.e.r;++o)a.push(S6(t,s,o,r));return a.push("</table>"+i),a.join("")}function Zd(t,e,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?Kr(n.origin):n.origin;i=s.r,a=s.c}var o=e.getElementsByTagName("tr"),f=Math.min(n.sheetRows||1e7,o.length),l={s:{r:0,c:0},e:{r:i,c:a}};if(t["!ref"]){var u=Gn(t["!ref"]);l.s.r=Math.min(l.s.r,u.s.r),l.s.c=Math.min(l.s.c,u.s.c),l.e.r=Math.max(l.e.r,u.e.r),l.e.c=Math.max(l.e.c,u.e.c),i==-1&&(l.e.r=i=u.e.r+1)}var p=[],v=0,c=t["!rows"]||(t["!rows"]=[]),w=0,m=0,y=0,A=0,D=0,P=0;for(t["!cols"]||(t["!cols"]=[]);w<o.length&&m<f;++w){var B=o[w];if(m1(B)){if(n.display)continue;c[m]={hidden:!0}}var re=B.children;for(y=A=0;y<re.length;++y){var ue=re[y];if(!(n.display&&m1(ue))){var V=ue.hasAttribute("data-v")?ue.getAttribute("data-v"):ue.hasAttribute("v")?ue.getAttribute("v"):ax(ue.innerHTML),z=ue.getAttribute("data-z")||ue.getAttribute("z");for(v=0;v<p.length;++v){var k=p[v];k.s.c==A+a&&k.s.r<m+i&&m+i<=k.e.r&&(A=k.e.c+1-a,v=-1)}P=+ue.getAttribute("colspan")||1,((D=+ue.getAttribute("rowspan")||1)>1||P>1)&&p.push({s:{r:m+i,c:A+a},e:{r:m+i+(D||1)-1,c:A+a+(P||1)-1}});var ee={t:"s",v:V},S=ue.getAttribute("data-t")||ue.getAttribute("t")||"";V!=null&&(V.length==0?ee.t=S||"z":n.raw||V.trim().length==0||S=="s"||(V==="TRUE"?ee={t:"b",v:!0}:V==="FALSE"?ee={t:"b",v:!1}:isNaN(ra(V))?isNaN(Bo(V).getDate())||(ee={t:"d",v:An(V)},n.cellDates||(ee={t:"n",v:Ln(ee.v)}),ee.z=n.dateNF||Ar[14]):ee={t:"n",v:ra(V)})),ee.z===void 0&&z!=null&&(ee.z=z);var I="",G=ue.getElementsByTagName("A");if(G&&G.length)for(var te=0;te<G.length&&!(G[te].hasAttribute("href")&&(I=G[te].getAttribute("href"),I.charAt(0)!="#"));++te);I&&I.charAt(0)!="#"&&(ee.l={Target:I}),n.dense?(t[m+i]||(t[m+i]=[]),t[m+i][A+a]=ee):t[Qt({c:A+a,r:m+i})]=ee,l.e.c<A+a&&(l.e.c=A+a),A+=P}}++m}return p.length&&(t["!merges"]=(t["!merges"]||[]).concat(p)),l.e.r=Math.max(l.e.r,m-1+i),t["!ref"]=Br(l),m>=f&&(t["!fullref"]=Br((l.e.r=o.length-w+m-1+i,l))),t}function Qd(t,e){var r=e||{},n=r.dense?[]:{};return Zd(n,t,e)}function L6(t,e){return os(Qd(t,e),e)}function m1(t){var e="",r=F6(t);return r&&(e=r(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),e==="none"}function F6(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var C6=(function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+Uo({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Mr+e}})(),x1=(function(){var t=function(a){return Zt(a).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e=` <table:table-cell />
138
- `,r=` <table:covered-table-cell/>
139
- `,n=function(a,s,o){var f=[];f.push(' <table:table table:name="'+Zt(s.SheetNames[o])+`" table:style-name="ta1">
140
- `);var l=0,u=0,p=Gn(a["!ref"]||"A1"),v=a["!merges"]||[],c=0,w=Array.isArray(a);if(a["!cols"])for(u=0;u<=p.e.c;++u)f.push(" <table:table-column"+(a["!cols"][u]?' table:style-name="co'+a["!cols"][u].ods+'"':"")+`></table:table-column>
141
- `);var m="",y=a["!rows"]||[];for(l=0;l<p.s.r;++l)m=y[l]?' table:style-name="ro'+y[l].ods+'"':"",f.push(" <table:table-row"+m+`></table:table-row>
142
- `);for(;l<=p.e.r;++l){for(m=y[l]?' table:style-name="ro'+y[l].ods+'"':"",f.push(" <table:table-row"+m+`>
143
- `),u=0;u<p.s.c;++u)f.push(e);for(;u<=p.e.c;++u){var A=!1,D={},P="";for(c=0;c!=v.length;++c)if(!(v[c].s.c>u)&&!(v[c].s.r>l)&&!(v[c].e.c<u)&&!(v[c].e.r<l)){(v[c].s.c!=u||v[c].s.r!=l)&&(A=!0),D["table:number-columns-spanned"]=v[c].e.c-v[c].s.c+1,D["table:number-rows-spanned"]=v[c].e.r-v[c].s.r+1;break}if(A){f.push(r);continue}var B=Qt({r:l,c:u}),re=w?(a[l]||[])[u]:a[B];if(re&&re.f&&(D["table:formula"]=Zt($w(re.f)),re.F&&re.F.slice(0,B.length)==B)){var ue=Gn(re.F);D["table:number-matrix-columns-spanned"]=ue.e.c-ue.s.c+1,D["table:number-matrix-rows-spanned"]=ue.e.r-ue.s.r+1}if(!re){f.push(e);continue}switch(re.t){case"b":P=re.v?"TRUE":"FALSE",D["office:value-type"]="boolean",D["office:boolean-value"]=re.v?"true":"false";break;case"n":P=re.w||String(re.v||0),D["office:value-type"]="float",D["office:value"]=re.v||0;break;case"s":case"str":P=re.v==null?"":re.v,D["office:value-type"]="string";break;case"d":P=re.w||An(re.v).toISOString(),D["office:value-type"]="date",D["office:date-value"]=An(re.v).toISOString(),D["table:style-name"]="ce1";break;default:f.push(e);continue}var V=t(P);if(re.l&&re.l.Target){var z=re.l.Target;z=z.charAt(0)=="#"?"#"+Jw(z.slice(1)):z,z.charAt(0)!="#"&&!z.match(/^\w+:/)&&(z="../"+z),V=Ve("text:a",V,{"xlink:href":z.replace(/&/g,"&amp;")})}f.push(" "+Ve("table:table-cell",Ve("text:p",V,{}),D)+`
144
- `)}f.push(` </table:table-row>
145
- `)}return f.push(` </table:table>
146
- `),f.join("")},i=function(a,s){a.push(` <office:automatic-styles>
147
- `),a.push(` <number:date-style style:name="N37" number:automatic-order="true">
148
- `),a.push(` <number:month number:style="long"/>
149
- `),a.push(` <number:text>/</number:text>
150
- `),a.push(` <number:day number:style="long"/>
151
- `),a.push(` <number:text>/</number:text>
152
- `),a.push(` <number:year/>
153
- `),a.push(` </number:date-style>
154
- `);var o=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!cols"]){for(var u=0;u<l["!cols"].length;++u)if(l["!cols"][u]){var p=l["!cols"][u];if(p.width==null&&p.wpx==null&&p.wch==null)continue;Ah(p),p.ods=o;var v=l["!cols"][u].wpx+"px";a.push(' <style:style style:name="co'+o+`" style:family="table-column">
155
- `),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+v+`"/>
156
- `),a.push(` </style:style>
157
- `),++o}}});var f=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!rows"]){for(var u=0;u<l["!rows"].length;++u)if(l["!rows"][u]){l["!rows"][u].ods=f;var p=l["!rows"][u].hpx+"px";a.push(' <style:style style:name="ro'+f+`" style:family="table-row">
158
- `),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
159
- `),a.push(` </style:style>
160
- `),++f}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
161
- `),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
162
- `),a.push(` </style:style>
163
- `),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
164
- `),a.push(` </office:automatic-styles>
165
- `)};return function(s,o){var f=[Mr],l=Uo({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=Uo({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});o.bookType=="fods"?(f.push("<office:document"+l+u+`>
166
- `),f.push(pd().replace(/office:document-meta/g,"office:meta"))):f.push("<office:document-content"+l+`>
167
- `),i(f,s),f.push(` <office:body>
168
- `),f.push(` <office:spreadsheet>
169
- `);for(var p=0;p!=s.SheetNames.length;++p)f.push(n(s.Sheets[s.SheetNames[p]],s,p));return f.push(` </office:spreadsheet>
170
- `),f.push(` </office:body>
171
- `),o.bookType=="fods"?f.push("</office:document>"):f.push("</office:document-content>"),f.join("")}})();function ep(t,e){if(e.bookType=="fods")return x1(t,e);var r=ch(),n="",i=[],a=[];return n="mimetype",It(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",It(r,n,x1(t,e)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",It(r,n,C6(t,e)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",It(r,n,Mr+pd()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",It(r,n,Wx(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",It(r,n,jx(i)),r}function gf(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function k6(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):gi(Mo(t))}function P6(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var n=0;n<e.length;++n)if(t[r+n]!=e[n])continue e;return!0}return!1}function Oa(t){var e=t.reduce(function(i,a){return i+a.length},0),r=new Uint8Array(e),n=0;return t.forEach(function(i){r.set(i,n),n+=i.length}),r}function O6(t,e,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);t[e+15]|=n>>7,t[e+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)t[e+a]=i&255;t[e+15]|=r>=0?0:128}function jo(t,e){var r=e?e[0]:0,n=t[r]&127;e:if(t[r++]>=128&&(n|=(t[r]&127)<<7,t[r++]<128||(n|=(t[r]&127)<<14,t[r++]<128)||(n|=(t[r]&127)<<21,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),n}function $t(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function Hs(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function Gr(t){for(var e=[],r=[0];r[0]<t.length;){var n=r[0],i=jo(t,r),a=i&7;i=Math.floor(i/8);var s=0,o;if(i==0)break;switch(a){case 0:{for(var f=r[0];t[r[0]++]>=128;);o=t.slice(f,r[0])}break;case 5:s=4,o=t.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,o=t.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=jo(t,r),o=t.slice(r[0],r[0]+s),r[0]+=s;break;default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var l={data:o,type:a};e[i]==null?e[i]=[l]:e[i].push(l)}return e}function rn(t){var e=[];return t.forEach(function(r,n){r.forEach(function(i){i.data&&(e.push($t(n*8+i.type)),i.type==2&&e.push($t(i.data.length)),e.push(i.data))})}),Oa(e)}function di(t){for(var e,r=[],n=[0];n[0]<t.length;){var i=jo(t,n),a=Gr(t.slice(n[0],n[0]+i));n[0]+=i;var s={id:Hs(a[1][0].data),messages:[]};a[2].forEach(function(o){var f=Gr(o.data),l=Hs(f[3][0].data);s.messages.push({meta:f,data:t.slice(n[0],n[0]+l)}),n[0]+=l}),(e=a[3])!=null&&e[0]&&(s.merge=Hs(a[3][0].data)>>>0>0),r.push(s)}return r}function Ts(t){var e=[];return t.forEach(function(r){var n=[];n[1]=[{data:$t(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:$t(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:$t(s.data.length)}],n[2].push({data:rn(s.meta),type:2})});var a=rn(n);e.push($t(a.length)),e.push(a),i.forEach(function(s){return e.push(s)})}),Oa(e)}function I6(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],n=jo(e,r),i=[];r[0]<e.length;){var a=e[r[0]]&3;if(a==0){var s=e[r[0]++]>>2;if(s<60)++s;else{var o=s-59;s=e[r[0]],o>1&&(s|=e[r[0]+1]<<8),o>2&&(s|=e[r[0]+2]<<16),o>3&&(s|=e[r[0]+3]<<24),s>>>=0,s++,r[0]+=o}i.push(e.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var f=0,l=0;if(a==1?(l=(e[r[0]]>>2&7)+4,f=(e[r[0]++]&224)<<3,f|=e[r[0]++]):(l=(e[r[0]++]>>2)+1,a==2?(f=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(f=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),i=[Oa(i)],f==0)throw new Error("Invalid offset 0");if(f>i[0].length)throw new Error("Invalid offset beyond length");if(l>=f)for(i.push(i[0].slice(-f)),l-=f;l>=i[i.length-1].length;)i.push(i[i.length-1]),l-=i[i.length-1].length;i.push(i[0].slice(-f,-f+l))}}var u=Oa(i);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function pi(t){for(var e=[],r=0;r<t.length;){var n=t[r++],i=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(I6(n,t.slice(r,r+i))),r+=i}if(r!==t.length)throw new Error("data is not a valid framed stream!");return Oa(e)}function Ns(t){for(var e=[],r=0;r<t.length;){var n=Math.min(t.length-r,268435455),i=new Uint8Array(4);e.push(i);var a=$t(n),s=a.length;e.push(a),n<=60?(s++,e.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(t.slice(r,r+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,r+=n}return Oa(e)}function Bl(t,e){var r=new Uint8Array(32),n=gf(r),i=12,a=0;switch(r[0]=5,t.t){case"n":r[1]=2,O6(r,i,t.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,t.v?1:0,!0),a|=2,i+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,n.setUint32(i,e.indexOf(t.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,a,!0),r.slice(0,i)}function Ml(t,e){var r=new Uint8Array(32),n=gf(r),i=12,a=0;switch(r[0]=3,t.t){case"n":r[2]=2,n.setFloat64(i,t.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,t.v?1:0,!0),a|=32,i+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,n.setUint32(i,e.indexOf(t.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,a,!0),r.slice(0,i)}function Ta(t){var e=Gr(t);return jo(e[1][0].data)}function D6(t,e,r){var n,i,a,s;if(!((n=t[6])!=null&&n[0])||!((i=t[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var o=((s=(a=t[8])==null?void 0:a[0])==null?void 0:s.data)&&Hs(t[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var f=0,l=gf(t[7][0].data),u=0,p=[],v=gf(t[4][0].data),c=0,w=[],m=0;m<e.length;++m){if(e[m]==null){l.setUint16(m*2,65535,!0),v.setUint16(m*2,65535);continue}l.setUint16(m*2,u,!0),v.setUint16(m*2,c,!0);var y,A;switch(typeof e[m]){case"string":y=Bl({t:"s",v:e[m]},r),A=Ml({t:"s",v:e[m]},r);break;case"number":y=Bl({t:"n",v:e[m]},r),A=Ml({t:"n",v:e[m]},r);break;case"boolean":y=Bl({t:"b",v:e[m]},r),A=Ml({t:"b",v:e[m]},r);break;default:throw new Error("Unsupported value "+e[m])}p.push(y),u+=y.length,w.push(A),c+=A.length,++f}for(t[2][0].data=$t(f);m<t[7][0].data.length/2;++m)l.setUint16(m*2,65535,!0),v.setUint16(m*2,65535,!0);return t[6][0].data=Oa(p),t[3][0].data=Oa(w),f}function R6(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Gn(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(Br(n)));var a=vf(r,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(L){return L.forEach(function(N){typeof N=="string"&&s.push(N)})});var o={},f=[],l=tr.read(e.numbers,{type:"base64"});l.FileIndex.map(function(L,N){return[L,l.FullPaths[N]]}).forEach(function(L){var N=L[0],F=L[1];if(N.type==2&&N.name.match(/\.iwa/)){var q=N.content,ne=pi(q),oe=di(ne);oe.forEach(function(se){f.push(se.id),o[se.id]={deps:[],location:F,type:Hs(se.messages[0].meta[1][0].data)}})}}),f.sort(function(L,N){return L-N});var u=f.filter(function(L){return L>1}).map(function(L){return[L,$t(L)]});l.FileIndex.map(function(L,N){return[L,l.FullPaths[N]]}).forEach(function(L){var N=L[0];if(L[1],!!N.name.match(/\.iwa/)){var F=di(pi(N.content));F.forEach(function(q){q.messages.forEach(function(ne){u.forEach(function(oe){q.messages.some(function(se){return Hs(se.meta[1][0].data)!=11006&&P6(se.data,oe[1])})&&o[oe[0]].deps.push(q.id)})})})}});for(var p=tr.find(l,o[1].location),v=di(pi(p.content)),c,w=0;w<v.length;++w){var m=v[w];m.id==1&&(c=m)}var y=Ta(Gr(c.messages[0].data)[1][0].data);for(p=tr.find(l,o[y].location),v=di(pi(p.content)),w=0;w<v.length;++w)m=v[w],m.id==y&&(c=m);for(y=Ta(Gr(c.messages[0].data)[2][0].data),p=tr.find(l,o[y].location),v=di(pi(p.content)),w=0;w<v.length;++w)m=v[w],m.id==y&&(c=m);for(y=Ta(Gr(c.messages[0].data)[2][0].data),p=tr.find(l,o[y].location),v=di(pi(p.content)),w=0;w<v.length;++w)m=v[w],m.id==y&&(c=m);var A=Gr(c.messages[0].data);{A[6][0].data=$t(n.e.r+1),A[7][0].data=$t(n.e.c+1);var D=Ta(A[46][0].data),P=tr.find(l,o[D].location),B=di(pi(P.content));{for(var re=0;re<B.length&&B[re].id!=D;++re);if(B[re].id!=D)throw"Bad ColumnRowUIDMapArchive";var ue=Gr(B[re].messages[0].data);ue[1]=[],ue[2]=[],ue[3]=[];for(var V=0;V<=n.e.c;++V){var z=[];z[1]=z[2]=[{type:0,data:$t(V+420690)}],ue[1].push({type:2,data:rn(z)}),ue[2].push({type:0,data:$t(V)}),ue[3].push({type:0,data:$t(V)})}ue[4]=[],ue[5]=[],ue[6]=[];for(var k=0;k<=n.e.r;++k)z=[],z[1]=z[2]=[{type:0,data:$t(k+726270)}],ue[4].push({type:2,data:rn(z)}),ue[5].push({type:0,data:$t(k)}),ue[6].push({type:0,data:$t(k)});B[re].messages[0].data=rn(ue)}P.content=Ns(Ts(B)),P.size=P.content.length,delete A[46];var ee=Gr(A[4][0].data);{ee[7][0].data=$t(n.e.r+1);var S=Gr(ee[1][0].data),I=Ta(S[2][0].data);P=tr.find(l,o[I].location),B=di(pi(P.content));{if(B[0].id!=I)throw"Bad HeaderStorageBucket";var G=Gr(B[0].messages[0].data);for(k=0;k<a.length;++k){var te=Gr(G[2][0].data);te[1][0].data=$t(k),te[4][0].data=$t(a[k].length),G[2][k]={type:G[2][0].type,data:rn(te)}}B[0].messages[0].data=rn(G)}P.content=Ns(Ts(B)),P.size=P.content.length;var he=Ta(ee[2][0].data);P=tr.find(l,o[he].location),B=di(pi(P.content));{if(B[0].id!=he)throw"Bad HeaderStorageBucket";for(G=Gr(B[0].messages[0].data),V=0;V<=n.e.c;++V)te=Gr(G[2][0].data),te[1][0].data=$t(V),te[4][0].data=$t(n.e.r+1),G[2][V]={type:G[2][0].type,data:rn(te)};B[0].messages[0].data=rn(G)}P.content=Ns(Ts(B)),P.size=P.content.length;var be=Ta(ee[4][0].data);(function(){for(var L=tr.find(l,o[be].location),N=di(pi(L.content)),F,q=0;q<N.length;++q){var ne=N[q];ne.id==be&&(F=ne)}var oe=Gr(F.messages[0].data);{oe[3]=[];var se=[];s.forEach(function(Re,qe){se[1]=[{type:0,data:$t(qe)}],se[2]=[{type:0,data:$t(1)}],se[3]=[{type:2,data:k6(Re)}],oe[3].push({type:2,data:rn(se)})})}F.messages[0].data=rn(oe);var fe=Ts(N),Fe=Ns(fe);L.content=Fe,L.size=L.content.length})();var ye=Gr(ee[3][0].data);{var pe=ye[1][0];delete ye[2];var Ae=Gr(pe.data);{var Ue=Ta(Ae[2][0].data);(function(){for(var L=tr.find(l,o[Ue].location),N=di(pi(L.content)),F,q=0;q<N.length;++q){var ne=N[q];ne.id==Ue&&(F=ne)}var oe=Gr(F.messages[0].data);{delete oe[6],delete ye[7];var se=new Uint8Array(oe[5][0].data);oe[5]=[];for(var fe=0,Fe=0;Fe<=n.e.r;++Fe){var Re=Gr(se);fe+=D6(Re,a[Fe],s),Re[1][0].data=$t(Fe),oe[5].push({data:rn(Re),type:2})}oe[1]=[{type:0,data:$t(n.e.c+1)}],oe[2]=[{type:0,data:$t(n.e.r+1)}],oe[3]=[{type:0,data:$t(fe)}],oe[4]=[{type:0,data:$t(n.e.r+1)}]}F.messages[0].data=rn(oe);var qe=Ts(N),ze=Ns(qe);L.content=ze,L.size=L.content.length})()}pe.data=rn(Ae)}ee[3][0].data=rn(ye)}A[4][0].data=rn(ee)}c.messages[0].data=rn(A);var ke=Ts(v),_=Ns(ke);return p.content=_,p.size=p.content.length,l}function B6(t){return function(r){for(var n=0;n!=t.length;++n){var i=t[n];r[i[0]]===void 0&&(r[i[0]]=i[1]),i[2]==="n"&&(r[i[0]]=Number(r[i[0]]))}}}function Lh(t){B6([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function M6(t,e){return e.bookType=="ods"?ep(t,e):e.bookType=="numbers"?R6(t,e):e.bookType=="xlsb"?U6(t,e):j6(t,e)}function U6(t,e){Ps=1024,t&&!t.SSF&&(t.SSF=Fn(Ar)),t&&t.SSF&&(bf(),yf(t.SSF),e.revssf=Af(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Po?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",n=Rd.indexOf(e.bookType)>-1,i=ud();Lh(e=e||{});var a=ch(),s="",o=0;if(e.cellXfs=[],Ia(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),s="docProps/core.xml",It(a,s,gd(t.Props,e)),i.coreprops.push(s),Jt(e.rels,2,s,qt.CORE_PROPS),s="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var f=[],l=0;l<t.SheetNames.length;++l)(t.Workbook.Sheets[l]||{}).Hidden!=2&&f.push(t.SheetNames[l]);t.Props.SheetNames=f}for(t.Props.Worksheets=t.Props.SheetNames.length,It(a,s,md(t.Props)),i.extprops.push(s),Jt(e.rels,3,s,qt.EXT_PROPS),t.Custprops!==t.Props&&fn(t.Custprops||{}).length>0&&(s="docProps/custom.xml",It(a,s,xd(t.Custprops)),i.custprops.push(s),Jt(e.rels,4,s,qt.CUST_PROPS)),o=1;o<=t.SheetNames.length;++o){var u={"!id":{}},p=t.Sheets[t.SheetNames[o-1]],v=(p||{})["!type"]||"sheet";if(s="xl/worksheets/sheet"+o+"."+r,It(a,s,Wy(o-1,s,e,t,u)),i.sheets.push(s),Jt(e.wbrels,-1,"worksheets/sheet"+o+"."+r,qt.WS[0]),p){var c=p["!comments"],w=!1,m="";c&&c.length>0&&(m="xl/comments"+o+"."+r,It(a,m,Gy(c,m)),i.comments.push(m),Jt(u,-1,"../comments"+o+"."+r,qt.CMNT),w=!0),p["!legacy"]&&w&&It(a,"xl/drawings/vmlDrawing"+o+".vml",Id(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}u["!id"].rId1&&It(a,dd(s),Us(u))}return e.Strings!=null&&e.Strings.length>0&&(s="xl/sharedStrings."+r,It(a,s,zy(e.Strings,s,e)),i.strs.push(s),Jt(e.wbrels,-1,"sharedStrings."+r,qt.SST)),s="xl/workbook."+r,It(a,s,Hy(t,s)),i.workbooks.push(s),Jt(e.rels,1,s,qt.WB),s="xl/theme/theme1.xml",It(a,s,Pd(t.Themes,e)),i.themes.push(s),Jt(e.wbrels,-1,"theme/theme1.xml",qt.THEME),s="xl/styles."+r,It(a,s,qy(t,s,e)),i.styles.push(s),Jt(e.wbrels,-1,"styles."+r,qt.STY),t.vbaraw&&n&&(s="xl/vbaProject.bin",It(a,s,t.vbaraw),i.vba.push(s),Jt(e.wbrels,-1,"vbaProject.bin",qt.VBA)),s="xl/metadata."+r,It(a,s,Vy(s)),i.metadata.push(s),Jt(e.wbrels,-1,"metadata."+r,qt.XLMETA),It(a,"[Content_Types].xml",cd(i,e)),It(a,"_rels/.rels",Us(e.rels)),It(a,"xl/_rels/workbook."+r+".rels",Us(e.wbrels)),delete e.revssf,delete e.ssf,a}function j6(t,e){Ps=1024,t&&!t.SSF&&(t.SSF=Fn(Ar)),t&&t.SSF&&(bf(),yf(t.SSF),e.revssf=Af(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Po?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",n=Rd.indexOf(e.bookType)>-1,i=ud();Lh(e=e||{});var a=ch(),s="",o=0;if(e.cellXfs=[],Ia(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),s="docProps/core.xml",It(a,s,gd(t.Props,e)),i.coreprops.push(s),Jt(e.rels,2,s,qt.CORE_PROPS),s="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var f=[],l=0;l<t.SheetNames.length;++l)(t.Workbook.Sheets[l]||{}).Hidden!=2&&f.push(t.SheetNames[l]);t.Props.SheetNames=f}t.Props.Worksheets=t.Props.SheetNames.length,It(a,s,md(t.Props)),i.extprops.push(s),Jt(e.rels,3,s,qt.EXT_PROPS),t.Custprops!==t.Props&&fn(t.Custprops||{}).length>0&&(s="docProps/custom.xml",It(a,s,xd(t.Custprops)),i.custprops.push(s),Jt(e.rels,4,s,qt.CUST_PROPS));var u=["SheetJ5"];for(e.tcid=0,o=1;o<=t.SheetNames.length;++o){var p={"!id":{}},v=t.Sheets[t.SheetNames[o-1]],c=(v||{})["!type"]||"sheet";if(s="xl/worksheets/sheet"+o+"."+r,It(a,s,Gd(o-1,e,t,p)),i.sheets.push(s),Jt(e.wbrels,-1,"worksheets/sheet"+o+"."+r,qt.WS[0]),v){var w=v["!comments"],m=!1,y="";if(w&&w.length>0){var A=!1;w.forEach(function(D){D[1].forEach(function(P){P.T==!0&&(A=!0)})}),A&&(y="xl/threadedComments/threadedComment"+o+"."+r,It(a,y,m3(w,u,e)),i.threadedcomments.push(y),Jt(p,-1,"../threadedComments/threadedComment"+o+"."+r,qt.TCMNT)),y="xl/comments"+o+"."+r,It(a,y,Dd(w)),i.comments.push(y),Jt(p,-1,"../comments"+o+"."+r,qt.CMNT),m=!0}v["!legacy"]&&m&&It(a,"xl/drawings/vmlDrawing"+o+".vml",Id(o,v["!comments"])),delete v["!comments"],delete v["!legacy"]}p["!id"].rId1&&It(a,dd(s),Us(p))}return e.Strings!=null&&e.Strings.length>0&&(s="xl/sharedStrings."+r,It(a,s,Td(e.Strings,e)),i.strs.push(s),Jt(e.wbrels,-1,"sharedStrings."+r,qt.SST)),s="xl/workbook."+r,It(a,s,Yd(t)),i.workbooks.push(s),Jt(e.rels,1,s,qt.WB),s="xl/theme/theme1.xml",It(a,s,Pd(t.Themes,e)),i.themes.push(s),Jt(e.wbrels,-1,"theme/theme1.xml",qt.THEME),s="xl/styles."+r,It(a,s,Cd(t,e)),i.styles.push(s),Jt(e.wbrels,-1,"styles."+r,qt.STY),t.vbaraw&&n&&(s="xl/vbaProject.bin",It(a,s,t.vbaraw),i.vba.push(s),Jt(e.wbrels,-1,"vbaProject.bin",qt.VBA)),s="xl/metadata."+r,It(a,s,Od()),i.metadata.push(s),Jt(e.wbrels,-1,"metadata."+r,qt.XLMETA),u.length>1&&(s="xl/persons/person.xml",It(a,s,x3(u)),i.people.push(s),Jt(e.wbrels,-1,"persons/person.xml",qt.PEOPLE)),It(a,"[Content_Types].xml",cd(i,e)),It(a,"_rels/.rels",Us(e.rels)),It(a,"xl/_rels/workbook."+r+".rels",Us(e.wbrels)),delete e.revssf,delete e.ssf,a}function H6(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=aa(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function tp(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return zo(e.file,tr.write(t,{type:zt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return tr.write(t,e)}function W6(t,e){var r=Fn(e||{}),n=M6(t,r);return q6(n,r)}function q6(t,e){var r={},n=zt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=n;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var i=t.FullPaths?tr.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(e.type=="binary"||e.type=="base64")return i;i=new Uint8Array(_f(i))}return e.password&&typeof encrypt_agile<"u"?tp(encrypt_agile(i,e.password),e):e.type==="file"?zo(e.file,i):e.type=="string"?Lo(i):i}function z6(t,e){var r=e||{},n=s6(t,r);return tp(n,r)}function ki(t,e,r){r||(r="");var n=r+t;switch(e.type){case"base64":return Ro(Mo(n));case"binary":return Mo(n);case"string":return t;case"file":return zo(e.file,n,"utf8");case"buffer":return zt?oa(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):ki(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function G6(t,e){switch(e.type){case"base64":return Ro(t);case"binary":return t;case"string":return t;case"file":return zo(e.file,t,"binary");case"buffer":return zt?oa(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function W0(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",n=0;n<t.length;++n)r+=String.fromCharCode(t[n]);return e.type=="base64"?Ro(r):e.type=="string"?Lo(r):r;case"file":return zo(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function rp(t,e){wm(),Cy(t);var r=Fn(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=rp(t,r);return r.type="array",_f(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=t.SheetNames.indexOf(r.sheet),!t.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return ki(i6(t,r),r);case"slk":case"sylk":return ki(N4.from_sheet(t.Sheets[t.SheetNames[i]],r),r);case"htm":case"html":return ki(Jd(t.Sheets[t.SheetNames[i]],r),r);case"txt":return G6(np(t.Sheets[t.SheetNames[i]],r),r);case"csv":return ki(Fh(t.Sheets[t.SheetNames[i]],r),r,"\uFEFF");case"dif":return ki(L4.from_sheet(t.Sheets[t.SheetNames[i]],r),r);case"dbf":return W0(T4.from_sheet(t.Sheets[t.SheetNames[i]],r),r);case"prn":return ki(F4.from_sheet(t.Sheets[t.SheetNames[i]],r),r);case"rtf":return ki(R4.from_sheet(t.Sheets[t.SheetNames[i]],r),r);case"eth":return ki(Ed.from_sheet(t.Sheets[t.SheetNames[i]],r),r);case"fods":return ki(ep(t,r),r);case"wk1":return W0(u1.sheet_to_wk1(t.Sheets[t.SheetNames[i]],r),r);case"wk3":return W0(u1.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),W0($d(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),z6(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return W6(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function V6(t){if(!t.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(t.bookType=r.slice(1)),t.bookType=e[t.bookType]||t.bookType}}function X6(t,e,r){var n={};return n.type="file",n.file=e,V6(n),rp(t,n)}function Y6(t,e,r,n,i,a,s,o){var f=on(r),l=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),p=!0,v=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(v,"__rowNum__",{value:r,enumerable:!1})}catch{v.__rowNum__=r}else v.__rowNum__=r;if(!s||t[r])for(var c=e.s.c;c<=e.e.c;++c){var w=s?t[r][c]:t[n[c]+f];if(w===void 0||w.t===void 0){if(l===void 0)continue;a[c]!=null&&(v[a[c]]=l);continue}var m=w.v;switch(w.t){case"z":if(m==null)break;continue;case"e":m=m==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+w.t)}if(a[c]!=null){if(m==null)if(w.t=="e"&&m===null)v[a[c]]=null;else if(l!==void 0)v[a[c]]=l;else if(u&&m===null)v[a[c]]=null;else continue;else v[a[c]]=u&&(w.t!=="n"||w.t==="n"&&o.rawNumbers!==!1)?m:sa(w,m,o);m!=null&&(p=!1)}}return{row:v,isempty:p}}function vf(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,a=[],s=0,o="",f={s:{r:0,c:0},e:{r:0,c:0}},l=e||{},u=l.range!=null?l.range:t["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof u){case"string":f=cr(u);break;case"number":f=cr(t["!ref"]),f.s.r=u;break;default:f=u}n>0&&(i=0);var p=on(f.s.r),v=[],c=[],w=0,m=0,y=Array.isArray(t),A=f.s.r,D=0,P={};y&&!t[A]&&(t[A]=[]);var B=l.skipHidden&&t["!cols"]||[],re=l.skipHidden&&t["!rows"]||[];for(D=f.s.c;D<=f.e.c;++D)if(!(B[D]||{}).hidden)switch(v[D]=gn(D),r=y?t[A][D]:t[v[D]+p],n){case 1:a[D]=D-f.s.c;break;case 2:a[D]=v[D];break;case 3:a[D]=l.header[D-f.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),o=s=sa(r,null,l),m=P[s]||0,!m)P[s]=1;else{do o=s+"_"+m++;while(P[o]);P[s]=m,P[o]=1}a[D]=o}for(A=f.s.r+i;A<=f.e.r;++A)if(!(re[A]||{}).hidden){var ue=Y6(t,f,A,v,n,a,y,l);(ue.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(c[w++]=ue.row)}return c.length=w,c}var w1=/"/g;function K6(t,e,r,n,i,a,s,o){for(var f=!0,l=[],u="",p=on(r),v=e.s.c;v<=e.e.c;++v)if(n[v]){var c=o.dense?(t[r]||[])[v]:t[n[v]+p];if(c==null)u="";else if(c.v!=null){f=!1,u=""+(o.rawNumbers&&c.t=="n"?c.v:sa(c,null,o));for(var w=0,m=0;w!==u.length;++w)if((m=u.charCodeAt(w))===i||m===a||m===34||o.forceQuotes){u='"'+u.replace(w1,'""')+'"';break}u=="ID"&&(u='"ID"')}else c.f!=null&&!c.F?(f=!1,u="="+c.f,u.indexOf(",")>=0&&(u='"'+u.replace(w1,'""')+'"')):u="";l.push(u)}return o.blankrows===!1&&f?null:l.join(s)}function Fh(t,e){var r=[],n=e??{};if(t==null||t["!ref"]==null)return"";var i=cr(t["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),o=n.RS!==void 0?n.RS:`
172
- `,f=o.charCodeAt(0),l=new RegExp((a=="|"?"\\|":a)+"+$"),u="",p=[];n.dense=Array.isArray(t);for(var v=n.skipHidden&&t["!cols"]||[],c=n.skipHidden&&t["!rows"]||[],w=i.s.c;w<=i.e.c;++w)(v[w]||{}).hidden||(p[w]=gn(w));for(var m=0,y=i.s.r;y<=i.e.r;++y)(c[y]||{}).hidden||(u=K6(t,i,y,p,s,f,a,n),u!=null&&(n.strip&&(u=u.replace(l,"")),(u||n.blankrows!==!1)&&r.push((m++?o:"")+u)));return delete n.dense,r.join("")}function np(t,e){e||(e={}),e.FS=" ",e.RS=`
173
- `;var r=Fh(t,e);return r}function $6(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var i=cr(t["!ref"]),a="",s=[],o,f=[],l=Array.isArray(t);for(o=i.s.c;o<=i.e.c;++o)s[o]=gn(o);for(var u=i.s.r;u<=i.e.r;++u)for(a=on(u),o=i.s.c;o<=i.e.c;++o)if(e=s[o]+a,r=l?(t[u]||[])[o]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}f[f.length]=e+"="+n}return f}function ip(t,e,r){var n=r||{},i=+!n.skipHeader,a=t||{},s=0,o=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var f=typeof n.origin=="string"?Kr(n.origin):n.origin;s=f.r,o=f.c}var l,u={s:{c:0,r:0},e:{c:o,r:s+e.length-1+i}};if(a["!ref"]){var p=cr(a["!ref"]);u.e.c=Math.max(u.e.c,p.e.c),u.e.r=Math.max(u.e.r,p.e.r),s==-1&&(s=p.e.r+1,u.e.r=s+e.length-1+i)}else s==-1&&(s=0,u.e.r=e.length-1+i);var v=n.header||[],c=0;e.forEach(function(m,y){fn(m).forEach(function(A){(c=v.indexOf(A))==-1&&(v[c=v.length]=A);var D=m[A],P="z",B="",re=Qt({c:o+c,r:s+y+i});l=Ho(a,re),D&&typeof D=="object"&&!(D instanceof Date)?a[re]=D:(typeof D=="number"?P="n":typeof D=="boolean"?P="b":typeof D=="string"?P="s":D instanceof Date?(P="d",n.cellDates||(P="n",D=Ln(D)),B=n.dateNF||Ar[14]):D===null&&n.nullError&&(P="e",D=0),l?(l.t=P,l.v=D,delete l.w,delete l.R,B&&(l.z=B)):a[re]=l={t:P,v:D},B&&(l.z=B))})}),u.e.c=Math.max(u.e.c,o+v.length-1);var w=on(s);if(i)for(c=0;c<v.length;++c)a[gn(c+o)+w]={t:"s",v:v[c]};return a["!ref"]=Br(u),a}function J6(t,e){return ip(null,t,e)}function Ho(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=Kr(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?Ho(t,Qt(e)):Ho(t,Qt({r:e,c:r||0}))}function Z6(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function Q6(){return{SheetNames:[],Sheets:{}}}function e8(t,e,r,n){var i=1;if(!r)for(;i<=65535&&t.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||r;for(++i;i<=65535&&t.SheetNames.indexOf(r=s+i)!=-1;++i);}if(Xd(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function t8(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=Z6(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function r8(t,e){return t.z=e,t}function ap(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function n8(t,e,r){return ap(t,"#"+e,r)}function i8(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function a8(t,e,r,n){for(var i=typeof e!="string"?e:cr(e),a=typeof e=="string"?e:Br(e),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var f=Ho(t,s,o);f.t="n",f.F=a,delete f.v,s==i.s.r&&o==i.s.c&&(f.f=r,n&&(f.D=!0))}return t}var Ul={encode_col:gn,encode_row:on,encode_cell:Qt,encode_range:Br,decode_col:xh,decode_row:mh,split_cell:wx,decode_cell:Kr,decode_range:Gn,format_cell:sa,sheet_add_aoa:ad,sheet_add_json:ip,sheet_add_dom:Zd,aoa_to_sheet:Gs,json_to_sheet:J6,table_to_sheet:Qd,table_to_book:L6,sheet_to_csv:Fh,sheet_to_txt:np,sheet_to_json:vf,sheet_to_html:Jd,sheet_to_formulae:$6,sheet_to_row_object_array:vf,sheet_get_cell:Ho,book_new:Q6,book_append_sheet:e8,book_set_sheet_visibility:t8,cell_set_number_format:r8,cell_set_hyperlink:ap,cell_set_internal_link:n8,cell_add_comment:i8,sheet_set_array_formula:a8,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const s8=({columns:t,data:e,options:r,title:n,loading:i=!1,enableExport:a=!1})=>{const s=hr.useTheme(),[o,f]=qp.useState(null),l=p=>{const v=u.getPrePaginationRowModel().rows,c=u.getVisibleLeafColumns(),w=v.map(m=>{const y={};return c.forEach(A=>{if(A.id!=="mrt-row-actions"&&A.id!=="mrt-row-select"&&A.id!=="mrt-row-expand"&&A.id!=="actions"){const D=m.getValue(A.id);y[A.columnDef.header]=D}}),y});if(p==="excel"||p==="csv"){const m=Ul.json_to_sheet(w),y=Ul.book_new();Ul.book_append_sheet(y,m,"Data"),X6(y,`export.${p==="excel"?"xlsx":"csv"}`)}else if(p==="pdf"){const m=new ht,y=v.map(D=>c.filter(P=>P.id!=="mrt-row-actions"&&P.id!=="mrt-row-select"&&P.id!=="actions").map(P=>String(D.getValue(P.id)??""))),A=c.filter(D=>D.id!=="mrt-row-actions"&&D.id!=="mrt-row-select"&&D.id!=="actions").map(D=>String(D.columnDef.header??""));vm(m,{head:[A],body:y}),m.save("export.pdf")}f(null)},u=al.useMaterialReactTable({columns:t,data:e,localization:zp,enableRowSelection:!0,enableColumnOrdering:!0,enableGlobalFilter:!0,enablePagination:!0,manualFiltering:!1,manualPagination:!1,manualSorting:!1,state:{isLoading:i},muiTablePaperProps:{elevation:0,sx:{borderRadius:"12px",border:"1px solid",borderColor:s.palette.divider,overflow:"hidden",boxShadow:s.shadows[2]}},muiTableHeadCellProps:({column:p})=>{const v=p.columns&&p.columns.length>0,w=p.columnDef.meta?.headerBackgroundColor;return{sx:{backgroundColor:v?w||(s.palette.mode==="dark"?hr.alpha(s.palette.background.paper,.9):s.palette.grey[100]):s.palette.mode==="dark"?hr.alpha(s.palette.background.paper,.8):s.palette.grey[50],color:v?w?"#fff":s.palette.text.primary:s.palette.text.secondary,fontWeight:v?700:600,textTransform:"uppercase",fontSize:v?"0.80rem":"0.75rem",letterSpacing:"0.05em",borderBottom:`1px solid ${s.palette.divider}`,borderRight:v&&!w?`1px solid ${s.palette.divider}`:void 0,borderLeft:v&&!w?`1px solid ${s.palette.divider}`:void 0,textAlign:"center",py:2}}},muiTableBodyRowProps:({row:p})=>({sx:{cursor:"pointer",transition:"background-color 0.2s","&:hover":{backgroundColor:s.palette.mode==="dark"?hr.alpha(s.palette.primary.main,.08):hr.alpha(s.palette.primary.main,.04)},"&.Mui-selected":{backgroundColor:s.palette.mode==="dark"?hr.alpha(s.palette.primary.main,.16):hr.alpha(s.palette.primary.main,.08),"&:hover":{backgroundColor:s.palette.mode==="dark"?hr.alpha(s.palette.primary.main,.24):hr.alpha(s.palette.primary.main,.12)}}}}),muiTopToolbarProps:{sx:{backgroundColor:"transparent",p:2,justifyContent:"space-between"}},muiBottomToolbarProps:{sx:{backgroundColor:"transparent",borderTop:`1px solid ${s.palette.divider}`}},renderTopToolbarCustomActions:n?()=>gr.jsxs(hr.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[gr.jsx(hr.Box,{sx:{height:24,width:4,bgcolor:"primary.main",borderRadius:1}}),gr.jsx(hr.Box,{sx:{fontWeight:700,fontSize:"1.1rem",letterSpacing:"-0.01em"},children:n})]}):void 0,renderToolbarInternalActions:({table:p})=>gr.jsxs(hr.Box,{sx:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[a&&gr.jsxs(gr.Fragment,{children:[gr.jsx(hr.Tooltip,{title:"Exportar",children:gr.jsx(hr.IconButton,{onClick:v=>f(v.currentTarget),children:gr.jsx(E0.FileDownload,{})})}),gr.jsxs(hr.Menu,{anchorEl:o,open:!!o,onClose:()=>f(null),children:[gr.jsxs(hr.MenuItem,{onClick:()=>l("csv"),children:[gr.jsx(hr.ListItemIcon,{children:gr.jsx(E0.TableView,{fontSize:"small"})}),gr.jsx(hr.ListItemText,{children:"Exportar a CSV"})]}),gr.jsxs(hr.MenuItem,{onClick:()=>l("excel"),children:[gr.jsx(hr.ListItemIcon,{children:gr.jsx(E0.TableView,{fontSize:"small"})}),gr.jsx(hr.ListItemText,{children:"Exportar a Excel"})]}),gr.jsxs(hr.MenuItem,{onClick:()=>l("pdf"),children:[gr.jsx(hr.ListItemIcon,{children:gr.jsx(E0.PictureAsPdf,{fontSize:"small"})}),gr.jsx(hr.ListItemText,{children:"Exportar a PDF"})]})]})]}),gr.jsx(al.MRT_ToggleFiltersButton,{table:p})]}),...r});return gr.jsx(al.MaterialReactTable,{table:u})};exports.CodeplexTable=s8;exports._typeof=Vt;