love-utils
Version:
A simple love shipping and compatibility utility
1 lines • 4.01 kB
JavaScript
const _0x6f8a76 = _0x732d; function _0x20ef() { const _0x7535c4 = ['2046591UcFgnI', 'toLowerCase', 'reduce', 'ship', 'getLovePercentage', 'generateShipName', 'slice', 'charAt', '33jMTELE', '111060hFWfjl', 'floor', '42bAeWMy', '206311eLDaFT', '\x20or\x20', 'toUpperCase', 'shipDb', 'split', 'blacklist', '4152720CZIvqv', '\x20❤️\x20', '295588UzEVEV', 'length', 'capitalize', '1056256KsKPgO', '\x20=\x20', 'has', '2wpiMwU', 'Shipping\x20is\x20not\x20allowed\x20with\x20', 'charCodeAt', 'includes', 'Both\x20names\x20must\x20be\x20provided', 'entries', '923194EVPRQa', 'exports', 'sort']; _0x20ef = function () { return _0x7535c4; }; return _0x20ef(); } (function (_0x18ef3e, _0x11ee18) { const _0x46d30e = _0x732d, _0x579f48 = _0x18ef3e(); while (!![]) { try { const _0x5a8864 = parseInt(_0x46d30e(0x133)) / 0x1 * (-parseInt(_0x46d30e(0x139)) / 0x2) + parseInt(_0x46d30e(0x121)) / 0x3 * (parseInt(_0x46d30e(0x12d)) / 0x4) + parseInt(_0x46d30e(0x122)) / 0x5 + -parseInt(_0x46d30e(0x124)) / 0x6 * (parseInt(_0x46d30e(0x125)) / 0x7) + parseInt(_0x46d30e(0x130)) / 0x8 + parseInt(_0x46d30e(0x13c)) / 0x9 + parseInt(_0x46d30e(0x12b)) / 0xa; if (_0x5a8864 === _0x11ee18) break; else _0x579f48['push'](_0x579f48['shift']()); } catch (_0x437ba2) { _0x579f48['push'](_0x579f48['shift']()); } } }(_0x20ef, 0x75415)); function _0x732d(_0x1ba742, _0x286ab2) { const _0x20efd2 = _0x20ef(); return _0x732d = function (_0x732d04, _0x2325f9) { _0x732d04 = _0x732d04 - 0x121; let _0x50d353 = _0x20efd2[_0x732d04]; return _0x50d353; }, _0x732d(_0x1ba742, _0x286ab2); } class LoveUtils { constructor() { const _0x3e8d4d = _0x732d; this['shipDb'] = { 'pankikk_czjaex': 0x64, 'zjaex_pankikk': 0x64 }, this[_0x3e8d4d(0x12a)] = new Set([]); } [_0x6f8a76(0x13f)](_0x1aba04, _0x303da1) { const _0x41cbdc = _0x6f8a76; if (!_0x1aba04 || !_0x303da1) throw new Error(_0x41cbdc(0x137)); const [_0xa86bcf, _0x24e162] = [_0x1aba04['toLowerCase'](), _0x303da1[_0x41cbdc(0x13d)]()][_0x41cbdc(0x13b)](); if (this[_0x41cbdc(0x12a)][_0x41cbdc(0x132)](_0xa86bcf) || this['blacklist'][_0x41cbdc(0x132)](_0x24e162)) return { 'name': '❌', 'perc': '0%', 'message': _0x41cbdc(0x134) + this[_0x41cbdc(0x12f)](_0xa86bcf) + _0x41cbdc(0x126) + this[_0x41cbdc(0x12f)](_0x24e162) + '.' }; const _0x5bda96 = this[_0x41cbdc(0x141)](_0xa86bcf, _0x24e162), _0x4093b7 = this['matchCustomPair'](_0xa86bcf, _0x24e162); if (_0x4093b7 !== null) return { 'name': _0x5bda96, 'perc': _0x4093b7 + '%', 'message': this['capitalize'](_0x1aba04) + '\x20❤️\x20' + this[_0x41cbdc(0x12f)](_0x303da1) + _0x41cbdc(0x131) + _0x5bda96 }; const _0x44e911 = this[_0x41cbdc(0x140)](_0xa86bcf + _0x24e162); return { 'name': _0x5bda96, 'perc': _0x44e911 + '%', 'message': this[_0x41cbdc(0x12f)](_0x1aba04) + _0x41cbdc(0x12c) + this['capitalize'](_0x303da1) + _0x41cbdc(0x131) + _0x5bda96 }; } ['matchCustomPair'](_0x557419, _0x167a59) { const _0x4b11c3 = _0x6f8a76, _0x51a374 = Object[_0x4b11c3(0x138)](this[_0x4b11c3(0x128)]); for (const [_0x2dd2a8, _0x4cc275] of _0x51a374) { const [_0x5010f9, _0x41d516] = _0x2dd2a8['split']('_'), _0x10d41b = _0x5010f9 === '*' || _0x557419[_0x4b11c3(0x136)](_0x5010f9), _0x3025f8 = _0x41d516 === '*' || _0x167a59[_0x4b11c3(0x136)](_0x41d516); if (_0x10d41b && _0x3025f8) return _0x4cc275; } return null; } [_0x6f8a76(0x141)](_0x1486cc, _0x34f654) { const _0x2bba30 = _0x6f8a76, _0x4789fb = _0x1486cc[_0x2bba30(0x142)](0x0, Math['ceil'](_0x1486cc[_0x2bba30(0x12e)] / 0x2)), _0x2f7c17 = _0x34f654[_0x2bba30(0x142)](Math[_0x2bba30(0x123)](_0x34f654[_0x2bba30(0x12e)] / 0x2)); return this['capitalize'](_0x4789fb + _0x2f7c17); } [_0x6f8a76(0x140)](_0x2e93d3) { const _0x1142e8 = _0x6f8a76; return _0x2e93d3[_0x1142e8(0x129)]('')[_0x1142e8(0x13e)]((_0x28af69, _0x299748) => _0x28af69 + _0x299748[_0x1142e8(0x135)](0x0), 0x0) % 0x65; } [_0x6f8a76(0x12f)](_0x46a2c8) { const _0x32c01a = _0x6f8a76; return _0x46a2c8[_0x32c01a(0x143)](0x0)[_0x32c01a(0x127)]() + _0x46a2c8[_0x32c01a(0x142)](0x1); } } module[_0x6f8a76(0x13a)] = { 'LoveUtils': LoveUtils };