| 23 | import _0x3fb20f from 'axios' |
| 24 | const baseurl = _0x1031d0(0x144) |
| 25 | class bard { |
| 26 | constructor() {} |
| 27 | async [_0x1031d0(0x15d)]({ ask: _0x3b21f7 }) { |
| 28 | const _0x1d05cc = _0x1031d0, |
| 29 | _0x46916b = { |
| 30 | uRGCm: _0x1d05cc(0x167), |
| 31 | ctxyE: function (_0x45bf03, _0xb826c1) { |
| 32 | return _0x45bf03 === _0xb826c1 |
| 33 | }, |
| 34 | cTJsu: _0x1d05cc(0x140), |
| 35 | sNPsC: function (_0x11f28a, _0x1d14ce) { |
| 36 | return _0x11f28a === _0x1d14ce |
| 37 | }, |
| 38 | Vzobw: _0x1d05cc(0x156), |
| 39 | xtOZE: _0x1d05cc(0x154), |
| 40 | CWZel: _0x1d05cc(0x143), |
| 41 | HkepH: function (_0x1da4db, _0xa5e9e8) { |
| 42 | return _0x1da4db !== _0xa5e9e8 |
| 43 | }, |
| 44 | PRvuM: _0x1d05cc(0x152), |
| 45 | ePLDH: function (_0xfcf5e4, _0x40dc3d) { |
| 46 | return _0xfcf5e4 + _0x40dc3d |
| 47 | }, |
| 48 | JbgTx: _0x1d05cc(0x163), |
| 49 | } |
| 50 | if (!_0x3b21f7) { |
| 51 | if (_0x46916b[_0x1d05cc(0x166)](_0x46916b[_0x1d05cc(0x15c)], _0x1d05cc(0x151))) |
| 52 | throw new _0x3e0466(_0x46916b['uRGCm']) |
| 53 | else throw new Error(_0x46916b[_0x1d05cc(0x15e)]) |
| 54 | } |
| 55 | try { |
| 56 | if (_0x46916b['sNPsC'](_0x46916b[_0x1d05cc(0x14b)], _0x46916b[_0x1d05cc(0x15b)])) |
| 57 | throw new _0x30d571(_0x46916b['uRGCm']) |
| 58 | else { |
| 59 | const _0x5678a9 = await _0x3fb20f[_0x1d05cc(0x164)]( |
| 60 | baseurl + _0x1d05cc(0x14d), |
| 61 | { ask: _0x3b21f7 }, |
| 62 | { headers: { 'Content-Type': _0x46916b[_0x1d05cc(0x160)] } } |
| 63 | ) |
| 64 | return _0x5678a9[_0x1d05cc(0x168)] |
| 65 | } |
| 66 | } catch (_0x585290) { |
| 67 | if (_0x46916b[_0x1d05cc(0x14c)](_0x1d05cc(0x152), _0x46916b[_0x1d05cc(0x165)])) |
| 68 | throw new _0x5373e9('Please\x20specify\x20a\x20URL\x20for\x20the\x20image!') |
| 69 | else |
| 70 | throw new Error( |
| 71 | _0x46916b[_0x1d05cc(0x155)](_0x46916b[_0x1d05cc(0x162)], _0x585290[_0x1d05cc(0x153)]) |
| 72 | ) |
| 73 | } |
| 74 | } |
| 75 | async [_0x1031d0(0x14a)]({ ask: _0x2857e3, image: _0x47f648 }) { |
| 76 | const _0x85607b = _0x1031d0, |
| 77 | _0x276ba5 = { |
| 78 | eniEK: function (_0x3b705b, _0x40e052) { |
| 79 | return _0x3b705b + _0x40e052 |
| 80 | }, |
| 81 | kbGPv: 'Error:\x20', |
| 82 | usScc: _0x85607b(0x157), |
nothing calls this directly
no outgoing calls
no test coverage detected