(function(_0x5bf9f9,_0xc15f8d){const _0x3aaf62={_0x1ead5c:0x27f,_0x2ae945:0x276,_0xb7320f:0x267,_0x45b416:0x26f,_0x5d6a57:0x431,_0x11a83a:0x420,_0x334c62:0x3fd,_0x3c8803:0x410,_0x38f2ed:0x3fb,_0x407e03:0x3f7,_0x5ac205:0x40e,_0x5f52c9:0x407,_0x101615:0x3fb,_0x5875ab:0x43b,_0x439bbf:0x437,_0x236426:0x427,_0x4eb2aa:0x43c,_0x108400:0x453,_0x1929ac:0x43f,_0x2ab06c:0x299,_0x45b34b:0x2a5,_0x30c556:0x28f,_0x5e8686:0x409,_0x116894:0x423,_0x3bba10:0x428,_0x1f0cf6:0x42f,_0x43d1f8:0x280,_0x49574b:0x27b,_0x1f71ae:0x27e,_0x44d61c:0x430,_0x531502:0x41d},_0x3255d2={_0x3197fc:0x329},_0x21af15=_0x5bf9f9();function _0x53a661(_0x66b425,_0x847004,_0x157609,_0x3437d2){return _0x561b(_0x847004-_0x3255d2._0x3197fc,_0x66b425);}function _0x5e5d0d(_0x12764f,_0x489788,_0x57cd6e,_0x23a4a3){return _0x561b(_0x23a4a3-0x178,_0x57cd6e);}while(!![]){try{const _0x3ed2d1=parseInt(_0x5e5d0d(_0x3aaf62._0x1ead5c,_0x3aaf62._0x2ae945,_0x3aaf62._0xb7320f,_0x3aaf62._0x45b416))/(0x1777+0x15*0xf3+-0xe77*0x3)+-parseInt(_0x53a661(0x42c,_0x3aaf62._0x5d6a57,_0x3aaf62._0x11a83a,0x42c))/(0x1b85+0x1eb9+-0x3a3c)+parseInt(_0x53a661(_0x3aaf62._0x334c62,_0x3aaf62._0x3c8803,_0x3aaf62._0x38f2ed,_0x3aaf62._0x407e03))/(-0x2071*0x1+0x98d*0x1+0x16e7)+-parseInt(_0x53a661(0x422,_0x3aaf62._0x5ac205,_0x3aaf62._0x5f52c9,_0x3aaf62._0x101615))/(0xdb*0xb+-0xa5*-0x33+-0x1522*0x2)+-parseInt(_0x53a661(_0x3aaf62._0x5875ab,_0x3aaf62._0x439bbf,_0x3aaf62._0x236426,0x44d))/(0x1f27+0x1718*-0x1+-0x1*0x80a)*(parseInt(_0x53a661(0x44b,_0x3aaf62._0x4eb2aa,_0x3aaf62._0x108400,_0x3aaf62._0x1929ac))/(-0x554+-0x1765*-0x1+-0x120b))+parseInt(_0x5e5d0d(_0x3aaf62._0x2ab06c,_0x3aaf62._0x45b34b,0x29d,_0x3aaf62._0x30c556))/(-0x12a4*-0x1+0x319+-0x15b6)*(-parseInt(_0x53a661(_0x3aaf62._0x5e8686,_0x3aaf62._0x116894,_0x3aaf62._0x3bba10,_0x3aaf62._0x1f0cf6))/(0x1a2d+0x95*0x36+-0x3993))+-parseInt(_0x5e5d0d(_0x3aaf62._0x43d1f8,_0x3aaf62._0x49574b,_0x3aaf62._0x1f71ae,0x290))/(0x3*0x7a7+0x234d+-0x3a39)*(-parseInt(_0x53a661(0x436,0x424,_0x3aaf62._0x44d61c,_0x3aaf62._0x531502))/(-0x3*-0x883+-0x141f+-0x560));if(_0x3ed2d1===_0xc15f8d)break;else _0x21af15['push'](_0x21af15['shift']());}catch(_0x11263a){_0x21af15['push'](_0x21af15['shift']());}}}(_0x11b4,0x81e25+-0xdbff*0x5+-0x1*-0x492f9));const _0x3547cc=(function(){let _0x366e92=!![];return function(_0x167ecc,_0x3cfd3c){const _0xa28c2d=_0x366e92?function(){if(_0x3cfd3c){const _0x534c80=_0x3cfd3c['apply'](_0x167ecc,arguments);return _0x3cfd3c=null,_0x534c80;}}:function(){};return _0x366e92=![],_0xa28c2d;};}()),_0x10bf96=_0x3547cc(this,function(){const _0x5ca504={_0x1ff7d4:0x4bf,_0x122de9:0x4ca,_0x15b2f4:0x4a8,_0x305ec8:0x4a3,_0x520404:0x4c2,_0x276ca8:0x4bc,_0x1d55a6:0x4ad,_0x49fd18:0x442,_0x555453:0x43e,_0x1cf4e3:0x435,_0x3647e7:0x444,_0x29c9a7:0x43a,_0x17421b:0x44c,_0x1fec6c:0x43d,_0x117986:0x437,_0x779d3c:0x4b6,_0x18bfb0:0x49e,_0x11d570:0x4bc,_0x41c343:0x4ad,_0x3c2db0:0x416,_0x274e19:0x430,_0x583736:0x41b};function _0x22eb55(_0x39bc9f,_0x4c60da,_0x3736b0,_0x3224be){return _0x561b(_0x3224be-0x3ab,_0x39bc9f);}function _0x15bff2(_0x186954,_0xf7fab4,_0x2371d5,_0x251c86){return _0x561b(_0x2371d5-0x332,_0xf7fab4);}return _0x10bf96[_0x22eb55(_0x5ca504._0x1ff7d4,_0x5ca504._0x122de9,_0x5ca504._0x15b2f4,0x4bd)]()[_0x22eb55(_0x5ca504._0x305ec8,_0x5ca504._0x520404,_0x5ca504._0x276ca8,_0x5ca504._0x1d55a6)](_0x15bff2(0x439,0x416,0x430,_0x5ca504._0x49fd18)+'+$')[_0x15bff2(_0x5ca504._0x555453,_0x5ca504._0x1cf4e3,_0x5ca504._0x3647e7,_0x5ca504._0x29c9a7)]()[_0x15bff2(_0x5ca504._0x17421b,0x434,_0x5ca504._0x1fec6c,_0x5ca504._0x117986)+'r'](_0x10bf96)[_0x22eb55(_0x5ca504._0x779d3c,_0x5ca504._0x18bfb0,_0x5ca504._0x11d570,_0x5ca504._0x41c343)](_0x15bff2(0x438,_0x5ca504._0x3c2db0,_0x5ca504._0x274e19,_0x5ca504._0x583736)+'+$');});_0x10bf96();const p=require('path'),RocksBlobs=require('rocksdb-blobs'),HyperBlobs=require('hyperblobs');function _0x16b1ae(_0x5e94f5,_0x4a4675,_0x55b508,_0x8fb570){return _0x561b(_0x5e94f5-0xf0,_0x4a4675);}const HyperDB=require('hyperdb'),spec=require('../../spec'),{contract:{hyperdispatch:{Router:InternalKeetRouter,encode:encodeOperation},hyperdb:KeetDatabaseSpec}}=spec,identity=require('./identity'),internal=require('./internal'),members=require('./members'),memberLabels=require('./members/labels'),chat=require('./chat'),reactions=require('./reactions'),config=require('./config'),labels=require('./labels');function _0x23185e(_0x9688f,_0x3f0002,_0x2a409c,_0x2ac647){return _0x561b(_0x2a409c-0x2ca,_0x9688f);}const testing=require('./testing'),REGISTER_ROUTES=require('./registration');class KeetOpContext{constructor(_0x1c029a,_0x265479,{abi:_0x2205ca,bootstrap:_0x4fa333,router:_0x3a93d8,hostcalls:_0x232978,writer:_0x10b13d,genesis:_0x56d794,dryRun:_0xfb3323,trace:_0x2434b6,fork:_0x45de0c}){const _0x311aaa={_0x57248c:0x225,_0x1dab0a:0x238,_0x3b4b47:0x212,_0x55917c:0x220,_0xafcead:0x22a,_0x22b82a:0x204,_0x4c5712:0x200,_0x490cef:0x1f8,_0x1b2b33:0x1ec,_0x17902a:0x1ee,_0xd67be4:0x23c,_0x2be3ae:0x1d1,_0x74a846:0x1e6,_0x486233:0x1e6,_0x55b0cb:0x1f5,_0x16d135:0x203,_0x105a92:0x1f1,_0x18d0d9:0x227,_0x213305:0x20d,_0x470205:0x203,_0x478c8a:0x238,_0x1cc36c:0x223,_0x2ed54f:0x21d,_0x22921f:0x20a,_0x39bac5:0x20c,_0x37b09c:0x222,_0x211d89:0x21f,_0x215c18:0x20f,_0x264f2f:0x235,_0x53e37d:0x209,_0x545353:0x1e7,_0x5c53b9:0x1fe,_0x3e6055:0x1ee,_0x1ff6a:0x1ff,_0x1d1cc9:0x20e,_0x3742e8:0x216,_0x4e4dba:0x1f4,_0x51f3c7:0x207,_0x319c8b:0x210,_0x54d461:0x212,_0x39722c:0x22c,_0x2552bf:0x22c,_0x36e58a:0x234,_0x9e42ae:0x226,_0x2fb9cb:0x1ed,_0x34387b:0x1ed,_0x46730b:0x203,_0x1cd43e:0x245,_0x1a019e:0x232,_0x1a2e98:0x1ff,_0x51efbd:0x21f,_0x37489c:0x1f6,_0x2f1bf3:0x211,_0x4586ad:0x208,_0x17d394:0x20e,_0x48a319:0x20f,_0x34963c:0x21b,_0x1563ca:0x1fa,_0x5a9255:0x22a,_0xcf4b9e:0x214,_0x8781fa:0x218,_0x120b6d:0x1fd,_0x468402:0x22b,_0x5b6bdc:0x237,_0x4dbdf1:0x244,_0x4bd711:0x211,_0xed07ae:0x228,_0x174568:0x1f0,_0x3e7b0f:0x1e5,_0x5ccdac:0x1d0,_0x52ecdd:0x231,_0x1bfb4a:0x213,_0x44dcfe:0x226,_0x2108b8:0x1fa,_0x10aff1:0x1f7,_0x3751d4:0x21d,_0x57f1e7:0x234,_0x579b6f:0x22f,_0x5725d0:0x212,_0x36f7e6:0x1f7,_0x25d9c0:0x204},_0x3e5b68={_0xdd4181:0x12b};this['db']=_0x1c029a,this['blobs']=_0x265479,this[_0x1232d8(_0x311aaa._0x57248c,_0x311aaa._0x1dab0a,0x241,0x238)]=_0x10b13d,this['genesis']=!!_0x56d794,this[_0x1232d8(_0x311aaa._0x3b4b47,0x219,_0x311aaa._0x55917c,_0x311aaa._0xafcead)]=_0x4fa333;function _0x5dcff9(_0x5033e4,_0x214e77,_0x1c5e61,_0x538498){return _0x561b(_0x214e77-0xfe,_0x5033e4);}this[_0x5dcff9(_0x311aaa._0x22b82a,0x202,_0x311aaa._0x4c5712,_0x311aaa._0x490cef)]=_0x3a93d8,this[_0x5dcff9(_0x311aaa._0x1b2b33,0x1ee,0x1e5,_0x311aaa._0x17902a)]=_0x232978,this[_0x1232d8(0x228,_0x311aaa._0xd67be4,0x22a,0x23d)]=_0xfb3323;function _0x1232d8(_0x3f3bb5,_0x2fdbf4,_0x1266e4,_0x3b850a){return _0x561b(_0x2fdbf4-_0x3e5b68._0xdd4181,_0x3f3bb5);}this[_0x5dcff9(_0x311aaa._0x2be3ae,_0x311aaa._0x74a846,0x1ed,_0x311aaa._0x486233)]=_0x2434b6,this[_0x5dcff9(_0x311aaa._0x55b0cb,_0x311aaa._0x16d135,_0x311aaa._0x105a92,0x20d)]=_0x45de0c,this['abi']=_0x2205ca;if(!_0x232978['addWriter'])throw new Error(_0x5dcff9(_0x311aaa._0x18d0d9,_0x311aaa._0x213305,_0x311aaa._0x470205,0x1fe)+_0x1232d8(_0x311aaa._0x478c8a,_0x311aaa._0x1cc36c,0x21c,_0x311aaa._0x2ed54f)+_0x5dcff9(0x20f,_0x311aaa._0x22921f,_0x311aaa._0x55b0cb,_0x311aaa._0x39bac5)+'provided\x20a'+'s\x20context');if(!_0x232978[_0x1232d8(_0x311aaa._0x37b09c,_0x311aaa._0x211d89,_0x311aaa._0x215c18,0x225)+'er'])throw new Error(_0x1232d8(0x226,0x221,_0x311aaa._0x264f2f,_0x311aaa._0x53e37d)+_0x5dcff9(_0x311aaa._0x545353,_0x311aaa._0x5c53b9,_0x311aaa._0x3e6055,0x1ec)+_0x5dcff9(_0x311aaa._0x1ff6a,_0x311aaa._0x1d1cc9,_0x311aaa._0x3742e8,0x20d)+_0x5dcff9(_0x311aaa._0x4e4dba,_0x311aaa._0x51f3c7,_0x311aaa._0x319c8b,_0x311aaa._0x39bac5)+_0x5dcff9(0x1f7,_0x311aaa._0x54d461,_0x311aaa._0x54d461,0x22a)+'t');if(!_0x232978[_0x1232d8(_0x311aaa._0x39722c,_0x311aaa._0x2552bf,_0x311aaa._0x36e58a,_0x311aaa._0x9e42ae)])throw new Error(_0x5dcff9(0x1f0,_0x311aaa._0x2fb9cb,_0x311aaa._0x34387b,_0x311aaa._0x46730b)+_0x1232d8(_0x311aaa._0x1cd43e,_0x311aaa._0x1a019e,0x23d,_0x311aaa._0x1cd43e)+_0x5dcff9(_0x311aaa._0x1a2e98,0x20a,_0x311aaa._0x51efbd,_0x311aaa._0x37489c)+_0x1232d8(_0x311aaa._0x3742e8,_0x311aaa._0x2f1bf3,_0x311aaa._0x4586ad,_0x311aaa._0x17d394)+_0x1232d8(_0x311aaa._0x46730b,_0x311aaa._0x48a319,_0x311aaa._0x34963c,_0x311aaa._0x1563ca));if(!_0x232978[_0x5dcff9(_0x311aaa._0x5a9255,_0x311aaa._0xcf4b9e,0x1ff,_0x311aaa._0x8781fa)])throw new Error(_0x5dcff9(0x1fa,_0x311aaa._0x120b6d,_0x311aaa._0x105a92,0x215)+_0x1232d8(0x20d,0x227,_0x311aaa._0x468402,0x234)+_0x1232d8(0x248,_0x311aaa._0x5b6bdc,0x22d,_0x311aaa._0x4dbdf1)+_0x1232d8(0x229,_0x311aaa._0x4bd711,0x203,_0x311aaa._0xed07ae)+_0x5dcff9(_0x311aaa._0x174568,0x1e2,_0x311aaa._0x3e7b0f,_0x311aaa._0x5ccdac));if(!_0x232978[_0x1232d8(0x231,_0x311aaa._0x52ecdd,0x23e,_0x311aaa._0x55917c)+'or'])throw new Error(_0x5dcff9(0x206,_0x311aaa._0x1bfb4a,0x21a,_0x311aaa._0x44dcfe)+_0x5dcff9(_0x311aaa._0x2108b8,_0x311aaa._0x10aff1,0x1fe,0x1f7)+'all\x20must\x20b'+_0x1232d8(_0x311aaa._0x3751d4,_0x311aaa._0x57f1e7,_0x311aaa._0x579b6f,_0x311aaa._0x55917c)+_0x5dcff9(0x229,_0x311aaa._0x5725d0,_0x311aaa._0x36f7e6,_0x311aaa._0x25d9c0)+'t');}}class KeetContract{static [_0x16b1ae(0x1dc,0x1e2,0x1e8,0x1cd)]=KeetOpContext;static['bee'](_0x29068f,_0x514ce9={}){const _0xc0133={_0x19218b:0x3a0,_0x5e8c3a:0x1d,_0x252554:0x1f,_0x423b0c:0x10,_0x87cc57:0x4,_0x4647c4:0x12,_0x12c988:0x13,_0x75486d:0x381,_0x1508a2:0x390,_0x3d17e2:0x37a,_0x2af253:0x387},_0x3328ad={_0x456e48:0x20c,_0x60bfb:0x16c,_0x4f5227:0x10b},_0x130dbb={_0x4a93ae:0x1a6,_0x2b708d:0x11c};function _0x1de7b1(_0x3fe332,_0x11bbfa,_0x5dafd6,_0x24cfc8){return _0x16b1ae(_0x24cfc8-_0x130dbb._0x4a93ae,_0x11bbfa,_0x5dafd6-0x18d,_0x24cfc8-_0x130dbb._0x2b708d);}const _0x390055=_0x29068f[_0x1de7b1(0x3a7,0x3b0,0x388,_0xc0133._0x19218b)](KeetContract[_0x374dd7(-0x37,-_0xc0133._0x5e8c3a,-_0xc0133._0x252554,-_0xc0133._0x423b0c)+'ME']),_0x4d49d9=_0x29068f[_0x374dd7(_0xc0133._0x87cc57,-0x8,-_0xc0133._0x4647c4,-_0xc0133._0x12c988)](KeetContract[_0x1de7b1(_0xc0133._0x75486d,_0xc0133._0x1508a2,_0xc0133._0x3d17e2,_0xc0133._0x2af253)+'NAME']),_0x57b0bc=HyperDB['bee'](_0x390055,KeetDatabaseSpec,_0x514ce9['hyperdb']);function _0x374dd7(_0x401d60,_0x5360fd,_0x3517bf,_0x501027){return _0x16b1ae(_0x3517bf- -_0x3328ad._0x456e48,_0x401d60,_0x3517bf-_0x3328ad._0x60bfb,_0x501027-_0x3328ad._0x4f5227);}const _0x182028=new HyperBlobs(_0x4d49d9);return{'blobs':_0x182028,'db':_0x57b0bc,'cores':{'db':_0x390055,'blobs':_0x4d49d9}};}static[_0x23185e(0x3bf,0x3b2,0x3b5,0x39b)](_0xf6d97b,_0x378633={}){const _0x927771={_0x469911:0x344,_0x240bd3:0x34a,_0x1bf9a9:0x340,_0x3a443c:0x33f,_0x51995f:0x33c,_0x388036:0x340,_0x173fbe:0x1ee,_0x4e5bdf:0x204,_0x23d960:0x21a,_0x4e37d7:0x204,_0x2465bd:0x1f4,_0x16b191:0x206,_0xb6fe6a:0x1f4,_0x2df516:0x201},_0x4ed12e={_0x50c35e:0x3,_0xbcf844:0x1b1,_0x2bea48:0x19d},_0x40f853={_0x956105:0x63,_0x5d00d5:0x83,_0x1e366b:0x1a7},_0x162f06=p[_0x2fa88d(_0x927771._0x469911,_0x927771._0x240bd3,_0x927771._0x1bf9a9,_0x927771._0x3a443c)](_0xf6d97b,'db'),_0x4525de=p['join'](_0xf6d97b,_0x2fa88d(0x344,_0x927771._0x51995f,_0x927771._0x388036,0x347)),_0x575bd5=HyperDB[_0x59f4b3(_0x927771._0x173fbe,_0x927771._0x4e5bdf,_0x927771._0x23d960,_0x927771._0x4e37d7)](_0x162f06,KeetDatabaseSpec,_0x378633[_0x59f4b3(_0x927771._0x2465bd,_0x927771._0x16b191,_0x927771._0xb6fe6a,_0x927771._0x2df516)]),_0x2dce5d=new RocksBlobs(_0x4525de);function _0x2fa88d(_0x2f0991,_0x51bda3,_0x3d87c3,_0x39516b){return _0x23185e(_0x3d87c3,_0x51bda3-_0x40f853._0x956105,_0x51bda3- -_0x40f853._0x5d00d5,_0x39516b-_0x40f853._0x1e366b);}function _0x59f4b3(_0x323b44,_0x4b237d,_0x235c37,_0x30201a){return _0x23185e(_0x323b44,_0x4b237d-_0x4ed12e._0x50c35e,_0x4b237d- -_0x4ed12e._0xbcf844,_0x30201a-_0x4ed12e._0x2bea48);}return{'blobs':_0x2dce5d,'db':_0x575bd5};}static [_0x16b1ae(0x1ed,0x1f4,0x1d2,0x203)+'ME']=_0x23185e(0x39c,0x3be,0x3b4,0x3c2);static [_0x16b1ae(0x1e1,0x1fb,0x1cd,0x1e6)+'NAME']=_0x23185e(0x3bd,0x3c5,0x3bd,0x3bf)+_0x16b1ae(0x1d9,0x1c1,0x1cc,0x1de);}function _0x561b(_0x11b4a1,_0x561b29){const _0x38f0dd=_0x11b4();return _0x561b=function(_0xe1e068,_0x4c2a2a){_0xe1e068=_0xe1e068-(-0x1d5d+-0x2699+0x44da);let _0x1e56d5=_0x38f0dd[_0xe1e068];return _0x1e56d5;},_0x561b(_0x11b4a1,_0x561b29);}function createRouter(){const _0xacae39=new InternalKeetRouter();return identity[REGISTER_ROUTES](_0xacae39),internal[REGISTER_ROUTES](_0xacae39),members[REGISTER_ROUTES](_0xacae39),memberLabels[REGISTER_ROUTES](_0xacae39),chat[REGISTER_ROUTES](_0xacae39),reactions[REGISTER_ROUTES](_0xacae39),config[REGISTER_ROUTES](_0xacae39),labels[REGISTER_ROUTES](_0xacae39),testing[REGISTER_ROUTES](_0xacae39),_0xacae39;}module[_0x23185e(0x3c0,0x3ce,0x3bc,0x3c9)]={'KeetContract':KeetContract,'createRouter':createRouter,'encodeOperation':encodeOperation,'spec':spec};function _0x11b4(){const _0x21076c=['hostcalls','BLOB_VIEW_','exports','keet/v3/bl','removeWrit','blobs','A\x20removeWr','762267ajKnjl','er\x20hostcal','chor\x20hostc','56zcGKkl','20PCYdGC','pt\x20hostcal','DB_VIEW_NA','(((.+)+)+)','An\x20interru','iter\x20hostc','removeable','search','join','router','fork','createAnch','le\x20hostcal','36524VcmgEz','e\x20provided','get','constructo','l\x20must\x20be\x20','writer','1930xZBRzc','An\x20addWrit','all\x20must\x20b','dryRun','toString','13218EbrAVW','\x20as\x20contex','A\x20createAn','interrupt','405545TgFzGd','2010456nxgInB','s\x20context','811240snsmxh','provided\x20a','2454357xiLYXX','trace','obs','keet/v3/db','rocks','OpContext','hyperdb','bootstrap','A\x20removeab'];_0x11b4=function(){return _0x21076c;};return _0x11b4();}