OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / lib / object.js

1 lines · javascript ref:
function _0x1720(){const _0x3c6160=['function','1958928PDkrYw','512ruPaPz','813539ITUovM','3782416sFyTTq','sted\x20objec','length','3229480Ofvuvh','undefined','toString','search','compare\x20ne','(((.+)+)+)','4268424iMqEGm','keys','14RjwyBe','object','reduce','725706HQBEfa','unable\x20to\x20','isArray','5gRuZER','6405CBfVtE'];_0x1720=function(){return _0x3c6160;};return _0x1720();}function _0xcfbf(_0x1720f2,_0xcfbf03){const _0x20404e=_0x1720();return _0xcfbf=function(_0x53c166,_0x5342e2){_0x53c166=_0x53c166-(-0x253c+-0x903+0x2eed);let _0x13f8d3=_0x20404e[_0x53c166];return _0x13f8d3;},_0xcfbf(_0x1720f2,_0xcfbf03);}(function(_0x15fac6,_0x2a9358){const _0x3589d3={_0x302b0f:0x193,_0x4db8dd:0x185,_0x19f659:0x195,_0x4db24b:0x192,_0x406630:0x198,_0x4285e2:0x187,_0x3f3750:0x1a1,_0x29ae32:0x18b,_0x304c90:0x18c,_0x26c632:0x190,_0x457918:0x191,_0x953314:0x19a,_0x3adbc4:0x150,_0x183c29:0x152,_0x17c11a:0x15a,_0x51c6e6:0x153,_0x35402f:0x151,_0x33a96d:0x157,_0x28f71f:0x14c,_0x77558f:0x156,_0x3db207:0x187,_0x22c0b0:0x187,_0x1002f4:0x182,_0x2d83ff:0x160,_0xe69092:0x151,_0x52f65d:0x15c},_0x5a4c40=_0x15fac6();function _0x459af6(_0x4cec23,_0x852a8a,_0x569a5f,_0x4f81e0){return _0xcfbf(_0x852a8a- -0x247,_0x4cec23);}function _0x1ca9a1(_0x4876f3,_0x327ad5,_0x14f94e,_0x31f817){return _0xcfbf(_0x31f817-0xa2,_0x14f94e);}while(!![]){try{const _0x37fea7=parseInt(_0x459af6(-_0x3589d3._0x302b0f,-0x191,-0x185,-_0x3589d3._0x4db8dd))/(0x3*-0x197+0x22*-0xf7+0x2594)+-parseInt(_0x459af6(-_0x3589d3._0x19f659,-_0x3589d3._0x4db24b,-_0x3589d3._0x406630,-_0x3589d3._0x4285e2))/(-0x160f+0x7e6+0xe2b)*(-parseInt(_0x459af6(-_0x3589d3._0x3f3750,-0x195,-_0x3589d3._0x29ae32,-0x195))/(0x445+0x80d+0x89*-0x17))+parseInt(_0x459af6(-_0x3589d3._0x304c90,-_0x3589d3._0x26c632,-_0x3589d3._0x457918,-_0x3589d3._0x953314))/(-0x3*0xc66+0x2*0x1e7+0x42d*0x8)*(parseInt(_0x1ca9a1(_0x3589d3._0x3adbc4,_0x3589d3._0x183c29,_0x3589d3._0x17c11a,_0x3589d3._0x51c6e6))/(-0x22ae+-0x2*-0x551+0x1*0x1811))+-parseInt(_0x1ca9a1(_0x3589d3._0x35402f,_0x3589d3._0x33a96d,_0x3589d3._0x28f71f,_0x3589d3._0x77558f))/(-0x15b*-0x13+0x11b0*0x2+0x1*-0x3d1b)*(parseInt(_0x459af6(-0x183,-_0x3589d3._0x4db8dd,-_0x3589d3._0x3db207,-0x17c))/(-0x7e5*0x1+-0x2*-0xe35+-0x147e))+-parseInt(_0x459af6(-_0x3589d3._0x457918,-_0x3589d3._0x22c0b0,-_0x3589d3._0x1002f4,-_0x3589d3._0x26c632))/(0x148f+-0xcf*-0x26+0x3341*-0x1)+-parseInt(_0x1ca9a1(0x156,0x152,_0x3589d3._0x28f71f,_0x3589d3._0x3adbc4))/(-0x7*0xd7+0x21e9+-0x1bff)+-parseInt(_0x1ca9a1(_0x3589d3._0x2d83ff,_0x3589d3._0xe69092,0x164,_0x3589d3._0x52f65d))/(0x89*-0x13+0x1c9b+-0x1266);if(_0x37fea7===_0x2a9358)break;else _0x5a4c40['push'](_0x5a4c40['shift']());}catch(_0x1b16d3){_0x5a4c40['push'](_0x5a4c40['shift']());}}}(_0x1720,-0x3367*0x4f+0xcb3cb+-0x53d2*-0x2b));const _0x2231ee=(function(){let _0x14afee=!![];return function(_0x359f3c,_0x2340fa){const _0x3787ec=_0x14afee?function(){if(_0x2340fa){const _0x3f40e0=_0x2340fa['apply'](_0x359f3c,arguments);return _0x2340fa=null,_0x3f40e0;}}:function(){};return _0x14afee=![],_0x3787ec;};}()),_0xce9d11=_0x2231ee(this,function(){const _0x2f3469={_0x1b621c:0x22a,_0x5176e0:0x22f,_0x5b632c:0x230,_0xd9ad95:0x232,_0x35e37a:0x27b,_0x3347eb:0x276,_0x3e5718:0x27c,_0x478337:0x235,_0x59677d:0x22c,_0x1e393b:0x235,_0x3b2dea:0x21d,_0x36abc0:0x229},_0x4cf777={_0x400e67:0x1b7};function _0x4d48b1(_0x474b9e,_0x1e0f11,_0x20eb6c,_0x339ca7){return _0xcfbf(_0x1e0f11- -0x2e6,_0x20eb6c);}function _0x5562de(_0x57c1b1,_0xb4bf03,_0x2139b0,_0x4e3a0d){return _0xcfbf(_0x2139b0-_0x4cf777._0x400e67,_0xb4bf03);}return _0xce9d11[_0x4d48b1(-0x224,-_0x2f3469._0x1b621c,-0x236,-_0x2f3469._0x5176e0)]()[_0x4d48b1(-_0x2f3469._0x5b632c,-0x229,-_0x2f3469._0xd9ad95,-0x22e)](_0x5562de(0x271,_0x2f3469._0x35e37a,_0x2f3469._0x3347eb,_0x2f3469._0x3e5718)+'+$')[_0x4d48b1(-_0x2f3469._0x478337,-0x22a,-_0x2f3469._0x59677d,-_0x2f3469._0x1e393b)]()['constructo'+'r'](_0xce9d11)[_0x4d48b1(-_0x2f3469._0x3b2dea,-_0x2f3469._0x36abc0,-0x228,-0x224)]('(((.+)+)+)'+'+$');});_0xce9d11();function _0xbc86de(_0x13761e,_0x5a6446,_0x533c57,_0x37d653){const _0x18de0b={_0x48fdbd:0xf4};return _0xcfbf(_0x37d653-_0x18de0b._0x48fdbd,_0x5a6446);}export const EMPTY_OBJ=Object['freeze']({});export const isEmpty=_0x3462e1=>!(_0x3462e1&&Object['keys'](_0x3462e1)[_0xbc86de(0x1b0,0x1b2,0x1b3,0x1ad)]);export const strictEqual=(_0x511843,_0x5333f6)=>_0x511843===_0x5333f6;export const objEqual=(_0x1ddd9f,_0x16a5be,_0x4abec1=strictEqual)=>{const _0x4ac815={_0x3c9f49:0x3cc,_0x1a3f3e:0x3df,_0x1d7c40:0x3d6,_0x29a263:0x3e1,_0x56e9ad:0x3dc,_0x497b13:0x3d6,_0x16bedb:0x72,_0x552f3e:0x7a,_0x535469:0x78,_0x3cc4e9:0x67,_0x2c1037:0x71,_0x5a6f94:0x66,_0x1e1598:0x62},_0x2d4871={_0x4d82a5:0x17,_0x3a630b:0x90},_0x35a396={_0x4bd9cb:0x17f,_0x4538e7:0x221};if(!_0x1ddd9f)return!_0x16a5be;if(!_0x16a5be)return!_0x1ddd9f;function _0x2bb0f4(_0x3b4141,_0x468521,_0x23125b,_0x2951d8){return _0xbc86de(_0x3b4141-_0x35a396._0x4bd9cb,_0x3b4141,_0x23125b-0x176,_0x2951d8-_0x35a396._0x4538e7);}function _0x342bf4(_0xfee966,_0x24a8dc,_0x5b12b2,_0x305fa8){return _0xbc86de(_0xfee966-_0x2d4871._0x4d82a5,_0x5b12b2,_0x5b12b2-_0x2d4871._0x3a630b,_0xfee966- -0x21f);}const _0x2f3343=Object[_0x2bb0f4(_0x4ac815._0x3c9f49,0x3dd,_0x4ac815._0x1a3f3e,_0x4ac815._0x1d7c40)](_0x1ddd9f),_0x581a21=Object[_0x2bb0f4(0x3d7,_0x4ac815._0x29a263,_0x4ac815._0x56e9ad,_0x4ac815._0x497b13)](_0x16a5be);if(_0x2f3343[_0x342bf4(-_0x4ac815._0x16bedb,-_0x4ac815._0x552f3e,-_0x4ac815._0x535469,-0x6d)]!==_0x581a21['length'])return![];return _0x2f3343[_0x342bf4(-_0x4ac815._0x3cc4e9,-_0x4ac815._0x2c1037,-_0x4ac815._0x5a6f94,-_0x4ac815._0x1e1598)]((_0x31d33c,_0x18c734)=>{if(!_0x31d33c)return _0x31d33c;return _0x4abec1(_0x1ddd9f[_0x18c734],_0x16a5be[_0x18c734]);},!![]);};export const defaultEqual=(_0x4095c0,_0x175144)=>{const _0x591800={_0x1187a3:0x17b,_0x15c1d9:0x166,_0x22511d:0x178,_0x3769ff:0x167,_0x499afe:0x172,_0x2388f3:0x173,_0x1f418a:0x170},_0x25a6de={_0x2480c8:0x18d,_0x4d62ff:0x11,_0x2e50cd:0x329},_0x405cc6={_0x549a08:0x1e9,_0x44e6b1:0x134};function _0x173e30(_0x5b0d72,_0x137fcf,_0x348459,_0x14fca0){return _0xbc86de(_0x5b0d72-_0x405cc6._0x549a08,_0x5b0d72,_0x348459-0x155,_0x348459- -_0x405cc6._0x44e6b1);}function _0x52dcdf(_0x34d46e,_0x596dc4,_0x556058,_0x26cd98){return _0xbc86de(_0x34d46e-_0x25a6de._0x2480c8,_0x26cd98,_0x556058-_0x25a6de._0x4d62ff,_0x596dc4- -_0x25a6de._0x2e50cd);}if(typeof _0x4095c0===_0x52dcdf(-_0x591800._0x1187a3,-0x172,-_0x591800._0x15c1d9,-_0x591800._0x22511d)&&typeof _0x175144===_0x52dcdf(-_0x591800._0x3769ff,-_0x591800._0x499afe,-_0x591800._0x2388f3,-_0x591800._0x1f418a))return!!objEqual(_0x4095c0,_0x175144);return _0x4095c0===_0x175144;};export const getObjChange=(_0x3a3bc5,_0x367d94,_0x35fe91)=>{const _0x4ba2db={_0x5622a4:0x3b2,_0x51214c:0x3b5,_0x344c70:0x3bc,_0x2309eb:0xd0,_0x20b813:0xda,_0x280bca:0xe4,_0x597478:0xde},_0x1deaab={_0x20ca92:0xb4},_0x4f557e={_0x404f4b:0x10f,_0x445fdc:0x292},_0x3fa46b={_0xdfb102:0x1d4,_0x11911c:0x1cf,_0x399d66:0x1d5},_0x1e23e3={_0x1a4cae:0x33,_0x322d67:0x1d5};if(isEmpty(_0x367d94))return null;if(isEmpty(_0x3a3bc5))return _0x367d94;const _0x12ab0c=Object[_0x504fe7(0x3af,_0x4ba2db._0x5622a4,_0x4ba2db._0x51214c,_0x4ba2db._0x344c70)](_0x367d94)[_0x49ed71(-_0x4ba2db._0x2309eb,-_0x4ba2db._0x20b813,-_0x4ba2db._0x280bca,-_0x4ba2db._0x597478)]((_0x55d9e4,_0x551059)=>{let _0x3c15df=defaultEqual;function _0x5c6c1d(_0x4abba4,_0x14bdb3,_0x5ed2a2,_0x680714){return _0x504fe7(_0x4abba4-_0x1e23e3._0x1a4cae,_0x14bdb3- -_0x1e23e3._0x322d67,_0x680714,_0x680714-0x16a);}if(typeof _0x35fe91==='function')_0x3c15df=_0x35fe91;else _0x35fe91&&typeof _0x35fe91[_0x551059]===_0x5c6c1d(_0x3fa46b._0xdfb102,_0x3fa46b._0x11911c,_0x3fa46b._0x399d66,0x1d2)&&(_0x3c15df=_0x35fe91[_0x551059]);return!_0x3c15df(_0x3a3bc5[_0x551059],_0x367d94[_0x551059])&&(_0x55d9e4[_0x551059]=_0x367d94[_0x551059]),_0x55d9e4;},{});if(isEmpty(_0x12ab0c))return null;function _0x49ed71(_0x16ad9c,_0x3fe3c8,_0x1d9979,_0x1826bc){return _0xbc86de(_0x16ad9c-0x136,_0x1826bc,_0x1d9979-_0x4f557e._0x404f4b,_0x3fe3c8- -_0x4f557e._0x445fdc);}function _0x504fe7(_0x49ffa4,_0x7d29cf,_0x32be27,_0x1eb85e){return _0xbc86de(_0x49ffa4-_0x1deaab._0x20ca92,_0x32be27,_0x32be27-0x2b,_0x7d29cf-0x1fd);}return _0x12ab0c;};export const objKeysEqual=(_0x18a9fa,_0x105ddd)=>{const _0x3f2b45={_0x4ea37f:0x223,_0x56257f:0x228,_0x193364:0x21e,_0x1ae603:0xad,_0x5f2280:0xb2,_0x557416:0xab,_0x3b98f8:0xa9,_0x28cb4a:0xb2,_0x5d04fb:0xa4,_0x4f8510:0xb1,_0xed3b6f:0x9f,_0x57dda2:0xa7,_0x3e4ee4:0xb4,_0x23418d:0xba},_0x4cf8b1={_0x5e3098:0x6f},_0x460868={_0x5ad0bf:0xa,_0x297eeb:0x13d},_0x1859a4=Object[_0xb09341(_0x3f2b45._0x4ea37f,_0x3f2b45._0x56257f,_0x3f2b45._0x193364,0x224)](_0x18a9fa);function _0x116ba8(_0x1e5e94,_0x1fcb4,_0x3bc1a3,_0x16c19c){return _0xbc86de(_0x1e5e94-_0x460868._0x5ad0bf,_0x1fcb4,_0x3bc1a3-_0x460868._0x297eeb,_0x1e5e94- -0x104);}const _0x51a0d0=Object[_0x116ba8(0xb1,_0x3f2b45._0x1ae603,_0x3f2b45._0x5f2280,_0x3f2b45._0x557416)](_0x105ddd);function _0xb09341(_0x3333fc,_0x2c18ad,_0x1bb052,_0x4a1866){return _0xbc86de(_0x3333fc-0x5a,_0x3333fc,_0x1bb052-0x1f3,_0x4a1866-_0x4cf8b1._0x5e3098);}if(_0x1859a4[_0x116ba8(_0x3f2b45._0x3b98f8,_0x3f2b45._0x28cb4a,0xb1,_0x3f2b45._0x5d04fb)]!==_0x51a0d0[_0x116ba8(0xa9,_0x3f2b45._0x4f8510,_0x3f2b45._0xed3b6f,_0x3f2b45._0x57dda2)])return![];return _0x1859a4[_0x116ba8(_0x3f2b45._0x3e4ee4,_0x3f2b45._0x28cb4a,0xbe,_0x3f2b45._0x23418d)]((_0x4f057c,_0x5c043b)=>{if(!_0x4f057c)return _0x4f057c;return!!_0x105ddd[_0x5c043b];},!![]);};export const hasObjChanges=(_0x1b9a1f,_0x530a89)=>{const _0x472819={_0x203655:0x239,_0x30462c:0x233,_0x15ac5d:0x238,_0x3654b2:0x247,_0x2516c5:0x235,_0xb9e087:0x23b},_0x57f363={_0x392f6d:0x227,_0x3e4202:0x23a,_0x2f2c7a:0x233,_0x4d6607:0x233,_0x36f21d:0x281,_0xd2f2fc:0x285,_0x4b3ce5:0x286,_0x16c659:0x238,_0x18e27a:0x22e,_0x53707c:0x233,_0x305550:0x21f,_0x27b162:0x22e,_0x3765bf:0x228,_0x40e87a:0x274,_0x58cd35:0x26b,_0x26d40e:0x276},_0x15f970={_0x264b1f:0xa4,_0x39de7f:0x43,_0x515b51:0x7},_0x37bef0={_0x1f0560:0xe5,_0xdef533:0x1b5,_0xcd9084:0x26},_0x2e6582={_0x16b06e:0xe,_0x151bed:0x11a};function _0x5cc1fc(_0xd865fd,_0x301bd7,_0x2e43d1,_0x263581){return _0xbc86de(_0xd865fd-_0x2e6582._0x16b06e,_0xd865fd,_0x2e43d1-_0x2e6582._0x151bed,_0x263581-0x83);}function _0x5cb4fc(_0x209735,_0x52747b,_0x3376d4,_0x5ab95e){return _0xbc86de(_0x209735-_0x37bef0._0x1f0560,_0x5ab95e,_0x3376d4-_0x37bef0._0xdef533,_0x52747b-_0x37bef0._0xcd9084);}if(isEmpty(_0x530a89))return![];if(!_0x1b9a1f)return!![];return Object[_0x5cc1fc(_0x472819._0x203655,_0x472819._0x30462c,0x22d,_0x472819._0x15ac5d)](_0x530a89)[_0x5cc1fc(0x241,_0x472819._0x3654b2,_0x472819._0x2516c5,_0x472819._0xb9e087)]((_0x2ee2db,_0x59cb0d)=>{const _0x3a457d={_0x25a1bd:0x3e,_0x1dab46:0x4d};if(_0x2ee2db)return _0x2ee2db;if(_0x530a89[_0x59cb0d]&&typeof _0x530a89[_0x59cb0d]===_0x42b96a(_0x57f363._0x392f6d,_0x57f363._0x3e4202,_0x57f363._0x2f2c7a,_0x57f363._0x4d6607))throw new Error(_0xc76b3a(-_0x57f363._0x36f21d,-_0x57f363._0xd2f2fc,-_0x57f363._0x4b3ce5,-0x282)+_0x42b96a(0x222,_0x57f363._0x16c659,_0x57f363._0x18e27a,_0x57f363._0x53707c)+_0x42b96a(_0x57f363._0x305550,_0x57f363._0x27b162,_0x57f363._0x3765bf,0x222)+'ts:\x20primit'+'ives\x20only');if(_0x1b9a1f[_0x59cb0d]!==_0x530a89[_0x59cb0d]){if(typeof _0x530a89[_0x59cb0d]!==_0xc76b3a(-0x26d,-_0x57f363._0x40e87a,-_0x57f363._0x58cd35,-_0x57f363._0x26d40e))return!![];}function _0x42b96a(_0x148591,_0x3c94d3,_0x3b59b1,_0x3688b1){return _0x5cc1fc(_0x148591,_0x3c94d3-_0x15f970._0x264b1f,_0x3b59b1-_0x15f970._0x39de7f,_0x3b59b1- -_0x15f970._0x515b51);}function _0xc76b3a(_0x1bde4e,_0x177547,_0x2b3abe,_0x1de659){return _0x5cc1fc(_0x177547,_0x177547-_0x3a457d._0x25a1bd,_0x2b3abe-_0x3a457d._0x1dab46,_0x1de659- -0x4a8);}return![];},![]);};export const deepDiff=(_0xdd7f16,_0x39d72c)=>{const _0x3544f0={_0x1c73fa:0xc4,_0x29dcff:0xbb,_0x5529c0:0x315,_0x5ab26a:0x305,_0x4dd967:0x301,_0x340b41:0x308,_0x265ba3:0x313,_0x3e6b79:0x310},_0x5990dd={_0x3b0d1e:0x6,_0x1c041c:0x1b7,_0x54fe08:0xab},_0x3978cd={};function _0x3a5c25(_0x6e719a,_0x51802b,_0x275e8b,_0x555f5f){return _0xbc86de(_0x6e719a-_0x5990dd._0x3b0d1e,_0x275e8b,_0x275e8b-_0x5990dd._0x1c041c,_0x51802b- -_0x5990dd._0x54fe08);}const _0x1e083a=_0x3e84cb=>_0x3e84cb&&typeof _0x3e84cb==='object'&&!Array[_0x3a5c25(0xf1,0xf9,0xfc,0xf7)](_0x3e84cb),_0x4ec0ca=(_0x77821d,_0x1fe179,_0x21063b)=>{const _0x26b946={_0x33fd41:0x124,_0x275b98:0x1ce},_0x4701d9={_0x450bbd:0xd9,_0x56a3ae:0x415,_0x5a7d02:0x10},_0x13337e=new Set([...Object['keys'](_0x77821d||{}),...Object[_0x10e6d0(-_0x3544f0._0x1c73fa,-0xc5,-0xc4,-_0x3544f0._0x29dcff)](_0x1fe179||{})]);function _0x472c2c(_0x3a5ada,_0x3cf5ac,_0x476207,_0x18fef1){return _0x3a5c25(_0x3a5ada-_0x4701d9._0x450bbd,_0x3cf5ac- -_0x4701d9._0x56a3ae,_0x18fef1,_0x18fef1-_0x4701d9._0x5a7d02);}function _0x10e6d0(_0x25c734,_0x19f974,_0x219c8d,_0x16e8cd){return _0x3a5c25(_0x25c734-_0x26b946._0x33fd41,_0x219c8d- -_0x26b946._0x275b98,_0x19f974,_0x16e8cd-0xcb);}for(const _0x1bbdc3 of _0x13337e){const _0x12089b=_0x77821d?.[_0x1bbdc3],_0x5aeff5=_0x1fe179?.[_0x1bbdc3];if(_0x1e083a(_0x12089b)&&_0x1e083a(_0x5aeff5)){const _0xc27867={};_0x4ec0ca(_0x12089b,_0x5aeff5,_0xc27867),Object[_0x472c2c(-_0x3544f0._0x5529c0,-0x30b,-_0x3544f0._0x5ab26a,-_0x3544f0._0x4dd967)](_0xc27867)[_0x472c2c(-_0x3544f0._0x340b41,-_0x3544f0._0x265ba3,-0x316,-_0x3544f0._0x3e6b79)]>-0x66*0x3a+-0xfd1+-0x5*-0x7c9&&(_0x21063b[_0x1bbdc3]=_0xc27867);}else _0x12089b!==_0x5aeff5&&(_0x21063b[_0x1bbdc3]={'prev':_0x12089b,'next':_0x5aeff5});}};return _0x4ec0ca(_0xdd7f16,_0x39d72c,_0x3978cd),_0x3978cd;};