@p697/clawket 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(_0x34e792,_0x3f0d79){const _0x4694b6={_0x31bd94:0x12c,_0x57847b:0x518,_0x57f144:0x616,_0x4fecf1:0x481,_0x996393:0x3da,_0x5b7e7e:0x4c4,_0x2bbf65:0x35c,_0x1891d0:0x47f,_0x356b52:0x5a5,_0x291342:0x4d6,_0x5ab062:0x3a6,_0x249d96:0x3e0},_0x1414e5={_0x461558:0x44};function _0x4df8c5(_0x989cb4,_0x470511){return _0x54ce(_0x989cb4-_0x1414e5._0x461558,_0x470511);}function _0x2f21f2(_0x19691f,_0x33fd06){return _0x54ce(_0x19691f-0x1d3,_0x33fd06);}const _0x1c07c1=_0x34e792();while(!![]){try{const _0x3640f8=parseInt(_0x4df8c5(0x508,0x63b))/0x1*(parseInt(_0x4df8c5(0x31f,_0x4694b6._0x31bd94))/0x2)+parseInt(_0x4df8c5(_0x4694b6._0x57847b,_0x4694b6._0x57f144))/0x3+parseInt(_0x2f21f2(_0x4694b6._0x4fecf1,_0x4694b6._0x996393))/0x4*(-parseInt(_0x2f21f2(_0x4694b6._0x5b7e7e,_0x4694b6._0x2bbf65))/0x5)+parseInt(_0x4df8c5(_0x4694b6._0x1891d0,_0x4694b6._0x356b52))/0x6*(parseInt(_0x4df8c5(0x30a,0x203))/0x7)+-parseInt(_0x2f21f2(_0x4694b6._0x291342,0x596))/0x8+-parseInt(_0x2f21f2(0x4e3,0x610))/0x9+parseInt(_0x4df8c5(_0x4694b6._0x5ab062,_0x4694b6._0x249d96))/0xa;if(_0x3640f8===_0x3f0d79)break;else _0x1c07c1['push'](_0x1c07c1['shift']());}catch(_0x5396b0){_0x1c07c1['push'](_0x1c07c1['shift']());}}}(_0x3b6d,0x26472));const _0x3af660=(function(){let _0xeba31c=!![];return function(_0x19cdd8,_0x3ae851){const _0x3df193={_0x3b63e8:0xc1},_0x1d33f1=_0xeba31c?function(){const _0x30bf8c={_0x3260c7:0x172};function _0x2174cc(_0x476791,_0x4ed764){return _0x54ce(_0x4ed764- -_0x30bf8c._0x3260c7,_0x476791);}if(_0x3ae851){const _0x30cb3a=_0x3ae851[_0x2174cc(0x236,_0x3df193._0x3b63e8)](_0x19cdd8,arguments);return _0x3ae851=null,_0x30cb3a;}}:function(){};return _0xeba31c=![],_0x1d33f1;};}()),_0x36af2=_0x3af660(this,function(){const _0x3bfc71={_0x2fa0f8:0x10a,_0x4657bf:0x207,_0x4100b5:0x2c2,_0x4ed923:0x29f},_0x1e796b={_0x176258:0xa8},_0x454fda={_0x13df7e:0x3ce};function _0xf4e79b(_0x7c87f3,_0x2a9cf5){return _0x54ce(_0x7c87f3- -_0x454fda._0x13df7e,_0x2a9cf5);}function _0x139d4b(_0x3da425,_0x3a3387){return _0x54ce(_0x3da425- -_0x1e796b._0x176258,_0x3a3387);}return _0x36af2['toString']()['search'](_0xf4e79b(-0x26e,-0xbd)+_0xf4e79b(-0x29f,-_0x3bfc71._0x2fa0f8))[_0x139d4b(0x437,0x301)]()[_0x139d4b(0x300,_0x3bfc71._0x4657bf)+'tor'](_0x36af2)[_0xf4e79b(0x12f,0x24e)](_0xf4e79b(-0x26e,-_0x3bfc71._0x4100b5)+_0xf4e79b(-_0x3bfc71._0x4ed923,-0x464));});_0x36af2();import _0xdc51c2 from'qrcode-terminal';import{readFileSync as _0x3daafd}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x1bc0ac(0x750,0x6ba)),CONFIG_PATH=join(CONFIG_DIR,_0x1bc0ac(0x54c,0x5ea)+_0x5ccb08(0xd6,0x118)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x1bc0ac(0x358,0x3ca)+'w',_0x5ccb08(0xe5,0x1e2)+_0x1bc0ac(0x47a,0x643));function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x4534b1={_0x1f8455:0x95a,_0x206715:0x781,_0xaac98c:0x217,_0x24dda2:0x5fe,_0x3aa61a:0x852,_0x2e9c2e:0x5af,_0x527a84:0x557,_0x55328c:0x5fa,_0xc7dfe7:0x33c,_0x556972:0x413,_0x1df697:0x37d,_0x2d4930:0x5f6,_0xa21c9:0x776,_0x32efae:0x422};function _0x1fe8be(_0x32151e,_0x387abf){return _0x5ccb08(_0x32151e,_0x387abf-0x68f);}const _0x5d2530={'XKlUC':function(_0x276671,_0x2d6d9b){return _0x276671(_0x2d6d9b);},'RaXtd':function(_0x5ccf3c){return _0x5ccf3c();}};function _0x340515(_0x1fa0f6,_0x419562){return _0x5ccb08(_0x419562,_0x1fa0f6-0x44d);}if(!_0x5d2530[_0x1fe8be(_0x4534b1._0x1f8455,_0x4534b1._0x206715)](existsSync,CONFIG_PATH))return null;try{const _0x517e14=JSON[_0x1fe8be(0x782,0x866)](readFileSync(CONFIG_PATH,_0x340515(0x3c3,_0x4534b1._0xaac98c)));if(!_0x517e14['serverUr'+'l']||!_0x517e14['gatewayI'+'d']||!_0x517e14[_0x1fe8be(_0x4534b1._0x24dda2,0x731)+_0x1fe8be(0xa3d,_0x4534b1._0x3aa61a)]||!_0x517e14['relayUrl'])return null;const _0x5f151c={'serverUrl':_0x517e14[_0x340515(0x478,_0x4534b1._0x2e9c2e)+'l'],'gatewayId':_0x517e14['gatewayI'+'d'],'relaySecret':_0x517e14[_0x1fe8be(_0x4534b1._0x527a84,0x731)+_0x340515(0x610,_0x4534b1._0x55328c)],'relayUrl':_0x517e14['relayUrl'],'instanceId':_0x517e14[_0x340515(_0x4534b1._0xc7dfe7,0x378)+'Id']?.[_0x340515(0x5e1,_0x4534b1._0x556972)]()||_0x5d2530['RaXtd'](createInstanceId),'displayName':_0x517e14[_0x1fe8be(_0x4534b1._0x1df697,0x573)+_0x1fe8be(0x841,0x826)]??null,'createdAt':_0x517e14[_0x1fe8be(0x643,_0x4534b1._0x2d4930)+'t']??new Date()[_0x340515(0x60f,0x804)+'ing'](),'updatedAt':_0x517e14['updatedA'+'t']??new Date()[_0x340515(0x60f,_0x4534b1._0xa21c9)+_0x1fe8be(_0x4534b1._0x32efae,0x4b9)]()};return _0x517e14[_0x1fe8be(0x451,0x57e)+'Id']!==_0x5f151c[_0x1fe8be(0x69e,0x57e)+'Id']&&writePairingConfig(_0x5f151c),_0x5f151c;}catch{return null;}}function writePairingConfig(_0x10cd81){const _0x1fb119={_0x502f52:0x3eb,_0x3edc8f:0xc3},_0x1985ff={_0xf11573:0x466},_0x25badd={'lsBln':function(_0x3198a3,_0x228553,_0x4bb1cf){return _0x3198a3(_0x228553,_0x4bb1cf);},'CBoih':function(_0x25f7ab,_0x128956){return _0x25f7ab+_0x128956;}},_0x3deb1e={};function _0x316f33(_0xd7d48e,_0x17eb38){return _0x1bc0ac(_0x17eb38,_0xd7d48e-0xd6);}_0x3deb1e['recursiv'+'e']=!![];function _0x267d3f(_0x15e782,_0x43a03a){return _0x1bc0ac(_0x15e782,_0x43a03a- -_0x1985ff._0xf11573);}_0x25badd[_0x267d3f(_0x1fb119._0x502f52,0x2b5)](mkdirSync,CONFIG_DIR,_0x3deb1e),writeFileSync(CONFIG_PATH,_0x25badd['CBoih'](JSON[_0x267d3f(0x111,-0x73)+'y'](_0x10cd81,null,0x2),'\x0a'),_0x267d3f(-_0x1fb119._0x3edc8f,0x39));}function deletePairingConfig(){const _0x3323dd={_0x57c8bf:0x2ad,_0x50a493:0x1ad,_0xc38812:0x541},_0x466a48={_0x1e3e22:0x335};function _0x4481c5(_0x2dca19,_0x1abf66){return _0x1bc0ac(_0x2dca19,_0x1abf66- -0x25d);}const _0x2d5365={'jeIZs':function(_0x1d599c,_0x2e2ba0,_0x1fced8){return _0x1d599c(_0x2e2ba0,_0x1fced8);}};if(!existsSync(CONFIG_PATH))return;const _0x209837={};function _0x5645a5(_0x214cbf,_0x333dc6){return _0x1bc0ac(_0x333dc6,_0x214cbf- -_0x466a48._0x1e3e22);}_0x209837[_0x4481c5(_0x3323dd._0x57c8bf,_0x3323dd._0x50a493)]=!![],_0x2d5365[_0x5645a5(0x3ef,_0x3323dd._0xc38812)](rmSync,CONFIG_PATH,_0x209837);}function getDefaultBridgeDisplayName(){const _0xc46701={_0xe91956:0x2,_0x2d971c:0x1cc,_0x5c76e6:0xcf,_0x3e9430:0x3f2,_0x306802:0x3e6},_0x2e9f88={_0x4274a8:0x2be},_0x463a5a=readOpenClawDefaultAgentName();function _0x16ccbe(_0x1e6d1e,_0x5b6aa5){return _0x1bc0ac(_0x5b6aa5,_0x1e6d1e- -0x558);}if(_0x463a5a)return _0x463a5a;try{const _0x20f90b=userInfo()[_0x16ccbe(-_0xc46701._0xe91956,_0xc46701._0x2d971c)][_0x40971e(0x3ff,0x452)]();if(_0x20f90b)return _0x20f90b;}catch{}function _0x40971e(_0x479247,_0x40070){return _0x1bc0ac(_0x40070,_0x479247- -_0x2e9f88._0x4274a8);}const _0x2c325b=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x40971e(0x3ff,0x2d4)]();if(_0x2c325b)return _0x2c325b;return hostname()[_0x16ccbe(0x165,_0xc46701._0x5c76e6)]()||'Clawket\x20'+_0x40971e(_0xc46701._0x3e9430,_0xc46701._0x306802);}function pickOpenClawDefaultAgentName(_0x490d65){const _0x23bc32={_0x5acc37:0x3a8,_0x15f473:0x38e,_0x5c3426:0x35d,_0x7c79f6:0x20a,_0x20704a:0x242,_0x1d8bf2:0x4a0},_0x48d4a2={_0x58425a:0x524},_0x7d7db8={_0x20cefc:0x336},_0x2ccc79={};_0x2ccc79['mcRkY']=function(_0x1edc87,_0xb04cb){return _0x1edc87!==_0xb04cb;},_0x2ccc79['kbSMh']=_0x2f74c1(_0x23bc32._0x5acc37,0x31d);function _0x2f74c1(_0x4be616,_0xd49c4){return _0x5ccb08(_0x4be616,_0xd49c4-_0x7d7db8._0x20cefc);}const _0x237a65=_0x2ccc79;function _0x18a694(_0x24d516,_0x50642d){return _0x5ccb08(_0x50642d,_0x24d516-_0x48d4a2._0x58425a);}if(!_0x490d65||_0x237a65[_0x2f74c1(0x1d0,_0x23bc32._0x15f473)](typeof _0x490d65,_0x237a65[_0x2f74c1(0x561,0x52b)]))return null;const _0x1bc23b=_0x490d65[_0x2f74c1(_0x23bc32._0x5c3426,_0x23bc32._0x7c79f6)],_0x126bc6=Array[_0x2f74c1(0x328,0x1bd)](_0x1bc23b?.[_0x2f74c1(_0x23bc32._0x20704a,0x431)])?_0x1bc23b['list']:[],_0x168692=_0x126bc6[_0x18a694(0x401,0x4d8)](_0xaa1065=>isDefaultAgent(_0xaa1065))??_0x126bc6[_0x18a694(0x401,_0x23bc32._0x1d8bf2)](_0x32f322=>hasAgentId(_0x32f322,_0x18a694(0x54e,0x6ce)))??_0x126bc6[0x0];return readAgentName(_0x168692);}function createInstanceId(){const _0x5c6aad={_0x3aa7dd:0x2dd,_0x2abb02:0x317},_0x23ca6d={'VavYq':function(_0x5bf3cb,_0x4ef5fb){return _0x5bf3cb(_0x4ef5fb);},'DNdGu':function(_0xae96c1){return _0xae96c1();},'mOTcl':'host'};function _0xebe584(_0x451592,_0x1aeaf8){return _0x1bc0ac(_0x451592,_0x1aeaf8- -0x317);}const _0x1e1b65=_0x23ca6d[_0xebe584(0x26c,_0x5c6aad._0x3aa7dd)](sanitizeId,_0x23ca6d[_0x4b11af(0x5a8,0x662)](hostname)||_0x23ca6d[_0x4b11af(_0x5c6aad._0x2abb02,0x2e6)]);function _0x4b11af(_0x33a6f5,_0x1798c0){return _0x1bc0ac(_0x1798c0,_0x33a6f5- -0x161);}return _0xebe584(0x3b0,0x415)+_0x1e1b65+'-'+randomUUID()[_0xebe584(0x2bc,0x235)](0x0,0xa);}function sanitizeId(_0x267cee){const _0x9b7a14={_0x5d69fa:0x1a7,_0x4dbec6:0x270,_0x59c1a5:0x4f6,_0x631623:0x5fa,_0x5de6ce:0x780};function _0x289bde(_0x345700,_0x50c229){return _0x1bc0ac(_0x50c229,_0x345700- -0x43c);}function _0x316d70(_0x111cd2,_0x21395a){return _0x1bc0ac(_0x21395a,_0x111cd2-0x72);}return _0x267cee[_0x289bde(0x281,_0x9b7a14._0x5d69fa)]()[_0x289bde(_0x9b7a14._0x4dbec6,0x2b0)+_0x316d70(_0x9b7a14._0x59c1a5,0x53f)]()['replace'](/[^a-z0-9._-]+/g,'-')[_0x316d70(_0x9b7a14._0x631623,_0x9b7a14._0x5de6ce)](/^-+|-+$/g,'')||_0x316d70(0x536,0x4a6);}function readOpenClawDefaultAgentName(){const _0x1077d8={_0x292542:0x716,_0x2ee415:0x3b1},_0x5ea9ea={_0x215c40:0x89};function _0x1bb586(_0x2ce230,_0x128bf3){return _0x5ccb08(_0x128bf3,_0x2ce230-0x53f);}const _0xe5d4a4={'WaTQk':function(_0x4d4924,_0x1f99db){return _0x4d4924(_0x1f99db);}};if(!_0xe5d4a4[_0x1bb586(0x55c,0x3a0)](existsSync,OPENCLAW_CONFIG_PATH))return null;function _0x2918c1(_0x5a9869,_0x40ae27){return _0x5ccb08(_0x5a9869,_0x40ae27-_0x5ea9ea._0x215c40);}try{const _0x2fd653=JSON[_0x1bb586(_0x1077d8._0x292542,0x51d)](readFileSync(OPENCLAW_CONFIG_PATH,_0x1bb586(0x4b5,_0x1077d8._0x2ee415)));return pickOpenClawDefaultAgentName(_0x2fd653);}catch{return null;}}function isDefaultAgent(_0x42df84){const _0x16f949={_0x5bc527:0x299,_0x4e2f6a:0x36e,_0x5c6d36:0x76,_0x5456e4:0x201,_0x4bbe3e:0x2ab,_0xc522ab:0xd9},_0x1f4186={_0x3ec465:0x3ec};function _0x56b259(_0x254f5b,_0xdb110b){return _0x5ccb08(_0xdb110b,_0x254f5b-0x2c4);}const _0x516e49={};_0x516e49[_0x1c6727(_0x16f949._0x5bc527,_0x16f949._0x4e2f6a)]=function(_0x2fc0ed,_0x52c34b){return _0x2fc0ed===_0x52c34b;};function _0x1c6727(_0x2912b6,_0x277357){return _0x5ccb08(_0x2912b6,_0x277357-_0x1f4186._0x3ec465);}_0x516e49[_0x1c6727(_0x16f949._0x5c6d36,_0x16f949._0x5456e4)]=_0x56b259(_0x16f949._0x4bbe3e,0xf2);const _0xec811a=_0x516e49;return Boolean(_0x42df84&&_0xec811a[_0x56b259(0x246,0x23c)](typeof _0x42df84,_0xec811a[_0x56b259(_0x16f949._0xc522ab,0x111)])&&_0x42df84[_0x1c6727(0x532,0x553)]===!![]);}function hasAgentId(_0x5ddd9c,_0x6639a8){const _0xeb604d={_0x1de097:0xf7,_0x44cec0:0xa5,_0x385f34:0x3af,_0x49d331:0x539,_0x52ecdf:0x54f},_0x2d9c91={_0x4b7434:0x23a},_0x2a16da={_0x9fc18f:0x3bb};function _0x504370(_0x4b7466,_0xdfa14b){return _0x5ccb08(_0x4b7466,_0xdfa14b-_0x2a16da._0x9fc18f);}const _0x542a34={'Crvlu':function(_0x543016,_0x56d9a5){return _0x543016(_0x56d9a5);},'SjJSz':'object','PpZdg':'string'};function _0x1f6ff8(_0x501e31,_0x1c9574){return _0x5ccb08(_0x501e31,_0x1c9574-_0x2d9c91._0x4b7434);}return _0x542a34[_0x1f6ff8(_0xeb604d._0x1de097,_0xeb604d._0x44cec0)](Boolean,_0x5ddd9c&&typeof _0x5ddd9c===_0x542a34[_0x1f6ff8(_0xeb604d._0x44cec0,0xc3)]&&typeof _0x5ddd9c['id']===_0x542a34[_0x504370(0x58c,_0xeb604d._0x385f34)]&&_0x5ddd9c['id'][_0x504370(_0xeb604d._0x49d331,_0xeb604d._0x52ecdf)]()===_0x6639a8);}function readAgentName(_0x34f119){const _0x4c1289={_0x342bf1:0x7c3,_0x1b8506:0x80d,_0x1571f6:0x8b,_0x11f7e5:0x12a,_0x28569d:0x246,_0x5ebd64:0x803,_0x36e182:0x85f,_0x5e54de:0x7c3,_0x4c6c39:0xb5,_0x374a77:0x578,_0x55d7f4:0x13e,_0x1839c4:0x88f,_0x11c1c4:0x725},_0x3217bb={_0x344137:0x6fb},_0x1e8e08={};_0x1e8e08[_0x273dfd(_0x4c1289._0x342bf1,_0x4c1289._0x1b8506)]=_0x2ace71(_0x4c1289._0x1571f6,-0xad),_0x1e8e08[_0x2ace71(-_0x4c1289._0x11f7e5,-0xde)]=function(_0x5153b5,_0x4613ce){return _0x5153b5===_0x4613ce;},_0x1e8e08[_0x2ace71(_0x4c1289._0x28569d,0x43d)]=_0x273dfd(_0x4c1289._0x5ebd64,_0x4c1289._0x36e182);const _0x3072df=_0x1e8e08;if(!_0x34f119||typeof _0x34f119!==_0x3072df[_0x273dfd(_0x4c1289._0x5e54de,0x846)])return null;function _0x2ace71(_0xeaa470,_0x183e0b){return _0x5ccb08(_0x183e0b,_0xeaa470-0xa4);}const _0x5a830a=_0x34f119;function _0x273dfd(_0x14ff03,_0x145950){return _0x5ccb08(_0x145950,_0x14ff03-_0x3217bb._0x344137);}const _0x5cab3a=typeof _0x5a830a[_0x2ace71(0x101,_0x4c1289._0x4c6c39)]?.[_0x273dfd(_0x4c1289._0x374a77,0x62c)]===_0x2ace71(0x1ac,0x80)?_0x5a830a[_0x2ace71(0x101,-0x74)][_0x2ace71(-0xdf,-_0x4c1289._0x55d7f4)][_0x273dfd(_0x4c1289._0x1839c4,0x9d0)]():'';if(_0x5cab3a)return _0x5cab3a;const _0x49e45e=_0x3072df[_0x2ace71(-_0x4c1289._0x11f7e5,-0x101)](typeof _0x5a830a[_0x2ace71(-0xdf,-0x1f)],_0x3072df['NyGSc'])?_0x5a830a[_0x273dfd(0x578,_0x4c1289._0x11c1c4)][_0x2ace71(0x238,0x3a8)]():'';return _0x49e45e||null;}function buildPairingQrPayload(_0x1d28d3){const _0xa9a113={_0x4d8cad:0x69e,_0x4bb169:0x5b5,_0x4d1f12:0x2ee,_0x31f320:0x3a3,_0x863408:0xc8,_0x9f8583:0x90a,_0x46070c:0x570,_0x37fa94:0x4b8,_0xc89066:0x4a6},_0x3ee1f1={};_0x3ee1f1['v']=0x2,_0x3ee1f1['k']='cp',_0x3ee1f1['s']=_0x1d28d3[_0x1869ab(_0xa9a113._0x4d8cad,_0xa9a113._0x4bb169)],_0x3ee1f1['g']=_0x1d28d3[_0x113239(_0xa9a113._0x4d1f12,_0xa9a113._0x31f320)+'d'],_0x3ee1f1['a']=_0x1d28d3['accessCo'+'de'];const _0x2e5bdb=_0x3ee1f1;_0x1d28d3[_0x113239(_0xa9a113._0x863408,0x1ac)+_0x1869ab(_0xa9a113._0x9f8583,0x823)]?.[_0x113239(0x426,0x45c)]()&&(_0x2e5bdb['n']=_0x1d28d3[_0x1869ab(0x48f,_0xa9a113._0x46070c)+_0x1869ab(0x7fe,0x823)]['trim']());function _0x1869ab(_0x67ce54,_0x21cd60){return _0x1bc0ac(_0x67ce54,_0x21cd60-0x163);}function _0x113239(_0x1856a7,_0x130991){return _0x1bc0ac(_0x1856a7,_0x130991- -0x261);}return _0x1d28d3[_0x113239(_0xa9a113._0x37fa94,0x420)]?.['trim']()&&(_0x2e5bdb['t']=_0x1d28d3['token'][_0x113239(_0xa9a113._0xc89066,0x45c)]()),JSON['stringif'+'y'](_0x2e5bdb);}async function pairGateway(_0x189051){const _0x4d3152={_0x113cda:0x452,_0x71031e:0x4de,_0x3109e8:0x6fc,_0x286591:0x436,_0x59192f:0x4f5,_0x14a2ed:0x4bc,_0x352c6a:0x704,_0x4bf702:0x5dd,_0x16621d:0x4a0,_0x59e14f:0x425,_0x5987bf:0x6d8,_0x218d62:0x3e9,_0x262bf6:0x275,_0x4ce2f3:0x3ae,_0x467cc3:0x2b2,_0x1a8962:0x3ea,_0x1a76c7:0x248,_0x1d5780:0x206,_0x12c792:0x445,_0x2b2b95:0x603,_0x7a2601:0x45e,_0x392ebf:0x62d,_0x6c110a:0x65e,_0x460e28:0x502,_0x401915:0x528,_0x4f143b:0x405,_0x567d55:0x5fd,_0x720643:0x799,_0xb480ff:0x3d0,_0x270ac2:0x1cd,_0x3c72cd:0x240,_0x45c694:0x3ca,_0x5639c1:0x3d8,_0x53bf11:0x596,_0x249608:0x4a9,_0x247607:0x301,_0x5d3e3b:0x3f9,_0x512089:0x40b,_0x186ad0:0x245,_0x450bb8:0x6d8,_0x235301:0x5ca,_0x102aba:0x4e9,_0x2026f8:0x621,_0x28e3c6:0x282,_0x2f3ac7:0x16a,_0x32bd81:0x476,_0x1bfd1d:0x3fd,_0x4f4fc5:0x678,_0x2354f5:0x269,_0x4722ca:0x5b1,_0x4d7c0d:0x463,_0x3b8e6f:0x4f9,_0x52f58c:0x462,_0x9a323e:0x329,_0x538389:0x4d0,_0x18d6a7:0x518,_0x46d9e1:0x425,_0x10ea4e:0x549,_0x7644c9:0x4fb,_0x705b5:0x6d5},_0x14e046={_0x58f2d5:0x10f},_0x22948f={'smxey':'applicat'+'ion/json','Xmduo':function(_0x40c43d,_0x31af66){return _0x40c43d(_0x31af66);}};function _0x498ee5(_0x417ec5,_0x5f3e94){return _0x1bc0ac(_0x5f3e94,_0x417ec5- -_0x14e046._0x58f2d5);}const _0x4ec06e=normalizeHttpBase(_0x189051['serverUr'+'l']),_0x44fb60=readPairingConfig(),_0x2b7036=assessPairingCompatibility(_0x44fb60,_0x4ec06e);function _0x3d60b9(_0x5435ee,_0x4fb508){return _0x1bc0ac(_0x5435ee,_0x4fb508-0x18);}if(_0x2b7036===_0x3d60b9(_0x4d3152._0x113cda,_0x4d3152._0x71031e)+'existing'&&_0x44fb60){const _0x3a4eeb={};return _0x3a4eeb[_0x3d60b9(_0x4d3152._0x3109e8,0x56c)+'l']=_0x44fb60['serverUr'+'l'],_0x3a4eeb[_0x3d60b9(_0x4d3152._0x286591,0x61c)+'d']=_0x44fb60[_0x498ee5(_0x4d3152._0x59192f,0x30f)+'d'],_0x3a4eeb[_0x498ee5(_0x4d3152._0x14a2ed,0x50a)+_0x3d60b9(0x6f4,_0x4d3152._0x352c6a)]=_0x44fb60[_0x498ee5(_0x4d3152._0x14a2ed,0x406)+_0x498ee5(_0x4d3152._0x4bf702,0x64b)],_0x3a4eeb[_0x3d60b9(_0x4d3152._0x16621d,_0x4d3152._0x59e14f)+_0x3d60b9(0x540,_0x4d3152._0x5987bf)]=_0x189051[_0x3d60b9(_0x4d3152._0x218d62,_0x4d3152._0x59e14f)+'ame'],_0x3a4eeb[_0x498ee5(0x436,_0x4d3152._0x262bf6)+'oken']=_0x189051[_0x3d60b9(0x475,0x55d)+_0x3d60b9(_0x4d3152._0x4ce2f3,0x4fb)],refreshAccessCode(_0x3a4eeb);}if(_0x2b7036==='server-m'+'ismatch')throw new Error(_0x498ee5(0x278,_0x4d3152._0x467cc3)+_0x3d60b9(0x5b1,0x57d)+_0x498ee5(0x5e6,0x74a)+_0x498ee5(_0x4d3152._0x1a8962,_0x4d3152._0x1a76c7)+_0x498ee5(0x36f,_0x4d3152._0x1d5780)+_0x44fb60?.[_0x498ee5(_0x4d3152._0x12c792,_0x4d3152._0x2b2b95)+'l']+(_0x498ee5(0x31a,0x12f)+_0x3d60b9(_0x4d3152._0x7a2601,_0x4d3152._0x392ebf)+_0x498ee5(0x544,_0x4d3152._0x6c110a)+_0x3d60b9(0x5ed,0x6a4)+_0x498ee5(0x30f,0x44a)+_0x498ee5(0x4c9,0x4a6)+'erent\x20se'+'rver.'));const _0xb4de6f={};_0xb4de6f[_0x498ee5(_0x4d3152._0x460e28,0x523)+_0x498ee5(_0x4d3152._0x401915,_0x4d3152._0x4f143b)]=_0x498ee5(_0x4d3152._0x567d55,_0x4d3152._0x720643)+_0x3d60b9(_0x4d3152._0xb480ff,0x3af),_0xb4de6f[_0x498ee5(0x2f6,_0x4d3152._0x270ac2)]=_0x22948f[_0x498ee5(_0x4d3152._0x3c72cd,_0x4d3152._0x45c694)];const _0x3c0d83=await fetch(_0x4ec06e+(_0x498ee5(_0x4d3152._0x5639c1,_0x4d3152._0x53bf11)+_0x498ee5(0x501,_0x4d3152._0x249608)+'r'),{'method':_0x498ee5(_0x4d3152._0x247607,_0x4d3152._0x5d3e3b),'headers':_0xb4de6f,'body':JSON[_0x3d60b9(0x501,_0x4d3152._0x512089)+'y']({'displayName':_0x189051[_0x3d60b9(_0x4d3152._0x186ad0,0x425)+_0x3d60b9(0x4ea,_0x4d3152._0x450bb8)]?.['trim']()||null})});if(!_0x3c0d83['ok'])throw new Error(_0x498ee5(0x509,_0x4d3152._0x235301)+_0x3d60b9(0x324,_0x4d3152._0x102aba)+_0x498ee5(0x2c2,0x26f)+_0x3c0d83[_0x498ee5(0x43a,0x50e)]+_0x3d60b9(0x44b,0x5c4)+await _0x3c0d83[_0x498ee5(0x56d,_0x4d3152._0x2026f8)]());const _0xf80b4d=await _0x3c0d83[_0x498ee5(_0x4d3152._0x28e3c6,_0x4d3152._0x2f3ac7)](),_0xa43927=new Date()[_0x498ee5(0x5dc,0x3f4)+_0x498ee5(0x244,0xd3)](),_0x5e9ae2={'serverUrl':_0x4ec06e,'gatewayId':_0xf80b4d['gatewayI'+'d'],'relaySecret':_0xf80b4d[_0x498ee5(_0x4d3152._0x14a2ed,0x328)+'ret'],'relayUrl':_0xf80b4d['relayUrl'],'instanceId':_0x44fb60?.[_0x3d60b9(_0x4d3152._0x32bd81,0x430)+'Id']??_0x498ee5(0x61d,0x63b)+_0xf80b4d[_0x498ee5(0x4f5,_0x4d3152._0x1bfd1d)+'d'][_0x3d60b9(_0x4d3152._0x4f4fc5,0x564)](-0xa),'displayName':_0xf80b4d[_0x498ee5(0x2fe,_0x4d3152._0x2354f5)+_0x498ee5(_0x4d3152._0x4722ca,0x5c9)],'createdAt':_0xa43927,'updatedAt':_0xa43927};return writePairingConfig(_0x5e9ae2),{'config':_0x5e9ae2,'accessCode':_0xf80b4d['accessCo'+'de'],'accessCodeExpiresAt':_0xf80b4d[_0x3d60b9(0x353,0x4d0)+_0x498ee5(0x513,_0x4d3152._0x4d7c0d)+_0x498ee5(_0x4d3152._0x3b8e6f,0x6b3)],'action':_0x498ee5(_0x4d3152._0x52f58c,0x295)+'ed','qrPayload':_0x22948f[_0x3d60b9(0x83c,0x6a5)](buildPairingQrPayload,{'server':_0x4ec06e,'gatewayId':_0xf80b4d[_0x498ee5(0x4f5,_0x4d3152._0x9a323e)+'d'],'accessCode':_0xf80b4d[_0x3d60b9(0x445,_0x4d3152._0x538389)+'de'],'displayName':_0xf80b4d[_0x3d60b9(_0x4d3152._0x18d6a7,_0x4d3152._0x46d9e1)+_0x3d60b9(0x76f,0x6d8)],'token':_0x189051[_0x498ee5(0x436,_0x4d3152._0x10ea4e)+_0x3d60b9(0x4bc,_0x4d3152._0x7644c9)]?.[_0x3d60b9(0x7be,_0x4d3152._0x705b5)]()||null})};}async function refreshAccessCode(_0x328847){const _0x15b4a8={_0x194ec5:0x7d0,_0x59eb52:0x618,_0x30969f:0x5fc,_0x36e8c5:0x174,_0x8fcf56:0x10f,_0x360e36:0x1f7,_0x3e42ac:0x2e4,_0x3f634d:0xdb,_0x163cab:0x1ee,_0x224725:0x22b,_0x20652e:0x165,_0x1708f3:0x78,_0x268680:0x12d,_0x35d27b:0x3a,_0x268c8d:0xd0,_0x101851:0x142,_0x4efb4d:0x127,_0x2b71d9:0x4c9,_0x8199b2:0x646,_0x486449:0x6cb,_0x1411f9:0x45b,_0x273127:0xe,_0x12ee7f:0x788,_0x5dd579:0x7d8,_0x5bf1fd:0x297,_0x155444:0x4d1,_0x20eecb:0x370,_0x47ffd7:0x1cb,_0x4e6f64:0x43f,_0x465e6f:0x425,_0x1e7795:0x68d,_0x2de327:0x6c8,_0x166733:0x767,_0x59403e:0x57,_0x556b83:0x203,_0xad1bce:0x84,_0x7fd2d8:0x76a,_0x4d6eb3:0x65,_0x14be32:0x86c,_0x556d76:0x307,_0x5e8f96:0x57c,_0x1ae745:0xb6,_0x311d16:0x148,_0x4c9425:0x781};function _0x5346cc(_0x322a4c,_0x322ef1){return _0x5ccb08(_0x322ef1,_0x322a4c-0x34);}const _0x46aeff={};_0x46aeff[_0x5346cc(0x127,-0xac)]=_0x50f01d(_0x15b4a8._0x194ec5,0x737)+'ion/json';const _0x4c9b3a=_0x46aeff,_0xb9b019=readPairingConfig(),_0x2fc673=normalizeHttpBase(_0x328847?.[_0x50f01d(_0x15b4a8._0x59eb52,_0x15b4a8._0x30969f)+'l']??_0xb9b019?.[_0x5346cc(0x5f,-_0x15b4a8._0x36e8c5)+'l']??''),_0x1fbed5=_0x328847?.[_0x5346cc(_0x15b4a8._0x8fcf56,0x280)+'d']??_0xb9b019?.['gatewayI'+'d']??'',_0x4a3c8b=_0x328847?.['relaySec'+_0x5346cc(_0x15b4a8._0x360e36,0x380)]??_0xb9b019?.['relaySec'+_0x5346cc(0x1f7,_0x15b4a8._0x3e42ac)]??'';if(!_0x2fc673||!_0x1fbed5||!_0x4a3c8b)throw new Error(_0x5346cc(0x59,-_0x15b4a8._0x3f634d)+_0x5346cc(_0x15b4a8._0x163cab,_0x15b4a8._0x224725)+_0x5346cc(-_0x15b4a8._0x20652e,_0x15b4a8._0x1708f3)+_0x5346cc(-_0x15b4a8._0x268680,-0x1a8)+_0x5346cc(-_0x15b4a8._0x35d27b,-_0x15b4a8._0x268c8d)+'.');const _0x3aa934={};function _0x50f01d(_0x16f865,_0x4f8a00){return _0x5ccb08(_0x4f8a00,_0x16f865-0x5ed);}_0x3aa934['content-'+_0x5346cc(_0x15b4a8._0x101851,0x115)]=_0x4c9b3a[_0x5346cc(_0x15b4a8._0x4efb4d,0x31)],_0x3aa934[_0x50f01d(_0x15b4a8._0x2b71d9,_0x15b4a8._0x8199b2)]=_0x50f01d(0x7d0,_0x15b4a8._0x486449)+_0x50f01d(_0x15b4a8._0x1411f9,0x4cc);const _0x56c2cc=await fetch(_0x2fc673+(_0x5346cc(-_0x15b4a8._0x273127,0x152)+_0x5346cc(0x1da,0x1e9)+_0x50f01d(_0x15b4a8._0x12ee7f,_0x15b4a8._0x5dd579)),{'method':'POST','headers':_0x3aa934,'body':JSON[_0x5346cc(-0x102,-_0x15b4a8._0x5bf1fd)+'y']({'gatewayId':_0x1fbed5,'relaySecret':_0x4a3c8b,'displayName':_0x328847?.[_0x50f01d(_0x15b4a8._0x155444,_0x15b4a8._0x20eecb)+_0x5346cc(_0x15b4a8._0x47ffd7,0x1a8)]?.['trim']()||void 0x0})});if(!_0x56c2cc['ok'])throw new Error('Access\x20c'+_0x50f01d(_0x15b4a8._0x4e6f64,0x48c)+'esh\x20fail'+_0x50f01d(_0x15b4a8._0x465e6f,0x504)+_0x56c2cc[_0x50f01d(0x60d,0x536)]+'):\x20'+await _0x56c2cc[_0x50f01d(0x740,0x839)]());const _0x8af917=await _0x56c2cc['json'](),_0x29ea23={'serverUrl':_0x2fc673,'gatewayId':_0x8af917['gatewayI'+'d'],'relaySecret':_0x4a3c8b,'relayUrl':_0x8af917[_0x50f01d(0x518,_0x15b4a8._0x1e7795)],'instanceId':_0xb9b019?.['instance'+'Id']??'inst-'+_0x8af917[_0x50f01d(_0x15b4a8._0x2de327,_0x15b4a8._0x166733)+'d'][_0x5346cc(_0x15b4a8._0x59403e,_0x15b4a8._0x556b83)](-0xa),'displayName':_0x8af917[_0x5346cc(-0xe8,_0x15b4a8._0xad1bce)+_0x50f01d(0x784,_0x15b4a8._0x7fd2d8)],'createdAt':_0xb9b019?.[_0x5346cc(-_0x15b4a8._0x4d6eb3,-0xef)+'t']??new Date()[_0x5346cc(0x1f6,0xc7)+'ing'](),'updatedAt':new Date()[_0x50f01d(0x7af,_0x15b4a8._0x14be32)+_0x50f01d(0x417,_0x15b4a8._0x556d76)]()};return writePairingConfig(_0x29ea23),{'config':_0x29ea23,'accessCode':_0x8af917[_0x50f01d(_0x15b4a8._0x5e8f96,_0x15b4a8._0x30969f)+'de'],'accessCodeExpiresAt':_0x8af917[_0x5346cc(-0x3d,0x158)+'deExpire'+'sAt'],'action':_0x5346cc(0x1eb,0x1f8)+'d','qrPayload':buildPairingQrPayload({'server':_0x2fc673,'gatewayId':_0x8af917['gatewayI'+'d'],'accessCode':_0x8af917[_0x5346cc(-0x3d,_0x15b4a8._0x1ae745)+'de'],'displayName':_0x8af917[_0x5346cc(-0xe8,-0x2af)+_0x5346cc(_0x15b4a8._0x47ffd7,_0x15b4a8._0x311d16)],'token':_0x328847?.['gatewayT'+_0x5346cc(-0x12,0x1e8)]?.[_0x50f01d(_0x15b4a8._0x4c9425,0x86a)]()||null})};}function normalizeHttpBase(_0x53a73d){const _0x1f017c={_0x1b39d5:0x3e1,_0x2cc6dc:0x59e,_0x561708:0x31d,_0x416639:0x3b3,_0x541ee0:0x354,_0x339624:0x3e5,_0x6d71cd:0x43b,_0x9add6c:0x536,_0x46a268:0x57d,_0x54c790:0x582,_0x18a850:0x62c,_0x423935:0x409,_0x463d8b:0x73,_0xcf7d23:0xd3,_0x50314f:0x6c7,_0x1cab7f:0x747,_0x59c812:0xc9,_0x343724:0x2b1,_0x1521a1:0x291,_0x5d7200:0x144,_0x241e6b:0x6e,_0x3454ce:0x73b,_0x47b9cc:0x144},_0x2ba246={_0x5bc8a8:0x36},_0x48dd81={_0x4ceeb6:0x2ac},_0x1c3b7b={};function _0x3962fc(_0x111131,_0x31138d){return _0x1bc0ac(_0x111131,_0x31138d- -_0x48dd81._0x4ceeb6);}_0x1c3b7b[_0x39a2af(_0x1f017c._0x1b39d5,_0x1f017c._0x2cc6dc)]=_0x3962fc(_0x1f017c._0x561708,_0x1f017c._0x416639);const _0x231e55=_0x1c3b7b,_0x1b2fed=_0x53a73d[_0x3962fc(_0x1f017c._0x541ee0,0x411)]();if(!_0x1b2fed)return'';if(_0x1b2fed[_0x3962fc(0x392,_0x1f017c._0x339624)+'th'](_0x231e55[_0x39a2af(_0x1f017c._0x1b39d5,_0x1f017c._0x6d71cd)])||_0x1b2fed[_0x3962fc(_0x1f017c._0x9add6c,_0x1f017c._0x339624)+'th']('https://'))return _0x1b2fed['replace'](/\/+$/,'');function _0x39a2af(_0x30edf9,_0x6ec5bd){return _0x1bc0ac(_0x6ec5bd,_0x30edf9-_0x2ba246._0x5bc8a8);}if(_0x1b2fed['startsWi'+'th'](_0x3962fc(_0x1f017c._0x46a268,0x409)))return('http://'+_0x1b2fed[_0x39a2af(_0x1f017c._0x54c790,_0x1f017c._0x18a850)](_0x3962fc(0x4ce,_0x1f017c._0x423935)[_0x3962fc(_0x1f017c._0x463d8b,_0x1f017c._0xcf7d23)]))[_0x39a2af(0x5be,0x61e)](/\/+$/,'');if(_0x1b2fed[_0x39a2af(_0x1f017c._0x50314f,_0x1f017c._0x1cab7f)+'th'](_0x3962fc(_0x1f017c._0x59c812,_0x1f017c._0x343724)))return(_0x3962fc(_0x1f017c._0x1521a1,_0x1f017c._0x5d7200)+_0x1b2fed['slice'](_0x39a2af(0x593,0x6e6)[_0x3962fc(-_0x1f017c._0x241e6b,0xd3)]))[_0x39a2af(0x5be,_0x1f017c._0x3454ce)](/\/+$/,'');return(_0x3962fc(0x337,_0x1f017c._0x47b9cc)+_0x1b2fed)['replace'](/\/+$/,'');}function assessPairingCompatibility(_0x4fb44a,_0x28f2c1){const _0x4b253d={_0x2bb26f:0x5ba},_0x1e823a={_0x557bdc:0x174};function _0x3cee4f(_0x278180,_0x54154b){return _0x1bc0ac(_0x54154b,_0x278180-0x1cf);}if(!_0x4fb44a)return _0x30a2bc(0x6e5,0x834)+'-new';if(_0x4fb44a[_0x30a2bc(0x6c8,0x658)+'l']===_0x28f2c1)return _0x30a2bc(0x63a,_0x4b253d._0x2bb26f)+'existing';function _0x30a2bc(_0x341ab9,_0x13fbc7){return _0x1bc0ac(_0x13fbc7,_0x341ab9-_0x1e823a._0x557bdc);}return _0x3cee4f(0x5ad,0x683)+'ismatch';}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x3de181,mkdirSync as _0x24e3ba,openSync,readFileSync as _0x300141,realpathSync,rmSync as _0x247969,writeFileSync as _0x3faf60}from'fs';import{homedir as _0x114036}from'os';import{dirname,join as _0x1bf872}from'path';var SERVICE_LABEL=_0x1bc0ac(0x598,0x439)+_0x1bc0ac(0x72c,0x593)+_0x5ccb08(-0xce,-0x148),SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x1bc0ac(0x263,0x3f5),WINDOWS_RUN_KEY=_0x5ccb08(-0x30,0x65)+_0x5ccb08(-0x191,-0x1c9),SERVICE_DIR=_0x1bf872(_0x114036(),_0x1bc0ac(0x894,0x6ba)),LOG_DIR=_0x1bf872(SERVICE_DIR,'logs'),SERVICE_STATE_PATH=_0x1bf872(SERVICE_DIR,'bridge-s'+_0x1bc0ac(0x79b,0x6f7)+'son'),SERVICE_LAUNCHER_PATH=_0x1bf872(SERVICE_DIR,_0x1bc0ac(0x204,0x3e4)+'ervice-l'+_0x1bc0ac(0x670,0x6b7)+'sh'),SERVICE_LOG_PATH=_0x1bf872(LOG_DIR,'bridge-c'+_0x5ccb08(0x9a,0x100)),SERVICE_ERROR_LOG_PATH=_0x1bf872(LOG_DIR,'bridge-c'+_0x5ccb08(-0x210,-0x6a)+_0x1bc0ac(0x428,0x409)),MACOS_PLIST_PATH=_0x1bf872(_0x114036(),_0x1bc0ac(0x7c0,0x6cd),_0x5ccb08(0xdb,-0x2c)+_0x1bc0ac(0x4ba,0x4a5),SERVICE_LABEL+_0x5ccb08(-0x56,-0x60)),LINUX_SERVICE_PATH=_0x1bf872(_0x114036(),'.config',_0x1bc0ac(0x293,0x414),'user',SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x11335a={},_0x4bf03c=process[_0x5ccb08(-0x118,0xab)]){const _0xa35366={_0x36c6e2:0x3d7,_0x3c2d44:0x3e9,_0x195f12:0x670,_0x42bafd:0x4b2,_0x23c15b:0x51b,_0x3740d3:0x5e1,_0x8b4628:0x35d,_0x414ec4:0x467,_0x12a567:0x757,_0x4866b1:0x2dd,_0x2e88f2:0x222,_0x4a75be:0x3d1,_0x1f8842:0x3a9,_0x1c5d70:0x90,_0x4b0c06:0x5a3,_0x1f42c0:0x2d8},_0x20c068={_0x5201d1:0x196},_0x36a5b7={_0x37c1b1:0x9a},_0x53f9a9={};_0x53f9a9['rfwRF']=_0x1c38dd(0x30a,_0xa35366._0x36c6e2)+_0x1c38dd(_0xa35366._0x3c2d44,0x3b5)+_0x5469f7(_0xa35366._0x195f12,_0xa35366._0x42bafd)+_0x1c38dd(0x14c,0x2e6)+'h\x20for\x20se'+_0x5469f7(0x732,0x558)+_0x1c38dd(0x51,0x21e)+'on.',_0x53f9a9[_0x1c38dd(0x59f,_0xa35366._0x23c15b)]=function(_0x219799,_0x4c9331){return _0x219799!==_0x4c9331;};function _0x5469f7(_0x34e022,_0x5830dc){return _0x1bc0ac(_0x5830dc,_0x34e022-_0x36a5b7._0x37c1b1);}_0x53f9a9[_0x5469f7(_0xa35366._0x3740d3,0x6b2)]=_0x1c38dd(_0xa35366._0x8b4628,_0xa35366._0x414ec4)+'e';const _0x18e6f9=_0x53f9a9,_0x5f3979=_0x11335a['nodePath']?.[_0x5469f7(_0xa35366._0x12a567,0x617)]()||process['execPath'],_0x3558ea=resolveScriptPath(_0x11335a[_0x5469f7(0x437,_0xa35366._0x4866b1)+'th']);function _0x1c38dd(_0x5bd6eb,_0x2ab765){return _0x1bc0ac(_0x5bd6eb,_0x2ab765- -_0x20c068._0x5201d1);}if(!_0x3558ea)throw new Error(_0x18e6f9[_0x1c38dd(_0xa35366._0x2e88f2,_0xa35366._0x4a75be)]);if(_0x18e6f9['jMlVo'](_0x4bf03c,_0x5469f7(0x53d,0x467))){const _0x42c309={};_0x42c309[_0x1c38dd(_0xa35366._0x1f8842,0x2a9)]=_0x5f3979,_0x42c309[_0x1c38dd(_0xa35366._0x1c5d70,0x207)+'th']=_0x3558ea,_0x42c309['pathEnv']=process.env.PATH??'';const _0x2560ca=writeServiceLauncher(_0x42c309);return ensureLaunchScriptExecutable(_0x2560ca,_0x4bf03c),[_0x2560ca];}return[_0x5f3979,_0x3558ea,_0x1c38dd(_0xa35366._0x4b0c06,0x4fc),_0x18e6f9[_0x1c38dd(_0xa35366._0x1f42c0,0x3b1)]];}function getServiceStatus(){const _0x48f127={_0x342cc2:0x91,_0x598d39:0xe4,_0x1156d1:0x2f7,_0x1d99f7:0x30b,_0x1dd909:0x22a,_0x5bfe54:0x35c,_0x24e268:0x477,_0x4b0d88:0x3d6,_0xb36544:0x4bc,_0x47fb01:0x22f,_0x1f65ea:0x202,_0x4b8b4d:0x289,_0xb422cf:0x2c6,_0x28dd89:0x337,_0x3fe7ed:0x1c4,_0x5280d9:0x14,_0x181422:0x247,_0x586d0d:0x18f,_0x1ce622:0x337,_0x573052:0x285,_0x261a26:0x4c1,_0x241fbc:0x39b,_0x24affe:0x3a9,_0x3ebea0:0x236};function _0x12b41e(_0x4769b5,_0x5609a5){return _0x5ccb08(_0x5609a5,_0x4769b5-0x283);}const _0x6cb343={'dBJIS':function(_0x19c9d6){return _0x19c9d6();},'UekuT':function(_0x40708e,_0xf7ff84){return _0x40708e!=_0xf7ff84;},'Ofrpz':_0x12b41e(0x395,0x541)+_0x12b41e(_0x48f127._0x342cc2,_0x48f127._0x598d39),'Ylbrc':function(_0x224a9d,_0x29b6e4){return _0x224a9d(_0x29b6e4);},'GBTBz':'HKCU\x5cSof'+_0x12b41e(0x45b,0x5a3)+_0x40cd46(_0x48f127._0x1156d1,_0x48f127._0x1d99f7)+_0x12b41e(_0x48f127._0x1dd909,0x1fe)+_0x40cd46(_0x48f127._0x5bfe54,0x18e)+'ersion\x5cR'+'un'};ensureServiceDirs();const _0x23bc3b=_0x6cb343[_0x12b41e(_0x48f127._0x24e268,0x2e7)](readServiceState)?.[_0x40cd46(0x31f,_0x48f127._0x4b0d88)]??null,_0x2db33b={'installed':![],'running':_0x23bc3b!=null&&isPidRunning(_0x23bc3b),'method':detectServiceMethod(),'servicePath':_0x6cb343[_0x12b41e(0x477,0x521)](getServicePath),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x23bc3b};function _0x40cd46(_0x1537a7,_0x2ee6d3){return _0x5ccb08(_0x2ee6d3,_0x1537a7-0x373);}_0x6cb343[_0x40cd46(0x516,_0x48f127._0xb36544)](_0x2db33b['pid'],null)&&!_0x2db33b[_0x12b41e(0x247,0x382)]&&(clearServiceState(_0x2db33b[_0x40cd46(0x31f,0x3cb)]),_0x2db33b[_0x12b41e(_0x48f127._0x47fb01,0x289)]=null);switch(_0x2db33b['method']){case _0x12b41e(_0x48f127._0x1f65ea,_0x48f127._0x4b8b4d)+_0x12b41e(0x3ae,0x553):_0x2db33b[_0x12b41e(0x33d,_0x48f127._0xb422cf)+'d']=_0x3de181(MACOS_PLIST_PATH);_0x2db33b[_0x40cd46(0x42d,0x2e4)+'d']&&(_0x2db33b[_0x40cd46(0x337,0x26b)]=commandSucceeds('launchct'+'l',['list',SERVICE_LABEL])||_0x2db33b[_0x40cd46(_0x48f127._0x28dd89,_0x48f127._0x3fe7ed)]);return _0x2db33b;case _0x6cb343[_0x12b41e(0xde,-_0x48f127._0x5280d9)]:_0x2db33b[_0x40cd46(0x42d,0x364)+'d']=_0x6cb343['Ylbrc'](_0x3de181,LINUX_SERVICE_PATH);_0x2db33b['installe'+'d']&&(_0x2db33b[_0x12b41e(_0x48f127._0x181422,_0x48f127._0x586d0d)]=commandSucceeds(_0x40cd46(0x4f2,0x54f)+'l',['--user','is-activ'+'e',_0x40cd46(0x2ee,0x482),SYSTEMD_UNIT_NAME])||_0x2db33b[_0x40cd46(_0x48f127._0x1ce622,0x40b)]);return _0x2db33b;case _0x12b41e(_0x48f127._0x573052,0x220)+_0x40cd46(0x441,_0x48f127._0x261a26)+_0x12b41e(0xf2,-0x72):_0x2db33b[_0x12b41e(0x33d,_0x48f127._0x241fbc)+'d']=commandSucceeds(_0x40cd46(_0x48f127._0x24affe,_0x48f127._0x3ebea0),['query',_0x6cb343[_0x40cd46(0x51b,0x6d2)],'/v',WINDOWS_RUN_KEY]);return _0x2db33b;default:return _0x2db33b;}}function installService(_0x5c918c={}){const _0x3b1781={_0x16f190:0x364,_0x30f0c3:0x338,_0x102ceb:0x2bc,_0x1a9b9b:0x183,_0xc0b60a:0x43,_0x172c95:0x7d,_0x55d561:0x17c,_0x3cfb91:0x2de,_0x1e6d09:0x98,_0x292049:0x7d,_0xf18e68:0xe4,_0x5c09ca:0x204,_0x2c8cbe:0x3ef,_0x195f48:0x29e,_0x3bfc4c:0xa0,_0x4105cb:0x122,_0x1ad0ac:0xc0,_0xdc4d11:0x294,_0x3c49cd:0x3bd,_0x1d8699:0x1c8,_0x24c9dd:0x9c,_0x1d6e41:0x4a,_0x2bea94:0x1d3,_0x1ee418:0x1d7,_0x5663af:0x44,_0x411da5:0x1b2,_0x3c34ca:0x350,_0x370d4c:0x70,_0x12d7fd:0xc9,_0x3b1d3f:0x10b,_0x17062b:0xb,_0x498d53:0xfc,_0x14d476:0xb2,_0x2fe74b:0x1f4,_0x5db53b:0xc,_0x4ba92e:0x15c,_0x20f295:0x11c,_0x41ee92:0x199,_0x2413b0:0x34},_0x162f17={_0xa88c6f:0x211};function _0x217064(_0x54e893,_0x1bb87d){return _0x5ccb08(_0x54e893,_0x1bb87d-_0x162f17._0xa88c6f);}function _0x495fc4(_0x53f798,_0x29caee){return _0x5ccb08(_0x53f798,_0x29caee-0x122);}const _0x42c1c4={'ZtNDA':function(_0x2bbbce,_0x5ce2cf,_0x5e3b9b,_0x31f7e3){return _0x2bbbce(_0x5ce2cf,_0x5e3b9b,_0x31f7e3);},'vGsAq':_0x217064(0x301,0x163),'YdzUA':'reg','dEHjR':_0x217064(_0x3b1781._0x16f190,_0x3b1781._0x30f0c3)};ensureServiceDirs();const _0x1250ce=getServiceProgramArgs(_0x5c918c);switch(process[_0x217064(0x34f,_0x3b1781._0x102ceb)]){case'darwin':_0x3faf60(MACOS_PLIST_PATH,buildMacosPlist(_0x1250ce,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x495fc4(0x1cf,0x98)),execIgnoreFailure('launchct'+'l',[_0x495fc4(-0xaa,0x1e),'-w',MACOS_PLIST_PATH]);const _0x576917={};_0x576917[_0x495fc4(0x103,_0x3b1781._0x1a9b9b)]=_0x217064(0x328,0x1d3),execFileSync('launchct'+'l',[_0x217064(0xcd,0x64),'-w',MACOS_PLIST_PATH],_0x576917);break;case _0x495fc4(-_0x3b1781._0xc0b60a,-_0x3b1781._0x172c95):const _0x5ae928={};_0x5ae928[_0x495fc4(_0x3b1781._0x55d561,0x18)+'e']=!![],_0x24e3ba(dirname(LINUX_SERVICE_PATH),_0x5ae928),_0x3faf60(LINUX_SERVICE_PATH,_0x42c1c4[_0x495fc4(_0x3b1781._0x3cfb91,0x115)](buildLinuxSystemdUnit,_0x1250ce,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x495fc4(0x157,_0x3b1781._0x1e6d09));const _0x34a434={};_0x34a434[_0x495fc4(0x166,_0x3b1781._0x1a9b9b)]=_0x495fc4(-_0x3b1781._0x292049,_0x3b1781._0xf18e68),_0x42c1c4[_0x217064(0x79,_0x3b1781._0x5c09ca)](execFileSync,_0x495fc4(_0x3b1781._0x2c8cbe,0x2a1)+'l',[_0x217064(_0x3b1781._0x195f48,0xc0),_0x495fc4(0x253,_0x3b1781._0x3bfc4c)+_0x217064(0x25d,0x2fa)],_0x34a434);const _0xa8e3d5={};_0xa8e3d5[_0x217064(0x1fb,0x272)]=_0x495fc4(-0x4e,0xe4),execFileSync('systemct'+'l',[_0x217064(_0x3b1781._0x4105cb,_0x3b1781._0x1ad0ac),_0x42c1c4[_0x495fc4(0x407,_0x3b1781._0xdc4d11)],_0x217064(_0x3b1781._0x3c49cd,0x35d),SYSTEMD_UNIT_NAME],_0xa8e3d5);break;case _0x495fc4(_0x3b1781._0x1d8699,_0x3b1781._0x24c9dd):stopRunningProcess();const _0x3d90d8={};_0x3d90d8[_0x495fc4(_0x3b1781._0x1d6e41,0x183)]=_0x217064(0x361,_0x3b1781._0x2bea94),execFileSync(_0x42c1c4[_0x217064(_0x3b1781._0x1ee418,_0x3b1781._0x5663af)],[_0x217064(0x30d,_0x3b1781._0x411da5),'HKCU\x5cSof'+_0x495fc4(_0x3b1781._0x3c34ca,0x2fa)+_0x495fc4(0x1ac,0xa6)+_0x495fc4(-_0x3b1781._0x370d4c,_0x3b1781._0x12d7fd)+_0x495fc4(0x137,_0x3b1781._0x3b1d3f)+_0x495fc4(-_0x3b1781._0x17062b,-0x48)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x42c1c4[_0x495fc4(-0x96,_0x3b1781._0x498d53)],'/d',buildWindowsRunCommand(_0x1250ce),'/f'],_0x3d90d8),startDetachedWindowsService(_0x1250ce);break;default:throw new Error(_0x495fc4(-0xe6,_0x3b1781._0x14d476)+_0x495fc4(-_0x3b1781._0x2fe74b,-_0x3b1781._0x5db53b)+_0x217064(_0x3b1781._0x4ba92e,_0x3b1781._0x20f295)+_0x495fc4(0x25,_0x3b1781._0x41ee92)+_0x217064(0x274,0xc8)+_0x495fc4(0x152,-_0x3b1781._0x2413b0)+_0x217064(0x2a1,0xf4)+process['platform']);}return getServiceStatus();}function restartService(_0x3b0f1f={}){const _0x116675={_0x1d566a:0x22a,_0x26c8c5:0x1a,_0x974f33:0x464,_0x78e2c5:0x3a4,_0x61360d:0x313,_0x2f3fd4:0x240,_0x4b7bac:0x238,_0xffa2b1:0xae,_0x1d11ee:0x21a,_0x5ae6bf:0x1cd,_0x3b64fc:0x586,_0x232c17:0x230,_0x547d23:0x268,_0xb45465:0xf2,_0x18b2e2:0x25d,_0x1c5e0f:0x268,_0x38c9df:0x232,_0x24f32e:0x1d5,_0x5398c3:0x30a,_0x33dd5d:0x1aa,_0x4ba053:0x35a,_0xbd8439:0x11b,_0x3cfa3c:0x109,_0x1e5f63:0x29b,_0x219c01:0xd7,_0x5681bb:0x1eb,_0x15062d:0x2c2,_0x4d5c65:0x16b},_0x5ca946={_0x229bec:0x3b5},_0x18c9e0={'nvbUh':function(_0x18ea28){return _0x18ea28();},'BsZWc':_0xfb025b(_0x116675._0x1d566a,0x32f),'HcLYn':function(_0x339ceb,_0x5b6f6a,_0x12aa2e,_0xbf06ca){return _0x339ceb(_0x5b6f6a,_0x12aa2e,_0xbf06ca);},'lEXfa':_0x3f0ffc(-0x39,-0x1a5),'NzEPy':'restart','AWFKd':_0x3f0ffc(0x136,-0x76)};function _0x3f0ffc(_0x57554d,_0x497dff){return _0x1bc0ac(_0x497dff,_0x57554d- -_0x5ca946._0x229bec);}_0x18c9e0[_0x3f0ffc(0x102,-_0x116675._0x26c8c5)](ensureServiceDirs);function _0xfb025b(_0x415abf,_0x153576){return _0x1bc0ac(_0x415abf,_0x153576- -0x170);}const _0xfe1fb6=getServiceProgramArgs(_0x3b0f1f);switch(process[_0xfb025b(0x63d,_0x116675._0x974f33)]){case _0xfb025b(_0x116675._0x78e2c5,_0x116675._0x61360d):if(!_0x3de181(MACOS_PLIST_PATH))return installService(_0x3b0f1f);_0x3faf60(MACOS_PLIST_PATH,buildMacosPlist(_0xfe1fb6,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x18c9e0[_0xfb025b(_0x116675._0x2f3fd4,0x24b)]),execIgnoreFailure(_0xfb025b(0x146,0x2e6)+'l',['unload','-w',MACOS_PLIST_PATH]);const _0x3a62d6={};_0x3a62d6[_0xfb025b(0x545,0x41a)]='ignore',_0x18c9e0['HcLYn'](execFileSync,_0x3f0ffc(0xa1,_0x116675._0x4b7bac)+'l',[_0x18c9e0[_0x3f0ffc(0x71,-_0x116675._0xffa2b1)],'-w',MACOS_PLIST_PATH],_0x3a62d6);break;case _0xfb025b(0x28e,_0x116675._0x1d11ee):if(!_0x3de181(LINUX_SERVICE_PATH))return installService(_0x3b0f1f);const _0x5db18a={};_0x5db18a['recursiv'+'e']=!![],_0x24e3ba(dirname(LINUX_SERVICE_PATH),_0x5db18a),_0x18c9e0[_0x3f0ffc(0xe,0x5a)](_0x3faf60,LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0xfe1fb6,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8');const _0x119f72={};_0x119f72[_0x3f0ffc(0x1d5,_0x116675._0x5ae6bf)]='ignore',execFileSync(_0xfb025b(_0x116675._0x3b64fc,0x538)+'l',[_0xfb025b(_0x116675._0x232c17,_0x116675._0x547d23),_0x3f0ffc(_0x116675._0xb45465,0x16f)+_0x3f0ffc(_0x116675._0x18b2e2,0xa7)],_0x119f72),execFileSync('systemct'+'l',[_0xfb025b(0xfc,_0x116675._0x1c5e0f),_0x18c9e0[_0xfb025b(0x51b,0x553)],SYSTEMD_UNIT_NAME],{'stdio':_0x18c9e0[_0x3f0ffc(_0x116675._0x38c9df,0x4b)]});break;case'win32':stopRunningProcess();const _0x5e3f72={};_0x5e3f72[_0x3f0ffc(_0x116675._0x24f32e,_0x116675._0x5398c3)]=_0x18c9e0['AWFKd'],execFileSync(_0x3f0ffc(_0x116675._0x33dd5d,0x200),[_0xfb025b(_0x116675._0x547d23,_0x116675._0x4ba053),_0x3f0ffc(0x306,0x264)+_0x3f0ffc(0x34c,0x163)+'crosoft\x5c'+_0x3f0ffc(_0x116675._0xbd8439,0x4c)+_0xfb025b(0x220,0x3a2)+_0xfb025b(_0x116675._0x3cfa3c,0x24f)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x3f0ffc(_0x116675._0x1e5f63,0x438),'/d',buildWindowsRunCommand(_0xfe1fb6),'/f'],_0x5e3f72),startDetachedWindowsService(_0xfe1fb6);break;default:throw new Error(_0x3f0ffc(0x104,-0x1f)+'ted\x20plat'+_0x3f0ffc(0x7f,_0x116675._0x219c01)+_0x3f0ffc(_0x116675._0x5681bb,0x22a)+_0xfb025b(0xca,_0x116675._0x15062d)+_0x3f0ffc(0xd,-_0x116675._0x4d5c65)+process[_0x3f0ffc(0x21f,0x217)]);}return getServiceStatus();}function uninstallService(){const _0xf3dc9a={_0x1cd64e:0x79,_0xfbf4f5:0x96,_0x232966:0x32a,_0x1c7611:0x29a,_0x4b5501:0x146,_0xd108c2:0x29,_0x180b5c:0x11f,_0x2f6a59:0x11b,_0x72536:0x19f,_0x4c098b:0x1e6,_0x52ee03:0x299,_0x30b2ba:0x16f,_0x5b12c9:0x2ce,_0x505023:0x40d};function _0x17e356(_0x378968,_0x4cbbf6){return _0x1bc0ac(_0x4cbbf6,_0x378968- -0x310);}function _0x2f8a3e(_0x199d9e,_0x54ebcd){return _0x1bc0ac(_0x54ebcd,_0x199d9e- -0x2bd);}const _0x54de90={'IveBk':function(_0x4aa967,_0x22761d,_0x2c9dd1){return _0x4aa967(_0x22761d,_0x2c9dd1);},'nqTEW':'--user','iZcqD':'--now','zZVhQ':_0x17e356(_0xf3dc9a._0x1cd64e,_0xf3dc9a._0xfbf4f5),'kMgSf':function(_0x3decfa){return _0x3decfa();},'rUJpS':function(_0x33c2f0){return _0x33c2f0();}};stopRunningProcess();switch(process['platform']){case _0x17e356(0x173,_0xf3dc9a._0x232966):_0x54de90[_0x17e356(0x299,_0xf3dc9a._0x1c7611)](execIgnoreFailure,_0x17e356(_0xf3dc9a._0x4b5501,-_0xf3dc9a._0xd108c2)+'l',[_0x17e356(0x115,_0xf3dc9a._0x180b5c),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case'linux':_0x3de181(LINUX_SERVICE_PATH)&&(execIgnoreFailure('systemct'+'l',[_0x54de90['nqTEW'],_0x17e356(0x242,0xfd),_0x54de90['iZcqD'],SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',[_0x2f8a3e(_0xf3dc9a._0x2f6a59,0x25f),_0x17e356(0x197,_0xf3dc9a._0x72536)+_0x2f8a3e(0x355,0x332)]));break;case _0x2f8a3e(_0xf3dc9a._0x4c098b,0x227):_0x54de90[_0x17e356(_0xf3dc9a._0x52ee03,0x29e)](execIgnoreFailure,_0x2f8a3e(0x2a2,_0xf3dc9a._0x30b2ba),[_0x54de90[_0x2f8a3e(0xd2,0x14f)],'HKCU\x5cSof'+'tware\x5cMi'+_0x2f8a3e(0x1f0,0x1a8)+'Windows\x5c'+_0x2f8a3e(0x255,0x2ef)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return _0x54de90[_0x17e356(_0xf3dc9a._0x5b12c9,_0xf3dc9a._0x505023)](clearServiceState),_0x54de90['rUJpS'](getServiceStatus);}function stopService(){const _0x33463c={_0x4fe48b:0x2c7,_0x5aa189:0x82,_0x4bf5c3:0x220,_0x3791d5:0xe8,_0x368a5d:0xb0,_0x2ecb7c:0x1b5,_0x2c472a:0x1ee,_0x444e30:0x2ec,_0x56fbf8:0x255},_0x3dc050={_0x3f92f8:0x40},_0x5a59b5={'bsBSU':function(_0x4ca1dc){return _0x4ca1dc();},'mDGjC':_0xceb8ec(-0xe6,-0xfd),'lNWox':function(_0x2974a7,_0x36a7c3,_0x175d52){return _0x2974a7(_0x36a7c3,_0x175d52);},'nvYea':_0xceb8ec(-0x1df,-_0x33463c._0x4fe48b),'MAxuw':function(_0x19c60c,_0x21578b){return _0x19c60c(_0x21578b);},'bayDA':_0xceb8ec(-0x191,-0x26f)};_0x5a59b5[_0xceb8ec(-0x10b,-_0x33463c._0x5aa189)](stopRunningProcess);switch(process[_0xceb8ec(0x6b,_0x33463c._0x4bf5c3)]){case _0x5a59b5[_0xceb8ec(-_0x33463c._0x3791d5,-0x255)]:_0x3de181(MACOS_PLIST_PATH)&&_0x5a59b5['lNWox'](execIgnoreFailure,_0xec5944(-0x184,-_0x33463c._0x368a5d)+'l',[_0xec5944(-_0x33463c._0x2ecb7c,-0xe),MACOS_PLIST_PATH]);break;case _0x5a59b5['nvYea']:_0x5a59b5['MAxuw'](_0x3de181,LINUX_SERVICE_PATH)&&execIgnoreFailure('systemct'+'l',[_0x5a59b5[_0xec5944(-_0x33463c._0x2c472a,-_0x33463c._0x444e30)],'stop',SYSTEMD_UNIT_NAME]);break;case _0xec5944(-0x137,-_0x33463c._0x56fbf8):break;default:break;}function _0xceb8ec(_0x1e3b49,_0x179642){return _0x5ccb08(_0x179642,_0x1e3b49- -_0x3dc050._0x3f92f8);}clearServiceState();function _0xec5944(_0x1b1c0b,_0x46349c){return _0x5ccb08(_0x46349c,_0x1b1c0b- -0xb1);}return getServiceStatus();}function writeServiceState(_0xd235aa=process['pid']){const _0x2b0981={_0x2f83df:0x359,_0x1d65a8:0x1f2,_0xcca339:0x10d},_0x88c4b4={_0x3a9fdb:0x328};function _0x10f3e5(_0x3616b6,_0xc1cded){return _0x5ccb08(_0x3616b6,_0xc1cded-0x197);}ensureServiceDirs();function _0x42e8d3(_0x3adb51,_0x1c3483){return _0x5ccb08(_0x3adb51,_0x1c3483-_0x88c4b4._0x3a9fdb);}const _0x117fdb={'pid':_0xd235aa,'startedAt':new Date()[_0x10f3e5(0x1cf,_0x2b0981._0x2f83df)+'ing']()};_0x3faf60(SERVICE_STATE_PATH,JSON[_0x42e8d3(0x4a,_0x2b0981._0x1d65a8)+'y'](_0x117fdb,null,0x2)+'\x0a',_0x10f3e5(0x2f9,_0x2b0981._0xcca339));}function clearServiceState(_0x4778b8){const _0x26ccfe={_0x4c1388:0x4af,_0x1b0a1a:0x54e},_0x4f888b={_0x47c3ef:0x5df},_0x195221={'elFfk':function(_0x54a033,_0x50e872){return _0x54a033(_0x50e872);},'aYSTp':function(_0x1605f9,_0x4531f7){return _0x1605f9!==_0x4531f7;}};function _0x36028a(_0x1b4321,_0xbfbcb8){return _0x5ccb08(_0x1b4321,_0xbfbcb8-_0x4f888b._0x47c3ef);}if(!_0x195221['elFfk'](_0x3de181,SERVICE_STATE_PATH))return;if(_0x4778b8!=null){const _0x4ffeac=readServiceState();if(_0x4ffeac&&_0x195221[_0x36028a(_0x26ccfe._0x4c1388,_0x26ccfe._0x1b0a1a)](_0x4ffeac['pid'],_0x4778b8))return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':getServicePath()};}function buildMacosPlist(_0x2b4f14,_0xddeef,_0x150f46){const _0x3f65b7={_0x24cfff:0x772,_0x343107:0x517,_0x3cfd59:0x5d7,_0x52bd81:0x811,_0x11539a:0x55e,_0x2f3b6c:0x600,_0x3b9e82:0x76b,_0x3c4bdd:0x6c3,_0x4dfdcd:0x82a,_0x3bb551:0x69e,_0x48cba3:0x64c,_0x1c94c1:0x4f6,_0x217f59:0x516,_0x1c3cae:0x6be,_0x23d1ad:0x7c8,_0x43f27a:0x717,_0x5c11b0:0x4ed,_0x447203:0x6c1,_0x256120:0x570,_0x3e34f7:0x75b,_0x288cad:0x77c,_0x26e890:0x8fe,_0x598fbf:0x623,_0x2e907b:0x56f,_0x3a7416:0x3fe,_0x358638:0x722,_0x118346:0x53a,_0x1c2cf0:0x541,_0x4b107c:0x681,_0x41baa8:0x6c8,_0x41ecc9:0x7b9,_0x38334b:0x751,_0x14acc0:0x934,_0x55e5c2:0x72a,_0x147b52:0x643,_0x290584:0x672,_0x244631:0x7db,_0x36650d:0x45f,_0x170a9e:0x6b3,_0x2b9e7c:0x661,_0x328241:0x799,_0x331831:0x611,_0xb23190:0x45d},_0x4d3742={_0x37f58a:0x1ab},_0x5bb250={_0x2e191e:0x112};function _0x56c94c(_0x5c4412,_0x2d6d0b){return _0x1bc0ac(_0x2d6d0b,_0x5c4412-_0x5bb250._0x2e191e);}function _0xf0ac2a(_0x35117c,_0x1de0a4){return _0x1bc0ac(_0x1de0a4,_0x35117c-_0x4d3742._0x37f58a);}const _0x73e757=_0x2b4f14[_0x56c94c(0x751,_0x3f65b7._0x24cfff)](_0x74c660=>_0x56c94c(0x463,0x5d2)+'ing>'+escapeXml(_0x74c660)+(_0x56c94c(0x4e7,0x5a8)+'>'))['join']('\x0a');return'<?xml\x20ve'+_0xf0ac2a(_0x3f65b7._0x343107,0x38b)+_0xf0ac2a(0x5ab,0x788)+_0xf0ac2a(0x679,_0x3f65b7._0x3cfd59)+_0xf0ac2a(0x80d,0x777)+_0x56c94c(0x61c,0x6c6)+_0xf0ac2a(_0x3f65b7._0x52bd81,0x7ff)+_0x56c94c(0x6b5,0x819)+_0xf0ac2a(_0x3f65b7._0x11539a,0x561)+'/DTD\x20PLI'+'ST\x201.0//'+_0xf0ac2a(_0x3f65b7._0x2f3b6c,_0x3f65b7._0x3b9e82)+_0xf0ac2a(_0x3f65b7._0x3c4bdd,_0x3f65b7._0x4dfdcd)+'apple.co'+_0xf0ac2a(0x5c1,0x508)+_0x56c94c(_0x3f65b7._0x3bb551,0x66a)+'ist-1.0.'+_0xf0ac2a(0x69f,0x720)+_0xf0ac2a(_0x3f65b7._0x48cba3,0x485)+_0x56c94c(0x4de,_0x3f65b7._0x1c94c1)+_0xf0ac2a(_0x3f65b7._0x217f59,_0x3f65b7._0x1c3cae)+_0x56c94c(_0x3f65b7._0x23d1ad,_0x3f65b7._0x43f27a)+_0x56c94c(0x4d0,0x46f)+_0x56c94c(_0x3f65b7._0x5c11b0,_0x3f65b7._0x447203)+_0x56c94c(0x5ef,0x40c)+SERVICE_LABEL+('</string'+'>\x0a\x20\x20<key'+_0xf0ac2a(_0x3f65b7._0x256120,0x481)+_0xf0ac2a(_0x3f65b7._0x3e34f7,0x6b7)+_0x56c94c(_0x3f65b7._0x288cad,_0x3f65b7._0x26e890)+_0x56c94c(_0x3f65b7._0x598fbf,0x607)+'>\x0a')+_0x73e757+(_0x56c94c(_0x3f65b7._0x2e907b,_0x3f65b7._0x3a7416)+_0xf0ac2a(0x73a,_0x3f65b7._0x358638)+_0x56c94c(_0x3f65b7._0x118346,_0x3f65b7._0x1c2cf0)+_0xf0ac2a(_0x3f65b7._0x4b107c,_0x3f65b7._0x41baa8)+_0x56c94c(0x741,_0x3f65b7._0x41ecc9)+_0x56c94c(0x4ac,0x423)+_0xf0ac2a(_0x3f65b7._0x38334b,_0x3f65b7._0x14acc0)+_0xf0ac2a(0x5bd,_0x3f65b7._0x55e5c2)+_0x56c94c(0x597,_0x3f65b7._0x147b52)+_0xf0ac2a(_0x3f65b7._0x290584,0x4dd)+_0xf0ac2a(0x8d6,_0x3f65b7._0x244631)+_0x56c94c(0x46a,0x42a)+'Path</ke'+_0x56c94c(0x696,0x750)+'ring>')+escapeXml(_0xddeef)+(_0x56c94c(0x4e7,_0x3f65b7._0x36650d)+_0xf0ac2a(0x5a5,_0x3f65b7._0x170a9e)+_0x56c94c(0x5bc,0x423)+_0x56c94c(0x539,0x494)+_0xf0ac2a(0x7fa,_0x3f65b7._0x2b9e7c)+_0xf0ac2a(0x87f,0x842)+_0x56c94c(0x4f9,0x55b))+escapeXml(_0x150f46)+('</string'+_0xf0ac2a(_0x3f65b7._0x328241,0x97e)+_0xf0ac2a(_0x3f65b7._0x331831,_0x3f65b7._0xb23190)+'t>\x0a');}function buildLinuxSystemdUnit(_0x59030b,_0xa43b19,_0x56066f){const _0x12f8d5={_0x2f43ff:0x4dc,_0x22b9ce:0x6d2,_0x25a019:0x919,_0x3a7cf3:0x747,_0x3717cb:0x6c1,_0x20fddc:0x6f5,_0x520276:0x73e,_0x26c0e8:0x630,_0x48d7aa:0x764,_0x5109ca:0x81e,_0x4394e5:0x817,_0x570fd7:0x5d3,_0x41f7a9:0x5fc,_0xc81df8:0x4ba,_0x4956b5:0x478,_0x2517bc:0x4f0,_0x142fbb:0x663,_0x3175d7:0x533,_0x56c4d6:0x6c6,_0x45f10d:0x404,_0x2d7b46:0x4ec,_0x377919:0x540,_0x424032:0x71d,_0x374750:0x6c9,_0xeb86b8:0x6c7,_0x2930bb:0x7e9,_0x3ccc02:0x977,_0x3709f8:0x4d6,_0x284a7f:0x7de,_0x50bc1b:0x6d9},_0x1d7dd4={_0x5de984:0x12f},_0x5848f2=_0x59030b['map'](escapeSystemdArg)[_0x4bb4d0(0x67f,0x492)]('\x20');function _0x4bb4d0(_0x10a274,_0x1d19b5){return _0x1bc0ac(_0x1d19b5,_0x10a274-0x13c);}function _0xb63998(_0x23182d,_0x25e3f0){return _0x1bc0ac(_0x23182d,_0x25e3f0-_0x1d7dd4._0x5de984);}return _0xb63998(0x647,_0x12f8d5._0x2f43ff)+'escripti'+_0x4bb4d0(0x62e,_0x12f8d5._0x22b9ce)+_0x4bb4d0(0x7c6,_0x12f8d5._0x25a019)+_0xb63998(_0x12f8d5._0x3a7cf3,_0x12f8d5._0x3717cb)+_0x4bb4d0(_0x12f8d5._0x20fddc,0x8d3)+'ork-onli'+_0xb63998(0x6e2,0x73c)+_0x4bb4d0(_0x12f8d5._0x520276,_0x12f8d5._0x26c0e8)+_0x4bb4d0(_0x12f8d5._0x48d7aa,0x7b4)+'online.t'+'arget\x0a\x0a['+'Service]'+_0x4bb4d0(0x5a9,0x75b)+_0xb63998(0x6fa,_0x12f8d5._0x5109ca)+_0xb63998(0x998,_0x12f8d5._0x4394e5)+_0x5848f2+(_0x4bb4d0(_0x12f8d5._0x570fd7,0x6e9)+'=always\x0a'+_0xb63998(0x6d3,_0x12f8d5._0x41f7a9)+_0xb63998(0x5a9,0x4d1)+_0x4bb4d0(_0x12f8d5._0xc81df8,0x3e1)+_0xb63998(_0x12f8d5._0x4956b5,_0x12f8d5._0x2517bc))+escapeSystemdArg(SERVICE_DIR)+(_0xb63998(_0x12f8d5._0x142fbb,_0x12f8d5._0x3175d7)+_0xb63998(0x791,_0x12f8d5._0x56c4d6)+_0xb63998(_0x12f8d5._0x45f10d,_0x12f8d5._0x2d7b46))+_0xa43b19+(_0x4bb4d0(_0x12f8d5._0x377919,_0x12f8d5._0x424032)+_0xb63998(_0x12f8d5._0x374750,_0x12f8d5._0xeb86b8)+_0xb63998(_0x12f8d5._0x2930bb,0x802))+_0x56066f+(_0x4bb4d0(0x64a,0x4f8)+_0x4bb4d0(0x7e5,_0x12f8d5._0x3ccc02)+_0xb63998(0x479,0x5bc)+_0x4bb4d0(0x4b0,_0x12f8d5._0x3709f8)+_0xb63998(_0x12f8d5._0x284a7f,_0x12f8d5._0x50bc1b));}function getServicePath(){const _0x546a0c={_0x5f9677:0x43c,_0x3395cc:0x5b8,_0x55b717:0x238,_0x31f63d:0x4da,_0x2430b2:0x4d2,_0x33b15c:0x25f,_0xcc3225:0x351,_0x304593:0x43a,_0x35f3a5:0x569,_0x2d4840:0x784,_0x5386df:0x5af,_0x5c6e9c:0x504,_0x4f15a6:0x527,_0x5ca9dd:0x3c0,_0x4d2e4f:0x416},_0x22b337={_0x3dae6a:0x152},_0x39824f={};function _0x21c219(_0x54f43f,_0x4a97a2){return _0x1bc0ac(_0x54f43f,_0x4a97a2- -_0x22b337._0x3dae6a);}function _0x395256(_0x38b52b,_0x3dcf32){return _0x1bc0ac(_0x38b52b,_0x3dcf32-0x57);}_0x39824f[_0x21c219(_0x546a0c._0x5f9677,_0x546a0c._0x3395cc)]=_0x21c219(0x1bc,_0x546a0c._0x55b717);const _0x1986f2=_0x39824f;switch(process[_0x395256(0x534,0x62b)]){case _0x395256(0x4bf,_0x546a0c._0x31f63d):return MACOS_PLIST_PATH;case _0x1986f2[_0x21c219(_0x546a0c._0x2430b2,_0x546a0c._0x3395cc)]:return LINUX_SERVICE_PATH;case _0x21c219(_0x546a0c._0x33b15c,_0x546a0c._0xcc3225):return _0x21c219(_0x546a0c._0x304593,_0x546a0c._0x35f3a5)+_0x21c219(_0x546a0c._0x2d4840,_0x546a0c._0x5386df)+_0x395256(0x434,_0x546a0c._0x5c6e9c)+_0x395256(0x4e2,_0x546a0c._0x4f15a6)+_0x21c219(0x539,_0x546a0c._0x5ca9dd)+_0x395256(0x3a8,_0x546a0c._0x4d2e4f)+_0x395256(0x657,0x74a)+_0x21c219(0x3ad,0x45b)+'Cli';default:return'';}}function _0x5ccb08(_0x3acb81,_0x513abb){const _0x19b1e9={_0x87f8c4:0x316};return _0x54ce(_0x513abb- -_0x19b1e9._0x87f8c4,_0x3acb81);}function detectServiceMethod(){const _0xb26e0f={_0x4c890f:0x240,_0x467e3b:0xa1,_0x36f443:0x434,_0x5c0013:0x28c,_0x3afa83:0xaa,_0x1cde9a:0x1cc,_0x702a02:0x1c6,_0x44dc81:0xf8,_0x424309:0x11,_0x2e9fc3:0x264,_0x446f8e:0x11b,_0x526052:0x37d,_0x5affd2:0x3b0,_0x154331:0xb3,_0x278920:0x9c,_0x29f8e0:0xf1,_0x22ca4e:0x254,_0x269697:0x94,_0xe33de1:0xd4},_0xe4e820={_0x2ff17a:0x2d7},_0x1129d7={};_0x1129d7[_0x289a45(-_0xb26e0f._0x4c890f,-0x88)]='darwin',_0x1129d7[_0x56cc66(0x2a6,0x36f)]=_0x289a45(-_0xb26e0f._0x467e3b,0x78)+_0x289a45(-_0xb26e0f._0x36f443,-_0xb26e0f._0x5c0013);function _0x289a45(_0x1f329a,_0x33a48a){return _0x1bc0ac(_0x1f329a,_0x33a48a- -0x5c3);}_0x1129d7[_0x56cc66(0x25b,_0xb26e0f._0x3afa83)]=_0x56cc66(_0xb26e0f._0x1cde9a,_0xb26e0f._0x702a02);function _0x56cc66(_0x16d080,_0x1f8e4c){return _0x1bc0ac(_0x1f8e4c,_0x16d080- -_0xe4e820._0x2ff17a);}const _0x2d3608=_0x1129d7;switch(process[_0x289a45(-_0xb26e0f._0x44dc81,_0xb26e0f._0x424309)]){case _0x2d3608[_0x56cc66(_0xb26e0f._0x2e9fc3,0x160)]:return _0x289a45(-0x198,-_0xb26e0f._0x446f8e)+_0x56cc66(_0xb26e0f._0x526052,_0xb26e0f._0x5affd2);case _0x56cc66(_0xb26e0f._0x154331,_0xb26e0f._0x278920):return _0x2d3608['YwckJ'];case _0x2d3608[_0x289a45(-_0xb26e0f._0x29f8e0,-0x91)]:return _0x56cc66(_0xb26e0f._0x22ca4e,0x28e)+_0x56cc66(0x320,0x2c4)+'stry';default:return _0x56cc66(0x184,0x121)+_0x289a45(_0xb26e0f._0x269697,_0xb26e0f._0xe33de1);}}function readServiceState(){const _0x219172={_0x5322c2:0x3c4,_0x4c3596:0x3f9,_0x188878:0x465,_0x5e0b3c:0x199,_0x511e62:0x215,_0x57682e:0x2e7,_0xc5b0e:0x199,_0x40b547:0x2a},_0x1f6719={_0x4d5ca6:0x483};function _0x94b516(_0xd03af7,_0x48a8d8){return _0x5ccb08(_0x48a8d8,_0xd03af7-_0x1f6719._0x4d5ca6);}if(!_0x3de181(SERVICE_STATE_PATH))return null;function _0x31c31b(_0x406c58,_0x4cab00){return _0x5ccb08(_0x4cab00,_0x406c58-0x1ed);}try{const _0x2cca1c=JSON[_0x31c31b(_0x219172._0x5322c2,0x3d5)](_0x300141(SERVICE_STATE_PATH,_0x94b516(_0x219172._0x4c3596,_0x219172._0x188878)));if(!_0x2cca1c[_0x31c31b(_0x219172._0x5e0b3c,_0x219172._0x511e62)]||typeof _0x2cca1c[_0x94b516(0x42f,_0x219172._0x57682e)]!=='number')return null;return{'pid':_0x2cca1c[_0x31c31b(_0x219172._0xc5b0e,-_0x219172._0x40b547)],'startedAt':_0x2cca1c[_0x31c31b(0x31a,0x2fb)+'t']??new Date(0x0)['toISOStr'+'ing']()};}catch{return null;}}function stopRunningProcess(){const _0x3736f8={_0x47a443:0x285,_0x430a67:0xde,_0x4a03de:0xcc,_0x41c1f8:0x293,_0x1dd04a:0x476,_0x5a1c4e:0x1c8,_0x13656d:0xda,_0x50316f:0x28e,_0x1b3030:0x2b7,_0x1544d6:0x304},_0x3a57c4={_0x301834:0x30b},_0x3179c6={_0x5e9718:0x54},_0x663f5a={};function _0x460dfb(_0x2edcfb,_0x345d16){return _0x5ccb08(_0x2edcfb,_0x345d16- -_0x3179c6._0x5e9718);}function _0x59aae8(_0x2d338d,_0x34f190){return _0x5ccb08(_0x34f190,_0x2d338d-_0x3a57c4._0x301834);}_0x663f5a['dbCqw']=_0x59aae8(_0x3736f8._0x47a443,0x26a),_0x663f5a[_0x460dfb(-_0x3736f8._0x430a67,-_0x3736f8._0x4a03de)]='kill';const _0x4b277a=_0x663f5a,_0x27cf19=readServiceState();if(!_0x27cf19)return;execIgnoreFailure(process[_0x59aae8(0x3b6,0x25b)]===_0x4b277a['dbCqw']?_0x59aae8(0x38a,0x4d0):_0x4b277a[_0x59aae8(_0x3736f8._0x41c1f8,_0x3736f8._0x1dd04a)],process[_0x460dfb(_0x3736f8._0x5a1c4e,0x57)]===_0x460dfb(-0x23a,-_0x3736f8._0x13656d)?[_0x460dfb(_0x3736f8._0x50316f,0x195),String(_0x27cf19[_0x59aae8(0x2b7,0x42b)]),'/T','/F']:[_0x460dfb(0xdc,0x167),String(_0x27cf19[_0x59aae8(_0x3736f8._0x1b3030,_0x3736f8._0x1544d6)])]),clearServiceState(_0x27cf19['pid']);}function isPidRunning(_0x4ab321){try{return process['kill'](_0x4ab321,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0xf256c4){const _0xc207f6={_0x2d1482:0x4bb},_0x2df714={_0x47d527:0x30},_0x58b0d0={'GPYXH':function(_0x39580c,_0x2c6291,_0x26cfc3){return _0x39580c(_0x2c6291,_0x26cfc3);}};function _0xff198e(_0x47f5c3,_0x1b8180){return _0x1bc0ac(_0x1b8180,_0x47f5c3- -_0x2df714._0x47d527);}const _0x2d3ce2=_0x58b0d0['GPYXH'](openSync,SERVICE_LOG_PATH,'a'),_0x11fc39=openSync(SERVICE_ERROR_LOG_PATH,'a');function _0x3bb138(_0x351c2b,_0x5e0e2e){return _0x1bc0ac(_0x351c2b,_0x5e0e2e- -0x11b);}try{const [_0x44e150,..._0x424b5a]=_0xf256c4,_0x472166={};_0x472166[_0xff198e(0x3db,0x378)]=!![],_0x472166[_0x3bb138(0x59a,0x46f)]=[_0xff198e(_0xc207f6._0x2d1482,0x3c0),_0x2d3ce2,_0x11fc39],_0x472166['windowsH'+'ide']=!![];const _0xa96d1c=spawn(_0x44e150,_0x424b5a,_0x472166);_0xa96d1c[_0x3bb138(0x268,0x41e)]();}finally{closeSync(_0x2d3ce2),closeSync(_0x11fc39);}}function resolveScriptPath(_0x53e385){const _0x371a31={_0x93c65c:0x7ec,_0x17730f:0x7c6,_0x595f92:0x5e3,_0x555848:0x928},_0x30569c={_0x5a948b:0x605},_0x4eac95={'ABclA':function(_0x425345,_0x50ba4b){return _0x425345(_0x50ba4b);}};function _0x4f7a4c(_0x2b89bd,_0x4c7ae6){return _0x5ccb08(_0x2b89bd,_0x4c7ae6-_0x30569c._0x5a948b);}function _0x529d7e(_0xae41b0,_0x4f1004){return _0x5ccb08(_0x4f1004,_0xae41b0-0x628);}const _0x3d5db5=_0x53e385?.[_0x4f7a4c(_0x371a31._0x93c65c,0x799)]()||process[_0x4f7a4c(_0x371a31._0x17730f,_0x371a31._0x595f92)][0x1]?.[_0x529d7e(0x7bc,_0x371a31._0x555848)]()||'';if(!_0x3d5db5)return'';try{return _0x4eac95['ABclA'](realpathSync,_0x3d5db5);}catch{return _0x3d5db5;}}function ensureLaunchScriptExecutable(_0x350948,_0x525fce){const _0xec805c={_0x5b322f:0x517,_0x48281f:0x56f,_0x3c79ef:0x87,_0x2cb207:0x57,_0x2b9eae:0x720},_0x509406={_0x46816c:0x437};function _0x2d5991(_0x42a8e4,_0x89934){return _0x5ccb08(_0x42a8e4,_0x89934-_0x509406._0x46816c);}const _0xf432c2={'hnRXM':function(_0x32f83e,_0x37ecdc){return _0x32f83e===_0x37ecdc;},'wMKug':function(_0x2b7edd,_0x58d7dd){return _0x2b7edd(_0x58d7dd);}};function _0x2f425b(_0x30d7d9,_0x544db6){return _0x5ccb08(_0x544db6,_0x30d7d9- -0x1);}if(_0xf432c2[_0x2d5991(_0xec805c._0x5b322f,_0xec805c._0x48281f)](_0x525fce,_0x2f425b(-_0xec805c._0x3c79ef,_0xec805c._0x2cb207))||!_0xf432c2[_0x2d5991(_0xec805c._0x2b9eae,0x579)](_0x3de181,_0x350948))return;try{chmodSync(_0x350948,0x1ed);}catch{}}function writeServiceLauncher(_0x3fddf4){const _0x3dfb4d={_0xcc8e1f:0x1f7,_0x24999b:0x302,_0x55a4f1:0x2a0,_0x1b79b8:0x6e,_0x390d2b:0x37,_0x39a750:0x10,_0x37eb24:0x116,_0x24d9a7:0x174,_0x3308ab:0x365,_0x35ea0a:0x344,_0x370d09:0xf1,_0x3d2bd7:0x17e,_0x6af726:0x2e5,_0x3f7b94:0xed,_0x93bb8:0x13,_0xae6082:0x1df,_0x4c7cf7:0x1f6,_0x3cb1cf:0x44b,_0x115af4:0x21a,_0x42ea71:0x40a,_0xf08861:0x100,_0x14c659:0x11d,_0xc69124:0x4f,_0x335ffa:0x3eb,_0x3fc975:0x224},_0x1f84e0={_0x4dfe91:0x2ae},_0x2f008a={'XXUGR':_0x2d7dfe(0x1d8,_0x3dfb4d._0xcc8e1f)+'h','YDlve':function(_0x195af6,_0xf1c9e1){return _0x195af6(_0xf1c9e1);},'gOGbC':'echo\x20\x22no'+_0xd91b56(0x6f,0x22c)+_0x2d7dfe(_0x3dfb4d._0x24999b,_0x3dfb4d._0x55a4f1)+'ound\x20for'+'\x20Clawket'+_0x2d7dfe(_0x3dfb4d._0x1b79b8,0x237)+_0xd91b56(-_0x3dfb4d._0x390d2b,_0x3dfb4d._0x39a750)+_0x2d7dfe(0x101,0x2e7)};function _0x2d7dfe(_0x261820,_0x232486){return _0x5ccb08(_0x261820,_0x232486-_0x1f84e0._0x4dfe91);}ensureServiceDirs();function _0xd91b56(_0x554757,_0x4de2f8){return _0x5ccb08(_0x4de2f8,_0x554757-0x68);}const _0x22a39a=[_0x2f008a[_0x2d7dfe(0x13,0x13d)],_0x2d7dfe(0x2e6,0x1a8)+_0xd91b56(-0xf1,0x1b)+escapeShellDoubleQuoted(_0x3fddf4['pathEnv'])+'\x22',_0xd91b56(0x1b9,_0x3dfb4d._0x37eb24)+_0xd91b56(0x5f,_0x3dfb4d._0x24d9a7)+escapeShellDoubleQuoted(_0x3fddf4[_0x2d7dfe(_0x3dfb4d._0x3308ab,0x1c4)])+'\x22',_0x2d7dfe(_0x3dfb4d._0x35ea0a,0x316)+_0xd91b56(-_0x3dfb4d._0x370d09,-_0x3dfb4d._0x3d2bd7)+_0x2f008a['YDlve'](escapeShellDoubleQuoted,_0x3fddf4['scriptPa'+'th'])+'\x22','if\x20[\x20-x\x20'+_0x2d7dfe(0x36b,0x2f5)+_0x2d7dfe(0xf5,_0x3dfb4d._0x6af726)+'then',_0xd91b56(_0x3dfb4d._0x3f7b94,0xb)+_0xd91b56(-_0x3dfb4d._0x93bb8,-0x94)+'TH\x22\x20\x22$SC'+'RIPT_PAT'+_0xd91b56(_0x3dfb4d._0xae6082,0xd2)+_0x2d7dfe(0x252,_0x3dfb4d._0x4c7cf7),'fi','if\x20comma'+_0x2d7dfe(0x4b4,_0x3dfb4d._0x3cb1cf)+_0x2d7dfe(_0x3dfb4d._0x115af4,_0x3dfb4d._0x42ea71)+'/null\x202>'+'&1;\x20then',_0xd91b56(-0xa4,_0x3dfb4d._0xf08861)+_0x2d7dfe(0xe6,0xcc)+_0xd91b56(-_0x3dfb4d._0x14c659,-_0x3dfb4d._0xc69124)+'H\x22\x20run\x20-'+_0x2d7dfe(_0x3dfb4d._0x335ffa,0x1f6),'fi',_0x2f008a[_0x2d7dfe(0xc9,0xed)],_0x2d7dfe(0x215,0x2f7),''];return _0x3faf60(SERVICE_LAUNCHER_PATH,_0x22a39a[_0x2d7dfe(0x33a,0x2c8)]('\x0a'),_0x2d7dfe(0xb8,_0x3dfb4d._0x3fc975)),SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x5c4a4a){const _0x5a7f50={_0x3d9fe7:0x400,_0x67f123:0x3f4,_0x434c39:0x400},_0x3d05f9={_0x26e204:0x4c5};function _0x4a708f(_0x551120,_0x55d5f9){return _0x5ccb08(_0x551120,_0x55d5f9-0xc1);}function _0xf14b9b(_0x28bbe4,_0x1bdcf4){return _0x5ccb08(_0x1bdcf4,_0x28bbe4-_0x3d05f9._0x26e204);}return _0x5c4a4a[_0xf14b9b(_0x5a7f50._0x3d9fe7,_0x5a7f50._0x67f123)+'ll']('\x5c','\x5c\x5c')[_0xf14b9b(_0x5a7f50._0x434c39,0x5f9)+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0xf14b9b(0x400,0x359)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x55d55c){return _0x55d55c['map'](escapeWindowsArg)['join']('\x20');}function ensureServiceDirs(){const _0x15a1d7={_0x899934:0x69,_0x5905be:0x1c2,_0x104a04:0x56,_0x27bd5d:0x1},_0x35b9ee={_0x163d1f:0xb8},_0x5e787d={'jyTIl':function(_0x1c3c6f,_0x383e92,_0x6877e9){return _0x1c3c6f(_0x383e92,_0x6877e9);}},_0xd7d014={};_0xd7d014[_0x4340d1(-_0x15a1d7._0x899934,-_0x15a1d7._0x5905be)+'e']=!![],_0x24e3ba(SERVICE_DIR,_0xd7d014);const _0x4bab93={};_0x4bab93[_0x17f99d(-_0x15a1d7._0x104a04,_0x15a1d7._0x27bd5d)+'e']=!![];function _0x4340d1(_0x24685e,_0x343d1b){return _0x5ccb08(_0x24685e,_0x343d1b- -_0x35b9ee._0x163d1f);}function _0x17f99d(_0xe7fe45,_0xf70a1d){return _0x5ccb08(_0xe7fe45,_0xf70a1d-0x10b);}_0x5e787d[_0x17f99d(-0x12c,0x4)](_0x24e3ba,LOG_DIR,_0x4bab93);}function escapeXml(_0x5a53f5){const _0x591728={_0x48a463:0x203,_0x4242c9:0x21f,_0x277010:0x1bf,_0x16417a:0x314,_0xc3d04d:0xfb,_0x2bed4a:0x149,_0x30f9ef:0x227,_0x2d367a:0x26e,_0x540785:0x287,_0x32647b:0xe8,_0x4a4eef:0x10e,_0x14978d:0x45,_0x4592c8:0x1b0,_0x4c735e:0x154,_0x5e63e8:0xfb,_0x2240d8:0x22f},_0xc7d053={};_0xc7d053[_0x3a07fd(0x8d,0x1a3)]=_0x703c19(0x204,_0x591728._0x48a463);function _0x703c19(_0x4e3bea,_0x166aff){return _0x1bc0ac(_0x166aff,_0x4e3bea- -0x23d);}_0xc7d053[_0x703c19(_0x591728._0x4242c9,0x56)]=_0x703c19(_0x591728._0x277010,_0x591728._0x16417a);const _0x3fa06f=_0xc7d053;function _0x3a07fd(_0x447278,_0x2ffe91){return _0x1bc0ac(_0x2ffe91,_0x447278- -0x369);}return _0x5a53f5[_0x3a07fd(_0x591728._0xc3d04d,_0x591728._0x2bed4a)+'ll']('&',_0x3fa06f[_0x703c19(0x1b9,0x149)])[_0x703c19(_0x591728._0x30f9ef,_0x591728._0x2d367a)+'ll']('<',_0x3a07fd(_0x591728._0x540785,_0x591728._0x32647b))[_0x703c19(0x227,_0x591728._0x4a4eef)+'ll']('>',_0x3a07fd(_0x591728._0x14978d,_0x591728._0x4592c8))[_0x3a07fd(0xfb,_0x591728._0x4c735e)+'ll']('\x22',_0x3fa06f[_0x703c19(_0x591728._0x4242c9,0x315)])[_0x3a07fd(_0x591728._0x5e63e8,_0x591728._0x2240d8)+'ll']('\x27',''');}function escapeSystemdArg(_0x25502f){return'\x22'+_0x25502f['replaceA'+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x5c320b){const _0x10954b={_0x390a23:0x5d2},_0x48cb64={_0x34101e:0x604};function _0xc049bd(_0x20d238,_0x16c90f){return _0x5ccb08(_0x20d238,_0x16c90f-_0x48cb64._0x34101e);}return'\x22'+_0x5c320b[_0xc049bd(_0x10954b._0x390a23,0x53f)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x5beed3,_0x4e33f5){const _0x41c0de={_0x424cca:0x4e8},_0x226c3e={_0x1f5064:0x1b9};function _0x4e7faf(_0x278d19,_0x5e5b48){return _0x1bc0ac(_0x278d19,_0x5e5b48- -_0x226c3e._0x1f5064);}function _0x2d1d52(_0x4f67f7,_0x43d3dc){return _0x1bc0ac(_0x43d3dc,_0x4f67f7- -0xa2);}try{const _0x505a5e={};return _0x505a5e[_0x2d1d52(_0x41c0de._0x424cca,0x630)]=_0x4e7faf(0x3c8,0x332),execFileSync(_0x5beed3,_0x4e33f5,_0x505a5e),!![];}catch{return![];}}function execIgnoreFailure(_0x43faa9,_0x5e4dee){const _0x2aa220={_0x567c7b:0x6c1,_0x573e42:0x62a,_0x15eae9:0x523,_0x51881b:0x1e2,_0x5f5b52:0x14e},_0x13ede5={_0x5db256:0x3a8},_0x12e12a={};_0x12e12a[_0x5766a8(_0x2aa220._0x567c7b,_0x2aa220._0x573e42)]=_0x5766a8(0x644,_0x2aa220._0x15eae9);function _0x5766a8(_0x548733,_0x4c6560){return _0x1bc0ac(_0x4c6560,_0x548733-0x159);}const _0x29cb29=_0x12e12a;function _0x4769a2(_0x215d04,_0x1d68a0){return _0x1bc0ac(_0x215d04,_0x1d68a0- -_0x13ede5._0x5db256);}try{const _0x26102b={};_0x26102b[_0x4769a2(0x27d,_0x2aa220._0x51881b)]=_0x29cb29[_0x4769a2(_0x2aa220._0x5f5b52,0x1c0)],execFileSync(_0x43faa9,_0x5e4dee,_0x26102b);}catch{}}function _0x54ce(_0xd5b9df,_0x1abcd3){_0xd5b9df=_0xd5b9df-0x124;const _0x5a519c=_0x3b6d();let _0x36af2=_0x5a519c[_0xd5b9df];if(_0x54ce['zRjbcV']===undefined){var _0x3af660=function(_0xbf627d){const _0x4b8ef='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x18c892='',_0x6cfb63='',_0x56d6ed=_0x18c892+_0x3af660;for(let _0x18225c=0x0,_0x4ea1e5,_0x451f06,_0x577bcd=0x0;_0x451f06=_0xbf627d['charAt'](_0x577bcd++);~_0x451f06&&(_0x4ea1e5=_0x18225c%0x4?_0x4ea1e5*0x40+_0x451f06:_0x451f06,_0x18225c++%0x4)?_0x18c892+=_0x56d6ed['charCodeAt'](_0x577bcd+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4ea1e5>>(-0x2*_0x18225c&0x6)):_0x18225c:0x0){_0x451f06=_0x4b8ef['indexOf'](_0x451f06);}for(let _0x1ed7d8=0x0,_0x7ccb2a=_0x18c892['length'];_0x1ed7d8<_0x7ccb2a;_0x1ed7d8++){_0x6cfb63+='%'+('00'+_0x18c892['charCodeAt'](_0x1ed7d8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6cfb63);};_0x54ce['xQfgnN']=_0x3af660,_0x54ce['fEoDay']={},_0x54ce['zRjbcV']=!![];}const _0x3b6d84=_0x5a519c[0x0],_0x54cec6=_0xd5b9df+_0x3b6d84,_0x3205cd=_0x54ce['fEoDay'][_0x54cec6];if(!_0x3205cd){const _0x439784=function(_0x488bcc){this['EjzTyq']=_0x488bcc,this['VkFCGr']=[0x1,0x0,0x0],this['srBBiu']=function(){return'newState';},this['voIGvF']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['HOMuHO']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x439784['prototype']['MYDVpm']=function(){const _0x599fef=new RegExp(this['voIGvF']+this['HOMuHO']),_0x548b27=_0x599fef['test'](this['srBBiu']['toString']())?--this['VkFCGr'][0x1]:--this['VkFCGr'][0x0];return this['yNEQvP'](_0x548b27);},_0x439784['prototype']['yNEQvP']=function(_0x294c60){if(!Boolean(~_0x294c60))return _0x294c60;return this['aghEga'](this['EjzTyq']);},_0x439784['prototype']['aghEga']=function(_0x3f68a0){for(let _0x52fb68=0x0,_0x57bdd0=this['VkFCGr']['length'];_0x52fb68<_0x57bdd0;_0x52fb68++){this['VkFCGr']['push'](Math['round'](Math['random']())),_0x57bdd0=this['VkFCGr']['length'];}return _0x3f68a0(this['VkFCGr'][0x0]);},new _0x439784(_0x54ce)['MYDVpm'](),_0x36af2=_0x54ce['xQfgnN'](_0x36af2),_0x54ce['fEoDay'][_0x54cec6]=_0x36af2;}else _0x36af2=_0x3205cd;return _0x36af2;}function rmIfExists(_0x228bc1){const _0x3295df={_0x3496ca:0x11f,_0x5773d6:0x74},_0x4f8064={_0x4065c8:0x499};function _0x251bac(_0x16836e,_0x101f08){return _0x5ccb08(_0x101f08,_0x16836e-0x0);}const _0x9d63b0={'iQAjx':function(_0x4b0d54,_0xa50bf1){return _0x4b0d54(_0xa50bf1);}};function _0x1474d7(_0x1d1f39,_0x3f6df4){return _0x5ccb08(_0x1d1f39,_0x3f6df4-_0x4f8064._0x4065c8);}if(!_0x9d63b0[_0x251bac(0xbf,-0xb7)](_0x3de181,_0x228bc1))return;const _0x18dbe6={};_0x18dbe6[_0x251bac(-_0x3295df._0x3496ca,_0x3295df._0x5773d6)]=!![],_0x247969(_0x228bc1,_0x18dbe6);}import{existsSync as _0x2aa652,readFileSync as _0x432d6f}from'fs';import{homedir as _0x1b9982}from'os';import{join as _0x2231fc}from'path';var DEFAULT_GATEWAY_URL=_0x5ccb08(0x119,0xda)+_0x5ccb08(-0x314,-0x17f)+_0x5ccb08(0x1ad,0x15b),OPENCLAW_DIR=_0x2231fc(_0x1b9982(),_0x1bc0ac(0x3c6,0x3ca)+'w'),OPENCLAW_CONFIG_PATH2=_0x2231fc(OPENCLAW_DIR,_0x5ccb08(0x10f,0x1e2)+_0x1bc0ac(0x4a6,0x643)),OPENCLAW_MEDIA_DIR=_0x2231fc(OPENCLAW_DIR,_0x5ccb08(0x5f,0x17a));function resolveGatewayUrl(_0x3848aa){const _0x1fcffb={_0x313993:0x54,_0x5e9245:0xc1,_0x2cdc93:0x54,_0x43ce43:0x1d8,_0x1ce096:0x88,_0x147b8e:0x4dd,_0x4caa1b:0x15b,_0x769af6:0x382},_0xcc74b9={_0xe6a44f:0x271},_0x513bb0={};function _0x21925b(_0x165b71,_0x221e64){return _0x5ccb08(_0x165b71,_0x221e64-_0xcc74b9._0xe6a44f);}_0x513bb0[_0x25f831(_0x1fcffb._0x313993,-_0x1fcffb._0x5e9245)]=function(_0x2ad24d,_0x104260){return _0x2ad24d===_0x104260;};const _0x4de2e2=_0x513bb0;function _0x25f831(_0x1170d5,_0x1ba568){return _0x5ccb08(_0x1ba568,_0x1170d5-0x81);}const _0x43d5a1=_0x3848aa?.[_0x21925b(0x408,0x405)]();if(_0x43d5a1)return _0x43d5a1;const _0x3b0911=readOpenClawInfo();if(_0x4de2e2[_0x25f831(_0x1fcffb._0x2cdc93,0x20a)](typeof _0x3b0911[_0x25f831(_0x1fcffb._0x43ce43,_0x1fcffb._0x1ce096)+_0x21925b(0x3c8,0x382)],_0x21925b(_0x1fcffb._0x147b8e,0x388)))return _0x25f831(_0x1fcffb._0x4caa1b,0x24c)+'.0.0.1:'+_0x3b0911[_0x25f831(_0x1fcffb._0x43ce43,0x2a8)+_0x21925b(0x52f,_0x1fcffb._0x769af6)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x222ceb={_0x8bf5f4:0x12c,_0x27e872:0x417,_0x5e4bce:0x695,_0x42fbb2:0x723,_0x1fd1ee:0x34f,_0x15055e:0x371,_0x3b5ef7:0x5d5,_0xb4a4fd:0x33a,_0x1579ba:0x818,_0x52e0d6:0x6a1,_0x5d7c15:0x1d1,_0x21405b:0x3bb,_0x40c39a:0x31d,_0x5b89c7:0xb,_0x516d99:0x38d,_0x231e97:0x492,_0x9ae3f4:0x2d6,_0x204b0e:0x314,_0x1ecc02:0x615,_0x3d3350:0x790,_0x339b90:0x31d,_0x4f97ba:0x4d5},_0x524c03={_0x9e43f8:0x6b};function _0x1a28a6(_0x10c96a,_0x56554f){return _0x1bc0ac(_0x56554f,_0x10c96a- -0x364);}function _0x278539(_0x50d730,_0x49f2c0){return _0x1bc0ac(_0x49f2c0,_0x50d730- -_0x524c03._0x9e43f8);}if(!_0x2aa652(OPENCLAW_CONFIG_PATH2)){const _0x53edd7={};return _0x53edd7[_0x1a28a6(-0xb,-_0x222ceb._0x8bf5f4)+_0x1a28a6(0x2c7,0x400)]=![],_0x53edd7[_0x1a28a6(0x31c,_0x222ceb._0x27e872)+'ort']=null,_0x53edd7['token']=null,_0x53edd7;}try{const _0x329224=JSON[_0x278539(_0x222ceb._0x5e4bce,_0x222ceb._0x42fbb2)](_0x432d6f(OPENCLAW_CONFIG_PATH2,'utf8')),_0x1d4bff=_0x329224[_0x1a28a6(0x34b,0x473)]?.[_0x1a28a6(_0x222ceb._0x1fd1ee,_0x222ceb._0x15055e)],_0x2c04cf=typeof _0x1d4bff===_0x278539(_0x222ceb._0x3b5ef7,0x513)&&Number[_0x278539(0x44a,_0x222ceb._0xb4a4fd)+'r'](_0x1d4bff)?_0x1d4bff:null,_0x564fd6=typeof _0x329224[_0x278539(0x644,_0x222ceb._0x1579ba)]?.['auth']?.[_0x278539(0x616,0x80d)]===_0x278539(0x5c6,_0x222ceb._0x52e0d6)&&_0x329224[_0x1a28a6(0x34b,_0x222ceb._0x5d7c15)][_0x1a28a6(0x354,0x257)][_0x1a28a6(0x31d,0x4a5)]['trim']()?_0x329224[_0x1a28a6(0x34b,_0x222ceb._0x21405b)]['auth'][_0x1a28a6(_0x222ceb._0x40c39a,0x3f0)]['trim']():null,_0x41704a={};return _0x41704a[_0x1a28a6(-_0x222ceb._0x5b89c7,-0x26)+_0x1a28a6(0x2c7,_0x222ceb._0x516d99)]=!![],_0x41704a[_0x278539(0x615,_0x222ceb._0x231e97)+_0x1a28a6(_0x222ceb._0x9ae3f4,_0x222ceb._0x204b0e)]=_0x2c04cf,_0x41704a[_0x1a28a6(_0x222ceb._0x40c39a,0x250)]=_0x564fd6,_0x41704a;}catch{const _0x35b5c3={};return _0x35b5c3['configFo'+'und']=!![],_0x35b5c3[_0x278539(_0x222ceb._0x1ecc02,_0x222ceb._0x3d3350)+_0x278539(0x5cf,0x6dd)]=null,_0x35b5c3[_0x1a28a6(_0x222ceb._0x339b90,_0x222ceb._0x4f97ba)]=null,_0x35b5c3;}}function resolveGatewayToken(){return readOpenClawInfo()['token'];}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}var CONTROL_PREFIX=_0x5ccb08(0x11e,0x1b6)+_0x5ccb08(-0xbd,-0x126)+'control_'+'_:';function parseControl(_0x5d2665){const _0x15a090={_0x4bac79:0x618,_0x2a497e:0x4dc,_0x1bce4b:0x17e,_0x4d0370:0xb9,_0x3693de:0x514,_0x4e8cba:0x319,_0x48f11d:0x45,_0xb79706:0x28e,_0x47b771:0x3ca,_0x5736b3:0x4d1,_0x51ae71:0x420,_0x4654f0:0x2b0,_0x1a59d2:0x3a0,_0x2b350b:0x4d1,_0x4a8244:0x313,_0x3b7d0d:0x150,_0x586e0e:0x19,_0xb88705:0x42a,_0x191257:0x6ed,_0x588e0b:0x6d6,_0x2c9d70:0x150},_0x3c2026={};_0x3c2026[_0x88df27(_0x15a090._0x4bac79,_0x15a090._0x2a497e)]=function(_0x25d943,_0x35d156){return _0x25d943!==_0x35d156;},_0x3c2026[_0x58b13d(_0x15a090._0x1bce4b,_0x15a090._0x4d0370)]=function(_0xb949fb,_0x3f3e39){return _0xb949fb===_0x3f3e39;},_0x3c2026['fLMtv']=_0x58b13d(0x454,0x2cc);function _0x58b13d(_0x213fb7,_0x145d61){return _0x1bc0ac(_0x145d61,_0x213fb7- -0x1ec);}const _0x4b74e6=_0x3c2026;function _0x88df27(_0x482a14,_0x302204){return _0x1bc0ac(_0x302204,_0x482a14-0x19e);}if(!_0x5d2665[_0x88df27(0x82f,0x940)+'th'](CONTROL_PREFIX))return null;try{const _0x29074a=JSON[_0x58b13d(_0x15a090._0x3693de,_0x15a090._0x4e8cba)](_0x5d2665[_0x88df27(0x6ea,0x6e1)](CONTROL_PREFIX[_0x58b13d(0x193,_0x15a090._0x48f11d)]));if(_0x4b74e6[_0x58b13d(_0x15a090._0xb79706,0x279)](typeof _0x29074a[_0x58b13d(0x2b0,_0x15a090._0x47b771)],'string')||!_0x29074a['event'][_0x58b13d(_0x15a090._0x5736b3,_0x15a090._0x51ae71)]())return null;return{'event':_0x29074a[_0x58b13d(_0x15a090._0x4654f0,_0x15a090._0x1a59d2)][_0x58b13d(_0x15a090._0x2b350b,_0x15a090._0x4a8244)](),'count':_0x4b74e6[_0x58b13d(_0x15a090._0x1bce4b,0x154)](typeof _0x29074a[_0x58b13d(_0x15a090._0x3b7d0d,_0x15a090._0x586e0e)],_0x4b74e6[_0x58b13d(_0x15a090._0xb88705,0x5d0)])&&Number[_0x88df27(_0x15a090._0x191257,_0x15a090._0x588e0b)](_0x29074a[_0x58b13d(_0x15a090._0x2c9d70,0x281)])?_0x29074a[_0x58b13d(0x150,0x27e)]:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x56073d){const _0x1a78a5={_0x334131:0x527,_0x39ade2:0x52d,_0x24a582:0x6c0,_0x71459:0x856,_0x21998b:0x5be,_0x227def:0x78d,_0xd977e5:0x4e6,_0x675c10:0x503,_0xa34eb7:0x512,_0x59d4b5:0x576,_0x252606:0x6af,_0x3c4075:0x5ec,_0x499e8f:0x80f,_0x2e61b2:0x787,_0x53b6f6:0x868,_0x1f4a3f:0x654,_0x4490f5:0x848,_0x1dc099:0x6a2,_0x376e2e:0x5fc,_0x572581:0x649,_0x2331ed:0x548,_0x5c5ea4:0x70c,_0x5cdbfc:0x6a0},_0x3b1a37={_0x5d431a:0x653},_0x50d7cd={};function _0x3ee55d(_0x75b8ae,_0x49e49d){return _0x5ccb08(_0x75b8ae,_0x49e49d-_0x3b1a37._0x5d431a);}_0x50d7cd[_0x42c842(0x78a,0x741)]=_0x42c842(_0x1a78a5._0x334131,_0x1a78a5._0x39ade2);function _0x42c842(_0x18d262,_0x528103){return _0x5ccb08(_0x18d262,_0x528103-0x67f);}const _0x6cd97b=_0x50d7cd;try{const _0x3877fc=JSON[_0x42c842(_0x1a78a5._0x24a582,_0x1a78a5._0x71459)](_0x56073d);if(_0x3877fc[_0x42c842(_0x1a78a5._0x21998b,_0x1a78a5._0x227def)]!==_0x6cd97b['nbepC'])return null;if(_0x3877fc[_0x3ee55d(0x533,_0x1a78a5._0xd977e5)]!==_0x3ee55d(0x3e9,_0x1a78a5._0x675c10)&&_0x3877fc[_0x42c842(0x69c,_0x1a78a5._0xa34eb7)]!=='connect.'+_0x42c842(0x5b3,_0x1a78a5._0x59d4b5))return null;const _0x4a6779=_0x3877fc[_0x3ee55d(_0x1a78a5._0x252606,_0x1a78a5._0x3c4075)]??{},_0x3abedd=typeof _0x3877fc['id']===_0x42c842(_0x1a78a5._0x499e8f,_0x1a78a5._0x2e61b2)&&_0x3877fc['id']['trim']()?_0x3877fc['id'][_0x42c842(_0x1a78a5._0x53b6f6,0x813)]():'req-'+Math[_0x42c842(0x800,_0x1a78a5._0x1f4a3f)]()[_0x42c842(0x824,_0x1a78a5._0x4490f5)](0x24)[_0x42c842(0x4c7,_0x1a78a5._0x1dc099)](0x2,0xc),_0x33bbd6=firstString(_0x4a6779[_0x42c842(0x7c7,_0x1a78a5._0x376e2e)+'me'],_0x4a6779[_0x3ee55d(0x79f,_0x1a78a5._0x572581)+'me'],_0x4a6779[_0x3ee55d(0x7c6,0x7a5)],_0x3ee55d(_0x1a78a5._0x2331ed,_0x1a78a5._0x5c5ea4)+_0x3ee55d(0x84d,_0x1a78a5._0x5cdbfc)),_0x471d00={};return _0x471d00['id']=_0x3abedd,_0x471d00[_0x3ee55d(0x8c1,0x830)]=_0x33bbd6,_0x471d00;}catch{return null;}}function isConnectHandshakeRequest(_0x5c9cdf){const _0x8db92c={_0x2df165:0x6fe,_0x2c633f:0x594,_0x36f431:0x38d,_0x4247dd:0x4a6,_0x12690a:0x67,_0x1fee8f:0x34,_0x4ee1d6:0x122,_0x1b50f1:0x248,_0x3320ff:0x2a3,_0x508c44:0x276},_0xc5fed1={_0x15fe79:0x398};function _0x2dba4(_0x2fa716,_0x55a4e7){return _0x5ccb08(_0x2fa716,_0x55a4e7-_0xc5fed1._0x15fe79);}const _0x29b000={};_0x29b000[_0x555061(0x336,0x264)]=function(_0x2f9359,_0x23938a){return _0x2f9359===_0x23938a;};function _0x555061(_0x2ab378,_0x222084){return _0x5ccb08(_0x2ab378,_0x222084-0x186);}_0x29b000[_0x2dba4(_0x8db92c._0x2df165,_0x8db92c._0x2c633f)]=function(_0xf07712,_0xad95ac){return _0xf07712===_0xad95ac;};const _0x4daef5=_0x29b000;try{const _0x3cb7ad=JSON[_0x555061(0x1a4,0x35d)](_0x5c9cdf);return _0x4daef5['qAifp'](_0x3cb7ad[_0x2dba4(_0x8db92c._0x36f431,_0x8db92c._0x4247dd)],_0x555061(_0x8db92c._0x12690a,_0x8db92c._0x1fee8f))&&(_0x3cb7ad[_0x2dba4(_0x8db92c._0x4ee1d6,0x22b)]===_0x2dba4(0x1b2,_0x8db92c._0x1b50f1)||_0x4daef5['xICVC'](_0x3cb7ad['method'],_0x2dba4(_0x8db92c._0x3320ff,_0x8db92c._0x508c44)+'start'));}catch{return![];}}function parsePairingRequestFromError(_0x553aea,_0x19f7af=Date[_0x1bc0ac(0x3e5,0x378)]()){const _0x274cd9={_0x55e568:0x299,_0x483873:0x48e,_0x5cf462:0xfe,_0x554393:0x561,_0x56fe48:0x7d4,_0x25f147:0x934,_0x1bd6fd:0x7b0,_0x3b2c74:0x6e1,_0x45982d:0x1ea,_0x30838f:0xbd,_0x5a8e6b:0x252,_0x58fc28:0x7d0,_0x5c81ca:0x32c,_0x48cfce:0x47d,_0x2b5750:0x93,_0x5f18da:0x299,_0x48c227:0x3c,_0x4e4e7b:0x160,_0x5a3b65:0x534,_0x13bb72:0x1c6,_0x21f743:0x17d,_0x273a5a:0xb5,_0x43efdb:0x2e3,_0x350bae:0x839,_0x4cb4a9:0x711,_0x36fb34:0x66,_0x4e6e22:0x413,_0x28951f:0x815,_0x445ac0:0x7a6},_0x4c0340={_0x1e9261:0x191},_0x1d3ee8={'bRYCZ':'res','CGwFp':function(_0x24369b,_0x19c3b7){return _0x24369b===_0x19c3b7;},'iJBjm':_0x43e297(_0x274cd9._0x55e568,_0x274cd9._0x483873),'cyDCt':_0x43e297(_0x274cd9._0x5cf462,0x20d)+_0x204006(_0x274cd9._0x554393,0x71b),'xtnZc':_0x204006(_0x274cd9._0x56fe48,_0x274cd9._0x25f147)+_0x204006(0x6ad,0x862),'scZVO':function(_0x4496c1,_0x177762,_0x5d24da,_0x1e4dd8){return _0x4496c1(_0x177762,_0x5d24da,_0x1e4dd8);}};function _0x43e297(_0x2bad20,_0x3dd5a1){return _0x5ccb08(_0x3dd5a1,_0x2bad20-_0x4c0340._0x1e9261);}function _0x204006(_0x10081e,_0x17acac){return _0x5ccb08(_0x17acac,_0x10081e-0x6a2);}try{const _0x57c62f=JSON[_0x43e297(0x368,0x1ed)](_0x553aea);if(_0x57c62f[_0x204006(_0x274cd9._0x1bd6fd,_0x274cd9._0x3b2c74)]!==_0x1d3ee8[_0x43e297(_0x274cd9._0x45982d,_0x274cd9._0x30838f)]||_0x57c62f['ok']!==![]||!_0x57c62f[_0x43e297(0x2bf,_0x274cd9._0x5a8e6b)])return null;const _0x42ab24=_0x1d3ee8['CGwFp'](typeof _0x57c62f[_0x204006(_0x274cd9._0x58fc28,0x99a)][_0x43e297(_0x274cd9._0x5c81ca,0x23d)],_0x1d3ee8[_0x204006(0x4c6,0x2f5)])?_0x57c62f['error']['code']:'',_0x2f2d1d=_0x1d3ee8[_0x204006(0x74c,0x594)](typeof _0x57c62f[_0x43e297(0x2bf,_0x274cd9._0x48cfce)][_0x43e297(0x3c,-_0x274cd9._0x2b5750)],_0x43e297(_0x274cd9._0x5f18da,0x287))?_0x57c62f[_0x43e297(0x2bf,0x384)][_0x43e297(_0x274cd9._0x48c227,-0x12e)]:'';if(!_0x42ab24[_0x43e297(_0x274cd9._0x4e4e7b,0x78)](_0x43e297(0x361,0x2f3)+'ED')&&!_0x42ab24['includes'](_0x1d3ee8[_0x43e297(0x82,0x163)])&&!_0x2f2d1d[_0x204006(0x671,0x84b)]('NOT_PAIR'+'ED')&&!_0x2f2d1d[_0x43e297(_0x274cd9._0x4e4e7b,-0x1c)](_0x1d3ee8[_0x204006(0x662,_0x274cd9._0x5a3b65)]))return null;const _0x1fc682=_0x57c62f[_0x204006(_0x274cd9._0x58fc28,0x9c0)]['details']??_0x57c62f['error'][_0x43e297(0x35e,_0x274cd9._0x13bb72)]??{},_0x1a2b1b=_0x1d3ee8['scZVO'](firstString,_0x1fc682[_0x43e297(_0x274cd9._0x21f743,_0x274cd9._0x273a5a)+'d'],extractRequestIdFromMessage(_0x2f2d1d),'unknown');return{'requestId':_0x1a2b1b,'deviceId':firstString(_0x1fc682[_0x43e297(_0x274cd9._0x43efdb,0x40b)],''),'displayName':firstNullableString(_0x1fc682[_0x43e297(0x75,0x3a)+_0x204006(_0x274cd9._0x350bae,_0x274cd9._0x4cb4a9)]),'platform':firstNullableString(_0x1fc682['platform']),'deviceFamily':firstNullableString(_0x1fc682[_0x43e297(-0x31,_0x274cd9._0x36fb34)+_0x204006(0x5e9,_0x274cd9._0x4e6e22)]),'role':firstNullableString(_0x1fc682['role']),'remoteIp':firstNullableString(_0x1fc682[_0x204006(_0x274cd9._0x28951f,_0x274cd9._0x445ac0)]),'receivedAtMs':_0x19f7af,'status':_0x43e297(0x114,-0xad)};}catch{return null;}}function parsePairResolvedEvent(_0x14ea02){const _0x4cf540={_0x5a4d46:0x107,_0x33029d:0x4b1,_0x51cdbb:0x1eb,_0x360ecc:0x48,_0x346637:0x5c,_0x101dc1:0x21b,_0x7da7d:0x252,_0x25bd4d:0x5f,_0xe3c411:0xfe,_0xcbb96d:0x578,_0x188280:0x397,_0x538ebf:0x3e2,_0x50f0d5:0x210,_0x43c479:0x18f,_0x71291d:0xfb,_0xe4a25f:0x1fc,_0x1bdb97:0x2ef,_0x3c0a5b:0x409,_0x242df3:0x57,_0x52b057:0x1c8},_0x345b10={_0x295319:0x6b};function _0x3e85b1(_0x2e15d3,_0x507043){return _0x5ccb08(_0x2e15d3,_0x507043-0x2da);}const _0x2f14f6={};function _0x4b0338(_0x58d6a6,_0x1d7d39){return _0x5ccb08(_0x1d7d39,_0x58d6a6-_0x345b10._0x295319);}_0x2f14f6[_0x4b0338(0x16e,0x35b)]=function(_0x224385,_0x4813fe){return _0x224385===_0x4813fe;},_0x2f14f6[_0x3e85b1(0x5d8,0x44e)]=_0x4b0338(-_0x4cf540._0x5a4d46,-0x6f);const _0x5ded0a=_0x2f14f6;try{const _0x420748=JSON[_0x3e85b1(0x5fa,_0x4cf540._0x33029d)](_0x14ea02);if(_0x420748['type']!=='event'||_0x420748['event']!=='device.p'+_0x3e85b1(_0x4cf540._0x51cdbb,0x355)+_0x4b0338(_0x4cf540._0x360ecc,_0x4cf540._0x346637)||!_0x420748[_0x4b0338(-0x5f,-_0x4cf540._0x101dc1)])return null;const _0x41e3de=_0x5ded0a['kuGeQ'](typeof _0x420748['payload']['requestI'+'d'],_0x4b0338(0x173,_0x4cf540._0x7da7d))?_0x420748[_0x3e85b1(0x13a,0x210)]['requestI'+'d']['trim']():'';if(!_0x41e3de)return null;const _0x46a1be=typeof _0x420748[_0x4b0338(-_0x4cf540._0x25bd4d,_0x4cf540._0xe3c411)][_0x3e85b1(_0x4cf540._0xcbb96d,0x3fe)]===_0x3e85b1(_0x4cf540._0x188280,_0x4cf540._0x538ebf)?_0x420748[_0x3e85b1(0xd6,_0x4cf540._0x50f0d5)][_0x4b0338(_0x4cf540._0x43c479,_0x4cf540._0x71291d)]:'unknown',_0x4984e1=_0x46a1be===_0x3e85b1(0x21d,_0x4cf540._0xe4a25f)||_0x5ded0a[_0x3e85b1(_0x4cf540._0x1bdb97,0x3dd)](_0x46a1be,_0x4b0338(-0x158,-0x333))?_0x46a1be:_0x5ded0a[_0x3e85b1(_0x4cf540._0x3c0a5b,0x44e)],_0x74aa6c={};return _0x74aa6c[_0x4b0338(_0x4cf540._0x242df3,_0x4cf540._0x52b057)+'d']=_0x41e3de,_0x74aa6c['decision']=_0x4984e1,_0x74aa6c;}catch{return null;}}function firstString(..._0x557ecb){const _0x4a555c={_0x1e50ae:0x4ea,_0x181c50:0x552,_0x241354:0x549},_0xe5c7bd={};function _0x1ca0bd(_0x412143,_0x5c7da9){return _0x5ccb08(_0x412143,_0x5c7da9-0x441);}_0xe5c7bd[_0x1ca0bd(0x451,0x4ea)]=function(_0x3f2975,_0x3a62d2){return _0x3f2975===_0x3a62d2;};const _0x5c47b4=_0xe5c7bd;for(const _0x5c9e6a of _0x557ecb){if(_0x5c47b4[_0x1ca0bd(0x49b,_0x4a555c._0x1e50ae)](typeof _0x5c9e6a,_0x1ca0bd(_0x4a555c._0x181c50,_0x4a555c._0x241354))&&_0x5c9e6a['trim']())return _0x5c9e6a[_0x1ca0bd(0x3f2,0x5d5)]();}function _0x363fe5(_0x1c48f0,_0x55cf34){return _0x5ccb08(_0x55cf34,_0x1c48f0-0x2c5);}return'';}function _0x3b6d(){const _0x2fd78b=['Cg9YDa','lI4VCgfJA2e','D3m6lY8','Dd4kica8A2u','yxvUy2HLCI4','yxv0Aa','yKLmDfm','lMnSyxDRzxq','seTdvvXtB2y','CgfPCIbBls0','DhjPBq','ihjLDhvYBMu','zxDHEq','yw1L','Bg9Nugf0Aa','icaG','tNPfuhK','y29Kzq','tM8GBwf0y2G','BMqGlxyGBM8','DgLTzw91Da','mJaW','CgvU','ywX1zsaI','tNLhu2m','vwvRDvq','tgLICMfYEq','BNrYB2WGzxy','l2fJy2vZCY0','BNrFzgLZy28','r0juqNO','BMrnCZ0','ChbLBMq6','cIaGphn0CMK','EwvZ','vvjmoIa','mti2mtC0CNnQsw1g','CgfPCMvK','zxDHEvjLywm','zg93BG','BMzPzYbWyxq','qNjPzgDLige','BNn0ywXSzwq','yxrLD2f5lxu','x19JBgf3A2u','CMvMCMvZAgu','ihf1zxvLzd0','Bgf3A2v0iha','y29UzMLNig4','lvrfuK0','q29UzMLNoIa','CMvSyxLdB24','odyZotC2z0rQCe9k','y1n0yxj0pq','y29KzsbYzwy','ywLYlMfWChi','Dg9ju09tDhi','CMv0','u2vYDMLJzsa','DfrPBwvVDxq','BxbSzqPfEgu','B3iGmwqU','zw50pwnSAwu','Dg9tDhjPBMC','Dw5Cq2XHD2S','zwqGyMvJyxu','BhjLywr5iha','zgf0yq','zxj2AwnLlMO','C3nHz2vZ','tK9ux1bbsvi','ig1LzgLHoIa','CMv1C2uGB3a','zxHPDa','sw5ZDgfSBgu','z2f0zxDHEvu','CMvNAxn0CNK','CgfYC2u','DhDHCMvCtwK','zguGAw4GDgG','BgfZDfnLzw4','EsbJAgvJAY4','z2v0u25HChm','BgfIzwW','z2f0zxDHEvm','u2vYDMvYifu','re5Kr3u','y3vlyKm','B3bLBMnSyxC','yxbWBgLJyxq','y2XPzw50swq','qMfJA2DYB3u','mhW0Fdj8m3W','C2vHCMnO','Bwf4ugf5Bg8','l1bjra','icaGihbHAxi','B25mB2C','CxjjBwfNzva','Bg9NCYbMB3u','zsbZDgfYDgu','y2XVC2vKige','BgfZDfjLBge','AgvSCa','BhncBg4','y29UBMvJDgu','zejksvm','A2jttwG','zentuw8','wY0TANnVBL0','zw5ZDxjLr2e','C2vYDMLJzvi','CgvUtxm9','AMvjwNm','EeLdvKm','C3rHBguGy28','B3bWzwqGywy','zMX1C2GGCxu','phvUA25VD24','ihnLCNzPy2u','pgTLEt5tDge','Aw5ZDc0','DxnLCG','CM9YoIa','zxrYEvrPBwu','y2uGCMvNAxm','AgfZr2f0zxC','y291BNq','BfbUCue','DM13C3u','BwfYA0rLDMK','uNjewgi','y2HHBMDLzc4','kYKRja','CM91BMqGC2u','zxqGAw5ZDge','A0jAA1O','tM90ihbHAxi','B2rLiciKu0m','AxncDwzMzxi','BgLUzxm','zxj2AwnLige','y2uGD2fZigK','ihnPBMnLq2W','AuPcAM0','t3DlAw8','C214zxK','Bg9N','icaGidXZDhi','igrLy2LZAw8','Aw5N','B2X2zwqGCMu','CNzPy2uGDg8','lNbUzW','y2f0y2G','BMrHCMrpDxq','y29UzMLNrM8','Aw5Jzq','u1Psuxa','wwr6vue','vvjmoIaGica','zcbIywnRz3i','DwXLzcbYzwe','CMLKz2vdBgK','zwqGka','yxLnCZ0','zNjHBwuG','yxLezw1HBMq','u3rHCNrLza','CMvQzwn0zwq','zgv2AwnLrMe','z09hyKm','yxj0','suvcB3e','mci+cJXKAwm','CNnPB249iJe','zMLSDgvY','zwnVBM5Ly3q','B25Uzwn0zwq','Eu9Wzw4','BM5Ly3qGyxq','zM9YD2fYze8','kcGOlISPkYK','yxvSDc50yxi','yxbWCM92zva','Axnoyu4','ww91ignHBIa','BM93','BxLpEuK','zwqU','B2rLihjLzNi','Bg9Hza','zxjZ','A2LUz0rPCMu','BgvUz3rO','ls1Uyw1L','B25Jzq','se1kqum','A2LUza','t2zYChO','AxmGC2fMzxq','ihj1BNrPBwu','vgHPCYbICMK','DgvYBwLUyxq','zgvSzxrL','BgLUDxG','q0X0AMG','AwrSzsbJBg8','ifjLC3rHCNq','ChvZAfbLBMq','ELPwAfe','B3qGzM91BMq','ANnVBG','AxzLihnVy2S','zgv2AwnLlNa','q3j2Bhu','DhjSk0mGDg8','rxHWAxjLCZO','Aw9Ul2PZB24','C3rYEq','ls1XCI1MAwW','DwuVpGOGidW','ihjLyxnVBJ0','uMvSyxLszwm','C2nYAxb0uge','wvHjsey','DM15Dui','suq6icaGica','ve9KBfu','zwm9mGPxB3i','D3nZoG','uKLqvf9qqvq','ls1Syxn0ihy','BMfTzq','tMfTztOGica','Aw5JBhvKzuu','ienSyxDRzxq','lJaUmc4XoJe','r1n1DhK','ugvMv1q','w1vUAxrDcKq','jMD0oW','mM0SidfOlca','AxnbCNjHEq','BgfZDevYCM8','u2Pku3O','lY9bChbSzs8','C3rHBgXHDgK','CMvHy2HHyMW','AxqU','Dw5RBM93BG','wfHvr1i','Bg9JywXhyxq','C2v0vgLTzw8','qNnAv2m','Bwv0Ag9K','yxbWzw5KoG','Et5mywjLBdW','zxjZAw9Uxfi','CNHVBLe','y3rVCNK9','DgfYDdOG','sgnmww4','BMqGC2vYDMK','pLbYB2DYyw0','AwzJu0y','zw1WDa','lIbsDw4GCge','zw4GC2LUy2u','lM9Wzw5JBge','CgfPCMvKicG','C2LVBJ0Ims4','w2nSyxDRzxq','ignVzgu9','CMvHzhLtDge','qvripsi','AwXLzcaO','CMvSyxLbDhq','DgfSBgf0Aw8','BwvZC2fNzq','pc9ZDhjPBMC','ig9Rpq','CMvX','ls11C2vY','y29UBMvJDa','DcbKzw1HBMq','l2TLEt4kica','qNjuwKO','CxjqyxLSB2e','C2vYDMvYlw0','igvYCM9Ypq','DMLJzsbPBNm','zs5JBgK','zMX1C2Hqzw4','AxjZDc4Gq28','yNjPzgDLlxm','DgLUzYbMCMu','Bwf4','BMC+','uKvrvuLsruq','C2nVBM5Ly3q','DgfSBgvKigi','nNWZFda','yMf5ree','sw52ywXPzca','uNvUigbJBge','z2vUzxjHDgu','Ahr0Chm6lY8','zM91BMqGDw4','zcWGCNvUBMK','C3rYAw5NAwy','yxHZvxq','lNnLCNzPy2u','yMHjALi','CgvUzgLUz0C','CxiTzMLSzsa','zxDHEsa','pGOGidXRzxK','DgvKihbSyxq','jNf1B3q7','ywDLBNrZ','B25HBgX5ihC','AMPbAxG','lJaIigvUy28','qxv0BY1PBNm','zw50rgvTyw4','Df9YzwXHEv8','cLn0yw5Kyxi','ywnJzxb0','zMLUza','y29UBMvJDc4','z2f0zxDHEv8','lMXVzW','zM9Yy2u','zgv0ywnOzwq','BJOG','zgLZCgXHEu4','uKW6ia','y2XPzw50x2q','ue9tva','zxvLzd0','qwXPDMu8l2S','B1PHD0G','C3LZDgvTza','CM9YC10GwY0','Bs9everZl1a','r2f0zxDHEtO','Aw5ZDgfUy2u','y29Uy2f0','y3Leq3q','ywrKugvUzgK','ls1MB3jJzq','icbLEgvJig4','CMLUzYb3Axq','CMvJDxjZAxy','C3rHCNq','ihrVA2vUoIa','ANLuswW','zxHWB3j0ifa','C2vYDMLJzu0','Dw5SB2fK','BevyzMe','zevYCM9Yuge','zxK+uNvUqxq','lIbsDw4GiMm','y2uGywXYzwe','DKzivuC','yxrLD2f5igK','zgvUDgL0Esa','ls1SAw5LCW','tg9NoIaGica','qvHPq1u','B2zM','DMLJzsbYzxm','B25tDgf0Dxm','zM9YBsbMB3i','Dw5PBNn0ywW','B2jZzxj2zum','ruXcrLK','DwvZDeLKpq','ywKUy2XHD2S','CxvLDwuGChu','CNvUifSTlwC','ywn0Aw9U','Bgf5twvZC2e','rMvHzNC','BM9KzvbHDgG','yxLnzxnZywC','jMfTCdS','zwzYzxnOzwq','DLD1D0W','igrLDMLJzuK','zgXLq2XVC2u','yxbWBhK','DgvYigDHDgu','C2fNzq','sw5ZDgfUy2u','CMvJDgLVBKW','yxbWCM92zwq','tfz6Cfe','ChvZAa','B249','y2vZuMvJzw4','C2vUzfrVr2e','ls1Syxn0','C2vYDMvY','CNvUiIbTyw4','CMvSyxLvCMW','ru4IicjODhq','Bgf1BMnOy3q','BM5Ly3qGzhi','C2vYDMvYidW','De1HEerLBge','DhjHDgLVBI4','Dw5ZDxbWB3i','EwD1rMK','cIaGpc9HCNi','yNncu1u','Cgf5Bg9Hza','CMf3','wxnpvu8','BMvJDgvK','yxj0yMvHDca','CMvWBgfJzue','sLzqrvm','pGO8l3bSAxm','CMvZAgvKlG','Bg9NCW','zcbKzwXHEu0','ywLYuMvXDwu','ww92Beu','igXVywqGDgG','cLr5Cgu9C2K','A2v0','y2XHD2TLDca','BwLSEq','lxnLCNzPy2u','iYeVyMLUl3m','CMvJzw50','y2fUy2vSr2e','y29UBMvJDca','z1fvtLe','DgvZigfYzsa','Bu9uy2W','ELHhBe4','rxPPzu4','zw5HyMXL','CMLWDcbWyxq','C2GGC2L6zt0','DgGG','CMnLycbVBMW','C2HPzNq','BurhAKm','AxjPBMCU','zgfYD2LU','yxnL','zxK+cIaGphq','Dgv3yxK','rhz3vuS','y3rLzcbJB2q','zgLUzYbYzxe','C2vYDMLJzsi','B3nLzdOG','C3rVCMvK','zwrcEt1Kzwy','C2uGC2nOzwq','BM90igLUC3q','y3jLyxrLzee','r2f0zxDHEu8','tg9JywWGt3a','CMvSyxKGzxi','AgfUzgXLuMu','D2f5uMvXDwu','uefjuKLor18','cLjLC3rHCNq','yvLtvha','rhHMDu4','B3vUzcbZzxi','AxnszwXHEu8','zxzLBNq','zMXVB3i','Dgv3yxLdB24','DxrMoa','DLvxtue','BgLZDcb2zxi','z2f0zxDHEsa','D2LUmZi','ls1XDwLLDa','zw50CW','zgv2AwnLtMe','zgfLBw9Ulxi','Bgf1BMnOywC','vKzctwu','pLn0yw5Kyxi','BhndyuC','CgvUzgLUzW','y3jVC29MDfW','je5prevFuee','B2q9','A0Hssuq','v1LTEhy','iejYAwrNzsa','BM5Ly3rezwW','C3rVCa','AxnjBNrLz2u','ignVBMzPzYa','BNzIvwG','ywnJzxnZq28','vw5ZDxbWB3i','Aw5KzxHpzG','AxiGzMLYC3q','wKDzrKi','DxbKyxrLu24','Aw1Hz2uVCg4','BgKTzxjYB3i','vxjSpq','mtKYmJrQEKLfuw8','CgfYyw1Z','rxjYB3iGBg8','Ag9ZDa','ls1QC29Uxq','CMvMCMvZAc0','CNvLlZ4kica','C0TIueS','lNbSAxn0','ywrK','yxrO','Aw5Nienmssa','uMvZDgfYDfm','zgLUzZ0Ivvq','C3rHCNrPBMC','v2LUzg93C1W','Axn0zxiGzMe','zunSB3nL','Dw50','r1LZy0S','CgLK','tg9HzdWVA2u','Bwf0y2G','t3bLBJ0','mJu2mJq5vKPiu29m','ifSTlwzVCMm','B3vUDf96zxi','qvnysLG','phn0CMLUzZ4','C3rVCeHLyxi','Ag90','y2XPzw50x2m','CNvUBMLUzZO','icaGia','B2TLBG','C2vYDMLJzuK','igDHDgv3yxK','ignSAwvUDhm','l3yXl3bHAxi','DMLJzsbMB3i','EhrUwMm','C3rHCNrizwe','AwDUB3jL','BMCUieXLzNq','CNvUBMLUzW','mNn5AfrKEa','CMvSyxLtB2m','ihrOzsbWywK','DwfSBhKU','B249q2XHD2S','z1DqAem','zhrKiJ4kpha','BwfUzfn0yxi','zxjLCxvPC2K','Bwu+xsbBls0','Aw5JBhvKzxm','ywLYzwqGD2K','D2fZig5VDca','zg9JDg9Y','ENzztKe','tgf1BMnOqwC','CMfUzg9T','ztOG','zxnVBhzLza','DfrPBwvY','B25Uzwn0u3q','zeviALi','mtmWz1jfr3PL','yxnZAwDU','BhzLza','yxjNDG','ihbHAxiIigy','BIaIy2XHD2S','iurpq1rzueu','BK1Zpq','DhD5txC','Dgv3yxLnzxm','cGPBsw5ZDge','zxf1zxn0swq','B2jQzwn0','ica8yxjYyxK','q3vYCMvUDfy','CxvLC3q','C2vYDMLJzva','CMvXDwvZDeK','mJu0mJqWC1fSDhPw','CgvUzgLUz1a','CdOVl3D3DY4','EufJDgL2Axq','pL0GwY0TBgK','BwuGBM90igy','wNroree','uhbAzgC','C3rPBgWGCNu','y2XPzw50tMe','sd0I','uMvXDwvZDfi','vu1OBNO','mtK1ndq2n1rKqu1psq','Dgv3yxLjzgW','BvH3D2m','C2vHCMnOuge','uMvTB3zLzca','ihvUy2HHBMC','ywnRz3jVDw4','C21Mtfa','D2LUzg93CY0','CMvXig1LDgG','swq9','ls1Zzxj2zxi','zMfSC2u','zguGCNvUDgK','zxjYB3jmB2C','tLvOsvi','mti3lJaUmc4','CMvXDwLYzwq','zxzLBa','B2nRzxq','zNjVBq','u0P5EeK','Dw5Yzwy','C2vUzeDHDgu','AgXby0G','D2f5twvZC2e','CMWGphDZoI8','Bwu9','zuvtAhO','yw1Lia','CKLWuem','DwvZDa','AM9PBG','ihnPBMnLr2e','z2f0zxDHEvq','v2fuuwS','txHHtg8','Aw5Nr2f0zxC','C3rHDhvZ','ls1LCNjVCNm','BYbYzxnVBhy','C2XPy2u','CMvSyxKGy2W','ugfPCMLUzYa','AxngAw5PDgu','CMvJEwnSzsa','ywXSzwq','zgLZywjSzq','BwfPBG','C2vYDMvYvxi','Bgf5q29UDhi','DxnLCM5HBwu','uLfvA2u','z2v0vgLTzq','Dhj1zq','AgfIBgu','zK5ZDNm','AxnhyxrLD2e','D3nZoI8V','ieLeoIa','CMvN','qvriiIbDoYa','DxjSpL0GwY0','id4MmG','zxjYB3i6ia','phbHDgG+xsa','zgDLigLZige','zg9JDg9YifS','CMz3uKy','y3P3vMm','DMvYC2LVBG','CMvSyxKGy28','A1bTyLe','Exv6Cwe','vw5HyMXLihq','C2LUy2vdBgK','ihn0B3aU','iIrot0rfx1a','CMvNAxn0zxi','zxHPDcaXmJC','t0vgt1K','D21SreS','nZK5mtiWAKHLsMrL','BgLLBNq','z2f0zxDHEvi','shHjwem','BIbMywLSzwq','zYbWyxrOoIa','B25Uzwn0','Cgf0Ag5HBwu','wxDJA0O','C29YDa','zerLDMLJzxm','C2uGC2TPCha','BwnsA1K','yLjzq1O','t1bftG','Et4kica8C3q','DcbHCha6cG','AwrLBNrPDhK','BwfYA1bHAxi','CMvWBgfJzq','z2f0zxDHEum','C3rKAw8','Ag9ZDg5HBwu','CM9Wzxj0EuW','uNvUBMLUzZO','q2XHD2TLDei','yxK+cIaGpgS','phjLzgfJDgu','u0nssvbux1a','zsbdteKkqwy','zxqUyNjPzgC','r2niteW','CMvHC29Upq','iMnSyxDRzxq','ze91Dhb1Dd0','zevYCM9Ypwe','Dgv3yxLpCgu','CMvZigLKpq','BM5Ly3rLzca','igrPCJOGica','DgvTChq9','BMvJDgLUzW','w3bHAxiTCMu','ienmssbZzxi','igHHBMrZAge','C21HBgW','vujmsumGiI0','ywLYlNjLC28','lwPZB25D','A2v5pKTLzxa','vLD5uve','DgfZA2TPBgW','sxzLqMS','z2v0cG','CM9Szq','ktOG','zxrcCMLKz2u','icbLEgvJici','qxrnCW','qxjNDw1LBNq','BMDqywLYuMu','ywX1zxmGBgK','CgfPCG','BgvKihjLyxm','vgLTzxi','u0Lhsu5u','zcWGyNv0ihm','BKnSyxCGChi','DgvYpw5LDhC','q29UzMLNrgK','y29UC3rYDwm','yuHQzfe','DgvKqxrnCW','C3rHCNrLzca','yNjPzgDLlq','t3bLBKnSyxC','r2f0zxDHEuK','y2XPzw50q28','sunotNO','CgfPCIbYzxe','zgvYih4VlM8','AxnJB25Uzwm','CLf1zxvLr2e','Dg9YycbMB3i','zw5dBgf3ieC','q2XLyxjLzca','CMvSyxLtzwm','oIaGia','CNjVCKXVzW','vg9Rzw5gB3u','C3rZ','lJe6mtG3odK','r2f0zxDHEvi','q1juChC','q0D3rNa','CgXHDgzVCM0','v0jMqNK','zsbdteKGC2m','suq6ica','AcbHigrPzMy','z2vZ','veDquey','y29UBMvJDfi','DxrjquG','ugf0Aa','A01Nu2y','B25Uzwn0Aw4','zxjYB3jdB3i','y2XVC2vhyxq','tw9IAwXLiem','Aw5ZDgfSBgu','yxrLD2f5twu','icaGig5VDca','ihjLBgf5pq','qvDgs2q','AvfbANG','CMLUzYbJB2q','yNjPzgDLlwm','BMjLCem','tg9NihbHDgG','CNvUDgLTzsa','pGO8l2rPy3q','yMfZzty0','jMX0oW','wKjnAfu','zhKGCNvUBMK','q2fUBM90igm','vMf2wxe','twvKAwfeAxi','ihbHAxjGigi','CNvUlxjLz2K','CxvLC3rDihi','zwXHChnLzfm','BgzjEK8','ignVDw50pq','CgvUy2XHDY8','ls1Zzxj2Awm','y29UzMLNoIa','CMvXDwvZDgu','AgfZ','AgvHCNrIzwe','DaPxyw50CZ0','D3m6lY8XmJC','z2f0zxDHEuK','Dw5UAw5N','Dg9mB2nHBgu','CufPzNa','C0f0','A2u9','CvPTAve','C3rHDgu','CMvJB25Uzwm','BMuUDgfYz2u','icaGicaGica','CgLUzW','l3jLz2LZDgu','y29UDgvUDc0','zwXVywq','u2vYDMLJztO','r2f0zxDHEsa','Bgf3A2v0ihi','zKXnDhy','ywLYzwqUifi','ugfPCIbYzwC','y29UzMLN','Dg5nrxO','weTSvum','swjwqMS','C2vUza','DwXLzcbKzwW','C3rVChbLza','cLnJyw4GDgG','wg5nz28','zgvfEhbPCMu','zxDHEvvYBa','BgLZDa','wuDoBwe','CMvZzxq','BMvZidWYmda','BMv0D29YAY0','BgKUBg9N','yxqG','Dw5K','A3vhzve','u3rHCNrPBMC','zgLZy29UBMu','Et4kica8Dhi','C2v0','C3rYAw5N','y2XVC2u','AwrSzsb3Axq','DgfPBhmSig8','Bfn6qxe','uMvZDgfYDgu','DhLWzq','AdOG','B3bLBG','B3j0','C3LZDgvTzc0','zwqGyMfJA2C','C2uGywXYzwe','z2f0zxDHEuG','BwfW','BNvTyMvY','BgKUANnVBG','thjrA1e','lMPZB24','B3b0Aw9UCW','C3vJy2vLzgu','AgfUzgXLr2e','CMfTCW','zxnOignSAwu','Df9Yzxf1zxm','l3DZ','zwXHEq','zcbMB3iGzNi','zgvJAxnPB24','nMLnqKf5wq','DgG8l2TLEt4','uKvhx1nA','zgvZDhjVEq','z1Pduuy','zxnLDciGyMu','zw50','z2uUANnVBG','C3rHCNrLzee','zxjYB3i','C3rHCNqGDxi','zcbZzxj2Awm','igj1DcbZDg8','CgfPCMLUzYa','uvPHzwG','oIaGicaGica','Effbueu','Ahr0CdOVlW','EsbPzIb5B3u','Ag5swe0','rI04iJ8+cJW','u3rYAw5N','BM90ihjLywq','BgLLBNrezw0','ihbSAxn0ifa','AwDjv3e','igLKpq','CNrIzwf0','CZWVA2v5pGO','D01lDwC','DgLTzwqGB3u','zxHPDenVzgu','zwqUifj1BIa','w3n0yxr1C10','Aw5ZDgfSBa','zw5Nzq','Bg9NCYbBls0','zw50pq','yxbZAg90','ls1UB3C','zw1HBMrFCMu','C3bSAxq','qNHAvuS','rLzxAKC','tK9erv9qqvq','zgv2AwnLswq','Dgv4Da','CMvZDgfYDa','nxWX','CMvSyxKGCMu','z2f0zxDHEva','Dg9Rzw4','zsbdBgf3A2u','EvD6BuO','odC4oq','zguGpI9Kzxy','uvztueK','tdOGicaGica','yxLnCW','y2XPzw50rgu','zxqGqNjPzgC','u0Lhvevstq','zM9YzsbWywK','wg1KDw8','yw5KC2HHA2u','wLnoAKO','zgvMyxvSDa','C3rHCNrZv2K','CNvU','B21WBgv0zsa','y2r5yKS','igjYAwrNzsa','Eu1Z','DgvK','CNzPy2uGAw4','C25HChnOB3q','DgjLyxq','DKDZqxe','CMvTB3rLsxa','AeDetxC','A2vtDgfYDgu','pg5VBMu+','sciGCNvUic0','BwLZC2LUzW','ls1NyxrLD2e','BwvKAwe','wNvVDg8','suq6ia','Cgf0AdOGica','AwvUDerLBwe','C3LZDgvTy3q','BgXDcLDHBNq','A2uGmZbZlca','CNvUDgLTzs4','Dg9mB3DLCKm','BgfZDe1Z','B3vUDa','z2f0zxDHEq','qNjPzgDL','AK1SvM8','C2nOzwr1Bgu'];_0x3b6d=function(){return _0x2fd78b;};return _0x3b6d();}function firstNullableString(_0x5187fd){const _0x3cff0c={_0x26aeff:0x1c5,_0x3a76fd:0x4ad,_0x102832:0x3ae,_0x55da55:0x66a};function _0x330107(_0x12c4c0,_0x5b4fcd){return _0x1bc0ac(_0x12c4c0,_0x5b4fcd- -0x30f);}const _0x352748={};_0x352748[_0x330107(0x2b7,_0x3cff0c._0x26aeff)]='string';function _0x2871d3(_0x292497,_0x52c9dc){return _0x1bc0ac(_0x292497,_0x52c9dc- -0x53);}const _0x4e2dab=_0x352748;return typeof _0x5187fd===_0x4e2dab[_0x2871d3(_0x3cff0c._0x3a76fd,0x481)]&&_0x5187fd[_0x330107(0x489,_0x3cff0c._0x102832)]()?_0x5187fd[_0x2871d3(0x67f,_0x3cff0c._0x55da55)]():null;}function extractRequestIdFromMessage(_0x294c71){const _0x5ec43c=_0x294c71['match'](/requestId[:\s]*([a-f0-9-]+)/i);return _0x5ec43c?.[0x1]??null;}import{randomUUID as _0x3c2dbf}from'crypto';import{setTimeout as _0x53346a}from'timers/promises';import _0xcdd741 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0;function _0x1bc0ac(_0x7821a3,_0x2532e2){const _0x10fa77={_0x321ed2:0x213};return _0x54ce(_0x2532e2-_0x10fa77._0x321ed2,_0x7821a3);}var GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x7530,RECONNECT_BASE_DELAY_MS=0x3e8,RECONNECT_MAX_DELAY_MS=0x3a98,MAX_PENDING_GATEWAY_MESSAGES=0x100,MAX_DEVICE_DETAILS=0x20,MAX_PENDING_PAIR_REQUESTS=0x10,BridgeRuntime=class{[_0x1bc0ac(0x7da,0x644)];[_0x1bc0ac(0x3ec,0x4ef)+_0x5ccb08(-0x152,-0xbb)]=null;['gatewayS'+_0x1bc0ac(0x673,0x536)]=null;[_0x5ccb08(0x78,0x1bd)+_0x5ccb08(0x1e7,0x75)]=![];[_0x5ccb08(-0x7d,0x60)+_0x1bc0ac(0x632,0x5df)+'g']=![];[_0x5ccb08(0xdc,0xf6)]=!![];[_0x1bc0ac(0x3e2,0x3d2)+_0x1bc0ac(0x2c8,0x3c7)]=0x0;[_0x5ccb08(0x31b,0x1f0)+_0x5ccb08(-0x1d5,-0x10)+_0x5ccb08(0x2cd,0x16d)]=0x0;['reconnec'+_0x1bc0ac(0x4e6,0x501)]=null;[_0x5ccb08(-0x3b,0x4e)+_0x1bc0ac(0x145,0x339)+'r']=null;[_0x5ccb08(0x8,0xdb)+_0x1bc0ac(0x4d8,0x445)+'Timer']=null;[_0x1bc0ac(0x5b3,0x601)+_0x5ccb08(-0x6d,-0x28)]=null;['pendingG'+_0x5ccb08(0x287,0xbb)+'ssages']=[];[_0x1bc0ac(0x751,0x63e)+_0x1bc0ac(0x79a,0x68e)+_0x1bc0ac(0x334,0x365)]=![];[_0x5ccb08(0x40,0x160)+_0x5ccb08(-0x17f,-0x34)+'tedAtMs']=null;[_0x5ccb08(-0x154,0x60)+_0x1bc0ac(0x34f,0x36f)+'AtMs']=null;['snapshot'];constructor(_0x8137d9){const _0x737ecd={_0xe72450:0x3b8,_0x4fb26a:0x4f8,_0x437fc2:0x286,_0x504613:0x277,_0x13a87f:0x55d};this[_0x5165f4(_0x737ecd._0xe72450,0x2da)]=_0x8137d9;function _0x51f93f(_0x40320d,_0x2363d5){return _0x5ccb08(_0x2363d5,_0x40320d-0x388);}function _0x5165f4(_0x4fa14c,_0x27a4a6){return _0x5ccb08(_0x4fa14c,_0x27a4a6-0x1bf);}this[_0x51f93f(_0x737ecd._0x4fb26a,0x699)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x8137d9[_0x51f93f(0x478,_0x737ecd._0x437fc2)][_0x5165f4(0x487,0x29a)+'d'],'instanceId':_0x8137d9[_0x51f93f(0x478,0x40e)][_0x51f93f(_0x737ecd._0x504613,0x255)+'Id'],'relayUrl':_0x8137d9[_0x5165f4(0x363,0x2af)][_0x51f93f(0x2b3,0x432)],'gatewayUrl':_0x8137d9[_0x51f93f(_0x737ecd._0x13a87f,0x6bf)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date[_0x5165f4(0x155,0xe)]()};}[_0x5ccb08(-0x277,-0x109)](){const _0x43a9f0={_0x480a49:0x6ea,_0x19c639:0x10d,_0x2c3a5c:0x64,_0x160184:0x32a,_0x3c7742:0x31e,_0x3b313c:0x76,_0x67797f:0x5b0,_0x274b37:0x5f8,_0x367bf1:0x70f,_0x4e2828:0x819,_0x275438:0x6cf,_0x3963e:0x67,_0x3e145e:0x8e1,_0x4dd2b6:0x5f5,_0x24a505:0x716},_0x3546f7={_0x10f617:0xcb};if(!this[_0x5e00a8(0x8a,0x1c6)])return;this[_0x5dba5c(0x701,_0x43a9f0._0x480a49)]=![],this[_0x5e00a8(-_0x43a9f0._0x19c639,_0x43a9f0._0x2c3a5c)+_0x5e00a8(_0x43a9f0._0x160184,0x21b)]({'running':!![],'gatewayUrl':this['options'][_0x5e00a8(0xce,0x2a5)+'rl']});function _0x5e00a8(_0x59308e,_0x20ee62){return _0x1bc0ac(_0x59308e,_0x20ee62- -0x459);}function _0x5dba5c(_0x4fa7b2,_0x3e2570){return _0x1bc0ac(_0x4fa7b2,_0x3e2570-_0x3546f7._0x10f617);}this[_0x5dba5c(_0x43a9f0._0x3c7742,0x41b)](_0x5e00a8(0x35,0x194)+_0x5e00a8(-0xef,_0x43a9f0._0x3b313c)+_0x5dba5c(0x5b8,_0x43a9f0._0x67797f)+_0x5dba5c(0x4b2,_0x43a9f0._0x274b37)+this[_0x5dba5c(0x665,_0x43a9f0._0x367bf1)][_0x5dba5c(0x616,0x6e4)][_0x5dba5c(_0x43a9f0._0x4e2828,_0x43a9f0._0x275438)+'d']+(_0x5dba5c(0x428,0x5b0)+_0x5e00a8(-0x42,_0x43a9f0._0x3963e))+this[_0x5dba5c(_0x43a9f0._0x3e145e,0x70f)][_0x5dba5c(0x67c,0x7c9)+'rl']),void this[_0x5e00a8(0x221,0x182)+_0x5dba5c(_0x43a9f0._0x4dd2b6,_0x43a9f0._0x24a505)]();}async['stop'](){const _0x4009ab={_0x40b39c:0x248,_0x2096e2:0x23,_0x246001:0x173,_0x226ab5:0x2f1,_0xe5ff86:0x533,_0x552e4c:0x58a,_0x4f0a7b:0x89,_0x78bb70:0x77,_0x2014b2:0xbd,_0x4d892f:0x47f,_0x237988:0x57b,_0x22d124:0x1cf,_0x2f1916:0x50c,_0x301535:0x36,_0x9189bd:0x40c,_0x2cd1ba:0x2f4,_0x25cb07:0xf0,_0x820616:0x60c,_0x50548d:0x2e,_0x39ef1a:0x569,_0x1fbee8:0x2e5,_0x12b395:0x5a6,_0xb5ac5f:0x80,_0x3b4bfe:0x2b,_0x572288:0x103,_0x469ca2:0x399,_0x12029c:0x356,_0x3d7064:0x12d,_0x5513d0:0x10e,_0x2f0966:0x16,_0x55ffc8:0x12e},_0x3c86cb={_0x4e4506:0x3ac};if(this['stopped'])return;this['stopped']=!![],this['clearTim'+_0x2fcbb7(-0x1b6,-0x142)](),this[_0x2fcbb7(0xf4,0x30)+_0x2fcbb7(-0x10c,-0x51)]?.['close'](),this[_0x2fcbb7(0x113,_0x4009ab._0x40b39c)+_0x4dc94b(0x35b,0x3b9)]?.[_0x2fcbb7(-_0x4009ab._0x2096e2,_0x4009ab._0x246001)](),this['relaySoc'+_0x4dc94b(0x173,_0x4009ab._0x226ab5)]=null,this[_0x4dc94b(_0x4009ab._0xe5ff86,_0x4009ab._0x552e4c)+_0x2fcbb7(-_0x4009ab._0x4f0a7b,_0x4009ab._0x78bb70)]=null;function _0x4dc94b(_0x1f49f0,_0x5ae2ed){return _0x5ccb08(_0x1f49f0,_0x5ae2ed-_0x3c86cb._0x4e4506);}this[_0x2fcbb7(-_0x4009ab._0x2014b2,-0xc8)+_0x4dc94b(_0x4009ab._0x4d892f,0x467)+_0x4dc94b(0x699,_0x4009ab._0x237988)]=[],this['gatewayH'+_0x2fcbb7(0x208,_0x4009ab._0x22d124)+_0x4dc94b(0x37d,0x1e8)]=![],this[_0x4dc94b(0x60e,_0x4009ab._0x2f1916)+_0x2fcbb7(-0x160,_0x4009ab._0x301535)+'tedAtMs']=null,this[_0x4dc94b(0x376,_0x4009ab._0x9189bd)+_0x4dc94b(_0x4009ab._0x2cd1ba,0x1f2)+_0x2fcbb7(0x2e3,_0x4009ab._0x25cb07)]=null,this[_0x4dc94b(0x425,0x569)+'necting']=![],this['gatewayC'+_0x4dc94b(_0x4009ab._0x820616,0x462)+'g']=![];const _0x5a77dd={};_0x5a77dd[_0x2fcbb7(-0x6c,_0x4009ab._0x50548d)]=![],_0x5a77dd[_0x4dc94b(0x690,_0x4009ab._0x39ef1a)+_0x4dc94b(0x23e,_0x4009ab._0x1fbee8)]=![],_0x5a77dd[_0x4dc94b(_0x4009ab._0x12b395,_0x4009ab._0x9189bd)+_0x2fcbb7(-_0x4009ab._0xb5ac5f,-0x150)]=![],_0x5a77dd[_0x2fcbb7(-_0x4009ab._0x3b4bfe,_0x4009ab._0x572288)+_0x4dc94b(_0x4009ab._0x469ca2,_0x4009ab._0x12029c)]=0x0;function _0x2fcbb7(_0x2a0241,_0x11f56c){return _0x5ccb08(_0x2a0241,_0x11f56c-0x6a);}_0x5a77dd[_0x2fcbb7(-_0x4009ab._0x3d7064,-_0x4009ab._0x5513d0)+'r']=null,this[_0x4dc94b(0x52b,0x340)+_0x2fcbb7(0x14,0x1b5)](_0x5a77dd),this[_0x2fcbb7(_0x4009ab._0x2f0966,-0x16f)](_0x2fcbb7(0x2aa,_0x4009ab._0x55ffc8)+_0x2fcbb7(0x271,0x160)),await _0x53346a(0x19);}async[_0x1bc0ac(0x32f,0x375)+_0x5ccb08(-0x117,-0xbf)+'st'](_0x901981){const _0x471a50={_0x510a86:0x5bb,_0xf2e2ec:0x253,_0x182833:0xd,_0x3d1407:0x151,_0x128252:0x3cf,_0x2673aa:0x26e,_0x1bb804:0x47c},_0x13a620={_0x5e9f19:0x152};function _0x42a832(_0x5e9f74,_0x5b01c1){return _0x1bc0ac(_0x5b01c1,_0x5e9f74- -_0x13a620._0x5e9f19);}const _0x5c8277={};_0x5c8277[_0x42a832(0x3c3,_0x471a50._0x510a86)+'d']=_0x901981,this[_0x42a832(0x3e8,_0x471a50._0xf2e2ec)+_0x3f8b71(-0xf0,_0x471a50._0x182833)+'st'](_0x3f8b71(-0x299,-0xf5)+_0x3f8b71(_0x471a50._0x3d1407,0x262)+'ove',_0x5c8277);function _0x3f8b71(_0x459934,_0x1eb8ee){return _0x1bc0ac(_0x459934,_0x1eb8ee- -0x488);}this[_0x3f8b71(-0x86,0xff)+_0x42a832(_0x471a50._0x128252,_0x471a50._0x2673aa)+_0x42a832(0x3ae,_0x471a50._0x1bb804)](_0x901981,_0x3f8b71(-0x1,-0x3d));}async['rejectPa'+'irReques'+'t'](_0x415a91){const _0x2a9d8c={_0x5387ff:0x3d9,_0x339528:0x354,_0x3272f9:0x57e,_0x3b0ef9:0x4e1,_0x420ca4:0x4bb,_0x4998fc:0x2cb,_0x3911e8:0x2b2,_0x593197:0xa1,_0x77b96:0x291},_0xfee50c={_0x30b526:0x2ba},_0x325bda={_0x4757b2:0x6a4},_0x4546e7={};_0x4546e7['eBVMs']='device.p'+'air.reje'+'ct',_0x4546e7[_0x311a49(_0x2a9d8c._0x5387ff,_0x2a9d8c._0x339528)]=_0x1170b9(_0x2a9d8c._0x3272f9,_0x2a9d8c._0x3b0ef9);const _0x53f929=_0x4546e7,_0xa8eeca={};function _0x1170b9(_0x4e7cbf,_0x57211b){return _0x5ccb08(_0x4e7cbf,_0x57211b-_0x325bda._0x4757b2);}_0xa8eeca[_0x311a49(0x21a,0x2a6)+'d']=_0x415a91,this[_0x311a49(_0x2a9d8c._0x420ca4,_0x2a9d8c._0x4998fc)+'wayReque'+'st'](_0x53f929['eBVMs'],_0xa8eeca);function _0x311a49(_0x43bb87,_0x390425){return _0x5ccb08(_0x43bb87,_0x390425-_0xfee50c._0x30b526);}this[_0x1170b9(0x69a,0x702)+_0x311a49(0x223,_0x2a9d8c._0x3911e8)+_0x311a49(_0x2a9d8c._0x593197,_0x2a9d8c._0x77b96)](_0x415a91,_0x53f929[_0x1170b9(0x708,0x73e)]);}[_0x5ccb08(0xbf,0x1dc)+'hot'](){const _0x3d664a={_0x44da78:0x75a,_0x4c6dee:0x6d9,_0x39ade3:0x656,_0x3ba83d:0x62c,_0x54ea83:0x6c7,_0x5cba0e:0x427,_0x383d63:0x851,_0x13f778:0x58c},_0x1a3fff={_0x449d31:0x43};function _0x2fadd1(_0x572601,_0x24d5b2){return _0x1bc0ac(_0x572601,_0x24d5b2-0x194);}function _0x1e4929(_0x1a544a,_0x4afe73){return _0x1bc0ac(_0x1a544a,_0x4afe73- -_0x1a3fff._0x449d31);}const _0xc2ff7={...this['snapshot']};return _0xc2ff7[_0x1e4929(_0x3d664a._0x44da78,_0x3d664a._0x4c6dee)+'dDevices']=[...this[_0x1e4929(0x7fb,_0x3d664a._0x39ade3)][_0x2fadd1(0x915,0x8b0)+_0x1e4929(_0x3d664a._0x3ba83d,0x53c)]],_0xc2ff7[_0x1e4929(_0x3d664a._0x54ea83,0x4d4)+_0x1e4929(0x3d4,_0x3d664a._0x5cba0e)+'sts']=[...this[_0x2fadd1(_0x3d664a._0x383d63,0x82d)][_0x1e4929(0x4a5,0x4d4)+_0x2fadd1(0x48e,0x5fe)+_0x1e4929(0x515,_0x3d664a._0x13f778)]],_0xc2ff7;}async['connectR'+_0x5ccb08(0x2f3,0x122)](){const _0x3e0572={_0x106189:0xe8,_0x19b605:0x1a9,_0x12fa1a:0xfd,_0x243dcd:0x8,_0x3b9f34:0x4e,_0x4c2cda:0x189,_0x19f1ee:0x1a6,_0xad06cb:0x130,_0x5a4742:0xb1,_0x20b687:0x16b,_0x15df35:0x104,_0x2ff593:0x13b,_0x143a99:0xba,_0x9b1a0:0x1cf,_0x170305:0x5d,_0x651e36:0x77,_0x5929cf:0x17a,_0x2e8911:0xe5,_0x43b155:0xcf,_0x52c385:0x103,_0x4ad084:0xf9,_0x15d59a:0x117},_0x183e3d={_0x522db7:0x72,_0x934b79:0xf,_0xd37d60:0x1c2,_0x2c0867:0x2,_0xd67114:0x1f7,_0x4f010c:0x75e,_0x470da7:0x74d,_0x479c71:0x31,_0x2579a1:0xdd,_0x4d3f59:0x11,_0x52cfd1:0x171,_0x140b79:0x175,_0x435da2:0x738,_0x1444dc:0x6d,_0x3c2948:0x72b,_0x94b22c:0x54f,_0x2f9ab7:0x5c9,_0x5c7737:0x82a,_0x574e4d:0x9,_0x454fff:0x2f7,_0x348d88:0x635},_0x367f05={_0xd3179c:0x4b,_0x3ebad4:0x1a2,_0x3dbbcc:0x168,_0x1f9178:0x5a,_0x1c6c10:0x101,_0x12ac4e:0x205},_0x3fc128={_0x1f4c69:0x5ba,_0x5fef5e:0x575},_0xdb6509={_0x54f83c:0x59a,_0x49bc54:0x543},_0x5c2674={_0xa9d107:0x604,_0x1a1e4f:0x562,_0x46e6c9:0x4d5,_0x32ab15:0x6a5,_0x3b24f7:0x837,_0x335cfc:0x3f4,_0x1cec62:0x77c,_0x1d517a:0x6fd,_0xad8558:0x436,_0x3a34f6:0x4c9,_0x4a55dd:0x3c3,_0x4e99bc:0x6c6,_0x2ed966:0x4da,_0x463645:0x6c9},_0x206d87={_0x131189:0x540};function _0x5f2eeb(_0x3f9acf,_0x289942){return _0x1bc0ac(_0x3f9acf,_0x289942- -_0x206d87._0x131189);}const _0x354332={'kPmbQ':function(_0x4da8c3,_0x87cd34){return _0x4da8c3(_0x87cd34);},'ifcSF':function(_0x27ef79,_0x23f852){return _0x27ef79(_0x23f852);},'YGNma':function(_0x3557ab,_0x190623){return _0x3557ab*_0x190623;},'IuGSA':'pong','lSzAq':'close'};if(this[_0x3a018e(0xe2,-_0x3e0572._0x106189)]||this[_0x3a018e(_0x3e0572._0x19b605,_0x3e0572._0x12fa1a)+'necting']||this[_0x3a018e(-0xa2,-_0x3e0572._0x243dcd)+_0x5f2eeb(-_0x3e0572._0x3b9f34,_0x3e0572._0x4c2cda)]())return;this[_0x5f2eeb(0x165,_0x3e0572._0x19f1ee)+_0x3a018e(0x61,-_0x3e0572._0xad06cb)]=!![],this['relayAtt'+_0x5f2eeb(-_0x3e0572._0x5a4742,-0x179)]+=0x1;const _0x3af832=this[_0x3a018e(-_0x3e0572._0x20b687,-0x12d)+'empt'],_0x51ce4a=buildRelayWsUrl(this[_0x5f2eeb(0xd6,_0x3e0572._0x15df35)][_0x3a018e(0xdc,_0x3e0572._0x2ff593)]);this[_0x3a018e(-0x1ed,-0x26a)]('relay\x20co'+_0x5f2eeb(-_0x3e0572._0x143a99,-_0x3e0572._0x9b1a0)+_0x5f2eeb(0x2b,_0x3e0572._0x170305)+_0x3af832+'\x20url='+_0x354332[_0x5f2eeb(-_0x3e0572._0x651e36,-_0x3e0572._0x5929cf)](redactRelayWsUrl,_0x51ce4a));function _0x3a018e(_0x37ceac,_0x50f169){return _0x1bc0ac(_0x50f169,_0x37ceac- -0x53d);}const _0x501a19=new _0xcdd741(_0x51ce4a,{'maxPayload':_0x354332[_0x5f2eeb(-0x65,_0x3e0572._0x2e8911)](0x19,0x400)*0x400});this[_0x3a018e(-_0x3e0572._0x3b9f34,0x3)+_0x3a018e(-_0x3e0572._0x43b155,-_0x3e0572._0x52c385)]=_0x501a19,_0x501a19[_0x3a018e(-0x1bc,-0x171)](_0x5f2eeb(0x294,_0x3e0572._0x4ad084),()=>{if(this['stopped']||this[_0x291a37(_0x5c2674._0xa9d107,_0x5c2674._0x1a1e4f)+_0xdec230(0x5e3,_0x5c2674._0x46e6c9)]!==_0x501a19){_0x501a19[_0x291a37(0x7ca,_0x5c2674._0x32ab15)]();return;}this[_0x291a37(_0x5c2674._0x3b24f7,0x759)+'necting']=![],this[_0xdec230(0x632,0x780)+_0x291a37(_0x5c2674._0x335cfc,0x58c)+_0xdec230(_0x5c2674._0x1cec62,_0x5c2674._0x1d517a)]=Date['now']();const _0x216763={};_0x216763['relayCon'+_0xdec230(_0x5c2674._0xad8558,_0x5c2674._0x3a34f6)]=!![];function _0xdec230(_0x4d96a0,_0x981c3){return _0x5f2eeb(_0x4d96a0,_0x981c3-0x5a7);}function _0x291a37(_0x3331f3,_0x33c88a){return _0x5f2eeb(_0x3331f3,_0x33c88a-0x5b3);}_0x216763['lastErro'+'r']=null,this['updateSn'+'apshot'](_0x216763),this[_0x291a37(0x383,_0x5c2674._0x4a55dd)](_0x291a37(_0x5c2674._0x4e99bc,0x5dd)+_0x291a37(0x5e5,0x60e)+'attempt='+_0x3af832),this[_0x291a37(_0x5c2674._0x2ed966,0x55d)+_0xdec230(_0x5c2674._0x463645,0x6d0)]();}),_0x501a19['on']('message',(_0x5b4229,_0xabaf52)=>{function _0x24749f(_0x1651c1,_0x262ee2){return _0x5f2eeb(_0x1651c1,_0x262ee2- -0x40);}function _0x1f4ec9(_0x12a20e,_0x4cccb2){return _0x5f2eeb(_0x12a20e,_0x4cccb2-0x646);}void this[_0x1f4ec9(0x5c8,_0xdb6509._0x54f83c)+_0x1f4ec9(0x52f,_0xdb6509._0x49bc54)+'ge'](_0x5b4229,_0xabaf52);}),_0x501a19['on'](_0x354332['IuGSA'],()=>{const _0xe7ea9={_0x25678d:0x3de};function _0x1101d1(_0x25c06f,_0x2bd1f4){return _0x3a018e(_0x25c06f-_0xe7ea9._0x25678d,_0x2bd1f4);}this[_0x1101d1(_0x3fc128._0x1f4c69,_0x3fc128._0x5fef5e)+'yActivit'+'yMs']=Date['now']();}),_0x501a19[_0x3a018e(-0x1bc,-0xa2)](_0x5f2eeb(-0x84,_0x3e0572._0x15d59a),_0x2576fe=>{const _0x2bd684={_0x440ddd:0x104};function _0x181230(_0x330e7a,_0x477701){return _0x3a018e(_0x477701-_0x2bd684._0x440ddd,_0x330e7a);}function _0x618181(_0x46f537,_0x5797c2){return _0x3a018e(_0x46f537-0x1a2,_0x5797c2);}this[_0x618181(-_0x367f05._0xd3179c,-_0x367f05._0x3ebad4)](_0x181230(_0x367f05._0x3dbbcc,_0x367f05._0x1f9178)+_0x181230(-0x26c,-_0x367f05._0x1c6c10)+_0x354332[_0x181230(_0x367f05._0x12ac4e,0x132)](String,_0x2576fe));}),_0x501a19['once'](_0x354332[_0x5f2eeb(0xb7,0xf5)],(_0x4b6d32,_0x3b6069)=>{this['relaySoc'+_0x443760(-_0x183e3d._0x522db7,0x53)]===_0x501a19&&(this[_0x443760(_0x183e3d._0x934b79,_0x183e3d._0xd37d60)+'ket']=null);this[_0x2fa811(0x622,0x7aa)+'necting']=![];function _0x2fa811(_0x2943c0,_0x23dd07){return _0x3a018e(_0x23dd07-0x601,_0x2943c0);}function _0x443760(_0x577bcf,_0x1da578){return _0x3a018e(_0x577bcf-0x5d,_0x1da578);}this[_0x443760(-_0x183e3d._0x2c0867,_0x183e3d._0xd67114)+_0x2fa811(0x8c0,_0x183e3d._0x4f010c)](),this[_0x2fa811(0x591,_0x183e3d._0x470da7)+_0x443760(0x15,-_0x183e3d._0x479c71)+_0x443760(_0x183e3d._0x2579a1,0x112)]=null,this[_0x443760(0xa9,_0x183e3d._0x4d3f59)+_0x443760(-_0x183e3d._0x52cfd1,-_0x183e3d._0x140b79)+'AtMs']=null,this[_0x2fa811(0x5d9,0x581)+_0x2fa811(0x57f,_0x183e3d._0x435da2)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x4b6d32===0x3e8?null:_0x443760(_0x183e3d._0x1444dc,0x256)+_0x2fa811(_0x183e3d._0x3c2948,_0x183e3d._0x94b22c)+(_0x3b6069[_0x2fa811(0x82b,0x7b6)]()||_0x4b6d32)}),this['log']('relay\x20di'+_0x2fa811(0x5b1,0x4ad)+'ed\x20code='+_0x4b6d32+_0x2fa811(_0x183e3d._0x2f9ab7,0x45f)+(_0x3b6069['toString']()||_0x2fa811(_0x183e3d._0x5c7737,0x763))),this['closeGat'+'eway'](),this[_0x443760(0x1d2,_0x183e3d._0x574e4d)+_0x2fa811(_0x183e3d._0x454fff,0x460)+_0x2fa811(_0x183e3d._0x348d88,0x63f)]();});}async[_0x5ccb08(-0x17f,-0x95)+'layMessa'+'ge'](_0x4d1c26,_0x1287bc){const _0x5e7a2a={_0x2b8083:0x202,_0x1314ac:0x142,_0x291045:0x5a1,_0x558589:0x541,_0x3325ed:0x6c,_0x1f4ce0:0x45,_0x5cc68f:0x3ac,_0x40f6ac:0x504,_0x14db51:0x596,_0x36b355:0x288,_0x43c19a:0x3d,_0x1a90a5:0x410,_0x123327:0x40,_0x201363:0x131,_0x3c13d5:0xc6,_0x48f38c:0x656,_0x5eeb95:0x34c,_0x570d2c:0x567},_0x782778={_0x3b0c35:0x26},_0x48e8fe={'smfLP':function(_0x151d07,_0x1c17fb){return _0x151d07(_0x1c17fb);},'aHjdQ':function(_0x25b4ce,_0x10bc8e){return _0x25b4ce(_0x10bc8e);},'BrTZJ':function(_0x4f807e,_0x3739e5){return _0x4f807e(_0x3739e5);}};this[_0x584581(0x265,_0x5e7a2a._0x2b8083)+_0x3c49d0(0x475,0x4f3)+_0x584581(0x1e2,0x33d)]=Date['now']();if(_0x1287bc){this[_0x584581(-_0x5e7a2a._0x1314ac,-0x206)+_0x3c49d0(0x757,_0x5e7a2a._0x291045)+_0x3c49d0(_0x5e7a2a._0x558589,0x4e7)+_0x584581(-_0x5e7a2a._0x3325ed,-_0x5e7a2a._0x1f4ce0)]({'kind':'binary','data':_0x48e8fe[_0x3c49d0(_0x5e7a2a._0x5cc68f,_0x5e7a2a._0x40f6ac)](normalizeBinary,_0x4d1c26)});return;}const _0x474ad4=_0x48e8fe[_0x3c49d0(0x5d7,_0x5e7a2a._0x14db51)](normalizeText,_0x4d1c26);function _0x3c49d0(_0x269c4f,_0x37b3ac){return _0x1bc0ac(_0x269c4f,_0x37b3ac- -_0x782778._0x3b0c35);}if(_0x474ad4==null)return;const _0x2fa466=_0x48e8fe[_0x584581(-0xd8,-_0x5e7a2a._0x36b355)](parseControl,_0x474ad4);if(_0x2fa466){this[_0x3c49d0(0x2c4,0x46e)+_0x584581(0xa1,_0x5e7a2a._0x43c19a)+'ol'](_0x2fa466[_0x3c49d0(0x56e,0x476)],_0x2fa466['count']);return;}function _0x584581(_0x178807,_0x40a026){return _0x1bc0ac(_0x40a026,_0x178807- -0x4b4);}const _0xf18c99=_0x48e8fe['BrTZJ'](parseConnectStartIdentity,_0x474ad4);_0xf18c99&&this[_0x3c49d0(0x51b,_0x5e7a2a._0x1a90a5)+_0x584581(0x4e,_0x5e7a2a._0x123327)+'art'](_0xf18c99['id'],_0xf18c99[_0x584581(0x252,0x41e)]);const _0x4b9036={};_0x4b9036[_0x584581(-_0x5e7a2a._0x201363,_0x5e7a2a._0x3c13d5)]='text',_0x4b9036[_0x3c49d0(0x5a4,_0x5e7a2a._0x48f38c)]=_0x474ad4,this[_0x3c49d0(0x267,_0x5e7a2a._0x5eeb95)+_0x3c49d0(_0x5e7a2a._0x570d2c,0x5a1)+'tewayMes'+'sage'](_0x4b9036);}[_0x5ccb08(-0x1ed,-0x95)+'layContr'+'ol'](_0x503d0e,_0x18beaa){const _0x4bb9bb={_0x2612e4:0x3a8,_0x5570ec:0x498,_0x34ed65:0x655,_0x103347:0x562,_0x25b14a:0x680,_0x1ecfa9:0x6a5,_0x5a859d:0x61a,_0x4180ac:0x690,_0x5b75eb:0x218,_0x29565d:0x60e,_0x14ac00:0x349,_0x594f66:0x351,_0x494bdf:0x18a,_0x4d8f10:0x302,_0xbb8b4c:0x2a4,_0x3cdf48:0x23a,_0x3cf299:0x218,_0x365dc3:0xc1,_0x39f3ab:0x18f,_0x5a66cd:0x59a,_0x27c843:0x412,_0xb08b70:0x3b1,_0x379fbd:0x51b,_0x2b33bc:0x5e3,_0x467fd6:0x5b1,_0x39864b:0x483,_0x576b1d:0x547,_0x13ede9:0x5f6,_0x5533b8:0x6b3,_0x308b6d:0x38d,_0x5fe602:0x5d5,_0x1c83a7:0x5d8,_0x28a65f:0x5c5,_0xa9aade:0x1bc,_0x249a63:0x367,_0xc138ed:0x25b,_0x15a0e7:0x3a8,_0x44ec67:0xb2,_0x206527:0x202,_0x34173d:0x4d3,_0x2abcdd:0x85,_0x542f90:0x1e7,_0x49b735:0x544,_0x3934b3:0x3c0,_0x4d0d28:0x1d6,_0x4c13e2:0x4e1,_0x295331:0xc3,_0x52bf6f:0x9f,_0x5405ed:0x1af,_0x54e0e4:0x4c6,_0x3b0449:0x650,_0x4a4323:0x30b,_0x4cd15a:0x495,_0x43bf06:0x361,_0x55bd9d:0x21e,_0x191e5d:0x413,_0x1b50a7:0x303,_0x5d793c:0x172,_0x33c829:0x340,_0xc7daf1:0x34f,_0x47e252:0x3ec,_0x4b80a5:0x154,_0x58d03f:0x3f3,_0x1b7d87:0x602,_0x2a2149:0x21f,_0x1d91c1:0x376,_0xe63d13:0x349,_0x3990ea:0x3dc,_0x42cd1b:0x478,_0x4679bf:0x336,_0xf1ddd2:0x5f7,_0x657e2a:0x557,_0x2797c9:0x347,_0x3dc592:0x5af,_0x3c7b12:0x436,_0x40f5fc:0x3f9,_0x3f6d14:0x3f4,_0x199ef7:0x5b4,_0x4dabec:0x502,_0x83434:0x3cc,_0x49efa2:0x33e,_0x3238d3:0x580,_0x3483db:0x612,_0x446e5a:0x58a,_0x45f359:0x76a,_0x3cecb7:0x25e},_0x10baf1={};_0x10baf1['xQAPE']=function(_0x4d7e83,_0x2ea83a){return _0x4d7e83===_0x2ea83a;};function _0x5da52e(_0x922522,_0x3bcd43){return _0x1bc0ac(_0x922522,_0x3bcd43- -0x9);}_0x10baf1[_0x5da52e(_0x4bb9bb._0x2612e4,0x4a7)]=function(_0x2e1a8f,_0x27ca40){return _0x2e1a8f>_0x27ca40;};function _0xecd258(_0x45694b,_0x2513bb){return _0x1bc0ac(_0x45694b,_0x2513bb- -0x2bb);}const _0x5334f3=_0x10baf1;if(_0x503d0e==='client_c'+_0xecd258(0x7d,0xb4)||_0x5334f3[_0x5da52e(_0x4bb9bb._0x5570ec,_0x4bb9bb._0x34ed65)](_0x503d0e,_0x5da52e(_0x4bb9bb._0x103347,0x4d7)+_0x5da52e(_0x4bb9bb._0x25b14a,_0x4bb9bb._0x1ecfa9))){const _0x20f88e=this[_0x5da52e(_0x4bb9bb._0x5a859d,_0x4bb9bb._0x4180ac)]['clientCo'+_0xecd258(0x1e4,_0x4bb9bb._0x5b75eb)],_0x1c19c8=_0x18beaa??Math[_0x5da52e(0x3d7,0x3dd)](0x1,this[_0x5da52e(0x768,_0x4bb9bb._0x4180ac)][_0x5da52e(_0x4bb9bb._0x29565d,0x5b9)+_0x5da52e(0x459,0x4ca)]),_0x3faae6=Boolean(this[_0xecd258(0x188,_0x4bb9bb._0x14ac00)+_0xecd258(_0x4bb9bb._0x594f66,_0x4bb9bb._0x494bdf)+'Timer']);_0x5334f3[_0x5da52e(0x457,0x4a7)](_0x1c19c8,0x0)&&this['clientDe'+_0xecd258(0x125,0x23a)+_0xecd258(0x2e7,_0x4bb9bb._0x4d8f10)]==null&&(this['clientDe'+_0xecd258(_0x4bb9bb._0xbb8b4c,_0x4bb9bb._0x3cdf48)+'tedAtMs']=Date[_0x5da52e(0x235,0x36f)]());const _0x876be7={};_0x876be7['clientCo'+_0xecd258(0x35b,_0x4bb9bb._0x3cf299)]=_0x1c19c8,this['updateSn'+'apshot'](_0x876be7);if(_0x1c19c8===0x0)this[_0xecd258(_0x4bb9bb._0x365dc3,0x84)+_0x5da52e(0x3d0,0x446)+'t'](),this['schedule'+_0xecd258(_0x4bb9bb._0x39f3ab,0x306)+_0x5da52e(_0x4bb9bb._0x5a66cd,0x43c)](_0x5da52e(_0x4bb9bb._0x27c843,0x4d7)+_0x5da52e(_0x4bb9bb._0xb08b70,0x4d2)+'o');else{this['cancelGa'+_0x5da52e(0x648,_0x4bb9bb._0x379fbd)+'eClose'](_0x5da52e(0x4f8,0x406)+_0x5da52e(_0x4bb9bb._0x2b33bc,0x66d)+_0x5da52e(_0x4bb9bb._0x467fd6,_0x4bb9bb._0x39864b));shouldRecycleGatewayForFreshClient(_0x20f88e,_0x1c19c8,this['isGatewa'+_0x5da52e(0x1ee,0x367)](),_0x3faae6)&&(this['log']('gateway\x20'+_0x5da52e(0x43e,_0x4bb9bb._0x576b1d)+_0x5da52e(0x5da,_0x4bb9bb._0x13ede9)+_0x5da52e(_0x4bb9bb._0x5533b8,0x643)+_0xecd258(0x26c,_0x4bb9bb._0x308b6d)+'nt\x20deman'+'d'),this[_0x5da52e(_0x4bb9bb._0x5fe602,_0x4bb9bb._0x1c83a7)+_0xecd258(_0x4bb9bb._0x28a65f,0x404)]());if(this['isGatewa'+_0x5da52e(_0x4bb9bb._0xa9aade,_0x4bb9bb._0x249a63)]()){const _0xba4bcf={};_0xba4bcf['gatewayC'+'onnected']=!![],_0xba4bcf[_0x5da52e(_0x4bb9bb._0xc138ed,_0x4bb9bb._0x15a0e7)+'r']=null,this[_0xecd258(_0x4bb9bb._0x44ec67,_0x4bb9bb._0x206527)+_0xecd258(_0x4bb9bb._0x34173d,0x3b9)](_0xba4bcf),this[_0xecd258(0x13d,0x95)](_0xecd258(_0x4bb9bb._0x2abcdd,_0x4bb9bb._0x542f90)+_0x5da52e(0x545,0x6f2)+_0x5da52e(_0x4bb9bb._0x49b735,_0x4bb9bb._0x3934b3)+_0xecd258(0x163,_0x4bb9bb._0x4d0d28)+_0xecd258(_0x4bb9bb._0x4c13e2,0x468)+this[_0xecd258(0x314,0x33e)+_0xecd258(-_0x4bb9bb._0x295331,_0x4bb9bb._0x52bf6f)](this['gatewayC'+_0xecd258(0x1eb,0xb4)+_0xecd258(_0x4bb9bb._0x5405ed,0x2f4)])+(_0xecd258(0x415,0x2e6)+_0xecd258(0x39e,0x3e3)+'d=')+this[_0xecd258(_0x4bb9bb._0x54e0e4,0x383)+_0x5da52e(_0x4bb9bb._0x3b0449,0x685)+_0x5da52e(_0x4bb9bb._0x4a4323,0x35c)]);}this[_0xecd258(0x3d7,0x466)+_0x5da52e(0x3aa,_0x4bb9bb._0x4cd15a)+_0x5da52e(_0x4bb9bb._0x43bf06,0x459)]();}this[_0xecd258(-0xd,0x95)](_0xecd258(_0x4bb9bb._0x55bd9d,0x2af)+_0xecd258(0x343,_0x4bb9bb._0x191e5d)+_0xecd258(_0x4bb9bb._0x1b50a7,0x3b8)+_0x503d0e+_0xecd258(_0x4bb9bb._0x5d793c,_0x4bb9bb._0x33c829)+_0x1c19c8+(_0x5da52e(_0x4bb9bb._0xc7daf1,0x343)+_0xecd258(0x3c0,_0x4bb9bb._0x47e252)+'ndMs=')+this[_0x5da52e(0x422,0x5f0)+_0xecd258(_0x4bb9bb._0x4b80a5,0x9f)](this[_0xecd258(0x447,0x3ce)+'mandStar'+'tedAtMs'])+'\x20queued='+this[_0x5da52e(_0x4bb9bb._0x58d03f,0x3ee)+_0x5da52e(_0x4bb9bb._0x1b7d87,0x5db)+'ssages'][_0x5da52e(_0x4bb9bb._0x2a2149,_0x4bb9bb._0x1d91c1)]);return;}if(_0x503d0e==='client_d'+_0xecd258(_0x4bb9bb._0xe63d13,0x30b)+_0xecd258(0x32b,_0x4bb9bb._0x3990ea)){this[_0x5da52e(0x46f,0x635)+_0xecd258(0x1eb,0x3d3)+'Started']=![];const _0x4d601f={};_0x4d601f['clientCo'+_0x5da52e(0x6bd,0x4ca)]=0x0,this['updateSn'+'apshot'](_0x4d601f),this[_0x5da52e(_0x4bb9bb._0x42cd1b,_0x4bb9bb._0x4679bf)+_0x5da52e(0x3d3,0x446)+'t'](),this[_0x5da52e(0x758,0x6a9)+_0xecd258(0x276,0x306)+_0x5da52e(0x5e3,0x43c)](_0xecd258(0x18b,_0x4bb9bb._0x4b80a5)+_0x5da52e(_0x4bb9bb._0xf1ddd2,0x5bd)+_0xecd258(_0x4bb9bb._0x657e2a,_0x4bb9bb._0x3990ea)),this[_0x5da52e(0x185,_0x4bb9bb._0x2797c9)](_0x5da52e(0x607,0x561)+'ntrol\x20ev'+_0xecd258(_0x4bb9bb._0x3dc592,_0x4bb9bb._0x3c7b12)+_0xecd258(0x347,0x415)+'nnected\x20'+_0x5da52e(0x48c,0x565)+_0x5da52e(0x464,_0x4bb9bb._0x40f5fc)+'dMs='+this['elapsedS'+_0x5da52e(_0x4bb9bb._0x3f6d14,0x351)](this[_0xecd258(0x416,0x3ce)+'mandStar'+_0x5da52e(0x438,_0x4bb9bb._0x199ef7)])+('\x20sinceGa'+_0x5da52e(0x64b,0x590)+_0x5da52e(0x6aa,_0x4bb9bb._0x4dabec))+this[_0xecd258(_0x4bb9bb._0x83434,_0x4bb9bb._0x49efa2)+_0xecd258(0x19e,_0x4bb9bb._0x52bf6f)](this[_0x5da52e(0x50b,_0x4bb9bb._0x3238d3)+_0xecd258(0x28b,0xb4)+_0x5da52e(_0x4bb9bb._0x3483db,0x5a6)]));return;}this[_0x5da52e(0x14e,_0x4bb9bb._0x2797c9)](_0x5da52e(_0x4bb9bb._0x446e5a,0x561)+_0x5da52e(_0x4bb9bb._0x45f359,0x6c5)+_0xecd258(_0x4bb9bb._0x3cecb7,0x3b8)+_0x503d0e);}[_0x1bc0ac(0x337,0x372)+'rQueueGa'+'tewayMes'+_0x5ccb08(0x64,-0xe1)](_0x4b3a08){const _0x392f9e={_0x3941c9:0x1a7,_0x1832be:0x77,_0x4c1c02:0x40f,_0x5c8e2c:0x2ec,_0x31060f:0x708,_0xc2eb57:0x559,_0x172723:0x152,_0x1e96f1:0x116,_0x82d98a:0x343,_0xb945c9:0x185,_0x83dd28:0x710,_0x398ecb:0xcc,_0x160630:0x695,_0xeb1271:0x79f,_0x4ab5ce:0x4f3,_0x552ee1:0x20c,_0x4dd4e8:0x814,_0x4b39d7:0x40b,_0x18f0d4:0x4e6,_0x506f25:0x24c,_0x45601e:0x3e4,_0x56f254:0x3dc,_0x3b0040:0xd1,_0x3cc8f0:0x409,_0x35b3c9:0x4d3,_0x358fb4:0x619,_0x5efe38:0xf0,_0x16f455:0x6fd,_0xc097e9:0x4e3,_0x5e6974:0x4cc,_0x5e12ae:0x5d8,_0x38ab11:0x170,_0x3cfca3:0x147,_0x242217:0x27e,_0x4e94aa:0x95,_0x17f8ed:0x226,_0x58cc6a:0x6ca,_0x238ec1:0x72c,_0x347088:0x78,_0x4fcc85:0x297,_0x238b45:0x52e,_0x574fba:0x671,_0x216b1b:0x7a3,_0x1a27f0:0x87e,_0x124a8a:0x850,_0x50ea36:0x1fd,_0x31b14d:0x156,_0x9f04c2:0x58a},_0x249148={_0x1f66c9:0x4d5},_0x4bbde7={'gQUNQ':function(_0x1c004d,_0x565477){return _0x1c004d===_0x565477;},'TGPPF':_0x56c324(_0x392f9e._0x3941c9,0x18d),'viWgP':function(_0x401031,_0x255278){return _0x401031(_0x255278);}},_0x315baa=_0x4bbde7[_0x56c324(-0x5f,_0x392f9e._0x1832be)](_0x4b3a08[_0x18855f(_0x392f9e._0x4c1c02,_0x392f9e._0x5c8e2c)],_0x4bbde7[_0x18855f(0x666,0x81b)])&&_0x4bbde7['viWgP'](isConnectHandshakeRequest,_0x4b3a08[_0x18855f(_0x392f9e._0x31060f,_0x392f9e._0xc2eb57)]);if(_0x4b3a08[_0x56c324(-_0x392f9e._0x172723,-_0x392f9e._0x1e96f1)]===_0x56c324(0x1a7,_0x392f9e._0x82d98a)){const _0x5d979b=summarizeJsonFrame(_0x4b3a08['text']);_0x5d979b&&this[_0x56c324(-_0x392f9e._0xb945c9,-0x21d)]('relay\x20fr'+_0x18855f(0x5cc,_0x392f9e._0x83dd28)+_0x5d979b+(_0x56c324(_0x392f9e._0x398ecb,0x17)+_0x18855f(_0x392f9e._0x160630,_0x392f9e._0xeb1271))+_0x315baa+(_0x56c324(0x10,-0x1cc)+_0x18855f(0x564,_0x392f9e._0x4ab5ce))+this['isGatewa'+_0x56c324(-0x165,-0x72)]()+_0x56c324(_0x392f9e._0x552ee1,0x2a9)+this['pendingG'+_0x18855f(0x670,_0x392f9e._0x4dd4e8)+'ssages'][_0x18855f(_0x392f9e._0x4b39d7,0x363)]);}function _0x56c324(_0x179fb3,_0x35d0d1){return _0x1bc0ac(_0x35d0d1,_0x179fb3- -_0x249148._0x1f66c9);}const _0x1c0a23=this[_0x56c324(0x232,0x5a)+_0x18855f(0x5c2,_0x392f9e._0x18f0d4)];if(!_0x1c0a23||_0x1c0a23[_0x56c324(-0x106,-0x183)+'te']!==_0xcdd741[_0x56c324(0xae,0x1b7)]){this[_0x56c324(_0x392f9e._0x506f25,_0x392f9e._0x45601e)+'tewayCon'+_0x56c324(-0x73,-0x2)]();if(shouldDropStaleConnectAfterGatewayReopen(Boolean(_0x1c0a23&&_0x4bbde7['gQUNQ'](_0x1c0a23[_0x56c324(-0x106,-0x151)+'te'],_0xcdd741[_0x18855f(0x60f,0x525)])),_0x315baa)){this[_0x18855f(_0x392f9e._0x56f254,0x200)](_0x56c324(0x251,_0x392f9e._0x3b0040)+_0x56c324(-0x7e,-0xb1)+_0x56c324(0x252,_0x392f9e._0x3cc8f0)+_0x18855f(_0x392f9e._0x35b3c9,_0x392f9e._0x358fb4)+'way\x20reop'+'en;\x20awai'+_0x56c324(-_0x392f9e._0x5efe38,-0xa)+'sh\x20chall'+_0x18855f(_0x392f9e._0x16f455,0x81c));return;}this[_0x18855f(0x41a,_0x392f9e._0xc097e9)+'ingGatew'+_0x18855f(_0x392f9e._0x5e6974,_0x392f9e._0x5e12ae)+'e'](_0x4b3a08);return;}if(!this[_0x56c324(0x169,_0x392f9e._0x172723)+_0x56c324(0x1b9,0x69)+_0x56c324(-_0x392f9e._0x38ab11,-0x153)]){if(!_0x315baa){this[_0x56c324(-_0x392f9e._0x3cfca3,-_0x392f9e._0x242217)+_0x56c324(0x73,0x227)+_0x56c324(-_0x392f9e._0x4e94aa,-_0x392f9e._0x17f8ed)+'e'](_0x4b3a08);return;}this[_0x18855f(_0x392f9e._0x58cc6a,_0x392f9e._0x238ec1)+_0x56c324(0x1b9,_0x392f9e._0x347088)+'Started']=!![],this[_0x56c324(-_0x392f9e._0xb945c9,-_0x392f9e._0x4fcc85)](_0x18855f(_0x392f9e._0x238b45,_0x392f9e._0x574fba)+'handshak'+_0x18855f(_0x392f9e._0x216b1b,_0x392f9e._0x1a27f0)+'d\x20queued'+'='+this['pendingG'+_0x18855f(0x670,_0x392f9e._0x124a8a)+_0x56c324(0x223,_0x392f9e._0x50ea36)][_0x56c324(-_0x392f9e._0x31b14d,-0x2bf)]);}function _0x18855f(_0x5d4ca8,_0x4e75ee){return _0x1bc0ac(_0x4e75ee,_0x5d4ca8-0x8c);}this['sendToGa'+_0x18855f(0x512,_0x392f9e._0x9f04c2)](_0x4b3a08);}[_0x5ccb08(0x27c,0x1f8)+'tewayCon'+_0x5ccb08(0xdb,-0xc7)](){const _0x19b09e={_0x4ef966:0x336,_0x234440:0x38f,_0x2ee3b9:0x75a,_0x51da91:0x64d,_0x38f71b:0x4eb,_0x24b43c:0x123,_0x5d11e9:0x3f6,_0x19b35e:0x24f,_0xfd5e58:0x2b0,_0x1f455d:0x38c,_0x9d9c1c:0x435,_0x260a5d:0xfd,_0x2aaa63:0x5f0,_0x2f2f7f:0x773,_0x172f4d:0x7d3,_0xcd7a21:0x3f1,_0x4693a8:0x4ab,_0x11baf8:0x4be,_0x1edcea:0x4ab,_0xf2555a:0x4a2,_0x7236e4:0x882,_0x118781:0x6a2,_0x2b48f7:0x12e,_0x46140d:0x7b4,_0xd9c4fa:0x59d,_0xf79e3e:0x608,_0x239808:0x7ad,_0x532588:0x690},_0xf6167e={_0x4a3c66:0x4b,_0x5ec78e:0x662,_0x219df4:0x144,_0x1e9812:0x3a,_0x5432e6:0x13b,_0x1f8bc9:0x1c,_0x570944:0x127,_0x4dd616:0x14,_0x101c45:0xb1,_0x48052d:0x3fd,_0x2c979f:0x589,_0x1e4a1c:0x35a,_0x9edc52:0x64d,_0x5968aa:0x45b,_0x4ac028:0x140,_0x44e0b3:0x252,_0xc8b266:0x99,_0x17881d:0x12f},_0x22e17c={_0x2223ed:0x1ae},_0x1d803b={_0x49c046:0x2d6},_0x56160a={_0x1c0a60:0xac,_0x462515:0x320,_0x4b0990:0x4c9},_0x2d0dd9={_0x25590c:0x801,_0x379a74:0x7d7,_0x2fbe3b:0x6a1,_0xa52014:0x4eb,_0xd7e064:0x5dc},_0x37dd20={_0x109adf:0x19},_0x376e8a={_0x3e9280:0x6a4},_0x430196={_0x2215bf:0x44,_0xc1a703:0x62a,_0x18f06b:0x59b,_0x53b6b5:0x341,_0x525518:0x305,_0x22937a:0x1c4,_0x3b8647:0x66c,_0x750578:0x324,_0x586d0b:0x4b,_0x39546b:0x36,_0x15bc4e:0x17f,_0xa9326b:0x188,_0xb794b3:0x77b,_0x5116e3:0x6e8,_0x35251f:0x34b,_0x5bd5c3:0x36f,_0xf34e01:0xcf,_0x5e32ab:0x2a3,_0x39278b:0x211,_0x3da0f0:0x45d,_0x44f22b:0x55,_0x4dbacf:0x157,_0xb80ebf:0x587,_0x44e76c:0x3d7,_0x563f02:0x2c1,_0xa071f9:0x26f,_0xa1988c:0x3ab,_0x27d315:0x5e8,_0x25919c:0x54,_0x1e01ea:0x51c,_0x52a81e:0x35a,_0x58a217:0x2fb},_0x34a1ac={_0x3dd3af:0x495},_0x4a43c4={'YXIHF':function(_0x5e0ecf,_0x37d224){return _0x5e0ecf!==_0x37d224;},'xulnp':function(_0x341f0b,_0x20b71f){return _0x341f0b(_0x20b71f);},'HxIXC':function(_0xca2ea9,_0x289c87){return _0xca2ea9===_0x289c87;}};if(this['stopped']||!this['isRelayO'+'pen']()||this[_0x157705(_0x19b09e._0x4ef966,_0x19b09e._0x234440)+_0x7119e7(_0x19b09e._0x2ee3b9,_0x19b09e._0x51da91)+'g']||this['isGatewa'+_0x7119e7(_0x19b09e._0x38f71b,0x695)]()||!this['hasGatew'+_0x7119e7(0x4df,0x5a2)]())return;this[_0x7119e7(0x5ef,0x46e)+_0x157705(0x2d1,0x4a6)+'eClose'](_0x157705(0x1b5,_0x19b09e._0x24b43c)+'reconnec'+_0x157705(_0x19b09e._0x5d11e9,_0x19b09e._0x19b35e)+_0x157705(0x444,_0x19b09e._0xfd5e58)),this['gatewayC'+_0x157705(_0x19b09e._0x1f455d,_0x19b09e._0x9d9c1c)+'g']=!![],this[_0x157705(_0x19b09e._0x260a5d,-0x10)]('gateway\x20'+_0x7119e7(_0x19b09e._0x2aaa63,_0x19b09e._0x2f2f7f)+_0x7119e7(_0x19b09e._0x172f4d,0x88a)+'l='+this[_0x157705(_0x19b09e._0xcd7a21,0x29d)][_0x157705(_0x19b09e._0x4693a8,0x5de)+'rl']);const _0x59df2b={};_0x59df2b[_0x157705(_0x19b09e._0x11baf8,0x40b)+'ad']=0x19*0x400*0x400;const _0x4689b5=new _0xcdd741(this['options'][_0x157705(_0x19b09e._0x1edcea,_0x19b09e._0xf2555a)+'rl'],_0x59df2b);this[_0x7119e7(_0x19b09e._0x7236e4,_0x19b09e._0x118781)+'ocket']=_0x4689b5,_0x4689b5[_0x157705(_0x19b09e._0x2b48f7,0xa2)](_0x7119e7(_0x19b09e._0x46140d,0x6ac),()=>{function _0x14d849(_0x532dbc,_0x2e4f6d){return _0x7119e7(_0x532dbc- -_0x34a1ac._0x3dd3af,_0x2e4f6d);}function _0x4970ca(_0x532743,_0x2946e5){return _0x7119e7(_0x532743- -0x11c,_0x2946e5);}const _0x783cd1=('1|5|2|4|'+_0x14d849(0xd1,-_0x430196._0x2215bf))[_0x4970ca(0x6d6,_0x430196._0xc1a703)]('|');let _0x548039=0x0;while(!![]){switch(_0x783cd1[_0x548039++]){case'0':this[_0x14d849(0xc8,0x207)+'dingGate'+_0x4970ca(_0x430196._0x18f06b,0x6bd)+_0x14d849(0x2bf,_0x430196._0x53b6b5)]();continue;case'1':if(this[_0x14d849(_0x430196._0x525518,0x13a)]||_0x4a43c4[_0x14d849(0x84,0x25)](this[_0x4970ca(0x766,0x71c)+_0x14d849(0x21c,_0x430196._0x22937a)],_0x4689b5)){_0x4689b5[_0x4970ca(0x691,_0x430196._0x3b8647)]();return;}continue;case'2':this[_0x14d849(_0x430196._0x750578,0x1ca)+'andshake'+_0x14d849(_0x430196._0x586d0b,-0xa9)]=![];continue;case'3':this[_0x14d849(_0x430196._0x39546b,-_0x430196._0x15bc4e)](_0x14d849(_0x430196._0xa9326b,-0x6f)+_0x4970ca(_0x430196._0xb794b3,_0x430196._0x5116e3)+'d\x20sinceC'+_0x14d849(_0x430196._0x35251f,_0x430196._0x5bd5c3)+'andMs='+this['elapsedS'+_0x4970ca(0x3b9,0x28f)](this['clientDe'+_0x14d849(0x1db,_0x430196._0xf34e01)+_0x14d849(_0x430196._0x5e32ab,_0x430196._0x39278b)]));continue;case'4':this[_0x14d849(0x26f,_0x430196._0x3da0f0)+_0x14d849(_0x430196._0x44f22b,-_0x430196._0x4dbacf)+_0x4970ca(0x60e,_0x430196._0xb80ebf)]=Date[_0x4970ca(_0x430196._0x44e76c,_0x430196._0x563f02)]();continue;case'5':this[_0x14d849(_0x430196._0xa071f9,_0x430196._0xa1988c)+'onnectin'+'g']=![];continue;case'6':const _0x429466={};_0x429466[_0x4970ca(_0x430196._0x27d315,0x50e)+_0x14d849(0x55,_0x430196._0x25919c)]=!![],_0x429466[_0x14d849(0x97,0xa4)+'r']=null,this[_0x4970ca(_0x430196._0x1e01ea,0x5bd)+_0x14d849(_0x430196._0x52a81e,_0x430196._0x58a217)](_0x429466);continue;}break;}});function _0x7119e7(_0x291a60,_0x13882c){return _0x5ccb08(_0x13882c,_0x291a60-_0x376e8a._0x3e9280);}_0x4689b5['on'](_0x7119e7(0x54f,_0x19b09e._0xd9c4fa),(_0x4748f2,_0x61c27a)=>{function _0x3bdd03(_0x49d9d7,_0xa6d27c){return _0x7119e7(_0xa6d27c- -0x690,_0x49d9d7);}function _0x2f5071(_0x5c0151,_0x5ba52a){return _0x7119e7(_0x5ba52a-_0x37dd20._0x109adf,_0x5c0151);}this[_0x2f5071(_0x2d0dd9._0x25590c,0x7da)+_0x2f5071(_0x2d0dd9._0x379a74,_0x2d0dd9._0x2fbe3b)+_0x2f5071(_0x2d0dd9._0xa52014,_0x2d0dd9._0xd7e064)](_0x4748f2,_0x61c27a);}),_0x4689b5[_0x157705(0x12e,0xe2)]('error',_0x1e512b=>{const _0x243aab={_0x4e61b2:0x41f};function _0x1083c8(_0x54844b,_0x12d8ae){return _0x7119e7(_0x54844b- -_0x243aab._0x4e61b2,_0x12d8ae);}function _0x1a920b(_0x545112,_0xceb6ff){return _0x7119e7(_0x545112- -0x3ce,_0xceb6ff);}this[_0x1083c8(_0x56160a._0x1c0a60,0x280)](_0x1a920b(0x24f,_0x56160a._0x462515)+_0x1a920b(0x310,_0x56160a._0x4b0990)+_0x4a43c4['xulnp'](String,_0x1e512b));});function _0x157705(_0x33ce95,_0x1c9f38){return _0x5ccb08(_0x1c9f38,_0x33ce95-_0x1d803b._0x49c046);}_0x4689b5[_0x7119e7(0x4fc,_0x19b09e._0xf79e3e)](_0x7119e7(_0x19b09e._0x239808,_0x19b09e._0x532588),(_0x107323,_0x49b79a)=>{_0x4a43c4[_0x13d75a(-0x161,-_0xf6167e._0x4a3c66)](this[_0x4550f2(0x47a,_0xf6167e._0x5ec78e)+'ocket'],_0x4689b5)&&(this[_0x13d75a(-0x81,_0xf6167e._0x219df4)+'ocket']=null);function _0x13d75a(_0x13198b,_0x349d1c){return _0x157705(_0x349d1c- -0x370,_0x13198b);}function _0x4550f2(_0x16b9e3,_0x4f8eca){return _0x157705(_0x4f8eca-_0x22e17c._0x2223ed,_0x16b9e3);}this[_0x13d75a(0x15b,-_0xf6167e._0x1e9812)+_0x13d75a(-_0xf6167e._0x5432e6,_0xf6167e._0x1f8bc9)+'g']=![],this[_0x4550f2(0x408,0x599)+_0x4550f2(0x6f5,0x5e9)+'Started']=![],this[_0x13d75a(0x151,-_0xf6167e._0x1e9812)+_0x13d75a(-0x86,-0x254)+_0x13d75a(-_0xf6167e._0x570944,-_0xf6167e._0x4dd616)]=null,this['updateSn'+_0x13d75a(0xcc,_0xf6167e._0x101c45)]({'gatewayConnected':![],'lastError':_0x107323===0x3e8?this['snapshot']['lastErro'+'r']:'gateway\x20'+'closed:\x20'+(_0x49b79a['toString']()||_0x107323)}),this['log'](_0x4550f2(0x4d8,_0xf6167e._0x48052d)+_0x4550f2(0x6f5,_0xf6167e._0x2c979f)+_0x4550f2(0x3f2,0x3e3)+'e='+_0x107323+_0x4550f2(_0xf6167e._0x1e4a1c,0x2f6)+(_0x49b79a[_0x4550f2(0x469,_0xf6167e._0x9edc52)]()||_0x4550f2(_0xf6167e._0x5968aa,0x5fa))+('\x20sinceCl'+_0x13d75a(_0xf6167e._0x4ac028,0xe4)+'ndMs=')+this['elapsedS'+_0x13d75a(-_0xf6167e._0x44e0b3,-0x269)](this['clientDe'+'mandStar'+'tedAtMs'])),this['schedule'+_0x13d75a(-_0xf6167e._0xc8b266,0xe)+_0x4550f2(_0xf6167e._0x17881d,0x2c9)]();});}[_0x5ccb08(0x27a,0x11d)+_0x5ccb08(0xbe,-0x1c)+_0x1bc0ac(0x363,0x448)](_0x374b57,_0x5e35fd){const _0x2597b6={_0x5be015:0x659,_0x52f982:0x669,_0x3d70cc:0x7a0,_0x22e559:0x425,_0xf91cd6:0x336,_0x178521:0x349,_0x241317:0x349,_0x1f789c:0x332,_0x14d87d:0x656,_0x5065ab:0x68d,_0x4779e5:0x6b8,_0x45f197:0x5e1,_0x5c14d4:0x342,_0x1d1c30:0x6c9,_0x4e0c34:0x66f,_0x3afa17:0x6ae,_0x517a11:0x5a5,_0x2983a7:0x4e7,_0x3e5fd9:0x52a,_0x312480:0x4c5,_0x946714:0x58c,_0x23a88a:0x4f3,_0x29c770:0x55b,_0x5b7c32:0x355,_0x178b44:0x419,_0x87e918:0x595,_0x40d44e:0x63b,_0x57624f:0x4f9,_0x100839:0x4c8,_0x4cb591:0x55a,_0x228550:0x509,_0x120ce7:0x635,_0x4cd48c:0x6b9,_0x19ec32:0x605},_0x109236={_0x49eebd:0x18},_0x364978={_0x249ec9:0x1a};function _0x266ee2(_0x1741b0,_0x476415){return _0x1bc0ac(_0x1741b0,_0x476415- -_0x364978._0x249ec9);}const _0x4228af={};_0x4228af[_0x341ead(0x791,0x66b)]=function(_0x54e55f,_0x9b6091){return _0x54e55f!==_0x9b6091;};function _0x341ead(_0x179d94,_0x4d8555){return _0x1bc0ac(_0x179d94,_0x4d8555- -_0x109236._0x49eebd);}const _0x5845e0=_0x4228af,_0x167045=this[_0x266ee2(_0x2597b6._0x5be015,0x4d5)+'ket'];if(!_0x167045||_0x5845e0[_0x266ee2(0x7a5,_0x2597b6._0x52f982)](_0x167045[_0x341ead(0x4d2,0x3b7)+'te'],_0xcdd741[_0x341ead(0x5c2,0x56b)]))return;if(_0x5e35fd){_0x167045[_0x266ee2(_0x2597b6._0x3d70cc,0x603)](normalizeBinary(_0x374b57));return;}const _0x23075c=normalizeText(_0x374b57);if(_0x23075c==null)return;const _0x514834=summarizeJsonFrame(_0x23075c);_0x514834&&this[_0x266ee2(_0x2597b6._0x22e559,_0x2597b6._0xf91cd6)](_0x341ead(0x327,0x48a)+_0x266ee2(0x4ac,_0x2597b6._0x178521)+_0x514834+(_0x266ee2(_0x2597b6._0x241317,_0x2597b6._0x1f789c)+_0x266ee2(_0x2597b6._0x14d87d,_0x2597b6._0x5065ab)+_0x266ee2(0x7c4,_0x2597b6._0x4779e5))+this[_0x341ead(0x544,_0x2597b6._0x45f197)+_0x341ead(0x3a5,_0x2597b6._0x5c14d4)](this[_0x266ee2(_0x2597b6._0x1d1c30,_0x2597b6._0x4e0c34)+_0x266ee2(_0x2597b6._0x3afa17,0x4db)+_0x341ead(0x683,_0x2597b6._0x517a11)])+(_0x266ee2(_0x2597b6._0x2983a7,_0x2597b6._0x3e5fd9)+_0x341ead(_0x2597b6._0x312480,0x581)+_0x341ead(_0x2597b6._0x946714,_0x2597b6._0x23a88a))+this[_0x341ead(_0x2597b6._0x29c770,0x5e1)+_0x266ee2(0x407,0x340)](this[_0x266ee2(0x5b6,0x56f)+_0x266ee2(0x2f9,_0x2597b6._0x5b7c32)+_0x266ee2(_0x2597b6._0x178b44,0x595)]));const _0x5318bb=parsePairingRequestFromError(_0x23075c);_0x5318bb&&this['addPendi'+_0x341ead(_0x2597b6._0x87e918,0x599)+_0x266ee2(_0x2597b6._0x40d44e,_0x2597b6._0x57624f)](_0x5318bb);const _0x3e6cb7=parsePairResolvedEvent(_0x23075c);_0x3e6cb7&&this[_0x266ee2(_0x2597b6._0x100839,0x56d)+_0x341ead(_0x2597b6._0x4cb591,_0x2597b6._0x228550)+_0x266ee2(0x40b,0x4e6)](_0x3e6cb7['requestI'+'d'],_0x3e6cb7[_0x341ead(0x452,_0x2597b6._0x120ce7)]),_0x167045[_0x341ead(_0x2597b6._0x4cd48c,_0x2597b6._0x19ec32)](_0x23075c);}['flushPen'+'dingGate'+'wayMessa'+_0x1bc0ac(0x79d,0x5d9)](){const _0x38b57c={_0x4904ad:0x2e3,_0x430862:0x4af,_0x53f4c5:0x753,_0x2d83f3:0x6f7,_0xe5abb3:0x7cd,_0x5d0b59:0x758,_0x20ef70:0x566,_0x5f102c:0x38c,_0x8c85d0:0x5ad,_0x346faa:0x16b,_0x40e5c3:0x24a,_0x237dd6:0x4d0,_0x2ba155:0x585,_0x22948e:0x454,_0x139e3b:0x4f7,_0x53cd2e:0x6db,_0x229a12:0x59c,_0x5252da:0x424,_0x1a40b4:0x1f5,_0x374e4e:0x61b,_0x2836e5:0x5fa,_0x54c01d:0x19f,_0x87c44e:0x758,_0x5bb0c2:0x84f},_0x40adb2={_0x44bc3b:0x2d1},_0x166543={_0x455880:0x69d},_0x3dd35e=this[_0x115f27(_0x38b57c._0x4904ad,_0x38b57c._0x430862)+_0x509b22(0x6aa,_0x38b57c._0x53f4c5)];if(!_0x3dd35e||_0x3dd35e[_0x509b22(0x543,0x3c3)+'te']!==_0xcdd741[_0x509b22(_0x38b57c._0x2d83f3,_0x38b57c._0xe5abb3)])return;function _0x509b22(_0x119ccc,_0x584ec9){return _0x5ccb08(_0x584ec9,_0x119ccc-_0x166543._0x455880);}const _0xc99f6a=[],_0x9c63ae=[...this[_0x115f27(0x272,0x19f)+_0x509b22(_0x38b57c._0x5d0b59,_0x38b57c._0x20ef70)+'ssages']];function _0x115f27(_0x2a1bf0,_0x3fff6e){return _0x5ccb08(_0x2a1bf0,_0x3fff6e-_0x40adb2._0x44bc3b);}this['pendingG'+_0x115f27(0x2f8,_0x38b57c._0x5f102c)+_0x115f27(_0x38b57c._0x8c85d0,0x4a0)]=[],this['log'](_0x115f27(_0x38b57c._0x346faa,_0x38b57c._0x40e5c3)+_0x115f27(0x4a0,_0x38b57c._0x237dd6)+_0x509b22(_0x38b57c._0x2ba155,0x412)+_0x9c63ae[_0x509b22(0x4f3,_0x38b57c._0x22948e)]);for(const _0x1c71f1 of _0x9c63ae){if(!this[_0x115f27(0x4b6,0x3e6)+'andshake'+'Started']){if(_0x1c71f1[_0x509b22(_0x38b57c._0x139e3b,_0x38b57c._0x53cd2e)]!==_0x115f27(_0x38b57c._0x229a12,_0x38b57c._0x5252da)||!isConnectHandshakeRequest(_0x1c71f1[_0x115f27(0x296,0x424)])){_0xc99f6a[_0x115f27(0x137,_0x38b57c._0x1a40b4)](_0x1c71f1);continue;}this['gatewayH'+_0x509b22(0x802,_0x38b57c._0x374e4e)+'Started']=!![];}this['sendToGa'+_0x509b22(_0x38b57c._0x2836e5,0x559)](_0x1c71f1);}this[_0x115f27(0x380,_0x38b57c._0x54c01d)+_0x509b22(_0x38b57c._0x87c44e,0x70b)+_0x509b22(0x86c,_0x38b57c._0x5bb0c2)]=_0xc99f6a;}[_0x1bc0ac(0x3df,0x450)+'teway'](_0x184773){const _0x990218={_0x9f9887:0x2b1,_0x58276e:0x354,_0x438c0d:0x480,_0x429f10:0x318,_0x3316d7:0xdb,_0x4f4162:0x107,_0x4c84da:0x2c1,_0x54fb70:0x414,_0x3fc4de:0x2b1,_0x563aec:0x3f5,_0x30c30a:0x4e5,_0x2e8e14:0xec,_0x4b286e:0x396},_0x5f220a={_0x1e50e9:0x19a},_0x382287={};_0x382287[_0x526e72(_0x990218._0x9f9887,_0x990218._0x58276e)]=function(_0x15a843,_0x3df06f){return _0x15a843===_0x3df06f;};function _0x526e72(_0x2a1586,_0x105fee){return _0x5ccb08(_0x105fee,_0x2a1586-0x2a2);}const _0x47709f=_0x382287,_0x5afc03=this[_0x526e72(_0x990218._0x438c0d,_0x990218._0x429f10)+_0x526e72(0x2af,_0x990218._0x3316d7)];if(!_0x5afc03||_0x5afc03[_0x8f1224(0x40,-0x98)+'te']!==_0xcdd741[_0x526e72(0x2fc,0x3c0)]){this[_0x526e72(_0x990218._0x4f4162,0xbf)+_0x526e72(_0x990218._0x4c84da,_0x990218._0x54fb70)+'ayMessag'+'e'](_0x184773);return;}function _0x8f1224(_0x5a2e78,_0xf6a9cf){return _0x5ccb08(_0xf6a9cf,_0x5a2e78-_0x5f220a._0x1e50e9);}if(_0x47709f[_0x526e72(_0x990218._0x3fc4de,0x397)](_0x184773['kind'],_0x526e72(_0x990218._0x563aec,_0x990218._0x30c30a))){_0x5afc03[_0x8f1224(0x28e,_0x990218._0x2e8e14)](_0x184773['text']);return;}_0x5afc03[_0x526e72(_0x990218._0x4b286e,0x25b)](_0x184773['data']);}['sendGate'+_0x5ccb08(0xae,-0x94)+'st'](_0x276a2b,_0x4079a4){const _0x3669fa={_0xa1c71:0x1fe,_0x436a92:0x230,_0x125a89:0x633,_0x3a097c:0xa7,_0x190f07:0x404,_0x56ef67:0x18d},_0x234cf9={};_0x234cf9['QZaeh']=_0x11cc26(-0x1fa,-_0x3669fa._0xa1c71);const _0x597701=_0x234cf9;function _0x11cc26(_0xa1bf04,_0x37472c){return _0x1bc0ac(_0xa1bf04,_0x37472c- -0x5d5);}const _0x220ba2=JSON[_0x363ddf(0x23a,_0x3669fa._0x436a92)+'y']({'type':_0x597701[_0x363ddf(_0x3669fa._0x125a89,0x499)],'id':_0x363ddf(0x42d,0x3fc)+_0x3c2dbf(),'method':_0x276a2b,'params':_0x4079a4}),_0x5d1c33={};_0x5d1c33[_0x11cc26(-0x108,-0x252)]=_0x11cc26(0x10c,_0x3669fa._0x3a097c);function _0x363ddf(_0x1130e4,_0x53a34b){return _0x1bc0ac(_0x1130e4,_0x53a34b- -0x1c3);}_0x5d1c33[_0x11cc26(-0x31,0xa7)]=_0x220ba2,this['forwardO'+_0x363ddf(0x4bb,_0x3669fa._0x190f07)+'tewayMes'+_0x11cc26(-0x15,-_0x3669fa._0x56ef67)](_0x5d1c33);}[_0x5ccb08(0x104,0xb8)+'eway'](){const _0x30de0a={_0x568763:0x5d0,_0x21846b:0x7c4,_0x498fa0:0x64a,_0x3bf8c9:0x6df,_0x53ff8b:0x5e2,_0x16d141:0x601,_0x5c7afc:0x59d,_0x59a3b5:0x49e,_0x29e4d6:0x4cc,_0x30221b:0x411,_0x5df5f4:0x4cc,_0x3ed6fe:0x46a},_0x21eb01={_0x22eec9:0x5d5};this['cancelGa'+_0xecfe07(_0x30de0a._0x568763,_0x30de0a._0x21846b)+'eClose'](),this[_0x230a55(_0x30de0a._0x498fa0,_0x30de0a._0x3bf8c9)+_0xecfe07(_0x30de0a._0x53ff8b,_0x30de0a._0x16d141)]?.[_0xecfe07(0x6de,_0x30de0a._0x5c7afc)](),this[_0x230a55(0x64a,_0x30de0a._0x59a3b5)+_0x230a55(0x479,0x52a)]=null,this[_0x230a55(_0x30de0a._0x29e4d6,0x5d5)+'onnectin'+'g']=![];function _0xecfe07(_0x21fe50,_0x22c770){return _0x5ccb08(_0x22c770,_0x21fe50-_0x21eb01._0x22eec9);}function _0x230a55(_0x5d7a82,_0x3a8206){return _0x5ccb08(_0x3a8206,_0x5d7a82-0x46c);}this[_0xecfe07(0x6ea,0x876)+_0xecfe07(0x73a,0x7a6)+_0xecfe07(_0x30de0a._0x30221b,0x528)]=![],this[_0x230a55(_0x30de0a._0x5df5f4,0x45b)+'onnected'+_0x230a55(0x4f2,_0x30de0a._0x3ed6fe)]=null;}[_0x1bc0ac(0x4c4,0x6b2)+_0x1bc0ac(0x58b,0x5c1)+_0x5ccb08(-0x1d5,-0xe4)](_0x27a01a){const _0x33b3c7={_0x5849eb:0x1ee,_0x828229:0x108,_0x25e02a:0x499,_0x456077:0x435,_0x5f4a2d:0x5ad,_0x36e522:0x477,_0x21d238:0x5e7,_0xeec23a:0x43e,_0x16e63f:0x497,_0x5b7cd6:0x357,_0x562a52:0x6ad,_0x3c715f:0x75d,_0x305619:0x611,_0x5e8bf7:0x4bc,_0x1e9de3:0x3aa,_0x48e7eb:0x4b9,_0x14fd38:0x586,_0x4b81e7:0x241,_0x5575ce:0x8d0,_0x5d2e04:0x6df,_0x2a1346:0x205,_0x53c96b:0x4b6,_0xc35c17:0x81d,_0x4d990b:0xca,_0x1943bd:0x76e,_0x2acf1e:0x6e0,_0x364a86:0x3f2,_0x2aa099:0x53d,_0x7f9fff:0x573,_0x58cbf1:0x756,_0x6fcfbf:0x5cc,_0x296417:0x5b8,_0x5f1aa1:0x748,_0x1f29a2:0x30e,_0x3d7f56:0x4ec,_0x54cfb7:0x66e,_0x57cd01:0x722,_0x570658:0x6c3,_0x31b88a:0x794,_0x31d264:0x723,_0x2f8e28:0x484,_0x48ff94:0x551},_0x4ec99f={_0x1e08f7:0x527,_0x3b8952:0x1b0,_0x1c3e07:0x3ca,_0x5a24cf:0x273,_0x6e5de6:0x3c5,_0x91f8eb:0x57e,_0x1c9665:0x4a3,_0x27f1f4:0x2b5,_0x2e7f39:0x783,_0x154ed8:0x2fd,_0x26b7cd:0x74d,_0x22092e:0x87e,_0x2ae3b0:0x670,_0x3e45a9:0x651,_0x36ea95:0x5e7,_0x6b0fa7:0x54c,_0x8f84d:0x5ac,_0x7089e9:0x4e0,_0x48a39e:0x35e,_0x56e688:0x3f1},_0x4c377d={_0x1e65fb:0x3de},_0x2494f4={_0x4426db:0x653};this[_0x47d9bf(0x42c,0x458)+'etryTime'+'r']&&(clearTimeout(this['gatewayR'+'etryTime'+'r']),this[_0x47d9bf(0x42c,0x34d)+_0x47d9bf(_0x33b3c7._0x5849eb,_0x33b3c7._0x828229)+'r']=null);this[_0x28d1b7(0x3cf,0x521)+_0x47d9bf(_0x33b3c7._0x25e02a,_0x33b3c7._0x456077)+_0x47d9bf(_0x33b3c7._0x5f4a2d,0x5f1)]=[];function _0x28d1b7(_0x3a2207,_0x31df88){return _0x5ccb08(_0x3a2207,_0x31df88-_0x2494f4._0x4426db);}function _0x47d9bf(_0x1967e0,_0x5176bc){return _0x5ccb08(_0x5176bc,_0x1967e0-_0x4c377d._0x1e65fb);}const _0x2702e0={};_0x2702e0[_0x47d9bf(_0x33b3c7._0x36e522,0x53a)+'unt']=0x0,this[_0x28d1b7(0x7bd,_0x33b3c7._0x21d238)+'apshot'](_0x2702e0);if(!this[_0x28d1b7(0x777,0x686)+_0x47d9bf(0x225,0x38)]()&&!this[_0x47d9bf(_0x33b3c7._0xeec23a,_0x33b3c7._0x16e63f)+'onnectin'+'g']){this[_0x28d1b7(0x434,0x47a)](_0x47d9bf(_0x33b3c7._0x5b7cd6,0x487)+_0x28d1b7(_0x33b3c7._0x562a52,_0x33b3c7._0x3c715f)+'h\x20no\x20act'+_0x28d1b7(_0x33b3c7._0x305619,_0x33b3c7._0x5e8bf7)+'et\x20reaso'+'n='+_0x27a01a),this['clientDe'+_0x47d9bf(_0x33b3c7._0x1e9de3,0x51f)+'tedAtMs']=null;return;}if(this[_0x47d9bf(_0x33b3c7._0x48e7eb,_0x33b3c7._0x14fd38)+_0x47d9bf(0x2fa,_0x33b3c7._0x4b81e7)+_0x28d1b7(_0x33b3c7._0x5575ce,_0x33b3c7._0x5d2e04)]){this[_0x47d9bf(_0x33b3c7._0x2a1346,0x220)]('gateway\x20'+_0x28d1b7(0x62d,_0x33b3c7._0x53c96b)+_0x28d1b7(_0x33b3c7._0xc35c17,0x767)+'dy\x20sched'+_0x47d9bf(0x214,_0x33b3c7._0x4d990b)+'son='+_0x27a01a);return;}const _0x45d3a8=this[_0x28d1b7(0x8f9,_0x33b3c7._0x1943bd)][_0x28d1b7(_0x33b3c7._0x2acf1e,0x72e)+'dleDisco'+_0x47d9bf(0x368,_0x33b3c7._0x364a86)+_0x47d9bf(_0x33b3c7._0x2aa099,_0x33b3c7._0x7f9fff)]??GATEWAY_IDLE_DISCONNECT_DELAY_MS;this[_0x28d1b7(0x515,0x47a)](_0x28d1b7(_0x33b3c7._0x58cbf1,_0x33b3c7._0x6fcfbf)+'idle\x20clo'+_0x28d1b7(0x570,_0x33b3c7._0x296417)+_0x28d1b7(0x5b8,_0x33b3c7._0x5f1aa1)+_0x47d9bf(0x217,0x38)+_0x45d3a8+_0x28d1b7(_0x33b3c7._0x1f29a2,0x4c5)+_0x27a01a+(_0x28d1b7(_0x33b3c7._0x3d7f56,_0x33b3c7._0x54cfb7)+_0x28d1b7(_0x33b3c7._0x57cd01,_0x33b3c7._0x570658)+'nMs=')+this[_0x28d1b7(_0x33b3c7._0x31b88a,_0x33b3c7._0x31d264)+_0x28d1b7(0x55b,_0x33b3c7._0x2f8e28)](this['gatewayC'+_0x28d1b7(_0x33b3c7._0x48ff94,0x499)+'AtMs'])),this['gatewayI'+_0x47d9bf(0x2fa,0x3d2)+'Timer']=setTimeout(()=>{const _0x1e8a83={_0x293f88:0x207};this[_0x5cc583(_0x4ec99f._0x1e08f7,0x57c)+_0x5cc583(0x368,_0x4ec99f._0x3b8952)+_0x11efb4(0x644,0x45a)]=null;if(this[_0x11efb4(_0x4ec99f._0x1c3e07,0x2b5)+_0x11efb4(0x3f3,0x566)]()){this[_0x5cc583(_0x4ec99f._0x5a24cf,0x2ce)](_0x5cc583(_0x4ec99f._0x6e5de6,_0x4ec99f._0x91f8eb)+'idle\x20clo'+_0x5cc583(_0x4ec99f._0x1c9665,_0x4ec99f._0x27f1f4)+_0x11efb4(_0x4ec99f._0x2e7f39,0x761)+'se\x20clien'+_0x5cc583(_0x4ec99f._0x154ed8,0x259)+_0x11efb4(_0x4ec99f._0x26b7cd,_0x4ec99f._0x22092e)+'d');return;}this[_0x11efb4(_0x4ec99f._0x2ae3b0,0x570)+'eway']();const _0x1162d4={};_0x1162d4[_0x5cc583(0x4ac,0x41a)+'onnected']=![],_0x1162d4[_0x11efb4(_0x4ec99f._0x3e45a9,_0x4ec99f._0x36ea95)+'unt']=0x0,this[_0x11efb4(_0x4ec99f._0x6b0fa7,0x443)+'apshot'](_0x1162d4);function _0x5cc583(_0x315fb5,_0x5e55d4){return _0x28d1b7(_0x5e55d4,_0x315fb5- -_0x1e8a83._0x293f88);}this[_0x5cc583(_0x4ec99f._0x8f84d,0x592)+'mandStar'+_0x5cc583(_0x4ec99f._0x7089e9,_0x4ec99f._0x48a39e)]=null;function _0x11efb4(_0x23f268,_0x5ad162){return _0x28d1b7(_0x5ad162,_0x23f268- -0x9b);}this['log'](_0x5cc583(0x3c5,0x3a0)+_0x11efb4(0x7a7,0x5b4)+'fter\x20idl'+'e\x20delay\x20'+_0x5cc583(0x4b8,_0x4ec99f._0x56e688)+_0x27a01a);},_0x45d3a8);}['cancelGa'+_0x1bc0ac(0x709,0x524)+'eClose'](_0x27b4aa){const _0x1d9f3e={_0x620f27:0x3ca,_0x5b0803:0x285,_0x47aa23:0x700,_0x13188a:0x65c,_0x1464d8:0x2d5,_0x5c81cf:0x360,_0x5868e1:0x50d,_0x18583e:0x3e4,_0x5957b4:0x60c,_0x117e68:0x3d3},_0x38a3c0={_0x33fe96:0x58},_0xda7e4e={_0x4c063b:0x7b};if(!this['gatewayI'+_0x19a5fa(_0x1d9f3e._0x620f27,_0x1d9f3e._0x5b0803)+_0x350137(0x68c,0x60d)])return;function _0x19a5fa(_0x57a168,_0x2be969){return _0x1bc0ac(_0x2be969,_0x57a168- -_0xda7e4e._0x4c063b);}clearTimeout(this['gatewayI'+_0x350137(0x3a1,0x49d)+_0x19a5fa(0x53a,_0x1d9f3e._0x47aa23)]),this[_0x350137(0x538,_0x1d9f3e._0x13188a)+_0x350137(0x57e,0x49d)+_0x19a5fa(0x53a,0x388)]=null;function _0x350137(_0x321cb9,_0xa3fa16){return _0x1bc0ac(_0x321cb9,_0xa3fa16-_0x38a3c0._0x33fe96);}_0x27b4aa&&this[_0x19a5fa(_0x1d9f3e._0x1464d8,_0x1d9f3e._0x5c81cf)](_0x350137(_0x1d9f3e._0x5868e1,0x4fa)+_0x350137(0x4ac,_0x1d9f3e._0x18583e)+'se\x20cance'+_0x350137(0x78c,_0x1d9f3e._0x5957b4)+_0x19a5fa(_0x1d9f3e._0x117e68,0x4c7)+_0x27b4aa);}[_0x5ccb08(0x33b,0x189)+_0x1bc0ac(0x224,0x39c)+_0x1bc0ac(0x40e,0x57b)](){const _0x42b4c4={_0x1df6a6:0x61d,_0x3882be:0x12d,_0x436dbc:0xdb,_0x3542ba:0x6cd,_0x2c7c26:0x99,_0x2713ac:0x24a,_0x3a8834:0x12d,_0x20dda5:0x10d,_0x3dad15:0x2c1,_0x1268d0:0x351,_0x227bd5:0x7ef,_0x1fdd4b:0x473,_0x4c83ca:0x60a},_0x5ac25e={_0x515d00:0x2b8,_0x3ad361:0x2e5,_0x3165ce:0x2b4},_0x15a020={_0x25e66b:0x1b8};if(this[_0x3b623f(0x532,_0x42b4c4._0x1df6a6)]||this[_0x192894(_0x42b4c4._0x3882be,_0x42b4c4._0x436dbc)+'tTimer'])return;const _0x1dc30d=this[_0x3b623f(_0x42b4c4._0x3542ba,0x642)][_0x192894(_0x42b4c4._0x3882be,0x29c)+'tBaseDel'+'ayMs']??RECONNECT_BASE_DELAY_MS,_0x456c4d=this[_0x192894(0x165,_0x42b4c4._0x2c7c26)][_0x192894(0x12d,_0x42b4c4._0x2713ac)+_0x3b623f(0x61e,0x457)+_0x3b623f(0x841,0x694)]??RECONNECT_MAX_DELAY_MS,_0x3d03be=Math['min'](_0x456c4d,_0x1dc30d*Math[_0x192894(-0xf9,-_0x42b4c4._0x3a8834)](0x1,this[_0x192894(-_0x42b4c4._0x20dda5,-_0x42b4c4._0x3dad15)+'empt']));function _0x3b623f(_0x4226ed,_0x56ea25){return _0x5ccb08(_0x4226ed,_0x56ea25-0x527);}function _0x192894(_0x53eba5,_0xe3cc6d){return _0x5ccb08(_0xe3cc6d,_0x53eba5-0x4a);}this[_0x192894(-0x18f,-_0x42b4c4._0x1268d0)](_0x3b623f(_0x42b4c4._0x227bd5,0x67d)+_0x3b623f(0x5b0,_0x42b4c4._0x1fdd4b)+_0x192894(0x1d3,0x13c)+_0x3b623f(0x4c1,0x467)+'s='+_0x3d03be),this[_0x3b623f(0x72f,_0x42b4c4._0x4c83ca)+'tTimer']=setTimeout(()=>{const _0x52da72={_0x3a1de4:0x31d};function _0x159dab(_0x59d7fd,_0x2f970f){return _0x192894(_0x2f970f-_0x52da72._0x3a1de4,_0x59d7fd);}function _0x2fcbd0(_0x13e269,_0x18f418){return _0x192894(_0x18f418-_0x15a020._0x25e66b,_0x13e269);}this[_0x2fcbd0(_0x5ac25e._0x515d00,_0x5ac25e._0x3ad361)+'tTimer']=null,void this[_0x2fcbd0(0x25a,_0x5ac25e._0x3165ce)+'elay']();},_0x3d03be);}[_0x5ccb08(-0x13,0x189)+_0x1bc0ac(0x48c,0x5d1)+_0x1bc0ac(0x349,0x36e)](){const _0x26aa3b={_0x2d118e:0x161,_0x4f75be:0x818,_0x9cf40f:0x73,_0x51ceba:0xa,_0x53690f:0x9b9,_0x4f92d1:0x832,_0x574e71:0x4a4,_0x291ad2:0x6e0,_0x252be9:0x8da,_0x195a67:0x53d,_0x6cdf49:0x68b},_0x362fd9={_0x2500f2:0x735,_0x433198:0x141};function _0x1ea847(_0x52486e,_0x1e1a79){return _0x5ccb08(_0x52486e,_0x1e1a79-0x692);}const _0x4f3372={'UMhnz':function(_0x351da5,_0x19dd14,_0x3b3e1d){return _0x351da5(_0x19dd14,_0x3b3e1d);}};if(this[_0x11f388(0x18e,_0x26aa3b._0x2d118e)]||this[_0x1ea847(_0x26aa3b._0x4f75be,0x6e0)+_0x11f388(-0x158,-_0x26aa3b._0x9cf40f)+'r']||!this[_0x11f388(_0x26aa3b._0x51ceba,-0xbb)+_0x1ea847(_0x26aa3b._0x53690f,_0x26aa3b._0x4f92d1)]()||!this[_0x1ea847(0x467,_0x26aa3b._0x574e71)+_0x11f388(-0x12d,-0x157)]())return;const _0xbc9644=this[_0x11f388(0x1b3,0x177)][_0x1ea847(0x71b,_0x26aa3b._0x291ad2)+'etryDela'+_0x1ea847(_0x26aa3b._0x252be9,0x7ff)]??GATEWAY_RETRY_DELAY_MS;function _0x11f388(_0x109973,_0x35af81){return _0x5ccb08(_0x35af81,_0x109973-0x98);}this[_0x1ea847(_0x26aa3b._0x195a67,0x6e0)+_0x1ea847(0x626,0x4a2)+'r']=_0x4f3372[_0x1ea847(0x56f,_0x26aa3b._0x6cdf49)](setTimeout,()=>{function _0x31f568(_0xe1f07a,_0x2c8d47){return _0x1ea847(_0xe1f07a,_0x2c8d47- -0x48a);}function _0x1668cb(_0x1eeeb1,_0xd0e54b){return _0x1ea847(_0x1eeeb1,_0xd0e54b- -0x155);}this['gatewayR'+_0x31f568(0x102,0x18)+'r']=null,this[_0x1668cb(0x6e8,_0x362fd9._0x2500f2)+_0x1668cb(0x559,0x4b2)+_0x31f568(0x25c,_0x362fd9._0x433198)]();},_0xbc9644);}['startHea'+_0x5ccb08(0x213,0x140)](){const _0x38eebd={_0x11bdf8:0x51,_0x370aa9:0xa9,_0x24a216:0x1c5,_0x7d96db:0x1fa,_0x473b0d:0xc5,_0xc38fe8:0x208,_0x5b176a:0x24f},_0xb3252e={_0x20aea2:0x19e,_0x233bfe:0x268,_0x190a78:0x3d3,_0x5c4f7d:0x175,_0x26614f:0x3fe,_0x4a8550:0x3d4,_0x5d4de9:0xaf,_0x37ceea:0x12e,_0x94afb1:0x2c,_0x53da72:0x2f4,_0x204e3b:0x48c},_0x37d80b={_0x3d2be8:0x43c},_0x50c0fa={_0x1957f8:0x597};function _0x1a2323(_0x330e39,_0x48e4de){return _0x1bc0ac(_0x330e39,_0x48e4de- -_0x50c0fa._0x1957f8);}function _0x4ac853(_0x4f2b70,_0x49ef17){return _0x1bc0ac(_0x49ef17,_0x4f2b70- -_0x37d80b._0x3d2be8);}this[_0x1a2323(-_0x38eebd._0x11bdf8,-0xb9)+_0x4ac853(0x25e,_0x38eebd._0x370aa9)](),this[_0x4ac853(_0x38eebd._0x24a216,_0x38eebd._0x7d96db)+_0x4ac853(_0x38eebd._0x473b0d,-0x29)]=setInterval(()=>{const _0x1fefed={_0x595305:0x88},_0x5f23c2={_0x4fb2be:0x121},_0x37924e=this[_0x4e5609(0x251,0x13b)+'ket'];function _0x242d66(_0x4f0830,_0x5c87df){return _0x4ac853(_0x4f0830-_0x5f23c2._0x4fb2be,_0x5c87df);}if(!_0x37924e||_0x37924e[_0x4e5609(-_0xb3252e._0x20aea2,0x1b)+'te']!==_0xcdd741[_0x242d66(_0xb3252e._0x233bfe,0x8a)])return;const _0x61c873=this['options']['heartbea'+_0x242d66(_0xb3252e._0x190a78,0x2e8)+'Ms']??HEARTBEAT_TIMEOUT_MS;if(Date[_0x242d66(0x5d,-_0xb3252e._0x5c4f7d)]()-this[_0x242d66(_0xb3252e._0x26614f,0x3f1)+_0x242d66(0x1fe,_0xb3252e._0x4a8550)+'yMs']>_0x61c873){this[_0x242d66(0x35,0xfa)]('relay\x20he'+_0x4e5609(0xbf,_0xb3252e._0x5d4de9)+_0x242d66(0x351,0x2a7)+'t'),_0x37924e[_0x4e5609(-_0xb3252e._0x37ceea,-_0xb3252e._0x94afb1)+'e']();return;}function _0x4e5609(_0x1e8e8d,_0x19727c){return _0x4ac853(_0x19727c-_0x1fefed._0x595305,_0x1e8e8d);}_0x37924e[_0x242d66(_0xb3252e._0x53da72,_0xb3252e._0x204e3b)]();},this[_0x4ac853(_0x38eebd._0xc38fe8,0x3f5)][_0x4ac853(_0x38eebd._0x24a216,_0x38eebd._0x5b176a)+'tInterva'+'lMs']??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x1bc0ac(0x548,0x69a)](){const _0x3cace2={_0x463484:0x6ed,_0x5f2c1d:0x6a5,_0x54be11:0x285},_0x1fb1f0={_0x4ed19a:0x26d},_0x1d4160={_0x303a2f:0x615};function _0x19fc63(_0x267fc5,_0x418a94){return _0x5ccb08(_0x267fc5,_0x418a94-_0x1d4160._0x303a2f);}function _0x2e794f(_0x34aa3b,_0x3cc9e0){return _0x5ccb08(_0x3cc9e0,_0x34aa3b-_0x1fb1f0._0x4ed19a);}this[_0x19fc63(0x832,0x6ed)+_0x2e794f(0x245,0x96)]&&(clearInterval(this[_0x19fc63(0x73c,_0x3cace2._0x463484)+_0x19fc63(_0x3cace2._0x5f2c1d,0x5ed)]),this[_0x19fc63(0x811,_0x3cace2._0x463484)+_0x2e794f(0x245,_0x3cace2._0x54be11)]=null);}['pushPend'+_0x1bc0ac(0x64b,0x548)+_0x5ccb08(-0x1a3,-0xe9)+'e'](_0x129558){const _0x3e84b5={_0x41e92d:0x595,_0x444633:0x424,_0x1f19ff:0x2c7,_0x1cc019:0x310,_0x51185b:0x64b,_0x264e97:0x61e,_0x27596e:0x70b,_0x45aa92:0x595,_0x2322c8:0x896,_0x1289aa:0xdb,_0x420a54:0x48e,_0x5862a4:0x640,_0x24f5cc:0x1a9,_0x48a7d8:0x125,_0x3e359b:0x70f,_0x4bfbfd:0x261},_0x158aac={_0x4939d3:0x19e};function _0x5034e4(_0x4916b7,_0x2fc38b){return _0x1bc0ac(_0x4916b7,_0x2fc38b-_0x158aac._0x4939d3);}function _0x451529(_0x32384f,_0x64d422){return _0x1bc0ac(_0x64d422,_0x32384f- -0x2d4);}this[_0x5034e4(0x3e3,_0x3e84b5._0x41e92d)+'atewayMe'+_0x451529(_0x3e84b5._0x444633,_0x3e84b5._0x1f19ff)][_0x451529(0xab,0x283)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x5034e4(0x559,0x595)+_0x451529(_0x3e84b5._0x1cc019,0x2b2)+'ssages'][_0x5034e4(_0x3e84b5._0x51185b,_0x3e84b5._0x264e97)](),this[_0x5034e4(_0x3e84b5._0x27596e,_0x3e84b5._0x45aa92)+_0x451529(0x310,0x1b5)+_0x5034e4(0x91c,_0x3e84b5._0x2322c8)][_0x5034e4(0x413,0x5eb)](_0x129558),this[_0x451529(0x7c,-_0x3e84b5._0x1289aa)](_0x5034e4(_0x3e84b5._0x420a54,_0x3e84b5._0x5862a4)+_0x5034e4(0x636,0x5d8)+_0x451529(_0x3e84b5._0x24f5cc,0x1d4)+this[_0x451529(0x123,_0x3e84b5._0x48a7d8)+_0x5034e4(0x593,0x782)+_0x5034e4(_0x3e84b5._0x3e359b,0x896)][_0x451529(0xab,_0x3e84b5._0x4bfbfd)]);}['observeC'+_0x1bc0ac(0x53f,0x502)+_0x5ccb08(-0x5b,-0x1c0)](_0x58730c,_0x27731a){const _0x26fc71={_0x35f941:0x2ac,_0x181622:0x252,_0x441100:0x259,_0x201c53:0x64,_0x5983f8:0xe7,_0x6eccd2:0xc6,_0x115279:0x29,_0x3661e9:0x10b,_0x57dddd:0xd8},_0x1f6089={_0x132ebc:0x13c};function _0x6cf1f8(_0x19f85b,_0x2aee78){return _0x5ccb08(_0x2aee78,_0x19f85b-_0x1f6089._0x132ebc);}const _0x1be5c={};_0x1be5c['OwKio']=_0x6cf1f8(0x32f,0x3ce)+'d';const _0x54c876=_0x1be5c,_0x4a51d9=Date['now'](),_0x197099=new Map(this[_0x6cf1f8(_0x26fc71._0x35f941,0x318)]['connecte'+_0x6cf1f8(0x192,0x2e1)][_0x6cf1f8(_0x26fc71._0x181622,0x1a8)](_0x44d8c8=>[_0x44d8c8['id'],{..._0x44d8c8}])),_0x520b81=_0x197099['get'](_0x58730c)??{'id':_0x58730c,'label':_0x27731a,'state':_0x54c876[_0x65ffb9(-_0x26fc71._0x441100,-0x185)],'lastSeenMs':_0x4a51d9};_0x520b81['label']=_0x27731a,_0x520b81[_0x65ffb9(_0x26fc71._0x201c53,_0x26fc71._0x5983f8)]=_0x54c876['OwKio'],_0x520b81[_0x65ffb9(0x15c,_0x26fc71._0x6eccd2)+'Ms']=_0x4a51d9,_0x197099[_0x65ffb9(0x89,-0x63)](_0x58730c,_0x520b81);const _0x322b5b=[..._0x197099['values']()][_0x65ffb9(-_0x26fc71._0x115279,_0x26fc71._0x3661e9)]((_0xdcd583,_0x4cc657)=>_0x4cc657[_0x6cf1f8(0x316,0x358)+'Ms']-_0xdcd583[_0x65ffb9(0x15c,0xa0)+'Ms'])['slice'](0x0,MAX_DEVICE_DETAILS),_0x596861={};_0x596861['connecte'+'dDevices']=_0x322b5b;function _0x65ffb9(_0x14827d,_0x363b1d){return _0x5ccb08(_0x363b1d,_0x14827d- -0x7e);}this[_0x6cf1f8(0xd0,0xce)+_0x65ffb9(0xcd,-_0x26fc71._0x57dddd)](_0x596861);}['markDevi'+'cesRecen'+'t'](){const _0x1a0ed2={_0x5efaab:0x94,_0x4ff063:0x6fb,_0x2daca8:0x5aa};function _0x1d6595(_0x2af576,_0x51aabd){return _0x5ccb08(_0x2af576,_0x51aabd-0x100);}function _0x3c2191(_0x44c0b2,_0x30fc0d){return _0x5ccb08(_0x30fc0d,_0x44c0b2-0x5e5);}this[_0x1d6595(0xb5,_0x1a0ed2._0x5efaab)+'apshot']({'connectedDevices':this['snapshot']['connecte'+'dDevices'][_0x3c2191(_0x1a0ed2._0x4ff063,_0x1a0ed2._0x2daca8)](_0x102764=>({..._0x102764,'state':_0x1d6595(-0xfe,0x4a)}))});}[_0x5ccb08(-0x2c5,-0x10e)+_0x5ccb08(0x96,0x88)+_0x5ccb08(0x3,-0x16)](_0x12d76d){const _0x418ff8={_0x473bca:0x6a5,_0x1d6f51:0x6db,_0x4fdba4:0x3e4,_0x44ee68:0x5ee,_0x469aee:0x2ae,_0x47eb7e:0x3bf,_0x8560e7:0x524,_0x4f2279:0x6b7,_0x21da25:0x62e,_0x4f3271:0x491,_0x3978cb:0x706,_0x9a7906:0x64d,_0x3c4081:0x6d9,_0x186cde:0x5fc,_0x203773:0x608,_0x1a9aa8:0x67e},_0x25e41b={_0x242452:0x47e};function _0x23c6d2(_0x4b65de,_0x37c219){return _0x5ccb08(_0x37c219,_0x4b65de-_0x25e41b._0x242452);}if(this[_0x27dd2f(_0x418ff8._0x473bca,0x85d)][_0x27dd2f(0x7f4,_0x418ff8._0x1d6f51)+_0x23c6d2(0x3bf,0x2e2)+_0x23c6d2(0x524,_0x418ff8._0x4fdba4)]['some'](_0x54d701=>_0x54d701[_0x27dd2f(0x86c,0x6d9)+'d']===_0x12d76d[_0x23c6d2(0x46a,0x41d)+'d']))return;function _0x27dd2f(_0xbddc2d,_0x27638c){return _0x5ccb08(_0xbddc2d,_0x27638c-0x6ed);}const _0x4f9bfc=[...this[_0x23c6d2(_0x418ff8._0x44ee68,0x684)][_0x23c6d2(0x46c,_0x418ff8._0x469aee)+_0x23c6d2(_0x418ff8._0x47eb7e,0x203)+_0x23c6d2(_0x418ff8._0x8560e7,_0x418ff8._0x4f2279)],_0x12d76d][_0x27dd2f(0x6a3,0x710)](-MAX_PENDING_PAIR_REQUESTS),_0x116c2b={};_0x116c2b[_0x23c6d2(0x46c,0x5bc)+_0x27dd2f(0x7ac,_0x418ff8._0x21da25)+'sts']=_0x4f9bfc,this[_0x23c6d2(0x412,0x3e5)+'apshot'](_0x116c2b),this[_0x23c6d2(0x599,_0x418ff8._0x4f3271)]['onPendin'+'gPairReq'+_0x27dd2f(0x599,_0x418ff8._0x3978cb)]?.(_0x12d76d),this[_0x27dd2f(0x465,0x514)]('pair\x20req'+'uest\x20pen'+_0x27dd2f(0x473,_0x418ff8._0x9a7906)+_0x27dd2f(_0x418ff8._0x3c4081,_0x418ff8._0x186cde)+_0x12d76d[_0x23c6d2(0x46a,0x28f)+'d']+(_0x27dd2f(0x4f8,_0x418ff8._0x203773)+'d=')+(_0x12d76d[_0x23c6d2(0x5d0,0x680)]||_0x23c6d2(_0x418ff8._0x1a9aa8,0x5bc)+'>'));}[_0x5ccb08(0x189,0x5e)+_0x1bc0ac(0x655,0x521)+_0x1bc0ac(0x696,0x500)](_0x45a611,_0x2de1d5){const _0x1e461b={_0x2c02cb:0xe4,_0x5c9ae6:0x158,_0x5a4e9a:0xc1,_0x2c92e1:0x178,_0x5d57ae:0x313,_0x3fb81d:0x1ad,_0x5c1c3f:0x10,_0x5840a7:0x2,_0x442c2f:0x26e},_0x35e5b4={_0xe1412f:0x62},_0x4bbee7=this['snapshot']['pendingP'+_0x4ab0be(-_0x1e461b._0x2c02cb,-_0x1e461b._0x5c9ae6)+_0x49c2c1(-_0x1e461b._0x5a4e9a,0x108)][_0x49c2c1(0x14d,_0x1e461b._0x2c92e1)](_0x2d246f=>_0x2d246f[_0x49c2c1(-0xe3,0x4e)+'d']===_0x45a611?{..._0x2d246f,'status':_0x2de1d5===_0x49c2c1(-0x24,-0x7c)||_0x2de1d5===_0x4ab0be(-0x365,-0x25c)?_0x2de1d5:_0x2d246f[_0x4ab0be(-0xc4,-0x79)]}:_0x2d246f),_0x391d9f={};function _0x49c2c1(_0xb329fa,_0x8a3cc9){return _0x5ccb08(_0xb329fa,_0x8a3cc9-_0x35e5b4._0xe1412f);}_0x391d9f[_0x49c2c1(-0xef,0x50)+_0x4ab0be(-_0x1e461b._0x5d57ae,-_0x1e461b._0x5c9ae6)+'sts']=_0x4bbee7;function _0x4ab0be(_0x3a8d02,_0x48d6bf){return _0x5ccb08(_0x3a8d02,_0x48d6bf- -0x99);}this['updateSn'+_0x49c2c1(0x350,_0x1e461b._0x3fb81d)](_0x391d9f),this['log'](_0x4ab0be(_0x1e461b._0x5c1c3f,_0x1e461b._0x5840a7)+'uest\x20res'+_0x4ab0be(-0x11f,-_0x1e461b._0x442c2f)+'questId='+_0x45a611+(_0x4ab0be(-0x293,-0x270)+'n=')+_0x2de1d5);}[_0x5ccb08(0x152,-0x6c)+_0x5ccb08(0x244,0x14b)](_0x15600f){const _0x258136={_0x8c88cd:0x3f5,_0x81f1a9:0x2ec,_0x34d030:0x4bd,_0x4cd402:0x3d8,_0x39627f:0x2ac,_0x2c65e2:0x282},_0x3924ce={_0x5d77c9:0x8c};Object[_0x15314e(0x37e,_0x258136._0x8c88cd)](this[_0x37a7a8(0x60d,0x458)],_0x15600f,{'lastUpdatedMs':Date[_0x37a7a8(_0x258136._0x81f1a9,0x4a3)]()});function _0x15314e(_0x7b8991,_0x27648a){return _0x1bc0ac(_0x27648a,_0x7b8991- -0x187);}function _0x37a7a8(_0x260b12,_0xbb5c3d){return _0x1bc0ac(_0xbb5c3d,_0x260b12- -_0x3924ce._0x5d77c9);}this[_0x15314e(_0x258136._0x34d030,_0x258136._0x4cd402)][_0x15314e(_0x258136._0x39627f,0x2cc)]?.(this['getSnaps'+_0x37a7a8(0x453,_0x258136._0x2c65e2)]());}[_0x1bc0ac(0x3e5,0x350)](_0x20daa5){const _0x22004f={_0x1f30c4:0x1c0,_0x2c9ae4:0x275};function _0x5a568b(_0x261794,_0x4ed306){return _0x1bc0ac(_0x4ed306,_0x261794- -0x193);}function _0x501a56(_0x46752f,_0x326c9b){return _0x1bc0ac(_0x46752f,_0x326c9b- -0x49f);}this[_0x501a56(_0x22004f._0x1f30c4,0x1a5)][_0x501a56(0x166,_0x22004f._0x2c9ae4)]?.(_0x20daa5);}['isRelayO'+_0x1bc0ac(0x6bc,0x6c9)](){const _0x4da133={_0xd21758:0x6e,_0x233953:0x121},_0x3c6d85={_0x44991d:0xed};function _0x2e66de(_0xd572bc,_0x2173f6){return _0x1bc0ac(_0xd572bc,_0x2173f6- -0x4dc);}function _0x519a40(_0x3545c7,_0x3d4ecf){return _0x1bc0ac(_0x3d4ecf,_0x3545c7- -_0x3c6d85._0x44991d);}return this['relaySoc'+_0x2e66de(-0x255,-_0x4da133._0xd21758)]?.[_0x2e66de(-_0x4da133._0x233953,-0x10d)+'te']===_0xcdd741['OPEN'];}[_0x5ccb08(0x1b0,0x33)+_0x5ccb08(-0x2c8,-0x1b9)](){return this['gatewayS'+'ocket']?.['readySta'+'te']===_0xcdd741['OPEN'];}[_0x1bc0ac(0x31a,0x33b)+_0x1bc0ac(0x2a8,0x364)](){const _0x2aec28={_0x2e85ce:0x373,_0x5093f5:0x61a,_0x34ccc3:0x5a1,_0x25750b:0x56d,_0x5430db:0x4f5},_0x2459a8={_0x565c21:0x176};function _0x49a937(_0x1947cd,_0x21e3f6){return _0x1bc0ac(_0x21e3f6,_0x1947cd- -0x177);}const _0x54e7bb={};_0x54e7bb['myOyI']=function(_0x3b63f6,_0x4276c7){return _0x3b63f6>_0x4276c7;};function _0x854412(_0x23eff8,_0x3d27cf){return _0x1bc0ac(_0x23eff8,_0x3d27cf-_0x2459a8._0x565c21);}const _0x4ff99b=_0x54e7bb;return this[_0x49a937(0x522,_0x2aec28._0x2e85ce)][_0x854412(0x754,0x738)+'unt']>0x0||_0x4ff99b[_0x854412(_0x2aec28._0x5093f5,0x4ef)](this[_0x854412(_0x2aec28._0x34ccc3,_0x2aec28._0x25750b)+'atewayMe'+'ssages'][_0x854412(0x4ed,_0x2aec28._0x5430db)],0x0);}['clearTim'+_0x1bc0ac(0x24e,0x37d)](){const _0x6fc353={_0x19681b:0x8b,_0x32ad6f:0xa9,_0x5855b6:0x2d5,_0xa53531:0x3d8,_0x311f95:0x59e,_0x180ecf:0x4e3,_0x34f18d:0xe9,_0x44fedd:0x2d,_0xd96a5f:0x214,_0x86c936:0x213},_0x4ba216={_0x1ebfd8:0xd6},_0x130c1b={'tnMEz':function(_0x53de5a,_0x5a3fd5){return _0x53de5a(_0x5a3fd5);}};this[_0x115bce(_0x6fc353._0x19681b,_0x6fc353._0x32ad6f)+_0x115bce(0x247,_0x6fc353._0x5855b6)]();function _0x3132fb(_0x456616,_0x55f4ad){return _0x5ccb08(_0x456616,_0x55f4ad-0x400);}this['reconnec'+_0x3132fb(0x57e,_0x6fc353._0xa53531)]&&(_0x130c1b[_0x115bce(0x1c7,0x10c)](clearTimeout,this['reconnec'+'tTimer']),this[_0x3132fb(_0x6fc353._0x311f95,_0x6fc353._0x180ecf)+_0x115bce(0xae,_0x6fc353._0x34f18d)]=null);this['gatewayR'+'etryTime'+'r']&&(clearTimeout(this[_0x115bce(0x124,-_0x6fc353._0x44fedd)+'etryTime'+'r']),this['gatewayR'+_0x3132fb(_0x6fc353._0xd96a5f,0x210)+'r']=null);function _0x115bce(_0xfea738,_0x526138){return _0x5ccb08(_0x526138,_0xfea738-_0x4ba216._0x1ebfd8);}this[_0x3132fb(0x396,0x34b)+_0x3132fb(0x4cc,0x3fb)+_0x3132fb(_0x6fc353._0x86c936,0x3a9)]();}[_0x1bc0ac(0x60a,0x5f9)+_0x5ccb08(-0x11d,-0x1cf)](_0x4a1e39){const _0xedf7ed={_0x19fbb4:0x32c,_0x1e04d:0x372},_0x35f24a={_0x28913c:0x1a4};function _0x5b347b(_0x504945,_0x35ecc0){return _0x1bc0ac(_0x35ecc0,_0x504945- -0xba);}function _0x31614a(_0x2bea64,_0x349f1d){return _0x1bc0ac(_0x2bea64,_0x349f1d-_0x35f24a._0x28913c);}return _0x4a1e39==null?null:Math[_0x5b347b(_0xedf7ed._0x19fbb4,_0xedf7ed._0x1e04d)](0x0,Date[_0x31614a(0x6a9,0x51c)]()-_0x4a1e39);}};function shouldRecycleGatewayForFreshClient(_0x197233,_0x3e275e,_0x545873,_0x4a1c0f){const _0x1fbd28={_0x4d3e1b:0x3c0,_0x1e2ed7:0x22f,_0x3c66b9:0x3a9},_0xb1a16c={_0x2b312f:0xfc},_0x2512ef={};_0x2512ef[_0x5aca0b(_0x1fbd28._0x4d3e1b,0x3a9)]=function(_0x3d0811,_0x8555ff){return _0x3d0811>_0x8555ff;};function _0x5aca0b(_0x4c873e,_0x38c5df){return _0x1bc0ac(_0x4c873e,_0x38c5df- -0x2e6);}const _0x1cc327=_0x2512ef;function _0x2a696f(_0x1443ec,_0x2fb8a5){return _0x1bc0ac(_0x1443ec,_0x2fb8a5-_0xb1a16c._0x2b312f);}return _0x545873&&_0x1cc327[_0x5aca0b(_0x1fbd28._0x1e2ed7,_0x1fbd28._0x3c66b9)](_0x3e275e,0x0)&&(_0x197233===0x0||_0x4a1c0f);}function summarizeJsonFrame(_0x5b1061){const _0x3c98be={_0x1274f2:0x35b,_0x5a096e:0x42f,_0x3da161:0x341,_0x4fa2d5:0x3ec,_0x136e23:0x380,_0x3631cb:0x5b2,_0x1c56d0:0x1a1,_0x4ca59d:0x9d,_0x1bdf90:0x4da,_0x50ccb9:0x681,_0x550964:0x9,_0x42a7a5:0x12,_0x5428aa:0x429,_0x28dff3:0x5b2,_0x17ec7c:0x313,_0x259765:0x4ad,_0x3b3213:0x60a,_0x3927a2:0x430,_0x3fb1f0:0x119,_0x1eb2db:0x78,_0x49e2d6:0x263,_0x5b43e7:0x5b8,_0x51b75c:0x2a3,_0x220bab:0x41d,_0x364c3d:0x3bf,_0x1c1b67:0x2d9,_0x412b71:0x78c,_0x18ca4b:0x34d,_0x1ea74a:0x77,_0x194faf:0x5d8,_0x5c47fc:0x176,_0x281266:0x2f6,_0x326576:0x493,_0x467a0e:0x2d1,_0xfb0c80:0x51b,_0x21a2e3:0x80,_0x37f531:0xc8,_0x5e8f24:0x0},_0x481cbf={_0x32c424:0x4aa};function _0x438667(_0x4b2067,_0x47e95f){return _0x5ccb08(_0x4b2067,_0x47e95f-_0x481cbf._0x32c424);}const _0x52a079={};_0x52a079[_0x438667(0x382,0x4c2)]=_0x5f1667(0x50b,_0x3c98be._0x1274f2)+'>',_0x52a079[_0x5f1667(0x1ff,0x70)]=function(_0x59b9bf,_0x2c016c){return _0x59b9bf===_0x2c016c;},_0x52a079[_0x438667(_0x3c98be._0x5a096e,_0x3c98be._0x3da161)]='res',_0x52a079[_0x438667(_0x3c98be._0x4fa2d5,_0x3c98be._0x136e23)]=_0x438667(0x3bd,_0x3c98be._0x3631cb),_0x52a079[_0x5f1667(_0x3c98be._0x1c56d0,_0x3c98be._0x4ca59d)]=_0x438667(0x6d3,_0x3c98be._0x1bdf90);const _0x21ac28=_0x52a079;function _0x5f1667(_0x568683,_0xffdbdb){return _0x5ccb08(_0x568683,_0xffdbdb-0x15b);}try{const _0x43e235=JSON[_0x438667(0x70c,_0x3c98be._0x50ccb9)](_0x5b1061);if(_0x43e235['type']===_0x5f1667(0xdf,_0x3c98be._0x550964)&&typeof _0x43e235[_0x5f1667(0x1b1,-_0x3c98be._0x42a7a5)]===_0x438667(_0x3c98be._0x5428aa,_0x3c98be._0x28dff3))return _0x438667(_0x3c98be._0x17ec7c,_0x3c98be._0x259765)+_0x438667(_0x3c98be._0x3b3213,_0x3c98be._0x3927a2)+_0x43e235[_0x5f1667(-_0x3c98be._0x3fb1f0,-0x12)]+_0x438667(0x4a4,0x5e9)+(typeof _0x43e235['id']===_0x5f1667(_0x3c98be._0x1eb2db,_0x3c98be._0x49e2d6)?_0x43e235['id']:_0x21ac28[_0x5f1667(0x1e,0x173)]);if(_0x43e235[_0x438667(0x485,_0x3c98be._0x5b43e7)]===_0x438667(_0x3c98be._0x51b75c,_0x3c98be._0x220bab)&&_0x21ac28[_0x438667(0x1f9,_0x3c98be._0x364c3d)](typeof _0x43e235[_0x438667(_0x3c98be._0x1c1b67,_0x3c98be._0x220bab)],_0x438667(_0x3c98be._0x412b71,0x5b2)))return'event\x20na'+_0x5f1667(_0x3c98be._0x18ca4b,0x170)+_0x43e235[_0x438667(0x29c,0x41d)];if(_0x43e235[_0x438667(0x779,_0x3c98be._0x5b43e7)]===_0x21ac28[_0x438667(0x18e,0x341)]){const _0xd5be49=typeof _0x43e235['id']===_0x21ac28[_0x438667(0x4f0,_0x3c98be._0x136e23)]?_0x43e235['id']:_0x5f1667(0x501,0x35b)+'>',_0x2e6ace=_0x43e235['ok']===!![]?_0x21ac28['YovlE']:_0x5f1667(_0x3c98be._0x1ea74a,0x161),_0x34c4c3=typeof _0x43e235[_0x438667(0x65f,_0x3c98be._0x194faf)]?.['code']===_0x21ac28['jjAix']?_0x43e235[_0x5f1667(_0x3c98be._0x5c47fc,0x289)][_0x5f1667(0x470,_0x3c98be._0x281266)]:_0x5f1667(_0x3c98be._0x326576,_0x3c98be._0x467a0e);return _0x438667(0x64a,_0x3c98be._0xfb0c80)+_0xd5be49+_0x5f1667(_0x3c98be._0x21a2e3,0x8)+_0x2e6ace+_0x5f1667(-_0x3c98be._0x37f531,_0x3c98be._0x5e8f24)+_0x34c4c3;}return null;}catch{return null;}}function shouldDropStaleConnectAfterGatewayReopen(_0x4c6c6e,_0x14fcae){const _0x532ef7={_0x3d47fa:0x5c3},_0x32d4a5={};_0x32d4a5[_0x42401c(0x28e,0x356)]=function(_0x23d4c8,_0x54708c){return _0x23d4c8&&_0x54708c;};function _0x42401c(_0x4e8a94,_0x38f609){return _0x5ccb08(_0x4e8a94,_0x38f609-0x38c);}const _0x258db1=_0x32d4a5;function _0x1dbd9b(_0x5810fe,_0x38cc79){return _0x5ccb08(_0x5810fe,_0x38cc79-0x5f9);}return _0x258db1[_0x1dbd9b(0x5a1,_0x532ef7._0x3d47fa)](!_0x4c6c6e,_0x14fcae);}function buildRelayWsUrl(_0x219c36){const _0x2c45b1={_0x2e29c1:0xee,_0xcb945a:0x1db,_0x5cf038:0x201,_0x594199:0x111,_0x3a8d91:0x3cd,_0x5a290e:0x327,_0x58370c:0x208,_0xc5c74:0x19c,_0x37e4c4:0x263,_0x47eaae:0x3b7,_0x2cae1d:0x332,_0x46db69:0x487,_0x21a4dd:0x4b3,_0x98022d:0x494,_0x4161ce:0x361,_0x5491c7:0x352,_0x25aa76:0x473,_0x2df527:0x479},_0x39edd5={};_0x39edd5[_0x38a4b9(0x1bc,_0x2c45b1._0x2e29c1)]='gatewayI'+'d';const _0x568a1c=_0x39edd5,_0x2ac9ec=new URL(_0x219c36[_0xd9dbf8(0x1aa,_0x2c45b1._0xcb945a)]);(!_0x2ac9ec[_0x38a4b9(0x25c,_0x2c45b1._0x5cf038)]||_0x2ac9ec[_0xd9dbf8(0x34a,0x303)]==='/')&&(_0x2ac9ec[_0x38a4b9(0x25c,_0x2c45b1._0x594199)]=_0x38a4b9(0x32a,_0x2c45b1._0x3a8d91));_0x2ac9ec[_0x38a4b9(0x206,0x3bd)+_0x38a4b9(_0x2c45b1._0x5a290e,0x176)]['set'](_0x568a1c[_0x38a4b9(0x1bc,_0x2c45b1._0x58370c)],_0x219c36[_0xd9dbf8(0x282,0x38b)+'d']),_0x2ac9ec['searchPa'+_0x38a4b9(0x327,_0x2c45b1._0xc5c74)][_0xd9dbf8(_0x2c45b1._0x37e4c4,_0x2c45b1._0x47eaae)](_0xd9dbf8(0x1c3,_0x2c45b1._0x2cae1d),'gateway');function _0xd9dbf8(_0x5ad69b,_0x456de5){return _0x1bc0ac(_0x5ad69b,_0x456de5- -0x279);}_0x2ac9ec['searchPa'+_0xd9dbf8(0x2cc,0x3ce)][_0xd9dbf8(_0x2c45b1._0x46db69,0x3b7)](_0xd9dbf8(_0x2c45b1._0x21a4dd,_0x2c45b1._0x98022d),_0x219c36['instance'+'Id']);function _0x38a4b9(_0x2ac200,_0x44b7da){return _0x1bc0ac(_0x44b7da,_0x2ac200- -0x320);}return _0x2ac9ec['searchPa'+_0xd9dbf8(0x4fb,0x3ce)][_0xd9dbf8(0x4a7,0x3b7)](_0x38a4b9(_0x2c45b1._0x4161ce,0x2c6),_0x219c36[_0xd9dbf8(0x4ab,_0x2c45b1._0x5491c7)+_0xd9dbf8(0x5a6,_0x2c45b1._0x25aa76)]),_0x2ac9ec[_0xd9dbf8(0x5bf,_0x2c45b1._0x2df527)]();}function redactRelayWsUrl(_0x24ffda){const _0x3975e9={_0x5e9293:0x13a,_0x496f6d:0x245,_0x14a5f8:0x229,_0x1daf40:0x20b,_0x508a0b:0x33,_0x1463f5:0x1f4,_0x54d22d:0x3c4,_0x12ba6b:0x154},_0x1156b8={_0x1cb7dd:0x505};function _0x2288b3(_0xa310be,_0x1756b0){return _0x1bc0ac(_0x1756b0,_0xa310be- -_0x1156b8._0x1cb7dd);}const _0x401d42=new URL(_0x24ffda);function _0x4154fc(_0x3802a9,_0x3442a4){return _0x1bc0ac(_0x3442a4,_0x3802a9- -0x43c);}return _0x401d42[_0x2288b3(0x21,-0x157)+'rams'][_0x4154fc(0x1c4,_0x3975e9._0x5e9293)](_0x4154fc(_0x3975e9._0x496f6d,_0x3975e9._0x14a5f8))&&_0x401d42['searchPa'+_0x4154fc(_0x3975e9._0x1daf40,_0x3975e9._0x508a0b)][_0x4154fc(_0x3975e9._0x1463f5,0x321)](_0x4154fc(0x245,_0x3975e9._0x54d22d),_0x4154fc(_0x3975e9._0x12ba6b,0x22a)+'d>'),_0x401d42[_0x2288b3(0x1ed,0x58)]();}function normalizeText(_0x545677){const _0x36aae3={_0x580c5e:0x289,_0x391624:0x2cf,_0x2baa40:0x71,_0x32a95a:0x6a,_0x27e6b2:0x1d3,_0x6443b4:0xf7,_0x2a0b16:0x1d3},_0x1d9eee={_0x36baee:0x181},_0x454e1b={_0x1d6085:0xa},_0x54b0d2={};function _0x40dafd(_0x38ccd6,_0x30d1c6){return _0x5ccb08(_0x38ccd6,_0x30d1c6-_0x454e1b._0x1d6085);}_0x54b0d2[_0x40dafd(-0x113,0x75)]=_0x470fb9(0xc9,_0x36aae3._0x580c5e);function _0x470fb9(_0x34368d,_0x5b5052){return _0x5ccb08(_0x34368d,_0x5b5052-_0x1d9eee._0x36baee);}const _0x540160=_0x54b0d2,_0x1da9f9=('3|1|0|2|'+'4')[_0x470fb9(0x4a2,_0x36aae3._0x391624)]('|');let _0x2a0ace=0x0;while(!![]){switch(_0x1da9f9[_0x2a0ace++]){case'0':if(Array[_0x40dafd(-0xb2,-0x16f)](_0x545677))return Buffer[_0x470fb9(0x247,_0x36aae3._0x2baa40)](_0x545677)[_0x40dafd(_0x36aae3._0x32a95a,_0x36aae3._0x27e6b2)](_0x40dafd(0xc9,-0x80));continue;case'1':if(Buffer[_0x40dafd(-0xe,-0x1d7)](_0x545677))return _0x545677[_0x40dafd(0x93,0x1d3)](_0x470fb9(-0x2e,_0x36aae3._0x6443b4));continue;case'2':if(_0x545677 instanceof ArrayBuffer)return Buffer['from'](_0x545677)['toString'](_0x470fb9(0x276,0xf7));continue;case'3':if(typeof _0x545677===_0x540160[_0x470fb9(_0x36aae3._0x2a0b16,0x1ec)])return _0x545677;continue;case'4':return null;}break;}}function normalizeBinary(_0x3d1540){const _0x16e081={_0x1559e3:0x556,_0x31845c:0x576,_0x434621:0x3dd,_0x1ca253:0x3d2,_0x4bd7ec:0x25d,_0x42974a:0x444,_0x1b4d9e:0x445,_0x222ddc:0x4ae,_0x5879ed:0x696,_0x4e3b83:0x5cc},_0x43cd51={};_0x43cd51[_0x24c75f(0x670,0x6d7)]=function(_0x3db174,_0x41abfe){return _0x3db174===_0x41abfe;},_0x43cd51['yuzqa']=_0x24c75f(_0x16e081._0x1559e3,0x534);function _0x5c5529(_0x1826b1,_0x1b6e32){return _0x1bc0ac(_0x1826b1,_0x1b6e32- -0x1ed);}const _0x2e6ae0=_0x43cd51;function _0x24c75f(_0x3b52f7,_0x203e55){return _0x1bc0ac(_0x3b52f7,_0x203e55-0x95);}if(Buffer[_0x24c75f(_0x16e081._0x31845c,_0x16e081._0x434621)](_0x3d1540))return _0x3d1540;if(_0x2e6ae0[_0x5c5529(_0x16e081._0x1ca253,0x455)](typeof _0x3d1540,_0x5c5529(_0x16e081._0x4bd7ec,_0x16e081._0x42974a)))return Buffer[_0x24c75f(0x49f,0x5cc)](_0x3d1540,_0x2e6ae0[_0x24c75f(0x45a,0x601)]);if(Array[_0x24c75f(0x54d,_0x16e081._0x1b4d9e)](_0x3d1540))return Buffer[_0x24c75f(0x67a,_0x16e081._0x222ddc)](_0x3d1540);return Buffer[_0x24c75f(_0x16e081._0x5879ed,_0x16e081._0x4e3b83)](_0x3d1540);}function readRecentCliLogs(_0x176aab){const _0x42755f={_0x595c05:0x4ba,_0x586dc9:0x45c,_0x54fa06:0x392,_0x57007a:0x359,_0x2135bb:0x1ab,_0x5142d7:0x4c7,_0x160831:0x218,_0x5bf0f4:0xaa,_0x5ed3ba:0x110,_0x46d257:0x39c,_0x367851:0x3da,_0x3d1556:0x595,_0x33b6a7:0x6c1},_0x24e415={};_0x24e415[_0x15eae0(_0x42755f._0x595c05,_0x42755f._0x586dc9)]=function(_0x3f6ca0,_0x214160){return _0x3f6ca0==_0x214160;};const _0x59b9f7=_0x24e415,{logPath:_0x40a308,errorLogPath:_0x48820d}=getServicePaths(),_0xd4d100=clampLines(_0x176aab?.[_0x15eae0(0x53f,_0x42755f._0x54fa06)]??0xc8),_0x4356e7=_0x176aab?.[_0x1cb33b(-0x15,0x18a)]??null;function _0x15eae0(_0x5e4402,_0x47656f){return _0x5ccb08(_0x5e4402,_0x47656f-0x572);}const _0x2dd1ec=_0x4356e7!=null?Date[_0x1cb33b(-_0x42755f._0x57007a,-_0x42755f._0x2135bb)]()-_0x4356e7:null,_0x3cc215=[_0x40a308];_0x176aab?.[_0x15eae0(_0x42755f._0x5142d7,0x3f1)+_0x1cb33b(_0x42755f._0x160831,_0x42755f._0x5bf0f4)]&&_0x3cc215['push'](_0x48820d);const _0xa4ed7b=_0x3cc215['flatMap'](_0x4f047f=>readLogFile(_0x4f047f));function _0x1cb33b(_0x269f68,_0x28aada){return _0x5ccb08(_0x269f68,_0x28aada-0x6);}const _0x3d6863=_0x59b9f7[_0x1cb33b(-0x153,-_0x42755f._0x5ed3ba)](_0x2dd1ec,null)?_0xa4ed7b:_0xa4ed7b[_0x1cb33b(-_0x42755f._0x46d257,-0x1b6)](_0x517a2a=>_0x517a2a['ts']!=null&&_0x517a2a['ts']>=_0x2dd1ec);return _0x3d6863[_0x15eae0(_0x42755f._0x367851,_0x42755f._0x3d1556)](-_0xd4d100)[_0x15eae0(_0x42755f._0x33b6a7,0x688)](_0x14965e=>_0x14965e[_0x15eae0(0x5c6,0x4a9)]);}async function buildDoctorReport(){const _0x483ade={_0x29a4fa:0x1b6,_0x1cf458:0x76,_0x547078:0x2bd,_0x1af9af:0x1d5,_0x32ae4d:0x1bf,_0x551fbc:0x12f,_0x3c73b9:0x276,_0x593d53:0x22d,_0x3472bc:0xf7,_0x16bf98:0x33f,_0xa017e4:0x4ae,_0x1c3c4d:0x2ca,_0x359fe8:0x250,_0x5ab4f7:0x39e,_0x168a1b:0x20c,_0xfd65fb:0x3e3,_0x33a6eb:0x253},_0x5f248a={_0x5451f4:0x28b},_0x14832e={_0x5a4009:0x29c};function _0xfb2de1(_0x274eb3,_0x32cf44){return _0x5ccb08(_0x274eb3,_0x32cf44-_0x14832e._0x5a4009);}const _0x1e8cf7={'ELBFY':function(_0x2c24ff){return _0x2c24ff();},'RQUke':function(_0x477ce4){return _0x477ce4();},'DxfuN':function(_0x719418,_0x5065c5){return _0x719418(_0x5065c5);}},_0x3bbfd5=readPairingConfig();function _0x1873ad(_0x516b3c,_0x48ef95){return _0x5ccb08(_0x48ef95,_0x516b3c-_0x5f248a._0x5451f4);}const _0x1a0d73=_0x1e8cf7[_0xfb2de1(0x379,0x1aa)](getServiceStatus),_0x482fa2=readOpenClawInfo(),_0x4edf1d=resolveGatewayUrl(),_0x45f8f8=await checkGatewayReachable(_0x4edf1d);return{'paired':Boolean(_0x3bbfd5),'gatewayId':_0x3bbfd5?.[_0xfb2de1(0x460,0x377)+'d']??null,'serverUrl':_0x3bbfd5?.[_0xfb2de1(0x1ef,0x2c7)+'l']??null,'relayUrl':_0x3bbfd5?.[_0x1873ad(_0x483ade._0x29a4fa,_0x483ade._0x1cf458)]??null,'instanceId':_0x3bbfd5?.[_0x1873ad(0x17a,_0x483ade._0x547078)+'Id']??null,'serviceInstalled':_0x1a0d73['installe'+'d'],'serviceRunning':_0x1a0d73[_0x1873ad(0x24f,_0x483ade._0x1af9af)],'serviceMethod':_0x1a0d73[_0xfb2de1(_0x483ade._0x32ae4d,_0x483ade._0x551fbc)],'servicePath':_0x1a0d73[_0x1873ad(_0x483ade._0x3c73b9,0x263)+_0x1873ad(_0x483ade._0x593d53,_0x483ade._0x3472bc)],'logPath':_0x1a0d73[_0x1873ad(0x423,0x2b3)],'errorLogPath':_0x1a0d73['errorLog'+_0x1873ad(_0x483ade._0x16bf98,_0x483ade._0xa017e4)],'openclawConfigDir':_0x1e8cf7[_0xfb2de1(0x15c,_0x483ade._0x1c3c4d)](getOpenClawConfigDir),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x482fa2[_0xfb2de1(0x17,0xcc)+_0xfb2de1(_0x483ade._0x359fe8,_0x483ade._0x5ab4f7)],'openclawTokenFound':_0x1e8cf7[_0xfb2de1(0xca,_0x483ade._0x168a1b)](Boolean,_0x482fa2[_0x1873ad(_0x483ade._0xfd65fb,_0x483ade._0x33a6eb)]),'localGatewayUrl':_0x4edf1d,'localGatewayReachable':_0x45f8f8};}async function ensurePairPrerequisites(){const _0xb0212a={_0x30b9f1:0x176,_0xb89509:0x25a,_0x24e174:0x127,_0xb283a0:0x118,_0x2a6e0e:0x160,_0x4659a2:0x4c,_0x1849fa:0x1dc,_0x56de9a:0xf5,_0x4a2b52:0xf8,_0x54aac5:0x3a3,_0x4662ba:0x23a,_0x12f27f:0x14e,_0x205d8b:0xed,_0x2ce849:0x18c,_0x42bd4f:0x141,_0x4fc090:0x17c,_0x3b599c:0x1e7,_0x3db25e:0x29},_0x543d73={_0x195619:0x43};function _0x488337(_0x129b22,_0x1dfb1c){return _0x5ccb08(_0x129b22,_0x1dfb1c- -_0x543d73._0x195619);}const _0x56f194=await buildDoctorReport();function _0x38d305(_0x3321c5,_0x366850){return _0x5ccb08(_0x3321c5,_0x366850-0x190);}const _0x180b2d=listPairPrerequisiteFailures(_0x56f194);if(_0x180b2d['length']>0x0)throw new Error([_0x38d305(_0xb0212a._0x30b9f1,_0xb0212a._0xb89509)+_0x488337(0x39,_0xb0212a._0x24e174)+'`clawket'+_0x488337(_0xb0212a._0xb283a0,0x8a)+'ecause\x20l'+'ocal\x20Ope'+_0x488337(-_0xb0212a._0x2a6e0e,_0xb0212a._0x4659a2)+_0x38d305(0x29c,0x15d)+_0x488337(-_0xb0212a._0x1849fa,-_0xb0212a._0x56de9a)+_0x488337(0x1e0,_0xb0212a._0x4a2b52)+'y.',..._0x180b2d[_0x38d305(_0xb0212a._0x54aac5,0x2a6)](_0x4b8a23=>'-\x20'+_0x4b8a23),_0x38d305(0x235,0x55)+'wket\x20doc'+_0x38d305(_0xb0212a._0x4662ba,0x22f)+'\x20more\x20de'+_0x488337(0x28d,0xc8)+'r\x20use\x20`c'+_0x38d305(_0xb0212a._0x12f27f,0x349)+'air\x20--fo'+_0x488337(-0x11d,-_0xb0212a._0x205d8b)+_0x488337(_0xb0212a._0x2ce849,0xf4)+'\x20intenti'+_0x38d305(_0xb0212a._0x42bd4f,0x65)+'ant\x20to\x20b'+'ypass\x20th'+_0x488337(-_0xb0212a._0x4fc090,-_0xb0212a._0x3b599c)+_0x488337(-0x59,0x198)][_0x488337(0xe3,-_0xb0212a._0x3db25e)]('\x0a'));return _0x56f194;}function listPairPrerequisiteFailures(_0x53a08f){const _0x11b7bc={_0x2385b5:0x28e,_0x3a6854:0x1b,_0x3d2289:0x19b,_0x528b95:0xab,_0x360e63:0x12e,_0x523a97:0x229,_0x480e89:0x57,_0x38a8bf:0x49d,_0x2401dc:0x310,_0xd96e59:0x377,_0x47606a:0x142,_0x5ca5c1:0x297,_0x7423c6:0x8e,_0x1c3109:0x2b0,_0x304b59:0x44,_0x3340b6:0x158,_0x5e631f:0x1ec,_0x37bb8b:0x1c6,_0x289d72:0x1e,_0x1c56c6:0x235,_0x2e1a5b:0x179,_0x2d5168:0x85,_0x5c977f:0xf0,_0x440d91:0x25},_0x5bf79e={};_0x5bf79e[_0x468ded(_0x11b7bc._0x2385b5,0x128)]=_0x371bd8(-0x81,_0x11b7bc._0x3a6854)+_0x371bd8(-_0x11b7bc._0x3d2289,-0xef)+_0x371bd8(-0x26e,-_0x11b7bc._0x528b95)+_0x468ded(0x1d8,0x5d)+_0x468ded(_0x11b7bc._0x360e63,0x231)+_0x371bd8(_0x11b7bc._0x523a97,_0x11b7bc._0x480e89)+'.',_0x5bf79e[_0x468ded(_0x11b7bc._0x38a8bf,_0x11b7bc._0x2401dc)]=_0x371bd8(-0xe5,0x1b)+_0x468ded(0x2d1,0x151)+'\x20token\x20i'+'s\x20missin'+'g.';const _0x52bf06=_0x5bf79e,_0x4bc40e=[];!_0x53a08f[_0x468ded(0x3c8,_0x11b7bc._0xd96e59)+'ConfigFo'+_0x468ded(_0x11b7bc._0x47606a,_0x11b7bc._0x5ca5c1)]&&_0x4bc40e[_0x371bd8(_0x11b7bc._0x7423c6,-0x158)](_0x52bf06[_0x371bd8(-_0x11b7bc._0x1c3109,-0xe9)]);!_0x53a08f['openclaw'+'TokenFou'+'nd']&&_0x4bc40e[_0x371bd8(_0x11b7bc._0x304b59,-_0x11b7bc._0x3340b6)](_0x52bf06['Zuoto']);function _0x371bd8(_0x31e675,_0x5b81a6){return _0x5ccb08(_0x31e675,_0x5b81a6- -0x7c);}function _0x468ded(_0x5bad69,_0x44bd9e){return _0x5ccb08(_0x5bad69,_0x44bd9e-0x195);}return!_0x53a08f[_0x371bd8(-0x3a2,-_0x11b7bc._0x5e631f)+'ewayReac'+_0x468ded(0x250,_0x11b7bc._0x37bb8b)]&&_0x4bc40e[_0x371bd8(-0x300,-_0x11b7bc._0x3340b6)](_0x371bd8(_0x11b7bc._0x289d72,-0x113)+_0x468ded(0x9d,_0x11b7bc._0x1c56c6)+_0x371bd8(-0x267,-_0x11b7bc._0x2e1a5b)+'s\x20not\x20re'+'achable\x20'+_0x371bd8(0x62,_0x11b7bc._0x2d5168)+_0x53a08f[_0x468ded(-_0x11b7bc._0x5c977f,_0x11b7bc._0x440d91)+_0x371bd8(0x14,0x7e)]+'.'),_0x4bc40e;}function readLogFile(_0xd2f874){const _0x46e9a4={_0x34f547:0x42a},_0x5e8393={_0x49e518:0x5e1};function _0x50e9c1(_0x4354c6,_0xc77313){return _0x1bc0ac(_0x4354c6,_0xc77313- -0x209);}function _0x40adc8(_0x438805,_0x3cdfe4){return _0x1bc0ac(_0x3cdfe4,_0x438805- -_0x5e8393._0x49e518);}try{const _0x414f49=_0x3daafd(_0xd2f874,_0x50e9c1(_0x46e9a4._0x34f547,0x296));return _0x414f49['split'](/\r?\n/)[_0x50e9c1(-0x4c,0x164)](Boolean)[_0x40adc8(0x5e,0x123)](_0x1d16af=>({'raw':_0x1d16af,'ts':parseTimestamp(_0x1d16af)}));}catch{return[];}}function parseTimestamp(_0x67e139){const _0x1fd1dd=_0x67e139['match'](/^\[(\d{13})\]\s/);if(!_0x1fd1dd)return null;const _0xb355a3=Number(_0x1fd1dd[0x1]);return Number['isFinite'](_0xb355a3)?_0xb355a3:null;}function clampLines(_0x349810){const _0x3bb7fb={_0x5a9d77:0x506,_0x358c2a:0x20d,_0x26c20b:0x487},_0x5b1d89={_0x14295d:0x4e0};function _0x2bd92b(_0x3391df,_0x59ac33){return _0x5ccb08(_0x59ac33,_0x3391df-0x205);}if(!Number[_0x454216(0x643,_0x3bb7fb._0x5a9d77)](_0x349810))return 0xc8;function _0x454216(_0x325b1f,_0x4b34f1){return _0x5ccb08(_0x325b1f,_0x4b34f1-_0x5b1d89._0x14295d);}return Math[_0x454216(_0x3bb7fb._0x358c2a,0x39d)](0x1,Math['min'](0x7d0,Math[_0x454216(_0x3bb7fb._0x26c20b,0x454)](_0x349810)));}async function checkGatewayReachable(_0x2d6190){const _0x4b2f7a={_0x212e1f:0x37d,_0x4b61f1:0x159,_0x247224:0x286,_0x2a9719:0x2e9,_0x599bd5:0x193,_0x54fa66:0x469,_0x4c8035:0x4d5,_0x1366bd:0x24d,_0x2779a3:0x3c9},_0x23bf20={_0x118dc9:0x217,_0x18be72:0x17b,_0x4cda4a:0xe4,_0x3a027a:0x1f8,_0x128675:0xb5,_0x2723da:0x1f8},_0x126dc9={_0xf8a494:0x71a,_0xa1c760:0x80b},_0x55f0ad={'wmlDK':function(_0x577380,_0x1d11b4){return _0x577380(_0x1d11b4);},'mXwwc':_0x514fec(0x47d,_0x4b2f7a._0x212e1f),'QVSPI':_0x514fec(0x40d,0x5ee),'VFBMe':_0x514fec(_0x4b2f7a._0x4b61f1,-0x65)};function _0x2cc8d9(_0x2ce128,_0x37af66){return _0x5ccb08(_0x37af66,_0x2ce128-0x2cd);}function _0x514fec(_0x281f00,_0x3c5c3a){return _0x5ccb08(_0x3c5c3a,_0x281f00-0x2df);}try{const _0x15ffd1=new URL(_0x2d6190),_0x155ec9=_0x15ffd1[_0x514fec(0x341,_0x4b2f7a._0x247224)]||_0x514fec(_0x4b2f7a._0x2a9719,_0x4b2f7a._0x599bd5)+'1',_0xc07d65=_0x15ffd1[_0x514fec(_0x4b2f7a._0x54fa66,_0x4b2f7a._0x4c8035)]?Number(_0x15ffd1[_0x514fec(_0x4b2f7a._0x54fa66,0x661)]):_0x15ffd1['protocol']===_0x55f0ad[_0x2cc8d9(_0x4b2f7a._0x1366bd,_0x4b2f7a._0x2779a3)]?0x1bb:0x50;return await new Promise((_0x33fcac,_0x2e8a3b)=>{const _0x4c1a67={_0x3c15b1:0x20e,_0x47a8fc:0x293,_0x47c7b1:0x321,_0x494188:0x167},_0x5cf0b0={_0x5ed070:0x39f},_0x3d5435=new Socket();_0x3d5435[_0x10bd88(-0x3ea,-_0x23bf20._0x118dc9)+'ut'](0x384),_0x3d5435[_0x13b6c9(0x353,_0x23bf20._0x18be72)](_0x10bd88(-_0x23bf20._0x4cda4a,-_0x23bf20._0x3a027a),()=>{function _0x5496ff(_0x30591b,_0x40d378){return _0x13b6c9(_0x30591b,_0x40d378- -0x17d);}_0x3d5435[_0x5496ff(_0x5cf0b0._0x5ed070,0x2ce)](),_0x33fcac();});function _0x13b6c9(_0x37ba48,_0x143705){return _0x2cc8d9(_0x143705-0x56,_0x37ba48);}_0x3d5435['once'](_0x13b6c9(0x4eb,0x4c1),()=>{function _0x2cd059(_0x3899fb,_0x5b5e7c){return _0x13b6c9(_0x3899fb,_0x5b5e7c- -0x1b8);}_0x3d5435[_0x2cd059(_0x4c1a67._0x3c15b1,_0x4c1a67._0x47a8fc)]();function _0x8637c0(_0x16d406,_0x357d64){return _0x13b6c9(_0x16d406,_0x357d64- -0x7b);}_0x55f0ad[_0x2cd059(_0x4c1a67._0x47c7b1,0x1b6)](_0x2e8a3b,new Error(_0x55f0ad[_0x2cd059(0x346,_0x4c1a67._0x494188)]));}),_0x3d5435[_0x13b6c9(0x47,0x17b)](_0x55f0ad[_0x10bd88(0x1cc,_0x23bf20._0x128675)],_0x831332=>{_0x3d5435[_0x5c04bf(_0x126dc9._0xf8a494,_0x126dc9._0xa1c760)]();function _0x5c04bf(_0x5988bb,_0x4dfb53){return _0x13b6c9(_0x4dfb53,_0x5988bb-0x2cf);}_0x2e8a3b(_0x831332);});function _0x10bd88(_0x6b740c,_0x519511){return _0x2cc8d9(_0x519511- -0x375,_0x6b740c);}_0x3d5435[_0x10bd88(-0x151,-_0x23bf20._0x2723da)](_0xc07d65,_0x155ec9);}),!![];}catch{return![];}}function parseLookbackToMs(_0x5174fb){const _0x510fb3={_0xb45704:0x552,_0x23c6e1:0x67a,_0x2b9a5e:0x25c,_0x2a4ece:0x1ab,_0x19eb34:0x7ef,_0x296bea:0x687,_0x2f43cc:0x62,_0x2028f7:0x8f,_0xce06fd:0x15a,_0x24b504:0x371,_0xd8d822:0x6ad,_0x25e347:0x56c},_0x29ec9f={_0x4555d7:0x27},_0x3d06c0=_0x5174fb?.[_0x1c07c2(_0x510fb3._0xb45704,_0x510fb3._0x23c6e1)]();if(!_0x3d06c0)return null;function _0x556b95(_0x1d56a6,_0x3ebe5c){return _0x5ccb08(_0x1d56a6,_0x3ebe5c- -_0x29ec9f._0x4555d7);}function _0x1c07c2(_0x1bed67,_0x281017){return _0x5ccb08(_0x1bed67,_0x281017-0x4e6);}const _0x371a6c=_0x3d06c0[_0x1c07c2(0x588,0x494)](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x371a6c)throw new Error(_0x556b95(-0x2f,-0x163)+_0x556b95(-_0x510fb3._0x2b9a5e,-_0x510fb3._0x2a4ece)+_0x1c07c2(_0x510fb3._0x19eb34,_0x510fb3._0x296bea)+_0x3d06c0+('\x22.\x20Use\x20v'+_0x556b95(-0xb8,_0x510fb3._0x2f43cc)+_0x556b95(-_0x510fb3._0x2028f7,_0x510fb3._0xce06fd)+_0x556b95(-_0x510fb3._0x24b504,-0x1a1)+_0x1c07c2(0x4f5,_0x510fb3._0xd8d822)));const _0x44cfd4=Number(_0x371a6c[0x1]),_0x1b81c7=_0x371a6c[0x2][_0x1c07c2(_0x510fb3._0x25e347,0x669)+_0x556b95(-0x35,-0xcc)](),_0x191167=_0x1b81c7==='ms'?0x1:_0x1b81c7==='s'?0x3e8:_0x1b81c7==='m'?0xea60:_0x1b81c7==='h'?0x36ee80:0x5265c00;return _0x44cfd4*_0x191167;}import{readFileSync as _0x3ca23f}from'fs';import{dirname as _0x3c1870,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x14c3de={_0x12ceae:0x68f,_0x2de84b:0x69b,_0x3438b6:0x630,_0x51f625:0x197,_0x10f61e:0x390,_0x5eefe5:0x4aa,_0x4c20ba:0x5e1,_0xe9197:0x3ec,_0x1cc677:0x584,_0xc7b65c:0x112},_0x3a2c81={_0x522075:0x504};function _0x1a3d54(_0x5a9eaa,_0x269885){return _0x5ccb08(_0x5a9eaa,_0x269885-_0x3a2c81._0x522075);}const _0x568d1e={'vWuwL':_0x1a3d54(0x728,_0x14c3de._0x12ceae)+_0x1a3d54(_0x14c3de._0x2de84b,_0x14c3de._0x3438b6),'cdybK':function(_0x3c63c5,_0x1e1aaa,_0x3f74da){return _0x3c63c5(_0x1e1aaa,_0x3f74da);}},_0x22ee51=_0x3c1870(fileURLToPath(import.meta.url)),_0x15b20c=resolve(_0x22ee51,_0x568d1e[_0x40d916(_0x14c3de._0x51f625,_0x14c3de._0x10f61e)]),_0x428ede=_0x568d1e[_0x40d916(_0x14c3de._0x5eefe5,_0x14c3de._0x4c20ba)](_0x3ca23f,_0x15b20c,_0x40d916(0x585,_0x14c3de._0xe9197)),_0x4b6318=JSON['parse'](_0x428ede);function _0x40d916(_0x590a94,_0x8ec6b){return _0x5ccb08(_0x590a94,_0x8ec6b-0x476);}return _0x4b6318[_0x1a3d54(_0x14c3de._0x1cc677,0x544)]??_0x40d916(_0x14c3de._0xc7b65c,0x304);}function buildPairingJson(_0x51f2f9,_0x1dd071,_0xb4b6d5,_0x33b843){const _0x59a85f={_0x35475c:0x421,_0xcd9d48:0x307,_0x4a90ab:0x4b3,_0x5e2c1f:0x239,_0x5a2aba:0x115,_0x2768fa:0xe0,_0x33e336:0xe0,_0xa2a524:0x7c,_0x7d9715:0xd0,_0x4bdf29:0x2e9,_0x275835:0xf7,_0x41d986:0x159,_0x251ed2:0x25b,_0x1b96ae:0xfd,_0x3eb78a:0x30,_0x215ee0:0x304,_0x92d50a:0x22c,_0x1e1a88:0x39,_0x9d1282:0x241,_0x590af2:0x178,_0x549b3e:0x1ab,_0x5c1e3f:0x85,_0x3f5846:0x17c,_0x2c43db:0x13c,_0x196105:0x33d,_0x5d3f01:0x1e2,_0x5e9d48:0x40,_0x1c33ab:0xdb,_0x39da6a:0x207,_0x5469e1:0x32c,_0x27548c:0x3d8,_0x29440e:0x441,_0x33ce74:0x3ac},_0x5677cd={_0x46b334:0x24d},_0x3bb17c={_0x1e4129:0x151},_0x1d5c9f={};_0x1d5c9f[_0x2a6962(0x307,_0x59a85f._0x35475c)+'d']=_0xb4b6d5[_0x2a6962(_0x59a85f._0xcd9d48,_0x59a85f._0x4a90ab)+'d'],_0x1d5c9f[_0x2a6962(0x211,_0x59a85f._0x5e2c1f)]=_0xb4b6d5[_0x1a2890(0x164,_0x59a85f._0x5a2aba)],_0x1d5c9f[_0x2a6962(_0x59a85f._0x2768fa,-0x13)]=_0xb4b6d5[_0x2a6962(_0x59a85f._0x33e336,-0xf7)];function _0x1a2890(_0x251d30,_0x398660){return _0x5ccb08(_0x251d30,_0x398660-_0x3bb17c._0x1e4129);}_0x1d5c9f['serviceP'+_0x1a2890(-_0x59a85f._0xa2a524,0xf3)]=_0xb4b6d5[_0x1a2890(_0x59a85f._0x7d9715,0x13c)+'ath'],_0x1d5c9f[_0x1a2890(0x21e,0x2e9)]=_0xb4b6d5[_0x1a2890(0x287,_0x59a85f._0x4bdf29)],_0x1d5c9f[_0x2a6962(0x255,0x445)+'Path']=_0xb4b6d5[_0x1a2890(_0x59a85f._0x275835,_0x59a85f._0x41d986)+'Path'],_0x1d5c9f[_0x1a2890(_0x59a85f._0x251ed2,_0x59a85f._0x1b96ae)]=_0xb4b6d5['pid'];const _0x1d70ed={};_0x1d70ed['ok']=!![],_0x1d70ed['action']=_0x51f2f9['action'],_0x1d70ed[_0x2a6962(0xf8,_0x59a85f._0x3eb78a)]=_0x33b843;function _0x2a6962(_0x1e3735,_0x3141fb){return _0x5ccb08(_0x3141fb,_0x1e3735-_0x5677cd._0x46b334);}return _0x1d70ed['gatewayI'+'d']=_0x51f2f9['config'][_0x1a2890(_0x59a85f._0x215ee0,_0x59a85f._0x92d50a)+'d'],_0x1d70ed[_0x2a6962(0x178,_0x59a85f._0x1e1a88)]=_0x51f2f9[_0x1a2890(0x2f3,_0x59a85f._0x9d1282)][_0x2a6962(_0x59a85f._0x590af2,0x248)],_0x1d70ed[_0x2a6962(0x278,_0x59a85f._0x549b3e)+'l']=_0x51f2f9[_0x2a6962(0x33d,0x31a)][_0x1a2890(_0x59a85f._0x5c1e3f,_0x59a85f._0x3f5846)+'l'],_0x1d70ed[_0x2a6962(_0x59a85f._0x2c43db,-0x97)+'Id']=_0x51f2f9[_0x2a6962(_0x59a85f._0x196105,_0x59a85f._0x5d3f01)][_0x1a2890(0x10f,_0x59a85f._0x5e9d48)+'Id'],_0x1d70ed[_0x2a6962(0x1dc,_0x59a85f._0x1c33ab)+'de']=_0x51f2f9[_0x2a6962(0x1dc,_0x59a85f._0x39da6a)+'de'],_0x1d70ed[_0x2a6962(0x1dc,0x16b)+_0x1a2890(0x2b3,0x24a)+_0x2a6962(_0x59a85f._0x5469e1,0x43e)]=_0x51f2f9[_0x1a2890(0x25b,0xe0)+_0x2a6962(0x346,_0x59a85f._0x27548c)+'sAt'],_0x1d70ed[_0x1a2890(_0x59a85f._0x29440e,_0x59a85f._0x196105)+_0x2a6962(0x1ef,_0x59a85f._0x33ce74)]=_0x1dd071,_0x1d70ed['service']=_0x1d5c9f,_0x1d70ed;}import{mkdirSync as _0x1cc6f1,writeFileSync as _0x3a6d19}from'fs';import{dirname as _0x34dc61,isAbsolute,join as _0x567915,resolve as _0x4d10e5}from'path';import _0x16ca06 from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x200a8f,_0x380fd0){const _0x19404c={_0x5516b1:0xf1,_0x56f1ad:0x298,_0x2a6689:0x2d4,_0x1faf54:0x139,_0x23c870:0x1a7,_0x1cfba6:0x116,_0x11b4f9:0xbc,_0x5c4a08:0x69,_0x1fe4ef:0xf4,_0x5dc785:0xba,_0x5db123:0xaa},_0x2f8c77={_0x54c288:0x4c7},_0xf4b8={_0x11498a:0x5f1},_0x331782={'FVWjG':function(_0x31036c,_0x35b434){return _0x31036c(_0x35b434);}};function _0xda9ecf(_0x32338f,_0xaf6050){return _0x1bc0ac(_0x32338f,_0xaf6050- -_0xf4b8._0x11498a);}const _0x5b864e=resolveQrOutputPath(_0x200a8f,_0x380fd0),_0xe3e7ff={};_0xe3e7ff[_0x403a93(-0xa8,_0x19404c._0x5516b1)+'e']=!![],_0x1cc6f1(_0x331782[_0x403a93(0x1b2,0x22b)](_0x34dc61,_0x5b864e),_0xe3e7ff);const _0xcabe5c={};_0xcabe5c[_0x403a93(0x170,_0x19404c._0x56f1ad)]=_0x403a93(-0x9,-0xd0)+'g',_0xcabe5c[_0x403a93(0x119,_0x19404c._0x2a6689)+_0xda9ecf(-_0x19404c._0x1faf54,-_0x19404c._0x23c870)+_0xda9ecf(_0x19404c._0x1cfba6,-_0x19404c._0x11b4f9)]='M',_0xcabe5c['margin']=0x1;function _0x403a93(_0x109aa9,_0x156ec8){return _0x1bc0ac(_0x156ec8,_0x109aa9- -_0x2f8c77._0x54c288);}_0xcabe5c['width']=0x2d0;const _0x458931=await _0x16ca06['toDataUR'+'L'](_0x200a8f['qrPayloa'+'d'],_0xcabe5c),_0x23f8de=_0x458931[_0xda9ecf(-0xa2,-_0x19404c._0x5c4a08)](/^data:image\/png;base64,/,'');return _0x3a6d19(_0x5b864e,Buffer[_0xda9ecf(_0x19404c._0x1fe4ef,-_0x19404c._0x5dc785)](_0x23f8de,_0x403a93(0x128,_0x19404c._0x5db123))),_0x5b864e;}function resolveQrOutputPath(_0x321744,_0x5be328){const _0x3a5153={_0x4d032c:0x203,_0x446070:0x1ee,_0x53707d:0x1a1,_0xcd998b:0xce},_0x2c08ac={_0x221fdf:0x113},_0x3df916={_0x5225ba:0x32},_0x55c3f1=_0x5be328?.['trim']();function _0x14f61a(_0x415aa2,_0x34afa1){return _0x5ccb08(_0x34afa1,_0x415aa2-_0x3df916._0x5225ba);}function _0x5e52cc(_0x5df73d,_0x330424){return _0x5ccb08(_0x330424,_0x5df73d-_0x2c08ac._0x221fdf);}if(_0x55c3f1)return isAbsolute(_0x55c3f1)?_0x55c3f1:_0x4d10e5(_0x55c3f1);return _0x567915(DEFAULT_QR_DIR,_0x321744[_0x5e52cc(_0x3a5153._0x4d032c,0x2ac)][_0x5e52cc(_0x3a5153._0x446070,0x119)+'d']+_0x14f61a(-_0x3a5153._0x53707d,-_0x3a5153._0xcd998b));}function decidePairServiceAction(_0x3dec68,_0x3f17b0){const _0x373d85={_0x2a7790:0x6f8,_0x1b40ed:0x621,_0x52f546:0x46c,_0x2e33fe:0x460,_0x3e1a7a:0xe0,_0x586fd8:0x103},_0x2e488f={_0x3258b2:0x5d9},_0x174ca2={_0x2a63c5:0x16},_0x1d0694={};_0x1d0694[_0x22621a(0x6d1,_0x373d85._0x2a7790)]=_0x22621a(_0x373d85._0x1b40ed,_0x373d85._0x52f546)+'ed',_0x1d0694[_0x22621a(0x537,_0x373d85._0x2e33fe)]=_0x22621a(0x72d,0x902);const _0x19bd0b=_0x1d0694;if(!_0x3f17b0['installe'+'d'])return _0x22621a(0x720,0x87c);if(!_0x3f17b0[_0x22621a(0x59d,0x785)])return'restart';if(_0x3dec68[_0x3d37f0(-_0x373d85._0x3e1a7a,-_0x373d85._0x586fd8)]===_0x19bd0b[_0x3d37f0(-0x45,0xe2)])return _0x19bd0b['DvwUK'];function _0x3d37f0(_0xcb1d4c,_0x53a3e5){return _0x5ccb08(_0xcb1d4c,_0x53a3e5- -_0x174ca2._0x2a63c5);}function _0x22621a(_0x20c7e0,_0x4de0b9){return _0x5ccb08(_0x4de0b9,_0x20c7e0-_0x2e488f._0x3258b2);}return'noop';}async function main(){const _0x3f2b48={_0x24e6a4:0x65a,_0x3e2dbd:0x590,_0x3b42a3:0x640,_0x46f3ad:0x44e,_0x1b92c7:0x502,_0x25a45b:0x7f,_0x27384d:0x164,_0x496ebb:0x21c,_0xfe44ca:0x28c,_0x1b9885:0x893,_0x1d06dc:0x76b,_0x495f5a:0x397,_0x5e3245:0x440,_0x7150cd:0x5c5,_0x131127:0x76c,_0x2d7231:0x321,_0x1e0394:0x5de,_0x4d9b96:0x3c3,_0x4b4f53:0x450,_0x84d94f:0x6bf,_0x106712:0x56c,_0x1d5dce:0x4fc,_0x322975:0x1cb,_0x27e470:0x607,_0x3db04f:0x5dc,_0x16b1c7:0x547,_0x35453a:0x40e,_0x587b29:0x2d8,_0x57db0a:0x36f,_0x4bebd7:0x7d7,_0x5e6dfe:0x28e,_0x5edfe6:0x6ea,_0x509ec1:0x831,_0x5ab5da:0x515,_0x521992:0x3cd,_0x5e8f81:0x222,_0x42c5ac:0x492,_0x13fd89:0x225,_0x361457:0xfc,_0x5a7991:0xee,_0x4ce9d4:0x256,_0xd53563:0x3ce,_0x49a7a4:0x30a,_0x4d24f2:0x820,_0xed5d13:0xc9,_0x184d8c:0x355,_0x3a967b:0x5fe,_0x6fff6:0x208,_0x5ebb85:0x42c,_0x357ec0:0x471,_0x5d0c25:0x4e9,_0x13bc21:0x271,_0xfad6b8:0x1ee,_0x3e8e06:0x5e1,_0x1d7350:0x48c,_0x1fd648:0x61b,_0x1ae1b5:0x782,_0x411780:0x240,_0x2b54b0:0x2d4,_0x5f29e0:0x3fb,_0x4bfb48:0x290,_0x321d89:0x453,_0x1600e0:0xa6,_0x741ff8:0x467,_0xf4b675:0x437,_0x31a1bf:0x594,_0x271c4f:0x4a2,_0xc5b744:0x651,_0x144021:0x2b1,_0x2b1a61:0x473,_0x59ee94:0x31a,_0xf9ef8b:0xad,_0x285ae0:0x68b,_0xd54a05:0x717,_0x153287:0x769,_0x265db0:0x489,_0x3d19bc:0x315,_0x14becc:0x50d,_0x129c2b:0x1a4,_0x15e04b:0x1b6,_0x175d22:0xeb,_0x1f85f5:0x254,_0x10a813:0x548,_0x1b8992:0x229,_0x974fa6:0x4ef,_0xd6638b:0x44c,_0x518f54:0x3cf,_0x579d22:0x462,_0x16cf5c:0xdf,_0x51d11c:0x27c,_0x332cbf:0x24b,_0x3f2ac9:0x1c0,_0x566fb4:0x1ce,_0x249e57:0x399,_0x30b6e7:0x6d5,_0x5b311a:0x716,_0x3b6a2a:0xb3,_0x2c7eee:0x420,_0x22c1fa:0x573,_0x3edea3:0xe4,_0x51a5ab:0x104,_0x2adfc9:0xfe,_0x51ed58:0x2ca,_0x2dafd8:0x2be,_0x2f53e3:0x567,_0x8f4528:0x6dc,_0x553c46:0x457,_0x48657c:0x3be,_0x533bf2:0x866,_0x12b1d1:0x710,_0x175205:0x15b,_0x4043f3:0x157,_0x8293f8:0x387,_0x33e81a:0x646,_0x1b09ed:0x5ce,_0x16fa66:0x42b,_0xfc99bb:0x1f0,_0x14f57f:0x1b4,_0x30edf5:0x65c,_0x73f893:0x653,_0x2d86f7:0x4e0,_0x4f1faa:0x25e,_0x5db9e9:0x69f,_0x6faf5d:0x51c,_0x4bd62c:0x262,_0x523c68:0x6e9,_0xc21982:0x573,_0x314981:0x3eb,_0x32f29d:0x6b3,_0x1e973c:0x52a,_0x2238c3:0x439,_0x235ae6:0x462,_0x52a987:0x160,_0x500fda:0x33f,_0x25a883:0x10c,_0x4de47:0x1a7,_0x945cb6:0xe9,_0x50b130:0x382,_0x1ffda4:0x50b,_0x308c00:0x367,_0x1844f6:0x7da,_0x5b2b44:0x6c8,_0x144123:0x8c4},_0x41abdb={_0x4c5276:0x233,_0x3e7f5d:0x1f6,_0x2f63f6:0x39c,_0x38c5b8:0x2d7,_0x1057c5:0x7f5},_0x566cc1={_0x33b34c:0x3d},_0x3d31d6={_0x58c3c3:0x1fa,_0x573fda:0x113,_0x22566d:0xd4,_0x77212e:0x2a6,_0x159a52:0xda,_0x1caf7c:0x240,_0x2cec94:0x2e,_0x31fb0b:0x1b8,_0xa9883:0x367,_0xe96904:0x42e,_0x2f9347:0x4f5,_0x8b2780:0x497},_0x3e9c93={_0x14c48d:0x3f,_0x28d98:0x235,_0x512b29:0x1ac,_0x199ba6:0x765,_0x28c429:0x564,_0x977ec4:0x4a4,_0x965637:0x1a5,_0x4ee788:0x2a0,_0x464548:0x565,_0x452406:0x64a,_0x53c82b:0x3d,_0x6361d3:0x45e,_0x40aab5:0x46c,_0x7b5266:0x2b7,_0x55c88f:0x7ce,_0x5151ed:0xcb,_0x1fe3d1:0x45,_0x43fb7e:0xac,_0x4c77f9:0x27e},_0x19e944={_0x20415c:0x354},_0x4d9c42={_0x1d7f9c:0x173},_0x5cc182={_0x38f2e8:0x29d},_0x1c7482={_0x33308d:0x112},_0x1967e3={'BxZUK':'down','twyMw':_0x50413b(_0x3f2b48._0x24e6a4,0x47d),'dCSQo':function(_0x2fdde8,_0x2c63cc,_0x3f7e78){return _0x2fdde8(_0x2c63cc,_0x3f7e78);},'WBfBy':'--json','qZmiQ':_0x2c4f57(_0x3f2b48._0x3e2dbd,0x6c5),'sKbPK':_0x2c4f57(0x81a,_0x3f2b48._0x3b42a3),'zXGlN':_0x2c4f57(_0x3f2b48._0x46f3ad,_0x3f2b48._0x1b92c7)+_0x50413b(_0x3f2b48._0x24e6a4,0x462)+'.clawket'+'.ai','CLtjh':function(_0x368f75){return _0x368f75();},'VWyQQ':function(_0x5e0f87,_0x434aae,_0x3c8b74,_0xddd7e7,_0x5bcafb){return _0x5e0f87(_0x434aae,_0x3c8b74,_0xddd7e7,_0x5bcafb);},'PefWT':function(_0x14d8d0,_0x2ea53f){return _0x14d8d0===_0x2ea53f;},'HrAZG':_0x50413b(_0x3f2b48._0x25a45b,_0x3f2b48._0x27384d)+_0x50413b(_0x3f2b48._0x496ebb,0x14d)+_0x50413b(0x47c,_0x3f2b48._0xfe44ca)+_0x2c4f57(_0x3f2b48._0x1b9885,_0x3f2b48._0x1d06dc)+'e.','eEShz':'Backgrou'+'nd\x20servi'+_0x50413b(-0x6b,0xae)+_0x50413b(_0x3f2b48._0x495f5a,_0x3f2b48._0x5e3245)+_0x2c4f57(_0x3f2b48._0x7150cd,_0x3f2b48._0x131127)+'pped.\x20Re'+_0x50413b(0x48b,_0x3f2b48._0x2d7231)+_0x2c4f57(_0x3f2b48._0x1e0394,0x4c8),'JVPES':function(_0x5834bf,_0x5e2aeb){return _0x5834bf(_0x5e2aeb);},'OEFOY':_0x2c4f57(_0x3f2b48._0x4d9b96,0x4ab)+'e','tdNOU':function(_0x1cb2cb,_0x14ee3b){return _0x1cb2cb(_0x14ee3b);},'UYMyf':function(_0x3c667f,_0x2a5d92){return _0x3c667f(_0x2a5d92);},'lfIzO':function(_0x104fcf){return _0x104fcf();},'YsOUO':'Stopped\x20'+'backgrou'+_0x2c4f57(_0x3f2b48._0x4b4f53,0x4d6)+'ce.','TOdlU':function(_0x276374,_0x3a4ca3){return _0x276374===_0x3a4ca3;},'fNsvs':_0x2c4f57(0x6d7,0x639)+'backgrou'+_0x2c4f57(0x5c8,0x4d6)+_0x50413b(0x16a,0x9d)+_0x2c4f57(_0x3f2b48._0x84d94f,_0x3f2b48._0x106712),'YbQmK':_0x50413b(_0x3f2b48._0x1d5dce,0x389),'uqzbN':function(_0x361a1a){return _0x361a1a();},'axsUt':'status','LVzpQ':_0x50413b(0x135,_0x3f2b48._0x322975),'vmyuB':function(_0x31a946,_0x1328a4,_0x5c7ce4){return _0x31a946(_0x1328a4,_0x5c7ce4);},'vFHUG':_0x50413b(_0x3f2b48._0x27e470,0x428)+_0x2c4f57(0x61c,0x5de)+_0x2c4f57(0x6c6,0x828)+'nd.','lPnqA':function(_0x2bda1b,_0x31137f){return _0x2bda1b(_0x31137f);},'gZCQF':_0x50413b(_0x3f2b48._0x3db04f,0x405)+'y-url','utIAH':_0x2c4f57(0x8b5,0x73f)+_0x2c4f57(0x92d,0x7a7)+_0x50413b(_0x3f2b48._0x16b1c7,_0x3f2b48._0x35453a)+'\x20Press\x20C'+_0x50413b(_0x3f2b48._0x587b29,0xf8)+_0x50413b(_0x3f2b48._0x57db0a,0x2d2)},[,,_0xb162c6=_0x1967e3[_0x2c4f57(_0x3f2b48._0x4bebd7,0x61e)],..._0x33c6ee]=process[_0x50413b(_0x3f2b48._0x5e6dfe,0x26a)],_0x106a4d=hasFlag(_0x33c6ee,'--servic'+'e'),_0x5765dd=_0x1967e3[_0x2c4f57(_0x3f2b48._0x5edfe6,_0x3f2b48._0x509ec1)](hasFlag,_0x33c6ee,_0x1967e3[_0x2c4f57(_0x3f2b48._0x5ab5da,0x6e7)]);if(_0xb162c6===_0x1967e3[_0x50413b(0x37b,0x36d)]){const _0x4d1226=hasFlag(_0x33c6ee,_0x2c4f57(_0x3f2b48._0x521992,0x52e));!_0x4d1226&&await ensurePairPrerequisites();const _0x2e6b39=readFlag(_0x33c6ee,_0x1967e3[_0x50413b(_0x3f2b48._0x5e8f81,0x22b)])??readFlag(_0x33c6ee,'-s')??_0x1967e3[_0x2c4f57(0x3c2,0x58b)],_0x54fc81=readFlag(_0x33c6ee,_0x2c4f57(0x43a,_0x3f2b48._0x42c5ac))??readFlag(_0x33c6ee,'-n')??getDefaultBridgeDisplayName(),_0x4a4fea=readFlag(_0x33c6ee,_0x50413b(_0x3f2b48._0x13fd89,_0x3f2b48._0x361457)+'e'),_0x4ad560=await pairGateway({'serverUrl':_0x2e6b39,'displayName':_0x54fc81,'gatewayToken':_0x1967e3[_0x50413b(0x1a2,_0x3f2b48._0x5a7991)](resolveGatewayToken)}),_0x5a049c=await writePairingQrPng(_0x4ad560,_0x4a4fea),_0x3aac6d=_0x1967e3[_0x50413b(_0x3f2b48._0x4ce9d4,0xee)](getServiceStatus),_0x4affb9=decidePairServiceAction(_0x4ad560,_0x3aac6d);if(_0x4affb9==='noop'){_0x5765dd?printJson(_0x1967e3[_0x50413b(_0x3f2b48._0xd53563,_0x3f2b48._0x49a7a4)](buildPairingJson,_0x4ad560,_0x5a049c,_0x3aac6d,_0x2c4f57(0x7ec,_0x3f2b48._0x4d24f2)+'nd\x20servi'+_0x50413b(_0x3f2b48._0xed5d13,0x18d)+_0x50413b(0x2e6,_0x3f2b48._0x184d8c)+_0x2c4f57(0x7a0,_0x3f2b48._0x3a967b)+'\x20unchang'+'ed.')):(printPairingInfo(_0x4ad560,_0x5a049c),console[_0x50413b(_0x3f2b48._0x6fff6,0xb3)](_0x50413b(_0x3f2b48._0x5ebb85,_0x3f2b48._0x357ec0)+_0x2c4f57(_0x3f2b48._0x5d0c25,0x4d6)+_0x50413b(_0x3f2b48._0x13bc21,0x18d)+_0x2c4f57(0x7ea,0x704)+_0x50413b(_0x3f2b48._0xfad6b8,0x24f)+_0x2c4f57(0x5ed,0x63a)+_0x2c4f57(_0x3f2b48._0x3e8e06,_0x3f2b48._0x1d7350)),printServiceResult(null,_0x3aac6d));return;}try{const _0x282392=_0x4affb9==='install'?installService():restartService(),_0x4a0cd2=_0x1967e3[_0x2c4f57(_0x3f2b48._0x1fd648,0x4be)](_0x4affb9,_0x2c4f57(0x73e,_0x3f2b48._0x1ae1b5))?_0x1967e3['HrAZG']:_0x4ad560[_0x2c4f57(0x72f,0x54e)]===_0x50413b(_0x3f2b48._0x411780,_0x3f2b48._0x2b54b0)+'ed'?'Bridge\x20i'+_0x2c4f57(_0x3f2b48._0x5f29e0,0x53f)+_0x2c4f57(_0x3f2b48._0x4bfb48,_0x3f2b48._0x321d89)+_0x50413b(0x32,0xf0)+_0x2c4f57(0x665,0x74e)+_0x50413b(0x7d,_0x3f2b48._0x1600e0)+_0x2c4f57(0x37a,_0x3f2b48._0x741ff8)+_0x50413b(0xa0,0x1cf)+'e\x20new\x20pa'+_0x2c4f57(_0x3f2b48._0xf4b675,_0x3f2b48._0x31a1bf):_0x1967e3[_0x2c4f57(_0x3f2b48._0x271c4f,_0x3f2b48._0xc5b744)];_0x5765dd?printJson(buildPairingJson(_0x4ad560,_0x5a049c,_0x282392,_0x4a0cd2)):(printPairingInfo(_0x4ad560,_0x5a049c),printServiceResult(_0x4a0cd2,_0x282392));}catch(_0x22bcd3){console['error'](_0x50413b(0x25b,_0x3f2b48._0x144021)+_0x50413b(_0x3f2b48._0x2b1a61,0x3a8)+_0x50413b(0x12e,_0x3f2b48._0x59ee94)+_0x50413b(-0x13a,_0x3f2b48._0xf9ef8b)+'ctivatio'+_0x2c4f57(0x5fa,_0x3f2b48._0x285ae0)+':\x20'+_0x1967e3[_0x50413b(0x22a,0x1c8)](formatError,_0x22bcd3)),console[_0x2c4f57(_0x3f2b48._0xd54a05,_0x3f2b48._0x153287)](_0x2c4f57(0x352,_0x3f2b48._0x265db0)+_0x50413b(_0x3f2b48._0x3d19bc,0x281)+_0x2c4f57(_0x3f2b48._0x14becc,_0x3f2b48._0x1fd648)+_0x50413b(_0x3f2b48._0x129c2b,0xa7)+'ll\x22\x20or\x20\x22'+'clawket\x20'+_0x50413b(0x3a0,_0x3f2b48._0x15e04b)+_0x50413b(_0x3f2b48._0x175d22,_0x3f2b48._0x1f85f5)),process[_0x50413b(_0x3f2b48._0x10a813,0x3d0)]=0x1;}return;}if(_0xb162c6===_0x50413b(0xed,_0x3f2b48._0x1b8992)+_0x2c4f57(0x6dc,0x7d6)){const _0xe24893=readFlag(_0x33c6ee,_0x1967e3[_0x2c4f57(_0x3f2b48._0x974fa6,0x685)]),_0x741cd3=await _0x1967e3['tdNOU'](refreshAccessCode,{'gatewayToken':resolveGatewayToken()}),_0x25b2b2=await _0x1967e3['dCSQo'](writePairingQrPng,_0x741cd3,_0xe24893);_0x5765dd?_0x1967e3['UYMyf'](printJson,buildPairingJson(_0x741cd3,_0x25b2b2,getServiceStatus(),'Pairing\x20'+_0x50413b(0x323,_0x3f2b48._0xd6638b)+_0x2c4f57(_0x3f2b48._0x518f54,0x579))):printPairingInfo(_0x741cd3,_0x25b2b2);return;}if(_0xb162c6==='install'){const _0x480e5f=_0x1967e3[_0x2c4f57(0x5c9,0x70c)](requirePairingConfig),_0x90c947=_0x1967e3[_0x50413b(-0xea,_0x3f2b48._0x5a7991)](installService);console[_0x2c4f57(0x59e,_0x3f2b48._0x579d22)](_0x2c4f57(0x7b8,0x80f)+_0x50413b(-_0x3f2b48._0x16cf5c,0xc1)+_0x50413b(_0x3f2b48._0x51d11c,0x1fd)+_0x50413b(0x41d,_0x3f2b48._0x332cbf)+_0x50413b(_0x3f2b48._0x3f2ac9,0x248)+'\x20'+_0x480e5f['gatewayI'+'d']+'.'),printServiceResult(null,_0x90c947);return;}if(_0x1967e3['PefWT'](_0xb162c6,_0x2c4f57(0x73d,0x78f))){const _0x12fb17=_0x1967e3['CLtjh'](requirePairingConfig),_0x4f316b=restartService();console[_0x2c4f57(0x335,0x462)](_0x50413b(_0x3f2b48._0x566fb4,_0x3f2b48._0x249e57)+'d\x20backgr'+_0x2c4f57(0x65a,0x5ac)+_0x50413b(0x26b,0x24b)+'\x20gateway'+'\x20'+_0x12fb17[_0x2c4f57(_0x3f2b48._0x30b6e7,_0x3f2b48._0x5b311a)+'d']+'.'),printServiceResult(null,_0x4f316b);return;}if(_0xb162c6==='stop'){const _0x13a6ed=stopService();console[_0x50413b(0x117,_0x3f2b48._0x3b6a2a)](_0x1967e3[_0x2c4f57(_0x3f2b48._0x2c7eee,_0x3f2b48._0x22c1fa)]),printServiceResult(null,_0x13a6ed);return;}if(_0x1967e3[_0x50413b(-_0x3f2b48._0x3edea3,_0x3f2b48._0x51a5ab)](_0xb162c6,_0x50413b(_0x3f2b48._0x2adfc9,0x198)+'l')){const _0xd7db97=uninstallService();console[_0x2c4f57(_0x3f2b48._0x51ed58,_0x3f2b48._0x579d22)](_0x1967e3[_0x50413b(0x11e,_0x3f2b48._0x2dafd8)]),printServiceResult(null,_0xd7db97);return;}if(_0xb162c6===_0x1967e3['YbQmK']){_0x1967e3['uqzbN'](stopService),deletePairingConfig(),console[_0x2c4f57(_0x3f2b48._0x2f53e3,0x462)](_0x2c4f57(0x7ba,_0x3f2b48._0x8f4528)+_0x50413b(_0x3f2b48._0x553c46,_0x3f2b48._0x48657c)+_0x2c4f57(_0x3f2b48._0x533bf2,_0x3f2b48._0x12b1d1)+getPairingConfigPath());return;}function _0x2c4f57(_0x44b050,_0x939ce8){return _0x1bc0ac(_0x44b050,_0x939ce8-_0x1c7482._0x33308d);}if(_0xb162c6===_0x1967e3[_0x50413b(_0x3f2b48._0x175205,_0x3f2b48._0x4043f3)]){printStatus();return;}function _0x50413b(_0x3e6ce3,_0x17503a){return _0x1bc0ac(_0x3e6ce3,_0x17503a- -_0x5cc182._0x38f2e8);}if(_0x1967e3['TOdlU'](_0xb162c6,_0x1967e3[_0x50413b(_0x3f2b48._0x8293f8,0x1af)])){const _0x334328=Number(_0x1967e3[_0x2c4f57(0x623,0x4b1)](readFlag,_0x33c6ee,_0x2c4f57(_0x3f2b48._0x33e81a,0x540))??_0x50413b(_0x3f2b48._0x1b09ed,_0x3f2b48._0x16fa66)),_0x14778d=parseLookbackToMs(readFlag(_0x33c6ee,_0x50413b(_0x3f2b48._0xfc99bb,_0x3f2b48._0x14f57f))??readFlag(_0x33c6ee,'-l')),_0x23d4d1=readRecentCliLogs({'lines':_0x334328,'lastMs':_0x14778d,'includeErrorLog':hasFlag(_0x33c6ee,_0x2c4f57(0x6d5,_0x3f2b48._0x30edf5))});if(_0x5765dd){const _0x50b1cb={};_0x50b1cb['ok']=!![],_0x50b1cb[_0x50413b(0x14a,0xac)]=_0x23d4d1,printJson(_0x50b1cb);}else _0x23d4d1[_0x2c4f57(_0x3f2b48._0x73f893,0x491)]===0x0?console[_0x2c4f57(_0x3f2b48._0x2d86f7,0x462)](_0x1967e3[_0x50413b(_0x3f2b48._0x4f1faa,0x18e)]):console['log'](_0x23d4d1[_0x2c4f57(0x605,0x655)]('\x0a'));return;}if(_0xb162c6===_0x2c4f57(_0x3f2b48._0x5db9e9,0x60d)){const _0x550809=await buildDoctorReport();_0x5765dd?printJson(_0x550809):printDoctorReport(_0x550809);return;}if(_0xb162c6===_0x2c4f57(0x80f,0x7a4)){const _0x16d98c=requirePairingConfig(),_0x1adbb4=_0x1967e3[_0x2c4f57(_0x3f2b48._0x6faf5d,0x44f)](resolveGatewayUrl,readFlag(_0x33c6ee,_0x1967e3[_0x50413b(_0x3f2b48._0x4bd62c,0x3b5)])??readFlag(_0x33c6ee,'-g')),_0x391257=_0x3fa0fc=>{console['log']('['+Date['now']()+']\x20'+_0x3fa0fc);};!_0x106a4d?(console[_0x2c4f57(0x442,_0x3f2b48._0x579d22)]('Gateway\x20'+_0x2c4f57(0x7c5,_0x3f2b48._0x523c68)+_0x16d98c[_0x2c4f57(_0x3f2b48._0xc21982,0x716)+'d']),console[_0x2c4f57(0x281,0x462)](_0x2c4f57(_0x3f2b48._0x314981,0x55b)+_0x2c4f57(0x5df,0x670)+_0x16d98c[_0x2c4f57(_0x3f2b48._0x32f29d,_0x3f2b48._0x1e973c)+'Id']),console['log'](_0x50413b(0x40b,0x377)+_0x50413b(0x4a9,_0x3f2b48._0x2238c3)+_0x1adbb4),console[_0x2c4f57(0x5b8,_0x3f2b48._0x235ae6)](''),console[_0x50413b(_0x3f2b48._0x52a987,_0x3f2b48._0x3b6a2a)](_0x1967e3[_0x50413b(0x4d8,_0x3f2b48._0x500fda)]),console['log']('')):_0x391257(_0x50413b(0x567,0x390)+_0x50413b(0x6b,_0x3f2b48._0x25a883)+_0x50413b(0x4e8,0x48d)+_0x50413b(_0x3f2b48._0x4de47,_0x3f2b48._0x945cb6)+'\x20for\x20gat'+_0x2c4f57(_0x3f2b48._0x50b130,_0x3f2b48._0x1ffda4)+_0x16d98c[_0x50413b(0x4f6,_0x3f2b48._0x308c00)+'d']);_0x106a4d&&writeServiceState();const _0x36da2e=new BridgeRuntime({'config':_0x16d98c,'gatewayUrl':_0x1adbb4,'onLog':_0x5b49a4=>{function _0x20921f(_0x2d122b,_0x26e0d8){return _0x2c4f57(_0x2d122b,_0x26e0d8- -_0x4d9c42._0x1d7f9c);}_0x391257(_0x20921f(_0x19e944._0x20415c,0x36c)+']\x20'+_0x5b49a4);},'onStatus':_0x465e0f=>{const _0x21f22b={_0x5ce9ef:0x19d};if(_0x465e0f['lastErro'+'r']){_0x391257(_0x1b5150(_0x3e9c93._0x14c48d,_0x3e9c93._0x28d98)+_0x1b5150(0x339,_0x3e9c93._0x512b29)+(_0x465e0f[_0x205495(_0x3e9c93._0x199ba6,0x929)+'nected']?'up':_0x1967e3[_0x1b5150(0x326,0x23e)])+(_0x205495(_0x3e9c93._0x28c429,_0x3e9c93._0x977ec4)+'=')+(_0x465e0f['gatewayC'+'onnected']?'up':_0x1b5150(_0x3e9c93._0x965637,_0x3e9c93._0x4ee788))+(_0x205495(_0x3e9c93._0x464548,_0x3e9c93._0x452406)+'=')+_0x465e0f[_0x1b5150(-_0x3e9c93._0x53c82b,0x188)+'unt']+_0x205495(_0x3e9c93._0x6361d3,_0x3e9c93._0x40aab5)+_0x465e0f['lastErro'+'r']);return;}function _0x205495(_0x51ec5a,_0x4d234b){return _0x50413b(_0x4d234b,_0x51ec5a-0x31c);}function _0x1b5150(_0x21a142,_0x100510){return _0x50413b(_0x21a142,_0x100510- -_0x21f22b._0x5ce9ef);}_0x391257(_0x1b5150(_0x3e9c93._0x7b5266,_0x3e9c93._0x28d98)+'\x20relay='+(_0x465e0f[_0x205495(0x765,_0x3e9c93._0x55c88f)+'nected']?'up':_0x1967e3[_0x1b5150(0x274,0x23e)])+('\x20gateway'+'=')+(_0x465e0f['gatewayC'+_0x1b5150(0xd,-_0x3e9c93._0x5151ed)]?'up':_0x205495(0x759,0x6c5))+(_0x1b5150(-_0x3e9c93._0x1fe3d1,_0x3e9c93._0x43fb7e)+'=')+_0x465e0f[_0x1b5150(_0x3e9c93._0x4c77f9,0x188)+_0x205495(0x552,0x704)]);},'onPendingPairRequest':_0x46fa36=>{const _0x386d54={_0x50b1a9:0x3a4};function _0x466c8d(_0x146ecc,_0x3317bf){return _0x2c4f57(_0x146ecc,_0x3317bf- -_0x386d54._0x50b1a9);}function _0x2118df(_0x2bf7f7,_0x100935){return _0x2c4f57(_0x100935,_0x2bf7f7- -0x54d);}_0x391257(_0x2118df(0x164,_0x3d31d6._0x58c3c3)+_0x2118df(0x1bd,_0x3d31d6._0x573fda)+_0x2118df(_0x3d31d6._0x22566d,_0x3d31d6._0x77212e)+'='+_0x46fa36[_0x2118df(_0x3d31d6._0x159a52,-0x84)+'d']+('\x20deviceI'+'d=')+(_0x46fa36[_0x2118df(_0x3d31d6._0x1caf7c,0xea)]||'<unknown'+'>')+'\x20name='+(_0x46fa36[_0x2118df(-_0x3d31d6._0x2cec94,_0x3d31d6._0x31fb0b)+_0x466c8d(_0x3d31d6._0xa9883,_0x3d31d6._0xe96904)]??_0x466c8d(_0x3d31d6._0x2f9347,_0x3d31d6._0x8b2780)+'>'));}});_0x36da2e['start']();const _0x539e5e=async()=>{process[_0xf3eca6(0x568,0x580)](_0xf3eca6(0x7dd,0x705),_0x539e5e);function _0xf3eca6(_0x955a3,_0x1d0928){return _0x2c4f57(_0x955a3,_0x1d0928-_0x566cc1._0x33b34c);}function _0x1bdfd4(_0x549ba9,_0x503191){return _0x2c4f57(_0x549ba9,_0x503191- -0x310);}process[_0x1bdfd4(0x162,_0x41abdb._0x4c5276)](_0x1bdfd4(0x4e4,0x48d),_0x539e5e),await _0x36da2e[_0x1bdfd4(_0x41abdb._0x3e7f5d,0x2b6)](),_0x106a4d&&clearServiceState(process[_0x1bdfd4(_0x41abdb._0x2f63f6,_0x41abdb._0x38c5b8)]),process[_0xf3eca6(_0x41abdb._0x1057c5,0x84b)](0x0);};process['on'](_0x2c4f57(_0x3f2b48._0x1844f6,_0x3f2b48._0x5b2b44),_0x539e5e),process['on'](_0x2c4f57(_0x3f2b48._0x144123,0x79d),_0x539e5e),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x370f39,_0x200461){const _0x37828b={_0x3b2c7b:0x56,_0x1c0ef2:0x171,_0x2751cb:0xc5,_0x437017:0x7b,_0x25b4df:0x1bc,_0x2166ba:0x1c5,_0x39cdb1:0x140,_0x2511df:0x1be,_0xc3705e:0x155,_0x51b5ed:0x169,_0x2aef3c:0x69,_0x185daa:0x11d,_0x2ef631:0x14f,_0x1d4277:0x300,_0x3810e4:0xa1,_0x3a0a75:0x1a2,_0x49e796:0x1cd,_0x2da280:0x94,_0x896c48:0x123,_0x11fc57:0xaf,_0x23a74b:0x77,_0x461138:0x27,_0x479725:0x241,_0x4cc9d1:0x1f8,_0x45665c:0x83,_0x573edb:0x2e4,_0x38d2ec:0x1ec,_0x5df972:0x88,_0x41f72c:0x138,_0x206d38:0x189},_0x50aa10={_0x1794c9:0x4b9},_0x42fca0={_0x4caf51:0x591},_0x18a615={};_0x18a615['lMzgX']=_0xd5e299(0x8f,-_0x37828b._0x3b2c7b)+'is\x20QR\x20co'+_0xd5e299(_0x37828b._0x1c0ef2,0x1a4)+_0xd5e299(0xf1,-_0x37828b._0x2751cb)+_0xd5e299(-0xc,_0x37828b._0x437017);const _0x49ccaa=_0x18a615;function _0xd5e299(_0x2c5a29,_0x4b739c){return _0x1bc0ac(_0x4b739c,_0x2c5a29- -_0x42fca0._0x4caf51);}const _0x3b4b4a=(_0xd5e299(0x17e,0x218)+_0x5cc6e8(_0x37828b._0x25b4df,_0x37828b._0x2166ba))[_0x5cc6e8(_0x37828b._0x39cdb1,_0x37828b._0x2511df)]('|');let _0x1a99bc=0x0;function _0x5cc6e8(_0x2298a1,_0x1a017e){return _0x1bc0ac(_0x2298a1,_0x1a017e- -_0x50aa10._0x1794c9);}while(!![]){switch(_0x3b4b4a[_0x1a99bc++]){case'0':_0x370f39[_0xd5e299(-_0x37828b._0xc3705e,-0xd5)]===_0xd5e299(0x14f,0x341)+'d'&&console[_0x5cc6e8(-0x123,-_0x37828b._0x51b5ed)](_0xd5e299(0x14b,_0x37828b._0x2aef3c)+_0xd5e299(0x164,0xad)+_0xd5e299(0x86,-_0x37828b._0x185daa)+_0xd5e299(-_0x37828b._0x2ef631,-_0x37828b._0x1d4277)+_0xd5e299(-_0x37828b._0x3810e4,-0x29)+_0xd5e299(0x58,-0x36)+'e.');continue;case'1':const _0x4a7098={};_0x4a7098[_0xd5e299(0x11,-0xe3)]=!![],_0xdc51c2[_0xd5e299(-_0x37828b._0x3a0a75,-_0x37828b._0x49e796)](_0x370f39[_0xd5e299(-0x1b4,-0x14f)+'d'],_0x4a7098);continue;case'2':console[_0xd5e299(-0x241,-0x233)](_0x5cc6e8(_0x37828b._0x2da280,-_0x37828b._0x896c48)+_0xd5e299(-_0x37828b._0x11fc57,-0x196)+formatLocalTime(_0x370f39['accessCo'+_0x5cc6e8(0x332,0x169)+_0xd5e299(_0x37828b._0x23a74b,-_0x37828b._0x461138)]));continue;case'3':console[_0xd5e299(-_0x37828b._0x479725,-_0x37828b._0x4cc9d1)]('QR\x20image'+_0x5cc6e8(0x187,0x113)+_0x200461);continue;case'4':console['log'](_0xd5e299(_0x37828b._0x45665c,0x1f5)+_0x5cc6e8(_0x37828b._0x573edb,_0x37828b._0x38d2ec)+_0x370f39[_0xd5e299(_0x37828b._0x5df972,_0x37828b._0x41f72c)]['gatewayI'+'d']);continue;case'5':console[_0xd5e299(-0x241,-_0x37828b._0x206d38)](_0x49ccaa['lMzgX']);continue;}break;}}function printStatus(){const _0x113819={_0x2853e9:0xe2,_0x5bc6d5:0x286,_0xee6047:0x3b6,_0x11858a:0x222,_0x198458:0x431,_0xc9a76a:0xf2,_0x5aac82:0x487,_0x42fae5:0x4b5,_0x304602:0x67a,_0x5435da:0x70b,_0x45df0a:0x8c9,_0x3e3020:0x1eb,_0x30414f:0x21e,_0x896d91:0x47e,_0x1c8119:0x539,_0x425cb7:0x4aa,_0x5b24eb:0x21e,_0x1dd7dc:0x738,_0xf95946:0x1af,_0x3abe6b:0x13d,_0x2b5de9:0x4f5,_0x352d5b:0x1b9,_0x5ab55f:0x3cf,_0x19e87f:0x548,_0x7a4268:0x373,_0x57a238:0x3f6,_0x55ed6c:0x5b7,_0x54a73a:0x143,_0x572582:0x32f,_0x54c79e:0x4a9,_0x4224a7:0x590,_0x15355e:0x33b,_0x362a6b:0x2c0,_0x519cb1:0x276,_0x18bb07:0x305,_0x4c1f14:0x430},_0x202d87={_0x3c5c15:0x25e},_0x3876a7={'RrDXb':function(_0xf86c62){return _0xf86c62();},'IwRbX':function(_0x463d16){return _0x463d16();}},_0x27fa91=_0x3876a7[_0x302a7e(_0x113819._0x2853e9,_0x113819._0x5bc6d5)](readPairingConfig),_0xfb09fd=getServiceStatus(),{logPath:_0x5f19e0,errorLogPath:_0x507a95}=getServicePaths(),_0x98676d=readCliVersion();console[_0x216d83(_0x113819._0xee6047,0x52f)]('Version:'+_0x302a7e(0x284,0x193)+_0x98676d);function _0x302a7e(_0x39e91a,_0x110373){return _0x1bc0ac(_0x110373,_0x39e91a- -_0x202d87._0x3c5c15);}!_0x27fa91?console[_0x216d83(_0x113819._0xee6047,_0x113819._0x11858a)]('Config:\x20'+_0x216d83(0x64b,0x4f5)+_0x216d83(_0x113819._0x198458,0x444)+_0x3876a7['IwRbX'](getPairingConfigPath)+')'):(console[_0x302a7e(_0x113819._0xc9a76a,0x20c)](_0x302a7e(_0x113819._0x5aac82,0x5e7)+_0x302a7e(_0x113819._0x42fae5,0x690)+'ed'),console[_0x216d83(0x3b6,0x3c1)](_0x216d83(_0x113819._0x304602,0x85a)+_0x216d83(_0x113819._0x5435da,_0x113819._0x45df0a)+_0x27fa91['gatewayI'+'d']),console['log'](_0x302a7e(_0x113819._0x3e3020,0x313)+_0x302a7e(0x36e,_0x113819._0x30414f)+_0x27fa91[_0x216d83(_0x113819._0x896d91,_0x113819._0x1c8119)+'Id']),console[_0x216d83(_0x113819._0xee6047,0x363)](_0x302a7e(_0x113819._0x425cb7,0x66c)+_0x302a7e(0x1b0,0xeb)+_0x27fa91['serverUr'+'l']),console['log'](_0x302a7e(0x149,_0x113819._0x5b24eb)+_0x216d83(0x548,_0x113819._0x1dd7dc)+(_0x27fa91[_0x302a7e(_0x113819._0xf95946,_0x113819._0x3abe6b)+_0x302a7e(0x462,0x314)]??'-')));console[_0x216d83(_0x113819._0xee6047,_0x113819._0x2b5de9)](_0x302a7e(_0x113819._0x352d5b,-0x40)+_0x216d83(0x548,0x3b7)+_0x3876a7['IwRbX'](resolveGatewayUrl)),console[_0x302a7e(_0x113819._0xc9a76a,0x84)](_0x302a7e(0x3b5,_0x113819._0x5ab55f)+_0x216d83(_0x113819._0x19e87f,_0x113819._0x7a4268)+(_0xfb09fd['installe'+'d']?'installe'+'d':_0x302a7e(0x231,_0x113819._0x57a238)+_0x216d83(_0x113819._0x55ed6c,0x76e))+'\x20('+_0xfb09fd[_0x302a7e(0x15e,_0x113819._0x54a73a)]+')');function _0x216d83(_0x356c0f,_0xb309dd){return _0x1bc0ac(_0xb309dd,_0x356c0f-0x66);}console['log'](_0x302a7e(_0x113819._0x572582,_0x113819._0x54c79e)+_0x216d83(0x548,0x681)+(_0xfb09fd['running']?_0x302a7e(0x477,0x331):'no')),console['log']('Path:\x20\x20\x20'+_0x216d83(0x548,_0x113819._0x4224a7)+(_0xfb09fd[_0x302a7e(0x2b6,_0x113819._0x15355e)+'ath']||'-')),console[_0x302a7e(_0x113819._0xc9a76a,_0x113819._0x362a6b)](_0x302a7e(0x1d1,_0x113819._0x519cb1)+_0x302a7e(0x284,_0x113819._0x18bb07)+_0x5f19e0),console[_0x302a7e(0xf2,0x18a)]('Error\x20Lo'+'g:\x20\x20'+_0x507a95),!_0x27fa91&&(process[_0x302a7e(0x40f,_0x113819._0x4c1f14)]=0x1);}function printServiceResult(_0xb30c62,_0x45c268){const _0x287e7d={_0x813018:0x1a7,_0x3798b3:0x140,_0x2ea8a9:0x62f,_0x240ba6:0x2b5,_0x433fa4:0x327,_0x45e63f:0x5f9,_0x2b072c:0x41d,_0x78d143:0x137,_0x411c75:0x22c,_0x4e3cf4:0x72,_0x3d9e32:0xe6,_0x807bbe:0x18a,_0x9cbb20:0x16f,_0x41d2e0:0x16e},_0x1f8108={_0x3d9556:0x50},_0x109c74={_0x51b201:0x363};function _0x451542(_0xbbc122,_0xd61f0f){return _0x5ccb08(_0xbbc122,_0xd61f0f-_0x109c74._0x51b201);}const _0x482ae2={};_0x482ae2[_0x3f21f7(_0x287e7d._0x813018,_0x287e7d._0x3798b3)]=_0x451542(0x319,0x41d)+'d,\x20stopp'+'ed';const _0x508a2d=_0x482ae2;function _0x3f21f7(_0x2d280e,_0x424f53){return _0x5ccb08(_0x2d280e,_0x424f53- -_0x1f8108._0x3d9556);}_0xb30c62&&console[_0x451542(0x78,0x18a)](_0xb30c62),console[_0x3f21f7(-0x3e3,-0x229)](_0x451542(_0x287e7d._0x2ea8a9,0x44d)+'\x20'+(_0x45c268['installe'+'d']?_0x45c268[_0x451542(_0x287e7d._0x240ba6,_0x287e7d._0x433fa4)]?_0x451542(_0x287e7d._0x45e63f,_0x287e7d._0x2b072c)+_0x451542(_0x287e7d._0x78d143,_0x287e7d._0x411c75)+'ng':_0x508a2d[_0x3f21f7(-_0x287e7d._0x4e3cf4,0x140)]:'not\x20inst'+_0x3f21f7(_0x287e7d._0x3d9e32,-0x28))),console[_0x451542(0x12c,_0x287e7d._0x807bbe)](_0x451542(0x5b9,0x527)+'path:\x20'+(_0x45c268[_0x451542(_0x287e7d._0x9cbb20,0x34e)+_0x3f21f7(-_0x287e7d._0x41d2e0,-0xae)]||'-'));}function printDoctorReport(_0x43bda8){const _0xd44b1={_0x11a2e3:0x88,_0x1ebd98:0x24b,_0x3a3e42:0x267,_0x2ebd9c:0xe6,_0x268a2c:0x358,_0x35cd87:0xf8,_0x40d6aa:0x2b5,_0x29fb9d:0xe4,_0x28276b:0x20,_0x3d428c:0x19a,_0x1de001:0x1d8,_0x337ad5:0x1e0,_0x2da58e:0x2c,_0x2b833c:0x40,_0x479cd8:0xc6,_0x471ce7:0x330,_0x1760a9:0x307,_0x3f8fc2:0x512,_0x11e950:0x342,_0x5d9d66:0x92,_0x241f4c:0x283,_0x31411f:0x30,_0x1bf490:0xeb,_0xaf78b6:0x1c4,_0xd93266:0x3cc,_0x5dd4b3:0x105,_0x5053d8:0x44,_0x61b3c8:0x104,_0xd63b56:0x2d6,_0x15e182:0x492,_0x222377:0x6b,_0x26b311:0x22a,_0x2cc6a0:0x1c5,_0x28e853:0x4d8,_0x5cbc36:0x194,_0x7db0f8:0x1a9,_0x55e335:0xc4,_0x7196f4:0x35b,_0x4c56b5:0x199,_0x44ebcb:0x9,_0x73d3aa:0x43,_0x391493:0x10b,_0x379a8b:0x69,_0xf98157:0x28d,_0x47aa02:0x24a,_0x45900c:0x2f3,_0x5fbe07:0x3b4,_0x30706e:0x23a,_0x21f62a:0x4cd,_0x5264ec:0x3a9,_0x1945bd:0x103,_0x15e3db:0x40e,_0x5cc00b:0x240,_0x425c76:0x156,_0x4f4ced:0x107,_0x370daa:0x3b,_0x47e817:0x19a,_0x4edaec:0x383,_0x529c63:0x179,_0x1d922a:0x8b,_0xcd1477:0x23,_0xbb9bdf:0x39,_0x25a7e4:0x2ae,_0x100bfc:0x118,_0x31d306:0x17f,_0x21b52a:0x16f,_0x28c834:0x1ff,_0x484bd6:0x1cb,_0x12f630:0x359,_0x1b5972:0x1da},_0x544b66={_0x4aa0c0:0x1},_0x2bbe33={_0x386fb5:0x1a9},_0x41ea5d={};_0x41ea5d['AXiCU']=_0x4b4861(0x1ad,0x2be),_0x41ea5d[_0x4b4861(-_0xd44b1._0x11a2e3,0x9b)]=_0x33797b(_0xd44b1._0x1ebd98,0x263)+'d';function _0x33797b(_0x311e7e,_0x2e94ae){return _0x5ccb08(_0x311e7e,_0x2e94ae-_0x2bbe33._0x386fb5);}_0x41ea5d[_0x4b4861(-0x1e3,-_0xd44b1._0x3a3e42)]='found';const _0x160930=_0x41ea5d;function _0x4b4861(_0x9620b9,_0x43bddd){return _0x5ccb08(_0x43bddd,_0x9620b9-_0x544b66._0x4aa0c0);}console['log']('Paired:\x20'+_0x4b4861(_0xd44b1._0x2ebd9c,-0xbf)+'\x20\x20\x20'+(_0x43bda8[_0x33797b(0x22b,_0xd44b1._0x268a2c)]?_0x160930[_0x4b4861(-_0xd44b1._0x35cd87,-_0xd44b1._0x40d6aa)]:'no')),console['log'](_0x33797b(0x3b4,0x294)+_0x33797b(_0xd44b1._0x29fb9d,_0xd44b1._0x28276b)+_0x4b4861(_0xd44b1._0x3d428c,0x19)+(_0x43bda8['gatewayI'+'d']??'-')),console[_0x4b4861(-_0xd44b1._0x1de001,-0x110)](_0x4b4861(_0xd44b1._0x337ad5,0x2ef)+'RL:\x20\x20\x20\x20\x20'+'\x20\x20\x20'+(_0x43bda8[_0x4b4861(_0xd44b1._0x2da58e,-_0xd44b1._0x2b833c)+'l']??'-')),console[_0x4b4861(-_0xd44b1._0x1de001,-_0xd44b1._0x479cd8)]('Relay\x20UR'+_0x33797b(_0xd44b1._0x471ce7,_0xd44b1._0x1760a9)+_0x33797b(_0xd44b1._0x3f8fc2,_0xd44b1._0x11e950)+(_0x43bda8['relayUrl']??'-')),console[_0x33797b(-_0xd44b1._0x5d9d66,-0x30)]('Instance'+'\x20ID:\x20\x20\x20\x20'+'\x20\x20\x20'+(_0x43bda8[_0x4b4861(-0x110,-_0xd44b1._0x241f4c)+'Id']??'-')),console[_0x33797b(0x14c,-_0xd44b1._0x31411f)](_0x4b4861(_0xd44b1._0x1bf490,_0xd44b1._0xaf78b6)+_0x33797b(_0xd44b1._0xd93266,0x28e)+_0x4b4861(0x19a,_0xd44b1._0x5dd4b3)+(_0x43bda8[_0x4b4861(-_0xd44b1._0x5053d8,0xdf)+'nstalled']?_0x160930['vUWMA']:_0x33797b(0x152,0x10f)+_0x4b4861(0x29,0x63))+'\x20('+_0x43bda8[_0x4b4861(-_0xd44b1._0x61b3c8,-0x2a)+'ethod']+')'),console[_0x4b4861(-_0xd44b1._0x1de001,-_0xd44b1._0xd63b56)]('Service\x20'+_0x4b4861(-0x47,0x60)+_0x33797b(_0xd44b1._0x15e182,0x342)+(_0x43bda8[_0x4b4861(0x1fa,_0xd44b1._0x222377)+_0x4b4861(0xdd,_0xd44b1._0x26b311)]?_0x4b4861(0x1ad,0x22c):'no')),console['log'](_0x4b4861(_0xd44b1._0x2cc6a0,0x6a)+_0x33797b(_0xd44b1._0x28e853,0x326)+'\x20\x20\x20'+(_0x43bda8[_0x33797b(0xc1,_0xd44b1._0x5cbc36)+'ath']||'-')),console[_0x33797b(_0xd44b1._0x7db0f8,-_0xd44b1._0x31411f)](_0x4b4861(_0xd44b1._0x55e335,0xa6)+_0x33797b(0x204,0x2dd)+_0x33797b(_0xd44b1._0x7196f4,0x342)+_0x43bda8[_0x4b4861(_0xd44b1._0x4c56b5,0xbc)]),console[_0x4b4861(-_0xd44b1._0x1de001,-0x35)](_0x4b4861(-0x65,0x9e)+_0x4b4861(0x52,0x21e)+'\x20\x20\x20'+_0x43bda8[_0x4b4861(_0xd44b1._0x44ebcb,-_0xd44b1._0x73d3aa)+'Path']),console[_0x33797b(_0xd44b1._0x391493,-0x30)](_0x4b4861(0x98,_0xd44b1._0x379a8b)+_0x33797b(_0xd44b1._0xf98157,0x21c)+_0x33797b(_0xd44b1._0x47aa02,0x342)+_0x43bda8[_0x4b4861(0x1e3,_0xd44b1._0x45900c)+_0x33797b(_0xd44b1._0x5fbe07,_0xd44b1._0x30706e)+'r']),console[_0x33797b(-0x226,-0x30)]('OpenClaw'+_0x33797b(_0xd44b1._0x21f62a,0x37a)+'\x20\x20\x20'+_0x43bda8[_0x33797b(_0xd44b1._0x5264ec,0x38b)+_0x4b4861(0xcd,_0xd44b1._0x1945bd)]),console[_0x33797b(-0x171,-0x30)](_0x33797b(_0xd44b1._0x15e3db,_0xd44b1._0x5cc00b)+'\x20config:'+'\x20\x20\x20'+(_0x43bda8[_0x33797b(0x1dd,0x38b)+'ConfigFo'+_0x4b4861(0x103,0x1c7)]?_0x160930['kBZkZ']:_0x33797b(0x4a5,0x321))),console[_0x33797b(_0xd44b1._0x425c76,-0x30)]('OpenClaw'+_0x4b4861(-_0xd44b1._0x4f4ced,-_0xd44b1._0x370daa)+_0x4b4861(_0xd44b1._0x47e817,_0xd44b1._0x4edaec)+(_0x43bda8['openclaw'+_0x4b4861(0xa6,0x1e1)+'nd']?_0x160930['kBZkZ']:_0x4b4861(_0xd44b1._0x529c63,0x2ab))),console['log']('Gateway\x20'+_0x33797b(_0xd44b1._0x1d922a,-_0xd44b1._0xcd1477)+_0x4b4861(0x19a,0x2de)+_0x43bda8[_0x33797b(-0x26,_0xd44b1._0xbb9bdf)+'ewayUrl']),console[_0x4b4861(-0x1d8,-_0xd44b1._0x25a7e4)](_0x4b4861(0xec,_0xd44b1._0x100bfc)+_0x4b4861(-0x173,-0x13e)+_0x33797b(0x306,_0xd44b1._0x31d306)+(_0x43bda8[_0x4b4861(-_0xd44b1._0x21b52a,-_0xd44b1._0x28c834)+_0x33797b(_0xd44b1._0x484bd6,_0xd44b1._0x12f630)+_0x33797b(0xb7,_0xd44b1._0x1b5972)]?_0x4b4861(0x1ad,-0x2f):'no'));}function requirePairingConfig(){const _0x185ff7={_0x19c98d:0x154,_0x46c410:0x257,_0x495fc0:0x10,_0x1141ad:0x135,_0x37e67e:0x156},_0x437945={_0x513aae:0x8f},_0x591e4a={_0x184bb7:0x7d},_0x223ce8=readPairingConfig();!_0x223ce8&&(console['error'](_0x412f19(-_0x185ff7._0x19c98d,-_0x185ff7._0x46c410)+_0x27930e(0x4e,0xc8)+_0x27930e(0xf2,-_0x185ff7._0x495fc0)+_0x27930e(0xbc,-0x9e)+_0x27930e(-0xb2,-0x1c3)+_0x27930e(-0x26,_0x185ff7._0x1141ad)+_0x412f19(0x19e,0x1df)+getPairingConfigPath()),process[_0x27930e(0xcb,_0x185ff7._0x37e67e)](0x1));function _0x27930e(_0x1e13ee,_0x6b08d5){return _0x5ccb08(_0x1e13ee,_0x6b08d5- -_0x591e4a._0x184bb7);}function _0x412f19(_0x9f6987,_0x1371f8){return _0x5ccb08(_0x1371f8,_0x9f6987-_0x437945._0x513aae);}return _0x223ce8;}function readFlag(_0x38af79,_0x49832c){const _0x5b9f2c={_0x2d1542:0x4dc,_0x7f8f95:0x4f7,_0x149461:0x477},_0x547637={_0x4499bd:0x2e3};function _0x900778(_0xa0bb24,_0x19a465){return _0x5ccb08(_0x19a465,_0xa0bb24-0x54b);}const _0xed2e5a=_0x38af79[_0x900778(_0x5b9f2c._0x2d1542,_0x5b9f2c._0x7f8f95)](_0x49832c);if(_0xed2e5a<0x0)return null;function _0x4b2b16(_0x17c5e0,_0x5bf851){return _0x5ccb08(_0x17c5e0,_0x5bf851-_0x547637._0x4499bd);}const _0x1b21b0=_0x38af79[_0xed2e5a+0x1];return _0x1b21b0?.[_0x900778(0x6df,0x61e)]()?_0x1b21b0[_0x4b2b16(0x48e,_0x5b9f2c._0x149461)]():null;}function hasFlag(_0x1961aa,_0x2b5790){const _0x2f3d1={_0x507fea:0xb3},_0x58319c={_0x2d4f50:0xe4};function _0x456188(_0xa404b,_0x1b6248){return _0x5ccb08(_0xa404b,_0x1b6248-_0x58319c._0x2d4f50);}return _0x1961aa[_0x456188(-_0x2f3d1._0x507fea,_0x2f3d1._0x507fea)](_0x2b5790);}function printHelp(){const _0x18f204={_0xfe56c3:0x3f4,_0x3eccb9:0x784,_0x273351:0x4ed,_0x266feb:0x5ac,_0x15dc69:0x750,_0x1df7f1:0x4fd,_0x2f7858:0x642,_0x28891b:0x6cb,_0x38b323:0x3b3,_0x42a8c4:0x4ca,_0x2ce594:0x4ef,_0x4ca3c9:0x4dc,_0x277d86:0x67e,_0x186d03:0x3b5,_0x5b07d5:0x411,_0x2ebd42:0x515,_0x2ab72:0x8f2,_0x1a71b1:0x4e1,_0x2e3d3a:0x636,_0x592b1e:0x7c4,_0x2e1c24:0x5e3,_0x260216:0x792,_0x2dc603:0x471,_0x21fd3b:0x4e1,_0x4d4ed7:0x37c,_0x39d4e3:0x559,_0x2d7f94:0x923,_0x380fc4:0x637,_0x2e6e6f:0x699,_0x424582:0x655,_0x4d9e62:0x617,_0x1b55f2:0x56d,_0x5868d4:0x60c,_0x23ca2a:0x5b5,_0x5cd6b1:0x5ce},_0x59e345={_0x56ee5b:0x11d};function _0x2ebafb(_0x2caa38,_0xa1bdd2){return _0x1bc0ac(_0x2caa38,_0xa1bdd2-_0x59e345._0x56ee5b);}const _0xff22af={};function _0x312367(_0x458374,_0x399837){return _0x1bc0ac(_0x399837,_0x458374-0x72);}_0xff22af[_0x312367(_0x18f204._0xfe56c3,0x5db)]=_0x2ebafb(0x490,0x58c)+_0x312367(0x6e2,0x771),_0xff22af[_0x2ebafb(0x6bf,_0x18f204._0x3eccb9)]=_0x2ebafb(_0x18f204._0x273351,0x58c)+_0x312367(0x4ad,_0x18f204._0x266feb)+_0x312367(_0x18f204._0x15dc69,0x7e2)+_0x2ebafb(_0x18f204._0x1df7f1,0x65a)+'/127.0.0'+_0x312367(_0x18f204._0x2f7858,_0x18f204._0x28891b)+'>]';const _0x5203d5=_0xff22af;console[_0x2ebafb(0x54f,0x46d)]([_0x2ebafb(_0x18f204._0x38b323,0x58c)+_0x312367(0x72e,0x542)+_0x312367(_0x18f204._0x42a8c4,_0x18f204._0x2ce594)+_0x2ebafb(_0x18f204._0x4ca3c9,_0x18f204._0x277d86)+'-name\x20<d'+'isplayNa'+_0x312367(0x569,_0x18f204._0x186d03)+_0x2ebafb(_0x18f204._0x5b07d5,_0x18f204._0x2ebd42)+_0x2ebafb(0x748,0x681)+_0x2ebafb(_0x18f204._0x2ab72,0x83d)+_0x2ebafb(0x4bd,0x5f7)+'e]',_0x312367(_0x18f204._0x1a71b1,_0x18f204._0x2e3d3a)+_0x2ebafb(_0x18f204._0x592b1e,_0x18f204._0x2e1c24)+'code\x20[--'+'qr-file\x20'+'<path>]\x20'+_0x312367(_0x18f204._0x260216,0x8a8),_0x5203d5[_0x2ebafb(0x458,0x49f)],_0x312367(0x4e1,0x321)+_0x2ebafb(0x7e0,0x79a),_0x312367(_0x18f204._0x1a71b1,0x5af)+_0x2ebafb(0x5f4,0x5d1),_0x2ebafb(0x6de,0x58c)+_0x312367(0x4a7,_0x18f204._0x2dc603)+'l','clawket\x20'+'reset',_0x312367(_0x18f204._0x21fd3b,_0x18f204._0x4d4ed7)+_0x312367(0x5bb,_0x18f204._0x39d4e3),_0x312367(0x4e1,0x436)+_0x2ebafb(_0x18f204._0x2d7f94,0x78f)+'last\x20<2m'+_0x2ebafb(0x50e,_0x18f204._0x380fc4)+_0x312367(_0x18f204._0x2e6e6f,0x640)+'>]\x20[--er'+_0x312367(0x487,_0x18f204._0x424582)+_0x312367(_0x18f204._0x4d9e62,_0x18f204._0x1b55f2),'clawket\x20'+_0x2ebafb(_0x18f204._0x5868d4,0x683)+_0x2ebafb(0x789,0x5e2),_0x5203d5['igIWq']][_0x312367(_0x18f204._0x23ca2a,_0x18f204._0x5cd6b1)]('\x0a'));}function formatLocalTime(_0x3adce4){const _0x50e21e={_0x39499b:0x2e9,_0x1fc5da:0x2ea,_0x547285:0xdc,_0xb58816:0x78,_0x2977cc:0x6b,_0x5bff0c:0x183},_0x4eb222={_0x5010db:0x49c},_0x3b1cdb=new Date(_0x3adce4);if(Number[_0x1d2a51(_0x50e21e._0x39499b,_0x50e21e._0x1fc5da)](_0x3b1cdb[_0x4bfca5(-_0x50e21e._0x547285,_0x50e21e._0xb58816)]()))return _0x3adce4;function _0x1d2a51(_0x2a9d43,_0x42eb97){return _0x5ccb08(_0x42eb97,_0x2a9d43-_0x4eb222._0x5010db);}function _0x4bfca5(_0x3025a9,_0x42234a){return _0x5ccb08(_0x3025a9,_0x42234a-0x49);}return _0x3b1cdb[_0x4bfca5(_0x50e21e._0x2977cc,0x126)+_0x4bfca5(0x280,_0x50e21e._0x5bff0c)]();}function formatError(_0x442f65){return _0x442f65 instanceof Error?_0x442f65['message']:String(_0x442f65);}function printJson(_0x54272d){console['log'](JSON['stringif'+'y'](_0x54272d,null,0x2));}main()[_0x1bc0ac(0x2d7,0x357)](_0x5452cf=>{const _0x1b552f={_0xa3d8e7:0x5d7},_0x4829e3={_0x48a793:0x125};console['error'](formatError(_0x5452cf));function _0x49896a(_0x92b2e8,_0x3c1308){return _0x1bc0ac(_0x92b2e8,_0x3c1308- -_0x4829e3._0x48a793);}process[_0x49896a(0x68b,_0x1b552f._0xa3d8e7)](0x1);});
|
|
2
|
+
(function(_0x43b581,_0x29e054){const _0x5df907={_0x34dae4:0x547,_0x2f7b21:0x33f,_0x3b2ef5:0x1c6,_0x5ecf56:0x33,_0x58363d:0x293,_0x34b8ee:0x10d,_0x7e425c:0x27d,_0x543de6:0x94,_0x2160cd:0x21,_0x5c16d8:0x314,_0x27c970:0x13,_0x597e04:0x215,_0x4217cc:0x27a,_0x464dba:0x52,_0x3b4e4d:0x229},_0x452189={_0x55c09c:0x13e},_0x260985=_0x43b581();function _0x13f85f(_0x123af3,_0x4c01f6){return _0x2e58(_0x4c01f6- -0xff,_0x123af3);}function _0x3d264e(_0x4bc343,_0x4fa588){return _0x2e58(_0x4fa588- -_0x452189._0x55c09c,_0x4bc343);}while(!![]){try{const _0x430d83=parseInt(_0x3d264e(_0x5df907._0x34dae4,_0x5df907._0x2f7b21))/0x1*(parseInt(_0x13f85f(_0x5df907._0x3b2ef5,-_0x5df907._0x5ecf56))/0x2)+-parseInt(_0x13f85f(0x1c4,_0x5df907._0x58363d))/0x3+-parseInt(_0x13f85f(_0x5df907._0x34b8ee,0x195))/0x4*(-parseInt(_0x3d264e(-0x62,0x119))/0x5)+parseInt(_0x3d264e(-_0x5df907._0x7e425c,-_0x5df907._0x543de6))/0x6*(-parseInt(_0x13f85f(0x1fc,_0x5df907._0x2160cd))/0x7)+parseInt(_0x3d264e(_0x5df907._0x5c16d8,0x1e7))/0x8+parseInt(_0x13f85f(-0x129,_0x5df907._0x27c970))/0x9*(parseInt(_0x3d264e(_0x5df907._0x597e04,_0x5df907._0x4217cc))/0xa)+parseInt(_0x13f85f(_0x5df907._0x464dba,_0x5df907._0x3b4e4d))/0xb;if(_0x430d83===_0x29e054)break;else _0x260985['push'](_0x260985['shift']());}catch(_0xb5f0d8){_0x260985['push'](_0x260985['shift']());}}}(_0x39fb,0xc3f52));const _0x2f63a8=(function(){const _0x4cc0c1={_0x586ba5:0x27a,_0x4481a9:0x1fc};let _0x2e068d=!![];return function(_0x1b12b9,_0x26b762){const _0x5b62cc=_0x2e068d?function(){const _0x1f8a61={_0x23e46c:0x39b};function _0x117838(_0x5188ea,_0x46e40f){return _0x2e58(_0x5188ea- -_0x1f8a61._0x23e46c,_0x46e40f);}if(_0x26b762){const _0x45d011=_0x26b762[_0x117838(-_0x4cc0c1._0x586ba5,-_0x4cc0c1._0x4481a9)](_0x1b12b9,arguments);return _0x26b762=null,_0x45d011;}}:function(){};return _0x2e068d=![],_0x5b62cc;};}()),_0x5b6c10=_0x2f63a8(this,function(){const _0x48ded4={_0x157456:0x41c,_0x16b277:0x2eb,_0x3e3129:0x5e6,_0x52e82a:0x563,_0x76fe95:0x3d8,_0x14860c:0x596},_0x269a67={_0x450b2a:0x253},_0x3d6f2e={};function _0x55cf07(_0x4c6c27,_0x42f05c){return _0x2e58(_0x4c6c27-_0x269a67._0x450b2a,_0x42f05c);}function _0x211ac3(_0x494fc5,_0xb4316b){return _0x2e58(_0xb4316b-0x165,_0x494fc5);}_0x3d6f2e[_0x55cf07(_0x48ded4._0x157456,0x532)]='(((.+)+)'+_0x211ac3(_0x48ded4._0x16b277,0x4c7);const _0x55272c=_0x3d6f2e;return _0x5b6c10[_0x55cf07(0x563,0x473)]()[_0x55cf07(0x3bc,0x4e5)](_0x55272c[_0x55cf07(0x41c,_0x48ded4._0x3e3129)])[_0x55cf07(_0x48ded4._0x52e82a,_0x48ded4._0x76fe95)]()[_0x55cf07(0x459,0x505)+_0x211ac3(0x282,0x34d)](_0x5b6c10)[_0x55cf07(0x3bc,_0x48ded4._0x14860c)](_0x55272c['eKXmJ']);});_0x5b6c10();import _0x52e07e from'qrcode-terminal';import{readFileSync as _0x365046}from'fs';import{Socket}from'net';import{existsSync,mkdirSync,readFileSync,rmSync,writeFileSync}from'fs';import{randomUUID}from'crypto';import{homedir,hostname,userInfo}from'os';import{join}from'path';var CONFIG_DIR=join(homedir(),_0x11b7ab(0x4c1,0x2c6)),CONFIG_PATH=join(CONFIG_DIR,'bridge-c'+_0x11b7ab(-0x20f,-0xb2)),OPENCLAW_CONFIG_PATH=join(homedir(),_0x6eb3(0x1a8,0x271)+'w','openclaw'+'.json');function getPairingConfigPath(){return CONFIG_PATH;}function readPairingConfig(){const _0x313ce0={_0x1d4b82:0x4,_0x554f8c:0x67,_0x4bbd1e:0x24e,_0x2d8907:0x146,_0x18d1c1:0x1ef,_0x1962e8:0x1ff,_0x1a1de4:0x274,_0x219999:0x3b5,_0x155848:0x1c3,_0x42c29b:0x4c8,_0x56b55c:0x2fd,_0x16c1de:0x4a,_0x4f2620:0x158};function _0x59905f(_0x20c1f1,_0x3952f0){return _0x11b7ab(_0x3952f0,_0x20c1f1-0x2ee);}const _0x3f6e3d={'PNHCF':function(_0x2aaa79,_0x592090){return _0x2aaa79(_0x592090);},'ksbkr':function(_0x38de26,_0x23ca2c){return _0x38de26!==_0x23ca2c;},'bmPuY':function(_0x4ea86e,_0x9c220a){return _0x4ea86e(_0x9c220a);}};function _0x526f40(_0x272069,_0x286e5d){return _0x11b7ab(_0x286e5d,_0x272069-0x61);}if(!_0x3f6e3d['PNHCF'](existsSync,CONFIG_PATH))return null;try{const _0x2f4c17=JSON['parse'](readFileSync(CONFIG_PATH,_0x526f40(0x179,-_0x313ce0._0x1d4b82)));if(!_0x2f4c17['serverUr'+'l']||!_0x2f4c17[_0x59905f(0x4db,0x488)+'d']||!_0x2f4c17[_0x526f40(-_0x313ce0._0x554f8c,-0xc4)+_0x59905f(0x5cb,0x5b2)]||!_0x2f4c17['relayUrl'])return null;const _0x4e13e8={'serverUrl':_0x2f4c17['serverUr'+'l'],'gatewayId':_0x2f4c17[_0x526f40(_0x313ce0._0x4bbd1e,0x107)+'d'],'relaySecret':_0x2f4c17[_0x526f40(-0x67,_0x313ce0._0x2d8907)+_0x526f40(0x33e,_0x313ce0._0x18d1c1)],'relayUrl':_0x2f4c17[_0x59905f(_0x313ce0._0x1962e8,0x3fa)],'instanceId':_0x2f4c17['instance'+'Id']?.[_0x526f40(0x160,-0x51)]()||createInstanceId(),'displayName':_0x2f4c17['displayN'+'ame']??null,'createdAt':_0x2f4c17[_0x526f40(_0x313ce0._0x1a1de4,_0x313ce0._0x219999)+'t']??new Date()[_0x526f40(_0x313ce0._0x155848,0xbe)+'ing'](),'updatedAt':_0x2f4c17[_0x526f40(0x2cf,_0x313ce0._0x42c29b)+'t']??new Date()['toISOStr'+'ing']()};return _0x3f6e3d[_0x526f40(_0x313ce0._0x56b55c,0x36f)](_0x2f4c17[_0x526f40(0x8b,_0x313ce0._0x16c1de)+'Id'],_0x4e13e8[_0x526f40(0x8b,-_0x313ce0._0x4f2620)+'Id'])&&_0x3f6e3d[_0x59905f(0x339,0x348)](writePairingConfig,_0x4e13e8),_0x4e13e8;}catch{return null;}}function writePairingConfig(_0x337a9d){const _0x3c0612={_0x33f6fc:0xd6,_0x5442dd:0xe4};function _0x367be6(_0x5650c1,_0x2c06ef){return _0x11b7ab(_0x2c06ef,_0x5650c1- -0x170);}function _0x5689e3(_0xb311b1,_0x40d39b){return _0x11b7ab(_0x40d39b,_0xb311b1- -0x202);}const _0x37b251={'zkrdp':function(_0x43895a,_0x1ec109,_0x280330,_0x1f6680){return _0x43895a(_0x1ec109,_0x280330,_0x1f6680);},'NIlGi':_0x367be6(-0x58,_0x3c0612._0x33f6fc)},_0x13064d={};_0x13064d['recursiv'+'e']=!![],mkdirSync(CONFIG_DIR,_0x13064d),_0x37b251[_0x5689e3(-0x216,-0x18e)](writeFileSync,CONFIG_PATH,JSON['stringif'+'y'](_0x337a9d,null,0x2)+'\x0a',_0x37b251[_0x367be6(-_0x3c0612._0x5442dd,-0x116)]);}function deletePairingConfig(){if(!existsSync(CONFIG_PATH))return;const _0x4f9c43={};_0x4f9c43['force']=!![],rmSync(CONFIG_PATH,_0x4f9c43);}function getDefaultBridgeDisplayName(){const _0x4597cd={_0x2fcb90:0x15d,_0x373af0:0x447,_0x5d8b2b:0x49d,_0x2cb1da:0x199,_0x3c8b42:0x69,_0x3f5ef7:0xc6,_0x54eda3:0x3cd,_0xfa6eb5:0x56f},_0x549fa6={_0x1f5058:0x54},_0x481a06={_0x168573:0x35e},_0x1164b9={'pfHGK':function(_0x10d5a5){return _0x10d5a5();},'eKRkn':_0x19830f(-_0x4597cd._0x2fcb90,-0x242)+'Bridge'},_0x2026c7=_0x1164b9[_0x19830f(0x1a3,0xd6)](readOpenClawDefaultAgentName);function _0x20b005(_0x53e83b,_0x1e4432){return _0x6eb3(_0x53e83b,_0x1e4432-_0x481a06._0x168573);}if(_0x2026c7)return _0x2026c7;try{const _0x339c59=userInfo()[_0x20b005(_0x4597cd._0x373af0,_0x4597cd._0x5d8b2b)][_0x19830f(0x69,-_0x4597cd._0x2cb1da)]();if(_0x339c59)return _0x339c59;}catch{}const _0x2ed3bb=(process.env.LOGNAME??process.env.USER??process.env.USERNAME??'')[_0x19830f(_0x4597cd._0x3c8b42,_0x4597cd._0x3f5ef7)]();if(_0x2ed3bb)return _0x2ed3bb;function _0x19830f(_0x20c3ab,_0x58479f){return _0x6eb3(_0x58479f,_0x20c3ab- -_0x549fa6._0x1f5058);}return hostname()['trim']()||_0x1164b9[_0x20b005(_0x4597cd._0x54eda3,_0x4597cd._0xfa6eb5)];}function pickOpenClawDefaultAgentName(_0x492853){const _0x25ff05={_0x1b9dfa:0x49,_0x1f6f60:0x6d,_0x11881a:0x228},_0x4f6664={_0x4ce526:0x13d},_0x1b6e62={_0x4da85f:0x272};function _0x192d25(_0x1ae225,_0x53bc56){return _0x6eb3(_0x1ae225,_0x53bc56-_0x1b6e62._0x4da85f);}if(!_0x492853||typeof _0x492853!==_0x192d25(_0x25ff05._0x1b9dfa,0x16f))return null;const _0x146e31=_0x492853['agents'];function _0x24c5c6(_0x2500fd,_0x36b729){return _0x6eb3(_0x36b729,_0x2500fd- -_0x4f6664._0x4ce526);}const _0x2d8e3b=Array[_0x192d25(0x337,0x2bf)](_0x146e31?.[_0x192d25(0x2b9,0x21d)])?_0x146e31['list']:[],_0x1aab03=_0x2d8e3b[_0x24c5c6(-_0x25ff05._0x1f6f60,-_0x25ff05._0x11881a)](_0x327cc1=>isDefaultAgent(_0x327cc1))??_0x2d8e3b[_0x192d25(0x415,0x342)](_0x527a21=>hasAgentId(_0x527a21,_0x192d25(0x10a,0x1df)))??_0x2d8e3b[0x0];return readAgentName(_0x1aab03);}function createInstanceId(){const _0x38c8d5={_0x46e6bd:0x1f0,_0x4cd723:0x1c8,_0x16a9cd:0x1fb,_0x3a3c54:0x176,_0x3569df:0x38e,_0x161f74:0x441};function _0x4d79bd(_0x254727,_0x3d835a){return _0x6eb3(_0x3d835a,_0x254727-0x261);}const _0x2a8487={'TxkMd':_0x4d79bd(0x300,0x217),'EJQCj':function(_0x3e04c7){return _0x3e04c7();}};function _0x15c007(_0x3b6c08,_0x4d1802){return _0x6eb3(_0x4d1802,_0x3b6c08- -0x17a);}const _0x3b4678=sanitizeId(hostname()||_0x2a8487[_0x15c007(-_0x38c8d5._0x46e6bd,-0x65)]);return _0x15c007(-_0x38c8d5._0x4cd723,-_0x38c8d5._0x16a9cd)+_0x3b4678+'-'+_0x2a8487[_0x4d79bd(_0x38c8d5._0x3a3c54,0x1c1)](randomUUID)[_0x4d79bd(_0x38c8d5._0x3569df,_0x38c8d5._0x161f74)](0x0,0xa);}function sanitizeId(_0x2f754e){const _0xc2dde6={_0x505793:0x93,_0x5b623f:0x200,_0x2dbe75:0x20d,_0x54bccc:0x61},_0x104480={_0x373a8f:0x100},_0x242c4f={_0x186d8c:0xa9};function _0x2392d9(_0x5b94da,_0x42b581){return _0x6eb3(_0x5b94da,_0x42b581-_0x242c4f._0x186d8c);}function _0x1224bc(_0x5351c4,_0x2a9721){return _0x6eb3(_0x5351c4,_0x2a9721- -_0x104480._0x373a8f);}return _0x2f754e['trim']()[_0x1224bc(-0x145,-_0xc2dde6._0x505793)+'ase']()[_0x1224bc(-_0xc2dde6._0x5b623f,-_0xc2dde6._0x2dbe75)](/[^a-z0-9._-]+/g,'-')['replace'](/^-+|-+$/g,'')||_0x1224bc(-0x200,-_0xc2dde6._0x54bccc);}function readOpenClawDefaultAgentName(){const _0x4b85f1={_0x1f2fee:0x395},_0x15be5c={_0x1c50df:0x27d};function _0x1f3862(_0x503c11,_0x2e4883){return _0x6eb3(_0x2e4883,_0x503c11-_0x15be5c._0x1c50df);}const _0x1f8b5c={'DsYVz':function(_0x2ec6a8,_0x33cec9,_0x179856){return _0x2ec6a8(_0x33cec9,_0x179856);}};if(!existsSync(OPENCLAW_CONFIG_PATH))return null;function _0x5afd9e(_0x3599c6,_0x2f57b0){return _0x6eb3(_0x3599c6,_0x2f57b0-0x3cb);}try{const _0x5c6b84=JSON['parse'](_0x1f8b5c[_0x1f3862(_0x4b85f1._0x1f2fee,0x1ff)](readFileSync,OPENCLAW_CONFIG_PATH,_0x5afd9e(0x521,0x4a1)));return pickOpenClawDefaultAgentName(_0x5c6b84);}catch{return null;}}function isDefaultAgent(_0x2d62af){const _0x4dfc23={_0x406c3f:0x1ad,_0x677730:0xef,_0x419c25:0x23};function _0x5729c7(_0x40f572,_0xf9e910){return _0x11b7ab(_0x40f572,_0xf9e910-0x535);}function _0x1f0bbd(_0x58c1d5,_0x493425){return _0x11b7ab(_0x58c1d5,_0x493425- -0xec);}const _0x4aef20={'GWQep':function(_0x9f0cdf,_0x41549b){return _0x9f0cdf(_0x41549b);}};return _0x4aef20['GWQep'](Boolean,_0x2d62af&&typeof _0x2d62af===_0x1f0bbd(-0x1a,-_0x4dfc23._0x406c3f)&&_0x2d62af[_0x1f0bbd(_0x4dfc23._0x677730,_0x4dfc23._0x419c25)]===!![]);}function hasAgentId(_0x26ed6b,_0x2bfc56){const _0x7b4e84={_0x418336:0x362,_0x199ece:0x411,_0x21bf3e:0x71e,_0x40f009:0x737,_0x45961f:0x5d1},_0x541524={_0x55558a:0x514};function _0xdfda9d(_0x3288b1,_0x4f131c){return _0x6eb3(_0x3288b1,_0x4f131c- -0x12f);}const _0x1d049d={'ntILG':function(_0xe7fe01,_0x20e216){return _0xe7fe01(_0x20e216);},'exVop':'string'};function _0x5bf8d7(_0x5d643d,_0x262f55){return _0x6eb3(_0x5d643d,_0x262f55-_0x541524._0x55558a);}return _0x1d049d['ntILG'](Boolean,_0x26ed6b&&typeof _0x26ed6b===_0x5bf8d7(_0x7b4e84._0x418336,_0x7b4e84._0x199ece)&&typeof _0x26ed6b['id']===_0x1d049d[_0x5bf8d7(_0x7b4e84._0x21bf3e,_0x7b4e84._0x40f009)]&&_0x26ed6b['id'][_0x5bf8d7(0x526,_0x7b4e84._0x45961f)]()===_0x2bfc56);}function readAgentName(_0x595c41){const _0x3c4f41={_0x38dc69:0x1b4,_0x51930a:0x1c7,_0x4be06f:0x47,_0x5cb347:0x121},_0x35dc7c={_0x4691a3:0x9d};if(!_0x595c41||typeof _0x595c41!=='object')return null;function _0x23cabf(_0x395d1d,_0x1318de){return _0x6eb3(_0x1318de,_0x395d1d- -_0x35dc7c._0x4691a3);}function _0x22ff82(_0x1fd43c,_0x4b8ba0){return _0x6eb3(_0x4b8ba0,_0x1fd43c- -0x133);}const _0x2264de=_0x595c41,_0x22b012=typeof _0x2264de[_0x23cabf(-0x11e,-0x53)]?.['name']==='string'?_0x2264de[_0x22ff82(-_0x3c4f41._0x38dc69,-_0x3c4f41._0x51930a)][_0x23cabf(-_0x3c4f41._0x4be06f,-0xd1)]['trim']():'';if(_0x22b012)return _0x22b012;const _0x2a635c=typeof _0x2264de['name']===_0x22ff82(-0x1f0,-_0x3c4f41._0x5cb347)?_0x2264de[_0x23cabf(-0x47,-0x223)]['trim']():'';return _0x2a635c||null;}function buildPairingQrPayload(_0x8ce880){const _0x2213f8={_0x360c94:0x1ae,_0x25819f:0x16f,_0xe104fb:0x223,_0x3c7b36:0x196,_0x5d21cf:0x276,_0xf24c13:0x480,_0x543c73:0x39c,_0x40ba61:0x23d,_0x540fd3:0x638,_0x15296f:0x7d3,_0x31368d:0x28b,_0x24ddc9:0x1a2,_0x33e96e:0x522,_0x4e3a72:0x492},_0x5ec04a={_0x5c58ab:0x1ce},_0x2cec31={};_0x2cec31['v']=0x2,_0x2cec31['k']='cp',_0x2cec31['s']=_0x8ce880[_0x2b8044(_0x2213f8._0x360c94,_0x2213f8._0x25819f)],_0x2cec31['g']=_0x8ce880[_0x2b8044(0x379,_0x2213f8._0xe104fb)+'d'],_0x2cec31['a']=_0x8ce880[_0x2b8044(0x1a0,_0x2213f8._0x3c7b36)+'de'];function _0x2b8044(_0x516e92,_0x375f97){return _0x6eb3(_0x375f97,_0x516e92-_0x5ec04a._0x5c58ab);}const _0x458bee=_0x2cec31;_0x8ce880[_0x2b8044(_0x2213f8._0x5d21cf,0x322)+_0x2b8044(_0x2213f8._0xf24c13,_0x2213f8._0x543c73)]?.[_0x2d2134(0x522,0x3af)]()&&(_0x458bee['n']=_0x8ce880[_0x2d2134(0x50d,0x6c6)+_0x2b8044(0x480,0x4d0)][_0x2b8044(0x28b,0x252)]());function _0x2d2134(_0x22b47c,_0x3e316c){return _0x6eb3(_0x3e316c,_0x22b47c-0x465);}return _0x8ce880['token']?.[_0x2b8044(0x28b,_0x2213f8._0x40ba61)]()&&(_0x458bee['t']=_0x8ce880[_0x2d2134(_0x2213f8._0x540fd3,_0x2213f8._0x15296f)][_0x2b8044(_0x2213f8._0x31368d,_0x2213f8._0x24ddc9)]()),_0x8ce880['password']?.[_0x2d2134(_0x2213f8._0x33e96e,0x5a9)]()&&(_0x458bee['p']=_0x8ce880[_0x2d2134(0x552,0x5aa)][_0x2b8044(0x28b,0x26f)]()),JSON[_0x2d2134(0x629,_0x2213f8._0x4e3a72)+'y'](_0x458bee);}async function pairGateway(_0x41e6d1){const _0x13662c={_0x134baf:0x258,_0x3541b0:0x227,_0x5d51d3:0x31d,_0x513d50:0xd6,_0x16e8dd:0xf0,_0x58e60b:0x138,_0x24ba0d:0x127,_0x43d085:0x166,_0x54817b:0x36f,_0x21bfad:0x197,_0x462746:0x23,_0x4c05c2:0x28,_0x2f1c68:0x113,_0x37b66b:0xcf,_0x73ee60:0x173,_0x3a6086:0x225,_0xae7569:0x3b3,_0xfb9a5a:0x30d,_0x385cfe:0x10f,_0x233857:0x8c,_0x5bd605:0x12b,_0xe19934:0x192,_0x43dafb:0x263,_0x5b667a:0x11b,_0x559c4c:0x4,_0x5d1335:0xdd,_0x592ce8:0xd1,_0xe4e374:0x9f,_0xd65c06:0x111,_0x466679:0x6b,_0x124779:0xb,_0x42f2de:0x288,_0x58427d:0xb9,_0x1d0fc1:0x1d7,_0xebacb7:0xea,_0x4e89d5:0xc4,_0x49f028:0x15,_0x1d4aec:0x3f,_0x5432de:0x196,_0x471fcd:0xde,_0x5a9c2d:0xc6,_0xad779d:0x1e5,_0x90e6ee:0x1d2,_0xdc3f94:0xe7,_0x39a8ac:0x9b,_0x42d16a:0x17b,_0x40948c:0x11e,_0x12ec3b:0x29d,_0x893f01:0xfb,_0x1a6677:0x1e0,_0x5f06e4:0x19a,_0x570d86:0x166,_0x8b505:0x1af,_0x319160:0x1b},_0x4c3b29={'ciiXl':function(_0x5b0c5c,_0x5820ad){return _0x5b0c5c===_0x5820ad;},'rdYrC':'server-m'+'ismatch','jmgXi':function(_0x2fc385,_0x770cbd,_0x126895){return _0x2fc385(_0x770cbd,_0x126895);},'NMmaM':_0x490f2e(_0x13662c._0x134baf,0x450),'FlTbf':function(_0x23fd44,_0x3d2d47){return _0x23fd44(_0x3d2d47);}},_0x45bacf=normalizeHttpBase(_0x41e6d1[_0x297473(-0xcf,-_0x13662c._0x3541b0)+'l']),_0x245cee=readPairingConfig(),_0x587b9d=assessPairingCompatibility(_0x245cee,_0x45bacf);if(_0x4c3b29[_0x297473(-0x11a,-0x164)](_0x587b9d,_0x297473(-0x205,-_0x13662c._0x5d51d3)+_0x297473(0x1ef,_0x13662c._0x513d50))&&_0x245cee){const _0x3cc727={};return _0x3cc727[_0x490f2e(_0x13662c._0x16e8dd,0x8)+'l']=_0x245cee[_0x297473(-0xcf,-0x299)+'l'],_0x3cc727[_0x297473(0xde,-0x7c)+'d']=_0x245cee[_0x297473(0xde,-0x19)+'d'],_0x3cc727[_0x490f2e(-0x18,-0x10)+_0x490f2e(0x38d,0x4e0)]=_0x245cee[_0x490f2e(-0x18,0x1b0)+_0x490f2e(0x38d,0x185)],_0x3cc727[_0x297473(-0x25,_0x13662c._0x58e60b)+'ame']=_0x41e6d1[_0x490f2e(0x19a,0x101)+_0x297473(0x1e5,_0x13662c._0x24ba0d)],_0x3cc727[_0x490f2e(0x189,0x292)+'oken']=_0x41e6d1[_0x490f2e(0x189,0x143)+_0x490f2e(_0x13662c._0x43d085,_0x13662c._0x54817b)],_0x3cc727[_0x297473(-_0x13662c._0x21bfad,-_0x13662c._0x462746)+'assword']=_0x41e6d1[_0x490f2e(_0x13662c._0x4c05c2,_0x13662c._0x2f1c68)+_0x297473(-0x70,-_0x13662c._0x37b66b)],refreshAccessCode(_0x3cc727);}if(_0x587b9d===_0x4c3b29['rdYrC'])throw new Error(_0x490f2e(0x1a4,_0x13662c._0x73ee60)+'dge\x20is\x20a'+_0x490f2e(0x3f,0x21d)+'aired\x20wi'+_0x297473(-0x68,-_0x13662c._0x3a6086)+_0x245cee?.[_0x297473(-0xcf,-0x5c)+'l']+(_0x490f2e(_0x13662c._0xae7569,0x51d)+_0x490f2e(_0x13662c._0xfb9a5a,_0x13662c._0x385cfe)+'eset\x22\x20be'+'fore\x20pai'+'ring\x20wit'+_0x490f2e(_0x13662c._0x233857,0x281)+_0x297473(-_0x13662c._0x5bd605,-0x1f4)+_0x297473(_0x13662c._0xe19934,_0x13662c._0x43dafb)));const _0x5b60b4={};function _0x297473(_0x3fb0dd,_0x58323f){return _0x11b7ab(_0x58323f,_0x3fb0dd- -0x10f);}_0x5b60b4[_0x297473(0x68,_0x13662c._0x5b667a)+_0x297473(_0x13662c._0x559c4c,-0xfc)]='applicat'+'ion/json',_0x5b60b4['accept']='applicat'+_0x297473(-0x1fa,-_0x13662c._0x5d1335);const _0x2a8d88=await _0x4c3b29[_0x297473(-_0x13662c._0x592ce8,0x22)](fetch,_0x45bacf+('/v1/pair'+_0x490f2e(_0x13662c._0xe4e374,_0x13662c._0xd65c06)+'r'),{'method':_0x4c3b29[_0x490f2e(_0x13662c._0x466679,-0x124)],'headers':_0x5b60b4,'body':JSON['stringif'+'y']({'displayName':_0x41e6d1[_0x297473(-0x25,_0x13662c._0x124779)+_0x297473(0x1e5,_0x13662c._0x42f2de)]?.[_0x297473(-0x10,-0xb5)]()||null})});if(!_0x2a8d88['ok'])throw new Error(_0x297473(_0x13662c._0x58427d,0x7c)+'ister\x20fa'+'iled\x20('+_0x2a8d88[_0x297473(_0x13662c._0x1d0fc1,0x61)]+_0x490f2e(0x19f,_0x13662c._0xebacb7)+await _0x2a8d88[_0x297473(-0xff,-0x1c6)]());const _0xaa47a8=await _0x2a8d88[_0x297473(_0x13662c._0x4e89d5,-_0x13662c._0x49f028)](),_0xbce93c=new Date()['toISOStr'+'ing'](),_0x1684fa={'serverUrl':_0x45bacf,'gatewayId':_0xaa47a8['gatewayI'+'d'],'relaySecret':_0xaa47a8['relaySec'+_0x490f2e(0x38d,0x359)],'relayUrl':_0xaa47a8[_0x490f2e(-_0x13662c._0x1d4aec,-_0x13662c._0x5432de)],'instanceId':_0x245cee?.[_0x490f2e(0xda,0x207)+'Id']??_0x297473(-0x11b,-0x68)+_0xaa47a8[_0x297473(_0x13662c._0x471fcd,_0x13662c._0x5a9c2d)+'d']['slice'](-0xa),'displayName':_0xaa47a8['displayN'+_0x297473(_0x13662c._0xad779d,0x278)],'createdAt':_0xbce93c,'updatedAt':_0xbce93c};function _0x490f2e(_0x36d9b9,_0x40e57f){return _0x11b7ab(_0x40e57f,_0x36d9b9-0xb0);}return _0x4c3b29[_0x297473(-_0x13662c._0x90e6ee,-_0x13662c._0xdc3f94)](writePairingConfig,_0x1684fa),{'config':_0x1684fa,'accessCode':_0xaa47a8[_0x490f2e(_0x13662c._0x4e89d5,0x54)+'de'],'accessCodeExpiresAt':_0xaa47a8['accessCo'+_0x297473(_0x13662c._0x39a8ac,-_0x13662c._0x466679)+_0x297473(-_0x13662c._0x42d16a,-_0x13662c._0x40948c)],'action':_0x490f2e(0x290,0x300)+'ed','qrPayload':buildPairingQrPayload({'server':_0x45bacf,'gatewayId':_0xaa47a8[_0x490f2e(_0x13662c._0x12ec3b,0x422)+'d'],'accessCode':_0xaa47a8[_0x297473(-_0x13662c._0x893f01,-_0x13662c._0x1a6677)+'de'],'displayName':_0xaa47a8[_0x490f2e(_0x13662c._0x5f06e4,0x257)+'ame'],'token':_0x41e6d1[_0x297473(-0x36,-0x41)+_0x490f2e(_0x13662c._0x570d86,0x1f8)]?.[_0x490f2e(_0x13662c._0x8b505,-_0x13662c._0x319160)]()||null,'password':_0x41e6d1[_0x490f2e(_0x13662c._0x4c05c2,-0x82)+'assword']?.[_0x490f2e(_0x13662c._0x8b505,0x15f)]()||null})};}async function refreshAccessCode(_0x169844){const _0x5d07b4={_0x4d2415:0x2b0,_0x459c9f:0x2f,_0x4b4a02:0x164,_0x16005f:0x438,_0x13fa83:0x3f7,_0x4db0cd:0x397,_0x5e8d47:0x183,_0x17af43:0x3df,_0x38f944:0x528,_0x293b72:0x538,_0x4629b3:0x40f,_0x4fb937:0x76,_0x64cf03:0x1c7,_0x42a310:0x527,_0x3c8926:0x90,_0x39b4d7:0x8d,_0x3fa6bc:0x340,_0x17e8aa:0x18e,_0x30213b:0x3e3,_0x2de1c5:0x520,_0xe5a260:0x12a,_0x337369:0x238,_0x6ba7d2:0x1db,_0x31a6d0:0x48b,_0x5ae5df:0x32d,_0x975bb:0x19a,_0xa74733:0x506,_0x395bc4:0x74,_0x113864:0xc8,_0x2103db:0x1d2,_0x4dbdd1:0xe5,_0x402e06:0x25d,_0x461de1:0x1ec,_0x19cf60:0x3f5,_0x525c35:0x1df,_0x105ff7:0x34e,_0x2b6c43:0xfb,_0x30ec26:0x3d6,_0x42b92a:0x1f5,_0x3d35d1:0x341,_0x4123c9:0x34a},_0x20820a={_0x24a6e7:0x11a},_0x502f5b={'hfvfb':function(_0x21345e,_0x1f71df,_0x3a5ad9){return _0x21345e(_0x1f71df,_0x3a5ad9);},'YfqNl':_0x16645f(_0x5d07b4._0x4d2415,0x3f3),'wzSYx':'applicat'+_0x1f6370(_0x5d07b4._0x459c9f,-_0x5d07b4._0x4b4a02)},_0x4e97b9=readPairingConfig(),_0x349948=normalizeHttpBase(_0x169844?.[_0x16645f(0x362,0x28b)+'l']??_0x4e97b9?.[_0x1f6370(0x15a,0x342)+'l']??''),_0x1fb61e=_0x169844?.[_0x16645f(0x291,_0x5d07b4._0x16005f)+'d']??_0x4e97b9?.[_0x1f6370(0x307,0x1ad)+'d']??'',_0x5e178c=_0x169844?.['relaySec'+_0x1f6370(_0x5d07b4._0x13fa83,_0x5d07b4._0x4db0cd)]??_0x4e97b9?.[_0x16645f(0x365,_0x5d07b4._0x5e8d47)+_0x16645f(_0x5d07b4._0x17af43,_0x5d07b4._0x38f944)]??'';if(!_0x349948||!_0x1fb61e||!_0x5e178c)throw new Error('Pairing\x20'+_0x1f6370(0x3a5,0x27e)+'ot\x20found'+'.\x20Run\x20pa'+'ir\x20first'+'.');const _0x59ee61=await _0x502f5b[_0x16645f(_0x5d07b4._0x293b72,_0x5d07b4._0x4629b3)](fetch,_0x349948+(_0x1f6370(_0x5d07b4._0x4fb937,_0x5d07b4._0x64cf03)+'/access-'+_0x1f6370(0x8a,0x13a)),{'method':_0x502f5b[_0x16645f(0x653,_0x5d07b4._0x42a310)],'headers':{'content-type':_0x502f5b[_0x1f6370(_0x5d07b4._0x3c8926,_0x5d07b4._0x39b4d7)],'accept':_0x1f6370(0x417,_0x5d07b4._0x3fa6bc)+_0x1f6370(0x2f,_0x5d07b4._0x17e8aa)},'body':JSON[_0x1f6370(0x320,_0x5d07b4._0x30213b)+'y']({'gatewayId':_0x1fb61e,'relaySecret':_0x5e178c,'displayName':_0x169844?.['displayN'+'ame']?.[_0x16645f(0x32d,0x34a)]()||void 0x0})});if(!_0x59ee61['ok'])throw new Error('Access\x20c'+_0x16645f(_0x5d07b4._0x2de1c5,0x3a8)+_0x16645f(0x407,0x475)+'ed\x20('+_0x59ee61['status']+'):\x20'+await _0x59ee61[_0x1f6370(_0x5d07b4._0xe5a260,_0x5d07b4._0x337369)]());const _0x503591=await _0x59ee61['json'](),_0x6448a1={'serverUrl':_0x349948,'gatewayId':_0x503591['gatewayI'+'d'],'relaySecret':_0x5e178c,'relayUrl':_0x503591[_0x1f6370(0x2b,-0x121)],'instanceId':_0x4e97b9?.[_0x16645f(_0x5d07b4._0x6ba7d2,0x275)+'Id']??_0x1f6370(0x10e,0x184)+_0x503591[_0x1f6370(0x307,_0x5d07b4._0x31a6d0)+'d'][_0x1f6370(0x289,0x3ac)](-0xa),'displayName':_0x503591[_0x16645f(0x4fb,0x335)+'ame'],'createdAt':_0x4e97b9?.[_0x1f6370(_0x5d07b4._0x5ae5df,_0x5d07b4._0x975bb)+'t']??new Date()[_0x16645f(_0x5d07b4._0xa74733,0x3ad)+_0x16645f(0x3c2,0x1f9)](),'updatedAt':new Date()[_0x1f6370(0x27c,_0x5d07b4._0x395bc4)+_0x1f6370(_0x5d07b4._0x113864,_0x5d07b4._0x2103db)]()};writePairingConfig(_0x6448a1);function _0x16645f(_0x777cd1,_0xa66036){return _0x11b7ab(_0x777cd1,_0xa66036-0x24b);}function _0x1f6370(_0x47fa74,_0x140d07){return _0x11b7ab(_0x140d07,_0x47fa74-_0x20820a._0x24a6e7);}return{'config':_0x6448a1,'accessCode':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x4dbdd1)+'de'],'accessCodeExpiresAt':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x402e06)+_0x16645f(_0x5d07b4._0x461de1,_0x5d07b4._0x19cf60)+_0x16645f(0x242,_0x5d07b4._0x525c35)],'action':_0x16645f(0x503,_0x5d07b4._0x105ff7)+'d','qrPayload':buildPairingQrPayload({'server':_0x349948,'gatewayId':_0x503591['gatewayI'+'d'],'accessCode':_0x503591[_0x1f6370(0x12e,_0x5d07b4._0x2b6c43)+'de'],'displayName':_0x503591[_0x16645f(0x1fb,0x335)+_0x16645f(_0x5d07b4._0x30ec26,0x53f)],'token':_0x169844?.['gatewayT'+'oken']?.[_0x16645f(_0x5d07b4._0x42b92a,0x34a)]()||null,'password':_0x169844?.[_0x16645f(0x1,0x1c3)+'assword']?.[_0x16645f(_0x5d07b4._0x3d35d1,_0x5d07b4._0x4123c9)]()||null})};}function normalizeHttpBase(_0x13898b){const _0x54b307={_0x431b50:0x3e5,_0x409588:0x1f4,_0x2785fb:0x1de,_0x54934a:0x204,_0x5ce106:0x8a,_0x40ebc2:0x1c9,_0x1db6d3:0x22d,_0x4c5bd0:0xec,_0x5eab10:0x8a,_0x462ad6:0x3a7,_0x2e4a43:0x2ed,_0x15e588:0x184,_0x3f61b4:0x442,_0x5ab2fc:0x1ee,_0x5149f5:0x4b,_0x2a3e73:0xb6},_0x54a050={_0x6ba67d:0x44c},_0x19bd8b={_0x3adb4e:0x15},_0x36d27c={};_0x36d27c[_0x213bbd(0x4be,_0x54b307._0x431b50)]=_0x105d38(_0x54b307._0x409588,0xb7),_0x36d27c['PPmTj']=_0x105d38(0x16c,_0x54b307._0x2785fb);const _0x7fec41=_0x36d27c,_0x44c90a=_0x13898b['trim']();if(!_0x44c90a)return'';if(_0x44c90a[_0x105d38(_0x54b307._0x54934a,_0x54b307._0x5ce106)+'th'](_0x7fec41['apHHW'])||_0x44c90a['startsWi'+'th'](_0x105d38(_0x54b307._0x40ebc2,0x1ee)))return _0x44c90a[_0x213bbd(_0x54b307._0x1db6d3,0x381)](/\/+$/,'');function _0x105d38(_0xa2d5d0,_0xa1b956){return _0x11b7ab(_0xa2d5d0,_0xa1b956-_0x19bd8b._0x3adb4e);}if(_0x44c90a[_0x105d38(-_0x54b307._0x4c5bd0,_0x54b307._0x5eab10)+'th'](_0x105d38(_0x54b307._0x462ad6,_0x54b307._0x2e4a43)))return(_0x105d38(0x169,0xb7)+_0x44c90a[_0x105d38(-0x2e,_0x54b307._0x15e588)]('ws://'['length']))[_0x213bbd(_0x54b307._0x3f61b4,0x381)](/\/+$/,'');function _0x213bbd(_0x1618c8,_0x3969b9){return _0x11b7ab(_0x1618c8,_0x3969b9-_0x54a050._0x6ba67d);}if(_0x44c90a['startsWi'+'th'](_0x7fec41['PPmTj']))return(_0x105d38(0x31b,_0x54b307._0x5ab2fc)+_0x44c90a['slice'](_0x105d38(-0x3,0x1de)[_0x105d38(-0x4f,0xfe)]))[_0x105d38(-_0x54b307._0x5149f5,-_0x54b307._0x2a3e73)](/\/+$/,'');return(_0x213bbd(0x4e4,0x625)+_0x44c90a)['replace'](/\/+$/,'');}function assessPairingCompatibility(_0x5a23ea,_0x458b79){const _0x2bb680={_0x348c68:0x6e8,_0x26cbc8:0x4db,_0x4eef28:0x4c5,_0xcb1e5:0x4c8,_0x30af11:0x5a3,_0x3effd6:0x787,_0x316495:0x710,_0x1ecbba:0x532,_0x52dca4:0x3de,_0x55a131:0x72a,_0xcd6f81:0x60c},_0x592a36={_0x21a7b4:0x4f2},_0x2e7b7f={_0xb0da5c:0x230},_0x34f630={};_0x34f630[_0x5b7fdb(0x41e,0x33d)]=_0x3f034c(_0x2bb680._0x348c68,0x6d2)+_0x5b7fdb(_0x2bb680._0x26cbc8,0x362);function _0x5b7fdb(_0x236f08,_0x219e4d){return _0x11b7ab(_0x219e4d,_0x236f08-_0x2e7b7f._0xb0da5c);}_0x34f630[_0x5b7fdb(_0x2bb680._0x4eef28,_0x2bb680._0xcb1e5)]=function(_0x34bd9e,_0x3620f4){return _0x34bd9e===_0x3620f4;};const _0x59d3fb=_0x34f630;if(!_0x5a23ea)return _0x59d3fb['uZKJc'];function _0x3f034c(_0x45b98c,_0xf454fc){return _0x11b7ab(_0x45b98c,_0xf454fc-_0x592a36._0x21a7b4);}if(_0x59d3fb[_0x3f034c(_0x2bb680._0x30af11,_0x2bb680._0x3effd6)](_0x5a23ea[_0x3f034c(_0x2bb680._0x316495,_0x2bb680._0x1ecbba)+'l'],_0x458b79))return _0x3f034c(_0x2bb680._0x52dca4,0x3fc)+_0x3f034c(0x9d7,0x7f0);return _0x3f034c(0x6f7,0x6b3)+_0x3f034c(_0x2bb680._0x55a131,_0x2bb680._0xcd6f81);}import{execFileSync,spawn}from'child_process';import{chmodSync,closeSync,existsSync as _0x44150d,mkdirSync as _0x40ab56,openSync,readFileSync as _0x34a7a2,realpathSync,rmSync as _0x40020e,writeFileSync as _0x301ed4}from'fs';import{homedir as _0xdfb285}from'os';import{dirname,join as _0x12493c}from'path';var SERVICE_LABEL=_0x6eb3(0x7e,0x88)+_0x6eb3(0x1eb,0xee)+_0x11b7ab(0x51,0x105),SYSTEMD_UNIT_NAME=SERVICE_LABEL+_0x6eb3(-0x97,-0x114),WINDOWS_RUN_KEY=_0x6eb3(0x34c,0x232)+_0x11b7ab(-0x25e,-0x8e),SERVICE_DIR=_0x12493c(_0xdfb285(),_0x6eb3(0x3eb,0x284)),LOG_DIR=_0x12493c(SERVICE_DIR,'logs'),SERVICE_STATE_PATH=_0x12493c(SERVICE_DIR,_0x11b7ab(0x3c9,0x2e8)+'ervice.j'+_0x11b7ab(0x14e,0x240)),SERVICE_LAUNCHER_PATH=_0x12493c(SERVICE_DIR,_0x6eb3(0x189,0x2a6)+_0x11b7ab(-0x56,0x110)+_0x11b7ab(-0x3e,0x71)+'sh'),SERVICE_LOG_PATH=_0x12493c(LOG_DIR,_0x11b7ab(0x56,0x203)+_0x6eb3(0x18b,0x27)),SERVICE_ERROR_LOG_PATH=_0x12493c(LOG_DIR,'bridge-c'+_0x6eb3(0xfb,0x1a9)+_0x11b7ab(0x161,0x307)),MACOS_PLIST_PATH=_0x12493c(_0xdfb285(),'Library',_0x11b7ab(0x1ef,0x45)+_0x6eb3(0x17c,0xb1),SERVICE_LABEL+_0x6eb3(0x255,0x7b)),LINUX_SERVICE_PATH=_0x12493c(_0xdfb285(),'.config',_0x11b7ab(-0x8b,-0x37),_0x6eb3(-0x1ad,-0xa7),SYSTEMD_UNIT_NAME);function getServiceProgramArgs(_0x3697f1={},_0xd6ad17=process[_0x11b7ab(-0x49,0x1b)]){const _0x16427c={_0x2ac6b3:0x293,_0x10c96f:0x337,_0xdefe8a:0x4a9,_0x14ffb0:0x171,_0x4180bb:0x54b,_0x102399:0x208,_0x5e7313:0x40f,_0x5ea959:0x332,_0x4b59c8:0x101,_0x5cc584:0x2b,_0x36156a:0x67,_0xce8e47:0x24d,_0x4d828f:0x2ed,_0x6e026:0x15e,_0x513793:0x277,_0x3a403c:0x61,_0x29eb3a:0x105,_0x4b2b05:0x4c0,_0x171f82:0x274,_0x35c105:0xc1},_0x2726bf={_0x4a972b:0x60};function _0x54d73d(_0x3777fa,_0x36fd67){return _0x11b7ab(_0x36fd67,_0x3777fa-0x2e9);}const _0x5d4592={};_0x5d4592[_0x62bc4e(_0x16427c._0x2ac6b3,_0x16427c._0x10c96f)]=function(_0x3bae44,_0x11aebb){return _0x3bae44!==_0x11aebb;};const _0x371fb7=_0x5d4592;function _0x62bc4e(_0x256950,_0xba85a){return _0x11b7ab(_0xba85a,_0x256950- -_0x2726bf._0x4a972b);}const _0x549683=_0x3697f1['nodePath']?.[_0x54d73d(0x3e8,_0x16427c._0xdefe8a)]()||process[_0x62bc4e(0x1f0,_0x16427c._0x14ffb0)],_0x464af2=resolveScriptPath(_0x3697f1[_0x54d73d(0x283,0x2cd)+'th']);if(!_0x464af2)throw new Error(_0x54d73d(_0x16427c._0x4180bb,0x637)+_0x54d73d(_0x16427c._0x102399,_0x16427c._0x5e7313)+_0x54d73d(_0x16427c._0x5ea959,0x481)+_0x62bc4e(-_0x16427c._0x4b59c8,-0x272)+_0x62bc4e(-_0x16427c._0x5cc584,-0x234)+_0x54d73d(0x553,0x712)+_0x62bc4e(_0x16427c._0x36156a,0x4e)+_0x54d73d(_0x16427c._0xce8e47,_0x16427c._0x4d828f));if(_0x371fb7[_0x62bc4e(0x293,0x329)](_0xd6ad17,_0x62bc4e(-_0x16427c._0x6e026,-0x11b))){const _0x58defd={};_0x58defd[_0x54d73d(0x276,_0x16427c._0x513793)]=_0x549683,_0x58defd[_0x62bc4e(-0xc6,_0x16427c._0x3a403c)+'th']=_0x464af2,_0x58defd[_0x62bc4e(-_0x16427c._0x29eb3a,-0x285)]=process.env.PATH??'';const _0x36a428=writeServiceLauncher(_0x58defd);return ensureLaunchScriptExecutable(_0x36a428,_0xd6ad17),[_0x36a428];}return[_0x549683,_0x464af2,_0x54d73d(_0x16427c._0x4b2b05,0x41d),_0x62bc4e(_0x16427c._0x171f82,_0x16427c._0x35c105)+'e'];}function getServiceStatus(){const _0x559ed2={_0x5d49b5:0x210,_0xa2a10:0x312,_0x25268b:0x1e4,_0x21dbd6:0x3dc,_0x1e29f2:0x4d5,_0x23030c:0x142,_0x43cdc7:0x22d,_0x4d0d91:0x2e,_0x291c0c:0x21d,_0x2340f3:0x14e,_0x2cf22e:0xf6,_0x23723f:0x6,_0xdd1482:0x33b,_0x86519f:0x3b9,_0x48b9b3:0x40f,_0x36e264:0x104,_0x1745e0:0x202,_0x7ed3f:0x101,_0x1404ae:0x36,_0x2bda4a:0x222,_0x5aa632:0x140,_0x39eb9b:0x1fe,_0x1777bd:0x313,_0x423857:0x2d1,_0x20c8d7:0xdb,_0x6df5f9:0xa8,_0x25d1d7:0x10a,_0x39755a:0x1b6},_0x308149={'xgdZr':function(_0x123f35,_0x1ae82d){return _0x123f35(_0x1ae82d);},'eGXTo':function(_0x27a15b){return _0x27a15b();},'ehtEg':function(_0x29e87a,_0x14527b){return _0x29e87a!=_0x14527b;},'dSzGd':function(_0x2993a0,_0x179b48){return _0x2993a0(_0x179b48);},'nWXQG':_0x14e906(_0x559ed2._0x5d49b5,_0x559ed2._0xa2a10)+_0xaefb8f(_0x559ed2._0x25268b,0x197),'bheji':_0xaefb8f(_0x559ed2._0x21dbd6,_0x559ed2._0x1e29f2)+'l'};ensureServiceDirs();const _0x27d5cc=readServiceState()?.[_0xaefb8f(_0x559ed2._0x23030c,_0x559ed2._0x43cdc7)]??null;function _0xaefb8f(_0x52389a,_0x399bb){return _0x11b7ab(_0x399bb,_0x52389a-0x249);}const _0x543f95={'installed':![],'running':_0x27d5cc!=null&&_0x308149[_0xaefb8f(0x4e1,0x464)](isPidRunning,_0x27d5cc),'method':_0x308149['eGXTo'](detectServiceMethod),'servicePath':getServicePath(),'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'pid':_0x27d5cc};_0x308149[_0x14e906(0x212,_0x559ed2._0x4d0d91)](_0x543f95[_0x14e906(-_0x559ed2._0x291c0c,-0xf6)],null)&&!_0x543f95[_0x14e906(0x51,0x36)]&&(clearServiceState(_0x543f95[_0xaefb8f(0x142,_0x559ed2._0x2340f3)]),_0x543f95[_0x14e906(0xe8,-_0x559ed2._0x2cf22e)]=null);function _0x14e906(_0x52fbb1,_0x5b36f3){return _0x11b7ab(_0x52fbb1,_0x5b36f3-0x11);}switch(_0x543f95[_0x14e906(0x1f8,-_0x559ed2._0x23723f)]){case _0xaefb8f(0x4ca,_0x559ed2._0xdd1482)+_0xaefb8f(_0x559ed2._0x86519f,0x540):_0x543f95[_0xaefb8f(0x45a,_0x559ed2._0x48b9b3)+'d']=_0x308149[_0x14e906(_0x559ed2._0x36e264,_0x559ed2._0x1745e0)](_0x44150d,MACOS_PLIST_PATH);_0x543f95['installe'+'d']&&(_0x543f95[_0xaefb8f(0x26e,_0x559ed2._0x7ed3f)]=commandSucceeds('launchct'+'l',[_0xaefb8f(0x236,0x31c),SERVICE_LABEL])||_0x543f95[_0x14e906(-_0x559ed2._0x7ed3f,_0x559ed2._0x1404ae)]);return _0x543f95;case _0x308149[_0xaefb8f(0x1c7,0x25a)]:_0x543f95['installe'+'d']=_0x44150d(LINUX_SERVICE_PATH);_0x543f95[_0x14e906(0x115,_0x559ed2._0x2bda4a)+'d']&&(_0x543f95[_0x14e906(_0x559ed2._0x5aa632,0x36)]=commandSucceeds(_0x308149[_0x14e906(_0x559ed2._0x39eb9b,0x2e7)],[_0x14e906(_0x559ed2._0x1777bd,_0x559ed2._0x423857),'is-activ'+'e','--quiet',SYSTEMD_UNIT_NAME])||_0x543f95['running']);return _0x543f95;case _0x14e906(-_0x559ed2._0x20c8d7,_0x559ed2._0x6df5f9)+_0x14e906(_0x559ed2._0x25d1d7,-0xd9)+'stry':_0x543f95[_0x14e906(0x22b,0x222)+'d']=commandSucceeds(_0xaefb8f(0x48a,0x3f4),[_0xaefb8f(0x373,_0x559ed2._0x39755a),'HKCU\x5cSof'+_0xaefb8f(0x2c7,0x3b4)+_0x14e906(-0x13e,-0x67)+_0xaefb8f(0x1ab,0x366)+_0xaefb8f(0x15c,0x2d5)+_0xaefb8f(0x49a,0x4f7)+'un','/v',WINDOWS_RUN_KEY]);return _0x543f95;default:return _0x543f95;}}function installService(_0x158a50={}){const _0x491fa9={_0x422861:0x53f,_0x146851:0x1bd,_0x3d0327:0x733,_0x3ef3df:0xdc,_0x5e821b:0x559,_0x942b69:0x7b,_0x30c8fe:0xf1,_0x78fe26:0x5c,_0x5d85ca:0x2d,_0x6ebb74:0x17,_0x27b320:0x162,_0x5e453c:0x321,_0x1e998d:0x72,_0x28724e:0x15c,_0x4ce0f5:0xca,_0x7f8cb5:0x44e,_0x3ac672:0x40f,_0x3471d8:0x13d,_0x2cc9f0:0x199,_0x58b8ba:0x481,_0x10abe9:0x464,_0x86c4c1:0x3e1,_0x450b12:0x148,_0x5c3345:0x57b,_0x52d598:0x46,_0x7b1803:0x9c,_0x38c845:0x3c,_0x3b4b18:0x36c,_0x6bd72b:0x52a,_0x588591:0x367,_0x3ccd3a:0x1e1,_0x26099a:0x101,_0x48df19:0x2d6},_0xa55585={_0x491ff0:0x2bb},_0x4faab7={_0x5a7b7a:0x127};function _0x46e58f(_0x3646a4,_0x14db78){return _0x11b7ab(_0x3646a4,_0x14db78- -_0x4faab7._0x5a7b7a);}const _0x1a575f={'gKYqn':'darwin','MVTKa':function(_0x3c646f,_0x5454d9,_0x481e27,_0x26a7a6){return _0x3c646f(_0x5454d9,_0x481e27,_0x26a7a6);},'zVfnq':_0xc3fb1(_0x491fa9._0x422861,0x3d3),'mcQyy':_0xc3fb1(0x24d,_0x491fa9._0x146851),'KQTcV':_0xc3fb1(_0x491fa9._0x3d0327,0x59b),'flMCf':_0xc3fb1(_0x491fa9._0x3ef3df,0x241)+_0xc3fb1(0x304,0x339)+_0xc3fb1(0xde,0x243)+_0x46e58f(-0x2d4,-0x1c5)+_0x46e58f(-0x351,-0x214)+_0xc3fb1(_0x491fa9._0x5e821b,0x50c)+'un','btFcV':_0x46e58f(_0x491fa9._0x942b69,-_0x491fa9._0x30c8fe)};function _0xc3fb1(_0x2ba0c7,_0x4e93f8){return _0x11b7ab(_0x2ba0c7,_0x4e93f8-_0xa55585._0x491ff0);}ensureServiceDirs();const _0x54291c=getServiceProgramArgs(_0x158a50);switch(process[_0xc3fb1(0x412,0x2d6)]){case _0x1a575f['gKYqn']:_0x1a575f[_0x46e58f(0x1b8,0x1e1)](_0x301ed4,MACOS_PLIST_PATH,buildMacosPlist(_0x54291c,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x1a575f[_0x46e58f(-0x255,-_0x491fa9._0x78fe26)]),execIgnoreFailure(_0x46e58f(-0x1e6,-0x162)+'l',[_0x46e58f(-0xa3,-0xcc),'-w',MACOS_PLIST_PATH]);const _0x6b87ea={};_0x6b87ea[_0xc3fb1(0x239,0x346)]=_0x46e58f(0xcf,_0x491fa9._0x5d85ca),_0x1a575f[_0x46e58f(-_0x491fa9._0x6ebb74,0x1e1)](execFileSync,_0x46e58f(-0x29f,-_0x491fa9._0x27b320)+'l',[_0xc3fb1(0x502,0x33b),'-w',MACOS_PLIST_PATH],_0x6b87ea);break;case _0xc3fb1(0x128,_0x491fa9._0x5e453c):const _0x2c7b51={};_0x2c7b51[_0x46e58f(-_0x491fa9._0x1e998d,-_0x491fa9._0x28724e)+'e']=!![],_0x40ab56(dirname(LINUX_SERVICE_PATH),_0x2c7b51),_0x301ed4(LINUX_SERVICE_PATH,buildLinuxSystemdUnit(_0x54291c,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x1a575f[_0x46e58f(-_0x491fa9._0x4ce0f5,-0x5c)]);const _0x5d79c2={};_0x5d79c2['stdio']=_0xc3fb1(_0x491fa9._0x7f8cb5,_0x491fa9._0x3ac672),execFileSync('systemct'+'l',[_0x46e58f(_0x491fa9._0x3471d8,_0x491fa9._0x2cc9f0),_0xc3fb1(0x337,_0x491fa9._0x58b8ba)+_0xc3fb1(_0x491fa9._0x10abe9,0x535)],_0x5d79c2);const _0x4360bf={};_0x4360bf[_0xc3fb1(_0x491fa9._0x86c4c1,0x346)]=_0xc3fb1(0x58a,_0x491fa9._0x3ac672),_0x1a575f[_0x46e58f(_0x491fa9._0x450b12,0x1e1)](execFileSync,'systemct'+'l',[_0xc3fb1(0x5b8,_0x491fa9._0x5c3345),_0xc3fb1(0x593,0x5b7),'--now',SYSTEMD_UNIT_NAME],_0x4360bf);break;case _0x1a575f[_0x46e58f(-0x253,-0x181)]:stopRunningProcess();const _0x59d72c={};_0x59d72c[_0x46e58f(_0x491fa9._0x52d598,-_0x491fa9._0x7b1803)]=_0xc3fb1(0x4de,0x40f),execFileSync('reg',[_0x1a575f[_0x46e58f(-0x2dd,-0x1d8)],_0x1a575f['flMCf'],'/v',WINDOWS_RUN_KEY,'/t',_0x1a575f['btFcV'],'/d',buildWindowsRunCommand(_0x54291c),'/f'],_0x59d72c),startDetachedWindowsService(_0x54291c);break;default:throw new Error('Unsuppor'+_0x46e58f(-0x2d8,-0x213)+_0x46e58f(-0x19b,-_0x491fa9._0x38c845)+_0xc3fb1(_0x491fa9._0x3b4b18,_0x491fa9._0x6bd72b)+_0x46e58f(_0x491fa9._0x38c845,0xd2)+_0xc3fb1(0x4b5,_0x491fa9._0x588591)+_0x46e58f(_0x491fa9._0x3ccd3a,_0x491fa9._0x26099a)+process[_0xc3fb1(0x11e,_0x491fa9._0x48df19)]);}return getServiceStatus();}function restartService(_0x4172ce={}){const _0x56faff={_0x43ace1:0x783,_0x19edce:0x696,_0x418bdf:0x1ed,_0x5c8a1d:0x53e,_0x3be77a:0x143,_0x2c7b33:0x2f6,_0x3d1efe:0x1dd,_0x4a7672:0x31,_0x31fa6d:0x7f,_0xa2b25c:0x1a4,_0x2882d9:0x4ee,_0x1e20a7:0x500,_0x397f2c:0x682,_0x512b91:0x806,_0xaa9515:0x77,_0x106efe:0x17b,_0x183f00:0x643,_0x4e95a2:0x37e,_0x15582d:0x457,_0x4e83b9:0xce,_0x5b460e:0xfb,_0x3dd1ba:0x1f,_0x36f851:0xbd,_0x117122:0x103,_0x3e4962:0x4ba,_0x8241e:0x80a,_0x1ff637:0x14,_0x341701:0x4c0,_0x5297ca:0x68f,_0xf663d6:0x100,_0x37a7fe:0x7fb,_0x285b96:0x7a,_0x37215e:0x5c6,_0x76951d:0x559,_0x36be23:0x257,_0x58026f:0x14f,_0x216e00:0x64,_0x27812f:0x5b9,_0x746350:0x3bc,_0x3eaefa:0x2dd,_0x32cf25:0x78c,_0x5de237:0x755,_0x1379ad:0x571,_0x55b9ae:0x53e,_0xc1c79e:0x44f,_0x3cb72b:0x2fb,_0x4c3774:0x101,_0x15ce2c:0x667,_0x39c0d6:0x6bf,_0x4f9052:0x5cf,_0x5a0e79:0x807},_0x2e10f1={_0x3a5b1f:0x16},_0x52a895={_0x337162:0x53b},_0x39f56a={'gndYX':function(_0x27ee65){return _0x27ee65();},'LDayH':_0x146fc4(_0x56faff._0x43ace1,_0x56faff._0x19edce),'NIBoU':function(_0x108554,_0x5a75b2,_0x4deb03,_0x597fe3){return _0x108554(_0x5a75b2,_0x4deb03,_0x597fe3);},'kgrtp':_0x203347(_0x56faff._0x418bdf,0x71),'hGkSq':function(_0xbb8a86,_0x5b8866,_0x2cee19,_0x5d522f){return _0xbb8a86(_0x5b8866,_0x2cee19,_0x5d522f);},'TuRGc':'launchct'+'l','AAMhW':'linux','phhhb':function(_0x503a88,_0x16b68b){return _0x503a88(_0x16b68b);},'ASqrG':function(_0x5d7d6c,_0x19e7cd){return _0x5d7d6c(_0x19e7cd);},'ZLwpX':function(_0x14262b,_0x52ab60,_0x211656){return _0x14262b(_0x52ab60,_0x211656);},'aNClu':function(_0x124c6e,_0x21bfcc){return _0x124c6e(_0x21bfcc);},'AXAIA':_0x146fc4(0x62f,0x653),'jPaLu':_0x146fc4(_0x56faff._0x5c8a1d,0x68f),'yrsxo':_0x146fc4(0x4f5,0x6ce)+'l','QcQmS':_0x203347(_0x56faff._0x3be77a,_0x56faff._0x2c7b33)};_0x39f56a[_0x203347(0x299,_0x56faff._0x3d1efe)](ensureServiceDirs);const _0x4a6c25=getServiceProgramArgs(_0x4172ce);switch(process[_0x203347(-0x77,_0x56faff._0x4a7672)]){case _0x39f56a[_0x146fc4(0x647,0x740)]:if(!_0x44150d(MACOS_PLIST_PATH))return installService(_0x4172ce);_0x39f56a['NIBoU'](_0x301ed4,MACOS_PLIST_PATH,_0x39f56a[_0x203347(_0x56faff._0x31fa6d,_0x56faff._0xa2b25c)](buildMacosPlist,_0x4a6c25,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),'utf8'),execIgnoreFailure(_0x146fc4(_0x56faff._0x2882d9,_0x56faff._0x1e20a7)+'l',[_0x39f56a[_0x146fc4(0x542,_0x56faff._0x397f2c)],'-w',MACOS_PLIST_PATH]);const _0x2c31bc={};_0x2c31bc['stdio']=_0x146fc4(_0x56faff._0x512b91,0x68f),_0x39f56a[_0x203347(_0x56faff._0xaa9515,_0x56faff._0x106efe)](execFileSync,_0x39f56a['TuRGc'],[_0x146fc4(_0x56faff._0x183f00,0x5bb),'-w',MACOS_PLIST_PATH],_0x2c31bc);break;case _0x39f56a[_0x146fc4(_0x56faff._0x4e95a2,_0x56faff._0x15582d)]:if(!_0x39f56a['phhhb'](_0x44150d,LINUX_SERVICE_PATH))return _0x39f56a[_0x203347(_0x56faff._0x4e83b9,0x15)](installService,_0x4172ce);const _0x475403={};_0x475403[_0x203347(-_0x56faff._0x5b460e,-_0x56faff._0x3dd1ba)+'e']=!![],_0x39f56a[_0x203347(-0x41,-_0x56faff._0x36f851)](_0x40ab56,_0x39f56a[_0x203347(-0xf4,-0x92)](dirname,LINUX_SERVICE_PATH),_0x475403),_0x301ed4(LINUX_SERVICE_PATH,_0x39f56a[_0x203347(0x1a2,0x1a4)](buildLinuxSystemdUnit,_0x4a6c25,SERVICE_LOG_PATH,SERVICE_ERROR_LOG_PATH),_0x39f56a[_0x203347(_0x56faff._0x117122,0x6f)]);const _0x4ab2a0={};_0x4ab2a0['stdio']=_0x39f56a[_0x146fc4(0x4ca,_0x56faff._0x3e4962)],execFileSync(_0x146fc4(_0x56faff._0x8241e,0x6ce)+'l',['--user','daemon-r'+_0x146fc4(0x61a,0x7b5)],_0x4ab2a0);const _0x553f3f={};_0x553f3f[_0x203347(-_0x56faff._0x1ff637,0xa1)]=_0x146fc4(_0x56faff._0x341701,_0x56faff._0x5297ca),execFileSync(_0x39f56a[_0x203347(_0x56faff._0xf663d6,-0xd2)],[_0x146fc4(0x7c1,_0x56faff._0x37a7fe),'restart',SYSTEMD_UNIT_NAME],_0x553f3f);break;case _0x203347(-_0x56faff._0x285b96,-0xe8):stopRunningProcess();const _0x2080c3={};_0x2080c3[_0x146fc4(0x402,_0x56faff._0x37215e)]=_0x146fc4(_0x56faff._0x76951d,0x68f),execFileSync(_0x203347(0x457,_0x56faff._0x36be23),[_0x39f56a[_0x203347(0x17a,_0x56faff._0x58026f)],_0x203347(-0x1d7,-_0x56faff._0x216e00)+_0x146fc4(0x4dd,_0x56faff._0x27812f)+_0x146fc4(_0x56faff._0x746350,0x4c3)+_0x146fc4(_0x56faff._0x3eaefa,0x49d)+_0x203347(-0x250,-0xd7)+_0x146fc4(0x82b,_0x56faff._0x32cf25)+'un','/v',WINDOWS_RUN_KEY,'/t',_0x146fc4(_0x56faff._0x5de237,_0x56faff._0x1379ad),'/d',buildWindowsRunCommand(_0x4a6c25),'/f'],_0x2080c3),startDetachedWindowsService(_0x4a6c25);break;default:throw new Error('Unsuppor'+_0x146fc4(_0x56faff._0x55b9ae,_0x56faff._0xc1c79e)+_0x203347(_0x56faff._0x3cb72b,_0x56faff._0x4c3774)+_0x146fc4(_0x56faff._0x15ce2c,0x7aa)+_0x146fc4(_0x56faff._0x39c0d6,_0x56faff._0x4f9052)+_0x146fc4(0x68f,_0x56faff._0x5a0e79)+process['platform']);}function _0x146fc4(_0x12d13f,_0xd5d86a){return _0x11b7ab(_0x12d13f,_0xd5d86a-_0x52a895._0x337162);}function _0x203347(_0x437dc6,_0x44c00f){return _0x11b7ab(_0x437dc6,_0x44c00f-_0x2e10f1._0x3a5b1f);}return getServiceStatus();}function uninstallService(){const _0x1a3044={_0x311d8e:0xc7,_0x24871d:0x1f7,_0x2f6782:0x2a5,_0x3323c1:0xd5,_0x26220e:0x9e,_0x453578:0x32a,_0x4a83c5:0x40,_0x1a5954:0x188,_0xf62762:0x4c,_0x1f08aa:0x108,_0x171573:0x230,_0x2edbb0:0x1bb,_0x467dae:0x1fe},_0x3311dd={_0x107eaa:0x186};function _0x4252e0(_0x2bc5e7,_0x150b21){return _0x11b7ab(_0x2bc5e7,_0x150b21-0x14a);}function _0x65acfa(_0x81e8ea,_0x5b17c6){return _0x11b7ab(_0x81e8ea,_0x5b17c6- -_0x3311dd._0x107eaa);}const _0x4e3fd9={};_0x4e3fd9[_0x4252e0(0x1ce,0xd5)]=_0x65acfa(-_0x1a3044._0x311d8e,0x13a),_0x4e3fd9['rVjra']=_0x4252e0(0x4d,0x1cb);const _0x41e8a7=_0x4e3fd9;stopRunningProcess();switch(process[_0x4252e0(_0x1a3044._0x24871d,0x165)]){case _0x4252e0(0x3c0,_0x1a3044._0x2f6782):execIgnoreFailure('launchct'+'l',[_0x65acfa(-0x215,-0x12b),'-w',MACOS_PLIST_PATH]),rmIfExists(MACOS_PLIST_PATH);break;case'linux':_0x44150d(LINUX_SERVICE_PATH)&&(execIgnoreFailure(_0x4252e0(0x4cc,0x2dd)+'l',[_0x41e8a7[_0x4252e0(-0xb9,_0x1a3044._0x3323c1)],_0x41e8a7[_0x65acfa(-_0x1a3044._0x26220e,-0x1e8)],_0x4252e0(_0x1a3044._0x453578,0x1d0),SYSTEMD_UNIT_NAME]),rmIfExists(LINUX_SERVICE_PATH),execIgnoreFailure('systemct'+'l',[_0x41e8a7['GDqmi'],_0x65acfa(0x243,_0x1a3044._0x4a83c5)+'eload']));break;case _0x4252e0(-_0x1a3044._0x1a5954,_0x1a3044._0xf62762):execIgnoreFailure(_0x65acfa(_0x1a3044._0x1f08aa,0xbb),[_0x65acfa(-0x272,-0x14b),_0x65acfa(-_0x1a3044._0x171573,-0x200)+_0x4252e0(_0x1a3044._0x2edbb0,0x1c8)+_0x65acfa(-0x31a,-_0x1a3044._0x467dae)+_0x65acfa(-0x76,-0x224)+_0x4252e0(-0x64,0x5d)+'ersion\x5cR'+'un','/v',WINDOWS_RUN_KEY,'/f']);break;default:break;}return clearServiceState(),getServiceStatus();}function stopService(){const _0x58f257={_0x29f7c6:0x27e,_0x474b90:0x3f6,_0x2f61aa:0x21b,_0x111e7b:0x3e0,_0x317a66:0xfc,_0x292407:0x19a,_0x39e729:0x2bf,_0x3a7b7e:0xd,_0x3532cd:0x50f,_0x22d7a7:0x504,_0x2caf3f:0x1ff,_0x39cf46:0xad,_0x397133:0x9d,_0x3c5b5d:0x38},_0xb71397={_0x4342fc:0x3be},_0x42869a={'nesoa':function(_0x98e840){return _0x98e840();},'NxDfj':function(_0x3f873a,_0x5e7abd){return _0x3f873a(_0x5e7abd);},'iMOsL':_0x202e19(0x3d7,0x4f9),'NRbek':function(_0xca6bac,_0x28e1d4,_0x471567){return _0xca6bac(_0x28e1d4,_0x471567);},'iUAzF':_0x202e19(_0x58f257._0x29f7c6,0x417)};_0x42869a[_0x202e19(_0x58f257._0x474b90,0x32c)](stopRunningProcess);function _0x202e19(_0x25a7ce,_0x95c4c3){return _0x6eb3(_0x95c4c3,_0x25a7ce-_0xb71397._0x4342fc);}switch(process[_0x17f897(-_0x58f257._0x2f61aa,-0xa6)]){case'darwin':_0x42869a[_0x202e19(0x3e0,_0x58f257._0x111e7b)](_0x44150d,MACOS_PLIST_PATH)&&execIgnoreFailure(_0x17f897(-0x24,-_0x58f257._0x317a66)+'l',[_0x42869a[_0x17f897(_0x58f257._0x292407,0x186)],MACOS_PLIST_PATH]);break;case _0x202e19(0x3e2,_0x58f257._0x39e729):_0x44150d(LINUX_SERVICE_PATH)&&_0x42869a[_0x17f897(_0x58f257._0x3a7b7e,-0x197)](execIgnoreFailure,_0x202e19(_0x58f257._0x3532cd,_0x58f257._0x22d7a7)+'l',[_0x17f897(0x3ea,_0x58f257._0x2caf3f),_0x17f897(-_0x58f257._0x39cf46,_0x58f257._0x397133),SYSTEMD_UNIT_NAME]);break;case _0x42869a[_0x17f897(-0x16d,-_0x58f257._0x3c5b5d)]:break;default:break;}function _0x17f897(_0x23280b,_0x183a69){return _0x6eb3(_0x23280b,_0x183a69- -0x7f);}return clearServiceState(),getServiceStatus();}function writeServiceState(_0x126bca=process[_0x6eb3(-0x1f9,-0x149)]){const _0x19acc1={_0x254e4f:0x622,_0x3c874a:0x5fa,_0x298691:0x44,_0x4b6472:0x5d8},_0x83c948={_0x2afec9:0x502};ensureServiceDirs();const _0x30d7f9={'pid':_0x126bca,'startedAt':new Date()[_0x4e30c9(_0x19acc1._0x254e4f,_0x19acc1._0x3c874a)+_0x20d4cd(_0x19acc1._0x298691,0x61)]()};function _0x4e30c9(_0x4ae1dd,_0x5bf7f4){return _0x6eb3(_0x5bf7f4,_0x4ae1dd-_0x83c948._0x2afec9);}function _0x20d4cd(_0x379a89,_0xd4b102){return _0x6eb3(_0xd4b102,_0x379a89-0xd8);}_0x301ed4(SERVICE_STATE_PATH,JSON['stringif'+'y'](_0x30d7f9,null,0x2)+'\x0a',_0x4e30c9(_0x19acc1._0x4b6472,0x7e0));}function clearServiceState(_0x4a631f){const _0xa24f60={_0x5c3603:0x62,_0x3790c1:0x1d8},_0x3db6e6={_0x14248d:0x2a5},_0x46243f={};_0x46243f[_0x24b299(-0x1e8,-_0xa24f60._0x5c3603)]=function(_0x21b9e9,_0x3e9663){return _0x21b9e9!=_0x3e9663;};const _0x25d61c=_0x46243f;function _0x1a49f0(_0x41a071,_0xc7ba83){return _0x6eb3(_0xc7ba83,_0x41a071-_0x3db6e6._0x14248d);}if(!_0x44150d(SERVICE_STATE_PATH))return;function _0x24b299(_0x5f4d9f,_0x2117b0){return _0x6eb3(_0x2117b0,_0x5f4d9f- -0xcb);}if(_0x25d61c[_0x1a49f0(0x188,0x226)](_0x4a631f,null)){const _0x505380=readServiceState();if(_0x505380&&_0x505380[_0x24b299(-0x214,-_0xa24f60._0x3790c1)]!==_0x4a631f)return;}rmIfExists(SERVICE_STATE_PATH);}function getServicePaths(){const _0x53e154={_0x3ef178:0x400},_0x4d76c5={'cbGxV':function(_0x126481){return _0x126481();}};function _0x2fc3af(_0xeb6410,_0xbee75b){return _0x6eb3(_0xbee75b,_0xeb6410-0x33e);}return{'logPath':SERVICE_LOG_PATH,'errorLogPath':SERVICE_ERROR_LOG_PATH,'servicePath':_0x4d76c5[_0x2fc3af(_0x53e154._0x3ef178,0x53d)](getServicePath)};}function buildMacosPlist(_0xee6705,_0x7eda19,_0x5cf101){const _0x736083={_0x4b3604:0x4a0,_0x5d6e47:0x23a,_0x161dda:0x202,_0x57c2ef:0x337,_0x3a61a9:0x3e4,_0x4a686f:0x5a3,_0x5520d3:0x573,_0x4328e5:0x286,_0x116f08:0x3b3,_0x2b46da:0x4f4,_0x2fa9bb:0x201,_0x4f695e:0x2b2,_0x1cb0b3:0x48e,_0x10b04e:0x66d,_0x512822:0x461,_0x343e0f:0x5ff,_0x5ace77:0x540,_0x5e8f74:0x5e6,_0x595e7c:0x4dd,_0xae81eb:0x1c5,_0x409755:0x2cd,_0x3c4141:0x2c0,_0x23de87:0x34c,_0x151b6a:0x230,_0x2d3230:0x2d3,_0x50a320:0x268,_0xcce416:0x279,_0x465fc3:0x5c2,_0x3e66f3:0x192,_0x2f5eea:0x2bb,_0x57c0bb:0x43e,_0x592c16:0x546,_0x1a1f3e:0x3a7,_0x24f04f:0x181,_0x255661:0x60d,_0x4b3235:0x477,_0x5aa6c4:0x409,_0x1d2aaf:0x44f,_0x5791ca:0x41a};function _0x5662ad(_0x22797b,_0x4bb199){return _0x6eb3(_0x4bb199,_0x22797b-0x300);}const _0x384427={'EBMMr':function(_0x2dc825,_0x2b53c7){return _0x2dc825(_0x2b53c7);}},_0x54e92e=_0xee6705[_0x5662ad(_0x736083._0x4b3604,0x446)](_0xab1b0d=>_0x39a968(0x4cb,0x444)+'ing>'+escapeXml(_0xab1b0d)+(_0x5662ad(0x4b8,0x417)+'>'))[_0x39a968(_0x736083._0x5d6e47,_0x736083._0x161dda)]('\x0a');function _0x39a968(_0x53c645,_0x1767bd){return _0x6eb3(_0x1767bd,_0x53c645-0x29a);}return _0x39a968(_0x736083._0x57c2ef,_0x736083._0x3a61a9)+'rsion=\x221'+'.0\x22\x20enco'+'ding=\x22UT'+_0x5662ad(0x27c,0x1fa)+_0x5662ad(_0x736083._0x4a686f,_0x736083._0x5520d3)+'\x20plist\x20P'+_0x39a968(_0x736083._0x4328e5,_0x736083._0x116f08)+_0x39a968(0x321,_0x736083._0x2b46da)+_0x39a968(0x51f,0x34b)+'ST\x201.0//'+'EN\x22\x20\x22htt'+'p://www.'+_0x5662ad(_0x736083._0x2fa9bb,_0x736083._0x4f695e)+'m/DTDs/P'+_0x39a968(0x1f9,0x39e)+_0x5662ad(0x4a2,0x614)+_0x5662ad(_0x736083._0x1cb0b3,_0x736083._0x10b04e)+_0x39a968(0x3f9,0x529)+_0x39a968(_0x736083._0x512822,0x642)+_0x5662ad(0x44e,0x3b9)+_0x5662ad(0x5b3,_0x736083._0x343e0f)+_0x5662ad(_0x736083._0x5ace77,0x479)+'/key>\x0a\x20\x20'+'<string>'+SERVICE_LABEL+(_0x5662ad(0x4b8,_0x736083._0x5e8f74)+_0x5662ad(_0x736083._0x595e7c,0x6ab)+_0x39a968(_0x736083._0xae81eb,0xb4)+_0x5662ad(_0x736083._0x409755,0x188)+_0x5662ad(0x396,_0x736083._0x3c4141)+'\x20\x20<array'+'>\x0a')+_0x54e92e+(_0x5662ad(_0x736083._0x23de87,_0x736083._0x151b6a)+_0x39a968(_0x736083._0x2d3230,_0x736083._0x50a320)+_0x39a968(_0x736083._0xcce416,0x2ea)+_0x5662ad(_0x736083._0x465fc3,0x56c)+_0x39a968(_0x736083._0x3e66f3,0x323)+_0x39a968(0x1e9,0x3ef)+_0x5662ad(0x310,0x297)+_0x39a968(_0x736083._0x2f5eea,_0x736083._0x3a61a9)+'ey>\x0a\x20\x20<t'+'rue/>\x0a\x20\x20'+_0x39a968(_0x736083._0x57c0bb,0x2dd)+'ndardOut'+'Path</ke'+_0x5662ad(_0x736083._0x592c16,0x734)+_0x5662ad(0x36e,_0x736083._0x1a1f3e))+_0x384427[_0x39a968(_0x736083._0x24f04f,-0x47)](escapeXml,_0x7eda19)+(_0x5662ad(0x4b8,_0x736083._0x255661)+_0x39a968(_0x736083._0x4b3235,0x41f)+_0x5662ad(_0x736083._0x5aa6c4,0x22e)+_0x39a968(_0x736083._0x1d2aaf,0x310)+_0x5662ad(_0x736083._0x5791ca,0x604)+'\x0a\x20\x20<stri'+_0x5662ad(0x514,0x43d))+escapeXml(_0x5cf101)+('</string'+'>\x0a</dict'+'>\x0a</plis'+_0x5662ad(0x548,0x536));}function _0x2e58(_0x17e9c1,_0x4850cb){_0x17e9c1=_0x17e9c1-0x9c;const _0x164967=_0x39fb();let _0x5b6c10=_0x164967[_0x17e9c1];if(_0x2e58['iFHFNB']===undefined){var _0x2f63a8=function(_0x579bd){const _0xcca1de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30e3f1='',_0xab6a8e='',_0x3444d9=_0x30e3f1+_0x2f63a8;for(let _0x256910=0x0,_0x405f69,_0x5f0498,_0x25dff1=0x0;_0x5f0498=_0x579bd['charAt'](_0x25dff1++);~_0x5f0498&&(_0x405f69=_0x256910%0x4?_0x405f69*0x40+_0x5f0498:_0x5f0498,_0x256910++%0x4)?_0x30e3f1+=_0x3444d9['charCodeAt'](_0x25dff1+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x405f69>>(-0x2*_0x256910&0x6)):_0x256910:0x0){_0x5f0498=_0xcca1de['indexOf'](_0x5f0498);}for(let _0x42f194=0x0,_0x5cbdcf=_0x30e3f1['length'];_0x42f194<_0x5cbdcf;_0x42f194++){_0xab6a8e+='%'+('00'+_0x30e3f1['charCodeAt'](_0x42f194)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xab6a8e);};_0x2e58['DtgYMl']=_0x2f63a8,_0x2e58['iLoHoW']={},_0x2e58['iFHFNB']=!![];}const _0x39fb8a=_0x164967[0x0],_0x2e58e1=_0x17e9c1+_0x39fb8a,_0x66a424=_0x2e58['iLoHoW'][_0x2e58e1];if(!_0x66a424){const _0x3b7e7d=function(_0x77fdae){this['qkFRGi']=_0x77fdae,this['fNEnHV']=[0x1,0x0,0x0],this['cCryDv']=function(){return'newState';},this['PMtqvh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KUeXxY']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3b7e7d['prototype']['auYvHY']=function(){const _0x3019f9=new RegExp(this['PMtqvh']+this['KUeXxY']),_0x23fbf0=_0x3019f9['test'](this['cCryDv']['toString']())?--this['fNEnHV'][0x1]:--this['fNEnHV'][0x0];return this['BYrilr'](_0x23fbf0);},_0x3b7e7d['prototype']['BYrilr']=function(_0x5e3a68){if(!Boolean(~_0x5e3a68))return _0x5e3a68;return this['RnSxYw'](this['qkFRGi']);},_0x3b7e7d['prototype']['RnSxYw']=function(_0x2522e9){for(let _0x26c70d=0x0,_0x2a8847=this['fNEnHV']['length'];_0x26c70d<_0x2a8847;_0x26c70d++){this['fNEnHV']['push'](Math['round'](Math['random']())),_0x2a8847=this['fNEnHV']['length'];}return _0x2522e9(this['fNEnHV'][0x0]);},new _0x3b7e7d(_0x2e58)['auYvHY'](),_0x5b6c10=_0x2e58['DtgYMl'](_0x5b6c10),_0x2e58['iLoHoW'][_0x2e58e1]=_0x5b6c10;}else _0x5b6c10=_0x66a424;return _0x5b6c10;}function buildLinuxSystemdUnit(_0x2f6ce8,_0x2e65a5,_0x50a29f){const _0x4ccda1={_0x3f57c1:0x46b,_0x39a0a1:0x4f2,_0x462cf2:0x55,_0x17dfb4:0x3b3,_0x2fb016:0x2d1,_0x4b01ac:0x253,_0x23bb1e:0x8e,_0x53d281:0x3,_0x1573e6:0x17e,_0x346398:0x24b,_0xd1ed0d:0x408,_0x4a5eec:0x3d5,_0x4af744:0x2bd,_0x224051:0x2ee,_0x3339c7:0x580,_0xa97b65:0x4c4,_0x509ce1:0x19,_0x1b2fa6:0x1d2,_0x162853:0x158,_0x18ecbf:0x3df,_0xce6f34:0x39e,_0x38ade5:0x2d3,_0x2de5da:0x35a,_0x2777db:0x3c8,_0x341cba:0x25b,_0x2b5539:0x1ad,_0x1c8110:0x293,_0x3032a1:0x113,_0x104030:0x235,_0x3b9417:0x90},_0x47c04a={_0x2634b0:0x289},_0x12209a={_0x50bcb1:0x73},_0x2a9241={'Dulrd':function(_0x2c3374,_0x5ece9d){return _0x2c3374(_0x5ece9d);}};function _0x365b2e(_0x3a3cc6,_0x217512){return _0x11b7ab(_0x3a3cc6,_0x217512-_0x12209a._0x50bcb1);}function _0x5dd657(_0x584554,_0x4eb6e5){return _0x11b7ab(_0x4eb6e5,_0x584554-_0x47c04a._0x2634b0);}const _0x4fa764=_0x2f6ce8[_0x5dd657(_0x4ccda1._0x3f57c1,_0x4ccda1._0x39a0a1)](escapeSystemdArg)[_0x365b2e(0x239,_0x4ccda1._0x462cf2)]('\x20');return'[Unit]\x0aD'+'escripti'+'on=Clawk'+'et\x20Bridg'+'e\x20CLI\x0aAf'+_0x365b2e(_0x4ccda1._0x17dfb4,_0x4ccda1._0x2fb016)+_0x5dd657(_0x4ccda1._0x4b01ac,0x28c)+_0x365b2e(-_0x4ccda1._0x23bb1e,0x158)+_0x365b2e(-_0x4ccda1._0x53d281,_0x4ccda1._0x1573e6)+_0x5dd657(_0x4ccda1._0x346398,0x362)+_0x365b2e(_0x4ccda1._0xd1ed0d,0x318)+_0x365b2e(0xf9,0x2fc)+_0x365b2e(_0x4ccda1._0x4a5eec,_0x4ccda1._0x4af744)+_0x5dd657(_0x4ccda1._0x224051,0x175)+_0x5dd657(_0x4ccda1._0x3339c7,0x50b)+_0x5dd657(0x515,_0x4ccda1._0xa97b65)+_0x4fa764+(_0x365b2e(_0x4ccda1._0x509ce1,_0x4ccda1._0x1b2fa6)+'=always\x0a'+_0x5dd657(0x21f,_0x4ccda1._0x162853)+_0x5dd657(0x31b,0x4d9)+_0x365b2e(_0x4ccda1._0x18ecbf,0x322)+'ctory=')+_0x2a9241[_0x365b2e(_0x4ccda1._0xce6f34,_0x4ccda1._0x38ade5)](escapeSystemdArg,SERVICE_DIR)+('\x0aStandar'+'dOutput='+_0x365b2e(0x319,0x196))+_0x2e65a5+(_0x5dd657(_0x4ccda1._0x2de5da,_0x4ccda1._0x2777db)+_0x365b2e(0x34a,0x233)+_0x5dd657(_0x4ccda1._0x341cba,_0x4ccda1._0x2b5539))+_0x50a29f+(_0x365b2e(_0x4ccda1._0x1c8110,_0x4ccda1._0x3032a1)+_0x5dd657(0x486,0x611)+_0x365b2e(-_0x4ccda1._0x104030,-_0x4ccda1._0x3b9417)+'ault.tar'+'get\x0a');}function getServicePath(){const _0x5eedb3={_0x3aa8da:0x536,_0x2641ea:0x28,_0x543a05:0xf6,_0x3d6559:0xb8,_0x442e4a:0xb9,_0x4b9956:0x33d,_0x402e0b:0x2ee,_0x1b43f6:0x62c,_0x5e1f44:0x5da},_0x3eb702={_0x5ca329:0x3e};function _0x3c9ff4(_0x3a4de1,_0x4b76be){return _0x11b7ab(_0x4b76be,_0x3a4de1-0x3db);}function _0x2f6780(_0x8ec2c8,_0x22774e){return _0x11b7ab(_0x22774e,_0x8ec2c8- -_0x3eb702._0x5ca329);}switch(process[_0x2f6780(-0x23,-0xe3)]){case _0x3c9ff4(_0x5eedb3._0x3aa8da,0x710):return MACOS_PLIST_PATH;case _0x2f6780(_0x5eedb3._0x2641ea,_0x5eedb3._0x543a05):return LINUX_SERVICE_PATH;case _0x3c9ff4(0x2dd,0x4b6):return _0x2f6780(-_0x5eedb3._0x3d6559,_0x5eedb3._0x442e4a)+_0x2f6780(0x40,0x97)+'crosoft\x5c'+_0x3c9ff4(_0x5eedb3._0x4b9956,0x1b6)+_0x3c9ff4(_0x5eedb3._0x402e0b,0x1c8)+_0x3c9ff4(_0x5eedb3._0x1b43f6,0x781)+'un\x5cClawk'+_0x3c9ff4(0x3ed,_0x5eedb3._0x5e1f44)+'Cli';default:return'';}}function detectServiceMethod(){const _0xe4b1fd={_0x1c69c3:0x61,_0xeb8056:0x634,_0x66f27b:0x65,_0x863ef2:0x210,_0xffbf0a:0x1ae,_0x42211e:0x459,_0x21e4b3:0xd7,_0x5bc917:0x597,_0xef481b:0x744,_0x5e2425:0x2cf,_0x17dde4:0x3e3},_0x401b12={_0x36fe80:0x43e},_0x462e80={_0x53cdf4:0x1d1};function _0xc69389(_0x146299,_0x47a038){return _0x11b7ab(_0x47a038,_0x146299- -_0x462e80._0x53cdf4);}function _0x4c8f88(_0x46827e,_0x5e24ec){return _0x11b7ab(_0x46827e,_0x5e24ec-_0x401b12._0x36fe80);}const _0x2f4d68={};_0x2f4d68['DEdeo']='darwin',_0x2f4d68['kqEMl']='launchag'+_0xc69389(-_0xe4b1fd._0x1c69c3,-0x16c),_0x2f4d68['GPVMi']=_0x4c8f88(_0xe4b1fd._0xeb8056,0x4a4),_0x2f4d68[_0xc69389(_0xe4b1fd._0x66f27b,_0xe4b1fd._0x863ef2)]=_0xc69389(0x130,_0xe4b1fd._0xffbf0a)+'user';const _0xae0151=_0x2f4d68;switch(process[_0x4c8f88(0x346,_0xe4b1fd._0x42211e)]){case _0xae0151[_0xc69389(-0x94,-0x26f)]:return _0xae0151[_0xc69389(-0xc5,-_0xe4b1fd._0x21e4b3)];case _0xae0151[_0x4c8f88(_0xe4b1fd._0x5bc917,_0xe4b1fd._0xef481b)]:return _0xae0151[_0x4c8f88(0x48d,0x674)];case _0xc69389(-_0xe4b1fd._0x5e2425,-0x242):return _0x4c8f88(0x3d6,0x4d5)+'run-regi'+'stry';default:return _0x4c8f88(_0xe4b1fd._0x17dde4,0x574)+_0x4c8f88(0x477,0x631);}}function readServiceState(){const _0x4891af={_0x248e33:0xd7,_0x498a43:0x80,_0x15792d:0x1b1,_0x10b62c:0x18b,_0x3016e6:0x7c,_0x999941:0x1d3,_0x2773a9:0x48,_0x1aed35:0x21d,_0x125113:0xdd,_0x484a98:0x2b1},_0x473735={_0x4df946:0x14f};function _0x3bfa8f(_0x3ff822,_0x169bb5){return _0x11b7ab(_0x3ff822,_0x169bb5- -0x198);}const _0x10ab97={};function _0x1be75a(_0x21837b,_0x33da2a){return _0x11b7ab(_0x21837b,_0x33da2a-_0x473735._0x4df946);}_0x10ab97[_0x3bfa8f(_0x4891af._0x248e33,-0x7c)]=_0x3bfa8f(-0x75,-_0x4891af._0x498a43);const _0x5aafb2=_0x10ab97;if(!_0x44150d(SERVICE_STATE_PATH))return null;try{const _0x4475c1=JSON[_0x1be75a(0x25a,_0x4891af._0x15792d)](_0x34a7a2(SERVICE_STATE_PATH,_0x5aafb2[_0x3bfa8f(_0x4891af._0x10b62c,-_0x4891af._0x3016e6)]));if(!_0x4475c1[_0x1be75a(-0x11a,0x48)]||typeof _0x4475c1['pid']!==_0x3bfa8f(_0x4891af._0x999941,0x43))return null;return{'pid':_0x4475c1[_0x1be75a(0x5a,_0x4891af._0x2773a9)],'startedAt':_0x4475c1[_0x1be75a(0x1f7,_0x4891af._0x1aed35)+'t']??new Date(0x0)[_0x1be75a(_0x4891af._0x125113,_0x4891af._0x484a98)+'ing']()};}catch{return null;}}function stopRunningProcess(){const _0x5a8846={_0x30d6be:0x30e,_0x363350:0x19f,_0x4874de:0x337,_0x240927:0x43f,_0x1e3e24:0x50d,_0x191678:0x719,_0x5e4de1:0x5b5,_0x241a09:0x1d2,_0x18ef03:0x253},_0x56a399={_0x2e8939:0x44e};function _0x55dac1(_0x22c2ca,_0x28c9db){return _0x6eb3(_0x22c2ca,_0x28c9db-_0x56a399._0x2e8939);}const _0x68c5e3={'bUVpb':function(_0x355434,_0x5adaf0,_0x1fb388){return _0x355434(_0x5adaf0,_0x1fb388);},'IaAsW':'taskkill','nxMJf':_0x55dac1(0x2e0,0x30e)},_0x3d66a5=readServiceState();if(!_0x3d66a5)return;function _0x6eafbf(_0x171e53,_0x4f59de){return _0x6eb3(_0x171e53,_0x4f59de-0x39c);}_0x68c5e3[_0x55dac1(0x535,0x3a4)](execIgnoreFailure,process['platform']===_0x55dac1(0x2b8,_0x5a8846._0x30d6be)?_0x68c5e3[_0x6eafbf(_0x5a8846._0x363350,_0x5a8846._0x4874de)]:'kill',process['platform']===_0x68c5e3[_0x6eafbf(_0x5a8846._0x240927,_0x5a8846._0x1e3e24)]?[_0x55dac1(_0x5a8846._0x191678,_0x5a8846._0x5e4de1),String(_0x3d66a5[_0x6eafbf(_0x5a8846._0x241a09,_0x5a8846._0x18ef03)]),'/T','/F']:[_0x6eafbf(0x365,0x372),String(_0x3d66a5['pid'])]),clearServiceState(_0x3d66a5['pid']);}function isPidRunning(_0xd78c9d){const _0xf3c5df={_0x5f5020:0x549},_0x246e2d={_0x5c3163:0x2d1};function _0x5aa656(_0x26300b,_0x5be34d){return _0x11b7ab(_0x5be34d,_0x26300b-_0x246e2d._0x5c3163);}try{return process[_0x5aa656(_0xf3c5df._0x5f5020,0x6bf)](_0xd78c9d,0x0),!![];}catch{return![];}}function startDetachedWindowsService(_0x43ff83){const _0x1ecf78={_0x13b323:0x1d1,_0x4f5180:0x6de,_0x234ca4:0x2c1,_0xb1ba06:0x3f6,_0x324bf5:0x414,_0x2de1f8:0x2cf},_0x48ca23={_0xe3b870:0x3fa};function _0x272d77(_0x1a2767,_0x6e6c39){return _0x11b7ab(_0x1a2767,_0x6e6c39-0x25f);}const _0x509afb={'rgTEY':function(_0x13f297,_0x3e4901,_0x25baf1){return _0x13f297(_0x3e4901,_0x25baf1);}};function _0x3d1ef0(_0x18eb3e,_0x5f5dab){return _0x11b7ab(_0x18eb3e,_0x5f5dab-_0x48ca23._0xe3b870);}const _0x5b9edf=_0x509afb[_0x272d77(_0x1ecf78._0x13b323,0x1f2)](openSync,SERVICE_LOG_PATH,'a'),_0x2a86ea=openSync(SERVICE_ERROR_LOG_PATH,'a');try{const [_0x34ea40,..._0x2e71d0]=_0x43ff83,_0x5930c4={};_0x5930c4[_0x3d1ef0(_0x1ecf78._0x4f5180,0x6db)]=!![],_0x5930c4[_0x3d1ef0(_0x1ecf78._0x234ca4,0x485)]=['ignore',_0x5b9edf,_0x2a86ea],_0x5930c4[_0x272d77(_0x1ecf78._0xb1ba06,0x3fc)+_0x3d1ef0(_0x1ecf78._0x324bf5,0x4ec)]=!![];const _0x496bf4=spawn(_0x34ea40,_0x2e71d0,_0x5930c4);_0x496bf4[_0x272d77(0x1ca,_0x1ecf78._0x2de1f8)]();}finally{closeSync(_0x5b9edf),closeSync(_0x2a86ea);}}function resolveScriptPath(_0x38b82c){const _0x3f2601={_0x19c8cd:0x430,_0x300e45:0x2b3,_0x45e9b4:0x2c4,_0x3ea227:0x2b4,_0x412728:0xcd,_0x469262:0x2b3},_0x4e168a={_0x39275e:0x1b4},_0x24c8e5={'TbioE':function(_0xaf0f14,_0x5b25a2){return _0xaf0f14(_0x5b25a2);}},_0x287860=_0x38b82c?.[_0x429eab(_0x3f2601._0x19c8cd,_0x3f2601._0x300e45)]()||process[_0x9ede16(_0x3f2601._0x45e9b4,_0x3f2601._0x3ea227)][0x1]?.[_0x429eab(_0x3f2601._0x412728,_0x3f2601._0x469262)]()||'';function _0x9ede16(_0x115476,_0x29f3a7){return _0x11b7ab(_0x29f3a7,_0x115476-0x292);}if(!_0x287860)return'';function _0x429eab(_0x5189ca,_0x402c0c){return _0x11b7ab(_0x5189ca,_0x402c0c-_0x4e168a._0x39275e);}try{return _0x24c8e5[_0x429eab(0x297,0xd5)](realpathSync,_0x287860);}catch{return _0x287860;}}function ensureLaunchScriptExecutable(_0x3158bf,_0x5d8da2){const _0x139568={_0x4e3de9:0x37b};if(_0x5d8da2===_0x4cd786(_0x139568._0x4e3de9,0x2f8)||!_0x44150d(_0x3158bf))return;function _0x4cd786(_0x452620,_0x5d5f83){return _0x11b7ab(_0x452620,_0x5d5f83-0x3f6);}try{chmodSync(_0x3158bf,0x1ed);}catch{}}function writeServiceLauncher(_0x104059){const _0xedb5fc={_0x515e39:0x11a,_0x52893f:0x1b0,_0x585d2d:0x67,_0x7aa85c:0xb0,_0x4397c2:0x255,_0x1b2e34:0x92,_0xd21cc5:0x2e3,_0x27401c:0x303,_0x20ef16:0x10d,_0x437c1b:0x268,_0x313ced:0x1e5,_0x3c7f70:0x10f,_0x539b7d:0x31d,_0x101827:0x21f,_0x9491ab:0x33b,_0x3512e1:0x2f5,_0x5e1021:0xad,_0x229586:0x160,_0x22e5cc:0x209,_0x34281c:0x2f6,_0x270ffd:0x138,_0x4864d2:0xc7,_0x3bdfed:0x2eb,_0x15a050:0x22c,_0x223c52:0xf9,_0x327860:0x183,_0x31be9a:0x13e,_0x19c743:0x32a,_0x5942cb:0x2ec},_0x1ba7fa={_0x2480a6:0x17f},_0x3bb588={'SOwnB':function(_0x5a4f1e,_0x5756bf){return _0x5a4f1e(_0x5756bf);},'uzVcP':'\x20\x20exec\x20\x22'+_0x13f8c5(-_0xedb5fc._0x515e39,-_0xedb5fc._0x52893f)+'TH\x22\x20\x22$SC'+'RIPT_PAT'+_0x13f8c5(-0x6f,0x117)+'-service','CQqfI':function(_0x2d1dcc,_0x4e11fb,_0x3b2f20,_0x420671){return _0x2d1dcc(_0x4e11fb,_0x3b2f20,_0x420671);},'hWSQn':_0x13f8c5(0x133,-_0xedb5fc._0x585d2d)};ensureServiceDirs();function _0x32b1f5(_0x532a51,_0x905781){return _0x11b7ab(_0x532a51,_0x905781-0x4e);}const _0x4a34cc=[_0x13f8c5(0x1ea,0x168)+'h',_0x13f8c5(-0x10d,-_0xedb5fc._0x7aa85c)+_0x32b1f5(0x243,_0xedb5fc._0x4397c2)+escapeShellDoubleQuoted(_0x104059[_0x13f8c5(-_0xedb5fc._0x1b2e34,-0x224)])+'\x22',_0x13f8c5(-0x3a,-0x181)+'H=\x22'+escapeShellDoubleQuoted(_0x104059[_0x13f8c5(-_0xedb5fc._0xd21cc5,-0x1f2)])+'\x22',_0x32b1f5(0x1af,0x19f)+_0x13f8c5(0x28,0x88)+_0x3bb588[_0x13f8c5(-_0xedb5fc._0x27401c,-_0xedb5fc._0x20ef16)](escapeShellDoubleQuoted,_0x104059[_0x13f8c5(-_0xedb5fc._0x437c1b,-_0xedb5fc._0x313ced)+'th'])+'\x22',_0x13f8c5(0x4d,_0xedb5fc._0x3c7f70)+_0x32b1f5(0x3aa,_0xedb5fc._0x539b7d)+_0x32b1f5(_0xedb5fc._0x101827,0x2d3)+_0x32b1f5(0x151,_0xedb5fc._0x9491ab),_0x3bb588[_0x32b1f5(-0x151,-0xd)],'fi',_0x32b1f5(0x3ad,_0xedb5fc._0x3512e1)+_0x13f8c5(0xba,_0xedb5fc._0x5e1021)+_0x32b1f5(_0xedb5fc._0x229586,_0xedb5fc._0x22e5cc)+_0x13f8c5(0x100,-0x89)+_0x32b1f5(_0xedb5fc._0x34281c,0x328),_0x32b1f5(0x433,0x26f)+_0x13f8c5(-_0xedb5fc._0x270ffd,-0x2d)+'RIPT_PAT'+_0x32b1f5(0x377,0x2e4)+_0x32b1f5(0x134,0x222),'fi',_0x13f8c5(0xfb,-0x47)+_0x32b1f5(-0xe4,_0xedb5fc._0x4864d2)+_0x32b1f5(_0xedb5fc._0x3bdfed,0x24e)+'ound\x20for'+_0x13f8c5(0x1ce,0x26)+_0x13f8c5(-0x3c5,-_0xedb5fc._0x15a050)+'service\x22'+_0x13f8c5(-_0xedb5fc._0x223c52,-0x1b7),_0x13f8c5(-0x254,-_0xedb5fc._0x327860),''];_0x3bb588[_0x32b1f5(-_0xedb5fc._0x31be9a,0x7f)](_0x301ed4,SERVICE_LAUNCHER_PATH,_0x4a34cc[_0x13f8c5(-0x16f,-0x19d)]('\x0a'),_0x3bb588[_0x32b1f5(_0xedb5fc._0x19c743,_0xedb5fc._0x5942cb)]);function _0x13f8c5(_0x5b50ce,_0x471c69){return _0x11b7ab(_0x5b50ce,_0x471c69- -_0x1ba7fa._0x2480a6);}return SERVICE_LAUNCHER_PATH;}function escapeShellDoubleQuoted(_0x41c622){const _0x3974c8={_0x422f9d:0x84a,_0x426ef5:0x95d,_0xe3c771:0x302,_0x32dda2:0x3a5};function _0x4556fc(_0x4c8200,_0x1f8501){return _0x6eb3(_0x1f8501,_0x4c8200-0x5be);}function _0x35ce91(_0x2a0257,_0x385e86){return _0x6eb3(_0x2a0257,_0x385e86-0x119);}return _0x41c622[_0x4556fc(_0x3974c8._0x422f9d,_0x3974c8._0x426ef5)+'ll']('\x5c','\x5c\x5c')['replaceA'+'ll']('\x22','\x5c\x22')['replaceA'+'ll']('$','\x5c$')[_0x35ce91(_0x3974c8._0xe3c771,_0x3974c8._0x32dda2)+'ll']('`','\x5c`');}function buildWindowsRunCommand(_0x496f20){const _0x42fe31={_0x1a0167:0x29e},_0xdc4bf3={_0x33ebbc:0x1da};function _0x5006fb(_0x5aa5ae,_0x4b6b81){return _0x6eb3(_0x4b6b81,_0x5aa5ae-0xff);}function _0x4aa1ff(_0x5bcb7b,_0x2e32e3){return _0x6eb3(_0x2e32e3,_0x5bcb7b- -_0xdc4bf3._0x33ebbc);}return _0x496f20[_0x4aa1ff(-0x3a,0x1cd)](escapeWindowsArg)[_0x4aa1ff(-0x23a,-_0x42fe31._0x1a0167)]('\x20');}function ensureServiceDirs(){const _0x1765bb={_0x1c1d67:0xc,_0x2cb74a:0x181},_0x10be29={_0x45fa8f:0x191};function _0x3dd277(_0x64bc6c,_0x2417db){return _0x11b7ab(_0x2417db,_0x64bc6c-0x38d);}function _0x48c8af(_0x4ea94f,_0x4a83c2){return _0x11b7ab(_0x4a83c2,_0x4ea94f-_0x10be29._0x45fa8f);}const _0x4ec890={'nOGby':function(_0x522b1d,_0x272538,_0x7aefa1){return _0x522b1d(_0x272538,_0x7aefa1);},'Nzvte':function(_0x2c2bbc,_0x24298c,_0x4b45ba){return _0x2c2bbc(_0x24298c,_0x4b45ba);}},_0x2d2a5d={};_0x2d2a5d[_0x48c8af(0x15c,_0x1765bb._0x1c1d67)+'e']=!![],_0x4ec890['nOGby'](_0x40ab56,SERVICE_DIR,_0x2d2a5d);const _0x41cb42={};_0x41cb42[_0x3dd277(0x358,_0x1765bb._0x2cb74a)+'e']=!![],_0x4ec890['Nzvte'](_0x40ab56,LOG_DIR,_0x41cb42);}function escapeXml(_0x54b889){const _0x1f2a7e={_0x5905d7:0x719,_0x5ed50c:0x5b1,_0x1bf4a6:0x648,_0x4c1cc0:0x4d3,_0x4c7273:0x485,_0x3e2b17:0x2ac,_0x2d1a9e:0x719,_0x307d72:0x5a1,_0x22da4b:0x4be,_0x443fc8:0x4d7},_0x41b34c={_0x23aa47:0x48d},_0x4de88c={_0x2e33a9:0x330};function _0x42ef87(_0x5c02a8,_0x14e7cd){return _0x6eb3(_0x5c02a8,_0x14e7cd-_0x4de88c._0x2e33a9);}function _0x3f7b05(_0xfe6614,_0x4e5bbe){return _0x6eb3(_0x4e5bbe,_0xfe6614-_0x41b34c._0x23aa47);}return _0x54b889[_0x3f7b05(_0x1f2a7e._0x5905d7,0x666)+'ll']('&',_0x3f7b05(0x705,_0x1f2a7e._0x5ed50c))[_0x3f7b05(_0x1f2a7e._0x5905d7,_0x1f2a7e._0x1bf4a6)+'ll']('<',_0x42ef87(0x6cd,_0x1f2a7e._0x4c1cc0))[_0x3f7b05(0x719,0x81e)+'ll']('>',_0x3f7b05(_0x1f2a7e._0x4c7273,_0x1f2a7e._0x3e2b17))[_0x3f7b05(_0x1f2a7e._0x2d1a9e,_0x1f2a7e._0x307d72)+'ll']('\x22',_0x42ef87(_0x1f2a7e._0x22da4b,_0x1f2a7e._0x443fc8))['replaceA'+'ll']('\x27',''');}function escapeSystemdArg(_0x4cc364){const _0x1635f1={_0x4ddaa4:0x437},_0x31e6ea={_0x22928f:0x169},_0x2615c5={_0x5d882b:0x160};function _0x2d4221(_0xe7cb49,_0x5a07ce){return _0x11b7ab(_0xe7cb49,_0x5a07ce-_0x2615c5._0x5d882b);}function _0x27bce8(_0x80d077,_0xaf36d3){return _0x11b7ab(_0x80d077,_0xaf36d3-_0x31e6ea._0x22928f);}return'\x22'+_0x4cc364[_0x27bce8(0x5fb,_0x1635f1._0x4ddaa4)+'ll']('\x5c','\x5c\x5c')[_0x27bce8(0x4c1,0x437)+'ll']('\x22','\x5c\x22')+'\x22';}function escapeWindowsArg(_0x3b87ed){const _0xf52b72={_0x2e3b75:0x677,_0x23d17b:0x5f8};function _0x24c4d0(_0x48b07f,_0x27c87c){return _0x6eb3(_0x27c87c,_0x48b07f-0x3eb);}return'\x22'+_0x3b87ed[_0x24c4d0(_0xf52b72._0x2e3b75,_0xf52b72._0x23d17b)+'ll']('\x22','\x5c\x22')+'\x22';}function commandSucceeds(_0x2d4699,_0x384b93){const _0x25983b={_0x578f05:0x5a0,_0xc1ace3:0x93},_0x2f4915={_0x4e556c:0x7f};function _0x2d2aef(_0x5e1396,_0x22bb81){return _0x6eb3(_0x5e1396,_0x22bb81- -_0x2f4915._0x4e556c);}function _0x452fb8(_0x3d2643,_0x2154b2){return _0x6eb3(_0x2154b2,_0x3d2643-0x557);}try{const _0x593dd4={};return _0x593dd4[_0x452fb8(_0x25983b._0x578f05,0x776)]=_0x2d2aef(-0x2f,_0x25983b._0xc1ace3),execFileSync(_0x2d4699,_0x384b93,_0x593dd4),!![];}catch{return![];}}function execIgnoreFailure(_0xf84df6,_0x431cb7){const _0x3854e9={_0x1fa451:0x42d,_0x1138ab:0x312,_0x52522f:0x68b,_0x7390d3:0x5ce,_0x7b3768:0x3a3},_0x49b802={_0x355d6a:0x47a},_0x29ca07={_0x4b3df6:0x287},_0x2f9092={'TwwhH':function(_0xc6b39e,_0x230b24,_0xc5d667,_0x28f71e){return _0xc6b39e(_0x230b24,_0xc5d667,_0x28f71e);}};function _0x2406aa(_0x1afb8c,_0x4d40fa){return _0x11b7ab(_0x1afb8c,_0x4d40fa-_0x29ca07._0x4b3df6);}function _0x1def73(_0x413cbc,_0x1d09d2){return _0x11b7ab(_0x413cbc,_0x1d09d2-_0x49b802._0x355d6a);}try{const _0x4f069e={};_0x4f069e[_0x2406aa(_0x3854e9._0x1fa451,_0x3854e9._0x1138ab)]=_0x1def73(_0x3854e9._0x52522f,_0x3854e9._0x7390d3),_0x2f9092[_0x1def73(_0x3854e9._0x7b3768,0x40c)](execFileSync,_0xf84df6,_0x431cb7,_0x4f069e);}catch{}}function rmIfExists(_0x217272){const _0x124c67={_0x3fd7e8:0x3ff},_0x40e1d6={_0x4dff81:0x1ad},_0x414be0={_0x291af3:0x296},_0x39371f={'TtsVL':function(_0x728899,_0x5ed134){return _0x728899(_0x5ed134);}};if(!_0x39371f[_0x1d2636(0x28b,0x1b3)](_0x44150d,_0x217272))return;const _0x465d61={};_0x465d61[_0x7783d3(0x461,_0x124c67._0x3fd7e8)]=!![];function _0x7783d3(_0x590644,_0x722185){return _0x6eb3(_0x722185,_0x590644-_0x414be0._0x291af3);}function _0x1d2636(_0x5bfc6a,_0x28d3f2){return _0x6eb3(_0x5bfc6a,_0x28d3f2-_0x40e1d6._0x4dff81);}_0x40020e(_0x217272,_0x465d61);}import{existsSync as _0x4f9909,readFileSync as _0x5a0f2d}from'fs';import{homedir as _0x3e0b2d}from'os';function _0x6eb3(_0x3c2196,_0x3c5623){return _0x2e58(_0x3c5623- -0x1e8,_0x3c2196);}import{join as _0x44be4d}from'path';var DEFAULT_GATEWAY_URL='ws://127'+_0x6eb3(0xb0,0x1f9)+_0x11b7ab(-0x6e,0x43),OPENCLAW_DIR=_0x44be4d(_0x3e0b2d(),_0x6eb3(0x1f6,0x271)+'w'),OPENCLAW_CONFIG_PATH2=_0x44be4d(OPENCLAW_DIR,_0x6eb3(-0x3e,0x13b)+'.json'),OPENCLAW_MEDIA_DIR=_0x44be4d(OPENCLAW_DIR,_0x11b7ab(-0x17a,-0x97));function resolveGatewayUrl(_0x4a9124){const _0xd2e49c={_0x257918:0x659,_0xca1953:0x61b,_0x4cc334:0x494,_0x1b584c:0x152,_0x593a59:0x72,_0xb4eb64:0x6aa,_0x4419aa:0x5da,_0x41b825:0x547,_0x4a48bf:0x5bd},_0x342f91={_0x490d4d:0x1b1},_0x18614d={_0x327579:0x55e},_0x43417f={'dwxKJ':function(_0x3f4fcb){return _0x3f4fcb();},'YSqQz':_0x36179e(0x723,0x6f7)},_0x88f982=_0x4a9124?.[_0x36179e(_0xd2e49c._0x257918,_0xd2e49c._0xca1953)]();function _0x36179e(_0x40836b,_0x3553a1){return _0x6eb3(_0x40836b,_0x3553a1-_0x18614d._0x327579);}function _0x24672a(_0x280b5c,_0x9ebb68){return _0x6eb3(_0x9ebb68,_0x280b5c- -_0x342f91._0x490d4d);}if(_0x88f982)return _0x88f982;const _0x42bd48=_0x43417f[_0x36179e(0x6a5,0x4d4)](readOpenClawInfo);if(typeof _0x42bd48[_0x36179e(0x338,_0xd2e49c._0x4cc334)+_0x24672a(-_0xd2e49c._0x1b584c,_0xd2e49c._0x593a59)]===_0x43417f[_0x36179e(_0xd2e49c._0xb4eb64,_0xd2e49c._0x4419aa)])return'ws://127'+'.0.0.1:'+_0x42bd48[_0x36179e(_0xd2e49c._0x41b825,_0xd2e49c._0x4cc334)+_0x36179e(0x703,_0xd2e49c._0x4a48bf)];return DEFAULT_GATEWAY_URL;}function readOpenClawInfo(){const _0x1006b8={_0x54bb48:0x3da,_0xac916:0x384,_0x5b148b:0x3ee,_0x4bd59b:0x4a4,_0x1d7e40:0x3c8,_0x5ea99e:0x19f,_0x18d328:0x9e,_0x2da72f:0x7b,_0x4773a5:0x363,_0x3b9a7e:0x2aa,_0x560b0e:0x667,_0x1ccc5f:0x3ce,_0x19168c:0x310,_0x506e21:0x173,_0x172683:0x86,_0x3dc4f4:0x46e,_0x488045:0x63a,_0x392e07:0x2bb,_0x3607dc:0x288},_0x59d82a={_0x2fe104:0x3ce},_0x4b6059={_0x502111:0x173};function _0x26e84e(_0x1d094b,_0x48551e){return _0x6eb3(_0x1d094b,_0x48551e- -_0x4b6059._0x502111);}const _0x4a4fcf={'QNsod':function(_0x4fd5cf,_0x569f6e){return _0x4fd5cf(_0x569f6e);},'WaNNi':function(_0x1743f1){return _0x1743f1();},'ZjNLB':'number','TzvNw':function(_0x391561,_0x226c08){return _0x391561===_0x226c08;},'MmnEP':function(_0x3d3d41){return _0x3d3d41();}};function _0x139dff(_0x28cff4,_0x252fd8){return _0x6eb3(_0x252fd8,_0x28cff4-_0x59d82a._0x2fe104);}if(!_0x4a4fcf['QNsod'](_0x4f9909,OPENCLAW_CONFIG_PATH2))return{'configFound':![],'gatewayPort':null,'authMode':null,'token':_0x4a4fcf[_0x139dff(_0x1006b8._0x54bb48,_0x1006b8._0xac916)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};try{const _0x3e9a95=JSON[_0x139dff(_0x1006b8._0x5b148b,0x247)](_0x5a0f2d(OPENCLAW_CONFIG_PATH2,_0x139dff(_0x1006b8._0x4bd59b,_0x1006b8._0x1d7e40))),_0x5045f7=_0x3e9a95['gateway']?.[_0x139dff(0x4ed,0x40b)],_0x39f512=typeof _0x5045f7===_0x4a4fcf[_0x26e84e(-0x207,-_0x1006b8._0x5ea99e)]&&Number[_0x26e84e(_0x1006b8._0x18d328,-0x10d)+'r'](_0x5045f7)?_0x5045f7:null,_0x26eb63=_0x3e9a95[_0x26e84e(-0x94,-0x231)]?.['auth']?.['mode']==='token'||_0x4a4fcf[_0x26e84e(_0x1006b8._0x2da72f,0x61)](_0x3e9a95[_0x26e84e(-_0x1006b8._0x4773a5,-0x231)]?.[_0x26e84e(0x3,-0x1e)]?.[_0x26e84e(-0xf8,-_0x1006b8._0x3b9a7e)],'password')?_0x3e9a95['gateway'][_0x139dff(0x523,_0x1006b8._0x560b0e)][_0x26e84e(-_0x1006b8._0x1ccc5f,-_0x1006b8._0x3b9a7e)]:null,_0x7594f3=readConfiguredSecret(_0x3e9a95['gateway']?.['auth']?.['token'])??readGatewayTokenEnv(),_0x5c7667=_0x4a4fcf['QNsod'](readConfiguredSecret,_0x3e9a95[_0x139dff(_0x1006b8._0x19168c,0x114)]?.['auth']?.[_0x26e84e(-_0x1006b8._0x506e21,-_0x1006b8._0x172683)])??readGatewayPasswordEnv(),_0x5374f9={};return _0x5374f9[_0x26e84e(0x31,0x71)+_0x139dff(_0x1006b8._0x3dc4f4,0x48a)]=!![],_0x5374f9['gatewayP'+_0x139dff(0x42d,0x5a9)]=_0x39f512,_0x5374f9['authMode']=_0x26eb63,_0x5374f9['token']=_0x7594f3,_0x5374f9[_0x139dff(0x4bb,_0x1006b8._0x488045)]=_0x5c7667,_0x5374f9;}catch{return{'configFound':!![],'gatewayPort':null,'authMode':null,'token':_0x4a4fcf[_0x139dff(_0x1006b8._0x392e07,_0x1006b8._0x3607dc)](readGatewayTokenEnv),'password':readGatewayPasswordEnv()};}}function resolveGatewayAuth(){const _0x1de5a4={_0x228daa:0x4e1,_0x498823:0x2a4,_0x2dc343:0x303,_0x206564:0x4a2,_0x3f637e:0x2cd,_0x5e1395:0x32e,_0x50439e:0x13b,_0x1965ca:0x472,_0x4200c4:0x5f9,_0xd48794:0x364,_0xfca74e:0x289,_0x363591:0x46d,_0x5c2579:0x2fa,_0x5ec3dd:0x61d,_0x3879fd:0x637,_0x16ec5f:0x1d2,_0x3ce241:0x29d,_0x31d145:0x43a,_0x2b7cdc:0x34a,_0x29f5b4:0x710,_0x129fc7:0x2bf,_0x584bd8:0x20d,_0x426e0f:0x4de,_0xe0a907:0x5e3,_0x1fd01c:0x4af,_0x3e8e64:0x43a,_0x3001fd:0x354,_0xdb6f90:0x408,_0x4bf7f2:0x585,_0x2aa526:0x480,_0x4e9be6:0x488,_0x27b68d:0x2a3,_0x5a2600:0x15b,_0x750d0b:0x43a,_0x58fa6e:0x4bf,_0x3d935d:0x60b,_0x52bd0c:0x162},_0x4b3ec5={_0x1e3313:0x267},_0x268203={'VeocG':function(_0x5dd5e7){return _0x5dd5e7();},'yHFpC':function(_0x16d58e,_0x494b69){return _0x16d58e==_0x494b69;},'mPhZm':_0xcda8f7(_0x1de5a4._0x228daa,0x47f)+'\x20has\x20bot'+_0xcda8f7(_0x1de5a4._0x498823,0x317)+_0xcda8f7(_0x1de5a4._0x2dc343,_0x1de5a4._0x206564)+_0x39ac36(_0x1de5a4._0x3f637e,0x3a0)+_0xcda8f7(_0x1de5a4._0x5e1395,_0x1de5a4._0x50439e)+_0x39ac36(_0x1de5a4._0x1965ca,0x655)+_0x39ac36(_0x1de5a4._0x4200c4,0x58a)+_0xcda8f7(_0x1de5a4._0xd48794,0x274)+_0x39ac36(0x148,_0x1de5a4._0xfca74e)+'s\x20unset.'+_0x39ac36(0x453,0x467)+_0xcda8f7(_0x1de5a4._0x363591,_0x1de5a4._0x5c2579)+'\x20token\x20o'+_0x39ac36(_0x1de5a4._0x5ec3dd,_0x1de5a4._0x3879fd)+_0xcda8f7(_0x1de5a4._0x16ec5f,_0x1de5a4._0x3ce241)+_0x39ac36(0x4ca,0x5af)+'g.','MlcVz':_0x39ac36(0x358,0x4af),'pCufF':'token'};function _0x39ac36(_0x585b1d,_0x23a0f0){return _0x6eb3(_0x585b1d,_0x23a0f0-0x3c2);}const _0x1564f1=_0x268203[_0x39ac36(0x36f,0x39a)](readOpenClawInfo),_0x1fe13d=_0x1564f1[_0xcda8f7(_0x1de5a4._0x31d145,_0x1de5a4._0x2b7cdc)],_0x380e95=_0x1564f1[_0x39ac36(0x360,0x4af)];if(_0x1fe13d&&_0x380e95&&_0x268203['yHFpC'](_0x1564f1['authMode'],null)){const _0x562fd1={};return _0x562fd1[_0x39ac36(_0x1de5a4._0x29f5b4,0x595)]=_0x1fe13d,_0x562fd1[_0x39ac36(_0x1de5a4._0x129fc7,0x4af)]=_0x380e95,_0x562fd1[_0x39ac36(0x43f,0x3f7)]=_0xcda8f7(0x43a,0x394),_0x562fd1['error']=_0x268203[_0xcda8f7(_0x1de5a4._0x584bd8,0x3de)],_0x562fd1;}function _0xcda8f7(_0x57b3e8,_0x3f0d37){return _0x6eb3(_0x3f0d37,_0x57b3e8-_0x4b3ec5._0x1e3313);}if(_0x1564f1[_0x39ac36(_0x1de5a4._0x426e0f,_0x1de5a4._0xe0a907)]===_0x39ac36(0x4b4,_0x1de5a4._0x1fd01c)){const _0x36217e={};return _0x36217e[_0xcda8f7(_0x1de5a4._0x3e8e64,0x602)]=null,_0x36217e[_0xcda8f7(_0x1de5a4._0x3001fd,0x3b6)]=null,_0x36217e[_0x39ac36(_0x1de5a4._0xdb6f90,0x3f7)]=null,_0x380e95?{'token':null,'password':_0x380e95,'label':_0x268203[_0x39ac36(_0x1de5a4._0x4bf7f2,_0x1de5a4._0x2aa526)]}:_0x36217e;}if(_0x1564f1[_0xcda8f7(_0x1de5a4._0x4e9be6,_0x1de5a4._0x27b68d)]===_0x268203[_0xcda8f7(0x188,0x1da)]){const _0x227f05={};return _0x227f05['token']=null,_0x227f05['password']=null,_0x227f05['label']=null,_0x1fe13d?{'token':_0x1fe13d,'password':null,'label':_0x268203[_0xcda8f7(0x188,_0x1de5a4._0x5a2600)]}:_0x227f05;}if(_0x1fe13d){const _0x212e7a={};return _0x212e7a['token']=_0x1fe13d,_0x212e7a[_0x39ac36(0x391,0x4af)]=null,_0x212e7a['label']=_0xcda8f7(_0x1de5a4._0x750d0b,_0x1de5a4._0x58fa6e),_0x212e7a;}if(_0x380e95){const _0x2b7611={};return _0x2b7611[_0xcda8f7(0x43a,0x4fd)]=null,_0x2b7611['password']=_0x380e95,_0x2b7611[_0xcda8f7(0x29c,0x4a0)]='password',_0x2b7611;}const _0x1b6c7b={};return _0x1b6c7b[_0x39ac36(_0x1de5a4._0x3d935d,0x595)]=null,_0x1b6c7b['password']=null,_0x1b6c7b[_0xcda8f7(0x29c,_0x1de5a4._0x52bd0c)]=null,_0x1b6c7b;}function getOpenClawConfigDir(){return OPENCLAW_DIR;}function getOpenClawMediaDir(){return OPENCLAW_MEDIA_DIR;}function readConfiguredSecret(_0x144654){const _0x16ef44={_0x3e9c18:0xee,_0x4d959a:0x263,_0x38e030:0x268,_0x1b8e89:0x364},_0x17c500={_0x587ea5:0x169},_0x403421={_0x1bfb51:0x31c};function _0x30e150(_0x1ee8f7,_0x274848){return _0x11b7ab(_0x1ee8f7,_0x274848-_0x403421._0x1bfb51);}function _0x4276ff(_0x5d2149,_0x104fcc){return _0x11b7ab(_0x104fcc,_0x5d2149-_0x17c500._0x587ea5);}return typeof _0x144654===_0x4276ff(_0x16ef44._0x3e9c18,_0x16ef44._0x4d959a)&&_0x144654[_0x4276ff(0x268,0x365)]()?_0x144654[_0x4276ff(_0x16ef44._0x38e030,_0x16ef44._0x1b8e89)]():null;}function readGatewayTokenEnv(){const _0x4d9756={_0x2a9a5c:0x107,_0x5ae982:0x192,_0x19be22:0x222,_0x592ac1:0x407,_0x2d0c78:0xd7,_0x5334be:0x225,_0xc67503:0x317,_0x569c50:0x87,_0x45c105:0x3ca},_0x58ca39={_0x3b8a39:0xb0},_0xca8b7b={};function _0x17211f(_0x21d14f,_0x3e9166){return _0x11b7ab(_0x3e9166,_0x21d14f- -_0x58ca39._0x3b8a39);}_0xca8b7b[_0x219271(-_0x4d9756._0x2a9a5c,-_0x4d9756._0x5ae982)]=_0x17211f(_0x4d9756._0x19be22,_0x4d9756._0x592ac1)+_0x17211f(-_0x4d9756._0x2d0c78,-0x9)+_0x219271(-_0x4d9756._0x5334be,-0x97);function _0x219271(_0xa61d19,_0x4e2118){return _0x11b7ab(_0xa61d19,_0x4e2118- -0x217);}_0xca8b7b[_0x219271(-0x495,-_0x4d9756._0xc67503)]=_0x17211f(-_0x4d9756._0x569c50,-0x89)+'_GATEWAY'+_0x219271(0x15b,-0x97);const _0xba1b0b=_0xca8b7b;return readEnvValue(_0xba1b0b['qmDUX'],_0xba1b0b[_0x219271(-_0x4d9756._0x45c105,-_0x4d9756._0xc67503)]);}function readGatewayPasswordEnv(){const _0x21f321={_0x452b43:0x4f3,_0x333f3f:0x1fa,_0x768730:0x33e,_0x15459f:0x453,_0x44fad6:0x24a,_0x8169ab:0x1fe,_0x10fda8:0x3f9},_0x1e72c5={_0x531443:0x263};function _0x39ea61(_0x136be0,_0x259496){return _0x6eb3(_0x136be0,_0x259496-0x209);}function _0x3fb0f6(_0x59b3ba,_0x315411){return _0x6eb3(_0x315411,_0x59b3ba-_0x1e72c5._0x531443);}return readEnvValue(_0x3fb0f6(_0x21f321._0x452b43,0x5d6)+_0x3fb0f6(_0x21f321._0x333f3f,_0x21f321._0x768730)+_0x3fb0f6(_0x21f321._0x15459f,0x358)+'D',_0x3fb0f6(_0x21f321._0x44fad6,_0x21f321._0x8169ab)+'_GATEWAY'+_0x39ea61(0x5cc,_0x21f321._0x10fda8)+'D');}function readEnvValue(_0x5cbc58,_0x35a48a){const _0x1bfc62={_0x155eae:0x1ff,_0x19590e:0x1eb},_0xe1f4e9=process.env[_0x5cbc58]?.[_0x1aac37(0x14c,_0x1bfc62._0x155eae)]();if(_0xe1f4e9)return _0xe1f4e9;function _0x1aac37(_0x4655d5,_0x54e8c9){return _0x11b7ab(_0x4655d5,_0x54e8c9-0x100);}const _0xc50073=process.env[_0x35a48a]?.[_0x6579e1(_0x1bfc62._0x19590e,0x34a)]();function _0x6579e1(_0x246c22,_0x40da6c){return _0x11b7ab(_0x40da6c,_0x246c22-0xec);}return _0xc50073||null;}var CONTROL_PREFIX=_0x11b7ab(0x2ea,0xed)+'t_relay_'+_0x11b7ab(0x420,0x2c1)+'_:';function parseControl(_0x5dd1c5){const _0x2ea995={_0x39afba:0x5b2,_0xd29fc4:0x4de,_0x38a151:0x547,_0x275785:0x3e7,_0x9df3a5:0x44a,_0xd0398c:0x332,_0x26e2a8:0x68e,_0xd9de0:0x688,_0x798419:0x528,_0x2347fe:0x4a9},_0x20d42c={_0x3719bf:0x413},_0x39b60c={};_0x39b60c[_0x32fd37(_0x2ea995._0x39afba,0x6ec)]=function(_0x59e511,_0x19bc5d){return _0x59e511!==_0x19bc5d;},_0x39b60c[_0x4f0fd5(_0x2ea995._0xd29fc4,0x58e)]=function(_0x47d1de,_0x443604){return _0x47d1de===_0x443604;};function _0x32fd37(_0x52faa9,_0x26aecb){return _0x11b7ab(_0x26aecb,_0x52faa9-_0x20d42c._0x3719bf);}const _0xa59d31=_0x39b60c;if(!_0x5dd1c5[_0x32fd37(0x488,0x45c)+'th'](CONTROL_PREFIX))return null;function _0x4f0fd5(_0x1e2f98,_0x1862a5){return _0x11b7ab(_0x1e2f98,_0x1862a5-0x3ad);}try{const _0x157fbd=JSON[_0x4f0fd5(_0x2ea995._0x38a151,0x40f)](_0x5dd1c5['slice'](CONTROL_PREFIX[_0x4f0fd5(0x575,0x496)]));if(_0xa59d31[_0x32fd37(0x5b2,0x792)](typeof _0x157fbd[_0x32fd37(_0x2ea995._0x275785,0x3e7)],_0x4f0fd5(_0x2ea995._0x9df3a5,_0x2ea995._0xd0398c))||!_0x157fbd['event'][_0x4f0fd5(0x6a8,0x4ac)]())return null;return{'event':_0x157fbd['event'][_0x32fd37(0x512,0x6b7)](),'count':_0xa59d31['rsslV'](typeof _0x157fbd[_0x4f0fd5(0x536,0x4a9)],_0x32fd37(0x5ee,_0x2ea995._0x26e2a8))&&Number[_0x4f0fd5(_0x2ea995._0xd9de0,_0x2ea995._0x798419)](_0x157fbd[_0x4f0fd5(0x6ae,_0x2ea995._0x2347fe)])?_0x157fbd['count']:void 0x0};}catch{return null;}}function parseConnectStartIdentity(_0x236d83){const _0x48e952={_0x41b128:0x381,_0x13d37a:0x428,_0x1e537f:0x288,_0x5d553d:0x477,_0x4df9d3:0x90,_0x1a2881:0xb2,_0x5c5b2c:0x17c,_0x258ef3:0x140,_0x4aaa90:0xe6,_0x3691ab:0x3d,_0x5bd565:0x560,_0xe30f28:0x358,_0x3d88cf:0xb6,_0x361665:0x3ff,_0x511caf:0x381,_0x37d7d7:0x17b,_0x783486:0x483,_0x194027:0xf4,_0x40de53:0x60,_0x342cae:0x3f4,_0x2e1a73:0x3c7,_0x557a76:0x4c0,_0x4c24fa:0x42f,_0x3aadc3:0x434,_0x420e85:0x212,_0x52aa04:0x241},_0x4436bc={_0x3de8a4:0x9f};function _0x34803d(_0x23c6c2,_0x250141){return _0x11b7ab(_0x23c6c2,_0x250141- -_0x4436bc._0x3de8a4);}const _0x2c787c={};_0x2c787c[_0x34803d(0xa8,0x1fc)]=function(_0x382ed3,_0x565b3c){return _0x382ed3!==_0x565b3c;},_0x2c787c[_0x3a9a9f(_0x48e952._0x41b128,0x356)]=_0x3a9a9f(0x4de,0x309)+_0x3a9a9f(_0x48e952._0x13d37a,_0x48e952._0x1e537f);function _0x3a9a9f(_0x1d0d8c,_0x33c1c7){return _0x11b7ab(_0x33c1c7,_0x1d0d8c-0x2c5);}_0x2c787c[_0x3a9a9f(_0x48e952._0x5d553d,0x4d4)]=_0x34803d(_0x48e952._0x4df9d3,-0x11a),_0x2c787c[_0x34803d(-0x3f,0xca)]=_0x34803d(-_0x48e952._0x1a2881,-_0x48e952._0x5c5b2c)+_0x34803d(_0x48e952._0x258ef3,_0x48e952._0x4aaa90);const _0x5a5977=_0x2c787c;try{const _0x5ca0c5=JSON[_0x34803d(-0x153,-_0x48e952._0x3691ab)](_0x236d83);if(_0x5a5977[_0x3a9a9f(_0x48e952._0x5bd565,_0x48e952._0xe30f28)](_0x5ca0c5['type'],'req'))return null;if(_0x5ca0c5[_0x34803d(0xf4,-_0x48e952._0x3d88cf)]!=='connect'&&_0x5ca0c5[_0x3a9a9f(0x2ae,_0x48e952._0x361665)]!==_0x5a5977[_0x3a9a9f(_0x48e952._0x511caf,_0x48e952._0x37d7d7)])return null;const _0x35450b=_0x5ca0c5[_0x3a9a9f(_0x48e952._0x783486,0x3ad)]??{},_0x3d5dc5=typeof _0x5ca0c5['id']===_0x5a5977[_0x34803d(-_0x48e952._0x194027,0x113)]&&_0x5ca0c5['id'][_0x34803d(0x130,_0x48e952._0x40de53)]()?_0x5ca0c5['id'][_0x3a9a9f(0x3c4,_0x48e952._0x342cae)]():_0x3a9a9f(_0x48e952._0x2e1a73,0x2a3)+Math[_0x3a9a9f(0x2b8,_0x48e952._0x557a76)]()[_0x3a9a9f(_0x48e952._0x4c24fa,0x289)](0x24)[_0x3a9a9f(_0x48e952._0x3aadc3,0x271)](0x2,0xc),_0x44cb73=firstString(_0x35450b[_0x34803d(0x1c,0x179)+'me'],_0x35450b['clientNa'+'me'],_0x35450b[_0x34803d(0x2a6,_0x48e952._0x420e85)],_0x5a5977[_0x3a9a9f(0x42e,_0x48e952._0x52aa04)]),_0x5aae23={};return _0x5aae23['id']=_0x3d5dc5,_0x5aae23[_0x34803d(-0x132,-0x28)]=_0x44cb73,_0x5aae23;}catch{return null;}}function isConnectHandshakeRequest(_0x3ecedd){const _0x287ad3={_0x51ac61:0x98,_0x1f1556:0x430,_0x4c214d:0x2d4,_0x2da105:0x273,_0x54af92:0x1cb,_0x5eb0b2:0x38,_0x14474e:0x3d5},_0x683559={_0x26b042:0x272};function _0xf6c76b(_0x1ca086,_0xf46368){return _0x11b7ab(_0xf46368,_0x1ca086-_0x683559._0x26b042);}const _0x54ea90={};_0x54ea90['Wmspe']=function(_0x2e8e18,_0x539e37){return _0x2e8e18===_0x539e37;},_0x54ea90[_0x16bd6c(_0x287ad3._0x51ac61,0x2e)]=_0xf6c76b(0x4c4,_0x287ad3._0x1f1556);const _0x1a0183=_0x54ea90;function _0x16bd6c(_0x37a769,_0x8d3441){return _0x11b7ab(_0x8d3441,_0x37a769- -0x21);}try{const _0x2cb6dc=JSON[_0xf6c76b(_0x287ad3._0x4c214d,_0x287ad3._0x2da105)](_0x3ecedd);return _0x1a0183['Wmspe'](_0x2cb6dc[_0x16bd6c(0xf2,0xc5)],_0xf6c76b(_0x287ad3._0x54af92,0x10b))&&(_0x2cb6dc['method']===_0x1a0183[_0x16bd6c(_0x287ad3._0x51ac61,0x159)]||_0x2cb6dc[_0x16bd6c(-_0x287ad3._0x5eb0b2,-0xad)]==='connect.'+_0xf6c76b(_0x287ad3._0x14474e,0x4bf));}catch{return![];}}function parsePairingRequestFromError(_0x30dd2d,_0x5e1790=Date[_0x6eb3(-0xe1,0x54)]()){const _0x2595e7={_0x3e87da:0x4ff,_0x19180a:0x117,_0x30eb56:0x57,_0x4f5bd8:0x5a2,_0x1240ce:0x9d,_0x319ab0:0x181,_0x675a60:0x2ea,_0x3b3465:0x216,_0x209875:0x3a,_0x292526:0xc2,_0x3d751b:0x5e,_0x5157b6:0x205,_0x9a08b3:0x3e4,_0x9634a1:0x2b5,_0x2c93b7:0x298,_0x52f66b:0x2d9,_0x3f7699:0x29,_0x52f7b3:0x33d,_0x4ca5f8:0x15a,_0x5eb348:0x2f7,_0x20217e:0x3d5,_0xb80122:0x4b8,_0x4de9eb:0x10,_0xc837bd:0xf7,_0x2d17e7:0x2d9,_0x9fc0a:0x54f,_0x4e9203:0x8f,_0x1f156d:0xc8,_0x58c7f5:0xf6,_0x460347:0x4b4,_0x903b9b:0x5e1,_0x5abb7f:0x5b8,_0x369b68:0x588,_0x51d543:0x34b,_0x31f477:0x264,_0x15dae9:0x2a1,_0x473080:0x32e,_0x2ae143:0x4ea,_0x52810c:0x38a},_0x3c93a4={_0x2659ef:0x372},_0x101fbe={_0x1666b6:0xf7},_0x29d556={'UyJCu':_0x1cabfb(_0x2595e7._0x3e87da,0x57c),'WlVuH':function(_0x1f3ea4,_0x3e2f1b){return _0x1f3ea4===_0x3e2f1b;},'YIVsR':'PAIRING_'+_0x332b29(0x2df,0x36d),'USGSe':_0x332b29(0x13e,0x278)+_0x1cabfb(0x2bf,0x3eb),'hAwPF':function(_0x21179e,_0x95ae7f){return _0x21179e(_0x95ae7f);},'EEkra':'unknown','GGVzu':function(_0x29f3cb,_0xdef2e9,_0x1db138){return _0x29f3cb(_0xdef2e9,_0x1db138);}};function _0x332b29(_0x59e57e,_0x2ea6cb){return _0x6eb3(_0x59e57e,_0x2ea6cb-_0x101fbe._0x1666b6);}function _0x1cabfb(_0x5b77cb,_0x4ed7a7){return _0x6eb3(_0x5b77cb,_0x4ed7a7-_0x3c93a4._0x2659ef);}try{const _0x41a1b0=JSON[_0x332b29(0x19a,_0x2595e7._0x19180a)](_0x30dd2d);if(_0x41a1b0[_0x332b29(_0x2595e7._0x30eb56,0x1c8)]!==_0x29d556[_0x1cabfb(_0x2595e7._0x4f5bd8,0x5ad)]||_0x41a1b0['ok']!==![]||!_0x41a1b0[_0x332b29(-_0x2595e7._0x1240ce,0x5e)])return null;const _0x188590=_0x29d556[_0x1cabfb(_0x2595e7._0x319ab0,_0x2595e7._0x675a60)](typeof _0x41a1b0[_0x332b29(_0x2595e7._0x3b3465,0x5e)]['code'],_0x332b29(0x11e,_0x2595e7._0x209875))?_0x41a1b0[_0x332b29(_0x2595e7._0x292526,_0x2595e7._0x3d751b)][_0x332b29(0x1e2,0x25)]:'',_0x4f1e4e=typeof _0x41a1b0['error'][_0x1cabfb(_0x2595e7._0x5157b6,_0x2595e7._0x9a08b3)]===_0x1cabfb(0x183,_0x2595e7._0x9634a1)?_0x41a1b0[_0x1cabfb(_0x2595e7._0x2c93b7,_0x2595e7._0x52f66b)][_0x332b29(_0x2595e7._0x3f7699,0x169)]:'';if(!_0x188590['includes'](_0x1cabfb(0x64e,0x572)+'ED')&&!_0x188590['includes'](_0x29d556['YIVsR'])&&!_0x4f1e4e[_0x332b29(_0x2595e7._0x52f7b3,_0x2595e7._0x4ca5f8)](_0x332b29(0x18f,_0x2595e7._0x5eb348)+'ED')&&!_0x4f1e4e[_0x1cabfb(0x443,_0x2595e7._0x20217e)](_0x29d556[_0x1cabfb(0x4ed,_0x2595e7._0xb80122)]))return null;const _0x18b175=_0x41a1b0[_0x1cabfb(0x2eb,0x2d9)][_0x332b29(_0x2595e7._0x4de9eb,-0x53)]??_0x41a1b0[_0x1cabfb(_0x2595e7._0xc837bd,_0x2595e7._0x2d17e7)][_0x1cabfb(_0x2595e7._0x9fc0a,0x60b)]??{},_0x42958e=firstString(_0x18b175[_0x332b29(0x17a,0x373)+'d'],_0x29d556[_0x332b29(_0x2595e7._0x4e9203,0x159)](extractRequestIdFromMessage,_0x4f1e4e),_0x29d556[_0x332b29(-_0x2595e7._0x1f156d,_0x2595e7._0x58c7f5)]);return{'requestId':_0x42958e,'deviceId':_0x29d556['GGVzu'](firstString,_0x18b175[_0x1cabfb(_0x2595e7._0x460347,_0x2595e7._0x903b9b)],''),'displayName':firstNullableString(_0x18b175[_0x1cabfb(_0x2595e7._0x5abb7f,0x41a)+_0x1cabfb(_0x2595e7._0x369b68,0x624)]),'platform':firstNullableString(_0x18b175[_0x1cabfb(0x357,_0x2595e7._0x51d543)]),'deviceFamily':firstNullableString(_0x18b175[_0x332b29(0x290,_0x2595e7._0x31f477)+_0x1cabfb(0x493,_0x2595e7._0x15dae9)]),'role':firstNullableString(_0x18b175['role']),'remoteIp':firstNullableString(_0x18b175[_0x1cabfb(_0x2595e7._0x473080,_0x2595e7._0x2ae143)]),'receivedAtMs':_0x5e1790,'status':_0x1cabfb(_0x2595e7._0x52810c,0x49e)};}catch{return null;}}function parsePairResolvedEvent(_0xc3514d){const _0x53dc42={_0xd7b094:0x3be,_0x1fab21:0xac,_0x401d4c:0x2aa,_0x39d3da:0x4a3,_0x2068c5:0x18d,_0x160146:0x5b0,_0x409450:0x323,_0x23aa3c:0x28e,_0x1d090b:0x53,_0x4dd6b8:0x81,_0x19461a:0x25b,_0x54dd30:0x292,_0x4fde8a:0x2d9,_0x36c2ef:0x53,_0x25ff9b:0x2f,_0x4029c0:0x216,_0x22f694:0x20,_0x2534c0:0x160,_0x265c75:0x2a0,_0x1989e5:0x4a3,_0x28757f:0x216,_0x1511ba:0x3f0},_0x2d5a78={_0x258056:0x32d};function _0x4f006f(_0x5bd6d4,_0x17421d){return _0x6eb3(_0x5bd6d4,_0x17421d-_0x2d5a78._0x258056);}const _0x1022f4={};_0x1022f4[_0x4f006f(0x228,_0x53dc42._0xd7b094)]=function(_0x46818a,_0x1af392){return _0x46818a!==_0x1af392;},_0x1022f4['RjiYs']='device.p'+'air.reso'+'lved',_0x1022f4[_0x3f18d0(_0x53dc42._0x1fab21,-0x4a)]=_0x4f006f(_0x53dc42._0x401d4c,_0x53dc42._0x39d3da);function _0x3f18d0(_0x2cce24,_0x3ba409){return _0x6eb3(_0x3ba409,_0x2cce24- -0x189);}const _0x5bfac1=_0x1022f4;try{const _0x427b36=JSON[_0x4f006f(_0x53dc42._0x2068c5,0x34d)](_0xc3514d);if(_0x5bfac1['hmymb'](_0x427b36[_0x4f006f(_0x53dc42._0x160146,0x3fe)],_0x3f18d0(-0x1f7,-_0x53dc42._0x409450))||_0x427b36[_0x4f006f(_0x53dc42._0x23aa3c,0x2bf)]!==_0x5bfac1['RjiYs']||!_0x427b36['payload'])return null;const _0x361816=typeof _0x427b36[_0x3f18d0(-_0x53dc42._0x1d090b,_0x53dc42._0x4dd6b8)][_0x3f18d0(0xf3,_0x53dc42._0x19461a)+'d']===_0x4f006f(_0x53dc42._0x54dd30,0x270)?_0x427b36['payload'][_0x3f18d0(0xf3,_0x53dc42._0x4fde8a)+'d']['trim']():'';if(!_0x361816)return null;const _0x2cf41b=typeof _0x427b36[_0x3f18d0(-_0x53dc42._0x36c2ef,_0x53dc42._0x25ff9b)][_0x3f18d0(-_0x53dc42._0x4029c0,-_0x53dc42._0x22f694)]==='string'?_0x427b36[_0x3f18d0(-_0x53dc42._0x1d090b,0x70)][_0x4f006f(_0x53dc42._0x2534c0,_0x53dc42._0x265c75)]:_0x4f006f(0x67e,_0x53dc42._0x1989e5),_0x416154=_0x2cf41b==='approved'||_0x2cf41b==='rejected'?_0x2cf41b:_0x5bfac1['pFvRk'],_0x4bb255={};return _0x4bb255['requestI'+'d']=_0x361816,_0x4bb255[_0x3f18d0(-_0x53dc42._0x28757f,-_0x53dc42._0x1511ba)]=_0x416154,_0x4bb255;}catch{return null;}}function firstString(..._0xc21356){function _0x46a341(_0x352506,_0xda8dde){return _0x11b7ab(_0xda8dde,_0x352506-0x2dd);}function _0x4a84d7(_0x4d7b97,_0x4d1a71){return _0x11b7ab(_0x4d1a71,_0x4d7b97-0x464);}for(const _0x5669ed of _0xc21356){if(typeof _0x5669ed===_0x4a84d7(0x3e9,0x3f4)&&_0x5669ed[_0x4a84d7(0x563,0x423)]())return _0x5669ed['trim']();}return'';}function firstNullableString(_0x1b60a8){const _0x1cadc2={_0x4596af:0x310,_0x18cdf0:0x37c,_0x2d59ad:0x37a,_0x717f23:0x379},_0x5a2fe2={_0x22c7e0:0x339};function _0x3f4869(_0x18aa9d,_0x3b7497){return _0x6eb3(_0x18aa9d,_0x3b7497-_0x5a2fe2._0x22c7e0);}const _0x37304b={};_0x37304b['XWKPb']=function(_0x1f371d,_0x37f251){return _0x1f371d===_0x37f251;},_0x37304b[_0x17ad37(0x5c0,0x40e)]=_0x17ad37(0x469,_0x1cadc2._0x4596af);const _0x6df952=_0x37304b;function _0x17ad37(_0x683bd5,_0x5692bd){return _0x6eb3(_0x683bd5,_0x5692bd-0x3cd);}return _0x6df952[_0x17ad37(0x23b,0x2c9)](typeof _0x1b60a8,_0x6df952[_0x3f4869(_0x1cadc2._0x18cdf0,_0x1cadc2._0x2d59ad)])&&_0x1b60a8[_0x17ad37(_0x1cadc2._0x717f23,0x48a)]()?_0x1b60a8[_0x17ad37(0x59d,0x48a)]():null;}function extractRequestIdFromMessage(_0x1f398a){const _0x510487=_0x1f398a[_0x5f2389(0x300,0x35d)](/requestId[:\s]*([a-f0-9-]+)/i);function _0x5f2389(_0x5203c0,_0x2add98){return _0x6eb3(_0x2add98,_0x5203c0-0x315);}return _0x510487?.[0x1]??null;}import{randomUUID as _0x2b14da}from'crypto';import{setTimeout as _0x3ea3f7}from'timers/promises';import _0x17e531 from'ws';var HEARTBEAT_INTERVAL_MS=0x2710,HEARTBEAT_TIMEOUT_MS=0x88b8,GATEWAY_RETRY_DELAY_MS=0x4b0,GATEWAY_IDLE_DISCONNECT_DELAY_MS=0x7530,RECONNECT_BASE_DELAY_MS=0x3e8,RECONNECT_MAX_DELAY_MS=0x3a98,MAX_PENDING_GATEWAY_MESSAGES=0x100,MAX_DEVICE_DETAILS=0x20,MAX_PENDING_PAIR_REQUESTS=0x10,BridgeRuntime=class{[_0x11b7ab(0x72,-0x39)];['relaySoc'+_0x6eb3(0x11a,0x1de)]=null;[_0x6eb3(0x87,-0x148)+'ocket']=null;[_0x6eb3(-0xb,0x183)+'necting']=![];['gatewayC'+'onnectin'+'g']=![];[_0x6eb3(0x47,0x1ba)]=!![];[_0x11b7ab(0x16c,0xe)+_0x6eb3(0xfc,-0xe5)]=0x0;[_0x6eb3(-0x5d,-0x3f)+_0x11b7ab(-0x17,-0x77)+_0x6eb3(-0xc,0xef)]=0x0;[_0x6eb3(0x3e8,0x25b)+_0x6eb3(-0xa,0x4b)]=null;[_0x11b7ab(0x124,0x279)+'etryTime'+'r']=null;['gatewayI'+'dleClose'+_0x11b7ab(0x6e,-0x1d)]=null;[_0x6eb3(-0xb9,0xeb)+_0x6eb3(-0x4a,0x4b)]=null;['pendingG'+_0x6eb3(0x470,0x2b4)+_0x11b7ab(0x304,0x234)]=[];[_0x6eb3(0x47e,0x277)+_0x11b7ab(0x42,-0x63)+_0x11b7ab(-0xa4,0x88)]=![];[_0x6eb3(0x2c2,0x2c0)+'mandStar'+_0x6eb3(-0x8,-0x14c)]=null;[_0x11b7ab(0x1dd,0x2c3)+_0x6eb3(-0x25,-0xd7)+_0x11b7ab(-0xd9,-0x1b)]=null;[_0x11b7ab(0x290,0xec)];constructor(_0x4e053a){const _0x6b1316={_0x5d4185:0xa0,_0x4acb4d:0x15e,_0x4cf19c:0xbd,_0xc5b56d:0x1e2,_0x45804:0x277,_0x16f83c:0x20e},_0x440d53={_0x19392e:0x14a},_0x3de3a3={_0x1822a0:0x146};function _0x1bfcf7(_0x31e7bf,_0x3d18e1){return _0x6eb3(_0x31e7bf,_0x3d18e1- -_0x3de3a3._0x1822a0);}this[_0x1bfcf7(-0x3aa,-0x1c1)]=_0x4e053a;function _0x41c0b5(_0x340bf1,_0x58da5c){return _0x6eb3(_0x58da5c,_0x340bf1- -_0x440d53._0x19392e);}this[_0x41c0b5(-_0x6b1316._0x5d4185,-0x1e1)]={'running':![],'relayConnected':![],'gatewayConnected':![],'gatewayId':_0x4e053a[_0x41c0b5(-0x146,-0x10b)][_0x41c0b5(0x61,0x1d4)+'d'],'instanceId':_0x4e053a['config'][_0x1bfcf7(-0x85,-_0x6b1316._0x4acb4d)+'Id'],'relayUrl':_0x4e053a[_0x1bfcf7(-_0x6b1316._0x4cf19c,-0x142)][_0x1bfcf7(-_0x6b1316._0xc5b56d,-_0x6b1316._0x45804)],'gatewayUrl':_0x4e053a[_0x1bfcf7(-_0x6b1316._0x16f83c,-0x1d6)+'rl'],'clientCount':0x0,'connectedDevices':[],'pendingPairRequests':[],'lastError':null,'lastUpdatedMs':Date[_0x1bfcf7(-0x226,-0xf2)]()};}['start'](){const _0x1d64c0={_0x41ac68:0x263,_0x3688d2:0x2b1,_0xc13163:0x180,_0x1d6678:0x336,_0x22b4ce:0x37,_0x592804:0x217,_0x222d8a:0x1f3,_0xbc635c:0x149,_0x1aee57:0x309,_0x1c6ee5:0x133,_0x17b8aa:0x2d3,_0x147f5d:0x58,_0x3b199b:0x124,_0x2d1542:0x19},_0xdeefed={_0x1b5373:0x128};if(!this[_0x5b170b(0x263,_0x1d64c0._0x41ac68)])return;this['stopped']=![];function _0x14efd1(_0x52bcbf,_0x52c508){return _0x6eb3(_0x52bcbf,_0x52c508-_0xdeefed._0x1b5373);}this[_0x14efd1(_0x1d64c0._0x3688d2,_0x1d64c0._0xc13163)+_0x5b170b(_0x1d64c0._0x1d6678,0x311)]({'running':!![],'gatewayUrl':this[_0x14efd1(_0x1d64c0._0x22b4ce,0xad)][_0x5b170b(0xf5,0x19)+'rl']});function _0x5b170b(_0x44c806,_0xfaab89){return _0x6eb3(_0x44c806,_0xfaab89-0xa9);}this[_0x5b170b(_0x1d64c0._0x592804,_0x1d64c0._0x222d8a)](_0x5b170b(_0x1d64c0._0xbc635c,-0x50)+_0x5b170b(_0x1d64c0._0x1aee57,0x141)+'\x20gateway'+_0x14efd1(-0x5a,-0x3)+this['options']['config'][_0x14efd1(_0x1d64c0._0x1c6ee5,_0x1d64c0._0x17b8aa)+'d']+(_0x5b170b(-0x14e,-_0x1d64c0._0x147f5d)+'Url=')+this[_0x5b170b(0x1bd,0x2e)][_0x5b170b(-_0x1d64c0._0x3b199b,_0x1d64c0._0x2d1542)+'rl']),void this['connectR'+_0x5b170b(0x158,0x2d8)]();}async[_0x6eb3(0x174,0x11c)](){const _0x506f12={_0x3a4b48:0x31d,_0x4bb648:0x160,_0x319777:0x2fb,_0xbcbd8d:0x27e,_0x595440:0x1ee,_0x3a56c0:0xa2,_0x2a4dcb:0x219,_0x250e8d:0x1df,_0x3c893f:0x348,_0x9bc132:0x27e,_0x46dca5:0x436,_0x567bd5:0x23e,_0x118eac:0x2a7,_0x30d50e:0x43d,_0x8cab50:0x1c8,_0x50e633:0x461,_0x47a976:0x23e,_0x4c3ace:0x5ad,_0x3ef1c0:0x34,_0x3df37a:0x9e,_0x5878aa:0x15c,_0x5c3a84:0x134,_0x4d3cbe:0x3db,_0x46a768:0x4d9,_0x3828ec:0x606,_0x138eef:0x283,_0x58497f:0x39f,_0x416369:0x3b3,_0x3bac42:0xf,_0xccbc4e:0x1d3,_0x42324c:0x452,_0x13f950:0x3a2,_0x2e9752:0x2cd},_0x1b7cf0={_0x200851:0x258},_0x2a121a={_0x18002c:0x1ea},_0x398c3b={};_0x398c3b[_0x41b114(0x341,_0x506f12._0x3a4b48)]=_0x41b114(0x15f,0x1a5)+'stopped';const _0x53edeb=_0x398c3b;if(this['stopped'])return;this[_0x22650c(0x551,0x3a4)]=!![],this[_0x22650c(0x513,0x3d6)+_0x41b114(_0x506f12._0x4bb648,0xad)](),this[_0x22650c(_0x506f12._0x319777,_0x506f12._0xbcbd8d)+_0x22650c(0x5c3,0x3c8)]?.['close'](),this[_0x22650c(_0x506f12._0x595440,_0x506f12._0x3a56c0)+'ocket']?.[_0x22650c(_0x506f12._0x2a4dcb,_0x506f12._0x250e8d)](),this[_0x22650c(_0x506f12._0x3c893f,_0x506f12._0x9bc132)+_0x41b114(_0x506f12._0x46dca5,_0x506f12._0x567bd5)]=null,this[_0x41b114(0x110,_0x506f12._0x118eac)+_0x22650c(_0x506f12._0x30d50e,0x4a7)]=null,this[_0x22650c(_0x506f12._0x8cab50,0xba)+_0x41b114(0x50c,0x64b)+_0x41b114(0x44a,0x5a5)]=[],this[_0x22650c(0x2b5,_0x506f12._0x50e633)+'andshake'+_0x22650c(_0x506f12._0x47a976,0x230)]=![],this[_0x22650c(_0x506f12._0x4c3ace,0x4aa)+'mandStar'+_0x22650c(-_0x506f12._0x3ef1c0,_0x506f12._0x3df37a)]=null,this[_0x22650c(0x3cb,0x46b)+_0x22650c(_0x506f12._0x5878aa,0x113)+'AtMs']=null,this['relayCon'+_0x22650c(0x37b,0x1b0)]=![],this[_0x22650c(0x53a,0x46b)+_0x22650c(0x27c,_0x506f12._0x5c3a84)+'g']=![];const _0x39d750={};_0x39d750[_0x22650c(0x22a,0x1cd)]=![],_0x39d750[_0x41b114(_0x506f12._0x4d3cbe,0x259)+'nected']=![];function _0x22650c(_0x1327a8,_0x351934){return _0x6eb3(_0x1327a8,_0x351934-_0x2a121a._0x18002c);}function _0x41b114(_0x34ba79,_0x27fa61){return _0x6eb3(_0x27fa61,_0x34ba79-_0x1b7cf0._0x200851);}_0x39d750[_0x41b114(_0x506f12._0x46a768,_0x506f12._0x3828ec)+_0x22650c(-0xec,0x113)]=![],_0x39d750[_0x41b114(0x122,_0x506f12._0x138eef)+_0x41b114(_0x506f12._0x58497f,_0x506f12._0x416369)]=0x0,_0x39d750[_0x22650c(-_0x506f12._0x3bac42,_0x506f12._0xccbc4e)+'r']=null,this['updateSn'+_0x22650c(0x650,_0x506f12._0x42324c)](_0x39d750),this[_0x41b114(_0x506f12._0x13f950,0x211)](_0x53edeb[_0x41b114(0x341,_0x506f12._0x2e9752)]),await _0x3ea3f7(0x19);}async[_0x6eb3(-0x1b5,-0x12)+'airReque'+'st'](_0x43899c){const _0x4f078d={_0x3a75f6:0x45,_0x1a07d6:0x1fe,_0x5bf516:0x9a,_0x338bae:0x17c,_0xdcf799:0x322,_0x15f506:0x96},_0x1c3184={_0x2251f9:0x198},_0x19f62b={_0x2f1c33:0x14a},_0x28bf4b={};_0x28bf4b[_0x3ab965(-0x1ca,-0x2ce)]=_0xe6035(0x1a7,0x378)+'air.appr'+_0x3ab965(-_0x4f078d._0x3a75f6,0x55);const _0x4ae463=_0x28bf4b;function _0xe6035(_0x2b5e30,_0x5000fb){return _0x11b7ab(_0x5000fb,_0x2b5e30- -_0x19f62b._0x2f1c33);}const _0x5048e8={};_0x5048e8[_0x3ab965(0x126,_0x4f078d._0x1a07d6)+'d']=_0x43899c,this[_0x3ab965(-_0x4f078d._0x5bf516,0x9c)+'wayReque'+'st'](_0x4ae463[_0xe6035(-_0x4f078d._0x338bae,-_0x4f078d._0xdcf799)],_0x5048e8);function _0x3ab965(_0x452630,_0x5b38f6){return _0x11b7ab(_0x5b38f6,_0x452630- -_0x1c3184._0x2251f9);}this['markPair'+_0x3ab965(-0x70,-0x1fd)+_0xe6035(-0x1cd,-0x131)](_0x43899c,_0x3ab965(-0x4c,-_0x4f078d._0x15f506));}async[_0x6eb3(0x1f,0x175)+_0x6eb3(0x153,0x117)+'t'](_0x22f44c){const _0x369c8d={_0x43eeda:0x29b,_0x428840:0x28f,_0x934078:0x137,_0xe55ff7:0xae,_0x5da5e5:0x2c9,_0x3174b9:0x317,_0x4e22ac:0x96,_0x261fc5:0x84,_0x510e25:0x1fb,_0x523053:0xb6,_0xa11df6:0x134},_0x23b944={};_0x23b944[_0x2419cd(_0x369c8d._0x43eeda,0x317)]=_0x2419cd(_0x369c8d._0x428840,0x3fd)+_0x1aae02(_0x369c8d._0x934078,-0x18)+'ct';function _0x2419cd(_0x370b3b,_0x1bb167){return _0x6eb3(_0x370b3b,_0x1bb167-0x14e);}const _0x1dd0de=_0x23b944,_0x417e00={};function _0x1aae02(_0x1435e0,_0x542251){return _0x6eb3(_0x1435e0,_0x542251- -0x16a);}_0x417e00['requestI'+'d']=_0x22f44c,this[_0x1aae02(-0xef,-_0x369c8d._0xe55ff7)+_0x1aae02(0x7a,0x116)+'st'](_0x1dd0de[_0x2419cd(_0x369c8d._0x5da5e5,_0x369c8d._0x3174b9)],_0x417e00),this['markPair'+_0x1aae02(-_0x369c8d._0x4e22ac,-_0x369c8d._0x261fc5)+_0x2419cd(_0x369c8d._0x510e25,0x89)](_0x22f44c,_0x1aae02(_0x369c8d._0x523053,-_0x369c8d._0xa11df6));}[_0x11b7ab(0x313,0x11d)+'hot'](){const _0x2121ec={_0x626ae0:0x313,_0x2a77df:0x2ae,_0x3c962d:0x1a0,_0x475c47:0x24c,_0x3a40e7:0x1f6,_0x59cf40:0x24e},_0x524a2c={_0x444746:0x198},_0x12537c={...this[_0x5b9ba6(0x242,_0x2121ec._0x626ae0)]};function _0x5b9ba6(_0x18782a,_0x25aee2){return _0x6eb3(_0x25aee2,_0x18782a-_0x524a2c._0x444746);}_0x12537c[_0x5b9ba6(0x28a,0x249)+_0x5b9ba6(_0x2121ec._0x2a77df,0x469)]=[...this[_0x5b9ba6(0x242,0x2a1)]['connecte'+_0x5b9ba6(0x2ae,_0x2121ec._0x3c962d)]],_0x12537c[_0x5b9ba6(0x1bd,0x173)+_0x5b9ba6(0x129,_0x2121ec._0x475c47)+'sts']=[...this['snapshot'][_0x5b9ba6(0x1bd,_0x2121ec._0x3a40e7)+_0x13ba26(0x4ea,0x485)+_0x5b9ba6(_0x2121ec._0x59cf40,0x192)]];function _0x13ba26(_0x1029ac,_0x2f13e6){return _0x6eb3(_0x1029ac,_0x2f13e6-0x4f4);}return _0x12537c;}async[_0x6eb3(0x21a,0x2a8)+_0x6eb3(0x104,0x22f)](){const _0x497fb8={_0x3cbd24:0xe0,_0x321a19:0x533,_0x251c31:0x45,_0x4fa7c5:0x3c,_0x43b9f3:0x155,_0x1d35a3:0x341,_0x5ee9f1:0x4c5,_0x8f2b7d:0x4c3,_0x363bb3:0x3e1,_0x3a1810:0x4ec,_0x2544f7:0x3ff,_0x2761e3:0x2d6,_0x1df405:0x2ad},_0x52f2af={_0x543199:0x3d9,_0x5ac0a3:0x1ec,_0xc0ea0d:0xe8,_0x3c7261:0x4d1,_0x460c00:0x270,_0x491577:0x2d8,_0x1391eb:0x1a3,_0x4dcd89:0x19e,_0x2d6491:0x253,_0x2dc33:0x74,_0x5a16a4:0x185,_0x1fe00c:0x2d0,_0x4e253e:0xe9,_0x4860d1:0x31f,_0x1a9b84:0x7e,_0x350663:0x18e,_0x889cdb:0x1b0,_0x5e4392:0xb1,_0x307ebb:0xaf,_0x4c706f:0x3f8,_0x1c3d78:0x327,_0x3ebe22:0x34,_0xeecbf2:0x26d},_0x56e583={_0x33d280:0x2},_0x461fb6={_0x112194:0x27c,_0x5e1a44:0x1f6,_0x1644cc:0x383,_0x4851f5:0x4e,_0x14c058:0x5d},_0x2e0012={_0x58b81b:0x8e3,_0x5cd5f6:0x70c,_0x3f2375:0x5e6,_0x33c78a:0x129,_0x33165d:0xc0,_0x32a670:0x6b7,_0x37fdee:0x32d,_0x157368:0x518,_0xa848:0x1c,_0x3ca376:0x16e,_0x94c778:0x91,_0x42009d:0x61,_0x32481e:0x33,_0x1532dc:0x444,_0x42182f:0x1b3,_0x45bf58:0x148,_0xc76e16:0x4d,_0x21872d:0xe2,_0x1cac69:0x46c,_0x27c192:0x2e6},_0x526df3={_0x5ccfcf:0x379},_0x88df78={'BOAUR':function(_0x56f0e5,_0x167b62){return _0x56f0e5===_0x167b62;},'lwgRK':_0x45b8da(_0x497fb8._0x3cbd24,0x96),'uEGOg':function(_0xd0ea8a,_0x493ee1){return _0xd0ea8a(_0x493ee1);},'YgDEb':function(_0x10f94e,_0x1dfd95){return _0x10f94e*_0x1dfd95;}};if(this[_0x557982(0x4f6,_0x497fb8._0x321a19)]||this[_0x45b8da(0x181,-_0x497fb8._0x251c31)+_0x45b8da(-_0x497fb8._0x4fa7c5,-0x56)]||this[_0x557982(0x4f4,0x381)+'pen']())return;function _0x557982(_0x577f2b,_0x433263){return _0x6eb3(_0x577f2b,_0x433263-_0x526df3._0x5ccfcf);}this[_0x45b8da(0x181,0x291)+'necting']=!![],this[_0x557982(0x1ec,0x345)+'empt']+=0x1;const _0xa0b52d=this[_0x45b8da(-0x36,0x79)+'empt'],_0x362b12=_0x88df78[_0x45b8da(0x11,-_0x497fb8._0x43b9f3)](buildRelayWsUrl,this[_0x557982(_0x497fb8._0x1d35a3,0x2fe)][_0x557982(_0x497fb8._0x5ee9f1,0x37d)]);this[_0x557982(0x39e,_0x497fb8._0x8f2b7d)](_0x557982(0x361,_0x497fb8._0x363bb3)+_0x557982(0x4ff,_0x497fb8._0x3a1810)+'tempt='+_0xa0b52d+_0x557982(0x42f,0x37e)+redactRelayWsUrl(_0x362b12));const _0x470017=new _0x17e531(_0x362b12,{'maxPayload':_0x88df78[_0x557982(_0x497fb8._0x2544f7,0x4a3)](0x19*0x400,0x400)});this[_0x45b8da(0x92,0x27b)+_0x557982(0x6fc,0x557)]=_0x470017,_0x470017['once'](_0x45b8da(-0x112,-0x85),()=>{if(this[_0x157a2b(_0x2e0012._0x58b81b,_0x2e0012._0x5cd5f6)]||this[_0x157a2b(0x491,_0x2e0012._0x3f2375)+_0x3a62bf(_0x2e0012._0x33c78a,0x20f)]!==_0x470017){_0x470017[_0x3a62bf(-_0x2e0012._0x33165d,-0x1e)]();return;}function _0x3a62bf(_0x43adb7,_0x3e8eb7){return _0x557982(_0x3e8eb7,_0x43adb7- -0x42e);}this[_0x157a2b(_0x2e0012._0x32a670,0x6d5)+_0x157a2b(_0x2e0012._0x37fdee,_0x2e0012._0x157368)]=![],this[_0x3a62bf(-0xf4,-_0x2e0012._0xa848)+_0x3a62bf(-_0x2e0012._0x3ca376,-_0x2e0012._0x94c778)+'yMs']=Date[_0x3a62bf(-_0x2e0012._0x42009d,_0x2e0012._0x32481e)]();const _0x52f67={};_0x52f67['relayCon'+_0x157a2b(0x602,_0x2e0012._0x1532dc)]=!![],_0x52f67[_0x157a2b(0x651,0x53b)+'r']=null,this[_0x157a2b(0x5b7,0x5aa)+_0x3a62bf(_0x2e0012._0x42182f,0x161)](_0x52f67);function _0x157a2b(_0x33c499,_0x32e718){return _0x557982(_0x33c499,_0x32e718-0x1d9);}this[_0x3a62bf(0x95,-_0x2e0012._0x45bf58)](_0x3a62bf(-_0x2e0012._0xc76e16,_0x2e0012._0x21872d)+_0x157a2b(0x4c8,0x4cd)+_0x157a2b(_0x2e0012._0x1cac69,0x660)+_0xa0b52d),this[_0x3a62bf(0xd5,0x2cd)+_0x3a62bf(0x204,_0x2e0012._0x27c192)]();}),_0x470017['on']('message',(_0x1817a6,_0x5df622)=>{function _0x41e22b(_0x5f47b6,_0x281cf9){return _0x557982(_0x281cf9,_0x5f47b6- -0x2b2);}function _0x142076(_0x136f60,_0x19b274){return _0x557982(_0x19b274,_0x136f60- -0x2bd);}void this[_0x41e22b(0x349,0x2e7)+_0x142076(-0xd,-0x1b2)+'ge'](_0x1817a6,_0x5df622);}),_0x470017['on'](_0x557982(_0x497fb8._0x2761e3,0x27e),()=>{function _0x4f2519(_0x353173,_0x378f35){return _0x45b8da(_0x353173- -0x13b,_0x378f35);}function _0x14af77(_0xe199f7,_0x31a766){return _0x45b8da(_0x31a766-0x45c,_0xe199f7);}this[_0x4f2519(-0x17c,-_0x461fb6._0x112194)+_0x4f2519(-_0x461fb6._0x5e1a44,-_0x461fb6._0x1644cc)+_0x4f2519(-_0x461fb6._0x4851f5,_0x461fb6._0x14c058)]=Date['now']();}),_0x470017[_0x45b8da(0x135,-0x64)](_0x45b8da(-0x9b,-0x11c),_0x121b37=>{const _0x554ab3={_0x157ef2:0x30f};function _0x990f9e(_0x2b2e8b,_0x550083){return _0x45b8da(_0x550083-_0x554ab3._0x157ef2,_0x2b2e8b);}this['log'](_0x990f9e(0x585,0x3df)+'ror:\x20'+String(_0x121b37));});function _0x45b8da(_0x47369f,_0x3a871a){return _0x6eb3(_0x3a871a,_0x47369f- -_0x56e583._0x33d280);}_0x470017[_0x557982(_0x497fb8._0x1df405,0x4b0)](_0x557982(0x460,0x36e),(_0x19547b,_0x4c9bd7)=>{const _0x4c8118={_0x1d9a4e:0x445},_0x5e31e0={_0x4cf546:0x17e};this[_0x3f589b(0x28f,0x94)+_0x3f589b(_0x52f2af._0x543199,_0x52f2af._0x5ac0a3)]===_0x470017&&(this[_0x3f589b(0x28f,0x324)+_0x56efdb(-_0x52f2af._0xc0ea0d,0x112)]=null);this[_0x3f589b(0x37e,_0x52f2af._0x3c7261)+_0x3f589b(0x1c1,0x1bb)]=![],this['stopHear'+_0x3f589b(_0x52f2af._0x460c00,0x281)](),this[_0x3f589b(0x4bb,0x57a)+_0x3f589b(0x2ff,_0x52f2af._0x491577)+_0x56efdb(-0x1f0,-0x218)]=null,this['gatewayC'+_0x56efdb(-0x386,-_0x52f2af._0x1391eb)+_0x3f589b(_0x52f2af._0x4dcd89,0x349)]=null,this[_0x3f589b(_0x52f2af._0x2d6491,_0x52f2af._0x2dc33)+_0x3f589b(0x463,0x5e4)]({'relayConnected':![],'gatewayConnected':![],'clientCount':0x0,'lastError':_0x88df78['BOAUR'](_0x19547b,0x3e8)?null:_0x56efdb(0xff,_0x52f2af._0x5a16a4)+_0x3f589b(_0x52f2af._0x1fe00c,_0x52f2af._0x4e253e)+(_0x4c9bd7[_0x3f589b(0x323,_0x52f2af._0x4860d1)]()||_0x19547b)});function _0x3f589b(_0x5e08a3,_0x5643db){return _0x557982(_0x5643db,_0x5e08a3- -_0x5e31e0._0x4cf546);}this[_0x56efdb(0x154,_0x52f2af._0x1a9b84)](_0x56efdb(-0x2c3,-_0x52f2af._0x350663)+'sconnect'+_0x56efdb(_0x52f2af._0x889cdb,_0x52f2af._0x5e4392)+_0x19547b+_0x56efdb(-0xe2,_0x52f2af._0x307ebb)+(_0x4c9bd7['toString']()||_0x88df78[_0x3f589b(_0x52f2af._0x4c706f,_0x52f2af._0x1c3d78)]));function _0x56efdb(_0x49987b,_0x2f0e56){return _0x557982(_0x49987b,_0x2f0e56- -_0x4c8118._0x1d9a4e);}this['closeGat'+_0x56efdb(0x18,_0x52f2af._0x3ebe22)](),this[_0x56efdb(_0x52f2af._0xeecbf2,0xbd)+'RelayRec'+'onnect']();});}async[_0x6eb3(0x1dd,0x282)+_0x6eb3(0xa5,-0xc9)+'ge'](_0x4cf695,_0x3371c5){const _0x371487={_0x43a05f:0x15c,_0x2322d4:0x21a,_0x3bc8de:0x1ef,_0x2e336c:0x118,_0x1a420d:0x1f5,_0x22251d:0x23f,_0x55acea:0x21b,_0x362a9a:0x2a,_0x4b840c:0x1d7,_0x3a7aa8:0x26d,_0x4a0ad1:0x2c5,_0x40e2f9:0x284,_0x171bcf:0x78,_0xd60bc0:0x103,_0x56d38f:0x169,_0x3a6506:0x40,_0x124f46:0x36,_0x57e1cd:0xc3},_0x5de644={_0x21e9fb:0x43},_0xcff6ca={'dXcpM':function(_0x22e392,_0x155bb4){return _0x22e392(_0x155bb4);}};this[_0x3283a3(0xcf,_0x371487._0x43a05f)+_0x5e5779(-0x22b,-0x76)+_0x5e5779(0x244,0x132)]=Date[_0x3283a3(_0x371487._0x2322d4,_0x371487._0x3bc8de)]();if(_0x3371c5){this[_0x3283a3(0x217,_0x371487._0x2e336c)+_0x3283a3(_0x371487._0x1a420d,0x21d)+_0x3283a3(_0x371487._0x22251d,_0x371487._0x55acea)+_0x5e5779(-0x243,-0x78)]({'kind':_0x3283a3(_0x371487._0x362a9a,0x9f),'data':normalizeBinary(_0x4cf695)});return;}const _0x187b0e=normalizeText(_0x4cf695);if(_0x187b0e==null)return;const _0x4b28d7=_0xcff6ca[_0x5e5779(0x232,_0x371487._0x4b840c)](parseControl,_0x187b0e);if(_0x4b28d7){this[_0x5e5779(_0x371487._0x3a7aa8,_0x371487._0x4a0ad1)+_0x5e5779(0x1e0,_0x371487._0x40e2f9)+'ol'](_0x4b28d7[_0x5e5779(0x5,-0x2b)],_0x4b28d7['count']);return;}function _0x3283a3(_0x32d5c6,_0x165a8c){return _0x6eb3(_0x32d5c6,_0x165a8c-0x19b);}const _0x6dd75e=parseConnectStartIdentity(_0x187b0e);_0x6dd75e&&this['observeC'+'onnectSt'+_0x3283a3(-0xe,0xa9)](_0x6dd75e['id'],_0x6dd75e[_0x5e5779(0x1ea,_0x371487._0x171bcf)]);const _0xd973f={};_0xd973f[_0x5e5779(0x2e1,0x20d)]=_0x3283a3(_0x371487._0xd60bc0,0x169);function _0x5e5779(_0xf38620,_0x27c798){return _0x6eb3(_0xf38620,_0x27c798-_0x5de644._0x21e9fb);}_0xd973f[_0x3283a3(-0x8e,_0x371487._0x56d38f)]=_0x187b0e,this[_0x5e5779(-0x15b,-_0x371487._0x3a6506)+'rQueueGa'+_0x5e5779(_0x371487._0x124f46,_0x371487._0x57e1cd)+'sage'](_0xd973f);}['handleRe'+'layContr'+'ol'](_0x4eadcb,_0x18feb1){const _0x14f93e={_0x3edb51:0xe0,_0x8df858:0x1cc,_0x1ddf0c:0xd3,_0x25229e:0x60b,_0x1aaf9b:0x46d,_0x2f9c1f:0x3fe,_0x4eff2c:0x200,_0x3270fd:0x180,_0x46737f:0x552,_0x32be76:0x597,_0x30404e:0x40a,_0xdf08aa:0x532,_0x810d9c:0x441,_0x1e887f:0x50,_0x3ab9eb:0x6cb,_0x39ac9a:0x26b,_0x46d3b9:0x17b,_0x20545a:0x31e,_0x2f3cc6:0x175,_0x46313c:0x105,_0x2d3c5b:0xee,_0x3d5f2d:0x5ea,_0x6a680:0x231,_0x4fef12:0x4e6,_0x4a7cdb:0xa1,_0x450caa:0x2bc,_0x3fd9b2:0x272,_0x3a7d75:0x552,_0x325956:0x46e,_0x5b916e:0x288,_0x4d1b59:0x128,_0x56a807:0x3b0,_0x326283:0x92,_0xc2a2c2:0x1e1,_0x14f52c:0x63,_0x3deec1:0x6c5,_0x50ffcf:0x163,_0x1551f5:0x359,_0x2fcbef:0x123,_0xc96ca6:0x54f,_0x18be7b:0x746,_0x5c39d3:0x2c2,_0x55345a:0x4c7,_0x56bd3e:0x33b,_0x477999:0x18b,_0x142c81:0x416,_0x40a7e6:0x5d4,_0x466c9d:0x66f,_0x66e132:0x150,_0x36ec49:0x21d,_0x389e40:0x605,_0x2bad34:0x6ac,_0x2c7584:0x2cb,_0x3fe7e8:0x267,_0xedcd82:0x5f4,_0x5f2630:0x645,_0x568b93:0x31f,_0x4aa87e:0x5dc,_0x1998af:0x5b9,_0x5b6005:0x384,_0x59f90d:0x3e5,_0x5ca385:0x303,_0x5c5f12:0x1f4,_0x1d74dc:0x433,_0x12274f:0x3d8,_0xaceaaa:0x255,_0x10efa4:0x77,_0x148da4:0x63d,_0x54e117:0x1e5,_0x39f6bc:0x254,_0x3930cd:0x1bf,_0x3577d3:0x194,_0x30b026:0x32c,_0x1e580b:0x6d3,_0x2a8b2d:0x35a,_0x51a357:0x52,_0x1d96a1:0x1fa,_0x1420c3:0x506,_0x186d02:0x1b2,_0x42cd9a:0x199,_0x5c6a29:0x8b,_0x1ae086:0x55,_0x348d08:0x2df,_0x1f86ae:0x572,_0x94d98b:0x3e4,_0xa1d098:0x260,_0xe248af:0xe4,_0x18f486:0x270,_0x89b5a6:0x6c,_0x20ddb6:0x193,_0x23920:0x37e,_0x29222d:0x1cb,_0x4ac686:0x179,_0x851dbe:0xf,_0x24f307:0x231,_0x435424:0x5bc,_0x27c5d2:0x422,_0x1fb7c0:0x132,_0x20ac6f:0x384,_0x33d43c:0x100},_0x4fdd1b={_0x236dbf:0xf5},_0x4043b0={'vqNDF':function(_0x51e201,_0x2fcf56){return _0x51e201===_0x2fcf56;},'yMfXs':_0x5bac0d(0x15b,_0x14f93e._0x3edb51)+_0x5bac0d(-0x12a,-_0x14f93e._0x8df858),'gBBlO':function(_0x70e350,_0x1ace3d){return _0x70e350==_0x1ace3d;},'RxvtL':function(_0x406088,_0x1001e3,_0x2d5163,_0xf4ee1d,_0x236f17){return _0x406088(_0x1001e3,_0x2d5163,_0xf4ee1d,_0x236f17);},'TprFP':'gateway\x20'+'recycle\x20'+_0x5bac0d(_0x14f93e._0x1ddf0c,-0xfb)+_0x17eda9(0x4a3,0x3da)+'esh\x20clie'+'nt\x20deman'+'d','PeZgI':'client_d'+_0x17eda9(_0x14f93e._0x25229e,_0x14f93e._0x1aaf9b)+'ted'};if(_0x4043b0[_0x17eda9(0x2f2,0x265)](_0x4eadcb,_0x4043b0[_0x5bac0d(-_0x14f93e._0x2f9c1f,-_0x14f93e._0x4eff2c)])||_0x4043b0[_0x5bac0d(-0x17f,-_0x14f93e._0x3270fd)](_0x4eadcb,_0x17eda9(_0x14f93e._0x46737f,_0x14f93e._0x32be76)+_0x17eda9(0x362,0x207))){const _0x1d4e43=this[_0x17eda9(0x427,0x61e)][_0x5bac0d(-_0x14f93e._0x30404e,-0x22b)+_0x17eda9(0x4c4,_0x14f93e._0xdf08aa)],_0x2dcbdf=_0x18feb1??Math[_0x17eda9(_0x14f93e._0x810d9c,0x617)](0x1,this[_0x5bac0d(_0x14f93e._0x1e887f,-0x4b)]['clientCo'+_0x17eda9(0x4c4,_0x14f93e._0x3ab9eb)]),_0x373847=Boolean(this['gatewayI'+_0x5bac0d(-_0x14f93e._0x39ac9a,-_0x14f93e._0x46d3b9)+_0x17eda9(_0x14f93e._0x20545a,_0x14f93e._0x2f3cc6)]);_0x2dcbdf>0x0&&_0x4043b0[_0x5bac0d(-_0x14f93e._0x46313c,_0x14f93e._0x2d3c5b)](this['clientDe'+_0x17eda9(0x481,_0x14f93e._0x3d5f2d)+_0x17eda9(_0x14f93e._0x6a680,0x10a)],null)&&(this[_0x17eda9(0x63d,_0x14f93e._0x4fef12)+_0x5bac0d(_0x14f93e._0x4a7cdb,0xf)+_0x5bac0d(-0x3f5,-0x241)]=Date[_0x17eda9(0x3d1,0x316)]());const _0x2d3ff3={};_0x2d3ff3['clientCo'+'unt']=_0x2dcbdf,this['updateSn'+_0x17eda9(0x5e5,0x698)](_0x2d3ff3);if(_0x2dcbdf===0x0)this[_0x5bac0d(_0x14f93e._0x450caa,0x144)+_0x5bac0d(0x26,0x1e)+'t'](),this[_0x5bac0d(0x269,0x94)+'GatewayI'+_0x5bac0d(-_0x14f93e._0x3fd9b2,-_0x14f93e._0x46d3b9)](_0x17eda9(_0x14f93e._0x3a7d75,_0x14f93e._0x325956)+_0x17eda9(0x595,0x6ff)+'o');else{this['cancelGa'+_0x17eda9(_0x14f93e._0x5b916e,0x131)+'eClose'](_0x5bac0d(-0xbd,_0x14f93e._0x4d1b59)+_0x17eda9(0x5a4,_0x14f93e._0x56a807)+_0x17eda9(0x4e7,0x43e));_0x4043b0[_0x5bac0d(-_0x14f93e._0x326283,-_0x14f93e._0xc2a2c2)](shouldRecycleGatewayForFreshClient,_0x1d4e43,_0x2dcbdf,this[_0x5bac0d(-0x80,_0x14f93e._0x14f52c)+_0x17eda9(0x54f,_0x14f93e._0x3deec1)](),_0x373847)&&(this[_0x5bac0d(-_0x14f93e._0x50ffcf,0x55)](_0x4043b0[_0x5bac0d(-0x2a4,-0x1c8)]),this[_0x17eda9(_0x14f93e._0x1551f5,0x2a4)+_0x17eda9(0x47d,0x680)]());if(this[_0x5bac0d(-_0x14f93e._0x2fcbef,_0x14f93e._0x14f52c)+_0x17eda9(_0x14f93e._0xc96ca6,_0x14f93e._0x18be7b)]()){const _0xb0baca={};_0xb0baca[_0x5bac0d(0x1e,0x18c)+_0x5bac0d(-0x96,-_0x14f93e._0x8df858)]=!![],_0xb0baca['lastErro'+'r']=null,this['updateSn'+_0x5bac0d(_0x14f93e._0x5c39d3,0x173)](_0xb0baca),this[_0x17eda9(_0x14f93e._0x55345a,_0x14f93e._0x56bd3e)](_0x5bac0d(-_0x14f93e._0x477999,-0x2f)+_0x17eda9(_0x14f93e._0x142c81,0x21f)+'en\x20since'+_0x17eda9(0x338,0x2b8)+_0x17eda9(_0x14f93e._0x40a7e6,_0x14f93e._0x466c9d)+this[_0x5bac0d(-_0x14f93e._0x66e132,-_0x14f93e._0x36ec49)+_0x17eda9(_0x14f93e._0x389e40,_0x14f93e._0x2bad34)](this['gatewayC'+'onnected'+_0x17eda9(0x320,_0x14f93e._0x2c7584)])+(_0x5bac0d(-0x106,-0x19)+_0x17eda9(_0x14f93e._0x3fe7e8,0x3c1)+'d=')+this[_0x17eda9(_0x14f93e._0xedcd82,_0x14f93e._0x5f2630)+'andshake'+_0x17eda9(0x3c3,_0x14f93e._0x568b93)]);}this[_0x17eda9(0x5dd,_0x14f93e._0x4aa87e)+_0x17eda9(_0x14f93e._0x1998af,0x60d)+_0x17eda9(0x26f,_0x14f93e._0x5b6005)]();}this[_0x17eda9(_0x14f93e._0x55345a,0x45b)](_0x17eda9(_0x14f93e._0x59f90d,0x3e1)+'ntrol\x20ev'+_0x17eda9(0x391,_0x14f93e._0x5ca385)+_0x4eadcb+_0x17eda9(0x239,_0x14f93e._0x5c5f12)+_0x2dcbdf+(_0x17eda9(0x5ca,_0x14f93e._0x1d74dc)+_0x17eda9(_0x14f93e._0x12274f,0x4af)+_0x17eda9(0x38b,0x4c1))+this[_0x17eda9(_0x14f93e._0xaceaaa,0x336)+_0x5bac0d(_0x14f93e._0x10efa4,0x193)](this[_0x17eda9(_0x14f93e._0x148da4,0x4e4)+_0x5bac0d(_0x14f93e._0x54e117,0xf)+_0x17eda9(0x231,0x9b)])+_0x17eda9(_0x14f93e._0x39f6bc,0x153)+this['pendingG'+_0x5bac0d(0x1df,_0x14f93e._0x3930cd)+'ssages'][_0x5bac0d(_0x14f93e._0x3577d3,-0x4e)]);return;}if(_0x4eadcb===_0x4043b0[_0x17eda9(_0x14f93e._0x30b026,0x177)]){this[_0x17eda9(_0x14f93e._0xedcd82,_0x14f93e._0x1e580b)+'andshake'+_0x17eda9(0x3c3,_0x14f93e._0x2a8b2d)]=![];const _0x3ede11={};_0x3ede11[_0x5bac0d(-0x396,-0x22b)+_0x5bac0d(-0x141,_0x14f93e._0x51a357)]=0x0,this['updateSn'+_0x5bac0d(_0x14f93e._0x1d96a1,0x173)](_0x3ede11),this[_0x5bac0d(0x45,0x144)+'cesRecen'+'t'](),this[_0x17eda9(_0x14f93e._0x1420c3,0x538)+'GatewayI'+_0x17eda9(0x2f7,_0x14f93e._0x186d02)](_0x17eda9(0x59a,0x6bf)+_0x5bac0d(0xb1,_0x14f93e._0x42cd9a)+_0x5bac0d(0xce,0xbc)),this[_0x5bac0d(-_0x14f93e._0x5c6a29,_0x14f93e._0x1ae086)](_0x17eda9(_0x14f93e._0x59f90d,_0x14f93e._0x348d08)+_0x17eda9(_0x14f93e._0x1f86ae,_0x14f93e._0x94d98b)+_0x5bac0d(-0x218,-0x126)+_0x17eda9(0x322,0x2d2)+_0x5bac0d(-_0x14f93e._0xa1d098,-0x17a)+_0x17eda9(0x2eb,_0x14f93e._0xe248af)+_0x5bac0d(_0x14f93e._0x18f486,0x13f)+_0x5bac0d(-0x2,-0x1f3)+this[_0x17eda9(0x255,0xa3)+_0x5bac0d(-_0x14f93e._0x89b5a6,_0x14f93e._0x20ddb6)](this[_0x5bac0d(_0x14f93e._0x23920,_0x14f93e._0x29222d)+_0x5bac0d(-_0x14f93e._0x4ac686,_0x14f93e._0x851dbe)+_0x17eda9(_0x14f93e._0x24f307,0x2d9)])+('\x20sinceGa'+_0x17eda9(0x46d,_0x14f93e._0x435424)+_0x17eda9(0x34e,0x2c8))+this[_0x5bac0d(-0x209,-_0x14f93e._0x36ec49)+_0x17eda9(0x605,0x47f)](this[_0x17eda9(0x5fe,0x6cc)+_0x17eda9(0x2a6,_0x14f93e._0x27c5d2)+'AtMs']));return;}function _0x17eda9(_0x21e0b0,_0x1db556){return _0x6eb3(_0x1db556,_0x21e0b0-0x37d);}function _0x5bac0d(_0x45cee8,_0x3e65db){return _0x6eb3(_0x45cee8,_0x3e65db- -_0x4fdd1b._0x236dbf);}this[_0x5bac0d(_0x14f93e._0x1fb7c0,0x55)](_0x17eda9(0x3e5,_0x14f93e._0x20ac6f)+_0x5bac0d(0x1c0,_0x14f93e._0x33d43c)+'ent='+_0x4eadcb);}[_0x11b7ab(-0x1ea,-0x41)+_0x11b7ab(0x1f0,0xc4)+_0x11b7ab(-0x104,0xc2)+'sage'](_0x200f81){const _0x4923b4={_0x93c8bd:0x5d1,_0x694c18:0x8ef,_0xebb851:0x417,_0x3f2fb8:0x3d5,_0x5e1223:0x8c4,_0x493353:0x4cc,_0x3e663c:0x723,_0x343581:0x4bc,_0x262935:0x49c,_0x4b5b1a:0x847,_0x4b35dd:0x6ba,_0x70f20c:0x64d,_0x2c41c1:0x439,_0x1307cf:0x2e5,_0x2e93e7:0x78b,_0x52dc0f:0x5f9,_0x2a7a31:0x4ae,_0x28a887:0x57f,_0x5dfb2b:0x7f9,_0x58e25c:0x667,_0x4d1d12:0x643,_0x3b330b:0x5c6,_0x251106:0x642,_0x10bc85:0x7f2,_0x1f7267:0x375,_0x5b91c9:0x3ce,_0x41ff60:0x7e5,_0x461363:0x74b,_0x1450ae:0x306,_0x1d9fe9:0x338,_0x571ca6:0x515,_0x494f03:0x6fe,_0x4ef292:0x512,_0x53fdb6:0x671,_0x326e28:0x630,_0x585241:0x3de,_0x1efac1:0x46d,_0x62a9ad:0x838,_0xf7fece:0x3ec,_0x4cb948:0x3a4,_0x1b5864:0x82f,_0x3a2d51:0x668,_0x5755a6:0x781,_0x337b94:0x5fe,_0x4e9f78:0x8cf,_0x396c4e:0x691,_0x4c7580:0x7b3,_0x59d62d:0x532,_0x1bdf23:0x62d},_0x27c63a={_0x3d6d07:0x3c5};function _0x275497(_0x226ad9,_0x1bf41e){return _0x11b7ab(_0x226ad9,_0x1bf41e-0x576);}const _0x5ed001={'jpbGv':function(_0x2f0ae1,_0x3a406f,_0x56d2e0){return _0x2f0ae1(_0x3a406f,_0x56d2e0);},'aDLMi':function(_0x4b5e58,_0x299441){return _0x4b5e58(_0x299441);}},_0xccf874=_0x200f81[_0x526339(0x74a,_0x4923b4._0x93c8bd)]===_0x526339(0x470,0x3d5)&&isConnectHandshakeRequest(_0x200f81[_0x275497(0x3ca,0x586)]);if(_0x200f81[_0x275497(_0x4923b4._0x694c18,0x782)]===_0x526339(0x599,0x3d5)){const _0x41c125=summarizeJsonFrame(_0x200f81[_0x526339(_0x4923b4._0xebb851,_0x4923b4._0x3f2fb8)]);_0x41c125&&this[_0x275497(_0x4923b4._0x5e1223,0x702)](_0x526339(0x37a,_0x4923b4._0x493353)+_0x275497(0x88f,_0x4923b4._0x3e663c)+_0x41c125+('\x20handsha'+_0x526339(_0x4923b4._0x343581,_0x4923b4._0x262935))+_0xccf874+('\x20gateway'+_0x275497(_0x4923b4._0x4b5b1a,_0x4923b4._0x4b35dd))+this['isGatewa'+_0x526339(_0x4923b4._0x70f20c,0x5d9)]()+_0x526339(_0x4923b4._0x2c41c1,0x2de)+this[_0x275497(_0x4923b4._0x1307cf,0x488)+_0x275497(_0x4923b4._0x2e93e7,0x86c)+_0x526339(0x42a,_0x4923b4._0x52dc0f)][_0x526339(0x60d,_0x4923b4._0x2a7a31)]);}const _0x1e410e=this[_0x526339(0x180,0x2bf)+'ocket'];if(!_0x1e410e||_0x1e410e[_0x275497(0x6d0,_0x4923b4._0x28a887)+'te']!==_0x17e531[_0x526339(0x592,0x556)]){this[_0x526339(_0x4923b4._0x5dfb2b,_0x4923b4._0x58e25c)+_0x526339(0x7c2,_0x4923b4._0x4d1d12)+_0x526339(0x1b3,0x2f9)]();if(_0x5ed001[_0x526339(0x781,_0x4923b4._0x3b330b)](shouldDropStaleConnectAfterGatewayReopen,_0x5ed001[_0x275497(_0x4923b4._0x251106,_0x4923b4._0x10bc85)](Boolean,_0x1e410e&&_0x1e410e[_0x526339(_0x4923b4._0x1f7267,_0x4923b4._0x5b91c9)+'te']===_0x17e531['OPEN']),_0xccf874)){this[_0x275497(0x636,0x702)]('stale\x20co'+_0x275497(_0x4923b4._0x41ff60,_0x4923b4._0x461363)+_0x526339(_0x4923b4._0x1450ae,_0x4923b4._0x1d9fe9)+'ter\x20gate'+_0x275497(0x331,_0x4923b4._0x571ca6)+_0x526339(0x61a,0x601)+_0x526339(_0x4923b4._0x494f03,_0x4923b4._0x4ef292)+_0x526339(0x63f,_0x4923b4._0x53fdb6)+_0x526339(0x6b8,_0x4923b4._0x326e28));return;}this[_0x275497(_0x4923b4._0x585241,0x59c)+_0x275497(0x4a2,_0x4923b4._0x1efac1)+_0x526339(0x3e9,0x3a4)+'e'](_0x200f81);return;}if(!this[_0x526339(_0x4923b4._0x62a9ad,0x67e)+_0x275497(0x6e9,0x513)+_0x275497(0x71e,0x5fe)]){if(!_0xccf874){this[_0x526339(_0x4923b4._0xf7fece,0x3eb)+'ingGatew'+_0x526339(0x3db,_0x4923b4._0x4cb948)+'e'](_0x200f81);return;}this[_0x275497(0x633,_0x4923b4._0x1b5864)+_0x275497(_0x4923b4._0x3a2d51,0x513)+_0x275497(_0x4923b4._0x5755a6,_0x4923b4._0x337b94)]=!![],this[_0x275497(_0x4923b4._0x4e9f78,0x702)](_0x275497(_0x4923b4._0x396c4e,0x67e)+_0x275497(0x5ea,0x790)+'e\x20starte'+_0x275497(0x687,_0x4923b4._0x4c7580)+'='+this[_0x275497(_0x4923b4._0x59d62d,0x488)+'atewayMe'+_0x526339(_0x4923b4._0x1bdf23,0x5f9)]['length']);}function _0x526339(_0x85ad8b,_0x2c8242){return _0x11b7ab(_0x85ad8b,_0x2c8242-_0x27c63a._0x3d6d07);}this[_0x526339(0x4c7,0x5e9)+_0x526339(0x532,0x5ec)](_0x200f81);}[_0x11b7ab(0x31d,0x2a2)+_0x6eb3(0x3a7,0x23c)+'nected'](){const _0xeee769={_0x12a3c1:0x31c,_0x32e8ba:0x2a1,_0x46e46e:0x856,_0x5bf7e0:0x244,_0x181af9:0x33e,_0x5d105a:0x457,_0x51f719:0xdc,_0xbc239e:0x232,_0x293761:0x743,_0x22c8e3:0x6c8,_0x534f64:0xbb,_0x13c1c7:0x576,_0x4cea01:0x3da,_0x22688e:0x62,_0x39d720:0x21c,_0x48027b:0x3a3,_0x3bc78c:0x39c,_0x59e0f9:0x3fa,_0x56c8e4:0x3b1,_0x4ae1a1:0x39c,_0x3bb451:0x289,_0x550aa3:0x2a2,_0x565a6a:0x2d6,_0x3f2983:0x149,_0x271673:0x150,_0x2a636e:0xe0,_0x29a903:0x80,_0x21b36f:0x14b,_0x4d12fc:0x5e7,_0x3d8e5b:0x563},_0x556fea={_0x2877a1:0x237,_0x1dd640:0x527,_0x2bfa10:0x304,_0x4c5eaa:0x35d,_0x2020fa:0x12b,_0x12b941:0x12c,_0x1aae4a:0x2c5,_0x38e4f4:0x1fb,_0x3e1b40:0x15e,_0x3b3ae5:0x2e,_0x3cb8d5:0x4db,_0x432b23:0x36f,_0x2fe010:0x24,_0x3dcae5:0x40,_0xcacc59:0x2f5,_0x169271:0x1c8,_0x294ea2:0x6d,_0x871a15:0xb0,_0x2297e0:0x333,_0xf25b3:0x2b,_0x57d903:0x1dd,_0x44df21:0x1ea,_0x509150:0x26c,_0x1d6a01:0x2e4,_0x4f815a:0x26f,_0x23f19a:0x5b,_0xbdd6d1:0x2d},_0x1c431e={_0x82a8c0:0xcd},_0x3910c8={_0x2af393:0x42c},_0xd4e262={_0x1e6683:0x591,_0x472f77:0xe0,_0x5b2cb1:0x9b},_0x55dc3e={_0x53f050:0x1f3,_0xe8c558:0x425},_0x66f3c3={_0x3bacd4:0x673,_0x25f72c:0x57a,_0x1270f3:0x67d,_0x1fd184:0xef,_0x1d6a30:0x602,_0x1f98db:0x3f4,_0x4231bf:0x232,_0x261d45:0x71,_0x3969db:0x193,_0x549612:0x408,_0x189255:0x486,_0x337c8f:0x4b2,_0xa963a2:0x9e,_0x2a4ffc:0x8a,_0x2a872b:0xcb,_0x3fc9bf:0x3d0,_0x3c8280:0x669,_0x337405:0x2c0,_0x29706e:0x74e,_0x79a63f:0x615,_0x52f6f6:0x318},_0x5d270d={_0x3e1954:0x40f};function _0x10599e(_0x3a09b4,_0x525377){return _0x6eb3(_0x525377,_0x3a09b4-0x19);}const _0x28cb08={'oskFP':function(_0x296eaf,_0x2ffc57){return _0x296eaf(_0x2ffc57);},'lWXWM':function(_0x5ed097,_0x3ad5e7){return _0x5ed097===_0x3ad5e7;},'OPOww':function(_0x4bb8bd,_0x5a236a){return _0x4bb8bd*_0x5a236a;},'Nheau':_0x6fc4ff(0x22d,_0xeee769._0x12a3c1),'OYbaA':'close'};if(this[_0x6fc4ff(0x74a,0x5e6)]||!this[_0x10599e(0x21,-0x15a)+_0x10599e(0x284,_0xeee769._0x32e8ba)]()||this[_0x6fc4ff(_0xeee769._0x46e46e,0x6ad)+'onnectin'+'g']||this[_0x6fc4ff(0x561,0x584)+_0x10599e(0x1eb,_0xeee769._0x5bf7e0)]()||!this[_0x6fc4ff(_0xeee769._0x181af9,0x483)+_0x6fc4ff(0x6a6,0x513)]())return;this[_0x6fc4ff(0x2c3,_0xeee769._0x5d105a)+_0x10599e(-_0xeee769._0x51f719,-_0xeee769._0xbc239e)+_0x6fc4ff(_0xeee769._0x293761,_0xeee769._0x22c8e3)](_0x10599e(-_0xeee769._0x534f64,-0x1d6)+_0x10599e(0x274,0x17f)+'t_reques'+_0x10599e(0x1ca,-0xe)),this['gatewayC'+'onnectin'+'g']=!![],this[_0x6fc4ff(0x681,_0xeee769._0x13c1c7)](_0x6fc4ff(_0xeee769._0x4cea01,0x4f2)+_0x6fc4ff(0x612,0x51d)+'start\x20ur'+'l='+this[_0x10599e(-_0xeee769._0x22688e,-_0xeee769._0x39d720)][_0x6fc4ff(_0xeee769._0x48027b,_0xeee769._0x3bc78c)+'rl']);const _0x211b66=new _0x17e531(this[_0x6fc4ff(_0xeee769._0x59e0f9,_0xeee769._0x56c8e4)][_0x6fc4ff(0x49d,_0xeee769._0x4ae1a1)+'rl'],{'maxPayload':_0x28cb08[_0x10599e(-0x87,-_0xeee769._0x3bb451)](0x19,0x400)*0x400});this[_0x6fc4ff(_0xeee769._0x550aa3,0x2e4)+_0x10599e(_0xeee769._0x565a6a,0x138)]=_0x211b66,_0x211b66['once'](_0x28cb08[_0x10599e(_0xeee769._0x3f2983,0x2)],()=>{if(this[_0xc3cb99(_0x66f3c3._0x3bacd4,_0x66f3c3._0x25f72c)]||this['gatewayS'+_0xc3cb99(0x75c,_0x66f3c3._0x1270f3)]!==_0x211b66){_0x211b66[_0x4ff91d(0x12,_0x66f3c3._0x1fd184)]();return;}this['gatewayC'+'onnectin'+'g']=![],this[_0xc3cb99(_0x66f3c3._0x1d6a30,0x637)+'andshake'+_0xc3cb99(_0x66f3c3._0x1f98db,0x406)]=![],this[_0xc3cb99(0x4fc,0x641)+'onnected'+_0x4ff91d(-0x40,-_0x66f3c3._0x4231bf)]=Date[_0x4ff91d(_0x66f3c3._0x261d45,0x1c7)]();const _0xd2f8e3={};_0xd2f8e3[_0x4ff91d(0x29e,0x171)+_0xc3cb99(0x222,0x2e9)]=!![],_0xd2f8e3[_0x4ff91d(0x6,-_0x66f3c3._0x3969db)+'r']=null;function _0xc3cb99(_0x544e2b,_0xd86e58){return _0x6fc4ff(_0x544e2b,_0xd86e58- -0x6c);}this['updateSn'+_0x4ff91d(0x285,0x351)](_0xd2f8e3);function _0x4ff91d(_0x455475,_0x4c6a2a){return _0x6fc4ff(_0x4c6a2a,_0x455475- -_0x5d270d._0x3e1954);}this[_0xc3cb99(0x342,0x50a)](_0xc3cb99(_0x66f3c3._0x549612,_0x66f3c3._0x189255)+_0xc3cb99(0x50b,_0x66f3c3._0x337c8f)+_0x4ff91d(_0x66f3c3._0xa963a2,-_0x66f3c3._0x2a4ffc)+_0x4ff91d(0x241,_0x66f3c3._0x2a872b)+'andMs='+this['elapsedS'+_0x4ff91d(0x2a5,_0x66f3c3._0x3fc9bf)](this[_0xc3cb99(_0x66f3c3._0x3c8280,0x680)+_0x4ff91d(0x121,_0x66f3c3._0x337405)+_0xc3cb99(0x23d,0x274)])),this[_0xc3cb99(_0x66f3c3._0x29706e,_0x66f3c3._0x79a63f)+'dingGate'+_0xc3cb99(0x395,0x4c6)+_0xc3cb99(_0x66f3c3._0x52f6f6,0x3bb)]();}),_0x211b66['on'](_0x10599e(0x8b,-0x53),(_0x5e496c,_0x46bf3e)=>{const _0x1bbce4={_0x2910c9:0xb4};function _0x43a8e4(_0x3e4703,_0x3b8ddf){return _0x6fc4ff(_0x3e4703,_0x3b8ddf-_0x1bbce4._0x2910c9);}function _0x1fa475(_0x19912c,_0x431990){return _0x6fc4ff(_0x431990,_0x19912c- -0x2b9);}this['handleGa'+_0x1fa475(_0x55dc3e._0x53f050,0x1fe)+_0x43a8e4(0x567,_0x55dc3e._0xe8c558)](_0x5e496c,_0x46bf3e);}),_0x211b66[_0x10599e(_0xeee769._0x271673,_0xeee769._0x2a636e)](_0x10599e(-_0xeee769._0x29a903,-_0xeee769._0x21b36f),_0x6ce3ab=>{const _0x20bee8={_0x3470a2:0x8};function _0x51a673(_0x5cfd8c,_0x30f2bf){return _0x6fc4ff(_0x30f2bf,_0x5cfd8c-_0x20bee8._0x3470a2);}function _0x377200(_0x494559,_0x2baeed){return _0x6fc4ff(_0x2baeed,_0x494559- -0x48a);}this['log'](_0x51a673(0x4fa,_0xd4e262._0x1e6683)+_0x377200(-_0xd4e262._0x472f77,-0xbd)+_0x28cb08[_0x377200(-_0xd4e262._0x5b2cb1,-0x11e)](String,_0x6ce3ab));});function _0x6fc4ff(_0x4f06c5,_0x58bca1){return _0x6eb3(_0x4f06c5,_0x58bca1-_0x3910c8._0x2af393);}_0x211b66[_0x6fc4ff(_0xeee769._0x4d12fc,_0xeee769._0x3d8e5b)](_0x28cb08['OYbaA'],(_0x2391d1,_0x3aa962)=>{const _0x5d8f3e={_0x402c9b:0x9f};this[_0x898d78(0x132,-0x62)+_0x3d99d9(0x236,_0x556fea._0x2877a1)]===_0x211b66&&(this[_0x898d78(0xc4,-0x62)+_0x898d78(_0x556fea._0x1dd640,0x3a3)]=null);this[_0x3d99d9(_0x556fea._0x2bfa10,0x1fb)+'onnectin'+'g']=![];function _0x898d78(_0x3c6081,_0x48222b){return _0x10599e(_0x48222b-_0x1c431e._0x82a8c0,_0x3c6081);}function _0x3d99d9(_0x4f0476,_0x3e1887){return _0x10599e(_0x3e1887- -_0x5d8f3e._0x402c9b,_0x4f0476);}this[_0x898d78(0x25f,_0x556fea._0x4c5eaa)+_0x3d99d9(0x4b,-_0x556fea._0x2020fa)+_0x898d78(-0x1c,_0x556fea._0x12b941)]=![],this[_0x3d99d9(_0x556fea._0x1aae4a,_0x556fea._0x38e4f4)+_0x3d99d9(-0xfe,-0x15d)+_0x898d78(_0x556fea._0x3e1b40,0x89)]=null,this[_0x3d99d9(-0xc0,-_0x556fea._0x3b3ae5)+'apshot']({'gatewayConnected':![],'lastError':_0x28cb08[_0x898d78(_0x556fea._0x3cb8d5,_0x556fea._0x432b23)](_0x2391d1,0x3e8)?this[_0x3d99d9(-0x41,_0x556fea._0x2fe010)]['lastErro'+'r']:_0x3d99d9(-0xeb,_0x556fea._0x3dcae5)+_0x3d99d9(_0x556fea._0xcacc59,_0x556fea._0x169271)+(_0x3aa962[_0x898d78(0x3be,0x20e)]()||_0x2391d1)}),this['log'](_0x3d99d9(-0x174,0x40)+_0x3d99d9(0x315,0x23d)+_0x898d78(-_0x556fea._0x294ea2,_0x556fea._0x871a15)+'e='+_0x2391d1+'\x20reason='+(_0x3aa962['toString']()||_0x3d99d9(0x15b,0x5c))+(_0x898d78(0x3e5,_0x556fea._0x2297e0)+_0x3d99d9(-0x149,-_0x556fea._0xf25b3)+_0x3d99d9(-_0x556fea._0x57d903,-0x78))+this['elapsedS'+'ince'](this['clientDe'+_0x898d78(0x3af,_0x556fea._0x44df21)+_0x3d99d9(-_0x556fea._0x509150,-0x1d2)])),this[_0x898d78(_0x556fea._0x1d6a01,_0x556fea._0x4f815a)+_0x3d99d9(-_0x556fea._0x23f19a,_0x556fea._0xbdd6d1)+'econnect']();});}[_0x6eb3(0x140,-0xa2)+_0x6eb3(0x1ee,0x80)+_0x11b7ab(-0xcf,-0x79)](_0x160712,_0x38b3bc){const _0x432fcb={_0x50a29c:0xf1,_0x34ed0a:0x190,_0x34c988:0x3df,_0x549615:0x2ac,_0x4526db:0x190,_0xdfbb55:0x139,_0x482ca3:0x185,_0x2a8a3e:0x411,_0x1d3b9d:0x342,_0x482618:0x129,_0x2ed255:0xdc,_0x233833:0x1fd,_0x129398:0x9,_0x5cfa2d:0x5a,_0x4717f2:0x1ae,_0x146ad3:0x153,_0x17532a:0x6f,_0x3c8dd4:0x160,_0x514535:0x1b4,_0x1a1861:0x2c},_0x2a8418={_0x5d8038:0x138},_0x2edb39={};_0x2edb39[_0x39fda4(-_0x432fcb._0x50a29c,-_0x432fcb._0x34ed0a)]=function(_0x4b38a9,_0x395b51){return _0x4b38a9!==_0x395b51;};const _0x3f47e0=_0x2edb39,_0x16f180=this['relaySoc'+_0x396475(_0x432fcb._0x34c988,_0x432fcb._0x549615)];function _0x396475(_0x5924d5,_0x4b6ee1){return _0x11b7ab(_0x5924d5,_0x4b6ee1-0x8c);}if(!_0x16f180||_0x3f47e0[_0x39fda4(-0x114,-_0x432fcb._0x4526db)](_0x16f180[_0x396475(-_0x432fcb._0xdfbb55,0x95)+'te'],_0x17e531[_0x39fda4(0x1ec,0x59)]))return;if(_0x38b3bc){_0x16f180[_0x39fda4(0x183,_0x432fcb._0x482ca3)](normalizeBinary(_0x160712));return;}const _0x33639e=normalizeText(_0x160712);if(_0x33639e==null)return;const _0x4b4160=summarizeJsonFrame(_0x33639e);_0x4b4160&&this['log']('gateway\x20'+_0x396475(_0x432fcb._0x2a8a3e,_0x432fcb._0x1d3b9d)+_0x4b4160+(_0x396475(0x4ec,0x31b)+_0x396475(0x158,_0x432fcb._0x482618)+_0x396475(0x2e5,_0x432fcb._0x2ed255))+this[_0x39fda4(-0x3c4,-0x21e)+_0x39fda4(-0x16,0x192)](this[_0x396475(0x1f1,0x38e)+'mandStar'+'tedAtMs'])+('\x20sinceGa'+_0x396475(_0x432fcb._0x233833,0x1be)+'nMs=')+this[_0x396475(_0x432fcb._0x129398,-_0x432fcb._0x5cfa2d)+_0x39fda4(0x395,0x192)](this['gatewayC'+_0x396475(-0xab,-_0x432fcb._0x129398)+_0x39fda4(-_0x432fcb._0x4717f2,-_0x432fcb._0x146ad3)]));const _0x132b06=parsePairingRequestFromError(_0x33639e);_0x132b06&&this['addPendi'+_0x396475(_0x432fcb._0x17532a,0x90)+'quest'](_0x132b06);const _0x33e1cb=parsePairResolvedEvent(_0x33639e);function _0x39fda4(_0x40fe6d,_0x5cb482){return _0x11b7ab(_0x40fe6d,_0x5cb482- -_0x2a8418._0x5d8038);}_0x33e1cb&&this[_0x39fda4(_0x432fcb._0x3c8dd4,-0xa7)+_0x396475(0x3ad,_0x432fcb._0x514535)+'esolved'](_0x33e1cb[_0x39fda4(_0x432fcb._0x1a1861,0x186)+'d'],_0x33e1cb[_0x39fda4(-0x13,-0x183)]),_0x16f180[_0x39fda4(0x221,_0x432fcb._0x482ca3)](_0x33639e);}[_0x6eb3(0x3b8,0x255)+_0x6eb3(-0x1e4,-0xdb)+_0x11b7ab(0x2e6,0x148)+_0x11b7ab(0x1e3,0x3d)](){const _0x54ac84={_0xe97d44:0x5ea,_0x38f574:0x6b8,_0x57b043:0x288,_0x4976f1:0x2cb,_0x4ed5f6:0x16a,_0x290bb4:0x35f,_0x6025a5:0x15a,_0x1766c1:0x3d3,_0x461d3f:0x6a4,_0x5efc7a:0x4a2,_0x5345ca:0x6,_0x174026:0x59d,_0x46a879:0x3c9,_0x4d8b9a:0x62b,_0x14435c:0x4b8,_0x37adea:0x2cd,_0x13524e:0xa2,_0x2a4f81:0x790,_0xc90f25:0x5ed},_0x593ca2={_0x12836d:0x3fb},_0x2e3409={_0x209d39:0xab},_0x3016e7={};_0x3016e7[_0x3c3497(0x698,_0x54ac84._0xe97d44)]=function(_0x22d9e3,_0x46c098){return _0x22d9e3!==_0x46c098;};const _0x52c179=_0x3016e7,_0x1fb4d0=this['gatewayS'+_0x3c3497(0x524,_0x54ac84._0x38f574)];if(!_0x1fb4d0||_0x1fb4d0[_0x3c3497(0x3d4,0x3c2)+'te']!==_0x17e531['OPEN'])return;const _0x1b1761=[],_0x5eb40d=[...this[_0x3c3497(_0x54ac84._0x57b043,_0x54ac84._0x4976f1)+_0x445c78(_0x54ac84._0x4ed5f6,_0x54ac84._0x290bb4)+'ssages']];this[_0x3c3497(_0x54ac84._0x6025a5,0x2cb)+'atewayMe'+_0x445c78(0x3cd,0x29d)]=[],this[_0x3c3497(_0x54ac84._0x1766c1,0x545)](_0x445c78(0x2dd,0x171)+_0x3c3497(_0x54ac84._0x461d3f,0x54f)+'eued='+_0x5eb40d[_0x3c3497(0x5b6,_0x54ac84._0x5efc7a)]);function _0x445c78(_0x2ef8a4,_0x1f246a){return _0x6eb3(_0x2ef8a4,_0x1f246a-_0x2e3409._0x209d39);}function _0x3c3497(_0x404caa,_0x3f6a95){return _0x6eb3(_0x404caa,_0x3f6a95-_0x593ca2._0x12836d);}for(const _0x55f24c of _0x5eb40d){if(!this['gatewayH'+_0x445c78(0x11,_0x54ac84._0x5345ca)+'Started']){if(_0x52c179[_0x3c3497(_0x54ac84._0x174026,0x5ea)](_0x55f24c['kind'],_0x3c3497(0x42d,_0x54ac84._0x46a879))||!isConnectHandshakeRequest(_0x55f24c['text'])){_0x1b1761[_0x3c3497(0x589,_0x54ac84._0x4d8b9a)](_0x55f24c);continue;}this[_0x3c3497(_0x54ac84._0x14435c,0x672)+'andshake'+'Started']=!![];}this[_0x445c78(0x308,0x28d)+_0x445c78(_0x54ac84._0x37adea,0x290)](_0x55f24c);}this[_0x445c78(_0x54ac84._0x13524e,-0x85)+_0x445c78(0x238,0x35f)+_0x3c3497(_0x54ac84._0x2a4f81,_0x54ac84._0xc90f25)]=_0x1b1761;}[_0x6eb3(0x196,0x1e2)+_0x11b7ab(0x1fa,0x227)](_0x45ccca){const _0x2c8fa5={_0x56cbc2:0x65,_0x118c04:0x75c,_0xcc2e20:0x569,_0xbdaa35:0x31e,_0x4c2ebc:0x319,_0x2ba18e:0x4a6,_0x3fded3:0x66e,_0x40838a:0x354,_0x1dc4fe:0x2f4,_0x5332ff:0x727,_0x5dfbf8:0x2cd,_0x571003:0x72b,_0x3f9b9d:0x738,_0x17992f:0x5a5},_0x146c78={_0x5bc76e:0x45d},_0x545068=this[_0x33c143(0x20f,_0x2c8fa5._0x56cbc2)+_0x250c05(_0x2c8fa5._0x118c04,_0x2c8fa5._0xcc2e20)];function _0x33c143(_0x1ab4a8,_0x126c7c){return _0x11b7ab(_0x126c7c,_0x1ab4a8-0x315);}function _0x250c05(_0x35f908,_0x3f6253){return _0x11b7ab(_0x3f6253,_0x35f908-_0x146c78._0x5bc76e);}if(!_0x545068||_0x545068[_0x33c143(_0x2c8fa5._0xbdaa35,_0x2c8fa5._0x4c2ebc)+'te']!==_0x17e531[_0x33c143(_0x2c8fa5._0x2ba18e,_0x2c8fa5._0x3fded3)]){this['pushPend'+_0x250c05(_0x2c8fa5._0x40838a,0x543)+_0x33c143(_0x2c8fa5._0x1dc4fe,0x14f)+'e'](_0x45ccca);return;}if(_0x45ccca[_0x250c05(0x669,_0x2c8fa5._0x5332ff)]===_0x33c143(0x325,_0x2c8fa5._0x5dfbf8)){_0x545068['send'](_0x45ccca['text']);return;}_0x545068[_0x250c05(0x71a,_0x2c8fa5._0x571003)](_0x45ccca[_0x250c05(_0x2c8fa5._0x3f9b9d,_0x2c8fa5._0x17992f)]);}[_0x6eb3(0x29a,0xbc)+_0x6eb3(0x367,0x280)+'st'](_0x5292bb,_0x117b3f){const _0x291094={_0x1166b7:0x217,_0x2e6986:0x2b5,_0x3a094a:0xee,_0x1a3070:0x64,_0x35336d:0x3b4,_0x3e9e04:0x68,_0x5ce3ac:0x14b,_0x5c9c73:0xd5,_0xddf867:0x26a,_0x4a52ec:0x217,_0x157e9f:0x12f},_0x265d48={_0x41483d:0x1ea},_0x2a5bc1={_0x1721fa:0x53},_0x3bcd5d={};function _0x117f91(_0x2a36ae,_0x5d1c40){return _0x6eb3(_0x5d1c40,_0x2a36ae-_0x2a5bc1._0x1721fa);}_0x3bcd5d['dSdIv']='text';const _0x210adf=_0x3bcd5d,_0x3b4aec=JSON[_0x117f91(_0x291094._0x1166b7,0x241)+'y']({'type':_0x3eefbd(0x101,_0x291094._0x2e6986),'id':_0x117f91(_0x291094._0x3a094a,-_0x291094._0x1a3070)+_0x2b14da(),'method':_0x5292bb,'params':_0x117b3f}),_0x2c7aca={};_0x2c7aca[_0x3eefbd(_0x291094._0x35336d,0x4f3)]=_0x210adf[_0x117f91(-0xb3,_0x291094._0x3e9e04)];function _0x3eefbd(_0x3b606e,_0xb7d95c){return _0x6eb3(_0xb7d95c,_0x3b606e-_0x265d48._0x41483d);}_0x2c7aca[_0x117f91(0x21,0x11f)]=_0x3b4aec,this[_0x117f91(-0x30,_0x291094._0x5ce3ac)+_0x117f91(_0x291094._0x5c9c73,0x9a)+_0x3eefbd(_0x291094._0xddf867,_0x291094._0x4a52ec)+_0x3eefbd(_0x291094._0x157e9f,0x3d)](_0x2c7aca);}[_0x6eb3(0x178,-0x24)+_0x11b7ab(0x152,0x142)](){const _0x43d684={_0x2622ff:0x188,_0x59df86:0x2fb,_0x393e5f:0x22a,_0x1a8346:0x230,_0x4c1ed7:0xc7,_0x3f5318:0x2f8,_0x2c1de7:0x22a,_0x506582:0x490,_0x3359a1:0x4fa,_0x23b09d:0x1e4,_0x5351b8:0x89,_0x480629:0x490,_0x5dc7dd:0x2fe,_0x4f6078:0x138,_0x2fafb4:0x1b2,_0x352a5b:0x2aa},_0x5d966a={_0x4e86f5:0x1cd};this['cancelGa'+_0x5e9556(-0x5c,-_0x43d684._0x2622ff)+'eClose']();function _0x5e9556(_0x1b4110,_0x3dc010){return _0x11b7ab(_0x1b4110,_0x3dc010- -0xd5);}this[_0x5e9556(-0x4,-0x1db)+_0x5e9556(_0x43d684._0x59df86,_0x43d684._0x393e5f)]?.[_0x9b2faf(0x204,_0x43d684._0x1a8346)](),this[_0x9b2faf(_0x43d684._0x4c1ed7,-0x83)+_0x5e9556(_0x43d684._0x3f5318,_0x43d684._0x2c1de7)]=null;function _0x9b2faf(_0x3cade2,_0x74b121){return _0x11b7ab(_0x74b121,_0x3cade2-_0x5d966a._0x4e86f5);}this[_0x9b2faf(_0x43d684._0x506582,_0x43d684._0x3359a1)+_0x9b2faf(0x159,0x7e)+'g']=![],this[_0x5e9556(0x1a5,_0x43d684._0x23b09d)+_0x5e9556(_0x43d684._0x5351b8,-0x138)+'Started']=![],this[_0x9b2faf(_0x43d684._0x480629,_0x43d684._0x5dc7dd)+_0x9b2faf(_0x43d684._0x4f6078,0x259)+_0x9b2faf(_0x43d684._0x2fafb4,_0x43d684._0x352a5b)]=null;}[_0x11b7ab(0x26,0x1cb)+'GatewayI'+'dleClose'](_0x3bcd0e){const _0x58eea8={_0x1db98c:0x4c7,_0xb22a9f:0x478,_0x11596e:0x42a,_0x2798ca:0x1e,_0x5ed31d:0x4f,_0x3c79b8:0x4ab,_0x27c0a9:0x3cb,_0x5a8ca7:0x30a,_0x3f0d4b:0x283,_0x276666:0x7e,_0x2b7452:0x26a,_0x52b980:0x173,_0x3c424d:0xda,_0x504064:0x3a4,_0x5e3c74:0x36,_0x30e57f:0x98,_0x4a33d3:0x6af,_0xec9903:0x4bc,_0x3d01aa:0x22d,_0x5aef15:0xa8,_0x50889e:0x15e,_0x49dd1d:0x3db,_0x39fc5b:0x3ef,_0x3d28d4:0x32e,_0x528c55:0x184,_0xd4f0cb:0x5b4,_0x4f7898:0x4a6,_0x45f3d2:0x97,_0x2e78ec:0xb4,_0x33a413:0x450,_0x1a1f41:0x2de,_0x465e69:0x5e3,_0x62613b:0x61,_0x2bf1d8:0x2f,_0x22528d:0x6a,_0x58810e:0x2dc,_0x384741:0x20a,_0xb53ae:0x1ec,_0x331fa0:0x373,_0x17f463:0x4df,_0x4ee157:0x454,_0x1cfb22:0x4ce,_0x2a3aa3:0x335,_0x29e2d8:0x65d,_0x53ec24:0x5ec,_0x5fed80:0x319,_0x2c5210:0x92,_0x58da23:0x3b,_0x19978f:0x395,_0x123aab:0x243,_0x358fac:0x2de},_0xf16e47={_0x54e64e:0x579,_0x3392e6:0x6b5,_0x12df6f:0x6b2,_0x3cff40:0x74a,_0x2a1f51:0x6a7,_0x679de:0x17a,_0x25b73d:0x1cb,_0x1870e9:0x26c,_0x503535:0x1b4,_0x55c5ca:0x365,_0x1f308f:0xc6,_0x828cd7:0x22b,_0x2ae4e7:0x3ca,_0x47fea9:0x3a4,_0x430bbf:0x15f,_0x1477db:0x6ba},_0x255f53={_0x2e06de:0x256},_0x3bcf87={_0x2f8942:0x98},_0x2d6171={'qElZB':_0x1c91c6(_0x58eea8._0x1db98c,_0x58eea8._0xb22a9f)+_0xaa3417(0x2a0,0x339),'MZpTn':_0x1c91c6(0x465,_0x58eea8._0x11596e)+'idle\x20clo'+_0xaa3417(-_0x58eea8._0x2798ca,_0x58eea8._0x5ed31d)+_0x1c91c6(_0x58eea8._0x3c79b8,_0x58eea8._0x27c0a9)+_0xaa3417(0x3f4,_0x58eea8._0x5a8ca7)+_0xaa3417(0xa4,_0x58eea8._0x3f0d4b)+_0xaa3417(0x1cc,_0x58eea8._0x276666)+'d','ZxKJs':function(_0x2f34bd,_0x3831f7){return _0x2f34bd(_0x3831f7);}};this[_0xaa3417(0x3a0,0x2cf)+'etryTime'+'r']&&(_0x2d6171['ZxKJs'](clearTimeout,this[_0xaa3417(_0x58eea8._0x2b7452,0x2cf)+_0xaa3417(_0x58eea8._0x52b980,_0x58eea8._0x3c424d)+'r']),this[_0xaa3417(0x307,0x2cf)+_0x1c91c6(_0x58eea8._0x504064,0x3a6)+'r']=null);function _0xaa3417(_0x31cdf6,_0x473327){return _0x6eb3(_0x31cdf6,_0x473327-_0x3bcf87._0x2f8942);}this[_0xaa3417(_0x58eea8._0x5e3c74,-_0x58eea8._0x30e57f)+'atewayMe'+_0x1c91c6(0x3b8,0x556)]=[];const _0x2d82e9={};_0x2d82e9[_0x1c91c6(0x2d8,0x22e)+'unt']=0x0,this[_0x1c91c6(0x3b2,0x3bc)+_0xaa3417(0x2c3,0x300)](_0x2d82e9);if(!this[_0x1c91c6(_0x58eea8._0x4a33d3,_0x58eea8._0xec9903)+_0xaa3417(_0x58eea8._0x3d01aa,0x26a)]()&&!this[_0xaa3417(0x2e2,0x319)+_0xaa3417(-_0x58eea8._0x5aef15,-0x1e)+'g']){this['log'](_0xaa3417(-0x4c,_0x58eea8._0x50889e)+_0x1c91c6(_0x58eea8._0x49dd1d,0x43d)+_0x1c91c6(_0x58eea8._0x39fc5b,0x46c)+_0xaa3417(_0x58eea8._0x3d28d4,_0x58eea8._0x528c55)+_0x1c91c6(_0x58eea8._0xd4f0cb,_0x58eea8._0x4f7898)+'n='+_0x3bcd0e),this['clientDe'+_0xaa3417(0x232,0x19c)+_0xaa3417(_0x58eea8._0x45f3d2,-_0x58eea8._0x2e78ec)]=null;return;}if(this[_0x1c91c6(_0x58eea8._0x33a413,0x50f)+_0x1c91c6(0x11a,_0x58eea8._0x1a1f41)+'Timer']){this['log'](_0x1c91c6(_0x58eea8._0x465e69,_0x58eea8._0x11596e)+_0xaa3417(-_0x58eea8._0x62613b,0xa7)+_0xaa3417(_0x58eea8._0x2bf1d8,-_0x58eea8._0x22528d)+_0xaa3417(0x186,0x2ff)+_0xaa3417(0x8e,0x176)+_0xaa3417(_0x58eea8._0x58810e,_0x58eea8._0x384741)+_0x3bcd0e);return;}const _0x224e46=this[_0x1c91c6(0x29a,0x2e9)]['gatewayI'+'dleDisco'+'nnectDel'+'ayMs']??GATEWAY_IDLE_DISCONNECT_DELAY_MS;function _0x1c91c6(_0x3f56ae,_0x2c8e95){return _0x6eb3(_0x3f56ae,_0x2c8e95-0x364);}this[_0x1c91c6(0x54f,0x4ae)](_0xaa3417(0x299,0x15e)+_0x1c91c6(_0x58eea8._0xb53ae,_0x58eea8._0x331fa0)+'se\x20sched'+_0xaa3417(0xf0,0x191)+_0x1c91c6(0x606,0x4a8)+_0x224e46+_0x1c91c6(0x4f0,_0x58eea8._0x17f463)+_0x3bcd0e+(_0xaa3417(0x31d,0x29c)+_0x1c91c6(0x44e,_0x58eea8._0x4ee157)+_0x1c91c6(_0x58eea8._0x1cfb22,_0x58eea8._0x2a3aa3))+this[_0xaa3417(0x163,-0x90)+_0x1c91c6(_0x58eea8._0x29e2d8,_0x58eea8._0x53ec24)](this[_0xaa3417(0x49d,_0x58eea8._0x5fed80)+_0xaa3417(_0x58eea8._0x2c5210,-0x3f)+_0xaa3417(0x18f,_0x58eea8._0x58da23)])),this[_0xaa3417(_0x58eea8._0x19978f,_0x58eea8._0x123aab)+_0x1c91c6(0x259,_0x58eea8._0x358fac)+'Timer']=setTimeout(()=>{function _0x85cca2(_0x3b99b5,_0x2f868a){return _0x1c91c6(_0x3b99b5,_0x2f868a-_0x255f53._0x2e06de);}const _0x11946a=_0x2d6171[_0x85cca2(0x545,_0xf16e47._0x54e64e)][_0x1abaa6(0x2ff,0x22d)]('|');let _0x468b0a=0x0;function _0x1abaa6(_0x2dd74f,_0x5bdbee){return _0x1c91c6(_0x2dd74f,_0x5bdbee- -0x280);}while(!![]){switch(_0x11946a[_0x468b0a++]){case'0':this['log'](_0x1abaa6(-0xf,0x1aa)+'closed\x20a'+'fter\x20idl'+_0x85cca2(_0xf16e47._0x3392e6,_0xf16e47._0x12df6f)+_0x85cca2(0x7ad,0x7bb)+_0x3bcd0e);continue;case'1':this[_0x85cca2(_0xf16e47._0x3cff40,0x765)+_0x85cca2(0x67a,0x534)+'Timer']=null;continue;case'2':if(this[_0x85cca2(_0xf16e47._0x2a1f51,0x611)+_0x1abaa6(_0xf16e47._0x679de,_0xf16e47._0x25b73d)]()){this[_0x1abaa6(0x3e5,0x22e)](_0x2d6171[_0x1abaa6(0x152,_0xf16e47._0x1870e9)]);return;}continue;case'3':const _0x344f9e={};_0x344f9e[_0x1abaa6(_0xf16e47._0x503535,_0xf16e47._0x55c5ca)+_0x85cca2(0x5bf,0x4e3)]=![],_0x344f9e['clientCo'+_0x1abaa6(_0xf16e47._0x1f308f,_0xf16e47._0x828cd7)]=0x0,this[_0x85cca2(0x546,0x612)+_0x85cca2(0x919,0x822)](_0x344f9e);continue;case'4':this[_0x1abaa6(_0xf16e47._0x2ae4e7,_0xf16e47._0x47fea9)+_0x1abaa6(_0xf16e47._0x430bbf,0x1e8)+'tedAtMs']=null;continue;case'5':this[_0x1abaa6(0x2af,0xc0)+_0x85cca2(0x87c,_0xf16e47._0x1477db)]();continue;}break;}},_0x224e46);}[_0x6eb3(0x2,0x2b)+_0x6eb3(0x5d,-0xf5)+_0x6eb3(0x49c,0x29c)](_0x11f4c9){const _0x47c059={_0x1ff921:0x183,_0x53427c:0x23b,_0x53ee28:0x321,_0x287d18:0x262,_0x13d8c2:0x1cd,_0x28662a:0x138,_0x5a5a41:0x21b};function _0x4cb71f(_0x42ea4d,_0x589c22){return _0x6eb3(_0x42ea4d,_0x589c22-0x206);}function _0x457d72(_0x214f4d,_0x5ee48f){return _0x6eb3(_0x214f4d,_0x5ee48f- -0x1dc);}if(!this[_0x457d72(-0x6,-0x31)+_0x457d72(-0x86,-0x262)+_0x457d72(-_0x47c059._0x1ff921,-_0x47c059._0x53427c)])return;clearTimeout(this[_0x457d72(0x63,-0x31)+'dleClose'+'Timer']),this['gatewayI'+_0x457d72(-_0x47c059._0x53ee28,-_0x47c059._0x287d18)+'Timer']=null,_0x11f4c9&&this[_0x4cb71f(0x4fb,0x350)]('gateway\x20'+_0x457d72(-0x46,-_0x47c059._0x13d8c2)+_0x457d72(-0x70,-0x20)+_0x4cb71f(0x51,_0x47c059._0x28662a)+_0x4cb71f(0x56,_0x47c059._0x5a5a41)+_0x11f4c9);}[_0x11b7ab(0x346,0x1cb)+_0x6eb3(-0xc8,0x93)+_0x6eb3(0x34b,0x18f)](){const _0x3a2d52={_0x8d26bf:0x74d,_0x51486e:0x194,_0x54a277:0x74b,_0xe4024d:0x2b9,_0x4f2013:0x3cb,_0x49674d:0x5aa,_0x1236ce:0x2e,_0x186293:0x1ff,_0x226991:0x13c,_0x5a487f:0xa8,_0x41d097:0x5b4,_0x43c894:0x30f,_0x156262:0x45a,_0x203410:0x369,_0x127f08:0x6ca},_0x500d88={_0x18fa6f:0x56f,_0x31b9c5:0x1b7,_0x3f5495:0x4b8,_0x112e99:0x714},_0x380436={_0x1b3e65:0x4f0},_0x450c74={'EIyde':function(_0x3eacb6,_0x285aac,_0x512e90){return _0x3eacb6(_0x285aac,_0x512e90);}};function _0x406242(_0x2ea6f0,_0x5c6f73){return _0x6eb3(_0x5c6f73,_0x2ea6f0-_0x380436._0x1b3e65);}function _0x335d6e(_0x3c6aa5,_0x38edac){return _0x6eb3(_0x3c6aa5,_0x38edac-0x4d);}if(this['stopped']||this[_0x406242(0x74b,_0x3a2d52._0x8d26bf)+_0x335d6e(_0x3a2d52._0x51486e,0x98)])return;const _0x1388e5=this['options'][_0x406242(_0x3a2d52._0x54a277,0x5dc)+_0x335d6e(0x3e1,_0x3a2d52._0xe4024d)+_0x406242(_0x3a2d52._0x4f2013,_0x3a2d52._0x49674d)]??RECONNECT_BASE_DELAY_MS,_0x54efd3=this[_0x335d6e(-0x51,-_0x3a2d52._0x1236ce)][_0x335d6e(_0x3a2d52._0x186293,0x2a8)+'tMaxDela'+_0x335d6e(0x1c2,_0x3a2d52._0x226991)]??RECONNECT_MAX_DELAY_MS,_0x1ccbd6=Math[_0x335d6e(_0x3a2d52._0x5a487f,0x73)](_0x54efd3,_0x1388e5*Math[_0x406242(_0x3a2d52._0x41d097,0x675)](0x1,this[_0x406242(0x4bc,_0x3a2d52._0x43c894)+'empt']));this[_0x335d6e(0x333,0x197)](_0x406242(0x451,0x3cf)+_0x335d6e(0x292,0x13e)+_0x406242(0x679,0x58b)+_0x406242(_0x3a2d52._0x156262,_0x3a2d52._0x203410)+'s='+_0x1ccbd6),this[_0x406242(0x74b,0x747)+_0x406242(0x53b,0x4f2)]=_0x450c74[_0x406242(_0x3a2d52._0x127f08,0x6ac)](setTimeout,()=>{const _0x33f4d7={_0x4c0255:0x498};this[_0x33d487(0x3c7,_0x500d88._0x18fa6f)+_0x33d487(_0x500d88._0x31b9c5,0x27e)]=null;function _0x49d9eb(_0x46fdba,_0x3c2302){return _0x335d6e(_0x46fdba,_0x3c2302-_0x33f4d7._0x4c0255);}function _0x33d487(_0x102bca,_0x48d23e){return _0x335d6e(_0x48d23e,_0x102bca-0x11f);}void this[_0x33d487(0x414,_0x500d88._0x3f5495)+_0x49d9eb(0x6a0,_0x500d88._0x112e99)]();},_0x1ccbd6);}[_0x6eb3(0x114,0x189)+_0x11b7ab(0x52,0xf5)+_0x6eb3(-0x96,-0x111)](){const _0x4ea6a2={_0x3a2b99:0x3d4,_0x3625b5:0x225,_0x77d444:0x8f,_0x1fb555:0x73,_0x1afdbb:0x3ff,_0x3378a4:0x2bd,_0x2e5a39:0x48f,_0x5ebad4:0x10,_0x5a34ad:0x6e5,_0x3ad74b:0x497,_0x42b547:0x1c1,_0x1f9f81:0x44f},_0x5b54c8={_0x28b7b3:0x655,_0x4d70f2:0x6ce,_0x5301c4:0x6f6,_0x2064ea:0x15b},_0x371345={_0x360297:0x366},_0x473178={'SbdKb':function(_0x205592,_0x576a68,_0x20abdb){return _0x205592(_0x576a68,_0x20abdb);}};if(this[_0x2aa30a(_0x4ea6a2._0x3a2b99,_0x4ea6a2._0x3625b5)]||this[_0x23015e(0x794,0x5df)+_0x23015e(0x215,0x3ea)+'r']||!this[_0x2aa30a(_0x4ea6a2._0x77d444,_0x4ea6a2._0x1fb555)+_0x2aa30a(0x3e4,0x2d6)]()||!this[_0x23015e(0x5ae,_0x4ea6a2._0x1afdbb)+_0x23015e(_0x4ea6a2._0x3378a4,_0x4ea6a2._0x2e5a39)]())return;function _0x23015e(_0x4df514,_0x701b33){return _0x11b7ab(_0x4df514,_0x701b33-_0x371345._0x360297);}const _0x468f41=this[_0x2aa30a(0x9d,-_0x4ea6a2._0x5ebad4)][_0x2aa30a(0x2e7,0x2a2)+_0x23015e(_0x4ea6a2._0x5a34ad,0x584)+_0x23015e(0x431,_0x4ea6a2._0x3ad74b)]??GATEWAY_RETRY_DELAY_MS;function _0x2aa30a(_0x550244,_0x49cd77){return _0x11b7ab(_0x550244,_0x49cd77-0x29);}this[_0x2aa30a(0x102,0x2a2)+_0x2aa30a(_0x4ea6a2._0x42b547,0xad)+'r']=_0x473178[_0x23015e(_0x4ea6a2._0x1f9f81,0x535)](setTimeout,()=>{const _0x233f1c={_0x55287c:0x1ed};function _0x1528cf(_0x4e8f6c,_0x379fbf){return _0x2aa30a(_0x379fbf,_0x4e8f6c-0x38a);}this[_0x8a2cef(0xf1,0xb5)+_0x8a2cef(0x1b,-0x140)+'r']=null;function _0x8a2cef(_0x42beeb,_0x349026){return _0x2aa30a(_0x42beeb,_0x349026- -_0x233f1c._0x55287c);}this[_0x1528cf(_0x5b54c8._0x28b7b3,_0x5b54c8._0x4d70f2)+_0x1528cf(0x631,_0x5b54c8._0x5301c4)+_0x1528cf(0x2e7,_0x5b54c8._0x2064ea)]();},_0x468f41);}[_0x6eb3(-0x2a,0x18a)+_0x6eb3(0x4a6,0x2b9)](){const _0x5c3369={_0x8c19dc:0x469,_0x33242f:0x660,_0x4e88bf:0x577,_0xac9bef:0x647,_0x1b71e9:0x5b5,_0xaf69d4:0x601,_0x3d02f4:0x432,_0x32bd33:0x6ab,_0x5882c2:0x63b,_0x5f7e82:0x7c3},_0x6c1834={_0x177615:0x1d2,_0x382b5e:0x405,_0x42d752:0x2d9,_0x1e0317:0x143,_0x57959f:0xa,_0x238e1f:0x3e5,_0x3742ef:0x48,_0x1b3483:0x13e,_0x3f9904:0x35,_0x5cca09:0xf3,_0x18a55a:0x11b,_0x378e3c:0x8b},_0x45bb23={};_0x45bb23['uHHlQ']=_0x492ed3(0x530,_0x5c3369._0x8c19dc)+_0x492ed3(_0x5c3369._0x33242f,_0x5c3369._0x4e88bf)+_0x2e573e(_0x5c3369._0xac9bef,0x623)+'t';const _0x4ae64d=_0x45bb23;function _0x492ed3(_0x16ea04,_0x555547){return _0x6eb3(_0x16ea04,_0x555547-0x516);}this[_0x2e573e(0x5a9,0x6d9)+_0x492ed3(0x500,0x58b)]();function _0x2e573e(_0x1b0ff0,_0x18c2ac){return _0x6eb3(_0x18c2ac,_0x1b0ff0-0x397);}this[_0x492ed3(_0x5c3369._0x1b71e9,_0x5c3369._0xaf69d4)+_0x492ed3(0x755,0x561)]=setInterval(()=>{const _0x5b77e6={_0x27c5fd:0x3a3},_0xfe10c5={_0x2227be:0x85},_0x4df7b6=this['relaySoc'+_0x4140ec(_0x6c1834._0x177615,0x73)];if(!_0x4df7b6||_0x4df7b6[_0x5b9d15(_0x6c1834._0x382b5e,_0x6c1834._0x42d752)+'te']!==_0x17e531[_0x4140ec(_0x6c1834._0x1e0317,-_0x6c1834._0x57959f)])return;const _0x27baba=this['options']['heartbea'+_0x5b9d15(_0x6c1834._0x238e1f,0x411)+'Ms']??HEARTBEAT_TIMEOUT_MS;function _0x5b9d15(_0x5018c8,_0x2c8481){return _0x2e573e(_0x2c8481- -_0xfe10c5._0x2227be,_0x5018c8);}function _0x4140ec(_0x24aafd,_0x4735e3){return _0x2e573e(_0x24aafd- -_0x5b77e6._0x27c5fd,_0x4735e3);}if(Date[_0x4140ec(_0x6c1834._0x3742ef,-0x130)]()-this[_0x5b9d15(0x3a3,0x2d3)+'yActivit'+'yMs']>_0x27baba){this[_0x4140ec(_0x6c1834._0x1b3483,0x173)](_0x4ae64d[_0x4140ec(-_0x6c1834._0x3f9904,_0x6c1834._0x5cca09)]),_0x4df7b6[_0x4140ec(-_0x6c1834._0x18a55a,-0x207)+'e']();return;}_0x4df7b6[_0x5b9d15(_0x6c1834._0x378e3c,0x253)]();},this[_0x492ed3(_0x5c3369._0x3d02f4,0x49b)][_0x492ed3(_0x5c3369._0x32bd33,0x601)+_0x492ed3(0x6e4,_0x5c3369._0x5882c2)+_0x2e573e(0x626,_0x5c3369._0x5f7e82)]??HEARTBEAT_INTERVAL_MS);}['stopHear'+_0x11b7ab(-0x112,0xb7)](){const _0x31044f={_0x4a235f:0x16e,_0x528c2a:0x248,_0x2d366d:0x105},_0x165317={_0x4a38ea:0x1f0};function _0x594db1(_0x2ac166,_0x6bfa42){return _0x6eb3(_0x2ac166,_0x6bfa42- -_0x165317._0x4a38ea);}function _0x2dfd56(_0x3620da,_0x26065b){return _0x6eb3(_0x26065b,_0x3620da- -0x61);}const _0x30cfb1={'BtpXX':function(_0x4736c7,_0x2a9aaf){return _0x4736c7(_0x2a9aaf);}};this[_0x2dfd56(0x8a,_0x31044f._0x4a235f)+_0x594db1(-_0x31044f._0x528c2a,-0x1a5)]&&(_0x30cfb1[_0x594db1(-0x3ad,-0x302)](clearInterval,this[_0x594db1(-0x24a,-_0x31044f._0x2d366d)+_0x594db1(-0x123,-0x1a5)]),this['heartbea'+'tTimer']=null);}[_0x11b7ab(0xdf,0x26)+_0x6eb3(-0x32c,-0x14b)+_0x11b7ab(0x120,-0x21)+'e'](_0x576690){const _0x45c0f6={_0x27731d:0x20b,_0x27f0ef:0x7,_0x9ac4da:0x242,_0xdd7626:0x42f,_0x520e8a:0x1f9,_0x52f677:0x5d,_0x3e4c2a:0x19a,_0x3d5e58:0x2f7,_0x101983:0xb5,_0x5879b6:0x155,_0x11c6a3:0x104,_0x4926be:0xe0,_0x536e49:0x9f,_0xa667:0x1ab,_0x3b2938:0x152},_0x1cd685={_0x235aac:0x50},_0x546c39={_0x56f342:0x1d3};this[_0x34206e(-0x4e5,-0x303)+_0x34206e(_0x45c0f6._0x27731d,0xe1)+'ssages'][_0x21ea02(0xf7,-_0x45c0f6._0x27f0ef)]>=MAX_PENDING_GATEWAY_MESSAGES&&this[_0x34206e(-0x4bb,-0x303)+'atewayMe'+_0x21ea02(0x242,0x364)]['shift']();function _0x34206e(_0x258216,_0x1dd15e){return _0x6eb3(_0x258216,_0x1dd15e- -_0x546c39._0x56f342);}function _0x21ea02(_0xc6019a,_0x419137){return _0x6eb3(_0x419137,_0xc6019a-_0x1cd685._0x235aac);}this['pendingG'+_0x21ea02(0x304,0x12e)+_0x21ea02(_0x45c0f6._0x9ac4da,_0x45c0f6._0xdd7626)][_0x34206e(_0x45c0f6._0x520e8a,_0x45c0f6._0x52f677)](_0x576690),this[_0x21ea02(_0x45c0f6._0x3e4c2a,_0x45c0f6._0x3d5e58)](_0x34206e(_0x45c0f6._0x101983,-0x10d)+_0x34206e(-0x21,-_0x45c0f6._0x5879b6)+_0x34206e(-0x13b,-_0x45c0f6._0x11c6a3)+this[_0x21ea02(-_0x45c0f6._0x4926be,_0x45c0f6._0x536e49)+_0x34206e(0x6b,0xe1)+_0x21ea02(_0x45c0f6._0x9ac4da,_0x45c0f6._0xa667)][_0x21ea02(0xf7,_0x45c0f6._0x3b2938)]);}[_0x11b7ab(0x44f,0x2a3)+'onnectSt'+_0x11b7ab(-0x1a2,-0xb0)](_0x30b816,_0x1e19c3){const _0x2f4f0d={_0x124120:0x1ea,_0x30b3bb:0x9e,_0x52662d:0x1dc,_0x489cba:0x3dc,_0x55836b:0x2e7,_0x436199:0x14b,_0x164e78:0x467,_0x3970aa:0x206,_0x3a3b7e:0x267,_0x336b35:0x19d,_0x14dbc1:0x135,_0x23f2fd:0x46,_0x2e5ad5:0x92,_0x337e99:0x10a,_0x7aeb1c:0x229},_0xca039={_0x120e3d:0x4e},_0x765362={_0x359a5d:0x18f},_0xfb94ce=Date[_0x376f96(_0x2f4f0d._0x124120,0x225)]();function _0x376f96(_0x1911a5,_0x4d0c5d){return _0x11b7ab(_0x1911a5,_0x4d0c5d-_0x765362._0x359a5d);}function _0x37355b(_0x4821bb,_0x29b778){return _0x11b7ab(_0x29b778,_0x4821bb- -_0xca039._0x120e3d);}const _0x3b0357=new Map(this[_0x37355b(_0x2f4f0d._0x30b3bb,_0x2f4f0d._0x52662d)][_0x37355b(0xe6,0x122)+_0x376f96(_0x2f4f0d._0x489cba,_0x2f4f0d._0x55836b)]['map'](_0x18b2f9=>[_0x18b2f9['id'],{..._0x18b2f9}])),_0x53691c=_0x3b0357[_0x37355b(0xbc,-_0x2f4f0d._0x436199)](_0x30b816)??{'id':_0x30b816,'label':_0x1e19c3,'state':_0x376f96(_0x2f4f0d._0x164e78,0x2c3)+'d','lastSeenMs':_0xfb94ce};_0x53691c[_0x376f96(0x2fa,_0x2f4f0d._0x3970aa)]=_0x1e19c3,_0x53691c['state']=_0x37355b(0xe6,_0x2f4f0d._0x3a3b7e)+'d',_0x53691c[_0x37355b(0x1fd,_0x2f4f0d._0x336b35)+'Ms']=_0xfb94ce,_0x3b0357['set'](_0x30b816,_0x53691c);const _0x57c708=[..._0x3b0357[_0x37355b(_0x2f4f0d._0x14dbc1,0x2a5)]()][_0x376f96(_0x2f4f0d._0x23f2fd,_0x2f4f0d._0x2e5ad5)]((_0x387d46,_0x4d75d9)=>_0x4d75d9[_0x376f96(0x52e,0x3da)+'Ms']-_0x387d46['lastSeen'+'Ms'])[_0x376f96(0x4af,0x2fe)](0x0,MAX_DEVICE_DETAILS),_0x407a1e={};_0x407a1e['connecte'+_0x37355b(_0x2f4f0d._0x337e99,-0x39)]=_0x57c708,this[_0x376f96(0x28b,_0x2f4f0d._0x7aeb1c)+'apshot'](_0x407a1e);}[_0x11b7ab(0x304,0x27b)+_0x11b7ab(0x25e,0x155)+'t'](){const _0x2763e6={_0x412ba9:0x155,_0x3f4d7f:0x1a8,_0x5467c5:0xe9},_0x42f1be={_0x5e8a43:0x241};function _0x1664e5(_0x4aab20,_0x1b7595){return _0x11b7ab(_0x4aab20,_0x1b7595- -_0x42f1be._0x5e8a43);}function _0x1d0175(_0x333e12,_0x404ae1){return _0x11b7ab(_0x333e12,_0x404ae1-0x145);}this['updateSn'+_0x1664e5(0x15f,0x69)]({'connectedDevices':this[_0x1664e5(0x6,-_0x2763e6._0x412ba9)]['connecte'+_0x1664e5(-_0x2763e6._0x3f4d7f,-_0x2763e6._0x5467c5)][_0x1d0175(0x48d,0x327)](_0x2f07f7=>({..._0x2f07f7,'state':_0x1d0175(0x29c,0x1a4)}))});}[_0x6eb3(-0x2e7,-0x133)+_0x11b7ab(0x20b,0x4)+_0x11b7ab(0x38d,0x245)](_0x2f71d3){const _0x4b8b8d={_0x4682cc:0x145,_0x5438a3:0x4e0,_0x2a4056:0x3dd,_0x4c2c0a:0x1ca,_0xfb3437:0xb1,_0x4cd6b6:0x7e,_0x2859a9:0x4a1,_0x163726:0x599,_0x155b3a:0x315,_0x19e252:0x141,_0x4966d8:0x3e1,_0x2013eb:0x26b,_0x58b692:0x4b5,_0x61c873:0x1a7},_0x1388ac={_0x26990d:0x118},_0x7b8916={_0x225794:0x1f7};if(this['snapshot'][_0x568943(0x25e,0x448)+_0x3eeb3a(-0x342,-_0x4b8b8d._0x4682cc)+_0x568943(0x2ef,0x227)][_0x568943(_0x4b8b8d._0x5438a3,_0x4b8b8d._0x2a4056)](_0x5c788f=>_0x5c788f['requestI'+'d']===_0x2f71d3['requestI'+'d']))return;function _0x568943(_0x55aec1,_0x1563a4){return _0x11b7ab(_0x1563a4,_0x55aec1-_0x7b8916._0x225794);}function _0x3eeb3a(_0x44a250,_0x30335b){return _0x11b7ab(_0x44a250,_0x30335b- -_0x1388ac._0x26990d);}const _0x561702=[...this[_0x568943(0x2e3,0x2f8)]['pendingP'+_0x568943(_0x4b8b8d._0x4c2c0a,0x286)+_0x568943(0x2ef,0x3b0)],_0x2f71d3]['slice'](-MAX_PENDING_PAIR_REQUESTS),_0x3907f5={};_0x3907f5[_0x3eeb3a(0x120,-_0x4b8b8d._0xfb3437)+_0x3eeb3a(-0x84,-0x145)+_0x568943(0x2ef,0x4e6)]=_0x561702,this[_0x3eeb3a(0x68,-_0x4b8b8d._0x4cd6b6)+_0x568943(_0x4b8b8d._0x2859a9,_0x4b8b8d._0x163726)](_0x3907f5),this['options'][_0x3eeb3a(0x397,0x19d)+'gPairReq'+_0x3eeb3a(-_0x4b8b8d._0x155b3a,-_0x4b8b8d._0x19e252)]?.(_0x2f71d3),this['log']('pair\x20req'+_0x568943(_0x4b8b8d._0x4966d8,_0x4b8b8d._0x2013eb)+_0x3eeb3a(-0x3bb,-0x1f4)+_0x3eeb3a(-0x32,0x8b)+_0x2f71d3[_0x568943(_0x4b8b8d._0x58b692,0x41c)+'d']+('\x20deviceI'+'d=')+(_0x2f71d3['deviceId']||_0x3eeb3a(-_0x4b8b8d._0x61c873,-0x88)+'>'));}[_0x6eb3(0x18d,0x4f)+_0x6eb3(0xfe,0xe6)+_0x11b7ab(-0x15e,-0x83)](_0x41dba9,_0x81b496){const _0x55e794={_0x2aea13:0x143,_0x1f2ceb:0x1cc,_0x33c16a:0x13d,_0x3223c1:0xea,_0x305589:0x1c5,_0x19c997:0x184,_0x22ce77:0x2da},_0x3acde4={_0x45f6a9:0x63},_0x8359c3={_0x22972b:0x168};function _0x5c61f6(_0x235c48,_0x42ec47){return _0x6eb3(_0x42ec47,_0x235c48- -_0x8359c3._0x22972b);}function _0x4d1aeb(_0x2fcef1,_0x284558){return _0x6eb3(_0x284558,_0x2fcef1- -_0x3acde4._0x45f6a9);}const _0x53699e=this[_0x4d1aeb(0x47,-0x17e)][_0x5c61f6(-_0x55e794._0x2aea13,0x23)+_0x5c61f6(-0x1d7,-_0x55e794._0x1f2ceb)+'sts'][_0x4d1aeb(_0x55e794._0x33c16a,0x137)](_0x5b4a1b=>_0x5b4a1b[_0x5c61f6(0x114,0x1c3)+'d']===_0x41dba9?{..._0x5b4a1b,'status':_0x81b496===_0x4d1aeb(0xa7,0x248)||_0x81b496===_0x5c61f6(-0x132,-0x2bd)?_0x81b496:_0x5b4a1b['status']}:_0x5b4a1b),_0x490b8b={};_0x490b8b['pendingP'+'airReque'+_0x4d1aeb(0x53,-_0x55e794._0x3223c1)]=_0x53699e,this[_0x4d1aeb(-0xb,-0x4f)+_0x4d1aeb(0x205,_0x55e794._0x305589)](_0x490b8b),this['log']('pair\x20req'+_0x4d1aeb(_0x55e794._0x19c997,0x1be)+'olved\x20re'+_0x4d1aeb(0x1b3,_0x55e794._0x22ce77)+_0x41dba9+('\x20decisio'+'n=')+_0x81b496);}[_0x11b7ab(-0x47,0x9a)+_0x11b7ab(0x276,0x2aa)](_0x196fbc){const _0x2eb688={_0x5da190:0x21,_0x52d84c:0x58,_0x59d4de:0x9b},_0x15ad47={_0x58e5fb:0xc9},_0x5c8f49={_0x1a3ee3:0xaf};function _0x21b0a6(_0x371214,_0x40b5ce){return _0x6eb3(_0x40b5ce,_0x371214- -_0x5c8f49._0x1a3ee3);}Object['assign'](this[_0x21b0a6(-0x5,_0x2eb688._0x5da190)],_0x196fbc,{'lastUpdatedMs':Date[_0x4e7de0(-0x3,-0x75)]()});function _0x4e7de0(_0x3471ff,_0x4c1910){return _0x6eb3(_0x3471ff,_0x4c1910- -_0x15ad47._0x58e5fb);}this[_0x4e7de0(-_0x2eb688._0x52d84c,-0x144)][_0x4e7de0(0x27a,_0x2eb688._0x59d4de)]?.(this[_0x4e7de0(-0xb,0x12)+_0x4e7de0(0x311,0x12f)]());}['log'](_0x32e73c){const _0x21e239={_0x4c68cf:0x30f,_0x403e73:0x2c9,_0x460eb2:0x1f0},_0x1d2fbd={_0x150a3f:0x401},_0x2893cc={_0x51a6aa:0x348};function _0xe6a885(_0x461871,_0x3728b6){return _0x11b7ab(_0x3728b6,_0x461871-_0x2893cc._0x51a6aa);}function _0x5ebad6(_0x17ea2c,_0x7f9802){return _0x11b7ab(_0x7f9802,_0x17ea2c-_0x1d2fbd._0x150a3f);}this[_0xe6a885(_0x21e239._0x4c68cf,0x305)][_0xe6a885(_0x21e239._0x403e73,_0x21e239._0x460eb2)]?.(_0x32e73c);}[_0x6eb3(0x20d,0x8)+_0x11b7ab(0x11c,0x2ad)](){const _0x43bb14={_0x98c4d6:0x12e,_0x342ab0:0x4c3,_0x2a2d85:0x2ba,_0xe5546e:0x16b,_0x496726:0x179},_0x2a326a={_0x21b465:0x1c2};function _0x2ebf31(_0x2392b1,_0x1afc91){return _0x6eb3(_0x1afc91,_0x2392b1- -_0x2a326a._0x21b465);}function _0x3837ab(_0x38f18c,_0x1e6476){return _0x6eb3(_0x1e6476,_0x38f18c-0x2e5);}return this[_0x2ebf31(-_0x43bb14._0x98c4d6,-0x317)+_0x3837ab(_0x43bb14._0x342ab0,_0x43bb14._0x2a2d85)]?.[_0x2ebf31(-0x1fb,-_0x43bb14._0xe5546e)+'te']===_0x17e531[_0x2ebf31(-0x73,_0x43bb14._0x496726)];}['isGatewa'+'yOpen'](){const _0x2d3d8e={_0x4d25a5:0xa5,_0x421bfb:0x1ef},_0xa376b9={_0x790371:0xae};function _0x52cbd1(_0x14ddf4,_0x55856b){return _0x11b7ab(_0x14ddf4,_0x55856b- -_0xa376b9._0x790371);}function _0x51b297(_0x437dd2,_0x396871){return _0x11b7ab(_0x437dd2,_0x396871-0x57d);}return this['gatewayS'+'ocket']?.[_0x52cbd1(-0x252,-_0x2d3d8e._0x4d25a5)+'te']===_0x17e531[_0x52cbd1(_0x2d3d8e._0x421bfb,0xe3)];}[_0x11b7ab(0x18e,0x99)+_0x6eb3(-0x35,0xe7)](){const _0x26ef66={_0x32f1d3:0x3e9,_0x1bbacc:0x640,_0x5c7737:0x769,_0x5e85c6:0x729},_0x4e30bc={_0xe66564:0x4b5};function _0x5b1634(_0x24eb7b,_0x233d2c){return _0x6eb3(_0x24eb7b,_0x233d2c-_0x4e30bc._0xe66564);}function _0x368667(_0x13473b,_0x3fad2a){return _0x6eb3(_0x3fad2a,_0x13473b-0x537);}return this[_0x5b1634(_0x26ef66._0x32f1d3,0x55f)]['clientCo'+_0x368667(0x67e,0x867)]>0x0||this['pendingG'+_0x5b1634(_0x26ef66._0x1bbacc,_0x26ef66._0x5c7737)+_0x368667(_0x26ef66._0x5e85c6,0x6d1)]['length']>0x0;}[_0x11b7ab(0x2e8,0x22e)+_0x6eb3(-0x2e7,-0xf8)](){const _0x3c65d2={_0x56f225:0x44a,_0x4899a2:0x230,_0x1bc51b:0x51b,_0x55549f:0x70d,_0x15f201:0x45f,_0x507e03:0x441,_0xaf8db7:0x1de,_0x1ab4d3:0x5a7,_0x48df6b:0x65f,_0x137d12:0x30a};function _0x58b219(_0x2fdd7c,_0x360da9){return _0x6eb3(_0x2fdd7c,_0x360da9-0xbd);}const _0x283374={'NVHJD':function(_0x4a6031,_0x2eb9c6){return _0x4a6031(_0x2eb9c6);}};this['stopHear'+'tbeat']();this[_0x58b219(0x4ed,0x318)+_0x4de496(0x3e3,_0x3c65d2._0x56f225)]&&(_0x283374[_0x58b219(-_0x3c65d2._0x4899a2,-0x5a)](clearTimeout,this[_0x4de496(_0x3c65d2._0x1bc51b,0x65a)+_0x4de496(0x35c,0x44a)]),this[_0x4de496(_0x3c65d2._0x55549f,0x65a)+_0x4de496(_0x3c65d2._0x15f201,_0x3c65d2._0x56f225)]=null);this['gatewayR'+_0x4de496(0x521,_0x3c65d2._0x507e03)+'r']&&(clearTimeout(this[_0x58b219(_0x3c65d2._0xaf8db7,0x2f4)+_0x4de496(_0x3c65d2._0x1ab4d3,0x441)+'r']),this[_0x4de496(_0x3c65d2._0x48df6b,0x636)+'etryTime'+'r']=null);function _0x4de496(_0x26df4c,_0x5413bc){return _0x6eb3(_0x26df4c,_0x5413bc-0x3ff);}this[_0x4de496(0x3c4,0x42a)+_0x4de496(0x27a,_0x3c65d2._0x137d12)+'eClose']();}[_0x11b7ab(0xa9,-0xe6)+_0x6eb3(0x31e,0x288)](_0x4f7999){const _0x29c500={_0x307271:0x347,_0x23ece3:0x271},_0x2f3930={_0x435456:0x16e},_0x2c5849={_0x5c7a9f:0x228},_0x57fa22={};function _0x32d28d(_0x903f1e,_0x4bf2b9){return _0x11b7ab(_0x4bf2b9,_0x903f1e-_0x2c5849._0x5c7a9f);}_0x57fa22[_0x32d28d(_0x29c500._0x307271,_0x29c500._0x23ece3)]=function(_0x8913d4,_0x17ee62){return _0x8913d4-_0x17ee62;};function _0x479e7c(_0x44a4bf,_0x229662){return _0x11b7ab(_0x229662,_0x44a4bf- -_0x2f3930._0x435456);}const _0x27e18a=_0x57fa22;return _0x4f7999==null?null:Math[_0x32d28d(0x32e,0x257)](0x0,_0x27e18a['hAVDk'](Date[_0x32d28d(0x2be,0x16a)](),_0x4f7999));}};function shouldRecycleGatewayForFreshClient(_0x290c6a,_0x519207,_0x43c3e9,_0xd2eb59){return _0x43c3e9&&_0x519207>0x0&&(_0x290c6a===0x0||_0xd2eb59);}function _0x11b7ab(_0x4d6e79,_0x407a58){return _0x2e58(_0x407a58- -0x1a6,_0x4d6e79);}function summarizeJsonFrame(_0x1c91fa){const _0x59890e={_0x3be50e:0x542,_0x5bbd2d:0x630,_0x1ce656:0x56b,_0x3f76de:0x212,_0x323dd0:0x3b1,_0x30a303:0x441,_0x2002fe:0x2bf,_0x2fd128:0x4a7,_0x4ebf3b:0x303,_0x46c48a:0x2b7,_0x8b2901:0x452,_0x12ac62:0x1f8,_0x4010cf:0x99,_0xfe42ea:0x27b,_0x3b2910:0x46f,_0x414799:0x253,_0x1c1108:0x42c,_0x5ceb4f:0x1cc,_0x53ace9:0x1ba,_0x249645:0x39d,_0x4de527:0x29b,_0x57ce02:0x13c,_0x4154ca:0x102,_0x23683d:0xed,_0x2c244e:0x3ee,_0x47de33:0x40f,_0x1c1e36:0x57a,_0x551d9e:0x111,_0x4687be:0x26b,_0x197b5e:0x3c8,_0x22d71e:0x1c1,_0x4ee4c9:0x220,_0x26899f:0x675},_0x476622={_0x5b32fb:0x49a};function _0x1ef065(_0x34333b,_0x5a479e){return _0x6eb3(_0x5a479e,_0x34333b-0x1aa);}const _0x5e6136={};_0x5e6136['wEgFW']=_0x224afd(_0x59890e._0x3be50e,0x4e8)+'>';const _0x310659=_0x5e6136;function _0x224afd(_0x37ac06,_0x304c37){return _0x6eb3(_0x37ac06,_0x304c37-_0x476622._0x5b32fb);}try{const _0x4aa458=JSON[_0x224afd(0x6a9,0x4ba)](_0x1c91fa);if(_0x4aa458[_0x224afd(_0x59890e._0x5bbd2d,_0x59890e._0x1ce656)]===_0x224afd(_0x59890e._0x3f76de,_0x59890e._0x323dd0)&&typeof _0x4aa458[_0x224afd(0x4db,_0x59890e._0x30a303)]===_0x224afd(0x58e,0x3dd))return _0x224afd(_0x59890e._0x2002fe,_0x59890e._0x2fd128)+_0x1ef065(_0x59890e._0x4ebf3b,_0x59890e._0x46c48a)+_0x4aa458[_0x224afd(_0x59890e._0x8b2901,0x441)]+'\x20id='+(typeof _0x4aa458['id']==='string'?_0x4aa458['id']:_0x1ef065(_0x59890e._0x12ac62,_0x59890e._0x4010cf)+'>');if(_0x4aa458[_0x1ef065(_0x59890e._0xfe42ea,_0x59890e._0x3b2910)]===_0x224afd(_0x59890e._0x414799,_0x59890e._0x1c1108)&&typeof _0x4aa458[_0x1ef065(0x13c,_0x59890e._0x5ceb4f)]===_0x1ef065(0xed,0x7c))return _0x224afd(_0x59890e._0x53ace9,_0x59890e._0x249645)+_0x1ef065(0x3b7,_0x59890e._0x4de527)+_0x4aa458[_0x1ef065(_0x59890e._0x57ce02,_0x59890e._0x4154ca)];if(_0x4aa458[_0x1ef065(0x27b,0x2bd)]===_0x1ef065(0x3b4,0x4b1)){const _0x43fbb1=typeof _0x4aa458['id']===_0x1ef065(_0x59890e._0x23683d,-0x36)?_0x4aa458['id']:_0x310659['wEgFW'],_0x4a5046=_0x4aa458['ok']===!![]?_0x1ef065(_0x59890e._0x2c244e,0x576):_0x224afd(_0x59890e._0x47de33,_0x59890e._0x1c1e36),_0x117e64=typeof _0x4aa458[_0x1ef065(_0x59890e._0x551d9e,-0x97)]?.[_0x224afd(_0x59890e._0x4687be,_0x59890e._0x197b5e)]==='string'?_0x4aa458[_0x1ef065(0x111,_0x59890e._0x22d71e)][_0x1ef065(0xd8,0x1af)]:_0x1ef065(0x28c,0x93);return _0x224afd(_0x59890e._0x4ee4c9,0x3ef)+_0x43fbb1+_0x224afd(0x879,_0x59890e._0x26899f)+_0x4a5046+'\x20code='+_0x117e64;}return null;}catch{return null;}}function shouldDropStaleConnectAfterGatewayReopen(_0x84fca1,_0x4afc38){return!_0x84fca1&&_0x4afc38;}function buildRelayWsUrl(_0x51da74){const _0x29389c={_0x9a8250:0x31e,_0x50021a:0x390,_0x1c8045:0x4cd,_0xfb09eb:0x2bf,_0x52de22:0x41e,_0x1d3aee:0x715,_0x1b41f4:0x698,_0x45ce64:0x667,_0x14327d:0x814,_0x192cad:0x59b,_0x1bce8c:0x45,_0x58779e:0x57,_0x1ca064:0x44,_0x4d47e1:0x19d,_0x29615e:0x44d,_0x2c6465:0x3fc,_0x478656:0x7da,_0x4e98be:0x76,_0x9238bc:0x180,_0x33c844:0x721,_0x5bbeb5:0x948,_0xf446d2:0x264},_0x5addea={_0x55046f:0x4fb};function _0x4f7278(_0x2640e3,_0xd587da){return _0x6eb3(_0x2640e3,_0xd587da-_0x5addea._0x55046f);}const _0x3f1aaa={};_0x3f1aaa[_0xe5d42(-_0x29389c._0x9a8250,-_0x29389c._0x50021a)]='gateway';const _0x2dc8ad=_0x3f1aaa,_0x10a8eb=new URL(_0x51da74[_0xe5d42(-0x313,-0x398)]);(!_0x10a8eb[_0x4f7278(_0x29389c._0x1c8045,0x41e)]||_0x10a8eb[_0xe5d42(-_0x29389c._0xfb09eb,-0x225)]==='/')&&(_0x10a8eb[_0x4f7278(0x254,_0x29389c._0x52de22)]='/ws');_0x10a8eb[_0x4f7278(_0x29389c._0x1d3aee,_0x29389c._0x1b41f4)+_0x4f7278(0x46a,_0x29389c._0x45ce64)][_0x4f7278(_0x29389c._0x14327d,0x721)](_0x4f7278(_0x29389c._0x192cad,0x6a6)+'d',_0x51da74['gatewayI'+'d']),_0x10a8eb[_0xe5d42(-_0x29389c._0x1bce8c,-_0x29389c._0x58779e)+'rams'][_0xe5d42(_0x29389c._0x1ca064,_0x29389c._0x4d47e1)](_0x4f7278(_0x29389c._0x29615e,0x5e0),_0x2dc8ad[_0xe5d42(-_0x29389c._0x9a8250,-_0x29389c._0x2c6465)]),_0x10a8eb[_0x4f7278(_0x29389c._0x478656,_0x29389c._0x1b41f4)+_0xe5d42(-_0x29389c._0x4e98be,0xaf)][_0xe5d42(0x44,_0x29389c._0x9238bc)]('clientId',_0x51da74[_0x4f7278(0x3b6,0x4e3)+'Id']),_0x10a8eb['searchPa'+_0xe5d42(-0x76,-0x157)][_0x4f7278(0x590,_0x29389c._0x33c844)]('token',_0x51da74[_0xe5d42(-0x2ec,-0x467)+_0x4f7278(_0x29389c._0x5bbeb5,0x796)]);function _0xe5d42(_0x2caea0,_0x3e410){return _0x6eb3(_0x3e410,_0x2caea0- -0x1e2);}return _0x10a8eb[_0xe5d42(-0xba,-_0x29389c._0xf446d2)]();}function redactRelayWsUrl(_0x3c7c00){const _0x315638={_0x2088e0:0xb,_0x485e06:0x173,_0x5e8047:0x3e,_0x7bd60f:0x26a,_0x478477:0x21e,_0x1e5e56:0x3e,_0x12a9e5:0x2bc,_0x2405c1:0x6},_0x53355={_0x3f5242:0x170},_0x48c3c1=new URL(_0x3c7c00);_0x48c3c1[_0x476b3c(-_0x315638._0x2088e0,0x6f)+_0x476b3c(_0x315638._0x485e06,_0x315638._0x5e8047)][_0x4b7a45(0x6a,0x1cf)](_0x4b7a45(0x151,0x233))&&_0x48c3c1[_0x4b7a45(_0x315638._0x7bd60f,0x1fd)+_0x476b3c(_0x315638._0x478477,_0x315638._0x1e5e56)][_0x4b7a45(_0x315638._0x12a9e5,0x286)](_0x476b3c(0x1c9,0xa5),'<redacte'+'d>');function _0x4b7a45(_0x480a28,_0x1e3c24){return _0x11b7ab(_0x480a28,_0x1e3c24-0x1e);}function _0x476b3c(_0x17acec,_0x51f176){return _0x11b7ab(_0x17acec,_0x51f176- -_0x53355._0x3f5242);}return _0x48c3c1[_0x476b3c(0x7d,-_0x315638._0x2405c1)]();}function normalizeText(_0x59cc62){const _0x46239e={_0x20cdf5:0x498,_0x1cea43:0x240,_0x362284:0x24b,_0x1a39c4:0x2aa,_0x5c99e2:0x242,_0xcaff16:0x79,_0x4fa059:0x329,_0x31cda9:0x3de,_0x3a8a44:0x2c2,_0xeaf4be:0x3b8,_0x5d3452:0x1ce,_0x1df5fa:0x3b7,_0x1091b3:0x5a},_0x356cc1={_0x470d3c:0x1e3},_0x58dc68={};function _0x3b8f3b(_0x2b4943,_0x160ca9){return _0x11b7ab(_0x2b4943,_0x160ca9-0x2c6);}_0x58dc68['lrdDI']=function(_0x4a541c,_0x5a85e6){return _0x4a541c===_0x5a85e6;},_0x58dc68[_0x3b8f3b(0x59f,_0x46239e._0x20cdf5)]=_0x3b8f3b(_0x46239e._0x1cea43,_0x46239e._0x362284);const _0x53828f=_0x58dc68;function _0x54d2a1(_0x189ce5,_0x4baabd){return _0x11b7ab(_0x189ce5,_0x4baabd- -_0x356cc1._0x470d3c);}if(_0x53828f[_0x3b8f3b(_0x46239e._0x1a39c4,_0x46239e._0x5c99e2)](typeof _0x59cc62,_0x53828f['eEaTP']))return _0x59cc62;if(Buffer['isBuffer'](_0x59cc62))return _0x59cc62[_0x54d2a1(-0xa0,-_0x46239e._0xcaff16)](_0x3b8f3b(_0x46239e._0x4fa059,_0x46239e._0x31cda9));if(Array[_0x3b8f3b(_0x46239e._0x3a8a44,0x355)](_0x59cc62))return Buffer[_0x3b8f3b(_0x46239e._0xeaf4be,_0x46239e._0x5d3452)](_0x59cc62)[_0x3b8f3b(0x61d,0x430)](_0x3b8f3b(0x4ef,0x3de));if(_0x59cc62 instanceof ArrayBuffer)return Buffer[_0x3b8f3b(_0x46239e._0x1df5fa,0x26d)](_0x59cc62)[_0x54d2a1(-_0x46239e._0x1091b3,-0x79)]('utf8');return null;}function normalizeBinary(_0x280c86){const _0x55382d={_0x2c8705:0x613,_0x3714fd:0x111,_0xe126c4:0x3d5,_0x377594:0x26b,_0x246311:0x42b},_0x128a56={_0x56c656:0x3a9},_0x5deb79={};_0x5deb79[_0x2ebbe3(_0x55382d._0x2c8705,0x5b4)]=_0x2ebbe3(_0x55382d._0x3714fd,0x249);const _0x3d71ea=_0x5deb79;if(Buffer[_0x2ebbe3(_0x55382d._0xe126c4,0x362)](_0x280c86))return _0x280c86;if(typeof _0x280c86===_0x3d71ea['qXznS'])return Buffer[_0x2ebbe3(0xbd,_0x55382d._0x377594)](_0x280c86,_0x2ebbe3(0x2a1,0x3dc));function _0x95cf06(_0x5799bd,_0x323828){return _0x11b7ab(_0x323828,_0x5799bd-_0x128a56._0x56c656);}if(Array['isArray'](_0x280c86))return Buffer[_0x95cf06(0x2b1,_0x55382d._0x246311)](_0x280c86);function _0x2ebbe3(_0x494ace,_0x1f49d7){return _0x11b7ab(_0x494ace,_0x1f49d7-0x2c4);}return Buffer['from'](_0x280c86);}function readRecentCliLogs(_0x45e35f){const _0x65e7a1={_0x5eedb2:0xac,_0x28d855:0x123,_0x20334f:0x162,_0x47da51:0xc5,_0xfdee67:0x81,_0x1cad3f:0x188,_0x179e05:0x278,_0x1a775e:0x599,_0x1b7d8f:0x5cf},_0x2c827e={_0xa9b0b1:0x42a},_0x47b53f={_0x431391:0xdf},_0x4b037d={'pITVk':function(_0x4e0d10){return _0x4e0d10();},'XdkVq':function(_0xbabde0,_0x589783){return _0xbabde0-_0x589783;},'cyCIR':function(_0x2b7e89,_0x25900f){return _0x2b7e89==_0x25900f;}},{logPath:_0xe3fa46,errorLogPath:_0x181979}=_0x4b037d[_0x27293e(-_0x65e7a1._0x5eedb2,-_0x65e7a1._0x28d855)](getServicePaths);function _0x27293e(_0x17304d,_0x504518){return _0x11b7ab(_0x504518,_0x17304d- -_0x47b53f._0x431391);}const _0x598511=clampLines(_0x45e35f?.[_0x27293e(0xcc,_0x65e7a1._0x20334f)]??0xc8),_0x46dd6e=_0x45e35f?.[_0x27293e(_0x65e7a1._0x47da51,-0x104)]??null,_0x5ea1e1=_0x46dd6e!=null?_0x4b037d['XdkVq'](Date[_0x27293e(-0x49,0x102)](),_0x46dd6e):null,_0x1cac05=[_0xe3fa46];function _0x26838a(_0x3e62f4,_0x1be382){return _0x11b7ab(_0x1be382,_0x3e62f4-_0x2c827e._0xa9b0b1);}_0x45e35f?.[_0x27293e(-0x105,-_0x65e7a1._0xfdee67)+_0x27293e(-0x1a,-_0x65e7a1._0x1cad3f)]&&_0x1cac05['push'](_0x181979);const _0x25b91c=_0x1cac05['flatMap'](_0x147324=>readLogFile(_0x147324)),_0x5d5405=_0x4b037d['cyCIR'](_0x5ea1e1,null)?_0x25b91c:_0x25b91c[_0x26838a(0x365,_0x65e7a1._0x179e05)](_0x31c89a=>_0x31c89a['ts']!=null&&_0x31c89a['ts']>=_0x5ea1e1);return _0x5d5405[_0x26838a(_0x65e7a1._0x1a775e,_0x65e7a1._0x1b7d8f)](-_0x598511)['map'](_0x4acfc6=>_0x4acfc6[_0x26838a(0x4d0,0x413)]);}async function buildDoctorReport(){const _0x969404={_0x4d4ef7:0x118,_0x490a15:0x283,_0x5cf9ac:0x162,_0x1e9e26:0xc4,_0x4693c0:0xb7,_0x5b79a0:0x1b1,_0x435ae5:0x3ad,_0x55c0c8:0x2e3,_0x5968b1:0x210,_0x50d2e2:0x13d,_0x1fc8b6:0x62c,_0x20160:0x67d,_0x18eb94:0x4ee,_0x522075:0x12c,_0x33c488:0x333,_0x1cb280:0x46},_0x18f6f1={_0x360a7b:0x54a},_0x54a0e5={'uYyce':function(_0x5cff2d){return _0x5cff2d();},'OExaC':function(_0x4890c8,_0x1cd4ef){return _0x4890c8(_0x1cd4ef);}},_0x653728=_0x54a0e5[_0x28a310(0x6f8,0x569)](readPairingConfig);function _0x2fbb7c(_0x31ca4a,_0x415341){return _0x11b7ab(_0x415341,_0x31ca4a- -0xe9);}function _0x28a310(_0x5a14dc,_0x1984ac){return _0x11b7ab(_0x5a14dc,_0x1984ac-_0x18f6f1._0x360a7b);}const _0xade7a3=getServiceStatus(),_0x4b6099=_0x54a0e5['uYyce'](readOpenClawInfo),_0x311dfd=resolveGatewayUrl(),_0x1a2f24=await checkGatewayReachable(_0x311dfd);return{'paired':Boolean(_0x653728),'gatewayId':_0x653728?.['gatewayI'+'d']??null,'serverUrl':_0x653728?.[_0x2fbb7c(-0xa9,_0x969404._0x4d4ef7)+'l']??null,'relayUrl':_0x653728?.[_0x2fbb7c(-0x1d8,-_0x969404._0x490a15)]??null,'instanceId':_0x653728?.[_0x2fbb7c(-0xbf,-0x13d)+'Id']??null,'serviceInstalled':_0xade7a3[_0x2fbb7c(0x128,_0x969404._0x5cf9ac)+'d'],'serviceRunning':_0xade7a3[_0x2fbb7c(-_0x969404._0x1e9e26,-0xca)],'serviceMethod':_0xade7a3[_0x2fbb7c(-0x100,_0x969404._0x4693c0)],'servicePath':_0xade7a3[_0x2fbb7c(_0x969404._0x5b79a0,_0x969404._0x435ae5)+'ath'],'logPath':_0xade7a3[_0x2fbb7c(0x210,_0x969404._0x55c0c8)],'errorLogPath':_0xade7a3['errorLog'+_0x2fbb7c(-0xef,-_0x969404._0x5968b1)],'openclawConfigDir':getOpenClawConfigDir(),'openclawMediaDir':getOpenClawMediaDir(),'openclawConfigFound':_0x4b6099[_0x2fbb7c(_0x969404._0x50d2e2,0x182)+_0x28a310(0x5fd,_0x969404._0x1fc8b6)],'openclawAuthMode':_0x4b6099[_0x28a310(0x851,0x7ad)],'openclawTokenFound':_0x54a0e5[_0x28a310(_0x969404._0x20160,_0x969404._0x18eb94)](Boolean,_0x4b6099[_0x2fbb7c(_0x969404._0x522075,-0x8b)]),'openclawPasswordFound':_0x54a0e5[_0x28a310(_0x969404._0x33c488,_0x969404._0x18eb94)](Boolean,_0x4b6099[_0x2fbb7c(_0x969404._0x1cb280,-0x1a4)]),'localGatewayUrl':_0x311dfd,'localGatewayReachable':_0x1a2f24};}async function ensurePairPrerequisites(){const _0x21902d={_0x25b96b:0x18e,_0x33a5da:0x2cc,_0x32af07:0x36c,_0x399feb:0xf1,_0x552706:0x50e,_0x249540:0x43b,_0x60b960:0x3f0,_0xe090b2:0x1fb,_0x5b39bd:0x6d,_0x1348d5:0xf8,_0x2c4791:0x1cb,_0x175558:0x3d3,_0x2b6cf6:0xc5,_0x5a38d0:0x1c1,_0x39e07f:0x36a,_0x27fff9:0x20c,_0x37e538:0x51,_0x3438cc:0x74},_0x3f6c50={_0x5028b6:0x92},_0x154daa=await buildDoctorReport(),_0x5c3df5=listPairPrerequisiteFailures(_0x154daa);if(_0x5c3df5['length']>0x0)throw new Error(['Cannot\x20c'+_0xcdb151(_0x21902d._0x25b96b,0x1a5)+_0xcdb151(0x256,_0x21902d._0x33a5da)+'\x20pair`\x20b'+_0xcdb151(_0x21902d._0x32af07,0x1ce)+'ocal\x20Ope'+_0x36586e(_0x21902d._0x399feb,-0x14)+_0xcdb151(_0x21902d._0x552706,0x3b9)+'tes\x20are\x20'+_0xcdb151(0x4a7,0x352)+'y.',..._0x5c3df5[_0xcdb151(0x4a3,_0x21902d._0x249540)](_0xc9869e=>'-\x20'+_0xc9869e),'Run\x20`cla'+_0xcdb151(_0x21902d._0x60b960,0x20a)+_0x36586e(_0x21902d._0xe090b2,_0x21902d._0x5b39bd)+_0x36586e(_0x21902d._0x1348d5,0x2ee)+'tails,\x20o'+_0x36586e(_0x21902d._0x2c4791,0x2bd)+'lawket\x20p'+_0x36586e(0xea,0x80)+'rce`\x20onl'+_0x36586e(_0x21902d._0x175558,0x326)+_0x36586e(-_0x21902d._0x2b6cf6,0x9c)+'onally\x20w'+_0xcdb151(0x1ba,0x2ba)+_0xcdb151(_0x21902d._0x5a38d0,0x38e)+_0x36586e(_0x21902d._0x39e07f,_0x21902d._0x27fff9)+'y\x20check.'][_0x36586e(-_0x21902d._0x37e538,_0x21902d._0x3438cc)]('\x0a'));function _0x36586e(_0x4c93c9,_0x34d4df){return _0x11b7ab(_0x4c93c9,_0x34d4df-_0x3f6c50._0x5028b6);}function _0xcdb151(_0x52d642,_0x147c54){return _0x11b7ab(_0x52d642,_0x147c54-0x259);}return _0x154daa;}function listPairPrerequisiteFailures(_0x5c0ed4){const _0x20a570={_0x3e8af6:0x1b5,_0x22d7de:0x516,_0x2c0d0c:0x827,_0x2e901d:0x1a6,_0x59b26e:0x32,_0x2ebbaa:0x576,_0x1d61cf:0x74f,_0x36661a:0x335,_0x3e9b7a:0x61c,_0x4c02fb:0x3d1,_0xe13c2e:0x6e8,_0x192c01:0x3f2,_0x54ad72:0x3bb,_0x5f27d3:0x275,_0x24d4aa:0x20a,_0x2d6d52:0x5bd,_0x2b5456:0x65b,_0x1b71f6:0x79d,_0x338f2c:0x5b8,_0x3e613f:0x53d,_0x53eec6:0x2b0,_0x4f4b07:0x2eb,_0x509ad3:0x2ff,_0x4eaa58:0x349,_0x21a86c:0x48b,_0x20a2d9:0x10c,_0x3fddfb:0x98,_0x539292:0x4cc,_0x44b8fa:0x674,_0x371078:0x840,_0x24c9d7:0x2a6,_0x41971d:0x1cc,_0x5458f7:0x474,_0x317ee6:0x6e8,_0x58fa6a:0x789,_0x5604c8:0x22f,_0x22cb6b:0x23a,_0x6ed9b:0x18e,_0xa68f51:0x925,_0x284020:0x131,_0x5f1bdd:0x31,_0x397918:0x20a,_0x2e7fa5:0x17d,_0x3232a2:0x130,_0x6b839f:0x6e8,_0x25e2ee:0x739,_0x4c7b39:0x6d1,_0x3f4336:0x5b8,_0x32394a:0x349,_0x4524f4:0x53c,_0x20c84c:0x65d,_0x10bd1e:0x4c9,_0x534160:0x8cc,_0x3eddce:0x7dd,_0xa1a5f8:0x81b,_0x25cc97:0x75c,_0x3e7bd6:0x5cc,_0x4b14b3:0x620,_0x18e2e0:0x19c,_0x15f6d9:0xfb,_0x2399fb:0x27},_0x50a935={};_0x50a935[_0x53120d(_0x20a570._0x3e8af6,0x1ae)]=function(_0x134d28,_0x423f0a){return _0x134d28==_0x423f0a;},_0x50a935[_0x53de33(0x53a,_0x20a570._0x22d7de)]=_0x53de33(0x9b4,_0x20a570._0x2c0d0c)+_0x53120d(_0x20a570._0x2e901d,-_0x20a570._0x59b26e)+'\x20auth\x20is'+_0x53de33(0x3d9,_0x20a570._0x2ebbaa)+_0x53de33(_0x20a570._0x1d61cf,0x7f8)+_0x53120d(0x477,_0x20a570._0x36661a)+_0x53de33(_0x20a570._0x3e9b7a,0x7af);function _0x53de33(_0x41d4af,_0x3e3702){return _0x6eb3(_0x41d4af,_0x3e3702-0x5ad);}_0x50a935[_0x53120d(_0x20a570._0x4c02fb,0x25b)]='password';function _0x53120d(_0x5f5b4f,_0x226d42){return _0x6eb3(_0x5f5b4f,_0x226d42-0xcf);}const _0x3b06a9=_0x50a935,_0x398f49=[];return!_0x5c0ed4[_0x53de33(0x5c5,_0x20a570._0xe13c2e)+_0x53120d(_0x20a570._0x192c01,0x31e)+'und']&&_0x398f49[_0x53120d(_0x20a570._0x54ad72,0x2ff)]('OpenClaw'+_0x53de33(0x5fd,0x55b)+_0x53120d(0x1dc,_0x20a570._0x5f27d3)+_0x53de33(0x2fa,0x4d1)+'der\x20~/.o'+'penclaw/'+'.'),_0x5c0ed4[_0x53120d(0x3f,_0x20a570._0x24d4aa)+_0x53de33(_0x20a570._0x2d6d52,_0x20a570._0x2b5456)+'nd']&&_0x5c0ed4[_0x53120d(0x13d,0x20a)+_0x53de33(_0x20a570._0x1b71f6,_0x20a570._0x338f2c)+'Found']&&_0x3b06a9[_0x53de33(_0x20a570._0x3e613f,0x68c)](_0x5c0ed4[_0x53120d(0x216,0x20a)+_0x53de33(_0x20a570._0x53eec6,0x4ad)],null)&&_0x398f49[_0x53120d(_0x20a570._0x4f4b07,_0x20a570._0x509ad3)](_0x53120d(0x2d9,_0x20a570._0x4eaa58)+_0x53de33(0x409,_0x20a570._0x21a86c)+_0x53120d(0x7f,_0x20a570._0x20a2d9)+_0x53120d(-_0x20a570._0x3fddfb,0x16b)+_0x53de33(0x765,0x58b)+_0x53de33(_0x20a570._0x539292,_0x20a570._0x44b8fa)+_0x53de33(0x811,_0x20a570._0x371078)+_0x53de33(0x578,0x775)+_0x53120d(_0x20a570._0x24c9d7,_0x20a570._0x41971d)+_0x53de33(0x369,_0x20a570._0x5458f7)+'s\x20unset.'),!_0x5c0ed4[_0x53de33(0x6a7,_0x20a570._0x317ee6)+_0x53de33(_0x20a570._0x58fa6a,_0x20a570._0x2b5456)+'nd']&&!_0x5c0ed4[_0x53de33(0x738,0x6e8)+_0x53120d(_0x20a570._0x5604c8,0xda)+_0x53120d(_0x20a570._0x22cb6b,_0x20a570._0x6ed9b)]&&_0x398f49[_0x53de33(_0x20a570._0xa68f51,0x7dd)](_0x3b06a9[_0x53de33(0x5b1,0x516)]),_0x5c0ed4['openclaw'+_0x53120d(_0x20a570._0x284020,-_0x20a570._0x5f1bdd)]==='token'&&!_0x5c0ed4[_0x53120d(0x322,_0x20a570._0x397918)+_0x53120d(0x83,_0x20a570._0x2e7fa5)+'nd']&&_0x398f49[_0x53120d(_0x20a570._0x3232a2,0x2ff)]('OpenClaw'+'\x20gateway'+_0x53120d(0x285,0x13b)+'s\x20missin'+'g.'),_0x5c0ed4[_0x53de33(0x6be,_0x20a570._0x6b839f)+_0x53120d(-0x15c,-0x31)]===_0x3b06a9[_0x53de33(0x755,_0x20a570._0x25e2ee)]&&!_0x5c0ed4[_0x53de33(0x768,0x6e8)+_0x53de33(_0x20a570._0x4c7b39,_0x20a570._0x3f4336)+'Found']&&_0x398f49[_0x53120d(0x1ae,0x2ff)](_0x53120d(0x4e5,_0x20a570._0x32394a)+_0x53de33(0x693,0x4ac)+_0x53de33(0x6c1,_0x20a570._0x4524f4)+'d\x20is\x20mis'+'sing.'),!_0x5c0ed4[_0x53de33(_0x20a570._0x20c84c,_0x20a570._0x10bd1e)+'ewayReac'+'hable']&&_0x398f49[_0x53de33(_0x20a570._0x534160,_0x20a570._0x3eddce)](_0x53de33(0x614,_0x20a570._0xa1a5f8)+_0x53de33(_0x20a570._0x25cc97,0x555)+_0x53de33(_0x20a570._0x3e7bd6,_0x20a570._0x4b14b3)+_0x53120d(_0x20a570._0x18e2e0,_0x20a570._0x15f6d9)+_0x53de33(0x84d,0x743)+_0x53de33(0x440,0x5c8)+_0x5c0ed4['localGat'+_0x53120d(_0x20a570._0x2399fb,0x1b9)]+'.'),_0x398f49;}function readLogFile(_0x52a076){const _0x121569={_0x56bfdc:0x34,_0x1a0d83:0x1ac,_0x44edee:0xd1,_0x20fa41:0x7b,_0x5207a9:0x151,_0x1367b2:0x14e,_0x431850:0x21f},_0x479700={_0x5b0193:0x9d},_0x31dc53={_0x1d19e5:0x132},_0x79b675={};_0x79b675[_0x41afa9(_0x121569._0x56bfdc,_0x121569._0x1a0d83)]=_0x2b7f29(_0x121569._0x44edee,_0x121569._0x20fa41);function _0x41afa9(_0x15a25e,_0x13735c){return _0x11b7ab(_0x13735c,_0x15a25e- -_0x31dc53._0x1d19e5);}const _0x53942e=_0x79b675;function _0x2b7f29(_0x68661a,_0x363d53){return _0x11b7ab(_0x68661a,_0x363d53- -_0x479700._0x5b0193);}try{const _0x1a83ac=_0x365046(_0x52a076,_0x53942e[_0x41afa9(_0x121569._0x56bfdc,-_0x121569._0x5207a9)]);return _0x1a83ac[_0x41afa9(0x59,_0x121569._0x1367b2)](/\r?\n/)[_0x41afa9(-0x1f7,-_0x121569._0x431850)](Boolean)['map'](_0x127ffd=>({'raw':_0x127ffd,'ts':parseTimestamp(_0x127ffd)}));}catch{return[];}}function parseTimestamp(_0x384af4){const _0x31f7a9={_0x281181:0x299,_0x507627:0x3c7,_0x59c771:0x54b,_0x1489bb:0x324},_0x9f6a46={_0xd4d451:0x5ad},_0x4aff37={'JsUdl':function(_0x3c708b,_0x17a2b2){return _0x3c708b(_0x17a2b2);}},_0x12f088=_0x384af4[_0x4f5abf(0x329,_0x31f7a9._0x281181)](/^\[(\d{13})\]\s/);if(!_0x12f088)return null;function _0x4f5abf(_0x325d59,_0x13d596){return _0x6eb3(_0x325d59,_0x13d596-0x2ae);}function _0x51a0ad(_0x331ad5,_0x564bfd){return _0x6eb3(_0x564bfd,_0x331ad5-_0x9f6a46._0xd4d451);}const _0x4f1733=_0x4aff37[_0x4f5abf(_0x31f7a9._0x507627,_0x31f7a9._0x59c771)](Number,_0x12f088[0x1]);return Number[_0x4f5abf(_0x31f7a9._0x1489bb,0x3e7)](_0x4f1733)?_0x4f1733:null;}function clampLines(_0x3b8b00){const _0x282cd4={_0x4c7ba5:0x31a,_0x1c403e:0x72,_0x398d42:0x1b2},_0xb8d25e={_0x147b4d:0x178};function _0x23b168(_0x4e58a5,_0x5895a5){return _0x11b7ab(_0x4e58a5,_0x5895a5- -0x7);}if(!Number[_0x23b168(_0x282cd4._0x4c7ba5,0x174)](_0x3b8b00))return 0xc8;function _0x553840(_0xc64380,_0x4ce05e){return _0x11b7ab(_0x4ce05e,_0xc64380- -_0xb8d25e._0x147b4d);}return Math[_0x553840(-_0x282cd4._0x1c403e,-0x148)](0x1,Math[_0x553840(-0x110,-_0x282cd4._0x398d42)](0x7d0,Math['floor'](_0x3b8b00)));}async function checkGatewayReachable(_0x170bf9){const _0x25cdc5={_0x5af2aa:0x681,_0x1b4a82:0x6b5,_0xf2f9d0:0x5a5,_0x1aab8a:0x568,_0x270b26:0x12,_0x12a43a:0x158,_0x1a5adb:0x1e5,_0x386db7:0x297},_0x457cdd={_0x343fe8:0x5fe,_0x155a2c:0xa1,_0x411f12:0x6d7,_0x9f2cfa:0x705},_0x4eb4b8={_0x3cc5b0:0x213},_0x4bfa42={_0x22e367:0x494,_0x51bfb9:0x4a0,_0x295fc6:0x469},_0x5e6f86={_0x162401:0x4f8};function _0x9bb85c(_0xc3b09d,_0xcb35c3){return _0x6eb3(_0xc3b09d,_0xcb35c3-_0x5e6f86._0x162401);}function _0x94cb64(_0x8ce948,_0x31c11d){return _0x6eb3(_0x31c11d,_0x8ce948- -0x131);}const _0x294972={'ISdZg':function(_0x136cca){return _0x136cca();},'vkBfO':function(_0x49ecb9,_0x5e94c2){return _0x49ecb9(_0x5e94c2);},'SNREB':'timeout'};try{const _0x390e70=new URL(_0x170bf9),_0x5a9297=_0x390e70[_0x9bb85c(_0x25cdc5._0x5af2aa,_0x25cdc5._0x1b4a82)]||_0x9bb85c(_0x25cdc5._0xf2f9d0,_0x25cdc5._0x1aab8a)+'1',_0x593284=_0x390e70[_0x94cb64(-_0x25cdc5._0x270b26,-_0x25cdc5._0x12a43a)]?Number(_0x390e70[_0x94cb64(-0x12,0x4e)]):_0x390e70[_0x94cb64(-_0x25cdc5._0x1a5adb,-_0x25cdc5._0x386db7)]==='wss:'?0x1bb:0x50;return await new Promise((_0x214144,_0x45df04)=>{const _0x5e71d1={_0x549374:0x129},_0x29d986=new Socket();_0x29d986[_0x3d158a(0x168,0x1ee)+'ut'](0x384),_0x29d986['once'](_0x255d9d(0x6d7,0x6c3),()=>{function _0x21f34c(_0x3150c2,_0x15c5e8){return _0x3d158a(_0x15c5e8,_0x3150c2-0x4e7);}function _0x43b7e2(_0x2a2e59,_0x136ce5){return _0x3d158a(_0x2a2e59,_0x136ce5-0x5b8);}_0x29d986[_0x21f34c(_0x4bfa42._0x22e367,0x342)](),_0x294972[_0x43b7e2(_0x4bfa42._0x51bfb9,_0x4bfa42._0x295fc6)](_0x214144);});function _0x255d9d(_0x3b210c,_0x5c3b1f){return _0x94cb64(_0x3b210c-0x5f8,_0x5c3b1f);}function _0x3d158a(_0x5b002b,_0x4141a8){return _0x94cb64(_0x4141a8-_0x5e71d1._0x549374,_0x5b002b);}_0x29d986[_0x255d9d(_0x457cdd._0x343fe8,0x56e)]('timeout',()=>{_0x29d986[_0x5d718c(0x316,0x473)]();function _0x3d4a91(_0x4afb1f,_0x2e31e8){return _0x3d158a(_0x4afb1f,_0x2e31e8-0x116);}function _0x5d718c(_0x480250,_0xd4a116){return _0x3d158a(_0x480250,_0xd4a116-0x4c6);}_0x294972[_0x3d4a91(_0x4eb4b8._0x3cc5b0,0xac)](_0x45df04,new Error(_0x294972['SNREB']));}),_0x29d986[_0x255d9d(_0x457cdd._0x343fe8,0x60e)](_0x3d158a(-0xd1,-_0x457cdd._0x155a2c),_0x440b3c=>{_0x29d986[_0x1b96ba(0x228,0x28f)]();function _0x1b96ba(_0x311bf9,_0xc26245){return _0x3d158a(_0x311bf9,_0xc26245-0x2e2);}_0x45df04(_0x440b3c);}),_0x29d986[_0x255d9d(_0x457cdd._0x411f12,_0x457cdd._0x9f2cfa)](_0x593284,_0x5a9297);}),!![];}catch{return![];}}function parseLookbackToMs(_0x3b99f0){const _0x53b410={_0x4d0504:0x402,_0x387909:0xb9,_0x509537:0x97,_0xfc6775:0x1c8,_0xe385e5:0x1bb,_0x278850:0xad,_0x56a9a1:0xc3,_0x327008:0x9d,_0x1e2f04:0xae,_0x342598:0x219,_0x21499f:0x68,_0x221754:0x20b},_0x14707e={_0x46b90f:0x7d},_0x5b58e4={};_0x5b58e4[_0x18b5ba(0x256,_0x53b410._0x4d0504)]=function(_0x5ca719,_0x4fe671){return _0x5ca719===_0x4fe671;},_0x5b58e4[_0x3b3bd3(0x1a6,0x12c)]=function(_0x53f20f,_0x53c1b6){return _0x53f20f===_0x53c1b6;},_0x5b58e4[_0x3b3bd3(-0x68,-0xc4)]=function(_0x42e8ef,_0x597a19){return _0x42e8ef*_0x597a19;};const _0x98f27e=_0x5b58e4,_0x5eb7be=_0x3b99f0?.['trim']();if(!_0x5eb7be)return null;const _0x21cf22=_0x5eb7be['match'](/^(\d+)(ms|s|m|h|d)$/i);if(!_0x21cf22)throw new Error(_0x18b5ba(_0x53b410._0x387909,-0x4d)+'--last\x20v'+_0x3b3bd3(0x272,0x3af)+_0x5eb7be+(_0x18b5ba(-0x71,-0x26f)+_0x18b5ba(-_0x53b410._0x509537,-_0x53b410._0xfc6775)+_0x3b3bd3(0x42,-_0x53b410._0xe385e5)+_0x3b3bd3(-_0x53b410._0x278850,_0x53b410._0x56a9a1)+_0x3b3bd3(0x178,_0x53b410._0x327008)));function _0x18b5ba(_0x2dcaf8,_0x13608c){return _0x11b7ab(_0x13608c,_0x2dcaf8- -0x1);}const _0x2dc636=Number(_0x21cf22[0x1]);function _0x3b3bd3(_0x1eaebb,_0x54e608){return _0x11b7ab(_0x54e608,_0x1eaebb- -_0x14707e._0x46b90f);}const _0x5956b4=_0x21cf22[0x2][_0x18b5ba(_0x53b410._0x1e2f04,0x2b6)+_0x3b3bd3(0x223,_0x53b410._0x342598)](),_0x4ba285=_0x5956b4==='ms'?0x1:_0x98f27e['BYfay'](_0x5956b4,'s')?0x3e8:_0x98f27e['VffYQ'](_0x5956b4,'m')?0xea60:_0x5956b4==='h'?0x36ee80:0x5265c00;return _0x98f27e[_0x3b3bd3(-_0x53b410._0x21499f,-_0x53b410._0x221754)](_0x2dc636,_0x4ba285);}import{readFileSync as _0x3cde9d}from'fs';import{dirname as _0x2d8c2e,resolve}from'path';import{fileURLToPath}from'url';function readCliVersion(){const _0x216001={_0x595b6c:0x5bf,_0x63bbef:0x1ac,_0x173d2a:0x45c,_0x2d5d2d:0x450,_0x4fa236:0x411},_0x3cdee3={_0x576f4b:0x3fa},_0x1018b3={_0x1c31eb:0x6},_0x285aa0={'uxdff':function(_0x42c5dc,_0x592049,_0x564b59){return _0x42c5dc(_0x592049,_0x564b59);}};function _0x56551d(_0x2f378f,_0x1da5c2){return _0x11b7ab(_0x2f378f,_0x1da5c2-_0x1018b3._0x1c31eb);}const _0x62832=_0x2d8c2e(fileURLToPath(import.meta.url)),_0x3610d5=_0x285aa0[_0x4073fe(_0x216001._0x595b6c,0x5ea)](resolve,_0x62832,_0x4073fe(0x840,0x6fa)+'ge.json'),_0x4c74e6=_0x3cde9d(_0x3610d5,_0x56551d(_0x216001._0x63bbef,0x11e)),_0x2fa16a=JSON[_0x4073fe(0x63e,_0x216001._0x173d2a)](_0x4c74e6);function _0x4073fe(_0x19497d,_0x4e1b30){return _0x11b7ab(_0x19497d,_0x4e1b30-_0x3cdee3._0x576f4b);}return _0x2fa16a[_0x4073fe(_0x216001._0x2d5d2d,_0x216001._0x4fa236)]??'unknown';}function buildPairingJson(_0x558b29,_0x3c1002,_0x419fe3,_0x4f3b6b){const _0x30fa3a={_0x49b707:0x3dc,_0x3e956d:0x113,_0x4dd84f:0x33,_0xed5a09:0x9,_0x46bf6f:0x1d3,_0x26e514:0x2a1,_0x931926:0x129,_0x13512c:0xcd,_0xeb8e8c:0xfb,_0xf86613:0x15d,_0x201921:0x247,_0xddc854:0x148,_0x276969:0x1c1,_0x20758e:0xf9,_0x30c328:0x1a1,_0x5a1f25:0x2e,_0x4a2494:0x1,_0x552a2a:0x1fb,_0x2b9aac:0x1d,_0x447fc:0x55,_0x45cf03:0x25b,_0x459e2b:0x15c,_0x29a0a1:0x38,_0x12fec2:0x54,_0x198b31:0x90,_0x675bc6:0x188,_0x165c4b:0x250,_0x2e4c70:0x1b8,_0x173735:0x208,_0x2220b5:0xe5,_0x401641:0x238,_0xd4229e:0x245},_0x2a6b7d={};_0x2a6b7d[_0xefacd7(_0x30fa3a._0x49b707,0x21f)+'d']=_0x419fe3['installe'+'d'],_0x2a6b7d[_0xefacd7(-_0x30fa3a._0x3e956d,_0x30fa3a._0x4dd84f)]=_0x419fe3[_0xefacd7(0xa1,_0x30fa3a._0x4dd84f)],_0x2a6b7d[_0xefacd7(0x42,-_0x30fa3a._0xed5a09)]=_0x419fe3[_0xefacd7(0x177,-0x9)];function _0x238c24(_0x219130,_0x198837){return _0x11b7ab(_0x219130,_0x198837- -0x19c);}_0x2a6b7d[_0xefacd7(_0x30fa3a._0x46bf6f,0x2a8)+_0x238c24(_0x30fa3a._0x26e514,_0x30fa3a._0x931926)]=_0x419fe3[_0xefacd7(0x200,0x2a8)+_0x238c24(_0x30fa3a._0x13512c,0x129)],_0x2a6b7d[_0xefacd7(0x1db,0x307)]=_0x419fe3[_0x238c24(_0x30fa3a._0xeb8e8c,_0x30fa3a._0xf86613)],_0x2a6b7d[_0x238c24(-_0x30fa3a._0x201921,-_0x30fa3a._0xddc854)+_0x238c24(-0xb1,-0x1a2)]=_0x419fe3[_0xefacd7(-0x14c,0x62)+'Path'],_0x2a6b7d[_0xefacd7(-_0x30fa3a._0x276969,-_0x30fa3a._0x20758e)]=_0x419fe3[_0xefacd7(-0x85,-0xf9)];const _0x303eb1={};_0x303eb1['ok']=!![],_0x303eb1[_0xefacd7(_0x30fa3a._0x30c328,-0x2e)]=_0x558b29[_0xefacd7(0xfe,-_0x30fa3a._0x5a1f25)];function _0xefacd7(_0x2724d6,_0x5b2150){return _0x11b7ab(_0x2724d6,_0x5b2150-0xe);}return _0x303eb1['message']=_0x4f3b6b,_0x303eb1['gatewayI'+'d']=_0x558b29[_0x238c24(_0x30fa3a._0x4a2494,-0x156)][_0xefacd7(0x2df,_0x30fa3a._0x552a2a)+'d'],_0x303eb1['relayUrl']=_0x558b29[_0xefacd7(-_0x30fa3a._0x2b9aac,0x54)][_0x238c24(-0x3ae,-0x28b)],_0x303eb1[_0xefacd7(_0x30fa3a._0x447fc,0x4e)+'l']=_0x558b29['config'][_0x238c24(-_0x30fa3a._0x45cf03,-_0x30fa3a._0x459e2b)+'l'],_0x303eb1[_0xefacd7(0x17f,_0x30fa3a._0x29a0a1)+'Id']=_0x558b29[_0xefacd7(-0xf3,_0x30fa3a._0x12fec2)]['instance'+'Id'],_0x303eb1[_0x238c24(-_0x30fa3a._0x198b31,-_0x30fa3a._0x675bc6)+'de']=_0x558b29[_0x238c24(-0x2f1,-0x188)+'de'],_0x303eb1[_0x238c24(-0xb7,-0x188)+_0xefacd7(_0x30fa3a._0x165c4b,_0x30fa3a._0x2e4c70)+_0x238c24(-0x27d,-_0x30fa3a._0x173735)]=_0x558b29[_0x238c24(-0x25,-_0x30fa3a._0x675bc6)+'deExpire'+_0x238c24(-0x133,-0x208)],_0x303eb1[_0xefacd7(_0x30fa3a._0x2220b5,0x1ac)+_0xefacd7(_0x30fa3a._0x401641,0x2d3)]=_0x3c1002,_0x303eb1[_0x238c24(-_0x30fa3a._0xd4229e,-0xb8)]=_0x2a6b7d,_0x303eb1;}import{mkdirSync as _0x3abe96,writeFileSync as _0x2d9822}from'fs';function _0x39fb(){const _0x5735ef=['t3DRshG','u2jKs2i','zhrKiJ4kpha','B25Uzwn0','zuvHvfa','ANnVBG','lxnLCNzPy2u','BM5Ly3qGzhi','zfHJCe0','CNvU','ywnOywjSzsa','Ahr0Chm6lY8','Dw5UAw5N','BNvTyMvY','zYbWyxrOoIa','ihvUy2HHBMC','ls1LCNjVCNm','C2vHCMnOuge','CMvNAxn0zxi','CNnZBfy','BwfW','zxj2AwnLige','Axn0lteUmc4','jMX0oW','pgTLEt5tDge','DwfSBhKU','D2fZig5VDca','jNf1B3q7','DwvZDcbWzw4','BgKTzxjYB3i','mZGYotyZnvjrAwjxqW','z2f0zxDHEuK','DvPlsMm','wKTmrMy','DxHKzMy','zfn6r2q','DcbHCha6cG','DgvK','ifSTlwzVCMm','B3iGmwqU','qNjPzgDLige','zevYCM9Yuge','zu9dDgO','DMLJzsbPBNm','pc9ZDhjPBMC','sxrZrvi','C3rVChbLza','BgXDcLDHBNq','C2uGy2fUy2u','Ag9ZDg5HBwu','BwuGBM90igy','ANbIr3y','u3rHCNrPBMC','yNjPzgDLlwm','ls1QC29Uxq','terHEuG','C3rYAw5NAwy','qvripsi','uMvTB3zLzca','C2LVBJ0Ims4','igj1DcbNyxq','wvvRBuu','A2LUza','zM9Yy2u','ihnLCNzPy2u','CLnfuKW','rxjYB3iGBg8','Aw5ZDgfSBgu','ntGWww1VA21e','y3jLyxrLzee','Eu9Wzw4','Dg9Rzw4','vhP2tNC','y2XPzw50x2m','zgv2AwnLtMe','y29UBMvJDc4','AgfUzhnOywS','zcbIywnRz3i','ruL5zgu','ig9Rpq','zxrYEurLBge','pGOGidXRzxK','A2v0','icbLEgvJig4','y2uGCMvNAxm','vMzMwve','C2vUzfrVr2e','z0jcBe8','y29UzMLNrM8','Dgv3yxK','BJOG','DwvZDcbYzxm','zxnOigzHAwW','CIb1C2uGygm','BMqGlxyGBM8','DcbKzw1HBMq','y2XLyxjuAw0','zsbWywLYAw4','BM90ihbHAxi','yKTmAuG','x1bbu1nxt1i','rxHWAxjLCZO','C3nHz2vZ','CM9YC10GwY0','u0Dls20','BNrYB2WGzxy','C2v0vgLTzw8','Cgzir0S','Ag90','lJaUmc4XoJe','zw47igf3ywK','zcbXDwv1zwq','wY0TANnVBL0','BhDNuKS','C29U','CMvN','tK9ux1bbsvi','CMvHC29Upq','B3jKks4','CxvLC3q','ihnPBMnLr2e','Au1pC0W','ig1VzguGDg8','uMvZDgfYDgu','u2vYDMLJzv0','BgfZDfnLzw4','CMvZ','BNbxA3i','u2vYDMLJztO','Bwu9','zxHLy1bHDgG','zxjZAw9Uxfi','y29UBMvJDa','zuTsA24','C3rVCeHLyxi','DgfSBgvKigi','BMC+','qLLMyxK','CxvLC3rjzd0','Aw1Hz2uVCg4','B3vUDf96zxi','DhjSk0mGDg8','ig1VCMuGzgu','Bgf3A2v0ihi','DgvYpw5LDhC','y2XPzw50x2q','rhvSCMq','ugDQrha','vw5HyMXLihq','yxv0Ae1Vzgu','CMLUzYbJB2q','zxHwB3a','BgLLBNrezw0','Dw5PBNn0ywW','C2v0','zw1HBMrFCMu','CNzPy2uGAw4','zw5Nzq','Bg9NCYbBls0','Es11CMW','DxbKyxrLzee','ienmssbZzxi','Cgf0AdOG','zwXHEq','ChvZAa','icaGidXZDhi','q2XHD2TLDei','igvYCM9Ypq','zw50rgvTyw4','Cez2uMS','A2LSBa','z2f0zxDHEvi','zwXVywq','BwfYA0rLDMK','yurmtwK','vxLkq3u','Dgv3yxLdB24','AxmGuviGy28','w3bHAxiTCMu','Bgf1BMnOywC','Et5mywjLBdW','Bgf5q29UDhi','teHdre4','qvriiIbDoYa','Dhj1zq','r2f0zxDHEsa','Et4kica8C3q','yxjNzxqkcLS','Dd4k','y29UzMLNig4','y1n0yxj0pq','icH0B2TLBIa','AwyGwYaTEca','ihnPBMnLq2W','y2XVC2vKoIa','q29UzMLNrM8','ugfPCMLUzYa','CMvSyxKGy2W','EsbPzIb5B3u','wgjRu0K','sciGCNvUic0','zMX1C2Hqzw4','EgDKwNi','CgvUtxm9','C2vYDMLJzva','DMfTr0m','A3nIA3i','CMvJB25Uzwm','AfDtuw4','phbHDgG+xsa','yxnL','CNzLCI4','zw5ZDxjLr2e','B2jZzxj2zum','EwjZu3a','B25SAw5LlNq','CMvHy2HHyMW','AwyGy29TBwe','B3iGCgfZC3C','zhKGC2nOzwq','yxbZAg90','lw5LDW','C2GGy2HHBgW','CgvU','DejHC2vezwW','A2LUz0rPCMu','tg9JywWGt3a','zgv2AwnLswq','CMvZzxq','lM9Wzw5JBge','C2uGy2XPzw4','B25qzw5KAw4','zNjHBwuG','CIbWyxnZD28','uKvrvuLsruq','z2f0zxDHEuG','jMfTCdS','tM8GBwf0y2G','t3bLBKnSyxC','C2vUza','CMvXDwvZDeK','w2nSyxDRzxq','ls11C2vY','y29UDhjVBf8','D2f5uMvXDwu','z2f0zxDHEum','AgfUzgXLuMu','yxrO','lMnSyxDRzxq','l0rurcbqteK','vMvYC2LVBJO','ruPqDwS','Aw5Jzq','BfDyv00','DgfYDdOG','y2XHD2TLDca','CMvWBgfJzue','iIrot0rfx1a','AxnJB25Uzwm','Be1Z','t1bftKnmqvC','qNjPzgDLigK','ls1Zzxj2Awm','zMLNDxjLzcW','yMHLAMK','mtmXq2XLALDk','D3m6lY8','BM9VCa','jJe7ihrOzw4','zgf0yq','wwzXtMW','CMv0','zunSB3nL','sNnvzgW','ywrK','zgv0ywnOzwq','tMfTztOG','nhWW','cLnJyw4GDgG','iurpq1rzueu','C3rHDhvZ','iYeVyMLUl3m','yNjPzgDLlxm','C29Tzq','y29UBMvJDfi','vgnHu2q','DMLJzsbMB3i','DgHLBG','D2LKDgG','ywX1zsaI','CvH6BLm','zgv2AwnLlNa','DgLTzwqGB3u','EwXoELq','yw1L','Dd4kica8A2u','yxrLD2f5twu','BxbSzqPfEgu','uviGAw1Hz2u','Bg9Nugf0Aa','BgfZDca8mM0','CNrIzwf0','zw5HyMXL','yxbWBgLJyxq','zxHPC3rPBMC','B2nRzxq','lI4VCgfJA2e','C3LZDgvTzc0','y2XPzw50rgu','lIbsDw4GiMm','tg9HzdWVA2u','zgLZy29UBMu','r1bwtwK','lMXVzW','tvzus2e','DgvKqxrnCW','Aw5Nr2f0zxC','zgv0ywLSCW','CgLK','z2f0zxDHEvm','svnKwMC','qxv0BY1PBNm','zwrcEt1Kzwy','ignVDw50pq','zxHPDenVzgu','u1fyvxa','BxrRy2S','D2LUmZi','C29YDa','nMrVy1nQsW','Ewj4AMy','Dg1cD0u','zcWGyNv0ihm','y29Uy2f0','Ac5TB2rLigK','CMvMCMvZAc0','Bw9Kzq','y2XPzw50q28','y29KzsbBls0','zg9JDg9Y','ywrKugvUzgK','ls1Uyw1L','CMvSyxLvCMW','CgvUzgLUz0C','q3vYCMvUDfy','DgvKihbSyxq','Aw9Ul2PZB24','CNvUlxjLz2K','swq9','ExjZEg8','ihf1zxvLzd0','zwXHChnLzfm','ls1Zzxj2zxi','qufnAfC','yxLnCW','C2vYDMLJzvi','BYbYzxnVBhy','igHHCYbIB3q','vgjPB0u','uhbWu1u','tw9IAwXLiem','zgLUzYbYzxe','zwHuzhC','ndu4BxbiC3rN','rxPVv2i','vvjmoIa','rujntxi','tLjIzwS','tLzisKq','A2vtDgfYDgu','wKX3CfG','lNnLCNzPy2u','tw1Urva','qNrWwfG','zwnVBM5Ly3q','B3bLBG','DgvYBwLUyxq','BMvJDgvK','CMvWBgfJzq','ls1NyxrLD2e','Eu1Mwhm','CMvSyxLtzwm','q2XHD2TLDca','Et4kica8Dhi','zMLSDgvY','zfnKsxy','rMXuyMy','wfDlugi','B2jQzwn0','C2uGywXYzwe','igDHDgv3yxK','qxv0Ae1Vzgu','yxbWBguUy28','ze1Zpq','zxzLBNqGBMe','yMLUyxj5','Cg9UzW','CgfPCG','CNvUDgLTzsa','zxjZ','CNvUBMLUzZO','B21WBgv0zsa','Dgv3yxLjzgW','BgKUANnVBG','s1fuy1y','yxj0','lMfP','rxbiB2W','iejYAwrNzsa','Dg9eyxrHvvi','ywXSzwq','uNH2DeW','ruPrq2O','yu5dBhu','CMvX','BKnSyxCGChi','Cgf0AevUDG','l3yXl3bHAxi','zw1WDa','Bg9JywXhyxq','CMLWDcbWyxq','zg93BG','C2vYDMvYidW','v2LUzg93C1W','Cen1zKy','B24U','Cgf0Ag5HBwu','zM91BMqGDw4','zgLUz0DHDgu','BM90igLUC3q','BwvKAwe','ywX1zxmGBgK','B25Uzwn0zwq','mtu4otq5A2ThrNzl','pLbYB2DYyw0','z2f0zxDHEv8','vhbYrLa','y29Kzq','BwLSEq','CMLKz2vdBgK','B3bWzwqGywy','BgvKihjLyxm','zwnHDxnLigW','D3PtwxG','pL0GwY0TBgK','z2f0zxDHEva','Bgf5twvZC2e','mtaXnZG2odzrD1vRrhC','yxbWBhK','BhjKreK','zxnVBhzLza','BLDyuuC','ALbHthu','CMvSyxKGzgK','B25mB2C','EuffDuy','CgLUzW','z2f0zxDHEq','C3rYAw5N','seTdvvXtB2y','C2fNzq','y3jVC29MDfW','EufJDgL2Axq','igjYAwrNzsa','r0rXBwK','B25Uzwn0Aw4','BM9KzvbHDgG','ChjVDg9JB2W','BhjLywr5iha','iI4GvxnLihy','DwuVpGOGidW','vhD3AeG','CMDurvK','C0f0','CMvSyxKGAgu','uMvZDgfYDfm','CMvZigLKpq','yLvwCgi','yxbisfC','C2nYAxb0uge','DxnLCG','ywLYzwqUifi','yw5KC2HHA2u','CLzQCMe','D2f5ihjLB3a','AgfUzgXLr2e','CM9Wzxj0EuW','t1bpD3C','CMvSyxKGCMu','t0v4yum','DxPwy1a','BwnrExK','zNjVBq','txHqwNm','zxjYB3i','BMqGC2vYDMK','swzUwwW','zcbKzwXHEu0','CMqGyMvMB3i','Aw5N','BwfPBG','C2LUy2vdBgK','D2TLDcbKB2m','z2f0zxDHEvu','igXVywqGDgG','wKHYruK','zgvJAxnPB24','suq6ia','DNforey','zhD4s0O','zg9JDg9YifS','v2XwDuG','tK1Tyu0','zgXLq2XVC2u','BM5Ly3rLzca','rI04iJ8+cJW','zM9YD2fYze8','zxjYB3i6ia','AwrLBNrPDhK','BMv0D29YAY0','C2vHCMnO','ywn0Aw9U','Bgf1BMnOy3q','y29UzMLNoIa','B3b0Aw9UCW','id4MmG','C3LZDgvTza','B3jRlw9UBgK','CMvJDxjZAxy','vhHRtwq','AxjPBMCU','qxf1vKe','je5prevFuee','mM0SidfOlca','ihbHC3n3B3i','ChbLBMq6','ywLYuMvXDwu','zxzLBNq','EurKChq','twvKAwfeAxi','DwvZDa','lw5HBwuGpgq','x0DbvevxqvK','Aw5JBhvKzuu','Dg9YycbMB3i','AcbHigrPzMy','swfbC1C','q29UzMLNoIa','yxLnzxnZywC','DMTczK8','CxvLC3rDihi','AM9PBG','vgLTzxi','zxjLBNqGC2u','qxrnCW','u3rVChbLzca','BNrFzgLZy28','BvbOwM0','Bwv0Ag9K','zw5dBgf3ieC','s01Avxu','EMTYzha','BgLZDa','ywLYic0TzM8','l3jLz2LZDgu','ignVBMzPzYa','ugvAz0K','Axnoyu4','CMfUzg9T','Aw5ZDc0','y2LPwgW','uKW6ia','zgvZDhjVEq','DMjeELK','C2uGC2TPCha','ugf0Aa','A2jmDeS','zxHPDcaXmJC','r2f0zxDHEu8','tK9erv9qqvq','qvnXCKC','ls1XCI1MAwW','CuvSwKi','Aw5ZDgfSBa','BgfZDfjLBge','BMDqywLYuMu','B3nRrLa','EwfYqLm','ig5HBwu9','BMvJDgLUzW','CMvHzhLtDge','igLUDgvUDgK','ig1PC3nPBMC','y3rLzcbJB2q','lNbUzW','CMvSyxLbDhq','qxjNDw1LBNq','Dgv4Da','zw50pwnSAwu','zxrcCMLKz2u','BK1Zpq','ywnJzxnZq28','zLjSBg0','wMPotei','DMvYC2LVBG','lvrfuK0','DuHiBfe','vMvVy0C','CgXHDgzVCM0','BMzPzYbWyxq','zwH0rwC','y2XVC2vhyxq','DvL5y2u','yw5KihbHC3m','zxK+uNvUqxq','C2vYDMvY','zuTyBuO','ihn0B3aU','CNvUBMLUzW','ChvZAfbLBMq','B3vUDa','ihjLDhvYBMu','q0Xbv0rct1q','Aw5ZDgfUy2u','BgfZDevYCM8','ugfPCMvKoIa','Bwf0y2G','vujmsumGiI0','ifjLC3rHCNq','yxbWCM92zva','q1fXzKK','yxjNDG','CeLuvMS','CM91BMqGC2u','AcbMB3iGC2u','uKvhx1nA','y2XVC2u','BNn0ywXSzwq','ignSAwvUDhm','jMD0oW','zgvSzxrL','CMvXDwvZDgu','z2vZ','AM1NwgK','ihrVA2vUoIa','C2vYDMvYvxi','ruvRCMe','Dg9Y','odC4oq','C3rHCNrLzca','tgf1BMnOqwC','y29UzMLN','ihvYBd0','vhrZvKW','zsbdteKGC2m','AxnszwXHEu8','yM1qDvK','ihj1BNrPBwu','ugfZC3DVCMq','v2fotMK','CMvXig1LDgG','BMrnCZ0','AwrSzsbJBg8','A2v5pKTLzxa','CMvZDgfYDa','zxjYB3jmB2C','Duvht2C','zw50pq','B249','CfnsBhe','qvHbsue','lJe6mtG3odK','Dw5SB2fK','ww91ignHBIa','yxqG','mJaW','CMvJzw50','y29UC3rYDwm','yw50ihrVigi','CgfYC2u','qwXPDMu8l2S','tNHezMO','cLr5Cgu9C2K','BgLUDxG','CgvUzgLUz1a','BwLU','BgKUBg9N','BwLZC2LUzW','B3vUzcbZzxi','y2f0y2G','y2fUy2vSr2e','CYbUB3qGCMu','CxiTzMLSzsa','Dw5Yzwy','yxvUy2HLCI4','u093BKi','ygnSyxDRzxq','CNvUifSTlwC','C3rHCNrZv2K','AxqU','BgfIzwW','CMvQzwn0zwq','zguGCNvUDgK','BMvZB2e','yxK+cIaGpgS','BMqU','BgWIig9Yici','DhDHCMvCtwK','AcbNyxrLD2e','Bg9Hza','zgLZywjSzq','y3rPDMf0Aw8','Dwnqr1C','zxrYEvrPBwu','Cw1evvG','ls1UB3C','tdOG','u3rHCNrLza','AvvbEKy','ztOG','C3rKAw8','tKLSr2K','DfrPBwvY','cIaGpc9HCNi','AxnbCNjHEq','phvUA25VD24','BwfYA1bHAxi','zwm9mGPxB3i','ifbYzxnZiem','DMLJzsbYzxm','ihbHAxiIigy','BM93','D2LUzg93CY0','BMfTzq','AgfZr2f0zxC','DxbKyxrLu24','ugf0AdOG','ihrOzsbWywK','AwvUDerLBwe','AxncDwzMzxi','yxnZD29Yza','cGPBsw5ZDge','B3j0','Ahr0CdOVlW','yxj0yMvHDca','Aef3uey','Aw5JBhvKzxm','CMf3','DgGG','AxnjBNrLz2u','zwqGyMvJyxu','CMvSyxKGy28','tg9NihbHDgG','DgfSBgf0Aw8','igrPCJOG','ihrVA2vUigK','Dg9mB3DLCKm','CMLUzZ4','mJK4mtv3zMjVEMi','mti3lJaUmc4','ywnRz3jVDw4','BwvZC2fNzq','yxrLD2f5igK','B2TLBG','DgjLyxq','CMXrDuS','wxf0vLu','sw52ywXPzca','CMvXDwLYzwq','C2f0ywW','lNbSAxn0','wvnXuxO','A2uGmZbZlca','CxvLDwuGChu','AxnWBgf5tMe','Dgv3yxLnzxm','zcbZAw5Jzum','CLf1zxvLr2e','CNjVCKXVzW','tNLkC3y','C3rHBgXHDgK','y29KzsbYzwy','lY9bChbSzs8','ywKUy2XHD2S','ELzMBNe','yMfJA2DYB3u','uMvSyxKGvvi','C3rHCNrLzee','zxHWB3j0ifa','zM91BMq','cLn0yw5Kyxi','z2v0vgLTzq','Ag15Bwi','DxjSpL0GwY0','uMvSyxLszwm','CMvSyxLtB2m','A2u9','CZWVA2v5pGO','z2f0zxDHEvq','C3rHCNrPBMC','CMv1C2uGB3a','zxDHEsa','yNjPzgDLlq','Esb0B2TLBIa','pd94BwWGDMu','igj1DcbZDg8','Ag9ZDa','Dw5K','Aw5KzxHpzG','C2vYDMLJzq','BMuUDgfYz2u','igrLDMLJzuK','ifnLDcb0Agu','sK1Jqu4','BgvUz3rO','zgLZCgXHEu4','zM9YBsbMB3i','C25HChnOB3q','x19JBgf3A2u','ndmYzgrIzeLp','ktOG','vg9Rzw5gB3u','BMCUieXLzNq','AwrL','zw50CW','vgHPCYbICMK','r2f0zxDHEvi','l251BgWGmJ4','qMfJA2DYB3u','C3rZ','BM90ihjLywq','Dg9mB2nHBgu','B2zM','y291BNq','ls1MB3jJzq','C2vUzeDHDgu','DhjPBq','twXJvNO','rM91BMq','CMvXlq','CMvMCMvZAgu','y2jhEfy','zs5JBgK','Bwf4','CMvSyxKGzNi','z2f0zxDHEsa','D29YzcbJB24','z2v0','DaPxyw50CZ0','A3fftwW','u2vYDMvYifu','u3rYAw5N','zgvMyxvSDa','zxj2AwnLlwW','C2GGC2L6zt0','zMLUza','DhLWzq','CMvSyxKGzxi','rMHYrNa','zwqGka','B3nLzdOG','DxrMoa','CNzPy2uGDg8','AxnTyxrJAa','AwrSzsb3Axq','rvHiC3C','z2v0u25HChm','igHHBMrZAge','AefwrgS','DwXLzcbYzwe','t29Iugy','zMfSC2u','yxbWzw5KoG','pg5VBMu+','Ee9NqLi','w3n0yxr1C10','CM9Szq','uMvXDwvZDfi','yxLezw1HBMq','CxvLCNK','rLriweu','zxDHEvvYBa','AgvHCNrIzwe','AxzLihnVy2S','CgfZC3DVCMq','zxqUyNjPzgC','Eu1Z','Dgv3yxLpCgu','y29UBMvJDca','y29UBMvJDgu','ExbHC3mGDgG','Dw5ZDxbWB3i','CgfPCMvK','zwnOBYaIBM8','uwnrBvm','zsbKzwXHEsa','DwXLzcbKzwW','lZeYnY4WlJa','revKzw8','EwvZ','zxDHEs5HDxq','u2vYDMLJzsa','DfrPBwvVDxq','zxDHEq','u0Lhsu5u','t3bLBJ0','CMWGphDZoI8','BwfUzfn0yxi','A2DYDha','D2f5twvZC2e','zxHPDa','AcbUBYbHy3q','pLn0yw5Kyxi','yxbWCM92zwq','DgLUzYbMCMu','zxf1zxn0swq','ieLeoIa','yxr0zw1WDd0','u0nssvbux1a','B2rLiciKu0m','B3zL','AwDUB3jL','y2vZuMvJzw4','mxWYFdv8m3W','y2uGD2fZigK','zerLDMLJzxm','Axjszxf1zxm','rhnzvNO','zgfYD2LU','DgG8l2TLEt4','B2rLihjLzNi','C3rVCa','cLjLC3rHCNq','zxjLCxvPC2K','Cg9YDa','Dg9ju09tDhi','C3rHCNq','su11Eu8','AeDRu3e','sLrVyvy','DeLUDgvYDMe','zcbMB3iGzNi','tMnUze0','Dg9tDhjPBMC','uNvUBMLUzZO','wwDerwi','yxrLD2f5lxu','CgvUzgLUzW','C2XPy2u','zw50','zxqGAw5ZDge','tMHLyxu','zcbZzxj2Awm','zguGAw4GDgG','BIaIy2XHD2S','lwPZB25D','y29UDgvUDc0','Cgf5Bg9Hza','B25Jzq','AxmGC2fMzxq','AxngAw5PDgu','zgvUDgL0Esa','B3bLBMnSyxC','zwzYzxnOzwq','mZyXnZiWohbYrLbxDW','x1rps0vo','DxnLCM5HBwu','mtuYmta3mJnnyurtzfu','DMfSDwvZ','zxqGCMvHC28','BgLLBNq','yxLnCZ0','ChbLzc4GuMu','vvnhu2u','Dw50','A0zTENa','C3bSAxq','Bg9N','Bg9NCW','tKLcB1u','AdOG','mci+cJXKAwm','t1bftG','y2uGywXYzwe','C3LZDgvTy3q','ywLYlNjLAMu','tg9NoIa','zMX1C2GGCxu','yxv0Aa','zZOG','Aw5Nienmssa','AxnhyxrLD2e','B2q9','r2f0zxDHEtO','D2LUzg93C0G','CxjjBwfNzva','Ew5pt1G','u0Lhvevstq','BgLZDcb2zxi','C2vYDMLJzuK','DwvZDeLKpq','BgfZDe1Z','ienSyxDRzxq','B25tDgf0Dxm','zxjYB3jdB3i','ue9tva','l1bjra','zgvfEhbPCMu','BgLUzxm','C3rVCMvK','yw1Lia','CMfTCW','zgv2AwnLrMe','igzVCIbNyxq','AgfZ','AKXwuMm','BNHnsMy','C29Upq','BM5Ly3qGyxq','vezSv3O','CMvQzwn0uge','Dw5RBM93BG','ignVBMzPzZO','CMvTB3rLsxa','zguGpI9Kzxy','kYKRja','ihjLyxnVBJ0','CgfYyw1Z','zwqGy29Kzt0','zevYCM9Ypwe','C2vYDMvYlw0','sw5ZDgfUy2u','CgfPCMLUzYa','Agz2zMi','CMvSyxLdB24','zgfLBw9Ulxi','z25KwvG','ugfPCIbYzwC','D3nZoI8V','tvPWvg4','C2nOzwr1Bgu','C3rHCNrizwe','BwfYz2LU'];_0x39fb=function(){return _0x5735ef;};return _0x39fb();}import{dirname as _0x5e6fdf,isAbsolute,join as _0x29692c,resolve as _0x1f7ad5}from'path';import _0x18eb6a from'qrcode';var DEFAULT_QR_DIR=getOpenClawMediaDir();async function writePairingQrPng(_0x5868c7,_0x128bd1){const _0x17c42e={_0xe56e8d:0x2cb,_0x4fc6df:0x124,_0x22d69c:0x20e,_0x3532a1:0x317,_0x2a1251:0x4c4,_0x4f5a3e:0x3a9,_0x1f73f1:0x3cf,_0x35a70a:0x4e5,_0x12933c:0x393},_0x271643={_0x2b7d60:0x202};function _0x4754d0(_0x297a7b,_0x242924){return _0x11b7ab(_0x297a7b,_0x242924-0xa5);}const _0x38c0cc={'PppSU':function(_0x18af4d,_0xcf53d5,_0x1d440a){return _0x18af4d(_0xcf53d5,_0x1d440a);},'FhrFp':function(_0x510c1b,_0x34e07b){return _0x510c1b(_0x34e07b);}};function _0x3f67fa(_0x554ee6,_0x37719c){return _0x11b7ab(_0x37719c,_0x554ee6-_0x271643._0x2b7d60);}const _0x4f5c6=resolveQrOutputPath(_0x5868c7,_0x128bd1),_0x2cb74c={};_0x2cb74c[_0x3f67fa(0x1cd,_0x17c42e._0xe56e8d)+'e']=!![],_0x38c0cc[_0x3f67fa(_0x17c42e._0x4fc6df,_0x17c42e._0x22d69c)](_0x3abe96,_0x38c0cc[_0x3f67fa(_0x17c42e._0x3532a1,_0x17c42e._0x2a1251)](_0x5e6fdf,_0x4f5c6),_0x2cb74c);const _0x10a774={};_0x10a774[_0x4754d0(0x31,0x1b8)]=_0x4754d0(0x1a6,0x2fe)+'g',_0x10a774[_0x3f67fa(_0x17c42e._0x4f5a3e,0x397)+'rectionL'+'evel']='M',_0x10a774[_0x3f67fa(_0x17c42e._0x1f73f1,0x565)]=0x1,_0x10a774[_0x4754d0(_0x17c42e._0x35a70a,_0x17c42e._0x12933c)]=0x2d0;const _0x2a5846=await _0x18eb6a[_0x3f67fa(0x156,-0xb3)+'L'](_0x5868c7['qrPayloa'+'d'],_0x10a774),_0x2ca7d5=_0x2a5846[_0x4754d0(0x1b4,-0x26)](/^data:image\/png;base64,/,'');return _0x2d9822(_0x4f5c6,Buffer[_0x3f67fa(0x1a9,0x305)](_0x2ca7d5,'base64')),_0x4f5c6;}function resolveQrOutputPath(_0x54b201,_0xe8fd93){const _0x91baad={_0x1920be:0x3be,_0x616b50:0x35e,_0x4a9185:0x32b,_0x12b7e9:0x2a5,_0x5347ec:0x21e,_0x420a0b:0x216,_0x5d5a40:0x36},_0x55cebd={_0x30ff78:0x2a1};function _0x2945a7(_0x594253,_0x2bd5a9){return _0x6eb3(_0x594253,_0x2bd5a9-0x6b);}const _0x5bcd40=_0xe8fd93?.[_0x23d07a(_0x91baad._0x1920be,_0x91baad._0x616b50)]();function _0x23d07a(_0x298bc1,_0xa30955){return _0x6eb3(_0x298bc1,_0xa30955-_0x55cebd._0x30ff78);}if(_0x5bcd40)return isAbsolute(_0x5bcd40)?_0x5bcd40:_0x1f7ad5(_0x5bcd40);return _0x29692c(DEFAULT_QR_DIR,_0x54b201[_0x23d07a(_0x91baad._0x4a9185,_0x91baad._0x12b7e9)][_0x2945a7(_0x91baad._0x5347ec,_0x91baad._0x420a0b)+'d']+_0x2945a7(0x146,_0x91baad._0x5d5a40));}function decidePairServiceAction(_0x69a68e,_0x27a859){const _0x353051={_0x2a6548:0x2c9,_0x7dd363:0x169,_0x49fb23:0x626,_0x286572:0x2ec,_0x4a735a:0x109,_0x182426:0x389,_0x2c482f:0x31a},_0x4b930b={_0x382b63:0x2c7};function _0x287054(_0x5b3c8a,_0x4db896){return _0x11b7ab(_0x4db896,_0x5b3c8a-_0x4b930b._0x382b63);}const _0x9e80f6={};function _0x3f45d0(_0x4bd913,_0x1daf4b){return _0x11b7ab(_0x4bd913,_0x1daf4b-0x3c5);}_0x9e80f6['PgjDp']=_0x287054(_0x353051._0x2a6548,_0x353051._0x7dd363);const _0x1861b3=_0x9e80f6;if(!_0x27a859[_0x287054(0x4d8,0x596)+'d'])return _0x1861b3[_0x3f45d0(0x465,_0x353051._0x49fb23)];if(!_0x27a859[_0x287054(_0x353051._0x286572,_0x353051._0x4a735a)])return'restart';if(_0x69a68e[_0x3f45d0(0x44c,_0x353051._0x182426)]===_0x3f45d0(0x57e,0x5a5)+'ed')return _0x287054(_0x353051._0x2c482f,0x39c);return _0x287054(0x5a0,0x465);}async function main(){const _0x308e80={_0x5cb51d:0x465,_0x59918c:0x173,_0x35a866:0x263,_0x3a7eb7:0x150,_0x575b9f:0x1b3,_0xf5ab3b:0x199,_0x1fb352:0x35b,_0x2bd5f:0x234,_0x14e030:0x2f2,_0x4e560c:0x97,_0x44ea0e:0x3ea,_0x2e4fcf:0x200,_0x111e02:0x354,_0xbea019:0x1cd,_0xd8c1dc:0x2f6,_0x54d803:0x1ee,_0x2d29cb:0x4be,_0x3329c4:0x4d2,_0x4d72a0:0x295,_0x42fac4:0x12f,_0xde14f0:0x7,_0xda41eb:0x2bf,_0x308a3d:0x376,_0x3392de:0x120,_0x4a4c20:0x170,_0x26891b:0x73,_0xdcf053:0xea,_0x55b5d5:0x4b,_0x53865c:0x346,_0x187876:0x1bf,_0x1d835c:0x77,_0x48ad32:0x43c,_0x5c198a:0x590,_0x6160d5:0xd,_0xab6016:0x5d,_0x2f8237:0x20d,_0x4e358c:0x490,_0x377a3d:0x157,_0x56514e:0x17b,_0x1b8f20:0x158,_0x19cfcd:0x127,_0x347b21:0x164,_0x54b0ed:0x10d,_0x125887:0x24,_0x428539:0x35a,_0x492fe6:0x54f,_0x49d7d4:0x4c,_0x105e93:0x1df,_0x4e1844:0x213,_0x351a20:0x2a0,_0x9e0ae7:0x331,_0x1db904:0x18a,_0x410bf3:0x27d,_0xacc4b0:0x18a,_0xf31180:0x204,_0x2851ca:0x15f,_0x351a0d:0x1d2,_0xa8eb1d:0x23a,_0x55cb69:0x2f7,_0x355c7f:0x316,_0x451b98:0x469,_0x2cd9e6:0x215,_0x17161b:0x1d,_0x4b6e73:0x66,_0x3ef063:0x55a,_0x413153:0x536,_0x37eb74:0x68a,_0x31160d:0x50d,_0xe1520b:0x59,_0x42ac6e:0xd1,_0x1ff69b:0x455,_0x37db42:0x1bb,_0x4dfea8:0xab,_0x5a92c1:0x6f,_0x21070c:0x15c,_0x6a2ec4:0x1b5,_0x1bf130:0x13d,_0x22bd36:0xc5,_0x2a30f0:0x115,_0x592e12:0x20c,_0x3e0e14:0x222,_0x70b428:0x4f5,_0x7b43fa:0x25d,_0x41c1e7:0x57,_0x5a2aac:0x342,_0x107f32:0x102,_0x5ba944:0x6f7,_0x104722:0x403,_0x4f7519:0x289,_0x1d4d5:0xac,_0x5bf9ca:0x54,_0x429b51:0x12,_0x460a4d:0x26b,_0x5ba1bb:0x5c,_0x512eb8:0x478,_0x42f2ee:0x4b4,_0x5b9fd7:0x121,_0x5aa7c7:0x44d,_0x2ccc73:0x509,_0x542488:0x265,_0x189601:0x206,_0xb0c647:0x163,_0x234928:0x387,_0x1608da:0x38e,_0x3087e6:0x6b,_0x43f73b:0x22e,_0x48b355:0x264,_0x265548:0x2eb,_0x11bee7:0x1ec,_0xfa419:0x1e5,_0xcde5eb:0x1d,_0x1f20ce:0x24e,_0x2512f5:0x374,_0x2ce4e0:0x16e,_0x5bf4e5:0x402,_0x20ef14:0x16d,_0x36cb88:0x442,_0x4d495b:0x18c,_0x480cd1:0x5d,_0x5c118b:0x15b,_0x2ed9c1:0xfa,_0xa946a4:0x41e,_0x58e15e:0x3e0,_0x1bc009:0x388,_0xb4ba64:0x7,_0x407290:0x100,_0x577de2:0x9d,_0x139d63:0x280,_0x385188:0x2e4,_0x2dd751:0x168,_0x2813a1:0x414,_0xcc15e8:0x35d,_0x30d700:0x515,_0x5968d6:0x11e,_0x5035c2:0x3d5,_0x24ce8b:0xe,_0x5f0bd8:0x2fa,_0x4657e8:0x43a,_0x95d946:0x199,_0x55e530:0x355,_0x136446:0x30f,_0x25ed98:0x476,_0x556636:0x36b,_0x231499:0x3ef,_0x161095:0x2fc,_0x315153:0x329,_0x9e6e64:0x28f,_0x7e9478:0x425,_0x143a81:0x506,_0x5524a9:0x465,_0x4d9d50:0x542,_0x1285b1:0x408,_0x58527d:0x236,_0x26d6c1:0x48d,_0x3130e5:0x2b0,_0x58de0a:0x1b0,_0x300906:0x26e,_0x1eba54:0x33f,_0x44824c:0x1fe,_0x28213c:0x2e3},_0x67c52c={_0x10abb8:0x52c},_0x5baee3={_0x233304:0x2ff},_0x491eb4={_0x125fc4:0x29b,_0x2ffc68:0x2f6,_0x2b2fb0:0x257,_0x57be62:0x5c6,_0x22deb2:0x2c7,_0x3e6ac2:0x10b,_0x2fb8b1:0x3a5},_0x275fa2={_0x58c1dd:0x1cf,_0x523f45:0x32e,_0xb31a9c:0x3d0,_0x3fe794:0x19d,_0x24234e:0x25d,_0x305b50:0x31e,_0x324a00:0x184,_0x3e1bfc:0xa1,_0x11abe3:0x3c1,_0x1cf536:0x128,_0x42061f:0x78,_0x3e0b53:0x4ce,_0x2d887b:0x43e,_0x3df54a:0x176,_0x2308dd:0x244,_0x3071dd:0x134,_0x2e299e:0x117,_0x306509:0xe4},_0x12928d={_0xa8da50:0x7},_0x3f2c45={_0x470c86:0x706},_0x569f78={_0x2bf0eb:0x1b1},_0x33b24f={_0x36a427:0xa2},_0x3c2dbc={_0x5e9a2a:0x263},_0x39404d={'vbDzY':function(_0x29231c,_0x416b95){return _0x29231c(_0x416b95);},'eOCtj':_0x48cf0a(0x3a6,_0x308e80._0x5cb51d),'mtkck':function(_0x3be4a0,_0x58b75f,_0x46becc){return _0x3be4a0(_0x58b75f,_0x46becc);},'EzoWb':function(_0x41223e,_0x54dd48){return _0x41223e===_0x54dd48;},'kFmzp':function(_0xf27ff4,_0x110c8b){return _0xf27ff4 in _0x110c8b;},'ybsSp':function(_0x4a60b2,_0x5d92b2,_0xac0f28){return _0x4a60b2(_0x5d92b2,_0xac0f28);},'yDdpt':_0x48cf0a(0x17e,0x212),'zevcN':_0x48cf0a(_0x308e80._0x59918c,0x371),'rlQuK':_0x48cf0a(_0x308e80._0x35a866,_0x308e80._0x3a7eb7)+'e','yAEuF':function(_0x48fb62,_0x26d072){return _0x48fb62(_0x26d072);},'ItsER':function(_0x4f1618,_0x563eb6){return _0x4f1618(_0x563eb6);},'JMcAN':_0x346ef4(_0x308e80._0x575b9f,_0x308e80._0xf5ab3b)+_0x346ef4(0x48,0x4c)+_0x346ef4(_0x308e80._0x1fb352,_0x308e80._0x2bd5f)+'dy\x20runni'+'ng.\x20Left'+_0x346ef4(_0x308e80._0x14e030,0x27f)+'ed.','TcaSd':function(_0x5af65f){return _0x5af65f();},'npWkr':_0x346ef4(_0x308e80._0x4e560c,0x282)+'ed','QcEmX':function(_0x46b07a,_0x3dc9a0,_0xbdf095){return _0x46b07a(_0x3dc9a0,_0xbdf095);},'EJPuk':function(_0x202628,_0x50f1d7,_0x3f82eb){return _0x202628(_0x50f1d7,_0x3f82eb);},'ZHrEI':function(_0x141007){return _0x141007();},'KMZUu':_0x346ef4(_0x308e80._0x44ea0e,_0x308e80._0x2e4fcf),'pSRlq':_0x346ef4(0x533,_0x308e80._0x111e02),'kbLtK':_0x48cf0a(0x2c1,_0x308e80._0xbea019),'NyJsv':function(_0x37b04a,_0x2aae72){return _0x37b04a(_0x2aae72);},'VZdlJ':'Starting'+_0x48cf0a(0x1ed,0x20)+'runtime.'+_0x48cf0a(_0x308e80._0xd8c1dc,_0x308e80._0x54d803)+_0x48cf0a(_0x308e80._0x2d29cb,_0x308e80._0x3329c4)+_0x48cf0a(0x287,0x2ca)},[,,_0x28b72e='help',..._0x17e1cb]=process[_0x48cf0a(_0x308e80._0x4d72a0,_0x308e80._0x42fac4)],_0x4c15e1=_0x39404d[_0x346ef4(_0x308e80._0xde14f0,-0x5d)](hasFlag,_0x17e1cb,_0x346ef4(_0x308e80._0xda41eb,_0x308e80._0x308a3d)+'e'),_0x24ee4a=hasFlag(_0x17e1cb,'--json');if(_0x39404d[_0x346ef4(-_0x308e80._0x3392de,-0x37)](_0x28b72e,_0x346ef4(-0x1ce,-0x16))){const _0x19932e=hasFlag(_0x17e1cb,_0x346ef4(_0x308e80._0x4a4c20,0x19f));!_0x19932e&&await ensurePairPrerequisites();const _0x89cc65=resolveGatewayAuth();if(_0x39404d[_0x346ef4(_0x308e80._0x26891b,0x22c)](_0x346ef4(-0x102,0x4b),_0x89cc65))throw new Error(_0x89cc65[_0x346ef4(_0x308e80._0xdcf053,_0x308e80._0x55b5d5)]);const _0x195b12=_0x39404d[_0x346ef4(0x146,_0x308e80._0x53865c)](readFlag,_0x17e1cb,_0x39404d[_0x346ef4(_0x308e80._0x187876,_0x308e80._0x1d835c)])??_0x39404d['mtkck'](readFlag,_0x17e1cb,'-s')??_0x48cf0a(_0x308e80._0x48ad32,_0x308e80._0x5c198a)+'registry'+'.clawket'+_0x346ef4(0x62,-_0x308e80._0x6160d5),_0x90f290=readFlag(_0x17e1cb,_0x39404d['zevcN'])??readFlag(_0x17e1cb,'-n')??getDefaultBridgeDisplayName(),_0xb917fe=_0x39404d[_0x346ef4(0x1a1,-_0x308e80._0xab6016)](readFlag,_0x17e1cb,_0x39404d[_0x48cf0a(0x31b,_0x308e80._0x2f8237)]),_0x5bc52a={};_0x5bc52a['serverUr'+'l']=_0x195b12,_0x5bc52a['displayN'+_0x346ef4(_0x308e80._0x4e358c,0x396)]=_0x90f290,_0x5bc52a[_0x346ef4(_0x308e80._0x377a3d,_0x308e80._0x56514e)+_0x346ef4(0x1ff,_0x308e80._0x1b8f20)]=_0x89cc65[_0x346ef4(_0x308e80._0x19cfcd,0x2b7)],_0x5bc52a[_0x48cf0a(0x1db,_0x308e80._0x347b21)+_0x48cf0a(0x302,0x228)]=_0x89cc65['password'];const _0x1444a6=await _0x39404d[_0x346ef4(_0x308e80._0x54b0ed,_0x308e80._0x125887)](pairGateway,_0x5bc52a),_0x2dc8bf=await writePairingQrPng(_0x1444a6,_0xb917fe),_0x14cb01=getServiceStatus(),_0x2bd85f=decidePairServiceAction(_0x1444a6,_0x14cb01);if(_0x2bd85f===_0x346ef4(0x1d9,0x37b)){_0x24ee4a?_0x39404d['ItsER'](printJson,buildPairingJson(_0x1444a6,_0x2dc8bf,_0x14cb01,_0x48cf0a(_0x308e80._0x428539,_0x308e80._0x492fe6)+_0x346ef4(-0x158,_0x308e80._0x49d7d4)+_0x346ef4(_0x308e80._0x105e93,0x234)+'dy\x20runni'+_0x48cf0a(0x354,_0x308e80._0x4e1844)+'\x20unchang'+'ed.')):(printPairingInfo(_0x1444a6,_0x2dc8bf),console[_0x346ef4(_0x308e80._0x351a20,0x22e)](_0x39404d[_0x346ef4(_0x308e80._0x9e0ae7,_0x308e80._0x1db904)]),printServiceResult(null,_0x14cb01));return;}try{const _0x476c67=_0x39404d[_0x48cf0a(0x18a,_0x308e80._0x410bf3)](_0x2bd85f,_0x346ef4(-0xb8,0xa4))?_0x39404d[_0x48cf0a(0x54e,0x36e)](installService):restartService(),_0x5afdd8=_0x39404d[_0x48cf0a(_0x308e80._0xacc4b0,_0x308e80._0xf31180)](_0x2bd85f,_0x48cf0a(0x265,0x1ab))?_0x48cf0a(_0x308e80._0x2851ca,_0x308e80._0x351a0d)+_0x346ef4(_0x308e80._0xa8eb1d,_0x308e80._0x55cb69)+_0x48cf0a(_0x308e80._0x355c7f,_0x308e80._0x451b98)+_0x346ef4(0x1d0,_0x308e80._0x2cd9e6)+'e.':_0x1444a6[_0x346ef4(_0x308e80._0x17161b,_0x308e80._0x4b6e73)]===_0x39404d[_0x48cf0a(0x4b0,_0x308e80._0x3ef063)]?_0x48cf0a(_0x308e80._0x413153,_0x308e80._0x37eb74)+_0x48cf0a(0x3df,_0x308e80._0x31160d)+'changed.'+_0x346ef4(_0x308e80._0xe1520b,_0x308e80._0x42ac6e)+'ed\x20backg'+_0x48cf0a(0x297,_0x308e80._0x1ff69b)+_0x346ef4(0x227,_0x308e80._0x37db42)+_0x346ef4(0x51,0x55)+'e\x20new\x20pa'+_0x346ef4(_0x308e80._0x4dfea8,_0x308e80._0x5a92c1):_0x346ef4(_0x308e80._0x21070c,0x199)+_0x346ef4(_0x308e80._0x6a2ec4,_0x308e80._0x49d7d4)+_0x48cf0a(0x3ba,0x36c)+_0x48cf0a(0x29b,0x3a9)+_0x48cf0a(0x343,_0x308e80._0x1bf130)+_0x346ef4(_0x308e80._0x22bd36,0x229)+_0x48cf0a(0x2a7,0x256)+_0x48cf0a(0x2d9,_0x308e80._0x2a30f0);_0x24ee4a?printJson(buildPairingJson(_0x1444a6,_0x2dc8bf,_0x476c67,_0x5afdd8)):(printPairingInfo(_0x1444a6,_0x2dc8bf),_0x39404d['QcEmX'](printServiceResult,_0x5afdd8,_0x476c67));}catch(_0x14b2a3){console[_0x48cf0a(_0x308e80._0x592e12,_0x308e80._0x3e0e14)](_0x48cf0a(_0x308e80._0x70b428,0x5e9)+'succeede'+_0x346ef4(-_0x308e80._0x7b43fa,-_0x308e80._0x41c1e7)+_0x346ef4(0x43c,0x285)+_0x48cf0a(0x2e5,0x1c4)+'n\x20failed'+':\x20'+formatError(_0x14b2a3)),console[_0x48cf0a(0x20c,_0x308e80._0x5a2aac)](_0x346ef4(-0xc5,0xfe)+'still\x20ru'+_0x346ef4(_0x308e80._0x107f32,0x217)+_0x346ef4(0x27b,0x213)+_0x346ef4(-0x30,0x11f)+_0x48cf0a(0x530,_0x308e80._0x5ba944)+'run\x22\x20man'+_0x346ef4(_0x308e80._0x104722,_0x308e80._0x4f7519)),process['exitCode']=0x1;}return;}function _0x48cf0a(_0x30d177,_0x489b07){return _0x11b7ab(_0x489b07,_0x30d177-_0x3c2dbc._0x5e9a2a);}if(_0x28b72e===_0x346ef4(-_0x308e80._0x1d4d5,-_0x308e80._0x5bf9ca)+_0x346ef4(-0x1ca,_0x308e80._0x429b51)){const _0x281ba1=_0x39404d['EJPuk'](readFlag,_0x17e1cb,'--qr-fil'+'e'),_0x1831fb=_0x39404d[_0x48cf0a(0x54e,0x642)](resolveGatewayAuth);if(_0x48cf0a(0x20c,_0x308e80._0x460a4d)in _0x1831fb)throw new Error(_0x1831fb[_0x346ef4(0x38,0x4b)]);const _0x4d5cee={};_0x4d5cee[_0x346ef4(_0x308e80._0x5ba1bb,0x17b)+'oken']=_0x1831fb[_0x48cf0a(_0x308e80._0x512eb8,_0x308e80._0x42f2ee)],_0x4d5cee[_0x48cf0a(0x1db,0x281)+_0x48cf0a(0x302,_0x308e80._0x5b9fd7)]=_0x1831fb['password'];const _0x153aae=await refreshAccessCode(_0x4d5cee),_0x268209=await writePairingQrPng(_0x153aae,_0x281ba1);_0x24ee4a?_0x39404d[_0x48cf0a(0x45e,_0x308e80._0x5aa7c7)](printJson,buildPairingJson(_0x153aae,_0x268209,getServiceStatus(),_0x346ef4(0x167,0x334)+_0x48cf0a(0x32b,_0x308e80._0x2ccc73)+'reshed.')):_0x39404d['QcEmX'](printPairingInfo,_0x153aae,_0x268209);return;}if(_0x28b72e===_0x48cf0a(_0x308e80._0x542488,_0x308e80._0x189601)){const _0x4baba1=requirePairingConfig(),_0x1233d8=installService();console['log']('Installe'+_0x346ef4(_0x308e80._0xb0c647,0x2bd)+_0x48cf0a(0x2ce,0x3ba)+_0x346ef4(_0x308e80._0x234928,_0x308e80._0x1608da)+'\x20gateway'+'\x20'+_0x4baba1[_0x346ef4(0x2dd,0x28f)+'d']+'.'),printServiceResult(null,_0x1233d8);return;}if(_0x28b72e==='restart'){const _0x246780=requirePairingConfig(),_0x31bac3=_0x39404d[_0x346ef4(0x232,0x56)](restartService);console[_0x346ef4(_0x308e80._0x3087e6,_0x308e80._0x43f73b)](_0x346ef4(_0x308e80._0x48b355,_0x308e80._0x265548)+_0x346ef4(0x437,0x2bd)+_0x346ef4(_0x308e80._0x11bee7,0x10d)+'vice\x20for'+_0x346ef4(_0x308e80._0xfa419,-_0x308e80._0xcde5eb)+'\x20'+_0x246780[_0x346ef4(0x36d,0x28f)+'d']+'.'),printServiceResult(null,_0x31bac3);return;}function _0x346ef4(_0x1d88ca,_0x2a6c92){return _0x11b7ab(_0x1d88ca,_0x2a6c92-_0x33b24f._0x36a427);}if(_0x28b72e===_0x39404d[_0x48cf0a(_0x308e80._0x1f20ce,_0x308e80._0x11bee7)]){const _0xef5103=stopService();console[_0x48cf0a(0x3ef,0x3e4)](_0x48cf0a(0x249,0x3e8)+_0x346ef4(_0x308e80._0x2512f5,_0x308e80._0x2ce4e0)+_0x346ef4(0x90,_0x308e80._0x49d7d4)+'ce.'),printServiceResult(null,_0xef5103);return;}if(_0x28b72e===_0x48cf0a(0x4ca,_0x308e80._0x5bf4e5)+'l'){const _0x33c49e=uninstallService();console['log'](_0x346ef4(_0x308e80._0x20ef14,0x2aa)+'backgrou'+'nd\x20servi'+_0x346ef4(_0x308e80._0x36cb88,0x2c4)+'tration.'),_0x39404d[_0x346ef4(_0x308e80._0x4d495b,-_0x308e80._0x480cd1)](printServiceResult,null,_0x33c49e);return;}if(_0x39404d[_0x48cf0a(0x18a,0x311)](_0x28b72e,_0x39404d[_0x346ef4(_0x308e80._0x5c118b,_0x308e80._0x2ed9c1)])){stopService(),deletePairingConfig(),console[_0x346ef4(_0x308e80._0xa946a4,0x22e)]('Cleared\x20'+_0x346ef4(_0x308e80._0x58e15e,_0x308e80._0x542488)+_0x346ef4(0x1ea,0x68)+getPairingConfigPath());return;}if(_0x28b72e===_0x346ef4(0x2af,_0x308e80._0x1bc009)){printStatus();return;}if(_0x28b72e===_0x48cf0a(0x3f0,0x40f)){const _0x2fbdc7=_0x39404d[_0x346ef4(_0x308e80._0xb4ba64,0x9a)](Number,readFlag(_0x17e1cb,'--lines')??_0x39404d[_0x346ef4(-_0x308e80._0x407290,_0x308e80._0x577de2)]),_0xe302cb=parseLookbackToMs(readFlag(_0x17e1cb,'--last')??readFlag(_0x17e1cb,'-l')),_0x491e95=readRecentCliLogs({'lines':_0x2fbdc7,'lastMs':_0xe302cb,'includeErrorLog':hasFlag(_0x17e1cb,_0x346ef4(0x28c,_0x308e80._0x139d63))});if(_0x24ee4a){const _0x441bbc={};_0x441bbc['ok']=!![],_0x441bbc['lines']=_0x491e95,_0x39404d[_0x346ef4(_0x308e80._0x385188,_0x308e80._0x2dd751)](printJson,_0x441bbc);}else _0x491e95['length']===0x0?console[_0x346ef4(0x153,_0x308e80._0x43f73b)](_0x346ef4(_0x308e80._0x2813a1,_0x308e80._0xcc15e8)+_0x48cf0a(0x3fc,_0x308e80._0x30d700)+'logs\x20fou'+_0x346ef4(0x222,_0x308e80._0x5968d6)):console[_0x346ef4(_0x308e80._0x5035c2,_0x308e80._0x43f73b)](_0x491e95[_0x346ef4(_0x308e80._0x24ce8b,0x84)]('\x0a'));return;}if(_0x28b72e===_0x48cf0a(0x171,_0x308e80._0x5f0bd8)){const _0x208ae6=await buildDoctorReport();_0x24ee4a?_0x39404d[_0x346ef4(-0x8f,0x168)](printJson,_0x208ae6):printDoctorReport(_0x208ae6);return;}if(_0x28b72e===_0x48cf0a(_0x308e80._0x4657e8,0x447)){const _0x4de153=requirePairingConfig(),_0x419913=resolveGatewayUrl(readFlag(_0x17e1cb,_0x48cf0a(_0x308e80._0x95d946,0xd1)+_0x346ef4(_0x308e80._0x55e530,_0x308e80._0x136446))??_0x39404d[_0x346ef4(_0x308e80._0x25ed98,_0x308e80._0x556636)](readFlag,_0x17e1cb,'-g')),_0x54cd4b=_0xc55ba4=>{function _0x574f86(_0x163a7e,_0x558f49){return _0x48cf0a(_0x558f49- -0x148,_0x163a7e);}console['log']('['+Date[_0x574f86(-0x2e,_0x569f78._0x2bf0eb)]()+']\x20'+_0xc55ba4);};!_0x4c15e1?(console[_0x48cf0a(_0x308e80._0x231499,0x567)](_0x346ef4(_0x308e80._0x161095,_0x308e80._0x315153)+_0x346ef4(-0x18d,0x58)+_0x4de153[_0x346ef4(0x2c5,_0x308e80._0x9e6e64)+'d']),console['log'](_0x48cf0a(_0x308e80._0x7e9478,0x51e)+_0x346ef4(0x334,0x1f1)+_0x4de153[_0x346ef4(0x250,0xcc)+'Id']),console['log'](_0x346ef4(0x495,0x329)+'URL:\x20'+_0x419913),console[_0x48cf0a(0x3ef,_0x308e80._0x143a81)](''),console['log'](_0x39404d['VZdlJ']),console['log']('')):_0x54cd4b(_0x48cf0a(_0x308e80._0x5524a9,_0x308e80._0x4d9d50)+_0x48cf0a(_0x308e80._0x1285b1,_0x308e80._0x58527d)+_0x346ef4(_0x308e80._0x26d6c1,_0x308e80._0x3130e5)+_0x346ef4(_0x308e80._0x58de0a,0xee)+_0x346ef4(_0x308e80._0x300906,0x252)+_0x48cf0a(_0x308e80._0x1eba54,_0x308e80._0x44824c)+_0x4de153[_0x346ef4(_0x308e80._0xa8eb1d,0x28f)+'d']);_0x4c15e1&&writeServiceState();const _0x1a937e=new BridgeRuntime({'config':_0x4de153,'gatewayUrl':_0x419913,'onLog':_0x590849=>{function _0x484756(_0x23c099,_0x755da9){return _0x346ef4(_0x755da9,_0x23c099-0x3a5);}_0x54cd4b(_0x484756(_0x3f2c45._0x470c86,0x638)+']\x20'+_0x590849);},'onStatus':_0x50a739=>{function _0x2895f9(_0x435337,_0x4832ac){return _0x346ef4(_0x4832ac,_0x435337-0x169);}if(_0x50a739['lastErro'+'r']){_0x54cd4b(_0x308ab8(_0x275fa2._0x58c1dd,_0x275fa2._0x523f45)+'\x20relay='+(_0x50a739[_0x2895f9(_0x275fa2._0xb31a9c,0x451)+_0x308ab8(-0x23,-0x132)]?'up':_0x308ab8(0x9,-_0x275fa2._0x3fe794))+('\x20gateway'+'=')+(_0x50a739['gatewayC'+'onnected']?'up':_0x2895f9(0x16b,0xa1))+(_0x308ab8(0xe2,_0x275fa2._0x24234e)+'=')+_0x50a739['clientCo'+'unt']+_0x308ab8(_0x275fa2._0x305b50,0x521)+_0x50a739[_0x2895f9(0x236,_0x275fa2._0x324a00)+'r']);return;}function _0x308ab8(_0x97ab8,_0x3dedde){return _0x346ef4(_0x3dedde,_0x97ab8-_0x12928d._0xa8da50);}_0x39404d[_0x308ab8(_0x275fa2._0x3e1bfc,0x41)](_0x54cd4b,_0x2895f9(0x331,_0x275fa2._0x11abe3)+'\x20relay='+(_0x50a739[_0x2895f9(0x3d0,0x251)+'nected']?'up':_0x308ab8(0x9,-_0x275fa2._0x1cf536))+(_0x2895f9(0x14c,-_0x275fa2._0x42061f)+'=')+(_0x50a739[_0x2895f9(_0x275fa2._0x3e0b53,_0x275fa2._0x2d887b)+_0x2895f9(_0x275fa2._0x3df54a,0x36f)]?'up':'down')+(_0x2895f9(_0x275fa2._0x2308dd,_0x275fa2._0x3071dd)+'=')+_0x50a739[_0x2895f9(_0x275fa2._0x2e299e,-_0x275fa2._0x306509)+'unt']);},'onPendingPairRequest':_0x495830=>{const _0xd00a4c={_0x1a2179:0x432};function _0x1dc6f8(_0x4ca01f,_0x237b7f){return _0x48cf0a(_0x4ca01f- -_0xd00a4c._0x1a2179,_0x237b7f);}function _0x129ae0(_0x402818,_0x18f643){return _0x48cf0a(_0x18f643-0xb2,_0x402818);}_0x54cd4b(_0x1dc6f8(0xb1,0x18e)+_0x129ae0(_0x491eb4._0x125fc4,_0x491eb4._0x2ffc68)+_0x1dc6f8(-0x81,-_0x491eb4._0x2b2fb0)+'='+_0x495830[_0x1dc6f8(0xef,-0x46)+'d']+(_0x129ae0(0x35e,0x3fb)+'d=')+(_0x495830[_0x129ae0(0x6a9,_0x491eb4._0x57be62)]||_0x129ae0(_0x491eb4._0x22deb2,0x3a5)+'>')+_0x1dc6f8(-0x1c8,-_0x491eb4._0x3e6ac2)+(_0x495830['displayN'+'ame']??_0x129ae0(0x26d,_0x491eb4._0x2fb8b1)+'>'));}});_0x1a937e[_0x48cf0a(0x3c6,_0x308e80._0x28213c)]();const _0x336f8e=async()=>{const _0x99e95b={_0x37b786:0x3d},_0x3e5348=('0|2|1|3|'+'4')[_0x1a7b39(_0x67c52c._0x10abb8,0x411)]('|');function _0x1a7b39(_0x656085,_0xd34828){return _0x346ef4(_0xd34828,_0x656085-_0x5baee3._0x233304);}function _0x344228(_0x4bbd4b,_0x3647d9){return _0x346ef4(_0x4bbd4b,_0x3647d9-_0x99e95b._0x37b786);}let _0x166f83=0x0;while(!![]){switch(_0x3e5348[_0x166f83++]){case'0':process['off'](_0x39404d[_0x344228(0xdb,0x2d7)],_0x336f8e);continue;case'1':await _0x1a937e['stop']();continue;case'2':process[_0x344228(0x394,0x1da)]('SIGTERM',_0x336f8e);continue;case'3':_0x4c15e1&&clearServiceState(process[_0x344228(0xd8,-0x28)]);continue;case'4':process[_0x1a7b39(0x4ea,0x5a7)](0x0);continue;}break;}};process['on'](_0x48cf0a(0x3a6,0x508),_0x336f8e),process['on'](_0x48cf0a(0x403,0x3d2),_0x336f8e),await new Promise(()=>{});}printHelp();}function printPairingInfo(_0x5c374d,_0x3b7480){const _0x4c2b63={_0x2a1f28:0x401,_0x14e84d:0x3ed,_0x2cd8bf:0x47c,_0x4950be:0x140,_0x54f5e5:0x46f,_0x566854:0x50,_0x1081f6:0x657,_0x4059a4:0x4ef,_0xc0dfb0:0x48a,_0x3f1672:0x68,_0x5c626a:0x3fd,_0x5034e8:0x50,_0x4a9f4d:0x190,_0x32b801:0x3d7,_0x11f623:0x11c};_0x5c374d[_0x19a3b8(-0x218,-0x321)]==='refreshe'+'d'&&console[_0x163acf(0x293,0x397)](_0x163acf(0x313,_0x4c2b63._0x2a1f28)+'lready\x20p'+_0x19a3b8(-0x240,-_0x4c2b63._0x14e84d)+_0x163acf(_0x4c2b63._0x2cd8bf,0x389)+_0x19a3b8(-_0x4c2b63._0x4950be,-0x1ac)+_0x163acf(0x3de,_0x4c2b63._0x54f5e5)+'e.');console[_0x163acf(0x19e,0x397)](_0x163acf(0x36d,0x492)+'ID:\x20'+_0x5c374d['config']['gatewayI'+'d']),console[_0x19a3b8(-_0x4c2b63._0x566854,0xb0)](_0x163acf(_0x4c2b63._0x1081f6,_0x4c2b63._0x4059a4)+_0x163acf(0x2c3,_0x4c2b63._0xc0dfb0)+_0x19a3b8(-_0x4c2b63._0x3f1672,-0x8f)+'e\x20Clawke'+_0x163acf(0x462,_0x4c2b63._0x5c626a));const _0x48dfc8={};_0x48dfc8['small']=!![],_0x52e07e['generate'](_0x5c374d['qrPayloa'+'d'],_0x48dfc8);function _0x19a3b8(_0xd2a459,_0x1a6258){return _0x11b7ab(_0x1a6258,_0xd2a459- -0x1dc);}console[_0x19a3b8(-_0x4c2b63._0x5034e8,-_0x4c2b63._0x4a9f4d)](_0x163acf(_0x4c2b63._0x32b801,0x43e)+'\x20'+formatLocalTime(_0x5c374d['accessCo'+'deExpire'+_0x163acf(0x8a,0x19f)]));function _0x163acf(_0x3f02a7,_0x25cce4){return _0x11b7ab(_0x3f02a7,_0x25cce4-0x20b);}console['log'](_0x19a3b8(_0x4c2b63._0x11f623,0x7)+':\x20'+_0x3b7480);}function printStatus(){const _0x706d73={_0x41fe2a:0x898,_0x303172:0x69c,_0x17f57b:0x76f,_0x398e24:0x1df,_0x500f5e:0x5ea,_0x2d4f0b:0x703,_0x544d64:0x7a7,_0x38de3e:0x59e,_0x579bfe:0x68d,_0x2cf2fa:0x79,_0x10d8a7:0x53,_0x4a3815:0x86,_0x481917:0x4f9,_0x5d1e9f:0x78d,_0x89e45f:0x5a1,_0x2afd39:0xdb,_0x14c34c:0x3b,_0x5a8dc7:0x167,_0x3d26b7:0x210,_0x3d87f6:0x212,_0x3c88e5:0x6b7,_0x59f82c:0xc1,_0x5e346c:0xba,_0x124753:0xca,_0x26df4:0x788,_0x21e0f5:0x97,_0x10156e:0x17d,_0x1f16e4:0x42,_0x415058:0xb,_0x1c68f:0xdc,_0x5defc5:0x99,_0x316fc9:0x72b,_0x62514c:0x601,_0x50b9e:0xd4,_0x3ee2d0:0x282,_0x5332e7:0x83c,_0x4b165e:0xc6,_0x29b53e:0x668},_0x188814={_0x272026:0xd2},_0x453c1c={'xOgBR':function(_0xe14d3d){return _0xe14d3d();}},_0x1f8a90=_0x453c1c[_0x49864a(_0x706d73._0x41fe2a,_0x706d73._0x303172)](readPairingConfig),_0x6ec48=getServiceStatus(),{logPath:_0x59a66c,errorLogPath:_0x5bf37d}=getServicePaths();function _0x3d5c48(_0x56d6c2,_0x342d15){return _0x11b7ab(_0x56d6c2,_0x342d15- -_0x188814._0x272026);}const _0xd48072=readCliVersion();console[_0x49864a(_0x706d73._0x17f57b,0x703)](_0x3d5c48(_0x706d73._0x398e24,0x1f6)+'\x20'+_0xd48072);function _0x49864a(_0x3b6ef6,_0x4d532f){return _0x11b7ab(_0x3b6ef6,_0x4d532f-0x577);}!_0x1f8a90?console[_0x49864a(_0x706d73._0x500f5e,_0x706d73._0x2d4f0b)](_0x49864a(0x62d,0x555)+_0x49864a(0x8f7,_0x706d73._0x544d64)+_0x49864a(_0x706d73._0x38de3e,_0x706d73._0x579bfe)+_0x453c1c[_0x3d5c48(-_0x706d73._0x2cf2fa,_0x706d73._0x10d8a7)](getPairingConfigPath)+')'):(console[_0x3d5c48(_0x706d73._0x4a3815,0xba)](_0x49864a(_0x706d73._0x481917,0x555)+_0x49864a(0x505,0x6ae)),console['log'](_0x49864a(0x9cb,0x7fe)+_0x3d5c48(0x4d,-0x11c)+_0x1f8a90['gatewayI'+'d']),console['log']('Instance'+':\x20'+_0x1f8a90[_0x49864a(_0x706d73._0x5d1e9f,_0x706d73._0x89e45f)+'Id']),console[_0x49864a(0x727,0x703)](_0x3d5c48(-_0x706d73._0x2afd39,_0x706d73._0x14c34c)+'RL:\x20'+_0x1f8a90['serverUr'+'l']),console[_0x3d5c48(0x57,0xba)](_0x3d5c48(_0x706d73._0x5a8dc7,_0x706d73._0x3d26b7)+(_0x1f8a90[_0x3d5c48(_0x706d73._0x3d87f6,0x18)+_0x49864a(_0x706d73._0x3c88e5,0x86b)]??'-'))),console[_0x3d5c48(_0x706d73._0x59f82c,_0x706d73._0x5e346c)](_0x3d5c48(0x7a,_0x706d73._0x124753)+'\x20'+resolveGatewayUrl()),console[_0x49864a(0x72b,0x703)](_0x49864a(0x62f,0x7c5)+'\x20'+(_0x6ec48[_0x49864a(0x5b8,_0x706d73._0x26df4)+'d']?'installe'+'d':_0x3d5c48(-0x1a8,-0x16a)+_0x3d5c48(-_0x706d73._0x21e0f5,-_0x706d73._0x10156e))+'\x20('+_0x6ec48[_0x3d5c48(_0x706d73._0x1f16e4,-0xe9)]+')'),console[_0x3d5c48(_0x706d73._0x415058,0xba)](_0x3d5c48(-_0x706d73._0x1c68f,_0x706d73._0x5defc5)+'\x20'+(_0x6ec48[_0x49864a(_0x706d73._0x316fc9,0x59c)]?_0x49864a(_0x706d73._0x62514c,0x6b5):'no')),console[_0x3d5c48(-_0x706d73._0x50b9e,0xba)](_0x49864a(0x491,0x612)+(_0x6ec48[_0x3d5c48(_0x706d73._0x3ee2d0,0x1c8)+_0x49864a(0x837,_0x706d73._0x5332e7)]||'-')),console['log'](_0x49864a(0x63f,0x70c)+_0x59a66c),console['log']('Error\x20Lo'+_0x3d5c48(0x2ad,_0x706d73._0x4b165e)+_0x5bf37d),!_0x1f8a90&&(process[_0x49864a(_0x706d73._0x29b53e,0x476)]=0x1);}function printServiceResult(_0x2e0cc1,_0x97d195){const _0x544fdb={_0x479fae:0x3e9,_0x119b30:0xa1,_0x38fa3d:0x2a2,_0x3a8217:0x1c5,_0x548e42:0x7e,_0x5f058d:0x1d8,_0x498b3e:0x380,_0x5944e9:0x212,_0x3cf6a0:0x26c,_0x388dcc:0x140,_0x411847:0x43,_0x523dfd:0x7a,_0x13e7ff:0xdd,_0xe2cd72:0x319,_0x40f900:0x347},_0x3a64f0={_0x8f3991:0x60};function _0x59d859(_0x314808,_0x17d33b){return _0x6eb3(_0x17d33b,_0x314808- -0xeb);}const _0x32c969={};_0x32c969[_0x59d859(-0x228,-_0x544fdb._0x479fae)]=_0x59d859(0xe4,-_0x544fdb._0x119b30)+'d,\x20stopp'+'ed',_0x32c969[_0x2af046(0x36c,_0x544fdb._0x38fa3d)]=_0x59d859(-_0x544fdb._0x3a8217,-_0x544fdb._0x548e42)+_0x59d859(-_0x544fdb._0x5f058d,-0x3db);const _0x2bed00=_0x32c969;_0x2e0cc1&&console[_0x59d859(0x5f,-0x9d)](_0x2e0cc1);console[_0x2af046(_0x544fdb._0x498b3e,0x1aa)](_0x2af046(_0x544fdb._0x5944e9,_0x544fdb._0x3cf6a0)+'\x20'+(_0x97d195[_0x2af046(0x288,0x22f)+'d']?_0x97d195[_0x2af046(-_0x544fdb._0x388dcc,_0x544fdb._0x411847)]?'installe'+'d,\x20runni'+'ng':_0x2bed00[_0x2af046(-_0x544fdb._0x523dfd,-_0x544fdb._0x13e7ff)]:_0x2bed00[_0x2af046(0x146,0x2a2)]));function _0x2af046(_0x5c2b8d,_0x495487){return _0x6eb3(_0x5c2b8d,_0x495487-_0x3a64f0._0x8f3991);}console[_0x2af046(_0x544fdb._0xe2cd72,0x1aa)](_0x59d859(0x13,0x9e)+_0x2af046(0x330,0x28e)+(_0x97d195[_0x2af046(_0x544fdb._0x40f900,0x2b8)+_0x59d859(0x198,0x238)]||'-'));}function printDoctorReport(_0x3f1466){const _0xd099b5={_0x2ba355:0x429,_0x317e4b:0x492,_0x341a63:0x255,_0x5a5e08:0x2b5,_0x2557d8:0x1f5,_0x88da30:0x8f,_0x5fef9a:0x4c9,_0x478bdb:0x638,_0x4a71bd:0x468,_0x481038:0xe9,_0x28496b:0x1e4,_0x2bc20a:0x265,_0x249f4c:0x49a,_0x166846:0x6f,_0x40e7a0:0x52a,_0x496889:0x35b,_0x2c9e18:0x314,_0x16591d:0x3c2,_0x9e60f4:0x4ed,_0x44d6fb:0x274,_0x596d29:0x108,_0x56f4a6:0x361,_0x2ef07f:0x5a1,_0x9447b0:0x3c2,_0xea7d00:0x3b1,_0x3b4920:0x662,_0x459923:0x2a3,_0x32b307:0x49c,_0x47fb5e:0x2a3,_0xb423d3:0x37e,_0x16cc79:0x4e4,_0x54b332:0x4b8,_0x44cf85:0x85,_0x5653ca:0x355,_0x6724c9:0x266,_0x50b4cb:0x1c4,_0x21db97:0x459,_0x3a1b51:0x2a3,_0x119f2f:0x294,_0x6931a:0x2b2,_0x139cb6:0x5e8,_0x557072:0x179,_0x2b630a:0x1f9,_0x368723:0x346,_0x3e92fc:0x2ca,_0x5ac3f5:0x540,_0x267bad:0x3d3,_0x100777:0x3a7,_0x1c5d53:0x3f7,_0x3f82ff:0x498,_0x4e5fce:0x573,_0x237a48:0x3bd,_0x554e25:0x17,_0x4830b5:0x2cd};function _0x57b884(_0x393196,_0x3f48f0){return _0x11b7ab(_0x393196,_0x3f48f0-0x117);}const _0x3dda9e={};_0x3dda9e[_0x177fdc(_0xd099b5._0x2ba355,_0xd099b5._0x317e4b)]=_0x57b884(0x29f,_0xd099b5._0x341a63);const _0x5ee4e0=_0x3dda9e;console['log'](_0x177fdc(0x212,0x308)+(_0x3f1466['paired']?'yes':'no')),console[_0x177fdc(_0xd099b5._0x5a5e08,0x468)](_0x57b884(_0xd099b5._0x2557d8,0x39e)+_0x57b884(-_0xd099b5._0x88da30,0xcd)+(_0x3f1466[_0x177fdc(0x415,_0xd099b5._0x5fef9a)+'d']??'-')),console[_0x177fdc(_0xd099b5._0x478bdb,_0xd099b5._0x4a71bd)](_0x177fdc(0x1f1,0x3e9)+_0x57b884(-0xfc,0x10d)+(_0x3f1466[_0x57b884(-0xa0,0x157)+'l']??'-')),console['log'](_0x57b884(_0xd099b5._0x481038,_0xd099b5._0x28496b)+_0x177fdc(_0xd099b5._0x2bc20a,0x363)+(_0x3f1466[_0x57b884(0x31,0x28)]??'-')),console[_0x57b884(_0xd099b5._0x249f4c,0x2a3)](_0x177fdc(0x456,0x49e)+_0x57b884(0x2a9,0x266)+(_0x3f1466[_0x57b884(_0xd099b5._0x166846,0x141)+'Id']??'-')),console['log'](_0x177fdc(0x6cc,_0xd099b5._0x40e7a0)+'\x20'+(_0x3f1466[_0x177fdc(0x2a2,0x47e)+_0x177fdc(_0xd099b5._0x496889,_0xd099b5._0x2c9e18)]?_0x177fdc(_0xd099b5._0x16591d,_0xd099b5._0x9e60f4)+'d':_0x177fdc(_0xd099b5._0x44d6fb,0x244)+'alled')+'\x20('+_0x3f1466['serviceM'+'ethod']+')'),console['log'](_0x177fdc(0x4b9,0x41c)+_0x57b884(-_0xd099b5._0x596d29,0x62)+'\x20'+(_0x3f1466[_0x57b884(0x1b1,0x35)+_0x177fdc(_0xd099b5._0x56f4a6,0x4b6)]?_0x177fdc(_0xd099b5._0x2ef07f,0x41a):'no')),console[_0x177fdc(0x3b8,0x468)](_0x177fdc(0x523,0x41c)+_0x177fdc(0x6c7,0x54c)+(_0x3f1466[_0x57b884(_0xd099b5._0x9447b0,_0xd099b5._0xea7d00)+_0x177fdc(_0xd099b5._0x3b4920,0x5a1)]||'-'));function _0x177fdc(_0x3d350c,_0x3e4292){return _0x11b7ab(_0x3d350c,_0x3e4292-0x2dc);}console[_0x57b884(0x1f4,_0xd099b5._0x459923)](_0x177fdc(0x291,0x387)+':\x20'+_0x3f1466[_0x57b884(_0xd099b5._0x32b307,0x410)]),console[_0x57b884(0xd2,_0xd099b5._0x47fb5e)](_0x57b884(_0xd099b5._0xb423d3,0x327)+_0x177fdc(_0xd099b5._0x16cc79,_0xd099b5._0x54b332)+_0x3f1466[_0x57b884(-_0xd099b5._0x44cf85,0x16b)+_0x177fdc(_0xd099b5._0x5653ca,0x2d6)]),console['log']('OpenClaw'+_0x57b884(_0xd099b5._0x6724c9,_0xd099b5._0x50b4cb)+_0x3f1466[_0x177fdc(0x63a,_0xd099b5._0x21db97)+'ConfigDi'+'r']),console[_0x57b884(0x287,_0xd099b5._0x3a1b51)]('OpenClaw'+'\x20media:\x20'+_0x3f1466[_0x57b884(0x308,_0xd099b5._0x119f2f)+_0x177fdc(0x34f,_0xd099b5._0x6931a)]),console[_0x57b884(0x268,0x2a3)]('OpenClaw'+_0x177fdc(0x4b4,0x495)+'\x20'+(_0x3f1466['openclaw'+_0x177fdc(_0xd099b5._0x139cb6,0x56d)+_0x57b884(_0xd099b5._0x557072,_0xd099b5._0x2b630a)]?'found':_0x177fdc(0x148,_0xd099b5._0x368723))),console[_0x177fdc(_0xd099b5._0x3e92fc,_0xd099b5._0x4a71bd)](_0x57b884(_0xd099b5._0x5ac3f5,_0xd099b5._0x267bad)+_0x177fdc(0x195,0x31b)+(_0x3f1466[_0x57b884(_0xd099b5._0x100777,0x294)+'TokenFou'+'nd']?_0x177fdc(0x328,0x3ac):_0x57b884(0x334,0x181))),console[_0x57b884(_0xd099b5._0x1c5d53,0x2a3)](_0x177fdc(0x377,0x563)+_0x57b884(0xf2,0x3f)+_0x3f1466[_0x57b884(0x1c2,0x75)+'ewayUrl']),console[_0x177fdc(_0xd099b5._0x3f82ff,0x468)](_0x57b884(0x495,0x39e)+_0x57b884(_0xd099b5._0x4e5fce,_0xd099b5._0x237a48)+_0x57b884(0x9c,0x1a1)+(_0x3f1466[_0x57b884(_0xd099b5._0x554e25,0x75)+'ewayReac'+'hable']?_0x5ee4e0[_0x57b884(0xf9,_0xd099b5._0x4830b5)]:'no'));}function requirePairingConfig(){const _0x245486={_0x9db6e6:0x311,_0x49f546:0x36e},_0x50d1a5={_0x415ae5:0x1df};function _0x352d56(_0x1f06e8,_0x483ff0){return _0x11b7ab(_0x1f06e8,_0x483ff0-_0x50d1a5._0x415ae5);}const _0x364dc1=readPairingConfig();function _0x248922(_0x26489b,_0x30b63c){return _0x11b7ab(_0x26489b,_0x30b63c-0xc4);}return!_0x364dc1&&(console[_0x248922(0x264,0x6d)]('Not\x20pair'+'ed.\x20Run\x20'+'\x22clawket'+_0x352d56(0x472,0x274)+'irst.\x20Co'+_0x352d56(0x12c,0x1fb)+_0x352d56(_0x245486._0x9db6e6,_0x245486._0x49f546)+getPairingConfigPath()),process['exit'](0x1)),_0x364dc1;}function readFlag(_0x5a14b9,_0x3f2b61){const _0xe67623={_0x58bee1:0xac,_0x518313:0x40b,_0x522552:0x264,_0x365504:0x29e,_0x11c113:0xf4,_0x3b8b57:0x2dd},_0x226f54={_0x3cbbf6:0x1e4};function _0x27fc5c(_0x3ad3bb,_0xb742a7){return _0x6eb3(_0x3ad3bb,_0xb742a7-0x25e);}const _0x23c58b={};_0x23c58b[_0x9ed56(_0xe67623._0x58bee1,0xf4)]=function(_0x3dc05e,_0x10a6e1){return _0x3dc05e<_0x10a6e1;};function _0x9ed56(_0x2341cd,_0x10148f){return _0x6eb3(_0x2341cd,_0x10148f-_0x226f54._0x3cbbf6);}_0x23c58b[_0x27fc5c(0x4d3,_0xe67623._0x518313)]=function(_0xa41d61,_0xf757ea){return _0xa41d61+_0xf757ea;};const _0x5673d7=_0x23c58b,_0x52bb21=_0x5a14b9[_0x27fc5c(_0xe67623._0x522552,0x2ff)](_0x3f2b61);if(_0x5673d7[_0x9ed56(_0xe67623._0x365504,_0xe67623._0x11c113)](_0x52bb21,0x0))return null;const _0x35387c=_0x5a14b9[_0x5673d7[_0x27fc5c(0x39a,0x40b)](_0x52bb21,0x1)];return _0x35387c?.['trim']()?_0x35387c[_0x9ed56(_0xe67623._0x3b8b57,0x2a1)]():null;}function hasFlag(_0x2d8c48,_0x3be5e2){function _0x2522ff(_0x5e7c1f,_0x3a60cc){return _0x6eb3(_0x5e7c1f,_0x3a60cc- -0xeb);}return _0x2d8c48[_0x2522ff(-0xd5,-0x88)](_0x3be5e2);}function printHelp(){const _0x53460f={_0x4e4233:0x2ac,_0x4203c6:0x78,_0x550385:0x4e,_0x3abcc2:0x171,_0xb57fdf:0x39f,_0x32f36c:0x56,_0x407dc7:0x6fd,_0x41f8d2:0x57d,_0x514828:0x376,_0x266058:0x4d2,_0xa7e9fc:0x257,_0x5833d3:0x247,_0x3e2af3:0x2e0,_0x522454:0x1c8,_0x39a2ad:0x22c,_0x4bf290:0x58,_0x4610af:0xde,_0x40ea89:0x13b,_0x23735e:0x247,_0x48daa4:0x2bc,_0x57c5ed:0x389,_0x3e74ba:0x513,_0x1b5da5:0xf0,_0xf34d6e:0x451,_0x3ad18e:0x221,_0x13ab4f:0x17c,_0x574827:0xed,_0x12e19b:0x179,_0x56f4a0:0x1b8,_0x10077e:0x213,_0x1ec1d5:0x80,_0x3f32b3:0x35d,_0x428d07:0x224,_0x351cee:0x33,_0x382510:0x432,_0x18014b:0x5ab,_0x22f4a3:0x545,_0x3f8c81:0x5c4,_0xd58b15:0x3ad,_0x34bcc2:0x442,_0x3e203e:0x352,_0x115814:0x5b1,_0x29931f:0xbf,_0x880caa:0xf0,_0x3d4a1f:0xb6,_0x47e422:0x454,_0x19fec8:0x1b3},_0x5ad118={_0x3b7d84:0x44},_0x1f0732={_0x1a132b:0x320},_0xbad80e={};_0xbad80e['wwxgb']='clawket\x20'+'pair\x20[--'+_0xff2e16(-_0x53460f._0x4e4233,-0x125)+_0xff2e16(_0x53460f._0x4203c6,_0x53460f._0x550385)+_0xff2e16(-_0x53460f._0x3abcc2,-0xae)+_0x7a82c6(0x33c,_0x53460f._0xb57fdf)+'me>]\x20[--'+_0xff2e16(_0x53460f._0x32f36c,-0x17)+_0x7a82c6(_0x53460f._0x407dc7,_0x53460f._0x41f8d2)+_0xff2e16(_0x53460f._0x514828,0x1b8)+_0x7a82c6(0x41e,_0x53460f._0x266058)+'e]',_0xbad80e['yarBS']=_0xff2e16(_0x53460f._0xa7e9fc,_0x53460f._0x5833d3)+_0x7a82c6(0x285,_0x53460f._0x3e2af3);function _0x7a82c6(_0x1416fd,_0x36a689){return _0x6eb3(_0x1416fd,_0x36a689-_0x1f0732._0x1a132b);}_0xbad80e[_0xff2e16(0x207,0x189)]=_0x7a82c6(0x782,0x5ab)+_0xff2e16(_0x53460f._0x522454,_0x53460f._0x39a2ad),_0xbad80e[_0xff2e16(_0x53460f._0x4bf290,_0x53460f._0x4610af)]=_0xff2e16(_0x53460f._0x40ea89,_0x53460f._0x23735e)+_0xff2e16(_0x53460f._0x48daa4,0x1e6)+_0x7a82c6(0x60b,0x5d8)+_0x7a82c6(0x83,0x255)+'nes\x20<200'+'>]\x20[--er'+_0x7a82c6(_0x53460f._0x57c5ed,_0x53460f._0x3e74ba)+_0xff2e16(-0x101,_0x53460f._0x1b5da5);function _0xff2e16(_0x38f91e,_0x2eefc8){return _0x6eb3(_0x38f91e,_0x2eefc8- -_0x5ad118._0x3b7d84);}const _0xbeb92a=_0xbad80e;console[_0x7a82c6(_0x53460f._0xf34d6e,0x46a)]([_0xbeb92a['wwxgb'],'clawket\x20'+_0xff2e16(-_0x53460f._0x3ad18e,-_0x53460f._0x13ab4f)+_0xff2e16(-_0x53460f._0x574827,-_0x53460f._0x12e19b)+'qr-file\x20'+'<path>]\x20'+_0xff2e16(0x3b6,_0x53460f._0x56f4a0),_0xbeb92a[_0xff2e16(-_0x53460f._0x10077e,-_0x53460f._0x1ec1d5)],_0xff2e16(_0x53460f._0x3f32b3,0x247)+_0xff2e16(-_0x53460f._0x428d07,-_0x53460f._0x351cee),'clawket\x20'+_0x7a82c6(0x4db,0x43c),_0x7a82c6(_0x53460f._0x382510,_0x53460f._0x18014b)+_0x7a82c6(0x3c0,_0x53460f._0x22f4a3)+'l',_0xbeb92a['rSERL'],_0x7a82c6(0x614,0x5ab)+_0x7a82c6(0x5b4,_0x53460f._0x3f8c81),_0xbeb92a[_0x7a82c6(_0x53460f._0xd58b15,_0x53460f._0x34bcc2)],_0xff2e16(0x333,_0x53460f._0x23735e)+_0xff2e16(0xe3,-0xcd)+_0x7a82c6(0x345,0x4e2),'clawket\x20'+_0x7a82c6(0x447,_0x53460f._0x3e203e)+_0x7a82c6(_0x53460f._0x115814,0x44b)+_0xff2e16(0x2,_0x53460f._0x29931f)+_0xff2e16(-_0x53460f._0x880caa,_0x53460f._0x3d4a1f)+_0x7a82c6(_0x53460f._0x47e422,0x338)+'>]'][_0xff2e16(-_0x53460f._0x19fec8,-0xa4)]('\x0a'));}function formatLocalTime(_0x6d96ba){const _0x26dc52={_0x171adf:0x156,_0x10fac1:0x13b};function _0x30ada3(_0xf2f5bd,_0x10f863){return _0x6eb3(_0xf2f5bd,_0x10f863- -0x198);}const _0x307d84=new Date(_0x6d96ba);if(Number[_0x30ada3(-0x2cf,-0x1e8)](_0x307d84[_0x30ada3(-0x2f0,-0x108)]()))return _0x6d96ba;function _0xfc8b16(_0x165748,_0x3e86d4){return _0x6eb3(_0x165748,_0x3e86d4-0x1e);}return _0x307d84[_0xfc8b16(_0x26dc52._0x171adf,0xd6)+_0x30ada3(-_0x26dc52._0x10fac1,-0xcc)]();}function formatError(_0xbb62cd){function _0x5a0640(_0x291e5b,_0x575945){return _0x6eb3(_0x575945,_0x291e5b-0x143);}return _0xbb62cd instanceof Error?_0xbb62cd[_0x5a0640(0x1b5,0x243)]:String(_0xbb62cd);}function printJson(_0x4fe0c5){const _0x259246={_0x226a04:0xa0,_0x31dd91:0x11a};function _0x5ec82c(_0x3ac2e7,_0x236003){return _0x11b7ab(_0x3ac2e7,_0x236003-0x515);}function _0x314a1a(_0x298167,_0x5b418c){return _0x11b7ab(_0x298167,_0x5b418c- -0xec);}console[_0x314a1a(-0x114,_0x259246._0x226a04)](JSON[_0x314a1a(0x17,_0x259246._0x31dd91)+'y'](_0x4fe0c5,null,0x2));}main()[_0x11b7ab(-0x18a,0x6c)](_0x3886b3=>{const _0x516489={_0x437107:0x12e},_0x5c1f40={_0x2929b7:0xfa};function _0x1db80e(_0x399225,_0x5b34d3){return _0x11b7ab(_0x5b34d3,_0x399225- -_0x5c1f40._0x2929b7);}console[_0x1db80e(-0x151,-_0x516489._0x437107)](formatError(_0x3886b3)),process['exit'](0x1);});
|