Spaces:
Paused
Paused
Download utils/windowCounter.js from AiBotTeszt/Heino: direct link, hf CLI and curl.
- Browser
- Download file 1.97 kB
-
https://huggingface.co/spaces/AiBotTeszt/Heino/resolve/main/utils/windowCounter.js
- Command line
-
hf download hf://spaces/AiBotTeszt/Heino/utils/windowCounter.js
-
curl -L -o windowCounter.js https://huggingface.co/spaces/AiBotTeszt/Heino/resolve/main/utils/windowCounter.js
1.97 kB
| const a59_0x283f6f=a59_0x5d1e;function a59_0x5d1e(_0x1f2b93,_0x1851ed){_0x1f2b93=_0x1f2b93-0x1c0;const _0x1e80c6=a59_0x1e80();let _0x5d1e20=_0x1e80c6[_0x1f2b93];return _0x5d1e20;}(function(_0x583952,_0x40e393){const _0x23f750=a59_0x5d1e,_0x5cb053=_0x583952();while(!![]){try{const _0x100402=-parseInt(_0x23f750(0x1cc))/0x1+parseInt(_0x23f750(0x1c2))/0x2+-parseInt(_0x23f750(0x1c7))/0x3*(-parseInt(_0x23f750(0x1c1))/0x4)+-parseInt(_0x23f750(0x1c6))/0x5+parseInt(_0x23f750(0x1c9))/0x6+-parseInt(_0x23f750(0x1c0))/0x7+-parseInt(_0x23f750(0x1c4))/0x8*(-parseInt(_0x23f750(0x1ce))/0x9);if(_0x100402===_0x40e393)break;else _0x5cb053['push'](_0x5cb053['shift']());}catch(_0x49ce3e){_0x5cb053['push'](_0x5cb053['shift']());}}}(a59_0x1e80,0x707bb));export class WindowCounter{constructor({windowMs:windowMs=0xea60,max:max=0x1e,now:now=Date['now']}={}){const _0x1803e2=a59_0x5d1e;this[_0x1803e2(0x1d2)]=windowMs,this[_0x1803e2(0x1ca)]=max,this[_0x1803e2(0x1c8)]=now,this[_0x1803e2(0x1d0)]=new Map();}[a59_0x283f6f(0x1cb)](_0x3208f1){const _0x4bad32=a59_0x283f6f,_0x2b159f=this[_0x4bad32(0x1c8)]();if(this['hits'][_0x4bad32(0x1d1)]>0x3e8)this.#sweep(_0x2b159f);let _0x5aeb6b=this[_0x4bad32(0x1d0)][_0x4bad32(0x1cd)](_0x3208f1);return(!_0x5aeb6b||_0x5aeb6b[_0x4bad32(0x1cf)]<=_0x2b159f)&&(_0x5aeb6b={'count':0x0,'resetAt':_0x2b159f+this['windowMs']},this[_0x4bad32(0x1d0)][_0x4bad32(0x1c3)](_0x3208f1,_0x5aeb6b)),_0x5aeb6b[_0x4bad32(0x1c5)]+=0x1,_0x5aeb6b['count']<=this['max'];}#sweep(_0x547c9e){const _0x129ed0=a59_0x283f6f;for(const [_0x40f50d,_0x500330]of this[_0x129ed0(0x1d0)]){if(_0x500330[_0x129ed0(0x1cf)]<=_0x547c9e)this[_0x129ed0(0x1d0)]['delete'](_0x40f50d);}}}function a59_0x1e80(){const _0x42f9ac=['hits','size','windowMs','2079763ElHXkK','576136qzTyXc','547708OPTYIe','set','88SvrBHK','count','3331535XHSezP','18UMITDT','now','4170246vOmjlE','max','allow','812531JNsrGx','get','330201PeXFZr','resetAt'];a59_0x1e80=function(){return _0x42f9ac;};return a59_0x1e80();} |