OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-core-hyperdb / lib / tasks / testing / slow.js

1 lines · javascript ref:
function _0x2def(){const _0x1cbb3a=['9VASIgv','_resolve','11545435eonJWo','constructo','toString','was\x20closed','2TElJDw','612587YTrAdY','545830wdjDIQ','54jNIjJn','508949RCFlGh','_run','_reject','2628840GnfMBb','(((.+)+)+)','128CNDXft','apply','_timer','1201570BFDTen','exports','search','1561624fGmcUw'];_0x2def=function(){return _0x1cbb3a;};return _0x2def();}(function(_0x2b6df8,_0x4cf540){const _0x2c91a6={_0x28cff3:0x42c,_0x4e0033:0x430,_0x8a0dcf:0x43d,_0x406253:0x432,_0x1687f6:0x312,_0x461089:0x320,_0x322490:0x30f,_0x10f617:0x310,_0x1750be:0x30e,_0x33a3b2:0x309,_0x23c097:0x317,_0x250621:0x315,_0x323a06:0x42f,_0x257df5:0x42c,_0x22d0b9:0x42a,_0x22f109:0x433,_0x57252e:0x42e,_0x5d8b9c:0x431,_0x230a8e:0x435,_0x414cc0:0x31e,_0x5013f1:0x31f,_0xfef0fc:0x43a,_0x11a06f:0x43e,_0x226eac:0x438,_0x3afcdd:0x30b,_0x394f6f:0x309,_0x22d681:0x308,_0x4658e9:0x422,_0x276097:0x429,_0x5db0a1:0x426,_0xc5f1da:0x42d},_0x10bdef={_0x101373:0x272},_0x31e5a1={_0x484110:0x156},_0x285a7f=_0x2b6df8();function _0x1271e0(_0x3365bf,_0xf1f32a,_0x702dea,_0x2a68ba){return _0x50d5(_0x3365bf-_0x31e5a1._0x484110,_0x702dea);}function _0x1470ec(_0x459dec,_0x7ed8a,_0x481a9b,_0x343fa9){return _0x50d5(_0x343fa9-_0x10bdef._0x101373,_0x7ed8a);}while(!![]){try{const _0x4e803b=parseInt(_0x1470ec(_0x2c91a6._0x28cff3,_0x2c91a6._0x4e0033,_0x2c91a6._0x8a0dcf,_0x2c91a6._0x406253))/(-0xee3*-0x2+0x10ff+-0xa4*0x49)*(parseInt(_0x1271e0(0x315,0x320,_0x2c91a6._0x1687f6,_0x2c91a6._0x461089))/(0x25e8+0x1*0x130+-0x2716*0x1))+-parseInt(_0x1271e0(_0x2c91a6._0x322490,_0x2c91a6._0x10f617,0x30f,_0x2c91a6._0x10f617))/(0x227f*0x1+0x49*0x42+0x2*-0x1aa7)*(parseInt(_0x1271e0(_0x2c91a6._0x1750be,_0x2c91a6._0x33a3b2,_0x2c91a6._0x23c097,_0x2c91a6._0x250621))/(0x1ceb*0x1+-0x220d+0x526))+-parseInt(_0x1470ec(_0x2c91a6._0x323a06,_0x2c91a6._0x257df5,_0x2c91a6._0x22d0b9,_0x2c91a6._0x22f109))/(0x217c*-0x1+-0xb6f+0x2cf0)+parseInt(_0x1470ec(0x436,_0x2c91a6._0x57252e,_0x2c91a6._0x5d8b9c,0x438))/(0x80f*-0x1+0xd45*0x2+-0x1275)+-parseInt(_0x1470ec(0x438,_0x2c91a6._0x57252e,0x42b,_0x2c91a6._0x230a8e))/(-0x1c82+0x13bb*-0x1+0x3044)*(-parseInt(_0x1271e0(_0x2c91a6._0x414cc0,0x321,_0x2c91a6._0x5013f1,_0x2c91a6._0x23c097))/(-0x1b91+0x2235+0x2*-0x34e))+-parseInt(_0x1470ec(_0x2c91a6._0xfef0fc,_0x2c91a6._0x11a06f,_0x2c91a6._0x226eac,0x434))/(0x2021+-0x1*0x1c7b+-0x39d*0x1)*(-parseInt(_0x1271e0(_0x2c91a6._0x3afcdd,0x30d,_0x2c91a6._0x394f6f,_0x2c91a6._0x22d681))/(0x1*-0x246b+0x11e1+0x52*0x3a))+-parseInt(_0x1470ec(_0x2c91a6._0x4658e9,_0x2c91a6._0x276097,_0x2c91a6._0x5db0a1,_0x2c91a6._0xc5f1da))/(0x89*0x17+0x1154+0x766*-0x4);if(_0x4e803b===_0x4cf540)break;else _0x285a7f['push'](_0x285a7f['shift']());}catch(_0x3c9fca){_0x285a7f['push'](_0x285a7f['shift']());}}}(_0x2def,-0x9e18+-0x2e9*0x564+0x101*0x1970));const _0x11ff2f=(function(){const _0x51085a={_0x1b77d6:0x2a2,_0x241044:0x29a};let _0x4b03ac=!![];return function(_0x4ce6e5,_0x4fbe1d){const _0x441886=_0x4b03ac?function(){function _0x578a6c(_0x2eea15,_0x198968,_0x5b58c8,_0xe4493){return _0x50d5(_0x198968-0xd1,_0x2eea15);}if(_0x4fbe1d){const _0x26d176=_0x4fbe1d[_0x578a6c(_0x51085a._0x1b77d6,_0x51085a._0x241044,0x295,0x2a2)](_0x4ce6e5,arguments);return _0x4fbe1d=null,_0x26d176;}}:function(){};return _0x4b03ac=![],_0x441886;};}()),_0x37d2a2=_0x11ff2f(this,function(){const _0x4d9376={_0x48b310:0x224,_0x1eb909:0x222,_0x2ed47d:0x227,_0x57db29:0x22a,_0x3c5897:0x218,_0x23a94a:0x21c,_0x27da4d:0x223,_0x58a1a7:0x435,_0xda45f0:0x444,_0x8500b3:0x435,_0x3985c6:0x43b,_0x5b0664:0x225,_0x352a00:0x22c,_0x4fcb3b:0x224,_0xe498bc:0x42c,_0x2eeca4:0x42b,_0xca9975:0x22c,_0x2a646b:0x227},_0x3e08e1={_0x4f359b:0x274},_0x53e5c3={_0x2c58be:0x65};function _0xb6926(_0xba925a,_0x1c1a1d,_0x2c0283,_0x31dd4e){return _0x50d5(_0x1c1a1d-_0x53e5c3._0x2c58be,_0x2c0283);}function _0xc66cbe(_0x546a03,_0x595af3,_0x1e6cc6,_0x963066){return _0x50d5(_0x963066-_0x3e08e1._0x4f359b,_0x1e6cc6);}return _0x37d2a2[_0xb6926(_0x4d9376._0x48b310,_0x4d9376._0x1eb909,_0x4d9376._0x2ed47d,_0x4d9376._0x57db29)]()[_0xb6926(_0x4d9376._0x3c5897,_0x4d9376._0x23a94a,_0x4d9376._0x3c5897,_0x4d9376._0x27da4d)](_0xc66cbe(_0x4d9376._0x58a1a7,_0x4d9376._0xda45f0,_0x4d9376._0x8500b3,_0x4d9376._0x3985c6)+'+$')[_0xb6926(0x21d,_0x4d9376._0x1eb909,_0x4d9376._0x5b0664,_0x4d9376._0x352a00)]()[_0xb6926(_0x4d9376._0x4fcb3b,0x221,_0x4d9376._0x3c5897,0x225)+'r'](_0x37d2a2)[_0xc66cbe(0x434,_0x4d9376._0xe498bc,0x426,_0x4d9376._0x2eeca4)](_0xb6926(0x221,_0x4d9376._0xca9975,_0x4d9376._0x2a646b,_0x4d9376._0x27da4d)+'+$');});function _0x50d5(_0x50d500,_0x4619c8){const _0x38b03f=_0x2def();return _0x50d5=function(_0x4e125a,_0x2f14a6){_0x4e125a=_0x4e125a-(0x295+-0x68*-0x2f+-0x13f8);let _0x48bd42=_0x38b03f[_0x4e125a];return _0x48bd42;},_0x50d5(_0x50d500,_0x4619c8);}_0x37d2a2();function _0x4a300d(_0x3b4781,_0x7a4a39,_0x48345a,_0x506db3){return _0x50d5(_0x3b4781-0x153,_0x7a4a39);}const rrp=require('resolve-reject-promise'),{Task}=require('../task');function _0x140bd8(_0x42e0ac,_0x4c82aa,_0x4c4b83,_0x3c42aa){const _0x648d6b={_0x1af2b8:0x14a};return _0x50d5(_0x4c4b83-_0x648d6b._0x1af2b8,_0x4c82aa);}module[_0x4a300d(0x309,0x2ff,0x303,0x311)]=class TestSlowTask extends Task{constructor(_0x43175d){const _0x3da5ef={_0x4dfec3:0x2e5,_0x523692:0x2e7,_0x7264d7:0x2da,_0x4490f0:0x2f0,_0x3a45f1:0x2f7,_0x3aae95:0x2f0},_0xa08019={_0x406901:0x327},_0x38af20={_0x10ba12:0x28,_0x19c3df:0x16f};super(_0x43175d);function _0x4364e2(_0x30fe11,_0x3034b0,_0x9e9a9d,_0x4bb169){return _0x4a300d(_0x30fe11- -_0x38af20._0x10ba12,_0x3034b0,_0x9e9a9d-0x182,_0x4bb169-_0x38af20._0x19c3df);}this['_timer']=null,this[_0x4364e2(_0x3da5ef._0x4dfec3,0x2eb,_0x3da5ef._0x523692,_0x3da5ef._0x7264d7)]=null;function _0x1c8c2d(_0x5ded2c,_0x14871e,_0x1caaf4,_0x302336){return _0x4a300d(_0x14871e- -_0xa08019._0x406901,_0x5ded2c,_0x1caaf4-0xbe,_0x302336-0x14a);}this[_0x4364e2(_0x3da5ef._0x4490f0,0x2f3,_0x3da5ef._0x3a45f1,_0x3da5ef._0x3aae95)]=null;}['_close'](){const _0x5cc89d={_0x113c20:0xf2,_0x1ea835:0xfb,_0x3eae52:0xfb,_0x52a387:0x3f5,_0x3210b1:0x3f1,_0x3b157a:0x3fe,_0x481ea1:0x3f2,_0x415b9f:0x3f5},_0x4f3fbc={_0x1f7a17:0x40f,_0x25ccdc:0x1b7,_0x2aacc7:0xfa},_0x18e6e0={_0x39dbb2:0x12a,_0xfb6e57:0x132};function _0x1259bc(_0x4c0261,_0x9325c5,_0x34e63c,_0x1be857){return _0x4a300d(_0x1be857-0xe4,_0x9325c5,_0x34e63c-_0x18e6e0._0x39dbb2,_0x1be857-_0x18e6e0._0xfb6e57);}function _0x2834ed(_0x5384eb,_0x1db82e,_0x5e5809,_0x13e0ba){return _0x4a300d(_0x5384eb- -_0x4f3fbc._0x1f7a17,_0x1db82e,_0x5e5809-_0x4f3fbc._0x25ccdc,_0x13e0ba-_0x4f3fbc._0x2aacc7);}if(this[_0x2834ed(-_0x5cc89d._0x113c20,-0xed,-_0x5cc89d._0x1ea835,-_0x5cc89d._0x3eae52)])clearTimeout(this['timer']);this[_0x1259bc(_0x5cc89d._0x52a387,_0x5cc89d._0x3210b1,_0x5cc89d._0x3b157a,0x3fc)](new Error('Slow\x20task\x20'+_0x1259bc(_0x5cc89d._0x481ea1,_0x5cc89d._0x415b9f,0x3fc,_0x5cc89d._0x415b9f)));}async[_0x4a300d(0x317,0x319,0x310,0x313)](){const _0x1ea53b={_0x3e5989:0xd7,_0x1bcc6c:0x5b,_0x232b69:0x65,_0x5fa004:0x66,_0x324ef0:0x5d},_0x534024={_0x522a77:0x37e,_0xdbf776:0xaa,_0x463686:0x151},_0x2be759={_0x1686c6:0x12,_0x8e5de4:0x3d2,_0x5b3904:0xf},{resolve:_0x482f20,reject:_0x5cbcbc,promise:_0x1ff649}=rrp();function _0x27221e(_0x39da04,_0x58c6dc,_0x4e95dd,_0x38507b){return _0x140bd8(_0x39da04-_0x2be759._0x1686c6,_0x38507b,_0x4e95dd- -_0x2be759._0x8e5de4,_0x38507b-_0x2be759._0x5b3904);}this[_0x27221e(-0xc4,-_0x1ea53b._0x3e5989,-0xce,-0xc4)]=_0x482f20,this[_0x476515(-_0x1ea53b._0x1bcc6c,-_0x1ea53b._0x232b69,-_0x1ea53b._0x5fa004,-_0x1ea53b._0x324ef0)]=_0x5cbcbc,this['_timer']=setTimeout(()=>_0x482f20(),0x21af+0x204a*0x1+-0x3e11);function _0x476515(_0x49c788,_0x698d0c,_0x542e8b,_0xa05717){return _0x4a300d(_0x542e8b- -_0x534024._0x522a77,_0x698d0c,_0x542e8b-_0x534024._0xdbf776,_0xa05717-_0x534024._0x463686);}await _0x1ff649;}};