mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-13 09:37:29 +01:00
3 lines
20 KiB
JavaScript
3 lines
20 KiB
JavaScript
|
/*! For license information please see 5802.5a998479cf43543543ff.js.LICENSE.txt */
|
||
|
(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[5802],{35802:function(e,t){!function(e){"use strict";var t=(e,t,i,n)=>{let a=65535&e|0,r=e>>>16&65535|0,s=0;for(;0!==i;){s=i>2e3?2e3:i,i-=s;do{a=a+t[n++]|0,r=r+a|0}while(--s);a%=65521,r%=65521}return a|r<<16|0};const i=new Uint32Array((()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t})());var n=(e,t,n,a)=>{const r=i,s=a+n;e^=-1;for(let i=a;i<s;i++)e=e>>>8^r[255&(e^t[i])];return-1^e};var a=function(e,t){let i,n,a,r,s,o,l,d,h,c,f,u,w,b,k,m,_,g,v,p,x,y,E,A;const R=e.state;i=e.next_in,E=e.input,n=i+(e.avail_in-5),a=e.next_out,A=e.output,r=a-(t-e.avail_out),s=a+(e.avail_out-257),o=R.dmax,l=R.wsize,d=R.whave,h=R.wnext,c=R.window,f=R.hold,u=R.bits,w=R.lencode,b=R.distcode,k=(1<<R.lenbits)-1,m=(1<<R.distbits)-1;e:do{u<15&&(f+=E[i++]<<u,u+=8,f+=E[i++]<<u,u+=8),_=w[f&k];t:for(;;){if(g=_>>>24,f>>>=g,u-=g,g=_>>>16&255,0===g)A[a++]=65535&_;else{if(!(16&g)){if(0==(64&g)){_=w[(65535&_)+(f&(1<<g)-1)];continue t}if(32&g){R.mode=12;break e}e.msg="invalid literal/length code",R.mode=30;break e}v=65535&_,g&=15,g&&(u<g&&(f+=E[i++]<<u,u+=8),v+=f&(1<<g)-1,f>>>=g,u-=g),u<15&&(f+=E[i++]<<u,u+=8,f+=E[i++]<<u,u+=8),_=b[f&m];i:for(;;){if(g=_>>>24,f>>>=g,u-=g,g=_>>>16&255,!(16&g)){if(0==(64&g)){_=b[(65535&_)+(f&(1<<g)-1)];continue i}e.msg="invalid distance code",R.mode=30;break e}if(p=65535&_,g&=15,u<g&&(f+=E[i++]<<u,u+=8,u<g&&(f+=E[i++]<<u,u+=8)),p+=f&(1<<g)-1,p>o){e.msg="invalid distance too far back",R.mode=30;break e}if(f>>>=g,u-=g,g=a-r,p>g){if(g=p-g,g>d&&R.sane){e.msg="invalid distance too far back",R.mode=30;break e}if(x=0,y=c,0===h){if(x+=l-g,g<v){v-=g;do{A[a++]=c[x++]}while(--g);x=a-p,y=A}}else if(h<g){if(x+=l+h-g,g-=h,g<v){v-=g;do{A[a++]=c[x++]}while(--g);if(x=0,h<v){g=h,v-=g;do{A[a++]=c[x++]}while(--g);x=a-p,y=A}}}else if(x+=h-g,g<v){v-=g;do{A[a++]=c[x++]}while(--g);x=a-p,y=A}for(;v>2;)A[a++]=y[x++],A[a++]=y[x++],A[a++]=y[x++],v-=3;v&&(A[a++]=y[x++],v>1&&(A[a++]=y[x++]))}else{x=a-p;do{A[a++]=A[x++],A[a++]=A[x++],A[a++]=A[x++],v-=3}while(v>2);v&&(A[a++]=A[x++],v>1&&(A[a++]=A[x++]))}break}}break}}while(i<n&&a<s);v=u>>3,i-=v,u-=v<<3,f&=(1<<u)-1,e.next_in=i,e.next_out=a,e.avail_in=i<n?n-i+5:5-(i-n),e.avail_out=a<s?s-a+257:257-(a-s),R.hold=f,R.bits=u};const r=15,s=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]),o=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]),l=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]),d=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]);var h=(e,t,i,n,a,h,c,f)=>{const u=f.bits;let w,b,k,m,_,g,v=0,p=0,x=0,y=0,E=0,A=0,R=0,Z=0,S=0,T=0,O=null,U=0;const D=new Uint16Array(16),B=new Uint16Array(16);let C,N,I,z=null,F=0;for(v=0;v<=r;v++)D[v]=0;for(p=0;p<n;p++)D[t[i+p]]++;for(E=u,y=r;y>=1&&0===D[y];y--);if(E>y&&(E=y),0===y)return a[h++]=20971520,a[h++]=20971520,f.bits=1,0;for(x=1;x<y&&0===D[x];x++);for(E<x&&(E=x),Z=1,v=1;v<=r;v++)if(Z<<=1,Z-=D[v],Z<0)return-1;if(Z>0&&(0===e||1!==y))return-1;for(B[1]=0,v=1;v<r;v++)B[v+1]=B[v]+D[v];for(p=0;p<n;p++)0!==t[i+p]&&(c[B[t[i+p]]++]=p);if(0===e?(O=z=c,g=19):1===e?(O=s,U-=257,z=o,F-=257,g=256):(O=l,z=d,g=-1),T=0,p=0,v=x,_=h,A=E,R=0,k=-1,S=1<<E,m=S-1,1===e&&S>852||2===e&&S>592)return 1;for(;;){C=v-R,c[p]<g?(N=0,I=c[p]):c[p]>g?(N=z[F+c[p]],I=O[U+c[p]]):(N=96,I=0),w=1<<v-R,b=1<<A,x=b;do{b-=w,a[_+(T>>R)+b]=C<<24|N<<16|I|0}while(0!==b);for(w=1<<v-1;T&w;)w>>=1;if(0!==w?(T&=w-1,T+=w):T=0,p++,0==--D[v]){if(v===y)break;v=t[i+c[p]]}if(v>E&&(T&m)!==k){for(0===R&&(R=E),_+=x,A=v-R,Z=1<<A;A+R<y&&(Z-=D[A+R],!(Z<=0));)A++,Z<<=1;if(S+=1<<A,1===e&&S>852||2===e&&S>592)return 1;k=T&m,a[k]=E<<24|A<<16|_-h|0}}return 0!==T&&(a[_+T]=v-R<<24|64<<16|0),f.bits=E,0},c={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:
|
||
|
//# sourceMappingURL=5802.5a998479cf43543543ff.js.map
|