evelodb
Version:
An awesome local database management system with nodejs. Made by Evelocore. With B-tree Operations.
1 lines • 7.47 kB
JavaScript
const _0x407b11=_0x439e;(function(_0x5a0531,_0x368426){const _0x38dbb4=_0x439e,_0x47f425=_0x5a0531();while(!![]){try{const _0x14b6fd=parseInt(_0x38dbb4(0x1f0))/0x1+-parseInt(_0x38dbb4(0x1db))/0x2*(parseInt(_0x38dbb4(0x1d4))/0x3)+parseInt(_0x38dbb4(0x1fa))/0x4*(-parseInt(_0x38dbb4(0x216))/0x5)+-parseInt(_0x38dbb4(0x1d3))/0x6*(parseInt(_0x38dbb4(0x1fd))/0x7)+-parseInt(_0x38dbb4(0x1de))/0x8*(parseInt(_0x38dbb4(0x1d6))/0x9)+-parseInt(_0x38dbb4(0x1fb))/0xa+parseInt(_0x38dbb4(0x200))/0xb*(parseInt(_0x38dbb4(0x1f3))/0xc);if(_0x14b6fd===_0x368426)break;else _0x47f425['push'](_0x47f425['shift']());}catch(_0x2ccf8a){_0x47f425['push'](_0x47f425['shift']());}}}(_0x4912,0xc6fba));const sharp=require(_0x407b11(0x1d9)),path=require(_0x407b11(0x1e6));function _0x439e(_0x3b5a4b,_0x37dc77){const _0x49122e=_0x4912();return _0x439e=function(_0x439e45,_0x337ed2){_0x439e45=_0x439e45-0x1d2;let _0x4d99d4=_0x49122e[_0x439e45];return _0x4d99d4;},_0x439e(_0x3b5a4b,_0x37dc77);}async function imageProcess(_0x55d153,_0x5460f1,_0x57369f={'returnBase64':!![],'quality':0x1,'pixels':0x0,'blackAndWhite':![],'mirror':![],'upToDown':![],'invert':![],'brightness':0x1,'contrast':0x1}){const _0x4303e5=_0x407b11;try{let _0x5708e4=sharp(_0x55d153);const _0xda1795=await _0x5708e4['metadata']();_0x57369f['mirror']&&(_0x5708e4=_0x5708e4[_0x4303e5(0x201)]());_0x57369f[_0x4303e5(0x219)]&&(_0x5708e4=_0x5708e4[_0x4303e5(0x1dc)]());_0x57369f[_0x4303e5(0x209)]&&(_0x5708e4=_0x5708e4[_0x4303e5(0x1d8)]());_0x57369f['invert']&&(_0x5708e4=_0x5708e4['negate']({'alpha':![]}));_0x57369f[_0x4303e5(0x1e7)]!==0x1&&(_0x5708e4=_0x5708e4[_0x4303e5(0x206)]({'brightness':_0x57369f[_0x4303e5(0x1e7)]}));_0x57369f[_0x4303e5(0x1ff)]!==0x1&&(_0x5708e4=_0x5708e4[_0x4303e5(0x1e8)](_0x57369f[_0x4303e5(0x1ff)],-(0x80*(_0x57369f[_0x4303e5(0x1ff)]-0x1))));if(_0x57369f[_0x4303e5(0x20c)]>0x0){const _0x58b0c3=_0xda1795[_0x4303e5(0x214)]*_0xda1795[_0x4303e5(0x1ef)];if(_0x58b0c3>_0x57369f[_0x4303e5(0x20c)]){const _0x160028=Math[_0x4303e5(0x20a)](_0x57369f[_0x4303e5(0x20c)]/_0x58b0c3),_0x2214e2=Math[_0x4303e5(0x1f1)](_0xda1795[_0x4303e5(0x214)]*_0x160028),_0x1b9e89=Math['round'](_0xda1795[_0x4303e5(0x1ef)]*_0x160028);_0x5708e4=_0x5708e4[_0x4303e5(0x1ee)](_0x2214e2,_0x1b9e89,{'fit':'inside','withoutEnlargement':!![],'kernel':sharp[_0x4303e5(0x1d2)][_0x4303e5(0x1f6)]});}}const _0x30f59c={};switch(_0x5460f1){case _0x4303e5(0x20b):case _0x4303e5(0x1e5):case'.jfif':_0x30f59c[_0x4303e5(0x207)]=_0x4303e5(0x20e),_0x30f59c['quality']=Math[_0x4303e5(0x1f1)](_0x57369f[_0x4303e5(0x213)]*0x64),_0x30f59c['mozjpeg']=!![];break;case _0x4303e5(0x1f7):_0x30f59c[_0x4303e5(0x207)]=_0x4303e5(0x20f),_0x30f59c['quality']=Math[_0x4303e5(0x1f1)](_0x57369f[_0x4303e5(0x213)]*0x64),_0x30f59c[_0x4303e5(0x1e3)]=Math[_0x4303e5(0x1f1)](0x9*(0x1-_0x57369f[_0x4303e5(0x213)]));break;case _0x4303e5(0x217):_0x30f59c['format']='webp',_0x30f59c[_0x4303e5(0x213)]=Math['round'](_0x57369f[_0x4303e5(0x213)]*0x64);break;case _0x4303e5(0x211):_0x30f59c[_0x4303e5(0x207)]='avif',_0x30f59c[_0x4303e5(0x213)]=Math[_0x4303e5(0x1f1)](_0x57369f[_0x4303e5(0x213)]*0x64);break;case'.tiff':_0x30f59c[_0x4303e5(0x207)]='tiff',_0x30f59c[_0x4303e5(0x213)]=Math[_0x4303e5(0x1f1)](_0x57369f['quality']*0x64);break;case _0x4303e5(0x1f4):_0x30f59c[_0x4303e5(0x207)]=_0x4303e5(0x1d5);break;default:_0x30f59c[_0x4303e5(0x213)]=Math[_0x4303e5(0x1f1)](_0x57369f[_0x4303e5(0x213)]*0x64);}let _0x14b4fb;if(_0x5460f1===_0x4303e5(0x210)){if(_0x57369f[_0x4303e5(0x209)]||_0x57369f[_0x4303e5(0x1e9)]||_0x57369f['upToDown']||_0x57369f[_0x4303e5(0x1e1)]||_0x57369f[_0x4303e5(0x1e7)]!==0x1||_0x57369f['contrast']!==0x1){const _0x196f33=sharp(_0x55d153)[_0x4303e5(0x20f)]();_0x14b4fb=await _0x196f33['toFormat'](_0x4303e5(0x20f),_0x30f59c)[_0x4303e5(0x20d)](),_0x5460f1=_0x4303e5(0x1f7);}else{if(_0x57369f[_0x4303e5(0x204)])return _0x55d153[_0x4303e5(0x1fc)](_0x4303e5(0x1ec));return _0x55d153;}}else _0x14b4fb=await _0x5708e4[_0x4303e5(0x212)](_0x30f59c[_0x4303e5(0x207)]||_0xda1795[_0x4303e5(0x207)],_0x30f59c)[_0x4303e5(0x20d)]();if(_0x57369f[_0x4303e5(0x204)]){let _0x37701a;switch(_0x5460f1){case _0x4303e5(0x20b):case _0x4303e5(0x1e5):case'.jfif':_0x37701a=_0x4303e5(0x1e2);break;case _0x4303e5(0x1f7):_0x37701a='image/png';break;case'.gif':_0x37701a=_0x4303e5(0x218);break;case _0x4303e5(0x217):_0x37701a=_0x4303e5(0x1f5);break;case _0x4303e5(0x1f2):_0x37701a=_0x4303e5(0x1ea);break;case _0x4303e5(0x1df):_0x37701a='image/tiff';break;case'.svg':_0x37701a=_0x4303e5(0x203);break;case _0x4303e5(0x1e0):_0x37701a=_0x4303e5(0x205);break;case _0x4303e5(0x1da):_0x37701a=_0x4303e5(0x1f8);break;case'.avif':_0x37701a=_0x4303e5(0x1fe);break;default:_0x37701a=_0x4303e5(0x1f9);}const _0x52353e=_0x14b4fb[_0x4303e5(0x1fc)](_0x4303e5(0x1ec));return _0x4303e5(0x1dd)+_0x37701a+_0x4303e5(0x1d7)+_0x52353e;}else return _0x14b4fb;}catch(_0xa0b376){throw new Error('Image\x20processing\x20failed:\x20'+_0xa0b376[_0x4303e5(0x202)]);}}async function imageProcessBasic(_0xd728cb,_0x20614a,_0x297528={'returnBase64':!![],'quality':0x1,'pixels':0x0,'blackAndWhite':![],'mirror':![],'upToDown':![],'invert':![],'brightness':0x1,'contrast':0x1}){const _0x1879cd=_0x407b11;try{if(_0x297528[_0x1879cd(0x204)]){let _0x105d7b;switch(_0x20614a){case _0x1879cd(0x20b):case'.jpeg':case _0x1879cd(0x215):_0x105d7b='image/jpeg';break;case _0x1879cd(0x1f7):_0x105d7b='image/png';break;case'.gif':_0x105d7b=_0x1879cd(0x218);break;case _0x1879cd(0x217):_0x105d7b='image/webp';break;case _0x1879cd(0x1f2):_0x105d7b=_0x1879cd(0x1ea);break;case _0x1879cd(0x1df):_0x105d7b=_0x1879cd(0x208);break;case _0x1879cd(0x210):_0x105d7b=_0x1879cd(0x203);break;case _0x1879cd(0x1e0):_0x105d7b=_0x1879cd(0x205);break;case _0x1879cd(0x1da):_0x105d7b=_0x1879cd(0x1f8);break;case _0x1879cd(0x211):_0x105d7b=_0x1879cd(0x1fe);break;default:_0x105d7b='application/octet-stream';}const _0x3a5998=_0xd728cb['toString'](_0x1879cd(0x1ec));return _0x1879cd(0x1dd)+_0x105d7b+_0x1879cd(0x1d7)+_0x3a5998;}else return _0xd728cb;}catch(_0x2c1f95){throw new Error(_0x1879cd(0x1e4)+_0x2c1f95['message']);}}module[_0x407b11(0x1eb)]=async function(_0x547e5d,_0xdaa3c9,_0x5022f6){const _0xa707ac=_0x407b11;try{return typeof sharp==='function'?await imageProcess(_0x547e5d,_0xdaa3c9,_0x5022f6):(console[_0xa707ac(0x1ed)]('Sharp\x20not\x20available,\x20using\x20basic\x20image\x20processing'),await imageProcessBasic(_0x547e5d,_0xdaa3c9,_0x5022f6));}catch(_0x2098d6){return console['warn']('Sharp\x20processing\x20failed,\x20falling\x20back\x20to\x20basic:',_0x2098d6[_0xa707ac(0x202)]),await imageProcessBasic(_0x547e5d,_0xdaa3c9,_0x5022f6);}};function _0x4912(){const _0xf61332=['740944fxYtyf','round','.bmp','96spEljO','.gif','image/webp','lanczos3','.png','image/heic','application/octet-stream','4afczCH','6308340xXmaQj','toString','70avtrNY','image/avif','contrast','8246458oCEVXw','flop','message','image/svg+xml','returnBase64','image/x-icon','modulate','format','image/tiff','blackAndWhite','sqrt','.jpg','pixels','toBuffer','jpeg','png','.svg','.avif','toFormat','quality','width','.jfif','5679305mtWIyX','.webp','image/gif','upToDown','kernel','718860pFsfeu','4559721WRQrps','gif','1566QkVxiS',';base64,','greyscale','sharp','.heic','2EjWsNz','flip','data:','66144PKSEyl','.tiff','.ico','invert','image/jpeg','compressionLevel','Image\x20processing\x20failed:\x20','.jpeg','path','brightness','linear','mirror','image/bmp','exports','base64','warn','resize','height'];_0x4912=function(){return _0xf61332;};return _0x4912();}