PageSourceSearch

https://www.mentura.ai/assets/browser-image-compression-Dzd0jNqw.js

js mentura.ai collected 2026-10-05 13:31:07 UTC 52,474 bytes, 1 lines download raw bytes

vendor: 8,702 bytes, line 1
1function e(e,r){return new Promise(function(n,i){let o;return t(e).then(function(e){try{return o=e,n(new Blob([r.slice(0,2),o,r.slice(2)],{type:"image/jpeg"}))}catch(t){return i(t)}},i)})}const t=e=>new Promise((t,r)=>{const n=new FileReader;n.addEventListener("load",({target:{result:e}})=>{const n=new DataView(e);let i=0;if(65496!==n.getUint16(i))return r("not a valid JPEG");for(i+=2;;){const o=n.getUint16(i);if(65498===o)break;const a=n.getUint16(i+2);if(65505===o&&1165519206===n.getUint32(i+4)){const o=i+10;let f;switch(n.getUint16(o)){case 18761:f=!0;break;case 19789:f=!1;break;default:return r("TIFF header contains invalid endian")}if(42!==n.getUint16(o+2,f))return r("TIFF header contains invalid version");const s=n.getUint32(o+4,f),l=o+s+2+12*n.getUint16(o+s,f);for(let e=o+s+2;e<l;e+=12)if(274==n.getUint16(e,f)){if(3!==n.getUint16(e+2,f))return r("Orientation data type is invalid");if(1!==n.getUint32(e+4,f))return r("Orientation data count is invalid");n.setUint16(e+8,1,f);break}return t(e.slice(i,i+2+a))}i+=2+a}return t(new Blob)}),n.readAsArrayBuffer(e)});var r,n,i,o={},a={get exports(){return o},set exports(e){o=e}};i={},a.exports=i,i.parse=function(e,t){for(var r=i.bin.readUshort,n=i.bin.readUint,o=0,a={},f=new Uint8Array(e),s=f.length-4;101010256!=n(f,s);)s--;o=s,o+=4;var l=r(f,o+=4);r(f,o+=2);var c=n(f,o+=2),u=n(f,o+=4);o+=4,o=u;for(var h=0;h<l;h++){n(f,o),o+=4,o+=4,o+=4,n(f,o+=4),c=n(f,o+=4);var d=n(f,o+=4),g=r(f,o+=4),A=r(f,o+2),w=r(f,o+4);o+=6;var p=n(f,o+=8);o+=4,o+=g+A+w,i._readLocal(f,p,a,c,d,t)}return a},i._readLocal=function(e,t,r,n,o,a){var f=i.bin.readUshort,s=i.bin.readUint;s(e,t),f(e,t+=4),f(e,t+=2);var l=f(e,t+=2);s(e,t+=2),s(e,t+=4),t+=4;var c=f(e,t+=8),u=f(e,t+=2);t+=2;var h=i.bin.readUTF8(e,t,c);if(t+=c,t+=u,a)r[h]={size:o,csize:n};else{var d=new Uint8Array(e.buffer,t);if(0==l)r[h]=new Uint8Array(d.buffer.slice(t,t+n));else{if(8!=l)throw"unknown compression method: "+l;var g=new Uint8Array(o);i.inflateRaw(d,g),r[h]=g}}},i.inflateRaw=function(e,t){return i.F.inflate(e,t)},i.inflate=function(e,t){return e[0],e[1],i.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},i.deflate=function(e,t){null==t&&(t={level:6});var r=0,n=new Uint8Array(50+Math.floor(1.1*e.length));n[r]=120,n[r+1]=156,r+=2,r=i.F.deflateRaw(e,n,r,t.level);var o=i.adler(e,0,e.length);return n[r+0]=o>>>24&255,n[r+1]=o>>>16&255,n[r+2]=o>>>8&255,n[r+3]=o>>>0&255,new Uint8Array(n.buffer,0,r+4)},i.deflateRaw=function(e,t){null==t&&(t={level:6});var r=new Uint8Array(50+Math.floor(1.1*e.length)),n=i.F.deflateRaw(e,r,n,t.level);return new Uint8Array(r.buffer,0,n)},i.encode=function(e,t){null==t&&(t=!1);var r=0,n=i.bin.writeUint,o=i.bin.writeUshort,a={};for(var f in e){var s=!i._noNeed(f)&&!t,l=e[f],c=i.crc.crc(l,0,l.length);a[f]={cpr:s,usize:l.length,crc:c,file:s?i.deflateRaw(l):l}}for(var f in a)r+=a[f].file.length+30+46+2*i.bin.sizeUTF8(f);r+=22;var u=new Uint8Array(r),h=0,d=[];for(var f in a){var g=a[f];d.push(h),h=i._writeHeader(u,h,f,g,0)}var A=0,w=h;for(var f in a)g=a[f],d.push(h),h=i._writeHeader(u,h,f,g,1,d[A++]);var p=h-w;return n(u,h,101010256),h+=4,o(u,h+=4,A),o(u,h+=2,A),n(u,h+=2,p),n(u,h+=4,w),h+=4,h+=2,u.buffer},i._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},i._writeHeader=function(e,t,r,n,o,a){var f=i.bin.writeUint,s=i.bin.writeUshort,l=n.file;return f(e,t,0==o?67324752:33639248),t+=4,1==o&&(t+=2),s(e,t,20),s(e,t+=2,0),s(e,t+=2,n.cpr?8:0),f(e,t+=2,0),f(e,t+=4,n.crc),f(e,t+=4,l.length),f(e,t+=4,n.usize),s(e,t+=4,i.bin.sizeUTF8(r)),s(e,t+=2,0),t+=2,1==o&&(t+=2,t+=2,f(e,t+=6,a),t+=4),t+=i.bin.writeUTF8(e,t,r),0==o&&(e.set(l,t),t+=l.length),t},i.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var r=t,n=0;n<8;n++)1&r?r=3988292384^r>>>1:r>>>=1;e[t]=r}return e}(),update:function(e,t,r,n){for(var o=0;o<n;o++)e=i.crc.table[255&(e^t[r+o])]^e>>>8;return e},crc:function(e,t,r){return 4294967295^i.crc.update(4294967295,e,t,r)}},i.adler=function(e,t,r){for(var n=1,i=0,o=t,a=t+r;o<a;){for(var f=Math.min(o+5552,a);o<f;)i+=n+=e[o++];n%=65521,i%=65521}return i<<16|n},i.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,r){e[t]=255&r,e[t+1]=r>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,r){e[t]=255&r,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},readASCII:function(e,t,r){for(var n="",i=0;i<r;i++)n+=String.fromCharCode(e[t+i]);return n},writeASCII:function(e,t,r){for(var n=0;n<r.length;n++)e[t+n]=r.charCodeAt(n)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,r){for(var n,o="",a=0;a<r;a++)o+="%"+i.bin.pad(e[t+a].toString(16));try{n=decodeURIComponent(o)}catch(f){return i.bin.readASCII(e,t,r)}return n},writeUTF8:function(e,t,r){for(var n=r.length,i=0,o=0;o<n;o++){var a=r.charCodeAt(o);if(4294967168&a)if(4294965248&a)if(4294901760&a){if(4292870144&a)throw"e";e[t+i]=240|a>>18,e[t+i+1]=128|a>>12&63,e[t+i+2]=128|a>>6&63,e[t+i+3]=128|63&a,i+=4}else e[t+i]=224|a>>12,e[t+i+1]=128|a>>6&63,e[t+i+2]=128|63&a,i+=3;else e[t+i]=192|a>>6,e[t+i+1]=128|63&a,i+=2;else e[t+i]=a,i++}return i},sizeUTF8:function(e){for(var t=e.length,r=0,n=0;n<t;n++){var i=e.charCodeAt(n);if(4294967168&i)if(4294965248&i)if(4294901760&i){if(4292870144&i)throw"e";r+=4}else r+=3;else r+=2;else r++}return r}},i.F={},i.F.deflateRaw=function(e,t,r,n){var o=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][n],a=i.F.U,f=i.F._goodIndex;i.F._hash;var s=i.F._putsE,l=0,c=r<<3,u=0,h=e.length;if(0==n){for(;l<h;)s(t,c,l+(E=Math.min(65535,h-l))==h?1:0),c=i.F._copyExact(e,l,E,t,c+8),l+=E;return c>>>3}var d=a.lits,g=a.strt,A=a.prev,w=0,p=0,v=0,m=0,b=0,y=0;for(h>2&&(g[y=i.F._hash(e,0)]=0),l=0;l<h;l++){if(b=y,l+1<h-2){y=i.F._hash(e,l+1);var U=l+1&32767;A[U]=g[y],g[y]=U}if(u<=l){(w>14e3||p>26697)&&h-l>100&&(u<l&&(d[w]=l-u,w+=2,u=l),c=i.F._writeBlock(l==h-1||u==h?1:0,d,w,m,e,v,l-v,t,c),w=p=m=0,v=l);var F=0;l<h-2&&(F=i.F._bestMatch(e,l,A,b,Math.min(o[2],h-l),o[3]));var E=F>>>16,_=65535&F;if(0!=F){_=65535&F;var C=f(E=F>>>16,a.of0);a.lhst[257+C]++;var I=f(_,a.df0);a.dhst[I]++,m+=a.exb[C]+a.dxb[I],d[w]=E<<23|l-u,d[w+1]=_<<16|C<<8|I,w+=2,u=l+E}else a.lhst[e[l]]++;p++}}for(v==l&&0!=e.length||(u<l&&(d[w]=l-u,w+=2,u=l),c=i.F._writeBlock(1,d,w,m,e,v,l-v,t,c),w=0,p=0,w=p=m=0,v=l);7&c;)c++;return c>>>3},i.F._bestMatch=function(e,t,r,n,o,a){var f=32767&t,s=r[f],l=f-s+32768&32767;if(s==f||n!=i.F._hash(e,t-l))return 0;for(var c=0,u=0,h=Math.min(32767,t);l<=h&&0!=--a&&s!=f;){if(0==c||e[t+c]==e[t+c-l]){var d=i.F._howLong(e,t,l);if(d>c){if(u=l,(c=d)>=o)break;l+2<d&&(d=l+2);for(var g=0,A=0;A<d-2;A++){var w=t-l+A+32768&32767,p=w-r[w]+32768&32767;p>g&&(g=p,s=w)}}}l+=(f=s)-(s=r[f])+32768&32767}return c<<16|u},i.F._howLong=function(e,t,r){if(e[t]!=e[t-r]||e[t+1]!=e[t+1-r]||e[t+2]!=e[t+2-r])return 0;var n=t,i=Math.min(e.length,t+258);for(t+=3;t<i&&e[t]==e[t-r];)t++;return t-n},i.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},i.saved=0,i.F._writeBlock=function(e,t,r,n,o,a,f,s,l){var c,u,h,d,g,A,w,p,v,m=i.F.U,b=i.F._putsF,y=i.F._putsE;m.lhst[256]++,u=(c=i.F.getTrees())[0],h=c[1],d=c[2],g=c[3],A=c[4],w=c[5],p=c[6],v=c[7];var U=32+(l+3&7?8-(l+3&7):0)+(f<<3),F=n+i.F.contSize(m.fltree,m.lhst)+i.F.contSize(m.fdtree,m.dhst),E=n+i.F.contSize(m.ltree,m.lhst)+i.F.contSize(m.dtree,m.dhst);E+=14+3*w+i.F.contSize(m.itree,m.ihst)+(2*m.ihst[16]+3*m.ihst[17]+7*m.ihst[18]);for(var _=0;_<286;_++)m.lhst[_]=0;for(_=0;_<30;_++)m.dhst[_]=0;for(_=0;_<19;_++)m.ihst[_]=0;var C=U<F&&U<E?0:F<E?1:2;if(b(s,l,e),b(s,l+1,C),l+=3,0==C){for(;7&l;)l++;l=i.F._copyExact(o,a,f,s,l)}else{var I,B;if(1==C&&(I=m.fltree,B=m.fdtree),2==C){i.F.makeCodes(m.ltree,u),i.F.revCodes(m.ltree,u),i.F.makeCodes(m.dtree,h),i.F.revCodes(m.dtree,h),i.F.makeCodes(m.itree,d),i.F.revCodes(m.itree,d),I=m.ltree,B=m.dtree,y(s,l,g-257),y(s,l+=5,A-1),y(s,l+=5,w-4),l+=4;for(var M=0;M<w;M++)y(s,l+3*M,m.itree[1+(m.ordr[M]<<1)]);l+=3*w,l=i.F._codeTiny(p,m.itree,s,l),l=i.F._codeTiny(v,m.itree,s,l)}for(var R=a,S=0;S<r;S+=2){for(var x=t[S],T=x>>>23,Q=R+(8388607&x);R<Q;)l=i.F._writeLit(o[R++],I,s,l);if(0!=T){var H=t[S+1],k=H>>16,O=H>>8&255,P=255&H;y(s,l=i.F._writeLit(257+O,I,s,l),T-m.of0[O]),l+=m.exb[O],b(s,l=i.F._writeLit(P,B,s,l),k-m.df0[P]),l+=m.dxb[P],R+=T}}l=i.F._writeLit(256,I,s,l)}return l},i.F._copyExact=function(e,t,r,n,i){var o=i>>>3;return n[o]=r,n[o+1]=r>>>8,n[o+2]=255-n[o],n[o+3]=255-n[o+1],o+=4,n.set(new Uint8Array(e.buffer,t,r),o),i+(r+4<<3)},i.F.getTrees=function(){for(var e=i.F.U,t=i.F._hufTree(e.lhst,e.ltree,15),r=i.F._hufTree(e.dhst,e.dtree,15),n=[],o=i.F._lenCodes(e.ltree,
vendor: 2,357 bytes, line 1
1n),a=[],f=i.F._lenCodes(e.dtree,a),s=0;s<n.length;s+=2)e.ihst[n[s]]++;for(s=0;s<a.length;s+=2)e.ihst[a[s]]++;for(var l=i.F._hufTree(e.ihst,e.itree,7),c=19;c>4&&0==e.itree[1+(e.ordr[c-1]<<1)];)c--;return[t,r,l,o,f,c,n,a]},i.F.getSecond=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(e[r+1]);return t},i.F.nonZero=function(e){for(var t="",r=0;r<e.length;r+=2)0!=e[r+1]&&(t+=(r>>1)+",");return t},i.F.contSize=function(e,t){for(var r=0,n=0;n<t.length;n++)r+=t[n]*e[1+(n<<1)];return r},i.F._codeTiny=function(e,t,r,n){for(var o=0;o<e.length;o+=2){var a=e[o],f=e[o+1];n=i.F._writeLit(a,t,r,n);var s=16==a?2:17==a?3:7;a>15&&(i.F._putsE(r,n,f,s),n+=s)}return n},i.F._lenCodes=function(e,t){for(var r=e.length;2!=r&&0==e[r-1];)r-=2;for(var n=0;n<r;n+=2){var i=e[n+1],o=n+3<r?e[n+3]:-1,a=n+5<r?e[n+5]:-1,f=0==n?-1:e[n-1];if(0==i&&o==i&&a==i){for(var s=n+5;s+2<r&&e[s+2]==i;)s+=2;(l=Math.min(s+1-n>>>1,138))<11?t.push(17,l-3):t.push(18,l-11),n+=2*l-2}else if(i==f&&o==i&&a==i){for(s=n+5;s+2<r&&e[s+2]==i;)s+=2;var l=Math.min(s+1-n>>>1,6);t.push(16,l-3),n+=2*l-2}else t.push(i,0)}return r>>>1},i.F._hufTree=function(e,t,r){var n=[],o=e.length,a=t.length,f=0;for(f=0;f<a;f+=2)t[f]=0,t[f+1]=0;for(f=0;f<o;f++)0!=e[f]&&n.push({lit:f,f:e[f]});var s=n.length,l=n.slice(0);if(0==s)return 0;if(1==s){var c=n[0].lit;return l=0==c?1:0,t[1+(c<<1)]=1,t[1+(l<<1)]=1,1}n.sort(function(e,t){return e.f-t.f});var u=n[0],h=n[1],d=0,g=1,A=2;for(n[0]={lit:-1,f:u.f+h.f,l:u,r:h,d:0};g!=s-1;)u=d!=g&&(A==s||n[d].f<n[A].f)?n[d++]:n[A++],h=d!=g&&(A==s||n[d].f<n[A].f)?n[d++]:n[A++],n[g++]={lit:-1,f:u.f+h.f,l:u,r:h};var w=i.F.setDepth(n[g-1],0);for(w>r&&(i.F.restrictDepth(l,r,w),w=r),f=0;f<s;f++)t[1+(l[f].lit<<1)]=l[f].d;return w},i.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(i.F.setDepth(e.l,t+1),i.F.setDepth(e.r,t+1))},i.F.restrictDepth=function(e,t,r){var n=0,i=1<<r-t,o=0;for(e.sort(function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d}),n=0;n<e.length&&e[n].d>t;n++){var a=e[n].d;e[n].d=t,o+=i-(1<<r-a)}for(o>>>=r-t;o>0;)(a=e[n].d)<t?(e[n].d++,o-=1<<t-a-1):n++;for(;n>=0;n--)e[n].d==t&&o<0&&(e[n].d--,o++)},i.F._goodIndex=function(e,t){var r=0;return t[16|r]<=e&&(r|=16),t[8|r]<=e&&(r|=8),t[4|r]<=e&&(r|=4),t[2|r]<=e&&(r|=2),t[1|r]<=e&&(r|=1),r},i.F._writeLit=function(e,t,r,n){return i.F._putsF(r,n,t[e<<1]),n+t[1+(e<<1)]},i.F.inflate=function(e,t){var r=Uint8Array;
vendor: 9,953 bytes, line 1
1if(3==e[0]&&0==e[1])return t||new r(0);var n=i.F,o=n._bitsF,a=n._bitsE,f=n._decodeTiny,s=n.makeCodes,l=n.codes2map,c=n._get17,u=n.U,h=null==t;h&&(t=new r(e.length>>>2<<3));for(var d,g,A=0,w=0,p=0,v=0,m=0,b=0,y=0,U=0,F=0;0==A;)if(A=o(e,F,1),w=o(e,F+1,2),F+=3,0!=w){if(h&&(t=i.F._check(t,U+(1<<17))),1==w&&(d=u.flmap,g=u.fdmap,b=511,y=31),2==w){p=a(e,F,5)+257,v=a(e,F+5,5)+1,m=a(e,F+10,4)+4,F+=14;for(var E=0;E<38;E+=2)u.itree[E]=0,u.itree[E+1]=0;var _=1;for(E=0;E<m;E++){var C=a(e,F+3*E,3);u.itree[1+(u.ordr[E]<<1)]=C,C>_&&(_=C)}F+=3*m,s(u.itree,_),l(u.itree,_,u.imap),d=u.lmap,g=u.dmap,F=f(u.imap,(1<<_)-1,p+v,e,F,u.ttree);var I=n._copyOut(u.ttree,0,p,u.ltree);b=(1<<I)-1;var B=n._copyOut(u.ttree,p,v,u.dtree);y=(1<<B)-1,s(u.ltree,I),l(u.ltree,I,d),s(u.dtree,B),l(u.dtree,B,g)}for(;;){var M=d[c(e,F)&b];F+=15&M;var R=M>>>4;if(R>>>8==0)t[U++]=R;else{if(256==R)break;var S=U+R-254;if(R>264){var x=u.ldef[R-257];S=U+(x>>>3)+a(e,F,7&x),F+=7&x}var T=g[c(e,F)&y];F+=15&T;var Q=T>>>4,H=u.ddef[Q],k=(H>>>4)+o(e,F,15&H);for(F+=15&H,h&&(t=i.F._check(t,U+(1<<17)));U<S;)t[U]=t[U++-k],t[U]=t[U++-k],t[U]=t[U++-k],t[U]=t[U++-k];U=S}}}else{7&F&&(F+=8-(7&F));var O=4+(F>>>3),P=e[O-4]|e[O-3]<<8;h&&(t=i.F._check(t,U+P)),t.set(new r(e.buffer,e.byteOffset+O,P),U),F=O+P<<3,U+=P}return t.length==U?t:t.slice(0,U)},i.F._check=function(e,t){var r=e.length;if(t<=r)return e;var n=new Uint8Array(Math.max(r<<1,t));return n.set(e,0),n},i.F._decodeTiny=function(e,t,r,n,o,a){for(var f=i.F._bitsE,s=i.F._get17,l=0;l<r;){var c=e[s(n,o)&t];o+=15&c;var u=c>>>4;if(u<=15)a[l]=u,l++;else{var h=0,d=0;16==u?(d=3+f(n,o,2),o+=2,h=a[l-1]):17==u?(d=3+f(n,o,3),o+=3):18==u&&(d=11+f(n,o,7),o+=7);for(var g=l+d;l<g;)a[l]=h,l++}}return o},i.F._copyOut=function(e,t,r,n){for(var i=0,o=0,a=n.length>>>1;o<r;){var f=e[o+t];n[o<<1]=0,n[1+(o<<1)]=f,f>i&&(i=f),o++}for(;o<a;)n[o<<1]=0,n[1+(o<<1)]=0,o++;return i},i.F.makeCodes=function(e,t){for(var r,n,o,a,f=i.F.U,s=e.length,l=f.bl_count,c=0;c<=t;c++)l[c]=0;for(c=1;c<s;c+=2)l[e[c]]++;var u=f.next_code;for(r=0,l[0]=0,n=1;n<=t;n++)r=r+l[n-1]<<1,u[n]=r;for(o=0;o<s;o+=2)0!=(a=e[o+1])&&(e[o]=u[a],u[a]++)},i.F.codes2map=function(e,t,r){for(var n=e.length,o=i.F.U.rev15,a=0;a<n;a+=2)if(0!=e[a+1])for(var f=a>>1,s=e[a+1],l=f<<4|s,c=t-s,u=e[a]<<c,h=u+(1<<c);u!=h;)r[o[u]>>>15-t]=l,u++},i.F.revCodes=function(e,t){for(var r=i.F.U.rev15,n=15-t,o=0;o<e.length;o+=2){var a=e[o]<<t-e[o+1];e[o]=r[a]>>>n}},i.F._putsE=function(e,t,r){r<<=7&t;var n=t>>>3;e[n]|=r,e[n+1]|=r>>>8},i.F._putsF=function(e,t,r){r<<=7&t;var n=t>>>3;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},i.F._bitsE=function(e,t,r){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<r)-1},i.F._bitsF=function(e,t,r){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<r)-1},i.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},i.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},i.F.U=(r=Uint16Array,n=Uint32Array,{next_code:new r(16),bl_count:new r(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[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,999,999,999],exb:[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],ldef:new r(32),df0:[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,65535,65535],dxb:[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],ddef:new n(32),flmap:new r(512),fltree:[],fdmap:new r(32),fdtree:[],lmap:new r(32768),ltree:[],ttree:[],dmap:new r(32768),dtree:[],imap:new r(512),itree:[],rev15:new r(32768),lhst:new n(286),dhst:new n(30),ihst:new n(19),lits:new n(15e3),strt:new r(65536),prev:new r(32768)}),function(){for(var e=i.F.U,t=0;t<32768;t++){var r=t;r=(4278255360&(r=(4042322160&(r=(3435973836&(r=(2863311530&r)>>>1|(1431655765&r)<<1))>>>2|(858993459&r)<<2))>>>4|(252645135&r)<<4))>>>8|(16711935&r)<<8,e.rev15[t]=(r>>>16|r<<16)>>>17}function n(e,t,r){for(;0!=t--;)e.push(0,r)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];n(e.fltree,144,8),n(e.fltree,112,9),n(e.fltree,24,7),n(e.fltree,8,8),i.F.makeCodes(e.fltree,9),i.F.codes2map(e.fltree,9,e.flmap),i.F.revCodes(e.fltree,9),n(e.fdtree,32,5),i.F.makeCodes(e.fdtree,5),i.F.codes2map(e.fdtree,5,e.fdmap),i.F.revCodes(e.fdtree,5),n(e.itree,19,0),n(e.ltree,286,0),n(e.dtree,30,0),n(e.ttree,320,0)}();var f,s=(f={__proto__:null,default:o},[o].forEach(function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach(function(t){if("default"!==t&&!(t in f)){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(f,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})}),Object.freeze(f));const l=function(){var e={nextZero(e,t){for(;0!=e[t];)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,r){e[t]=r>>8&255,e[t+1]=255&r},readUint:(e,t)=>16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r},readASCII(e,t,r){let n="";for(let i=0;i<r;i++)n+=String.fromCharCode(e[t+i]);return n},writeASCII(e,t,r){for(let n=0;n<r.length;n++)e[t+n]=r.charCodeAt(n)},readBytes(e,t,r){const n=[];for(let i=0;i<r;i++)n.push(e[t+i]);return n},pad:e=>e.length<2?`0${e}`:e,readUTF8(t,r,n){let i,o="";for(let f=0;f<n;f++)o+=`%${e.pad(t[r+f].toString(16))}`;try{i=decodeURIComponent(o)}catch(a){return e.readASCII(t,r,n)}return i}};function t(t,r,n,i){const a=r*n,f=o(i),s=Math.ceil(r*f/8),l=new Uint8Array(4*a),c=new Uint32Array(l.buffer),{ctype:u}=i,{depth:h}=i,d=e.readUshort;if(6==u){const e=a<<2;if(8==h)for(var g=0;g<e;g+=4)l[g]=t[g],l[g+1]=t[g+1],l[g+2]=t[g+2],l[g+3]=t[g+3];if(16==h)for(g=0;g<e;g++)l[g]=t[g<<1]}else if(2==u){const e=i.tabs.tRNS;if(null==e){if(8==h)for(g=0;g<a;g++){var A=3*g;c[g]=255<<24|t[A+2]<<16|t[A+1]<<8|t[A]}if(16==h)for(g=0;g<a;g++)A=6*g,c[g]=255<<24|t[A+4]<<16|t[A+2]<<8|t[A]}else{var w=e[0];const r=e[1],n=e[2];if(8==h)for(g=0;g<a;g++){var p=g<<2;A=3*g,c[g]=255<<24|t[A+2]<<16|t[A+1]<<8|t[A],t[A]==w&&t[A+1]==r&&t[A+2]==n&&(l[p+3]=0)}if(16==h)for(g=0;g<a;g++)p=g<<2,A=6*g,c[g]=255<<24|t[A+4]<<16|t[A+2]<<8|t[A],d(t,A)==w&&d(t,A+2)==r&&d(t,A+4)==n&&(l[p+3]=0)}}else if(3==u){const e=i.tabs.PLTE,o=i.tabs.tRNS,f=o?o.length:0;if(1==h)for(var v=0;v<n;v++){var m=v*s,b=v*r;for(g=0;g<r;g++){p=b+g<<2;var y=3*(U=t[m+(g>>3)]>>7-(7&g)&1);l[p]=e[y],l[p+1]=e[y+1],l[p+2]=e[y+2],l[p+3]=U<f?o[U]:255}}if(2==h)for(v=0;v<n;v++)for(m=v*s,b=v*r,g=0;g<r;g++)p=b+g<<2,y=3*(U=t[m+(g>>2)]>>6-((3&g)<<1)&3),l[p]=e[y],l[p+1]=e[y+1],l[p+2]=e[y+2],l[p+3]=U<f?o[U]:255;if(4==h)for(v=0;v<n;v++)for(m=v*s,b=v*r,g=0;g<r;g++)p=b+g<<2,y=3*(U=t[m+(g>>1)]>>4-((1&g)<<2)&15),l[p]=e[y],l[p+1]=e[y+1],l[p+2]=e[y+2],l[p+3]=U<f?o[U]:255;if(8==h)for(g=0;g<a;g++){var U;p=g<<2,y=3*(U=t[g]),l[p]=e[y],l[p+1]=e[y+1],l[p+2]=e[y+2],l[p+3]=U<f?o[U]:255}}else if(4==u){if(8==h)for(g=0;g<a;g++){p=g<<2;var F=t[E=g<<1];l[p]=F,l[p+1]=F,l[p+2]=F,l[p+3]=t[E+1]}if(16==h)for(g=0;g<a;g++){var E;p=g<<2,F=t[E=g<<2],l[p]=F,l[p+1]=F,l[p+2]=F,l[p+3]=t[E+2]}}else if(0==u)for(w=i.tabs.tRNS?i.tabs.tRNS:-1,v=0;v<n;v++){const e=v*s,n=v*r;if(1==h)for(var _=0;_<r;_++){var C=(F=255*(t[e+(_>>>3)]>>>7-(7&_)&1))==255*w?0:255;c[n+_]=C<<24|F<<16|F<<8|F}else if(2==h)for(_=0;_<r;_++)C=(F=85*(t[e+(_>>>2)]>>>6-((3&_)<<1)&3))==85*w?0:255,c[n+_]=C<<24|F<<16|F<<8|F;else if(4==h)for(_=0;_<r;_++)C=(F=17*(t[e+(_>>>1)]>>>4-((1&_)<<2)&15))==17*w?0:255,c[n+_]=C<<24|F<<16|F<<8|F;else if(8==h)for(_=0;_<r;_++)C=(F=t[e+_])==w?0:255,c[n+_]=C<<24|F<<16|F<<8|F;else if(16==h)for(_=0;_<r;_++)F=t[e+(_<<1)],C=d(t,e+(_<<1))==w?0:255,c[n+_]=C<<24|F<<16|F<<8|F}return l}function r(e,t,r,f){const s=o(e),l=Math.ceil(r*s/8),c=new Uint8Array((l+1+e.interlace)*f);return t=e.tabs.CgBI?i(t,c):n(t,c),0==e.interlace?t=a(t,e,0,r,f):1==e.interlace&&(t=function(e,t){const r=t.width,n=t.height,i=o(t),f=i>>3,s=Math.ceil(r*i/8),l=new Uint8Array(n*s);let c=0;const u=[0,0,4,0,2,0,1],h=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],g=[8,8,4,4,2,2,1];let A=0;for(;A<7;){const o=d[A],p=g[A];let v=0,m=0,b=u[A];for(;b<n;)b+=o,m++;let y=h[A];for(;y<r;)y+=p,v++;const U=Math.ceil(v*i/8);a(e,t,c,v,m);let F=0,E=u[A];for(;E<n;){let t=h[A],n=c+F*U<<3;for(;t<r;){var w;if(1==i&&(w=(w=e[n>>3])>>7-(7&n)&1,l[E*s+(t>>3)]|=w<<7-(7&t)),2==i&&(w=(w=e[n>>3])>>6-(7&n)&3,l[E*s+(t>>2)]|=w<<6-((3&t)<<1)),4==i&&(w=(w=e[n>>3])>>4-(7&n)&15,l[E*s+(t>>1)]|=w<<4-((1&t)<<2)),i>=8){const r=E*s+t*f;for(let t=0;t<f;t++)l[r+t]=e[(n>>3)+t]}n+=i,t+=p}F++,E+=o}v*m!=0&&(c+=m*(1+U)),A+=1}return l}(t,e)),t}function n(e,t){return i(new Uint8Array(e.buffer,2,e.length-6),t)}var i=function(){const e={H:{}};return e.H.N=function(t,r){const n=Uint8Array;let i,o,a=0,f=0,s=0,l=0,c=0,u=0,h=0,d=0,g=0;if(3==t[0]&&0==t[1])return r||new n(0);const A=e.H,w=A.b,p=A.e,v=A.R,m=A.n,b=A.A,y=A.Z,U=A.m,F=null==r;for(F&&(r=new n(t.length>>>2<<5));0==a;)if(a=w(t,g,1),f=w(t,g+1,2),g+=3,0!=f){if(F&&(r=e.H.W(r,d+(1<<17))),1==f&&(i=U.J,o=U.h,u=511,h=31),2==f){s=p(t,g,5)+257,l=p(t,g+5,5)+1,c=p(t,g+10,4)+4,g+=14;let e=1;for(var E=0;E<38;E+=2)U.Q[E]=0,U.Q[E+1]=0;for(E=0;E<c;E++){const r=p(t,g+3*E,3);U.Q[1+(U.X[E]<<1)]=r,r>e&&(e=r)}g+=3*c,m(U.Q,e),b(U.Q,e,U.u),i=U.w,o=U.d,g=v(U.u,(1<<e)-1,s+l,t,g,U.v);const r=A.V(U.v,0,s,U.C);u=(1<<r)-1;const n=A.V(U.v,s,l,U.D);h=(1<<n)-1,m(U.C,r),b(U.C,r,i),m(U.D,n),b(U.D,n,o)}for(;;){const e=i[y(t,g)&u];g+=15&e;const n=e>>>4;if(n>>>8==0)r[d++]=n;else{if(256==n)break;{let e=d+n-254;if(n>264){const r=U.q[n-257];e=d+(r>>>3)+p(t,g,7&r),g+=7&r}const i=o[y(t,g)&h];g+=15&i;const a=i>>>4,f=U.c[a],s=(f>>>4)+w(t,g,15&f);for(g+=15&f;d<e;)r[d]=r[d++-s],r[d]=r[d++-s],r[d]=r[d++-s],r[d]=r[d++-s];d=e}}}}else{7&g&&(g+=8-(7&g));const i=4+(g>>>3),o=t[i-4]|t[i-3]<<8;F&&(r=e.H.W(r,d+o)),r.set(new n(t.buffer,t.byteOffset+i,o),d),g=i+o<<3,d+=o}return r.length==d?r:r.slice(0,d)},e.H.W=function(e,t){const r=e.length;if(t<=r)return e;const n=new Uint8Array(r<<1);return n.set(e,0),n},e.H.R=function(t,r,n,i,o,a){const f=e.H.e,s=e.H.Z;let l=0;for(;l<n;){const e=t[s(i,o)&r];
vendor: 23,989 bytes, line 1
1o+=15&e;const n=e>>>4;if(n<=15)a[l]=n,l++;else{let e=0,t=0;16==n?(t=3+f(i,o,2),o+=2,e=a[l-1]):17==n?(t=3+f(i,o,3),o+=3):18==n&&(t=11+f(i,o,7),o+=7);const r=l+t;for(;l<r;)a[l]=e,l++}}return o},e.H.V=function(e,t,r,n){let i=0,o=0;const a=n.length>>>1;for(;o<r;){const r=e[o+t];n[o<<1]=0,n[1+(o<<1)]=r,r>i&&(i=r),o++}for(;o<a;)n[o<<1]=0,n[1+(o<<1)]=0,o++;return i},e.H.n=function(t,r){const n=e.H.m,i=t.length;let o,a,f,s;const l=n.j;for(var c=0;c<=r;c++)l[c]=0;for(c=1;c<i;c+=2)l[t[c]]++;const u=n.K;for(o=0,l[0]=0,a=1;a<=r;a++)o=o+l[a-1]<<1,u[a]=o;for(f=0;f<i;f+=2)s=t[f+1],0!=s&&(t[f]=u[s],u[s]++)},e.H.A=function(t,r,n){const i=t.length,o=e.H.m.r;for(let e=0;e<i;e+=2)if(0!=t[e+1]){const i=e>>1,a=t[e+1],f=i<<4|a,s=r-a;let l=t[e]<<s;const c=l+(1<<s);for(;l!=c;)n[o[l]>>>15-r]=f,l++}},e.H.l=function(t,r){const n=e.H.m.r,i=15-r;for(let e=0;e<t.length;e+=2){const o=t[e]<<r-t[e+1];t[e]=n[o]>>>i}},e.H.M=function(e,t,r){r<<=7&t;const n=t>>>3;e[n]|=r,e[n+1]|=r>>>8},e.H.I=function(e,t,r){r<<=7&t;const n=t>>>3;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},e.H.e=function(e,t,r){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<r)-1},e.H.b=function(e,t,r){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<r)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){const e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[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,999,999,999],T:[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],q:new e(32),p:[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,65535,65535],z:[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],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){const t=e.H.m;for(var r=0;r<32768;r++){let e=r;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[r]=(e>>>16|e<<16)>>>17}function n(e,t,r){for(;0!=t--;)e.push(0,r)}for(r=0;r<32;r++)t.q[r]=t.S[r]<<3|t.T[r],t.c[r]=t.p[r]<<4|t.z[r];n(t._,144,8),n(t._,112,9),n(t._,24,7),n(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),n(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),n(t.Q,19,0),n(t.C,286,0),n(t.D,30,0),n(t.v,320,0)}(),e.H.N}();function o(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function a(e,t,r,n,i){let a=o(t);const s=Math.ceil(n*a/8);let l,c;a=Math.ceil(a/8);let u=e[r],h=0;if(u>1&&(e[r]=[0,0,1][u-2]),3==u)for(h=a;h<s;h++)e[h+1]=e[h+1]+(e[h+1-a]>>>1)&255;for(let o=0;o<i;o++)if(l=r+o*s,c=l+o+1,u=e[c-1],h=0,0==u)for(;h<s;h++)e[l+h]=e[c+h];else if(1==u){for(;h<a;h++)e[l+h]=e[c+h];for(;h<s;h++)e[l+h]=e[c+h]+e[l+h-a]}else if(2==u)for(;h<s;h++)e[l+h]=e[c+h]+e[l+h-s];else if(3==u){for(;h<a;h++)e[l+h]=e[c+h]+(e[l+h-s]>>>1);for(;h<s;h++)e[l+h]=e[c+h]+(e[l+h-s]+e[l+h-a]>>>1)}else{for(;h<a;h++)e[l+h]=e[c+h]+f(0,e[l+h-s],0);for(;h<s;h++)e[l+h]=e[c+h]+f(e[l+h-a],e[l+h-s],e[l+h-a-s])}return e}function f(e,t,r){const n=e+t-r,i=n-e,o=n-t,a=n-r;return i*i<=o*o&&i*i<=a*a?e:o*o<=a*a?t:r}function s(t,r,n){n.width=e.readUint(t,r),r+=4,n.height=e.readUint(t,r),r+=4,n.depth=t[r],r++,n.ctype=t[r],r++,n.compress=t[r],r++,n.filter=t[r],r++,n.interlace=t[r],r++}function l(e,t,r,n,i,o,a,f,s){const l=Math.min(t,i),c=Math.min(r,o);let u=0,h=0;for(let y=0;y<c;y++)for(let r=0;r<l;r++)if(a>=0&&f>=0?(u=y*t+r<<2,h=(f+y)*i+a+r<<2):(u=(-f+y)*t-a+r<<2,h=y*i+r<<2),0==s)n[h]=e[u],n[h+1]=e[u+1],n[h+2]=e[u+2],n[h+3]=e[u+3];else if(1==s){var d=e[u+3]*(1/255),g=e[u]*d,A=e[u+1]*d,w=e[u+2]*d,p=n[h+3]*(1/255),v=n[h]*p,m=n[h+1]*p,b=n[h+2]*p;const t=1-d,r=d+p*t,i=0==r?0:1/r;n[h+3]=255*r,n[h+0]=(g+v*t)*i,n[h+1]=(A+m*t)*i,n[h+2]=(w+b*t)*i}else if(2==s)d=e[u+3],g=e[u],A=e[u+1],w=e[u+2],p=n[h+3],v=n[h],m=n[h+1],b=n[h+2],d==p&&g==v&&A==m&&w==b?(n[h]=0,n[h+1]=0,n[h+2]=0,n[h+3]=0):(n[h]=g,n[h+1]=A,n[h+2]=w,n[h+3]=d);else if(3==s){if(d=e[u+3],g=e[u],A=e[u+1],w=e[u+2],p=n[h+3],v=n[h],m=n[h+1],b=n[h+2],d==p&&g==v&&A==m&&w==b)continue;if(d<220&&p>20)return!1}return!0}return{decode:function(t){const o=new Uint8Array(t);let a=8;const f=e,l=f.readUshort,c=f.readUint,u={tabs:{},frames:[]},h=new Uint8Array(o.length);let d,g=0,A=0;const w=[137,80,78,71,13,10,26,10];for(var p=0;p<8;p++)if(o[p]!=w[p])throw"The input is not a PNG file!";for(;a<o.length;){const e=f.readUint(o,a);a+=4;const t=f.readASCII(o,a,4);if(a+=4,"IHDR"==t)s(o,a,u);else if("iCCP"==t){for(var v=a;0!=o[v];)v++;f.readASCII(o,a,v-a),o[v+1];const r=o.slice(v+2,a+e);let s=null;try{s=n(r)}catch(_){s=i(r)}u.tabs[t]=s}else if("CgBI"==t)u.tabs[t]=o.slice(a,a+4);else if("IDAT"==t){for(p=0;p<e;p++)h[g+p]=o[a+p];g+=e}else if("acTL"==t)u.tabs[t]={num_frames:c(o,a),num_plays:c(o,a+4)},d=new Uint8Array(o.length);else if("fcTL"==t){0!=A&&((E=u.frames[u.frames.length-1]).data=r(u,d.slice(0,A),E.rect.width,E.rect.height),A=0);const e={x:c(o,a+12),y:c(o,a+16),width:c(o,a+4),height:c(o,a+8)};let t=l(o,a+22);t=l(o,a+20)/(0==t?100:t);const n={rect:e,delay:Math.round(1e3*t),dispose:o[a+24],blend:o[a+25]};u.frames.push(n)}else if("fdAT"==t){for(p=0;p<e-4;p++)d[A+p]=o[a+p+4];A+=e-4}else if("pHYs"==t)u.tabs[t]=[f.readUint(o,a),f.readUint(o,a+4),o[a+8]];else if("cHRM"==t)for(u.tabs[t]=[],p=0;p<8;p++)u.tabs[t].push(f.readUint(o,a+4*p));else if("tEXt"==t||"zTXt"==t){null==u.tabs[t]&&(u.tabs[t]={});var m=f.nextZero(o,a),b=f.readASCII(o,a,m-a),y=a+e-m-1;if("tEXt"==t)F=f.readASCII(o,m+1,y);else{var U=n(o.slice(m+2,m+2+y));F=f.readUTF8(U,0,U.length)}u.tabs[t][b]=F}else if("iTXt"==t){null==u.tabs[t]&&(u.tabs[t]={}),m=0,v=a,m=f.nextZero(o,v),b=f.readASCII(o,v,m-v);const r=o[v=m+1];var F;o[v+1],v+=2,m=f.nextZero(o,v),f.readASCII(o,v,m-v),v=m+1,m=f.nextZero(o,v),f.readUTF8(o,v,m-v),y=e-((v=m+1)-a),0==r?F=f.readUTF8(o,v,y):(U=n(o.slice(v,v+y)),F=f.readUTF8(U,0,U.length)),u.tabs[t][b]=F}else if("PLTE"==t)u.tabs[t]=f.readBytes(o,a,e);else if("hIST"==t){const e=u.tabs.PLTE.length/3;for(u.tabs[t]=[],p=0;p<e;p++)u.tabs[t].push(l(o,a+2*p))}else if("tRNS"==t)3==u.ctype?u.tabs[t]=f.readBytes(o,a,e):0==u.ctype?u.tabs[t]=l(o,a):2==u.ctype&&(u.tabs[t]=[l(o,a),l(o,a+2),l(o,a+4)]);else if("gAMA"==t)u.tabs[t]=f.readUint(o,a)/1e5;else if("sRGB"==t)u.tabs[t]=o[a];else if("bKGD"==t)0==u.ctype||4==u.ctype?u.tabs[t]=[l(o,a)]:2==u.ctype||6==u.ctype?u.tabs[t]=[l(o,a),l(o,a+2),l(o,a+4)]:3==u.ctype&&(u.tabs[t]=o[a]);else if("IEND"==t)break;a+=e,f.readUint(o,a),a+=4}var E;return 0!=A&&((E=u.frames[u.frames.length-1]).data=r(u,d.slice(0,A),E.rect.width,E.rect.height)),u.data=r(u,h,u.width,u.height),delete u.compress,delete u.interlace,delete u.filter,u},toRGBA8:function(e){const r=e.width,n=e.height;if(null==e.tabs.acTL)return[t(e.data,r,n,e).buffer];const i=[];null==e.frames[0].data&&(e.frames[0].data=e.data);const o=r*n*4,a=new Uint8Array(o),f=new Uint8Array(o),s=new Uint8Array(o);for(let u=0;u<e.frames.length;u++){const h=e.frames[u],d=h.rect.x,g=h.rect.y,A=h.rect.width,w=h.rect.height,p=t(h.data,A,w,e);if(0!=u)for(var c=0;c<o;c++)s[c]=a[c];if(0==h.blend?l(p,A,w,a,r,n,d,g,0):1==h.blend&&l(p,A,w,a,r,n,d,g,1),i.push(a.buffer.slice(0)),0==h.dispose);else if(1==h.dispose)l(f,A,w,a,r,n,d,g,0);else if(2==h.dispose)for(c=0;c<o;c++)a[c]=s[c]}return i},_paeth:f,_copyTile:l,_bin:e}}();!function(){const{_copyTile:e}=l,{_bin:t}=l,r=l._paeth;var n={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let r=t;for(let e=0;e<8;e++)1&r?r=3988292384^r>>>1:r>>>=1;e[t]=r}return e}(),update(e,t,r,i){for(let o=0;o<i;o++)e=n.table[255&(e^t[r+o])]^e>>>8;return e},crc:(e,t,r)=>4294967295^n.update(4294967295,e,t,r)};function i(e,t,r,n){t[r]+=e[0]*n>>4,t[r+1]+=e[1]*n>>4,t[r+2]+=e[2]*n>>4,t[r+3]+=e[3]*n>>4}function o(e){return Math.max(0,Math.min(255,e))}function a(e,t){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return r*r+n*n+i*i+o*o}function f(e,t,r,n,f,s,l){null==l&&(l=1);const c=n.length,u=[];for(var h=0;h<c;h++){const e=n[h];u.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(h=0;h<c;h++){let e=4294967295;for(var d=0,g=0;g<c;g++){var A=a(u[h],u[g]);g!=h&&A<e&&(e=A,d=g)}}const w=new Uint32Array(f.buffer),p=new Int16Array(t*r*4),v=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(h=0;h<v.length;h++)v[h]=255*((v[h]+.5)/16-.5);for(let b=0;b<r;b++)for(let f=0;f<t;f++){var m;h=4*(b*t+f),2!=l?m=[o(e[h]+p[h]),o(e[h+1]+p[h+1]),o(e[h+2]+p[h+2]),o(e[h+3]+p[h+3])]:(A=v[4*(3&b)+(3&f)],m=[o(e[h]+A),o(e[h+1]+A),o(e[h+2]+A),o(e[h+3]+A)]),d=0;let y=16777215;for(g=0;g<c;g++){const e=a(m,u[g]);e<y&&(y=e,d=g)}const U=u[d],F=[m[0]-U[0],m[1]-U[1],m[2]-U[2],m[3]-U[3]];1==l&&(f!=t-1&&i(F,p,h+4,7),b!=r-1&&(0!=f&&i(F,p,h+4*t-4,3),i(F,p,h+4*t,5),f!=t-1&&i(F,p,h+4*t+4,1))),s[h>>2]=d,w[h>>2]=n[d]}}function c(e,r,i,o,a){null==a&&(a={});const{crc:f}=n,s=t.writeUint,l=t.writeUshort,c=t.writeASCII;let u=8;const h=e.frames.length>1;let d,g=!1,A=33+(h?20:0);if(null!=a.sRGB&&(A+=13),null!=a.pHYs&&(A+=21),null!=a.iCCP&&(d=pako.deflate(a.iCCP),A+=21+d.length+4),3==e.ctype){for(var w=e.plte.length,p=0;p<w;p++)e.plte[p]>>>24!=255&&(g=!0);A+=8+3*w+4+(g?8+1*w+4:0)}for(var v=0;v<e.frames.length;v++)h&&(A+=38),A+=(U=e.frames[v]).cimg.length+12,0!=v&&(A+=4);A+=12;const m=new Uint8Array(A),b=[137,80,78,71,13,10,26,10];for(p=0;p<8;p++)m[p]=b[p];if(s(m,u,13),u+=4,c(m,u,"IHDR"),u+=4,s(m,u,r),u+=4,s(m,u,i),u+=4,m[u]=e.depth,u++,m[u]=e.ctype,u++,m[u]=0,u++,m[u]=0,u++,m[u]=0,u++,s(m,u,f(m,u-17,17)),u+=4,null!=a.sRGB&&(s(m,u,1),u+=4,c(m,u,"sRGB"),u+=4,m[u]=a.sRGB,u++,s(m,u,f(m,u-5,5)),u+=4),null!=a.iCCP){const e=13+d.length;s(m,u,e),u+=4,c(m,u,"iCCP"),u+=4,c(m,u,"ICC profile"),u+=11,u+=2,m.set(d,u),u+=d.length,s(m,u,f(m,u-(e+4),e+4)),u+=4}if(null!=a.pHYs&&(s(m,u,9),u+=4,c(m,u,"pHYs"),u+=4,s(m,u,a.pHYs[0]),u+=4,s(m,u,a.pHYs[1]),u+=4,m[u]=a.pHYs[2],u++,s(m,u,f(m,u-13,13)),u+=4),h&&(s(m,u,8),u+=4,c(m,u,"acTL"),u+=4,s(m,u,e.frames.length),u+=4,s(m,u,null!=a.loop?a.loop:0),u+=4,s(m,u,f(m,u-12,12)),u+=4),3==e.ctype){for(s(m,u,3*(w=e.plte.length)),u+=4,c(m,u,"PLTE"),u+=4,p=0;p<w;p++){const t=3*p,r=e.plte[p],n=255&r,i=r>>>8&255,o=r>>>16&255;m[u+t+0]=n,m[u+t+1]=i,m[u+t+2]=o}if(u+=3*w,s(m,u,f(m,u-3*w-4,3*w+4)),u+=4,g){for(s(m,u,w),u+=4,c(m,u,"tRNS"),u+=4,p=0;p<w;p++)m[u+p]=e.plte[p]>>>24&255;u+=w,s(m,u,f(m,u-w-4,w+4)),u+=4}}let y=0;for(v=0;v<e.frames.length;v++){var U=e.frames[v];h&&(s(m,u,26),u+=4,c(m,u,"fcTL"),u+=4,s(m,u,y++),u+=4,s(m,u,U.rect.width),u+=4,s(m,u,U.rect.height),u+=4,s(m,u,U.rect.x),u+=4,s(m,u,U.rect.y),u+=4,l(m,u,o[v]),u+=2,l(m,u,1e3),u+=2,m[u]=U.dispose,u++,m[u]=U.blend,u++,s(m,u,f(m,u-30,30)),u+=4);const t=U.cimg;s(m,u,(w=t.length)+(0==v?0:4)),u+=4;const r=u;c(m,u,0==v?"IDAT":"fdAT"),u+=4,0!=v&&(s(m,u,y++),u+=4),m.set(t,u),u+=w,s(m,u,f(m,r,u-r)),u+=4}return s(m,u,0),u+=4,c(m,u,"IEND"),u+=4,s(m,u,f(m,u-4,4)),u+=4,m.buffer}function u(e,t,r){for(let n=0;n<e.frames.length;n++){const i=e.frames[n];i.rect.width;const o=i.rect.height,a=new Uint8Array(o*i.bpl+o);i.cimg=A(i.img,o,i.bpp,i.bpl,a,t,r)}}function h(t,r,n,i,o){const a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],h=o[5];let A=6,w=8,v=255;for(var m=0;m<t.length;m++){const e=new Uint8Array(t[m]);for(var b=e.length,y=0;y<b;y+=4)v&=e[y+3]}const U=255!=v,F=function(t,r,n,i,o,a){const f=[];for(var s=0;s<t.length;s++){const u=new Uint8Array(t[s]),d=new Uint32Array(u.buffer);var l;let A=0,w=0,p=r,v=n,m=i?1:0;if(0!=s){const b=a||i||1==s||0!=f[s-2].dispose?1:2;let y=0,U=1e9;for(let e=0;e<b;e++){var c=new Uint8Array(t[s-1-e]);const i=new Uint32Array(t[s-1-e]);let a=r,f=n,l=-1,u=-1;for(let e=0;e<n;e++)for(let t=0;t<r;t++)d[h=e*r+t]!=i[h]&&(t<a&&(a=t),t>l&&(l=t),e<f&&(f=e),e>u&&(u=e));-1==l&&(a=f=l=u=0),o&&(!(1&~a)&&a--,!(1&~f)&&f--);const g=(l-a+1)*(u-f+1);g<U&&(U=g,y=e,A=a,w=f,p=l-a+1,v=u-f+1)}c=new Uint8Array(t[s-1-y]),1==y&&(f[s-1].dispose=2),l=new Uint8Array(p*v*4),e(c,r,n,l,p,v,-A,-w,0),m=e(u,r,n,l,p,v,-A,-w,3)?1:0,1==m?g(u,r,n,l,{x:A,y:w,width:p,height:v}):e(u,r,n,l,p,v,-A,-w,0)}else l=u.slice(0);f.push({rect:{x:A,y:w,width:p,height:v},img:l,blend:m,dispose:0})}if(i)for(s=0;s<f.length;s++){if(1==(A=f[s]).blend)continue;const e=A.rect,i=f[s-1].rect,a=Math.min(e.x,i.x),l=Math.min(e.y,i.y),c={x:a,y:l,width:Math.max(e.x+e.width,i.x+i.width)-a,height:Math.max(e.y+e.height,i.y+i.height)-l};f[s-1].dispose=1,s-1!=0&&d(t,r,n,f,s-1,c,o),d(t,r,n,f,s,c,o)}let u=0;if(1!=t.length)for(var h=0;h<f.length;h++){var A;u+=(A=f[h]).rect.width*A.rect.height}return f}(t,r,n,a,s,l),E={},_=[],C=[];if(0!=i){const e=[];for(y=0;y<F.length;y++)e.push(F[y].img.buffer);const t=p(function(e){let t=0;for(var r=0;r<e.length;r++)t+=e[r].byteLength;const n=new Uint8Array(t);let i=0;for(r=0;r<e.length;r++){const t=new Uint8Array(e[r]),o=t.length;for(let e=0;e<o;e+=4){let r=t[e],o=t[e+1],a=t[e+2];const f=t[e+3];0==f&&(r=o=a=0),n[i+e]=r,n[i+e+1]=o,n[i+e+2]=a,n[i+e+3]=f}i+=o}return n.buffer}(e),i);for(y=0;y<t.plte.length;y++)_.push(t.plte[y].est.rgba);let r=0;for(y=0;y<F.length;y++){const e=(B=F[y]).img.length;var I=new Uint8Array(t.inds.buffer,r>>2,e>>2);C.push(I);const n=new Uint8Array(t.abuf,r,e);h&&f(B.img,B.rect.width,B.rect.height,_,n,I),B.img.set(n),r+=e}}else for(m=0;m<F.length;m++){var B=F[m];const e=new Uint32Array(B.img.buffer);var M=B.rect.width;for(b=e.length,I=new Uint8Array(b),C.push(I),y=0;y<b;y++){const t=e[y];if(0!=y&&t==e[y-1])I[y]=I[y-1];else if(y>M&&t==e[y-M])I[y]=I[y-M];else{let e=E[t];if(null==e&&(E[t]=e=_.length,_.push(t),_.length>=300))break;I[y]=e}}}const R=_.length;for(R<=256&&0==u&&(w=R<=2?1:R<=4?2:R<=16?4:8,w=Math.max(w,c)),m=0;m<F.length;m++){(B=F[m]).rect.x,B.rect.y,M=B.rect.width;const e=B.rect.height;let t=B.img;new Uint32Array(t.buffer);let r=4*M,n=4;if(R<=256&&0==u){r=Math.ceil(w*M/8);var S=new Uint8Array(r*e);const i=C[m];for(let t=0;t<e;t++){y=t*r;const e=t*M;if(8==w)for(var x=0;x<M;x++)S[y+x]=i[e+x];else if(4==w)for(x=0;x<M;x++)S[y+(x>>1)]|=i[e+x]<<4-4*(1&x);else if(2==w)for(x=0;x<M;x++)S[y+(x>>2)]|=i[e+x]<<6-2*(3&x);else if(1==w)for(x=0;x<M;x++)S[y+(x>>3)]|=i[e+x]<<7-1*(7&x)}t=S,A=3,n=1}else if(0==U&&1==F.length){S=new Uint8Array(M*e*3);const i=M*e;for(y=0;y<i;y++){const e=3*y,r=4*y;S[e]=t[r],S[e+1]=t[r+1],S[e+2]=t[r+2]}t=S,A=2,n=3,r=3*M}B.img=t,B.bpl=r,B.bpp=n}return{ctype:A,depth:w,plte:_,frames:F}}function d(t,r,n,i,o,a,f){const s=Uint8Array,l=Uint32Array,c=new s(t[o-1]),u=new l(t[o-1]),h=o+1<t.length?new s(t[o+1]):null,d=new s(t[o]),A=new l(d.buffer);let w=r,p=n,v=-1,m=-1;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++){const n=a.x+t,f=a.y+e,s=f*r+n,l=A[s];0==l||0==i[o-1].dispose&&u[s]==l&&(null==h||0!=h[4*s+3])||(n<w&&(w=n),n>v&&(v=n),f<p&&(p=f),f>m&&(m=f))}-1==v&&(w=p=v=m=0),f&&(!(1&~w)&&w--,!(1&~p)&&p--),a={x:w,y:p,width:v-w+1,height:m-p+1};const b=i[o];b.rect=a,b.blend=1,b.img=new Uint8Array(a.width*a.height*4),0==i[o-1].dispose?(e(c,r,n,b.img,a.width,a.height,-a.x,-a.y,0),g(d,r,n,b.img,a)):e(d,r,n,b.img,a.width,a.height,-a.x,-a.y,0)}function g(t,r,n,i,o){e(t,r,n,i,o.width,o.height,-o.x,-o.y,2)}function A(e,t,r,n,i,o,a){const f=[];let l,c=[0,1,2,3,4];-1!=o?c=[o]:(t*n>5e5||1==r)&&(c=[0]),a&&(l={level:0});const u=s;for(var h=0;h<c.length;h++){for(let o=0;o<t;o++)w(i,e,o,n,r,c[h]);f.push(u.deflate(i,l))}let d,g=1e9;for(h=0;h<f.length;h++)f[h].length<g&&(d=h,g=f[h].length);return f[d]}function w(e,t,n,i,o,a){const f=n*i;let s=f+n;if(e[s]=a,s++,0==a)if(i<500)for(var l=0;l<i;l++)e[s+l]=t[f+l];else e.set(new Uint8Array(t.buffer,f,i),s);else if(1==a){for(l=0;l<o;l++)e[s+l]=t[f+l];for(l=o;l<i;l++)e[s+l]=t[f+l]-t[f+l-o]+256&255}else if(0==n){for(l=0;l<o;l++)e[s+l]=t[f+l];if(2==a)for(l=o;l<i;l++)e[s+l]=t[f+l];if(3==a)for(l=o;l<i;l++)e[s+l]=t[f+l]-(t[f+l-o]>>1)+256&255;if(4==a)for(l=o;l<i;l++)e[s+l]=t[f+l]-r(t[f+l-o],0,0)+256&255}else{if(2==a)for(l=0;l<i;l++)e[s+l]=t[f+l]+256-t[f+l-i]&255;if(3==a){for(l=0;l<o;l++)e[s+l]=t[f+l]+256-(t[f+l-i]>>1)&255;for(l=o;l<i;l++)e[s+l]=t[f+l]+256-(t[f+l-i]+t[f+l-o]>>1)&255}if(4==a){for(l=0;l<o;l++)e[s+l]=t[f+l]+256-r(0,t[f+l-i],0)&255;for(l=o;l<i;l++)e[s+l]=t[f+l]+256-r(t[f+l-o],t[f+l-i],t[f+l-o-i])&255}}}function p(e,t){const r=new Uint8Array(e),n=r.slice(0),i=new Uint32Array(n.buffer),o=v(n,t),a=o[0],f=o[1],s=r.length,l=new Uint8Array(s>>2);let c;if(r.length<2e7)for(var u=0;u<s;u+=4)c=m(a,h=r[u]*(1/255),d=r[u+1]*(1/255),g=r[u+2]*(1/255),A=r[u+3]*(1/255)),l[u>>2]=c.ind,i[u>>2]=c.est.rgba;else for(u=0;u<s;u+=4){var h=r[u]*(1/255),d=r[u+1]*(1/255),g=r[u+2]*(1/255),A=r[u+3]*(1/255);for(c=a;c.left;)c=b(c.est,h,d,g,A)<=0?c.left:c.right;l[u>>2]=c.ind,i[u>>2]=c.est.rgba}return{abuf:n.buffer,inds:l,plte:f}}function v(e,t,r){null==r&&(r=1e-4);const n=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=F(e,i.i0,i.i1),i.est=E(i.bst);const o=[i];for(;o.length<t;){let t=0,i=0;for(var a=0;a<o.length;a++)o[a].est.L>t&&(t=o[a].est.L,i=a);if(t<r)break;const f=o[i],s=y(e,n,f.i0,f.i1,f.est.e,f.est.eMq255);if(f.i0>=s||f.i1<=s){f.est.L=0;continue}const l={i0:f.i0,i1:s,bst:null,est:null,tdst:0,left:null,right:null};l.bst=F(e,l.i0,l.i1),l.est=E(l.bst);const c={i0:s,i1:f.i1,bst:null,est:null,tdst:0,left:null,right:null};for(c.bst={R:[],m:[],N:f.bst.N-l.bst.N},a=0;a<16;a++)c.bst.R[a]=f.bst.R[a]-l.bst.R[a];for(a=0;a<4;a++)c.bst.m[a]=f.bst.m[a]-l.bst.m[a];c.est=E(c.bst),f.left=l,f.right=c,o[i]=l,o.push(c)}for(o.sort((e,t)=>t.bst.N-e.bst.N),a=0;a<o.length;a++)o[a].ind=a;return[i,o]}function m(e,t,r,n,i){if(null==e.left)return e.tdst=function(e,t,r,n,i){const o=t-e[0],a=r-e[1],f=n-e[2],s=i-e[3];return o*o+a*a+f*f+s*s}(e.est.q,t,r,n,i),e;const o=b(e.est,t,r,n,i);let a=e.left,f=e.right;o>0&&(a=e.right,f=e.left);const s=m(a,t,r,n,i);if(s.tdst<=o*o)return s;const l=m(f,t,r,n,i);return l.tdst<s.tdst?l:s}function b(e,t,r,n,i){const{e:o}=e;return o[0]*t+o[1]*r+o[2]*n+o[3]*i-e.eMq}function y(e,t,r,n,i,o){for(n-=4;r<n;){for(;U(e,r,i)<=o;)r+=4;for(;U(e,n,i)>o;)n-=4;if(r>=n)break;const a=t[r>>2];t[r>>2]=t[n>>2],t[n>>2]=a,r+=4,n-=4}for(;U(e,r,i)>o;)r-=4;return r+4}function U(e,t,r){return e[t]*r[0]+e[t+1]*r[1]+e[t+2]*r[2]+e[t+3]*r[3]}function F(e,t,r){const n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],o=r-t>>2;for(let a=t;a<r;a+=4){const t=e[a]*(1/255),r=e[a+1]*(1/255),o=e[a+2]*(1/255),f=e[a+3]*(1/255);i[0]+=t,i[1]+=r,i[2]+=o,i[3]+=f,n[0]+=t*t,n[1]+=t*r,n[2]+=t*o,n[3]+=t*f,n[5]+=r*r,n[6]+=r*o,n[7]+=r*f,n[10]+=o*o,n[11]+=o*f,n[15]+=f*f}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:i,N:o}}function E(e){const{R:t}=e,{m:r}=e,{N:n}=e,i=r[0],o=r[1],a=r[2],f=r[3],s=0==n?0:1/n,l=[t[0]-i*i*s,t[1]-i*o*s,t[2]-i*a*s,t[3]-i*f*s,t[4]-o*i*s,t[5]-o*o*s,t[6]-o*a*s,t[7]-o*f*s,t[8]-a*i*s,t[9]-a*o*s,t[10]-a*a*s,t[11]-a*f*s,t[12]-f*i*s,t[13]-f*o*s,t[14]-f*a*s,t[15]-f*f*s],c=l,u=_;let h=[Math.random(),Math.random(),Math.random(),Math.random()],d=0,g=0;if(0!=n)for(let w=0;w<16&&(h=u.multVec(c,h),g=Math.sqrt(u.dot(h,h)),h=u.sml(1/g,h),!(0!=w&&Math.abs(g-d)<1e-9));w++)d=g;const A=[i*s,o*s,a*s,f*s];return{Cov:l,q:A,e:h,L:d,eMq255:u.dot(u.sml(255,A),h),eMq:u.dot(h,A),rgba:(Math.round(255*A[3])<<24|Math.round(255*A[2])<<16|Math.round(255*A[1])<<8|Math.round(255*A[0]))>>>0}}var _={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};l.encode=function(e,t,r,n,i,o,a){null==n&&(n=0),null==a&&(a=!1);const f=h(e,t,r,n,[!1,!1,!1,0,a,!1]);return u(f,-1),c(f,t,r,i,o)},l.encodeLL=function(e,t,r,n,i,o,a,f){const s={ctype:0+(1==n?0:2)+(0==i?0:4),depth:o,frames:[]},l=(n+i)*o,h=l*t;for(let c=0;c<e.length;c++)s.frames.push({rect:{x:0,y:0,width:t,height:r},img:new Uint8Array(e[c]),blend:0,dispose:1,bpp:Math.ceil(l/8),bpl:Math.ceil(h/8)});return u(s,0,!0),c(s,t,r,a,f)},l.encode.compress=h,l.encode.dither=f,l.quantize=p,l.quantize.getKDtree=v,l.quantize.getNearest=m}();const c={toArrayBuffer(e,t){const r=e.width,n=e.height,i=r<<2,o=e.getContext("2d").getImageData(0,0,r,n),a=new Uint32Array(o.data.buffer),f=(32*r+31)/32<<2,s=f*n,l=122+s,u=new ArrayBuffer(l),h=new DataView(u),d=1<<20;let g,A,w,p,v=d,m=0,b=0,y=0;function U(e){h.setUint16(b,e,!0),b+=2}function F(e){h.setUint32(b,e,!0),b+=4}function E(e){b+=e}U(19778),F(l),E(4),F(122),F(108),F(r),F(-n>>>0),U(1),U(32),F(3),F(s),F(2835),F(2835),E(8),F(16711680),F(65280),F(255),F(4278190080),F(1466527264),function e(){for(;m<n&&v>0;){for(p=122+m*f,g=0;g<i;)v--,A=a[y++],w=A>>>24,h.setUint32(p+g,A<<8|w),g+=4;m++}y<a.length?(v=d,setTimeout(e,c._dly)):t(u)}()},toBlob(e,t){this.toArrayBuffer(e,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var u={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},h={[u.CHROME]:16384,[u.FIREFOX]:11180,[u.DESKTOP_SAFARI]:16384,[u.IE]:8192,[u.IOS]:4096,[u.ETC]:8192};const d="undefined"!=typeof window,g="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,A=d&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),w=(d||g)&&(A&&A.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),p=(d||g)&&(A&&A.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function v(e,t,r=Date.now()){return new Promise(n=>{const i=e.split(","),o=i[0].match(/:(.*?);/)[1],a=globalThis.atob(i[1]);let f=a.length;const s=new Uint8Array(f);for(;f--;)s[f]=a.charCodeAt(f);const l=new Blob([s],{type:o});l.name=t,l.lastModified=r,n(l)})}function m(e){return new Promise((t,r)=>{const n=new p;n.onload=()=>t(n.result),n.onerror=e=>r(e),n.readAsDataURL(e)})}function b(e){return new Promise((t,r)=>{const n=new Image;n.onload=()=>t(n),n.onerror=e=>r(e),n.src=e})}function y(){if(void 0!==y.cachedResult)return y.cachedResult;let e=u.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=u.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=u.IOS:/Safari/i.test(t)?e=u.DESKTOP_SAFARI:/Firefox/i.test(t)?e=u.FIREFOX:(/MSIE/i.test(t)||1==!!document.documentMode)&&(e=u.IE),y.cachedResult=e,y.cachedResult}function U(e,t){const r=y(),n=h[r];let i=e,o=t,a=i*o;const f=i>o?o/i:i/o;for(;a>n*n;){const e=(n+i)/2,t=(n+o)/2;e<t?(o=t,i=t*f):(o=e*f,i=e),a=i*o}return{width:i,height:o}}function F(e,t){let r,n;try{if(r=new OffscreenCanvas(e,t),n=r.getContext("2d"),null===n)throw new Error("getContext of OffscreenCanvas returns null")}catch(i){r=document.createElement("canvas"),n=r.getContext("2d")}return r.width=e,r.height=t,[r,n]}function E(e,t){const{width:r,height:n}=U(e.width,e.height),[i,o]=F(r,n);return t&&/jpe?g/.test(t)&&(o.fillStyle="white",o.fillRect(0,0,i.width,i.height)),o.drawImage(e,0,0,i.width,i.height),i}function _(){return void 0!==_.cachedResult||(_.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),_.cachedResult}function C(e,t={}){return new Promise(function(r,n){let i,o;var a=function(){try{return o=E(i,t.fileType||e.type),r([i,o])}catch(a){return n(a)}},f=function(t){try{var r=function(e){try{throw e}catch(t){return n(t)}};try{let t;return m(e).then(function(e){try{return t=e,b(t).then(function(e){try{return i=e,function(){try{return a()}catch(e){return n(e)}}()}catch(t){return r(t)}},r)}catch(o){return r(o)}},r)}catch(o){r(o)}}catch(o){return n(o)}};try{if(_()||[u.DESKTOP_SAFARI,u.MOBILE_SAFARI].includes(y()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return i=e,a()}catch(t){return f()}},f)}catch(s){f()}})}function I(e,t,r,n,i=1){return new Promise(function(o,a){let f;if("image/png"===t){let o,a,c;return o=e.getContext("2d"),({data:a}=o.getImageData(0,0,e.width,e.height)),c=l.encode([a.buffer],e.width,e.height,4096*i),f=new Blob([c],{t
1ype:t}),f.name=r,f.lastModified=n,s.call(this)}{let o=function(){return s.call(this)};if("image/bmp"===t)return new Promise(t=>c.toBlob(e,t)).then(function(e){try{return f=e,f.name=r,f.lastModified=n,o.call(this)}catch(t){return a(t)}}.bind(this),a);{let s=function(){return o.call(this)};if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:i}).then(function(e){try{return f=e,f.name=r,f.lastModified=n,s.call(this)}catch(t){return a(t)}}.bind(this),a);{let o;return o=e.toDataURL(t,i),v(o,r,n).then(function(e){try{return f=e,s.call(this)}catch(t){return a(t)}}.bind(this),a)}}}function s(){return o(f)}})}function B(e){e.width=0,e.height=0}function M(){return new Promise(function(e,t){let r,n,i,o;return void 0!==M.cachedResult?e(M.cachedResult):v("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(a){try{return r=a,C(r).then(function(a){try{return n=a[1],I(n,r.type,r.name,r.lastModified).then(function(r){try{return i=r,B(n),C(i).then(function(r){try{return o=r[0],M.cachedResult=1===o.width&&2===o.height,e(M.cachedResult)}catch(n){return t(n)}},t)}catch(a){return t(a)}},t)}catch(f){return t(f)}},t)}catch(f){return t(f)}},t)})}function R(e){return new Promise((t,r)=>{const n=new p;n.onload=e=>{const r=new DataView(e.target.result);if(65496!=r.getUint16(0,!1))return t(-2);const n=r.byteLength;let i=2;for(;i<n;){if(r.getUint16(i+2,!1)<=8)return t(-1);const e=r.getUint16(i,!1);if(i+=2,65505==e){if(1165519206!=r.getUint32(i+=2,!1))return t(-1);const e=18761==r.getUint16(i+=6,!1);i+=r.getUint32(i+4,e);const n=r.getUint16(i,e);i+=2;for(let o=0;o<n;o++)if(274==r.getUint16(i+12*o,e))return t(r.getUint16(i+12*o+8,e))}else{if(65280&~e)break;i+=r.getUint16(i,!1)}}return t(-1)},n.onerror=e=>r(e),n.readAsArrayBuffer(e)})}function S(e,t){const{width:r}=e,{height:n}=e,{maxWidthOrHeight:i}=t;let o,a=e;return isFinite(i)&&(r>i||n>i)&&([a,o]=F(r,n),r>n?(a.width=i,a.height=n/r*i):(a.width=r/n*i,a.height=i),o.drawImage(e,0,0,a.width,a.height),B(e)),a}function x(e,t){const{width:r}=e,{height:n}=e,[i,o]=F(r,n);switch(t>4&&t<9?(i.width=n,i.height=r):(i.width=r,i.height=n),t){case 2:o.transform(-1,0,0,1,r,0);break;case 3:o.transform(-1,0,0,-1,r,n);break;case 4:o.transform(1,0,0,-1,0,n);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,n,0);break;case 7:o.transform(0,-1,-1,0,n,r);break;case 8:o.transform(0,-1,1,0,0,r)}return o.drawImage(e,0,0,r,n),B(e),i}function T(e,t,r=0){return new Promise(function(n,i){let o,a,f,s,l,c,u,h,d,g,A,w,p,v,m,b,y,U,E,_;function T(e=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;o+=e,t.onProgress(Math.min(o,100))}function Q(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;o=Math.min(Math.max(e,o),100),t.onProgress(o)}return o=r,a=t.maxIteration||10,f=1024*t.maxSizeMB*1024,T(),C(e,t).then(function(r){try{return[,s]=r,T(),l=S(s,t),T(),new Promise(function(r,n){var i;if(!(i=t.exifOrientation))return R(e).then(function(e){try{return i=e,o.call(this)}catch(t){return n(t)}}.bind(this),n);function o(){return r(i)}return o.call(this)}).then(function(r){try{return c=r,T(),M().then(function(r){try{return u=r?l:x(l,c),T(),h=t.initialQuality||1,d=t.fileType||e.type,I(u,d,e.name,e.lastModified,h).then(function(r){try{{let c=function(){if(a--&&(m>f||m>p)){let t,r;return t=_?.95*E.width:E.width,r=_?.95*E.height:E.height,[y,U]=F(t,r),U.drawImage(E,0,0,t,r),h*="image/png"===d?.85:.95,I(y,d,e.name,e.lastModified,h).then(function(e){try{return b=e,B(E),E=y,m=b.size,Q(Math.min(99,Math.floor((v-m)/(v-f)*100))),c}catch(t){return i(t)}},i)}return[1]},C=function(){return B(E),B(y),B(l),B(u),B(s),Q(100),n(b)};return g=r,T(),A=g.size>f,w=g.size>e.size,A||w?(p=e.size,v=g.size,m=v,E=u,_=!t.alwaysKeepResolution&&A,(o=function(e){for(;e;){if(e.then)return void e.then(o,i);try{if(e.pop){if(e.length)return e.pop()?C.call(this):e;e=c}else e=e.call(this)}catch(t){return i(t)}}}.bind(this))(c)):(Q(100),n(g));var o}}catch(c){return i(c)}}.bind(this),i)}catch(o){return i(o)}}.bind(this),i)}catch(o){return i(o)}}.bind(this),i)}catch(o){return i(o)}}.bind(this),i)})}let Q;function H(t,r){return new Promise(function(n,i){let o,a,f,s,l,c;if(o={...r},f=0,({onProgress:s}=o),o.maxSizeMB=o.maxSizeMB||Number.POSITIVE_INFINITY,l="boolean"!=typeof o.useWebWorker||o.useWebWorker,delete o.useWebWorker,o.onProgress=e=>{f=e,"function"==typeof s&&s(f)},!(t instanceof Blob||t instanceof w))return i(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(t.type))return i(new Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!l||"function"!=typeof Worker||c)return T(t,o).then(function(e){try{return a=e,d.call(this)}catch(t){return i(t)}}.bind(this),i);var u=function(){try{return d.call(this)}catch(e){return i(e)}}.bind(this),h=function(e){try{return T(t,o).then(function(e){try{return a=e,u()}catch(t){return i(t)}},i)}catch(r){return i(r)}};try{return o.libURL=o.libURL||"https://cdn.jsdelivr.net/npm/[email protected]/dist/browser-image-compression.js",function(e,t){return new Promise((r,n)=>{Q||(Q=function(e){const t=[];return t.push(e),URL.createObjectURL(new Blob(t))}("\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n  const { file, id, imageCompressionLibUrl, options } = e.data\n  options.onProgress = (progress) => self.postMessage({ progress, id })\n  try {\n    if (!scriptImported) {\n      // console.log('[worker] 
1importScripts', imageCompressionLibUrl)\n      self.importScripts(imageCompressionLibUrl)\n      scriptImported = true\n    }\n    // console.log('[worker] self', self)\n    const compressedFile = await imageCompression(file, options)\n    self.postMessage({ file: compressedFile, id })\n  } catch (e) {\n    // console.error('[worker] error', e)\n    self.postMessage({ error: e.message + '\\n' + e.stack, id })\n  }\n})\n"));const i=new Worker(Q);i.addEventListener("message",function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(void 0===e.data.progress){if(e.data.error)return n(new Error(e.data.error)),void i.terminate();r(e.data.file),i.terminate()}else t.onProgress(e.data.progress)}),i.addEventListener("error",n),t.signal&&t.signal.addEventListener("abort",()=>{n(t.signal.reason),i.terminate()}),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}(t,o).then(function(e){try{return a=e,u()}catch(t){return h()}},h)}catch(g){h()}function d(){try{a.name=t.name,a.lastModified=t.lastModified}catch(g){}try{o.preserveExif&&"image/jpeg"===t.type&&(!o.fileType||o.fileType&&o.fileType===t.type)&&(a=e(t,a))}catch(g){}return n(a)}})}H.getDataUrlFromFile=m,H.getFilefromDataUrl=v,H.loadImage=b,H.drawImageInCanvas=E,H.drawFileInCanvas=C,H.canvasToFile=I,H.getExifOrientation=R,H.handleMaxWidthOrHeight=S,H.followExifOrientation=x,H.cleanupCanvasMemory=B,H.isAutoOrientationInBrowser=M,H.approximateBelowMaximumCanvasSizeOfBrowser=U,H.copyExifWithoutOrientation=e,H.getBrowserName=y,H.version="2.0.2";export{H as default};

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