OverviewFilesCommitsIssuesDocsReleasesPeers

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

1 lines · javascript ref:
(function(_0xa21a0f,_0x24fe07){const _0x2f7c73={_0x4e9d5d:0x4f8,_0x209671:0x509,_0x12055c:0x50c,_0x6a581a:0x4fd,_0x118c39:0x4fb,_0x4817b8:0x500,_0x27aad1:0x500,_0x432d7d:0x7d,_0x106a85:0x63,_0x2c3c65:0x5a,_0x5a8983:0x4fa,_0x923be1:0x4e9,_0xf169cb:0x4fb,_0x3b8f06:0x41,_0x275054:0x56,_0x1336ed:0x4e,_0x419373:0x54,_0x3f7fb2:0x503,_0x5d0835:0x4f5,_0x6fc030:0x504,_0x3d1c08:0x4d5,_0x56131f:0x4e7,_0x35169f:0x4d8,_0x283ec5:0x62,_0x2e39fd:0x5b,_0x307556:0x53},_0x37c507={_0x22315a:0x148},_0x198786={_0x42bf6b:0x355};function _0x51db12(_0x376fab,_0x348b63,_0x49dfd0,_0x1b38aa){return _0x49fb(_0x49dfd0-_0x198786._0x42bf6b,_0x376fab);}function _0x56cb6f(_0x28df05,_0x3863ed,_0x2c6618,_0x5f52e7){return _0x49fb(_0x2c6618- -_0x37c507._0x22315a,_0x5f52e7);}const _0x2e8e46=_0xa21a0f();while(!![]){try{const _0xf65e7e=parseInt(_0x51db12(_0x2f7c73._0x4e9d5d,_0x2f7c73._0x209671,_0x2f7c73._0x12055c,_0x2f7c73._0x6a581a))/(0x10b2*0x2+0x788+0x5*-0x82f)*(-parseInt(_0x51db12(_0x2f7c73._0x118c39,0x506,_0x2f7c73._0x4817b8,_0x2f7c73._0x27aad1))/(0x707*-0x5+-0x2*0x14f+0x1*0x25c3))+-parseInt(_0x56cb6f(_0x2f7c73._0x432d7d,_0x2f7c73._0x106a85,0x6d,_0x2f7c73._0x2c3c65))/(-0x3*-0x166+0x146b*-0x1+0x2*0x81e)+-parseInt(_0x56cb6f(0x72,0x66,0x6b,0x75))/(-0x1f*0x125+-0x2*-0x51a+0xb9*0x23)*(parseInt(_0x51db12(_0x2f7c73._0x5a8983,_0x2f7c73._0x923be1,_0x2f7c73._0xf169cb,_0x2f7c73._0x4817b8))/(-0x22f3+0x6d5+0x3*0x961))+parseInt(_0x56cb6f(_0x2f7c73._0x3b8f06,_0x2f7c73._0x275054,_0x2f7c73._0x1336ed,_0x2f7c73._0x419373))/(-0x1*0x7d9+0x1*0x13aa+-0xbcb*0x1)+-parseInt(_0x51db12(_0x2f7c73._0x3f7fb2,0x500,_0x2f7c73._0x5d0835,_0x2f7c73._0x6fc030))/(-0x115f*0x1+0xb84+0x5e2)+parseInt(_0x51db12(0x4d7,_0x2f7c73._0x3d1c08,_0x2f7c73._0x56131f,_0x2f7c73._0x35169f))/(-0x1e*0x75+-0x94*0x18+-0x1*-0x1b9e)+parseInt(_0x56cb6f(_0x2f7c73._0x283ec5,_0x2f7c73._0x2e39fd,_0x2f7c73._0x307556,_0x2f7c73._0x2c3c65))/(0x1cdf+0x7ee+-0x24c4);if(_0xf65e7e===_0x24fe07)break;else _0x2e8e46['push'](_0x2e8e46['shift']());}catch(_0x38ab3f){_0x2e8e46['push'](_0x2e8e46['shift']());}}}(_0x3bf4,-0x534*-0x3b+-0xec4c+0x2f83e));const _0x260ced=(function(){const _0x414056={_0x1ccf28:0x2a6,_0x3f24e9:0x2a3,_0x26df5c:0x2b4,_0x54b59c:0x2a1};let _0x16ba29=!![];return function(_0x45195c,_0xf51d57){const _0x1ca817=_0x16ba29?function(){const _0x36e08f={_0x1a387a:0xf9};function _0x28fcd5(_0x56e304,_0x15502c,_0x242de4,_0xcf3cce){return _0x49fb(_0x56e304-_0x36e08f._0x1a387a,_0x15502c);}if(_0xf51d57){const _0x5f2da7=_0xf51d57[_0x28fcd5(_0x414056._0x1ccf28,_0x414056._0x3f24e9,_0x414056._0x26df5c,_0x414056._0x54b59c)](_0x45195c,arguments);return _0xf51d57=null,_0x5f2da7;}}:function(){};return _0x16ba29=![],_0x1ca817;};}()),_0x3353a9=_0x260ced(this,function(){const _0x293c33={_0x24ee09:0xfb,_0x226969:0x10b,_0x5d2f9c:0x42,_0x151e4b:0x32,_0xf8733c:0x2b,_0x4a6b59:0xff,_0x39488e:0xfb,_0xfe44db:0x104,_0x11b691:0x125,_0x238e4e:0x118,_0x1def21:0x11b,_0x15ec42:0xfa,_0x511f8c:0xec,_0x32c0bc:0xf9,_0x588eeb:0xf6,_0x5628b5:0x100,_0x3e5c2f:0xf2},_0x15d688={_0x5c910e:0x2a9},_0x1bdfa3={_0x3f2b37:0x1e4};function _0x5ed30a(_0x373d03,_0xcff5cf,_0x3f7f3a,_0x377a07){return _0x49fb(_0x377a07- -_0x1bdfa3._0x3f2b37,_0x3f7f3a);}function _0x32fcb0(_0x4fbaa4,_0xc2c1a9,_0x2b299a,_0x1d5898){return _0x49fb(_0xc2c1a9- -_0x15d688._0x5c910e,_0x4fbaa4);}return _0x3353a9[_0x32fcb0(-0x101,-_0x293c33._0x24ee09,-_0x293c33._0x226969,-0xfd)]()[_0x5ed30a(-_0x293c33._0x5d2f9c,-_0x293c33._0x151e4b,-_0x293c33._0xf8733c,-_0x293c33._0x151e4b)]('(((.+)+)+)'+'+$')[_0x32fcb0(-_0x293c33._0x4a6b59,-_0x293c33._0x39488e,-0x102,-_0x293c33._0xfe44db)]()[_0x32fcb0(-_0x293c33._0x11b691,-_0x293c33._0x238e4e,-_0x293c33._0x11b691,-_0x293c33._0x1def21)+'r'](_0x3353a9)[_0x32fcb0(-_0x293c33._0x15ec42,-0xf7,-_0x293c33._0x511f8c,-_0x293c33._0x32c0bc)](_0x32fcb0(-_0x293c33._0x588eeb,-_0x293c33._0x5628b5,-_0x293c33._0x3e5c2f,-0xed)+'+$');});function _0x3e15ed(_0x176214,_0x39c16b,_0x4cbfde,_0x266a3c){return _0x49fb(_0x39c16b- -0x231,_0x176214);}_0x3353a9();const ReadyResource=require('ready-resource');function _0x3bf4(){const _0x2ca285=['search','424708cYqBdv','swarmWorke','184602oeaVBb','catch','79658TBEGjn','opened','constructo','1150040nLLhhs','close','timestamp','getId','873756WRjjkl','type','discoveryK','scope','_running','6526134JdEnsy','keet','_open','_id','_run','2394462khcTRm','files','handle','_close','exports','local','15fHuRul','manager','priority','(((.+)+)+)','run','2DKRvQv','encode','apply','toString','store','swarm','descriptio'];_0x3bf4=function(){return _0x2ca285;};return _0x3bf4();}function _0x51b3ea(_0x1aa610,_0x2250c2,_0x37da94,_0x1e99a7){return _0x49fb(_0x2250c2- -0x56,_0x1e99a7);}const HypercoreId=require('hypercore-id-encoding');function _0x49fb(_0x449f44,_0xc7b210){const _0x4da78e=_0x3bf4();return _0x49fb=function(_0xae4b0f,_0x47f2bd){_0xae4b0f=_0xae4b0f-(0x2127+-0x2*-0x243+0x907*-0x4);let _0x197158=_0x4da78e[_0xae4b0f];return _0x197158;},_0x49fb(_0x449f44,_0xc7b210);}class Task extends ReadyResource{constructor(_0x30bf05){const _0x24dea9={_0x36f790:0x13f,_0x1b056d:0x120,_0x186b81:0x12a,_0xe36548:0x122,_0x18f155:0x126,_0xb3d8ec:0x123,_0x3d83fe:0x13f,_0x5803b3:0x143,_0x118904:0x13d,_0x3cdaac:0x123,_0x354600:0x11a,_0x1f320c:0x133,_0x2048c5:0x150,_0x3ffc47:0x13d,_0x56b32f:0x14b,_0x17a8ce:0x14d,_0x26b1d0:0x12c,_0x97879d:0x1aa,_0xeca94d:0x1b1,_0x1c9163:0x1c2,_0x2b9907:0x1ae,_0x354c47:0x1c1,_0x5aff70:0x136,_0x4d4ac0:0x112,_0x2c4bcc:0x123,_0x4599cd:0x1b8,_0x172e56:0x1c8,_0x5ee694:0x145,_0x58b543:0x139,_0x3adab6:0x132,_0x49f6ce:0x1bb,_0x3abdbe:0x1c9,_0x554b7a:0x1c0,_0xce8948:0x1a5,_0x26f257:0x1be,_0x55f9fb:0x1b5,_0x42ec59:0x1b3,_0xdd72c7:0x1ba,_0x20d79b:0x1c8,_0xa06470:0x1c6,_0x1867f6:0x1bd,_0x5cf04e:0x1c3,_0x24ea92:0x1c9,_0xb05939:0x1c4,_0x1b5e12:0x1c8,_0x5bbfe5:0x1c6,_0x3b3e68:0x12d,_0x1309af:0x1af,_0x328268:0x1b7,_0x4e3716:0x1be,_0x4d28e0:0x1b0,_0x5b8b75:0x134,_0x3b7563:0x1a8,_0x13c846:0x1b5,_0xbe3260:0x1d8,_0x5abf9b:0x1d7,_0x5a3a8b:0x1c8,_0x3399c3:0x1b6,_0x561a7d:0x1c8,_0x161fe5:0x128,_0x2e9137:0x138,_0x1a714d:0x1aa,_0x97970f:0x1c4,_0x532fd3:0x1c2,_0x226d97:0x1bc},_0x39b52b={_0x410cde:0x19},_0x1d9de8={_0x921e3e:0x2d4};super(),this[_0x40188a(-_0x24dea9._0x36f790,-_0x24dea9._0x1b056d,-_0x24dea9._0x186b81,-0x132)]=_0x30bf05,this['descriptio'+'n']=_0x30bf05[_0x40188a(-_0x24dea9._0xe36548,-0x129,-_0x24dea9._0x18f155,-_0x24dea9._0xb3d8ec)+'n'];function _0x40188a(_0x6a5cea,_0x3bce0c,_0x4f092e,_0x1fad83){return _0x49fb(_0x1fad83- -_0x1d9de8._0x921e3e,_0x6a5cea);}this[_0x40188a(-_0x24dea9._0x3d83fe,-0x137,-_0x24dea9._0x5803b3,-_0x24dea9._0x118904)]=this[_0x40188a(-0x111,-_0x24dea9._0x3cdaac,-_0x24dea9._0x354600,-0x123)+'n'][_0x40188a(-_0x24dea9._0x1f320c,-0x144,-_0x24dea9._0x2048c5,-_0x24dea9._0x3ffc47)],this[_0x40188a(-_0x24dea9._0x56b32f,-_0x24dea9._0x17a8ce,-_0x24dea9._0x26b1d0,-0x13b)]=this['descriptio'+'n'][_0x4f021f(0x1c5,_0x24dea9._0x97879d,_0x24dea9._0xeca94d,0x1b3)+'ey'],this[_0x4f021f(_0x24dea9._0x1c9163,_0x24dea9._0x2b9907,_0x24dea9._0x354c47,0x1c3)]=this[_0x40188a(-0x11d,-_0x24dea9._0x5aff70,-_0x24dea9._0x4d4ac0,-_0x24dea9._0x2c4bcc)+'n'][_0x4f021f(0x1c4,_0x24dea9._0x4599cd,_0x24dea9._0x354c47,_0x24dea9._0x172e56)],this['keet']=this[_0x40188a(-_0x24dea9._0x5ee694,-_0x24dea9._0x58b543,-0x11e,-_0x24dea9._0x3adab6)][_0x4f021f(_0x24dea9._0x49f6ce,_0x24dea9._0x3abdbe,_0x24dea9._0x554b7a,0x1cc)][_0x4f021f(_0x24dea9._0xce8948,_0x24dea9._0x26f257,_0x24dea9._0x55f9fb,_0x24dea9._0x42ec59)],this[_0x4f021f(_0x24dea9._0xdd72c7,0x1db,_0x24dea9._0x20d79b,_0x24dea9._0xa06470)]=this[_0x4f021f(_0x24dea9._0x1867f6,_0x24dea9._0x26f257,_0x24dea9._0x55f9fb,_0x24dea9._0x5cf04e)][_0x4f021f(_0x24dea9._0x24ea92,_0x24dea9._0xb05939,_0x24dea9._0x1b5e12,_0x24dea9._0x5bbfe5)];function _0x4f021f(_0x41fc45,_0x5778b5,_0x55aa38,_0x50a226){return _0x49fb(_0x55aa38-_0x39b52b._0x410cde,_0x50a226);}this[_0x40188a(-_0x24dea9._0x186b81,-_0x24dea9._0x3b3e68,-_0x24dea9._0x18f155,-0x12f)]=this[_0x4f021f(0x1ae,_0x24dea9._0x1309af,0x1b5,_0x24dea9._0x328268)][_0x4f021f(_0x24dea9._0xb05939,_0x24dea9._0x2b9907,_0x24dea9._0x4e3716,_0x24dea9._0x4d28e0)],this[_0x40188a(-0x124,-_0x24dea9._0x5b8b75,-0x12e,-0x124)]=this[_0x4f021f(_0x24dea9._0x3b7563,_0x24dea9._0x1c9163,_0x24dea9._0x13c846,0x1b4)][_0x4f021f(_0x24dea9._0xbe3260,0x1b6,_0x24dea9._0x24ea92,_0x24dea9._0x5abf9b)],this[_0x40188a(-0x113,-_0x24dea9._0x18f155,-0x11a,-_0x24dea9._0x1b056d)+'r']=this[_0x4f021f(_0x24dea9._0x5a3a8b,0x1b2,_0x24dea9._0x55f9fb,_0x24dea9._0x3399c3)][_0x4f021f(_0x24dea9._0x561a7d,0x1d3,0x1cd,_0x24dea9._0x5cf04e)+'r'],this['files']=this[_0x40188a(-0x13d,-0x137,-_0x24dea9._0x161fe5,-_0x24dea9._0x2e9137)][_0x4f021f(_0x24dea9._0x1a714d,_0x24dea9._0x97970f,_0x24dea9._0xdd72c7,0x1ac)],this[_0x4f021f(_0x24dea9._0x532fd3,0x1b0,0x1b3,_0x24dea9._0x226d97)]=null;}[_0x3e15ed(-0x89,-0x94,-0x9e,-0x80)](){const _0x52b147={_0x51d6ee:0x5a,_0x42c02e:0x63,_0x54593a:0x4e,_0x51cb10:0x4c},_0x5e9575={_0x1b34c3:0x17e,_0xe479bf:0xca},_0xf84ba9={_0x526be4:0x4f3,_0xc6bc3a:0xbe,_0x527528:0xc5};function _0x36d38c(_0x4dc23,_0x5b96a0,_0x8a1f96,_0x4d0bfa){return _0x3e15ed(_0x4d0bfa,_0x4dc23-_0xf84ba9._0x526be4,_0x8a1f96-_0xf84ba9._0xc6bc3a,_0x4d0bfa-_0xf84ba9._0x527528);}function _0x3465e6(_0x5216d1,_0x2832b6,_0x2403b1,_0x468c56){return _0x3e15ed(_0x2832b6,_0x468c56-0x2f,_0x2403b1-_0x5e9575._0x1b34c3,_0x468c56-_0x5e9575._0xe479bf);}this['_running']=this[_0x3465e6(-_0x52b147._0x51d6ee,-0x67,-0x5c,-_0x52b147._0x42c02e)](),this['_running'][_0x3465e6(-0x5b,-0x5e,-_0x52b147._0x54593a,-_0x52b147._0x51cb10)](this['keet']['onerror']);}get['id'](){const _0x14c579={_0x1e1a6e:0x349,_0x38ec49:0x359,_0x5d7e30:0x35d,_0x3305ca:0x336,_0x307129:0x51b,_0x48bdfd:0x52a,_0xbf806e:0x52c,_0x3f78e8:0x358,_0x397a71:0x533,_0x478c3f:0x520,_0x30de11:0x523},_0x46fcb3={_0x3982be:0x3dc,_0x1da6c6:0x47,_0x26be7d:0xed},_0x4ad56d={_0x3baf9b:0x184,_0xf6f814:0x150};function _0x1d33be(_0x751a01,_0x5f514e,_0x5b25ef,_0x40121f){return _0x3e15ed(_0x751a01,_0x5f514e-0x5c6,_0x5b25ef-_0x4ad56d._0x3baf9b,_0x40121f-_0x4ad56d._0xf6f814);}function _0x31b9ea(_0x25c4b4,_0x1bd81b,_0x1f8ce8,_0x1f46f7){return _0x3e15ed(_0x1bd81b,_0x25c4b4-_0x46fcb3._0x3982be,_0x1f8ce8-_0x46fcb3._0x1da6c6,_0x1f46f7-_0x46fcb3._0x26be7d);}if(this['_id'])return this['_id'];return this[_0x31b9ea(_0x14c579._0x1e1a6e,_0x14c579._0x38ec49,_0x14c579._0x5d7e30,_0x14c579._0x3305ca)]=Task[_0x1d33be(_0x14c579._0x307129,_0x14c579._0x48bdfd,0x522,_0x14c579._0xbf806e)](this[_0x31b9ea(0x35c,0x34f,0x34f,_0x14c579._0x3f78e8)+'n']),this[_0x1d33be(0x53d,_0x14c579._0x397a71,_0x14c579._0x478c3f,_0x14c579._0x30de11)];}async[_0x3e15ed(-0x97,-0x87,-0x7e,-0x8e)](){const _0x528a89={_0x50ccc2:0x102,_0x5d4b00:0x101,_0x4e18f2:0x107,_0x11ead7:0xd1,_0x83fc4a:0xde,_0x17f5e0:0xe8,_0x149fb6:0x19e,_0x122563:0x19b,_0x559e4d:0x184,_0x857cf6:0x193},_0x2e2bdf={_0xaab14f:0x109,_0x41691e:0xfb},_0x3ac4fb={_0x2b2a31:0x16c,_0xdc032f:0x154,_0x1063b7:0xa0};function _0x31a96f(_0x4c1772,_0x175cf5,_0xc204c3,_0x5e9104){return _0x3e15ed(_0xc204c3,_0x175cf5-_0x3ac4fb._0x2b2a31,_0xc204c3-_0x3ac4fb._0xdc032f,_0x5e9104-_0x3ac4fb._0x1063b7);}if(!this[_0x31a96f(_0x528a89._0x50ccc2,0xf3,_0x528a89._0x5d4b00,_0x528a89._0x4e18f2)])await this['ready']();await this[_0x31a96f(_0x528a89._0x11ead7,0xd5,_0x528a89._0x83fc4a,_0x528a89._0x17f5e0)];function _0x47193c(_0xb1e93c,_0x3036b1,_0x490ebd,_0x371c32){return _0x3e15ed(_0xb1e93c,_0x371c32- -0xf5,_0x490ebd-_0x2e2bdf._0xaab14f,_0x371c32-_0x2e2bdf._0x41691e);}await this[_0x47193c(-_0x528a89._0x149fb6,-_0x528a89._0x122563,-_0x528a89._0x559e4d,-_0x528a89._0x857cf6)]();}async[_0x3e15ed(-0x84,-0x92,-0x90,-0x91)](){}async[_0x51b3ea(0x154,0x14d,0x15e,0x14b)](){}static['getId'](_0x401977){const _0x51085c={_0x24b66f:0xdf,_0x3f1a40:0xdb,_0x5dbefb:0xbc,_0x2f0e8b:0xb6,_0x5263c7:0xc3,_0x563b5b:0xc8,_0x42ac01:0xde,_0x145865:0xd7,_0x4845c7:0xc5,_0x5188b9:0xd1},_0x2651fc={_0x22b83f:0x52},_0x1ba0e1={_0x1fa550:0x372,_0x4e2f3b:0x64};function _0x26aeb2(_0x419443,_0x3cbeb9,_0x1d5236,_0x54d860){return _0x3e15ed(_0x3cbeb9,_0x54d860-_0x1ba0e1._0x1fa550,_0x1d5236-_0x1ba0e1._0x4e2f3b,_0x54d860-0x17);}function _0x16d579(_0x14f16c,_0x1d1960,_0x1cd60e,_0x54e886){return _0x51b3ea(_0x14f16c-_0x2651fc._0x22b83f,_0x1cd60e- -0x219,_0x1cd60e-0x136,_0x14f16c);}return _0x401977[_0x16d579(-0xd2,-_0x51085c._0x24b66f,-_0x51085c._0x3f1a40,-0xd9)]+':'+HypercoreId[_0x16d579(-_0x51085c._0x5dbefb,-_0x51085c._0x2f0e8b,-_0x51085c._0x5263c7,-0xd3)](_0x401977[_0x16d579(-_0x51085c._0x563b5b,-_0x51085c._0x42ac01,-_0x51085c._0x145865,-_0x51085c._0x4845c7)+'ey'])+':'+_0x401977[_0x16d579(-0xcb,-_0x51085c._0x5188b9,-0xd8,-0xe4)];}}module[_0x51b3ea(0x158,0x14e,0x157,0x14a)]={'Task':Task};