UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

1 lines 9.14 kB
'use strict';function a21_0x5bb3(){const _0x4dae9e=['1182842IXlqVH','DICTIONARY_2','__esModule','7aqaBAA','toString','index','charCodeAt','decompressingIfRequired','LIST_EMPTY','1153421KfvcIz','writable','push','decodeBinaryNode','3034480ODsANi','575790GxuuCC','util','inflate','utf-8','4728954mIQTVe','BINARY_32','10580508erewtJ','JID_PAIR','jidEncode','3574088wmQqMb','6DHsuSf','LIST_16','slice','decodeDecompressedBinaryNode','__setModuleDefault','fromCharCode','LIST_8','create','./constants','default','defineProperty','readUInt8','__createBinding','hasOwnProperty','configurable','prototype','./jid-utils','get','NIBBLE_8','zlib','HEX_8','length','DICTIONARY_0'];a21_0x5bb3=function(){return _0x4dae9e;};return a21_0x5bb3();}const a21_0x15383f=a21_0x25a0;(function(_0x42bb40,_0x141da2){const _0x42e5f7=a21_0x25a0,_0x4ab158=_0x42bb40();while(!![]){try{const _0x1c9f32=parseInt(_0x42e5f7(0xe7))/0x1+-parseInt(_0x42e5f7(0x10d))/0x2*(parseInt(_0x42e5f7(0xf6))/0x3)+parseInt(_0x42e5f7(0xeb))/0x4+-parseInt(_0x42e5f7(0xec))/0x5+parseInt(_0x42e5f7(0xf0))/0x6+-parseInt(_0x42e5f7(0x110))/0x7*(-parseInt(_0x42e5f7(0xf5))/0x8)+-parseInt(_0x42e5f7(0xf2))/0x9;if(_0x1c9f32===_0x141da2)break;else _0x4ab158['push'](_0x4ab158['shift']());}catch(_0x2275ca){_0x4ab158['push'](_0x4ab158['shift']());}}}(a21_0x5bb3,0xa4645));var __createBinding=this&&this[a21_0x15383f(0x102)]||(Object[a21_0x15383f(0xfd)]?function(_0x48a180,_0x23fc7b,_0x335966,_0x2a3683){const _0x52e2bf=a21_0x15383f;if(_0x2a3683===undefined)_0x2a3683=_0x335966;var _0x3f15a7=Object['getOwnPropertyDescriptor'](_0x23fc7b,_0x335966);(!_0x3f15a7||(_0x52e2bf(0x107)in _0x3f15a7?!_0x23fc7b['__esModule']:_0x3f15a7[_0x52e2bf(0xe8)]||_0x3f15a7[_0x52e2bf(0x104)]))&&(_0x3f15a7={'enumerable':!![],'get':function(){return _0x23fc7b[_0x335966];}}),Object['defineProperty'](_0x48a180,_0x2a3683,_0x3f15a7);}:function(_0x42de9a,_0x43e2b8,_0x3af002,_0x3a4e7a){if(_0x3a4e7a===undefined)_0x3a4e7a=_0x3af002;_0x42de9a[_0x3a4e7a]=_0x43e2b8[_0x3af002];}),__setModuleDefault=this&&this[a21_0x15383f(0xfa)]||(Object[a21_0x15383f(0xfd)]?function(_0x3acae9,_0xaa1428){Object['defineProperty'](_0x3acae9,'default',{'enumerable':!![],'value':_0xaa1428});}:function(_0x2a278e,_0x36e425){const _0x531ae0=a21_0x15383f;_0x2a278e[_0x531ae0(0xff)]=_0x36e425;}),__importStar=this&&this['__importStar']||function(_0xa7ff15){const _0x71f954=a21_0x15383f;if(_0xa7ff15&&_0xa7ff15[_0x71f954(0x10f)])return _0xa7ff15;var _0x43aba9={};if(_0xa7ff15!=null){for(var _0x27b612 in _0xa7ff15)if(_0x27b612!==_0x71f954(0xff)&&Object[_0x71f954(0x105)][_0x71f954(0x103)]['call'](_0xa7ff15,_0x27b612))__createBinding(_0x43aba9,_0xa7ff15,_0x27b612);}return __setModuleDefault(_0x43aba9,_0xa7ff15),_0x43aba9;};Object[a21_0x15383f(0x100)](exports,'__esModule',{'value':!![]}),exports[a21_0x15383f(0xea)]=exports[a21_0x15383f(0xf9)]=exports[a21_0x15383f(0x114)]=void 0x0;const util_1=require(a21_0x15383f(0xed)),zlib_1=require(a21_0x15383f(0x109)),constants=__importStar(require(a21_0x15383f(0xfe))),jid_utils_1=require(a21_0x15383f(0x106)),inflatePromise=(0x0,util_1['promisify'])(zlib_1[a21_0x15383f(0xee)]),decompressingIfRequired=async _0x1382dc=>{const _0x373d96=a21_0x15383f;return 0x2&_0x1382dc[_0x373d96(0x101)]()?_0x1382dc=await inflatePromise(_0x1382dc['slice'](0x1)):_0x1382dc=_0x1382dc[_0x373d96(0xf8)](0x1),_0x1382dc;};exports[a21_0x15383f(0x114)]=decompressingIfRequired;const decodeDecompressedBinaryNode=(_0x5db2ae,_0x584eba,_0xf0280={'index':0x0})=>{const _0x2e36aa=a21_0x15383f,{DOUBLE_BYTE_TOKENS:_0x15c5e7,SINGLE_BYTE_TOKENS:_0x76fed3,TAGS:_0x3ea943}=_0x584eba,_0x3cec1c=_0x56d05f=>{const _0x232205=a21_0x25a0;if(_0xf0280[_0x232205(0x112)]+_0x56d05f>_0x5db2ae[_0x232205(0x10b)])throw null;},_0x5b3a2d=()=>{const _0x5cef28=a21_0x25a0,_0x29415b=_0x5db2ae[_0xf0280[_0x5cef28(0x112)]];return _0xf0280[_0x5cef28(0x112)]+=0x1,_0x29415b;},_0x558749=()=>{return _0x3cec1c(0x1),_0x5b3a2d();},_0x3b08a9=_0xb49a06=>{const _0x20f928=a21_0x25a0;_0x3cec1c(_0xb49a06);const _0x434895=_0x5db2ae[_0x20f928(0xf8)](_0xf0280['index'],_0xf0280[_0x20f928(0x112)]+_0xb49a06);return _0xf0280[_0x20f928(0x112)]+=_0xb49a06,_0x434895;},_0x1449ea=_0x503795=>{const _0x17d7e0=a21_0x25a0;return _0x3b08a9(_0x503795)[_0x17d7e0(0x111)](_0x17d7e0(0xef));},_0x78702d=(_0x2c113d,_0x3002eb=![])=>{_0x3cec1c(_0x2c113d);let _0x2e61ed=0x0;for(let _0x2b6206=0x0;_0x2b6206<_0x2c113d;_0x2b6206++){const _0x3bd6d0=_0x3002eb?_0x2b6206:_0x2c113d-0x1-_0x2b6206;_0x2e61ed|=_0x5b3a2d()<<_0x3bd6d0*0x8;}return _0x2e61ed;},_0x1a04e4=()=>{return _0x3cec1c(0x3),((_0x5b3a2d()&0xf)<<0x10)+(_0x5b3a2d()<<0x8)+_0x5b3a2d();},_0x215b15=_0x2d07ef=>{const _0x5b2131=a21_0x25a0;if(_0x2d07ef>=0x0&&_0x2d07ef<0x10)return _0x2d07ef<0xa?'0'[_0x5b2131(0x113)](0x0)+_0x2d07ef:'A'[_0x5b2131(0x113)](0x0)+_0x2d07ef-0xa;throw null;},_0x2a4683=_0x165204=>{const _0x550a14=a21_0x25a0;if(_0x165204>=0x0&&_0x165204<=0x9)return'0'['charCodeAt'](0x0)+_0x165204;switch(_0x165204){case 0xa:return'-'[_0x550a14(0x113)](0x0);case 0xb:return'.'['charCodeAt'](0x0);case 0xf:return'\x00'[_0x550a14(0x113)](0x0);default:throw null;}},_0x3ce1bb=(_0x5bca7e,_0x4cb7b2)=>{const _0xb3bbf6=a21_0x25a0;if(_0x5bca7e===_0x3ea943['NIBBLE_8'])return _0x2a4683(_0x4cb7b2);else{if(_0x5bca7e===_0x3ea943[_0xb3bbf6(0x10a)])return _0x215b15(_0x4cb7b2);else throw null;}},_0x81c760=_0x4207db=>{const _0x555a07=a21_0x25a0,_0x478950=_0x558749();let _0x5de736='';for(let _0x541d1b=0x0;_0x541d1b<(_0x478950&0x7f);_0x541d1b++){const _0x27967b=_0x558749();_0x5de736+=String[_0x555a07(0xfb)](_0x3ce1bb(_0x4207db,(_0x27967b&0xf0)>>0x4)),_0x5de736+=String[_0x555a07(0xfb)](_0x3ce1bb(_0x4207db,_0x27967b&0xf));}return _0x478950>>0x7!==0x0&&(_0x5de736=_0x5de736[_0x555a07(0xf8)](0x0,-0x1)),_0x5de736;},_0x1df5bc=_0x229c7d=>{const _0x53d4df=a21_0x25a0;return _0x229c7d===_0x3ea943[_0x53d4df(0xe6)]||_0x229c7d===_0x3ea943[_0x53d4df(0xfc)]||_0x229c7d===_0x3ea943[_0x53d4df(0xf7)];},_0x51217b=_0x2e9934=>{const _0xf28299=a21_0x25a0;switch(_0x2e9934){case _0x3ea943['LIST_EMPTY']:return 0x0;case _0x3ea943[_0xf28299(0xfc)]:return _0x558749();case _0x3ea943[_0xf28299(0xf7)]:return _0x78702d(0x2);default:throw null;}},_0x167c6a=()=>{const _0xd51d26=_0x190e66(_0x558749()),_0x373650=_0x190e66(_0x558749());if(_0x373650)return(_0xd51d26||'')+'@'+_0x373650;throw null;},_0x307aba=()=>{const _0x39089e=a21_0x25a0,_0x2260b2=_0x558749(),_0x15f0a6=_0x558749(),_0x17743b=_0x190e66(_0x558749());return(0x0,jid_utils_1[_0x39089e(0xf4)])(_0x17743b,_0x2260b2===0x0?'s.whatsapp.net':'lid',_0x15f0a6);},_0x190e66=_0xf7af77=>{const _0x26757b=a21_0x25a0;if(_0xf7af77>=0x1&&_0xf7af77<_0x76fed3[_0x26757b(0x10b)])return _0x76fed3[_0xf7af77]||'';switch(_0xf7af77){case _0x3ea943[_0x26757b(0x10c)]:case _0x3ea943['DICTIONARY_1']:case _0x3ea943[_0x26757b(0x10e)]:case _0x3ea943['DICTIONARY_3']:return _0x4af5cb(_0xf7af77-_0x3ea943['DICTIONARY_0'],_0x558749());case _0x3ea943[_0x26757b(0xe6)]:return'';case _0x3ea943['BINARY_8']:return _0x1449ea(_0x558749());case _0x3ea943['BINARY_20']:return _0x1449ea(_0x1a04e4());case _0x3ea943[_0x26757b(0xf1)]:return _0x1449ea(_0x78702d(0x4));case _0x3ea943[_0x26757b(0xf3)]:return _0x167c6a();case _0x3ea943['AD_JID']:return _0x307aba();case _0x3ea943['HEX_8']:case _0x3ea943[_0x26757b(0x108)]:return _0x81c760(_0xf7af77);default:throw null;}},_0x4e7f7f=_0x430eaf=>{const _0x2141c4=a21_0x25a0,_0x1a1615=[],_0x2a42ff=_0x51217b(_0x430eaf);for(let _0x152ead=0x0;_0x152ead<_0x2a42ff;_0x152ead++){_0x1a1615[_0x2141c4(0xe9)]((0x0,exports[_0x2141c4(0xf9)])(_0x5db2ae,_0x584eba,_0xf0280));}return _0x1a1615;},_0x4af5cb=(_0x99eaec,_0xadc4d9)=>{const _0x294ca9=_0x15c5e7[_0x99eaec];if(!_0x294ca9)throw null;const _0xc2e63b=_0x294ca9[_0xadc4d9];if(typeof _0xc2e63b==='undefined')throw null;return _0xc2e63b;},_0x29b96d=_0x51217b(_0x558749()),_0x3b2681=_0x190e66(_0x558749());if(!_0x29b96d||!_0x3b2681[_0x2e36aa(0x10b)])throw null;const _0x599647={};let _0x206881;if(_0x29b96d===0x0||!_0x3b2681)throw null;const _0x2a729f=_0x29b96d-0x1>>0x1;for(let _0x54be2e=0x0;_0x54be2e<_0x2a729f;_0x54be2e++){const _0x45f4ec=_0x190e66(_0x558749()),_0x55b353=_0x190e66(_0x558749());_0x599647[_0x45f4ec]=_0x55b353;}if(_0x29b96d%0x2===0x0){const _0x2ffd44=_0x558749();if(_0x1df5bc(_0x2ffd44))_0x206881=_0x4e7f7f(_0x2ffd44);else{let _0x1301c0;switch(_0x2ffd44){case _0x3ea943['BINARY_8']:_0x1301c0=_0x3b08a9(_0x558749());break;case _0x3ea943['BINARY_20']:_0x1301c0=_0x3b08a9(_0x1a04e4());break;case _0x3ea943[_0x2e36aa(0xf1)]:_0x1301c0=_0x3b08a9(_0x78702d(0x4));break;default:_0x1301c0=_0x190e66(_0x2ffd44);break;}_0x206881=_0x1301c0;}}return{'tag':_0x3b2681,'attrs':_0x599647,'content':_0x206881};};function a21_0x25a0(_0xc78056,_0x1d98c2){const _0x5bb308=a21_0x5bb3();return a21_0x25a0=function(_0x25a070,_0x296563){_0x25a070=_0x25a070-0xe6;let _0x5e3705=_0x5bb308[_0x25a070];return _0x5e3705;},a21_0x25a0(_0xc78056,_0x1d98c2);}exports['decodeDecompressedBinaryNode']=decodeDecompressedBinaryNode;const decodeBinaryNode=async _0x540dfb=>{const _0x12ee05=a21_0x15383f,_0x40d4a2=await(0x0,exports['decompressingIfRequired'])(_0x540dfb);return(0x0,exports[_0x12ee05(0xf9)])(_0x40d4a2,constants);};exports[a21_0x15383f(0xea)]=decodeBinaryNode;